/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@topce/typescript@24.12.22/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,
MERCHANTABLITY 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:()=>xZ,AccessFlags:()=>Gr,AssertionLevel:()=>pt,AssignmentDeclarationKind:()=>oi,AssignmentKind:()=>Kg,Associativity:()=>ty,BreakpointResolver:()=>_7,BuilderFileEmit:()=>$V,BuilderProgramKind:()=>xW,BuilderState:()=>VV,CallHierarchy:()=>d7,CharacterCodes:()=>xi,CheckFlags:()=>qr,CheckMode:()=>JB,ClassificationType:()=>BG,ClassificationTypeNames:()=>MG,CommentDirectiveType:()=>Sr,Comparison:()=>a,CompletionInfoFlags:()=>PG,CompletionTriggerKind:()=>SG,Completions:()=>Tae,ContainerFlags:()=>BM,ContextFlags:()=>Ir,Debug:()=>_n,DiagnosticCategory:()=>ai,Diagnostics:()=>_a,DocumentHighlights:()=>N0,ElementFlags:()=>Kr,EmitFlags:()=>Ci,EmitHint:()=>Fi,EmitOnly:()=>Nr,EndOfLineState:()=>OG,ExitStatus:()=>Fr,ExportKind:()=>p0,Extension:()=>ki,ExternalEmitHelpers:()=>Di,FileIncludeKind:()=>Cr,FilePreprocessingDiagnosticsKind:()=>wr,FileSystemEntryKind:()=>ro,FileWatcherEventKind:()=>Mi,FindAllReferences:()=>wce,FlattenLevel:()=>mz,FlowFlags:()=>kr,ForegroundColorEscapeSequences:()=>zU,FunctionFlags:()=>Ih,GeneratedIdentifierFlags:()=>vr,GetLiteralTextFlags:()=>tp,GoToDefinition:()=>ple,HighlightSpanKind:()=>CG,IdentifierNameMap:()=>VJ,ImportKind:()=>d0,ImportsNotUsedAsValues:()=>mi,IndentStyle:()=>wG,IndexFlags:()=>Xr,IndexKind:()=>ei,InferenceFlags:()=>ri,InferencePriority:()=>ni,InlayHintKind:()=>TG,InlayHints:()=>Ple,InternalEmitFlags:()=>wi,InternalNodeBuilderFlags:()=>Lr,InternalSymbolName:()=>Ur,IntersectionFlags:()=>Ar,InvalidatedProjectKind:()=>fH,JSDocParsingMode:()=>Li,JsDoc:()=>jle,JsTyping:()=>qK,JsxEmit:()=>fi,JsxFlags:()=>gr,JsxReferenceKind:()=>Qr,LanguageFeatureMinimumTarget:()=>Ni,LanguageServiceMode:()=>vG,LanguageVariant:()=>vi,LexicalEnvironmentFlags:()=>Pi,ListFormat:()=>Ai,LogLevel:()=>un,MapCode:()=>n_e,MemberOverrideStatus:()=>Er,ModifierFlags:()=>mr,ModuleDetectionKind:()=>li,ModuleInstanceState:()=>LM,ModuleKind:()=>pi,ModuleResolutionKind:()=>ci,ModuleSpecifierEnding:()=>MS,NavigateTo:()=>Z1,NavigationBar:()=>_2,NewLineKind:()=>gi,NodeBuilderFlags:()=>Or,NodeCheckFlags:()=>Vr,NodeFactoryFlags:()=>BC,NodeFlags:()=>fr,NodeResolutionFeatures:()=>AR,ObjectFlags:()=>$r,OperationCanceledException:()=>Tr,OperatorPrecedence:()=>ay,OrganizeImports:()=>c_e,OrganizeImportsMode:()=>kG,OuterExpressionKinds:()=>Ei,OutliningElementsCollector:()=>J_e,OutliningSpanKind:()=>AG,OutputFileType:()=>IG,PackageJsonAutoImportPreference:()=>yG,PackageJsonDependencyGroup:()=>hG,PatternMatchKind:()=>e1,PollingInterval:()=>Bi,PollingWatchKind:()=>di,PragmaKindFlags:()=>Ii,PredicateSemantics:()=>yr,PreparePasteEdits:()=>Sfe,PrivateIdentifierKind:()=>qw,ProcessLevel:()=>jz,ProgramUpdateLevel:()=>yU,QuotePreference:()=>YQ,RegularExpressionFlags:()=>br,RelationComparisonResult:()=>hr,Rename:()=>G_e,ScriptElementKind:()=>jG,ScriptElementKindModifier:()=>RG,ScriptKind:()=>hi,ScriptSnapshot:()=>_G,ScriptTarget:()=>yi,SemanticClassificationFormat:()=>xG,SemanticMeaning:()=>zG,SemicolonPreference:()=>NG,SignatureCheckMode:()=>zB,SignatureFlags:()=>Zr,SignatureHelp:()=>nue,SignatureInfo:()=>WV,SignatureKind:()=>Yr,SmartSelectionRange:()=>Due,SnippetKind:()=>Ti,StatisticType:()=>eK,StructureIsReused:()=>Dr,SymbolAccessibility:()=>Mr,SymbolDisplay:()=>Bue,SymbolDisplayPartKind:()=>EG,SymbolFlags:()=>zr,SymbolFormatFlags:()=>Rr,SyntaxKind:()=>pr,Ternary:()=>ii,ThrottledCancellationToken:()=>t7,TokenClass:()=>LG,TokenFlags:()=>xr,TransformFlags:()=>Si,TypeFacts:()=>MB,TypeFlags:()=>Wr,TypeFormatFlags:()=>jr,TypeMapKind:()=>ti,TypePredicateKind:()=>Br,TypeReferenceSerializationKind:()=>Jr,UnionReduction:()=>Pr,UpToDateStatusType:()=>J$,VarianceFlags:()=>Hr,Version:()=>vn,VersionRange:()=>xn,WatchDirectoryFlags:()=>bi,WatchDirectoryKind:()=>ui,WatchFileKind:()=>_i,WatchLogLevel:()=>wU,WatchType:()=>T$,accessPrivateIdentifier:()=>uz,addEmitFlags:()=>aw,addEmitHelper:()=>ww,addEmitHelpers:()=>Nw,addInternalEmitFlags:()=>cw,addNodeFactoryPatcher:()=>zC,addObjectAllocatorPatcher:()=>Jx,addRange:()=>ae,addRelatedInfo:()=>sT,addSyntheticLeadingComment:()=>vw,addSyntheticTrailingComment:()=>kw,addToSeen:()=>xx,advancedAsyncSuperHelper:()=>SN,affectsDeclarationPathOptionDeclarations:()=>SO,affectsEmitOptionDeclarations:()=>kO,allKeysStartWithDot:()=>lM,altDirectorySeparator:()=>uo,and:()=>Yt,append:()=>re,appendIfUnique:()=>ce,arrayFrom:()=>Ie,arrayIsEqualTo:()=>ee,arrayIsHomogeneous:()=>ST,arrayOf:()=>Ae,arrayReverseIterator:()=>_e,arrayToMap:()=>je,arrayToMultiMap:()=>Me,arrayToNumericMap:()=>Re,assertType:()=>tn,assign:()=>Oe,asyncSuperHelper:()=>kN,attachFileToDiagnostics:()=>Gx,base64decode:()=>Cb,base64encode:()=>Tb,binarySearch:()=>Se,binarySearchKey:()=>Te,bindSourceFile:()=>qM,breakIntoCharacterSpans:()=>h1,breakIntoWordSpans:()=>y1,buildLinkParts:()=>LY,buildOpts:()=>OO,buildOverload:()=>Lfe,bundlerModuleNameResolver:()=>OR,canBeConvertedToAsync:()=>q1,canHaveDecorators:()=>_I,canHaveExportModifier:()=>$T,canHaveFlowNode:()=>Og,canHaveIllegalDecorators:()=>EA,canHaveIllegalModifiers:()=>PA,canHaveIllegalType:()=>DA,canHaveIllegalTypeParameters:()=>FA,canHaveJSDoc:()=>Lg,canHaveLocals:()=>su,canHaveModifiers:()=>lI,canHaveModuleSpecifier:()=>hg,canHaveSymbol:()=>au,canIncludeBindAndCheckDiagnostics:()=>fT,canJsonReportNoInputFiles:()=>oj,canProduceDiagnostics:()=>gq,canUsePropertyAccess:()=>KT,canWatchAffectingLocation:()=>VW,canWatchAtTypes:()=>zW,canWatchDirectoryOrFile:()=>BW,canWatchDirectoryOrFilePath:()=>JW,cartesianProduct:()=>on,cast:()=>tt,chainBundle:()=>RJ,chainDiagnosticMessages:()=>ek,changeAnyExtension:()=>Ho,changeCompilerHostLikeToUseCache:()=>RU,changeExtension:()=>HS,changeFullExtension:()=>Ko,changesAffectModuleResolution:()=>Yu,changesAffectingProgramStructure:()=>Zu,characterCodeToRegularExpressionFlag:()=>Ia,childIsDecorated:()=>mm,classElementOrClassElementParameterIsDecorated:()=>hm,classHasClassThisAssignment:()=>wz,classHasDeclaredOrExplicitlyAssignedName:()=>Az,classHasExplicitlyAssignedName:()=>Pz,classOrConstructorParameterIsDecorated:()=>gm,classicNameResolver:()=>DM,classifier:()=>P7,cleanExtendedConfigCache:()=>xU,clear:()=>N,clearMap:()=>dx,clearSharedExtendedConfigFileWatcher:()=>bU,climbPastPropertyAccess:()=>tX,clone:()=>ze,cloneCompilerOptions:()=>kQ,closeFileWatcher:()=>rx,closeFileWatcherOf:()=>FU,codefix:()=>I7,collapseTextChangeRangesAcrossMultipleVersions:()=>Qs,collectExternalModuleInfo:()=>zJ,combine:()=>ie,combinePaths:()=>Ro,commandLineOptionOfCustomType:()=>EO,commentPragmas:()=>Oi,commonOptionsWithBuild:()=>gO,compact:()=>te,compareBooleans:()=>It,compareDataObjects:()=>ux,compareDiagnostics:()=>rk,compareEmitHelpers:()=>Vw,compareNumberOfDirectorySeparators:()=>qS,comparePaths:()=>Zo,comparePathsCaseInsensitive:()=>Yo,comparePathsCaseSensitive:()=>Qo,comparePatternKeys:()=>uM,compareProperties:()=>At,compareStringsCaseInsensitive:()=>kt,compareStringsCaseInsensitiveEslintCompatible:()=>St,compareStringsCaseSensitive:()=>Tt,compareStringsCaseSensitiveUI:()=>Pt,compareTextSpans:()=>vt,compareValues:()=>yt,compilerOptionsAffectDeclarationPath:()=>$k,compilerOptionsAffectEmit:()=>Wk,compilerOptionsAffectSemanticDiagnostics:()=>Vk,compilerOptionsDidYouMeanDiagnostics:()=>GO,compilerOptionsIndicateEsModules:()=>$Q,computeCommonSourceDirectoryOfFilenames:()=>AU,computeLineAndCharacterOfPosition:()=>Ma,computeLineOfPosition:()=>Ba,computeLineStarts:()=>Oa,computePositionOfLineAndCharacter:()=>ja,computeSignatureWithDiagnostics:()=>TW,computeSuggestionDiagnostics:()=>A1,computedOptions:()=>hk,concatenate:()=>$,concatenateDiagnosticMessageChains:()=>tk,consumesNodeCoreModules:()=>JZ,contains:()=>k,containsIgnoredPath:()=>OT,containsObjectRestOrSpread:()=>sI,containsParseError:()=>hd,containsPath:()=>ea,convertCompilerOptionsForTelemetry:()=>Rj,convertCompilerOptionsFromJson:()=>_j,convertJsonOption:()=>yj,convertToBase64:()=>Sb,convertToJson:()=>wL,convertToObject:()=>CL,convertToOptionsWithAbsolutePaths:()=>JL,convertToRelativePath:()=>ia,convertToTSConfig:()=>FL,convertTypeAcquisitionFromJson:()=>uj,copyComments:()=>iZ,copyEntries:()=>id,copyLeadingComments:()=>lZ,copyProperties:()=>Ue,copyTrailingAsLeadingComments:()=>uZ,copyTrailingComments:()=>_Z,couldStartTrivia:()=>Xa,countWhere:()=>T,createAbstractBuilder:()=>jW,createAccessorPropertyBackingField:()=>tI,createAccessorPropertyGetRedirector:()=>nI,createAccessorPropertySetRedirector:()=>rI,createBaseNodeFactory:()=>AC,createBinaryExpressionTrampoline:()=>KA,createBuilderProgram:()=>CW,createBuilderProgramUsingIncrementalBuildInfo:()=>EW,createBuilderStatusReporter:()=>H$,createCacheableExportInfoMap:()=>f0,createCachedDirectoryStructureHost:()=>hU,createClassifier:()=>w0,createCommentDirectivesMap:()=>Bd,createCompilerDiagnostic:()=>Yx,createCompilerDiagnosticForInvalidCustomType:()=>JO,createCompilerDiagnosticFromMessageChain:()=>Zx,createCompilerHost:()=>IU,createCompilerHostFromProgramHost:()=>w$,createCompilerHostWorker:()=>jU,createDetachedDiagnostic:()=>$x,createDiagnosticCollection:()=>_y,createDiagnosticForFileFromMessageChain:()=>Vp,createDiagnosticForNode:()=>Rp,createDiagnosticForNodeArray:()=>Mp,createDiagnosticForNodeArrayFromMessageChain:()=>zp,createDiagnosticForNodeFromMessageChain:()=>Jp,createDiagnosticForNodeInSourceFile:()=>Bp,createDiagnosticForRange:()=>$p,createDiagnosticMessageChainFromDiagnostic:()=>Wp,createDiagnosticReporter:()=>t$,createDocumentPositionMapper:()=>AJ,createDocumentRegistry:()=>q0,createDocumentRegistryInternal:()=>U0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>LW,createEmitHelperFactory:()=>Uw,createEmptyExports:()=>qP,createEvaluator:()=>hC,createExpressionForJsxElement:()=>HP,createExpressionForJsxFragment:()=>KP,createExpressionForObjectLiteralElementLike:()=>YP,createExpressionForPropertyName:()=>QP,createExpressionFromEntityName:()=>XP,createExternalHelpersImportDeclarationIfNeeded:()=>gA,createFileDiagnostic:()=>Xx,createFileDiagnosticFromMessageChain:()=>Up,createFlowNode:()=>JM,createForOfBindingStatement:()=>GP,createFutureSourceFile:()=>u0,createGetCanonicalFileName:()=>Vt,createGetIsolatedDeclarationErrors:()=>vq,createGetSourceFile:()=>OU,createGetSymbolAccessibilityDiagnosticForNode:()=>yq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>hq,createGetSymbolWalker:()=>KM,createIncrementalCompilerHost:()=>j$,createIncrementalProgram:()=>R$,createJsxFactoryExpression:()=>$P,createLanguageService:()=>i7,createLanguageServiceSourceFile:()=>Q8,createMemberAccessForPropertyName:()=>UP,createModeAwareCache:()=>vR,createModeAwareCacheKey:()=>yR,createModeMismatchDetails:()=>dd,createModuleNotFoundChain:()=>ud,createModuleResolutionCache:()=>TR,createModuleResolutionLoader:()=>_V,createModuleResolutionLoaderUsingGlobalCache:()=>QW,createModuleSpecifierResolutionHost:()=>HQ,createMultiMap:()=>We,createNameResolver:()=>bC,createNodeConverters:()=>LC,createNodeFactory:()=>qC,createOptionNameMap:()=>jO,createOverload:()=>Ofe,createPackageJsonImportFilter:()=>BZ,createPackageJsonInfo:()=>MZ,createParenthesizerRules:()=>IC,createPatternMatcher:()=>n1,createPrinter:()=>pU,createPrinterWithDefaults:()=>lU,createPrinterWithRemoveComments:()=>_U,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>uU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>dU,createProgram:()=>EV,createProgramHost:()=>F$,createPropertyNameNodeForIdentifierOrLiteral:()=>qT,createQueue:()=>Ke,createRange:()=>Ib,createRedirectedBuilderProgram:()=>IW,createResolutionCache:()=>YW,createRuntimeTypeSerializer:()=>Vz,createScanner:()=>gs,createSemanticDiagnosticsBuilderProgram:()=>OW,createSet:()=>Ge,createSolutionBuilder:()=>Q$,createSolutionBuilderHost:()=>G$,createSolutionBuilderWithWatch:()=>Y$,createSolutionBuilderWithWatchHost:()=>X$,createSortedArray:()=>Q,createSourceFile:()=>zI,createSourceMapGenerator:()=>mJ,createSourceMapSource:()=>ew,createSuperAccessVariableStatement:()=>Kz,createSymbolTable:()=>Ku,createSymlinkCache:()=>Yk,createSyntacticTypeNodeBuilder:()=>zK,createSystemWatchFunctions:()=>ao,createTextChange:()=>OQ,createTextChangeFromStartLength:()=>IQ,createTextChangeRange:()=>Gs,createTextRangeFromNode:()=>EQ,createTextRangeFromSpan:()=>AQ,createTextSpan:()=>Ws,createTextSpanFromBounds:()=>$s,createTextSpanFromNode:()=>DQ,createTextSpanFromRange:()=>PQ,createTextSpanFromStringLiteralLikeContent:()=>FQ,createTextWriter:()=>Oy,createTokenRange:()=>Mb,createTypeChecker:()=>GB,createTypeReferenceDirectiveResolutionCache:()=>CR,createTypeReferenceResolutionLoader:()=>pV,createWatchCompilerHost:()=>M$,createWatchCompilerHostOfConfigFile:()=>A$,createWatchCompilerHostOfFilesAndCompilerOptions:()=>I$,createWatchFactory:()=>C$,createWatchHost:()=>S$,createWatchProgram:()=>B$,createWatchStatusReporter:()=>o$,createWriteFileMeasuringIO:()=>LU,declarationNameToString:()=>Pp,decodeMappings:()=>SJ,decodedTextSpanIntersectsWith:()=>Js,deduplicate:()=>X,defaultInitCompilerOptions:()=>BO,defaultMaximumTruncationLength:()=>Vu,diagnosticCategoryName:()=>si,diagnosticToString:()=>i0,diagnosticsEqualityComparer:()=>sk,directoryProbablyExists:()=>Fb,directorySeparator:()=>_o,displayPart:()=>kY,displayPartsToString:()=>$8,disposeEmitNodes:()=>rw,documentSpansEqual:()=>pY,dumpTracingLegend:()=>dr,elementAt:()=>de,elideNodes:()=>XA,emitDetachedComments:()=>xv,emitFiles:()=>oU,emitFilesAndReportErrors:()=>v$,emitFilesAndReportErrorsAndGetExitStatus:()=>b$,emitModuleKindIsNonNodeESM:()=>Lk,emitNewLineBeforeLeadingCommentOfPosition:()=>bv,emitResolverSkipsTypeChecking:()=>iU,emitSkippedWithNoDiagnostics:()=>LV,emptyArray:()=>s,emptyFileSystemEntries:()=>iT,emptyMap:()=>c,emptyOptions:()=>bG,endsWith:()=>jt,ensurePathIsNonModuleName:()=>$o,ensureScriptKind:()=>xS,ensureTrailingDirectorySeparator:()=>Wo,entityNameToString:()=>jp,enumerateInsertsAndDeletes:()=>rn,equalOwnProperties:()=>Le,equateStringsCaseInsensitive:()=>mt,equateStringsCaseSensitive:()=>gt,equateValues:()=>ft,escapeJsxAttributeString:()=>Dy,escapeLeadingUnderscores:()=>fc,escapeNonAsciiString:()=>Sy,escapeSnippetText:()=>JT,escapeString:()=>xy,escapeTemplateSubstitution:()=>dy,evaluatorResult:()=>gC,every:()=>h,exclusivelyPrefixedNodeCoreModules:()=>NC,executeCommandLine:()=>hK,expandPreOrPostfixIncrementOrDecrementExpression:()=>ZP,explainFiles:()=>p$,explainIfFileIsRedirectAndImpliedFormat:()=>f$,exportAssignmentIsAlias:()=>mh,expressionResultIsUnused:()=>IT,extend:()=>qe,extensionFromPath:()=>eT,extensionIsTS:()=>YS,extensionsNotSupportingExtensionlessResolution:()=>AS,externalHelpersModuleNameText:()=>Uu,factory:()=>ZC,fileExtensionIs:()=>So,fileExtensionIsOneOf:()=>To,fileIncludeReasonToDiagnostics:()=>h$,fileShouldUseJavaScriptRequire:()=>l0,filter:()=>C,filterMutate:()=>w,filterSemanticDiagnostics:()=>RV,find:()=>y,findAncestor:()=>uc,findBestPatternMatch:()=>Ht,findChildOfKind:()=>AX,findComputedPropertyNameCacheAssignment:()=>iI,findConfigFile:()=>EU,findConstructorDeclaration:()=>vC,findContainingList:()=>IX,findDiagnosticForNode:()=>UZ,findFirstNonJsxWhitespaceToken:()=>KX,findIndex:()=>b,findLast:()=>v,findLastIndex:()=>x,findListItemInfo:()=>EX,findModifier:()=>lY,findNextToken:()=>XX,findPackageJson:()=>RZ,findPackageJsons:()=>jZ,findPrecedingMatchingToken:()=>sQ,findPrecedingToken:()=>QX,findSuperStatementIndexPath:()=>YJ,findTokenOnLeftOfPosition:()=>GX,findUseStrictPrologue:()=>iA,first:()=>me,firstDefined:()=>d,firstDefinedIterator:()=>p,firstIterator:()=>ge,firstOrOnly:()=>KZ,firstOrUndefined:()=>pe,firstOrUndefinedIterator:()=>fe,fixupCompilerOptions:()=>Y1,flatMap:()=>A,flatMapIterator:()=>O,flatMapToMutable:()=>I,flatten:()=>P,flattenCommaList:()=>aI,flattenDestructuringAssignment:()=>gz,flattenDestructuringBinding:()=>vz,flattenDiagnosticMessageText:()=>ZU,forEach:()=>_,forEachAncestor:()=>td,forEachAncestorDirectory:()=>sa,forEachAncestorDirectoryStoppingAtGlobalCache:()=>hM,forEachChild:()=>RI,forEachChildRecursively:()=>MI,forEachDynamicImportOrRequireCall:()=>FC,forEachEmittedFile:()=>Bq,forEachEnclosingBlockScopeContainer:()=>Ep,forEachEntry:()=>nd,forEachExternalModuleToImportFrom:()=>h0,forEachImportClauseDeclaration:()=>Cg,forEachKey:()=>rd,forEachLeadingCommentRange:()=>os,forEachNameInAccessChainWalkingLeft:()=>Dx,forEachNameOfDefaultExport:()=>C0,forEachPropertyAssignment:()=>Uf,forEachResolvedProjectReference:()=>mV,forEachReturnStatement:()=>Nf,forEachRight:()=>u,forEachTrailingCommentRange:()=>as,forEachTsConfigPropArray:()=>Hf,forEachUnique:()=>mY,forEachYieldExpression:()=>Df,formatColorAndReset:()=>GU,formatDiagnostic:()=>JU,formatDiagnostics:()=>BU,formatDiagnosticsWithColorAndContext:()=>YU,formatGeneratedName:()=>eI,formatGeneratedNamePart:()=>YA,formatLocation:()=>QU,formatMessage:()=>Qx,formatStringFromArgs:()=>qx,formatting:()=>Sde,generateDjb2Hash:()=>ji,generateTSConfig:()=>BL,getAdjustedReferenceLocation:()=>qX,getAdjustedRenameLocation:()=>UX,getAliasDeclarationFromName:()=>ph,getAllAccessorDeclarations:()=>pv,getAllDecoratorsOfClass:()=>oz,getAllDecoratorsOfClassElement:()=>az,getAllJSDocTags:()=>sl,getAllJSDocTagsOfKind:()=>cl,getAllKeys:()=>Ee,getAllProjectOutputs:()=>tU,getAllSuperTypeNodes:()=>xh,getAllowImportingTsExtensions:()=>yk,getAllowJSCompilerOption:()=>Ik,getAllowSyntheticDefaultImports:()=>Ck,getAncestor:()=>Th,getAnyExtensionFromPath:()=>Ao,getAreDeclarationMapsEnabled:()=>Ak,getAssignedExpandoInitializer:()=>$m,getAssignedName:()=>wc,getAssignmentDeclarationKind:()=>tg,getAssignmentDeclarationPropertyAccessKind:()=>ug,getAssignmentTargetKind:()=>Xg,getAutomaticTypeDirectiveNames:()=>uR,getBaseFileName:()=>Eo,getBinaryOperatorPrecedence:()=>cy,getBuildInfo:()=>sU,getBuildInfoFileVersionMap:()=>PW,getBuildInfoText:()=>aU,getBuildOrderFromAnyBuildOrder:()=>$$,getBuilderCreationParameters:()=>kW,getBuilderFileEmit:()=>KV,getCanonicalDiagnostic:()=>Hp,getCheckFlags:()=>ix,getClassExtendsHeritageElement:()=>vh,getClassLikeDeclarationOfSymbol:()=>gx,getCombinedLocalAndExportSymbolFlags:()=>sx,getCombinedModifierFlags:()=>ic,getCombinedNodeFlags:()=>ac,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>oc,getCommentRange:()=>mw,getCommonSourceDirectory:()=>Zq,getCommonSourceDirectoryOfConfig:()=>eU,getCompilerOptionValue:()=>Hk,getCompilerOptionsDiffValue:()=>RL,getConditions:()=>lR,getConfigFileParsingDiagnostics:()=>wV,getConstantValue:()=>Tw,getContainerFlags:()=>$M,getContainerNode:()=>mX,getContainingClass:()=>Xf,getContainingClassExcludingClassDecorators:()=>Zf,getContainingClassStaticBlock:()=>Qf,getContainingFunction:()=>Kf,getContainingFunctionDeclaration:()=>Gf,getContainingFunctionOrClassStaticBlock:()=>Yf,getContainingNodeArray:()=>LT,getContainingObjectLiteralElement:()=>a7,getContextualTypeFromParent:()=>mZ,getContextualTypeFromParentOrAncestorTypeNode:()=>RX,getDeclarationDiagnostics:()=>bq,getDeclarationEmitExtensionForPath:()=>Wy,getDeclarationEmitOutputFilePath:()=>Uy,getDeclarationEmitOutputFilePathWorker:()=>Vy,getDeclarationFileExtension:()=>ZI,getDeclarationFromName:()=>_h,getDeclarationModifierFlagsFromSymbol:()=>ox,getDeclarationOfKind:()=>$u,getDeclarationsOfKind:()=>Hu,getDeclaredExpandoInitializer:()=>Wm,getDecorators:()=>Nc,getDefaultCompilerOptions:()=>H8,getDefaultFormatCodeSettings:()=>DG,getDefaultLibFileName:()=>Ds,getDefaultLibFilePath:()=>c7,getDefaultLikeExportInfo:()=>S0,getDefaultLikeExportNameFromDeclaration:()=>XZ,getDefaultResolutionModeForFileWorker:()=>OV,getDiagnosticText:()=>nL,getDiagnosticsWithinSpan:()=>VZ,getDirectoryPath:()=>Fo,getDirectoryToWatchFailedLookupLocation:()=>WW,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>KW,getDocumentPositionMapper:()=>F1,getDocumentSpansEqualityComparer:()=>fY,getESModuleInterop:()=>Tk,getEditsForFileRename:()=>$0,getEffectiveBaseTypeNode:()=>yh,getEffectiveConstraintOfTypeParameter:()=>ul,getEffectiveContainerForJSDocTemplateTag:()=>Jg,getEffectiveImplementsTypeNodes:()=>bh,getEffectiveInitializer:()=>Vm,getEffectiveJSDocHost:()=>Ug,getEffectiveModifierFlags:()=>Jv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>zv,getEffectiveModifierFlagsNoCache:()=>Wv,getEffectiveReturnTypeNode:()=>gv,getEffectiveSetAccessorTypeAnnotationNode:()=>yv,getEffectiveTypeAnnotationNode:()=>fv,getEffectiveTypeParameterDeclarations:()=>_l,getEffectiveTypeRoots:()=>nR,getElementOrPropertyAccessArgumentExpressionOrName:()=>lg,getElementOrPropertyAccessName:()=>_g,getElementsOfBindingOrAssignmentPattern:()=>wA,getEmitDeclarations:()=>Fk,getEmitFlags:()=>Yd,getEmitHelpers:()=>Fw,getEmitModuleDetectionKind:()=>kk,getEmitModuleFormatOfFileWorker:()=>AV,getEmitModuleKind:()=>bk,getEmitModuleResolutionKind:()=>xk,getEmitScriptTarget:()=>vk,getEmitStandardClassFields:()=>Uk,getEnclosingBlockScopeContainer:()=>Fp,getEnclosingContainer:()=>Dp,getEncodedSemanticClassifications:()=>L0,getEncodedSyntacticClassifications:()=>J0,getEndLinePosition:()=>Td,getEntityNameFromTypeNode:()=>_m,getEntrypointsFromPackageJsonInfo:()=>ZR,getErrorCountForSummary:()=>s$,getErrorSpanForNode:()=>Xp,getErrorSummaryText:()=>u$,getEscapedTextOfIdentifierOrLiteral:()=>Uh,getEscapedTextOfJsxAttributeName:()=>nC,getEscapedTextOfJsxNamespacedName:()=>oC,getExpandoInitializer:()=>Hm,getExportAssignmentExpression:()=>gh,getExportInfoMap:()=>k0,getExportNeedsImportStarHelper:()=>MJ,getExpressionAssociativity:()=>ny,getExpressionPrecedence:()=>iy,getExternalHelpersModuleName:()=>fA,getExternalModuleImportEqualsDeclarationExpression:()=>Cm,getExternalModuleName:()=>kg,getExternalModuleNameFromDeclaration:()=>Jy,getExternalModuleNameFromPath:()=>zy,getExternalModuleNameLiteral:()=>yA,getExternalModuleRequireArgument:()=>wm,getFallbackOptions:()=>DU,getFileEmitOutput:()=>UV,getFileMatcherPatterns:()=>gS,getFileNamesFromConfigSpecs:()=>Cj,getFileWatcherEventKind:()=>Qi,getFilesInErrorForSummary:()=>c$,getFirstConstructorWithBody:()=>iv,getFirstIdentifier:()=>cb,getFirstNonSpaceCharacterPosition:()=>KY,getFirstProjectOutput:()=>rU,getFixableErrorSpanExpression:()=>$Z,getFormatCodeSettingsForWriting:()=>o0,getFullWidth:()=>ad,getFunctionFlags:()=>Oh,getHeritageClause:()=>Sh,getHostSignatureFromJSDoc:()=>qg,getIdentifierAutoGenerate:()=>Bw,getIdentifierGeneratedImportReference:()=>zw,getIdentifierTypeArguments:()=>Rw,getImmediatelyInvokedFunctionExpression:()=>om,getImpliedNodeFormatForEmitWorker:()=>IV,getImpliedNodeFormatForFile:()=>NV,getImpliedNodeFormatForFileWorker:()=>DV,getImportNeedsImportDefaultHelper:()=>JJ,getImportNeedsImportStarHelper:()=>BJ,getIndentString:()=>Ay,getInferredLibraryNameResolveFrom:()=>yV,getInitializedVariables:()=>ex,getInitializerOfBinaryExpression:()=>dg,getInitializerOfBindingOrAssignmentElement:()=>bA,getInterfaceBaseTypeNodes:()=>kh,getInternalEmitFlags:()=>Zd,getInvokedExpression:()=>um,getIsFileExcluded:()=>x0,getIsolatedModules:()=>Sk,getJSDocAugmentsTag:()=>jc,getJSDocClassTag:()=>Mc,getJSDocCommentRanges:()=>yf,getJSDocCommentsAndTags:()=>jg,getJSDocDeprecatedTag:()=>Kc,getJSDocDeprecatedTagNoCache:()=>Gc,getJSDocEnumTag:()=>Xc,getJSDocHost:()=>Vg,getJSDocImplementsTags:()=>Rc,getJSDocOverloadTags:()=>zg,getJSDocOverrideTagNoCache:()=>Hc,getJSDocParameterTags:()=>Ec,getJSDocParameterTagsNoCache:()=>Pc,getJSDocPrivateTag:()=>zc,getJSDocPrivateTagNoCache:()=>qc,getJSDocProtectedTag:()=>Uc,getJSDocProtectedTagNoCache:()=>Vc,getJSDocPublicTag:()=>Bc,getJSDocPublicTagNoCache:()=>Jc,getJSDocReadonlyTag:()=>Wc,getJSDocReadonlyTagNoCache:()=>$c,getJSDocReturnTag:()=>Yc,getJSDocReturnType:()=>rl,getJSDocRoot:()=>Wg,getJSDocSatisfiesExpressionType:()=>eC,getJSDocSatisfiesTag:()=>el,getJSDocTags:()=>ol,getJSDocTemplateTag:()=>Zc,getJSDocThisTag:()=>Qc,getJSDocType:()=>nl,getJSDocTypeAliasName:()=>NA,getJSDocTypeAssertionType:()=>lA,getJSDocTypeParameterDeclarations:()=>hv,getJSDocTypeParameterTags:()=>Ic,getJSDocTypeParameterTagsNoCache:()=>Oc,getJSDocTypeTag:()=>tl,getJSXImplicitImportBase:()=>Gk,getJSXRuntimeImport:()=>Xk,getJSXTransformEnabled:()=>Kk,getKeyForCompilerOptions:()=>mR,getLanguageVariant:()=>_k,getLastChild:()=>bx,getLeadingCommentRanges:()=>_s,getLeadingCommentRangesOfNode:()=>hf,getLeftmostAccessExpression:()=>Nx,getLeftmostExpression:()=>Fx,getLibraryNameFromLibFileName:()=>vV,getLineAndCharacterOfPosition:()=>za,getLineInfo:()=>vJ,getLineOfLocalPosition:()=>nv,getLineStartPositionForPosition:()=>vX,getLineStarts:()=>Ra,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Xb,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Gb,getLinesBetweenPositions:()=>Ja,getLinesBetweenRangeEndAndRangeStart:()=>Vb,getLinesBetweenRangeEndPositions:()=>Wb,getLiteralText:()=>np,getLocalNameForExternalImport:()=>hA,getLocalSymbolForExportDefault:()=>bb,getLocaleSpecificMessage:()=>Wx,getLocaleTimeString:()=>i$,getMappedContextSpan:()=>vY,getMappedDocumentSpan:()=>yY,getMappedLocation:()=>hY,getMatchedFileSpec:()=>m$,getMatchedIncludeSpec:()=>g$,getMeaningFromDeclaration:()=>qG,getMeaningFromLocation:()=>UG,getMembersOfDeclaration:()=>Ef,getModeForFileReference:()=>eV,getModeForResolutionAtIndex:()=>tV,getModeForUsageLocation:()=>rV,getModifiedTime:()=>zi,getModifiers:()=>Dc,getModuleInstanceState:()=>jM,getModuleNameStringLiteralAt:()=>qV,getModuleSpecifierEndingPreference:()=>BS,getModuleSpecifierResolverHost:()=>KQ,getNameForExportedSymbol:()=>GZ,getNameFromImportAttribute:()=>fC,getNameFromIndexInfo:()=>Ap,getNameFromPropertyName:()=>UQ,getNameOfAccessExpression:()=>Cx,getNameOfCompilerOptionValue:()=>OL,getNameOfDeclaration:()=>Cc,getNameOfExpando:()=>Gm,getNameOfJSDocTypedef:()=>kc,getNameOfScriptTarget:()=>qk,getNameOrArgument:()=>cg,getNameTable:()=>o7,getNamespaceDeclarationNode:()=>Sg,getNewLineCharacter:()=>Ab,getNewLineKind:()=>r0,getNewLineOrDefaultFromHost:()=>RY,getNewTargetContainer:()=>rm,getNextJSDocCommentLocation:()=>Mg,getNodeChildren:()=>MP,getNodeForGeneratedName:()=>QA,getNodeId:()=>$B,getNodeKind:()=>gX,getNodeModifiers:()=>fQ,getNodeModulePathParts:()=>VT,getNonAssignedNameOfDeclaration:()=>Tc,getNonAssignmentOperatorForCompoundAssignment:()=>GJ,getNonAugmentationDeclaration:()=>mp,getNonDecoratorTokenPosOfNode:()=>zd,getNonIncrementalBuildInfoRoots:()=>AW,getNonModifierTokenPosOfNode:()=>qd,getNormalizedAbsolutePath:()=>Jo,getNormalizedAbsolutePathWithoutRoot:()=>qo,getNormalizedPathComponents:()=>Bo,getObjectFlags:()=>hx,getOperatorAssociativity:()=>ry,getOperatorPrecedence:()=>sy,getOptionFromName:()=>QO,getOptionsForLibraryResolution:()=>wR,getOptionsNameMap:()=>RO,getOrCreateEmitNode:()=>nw,getOrUpdate:()=>B,getOriginalNode:()=>_c,getOriginalNodeId:()=>OJ,getOutputDeclarationFileName:()=>$q,getOutputDeclarationFileNameWorker:()=>Hq,getOutputExtension:()=>Vq,getOutputFileNames:()=>nU,getOutputJSFileNameWorker:()=>Gq,getOutputPathsFor:()=>qq,getOwnEmitOutputFilePath:()=>qy,getOwnKeys:()=>Fe,getOwnValues:()=>Pe,getPackageJsonTypesVersionsPaths:()=>tR,getPackageNameFromTypesPackageName:()=>CM,getPackageScopeForPath:()=>nM,getParameterSymbolFromJSDoc:()=>Bg,getParentNodeInSpan:()=>sY,getParseTreeNode:()=>pc,getParsedCommandLineOfConfigFile:()=>rL,getPathComponents:()=>Io,getPathFromPathComponents:()=>Oo,getPathUpdater:()=>H0,getPathsBasePath:()=>Ky,getPatternFromSpec:()=>pS,getPendingEmitKindWithSeen:()=>aW,getPositionOfLineAndCharacter:()=>La,getPossibleGenericSignatures:()=>lQ,getPossibleOriginalInputExtensionForExtension:()=>$y,getPossibleOriginalInputPathWithoutChangingExt:()=>Hy,getPossibleTypeArgumentsInfo:()=>_Q,getPreEmitDiagnostics:()=>MU,getPrecedingNonSpaceCharacterPosition:()=>GY,getPrivateIdentifier:()=>lz,getProperties:()=>ZJ,getProperty:()=>De,getPropertyArrayElementValue:()=>Vf,getPropertyAssignmentAliasLikeExpression:()=>hh,getPropertyNameForPropertyNameNode:()=>Jh,getPropertyNameFromType:()=>lC,getPropertyNameOfBindingOrAssignmentElement:()=>SA,getPropertySymbolFromBindingElement:()=>aY,getPropertySymbolsFromContextualType:()=>s7,getQuoteFromPreference:()=>tY,getQuotePreference:()=>eY,getRangesWhere:()=>W,getRefactorContextSpan:()=>WZ,getReferencedFileLocation:()=>TV,getRegexFromPattern:()=>hS,getRegularExpressionForWildcard:()=>_S,getRegularExpressionsForWildcards:()=>uS,getRelativePathFromDirectory:()=>ra,getRelativePathFromFile:()=>oa,getRelativePathToDirectoryOrUrl:()=>aa,getRenameLocation:()=>cZ,getReplacementSpanForContextToken:()=>NQ,getResolutionDiagnostic:()=>JV,getResolutionModeOverride:()=>aV,getResolveJsonModule:()=>Dk,getResolvePackageJsonExports:()=>wk,getResolvePackageJsonImports:()=>Nk,getResolvedExternalModuleName:()=>My,getResolvedModuleFromResolution:()=>ld,getResolvedTypeReferenceDirectiveFromResolution:()=>_d,getRestIndicatorOfBindingOrAssignmentElement:()=>kA,getRestParameterElementType:()=>Ff,getRightMostAssignedExpression:()=>Qm,getRootDeclaration:()=>Yh,getRootDirectoryOfResolutionCache:()=>GW,getRootLength:()=>Do,getScriptKind:()=>VY,getScriptKindFromFileName:()=>kS,getScriptTargetFeatures:()=>ep,getSelectedEffectiveModifierFlags:()=>Rv,getSelectedSyntacticModifierFlags:()=>Mv,getSemanticClassifications:()=>I0,getSemanticJsxChildren:()=>ly,getSetAccessorTypeAnnotationNode:()=>av,getSetAccessorValueParameter:()=>ov,getSetExternalModuleIndicator:()=>fk,getShebang:()=>ds,getSingleVariableOfVariableStatement:()=>Ag,getSnapshotText:()=>JQ,getSnippetElement:()=>Pw,getSourceFileOfModule:()=>vd,getSourceFileOfNode:()=>yd,getSourceFilePathInNewDir:()=>Qy,getSourceFileVersionAsHashFromText:()=>N$,getSourceFilesToEmit:()=>Gy,getSourceMapRange:()=>lw,getSourceMapper:()=>D1,getSourceTextOfNodeFromSourceFile:()=>Ud,getSpanOfTokenAtPosition:()=>Kp,getSpellingSuggestion:()=>Ot,getStartPositionOfLine:()=>kd,getStartPositionOfRange:()=>Kb,getStartsOnNewLine:()=>pw,getStaticPropertiesAndClassStaticBlock:()=>tz,getStrictOptionValue:()=>zk,getStringComparer:()=>Ct,getSubPatternFromSpec:()=>fS,getSuperCallFromStatement:()=>XJ,getSuperContainer:()=>im,getSupportedCodeFixes:()=>K8,getSupportedExtensions:()=>IS,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>OS,getSwitchedType:()=>bZ,getSymbolId:()=>HB,getSymbolNameForPrivateIdentifier:()=>Vh,getSymbolTarget:()=>WY,getSyntacticClassifications:()=>B0,getSyntacticModifierFlags:()=>qv,getSyntacticModifierFlagsNoCache:()=>$v,getSynthesizedDeepClone:()=>XY,getSynthesizedDeepCloneWithReplacements:()=>QY,getSynthesizedDeepClones:()=>ZY,getSynthesizedDeepClonesWithReplacements:()=>eZ,getSyntheticLeadingComments:()=>hw,getSyntheticTrailingComments:()=>bw,getTargetLabel:()=>nX,getTargetOfBindingOrAssignmentElement:()=>xA,getTemporaryModuleResolutionState:()=>tM,getTextOfConstantValue:()=>rp,getTextOfIdentifierOrLiteral:()=>qh,getTextOfJSDocComment:()=>ll,getTextOfJsxAttributeName:()=>rC,getTextOfJsxNamespacedName:()=>aC,getTextOfNode:()=>Gd,getTextOfNodeFromSourceText:()=>Kd,getTextOfPropertyName:()=>Lp,getThisContainer:()=>em,getThisParameter:()=>sv,getTokenAtPosition:()=>$X,getTokenPosOfNode:()=>Jd,getTokenSourceMapRange:()=>uw,getTouchingPropertyName:()=>VX,getTouchingToken:()=>WX,getTrailingCommentRanges:()=>us,getTrailingSemicolonDeferringWriter:()=>Ly,getTransformers:()=>Nq,getTsBuildInfoEmitOutputFilePath:()=>Jq,getTsConfigObjectLiteralExpression:()=>Wf,getTsConfigPropArrayElementValue:()=>$f,getTypeAnnotationNode:()=>mv,getTypeArgumentOrTypeParameterList:()=>mQ,getTypeKeywordOfTypeOnlyImport:()=>uY,getTypeNode:()=>Lw,getTypeNodeIfAccessible:()=>kZ,getTypeParameterFromJsDoc:()=>$g,getTypeParameterOwner:()=>Ys,getTypesPackageName:()=>SM,getUILocale:()=>Ft,getUniqueName:()=>sZ,getUniqueSymbolId:()=>HY,getUseDefineForClassFields:()=>Ok,getWatchErrorSummaryDiagnosticMessage:()=>l$,getWatchFactory:()=>NU,group:()=>Be,groupBy:()=>Je,guessIndentation:()=>Lu,handleNoEmitOptions:()=>jV,handleWatchOptionsConfigDirTemplateSubstitution:()=>GL,hasAbstractModifier:()=>Av,hasAccessorModifier:()=>Ov,hasAmbientModifier:()=>Iv,hasChangesInResolutions:()=>gd,hasContextSensitiveParameters:()=>jT,hasDecorators:()=>jv,hasDocComment:()=>dQ,hasDynamicName:()=>Mh,hasEffectiveModifier:()=>Nv,hasEffectiveModifiers:()=>Cv,hasEffectiveReadonlyModifier:()=>Lv,hasExtension:()=>ko,hasImplementationTSFileExtension:()=>RS,hasIndexSignature:()=>vZ,hasInferredType:()=>SC,hasInitializer:()=>Eu,hasInvalidEscape:()=>fy,hasJSDocNodes:()=>Du,hasJSDocParameterTags:()=>Lc,hasJSFileExtension:()=>LS,hasJsonModuleEmitEnabled:()=>jk,hasOnlyExpressionInitializer:()=>Pu,hasOverrideModifier:()=>Pv,hasPossibleExternalModuleReference:()=>wp,hasProperty:()=>Ne,hasPropertyAccessExpressionWithName:()=>rX,hasQuestionToken:()=>wg,hasRecordedExternalHelpers:()=>mA,hasResolutionModeOverride:()=>uC,hasRestParameter:()=>Mu,hasScopeMarker:()=>K_,hasStaticModifier:()=>Ev,hasSyntacticModifier:()=>Dv,hasSyntacticModifiers:()=>wv,hasTSFileExtension:()=>jS,hasTabstop:()=>GT,hasTrailingDirectorySeparator:()=>Co,hasType:()=>Fu,hasTypeArguments:()=>Hg,hasZeroOrOneAsteriskCharacter:()=>Qk,hostGetCanonicalFileName:()=>Ry,hostUsesCaseSensitiveFileNames:()=>jy,idText:()=>gc,identifierIsThisKeyword:()=>dv,identifierToKeywordKind:()=>hc,identity:()=>at,identitySourceMapConsumer:()=>IJ,ignoreSourceNewlines:()=>Iw,ignoredPaths:()=>Yi,importFromModuleSpecifier:()=>vg,importSyntaxAffectsModuleResolution:()=>mk,indexOfAnyCharCode:()=>S,indexOfNode:()=>Qd,indicesOf:()=>K,inferredTypesContainingFile:()=>hV,injectClassNamedEvaluationHelperBlockIfMissing:()=>Iz,injectClassThisAssignmentIfMissing:()=>Nz,insertImports:()=>_Y,insertSorted:()=>Y,insertStatementAfterCustomPrologue:()=>jd,insertStatementAfterStandardPrologue:()=>Ld,insertStatementsAfterCustomPrologue:()=>Od,insertStatementsAfterStandardPrologue:()=>Id,intersperse:()=>g,intrinsicTagNameToString:()=>sC,introducesArgumentsExoticObject:()=>jf,inverseJsxOptionMap:()=>uO,isAbstractConstructorSymbol:()=>mx,isAbstractModifier:()=>ZN,isAccessExpression:()=>Tx,isAccessibilityModifier:()=>xQ,isAccessor:()=>d_,isAccessorModifier:()=>tD,isAliasableExpression:()=>fh,isAmbientModule:()=>sp,isAmbientPropertyDeclaration:()=>yp,isAnyDirectorySeparator:()=>mo,isAnyImportOrBareOrAccessedRequire:()=>Sp,isAnyImportOrReExport:()=>Np,isAnyImportOrRequireStatement:()=>Tp,isAnyImportSyntax:()=>kp,isAnySupportedFileExtension:()=>tT,isApplicableVersionedTypesKey:()=>fM,isArgumentExpressionOfElementAccess:()=>_X,isArray:()=>Xe,isArrayBindingElement:()=>T_,isArrayBindingOrAssignmentElement:()=>P_,isArrayBindingOrAssignmentPattern:()=>E_,isArrayBindingPattern:()=>$D,isArrayLiteralExpression:()=>KD,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>SQ,isArrayTypeNode:()=>ND,isArrowFunction:()=>iF,isAsExpression:()=>vF,isAssertClause:()=>cE,isAssertEntry:()=>lE,isAssertionExpression:()=>W_,isAssertsKeyword:()=>GN,isAssignmentDeclaration:()=>Um,isAssignmentExpression:()=>ib,isAssignmentOperator:()=>tb,isAssignmentPattern:()=>S_,isAssignmentTarget:()=>Qg,isAsteriskToken:()=>MN,isAsyncFunction:()=>Lh,isAsyncModifier:()=>KN,isAutoAccessorPropertyDeclaration:()=>p_,isAwaitExpression:()=>cF,isAwaitKeyword:()=>XN,isBigIntLiteral:()=>wN,isBinaryExpression:()=>uF,isBinaryLogicalOperator:()=>Gv,isBinaryOperatorToken:()=>zA,isBindableObjectDefinePropertyCall:()=>ng,isBindableStaticAccessExpression:()=>og,isBindableStaticElementAccessExpression:()=>ag,isBindableStaticNameExpression:()=>sg,isBindingElement:()=>HD,isBindingElementOfBareOrAccessedRequire:()=>Mm,isBindingName:()=>n_,isBindingOrAssignmentElement:()=>w_,isBindingOrAssignmentPattern:()=>N_,isBindingPattern:()=>k_,isBlock:()=>DF,isBlockLike:()=>_0,isBlockOrCatchScoped:()=>op,isBlockScope:()=>vp,isBlockScopedContainerTopLevel:()=>up,isBooleanLiteral:()=>a_,isBreakOrContinueStatement:()=>Cl,isBreakStatement:()=>BF,isBuildCommand:()=>gK,isBuildInfoFile:()=>Mq,isBuilderProgram:()=>d$,isBundle:()=>$E,isCallChain:()=>gl,isCallExpression:()=>YD,isCallExpressionTarget:()=>WG,isCallLikeExpression:()=>L_,isCallLikeOrFunctionLikeExpression:()=>O_,isCallOrNewExpression:()=>j_,isCallOrNewExpressionTarget:()=>HG,isCallSignatureDeclaration:()=>yD,isCallToHelper:()=>TN,isCaseBlock:()=>nE,isCaseClause:()=>RE,isCaseKeyword:()=>iD,isCaseOrDefaultClause:()=>ku,isCatchClause:()=>JE,isCatchClauseVariableDeclaration:()=>MT,isCatchClauseVariableDeclarationOrBindingElement:()=>ap,isCheckJsEnabledForFile:()=>rT,isCircularBuildOrder:()=>W$,isClassDeclaration:()=>XF,isClassElement:()=>__,isClassExpression:()=>gF,isClassInstanceProperty:()=>f_,isClassLike:()=>u_,isClassMemberModifier:()=>Yl,isClassNamedEvaluationHelperBlock:()=>Ez,isClassOrTypeElement:()=>y_,isClassStaticBlockDeclaration:()=>fD,isClassThisAssignmentBlock:()=>Cz,isColonToken:()=>zN,isCommaExpression:()=>aA,isCommaListExpression:()=>CF,isCommaSequence:()=>sA,isCommaToken:()=>LN,isComment:()=>gQ,isCommonJsExportPropertyAssignment:()=>Of,isCommonJsExportedExpression:()=>If,isCompoundAssignment:()=>KJ,isComputedNonLiteralName:()=>Ip,isComputedPropertyName:()=>aD,isConciseBody:()=>Y_,isConditionalExpression:()=>dF,isConditionalTypeNode:()=>OD,isConstAssertion:()=>yC,isConstTypeReference:()=>kl,isConstructSignatureDeclaration:()=>vD,isConstructorDeclaration:()=>mD,isConstructorTypeNode:()=>TD,isContextualKeyword:()=>Dh,isContinueStatement:()=>MF,isCustomPrologue:()=>pf,isDebuggerStatement:()=>$F,isDeclaration:()=>_u,isDeclarationBindingElement:()=>C_,isDeclarationFileName:()=>YI,isDeclarationName:()=>lh,isDeclarationNameOfEnumOrNamespace:()=>Zb,isDeclarationReadonly:()=>tf,isDeclarationStatement:()=>uu,isDeclarationWithTypeParameterChildren:()=>xp,isDeclarationWithTypeParameters:()=>bp,isDecorator:()=>lD,isDecoratorTarget:()=>GG,isDefaultClause:()=>ME,isDefaultImport:()=>Tg,isDefaultModifier:()=>HN,isDefaultedExpandoInitializer:()=>Km,isDeleteExpression:()=>oF,isDeleteTarget:()=>sh,isDeprecatedDeclaration:()=>t0,isDestructuringAssignment:()=>ob,isDiskPathRoot:()=>yo,isDoStatement:()=>IF,isDocumentRegistryEntry:()=>z0,isDotDotDotToken:()=>ON,isDottedName:()=>lb,isDynamicName:()=>Bh,isEffectiveExternalModule:()=>gp,isEffectiveStrictModeSourceFile:()=>hp,isElementAccessChain:()=>ml,isElementAccessExpression:()=>QD,isEmittedFileOfProgram:()=>CU,isEmptyArrayLiteral:()=>vb,isEmptyBindingElement:()=>tc,isEmptyBindingPattern:()=>ec,isEmptyObjectLiteral:()=>yb,isEmptyStatement:()=>EF,isEmptyStringLiteral:()=>ym,isEntityName:()=>e_,isEntityNameExpression:()=>sb,isEnumConst:()=>ef,isEnumDeclaration:()=>ZF,isEnumMember:()=>VE,isEqualityOperatorKind:()=>hZ,isEqualsGreaterThanToken:()=>UN,isExclamationToken:()=>BN,isExcludedFile:()=>wj,isExclusivelyTypeOnlyImportOrExport:()=>nV,isExpandoPropertyDeclaration:()=>_C,isExportAssignment:()=>gE,isExportDeclaration:()=>hE,isExportModifier:()=>$N,isExportName:()=>nA,isExportNamespaceAsDefaultDeclaration:()=>Vd,isExportOrDefaultModifier:()=>GA,isExportSpecifier:()=>vE,isExportsIdentifier:()=>Ym,isExportsOrModuleExportsOrAlias:()=>WM,isExpression:()=>V_,isExpressionNode:()=>bm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>fX,isExpressionOfOptionalChainRoot:()=>vl,isExpressionStatement:()=>PF,isExpressionWithTypeArguments:()=>yF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>ab,isExternalModule:()=>VI,isExternalModuleAugmentation:()=>pp,isExternalModuleImportEqualsDeclaration:()=>Tm,isExternalModuleIndicator:()=>X_,isExternalModuleNameRelative:()=>Cs,isExternalModuleReference:()=>TE,isExternalModuleSymbol:()=>Xu,isExternalOrCommonJsModule:()=>Yp,isFileLevelReservedGeneratedIdentifier:()=>Hl,isFileLevelUniqueName:()=>Cd,isFileProbablyExternalModule:()=>gI,isFirstDeclarationOfSymbolParameter:()=>bY,isFixablePromiseHandler:()=>R1,isForInOrOfStatement:()=>Q_,isForInStatement:()=>jF,isForInitializer:()=>eu,isForOfStatement:()=>RF,isForStatement:()=>LF,isFullSourceFile:()=>Dm,isFunctionBlock:()=>Mf,isFunctionBody:()=>Z_,isFunctionDeclaration:()=>GF,isFunctionExpression:()=>rF,isFunctionExpressionOrArrowFunction:()=>BT,isFunctionLike:()=>r_,isFunctionLikeDeclaration:()=>o_,isFunctionLikeKind:()=>c_,isFunctionLikeOrClassStaticBlockDeclaration:()=>i_,isFunctionOrConstructorTypeNode:()=>x_,isFunctionOrModuleBlock:()=>l_,isFunctionSymbol:()=>gg,isFunctionTypeNode:()=>SD,isGeneratedIdentifier:()=>Wl,isGeneratedPrivateIdentifier:()=>$l,isGetAccessor:()=>Nu,isGetAccessorDeclaration:()=>gD,isGetOrSetAccessorDeclaration:()=>pl,isGlobalScopeAugmentation:()=>dp,isGlobalSourceFile:()=>Qp,isGrammarError:()=>Dd,isHeritageClause:()=>BE,isHoistedFunction:()=>ff,isHoistedVariableStatement:()=>gf,isIdentifier:()=>VN,isIdentifierANonContextualKeyword:()=>Ph,isIdentifierName:()=>dh,isIdentifierOrThisTypeNode:()=>IA,isIdentifierPart:()=>fs,isIdentifierStart:()=>ps,isIdentifierText:()=>ms,isIdentifierTypePredicate:()=>zf,isIdentifierTypeReference:()=>kT,isIfStatement:()=>AF,isIgnoredFileFromWildCardWatching:()=>TU,isImplicitGlob:()=>dS,isImportAttribute:()=>uE,isImportAttributeName:()=>Vl,isImportAttributes:()=>_E,isImportCall:()=>lf,isImportClause:()=>aE,isImportDeclaration:()=>oE,isImportEqualsDeclaration:()=>iE,isImportKeyword:()=>rD,isImportMeta:()=>_f,isImportOrExportSpecifier:()=>Ml,isImportOrExportSpecifierName:()=>UY,isImportSpecifier:()=>mE,isImportTypeAssertionContainer:()=>sE,isImportTypeNode:()=>qD,isImportable:()=>m0,isInComment:()=>uQ,isInCompoundLikeAssignment:()=>Yg,isInExpressionContext:()=>xm,isInJSDoc:()=>Im,isInJSFile:()=>Em,isInJSXText:()=>oQ,isInJsonFile:()=>Pm,isInNonReferenceComment:()=>CQ,isInReferenceComment:()=>TQ,isInRightSideOfInternalImportEqualsDeclaration:()=>VG,isInString:()=>tQ,isInTemplateString:()=>iQ,isInTopLevelContext:()=>nm,isInTypeQuery:()=>_v,isIncrementalBuildInfo:()=>hW,isIncrementalBundleEmitBuildInfo:()=>gW,isIncrementalCompilation:()=>Pk,isIndexSignatureDeclaration:()=>bD,isIndexedAccessTypeNode:()=>BD,isInferTypeNode:()=>LD,isInfinityOrNaNString:()=>RT,isInitializedProperty:()=>nz,isInitializedVariable:()=>tx,isInsideJsxElement:()=>aQ,isInsideJsxElementOrAttribute:()=>nQ,isInsideNodeModules:()=>zZ,isInsideTemplateLiteral:()=>bQ,isInstanceOfExpression:()=>gb,isInstantiatedModule:()=>KB,isInterfaceDeclaration:()=>QF,isInternalDeclaration:()=>zu,isInternalModuleImportEqualsDeclaration:()=>Nm,isInternalName:()=>eA,isIntersectionTypeNode:()=>ID,isIntrinsicJsxName:()=>Ey,isIterationStatement:()=>$_,isJSDoc:()=>sP,isJSDocAllType:()=>ZE,isJSDocAugmentsTag:()=>_P,isJSDocAuthorTag:()=>uP,isJSDocCallbackTag:()=>pP,isJSDocClassTag:()=>dP,isJSDocCommentContainingNode:()=>Tu,isJSDocConstructSignature:()=>Ng,isJSDocDeprecatedTag:()=>bP,isJSDocEnumTag:()=>kP,isJSDocFunctionType:()=>iP,isJSDocImplementsTag:()=>PP,isJSDocImportTag:()=>OP,isJSDocIndexSignature:()=>Om,isJSDocLikeText:()=>mI,isJSDocLink:()=>XE,isJSDocLinkCode:()=>QE,isJSDocLinkLike:()=>Ru,isJSDocLinkPlain:()=>YE,isJSDocMemberName:()=>GE,isJSDocNameReference:()=>KE,isJSDocNamepathType:()=>aP,isJSDocNamespaceBody:()=>ru,isJSDocNode:()=>Su,isJSDocNonNullableType:()=>nP,isJSDocNullableType:()=>tP,isJSDocOptionalParameter:()=>XT,isJSDocOptionalType:()=>rP,isJSDocOverloadTag:()=>vP,isJSDocOverrideTag:()=>yP,isJSDocParameterTag:()=>SP,isJSDocPrivateTag:()=>mP,isJSDocPropertyLikeTag:()=>Nl,isJSDocPropertyTag:()=>EP,isJSDocProtectedTag:()=>gP,isJSDocPublicTag:()=>fP,isJSDocReadonlyTag:()=>hP,isJSDocReturnTag:()=>TP,isJSDocSatisfiesExpression:()=>ZT,isJSDocSatisfiesTag:()=>AP,isJSDocSeeTag:()=>xP,isJSDocSignature:()=>lP,isJSDocTag:()=>Cu,isJSDocTemplateTag:()=>NP,isJSDocThisTag:()=>CP,isJSDocThrowsTag:()=>IP,isJSDocTypeAlias:()=>Dg,isJSDocTypeAssertion:()=>cA,isJSDocTypeExpression:()=>HE,isJSDocTypeLiteral:()=>cP,isJSDocTypeTag:()=>wP,isJSDocTypedefTag:()=>DP,isJSDocUnknownTag:()=>FP,isJSDocUnknownType:()=>eP,isJSDocVariadicType:()=>oP,isJSXTagName:()=>vm,isJsonEqual:()=>mT,isJsonSourceFile:()=>Zp,isJsxAttribute:()=>AE,isJsxAttributeLike:()=>yu,isJsxAttributeName:()=>iC,isJsxAttributes:()=>IE,isJsxCallLike:()=>xu,isJsxChild:()=>hu,isJsxClosingElement:()=>DE,isJsxClosingFragment:()=>PE,isJsxElement:()=>CE,isJsxExpression:()=>LE,isJsxFragment:()=>FE,isJsxNamespacedName:()=>jE,isJsxOpeningElement:()=>NE,isJsxOpeningFragment:()=>EE,isJsxOpeningLikeElement:()=>bu,isJsxOpeningLikeElementTagName:()=>XG,isJsxSelfClosingElement:()=>wE,isJsxSpreadAttribute:()=>OE,isJsxTagNameExpression:()=>gu,isJsxText:()=>DN,isJumpStatementTarget:()=>iX,isKeyword:()=>Ch,isKeywordOrPunctuation:()=>Nh,isKnownSymbol:()=>Wh,isLabelName:()=>aX,isLabelOfLabeledStatement:()=>oX,isLabeledStatement:()=>UF,isLateVisibilityPaintedStatement:()=>Cp,isLeftHandSideExpression:()=>M_,isLet:()=>sf,isLineBreak:()=>Va,isLiteralComputedPropertyDeclarationName:()=>uh,isLiteralExpression:()=>Il,isLiteralExpressionOfObject:()=>Ol,isLiteralImportTypeNode:()=>uf,isLiteralKind:()=>Al,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>pX,isLiteralTypeLiteral:()=>U_,isLiteralTypeNode:()=>zD,isLocalName:()=>tA,isLogicalOperator:()=>Xv,isLogicalOrCoalescingAssignmentExpression:()=>Yv,isLogicalOrCoalescingAssignmentOperator:()=>Qv,isLogicalOrCoalescingBinaryExpression:()=>eb,isLogicalOrCoalescingBinaryOperator:()=>Zv,isMappedTypeNode:()=>JD,isMemberName:()=>dl,isMetaProperty:()=>kF,isMethodDeclaration:()=>pD,isMethodOrAccessor:()=>m_,isMethodSignature:()=>dD,isMinusToken:()=>RN,isMissingDeclaration:()=>xE,isMissingPackageJsonInfo:()=>pR,isModifier:()=>Zl,isModifierKind:()=>Xl,isModifierLike:()=>g_,isModuleAugmentationExternal:()=>fp,isModuleBlock:()=>tE,isModuleBody:()=>tu,isModuleDeclaration:()=>eE,isModuleExportName:()=>bE,isModuleExportsAccessExpression:()=>eg,isModuleIdentifier:()=>Zm,isModuleName:()=>jA,isModuleOrEnumDeclaration:()=>ou,isModuleReference:()=>mu,isModuleSpecifierLike:()=>iY,isModuleWithStringLiteralName:()=>cp,isNameOfFunctionDeclaration:()=>dX,isNameOfModuleDeclaration:()=>uX,isNamedDeclaration:()=>Sc,isNamedEvaluation:()=>Gh,isNamedEvaluationSource:()=>Kh,isNamedExportBindings:()=>wl,isNamedExports:()=>yE,isNamedImportBindings:()=>iu,isNamedImports:()=>fE,isNamedImportsOrExports:()=>wx,isNamedTupleMember:()=>FD,isNamespaceBody:()=>nu,isNamespaceExport:()=>pE,isNamespaceExportDeclaration:()=>rE,isNamespaceImport:()=>dE,isNamespaceReexportDeclaration:()=>Sm,isNewExpression:()=>ZD,isNewExpressionTarget:()=>$G,isNewScopeNode:()=>PC,isNoSubstitutionTemplateLiteral:()=>EN,isNodeArray:()=>Pl,isNodeArrayMultiLine:()=>$b,isNodeDescendantOf:()=>ch,isNodeKind:()=>Dl,isNodeLikeSystem:()=>ln,isNodeModulesDirectory:()=>ca,isNodeWithPossibleHoistedDeclaration:()=>Zg,isNonContextualKeyword:()=>Fh,isNonGlobalAmbientModule:()=>lp,isNonNullAccess:()=>YT,isNonNullChain:()=>Tl,isNonNullExpression:()=>xF,isNonStaticMethodOrAccessorWithPrivateName:()=>rz,isNotEmittedStatement:()=>kE,isNullishCoalesce:()=>xl,isNumber:()=>Ze,isNumericLiteral:()=>CN,isNumericLiteralName:()=>zT,isObjectBindingElementWithoutPropertyName:()=>oY,isObjectBindingOrAssignmentElement:()=>F_,isObjectBindingOrAssignmentPattern:()=>D_,isObjectBindingPattern:()=>WD,isObjectLiteralElement:()=>Au,isObjectLiteralElementLike:()=>v_,isObjectLiteralExpression:()=>GD,isObjectLiteralMethod:()=>Bf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Jf,isObjectTypeDeclaration:()=>kx,isOmittedExpression:()=>hF,isOptionalChain:()=>hl,isOptionalChainRoot:()=>yl,isOptionalDeclaration:()=>QT,isOptionalJSDocPropertyLikeTag:()=>HT,isOptionalTypeNode:()=>ED,isOuterExpression:()=>_A,isOutermostOptionalChain:()=>bl,isOverrideModifier:()=>eD,isPackageJsonInfo:()=>dR,isPackedArrayLiteral:()=>AT,isParameter:()=>cD,isParameterPropertyDeclaration:()=>Zs,isParameterPropertyModifier:()=>Ql,isParenthesizedExpression:()=>nF,isParenthesizedTypeNode:()=>jD,isParseTreeNode:()=>dc,isPartOfParameterDeclaration:()=>Qh,isPartOfTypeNode:()=>Cf,isPartOfTypeOnlyImportOrExportDeclaration:()=>ql,isPartOfTypeQuery:()=>km,isPartiallyEmittedExpression:()=>TF,isPatternMatch:()=>Qt,isPinnedComment:()=>Md,isPlainJsFile:()=>bd,isPlusToken:()=>jN,isPossiblyTypeArgumentPosition:()=>cQ,isPostfixUnaryExpression:()=>_F,isPrefixUnaryExpression:()=>lF,isPrimitiveLiteralValue:()=>xC,isPrivateIdentifier:()=>WN,isPrivateIdentifierClassElementDeclaration:()=>Kl,isPrivateIdentifierPropertyAccessExpression:()=>Gl,isPrivateIdentifierSymbol:()=>$h,isProgramUptoDate:()=>CV,isPrologueDirective:()=>df,isPropertyAccessChain:()=>fl,isPropertyAccessEntityNameExpression:()=>_b,isPropertyAccessExpression:()=>XD,isPropertyAccessOrQualifiedName:()=>I_,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>A_,isPropertyAssignment:()=>zE,isPropertyDeclaration:()=>uD,isPropertyName:()=>t_,isPropertyNameLiteral:()=>zh,isPropertySignature:()=>_D,isPrototypeAccess:()=>db,isPrototypePropertyAssignment:()=>pg,isPunctuation:()=>wh,isPushOrUnshiftIdentifier:()=>Xh,isQualifiedName:()=>oD,isQuestionDotToken:()=>qN,isQuestionOrExclamationToken:()=>AA,isQuestionOrPlusOrMinusToken:()=>LA,isQuestionToken:()=>JN,isReadonlyKeyword:()=>QN,isReadonlyKeywordOrPlusOrMinusToken:()=>OA,isRecognizedTripleSlashComment:()=>Rd,isReferenceFileLocation:()=>SV,isReferencedFile:()=>kV,isRegularExpressionLiteral:()=>FN,isRequireCall:()=>Lm,isRequireVariableStatement:()=>Jm,isRestParameter:()=>Bu,isRestTypeNode:()=>PD,isReturnStatement:()=>JF,isReturnStatementWithFixablePromiseHandler:()=>j1,isRightSideOfAccessExpression:()=>fb,isRightSideOfInstanceofExpression:()=>hb,isRightSideOfPropertyAccess:()=>lX,isRightSideOfQualifiedName:()=>cX,isRightSideOfQualifiedNameOrPropertyAccess:()=>pb,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>mb,isRootedDiskPath:()=>ho,isSameEntityName:()=>Xm,isSatisfiesExpression:()=>bF,isSemicolonClassElement:()=>NF,isSetAccessor:()=>wu,isSetAccessorDeclaration:()=>hD,isShiftOperatorOrHigher:()=>RA,isShorthandAmbientModuleSymbol:()=>_p,isShorthandPropertyAssignment:()=>qE,isSideEffectImport:()=>TC,isSignedNumericLiteral:()=>Rh,isSimpleCopiableExpression:()=>$J,isSimpleInlineableExpression:()=>HJ,isSimpleParameterList:()=>pz,isSingleOrDoubleQuote:()=>zm,isSolutionConfig:()=>ij,isSourceElement:()=>mC,isSourceFile:()=>WE,isSourceFileFromLibrary:()=>s0,isSourceFileJS:()=>Fm,isSourceFileNotJson:()=>Am,isSourceMapping:()=>CJ,isSpecialPropertyDeclaration:()=>fg,isSpreadAssignment:()=>UE,isSpreadElement:()=>mF,isStatement:()=>pu,isStatementButNotDeclaration:()=>du,isStatementOrBlock:()=>fu,isStatementWithLocals:()=>xd,isStatic:()=>Fv,isStaticModifier:()=>YN,isString:()=>Ye,isStringANonContextualKeyword:()=>Eh,isStringAndEmptyAnonymousObjectIntersection:()=>vQ,isStringDoubleQuoted:()=>qm,isStringLiteral:()=>NN,isStringLiteralLike:()=>ju,isStringLiteralOrJsxExpression:()=>vu,isStringLiteralOrTemplate:()=>yZ,isStringOrNumericLiteralLike:()=>jh,isStringOrRegularExpressionOrTemplateLiteral:()=>hQ,isStringTextContainingNode:()=>Ul,isSuperCall:()=>cf,isSuperKeyword:()=>nD,isSuperProperty:()=>am,isSupportedSourceFileName:()=>JS,isSwitchStatement:()=>qF,isSyntaxList:()=>LP,isSyntheticExpression:()=>SF,isSyntheticReference:()=>SE,isTagName:()=>sX,isTaggedTemplateExpression:()=>eF,isTaggedTemplateTag:()=>KG,isTemplateExpression:()=>pF,isTemplateHead:()=>PN,isTemplateLiteral:()=>R_,isTemplateLiteralKind:()=>Ll,isTemplateLiteralToken:()=>jl,isTemplateLiteralTypeNode:()=>VD,isTemplateLiteralTypeSpan:()=>UD,isTemplateMiddle:()=>AN,isTemplateMiddleOrTemplateTail:()=>Rl,isTemplateSpan:()=>wF,isTemplateTail:()=>IN,isTextWhiteSpaceLike:()=>gY,isThis:()=>hX,isThisContainerOrFunctionBlock:()=>tm,isThisIdentifier:()=>lv,isThisInTypeQuery:()=>uv,isThisInitializedDeclaration:()=>cm,isThisInitializedObjectBindingExpression:()=>lm,isThisProperty:()=>sm,isThisTypeNode:()=>RD,isThisTypeParameter:()=>UT,isThisTypePredicate:()=>qf,isThrowStatement:()=>VF,isToken:()=>El,isTokenKind:()=>Fl,isTraceEnabled:()=>zj,isTransientSymbol:()=>Gu,isTrivia:()=>Ah,isTryStatement:()=>WF,isTupleTypeNode:()=>DD,isTypeAlias:()=>Fg,isTypeAliasDeclaration:()=>YF,isTypeAssertionExpression:()=>tF,isTypeDeclaration:()=>WT,isTypeElement:()=>h_,isTypeKeyword:()=>jQ,isTypeKeywordTokenOrIdentifier:()=>MQ,isTypeLiteralNode:()=>wD,isTypeNode:()=>b_,isTypeNodeKind:()=>Sx,isTypeOfExpression:()=>aF,isTypeOnlyExportDeclaration:()=>Jl,isTypeOnlyImportDeclaration:()=>Bl,isTypeOnlyImportOrExportDeclaration:()=>zl,isTypeOperatorNode:()=>MD,isTypeParameterDeclaration:()=>sD,isTypePredicateNode:()=>xD,isTypeQueryNode:()=>CD,isTypeReferenceNode:()=>kD,isTypeReferenceType:()=>Iu,isTypeUsableAsPropertyName:()=>cC,isUMDExportSymbol:()=>yx,isUnaryExpression:()=>J_,isUnaryExpressionWithWrite:()=>q_,isUnicodeIdentifierStart:()=>wa,isUnionTypeNode:()=>AD,isUrl:()=>go,isValidBigIntString:()=>bT,isValidESSymbolDeclaration:()=>Lf,isValidTypeOnlyAliasUseSite:()=>xT,isValueSignatureDeclaration:()=>eh,isVarAwaitUsing:()=>nf,isVarConst:()=>of,isVarConstLike:()=>af,isVarUsing:()=>rf,isVariableDeclaration:()=>HF,isVariableDeclarationInVariableStatement:()=>Af,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Rm,isVariableDeclarationInitializedToRequire:()=>jm,isVariableDeclarationList:()=>KF,isVariableLike:()=>Pf,isVariableStatement:()=>FF,isVoidExpression:()=>sF,isWatchSet:()=>nx,isWhileStatement:()=>OF,isWhiteSpaceLike:()=>qa,isWhiteSpaceSingleLine:()=>Ua,isWithStatement:()=>zF,isWriteAccess:()=>lx,isWriteOnlyAccess:()=>cx,isYieldExpression:()=>fF,jsxModeNeedsExplicitImport:()=>a0,keywordPart:()=>TY,last:()=>ye,lastOrUndefined:()=>he,length:()=>l,libMap:()=>fO,libs:()=>pO,lineBreakPart:()=>MY,loadModuleFromGlobalCache:()=>PM,loadWithModeAwareCache:()=>fV,makeIdentifierFromModuleName:()=>ip,makeImport:()=>XQ,makeStringLiteral:()=>QQ,mangleScopedPackageName:()=>TM,map:()=>D,mapAllOrFail:()=>j,mapDefined:()=>R,mapDefinedIterator:()=>M,mapEntries:()=>U,mapIterator:()=>F,mapOneOrMany:()=>HZ,mapToDisplayParts:()=>BY,matchFiles:()=>yS,matchPatternOrExact:()=>oT,matchedText:()=>$t,matchesExclude:()=>Dj,matchesExcludeWorker:()=>Fj,maxBy:()=>bt,maybeBind:()=>Ve,maybeSetLocalizedDiagnosticMessages:()=>Vx,memoize:()=>ut,memoizeOne:()=>dt,min:()=>xt,minAndMax:()=>cT,missingFileModifiedTime:()=>Ji,modifierToFlag:()=>Kv,modifiersToFlags:()=>Hv,moduleExportNameIsDefault:()=>Hd,moduleExportNameTextEscaped:()=>$d,moduleExportNameTextUnescaped:()=>Wd,moduleOptionDeclaration:()=>yO,moduleResolutionIsEqualTo:()=>cd,moduleResolutionNameAndModeGetter:()=>lV,moduleResolutionOptionDeclarations:()=>TO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Bk,moduleResolutionUsesNodeModules:()=>GQ,moduleSpecifierToValidIdentifier:()=>YZ,moduleSpecifiers:()=>GM,moduleSupportsImportAttributes:()=>Jk,moduleSymbolToValidIdentifier:()=>QZ,moveEmitHelpers:()=>Ew,moveRangeEnd:()=>Ob,moveRangePastDecorators:()=>jb,moveRangePastModifiers:()=>Rb,moveRangePos:()=>Lb,moveSyntheticComments:()=>Sw,mutateMap:()=>fx,mutateMapSkippingNewValues:()=>px,needsParentheses:()=>fZ,needsScopeMarker:()=>G_,newCaseClauseTracker:()=>c0,newPrivateEnvironment:()=>cz,noEmitNotification:()=>Oq,noEmitSubstitution:()=>Iq,noTransformers:()=>wq,noTruncationMaximumTruncationLength:()=>Wu,nodeCanBeDecorated:()=>dm,nodeCoreModules:()=>DC,nodeHasName:()=>xc,nodeIsDecorated:()=>pm,nodeIsMissing:()=>wd,nodeIsPresent:()=>Nd,nodeIsSynthesized:()=>ey,nodeModuleNameResolver:()=>LR,nodeModulesPathPart:()=>zR,nodeNextJsonConfigResolver:()=>jR,nodeOrChildIsDecorated:()=>fm,nodeOverlapsWithStartEnd:()=>CX,nodePosToString:()=>Sd,nodeSeenTracker:()=>BQ,nodeStartsNewLexicalEnvironment:()=>Zh,noop:()=>nt,noopFileWatcher:()=>x$,normalizePath:()=>zo,normalizeSlashes:()=>Lo,normalizeSpans:()=>Vs,not:()=>en,notImplemented:()=>_t,notImplementedResolver:()=>cU,nullNodeConverters:()=>RC,nullParenthesizerRules:()=>OC,nullTransformationContext:()=>jq,objectAllocator:()=>Mx,operatorPart:()=>wY,optionDeclarations:()=>bO,optionMapToObject:()=>PL,optionsAffectingProgramStructure:()=>wO,optionsForBuild:()=>IO,optionsForWatch:()=>mO,optionsHaveChanges:()=>ed,or:()=>Zt,orderedRemoveItem:()=>Jt,orderedRemoveItemAt:()=>zt,packageIdToPackageName:()=>pd,packageIdToString:()=>fd,parameterIsThisKeyword:()=>cv,parameterNamePart:()=>NY,parseBaseNodeFactory:()=>uI,parseBigInt:()=>yT,parseBuildCommand:()=>tL,parseCommandLine:()=>XO,parseCommandLineWorker:()=>$O,parseConfigFileTextToJson:()=>oL,parseConfigFileWithSystem:()=>a$,parseConfigHostFromCompilerHostLike:()=>MV,parseCustomTypeOption:()=>qO,parseIsolatedEntityName:()=>qI,parseIsolatedJSDocComment:()=>$I,parseJSDocTypeExpressionForTests:()=>HI,parseJsonConfigFileContent:()=>qL,parseJsonSourceFileConfigFileContent:()=>UL,parseJsonText:()=>UI,parseListTypeOption:()=>UO,parseNodeFactory:()=>dI,parseNodeModuleFromPath:()=>UR,parsePackageName:()=>cM,parsePseudoBigInt:()=>gT,parseValidBigInt:()=>vT,pasteEdits:()=>Cfe,patchWriteFileEnsuringDirectory:()=>so,pathContainsNodeModules:()=>qR,pathIsAbsolute:()=>vo,pathIsBareSpecifier:()=>xo,pathIsRelative:()=>bo,patternText:()=>Wt,performIncrementalCompilation:()=>O$,performance:()=>Un,positionBelongsToNode:()=>NX,positionIsASICandidate:()=>DZ,positionIsSynthesized:()=>QS,positionsAreOnSameLine:()=>Hb,preProcessFile:()=>w1,probablyUsesSemicolons:()=>FZ,processCommentPragmas:()=>eO,processPragmasIntoFields:()=>tO,processTaggedTemplateExpression:()=>Rz,programContainsEsModules:()=>WQ,programContainsModules:()=>VQ,projectReferenceIsEqualTo:()=>sd,propertyNamePart:()=>DY,pseudoBigIntToString:()=>hT,punctuationPart:()=>CY,pushIfUnique:()=>se,quote:()=>gZ,quotePreferenceFromString:()=>ZQ,rangeContainsPosition:()=>xX,rangeContainsPositionExclusive:()=>kX,rangeContainsRange:()=>Qb,rangeContainsRangeExclusive:()=>bX,rangeContainsStartEnd:()=>SX,rangeEndIsOnSameLineAsRangeStart:()=>Ub,rangeEndPositionsAreOnSameLine:()=>zb,rangeEquals:()=>ue,rangeIsOnSingleLine:()=>Bb,rangeOfNode:()=>lT,rangeOfTypeParameters:()=>_T,rangeOverlapsWithStartEnd:()=>TX,rangeStartIsOnSameLineAsRangeEnd:()=>qb,rangeStartPositionsAreOnSameLine:()=>Jb,readBuilderProgram:()=>L$,readConfigFile:()=>iL,readJson:()=>Nb,readJsonConfigFile:()=>aL,readJsonOrUndefined:()=>wb,reduceEachLeadingCommentRange:()=>ss,reduceEachTrailingCommentRange:()=>cs,reduceLeft:()=>Ce,reduceLeftIterator:()=>f,reducePathComponents:()=>jo,refactor:()=>a6,regExpEscape:()=>nS,regularExpressionFlagToCharacterCode:()=>Aa,relativeComplement:()=>ne,removeAllComments:()=>iw,removeEmitHelper:()=>Dw,removeExtension:()=>$S,removeFileExtension:()=>VS,removeIgnoredPath:()=>RW,removeMinAndVersionNumbers:()=>Bt,removePrefix:()=>Gt,removeSuffix:()=>Rt,removeTrailingDirectorySeparator:()=>Vo,repeatString:()=>zQ,replaceElement:()=>ke,replaceFirstStar:()=>pC,resolutionExtensionIsTSOrJson:()=>ZS,resolveConfigFileProjectName:()=>z$,resolveJSModule:()=>PR,resolveLibrary:()=>NR,resolveModuleName:()=>FR,resolveModuleNameFromCache:()=>DR,resolvePackageNameToPackageJson:()=>_R,resolvePath:()=>Mo,resolveProjectReferencePath:()=>BV,resolveTripleslashReference:()=>PU,resolveTypeReferenceDirective:()=>sR,resolvingEmptyArray:()=>qu,returnFalse:()=>rt,returnNoopFileWatcher:()=>k$,returnTrue:()=>it,returnUndefined:()=>ot,returnsPromise:()=>L1,rewriteModuleSpecifier:()=>fz,sameFlatMap:()=>L,sameMap:()=>E,sameMapping:()=>TJ,scanTokenAtPosition:()=>Gp,scanner:()=>JG,semanticDiagnosticsOptionDeclarations:()=>xO,serializeCompilerOptions:()=>LL,server:()=>Mhe,servicesVersion:()=>N8,setCommentRange:()=>gw,setConfigFileInOptions:()=>VL,setConstantValue:()=>Cw,setEmitFlags:()=>ow,setGetSourceFileAsHashVersioned:()=>D$,setIdentifierAutoGenerate:()=>Mw,setIdentifierGeneratedImportReference:()=>Jw,setIdentifierTypeArguments:()=>jw,setInternalEmitFlags:()=>sw,setLocalizedDiagnosticMessages:()=>Ux,setNodeChildren:()=>BP,setNodeFlags:()=>DT,setObjectAllocator:()=>zx,setOriginalNode:()=>tw,setParent:()=>FT,setParentRecursive:()=>ET,setPrivateIdentifier:()=>_z,setSnippetElement:()=>Aw,setSourceMapRange:()=>_w,setStackTraceLimit:()=>Ri,setStartsOnNewLine:()=>fw,setSyntheticLeadingComments:()=>yw,setSyntheticTrailingComments:()=>xw,setSys:()=>lo,setSysLog:()=>to,setTextRange:()=>cI,setTextRangeEnd:()=>CT,setTextRangePos:()=>TT,setTextRangePosEnd:()=>wT,setTextRangePosWidth:()=>NT,setTokenSourceMapRange:()=>dw,setTypeNode:()=>Ow,setUILocale:()=>Et,setValueDeclaration:()=>mg,shouldAllowImportingTsExtension:()=>EM,shouldPreserveConstEnums:()=>Ek,shouldRewriteModuleSpecifier:()=>xg,shouldUseUriStyleNodeCoreModules:()=>n0,showModuleSpecifier:()=>vx,signatureHasRestParameter:()=>ZB,signatureToDisplayParts:()=>qY,single:()=>be,singleElementArray:()=>nn,singleIterator:()=>z,singleOrMany:()=>xe,singleOrUndefined:()=>ve,skipAlias:()=>ax,skipConstraint:()=>qQ,skipOuterExpressions:()=>uA,skipParentheses:()=>ah,skipPartiallyEmittedExpressions:()=>Sl,skipTrivia:()=>Qa,skipTypeChecking:()=>uT,skipTypeCheckingIgnoringNoCheck:()=>dT,skipTypeParentheses:()=>oh,skipWhile:()=>cn,sliceAfter:()=>aT,some:()=>V,sortAndDeduplicate:()=>Z,sortAndDeduplicateDiagnostics:()=>ws,sourceFileAffectingCompilerOptions:()=>CO,sourceFileMayBeEmitted:()=>Xy,sourceMapCommentRegExp:()=>hJ,sourceMapCommentRegExpDontCareLineStart:()=>gJ,spacePart:()=>SY,spanMap:()=>q,startEndContainsRange:()=>Yb,startEndOverlapsWithStartEnd:()=>wX,startOnNewLine:()=>pA,startTracing:()=>ur,startsWith:()=>Kt,startsWithDirectory:()=>ta,startsWithUnderscore:()=>e0,startsWithUseStrict:()=>oA,stringContainsAt:()=>ZZ,stringToToken:()=>Ea,stripQuotes:()=>Fy,supportedDeclarationExtensions:()=>ES,supportedJSExtensionsFlat:()=>NS,supportedLocaleDirectories:()=>cc,supportedTSExtensionsFlat:()=>TS,supportedTSImplementationExtensions:()=>PS,suppressLeadingAndTrailingTrivia:()=>tZ,suppressLeadingTrivia:()=>nZ,suppressTrailingTrivia:()=>rZ,symbolEscapedNameNoDefault:()=>rY,symbolName:()=>yc,symbolNameNoDefault:()=>nY,symbolToDisplayParts:()=>zY,sys:()=>co,sysLog:()=>eo,tagNamesAreEquivalent:()=>cO,takeWhile:()=>sn,targetOptionDeclaration:()=>hO,targetToLibMap:()=>Ns,testFormatSettings:()=>FG,textChangeRangeIsUnchanged:()=>Ks,textChangeRangeNewSpan:()=>Hs,textChanges:()=>Kue,textOrKeywordPart:()=>FY,textPart:()=>EY,textRangeContainsPositionInclusive:()=>As,textRangeContainsTextSpan:()=>Ls,textRangeIntersectsWithTextSpan:()=>qs,textSpanContainsPosition:()=>Ps,textSpanContainsTextRange:()=>Os,textSpanContainsTextSpan:()=>Is,textSpanEnd:()=>Fs,textSpanIntersection:()=>Us,textSpanIntersectsWith:()=>Bs,textSpanIntersectsWithPosition:()=>zs,textSpanIntersectsWithTextSpan:()=>Ms,textSpanIsEmpty:()=>Es,textSpanOverlap:()=>Rs,textSpanOverlapsWith:()=>js,textSpansEqual:()=>dY,textToKeywordObj:()=>pa,timestamp:()=>qn,toArray:()=>Qe,toBuilderFileEmit:()=>DW,toBuilderStateFileInfoForMultiEmit:()=>NW,toEditorSettings:()=>V8,toFileNameLowerCase:()=>lt,toPath:()=>Uo,toProgramEmitPending:()=>FW,toSorted:()=>le,tokenIsIdentifierOrKeyword:()=>ua,tokenIsIdentifierOrKeywordOrGreaterThan:()=>da,tokenToString:()=>Fa,trace:()=>Jj,tracing:()=>$n,tracingEnabled:()=>Hn,transferSourceFileChildren:()=>zP,transform:()=>l7,transformClassFields:()=>qz,transformDeclarations:()=>Sq,transformECMAScriptModule:()=>fq,transformES2015:()=>lq,transformES2016:()=>sq,transformES2017:()=>Hz,transformES2018:()=>Gz,transformES2019:()=>Xz,transformES2020:()=>Qz,transformES2021:()=>Yz,transformESDecorators:()=>$z,transformESNext:()=>Zz,transformGenerators:()=>_q,transformImpliedNodeFormatDependentModule:()=>mq,transformJsx:()=>oq,transformLegacyDecorators:()=>Wz,transformModule:()=>uq,transformNamedEvaluation:()=>Lz,transformNodes:()=>Lq,transformSystemModule:()=>pq,transformTypeScript:()=>zz,transpile:()=>Q1,transpileDeclaration:()=>W1,transpileModule:()=>V1,transpileOptionValueCompilerOptions:()=>NO,tryAddToSet:()=>J,tryAndIgnoreErrors:()=>OZ,tryCast:()=>et,tryDirectoryExists:()=>IZ,tryExtractTSExtension:()=>xb,tryFileExists:()=>AZ,tryGetClassExtendingExpressionWithTypeArguments:()=>nb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>rb,tryGetDirectories:()=>EZ,tryGetExtensionFromPath:()=>nT,tryGetImportFromModuleSpecifier:()=>bg,tryGetJSDocSatisfiesTypeNode:()=>tC,tryGetModuleNameFromFile:()=>vA,tryGetModuleSpecifierFromDeclaration:()=>yg,tryGetNativePerformanceHooks:()=>Bn,tryGetPropertyAccessOrIdentifierToString:()=>ub,tryGetPropertyNameOfBindingOrAssignmentElement:()=>TA,tryGetSourceMappingURL:()=>bJ,tryGetTextOfPropertyName:()=>Op,tryParseJson:()=>Db,tryParsePattern:()=>KS,tryParsePatterns:()=>XS,tryParseRawSourceMap:()=>kJ,tryReadDirectory:()=>PZ,tryReadFile:()=>sL,tryRemoveDirectoryPrefix:()=>eS,tryRemoveExtension:()=>WS,tryRemovePrefix:()=>Xt,tryRemoveSuffix:()=>Mt,tscBuildOption:()=>AO,typeAcquisitionDeclarations:()=>LO,typeAliasNamePart:()=>PY,typeDirectiveIsEqualTo:()=>md,typeKeywords:()=>LQ,typeParameterNamePart:()=>AY,typeToDisplayParts:()=>JY,unchangedPollThresholds:()=>Wi,unchangedTextChangeRange:()=>Xs,unescapeLeadingUnderscores:()=>mc,unmangleScopedPackageName:()=>wM,unorderedRemoveItem:()=>Ut,unprefixedNodeCoreModules:()=>wC,unreachableCodeIsError:()=>Rk,unsetNodeChildren:()=>JP,unusedLabelIsError:()=>Mk,unwrapInnermostStatementOfLabel:()=>Rf,unwrapParenthesizedExpression:()=>kC,updateErrorForNoInputFiles:()=>aj,updateLanguageServiceSourceFile:()=>Y8,updateMissingFilePathsWatch:()=>kU,updateResolutionField:()=>Xj,updateSharedExtendedConfigFileWatcher:()=>vU,updateSourceFile:()=>WI,updateWatchingWildcardDirectories:()=>SU,usingSingleLineStringWriter:()=>od,utf16EncodeAsString:()=>bs,validateLocaleAndSetLanguage:()=>lc,version:()=>o,versionMajorMinor:()=>i,visitArray:()=>iJ,visitCommaListElements:()=>uJ,visitEachChild:()=>dJ,visitFunctionBody:()=>lJ,visitIterationBody:()=>_J,visitLexicalEnvironment:()=>aJ,visitNode:()=>nJ,visitNodes:()=>rJ,visitParameterList:()=>sJ,walkUpBindingElementsAndPatterns:()=>nc,walkUpOuterExpressions:()=>dA,walkUpParenthesizedExpressions:()=>rh,walkUpParenthesizedTypes:()=>nh,walkUpParenthesizedTypesAndGetParentAndChild:()=>ih,whitespaceOrMapCommentRegExp:()=>yJ,writeCommentRange:()=>kv,writeFile:()=>Zy,writeFileEnsuringDirectories:()=>tv,zipWith:()=>m}),e.exports=r;var i="5.8",o=`${i}.0-dev`,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<e.length;n++){const r=t(e[n],n);if(r)return r}}function u(e,t){if(void 0!==e)for(let n=e.length-1;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<e.length;n++){const r=t(e[n],n);if(void 0!==r)return r}}function p(e,t){for(const n of e){const e=t(n);if(void 0!==e)return e}}function f(e,t,n){let r=n;if(e){let n=0;for(const i of e)r=t(r,i,n),n++}return r}function m(e,t,n){const r=[];_n.assertEqual(e.length,t.length);for(let i=0;i<e.length;i++)r.push(n(e[i],t[i],i));return r}function g(e,t){if(e.length<=1)return e;const n=[];for(let r=0,i=e.length;r<i;r++)0!==r&&n.push(t),n.push(e[r]);return n}function h(e,t){if(void 0!==e)for(let n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function y(e,t,n){if(void 0!==e)for(let r=n??0;r<e.length;r++){const n=e[r];if(t(n,r))return n}}function v(e,t,n){if(void 0!==e)for(let r=n??e.length-1;r>=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<e.length;r++)if(t(e[r],r))return r;return-1}function x(e,t,n){if(void 0===e)return-1;for(let r=n??e.length-1;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<e.length;r++)if(n(e[r],t))return!0;return!1}function S(e,t,n){for(let r=n??0;r<e.length;r++)if(k(t,e.charCodeAt(r)))return r;return-1}function T(e,t){let n=0;if(void 0!==e)for(let r=0;r<e.length;r++){t(e[r],r)&&n++}return n}function C(e,t){if(void 0!==e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;if(r<n){const i=e.slice(0,r);for(r++;r<n;){const n=e[r];t(n)&&i.push(n),r++}return i}}return e}function w(e,t){let n=0;for(let r=0;r<e.length;r++)t(e[r],r,e)&&(e[n]=e[r],n++);e.length=n}function N(e){e.length=0}function D(e,t){let n;if(void 0!==e){n=[];for(let r=0;r<e.length;r++)n.push(t(e[r],r))}return n}function*F(e,t){for(const n of e)yield t(n)}function E(e,t){if(void 0!==e)for(let n=0;n<e.length;n++){const r=e[n],i=t(r,n);if(r!==i){const r=e.slice(0,n);for(r.push(i),n++;n<e.length;n++)r.push(t(e[n],n));return r}}return e}function P(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];r&&(Xe(r)?ae(t,r):t.push(r))}return t}function A(e,t){let n;if(void 0!==e)for(let r=0;r<e.length;r++){const i=t(e[r],r);i&&(n=Xe(i)?ae(n,i):re(n,i))}return n??s}function I(e,t){const n=[];if(void 0!==e)for(let r=0;r<e.length;r++){const i=t(e[r],r);i&&(Xe(i)?ae(n,i):n.push(i))}return n}function*O(e,t){for(const n of e){const e=t(n);e&&(yield*e)}}function L(e,t){let n;if(void 0!==e)for(let r=0;r<e.length;r++){const i=e[r],o=t(i,r);(n||i!==o||Xe(o))&&(n||(n=e.slice(0,r)),Xe(o)?ae(n,o):n.push(o))}return n??e}function j(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r],r);if(void 0===i)return;n.push(i)}return n}function R(e,t){const n=[];if(void 0!==e)for(let r=0;r<e.length;r++){const i=t(e[r],r);void 0!==i&&n.push(i)}return n}function*M(e,t){for(const n of e){const e=t(n);void 0!==e&&(yield e)}}function B(e,t,n){if(e.has(t))return e.get(t);const r=n();return e.set(t,r),r}function J(e,t){return!e.has(t)&&(e.add(t),!0)}function*z(e){yield e}function q(e,t,n){let r;if(void 0!==e){r=[];const i=e.length;let o,a,s=0,c=0;for(;s<i;){for(;c<i;){if(a=t(e[c],c),0===c)o=a;else if(a!==o)break;c++}if(s<c){const t=n(e.slice(s,c),o,s,c);t&&r.push(t),s=c}o=a,c++}}return r}function U(e,t){if(void 0===e)return;const n=new Map;return e.forEach(((e,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;n<e.length;n++)if(t(e[n]))return!0}return!1}function W(e,t,n){let r;for(let i=0;i<e.length;i++)t(e[i])?r=void 0===r?i:r:void 0!==r&&(n(r,i),r=void 0);void 0!==r&&n(r,e.length)}function $(e,t){return void 0===t||0===t.length?e:void 0===e||0===e.length?t:[...e,...t]}function H(e,t){return t}function K(e){return e.map(H)}function G(e,t,n){const r=K(e);!function(e,t,n){t.sort(((t,r)=>n(e[t],e[r])||yt(t,r)))}(e,r,n);let i=e[r[0]];const o=[r[0]];for(let n=1;n<r.length;n++){const a=r[n],s=e[a];t(i,s)||(o.push(a),i=s)}return o.sort(),o.map((t=>e[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;r<e.length;r++)se(n,e[r],t);return n}(e,t)}function Q(){return[]}function Y(e,t,n,r,i){if(0===e.length)return e.push(t),!0;const o=Se(e,t,at,n);if(o<0){if(r&&!i){const n=~o;if(n>0&&r(t,e[n-1]))return!1;if(n<e.length&&r(t,e[n]))return e.splice(n,1,t),!0}return e.splice(~o,0,t),!0}return!!i&&(e.splice(o,0,t),!0)}function Z(e,t,n){return function(e,t){if(0===e.length)return s;let n=e[0];const r=[n];for(let i=1;i<e.length;i++){const o=e[i];switch(t(o,n)){case!0:case 0:continue;case-1:return _n.fail("Array is unsorted.")}r.push(n=o)}return r}(le(e,t),n??t??Tt)}function ee(e,t,n=ft){if(void 0===e||void 0===t)return e===t;if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r],r))return!1;return!0}function te(e){let t;if(void 0!==e)for(let n=0;n<e.length;n++){const r=e[n];(t??!r)&&(t??(t=e.slice(0,n)),r&&t.push(r))}return t??e}function ne(e,t,n){if(!t||!e||0===t.length||0===e.length)return t;const r=[];e:for(let i=0,o=0;o<t.length;o++){o>0&&_n.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(const a=i;i<e.length;i++)switch(i>a&&_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<r&&i<t.length;i++)void 0!==t[i]&&e.push(t[i]);return e}function se(e,t,n){return!k(e,t,n)&&(e.push(t),!0)}function ce(e,t,n){return void 0!==e?(se(e,t,n),e):[t]}function le(e,t){return 0===e.length?s:e.slice().sort(t)}function*_e(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function ue(e,t,n,r){for(;n<r;){if(e[n]!==t[n])return!1;n++}return!0}var de=Array.prototype.at?(e,t)=>null==e?void 0:e.at(t):(e,t)=>{if(void 0!==e&&(t=oe(e,t))<e.length)return e[t]};function pe(e){return void 0===e||0===e.length?void 0:e[0]}function fe(e){if(void 0!==e)for(const t of e)return t}function me(e){return _n.assert(0!==e.length),e[0]}function ge(e){for(const t of e)return t;_n.fail("iterator is empty")}function he(e){return void 0===e||0===e.length?void 0:e[e.length-1]}function ye(e){return _n.assert(0!==e.length),e[e.length-1]}function ve(e){return void 0!==e&&1===e.length?e[0]:void 0}function be(e){return _n.checkDefined(ve(e))}function xe(e){return void 0!==e&&1===e.length?e[0]:e}function ke(e,t,n){const r=e.slice(0);return r[t]=n,r}function Se(e,t,n,r,i){return Te(e,n(t),n,r,i)}function Te(e,t,n,r,i){if(!V(e))return-1;let o=i??0,a=e.length-1;for(;o<=a;){const i=o+(a-o>>1);switch(r(n(e[i],i),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 Ne(e,t){return we.call(e,t)}function De(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;r<e;r++)n[r]=t(r);return n}function Ie(e,t){const n=[];for(const r of e)n.push(t?t(r):r);return n}function Oe(e,...t){for(const n of t)if(void 0!==n)for(const t in n)Ne(n,t)&&(e[t]=n[t]);return e}function Le(e,t,n=ft){if(e===t)return!0;if(!e||!t)return!1;for(const r in e)if(we.call(e,r)){if(!we.call(t,r))return!1;if(!n(e[r],t[r]))return!1}for(const n in t)if(we.call(t,n)&&!we.call(e,n))return!1;return!0}function je(e,t,n=at){const r=new Map;for(let i=0;i<e.length;i++){const o=e[i],a=t(o);void 0!==a&&r.set(a,n(o))}return r}function Re(e,t,n=at){const r=[];for(let i=0;i<e.length;i++){const o=e[i];r[t(o)]=n(o)}return r}function Me(e,t,n=at){const r=We();for(let i=0;i<e.length;i++){const o=e[i];r.add(t(o),n(o))}return r}function Be(e,t,n=at){return Ie(Me(e,t).values(),n)}function Je(e,t){const n={};if(void 0!==e)for(let r=0;r<e.length;r++){const i=e[r],o=`${t(i)}`;(n[o]??(n[o]=[])).push(i)}return n}function ze(e){const t={};for(const n in e)we.call(e,n)&&(t[n]=e[n]);return t}function qe(e,t){const n={};for(const e in t)we.call(t,e)&&(n[e]=t[e]);for(const t in e)we.call(e,t)&&(n[t]=e[t]);return n}function Ue(e,t){for(const n in t)we.call(t,n)&&(e[n]=t[n])}function Ve(e,t){return null==t?void 0:t.bind(e)}function We(){const e=new Map;return e.add=$e,e.remove=He,e}function $e(e,t){let n=this.get(e);return void 0!==n?n.push(t):this.set(e,n=[t]),n}function He(e,t){const n=this.get(e);void 0!==n&&(Ut(n,t),n.length||this.delete(e))}function Ke(e){const t=(null==e?void 0:e.slice())??[];let n=0;function r(){return n===t.length}return{enqueue:function(...e){t.push(...e)},dequeue:function(){if(r())throw new Error("Queue is empty");const e=t[n];if(t[n]=void 0,n++,n>100&&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;e<a.length;e++)if(t(a[e],i))return 1===a.length?n.delete(o):2===a.length?n.set(o,a[1-e]):qt(a,e),r--,!0}else{if(t(a,i))return n.delete(o),r--,!0}return!1},clear(){n.clear(),r=0},get size(){return r},forEach(e){for(const t of Ie(n.values()))if(Xe(t))for(const n of t)e(n,n,o);else{e(t,t,o)}},keys:()=>i(),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<t?-1:1}function yt(e,t){return ht(e,t)}function vt(e,t){return yt(null==e?void 0:e.start,null==t?void 0:t.start)||yt(null==e?void 0:e.length,null==t?void 0:t.length)}function bt(e,t,n){for(let r=0;r<e.length;r++)t=Math.max(t,n(e[r]));return t}function xt(e,t){return Ce(e,((e,n)=>-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,Nt,Dt=(()=>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 Nt}function Et(e){Nt!==e&&(Nt=e,wt=void 0)}function Pt(e,t){return wt??(wt=Dt(Nt)),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(n<o),o=n,i=a}}return i}function Lt(e,t,n){let r=new Array(t.length+1),i=new Array(t.length+1);const o=n+.01;for(let e=0;e<=t.length;e++)r[e]=e;for(let a=1;a<=e.length;a++){const s=e.charCodeAt(a-1),c=Math.ceil(a>n?a-n:1),l=Math.floor(t.length>n+a?n+a:t.length);i[0]=a;let _=a;for(let e=1;e<c;e++)i[e]=o;for(let n=c;n<=l;n++){const o=e[a-1].toLowerCase()===t[n-1].toLowerCase()?r[n-1]+.1:r[n-1]+2,c=s===t.charCodeAt(n-1)?r[n-1]:Math.min(r[n]+1,i[n-1]+1,o);i[n]=c,_=Math.min(_,c)}for(let e=l+1;e<=t.length;e++)i[e]=o;if(_>n)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;n<e.length;n++)if(e[n]===t)return zt(e,n),!0;return!1}function zt(e,t){for(let n=t;n<e.length-1;n++)e[n]=e[n+1];e.pop()}function qt(e,t){e[t]=e[e.length-1],e.pop()}function Ut(e,t){return function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return qt(e,n),!0;return!1}(e,(e=>e===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;o<e.length;o++){const a=e[o],s=t(a);s.prefix.length>i&&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<c&&s<l;){const c=e[a],l=t[s],u=n(c,l);-1===u?(r(c),a++,_=!0):1===u?(i(l),s++,_=!0):(o(l,c),a++,s++)}for(;a<c;)r(e[a++]),_=!0;for(;s<l;)i(t[s++]),_=!0;return _}function on(e){const t=[];return an(e,t,void 0,0),t}function an(e,t,n,r){for(const i of e[r]){let o;n?(o=n.slice(),o.push(i)):o=[i],r===e.length-1?t.push(o):an(e,t,o,r+1)}}function sn(e,t){if(void 0!==e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;return e.slice(0,r)}}function cn(e,t){if(void 0!==e){const n=e.length;let r=0;for(;r<n&&t(e[r]);)r++;return e.slice(r)}}function ln(){return"undefined"!=typeof process&&!!process.nextTick&&!process.browser&&"undefined"!=typeof require}var _n,un=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",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&&Ne(e,"kind")&&Ne(e,"pos")?"SyntaxKind: "+b(e.kind):JSON.stringify(e)}`,n||p)}function f(e){}function g(e){if("function"!=typeof e)return"";if(Ne(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&&l(`Expected ${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: ${mc(e.escapedName)}; flags: ${C(e.flags)}; declarations: ${D(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 N(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=N,e.formatObjectFlags=F,e.formatFlowFlags=E,e.formatRelationComparisonResult=function(e){return y(e,hr,!0)},e.formatCheckMode=function(e){return y(e,JB,!0)},e.formatSignatureCheckMode=function(e){return y(e,zB,!0)},e.formatTypeFacts=function(e){return y(e,MB,!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(Mx.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=33554432&this.flags?"TransientSymbol":"Symbol",t=-33554433&this.flags;return`${e} '${yc(this)}'${t?` (${C(t)})`:""}`}},__debugFlags:{get(){return C(this.flags)}}}),Object.defineProperties(Mx.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const e=67359327&this.flags?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:98304&this.flags?"NullableType":384&this.flags?`LiteralType ${JSON.stringify(this.value)}`:2048&this.flags?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&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=524288&this.flags?-1344&this.objectFlags:0;return`${e}${this.symbol?` '${yc(this.symbol)}'`:""}${t?` (${F(t)})`:""}`}},__debugFlags:{get(){return w(this.flags)}},__debugObjectFlags:{get(){return 524288&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(Mx.getSignatureConstructor().prototype,{__debugFlags:{get(){return N(this.flags)}},__debugSignatureToString:{value(){var e;return null==(e=this.checker)?void 0:e.signatureToString(this)}}});const n=[Mx.getNodeConstructor(),Mx.getIdentifierConstructor(),Mx.getTokenConstructor(),Mx.getSourceFileConstructor()];for(const e of n)Ne(e.prototype,"__debugKind")||Object.defineProperties(e.prototype,{__tsDebuggerDisplay:{value(){return`${Wl(this)?"GeneratedIdentifier":VN(this)?`Identifier '${gc(this)}'`:WN(this)?`PrivateIdentifier '${gc(this)}'`:NN(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:CN(this)?`NumericLiteral ${this.text}`:wN(this)?`BigIntLiteral ${this.text}n`:sD(this)?"TypeParameterDeclaration":cD(this)?"ParameterDeclaration":mD(this)?"ConstructorDeclaration":gD(this)?"GetAccessorDeclaration":hD(this)?"SetAccessorDeclaration":yD(this)?"CallSignatureDeclaration":vD(this)?"ConstructSignatureDeclaration":bD(this)?"IndexSignatureDeclaration":xD(this)?"TypePredicateNode":kD(this)?"TypeReferenceNode":SD(this)?"FunctionTypeNode":TD(this)?"ConstructorTypeNode":CD(this)?"TypeQueryNode":wD(this)?"TypeLiteralNode":ND(this)?"ArrayTypeNode":DD(this)?"TupleTypeNode":ED(this)?"OptionalTypeNode":PD(this)?"RestTypeNode":AD(this)?"UnionTypeNode":ID(this)?"IntersectionTypeNode":OD(this)?"ConditionalTypeNode":LD(this)?"InferTypeNode":jD(this)?"ParenthesizedTypeNode":RD(this)?"ThisTypeNode":MD(this)?"TypeOperatorNode":BD(this)?"IndexedAccessTypeNode":JD(this)?"MappedTypeNode":zD(this)?"LiteralTypeNode":FD(this)?"NamedTupleMember":qD(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(Wv(this))}},__debugTransformFlags:{get(){return S(this.transformFlags)}},__debugIsParseTreeNode:{get(){return dc(this)}},__debugEmitFlags:{get(){return T(Yd(this))}},__debugGetText:{value(e){if(ey(this))return"";let n=t.get(this);if(void 0===n){const r=pc(this),i=r&&yd(r);n=i?Ud(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||D(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;i<r.length;i++){i>0&&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;n<t.length;n++){const r=t[n];let o=8;r.lane===e.lane&&(o|=4),n>0&&(o|=1),n<t.length-1&&(o|=2),i[e.level][r.lane]|=o}0===t.length&&(i[e.level][e.lane]|=16);const n=f(e);for(let t=0;t<n.length;t++){const r=n[t];let o=4;t>0&&(o|=1),t<n.length-1&&(o|=2),i[e.level-1][r.lane]|=o}}for(let n=0;n<e;n++)for(let e=0;e<t;e++){const t=n>0?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;t<e;t++)for(let a=0;a<n.length;a++){const n=i[t][a],s=4&n?"─":" ",c=r[t][a];c?(o(a,c.text),t<e-1&&(o(a," "),o(a,k(s,d[t]-c.text.length)))):t<e-1&&o(a,k(s,d[t]+1)),o(a,b(n)),o(a,8&n&&t<e-1&&!r[t+1][a]?"─":" ")}return`\n${n.join("\n")}\n`;function o(e,t){n[e]+=t}}();function p(e){const t=[];for(const n of e.edges)n.source===e&&t.push(n.target);return t}function f(e){const t=[];for(const n of e.edges)n.target===e&&t.push(n.source);return t}function m(e,t){const n=r(e);let i=s[n];if(i&&t.has(e))return i.circular=!0,i={id:-1,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},c.push(i),i;if(t.add(e),!i)if(s[n]=i={id:n,flowNode:e,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},c.push(i),12&(o=e).flags&&o.antecedent)for(const n of e.antecedent)g(i,n,t);else(function(e){return!!(2032&e.flags)})(e)&&g(i,e.antecedent,t);var o;return t.delete(e),i}function g(e,t,n){const r=m(t,n),i={source:e,target:r};l.push(i),e.edges.push(i),r.edges.push(i)}function h(e){if(-1!==e.level)return e.level;let t=0;for(const n of f(e))t=Math.max(t,h(n)+1);return e.level=t}function y(e){return Ud(yd(e),e,!1)}function v(e,t){let n=function(e){if(2&e)return"Start";if(4&e)return"Branch";if(8&e)return"Loop";if(16&e)return"Assignment";if(32&e)return"True";if(64&e)return"False";if(128&e)return"SwitchClause";if(256&e)return"ArrayMutation";if(512&e)return"Call";if(1024&e)return"ReduceLabel";if(1&e)return"Unreachable";throw new Error}(e.flags);if(t&&(n=`${n}#${r(e)}`),128&e.flags){const t=[],{switchStatement:r,clauseStart:i,clauseEnd:o}=e.node;for(let e=i;e<o;e++){const n=r.caseBlock.clauses[e];ME(n)?t.push("default"):t.push(y(n.expression))}n+=` (${t.join(", ")})`}else(function(e){return!!(882&e.flags)})(e)&&e.node&&(n+=` (${y(e.node)})`);return"circularity"===t?`Circular(${n})`:n}function b(e){switch(e){case 3:return"│";case 12:return"─";case 5:return"╯";case 9:return"╰";case 6:return"╮";case 10:return"╭";case 7:return"┤";case 11:return"├";case 13:return"┴";case 14:return"┬";case 15:return"╫"}return" "}function x(e,t){if(e.fill)e.fill(t);else for(let n=0;n<e.length;n++)e[n]=t;return e}function k(e,t){if(e.repeat)return t>0?e.repeat(t):"";let n="";for(;n.length<t;)n+=e;return n}}e.DebugTypeMapper=j,e.attachDebugPrototypeIfDebug=function(t){return e.isDebugging?Object.setPrototypeOf(t,j.prototype):t},e.printControlFlowGraph=function(e){return console.log(R(e))},e.formatControlFlowGraph=R})(_n||(_n={}));var dn=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,pn=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,fn=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,mn=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,gn=/^[a-z0-9-]+$/i,hn=/^(?:0|[1-9]\d*)$/,yn=class e{constructor(e,t=0,n=0,r="",i=""){if("string"==typeof e){const o=_n.checkDefined(bn(e),"Invalid version");({major:e,minor:t,patch:n,prerelease:r,build:i}=o)}_n.assert(e>=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<n;r++){const n=e[r],i=t[r];if(n===i)continue;const o=hn.test(n),a=hn.test(i);if(o||a){if(o!==a)return o?-1:1;const e=yt(+n,+i);if(e)return e}else{const e=Tt(n,i);if(e)return e}}return yt(e.length,t.length)}(this.prerelease,e.prerelease)}increment(t){switch(t){case"major":return new e(this.major+1,0,0);case"minor":return new e(this.major,this.minor+1,0);case"patch":return new e(this.major,this.minor,this.patch+1);default:return _n.assertNever(t)}}with(t){const{major:n=this.major,minor:r=this.minor,patch:i=this.patch,prerelease:o=this.prerelease,build:a=this.build}=t;return new e(n,r,i,o,a)}toString(){let e=`${this.major}.${this.minor}.${this.patch}`;return V(this.prerelease)&&(e+=`-${this.prerelease.join(".")}`),V(this.build)&&(e+=`+${this.build.join(".")}`),e}};yn.zero=new yn(0,0,0,["0"]);var vn=yn;function bn(e){const t=dn.exec(e);if(!t)return;const[,n,r="0",i="0",o="",a=""]=t;return o&&!pn.test(o)||a&&!mn.test(a)?void 0:{major:parseInt(n,10),minor:parseInt(r,10),patch:parseInt(i,10),prerelease:o,build:a}}var xn=class e{constructor(e){this._alternatives=e?_n.checkDefined(Nn(e),"Invalid range spec."):s}static tryParse(t){const n=Nn(t);if(n){const t=new e("");return t._alternatives=n,t}}test(e){return"string"==typeof e&&(e=new vn(e)),function(e,t){if(0===t.length)return!0;for(const n of t)if(In(e,n))return!0;return!1}(e,this._alternatives)}toString(){return D(this._alternatives,Ln).join(" || ")||"*"}},kn=/\|\|/,Sn=/\s+/,Tn=/^([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:\.([x*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Cn=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,wn=/^([~^<>=]|<=|>=)?\s*([a-z0-9-+.*]+)$/i;function Nn(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 Dn(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=Dn(e);if(!r)return!1;const i=Dn(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=Dn(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 D(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;s<w;s++){const S=e[s],N=S.objectFlags,D=S.aliasSymbol??S.symbol;let F;if(16&N|2944&S.flags)try{F=null==(n=S.checker)?void 0:n.typeToString(S)}catch{F=void 0}let E={};if(8388608&S.flags){const e=S;E={indexedAccessObjectType:null==(r=e.objectType)?void 0:r.id,indexedAccessIndexType:null==(i=e.indexType)?void 0:i.id}}let P={};if(4&N){const e=S;P={instantiatedType:null==(o=e.target)?void 0:o.id,typeArguments:null==(a=e.resolvedTypeArguments)?void 0:a.map((e=>e.id)),referenceLocation:f(e.node)}}let A={};if(16777216&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(33554432&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&N){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&N){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==D?void 0:D.escapedName)&&mc(D.escapedName),recursionId:L,isTuple:!!(8&N)||void 0,unionTypes:1048576&S.flags?null==(v=S.types)?void 0:v.map((e=>e.id)):void 0,intersectionTypes:2097152&S.flags?S.types.map((e=>e.id)):void 0,aliasTypeArguments:null==(b=S.aliasTypeArguments)?void 0:b.map((e=>e.id)),keyofType:4194304&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==D?void 0:D.declarations)?void 0:k[0]),flags:_n.formatTypeFlags(S.flags).split("|"),display:F};t.writeSync(T,JSON.stringify(M)),s<w-1&&t.writeSync(T,",\n")}t.writeSync(T,"]\n"),t.closeSync(T),er("endDumpTypes"),tr("Dump types","beginDumpTypes","endDumpTypes")}(o):s[s.length-1].typesPath=void 0},e.recordType=function(e){"server"!==n&&o.push(e)},(l=c=e.Phase||(e.Phase={})).Parse="parse",l.Program="program",l.Bind="bind",l.Check="check",l.CheckTypes="checkTypes",l.Emit="emit",l.Session="session",e.instant=function(e,t,n){p("I",e,t,n,'"s":"g"')};const _=[];e.push=function(e,t,n,r=!1){r&&p("B",e,t,n),_.push({phase:e,name:t,args:n,time:1e3*qn(),separateBeginAndEnd:r})},e.pop=function(e){_n.assert(_.length>0),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=yd(e);return t?{path:t.path,start:n(za(t,e.pos)),end:n(za(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.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.SourceFile=307]="SourceFile",e[e.Bundle=308]="Bundle",e[e.JSDocTypeExpression=309]="JSDocTypeExpression",e[e.JSDocNameReference=310]="JSDocNameReference",e[e.JSDocMemberName=311]="JSDocMemberName",e[e.JSDocAllType=312]="JSDocAllType",e[e.JSDocUnknownType=313]="JSDocUnknownType",e[e.JSDocNullableType=314]="JSDocNullableType",e[e.JSDocNonNullableType=315]="JSDocNonNullableType",e[e.JSDocOptionalType=316]="JSDocOptionalType",e[e.JSDocFunctionType=317]="JSDocFunctionType",e[e.JSDocVariadicType=318]="JSDocVariadicType",e[e.JSDocNamepathType=319]="JSDocNamepathType",e[e.JSDoc=320]="JSDoc",e[e.JSDocComment=320]="JSDocComment",e[e.JSDocText=321]="JSDocText",e[e.JSDocTypeLiteral=322]="JSDocTypeLiteral",e[e.JSDocSignature=323]="JSDocSignature",e[e.JSDocLink=324]="JSDocLink",e[e.JSDocLinkCode=325]="JSDocLinkCode",e[e.JSDocLinkPlain=326]="JSDocLinkPlain",e[e.JSDocTag=327]="JSDocTag",e[e.JSDocAugmentsTag=328]="JSDocAugmentsTag",e[e.JSDocImplementsTag=329]="JSDocImplementsTag",e[e.JSDocAuthorTag=330]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=331]="JSDocDeprecatedTag",e[e.JSDocClassTag=332]="JSDocClassTag",e[e.JSDocPublicTag=333]="JSDocPublicTag",e[e.JSDocPrivateTag=334]="JSDocPrivateTag",e[e.JSDocProtectedTag=335]="JSDocProtectedTag",e[e.JSDocReadonlyTag=336]="JSDocReadonlyTag",e[e.JSDocOverrideTag=337]="JSDocOverrideTag",e[e.JSDocCallbackTag=338]="JSDocCallbackTag",e[e.JSDocOverloadTag=339]="JSDocOverloadTag",e[e.JSDocEnumTag=340]="JSDocEnumTag",e[e.JSDocParameterTag=341]="JSDocParameterTag",e[e.JSDocReturnTag=342]="JSDocReturnTag",e[e.JSDocThisTag=343]="JSDocThisTag",e[e.JSDocTypeTag=344]="JSDocTypeTag",e[e.JSDocTemplateTag=345]="JSDocTemplateTag",e[e.JSDocTypedefTag=346]="JSDocTypedefTag",e[e.JSDocSeeTag=347]="JSDocSeeTag",e[e.JSDocPropertyTag=348]="JSDocPropertyTag",e[e.JSDocThrowsTag=349]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=350]="JSDocSatisfiesTag",e[e.JSDocImportTag=351]="JSDocImportTag",e[e.SyntaxList=352]="SyntaxList",e[e.NotEmittedStatement=353]="NotEmittedStatement",e[e.NotEmittedTypeElement=354]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=355]="PartiallyEmittedExpression",e[e.CommaListExpression=356]="CommaListExpression",e[e.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",e[e.Count=358]="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=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="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=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=309]="FirstJSDocNode",e[e.LastJSDocNode=351]="LastJSDocNode",e[e.FirstJSDocTagNode=327]="FirstJSDocTagNode",e[e.LastJSDocTagNode=351]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="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.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||{}),Nr=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e[e.BuilderSignature=2]="BuilderSignature",e))(Nr||{}),Dr=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(Dr||{}),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.Completions=4]="Completions",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.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="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.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.SingleSignatureType=134217728]="SingleSignatureType",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.IsNarrowingType=16777216]="IsNarrowingType",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.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.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",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||{}),Ni={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},Di=(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))(Di||{}),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.length;n++)t=(t<<5)+t+e.charCodeAt(n);return t.toString()}function Ri(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}var Mi=(e=>(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<n&&(t[o]=a,t[n]=void 0),o++))}return n;function a(){++n===t.length&&(o<n&&(t.length=o),n=0,o=0)}}function Hi(e){const t=[],n=[],r=a(250),i=a(500),o=a(2e3);return function(n,r,i){const o={fileName:n,callback:r,unchangedPolls:0,mtime:zi(e,n)};return t.push(o),u(o,i),{close:()=>{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),FU(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,FU(t),v(t),t.childWatches.forEach(rx))}}}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,ra(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))}),rx,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(rx),_=!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))&&(Dj(e,null==t?void 0:t.excludeFiles,n,r())||Dj(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,DU(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 D(4,1,e);case"UseFsEventsWithFallbackDynamicPolling":return D(4,2,e);case"UseFsEventsOnParentDirectory":t=!0;default:return t?D(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 N()(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,DU(i));case 5:return k||(k=Ki(P,a,t,m)),k(e,n,r,DU(i));default:_n.assertNever(o)}}function w(){return b||(b=Hi({getModifiedTime:t,setTimeout:n}))}function N(){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 D(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 N()(e,(()=>t(e)),void 0,void 0);case 0:return P(e,1,oo(e,t,r,a,s),n,500,DU(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)=>tv(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:N,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<i;e+=2){const t=r[e];r[e]=r[e+1],r[e+1]=t}return r.toString("utf16le",2)}return i>=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 yS(e,t,n,r,u,process.cwd(),i,S,w)},getModifiedTime:N,setModifiedTime:function(e,n){try{t.utimesSync(e,n,n)}catch{return}},deleteFile:function(e){try{return t.unlinkSync(e)}catch{return}},createHash:i?D:ji,createSHA256Hash:i?D: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("[2J[3J[H")},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=PR(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===Do(o)?"":"/"}${o}`;for(const n of t.nodes)if(n.callFrame.url){const t=Lo(n.callFrame.url);ea(a,t,u)?n.callFrame.url=aa(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 iT}}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 N(e){var t;return null==(t=b(e))?void 0:t.mtime}function D(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 No(e)<0}function ho(e){return No(e)>0}function yo(e){const t=No(e);return t>0&&t===e.length}function vo(e){return 0!==No(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 No(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 Do(e){const t=No(e);return t<0?~t:t}function Fo(e){const t=Do(e=Lo(e));return t===e.length?e:(e=Vo(e)).slice(0,Math.max(t,e.lastIndexOf(_o)))}function Eo(e,t,n){if(Do(e=Lo(e))===e.length)return"";const r=(e=Vo(e)).slice(Math.max(Do(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""}(Vo(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),Do(e))}function Oo(e,t){if(0===e.length)return"";return(e[0]&&Wo(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;n<e.length;n++){const r=e[n];if(r&&"."!==r){if(".."===r)if(t.length>1){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===Do(n)?Wo(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){return Oo(Bo(e,t))}function zo(e){if(e=Lo(e),!Go.test(e))return e;const t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!Go.test(e)))return e;const n=Oo(jo(Io(e)));return n&&Co(e)?Wo(n):n}function qo(e,t){return 0===(n=Bo(e,t)).length?"":n.slice(1).join(_o);var n}function Uo(e,t,n){return n(ho(e)?zo(e):Jo(e,t))}function Vo(e){return Co(e)?e.substr(0,e.length-1):e}function Wo(e){return Co(e)?e:e+_o}function $o(e){return vo(e)||bo(e)?e:"./"+e}function Ho(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 Ko(e,t){const n=ZI(e);return n?e.slice(0,e.length-n.length)+(Kt(t,".")?t:"."+t):Ho(e,t)}var Go=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function Xo(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,Do(e)),i=t.substring(0,Do(t)),o=kt(r,i);if(0!==o)return o;const a=e.substring(r.length),s=t.substring(i.length);if(!Go.test(a)&&!Go.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 Qo(e,t){return Xo(e,t,Tt)}function Yo(e,t){return Xo(e,t,kt)}function Zo(e,t,n,r){return"string"==typeof n?(e=Ro(n,e),t=Ro(n,t)):"boolean"==typeof n&&(r=n),Xo(e,t,Ct(r))}function ea(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.length<i.length)return!1;const a=r?mt:gt;for(let e=0;e<i.length;e++){if(!(0===e?mt:a)(i[e],o[e]))return!1}return!0}function ta(e,t,n){const r=n(e),i=n(t);return Kt(r,i+"/")||Kt(r,i+"\\")}function na(e,t,n,r){const i=jo(Io(e)),o=jo(Io(t));let a;for(a=0;a<i.length&&a<o.length;a++){if(!(0===a?mt:n)(r(i[a]),r(o[a])))break}if(0===a)return o;const s=o.slice(a),c=[];for(;a<i.length;a++)c.push("..");return["",...c,...s]}function ra(e,t,n){_n.assert(Do(e)>0==Do(t)>0,"Paths must either both be absolute or both be relative");return Oo(na(e,t,"boolean"==typeof n&&n?mt:gt,"function"==typeof n?n:at))}function ia(e,t,n){return ho(e)?aa(t,e,t,n,!1):e}function oa(e,t,n){return $o(ra(Fo(e),t,n))}function aa(e,t,n,r,i){const o=na(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 sa(e,t){for(;;){const n=t(e);if(void 0!==n)return n;const r=Fo(e);if(r===e)return;e=r}}function ca(e){return jt(e,"/node_modules")}function la(e,t,n,r,i,o,a){return{code:e,category:t,key:n,message:r,reportsUnnecessary:i,elidedInCompatabilityPyramid:o,reportsDeprecated:a}}var _a={Unterminated_string_literal:la(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:la(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:la(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:la(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:la(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:la(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:la(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:la(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:la(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:la(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:la(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:la(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:la(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:la(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:la(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:la(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:la(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:la(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:la(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:la(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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<T> type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:la(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<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:la(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:la(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:la(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:la(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:la(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:la(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:la(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:la(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:la(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:la(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:la(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:la(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:la(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:la(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:la(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:la(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:la(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:la(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:la(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:la(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:la(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:la(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:la(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:la(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:la(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:la(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:la(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:la(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:la(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:la(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:la(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:la(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:la(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:la(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:la(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:la(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:la(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:la(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:la(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:la(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:la(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:la(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:la(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:la(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:la(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:la(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:la(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:la(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:la(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:la(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:la(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:la(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:la(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:la(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:la(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:la(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:la(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:la(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:la(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:la(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:la(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:la(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:la(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:la(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:la(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:la(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:la(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:la(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:la(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:la(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:la(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:la(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:la(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:la(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:la(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:la(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:la(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:la(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:la(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:la(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:la(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:la(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:la(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:la(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:la(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:la(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:la(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:la(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:la(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:la(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:la(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:la(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:la(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:la(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 }'."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve:la(1293,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve_1293","ESM syntax is not allowed in a CommonJS module when 'module' is set to 'preserve'."),with_statements_are_not_allowed_in_an_async_function_block:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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_or_nodenext:la(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', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve:la(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', 'nodenext', or 'preserve'."),Argument_of_dynamic_import_cannot_be_spread_element:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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_or_nodenext:la(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', or 'nodenext'."),A_label_is_not_allowed_here:la(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:la(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:la(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:la(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:la(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:la(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:la(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:la(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:la(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:la(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:la(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_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:la(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:la(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:la(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:la(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:la(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:la(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:la(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:la(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:la(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_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:la(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', '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:la(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:la(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:la(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `&rbrace;`?"),Unexpected_token_Did_you_mean_or_gt:la(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `&gt;`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:la(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:la(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:la(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:la(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:la(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:la(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:la(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:la(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:la(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:la(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:la(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:la(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:la(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:la(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:la(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:la(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:la(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:la(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:la(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:la(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:la(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:la(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:la(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:la(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:la(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:la(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:la(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:la(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:la(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:la(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_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:la(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', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:la(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:la(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:la(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:la(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:la(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:la(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:la(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:la(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:la(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:la(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:la(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:la(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:la(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:la(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(1498,1,"Invalid_syntax_in_decorator_1498","Invalid syntax in decorator."),Unknown_regular_expression_flag:la(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:la(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:la(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:la(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:la(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:la(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:la(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:la(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:la(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:la(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:la(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:la(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:la(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:la(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:la(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:la(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:la(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:la(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:la(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:la(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:la(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:la(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:la(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:la(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:la(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:la(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:la(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:la(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(1540,2,"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.",void 0,void 0,!0),Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:la(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:la(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:la(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:la(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}'."),The_types_of_0_are_incompatible_between_these_types:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:la(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:la(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:la(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:la(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:la(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:la(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:la(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:la(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:la(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:la(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:la(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:la(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:la(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:la(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:la(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:la(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:la(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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}'."),Untyped_function_calls_may_not_accept_type_arguments:la(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:la(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:la(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:la(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:la(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:la(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:la(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:la(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:la(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:la(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:la(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:la(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:la(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:la(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:la(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:la(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:la(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:la(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:la(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:la(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:la(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:la(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:la(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:la(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:la(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:la(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:la(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:la(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:la(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:la(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:la(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:la(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:la(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:la(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:la(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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_with_module_0:la(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:la(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:la(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:la(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:la(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:la(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:la(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:la(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:la(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:la(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:la(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:la(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:la(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:la(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:la(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:la(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:la(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:la(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:la(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:la(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_nodenext_or_preserve:la(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:la(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_nodenext_or_preserve:la(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_pres_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'node18', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:la(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', '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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(2871,1,"This_expression_is_always_nullish_2871","This expression is always nullish."),This_kind_of_expression_is_always_truthy:la(2872,1,"This_kind_of_expression_is_always_truthy_2872","This kind of expression is always truthy."),This_kind_of_expression_is_always_falsy:la(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:la(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:la(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:la(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:la(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:la(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:la(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."),Target_signature_provides_too_many_arguments_Expected_0_or_more_but_got_1:la(2999,1,"Target_signature_provides_too_many_arguments_Expected_0_or_more_but_got_1_2999","Target signature provides too many arguments. Expected {0} or more, but got {1}."),Import_declaration_0_is_using_private_name_1:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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}'."),Cannot_read_file_0_Colon_1:la(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Unknown_compiler_option_0:la(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:la(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:la(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:la(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:la(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:la(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:la(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:la(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:la(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:la(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:la(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:la(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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_or_to_es2015_or_later:la(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:la(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:la(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:la(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:la(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:la(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:la(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:la(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:la(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:la(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:la(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:la(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:la(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:la(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}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:la(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:la(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:la(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:la(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:la(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:la(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:la(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:la(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:la(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:la(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:la(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:la(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:la(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:la(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:la(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:la(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:la(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:la(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:la(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:la(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:la(6024,3,"options_6024","options"),file:la(6025,3,"file_6025","file"),Examples_Colon_0:la(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:la(6027,3,"Options_Colon_6027","Options:"),Version_0:la(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:la(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:la(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:la(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:la(6034,3,"KIND_6034","KIND"),FILE:la(6035,3,"FILE_6035","FILE"),VERSION:la(6036,3,"VERSION_6036","VERSION"),LOCATION:la(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:la(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:la(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:la(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:la(6041,3,"Errors_Files_6041","Errors  Files"),Generates_corresponding_map_file:la(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:la(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:la(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:la(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:la(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:la(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:la(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:la(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:la(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:la(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:la(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:la(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:la(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:la(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:la(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:la(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:la(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:la(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:la(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:la(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:la(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:la(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:la(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:la(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:la(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:la(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:la(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:la(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:la(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:la(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:la(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:la(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:la(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:la(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:la(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:la(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:la(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:la(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:la(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:la(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:la(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:la(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:la(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:la(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:la(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:la(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:la(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:la(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:la(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:la(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:la(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:la(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:la(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:la(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:la(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:la(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:la(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:la(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5:la(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:la(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:la(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:la(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:la(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:la(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:la(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:la(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:la(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:la(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:la(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:la(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:la(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:la(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:la(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:la(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:la(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:la(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:la(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:la(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:la(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:la(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:la(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:la(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:la(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:la(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:la(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:la(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:la(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:la(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:la(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:la(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:la(6244,3,"Modules_6244","Modules"),File_Management:la(6245,3,"File_Management_6245","File Management"),Emit:la(6246,3,"Emit_6246","Emit"),JavaScript_Support:la(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:la(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:la(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:la(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:la(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:la(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:la(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:la(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:la(6255,3,"Projects_6255","Projects"),Output_Formatting:la(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:la(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:la(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:la(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6281,3,"package_json_has_a_peerDependencies_field_6281","'package.json' has a 'peerDependencies' field."),Found_peerDependency_0_with_1_version:la(6282,3,"Found_peerDependency_0_with_1_version_6282","Found peerDependency '{0}' with '{1}' version."),Failed_to_find_peerDependency_0:la(6283,3,"Failed_to_find_peerDependency_0_6283","Failed to find peerDependency '{0}'."),Enable_project_compilation:la(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:la(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:la(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:la(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:la(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:la(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:la(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:la(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:la(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:la(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:la(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:la(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:la(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:la(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:la(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:la(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:la(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:la(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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 '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:la(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:la(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:la(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:la(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:la(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:la(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:la(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:la(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:la(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:la(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:la(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:la(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:la(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'."),Default_catch_clause_variables_as_unknown_instead_of_any:la(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:la(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:la(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:la(6806,3,"Check_side_effect_imports_6806","Check side effect imports."),This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2:la(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}`."),one_of_Colon:la(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:la(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:la(6902,3,"type_Colon_6902","type:"),default_Colon:la(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:la(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:la(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:la(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:la(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:la(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:la(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:la(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:la(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:la(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:la(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:la(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:la(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:la(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:la(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:la(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:la(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:la(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:la(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:la(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:la(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:la(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:la(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:la(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:la(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:la(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:la(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:la(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:la(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."),Variable_0_implicitly_has_an_1_type:la(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:la(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:la(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:la(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:la(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:la(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:la(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:la(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:la(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:la(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:la(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:la(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:la(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:la(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:la(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:la(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:la(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:la(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:la(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:la(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:la(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:la(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:la(90013,3,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:la(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:la(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:la(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:la(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:la(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:la(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:la(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:la(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:la(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:la(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:la(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:la(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:la(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:la(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:la(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:la(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:la(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:la(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:la(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:la(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:la(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:la(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:la(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:la(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:la(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:la(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:la(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:la(90056,3,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:la(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:la(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:la(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:la(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Update_modifiers_of_0:la(90061,3,"Update_modifiers_of_0_90061","Update modifiers of '{0}'"),Add_annotation_of_type_0:la(90062,3,"Add_annotation_of_type_0_90062","Add annotation of type '{0}'"),Add_return_type_0:la(90063,3,"Add_return_type_0_90063","Add return type '{0}'"),Extract_base_class_to_variable:la(90064,3,"Extract_base_class_to_variable_90064","Extract base class to variable"),Extract_default_export_to_variable:la(90065,3,"Extract_default_export_to_variable_90065","Extract default export to variable"),Extract_binding_expressions_to_variable:la(90066,3,"Extract_binding_expressions_to_variable_90066","Extract binding expressions to variable"),Add_all_missing_type_annotations:la(90067,3,"Add_all_missing_type_annotations_90067","Add all missing type annotations"),Add_satisfies_and_an_inline_type_assertion_with_0:la(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:la(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:la(90070,3,"Mark_array_literal_as_const_90070","Mark array literal as const"),Annotate_types_of_properties_expando_function_in_a_namespace:la(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:la(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:la(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:la(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:la(95005,3,"Extract_function_95005","Extract function"),Extract_constant:la(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:la(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:la(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:la(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:la(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:la(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:la(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:la(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:la(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:la(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:la(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:la(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:la(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:la(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:la(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:la(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:la(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:la(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:la(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:la(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:la(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:la(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:la(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:la(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:la(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:la(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:la(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:la(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:la(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:la(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:la(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:la(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:la(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:la(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:la(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:la(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:la(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:la(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:la(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:la(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:la(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:la(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:la(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:la(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:la(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:la(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:la(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:la(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:la(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:la(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:la(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:la(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:la(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:la(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:la(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:la(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:la(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:la(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:la(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:la(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:la(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:la(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:la(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:la(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:la(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:la(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:la(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:la(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:la(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:la(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:la(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:la(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:la(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:la(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:la(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:la(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:la(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:la(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:la(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:la(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:la(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:la(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:la(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:la(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:la(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:la(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:la(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:la(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:la(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:la(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:la(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:la(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:la(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:la(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:la(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:la(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:la(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:la(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:la(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:la(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:la(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:la(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:la(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:la(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:la(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:la(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:la(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:la(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:la(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:la(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:la(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:la(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:la(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:la(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:la(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:la(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:la(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:la(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:la(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:la(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:la(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:la(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:la(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:la(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:la(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:la(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:la(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:la(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:la(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:la(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:la(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:la(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:la(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:la(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:la(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:la(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:la(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:la(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:la(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:la(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:la(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:la(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:la(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:la(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:la(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:la(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:la(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:la(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:la(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:la(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:la(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:la(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:la(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:la(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:la(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:la(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:la(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:la(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:la(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:la(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:la(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:la(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:la(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:la(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:la(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:la(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:la(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:la(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:la(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:la(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:la(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:la(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:la(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:la(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:la(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:la(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:la(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:la(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:la(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:la(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:la(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:la(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:la(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:la(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),Wrap_in_parentheses:la(95194,3,"Wrap_in_parentheses_95194","Wrap in parentheses"),Wrap_all_invalid_decorator_expressions_in_parentheses:la(95195,3,"Wrap_all_invalid_decorator_expressions_in_parentheses_95195","Wrap all invalid decorator expressions in parentheses"),Add_resolution_mode_import_attribute:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(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:la(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:la(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:la(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:la(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:la(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:la(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:la(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:la(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:la(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:la(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:la(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'.")};function ua(e){return e>=80}function da(e){return 32===e||ua(e)}var pa={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,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},fa=new Map(Object.entries(pa)),ma=new Map(Object.entries({...pa,"{":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,"</":31,">>":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})),ga=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),ha=new Map([[1,Ni.RegularExpressionFlagsHasIndices],[16,Ni.RegularExpressionFlagsDotAll],[32,Ni.RegularExpressionFlagsUnicode],[64,Ni.RegularExpressionFlagsUnicodeSets],[128,Ni.RegularExpressionFlagsSticky]]),ya=[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],va=[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],ba=[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],xa=[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],ka=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Sa=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Ta=/@(?:see|link)/i;function Ca(e,t){if(e<t[0])return!1;let n,r=0,i=t.length;for(;r+1<i;){if(n=r+(i-r)/2,n-=n%2,t[n]<=e&&e<=t[n+1])return!0;e<t[n]?i=n:r=n+2}return!1}function wa(e,t){return Ca(e,t>=2?ba:ya)}function Na(e){const t=[];return e.forEach(((e,n)=>{t[e]=n})),t}var Da=Na(ma);function Fa(e){return Da[e]}function Ea(e){return ma.get(e)}var Pa=Na(ga);function Aa(e){return Pa[e]}function Ia(e){return ga.get(e)}function Oa(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e.charCodeAt(n);switch(n++,i){case 13:10===e.charCodeAt(n)&&n++;case 10:t.push(r),r=n;break;default:i>127&&Va(i)&&(t.push(r),r=n)}}return t.push(r),t}function La(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):ja(Ra(e),t,n,e.text,r)}function ja(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,Oa(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<e.length-1?_n.assert(o<e[t+1]):void 0!==r&&_n.assert(o<=r.length),o)}function Ra(e){return e.lineMap||(e.lineMap=Oa(e.text))}function Ma(e,t){const n=Ba(e,t);return{line:n,character:t-e[n]}}function Ba(e,t,n){let r=Se(e,t,at,yt,n);return r<0&&(r=~r-1,_n.assert(-1!==r,"position cannot precede the beginning of the file")),r}function Ja(e,t,n){if(t===n)return 0;const r=Ra(e),i=Math.min(t,n),o=i===n,a=o?t:n,s=Ba(r,i),c=Ba(r,a,s);return o?s-c:c-s}function za(e,t){return Ma(Ra(e),t)}function qa(e){return Ua(e)||Va(e)}function Ua(e){return 32===e||9===e||11===e||12===e||160===e||133===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function Va(e){return 10===e||13===e||8232===e||8233===e}function Wa(e){return e>=48&&e<=57}function $a(e){return Wa(e)||e>=65&&e<=70||e>=97&&e<=102}function Ha(e){return e>=65&&e<=90||e>=97&&e<=122}function Ka(e){return Ha(e)||Wa(e)||95===e}function Ga(e){return e>=48&&e<=55}function Xa(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 Qa(e,t,n,r,i){if(QS(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;t<e.length&&!Va(e.charCodeAt(t));)t++;o=!1;continue}if(42===e.charCodeAt(t+1)){for(t+=2;t<e.length;){if(42===e.charCodeAt(t)&&47===e.charCodeAt(t+1)){t+=2;break}t++}o=!1;continue}break;case 60:case 124:case 61:case 62:if(Za(e,t)){t=es(e,t),o=!1;continue}break;case 35:if(0===t&&ns(e,t)){t=rs(e,t),o=!1;continue}break;case 42:if(o){t++,o=!1;continue}break;default:if(a>127&&qa(a)){t++;continue}}return t}}var Ya=7;function Za(e,t){if(_n.assert(t>=0),0===t||Va(e.charCodeAt(t-1))){const n=e.charCodeAt(t);if(t+Ya<e.length){for(let r=0;r<Ya;r++)if(e.charCodeAt(t+r)!==n)return!1;return 61===n||32===e.charCodeAt(t+Ya)}}return!1}function es(e,t,n){n&&n(_a.Merge_conflict_marker_encountered,t,Ya);const r=e.charCodeAt(t),i=e.length;if(60===r||62===r)for(;t<i&&!Va(e.charCodeAt(t));)t++;else for(_n.assert(124===r||61===r);t<i;){const n=e.charCodeAt(t);if((61===n||62===n)&&n!==r&&Za(e,t))break;t++}return t}var ts=/^#!.*/;function ns(e,t){return _n.assert(0===t),ts.test(e)}function rs(e,t){return t+=ts.exec(e)[0].length}function is(e,t,n,r,i,o,a){let s,c,l,_,u=!1,d=r,p=a;if(0===n){d=!0;const e=ds(t);e&&(n=e.length)}e:for(;n>=0&&n<t.length;){const a=t.charCodeAt(n);switch(a){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)break e;d=!0,u&&(_=!0);continue;case 9:case 11:case 12:case 32:n++;continue;case 47:const f=t.charCodeAt(n+1);let m=!1;if(47===f||42===f){const r=47===f?2:3,a=n;if(n+=2,47===f)for(;n<t.length;){if(Va(t.charCodeAt(n))){m=!0;break}n++}else for(;n<t.length;){if(42===t.charCodeAt(n)&&47===t.charCodeAt(n+1)){n+=2;break}n++}if(d){if(u&&(p=i(s,c,l,_,o,p),!e&&p))return p;s=a,c=n,l=r,_=m,u=!0}continue}break e;default:if(a>127&&qa(a)){u&&Va(a)&&(_=!0),n++;continue}break e}}return u&&(p=i(s,c,l,_,o,p)),p}function os(e,t,n,r){return is(!1,e,t,!1,n,r)}function as(e,t,n,r){return is(!1,e,t,!0,n,r)}function ss(e,t,n,r,i){return is(!0,e,t,!1,n,r,i)}function cs(e,t,n,r,i){return is(!0,e,t,!0,n,r,i)}function ls(e,t,n,r,i,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),o}function _s(e,t){return ss(e,t,ls,void 0,void 0)}function us(e,t){return cs(e,t,ls,void 0,void 0)}function ds(e){const t=ts.exec(e);if(t)return t[0]}function ps(e,t){return Ha(e)||36===e||95===e||e>127&&wa(e,t)}function fs(e,t,n){return Ka(e)||36===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return Ca(e,t>=2?xa:va)}(e,t)}function ms(e,t,n){let r=hs(e,0);if(!ps(r,t))return!1;for(let i=ys(r);i<e.length;i+=ys(r))if(!fs(r=hs(e,i),t,n))return!1;return!0}function gs(e,t,n=0,r,i,o,a){var s,c,l,u,d,p,f,m,g=r,h=0,y=0,v=0;Y(g,o,a);var b={getTokenFullStart:()=>l,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||Va(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<l;){const n=S(s);if(r)r=!1;else if(92===n)r=!0;else if(91===n)e++;else if(93===n&&e)e--;else if(!e)if(123===n)t=!0;else if(125===n&&t)t=!1;else if(!t)if(40===n)i++;else if(41===n&&i)i--;else if(41===n||93===n||125===n)break;s++}for(;qa(T(s-1))||59===T(s-1);)s--;C(_a.Unterminated_regular_expression_literal,u,s-u)}else{s++;let r=0;for(;;){const n=k(s);if(-1===n||!fs(n,e))break;const i=ys(n);if(t){const e=Ia(n);void 0===e?C(_a.Unknown_regular_expression_flag,s,i):r&e?C(_a.Duplicate_regular_expression_flag,s,i):96&~(r|e)?(r|=e,W(e,i)):C(_a.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously,s,i)}s+=i}t&&Q(n,l-n,(()=>{!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:D(),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(_a.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,t,s-t),v++,n=!0}break;default:const r=s,i=N(0);45===T(s)&&(s++,N(i),s===r+1&&C(_a.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(_a.Numbers_out_of_order_in_quantifier,o,s-o);else{if(!e&&125!==T(s)){C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,r,1,String.fromCharCode(i)),n=!0;break}C(_a.Incomplete_quantifier_Digit_expected,o,0)}}else if(!a){h&&C(_a.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(_a._0_expected,s,0,String.fromCharCode(125)),s--}case 42:case 43:case 63:63===T(++s)&&s++,n||C(_a.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(_a.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 N(t){for(;;){const n=k(s);if(-1===n||!fs(n,e))break;const r=ys(n),i=Ia(n);void 0===i?C(_a.Unknown_regular_expression_flag,s,r):t&i?C(_a.Duplicate_regular_expression_flag,s,r):28&i?(t|=i,W(i,r)):C(_a.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,s,r),s+=r}return t}function D(){switch(_n.assertEqual(S(s-1),92),T(s)){case 107:60===T(++s)?(s++,A(!0),H(62)):(h||r)&&C(_a.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,s-2,2);break;case 113:if(f){s++,C(_a.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(_a.Undetermined_character_escape,s-1,1),"\\";case 99:if(t=T(++s),Ha(t))return s++,String.fromCharCode(31&t);if(h)C(_a.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(_a.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(_a.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(_a.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(_a.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);continue}if(!t)continue;const i=hs(t,0),o=hs(r,0);t.length===ys(i)&&r.length===ys(o)&&i>o&&C(_a.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(_a.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(_a.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(_a.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(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n));break;default:e&&y&&C(_a.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(_a.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(_a.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(_a.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(_a.A_character_class_range_must_not_be_bounded_by_another_character_class,n,s-n);break}if(!r)break;const a=hs(r,0),c=hs(o,0);r.length===ys(a)&&o.length===ys(c)&&a>c&&C(_a.Range_out_of_order_in_character_class,i,s-i)}break;case 38:i=s,38===T(++s)?(s++,C(_a.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(_a.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(_a.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(_a.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2)):C(_a.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(_a.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,s-2,2),38===T(s)&&(C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s,1,String.fromCharCode(n)),s++)):C(_a.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,s-1,1,String.fromCharCode(n));break;default:switch(e){case 3:C(_a._0_expected,s,0,"--");break;case 2:C(_a._0_expected,s,0,"&&")}}if(n=T(s),I(n)){C(_a.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(_a.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(_a.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(_a.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=xs.get(r);if(s===n)C(_a.Expected_a_Unicode_property_name);else if(void 0===e){C(_a.Unknown_Unicode_property_name,n,s-n);const e=Ot(r,xs.keys(),at);e&&C(_a.Did_you_mean_0,n,s-n,e)}const t=++s,i=U();if(s===t)C(_a.Expected_a_Unicode_property_value);else if(void 0!==e&&!Ts[e].has(i)){C(_a.Unknown_Unicode_property_value,t,s-t);const n=Ot(i,Ts[e],at);n&&C(_a.Did_you_mean_0,t,s-t,n)}}else if(s===n)C(_a.Expected_a_Unicode_property_name_or_value);else if(Ss.has(r))f?e?C(_a.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,n,s-n):y=!0:C(_a.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(!Ts.General_Category.has(r)&&!ks.has(r)){C(_a.Unknown_Unicode_property_name_or_value,n,s-n);const e=Ot(r,[...Ts.General_Category,...ks,...Ss],at);e&&C(_a.Did_you_mean_0,n,s-n,e)}H(125),m||C(_a.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(_a._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||!Ka(t))break;e+=String.fromCharCode(t),s++}return e}function $(){const e=m?ys(k(s)):1;return s+=e,e>0?g.substring(s-e,s):""}function H(e){T(s)===e?s++:C(_a._0_expected,s,0,String.fromCharCode(e))}x(!1),_(a,(e=>{if(!(null==i?void 0:i.has(e.name))&&(C(_a.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(_a.Did_you_mean_0,e.pos,e.end-e.pos,t)}})),_(l,(e=>{e.value>v&&(v?C(_a.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(_a.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(ua(d)){for(;s<c;){if(45===S(s)){p+="-",s++;continue}const e=s;if(p+=M(),s===e)break}return B()}return d},scanJsxAttributeValue:K,reScanJsxAttributeValue:function(){return s=u=l,K()},reScanJsxToken:function(e=!0){return s=u=l,d=H(e)},reScanLessThanToken:function(){if(48===d)return s=u+1,d=30;return d},reScanHashToken:function(){if(81===d)return s=u+1,d=63;return d},reScanQuestionToken:function(){return _n.assert(61===d,"'reScanQuestionToken' should only be called on a '??'"),s=u+1,d=58},reScanInvalidIdentifier:function(){_n.assert(0===d,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),s=u=l,f=0;const e=x(s),t=V(e,99);if(t)return d=t;return s+=ys(e),d},scanJsxToken:H,scanJsDocToken:G,scanJSDocCommentTextToken:function(e){if(l=u=s,f=0,s>=c)return d=1;for(let t=S(s);s<c&&!Va(t)&&96!==t;t=x(++s))if(!e){if(123===t)break;if(64===t&&s-1>=0&&Ua(S(s-1))&&!(s+1<c&&qa(S(s+1))))break}if(s===u)return G();return p=g.substring(u,s),d=82},scan:q,getText:function(){return g},clearCommentDirectives:function(){m=void 0},setText:Y,setScriptTarget:function(t){e=t},setLanguageVariant:function(e){n=e},setScriptKind:function(e){y=e},setJSDocParsingMode:function(e){v=e},setOnError:function(e){i=e},resetTokenState:Z,setTextPos:Z,setSkipJsDocLeadingAsterisks:function(e){h+=e?1:-1},tryScan:function(e){return X(e,!1)},lookAhead:function(e){return X(e,!0)},scanRange:Q};return _n.isDebugging&&Object.defineProperty(b,"__debugShowCurrentPositionInText",{get:()=>{const e=b.getText();return e.slice(0,b.getTokenFullStart())+"║"+e.slice(b.getTokenFullStart())}}),b;function x(e){return hs(g,e)}function k(e){return e>=0&&e<c?x(e):-1}function S(e){return g.charCodeAt(e)}function T(e){return e>=0&&e<c?S(e):-1}function C(e,t=s,n,r){if(i){const o=s;s=t,i(e,n||0,r),s=o}}function w(){let e=s,t=!1,n=!1,r="";for(;;){const i=S(s);if(95!==i){if(!Wa(i))break;t=!0,n=!1,s++}else f|=512,t?(t=!1,n=!0,r+=g.substring(e,s)):(f|=16384,C(n?_a.Multiple_consecutive_numeric_separators_are_not_permitted:_a.Numeric_separators_are_not_allowed_here,s,1)),e=++s}return 95===S(s-1)&&(f|=16384,C(_a.Numeric_separators_are_not_allowed_here,s-1,1)),r+g.substring(e,s)}function N(){let e,t,n,r=s;if(48===S(s))if(95===S(++s))f|=16896,C(_a.Numeric_separators_are_not_allowed_here,s,1),s--,e=w();else if(F()){if(p){p=""+parseInt(p,8),f|=32;const e=41===d,t=(e?"-":"")+"0o"+(+p).toString(8);return e&&r--,C(_a.Octal_literals_are_not_allowed_Use_the_syntax_0,r,s-r,t),9}e="0"}else f|=8192,e=""+ +p;else e=w();46===S(s)&&(s++,t=w());let i,o=s;if(69===S(s)||101===S(s)){s++,f|=16,43!==S(s)&&45!==S(s)||s++;const e=s,t=w();t?(n=g.substring(o,e)+t,o=s):C(_a.Digit_expected)}if(512&f?(i=e,t&&(i+="."+t),n&&(i+=n)):i=g.substring(r,o),8192&f)return C(_a.Decimals_with_leading_zeros_are_not_allowed,r,o-r),p=""+ +i,9;if(void 0!==t||16&f)return D(r,void 0===t&&!!(16&f)),p=""+ +i,9;{p=i;const e=z();return D(r),e}}function D(t,n){if(!ps(x(s),e))return;const r=s,{length:i}=M();1===i&&"n"===g[r]?C(n?_a.A_bigint_literal_cannot_use_exponential_notation:_a.A_bigint_literal_must_be_an_integer,t,r-t+1):(C(_a.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,r,i),s=r)}function F(){const e=s;let t=!0;for(;Wa(T(s));)Ga(S(s))||(t=!1),s++;return p=g.substring(e,s),t}function E(e,t){return P(e,!0,t)}function P(e,t,n){let r=[],i=!1,o=!1;for(;r.length<e||t;){let e=S(s);if(n&&95===e)f|=512,i?(i=!1,o=!0):C(o?_a.Multiple_consecutive_numeric_separators_are_not_permitted:_a.Numeric_separators_are_not_allowed_here,s,1),s++;else{if(i=n,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<e&&(r=[]),95===S(s-1)&&C(_a.Numeric_separators_are_not_allowed_here,s-1,1),String.fromCharCode(...r)}function A(e=!1){const t=S(s);let n="",r=++s;for(;;){if(s>=c){n+=g.substring(r,s),f|=4,C(_a.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(_a.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(_a.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&&123===S(s+1)){i+=g.substring(r,s),s+=2,n=t?16:17;break}92!==o?13!==o?s++:(i+=g.substring(r,s),++s<c&&10===S(s)&&s++,i+="\n",r=s):(i+=g.substring(r,s),i+=O(1|(e?2:0)),r=s)}return _n.assert(void 0!==n),p=i,n}function O(t){const n=s;if(++s>=c)return C(_a.Unexpected_end_of_text),"";const r=S(s);switch(s++,r){case 48:if(s>=c||!Wa(S(s)))return"\0";case 49:case 50:case 51:s<c&&Ga(S(s))&&s++;case 52:case 53:case 54:case 55:if(s<c&&Ga(S(s))&&s++,f|=2048,6&t){const e=parseInt(g.substring(n+1,s),8);return C(4&t&&!(32&t)&&48!==r?_a.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.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,n,s-n,"\\x"+e.toString(16).padStart(2,"0")),String.fromCharCode(e)}return g.substring(n,s);case 56:case 57:return f|=2048,6&t?(4&t&&!(32&t)?C(_a.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,n,s-n):C(_a.Escape_sequence_0_is_not_allowed,n,s-n,g.substring(n,s)),String.fromCharCode(r)):g.substring(n,s);case 98:return"\b";case 116:return"\t";case 110:return"\n";case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(s<c&&123===S(s)){s-=2;const e=L(!!(6&t));return 17&t||(f|=2048,6&t&&C(_a.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,n,s-n)),e}for(;s<n+6;s++)if(!(s<c&&$a(S(s))))return f|=2048,6&t&&C(_a.Hexadecimal_digit_expected),g.substring(n,s);f|=1024;const i=parseInt(g.substring(n+2,s),16),o=String.fromCharCode(i);if(16&t&&i>=55296&&i<=56319&&s+6<c&&"\\u"===g.substring(s,s+2)&&123!==S(s+2)){const e=s;let t=s+2;for(;t<e+6;t++)if(!$a(S(t)))return o;const n=parseInt(g.substring(e+2,t),16);if(n>=56320&&n<=57343)return s=t,o+String.fromCharCode(n)}return o;case 120:for(;s<n+4;s++)if(!(s<c&&$a(S(s))))return f|=2048,6&t&&C(_a.Hexadecimal_digit_expected),g.substring(n,s);return f|=4096,String.fromCharCode(parseInt(g.substring(n+2,s),16));case 13:s<c&&10===S(s)&&s++;case 10:case 8232:case 8233:return"";default:return(16&t||4&t&&!(8&t)&&fs(r,e))&&C(_a.This_character_cannot_be_escaped_in_a_regular_expression,s-2,2),String.fromCharCode(r)}}function L(e){const t=s,n=s+=3,r=E(1,!1),i=r?parseInt(r,16):-1;let o=!1;return i<0?(e&&C(_a.Hexadecimal_digit_expected),o=!0):i>1114111&&(e&&C(_a.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,n,s-n),o=!0),s>=c?(e&&C(_a.Unexpected_end_of_text),o=!0):125===S(s)?s++:(e&&C(_a.Unterminated_Unicode_escape_sequence),o=!0),o?(f|=2048,g.substring(t,s)):(f|=8,bs(i))}function j(){if(s+5<c&&117===S(s+1)){const e=s;s+=2;const t=function(e,t){const n=P(e,!1,t);return n?parseInt(n,16):-1}(4,!1);return s=e,t}return-1}function R(){if(117===x(s+1)&&123===x(s+2)){const e=s;s+=3;const t=E(1,!1),n=t?parseInt(t,16):-1;return s=e,n}return-1}function M(){let t="",n=s;for(;s<c;){let r=x(s);if(fs(r,e))s+=ys(r);else{if(92!==r)break;if(r=R(),r>=0&&fs(r,e)){t+=L(!0),n=s;continue}if(r=j(),!(r>=0&&fs(r,e)))break;f|=1024,t+=g.substring(n,s),t+=bs(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=fa.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,!Wa(i)||i-48>=e)break;t+=g[s],s++,r=!1}else f|=512,n?(n=!1,r=!0):C(r?_a.Multiple_consecutive_numeric_separators_are_not_permitted:_a.Numeric_separators_are_not_allowed_here,s,1),s++}return 95===S(s-1)&&C(_a.Numeric_separators_are_not_allowed_here,s-1,1),t}function z(){if(110===S(s))return p+="n",384&f&&(p=gT(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&&ns(g,s)){if(s=rs(g,s),t)continue;return d=6}switch(r){case 10:case 13:if(f|=1,t){s++;continue}return 13===r&&s+1<c&&10===S(s+1)?s+=2:s++,d=4;case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8203:case 8239:case 8287:case 12288:case 65279:if(t){s++;continue}for(;s<c&&Ua(S(s));)s++;return d=5;case 33:return 61===S(s+1)?61===S(s+2)?(s+=3,d=38):(s+=2,d=36):(s++,d=54);case 34:case 39:return p=A(),d=11;case 96:return d=I(!1);case 37:return 61===S(s+1)?(s+=2,d=70):(s++,d=45);case 38:return 38===S(s+1)?61===S(s+2)?(s+=3,d=77):(s+=2,d=56):61===S(s+1)?(s+=2,d=74):(s++,d=51);case 40:return s++,d=21;case 41:return s++,d=22;case 42:if(61===S(s+1))return s+=2,d=67;if(42===S(s+1))return 61===S(s+2)?(s+=3,d=68):(s+=2,d=43);if(s++,h&&!(32768&f)&&1&f){f|=32768;continue}return d=42;case 43:return 43===S(s+1)?(s+=2,d=46):61===S(s+1)?(s+=2,d=65):(s++,d=40);case 44:return s++,d=28;case 45:return 45===S(s+1)?(s+=2,d=47):61===S(s+1)?(s+=2,d=66):(s++,d=41);case 46:return Wa(S(s+1))?(N(),d=9):46===S(s+1)&&46===S(s+2)?(s+=3,d=26):(s++,d=25);case 47:if(47===S(s+1)){for(s+=2;s<c&&!Va(S(s));)s++;if(m=$(m,g.slice(u,s),ka,u),t)continue;return d=2}if(42===S(s+1)){const e=42===S(s+=2)&&47!==S(s+1);let n=!1,r=u;for(;s<c;){const e=S(s);if(42===e&&47===S(s+1)){s+=2,n=!0;break}s++,Va(e)&&(r=s,f|=1)}if(e&&U()&&(f|=2),m=$(m,g.slice(r,s),Sa,r),n||C(_a.Asterisk_Slash_expected),t)continue;return n||(f|=4),d=3}return 61===S(s+1)?(s+=2,d=69):(s++,d=44);case 48:if(s+2<c&&(88===S(s+1)||120===S(s+1)))return s+=2,(p=E(1,!0))||(C(_a.Hexadecimal_digit_expected),p="0"),p="0x"+p,f|=64,d=z();if(s+2<c&&(66===S(s+1)||98===S(s+1)))return s+=2,(p=J(2))||(C(_a.Binary_digit_expected),p="0"),p="0b"+p,f|=128,d=z();if(s+2<c&&(79===S(s+1)||111===S(s+1)))return s+=2,(p=J(8))||(C(_a.Octal_digit_expected),p="0"),p="0o"+p,f|=256,d=z();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return d=N();case 58:return s++,d=59;case 59:return s++,d=27;case 60:if(Za(g,s)){if(s=es(g,s,C),t)continue;return d=7}return 60===S(s+1)?61===S(s+2)?(s+=3,d=71):(s+=2,d=48):61===S(s+1)?(s+=2,d=33):1===n&&47===S(s+1)&&42!==S(s+2)?(s+=2,d=31):(s++,d=30);case 61:if(Za(g,s)){if(s=es(g,s,C),t)continue;return d=7}return 61===S(s+1)?61===S(s+2)?(s+=3,d=37):(s+=2,d=35):62===S(s+1)?(s+=2,d=39):(s++,d=64);case 62:if(Za(g,s)){if(s=es(g,s,C),t)continue;return d=7}return s++,d=32;case 63:return 46!==S(s+1)||Wa(S(s+2))?63===S(s+1)?61===S(s+2)?(s+=3,d=78):(s+=2,d=61):(s++,d=58):(s+=2,d=29);case 91:return s++,d=23;case 93:return s++,d=24;case 94:return 61===S(s+1)?(s+=2,d=79):(s++,d=53);case 123:return s++,d=19;case 124:if(Za(g,s)){if(s=es(g,s,C),t)continue;return d=7}return 124===S(s+1)?61===S(s+2)?(s+=3,d=76):(s+=2,d=57):61===S(s+1)?(s+=2,d=75):(s++,d=52);case 125:return s++,d=20;case 126:return s++,d=55;case 64:return s++,d=60;case 92:const i=R();if(i>=0&&ps(i,e))return p=L(!0)+M(),d=B();const o=j();return o>=0&&ps(o,e)?(s+=6,f|=1024,p=String.fromCharCode(o)+M(),d=B()):(C(_a.Invalid_character),s++,d=0);case 35:if(0!==s&&"!"===g[s+1])return C(_a.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&&ps(t,e))return p="#"+L(!0)+M(),d=81;const n=j();if(n>=0&&ps(n,e))return s+=6,f|=1024,p="#"+String.fromCharCode(n)+M(),d=81;s--}return ps(a,e)?(s++,V(a,e)):(p="#",C(_a.Invalid_character,s++,ys(r))),d=81;case 65533:return C(_a.File_appears_to_be_binary,0,0),s=c,d=8;default:const l=V(r,e);if(l)return d=l;if(Ua(r)){s+=ys(r);continue}if(Va(r)){f|=1,s+=ys(r);continue}const _=ys(r);return C(_a.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&&Ta.test(g.slice(l,s))}function V(e,t){let n=e;if(ps(n,t)){for(s+=ys(n);s<c&&fs(n=x(s),t);)s+=ys(n);return p=g.substring(u,s),92===n&&(p+=M()),B()}}function W(t,n){const r=ha.get(t);r&&e<r&&C(_a.This_regular_expression_flag_is_only_available_when_targeting_0_or_later,s,n,qk(r))}function $(e,t,n,r){const i=function(e,t){const n=t.exec(e);if(!n)return;switch(n[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}return}(t.trimStart(),n);return void 0===i?e:re(e,{range:{pos:r,end:s},type:i})}function H(e=!0){if(l=u=s,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(;s<c&&(t=S(s),123!==t);){if(60===t){if(Za(g,s))return s=es(g,s,C),d=7;break}if(62===t&&C(_a.Unexpected_token_Did_you_mean_or_gt,s,1),125===t&&C(_a.Unexpected_token_Did_you_mean_or_rbrace,s,1),Va(t)&&0===n)n=-1;else{if(!e&&Va(t)&&n>0)break;qa(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+=ys(t),t){case 9:case 11:case 12:case 32:for(;s<c&&Ua(S(s));)s++;return d=5;case 64:return d=60;case 13:10===S(s)&&s++;case 10:return f|=1,d=4;case 42:return d=42;case 123:return d=19;case 125:return d=20;case 91:return d=23;case 93:return d=24;case 40:return d=21;case 41:return d=22;case 60:return d=30;case 62:return d=32;case 61:return d=64;case 44:return d=28;case 46:return d=25;case 96:return d=62;case 35:return d=63;case 92:s--;const t=R();if(t>=0&&ps(t,e))return p=L(!0)+M(),d=B();const n=j();return n>=0&&ps(n,e)?(s+=6,f|=1024,p=String.fromCharCode(n)+M(),d=B()):(s++,d=0)}if(ps(t,e)){let n=t;for(;s<c&&fs(n=x(s),e)||45===n;)s+=ys(n);return p=g.substring(u,s),92===n&&(p+=M()),d=B()}return d=0}function X(e,t){const n=s,r=l,i=u,o=d,a=p,c=f,_=e();return _&&!t||(s=n,l=r,u=i,d=o,p=a,f=c),_}function Q(e,t,n){const r=c,i=s,o=l,a=u,_=d,h=p,y=f,v=m;Y(g,e,t);const b=n();return c=r,s=i,l=o,u=a,d=_,p=h,f=y,m=v,b}function Y(e,t,n){g=e||"",c=void 0===n?g.length:t+n,Z(t||0)}function Z(e){_n.assert(e>=0),s=e,l=e,u=e,d=0,p=void 0,f=0}}function hs(e,t){return e.codePointAt(t)}function ys(e){return e>=65536?2:-1===e?0:1}var vs=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 bs(e){return vs(e)}var xs=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),ks=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"]),Ss=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"]),Ts={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 Cs(e){return bo(e)||ho(e)}function ws(e){return Z(e,rk,sk)}Ts.Script_Extensions=Ts.Script;var Ns=new Map([[99,"lib.esnext.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 Ds(e){const t=vk(e);switch(t){case 99: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 Fs(e){return e.start+e.length}function Es(e){return 0===e.length}function Ps(e,t){return t>=e.start&&t<Fs(e)}function As(e,t){return t>=e.pos&&t<=e.end}function Is(e,t){return t.start>=e.start&&Fs(t)<=Fs(e)}function Os(e,t){return t.pos>=e.start&&t.end<=Fs(e)}function Ls(e,t){return t.start>=e.pos&&Fs(t)<=e.end}function js(e,t){return void 0!==Rs(e,t)}function Rs(e,t){const n=Us(e,t);return n&&0===n.length?void 0:n}function Ms(e,t){return Js(e.start,e.length,t.start,t.length)}function Bs(e,t,n){return Js(e.start,e.length,t,n)}function Js(e,t,n,r){return n<=e+t&&n+r>=e}function zs(e,t){return t<=Fs(e)&&t>=e.start}function qs(e,t){return Bs(t,e.pos,e.end-e.pos)}function Us(e,t){const n=Math.max(e.start,t.start),r=Math.min(Fs(e),Fs(t));return n<=r?$s(n,r):void 0}function Vs(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<e.length;){let r=e[n],i=n+1;for(;i<e.length&&Ms(r,e[i]);){r=$s(Math.min(r.start,e[i].start),Math.max(Fs(r),Fs(e[i]))),i++}n=i,t.push(r)}return t}function Ws(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function $s(e,t){return Ws(e,t-e)}function Hs(e){return Ws(e.span.start,e.newLength)}function Ks(e){return Es(e.span)&&0===e.newLength}function Gs(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}var Xs=Gs(Ws(0,0),0);function Qs(e){if(0===e.length)return Xs;if(1===e.length)return e[0];const t=e[0];let n=t.span.start,r=Fs(t.span),i=n+t.newLength;for(let t=1;t<e.length;t++){const o=e[t],a=n,s=r,c=i,l=o.span.start,_=Fs(o.span),u=l+o.newLength;n=Math.min(a,l),r=Math.max(s,s+(_-c)),i=Math.max(u,u+(c-_))}return Gs($s(n,r),i-n)}function Ys(e){if(e&&168===e.kind)for(let t=e;t;t=t.parent)if(r_(t)||u_(t)||264===t.kind)return t}function Zs(e,t){return cD(e)&&Dv(e,31)&&176===t.kind}function ec(e){return!!k_(e)&&h(e.elements,tc)}function tc(e){return!!hF(e)||ec(e.name)}function nc(e){let t=e.parent;for(;HD(t.parent);)t=t.parent.parent;return t.parent}function rc(e,t){HD(e)&&(e=nc(e));let n=t(e);return 260===e.kind&&(e=e.parent),e&&261===e.kind&&(n|=t(e),e=e.parent),e&&243===e.kind&&(n|=t(e)),n}function ic(e){return rc(e,Jv)}function oc(e){return rc(e,zv)}function ac(e){return rc(e,sc)}function sc(e){return e.flags}var cc=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"];function lc(e,t,n){const r=e.toLowerCase(),i=/^([a-z]+)(?:[_-]([a-z]+))?$/.exec(r);if(!i)return void(n&&n.push(Yx(_a.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp")));const o=i[1],a=i[2];function s(e,n,r){let i=Ro(Fo(zo(t.getExecutingFilePath())),e);if(n&&(i=i+"-"+n),i=t.resolvePath(Ro(i,"diagnosticMessages.generated.json")),!t.fileExists(i))return!1;let o="";try{o=t.readFile(i)}catch{return r&&r.push(Yx(_a.Unable_to_open_file_0,i)),!1}try{Ux(JSON.parse(o))}catch{return r&&r.push(Yx(_a.Corrupted_locale_file_0,i)),!1}return!0}k(cc,r)&&!s(o,a,n)&&s(o,void 0,n),Et(e)}function _c(e,t){if(e)for(;void 0!==e.original;)e=e.original;return e&&t?t(e)?e:void 0:e}function uc(e,t){for(;e;){const n=t(e);if("quit"===n)return;if(n)return e;e=e.parent}}function dc(e){return!(16&e.flags)}function pc(e,t){if(void 0===e||dc(e))return e;for(e=e.original;e;){if(dc(e))return!t||t(e)?e:void 0;e=e.original}}function fc(e){return e.length>=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e}function mc(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 gc(e){return mc(e.escapedText)}function hc(e){const t=Ea(e.escapedText);return t?et(t,Ch):void 0}function yc(e){return e.valueDeclaration&&Kl(e.valueDeclaration)?gc(e.valueDeclaration.name):mc(e.escapedName)}function vc(e){const t=e.parent.parent;if(t){if(_u(t))return bc(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return bc(t.declarationList.declarations[0]);break;case 244:let e=t.expression;switch(226===e.kind&&64===e.operatorToken.kind&&(e=e.left),e.kind){case 211:return e.name;case 212:const t=e.argumentExpression;if(VN(t))return t}break;case 217:return bc(t.expression);case 256:if(_u(t.statement)||V_(t.statement))return bc(t.statement)}}}function bc(e){const t=Cc(e);return t&&VN(t)?t:void 0}function xc(e,t){return!(!Sc(e)||!VN(e.name)||gc(e.name)!==gc(t))||!(!FF(e)||!V(e.declarationList.declarations,(e=>xc(e,t))))}function kc(e){return e.name||vc(e)}function Sc(e){return!!e.name}function Tc(e){switch(e.kind){case 80:return e;case 348:case 341:{const{name:t}=e;if(166===t.kind)return t.right;break}case 213:case 226:{const t=e;switch(tg(t)){case 1:case 4:case 5:case 3:return lg(t.left);case 7:case 8:case 9:return t.arguments[1];default:return}}case 346:return kc(e);case 340:return vc(e);case 277:{const{expression:t}=e;return VN(t)?t:void 0}case 212:const t=e;if(ag(t))return t.argumentExpression}return e.name}function Cc(e){if(void 0!==e)return Tc(e)||(rF(e)||iF(e)||gF(e)?wc(e):void 0)}function wc(e){if(e.parent){if(zE(e.parent)||HD(e.parent))return e.parent.name;if(uF(e.parent)&&e===e.parent.right){if(VN(e.parent.left))return e.parent.left;if(Tx(e.parent.left))return lg(e.parent.left)}else if(HF(e.parent)&&VN(e.parent.name))return e.parent.name}}function Nc(e){if(jv(e))return C(e.modifiers,lD)}function Dc(e){if(Dv(e,98303))return C(e.modifiers,Zl)}function Fc(e,t){if(e.name){if(VN(e.name)){const n=e.name.escapedText;return il(e.parent,t).filter((e=>SP(e)&&VN(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=il(e.parent,t).filter(SP);if(n<r.length)return[r[n]]}}return s}function Ec(e){return Fc(e,!1)}function Pc(e){return Fc(e,!0)}function Ac(e,t){const n=e.name.escapedText;return il(e.parent,t).filter((e=>NP(e)&&e.typeParameters.some((e=>e.name.escapedText===n))))}function Ic(e){return Ac(e,!1)}function Oc(e){return Ac(e,!0)}function Lc(e){return!!al(e,SP)}function jc(e){return al(e,_P)}function Rc(e){return sl(e,PP)}function Mc(e){return al(e,dP)}function Bc(e){return al(e,fP)}function Jc(e){return al(e,fP,!0)}function zc(e){return al(e,mP)}function qc(e){return al(e,mP,!0)}function Uc(e){return al(e,gP)}function Vc(e){return al(e,gP,!0)}function Wc(e){return al(e,hP)}function $c(e){return al(e,hP,!0)}function Hc(e){return al(e,yP,!0)}function Kc(e){return al(e,bP)}function Gc(e){return al(e,bP,!0)}function Xc(e){return al(e,kP)}function Qc(e){return al(e,CP)}function Yc(e){return al(e,TP)}function Zc(e){return al(e,NP)}function el(e){return al(e,AP)}function tl(e){const t=al(e,wP);if(t&&t.typeExpression&&t.typeExpression.type)return t}function nl(e){let t=al(e,wP);return!t&&cD(e)&&(t=y(Ec(e),(e=>!!e.typeExpression))),t&&t.typeExpression&&t.typeExpression.type}function rl(e){const t=Yc(e);if(t&&t.typeExpression)return t.typeExpression.type;const n=tl(e);if(n&&n.typeExpression){const e=n.typeExpression.type;if(wD(e)){const t=y(e.members,yD);return t&&t.type}if(SD(e)||iP(e))return e.type}}function il(e,t){var n;if(!Lg(e))return s;let r=null==(n=e.jsDoc)?void 0:n.jsDocCache;if(void 0===r||t){const n=jg(e,t);_n.assert(n.length<2||n[0]!==n[1]),r=A(n,(e=>sP(e)?e.tags:e)),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=r)}return r}function ol(e){return il(e,!1)}function al(e,t,n){return y(il(e,n),t)}function sl(e,t){return ol(e).filter(t)}function cl(e,t){return ol(e).filter((e=>e.kind===t))}function ll(e){return"string"==typeof e?e:null==e?void 0:e.map((e=>321===e.kind?e.text:function(e){const t=324===e.kind?"link":325===e.kind?"linkcode":"linkplain",n=e.name?jp(e.name):"",r=e.name&&(""===e.text||e.text.startsWith("://"))?"":" ";return`{@${t} ${n}${r}${e.text}}`}(e))).join("")}function _l(e){if(lP(e)){if(vP(e.parent)){const t=Wg(e.parent);if(t&&l(t.tags))return A(t.tags,(e=>NP(e)?e.typeParameters:void 0))}return s}if(Dg(e))return _n.assert(320===e.parent.kind),A(e.parent.tags,(e=>NP(e)?e.typeParameters:void 0));if(e.typeParameters)return e.typeParameters;if(FA(e)&&e.typeParameters)return e.typeParameters;if(Em(e)){const t=hv(e);if(t.length)return t;const n=nl(e);if(n&&SD(n)&&n.typeParameters)return n.typeParameters}return s}function ul(e){return e.constraint?e.constraint:NP(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function dl(e){return 80===e.kind||81===e.kind}function pl(e){return 178===e.kind||177===e.kind}function fl(e){return XD(e)&&!!(64&e.flags)}function ml(e){return QD(e)&&!!(64&e.flags)}function gl(e){return YD(e)&&!!(64&e.flags)}function hl(e){const t=e.kind;return!!(64&e.flags)&&(211===t||212===t||213===t||235===t)}function yl(e){return hl(e)&&!xF(e)&&!!e.questionDotToken}function vl(e){return yl(e.parent)&&e.parent.expression===e}function bl(e){return!hl(e.parent)||yl(e.parent)||e!==e.parent.expression}function xl(e){return 226===e.kind&&61===e.operatorToken.kind}function kl(e){return kD(e)&&VN(e.typeName)&&"const"===e.typeName.escapedText&&!e.typeArguments}function Sl(e){return uA(e,8)}function Tl(e){return xF(e)&&!!(64&e.flags)}function Cl(e){return 252===e.kind||251===e.kind}function wl(e){return 280===e.kind||279===e.kind}function Nl(e){return 348===e.kind||341===e.kind}function Dl(e){return e>=166}function Fl(e){return e>=0&&e<=165}function El(e){return Fl(e.kind)}function Pl(e){return Ne(e,"pos")&&Ne(e,"end")}function Al(e){return 9<=e&&e<=15}function Il(e){return Al(e.kind)}function Ol(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Ll(e){return 15<=e&&e<=18}function jl(e){return Ll(e.kind)}function Rl(e){const t=e.kind;return 17===t||18===t}function Ml(e){return mE(e)||vE(e)}function Bl(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function Jl(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function zl(e){return Bl(e)||Jl(e)}function ql(e){return void 0!==uc(e,zl)}function Ul(e){return 11===e.kind||Ll(e.kind)}function Vl(e){return NN(e)||VN(e)}function Wl(e){var t;return VN(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function $l(e){var t;return WN(e)&&void 0!==(null==(t=e.emitNode)?void 0:t.autoGenerate)}function Hl(e){const t=e.emitNode.autoGenerate.flags;return!!(32&t)&&!!(16&t)&&!!(8&t)}function Kl(e){return(uD(e)||m_(e))&&WN(e.name)}function Gl(e){return XD(e)&&WN(e.name)}function Xl(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 Ql(e){return!!(31&Kv(e))}function Yl(e){return Ql(e)||126===e||164===e||129===e}function Zl(e){return Xl(e.kind)}function e_(e){const t=e.kind;return 166===t||80===t}function t_(e){const t=e.kind;return 80===t||81===t||11===t||9===t||167===t}function n_(e){const t=e.kind;return 80===t||206===t||207===t}function r_(e){return!!e&&c_(e.kind)}function i_(e){return!!e&&(c_(e.kind)||fD(e))}function o_(e){return e&&s_(e.kind)}function a_(e){return 112===e.kind||97===e.kind}function s_(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function c_(e){switch(e){case 173:case 179:case 323:case 180:case 181:case 184:case 317:case 185:return!0;default:return s_(e)}}function l_(e){return WE(e)||tE(e)||DF(e)&&r_(e.parent)}function __(e){const t=e.kind;return 176===t||172===t||174===t||177===t||178===t||181===t||175===t||240===t}function u_(e){return e&&(263===e.kind||231===e.kind)}function d_(e){return e&&(177===e.kind||178===e.kind)}function p_(e){return uD(e)&&Ov(e)}function f_(e){return Em(e)&&_C(e)?!(og(e)&&db(e.expression)||sg(e,!0)):e.parent&&u_(e.parent)&&uD(e)&&!Ov(e)}function m_(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function g_(e){return Zl(e)||lD(e)}function h_(e){const t=e.kind;return 180===t||179===t||171===t||173===t||181===t||177===t||178===t||354===t}function y_(e){return h_(e)||__(e)}function v_(e){const t=e.kind;return 303===t||304===t||305===t||174===t||177===t||178===t}function b_(e){return Sx(e.kind)}function x_(e){switch(e.kind){case 184:case 185:return!0}return!1}function k_(e){if(e){const t=e.kind;return 207===t||206===t}return!1}function S_(e){const t=e.kind;return 209===t||210===t}function T_(e){const t=e.kind;return 208===t||232===t}function C_(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function w_(e){return HF(e)||cD(e)||F_(e)||P_(e)}function N_(e){return D_(e)||E_(e)}function D_(e){switch(e.kind){case 206:case 210:return!0}return!1}function F_(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function E_(e){switch(e.kind){case 207:case 209:return!0}return!1}function P_(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return ib(e,!0)}function A_(e){const t=e.kind;return 211===t||166===t||205===t}function I_(e){const t=e.kind;return 211===t||166===t}function O_(e){return L_(e)||BT(e)}function L_(e){switch(e.kind){case 213:case 214:case 215:case 170:case 286:case 285:case 289:return!0;case 226:return 104===e.operatorToken.kind;default:return!1}}function j_(e){return 213===e.kind||214===e.kind}function R_(e){const t=e.kind;return 228===t||15===t}function M_(e){return B_(Sl(e).kind)}function B_(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function J_(e){return z_(Sl(e).kind)}function z_(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return B_(e)}}function q_(e){switch(e.kind){case 225:return!0;case 224:return 46===e.operator||47===e.operator;default:return!1}}function U_(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return Il(e)}}function V_(e){return function(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 356:case 355:case 238:return!0;default:return z_(e)}}(Sl(e).kind)}function W_(e){const t=e.kind;return 216===t||234===t}function $_(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&$_(e.statement,t)}return!1}function H_(e){return gE(e)||hE(e)}function K_(e){return V(e,H_)}function G_(e){return!(Np(e)||gE(e)||Dv(e,32)||sp(e))}function X_(e){return Np(e)||gE(e)||Dv(e,32)}function Q_(e){return 249===e.kind||250===e.kind}function Y_(e){return DF(e)||V_(e)}function Z_(e){return DF(e)}function eu(e){return KF(e)||V_(e)}function tu(e){const t=e.kind;return 268===t||267===t||80===t}function nu(e){const t=e.kind;return 268===t||267===t}function ru(e){const t=e.kind;return 80===t||267===t}function iu(e){const t=e.kind;return 275===t||274===t}function ou(e){return 267===e.kind||266===e.kind}function au(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 338:case 340:case 317:case 341:case 348:case 323:case 346:case 322:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 307:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function su(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 338:case 340:case 317:case 323:case 346:case 200:case 174:case 173:case 267:case 178:case 307:case 265:return!0;default:return!1}}function cu(e){return 262===e||282===e||263===e||264===e||265===e||266===e||267===e||272===e||271===e||278===e||277===e||270===e}function lu(e){return 252===e||251===e||259===e||246===e||244===e||242===e||249===e||250===e||248===e||245===e||256===e||253===e||255===e||257===e||258===e||243===e||247===e||254===e||353===e}function _u(e){return 168===e.kind?e.parent&&345!==e.parent.kind||Em(e):219===(t=e.kind)||208===t||263===t||231===t||175===t||176===t||266===t||306===t||281===t||262===t||218===t||177===t||273===t||271===t||276===t||264===t||291===t||174===t||173===t||267===t||270===t||274===t||280===t||169===t||303===t||172===t||171===t||178===t||304===t||265===t||168===t||260===t||346===t||338===t||348===t||202===t;var t}function uu(e){return cu(e.kind)}function du(e){return lu(e.kind)}function pu(e){const t=e.kind;return lu(t)||cu(t)||function(e){if(241!==e.kind)return!1;if(void 0!==e.parent&&(258===e.parent.kind||299===e.parent.kind))return!1;return!Mf(e)}(e)}function fu(e){const t=e.kind;return lu(t)||cu(t)||241===t}function mu(e){const t=e.kind;return 283===t||166===t||80===t}function gu(e){const t=e.kind;return 110===t||80===t||211===t||295===t}function hu(e){const t=e.kind;return 284===t||294===t||285===t||12===t||288===t}function yu(e){const t=e.kind;return 291===t||293===t}function vu(e){const t=e.kind;return 11===t||294===t}function bu(e){const t=e.kind;return 286===t||285===t}function xu(e){const t=e.kind;return 286===t||285===t||289===t}function ku(e){const t=e.kind;return 296===t||297===t}function Su(e){return e.kind>=309&&e.kind<=351}function Tu(e){return 320===e.kind||319===e.kind||321===e.kind||Ru(e)||Cu(e)||cP(e)||lP(e)}function Cu(e){return e.kind>=327&&e.kind<=351}function wu(e){return 178===e.kind}function Nu(e){return 177===e.kind}function Du(e){if(!Lg(e))return!1;const{jsDoc:t}=e;return!!t&&t.length>0}function Fu(e){return!!e.type}function Eu(e){return!!e.initializer}function Pu(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function Au(e){return 291===e.kind||293===e.kind||v_(e)}function Iu(e){return 183===e.kind||233===e.kind}var Ou=1073741823;function Lu(e){let t=Ou;for(const n of e){if(!n.length)continue;let e=0;for(;e<n.length&&e<t&&qa(n.charCodeAt(e));e++);if(e<t&&(t=e),0===t)return 0}return t===Ou?void 0:t}function ju(e){return 11===e.kind||15===e.kind}function Ru(e){return 324===e.kind||325===e.kind||326===e.kind}function Mu(e){const t=he(e.parameters);return!!t&&Bu(t)}function Bu(e){const t=SP(e)?e.typeExpression&&e.typeExpression.type:e.type;return void 0!==e.dotDotDotToken||!!t&&318===t.kind}function Ju(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function zu(e,t){t??(t=yd(e));const n=pc(e);if(n&&169===n.kind){const r=n.parent.parameters.indexOf(n),i=r>0?n.parent.parameters[r-1]:void 0,o=t.text,a=i?$(us(o,Qa(o,i.end+1,!1,!0)),_s(o,e.pos)):us(o,Qa(o,e.pos,!1,!0));return V(a)&&Ju(ye(a),t)}return!!_(n&&hf(n,t),(e=>Ju(e,t)))}var qu=[],Uu="tslib",Vu=160,Wu=1e6;function $u(e,t){const n=e.declarations;if(n)for(const e of n)if(e.kind===t)return e}function Hu(e,t){return C(e.declarations||s,(e=>e.kind===t))}function Ku(e){const t=new Map;if(e)for(const n of e)t.set(n.escapedName,n);return t}function Gu(e){return!!(33554432&e.flags)}function Xu(e){return!!(1536&e.flags)&&34===e.escapedName.charCodeAt(0)}var Qu=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&&qa(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:nt,decreaseIndent:nt,clear:()=>e=""}}();function Yu(e,t){return e.configFilePath!==t.configFilePath||function(e,t){return ed(e,t,TO)}(e,t)}function Zu(e,t){return ed(e,t,wO)}function ed(e,t,n){return e!==t&&n.some((n=>!mT(Hk(e,n),Hk(t,n))))}function td(e,t){for(;;){const n=t(e);if("quit"===n)return;if(void 0!==n)return n;if(WE(e))return;e=e.parent}}function nd(e,t){const n=e.entries();for(const[e,r]of n){const n=t(r,e);if(n)return n}}function rd(e,t){const n=e.keys();for(const e of n){const n=t(e);if(n)return n}}function id(e,t){e.forEach(((e,n)=>{t.set(n,e)}))}function od(e){const t=Qu.getText();try{return e(Qu),Qu.getText()}finally{Qu.clear(),Qu.writeKeyword(t)}}function ad(e){return e.end-e.pos}function sd(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function cd(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 ld(e){return e.resolvedModule}function _d(e){return e.resolvedTypeReferenceDirective}function ud(e,t,n,r,i){var o;const a=null==(o=t.getResolvedModule(e,n,r))?void 0:o.alternateResult,s=a&&(2===xk(t.getCompilerOptions())?[_a.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]]:[_a.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(zR+"@types/")?`@types/${TM(i)}`:i]]),c=s?ek(void 0,s[0],...s[1]):t.typesPackageExists(i)?ek(void 0,_a.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,TM(i)):t.packageBundlesTypes(i)?ek(void 0,_a.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,i,n):ek(void 0,_a.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,TM(i));return c&&(c.repopulateInfo=()=>({moduleReference:n,mode:r,packageName:i===n?void 0:i})),c}function dd(e){const t=nT(e.fileName),n=e.packageJsonScope,r=".ts"===t?".mts":".js"===t?".mjs":void 0,i=n&&!n.contents.packageJsonContent.type?r?ek(void 0,_a.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")):ek(void 0,_a.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Ro(n.packageDirectory,"package.json")):r?ek(void 0,_a.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):ek(void 0,_a.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module);return i.repopulateInfo=()=>!0,i}function pd({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function fd(e){return`${pd(e)}@${e.version}${e.peerDependencies??""}`}function md(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 gd(e,t,n,r){_n.assert(e.length===t.length);for(let i=0;i<e.length;i++){const o=t[i],a=n(e[i]);if(a?!o||!r(a,o):o)return!0}return!1}function hd(e){return function(e){if(!(2097152&e.flags)){(!!(262144&e.flags)||RI(e,hd))&&(e.flags|=1048576),e.flags|=2097152}}(e),!!(1048576&e.flags)}function yd(e){for(;e&&307!==e.kind;)e=e.parent;return e}function vd(e){return yd(e.valueDeclaration||mp(e))}function bd(e,t){return!(!e||1!==e.scriptKind&&2!==e.scriptKind||e.checkJsDirective||void 0!==t)}function xd(e){switch(e.kind){case 241:case 269:case 248:case 249:case 250:return!0}return!1}function kd(e,t){return _n.assert(e>=0),Ra(t)[e]}function Sd(e){const t=yd(e),n=za(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function Td(e,t){_n.assert(e>=0);const n=Ra(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(Va(i.charCodeAt(t)));e<=t&&Va(i.charCodeAt(t));)t--;return t}}function Cd(e,t,n){return!(n&&n(t)||e.identifiers.has(t))}function wd(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function Nd(e){return!wd(e)}function Dd(e,t){return sD(e)?t===e.expression:fD(e)?t===e.modifiers:_D(e)?t===e.initializer:uD(e)?t===e.questionToken&&p_(e):zE(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Fd(e.modifiers,t,g_):qE(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||Fd(e.modifiers,t,g_):pD(e)?t===e.exclamationToken:mD(e)?t===e.typeParameters||t===e.type||Fd(e.typeParameters,t,sD):gD(e)?t===e.typeParameters||Fd(e.typeParameters,t,sD):hD(e)?t===e.typeParameters||t===e.type||Fd(e.typeParameters,t,sD):!!rE(e)&&(t===e.modifiers||Fd(e.modifiers,t,g_))}function Fd(e,t,n){return!(!e||Xe(t)||!n(t))&&k(e,t)}function Ed(e,t,n){if(void 0===t||0===t.length)return e;let r=0;for(;r<e.length&&n(e[r]);++r);return e.splice(r,0,...t),e}function Pd(e,t,n){if(void 0===t)return e;let r=0;for(;r<e.length&&n(e[r]);++r);return e.splice(r,0,t),e}function Ad(e){return df(e)||!!(2097152&Yd(e))}function Id(e,t){return Ed(e,t,df)}function Od(e,t){return Ed(e,t,Ad)}function Ld(e,t){return Pd(e,t,df)}function jd(e,t){return Pd(e,t,Ad)}function Rd(e,t,n){if(47===e.charCodeAt(t+1)&&t+2<n&&47===e.charCodeAt(t+2)){const r=e.substring(t,n);return!!(vf.test(r)||kf.test(r)||Sf.test(r)||bf.test(r)||xf.test(r)||Tf.test(r))}return!1}function Md(e,t){return 42===e.charCodeAt(t+1)&&33===e.charCodeAt(t+2)}function Bd(e,t){const n=new Map(t.map((t=>[`${za(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 Jd(e,t,n){if(wd(e))return e.pos;if(Su(e)||12===e.kind)return Qa((t??yd(e)).text,e.pos,!1,!0);if(n&&Du(e))return Jd(e.jsDoc[0],t);if(352===e.kind){t??(t=yd(e));const r=pe(MP(e,t));if(r)return Jd(r,t,n)}return Qa((t??yd(e)).text,e.pos,!1,!1,Im(e))}function zd(e,t){const n=!wd(e)&&lI(e)?v(e.modifiers,lD):void 0;return n?Qa((t||yd(e)).text,n.end):Jd(e,t)}function qd(e,t){const n=!wd(e)&&lI(e)&&e.modifiers?ye(e.modifiers):void 0;return n?Qa((t||yd(e)).text,n.end):Jd(e,t)}function Ud(e,t,n=!1){return Kd(e.text,t,n)}function Vd(e){return!!(hE(e)&&e.exportClause&&pE(e.exportClause)&&Hd(e.exportClause.name))}function Wd(e){return 11===e.kind?e.text:mc(e.escapedText)}function $d(e){return 11===e.kind?fc(e.text):e.escapedText}function Hd(e){return"default"===(11===e.kind?e.text:e.escapedText)}function Kd(e,t,n=!1){if(wd(t))return"";let r=e.substring(n?t.pos:Qa(e,t.pos),t.end);return function(e){return!!uc(e,HE)}(t)&&(r=r.split(/\r\n|\n|\r/).map((e=>e.replace(/^\s*\*/,"").trimStart())).join("\n")),r}function Gd(e,t=!1){return Ud(yd(e),e,t)}function Xd(e){return e.pos}function Qd(e,t){return Se(e,t,Xd,yt)}function Yd(e){const t=e.emitNode;return t&&t.flags||0}function Zd(e){const t=e.emitNode;return t&&t.internalFlags||0}var ep=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"]})),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"]})),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"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),MapConstructor:new Map(Object.entries({es2024:["groupBy"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"],esnext:["union","intersection","difference","symmetricDifference","isSubsetOf","isSupersetOf","isDisjointFrom"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"],es2024:["withResolvers"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),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"]})),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"]})),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"]})),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"]})),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"]}))})))),tp=(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))(tp||{});function np(e,t,n){if(t&&function(e,t){if(ey(e)||!e.parent||4&t&&e.isUnterminated)return!1;if(CN(e)){if(26656&e.numericLiteralFlags)return!1;if(512&e.numericLiteralFlags)return!!(8&t)}return!wN(e)}(e,n))return Ud(t,e);switch(e.kind){case 11:{const t=2&n?Dy:1&n||16777216&Yd(e)?xy:Sy;return e.singleQuote?"'"+t(e.text,39)+"'":'"'+t(e.text,34)+'"'}case 15:case 16:case 17:case 18:{const t=1&n||16777216&Yd(e)?xy:Sy,r=e.rawText??dy(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 rp(e){return Ye(e)?`"${xy(e)}"`:""+e}function ip(e){return Eo(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function op(e){return!!(7&ac(e))||ap(e)}function ap(e){const t=Yh(e);return 260===t.kind&&299===t.parent.kind}function sp(e){return eE(e)&&(11===e.name.kind||dp(e))}function cp(e){return eE(e)&&11===e.name.kind}function lp(e){return eE(e)&&NN(e.name)}function _p(e){return!!(t=e.valueDeclaration)&&267===t.kind&&!t.body;var t}function up(e){return 307===e.kind||267===e.kind||i_(e)}function dp(e){return!!(2048&e.flags)}function pp(e){return sp(e)&&fp(e)}function fp(e){switch(e.parent.kind){case 307:return VI(e.parent);case 268:return sp(e.parent.parent)&&WE(e.parent.parent.parent)&&!VI(e.parent.parent.parent)}return!1}function mp(e){var t;return null==(t=e.declarations)?void 0:t.find((e=>!(pp(e)||eE(e)&&dp(e))))}function gp(e,t){return VI(e)||(1===(n=bk(t))||100<=n&&n<=199)&&!!e.commonJsModuleIndicator;var n}function hp(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return!e.isDeclarationFile&&(!!zk(t,"alwaysStrict")||(!!oA(e.statements)||!(!VI(e)&&!Sk(t))))}function yp(e){return!!(33554432&e.flags)||Dv(e,128)}function vp(e,t){switch(e.kind){case 307:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!i_(t)}return!1}function bp(e){switch(_n.type(e),e.kind){case 338:case 346:case 323:return!0;default:return xp(e)}}function xp(e){switch(_n.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 317:case 263:case 231:case 264:case 265:case 345:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function kp(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Sp(e){return kp(e)||Rm(e)}function Tp(e){return kp(e)||Jm(e)}function Cp(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function wp(e){return Np(e)||eE(e)||qD(e)||lf(e)}function Np(e){return kp(e)||hE(e)}function Dp(e){return uc(e.parent,(e=>!!(1&$M(e))))}function Fp(e){return uc(e.parent,(e=>vp(e,e.parent)))}function Ep(e,t){let n=Fp(e);for(;n;)t(n),n=Fp(n)}function Pp(e){return e&&0!==ad(e)?Gd(e):"(Missing)"}function Ap(e){return e.declaration?Pp(e.declaration.parameters[0].name):void 0}function Ip(e){return 167===e.kind&&!jh(e.expression)}function Op(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 fc(e.text);case 167:return jh(e.expression)?fc(e.expression.text):void 0;case 295:return oC(e);default:return _n.assertNever(e)}}function Lp(e){return _n.checkDefined(Op(e))}function jp(e){switch(e.kind){case 110:return"this";case 81:case 80:return 0===ad(e)?gc(e):Gd(e);case 166:return jp(e.left)+"."+jp(e.right);case 211:return VN(e.name)||WN(e.name)?jp(e.expression)+"."+jp(e.name):_n.assertNever(e.name);case 311:return jp(e.left)+"#"+jp(e.right);case 295:return jp(e.namespace)+":"+jp(e.name);default:return _n.assertNever(e)}}function Rp(e,t,...n){return Bp(yd(e),e,t,...n)}function Mp(e,t,n,...r){const i=Qa(e.text,t.pos);return Xx(e,i,t.end-i,n,...r)}function Bp(e,t,n,...r){const i=Xp(e,t);return Xx(e,i.start,i.length,n,...r)}function Jp(e,t,n,r){const i=Xp(e,t);return Up(e,i.start,i.length,n,r)}function zp(e,t,n,r){const i=Qa(e.text,t.pos);return Up(e,i,t.end-i,n,r)}function qp(e,t,n){_n.assertGreaterThanOrEqual(t,0),_n.assertGreaterThanOrEqual(n,0),_n.assertLessThanOrEqual(t,e.length),_n.assertLessThanOrEqual(t+n,e.length)}function Up(e,t,n,r,i){return qp(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 Vp(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 Wp(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function $p(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function Hp(e,...t){return{code:e.code,messageText:Qx(e,...t)}}function Kp(e,t){const n=gs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();return $s(n.getTokenStart(),n.getTokenEnd())}function Gp(e,t){const n=gs(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function Xp(e,t){let n=t;switch(t.kind){case 307:{const t=Qa(e.text,0,!1);return t===e.text.length?Ws(0,0):Kp(e,t)}case 260:case 208:case 263:case 231:case 264:case 267:case 266:case 306:case 262:case 218:case 174:case 177:case 178:case 265:case 172:case 171:case 274:n=t.name;break;case 219:return function(e,t){const n=Qa(e.text,t.pos);if(t.body&&241===t.body.kind){const{line:r}=za(e,t.body.pos),{line:i}=za(e,t.body.end);if(r<i)return Ws(n,Td(r,e)-n+1)}return $s(n,t.end)}(e,t);case 296:case 297:return $s(Qa(e.text,t.pos),t.statements.length>0?t.statements[0].pos:t.end);case 253:case 229:return Kp(e,Qa(e.text,t.pos));case 238:return Kp(e,Qa(e.text,t.expression.end));case 350:return Kp(e,Qa(e.text,t.tagName.pos));case 176:{const n=t,r=Qa(e.text,n.pos),i=gs(e.languageVersion,!0,e.languageVariant,e.text,void 0,r);let o=i.scan();for(;137!==o&&1!==o;)o=i.scan();return $s(r,i.getTokenEnd())}}if(void 0===n)return Kp(e,t.pos);_n.assert(!sP(n));const r=wd(n),i=r||DN(t)?n.pos:Qa(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")),$s(i,n.end)}function Qp(e){return 307===e.kind&&!Yp(e)}function Yp(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)}function Zp(e){return 6===e.scriptKind}function ef(e){return!!(4096&ic(e))}function tf(e){return!(!(8&ic(e))||Zs(e,e.parent))}function nf(e){return 6==(7&ac(e))}function rf(e){return 4==(7&ac(e))}function of(e){return 2==(7&ac(e))}function af(e){const t=7&ac(e);return 2===t||4===t||6===t}function sf(e){return 1==(7&ac(e))}function cf(e){return 213===e.kind&&108===e.expression.kind}function lf(e){return 213===e.kind&&102===e.expression.kind}function _f(e){return kF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}function uf(e){return qD(e)&&zD(e.argument)&&NN(e.argument.literal)}function df(e){return 244===e.kind&&11===e.expression.kind}function pf(e){return!!(2097152&Yd(e))}function ff(e){return pf(e)&&GF(e)}function mf(e){return VN(e.name)&&!e.initializer}function gf(e){return pf(e)&&FF(e)&&h(e.declarationList.declarations,mf)}function hf(e,t){return 12!==e.kind?_s(t.text,e.pos):void 0}function yf(e,t){return C(169===e.kind||168===e.kind||218===e.kind||219===e.kind||217===e.kind||260===e.kind||281===e.kind?$(us(t,e.pos),_s(t,e.pos)):_s(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 vf=/^\/\/\/\s*<reference\s+path\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,bf=/^\/\/\/\s*<reference\s+types\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,xf=/^\/\/\/\s*<reference\s+lib\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,kf=/^\/\/\/\s*<amd-dependency\s+path\s*=\s*(?:'[^']*'|"[^"]*").*?\/>/,Sf=/^\/\/\/\s*<amd-module\s+(?:\S.*?)??\/>/,Tf=/^\/\/\/\s*<reference\s+no-default-lib\s*=\s*(?:'[^']*'|"[^"]*")\s*\/>/;function Cf(e){if(182<=e.kind&&e.kind<=205)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 222!==e.parent.kind;case 233:return wf(e);case 168:return 200===e.parent.kind||195===e.parent.kind;case 80:(166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e)&&(e=e.parent),_n.assert(80===e.kind||166===e.kind||211===e.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:t}=e;if(186===t.kind)return!1;if(205===t.kind)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return wf(t);case 168:case 345:return e===t.constraint;case 172:case 171:case 169:case 260:case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:case 179:case 180:case 181:case 216:return e===t.type;case 213:case 214:case 215:return k(t.typeArguments,e)}}}return!1}function wf(e){return PP(e.parent)||_P(e.parent)||BE(e.parent)&&!ab(e)}function Nf(e,t){return function e(n){switch(n.kind){case 253:return t(n);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return RI(n,e)}}(e)}function Df(e,t){return function e(n){switch(n.kind){case 229:t(n);const r=n.expression;return void(r&&e(r));case 266:case 264:case 267:case 265:return;default:if(r_(n)){if(n.name&&167===n.name.kind)return void e(n.name.expression)}else Cf(n)||RI(n,e)}}(e)}function Ff(e){return e&&188===e.kind?e.elementType:e&&183===e.kind?ve(e.typeArguments):void 0}function Ef(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function Pf(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Af(e){return 261===e.parent.kind&&243===e.parent.parent.kind}function If(e){return!!Em(e)&&(GD(e.parent)&&uF(e.parent.parent)&&2===tg(e.parent.parent)||Of(e.parent))}function Of(e){return!!Em(e)&&(uF(e)&&1===tg(e))}function Lf(e){return(HF(e)?of(e)&&VN(e.name)&&Af(e):uD(e)?Lv(e)&&Ev(e):_D(e)&&Lv(e))||Of(e)}function jf(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function Rf(e,t){for(;;){if(t&&t(e),256!==e.statement.kind)return e.statement;e=e.statement}}function Mf(e){return e&&241===e.kind&&r_(e.parent)}function Bf(e){return e&&174===e.kind&&210===e.parent.kind}function Jf(e){return!(174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind&&231!==e.parent.kind)}function zf(e){return e&&1===e.kind}function qf(e){return e&&0===e.kind}function Uf(e,t,n,r){return _(null==e?void 0:e.properties,(e=>{if(!zE(e))return;const i=Op(e.name);return t===i||r&&r===i?n(e):void 0}))}function Vf(e,t,n){return Uf(e,t,(e=>KD(e.initializer)?y(e.initializer.elements,(e=>NN(e)&&e.text===n)):void 0))}function Wf(e){if(e&&e.statements.length){return et(e.statements[0].expression,GD)}}function $f(e,t,n){return Hf(e,t,(e=>KD(e.initializer)?y(e.initializer.elements,(e=>NN(e)&&e.text===n)):void 0))}function Hf(e,t,n){return Uf(Wf(e),t,n)}function Kf(e){return uc(e.parent,r_)}function Gf(e){return uc(e.parent,o_)}function Xf(e){return uc(e.parent,u_)}function Qf(e){return uc(e.parent,(e=>u_(e)||r_(e)?"quit":fD(e)))}function Yf(e){return uc(e.parent,i_)}function Zf(e){const t=uc(e.parent,(e=>u_(e)?"quit":lD(e)));return t&&u_(t.parent)?Xf(t.parent):Xf(t??e)}function em(e,t,n){for(_n.assert(307!==e.kind);;){if(!(e=e.parent))return _n.fail();switch(e.kind){case 167:if(n&&u_(e.parent.parent))return e;e=e.parent.parent;break;case 170:169===e.parent.kind&&__(e.parent.parent)?e=e.parent.parent:__(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 307:return e}}}function tm(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function nm(e){VN(e)&&(XF(e.parent)||GF(e.parent))&&e.parent.name===e&&(e=e.parent);return WE(em(e,!0,!1))}function rm(e){const t=em(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function im(e,t){for(;;){if(!(e=e.parent))return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:169===e.parent.kind&&__(e.parent.parent)?e=e.parent.parent:__(e.parent)&&(e=e.parent)}}}function om(e){if(218===e.kind||219===e.kind){let t=e,n=e.parent;for(;217===n.kind;)t=n,n=n.parent;if(213===n.kind&&n.expression===t)return n}}function am(e){const t=e.kind;return(211===t||212===t)&&108===e.expression.kind}function sm(e){const t=e.kind;return(211===t||212===t)&&110===e.expression.kind}function cm(e){var t;return!!e&&HF(e)&&110===(null==(t=e.initializer)?void 0:t.kind)}function lm(e){return!!e&&(qE(e)||zE(e))&&uF(e.parent.parent)&&64===e.parent.parent.operatorToken.kind&&110===e.parent.parent.right.kind}function _m(e){switch(e.kind){case 183:return e.typeName;case 233:return sb(e.expression)?e.expression:void 0;case 80:case 166:return e}}function um(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;case 289:return e;default:return e.expression}}function dm(e,t,n,r){if(e&&Sc(t)&&WN(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return void 0!==n&&(e?XF(n):u_(n)&&!Av(t)&&!Iv(t));case 177:case 178:case 174:return void 0!==t.body&&void 0!==n&&(e?XF(n):u_(n));case 169:return!!e&&(void 0!==n&&void 0!==n.body&&(176===n.kind||174===n.kind||178===n.kind)&&sv(n)!==t&&void 0!==r&&263===r.kind)}return!1}function pm(e,t,n,r){return jv(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 263:return V(t.members,(r=>fm(e,r,t,n)));case 231:return!e&&V(t.members,(r=>fm(e,r,t,n)));case 174:case 178:case 176: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=iv(t);return!!n&&mm(e,n,t)}function hm(e,t,n){let r;if(d_(t)){const{firstAccessor:e,secondAccessor:i,setAccessor:o}=pv(n.members,t),a=jv(e)?e:i&&jv(i)?i:void 0;if(!a||t!==a)return!1;r=null==o?void 0:o.parameters}else pD(t)&&(r=t.parameters);if(pm(e,t,n))return!0;if(r)for(const i of r)if(!cv(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(286===t.kind||285===t.kind||287===t.kind)&&t.tagName===e}function bm(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!BE(e.parent)&&!_P(e.parent);case 166:for(;166===e.parent.kind;)e=e.parent;return 186===e.parent.kind||Ru(e.parent)||KE(e.parent)||GE(e.parent)||vm(e);case 311:for(;GE(e.parent);)e=e.parent;return 186===e.parent.kind||Ru(e.parent)||KE(e.parent)||GE(e.parent)||vm(e);case 81:return uF(e.parent)&&e.parent.left===e&&103===e.parent.operatorToken.kind;case 80:if(186===e.parent.kind||Ru(e.parent)||KE(e.parent)||GE(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 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:const n=t;return n.initializer===e&&261!==n.initializer.kind||n.condition===e||n.incrementor===e;case 249:case 250:const r=t;return r.initializer===e&&261!==r.initializer.kind||r.expression===e;case 216:case 234:case 239:case 167:case 238:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!Cf(t);case 304:return t.objectAssignmentInitializer===e;default:return bm(t)}}function km(e){for(;166===e.kind||80===e.kind;)e=e.parent;return 186===e.kind}function Sm(e){return pE(e)&&!!e.parent.moduleSpecifier}function Tm(e){return 271===e.kind&&283===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 Nm(e){return 271===e.kind&&283!==e.moduleReference.kind}function Dm(e){return 307===(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!Zp(e)}function Im(e){return!!e&&!!(16777216&e.flags)}function Om(e){return kD(e)&&VN(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(213!==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||ju(i)}function jm(e){return Bm(e,!1)}function Rm(e){return Bm(e,!0)}function Mm(e){return HD(e)&&Rm(e.parent.parent)}function Bm(e,t){return HF(e)&&!!e.initializer&&Lm(t?Nx(e.initializer):e.initializer,!0)}function Jm(e){return FF(e)&&e.declarationList.declarations.length>0&&h(e.declarationList.declarations,(e=>jm(e)))}function zm(e){return 39===e||34===e}function qm(e,t){return 34===Ud(t,e).charCodeAt(0)}function Um(e){return uF(e)||Tx(e)||VN(e)||YD(e)}function Vm(e){return Em(e)&&e.initializer&&uF(e.initializer)&&(57===e.initializer.operatorToken.kind||61===e.initializer.operatorToken.kind)&&e.name&&sb(e.name)&&Xm(e.name,e.initializer.left)?e.initializer.right:e.initializer}function Wm(e){const t=Vm(e);return t&&Hm(t,db(e.name))}function $m(e){if(e&&e.parent&&uF(e.parent)&&64===e.parent.operatorToken.kind){const t=db(e.parent.left);return Hm(e.parent.right,t)||function(e,t,n){const r=uF(t)&&(57===t.operatorToken.kind||61===t.operatorToken.kind)&&Hm(t.right,n);if(r&&Xm(e,t.left))return r}(e.parent.left,e.parent.right,t)}if(e&&YD(e)&&ng(e)){const t=function(e,t){return _(e.properties,(e=>zE(e)&&VN(e.name)&&"value"===e.name.escapedText&&e.initializer&&Hm(e.initializer,t)))}(e.arguments[2],"prototype"===e.arguments[1].text);if(t)return t}}function Hm(e,t){if(YD(e)){const t=ah(e.expression);return 218===t.kind||219===t.kind?e:void 0}return 218===e.kind||231===e.kind||219===e.kind||GD(e)&&(0===e.properties.length||t)?e:void 0}function Km(e){const t=HF(e.parent)?e.parent.name:uF(e.parent)&&64===e.parent.operatorToken.kind?e.parent.left:void 0;return t&&Hm(e.right,db(t))&&sb(t)&&Xm(t,e.left)}function Gm(e){if(uF(e.parent)){const t=57!==e.parent.operatorToken.kind&&61!==e.parent.operatorToken.kind||!uF(e.parent.parent)?e.parent:e.parent.parent;if(64===t.operatorToken.kind&&VN(t.left))return t.left}else if(HF(e.parent))return e.parent.name}function Xm(e,t){return zh(e)&&zh(t)?qh(e)===qh(t):dl(e)&&rg(t)&&(110===t.expression.kind||VN(t.expression)&&("window"===t.expression.escapedText||"self"===t.expression.escapedText||"global"===t.expression.escapedText))?Xm(e,cg(t)):!(!rg(e)||!rg(t))&&(_g(e)===_g(t)&&Xm(e.expression,t.expression))}function Qm(e){for(;ib(e,!0);)e=e.right;return e}function Ym(e){return VN(e)&&"exports"===e.escapedText}function Zm(e){return VN(e)&&"module"===e.escapedText}function eg(e){return(XD(e)||ig(e))&&Zm(e.expression)&&"exports"===_g(e)}function tg(e){const t=function(e){if(YD(e)){if(!ng(e))return 0;const t=e.arguments[0];return Ym(t)||eg(t)?8:og(t)&&"prototype"===_g(t)?9:7}if(64!==e.operatorToken.kind||!Tx(e.left)||(t=Qm(e),sF(t)&&CN(t.expression)&&"0"===t.expression.text))return 0;var t;if(sg(e.left.expression,!0)&&"prototype"===_g(e.left)&&GD(dg(e)))return 6;return ug(e.left)}(e);return 5===t||Em(e)?t:0}function ng(e){return 3===l(e.arguments)&&XD(e.expression)&&VN(e.expression.expression)&&"Object"===gc(e.expression.expression)&&"defineProperty"===gc(e.expression.name)&&jh(e.arguments[1])&&sg(e.arguments[0],!0)}function rg(e){return XD(e)||ig(e)}function ig(e){return QD(e)&&jh(e.argumentExpression)}function og(e,t){return XD(e)&&(!t&&110===e.expression.kind||VN(e.name)&&sg(e.expression,!0))||ag(e,t)}function ag(e,t){return ig(e)&&(!t&&110===e.expression.kind||sb(e.expression)||og(e.expression,!0))}function sg(e,t){return sb(e)||og(e,t)}function cg(e){return XD(e)?e.name:e.argumentExpression}function lg(e){if(XD(e))return e.name;const t=ah(e.argumentExpression);return CN(t)||ju(t)?t:e}function _g(e){const t=lg(e);if(t){if(VN(t))return t.escapedText;if(ju(t)||CN(t))return fc(t.text)}}function ug(e){if(110===e.expression.kind)return 4;if(eg(e))return 2;if(sg(e.expression,!0)){if(db(e.expression))return 3;let t=e;for(;!VN(t.expression);)t=t.expression;const n=t.expression;if(("exports"===n.escapedText||"module"===n.escapedText&&"exports"===_g(t))&&og(e))return 1;if(sg(e,!0)||QD(e)&&Bh(e))return 5}return 0}function dg(e){for(;uF(e.right);)e=e.right;return e.right}function pg(e){return uF(e)&&3===tg(e)}function fg(e){return Em(e)&&e.parent&&244===e.parent.kind&&(!QD(e)||ig(e))&&!!tl(e.parent)}function mg(e,t){const{valueDeclaration:n}=e;(!n||(!(33554432&t.flags)||Em(t)||33554432&n.flags)&&Um(n)&&!Um(t)||n.kind!==t.kind&&function(e){return eE(e)||VN(e)}(n))&&(e.valueDeclaration=t)}function gg(e){if(!e||!e.valueDeclaration)return!1;const t=e.valueDeclaration;return 262===t.kind||HF(t)&&t.initializer&&r_(t.initializer)}function hg(e){switch(null==e?void 0:e.kind){case 260:case 208:case 272:case 278:case 271:case 273:case 280:case 274:case 281:case 276:case 205:return!0}return!1}function yg(e){var t,n;switch(e.kind){case 260:case 208:return null==(t=uc(e.initializer,(e=>Lm(e,!0))))?void 0:t.arguments[0];case 272:case 278:case 351:return et(e.moduleSpecifier,ju);case 271:return et(null==(n=et(e.moduleReference,TE))?void 0:n.expression,ju);case 273:case 280:return et(e.parent.moduleSpecifier,ju);case 274:case 281:return et(e.parent.parent.moduleSpecifier,ju);case 276:return et(e.parent.parent.parent.moduleSpecifier,ju);case 205:return uf(e)?e.argument.literal:void 0;default:_n.assertNever(e)}}function vg(e){return bg(e)||_n.failBadSyntaxKind(e.parent)}function bg(e){switch(e.parent.kind){case 272:case 278:case 351:return e.parent;case 283:return e.parent.parent;case 213:return lf(e.parent)||Lm(e.parent,!1)?e.parent:void 0;case 201:if(!NN(e))break;return et(e.parent.parent,qD);default:return}}function xg(e,t){return!!t.rewriteRelativeImportExtensions&&bo(e)&&!YI(e)&&jS(e)}function kg(e){switch(e.kind){case 272:case 278:case 351:return e.moduleSpecifier;case 271:return 283===e.moduleReference.kind?e.moduleReference.expression:void 0;case 205:return uf(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return 11===e.name.kind?e.name:void 0;default:return _n.assertNever(e)}}function Sg(e){switch(e.kind){case 272:return e.importClause&&et(e.importClause.namedBindings,dE);case 271:return e;case 278:return e.exportClause&&et(e.exportClause,pE);default:return _n.assertNever(e)}}function Tg(e){return!(272!==e.kind&&351!==e.kind||!e.importClause||!e.importClause.name)}function Cg(e,t){if(e.name){const n=t(e);if(n)return n}if(e.namedBindings){const n=dE(e.namedBindings)?t(e.namedBindings):_(e.namedBindings.elements,t);if(n)return n}}function wg(e){switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return void 0!==e.questionToken}return!1}function Ng(e){const t=iP(e)?pe(e.parameters):void 0,n=et(t&&t.name,VN);return!!n&&"new"===n.escapedText}function Dg(e){return 346===e.kind||338===e.kind||340===e.kind}function Fg(e){return Dg(e)||YF(e)}function Eg(e){return PF(e)&&uF(e.expression)&&0!==tg(e.expression)&&uF(e.expression.right)&&(57===e.expression.right.operatorToken.kind||61===e.expression.right.operatorToken.kind)?e.expression.right.right:void 0}function Pg(e){switch(e.kind){case 243:const t=Ag(e);return t&&t.initializer;case 172:case 303:return e.initializer}}function Ag(e){return FF(e)?pe(e.declarationList.declarations):void 0}function Ig(e){return eE(e)&&e.body&&267===e.body.kind?e.body:void 0}function Og(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function Lg(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function jg(e,t){let n;Pf(e)&&Eu(e)&&Du(e.initializer)&&(n=ae(n,Rg(e,e.initializer.jsDoc)));let r=e;for(;r&&r.parent;){if(Du(r)&&(n=ae(n,Rg(e,r.jsDoc))),169===r.kind){n=ae(n,(t?Pc:Ec)(r));break}if(168===r.kind){n=ae(n,(t?Oc:Ic)(r));break}r=Mg(r)}return n||s}function Rg(e,t){const n=ye(t);return A(t,(t=>{if(t===n){const n=C(t.tags,(t=>function(e,t){return!((wP(t)||AP(t))&&t.parent&&sP(t.parent)&&nF(t.parent.parent)&&t.parent.parent!==e)}(e,t)));return t.tags===n?[t]:n}return C(t.tags,vP)}))}function Mg(e){const t=e.parent;return 303===t.kind||277===t.kind||172===t.kind||244===t.kind&&211===e.kind||253===t.kind||Ig(t)||ib(e)?t:t.parent&&(Ag(t.parent)===e||ib(t))?t.parent:t.parent&&t.parent.parent&&(Ag(t.parent.parent)||Pg(t.parent.parent)===e||Eg(t.parent.parent))?t.parent.parent:void 0}function Bg(e){if(e.symbol)return e.symbol;if(!VN(e.name))return;const t=e.name.escapedText,n=qg(e);if(!n)return;const r=y(n.parameters,(e=>80===e.name.kind&&e.name.escapedText===t));return r&&r.symbol}function Jg(e){if(sP(e.parent)&&e.parent.tags){const t=y(e.parent.tags,Dg);if(t)return t}return qg(e)}function zg(e){return sl(e,vP)}function qg(e){const t=Ug(e);if(t)return _D(t)&&t.type&&r_(t.type)?t.type:r_(t)?t:void 0}function Ug(e){const t=Vg(e);if(t)return Eg(t)||function(e){return PF(e)&&uF(e.expression)&&64===e.expression.operatorToken.kind?Qm(e.expression):void 0}(t)||Pg(t)||Ag(t)||Ig(t)||t}function Vg(e){const t=Wg(e);if(!t)return;const n=t.parent;return n&&n.jsDoc&&t===he(n.jsDoc)?n:void 0}function Wg(e){return uc(e.parent,sP)}function $g(e){const t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&y(n,(e=>e.name.escapedText===t))}function Hg(e){return!!e.typeArguments}var Kg=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(Kg||{});function Gg(e){let t=e.parent;for(;;){switch(t.kind){case 226:const n=t;return tb(n.operatorToken.kind)&&n.left===e?n:void 0;case 224:case 225:const r=t,i=r.operator;return 46===i||47===i?r:void 0;case 249:case 250:const o=t;return o.initializer===e?o:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function Xg(e){const t=Gg(e);if(!t)return 0;switch(t.kind){case 226:const e=t.operatorToken.kind;return 64===e||Qv(e)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function Qg(e){return!!Gg(e)}function Yg(e){const t=Gg(e);return!!t&&ib(t,!0)&&function(e){const t=ah(e.right);return 226===t.kind&&RA(t.operatorToken.kind)}(t)}function Zg(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function eh(e){return rF(e)||iF(e)||m_(e)||GF(e)||mD(e)}function th(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function nh(e){return th(e,196)}function rh(e){return th(e,217)}function ih(e){let t;for(;e&&196===e.kind;)t=e,e=e.parent;return[t,e]}function oh(e){for(;jD(e);)e=e.type;return e}function ah(e,t){return uA(e,t?-2147483647:1)}function sh(e){return(211===e.kind||212===e.kind)&&((e=rh(e.parent))&&220===e.kind)}function ch(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function lh(e){return!WE(e)&&!k_(e)&&_u(e.parent)&&e.parent.name===e}function _h(e){const t=e.parent;switch(e.kind){case 11:case 15:case 9:if(aD(t))return t.parent;case 80:if(_u(t))return t.name===e?t:void 0;if(oD(t)){const e=t.parent;return SP(e)&&e.name===t?e:void 0}{const n=t.parent;return uF(n)&&0!==tg(n)&&(n.left.symbol||n.symbol)&&Cc(n)===e?n:void 0}case 81:return _u(t)&&t.name===e?t:void 0;default:return}}function uh(e){return jh(e)&&167===e.parent.kind&&_u(e.parent.parent)}function dh(e){const t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function ph(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do{e=e.parent}while(166===e.parent.kind);return ph(e)}}function fh(e){return sb(e)||gF(e)}function mh(e){return fh(gh(e))}function gh(e){return gE(e)?e.expression:e.right}function hh(e){return 304===e.kind?e.name:303===e.kind?e.initializer:e.parent.right}function yh(e){const t=vh(e);if(t&&Em(e)){const t=jc(e);if(t)return t.class}return t}function vh(e){const t=Sh(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function bh(e){if(Em(e))return Rc(e).map((e=>e.class));{const t=Sh(e.heritageClauses,119);return null==t?void 0:t.types}}function xh(e){return QF(e)?kh(e)||s:u_(e)&&$(nn(yh(e)),bh(e))||s}function kh(e){const t=Sh(e.heritageClauses,96);return t?t.types:void 0}function Sh(e,t){if(e)for(const n of e)if(n.token===t)return n}function Th(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function Ch(e){return 83<=e&&e<=165}function wh(e){return 19<=e&&e<=79}function Nh(e){return Ch(e)||wh(e)}function Dh(e){return 128<=e&&e<=165}function Fh(e){return Ch(e)&&!Dh(e)}function Eh(e){const t=Ea(e);return void 0!==t&&Fh(t)}function Ph(e){const t=hc(e);return!!t&&!Dh(t)}function Ah(e){return 2<=e&&e<=7}var Ih=(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))(Ih||{});function Oh(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Dv(e,1024)&&(t|=2)}return e.body||(t|=4),t}function Lh(e){switch(e.kind){case 262:case 218:case 219:case 174:return void 0!==e.body&&void 0===e.asteriskToken&&Dv(e,1024)}return!1}function jh(e){return ju(e)||CN(e)}function Rh(e){return lF(e)&&(40===e.operator||41===e.operator)&&CN(e.operand)}function Mh(e){const t=Cc(e);return!!t&&Bh(t)}function Bh(e){if(167!==e.kind&&212!==e.kind)return!1;const t=QD(e)?ah(e.argumentExpression):e.expression;return!jh(t)&&!Rh(t)}function Jh(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:case 10:return fc(e.text);case 167:const t=e.expression;return jh(t)?fc(t.text):Rh(t)?41===t.operator?Fa(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return oC(e);default:return _n.assertNever(e)}}function zh(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function qh(e){return dl(e)?gc(e):jE(e)?aC(e):e.text}function Uh(e){return dl(e)?e.escapedText:jE(e)?oC(e):fc(e.text)}function Vh(e,t){return`__#${HB(e)}@${t}`}function Wh(e){return Kt(e.escapedName,"__@")}function $h(e){return Kt(e.escapedName,"__#")}function Hh(e,t){switch((e=uA(e)).kind){case 231:if(Az(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return"function"!=typeof t||t(e)}function Kh(e){switch(e.kind){case 303:return!function(e){return VN(e)?"__proto__"===gc(e):NN(e)&&"__proto__"===e.text}(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return VN(e.name)&&!!e.initializer;case 169:case 208:return VN(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return VN(e.left)}break;case 277:return!0}return!1}function Gh(e,t){if(!Kh(e))return!1;switch(e.kind){case 303:case 260:case 169:case 208:case 172:return Hh(e.initializer,t);case 304:return Hh(e.objectAssignmentInitializer,t);case 226:return Hh(e.right,t);case 277:return Hh(e.expression,t)}}function Xh(e){return"push"===e.escapedText||"unshift"===e.escapedText}function Qh(e){return 169===Yh(e).kind}function Yh(e){for(;208===e.kind;)e=e.parent.parent;return e}function Zh(e){const t=e.kind;return 176===t||218===t||262===t||219===t||174===t||177===t||178===t||267===t||307===t}function ey(e){return QS(e.pos)||QS(e.end)}var ty=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(ty||{});function ny(e){const t=oy(e),n=214===e.kind&&void 0!==e.arguments;return ry(e.kind,t,n)}function ry(e,t,n){switch(e){case 214:return n?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226: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 iy(e){const t=oy(e),n=214===e.kind&&void 0!==e.arguments;return sy(e.kind,t,n)}function oy(e){return 226===e.kind?e.operatorToken.kind:224===e.kind||225===e.kind?e.operator:e.kind}var ay=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(ay||{});function sy(e,t,n){switch(e){case 356:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226: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 cy(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return n?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function cy(e){switch(e){case 61:return 4;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 ly(e){return C(e,(e=>{switch(e.kind){case 294:return!!e.expression;case 12:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}}))}function _y(){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,ik,sk)},lookup:function(t){let r;r=t.file?n.get(t.file.fileName):e;if(!r)return;const i=Se(r,t,at,ik);if(i>=0)return r[i];if(~i>0&&sk(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 uy=/\$\{/g;function dy(e){return e.replace(uy,"\\${")}function py(e){return!!(2048&(e.templateFlags||0))}function fy(e){return e&&!!(EN(e)?py(e):py(e.head)||V(e.templateSpans,(e=>py(e.literal))))}var my=/[\\"\u0000-\u001f\u2028\u2029\u0085]/g,gy=/[\\'\u0000-\u001f\u2028\u2029\u0085]/g,hy=/\r\n|[\\`\u0000-\u0009\u000b-\u001f\u2028\u2029\u0085]/g,yy=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 vy(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function by(e,t,n){if(0===e.charCodeAt(0)){const r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return yy.get(e)||vy(e.charCodeAt(0))}function xy(e,t){const n=96===t?hy:39===t?gy:my;return e.replace(n,by)}var ky=/[^\u0000-\u007F]/g;function Sy(e,t){return e=xy(e,t),ky.test(e)?e.replace(ky,(e=>vy(e.charCodeAt(0)))):e}var Ty=/["\u0000-\u001f\u2028\u2029\u0085]/g,Cy=/['\u0000-\u001f\u2028\u2029\u0085]/g,wy=new Map(Object.entries({'"':"&quot;","'":"&apos;"}));function Ny(e){return 0===e.charCodeAt(0)?"&#0;":wy.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Dy(e,t){const n=39===t?Cy:Ty;return e.replace(n,Ny)}function Fy(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 Ey(e){const t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}var Py=["","    "];function Ay(e){const t=Py[1];for(let n=Py.length;n<=e;n++)Py.push(Py[n-1]+t);return Py[e]}function Iy(){return Py[1].length}function Oy(e){var t,n,r,i,o,a=!1;function s(e){const n=Oa(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=Ay(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*Iy():t.length-o,getText:()=>t,isAtStartOfLine:()=>r,hasTrailingComment:()=>a,hasTrailingWhitespace:()=>!!t.length&&qa(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 Ly(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 jy(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function Ry(e){return Vt(jy(e))}function My(e,t,n){return t.moduleName||zy(e,t.fileName,n&&n.fileName)}function By(e,t){return e.getCanonicalFileName(Jo(t,e.getCurrentDirectory()))}function Jy(e,t,n){const r=t.getExternalModuleFileFromDeclaration(n);if(!r||r.isDeclarationFile)return;const i=kg(n);return!i||!ju(i)||bo(i.text)||By(e,r.path).includes(By(e,Wo(e.getCommonSourceDirectory())))?My(e,r):void 0}function zy(e,t,n){const r=t=>e.getCanonicalFileName(t),i=Uo(n?Fo(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),r),o=VS(aa(i,Jo(t,e.getCurrentDirectory()),i,r,!1));return n?$o(o):o}function qy(e,t,n){const r=t.getCompilerOptions();let i;return i=r.outDir?VS(Qy(e,t,r.outDir)):VS(e),i+n}function Uy(e,t){return Vy(e,t.getCompilerOptions(),t)}function Vy(e,t,n){const r=t.declarationDir||t.outDir,i=r?Yy(e,r,n.getCurrentDirectory(),n.getCommonSourceDirectory(),(e=>n.getCanonicalFileName(e))):e,o=Wy(i);return VS(i)+o}function Wy(e){return To(e,[".mjs",".mts"])?".d.mts":To(e,[".cjs",".cts"])?".d.cts":To(e,[".json"])?".d.json.ts":".d.ts"}function $y(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 Hy(e,t,n,r){return n?Mo(r(),ra(n,e,t)):e}function Ky(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 Gy(e,t,n){const r=e.getCompilerOptions();if(r.outFile){const t=bk(r),i=r.emitDeclarationOnly||2===t||4===t;return C(e.getSourceFiles(),(t=>(i||!VI(t))&&Xy(t,e,n)))}return C(void 0===t?e.getSourceFiles():[t],(t=>Xy(t,e,n)))}function Xy(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(!Zp(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(r.outFile)return!0;if(!r.outDir)return!1;if(r.rootDir||r.composite&&r.configFilePath){const n=Jo(Zq(r,(()=>[]),t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),i=Yy(e.fileName,r.outDir,t.getCurrentDirectory(),n,t.getCanonicalFileName);if(0===Zo(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()))return!1}return!0}function Qy(e,t,n){return Yy(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),(e=>t.getCanonicalFileName(e)))}function Yy(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 Zy(e,t,n,r,i,o,a){e.writeFile(n,r,i,(e=>{t.add(Yx(_a.Could_not_write_file_0_Colon_1,n,e))}),o,a)}function ev(e,t,n){if(e.length>Do(e)&&!n(e)){ev(Fo(e),t,n),t(e)}}function tv(e,t,n,r,i,o){try{r(e,t,n)}catch{ev(Fo(zo(e)),i,o),r(e,t,n)}}function nv(e,t){return Ba(Ra(e),t)}function rv(e,t){return Ba(e,t)}function iv(e){return y(e.members,(e=>mD(e)&&Nd(e.body)))}function ov(e){if(e&&e.parameters.length>0){const t=2===e.parameters.length&&cv(e.parameters[0]);return e.parameters[t?1:0]}}function av(e){const t=ov(e);return t&&t.type}function sv(e){if(e.parameters.length&&!lP(e)){const t=e.parameters[0];if(cv(t))return t}}function cv(e){return lv(e.name)}function lv(e){return!!e&&80===e.kind&&dv(e)}function _v(e){return!!uc(e,(e=>186===e.kind||80!==e.kind&&166!==e.kind&&"quit"))}function uv(e){if(!lv(e))return!1;for(;oD(e.parent)&&e.parent.left===e;)e=e.parent;return 186===e.parent.kind}function dv(e){return"this"===e.escapedText}function pv(e,t){let n,r,i,o;return Mh(t)?(n=t,177===t.kind?i=t:178===t.kind?o=t:_n.fail("Accessor has wrong kind")):_(e,(e=>{if(d_(e)&&Fv(e)===Fv(t)){Jh(e.name)===Jh(t.name)&&(n?r||(r=e):n=e,177!==e.kind||i||(i=e),178!==e.kind||o||(o=e))}})),{firstAccessor:n,secondAccessor:r,getAccessor:i,setAccessor:o}}function fv(e){if(!Em(e)&&GF(e))return;if(YF(e))return;const t=e.type;return t||!Em(e)?t:Nl(e)?e.typeExpression&&e.typeExpression.type:nl(e)}function mv(e){return e.type}function gv(e){return lP(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Em(e)?rl(e):void 0)}function hv(e){return A(ol(e),(e=>function(e){return NP(e)&&!(320===e.parent.kind&&(e.parent.tags.some(Dg)||e.parent.tags.some(vP)))}(e)?e.typeParameters:void 0))}function yv(e){const t=ov(e);return t&&fv(t)}function vv(e,t,n,r){!function(e,t,n,r){r&&r.length&&n!==r[0].pos&&rv(e,n)!==rv(e,r[0].pos)&&t.writeLine()}(e,t,n.pos,r)}function bv(e,t,n,r){n!==r&&rv(e,n)!==rv(e,r)&&t.writeLine()}function xv(e,t,n,r,i,o,a){let s,c;if(a?0===i.pos&&(s=C(_s(e,i.pos),(function(t){return Md(e,t.pos)}))):s=_s(e,i.pos),s){const a=[];let l;for(const e of s){if(l){const n=rv(t,l.end);if(rv(t,e.pos)>=n+2)break}a.push(e),l=e}if(a.length){const l=rv(t,ye(a).end);rv(t,Qa(e,i.pos))>=l+2&&(vv(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 kv(e,t,n,r,i,o){if(42===e.charCodeAt(r+1)){const a=Ma(t,r),s=t.length;let c;for(let l=r,_=a.line;l<i;_++){const u=_+1===s?e.length+1:t[_+1];if(l!==r){void 0===c&&(c=Tv(e,t[a.line],r));const i=n.getIndent()*Iy()-c+Tv(e,l,u);if(i>0){let e=i%Iy();const t=Ay((i-e)/Iy());for(n.rawWrite(t);e;)n.rawWrite(" "),e--}else n.rawWrite("")}Sv(e,i,n,o,l,u),l=u}}else n.writeComment(e.substring(r,i))}function Sv(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 Tv(e,t,n){let r=0;for(;t<n&&Ua(e.charCodeAt(t));t++)9===e.charCodeAt(t)?r+=Iy()-r%Iy():r++;return r}function Cv(e){return 0!==Jv(e)}function wv(e){return 0!==qv(e)}function Nv(e,t){return!!Rv(e,t)}function Dv(e,t){return!!Mv(e,t)}function Fv(e){return __(e)&&Ev(e)||fD(e)}function Ev(e){return Dv(e,256)}function Pv(e){return Nv(e,16)}function Av(e){return Dv(e,64)}function Iv(e){return Dv(e,128)}function Ov(e){return Dv(e,512)}function Lv(e){return Nv(e,8)}function jv(e){return Dv(e,32768)}function Rv(e,t){return Jv(e)&t}function Mv(e,t){return qv(e)&t}function Bv(e,t,n){return e.kind>=0&&e.kind<=165?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|$v(e)),n||t&&Em(e)?(268435456&e.modifierFlagsCache||!e.parent||(e.modifierFlagsCache|=268435456|Uv(e)),Vv(e.modifierFlagsCache)):65535&e.modifierFlagsCache)}function Jv(e){return Bv(e,!0)}function zv(e){return Bv(e,!0,!0)}function qv(e){return Bv(e,!1)}function Uv(e){let t=0;return e.parent&&!cD(e)&&(Em(e)&&(Jc(e)&&(t|=8388608),qc(e)&&(t|=16777216),Vc(e)&&(t|=33554432),$c(e)&&(t|=67108864),Hc(e)&&(t|=134217728)),Gc(e)&&(t|=65536)),t}function Vv(e){return 131071&e|(260046848&e)>>>23}function Wv(e){return $v(e)|function(e){return Vv(Uv(e))}(e)}function $v(e){let t=lI(e)?Hv(e.modifiers):0;return(8&e.flags||80===e.kind&&4096&e.flags)&&(t|=32),t}function Hv(e){let t=0;if(e)for(const n of e)t|=Kv(n.kind);return t}function Kv(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 170:return 32768}return 0}function Gv(e){return 57===e||56===e}function Xv(e){return Gv(e)||54===e}function Qv(e){return 76===e||77===e||78===e}function Yv(e){return uF(e)&&Qv(e.operatorToken.kind)}function Zv(e){return Gv(e)||61===e}function eb(e){return uF(e)&&Zv(e.operatorToken.kind)}function tb(e){return e>=64&&e<=79}function nb(e){const t=rb(e);return t&&!t.isImplements?t.class:void 0}function rb(e){if(yF(e)){if(BE(e.parent)&&u_(e.parent.parent))return{class:e.parent.parent,isImplements:119===e.parent.token};if(_P(e.parent)){const t=Ug(e.parent);if(t&&u_(t))return{class:t,isImplements:!1}}}}function ib(e,t){return uF(e)&&(t?64===e.operatorToken.kind:tb(e.operatorToken.kind))&&M_(e.left)}function ob(e){if(ib(e,!0)){const t=e.left.kind;return 210===t||209===t}return!1}function ab(e){return void 0!==nb(e)}function sb(e){return 80===e.kind||_b(e)}function cb(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{e=e.expression}while(80!==e.kind);return e}}function lb(e){return 80===e.kind||110===e.kind||108===e.kind||236===e.kind||211===e.kind&&lb(e.expression)||217===e.kind&&lb(e.expression)}function _b(e){return XD(e)&&VN(e.name)&&sb(e.expression)}function ub(e){if(XD(e)){const t=ub(e.expression);if(void 0!==t)return t+"."+jp(e.name)}else if(QD(e)){const t=ub(e.expression);if(void 0!==t&&t_(e.argumentExpression))return t+"."+Jh(e.argumentExpression)}else{if(VN(e))return mc(e.escapedText);if(jE(e))return aC(e)}}function db(e){return og(e)&&"prototype"===_g(e)}function pb(e){return 166===e.parent.kind&&e.parent.right===e||211===e.parent.kind&&e.parent.name===e||236===e.parent.kind&&e.parent.name===e}function fb(e){return!!e.parent&&(XD(e.parent)&&e.parent.name===e||QD(e.parent)&&e.parent.argumentExpression===e)}function mb(e){return oD(e.parent)&&e.parent.right===e||XD(e.parent)&&e.parent.name===e||GE(e.parent)&&e.parent.right===e}function gb(e){return uF(e)&&104===e.operatorToken.kind}function hb(e){return gb(e.parent)&&e===e.parent.right}function yb(e){return 210===e.kind&&0===e.properties.length}function vb(e){return 209===e.kind&&0===e.elements.length}function bb(e){if(function(e){return e&&l(e.declarations)>0&&Dv(e.declarations[0],2048)}(e)&&e.declarations)for(const t of e.declarations)if(t.localSymbol)return t.localSymbol}function xb(e){return y(wS,(t=>So(e,t)))}var kb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Sb(e){let t="";const n=function(e){const t=[],n=e.length;for(let r=0;r<n;r++){const n=e.charCodeAt(r);n<128?t.push(n):n<2048?(t.push(n>>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<i;)o=n[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+=kb.charAt(o)+kb.charAt(a)+kb.charAt(s)+kb.charAt(c),r+=3;return t}function Tb(e,t){return e&&e.base64encode?e.base64encode(t):Sb(t)}function Cb(e,t){if(e&&e.base64decode)return e.base64decode(t);const n=t.length,r=[];let i=0;for(;i<n&&t.charCodeAt(i)!==kb.charCodeAt(64);){const e=kb.indexOf(t[i]),n=kb.indexOf(t[i+1]),o=kb.indexOf(t[i+2]),a=kb.indexOf(t[i+3]),s=(63&e)<<2|n>>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<r;){const r=e[n];if(r<128)t+=String.fromCharCode(r),n++;else if(192&~r)t+=String.fromCharCode(r),n++;else{let i=63&r;n++;let o=e[n];for(;128==(192&o);)i=i<<6|63&o,n++,o=e[n];t+=String.fromCharCode(i)}}return t}(r)}function wb(e,t){const n=Ye(t)?t:t.readFile(e);if(!n)return;const r=oL(e,n);return r.error?void 0:r.config}function Nb(e,t){return wb(e,t)||{}}function Db(e){try{return JSON.parse(e)}catch{return}}function Fb(e,t){return!t.directoryExists||t.directoryExists(e)}var Eb="\r\n",Pb="\n";function Ab(e){switch(e.newLine){case 0:return Eb;case 1:case void 0:return Pb}}function Ib(e,t=e){return _n.assert(t>=e||-1===t),{pos:e,end:t}}function Ob(e,t){return Ib(e.pos,t)}function Lb(e,t){return Ib(t,e.end)}function jb(e){const t=lI(e)?v(e.modifiers,lD):void 0;return t&&!QS(t.end)?Lb(e,t.end):e}function Rb(e){if(uD(e)||pD(e))return Lb(e,e.name.pos);const t=lI(e)?he(e.modifiers):void 0;return t&&!QS(t.end)?Lb(e,t.end):jb(e)}function Mb(e,t){return Ib(e,e+Fa(t).length)}function Bb(e,t){return qb(e,e,t)}function Jb(e,t,n){return Hb(Kb(e,n,!1),Kb(t,n,!1),n)}function zb(e,t,n){return Hb(e.end,t.end,n)}function qb(e,t,n){return Hb(Kb(e,n,!1),t.end,n)}function Ub(e,t,n){return Hb(e.end,Kb(t,n,!1),n)}function Vb(e,t,n,r){const i=Kb(t,n,r);return Ja(n,e.end,i)}function Wb(e,t,n){return Ja(n,e.end,t.end)}function $b(e,t){return!Hb(e.pos,e.end,t)}function Hb(e,t,n){return 0===Ja(n,e,t)}function Kb(e,t,n){return QS(e.pos)?-1:Qa(t.text,e.pos,!1,n)}function Gb(e,t,n,r){const i=Qa(n.text,e,!1,r),o=function(e,t=0,n){for(;e-- >t;)if(!qa(n.text.charCodeAt(e)))return e}(i,t,n);return Ja(n,o??t,i)}function Xb(e,t,n,r){const i=Qa(n.text,e,!1,r);return Ja(n,e,Math.min(t,i))}function Qb(e,t){return Yb(e.pos,e.end,t)}function Yb(e,t,n){return e<=n.pos&&t>=n.end}function Zb(e){const t=pc(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function ex(e){return C(e.declarations,tx)}function tx(e){return HF(e)&&void 0!==e.initializer}function nx(e){return e.watch&&Ne(e,"watch")}function rx(e){e.close()}function ix(e){return 33554432&e.flags?e.links.checkFlags:0}function ox(e,t=!1){if(e.valueDeclaration){const n=ic(t&&e.declarations&&y(e.declarations,hD)||32768&e.flags&&y(e.declarations,gD)||e.valueDeclaration);return e.parent&&32&e.parent.flags?n:-8&n}if(6&ix(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 ax(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e}function sx(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function cx(e){return 1===_x(e)}function lx(e){return 0!==_x(e)}function _x(e){const{parent:t}=e;switch(null==t?void 0:t.kind){case 217:case 209:return _x(t);case 225:case 224:const{operator:n}=t;return 46===n||47===n?2:0;case 226:const{left:r,operatorToken:i}=t;return r===e&&tb(i.kind)?64===i.kind?1:2:0;case 211:return t.name!==e?0:_x(t);case 303:{const n=_x(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 304:return e===t.objectAssignmentInitializer?0:_x(t.parent);case 249:case 250:return e===t.initializer?1:0;default:return 0}}function ux(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(!ux(e[n],t[n]))return!1}else if("function"!=typeof e[n]&&e[n]!==t[n])return!1;return!0}function dx(e,t){e.forEach(t),e.clear()}function px(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 fx(e,t,n){px(e,t,n);const{createNewValue:r}=n;null==t||t.forEach(((t,n)=>{e.has(n)||e.set(n,r(n,t))}))}function mx(e){if(32&e.flags){const t=gx(e);return!!t&&Dv(t,64)}return!1}function gx(e){var t;return null==(t=e.declarations)?void 0:t.find(u_)}function hx(e){return 3899393&e.flags?e.objectFlags:0}function yx(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&rE(e.declarations[0])}function vx({moduleSpecifier:e}){return NN(e)?e.text:Gd(e)}function bx(e){let t;return RI(e,(e=>{Nd(e)&&(t=e)}),(e=>{for(let n=e.length-1;n>=0;n--)if(Nd(e[n])){t=e[n];break}})),t}function xx(e,t){return!e.has(t)&&(e.add(t),!0)}function kx(e){return u_(e)||QF(e)||wD(e)}function Sx(e){return e>=182&&e<=205||133===e||159===e||150===e||163===e||151===e||136===e||154===e||155===e||116===e||157===e||146===e||141===e||233===e||312===e||313===e||314===e||315===e||316===e||317===e||318===e}function Tx(e){return 211===e.kind||212===e.kind}function Cx(e){return 211===e.kind?e.name:(_n.assert(212===e.kind),e.argumentExpression)}function wx(e){return 275===e.kind||279===e.kind}function Nx(e){for(;Tx(e);)e=e.expression;return e}function Dx(e,t){if(Tx(e.parent)&&fb(e))return function e(n){if(211===n.kind){const e=t(n.name);if(void 0!==e)return e}else if(212===n.kind){if(!VN(n.argumentExpression)&&!ju(n.argumentExpression))return;{const e=t(n.argumentExpression);if(void 0!==e)return e}}if(Tx(n.expression))return e(n.expression);if(VN(n.expression))return t(n.expression);return}(e.parent)}function Fx(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 355:case 238:e=e.expression;continue}return e}}function Ex(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 Px(e,t){this.flags=t,(_n.isDebugging||$n)&&(this.checker=e)}function Ax(e,t){this.flags=t,_n.isDebugging&&(this.checker=e)}function Ix(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 Ox(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 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.original=void 0,this.emitNode=void 0}function jx(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}var Rx,Mx={getNodeConstructor:()=>Ix,getTokenConstructor:()=>Ox,getIdentifierConstructor:()=>Lx,getPrivateIdentifierConstructor:()=>Ix,getSourceFileConstructor:()=>Ix,getSymbolConstructor:()=>Ex,getTypeConstructor:()=>Px,getSignatureConstructor:()=>Ax,getSourceMapSourceConstructor:()=>jx},Bx=[];function Jx(e){Bx.push(e),e(Mx)}function zx(e){Object.assign(Mx,e),_(Bx,(e=>e(Mx)))}function qx(e,t){return e.replace(/\{(\d+)\}/g,((e,n)=>""+_n.checkDefined(t[+n])))}function Ux(e){Rx=e}function Vx(e){!Rx&&e&&(Rx=e())}function Wx(e){return Rx&&Rx[e.key]||e.message}function $x(e,t,n,r,i,...o){n+r>t.length&&(r=t.length-n),qp(t,n,r);let a=Wx(i);return V(o)&&(a=qx(a,o)),{file:void 0,start:n,length:r,messageText:a,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,fileName:e}}function Hx(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function Kx(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)Hx(o)&&o.fileName===n?(_n.assertLessThanOrEqual(o.start,r),_n.assertLessThanOrEqual(o.start+o.length,r),i.relatedInformation.push(Kx(o,t))):i.relatedInformation.push(o)}return i}function Gx(e,t){const n=[];for(const r of e)n.push(Kx(r,t));return n}function Xx(e,t,n,r,...i){qp(e.text,t,n);let o=Wx(r);return V(i)&&(o=qx(o,i)),{file:e,start:t,length:n,messageText:o,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function Qx(e,...t){let n=Wx(e);return V(t)&&(n=qx(n,t)),n}function Yx(e,...t){let n=Wx(e);return V(t)&&(n=qx(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 Zx(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 ek(e,t,...n){let r=Wx(t);return V(n)&&(r=qx(r,n)),{messageText:r,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}}function tk(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function nk(e){return e.file?e.file.path:void 0}function rk(e,t){return ik(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)=>rk(e,t.relatedInformation[n])))||0;return e.relatedInformation?-1:1}(e,t)||0}function ik(e,t){const n=ck(e),r=ck(t);return Tt(nk(e),nk(t))||yt(e.start,t.start)||yt(e.length,t.length)||yt(n,r)||function(e,t){let n=lk(e),r=lk(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 ok(e,t)||ak(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 ok(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<t.length;r++)if(n=ok(e[r].next,t[r].next),n)return n;return 0}function ak(e,t){let n;for(let r=0;r<t.length;r++){if(n=Tt(e[r].messageText,t[r].messageText),n)return n;if(void 0!==e[r].next&&(n=ak(e[r].next,t[r].next),n))return n}return 0}function sk(e,t){const n=ck(e),r=ck(t),i=lk(e),o=lk(t);return 0===Tt(nk(e),nk(t))&&0===yt(e.start,t.start)&&0===yt(e.length,t.length)&&0===yt(n,r)&&function(e,t){const n="string"==typeof e?e:e.messageText,r="string"==typeof t?t:t.messageText;return 0===Tt(n,r)}(i,o)}function ck(e){var t;return(null==(t=e.canonicalHead)?void 0:t.code)||e.code}function lk(e){var t;return(null==(t=e.canonicalHead)?void 0:t.messageText)||e.messageText}function _k(e){return 4===e||2===e||1===e||6===e?1:0}function uk(e){if(2&e.transformFlags)return bu(e)||FE(e)?e:RI(e,uk)}function dk(e){return e.isDeclarationFile?void 0:uk(e)}function pk(e,t){return!(99!==IV(e,t)&&!To(e.fileName,[".cjs",".cts",".mjs",".mts"])||e.isDeclarationFile)||void 0}function fk(e){switch(kk(e)){case 3:return e=>{e.externalModuleIndicator=gI(e)||!e.isDeclarationFile||void 0};case 1:return e=>{e.externalModuleIndicator=gI(e)};case 2:const t=[gI];4!==e.jsx&&5!==e.jsx||t.push(dk),t.push(pk);const n=Zt(...t);return t=>{t.externalModuleIndicator=n(t,e)}}}function mk(e){const t=xk(e);return 3<=t&&t<=99||wk(e)||Nk(e)}var gk={allowImportingTsExtensions:{dependencies:["rewriteRelativeImportExtensions"],computeValue:e=>!(!e.allowImportingTsExtensions&&!e.rewriteRelativeImportExtensions)},target:{dependencies:["module"],computeValue:e=>(0===e.target?void 0:e.target)??((100===e.module||101===e.module?9:199===e.module&&99)||1)},module:{dependencies:["target"],computeValue:e=>"number"==typeof e.module?e.module:gk.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(void 0===t)switch(gk.module.computeValue(e)){case 1:t=2;break;case 100:case 101:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.moduleDetection)return e.moduleDetection;const t=gk.module.computeValue(e);return 100<=t&&t<=199?3:2}},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!(!e.isolatedModules&&!e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(void 0!==e.esModuleInterop)return e.esModuleInterop;switch(gk.module.computeValue(e)){case 100:case 101:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>void 0!==e.allowSyntheticDefaultImports?e.allowSyntheticDefaultImports:gk.esModuleInterop.computeValue(e)||4===gk.module.computeValue(e)||100===gk.moduleResolution.computeValue(e)},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{const t=gk.moduleResolution.computeValue(e);if(!Bk(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"],computeValue:e=>{const t=gk.moduleResolution.computeValue(e);if(!Bk(t))return!1;if(void 0!==e.resolvePackageJsonExports)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>void 0!==e.resolveJsonModule?e.resolveJsonModule:100===gk.moduleResolution.computeValue(e)},declaration:{dependencies:["composite"],computeValue:e=>!(!e.declaration&&!e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!(!e.preserveConstEnums&&!gk.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!(!e.incremental&&!e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!(!e.declarationMap||!gk.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?gk.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>zk(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>zk(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>zk(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>zk(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>zk(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>zk(e,"strictPropertyInitialization")},strictBuiltinIteratorReturn:{dependencies:["strict"],computeValue:e=>zk(e,"strictBuiltinIteratorReturn")},alwaysStrict:{dependencies:["strict"],computeValue:e=>zk(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>zk(e,"useUnknownInCatchVariables")}},hk=gk,yk=gk.allowImportingTsExtensions.computeValue,vk=gk.target.computeValue,bk=gk.module.computeValue,xk=gk.moduleResolution.computeValue,kk=gk.moduleDetection.computeValue,Sk=gk.isolatedModules.computeValue,Tk=gk.esModuleInterop.computeValue,Ck=gk.allowSyntheticDefaultImports.computeValue,wk=gk.resolvePackageJsonExports.computeValue,Nk=gk.resolvePackageJsonImports.computeValue,Dk=gk.resolveJsonModule.computeValue,Fk=gk.declaration.computeValue,Ek=gk.preserveConstEnums.computeValue,Pk=gk.incremental.computeValue,Ak=gk.declarationMap.computeValue,Ik=gk.allowJs.computeValue,Ok=gk.useDefineForClassFields.computeValue;function Lk(e){return e>=5&&e<=99}function jk(e){switch(bk(e)){case 0:case 4:case 3:return!1}return!0}function Rk(e){return!1===e.allowUnreachableCode}function Mk(e){return!1===e.allowUnusedLabels}function Bk(e){return e>=3&&e<=99||100===e}function Jk(e){return 101<=e&&e<=199||200===e||99===e}function zk(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function qk(e){return nd(hO.type,((t,n)=>t===e?n:void 0))}function Uk(e){return!1!==e.useDefineForClassFields&&vk(e)>=9}function Vk(e,t){return ed(t,e,xO)}function Wk(e,t){return ed(t,e,kO)}function $k(e,t){return ed(t,e,SO)}function Hk(e,t){return t.strictFlag?zk(e,t.name):t.allowJsFlag?Ik(e):e[t.name]}function Kk(e){const t=e.jsx;return 2===t||4===t||5===t}function Gk(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 Xk(e,t){return e?`${e}/${5===t.jsx?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function Qk(e){let t=!1;for(let n=0;n<e.length;n++)if(42===e.charCodeAt(n)){if(t)return!1;t=!0}return!0}function Yk(e,t){let n,r,i,o=!1;return{getSymlinkedFiles:()=>i,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>r,setSymlinkedFile:(e,t)=>(i||(i=new Map)).set(e,t),setSymlinkedDirectory:(i,o)=>{let a=Uo(i,e,t);OT(a)||(a=Wo(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&&!!nd(n,(e=>!!e))}};function a(n,r){if(!r||!r.originalPath||!r.resolvedFileName)return;const{resolvedFileName:i,originalPath:o}=r;n.setSymlinkedFile(Uo(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&&!Zk(i[i.length-2],r)&&!Zk(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:Wo(a),realPath:Wo(Uo(a,e,t))})}}function Zk(e,t){return void 0!==e&&("node_modules"===t(e)||Kt(e,"@"))}function eS(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 tS=/[^\w\s/]/g;function nS(e){return e.replace(tS,rS)}function rS(e){return"\\"+e}var iS=[42,63],oS=`(?!(${["node_modules","bower_components","jspm_packages"].join("|")})(/|$))`,aS={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${oS}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>mS(e,aS.singleAsteriskRegexFragment)},sS={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${oS}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>mS(e,sS.singleAsteriskRegexFragment)},cS={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>mS(e,cS.singleAsteriskRegexFragment)},lS={files:aS,directories:sS,exclude:cS};function _S(e,t,n){const r=uS(e,t,n);if(!r||!r.length)return;return`^(${r.map((e=>`(${e})`)).join("|")})${"exclude"===n?"($|/)":"$"}`}function uS(e,t,n){if(void 0!==e&&0!==e.length)return A(e,(e=>e&&fS(e,t,n,lS[n])))}function dS(e){return!/[.*?]/.test(e)}function pS(e,t,n){const r=e&&fS(e,t,n,lS[n]);return r&&`^(${r})${"exclude"===n?"($|/)":"$"}`}function fS(e,t,n,{singleAsteriskRegexFragment:r,doubleAsteriskRegexFragment:i,replaceWildcardCharacter:o}=lS[n]){let a="",s=!1;const c=Bo(e,t),l=ye(c);if("exclude"!==n&&"**"===l)return;c[0]=Vo(c[0]),dS(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(tS,o),t!==e&&(a+=oS),a+=t}else a+=e.replace(tS,o);s=!0}for(;_>0;)a+=")?",_--;return a}function mS(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function gS(e,t,n,r,i){e=zo(e);const o=Ro(i=zo(i),e);return{includeFilePatterns:D(uS(n,o,"files"),(e=>`^${e}$`)),includeFilePattern:_S(n,o,"files"),includeDirectoryPattern:_S(n,o,"directories"),excludePattern:_S(t,o,"exclude"),basePaths:vS(e,n,r)}}function hS(e,t){return new RegExp(e,t?"":"i")}function yS(e,t,n,r,i,o,a,s,c){e=zo(e),o=zo(o);const l=gS(e,n,r,i,o),_=l.includeFilePatterns&&l.includeFilePatterns.map((e=>hS(e,i))),u=l.includeDirectoryPattern&&hS(l.includeDirectoryPattern,i),d=l.excludePattern&&hS(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 vS(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(bS(t))}i.sort(Ct(!n));for(const t of i)h(r,(r=>!ea(r,t,e,!n)))&&r.push(t)}return r}function bS(e){const t=S(e,iS);return t<0?ko(e)?Vo(Fo(e)):e:e.substring(0,e.lastIndexOf(_o,t))}function xS(e,t){return t||kS(e)||3}function kS(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 SS=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],TS=P(SS),CS=[...SS,[".json"]],wS=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],NS=P([[".js",".jsx"],[".mjs"],[".cjs"]]),DS=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],FS=[...DS,[".json"]],ES=[".d.ts",".d.cts",".d.mts"],PS=[".ts",".cts",".mts",".tsx"],AS=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"];function IS(e,t){const n=e&&Ik(e);if(!t||0===t.length)return n?DS:SS;const r=n?DS:SS,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 OS(e,t){return e&&Dk(e)?t===DS?FS:t===SS?CS:[...t,[".json"]]:t}function LS(e){return V(NS,(t=>So(e,t)))}function jS(e){return V(TS,(t=>So(e,t)))}function RS(e){return V(PS,(t=>So(e,t)))&&!YI(e)}var MS=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(MS||{});function BS(e,t,n,r){const i=xk(n),o=3<=i&&i<=99;return"js"===e||99===t&&o?EM(n)&&2!==a()?3:2:"minimal"===e?0:"index"===e?1:EM(n)?a():r&&function({imports:e},t=Zt(LS,jS)){return d(e,(({text:e})=>bo(e)&&!To(e,AS)?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;Jm(r)?t=$(t,r.declarationList.declarations.map((e=>e.initializer))):PF(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===rV(r,a,n))continue;if(To(a.text,AS))continue;if(jS(a.text))return 3;LS(a.text)&&(e=!0)}return e?2:0}}function JS(e,t,n){if(!e)return!1;const r=IS(t,n);for(const n of P(OS(t,r)))if(So(e,n))return!0;return!1}function zS(e){const t=e.match(/\//g);return t?t.length:0}function qS(e,t){return yt(zS(e),zS(t))}var US=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"];function VS(e){for(const t of US){const n=WS(e,t);if(void 0!==n)return n}return e}function WS(e,t){return So(e,t)?$S(e,t):void 0}function $S(e,t){return e.substring(0,e.length-t.length)}function HS(e,t){return Ho(e,t,US,!1)}function KS(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 GS=new WeakMap;function XS(e){let t,n,r=GS.get(e);if(void 0!==r)return r;const i=Fe(e);for(const e of i){const r=KS(e);void 0!==r&&("string"==typeof r?(t??(t=new Set)).add(r):(n??(n=[])).push(r))}return GS.set(e,r={matchableStringSet:t,patterns:n}),r}function QS(e){return!(e>=0)}function YS(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 ZS(e){return YS(e)||".json"===e}function eT(e){const t=nT(e);return void 0!==t?t:_n.fail(`File ${e} has unknown extension.`)}function tT(e){return void 0!==nT(e)}function nT(e){return y(US,(t=>So(e,t)))}function rT(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}var iT={files:s,directories:s};function oT(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 aT(e,t){const n=e.indexOf(t);return _n.assert(-1!==n),e.slice(n)}function sT(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 cT(e,t){_n.assert(0!==e.length);let n=t(e[0]),r=n;for(let i=1;i<e.length;i++){const o=t(e[i]);o<n?n=o:o>r&&(r=o)}return{min:n,max:r}}function lT(e){return{pos:Jd(e),end:e.end}}function _T(e,t){return{pos:t.pos-1,end:Math.min(e.text.length,Qa(e.text,t.end)+1)}}function uT(e,t,n){return pT(e,t,n,!1)}function dT(e,t,n){return pT(e,t,n,!0)}function pT(e,t,n,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||!r&&t.noCheck||n.isSourceOfProjectReferenceRedirect(e.fileName)||!fT(e,t)}function fT(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)&&rT(e,t);return bd(e,t.checkJs)||n||7===e.scriptKind}function mT(e,t){return e===t||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&Le(e,t,mT)}function gT(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 hT({negative:e,base10Value:t}){return(e&&"0"!==t?"-":"")+t}function yT(e){if(bT(e,!1))return vT(e)}function vT(e){const t=e.startsWith("-");return{negative:t,base10Value:gT(`${t?e.slice(1):e}n`)}}function bT(e,t){if(""===e)return!1;const n=gs(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===hT({negative:o,base10Value:gT(n.getTokenValue())}))}function xT(e){return!!(33554432&e.flags)||km(e)||function(e){if(80!==e.kind)return!1;const t=uc(e.parent,(e=>{switch(e.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}}));return 119===(null==t?void 0:t.token)||264===(null==t?void 0:t.parent.kind)}(e)||function(e){for(;80===e.kind||211===e.kind;)e=e.parent;if(167!==e.kind)return!1;if(Dv(e.parent,64))return!0;const t=e.parent.parent.kind;return 264===t||187===t}(e)||!(bm(e)||function(e){return VN(e)&&qE(e.parent)&&e.parent.name===e}(e))}function kT(e){return kD(e)&&VN(e.typeName)}function ST(e,t=ft){if(e.length<2)return!0;const n=e[0];for(let r=1,i=e.length;r<i;r++){if(!t(n,e[r]))return!1}return!0}function TT(e,t){return e.pos=t,e}function CT(e,t){return e.end=t,e}function wT(e,t,n){return CT(TT(e,t),n)}function NT(e,t,n){return wT(e,t,t+n)}function DT(e,t){return e&&(e.flags=t),e}function FT(e,t){return e&&t&&(e.parent=t),e}function ET(e,t){return e?(MI(e,Su(e)?n:function(e,t){return n(e,t)||function(e){if(Du(e))for(const t of e.jsDoc)n(t,e),MI(t,n)}(e)}),e):e;function n(e,n){if(t&&e.parent===n)return"skip";FT(e,n)}}function PT(e){return!hF(e)}function AT(e){return KD(e)&&h(e.elements,PT)}function IT(e){for(_n.assertIsDefined(e.parent);;){const t=e.parent;if(nF(t))e=t;else{if(PF(t)||sF(t)||LF(t)&&(t.initializer===e||t.incrementor===e))return!0;if(CF(t)){if(e!==ye(t.elements))return!0;e=t}else{if(!uF(t)||28!==t.operatorToken.kind)return!1;if(e===t.left)return!0;e=t}}}}function OT(e){return V(Yi,(t=>e.includes(t)))}function LT(e){if(!e.parent)return;switch(e.kind){case 168:const{parent:t}=e;return 195===t.kind?void 0:t.typeParameters;case 169:return e.parent.parameters;case 204:case 239:return e.parent.templateSpans;case 170:{const{parent:t}=e;return _I(t)?t.modifiers:void 0}case 298:return e.parent.heritageClauses}const{parent:t}=e;if(Cu(e))return cP(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return h_(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 356:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return b_(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return hu(e)?t.children:void 0;case 286:case 285:return b_(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:case 307:return t.statements;case 269:return t.clauses;case 263:case 231:return __(e)?t.members:void 0;case 266:return VE(e)?t.members:void 0}}function jT(e){if(!e.typeParameters){if(V(e.parameters,(e=>!fv(e))))return!0;if(219!==e.kind){const t=pe(e.parameters);if(!t||!cv(t))return!0}}return!1}function RT(e){return"Infinity"===e||"-Infinity"===e||"NaN"===e}function MT(e){return 260===e.kind&&299===e.parent.kind}function BT(e){return 218===e.kind||219===e.kind}function JT(e){return e.replace(/\$/g,(()=>"\\$"))}function zT(e){return(+e).toString()===e}function qT(e,t,n,r,i){const o=i&&"new"===e;return!o&&ms(e,t)?ZC.createIdentifier(e):!r&&!o&&zT(e)&&+e>=0?ZC.createNumericLiteral(+e):ZC.createStringLiteral(e,!!n)}function UT(e){return!!(262144&e.flags&&e.isThisType)}function VT(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(zR,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(zR,s)===s?1:3}return o=s,l>1?{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function WT(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 346:case 338:case 340:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function $T(e){return ZF(e)||FF(e)||GF(e)||XF(e)||QF(e)||WT(e)||eE(e)&&!pp(e)&&!dp(e)}function HT(e){if(!Nl(e))return!1;const{isBracketed:t,typeExpression:n}=e;return t||!!n&&316===n.type.kind}function KT(e,t){if(0===e.length)return!1;const n=e.charCodeAt(0);return 35===n?e.length>1&&ps(e.charCodeAt(1),t):ps(n,t)}function GT(e){var t;return 0===(null==(t=Pw(e))?void 0:t.kind)}function XT(e){return Em(e)&&(e.type&&316===e.type.kind||Ec(e).some(HT))}function QT(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||XT(e);case 348:case 341:return HT(e);default:return!1}}function YT(e){const t=e.kind;return(211===t||212===t)&&xF(e.expression)}function ZT(e){return Em(e)&&nF(e)&&Du(e)&&!!el(e)}function eC(e){return _n.checkDefined(tC(e))}function tC(e){const t=el(e);return t&&t.typeExpression&&t.typeExpression.type}function nC(e){return VN(e)?e.escapedText:oC(e)}function rC(e){return VN(e)?gc(e):aC(e)}function iC(e){const t=e.kind;return 80===t||295===t}function oC(e){return`${e.namespace.escapedText}:${gc(e.name)}`}function aC(e){return`${gc(e.namespace)}:${gc(e.name)}`}function sC(e){return VN(e)?gc(e):aC(e)}function cC(e){return!!(8576&e.flags)}function lC(e){return 8192&e.flags?e.escapedName:384&e.flags?fc(""+e.value):_n.fail()}function _C(e){return!!e&&(XD(e)||QD(e)||uF(e))}function uC(e){return void 0!==e&&!!aV(e.attributes)}var dC=String.prototype.replace;function pC(e,t){return dC.call(e,"*",t)}function fC(e){return VN(e.name)?e.name.escapedText:fc(e.name.text)}function mC(e){switch(e.kind){case 168:case 169:case 172:case 171:case 185:case 184:case 179:case 180:case 181:case 174:case 173:case 175:case 176:case 177:case 178:case 183:case 182:case 186:case 187:case 188:case 189:case 192:case 193:case 196:case 190:case 191:case 197:case 198:case 194:case 195:case 203:case 205:case 202:case 328:case 329:case 346:case 338:case 340:case 345:case 344:case 324:case 325:case 326:case 341:case 348:case 317:case 315:case 314:case 312:case 313:case 322:case 318:case 309:case 333:case 335:case 334:case 350:case 343:case 199:case 200:case 262:case 241:case 268:case 243: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 260:case 208:case 263:case 264:case 265:case 266:case 267:case 272:case 271:case 278:case 277:case 242:case 259:case 282:return!0}return!1}function gC(e,t=!1,n=!1,r=!1){return{value:e,isSyntacticallyString:t,resolvedOtherFiles:n,hasExternalReferences:r}}function hC({evaluateElementAccessExpression:e,evaluateEntityNameExpression:t}){function n(r,i){let o=!1,a=!1,s=!1;switch((r=ah(r)).kind){case 224:const c=n(r.operand,i);if(a=c.resolvedOtherFiles,s=c.hasExternalReferences,"number"==typeof c.value)switch(r.operator){case 40:return gC(c.value,o,a,s);case 41:return gC(-c.value,o,a,s);case 55:return gC(~c.value,o,a,s)}break;case 226:{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 gC(e.value|t.value,o,a,s);case 51:return gC(e.value&t.value,o,a,s);case 49:return gC(e.value>>t.value,o,a,s);case 50:return gC(e.value>>>t.value,o,a,s);case 48:return gC(e.value<<t.value,o,a,s);case 53:return gC(e.value^t.value,o,a,s);case 42:return gC(e.value*t.value,o,a,s);case 44:return gC(e.value/t.value,o,a,s);case 40:return gC(e.value+t.value,o,a,s);case 41:return gC(e.value-t.value,o,a,s);case 45:return gC(e.value%t.value,o,a,s);case 43:return gC(e.value**t.value,o,a,s)}else if(!("string"!=typeof e.value&&"number"!=typeof e.value||"string"!=typeof t.value&&"number"!=typeof t.value||40!==r.operatorToken.kind))return gC(""+e.value+t.value,o,a,s);break}case 11:case 15:return gC(r.text,!0);case 228:return function(e,t){let r=e.head.text,i=!1,o=!1;for(const a of e.templateSpans){const e=n(a.expression,t);if(void 0===e.value)return gC(void 0,!0);r+=e.value,r+=a.literal.text,i||(i=e.resolvedOtherFiles),o||(o=e.hasExternalReferences)}return gC(r,!0,i,o)}(r,i);case 9:return gC(+r.text);case 80:return t(r,i);case 211:if(sb(r))return t(r,i);break;case 212:return e(r,i)}return gC(void 0,o,a,s)}return n}function yC(e){return W_(e)&&kl(e.type)||wP(e)&&kl(e.typeExpression)}function vC(e){const t=e.members;for(const e of t)if(176===e.kind&&Nd(e.body))return e}function bC({compilerOptions:e,requireSymbol:t,argumentsSymbol:n,error:r,getSymbolOfDeclaration:i,globals:o,lookup:a,setRequiresScopeChangeCache:s=ot,getRequiresScopeChangeCache:c=ot,onPropertyWithInvalidInitializer:l=rt,onFailedToResolveSymbol:u=ot,onSuccessfullyResolvedSymbol:d=ot}){var p=e.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",f=Uk(e),m=Ku();return function(s,c,_,f,y,x){var k,S,T;const C=s;let w,N,D,F,E,P,A=!1;const I=Ye(c)?c:c.escapedText;e:for(;s;){if("const"===I&&yC(s))return;if(ou(s)&&N&&s.name===N&&(N=s,s=s.parent),su(s)&&s.locals&&!Qp(s)&&(w=a(s.locals,I,_))){let e=!0;if(r_(s)&&N&&N!==s.body?(_&w.flags&788968&&320!==N.kind&&(e=!!(262144&w.flags)&&(!!(16&N.flags)||N===s.type||169===N.kind||341===N.kind||342===N.kind||168===N.kind)),_&w.flags&3&&(g(w,s,N)?e=!1:1&w.flags&&(e=169===N.kind||!!(16&N.flags)||N===s.type&&!!uc(w.valueDeclaration,cD)))):194===s.kind&&(e=N===s.trueType),e)break e;w=void 0}switch(A=A||h(s,N),s.kind){case 307:if(!Yp(s))break;case 267:const t=(null==(k=i(s))?void 0:k.exports)||m;if(307===s.kind||eE(s)&&33554432&s.flags&&!dp(s)){if(w=t.get("default")){const e=bb(w);if(e&&w.flags&_&&e.escapedName===I)break e;w=void 0}const e=t.get(I);if(e&&2097152===e.flags&&($u(e,281)||$u(e,280)))break}if("default"!==I&&(w=a(t,I,2623475&_))){if(!WE(s)||!s.commonJsModuleIndicator||(null==(S=w.declarations)?void 0:S.some(Dg)))break e;w=void 0}break;case 266:if(w=a((null==(T=i(s))?void 0:T.exports)||m,I,8&_)){!f||!Sk(e)||33554432&s.flags||yd(s)===yd(w.valueDeclaration)||r(C,_a.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,mc(I),p,`${mc(i(s).escapedName)}.${mc(I)}`);break e}break;case 172:if(!Fv(s)){const e=vC(s.parent);e&&e.locals&&a(e.locals,I,111551&_)&&(_n.assertNode(s,uD),F=s)}break;case 263:case 231:case 264:if(w=a(i(s).members||m,I,788968&_)){if(!b(w,s)){w=void 0;break}if(N&&Fv(N))return void(f&&r(C,_a.Static_members_cannot_reference_class_type_parameters));break e}if(gF(s)&&32&_){const e=s.name;if(e&&I===e.escapedText){w=s.symbol;break e}}break;case 233:if(N===s.expression&&96===s.parent.token){const e=s.parent.parent;if(u_(e)&&(w=a(i(e).members,I,788968&_)))return void(f&&r(C,_a.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 167:if(P=s.parent.parent,(u_(P)||264===P.kind)&&(w=a(i(P).members,I,788968&_)))return void(f&&r(C,_a.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type));break;case 219:if(vk(e)>=2)break;case 174:case 176:case 177:case 178:case 262:if(3&_&&"arguments"===I){w=n;break e}break;case 218: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 170:s.parent&&169===s.parent.kind&&(s=s.parent),s.parent&&(__(s.parent)||263===s.parent.kind)&&(s=s.parent);break;case 346:case 338:case 340:case 351:const o=Wg(s);o&&(s=o.parent);break;case 169:N&&(N===s.initializer||N===s.name&&k_(N))&&(E||(E=s));break;case 208:N&&(N===s.initializer||N===s.name&&k_(N))&&Qh(s)&&!E&&(E=s);break;case 195:if(262144&_){const e=s.typeParameter.name;if(e&&I===e.escapedText){w=s.typeParameter.symbol;break e}}break;case 281:N&&N===s.propertyName&&s.parent.parent.moduleSpecifier&&(s=s.parent.parent.parent)}v(s,N)&&(D=s),N=s,s=NP(s)?Jg(s)||s.parent:(SP(s)||TP(s))&&qg(s)||s.parent}!y||!w||D&&w===D.symbol||(w.isReferenced|=_);if(!w){if(N&&(_n.assertNode(N,WE),N.commonJsModuleIndicator&&"exports"===I&&_&N.symbol.flags))return N.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,_,N,E,A):u(C,c,_,f)}return w};function g(t,n,r){const i=vk(e),o=n;if(cD(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 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return a(e.name);case 172:return Ev(e)?!f:a(e.name);default:return xl(e)||hl(e)?i<7:HD(e)&&e.dotDotDotToken&&WD(e.parent)?i<4:!b_(e)&&(RI(e,a)||!1)}}}function h(e,t){return 219!==e.kind&&218!==e.kind?CD(e)||(o_(e)||172===e.kind&&!Fv(e))&&(!t||t!==e.name):(!t||t!==e.name)&&(!(!e.asteriskToken&&!Dv(e,1024))||!om(e))}function v(e,t){switch(e.kind){case 169:return!!t&&t===e.name;case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function b(e,t){if(e.declarations)for(const n of e.declarations)if(168===n.kind){if((NP(n.parent)?Vg(n.parent):n.parent)===t)return!(NP(n.parent)&&y(n.parent.parent.tags,Dg))}return!1}}function xC(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 224:return 41===e.operator?CN(e.operand)||t&&wN(e.operand):40===e.operator&&CN(e.operand);default:return!1}}function kC(e){for(;217===e.kind;)e=e.expression;return e}function SC(e){switch(_n.type(e),e.kind){case 169:case 171:case 172:case 208:case 211:case 212:case 226:case 260:case 277:case 303:case 304:case 341:case 348:return!0;default:return!1}}function TC(e){const t=uc(e,oE);return!!t&&!t.importClause}var CC=["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","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],wC=new Set(CC),NC=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]),DC=new Set([...CC,...CC.map((e=>`node:${e}`)),...NC]);function FC(e,t,n,r){const i=Em(e),o=/import|require/g;for(;null!==o.exec(e.text);){const a=EC(e,o.lastIndex,t);if(i&&Lm(a,n))r(a,a.arguments[0]);else if(lf(a)&&a.arguments.length>=1&&(!n||ju(a.arguments[0])))r(a,a.arguments[0]);else if(t&&uf(a))r(a,a.argument.literal);else if(t&&OP(a)){const e=kg(a);e&&NN(e)&&e.text&&r(a,e)}}}function EC(e,t,n){const r=Em(e);let i=e;const o=e=>{if(e.pos<=t&&(t<e.end||t===e.end&&1===e.kind))return e};for(;;){const e=r&&n&&Du(i)&&_(i.jsDoc,o)||RI(i,o);if(!e)return i;i=e}}function PC(e){return r_(e)||lP(e)||JD(e)}function AC(){let e,t,n,r,i;return{createBaseSourceFileNode:function(e){return new(i||(i=Mx.getSourceFileConstructor()))(e,-1,-1)},createBaseIdentifierNode:function(e){return new(n||(n=Mx.getIdentifierConstructor()))(e,-1,-1)},createBasePrivateIdentifierNode:function(e){return new(r||(r=Mx.getPrivateIdentifierConstructor()))(e,-1,-1)},createBaseTokenNode:function(e){return new(t||(t=Mx.getTokenConstructor()))(e,-1,-1)},createBaseNode:function(t){return new(e||(e=Mx.getNodeConstructor()))(t,-1,-1)}}}function IC(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 sA(t)?e.createParenthesizedExpression(t):t},parenthesizeConditionOfConditionalExpression:function(t){const n=sy(227,58),r=Sl(t);if(1!==yt(iy(r),n))return e.createParenthesizedExpression(t);return t},parenthesizeBranchOfConditionalExpression:function(t){return sA(Sl(t))?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfExportDefault:function(t){const n=Sl(t);let r=sA(n);if(!r)switch(Fx(n,!1).kind){case 231:case 218:r=!0}return r?e.createParenthesizedExpression(t):t},parenthesizeExpressionOfNew:function(t){const n=Fx(t,!0);switch(n.kind){case 213:return e.createParenthesizedExpression(t);case 214:return n.arguments?t:e.createParenthesizedExpression(t)}return s(t)},parenthesizeLeftSideOfAccess:s,parenthesizeOperandOfPostfixUnary:function(t){return M_(t)?t:cI(e.createParenthesizedExpression(t),t)},parenthesizeOperandOfPrefixUnary:function(t){return J_(t)?t:cI(e.createParenthesizedExpression(t),t)},parenthesizeExpressionsOfCommaDelimitedList:function(t){const n=E(t,c);return cI(e.createNodeArray(n,t.hasTrailingComma),t)},parenthesizeExpressionForDisallowedComma:c,parenthesizeExpressionOfExpressionStatement:function(t){const n=Sl(t);if(YD(n)){const r=n.expression,i=Sl(r).kind;if(218===i||219===i){const i=e.updateCallExpression(n,cI(e.createParenthesizedExpression(r),r),n.typeArguments,n.arguments);return e.restoreOuterExpressions(t,i,8)}}const r=Fx(n,!1).kind;if(210===r||218===r)return cI(e.createParenthesizedExpression(t),t);return t},parenthesizeConciseBodyOfArrowFunction:function(t){if(!DF(t)&&(sA(t)||210===Fx(t,!1).kind))return cI(e.createParenthesizedExpression(t),t);return t},parenthesizeCheckTypeOfConditionalType:l,parenthesizeExtendsTypeOfConditionalType:function(t){if(194===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(198===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(Al((e=Sl(e)).kind))return e.kind;if(226===e.kind&&40===e.operatorToken.kind){if(void 0!==e.cachedLiteralKind)return e.cachedLiteralKind;const t=r(e.left),n=Al(t)&&t===r(e.right)?t:0;return e.cachedLiteralKind=n,n}return 0}function i(t,n,i,o){return 217===Sl(n).kind?n:function(e,t,n,i){const o=sy(226,e),a=ry(226,e),s=Sl(t);if(!n&&219===t.kind&&o>3)return!0;switch(yt(iy(s),o)){case-1:return!(!n&&1===a&&229===t.kind);case 1:return!1;case 0:if(n)return 1===a;if(uF(s)&&s.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(Al(e)&&e===r(s))return!1}}return 0===ny(s)}}(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=Sl(t);return!M_(r)||214===r.kind&&!r.arguments||!n&&hl(r)?cI(e.createParenthesizedExpression(t),t):t}function c(t){return iy(Sl(t))>sy(226,28)?t:cI(e.createParenthesizedExpression(t),t)}function l(t){switch(t.kind){case 184:case 185:case 194:return e.createParenthesizedType(t)}return t}function _(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return l(t)}function u(t){switch(t.kind){case 192:case 193:return e.createParenthesizedType(t)}return _(t)}function d(t){return 193===t.kind?e.createParenthesizedType(t):u(t)}function p(t){switch(t.kind){case 195:case 198:case 186:return e.createParenthesizedType(t)}return d(t)}function f(t){return m(t)?e.createParenthesizedType(t):t}function m(e){return tP(e)?e.postfix:FD(e)||SD(e)||TD(e)||MD(e)?m(e.type):OD(e)?m(e.falseType):AD(e)||ID(e)?m(ye(e.types)):!!LD(e)&&(!!e.typeParameter.constraint&&m(e.typeParameter.constraint))}function g(t){return x_(t)&&t.typeParameters?e.createParenthesizedType(t):t}function h(e,t){return 0===t?g(e):e}}var OC={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,M_),parenthesizeLeftSideOfAccess:e=>tt(e,M_),parenthesizeOperandOfPostfixUnary:e=>tt(e,M_),parenthesizeOperandOfPrefixUnary:e=>tt(e,J_),parenthesizeExpressionsOfCommaDelimitedList:e=>tt(e,Pl),parenthesizeExpressionForDisallowedComma:at,parenthesizeExpressionOfExpressionStatement:at,parenthesizeConciseBodyOfArrowFunction:at,parenthesizeCheckTypeOfConditionalType:at,parenthesizeExtendsTypeOfConditionalType:at,parenthesizeConstituentTypesOfUnionType:e=>tt(e,Pl),parenthesizeConstituentTypeOfUnionType:at,parenthesizeConstituentTypesOfIntersectionType:e=>tt(e,Pl),parenthesizeConstituentTypeOfIntersectionType:at,parenthesizeOperandOfTypeOperator:at,parenthesizeOperandOfReadonlyTypeOperator:at,parenthesizeNonArrayTypeOfPostfixType:at,parenthesizeElementTypesOfTupleType:e=>tt(e,Pl),parenthesizeElementTypeOfTupleType:at,parenthesizeTypeOfOptionalType:at,parenthesizeTypeArguments:e=>e&&tt(e,Pl),parenthesizeLeadingTypeArgument:at};function LC(e){return{convertToFunctionBlock:function(t,n){if(DF(t))return t;const r=e.createReturnStatement(t);cI(r,t);const i=e.createBlock([r],n);return cI(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=Dc(t))?void 0:n.filter((e=>!$N(e)&&!HN(e))),t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);tw(r,t),cI(r,t),pw(t)&&fw(r,!0);return r},convertToClassExpression:function(t){var n;const r=e.createClassExpression(null==(n=t.modifiers)?void 0:n.filter((e=>!$N(e)&&!HN(e))),t.name,t.typeParameters,t.heritageClauses,t.members);tw(r,t),cI(r,t),pw(t)&&fw(r,!0);return r},convertToArrayAssignmentElement:t,convertToObjectAssignmentElement:n,convertToAssignmentPattern:r,convertToObjectAssignmentPattern:i,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:a};function t(t){if(HD(t)){if(t.dotDotDotToken)return _n.assertNode(t.name,VN),tw(cI(e.createSpreadElement(t.name),t),t);const n=a(t.name);return t.initializer?tw(cI(e.createAssignment(n,t.initializer),t),t):n}return tt(t,V_)}function n(t){if(HD(t)){if(t.dotDotDotToken)return _n.assertNode(t.name,VN),tw(cI(e.createSpreadAssignment(t.name),t),t);if(t.propertyName){const n=a(t.name);return tw(cI(e.createPropertyAssignment(t.propertyName,t.initializer?e.createAssignment(n,t.initializer):n),t),t)}return _n.assertNode(t.name,VN),tw(cI(e.createShorthandPropertyAssignment(t.name,t.initializer),t),t)}return tt(t,v_)}function r(e){switch(e.kind){case 207:case 209:return o(e);case 206:case 210:return i(e)}}function i(t){return WD(t)?tw(cI(e.createObjectLiteralExpression(D(t.elements,n)),t),t):tt(t,GD)}function o(n){return $D(n)?tw(cI(e.createArrayLiteralExpression(D(n.elements,t)),n),n):tt(n,KD)}function a(e){return k_(e)?r(e):tt(e,V_)}}var jC,RC={convertToFunctionBlock:_t,convertToFunctionExpression:_t,convertToClassExpression:_t,convertToArrayAssignmentElement:_t,convertToObjectAssignmentElement:_t,convertToAssignmentPattern:_t,convertToObjectAssignmentPattern:_t,convertToArrayAssignmentPattern:_t,convertToAssignmentElementTarget:_t},MC=0,BC=(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))(BC||{}),JC=[];function zC(e){JC.push(e)}function qC(e,t){const n=8&e?at:tw,r=ut((()=>1&e?OC:IC(b))),i=ut((()=>2&e?RC:LC(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:D,createStringLiteralFromNode:function(e){const t=N(qh(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 D(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(fc(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=dl(e)?eI(!0,t,e,n,gc):`#generated@${$B(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:De,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(192,e,r().parenthesizeConstituentTypesOfUnionType)},updateUnionTypeNode:function(e,t){return Be(e,t,r().parenthesizeConstituentTypesOfUnionType)},createIntersectionTypeNode:function(e){return Me(193,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(197);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)=>ow(rt(e,t),262144):rt,updatePropertyAccessExpression:function(e,t,n){if(fl(e))return st(e,t,e.questionDotToken,tt(n,VN));return e.expression!==t||e.name!==n?Ii(rt(t,n),e):e},createPropertyAccessChain:4&e?(e,t,n)=>ow(ot(e,t,n),262144):ot,updatePropertyAccessChain:st,createElementAccessExpression:lt,updateElementAccessExpression:function(e,t,n){if(ml(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(gl(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:Nt,createDeleteExpression:Dt,updateDeleteExpression:function(e,t){return e.expression!==t?Ii(Dt(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(232)},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(240);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(259);return e.jsDoc=void 0,e.flowNode=void 0,e},createVariableDeclaration:Nn,updateVariableDeclaration:function(e,t,n,r,i){return e.name!==t||e.type!==r||e.exclamationToken!==n||e.initializer!==i?Ii(Nn(t,n,r,i),e):e},createVariableDeclarationList:Dn,updateVariableDeclarationList:function(e,t){return e.declarations!==t?Ii(Dn(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){return e.isTypeOnly!==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(282);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(312)},get createJSDocUnknownType(){return l(313)},get createJSDocNonNullableType(){return p(315)},get updateJSDocNonNullableType(){return f(315)},get createJSDocNullableType(){return p(314)},get updateJSDocNullableType(){return f(314)},get createJSDocOptionalType(){return u(316)},get updateJSDocOptionalType(){return d(316)},get createJSDocVariadicType(){return u(318)},get updateJSDocVariadicType(){return d(318)},get createJSDocNamepathType(){return u(319)},get updateJSDocNamepathType(){return d(319)},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:Nr,updateJSDocImplementsTag:function(e,t=hr(e),n,r){return e.tagName!==t||e.class!==n||e.comment!==r?Ii(Nr(t,n,r),e):e},createJSDocSeeTag:Dr,updateJSDocSeeTag:function(e,t,n,r){return e.tagName!==t||e.name!==n||e.comment!==r?Ii(Dr(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(344)},get updateJSDocTypeTag(){return v(344)},get createJSDocReturnTag(){return y(342)},get updateJSDocReturnTag(){return v(342)},get createJSDocThisTag(){return y(343)},get updateJSDocThisTag(){return v(343)},get createJSDocAuthorTag(){return m(330)},get updateJSDocAuthorTag(){return g(330)},get createJSDocClassTag(){return m(332)},get updateJSDocClassTag(){return g(332)},get createJSDocPublicTag(){return m(333)},get updateJSDocPublicTag(){return g(333)},get createJSDocPrivateTag(){return m(334)},get updateJSDocPrivateTag(){return g(334)},get createJSDocProtectedTag(){return m(335)},get updateJSDocProtectedTag(){return g(335)},get createJSDocReadonlyTag(){return m(336)},get updateJSDocReadonlyTag(){return g(336)},get createJSDocOverrideTag(){return m(337)},get updateJSDocOverrideTag(){return g(337)},get createJSDocDeprecatedTag(){return m(331)},get updateJSDocDeprecatedTag(){return g(331)},get createJSDocThrowsTag(){return y(349)},get updateJSDocThrowsTag(){return v(349)},get createJSDocSatisfiesTag(){return y(350)},get updateJSDocSatisfiesTag(){return v(350)},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(289);return e.transformFlags|=2,e},createJsxJsxClosingFragment:function(){const e=k(290);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(307);return i.statements=x(e),i.endOfFileToken=n,i.flags|=r,i.text="",i.fileName="",i.path="",i.resolvedPath="",i.originalFileName="",i.languageVersion=1,i.languageVariant=0,i.scriptKind=0,i.isDeclarationFile=!1,i.hasNoDefaultLib=!1,i.transformFlags|=KC(i.statements)|HC(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=e.hasNoDefaultLib,a=e.libReferenceDirectives){return e.statements!==t||e.isDeclarationFile!==n||e.referencedFiles!==r||e.typeReferenceDirectives!==i||e.hasNoDefaultLib!==o||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=KC(s.statements)|HC(s.endOfFileToken),s}(e,t,n,r,i,o,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(237);return r.type=e,r.isSpread=t,r.tupleNameSource=n,r},createSyntaxList:function(e){const t=k(352);return t._children=e,t},createNotEmittedStatement:function(e){const t=k(353);return t.original=e,cI(t,e),t},createNotEmittedTypeElement:function(){return k(354)},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),D(t))},createIsNotTypeCheck:function(e,t){return"null"===t?b.createStrictInequality(e,z()):"undefined"===t?b.createStrictInequality(e,gi()):b.createStrictInequality(Ft(e),D(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=uA(e,63);let a,s;am(o)?(a=J(),s=o):nD(o)?(a=J(),s=void 0!==n&&n<2?cI(A("_super"),o):o):8192&Yd(o)?(a=gi(),s=r().parenthesizeLeftSideOfAccess(o,!1)):XD(o)?bi(o.expression,i)?(a=I(t),s=rt(cI(b.createAssignment(a,o.expression),o.expression),o.name),cI(s,o)):(a=o.expression,s=o):QD(o)?bi(o.expression,i)?(a=I(t),s=lt(cI(b.createAssignment(a,o.expression),o.expression),o.argumentExpression),cI(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&&Dv(t,32))return Si(e,xi(t),n,r);return ki(t,n,r)},restoreOuterExpressions:function e(t,n,r=63){if(t&&_A(t,r)&&(i=t,!(nF(i)&&ey(i)&&ey(lw(i))&&ey(mw(i)))||V(hw(i))||V(bw(i))))return function(e,t){switch(e.kind){case 217:return St(e,t);case 216:return xt(e,e.type,t);case 234:return Xt(e,t,e.type);case 238:return en(e,t,e.type);case 235:return Yt(e,t);case 233:return Ht(e,t,e.typeArguments);case 355: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,UF(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(!iA(e))return cI(x([Ti(),...e]),e);return e},liftToBlock:function(e){return _n.assert(h(e,fu),"Cannot lift nodes to a Block."),ve(e)||an(e)},mergeLexicalEnvironment:function(e,t){if(!V(t))return e;const n=Ni(e,df,0),r=Ni(e,ff,n),i=Ni(e,gf,r),o=Ni(t,df,0),a=Ni(t,ff,o),s=Ni(t,gf,a),c=Ni(t,pf,s);_n.assert(c===t.length,"Expected declarations to be valid standard or custom prologues");const l=Pl(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<n;t++){const n=e[t];r.set(n.expression.text,!0)}for(let e=o-1;e>=0;e--){const n=t[e];r.has(n.expression.text)||l.unshift(n)}}if(Pl(e))return cI(x(l,e.hasTrailingComma),e);return e},replaceModifiers:function(e,t){let n;n="number"==typeof t?$(t):t;return sD(e)?X(e,n,e.name,e.constraint,e.default):cD(e)?Y(e,n,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):TD(e)?Ee(e,n,e.typeParameters,e.parameters,e.type):_D(e)?te(e,n,e.name,e.questionToken,e.type):uD(e)?ie(e,n,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):dD(e)?ae(e,n,e.name,e.questionToken,e.typeParameters,e.parameters,e.type):pD(e)?ce(e,n,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):mD(e)?ue(e,n,e.parameters,e.body):gD(e)?pe(e,n,e.name,e.parameters,e.type,e.body):hD(e)?me(e,n,e.name,e.parameters,e.body):bD(e)?xe(e,n,e.parameters,e.type):rF(e)?Ct(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):iF(e)?Nt(e,n,e.typeParameters,e.parameters,e.type,e.equalsGreaterThanToken,e.body):gF(e)?Wt(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):FF(e)?cn(e,n,e.declarationList):GF(e)?En(e,n,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body):XF(e)?An(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):QF(e)?On(e,n,e.name,e.typeParameters,e.heritageClauses,e.members):YF(e)?jn(e,n,e.name,e.typeParameters,e.type):ZF(e)?Mn(e,n,e.name,e.members):eE(e)?Jn(e,n,e.name,e.body):iE(e)?Wn(e,n,e.isTypeOnly,e.name,e.moduleReference):oE(e)?Hn(e,n,e.importClause,e.moduleSpecifier,e.attributes):gE(e)?or(e,n,e.expression):hE(e)?sr(e,n,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes):_n.assertNever(e)},replaceDecoratorsAndModifiers:function(e,t){return cD(e)?Y(e,t,e.dotDotDotToken,e.name,e.questionToken,e.type,e.initializer):uD(e)?ie(e,t,e.name,e.questionToken??e.exclamationToken,e.type,e.initializer):pD(e)?ce(e,t,e.asteriskToken,e.name,e.questionToken,e.typeParameters,e.parameters,e.type,e.body):gD(e)?pe(e,t,e.name,e.parameters,e.type,e.body):hD(e)?me(e,t,e.name,e.parameters,e.body):gF(e)?Wt(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):XF(e)?An(e,t,e.name,e.typeParameters,e.heritageClauses,e.members):_n.assertNever(e)},replacePropertyName:function(e,t){switch(e.kind){case 177:return pe(e,e.modifiers,t,e.parameters,e.type,e.body);case 178:return me(e,e.modifiers,t,e.parameters,e.body);case 174:return ce(e,e.modifiers,e.asteriskToken,t,e.questionToken,e.typeParameters,e.parameters,e.type,e.body);case 173:return ae(e,e.modifiers,t,e.questionToken,e.typeParameters,e.parameters,e.type);case 172:return ie(e,e.modifiers,t,e.questionToken??e.exclamationToken,e.type,e.initializer);case 171:return te(e,e.modifiers,t,e.questionToken,e.type);case 303:return ri(e,t,e.initializer)}}};return _(JC,(e=>e(b))),b;function x(e,t){if(void 0===e||e===s)e=[];else if(Pl(e)){if(void 0===t||e.hasTrailingComma===t)return void 0===e.transformFlags&&GC(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,GC(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:hT(e)+"n",t.transformFlags|=32,t}function N(e,t){const n=S(11);return n.text=e,n.singleQuote=t,n}function D(e,t,n){const r=N(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(fc(e));return Mw(i,{flags:t,id:MC,prefix:n,suffix:r}),MC++,i}function A(e,t,n){void 0===t&&e&&(t=Ea(e)),80===t&&(t=void 0);const r=E(fc(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?dl(e)?eI(!1,n,e,r,gc):`generated@${$B(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(fc(e));return Mw(i,{flags:t,id:MC,prefix:n,suffix:r}),MC++,i}function M(e){return t.createBaseTokenNode(e)}function B(e){_n.assert(e>=0&&e<=165,"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(166);return n.left=e,n.right=Fi(t),n.transformFlags|=HC(n.left)|$C(n.right),n.flowNode=void 0,n}function K(e){const t=k(167);return t.expression=r().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|HC(t.expression),t}function G(e,t,n,r){const i=S(168);return i.modifiers=Di(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(169);return a.modifiers=Di(e),a.dotDotDotToken=t,a.name=Fi(n),a.questionToken=r,a.type=i,a.initializer=Pi(o),lv(a.name)?a.transformFlags=1:a.transformFlags=KC(a.modifiers)|HC(a.dotDotDotToken)|WC(a.name)|HC(a.questionToken)|HC(a.initializer)|(a.questionToken??a.type?1:0)|(a.dotDotDotToken??a.initializer?1024:0)|(31&Hv(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(170);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|HC(t.expression),t}function ee(e,t,n,r){const i=S(171);return i.modifiers=Di(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(172);o.modifiers=Di(e),o.name=Fi(t),o.questionToken=n&&JN(n)?n:void 0,o.exclamationToken=n&&BN(n)?n:void 0,o.type=r,o.initializer=Pi(i);const a=33554432&o.flags||128&Hv(o.modifiers);return o.transformFlags=KC(o.modifiers)|WC(o.name)|HC(o.initializer)|(a||o.questionToken||o.exclamationToken||o.type?1:0)|(aD(o.name)||256&Hv(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&&JN(r)?r:void 0)||e.exclamationToken!==(void 0!==r&&BN(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(173);return a.modifiers=Di(e),a.name=Fi(t),a.questionToken=n,a.typeParameters=Di(r),a.parameters=Di(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(174);if(c.modifiers=Di(e),c.asteriskToken=t,c.name=Fi(n),c.questionToken=r,c.exclamationToken=void 0,c.typeParameters=Di(i),c.parameters=x(o),c.type=a,c.body=s,c.body){const e=1024&Hv(c.modifiers),t=!!c.asteriskToken,n=e&&t;c.transformFlags=KC(c.modifiers)|HC(c.asteriskToken)|WC(c.name)|HC(c.questionToken)|KC(c.typeParameters)|KC(c.parameters)|HC(c.type)|-67108865&HC(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(175);return t.body=e,t.transformFlags=16777216|HC(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(176);return r.modifiers=Di(e),r.parameters=x(t),r.body=n,r.body?r.transformFlags=KC(r.modifiers)|KC(r.parameters)|-67108865&HC(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(177);return o.modifiers=Di(e),o.name=Fi(t),o.parameters=x(n),o.type=r,o.body=i,o.body?o.transformFlags=KC(o.modifiers)|WC(o.name)|KC(o.parameters)|HC(o.type)|-67108865&HC(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(178);return i.modifiers=Di(e),i.name=Fi(t),i.parameters=x(n),i.body=r,i.body?i.transformFlags=KC(i.modifiers)|WC(i.name)|KC(i.parameters)|-67108865&HC(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(179);return r.typeParameters=Di(e),r.parameters=Di(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(180);return r.typeParameters=Di(e),r.parameters=Di(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(181);return r.modifiers=Di(e),r.parameters=Di(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(204);return n.type=e,n.literal=t,n.transformFlags=1,n}function Se(e,t,n){const r=k(182);return r.assertsModifier=e,r.parameterName=Fi(t),r.type=n,r.transformFlags=1,r}function Te(e,t){const n=k(183);return n.typeName=Fi(e),n.typeArguments=t&&r().parenthesizeTypeArguments(x(t)),n.transformFlags=1,n}function we(e,t,n){const r=S(184);return r.typeParameters=Di(e),r.parameters=Di(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 De(...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(185);return i.modifiers=Di(e),i.typeParameters=Di(t),i.parameters=Di(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(De(t,n,r,i),e):e}function Pe(e,t){const n=k(186);return n.exprName=e,n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags=1,n}function Ae(e){const t=S(187);return t.members=x(e),t.transformFlags=1,t}function Ie(e){const t=k(188);return t.elementType=r().parenthesizeNonArrayTypeOfPostfixType(e),t.transformFlags=1,t}function Oe(e){const t=k(189);return t.elements=x(r().parenthesizeElementTypesOfTupleType(e)),t.transformFlags=1,t}function Le(e,t,n,r){const i=S(202);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(190);return t.type=r().parenthesizeTypeOfOptionalType(e),t.transformFlags=1,t}function Re(e){const t=k(191);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(194);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(195);return t.typeParameter=e,t.transformFlags=1,t}function qe(e,t){const n=k(203);return n.head=e,n.templateSpans=x(t),n.transformFlags=1,n}function Ue(e,t,n,i,o=!1){const a=k(205);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(196);return t.type=e,t.transformFlags=1,t}function We(e,t){const n=k(198);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(199);return n.objectType=r().parenthesizeNonArrayTypeOfPostfixType(e),n.indexType=t,n.transformFlags=1,n}function He(e,t,n,r,i,o){const a=S(200);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(201);return t.literal=e,t.transformFlags=1,t}function Ge(e){const t=k(206);return t.elements=x(e),t.transformFlags|=525312|KC(t.elements),32768&t.transformFlags&&(t.transformFlags|=65664),t}function Qe(e){const t=k(207);return t.elements=x(e),t.transformFlags|=525312|KC(t.elements),t}function Ye(e,t,n,r){const i=S(208);return i.dotDotDotToken=e,i.propertyName=Fi(t),i.name=Fi(n),i.initializer=Pi(r),i.transformFlags|=HC(i.dotDotDotToken)|WC(i.propertyName)|WC(i.name)|HC(i.initializer)|(i.dotDotDotToken?32768:0)|1024,i.flowNode=void 0,i}function Ze(e,t){const n=k(209),i=e&&he(e),o=x(e,!(!i||!hF(i))||void 0);return n.elements=r().parenthesizeExpressionsOfCommaDelimitedList(o),n.multiLine=t,n.transformFlags|=KC(n.elements),n}function et(e,t){const n=S(210);return n.properties=x(e),n.multiLine=t,n.transformFlags|=KC(n.properties),n.jsDoc=void 0,n}function nt(e,t,n){const r=S(211);return r.expression=e,r.questionDotToken=t,r.name=n,r.transformFlags=HC(r.expression)|HC(r.questionDotToken)|(VN(r.name)?$C(r.name):536870912|HC(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 nD(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(212);return r.expression=e,r.questionDotToken=t,r.argumentExpression=n,r.transformFlags|=HC(r.expression)|HC(r.questionDotToken)|HC(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 nD(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(213);return i.expression=e,i.questionDotToken=t,i.typeArguments=n,i.arguments=r,i.transformFlags|=HC(i.expression)|HC(i.questionDotToken)|KC(i.typeArguments)|KC(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,Di(t),r().parenthesizeExpressionsOfCommaDelimitedList(x(n)));return rD(i.expression)&&(i.transformFlags|=8388608),i}function gt(e,t,n,i){const o=ft(r().parenthesizeLeftSideOfAccess(e,!0),t,Di(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(214);return i.expression=r().parenthesizeExpressionOfNew(e),i.typeArguments=Di(t),i.arguments=n?r().parenthesizeExpressionsOfCommaDelimitedList(n):void 0,i.transformFlags|=HC(i.expression)|KC(i.typeArguments)|KC(i.arguments)|32,i.typeArguments&&(i.transformFlags|=1),i}function vt(e,t,n){const i=k(215);return i.tag=r().parenthesizeLeftSideOfAccess(e,!1),i.typeArguments=Di(t),i.template=n,i.transformFlags|=HC(i.tag)|KC(i.typeArguments)|HC(i.template)|1024,i.typeArguments&&(i.transformFlags|=1),fy(i.template)&&(i.transformFlags|=128),i}function bt(e,t){const n=k(216);return n.expression=r().parenthesizeOperandOfPrefixUnary(t),n.type=e,n.transformFlags|=HC(n.expression)|HC(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(217);return t.expression=e,t.transformFlags=HC(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(218);s.modifiers=Di(e),s.asteriskToken=t,s.name=Fi(n),s.typeParameters=Di(r),s.parameters=x(i),s.type=o,s.body=a;const c=1024&Hv(s.modifiers),l=!!s.asteriskToken,_=c&&l;return s.transformFlags=KC(s.modifiers)|HC(s.asteriskToken)|WC(s.name)|KC(s.typeParameters)|KC(s.parameters)|HC(s.type)|-67108865&HC(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(219);s.modifiers=Di(e),s.typeParameters=Di(t),s.parameters=x(n),s.type=i,s.equalsGreaterThanToken=o??B(39),s.body=r().parenthesizeConciseBodyOfArrowFunction(a);const c=1024&Hv(s.modifiers);return s.transformFlags=KC(s.modifiers)|KC(s.typeParameters)|KC(s.parameters)|HC(s.type)|HC(s.equalsGreaterThanToken)|-67108865&HC(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 Nt(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 Dt(e){const t=k(220);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=HC(t.expression),t}function Ft(e){const t=k(221);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=HC(t.expression),t}function Et(e){const t=k(222);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=HC(t.expression),t}function Pt(e){const t=k(223);return t.expression=r().parenthesizeOperandOfPrefixUnary(e),t.transformFlags|=2097536|HC(t.expression),t}function At(e,t){const n=k(224);return n.operator=e,n.operand=r().parenthesizeOperandOfPrefixUnary(t),n.transformFlags|=HC(n.operand),46!==e&&47!==e||!VN(n.operand)||Wl(n.operand)||tA(n.operand)||(n.transformFlags|=268435456),n}function It(e,t){const n=k(225);return n.operator=t,n.operand=r().parenthesizeOperandOfPostfixUnary(e),n.transformFlags|=HC(n.operand),!VN(n.operand)||Wl(n.operand)||tA(n.operand)||(n.transformFlags|=268435456),n}function Ot(e,t,n){const i=S(226),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|=HC(i.left)|HC(i.operatorToken)|HC(i.right),61===s?i.transformFlags|=32:64===s?GD(i.left)?i.transformFlags|=5248|Lt(i.left):KD(i.left)&&(i.transformFlags|=5120|Lt(i.left)):43===s||68===s?i.transformFlags|=512:Qv(s)&&(i.transformFlags|=16),103===s&&WN(i.left)&&(i.transformFlags|=536870912),i.jsDoc=void 0,i}function Lt(e){return sI(e)?65536:0}function jt(e,t,n,i,o){const a=k(227);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|=HC(a.condition)|HC(a.questionToken)|HC(a.whenTrue)|HC(a.colonToken)|HC(a.whenFalse),a.flowNodeWhenFalse=void 0,a.flowNodeWhenTrue=void 0,a}function Rt(e,t){const n=k(228);return n.head=e,n.templateSpans=x(t),n.transformFlags|=HC(n.head)|KC(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){jC||(jC=gs(99,!1,0));switch(e){case 15:jC.setText("`"+t+"`");break;case 16:jC.setText("`"+t+"${");break;case 17:jC.setText("}"+t+"${");break;case 18:jC.setText("}"+t+"`")}let n,r=jC.scan();20===r&&(r=jC.reScanTemplateToken(!1));if(jC.isUnterminated())return jC.setText(void 0),VC;switch(r){case 15:case 16:case 17:case 18:n=jC.getTokenValue()}if(void 0===n||1!==jC.scan())return jC.setText(void 0),VC;return jC.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(229);return n.expression=t&&r().parenthesizeExpressionForDisallowedComma(t),n.asteriskToken=e,n.transformFlags|=1049728|(HC(n.expression)|HC(n.asteriskToken)),n}function Ut(e){const t=k(230);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=33792|HC(t.expression),t}function Vt(e,t,n,r,i){const o=S(231);return o.modifiers=Di(e),o.name=Fi(t),o.typeParameters=Di(n),o.heritageClauses=Di(r),o.members=x(i),o.transformFlags|=KC(o.modifiers)|WC(o.name)|KC(o.typeParameters)|KC(o.heritageClauses)|KC(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(233);return n.expression=r().parenthesizeLeftSideOfAccess(e,!1),n.typeArguments=t&&r().parenthesizeTypeArguments(t),n.transformFlags|=HC(n.expression)|KC(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(234);return n.expression=e,n.type=t,n.transformFlags|=HC(n.expression)|HC(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(235);return t.expression=r().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=1|HC(t.expression),t}function Yt(e,t){return Tl(e)?nn(e,t):e.expression!==t?Ii(Qt(t),e):e}function Zt(e,t){const n=k(238);return n.expression=e,n.type=t,n.transformFlags|=HC(n.expression)|HC(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(235);return t.flags|=64,t.expression=r().parenthesizeLeftSideOfAccess(e,!0),t.transformFlags|=1|HC(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(236);switch(n.keywordToken=e,n.name=t,n.transformFlags|=HC(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(239);return n.expression=e,n.literal=t,n.transformFlags|=HC(n.expression)|HC(n.literal)|1024,n}function an(e,t){const n=k(241);return n.statements=x(e),n.multiLine=t,n.transformFlags|=KC(n.statements),n.jsDoc=void 0,n.locals=void 0,n.nextContainer=void 0,n}function sn(e,t){const n=k(243);return n.modifiers=Di(e),n.declarationList=Xe(t)?Dn(t):t,n.transformFlags|=KC(n.modifiers)|HC(n.declarationList),128&Hv(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(242);return e.jsDoc=void 0,e}function un(e){const t=k(244);return t.expression=r().parenthesizeExpressionOfExpressionStatement(e),t.transformFlags|=HC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function dn(e,t,n){const r=k(245);return r.expression=e,r.thenStatement=Ai(t),r.elseStatement=Ai(n),r.transformFlags|=HC(r.expression)|HC(r.thenStatement)|HC(r.elseStatement),r.jsDoc=void 0,r.flowNode=void 0,r}function pn(e,t){const n=k(246);return n.statement=Ai(e),n.expression=t,n.transformFlags|=HC(n.statement)|HC(n.expression),n.jsDoc=void 0,n.flowNode=void 0,n}function fn(e,t){const n=k(247);return n.expression=e,n.statement=Ai(t),n.transformFlags|=HC(n.expression)|HC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function mn(e,t,n,r){const i=k(248);return i.initializer=e,i.condition=t,i.incrementor=n,i.statement=Ai(r),i.transformFlags|=HC(i.initializer)|HC(i.condition)|HC(i.incrementor)|HC(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(249);return r.initializer=e,r.expression=t,r.statement=Ai(n),r.transformFlags|=HC(r.initializer)|HC(r.expression)|HC(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(250);return o.awaitModifier=e,o.initializer=t,o.expression=r().parenthesizeExpressionForDisallowedComma(n),o.statement=Ai(i),o.transformFlags|=HC(o.awaitModifier)|HC(o.initializer)|HC(o.expression)|HC(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(251);return t.label=Fi(e),t.transformFlags|=4194304|HC(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function vn(e){const t=k(252);return t.label=Fi(e),t.transformFlags|=4194304|HC(t.label),t.jsDoc=void 0,t.flowNode=void 0,t}function bn(e){const t=k(253);return t.expression=e,t.transformFlags|=4194432|HC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function xn(e,t){const n=k(254);return n.expression=e,n.statement=Ai(t),n.transformFlags|=HC(n.expression)|HC(n.statement),n.jsDoc=void 0,n.flowNode=void 0,n}function kn(e,t){const n=k(255);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.caseBlock=t,n.transformFlags|=HC(n.expression)|HC(n.caseBlock),n.jsDoc=void 0,n.flowNode=void 0,n.possiblyExhaustive=!1,n}function Sn(e,t){const n=k(256);return n.label=Fi(e),n.statement=Ai(t),n.transformFlags|=HC(n.label)|HC(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(257);return t.expression=e,t.transformFlags|=HC(t.expression),t.jsDoc=void 0,t.flowNode=void 0,t}function wn(e,t,n){const r=k(258);return r.tryBlock=e,r.catchClause=t,r.finallyBlock=n,r.transformFlags|=HC(r.tryBlock)|HC(r.catchClause)|HC(r.finallyBlock),r.jsDoc=void 0,r.flowNode=void 0,r}function Nn(e,t,n,r){const i=S(260);return i.name=Fi(e),i.exclamationToken=t,i.type=n,i.initializer=Pi(r),i.transformFlags|=WC(i.name)|HC(i.initializer)|(i.exclamationToken??i.type?1:0),i.jsDoc=void 0,i}function Dn(e,t=0){const n=k(261);return n.flags|=7&t,n.declarations=x(e),n.transformFlags|=4194304|KC(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(262);if(s.modifiers=Di(e),s.asteriskToken=t,s.name=Fi(n),s.typeParameters=Di(r),s.parameters=x(i),s.type=o,s.body=a,!s.body||128&Hv(s.modifiers))s.transformFlags=1;else{const e=1024&Hv(s.modifiers),t=!!s.asteriskToken,n=e&&t;s.transformFlags=KC(s.modifiers)|HC(s.asteriskToken)|WC(s.name)|KC(s.typeParameters)|KC(s.parameters)|HC(s.type)|-67108865&HC(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(263);return o.modifiers=Di(e),o.name=Fi(t),o.typeParameters=Di(n),o.heritageClauses=Di(r),o.members=x(i),128&Hv(o.modifiers)?o.transformFlags=1:(o.transformFlags|=KC(o.modifiers)|WC(o.name)|KC(o.typeParameters)|KC(o.heritageClauses)|KC(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(264);return o.modifiers=Di(e),o.name=Fi(t),o.typeParameters=Di(n),o.heritageClauses=Di(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(265);return i.modifiers=Di(e),i.name=Fi(t),i.typeParameters=Di(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(266);return r.modifiers=Di(e),r.name=Fi(t),r.members=x(n),r.transformFlags|=KC(r.modifiers)|HC(r.name)|KC(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(267);return i.modifiers=Di(e),i.flags|=2088&r,i.name=t,i.body=n,128&Hv(i.modifiers)?i.transformFlags=1:i.transformFlags|=KC(i.modifiers)|HC(i.name)|HC(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(268);return t.statements=x(e),t.transformFlags|=KC(t.statements),t.jsDoc=void 0,t}function qn(e){const t=k(269);return t.clauses=x(e),t.transformFlags|=KC(t.clauses),t.locals=void 0,t.nextContainer=void 0,t}function Un(e){const t=S(270);return t.name=Fi(e),t.transformFlags|=1|$C(t.name),t.modifiers=void 0,t.jsDoc=void 0,t}function Vn(e,t,n,r){const i=S(271);return i.modifiers=Di(e),i.name=Fi(n),i.isTypeOnly=t,i.moduleReference=r,i.transformFlags|=KC(i.modifiers)|$C(i.name)|HC(i.moduleReference),TE(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(272);return i.modifiers=Di(e),i.importClause=t,i.moduleSpecifier=n,i.attributes=i.assertClause=r,i.transformFlags|=HC(i.importClause)|HC(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(273);return r.isTypeOnly=e,r.name=t,r.namedBindings=n,r.transformFlags|=HC(r.name)|HC(r.namedBindings),e&&(r.transformFlags|=1),r.transformFlags&=-67108865,r}function Gn(e,t){const n=k(300);return n.elements=x(e),n.multiLine=t,n.token=132,n.transformFlags|=4,n}function Xn(e,t){const n=k(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function Qn(e,t){const n=k(302);return n.assertClause=e,n.multiLine=t,n}function Yn(e,t,n){const r=k(300);return r.token=n??118,r.elements=x(e),r.multiLine=t,r.transformFlags|=4,r}function Zn(e,t){const n=k(301);return n.name=e,n.value=t,n.transformFlags|=4,n}function er(e){const t=S(274);return t.name=e,t.transformFlags|=HC(t.name),t.transformFlags&=-67108865,t}function tr(e){const t=S(280);return t.name=e,t.transformFlags|=32|HC(t.name),t.transformFlags&=-67108865,t}function nr(e){const t=k(275);return t.elements=x(e),t.transformFlags|=KC(t.elements),t.transformFlags&=-67108865,t}function rr(e,t,n){const r=S(276);return r.isTypeOnly=e,r.propertyName=t,r.name=n,r.transformFlags|=HC(r.propertyName)|HC(r.name),r.transformFlags&=-67108865,r}function ir(e,t,n){const i=S(277);return i.modifiers=Di(e),i.isExportEquals=t,i.expression=t?r().parenthesizeRightSideOfBinary(64,void 0,n):r().parenthesizeExpressionOfExportDefault(n),i.transformFlags|=KC(i.modifiers)|HC(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(278);return o.modifiers=Di(e),o.isTypeOnly=t,o.exportClause=n,o.moduleSpecifier=r,o.attributes=o.assertClause=i,o.transformFlags|=KC(o.modifiers)|HC(o.exportClause)|HC(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(279);return t.elements=x(e),t.transformFlags|=KC(t.elements),t.transformFlags&=-67108865,t}function lr(e,t,n){const r=k(281);return r.isTypeOnly=e,r.propertyName=Fi(t),r.name=Fi(n),r.transformFlags|=HC(r.propertyName)|HC(r.name),r.transformFlags&=-67108865,r.jsDoc=void 0,r}function _r(e){const t=k(283);return t.expression=e,t.transformFlags|=HC(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(317);return n.parameters=Di(e),n.type=t,n.transformFlags=KC(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(322);return n.jsDocPropertyTags=Di(e),n.isArrayType=t,n}function mr(e){const t=k(309);return t.type=e,t}function gr(e,t,n){const r=S(323);return r.typeParameters=Di(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=UC(e.kind);return e.tagName.escapedText===fc(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(345,e??A("template"),r);return i.constraint=t,i.typeParameters=x(n),i}function xr(e,t,n,r){const i=vr(346,e??A("typedef"),r);return i.typeExpression=t,i.fullName=n,i.name=NA(n),i.locals=void 0,i.nextContainer=void 0,i}function kr(e,t,n,r,i,o){const a=vr(341,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(348,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(338,e??A("callback"),r);return i.typeExpression=t,i.fullName=n,i.name=NA(n),i.locals=void 0,i.nextContainer=void 0,i}function Cr(e,t,n){const r=yr(339,e??A("overload"),n);return r.typeExpression=t,r}function wr(e,t,n){const r=yr(328,e??A("augments"),n);return r.class=t,r}function Nr(e,t,n){const r=yr(329,e??A("implements"),n);return r.class=t,r}function Dr(e,t,n){const r=yr(347,e??A("see"),n);return r.name=t,r}function Fr(e){const t=k(310);return t.name=e,t}function Er(e,t){const n=k(311);return n.left=e,n.right=t,n.transformFlags|=HC(n.left)|HC(n.right),n}function Pr(e,t){const n=k(324);return n.name=e,n.text=t,n}function Ar(e,t){const n=k(325);return n.name=e,n.text=t,n}function Ir(e,t){const n=k(326);return n.name=e,n.text=t,n}function Or(e,t,n){return yr(e,t??A(UC(e)),n)}function Lr(e,t,n,r){const i=yr(e,t??A(UC(e)),r);return i.typeExpression=n,i}function jr(e,t){return yr(327,e,t)}function Rr(e,t,n){const r=vr(340,e??A(UC(340)),n);return r.typeExpression=t,r.locals=void 0,r.nextContainer=void 0,r}function Mr(e,t,n,r,i){const o=yr(351,e??A("import"),i);return o.importClause=t,o.moduleSpecifier=n,o.attributes=r,o.comment=i,o}function Br(e){const t=k(321);return t.text=e,t}function Jr(e,t){const n=k(320);return n.comment=e,n.tags=Di(t),n}function zr(e,t,n){const r=k(284);return r.openingElement=e,r.children=x(t),r.closingElement=n,r.transformFlags|=HC(r.openingElement)|KC(r.children)|HC(r.closingElement)|2,r}function qr(e,t,n){const r=k(285);return r.tagName=e,r.typeArguments=Di(t),r.attributes=n,r.transformFlags|=HC(r.tagName)|KC(r.typeArguments)|HC(r.attributes)|2,r.typeArguments&&(r.transformFlags|=1),r}function Ur(e,t,n){const r=k(286);return r.tagName=e,r.typeArguments=Di(t),r.attributes=n,r.transformFlags|=HC(r.tagName)|KC(r.typeArguments)|HC(r.attributes)|2,t&&(r.transformFlags|=1),r}function Vr(e){const t=k(287);return t.tagName=e,t.transformFlags|=2|HC(t.tagName),t}function Wr(e,t,n){const r=k(288);return r.openingFragment=e,r.children=x(t),r.closingFragment=n,r.transformFlags|=HC(r.openingFragment)|KC(r.children)|HC(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(291);return n.name=e,n.initializer=t,n.transformFlags|=HC(n.name)|HC(n.initializer)|2,n}function Kr(e){const t=S(292);return t.properties=x(e),t.transformFlags|=2|KC(t.properties),t}function Gr(e){const t=k(293);return t.expression=e,t.transformFlags|=2|HC(t.expression),t}function Xr(e,t){const n=k(294);return n.dotDotDotToken=e,n.expression=t,n.transformFlags|=HC(n.dotDotDotToken)|HC(n.expression)|2,n}function Qr(e,t){const n=k(295);return n.namespace=e,n.name=t,n.transformFlags|=HC(n.namespace)|HC(n.name)|2,n}function Yr(e,t){const n=k(296);return n.expression=r().parenthesizeExpressionForDisallowedComma(e),n.statements=x(t),n.transformFlags|=HC(n.expression)|KC(n.statements),n.jsDoc=void 0,n}function Zr(e){const t=k(297);return t.statements=x(e),t.transformFlags=KC(t.statements),t}function ei(e,t){const n=k(298);switch(n.token=e,n.types=x(t),n.transformFlags|=KC(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(299);return n.variableDeclaration=function(e){if("string"==typeof e||e&&!HF(e))return Nn(e,void 0,void 0,void 0);return e}(e),n.block=t,n.transformFlags|=HC(n.variableDeclaration)|HC(n.block)|(e?0:64),n.locals=void 0,n.nextContainer=void 0,n}function ni(e,t){const n=S(303);return n.name=Fi(e),n.initializer=r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=WC(n.name)|HC(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(304);return n.name=Fi(e),n.objectAssignmentInitializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=$C(n.name)|HC(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(305);return t.expression=r().parenthesizeExpressionForDisallowedComma(e),t.transformFlags|=65664|HC(t.expression),t.jsDoc=void 0,t}function ai(e,t){const n=S(306);return n.name=Fi(e),n.initializer=t&&r().parenthesizeExpressionForDisallowedComma(t),n.transformFlags|=HC(n.name)|HC(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(307);n.flags|=-17&e.flags;for(const t in e)!Ne(n,t)&&Ne(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(308);return t.sourceFiles=e,t.syntheticFileReferences=void 0,t.syntheticTypeReferences=void 0,t.syntheticLibReferences=void 0,t.hasNoDefaultLib=void 0,t}function _i(e,t){const n=k(355);return n.expression=e,n.original=t,n.transformFlags|=1|HC(n.expression),cI(n,t),n}function ui(e,t){return e.expression!==t?Ii(_i(t,e.original),e):e}function di(e){if(ey(e)&&!dc(e)&&!e.original&&!e.emitNode&&!e.id){if(CF(e))return e.elements;if(uF(e)&&LN(e.operatorToken))return[e.left,e.right]}return e}function pi(e){const t=k(356);return t.elements=x(L(e,di)),t.transformFlags|=KC(t.elements),t}function fi(e,t){const n=k(357);return n.expression=e,n.thisArg=t,n.transformFlags|=HC(n.expression)|HC(n.thisArg),n}function mi(e){if(void 0===e)return e;if(WE(e))return ci(e);if(Wl(e))return function(e){const t=E(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),Mw(t,{...e.emitNode.autoGenerate}),t}(e);if(VN(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=Rw(e);return r&&jw(t,r),t}(e);if($l(e))return function(e){const t=j(e.escapedText);return t.flags|=-17&e.flags,t.transformFlags=e.transformFlags,n(t,e),Mw(t,{...e.emitNode.autoGenerate}),t}(e);if(WN(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=Dl(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)!Ne(r,t)&&Ne(e,t)&&(r[t]=e[t]);return r}function gi(){return Et(C("0"))}function hi(e,t,n){return gl(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=ah(e);switch(n.kind){case 80:return t;case 110:case 9:case 10:case 11:return!1;case 209:return 0!==n.elements.length;case 210:return n.properties.length>0;default:return!0}}function xi(e,t,n,r=0,i){const o=i?e&&Tc(e):Cc(e);if(o&&VN(o)&&!Wl(o)){const e=FT(cI(mi(o),o),o.parent);return r|=Yd(o),n||(r|=96),t||(r|=3072),r&&ow(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,ey(t)?t:mi(t));cI(i,t);let o=0;return r||(o|=96),n||(o|=3072),o&&ow(i,o),i}function Ti(){return pA(un(D("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<o;){const r=e[n];if(!df(r))break;NN((a=r).expression)&&"use strict"===a.expression.text&&(i=!0),t.push(r),n++}var a;return r&&!i&&t.push(Ti()),n}function wi(e,t,n,r,i=it){const o=e.length;for(;void 0!==n&&n<o;){const o=e[n];if(!(2097152&Yd(o)&&i(o)))break;re(t,r?nJ(o,r,pu):o),n++}return n}function Ni(e,t,n){let r=n;for(;r<e.length&&t(e[r]);)r++;return r}function Di(e){return e?x(e):void 0}function Fi(e){return"string"==typeof e?A(e):e}function Ei(e){return"string"==typeof e?D(e):"number"==typeof e?C(e):"boolean"==typeof e?e?q():U():e}function Pi(e){return e&&r().parenthesizeExpressionForDisallowedComma(e)}function Ai(e){return e&&kE(e)?cI(n(ln(),e),e):e}function Ii(e,t){return e!==t&&(n(e,t),cI(e,t)),e}}function UC(e){switch(e){case 344:return"type";case 342:return"returns";case 343:return"this";case 340:return"enum";case 330:return"author";case 332:return"class";case 333:return"public";case 334:return"private";case 335:return"protected";case 336:return"readonly";case 337:return"override";case 345:return"template";case 346:return"typedef";case 341:return"param";case 348:return"prop";case 338:return"callback";case 339:return"overload";case 328:return"augments";case 329:return"implements";case 351:return"import";default:return _n.fail(`Unsupported kind: ${_n.formatSyntaxKind(e)}`)}}var VC={};function WC(e){return e&&VN(e)?$C(e):HC(e)}function $C(e){return-67108865&HC(e)}function HC(e){if(!e)return 0;const t=e.transformFlags&~function(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:case 206:case 207:return-2147450880;case 267:return-1941676032;case 169:case 216:case 238:case 234:case 355:case 217:case 108:case 211:case 212:default:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112}}(e.kind);return Sc(e)&&t_(e.name)?(n=e.name,t|134234112&n.transformFlags):t;var n}function KC(e){return e?e.transformFlags:0}function GC(e){let t=0;for(const n of e)t|=HC(n);e.transformFlags=t}var XC=AC();function QC(e){return e.flags|=16,e}var YC,ZC=qC(4,{createBaseSourceFileNode:e=>QC(XC.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>QC(XC.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>QC(XC.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>QC(XC.createBaseTokenNode(e)),createBaseNode:e=>QC(XC.createBaseNode(e))});function ew(e,t,n){return new(YC||(YC=Mx.getSourceMapSourceConstructor()))(e,t,n)}function tw(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 nw(e){if(e.emitNode)_n.assert(!(8&e.emitNode.internalFlags),"Invalid attempt to mutate an immutable node.");else{if(dc(e)){if(307===e.kind)return e.emitNode={annotatedNodes:[e]};nw(yd(pc(yd(e)))??_n.fail("Could not determine parsed source file.")).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function rw(e){var t,n;const r=null==(n=null==(t=yd(pc(e)))?void 0:t.emitNode)?void 0:n.annotatedNodes;if(r)for(const e of r)e.emitNode=void 0}function iw(e){const t=nw(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function ow(e,t){return nw(e).flags=t,e}function aw(e,t){const n=nw(e);return n.flags=n.flags|t,e}function sw(e,t){return nw(e).internalFlags=t,e}function cw(e,t){const n=nw(e);return n.internalFlags=n.internalFlags|t,e}function lw(e){var t;return(null==(t=e.emitNode)?void 0:t.sourceMapRange)??e}function _w(e,t){return nw(e).sourceMapRange=t,e}function uw(e,t){var n,r;return null==(r=null==(n=e.emitNode)?void 0:n.tokenSourceMapRanges)?void 0:r[t]}function dw(e,t,n){const r=nw(e);return(r.tokenSourceMapRanges??(r.tokenSourceMapRanges=[]))[t]=n,e}function pw(e){var t;return null==(t=e.emitNode)?void 0:t.startsOnNewLine}function fw(e,t){return nw(e).startsOnNewLine=t,e}function mw(e){var t;return(null==(t=e.emitNode)?void 0:t.commentRange)??e}function gw(e,t){return nw(e).commentRange=t,e}function hw(e){var t;return null==(t=e.emitNode)?void 0:t.leadingComments}function yw(e,t){return nw(e).leadingComments=t,e}function vw(e,t,n,r){return yw(e,re(hw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function bw(e){var t;return null==(t=e.emitNode)?void 0:t.trailingComments}function xw(e,t){return nw(e).trailingComments=t,e}function kw(e,t,n,r){return xw(e,re(bw(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:r,text:n}))}function Sw(e,t){yw(e,hw(t)),xw(e,bw(t));const n=nw(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function Tw(e){var t;return null==(t=e.emitNode)?void 0:t.constantValue}function Cw(e,t){return nw(e).constantValue=t,e}function ww(e,t){const n=nw(e);return n.helpers=re(n.helpers,t),e}function Nw(e,t){if(V(t)){const n=nw(e);for(const e of t)n.helpers=ce(n.helpers,e)}return e}function Dw(e,t){var n;const r=null==(n=e.emitNode)?void 0:n.helpers;return!!r&&Jt(r,t)}function Fw(e){var t;return null==(t=e.emitNode)?void 0:t.helpers}function Ew(e,t,n){const r=e.emitNode,i=r&&r.helpers;if(!V(i))return;const o=nw(t);let a=0;for(let e=0;e<i.length;e++){const t=i[e];n(t)?(a++,o.helpers=ce(o.helpers,t)):a>0&&(i[e-a]=t)}a>0&&(i.length-=a)}function Pw(e){var t;return null==(t=e.emitNode)?void 0:t.snippetElement}function Aw(e,t){return nw(e).snippetElement=t,e}function Iw(e){return nw(e).internalFlags|=4,e}function Ow(e,t){return nw(e).typeNode=t,e}function Lw(e){var t;return null==(t=e.emitNode)?void 0:t.typeNode}function jw(e,t){return nw(e).identifierTypeArguments=t,e}function Rw(e){var t;return null==(t=e.emitNode)?void 0:t.identifierTypeArguments}function Mw(e,t){return nw(e).autoGenerate=t,e}function Bw(e){var t;return null==(t=e.emitNode)?void 0:t.autoGenerate}function Jw(e,t){return nw(e).generatedImportReference=t,e}function zw(e){var t;return null==(t=e.emitNode)?void 0:t.generatedImportReference}var qw=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(qw||{});function Uw(e){const t=e.factory,n=ut((()=>sw(t.createTrue(),8))),r=ut((()=>sw(t.createFalse(),8)));return{getUnscopedHelperName:i,createDecorateHelper:function(n,r,o,a){e.requestEmitHelper($w);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(Hw),t.createCallExpression(i("__metadata"),void 0,[t.createStringLiteral(n),r])},createParamHelper:function(n,r,o){return e.requestEmitHelper(Kw),cI(t.createCallExpression(i("__param"),void 0,[t.createNumericLiteral(r+""),n]),o)},createESDecorateHelper:function(n,r,o,s,c,l){return e.requestEmitHelper(Gw),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(Xw),t.createCallExpression(i("__runInitializers"),void 0,o?[n,r,o]:[n,r])},createAssignHelper:function(n){if(vk(e.getCompilerOptions())>=2)return t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,n);return e.requestEmitHelper(Qw),t.createCallExpression(i("__assign"),void 0,n)},createAwaitHelper:function(n){return e.requestEmitHelper(Yw),t.createCallExpression(i("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,r){return e.requestEmitHelper(Yw),e.requestEmitHelper(Zw),(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(Yw),e.requestEmitHelper(eN),t.createCallExpression(i("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return e.requestEmitHelper(tN),t.createCallExpression(i("__asyncValues"),void 0,[n])},createRestHelper:function(n,r,o,a){e.requestEmitHelper(nN);const s=[];let c=0;for(let e=0;e<r.length-1;e++){const n=SA(r[e]);if(n)if(aD(n)){_n.assertIsDefined(o,"Encountered computed property name but 'computedTempVariables' argument was not provided.");const e=o[c];c++,s.push(t.createConditionalExpression(t.createTypeCheck(e,"symbol"),void 0,e,void 0,t.createAdd(e,t.createStringLiteral(""))))}else s.push(t.createStringLiteralFromNode(n))}return t.createCallExpression(i("__rest"),void 0,[n,cI(t.createArrayLiteralExpression(s),a)])},createAwaiterHelper:function(n,r,o,a,s){e.requestEmitHelper(rN);const c=t.createFunctionExpression(void 0,t.createToken(42),void 0,void 0,a??[],void 0,s);return(c.emitNode||(c.emitNode={})).flags|=1572864,t.createCallExpression(i("__awaiter"),void 0,[n?t.createThis():t.createVoidZero(),r??t.createVoidZero(),o?XP(t,o):t.createVoidZero(),c])},createExtendsHelper:function(n){return e.requestEmitHelper(iN),t.createCallExpression(i("__extends"),void 0,[n,t.createUniqueName("_super",48)])},createTemplateObjectHelper:function(n,r){return e.requestEmitHelper(oN),t.createCallExpression(i("__makeTemplateObject"),void 0,[n,r])},createSpreadArrayHelper:function(o,a,s){return e.requestEmitHelper(sN),t.createCallExpression(i("__spreadArray"),void 0,[o,a,s?n():r()])},createPropKeyHelper:function(n){return e.requestEmitHelper(cN),t.createCallExpression(i("__propKey"),void 0,[n])},createSetFunctionNameHelper:function(t,n,r){return e.requestEmitHelper(lN),e.factory.createCallExpression(i("__setFunctionName"),void 0,r?[t,n,e.factory.createStringLiteral(r)]:[t,n])},createValuesHelper:function(n){return e.requestEmitHelper(_N),t.createCallExpression(i("__values"),void 0,[n])},createReadHelper:function(n,r){return e.requestEmitHelper(aN),t.createCallExpression(i("__read"),void 0,void 0!==r?[n,t.createNumericLiteral(r+"")]:[n])},createGeneratorHelper:function(n){return e.requestEmitHelper(uN),t.createCallExpression(i("__generator"),void 0,[t.createThis(),n])},createImportStarHelper:function(n){return e.requestEmitHelper(pN),t.createCallExpression(i("__importStar"),void 0,[n])},createImportStarCallbackHelper:function(){return e.requestEmitHelper(pN),i("__importStar")},createImportDefaultHelper:function(n){return e.requestEmitHelper(fN),t.createCallExpression(i("__importDefault"),void 0,[n])},createExportStarHelper:function(n,r=t.createIdentifier("exports")){return e.requestEmitHelper(mN),e.requestEmitHelper(dN),t.createCallExpression(i("__exportStar"),void 0,[n,r])},createClassPrivateFieldGetHelper:function(n,r,o,a){let s;e.requestEmitHelper(gN),s=a?[n,r,t.createStringLiteral(o),a]:[n,r,t.createStringLiteral(o)];return t.createCallExpression(i("__classPrivateFieldGet"),void 0,s)},createClassPrivateFieldSetHelper:function(n,r,o,a,s){let c;e.requestEmitHelper(hN),c=s?[n,r,o,t.createStringLiteral(a),s]:[n,r,o,t.createStringLiteral(a)];return t.createCallExpression(i("__classPrivateFieldSet"),void 0,c)},createClassPrivateFieldInHelper:function(n,r){return e.requestEmitHelper(yN),t.createCallExpression(i("__classPrivateFieldIn"),void 0,[n,r])},createAddDisposableResourceHelper:function(n,r,o){return e.requestEmitHelper(vN),t.createCallExpression(i("__addDisposableResource"),void 0,[n,r,o?t.createTrue():t.createFalse()])},createDisposeResourcesHelper:function(n){return e.requestEmitHelper(bN),t.createCallExpression(i("__disposeResources"),void 0,[n])},createRewriteRelativeImportExtensionsHelper:function(n){return e.requestEmitHelper(xN),t.createCallExpression(i("__rewriteRelativeImportExtension"),void 0,1===e.getCompilerOptions().jsx?[n,t.createTrue()]:[n])}};function i(e){return ow(t.createIdentifier(e),8196)}function o(e,n){const r=[];return r.push(function(e){const n=e.computed?e.name:VN(e.name)?t.createStringLiteralFromNode(e.name):e.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(n,103,t.createIdentifier("obj"))))}(e)),n.get&&r.push(function(e){const n=e.computed?t.createElementAccessExpression(t.createIdentifier("obj"),e.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),e.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,n))}(e)),n.set&&r.push(function(e){const n=e.computed?t.createElementAccessExpression(t.createIdentifier("obj"),e.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),e.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(n,t.createIdentifier("value")))])))}(e)),t.createObjectLiteralExpression(r)}function a(e){return"class"===e.kind?function(e){const n=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),e.name),t.createPropertyAssignment(t.createIdentifier("metadata"),e.metadata)];return t.createObjectLiteralExpression(n)}(e):function(e){const n=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(e.kind)),t.createPropertyAssignment(t.createIdentifier("name"),e.name.computed?e.name.name:t.createStringLiteralFromNode(e.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),e.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),e.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),o(e.name,e.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),e.metadata)];return t.createObjectLiteralExpression(n)}(e)}}function Vw(e,t){return e===t||e.priority===t.priority?0:void 0===e.priority?1:void 0===t.priority?-1:yt(e.priority,t.priority)}function Ww(e,...t){return n=>{let r="";for(let i=0;i<t.length;i++)r+=e[i],r+=n(t[i]);return r+=e[e.length-1],r}}var $w={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:'\n            var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n                var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n                if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);\n                else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n                return c > 3 && r && Object.defineProperty(target, key, r), r;\n            };'},Hw={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            };'},Kw={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            };"},Gw={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        };'},Xw={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        };"},Qw={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            };"},Yw={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); }"},Zw={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[Yw],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        };'},eN={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[Yw],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            };'},tN={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            };'},nN={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            };'},rN={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            };'},iN={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            })();'},oN={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            };'},aN={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            };'},sN={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            };"},cN={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        };'},lN={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        };'},_N={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            };'},uN={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            };'},dN={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            }));'},pN={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[dN,{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            })();'},fN={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            };'},mN={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[dN],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            };'},gN={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            };'},hN={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            };'},yN={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            };'},vN={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        };'},bN={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        });'},xN={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        };'},kN={name:"typescript:async-super",scoped:!0,text:Ww`
            const ${"_superIndex"} = name => super[name];`},SN={name:"typescript:advanced-async-super",scoped:!0,text:Ww`
            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 TN(e,t){return YD(e)&&VN(e.expression)&&!!(8192&Yd(e.expression))&&e.expression.escapedText===t}function CN(e){return 9===e.kind}function wN(e){return 10===e.kind}function NN(e){return 11===e.kind}function DN(e){return 12===e.kind}function FN(e){return 14===e.kind}function EN(e){return 15===e.kind}function PN(e){return 16===e.kind}function AN(e){return 17===e.kind}function IN(e){return 18===e.kind}function ON(e){return 26===e.kind}function LN(e){return 28===e.kind}function jN(e){return 40===e.kind}function RN(e){return 41===e.kind}function MN(e){return 42===e.kind}function BN(e){return 54===e.kind}function JN(e){return 58===e.kind}function zN(e){return 59===e.kind}function qN(e){return 29===e.kind}function UN(e){return 39===e.kind}function VN(e){return 80===e.kind}function WN(e){return 81===e.kind}function $N(e){return 95===e.kind}function HN(e){return 90===e.kind}function KN(e){return 134===e.kind}function GN(e){return 131===e.kind}function XN(e){return 135===e.kind}function QN(e){return 148===e.kind}function YN(e){return 126===e.kind}function ZN(e){return 128===e.kind}function eD(e){return 164===e.kind}function tD(e){return 129===e.kind}function nD(e){return 108===e.kind}function rD(e){return 102===e.kind}function iD(e){return 84===e.kind}function oD(e){return 166===e.kind}function aD(e){return 167===e.kind}function sD(e){return 168===e.kind}function cD(e){return 169===e.kind}function lD(e){return 170===e.kind}function _D(e){return 171===e.kind}function uD(e){return 172===e.kind}function dD(e){return 173===e.kind}function pD(e){return 174===e.kind}function fD(e){return 175===e.kind}function mD(e){return 176===e.kind}function gD(e){return 177===e.kind}function hD(e){return 178===e.kind}function yD(e){return 179===e.kind}function vD(e){return 180===e.kind}function bD(e){return 181===e.kind}function xD(e){return 182===e.kind}function kD(e){return 183===e.kind}function SD(e){return 184===e.kind}function TD(e){return 185===e.kind}function CD(e){return 186===e.kind}function wD(e){return 187===e.kind}function ND(e){return 188===e.kind}function DD(e){return 189===e.kind}function FD(e){return 202===e.kind}function ED(e){return 190===e.kind}function PD(e){return 191===e.kind}function AD(e){return 192===e.kind}function ID(e){return 193===e.kind}function OD(e){return 194===e.kind}function LD(e){return 195===e.kind}function jD(e){return 196===e.kind}function RD(e){return 197===e.kind}function MD(e){return 198===e.kind}function BD(e){return 199===e.kind}function JD(e){return 200===e.kind}function zD(e){return 201===e.kind}function qD(e){return 205===e.kind}function UD(e){return 204===e.kind}function VD(e){return 203===e.kind}function WD(e){return 206===e.kind}function $D(e){return 207===e.kind}function HD(e){return 208===e.kind}function KD(e){return 209===e.kind}function GD(e){return 210===e.kind}function XD(e){return 211===e.kind}function QD(e){return 212===e.kind}function YD(e){return 213===e.kind}function ZD(e){return 214===e.kind}function eF(e){return 215===e.kind}function tF(e){return 216===e.kind}function nF(e){return 217===e.kind}function rF(e){return 218===e.kind}function iF(e){return 219===e.kind}function oF(e){return 220===e.kind}function aF(e){return 221===e.kind}function sF(e){return 222===e.kind}function cF(e){return 223===e.kind}function lF(e){return 224===e.kind}function _F(e){return 225===e.kind}function uF(e){return 226===e.kind}function dF(e){return 227===e.kind}function pF(e){return 228===e.kind}function fF(e){return 229===e.kind}function mF(e){return 230===e.kind}function gF(e){return 231===e.kind}function hF(e){return 232===e.kind}function yF(e){return 233===e.kind}function vF(e){return 234===e.kind}function bF(e){return 238===e.kind}function xF(e){return 235===e.kind}function kF(e){return 236===e.kind}function SF(e){return 237===e.kind}function TF(e){return 355===e.kind}function CF(e){return 356===e.kind}function wF(e){return 239===e.kind}function NF(e){return 240===e.kind}function DF(e){return 241===e.kind}function FF(e){return 243===e.kind}function EF(e){return 242===e.kind}function PF(e){return 244===e.kind}function AF(e){return 245===e.kind}function IF(e){return 246===e.kind}function OF(e){return 247===e.kind}function LF(e){return 248===e.kind}function jF(e){return 249===e.kind}function RF(e){return 250===e.kind}function MF(e){return 251===e.kind}function BF(e){return 252===e.kind}function JF(e){return 253===e.kind}function zF(e){return 254===e.kind}function qF(e){return 255===e.kind}function UF(e){return 256===e.kind}function VF(e){return 257===e.kind}function WF(e){return 258===e.kind}function $F(e){return 259===e.kind}function HF(e){return 260===e.kind}function KF(e){return 261===e.kind}function GF(e){return 262===e.kind}function XF(e){return 263===e.kind}function QF(e){return 264===e.kind}function YF(e){return 265===e.kind}function ZF(e){return 266===e.kind}function eE(e){return 267===e.kind}function tE(e){return 268===e.kind}function nE(e){return 269===e.kind}function rE(e){return 270===e.kind}function iE(e){return 271===e.kind}function oE(e){return 272===e.kind}function aE(e){return 273===e.kind}function sE(e){return 302===e.kind}function cE(e){return 300===e.kind}function lE(e){return 301===e.kind}function _E(e){return 300===e.kind}function uE(e){return 301===e.kind}function dE(e){return 274===e.kind}function pE(e){return 280===e.kind}function fE(e){return 275===e.kind}function mE(e){return 276===e.kind}function gE(e){return 277===e.kind}function hE(e){return 278===e.kind}function yE(e){return 279===e.kind}function vE(e){return 281===e.kind}function bE(e){return 80===e.kind||11===e.kind}function xE(e){return 282===e.kind}function kE(e){return 353===e.kind}function SE(e){return 357===e.kind}function TE(e){return 283===e.kind}function CE(e){return 284===e.kind}function wE(e){return 285===e.kind}function NE(e){return 286===e.kind}function DE(e){return 287===e.kind}function FE(e){return 288===e.kind}function EE(e){return 289===e.kind}function PE(e){return 290===e.kind}function AE(e){return 291===e.kind}function IE(e){return 292===e.kind}function OE(e){return 293===e.kind}function LE(e){return 294===e.kind}function jE(e){return 295===e.kind}function RE(e){return 296===e.kind}function ME(e){return 297===e.kind}function BE(e){return 298===e.kind}function JE(e){return 299===e.kind}function zE(e){return 303===e.kind}function qE(e){return 304===e.kind}function UE(e){return 305===e.kind}function VE(e){return 306===e.kind}function WE(e){return 307===e.kind}function $E(e){return 308===e.kind}function HE(e){return 309===e.kind}function KE(e){return 310===e.kind}function GE(e){return 311===e.kind}function XE(e){return 324===e.kind}function QE(e){return 325===e.kind}function YE(e){return 326===e.kind}function ZE(e){return 312===e.kind}function eP(e){return 313===e.kind}function tP(e){return 314===e.kind}function nP(e){return 315===e.kind}function rP(e){return 316===e.kind}function iP(e){return 317===e.kind}function oP(e){return 318===e.kind}function aP(e){return 319===e.kind}function sP(e){return 320===e.kind}function cP(e){return 322===e.kind}function lP(e){return 323===e.kind}function _P(e){return 328===e.kind}function uP(e){return 330===e.kind}function dP(e){return 332===e.kind}function pP(e){return 338===e.kind}function fP(e){return 333===e.kind}function mP(e){return 334===e.kind}function gP(e){return 335===e.kind}function hP(e){return 336===e.kind}function yP(e){return 337===e.kind}function vP(e){return 339===e.kind}function bP(e){return 331===e.kind}function xP(e){return 347===e.kind}function kP(e){return 340===e.kind}function SP(e){return 341===e.kind}function TP(e){return 342===e.kind}function CP(e){return 343===e.kind}function wP(e){return 344===e.kind}function NP(e){return 345===e.kind}function DP(e){return 346===e.kind}function FP(e){return 327===e.kind}function EP(e){return 348===e.kind}function PP(e){return 329===e.kind}function AP(e){return 350===e.kind}function IP(e){return 349===e.kind}function OP(e){return 351===e.kind}function LP(e){return 352===e.kind}var jP,RP=new WeakMap;function MP(e,t){var n;const r=e.kind;return Dl(r)?352===r?e._children:null==(n=RP.get(t))?void 0:n.get(e):s}function BP(e,t,n){352===e.kind&&_n.fail("Should not need to re-set the children of a SyntaxList.");let r=RP.get(t);return void 0===r&&(r=new WeakMap,RP.set(t,r)),r.set(e,n),n}function JP(e,t){var n;352===e.kind&&_n.fail("Did not expect to unset the children of a SyntaxList."),null==(n=RP.get(t))||n.delete(e)}function zP(e,t){const n=RP.get(e);void 0!==n&&(RP.delete(e),RP.set(t,n))}function qP(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function UP(e,t,n,r){if(aD(n))return cI(e.createElementAccessExpression(t,n.expression),r);{const r=cI(dl(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return aw(r,128),r}}function VP(e,t){const n=dI.createIdentifier(e||"React");return FT(n,pc(t)),n}function WP(e,t,n){if(oD(t)){const r=WP(e,t.left,n),i=e.createIdentifier(gc(t.right));return i.escapedText=t.right.escapedText,e.createPropertyAccessExpression(r,i)}return VP(gc(t),n)}function $P(e,t,n,r){return t?WP(e,t,r):e.createPropertyAccessExpression(VP(n,r),"createElement")}function HP(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)pA(e),a.push(e);else a.push(i[0]);return cI(e.createCallExpression(t,void 0,a),o)}function KP(e,t,n,r,i,o,a){const s=function(e,t,n,r){return t?WP(e,t,r):e.createPropertyAccessExpression(VP(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)pA(e),c.push(e);else c.push(i[0]);return cI(e.createCallExpression($P(e,t,r,o),void 0,c),a)}function GP(e,t,n){if(KF(t)){const r=me(t.declarations),i=e.updateVariableDeclaration(r,r.name,void 0,void 0,n);return cI(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[i])),t)}{const r=cI(e.createAssignment(t,n),t);return cI(e.createExpressionStatement(r),t)}}function XP(e,t){if(oD(t)){const n=XP(e,t.left),r=FT(cI(e.cloneNode(t.right),t.right),t.right.parent);return cI(e.createPropertyAccessExpression(n,r),t)}return FT(cI(e.cloneNode(t),t),t.parent)}function QP(e,t){return VN(t)?e.createStringLiteralFromNode(t):aD(t)?FT(cI(e.cloneNode(t.expression),t.expression),t.expression.parent):FT(cI(e.cloneNode(t),t),t.parent)}function YP(e,t,n,r){switch(n.name&&WN(n.name)&&_n.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 177:case 178:return function(e,t,n,r,i){const{firstAccessor:o,getAccessor:a,setAccessor:s}=pv(t,n);if(n===o)return cI(e.createObjectDefinePropertyCall(r,QP(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:a&&cI(tw(e.createFunctionExpression(Dc(a),void 0,void 0,void 0,a.parameters,void 0,a.body),a),a),set:s&&cI(tw(e.createFunctionExpression(Dc(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 303:return function(e,t,n){return tw(cI(e.createAssignment(UP(e,n,t.name,t.name),t.initializer),t),t)}(e,n,r);case 304:return function(e,t,n){return tw(cI(e.createAssignment(UP(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}(e,n,r);case 174:return function(e,t,n){return tw(cI(e.createAssignment(UP(e,n,t.name,t.name),tw(cI(e.createFunctionExpression(Dc(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}(e,n,r)}}function ZP(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);cI(n=e.createAssignment(a,n),t.operand);let s=lF(t)?e.createPrefixUnaryExpression(o,a):e.createPostfixUnaryExpression(a,o);return cI(s,t),i&&(s=e.createAssignment(i,s),cI(s,t)),cI(n=e.createComma(n,s),t),_F(t)&&cI(n=e.createComma(n,a),t),n}function eA(e){return!!(65536&Yd(e))}function tA(e){return!!(32768&Yd(e))}function nA(e){return!!(16384&Yd(e))}function rA(e){return NN(e.expression)&&"use strict"===e.expression.text}function iA(e){for(const t of e){if(!df(t))break;if(rA(t))return t}}function oA(e){const t=pe(e);return void 0!==t&&df(t)&&rA(t)}function aA(e){return 226===e.kind&&28===e.operatorToken.kind}function sA(e){return aA(e)||CF(e)}function cA(e){return nF(e)&&Em(e)&&!!tl(e)}function lA(e){const t=nl(e);return _n.assertIsDefined(t),t}function _A(e,t=63){switch(e.kind){case 217:return!(-2147483648&t&&cA(e))&&!!(1&t);case 216:case 234:return!!(2&t);case 238:return!!(34&t);case 233:return!!(16&t);case 235:return!!(4&t);case 355:return!!(8&t)}return!1}function uA(e,t=63){for(;_A(e,t);)e=e.expression;return e}function dA(e,t=63){let n=e.parent;for(;_A(n,t);)n=n.parent,_n.assert(n);return n}function pA(e){return fw(e,!0)}function fA(e){const t=_c(e,WE),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function mA(e){const t=_c(e,WE),n=t&&t.emitNode;return!(!n||!n.externalHelpersModuleName&&!n.externalHelpers)}function gA(e,t,n,r,i,o,a){if(r.importHelpers&&gp(n,r)){const s=bk(r),c=IV(n,r),l=function(e){return C(Fw(e),(e=>!e.scoped))}(n);if(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(D(r,(r=>Cd(n,r)?e.createImportSpecifier(!1,void 0,e.createIdentifier(r)):e.createImportSpecifier(!1,e.createIdentifier(r),t.getUnscopedHelperName(r)))));nw(_c(n,WE)).externalHelpers=!0;const o=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,i),e.createStringLiteral(Uu),void 0);return cw(o,2),o}}}else{const t=function(e,t,n,r,i,o){const a=fA(t);if(a)return a;const s=V(r)||(i||Tk(n)&&o)&&AV(t,n)<4;if(s){const n=nw(_c(t,WE));return n.externalHelpersModuleName||(n.externalHelpersModuleName=e.createUniqueName(Uu))}}(e,n,r,l,i,o||a);if(t){const n=e.createImportEqualsDeclaration(void 0,!1,t,e.createExternalModuleReference(e.createStringLiteral(Uu)));return cw(n,2),n}}}}function hA(e,t,n){const r=Sg(t);if(r&&!Tg(t)&&!Vd(t)){const i=r.name;return 11===i.kind?e.getGeneratedNameForNode(t):Wl(i)?i:e.createIdentifier(Ud(n,i)||gc(i))}return 272===t.kind&&t.importClause||278===t.kind&&t.moduleSpecifier?e.getGeneratedNameForNode(t):void 0}function yA(e,t,n,r,i,o){const a=kg(t);if(a&&NN(a))return function(e,t,n,r,i){return vA(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 vA(e,t,n,r){if(t)return t.moduleName?e.createStringLiteral(t.moduleName):!t.isDeclarationFile&&r.outFile?e.createStringLiteral(zy(n,t.fileName)):void 0}function bA(e){if(C_(e))return e.initializer;if(zE(e)){const t=e.initializer;return ib(t,!0)?t.right:void 0}return qE(e)?e.objectAssignmentInitializer:ib(e,!0)?e.right:mF(e)?bA(e.expression):void 0}function xA(e){if(C_(e))return e.name;if(!v_(e))return ib(e,!0)?xA(e.left):mF(e)?xA(e.expression):e;switch(e.kind){case 303:return xA(e.initializer);case 304:return e.name;case 305:return xA(e.expression)}}function kA(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function SA(e){const t=TA(e);return _n.assert(!!t||UE(e),"Invalid property name for binding element."),t}function TA(e){switch(e.kind){case 208:if(e.propertyName){const t=e.propertyName;return WN(t)?_n.failBadSyntaxKind(t):aD(t)&&CA(t.expression)?t.expression:t}break;case 303:if(e.name){const t=e.name;return WN(t)?_n.failBadSyntaxKind(t):aD(t)&&CA(t.expression)?t.expression:t}break;case 305:return e.name&&WN(e.name)?_n.failBadSyntaxKind(e.name):e.name}const t=xA(e);if(t&&t_(t))return t}function CA(e){const t=e.kind;return 11===t||9===t}function wA(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function NA(e){if(e){let t=e;for(;;){if(VN(t)||!t.body)return VN(t)?t:t.name;t=t.body}}}function DA(e){const t=e.kind;return 176===t||178===t}function FA(e){const t=e.kind;return 176===t||177===t||178===t}function EA(e){const t=e.kind;return 303===t||304===t||262===t||176===t||181===t||175===t||282===t||243===t||264===t||265===t||266===t||267===t||271===t||272===t||270===t||278===t||277===t}function PA(e){const t=e.kind;return 175===t||303===t||304===t||282===t||270===t}function AA(e){return JN(e)||BN(e)}function IA(e){return VN(e)||RD(e)}function OA(e){return QN(e)||jN(e)||RN(e)}function LA(e){return JN(e)||jN(e)||RN(e)}function jA(e){return VN(e)||NN(e)}function RA(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 MA(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)||RA(e)}(e)}function BA(e){return function(e){return 56===e||57===e}(e)||function(e){return function(e){return 51===e||52===e||53===e}(e)||MA(e)}(e)}function JA(e){return function(e){return 61===e||BA(e)||tb(e)}(e)||28===e}function zA(e){return JA(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})(jP||(jP={}));var qA,UA,VA,WA,$A,HA=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 KA(e,t,n,r,i,o){const a=new HA(e,t,n,r,i,o);return function(e,t){const n={value:void 0},r=[jP.enter],i=[e],o=[void 0];let s=0;for(;r[s]!==jP.done;)s=r[s](a,s,r,i,o,n,t);return _n.assertEqual(s,0),n.value}}function GA(e){return function(e){return 95===e||90===e}(e.kind)}function XA(e,t){if(void 0!==t)return 0===t.length?t:cI(e.createNodeArray([],t.hasTrailingComma),t)}function QA(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(dl(i)&&(void 0===e||4&e.flags&&e.id!==r))break;o=i.original}return i}return e}function YA(e,t){return"object"==typeof e?eI(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function ZA(e,t){return"string"==typeof e?e:function(e,t){return $l(e)?t(e).slice(1):Wl(e)?t(e):WN(e)?e.escapedText.slice(1):gc(e)}(e,_n.checkDefined(t))}function eI(e,t,n,r,i){return t=YA(t,i),r=YA(r,i),`${e?"#":""}${t}${n=ZA(n,i)}${r}`}function tI(e,t,n,r){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,r)}function nI(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 rI(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 iI(e){let t=e.expression;for(;;)if(t=uA(t),CF(t))t=ye(t.elements);else{if(!aA(t)){if(ib(t,!0)&&Wl(t.left))return t;break}t=t.right}}function oI(e,t){if(function(e){return nF(e)&&ey(e)&&!e.emitNode}(e))oI(e.expression,t);else if(aA(e))oI(e.left,t),oI(e.right,t);else if(CF(e))for(const n of e.elements)oI(n,t);else t.push(e)}function aI(e){const t=[];return oI(e,t),t}function sI(e){if(65536&e.transformFlags)return!0;if(128&e.transformFlags)for(const t of wA(e)){const e=xA(t);if(e&&S_(e)){if(65536&e.transformFlags)return!0;if(128&e.transformFlags&&sI(e))return!0}}return!1}function cI(e,t){return t?wT(e,t.pos,t.end):e}function lI(e){const t=e.kind;return 168===t||169===t||171===t||172===t||173===t||174===t||176===t||177===t||178===t||181===t||185===t||218===t||219===t||231===t||243===t||262===t||263===t||264===t||265===t||266===t||267===t||271===t||272===t||277===t||278===t}function _I(e){const t=e.kind;return 169===t||172===t||174===t||177===t||178===t||231===t||263===t}var uI={createBaseSourceFileNode:e=>new($A||($A=Mx.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(VA||(VA=Mx.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(WA||(WA=Mx.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(UA||(UA=Mx.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(qA||(qA=Mx.getNodeConstructor()))(e,-1,-1)},dI=qC(1,uI);function pI(e,t){return t&&e(t)}function fI(e,t,n){if(n){if(t)return t(n);for(const t of n){const n=e(t);if(n)return n}}}function mI(e,t){return 42===e.charCodeAt(t+1)&&42===e.charCodeAt(t+2)&&47!==e.charCodeAt(t+3)}function gI(e){return _(e.statements,hI)||function(e){return 8388608&e.flags?yI(e):void 0}(e)}function hI(e){return lI(e)&&function(e,t){return V(e.modifiers,(e=>e.kind===t))}(e,95)||iE(e)&&TE(e.moduleReference)||oE(e)||gE(e)||hE(e)?e:void 0}function yI(e){return function(e){return kF(e)&&102===e.keywordToken&&"meta"===e.name.escapedText}(e)?e:RI(e,yI)}var vI,bI={166:function(e,t,n){return pI(t,e.left)||pI(t,e.right)},168:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)||pI(t,e.constraint)||pI(t,e.default)||pI(t,e.expression)},304:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)||pI(t,e.questionToken)||pI(t,e.exclamationToken)||pI(t,e.equalsToken)||pI(t,e.objectAssignmentInitializer)},305:function(e,t,n){return pI(t,e.expression)},169:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.dotDotDotToken)||pI(t,e.name)||pI(t,e.questionToken)||pI(t,e.type)||pI(t,e.initializer)},172:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)||pI(t,e.questionToken)||pI(t,e.exclamationToken)||pI(t,e.type)||pI(t,e.initializer)},171:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)||pI(t,e.questionToken)||pI(t,e.type)||pI(t,e.initializer)},303:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)||pI(t,e.questionToken)||pI(t,e.exclamationToken)||pI(t,e.initializer)},260:function(e,t,n){return pI(t,e.name)||pI(t,e.exclamationToken)||pI(t,e.type)||pI(t,e.initializer)},208:function(e,t,n){return pI(t,e.dotDotDotToken)||pI(t,e.propertyName)||pI(t,e.name)||pI(t,e.initializer)},181:function(e,t,n){return fI(t,n,e.modifiers)||fI(t,n,e.typeParameters)||fI(t,n,e.parameters)||pI(t,e.type)},185:function(e,t,n){return fI(t,n,e.modifiers)||fI(t,n,e.typeParameters)||fI(t,n,e.parameters)||pI(t,e.type)},184:function(e,t,n){return fI(t,n,e.modifiers)||fI(t,n,e.typeParameters)||fI(t,n,e.parameters)||pI(t,e.type)},179:xI,180:xI,174:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.asteriskToken)||pI(t,e.name)||pI(t,e.questionToken)||pI(t,e.exclamationToken)||fI(t,n,e.typeParameters)||fI(t,n,e.parameters)||pI(t,e.type)||pI(t,e.body)},173:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)||pI(t,e.questionToken)||fI(t,n,e.typeParameters)||fI(t,n,e.parameters)||pI(t,e.type)},176:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)||fI(t,n,e.typeParameters)||fI(t,n,e.parameters)||pI(t,e.type)||pI(t,e.body)},177:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)||fI(t,n,e.typeParameters)||fI(t,n,e.parameters)||pI(t,e.type)||pI(t,e.body)},178:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)||fI(t,n,e.typeParameters)||fI(t,n,e.parameters)||pI(t,e.type)||pI(t,e.body)},262:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.asteriskToken)||pI(t,e.name)||fI(t,n,e.typeParameters)||fI(t,n,e.parameters)||pI(t,e.type)||pI(t,e.body)},218:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.asteriskToken)||pI(t,e.name)||fI(t,n,e.typeParameters)||fI(t,n,e.parameters)||pI(t,e.type)||pI(t,e.body)},219:function(e,t,n){return fI(t,n,e.modifiers)||fI(t,n,e.typeParameters)||fI(t,n,e.parameters)||pI(t,e.type)||pI(t,e.equalsGreaterThanToken)||pI(t,e.body)},175:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.body)},183:function(e,t,n){return pI(t,e.typeName)||fI(t,n,e.typeArguments)},182:function(e,t,n){return pI(t,e.assertsModifier)||pI(t,e.parameterName)||pI(t,e.type)},186:function(e,t,n){return pI(t,e.exprName)||fI(t,n,e.typeArguments)},187:function(e,t,n){return fI(t,n,e.members)},188:function(e,t,n){return pI(t,e.elementType)},189:function(e,t,n){return fI(t,n,e.elements)},192:kI,193:kI,194:function(e,t,n){return pI(t,e.checkType)||pI(t,e.extendsType)||pI(t,e.trueType)||pI(t,e.falseType)},195:function(e,t,n){return pI(t,e.typeParameter)},205:function(e,t,n){return pI(t,e.argument)||pI(t,e.attributes)||pI(t,e.qualifier)||fI(t,n,e.typeArguments)},302:function(e,t,n){return pI(t,e.assertClause)},196:SI,198:SI,199:function(e,t,n){return pI(t,e.objectType)||pI(t,e.indexType)},200:function(e,t,n){return pI(t,e.readonlyToken)||pI(t,e.typeParameter)||pI(t,e.nameType)||pI(t,e.questionToken)||pI(t,e.type)||fI(t,n,e.members)},201:function(e,t,n){return pI(t,e.literal)},202:function(e,t,n){return pI(t,e.dotDotDotToken)||pI(t,e.name)||pI(t,e.questionToken)||pI(t,e.type)},206:TI,207:TI,209:function(e,t,n){return fI(t,n,e.elements)},210:function(e,t,n){return fI(t,n,e.properties)},211:function(e,t,n){return pI(t,e.expression)||pI(t,e.questionDotToken)||pI(t,e.name)},212:function(e,t,n){return pI(t,e.expression)||pI(t,e.questionDotToken)||pI(t,e.argumentExpression)},213:CI,214:CI,215:function(e,t,n){return pI(t,e.tag)||pI(t,e.questionDotToken)||fI(t,n,e.typeArguments)||pI(t,e.template)},216:function(e,t,n){return pI(t,e.type)||pI(t,e.expression)},217:function(e,t,n){return pI(t,e.expression)},220:function(e,t,n){return pI(t,e.expression)},221:function(e,t,n){return pI(t,e.expression)},222:function(e,t,n){return pI(t,e.expression)},224:function(e,t,n){return pI(t,e.operand)},229:function(e,t,n){return pI(t,e.asteriskToken)||pI(t,e.expression)},223:function(e,t,n){return pI(t,e.expression)},225:function(e,t,n){return pI(t,e.operand)},226:function(e,t,n){return pI(t,e.left)||pI(t,e.operatorToken)||pI(t,e.right)},234:function(e,t,n){return pI(t,e.expression)||pI(t,e.type)},235:function(e,t,n){return pI(t,e.expression)},238:function(e,t,n){return pI(t,e.expression)||pI(t,e.type)},236:function(e,t,n){return pI(t,e.name)},227:function(e,t,n){return pI(t,e.condition)||pI(t,e.questionToken)||pI(t,e.whenTrue)||pI(t,e.colonToken)||pI(t,e.whenFalse)},230:function(e,t,n){return pI(t,e.expression)},241:wI,268:wI,307:function(e,t,n){return fI(t,n,e.statements)||pI(t,e.endOfFileToken)},243:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.declarationList)},261:function(e,t,n){return fI(t,n,e.declarations)},244:function(e,t,n){return pI(t,e.expression)},245:function(e,t,n){return pI(t,e.expression)||pI(t,e.thenStatement)||pI(t,e.elseStatement)},246:function(e,t,n){return pI(t,e.statement)||pI(t,e.expression)},247:function(e,t,n){return pI(t,e.expression)||pI(t,e.statement)},248:function(e,t,n){return pI(t,e.initializer)||pI(t,e.condition)||pI(t,e.incrementor)||pI(t,e.statement)},249:function(e,t,n){return pI(t,e.initializer)||pI(t,e.expression)||pI(t,e.statement)},250:function(e,t,n){return pI(t,e.awaitModifier)||pI(t,e.initializer)||pI(t,e.expression)||pI(t,e.statement)},251:NI,252:NI,253:function(e,t,n){return pI(t,e.expression)},254:function(e,t,n){return pI(t,e.expression)||pI(t,e.statement)},255:function(e,t,n){return pI(t,e.expression)||pI(t,e.caseBlock)},269:function(e,t,n){return fI(t,n,e.clauses)},296:function(e,t,n){return pI(t,e.expression)||fI(t,n,e.statements)},297:function(e,t,n){return fI(t,n,e.statements)},256:function(e,t,n){return pI(t,e.label)||pI(t,e.statement)},257:function(e,t,n){return pI(t,e.expression)},258:function(e,t,n){return pI(t,e.tryBlock)||pI(t,e.catchClause)||pI(t,e.finallyBlock)},299:function(e,t,n){return pI(t,e.variableDeclaration)||pI(t,e.block)},170:function(e,t,n){return pI(t,e.expression)},263:DI,231:DI,264:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)||fI(t,n,e.typeParameters)||fI(t,n,e.heritageClauses)||fI(t,n,e.members)},265:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)||fI(t,n,e.typeParameters)||pI(t,e.type)},266:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)||fI(t,n,e.members)},306:function(e,t,n){return pI(t,e.name)||pI(t,e.initializer)},267:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)||pI(t,e.body)},271:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)||pI(t,e.moduleReference)},272:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.importClause)||pI(t,e.moduleSpecifier)||pI(t,e.attributes)},273:function(e,t,n){return pI(t,e.name)||pI(t,e.namedBindings)},300:function(e,t,n){return fI(t,n,e.elements)},301:function(e,t,n){return pI(t,e.name)||pI(t,e.value)},270:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)},274:function(e,t,n){return pI(t,e.name)},280:function(e,t,n){return pI(t,e.name)},275:FI,279:FI,278:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.exportClause)||pI(t,e.moduleSpecifier)||pI(t,e.attributes)},276:EI,281:EI,277:function(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.expression)},228:function(e,t,n){return pI(t,e.head)||fI(t,n,e.templateSpans)},239:function(e,t,n){return pI(t,e.expression)||pI(t,e.literal)},203:function(e,t,n){return pI(t,e.head)||fI(t,n,e.templateSpans)},204:function(e,t,n){return pI(t,e.type)||pI(t,e.literal)},167:function(e,t,n){return pI(t,e.expression)},298:function(e,t,n){return fI(t,n,e.types)},233:function(e,t,n){return pI(t,e.expression)||fI(t,n,e.typeArguments)},283:function(e,t,n){return pI(t,e.expression)},282:function(e,t,n){return fI(t,n,e.modifiers)},356:function(e,t,n){return fI(t,n,e.elements)},284:function(e,t,n){return pI(t,e.openingElement)||fI(t,n,e.children)||pI(t,e.closingElement)},288:function(e,t,n){return pI(t,e.openingFragment)||fI(t,n,e.children)||pI(t,e.closingFragment)},285:PI,286:PI,292:function(e,t,n){return fI(t,n,e.properties)},291:function(e,t,n){return pI(t,e.name)||pI(t,e.initializer)},293:function(e,t,n){return pI(t,e.expression)},294:function(e,t,n){return pI(t,e.dotDotDotToken)||pI(t,e.expression)},287:function(e,t,n){return pI(t,e.tagName)},295:function(e,t,n){return pI(t,e.namespace)||pI(t,e.name)},190:AI,191:AI,309:AI,315:AI,314:AI,316:AI,318:AI,317:function(e,t,n){return fI(t,n,e.parameters)||pI(t,e.type)},320:function(e,t,n){return("string"==typeof e.comment?void 0:fI(t,n,e.comment))||fI(t,n,e.tags)},347:function(e,t,n){return pI(t,e.tagName)||pI(t,e.name)||("string"==typeof e.comment?void 0:fI(t,n,e.comment))},310:function(e,t,n){return pI(t,e.name)},311:function(e,t,n){return pI(t,e.left)||pI(t,e.right)},341:II,348:II,330:function(e,t,n){return pI(t,e.tagName)||("string"==typeof e.comment?void 0:fI(t,n,e.comment))},329:function(e,t,n){return pI(t,e.tagName)||pI(t,e.class)||("string"==typeof e.comment?void 0:fI(t,n,e.comment))},328:function(e,t,n){return pI(t,e.tagName)||pI(t,e.class)||("string"==typeof e.comment?void 0:fI(t,n,e.comment))},345:function(e,t,n){return pI(t,e.tagName)||pI(t,e.constraint)||fI(t,n,e.typeParameters)||("string"==typeof e.comment?void 0:fI(t,n,e.comment))},346:function(e,t,n){return pI(t,e.tagName)||(e.typeExpression&&309===e.typeExpression.kind?pI(t,e.typeExpression)||pI(t,e.fullName)||("string"==typeof e.comment?void 0:fI(t,n,e.comment)):pI(t,e.fullName)||pI(t,e.typeExpression)||("string"==typeof e.comment?void 0:fI(t,n,e.comment)))},338:function(e,t,n){return pI(t,e.tagName)||pI(t,e.fullName)||pI(t,e.typeExpression)||("string"==typeof e.comment?void 0:fI(t,n,e.comment))},342:OI,344:OI,343:OI,340:OI,350:OI,349:OI,339:OI,323:function(e,t,n){return _(e.typeParameters,t)||_(e.parameters,t)||pI(t,e.type)},324:LI,325:LI,326:LI,322:function(e,t,n){return _(e.jsDocPropertyTags,t)},327:jI,332:jI,333:jI,334:jI,335:jI,336:jI,331:jI,337:jI,351:function(e,t,n){return pI(t,e.tagName)||pI(t,e.importClause)||pI(t,e.moduleSpecifier)||pI(t,e.attributes)||("string"==typeof e.comment?void 0:fI(t,n,e.comment))},355:function(e,t,n){return pI(t,e.expression)}};function xI(e,t,n){return fI(t,n,e.typeParameters)||fI(t,n,e.parameters)||pI(t,e.type)}function kI(e,t,n){return fI(t,n,e.types)}function SI(e,t,n){return pI(t,e.type)}function TI(e,t,n){return fI(t,n,e.elements)}function CI(e,t,n){return pI(t,e.expression)||pI(t,e.questionDotToken)||fI(t,n,e.typeArguments)||fI(t,n,e.arguments)}function wI(e,t,n){return fI(t,n,e.statements)}function NI(e,t,n){return pI(t,e.label)}function DI(e,t,n){return fI(t,n,e.modifiers)||pI(t,e.name)||fI(t,n,e.typeParameters)||fI(t,n,e.heritageClauses)||fI(t,n,e.members)}function FI(e,t,n){return fI(t,n,e.elements)}function EI(e,t,n){return pI(t,e.propertyName)||pI(t,e.name)}function PI(e,t,n){return pI(t,e.tagName)||fI(t,n,e.typeArguments)||pI(t,e.attributes)}function AI(e,t,n){return pI(t,e.type)}function II(e,t,n){return pI(t,e.tagName)||(e.isNameFirst?pI(t,e.name)||pI(t,e.typeExpression):pI(t,e.typeExpression)||pI(t,e.name))||("string"==typeof e.comment?void 0:fI(t,n,e.comment))}function OI(e,t,n){return pI(t,e.tagName)||pI(t,e.typeExpression)||("string"==typeof e.comment?void 0:fI(t,n,e.comment))}function LI(e,t,n){return pI(t,e.name)}function jI(e,t,n){return pI(t,e.tagName)||("string"==typeof e.comment?void 0:fI(t,n,e.comment))}function RI(e,t,n){if(void 0===e||e.kind<=165)return;const r=bI[e.kind];return void 0===r?void 0:r(e,t,n)}function MI(e,t,n){const r=BI(e),i=[];for(;i.length<r.length;)i.push(e);for(;0!==r.length;){const e=r.pop(),o=i.pop();if(Xe(e)){if(n){const t=n(e,o);if(t){if("skip"===t)continue;return t}}for(let t=e.length-1;t>=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>=166)for(const t of BI(e))r.push(t),i.push(e)}}}function BI(e){const t=[];return RI(e,n,n),t;function n(e){t.unshift(e)}}function JI(e){e.externalModuleIndicator=gI(e)}function zI(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=vI.parseSourceFile(e,t,c,void 0,r,6,nt,u);else{const n=void 0===_?l:e=>(e.impliedNodeFormat=_,(l||JI)(e));s=vI.parseSourceFile(e,t,c,void 0,r,i,n,u)}return er("afterParse"),tr("Parse","beforeParse","afterParse"),null==(a=$n)||a.pop(),s}function qI(e,t){return vI.parseIsolatedEntityName(e,t)}function UI(e,t){return vI.parseJsonText(e,t)}function VI(e){return void 0!==e.externalModuleIndicator}function WI(e,t,n,r=!1){const i=GI.updateSourceFile(e,t,n,r);return i.flags|=12582912&e.flags,i}function $I(e,t,n){const r=vI.JSDocParser.parseIsolatedJSDocComment(e,t,n);return r&&r.jsDoc&&vI.fixupParentReferences(r.jsDoc),r}function HI(e,t,n){return vI.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}(e=>{var t,n,r,i,o,a=gs(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,N,D=qC(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}=D,oe=!0,se=!1;function ce(e,t,n=2,r,i=!1){le(e,t,n,r,6,0),d=N,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(_a.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,_a.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=Gx(h,c),y&&(c.jsDocDiagnostics=Gx(y,c));const l=c;return _e(),l}function le(e,s,c,l,_,y){switch(t=Mx.getNodeConstructor(),n=Mx.getTokenConstructor(),r=Mx.getIdentifierConstructor(),i=Mx.getPrivateIdentifierConstructor(),o=Mx.getSourceFileConstructor(),u=zo(e),p=s,f=c,v=l,m=_,g=_k(_),h=[],C=0,S=new Map,T=0,k=0,d=0,oe=!0,m){case 1:case 2:N=524288;break;case 6:N=134742016;break;default:N=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=xS(e,o))){const o=ce(e,t,n,r,i);return wL(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=YI(u);o&&(N|=33554432);d=N,We();const s=Zt(0,Oi);_n.assert(1===qe());const c=ze(),l=de(yt(),c),_=me(u,e,n,o,s,l,d,r);eO(_,p),tO(_,f),_.commentDirectives=a.getCommentDirectives(),_.nodeCount=k,_.identifierCount=T,_.identifiers=S,_.parseDiagnostics=Gx(h,_),_.jsDocParsingMode=i,y&&(_.jsDocDiagnostics=Gx(y,_));t&&fe(_);return _;function f(e,t,n){h.push($x(u,p,e,t,n))}}(n,i,o,l||JI,_);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(yf(e,p),(t=>qo.parseJSDocComment(e,t.pos,t.end-t.pos)));return n.length&&(e.jsDoc=n),ue&&(ue=!1,e.flags|=536870912),e}function fe(e){ET(e,!0)}function me(e,t,n,r,i,o,s,c){let l=D.createSourceFile(i,o,s);if(NT(l,0,p.length),_(l),!r&&VI(l)&&67108864&l.transformFlags){const e=l;l=function(e){const t=v,n=GI.createSyntaxCursor(e);v={currentNode:function(e){const t=n.currentNode(e);return oe&&t&&c(t)&&QI(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=N;for(N|=65536,a.resetTokenState(n.pos),We();1!==qe();){const t=a.getTokenFullStart(),n=en(0,Oi);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))}}N=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,D.updateSourceFile(e,cI(F(r),e.statements));function c(e){return!(65536&e.flags||!(67108864&e.transformFlags))}function l(e,t){for(let n=t;n<e.length;n++)if(c(e[n]))return n;return-1}function _(e,t){for(let n=t;n<e.length;n++)if(!c(e[n]))return n;return-1}}(l),e!==l&&_(l)}return l;function _(i){i.text=p,i.bindDiagnostics=[],i.bindSuggestionDiagnostics=void 0,i.languageVersion=t,i.fileName=e,i.languageVariant=_k(n),i.isDeclarationFile=r,i.scriptKind=n,c(i),i.setExternalModuleIndicator=c}}function ge(e,t){e?N|=t:N&=~t}function ye(e){ge(e,8192)}function ve(e){ge(e,16384)}function be(e){ge(e,32768)}function xe(e){ge(e,65536)}function ke(e,t){const n=e&N;if(n){ge(!1,n);const e=t();return ge(!0,n),e}return t()}function Se(e,t){const n=e&~N;if(n){ge(!0,n);const e=t();return ge(!1,n),e}return t()}function Te(e){return ke(8192,e)}function Ce(e){return ke(131072,e)}function we(e){return Se(131072,e)}function Ne(e){return Se(65536,e)}function De(e){return ke(65536,e)}function Fe(e){return!!(N&e)}function Ee(){return Fe(16384)}function Pe(){return Fe(8192)}function Ae(){return Fe(131072)}function Ie(){return Fe(32768)}function Oe(){return Fe(65536)}function Le(e,...t){return Re(a.getTokenStart(),a.getTokenEnd(),e,...t)}function je(e,t,n,...r){const i=he(h);let o;return i&&e===i.start||(o=$x(u,p,e,t,n,...r),h.push(o)),se=!0,o}function Re(e,t,n,...r){return je(e,t-e,n,...r)}function Me(e,t,...n){Re(e.pos,e.end,t,...n)}function Be(e,t,n){je(a.getTokenEnd(),t,e,n)}function Je(){return a.getTokenFullStart()}function ze(){return a.hasPrecedingJSDocComment()}function qe(){return x}function Ue(){return x=a.scan()}function Ve(e){return We(),e()}function We(){return Ch(x)&&(a.hasUnicodeEscape()||a.hasExtendedUnicodeEscape())&&Re(a.getTokenStart(),a.getTokenEnd(),_a.Keywords_cannot_contain_escape_characters),Ue()}function $e(){return x=a.scanJsDocToken()}function He(e){return x=a.scanJSDocCommentTextToken(e)}function Ke(){return x=a.reScanGreaterToken()}function Ge(e){return x=a.reScanTemplateToken(e)}function Qe(){return x=a.reScanLessThanToken()}function Ye(){return x=a.reScanHashToken()}function Ze(){return x=a.scanJsxIdentifier()}function et(){return x=a.scanJsxToken()}function tt(e,t){const n=x,r=h.length,i=se,o=N,s=0!==t?a.lookAhead(e):a.tryScan(e);return _n.assert(o===N),s&&0===t||(x=n,2!==t&&(h.length=r),se=i),s}function rt(e){return tt(e,1)}function it(e){return tt(e,0)}function ot(){return 80===qe()||qe()>118}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(_a._0_expected,Fa(e)),!1)}e.fixupParentReferences=fe;const lt=Object.keys(pa).filter((e=>e.length>2));function _t(e){if(eF(e))return void Re(Qa(p,e.template.pos),e.template.end,_a.Module_declaration_names_may_only_use_or_quoted_strings);const t=VN(e)?gc(e):void 0;if(!t||!ms(t,f))return void Le(_a._0_expected,Fa(27));const n=Qa(p,e.pos);switch(t){case"const":case"let":case"var":return void Re(n,e.end,_a.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void ut(_a.Interface_name_cannot_be_0,_a.Interface_must_be_given_a_name,19);case"is":return void Re(n,a.getTokenStart(),_a.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void ut(_a.Namespace_name_cannot_be_0,_a.Namespace_must_be_given_a_name,19);case"type":return void ut(_a.Type_alias_name_cannot_be_0,_a.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,_a.Unknown_keyword_or_identifier_Did_you_mean_0,r):0!==qe()&&Re(n,e.end,_a.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(_a._0_expected,Fa(e)),!1)}function pt(e,t,n,r){if(qe()===t)return void We();const i=Le(_a._0_expected,Fa(t));n&&i&&sT(i,$x(u,p,r,1,_a.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Fa(e),Fa(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||_a._0_expected,n||Fa(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 wT(i,t,n??a.getTokenFullStart()),i}function St(e,t,n){return wT(e,t,n??a.getTokenFullStart()),N&&(e.flags|=N),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):Ll(e)?D.createTemplateLiteralLikeNode(e,"","",void 0):9===e?E("",void 0):11===e?P("",void 0):282===e?D.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||_a.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?_a.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:_a.Identifier_expected;return Tt(80,r,t||s,o)}function Nt(e){return wt(ot(),void 0,e)}function Dt(e,t){return wt(st(),e,t)}function Ft(e){return wt(ua(qe()),e)}function Et(){return(a.hasUnicodeEscape()||a.hasExtendedUnicodeEscape())&&Le(_a.Unicode_escape_sequence_cannot_appear_here),wt(ua(qe()))}function Pt(){return ua(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(D.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)&&Ni();case 2:return 84===qe()||90===qe();case 4:return rt(zn);case 5:return rt(ro)||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 ua(qe())||11===qe();case 7:return 19===qe()?rt(Vt):t?st()&&!Gt():kr()&&!Gt();case 8:return Vi();case 10:return 28===qe()||26===qe()||Vi();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 yo();case 23:return(161!==qe()||!rt(Mi))&&(11===qe()||ua(qe()));case 13:return ua(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(),ua(qe())}function Ht(){return We(),da(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(Co);default:return!1}}function Zt(e,t){const n=C;C|=1<<e;const r=[],i=Je();for(;!Yt(e);)if(Ut(e,!1))r.push(en(e,t));else if(rn(e))break;return C=n,kt(r,i)}function en(e,t){const n=tn(e);return n?nn(n):t()}function tn(e,t){var n;if(!v||!function(e){switch(e){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}(e)||se)return;const r=v.currentNode(t??a.getTokenFullStart());if(wd(r)||function(e){return XI.has(e)}(r)||hd(r))return;return(101441536&r.flags)===N&&function(e,t){switch(t){case 5:return function(e){if(e)switch(e.kind){case 176:case 181:case 177:case 178:case 172:case 240:return!0;case 174:const t=e;return!(80===t.name.kind&&"constructor"===t.name.escapedText)}return!1}(e);case 2:return function(e){if(e)switch(e.kind){case 296:case 297:return!0}return!1}(e);case 0:case 1:case 3:return function(e){if(e)switch(e.kind){case 262:case 243:case 241:case 245:case 244:case 257:case 253:case 255:case 252:case 251:case 249:case 250:case 248:case 247:case 254:case 242:case 258:case 256:case 246:case 259:case 272:case 271:case 278:case 277:case 267:case 263:case 264:case 266:case 265:return!0}return!1}(e);case 6:return function(e){return 306===e.kind}(e);case 4:return function(e){if(e)switch(e.kind){case 180:case 173:case 181:case 171:case 179:return!0}return!1}(e);case 8:return function(e){if(260!==e.kind)return!1;const t=e;return void 0===t.initializer}(e);case 17:case 16:return function(e){if(169!==e.kind)return!1;const t=e;return void 0===t.initializer}(e)}return!1}(r,e)?(Lg(r)&&(null==(n=r.jsDoc)?void 0:n.jsDocCache)&&(r.jsDoc.jsDocCache=void 0),r):void 0}function nn(e){return a.resetTokenState(e.end),We(),e}function rn(e){return function(e){switch(e){case 0:return 90===qe()?Le(_a._0_expected,Fa(95)):Le(_a.Declaration_or_statement_expected);case 1:return Le(_a.Declaration_or_statement_expected);case 2:return Le(_a.case_or_default_expected);case 3:return Le(_a.Statement_expected);case 18:case 4:return Le(_a.Property_or_signature_expected);case 5:return Le(_a.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Le(_a.Enum_member_expected);case 7:return Le(_a.Expression_expected);case 8:return Ch(qe())?Le(_a._0_is_not_allowed_as_a_variable_declaration_name,Fa(qe())):Le(_a.Variable_declaration_expected);case 9:return Le(_a.Property_destructuring_pattern_expected);case 10:return Le(_a.Array_element_destructuring_pattern_expected);case 11:return Le(_a.Argument_expression_expected);case 12:return Le(_a.Property_assignment_expected);case 15:return Le(_a.Expression_or_comma_expected);case 17:return Le(_a.Parameter_declaration_expected);case 16:return Ch(qe())?Le(_a._0_is_not_allowed_as_a_parameter_name,Fa(qe())):Le(_a.Parameter_declaration_expected);case 19:return Le(_a.Type_parameter_declaration_expected);case 20:return Le(_a.Type_argument_expected);case 21:return Le(_a.Type_expected);case 22:return Le(_a.Unexpected_token_expected);case 23:return 161===qe()?Le(_a._0_expected,"}"):Le(_a.Identifier_expected);case 13:case 14:case 25:return Le(_a.Identifier_expected);case 24:return Le(_a.Identifier_or_string_literal_expected);case 26:return _n.fail("ParsingContext.Count used as a context");default:_n.assertNever(e)}}(e),!!function(){_n.assert(C,"Missing parsing context");for(let e=0;e<26;e++)if(C&1<<e&&(Ut(e,!0)||Yt(e)))return!0;return!1}()||(We(),!1)}function on(e,t,n){const r=C;C|=1<<e;const i=[],o=Je();let s=-1;for(;;)if(Ut(e,!1)){const o=a.getTokenFullStart(),c=en(e,t);if(!c)return void(C=r);if(i.push(c),s=a.getTokenStart(),ft(28))continue;if(s=-1,Yt(e))break;ct(28,an(e)),n&&27===qe()&&!a.hasPrecedingLineBreak()&&We(),o===a.getTokenFullStart()&&We()}else{if(Yt(e))break;if(rn(e))break}return C=r,kt(i,o,void 0,s>=0)}function an(e){return 6===e?_a.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):Dt(t);for(;ft(25)&&30!==qe();)r=St(D.createQualifiedName(r,dn(e,!1,!0)),n);return r}function un(e,t){return St(D.createQualifiedName(e,t),e.pos)}function dn(e,t,n){if(a.hasPrecedingLineBreak()&&ua(qe())){if(rt(xi))return Tt(80,!0,_a.Identifier_expected)}if(81===qe()){const e=Lt();return t?e:Tt(80,!0,_a.Identifier_expected)}return e?n?Ft():Et():Dt()}function pn(e){const t=Je();return St(D.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(D.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(D.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,_a._0_expected,Fa(20))}function hn(e){const t=Je();return St(D.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=Ll(e)?D.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()):Al(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,_a.Type_expected)}function kn(){if(!a.hasPrecedingLineBreak()&&30===Qe())return cn(20,br,30,32)}function Sn(){const e=Je();return St(D.createTypeReferenceNode(xn(),kn()),e)}function Tn(e){switch(e.kind){case 183:return wd(e.typeName);case 184:case 185:{const{parameters:t,type:n}=e;return!!t.isMissingList||Tn(n)}case 196:return Tn(e.type);default:return!1}}function Cn(){const e=Je();return We(),St(D.createThisTypeNode(),e)}function wn(){const e=Je();let t;return 110!==qe()&&105!==qe()||(t=Ft(),ct(59)),St(D.createParameterDeclaration(void 0,void 0,t,void 0,Nn(),void 0),e)}function Nn(){a.setSkipJsDocLeadingAsterisks(!0);const e=Je();if(ft(144)){const t=D.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(D.createJSDocVariadicType(n),e)),64===qe()?(We(),St(D.createJSDocOptionalType(n),e)):n}function Dn(){const e=Je(),t=co(!1,!0),n=Dt();let r,i;ft(96)&&(ar()||!Sr()?r=br():i=Br());const o=ft(64)?br():void 0,a=D.createTypeParameterDeclaration(t,n,r,o);return a.expression=i,St(a,e)}function Fn(){if(30===qe())return cn(19,Dn,30,32)}function En(e){return 26===qe()||Vi()||Xl(qe())||60===qe()||ar(!e)}function Pn(e){return An(e)}function An(e,t=!0){const n=Je(),r=ze(),i=e?Ne((()=>co(!0))):De((()=>co(!0)));if(110===qe()){const e=D.createParameterDeclaration(i,void 0,wt(!0),void 0,xr(),void 0),t=pe(i);return t&&Me(t,_a.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(D.createParameterDeclaration(i,a,function(e){const t=Wi(_a.Private_identifiers_cannot_be_used_as_parameters);return 0===ad(t)&&!V(e)&&Xl(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(_a._0_expected,Fa(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();180===e&&ct(105);const r=Fn(),i=Ln(4),o=In(59,!0);jn();return de(St(179===e?D.createCallSignature(r,i,o):D.createConstructSignature(r,i,o),t),n)}function Mn(){return 23===qe()&&rt(Bn)}function Bn(){if(We(),26===qe()||24===qe())return!0;if(Xl(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(D.createIndexSignature(n,r,i),e),t)}function zn(){if(21===qe()||30===qe()||139===qe()||153===qe())return!0;let e=!1;for(;Xl(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(179);if(105===qe()&&rt(Un))return Rn(180);const e=Je(),t=ze(),n=co(!1);return jt(139)?no(e,t,n,177,4):jt(153)?no(e,t,n,178,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=D.createMethodSignature(n,r,i,e,t,a)}else{const e=xr();o=D.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(D.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(D.createMappedTypeNode(t,n,r,i,o,a),e)}function Gn(){const e=Je();if(ft(26))return St(D.createRestTypeNode(br()),e);const t=br();if(tP(t)&&t.pos===t.type.pos){const e=D.createOptionalTypeNode(t.type);return cI(e,t),e.flags=t.flags,e}return t}function Xn(){return 59===We()||58===qe()&&59===We()}function Qn(){return 26===qe()?ua(We())&&Xn():ua(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(D.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?D.createConstructorTypeNode(n,i,o,a):D.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(D.createPrefixUnaryExpression(41,n),t)),St(D.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(_a._0_expected,Fa(118)),ct(59),r=Fo(t,!0),!ct(20)){const t=he(h);t&&t.code===_a._0_expected.code&&sT(t,$x(u,p,e,1,_a.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(D.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(D.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(D.createJSDocUnknownType(),e):St(D.createJSDocNullableType(br(),!1),e)}();case 100:return function(){const e=Je(),t=ze();if(it(So)){const n=Ln(36),r=In(59,!1);return de(St(D.createJSDocFunctionType(n,r),e),t)}return St(D.createTypeReferenceNode(Ft(),void 0),e)}();case 54:return function(){const e=Je();return We(),St(D.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(D.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:ho();return St(D.createTypeQueryNode(t,n),e)}();case 19:return rt(Hn)?Kn():function(){const e=Je();return St(D.createTypeLiteralNode($n()),e)}();case 23:return function(){const e=Je();return St(D.createTupleTypeNode(cn(21,Yn,23,24)),e)}();case 21:return function(){const e=Je();ct(21);const t=br();return ct(22),St(D.createParenthesizedType(t),e)}();case 102:return rr();case 131:return rt(xi)?function(){const e=Je(),t=ht(131),n=110===qe()?Cn():Dt(),r=ft(142)?br():void 0;return St(D.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(D.createJSDocNonNullableType(t,!0),e);break;case 58:if(rt(Qt))return t;We(),t=St(D.createJSDocNullableType(t,!0),e);break;case 23:if(ct(23),ar()){const n=br();ct(24),t=St(D.createIndexedAccessTypeNode(t,n),e)}else ct(24),t=St(D.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(D.createInferTypeNode(function(){const e=Je(),t=Dt(),n=it(lr);return St(D.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(D.createTypeOperatorNode(e,ur()),t)}(e);case 140:return _r()}return Ce(cr)}function dr(e){if(gr()){const t=Zn();let n;return n=SD(t)?e?_a.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:_a.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:e?_a.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:_a.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,D.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(Xl(qe())&&co(!1),st()||110===qe())return We(),!0;if(23===qe()||19===qe()){const e=h.length;return Wi(),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(D.createTypePredicateNode(void 0,t,n),e):n}function vr(){const e=Dt();if(142===qe()&&!a.hasPrecedingLineBreak())return We(),e}function br(){if(81920&N)return ke(81920,br);if(gr())return Zn();const e=Je(),t=pr(52,fr,D.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(D.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(D.createYieldExpression(void 0,void 0),e):St(D.createYieldExpression(mt(42),wr(!0)),e)}();const t=function(e){const t=function(){if(21===qe()||30===qe()||134===qe())return rt(Dr);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=lo();return Nr(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()?Nr(n,i,e,r,void 0):M_(i)&&tb(Ke())?jr(i,yt(),wr(e),n):function(e,t,n){const r=mt(58);if(!r)return e;let i;return St(D.createConditionalExpression(e,r,ke(l,(()=>wr(!1))),i=ht(59),Nd(i)?wr(n):Tt(80,!1,_a._0_expected,Fa(59))),t)}(i,n,e)}function Nr(e,t,n,r,i){_n.assert(39===qe(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const o=D.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(D.createArrowFunction(i,void 0,a,void 0,s,c),e),r)}function Dr(){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(Xl(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=lo(),o=V(i,KN)?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(;196===(null==_?void 0:_.kind);)_=_.type;const u=_&&iP(_);if(!e&&39!==qe()&&(u||19!==qe()))return;const d=qe(),p=ht(39),f=39===d||19===d?Pr(V(i,KN),t):Dt();if(!t&&c&&59!==qe())return;return de(St(D.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()&&Ni()&&(19===qe()||100===qe()||86===qe()||60===qe()||!Sr()))return mi(16|(e?2:0));const n=oe;oe=!1;const r=e?Ne((()=>wr(t))):De((()=>wr(t)));return oe=n,r}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=cy(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(D.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())&&cy(qe())>0}function jr(e,t,n,r){return St(D.createBinaryExpression(e,t,n),r)}function Rr(e,t){return St(D.createAsExpression(e,t),e.pos)}function Mr(){const e=Je();return St(D.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(cy(qe()),t,e):t}const e=qe(),t=Jr();if(43===qe()){const n=Qa(p,t.pos),{end:r}=t;216===t.kind?Re(n,r,_a.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,_a.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,Fa(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(D.createDeleteExpression(Ve(Jr)),e)}();case 114:return function(){const e=Je();return St(D.createTypeOfExpression(Ve(Jr)),e)}();case 116:return function(){const e=Je();return St(D.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(D.createTypeAssertion(t,n),e)}();case 135:if(135===qe()&&(Oe()||rt(Ti)))return function(){const e=Je();return St(D.createAwaitExpression(Ve(Jr)),e)}();default:return zr()}}function zr(){if(46===qe()||47===qe()){const e=Je();return St(D.createPrefixUnaryExpression(qe(),Ve(qr)),e)}if(1===g&&30===qe()&&rt(Ht))return Vr(!0);const e=qr();if(_n.assert(M_(e)),(46===qe()||47===qe())&&!a.hasPrecedingLineBreak()){const t=qe();return We(),St(D.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(D.createMetaProperty(102,Ft()),e),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(),_a.super_may_not_use_type_arguments),ti()||(t=D.createExpressionWithTypeArguments(t,n)))}if(21===qe()||25===qe()||23===qe())return t;return ht(25,_a.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(D.createJsxOpeningFragment(),t);const n=Hr(),r=524288&N?void 0:ho(),i=function(){const e=Je();return St(D.createJsxAttributes(Zt(13,Gr)),e)}();let o;32===qe()?(et(),o=D.createJsxOpeningElement(n,r,i)):(ct(44),ct(32,void 0,!1)&&(e?We():et()),o=D.createJsxSelfClosingElement(n,r,i));return St(o,t)}(e);let a;if(286===o.kind){let t,r=$r(o);const s=r[r.length-1];if(284===(null==s?void 0:s.kind)&&!cO(s.openingElement.tagName,s.closingElement.tagName)&&cO(o.tagName,s.closingElement.tagName)){const e=s.children.end,n=St(D.createJsxElement(s.openingElement,s.children,St(D.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||!cO(e.tagName,r)?We():et());return St(D.createJsxClosingElement(r),n)}(o,e),cO(o.tagName,t.tagName)||(n&&NE(n)&&cO(t.tagName,n.tagName)?Me(o.tagName,_a.JSX_element_0_has_no_corresponding_closing_tag,Kd(p,o.tagName)):Me(t.tagName,_a.Expected_corresponding_JSX_closing_tag_for_0,Kd(p,o.tagName)));a=St(D.createJsxElement(o,r,t),i)}else 289===o.kind?a=St(D.createJsxFragment(o,$r(o),function(e){const t=Je();ct(31),ct(32,_a.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(e?We():et());return St(D.createJsxJsxClosingFragment(),t)}(e)),i):(_n.assert(285===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(Qa(p,e),n.end,_a.JSX_expressions_must_have_one_parent_element),St(D.createBinaryExpression(a,t,n),i)}}return a}function Wr(e,t){switch(t){case 1:if(EE(e))Me(e,_a.JSX_fragment_has_no_corresponding_closing_tag);else{const t=e.tagName;Re(Math.min(Qa(p,t.pos),t.end),t.end,_a.JSX_element_0_has_no_corresponding_closing_tag,Kd(p,e.tagName))}return;case 31:case 7:return;case 12:case 13:return function(){const e=Je(),t=D.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),NE(e)&&284===(null==n?void 0:n.kind)&&!cO(n.openingElement.tagName,n.closingElement.tagName)&&cO(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(D.createJsxNamespacedName(n,Et()),e);return t?St(D.createToken(110),e):n}();if(jE(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(D.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(D.createJsxSpreadAttribute(t),e)}();const e=Je();return St(D.createJsxAttribute(function(){const e=Je();Ze();const t=Et();if(ft(59))return Ze(),St(D.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(_a.or_JSX_element_expected)}return}()),e)}function Xr(){return We(),ua(qe())||23===qe()||ti()}function Qr(e){if(64&e.flags)return!0;if(xF(e)){let t=e.expression;for(;xF(t)&&!(64&t.flags);)t=t.expression;if(64&t.flags){for(;xF(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&&WN(o.name)&&Me(o.name,_a.An_optional_chain_cannot_contain_private_identifiers),yF(t)&&t.typeArguments){Re(t.typeArguments.pos-1,Qa(p,t.typeArguments.end)+1,_a.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,_a.An_element_access_expression_should_take_an_argument);else{const e=Te(Tr);jh(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=ua(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(D.createNonNullExpression(t),e);continue}const n=it(oi);if(n){t=St(D.createExpressionWithTypeArguments(t,n),e);continue}}return t}t=r||233!==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=D.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,_a.Identifier_expected);t=St(J(t,r,n),e)}break}{r||233!==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&N)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=co(!0);if(86===qe())return po(e,t,n,231);const r=Tt(282,!0,_a.Expression_expected);return TT(r,e),r.modifiers=n,r}();case 86:return po(Je(),ze(),void 0,231);case 100:return di();case 105:return function(){const e=Je();if(ct(105),ft(25)){const t=Ft();return St(D.createMetaProperty(105,t),e)}let t,n=ei(Je(),ai(),!1);233===n.kind&&(t=n.typeArguments,n=n.expression);29===qe()&&Le(_a.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Kd(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 Dt(_a.Expression_expected)}function si(){return 26===qe()?function(){const e=Je();ct(26);const t=wr(!0);return St(D.createSpreadElement(t),e)}():28===qe()?St(D.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(D.createSpreadAssignment(n),e),t)}const n=co(!0);if(jt(139))return no(e,t,n,177,0);if(jt(153))return no(e,t,n,178,0);const r=mt(42),i=st(),o=It(),a=mt(58),s=mt(54);if(r||21===qe()||30===qe())return Zi(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=D.createShorthandPropertyAssignment(o,t),c.equalsToken=e}else{ct(59);const e=Te((()=>wr(!0)));c=D.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=co(!1);ct(100);const i=mt(42),o=i?1:0,a=V(r,KN)?2:0,s=o&&a?Se(81920,pi):o?function(e){return Se(16384,e)}(pi):a?Ne(pi):pi();const c=Fn(),l=Ln(o|a),_=In(59,!1),u=mi(o|a);be(e);return de(St(D.createFunctionExpression(r,i,s,c,l,_,u),t),n)}function pi(){return ot()?Nt():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,Oi);pt(19,20,o,i);const s=de(St(G(t,e),n),r);return 64===qe()&&(Le(_a.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(Ai)?Ki(!0):Se(8192,Tr)),n?ct(165):ft(165)){const e=Te((()=>wr(!0)));ct(22),i=te(n,r,e,Oi())}else if(ft(103)){const e=Te(Tr);ct(22),i=D.createForInStatement(r,e,Oi())}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,Oi())}return de(St(i,e),t)}function hi(e){const t=Je(),n=ze();ct(252===e?83:88);const r=vt()?void 0:Dt();xt();return de(St(252===e?D.createBreakStatement(r):D.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,Oi);return de(St(D.createCaseClause(n,r),e),t)}():function(){const e=Je();ct(90),ct(59);const t=Zt(3,Oi);return St(D.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(D.createCaseBlock(t),e)}();return de(St(D.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=Hi(),ct(22)):t=void 0;const n=fi(!1);return St(D.createCatchClause(t,n),e)}():void 0;let i;return r&&98!==qe()||(ct(98,_a.catch_or_finally_expected),i=fi(!1)),de(St(D.createTryStatement(n,r,i),e),t)}function xi(){return We(),ua(qe())&&!a.hasPrecedingLineBreak()}function ki(){return We(),86===qe()&&!a.hasPrecedingLineBreak()}function Si(){return We(),100===qe()&&!a.hasPrecedingLineBreak()}function Ti(){return We(),(ua(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 Pi();case 135:return Ii();case 120:case 156:return We(),!a.hasPrecedingLineBreak()&&st();case 144:case 145:return Ji();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(),11===qe()||42===qe()||19===qe()||ua(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 Ni(){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: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 Di(){return We(),ot()||19===qe()||23===qe()}function Fi(){return Ei(!0)}function Ei(e){return We(),(!e||165!==qe())&&((ot()||19===qe())&&!a.hasPrecedingLineBreak())}function Pi(){return rt(Ei)}function Ai(e){return 160===We()&&Ei(e)}function Ii(){return rt(Ai)}function Oi(){switch(qe()){case 27:return function(){const e=Je(),t=ze();return ct(27),de(St(D.createEmptyStatement(),e),t)}();case 19:return fi(!1);case 115:return Xi(Je(),ze(),void 0);case 121:if(rt(Di))return Xi(Je(),ze(),void 0);break;case 135:if(Ii())return Xi(Je(),ze(),void 0);break;case 160:if(Pi())return Xi(Je(),ze(),void 0);break;case 100:return Qi(Je(),ze(),void 0);case 86:return uo(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=Oi(),s=ft(93)?Oi():void 0;return de(St(Y(i,o,s),e),t)}();case 92:return function(){const e=Je(),t=ze();ct(92);const n=Oi();ct(117);const r=a.getTokenStart(),i=ct(21),o=Te(Tr);return pt(21,22,i,r),ft(27),de(St(D.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=Oi();return de(St(Z(i,o),e),t)}();case 99:return gi();case 88:return hi(251);case 83:return hi(252);case 107:return function(){const e=Je(),t=ze();ct(107);const n=vt()?void 0:Te(Tr);return xt(),de(St(D.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,Oi);return de(St(D.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(D.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(D.createDebuggerStatement(),e),t)}();case 60:return ji();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 ji()}return function(){const e=Je();let t,n=ze();const r=21===qe(),i=Te(Tr);return VN(i)&&ft(59)?t=D.createLabeledStatement(i,Oi()):(bt()||_t(i),t=Q(i),r&&(n=!1)),de(St(t,e),n)}()}function Li(e){return 138===e.kind}function ji(){const e=Je(),t=ze(),n=co(!0);if(V(n,Li)){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,(()=>Ri(e,t,n)))}return Ri(e,t,n)}function Ri(e,t,n){switch(qe()){case 115:case 121:case 87:case 160:case 135:return Xi(e,t,n);case 100:return Qi(e,t,n);case 86:return uo(e,t,n);case 120:return function(e,t,n){ct(120);const r=Dt(),i=Fn(),o=fo(),a=$n();return de(St(D.createInterfaceDeclaration(n,r,i,o,a),e),t)}(e,t,n);case 156:return function(e,t,n){ct(156),a.hasPrecedingLineBreak()&&Le(_a.Line_break_not_permitted_here);const r=Dt(),i=Fn();ct(64);const o=141===qe()&&it(er)||br();xt();return de(St(D.createTypeAliasDeclaration(n,r,i,o),e),t)}(e,t,n);case 94:return function(e,t,n){ct(94);const r=Dt();let i;ct(19)?(i=ke(81920,(()=>on(6,vo))),ct(20)):i=sn();return de(St(D.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 ko(e,t,n);if(ft(145))r|=32;else if(ct(144),11===qe())return ko(e,t,n);return xo(e,t,n,r)}(e,t,n);case 102:return function(e,t,n){ct(102);const r=a.getTokenFullStart();let i;st()&&(i=Dt());let o=!1;"type"===(null==i?void 0:i.escapedText)&&(161!==qe()||st()&&rt(Bi))&&(st()||42===qe()||19===qe())&&(o=!0,i=st()?Dt():void 0);if(i&&28!==qe()&&161!==qe())return function(e,t,n,r,i){ct(64);const o=149===qe()&&rt(So)?function(){const e=Je();ct(149),ct(21);const t=Eo();return ct(22),St(D.createExternalModuleReference(t),e)}():ln(!1);xt();const a=D.createImportEqualsDeclaration(n,i,r,o),s=de(St(a,e),t);return s}(e,t,n,i,o);const s=wo(i,r,o),c=Eo(),l=No();xt();return de(St(D.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(D.createExportAssignment(n,i,o),e),t)}(e,t,n);case 130:return function(e,t,n){ct(130),ct(145);const r=Dt();xt();const i=D.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(D.createNamespaceExport(Ao(Ft)),e)}(l)),ct(161),o=Eo()):(i=Io(279),(161===qe()||11===qe()&&!a.hasPrecedingLineBreak())&&(ct(161),o=Eo()));const _=qe();!o||118!==_&&132!==_||a.hasPrecedingLineBreak()||(s=Fo(_));xt(),xe(r);return de(St(D.createExportDeclaration(n,c,i,o,s),e),t)}(e,t,n)}default:if(n){const t=Tt(282,!0,_a.Declaration_expected);return TT(t,e),t.modifiers=n,t}return}}function Mi(){return 11===We()}function Bi(){return We(),161===qe()||64===qe()}function Ji(){return We(),!a.hasPrecedingLineBreak()&&(st()||11===qe())}function zi(e,t){if(19!==qe()){if(4&e)return void jn();if(vt())return void xt()}return mi(e,t)}function qi(){const e=Je();if(28===qe())return St(D.createOmittedExpression(),e);const t=mt(26),n=Wi(),r=Cr();return St(D.createBindingElement(t,void 0,n,r),e)}function Ui(){const e=Je(),t=mt(26),n=ot();let r,i=It();n&&59!==qe()?(r=i,i=void 0):(ct(59),r=Wi());const o=Cr();return St(D.createBindingElement(t,i,r,o),e)}function Vi(){return 19===qe()||23===qe()||81===qe()||ot()}function Wi(e){return 23===qe()?function(){const e=Je();ct(23);const t=Te((()=>on(10,qi)));return ct(24),St(D.createArrayBindingPattern(t),e)}():19===qe()?function(){const e=Je();ct(19);const t=Te((()=>on(9,Ui)));return ct(20),St(D.createObjectBindingPattern(t),e)}():Nt(e)}function $i(){return Hi(!0)}function Hi(e){const t=Je(),n=ze(),r=Wi(_a.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 Ki(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:_n.assert(Ii()),r|=6,We();break;default:_n.fail()}if(We(),165===qe()&&rt(Gi))n=sn();else{const t=Pe();ye(e),n=on(8,e?Hi:$i),ye(t)}return St(ie(n,r),t)}function Gi(){return Wt()&&22===We()}function Xi(e,t,n){const r=Ki(!1);xt();return de(St(X(n,r),e),t)}function Qi(e,t,n){const r=Oe(),i=Hv(n);ct(100);const o=mt(42),a=2048&i?pi():Nt(),s=o?1:0,c=1024&i?2:0,l=Fn();32&i&&xe(!0);const _=Ln(s|c),u=In(59,!1),d=zi(s|c,_a.or_expected);xe(r);return de(St(D.createFunctionDeclaration(n,o,a,l,_,u,d),e),t)}function Yi(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=zi(0,_a.or_expected),s=D.createConstructorDeclaration(n,i,a);return s.typeParameters=r,s.type=o,de(St(s,e),t)}}))}function Zi(e,t,n,r,i,o,a,s){const c=r?1:0,l=V(n,KN)?2:0,_=Fn(),u=Ln(c|l),d=In(59,!1),p=zi(c|l,s),f=D.createMethodDeclaration(n,r,i,o,_,u,d,p);return f.exclamationToken=a,de(St(f,e),t)}function eo(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(_a.Cannot_start_a_function_call_in_a_type_annotation),void We()):void(!t||vt()?bt()||(n?Le(_a._0_expected,Fa(27)):_t(e)):n?Le(_a._0_expected,Fa(27)):Le(_a.Expected_for_property_initializer));Le(_a.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations)}(r,s,c);return de(St(D.createPropertyDeclaration(n,r,i||o,s,c),e),t)}function to(e,t,n){const r=mt(42),i=It(),o=mt(58);return r||21===qe()||30===qe()?Zi(e,t,n,r,i,o,void 0,_a.or_expected):eo(e,t,n,i,o)}function no(e,t,n,r,i){const o=It(),a=Fn(),s=Ln(0),c=In(59,!1),l=zi(i),_=177===r?D.createGetAccessorDeclaration(n,o,s,c,l):D.createSetAccessorDeclaration(n,o,s,l);return _.typeParameters=a,hD(_)&&(_.type=c),de(St(_,e),t)}function ro(){let e;if(60===qe())return!0;for(;Xl(qe());){if(e=qe(),Yl(e))return!0;We()}if(42===qe())return!0;if(Pt()&&(e=qe(),We()),23===qe())return!0;if(void 0!==e){if(!Ch(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 io(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(D.createClassStaticBlockDeclaration(r),e),t);return i.modifiers=n,i}function oo(){if(Oe()&&135===qe()){const e=Je(),t=Dt(_a.Expression_expected);We();return ri(e,ei(e,t,!0))}return qr()}function ao(){const e=Je();if(!ft(60))return;const t=Se(32768,oo);return St(D.createDecorator(t),e)}function so(e,t,n){const r=Je(),i=qe();if(87===qe()&&t){if(!it(Rt))return}else{if(n&&126===qe()&&rt(To))return;if(e&&126===qe())return;if(!Xl(qe())||!it(Mt))return}return St(L(i),r)}function co(e,t,n){const r=Je();let i,o,a,s=!1,c=!1,l=!1;if(e&&60===qe())for(;o=ao();)i=re(i,o);for(;a=so(s,t,n);)126===a.kind&&(s=!0),i=re(i,a),c=!0;if(c&&e&&60===qe())for(;o=ao();)i=re(i,o),l=!0;if(l)for(;a=so(s,t,n);)126===a.kind&&(s=!0),i=re(i,a);return i&&kt(i,r)}function lo(){let e;if(134===qe()){const t=Je();We();e=kt([St(L(134),t)],t)}return e}function _o(){const e=Je(),t=ze();if(27===qe())return We(),de(St(D.createSemicolonClassElement(),e),t);const n=co(!0,!0,!0);if(126===qe()&&rt(To))return io(e,t,n);if(jt(139))return no(e,t,n,177,0);if(jt(153))return no(e,t,n,178,0);if(137===qe()||11===qe()){const r=Yi(e,t,n);if(r)return r}if(Mn())return Jn(e,t,n);if(ua(qe())||11===qe()||9===qe()||10===qe()||42===qe()||23===qe()){if(V(n,Li)){for(const e of n)e.flags|=33554432;return Se(33554432,(()=>to(e,t,n)))}return to(e,t,n)}if(n){const r=Tt(80,!0,_a.Declaration_expected);return eo(e,t,n,r,void 0)}return _n.fail("Should not have attempted to parse class member declaration.")}function uo(e,t,n){return po(e,t,n,263)}function po(e,t,n,r){const i=Oe();ct(86);const o=!ot()||119===qe()&&rt($t)?void 0:wt(ot()),a=Fn();V(n,$N)&&xe(!0);const s=fo();let c;ct(19)?(c=Zt(5,_o),ct(20)):c=sn(),xe(i);return de(St(263===r?D.createClassDeclaration(n,o,a,s,c):D.createClassExpression(n,o,a,s,c),e),t)}function fo(){if(yo())return Zt(22,mo)}function mo(){const e=Je(),t=qe();_n.assert(96===t||119===t),We();const n=on(7,go);return St(D.createHeritageClause(t,n),e)}function go(){const e=Je(),t=qr();if(233===t.kind)return t;const n=ho();return St(D.createExpressionWithTypeArguments(t,n),e)}function ho(){return 30===qe()?cn(20,br,30,32):void 0}function yo(){return 96===qe()||119===qe()}function vo(){const e=Je(),t=ze(),n=It(),r=Te(Cr);return de(St(D.createEnumMember(n,r),e),t)}function bo(){const e=Je();let t;return ct(19)?(t=Zt(1,Oi),ct(20)):t=sn(),St(D.createModuleBlock(t),e)}function xo(e,t,n,r){const i=32&r,o=8&r?Ft():Dt(),a=ft(25)?xo(Je(),!1,void 0,8|i):bo();return de(St(D.createModuleDeclaration(n,o,a,r),e),t)}function ko(e,t,n){let r,i,o=0;162===qe()?(r=Dt(),o|=2048):(r=yn(),r.text=Ct(r.text)),19===qe()?i=bo():xt();return de(St(D.createModuleDeclaration(n,r,i,o),e),t)}function So(){return 21===We()}function To(){return 19===We()}function Co(){return 44===We()}function wo(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=Dt();return St(D.createNamespaceImport(t),e)}():Io(275),r&&a.setSkipJsDocLeadingAsterisks(!1));return St(D.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 Fo(e)}function Do(){const e=Je(),t=ua(qe())?Ft():bn(11);ct(59);const n=wr(!0);return St(D.createImportAttribute(t,n),e)}function Fo(e,t){const n=Je();t||ct(e);const r=a.getTokenStart();if(ct(19)){const t=a.hasPrecedingLineBreak(),i=on(24,Do,!0);if(!ct(20)){const e=he(h);e&&e.code===_a._0_expected.code&&sT(e,$x(u,p,r,1,_a.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return St(D.createImportAttributes(i,t,e),n)}{const t=kt([],Je(),void 0,!1);return St(D.createImportAttributes(t,!1,e),n)}}function Eo(){if(11===qe()){const e=yn();return e.text=Ct(e.text),e}return Tr()}function Po(){return ua(qe())||11===qe()}function Ao(e){return 11===qe()?yn():e()}function Io(e){const t=Je();return St(275===e?D.createNamedImports(cn(23,Lo,19,20)):D.createNamedExports(cn(23,Oo,19,20)),t)}function Oo(){const e=ze();return de(jo(281),e)}function Lo(){return jo(276)}function jo(e){const t=Je();let n,r=Ch(qe())&&!st(),i=a.getTokenStart(),o=a.getTokenEnd(),s=!1,c=!0,l=Ao(Ft);if(80===l.kind&&"type"===l.escapedText)if(130===qe()){const e=Ft();if(130===qe()){const t=Ft();Po()?(s=!0,n=e,l=Ao(_),c=!1):(n=l,l=t,c=!1)}else Po()?(n=l,c=!1,l=Ao(_)):(s=!0,l=e)}else Po()&&(s=!0,l=Ao(_));c&&130===qe()&&(n=l,ct(130),l=Ao(_)),276===e&&(80!==l.kind?(Re(Qa(p,l.pos),l.end,_a.Identifier_expected),l=wT(Tt(80,!1),l.pos,l.pos)):r&&Re(i,o,_a.Identifier_expected));return St(276===e?D.createImportSpecifier(s,n,l):D.createExportSpecifier(s,n,l),t);function _(){return r=Ch(qe())&&!st(),i=a.getTokenStart(),o=a.getTokenEnd(),Ft()}}let Ro;var Mo;let Bo;var Jo;let qo;(Mo=Ro||(Ro={}))[Mo.SourceElements=0]="SourceElements",Mo[Mo.BlockStatements=1]="BlockStatements",Mo[Mo.SwitchClauses=2]="SwitchClauses",Mo[Mo.SwitchClauseStatements=3]="SwitchClauseStatements",Mo[Mo.TypeMembers=4]="TypeMembers",Mo[Mo.ClassMembers=5]="ClassMembers",Mo[Mo.EnumMembers=6]="EnumMembers",Mo[Mo.HeritageClauseElement=7]="HeritageClauseElement",Mo[Mo.VariableDeclarations=8]="VariableDeclarations",Mo[Mo.ObjectBindingElements=9]="ObjectBindingElements",Mo[Mo.ArrayBindingElements=10]="ArrayBindingElements",Mo[Mo.ArgumentExpressions=11]="ArgumentExpressions",Mo[Mo.ObjectLiteralMembers=12]="ObjectLiteralMembers",Mo[Mo.JsxAttributes=13]="JsxAttributes",Mo[Mo.JsxChildren=14]="JsxChildren",Mo[Mo.ArrayLiteralMembers=15]="ArrayLiteralMembers",Mo[Mo.Parameters=16]="Parameters",Mo[Mo.JSDocParameters=17]="JSDocParameters",Mo[Mo.RestProperties=18]="RestProperties",Mo[Mo.TypeParameters=19]="TypeParameters",Mo[Mo.TypeArguments=20]="TypeArguments",Mo[Mo.TupleElementTypes=21]="TupleElementTypes",Mo[Mo.HeritageClauses=22]="HeritageClauses",Mo[Mo.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",Mo[Mo.ImportAttributes=24]="ImportAttributes",Mo[Mo.JSDocComment=25]="JSDocComment",Mo[Mo.Count=26]="Count",(Jo=Bo||(Bo={}))[Jo.False=0]="False",Jo[Jo.True=1]="True",Jo[Jo.Unknown=2]="Unknown",(e=>{function t(e){const t=Je(),n=(e?ft:ct)(19),r=Se(16777216,Nn);e&&!n||dt(20);const i=D.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(D.createJSDocMemberName(r,Dt()),n);t&&dt(20);const i=D.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),!mI(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(D.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(D.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(D.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.length<e[e.length-1].length){e[e.length-1]=t;break}break}e.pop()}}function b(){for(;;){if($e(),1===qe())return!0;if(5!==qe()&&4!==qe())return!1}}function x(){if(5!==qe()&&4!==qe()||!rt(b))for(;5===qe()||4===qe();)$e()}function k(){if((5===qe()||4===qe())&&rt(b))return"";let e=a.hasPrecedingLineBreak(),t=!1,n="";for(;e&&42===qe()||5===qe()||4===qe();)n+=a.getTokenText(),4===qe()?(e=!0,t=!0,n=""):42===qe()&&(e=!1),$e();return t?n:""}function S(e){_n.assert(60===qe());const r=a.getTokenStart();$e();const i=ee(void 0),o=k();let c;switch(i.escapedText){case"author":c=function(e,t,n,r){const i=Je(),o=function(){const e=[];let t=!1,n=a.getToken();for(;1!==n&&4!==n;){if(30===n)t=!0;else{if(60===n&&!t)break;if(32===n&&t){e.push(a.getTokenText()),a.resetTokenState(a.getTokenEnd());break}}e.push(a.getTokenText()),n=$e()}return D.createJSDocText(e.join(""))}();let s=a.getTokenFullStart();const c=w(e,s,n,r);c||(s=a.getTokenFullStart());const l="string"!=typeof c?kt($([St(o,i,s)],c),i):o.text+c;return St(D.createJSDocAuthorTag(t,l),e)}(r,i,e,o);break;case"implements":c=function(e,t,n,r){const i=J();return St(D.createJSDocImplementsTag(t,i,w(e,Je(),n,r)),e)}(r,i,e,o);break;case"augments":case"extends":c=function(e,t,n,r){const i=J();return St(D.createJSDocAugmentsTag(t,i,w(e,Je(),n,r)),e)}(r,i,e,o);break;case"class":case"constructor":c=z(r,D.createJSDocClassTag,i,e,o);break;case"public":c=z(r,D.createJSDocPublicTag,i,e,o);break;case"private":c=z(r,D.createJSDocPrivateTag,i,e,o);break;case"protected":c=z(r,D.createJSDocProtectedTag,i,e,o);break;case"readonly":c=z(r,D.createJSDocReadonlyTag,i,e,o);break;case"override":c=z(r,D.createJSDocOverrideTag,i,e,o);break;case"deprecated":ue=!0,c=z(r,D.createJSDocDeprecatedTag,i,e,o);break;case"this":c=q(r,i,e,o);break;case"enum":c=function(e,n,r,i){const o=t(!0);return x(),St(D.createJSDocEnumTag(n,o,w(e,Je(),r,i)),e)}(r,i,e,o);break;case"arg":case"argument":case"param":return R(r,i,2,e);case"return":case"returns":c=function(e,t,n,r){V(s,TP)&&Re(t.pos,a.getTokenStart(),_a._0_tag_already_specified,mc(t.escapedText));const i=O();return St(D.createJSDocReturnTag(t,i,w(e,Je(),n,r)),e)}(r,i,e,o);break;case"template":c=Y(r,i,e,o);break;case"type":c=M(r,i,e,o);break;case"typedef":c=function(e,t,n,r){let i=O();k();const o=U();x();let a,s=N(n);if(!i||j(i.type)){let t,r,o,s=!1;for(;(t=it((()=>K(n))))&&345!==t.kind;)if(s=!0,344===t.kind){if(r){const e=Le(_a.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e&&sT(e,$x(u,p,0,0,_a.The_tag_was_first_specified_here));break}r=t}else o=re(o,t);if(s){const t=i&&188===i.type.kind,n=D.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=D.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=N(n);const a=W(e,n);o||(o=w(e,Je(),n,r));const s=void 0!==o?Je():a.end;return St(D.createJSDocCallbackTag(t,a,i,o),e,s)}(r,i,e,o);break;case"overload":c=function(e,t,n,r){x();let i=N(n);const o=W(e,n);i||(i=w(e,Je(),n,r));const a=void 0!==i?Je():o.end;return St(D.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(D.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()&&ua($e())&&P(a.getTokenValue())))?void 0:n(),s=void 0!==r&&void 0!==i?w(e,Je(),r,i):void 0;return St(D.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(D.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=Dt());const s=wo(o,i,!0,!0),c=Eo(),l=No(),_=void 0!==n&&void 0!==r?w(e,Je(),n,r):void 0;return St(D.createJSDocImportTag(t,s,c,l,_),e)}(r,i,e,o);break;default:c=function(e,t,n,r){return St(D.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),N(n,r.slice(n))}function N(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(D.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(D.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(ua(qe())){const e=Je();let t=Ft();for(;ft(25);)t=St(D.createQualifiedName(t,81===qe()?Tt(80,!1):Ft()),e);for(;81===qe();)Ye(),$e(),t=St(D.createJSDocMemberName(t,Dt()),e);return t}return}(),r=[];for(;20!==qe()&&4!==qe()&&1!==qe();)r.push(a.getTokenText()),$e();return St(("link"===t?D.createJSDocLink:"linkcode"===t?D.createJSDocLinkCode:D.createJSDocLinkPlain)(n,r.join("")),e,a.getTokenEnd())}function E(){if(k(),19===qe()&&60===$e()&&ua($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,_a._0_expected,Fa(r)))),e&&(x(),mt(64)&&Tr(),ct(24)),{name:n,isBracketed:e}}function j(e){switch(e.kind){case 151:return!0;case 188:return j(e.elementType);default:return kD(e)&&VN(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)));)341===o.kind||348===o.kind?a=re(a,o):345===o.kind&&Me(o.tagName,_a.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(a){const t=St(D.createJSDocTypeLiteral(a,188===e.type.kind),i);return St(D.createJSDocTypeExpression(t),i)}}}(i,a,n,r);_&&(i=_,o=!0);return St(1===n?D.createJSDocPropertyTag(t,a,s,i,o,l):D.createJSDocParameterTag(t,a,s,i,o,l),e)}function M(e,n,r,i){V(s,wP)&&Re(n.pos,a.getTokenStart(),_a._0_tag_already_specified,mc(n.escapedText));const o=t(!0),c=void 0!==r&&void 0!==i?w(e,Je(),r,i):void 0;return St(D.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=ho();a.setSkipJsDocLeadingAsterisks(!1);const i=St(D.createExpressionWithTypeArguments(n,r),t);return e&&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(D.createJSDocThisTag(n,o,w(e,Je(),r,i)),e)}function U(e){const t=a.getTokenStart();if(!ua(qe()))return;const n=ee();if(ft(25)){const r=U(!0);return St(D.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(345===n.kind){Me(n.tagName,_a.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&&342===e.kind)return e}}));return St(D.createJSDocSignature(void 0,n,r),e)}function H(e,t){for(;!VN(e)||!VN(t);){if(VN(e)||VN(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&&(341===r.kind||348===r.kind)&&n&&(VN(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=co(!1,!0),r=ee(_a.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let i;if(t&&(x(),ct(64),i=Se(16777216,Nn),ct(24)),!wd(r))return St(D.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(D.createJSDocTemplateTag(n,o,a,w(e,Je(),r,i)),e)}function Z(e){return qe()===e&&($e(),!0)}function ee(e){if(!ua(qe()))return Tt(80,!e,e||_a.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=Gx(h,o);return y&&(o.jsDocDiagnostics=Gx(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=Gx(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 FT(a,e),524288&N&&(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"})(qo=e.JSDocParser||(e.JSDocParser={}))})(vI||(vI={}));var KI=new WeakSet;var GI,XI=new WeakSet;function QI(e){XI.add(e)}function YI(e){return void 0!==ZI(e)}function ZI(e){const t=Ao(e,ES,!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 eO(e,t){const n=[];for(const e of _s(t,0)||s){aO(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 tO(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach(((n,r)=>{switch(r){case"reference":{const r=e.referencedFiles,i=e.typeReferenceDirectives,o=e.libReferenceDirectives;_(Qe(n),(n=>{const{types:a,lib:s,path:c,"resolution-mode":l,preserve:_}=n.arguments,u="true"===_||void 0;if("true"===n.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(a){const e=function(e,t,n,r){if(e)return"import"===e?99:"require"===e?1:void r(t,n-t,_a.resolution_mode_should_be_either_require_or_import)}(l,a.pos,a.end,t);i.push({pos:a.pos,end:a.end,fileName:a.value,...e?{resolutionMode:e}:{},...u?{preserve:u}:{}})}else s?o.push({pos:s.pos,end:s.end,fileName:s.value,...u?{preserve:u}:{}}):c?r.push({pos:c.pos,end:c.end,fileName:c.value,...u?{preserve:u}:{}}):t(n.range.pos,n.range.end-n.range.pos,_a.Invalid_reference_directive_syntax)}));break}case"amd-dependency":e.amdDependencies=D(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,_a.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)),JP(e,t),wT(e,e.pos+o,e.end+o),c&&n(e)&&_n.assert(r===s.substring(e.pos,e.end)),RI(e,l,_),Du(e))for(const t of e.jsDoc)l(t);i(e,c)}function _(e){wT(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)}wT(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(Du(e))for(const t of e.jsDoc)n(t);RI(e,n),_n.assert(t<=e.end)}}function o(e,t){let n,r=e;if(RI(e,(function e(i){if(wd(i))return;if(!(i.pos<=t))return _n.assert(i.pos>t),!0;if(i.pos>=r.pos&&(r=i),t<i.end)return RI(i,e),!0;_n.assert(i.end<=t),n=i})),n){const e=function(e){for(;;){const t=bx(e);if(!t)return e;e=t}}(n);e.pos>r.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(Fs(n.span),i.length),a=t.substring(Fs(Hs(n)),t.length);_n.assert(o===a)}}function s(e){let t=e.statements,n=0;_n.assert(n<t.length);let r=t[n],i=-1;return{currentNode:o=>(o!==i&&(r&&r.end===o&&n<t.length-1&&(n++,r=t[n]),r&&r.pos===o||function(i){return t=void 0,n=-1,r=void 0,void RI(e,o,a);function o(e){return i>=e.pos&&i<e.end&&(RI(e,o,a),!0)}function a(e){if(i>=e.pos&&i<e.end)for(let s=0;s<e.length;s++){const c=e[s];if(c){if(c.pos===i)return t=e,n=s,r=c,!0;if(c.pos<i&&i<c.end)return RI(c,o,a),!0}}return!1}}(o)),i=o,_n.assert(!r||r.pos===o),r)}}let c;var l;e.updateSourceFile=function(e,n,c,l){if(a(e,n,c,l=l||_n.shouldAssert(2)),Ks(c))return e;if(0===e.statements.length)return vI.parseSourceFile(e.fileName,n,e.languageVersion,void 0,!0,e.scriptKind,e.setExternalModuleIndicator,e.jsDocParsingMode);!function(e){KI.has(e)&&_n.fail("Source file has already been incrementally parsed"),KI.add(e)}(e),vI.fixupParentReferences(e);const _=e.text,u=s(e),d=function(e,t){const n=1;let r=t.span.start;for(let t=0;r>0&&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=$s(r,Fs(t.span)),a=t.newLength+(t.span.start-r);return Gs(i,a)}(e,c);a(e,n,d,l),_n.assert(d.span.start<=c.span.start),_n.assert(Fs(d.span)===Fs(c.span)),_n.assert(Fs(Hs(d))===Fs(Hs(c)));const p=Hs(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(QI(p),JP(p,e),r(p,n,o,a,s),RI(p,u,d),Du(p))for(const e of p.jsDoc)u(e);i(p,_)}else _n.assert(f<n)}function d(i){if(_n.assert(i.pos<=i.end),i.pos>o)return void t(i,e,!0,s,c,l,_);const d=i.end;if(d>=n){QI(i),r(i,n,o,a,s);for(const e of i)u(e)}else _n.assert(d<n)}}(e,d.span.start,Fs(d.span),Fs(Hs(d)),p,_,n,l);const f=vI.parseSourceFile(e.fileName,n,e.languageVersion,u,!0,e.scriptKind,e.setExternalModuleIndicator,e.jsDocParsingMode);return f.commentDirectives=function(e,t,n,r,i,o,a,s){if(!e)return t;let c,l=!1;for(const t of e){const{range:e,type:l}=t;if(e.end<n)c=re(c,t);else if(e.pos>r){_();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,Fs(d.span),p,_,n,l),f.impliedNodeFormat=e.impliedNodeFormat,zP(e,f),f},e.createSyntaxCursor=s,(l=c||(c={}))[l.Value=-1]="Value"})(GI||(GI={}));var nO=new Map;function rO(e){if(nO.has(e))return nO.get(e);const t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return nO.set(e,t),t}var iO=/^\/\/\/\s*<(\S+)\s.*?\/>/m,oO=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function aO(e,t,n){const r=2===t.kind&&iO.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=rO(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&&oO.exec(n);if(i)return sO(e,t,2,i);if(3===t.kind){const r=/@(\S+)(\s+(?:\S.*)?)?$/gm;let i;for(;i=r.exec(n);)sO(e,t,4,i)}}function sO(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<e.args.length;t++){const i=e.args[t];if(!n[t]&&!i.optional)return"fail";if(i.captureSpan)return _n.fail("Capture spans not yet implemented for non-xml pragmas");r[i.name]=n[t]}return r}(o,r[2]);"fail"!==a&&e.push({name:i,args:{arguments:a,range:t}})}function cO(e,t){return e.kind===t.kind&&(80===e.kind?e.escapedText===t.escapedText:110===e.kind||(295===e.kind?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&cO(e.expression,t.expression)))}var lO={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},_O=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),uO=new Map(F(_O.entries(),(([e,t])=>[""+t,e]))),dO=[["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"],["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"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2024.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.es2024.object.d.ts"],["esnext.array","lib.esnext.array.d.ts"],["esnext.regexp","lib.es2024.regexp.d.ts"],["esnext.string","lib.es2024.string.d.ts"],["esnext.iterator","lib.esnext.iterator.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],pO=dO.map((e=>e[0])),fO=new Map(dO),mO=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:_a.Watch_and_Build_Modes,description:_a.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:_a.Watch_and_Build_Modes,description:_a.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:_a.Watch_and_Build_Modes,description:_a.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:_a.Watch_and_Build_Modes,description:_a.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:Pj},allowConfigDirTemplateSubstitution:!0,category:_a.Watch_and_Build_Modes,description:_a.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Pj},allowConfigDirTemplateSubstitution:!0,category:_a.Watch_and_Build_Modes,description:_a.Remove_a_list_of_files_from_the_watch_mode_s_processing}],gO=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:_a.Command_line_Options,description:_a.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:_a.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:_a.Command_line_Options,description:_a.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:_a.Output_Formatting,description:_a.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Output_Formatting,description:_a.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:_a.Compiler_Diagnostics,description:_a.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:_a.FILE_OR_DIRECTORY,category:_a.Compiler_Diagnostics,description:_a.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,paramType:_a.DIRECTORY,category:_a.Compiler_Diagnostics,description:_a.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:_a.Projects,description:_a.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:_a.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Emit,transpileOptionValue:void 0,description:_a.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:_a.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Emit,defaultValueDescription:!1,description:_a.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Emit,description:_a.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Emit,defaultValueDescription:!1,description:_a.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:_a.Emit,description:_a.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"noCheck",type:"boolean",showInSimplifiedHelpView:!1,category:_a.Compiler_Diagnostics,description:_a.Disable_full_type_checking_only_critical_parse_and_emit_errors_will_be_reported,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Emit,description:_a.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_a.Watch_and_Build_Modes,description:_a.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:_a.Command_line_Options,isCommandLineOnly:!0,description:_a.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:_a.Platform_specific}],hO={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,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:_a.VERSION,showInSimplifiedHelpView:!0,category:_a.Language_and_Environment,description:_a.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},yO={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,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:_a.KIND,showInSimplifiedHelpView:!0,category:_a.Modules,description:_a.Specify_what_module_code_is_generated,defaultValueDescription:void 0},vO=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Command_line_Options,description:_a.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Command_line_Options,description:_a.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:_a.Command_line_Options,description:_a.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:_a.Command_line_Options,paramType:_a.FILE_OR_DIRECTORY,description:_a.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:_a.Command_line_Options,isCommandLineOnly:!0,description:_a.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:_a.Command_line_Options,isCommandLineOnly:!0,description:_a.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},hO,yO,{name:"lib",type:"list",element:{name:"lib",type:fO,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:_a.Language_and_Environment,description:_a.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:_a.JavaScript_Support,description:_a.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.JavaScript_Support,description:_a.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:_O,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:_a.KIND,showInSimplifiedHelpView:!0,category:_a.Language_and_Environment,description:_a.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_a.FILE,showInSimplifiedHelpView:!0,category:_a.Emit,description:_a.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:_a.DIRECTORY,showInSimplifiedHelpView:!0,category:_a.Emit,description:_a.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_a.LOCATION,category:_a.Modules,description:_a.Specify_the_root_folder_within_your_source_files,defaultValueDescription:_a.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:_a.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:_a.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:_a.FILE,category:_a.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:_a.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Emit,defaultValueDescription:!1,description:_a.Disable_emitting_comments},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,affectsSourceFile:!0,category:_a.Emit,description:_a.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:_a.Backwards_Compatibility,description:_a.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:_a.Interop_Constraints,description:_a.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:_a.Interop_Constraints,description:_a.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:_a.Interop_Constraints,description:_a.Require_sufficient_annotation_on_exports_so_other_tools_can_trivially_generate_declaration_files,defaultValueDescription:!1,affectsBuildInfo:!0,affectsSemanticDiagnostics:!0},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Type_Checking,description:_a.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:_a.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:_a.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:_a.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:_a.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:_a.false_unless_strict_is_set},{name:"strictBuiltinIteratorReturn",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Built_in_iterators_are_instantiated_with_a_TReturn_type_of_undefined_instead_of_any,defaultValueDescription:_a.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:_a.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:_a.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:_a.Type_Checking,description:_a.Ensure_use_strict_is_always_emitted,defaultValueDescription:_a.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.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:_a.Type_Checking,description:_a.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.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:_a.Type_Checking,description:_a.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"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:_a.STRATEGY,category:_a.Modules,description:_a.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:_a.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:_a.Modules,description:_a.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,isTSConfigOnly:!0,category:_a.Modules,description:_a.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:_a.Modules,description:_a.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:_a.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,allowConfigDirTemplateSubstitution:!0,category:_a.Modules,description:_a.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:_a.Modules,description:_a.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:_a.Interop_Constraints,description:_a.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:_a.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:_a.Interop_Constraints,description:_a.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:_a.Interop_Constraints,description:_a.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:_a.Modules,description:_a.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:_a.Modules,description:_a.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Modules,description:_a.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:_a.Modules,description:_a.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:_a.Modules,description:_a.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:_a.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:_a.Modules,description:_a.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:_a.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:_a.Modules,description:_a.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"noUncheckedSideEffectImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Modules,description:_a.Check_side_effect_imports,defaultValueDescription:!1},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:_a.LOCATION,category:_a.Emit,description:_a.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:_a.LOCATION,category:_a.Emit,description:_a.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Language_and_Environment,description:_a.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_a.Language_and_Environment,description:_a.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:_a.Language_and_Environment,description:_a.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:_a.Language_and_Environment,description:_a.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:_a.Language_and_Environment,description:_a.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:_a.Modules,description:_a.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:_a.Modules,description:_a.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:_a.Backwards_Compatibility,paramType:_a.FILE,transpileOptionValue:void 0,description:_a.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Language_and_Environment,description:_a.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:_a.Completeness,description:_a.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:_a.Backwards_Compatibility,description:_a.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:_a.Emit,description:_a.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:_a.NEWLINE,category:_a.Emit,description:_a.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Output_Formatting,description:_a.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:_a.Language_and_Environment,affectsProgramStructure:!0,description:_a.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:_a.Modules,description:_a.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:_a.Emit,description:_a.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:_a.Editor_Support,description:_a.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:_a.Projects,description:_a.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:_a.Projects,description:_a.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:_a.Projects,description:_a.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,transpileOptionValue:void 0,description:_a.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Emit,description:_a.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:_a.DIRECTORY,category:_a.Emit,transpileOptionValue:void 0,description:_a.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:_a.Completeness,description:_a.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Type_Checking,description:_a.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:_a.Interop_Constraints,description:_a.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:_a.JavaScript_Support,description:_a.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:_a.Backwards_Compatibility,description:_a.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:_a.Language_and_Environment,description:_a.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:_a.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:_a.Backwards_Compatibility,description:_a.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:_a.Backwards_Compatibility,description:_a.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:_a.Specify_a_list_of_language_service_plugins_to_include,category:_a.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:_a.Control_what_method_is_used_to_detect_module_format_JS_files,category:_a.Language_and_Environment,defaultValueDescription:_a.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}],bO=[...gO,...vO],xO=bO.filter((e=>!!e.affectsSemanticDiagnostics)),kO=bO.filter((e=>!!e.affectsEmit)),SO=bO.filter((e=>!!e.affectsDeclarationPath)),TO=bO.filter((e=>!!e.affectsModuleResolution)),CO=bO.filter((e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics)),wO=bO.filter((e=>!!e.affectsProgramStructure)),NO=bO.filter((e=>Ne(e,"transpileOptionValue"))),DO=bO.filter((e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath)),FO=mO.filter((e=>e.allowConfigDirTemplateSubstitution||!e.isCommandLineOnly&&e.isFilePath)),EO=bO.filter((function(e){return!Ye(e.type)}));var PO,AO={name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:_a.Command_line_Options,description:_a.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},IO=[AO,{name:"verbose",shortName:"v",category:_a.Command_line_Options,description:_a.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:_a.Command_line_Options,description:_a.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:_a.Command_line_Options,description:_a.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:_a.Command_line_Options,description:_a.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1},{name:"stopBuildOnErrors",category:_a.Command_line_Options,description:_a.Skip_building_downstream_projects_on_error_in_upstream_project,type:"boolean",defaultValueDescription:!1}],OO=[...gO,...IO],LO=[{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 jO(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 RO(){return PO||(PO=jO(bO))}var MO={diagnostic:_a.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:ZO},BO={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0};function JO(e){return zO(e,Yx)}function zO(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(_a.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,r)}function qO(e,t,n){return bj(e,(t??"").trim(),n)}function UO(e,t="",n){if(Kt(t=t.trim(),"-"))return;if("listOrElement"===e.type&&!t.includes(","))return vj(e,t,n);if(""===t)return[];const r=t.split(",");switch(e.element.type){case"number":return R(r,(t=>vj(e.element,parseInt(t),n)));case"string":return R(r,(t=>vj(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=>qO(e.element,t,n)))}}function VO(e){return e.name}function WO(e,t,n,r,i){var o;const a=null==(o=t.alternateMode)?void 0:o.getOptionsNameMap().optionsNameMap.get(e.toLowerCase());if(a)return hj(i,r,a!==AO?t.alternateMode.diagnostic:_a.Option_build_must_be_the_first_command_line_argument,e);const s=Ot(e,t.optionDeclarations,VO);return s?hj(i,r,t.unknownDidYouMeanDiagnostic,n||e,s.name):hj(i,r,t.unknownOptionDiagnostic,n||e)}function $O(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(;n<t.length;){const s=t[n];if(n++,64===s.charCodeAt(0))c(s.slice(1));else if(45===s.charCodeAt(0)){const o=s.slice(45===s.charCodeAt(1)?2:1),c=YO(e.getOptionsNameMap,o,!0);if(c)n=HO(t,n,e,c,r,a);else{const r=YO(mL.getOptionsNameMap,o,!0);r?n=HO(t,n,mL,r,i||(i={}),a):a.push(WO(o,e,s))}}else o.push(s)}}function c(e){const t=sL(e,n||(e=>co.readFile(e)));if(!Ye(t))return void a.push(t);const r=[];let i=0;for(;;){for(;i<t.length&&t.charCodeAt(i)<=32;)i++;if(i>=t.length)break;const n=i;if(34===t.charCodeAt(n)){for(i++;i<t.length&&34!==t.charCodeAt(i);)i++;i<t.length?(r.push(t.substring(n+1,i)),i++):a.push(Yx(_a.Unterminated_quoted_string_in_response_file_0,e))}else{for(;t.charCodeAt(i)>32;)i++;r.push(t.substring(n,i))}}s(r)}}function HO(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]=vj(r,!1,o),t++):("true"===n&&t++,o.push(Yx(_a.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,r.name))):(o.push(Yx(_a.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(Yx(n.optionTypeMismatchDiagnostic,r.name,NL(r))),"null"!==e[t])switch(r.type){case"number":i[r.name]=vj(r,parseInt(e[t]),o),t++;break;case"boolean":const n=e[t];i[r.name]=vj(r,"false"!==n,o),"false"!==n&&"true"!==n||t++;break;case"string":i[r.name]=vj(r,e[t]||"",o),t++;break;case"list":const a=UO(r,e[t],o);i[r.name]=a||[],a&&t++;break;case"listOrElement":_n.fail("listOrElement not supported here");break;default:i[r.name]=qO(r,e[t],o),t++}else i[r.name]=void 0,t++;return t}var KO,GO={alternateMode:MO,getOptionsNameMap:RO,optionDeclarations:bO,unknownOptionDiagnostic:_a.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:_a.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_a.Compiler_option_0_expects_an_argument};function XO(e,t){return $O(GO,e,t)}function QO(e,t){return YO(RO,e,t)}function YO(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 ZO(){return KO||(KO=jO(OO))}var eL={alternateMode:{diagnostic:_a.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:RO},getOptionsNameMap:ZO,optionDeclarations:OO,unknownOptionDiagnostic:_a.Unknown_build_option_0,unknownDidYouMeanDiagnostic:_a.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_a.Build_option_0_requires_a_value_of_type_1};function tL(e){const{options:t,watchOptions:n,fileNames:r,errors:i}=$O(eL,e),o=t;return 0===r.length&&r.push("."),o.clean&&o.force&&i.push(Yx(_a.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&i.push(Yx(_a.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&i.push(Yx(_a.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&i.push(Yx(_a.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:r,errors:i}}function nL(e,...t){return tt(Yx(e,...t).messageText,Ye)}function rL(e,t,n,r,i,o){const a=sL(e,(e=>n.readFile(e)));if(!Ye(a))return void n.onUnRecoverableConfigFileDiagnostic(a);const s=UI(e,a),c=n.getCurrentDirectory();return s.path=Uo(e,c,Vt(n.useCaseSensitiveFileNames)),s.resolvedPath=s.path,s.originalFileName=s.fileName,UL(s,n,Jo(Fo(e),c),t,Jo(e,c),void 0,o,r,i)}function iL(e,t){const n=sL(e,t);return Ye(n)?oL(e,n):{config:{},error:n}}function oL(e,t){const n=UI(e,t);return{config:TL(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function aL(e,t){const n=sL(e,t);return Ye(n)?UI(e,n):{fileName:e,parseDiagnostics:[n]}}function sL(e,t){let n;try{n=t(e)}catch(t){return Yx(_a.Cannot_read_file_0_Colon_1,e,t.message)}return void 0===n?Yx(_a.Cannot_read_file_0,e):n}function cL(e){return je(e,VO)}var lL,_L={optionDeclarations:LO,unknownOptionDiagnostic:_a.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:_a.Unknown_type_acquisition_option_0_Did_you_mean_1};function uL(){return lL||(lL=jO(mO))}var dL,pL,fL,mL={getOptionsNameMap:uL,optionDeclarations:mO,unknownOptionDiagnostic:_a.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:_a.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:_a.Watch_option_0_requires_a_value_of_type_1};function gL(){return dL||(dL=cL(bO))}function hL(){return pL||(pL=cL(mO))}function yL(){return fL||(fL=cL(LO))}var vL,bL={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:_a.File_Management,disallowNullOrUndefined:!0},xL={name:"compilerOptions",type:"object",elementOptions:gL(),extraKeyDiagnostics:GO},kL={name:"watchOptions",type:"object",elementOptions:hL(),extraKeyDiagnostics:mL},SL={name:"typeAcquisition",type:"object",elementOptions:yL(),extraKeyDiagnostics:_L};function TL(e,t,n){var r;const i=null==(r=e.statements[0])?void 0:r.expression;if(i&&210!==i.kind){if(t.push(Bp(e,i,_a.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===Eo(e.fileName)?"jsconfig.json":"tsconfig.json")),KD(i)){const r=y(i.elements,GD);if(r)return wL(e,r,t,!0,n)}return{}}return wL(e,i,t,!0,n)}function CL(e,t){var n;return wL(e,null==(n=e.statements[0])?void 0:n.expression,t,!0,void 0)}function wL(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(Bp(e,t,_a.String_literal_with_double_quotes_expected)),t.text;case 9:return Number(t.text);case 224:if(41!==t.operator||9!==t.operand.kind)break;return-Number(t.operand.text);case 210:return function(t,s){var c;const l=r?{}:void 0;for(const _ of t.properties){if(303!==_.kind){n.push(Bp(e,_,_a.Property_assignment_expected));continue}_.questionToken&&n.push(Bp(e,_.questionToken,_a.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),a(_.name)||n.push(Bp(e,_.name,_a.String_literal_with_double_quotes_expected));const t=Ip(_.name)?void 0:Lp(_.name),u=t&&mc(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 209: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(Bp(e,t,_a.Compiler_option_0_requires_a_value_of_type_1,s.name,NL(s))):n.push(Bp(e,t,_a.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function a(t){return NN(t)&&qm(t,e)}}function NL(e){return"listOrElement"===e.type?`${NL(e.element)} or Array`:"list"===e.type?"Array":Ye(e.type)?e.type:"string"}function DL(e,t){if(e){if(WL(t))return!e.disallowNullOrUndefined;if("list"===e.type)return Xe(t);if("listOrElement"===e.type)return Xe(t)||DL(e.element,t);return typeof t===(Ye(e.type)?e.type:"string")}return!1}function FL(e,t,n){var r,i,o;const a=Vt(n.useCaseSensitiveFileNames),s=D(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=gS(e,n,t,r.useCaseSensitiveFileNames,r.getCurrentDirectory()),o=i.excludePattern&&hS(i.excludePattern,r.useCaseSensitiveFileNames),a=i.includeFilePattern&&hS(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=>oa(Jo(t,n.getCurrentDirectory()),Jo(e,n.getCurrentDirectory()),a))),c={configFilePath:Jo(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames},_=LL(e.options,c),u=e.watchOptions&&jL(e.watchOptions,uL());const d={compilerOptions:{...PL(_),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&&PL(u),references:D(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:AL(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 hk)if(!p.has(t)&&EL(t,p)){hk[t].computeValue(e.options)!==hk[t].computeValue({})&&(f[t]=hk[t].computeValue(e.options))}return Oe(d.compilerOptions,PL(LL(f,c))),d}function EL(e,t){const n=new Set;return function e(r){var i;if(xx(n,r))return V(null==(i=hk[r])?void 0:i.dependencies,(n=>t.has(n)||e(n)));return!1}(e)}function PL(e){return Object.fromEntries(e)}function AL(e){if(l(e)){if(1!==l(e))return e;if(e[0]!==HL)return e}}function IL(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return IL(e.element);default:return e.type}}function OL(e,t){return nd(t,((t,n)=>{if(t===e)return n}))}function LL(e,t){return jL(e,RO(),t)}function jL(e,{optionsNameMap:t},n){const r=new Map,i=n&&Vt(n.useCaseSensitiveFileNames);for(const o in e)if(Ne(e,o)){if(t.has(o)&&(t.get(o).category===_a.Command_line_Options||t.get(o).category===_a.Output_Formatting))continue;const a=e[o],s=t.get(o.toLowerCase());if(s){_n.assert("listOrElement"!==s.type);const e=IL(s);e?"list"===s.type?r.set(o,a.map((t=>OL(t,e)))):r.set(o,OL(a,e)):n&&s.isFilePath?r.set(o,oa(n.configFilePath,Jo(a,Fo(n.configFilePath)),i)):n&&"list"===s.type&&s.element.isFilePath?r.set(o,a.map((e=>oa(n.configFilePath,Jo(e,Fo(n.configFilePath)),i)))):r.set(o,a)}}return r}function RL(e,t){const n=ML(e);return function(){const e=[],r=(i=2,Array(i+1).join(" "));var i;return vO.forEach((t=>{if(!n.has(t.name))return;const i=n.get(t.name),o=Bj(t);i!==o?e.push(`${r}${t.name}: ${i}`):Ne(BO,t.name)&&e.push(`${r}${t.name}: ${o}`)})),e.join(t)+t}()}function ML(e){return LL(qe(e,BO))}function BL(e,t,n){const r=ML(e);return function(){const e=new Map;e.set(_a.Projects,[]),e.set(_a.Language_and_Environment,[]),e.set(_a.Modules,[]),e.set(_a.JavaScript_Support,[]),e.set(_a.Emit,[]),e.set(_a.Interop_Constraints,[]),e.set(_a.Type_Checking,[]),e.set(_a.Completeness,[]);for(const t of bO)if(o(t)){let n=e.get(t.category);n||e.set(t.category,n=[]),n.push(t)}let a=0,s=0;const c=[];e.forEach(((e,t)=>{0!==c.length&&c.push({value:""}),c.push({value:`/* ${Wx(t)} */`});for(const t of e){let e;e=r.has(t.name)?`"${t.name}": ${JSON.stringify(r.get(t.name))}${(s+=1)===r.size?"":","}`:`// "${t.name}": ${JSON.stringify(Bj(t))},`,c.push({value:e,description:`/* ${t.description&&Wx(t.description)||t.name} */`}),a=Math.max(e.length,a)}}));const l=i(2),_=[];_.push("{"),_.push(`${l}"compilerOptions": {`),_.push(`${l}${l}/* ${Wx(_a.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),_.push("");for(const e of c){const{value:t,description:n=""}=e;_.push(t&&`${l}${l}${t}${n&&i(a-t.length+2)+n}`)}if(t.length){_.push(`${l}},`),_.push(`${l}"files": [`);for(let e=0;e<t.length;e++)_.push(`${l}${l}${JSON.stringify(t[e])}${e===t.length-1?"":","}`);_.push(`${l}]`)}else _.push(`${l}}`);return _.push("}"),_.join(n)+n}();function i(e){return Array(e+1).join(" ")}function o({category:e,name:t,isCommandLineOnly:n}){const i=[_a.Command_line_Options,_a.Editor_Support,_a.Compiler_Diagnostics,_a.Backwards_Compatibility,_a.Watch_and_Build_Modes,_a.Output_Formatting];return!n&&void 0!==e&&(!i.includes(e)||r.has(t))}}function JL(e,t){const n={},r=RO().optionsNameMap;for(const i in e)Ne(e,i)&&(n[i]=zL(r.get(i.toLowerCase()),e[i],t));return n.configFilePath&&(n.configFilePath=t(n.configFilePath)),n}function zL(e,t,n){if(e&&!WL(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 qL(e,t,n,r,i,o,a,s,c){return KL(e,void 0,t,n,r,c,i,o,a,s)}function UL(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=KL(void 0,e,t,n,r,c,i,o,a,s);return null==(_=$n)||_.pop(),u}function VL(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function WL(e){return null==e}function $L(e,t){return Fo(Jo(e,t))}var HL="**/*";function KL(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=sj(e,t,n,r,a,s,_,l),{raw:d}=u,p=XL(qe(i,u.options||{}),DO,r),f=GL(o&&u.watchOptions?qe(o,u.watchOptions):u.watchOptions||o,r);p.configFilePath=a&&Lo(a);const m=zo(a?$L(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=Ne(d,"extends");if(0===n.length&&r&&!i)if(t){const e=a||"tsconfig.json",n=_a.The_files_list_in_config_file_0_is_empty,r=Hf(t,"files",(e=>e.initializer)),i=hj(t,r,n,e);_.push(i)}else x(_a.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=[HL],u=!0);r&&(o=Ej(r,_,!0,t,"include"),c=ej(o,m)||o);f&&(s=Ej(f,_,!1,t,"exclude"),l=ej(s,m)||s);const g=C(n,Ye),h=ej(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),VL(p,t),{options:p,watchOptions:f,fileNames:function(e){const t=Cj(g,e,p,n,c);rj(t,oj(d),s)&&_.push(nj(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(_a.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||fj(),raw:d,errors:_,wildcardDirectories:Aj(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(Ne(d,e)&&!WL(d[e])){if(Xe(d[e])){const i=d[e];return t||h(i,n)||_.push(Yx(_a.Compiler_option_0_requires_a_value_of_type_1,e,r)),i}return x(_a.Compiler_option_0_requires_a_value_of_type_1,e,"Array"),"not-array"}return"no-prop"}function x(e,...n){t||_.push(Yx(e,...n))}}function GL(e,t){return XL(e,FO,t)}function XL(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),YL(t)&&i(r,ZL(t,n));break;case"list":_n.assert(r.element.isFilePath);const e=ej(t,n);e&&i(r,e);break;case"object":_n.assert("paths"===r.name);const o=tj(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 QL="${configDir}";function YL(e){return Ye(e)&&Kt(e,QL,!0)}function ZL(e,t){return Jo(e.replace(QL,"./"),t)}function ej(e,t){if(!e)return e;let n;return e.forEach(((r,i)=>{YL(r)&&((n??(n=e.slice()))[i]=ZL(r,t))})),n}function tj(e,t){let n;return Fe(e).forEach((r=>{if(!Xe(e[r]))return;const i=ej(e[r],t);i&&((n??(n=Oe({},e)))[r]=i)})),n}function nj({includeSpecs:e,excludeSpecs:t},n){return Yx(_a.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 rj(e,t,n){return 0===e.length&&t&&(!n||0===n.length)}function ij(e){return!e.fileNames.length&&Ne(e.raw,"references")}function oj(e){return!Ne(e,"files")&&!Ne(e,"references")}function aj(e,t,n,r,i){const o=r.length;return rj(e,i)?r.push(nj(n,t)):w(r,(e=>!function(e){return e.code===_a.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}(e))),o!==r.length}function sj(e,t,n,r,i,o,a,s){var c;const l=Jo(i||"",r=Lo(r));if(o.includes(l))return a.push(Yx(_a.Circularity_detected_while_resolving_configuration_Colon_0,[...o,l].join(" -> "))),{raw:e||CL(t,a)};const _=e?function(e,t,n,r,i){Ne(e,"excludes")&&i.push(Yx(_a.Unknown_option_excludes_Did_you_mean_exclude));const o=pj(e.compilerOptions,n,i,r),a=mj(e.typeAcquisition,n,i,r),s=function(e,t,n){return gj(hL(),e,t,void 0,mL,n)}(e.watchOptions,n,i);e.compileOnSave=function(e,t,n){if(!Ne(e,lO.name))return!1;const r=yj(lO,e.compileOnSave,t,n);return"boolean"==typeof r&&r}(e,n,i);const c=e.extends||""===e.extends?cj(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=dj(r);let a,s,c,l;const _=(void 0===vL&&(vL={name:void 0,type:"object",elementOptions:cL([xL,kL,SL,bL,{name:"references",type:"list",element:{name:"references",type:"object"},category:_a.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:_a.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:_a.File_Management,defaultValueDescription:_a.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:_a.File_Management,defaultValueDescription:_a.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},lO])}),vL),u=TL(e,i,{rootOptions:_,onPropertySet:d});a||(a=fj(r));l&&u&&void 0===u.compilerOptions&&i.push(Bp(e,l[0],_a._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,Lp(l[0])));return{raw:u,options:o,watchOptions:s,typeAcquisition:a,extendedConfigPath:c};function d(u,d,p,f,m){if(m&&m!==bL&&(d=yj(m,d,n,i,p,p.initializer,e)),null==f?void 0:f.name)if(m){let e;f===xL?e=o:f===kL?e=s??(s={}):f===SL?e=a??(a=fj(r)):_n.fail("Unknown option"),e[m.name]=d}else u&&(null==f?void 0:f.extraKeyDiagnostics)&&(f.elementOptions?i.push(WO(u,f.extraKeyDiagnostics,void 0,p.name,e)):i.push(Bp(e,p.name,f.extraKeyDiagnostics.unknownOptionDiagnostic,u)));else f===_&&(m===bL?c=cj(d,t,n,r,i,p,p.initializer,e):m||("excludes"===u&&i.push(Bp(e,p.name,_a.Unknown_option_excludes_Did_you_mean_exclude)),y(vO,(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=aL(t,(e=>n.readFile(e))),l.parseDiagnostics.length||(_=sj(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]=D(t[a],(e=>YL(e)||ho(e)?e:Ro(o||(o=ia(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 cj(e,t,n,r,i,o,a,s){let c;const l=r?$L(r,n):n;if(Ye(e))c=lj(e,t,l,i,a,s);else if(Xe(e)){c=[];for(let r=0;r<e.length;r++){const _=e[r];Ye(_)?c=re(c,lj(_,t,l,i,null==a?void 0:a.elements[r],s)):yj(bL.element,e,n,i,o,null==a?void 0:a.elements[r],s)}}else yj(bL,e,n,i,o,a,s);return c}function lj(e,t,n,r,i,o){if(ho(e=Lo(e))||Kt(e,"./")||Kt(e,"../")){let a=Jo(e,n);return t.fileExists(a)||jt(a,".json")||(a=`${a}.json`,t.fileExists(a))?a:void r.push(hj(o,i,_a.File_0_not_found,e))}const a=jR(e,Ro(n,"tsconfig.json"),t);if(a.resolvedModule)return a.resolvedModule.resolvedFileName;""===e?r.push(hj(o,i,_a.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):r.push(hj(o,i,_a.File_0_not_found,e))}function _j(e,t,n){const r=[];return{options:pj(e,t,r,n),errors:r}}function uj(e,t,n){const r=[];return{options:mj(e,t,r,n),errors:r}}function dj(e){return e&&"jsconfig.json"===Eo(e)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function pj(e,t,n,r){const i=dj(r);return gj(gL(),e,t,i,GO,n),r&&(i.configFilePath=Lo(r)),i}function fj(e){return{enable:!!e&&"jsconfig.json"===Eo(e),include:[],exclude:[]}}function mj(e,t,n,r){const i=fj(r);return gj(yL(),e,t,i,_L,n),i}function gj(e,t,n,r,i,o){if(t){for(const a in t){const s=e.get(a);s?(r||(r={}))[s.name]=yj(s,t[a],n,o):o.push(WO(a,i))}return r}}function hj(e,t,n,...r){return e&&t?Bp(e,t,n,...r):Yx(n,...r)}function yj(e,t,n,r,i,o,a){if(e.isCommandLineOnly)r.push(hj(a,null==i?void 0:i.name,_a.Option_0_can_only_be_specified_on_command_line,e.name));else{if(DL(e,t)){const s=e.type;if("list"===s&&Xe(t))return xj(e,t,n,r,i,o,a);if("listOrElement"===s)return Xe(t)?xj(e,t,n,r,i,o,a):yj(e.element,t,n,r,i,o,a);if(!Ye(e.type))return bj(e,t,r,o,a);const c=vj(e,t,r,o,a);return WL(c)?c:function(e,t,n){e.isFilePath&&""===(n=YL(n=Lo(n))?n:Jo(n,t))&&(n=".");return n}(e,n,c)}r.push(hj(a,o,_a.Compiler_option_0_requires_a_value_of_type_1,e.name,NL(e)))}}function vj(e,t,n,r,i){var o;if(WL(t))return;const a=null==(o=e.extraValidation)?void 0:o.call(e,t);if(!a)return t;n.push(hj(i,r,...a))}function bj(e,t,n,r,i){if(WL(t))return;const o=t.toLowerCase(),a=e.type.get(o);if(void 0!==a)return vj(e,a,n,r,i);n.push(zO(e,((e,...t)=>hj(i,r,e,...t))))}function xj(e,t,n,r,i,o,a){return C(D(t,((t,s)=>yj(e.element,t,n,r,i,null==o?void 0:o.elements[s],a))),(t=>!!e.listPreserveFalsyValues||!!t))}var kj,Sj=/(?:^|\/)\*\*\/?$/,Tj=/^[^*?]*(?=\/[^/]*[*?])/;function Cj(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=IS(n,i),f=OS(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=D(uS(u.filter((e=>jt(e,".json"))),t,"files"),(e=>`^${e}$`));m=e?e.map((e=>hS(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(Lj(e,a,c,p,o))continue;jj(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 wj(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 Fj(e,s,r,i,n)}function Nj(e){const t=Kt(e,"**/")?0:e.indexOf("/**/");if(-1===t)return!1;return(jt(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function Dj(e,t,n,r){return Fj(e,C(t,(e=>!Nj(e))),n,r)}function Fj(e,t,n,r,i){const o=_S(t,Ro(zo(r),i),"exclude"),a=o&&hS(o,n);return!!a&&(!!a.test(e)||!ko(e)&&a.test(Wo(e)))}function Ej(e,t,n,r,i){return e.filter((e=>{if(!Ye(e))return!1;const o=Pj(e,n);return void 0!==o&&t.push(function(e,t){const n=$f(r,i,t);return hj(r,n,e,t)}(...o)),void 0===o}))}function Pj(e,t){return _n.assert("string"==typeof e),t&&Sj.test(e)?[_a.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:Nj(e)?[_a.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]:void 0}function Aj({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,r){const i=_S(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=Oj(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||o<r)&&(a[void 0!==i?i:n]=r,void 0===i&&s.set(e,n),1===r&&t.push(e))}}for(const e in a)if(Ne(a,e))for(const i of t){const t=Ij(e,r);t!==i&&ea(i,t,n,!r)&&delete a[e]}}return a}function Ij(e,t){return t?e:lt(e)}function Oj(e,t){const n=Tj.exec(e);if(n){const r=e.indexOf("?"),i=e.indexOf("*"),o=e.lastIndexOf(_o);return{key:Ij(n[0],t),path:n[0],flags:-1!==r&&r<o||-1!==i&&i<o?1:0}}if(dS(e.substring(e.lastIndexOf(_o)+1))){const n=Vo(e);return{key:Ij(n,t),path:n,flags:1}}}function Lj(e,t,n,r,i){const o=_(r,(t=>To(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(HS(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 jj(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(HS(e,o));t.delete(a)}}function Rj(e){const t={};for(const n in e)if(Ne(e,n)){const r=QO(n);void 0!==r&&(t[n]=Mj(e[n],r))}return t}function Mj(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 Mj(e,t.element);case"list":const n=t.element;return Xe(e)?R(e,(e=>Mj(e,n))):"";default:return nd(t.type,((t,n)=>{if(t===e)return n}))}}function Bj(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":const t=e.defaultValueDescription;return e.isFilePath?`./${t&&"string"==typeof t?t:""}`:"";case"list":return[];case"listOrElement":return Bj(e.element);case"object":return{};default:const n=fe(e.type.keys());return void 0!==n?n:_n.fail("Expected 'option.type' to have entries.")}}function Jj(e,t,...n){e.trace(Qx(t,...n))}function zj(e,t){return!!e.traceResolution&&void 0!==t.trace}function qj(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:iM(e,n)})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function Uj(e){return qj(void 0,e,void 0)}function Vj(e){if(e)return _n.assert(void 0===e.packageId),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function Wj(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 $j(e){if(e)return _n.assert(YS(e.extension)),{fileName:e.path,packageId:e.packageId}}function Hj(e,t,n,r,i,o,a,s,c){if(!a.resultFromCache&&!a.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Cs(e)){const{resolvedFileName:e,originalPath:n}=oR(t.path,a.host,a.traceEnabled);n&&(t={...t,path:e,originalPath:n})}return Kj(t,n,r,i,o,a.resultFromCache,s,c)}function Kj(e,t,n,r,i,o,a,s){return o?(null==a?void 0:a.isReadonly)?{...o,failedLookupLocations:Qj(o.failedLookupLocations,n),affectingLocations:Qj(o.affectingLocations,r),resolutionDiagnostics:Qj(o.resolutionDiagnostics,i)}:(o.failedLookupLocations=Xj(o.failedLookupLocations,n),o.affectingLocations=Xj(o.affectingLocations,r),o.resolutionDiagnostics=Xj(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:Gj(n),affectingLocations:Gj(r),resolutionDiagnostics:Gj(i),alternateResult:s}}function Gj(e){return e.length?e:void 0}function Xj(e,t){return(null==t?void 0:t.length)?(null==e?void 0:e.length)?(e.push(...t),e):t:e}function Qj(e,t){return(null==e?void 0:e.length)?t.length?[...e,...t]:e.slice():Gj(t)}function Yj(e,t,n,r){if(!Ne(e,t))return void(r.traceEnabled&&Jj(r.host,_a.package_json_does_not_have_a_0_field,t));const i=e[t];if(typeof i===n&&null!==i)return i;r.traceEnabled&&Jj(r.host,_a.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,null===i?"null":typeof i)}function Zj(e,t,n,r){const i=Yj(e,t,"string",r);if(void 0===i)return;if(!i)return void(r.traceEnabled&&Jj(r.host,_a.package_json_had_a_falsy_0_field,t));const o=zo(Ro(n,i));return r.traceEnabled&&Jj(r.host,_a.package_json_has_0_field_1_that_references_2,t,i,o),o}function eR(e,t){const n=function(e,t){const n=Yj(e,"typesVersions","object",t);if(void 0!==n)return t.traceEnabled&&Jj(t.host,_a.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)Ne(n,e)&&!xn.tryParse(e)&&Jj(t.host,_a.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,e);const r=tR(n);if(!r)return void(t.traceEnabled&&Jj(t.host,_a.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&&Jj(t.host,_a.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof a)}function tR(e){kj||(kj=new vn(o));for(const t in e){if(!Ne(e,t))continue;const n=xn.tryParse(t);if(void 0!==n&&n.test(kj))return{version:t,paths:e[t]}}}function nR(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 sa(zo(e),(e=>{const n=Ro(e,rR);(t??(t=[])).push(n)})),t}(n):void 0}var rR=Ro("node_modules","@types");function iR(e,t,n){return 0===Zo(e,t,!("function"==typeof n.useCaseSensitiveFileNames?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames))}function oR(e,t,n){const r=BR(e,t,n),i=iR(e,r,t);return{resolvedFileName:i?e:r,originalPath:i?void 0:e}}function aR(e,t,n){return Ro(e,jt(e,"/node_modules/@types")||jt(e,"/node_modules/@types/")?kM(t,n):t)}function sR(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=zj(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||Cs(e)||(l=null==o?void 0:o.getFromNonRelativeNameCache(e,a,c,i)),l)return s&&(Jj(r,_a.Resolving_type_reference_directive_0_containing_file_1,e,t),i&&Jj(r,_a.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName),Jj(r,_a.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,c),k(l)),l;const _=nR(n,r);s&&(void 0===t?void 0===_?Jj(r,_a.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):Jj(r,_a.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,_):void 0===_?Jj(r,_a.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):Jj(r,_a.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,_),i&&Jj(r,_a.Using_compiler_options_of_project_reference_redirect_0,i.sourceFile.fileName));const u=[],p=[];let f=cR(n);void 0!==a&&(f|=30);const m=xk(n);99===a&&3<=m&&m<=99&&(f|=32);const g=8&f?lR(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&&Jj(r,_a.Resolving_with_primary_search_path_0,_.join(", ")),d(_,(t=>{const i=aR(t,e,y),o=Fb(t,r);if(!o&&s&&Jj(r,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n.typeRoots){const e=$R(4,i,!o,y);if(e){const t=UR(e.path);return $j(qj(t?oM(t,!1,y):void 0,e,y))}}return $j(YR(4,i,!o,y))}));s&&Jj(r,_a.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,hV))s&&Jj(r,_a.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);else if(s&&Jj(r,_a.Looking_up_in_node_modules_folder_initial_location_0,i),Cs(e)){const{path:t}=MR(i,e);o=JR(4,t,!1,y,!0)}else{const t=mM(4,e,i,y,void 0,void 0);o=t&&t.value}return $j(o)}s&&Jj(r,_a.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}=oR(e,r,s)),v={primary:x,resolvedFileName:o,originalPath:i,packageId:t,isExternalLibraryImport:qR(e)}}return l={resolvedTypeReferenceDirective:v,failedLookupLocations:Gj(u),affectingLocations:Gj(p),resolutionDiagnostics:Gj(h)},c&&o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(c,i).set(e,a,l),Cs(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?Jj(r,_a.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,t.resolvedTypeReferenceDirective.resolvedFileName,fd(t.resolvedTypeReferenceDirective.packageId),t.resolvedTypeReferenceDirective.primary):Jj(r,_a.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,t.resolvedTypeReferenceDirective.resolvedFileName,t.resolvedTypeReferenceDirective.primary):Jj(r,_a.Type_reference_directive_0_was_not_resolved,e)}}function cR(e){let t=0;switch(xk(e)){case 3:case 99:case 100:t=30}return e.resolvePackageJsonExports?t|=8:!1===e.resolvePackageJsonExports&&(t&=-9),e.resolvePackageJsonImports?t|=2:!1===e.resolvePackageJsonImports&&(t&=-3),t}function lR(e,t){const n=xk(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 _R(e,t,n,r,i){const o=tM(null==i?void 0:i.getPackageJsonInfoCache(),r,n);return hM(r,t,(t=>{if("node_modules"!==Eo(t)){const n=Ro(t,"node_modules");return oM(Ro(n,e),!1,o)}}))}function uR(e,t){if(e.types)return e.types;const n=[];if(t.directoryExists&&t.getDirectories){const r=nR(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 n}function dR(e){return!!(null==e?void 0:e.contents)}function pR(e){return!!e&&!e.contents}function fR(e){var t;if(null===e||"object"!=typeof e)return""+e;if(Xe(e))return`[${null==(t=e.map((e=>fR(e))))?void 0:t.join(",")}]`;let n="{";for(const t in e)Ne(e,t)&&(n+=`${t}: ${fR(e[t])}`);return n+"}"}function mR(e,t){return t.map((t=>fR(Hk(e,t)))).join("|")+`|${e.pathsBasePath}`}function gR(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=mR(e,TO)),n}}function hR(e,t,n,r){const i=e.getOrCreateMapOfCacheRedirects(t);let o=i.get(n);return o||(o=r(),i.set(n,o)),o}function yR(e,t){return void 0===t?e:`${t}|${e}`}function vR(){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=yR(e,n);return t.set(r,[e,n]),r}}function bR(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function xR(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function kR(e,t,n,r,i){const o=gR(n,i);return{getFromNonRelativeNameCache:function(e,t,n,r){var i,a;return _n.assert(!Cs(e)),null==(a=null==(i=o.getMapOfCacheRedirects(r))?void 0:i.get(yR(e,t)))?void 0:a.get(n)},getOrCreateCacheForNonRelativeName:function(e,t,n){return _n.assert(!Cs(e)),hR(o,n,yR(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(Uo(r,e,t))},set:function(i,o){const a=Uo(i,e,t);if(n.has(a))return;n.set(a,o);const s=r(o),c=s&&function(n,r){const i=Uo(Fo(r),e,t);let o=0;const a=Math.min(n.length,i.length);for(;o<a&&n.charCodeAt(o)===i.charCodeAt(o);)o++;if(o===n.length&&(i.length===o||i[o]===_o))return n;const s=Do(n);if(o<s)return;const c=n.lastIndexOf(_o,o-1);if(-1===c)return;return n.substr(0,Math.max(c,s))}(a,s);let l=a;for(;l!==c;){const e=Fo(l);if(e===l||n.has(e))break;n.set(e,o),l=e}}}}}function SR(e,t,n,r,i,o){o??(o=new Map);const a=function(e,t,n,r){const i=gR(n,r);return{getFromDirectoryCache:function(n,r,o,a){var s,c;const l=Uo(o,e,t);return null==(c=null==(s=i.getMapOfCacheRedirects(a))?void 0:s.get(l))?void 0:c.get(n,r)},getOrCreateCacheForDirectory:function(n,r){const o=Uo(n,e,t);return hR(i,r,o,(()=>vR()))},clear:function(){i.clear()},update:function(e){i.update(e)},directoryToModuleNameMap:i}}(e,t,n,o),s=kR(e,t,n,i,o);return r??(r=function(e,t){let n;return{getPackageJsonInfo:function(r){return null==n?void 0:n.get(Uo(r,e,t))},setPackageJsonInfo:function(r,i){(n||(n=new Map)).set(Uo(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 TR(e,t,n,r,i){const o=SR(e,t,n,r,bR,i);return o.getOrCreateCacheForModuleName=(e,t,n)=>o.getOrCreateCacheForNonRelativeName(e,t,n),o}function CR(e,t,n,r,i){return SR(e,t,n,r,xR,i)}function wR(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function NR(e,t,n,r,i){return FR(e,t,wR(n),r,i)}function DR(e,t,n,r){const i=Fo(t);return n.getFromDirectoryCache(e,r,i,void 0)}function FR(e,t,n,r,i,o,a){const s=zj(n,r);o&&(n=o.commandLine.options),s&&(Jj(r,_a.Resolving_module_0_from_1,e,t),o&&Jj(r,_a.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&&Jj(r,_a.Resolution_for_module_0_was_found_in_cache_from_location_1,e,c);else{let _=n.moduleResolution;switch(void 0===_?(_=xk(n),s&&Jj(r,_a.Module_resolution_kind_is_not_specified_using_0,ci[_])):s&&Jj(r,_a.Explicitly_specified_module_resolution_kind_Colon_0,ci[_]),_){case 3:case 99:l=function(e,t,n,r,i,o,a){return IR(30,e,t,n,r,i,o,a)}(e,t,n,r,i,o,a);break;case 2:l=LR(e,t,n,r,i,o,a?lR(n,a):void 0);break;case 1:l=DM(e,t,n,r,i,o);break;case 100:l=OR(e,t,n,r,i,o,a?lR(n,a):void 0);break;default:return _n.fail(`Unexpected moduleResolution: ${_}`)}i&&!i.isReadonly&&(i.getOrCreateCacheForDirectory(c,o).set(e,a,l),Cs(e)||i.getOrCreateCacheForNonRelativeName(e,a,o).set(c,l))}return s&&(l.resolvedModule?l.resolvedModule.packageId?Jj(r,_a.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,l.resolvedModule.resolvedFileName,fd(l.resolvedModule.packageId)):Jj(r,_a.Module_name_0_was_successfully_resolved_to_1,e,l.resolvedModule.resolvedFileName):Jj(r,_a.Module_name_0_was_not_resolved,e)),l}function ER(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&&Jj(r.host,_a.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t),Jj(r.host,_a.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));return bM(e,t,Ky(r.compilerOptions,r.host),o,XS(o),n,!1,r)}}(e,t,r,i);return o?o.value:Cs(t)?function(e,t,n,r,i){if(!i.compilerOptions.rootDirs)return;i.traceEnabled&&Jj(i.host,_a.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<t.length);i.traceEnabled&&Jj(i.host,_a.Checking_if_0_is_the_longest_matching_prefix_for_1_2,t,o,n),n&&(s=t,a=e)}if(s){i.traceEnabled&&Jj(i.host,_a.Longest_matching_prefix_for_0_is_1,o,s);const t=o.substr(s.length);i.traceEnabled&&Jj(i.host,_a.Loading_0_from_the_root_dir_1_candidate_location_2,t,s,o);const c=r(e,o,!Fb(n,i.host),i);if(c)return c;i.traceEnabled&&Jj(i.host,_a.Trying_other_entries_in_rootDirs);for(const n of i.compilerOptions.rootDirs){if(n===a)continue;const o=Ro(zo(n),t);i.traceEnabled&&Jj(i.host,_a.Loading_0_from_the_root_dir_1_candidate_location_2,t,n,o);const s=r(e,o,!Fb(Fo(o),i.host),i);if(s)return s}i.traceEnabled&&Jj(i.host,_a.Module_resolution_using_rootDirs_has_failed)}return}(e,t,n,r,i):function(e,t,n,r){const{baseUrl:i}=r.compilerOptions;if(!i)return;r.traceEnabled&&Jj(r.host,_a.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,i,t);const o=zo(Ro(i,t));r.traceEnabled&&Jj(r.host,_a.Resolving_module_name_0_relative_to_base_url_1_2,t,i,o);return n(e,o,!Fb(Fo(o),r.host),r)}(e,t,r,i)}function PR(e,t,n){const{resolvedModule:r,failedLookupLocations:i}=function(e,t,n){return RR(0,e,t,{moduleResolution:2,allowJs:!0},n,void 0,2,!1,void 0,void 0)}(e,t,n);if(!r)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${null==i?void 0:i.join(", ")}`);return r.resolvedFileName}var AR=(e=>(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.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(AR||{});function IR(e,t,n,r,i,o,a,s,c){const l=Fo(n),_=99===s?32:0;let u=r.noDtsResolution?3:7;return Dk(r)&&(u|=8),RR(e|_,t,l,r,i,o,u,!1,a,c)}function OR(e,t,n,r,i,o,a){const s=Fo(t);let c=n.noDtsResolution?3:7;return Dk(n)&&(c|=8),RR(cR(n),e,s,n,r,i,c,!1,o,a)}function LR(e,t,n,r,i,o,a,s){let c;return s?c=8:n.noDtsResolution?(c=3,Dk(n)&&(c|=8)):c=Dk(n)?15:7,RR(a?30:0,e,Fo(t),n,r,i,c,!!s,o,a)}function jR(e,t,n){return RR(30,e,Fo(t),{moduleResolution:99},n,void 0,8,!0,void 0,void 0)}function RR(e,t,n,r,i,o,a,c,_,u){var d,p,f,m,g;const y=zj(r,i),v=[],b=[],x=xk(r);u??(u=lR(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&&Bk(x)&&Jj(i,_a.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&&N(e,T)||t&&N(t,T)||void 0}else C=N(a,T);if(T.resolvedPackageDirectory&&!c&&!Cs(t)){const t=(null==C?void 0:C.value)&&5&a&&!sM(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"))){IM(T,_a.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const e=N(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){IM(T,_a.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=N(5&a,{...T,compilerOptions:e,features:30,conditions:lR(e),reportDiagnostic:nt});(null==(f=null==t?void 0:t.value)?void 0:f.isExternalLibraryImport)&&(w=t.value.resolved.path)}}return Hj(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 N(r,a){const s=ER(r,t,n,((e,t,n,r)=>JR(e,t,n,r,!0)),a);if(s)return AM({resolved:s,isExternalLibraryImport:qR(s.path)});if(Cs(t)){const{path:e,parts:i}=MR(n,t),o=JR(r,e,!1,a,!0);return o&&AM({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,"#/"))return r.traceEnabled&&Jj(r.host,_a.Invalid_import_specifier_0_has_no_possible_resolutions,t),AM(void 0);const c=Jo(n,null==(s=(a=r.host).getCurrentDirectory)?void 0:s.call(a)),l=nM(c,r);if(!l)return r.traceEnabled&&Jj(r.host,_a.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,c),AM(void 0);if(!l.contents.packageJsonContent.imports)return r.traceEnabled&&Jj(r.host,_a.package_json_scope_0_has_no_imports_defined,l.packageDirectory),AM(void 0);const _=dM(e,r,i,o,t,l.contents.packageJsonContent.imports,l,!0);if(_)return _;r.traceEnabled&&Jj(r.host,_a.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,l.packageDirectory);return AM(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)),_=nM(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(Ik(r.compilerOptions)&&!qR(n))return _M(_,e,f,r,i,o);const m=5&e,g=-6&e;return _M(_,m,f,r,i,o)||_M(_,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&&Jj(i,_a.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,Wj(r)));y&&Jj(i,_a.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,Wj(r));let s=mM(r,t,n,a,o,_);return 4&r&&(s??(s=FM(t,a))),s&&{value:s.value&&{resolved:s.value,isExternalLibraryImport:!0}}}}}function MR(e,t){const n=Ro(e,t),r=Io(n),i=he(r);return{path:"."===i||".."===i?Wo(zo(n)):zo(n),parts:r}}function BR(e,t,n){if(!t.realpath)return e;const r=zo(t.realpath(e));return n&&Jj(t,_a.Resolving_real_path_for_0_result_1,e,r),r}function JR(e,t,n,r,i){if(r.traceEnabled&&Jj(r.host,_a.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,Wj(e)),!Co(t)){if(!n){const e=Fo(t);Fb(e,r.host)||(r.traceEnabled&&Jj(r.host,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!0)}const o=$R(e,t,n,r);if(o){const e=i?UR(o.path):void 0;return qj(e?oM(e,!1,r):void 0,o,r)}}if(!n){Fb(t,r.host)||(r.traceEnabled&&Jj(r.host,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0)}if(!(32&r.features))return YR(e,t,n,r,i)}var zR="/node_modules/";function qR(e){return e.includes(zR)}function UR(e,t){const n=zo(e),r=n.lastIndexOf(zR);if(-1===r)return;const i=r+zR.length;let o=VR(n,i,t);return 64===n.charCodeAt(i)&&(o=VR(n,o,t)),n.slice(0,o)}function VR(e,t,n){const r=e.indexOf(_o,t+1);return-1===r?n?e.length:t:r}function WR(e,t,n,r){return Uj($R(e,t,n,r))}function $R(e,t,n,r){const i=HR(e,t,n,r);if(i)return i;if(!(32&r.features)){const i=GR(t,e,"",n,r);if(i)return i}}function HR(e,t,n,r){if(!Eo(t).includes("."))return;let i=VS(t);i===t&&(i=t.substring(0,t.lastIndexOf(".")));const o=t.substring(i.length);return r.traceEnabled&&Jj(r.host,_a.File_name_0_has_a_1_extension_stripping_it,t,o),GR(i,e,o,n,r)}function KR(e,t,n,r,i){if(1&e&&To(t,PS)||4&e&&To(t,ES)){const e=XR(t,r,i),o=xb(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!==XR(t,r,i)?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0}return HR(e,t,r,i)}function GR(e,t,n,r,i){if(!r){const t=Fo(e);t&&(r=!Fb(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&&!YI(e+n)&&o(`.d${n}.ts`)||void 0}function o(t,n){const o=XR(e+t,r,i);return void 0===o?void 0:{path:o,ext:t,resolvedUsingTsExtension:!i.candidateIsFromPackageJsonField&&n}}}function XR(e,t,n){var r;if(!(null==(r=n.compilerOptions.moduleSuffixes)?void 0:r.length))return QR(e,t,n);const i=nT(e)??"",o=i?$S(e,i):e;return _(n.compilerOptions.moduleSuffixes,(e=>QR(o+e+i,t,n)))}function QR(e,t,n){var r;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&Jj(n.host,_a.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&Jj(n.host,_a.File_0_does_not_exist,e)}null==(r=n.failedLookupLocations)||r.push(e)}function YR(e,t,n,r,i=!0){const o=i?oM(t,n,r):void 0;return qj(o,aM(e,t,n,r,o),r)}function ZR(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=tM(null==r?void 0:r.getPackageJsonInfoCache(),n,t);c.conditions=lR(t),c.requestContainingDirectory=e.packageDirectory;const l=aM(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([lR(t,99),lR(t,1)],ee);for(const t of r){const r={...c,failedLookupLocations:[],conditions:t,host:n},i=eM(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 eM(e,t,n,r){let i;if(Xe(t))for(const e of t)o(e);else if("object"==typeof t&&null!==t&&lM(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(...PS),2&e&&t.push(...NS),4&e&&t.push(...ES),8&e&&t.push(".json"),t}(r),void 0,[Ko(pC(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=KR(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)||fM(n.conditions,e))return o(t[e]),!0}))}}function tM(e,t,n){return{host:t,compilerOptions:n,traceEnabled:zj(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 nM(e,t){return hM(t.host,e,(e=>oM(e,!1,t)))}function rM(e,t){return void 0===e.contents.versionPaths&&(e.contents.versionPaths=eR(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function iM(e,t){return void 0===e.contents.peerDependencies&&(e.contents.peerDependencies=function(e,t){const n=Yj(e.contents.packageJsonContent,"peerDependencies","object",t);if(void 0===n)return;t.traceEnabled&&Jj(t.host,_a.package_json_has_a_peerDependencies_field);const r=BR(e.packageDirectory,t.host,t.traceEnabled),i=r.substring(0,r.lastIndexOf("node_modules")+12)+_o;let o="";for(const e in n)if(Ne(n,e)){const n=oM(i+e,!1,t);if(n){const r=n.contents.packageJsonContent.version;o+=`+${e}@${r}`,t.traceEnabled&&Jj(t.host,_a.Found_peerDependency_0_with_1_version,e,r)}else t.traceEnabled&&Jj(t.host,_a.Failed_to_find_peerDependency_0,e)}return o}(e,t)||!1),e.contents.peerDependencies||void 0}function oM(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 dR(d)?(_&&Jj(l,_a.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&&_&&Jj(l,_a.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void(null==(a=n.failedLookupLocations)||a.push(u)));const p=Fb(e,l);if(p&&l.fileExists(u)){const t=Nb(u,l);_&&Jj(l,_a.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&&_&&Jj(l,_a.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 aM(e,t,n,r,i){const a=i&&rM(i,r);let s;i&&iR(null==i?void 0:i.packageDirectory,t,r.host)&&(s=r.isConfigLookup?function(e,t,n){return Zj(e,"tsconfig",t,n)}(i.contents.packageJsonContent,i.packageDirectory,r):4&e&&function(e,t,n){return Zj(e,"typings",t,n)||Zj(e,"types",t,n)}(i.contents.packageJsonContent,i.packageDirectory,r)||7&e&&function(e,t,n){return Zj(e,"main",t,n)}(i.contents.packageJsonContent,i.packageDirectory,r)||void 0);const c=(e,t,n,r)=>{const o=KR(e,t,void 0,n,r);if(o)return Uj(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=JR(a,t,n,r,!1);return r.features=s,r.candidateIsFromPackageJsonField=c,l},l=s?!Fb(Fo(s),r.host):void 0,_=n||!Fb(t,r.host),u=Ro(t,r.isConfigLookup?"tsconfig":"index");if(a&&(!s||ea(t,s))){const n=ra(t,s||u,!1);r.traceEnabled&&Jj(r.host,_a.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=XS(a.paths),d=bM(e,n,t,a.paths,i,c,l||_,r);if(d)return Vj(d.value)}const d=s&&Vj(c(e,s,l,r));return d||(32&r.features?void 0:$R(e,u,_,r))}function sM(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 lM(e){return h(Fe(e),(e=>Kt(e,".")))}function _M(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:Ne(e.contents.packageJsonContent.exports,".")&&(a=e.contents.packageJsonContent.exports["."]),a){return pM(t,r,i,o,n,e,!1)(a,"",!1,".")}}else if(lM(e.contents.packageJsonContent.exports)){if("object"!=typeof e.contents.packageJsonContent.exports)return r.traceEnabled&&Jj(r.host,_a.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),AM(void 0);const a=dM(t,r,i,o,n,e.contents.packageJsonContent.exports,e,!1);if(a)return a}return r.traceEnabled&&Jj(r.host,_a.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),AM(void 0)}}function uM(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 dM(e,t,n,r,i,o,a,s){const c=pM(e,t,n,r,i,a,s);if(!jt(i,_o)&&!i.includes("*")&&Ne(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,"/"))),uM);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 pM(e,t,n,r,i,o,a){return function s(c,_,u,d){if("string"==typeof c){if(!u&&_.length>0&&!jt(c,"/"))return t.traceEnabled&&Jj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),AM(void 0);if(!Kt(c,"./")){if(a&&!Kt(c,"../")&&!Kt(c,"/")&&!ho(c)){const i=u?c.replace(/\*/g,_):c+_;IM(t,_a.Using_0_subpath_1_with_target_2,"imports",d,i),IM(t,_a.Resolving_module_0_from_1,i,o.packageDirectory+"/");const a=RR(t.features,i,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,r,t.conditions);return AM(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&&Jj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),AM(void 0)}const s=(bo(c)?Io(c).slice(1):Io(c)).slice(1);if(s.includes("..")||s.includes(".")||s.includes("node_modules"))return t.traceEnabled&&Jj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),AM(void 0);const l=Ro(o.packageDirectory,c),m=Io(_);if(m.includes("..")||m.includes(".")||m.includes("node_modules"))return t.traceEnabled&&Jj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),AM(void 0);t.traceEnabled&&Jj(t.host,_a.Using_0_subpath_1_with_target_2,a?"imports":"exports",d,u?c.replace(/\*/g,_):c+_);const g=p(u?l.replace(/\*/g,_):l+_),h=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||ea(o.packageDirectory,p(t.compilerOptions.configFile.fileName),!OM(t)))){const d=Ry({useCaseSensitiveFileNames:()=>OM(t)}),f=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){const e=p(Zq(t.compilerOptions,(()=>[]),(null==(c=(s=t.host).getCurrentDirectory)?void 0:c.call(s))||"",d));f.push(e)}else if(t.requestContainingDirectory){const e=p(Ro(t.requestContainingDirectory,"index.ts")),n=p(Zq(t.compilerOptions,(()=>[e,p(i)]),(null==(_=(l=t.host).getCurrentDirectory)?void 0:_.call(l))||"",d));f.push(n);let r=Wo(n);for(;r&&r.length>1;){const e=Io(r);e.pop();const t=Oo(e);f.unshift(t),r=Wo(t)}}f.length>1&&t.reportDiagnostic(Yx(a?_a.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.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 f){const i=u(r);for(const a of i)if(ea(a,n,!OM(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=$y(i);for(const a of r){if(!sM(e,a))continue;const r=Ho(i,a,n,!OM(t));if(t.host.fileExists(r))return AM(qj(o,KR(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(p(f(i,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&o.push(p(f(i,t.compilerOptions.outDir))),o}}(g,_,Ro(o.packageDirectory,"package.json"),a);return h||AM(qj(o,KR(e,g,c,!1,t),t))}if("object"==typeof c&&null!==c){if(!Array.isArray(c)){IM(t,_a.Entering_conditional_exports);for(const e of Fe(c))if("default"===e||t.conditions.includes(e)||fM(t.conditions,e)){IM(t,_a.Matched_0_condition_1,a?"imports":"exports",e);const n=c[e],r=s(n,_,u,d);if(r)return IM(t,_a.Resolved_under_condition_0,e),IM(t,_a.Exiting_conditional_exports),r;IM(t,_a.Failed_to_resolve_under_condition_0,e)}else IM(t,_a.Saw_non_matching_condition_0,e);return void IM(t,_a.Exiting_conditional_exports)}if(!l(c))return t.traceEnabled&&Jj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i),AM(void 0);for(const e of c){const t=s(e,_,u,d);if(t)return t}}else if(null===c)return t.traceEnabled&&Jj(t.host,_a.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,i),AM(void 0);t.traceEnabled&&Jj(t.host,_a.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,i);return AM(void 0);function p(e){var n,r;return void 0===e?e:Jo(e,null==(r=(n=t.host).getCurrentDirectory)?void 0:r.call(n))}function f(e,t){return Wo(Ro(e,t))}}}function fM(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 mM(e,t,n,r,i,o){return gM(e,t,n,r,!1,i,o)}function gM(e,t,n,r,i,o,a){const s=0===r.features?void 0:32&r.features?99:1,c=5&e,l=-6&e;if(c){IM(r,_a.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,Wj(c));const e=_(c);if(e)return e}if(l&&!i)return IM(r,_a.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,Wj(l)),_(l);function _(e){return hM(r.host,Lo(n),(n=>{if("node_modules"!==Eo(n)){const c=NM(o,t,s,n,a,r);return c||AM(yM(e,t,n,r,i,o,a))}}))}}function hM(e,t,n){var r;const i=null==(r=null==e?void 0:e.getGlobalTypingsCacheLocation)?void 0:r.call(e);return sa(t,(e=>{const t=n(e);return void 0!==t?t:e!==i&&void 0}))||void 0}function yM(e,t,n,r,i,o,a){const s=Ro(n,"node_modules"),c=Fb(s,r.host);if(!c&&r.traceEnabled&&Jj(r.host,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,s),!i){const n=vM(e,t,s,c,r,o,a);if(n)return n}if(4&e){const e=Ro(s,"@types");let n=c;return c&&!Fb(e,r.host)&&(r.traceEnabled&&Jj(r.host,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,e),n=!1),vM(4,kM(t,r),e,n,r,o,a)}}function vM(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=oM(u,!r,i);if(""!==p&&g&&(!(8&i.features)||!Ne((null==(l=m=oM(f,!r,i))?void 0:l.contents.packageJsonContent)??s,"exports"))){const t=$R(e,u,!r,i);if(t)return Uj(t);const n=aM(e,u,!r,i,g);return qj(g,n,i)}const h=(e,t,n,r)=>{let i=(p||!(32&r.features))&&$R(e,t,n,r)||aM(e,t,n,r,g);return!i&&g&&(void 0===g.contents.packageJsonContent.exports||null===g.contents.packageJsonContent.exports)&&32&r.features&&(i=$R(e,Ro(t,"index.js"),n,r)),qj(g,i,r)};if(""!==p&&(g=m??oM(f,!r,i)),g&&(i.resolvedPackageDirectory=!0),g&&g.contents.packageJsonContent.exports&&8&i.features)return null==(_=_M(g,e,Ro(".",p),i,a,c))?void 0:_.value;const y=""!==p&&g?rM(g,i):void 0;if(y){i.traceEnabled&&Jj(i.host,_a.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&&Fb(f,i.host),n=XS(y.paths),a=bM(e,p,f,y.paths,n,h,!t,i);if(a)return a.value}return h(e,u,!r,i)}function bM(e,t,n,r,i,o,a,s){const c=oT(i,t);if(c){const i=Ye(c)?void 0:$t(c,t),l=Ye(c)?c:Wt(c);s.traceEnabled&&Jj(s.host,_a.Module_name_0_matched_pattern_1,t,l);return{value:_(r[l],(t=>{const r=i?pC(t,i):t,c=zo(Ro(n,r));s.traceEnabled&&Jj(s.host,_a.Trying_substitution_0_candidate_module_location_Colon_1,t,r);const l=nT(t);if(void 0!==l){const e=XR(c,a,s);if(void 0!==e)return Uj({path:e,ext:l,resolvedUsingTsExtension:void 0})}return o(e,c,a||!Fb(Fo(c),s.host),s)}))}}}var xM="__";function kM(e,t){const n=TM(e);return t.traceEnabled&&n!==e&&Jj(t.host,_a.Scoped_package_detected_looking_in_0,n),n}function SM(e){return`@types/${TM(e)}`}function TM(e){if(Kt(e,"@")){const t=e.replace(_o,xM);if(t!==e)return t.slice(1)}return e}function CM(e){const t=Gt(e,"@types/");return t!==e?wM(t):e}function wM(e){return e.includes(xM)?"@"+e.replace(xM,_o):e}function NM(e,t,n,r,i,o){const a=e&&e.getFromNonRelativeNameCache(t,n,r,i);if(a)return o.traceEnabled&&Jj(o.host,_a.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 DM(e,t,n,r,i,o){const a=zj(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 Hj(e,d&&d.value,(null==d?void 0:d.value)&&qR(d.value.path),s,c,_,u,i);function p(t){const n=ER(t,e,l,WR,u);if(n)return{value:n};if(Cs(e)){const n=zo(Ro(l,e));return AM(WR(t,n,!1,u))}{const n=hM(u.host,l,(n=>{const r=NM(i,e,void 0,n,o,u);if(r)return r;const a=zo(Ro(n,e));return AM(WR(t,a,!1,u))}));if(n)return n;if(5&t){let n=function(e,t,n){return gM(4,e,t,n,!0,void 0,void 0)}(e,l,u);return 4&t&&(n??(n=FM(e,u))),n}}}}function FM(e,t){if(t.compilerOptions.typeRoots)for(const n of t.compilerOptions.typeRoots){const r=aR(n,e,t),i=Fb(n,t.host);!i&&t.traceEnabled&&Jj(t.host,_a.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);const o=$R(4,r,!i,t);if(o){const e=UR(o.path);return AM(qj(e?oM(e,!1,t):void 0,o,t))}const a=YR(4,r,!i,t);if(a)return AM(a)}}function EM(e,t){return yk(e)||!!t&&YI(t)}function PM(e,t,n,r,i,o){const a=zj(n,r);a&&Jj(r,_a.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 Kj(yM(4,e,i,_,!1,void 0,void 0),!0,s,c,l,_.resultFromCache,void 0)}function AM(e){return void 0!==e?{value:e}:void 0}function IM(e,t,...n){e.traceEnabled&&Jj(e.host,t,...n)}function OM(e){return!e.host.useCaseSensitiveFileNames||("boolean"==typeof e.host.useCaseSensitiveFileNames?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames())}var LM=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(LM||{});function jM(e,t){return e.body&&!e.body.parent&&(FT(e.body,e),ET(e.body,!1)),e.body?RM(e.body,t):1}function RM(e,t=new Map){const n=$B(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);const r=function(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(ef(e))return 2;break;case 272:case 271:if(!Dv(e,32))return 0;break;case 278:const n=e;if(!n.moduleSpecifier&&n.exportClause&&279===n.exportClause.kind){let e=0;for(const r of n.exportClause.elements){const n=MM(r,t);if(n>e&&(e=n),1===e)return e}return e}break;case 268:{let n=0;return RI(e,(e=>{const r=RM(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 267:return jM(e,t);case 80:if(4096&e.flags)return 0}return 1}(e,t);return t.set(n,r),r}function MM(e,t){const n=e.propertyName||e.name;if(80!==n.kind)return 1;let r=e.parent;for(;r;){if(DF(r)||tE(r)||WE(r)){const e=r.statements;let i;for(const o of e)if(xc(o,n)){o.parent||(FT(o,r),ET(o,!1));const e=RM(o,t);if((void 0===i||e>i)&&(i=e),1===i)return i;271===o.kind&&(i=1)}if(void 0!==i)return i}r=r.parent}return 1}var BM=(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))(BM||{});function JM(e,t,n){return _n.attachFlowNodeDebugInfo({flags:e,id:0,node:t,antecedent:n})}var zM=UM();function qM(e,t){er("beforeBind"),zM(e,t),er("afterBind"),tr("Bind","beforeBind","afterBind")}function UM(){var e,t,n,r,i,o,a,s,c,u,d,p,f,m,g,y,v,b,x,S,T,C,w,N,D,F,E,P=!1,A=0,I=JM(1,void 0,void 0),O=JM(1,void 0,void 0),L=function(){return KA((function(e,t){if(t){t.stackIndex++,FT(e,r);const n=D;We(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(Zv(n)||Qv(n)){if(fe(e)){const t=te(),n=p,r=w;w=!1,Se(e,t,t),p=w?de(t):n,w||(w=r)}else Se(e,y,v);t.skip=!0}return t}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&be(t),n}}),(function(e,t,n){t.skip||ze(e)}),(function(t,n,r){if(!n.skip){const n=e(t);return 28===r.operatorToken.kind&&be(t),n}}),(function(e,t){if(!t.skip){const t=e.operatorToken.kind;if(tb(t)&&!Qg(e)&&(ke(e.left),64===t&&212===e.left.kind)){ee(e.left.expression)&&(p=_e(256,p,e))}}const n=t.inStrictModeStack[t.stackIndex],i=t.parentStack[t.stackIndex];void 0!==n&&(D=n);void 0!==i&&(r=i);t.skip=!1,t.stackIndex--}),void 0);function e(e){if(e&&uF(e)&&!ob(e))return e;ze(e)}}();return function(l,_){var h,x;e=l,n=vk(t=_),D=function(e,t){return!(!zk(t,"alwaysStrict")||e.isDeclarationFile)||!!e.externalModuleIndicator}(e,_),E=new Set,A=0,F=Mx.getSymbolConstructor(),_n.attachFlowNodeDebugInfo(I),_n.attachFlowNodeDebugInfo(O),e.locals||(null==(h=$n)||h.push($n.Phase.Bind,"bindSourceFile",{path:e.path},!0),ze(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=Dp(n)||e,a=Fp(n)||e,p=JM(2,void 0,void 0),r=t,ze(t.typeExpression);const o=Cc(t);if((kP(t)||!t.fullName)&&o&&_b(o.parent)){const n=at(o.parent);if(n){it(e.symbol,o.parent,n,!!uc(o,(e=>XD(e)&&"prototype"===e.name.escapedText)),!1);const r=i;switch(ug(o.parent)){case 1:case 2:i=Yp(e)?e:void 0;break;case 4:i=o.parent.expression;break;case 3:i=o.parent.expression.name;break;case 5:i=WM(e,o.parent.expression)?e:XD(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&&q(t,524288,788968),i=r}}else kP(t)||!t.fullName||80===t.fullName.kind?(r=t.parent,Oe(t,524288,788968)):ze(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=Vg(t),o=n?Dp(n):void 0,s=n?Fp(n):void 0;i=o||e,a=s||e,p=JM(2,void 0,void 0),r=t,ze(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,N=0};function j(t,n,...r){return Bp(yd(t)||e,t,n,...r)}function R(e,t){return A++,new F(e,t)}function M(e,t,n){e.flags|=n,t.symbol=e,e.declarations=ce(e.declarations,t),1955&n&&!e.exports&&(e.exports=Ku()),6240&n&&!e.members&&(e.members=Ku()),e.constEnumOnlyModule&&304&e.flags&&(e.constEnumOnlyModule=!1),111551&n&&mg(e,t)}function B(e){if(277===e.kind)return e.isExportEquals?"export=":"default";const t=Cc(e);if(t){if(sp(e)){const n=qh(t);return dp(e)?"__global":`"${n}"`}if(167===t.kind){const e=t.expression;if(jh(e))return fc(e.text);if(Rh(e))return Fa(e.operator)+e.operand.text;_n.fail("Only computed properties with literal names have declaration names")}if(WN(t)){const n=Xf(e);if(!n)return;return Vh(n.symbol,t.escapedText)}return jE(t)?oC(t):zh(t)?Uh(t):void 0}switch(e.kind){case 176:return"__constructor";case 184:case 179:case 323:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 307:return"export=";case 226:if(2===tg(e))return"export=";_n.fail("Unknown binary declaration kind");break;case 317:return Ng(e)?"__new":"__call";case 169:_n.assert(317===e.parent.kind,"Impossible parameter parent kind",(()=>`parent is: ${_n.formatSyntaxKind(e.parent.kind)}, expected JSDocFunctionType`));return"arg"+e.parent.parameters.indexOf(e)}}function J(e){return Sc(e)?Pp(e.name):mc(_n.checkDefined(B(e)))}function z(t,n,r,i,o,a,s){_n.assert(s||!Mh(r));const c=Dv(r,2048)||vE(r)&&Hd(r.name),u=s?"__computed":c&&n?"default":B(r);let d;if(void 0===u)d=R(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=R(0,u));else if(!(3&i&&67108864&d.flags)){Sc(r)&&FT(r.name,r);let t=2&d.flags?_a.Cannot_redeclare_block_scoped_variable_0:_a.Duplicate_identifier_0,n=!0;(384&d.flags||384&i)&&(t=_a.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&&277===r.kind&&!r.isExportEquals)&&(t=_a.A_module_cannot_have_multiple_default_exports,n=!1,o=!0);const a=[];YF(r)&&wd(r.type)&&Dv(r,32)&&2887656&d.flags&&a.push(j(r,_a.Did_you_mean_0,`export type { ${mc(r.name.escapedText)} }`));const s=Cc(r)||r;_(d.declarations,((r,i)=>{const c=Cc(r)||r,l=n?j(c,t,J(r)):j(c,t);e.bindDiagnostics.push(o?sT(l,j(s,0===i?_a.Another_export_default_is_here:_a.and_here)):l),o&&a.push(j(c,_a.The_first_export_default_is_here))}));const p=n?j(s,t,J(r)):j(s,t);e.bindDiagnostics.push(sT(p,...a)),d=R(0,u)}}else t.set(u,d=R(0,u)),a&&(d.isReplaceableByMethod=!0);return M(d,r,i),d.parent?_n.assert(d.parent===n,"Existing symbol parent should match new one"):d.parent=n,d}function q(e,t,n){const r=!!(32&ic(e))||function(e){e.parent&&eE(e)&&(e=e.parent);if(!Dg(e))return!1;if(!kP(e)&&e.fullName)return!0;const t=Cc(e);return!!t&&(!(!_b(t.parent)||!at(t.parent))||!!(_u(t.parent)&&32&ic(t.parent)))}(e);if(2097152&t)return 281===e.kind||271===e.kind&&r?z(i.symbol.exports,i.symbol,e,t,n):(_n.assertNode(i,su),z(i.locals,void 0,e,t,n));if(Dg(e)&&_n.assert(Em(e)),!sp(e)&&(r||128&i.flags)){if(!su(i)||!i.locals||Dv(e,2048)&&!B(e))return z(i.symbol.exports,i.symbol,e,t,n);const r=111551&t?1048576:0,o=z(i.locals,void 0,e,r,n);return o.exportSymbol=z(i.symbol.exports,i.symbol,e,t,n),e.localSymbol=o,o}return _n.assertNode(i,su),z(i.locals,void 0,e,t,n)}function U(e){H(e,(e=>262===e.kind?ze(e):void 0)),H(e,(e=>262!==e.kind?ze(e):void 0))}function H(e,t=ze){void 0!==e&&_(e,t)}function K(e){RI(e,ze,H)}function G(e){const n=P;if(P=!1,function(e){if(!(1&p.flags))return!1;if(p===I){const n=du(e)&&242!==e.kind||263===e.kind||VM(e,t)||267===e.kind&&function(e){const n=jM(e);return 1===n||2===n&&Ek(t)}(e);if(n&&(p=O,!t.allowUnreachableCode)){const n=Rk(t)&&!(33554432&e.flags)&&(!FF(e)||!!(7&ac(e.declarationList))||e.declarationList.declarations.some((e=>!!e.initializer)));!function(e,t,n){if(pu(e)&&r(e)&&DF(e.parent)){const{statements:t}=e.parent,i=aT(t,e);W(i,r,((e,t)=>n(i[e],i[t-1])))}else n(e,e);function r(e){return!(GF(e)||i(e)||FF(e)&&!(7&ac(e))&&e.declarationList.declarations.some((e=>!e.initializer)))}function i(e){switch(e.kind){case 264:case 265:return!0;case 267:return 1!==jM(e);case 266:return!VM(e,t);default:return!1}}}(e,t,((e,t)=>Je(n,e,t,_a.Unreachable_code_detected)))}}return!0}(e))return Og(e)&&e.flowNode&&(e.flowNode=void 0),K(e),qe(e),void(P=n);switch(e.kind>=243&&e.kind<=259&&(!t.allowUnreachableCode||253===e.kind)&&(e.flowNode=p),e.kind){case 247:!function(e){const t=ye(e,ne()),n=te(),r=te();ae(t,p),p=t,ge(e.expression,n,r),p=de(n),he(e.statement,r,t),ae(t,p),p=de(r)}(e);break;case 246:!function(e){const t=ne(),n=ye(e,te()),r=te();ae(t,p),p=t,he(e.statement,r,n),ae(n,p),p=de(n),ge(e.expression,t,r),p=de(r)}(e);break;case 248:!function(e){const t=ye(e,ne()),n=te(),r=te();ze(e.initializer),ae(t,p),p=t,ge(e.condition,n,r),p=de(n),he(e.statement,r,t),ze(e.incrementor),ae(t,p),p=de(r)}(e);break;case 249:case 250:!function(e){const t=ye(e,ne()),n=te();ze(e.expression),ae(t,p),p=t,250===e.kind&&ze(e.awaitModifier);ae(n,p),ze(e.initializer),261!==e.initializer.kind&&ke(e.initializer);he(e.statement,n,t),ae(t,p),p=de(n)}(e);break;case 245:!function(e){const t=te(),n=te(),r=te();ge(e.expression,t,n),p=de(t),ze(e.thenStatement),ae(r,p),p=de(n),ze(e.elseStatement),ae(r,p),p=de(r)}(e);break;case 253:case 257:!function(e){const t=C;C=!0,ze(e.expression),C=t,253===e.kind&&(T=!0,g&&ae(g,p));p=I,w=!0}(e);break;case 252:case 251:!function(e){if(ze(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,ve(e,t.breakTarget,t.continueTarget))}else ve(e,f,m)}(e);break;case 258:!function(e){const t=g,n=b,r=te(),i=te();let o=te();e.finallyBlock&&(g=i);ae(o,p),b=o,ze(e.tryBlock),ae(r,p),e.catchClause&&(p=de(o),o=te(),ae(o,p),b=o,ze(e.catchClause),ae(r,p));if(g=t,b=n,e.finallyBlock){const t=te();t.antecedent=$($(r.antecedent,o.antecedent),i.antecedent),p=t,ze(e.finallyBlock),1&p.flags?p=I:(g&&i.antecedent&&ae(g,ie(t,i.antecedent,p)),b&&o.antecedent&&ae(b,ie(t,o.antecedent,p)),p=r.antecedent?ie(t,r.antecedent,p):I)}else p=de(r)}(e);break;case 255:!function(e){const t=te();ze(e.expression);const n=f,r=x;f=t,x=p,ze(e.caseBlock),ae(t,p);const i=_(e.caseBlock.clauses,(e=>297===e.kind));e.possiblyExhaustive=!i&&!t.antecedent,i||ae(t,le(x,e,0,0));f=n,x=r,p=de(t)}(e);break;case 269:!function(e){const n=e.clauses,r=112===e.parent.expression.kind||X(e.parent.expression);let i=I;for(let o=0;o<n.length;o++){const a=o;for(;!n[o].statements.length&&o+1<n.length;)i===I&&(p=x),ze(n[o]),o++;const s=te();ae(s,r?le(x,e.parent,a,o+1):x),ae(s,i),p=de(s);const c=n[o];ze(c),i=p,1&p.flags||o===n.length-1||!t.noFallthroughCasesInSwitch||(c.fallthroughFlowNode=p)}}(e);break;case 296:!function(e){const t=p;p=x,ze(e.expression),p=t,H(e.statements)}(e);break;case 244:!function(e){ze(e.expression),be(e.expression)}(e);break;case 256:!function(e){const n=te();S={next:S,name:e.label.escapedText,breakTarget:n,continueTarget:void 0,referenced:!1},ze(e.label),ze(e.statement),S.referenced||t.allowUnusedLabels||function(e,t,n){Je(e,t,t,n)}(Mk(t),e.label,_a.Unused_label);S=S.next,ae(n,p),p=de(n)}(e);break;case 224:!function(e){if(54===e.operator){const t=y;y=v,v=t,K(e),v=y,y=t}else K(e),46!==e.operator&&47!==e.operator||ke(e.operand)}(e);break;case 225:!function(e){K(e),(46===e.operator||47===e.operator)&&ke(e.operand)}(e);break;case 226:if(ob(e))return P=n,void function(e){P?(P=!1,ze(e.operatorToken),ze(e.right),P=!0,ze(e.left)):(P=!0,ze(e.left),P=!1,ze(e.operatorToken),ze(e.right));ke(e.left)}(e);L(e);break;case 220:!function(e){K(e),211===e.expression.kind&&ke(e.expression)}(e);break;case 227:!function(e){const t=te(),n=te(),r=te(),i=p,o=w;w=!1,ge(e.condition,t,n),p=de(t),C&&(e.flowNodeWhenTrue=p);ze(e.questionToken),ze(e.whenTrue),ae(r,p),p=de(n),C&&(e.flowNodeWhenFalse=p);ze(e.colonToken),ze(e.whenFalse),ae(r,p),p=w?de(r):i,w||(w=o)}(e);break;case 260:!function(e){K(e),(e.initializer||Q_(e.parent.parent))&&Te(e)}(e);break;case 211:case 212:!function(e){hl(e)?De(e):K(e)}(e);break;case 213:!function(e){if(hl(e))De(e);else{const t=ah(e.expression);218===t.kind||219===t.kind?(H(e.typeArguments),H(e.arguments),ze(e.expression)):(K(e),108===e.expression.kind&&(p=ue(p,e)))}if(211===e.expression.kind){const t=e.expression;VN(t.name)&&ee(t.expression)&&Xh(t.name)&&(p=_e(256,p,e))}}(e);break;case 235:!function(e){hl(e)?De(e):K(e)}(e);break;case 346:case 338:case 340:!function(e){ze(e.tagName),340!==e.kind&&e.fullName&&(FT(e.fullName,e),ET(e.fullName,!1));"string"!=typeof e.comment&&H(e.comment)}(e);break;case 351:!function(e){ze(e.tagName),ze(e.moduleSpecifier),ze(e.attributes),"string"!=typeof e.comment&&H(e.comment)}(e);break;case 307:U(e.statements),ze(e.endOfFileToken);break;case 241:case 268:U(e.statements);break;case 208:!function(e){ze(e.dotDotDotToken),ze(e.propertyName),Ce(e.initializer),ze(e.name)}(e);break;case 169:!function(e){H(e.modifiers),ze(e.dotDotDotToken),ze(e.questionToken),ze(e.type),Ce(e.initializer),ze(e.name)}(e);break;case 210:case 209:case 303:case 230:P=n;default:K(e)}qe(e),P=n}function X(e){switch(e.kind){case 80:case 110:return!0;case 211:case 212:return Y(e);case 213:return function(e){if(e.arguments)for(const t of e.arguments)if(Y(t))return!0;if(211===e.expression.kind&&Y(e.expression.expression))return!0;return!1}(e);case 217:if(cA(e))return!1;case 235:return X(e.expression);case 226:return function(e){switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return Y(e.left);case 35:case 36:case 37:case 38:return ee(e.left)||ee(e.right)||Z(e.right,e.left)||Z(e.left,e.right)||a_(e.right)&&X(e.left)||a_(e.left)&&X(e.right);case 104:return ee(e.left);case 103:case 28:return X(e.right)}return!1}(e);case 224:return 54===e.operator&&X(e.operand);case 221:return X(e.expression)}return!1}function Q(e){switch(e.kind){case 80:case 110:case 108:case 236:return!0;case 211:case 217:case 235:return Q(e.expression);case 212:return(jh(e.argumentExpression)||sb(e.argumentExpression))&&Q(e.expression);case 226:return 28===e.operatorToken.kind&&Q(e.right)||tb(e.operatorToken.kind)&&M_(e.left)}return!1}function Y(e){return Q(e)||hl(e)&&Y(e.expression)}function Z(e,t){return aF(e)&&ee(e.expression)&&ju(t)}function ee(e){switch(e.kind){case 217:return ee(e.expression);case 226:switch(e.operatorToken.kind){case 64:return ee(e.left);case 28:return ee(e.right)}}return Y(e)}function te(){return JM(4,void 0,void 0)}function ne(){return JM(8,void 0,void 0)}function ie(e,t,n){return JM(1024,{target:e,antecedents:t},n)}function oe(e){e.flags|=2048&e.flags?4096:2048}function ae(e,t){1&t.flags||k(e.antecedent,t)||((e.antecedent||(e.antecedent=[])).push(t),oe(t))}function se(e,t,n){return 1&t.flags?t:n?!(112===n.kind&&64&e||97===n.kind&&32&e)||vl(n)||xl(n.parent)?X(n)?(oe(t),JM(e,n,t)):t:I:32&e?t:I}function le(e,t,n,r){return oe(e),JM(128,{switchStatement:t,clauseStart:n,clauseEnd:r},e)}function _e(e,t,n){oe(t),w=!0;const r=JM(e,n,t);return b&&ae(b,r),r}function ue(e,t){return oe(e),w=!0,JM(512,t,e)}function de(e){const t=e.antecedent;return t?1===t.length?t[0]:e:I}function pe(e){for(;;)if(217===e.kind)e=e.expression;else{if(224!==e.kind||54!==e.operator)return eb(e);e=e.operand}}function fe(e){for(;nF(e.parent)||lF(e.parent)&&54===e.parent.operator;)e=e.parent;return!(function(e){const t=e.parent;switch(t.kind){case 245:case 247:case 246:return t.expression===e;case 248:case 227:return t.condition===e}return!1}(e)||pe(e.parent)||hl(e.parent)&&e.parent.expression===e)}function me(e,t,n,r){const i=y,o=v;y=n,v=r,e(t),y=i,v=o}function ge(e,t,n){me(ze,e,t,n),e&&(function(e){return Yv(ah(e))}(e)||pe(e)||hl(e)&&bl(e))||(ae(t,se(32,p,e)),ae(n,se(64,p,e)))}function he(e,t,n){const r=f,i=m;f=t,m=n,ze(e),f=r,m=i}function ye(e,t){let n=S;for(;n&&256===e.parent.kind;)n.continueTarget=t,n=n.next,e=e.parent;return t}function ve(e,t,n){const r=252===e.kind?t:n;r&&(ae(r,p),p=I,w=!0)}function be(e){if(213===e.kind){const t=e;108!==t.expression.kind&&lb(t.expression)&&(p=ue(p,t))}}function xe(e){226===e.kind&&64===e.operatorToken.kind?ke(e.left):ke(e)}function ke(e){if(Q(e))p=_e(16,p,e);else if(209===e.kind)for(const t of e.elements)230===t.kind?ke(t.expression):xe(t);else if(210===e.kind)for(const t of e.properties)303===t.kind?xe(t.initializer):304===t.kind?ke(t.name):305===t.kind&&ke(t.expression)}function Se(e,t,n){const r=te();56===e.operatorToken.kind||77===e.operatorToken.kind?ge(e.left,r,n):ge(e.left,t,r),p=de(r),ze(e.operatorToken),Qv(e.operatorToken.kind)?(me(ze,e.right,t,n),ke(e.left),ae(t,se(32,p,e)),ae(n,se(64,p,e))):ge(e.right,t,n)}function Te(e){const t=hF(e)?void 0:e.name;if(k_(t))for(const e of t.elements)Te(e);else p=_e(16,p,e)}function Ce(e){if(!e)return;const t=p;if(ze(e),t===I||t===p)return;const n=te();ae(n,t),ae(n,p),p=de(n)}function we(e){switch(e.kind){case 211:ze(e.questionDotToken),ze(e.name);break;case 212:ze(e.questionDotToken),ze(e.argumentExpression);break;case 213:ze(e.questionDotToken),H(e.typeArguments),H(e.arguments)}}function Ne(e,t,n){const r=yl(e)?te():void 0;!function(e,t,n){me(ze,e,t,n),hl(e)&&!bl(e)||(ae(t,se(32,p,e)),ae(n,se(64,p,e)))}(e.expression,r||t,n),r&&(p=de(r)),me(we,e,t,n),bl(e)&&(ae(t,se(32,p,e)),ae(n,se(64,p,e)))}function De(e){if(fe(e)){const t=te(),n=p,r=w;Ne(e,t,t),p=w?de(t):n,w||(w=r)}else Ne(e,y,v)}function Fe(e){s&&(s.nextContainer=e),s=e}function Ee(t,n,r){switch(i.kind){case 267:return q(t,n,r);case 307:return function(t,n,r){return VI(e)?q(t,n,r):z(e.locals,void 0,t,n,r)}(t,n,r);case 231:case 263:return function(e,t,n){return Fv(e)?z(i.symbol.exports,i.symbol,e,t,n):z(i.symbol.members,i.symbol,e,t,n)}(t,n,r);case 266:return z(i.symbol.exports,i.symbol,t,n,r);case 187:case 322:case 210:case 264:case 292:return z(i.symbol.members,i.symbol,t,n,r);case 184:case 185:case 179:case 180:case 323:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 317:case 175:case 265:case 200:return i.locals&&_n.assertNode(i,su),z(i.locals,void 0,t,n,r)}}function Pe(e){33554432&e.flags&&!function(e){const t=WE(e)?e:et(e.body,tE);return!!t&&t.statements.some((e=>hE(e)||gE(e)))}(e)?e.flags|=128:e.flags&=-129}function Ae(e){const t=jM(e),n=0!==t;return Ee(e,n?512:1024,n?110735:0),t}function Ie(e,t,n){const r=R(t,n);return 106508&t&&(r.parent=i.symbol),M(r,e,t),r}function Oe(e,t,n){switch(a.kind){case 267:q(e,t,n);break;case 307:if(Yp(i)){q(e,t,n);break}default:_n.assertNode(a,su),a.locals||(a.locals=Ku(),Fe(a)),z(a.locals,void 0,e,t,n)}}function Le(t){if(!(e.parseDiagnostics.length||33554432&t.flags||16777216&t.flags||dh(t))){const n=hc(t);if(void 0===n)return;D&&n>=119&&n<=127?e.bindDiagnostics.push(j(t,function(t){if(Xf(t))return _a.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;if(e.externalModuleIndicator)return _a.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;return _a.Identifier_expected_0_is_a_reserved_word_in_strict_mode}(t),Pp(t))):135===n?VI(e)&&nm(t)?e.bindDiagnostics.push(j(t,_a.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,Pp(t))):65536&t.flags&&e.bindDiagnostics.push(j(t,_a.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Pp(t))):127===n&&16384&t.flags&&e.bindDiagnostics.push(j(t,_a.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,Pp(t)))}}function je(t,n){if(n&&80===n.kind){const i=n;if(VN(r=i)&&("eval"===r.escapedText||"arguments"===r.escapedText)){const r=Xp(e,n);e.bindDiagnostics.push(Xx(e,r.start,r.length,function(t){if(Xf(t))return _a.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 _a.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;return _a.Invalid_use_of_0_in_strict_mode}(t),gc(i)))}}var r}function Re(e){!D||33554432&e.flags||je(e,e.name)}function Me(t){if(n<2&&307!==a.kind&&267!==a.kind&&!i_(a)){const n=Xp(e,t);e.bindDiagnostics.push(Xx(e,n.start,n.length,function(t){return Xf(t)?_a.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?_a.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5_Modules_are_automatically_in_strict_mode:_a.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES5}(t)))}}function Be(t,n,...r){const i=Kp(e,t.pos);e.bindDiagnostics.push(Xx(e,i.start,i.length,n,...r))}function Je(t,n,r,i){!function(t,n,r){const i=Xx(e,n.pos,n.end-n.pos,r);t?e.bindDiagnostics.push(i):e.bindSuggestionDiagnostics=re(e.bindSuggestionDiagnostics,{...i,category:2})}(t,{pos:Jd(n,e),end:r.end},i)}function ze(t){if(!t)return;FT(t,r),$n&&(t.tracingPath=e.path);const n=D;if(We(t),t.kind>165){const e=r;r=t;const n=$M(t);0===n?G(t):function(e,t){const n=i,r=o,s=a,c=C;if(219===e.kind&&241!==e.body.kind&&(C=!0),1&t?(219!==e.kind&&(o=i),i=a=e,32&t&&(i.locals=Ku(),Fe(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=16&t&&!Dv(e,1024)&&!e.asteriskToken&&!!om(e)||175===e.kind;l||(p=JM(2,void 0,void 0),144&t&&(p.node=e)),g=l||176===e.kind||Em(e)&&(262===e.kind||218===e.kind)?te():void 0,b=void 0,f=void 0,m=void 0,S=void 0,T=!1,G(e),e.flags&=-5633,!(1&p.flags)&&8&t&&Nd(e.body)&&(e.flags|=512,T&&(e.flags|=1024),e.endFlowNode=p),307===e.kind&&(e.flags|=N,e.endFlowNode=p),g&&(ae(g,p),p=de(g),(176===e.kind||175===e.kind||Em(e)&&(262===e.kind||218===e.kind))&&(e.returnFlowNode=p)),l||(p=n),f=r,m=i,g=o,b=a,S=s,T=c}else 64&t?(u=!1,G(e),_n.assertNotNode(e,VN),e.flags=u?256|e.flags:-257&e.flags):G(e);C=c,i=n,o=r,a=s}(t,n),r=e}else{const e=r;1===t.kind&&(r=t),qe(t),r=e}D=n}function qe(e){if(Du(e))if(Em(e))for(const t of e.jsDoc)ze(t);else for(const t of e.jsDoc)FT(t,e),ET(t,!1)}function Ue(e){if(!D)for(const t of e){if(!df(t))return;if(Ve(t))return void(D=!0)}}function Ve(t){const n=Ud(e,t.expression);return'"use strict"'===n||"'use strict'"===n}function We(n){switch(n.kind){case 80:if(4096&n.flags){let e=n.parent;for(;e&&!Dg(e);)e=e.parent;Oe(e,524288,788968);break}case 110:return p&&(V_(n)||304===r.kind)&&(n.flowNode=p),Le(n);case 166:p&&km(n)&&(n.flowNode=p);break;case 236:case 108:n.flowNode=p;break;case 81:return function(t){"#constructor"===t.escapedText&&(e.parseDiagnostics.length||e.bindDiagnostics.push(j(t,_a.constructor_is_a_reserved_word,Pp(t))))}(n);case 211:case 212:const o=n;p&&Q(o)&&(o.flowNode=p),fg(o)&&function(e){110===e.expression.kind?Xe(e):og(e)&&307===e.parent.parent.kind&&(db(e.expression)?nt(e,e.parent):rt(e))}(o),Em(o)&&e.commonJsModuleIndicator&&eg(o)&&!HM(a,"module")&&z(e.locals,void 0,o.expression,134217729,111550);break;case 226:switch(tg(n)){case 1:Ke(n);break;case 2:!function(t){if(!He(t))return;const n=Qm(t.right);if(yb(n)||i===e&&WM(e,n))return;if(GD(n)&&h(n.properties,qE))return void _(n.properties,Ge);const r=mh(t)?2097152:1049092,o=z(e.symbol.exports,e.symbol,t,67108864|r,0);mg(o,t)}(n);break;case 3:nt(n.left,n);break;case 6:!function(e){FT(e.left,e),FT(e.right,e),st(e.left.expression,e.left,!1,!0)}(n);break;case 4:Xe(n);break;case 5:const t=n.left.expression;if(Em(n)&&VN(t)){const e=HM(a,t.escapedText);if(cm(null==e?void 0:e.valueDeclaration)){Xe(n);break}}!function(t){var n;const r=ct(t.left.expression,a)||ct(t.left.expression,i);if(!Em(t)&&!gg(r))return;const o=Nx(t.left);if(VN(o)&&2097152&(null==(n=HM(i,o.escapedText))?void 0:n.flags))return;if(FT(t.left,t),FT(t.right,t),VN(t.left.expression)&&i===e&&WM(e,t.left.expression))Ke(t);else if(Mh(t)){Ie(t,67108868,"__computed");Ze(t,it(r,t.left.expression,at(t.left),!1,!1))}else rt(tt(t.left,sg))}(n);break;case 0:break;default:_n.fail("Unknown binary expression special property assignment kind")}return function(e){D&&M_(e.left)&&tb(e.operatorToken.kind)&&je(e,e.left)}(n);case 299:return function(e){D&&e.variableDeclaration&&je(e,e.variableDeclaration.name)}(n);case 220:return function(t){if(D&&80===t.expression.kind){const n=Xp(e,t.expression);e.bindDiagnostics.push(Xx(e,n.start,n.length,_a.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(n);case 225:return function(e){D&&je(e,e.operand)}(n);case 224:return function(e){D&&(46!==e.operator&&47!==e.operator||je(e,e.operand))}(n);case 254:return function(e){D&&Be(e,_a.with_statements_are_not_allowed_in_strict_mode)}(n);case 256:return function(e){D&&vk(t)>=2&&(uu(e.statement)||FF(e.statement))&&Be(e.label,_a.A_label_is_not_allowed_here)}(n);case 197:return void(u=!0);case 182:break;case 168:return function(e){if(NP(e.parent)){const t=Jg(e.parent);t?(_n.assertNode(t,su),t.locals??(t.locals=Ku()),z(t.locals,void 0,e,262144,526824)):Ee(e,262144,526824)}else if(195===e.parent.kind){const t=function(e){const t=uc(e,(e=>e.parent&&OD(e.parent)&&e.parent.extendsType===e));return t&&t.parent}(e.parent);t?(_n.assertNode(t,su),t.locals??(t.locals=Ku()),z(t.locals,void 0,e,262144,526824)):Ie(e,262144,B(e))}else Ee(e,262144,526824)}(n);case 169:return ut(n);case 260:return _t(n);case 208:return n.flowNode=p,_t(n);case 172:case 171:return function(e){const t=p_(e),n=t?13247:0;return dt(e,(t?98304:4)|(e.questionToken?16777216:0),n)}(n);case 303:case 304:return dt(n,4,0);case 306:return dt(n,8,900095);case 179:case 180:case 181:return Ee(n,131072,0);case 174:case 173:return dt(n,8192|(n.questionToken?16777216:0),Bf(n)?0:103359);case 262:return function(t){e.isDeclarationFile||33554432&t.flags||Lh(t)&&(N|=4096);Re(t),D?(Me(t),Oe(t,16,110991)):Ee(t,16,110991)}(n);case 176:return Ee(n,16384,0);case 177:return dt(n,32768,46015);case 178:return dt(n,65536,78783);case 184:case 317:case 323:case 185:return function(e){const t=R(131072,B(e));M(t,e,131072);const n=R(2048,"__type");M(n,e,2048),n.members=Ku(),n.members.set(t.escapedName,t)}(n);case 187:case 322:case 200:return function(e){return Ie(e,2048,"__type")}(n);case 332:return function(e){K(e);const t=qg(e);t&&174!==t.kind&&M(t.symbol,t,32)}(n);case 210:return function(e){return Ie(e,4096,"__object")}(n);case 218:case 219:return function(t){e.isDeclarationFile||33554432&t.flags||Lh(t)&&(N|=4096);p&&(t.flowNode=p);Re(t);const n=t.name?t.name.escapedText:"__function";return Ie(t,16,n)}(n);case 213:switch(tg(n)){case 7:return function(e){let t=ct(e.arguments[0]);const n=307===e.parent.parent.kind;t=it(t,e.arguments[0],n,!1,!1),ot(e,t,!1)}(n);case 8:return function(e){if(!He(e))return;const t=lt(e.arguments[0],void 0,((e,t)=>(t&&M(t,e,67110400),t)));if(t){const n=1048580;z(t.exports,t,e,n,0)}}(n);case 9:return function(e){const t=ct(e.arguments[0].expression);t&&t.valueDeclaration&&M(t,t.valueDeclaration,32);ot(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)&&He(t)}(n);break;case 231:case 263:return D=!0,function(t){if(263===t.kind)Oe(t,32,899503);else{Ie(t,32,t.name?t.name.escapedText:"__class"),t.name&&E.add(t.name.escapedText)}const{symbol:n}=t,r=R(4194308,"prototype"),i=n.exports.get(r.escapedName);i&&(t.name&&FT(t.name,t),e.bindDiagnostics.push(j(i.declarations[0],_a.Duplicate_identifier_0,yc(r))));n.exports.set(r.escapedName,r),r.parent=n}(n);case 264:return Oe(n,64,788872);case 265:return Oe(n,524288,788968);case 266:return function(e){return ef(e)?Oe(e,128,899967):Oe(e,256,899327)}(n);case 267:return function(t){if(Pe(t),sp(t))if(Dv(t,32)&&Be(t,_a.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),fp(t))Ae(t);else{let n;if(11===t.name.kind){const{text:e}=t.name;n=KS(e),void 0===n&&Be(t.name,_a.Pattern_0_can_have_at_most_one_Asterisk_character,e)}const r=Ee(t,512,110735);e.patternAmbientModules=re(e.patternAmbientModules,n&&!Ye(n)?{pattern:n,symbol:r}:void 0)}else{const e=Ae(t);if(0!==e){const{symbol:n}=t;n.constEnumOnlyModule=!(304&n.flags)&&2===e&&!1!==n.constEnumOnlyModule}}}(n);case 292:return function(e){return Ie(e,4096,"__jsxAttributes")}(n);case 291:return function(e,t,n){return Ee(e,t,n)}(n,4,0);case 271:case 274:case 276:case 281:return Ee(n,2097152,2097152);case 270:return function(t){V(t.modifiers)&&e.bindDiagnostics.push(j(t,_a.Modifiers_cannot_appear_here));const n=WE(t.parent)?VI(t.parent)?t.parent.isDeclarationFile?void 0:_a.Global_module_exports_may_only_appear_in_declaration_files:_a.Global_module_exports_may_only_appear_in_module_files:_a.Global_module_exports_may_only_appear_at_top_level;n?e.bindDiagnostics.push(j(t,n)):(e.symbol.globalExports=e.symbol.globalExports||Ku(),z(e.symbol.globalExports,e.symbol,t,2097152,2097152))}(n);case 273:return function(e){e.name&&Ee(e,2097152,2097152)}(n);case 278:return function(e){i.symbol&&i.symbol.exports?e.exportClause?pE(e.exportClause)&&(FT(e.exportClause,e),z(i.symbol.exports,i.symbol,e.exportClause,2097152,2097152)):z(i.symbol.exports,i.symbol,e,8388608,0):Ie(e,8388608,B(e))}(n);case 277:return function(e){if(i.symbol&&i.symbol.exports){const t=mh(e)?2097152:4,n=z(i.symbol.exports,i.symbol,e,t,-1);e.isExportEquals&&mg(n,e)}else Ie(e,111551,B(e))}(n);case 307:return Ue(n.statements),function(){if(Pe(e),VI(e))$e();else if(Zp(e)){$e();const t=e.symbol;z(e.symbol.exports,e.symbol,e,4,-1),e.symbol=t}}();case 241:if(!i_(n.parent))return;case 268:return Ue(n.statements);case 341:if(323===n.parent.kind)return ut(n);if(322!==n.parent.kind)break;case 348:const s=n;return Ee(s,s.isBracketed||s.typeExpression&&316===s.typeExpression.type.kind?16777220:4,0);case 346:case 338:case 340:return(c||(c=[])).push(n);case 339:return ze(n.typeExpression);case 351:return(d||(d=[])).push(n)}}function $e(){Ie(e,512,`"${VS(e.fileName)}"`)}function He(t){return(!e.externalModuleIndicator||!0===e.externalModuleIndicator)&&(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=t,e.externalModuleIndicator||$e()),!0)}function Ke(e){if(!He(e))return;const t=lt(e.left.expression,void 0,((e,t)=>(t&&M(t,e,67110400),t)));if(t){const n=fh(e.right)&&(Ym(e.left.expression)||eg(e.left.expression))?2097152:1048580;FT(e.left,e),z(t.exports,t,e.left,n,0)}}function Ge(t){z(e.symbol.exports,e.symbol,t,69206016,0)}function Xe(e){_n.assert(Em(e));if(uF(e)&&XD(e.left)&&WN(e.left.name)||XD(e)&&WN(e.name))return;const t=em(e,!1,!1);switch(t.kind){case 262:case 218:let n=t.symbol;if(uF(t.parent)&&64===t.parent.operatorToken.kind){const e=t.parent.left;og(e)&&db(e.expression)&&(n=ct(e.expression.expression,o))}n&&n.valueDeclaration&&(n.members=n.members||Ku(),Mh(e)?Qe(e,n,n.members):z(n.members,n,e,67108868,0),M(n,n.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const r=t.parent,i=Fv(t)?r.symbol.exports:r.symbol.members;Mh(e)?Qe(e,r.symbol,i):z(i,r.symbol,e,67108868,0,!0);break;case 307:if(Mh(e))break;t.commonJsModuleIndicator?z(t.symbol.exports,t.symbol,e,1048580,0):Ee(e,1,111550);break;case 267:break;default:_n.failBadSyntaxKind(t)}}function Qe(e,t,n){z(n,t,e,4,0,!0,!0),Ze(e,t)}function Ze(e,t){t&&(t.assignmentDeclarationMembers||(t.assignmentDeclarationMembers=new Map)).set($B(e),e)}function nt(e,t){const n=e.expression,r=n.expression;FT(r,n),FT(n,e),FT(e,t),st(r,e,!0,!0)}function rt(e){_n.assert(!VN(e)),FT(e.expression,e),st(e.expression,e,!1,!1)}function it(t,n,r,i,o){if(2097152&(null==t?void 0:t.flags))return t;if(r&&!i){const r=67110400,i=110735;t=lt(n,t,((t,n,o)=>{if(n)return M(n,t,r),n;return z(o?o.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Ku()),o,t,r,i)}))}return o&&t&&t.valueDeclaration&&M(t,t.valueDeclaration,32),t}function ot(e,t,n){if(!t||!function(e){if(1072&e.flags)return!0;const t=e.valueDeclaration;if(t&&YD(t))return!!$m(t);let n=t?HF(t)?t.initializer:uF(t)?t.right:XD(t)&&uF(t.parent)?t.parent.right:void 0:void 0;if(n=n&&Qm(n),n){const e=db(HF(t)?t.name:uF(t)?t.left:t);return!!Hm(!uF(n)||57!==n.operatorToken.kind&&61!==n.operatorToken.kind?n:n.right,e)}return!1}(t))return;const r=n?t.members||(t.members=Ku()):t.exports||(t.exports=Ku());let i=0,o=0;o_($m(e))?(i=8192,o=103359):YD(e)&&ng(e)&&(V(e.arguments[2].properties,(e=>{const t=Cc(e);return!!t&&VN(t)&&"set"===gc(t)}))&&(i|=65540,o|=78783),V(e.arguments[2].properties,(e=>{const t=Cc(e);return!!t&&VN(t)&&"get"===gc(t)}))&&(i|=32772,o|=46015)),0===i&&(i=4,o=0),z(r,t,e,67108864|i,-67108865&o)}function at(e){return uF(e.parent)?307===function(e){for(;uF(e.parent);)e=e.parent;return e.parent}(e.parent).parent.kind:307===e.parent.parent.kind}function st(e,t,n,r){let o=ct(e,a)||ct(e,i);const s=at(t);o=it(o,t.expression,s,n,r),ot(t,o,n)}function ct(e,t=i){if(VN(e))return HM(t,e.escapedText);{const t=ct(e.expression);return t&&t.exports&&t.exports.get(_g(e))}}function lt(t,n,r){if(WM(e,t))return e.symbol;if(VN(t))return r(t,ct(t),n);{const e=lt(t.expression,n,r),i=cg(t);return WN(i)&&_n.fail("unexpected PrivateIdentifier"),r(i,e&&e.exports&&e.exports.get(_g(t)),e)}}function _t(e){if(D&&je(e,e.name),!k_(e.name)){const t=260===e.kind?e:e.parent.parent;!Em(e)||!Rm(t)||tl(e)||32&ic(e)?op(e)?Oe(e,2,111551):Qh(e)?Ee(e,1,111551):Ee(e,1,111550):Ee(e,2097152,2097152)}}function ut(e){if((341!==e.kind||323===i.kind)&&(!D||33554432&e.flags||je(e,e.name),k_(e.name)?Ie(e,1,"__"+e.parent.parameters.indexOf(e)):Ee(e,1,111551),Zs(e,e.parent))){const t=e.parent.parent;z(t.symbol.members,t.symbol,e,4|(e.questionToken?16777216:0),0)}}function dt(t,n,r){return e.isDeclarationFile||33554432&t.flags||!Lh(t)||(N|=4096),p&&Jf(t)&&(t.flowNode=p),Mh(t)?Ie(t,n,"__computed"):Ee(t,n,r)}}function VM(e,t){return 266===e.kind&&(!ef(e)||Ek(t))}function WM(e,t){let n=0;const r=Ke();for(r.enqueue(t);!r.isEmpty()&&n<100;){if(n++,Ym(t=r.dequeue())||eg(t))return!0;if(VN(t)){const n=HM(e,t.escapedText);if(n&&n.valueDeclaration&&HF(n.valueDeclaration)&&n.valueDeclaration.initializer){const e=n.valueDeclaration.initializer;r.enqueue(e),ib(e,!0)&&(r.enqueue(e.left),r.enqueue(e.right))}}}return!1}function $M(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 322:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 307:return 37;case 177:case 178:case 174:if(Jf(e))return 173;case 176:case 262:case 173:case 179:case 323:case 317:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return r_(e.parent)||fD(e.parent)?0:34}return 0}function HM(e,t){var n,r,i,o;const a=null==(r=null==(n=et(e,su))?void 0:n.locals)?void 0:r.get(t);return a?a.exportSymbol??a:WE(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t)?e.jsGlobalAugmentations.get(t):au(e)?null==(o=null==(i=e.symbol)?void 0:i.exports)?void 0:o.get(t):void 0}function KM(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{N(d),N(p)}},walkSymbol:e=>{try{return h(e),{visitedTypes:Pe(d),visitedSymbols:Pe(p)}}finally{N(d),N(p)}}};function f(e){if(!e)return;if(d[e.id])return;d[e.id]=e;if(!h(e.symbol)){if(524288&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;262144&e.flags&&function(e){f(s(e))}(e),3145728&e.flags&&function(e){_(e.types,f)}(e),4194304&e.flags&&function(e){f(e.type)}(e),8388608&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=HB(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&&186===e.type.kind){const t=e.type;h(a(c(t.exprName)))}})),!1}}}var GM={};n(GM,{RelativePreference:()=>QM,countPathComponents:()=>uB,forEachFileNameOfModule:()=>fB,getLocalModuleSpecifierBetweenFileNames:()=>sB,getModuleSpecifier:()=>eB,getModuleSpecifierPreferences:()=>YM,getModuleSpecifiers:()=>oB,getModuleSpecifiersWithCacheInfo:()=>aB,getNodeModulesPackageName:()=>tB,tryGetJSExtensionForFile:()=>CB,tryGetModuleSpecifiersFromCache:()=>rB,tryGetRealFileNameForNonJsDeclarationFileName:()=>SB,updateModuleSpecifier:()=>ZM});var XM=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}})),QM=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(QM||{});function YM({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t,autoImportSpecifierExcludeRegexes:n},r,i,o,a){const s=c();return{excludeRegexes:n,relativePreference:void 0!==a?Cs(a)?0:1:"relative"===e?0:"non-relative"===e?1:"project-relative"===e?3:2,getAllowedEndingsInPreferredOrder:e=>{const t=DB(o,r,i),n=e!==t?c(e):s,a=xk(i);if(99===(e??t)&&3<=a&&a<=99)return EM(i,o.fileName)?[3,2]:[2];if(1===xk(i))return 2===n?[2,1]:[1,2];const l=EM(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(LS(a))return 2;if(jt(a,"/index"))return 1}return BS(t,e??DB(o,r,i),i,Dm(o)?o:void 0)}}function ZM(e,t,n,r,i,o,a={}){const s=nB(e,t,n,r,i,YM({},i,e,t,o),{},a);if(s!==o)return s}function eB(e,t,n,r,i,o={}){return nB(e,t,n,r,i,YM({},i,e,t),{},o)}function tB(e,t,n,r,i,o={}){const a=lB(t.fileName,r);return d(mB(a,n,r,i,e,o),(n=>bB(n,a,t,r,e,i,!0,o.overrideImportMode)))}function nB(e,t,n,r,i,o,a,s={}){const c=lB(n,i);return d(mB(c,r,i,a,e,s),(n=>bB(n,c,t,i,e,a,void 0,s.overrideImportMode)))||_B(r,c,e,i,s.overrideImportMode||DB(t,i,e),o)}function rB(e,t,n,r,i={}){const o=iB(e,t,n,r,i);return o[1]&&{kind:o[0],moduleSpecifiers:o[1],computedWithoutCache:!1}}function iB(e,t,n,r,i={}){var o;const a=vd(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 oB(e,t,n,r,i,o,a={}){return aB(e,t,n,r,i,o,a,!1).moduleSpecifiers}function aB(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=>lp(e)&&(!pp(e)||!Cs(qh(e.name)))));if(r)return r.name.text;const i=R(e.declarations,(e=>{var n,r,i,o;if(!eE(e))return;const a=l(e);if(!((null==(n=null==a?void 0:a.parent)?void 0:n.parent)&&tE(a.parent)&&sp(a.parent.parent)&&WE(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&&cB(u,o.autoImportSpecifierExcludeRegexes)?s:[u],computedWithoutCache:l};let[d,p,f,m,g]=iB(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=hB(lB(r.fileName,i),f.originalFileName,i,n,a));const h=function(e,t,n,r,i,o={},a){const c=lB(n.fileName,r),l=YM(i,r,t,n),u=Dm(n)&&_(e,(e=>_(r.getFileIncludeReasons().get(Uo(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=qV(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?bB(s,c,n,r,t,i,void 0,o.overrideImportMode):void 0;if(e&&(!a||!cB(e,l.excludeRegexes))&&(p=re(p,e),s.isRedirect))return{kind:"node_modules",moduleSpecifiers:p,computedWithoutCache:!0};const _=_B(s.path,c,t,r,o.overrideImportMode||n.impliedNodeFormat,l,s.isRedirect||!!e);!_||a&&cB(_,l.excludeRegexes)||(s.isRedirect?m=re(m,_):xo(_)?qR(_)?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 _B(t,lB(e.fileName,r),n,r,o.overrideImportMode??e.impliedNodeFormat,YM(i,r,n,e))}function cB(e,t){return V(t,(t=>{var n;return!!(null==(n=XM(t))?void 0:n.test(e))}))}function lB(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 _B(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=xB(t,e,r);if(void 0===a)return;const s=xB(n,e,r),c=A(s,(e=>D(a,(t=>$o(ra(e,t,r)))))),l=xt(c,qS);if(!l)return;return kB(l,i,o)}(d,e,p,m,g,n)||kB($o(ra(p,e,m)),g,n);if(!l&&!u&&!Nk(n)||0===a)return c?void 0:h;const y=Jo(Ky(n,r)||l,r.getCurrentDirectory()),v=wB(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||!Nk(n))return;const l=pB(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(pR(d)||!r.fileExists(u))return;const p=(null==d?void 0:d.contents.packageJsonContent)||Db(r.readFile(u)),f=null==p?void 0:p.imports;if(!f)return;const m=lR(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 vB(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&&t<e.indexOf(2)}(g)),x=c||void 0===b?u&&yB(v,u,g,y,m,r,n):void 0;if(c)return x;const k=b??(void 0===x&&void 0!==l?kB(v,g,n):x);if(!k)return h;const S=cB(h,s),T=cB(k,s);if(!S&&T)return h;if(S&&!T)return k;if(1===a&&!bo(k))return k;if(3===a&&!bo(k)){const i=n.configFilePath?Uo(Fo(n.configFilePath),r.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(r.getCurrentDirectory()),o=Uo(e,i,m),a=Kt(f,i),s=Kt(o,i);if(a&&!s||!a&&s)return k;return function(e,t,n){return e===t||void 0!==e&&void 0!==t&&0===Zo(e,t,n)}(pB(r,Fo(o)),pB(r,p),!jy(r))?h:k}return NB(k)||uB(h)<uB(k)?h:k}function uB(e){let t=0;for(let n=Kt(e,"./")?2:0;n<e.length;n++)47===e.charCodeAt(n)&&t++;return t}function dB(e,t){return It(t.isRedirect,e.isRedirect)||qS(e.path,t.path)}function pB(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):hM(e,t,(t=>e.fileExists(Ro(t,"package.json"))?t:void 0))}function fB(e,t,n,r,i){var o;const a=Ry(n),c=n.getCurrentDirectory(),l=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,u=Uo(t,c,a),d=n.redirectTargetsMap.get(u)||s,p=[...l?[l]:s,t,...d].map((e=>Jo(e,c)));let f=!h(p,OT);if(!r){const e=_(p,(e=>!(f&&OT(e))&&i(e,l===e)));if(e)return e}const m=null==(o=n.getSymlinkCache)?void 0:o.call(n).getSymlinkedDirectoriesByRealpath(),g=Jo(t,c);return m&&hM(n,Fo(g),(t=>{const n=m.get(Wo(Uo(t,c,a)));if(n)return!ta(e,t,a)&&_(p,(e=>{if(!ta(e,t,a))return;const r=ra(t,e,a);for(const t of n){const n=Mo(t,r),o=i(n,e===l);if(f=!0,o)return o}}))}))||(r?_(p,(e=>f&&OT(e)?void 0:i(e,e===l))):void 0)}function mB(e,t,n,r,i,o={}){var a;const s=Uo(e.importingSourceFileName,n.getCurrentDirectory(),Ry(n)),c=Uo(t,n.getCurrentDirectory(),Ry(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 _=hB(e,t,n,i,o);return l&&l.setModulePaths(s,c,r,o,_),_}var gB=["dependencies","peerDependencies","optionalDependencies"];function hB(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&&!qR(e.importingSourceFileName)){_n.type(n);const t=tM(c.getPackageJsonInfoCache(),n,{}),o=nM(Fo(e.importingSourceFileName),t);if(o){const e=function(e){let t;for(const n of gB){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=FR(t,Ro(o.packageDirectory,"package.json"),r,n,c,void 0,i.overrideImportMode);l.setSymlinksFromResolution(e.resolvedModule)}}}const _=new Map;let u=!1;fB(e.importingSourceFileName,t,n,!0,((t,n)=>{const r=qR(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=Wo(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(dB),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(dB),d.push(...e)}return d}function yB(e,t,n,r,i,o,a){for(const o in t)for(const c of t[o]){const t=zo(c),l=wB(t,r,i)??t,_=l.indexOf("*"),u=n.map((t=>({ending:t,value:kB(e,[t],a)})));if(nT(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 pC(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===kB(e,[t],a,o)}}function vB(e,t,n,r,i,o,a,s,c,l){if("string"==typeof o){const a=!jy(t),_=()=>t.getCommonSourceDirectory(),u=c&&Gq(n,e,a,_),d=c&&Hq(n,e,a,_),p=Jo(Ro(r,o),void 0),f=jS(n)?VS(n)+CB(n,e):void 0,m=l&&RS(n);switch(s){case 0:if(f&&0===Zo(f,p,a)||0===Zo(n,p,a)||u&&0===Zo(u,p,a)||d&&0===Zo(d,p,a))return{moduleFileToTry:i};break;case 1:if(m&&ea(n,p,a)){const e=ra(p,n,!1);return{moduleFileToTry:Jo(Ro(Ro(i,o),e),void 0)}}if(f&&ea(p,f,a)){const e=ra(p,f,!1);return{moduleFileToTry:Jo(Ro(Ro(i,o),e),void 0)}}if(!m&&ea(p,n,a)){const e=ra(p,n,!1);return{moduleFileToTry:Jo(Ro(Ro(i,o),e),void 0)}}if(u&&ea(p,u,a)){const e=ra(p,u,!1);return{moduleFileToTry:Ro(i,e)}}if(d&&ea(p,d,a)){const t=Ko(ra(p,d,!1),TB(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:pC(i,e)}}if(f&&Kt(f,r,a)&&jt(f,s,a)){const e=f.slice(r.length,f.length-s.length);return{moduleFileToTry:pC(i,e)}}if(!m&&Kt(n,r,a)&&jt(n,s,a)){const e=n.slice(r.length,n.length-s.length);return{moduleFileToTry:pC(i,e)}}if(u&&Kt(u,r,a)&&jt(u,s,a)){const e=u.slice(r.length,u.length-s.length);return{moduleFileToTry:pC(i,e)}}if(d&&Kt(d,r,a)&&jt(d,s,a)){const t=d.slice(r.length,d.length-s.length),n=pC(i,t),o=CB(d,e);return o?{moduleFileToTry:Ko(n,o)}:void 0}}}else{if(Array.isArray(o))return _(o,(o=>vB(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||fM(a,_)){const u=o[_],d=vB(e,t,n,r,i,u,a,s,c,l);if(d)return d}}}function bB({path:e,isRedirect:t},{getCanonicalFileName:n,canonicalSourceDirectory:r},i,o,a,s,c,l){if(!o.fileExists||!o.readFile)return;const u=VT(e);if(!u)return;const d=YM(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!==xk(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=kB(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=CM(h);return 1===xk(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(dR(g)||void 0===g&&o.fileExists(p)){const t=(null==g?void 0:g.contents.packageJsonContent)||Db(o.readFile(p)),r=l||DB(i,o,a);if(wk(a)){const n=CM(c.substring(u.topLevelPackageNameIndex+1)),i=lR(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)&&lM(o)?_(Fe(o),(s=>{const c=Jo(Ro(i,s),void 0),l=jt(s,"/")?1:s.includes("*")?2:0;return vB(e,t,n,r,c,o[s],a,l,!1,!1)})):vB(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)?tR(t.typesVersions):void 0;if(s){const t=yB(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||!oT(XS(s.paths),h))){const e=Uo(h,c,n),r=n(f);if(VS(e)===VS(r))return{packageRootPath:c,moduleFileToTry:f};if("module"!==(null==t?void 0:t.type)&&!To(r,AS)&&Kt(r,e)&&Fo(r)===Vo(e)&&"index"===VS(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 xB(e,t,n){return R(t,(t=>{const r=wB(e,t,n);return void 0!==r&&NB(r)?void 0:r}))}function kB(e,t,n,r){if(To(e,[".json",".mjs",".cjs"]))return e;const i=VS(e);if(e===i)return e;const o=t.indexOf(2),a=t.indexOf(3);if(To(e,[".mts",".cts"])&&-1!==a&&a<o)return e;if(To(e,[".d.mts",".mts",".d.cts",".cts"]))return i+TB(e,n);if(!To(e,[".d.ts"])&&To(e,[".ts"])&&e.includes(".d."))return SB(e);switch(t[0]){case 0:const a=Rt(i,"/index");return r&&a!==i&&function(e,t){if(!e.fileExists)return;const n=P(IS({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const r of n){const n=t+r;if(e.fileExists(n))return n}}(r,a)?i:a;case 1:return i;case 2:return i+TB(e,n);case 3:if(YI(e)){const r=t.findIndex((e=>0===e||1===e));return-1!==r&&r<o?i:i+TB(e,n)}return e;default:return _n.assertNever(t[0])}}function SB(e){const t=Eo(e);if(!jt(e,".ts")||!t.includes(".d.")||To(t,[".d.ts"]))return;const n=$S(e,".ts"),r=n.substring(n.lastIndexOf("."));return n.substring(0,n.indexOf(".d."))+r}function TB(e,t){return CB(e,t)??_n.fail(`Extension ${eT(e)} is unsupported:: FileName:: ${e}`)}function CB(e,t){const n=nT(e);switch(n){case".ts":case".d.ts":return".js";case".tsx":return 1===t.jsx?".jsx":".js";case".js":case".jsx":case".json":return n;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function wB(e,t,n){const r=aa(t,e,t,n,!1);return ho(r)?void 0:r}function NB(e){return Kt(e,"..")}function DB(e,t,n){return Dm(e)?t.getDefaultResolutionModeForFile(e):OV(e,n)}var FB,EB,PB,AB=/^".+"$/,IB="(anonymous)",OB=1,LB=1,jB=1,RB=1,MB=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.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))(MB||{}),BB=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),JB=(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))(JB||{}),zB=(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))(zB||{}),qB=Yt(XB,(function(e){return!d_(e)})),UB=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),VB=class{};function WB(){this.flags=0}function $B(e){return e.id||(e.id=LB,LB++),e.id}function HB(e){return e.id||(e.id=OB,OB++),e.id}function KB(e,t){const n=jM(e);return 1===n||t&&2===n}function GB(e){var t,n,r,i,o=[],a=e=>{o.push(e)},c=Mx.getSymbolConstructor(),u=Mx.getTypeConstructor(),p=Mx.getSignatureConstructor(),f=0,m=0,g=0,S=0,w=0,F=0,I=!1,O=Ku(),L=[1],j=e.getCompilerOptions(),M=vk(j),z=bk(j),q=!!j.experimentalDecorators,U=Ok(j),W=Uk(j),H=Ck(j),G=zk(j,"strictNullChecks"),Q=zk(j,"strictFunctionTypes"),Y=zk(j,"strictBindCallApply"),Z=zk(j,"strictPropertyInitialization"),te=zk(j,"strictBuiltinIteratorReturn"),ie=zk(j,"noImplicitAny"),oe=zk(j,"noImplicitThis"),le=zk(j,"useUnknownInCatchVariables"),_e=j.exactOptionalPropertyTypes,de=!!j.noUncheckedSideEffectImports,ve=function(){const e=KA((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)&&$m(e))return t.skip=!0,i(t,IR(e.right,r)),t;!function(e){const{left:t,operatorToken:n,right:r}=e;if(61===n.kind){!uF(t)||57!==t.operatorToken.kind&&56!==t.operatorToken.kind||Lq(t,_a._0_and_1_operations_cannot_be_mixed_without_parentheses,Fa(t.operatorToken.kind),Fa(n.kind)),!uF(r)||57!==r.operatorToken.kind&&56!==r.operatorToken.kind||Lq(r,_a._0_and_1_operations_cannot_be_mixed_without_parentheses,Fa(r.operatorToken.kind),Fa(n.kind));const i=uA(t,63),o=oR(i);3!==o&&(226===e.parent.kind?Ro(i,_a.This_binary_expression_is_never_nullish_Are_you_missing_parentheses):Ro(i,1===o?_a.This_expression_is_always_nullish:_a.Right_operand_of_is_unreachable_because_the_left_operand_is_never_nullish))}}(e);if(64===e.operatorToken.kind&&(210===e.left.kind||209===e.left.kind))return t.skip=!0,i(t,nR(e.left,IR(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(Zv(s)){let e=o.parent;for(;217===e.kind||eb(e);)e=e.parent;(56===s||AF(e))&&sB(o.left,a,AF(e)?e.thenStatement:void 0),Gv(s)&&cB(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=aR(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(uF(t))return t;i(e,IR(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}}(),be={getReferencedExportContainer:wz,getReferencedImportDeclaration:Nz,getReferencedDeclarationWithCollidingName:Fz,isDeclarationWithCollidingName:Ez,isValueAliasDeclaration:e=>{const t=pc(e);return!t||!Je||Pz(t)},hasGlobalName:Qz,isReferencedAliasDeclaration:(e,t)=>{const n=pc(e);return!n||!Je||Lz(n,t)},hasNodeCheckFlag:(e,t)=>{const n=pc(e);return!!n&&zz(n,t)},isTopLevelValueImportEqualsWithEntityName:Az,isDeclarationVisible:Rc,isImplementationOfOverload:jz,requiresAddingImplicitUndefined:Rz,isExpandoFunctionDeclaration:Mz,getPropertiesOfContainerFunction:Bz,createTypeOfDeclaration:Hz,createReturnTypeOfSignatureDeclaration:Gz,createTypeOfExpression:Xz,createLiteralConstValue:nq,isSymbolAccessible:Gs,isEntityNameVisible:oc,getConstantValue:e=>{const t=pc(e,Uz);return t?Vz(t):void 0},getEnumMemberValue:e=>{const t=pc(e,VE);return t?qz(t):void 0},collectLinkedAliases:Bc,markLinkedReferences:e=>{const t=pc(e);return t&&bP(t,0)},getReferencedValueDeclaration:Zz,getReferencedValueDeclarations:eq,getTypeReferenceSerializationKind:$z,isOptionalParameter:bg,isArgumentsLocalBinding:Cz,getExternalModuleFileFromDeclaration:e=>{const t=pc(e,wp);return t&&aq(t)},isLiteralConstDeclaration:tq,isLateBound:e=>{const t=pc(e,_u),n=t&&hs(t);return!!(n&&4096&ix(n))},getJsxFactoryEntity:rq,getJsxFragmentFactoryEntity:iq,isBindingCapturedByNode:(e,t)=>{const n=pc(e),r=pc(t);return!!n&&!!r&&(HF(r)||HD(r))&&function(e,t){const n=sa(e);return!!n&&k(n.capturedBlockScopeBindings,hs(t))}(n,r)},getDeclarationStatementsForSourceFile:(e,t,n,r)=>{const i=pc(e);_n.assert(i&&307===i.kind,"Non-sourcefile node passed into getDeclarationsForSourceFile");const o=hs(e);return o?(rs(o),o.exports?xe.symbolTableToDeclarationStatements(o.exports,e,t,n,r):[]):e.locals?xe.symbolTableToDeclarationStatements(e.locals,e,t,n,r):[]},isImportRequiredByAugmentation:function(e){const t=yd(e);if(!t.symbol)return!1;const n=aq(e);if(!n)return!1;if(n===t)return!1;const r=us(t.symbol);for(const e of Ie(r.values()))if(e.mergeId){const t=fs(e);if(t.declarations)for(const e of t.declarations)if(yd(e)===n)return!0}return!1},isDefinitelyReferenceToGlobalSymbolObject:Do,createLateBoundIndexSignatures:(e,t,n,r,i)=>{const o=e.symbol,a=qm(F_(o)),s=Ih(o),c=s&&Hh(s,Ie(kd(o).values()));let _;for(const e of[a,c])if(l(e)){_||(_=[]);for(const o of e){if(o.declaration)continue;if(o===di)continue;const s=xe.indexInfoToIndexSignatureDeclaration(o,t,n,r,i);s&&e===a&&(s.modifiers||(s.modifiers=ZC.createNodeArray())).unshift(ZC.createModifier(126)),s&&_.push(s)}}return _}},xe=function(){return{syntacticBuilderResolver:{evaluateEntityNameExpression:AJ,isExpandoFunctionDeclaration:Mz,hasLateBindableName:cd,shouldRemoveDeclaration:(e,t)=>!(8&e.internalFlags&&sb(t.name.expression)&&1&nI(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 tJ(e,{...o.inner,reportCyclicStructureError(){c((()=>o.reportCyclicStructureError()))},reportInaccessibleThisError(){c((()=>o.reportInaccessibleThisError()))},reportInaccessibleUniqueSymbolError(){c((()=>o.reportInaccessibleUniqueSymbolError()))},reportLikelyUnsafeImportRequiredError(e){c((()=>o.reportLikelyUnsafeImportRequiredError(e)))},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:Do,getAllAccessorDeclarations:Kz,requiresAddingImplicitUndefined(e,t,n){var r;switch(e.kind){case 172:case 171:case 348:t??(t=hs(e));const i=F_(t);return!!(4&t.flags&&16777216&t.flags&&QT(e)&&(null==(r=t.links)?void 0:r.mappedType)&&function(e){const t=1048576&e.flags?e.types[0]:e;return!!(32768&t.flags)&&t!==Mt}(i));case 169:case 341:return Rz(e,n);default:_n.assertNever(e)}},isOptionalParameter:bg,isUndefinedIdentifierExpression:e=>(_n.assert(bm(e)),hz(e)===De),isEntityNameVisible:(e,t,n)=>oc(t,e.enclosingDeclaration,n),serializeExistingTypeNode:(e,t,r)=>function(e,t,r){const i=n(e,t);if(r&&!EF(i,(e=>!!(32768&e.flags)))&&ve(e,t)){const n=Te.tryReuseExistingTypeNode(e,t);if(n)return ZC.createUnionTypeNode([n,ZC.createKeywordTypeNode(157)])}return m(i,e)}(e,t,!!r),serializeReturnTypeForSignature(e,t){const n=e,r=Pg(t),i=n.enclosingSymbolTypes.get(HB(hs(t)))??yS(Zg(r),n.mapper);return ge(n,r,i)},serializeTypeOfExpression(e,t){const n=e;return m(yS(Uw(bz(t)),n.mapper),n)},serializeTypeOfDeclaration(e,t,n){var r;const i=e;n??(n=hs(t));let o=null==(r=i.enclosingSymbolTypes)?void 0:r.get(HB(n));void 0===o&&(o=!n||133120&n.flags?Et:yS(iw(F_(n)),i.mapper));return t&&(cD(t)||SP(t))&&Rz(t,i.enclosingDeclaration)&&(o=Sw(o)),pe(n,i,o)},serializeNameOfParameter:(e,t)=>z(hs(t),t,e),serializeEntityName(e,t){const n=e,r=hz(t,!0);if(r&&$s(r,n.enclosingDeclaration))return oe(r,n,1160127)},serializeTypeName:(e,t,n,r)=>function(e,t,n,r){const i=n?111551:788968,o=Xa(t,i,!0);if(!o)return;const a=2097152&o.flags?qa(o):o;return 0!==Gs(o,e.enclosingDeclaration,i,!1).accessibility?void 0:ee(a,e,i,r)}(e,t,n,r),getJsDocPropertyOverride(e,t,r){const i=e,o=VN(r.name)?r.name:r.name.right,a=Wc(n(i,t),o.escapedText);return a&&r.typeExpression&&n(i,r.typeExpression.type)!==a?m(a,i):void 0},enterNewScope(e,t){if(r_(t)||lP(t)){const n=Pg(t);return P(e,t,n.parameters,n.typeParameters)}return P(e,t,void 0,OD(t)?Zx(t):[ku(hs(t.typeParameter))])},markNodeReuse:(e,t,n)=>r(e,t,n),trackExistingEntityName:(e,t)=>he(t,e),trackComputedName(e,t){q(t,e.enclosingDeclaration,e)},getModuleSpecifierOverride(e,t,n){const r=e;if(r.bundled||r.enclosingFile!==yd(n)){let e=n.text;const i=sa(t).resolvedSymbol,o=t.isTypeOf?111551:788968,a=i&&0===Gs(i,r.enclosingDeclaration,o,!1).accessibility&&U(i,r,o,!0)[0];if(a&&Xu(a))e=Y(a,r);else{const n=aq(t);n&&(e=Y(n.symbol,r))}return e.includes("/node_modules/")&&(r.encounteredError=!0,r.tracker.reportLikelyUnsafeImportRequiredError&&r.tracker.reportLikelyUnsafeImportRequiredError(e)),e}},canReuseTypeNode:(e,t)=>ve(e,t),canReuseTypeNodeAnnotation(e,t,n,r,i){var o;const a=e;if(void 0===a.enclosingDeclaration)return!1;r??(r=hs(t));let s=null==(o=a.enclosingSymbolTypes)?void 0:o.get(HB(r));void 0===s&&(s=98304&r.flags?178===t.kind?D_(r):g_(r):eh(t)?Zg(Pg(t)):F_(r));let c=wc(n);return!!Gc(c)||(i&&c&&(c=Sw(c,!cD(t))),!!c&&function(e,t,n){if(n===t)return!0;if(!e)return!1;if((_D(e)||uD(e))&&e.questionToken)return iD(t,524288)===n;if(cD(e)&&vg(e))return iD(t,524288)===n;return!1}(t,s,c)&&de(n,s))}},typeToTypeNode:(e,t,n,r,i,a,s)=>o(t,n,r,i,a,(t=>m(e,t)),s),typePredicateToTypePredicateNode:(e,t,n,r,i)=>o(t,n,r,i,void 0,(t=>L(e,t))),serializeTypeForDeclaration:(e,t,n,r,i,a)=>o(n,r,i,a,void 0,(n=>Te.serializeTypeOfDeclaration(e,t,n))),serializeReturnTypeForSignature:(e,t,n,r,i)=>o(t,n,r,i,void 0,(t=>Te.serializeReturnTypeForSignature(e,hs(e),t))),serializeTypeForExpression:(e,t,n,r,i)=>o(t,n,r,i,void 0,(t=>Te.serializeTypeOfExpression(e,t))),indexInfoToIndexSignatureDeclaration:(e,t,n,r,i)=>o(t,n,r,i,void 0,(t=>N(e,t,void 0))),signatureToSignatureDeclaration:(e,t,n,r,i,a)=>o(n,r,i,a,void 0,(n=>F(e,t,n))),symbolToEntityName:(e,t,n,r,i,a)=>o(n,r,i,a,void 0,(n=>ie(e,n,t,!1))),symbolToExpression:(e,t,n,r,i,a)=>o(n,r,i,a,void 0,(n=>oe(e,n,t))),symbolToTypeParameterDeclarations:(e,t,n,r,i)=>o(t,n,r,i,void 0,(t=>G(e,t))),symbolToParameterDeclaration:(e,t,n,r,i)=>o(t,n,r,i,void 0,(t=>J(e,t))),typeParameterToDeclaration:(e,t,n,r,i,a)=>o(t,n,r,i,a,(t=>O(e,t))),symbolTableToDeclarationStatements:(e,t,i,a,u)=>o(t,i,a,u,void 0,(t=>function(e,t){var i;const o=Se(ZC.createPropertyDeclaration,174,!0),a=Se(((e,t,n,r)=>ZC.createPropertySignature(e,t,n,r)),173,!1),u=t.enclosingDeclaration;let p=[];const f=new Set,g=[],v=t;t={...v,usedSymbolNames:new Set(v.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map(null==(i=v.remappedSymbolReferences)?void 0:i.entries()),tracker:void 0};const x={...v.tracker.inner,trackSymbol:(e,n,r)=>{var i,o;if(null==(i=t.remappedSymbolNames)?void 0:i.has(HB(e)))return!1;if(0===Gs(e,n,r,!1).accessibility){const n=W(e,t,r);if(!(4&e.flags)){const e=n[0],t=yd(v.enclosingDeclaration);V(e.declarations,(e=>yd(e)===t))&&G(e)}}else if(null==(o=v.tracker.inner)?void 0:o.trackSymbol)return v.tracker.inner.trackSymbol(e,n,r);return!1}};t.tracker=new tJ(t,x,v.tracker.moduleResolverHost),nd(e,((e,t)=>{Oe(e,mc(t))}));let k=!t.bundled;const S=e.get("export=");S&&e.size>1&&2098688&S.flags&&(e=Ku()).set("export=",S);return q(e),L(p);function T(e){return!!e&&80===e.kind}function w(e){return FF(e)?C(D(e.declarationList.declarations,Cc),T):C([Cc(e)],T)}function E(e){const t=y(e,gE),n=b(e,eE);let r=-1!==n?e[n]:void 0;if(r&&t&&t.isExportEquals&&VN(t.expression)&&VN(r.name)&&gc(r.name)===gc(t.expression)&&r.body&&tE(r.body)){const i=C(e,(e=>!!(32&Jv(e)))),o=r.name;let a=r.body;if(l(i)&&(r=ZC.updateModuleDeclaration(r,r.modifiers,r.name,a=ZC.updateModuleBlock(a,ZC.createNodeArray([...r.body.statements,ZC.createExportDeclaration(void 0,!1,ZC.createNamedExports(D(A(i,(e=>w(e))),(e=>ZC.createExportSpecifier(!1,void 0,e)))),void 0)]))),e=[...e.slice(0,n),r,...e.slice(n+1)]),!y(e,(e=>e!==r&&xc(e,o)))){p=[];const n=!V(a.statements,(e=>Dv(e,32)||gE(e)||hE(e)));_(a.statements,(e=>{Q(e,n?32:0)})),e=[...C(e,(e=>e!==r&&e!==t)),...p]}}return e}function P(e){const t=C(e,(e=>hE(e)&&!e.moduleSpecifier&&!!e.exportClause&&yE(e.exportClause)));if(l(t)>1){e=[...C(e,(e=>!hE(e)||!!e.moduleSpecifier||!e.exportClause)),ZC.createExportDeclaration(void 0,!1,ZC.createNamedExports(A(t,(e=>tt(e.exportClause,yE).elements))),void 0)]}const n=C(e,(e=>hE(e)&&!!e.moduleSpecifier&&!!e.exportClause&&yE(e.exportClause)));if(l(n)>1){const t=Be(n,(e=>NN(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))),ZC.createExportDeclaration(void 0,!1,ZC.createNamedExports(A(n,(e=>tt(e.exportClause,yE).elements))),n[0].moduleSpecifier)])}return e}function I(e){const t=b(e,(e=>hE(e)&&!e.moduleSpecifier&&!e.attributes&&!!e.exportClause&&yE(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=>xc(e[t],n)));if(l(r)&&h(r,(t=>$T(e[t])))){for(const t of r)e[t]=j(e[t]);return}}return t}));l(r)?e[t]=ZC.updateExportDeclaration(n,n.modifiers,n.isTypeOnly,ZC.updateNamedExports(n.exportClause,r),n.moduleSpecifier,n.attributes):zt(e,t)}return e}function L(e){return e=I(e=P(e=E(e))),u&&(WE(u)&&Yp(u)||eE(u))&&(!V(e,X_)||!K_(e)&&V(e,G_))&&e.push(qP(ZC)),e}function j(e){const t=-129&Jv(e)|32;return ZC.replaceModifiers(e,t)}function J(e){const t=-33&Jv(e);return ZC.replaceModifiers(e,t)}function q(e,t,n){t||g.push(new Map),e.forEach((e=>{U(e,!1,!!n)})),t||(g[g.length-1].forEach((e=>{U(e,!0,!!n)})),g.pop())}function U(e,n,r){$p(F_(e));const i=fs(e);if(f.has(HB(i)))return;f.add(HB(i));if(!n||l(e.declarations)&&V(e.declarations,(e=>!!uc(e,(e=>e===u))))){const i=le(t);t.tracker.pushErrorFallbackNode(y(e.declarations,(e=>yd(e)===t.enclosingFile))),$(e,n,r),t.tracker.popErrorFallbackNode(),i()}}function $(e,n,i,o=e.escapedName){var a,s,c,_,u,d;const p=mc(o),f="default"===o;if(n&&!(131072&t.flags)&&Eh(p)&&!f)return void(t.encounteredError=!0);let m=f&&!!(-113&e.flags||16&e.flags&&l($p(F_(e))))&&!(2097152&e.flags),g=!m&&!n&&Eh(p)&&!f;(m||g)&&(n=!0);const h=(n?0:32)|(f&&!m?2048:0),v=1536&e.flags&&7&e.flags&&"export="!==o,b=v&&ke(F_(e),e);if((8208&e.flags||b)&&se(F_(e),e,Oe(e,p),h),524288&e.flags&&Z(e,p,h),98311&e.flags&&"export="!==o&&!(4194304&e.flags)&&!(32&e.flags)&&!(8192&e.flags)&&!b)if(i){xe(e)&&(g=!1,m=!1)}else{const l=F_(e),f=Oe(e,p);if(l.symbol&&l.symbol!==e&&16&l.symbol.flags&&V(l.symbol.declarations,BT)&&((null==(a=l.symbol.members)?void 0:a.size)||(null==(s=l.symbol.exports)?void 0:s.size)))t.remappedSymbolReferences||(t.remappedSymbolReferences=new Map),t.remappedSymbolReferences.set(HB(l.symbol),e),$(l.symbol,n,i,o),t.remappedSymbolReferences.delete(HB(l.symbol));else if(16&e.flags||!ke(l,e)){const i=2&e.flags?sP(e)?2:1:(null==(c=e.parent)?void 0:c.valueDeclaration)&&WE(null==(_=e.parent)?void 0:_.valueDeclaration)?2:void 0,o=!m&&4&e.flags?Pe(f,e):f;let a=e.declarations&&y(e.declarations,(e=>HF(e)));a&&KF(a.parent)&&1===a.parent.declarations.length&&(a=a.parent.parent);const s=null==(u=e.declarations)?void 0:u.find(XD);if(s&&uF(s.parent)&&VN(s.parent.right)&&(null==(d=l.symbol)?void 0:d.valueDeclaration)&&WE(l.symbol.valueDeclaration)){const e=f===s.parent.right.escapedText?void 0:s.parent.right;Q(ZC.createExportDeclaration(void 0,!1,ZC.createNamedExports([ZC.createExportSpecifier(!1,e,f)])),0),t.tracker.trackSymbol(l.symbol,t.enclosingDeclaration,111551)}else{Q(r(t,ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(o,void 0,fe(t,void 0,l,e))],i)),a),o!==f?-33&h:h),o===f||n||(Q(ZC.createExportDeclaration(void 0,!1,ZC.createNamedExports([ZC.createExportSpecifier(!1,o,f)])),0),g=!1,m=!1)}}else se(l,e,f,h)}if(384&e.flags&&ae(e,p,h),32&e.flags&&(4&e.flags&&e.valueDeclaration&&uF(e.valueDeclaration.parent)&&gF(e.valueDeclaration.parent.right)?ve(e,Oe(e,p),h):ge(e,Oe(e,p),h)),(1536&e.flags&&(!v||ne(e))||b)&&re(e,p,h),64&e.flags&&!(32&e.flags)&&ee(e,p,h),2097152&e.flags&&ve(e,Oe(e,p),h),4&e.flags&&"export="===e.escapedName&&xe(e),8388608&e.flags&&e.declarations)for(const n of e.declarations){const e=Za(n,n.moduleSpecifier);e&&Q(ZC.createExportDeclaration(void 0,n.isTypeOnly,void 0,ZC.createStringLiteral(Y(e,t))),0)}m?Q(ZC.createExportAssignment(void 0,!1,ZC.createIdentifier(Oe(e,p))),0):g&&Q(ZC.createExportDeclaration(void 0,!1,ZC.createNamedExports([ZC.createExportSpecifier(!1,Oe(e,p),p)])),0)}function G(e){if(V(e.declarations,Qh))return;_n.assertIsDefined(g[g.length-1]),Pe(mc(e.escapedName),e);const t=!!(2097152&e.flags)&&!V(e.declarations,(e=>!!uc(e,hE)||pE(e)||iE(e)&&!TE(e.moduleReference)));g[t?0:g.length-1].set(HB(e),e)}function X(e){return WE(e)&&(Yp(e)||Zp(e))||sp(e)&&!dp(e)}function Q(e,n){if(lI(e)){let r=0;const i=t.enclosingDeclaration&&(Dg(t.enclosingDeclaration)?yd(t.enclosingDeclaration):t.enclosingDeclaration);32&n&&i&&(X(i)||eE(i))&&$T(e)&&(r|=32),!k||32&r||i&&33554432&i.flags||!(ZF(e)||FF(e)||GF(e)||XF(e)||eE(e))||(r|=128),2048&n&&(XF(e)||QF(e)||GF(e))&&(r|=2048),r&&(e=ZC.replaceModifiers(e,r|Jv(e)))}p.push(e)}function Z(e,n,r){var i;const o=fu(e),a=D(aa(e).typeParameters,(e=>O(e,t))),s=null==(i=e.declarations)?void 0:i.find(Dg),l=ll(s?s.comment||s.parent.comment:void 0),_=c(t);t.flags|=8388608;const u=t.enclosingDeclaration;t.enclosingDeclaration=s;const d=s&&s.typeExpression&&HE(s.typeExpression)&&Te.tryReuseExistingTypeNode(t,s.typeExpression.type)||m(o,t);Q(yw(ZC.createTypeAliasDeclaration(void 0,Oe(e,n),a,d),l?[{kind:3,text:"*\n * "+l.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),r),_(),t.enclosingDeclaration=u}function ee(e,n,r){const i=du(e),o=D(H_(e),(e=>O(e,t))),a=cu(i),s=l(a)?Vb(a):void 0,c=A($p(i),(e=>Ce(e,s))),_=we(0,i,s,179),u=we(1,i,s,180),d=Ne(i,s),p=l(a)?[ZC.createHeritageClause(96,R(a,(e=>Fe(e,111551))))]:void 0;Q(ZC.createInterfaceDeclaration(void 0,Oe(e,n),o,p,[...d,...u,..._,...c]),r)}function te(e){let t=Ie(_s(e).values());const n=fs(e);if(n!==e){const e=new Set(t);for(const t of _s(n).values())111551&Ua(Ja(t))||e.add(t);t=Ie(e)}return C(t,(e=>pe(e)&&ms(e.escapedName,99)))}function ne(e){return h(te(e),(e=>!(111551&Ua(Ja(e)))))}function re(e,n,r){const i=Me(te(e),(t=>t.parent&&t.parent===e?"real":"merged")),o=i.get("real")||s,a=i.get("merged")||s;if(l(o)){de(o,Oe(e,n),r,!!(67108880&e.flags))}if(l(a)){const r=yd(t.enclosingDeclaration),i=Oe(e,n),o=ZC.createModuleBlock([ZC.createExportDeclaration(void 0,!1,ZC.createNamedExports(R(C(a,(e=>"export="!==e.escapedName)),(n=>{var i,o;const a=mc(n.escapedName),s=Oe(n,a),c=n.declarations&&xa(n);if(r&&(c?r!==yd(c):!V(n.declarations,(e=>yd(e)===r))))return void(null==(o=null==(i=t.tracker)?void 0:i.reportNonlocalAugmentation)||o.call(i,r,e,n));const l=c&&Ma(c,!0);G(l||n);const _=l?Oe(l,mc(l.escapedName)):s;return ZC.createExportSpecifier(!1,a===_?void 0:_,a)}))))]);Q(ZC.createModuleDeclaration(void 0,ZC.createIdentifier(i),o,32),0)}}function ae(e,t,n){Q(ZC.createEnumDeclaration(ZC.createModifiersFromModifierFlags(Qj(e)?4096:0),Oe(e,t),D(C($p(F_(e)),(e=>!!(8&e.flags))),(e=>{const t=e.declarations&&e.declarations[0]&&VE(e.declarations[0])?Vz(e.declarations[0]):void 0;return ZC.createEnumMember(mc(e.escapedName),void 0===t?void 0:"string"==typeof t?ZC.createStringLiteral(t):ZC.createNumericLiteral(t))}))),n)}function se(e,n,i,o){const a=ym(e,0);for(const e of a){const n=F(e,262,t,{name:ZC.createIdentifier(i)});Q(r(t,n,ue(e)),o)}if(!(1536&n.flags&&n.exports&&n.exports.size)){de(C($p(e),pe),i,o,!0)}}function ue(e){if(e.declaration&&e.declaration.parent){if(uF(e.declaration.parent)&&5===tg(e.declaration.parent))return e.declaration.parent;if(HF(e.declaration.parent)&&e.declaration.parent.parent)return e.declaration.parent.parent}return e.declaration}function de(e,n,r,i){if(l(e)){const o=Me(e,(e=>!l(e.declarations)||V(e.declarations,(e=>yd(e)===yd(t.enclosingDeclaration)))?"local":"remote")).get("local")||s;let a=dI.createModuleDeclaration(void 0,ZC.createIdentifier(n),ZC.createModuleBlock([]),32);FT(a,u),a.locals=Ku(e),a.symbol=e[0].parent;const c=p;p=[];const _=k;k=!1;const d={...t,enclosingDeclaration:a},f=t;t=d,q(Ku(o),i,!0),t=f,k=_;const m=p;p=c;const g=D(m,(e=>gE(e)&&!e.isExportEquals&&VN(e.expression)?ZC.createExportDeclaration(void 0,!1,ZC.createNamedExports([ZC.createExportSpecifier(!1,e.expression,ZC.createIdentifier("default"))])):e)),y=h(g,(e=>Dv(e,32)))?D(g,J):g;a=ZC.updateModuleDeclaration(a,a.modifiers,a.name,ZC.createModuleBlock(y)),Q(a,r)}}function pe(e){return!!(2887656&e.flags)||!(4194304&e.flags||"prototype"===e.escapedName||e.valueDeclaration&&Fv(e.valueDeclaration)&&u_(e.valueDeclaration.parent))}function me(e){const r=R(e,(e=>{const r=t.enclosingDeclaration;t.enclosingDeclaration=e;let i=e.expression;if(sb(i)){if(VN(i)&&""===gc(i))return o(void 0);let e;if(({introducesError:e,node:i}=he(i,t)),e)return o(void 0)}return o(ZC.createExpressionWithTypeArguments(i,D(e.typeArguments,(e=>Te.tryReuseExistingTypeNode(t,e)||m(n(t,e),t)))));function o(e){return t.enclosingDeclaration=r,e}}));if(r.length===e.length)return r}function ge(e,n,i){var a,c;const u=null==(a=e.declarations)?void 0:a.find(u_),d=t.enclosingDeclaration;t.enclosingDeclaration=u||d;const p=D(H_(e),(e=>O(e,t))),f=Td(du(e)),m=cu(f),g=u&&bh(u),h=g&&me(g)||R(function(e){let t=s;if(e.symbol.declarations)for(const n of e.symbol.declarations){const e=bh(n);if(e)for(const n of e){const e=Bk(n);Gc(e)||(t===s?t=[e]:t.push(e))}}return t}(f),Ee),y=F_(e),v=!!(null==(c=y.symbol)?void 0:c.valueDeclaration)&&u_(y.symbol.valueDeclaration),b=v?ru(y):wt,x=[...l(m)?[ZC.createHeritageClause(96,D(m,(e=>De(e,b,n))))]:[],...l(h)?[ZC.createHeritageClause(119,h)]:[]],k=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=$p(Td(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())}(f,m,$p(f)),S=C(k,(e=>{const t=e.valueDeclaration;return!(!t||Sc(t)&&WN(t.name))})),T=V(k,(e=>{const t=e.valueDeclaration;return!!t&&Sc(t)&&WN(t.name)}))?[ZC.createPropertyDeclaration(void 0,ZC.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:s,w=A(S,(e=>o(e,!1,m[0]))),N=A(C($p(y),(e=>!(4194304&e.flags||"prototype"===e.escapedName||pe(e)))),(e=>o(e,!0,b))),F=!v&&!!e.valueDeclaration&&Em(e.valueDeclaration)&&!V(ym(y,1))?[ZC.createConstructorDeclaration(ZC.createModifiersFromModifierFlags(2),[],void 0)]:we(1,y,b,176),E=Ne(f,m[0]);t.enclosingDeclaration=d,Q(r(t,ZC.createClassDeclaration(void 0,n,p,x,[...E,...N,...F,...w,...T]),e.declarations&&C(e.declarations,(e=>XF(e)||gF(e)))[0]),i)}function ye(e){return d(e,(e=>{if(mE(e)||vE(e))return Wd(e.propertyName||e.name);if(uF(e)||gE(e)){const t=gE(e)?e.expression:e.right;if(XD(t))return gc(t.name)}if(ka(e)){const t=Cc(e);if(t&&VN(t))return gc(t)}}))}function ve(e,n,r){var i,o,a,s,c;const l=xa(e);if(!l)return _n.fail();const _=fs(Ma(l,!0));if(!_)return;let u=_p(_)&&ye(e.declarations)||mc(_.escapedName);"export="===u&&H&&(u="default");const d=Oe(_,u);switch(G(_),l.kind){case 208:if(260===(null==(o=null==(i=l.parent)?void 0:i.parent)?void 0:o.kind)){const e=Y(_.parent||_,t),{propertyName:r}=l;Q(ZC.createImportDeclaration(void 0,ZC.createImportClause(!1,void 0,ZC.createNamedImports([ZC.createImportSpecifier(!1,r&&VN(r)?ZC.createIdentifier(gc(r)):void 0,ZC.createIdentifier(n))])),ZC.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 304:226===(null==(c=null==(s=l.parent)?void 0:s.parent)?void 0:c.kind)&&be(mc(e.escapedName),d);break;case 260:if(XD(l.initializer)){const e=l.initializer,i=ZC.createUniqueName(n),o=Y(_.parent||_,t);Q(ZC.createImportEqualsDeclaration(void 0,!1,i,ZC.createExternalModuleReference(ZC.createStringLiteral(o))),0),Q(ZC.createImportEqualsDeclaration(void 0,!1,ZC.createIdentifier(n),ZC.createQualifiedName(i,e.name)),r);break}case 271:if("export="===_.escapedName&&V(_.declarations,(e=>WE(e)&&Zp(e)))){xe(e);break}const p=!(512&_.flags||HF(l));Q(ZC.createImportEqualsDeclaration(void 0,!1,ZC.createIdentifier(n),p?ie(_,t,-1,!1):ZC.createExternalModuleReference(ZC.createStringLiteral(Y(_,t)))),p?r:0);break;case 270:Q(ZC.createNamespaceExportDeclaration(gc(l.name)),0);break;case 273:{const e=Y(_.parent||_,t),r=t.bundled?ZC.createStringLiteral(e):l.parent.moduleSpecifier,i=oE(l.parent)?l.parent.attributes:void 0,o=OP(l.parent);Q(ZC.createImportDeclaration(void 0,ZC.createImportClause(o,ZC.createIdentifier(n),void 0),r,i),0);break}case 274:{const e=Y(_.parent||_,t),r=t.bundled?ZC.createStringLiteral(e):l.parent.parent.moduleSpecifier,i=OP(l.parent.parent);Q(ZC.createImportDeclaration(void 0,ZC.createImportClause(i,void 0,ZC.createNamespaceImport(ZC.createIdentifier(n))),r,l.parent.attributes),0);break}case 280:Q(ZC.createExportDeclaration(void 0,!1,ZC.createNamespaceExport(ZC.createIdentifier(n)),ZC.createStringLiteral(Y(_,t))),0);break;case 276:{const e=Y(_.parent||_,t),r=t.bundled?ZC.createStringLiteral(e):l.parent.parent.parent.moduleSpecifier,i=OP(l.parent.parent.parent);Q(ZC.createImportDeclaration(void 0,ZC.createImportClause(i,void 0,ZC.createNamedImports([ZC.createImportSpecifier(!1,n!==u?ZC.createIdentifier(u):void 0,ZC.createIdentifier(n))])),r,l.parent.parent.parent.attributes),0);break}case 281:const f=l.parent.parent.moduleSpecifier;if(f){const e=l.propertyName;e&&Hd(e)&&(u="default")}be(mc(e.escapedName),f?u:d,f&&ju(f)?ZC.createStringLiteral(f.text):void 0);break;case 277:xe(e);break;case 226:case 211:case 212:"default"===e.escapedName||"export="===e.escapedName?xe(e):be(n,d);break;default:return _n.failBadSyntaxKind(l,"Unhandled alias declaration kind in symbol serializer!")}}function be(e,t,n){Q(ZC.createExportDeclaration(void 0,!1,ZC.createNamedExports([ZC.createExportSpecifier(!1,e!==t?t:void 0,e)]),n),0)}function xe(e){var n;if(4194304&e.flags)return!1;const r=mc(e.escapedName),i="export="===r,o=i||"default"===r,a=e.declarations&&xa(e),s=a&&Ma(a,!0);if(s&&l(s.declarations)&&V(s.declarations,(e=>yd(e)===yd(u)))){const n=a&&(gE(a)||uF(a)?gh(a):hh(a)),c=n&&sb(n)?function(e){switch(e.kind){case 80:return e;case 166:do{e=e.left}while(80!==e.kind);return e;case 211:do{if(eg(e.expression)&&!WN(e.name))return e.name;e=e.expression}while(80!==e.kind);return e}}(n):void 0,l=c&&Xa(c,-1,!0,!0,u);(l||s)&&G(l||s);const _=t.tracker.disableTrackSymbol;if(t.tracker.disableTrackSymbol=!0,o)p.push(ZC.createExportAssignment(void 0,i,oe(s,t,-1)));else if(c===n&&c)be(r,gc(c));else if(n&&gF(n))be(r,Oe(s,yc(s)));else{const n=Pe(r,e);Q(ZC.createImportEqualsDeclaration(void 0,!1,ZC.createIdentifier(n),ie(s,t,-1,!1)),0),be(r,n)}return t.tracker.disableTrackSymbol=_,!0}{const a=Pe(r,e),c=Uw(F_(fs(e)));if(ke(c,e))se(c,e,a,o?0:32);else{const i=267!==(null==(n=t.enclosingDeclaration)?void 0:n.kind)||98304&e.flags&&!(65536&e.flags)?2:1;Q(ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(a,void 0,fe(t,void 0,c,e))],i)),s&&4&s.flags&&"export="===s.escapedName?128:r===a?32:0)}return o?(p.push(ZC.createExportAssignment(void 0,i,ZC.createIdentifier(a))),!0):r!==a&&(be(r,a),!0)}}function ke(e,n){var r;const i=yd(t.enclosingDeclaration);return 48&hx(e)&&!V(null==(r=e.symbol)?void 0:r.declarations,b_)&&!l(qm(e))&&!Tc(e)&&!(!l(C($p(e),pe))&&!l(ym(e,0)))&&!l(ym(e,1))&&!_e(n,u)&&!(e.symbol&&V(e.symbol.declarations,(e=>yd(e)!==i)))&&!V($p(e),(e=>sd(e.escapedName)))&&!V($p(e),(e=>V(e.declarations,(e=>yd(e)!==i))))&&h($p(e),(e=>!!ms(yc(e),M)&&(!(98304&e.flags)||E_(e)===D_(e))))}function Se(e,n,i){return function(o,a,s){var c,l,u,d,p,f;const m=ox(o),g=!!(2&m);if(a&&2887656&o.flags)return[];if(4194304&o.flags||"constructor"===o.escapedName||s&&fm(s,o.escapedName)&&Jj(fm(s,o.escapedName))===Jj(o)&&(16777216&o.flags)==(16777216&fm(s,o.escapedName).flags)&&NS(F_(o),Wc(s,o.escapedName)))return[];const h=-1025&m|(a?256:0),y=ce(o,t),v=null==(c=o.declarations)?void 0:c.find(Zt(uD,d_,HF,_D,uF,XD));if(98304&o.flags&&i){const e=[];if(65536&o.flags){const n=o.declarations&&_(o.declarations,(e=>178===e.kind?e:YD(e)&&ng(e)?_(e.arguments[2].properties,(e=>{const t=Cc(e);if(t&&VN(t)&&"set"===gc(t))return e})):void 0));_n.assert(!!n);const i=o_(n)?Pg(n).parameters[0]:void 0,a=null==(l=o.declarations)?void 0:l.find(wu);e.push(r(t,ZC.createSetAccessorDeclaration(ZC.createModifiersFromModifierFlags(h),y,[ZC.createParameterDeclaration(void 0,void 0,i?z(i,B(i),t):"value",void 0,g?void 0:fe(t,a,D_(o),o))],void 0),a??v))}if(32768&o.flags){const n=2&m,i=null==(u=o.declarations)?void 0:u.find(Nu);e.push(r(t,ZC.createGetAccessorDeclaration(ZC.createModifiersFromModifierFlags(h),y,[],n?void 0:fe(t,i,F_(o),o),void 0),i??v))}return e}if(98311&o.flags)return r(t,e(ZC.createModifiersFromModifierFlags((Jj(o)?8:0)|h),y,16777216&o.flags?ZC.createToken(58):void 0,g?void 0:fe(t,null==(d=o.declarations)?void 0:d.find(hD),D_(o),o),void 0),(null==(p=o.declarations)?void 0:p.find(Zt(uD,HF)))||v);if(8208&o.flags){const i=ym(F_(o),0);if(2&h)return r(t,e(ZC.createModifiersFromModifierFlags((Jj(o)?8:0)|h),y,16777216&o.flags?ZC.createToken(58):void 0,void 0,void 0),(null==(f=o.declarations)?void 0:f.find(o_))||i[0]&&i[0].declaration||o.declarations&&o.declarations[0]);const a=[];for(const e of i){const i=F(e,n,t,{name:y,questionToken:16777216&o.flags?ZC.createToken(58):void 0,modifiers:h?ZC.createModifiersFromModifierFlags(h):void 0}),s=e.declaration&&pg(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 Ce(e,t){return a(e,!1,t)}function we(e,n,i,o){const a=ym(n,e);if(1===e){if(!i&&h(a,(e=>0===l(e.parameters))))return[];if(i){const e=ym(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;n<e.length;n++)if(!OC(a[n],e[n],!1,!1,!0,DS)){t=!0;break}if(!t)return[]}}let e=0;for(const t of a)t.declaration&&(e|=Rv(t.declaration,6));if(e)return[r(t,ZC.createConstructorDeclaration(ZC.createModifiersFromModifierFlags(e),[],void 0),a[0].declaration)]}const s=[];for(const e of a){const n=F(e,o,t);s.push(r(t,n,e.declaration))}return s}function Ne(e,n){const r=[];for(const i of qm(e)){if(n){const e=Qm(n,i.keyType);if(e&&NS(i.type,e.type))continue}r.push(N(i,t,void 0))}return r}function De(e,n,r){const i=Fe(e,111551);if(i)return i;const o=Pe(`${r}_base`);return Q(ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(o,void 0,m(n,t))],2)),0),ZC.createExpressionWithTypeArguments(ZC.createIdentifier(o),void 0)}function Fe(e,n){let r,i;if(e.target&&Hs(e.target.symbol,u,n)?(r=D(fy(e),(e=>m(e,t))),i=oe(e.target.symbol,t,788968)):e.symbol&&Hs(e.symbol,u,n)&&(i=oe(e.symbol,t,788968)),i)return ZC.createExpressionWithTypeArguments(i,r)}function Ee(e){const n=Fe(e,788968);return n||(e.symbol?ZC.createExpressionWithTypeArguments(oe(e.symbol,t,788968),void 0):void 0)}function Pe(e,n){var r,i;const o=n?HB(n):void 0;if(o&&t.remappedSymbolNames.has(o))return t.remappedSymbolNames.get(o);n&&(e=Ae(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 Ae(e,n){if("default"===n||"__class"===n||"__function"===n){const r=c(t);t.flags|=16777216;const i=jc(e,t);r(),n=i.length>0&&zm(i.charCodeAt(0))?Fy(i):i}return"default"===n?n="_default":"export="===n&&(n="_exports"),n=ms(n,M)&&!Eh(n)?n:"_"+n.replace(/[^a-z0-9]/gi,"_")}function Oe(e,n){const r=HB(e);return t.remappedSymbolNames.has(r)?t.remappedSymbolNames.get(r):(n=Ae(e,n),t.remappedSymbolNames.set(r,n),n)}}(e,t))),symbolToNode:(e,t,n,r,i,a)=>o(n,r,i,a,void 0,(n=>function(e,t,n){if(1&t.internalFlags){if(e.valueDeclaration){const t=Cc(e.valueDeclaration);if(t&&aD(t))return t}const r=aa(e).nameType;if(r&&9216&r.flags)return t.enclosingDeclaration=r.symbol.valueDeclaration,ZC.createComputedPropertyName(oe(r.symbol,t,n))}return oe(e,t,n)}(e,n,t)))};function n(e,t,n){const r=wc(t);if(!e.mapper)return r;const i=yS(r,e.mapper);return n&&i!==r?void 0:i}function r(e,t,n){if(ey(t)&&16&t.flags&&e.enclosingFile&&e.enclosingFile===yd(_c(t))||(t=ZC.cloneNode(t)),t===n)return t;if(!n)return t;let r=t.original;for(;r&&r!==n;)r=r.original;return r||tw(t,n),e.enclosingFile&&e.enclosingFile===yd(_c(n))?cI(t,n):t}function o(t,n,r,i,o,a,s){const c=(null==i?void 0:i.trackSymbol)?i.moduleResolverHost:4&(r||0)?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,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(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):void 0,l={enclosingDeclaration:t,enclosingFile:t&&yd(t),flags:n||0,internalFlags:r||0,tracker:void 0,unfoldDepth:o??-1,encounteredError:!1,suppressReportInferenceFallback:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0,bundled:!!j.outFile&&!!t&&Yp(yd(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,couldUnfoldMore:!1};l.tracker=new tJ(l,i,c);const _=a(l);return l.truncating&&1&l.flags&&l.tracker.reportTruncationError(),s&&(s.couldUnfoldMore=l.couldUnfoldMore),l.encounteredError?void 0:_}function a(e,t,n){const r=HB(t),i=e.enclosingSymbolTypes.get(r);return e.enclosingSymbolTypes.set(r,n),function(){i?e.enclosingSymbolTypes.set(r,i):e.enclosingSymbolTypes.delete(r)}}function c(e){const t=e.flags,n=e.internalFlags,r=e.depth;return function(){e.flags=t,e.internalFlags=n,e.depth=r}}function u(e){return e.truncating?e.truncating:e.truncating=e.approximateLength>(1&e.flags?Wu:Vu)}function p(e,t){var n;return!(null==(n=t.visitedTypes)?void 0:n.has(e.id))&&(t.depth<t.unfoldDepth||t.depth===t.unfoldDepth&&!t.couldUnfoldMore)}function f(e,t){var n;if(null==(n=t.visitedTypes)?void 0:n.has(e.id))return!1;const r=t.depth<t.unfoldDepth;return r||(t.couldUnfoldMore=!0),r}function m(e,o){const a=c(o),d=function(e,o){var a,d;t&&t.throwIfCancellationRequested&&t.throwIfCancellationRequested();const p=8388608&o.flags;if(o.flags&=-8388609,!e)return 262144&o.flags?(o.approximateLength+=3,ZC.createKeywordTypeNode(133)):void(o.encounteredError=!0);536870912&o.flags||(e=Vf(e));if(1&e.flags)return e.aliasSymbol?ZC.createTypeReferenceNode(Z(e.aliasSymbol),w(e.aliasTypeArguments,o)):e===Pt?vw(ZC.createKeywordTypeNode(133),3,"unresolved"):(o.approximateLength+=3,ZC.createKeywordTypeNode(e===It?141:133));if(2&e.flags)return ZC.createKeywordTypeNode(159);if(4&e.flags)return o.approximateLength+=6,ZC.createKeywordTypeNode(154);if(8&e.flags)return o.approximateLength+=6,ZC.createKeywordTypeNode(150);if(64&e.flags)return o.approximateLength+=6,ZC.createKeywordTypeNode(163);if(16&e.flags&&!e.aliasSymbol)return o.approximateLength+=7,ZC.createKeywordTypeNode(136);if(1056&e.flags){if(8&e.symbol.flags){const t=vs(e.symbol),n=ee(t,o,788968);if(Tu(t)===e)return n;const r=yc(e.symbol);return ms(r,1)?B(n,ZC.createTypeReferenceNode(r,void 0)):qD(n)?(n.isTypeOf=!0,ZC.createIndexedAccessTypeNode(n,ZC.createLiteralTypeNode(ZC.createStringLiteral(r)))):kD(n)?ZC.createIndexedAccessTypeNode(ZC.createTypeQueryNode(n.typeName),ZC.createLiteralTypeNode(ZC.createStringLiteral(r))):_n.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return ee(e.symbol,o,788968)}if(128&e.flags)return o.approximateLength+=e.value.length+2,ZC.createLiteralTypeNode(ow(ZC.createStringLiteral(e.value,!!(268435456&o.flags)),16777216));if(256&e.flags){const t=e.value;return o.approximateLength+=(""+t).length,ZC.createLiteralTypeNode(t<0?ZC.createPrefixUnaryExpression(41,ZC.createNumericLiteral(-t)):ZC.createNumericLiteral(t))}if(2048&e.flags)return o.approximateLength+=hT(e.value).length+1,ZC.createLiteralTypeNode(ZC.createBigIntLiteral(e.value));if(512&e.flags)return o.approximateLength+=e.intrinsicName.length,ZC.createLiteralTypeNode("true"===e.intrinsicName?ZC.createTrue():ZC.createFalse());if(8192&e.flags){if(!(1048576&o.flags)){if($s(e.symbol,o.enclosingDeclaration))return o.approximateLength+=6,ee(e.symbol,o,111551);o.tracker.reportInaccessibleUniqueSymbolError&&o.tracker.reportInaccessibleUniqueSymbolError()}return o.approximateLength+=13,ZC.createTypeOperatorNode(158,ZC.createKeywordTypeNode(155))}if(16384&e.flags)return o.approximateLength+=4,ZC.createKeywordTypeNode(116);if(32768&e.flags)return o.approximateLength+=9,ZC.createKeywordTypeNode(157);if(65536&e.flags)return o.approximateLength+=4,ZC.createLiteralTypeNode(ZC.createNull());if(131072&e.flags)return o.approximateLength+=5,ZC.createKeywordTypeNode(146);if(4096&e.flags)return o.approximateLength+=6,ZC.createKeywordTypeNode(155);if(67108864&e.flags)return o.approximateLength+=6,ZC.createKeywordTypeNode(151);if(UT(e))return 4194304&o.flags&&(o.encounteredError||32768&o.flags||(o.encounteredError=!0),null==(d=(a=o.tracker).reportInaccessibleThisError)||d.call(a)),o.approximateLength+=4,ZC.createThisTypeNode();if(!p&&e.aliasSymbol&&(16384&o.flags||(h=e.aliasSymbol,y=o.enclosingDeclaration,0===Xs(h,y,788968,!1,!0).accessibility))){if(!f(e,o)){const t=w(e.aliasTypeArguments,o);return!Rs(e.aliasSymbol.escapedName)||32&e.aliasSymbol.flags?1===l(t)&&e.aliasSymbol===Zn.symbol?ZC.createArrayTypeNode(t[0]):ee(e.aliasSymbol,o,788968,t):ZC.createTypeReferenceNode(ZC.createIdentifier(""),t)}o.depth+=1}var h,y;const v=hx(e);if(4&v)return _n.assert(!!(524288&e.flags)),f(e,o)?(o.depth+=1,L(e,!0)):e.node?j(e,M):M(e);if(262144&e.flags||3&v){if(262144&e.flags&&k(o.inferTypeParameters,e)){let t;o.approximateLength+=yc(e.symbol).length+6;const n=rf(e);if(n){const r=ny(e,!0);r&&NS(n,r)||(o.approximateLength+=9,t=n&&m(n,o))}return ZC.createInferTypeNode(I(e,o,t))}if(4&o.flags&&262144&e.flags){const t=ne(e,o);return o.approximateLength+=gc(t).length,ZC.createTypeReferenceNode(ZC.createIdentifier(gc(t)),void 0)}if(3&v&&f(e,o))return o.depth+=1,L(e,!0);if(e.symbol)return ee(e.symbol,o,788968);const t=(e===qn||e===Un)&&i&&i.symbol?(e===Un?"sub-":"super-")+yc(i.symbol):"?";return ZC.createTypeReferenceNode(ZC.createIdentifier(t),void 0)}1048576&e.flags&&e.origin&&(e=e.origin);if(3145728&e.flags){const t=1048576&e.flags?function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){const i=e[r];if(n|=i.flags,!(98304&i.flags)){if(1568&i.flags){const n=512&i.flags?sn:mu(i);if(1048576&n.flags){const i=n.types.length;if(r+i<=e.length&&hk(e[r+i-1])===hk(n.types[i-1])){t.push(n),r+=i-1;continue}}}t.push(i)}}65536&n&&t.push(qt);32768&n&&t.push(jt);return t||e}(e.types):e.types;if(1===l(t))return m(t[0],o);const n=w(t,o,!0);return n&&n.length>0?1048576&e.flags?ZC.createUnionTypeNode(n):ZC.createIntersectionTypeNode(n):void(o.encounteredError||262144&o.flags||(o.encounteredError=!0))}if(48&v)return _n.assert(!!(524288&e.flags)),L(e);if(4194304&e.flags){const t=e.type;o.approximateLength+=6;const n=m(t,o);return ZC.createTypeOperatorNode(143,n)}if(134217728&e.flags){const t=e.texts,n=e.types,r=ZC.createTemplateHead(t[0]),i=ZC.createNodeArray(D(n,((e,r)=>ZC.createTemplateLiteralTypeSpan(m(e,o),(r<n.length-1?ZC.createTemplateMiddle:ZC.createTemplateTail)(t[r+1])))));return o.approximateLength+=2,ZC.createTemplateLiteralType(r,i)}if(268435456&e.flags){const t=m(e.type,o);return ee(e.symbol,o,788968,[t])}if(8388608&e.flags){const t=m(e.objectType,o),n=m(e.indexType,o);return o.approximateLength+=2,ZC.createIndexedAccessTypeNode(t,n)}if(16777216&e.flags)return j(e,(e=>b(e)));if(33554432&e.flags){const t=m(e.baseType,o),n=wy(e)&&$y("NoInfer",!1);return n?ee(n,o,788968,[t]):t}return _n.fail("Should be unreachable.");function b(e){const t=m(e.checkType,o);if(o.approximateLength+=15,4&o.flags&&e.root.isDistributive&&!(262144&e.checkType.flags)){const r=js($o(262144,"T")),i=ne(r,o),a=ZC.createTypeReferenceNode(i);o.approximateLength+=37;const s=oS(e.root.checkType,r,e.mapper),c=o.inferTypeParameters;o.inferTypeParameters=e.root.inferTypeParameters;const l=m(yS(e.root.extendsType,s),o);o.inferTypeParameters=c;const _=S(yS(n(o,e.root.node.trueType),s)),u=S(yS(n(o,e.root.node.falseType),s));return ZC.createConditionalTypeNode(t,ZC.createInferTypeNode(ZC.createTypeParameterDeclaration(void 0,ZC.cloneNode(a.typeName))),ZC.createConditionalTypeNode(ZC.createTypeReferenceNode(ZC.cloneNode(i)),m(e.checkType,o),ZC.createConditionalTypeNode(a,l,_,u),ZC.createKeywordTypeNode(146)),ZC.createKeywordTypeNode(146))}const r=o.inferTypeParameters;o.inferTypeParameters=e.root.inferTypeParameters;const i=m(e.extendsType,o);o.inferTypeParameters=r;const a=S(Kx(e)),s=S(Gx(e));return ZC.createConditionalTypeNode(t,i,a,s)}function S(e){var t,n,r;return 1048576&e.flags?(null==(t=o.visitedTypes)?void 0:t.has(Nb(e)))?(131072&o.flags||(o.encounteredError=!0,null==(r=null==(n=o.tracker)?void 0:n.reportCyclicStructureError)||r.call(n)),g(o)):j(e,(e=>m(e,o))):m(e,o)}function P(e){return!!pS(e)}function A(e){return!!e.target&&P(e.target)&&!P(e)}function O(e){var t;_n.assert(!!(524288&e.flags));const r=e.declaration.readonlyToken?ZC.createToken(e.declaration.readonlyToken.kind):void 0,i=e.declaration.questionToken?ZC.createToken(e.declaration.questionToken.kind):void 0;let a,s;const c=!vp(e)&&!(2&bp(e).flags)&&4&o.flags&&!(262144&lp(e).flags&&4194304&(null==(t=rf(lp(e)))?void 0:t.flags));if(vp(e)){if(A(e)&&4&o.flags){const e=ne(js($o(262144,"T")),o);s=ZC.createTypeReferenceNode(e)}a=ZC.createTypeOperatorNode(143,s||m(bp(e),o))}else if(c){const e=ne(js($o(262144,"T")),o);s=ZC.createTypeReferenceNode(e),a=s}else a=m(lp(e),o);const l=I(ip(e),o,a),_=e.declaration.nameType?m(fp(e),o):void 0,u=m(Fw(hp(e),!!(4&xp(e))),o),d=ZC.createMappedTypeNode(r,l,_,i,u,void 0);o.approximateLength+=10;const p=ow(d,1);if(A(e)&&4&o.flags){const t=yS(rf(n(o,e.declaration.typeParameter.constraint.type))||Lt,e.mapper);return ZC.createConditionalTypeNode(m(bp(e),o),ZC.createInferTypeNode(ZC.createTypeParameterDeclaration(void 0,ZC.cloneNode(s.typeName),2&t.flags?void 0:m(t,o))),p,ZC.createKeywordTypeNode(146))}return c?ZC.createConditionalTypeNode(m(lp(e),o),ZC.createInferTypeNode(ZC.createTypeParameterDeclaration(void 0,ZC.cloneNode(s.typeName),ZC.createTypeOperatorNode(143,m(bp(e),o)))),p,ZC.createKeywordTypeNode(146)):p}function L(e,t=!1){var r,i;const a=e.id,s=e.symbol;if(s){if(!!(8388608&hx(e))){const t=e.node;if(CD(t)&&n(o,t)===e){const e=Te.tryReuseExistingTypeNode(o,t);if(e)return e}return(null==(r=o.visitedTypes)?void 0:r.has(a))?g(o):j(e,R)}const l=Tc(e)?788968:111551;if(CL(s.valueDeclaration))return ee(s,o,l);if(32&s.flags&&!t&&!y_(s)&&(!(s.valueDeclaration&&u_(s.valueDeclaration)&&2048&o.flags)||XF(s.valueDeclaration)&&0===Gs(s,o.enclosingDeclaration,l,!1).accessibility)||896&s.flags||c())return ee(s,o,l);if(null==(i=o.visitedTypes)?void 0:i.has(a)){const t=function(e){if(e.symbol&&2048&e.symbol.flags&&e.symbol.declarations){const t=nh(e.symbol.declarations[0].parent);if(YF(t))return hs(t)}return}(e);return t?ee(t,o,788968):g(o)}return j(e,R)}return R(e);function c(){var e;const t=!!(8192&s.flags)&&V(s.declarations,(e=>Fv(e))),n=!!(16&s.flags)&&(s.parent||_(s.declarations,(e=>307===e.parent.kind||268===e.parent.kind)));if(t||n)return(!!(4096&o.flags)||(null==(e=o.visitedTypes)?void 0:e.has(a)))&&(!(8&o.flags)||$s(s,o.enclosingDeclaration))}}function j(e,t){var n,i,a;const s=e.id,c=16&hx(e)&&e.symbol&&32&e.symbol.flags,l=4&hx(e)&&e.node?"N"+$B(e.node):16777216&e.flags?"N"+$B(e.root.node):e.symbol?(c?"+":"")+HB(e.symbol):void 0;o.visitedTypes||(o.visitedTypes=new Set),l&&!o.symbolDepth&&(o.symbolDepth=new Map);const _=o.unfoldDepth>=0?void 0:o.enclosingDeclaration&&sa(o.enclosingDeclaration),u=`${Nb(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,v(d.node);let p;if(l){if(p=o.symbolDepth.get(l)||0,p>10)return g(o);o.symbolDepth.set(l,p+1)}o.visitedTypes.add(s);const f=o.trackedSymbols;o.trackedSymbols=void 0;const m=o.approximateLength,h=t(e),y=o.approximateLength-m;return o.reportedDiagnostic||o.encounteredError||null==(a=null==_?void 0:_.serializedTypes)||a.set(u,{node:h,truncating:o.truncating,addedLength:y,trackedSymbols:o.trackedSymbols}),o.visitedTypes.delete(s),l&&o.symbolDepth.set(l,p),o.trackedSymbols=f,h;function v(e){return ey(e)||pc(e)!==e?r(o,ZC.cloneNode(dJ(e,v,void 0,b,v)),e):e}function b(e,t,n,r,i){return e&&0===e.length?cI(ZC.createNodeArray(void 0,e.hasTrailingComma),e):rJ(e,t,n,r,i)}}function R(e){if(Tp(e)||e.containsError)return O(e);const t=Op(e);if(!t.properties.length&&!t.indexInfos.length){if(!t.callSignatures.length&&!t.constructSignatures.length)return o.approximateLength+=2,ow(ZC.createTypeLiteralNode(void 0),1);if(1===t.callSignatures.length&&!t.constructSignatures.length){return F(t.callSignatures[0],184,o)}if(1===t.constructSignatures.length&&!t.callSignatures.length){return F(t.constructSignatures[0],185,o)}}const n=C(t.constructSignatures,(e=>!!(4&e.flags)));if(V(n)){const e=D(n,(e=>Ah(e)));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=zs(e.symbol,e.members,e.callSignatures,V(t)?t:s,e.indexInfos);return e.objectTypeWithoutAbstractConstructSignatures=n,n.objectTypeWithoutAbstractConstructSignatures=n,n}(t)),m(Vb(e),o)}const r=c(o);o.flags|=4194304;const i=z(t);r();const a=ZC.createTypeLiteralNode(i);return o.approximateLength+=2,ow(a,1024&o.flags?0:1),a}function M(e){let t=fy(e);if(e.target===Zn||e.target===nr){if(2&o.flags){const n=m(t[0],o);return ZC.createTypeReferenceNode(e.target===Zn?"Array":"ReadonlyArray",[n])}const n=m(t[0],o),r=ZC.createArrayTypeNode(n);return e.target===Zn?r:ZC.createTypeOperatorNode(148,r)}if(!(8&e.target.objectFlags)){if(2048&o.flags&&e.symbol.valueDeclaration&&u_(e.symbol.valueDeclaration)&&!$s(e.symbol,o.enclosingDeclaration))return L(e);{const n=e.target.outerTypeParameters;let r,i,a=0;if(n){const e=n.length;for(;a<e;){const i=a,s=iy(n[a]);do{a++}while(a<e&&iy(n[a])===s);if(!ue(n,t,i,a)){const e=w(t.slice(i,a),o),n=c(o);o.flags|=16;const l=ee(s,o,788968,e);n(),r=r?B(r,l):l}}}if(t.length>0){let n=0;if(e.target.typeParameters&&(n=Math.min(e.target.typeParameters.length,t.length),(R_(e,bv(!1))||R_(e,xv(!1))||R_(e,mv(!1))||R_(e,vv(!1)))&&(!e.node||!kD(e.node)||!e.node.typeArguments||e.node.typeArguments.length<n)))for(;n>0;){const r=t[n-1],i=vf(e.target.typeParameters[n-1]);if(!i||!NS(r,i))break;n--}i=w(t.slice(a,n),o)}const s=c(o);o.flags|=16;const l=ee(e.symbol,o,788968,i);return s(),r?B(r,l):l}}if(t=E(t,((t,n)=>Fw(t,!!(2&e.target.elementFlags[n])))),t.length>0){const n=my(e),r=w(t.slice(0,n),o);if(r){const{labeledElementDeclarations:t}=e.target;for(let n=0;n<r.length;n++){const i=e.target.elementFlags[n],o=null==t?void 0:t[n];r[n]=o?ZC.createNamedTupleMember(12&i?ZC.createToken(26):void 0,ZC.createIdentifier(mc(GL(o))),2&i?ZC.createToken(58):void 0,4&i?ZC.createArrayTypeNode(r[n]):r[n]):12&i?ZC.createRestTypeNode(4&i?ZC.createArrayTypeNode(r[n]):r[n]):2&i?ZC.createOptionalTypeNode(r[n]):r[n]}const n=ow(ZC.createTupleTypeNode(r),1);return e.target.readonly?ZC.createTypeOperatorNode(148,n):n}}if(o.encounteredError||524288&o.flags){const t=ow(ZC.createTupleTypeNode([]),1);return e.target.readonly?ZC.createTypeOperatorNode(148,t):t}o.encounteredError=!0}function B(e,t){if(qD(e)){let n=e.typeArguments,r=e.qualifier;r&&(VN(r)?n!==Rw(r)&&(r=jw(ZC.cloneNode(r),n)):n!==Rw(r.right)&&(r=ZC.updateQualifiedName(r,r.left,jw(ZC.cloneNode(r.right),n)))),n=t.typeArguments;const i=J(t);for(const e of i)r=r?ZC.createQualifiedName(r,e):e;return ZC.updateImportTypeNode(e,e.argument,e.attributes,r,n,e.isTypeOf)}{let n=e.typeArguments,r=e.typeName;VN(r)?n!==Rw(r)&&(r=jw(ZC.cloneNode(r),n)):n!==Rw(r.right)&&(r=ZC.updateQualifiedName(r,r.left,jw(ZC.cloneNode(r.right),n))),n=t.typeArguments;const i=J(t);for(const e of i)r=ZC.createQualifiedName(r,e);return ZC.updateTypeReferenceNode(e,r,n)}}function J(e){let t=e.typeName;const n=[];for(;!VN(t);)n.unshift(t.right),t=t.left;return n.unshift(t),n}function z(e){if(u(o))return 1&o.flags?[kw(ZC.createNotEmittedTypeElement(),3,"elided")]:[ZC.createPropertySignature(void 0,"...",void 0,void 0)];const t=[];for(const n of e.callSignatures)t.push(F(n,179,o));for(const n of e.constructSignatures)4&n.flags||t.push(F(n,180,o));for(const n of e.indexInfos)t.push(N(n,o,1024&e.objectFlags?g(o):void 0));const n=e.properties;if(!n)return t;let r=0;for(const e of n){if(r++,2048&o.flags){if(4194304&e.flags)continue;6&ox(e)&&o.tracker.reportPrivateInBaseOfClassExpression&&o.tracker.reportPrivateInBaseOfClassExpression(mc(e.escapedName))}if(u(o)&&r+2<n.length-1){if(1&o.flags){const e=t.pop();t.push(kw(e,3,`... ${n.length-r} more elided ...`))}else t.push(ZC.createPropertySignature(void 0,`... ${n.length-r} more ...`,void 0,void 0));x(n[n.length-1],o,t);break}x(e,o,t)}return t.length?t:void 0}}(e,o);return a(),d}function g(e){return e.approximateLength+=3,1&e.flags?vw(ZC.createKeywordTypeNode(133),3,"elided"):ZC.createTypeReferenceNode(ZC.createIdentifier("..."),void 0)}function v(e,t){var n;return!!(8192&ix(e))&&(k(t.reverseMappedStack,e)||(null==(n=t.reverseMappedStack)?void 0:n[0])&&!(16&hx(ye(t.reverseMappedStack).links.propertyType))||function(){var n;if(((null==(n=t.reverseMappedStack)?void 0:n.length)??0)<3)return!1;for(let n=0;n<3;n++){if(t.reverseMappedStack[t.reverseMappedStack.length-1-n].links.mappedType.symbol!==e.links.mappedType.symbol)return!1}return!0}())}function x(e,t,n){var r;const i=!!(8192&ix(e)),o=v(e,t)?wt:E_(e),a=t.enclosingDeclaration;if(t.enclosingDeclaration=void 0,t.tracker.canTrackSymbol&&sd(e.escapedName))if(e.declarations){const n=me(e.declarations);if(cd(n))if(uF(n)){const e=Cc(n);e&&QD(e)&&_b(e.argumentExpression)&&q(e.argumentExpression,a,t)}else q(n.name.expression,a,t)}else t.tracker.reportNonSerializableProperty(sc(e));t.enclosingDeclaration=e.valueDeclaration||(null==(r=e.declarations)?void 0:r[0])||a;const s=ce(e,t);if(t.enclosingDeclaration=a,t.approximateLength+=yc(e).length+1,98304&e.flags){const r=D_(e);if(o!==r&&!Gc(o)&&!Gc(r)){const r=$u(e,177),i=Pg(r);n.push(S(t,F(i,177,t,{name:s}),r));const o=$u(e,178),a=Pg(o);return void n.push(S(t,F(a,178,t,{name:s}),o))}}const c=16777216&e.flags?ZC.createToken(58):void 0;if(8208&e.flags&&!Bp(o).length&&!Jj(e)){const r=ym(OF(o,(e=>!(32768&e.flags))),0);for(const i of r){const r=F(i,173,t,{name:s,questionToken:c});n.push(d(r,i.declaration||e.valueDeclaration))}if(r.length||!c)return}let l;v(e,t)?l=g(t):(i&&(t.reverseMappedStack||(t.reverseMappedStack=[]),t.reverseMappedStack.push(e)),l=o?fe(t,void 0,o,e):ZC.createKeywordTypeNode(133),i&&t.reverseMappedStack.pop());const _=Jj(e)?[ZC.createToken(148)]:void 0;_&&(t.approximateLength+=9);const u=ZC.createPropertySignature(_,s,c,l);function d(n,r){var i;const o=null==(i=e.declarations)?void 0:i.find((e=>348===e.kind));if(o){const e=ll(o.comment);e&&yw(n,[{kind:3,text:"*\n * "+e.replace(/\n/g,"\n * ")+"\n ",pos:-1,end:-1,hasTrailingNewLine:!0}])}else r&&S(t,n,r);return n}n.push(d(u,e.valueDeclaration))}function S(e,t,n){return e.enclosingFile&&e.enclosingFile===yd(n)?gw(t,n):t}function w(e,t,n){if(V(e)){if(u(t)){if(!n)return[1&t.flags?vw(ZC.createKeywordTypeNode(133),3,"elided"):ZC.createTypeReferenceNode("...",void 0)];if(e.length>2)return[m(e[0],t),1&t.flags?vw(ZC.createKeywordTypeNode(133),3,`... ${e.length-2} more elided ...`):ZC.createTypeReferenceNode(`... ${e.length-2} more ...`,void 0),m(e[e.length-1],t)]}const r=!(64&t.flags)?We():void 0,i=[];let o=0;for(const n of e){if(o++,u(t)&&o+2<e.length-1){i.push(1&t.flags?vw(ZC.createKeywordTypeNode(133),3,`... ${e.length-o} more elided ...`):ZC.createTypeReferenceNode(`... ${e.length-o} more ...`,void 0));const n=m(e[e.length-1],t);n&&i.push(n);break}t.approximateLength+=2;const a=m(n,t);a&&(i.push(a),r&&kT(a)&&r.add(a.typeName.escapedText,[n,i.length-1]))}if(r){const e=c(t);t.flags|=64,r.forEach((e=>{if(!ST(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]=m(n,t)})),e()}return i}}function N(e,t,n){const r=Ap(e)||"x",i=m(e.keyType,t),o=ZC.createParameterDeclaration(void 0,void 0,r,void 0,i,void 0);return n||(n=m(e.type||wt,t)),e.type||2097152&t.flags||(t.encounteredError=!0),t.approximateLength+=r.length+4,ZC.createIndexSignature(e.isReadonly?[ZC.createToken(148)]:void 0,[o],n)}function F(e,t,r,i){var o;let s,l;const _=Ad(e,!0)[0],u=P(r,e.declaration,_,e.typeParameters,e.parameters,e.mapper);r.approximateLength+=3,32&r.flags&&e.target&&e.mapper&&e.target.typeParameters?l=e.target.typeParameters.map((t=>m(yS(t,e.mapper),r))):s=e.typeParameters&&e.typeParameters.map((e=>O(e,r)));const d=c(r);r.flags&=-257;const p=(V(_,(e=>e!==_[_.length-1]&&!!(32768&ix(e))))?e.parameters:_).map((e=>J(e,r,176===t))),f=33554432&r.flags?void 0:function(e,t){if(e.thisParameter)return J(e.thisParameter,t);if(e.declaration&&Em(e.declaration)){const r=Qc(e.declaration);if(r&&r.typeExpression)return ZC.createParameterDeclaration(void 0,void 0,"this",void 0,m(n(t,r.typeExpression),t))}}(e,r);f&&p.unshift(f),d();const g=function(e,t){const n=256&e.flags,r=c(e);n&&(e.flags&=-257);let i;const o=Zg(t);if(!n||!Hc(o)){if(t.declaration&&!ey(t.declaration)){const n=hs(t.declaration),r=a(e,n,o);i=Te.serializeReturnTypeForSignature(t.declaration,n,e),r()}i||(i=ge(e,t,o))}i||n||(i=ZC.createKeywordTypeNode(133));return r(),i}(r,e);let h=null==i?void 0:i.modifiers;if(185===t&&4&e.flags){const e=Hv(h);h=ZC.createModifiersFromModifierFlags(64|e)}const y=179===t?ZC.createCallSignature(s,p,g):180===t?ZC.createConstructSignature(s,p,g):173===t?ZC.createMethodSignature(h,(null==i?void 0:i.name)??ZC.createIdentifier(""),null==i?void 0:i.questionToken,s,p,g):174===t?ZC.createMethodDeclaration(h,void 0,(null==i?void 0:i.name)??ZC.createIdentifier(""),void 0,s,p,g,void 0):176===t?ZC.createConstructorDeclaration(h,p,void 0):177===t?ZC.createGetAccessorDeclaration(h,(null==i?void 0:i.name)??ZC.createIdentifier(""),p,g,void 0):178===t?ZC.createSetAccessorDeclaration(h,(null==i?void 0:i.name)??ZC.createIdentifier(""),p,void 0):181===t?ZC.createIndexSignature(h,p,g):317===t?ZC.createJSDocFunctionType(p,g):184===t?ZC.createFunctionTypeNode(s,p,g??ZC.createTypeReferenceNode(ZC.createIdentifier(""))):185===t?ZC.createConstructorTypeNode(h,s,p,g??ZC.createTypeReferenceNode(ZC.createIdentifier(""))):262===t?ZC.createFunctionDeclaration(h,void 0,(null==i?void 0:i.name)?tt(i.name,VN):ZC.createIdentifier(""),s,p,g,void 0):218===t?ZC.createFunctionExpression(h,void 0,(null==i?void 0:i.name)?tt(i.name,VN):ZC.createIdentifier(""),s,p,g,ZC.createBlock([])):219===t?ZC.createArrowFunction(h,s,p,g,void 0,ZC.createBlock([])):_n.assertNever(t);if(l&&(y.typeArguments=ZC.createNodeArray(l)),323===(null==(o=e.declaration)?void 0:o.kind)&&339===e.declaration.parent.kind){vw(y,3,Gd(e.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map((e=>e.replace(/^\s+/," "))).join("\n"),!0)}return null==u||u(),y}function P(e,t,n,r,i,o){const a=le(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),sa(e.enclosingDeclaration).fakeScopeForSignatureDeclaration===t?r=e.enclosingDeclaration:e.enclosingDeclaration.parent&&sa(e.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===t&&(r=e.enclosingDeclaration.parent),_n.assertOptionalNode(r,DF);const i=(null==r?void 0:r.locals)??Ku();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=ZC.createBlock(s);sa(n).fakeScopeForSignatureDeclaration=t,n.locals=i,FT(n,e.enclosingDeclaration),e.enclosingDeclaration=n}};c=V(n)?t("params",(e=>{if(n)for(let t=0;t<n.length;t++){const r=n[t],o=null==i?void 0:i[t];i&&o!==r?(e(r.escapedName,xt),o&&e(o.escapedName,xt)):_(r.declarations,(t=>{return cD(t)&&k_(t.name)?(n(t.name),!0):void 0;function n(t){_(t.elements,(t=>{switch(t.kind){case 232:return;case 208:return function(t){if(k_(t.name))return n(t.name);const r=hs(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(ne(n,e).escapedText,n.symbol)}})))}return()=>{null==c||c(),null==l||l(),a(),e.enclosingDeclaration=u,e.mapper=d}}function I(e,t,n){const r=c(t);t.flags&=-513;const i=ZC.createModifiersFromModifierFlags(pC(e)),o=ne(e,t),a=vf(e),s=a&&m(a,t);return r(),ZC.createTypeParameterDeclaration(i,o,n,s)}function O(e,t,r=rf(e)){const i=r&&function(e,t,r){return!p(e,r)&&t&&n(r,t)===e&&Te.tryReuseExistingTypeNode(r,t)||m(e,r)}(r,ty(e),t);return I(e,t,i)}function L(e,t){const n=2===e.kind||3===e.kind?ZC.createToken(131):void 0,r=1===e.kind||3===e.kind?ow(ZC.createIdentifier(e.parameterName),16777216):ZC.createThisTypeNode(),i=e.type&&m(e.type,t);return ZC.createTypePredicateNode(n,r,i)}function B(e){const t=$u(e,169);return t||(Gu(e)?void 0:$u(e,341))}function J(e,t,n){const r=B(e),i=fe(t,r,F_(e),e),o=!(8192&t.flags)&&n&&r&&lI(r)?D(Dc(r),ZC.cloneNode):void 0,a=r&&Bu(r)||32768&ix(e)?ZC.createToken(26):void 0,s=z(e,r,t),c=r&&bg(r)||16384&ix(e)?ZC.createToken(58):void 0,l=ZC.createParameterDeclaration(o,a,s,c,i,void 0);return t.approximateLength+=yc(e).length+3,l}function z(e,t,n){return t&&t.name?80===t.name.kind?ow(ZC.cloneNode(t.name),16777216):166===t.name.kind?ow(ZC.cloneNode(t.name.right),16777216):function e(t){n.tracker.canTrackSymbol&&aD(t)&&ed(t)&&q(t.expression,n.enclosingDeclaration,n);let r=dJ(t,e,void 0,void 0,e);return HD(r)&&(r=ZC.updateBindingElement(r,r.dotDotDotToken,r.propertyName,r.name,void 0)),ey(r)||(r=ZC.cloneNode(r)),ow(r,16777217)}(t.name):yc(e)}function q(e,t,n){if(!n.tracker.canTrackSymbol)return;const r=cb(e),i=Ue(r,r.escapedText,1160127,void 0,!0);i&&n.tracker.trackSymbol(i,t,111551)}function U(e,t,n,r){return t.tracker.trackSymbol(e,t.enclosingDeclaration,n),W(e,t,n,r)}function W(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=Vs(n,t.enclosingDeclaration,i,!!(128&t.flags));if(!s||Ws(s[0],t.enclosingDeclaration,1===s.length?i:Us(i))){const r=xs(s?s[0]:n,t.enclosingDeclaration,i);if(l(r)){a=r.map((e=>V(e.declarations,ec)?Y(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,Us(i),!1);if(r){if(t.exports&&t.exports.get("export=")&&Ts(t.exports.get("export="),n)){s=r;break}s=r.concat(s||[Ss(t,n)||n]);break}}}}if(s)return s;if(o||!(6144&n.flags)){if(!o&&!r&&_(n.declarations,ec))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?uB(n)-uB(r):e?-1:1}return 0}}(e,n,!0)),_n.assert(i&&i.length>0)),i}function G(e,t){let n;return 524384&CJ(e).flags&&(n=ZC.createNodeArray(D(H_(e),(e=>O(e,t))))),n}function X(e,t,n){var r;_n.assert(e&&0<=t&&t<e.length);const i=e[t],o=HB(i);if(null==(r=n.typeParameterSymbolList)?void 0:r.has(o))return;let a;if(n.mustCreateTypeParameterSymbolList&&(n.mustCreateTypeParameterSymbolList=!1,n.typeParameterSymbolList=new Set(n.typeParameterSymbolList)),n.typeParameterSymbolList.add(o),512&n.flags&&t<e.length-1){const r=i,o=e[t+1];if(1&ix(o)){const e=function(e){return $(U_(e),H_(e))}(2097152&r.flags?qa(r):r);a=w(D(e,(e=>Yk(e,o.links.mapper))),n)}else a=G(i,n)}return a}function Q(e){return BD(e.objectType)?Q(e.objectType):e}function Y(t,n,r){let i=$u(t,307);if(!i){const e=d(t.declarations,(e=>ks(e,t)));e&&(i=$u(e,307))}if(i&&void 0!==i.moduleName)return i.moduleName;if(!i&&AB.test(t.escapedName))return t.escapedName.substring(1,t.escapedName.length-1);if(!n.enclosingFile||!n.tracker.moduleResolverHost)return AB.test(t.escapedName)?t.escapedName.substring(1,t.escapedName.length-1):yd(mp(t)).fileName;const o=_c(n.enclosingDeclaration),a=hg(o)?yg(o):void 0,s=n.enclosingFile,c=r||a&&e.getModeForUsageLocation(s,a)||s&&e.getDefaultResolutionModeForFile(s),l=yR(s.path,c),_=aa(t);let u=_.specifierCache&&_.specifierCache.get(l);if(!u){const e=!!j.outFile,{moduleResolverHost:i}=n.tracker,o=e?{...j,baseUrl:i.getCommonSourceDirectory()}:j;u=me(oB(t,He,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 Z(e){const t=ZC.createIdentifier(mc(e.escapedName));return e.parent?ZC.createQualifiedName(Z(e.parent),t):t}function ee(e,t,n,r){const i=U(e,t,n,!(16384&t.flags)),o=111551===n;if(V(i[0].declarations,ec)){const e=i.length>1?s(i,i.length-1,1):void 0,n=r||X(i,0,t),a=yd(_c(t.enclosingDeclaration)),c=vd(i[0]);let l,_;if(3!==xk(j)&&99!==xk(j)||99===(null==c?void 0:c.impliedNodeFormat)&&c.impliedNodeFormat!==(null==a?void 0:a.impliedNodeFormat)&&(l=Y(i[0],t,99),_=ZC.createImportAttributes(ZC.createNodeArray([ZC.createImportAttribute(ZC.createStringLiteral("resolution-mode"),ZC.createStringLiteral("import"))]))),l||(l=Y(i[0],t)),!(67108864&t.flags)&&1!==xk(j)&&l.includes("/node_modules/")){const e=l;if(3===xk(j)||99===xk(j)){const n=99===(null==a?void 0:a.impliedNodeFormat)?1:99;l=Y(i[0],t,n),l.includes("/node_modules/")?l=e:_=ZC.createImportAttributes(ZC.createNodeArray([ZC.createImportAttribute(ZC.createStringLiteral("resolution-mode"),ZC.createStringLiteral(99===n?"import":"require"))]))}_||(t.encounteredError=!0,t.tracker.reportLikelyUnsafeImportRequiredError&&t.tracker.reportLikelyUnsafeImportRequiredError(e))}const u=ZC.createLiteralTypeNode(ZC.createStringLiteral(l));if(t.approximateLength+=l.length+10,!e||e_(e)){if(e){jw(VN(e)?e:e.right,void 0)}return ZC.createImportTypeNode(u,_,e,n,o)}{const t=Q(e),r=t.objectType.typeName;return ZC.createIndexedAccessTypeNode(ZC.createImportTypeNode(u,_,r,n,o),t.indexType)}}const a=s(i,i.length-1,0);if(BD(a))return a;if(o)return ZC.createTypeQueryNode(a);{const e=VN(a)?a:a.right,t=Rw(e);return jw(e,void 0),ZC.createTypeReferenceNode(a,t)}function s(e,n,i){const o=n===e.length-1?r:X(e,n,t),a=e[n],c=e[n-1];let l;if(0===n)t.flags|=16777216,l=jc(a,t),t.approximateLength+=(l?l.length:0)+1,t.flags^=16777216;else if(c&&_s(c)){nd(_s(c),((e,t)=>{if(Ts(e,a)&&!sd(t)&&"export="!==t)return l=mc(t),!0}))}if(void 0===l){const r=d(a.declarations,Cc);if(r&&aD(r)&&e_(r.expression)){const t=s(e,n-1,i);return e_(t)?ZC.createIndexedAccessTypeNode(ZC.createParenthesizedType(ZC.createTypeQueryNode(t)),ZC.createTypeQueryNode(r.expression)):t}l=jc(a,t)}if(t.approximateLength+=l.length+1,!(16&t.flags)&&c&&kd(c)&&kd(c).get(a.escapedName)&&Ts(kd(c).get(a.escapedName),a)){const t=s(e,n-1,i);return BD(t)?ZC.createIndexedAccessTypeNode(t,ZC.createLiteralTypeNode(ZC.createStringLiteral(l))):ZC.createIndexedAccessTypeNode(ZC.createTypeReferenceNode(t,o),ZC.createLiteralTypeNode(ZC.createStringLiteral(l)))}const _=ow(ZC.createIdentifier(l),16777216);if(o&&jw(_,ZC.createNodeArray(o)),_.symbol=a,n>i){const t=s(e,n-1,i);return e_(t)?ZC.createQualifiedName(t,_):_n.fail("Impossible construct - an export of an indexed access cannot be reachable")}return _}}function te(e,t,n){const r=Ue(t.enclosingDeclaration,e,788968,void 0,!1);return!!(r&&262144&r.flags)&&r!==n.symbol}function ne(e,t){var n,i,o,a;if(4&t.flags&&t.typeParameterNames){const n=t.typeParameterNames.get(Nb(e));if(n)return n}let s=ie(e.symbol,t,788968,!0);if(!(80&s.kind))return ZC.createIdentifier("(Missing type parameter)");const c=null==(i=null==(n=e.symbol)?void 0:n.declarations)?void 0:i[0];if(c&&sD(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))||te(i,t,e);)r++,i=`${n}_${r}`;if(i!==n){const e=Rw(s);s=ZC.createIdentifier(i),jw(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(Nb(e),s),t.typeParameterNamesByText.add(i)}return s}function ie(e,t,n,r){const i=U(e,t,n);return!r||1===i.length||t.encounteredError||65536&t.flags||(t.encounteredError=!0),function e(n,r){const i=X(n,r,t),o=n[r];0===r&&(t.flags|=16777216);const a=jc(o,t);0===r&&(t.flags^=16777216);const s=ow(ZC.createIdentifier(a),16777216);i&&jw(s,ZC.createNodeArray(i));return s.symbol=o,r>0?ZC.createQualifiedName(e(n,r-1),s):s}(i,i.length-1)}function oe(e,t,n){const r=U(e,t,n);return function e(n,r){const i=X(n,r,t),o=n[r];0===r&&(t.flags|=16777216);let a=jc(o,t);0===r&&(t.flags^=16777216);let s=a.charCodeAt(0);if(zm(s)&&V(o.declarations,ec))return ZC.createStringLiteral(Y(o,t));if(0===r||KT(a,M)){const t=ow(ZC.createIdentifier(a),16777216);return i&&jw(t,ZC.createNodeArray(i)),t.symbol=o,r>0?ZC.createPropertyAccessExpression(e(n,r-1),t):t}{let t;if(91===s&&(a=a.substring(1,a.length-1),s=a.charCodeAt(0)),!zm(s)||8&o.flags?""+ +a===a&&(t=ZC.createNumericLiteral(+a)):t=ZC.createStringLiteral(Fy(a).replace(/\\./g,(e=>e.substring(1))),39===s),!t){const e=ow(ZC.createIdentifier(a),16777216);i&&jw(e,ZC.createNodeArray(i)),e.symbol=o,t=e}return ZC.createElementAccessExpression(e(n,r-1),t)}}(r,r.length-1)}function ae(e){const t=Cc(e);if(!t)return!1;if(aD(t)){return!!(402653316&IR(t.expression).flags)}if(QD(t)){return!!(402653316&IR(t.argumentExpression).flags)}return NN(t)}function se(e){const t=Cc(e);return!!(t&&NN(t)&&(t.singleQuote||!ey(t)&&Kt(Gd(t,!1),"'")))}function ce(e,t){const n=!!l(e.declarations)&&h(e.declarations,ae),r=!!l(e.declarations)&&h(e.declarations,se),i=!!(8192&e.flags),o=function(e,t,n,r,i){const o=aa(e).nameType;if(o){if(384&o.flags){const e=""+o.value;return ms(e,vk(j))||!r&&zT(e)?zT(e)&&Kt(e,"-")?ZC.createComputedPropertyName(ZC.createPrefixUnaryExpression(41,ZC.createNumericLiteral(-e))):qT(e,vk(j),n,r,i):ZC.createStringLiteral(e,!!n)}if(8192&o.flags)return ZC.createComputedPropertyName(oe(o.symbol,t,111551))}}(e,t,r,n,i);if(o)return o;return qT(mc(e.escapedName),vk(j),r,n,i)}function le(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 _e(e,t){return e.declarations&&y(e.declarations,(e=>!(!oq(e)||t&&!uc(e,(e=>e===t)))))}function de(e,t){if(!(4&hx(t)))return!0;if(!kD(e))return!0;zy(e);const n=sa(e).resolvedSymbol,r=n&&Tu(n);return!r||r!==t.target||l(e.typeArguments)>=Cg(t.target.typeParameters)}function pe(e,t,n){8192&n.flags&&n.symbol===e&&(!t.enclosingDeclaration||V(e.declarations,(e=>yd(e)===t.enclosingFile)))&&(t.flags|=1048576);return m(n,t)}function fe(e,t,n,r){var i;let o;const s=t&&(cD(t)||SP(t))&&Rz(t,e.enclosingDeclaration),c=t??r.valueDeclaration??_e(r)??(null==(i=r.declarations)?void 0:i[0]);if(!p(n,e)&&c)if(d_(c))o=Te.serializeTypeOfAccessor(c,r,e);else if(SC(c)&&!ey(c)&&!(196608&hx(n))){const t=a(e,r,n);o=Te.serializeTypeOfDeclaration(c,r,e),t()}return o||(s&&(n=Sw(n)),o=pe(r,e,n)),o??ZC.createKeywordTypeNode(133)}function ge(e,t,n){const r=e.suppressReportInferenceFallback;e.suppressReportInferenceFallback=!0;const i=Kg(t),o=i?L(e.mapper?cS(i,e.mapper):i,e):m(n,e);return e.suppressReportInferenceFallback=r,o}function he(e,t,n=t.enclosingDeclaration){let i=!1;const o=cb(e);if(Em(e)&&(Ym(o)||eg(o.parent)||oD(o.parent)&&Zm(o.parent.left)&&Ym(o.parent.right)))return i=!0,{introducesError:i,node:e};const a=rc(e);let s;if(lv(o))return s=hs(em(o,!1,!1)),0!==Gs(s,o,a,!1).accessibility&&(i=!0,t.tracker.reportInaccessibleThisError()),{introducesError:i,node:c(e)};if(s=Xa(o,a,!0,!0),t.enclosingDeclaration&&!(s&&262144&s.flags)){s=ws(s);const n=Xa(o,a,!0,!0,t.enclosingDeclaration);if(n===xt||void 0===n&&void 0!==s||n&&s&&!Ts(ws(n),s))return n!==xt&&t.tracker.reportInferenceFallback(e),i=!0,{introducesError:i,node:e,sym:s};s=n}return s?(1&s.flags&&s.valueDeclaration&&(Qh(s.valueDeclaration)||SP(s.valueDeclaration))||(262144&s.flags||lh(e)||0===Gs(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=Tu(s),i=262144&s.flags?ne(n,t):ZC.cloneNode(e);return i.symbol=s,r(t,ow(i,16777216),e)}const n=dJ(e,(e=>c(e)),void 0);return n!==e&&r(t,n,e),n}}function ve(e,t){const r=n(e,t,!0);if(!r)return!1;if(Em(t)&&uf(t)){ik(t);const e=sa(t).resolvedSymbol;return!e||!!((t.isTypeOf||788968&e.flags)&&l(t.typeArguments)>=Cg(H_(e)))}if(kD(t)){if(kl(t))return!1;const n=sa(t).resolvedSymbol;if(!n)return!1;if(262144&n.flags){const t=Tu(n);return!(e.mapper&&Yk(t,e.mapper)!==t)}if(Im(t))return de(t,r)&&!Jy(t)&&!!(788968&n.flags)}if(MD(t)&&158===t.operator&&155===t.type.kind){const n=e.enclosingDeclaration&&function(e){for(;sa(e).fakeScopeForSignatureDeclaration;)e=e.parent;return e}(e.enclosingDeclaration);return!!uc(t,(e=>e===n))}return!0}}(),Te=zK(j,xe.syntacticBuilderResolver),we=hC({evaluateElementAccessExpression:function(e,t){const n=e.expression;if(sb(n)&&ju(e.argumentExpression)){const r=Xa(n,111551,!0);if(r&&384&r.flags){const n=fc(e.argumentExpression.text),i=r.exports.get(n);if(i)return _n.assert(yd(i.valueDeclaration)===yd(r.valueDeclaration)),t?IJ(e,i,t):qz(i.valueDeclaration)}}return gC(void 0)},evaluateEntityNameExpression:AJ}),Ne=Ku(),De=$o(4,"undefined");De.declarations=[];var Fe=$o(1536,"globalThis",8);Fe.exports=Ne,Fe.declarations=[],Ne.set(Fe.escapedName,Fe);var Ee,Pe,Oe,Le=$o(4,"arguments"),je=$o(4,"require"),Re=j.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Je=!j.verbatimModuleSyntax,ze=0,qe=0,Ue=bC({compilerOptions:j,requireSymbol:je,argumentsSymbol:Le,globals:Ne,getSymbolOfDeclaration:hs,error:Ro,getRequiresScopeChangeCache:ua,setRequiresScopeChangeCache:da,lookup:ca,onPropertyWithInvalidInitializer:function(e,t,n,r){if(!W)return e&&!r&&ma(e,t,t)||Ro(e,e&&n.type&&As(n.type,e.pos)?_a.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:_a.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,Pp(n.name),fa(t)),!0;return!1},onFailedToResolveSymbol:function(e,t,n,r){const i=Ye(t)?t:t.escapedText;a((()=>{if(!(e&&(324===e.parent.kind||ma(e,i,t)||ga(e)||function(e,t,n){const r=1920|(Em(e)?111551:0);if(n===r){const n=Ja(Ue(e,t,788968&~r,void 0,!1)),i=e.parent;if(n){if(oD(i)){_n.assert(i.left===e,"Should only be resolving left side of qualified name as a namespace");const r=i.right.escapedText;if(fm(Tu(n),r))return Ro(i,_a.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,mc(t),mc(r)),!0}return Ro(e,_a._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,mc(t)),!0}}return!1}(e,i,n)||function(e,t){if(ya(t)&&281===e.parent.kind)return Ro(e,_a.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(Ja(Ue(e,t,1024,void 0,!1)))return Ro(e,_a.Cannot_use_namespace_0_as_a_value,mc(t)),!0}else if(788544&n){if(Ja(Ue(e,t,1536,void 0,!1)))return Ro(e,_a.Cannot_use_namespace_0_as_a_type,mc(t)),!0}return!1}(e,i,n)||function(e,t,n){if(111551&n){if(ya(t)){const n=e.parent.parent;if(n&&n.parent&&BE(n)){const r=n.token;264===n.parent.kind&&96===r?Ro(e,_a.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,mc(t)):u_(n.parent)&&96===r?Ro(e,_a.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,mc(t)):u_(n.parent)&&119===r&&Ro(e,_a.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,mc(t))}else Ro(e,_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,mc(t));return!0}const n=Ja(Ue(e,t,788544,void 0,!1)),r=n&&Ua(n);if(n&&void 0!==r&&!(111551&r)){const r=mc(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=uc(e.parent,(e=>!aD(e)&&!_D(e)&&(wD(e)||"quit")));if(n&&1===n.members.length){const e=Tu(t);return!!(1048576&e.flags)&&Gj(e,384,!0)}return!1}(e,n)?Ro(e,_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,r):Ro(e,_a._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"):Ro(e,_a._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=Ja(Ue(e,t,111127,void 0,!1));if(n&&!(1920&n.flags))return Ro(e,_a._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,mc(t)),!0}return!1}(e,i,n)))){let o,a;if(t&&(a=function(e){const t=fa(e),n=ep().get(t);return n&&ge(n.keys())}(t),a&&Ro(e,r,fa(t),a)),!a&&Vi<Wi){o=xO(e,i,n);if((null==o?void 0:o.valueDeclaration)&&sp(o.valueDeclaration)&&dp(o.valueDeclaration)&&(o=void 0),o){const i=sc(o),a=uO(e,o,!1),s=1920===n||t&&"string"!=typeof t&&ey(t)?_a.Cannot_find_namespace_0_Did_you_mean_1:a?_a.Could_not_find_name_0_Did_you_mean_1:_a.Cannot_find_name_0_Did_you_mean_1,c=jo(e,s,fa(t),i);c.canonicalHead=Hp(r,fa(t)),Mo(!a,c),o.valueDeclaration&&sT(c,Rp(o.valueDeclaration,_a._0_is_declared_here,i))}}o||a||!t||Ro(e,r,fa(t)),Vi++}}))},onSuccessfullyResolvedSymbol:function(e,t,n,r,i,o){a((()=>{var a;const s=t.escapedName,c=r&&WE(r)&&Yp(r);if(e&&(2&n||(32&n||384&n)&&!(111551&~n))){const n=ws(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=>op(e)||u_(e)||266===e.kind));if(void 0===r)return _n.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(33554432&r.flags||la(r,t))){let n;const i=Pp(Cc(r));2&e.flags?n=Ro(t,_a.Block_scoped_variable_0_used_before_its_declaration,i):32&e.flags?n=Ro(t,_a.Class_0_used_before_its_declaration,i):256&e.flags?n=Ro(t,_a.Enum_0_used_before_its_declaration,i):(_n.assert(!!(128&e.flags)),Sk(j)&&(n=Ro(t,_a.Enum_0_used_before_its_declaration,i))),n&&sT(n,Rp(r,_a._0_is_declared_here,i))}}(n,e)}if(c&&!(111551&~n)&&!(16777216&e.flags)){const n=fs(t);l(n.declarations)&&h(n.declarations,(e=>rE(e)||WE(e)&&!!e.symbol.globalExports))&&Bo(!j.allowUmdGlobalAccess,e,_a._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,mc(s))}if(i&&!o&&!(111551&~n)){const r=fs(Sd(t)),o=Yh(i);r===hs(i)?Ro(e,_a.Parameter_0_cannot_reference_itself,Pp(i.name)):r.valueDeclaration&&r.valueDeclaration.pos>i.pos&&o.parent.locals&&ca(o.parent.locals,r.escapedName,n)===r&&Ro(e,_a.Parameter_0_cannot_reference_identifier_1_declared_after_it,Pp(i.name),Pp(e))}if(e&&111551&n&&2097152&t.flags&&!(111551&t.flags)&&!xT(e)){const n=Ha(t,111551);if(n){const t=281===n.kind||278===n.kind||280===n.kind?_a._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:_a._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,r=mc(s);pa(Ro(e,t,r),n,r)}}if(j.isolatedModules&&t&&c&&!(111551&~n)){const e=ca(Ne,s,n)===t&&WE(r)&&r.locals&&ca(r.locals,s,-111552);if(e){const t=null==(a=e.declarations)?void 0:a.find((e=>276===e.kind||273===e.kind||274===e.kind||271===e.kind));t&&!Bl(t)&&Ro(t,_a.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,mc(s))}}}))}}),$e=bC({compilerOptions:j,requireSymbol:je,argumentsSymbol:Le,globals:Ne,getSymbolOfDeclaration:hs,error:Ro,getRequiresScopeChangeCache:ua,setRequiresScopeChangeCache:da,lookup:function(e,t,n){const r=ca(e,t,n);if(r)return r;let i;if(e===Ne){i=R(["string","number","boolean","object","bigint","symbol"],(t=>e.has(t.charAt(0).toUpperCase()+t.slice(1))?$o(524288,t):void 0)).concat(Ie(e.values()))}else i=Ie(e.values());return SO(mc(t),i,n)}});const He={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),m),getTypeCount:()=>f,getInstantiationCount:()=>g,getRelationCacheSizes:()=>({assignable:yo.size,identity:xo.size,subtype:go.size,strictSubtype:ho.size}),isUndefinedSymbol:e=>e===De,isArgumentsSymbol:e=>e===Le,isUnknownSymbol:e=>e===xt,getMergedSymbol:fs,symbolIsValue:Ns,getDiagnostics:sz,getGlobalDiagnostics:function(){return cz(),po.getGlobalDiagnostics()},getRecursionIdentity:AC,getUnmatchedProperties:lN,getTypeOfSymbolAtLocation:(e,t)=>{const n=pc(t);return n?function(e,t){if(e=ws(e),(80===t.kind||81===t.kind)&&(pb(t)&&(t=t.parent),bm(t)&&(!Qg(t)||lx(t)))){const n=ww(lx(t)&&211===t.kind?nO(t,void 0,!0):ER(t));if(ws(sa(t).resolvedSymbol)===e)return n}if(lh(t)&&wu(t.parent)&&c_(t.parent))return h_(t.parent.symbol);return fb(t)&&lx(t.parent)?D_(e):E_(e)}(e,n):Et},getTypeOfSymbol:F_,getSymbolsOfParameterPropertyDeclaration:(e,t)=>{const n=pc(e,cD);return void 0===n?_n.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(_n.assert(Zs(n,n.parent)),function(e,t){const n=e.parent,r=e.parent.parent,i=ca(n.locals,t,111551),o=ca(kd(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,fc(t)))},getDeclaredTypeOfSymbol:Tu,getPropertiesOfType:$p,getPropertyOfType:(e,t)=>fm(e,fc(t)),getPrivateIdentifierPropertyOfType:(e,t,n)=>{const r=pc(n);if(!r)return;const i=oO(fc(t),r);return i?cO(e,i):void 0},getTypeOfPropertyOfType:(e,t)=>Wc(e,fc(t)),getIndexInfoOfType:(e,t)=>Qm(e,0===t?Vt:Wt),getIndexInfosOfType:qm,getIndexInfosOfIndexSymbol:Hh,getSignaturesOfType:ym,getIndexTypeOfType:(e,t)=>rg(e,0===t?Vt:Wt),getIndexType:e=>rx(e),getBaseTypes:cu,getBaseTypeOfLiteralType:nw,getWidenedType:Uw,getWidenedLiteralType:iw,fillMissingTypeArguments:Eg,getTypeFromTypeNode:e=>{const t=pc(e,b_);return t?Bk(t):Et},getParameterType:ej,getParameterIdentifierInfoAtPosition:function(e,t){var n;if(317===(null==(n=e.declaration)?void 0:n.kind))return;const r=e.parameters.length-(ZB(e)?1:0);if(t<r){const n=e.parameters[t],r=QL(n);return r?{parameter:r,parameterName:n.escapedName,isRestParameter:!1}:void 0}const i=e.parameters[r]||xt,o=QL(i);if(!o)return;const a=F_(i);if(lw(a)){const e=a.target.labeledElementDeclarations,n=null==e?void 0:e[t-r],i=!!(null==n?void 0:n.dotDotDotToken);return n?(_n.assert(VN(n.name)),{parameter:n.name,parameterName:n.name.escapedText,isRestParameter:i}):void 0}if(t===r)return{parameter:o,parameterName:i.escapedName,isRestParameter:!0};return},getPromisedTypeOfPromise:aM,getAwaitedType:e=>pM(e),getReturnTypeOfSignature:Zg,isNullableType:HI,getNullableType:xw,getNonNullableType:Tw,getNonOptionalType:ww,getTypeArguments:fy,typeToTypeNode:xe.typeToTypeNode,typePredicateToTypePredicateNode:xe.typePredicateToTypePredicateNode,indexInfoToIndexSignatureDeclaration:xe.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:xe.signatureToSignatureDeclaration,symbolToEntityName:xe.symbolToEntityName,symbolToExpression:xe.symbolToExpression,symbolToNode:xe.symbolToNode,symbolToTypeParameterDeclarations:xe.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:xe.symbolToParameterDeclaration,typeParameterToDeclaration:xe.typeParameterToDeclaration,getSymbolsInScope:(e,t)=>{const n=pc(e);return n?function(e,t){if(67108864&e.flags)return[];const n=Ku();let r=!1;return i(),n.delete("this"),fg(n);function i(){for(;e;){switch(su(e)&&e.locals&&!Qp(e)&&a(e.locals,t),e.kind){case 307:if(!VI(e))break;case 267:s(hs(e).exports,2623475&t);break;case 266:a(hs(e).exports,8&t);break;case 231:e.name&&o(e.symbol,t);case 263:case 264:r||a(kd(hs(e)),788968&t);break;case 218:e.name&&o(e.symbol,t)}jf(e)&&o(Le,t),r=Fv(e),e=e.parent}a(Ne,t)}function o(e,t){if(sx(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=>{$u(e,281)||$u(e,280)||"default"===e.escapedName||o(e,t)}))}}(n,t):[]},getSymbolAtLocation:e=>{const t=pc(e);return t?hz(t,!0):void 0},getIndexInfosAtLocation:e=>{const t=pc(e);return t?function(e){if(VN(e)&&XD(e.parent)&&e.parent.name===e){const t=Yb(e),n=ER(e.parent.expression);return A(1048576&n.flags?n.types:[n],(e=>C(qm(e),(e=>Bm(t,e.keyType)))))}return}(t):void 0},getShorthandAssignmentValueSymbol:e=>{const t=pc(e);return t?function(e){if(e&&304===e.kind)return Xa(e.name,2208703);return}(t):void 0},getExportSpecifierLocalTargetSymbol:e=>{const t=pc(e,vE);return t?function(e){if(vE(e)){const t=e.propertyName||e.name;return e.parent.parent.moduleSpecifier?Ia(e.parent.parent,e):11===t.kind?void 0:Xa(t,2998271)}return Xa(e,2998271)}(t):void 0},getExportSymbolOfSymbol:e=>fs(e.exportSymbol||e),getTypeAtLocation:e=>{const t=pc(e);return t?yz(t):Et},getTypeOfAssignmentPattern:e=>{const t=pc(e,S_);return t&&vz(t)||Et},getPropertySymbolOfDestructuringAssignment:e=>{const t=pc(e,VN);return t?function(e){const t=vz(tt(e.parent.parent,S_));return t&&fm(t,e.escapedText)}(t):void 0},signatureToString:(e,t,n,r)=>cc(e,pc(t),n,r),typeToString:(e,t,n)=>lc(e,pc(t),n),symbolToString:(e,t,n,r)=>sc(e,pc(t),n,r),typePredicateToString:(e,t,n)=>Fc(e,pc(t),n),writeSignature:(e,t,n,r,i)=>cc(e,pc(t),n,r,i),writeType:(e,t,n,r,i,o)=>lc(e,pc(t),n,r,i,o),writeSymbol:(e,t,n,r,i)=>sc(e,pc(t),n,r,i),writeTypePredicate:(e,t,n,r)=>Fc(e,pc(t),n,r),getAugmentedPropertiesOfType:Sz,getRootSymbols:function e(t){const n=function(e){if(6&ix(e))return R(aa(e).containingType.types,(t=>fm(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=aa(n).target;)t=n;return t}(e))}return}(t);return n?A(n,e):[t]},getSymbolOfExpando:NL,getContextualType:(e,t)=>{const n=pc(e,V_);if(n)return 4&t?Ge(n,(()=>MA(n,t))):MA(n,t)},getContextualTypeForObjectLiteralElement:e=>{const t=pc(e,v_);return t?NA(t,void 0):void 0},getContextualTypeForArgumentAtIndex:(e,t)=>{const n=pc(e,L_);return n&&gA(n,t)},getContextualTypeForJsxAttribute:e=>{const t=pc(e,yu);return t&&AA(t,void 0)},isContextSensitive:SS,getTypeOfPropertyOfContextualType:xA,getFullyQualifiedName:Ga,getResolvedSignature:(e,t,n)=>Qe(e,t,n,0),getCandidateSignaturesForStringLiteralCompletions:function(e,t){const n=new Set,r=[];Ge(t,(()=>Qe(e,r,void 0,0)));for(const e of r)n.add(e);r.length=0,Ke(t,(()=>Qe(e,r,void 0,0)));for(const e of r)n.add(e);return Ie(n)},getResolvedSignatureForSignatureHelp:(e,t,n)=>Ke(e,(()=>Qe(e,t,n,16))),getExpandedParameters:Ad,hasEffectiveRestParameter:aj,containsArgumentsReference:jg,getConstantValue:e=>{const t=pc(e,Uz);return t?Vz(t):void 0},isValidPropertyAccess:(e,t)=>{const n=pc(e,A_);return!!n&&function(e,t){switch(e.kind){case 211:return NO(e,108===e.expression.kind,t,Uw(IR(e.expression)));case 166:return NO(e,!1,t,Uw(IR(e.left)));case 205:return NO(e,!1,t,Bk(e))}}(n,fc(t))},isValidPropertyAccessForCompletions:(e,t,n)=>{const r=pc(e,XD);return!!r&&wO(r,t,n)},getSignatureFromDeclaration:e=>{const t=pc(e,r_);return t?Pg(t):void 0},isImplementationOfOverload:e=>{const t=pc(e,r_);return t?jz(t):void 0},getImmediateAliasedSymbol:aI,getAliasedSymbol:qa,getEmitResolver:function(e,t,n){n||sz(e,t);return be},requiresAddingImplicitUndefined:Rz,getExportsOfModule:ss,getExportsAndPropertiesOfModule:function(e){const t=ss(e),n=rs(e);if(n!==e){const e=F_(n);ls(e)&&ae(t,$p(e))}return t},forEachExportAndPropertyOfModule:function(e,t){us(e).forEach(((e,n)=>{Rs(n)||t(e,n)}));const n=rs(e);if(n!==e){const e=F_(n);ls(e)&&function(e,t){e=wf(e),3670016&e.flags&&Op(e).members.forEach(((e,n)=>{Bs(e,n)&&t(e,n)}))}(e,((e,n)=>{t(e,n)}))}},getSymbolWalker:KM((function(e){return dh(e)||wt}),Kg,Zg,cu,Op,F_,ON,rf,cb,fy),getAmbientModules:function(){Wn||(Wn=[],Ne.forEach(((e,t)=>{AB.test(t)&&Wn.push(e)})));return Wn},getJsxIntrinsicTagNamesAt:function(e){const t=vI(FB.IntrinsicElements,e);return t?$p(t):s},isOptionalParameter:e=>{const t=pc(e,cD);return!!t&&bg(t)},tryGetMemberInModuleExports:(e,t)=>cs(fc(e),t),tryGetMemberInModuleExportsAndProperties:(e,t)=>function(e,t){const n=cs(e,t);if(n)return n;const r=rs(t);if(r===t)return;const i=F_(r);return ls(i)?fm(i,e):void 0}(fc(e),t),tryFindAmbientModule:e=>gg(e,!0),getApparentType:Tf,getUnionType:jb,isTypeAssignableTo:IS,createAnonymousType:zs,createSignature:Dd,createSymbol:$o,createIndexInfo:Rh,getAnyType:()=>wt,getStringType:()=>Vt,getStringLiteralType:kk,getNumberType:()=>Wt,getNumberLiteralType:wk,getBigIntType:()=>$t,getBigIntLiteralType:Nk,createPromiseType:wj,createArrayType:Uv,getElementTypeOfArrayType:zC,getBooleanType:()=>sn,getFalseType:e=>e?Xt:Qt,getTrueType:e=>e?tn:rn,getVoidType:()=>ln,getUndefinedType:()=>jt,getNullType:()=>qt,getESSymbolType:()=>cn,getNeverType:()=>un,getOptionalType:()=>Jt,getPromiseType:()=>av(!1),getPromiseLikeType:()=>dv(!1),getAnyAsyncIterableType:()=>{const e=mv(!1);if(e!==On)return uy(e,[wt,wt,wt])},isSymbolAccessible:Gs,isArrayType:RC,isTupleType:lw,isArrayLikeType:qC,isEmptyAnonymousObjectType:tT,isTypeInvalidDueToUnionDiscriminant:function(e,t){return t.properties.some((t=>{const n=t.name&&(jE(t.name)?kk(rC(t.name)):Yb(t.name)),r=n&&cC(n)?lC(n):void 0,i=void 0===r?void 0:Wc(e,r);return!!i&&ew(i)&&!IS(yz(t),i)}))},getExactOptionalProperties:function(e){return $p(e).filter((e=>Ew(F_(e))))},getAllPossiblePropertiesOfTypes:function(e){const t=jb(e);if(!(1048576&t.flags))return Sz(t);const n=Ku();for(const r of e)for(const{escapedName:e}of Sz(r))if(!n.has(e)){const r=Rf(t,e);r&&n.set(e,r)}return Ie(n.values())},getSuggestedSymbolForNonexistentProperty:yO,getSuggestedSymbolForNonexistentJSXAttribute:vO,getSuggestedSymbolForNonexistentSymbol:(e,t,n)=>xO(e,fc(t),n),getSuggestedSymbolForNonexistentModule:kO,getSuggestedSymbolForNonexistentClassMember:hO,getBaseConstraintOfType:ff,getDefaultFromTypeParameter:e=>e&&262144&e.flags?vf(e):void 0,resolveName:(e,t,n,r)=>Ue(t,fc(e),n,void 0,!1,r),getJsxNamespace:e=>mc(Io(e)),getJsxFragmentFactory:e=>{const t=iq(e);return t&&mc(cb(t).escapedText)},getAccessibleSymbolChain:Vs,getTypePredicateOfSignature:Kg,resolveExternalModuleName:e=>{const t=pc(e,V_);return t&&Za(t,t,!0)},resolveExternalModuleSymbol:rs,tryGetThisTypeAt:(e,t,n)=>{const r=pc(e);return r&&QP(r,t,n)},getTypeArgumentConstraint:e=>{const t=pc(e,b_);return t&&function(e){const t=et(e.parent,Iu);if(!t)return;const n=GR(t);if(!n)return;const r=rf(n[t.typeArguments.indexOf(e)]);return r&&yS(r,Qk(n,HR(t,n)))}(t)},getSuggestionDiagnostics:(n,r)=>{const i=pc(n,WE)||_n.fail("Could not determine parsed source file.");if(uT(i,j,e))return s;let o;try{return t=r,lz(i),_n.assert(!!(1&sa(i).flags)),o=ae(o,fo.getDiagnostics(i.fileName)),NM(az(i),((e,t,n)=>{hd(e)||oz(t,!!(33554432&e.flags))||(o||(o=[])).push({...n,category:2})})),o||s}finally{t=void 0}},runWithCancellationToken:(e,n)=>{try{return t=e,n(He)}finally{t=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:H_,isDeclarationVisible:Rc,isPropertyAccessible:DO,getTypeOnlyAliasDeclaration:Ha,getMemberOverrideModifierStatus:function(e,t,n){if(!t.name)return 0;const r=hs(e),i=Tu(r),o=Td(i),a=F_(r),s=yh(e)&&cu(i),c=(null==s?void 0:s.length)?Td(me(s),i.thisType):void 0,l=ru(i),_=t.parent?Pv(t):Dv(t,16);return SJ(e,a,l,c,i,o,_,Av(t),Fv(t),!1,n)},isTypeParameterPossiblyReferenced:dS,typeHasCallOrConstructSignatures:Tz,getSymbolFlags:Ua};function Ke(e,t){if(e=uc(e,O_)){const n=[],r=[];for(;e;){const t=sa(e);if(n.push([t,t.resolvedSignature]),t.resolvedSignature=void 0,BT(e)){const t=aa(hs(e)),n=t.type;r.push([t,n]),t.type=void 0}e=uc(e.parent,O_)}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 Ge(e,t){const n=uc(e,L_);if(n){let t=e;do{sa(t).skipDirectInference=!0,t=t.parent}while(t&&t!==n)}I=!0;const r=Ke(e,t);if(I=!1,n){let t=e;do{sa(t).skipDirectInference=void 0,t=t.parent}while(t&&t!==n)}return r}function Qe(e,t,n,r){const i=pc(e,L_);Ee=n;const o=i?TL(i,t,r):void 0;return Ee=void 0,o}var Ze=new Map,nt=new Map,rt=new Map,it=new Map,ot=new Map,at=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,ht=[],vt=new Map,bt=new Set,xt=$o(4,"unknown"),kt=$o(0,"__resolving__"),St=new Map,Tt=new Map,Ct=new Set,wt=Os(1,"any"),Nt=Os(1,"any",262144,"auto"),Dt=Os(1,"any",void 0,"wildcard"),Ft=Os(1,"any",void 0,"blocked string"),Et=Os(1,"error"),Pt=Os(1,"unresolved"),At=Os(1,"any",65536,"non-inferrable"),It=Os(1,"intrinsic"),Lt=Os(2,"unknown"),jt=Os(32768,"undefined"),Rt=G?jt:Os(32768,"undefined",65536,"widening"),Mt=Os(32768,"undefined",void 0,"missing"),Bt=_e?Mt:jt,Jt=Os(32768,"undefined",void 0,"optional"),qt=Os(65536,"null"),Ut=G?qt:Os(65536,"null",65536,"widening"),Vt=Os(4,"string"),Wt=Os(8,"number"),$t=Os(64,"bigint"),Xt=Os(512,"false",void 0,"fresh"),Qt=Os(512,"false"),tn=Os(512,"true",void 0,"fresh"),rn=Os(512,"true");tn.regularType=rn,tn.freshType=tn,rn.regularType=rn,rn.freshType=tn,Xt.regularType=Qt,Xt.freshType=Xt,Qt.regularType=Qt,Qt.freshType=Xt;var an,sn=jb([Qt,rn]),cn=Os(4096,"symbol"),ln=Os(16384,"void"),un=Os(131072,"never"),dn=Os(131072,"never",262144,"silent"),pn=Os(131072,"never",void 0,"implicit"),fn=Os(131072,"never",void 0,"unreachable"),mn=Os(67108864,"object"),gn=jb([Vt,Wt]),hn=jb([Vt,Wt,cn]),yn=jb([Wt,$t]),vn=jb([Vt,Wt,sn,$t,qt,jt]),bn=_x(["",""],[Wt]),xn=eS((e=>{return 262144&e.flags?!(t=e).constraint&&!ty(t)||t.constraint===jn?t:t.restrictiveInstantiation||(t.restrictiveInstantiation=js(t.symbol),t.restrictiveInstantiation.constraint=jn,t.restrictiveInstantiation):e;var t}),(()=>"(restrictive mapper)")),kn=eS((e=>262144&e.flags?Dt:e),(()=>"(permissive mapper)")),Sn=Os(131072,"never",void 0,"unique literal"),Tn=eS((e=>262144&e.flags?Sn:e),(()=>"(unique literal mapper)")),Cn=eS((e=>(!an||e!==Bn&&e!==Jn&&e!==zn||an(!0),e)),(()=>"(unmeasurable reporter)")),wn=eS((e=>(!an||e!==Bn&&e!==Jn&&e!==zn||an(!1),e)),(()=>"(unreliable reporter)")),Nn=zs(void 0,O,s,s,s),Dn=zs(void 0,O,s,s,s);Dn.objectFlags|=2048;var Fn=zs(void 0,O,s,s,s);Fn.objectFlags|=141440;var En=$o(2048,"__type");En.members=Ku();var Pn=zs(En,O,s,s,s),An=zs(void 0,O,s,s,s),In=G?jb([jt,qt,An]):Lt,On=zs(void 0,O,s,s,s);On.instantiations=new Map;var Ln=zs(void 0,O,s,s,s);Ln.objectFlags|=262144;var jn=zs(void 0,O,s,s,s),Rn=zs(void 0,O,s,s,s),Mn=zs(void 0,O,s,s,s),Bn=js(),Jn=js();Jn.constraint=Bn;var zn=js(),qn=js(),Un=js();Un.constraint=qn;var Vn,Wn,Hn,Kn,Gn,Xn,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,Nr,Dr,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=Tg(1,"<<unresolved>>",0,wt),si=Dd(void 0,void 0,void 0,s,wt,void 0,0,0),ci=Dd(void 0,void 0,void 0,s,Et,void 0,0,0),li=Dd(void 0,void 0,void 0,s,wt,void 0,0,0),_i=Dd(void 0,void 0,void 0,s,dn,void 0,0,0),ui=Rh(Wt,Vt,!0),di=Rh(Vt,wt,!1),fi=new Map,mi={get yieldType(){return _n.fail("Not supported")},get returnType(){return _n.fail("Not supported")},get nextType(){return _n.fail("Not supported")}},gi=hB(wt,wt,wt),hi={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return Dr||(Dr=Gy("AsyncIterator",3,e))||On},getGlobalIterableType:mv,getGlobalIterableIteratorType:vv,getGlobalIteratorObjectType:function(e){return Ar||(Ar=Gy("AsyncIteratorObject",3,e))||On},getGlobalGeneratorType:function(e){return Ir||(Ir=Gy("AsyncGenerator",3,e))||On},getGlobalBuiltinIteratorTypes:function(){return Pr??(Pr=Qy(["ReadableStreamAsyncIterator"],1))},resolveIterationType:(e,t)=>pM(e,t,_a.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:_a.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:_a.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:_a.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},yi={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return xr||(xr=Gy("Iterator",3,e))||On},getGlobalIterableType:bv,getGlobalIterableIteratorType:xv,getGlobalIteratorObjectType:function(e){return Sr||(Sr=Gy("IteratorObject",3,e))||On},getGlobalGeneratorType:function(e){return Tr||(Tr=Gy("Generator",3,e))||On},getGlobalBuiltinIteratorTypes:function(){return Er??(Er=Qy(["ArrayIterator","MapIterator","SetIterator","StringIterator"],1))},resolveIterationType:(e,t)=>e,mustHaveANextMethodDiagnostic:_a.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:_a.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:_a.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},vi=new Map,bi=new Map,xi=new Map,ki=0,Si=0,Ti=0,Ci=!1,wi=0,Di=[],Fi=[],Ei=[],Pi=0,Ai=[],Ii=[],Oi=[],Li=0,ji=kk(""),Ri=wk(0),Mi=Nk({negative:!1,base10Value:"0"}),Bi=[],Ji=[],zi=[],qi=0,Ui=!1,Vi=0,Wi=10,$i=[],Hi=[],Ki=[],Gi=[],Xi=[],Qi=[],Yi=[],Zi=[],eo=[],to=[],no=[],ro=[],io=[],oo=[],ao=[],so=[],co=[],lo=[],_o=[],uo=0,po=_y(),fo=_y(),mo=jb(Ie(BB.keys(),kk)),go=new Map,ho=new Map,yo=new Map,vo=new Map,xo=new Map,Co=new Map,wo=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===j.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]],No=new Map;return function(){for(const t of e.getSourceFiles())qM(t,j);let t;Vn=new Map;for(const n of e.getSourceFiles())if(!n.redirectInfo){if(!Yp(n)){const e=n.locals.get("globalThis");if(null==e?void 0:e.declarations)for(const t of e.declarations)po.add(Rp(t,_a.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));na(Ne,n.locals)}if(n.jsGlobalAugmentations&&na(Ne,n.jsGlobalAugmentations),n.patternAmbientModules&&n.patternAmbientModules.length&&(Hn=$(Hn,n.patternAmbientModules)),n.moduleAugmentations.length&&(t||(t=[])).push(n.moduleAugmentations),n.symbol&&n.symbol.globalExports){n.symbol.globalExports.forEach(((e,t)=>{Ne.has(t)||Ne.set(t,e)}))}}if(t)for(const e of t)for(const t of e)dp(t.parent)&&ia(t);(function(){const e=De.escapedName,t=Ne.get(e);t?_(t.declarations,(t=>{WT(t)||po.add(Rp(t,_a.Declaration_name_conflicts_with_built_in_global_identifier_0,mc(e)))})):Ne.set(e,De)})(),aa(De).type=Rt,aa(Le).type=Gy("IArguments",0,!0),aa(xt).type=Et,aa(Fe).type=Ls(16,Fe),Zn=Gy("Array",1,!0),Gn=Gy("Object",0,!0),Xn=Gy("Function",0,!0),Qn=Y&&Gy("CallableFunction",0,!0)||Xn,Yn=Y&&Gy("NewableFunction",0,!0)||Xn,rr=Gy("String",0,!0),ir=Gy("Number",0,!0),or=Gy("Boolean",0,!0),ar=Gy("RegExp",0,!0),cr=Uv(wt),(lr=Uv(Nt))===Nn&&(lr=zs(void 0,O,s,s,s));if(nr=Tv("ReadonlyArray",1)||Zn,_r=nr?Bv(nr,[wt]):cr,sr=Tv("ThisType",1),t)for(const e of t)for(const t of e)dp(t.parent)||ia(t);Vn.forEach((({firstFile:e,secondFile:t,conflictingSymbols:n})=>{if(n.size<8)n.forEach((({isBlockScoped:e,firstFileLocations:t,secondFileLocations:n},r)=>{const i=e?_a.Cannot_redeclare_block_scoped_variable_0:_a.Duplicate_identifier_0;for(const e of t)ta(e,i,r,n);for(const e of n)ta(e,i,r,t)}));else{const r=Ie(n.keys()).join(", ");po.add(sT(Rp(e,_a.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Rp(t,_a.Conflicts_are_in_this_file))),po.add(sT(Rp(t,_a.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,r),Rp(e,_a.Conflicts_are_in_this_file)))}})),Vn=void 0}(),He;function Do(e){return!!XD(e)&&(!!VN(e.name)&&(!(!XD(e.expression)&&!VN(e.expression))&&(VN(e.expression)?"Symbol"===gc(e.expression)&&ON(e.expression)===(Ky("Symbol",1160127,void 0)||xt):!!VN(e.expression.expression)&&("Symbol"===gc(e.expression.name)&&"globalThis"===gc(e.expression.expression)&&ON(e.expression.expression)===Fe))))}function Eo(e){return e?gt.get(e):void 0}function Po(e,t){return e&&gt.set(e,t),t}function Io(e){if(e){const t=yd(e);if(t)if(EE(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=qI(e.arguments.factory,M),nJ(t.localJsxFragmentFactory,Oo,e_),t.localJsxFragmentFactory)return t.localJsxFragmentNamespace=cb(t.localJsxFragmentFactory).escapedText}const r=iq(e);if(r)return t.localJsxFragmentFactory=r,t.localJsxFragmentNamespace=cb(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=qI(n.arguments.factory,M),nJ(e.localJsxFactory,Oo,e_),e.localJsxFactory)return e.localJsxNamespace=cb(e.localJsxFactory).escapedText}}(t);if(e)return t.localJsxNamespace=e}}return ii||(ii="React",j.jsxFactory?(nJ(oi=qI(j.jsxFactory,M),Oo),oi&&(ii=cb(oi).escapedText)):j.reactNamespace&&(ii=fc(j.reactNamespace))),oi||(oi=ZC.createQualifiedName(ZC.createIdentifier(mc(ii)),"createElement")),ii}function Oo(e){return wT(e,-1,-1),dJ(e,Oo,void 0)}function Lo(e,t,n,...r){const i=Ro(t,n,...r);return i.skippedOn=e,i}function jo(e,t,...n){return e?Rp(e,t,...n):Yx(t,...n)}function Ro(e,t,...n){const r=jo(e,t,...n);return po.add(r),r}function Mo(e,t){e?po.add(t):fo.add({...t,category:2})}function Bo(e,t,n,...r){if(t.pos<0||t.end<0){if(!e)return;const i=yd(t);Mo(e,"message"in n?Xx(i,0,0,n,...r):Vp(i,n))}else Mo(e,"message"in n?Rp(t,n,...r):Jp(yd(t),t,n))}function zo(e,t,n,...r){const i=Ro(e,n,...r);if(t){sT(i,Rp(e,_a.Did_you_forget_to_use_await))}return i}function qo(e,t){const n=Array.isArray(e)?_(e,Kc):Kc(e);return n&&sT(t,Rp(n,_a.The_declaration_was_marked_as_deprecated_here)),fo.add(t),t}function Uo(e){const t=vs(e);return t&&l(e.declarations)>1?64&t.flags?V(e.declarations,Vo):h(e.declarations,Vo):!!e.valueDeclaration&&Vo(e.valueDeclaration)||l(e.declarations)&&h(e.declarations,Vo)}function Vo(e){return!!(536870912&Uq(e))}function Wo(e,t,n){return qo(t,Rp(e,_a._0_is_deprecated,n))}function $o(e,t,n){m++;const r=new c(33554432|e,t);return r.links=new VB,r.links.checkFlags=n||0,r}function Ho(e,t){const n=$o(1,e);return n.links.type=t,n}function Ko(e,t){const n=$o(4,e);return n.links.type=t,n}function Go(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 Xo(e,t){t.mergeId||(t.mergeId=jB,jB++),$i[t.mergeId]=e}function Qo(e){const t=$o(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)),Xo(t,e),t}function Yo(e,t,n=!1){if(!(e.flags&Go(t.flags))||67108864&(t.flags|e.flags)){if(t===e)return e;if(!(33554432&e.flags)){const n=Ja(e);if(n===xt)return t;if(n.flags&Go(t.flags)&&!(67108864&(t.flags|n.flags)))return r(e,t),t;e=Qo(n)}512&t.flags&&512&e.flags&&e.constEnumOnlyModule&&!t.constEnumOnlyModule&&(e.constEnumOnlyModule=!1),e.flags|=t.flags,t.valueDeclaration&&mg(e,t.valueDeclaration),ae(e.declarations,t.declarations),t.members&&(e.members||(e.members=Ku()),na(e.members,t.members,n)),t.exports&&(e.exports||(e.exports=Ku()),na(e.exports,t.exports,n,e)),n||Xo(e,t)}else 1024&e.flags?e!==Fe&&Ro(t.declarations&&Cc(t.declarations[0]),_a.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,sc(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?_a.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:r?_a.Cannot_redeclare_block_scoped_variable_0:_a.Duplicate_identifier_0,a=t.declarations&&yd(t.declarations[0]),s=e.declarations&&yd(e.declarations[0]),c=bd(a,j.checkJs),l=bd(s,j.checkJs),_=sc(t);if(a&&s&&Vn&&!n&&a!==s){const n=-1===Zo(a.path,s.path)?a:s,o=n===a?s:a,u=B(Vn,`${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||ea(t,o,_,e),l||ea(e,o,_,t)}function i(e,t){if(t.declarations)for(const n of t.declarations)se(e,n)}}function ea(e,t,n,r){_(e.declarations,(e=>{ta(e,t,n,r.declarations)}))}function ta(e,t,n,r){const i=(Hm(e,!1)?Gm(e):Cc(e))||e,o=function(e,t,...n){const r=e?Rp(e,t,...n):Yx(t,...n);return po.lookup(r)||(po.add(r),r)}(i,t,n);for(const e of r||s){const t=(Hm(e,!1)?Gm(e):Cc(e))||e;if(t===i)continue;o.relatedInformation=o.relatedInformation||[];const r=Rp(t,_a._0_was_also_declared_here,n),a=Rp(t,_a.and_here);l(o.relatedInformation)>=5||V(o.relatedInformation,(e=>0===rk(e,a)||0===rk(e,r)))||sT(o,l(o.relatedInformation)?a:r)}}function na(e,t,n=!1,r){t.forEach(((t,i)=>{const o=e.get(i),a=o?Yo(o,t,n):fs(t);r&&o&&(a.parent=r),e.set(i,a)}))}function ia(e){var t,n,r;const i=e.parent;if((null==(t=i.symbol.declarations)?void 0:t[0])===i)if(dp(i))na(Ne,i.symbol.exports);else{let t=es(e,e,33554432&e.parent.parent.flags?void 0:_a.Invalid_module_name_in_augmentation_module_0_cannot_be_found,!1,!0);if(!t)return;if(t=rs(t),1920&t.flags)if(V(Hn,(e=>t===e.symbol))){const n=Yo(i.symbol,t,!0);Kn||(Kn=new Map),Kn.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=gd(t,"resolvedExports");for(const[n,r]of Ie(i.symbol.exports.entries()))e.has(n)&&!t.exports.has(n)&&Yo(e.get(n),r)}Yo(t,i.symbol)}else Ro(e,_a.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,e.text)}else _n.assert(i.symbol.declarations.length>1)}function aa(e){if(33554432&e.flags)return e.links;const t=HB(e);return Hi[t]??(Hi[t]=new VB)}function sa(e){const t=$B(e);return Ki[t]||(Ki[t]=new WB)}function ca(e,t,n){if(n){const r=fs(e.get(t));if(r){if(r.flags&n)return r;if(2097152&r.flags){if(Ua(r)&n)return r}}}}function la(t,n){const r=yd(t),i=yd(n),o=Fp(t);if(r!==i){if(z&&(r.externalModuleIndicator||i.externalModuleIndicator)||!j.outFile||_v(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||_v(n)||LN(n))return!0;if(t.pos<=n.pos&&(!uD(t)||!sm(n.parent)||t.initializer||t.exclamationToken)){if(208===t.kind){const e=Th(n,208);return e?uc(e,HD)!==uc(t,HD)||t.pos<e.pos:la(Th(t,260),n)}if(260===t.kind)return!function(e,t){switch(e.parent.parent.kind){case 243:case 248:case 250:if(va(t,e,o))return!0}const n=e.parent.parent;return Q_(n)&&va(t,n.expression,o)}(t,n);if(u_(t)){const e=uc(n,(e=>e===t?"quit":aD(e)?e.parent.parent===t:!q&&lD(e)&&(e.parent===t||pD(e.parent)&&e.parent.parent===t||pl(e.parent)&&e.parent.parent===t||uD(e.parent)&&e.parent.parent===t||cD(e.parent)&&e.parent.parent.parent===t)));return!e||!(q||!lD(e))&&!!uc(n,(t=>t===e?"quit":r_(t)&&!om(t)))}return uD(t)?!s(t,n,!1):!Zs(t,t.parent)||!(W&&Xf(t)===Xf(n)&&a(n,t))}return!!(281===n.parent.kind||277===n.parent.kind&&n.parent.isExportEquals)||(!(277!==n.kind||!n.isExportEquals)||!!a(n,t)&&(!W||!Xf(t)||!uD(t)&&!Zs(t,t.parent)||!s(t,n,!0)));function a(e,t){return!!uc(e,(n=>{if(n===o)return"quit";if(r_(n))return!0;if(fD(n))return t.pos<e.pos;const r=et(n.parent,uD);if(r){if(r.initializer===n)if(Fv(n.parent)){if(174===t.kind)return!0;if(uD(t)&&Xf(e)===Xf(t)){const e=t.name;if(VN(e)||WN(e)){if(function(e,t,n,r,i){for(const o of n)if(o.pos>=r&&o.pos<=i){const n=ZC.createPropertyAccessExpression(ZC.createThis(),e);FT(n.expression,n),FT(n,o),n.flowNode=o.returnFlowNode;if(!iT($E(n,t,Sw(t))))return!0}return!1}(e,F_(hs(t)),C(t.parent.members,fD),t.parent.pos,n.pos))return!0}}}else{if(!(172===t.kind&&!Fv(t))||Xf(e)!==Xf(t))return!0}}return!1}))}function s(e,t,n){if(t.end>e.end)return!1;return void 0===uc(t,(t=>{if(t===e)return"quit";switch(t.kind){case 219:return!0;case 172:return!n||!(uD(e)&&t.parent===e.parent||Zs(e,e.parent)&&t.parent===e.parent.parent)||"quit";case 241:switch(t.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}}))}}function ua(e){return sa(e).declarationRequiresScopeChange}function da(e,t){sa(e).declarationRequiresScopeChange=t}function pa(e,t,n){return t?sT(e,Rp(t,281===t.kind||278===t.kind||280===t.kind?_a._0_was_exported_here:_a._0_was_imported_here,n)):e}function fa(e){return Ye(e)?mc(e):Pp(e)}function ma(e,t,n){if(!VN(e)||e.escapedText!==t||_z(e)||_v(e))return!1;const r=em(e,!1,!1);let i=r;for(;i;){if(u_(i.parent)){const o=hs(i.parent);if(!o)break;if(fm(F_(o),t))return Ro(e,_a.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,fa(n),sc(o)),!0;if(i===r&&!Fv(i)){if(fm(Tu(o).thisType,t))return Ro(e,_a.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,fa(n)),!0}}i=i.parent}return!1}function ga(e){const t=ha(e);return!(!t||!Xa(t,64,!0))&&(Ro(e,_a.Cannot_extend_an_interface_0_Did_you_mean_implements,Gd(t)),!0)}function ha(e){switch(e.kind){case 80:case 211:return e.parent?ha(e.parent):void 0;case 233:if(sb(e.expression))return e.expression;default:return}}function ya(e){return"any"===e||"string"===e||"number"===e||"boolean"===e||"never"===e||"unknown"===e}function va(e,t,n){return!!t&&!!uc(e,(e=>e===t||!!(e===n||r_(e)&&(!om(e)||3&Oh(e)))&&"quit"))}function ba(e){switch(e.kind){case 271:return e;case 273:return e.parent;case 274:return e.parent.parent;case 276:return e.parent.parent.parent;default:return}}function xa(e){return e.declarations&&v(e.declarations,ka)}function ka(e){return 271===e.kind||270===e.kind||273===e.kind&&!!e.name||274===e.kind||280===e.kind||276===e.kind||281===e.kind||277===e.kind&&mh(e)||uF(e)&&2===tg(e)&&mh(e)||Tx(e)&&uF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind&&Sa(e.parent.right)||304===e.kind||303===e.kind&&Sa(e.initializer)||260===e.kind&&Rm(e)||208===e.kind&&Rm(e.parent.parent)}function Sa(e){return fh(e)||rF(e)&&CL(e)}function Ta(e,t){const n=La(e);if(n){const e=Nx(n.expression).arguments[0];return VN(n.name)?Ja(fm(Mg(e),n.name.escapedText)):void 0}if(HF(e)||283===e.moduleReference.kind){const t=Za(e,wm(e)||Cm(e)),n=rs(t);return Wa(e,t,n,!1),n}const r=Ka(e.moduleReference,t);return function(e,t){if(Wa(e,void 0,t,!1)&&!e.isTypeOnly){const t=Ha(hs(e)),n=281===t.kind||278===t.kind,r=n?_a.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:_a.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,i=n?_a._0_was_exported_here:_a._0_was_imported_here,o=278===t.kind?"*":Wd(t.name);sT(Ro(e.moduleReference,r),Rp(t,i,o))}}(e,r),r}function Ca(e,t,n,r){const i=e.exports.get("export="),o=i?fm(F_(i),t,!0):e.exports.get(t),a=Ja(o,r);return Wa(n,o,a,!1),a}function wa(e){return gE(e)&&!e.isExportEquals||Dv(e,2048)||vE(e)||pE(e)}function Na(t){return ju(t)?e.getEmitSyntaxForUsageLocation(yd(t),t):void 0}function Da(e,t){if(100<=z&&z<=199){if(99===Na(e)){t??(t=Za(e,e,!0));const n=t&&vd(t);return n&&(Zp(n)||".d.json.ts"===ZI(n.fileName))}}return!1}function Ea(t,n,r,i){const o=t&&Na(i);if(t&&void 0!==o){const n=e.getImpliedNodeFormatForEmit(t);if(99===o&&1===n&&100<=z&&z<=199)return!0;if(99===o&&99===n)return!1}if(!H)return!1;if(!t||t.isDeclarationFile){const e=Ca(n,"default",void 0,!0);return(!e||!V(e.declarations,wa))&&!Ca(n,fc("__esModule"),void 0,r)}return Fm(t)?"object"!=typeof t.externalModuleIndicator&&!Ca(n,fc("__esModule"),void 0,r):as(n)}function Pa(e,t,n){var r;let i;i=_p(e)?e:Ca(e,"default",t,n);const o=null==(r=e.declarations)?void 0:r.find(WE),a=Aa(t);if(!a)return i;const s=Da(a,e),c=Ea(o,e,n,a);if(i||c||s){if(c||s){const r=rs(e,n)||Ja(e,n);return Wa(t,e,r,!1),r}}else if(as(e)&&!H){const n=z>=5?"allowSyntheticDefaultImports":"esModuleInterop",r=e.exports.get("export=").valueDeclaration,i=Ro(t.name,_a.Module_0_can_only_be_default_imported_using_the_1_flag,sc(e),n);r&&sT(i,Rp(r,_a.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,n))}else aE(t)?function(e,t){var n,r,i;if(null==(n=e.exports)?void 0:n.has(t.symbol.escapedName))Ro(t.name,_a.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,sc(e),sc(t.symbol));else{const n=Ro(t.name,_a.Module_0_has_no_default_export,sc(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!!(hE(e)&&e.moduleSpecifier&&(null==(n=null==(t=Za(e,e.moduleSpecifier))?void 0:t.exports)?void 0:n.has("default")))}));e&&sT(n,Rp(e,_a.export_Asterisk_does_not_re_export_a_default))}}}(e,t):Oa(e,e,t,Ml(t)&&t.propertyName||t.name);return Wa(t,i,void 0,!1),i}function Aa(e){switch(e.kind){case 273:return e.parent.moduleSpecifier;case 271:return TE(e.moduleReference)?e.moduleReference.expression:void 0;case 274:case 281:return e.parent.parent.moduleSpecifier;case 276:return e.parent.parent.parent.moduleSpecifier;default:return _n.assertNever(e)}}function Ia(e,t,n=!1){var r;const i=wm(e)||e.moduleSpecifier,o=Za(e,i),a=!XD(t)&&t.propertyName||t.name;if(!VN(a)&&11!==a.kind)return;const s=$d(a),c=is(o,i,!1,"default"===s&&H);if(c&&(s||11===a.kind)){if(_p(o))return o;let l;l=o&&o.exports&&o.exports.get("export=")?fm(F_(c),s,!0):function(e,t){if(3&e.flags){const n=e.valueDeclaration.type;if(n)return Ja(fm(Bk(n),t))}}(c,s),l=Ja(l,n);let _=function(e,t,n,r){var i;if(1536&e.flags){const o=_s(e).get(t),a=Ja(o,r);return Wa(n,o,a,!1,null==(i=aa(e).typeOnlyExportStarMap)?void 0:i.get(t),t),a}}(c,s,t,n);if(void 0===_&&"default"===s){const e=null==(r=o.declarations)?void 0:r.find(WE);(Da(i,o)||Ea(e,o,n,i))&&(_=rs(o,n)||Ja(o,n))}const u=_&&l&&_!==l?function(e,t){if(e===xt&&t===xt)return xt;if(790504&e.flags)return e;const n=$o(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 Ml(t)&&Da(i,o)&&"default"!==s?Ro(a,_a.Named_imports_from_a_JSON_file_into_an_ECMAScript_module_are_not_allowed_when_module_is_set_to_0,pi[z]):u||Oa(o,c,e,a),u}}function Oa(e,t,n,r){var i;const o=Ga(e,n),a=Pp(r),s=VN(r)?kO(r,t):void 0;if(void 0!==s){const e=sc(s),t=Ro(r,_a._0_has_no_exported_member_named_1_Did_you_mean_2,o,a,e);s.valueDeclaration&&sT(t,Rp(s.valueDeclaration,_a._0_is_declared_here,e))}else(null==(i=e.exports)?void 0:i.has("default"))?Ro(r,_a.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,su))?void 0:o.locals)?void 0:a.get($d(t)),c=r.exports;if(s){const r=null==c?void 0:c.get("export=");if(r)Ts(r,s)?function(e,t,n,r){if(z>=5){Ro(t,Tk(j)?_a._0_can_only_be_imported_by_using_a_default_import:_a._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n)}else if(Em(e)){Ro(t,Tk(j)?_a._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:_a._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,n)}else{Ro(t,Tk(j)?_a._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:_a._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):Ro(t,_a.Module_0_has_no_exported_member_1,i,n);else{const e=c?y(fg(c),(e=>!!Ts(e,s))):void 0,r=e?Ro(t,_a.Module_0_declares_1_locally_but_it_is_exported_as_2,i,n,sc(e)):Ro(t,_a.Module_0_declares_1_locally_but_it_is_not_exported,i,n);s.declarations&&sT(r,...D(s.declarations,((e,t)=>Rp(e,0===t?_a._0_is_declared_here:_a.and_here,n))))}}else Ro(t,_a.Module_0_has_no_exported_member_1,i,n)}(n,r,a,e,o)}function La(e){if(HF(e)&&e.initializer&&XD(e.initializer))return e.initializer}function ja(e,t,n){const r=e.propertyName||e.name;if(Hd(r)){const t=Aa(e),r=t&&Za(e,t);if(r)return Pa(r,e,!!n)}const i=e.parent.parent.moduleSpecifier?Ia(e.parent.parent,e,n):11===r.kind?void 0:Xa(r,t,!1,n);return Wa(e,void 0,i,!1),i}function Ra(e,t){if(gF(e))return uR(e).symbol;if(!e_(e)&&!sb(e))return;const n=Xa(e,901119,!0,t);return n||(uR(e),sa(e).resolvedSymbol)}function Ma(e,t=!1){switch(e.kind){case 271:case 260:return Ta(e,t);case 273:return function(e,t){const n=Za(e,e.parent.moduleSpecifier);if(n)return Pa(n,e,t)}(e,t);case 274:return function(e,t){const n=e.parent.parent.moduleSpecifier,r=Za(e,n),i=is(r,n,t,!1);return Wa(e,r,i,!1),i}(e,t);case 280:return function(e,t){const n=e.parent.moduleSpecifier,r=n&&Za(e,n),i=n&&is(r,n,t,!1);return Wa(e,r,i,!1),i}(e,t);case 276:case 208:return function(e,t){if(mE(e)&&Hd(e.propertyName||e.name)){const n=Aa(e),r=n&&Za(e,n);if(r)return Pa(r,e,t)}const n=HD(e)?Yh(e):e.parent.parent.parent,r=La(n),i=Ia(n,r||e,t),o=e.propertyName||e.name;return r&&i&&VN(o)?Ja(fm(F_(i),o.escapedText),t):(Wa(e,void 0,i,!1),i)}(e,t);case 281:return ja(e,901119,t);case 277:case 226:return function(e,t){const n=Ra(gE(e)?e.expression:e.right,t);return Wa(e,void 0,n,!1),n}(e,t);case 270:return function(e,t){if(au(e.parent)){const n=rs(e.parent.symbol,t);return Wa(e,void 0,n,!1),n}}(e,t);case 304:return Xa(e.name,901119,!0,t);case 303:return Ra(e.initializer,t);case 212:case 211:return function(e,t){if(uF(e.parent)&&e.parent.left===e&&64===e.parent.operatorToken.kind)return Ra(e.parent.right,t)}(e,t);default:return _n.fail()}}function Ba(e,t=901119){return!!e&&(2097152==(e.flags&(2097152|t))||!!(2097152&e.flags&&67108864&e.flags))}function Ja(e,t){return!t&&Ba(e)?qa(e):e}function qa(e){_n.assert(!!(2097152&e.flags),"Should only get Alias here.");const t=aa(e);if(t.aliasTarget)t.aliasTarget===kt&&(t.aliasTarget=xt);else{t.aliasTarget=kt;const n=xa(e);if(!n)return _n.fail();const r=Ma(n);t.aliasTarget===kt?t.aliasTarget=r||xt:Ro(n,_a.Circular_definition_of_import_alias_0,sc(e))}return t.aliasTarget}function Ua(e,t,n){const r=t&&Ha(e),i=r&&hE(r),o=r&&(i?Za(r.moduleSpecifier,r.moduleSpecifier,!0):qa(r.symbol)),a=i&&o?us(o):void 0;let s,c=n?0:e.flags;for(;2097152&e.flags;){const t=ws(qa(e));if(!i&&t===o||(null==a?void 0:a.get(t.escapedName))===t)break;if(t===xt)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 Wa(e,t,n,r,i,o){if(!e||XD(e))return!1;const a=hs(e);if(zl(e)){return aa(a).typeOnlyDeclaration=e,!0}if(i){const e=aa(a);return e.typeOnlyDeclaration=i,a.escapedName!==o&&(e.typeOnlyExportStarName=o),!0}const s=aa(a);return $a(s,t,r)||$a(s,n,r)}function $a(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,zl);e.typeOnlyDeclaration=i??aa(n).typeOnlyDeclaration??!1}return!!e.typeOnlyDeclaration}function Ha(e,t){var n;if(!(2097152&e.flags))return;const r=aa(e);if(void 0===r.typeOnlyDeclaration){r.typeOnlyDeclaration=!1;const t=Ja(e);Wa(null==(n=e.declarations)?void 0:n[0],xa(e)&&aI(e),t,!0)}if(void 0===t)return r.typeOnlyDeclaration||void 0;if(r.typeOnlyDeclaration){return Ua(278===r.typeOnlyDeclaration.kind?Ja(us(r.typeOnlyDeclaration.symbol.parent).get(r.typeOnlyExportStarName||e.escapedName)):qa(r.typeOnlyDeclaration.symbol))&t?r.typeOnlyDeclaration:void 0}}function Ka(e,t){return 80===e.kind&&pb(e)&&(e=e.parent),80===e.kind||166===e.parent.kind?Xa(e,1920,!1,t):(_n.assert(271===e.parent.kind),Xa(e,901119,!1,t))}function Ga(e,t){return e.parent?Ga(e.parent,t)+"."+sc(e):sc(e,t,void 0,36)}function Xa(e,t,n,r,i){if(wd(e))return;const o=1920|(Em(e)?111551&t:0);let a;if(80===e.kind){const r=t===o||ey(e)?_a.Cannot_find_namespace_0:IN(cb(e)),s=Em(e)&&!ey(e)?function(e,t){if(My(e.parent)){const n=function(e){if(uc(e,(e=>Su(e)||16777216&e.flags?Dg(e):"quit")))return;const t=Vg(e);if(t&&PF(t)&&pg(t.expression)){const e=hs(t.expression.left);if(e)return Ya(e)}if(t&&rF(t)&&pg(t.parent)&&PF(t.parent.parent)){const e=hs(t.parent.left);if(e)return Ya(e)}if(t&&(Bf(t)||zE(t))&&uF(t.parent.parent)&&6===tg(t.parent.parent)){const e=hs(t.parent.parent.left);if(e)return Ya(e)}const n=Ug(e);if(n&&r_(n)){const e=hs(n);return e&&e.valueDeclaration}}(e.parent);if(n)return Ue(n,e,t,void 0,!0)}}(e,t):void 0;if(a=fs(Ue(i||e,e,t,n||s?void 0:r,!0,!1)),!a)return fs(s)}else if(166===e.kind||211===e.kind){const r=166===e.kind?e.left:e.expression,s=166===e.kind?e.right:e.name;let c=Xa(r,o,n,!1,i);if(!c||wd(s))return;if(c===xt)return c;if(c.valueDeclaration&&Em(c.valueDeclaration)&&100!==xk(j)&&HF(c.valueDeclaration)&&c.valueDeclaration.initializer&&LL(c.valueDeclaration.initializer)){const e=c.valueDeclaration.initializer.arguments[0],t=Za(e,e);if(t){const e=rs(t);e&&(c=e)}}if(a=fs(ca(_s(c),s.escapedText,t)),!a&&2097152&c.flags&&(a=fs(ca(_s(qa(c)),s.escapedText,t))),!a){if(!n){const n=Ga(c),r=Pp(s),i=kO(s,c);if(i)return void Ro(s,_a._0_has_no_exported_member_named_1_Did_you_mean_2,n,r,sc(i));const o=oD(e)&&function(e){for(;oD(e.parent);)e=e.parent;return e}(e),a=Gn&&788968&t&&o&&!aF(o.parent)&&function(e){let t=cb(e),n=Ue(t,t,111551,void 0,!0);if(n){for(;oD(t.parent);){if(n=fm(F_(n),t.parent.right.escapedText),!n)return;t=t.parent}return n}}(o);if(a)return void Ro(o,_a._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,jp(o));if(1920&t&&oD(e.parent)){const t=fs(ca(_s(c),s.escapedText,788968));if(t)return void Ro(e.parent.right,_a.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,sc(t),mc(e.parent.right.escapedText))}Ro(s,_a.Namespace_0_has_no_exported_member_1,n,r)}return}}else _n.assertNever(e,"Unknown entity name kind.");return!ey(e)&&e_(e)&&(2097152&a.flags||277===e.parent.kind)&&Wa(ph(e),a,void 0,!0),a.flags&t||r?a:qa(a)}function Ya(e){const t=e.parent.valueDeclaration;if(!t)return;return(Um(t)?$m(t):Pu(t)?Wm(t):void 0)||t}function Za(e,t,n){const r=1===xk(j)?_a.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:_a.Cannot_find_module_0_or_its_corresponding_type_declarations;return es(e,t,n?void 0:r,n)}function es(e,t,n,r=!1,i=!1){return ju(t)?ts(e,t.text,n,r?void 0:t,i):void 0}function ts(t,n,r,i,o=!1){var a,s,c,l,_,u,d,p,f,m,g;if(i&&Kt(n,"@types/")){Ro(i,_a.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,Gt(n,"@types/"),n)}const h=gg(n,!0);if(h)return h;const y=yd(t),v=ju(t)?t:(null==(a=eE(t)?t:t.parent&&eE(t.parent)&&t.parent.name===t?t.parent:void 0)?void 0:a.name)||(null==(s=uf(t)?t:void 0)?void 0:s.argument.literal)||(HF(t)&&t.initializer&&Lm(t.initializer,!0)?t.initializer.arguments[0]:void 0)||(null==(c=uc(t,lf))?void 0:c.arguments[0])||(null==(l=uc(t,Zt(oE,OP,hE)))?void 0:l.moduleSpecifier)||(null==(_=uc(t,Tm))?void 0:_.moduleReference.expression),b=v&&ju(v)?e.getModeForUsageLocation(y,v):e.getDefaultResolutionModeForFile(y),x=xk(j),k=null==(u=e.getResolvedModule(y,n,b))?void 0:u.resolvedModule,S=i&&k&&JV(j,k,y),T=k&&(!S||S===_a.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(k.resolvedFileName);if(T){if(S&&Ro(i,S,n,k.resolvedFileName),k.resolvedUsingTsExtension&&YI(n)){const e=(null==(d=uc(t,oE))?void 0:d.importClause)||uc(t,Zt(iE,hE));(i&&e&&!e.isTypeOnly||uc(t,lf))&&Ro(i,_a.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,function(e){const t=$S(n,e);if(Lk(z)||99===b){const r=YI(n)&&EM(j);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(xb(n))))}else if(k.resolvedUsingTsExtension&&!EM(j,y.fileName)){const e=(null==(p=uc(t,oE))?void 0:p.importClause)||uc(t,Zt(iE,hE));if(i&&!(null==e?void 0:e.isTypeOnly)&&!uc(t,qD)){const e=_n.checkDefined(xb(n));Ro(i,_a.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,e)}}else if(j.rewriteRelativeImportExtensions&&!(33554432&t.flags)&&!YI(n)&&!uf(t)&&!ql(t)){const t=xg(n,j);if(!k.resolvedUsingTsExtension&&t)Ro(i,_a.This_relative_import_path_is_unsafe_to_rewrite_because_it_looks_like_a_file_name_but_actually_resolves_to_0,oa(Jo(y.fileName,e.getCurrentDirectory()),k.resolvedFileName,Ry(e)));else if(k.resolvedUsingTsExtension&&!t&&Xy(T,e))Ro(i,_a.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(k.resolvedUsingTsExtension&&t){const t=e.getResolvedProjectReferenceToRedirect(T.path);if(t){const n=!e.useCaseSensitiveFileNames(),r=e.getCommonSourceDirectory(),o=eU(t.commandLine,n);ra(r,o,n)!==ra(j.outDir||r,t.commandLine.options.outDir||o,n)&&Ro(i,_a.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(T.symbol){if(i&&k.isExternalLibraryImport&&!ZS(k.extension)&&ns(!1,i,y,b,k,n),i&&(3===x||99===x)){const e=1===y.impliedNodeFormat&&!uc(t,lf)||!!uc(t,iE),r=uc(t,(e=>qD(e)||hE(e)||oE(e)||OP(e)));if(e&&99===T.impliedNodeFormat&&!uC(r))if(uc(t,iE))Ro(i,_a.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=nT(y.fileName);".ts"!==t&&".js"!==t&&".tsx"!==t&&".jsx"!==t||(e=dd(y));const o=272===(null==r?void 0:r.kind)&&(null==(f=r.importClause)?void 0:f.isTypeOnly)?_a.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:205===(null==r?void 0:r.kind)?_a.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute:_a.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;po.add(Jp(yd(i),i,ek(e,o,n)))}}return fs(T.symbol)}i&&r&&!TC(i)&&Ro(i,_a.File_0_is_not_a_module,T.fileName)}else{if(Hn){const e=Ht(Hn,(e=>e.pattern),n);if(e){const t=Kn&&Kn.get(n);return fs(t?t:e.symbol)}}if(i){if((!k||ZS(k.extension)||void 0!==S)&&S!==_a.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(r){if(k){const t=e.getProjectReferenceRedirect(k.resolvedFileName);if(t)return void Ro(i,_a.Output_file_0_has_not_been_built_from_source_file_1,t,k.resolvedFileName)}if(S)Ro(i,S,n,k.resolvedFileName);else{const t=bo(n)&&!ko(n),o=3===x||99===x;if(!Dk(j)&&So(n,".json")&&1!==x&&jk(j))Ro(i,_a.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,n);else if(99===b&&o&&t){const t=Jo(n,Fo(y.path)),r=null==(m=wo.find((([n,r])=>e.fileExists(t+n))))?void 0:m[1];r?Ro(i,_a.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,n+r):Ro(i,_a.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==(g=e.getResolvedModule(y,n,b))?void 0:g.alternateResult){Bo(!0,i,ek(ud(y,e,n,b,n),r,n))}else Ro(i,r,n)}}return}if(o){Ro(i,_a.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,n,k.resolvedFileName)}else ns(ie&&!!r,i,y,b,k,n)}}}function ns(t,n,r,i,{packageId:o,resolvedFileName:a},s){if(TC(n))return;let c;!Cs(s)&&o&&(c=ud(r,e,s,i,o.name)),Bo(t,n,ek(c,_a.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,s,a))}function rs(e,t){if(null==e?void 0:e.exports){const n=function(e,t){if(!e||e===xt||e===t||1===t.exports.size||2097152&e.flags)return e;const n=aa(e);if(n.cjsExportMerged)return n.cjsExportMerged;const r=33554432&e.flags?e:Qo(e);r.flags=512|r.flags,void 0===r.exports&&(r.exports=Ku());t.exports.forEach(((e,t)=>{"export="!==t&&r.exports.set(t,r.exports.has(t)?Yo(r.exports.get(t),e):e)})),r===e&&(aa(r).resolvedExports=void 0,aa(r).resolvedMembers=void 0);return aa(r).cjsExportMerged=r,n.cjsExportMerged=r}(fs(Ja(e.exports.get("export="),t)),fs(e));return fs(n)||e}}function is(t,n,r,i){var o;const a=rs(t,r);if(!r&&a){if(!(i||1539&a.flags||$u(a,307))){const e=z>=5?"allowSyntheticDefaultImports":"esModuleInterop";return Ro(n,_a.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,e),a}const r=n.parent;if(oE(r)&&Sg(r)||lf(r)){const n=lf(r)?r.arguments[0]:r.moduleSpecifier,i=F_(a),l=IL(i,a,t,n);if(l)return os(a,l,r);const _=null==(o=null==t?void 0:t.declarations)?void 0:o.find(WE),u=_&&(s=Na(n),c=e.getImpliedNodeFormatForEmit(_),99===s&&1===c);if(Tk(j)||u){let e=mm(i,0);if(e&&e.length||(e=mm(i,1)),e&&e.length||fm(i,"default",!0)||u){return os(a,3670016&i.flags?OL(i,a,t,n):AL(a,a.parent),r)}}}}var s,c;return a}function os(e,t,n){const r=$o(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=Op(t);return r.links.type=zs(r,i.members,s,s,i.indexInfos),r}function as(e){return void 0!==e.exports.get("export=")}function ss(e){return fg(us(e))}function cs(e,t){const n=us(t);if(n)return n.get(e)}function ls(e){return!(402784252&e.flags||1&hx(e)||RC(e)||lw(e))}function _s(e){return 6256&e.flags?gd(e,"resolvedExports"):1536&e.flags?us(e):e.exports||O}function us(e){const t=aa(e);if(!t.resolvedExports){const{exports:n,typeOnlyExportStarMap:r}=ps(e);t.resolvedExports=n,t.typeOnlyExportStarMap=r}return t.resolvedExports}function ds(e,t,n,r){t&&t.forEach(((t,i)=>{if("default"===i)return;const o=e.get(i);if(o){if(n&&r&&o&&Ja(o)!==Ja(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:Gd(r.moduleSpecifier)})}))}function ps(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=Ku(),n=new Map;if(c.declarations)for(const r of c.declarations){const i=Za(r,r.moduleSpecifier);ds(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)po.add(Rp(r,_a.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,n.get(t).specifierText,mc(t)))})),ds(s,t)}(null==o?void 0:o.isTypeOnly)&&(n??(n=new Map),s.forEach(((e,t)=>n.set(t,o))));return s}(e=rs(e))||O;return n&&r.forEach((e=>n.delete(e))),{exports:i,typeOnlyExportStarMap:n}}function fs(e){let t;return e&&e.mergeId&&(t=$i[e.mergeId])?t:e}function hs(e){return fs(e.symbol&&Sd(e.symbol))}function ys(e){return au(e)?hs(e):void 0}function vs(e){return fs(e.parent&&Sd(e.parent))}function bs(e){var t,n;return(219===(null==(t=e.valueDeclaration)?void 0:t.kind)||218===(null==(n=e.valueDeclaration)?void 0:n.kind))&&ys(e.valueDeclaration.parent)||e}function xs(t,n,r){const i=vs(t);if(i&&!(262144&t.flags))return u(i);const o=R(t.declarations,(e=>{if(!sp(e)&&e.parent){if(ec(e.parent))return hs(e.parent);if(tE(e.parent)&&e.parent.parent&&rs(hs(e.parent.parent))===t)return hs(e.parent.parent)}if(gF(e)&&uF(e.parent)&&64===e.parent.operatorToken.kind&&Tx(e.parent.left)&&sb(e.parent.left.expression))return eg(e.parent.left)||Ym(e.parent.left.expression)?hs(yd(e)):(uR(e.parent.left.expression),sa(e.parent.left.expression).resolvedSymbol)}));if(!l(o))return;const a=R(o,(e=>Ss(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=yd(n),i=$B(r),o=aa(t);let a;if(o.extendedContainersByFile&&(a=o.extendedContainersByFile.get(i)))return a;if(r&&r.imports){for(const e of r.imports){if(ey(e))continue;const r=Za(n,e,!0);r&&(Ss(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(!VI(e))continue;const n=hs(e);Ss(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&&HF(n.parent)&&(GD(n)&&n===n.parent.initializer||wD(n)&&n===n.parent.type))return hs(n.parent)}(i,r);if(n&&i.flags&Us(r)&&Vs(i,n,1920,!1))return re($($([i],o),a),c);const _=!(i.flags&Us(r))&&788968&i.flags&&524288&Tu(i).flags&&111551===r?qs(n,(e=>nd(e,(e=>{if(e.flags&Us(r)&&F_(e)===Tu(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&&ks(e,i)}}function ks(e,t){const n=Qs(e),r=n&&n.exports&&n.exports.get("export=");return r&&Ts(r,t)?n:void 0}function Ss(e,t){if(e===vs(t))return t;const n=e.exports&&e.exports.get("export=");if(n&&Ts(n,t))return e;const r=_s(e),i=r.get(t.escapedName);return i&&Ts(i,t)?i:nd(r,(e=>{if(Ts(e,t))return e}))}function Ts(e,t){if(fs(Ja(fs(e)))===fs(Ja(fs(t))))return e}function ws(e){return fs(e&&!!(1048576&e.flags)&&e.exportSymbol||e)}function Ns(e,t){return!!(111551&e.flags||2097152&e.flags&&111551&Ua(e,!t))}function Ds(e){var t;const n=new u(He,e);return f++,n.id=f,null==(t=$n)||t.recordType(n),n}function Es(e,t){const n=Ds(e);return n.symbol=t,n}function Is(e){return new u(He,e)}function Os(e,t,n=0,r){!function(e,t){const n=`${e},${t??""}`;Ct.has(n)&&_n.fail(`Duplicate intrinsic type name ${e}${t?` (${t})`:""}; you may need to pass a name to createIntrinsicType.`);Ct.add(n)}(t,r);const i=Ds(e);return i.intrinsicName=t,i.debugIntrinsicName=r,i.objectFlags=52953088|n,i}function Ls(e,t){const n=Es(524288,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 js(e){return Es(262144,e)}function Rs(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&95!==e.charCodeAt(2)&&64!==e.charCodeAt(2)&&35!==e.charCodeAt(2)}function Ms(e){let t;return e.forEach(((e,n)=>{Bs(e,n)&&(t||(t=[])).push(e)})),t||s}function Bs(e,t){return!Rs(t)&&Ns(e)}function Js(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!==O&&(o.properties=Ms(t)),o}function zs(e,t,n,r,i){return Js(Ls(16,e),t,n,r,i)}function qs(e,t){let n;for(let r=e;r;r=r.parent){if(su(r)&&r.locals&&!Qp(r)&&(n=t(r.locals,void 0,!0,r)))return n;switch(r.kind){case 307:if(!Yp(r))break;case 267:const e=hs(r);if(n=t((null==e?void 0:e.exports)||O,void 0,!0,r))return n;break;case 263:case 231:case 264:let i;if((hs(r).members||O).forEach(((e,t)=>{788968&e.flags&&(i||(i=Ku())).set(t,e)})),i&&(n=t(i,void 0,!1,r)))return n}}return t(Ne,void 0,!0)}function Us(e){return 111551===e?111551:1920}function Vs(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 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}(e))return;const o=aa(e),a=o.accessibleChainCache||(o.accessibleChainCache=new Map),s=qs(t,((e,t,n,r)=>r)),c=`${r?0:1}|${s?$B(s):0}|${n}`;if(a.has(c))return a.get(c);const l=HB(e);let _=i.get(l);_||i.set(l,_=[]);const u=qs(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=nd(n,(n=>{if(2097152&n.flags&&"export="!==n.escapedName&&"default"!==n.escapedName&&!(yx(n)&&t&&VI(yd(t)))&&(!r||V(n.declarations,Tm))&&(!o||!V(n.declarations,Sm))&&(i||!$u(n,281))){const e=m(n,qa(n),i);if(e)return e}if(n.escapedName===e.escapedName&&n.exportSymbol&&f(fs(n.exportSymbol),void 0,i))return[e]}));return a||(n===Ne?m(Fe,Fe,i):void 0)}(n,i,o);return _.pop(),a}function p(e,n){return!Ws(e,t,n)||!!Vs(e.parent,t,Us(n),r,i)}function f(t,r,i){return(e===(r||t)||fs(e)===fs(r||t))&&!V(t.declarations,ec)&&(i||p(fs(t),n))}function m(e,t,r){if(f(e,t,r))return[e];const i=_s(t),o=i&&d(i,!0);return o&&p(e,Us(n))?[e].concat(o):void 0}}function Ws(e,t,n){let r=!1;return qs(t,(t=>{let i=fs(t.get(e.escapedName));if(!i)return!1;if(i===e)return!0;const o=2097152&i.flags&&!$u(i,281);i=o?qa(i):i;return!!((o?Ua(i):i.flags)&n)&&(r=!0,!0)})),r}function $s(e,t){return 0===Xs(e,t,111551,!1,!0).accessibility}function Hs(e,t,n){return 0===Xs(e,t,n,!1,!1).accessibility}function Ks(e,t,n,r,i,o){if(!l(e))return;let a,s=!1;for(const c of e){const e=Vs(c,t,r,!1);if(e){a=c;const t=tc(e[0],i);if(t)return t}if(o&&V(c.declarations,ec)){if(i){s=!0;continue}return{accessibility:0}}const l=Ks(xs(c,t,r),t,n,n===c?Us(r):r,i,o);if(l)return l}return s?{accessibility:0}:a?{accessibility:1,errorSymbolName:sc(n,t,r),errorModuleName:a!==n?sc(a,t,1920):void 0}:void 0}function Gs(e,t,n,r){return Xs(e,t,n,r,!0)}function Xs(e,t,n,r,i){if(e&&t){const o=Ks([e],t,e,n,r,i);if(o)return o;const a=_(e.declarations,Qs);if(a){if(a!==Qs(t))return{accessibility:2,errorSymbolName:sc(e,t,n),errorModuleName:sc(a),errorNode:Em(t)?t:void 0}}return{accessibility:1,errorSymbolName:sc(e,t,n)}}return{accessibility:0}}function Qs(e){const t=uc(e,Ys);return t&&hs(t)}function Ys(e){return sp(e)||307===e.kind&&Yp(e)}function ec(e){return cp(e)||307===e.kind&&Yp(e)}function tc(e,t){let n;if(h(C(e.declarations,(e=>80!==e.kind)),(function(t){var n,i;if(!Rc(t)){const o=ba(t);if(o&&!Dv(o,32)&&Rc(o.parent))return r(t,o);if(HF(t)&&FF(t.parent.parent)&&!Dv(t.parent.parent,32)&&Rc(t.parent.parent.parent))return r(t,t.parent.parent);if(Cp(t)&&!Dv(t,32)&&Rc(t.parent))return r(t,t);if(HD(t)){if(2097152&e.flags&&Em(t)&&(null==(n=t.parent)?void 0:n.parent)&&HF(t.parent.parent)&&(null==(i=t.parent.parent.parent)?void 0:i.parent)&&FF(t.parent.parent.parent.parent)&&!Dv(t.parent.parent.parent.parent,32)&&t.parent.parent.parent.parent.parent&&Rc(t.parent.parent.parent.parent.parent))return r(t,t.parent.parent.parent.parent);if(2&e.flags){const e=uc(t,FF);return!!Dv(e,32)||!!Rc(e.parent)&&r(t,e)}}return!1}return!0})))return{accessibility:0,aliasesToMakeVisible:n};function r(e,r){return t&&(sa(e).isVisible=!0,n=ce(n,r)),!0}}function rc(e){let t;return t=186===e.parent.kind||233===e.parent.kind&&!Cf(e.parent)||167===e.parent.kind||182===e.parent.kind&&e.parent.parameterName===e?1160127:166===e.kind||211===e.kind||271===e.parent.kind||166===e.parent.kind&&e.parent.left===e||211===e.parent.kind&&e.parent.expression===e||212===e.parent.kind&&e.parent.expression===e?1920:788968,t}function oc(e,t,n=!0){const r=rc(e),i=cb(e),o=Ue(t,i.escapedText,r,void 0,!1);return o&&262144&o.flags&&788968&r||!o&&lv(i)&&0===Gs(hs(em(i,!1,!1)),i,r,!1).accessibility?{accessibility:0}:o?tc(o,n)||{accessibility:1,errorSymbolName:Gd(i),errorNode:i}:{accessibility:3,errorSymbolName:Gd(i),errorNode:i}}function sc(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?xe.symbolToNode:xe.symbolToEntityName;return i?c(i).getText():od(c);function c(r){const i=s(e,n,t,o,a),c=307===(null==t?void 0:t.kind)?uU():_U(),l=t&&yd(t);return c.writeNode(4,i,l,r),r}}function cc(e,t,n=0,r,i){return i?o(i).getText():od(o);function o(i){let o;o=262144&n?1===r?185:184:1===r?180:179;const a=xe.signatureToSignatureDeclaration(e,o,t,70222336|kc(n)),s=dU(),c=t&&yd(t);return s.writeNode(4,a,c,Ly(i)),i}}function lc(e,t,n=1064960,r=Oy(""),i,o){const a=j.noErrorTruncation||1&n||void 0!==i,s=xe.typeToTypeNode(e,t,70221824|kc(n)|(a?1:0),void 0,void 0,i,o);if(void 0===s)return _n.fail("should always get typenode");const c=e!==Pt?_U():lU(),l=t&&yd(t);c.writeNode(4,s,l,r);const _=r.getText(),u=a?2*Wu:2*Vu;return u&&_&&_.length>=u?_.substr(0,u-3)+"...":_}function dc(e,t){let n=bc(e.symbol)?lc(e,e.symbol.valueDeclaration):lc(e),r=bc(t.symbol)?lc(t,t.symbol.valueDeclaration):lc(t);return n===r&&(n=vc(e),r=vc(t)),[n,r]}function vc(e){return lc(e,void 0,64)}function bc(e){return e&&!!e.valueDeclaration&&V_(e.valueDeclaration)&&!SS(e.valueDeclaration)}function kc(e=0){return 848330095&e}function Tc(e){return!!(e.symbol&&32&e.symbol.flags&&(e===du(e.symbol)||524288&e.flags&&16777216&hx(e)))}function wc(e){return Bk(e)}function Fc(e,t,n=16384,r){return r?i(r).getText():od(i);function i(r){const i=70222336|kc(n),o=xe.typePredicateToTypePredicateNode(e,t,i),a=_U(),s=t&&yd(t);return a.writeNode(4,o,s,r),r}}function Pc(e){return 2===e?"private":4===e?"protected":"public"}function Ac(e){return e&&e.parent&&268===e.parent.kind&&pp(e.parent.parent)}function Ic(e){return 307===e.kind||sp(e)}function Oc(e,t){const n=aa(e).nameType;if(n){if(384&n.flags){const e=""+n.value;return ms(e,vk(j))||zT(e)?zT(e)&&Kt(e,"-")?`[${e}]`:e:`"${xy(e,34)}"`}if(8192&n.flags)return`[${jc(n.symbol,t)}]`}}function jc(e,t){var n;if((null==(n=null==t?void 0:t.remappedSymbolReferences)?void 0:n.has(HB(e)))&&(e=t.remappedSymbolReferences.get(HB(e))),t&&"default"===e.escapedName&&!(16384&t.flags)&&(!(16777216&t.flags)||!e.declarations||t.enclosingDeclaration&&uc(e.declarations[0],Ic)!==uc(t.enclosingDeclaration,Ic)))return"default";if(e.declarations&&e.declarations.length){let n=d(e.declarations,(e=>Cc(e)?e:void 0));const r=n&&Cc(n);if(n&&r){if(YD(n)&&ng(n))return yc(e);if(aD(r)&&!(4096&ix(e))){const n=aa(e).nameType;if(n&&384&n.flags){const n=Oc(e,t);if(void 0!==n)return n}}return Pp(r)}if(n||(n=e.declarations[0]),n.parent&&260===n.parent.kind)return Pp(n.parent.name);switch(n.kind){case 231:case 218:case 219:return!t||t.encounteredError||131072&t.flags||(t.encounteredError=!0),231===n.kind?"(Anonymous class)":"(Anonymous function)"}}const r=Oc(e,t);return void 0!==r?r:yc(e)}function Rc(e){if(e){const t=sa(e);return void 0===t.isVisible&&(t.isVisible=!!function(){switch(e.kind){case 338:case 346:case 340:return!!(e.parent&&e.parent.parent&&e.parent.parent.parent&&WE(e.parent.parent.parent));case 208:return Rc(e.parent.parent);case 260:if(k_(e.name)&&!e.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(pp(e))return!0;const t=Vc(e);return 32&qq(e)||271!==e.kind&&307!==t.kind&&33554432&t.flags?Rc(t):Qp(t);case 172:case 171:case 177:case 178:case 174:case 173:if(Nv(e,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return Rc(e.parent);case 273:case 274:case 276:return!1;case 168:case 307:case 270:return!0;default:return!1}}()),t.isVisible}return!1}function Bc(e,t){let n,r,i;return 11!==e.kind&&e.parent&&277===e.parent.kind?n=Ue(e,e,2998271,void 0,!1):281===e.parent.kind&&(n=ja(e.parent,2998271)),n&&(i=new Set,i.add(HB(n)),function e(n){_(n,(n=>{const o=ba(n)||n;if(t?sa(n).isVisible=!0:(r=r||[],se(r,o)),Nm(n)){const t=cb(n.moduleReference),r=Ue(n,t.escapedText,901119,void 0,!1);r&&i&&J(i,HB(r))&&e(r.declarations)}}))}(n.declarations)),r}function Jc(e,t){const n=zc(e,t);if(n>=0){const{length:e}=Bi;for(let t=n;t<e;t++)Ji[t]=!1;return!1}return Bi.push(e),Ji.push(!0),zi.push(t),!0}function zc(e,t){for(let n=Bi.length-1;n>=qi;n--){if(qc(Bi[n],zi[n]))return-1;if(Bi[n]===e&&zi[n]===t)return n}return-1}function qc(e,t){switch(t){case 0:return!!aa(e).type;case 2:return!!aa(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!!aa(e).writeType;case 8:return void 0!==sa(e).parameterInitializerContainsUndefined}return _n.assertNever(t)}function Uc(){return Bi.pop(),zi.pop(),Ji.pop()}function Vc(e){return uc(Yh(e),(e=>{switch(e.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}})).parent}function Wc(e,t){const n=fm(e,t);return n?F_(n):void 0}function $c(e,t){var n;let r;return Wc(e,t)||(r=null==(n=cg(e,t))?void 0:n.type)&&Tl(r,!0,!0)}function Hc(e){return e&&!!(1&e.flags)}function Gc(e){return e===Et||!!(1&e.flags&&e.aliasSymbol)}function Yc(e,t){if(0!==t)return Cl(e,!1,t);const n=hs(e);return n&&aa(n).type||Cl(e,!1,t)}function Zc(e,t,n){if(131072&(e=OF(e,(e=>!(98304&e.flags)))).flags)return Nn;if(1048576&e.flags)return JF(e,(e=>Zc(e,t,n)));let r=jb(D(t,Yb));const i=[],o=[];for(const t of $p(e)){const e=Zb(t,8576);IS(e,r)||6&ox(t)||!pk(t)?o.push(e):i.push(t)}if(Ex(e)||Px(r)){if(o.length&&(r=jb([r,...o])),131072&r.flags)return e;const t=(qr||(qr=Hy("Omit",2,!0)||xt),qr===xt?void 0:qr);return t?hy(t,[e,r]):Et}const a=Ku();for(const e of i)a.set(e.escapedName,fk(e,!1));const c=zs(n,a,s,s,qm(e));return c.objectFlags|=4194304,c}function el(e){return!!(465829888&e.flags)&&Hj(ff(e)||Lt,32768)}function rl(e){return iD(EF(e,el)?JF(e,(e=>465829888&e.flags?mf(e):e)):e,524288)}function il(e,t){const n=al(e);return n?$E(n,t):t}function al(e){const t=function(e){const t=e.parent.parent;switch(t.kind){case 208:case 303:return al(t);case 209:return al(e.parent);case 260:return t.initializer;case 226:return t.right}}(e);if(t&&Og(t)&&t.flowNode){const n=cl(e);if(n){const r=cI(dI.createStringLiteral(n),e),i=M_(t)?t:dI.createParenthesizedExpression(t),o=cI(dI.createElementAccessExpression(i,r),e);return FT(r,o),FT(o,e),i!==t&&FT(i,o),o.flowNode=t.flowNode,o}}}function cl(e){const t=e.parent;return 208===e.kind&&206===t.kind?dl(e.propertyName||e.name):303===e.kind||304===e.kind?dl(e.name):""+t.elements.indexOf(e)}function dl(e){const t=Yb(e);return 384&t.flags?""+t.value:void 0}function fl(e){const t=e.dotDotDotToken?32:0,n=Yc(e.parent.parent,t);return n&&ml(e,n,!1)}function ml(e,t,n){if(Hc(t))return t;const r=e.parent;G&&33554432&e.flags&&Qh(e)?t=Tw(t):G&&r.parent.initializer&&!tD(_F(r.parent.initializer),65536)&&(t=iD(t,524288));const i=32|(n||YA(e)?16:0);let o;if(206===r.kind)if(e.dotDotDotToken){if(2&(t=Vf(t)).flags||!uI(t))return Ro(e,_a.Rest_types_may_only_be_created_from_object_types),Et;const n=[];for(const e of r.elements)e.dotDotDotToken||n.push(e.propertyName||e.name);o=Zc(t,n,e.symbol)}else{const n=e.propertyName||e.name;o=il(e,Rx(t,Yb(n),i,n))}else{const n=fB(65|(e.dotDotDotToken?0:128),t,jt,r),a=r.elements.indexOf(e);if(e.dotDotDotToken){const e=JF(t,(e=>58982400&e.flags?mf(e):e));o=IF(e,lw)?JF(e,(e=>kb(e,a))):Uv(n)}else if(qC(t)){o=il(e,Jx(t,wk(a),i,e.name)||Et)}else o=n}return e.initializer?fv(nc(e))?G&&!tD(pR(e,0),16777216)?rl(o):o:mR(e,jb([rl(o),pR(e,0)],2)):o}function xl(e){const t=nl(e);if(t)return Bk(t)}function Sl(e){const t=ah(e,!0);return 209===t.kind&&0===t.elements.length}function Tl(e,t=!1,n=!0){return G&&n?Sw(e,t):e}function Cl(e,t,n){if(HF(e)&&249===e.parent.parent.kind){const t=rx(KI(IR(e.parent.parent.expression,n)));return 4456448&t.flags?ax(t):Vt}if(HF(e)&&250===e.parent.parent.kind){return pB(e.parent.parent)||wt}if(k_(e.parent))return fl(e);const r=uD(e)&&!Ov(e)||_D(e)||EP(e),i=t&&QT(e),o=n_(e);if(ap(e))return o?Hc(o)||o===Lt?o:Et:le?Lt:wt;if(o)return Tl(o,r,i);if((ie||Em(e))&&HF(e)&&!k_(e.name)&&!(32&qq(e))&&!(33554432&e.flags)){if(!(6&Uq(e))&&(!e.initializer||function(e){const t=ah(e,!0);return 106===t.kind||80===t.kind&&ON(t)===De}(e.initializer)))return Nt;if(e.initializer&&Sl(e.initializer))return lr}if(cD(e)){if(!e.symbol)return;const t=e.parent;if(178===t.kind&&_d(t)){const n=$u(hs(e.parent),177);if(n){const r=Pg(n),i=Sq(t);return i&&e===i?(_n.assert(!i.type),F_(r.thisParameter)):Zg(r)}}const n=function(e,t){const n=Ig(e);if(!n)return;const r=e.parameters.indexOf(t);return t.dotDotDotToken?nj(n,r):ej(n,r)}(t,e);if(n)return n;const r="this"===e.symbol.escapedName?rA(t):oA(e);if(r)return Tl(r,!1,i)}if(Pu(e)&&e.initializer){if(Em(e)&&!cD(e)){const t=Ll(e,hs(e),Wm(e));if(t)return t}return Tl(mR(e,pR(e,n)),r,i)}if(uD(e)&&(ie||Em(e))){if(Ev(e)){const t=C(e.parent.members,fD),n=t.length?function(e,t){const n=Kt(e.escapedName,"__#")?ZC.createPrivateIdentifier(e.escapedName.split("@")[1]):mc(e.escapedName);for(const r of t){const t=ZC.createPropertyAccessExpression(ZC.createThis(),n);FT(t.expression,t),FT(t,r),t.flowNode=r.returnFlowNode;const i=Pl(t,e);if(!ie||i!==Nt&&i!==lr||Ro(e.valueDeclaration,_a.Member_0_implicitly_has_an_1_type,sc(e),lc(i)),!IF(i,HI))return YM(i)}}(e.symbol,t):128&Jv(e)?NC(e.symbol):void 0;return n&&Tl(n,!0,i)}{const t=vC(e.parent),n=t?El(e.symbol,t):128&Jv(e)?NC(e.symbol):void 0;return n&&Tl(n,!0,i)}}return AE(e)?tn:k_(e.name)?Vl(e.name,!1,!0):void 0}function wl(e){if(e.valueDeclaration&&uF(e.valueDeclaration)){const t=aa(e);return void 0===t.isConstructorDeclaredProperty&&(t.isConstructorDeclaredProperty=!1,t.isConstructorDeclaredProperty=!!Fl(e)&&h(e.declarations,(t=>uF(t)&&yA(t)&&(212!==t.left.kind||jh(t.left.argumentExpression))&&!jl(void 0,t,e,t)))),t.isConstructorDeclaredProperty}return!1}function Dl(e){const t=e.valueDeclaration;return t&&uD(t)&&!fv(t)&&!t.initializer&&(ie||Em(t))}function Fl(e){if(e.declarations)for(const t of e.declarations){const e=em(t,!1,!1);if(e&&(176===e.kind||CL(e)))return e}}function El(e,t){const n=Kt(e.escapedName,"__#")?ZC.createPrivateIdentifier(e.escapedName.split("@")[1]):mc(e.escapedName),r=ZC.createPropertyAccessExpression(ZC.createThis(),n);FT(r.expression,r),FT(r,t),r.flowNode=t.returnFlowNode;const i=Pl(r,e);return!ie||i!==Nt&&i!==lr||Ro(e.valueDeclaration,_a.Member_0_implicitly_has_an_1_type,sc(e),lc(i)),IF(i,HI)?void 0:YM(i)}function Pl(e,t){const n=(null==t?void 0:t.valueDeclaration)&&(!Dl(t)||128&Jv(t.valueDeclaration))&&NC(t)||jt;return $E(e,Nt,n)}function Al(e,t){const n=$m(e.valueDeclaration);if(n){const t=Em(n)?tl(n):void 0;if(t&&t.typeExpression)return Bk(t.typeExpression);return e.valueDeclaration&&Ll(e.valueDeclaration,e,n)||iw(uR(n))}let r,i=!1,o=!1;if(wl(e)&&(r=El(e,Fl(e))),!r){let n;if(e.declarations){let a;for(const r of e.declarations){const s=uF(r)||YD(r)?r:Tx(r)?uF(r.parent)?r.parent:r:void 0;if(!s)continue;const c=Tx(s)?ug(s):tg(s);(4===c||uF(s)&&yA(s,c))&&(Jl(s)?i=!0:o=!0),YD(s)||(a=jl(a,s,e,r)),a||(n||(n=[])).push(uF(s)||YD(s)?Rl(e,t,s,c):un)}r=a}if(!r){if(!l(n))return Et;let t=i&&e.declarations?function(e,t){return _n.assert(e.length===t.length),e.filter(((e,n)=>{const r=t[n],i=uF(r)?r:uF(r.parent)?r.parent:void 0;return i&&Jl(i)}))}(n,e.declarations):void 0;if(o){const n=NC(e);n&&((t||(t=[])).push(n),i=!0)}r=jb(V(t,(e=>!!(-98305&e.flags)))?t:n)}}const a=Uw(Tl(r,!1,o&&!i));return e.valueDeclaration&&Em(e.valueDeclaration)&&OF(a,(e=>!!(-98305&e.flags)))===un?($w(e.valueDeclaration,wt),wt):a}function Ll(e,t,n){var r,i;if(!Em(e)||!n||!GD(n)||n.properties.length)return;const o=Ku();for(;uF(e)||XD(e);){const t=ys(e);(null==(r=null==t?void 0:t.exports)?void 0:r.size)&&na(o,t.exports),e=uF(e)?e.parent:e.parent.parent}const a=ys(e);(null==(i=null==a?void 0:a.exports)?void 0:i.size)&&na(o,a.exports);const c=zs(t,o,s,s,s);return c.objectFlags|=4096,c}function jl(e,t,n,r){var i;const o=fv(t.parent);if(o){const t=Uw(Bk(o));if(!e)return t;Gc(e)||Gc(t)||NS(e,t)||eB(void 0,e,r,t)}if(null==(i=n.parent)?void 0:i.valueDeclaration){const e=bs(n.parent);if(e.valueDeclaration){const t=fv(e.valueDeclaration);if(t){const e=fm(Bk(t),n.escapedName);if(e)return E_(e)}}}return e}function Rl(e,t,n,r){if(YD(n)){if(t)return F_(t);const e=uR(n.arguments[2]),r=Wc(e,"value");if(r)return r;const i=Wc(e,"get");if(i){const e=qO(i);if(e)return Zg(e)}const o=Wc(e,"set");if(o){const e=qO(o);if(e)return lj(e)}return wt}if(function(e,t){return XD(e)&&110===e.expression.kind&&MI(t,(t=>RN(e,t)))}(n.left,n.right))return wt;const i=1===r&&(XD(n.left)||QD(n.left))&&(eg(n.left.expression)||VN(n.left.expression)&&Ym(n.left.expression)),o=t?F_(t):i?hk(uR(n.right)):iw(uR(n.right));if(524288&o.flags&&2===r&&"export="===e.escapedName){const n=Op(o),r=Ku();id(n.members,r);const i=r.size;t&&!t.exports&&(t.exports=Ku()),(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&&yd(e.valueDeclaration)!==yd(i.valueDeclaration)){const t=mc(e.escapedName),r=(null==(n=et(i.valueDeclaration,Sc))?void 0:n.name)||i.valueDeclaration;sT(Ro(e.valueDeclaration,_a.Duplicate_identifier_0,t),Rp(r,_a._0_was_also_declared_here,t)),sT(Ro(r,_a.Duplicate_identifier_0,t),Rp(e.valueDeclaration,_a._0_was_also_declared_here,t))}const o=$o(e.flags|i.flags,t);o.links.type=jb([F_(e),F_(i)]),o.valueDeclaration=i.valueDeclaration,o.declarations=$(i.declarations,e.declarations),r.set(t,o)}else r.set(t,Yo(e,i))}));const a=zs(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&hx(o))){a.aliasSymbol=o.symbol;const e=fy(o);a.aliasTypeArguments=l(e)?e:void 0}return a.objectFlags|=sy([o])|20608&hx(o),a.symbol&&32&a.symbol.flags&&o===du(a.symbol)&&(a.objectFlags|=16777216),a}return $C(o)?($w(n,cr),cr):o}function Jl(e){const t=em(e,!1,!1);return 176===t.kind||262===t.kind||218===t.kind&&!pg(t.parent)}function Ul(e,t,n){if(e.initializer){return Tl(gR(e,pR(e,0,k_(e.name)?Vl(e.name,!0,!1):Lt)))}return k_(e.name)?Vl(e.name,t,n):(n&&!Yl(e)&&$w(e,wt),t?At:wt)}function Vl(e,t=!1,n=!1){t&&Ai.push(e);const r=206===e.kind?function(e,t,n){const r=Ku();let i,o=131200;_(e.elements,(e=>{const a=e.propertyName||e.name;if(e.dotDotDotToken)return void(i=Rh(Vt,wt,!1));const s=Yb(a);if(!cC(s))return void(o|=512);const c=lC(s),l=$o(4|(e.initializer?16777216:0),c);l.links.type=Ul(e,t,n),r.set(l.escapedName,l)}));const a=zs(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&&208===i.kind&&i.dotDotDotToken?i:void 0;if(0===r.length||1===r.length&&o)return M>=2?qv(wt):cr;const a=D(r,(e=>hF(e)?wt:Ul(e,t,n))),s=x(r,(e=>!(e===o||hF(e)||YA(e))),r.length-1)+1;let c=ob(a,D(r,((e,t)=>e===o?4:t>=s?2:1)));return t&&(c=dy(c),c.pattern=e,c.objectFlags|=131072),c}(e,t,n);return t&&Ai.pop(),r}function $l(e,t){return Ql(Cl(e,!0,0),e,t)}function Hl(e){const t=sa(e);if(!t.resolvedType){const n=$o(4096,"__importAttributes"),r=Ku();_(e.elements,(e=>{const t=$o(4,fC(e));t.parent=n,t.links.type=function(e){return hk(uR(e.value))}(e),t.links.target=t,r.set(t.escapedName,t)}));const i=zs(n,r,s,s,s);i.objectFlags|=262272,t.resolvedType=i}return t.resolvedType}function Xl(e){const t=ys(e),n=(r=!1,pr||(pr=$y("SymbolConstructor",r)));var r;return n&&t&&t===n}function Ql(e,t,n){return e?(4096&e.flags&&Xl(t.parent)&&(e=Ak(t)),n&&Hw(t,e),8192&e.flags&&(HD(t)||!t.type)&&e.symbol!==hs(t)&&(e=cn),Uw(e)):(e=cD(t)&&t.dotDotDotToken?cr:wt,n&&(Yl(t)||$w(t,e)),e)}function Yl(e){const t=Yh(e);return tM(169===t.kind?t.parent:t)}function n_(e){const t=fv(e);if(t)return Bk(t)}function s_(e){const t=aa(e);if(!t.type){const n=function(e){if(4194304&e.flags)return function(e){const t=Tu(vs(e));return t.typeParameters?uy(t,D(t.typeParameters,(e=>wt))):t}(e);if(e===je)return wt;if(134217728&e.flags&&e.valueDeclaration){const t=hs(yd(e.valueDeclaration)),n=$o(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=Ku();return r.set("exports",n),zs(e,r,s,s,s)}_n.assertIsDefined(e.valueDeclaration);const t=e.valueDeclaration;if(WE(t)&&Zp(t))return t.statements.length?Uw(iw(IR(t.statements[0].expression))):Nn;if(d_(t))return g_(e);if(!Jc(e,0))return 512&e.flags&&!(67108864&e.flags)?x_(e):w_(e);let n;if(277===t.kind)n=Ql(n_(t)||uR(t.expression),t);else if(uF(t)||Em(t)&&(YD(t)||(XD(t)||ag(t))&&uF(t.parent)))n=Al(e);else if(XD(t)||QD(t)||VN(t)||ju(t)||CN(t)||XF(t)||GF(t)||pD(t)&&!Bf(t)||dD(t)||WE(t)){if(9136&e.flags)return x_(e);n=uF(t.parent)?Al(e):n_(t)||wt}else if(zE(t))n=n_(t)||xR(t);else if(AE(t))n=n_(t)||mI(t);else if(qE(t))n=n_(t)||bR(t.name,0);else if(Bf(t))n=n_(t)||kR(t,0);else if(cD(t)||uD(t)||_D(t)||HF(t)||HD(t)||Nl(t))n=$l(t,!0);else if(ZF(t))n=x_(e);else{if(!VE(t))return _n.fail("Unhandled declaration kind! "+_n.formatSyntaxKind(t.kind)+" for "+_n.formatSymbol(e));n=T_(e)}if(!Uc())return 512&e.flags&&!(67108864&e.flags)?x_(e):w_(e);return n}(e);return t.type||function(e){let t=e.valueDeclaration;return!!t&&(HD(t)&&(t=nc(t)),!!cD(t)&&CS(t.parent))}(e)||(t.type=n),n}return t.type}function c_(e){if(e)switch(e.kind){case 177:return gv(e);case 178:return yv(e);case 172:_n.assert(Ov(e));return fv(e)}}function m_(e){const t=c_(e);return t&&Bk(t)}function g_(e){const t=aa(e);if(!t.type){if(!Jc(e,0))return Et;const n=$u(e,177),r=$u(e,178),i=et($u(e,172),p_);let o=n&&Em(n)&&xl(n)||m_(n)||m_(r)||m_(i)||n&&n.body&&Fj(n)||i&&$l(i,!0);o||(r&&!tM(r)?Bo(ie,r,_a.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,sc(e)):n&&!tM(n)?Bo(ie,n,_a.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,sc(e)):i&&!tM(i)&&Bo(ie,i,_a.Member_0_implicitly_has_an_1_type,sc(e),"any"),o=wt),Uc()||(c_(n)?Ro(n,_a._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,sc(e)):c_(r)||c_(i)?Ro(r,_a._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,sc(e)):n&&ie&&Ro(n,_a._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,sc(e)),o=wt),t.type??(t.type=o)}return t.type}function h_(e){const t=aa(e);if(!t.writeType){if(!Jc(e,7))return Et;const n=$u(e,178)??et($u(e,172),p_);let r=m_(n);Uc()||(c_(n)&&Ro(n,_a._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,sc(e)),r=wt),t.writeType??(t.writeType=r||g_(e))}return t.writeType}function y_(e){const t=ru(du(e));return 8650752&t.flags?t:2097152&t.flags?y(t.types,(e=>!!(8650752&e.flags))):void 0}function x_(e){let t=aa(e);const n=t;if(!t.type){const r=e.valueDeclaration&&NL(e.valueDeclaration,!1);if(r){const n=wL(e,r);n&&(e=n,t=n.links)}n.type=t.type=function(e){const t=e.valueDeclaration;if(1536&e.flags&&_p(e))return wt;if(t&&(226===t.kind||Tx(t)&&226===t.parent.kind))return Al(e);if(512&e.flags&&t&&WE(t)&&t.commonJsModuleIndicator){const t=rs(e);if(t!==e){if(!Jc(e,0))return Et;const n=fs(e.exports.get("export=")),r=Al(n,n===t?void 0:t);return Uc()?r:w_(e)}}const n=Ls(16,e);if(32&e.flags){const t=y_(e);return t?Vb([n,t]):n}return G&&16777216&e.flags?Sw(n,!0):n}(e)}return t.type}function T_(e){const t=aa(e);return t.type||(t.type=vu(e))}function C_(e){const t=aa(e);if(!t.type){if(!Jc(e,0))return Et;const n=qa(e),r=e.declarations&&Ma(xa(e),!0),i=d(null==r?void 0:r.declarations,(e=>gE(e)?n_(e):void 0));if(t.type??(t.type=(null==r?void 0:r.declarations)&&XJ(r.declarations)&&e.declarations.length?function(e){const t=yd(e.declarations[0]),n=mc(e.escapedName),r=e.declarations.every((e=>Em(e)&&Tx(e)&&eg(e.expression))),i=r?ZC.createPropertyAccessExpression(ZC.createPropertyAccessExpression(ZC.createIdentifier("module"),ZC.createIdentifier("exports")),n):ZC.createPropertyAccessExpression(ZC.createIdentifier("exports"),n);return r&&FT(i.expression.expression,i.expression),FT(i.expression,i),FT(i,t),i.flowNode=t.endFlowNode,$E(i,Nt,jt)}(r):XJ(e.declarations)?Nt:i||(111551&Ua(n)?F_(n):Et)),!Uc())return w_(r??e),t.type??(t.type=Et)}return t.type}function w_(e){const t=e.valueDeclaration;if(t){if(fv(t))return Ro(e.valueDeclaration,_a._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,sc(e)),Et;ie&&(169!==t.kind||t.initializer)&&Ro(e.valueDeclaration,_a._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,sc(e))}else if(2097152&e.flags){const t=xa(e);t&&Ro(t,_a.Circular_definition_of_import_alias_0,sc(e))}return wt}function N_(e){const t=aa(e);return t.type||(_n.assertIsDefined(t.deferralParent),_n.assertIsDefined(t.deferralConstituents),t.type=1048576&t.deferralParent.flags?jb(t.deferralConstituents):Vb(t.deferralConstituents)),t.type}function D_(e){const t=ix(e);return 4&e.flags?2&t?65536&t?function(e){const t=aa(e);return!t.writeType&&t.deferralWriteConstituents&&(_n.assertIsDefined(t.deferralParent),_n.assertIsDefined(t.deferralConstituents),t.writeType=1048576&t.deferralParent.flags?jb(t.deferralWriteConstituents):Vb(t.deferralWriteConstituents)),t.writeType}(e)||N_(e):e.links.writeType||e.links.type:Fw(F_(e),!!(16777216&e.flags)):98304&e.flags?1&t?function(e){const t=aa(e);return t.writeType||(t.writeType=yS(D_(t.target),t.mapper))}(e):h_(e):F_(e)}function F_(e){const t=ix(e);return 65536&t?N_(e):1&t?function(e){const t=aa(e);return t.type||(t.type=yS(F_(t.target),t.mapper))}(e):262144&t?function(e){var t;if(!e.links.type){const n=e.links.mappedType;if(!Jc(e,0))return n.containsError=!0,Et;const i=yS(hp(n.target||n),aS(n.mapper,ip(n),e.links.keyType));let o=G&&16777216&e.flags&&!Hj(i,49152)?Sw(i,!0):524288&e.links.checkFlags?Pw(i):i;Uc()||(Ro(r,_a.Type_of_property_0_circularly_references_itself_in_mapped_type_1,sc(e),lc(n)),o=Et),(t=e.links).type??(t.type=o)}return e.links.type}(e):8192&t?function(e){const t=aa(e);t.type||(t.type=cN(e.links.propertyType,e.links.mappedType,e.links.constraintType)||Lt);return t.type}(e):7&e.flags?s_(e):9136&e.flags?x_(e):8&e.flags?T_(e):98304&e.flags?g_(e):2097152&e.flags?C_(e):Et}function E_(e){return Fw(F_(e),!!(16777216&e.flags))}function P_(e,t){if(void 0===e||!(4&hx(e)))return!1;for(const n of t)if(e.target===n)return!0;return!1}function R_(e,t){return void 0!==e&&void 0!==t&&!!(4&hx(e))&&e.target===t}function B_(e){return 4&hx(e)?e.target:e}function J_(e,t){return function e(n){if(7&hx(n)){const r=B_(n);return r===t||V(cu(r),e)}if(2097152&n.flags)return V(n.types,e);return!1}(e)}function z_(e,t){for(const n of t)e=ce(e,ku(hs(n)));return e}function q_(e,t){for(;;){if((e=e.parent)&&uF(e)){const t=tg(e);if(6===t||3===t){const t=hs(e.left);t&&t.parent&&!uc(t.parent.valueDeclaration,(t=>e===t))&&(e=t.parent.valueDeclaration)}}if(!e)return;const n=e.kind;switch(n){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 317:case 262:case 174:case 218:case 219:case 265:case 345:case 346:case 340:case 338:case 200:case 194:{const r=q_(e,t);if((218===n||219===n||Bf(e))&&SS(e)){const t=pe(ym(F_(hs(e)),0));if(t&&t.typeParameters)return[...r||s,...t.typeParameters]}if(200===n)return re(r,ku(hs(e.typeParameter)));if(194===n)return $(r,Zx(e));const i=z_(r,_l(e)),o=t&&(263===n||231===n||264===n||CL(e))&&du(hs(e)).thisType;return o?re(i,o):i}case 341:const r=Bg(e);r&&(e=r.valueDeclaration);break;case 320:{const n=q_(e,t);return e.tags?z_(n,A(e.tags,(e=>NP(e)?e.typeParameters:void 0))):n}}}}function U_(e){var t;const n=32&e.flags||16&e.flags?e.valueDeclaration:null==(t=e.declarations)?void 0:t.find((e=>{if(264===e.kind)return!0;if(260!==e.kind)return!1;const t=e.initializer;return!!t&&(218===t.kind||219===t.kind)}));return _n.assert(!!n,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),q_(n)}function H_(e){if(!e.declarations)return;let t;for(const n of e.declarations)if(264===n.kind||263===n.kind||231===n.kind||CL(n)||Fg(n)){t=z_(t,_l(n))}return t}function Y_(e){const t=ym(e,1);if(1===t.length){const e=t[0];if(!e.typeParameters&&1===e.parameters.length&&ZB(e)){const t=HL(e.parameters[0]);return Hc(t)||zC(t)===wt}}return!1}function Z_(e){if(ym(e,1).length>0)return!0;if(8650752&e.flags){const t=ff(e);return!!t&&Y_(t)}return!1}function eu(e){const t=gx(e.symbol);return t&&yh(t)}function tu(e,t,n){const r=l(t),i=Em(n);return C(ym(e,1),(e=>(i||r>=Cg(e.typeParameters))&&r<=l(e.typeParameters)))}function nu(e,t,n){const r=tu(e,t,n),i=D(t,Bk);return E(r,(e=>V(e.typeParameters)?xh(e,i,Em(n)):e))}function ru(e){if(!e.resolvedBaseConstructorType){const t=gx(e.symbol),n=t&&yh(t),r=eu(e);if(!r)return e.resolvedBaseConstructorType=jt;if(!Jc(e,1))return Et;const i=IR(r.expression);if(n&&r!==n&&(_n.assert(!n.typeArguments),IR(n.expression)),2621440&i.flags&&Op(i),!Uc())return Ro(e.symbol.valueDeclaration,_a._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,sc(e.symbol)),e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Et);if(!(1&i.flags||i===Ut||Z_(i))){const t=Ro(r.expression,_a.Type_0_is_not_a_constructor_function_type,lc(i));if(262144&i.flags){const e=ry(i);let n=Lt;if(e){const t=ym(e,1);t[0]&&(n=Zg(t[0]))}i.symbol.declarations&&sT(t,Rp(i.symbol.declarations[0],_a.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,sc(i.symbol),lc(n)))}return e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=Et)}e.resolvedBaseConstructorType??(e.resolvedBaseConstructorType=i)}return e.resolvedBaseConstructorType}function iu(e,t){Ro(e,_a.Type_0_recursively_references_itself_as_a_base_type,lc(t,void 0,2))}function cu(e){if(!e.baseTypesResolved){if(Jc(e,6)&&(8&e.objectFlags?e.resolvedBaseTypes=[lu(e)]:96&e.symbol.flags?(32&e.symbol.flags&&function(e){e.resolvedBaseTypes=qu;const t=Tf(ru(e));if(!(2621441&t.flags))return e.resolvedBaseTypes=s;const n=eu(e);let r;const i=t.symbol?Tu(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=fy(e);return t[n].symbol!==r[n].symbol}return!0}(i))r=gy(n,t.symbol);else if(1&t.flags)r=t;else{const i=nu(t,n.typeArguments,n);if(!i.length)return Ro(n.expression,_a.No_base_constructor_has_the_specified_number_of_type_arguments),e.resolvedBaseTypes=s;r=Zg(i[0])}if(Gc(r))return e.resolvedBaseTypes=s;const o=Vf(r);if(!uu(o)){const t=ek(pm(void 0,r),_a.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,lc(o));return po.add(Jp(yd(n.expression),n.expression,t)),e.resolvedBaseTypes=s}if(e===o||J_(o,e))return Ro(e.symbol.valueDeclaration,_a.Type_0_recursively_references_itself_as_a_base_type,lc(e,void 0,2)),e.resolvedBaseTypes=s;e.resolvedBaseTypes===qu&&(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(264===t.kind&&kh(t))for(const n of kh(t)){const r=Vf(Bk(n));Gc(r)||(uu(r)?e===r||J_(r,e)?iu(t,e):e.resolvedBaseTypes===s?e.resolvedBaseTypes=[r]:e.resolvedBaseTypes.push(r):Ro(n,_a.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"),!Uc()&&e.symbol.declarations))for(const t of e.symbol.declarations)263!==t.kind&&264!==t.kind||iu(t,e);e.baseTypesResolved=!0}return e.resolvedBaseTypes}function lu(e){return Uv(jb(E(e.typeParameters,((t,n)=>8&e.elementFlags[n]?Rx(t,Wt):t))||s),e.readonly)}function uu(e){if(262144&e.flags){const t=ff(e);if(t)return uu(t)}return!!(67633153&e.flags&&!Tp(e)||2097152&e.flags&&h(e.types,uu))}function du(e){let t=aa(e);const n=t;if(!t.declaredType){const r=32&e.flags?1:2,i=wL(e,e.valueDeclaration&&function(e){var t;const n=e&&NL(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&&211===t.kind;)t=t.parent;if(t&&uF(t)&&db(t.left)&&64===t.operatorToken.kind){const e=dg(t);return GD(e)&&e}}(r.valueDeclaration);return i?hs(i):void 0}(e.valueDeclaration));i&&(e=i,t=i.links);const o=n.declaredType=t.declaredType=Ls(r,e),a=U_(e),s=H_(e);(a||s||1===r||!function(e){if(!e.declarations)return!0;for(const t of e.declarations)if(264===t.kind){if(256&t.flags)return!1;const e=kh(t);if(e)for(const t of e)if(sb(t.expression)){const e=Xa(t.expression,788968,!0);if(!e||!(64&e.flags)||du(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(oy(o.typeParameters),o),o.target=o,o.resolvedTypeArguments=o.typeParameters,o.thisType=js(e),o.thisType.isThisType=!0,o.thisType.constraint=o)}return t.declaredType}function fu(e){var t;const n=aa(e);if(!n.declaredType){if(!Jc(e,2))return Et;const r=_n.checkDefined(null==(t=e.declarations)?void 0:t.find(Fg),"Type alias symbol with no valid declaration found"),i=Dg(r)?r.typeExpression:r.type;let o=i?Bk(i):Et;if(Uc()){const t=H_(e);t&&(n.typeParameters=t,n.instantiations=new Map,n.instantiations.set(oy(t),o)),o===It&&"BuiltinIteratorReturn"===e.escapedName&&(o=kv())}else o=Et,340===r.kind?Ro(r.typeExpression.type,_a.Type_alias_0_circularly_references_itself,sc(e)):Ro(Sc(r)&&r.name||r,_a.Type_alias_0_circularly_references_itself,sc(e));n.declaredType??(n.declaredType=o)}return n.declaredType}function mu(e){return 1056&e.flags&&8&e.symbol.flags?Tu(vs(e.symbol)):e}function gu(e){const t=aa(e);if(!t.declaredType){const n=[];if(e.declarations)for(const t of e.declarations)if(266===t.kind)for(const r of t.members)if(_d(r)){const t=hs(r),i=qz(r).value,o=gk(void 0!==i?Pk(i,HB(e),t):hu(t));aa(t).declaredType=o,n.push(hk(o))}const r=n.length?jb(n,1,e,void 0):hu(e);1048576&r.flags&&(r.flags|=1024,r.symbol=e),t.declaredType=r}return t.declaredType}function hu(e){const t=Es(32,e),n=Es(32,e);return t.regularType=t,t.freshType=n,n.regularType=t,n.freshType=n,t}function vu(e){const t=aa(e);if(!t.declaredType){const n=gu(vs(e));t.declaredType||(t.declaredType=n)}return t.declaredType}function ku(e){const t=aa(e);return t.declaredType||(t.declaredType=js(e))}function Tu(e){return Cu(e)||Et}function Cu(e){return 96&e.flags?du(e):524288&e.flags?fu(e):262144&e.flags?ku(e):384&e.flags?gu(e):8&e.flags?vu(e):2097152&e.flags?function(e){const t=aa(e);return t.declaredType||(t.declaredType=Tu(qa(e)))}(e):void 0}function Au(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 201:return!0;case 188:return Au(e.elementType);case 183:return!e.typeArguments||e.typeArguments.every(Au)}return!1}function Ou(e){const t=ul(e);return!t||Au(t)}function Lu(e){const t=fv(e);return t?Au(t):!Eu(e)}function Ju(e){if(e.declarations&&1===e.declarations.length){const t=e.declarations[0];if(t)switch(t.kind){case 172:case 171:return Lu(t);case 174:case 173:case 176:case 177:case 178:return function(e){const t=gv(e),n=_l(e);return(176===e.kind||!!t&&Au(t))&&e.parameters.every(Lu)&&n.every(Ou)}(t)}}return!1}function zu(e,t,n){const r=Ku();for(const i of e)r.set(i.escapedName,n&&Ju(i)?i:_S(i,t));return r}function Qu(e,t){for(const n of t){if(Yu(n))continue;const t=e.get(n.escapedName);(!t||t.valueDeclaration&&uF(t.valueDeclaration)&&!wl(t)&&!Qf(t.valueDeclaration))&&(e.set(n.escapedName,n),e.set(n.escapedName,n))}}function Yu(e){return!!e.valueDeclaration&&Kl(e.valueDeclaration)&&Fv(e.valueDeclaration)}function Zu(e){if(!e.declaredProperties){const t=e.symbol,n=kd(t);e.declaredProperties=Ms(n),e.declaredCallSignatures=s,e.declaredConstructSignatures=s,e.declaredIndexInfos=s,e.declaredCallSignatures=Rg(n.get("__call")),e.declaredConstructSignatures=Rg(n.get("__new")),e.declaredIndexInfos=$h(t)}return e}function ed(e){return ad(e)&&cC(aD(e)?nI(e):uR(e.argumentExpression))}function td(e){return ad(e)&&IS(aD(e)?nI(e):uR(e.argumentExpression),hn)}function ad(e){if(!aD(e)&&!QD(e))return!1;return sb(aD(e)?e.expression:e.argumentExpression)}function sd(e){return 95===e.charCodeAt(0)&&95===e.charCodeAt(1)&&64===e.charCodeAt(2)}function cd(e){const t=Cc(e);return!!t&&ed(t)}function ld(e){const t=Cc(e);return!!t&&td(t)}function _d(e){return!Mh(e)||cd(e)}function pd(e){return Bh(e)&&!ed(e)}function fd(e,t,n,r){_n.assert(!!r.symbol,"The member is expected to have a symbol.");const i=sa(r);if(!i.resolvedSymbol){i.resolvedSymbol=r.symbol;const o=uF(r)?r.left:r.name,a=QD(o)?uR(o.argumentExpression):nI(o);if(cC(a)){const s=lC(a),c=r.symbol.flags;let l=n.get(s);l||n.set(s,l=$o(0,s,4096));const u=t&&t.get(s);if(!(32&e.flags)&&l.flags&Go(c)){const e=u?$(u.declarations,l.declarations):l.declarations,t=!(8192&a.flags)&&mc(s)||Pp(o);_(e,(e=>Ro(Cc(e)||e,_a.Property_0_was_also_declared_here,t))),Ro(o||r,_a.Duplicate_property_0,t),l=$o(0,s,4096)}return l.links.nameType=a,function(e,t,n){_n.assert(!!(4096&ix(e)),"Expected a late-bound symbol."),e.flags|=n,aa(t.symbol).lateSymbol=e,e.declarations?t.symbol.isReplaceableByMethod||e.declarations.push(t):e.declarations=[t],111551&n&&(e.valueDeclaration&&e.valueDeclaration.kind===t.kind||(e.valueDeclaration=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 md(e,t,n,r){let i=n.get("__index");if(!i){const e=null==t?void 0:t.get("__index");e?(i=Qo(e),i.links.checkFlags|=4096):i=$o(0,"__index",4096),n.set("__index",i)}i.declarations?r.symbol.isReplaceableByMethod||i.declarations.push(r):i.declarations=[r]}function gd(e,t){const n=aa(e);if(!n[t]){const r="resolvedExports"===t,i=r?1536&e.flags?ps(e).exports:e.exports:e.members;n[t]=i||O;const o=Ku();for(const t of e.declarations||s){const n=Ef(t);if(n)for(const t of n)r===Ev(t)&&(cd(t)?fd(e,i,o,t):ld(t)&&md(0,i,o,t))}const a=bs(e).assignmentDeclarationMembers;if(a){const t=Ie(a.values());for(const n of t){const t=tg(n);r===!(3===t||uF(n)&&yA(n,t)||9===t||6===t)&&cd(n)&&fd(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=Ku();return na(n,e),na(n,t),n}(i,o);if(33554432&e.flags&&n.cjsExportMerged&&e.declarations)for(const n of e.declarations){const e=aa(n.symbol)[t];c?e&&e.forEach(((e,t)=>{const n=c.get(t);if(n){if(n===e)return;c.set(t,Yo(n,e))}else c.set(t,e)})):c=e}n[t]=c||O}return n[t]}function kd(e){return 6256&e.flags?gd(e,"resolvedMembers"):e.members||O}function Sd(e){if(106500&e.flags&&"__computed"===e.escapedName){const t=aa(e);if(!t.lateSymbol&&V(e.declarations,cd)){const t=fs(e.parent);V(e.declarations,Ev)?_s(t):kd(t)}return t.lateSymbol||(t.lateSymbol=e)}return e}function Td(e,t,n){if(4&hx(e)){const n=e.target,r=fy(e);return l(n.typeParameters)===l(r)?uy(n,$(r,[t||n.thisType])):e}if(2097152&e.flags){const r=E(e.types,(e=>Td(e,t,n)));return r!==e.types?Vb(r):e}return n?Tf(e):e}function Cd(e,t,n,r){let i,o,a,s,c;ue(n,r,0,n.length)?(o=t.symbol?kd(t.symbol):Ku(t.declaredProperties),a=t.declaredCallSignatures,s=t.declaredConstructSignatures,c=t.declaredIndexInfos):(i=Qk(n,r),o=zu(t.declaredProperties,i,1===n.length),a=$k(t.declaredCallSignatures,i),s=$k(t.declaredConstructSignatures,i),c=Hk(t.declaredIndexInfos,i));const l=cu(t);if(l.length){if(t.symbol&&o===kd(t.symbol)){const e=Ku(t.declaredProperties),n=Ih(t.symbol);n&&e.set("__index",n),o=e}Js(e,o,a,s,c);const n=he(r);for(const e of l){const t=n?Td(yS(e,i),n):e;Qu(o,$p(t)),a=$(a,ym(t,0)),s=$(s,ym(t,1));const r=t!==wt?qm(t):[di];c=$(c,C(r,(e=>!Am(c,e.keyType))))}}Js(e,o,a,s,c)}function Dd(e,t,n,r,i,o,a,s){const c=new p(He,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 Fd(e){const t=Dd(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 Ed(e,t){const n=Fd(e);return n.compositeSignatures=t,n.compositeKind=1048576,n.target=void 0,n.mapper=void 0,n}function Pd(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=Fd(e);return n.flags|=t,n}(e,t))}function Ad(e,t){if(ZB(e)){const r=e.parameters.length-1,i=e.parameters[r],o=F_(i);if(lw(o))return[n(o,r,i)];if(!t&&1048576&o.flags&&h(o.types,lw))return D(o.types,(e=>n(e,r,i)))}return[e.parameters];function n(t,n,r){const i=fy(t),o=function(e,t){const n=D(e.target.labeledElementDeclarations,((n,r)=>GL(n,r,e.target.elementFlags[r],t)));if(n){const e=[],t=new Set;for(let r=0;r<n.length;r++){J(t,n[r])||e.push(r)}const r=new Map;for(const i of e){let e,o=r.get(n[i])??1;for(;!J(t,e=`${n[i]}_${o}`);)o++;n[i]=e,r.set(n[i],o+1)}}return n}(t,r),a=D(i,((r,i)=>{const a=o&&o[i]?o[i]:XL(e,n+i,t),s=t.target.elementFlags[i],c=$o(1,a,12&s?32768:2&s?16384:0);return c.links.type=4&s?Uv(r):r,c}));return $(e.parameters.slice(0,n),a)}}function Id(e,t,n,r,i){for(const o of e)if(OC(o,t,n,r,i,n?ES:DS))return o}function Od(e,t,n){if(t.typeParameters){if(n>0)return;for(let n=1;n<e.length;n++)if(!Id(e[n],t,!1,!1,!1))return;return[t]}let r;for(let i=0;i<e.length;i++){const o=i===n?t:Id(e[i],t,!1,!1,!0)||Id(e[i],t,!0,!1,!0);if(!o)return;r=ce(r,o)}return r}function Ld(e){let t,n;for(let r=0;r<e.length;r++){if(0===e[r].length)return s;e[r].length>1&&(n=void 0===n?r:-1);for(const n of e[r])if(!t||!Id(t,n,!1,!1,!0)){const i=Od(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=Iw(r,Vb(R(i,(e=>e.thisParameter&&F_(e.thisParameter)))))}e=Ed(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&&!jd(e.typeParameters,t.typeParameters)))?void 0:D(i,(t=>Rd(t,e))),!i)break}t=i}return t||s}function jd(e,t){if(l(e)!==l(t))return!1;if(!e||!t)return!0;const n=Qk(t,e);for(let r=0;r<e.length;r++){const i=e[r],o=t[r];if(i!==o&&!NS(ry(i)||Lt,yS(ry(o)||Lt,n)))return!1}return!0}function Rd(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=Qk(t.typeParameters,e.typeParameters));let i=166&(e.flags|t.flags);const o=e.declaration,a=function(e,t,n){const r=ij(e),i=ij(t),o=r>=i?e:t,a=o===e?t:e,s=o===e?r:i,c=aj(e)||aj(t),l=c&&!aj(o),_=new Array(s+(l?1:0));for(let u=0;u<s;u++){let d=tj(o,u);o===t&&(d=yS(d,n));let p=tj(a,u)||Lt;a===t&&(p=yS(p,n));const f=Vb([d,p]),m=c&&!l&&u===s-1,g=u>=oj(o)&&u>=oj(a),h=u>=r?void 0:XL(e,u),y=u>=i?void 0:XL(t,u),v=$o(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?Uv(f):f,_[u]=v}if(l){const e=$o(1,"args",32768);e.links.type=Uv(ej(a,s)),a===t&&(e.links.type=yS(e.links.type,n)),_[s]=e}return _}(e,t,r),s=he(a);s&&32768&ix(s)&&(i|=1);const c=function(e,t,n){return e&&t?Iw(e,Vb([F_(e),yS(F_(t),n)])):e||t}(e.thisParameter,t.thisParameter,r),l=Dd(o,n,c,a,void 0,void 0,Math.max(e.minArgumentCount,t.minArgumentCount),i);return l.compositeKind=1048576,l.compositeSignatures=$(2097152!==e.compositeKind&&e.compositeSignatures||[e],[t]),r?l.mapper=2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures?iS(e.mapper,r):r:2097152!==e.compositeKind&&e.mapper&&e.compositeSignatures&&(l.mapper=e.mapper),l}function Md(e){const t=qm(e[0]);if(t){const n=[];for(const r of t){const t=r.keyType;h(e,(e=>!!Qm(e,t)))&&n.push(Rh(t,jb(D(e,(e=>rg(e,t)))),V(e,(e=>Qm(e,t).isReadonly))))}return n}return s}function Bd(e,t){return e?t?Vb([e,t]):e:t}function Jd(e){const t=T(e,(e=>ym(e,1).length>0)),n=D(e,Y_);if(t>0&&t===T(n,(e=>e))){const e=n.indexOf(!0);n[e]=!1}return n}function zd(e,t,n,r){const i=[];for(let o=0;o<t.length;o++)o===r?i.push(e):n[o]&&i.push(Zg(ym(t[o],1)[0]));return Vb(i)}function Ud(e,t){for(const n of t)e&&!h(e,(e=>!OC(e,n,!1,!1,!1,DS)))||(e=re(e,n));return e}function Vd(e,t,n){if(e)for(let r=0;r<e.length;r++){const i=e[r];if(i.keyType===t.keyType)return e[r]=Rh(i.keyType,n?jb([i.type,t.type]):Vb([i.type,t.type]),n?i.isReadonly||t.isReadonly:i.isReadonly&&t.isReadonly),e}return re(e,t)}function Kd(e){if(e.target){Js(e,O,s,s,s);return void Js(e,zu(Bp(e.target),e.mapper,!1),$k(ym(e.target,0),e.mapper),$k(ym(e.target,1),e.mapper),Hk(qm(e.target),e.mapper))}const t=fs(e.symbol);if(2048&t.flags){Js(e,O,s,s,s);const n=kd(t),r=Rg(n.get("__call")),i=Rg(n.get("__new"));return void Js(e,n,r,i,$h(t))}let n,r,i=_s(t);if(t===Fe){const e=new Map;i.forEach((t=>{var n;418&t.flags||512&t.flags&&(null==(n=t.declarations)?void 0:n.length)&&h(t.declarations,sp)||e.set(t.escapedName,t)})),i=e}if(Js(e,i,s,s,s),32&t.flags){const e=ru(du(t));11272192&e.flags?(i=Ku(function(e){const t=Ms(e),n=Lh(e);return n?$(t,[n]):t}(i)),Qu(i,$p(e))):e===wt&&(r=di)}const o=Lh(i);if(o?n=Hh(o,Ie(i.values())):(r&&(n=re(n,r)),384&t.flags&&(32&Tu(t).flags||V(e.properties,(e=>!!(296&F_(e).flags))))&&(n=re(n,ui))),Js(e,i,s,s,n||s),8208&t.flags&&(e.callSignatures=Rg(t)),32&t.flags){const n=du(t);let r=t.members?Rg(t.members.get("__constructor")):s;16&t.flags&&(r=ae(r.slice(),R(e.callSignatures,(e=>CL(e.declaration)?Dd(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=ym(ru(e),1),n=gx(e.symbol),r=!!n&&Dv(n,64);if(0===t.length)return[Dd(void 0,e.localTypeParameters,void 0,s,e,void 0,0,r?4:0)];const i=eu(e),o=Em(i),a=qy(i),c=l(a),_=[];for(const n of t){const t=Cg(n.typeParameters),i=l(n.typeParameters);if(o||c>=t&&c<=i){const s=i?Ch(n,Eg(a,n.typeParameters,t,o)):Fd(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 Xd(e,t,n){return yS(e,Qk([t.indexType,t.objectType],[wk(0),ob([n])]))}function Yd(e){const t=Qm(e.source,Vt),n=xp(e.mappedType),r=!(1&n),i=4&n?0:16777216,o=t?[Rh(Vt,cN(t.type,e.mappedType,e.constraintType)||Lt,r&&t.isReadonly)]:s,a=Ku(),c=function(e){const t=lp(e.mappedType);if(!(1048576&t.flags||2097152&t.flags))return;const n=1048576&t.flags?t.origin:t;if(!(n&&2097152&n.flags))return;const r=Vb(n.types.filter((t=>t!==e.constraintType)));return r!==un?r:void 0}(e);for(const t of $p(e.source)){if(c){if(!IS(Zb(t,8576),c))continue}const n=8192|(r&&Jj(t)?8:0),o=$o(4|t.flags&i,t.escapedName,n);if(o.declarations=t.declarations,o.links.nameType=aa(t).nameType,o.links.propertyType=F_(t),8388608&e.constraintType.type.flags&&262144&e.constraintType.type.objectType.flags&&262144&e.constraintType.type.indexType.flags){const t=e.constraintType.type.objectType,n=Xd(e.mappedType,e.constraintType.type,t);o.links.mappedType=n,o.links.constraintType=rx(t)}else o.links.mappedType=e.mappedType,o.links.constraintType=e.constraintType;a.set(t.escapedName,o)}Js(e,a,s,s,o)}function Zd(e){if(4194304&e.flags){const t=Tf(e.type);return _w(t)?Sb(t):rx(t)}if(16777216&e.flags){if(e.root.isDistributive){const t=e.checkType,n=Zd(t);if(n!==t)return hS(e,oS(e.root.checkType,n,e.mapper),!1)}return e}if(1048576&e.flags)return JF(e,Zd,!0);if(2097152&e.flags){const t=e.types;return 2===t.length&&76&t[0].flags&&t[1]===Pn?e:Vb(E(e.types,Zd))}return e}function tp(e){return 4096&ix(e)}function np(e,t,n,r){for(const n of $p(e))r(Zb(n,t));if(1&e.flags)r(Vt);else for(const t of qm(e))(!n||134217732&t.keyType.flags)&&r(t.keyType)}function rp(e){const t=Ku();let n;Js(e,O,s,s,s);const r=ip(e),i=lp(e),o=e.target||e,a=fp(o),c=2!==Np(o),l=hp(o),_=Tf(bp(e)),u=xp(e);function d(i){NF(a?yS(a,aS(e.mapper,r,i)):i,(o=>function(i,o){if(cC(o)){const n=lC(o),r=t.get(n);if(r)r.links.nameType=jb([r.links.nameType,o]),r.links.keyType=jb([r.links.keyType,i]);else{const r=cC(i)?fm(_,lC(i)):void 0,a=!!(4&u||!(8&u)&&r&&16777216&r.flags),s=!!(1&u||!(2&u)&&r&&Jj(r)),l=G&&!a&&r&&16777216&r.flags,d=$o(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(Gh(o)||33&o.flags){const t=5&o.flags?Vt:40&o.flags?Wt:o,a=yS(l,aS(e.mapper,r,i)),s=og(_,o),c=Rh(t,a,!!(1&u||!(2&u)&&(null==s?void 0:s.isReadonly)));n=Vd(n,c,!0)}}(i,o)))}vp(e)?np(_,8576,!1,d):NF(Zd(i),d),Js(e,t,s,s,n||s)}function ip(e){return e.typeParameter||(e.typeParameter=ku(hs(e.declaration.typeParameter)))}function lp(e){return e.constraintType||(e.constraintType=rf(ip(e))||Et)}function fp(e){return e.declaration.nameType?e.nameType||(e.nameType=yS(Bk(e.declaration.nameType),e.mapper)):void 0}function hp(e){return e.templateType||(e.templateType=e.declaration.type?yS(Tl(Bk(e.declaration.type),!0,!!(4&xp(e))),e.mapper):Et)}function yp(e){return ul(e.declaration.typeParameter)}function vp(e){const t=yp(e);return 198===t.kind&&143===t.operator}function bp(e){if(!e.modifiersType)if(vp(e))e.modifiersType=yS(Bk(yp(e).type),e.mapper);else{const t=lp(qx(e.declaration)),n=t&&262144&t.flags?rf(t):t;e.modifiersType=n&&4194304&n.flags?yS(n.type,e.mapper):Lt}return e.modifiersType}function xp(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 kp(e){const t=xp(e);return 8&t?-1:4&t?1:0}function Sp(e){if(32&hx(e))return kp(e)||Sp(bp(e));if(2097152&e.flags){const t=Sp(e.types[0]);return h(e.types,((e,n)=>0===n||Sp(e)===t))?t:0}return 0}function Tp(e){if(32&hx(e)){const t=lp(e);if(Px(t))return!0;const n=fp(e);if(n&&Px(yS(n,Zk(ip(e),t))))return!0}return!1}function Np(e){const t=fp(e);return t?IS(t,ip(e))?1:2:0}function Op(e){return e.members||(524288&e.flags?4&e.objectFlags?function(e){const t=Zu(e.target),n=$(t.typeParameters,[t.thisType]),r=fy(e);Cd(e,t,n,r.length===n.length?r:$(r,[e]))}(e):3&e.objectFlags?function(e){Cd(e,Zu(e),s,s)}(e):1024&e.objectFlags?Yd(e):16&e.objectFlags?Kd(e):32&e.objectFlags?rp(e):_n.fail("Unhandled object type "+_n.formatObjectFlags(e.objectFlags)):1048576&e.flags?function(e){const t=Ld(D(e.types,(e=>e===Xn?[ci]:ym(e,0)))),n=Ld(D(e.types,(e=>ym(e,1)))),r=Md(e.types);Js(e,O,t,n,r)}(e):2097152&e.flags?function(e){let t,n,r;const i=e.types,o=Jd(i),a=T(o,(e=>e));for(let s=0;s<i.length;s++){const c=e.types[s];if(!o[s]){let e=ym(c,1);e.length&&a>0&&(e=D(e,(e=>{const t=Fd(e);return t.resolvedReturnType=zd(Zg(e),i,o,s),t}))),n=Ud(n,e)}t=Ud(t,ym(c,0)),r=Ce(qm(c),((e,t)=>Vd(e,t,!1)),r)}Js(e,O,t||s,n||s,r||s)}(e):_n.fail("Unhandled type "+_n.formatTypeFlags(e.flags))),e}function Bp(e){return 524288&e.flags?Op(e).properties:s}function qp(e,t){if(524288&e.flags){const n=Op(e).members.get(t);if(n&&Ns(n))return n}}function Up(e){if(!e.resolvedProperties){const t=Ku();for(const n of e.types){for(const r of $p(n))if(!t.has(r.escapedName)){const n=Uf(e,r.escapedName,!!(2097152&e.flags));n&&t.set(r.escapedName,n)}if(1048576&e.flags&&0===qm(n).length)break}e.resolvedProperties=Ms(t)}return e.resolvedProperties}function $p(e){return 3145728&(e=wf(e)).flags?Up(e):Bp(e)}function nf(e){return 262144&e.flags?rf(e):8388608&e.flags?function(e){return gf(e)?function(e){if(Sf(e))return jx(e.objectType,e.indexType);const t=af(e.indexType);if(t&&t!==e.indexType){const n=Jx(e.objectType,t,e.accessFlags);if(n)return n}const n=af(e.objectType);if(n&&n!==e.objectType)return Jx(n,e.indexType,e.accessFlags);return}(e):void 0}(e):16777216&e.flags?pf(e):ff(e)}function rf(e){return gf(e)?ry(e):void 0}function of(e,t=0){var n;return t<5&&!(!e||!(262144&e.flags&&V(null==(n=e.symbol)?void 0:n.declarations,(e=>Dv(e,4096)))||3145728&e.flags&&V(e.types,(e=>of(e,t)))||8388608&e.flags&&of(e.objectType,t+1)||16777216&e.flags&&of(pf(e),t+1)||33554432&e.flags&&of(e.baseType,t)||32&hx(e)&&function(e,t){const n=pS(e);return!!n&&of(n,t)}(e,t)||_w(e)&&b(wb(e),((n,r)=>!!(8&e.target.elementFlags[r])&&of(n,t)))>=0))}function af(e){const t=Ix(e,!1);return t!==e?t:nf(e)}function sf(e){if(!e.resolvedDefaultConstraint){const t=function(e){return e.resolvedInferredTrueType||(e.resolvedInferredTrueType=e.combinedMapper?yS(Bk(e.root.node.trueType),e.combinedMapper):Kx(e))}(e),n=Gx(e);e.resolvedDefaultConstraint=Hc(t)?n:Hc(n)?t:jb([t,n])}return e.resolvedDefaultConstraint}function _f(e){if(void 0!==e.resolvedConstraintOfDistributive)return e.resolvedConstraintOfDistributive||void 0;if(e.root.isDistributive&&e.restrictiveInstantiation!==e){const t=Ix(e.checkType,!1),n=t===e.checkType?nf(t):t;if(n&&n!==e.checkType){const t=hS(e,oS(e.root.checkType,n,e.mapper),!0);if(!(131072&t.flags))return e.resolvedConstraintOfDistributive=t,t}}e.resolvedConstraintOfDistributive=!1}function df(e){return _f(e)||sf(e)}function pf(e){return gf(e)?df(e):void 0}function ff(e){if(464781312&e.flags||_w(e)){const t=hf(e);return t!==jn&&t!==Rn?t:void 0}return 4194304&e.flags?hn:void 0}function mf(e){return ff(e)||e}function gf(e){return hf(e)!==Rn}function hf(e){if(e.resolvedBaseConstraint)return e.resolvedBaseConstraint;const t=[];return e.resolvedBaseConstraint=n(e);function n(e){if(!e.immediateBaseConstraint){if(!Jc(e,4))return Rn;let n;const o=AC(e);if((t.length<10||t.length<50&&!k(t,o))&&(t.push(o),n=function(e){if(262144&e.flags){const t=ry(e);return e.isThisType||!t?t:i(t)}if(3145728&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?1048576&e.flags&&n.length===t.length?jb(n):2097152&e.flags&&n.length?Vb(n):void 0:e}if(4194304&e.flags)return hn;if(134217728&e.flags){const t=e.types,n=R(t,i);return n.length===t.length?_x(e.texts,n):Vt}if(268435456&e.flags){const t=i(e.type);return t&&t!==e.type?dx(e.symbol,t):Vt}if(8388608&e.flags){if(Sf(e))return i(jx(e.objectType,e.indexType));const t=i(e.objectType),n=i(e.indexType),r=t&&n&&Jx(t,n,e.accessFlags);return r&&i(r)}if(16777216&e.flags){const t=df(e);return t&&i(t)}if(33554432&e.flags)return i(Ay(e));if(_w(e)){return ob(D(wb(e),((t,n)=>{const r=262144&t.flags&&8&e.target.elementFlags[n]&&i(t)||t;return r!==t&&IF(r,(e=>BC(e)&&!_w(e)))?r:t})),e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}return e}(Ix(e,!1)),t.pop()),!Uc()){if(262144&e.flags){const t=ty(e);if(t){const n=Ro(t,_a.Type_parameter_0_has_a_circular_constraint,lc(e));!r||ch(t,r)||ch(r,t)||sT(n,Rp(r,_a.Circularity_originates_in_type_at_this_location))}}n=Rn}e.immediateBaseConstraint??(e.immediateBaseConstraint=n||jn)}return e.immediateBaseConstraint}function i(e){const t=n(e);return t!==jn&&t!==Rn?t:void 0}}function yf(e){if(e.default)e.default===Mn&&(e.default=Rn);else if(e.target){const t=yf(e.target);e.default=t?yS(t,e.mapper):jn}else{e.default=Mn;const t=e.symbol&&_(e.symbol.declarations,(e=>sD(e)&&e.default)),n=t?Bk(t):jn;e.default===Mn&&(e.default=n)}return e.default}function vf(e){const t=yf(e);return t!==jn&&t!==Rn?t:void 0}function bf(e){return!(!e.symbol||!_(e.symbol.declarations,(e=>sD(e)&&e.default)))}function xf(e){return e.resolvedApparentType||(e.resolvedApparentType=function(e){const t=e.target??e,n=pS(t);if(n&&!t.declaration.nameType){const r=bp(e),i=Tp(r)?xf(r):ff(r);if(i&&IF(i,(e=>BC(e)||kf(e))))return yS(t,oS(n,i,e.mapper))}return e}(e))}function kf(e){return!!(2097152&e.flags)&&h(e.types,BC)}function Sf(e){let t;return!(!(8388608&e.flags&&32&hx(t=e.objectType)&&!Tp(t)&&Px(e.indexType))||8&xp(t)||t.declaration.nameType)}function Tf(e){const t=465829888&e.flags?ff(e)||Lt:e,n=hx(t);return 32&n?xf(t):4&n&&t!==e?Td(t,e):2097152&t.flags?function(e,t){if(e===t)return e.resolvedApparentType||(e.resolvedApparentType=Td(e,t,!0));const n=`I${Nb(e)},${Nb(t)}`;return Eo(n)??Po(n,Td(e,t,!0))}(t,e):402653316&t.flags?rr:296&t.flags?ir:2112&t.flags?Vr||(Vr=Gy("BigInt",0,!1))||Nn:528&t.flags?or:12288&t.flags?rv():67108864&t.flags?Nn:4194304&t.flags?hn:2&t.flags&&!G?Nn:t}function wf(e){return Vf(Tf(Vf(e)))}function Rf(e,t,n){var r,i,o;let a,s,c;const _=1048576&e.flags;let u,d=4,p=_?0:8,f=!1;for(const r of e.types){const e=Tf(r);if(!(Gc(e)||131072&e.flags)){const r=fm(e,t,n),i=r?ox(r):0;if(r){if(106500&r.flags&&(u??(u=_?0:16777216),_?u|=16777216&r.flags:u&=r.flags),a){if(r!==a){if((CJ(r)||r)===(CJ(a)||a)&&-1===IC(a,r,((e,t)=>e===t?-1:0)))f=!!a.parent&&!!l(H_(a.parent));else{s||(s=new Map,s.set(HB(a),a));const e=HB(r);s.has(e)||s.set(e,r)}}}else a=r;_&&Jj(r)?p|=8:_||Jj(r)||(p&=-9),p|=(6&i?0:256)|(4&i?512:0)|(2&i?1024:0)|(256&i?2048:0),JI(r)||(d=2)}else if(_){const n=!sd(t)&&cg(e,t);n?(p|=32|(n.isReadonly?8:0),c=re(c,lw(e)?dw(e)||jt:n.type)):!TN(e)||2097152&hx(e)?p|=16:(p|=32,c=re(c,jt))}}}if(!a||_&&(s||48&p)&&1536&p&&(!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&p||c)){if(f){const t=null==(r=et(a,Gu))?void 0:r.links,n=Iw(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=D_(a),n}return a}const m=s?Ie(s.values()):[a];let g,h,y;const v=[];let b,x,S=!1;for(const e of m){x?e.valueDeclaration&&e.valueDeclaration!==x&&(S=!0):x=e.valueDeclaration,g=ae(g,e.declarations);const t=F_(e);h||(h=t,y=aa(e).nameType);const n=D_(e);(b||n!==t)&&(b=re(b||v.slice(),n)),t!==h&&(p|=64),(ew(t)||wx(t))&&(p|=128),131072&t.flags&&t!==Sn&&(p|=131072),v.push(t)}ae(v,c);const T=$o(4|(u??0),t,d|p);return T.links.containingType=e,!S&&x&&(T.valueDeclaration=x,x.symbol.parent&&(T.parent=x.symbol.parent)),T.declarations=g,T.links.nameType=y,v.length>2?(T.links.checkFlags|=65536,T.links.deferralParent=e,T.links.deferralConstituents=v,T.links.deferralWriteConstituents=b):(T.links.type=_?jb(v):Vb(v),b&&(T.links.writeType=_?jb(b):Vb(b))),T}function Mf(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=Rf(e,t,n),a)){if((n?e.propertyCacheWithoutObjectFunctionPropertyAugment||(e.propertyCacheWithoutObjectFunctionPropertyAugment=Ku()):e.propertyCache||(e.propertyCache=Ku())).set(t,a),n&&!(48&ix(a))&&!(null==(o=e.propertyCache)?void 0:o.get(t))){(e.propertyCache||(e.propertyCache=Ku())).set(t,a)}}return a}function Uf(e,t,n){const r=Mf(e,t,n);return!r||16&ix(r)?void 0:r}function Vf(e){return 1048576&e.flags&&16777216&e.objectFlags?e.resolvedReducedType||(e.resolvedReducedType=function(e){const t=E(e.types,Vf);if(t===e.types)return e;const n=jb(t);1048576&n.flags&&(n.resolvedReducedType=n);return n}(e)):2097152&e.flags?(16777216&e.objectFlags||(e.objectFlags|=16777216|(V(Up(e),Wf)?33554432:0)),33554432&e.objectFlags?un:e):e}function Wf(e){return $f(e)||Hf(e)}function $f(e){return!(16777216&e.flags||192!=(131264&ix(e))||!(131072&F_(e).flags))}function Hf(e){return!e.valueDeclaration&&!!(1024&ix(e))}function Gf(e){return!!(1048576&e.flags&&16777216&e.objectFlags&&V(e.types,Gf)||2097152&e.flags&&function(e){const t=e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=yS(e,Tn));return Vf(t)!==t}(e))}function pm(e,t){if(2097152&t.flags&&33554432&hx(t)){const n=y(Up(t),$f);if(n)return ek(e,_a.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,lc(t,void 0,536870912),sc(n));const r=y(Up(t),Hf);if(r)return ek(e,_a.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,lc(t,void 0,536870912),sc(r))}return e}function fm(e,t,n,r){var i,o;if(524288&(e=wf(e)).flags){const a=Op(e),s=a.members.get(t);if(s&&!r&&512&(null==(i=e.symbol)?void 0:i.flags)&&(null==(o=aa(e.symbol).typeOnlyExportStarMap)?void 0:o.has(t)))return;if(s&&Ns(s,r))return s;if(n)return;const c=a===Ln?Xn:a.callSignatures.length?Qn:a.constructSignatures.length?Yn:void 0;if(c){const e=qp(c,t);if(e)return e}return qp(Gn,t)}if(2097152&e.flags){const r=Uf(e,t,!0);return r||(n?void 0:Uf(e,t,n))}if(1048576&e.flags)return Uf(e,t,n)}function mm(e,t){if(3670016&e.flags){const n=Op(e);return 0===t?n.callSignatures:n.constructSignatures}return s}function ym(e,t){const n=mm(wf(e),t);if(0===t&&!l(n)&&1048576&e.flags){if(e.arrayFallbackSignatures)return e.arrayFallbackSignatures;let r;if(IF(e,(e=>{var t;return!!(null==(t=e.symbol)?void 0:t.parent)&&function(e){if(!e||!Zn.symbol||!nr.symbol)return!1;return!!Ts(e,Zn.symbol)||!!Ts(e,nr.symbol)}(e.symbol.parent)&&(r?r===e.symbol.escapedName:(r=e.symbol.escapedName,!0))}))){const n=Uv(JF(e,(e=>Yk((Dm(e.symbol.parent)?nr:Zn).typeParameters[0],e.mapper))),EF(e,(e=>Dm(e.symbol.parent))));return e.arrayFallbackSignatures=ym(Wc(n,r),t)}e.arrayFallbackSignatures=n}return n}function Dm(e){return!(!e||!nr.symbol)&&!!Ts(e,nr.symbol)}function Am(e,t){return y(e,(e=>e.keyType===t))}function jm(e,t){let n,r,i;for(const o of e)o.keyType===Vt?n=o:Bm(t,o.keyType)&&(r?(i||(i=[r])).push(o):r=o);return i?Rh(Lt,Vb(D(i,(e=>e.type))),Ce(i,((e,t)=>e&&t.isReadonly),!0)):r||(n&&Bm(t,Vt)?n:void 0)}function Bm(e,t){return IS(e,t)||t===Vt&&IS(e,Wt)||t===Wt&&(e===bn||!!(128&e.flags)&&zT(e.value))}function Jm(e){if(3670016&e.flags){return Op(e).indexInfos}return s}function qm(e){return Jm(wf(e))}function Qm(e,t){return Am(qm(e),t)}function rg(e,t){var n;return null==(n=Qm(e,t))?void 0:n.type}function ig(e,t){return qm(e).filter((e=>Bm(t,e.keyType)))}function og(e,t){return jm(qm(e),t)}function cg(e,t){return og(e,sd(t)?cn:kk(mc(t)))}function lg(e){var t;let n;for(const t of _l(e))n=ce(n,ku(t.symbol));return(null==n?void 0:n.length)?n:GF(e)?null==(t=Ig(e))?void 0:t.typeParameters:void 0}function fg(e){const t=[];return e.forEach(((e,n)=>{Rs(n)||t.push(e)})),t}function gg(e,t){if(Cs(e))return;const n=ca(Ne,'"'+e+'"',512);return n&&t?fs(n):n}function vg(e){return wg(e)||HT(e)||cD(e)&&XT(e)}function bg(e){if(vg(e))return!0;if(!cD(e))return!1;if(e.initializer){const t=Pg(e.parent),n=e.parent.parameters.indexOf(e);return _n.assert(n>=0),n>=oj(t,3)}const t=om(e.parent);return!!t&&(!e.type&&!e.dotDotDotToken&&e.parent.parameters.indexOf(e)>=nL(t).length)}function Tg(e,t,n,r){return{kind:e,parameterName:t,parameterIndex:n,type:r}}function Cg(e){let t=0;if(e)for(let n=0;n<e.length;n++)bf(e[n])||(t=n+1);return t}function Eg(e,t,n,r){const i=l(t);if(!i)return[];const o=l(e);if(r||o>=n&&o<=i){const n=e?e.slice():[];for(let e=o;e<i;e++)n[e]=Et;const a=PN(r);for(let e=o;e<i;e++){let i=vf(t[e]);r&&i&&(NS(i,Lt)||NS(i,Nn))&&(i=wt),n[e]=i?yS(i,Qk(t,n)):a}return n.length=t.length,n}return e&&e.slice()}function Pg(e){const t=sa(e);if(!t.resolvedSignature){const n=[];let r,i=0,o=0,a=Em(e)?Qc(e):void 0,s=!1;const c=om(e),l=Ng(e);!c&&Em(e)&&eh(e)&&!Lc(e)&&!nl(e)&&(i|=32);for(let t=l?1:0;t<e.parameters.length;t++){const l=e.parameters[t];if(Em(l)&&CP(l)){a=l;continue}let _=l.symbol;const u=SP(l)?l.typeExpression&&l.typeExpression.type:l.type;if(_&&4&_.flags&&!k_(l.name)){_=Ue(l,_.escapedName,111551,void 0,!1)}0===t&&"this"===_.escapedName?(s=!0,r=l.symbol):n.push(_),u&&201===u.kind&&(i|=2);vg(l)||cD(l)&&l.initializer||Bu(l)||c&&n.length>c.arguments.length&&!u||(o=n.length)}if((177===e.kind||178===e.kind)&&_d(e)&&(!s||!r)){const t=177===e.kind?178:177,n=$u(hs(e),t);n&&(r=function(e){const t=Sq(e);return t&&t.symbol}(n))}a&&a.typeExpression&&(r=Iw($o(1,"this"),Bk(a.typeExpression)));const _=lP(e)?Ug(e):e,u=_&&mD(_)?du(fs(_.parent.symbol)):void 0,p=u?u.localTypeParameters:lg(e);(Mu(e)||Em(e)&&function(e,t){if(lP(e)||!jg(e))return!1;const n=he(e.parameters),r=n?Ec(n):ol(e).filter(SP),i=d(r,(e=>e.typeExpression&&oP(e.typeExpression.type)?e.typeExpression.type:void 0)),o=$o(3,"args",32768);i?o.links.type=Uv(Bk(i.type)):(o.links.checkFlags|=65536,o.links.deferralParent=un,o.links.deferralConstituents=[cr],o.links.deferralWriteConstituents=[cr]);i&&t.pop();return t.push(o),!0}(e,n))&&(i|=1),(TD(e)&&Dv(e,64)||mD(e)&&Dv(e.parent,64))&&(i|=4),t.resolvedSignature=Dd(e,p,r,n,void 0,void 0,o,i)}return t.resolvedSignature}function Ig(e){if(!Em(e)||!o_(e))return;const t=tl(e);return(null==t?void 0:t.typeExpression)&&qO(Bk(t.typeExpression))}function jg(e){const t=sa(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===Le.escapedName&&Yz(t)===Le;case 172:case 174:case 177:case 178:return 167===t.name.kind&&e(t.name);case 211:case 212:return e(t.expression);case 303:return e(t.initializer);default:return!Zh(t)&&!Cf(t)&&!!RI(t,e)}}(e.body)),t.containsArgumentsReference}function Rg(e){if(!e||!e.declarations)return s;const t=[];for(let n=0;n<e.declarations.length;n++){const r=e.declarations[n];if(r_(r)){if(n>0&&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=zg(r);if(l(e)){for(const n of e){const e=n.typeExpression;void 0!==e.type||mD(r)||$w(e,wt),t.push(Pg(e))}continue}}t.push(!BT(r)&&!Bf(r)&&Ig(r)||Pg(r))}}return t}function Mg(e){const t=Za(e,e);if(t){const e=rs(t);if(e)return F_(e)}return wt}function Hg(e){if(e.thisParameter)return F_(e.thisParameter)}function Kg(e){if(!e.resolvedTypePredicate){if(e.target){const t=Kg(e.target);e.resolvedTypePredicate=t?cS(t,e.mapper):ai}else if(e.compositeSignatures)e.resolvedTypePredicate=function(e,t){let n;const r=[];for(const i of e){const e=Kg(i);if(e){if(0!==e.kind&&1!==e.kind||n&&!Mb(n,e))return;n=e,r.push(e.type)}else{const e=2097152!==t?Zg(i):void 0;if(e!==Xt&&e!==Qt)return}}if(!n)return;const i=Gg(r,t);return Tg(n.kind,n.parameterName,n.parameterIndex,i)}(e.compositeSignatures,e.compositeKind)||ai;else{const t=e.declaration&&gv(e.declaration);let n;if(!t){const t=Ig(e.declaration);t&&e!==t&&(n=Kg(t))}if(t||n)e.resolvedTypePredicate=t&&xD(t)?function(e,t){const n=e.parameterName,r=e.type&&Bk(e.type);return 197===n.kind?Tg(e.assertsModifier?2:0,void 0,void 0,r):Tg(e.assertsModifier?3:1,n.escapedText,b(t.parameters,(e=>e.escapedName===n.escapedText)),r)}(t,e):n||ai;else if(e.declaration&&o_(e.declaration)&&(!e.resolvedReturnType||16&e.resolvedReturnType.flags)&&ij(e)>0){const{declaration:t}=e;e.resolvedTypePredicate=ai,e.resolvedTypePredicate=function(e){switch(e.kind){case 176:case 177:case 178:return}if(0!==Oh(e))return;let t;if(e.body&&241!==e.body.kind)t=e.body;else{if(Nf(e.body,(e=>{if(t||!e.expression)return!0;t=e.expression}))||!t||Oj(e))return}return function(e,t){t=ah(t,!0);return 16&uR(t).flags?_(e.parameters,((n,r)=>{const i=F_(n.symbol);if(!i||16&i.flags||!VN(n.name)||QE(n.symbol)||Bu(n))return;const o=function(e,t,n,r){const i=Og(t)&&t.flowNode||253===t.parent.kind&&t.parent.flowNode||JM(2,void 0,void 0),o=JM(32,t,i),a=$E(n.name,r,r,e,o);if(a===r)return;const s=JM(64,t,i),c=$E(n.name,r,a,e,s);return 131072&c.flags?a:void 0}(e,t,n,i);return o?Tg(1,mc(n.name.escapedText),r,o):void 0})):void 0}(e,t)}(t)||ai}else e.resolvedTypePredicate=ai}_n.assert(!!e.resolvedTypePredicate)}return e.resolvedTypePredicate===ai?void 0:e.resolvedTypePredicate}function Gg(e,t,n){return 2097152!==t?jb(e,n):Vb(e)}function Zg(e){if(!e.resolvedReturnType){if(!Jc(e,3))return Et;let t=e.target?yS(Zg(e.target),e.mapper):e.compositeSignatures?yS(Gg(D(e.compositeSignatures,Zg),e.compositeKind,2),e.mapper):th(e.declaration)||(wd(e.declaration.body)?wt:Fj(e.declaration));if(8&e.flags?t=Cw(t):16&e.flags&&(t=Sw(t)),!Uc()){if(e.declaration){const t=gv(e.declaration);if(t)Ro(t,_a.Return_type_annotation_circularly_references_itself);else if(ie){const t=e.declaration,n=Cc(t);n?Ro(n,_a._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,Pp(n)):Ro(t,_a.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=wt}e.resolvedReturnType??(e.resolvedReturnType=t)}return e.resolvedReturnType}function th(e){if(176===e.kind)return du(fs(e.parent.symbol));const t=gv(e);if(lP(e)){const n=Wg(e);if(n&&mD(n.parent)&&!t)return du(fs(n.parent.parent.symbol))}if(Ng(e))return Bk(e.parameters[0].type);if(t)return Bk(t);if(177===e.kind&&_d(e)){const t=Em(e)&&xl(e);if(t)return t;const n=m_($u(hs(e),178));if(n)return n}return function(e){const t=Ig(e);return t&&Zg(t)}(e)}function _h(e){return e.compositeSignatures&&V(e.compositeSignatures,_h)||!e.resolvedReturnType&&zc(e,3)>=0}function dh(e){if(ZB(e)){const t=F_(e.parameters[e.parameters.length-1]),n=lw(t)?dw(t):t;return n&&rg(n,Wt)}}function xh(e,t,n,r){const i=Sh(e,Eg(t,e.typeParameters,Cg(e.typeParameters),n));if(r){const e=UO(Zg(i));if(e){const t=Fd(e);t.typeParameters=r;const n=Fd(i);return n.resolvedReturnType=Ah(t),n}}return i}function Sh(e,t){const n=e.instantiations||(e.instantiations=new Map),r=oy(t);let i=n.get(r);return i||n.set(r,i=Ch(e,t)),i}function Ch(e,t){return lS(e,function(e,t){return Qk(wh(e),t)}(e,t),!0)}function wh(e){return E(e.typeParameters,(e=>e.mapper?yS(e,e.mapper):e))}function Nh(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return lS(e,rS(e.typeParameters),!0)}(e)):e}function Dh(e){return e.typeParameters?e.canonicalSignatureCache||(e.canonicalSignatureCache=function(e){return xh(e,D(e.typeParameters,(e=>e.target&&!rf(e.target)?e.target:e)),Em(e.declaration))}(e)):e}function Fh(e){return e.typeParameters?e.implementationSignatureCache||(e.implementationSignatureCache=function(e){return e.typeParameters?lS(e,Qk([],[])):e}(e)):e}function Ph(e){const t=e.typeParameters;if(t){if(e.baseSignatureCache)return e.baseSignatureCache;const n=rS(t),r=Qk(t,D(t,(e=>rf(e)||Lt)));let i=D(t,(e=>yS(e,r)||Lt));for(let e=0;e<t.length-1;e++)i=Wk(i,r);return i=Wk(i,n),e.baseSignatureCache=lS(e,Qk(t,i),!0)}return e}function Ah(e,t){var n;if(!e.isolatedSignatureType){const r=null==(n=e.declaration)?void 0:n.kind,i=void 0===r||176===r||180===r||185===r,o=Ls(134217744,$o(16,"__function"));e.declaration&&!ey(e.declaration)&&(o.symbol.declarations=[e.declaration],o.symbol.valueDeclaration=e.declaration),t||(t=e.declaration&&q_(e.declaration,!0)),o.outerTypeParameters=t,o.members=O,o.properties=s,o.callSignatures=i?s:[e],o.constructSignatures=i?[e]:s,o.indexInfos=s,e.isolatedSignatureType=o}return e.isolatedSignatureType}function Ih(e){return e.members?Lh(kd(e)):void 0}function Lh(e){return e.get("__index")}function Rh(e,t,n,r){return{keyType:e,type:t,isReadonly:n,declaration:r}}function $h(e){const t=Ih(e);return t?Hh(t,Ie(kd(e).values())):s}function Hh(e,t=(e.parent?Ie(kd(e.parent).values()):void 0)){if(e.declarations){const n=[];let r=!1,i=!0,o=!1,a=!0,s=!1,c=!0;const l=[];for(const t of e.declarations)if(bD(t)){if(1===t.parameters.length){const e=t.parameters[0];e.type&&NF(Bk(e.type),(e=>{Gh(e)&&!Am(n,e)&&n.push(Rh(e,t.type?Bk(t.type):wt,Nv(t,8),t))}))}}else if(ld(t)){const e=uF(t)?t.left:t.name,_=QD(e)?uR(e.argumentExpression):nI(e);if(Am(n,_))continue;IS(_,hn)&&(IS(_,Wt)?(r=!0,Lv(t)||(i=!1)):IS(_,cn)?(o=!0,Lv(t)||(a=!1)):(s=!0,Lv(t)||(c=!1)),l.push(t.symbol))}const _=$(l,C(t,(t=>t!==e)));return s&&!Am(n,Vt)&&n.push(oI(c,0,_,Vt)),r&&!Am(n,Wt)&&n.push(oI(i,0,_,Wt)),o&&!Am(n,cn)&&n.push(oI(a,0,_,cn)),n}return s}function Gh(e){return!!(4108&e.flags)||wx(e)||!!(2097152&e.flags)&&!Fx(e)&&V(e.types,Gh)}function ty(e){return R(C(e.symbol&&e.symbol.declarations,sD),ul)[0]}function ny(e,t){var n;let r;if(null==(n=e.symbol)?void 0:n.declarations)for(const n of e.symbol.declarations)if(195===n.parent.kind){const[i=n.parent,o]=ih(n.parent.parent);if(183!==o.kind||t){if(169===o.kind&&o.dotDotDotToken||191===o.kind||202===o.kind&&o.dotDotDotToken)r=re(r,Uv(Lt));else if(204===o.kind)r=re(r,Vt);else if(168===o.kind&&200===o.parent.kind)r=re(r,hn);else if(200===o.kind&&o.type&&ah(o.type)===n.parent&&194===o.parent.kind&&o.parent.extendsType===o&&200===o.parent.checkType.kind&&o.parent.checkType.type){const e=o.parent.checkType;r=re(r,yS(Bk(e.type),Zk(ku(hs(e.typeParameter)),e.typeParameter.constraint?Bk(e.typeParameter.constraint):hn)))}}else{const t=o,n=GR(t);if(n){const o=t.typeArguments.indexOf(i);if(o<n.length){const i=rf(n[o]);if(i){const o=yS(i,tS(n,n.map(((e,r)=>()=>$R(t,n,r)))));o!==e&&(r=re(r,o))}}}}}return r&&Vb(r)}function ry(e){if(!e.constraint)if(e.target){const t=rf(e.target);e.constraint=t?yS(t,e.mapper):jn}else{const t=ty(e);if(t){let n=Bk(t);1&n.flags&&!Gc(n)&&(n=200===t.parent.parent.kind?hn:Lt),e.constraint=n}else e.constraint=ny(e)||jn}return e.constraint===jn?void 0:e.constraint}function iy(e){const t=$u(e.symbol,168),n=NP(t.parent)?Jg(t.parent):t.parent;return n&&ys(n)}function oy(e){let t="";if(e){const n=e.length;let r=0;for(;r<n;){const i=e[r].id;let o=1;for(;r+o<n&&e[r+o].id===i+o;)o++;t.length&&(t+=","),t+=i,o>1&&(t+=":"+o),r+=o}}return t}function ay(e,t){return e?`@${HB(e)}`+(t?`:${oy(t)}`:""):""}function sy(e,t){let n=0;for(const r of e)void 0!==t&&r.flags&t||(n|=hx(r));return 458752&n}function cy(e,t){return V(t)&&e===On?Lt:uy(e,t)}function uy(e,t){const n=oy(t);let r=e.instantiations.get(n);return r||(r=Ls(4,e.symbol),e.instantiations.set(n,r),r.objectFlags|=t?sy(t):0,r.target=e,r.resolvedTypeArguments=t),r}function dy(e){const t=Es(e.flags,e.symbol);return t.objectFlags=e.objectFlags,t.target=e.target,t.resolvedTypeArguments=e.resolvedTypeArguments,t}function py(e,t,n,r,i){if(!r){const e=ck(r=sk(t));i=n?Wk(e,n):e}const o=Ls(4,e.symbol);return o.target=e,o.node=t,o.mapper=n,o.aliasSymbol=r,o.aliasTypeArguments=i,o}function fy(e){var t,n;if(!e.resolvedTypeArguments){if(!Jc(e,5))return $(e.target.outerTypeParameters,null==(t=e.target.localTypeParameters)?void 0:t.map((()=>Et)))||s;const i=e.node,o=i?183===i.kind?$(e.target.outerTypeParameters,HR(i,e.target.localTypeParameters)):188===i.kind?[Bk(i.elementType)]:D(i.elements,Bk):s;Uc()?e.resolvedTypeArguments??(e.resolvedTypeArguments=e.mapper?Wk(o,e.mapper):o):(e.resolvedTypeArguments??(e.resolvedTypeArguments=$(e.target.outerTypeParameters,(null==(n=e.target.localTypeParameters)?void 0:n.map((()=>Et)))||s)),Ro(e.node||r,e.target.symbol?_a.Type_arguments_for_0_circularly_reference_themselves:_a.Tuple_type_arguments_circularly_reference_themselves,e.target.symbol&&sc(e.target.symbol)))}return e.resolvedTypeArguments}function my(e){return l(e.target.typeParameters)}function gy(e,t){const n=Tu(fs(t)),r=n.localTypeParameters;if(r){const t=l(e.typeArguments),i=Cg(r),o=Em(e);if(!(!ie&&o)&&(t<i||t>r.length)){const t=o&&yF(e)&&!_P(e.parent);if(Ro(e,i===r.length?t?_a.Expected_0_type_arguments_provide_these_with_an_extends_tag:_a.Generic_type_0_requires_1_type_argument_s:t?_a.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:_a.Generic_type_0_requires_between_1_and_2_type_arguments,lc(n,void 0,2),i,r.length),!o)return Et}if(183===e.kind&&Qv(e,l(e.typeArguments)!==r.length))return py(n,e,void 0);return uy(n,$(n.outerTypeParameters,Eg(qy(e),r,i,o)))}return By(e,t)?n:Et}function hy(e,t,n,r){const i=Tu(e);if(i===It){const n=UB.get(e.escapedName);if(void 0!==n&&t&&1===t.length)return 4===n?Ty(t[0]):dx(e,t[0])}const o=aa(e),a=o.typeParameters,s=oy(t)+ay(n,r);let c=o.instantiations.get(s);return c||o.instantiations.set(s,c=vS(i,Qk(a,Eg(t,a,Cg(a),Em(e.valueDeclaration))),n,r)),c}function yy(e){var t;const n=null==(t=e.declarations)?void 0:t.find(Fg);return!(!n||!Kf(n))}function vy(e){return e.parent?`${vy(e.parent)}.${e.escapedName}`:e.escapedName}function by(e){const t=(166===e.kind?e.right:211===e.kind?e.name:e).escapedText;if(t){const n=166===e.kind?by(e.left):211===e.kind?by(e.expression):void 0,r=n?`${vy(n)}.${t}`:t;let i=St.get(r);return i||(St.set(r,i=$o(524288,t,1048576)),i.parent=n,i.links.declaredType=Pt),i}return xt}function ky(e,t,n){const r=function(e){switch(e.kind){case 183:return e.typeName;case 233:const t=e.expression;if(sb(t))return t}}(e);if(!r)return xt;const i=Xa(r,t,n);return i&&i!==xt?i:n?xt:by(r)}function Sy(e,t){if(t===xt)return Et;if(96&(t=function(e){const t=e.valueDeclaration;if(!t||!Em(t)||524288&e.flags||Hm(t,!1))return;const n=HF(t)?Wm(t):$m(t);if(n){const t=ys(n);if(t)return wL(t,e)}}(t)||t).flags)return gy(e,t);if(524288&t.flags)return function(e,t){if(1048576&ix(t)){const n=qy(e),r=ay(t,n);let i=Tt.get(r);return i||(i=Os(1,"error",void 0,`alias ${r}`),i.aliasSymbol=t,i.aliasTypeArguments=n,Tt.set(r,i)),i}const n=Tu(t),r=aa(t).typeParameters;if(r){const n=l(e.typeArguments),i=Cg(r);if(n<i||n>r.length)return Ro(e,i===r.length?_a.Generic_type_0_requires_1_type_argument_s:_a.Generic_type_0_requires_between_1_and_2_type_arguments,sc(t),i,r.length),Et;const o=sk(e);let a,s=!o||!yy(t)&&yy(o)?void 0:o;if(s)a=ck(s);else if(Iu(e)){const t=ky(e,2097152,!0);if(t&&t!==xt){const n=qa(t);n&&524288&n.flags&&(s=n,a=qy(e)||(r?[]:void 0))}}return hy(t,qy(e),s,a)}return By(e,t)?n:Et}(e,t);const n=Cu(t);if(n)return By(e,t)?hk(n):Et;if(111551&t.flags&&My(e)){const n=function(e,t){const n=sa(e);if(!n.resolvedJSDocType){const r=F_(t);let i=r;if(t.valueDeclaration){const n=205===e.kind&&e.qualifier;r.symbol&&r.symbol!==t&&n&&(i=Sy(e,r.symbol))}n.resolvedJSDocType=i}return n.resolvedJSDocType}(e,t);return n||(ky(e,788968),F_(t))}return Et}function Ty(e){return Cy(e)?Py(e,Lt):e}function Cy(e){return!!(3145728&e.flags&&V(e.types,Cy)||33554432&e.flags&&!wy(e)&&Cy(e.baseType)||524288&e.flags&&!tT(e)||432275456&e.flags&&!wx(e))}function wy(e){return!!(33554432&e.flags&&2&e.constraint.flags)}function Ny(e){return!!(33554432&e.flags&&16777216&e.objectFlags)}function Dy(e,t,n){return 3&t.flags||t===e||1&e.flags?e:Py(e,t,n)}function Py(e,t,n){const r=`${Nb(e)}>${Nb(t)}${n?">N":""}`,i=dt.get(r);if(i)return i;const o=Ds(33554432);return o.baseType=e,o.constraint=t,n&&(o.objectFlags|=16777216),dt.set(r,o),o}function Ay(e){return wy(e)?e.baseType:Vb([e.constraint,e.baseType])}function Iy(e){return 189===e.kind&&1===e.elements.length}function jy(e,t,n){return Iy(t)&&Iy(n)?jy(e,t.elements[0],n.elements[0]):Ux(Bk(t))===Ux(e)?Bk(n):void 0}function My(e){return!!(16777216&e.flags)&&(183===e.kind||205===e.kind)}function By(e,t){return!e.typeArguments||(Ro(e,_a.Type_0_is_not_generic,t?sc(t):e.typeName?Pp(e.typeName):IB),!1)}function Jy(e){if(VN(e.typeName)){const t=e.typeArguments;switch(e.typeName.escapedText){case"String":return By(e),Vt;case"Number":return By(e),Wt;case"Boolean":return By(e),sn;case"Void":return By(e),ln;case"Undefined":return By(e),jt;case"Null":return By(e),qt;case"Function":case"function":return By(e),Xn;case"array":return t&&t.length||ie?void 0:cr;case"promise":return t&&t.length||ie?void 0:wj(wt);case"Object":if(t&&2===t.length){if(Om(e)){const e=Bk(t[0]),n=Bk(t[1]),r=e===Vt||e===Wt?[Rh(e,n,!1)]:s;return zs(void 0,O,s,s,r)}return wt}return By(e),ie?void 0:wt}}}function zy(e){const t=sa(e);if(!t.resolvedType){if(kl(e)&&W_(e.parent))return t.resolvedSymbol=xt,t.resolvedType=uR(e.parent.expression);let n,r;const i=788968;My(e)&&(r=Jy(e),r||(n=ky(e,i,!0),n===xt?n=ky(e,111551|i):ky(e,i),r=Sy(e,n))),r||(n=ky(e,i),r=Sy(e,n)),t.resolvedSymbol=n,t.resolvedType=r}return t.resolvedType}function qy(e){return D(e.typeArguments,Bk)}function Uy(e){const t=sa(e);if(!t.resolvedType){const n=zL(e);t.resolvedType=hk(Uw(n))}return t.resolvedType}function Vy(e,t){function n(e){const t=e.declarations;if(t)for(const e of t)switch(e.kind){case 263:case 264:case 266:return e}}if(!e)return t?On:Nn;const r=Tu(e);return 524288&r.flags?l(r.typeParameters)!==t?(Ro(n(e),_a.Global_type_0_must_have_1_type_parameter_s,yc(e),t),t?On:Nn):r:(Ro(n(e),_a.Global_type_0_must_be_a_class_or_interface_type,yc(e)),t?On:Nn)}function Wy(e,t){return Ky(e,111551,t?_a.Cannot_find_global_value_0:void 0)}function $y(e,t){return Ky(e,788968,t?_a.Cannot_find_global_type_0:void 0)}function Hy(e,t,n){const r=Ky(e,788968,n?_a.Cannot_find_global_type_0:void 0);if(!r||(Tu(r),l(aa(r).typeParameters)===t))return r;Ro(r.declarations&&y(r.declarations,YF),_a.Global_type_0_must_have_1_type_parameter_s,yc(r),t)}function Ky(e,t,n){return Ue(void 0,e,t,n,!1,!1)}function Gy(e,t,n){const r=$y(e,n);return r||n?Vy(r,t):void 0}function Qy(e,t){let n;for(const r of e)n=re(n,Gy(r,t,!1));return n??s}function Yy(){return Lr||(Lr=Gy("ImportMeta",0,!0)||Nn)}function Zy(){if(!jr){const e=$o(0,"ImportMetaExpression"),t=Yy(),n=$o(4,"meta",8);n.parent=e,n.links.type=t;const r=Ku([n]);e.members=r,jr=zs(e,r,s,s,s)}return jr}function ev(e){return Rr||(Rr=Gy("ImportCallOptions",0,e))||Nn}function tv(e){return Mr||(Mr=Gy("ImportAttributes",0,e))||Nn}function nv(e){return dr||(dr=Wy("Symbol",e))}function rv(){return fr||(fr=Gy("Symbol",0,!1))||Nn}function av(e){return gr||(gr=Gy("Promise",1,e))||On}function dv(e){return hr||(hr=Gy("PromiseLike",1,e))||On}function pv(e){return yr||(yr=Wy("Promise",e))}function mv(e){return Nr||(Nr=Gy("AsyncIterable",3,e))||On}function vv(e){return Fr||(Fr=Gy("AsyncIterableIterator",3,e))||On}function bv(e){return br||(br=Gy("Iterable",3,e))||On}function xv(e){return kr||(kr=Gy("IterableIterator",3,e))||On}function kv(){return te?jt:wt}function Sv(e){return Br||(Br=Gy("Disposable",0,e))||Nn}function Tv(e,t=0){const n=Ky(e,788968,void 0);return n&&Vy(n,t)}function Mv(e){return Ur||(Ur=Hy("Awaited",1,e)||(e?xt:void 0)),Ur===xt?void 0:Ur}function Bv(e,t){return e!==On?uy(e,t):Nn}function zv(e){return Bv(mr||(mr=Gy("TypedPropertyDescriptor",1,!0)||On),[e])}function qv(e){return Bv(bv(!0),[e,ln,jt])}function Uv(e,t){return Bv(t?nr:Zn,[e])}function Vv(e){switch(e.kind){case 190:return 2;case 191:return Wv(e);case 202:return e.questionToken?2:e.dotDotDotToken?Wv(e):1;default:return 1}}function Wv(e){return Mk(e.type)?4:8}function $v(e){const t=function(e){return MD(e)&&148===e.operator}(e.parent);if(Mk(e))return t?nr:Zn;return yb(D(e.elements,Vv),t,D(e.elements,Xv))}function Xv(e){return FD(e)||cD(e)?e:void 0}function Qv(e,t){return!!sk(e)||Yv(e)&&(188===e.kind?nb(e.elementType):189===e.kind?V(e.elements,nb):t||V(e.typeArguments,nb))}function Yv(e){const t=e.parent;switch(t.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return Yv(t);case 265:return!0}return!1}function nb(e){switch(e.kind){case 183:return My(e)||!!(524288&ky(e,788968).flags);case 186:return!0;case 198:return 158!==e.operator&&nb(e.type);case 196:case 190:case 202:case 316:case 314:case 315:case 309:return nb(e.type);case 191:return 188!==e.type.kind||nb(e.type.elementType);case 192:case 193:return V(e.types,nb);case 199:return nb(e.objectType)||nb(e.indexType);case 194:return nb(e.checkType)||nb(e.extendsType)||nb(e.trueType)||nb(e.falseType)}return!1}function ob(e,t,n=!1,r=[]){const i=yb(t||D(e,(e=>1)),n,r);return i===On?Nn:e.length?vb(i,e):i}function yb(e,t,n){if(1===e.length&&4&e[0])return t?nr:Zn;const r=D(e,(e=>1&e?"#":2&e?"?":4&e?".":"*")).join()+(t?"R":"")+(V(n,(e=>!!e))?","+D(n,(e=>e?$B(e):"_")).join(","):"");let i=Ze.get(r);return i||Ze.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<r;i++){const r=o[i]=js(),s=e[i];if(c|=s,!(12&c)){const e=$o(4|(2&s?16777216:0),""+i,t?8:0);e.links.tupleLabelDeclaration=null==n?void 0:n[i],e.links.type=r,a.push(e)}}}const l=a.length,_=$o(4,"length",t?8:0);if(12&c)_.links.type=Wt;else{const e=[];for(let t=i;t<=r;t++)e.push(wk(t));_.links.type=jb(e)}a.push(_);const u=Ls(12);return u.typeParameters=o,u.outerTypeParameters=void 0,u.localTypeParameters=o,u.instantiations=new Map,u.instantiations.set(oy(u.typeParameters),u),u.target=u,u.resolvedTypeArguments=u.typeParameters,u.thisType=js(),u.thisType.isThisType=!0,u.thisType.constraint=u,u.declaredProperties=a,u.declaredCallSignatures=s,u.declaredConstructSignatures=s,u.declaredIndexInfos=s,u.elementFlags=e,u.minLength=i,u.fixedLength=l,u.hasRestElement=!!(12&c),u.combinedFlags=c,u.readonly=t,u.labeledElementDeclarations=n,u}(e,t,n)),i}function vb(e,t){return 8&e.objectFlags?bb(e,t):uy(e,t)}function bb(e,t){var n,i,o,a;if(!(14&e.combinedFlags))return uy(e,t);if(8&e.combinedFlags){const n=b(t,((t,n)=>!!(8&e.elementFlags[n]&&1179648&t.flags)));if(n>=0)return $b(D(t,((t,n)=>8&e.elementFlags[n]?t:Lt)))?JF(t[n],(r=>bb(e,ke(t,n,r)))):Et}const s=[],c=[],l=[];let u=-1,d=-1,p=-1;for(let c=0;c<t.length;c++){const l=t[c],u=e.elementFlags[c];if(8&u)if(1&l.flags)m(l,4,null==(n=e.labeledElementDeclarations)?void 0:n[c]);else if(58982400&l.flags||Tp(l))m(l,8,null==(i=e.labeledElementDeclarations)?void 0:i[c]);else if(lw(l)){const e=wb(l);if(e.length+s.length>=1e4)return Ro(r,Cf(r)?_a.Type_produces_a_tuple_type_that_is_too_large_to_represent:_a.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Et;_(e,((e,t)=>{var n;return m(e,l.target.elementFlags[t],null==(n=l.target.labeledElementDeclarations)?void 0:n[t])}))}else m(qC(l)&&rg(l,Wt)||Et,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<u;e++)2&c[e]&&(c[e]=1);d>=0&&d<p&&(s[d]=jb(E(s.slice(d,p+1),((e,t)=>8&c[d+t]?Rx(e,Wt):e))),s.splice(d+1,p-d),c.splice(d+1,p-d),l.splice(d+1,p-d));const f=yb(c,e.readonly,l);return f===On?Nn:c.length?uy(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?Tl(e,!0):e),c.push(t),l.push(n)}}function kb(e,t,n=0){const r=e.target,i=my(e)-n;return t>r.fixedLength?function(e){const t=dw(e);return t&&Uv(t)}(e)||ob(s):ob(fy(e).slice(t,i),r.elementFlags.slice(t,i),!1,r.labeledElementDeclarations&&r.labeledElementDeclarations.slice(t,i))}function Sb(e){return jb(re(Ae(e.target.fixedLength,(e=>kk(""+e))),rx(e.target.readonly?nr:Zn)))}function Tb(e,t){return e.elementFlags.length-x(e.elementFlags,(e=>!(e&t)))-1}function Cb(e){return e.fixedLength+Tb(e,3)}function wb(e){const t=fy(e),n=my(e);return t.length===n?t:t.slice(0,n)}function Nb(e){return e.id}function Db(e,t){return Se(e,t,Nb,yt)>=0}function Fb(e,t){const n=Se(e,t,Nb,yt);return n<0&&(e.splice(~n,0,t),!0)}function Eb(e,t,n){const r=n.flags;if(!(131072&r))if(t|=473694207&r,465829888&r&&(t|=33554432),2097152&r&&67108864&hx(n)&&(t|=536870912),n===Dt&&(t|=8388608),Gc(n)&&(t|=1073741824),!G&&98304&r)65536&hx(n)||(t|=4194304);else{const t=e.length,r=t&&n.id>e[t-1].id?~t:Se(e,n,Nb,yt);r<0&&e.splice(~r,0,n)}return t}function Pb(e,t,n){let r;for(const i of n)i!==r&&(t=1048576&i.flags?Pb(e,t|(Ib(i)?1048576:0),i.types):Eb(e,t,i),r=i);return t}function Ab(e,t){return 134217728&t.flags?vN(e,t):gN(e,t)}function Ib(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}function Ob(e,t){for(const n of t)if(1048576&n.flags){const t=n.origin;n.aliasSymbol||t&&!(1048576&t.flags)?se(e,n):t&&1048576&t.flags&&Ob(e,t.types)}}function Lb(e,t){const n=Is(e);return n.types=t,n}function jb(e,t=1,n,r,i){if(0===e.length)return un;if(1===e.length)return e[0];if(2===e.length&&!i&&(1048576&e[0].flags||1048576&e[1].flags)){const i=0===t?"N":2===t?"S":"L",o=e[0].id<e[1].id?0:1,a=e[o].id+i+e[1-o].id+ay(n,r);let s=rt.get(a);return s||(s=Rb(e,t,n,r,void 0),rt.set(a,s)),s}return Rb(e,t,n,r,i)}function Rb(e,t,n,i,o){let a=[];const s=Pb(a,0,e);if(0!==t){if(3&s)return 1&s?8388608&s?Dt:1073741824&s?Et:wt:Lt;if(32768&s&&a.length>=2&&a[0]===jt&&a[1]===Mt&&zt(a,1),(402664352&s||16384&s&&32768&s)&&function(e,t,n){let r=e.length;for(;r>0;){r--;const i=e[r],o=i.flags;(402653312&o&&4&t||256&o&&8&t||2048&o&&64&t||8192&o&&4096&t||n&&32768&o&&16384&t||yk(i)&&Db(e,i.regularType))&&zt(e,r)}}(a,s,!!(2&t)),128&s&&402653184&s&&function(e){const t=C(e,wx);if(t.length){let n=e.length;for(;n>0;){n--;const r=e[n];128&r.flags&&V(t,(e=>Ab(r,e)))&&zt(e,n)}}}(a),536870912&s&&function(e){const t=[];for(const n of e)if(2097152&n.flags&&67108864&hx(n)){const e=8650752&n.types[0].flags?0:1;se(t,n.types[e])}for(const n of t){const t=[];for(const r of e)if(2097152&r.flags&&67108864&hx(r)){const e=8650752&r.types[0].flags?0:1;r.types[e]===n&&Fb(t,r.types[1-e])}if(IF(ff(n),(e=>Db(t,e)))){let r=e.length;for(;r>0;){r--;const i=e[r];if(2097152&i.flags&&67108864&hx(i)){const o=8650752&i.types[0].flags?0:1;i.types[o]===n&&Db(t,i.types[1-o])&&zt(e,r)}}Fb(e,n)}}}(a),2===t&&(a=function(e,t){var n;if(e.length<2)return e;const i=oy(e),o=pt.get(i);if(o)return o;const a=t&&V(e,(e=>!!(524288&e.flags)&&!Tp(e)&&YS(Op(e)))),s=e.length;let c=s,l=0;for(;c>0;){c--;const t=e[c];if(a||469499904&t.flags){if(262144&t.flags&&1048576&mf(t).flags){pT(t,jb(D(e,(e=>e===t?un:e))),ho)&&zt(e,c);continue}const i=61603840&t.flags?y($p(t),(e=>QC(F_(e)))):void 0,o=i&&hk(F_(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 Ro(r,_a.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(l++,i&&61603840&a.flags){const e=Wc(a,i.escapedName);if(e&&QC(e)&&hk(e)!==o)continue}if(pT(t,a,ho)&&(!(1&hx(B_(t)))||!(1&hx(B_(a)))||OS(t,a))){zt(e,c);break}}}}return pt.set(i,e),e}(a,!!(524288&s)),!a))return Et;if(0===a.length)return 65536&s?4194304&s?qt:Ut:32768&s?4194304&s?jt:Rt:un}if(!o&&1048576&s){const t=[];Ob(t,e);const r=[];for(const e of a)V(t,(t=>Db(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)Fb(r,e);o=Lb(1048576,r)}}return Bb(a,(36323331&s?0:32768)|(2097152&s?16777216:0),n,i,o)}function Mb(e,t){return e.kind===t.kind&&e.parameterIndex===t.parameterIndex}function Bb(e,t,n,r,i){if(0===e.length)return un;if(1===e.length)return e[0];const o=(i?1048576&i.flags?`|${oy(i.types)}`:2097152&i.flags?`&${oy(i.types)}`:`#${i.type.id}|${oy(e)}`:oy(e))+ay(n,r);let a=nt.get(o);return a||(a=Ds(1048576),a.objectFlags=t|sy(e,98304),a.types=e,a.origin=i,a.aliasSymbol=n,a.aliasTypeArguments=r,2===e.length&&512&e[0].flags&&512&e[1].flags&&(a.flags|=16,a.intrinsicName="boolean"),nt.set(o,a)),a}function Jb(e,t,n){const r=n.flags;return 2097152&r?zb(e,t,n.types):(tT(n)?16777216&t||(t|=16777216,e.set(n.id.toString(),n)):(3&r?(n===Dt&&(t|=8388608),Gc(n)&&(t|=1073741824)):!G&&98304&r||(n===Mt&&(t|=262144,n=jt),e.has(n.id.toString())||(109472&n.flags&&109472&t&&(t|=67108864),e.set(n.id.toString(),n))),t|=473694207&r),t)}function zb(e,t,n){for(const r of n)t=Jb(e,t,hk(r));return t}function qb(e,t){for(const n of e)if(!Db(n.types,t)){if(t===Mt)return Db(n.types,jt);if(t===jt)return Db(n.types,Mt);const e=128&t.flags?Vt:288&t.flags?Wt:2048&t.flags?$t:8192&t.flags?cn:void 0;if(!e||!Db(n.types,e))return!1}return!0}function Ub(e,t){for(let n=0;n<e.length;n++)e[n]=OF(e[n],(e=>!(e.flags&t)))}function Vb(e,t=0,n,r){const i=new Map,o=zb(i,0,e),a=Ie(i.values());let s=0;if(131072&o)return k(a,dn)?dn:un;if(G&&98304&o&&84410368&o||67108864&o&&402783228&o||402653316&o&&67238776&o||296&o&&469891796&o||2112&o&&469889980&o||12288&o&&469879804&o||49152&o&&469842940&o)return un;if(402653184&o&&128&o&&function(e){let t=e.length;const n=C(e,(e=>!!(128&e.flags)));for(;t>0;){t--;const r=e[t];if(402653184&r.flags)for(const i of n){if(PS(i,r)){zt(e,t);break}if(wx(r))return!0}}return!1}(a))return un;if(1&o)return 8388608&o?Dt:1073741824&o?Et:wt;if(!G&&98304&o)return 16777216&o?un:32768&o?jt:qt;if((4&o&&402653312&o||8&o&&256&o||64&o&&2048&o||4096&o&&8192&o||16384&o&&32768&o||16777216&o&&470302716&o)&&(1&t||function(e,t){let n=e.length;for(;n>0;){n--;const r=e[n];(4&r.flags&&402653312&t||8&r.flags&&256&t||64&r.flags&&2048&t||4096&r.flags&&8192&t||16384&r.flags&&32768&t||tT(r)&&470302716&t)&&zt(e,n)}}(a,o)),262144&o&&(a[a.indexOf(jt)]=Mt),0===a.length)return Lt;if(1===a.length)return a[0];if(2===a.length&&!(2&t)){const e=8650752&a[0].flags?0:1,t=a[e],n=a[1-e];if(8650752&t.flags&&(469893116&n.flags&&!Dx(n)||16777216&o)){const e=ff(t);if(e&&IF(e,(e=>!!(469893116&e.flags)||tT(e)))){if(AS(e,n))return t;if(!(1048576&e.flags&&EF(e,(e=>AS(e,n)))||AS(n,e)))return un;s=67108864}}}const c=oy(a)+(2&t?"*":ay(n,r));let l=it.get(c);if(!l){if(1048576&o)if(function(e){let t;const n=b(e,(e=>!!(32768&hx(e))));if(n<0)return!1;let r=n+1;for(;r<e.length;){const i=e[r];32768&hx(i)?((t||(t=[e[n]])).push(i),zt(e,r)):r++}if(!t)return!1;const i=[],o=[];for(const e of t)for(const n of e.types)if(Fb(i,n)&&qb(t,n)){if(n===jt&&o.length&&o[0]===Mt)continue;if(n===Mt&&o.length&&o[0]===jt){o[0]=Mt;continue}Fb(o,n)}return e[n]=Bb(o,32768),!0}(a))l=Vb(a,t,n,r);else if(h(a,(e=>!!(1048576&e.flags&&32768&e.types[0].flags)))){const e=V(a,Ew)?Mt:jt;Ub(a,32768),l=jb([Vb(a,t),e],1,n,r)}else if(h(a,(e=>!!(1048576&e.flags&&(65536&e.types[0].flags||65536&e.types[1].flags)))))Ub(a,65536),l=jb([Vb(a,t),qt],1,n,r);else if(a.length>=3&&e.length>2){const e=Math.floor(a.length/2);l=Vb([Vb(a.slice(0,e),t),Vb(a.slice(e),t)],t,n,r)}else{if(!$b(a))return Et;const e=function(e,t){const n=Wb(e),r=[];for(let i=0;i<n;i++){const n=e.slice();let o=i;for(let t=e.length-1;t>=0;t--)if(1048576&e[t].flags){const r=e[t].types,i=r.length;n[t]=r[o%i],o=Math.floor(o/i)}const a=Vb(n,t);131072&a.flags||r.push(a)}return r}(a,t);l=jb(e,1,n,r,V(e,(e=>!!(2097152&e.flags)))&&Kb(e)>Kb(a)?Lb(2097152,a):void 0)}else l=function(e,t,n,r){const i=Ds(2097152);return i.objectFlags=t|sy(e,98304),i.types=e,i.aliasSymbol=n,i.aliasTypeArguments=r,i}(a,s,n,r);it.set(c,l)}return l}function Wb(e){return Ce(e,((e,t)=>1048576&t.flags?e*t.types.length:131072&t.flags?0:e),1)}function $b(e){var t;const n=Wb(e);return!(n>=1e5)||(null==(t=$n)||t.instant($n.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:e.map((e=>e.id)),size:n}),Ro(r,_a.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1)}function Hb(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?Hb(e.origin):Kb(e.types):1}function Kb(e){return Ce(e,((e,t)=>e+Hb(t)),0)}function Gb(e,t){const n=Ds(4194304);return n.type=e,n.indexFlags=t,n}function Xb(e,t){return 1&t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Gb(e,1)):e.resolvedIndexType||(e.resolvedIndexType=Gb(e,0))}function Qb(e,t){const n=ip(e),r=lp(e),i=fp(e.target||e);if(!(i||2&t))return r;const o=[];if(Px(r)){if(vp(e))return Xb(e,t);NF(r,s)}else if(vp(e)){np(Tf(bp(e)),8576,!!(1&t),s)}else NF(Zd(r),s);const a=2&t?OF(jb(o),(e=>!(5&e.flags))):jb(o);return 1048576&a.flags&&1048576&r.flags&&oy(a.types)===oy(r.types)?r:a;function s(t){const r=i?yS(i,aS(e.mapper,n,t)):t;o.push(r===Vt?gn:r)}}function Yb(e){if(WN(e))return un;if(CN(e))return hk(IR(e));if(aD(e))return hk(nI(e));const t=Jh(e);return void 0!==t?kk(mc(t)):V_(e)?hk(IR(e)):un}function Zb(e,t,n){if(n||!(6&ox(e))){let n=aa(Sd(e)).nameType;if(!n){const t=Cc(e.valueDeclaration);n="default"===e.escapedName?kk("default"):t&&Yb(t)||(Wh(e)?void 0:kk(yc(e)))}if(n&&n.flags&t)return n}return un}function ex(e,t){return!!(e.flags&t||2097152&e.flags&&V(e.types,(e=>ex(e,t))))}function tx(e,t,n){const r=n&&(7&hx(e)||e.aliasSymbol)?function(e){const t=Is(4194304);return t.type=e,t}(e):void 0;return jb($(D($p(e),(e=>Zb(e,t))),D(qm(e),(e=>e!==ui&&ex(e.keyType,t)?e.keyType===Vt&&8&t?gn:e.keyType:un))),1,void 0,void 0,r)}function nx(e,t=0){return!!(58982400&e.flags||_w(e)||Tp(e)&&(!function(e){const t=ip(e);return function e(n){return!!(470810623&n.flags)||(16777216&n.flags?n.root.isDistributive&&n.checkType===t:137363456&n.flags?h(n.types,e):8388608&n.flags?e(n.objectType)&&e(n.indexType):33554432&n.flags?e(n.baseType)&&e(n.constraint):!!(268435456&n.flags)&&e(n.type))}(fp(e)||t)}(e)||2===Np(e))||1048576&e.flags&&!(4&t)&&Gf(e)||2097152&e.flags&&Hj(e,465829888)&&V(e.types,tT))}function rx(e,t=0){return wy(e=Vf(e))?Ty(rx(e.baseType,t)):nx(e,t)?Xb(e,t):1048576&e.flags?Vb(D(e.types,(e=>rx(e,t)))):2097152&e.flags?jb(D(e.types,(e=>rx(e,t)))):32&hx(e)?Qb(e,t):e===Dt?Dt:2&e.flags?un:131073&e.flags?hn:tx(e,(2&t?128:402653316)|(1&t?0:12584),0===t)}function ax(e){const t=(zr||(zr=Hy("Extract",2,!0)||xt),zr===xt?void 0:zr);return t?hy(t,[e,Vt]):Vt}function _x(e,t){const n=b(t,(e=>!!(1179648&e.flags)));if(n>=0)return $b(t)?JF(t[n],(r=>_x(e,ke(t,n,r)))):Et;if(k(t,Dt))return Dt;const r=[],i=[];let o=e[0];if(!function e(t,n){for(let a=0;a<n.length;a++){const s=n[a];if(101248&s.flags)o+=ux(s)||"",o+=t[a+1];else if(134217728&s.flags){if(o+=s.texts[0],!e(s.texts,s.types))return!1;o+=t[a+1]}else{if(!Px(s)&&!Cx(s))return!1;r.push(s),i.push(o),o=t[a+1]}}return!0}(e,t))return Vt;if(0===r.length)return kk(o);if(i.push(o),h(i,(e=>""===e))){if(h(r,(e=>!!(4&e.flags))))return Vt;if(1===r.length&&wx(r[0]))return r[0]}const a=`${oy(r)}|${D(i,(e=>e.length)).join(",")}|${i.join("")}`;let s=_t.get(a);return s||_t.set(a,s=function(e,t){const n=Ds(134217728);return n.texts=e,n.types=t,n}(i,r)),s}function ux(e){return 128&e.flags?e.value:256&e.flags?""+e.value:2048&e.flags?hT(e.value):98816&e.flags?e.intrinsicName:void 0}function dx(e,t){return 1179648&t.flags?JF(t,(t=>dx(e,t))):128&t.flags?kk(px(e,t.value)):134217728&t.flags?_x(...function(e,t,n){switch(UB.get(e.escapedName)){case 0:return[t.map((e=>e.toUpperCase())),n.map((t=>dx(e,t)))];case 1:return[t.map((e=>e.toLowerCase())),n.map((t=>dx(e,t)))];case 2:return[""===t[0]?t:[t[0].charAt(0).toUpperCase()+t[0].slice(1),...t.slice(1)],""===t[0]?[dx(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]?[dx(e,n[0]),...n.slice(1)]:n]}return[t,n]}(e,t.texts,t.types)):268435456&t.flags&&e===t.symbol?t:268435461&t.flags||Px(t)?fx(e,t):Cx(t)?fx(e,_x(["",""],[t])):t}function px(e,t){switch(UB.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 fx(e,t){const n=`${HB(e)},${Nb(t)}`;let r=ut.get(n);return r||ut.set(n,r=function(e,t){const n=Es(268435456,e);return n.type=t,n}(e,t)),r}function mx(e){if(ie)return!1;if(4096&hx(e))return!0;if(1048576&e.flags)return h(e.types,mx);if(2097152&e.flags)return V(e.types,mx);if(465829888&e.flags){const t=hf(e);return t!==e&&mx(t)}return!1}function vx(e,t){return cC(e)?lC(e):t&&t_(t)?Jh(t):void 0}function bx(e,t){if(8208&t.flags){const n=uc(e.parent,(e=>!Tx(e)))||e.parent;return L_(n)?j_(n)&&VN(e)&&XN(n,e):h(t.declarations,(e=>!r_(e)||Vo(e)))}return!0}function xx(e,t,n,r,i,o){const a=i&&212===i.kind?i:void 0,s=i&&WN(i)?void 0:vx(n,i);if(void 0!==s){if(256&o)return xA(t,s)||wt;const e=fm(t,s);if(e){if(64&o&&i&&e.declarations&&Uo(e)&&bx(i,e)){Wo((null==a?void 0:a.argumentExpression)??(BD(i)?i.indexType:i),e.declarations,s)}if(a){if(TO(e,a,CO(a.expression,t.symbol)),zj(a,e,Xg(a)))return void Ro(a.argumentExpression,_a.Cannot_assign_to_0_because_it_is_a_read_only_property,sc(e));if(8&o&&(sa(i).resolvedSymbol=e),lO(a,e))return Nt}const n=4&o?D_(e):F_(e);return a&&1!==Xg(a)?$E(a,n):i&&BD(i)&&Ew(n)?jb([n,jt]):n}if(IF(t,lw)&&zT(s)){const e=+s;if(i&&IF(t,(e=>!(12&e.target.combinedFlags)))&&!(16&o)){const n=kx(i);if(lw(t)){if(e<0)return Ro(n,_a.A_tuple_type_cannot_be_indexed_with_a_negative_value),jt;Ro(n,_a.Tuple_type_0_of_length_1_has_no_element_at_index_2,lc(t),my(t),mc(s))}else Ro(n,_a.Property_0_does_not_exist_on_type_1,mc(s),lc(t))}if(e>=0)return c(Qm(t,Wt)),pw(t,e,1&o?Mt:void 0)}}if(!(98304&n.flags)&&Kj(n,402665900)){if(131073&t.flags)return t;const l=og(t,n)||Qm(t,Vt);if(l){if(2&o&&l.keyType!==Wt)return void(a&&(4&o?Ro(a,_a.Type_0_is_generic_and_can_only_be_indexed_for_reading,lc(e)):Ro(a,_a.Type_0_cannot_be_used_to_index_type_1,lc(n),lc(e))));if(i&&l.keyType===Vt&&!Kj(n,12)){return Ro(kx(i),_a.Type_0_cannot_be_used_as_an_index_type,lc(n)),1&o?jb([l.type,Mt]):l.type}return c(l),1&o&&!(t.symbol&&384&t.symbol.flags&&n.symbol&&1024&n.flags&&vs(n.symbol)===t.symbol)?jb([l.type,Mt]):l.type}if(131072&n.flags)return un;if(mx(t))return wt;if(a&&!Xj(t)){if(TN(t)){if(ie&&384&n.flags)return po.add(Rp(a,_a.Property_0_does_not_exist_on_type_1,n.value,lc(t))),jt;if(12&n.flags){return jb(re(D(t.properties,(e=>F_(e))),jt))}}if(t.symbol===Fe&&void 0!==s&&Fe.exports.has(s)&&418&Fe.exports.get(s).flags)Ro(a,_a.Property_0_does_not_exist_on_type_1,mc(s),lc(t));else if(ie&&!(128&o))if(void 0!==s&&gO(s,t)){const e=lc(t);Ro(a,_a.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,s,e,e+"["+Gd(a.argumentExpression)+"]")}else if(rg(t,Wt))Ro(a.argumentExpression,_a.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let e;if(void 0!==s&&(e=bO(s,t)))void 0!==e&&Ro(a.argumentExpression,_a.Property_0_does_not_exist_on_type_1_Did_you_mean_2,s,lc(t),e);else{const e=function(e,t,n){function r(t){const r=qp(e,t);if(r){const e=qO(F_(r));return!!e&&oj(e)>=1&&IS(n,ej(e,0))}return!1}const i=Qg(t)?"set":"get";if(!r(i))return;let o=ub(t.expression);void 0===o?o=i:o+="."+i;return o}(t,a,n);if(void 0!==e)Ro(a,_a.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,lc(t),e);else{let e;if(1024&n.flags)e=ek(void 0,_a.Property_0_does_not_exist_on_type_1,"["+lc(n)+"]",lc(t));else if(8192&n.flags){const r=Ga(n.symbol,a);e=ek(void 0,_a.Property_0_does_not_exist_on_type_1,"["+r+"]",lc(t))}else 128&n.flags||256&n.flags?e=ek(void 0,_a.Property_0_does_not_exist_on_type_1,n.value,lc(t)):12&n.flags&&(e=ek(void 0,_a.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,lc(n),lc(t)));e=ek(e,_a.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,lc(r),lc(t)),po.add(Jp(yd(a),a,e))}}}return}}if(16&o&&TN(t))return jt;if(mx(t))return wt;if(i){const e=kx(i);if(10!==e.kind&&384&n.flags)Ro(e,_a.Property_0_does_not_exist_on_type_1,""+n.value,lc(t));else if(12&n.flags)Ro(e,_a.Type_0_has_no_matching_index_signature_for_type_1,lc(t),lc(n));else{const t=10===e.kind?"bigint":lc(n);Ro(e,_a.Type_0_cannot_be_used_as_an_index_type,t)}}return Hc(n)?n:void 0;function c(e){e&&e.isReadonly&&a&&(Qg(a)||sh(a))&&Ro(a,_a.Index_signature_in_type_0_only_permits_reading,lc(t))}}function kx(e){return 212===e.kind?e.argumentExpression:199===e.kind?e.indexType:167===e.kind?e.expression:e}function Cx(e){if(2097152&e.flags){let t=!1;for(const n of e.types)if(101248&n.flags||Cx(n))t=!0;else if(!(524288&n.flags))return!1;return t}return!!(77&e.flags)||wx(e)}function wx(e){return!!(134217728&e.flags)&&h(e.types,Cx)||!!(268435456&e.flags)&&Cx(e.type)}function Dx(e){return!!(402653184&e.flags)&&!wx(e)}function Fx(e){return!!Ax(e)}function Ex(e){return!!(4194304&Ax(e))}function Px(e){return!!(8388608&Ax(e))}function Ax(e){return 3145728&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|Ce(e.types,((e,t)=>e|Ax(t)),0)),12582912&e.objectFlags):33554432&e.flags?(2097152&e.objectFlags||(e.objectFlags|=2097152|Ax(e.baseType)|Ax(e.constraint)),12582912&e.objectFlags):(58982400&e.flags||Tp(e)||_w(e)?4194304:0)|(63176704&e.flags||Dx(e)?8388608:0)}function Ix(e,t){return 8388608&e.flags?function(e,t){const n=t?"simplifiedForWriting":"simplifiedForReading";if(e[n])return e[n]===Rn?e:e[n];e[n]=Rn;const r=Ix(e.objectType,t),i=Ix(e.indexType,t),o=function(e,t,n){if(1048576&t.flags){const r=D(t.types,(t=>Ix(Rx(e,t),n)));return n?Vb(r):jb(r)}}(r,i,t);if(o)return e[n]=o;if(!(465829888&i.flags)){const o=Ox(r,i,t);if(o)return e[n]=o}if(_w(r)&&296&i.flags){const o=fw(r,8&i.flags?0:r.target.fixedLength,0,t);if(o)return e[n]=o}if(Tp(r)&&2!==Np(r))return e[n]=JF(jx(r,e.indexType),(e=>Ix(e,t)));return e[n]=e}(e,t):16777216&e.flags?function(e,t){const n=e.checkType,r=e.extendsType,i=Kx(e),o=Gx(e);if(131072&o.flags&&Ux(i)===Ux(n)){if(1&n.flags||IS(xS(n),xS(r)))return Ix(i,t);if(Lx(n,r))return un}else if(131072&i.flags&&Ux(o)===Ux(n)){if(!(1&n.flags)&&IS(xS(n),xS(r)))return un;if(1&n.flags||Lx(n,r))return Ix(o,t)}return e}(e,t):e}function Ox(e,t,n){if(1048576&e.flags||2097152&e.flags&&!nx(e)){const r=D(e.types,(e=>Ix(Rx(e,t),n)));return 2097152&e.flags||n?Vb(r):jb(r)}}function Lx(e,t){return!!(131072&jb([Bd(e,t),un]).flags)}function jx(e,t){const n=Qk([ip(e)],[t]),r=iS(e.mapper,n),i=yS(hp(e.target||e),r),o=kp(e)>0||(Fx(e)?Sp(bp(e))>0:function(e,t){const n=ff(t);return!!n&&V($p(e),(e=>!!(16777216&e.flags)&&IS(Zb(e,8576),n)))}(e,t));return Tl(i,!0,o)}function Rx(e,t,n=0,r,i,o){return Jx(e,t,n,r,i,o)||(r?Et:Lt)}function Bx(e,t){return IF(e,(e=>{if(384&e.flags){const n=lC(e);if(zT(n)){const e=+n;return e>=0&&e<t}}return!1}))}function Jx(e,t,n=0,r,i,o){if(e===Dt||t===Dt)return Dt;if(!oT(e=Vf(e))||98304&t.flags||!Kj(t,12)||(t=Vt),j.noUncheckedIndexedAccess&&32&n&&(n|=1),Px(t)||(r&&199!==r.kind?_w(e)&&!Bx(t,Cb(e.target)):Ex(e)&&(!lw(e)||!Bx(t,Cb(e.target)))||Gf(e))){if(3&e.flags)return e;const r=1&n,a=e.id+","+t.id+","+r+ay(i,o);let s=lt.get(a);return s||lt.set(a,s=function(e,t,n,r,i){const o=Ds(8388608);return o.objectType=e,o.indexType=t,o.accessFlags=n,o.aliasSymbol=r,o.aliasTypeArguments=i,o}(e,t,r,i,o)),s}const a=wf(e);if(1048576&t.flags&&!(16&t.flags)){const s=[];let c=!1;for(const i of t.types){const o=xx(e,a,i,t,r,n|(c?128:0));if(o)s.push(o);else{if(!r)return;c=!0}}if(c)return;return 4&n?Vb(s,0,i,o):jb(s,1,i,o)}return xx(e,a,t,t,r,72|n)}function zx(e){const t=sa(e);if(!t.resolvedType){const n=Bk(e.objectType),r=Bk(e.indexType),i=sk(e);t.resolvedType=Rx(n,r,0,e,i,ck(i))}return t.resolvedType}function qx(e){const t=sa(e);if(!t.resolvedType){const n=Ls(32,e.symbol);n.declaration=e,n.aliasSymbol=sk(e),n.aliasTypeArguments=ck(n.aliasSymbol),t.resolvedType=n,lp(n)}return t.resolvedType}function Ux(e){return 33554432&e.flags?Ux(e.baseType):8388608&e.flags&&(33554432&e.objectType.flags||33554432&e.indexType.flags)?Rx(Ux(e.objectType),Ux(e.indexType)):e}function Vx(e){return DD(e)&&l(e.elements)>0&&!V(e.elements,(e=>ED(e)||PD(e)||FD(e)&&!(!e.questionToken&&!e.dotDotDotToken)))}function Wx(e,t){return Fx(e)||t&&lw(e)&&V(wb(e),Fx)}function Hx(e,t,n,i,o,a){let s,c,_=0;for(;;){if(1e3===_)return Ro(r,_a.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;const d=yS(Ux(e.checkType),t),p=yS(e.extendsType,t);if(d===Et||p===Et)return Et;if(d===Dt||p===Dt)return Dt;const f=a&&Ny(d)?d.constraint:d,m=oh(e.node.checkType),g=oh(e.node.extendsType),h=Vx(m)&&Vx(g)&&l(m.elements)===l(g.elements),y=Wx(f,h);let v;if(e.inferTypeParameters){const n=Xw(e.inferTypeParameters,void 0,0);t&&(n.nonFixingMapper=iS(n.nonFixingMapper,t)),y||xN(n.inferences,d,p,1536),v=t?iS(n.mapper,t):n.mapper}const b=v?yS(e.extendsType,v):p;if(!y&&!Wx(b,h)){if(!(3&b.flags)&&(1&f.flags||!IS(bS(f),bS(b)))){(1&f.flags||n&&!(131072&b.flags)&&EF(bS(b),(e=>IS(e,bS(f)))))&&(c||(c=[])).push(yS(Bk(e.node.trueType),v||t));const r=Bk(e.node.falseType);if(16777216&r.flags){const n=r.root;if(n.node.parent===e.node&&(!n.isDistributive||n.checkType===e.checkType)){e=n;continue}if(u(r,t))continue}s=yS(r,t);break}if(3&b.flags||IS(xS(f),xS(b))){const n=Bk(e.node.trueType),r=v||t;if(u(n,r))continue;s=yS(n,r);break}}s=Ds(16777216),s.root=e,s.checkType=yS(e.checkType,t),s.extendsType=yS(e.extendsType,t),s.mapper=t,s.combinedMapper=v,s.aliasSymbol=i||e.aliasSymbol,s.aliasTypeArguments=i?o:Wk(e.aliasTypeArguments,t);break}return c?jb(re(c,s)):s;function u(n,r){if(16777216&n.flags&&r){const a=n.root;if(a.outerTypeParameters){const s=iS(n.mapper,r),c=D(a.outerTypeParameters,(e=>Yk(e,s))),l=Qk(a.outerTypeParameters,c),u=a.isDistributive?Yk(a.checkType,l):void 0;if(!(u&&u!==a.checkType&&1179648&u.flags))return e=a,t=l,i=void 0,o=void 0,a.aliasSymbol&&_++,!0}}return!1}}function Kx(e){return e.resolvedTrueType||(e.resolvedTrueType=yS(Bk(e.root.node.trueType),e.mapper))}function Gx(e){return e.resolvedFalseType||(e.resolvedFalseType=yS(Bk(e.root.node.falseType),e.mapper))}function Zx(e){let t;return e.locals&&e.locals.forEach((e=>{262144&e.flags&&(t=re(t,Tu(e)))})),t}function nk(e){return VN(e)?[e]:re(nk(e.left),e.right)}function ik(e){var t;const n=sa(e);if(!n.resolvedType){if(!uf(e))return Ro(e.argument,_a.String_literal_expected),n.resolvedSymbol=xt,n.resolvedType=Et;const r=e.isTypeOf?111551:16777216&e.flags?900095:788968,i=Za(e,e.argument.literal);if(!i)return n.resolvedSymbol=xt,n.resolvedType=Et;const o=!!(null==(t=i.exports)?void 0:t.get("export=")),a=rs(i,!1);if(wd(e.qualifier))if(a.flags&r)n.resolvedType=ok(e,n,a,r);else{Ro(e,111551===r?_a.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:_a.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=xt,n.resolvedType=Et}else{const t=nk(e.qualifier);let i,s=a;for(;i=t.shift();){const a=t.length?1920:r,c=fs(Ja(s)),l=e.isTypeOf||Em(e)&&o?fm(F_(c),i.escapedText,!1,!0):void 0,_=(e.isTypeOf?void 0:ca(_s(c),i.escapedText,a))??l;if(!_)return Ro(i,_a.Namespace_0_has_no_exported_member_1,Ga(s),Pp(i)),n.resolvedType=Et;sa(i).resolvedSymbol=_,sa(i.parent).resolvedSymbol=_,s=_}n.resolvedType=ok(e,n,s,r)}}return n.resolvedType}function ok(e,t,n,r){const i=Ja(n);return t.resolvedSymbol=i,111551===r?qL(F_(n),e):Sy(e,i)}function ak(e){const t=sa(e);if(!t.resolvedType){const n=sk(e);if(!e.symbol||0===kd(e.symbol).size&&!n)t.resolvedType=Pn;else{let r=Ls(16,e.symbol);r.aliasSymbol=n,r.aliasTypeArguments=ck(n),cP(e)&&e.isArrayType&&(r=Uv(r)),t.resolvedType=r}}return t.resolvedType}function sk(e){let t=e.parent;for(;jD(t)||HE(t)||MD(t)&&148===t.operator;)t=t.parent;return Fg(t)?hs(t):void 0}function ck(e){return e?H_(e):void 0}function lk(e){return!!(524288&e.flags)&&!Tp(e)}function _k(e){return eT(e)||!!(474058748&e.flags)}function uk(e,t){if(!(1048576&e.flags))return e;if(h(e.types,_k))return y(e.types,eT)||Nn;const n=y(e.types,(e=>!_k(e)));if(!n)return e;return y(e.types,(e=>e!==n&&!_k(e)))?e:function(e){const n=Ku();for(const r of $p(e))if(6&ox(r));else if(pk(r)){const e=65536&r.flags&&!(32768&r.flags),i=$o(16777220,r.escapedName,tp(r)|(t?8:0));i.links.type=e?jt:Tl(F_(r),!0),i.declarations=r.declarations,i.links.nameType=aa(r).nameType,i.links.syntheticOrigin=r,n.set(r.escapedName,i)}const r=zs(e.symbol,n,s,s,qm(e));return r.objectFlags|=131200,r}(n)}function dk(e,t,n,r,i){if(1&e.flags||1&t.flags)return wt;if(2&e.flags||2&t.flags)return Lt;if(131072&e.flags)return t;if(131072&t.flags)return e;if(1048576&(e=uk(e,i)).flags)return $b([e,t])?JF(e,(e=>dk(e,t,n,r,i))):Et;if(1048576&(t=uk(t,i)).flags)return $b([e,t])?JF(t,(t=>dk(e,t,n,r,i))):Et;if(473960444&t.flags)return e;if(Ex(e)||Ex(t)){if(eT(e))return t;if(2097152&e.flags){const o=e.types,a=o[o.length-1];if(lk(a)&&lk(t))return Vb($(o.slice(0,o.length-1),[dk(a,t,n,r,i)]))}return Vb([e,t])}const o=Ku(),a=new Set,c=e===Nn?qm(t):Md([e,t]);for(const e of $p(t))6&ox(e)?a.add(e.escapedName):pk(e)&&o.set(e.escapedName,fk(e,i));for(const t of $p(e))if(!a.has(t.escapedName)&&pk(t))if(o.has(t.escapedName)){const e=o.get(t.escapedName),n=F_(e);if(16777216&e.flags){const r=$(t.declarations,e.declarations),i=$o(4|16777216&t.flags,t.escapedName),a=F_(t),s=Pw(a),c=Pw(n);i.links.type=s===c?a:jb([a,c],2),i.links.leftSpread=t,i.links.rightSpread=e,i.declarations=r,i.links.nameType=aa(t).nameType,o.set(t.escapedName,i)}}else o.set(t.escapedName,fk(t,i));const l=zs(n,o,s,s,E(c,(e=>function(e,t){return e.isReadonly!==t?Rh(e.keyType,e.type,t,e.declaration):e}(e,i))));return l.objectFlags|=2228352|r,l}function pk(e){var t;return!(V(e.declarations,Kl)||106496&e.flags&&(null==(t=e.declarations)?void 0:t.some((e=>u_(e.parent)))))}function fk(e,t){const n=65536&e.flags&&!(32768&e.flags);if(!n&&t===Jj(e))return e;const r=$o(4|16777216&e.flags,e.escapedName,tp(e)|(t?8:0));return r.links.type=n?jt:F_(e),r.declarations=e.declarations,r.links.nameType=aa(e).nameType,r.links.syntheticOrigin=e,r}function mk(e,t,n,r){const i=Es(e,n);return i.value=t,i.regularType=r||i,i}function gk(e){if(2976&e.flags){if(!e.freshType){const t=mk(e.flags,e.value,e.symbol,e);t.freshType=t,e.freshType=t}return e.freshType}return e}function hk(e){return 2976&e.flags?e.regularType:1048576&e.flags?e.regularType||(e.regularType=JF(e,hk)):e}function yk(e){return!!(2976&e.flags)&&e.freshType===e}function kk(e){let t;return ot.get(e)||(ot.set(e,t=mk(128,e)),t)}function wk(e){let t;return at.get(e)||(at.set(e,t=mk(256,e)),t)}function Nk(e){let t;const n=hT(e);return st.get(n)||(st.set(n,t=mk(2048,e)),t)}function Pk(e,t,n){let r;const i=`${t}${"string"==typeof e?"@":"#"}${e}`,o=1024|("string"==typeof e?128:256);return ct.get(i)||(ct.set(i,r=mk(o,e,n)),r)}function Ak(e){if(Em(e)&&HE(e)){const t=Vg(e);t&&(e=Ag(t)||t)}if(Lf(e)){const t=Of(e)?ys(e.left):ys(e);if(t){const e=aa(t);return e.uniqueESSymbolType||(e.uniqueESSymbolType=function(e){const t=Es(8192,e);return t.escapedName=`__@${t.symbol.escapedName}@${HB(t.symbol)}`,t}(t))}}return cn}function Ik(e){const t=sa(e);return t.resolvedType||(t.resolvedType=function(e){const t=em(e,!1,!1),n=t&&t.parent;if(n&&(u_(n)||264===n.kind)&&!Fv(t)&&(!mD(t)||ch(e,t.body)))return du(hs(n)).thisType;if(n&&GD(n)&&uF(n.parent)&&6===tg(n.parent))return du(ys(n.parent.left).parent).thisType;const r=16777216&e.flags?qg(e):void 0;return r&&rF(r)&&uF(r.parent)&&3===tg(r.parent)?du(ys(r.parent.left).parent).thisType:CL(t)&&ch(e,t.body)?du(hs(t)).thisType:(Ro(e,_a.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Et)}(e)),t.resolvedType}function Rk(e){return Bk(Mk(e.type)||e.type)}function Mk(e){switch(e.kind){case 196:return Mk(e.type);case 189:if(1===e.elements.length&&(191===(e=e.elements[0]).kind||202===e.kind&&e.dotDotDotToken))return Mk(e.type);break;case 188:return e.elementType}}function Bk(e){return function(e,t){let n,r=!0;for(;t&&!pu(t)&&320!==t.kind;){const i=t.parent;if(169===i.kind&&(r=!r),(r||8650752&e.flags)&&194===i.kind&&t===i.trueType){const t=jy(e,i.checkType,i.extendsType);t&&(n=re(n,t))}else if(262144&e.flags&&200===i.kind&&!i.nameType&&t===i.type){const t=Bk(i);if(ip(t)===Ux(e)){const e=pS(t);if(e){const t=rf(e);t&&IF(t,BC)&&(n=re(n,jb([Wt,bn])))}}}t=i}return n?Dy(e,Vb(n)):e}(qk(e),e)}function qk(e){switch(e.kind){case 133:case 312:case 313:return wt;case 159:return Lt;case 154:return Vt;case 150:return Wt;case 163:return $t;case 136:return sn;case 155:return cn;case 116:return ln;case 157:return jt;case 106:return qt;case 146:return un;case 151:return 524288&e.flags&&!ie?wt:mn;case 141:return It;case 197:case 110:return Ik(e);case 201:return function(e){if(106===e.literal.kind)return qt;const t=sa(e);return t.resolvedType||(t.resolvedType=hk(IR(e.literal))),t.resolvedType}(e);case 183:case 233:return zy(e);case 182:return e.assertsModifier?ln:sn;case 186:return Uy(e);case 188:case 189:return function(e){const t=sa(e);if(!t.resolvedType){const n=$v(e);if(n===On)t.resolvedType=Nn;else if(189===e.kind&&V(e.elements,(e=>!!(8&Vv(e))))||!Qv(e)){const r=188===e.kind?[Bk(e.elementType)]:D(e.elements,Bk);t.resolvedType=vb(n,r)}else t.resolvedType=189===e.kind&&0===e.elements.length?n:py(n,e,void 0)}return t.resolvedType}(e);case 190:return function(e){return Tl(Bk(e.type),!0)}(e);case 192:return function(e){const t=sa(e);if(!t.resolvedType){const n=sk(e);t.resolvedType=jb(D(e.types,Bk),1,n,ck(n))}return t.resolvedType}(e);case 193:return function(e){const t=sa(e);if(!t.resolvedType){const n=sk(e),r=D(e.types,Bk),i=2===r.length?r.indexOf(Pn):-1,o=i>=0?r[1-i]:Lt,a=!!(76&o.flags||134217728&o.flags&&wx(o));t.resolvedType=Vb(r,a?1:0,n,ck(n))}return t.resolvedType}(e);case 314:return function(e){const t=Bk(e.type);return G?xw(t,65536):t}(e);case 316:return Tl(Bk(e.type));case 202:return function(e){const t=sa(e);return t.resolvedType||(t.resolvedType=e.dotDotDotToken?Rk(e):Tl(Bk(e.type),!0,!!e.questionToken))}(e);case 196:case 315:case 309:return Bk(e.type);case 191:return Rk(e);case 318:return function(e){const t=Bk(e.type),{parent:n}=e,r=e.parent.parent;if(HE(e.parent)&&SP(r)){const e=qg(r),n=pP(r.parent.parent);if(e||n){const i=he(n?r.parent.parent.typeExpression.parameters:e.parameters),o=Bg(r);if(!i||o&&i.symbol===o&&Bu(i))return Uv(t)}}if(cD(n)&&iP(n.parent))return Uv(t);return Tl(t)}(e);case 184:case 185:case 187:case 322:case 317:case 323:return ak(e);case 198:return function(e){const t=sa(e);if(!t.resolvedType)switch(e.operator){case 143:t.resolvedType=rx(Bk(e.type));break;case 158:t.resolvedType=155===e.type.kind?Ak(nh(e.parent)):Et;break;case 148:t.resolvedType=Bk(e.type);break;default:_n.assertNever(e.operator)}return t.resolvedType}(e);case 199:return zx(e);case 200:return qx(e);case 194:return function(e){const t=sa(e);if(!t.resolvedType){const n=Bk(e.checkType),r=sk(e),i=ck(r),o=q_(e,!0),a=i?o:C(o,(t=>dS(t,e))),s={node:e,checkType:n,extendsType:Bk(e.extendsType),isDistributive:!!(262144&n.flags),inferTypeParameters:Zx(e),outerTypeParameters:a,instantiations:void 0,aliasSymbol:r,aliasTypeArguments:i};t.resolvedType=Hx(s,void 0,!1),a&&(s.instantiations=new Map,s.instantiations.set(oy(a),t.resolvedType))}return t.resolvedType}(e);case 195:return function(e){const t=sa(e);return t.resolvedType||(t.resolvedType=ku(hs(e.typeParameter))),t.resolvedType}(e);case 203:return function(e){const t=sa(e);return t.resolvedType||(t.resolvedType=_x([e.head.text,...D(e.templateSpans,(e=>e.literal.text))],D(e.templateSpans,(e=>Bk(e.type))))),t.resolvedType}(e);case 205:return ik(e);case 80:case 166:case 211:const t=hz(e);return t?Tu(t):Et;default:return Et}}function Vk(e,t,n){if(e&&e.length)for(let r=0;r<e.length;r++){const i=e[r],o=n(i,t);if(i!==o){const i=0===r?[]:e.slice(0,r);for(i.push(o),r++;r<e.length;r++)i.push(n(e[r],t));return i}}return e}function Wk(e,t){return Vk(e,t,yS)}function $k(e,t){return Vk(e,t,lS)}function Hk(e,t){return Vk(e,t,kS)}function Qk(e,t){return 1===e.length?Zk(e[0],t?t[0]:wt):function(e,t){return _n.attachDebugPrototypeIfDebug({kind:1,sources:e,targets:t})}(e,t)}function Yk(e,t){switch(t.kind){case 0:return e===t.source?t.target:e;case 1:{const n=t.sources,r=t.targets;for(let t=0;t<n.length;t++)if(e===n[t])return r?r[t]:wt;return e}case 2:{const n=t.sources,r=t.targets;for(let t=0;t<n.length;t++)if(e===n[t])return r[t]();return e}case 3:return t.func(e);case 4:case 5:const n=Yk(e,t.mapper1);return n!==e&&4===t.kind?yS(n,t.mapper2):Yk(n,t.mapper2)}}function Zk(e,t){return _n.attachDebugPrototypeIfDebug({kind:0,source:e,target:t})}function eS(e,t){return _n.attachDebugPrototypeIfDebug({kind:3,func:e,debugInfo:_n.isDebugging?t:void 0})}function tS(e,t){return _n.attachDebugPrototypeIfDebug({kind:2,sources:e,targets:t})}function nS(e,t,n){return _n.attachDebugPrototypeIfDebug({kind:e,mapper1:t,mapper2:n})}function rS(e){return Qk(e,void 0)}function iS(e,t){return e?nS(4,e,t):t}function oS(e,t,n){return n?nS(5,Zk(e,t),n):Zk(e,t)}function aS(e,t,n){return e?nS(5,e,Zk(t,n)):Zk(t,n)}function sS(e){const t=js(e.symbol);return t.target=e,t}function cS(e,t){return Tg(e.kind,e.parameterName,e.parameterIndex,yS(e.type,t))}function lS(e,t,n){let r;if(e.typeParameters&&!n){r=D(e.typeParameters,sS),t=iS(Qk(e.typeParameters,r),t);for(const e of r)e.mapper=t}const i=Dd(e.declaration,r,e.thisParameter&&_S(e.thisParameter,t),Vk(e.parameters,t,_S),void 0,void 0,e.minArgumentCount,167&e.flags);return i.target=e,i.mapper=t,i}function _S(e,t){const n=aa(e);if(n.type&&!rN(n.type)){if(!(65536&e.flags))return e;if(n.writeType&&!rN(n.writeType))return e}1&ix(e)&&(e=n.target,t=iS(n.mapper,t));const r=$o(e.flags,e.escapedName,1|53256&ix(e));return r.declarations=e.declarations,r.parent=e.parent,r.links.target=e,r.links.mapper=t,e.valueDeclaration&&(r.valueDeclaration=e.valueDeclaration),n.nameType&&(r.links.nameType=n.nameType),r}function uS(e,t,n,r){const i=4&e.objectFlags||8388608&e.objectFlags?e.node:e.symbol.declarations[0],o=sa(i),a=4&e.objectFlags?o.resolvedType:64&e.objectFlags?e.target:e;let c=134217728&e.objectFlags?e.outerTypeParameters:o.outerTypeParameters;if(!c){let t=q_(i,!0);if(CL(i)){t=ae(t,lg(i))}c=t||s;const n=8388612&e.objectFlags?[i]:e.symbol.declarations;c=(8388612&a.objectFlags||8192&a.symbol.flags||2048&a.symbol.flags)&&!a.aliasTypeArguments?C(c,(e=>V(n,(t=>dS(e,t))))):c,o.outerTypeParameters=c}if(c.length){const i=iS(e.mapper,t),o=D(c,(e=>Yk(e,i))),s=n||e.aliasSymbol,l=n?r:Wk(e.aliasTypeArguments,t),_=(134217728&e.objectFlags?"S":"")+oy(o)+ay(s,l);a.instantiations||(a.instantiations=new Map,a.instantiations.set(oy(c)+ay(a.aliasSymbol,a.aliasTypeArguments),a));let u=a.instantiations.get(_);if(!u){if(134217728&e.objectFlags)return u=gS(e,t),a.instantiations.set(_,u),u;const n=Qk(c,o);u=4&a.objectFlags?py(e.target,e.node,n,s,l):32&a.objectFlags?function(e,t,n,r){const i=pS(e);if(i){const e=yS(i,t);if(i!==e)return qF(Vf(e),o,n,r)}return yS(lp(e),t)===Dt?Dt:gS(e,t,n,r);function o(n){if(61603843&n.flags&&n!==Dt&&!Gc(n)){if(!e.declaration.nameType){let r;if(RC(n)||1&n.flags&&zc(i,4)<0&&(r=rf(i))&&IF(r,BC))return function(e,t,n){const r=mS(t,Wt,!0,n);return Gc(r)?Et:Uv(r,fS(MC(e),xp(t)))}(n,e,oS(i,n,t));if(lw(n))return function(e,t,n,r){const i=e.target.elementFlags,o=e.target.fixedLength,a=o?oS(n,e,r):r,s=D(wb(e),((e,s)=>{const c=i[s];return s<o?mS(t,kk(""+s),!!(2&c),a):8&c?yS(t,oS(n,e,r)):zC(yS(t,oS(n,Uv(e),r)))??Lt})),c=xp(t),l=4&c?D(i,(e=>1&e?2:e)):8&c?D(i,(e=>2&e?1:e)):i,_=fS(e.target.readonly,xp(t));return k(s,Et)?Et:ob(s,l,_,e.target.labeledElementDeclarations)}(n,e,i,t);if(kf(n))return Vb(D(n.types,o))}return gS(e,oS(i,n,t))}return n}}(a,n,s,l):gS(a,n,s,l),a.instantiations.set(_,u);const r=hx(u);if(3899393&u.flags&&!(524288&r)){const e=V(o,rN);524288&hx(u)||(u.objectFlags|=52&r?524288|(e?1048576:0):e?0:524288)}}return u}return e}function dS(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||241===e.kind||194===e.kind&&RI(e.extendsType,n))return!0;return n(t)}return!0;function n(t){switch(t.kind){case 197:return!!e.isThisType;case 80:return!e.isThisType&&Cf(t)&&function(e){return!(183===e.parent.kind&&e.parent.typeArguments&&e===e.parent.typeName||205===e.parent.kind&&e.parent.typeArguments&&e===e.parent.qualifier)}(t)&&qk(t)===e;case 186:const r=cb(t.exprName);if(!lv(r)){const i=ON(r),o=e.symbol.declarations[0],a=168===o.kind?o.parent:e.isThisType?o:void 0;if(i.declarations&&a)return V(i.declarations,(e=>ch(e,a)))||V(t.typeArguments,n)}return!0;case 174:case 173:return!t.type&&!!t.body||V(t.typeParameters,n)||V(t.parameters,n)||!!t.type&&n(t.type)}return!!RI(t,n)}}function pS(e){const t=lp(e);if(4194304&t.flags){const e=Ux(t.type);if(262144&e.flags)return e}}function fS(e,t){return!!(1&t)||!(2&t)&&e}function mS(e,t,n,r){const i=aS(r,ip(e),t),o=yS(hp(e.target||e),i),a=xp(e);return G&&4&a&&!Hj(o,49152)?Sw(o,!0):G&&8&a&&n?iD(o,524288):o}function gS(e,t,n,r){_n.assert(e.symbol,"anonymous type must have symbol to be instantiated");const i=Ls(-1572865&e.objectFlags|64,e.symbol);if(32&e.objectFlags){i.declaration=e.declaration;const n=ip(e),r=sS(n);i.typeParameter=r,t=iS(Zk(n,r),t),r.mapper=t}return 8388608&e.objectFlags&&(i.node=e.node),134217728&e.objectFlags&&(i.outerTypeParameters=e.outerTypeParameters),i.target=e,i.mapper=t,i.aliasSymbol=n||e.aliasSymbol,i.aliasTypeArguments=n?r:Wk(e.aliasTypeArguments,t),i.objectFlags|=i.aliasTypeArguments?sy(i.aliasTypeArguments):0,i}function hS(e,t,n,r,i){const o=e.root;if(o.outerTypeParameters){const a=D(o.outerTypeParameters,(e=>Yk(e,t))),s=(n?"C":"")+oy(a)+ay(r,i);let c=o.instantiations.get(s);if(!c){const l=Qk(o.outerTypeParameters,a),_=o.checkType;let u,d=o.isDistributive?Vf(Yk(_,l)):void 0;const p=d&&Ny(d)&&lJ(e,t);p&&(u=d.baseType,d=Vf(d.constraint)),c=d&&_!==d&&1179648&d.flags?u?zF(d,(e=>Hx(o,oS(_,Dy(u,e,!0),l),n,void 0,void 0,p))):qF(d,(e=>Hx(o,oS(_,e,l),n)),r,i):Hx(o,l,n,r,i,p),o.instantiations.set(s,c)}return c}return e}function yS(e,t){return e&&t?vS(e,t,void 0,void 0):e}function vS(e,t,n,i){var o;if(!rN(e))return e;if(100===w||S>=5e6)return null==(o=$n)||o.instant($n.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:e.id,instantiationDepth:w,instantiationCount:S}),Ro(r,_a.Type_instantiation_is_excessively_deep_and_possibly_infinite),Et;g++,S++,w++;const a=function(e,t,n,r){const i=e.flags;if(262144&i)return Yk(e,t);if(524288&i){const i=e.objectFlags;if(52&i){if(4&i&&!e.node){const n=e.resolvedTypeArguments,r=Wk(n,t);return r!==n?vb(e.target,r):e}return 1024&i?function(e,t){const n=yS(e.mappedType,t);if(!(32&hx(n)))return e;const r=yS(e.constraintType,t);if(!(4194304&r.flags))return e;const i=aN(yS(e.source,t),n,r);if(i)return i;return e}(e,t):uS(e,t,n,r)}return e}if(3145728&i){const o=1048576&e.flags?e.origin:void 0,a=o&&3145728&o.flags?o.types:e.types,s=Wk(a,t);if(s===a&&n===e.aliasSymbol)return e;const c=n||e.aliasSymbol,l=n?r:Wk(e.aliasTypeArguments,t);return 2097152&i||o&&2097152&o.flags?Vb(s,0,c,l):jb(s,1,c,l)}if(4194304&i)return rx(yS(e.type,t));if(134217728&i)return _x(e.texts,Wk(e.types,t));if(268435456&i)return dx(e.symbol,yS(e.type,t));if(8388608&i){const i=n||e.aliasSymbol,o=n?r:Wk(e.aliasTypeArguments,t);return Rx(yS(e.objectType,t),yS(e.indexType,t),e.accessFlags,void 0,i,o)}if(16777216&i)return hS(e,iS(e.mapper,t),!1,n,r);if(33554432&i){const n=yS(e.baseType,t);if(wy(e))return Ty(n);const r=yS(e.constraint,t);return 8650752&n.flags&&Fx(r)?Dy(n,r):3&r.flags||IS(xS(n),xS(r))?n:8650752&n.flags?Dy(n,r):Vb([r,n])}return e}(e,t,n,i);return w--,a}function bS(e){return 402915327&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=yS(e,kn))}function xS(e){return 402915327&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=yS(e,xn),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function kS(e,t){return Rh(e.keyType,yS(e.type,t),e.isReadonly,e.declaration)}function SS(e){switch(_n.assert(174!==e.kind||Bf(e)),e.kind){case 218:case 219:case 174:case 262:return TS(e);case 210:return V(e.properties,SS);case 209:return V(e.elements,SS);case 227:return SS(e.whenTrue)||SS(e.whenFalse);case 226:return(57===e.operatorToken.kind||61===e.operatorToken.kind)&&(SS(e.left)||SS(e.right));case 303:return SS(e.initializer);case 217:return SS(e.expression);case 292:return V(e.properties,SS)||NE(e.parent)&&V(e.parent.parent.children,SS);case 291:{const{initializer:t}=e;return!!t&&SS(t)}case 294:{const{expression:t}=e;return!!t&&SS(t)}}return!1}function TS(e){return jT(e)||function(e){if(e.typeParameters||gv(e)||!e.body)return!1;if(241!==e.body.kind)return SS(e.body);return!!Nf(e.body,(e=>!!e.expression&&SS(e.expression)))}(e)}function CS(e){return(BT(e)||Bf(e))&&TS(e)}function wS(e){if(524288&e.flags){const t=Op(e);if(t.constructSignatures.length||t.callSignatures.length){const n=Ls(16,e.symbol);return n.members=t.members,n.properties=t.properties,n.callSignatures=s,n.constructSignatures=s,n.indexInfos=s,n}}else if(2097152&e.flags)return Vb(D(e.types,wS));return e}function NS(e,t){return pT(e,t,xo)}function DS(e,t){return pT(e,t,xo)?-1:0}function FS(e,t){return pT(e,t,yo)?-1:0}function ES(e,t){return pT(e,t,go)?-1:0}function PS(e,t){return pT(e,t,go)}function AS(e,t){return pT(e,t,ho)}function IS(e,t){return pT(e,t,yo)}function OS(e,t){return 1048576&e.flags?h(e.types,(e=>OS(e,t))):1048576&t.flags?V(t.types,(t=>OS(e,t))):2097152&e.flags?V(e.types,(e=>OS(e,t))):58982400&e.flags?OS(ff(e)||Lt,t):tT(t)?!!(67633152&e.flags):t===Gn?!!(67633152&e.flags)&&!tT(e):t===Xn?!!(524288&e.flags)&&ZN(e):J_(e,B_(t))||RC(t)&&!MC(t)&&OS(e,nr)}function LS(e,t){return pT(e,t,vo)}function jS(e,t){return LS(e,t)||LS(t,e)}function RS(e,t,n,r,i,o){return NT(e,t,yo,n,r,i,o)}function MS(e,t,n,r,i,o){return BS(e,t,yo,n,r,i,o,void 0)}function BS(e,t,n,r,i,o,a,s){return!!pT(e,t,n)||(!r||!zS(i,e,t,n,o,a,s))&&NT(e,t,n,r,o,a,s)}function JS(e){return!!(16777216&e.flags||2097152&e.flags&&V(e.types,JS))}function zS(e,t,n,r,i,o,a){if(!e||JS(n))return!1;if(!NT(t,n,r,void 0)&&function(e,t,n,r,i,o,a){const s=ym(t,0),c=ym(t,1);for(const l of[c,s])if(V(l,(e=>{const t=Zg(e);return!(131073&t.flags)&&NT(t,n,r,void 0)}))){const r=a||{};RS(t,n,e,i,o,r);return sT(r.errors[r.errors.length-1],Rp(e,l===c?_a.Did_you_mean_to_use_new_with_this_expression:_a.Did_you_mean_to_call_this_expression)),!0}return!1}(e,t,n,r,i,o,a))return!0;switch(e.kind){case 234:if(!yC(e))break;case 294:case 217:return zS(e.expression,t,n,r,i,o,a);case 226:switch(e.operatorToken.kind){case 64:case 28:return zS(e.right,t,n,r,i,o,a)}break;case 210:return function(e,t,n,r,i,o){return!(402915324&n.flags)&&VS(function*(e){if(!l(e.properties))return;for(const t of e.properties){if(UE(t))continue;const e=Zb(hs(t),8576);if(e&&!(131072&e.flags))switch(t.kind){case 178:case 177:case 174:case 304:yield{errorNode:t.name,innerExpression:void 0,nameType:e};break;case 303:yield{errorNode:t.name,innerExpression:t.initializer,nameType:e,errorMessage:Ip(t.name)?_a.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 209:return function(e,t,n,r,i,o){if(402915324&n.flags)return!1;if(HC(t))return VS(HS(e,n),t,n,r,i,o);JA(e,n,!1);const a=ZA(e,1,!0);if(zA(),HC(a))return VS(HS(e,n),a,n,r,i,o);return!1}(e,t,n,r,o,a);case 292:return function(e,t,n,r,i,o){let a,s=VS(function*(e){if(!l(e.properties))return;for(const t of e.properties)OE(t)||pI(rC(t.name))||(yield{errorNode:t.name,innerExpression:t.initializer,nameType:kk(rC(t.name))})}(e),t,n,r,i,o);if(NE(e.parent)&&CE(e.parent.parent)){const a=e.parent.parent,_=TI(kI(e)),u=void 0===_?"children":mc(_),d=kk(u),p=Rx(n,d),f=ly(a.children);if(!l(f))return s;const m=l(f)>1;let g,h;if(bv(!1)!==On){const e=qv(wt);g=OF(p,(t=>IS(t,e))),h=OF(p,(t=>!IS(t,e)))}else g=OF(p,KC),h=OF(p,(e=>!KC(e)));if(m){if(g!==un){const e=ob(hI(a,0)),t=function*(e,t){if(!l(e.children))return;let n=0;for(let r=0;r<e.children.length;r++){const i=WS(e.children[r],wk(r-n),t);i?yield i:n++}}(a,c);s=function(e,t,n,r,i,o){const a=OF(n,KC),s=OF(n,(e=>!KC(e))),c=s!==un?gB(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!==un?qS(t,a,_):void 0;if(!p||8388608&p.flags||(d=c?jb([c,p]):p),!d)continue;let f=Jx(t,_);if(!f)continue;const m=vx(_,void 0);if(!NT(f,d,r,void 0)){if(l=!0,!(s&&zS(s,f,d,r,void 0,i,o))){const n=o||{},c=s?US(s,f):f;if(_e&&AT(c,d)){const t=Rp(e,_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,lc(c),lc(d));po.add(t),n.errors=[t]}else{const o=!!(m&&16777216&(fm(a,m)||xt).flags),s=!!(m&&16777216&(fm(t,m)||xt).flags);d=Fw(d,o),f=Fw(f,o&&s);NT(c,d,r,e,u,i,n)&&c!==f&&NT(f,d,r,e,u,i,n)}}}}return l}(t,e,g,r,i,o)||s}else if(!pT(Rx(t,d),p,r)){s=!0;const e=Ro(a.openingElement.tagName,_a.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,u,lc(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}else if(h!==un){const e=WS(f[0],d,c);e&&(s=VS(function*(){yield e}(),t,n,r,i,o)||s)}else if(!pT(Rx(t,d),p,r)){s=!0;const e=Ro(a.openingElement.tagName,_a.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,u,lc(p));o&&o.skipLogging&&(o.errors||(o.errors=[])).push(e)}}return s;function c(){if(!a){const t=Gd(e.parent.tagName),r=TI(kI(e)),i=void 0===r?"children":mc(r),o=Rx(n,kk(i)),s=_a._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:Qx(s,t,i,lc(o))}}return a}}(e,t,n,r,o,a);case 219:return function(e,t,n,r,i,o){if(DF(e.body))return!1;if(V(e.parameters,Fu))return!1;const a=qO(t);if(!a)return!1;const s=ym(n,0);if(!l(s))return!1;const c=e.body,_=Zg(a),u=jb(D(s,Zg));if(!NT(_,u,r,void 0)){const t=c&&zS(c,_,u,r,void 0,i,o);if(t)return t;const a=o||{};if(NT(_,u,r,c,void 0,i,a),a.errors)return n.symbol&&l(n.symbol.declarations)&&sT(a.errors[a.errors.length-1],Rp(n.symbol.declarations[0],_a.The_expected_type_comes_from_the_return_type_of_this_signature)),2&Oh(e)||Wc(_,"then")||!NT(wj(_),u,r,void 0)||sT(a.errors[a.errors.length-1],Rp(e,_a.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}(e,t,n,r,o,a)}return!1}function qS(e,t,n){const r=Jx(t,n);if(r)return r;if(1048576&t.flags){const r=OT(e,t);if(r)return Jx(r,n)}}function US(e,t){JA(e,t,!1);const n=bR(e,1);return zA(),n}function VS(e,t,n,r,i,o){let a=!1;for(const s of e){const{errorNode:e,innerExpression:c,nameType:_,errorMessage:u}=s;let d=qS(t,n,_);if(!d||8388608&d.flags)continue;let p=Jx(t,_);if(!p)continue;const f=vx(_,void 0);if(!NT(p,d,r,void 0)){if(a=!0,!(c&&zS(c,p,d,r,void 0,i,o))){const a=o||{},s=c?US(c,p):p;if(_e&&AT(s,d)){const t=Rp(e,_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,lc(s),lc(d));po.add(t),a.errors=[t]}else{const o=!!(f&&16777216&(fm(n,f)||xt).flags),c=!!(f&&16777216&(fm(t,f)||xt).flags);d=Fw(d,o),p=Fw(p,o&&c);NT(s,d,r,e,u,i,a)&&s!==p&&NT(p,d,r,e,u,i,a)}if(a.errors){const e=a.errors[a.errors.length-1],t=cC(_)?lC(_):void 0,r=void 0!==t?fm(n,t):void 0;let i=!1;if(!r){const t=og(n,_);t&&t.declaration&&!yd(t.declaration).hasNoDefaultLib&&(i=!0,sT(e,Rp(t.declaration,_a.The_expected_type_comes_from_this_index_signature)))}if(!i&&(r&&l(r.declarations)||n.symbol&&l(n.symbol.declarations))){const i=r&&l(r.declarations)?r.declarations[0]:n.symbol.declarations[0];yd(i).hasNoDefaultLib||sT(e,Rp(i,_a.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,!t||8192&_.flags?lc(_):mc(t),lc(n)))}}}}}return a}function WS(e,t,n){switch(e.kind){case 294: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 284:case 285:case 288:return{errorNode:e,innerExpression:e,nameType:t};default:return _n.assertNever(e,"Found invalid jsx child")}}function*HS(e,t){const n=l(e.elements);if(n)for(let r=0;r<n;r++){if(HC(t)&&!fm(t,""+r))continue;const n=e.elements[r];if(hF(n))continue;const i=wk(r),o=YO(n);yield{errorNode:o,innerExpression:o,nameType:i}}}function KS(e,t,n,r,i){return NT(e,t,vo,n,r,i)}function GS(e){if(!e.typeParameters&&(!e.thisParameter||Hc(HL(e.thisParameter)))&&1===e.parameters.length&&ZB(e)){const t=HL(e.parameters[0]);return!!(131073&(RC(t)?fy(t)[0]:t).flags&&3&Zg(e).flags)}return!1}function XS(e,t,n,r,i,o,a,s){if(e===t)return-1;if(!(16&n&&GS(e))&&GS(t))return-1;if(16&n&&GS(e)&&!GS(t))return 0;const c=ij(t);if(!aj(t)&&(8&n?aj(e)||ij(e)>c:oj(e)>c))return!r||8&n||i(_a.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,oj(e),c),0;let l=ij(e);if(!aj(e)&&(8&n?aj(t)||ij(t)>l:oj(t)>l))return!r||8&n||i(_a.Target_signature_provides_too_many_arguments_Expected_0_or_more_but_got_1,oj(t),l),0;e.typeParameters&&e.typeParameters!==t.typeParameters&&(e=WO(e,t=Dh(t),void 0,a)),l=ij(e);const _=cj(e),u=cj(t);(_||u)&&yS(_||u,s);const d=t.declaration?t.declaration.kind:0,p=!(3&n)&&Q&&174!==d&&173!==d&&176!==d;let f=-1;const m=Hg(e);if(m&&m!==ln){const e=Hg(t);if(e){const t=!p&&a(m,e,!1)||a(e,m,r);if(!t)return r&&i(_a.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<g;c++){const l=c===h?rj(e,c):tj(e,c),_=c===h?rj(t,c):tj(t,c);if(l&&_&&(l!==_||8&n)){const u=3&n||zO(e,c)?void 0:qO(Tw(l)),d=3&n||zO(t,c)?void 0:qO(Tw(_));let m=u&&d&&!Kg(u)&&!Kg(d)&&eD(l,50331648)===eD(_,50331648)?XS(d,u,8&n|(p?2:1),r,i,o,a,s):!(3&n)&&!p&&a(l,_,!1)||a(_,l,r);if(m&&8&n&&c>=oj(e)&&c<oj(t)&&a(l,_,!1)&&(m=0),!m)return r&&i(_a.Types_of_parameters_0_and_1_are_incompatible,mc(XL(e,c)),mc(XL(t,c))),0;f&=m}}if(!(4&n)){const s=_h(t)?wt:t.declaration&&CL(t.declaration)?du(fs(t.declaration.symbol)):Zg(t);if(s===ln||s===wt)return f;const c=_h(e)?wt:e.declaration&&CL(e.declaration)?du(fs(e.declaration.symbol)):Zg(e),l=Kg(t);if(l){const t=Kg(e);if(t)f&=function(e,t,n,r,i){if(e.kind!==t.kind)return n&&(r(_a.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),r(_a.Type_predicate_0_is_not_assignable_to_1,Fc(e),Fc(t))),0;if((1===e.kind||3===e.kind)&&e.parameterIndex!==t.parameterIndex)return n&&(r(_a.Parameter_0_is_not_in_the_same_position_as_parameter_1,e.parameterName,t.parameterName),r(_a.Type_predicate_0_is_not_assignable_to_1,Fc(e),Fc(t))),0;const o=e.type===t.type?-1:e.type&&t.type?i(e.type,t.type,n):0;0===o&&n&&r(_a.Type_predicate_0_is_not_assignable_to_1,Fc(e),Fc(t));return o}(t,l,r,i,a);else if(zf(l)||qf(l))return r&&i(_a.Signature_0_must_be_a_type_predicate,cc(e)),0}else f&=1&n&&a(s,c,!1)||a(c,s,r),!f&&r&&o&&o(c,s)}return f}function QS(e,t){const n=Nh(e),r=Nh(t),i=Zg(n),o=Zg(r);return!(o!==ln&&!pT(o,i,yo)&&!pT(i,o,yo))&&0!==XS(n,r,!0?4:0,!1,void 0,void 0,FS,void 0)}function YS(e){return e!==Ln&&0===e.properties.length&&0===e.callSignatures.length&&0===e.constructSignatures.length&&0===e.indexInfos.length}function eT(e){return 524288&e.flags?!Tp(e)&&YS(Op(e)):!!(67108864&e.flags)||(1048576&e.flags?V(e.types,eT):!!(2097152&e.flags)&&h(e.types,eT))}function tT(e){return!!(16&hx(e)&&(e.members&&YS(e)||e.symbol&&2048&e.symbol.flags&&0===kd(e.symbol).size))}function iT(e){return!!(32768&(1048576&e.flags?e.types[0]:e).flags)}function oT(e){return 524288&e.flags&&!Tp(e)&&0===$p(e).length&&1===qm(e).length&&!!Qm(e,Vt)||3145728&e.flags&&h(e.types,oT)||!1}function aT(e,t,n){const r=8&e.flags?vs(e):e,i=8&t.flags?vs(t):t;if(r===i)return!0;if(!(r.escapedName===i.escapedName&&256&r.flags&&256&i.flags))return!1;const o=HB(r)+","+HB(i),a=Co.get(o);if(void 0!==a&&!(2&a&&n))return!!(1&a);const s=F_(i);for(const e of $p(F_(r)))if(8&e.flags){const t=fm(s,e.escapedName);if(!(t&&8&t.flags))return n&&n(_a.Property_0_is_missing_in_type_1,yc(e),lc(Tu(i),void 0,64)),Co.set(o,2),!1;const r=qz($u(e,306)).value,a=qz($u(t,306)).value;if(r!==a){const e="string"==typeof r,s="string"==typeof a;if(void 0!==r&&void 0!==a){if(n){const o=e?`"${xy(r)}"`:r,c=s?`"${xy(a)}"`:a;n(_a.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,yc(i),yc(t),c,o)}return Co.set(o,2),!1}if(e||s){if(n){const e=r??a;_n.assert("string"==typeof e);const o=`"${xy(e)}"`;n(_a.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,yc(i),yc(t),o)}return Co.set(o,2),!1}}}return Co.set(o,1),!0}function dT(e,t,n,r){const i=e.flags,o=t.flags;if(1&o||131072&i||e===Dt)return!0;if(2&o&&!(n===ho&&1&i))return!0;if(131072&o)return!1;if(402653316&i&&4&o)return!0;if(128&i&&1024&i&&128&o&&!(1024&o)&&e.value===t.value)return!0;if(296&i&&8&o)return!0;if(256&i&&1024&i&&256&o&&!(1024&o)&&e.value===t.value)return!0;if(2112&i&&64&o)return!0;if(528&i&&16&o)return!0;if(12288&i&&4096&o)return!0;if(32&i&&32&o&&e.symbol.escapedName===t.symbol.escapedName&&aT(e.symbol,t.symbol,r))return!0;if(1024&i&&1024&o){if(1048576&i&&1048576&o&&aT(e.symbol,t.symbol,r))return!0;if(2944&i&&2944&o&&e.value===t.value&&aT(e.symbol,t.symbol,r))return!0}if(32768&i&&(!G&&!(3145728&o)||49152&o))return!0;if(65536&i&&(!G&&!(3145728&o)||65536&o))return!0;if(524288&i&&67108864&o&&(n!==ho||!tT(e)||8192&hx(e)))return!0;if(n===yo||n===vo){if(1&i)return!0;if(8&i&&(32&o||256&o&&1024&o))return!0;if(256&i&&!(1024&i)&&(32&o||256&o&&1024&o&&e.value===t.value))return!0;if(function(e){if(G&&1048576&e.flags){if(!(33554432&e.objectFlags)){const t=e.types;e.objectFlags|=33554432|(t.length>=3&&32768&t[0].flags&&65536&t[1].flags&&V(t,tT)?67108864:0)}return!!(67108864&e.objectFlags)}return!1}(t))return!0}return!1}function pT(e,t,n){if(yk(e)&&(e=e.regularType),yk(t)&&(t=t.regularType),e===t)return!0;if(n!==xo){if(n===vo&&!(131072&t.flags)&&dT(t,e,n)||dT(e,t,n))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){const r=n.get(kC(e,t,0,n,!1));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&t.flags)&&NT(e,t,n,void 0)}function mT(e,t){return 2048&hx(e)&&pI(t.escapedName)}function yT(e,t){for(;;){const n=yk(e)?e.regularType:_w(e)?CT(e,t):4&hx(e)?e.node?uy(e.target,fy(e)):VC(e)||e:3145728&e.flags?TT(e,t):33554432&e.flags?t?e.baseType:Ay(e):25165824&e.flags?Ix(e,t):e;if(n===e)return n;e=n}}function TT(e,t){const n=Vf(e);if(n!==e)return n;if(2097152&e.flags&&function(e){let t=!1,n=!1,r=!1;for(const i of e.types)if(t||(t=!!(465829888&i.flags)),n||(n=!!(98304&i.flags)||tT(i)),r||(r=Ny(i)),t&&n||r)return!0;return!1}(e)){const n=E(e.types,(e=>yT(e,t)));if(n!==e.types)return Vb(n)}return e}function CT(e,t){const n=wb(e),r=E(n,(e=>25165824&e.flags?Ix(e,t):e));return n!==r?bb(e.target,r):e}function NT(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,N=0,F=16e6-n.size>>3;_n.assert(n!==xo||!i,"no error reporting in identity checking");const P=U(e,t,3,!!i,o);if(y&&L(),C){const o=kC(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?_a.Excessive_complexity_comparing_types_0_and_1:_a.Excessive_stack_depth_comparing_types_0_and_1,s=Ro(i||r,a,lc(e),lc(t));c&&(c.errors||(c.errors=[])).push(s)}else if(u){if(a){const e=a();e&&(tk(e,u),u=e)}let r;if(o&&i&&!P&&e.symbol){const i=aa(e.symbol);if(i.originatingImport&&!lf(i.originatingImport)){if(NT(F_(i.target),t,n,void 0)){r=re(r,Rp(i.originatingImport,_a.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=Jp(yd(i),i,u,r);d&&sT(s,...d),c&&(c.errors||(c.errors=[])).push(s),c&&c.skipLogging||po.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,N=e.skipParentCounter,d=e.relatedInfo}function I(){return{errorInfo:u,lastSkippedInfo:h,incompatibleStack:null==y?void 0:y.slice(),overrideNextErrorInfo:w,skipParentCounter:N,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 R(...e[0]),void(t&&J(void 0,...t));let n="";const r=[];for(;e.length;){const[t,...i]=e.pop();switch(t.code){case _a.Types_of_property_0_are_incompatible.code:{0===n.indexOf("new ")&&(n=`(${n})`);const e=""+i[0];n=0===n.length?`${e}`:ms(e,vk(j))?`${n}.${e}`:"["===e[0]&&"]"===e[e.length-1]?`${n}${e}`:`${n}[${e}]`;break}case _a.Call_signature_return_types_0_and_1_are_incompatible.code:case _a.Construct_signature_return_types_0_and_1_are_incompatible.code:case _a.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case _a.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:if(0===n.length){let e=t;t.code===_a.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?e=_a.Call_signature_return_types_0_and_1_are_incompatible:t.code===_a.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(e=_a.Construct_signature_return_types_0_and_1_are_incompatible),r.unshift([e,i[0],i[1]])}else{n=`${t.code===_a.Construct_signature_return_types_0_and_1_are_incompatible.code||t.code===_a.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":""}${n}(${t.code===_a.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||t.code===_a.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"..."})`}break;case _a.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:r.unshift([_a.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,i[0],i[1]]);break;case _a.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:r.unshift([_a.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?R(")"===n[n.length-1]?_a.The_types_returned_by_0_are_incompatible_between_these_types:_a.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,R(e,...t),e.elidedInCompatabilityPyramid=n}t&&J(void 0,...t)}function R(e,...t){_n.assert(!!i),y&&L(),e.elidedInCompatabilityPyramid||(0===N?u=ek(u,e,...t):N--)}function M(e,...t){R(e,...t),N++}function B(e){_n.assert(!!u),d?d.push(e):d=[e]}function J(e,t,r){y&&L();const[i,o]=dc(t,r);let a=t,s=i;131072&r.flags||!ew(t)||ET(r)||(a=nw(t),_n.assert(!IS(a,r),"generalized source shouldn't be assignable"),s=vc(a));if(262144&(8388608&r.flags&&!(8388608&t.flags)?r.objectType.flags:r.flags)&&r!==qn&&r!==Un){const e=ff(r);let n;e&&(IS(a,e)||(n=IS(t,e)))?R(_a._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,lc(e)):(u=void 0,R(_a._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,o,s))}if(e)e===_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&_e&&PT(t,r).length&&(e=_a.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===vo)e=_a.Type_0_is_not_comparable_to_type_1;else if(i===o)e=_a.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(_e&&PT(t,r).length)e=_a.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(128&t.flags&&1048576&r.flags){const e=function(e,t){const n=t.types.filter((e=>!!(128&e.flags)));return Ot(e.value,n,(e=>e.value))}(t,r);if(e)return void R(_a.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,s,o,lc(e))}e=_a.Type_0_is_not_assignable_to_type_1}R(e,s,o)}function z(e,t,n){return lw(e)?e.target.readonly&&JC(t)?(n&&R(_a.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,lc(e),lc(t)),!1):BC(t):MC(e)&&JC(t)?(n&&R(_a.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,lc(e),lc(t)),!1):!lw(t)||RC(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(524288&e.flags&&402784252&t.flags)return n===vo&&!(131072&t.flags)&&dT(t,e,n)||dT(e,t,n,o?R:void 0)?-1:(o&&W(e,t,e,t,a),0);const c=yT(e,!1);let l=yT(t,!0);if(c===l)return-1;if(n===xo)return c.flags!==l.flags?0:67358815&c.flags?-1:($(c,l),ee(c,l,!1,0,r));if(262144&c.flags&&nf(c)===l)return-1;if(470302716&c.flags&&1048576&l.flags){const e=l.types,t=2===e.length&&98304&e[0].flags?e[1]:3===e.length&&98304&e[0].flags&&98304&e[1].flags?e[2]:void 0;if(t&&!(98304&t.flags)&&(l=yT(t,!0),c===l))return-1}if(n===vo&&!(131072&l.flags)&&dT(l,c,n)||dT(c,l,n,o?R:void 0))return-1;if(469499904&c.flags||469499904&l.flags){if(!(2&s)&&TN(c)&&8192&hx(c)&&function(e,t,r){var o;if(!LI(t)||!ie&&4096&hx(t))return!1;const a=!!(2048&hx(e));if((n===yo||n===vo)&&(CF(Gn,t)||!a&&eT(t)))return!1;let s,c=t;1048576&t.flags&&(c=Jq(e,t,U)||function(e){if(Hj(e,67108864)){const t=OF(e,(e=>!(402784252&e.flags)));if(!(131072&t.flags))return t}return e}(t),s=1048576&c.flags?c.types:[c]);for(const t of $p(e))if(K(t,e.symbol)&&!mT(e,t)){if(!OI(c,t.escapedName,a)){if(r){const n=OF(c,LI);if(!i)return _n.fail();if(IE(i)||bu(i)||bu(i.parent)){t.valueDeclaration&&AE(t.valueDeclaration)&&yd(i)===yd(t.valueDeclaration.name)&&(i=t.valueDeclaration.name);const e=sc(t),r=vO(e,n),o=r?sc(r):void 0;o?R(_a.Property_0_does_not_exist_on_type_1_Did_you_mean_2,e,lc(n),o):R(_a.Property_0_does_not_exist_on_type_1,e,lc(n))}else{const r=(null==(o=e.symbol)?void 0:o.declarations)&&pe(e.symbol.declarations);let a;if(t.valueDeclaration&&uc(t.valueDeclaration,(e=>e===r))&&yd(r)===yd(i)){const e=t.valueDeclaration;_n.assertNode(e,v_);const r=e.name;i=r,VN(r)&&(a=bO(r,n))}void 0!==a?M(_a.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,sc(t),lc(n),a):M(_a.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,sc(t),lc(n))}}return!0}if(s&&!U(F_(t),H(s,t.escapedName),3,r))return r&&O(_a.Types_of_property_0_are_incompatible,sc(t)),!0}return!1}(c,l,o))return o&&J(a,c,t.aliasSymbol?t:l),0;const _=(n!==vo||QC(c))&&!(2&s)&&405405692&c.flags&&c!==Gn&&2621440&l.flags&&JT(l)&&($p(c).length>0||Tz(c)),u=!!(2048&hx(c));if(_&&!function(e,t,n){for(const r of $p(e))if(OI(t,r.escapedName,n))return!0;return!1}(c,l,u)){if(o){const n=lc(e.aliasSymbol?e:c),r=lc(t.aliasSymbol?t:l),i=ym(c,0),o=ym(c,1);i.length>0&&U(Zg(i[0]),l,1,!1)||o.length>0&&U(Zg(o[0]),l,1,!1)?R(_a.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,n,r):R(_a.Type_0_has_no_properties_in_common_with_type_1,n,r)}return 0}$(c,l);const d=1048576&c.flags&&c.types.length<4&&!(1048576&l.flags)||1048576&l.flags&&l.types.length<4&&!(469499904&c.flags)?X(c,l,o,s):ee(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=!!VC(e),l=!!VC(t);n=e.aliasSymbol||c?e:n,r=t.aliasSymbol||l?t:r;let _=w>0;if(_&&w--,524288&n.flags&&524288&r.flags){const e=u;z(n,r,!0),u!==e&&(_=!!u)}if(524288&n.flags&&402784252&r.flags)!function(e,t){const n=bc(e.symbol)?lc(e,e.symbol.valueDeclaration):lc(e),r=bc(t.symbol)?lc(t,t.symbol.valueDeclaration):lc(t);(rr===e&&Vt===t||ir===e&&Wt===t||or===e&&sn===t||rv()===e&&cn===t)&&R(_a._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,r,n)}(n,r);else if(n.symbol&&524288&n.flags&&Gn===n)R(_a.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&hx(n)&&2097152&r.flags){const e=r.types,t=vI(FB.IntrinsicAttributes,i),n=vI(FB.IntrinsicClassAttributes,i);if(!Gc(t)&&!Gc(n)&&(k(e,t)||k(e,n)))return}else u=pm(u,t);if(!o&&_){const e=I();let t;return J(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(J(o,n,r),262144&n.flags&&(null==(s=null==(a=n.symbol)?void 0:a.declarations)?void 0:s[0])&&!nf(n)){const e=sS(n);if(e.constraint=yS(r,Zk(n,e)),gf(e)){const e=lc(r,n.symbol.declarations[0]);B(Rp(n.symbol.declarations[0],_a.This_type_parameter_might_need_an_extends_0_constraint,e))}}}function $(e,t){if($n&&3145728&e.flags&&3145728&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 jb(Ce(e,((e,n)=>{var r;const i=3145728&(n=Tf(n)).flags?Uf(n,t):qp(n,t);return re(e,i&&F_(i)||(null==(r=cg(n,t))?void 0:r.type)||jt)}),void 0)||s)}function K(e,t){return e.valueDeclaration&&t.valueDeclaration&&e.valueDeclaration.parent===t.valueDeclaration}function X(e,t,r,i){if(1048576&e.flags){if(1048576&t.flags){const n=e.origin;if(n&&2097152&n.flags&&t.aliasSymbol&&k(n.types,t))return-1;const r=t.origin;if(r&&1048576&r.flags&&e.aliasSymbol&&k(r.types,e))return-1}return n===vo?Z(e,t,r&&!(402784252&e.flags),i):function(e,t,n,r){let i=-1;const o=e.types,a=function(e,t){if(1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags)return UF(t,-32769);return t}(e,t);for(let e=0;e<o.length;e++){const s=o[e];if(1048576&a.flags&&o.length>=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&&!(402784252&e.flags),i)}if(1048576&t.flags)return Y(Ow(e),t,r&&!(402784252&e.flags)&&!(402784252&t.flags),i);if(2097152&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===vo&&402784252&t.flags){const n=E(e.types,(e=>465829888&e.flags?ff(e)||Lt:e));if(n!==e.types){if(131072&(e=Vb(n)).flags)return 0;if(!(2097152&e.flags))return U(e,t,1,!1)||U(t,e,1,!1)}}return Z(e,t,!1,1)}function Q(e,t){let n=-1;const r=e.types;for(const e of r){const r=Y(e,t,!1,0);if(!r)return 0;n&=r}return n}function Y(e,t,r,i){const o=t.types;if(1048576&t.flags){if(Db(o,e))return-1;if(n!==vo&&32768&hx(t)&&!(1024&e.flags)&&(2688&e.flags||(n===go||n===ho)&&256&e.flags)){const t=e===e.regularType?e.freshType:e.regularType,n=128&e.flags?Vt:256&e.flags?Wt:2048&e.flags?$t:void 0;return n&&Db(o,n)||t&&Db(o,t)?-1:0}const r=KN(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=OT(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(1048576&e.flags&&Db(i,t))return-1;const o=i.length;for(let e=0;e<o;e++){const a=U(i[e],t,1,n&&e===o-1,void 0,r);if(a)return a}return 0}function ee(e,t,r,i,o){var a,c,l;if(C)return 0;const _=kC(e,t,i,n,!1),d=n.get(_);if(void 0!==d&&(!(r&&2&d)||96&d)){if(an){const t=24&d;8&t&&yS(e,wn),16&t&&yS(e,Cn)}if(r&&96&d){R(32&d?_a.Excessive_complexity_comparing_types_0_and_1:_a.Excessive_stack_depth_comparing_types_0_and_1,lc(e),lc(t)),w++}return 1&d?-1:0}if(F<=0)return C=!0,0;if(p){if(f.has(_))return 3;const r=_.startsWith("*")?kC(e,t,i,n,!0):void 0;if(r&&f.has(r))return 3;if(100===x||100===S)return C=!0,0}else p=[],f=new Set,m=[],g=[];const h=v;p[v]=_,f.add(_),v++;const y=T;let b;1&o&&(m[x]=e,x++,1&T||!FC(e,m,x)||(T|=1)),2&o&&(g[S]=t,S++,2&T||!FC(t,g,S)||(T|=2));let k,N=0;return an&&(b=an,an=e=>(N|=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===xo){if(3145728&_){let n=Q(e,t);return n&&(n&=Q(t,e)),n}if(4194304&_)return U(e.type,t.type,3,!1);if(8388608&_&&(a=U(e.objectType,t.objectType,3,!1))&&(a&=U(e.indexType,t.indexType,3,!1)))return a;if(16777216&_&&e.root.isDistributive===t.root.isDistributive&&(a=U(e.checkType,t.checkType,3,!1))&&(a&=U(e.extendsType,t.extendsType,3,!1))&&(a&=U(Kx(e),Kx(t),3,!1))&&(a&=U(Gx(e),Gx(t),3,!1)))return a;if(33554432&_&&(a=U(e.baseType,t.baseType,3,!1))&&(a&=U(e.constraint,t.constraint,3,!1)))return a;if(!(524288&_))return 0}else if(3145728&_||3145728&d){if(a=X(e,t,r,i))return a;if(!(465829888&_||524288&_&&1048576&d||2097152&_&&467402752&d))return 0}if(17301504&_&&e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol&&!dC(e)&&!dC(t)){const n=GT(e.aliasSymbol);if(n===s)return 1;const r=aa(e.aliasSymbol).typeParameters,o=Cg(r),a=y(Eg(e.aliasTypeArguments,r,o,Em(e.aliasSymbol.valueDeclaration)),Eg(t.aliasTypeArguments,r,o,Em(e.aliasSymbol.valueDeclaration)),n,i);if(void 0!==a)return a}if(uw(e)&&!e.target.readonly&&(a=U(fy(e)[0],t,1))||uw(t)&&(t.target.readonly||JC(ff(e)||e))&&(a=U(e,fy(t)[0],2)))return a;if(262144&d){if(32&hx(e)&&!e.declaration.nameType&&U(rx(t),lp(e),3)&&!(4&xp(e))){const n=hp(e),i=Rx(t,ip(e));if(a=U(n,i,3,r))return a}if(n===vo&&262144&_){let n=rf(e);if(n)for(;n&&EF(n,(e=>!!(262144&e.flags)));){if(a=U(n,t,1,!1))return a;n=rf(n)}return 0}}else if(4194304&d){const n=t.type;if(4194304&_&&(a=U(n,e.type,3,!1)))return a;if(lw(n)){if(a=U(e,Sb(n),2,r))return a}else{const i=af(n);if(i){if(-1===U(e,rx(i,4|t.indexFlags),2,r))return-1}else if(Tp(n)){const t=fp(n),i=lp(n);let o;if(t&&vp(n)){o=jb([te(t,n),t])}else o=t||i;if(-1===U(e,o,2,r))return-1}}}else if(8388608&d){if(8388608&_){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===yo||n===vo){const n=t.objectType,s=t.indexType,l=ff(n)||n,_=ff(s)||s;if(!Ex(l)&&!Px(_)){const t=Jx(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(Tp(t)&&n!==xo){const n=!!t.declaration.nameType,i=hp(t),s=xp(t);if(!(8&s)){if(!n&&8388608&i.flags&&i.objectType===e&&i.indexType===ip(t))return-1;if(!Tp(e)){const i=n?fp(t):lp(t),l=rx(e,2),_=4&s,d=_?Bd(i,l):void 0;if(_?!(131072&d.flags):U(i,l,3)){const o=hp(t),s=ip(t),c=UF(o,-98305);if(!n&&8388608&c.flags&&c.indexType===s){if(a=U(e,c.objectType,2,r))return a}else{const t=Rx(e,n?d||i:d?Vb([d,s]):s);if(a=U(t,o,3,r))return a}}c=u,A(o)}}}else if(16777216&d){if(FC(t,g,S,10))return 3;const n=t;if(!(n.root.inferTypeParameters||(p=n.root,p.isDistributive&&(dS(p.checkType,p.node.trueType)||dS(p.checkType,p.node.falseType)))||16777216&e.flags&&e.root===n.root)){const t=!IS(bS(n.checkType),bS(n.extendsType)),r=!t&&IS(xS(n.checkType),xS(n.extendsType));if((a=t?-1:U(e,Kx(n),2,!1,void 0,i))&&(a&=r?-1:U(e,Gx(n),2,!1,void 0,i),a))return a}}else if(134217728&d){if(134217728&_){if(n===vo)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;yS(e,Cn)}if(vN(e,t))return-1}else if(268435456&t.flags&&!(268435456&e.flags)&&gN(e,t))return-1;var p;if(8650752&_){if(!(8388608&_&&8388608&d)){const n=nf(e)||Lt;if(a=U(n,t,1,!1,void 0,i))return a;if(a=U(Td(n,e),t,1,r&&n!==Lt&&!(d&_&262144),void 0,i))return a;if(Sf(e)){const n=nf(e.indexType);if(n&&(a=U(Rx(e.objectType,n),t,1,r)))return a}}}else if(4194304&_){const n=nx(e.type,e.indexFlags)&&32&hx(e.type);if(a=U(hn,t,1,r&&!n))return a;if(n){const n=e.type,i=fp(n),o=i&&vp(n)?te(i,n):i||lp(n);if(a=U(o,t,1,r))return a}}else if(134217728&_&&!(524288&d)){if(!(134217728&d)){const n=ff(e);if(n&&n!==e&&(a=U(n,t,1,r)))return a}}else if(268435456&_)if(268435456&d){if(e.symbol!==t.symbol)return 0;if(a=U(e.type,t.type,3,r))return a}else{const n=ff(e);if(n&&(a=U(n,t,1,r)))return a}else if(16777216&_){if(FC(e,m,x,10))return 3;if(16777216&d){const n=e.root.inferTypeParameters;let i,o=e.extendsType;if(n){const e=Xw(n,void 0,0,q);xN(e.inferences,t.extendsType,o,1536),o=yS(o,e.mapper),i=e.mapper}if(NS(o,t.extendsType)&&(U(e.checkType,t.checkType,3)||U(t.checkType,e.checkType,3))&&((a=U(yS(Kx(e),i),Kx(t),3,r))&&(a&=U(Gx(e),Gx(t),3,r)),a))return a}const n=sf(e);if(n&&(a=U(n,t,1,r)))return a;const i=16777216&d||!gf(e)?void 0:_f(e);if(i&&(A(o),a=U(i,t,1,r)))return a}else{if(n!==go&&n!==ho&&(32&hx(f=t)&&4&xp(f))&&eT(e))return-1;if(Tp(t))return Tp(e)&&(a=function(e,t,r){const i=n===vo||(n===xo?xp(e)===xp(t):Sp(e)<=Sp(t));if(i){let n;if(n=U(lp(t),yS(lp(e),Sp(e)<0?wn:Cn),3,r)){const i=Qk([ip(e)],[ip(t)]);if(yS(fp(e),i)===yS(fp(t),i))return n&U(yS(hp(e),i),hp(t),3,r)}}return 0}(e,t,r))?a:0;const p=!!(402784252&_);if(n!==xo)_=(e=Tf(e)).flags;else if(Tp(e))return 0;if(4&hx(e)&&4&hx(t)&&e.target===t.target&&!lw(e)&&!dC(e)&&!dC(t)){if($C(e))return-1;const n=VT(e.target);if(n===s)return 1;const r=y(fy(e),fy(t),n,i);if(void 0!==r)return r}else{if(MC(t)?IF(e,BC):RC(t)&&IF(e,(e=>lw(e)&&!e.target.readonly)))return n!==xo?U(rg(e,Wt)||wt,rg(t,Wt)||wt,3,r):0;if(_w(e)&&lw(t)&&!_w(t)){const n=mf(e);if(n!==e)return U(n,t,1,r)}else if((n===go||n===ho)&&eT(t)&&8192&hx(t)&&!eT(e))return 0}if(2621440&_&&524288&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(2621440&_&&1048576&d){const r=UF(t,36175872);if(1048576&r.flags){const t=function(e,t){var r;const i=$p(e),o=UN(i,t);if(!o)return 0;let a=1;for(const n of o)if(a*=BF(E_(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;e<o.length;e++){const t=o[e],n=E_(t);s[e]=1048576&n.flags?n.types:[n],c.add(t.escapedName)}const l=on(s),_=[];for(const r of l){let i=!1;e:for(const a of t.types){for(let i=0;i<o.length;i++){const s=o[i],c=fm(a,s.escapedName);if(!c)continue e;if(s===c)continue;if(!oe(e,t,s,c,(e=>r[i]),!1,0,G||n===vo))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||lw(e)&&lw(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===xo)return 0;const a=e.length<=t.length?e.length:t.length;let c=-1;for(let s=0;s<a;s++){const a=s<r.length?r[s]:1,l=7&a;if(4!==l){const r=e[s],_=t[s];let u=-1;if(8&a?u=n===xo?U(r,_,3,!1):DS(r,_):1===l?u=U(r,_,3,i,void 0,o):2===l?u=U(_,r,3,i,void 0,o):3===l?(u=U(_,r,3,!1),u||(u=U(r,_,3,i,void 0,o))):(u=U(r,_,3,i,void 0,o),u&&(u&=U(_,r,3,i,void 0,o))),!u)return 0;c&=u}}return c}(e,t,i,r,_))return a;if(V(i,(e=>!!(24&e))))return c=void 0,void A(o);const d=t&&function(e,t){for(let n=0;n<t.length;n++)if(1==(7&t[n])&&16384&e[n].flags)return!0;return!1}(t,i);if(l=!d,i!==s&&!d){if(l&&(!r||!V(i,(e=>!(7&e)))))return 0;c=u,A(o)}}}(e,t,r,i,o);if(n!==xo){if(!a&&(2097152&e.flags||262144&e.flags&&1048576&t.flags)){const n=function(e,t){let n,r=!1;for(const i of e)if(465829888&i.flags){let e=nf(i);for(;e&&21233664&e.flags;)e=nf(e);e&&(n=re(n,e),t&&(n=re(n,i)))}else(469892092&i.flags||tT(i))&&(r=!0);if(n&&(t||r)){if(r)for(const t of e)(469892092&t.flags||tT(t))&&(n=re(n,t));return yT(Vb(n,2),!1)}}(2097152&e.flags?e.types:[e],!!(1048576&t.flags));n&&IF(n,(t=>t!==e))&&(a=U(n,t,1,!1,void 0,i))}a&&!(2&i)&&2097152&t.flags&&!Ex(t)&&2621440&e.flags?(a&=ae(e,t,r,void 0,!1,0),a&&TN(e)&&8192&hx(e)&&(a&=ge(e,t,!1,r,0))):a&&lk(t)&&!BC(t)&&2097152&e.flags&&3670016&Tf(e).flags&&!V(e.types,(e=>e===t||!!(262144&hx(e))))&&(a&=ae(e,t,r,void 0,!0,i))}a&&A(o);return a}(e,t,r,i),null==(l=$n)||l.pop()),an&&(an=b),1&o&&x--,2&o&&S--,T=y,k?(-1===k||0===x&&0===S)&&D(-1===k||3===k):(n.set(_,2|N),F--,D(!1)),k;function D(e){for(let t=h;t<v;t++)f.delete(p[t]),e&&(n.set(p[t],1|N),F--);v=h}}function te(e,t){const n=Tf(bp(t)),r=[];return np(n,8576,!1,(n=>{r.push(yS(e,aS(t.mapper,ip(t),n)))})),jb(r)}function ne(e,t){if(!t||0===e.length)return e;let n;for(let r=0;r<e.length;r++)t.has(e[r].escapedName)?n||(n=e.slice(0,r)):n&&n.push(e[r]);return n||e}function oe(e,t,r,i,o,a,s,c){const l=ox(r),_=ox(i);if(2&l||2&_){if(r.valueDeclaration!==i.valueDeclaration)return a&&(2&l&&2&_?R(_a.Types_have_separate_declarations_of_a_private_property_0,sc(i)):R(_a.Property_0_is_private_in_type_1_but_not_in_type_2,sc(i),lc(2&l?e:t),lc(2&l?t:e))),0}else if(4&_){if(!function(e,t){return!CC(t,(t=>{return!!(4&ox(t))&&(n=e,r=wC(t),!CC(n,(e=>{const t=wC(e);return!!t&&J_(t,r)})));var n,r}))}(r,i))return a&&R(_a.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,sc(i),lc(wC(r)||e),lc(wC(i)||t)),0}else if(4&l)return a&&R(_a.Property_0_is_protected_in_type_1_but_public_in_type_2,sc(i),lc(e),lc(t)),0;if(n===ho&&Jj(r)&&!Jj(i))return 0;const u=function(e,t,n,r,i){const o=G&&!!(48&ix(t)),a=Tl(E_(t),!1,o);return U(n(e),a,3,r,void 0,i)}(r,i,o,a,s);return u?!c&&16777216&r.flags&&106500&i.flags&&!(16777216&i.flags)?(a&&R(_a.Property_0_is_optional_in_type_1_but_required_in_type_2,sc(i),lc(e),lc(t)),0):u:(a&&O(_a.Types_of_property_0_are_incompatible,sc(i)),0)}function ae(e,t,r,i,a,s){if(n===xo)return function(e,t,n){if(!(524288&e.flags&&524288&t.flags))return 0;const r=ne(Bp(e),n),i=ne(Bp(t),n);if(r.length!==i.length)return 0;let o=-1;for(const e of r){const n=qp(t,e.escapedName);if(!n)return 0;const r=IC(e,n,U);if(!r)return 0;o&=r}return o}(e,t,i);let c=-1;if(lw(t)){if(BC(e)){if(!t.target.readonly&&(MC(e)||lw(e)&&e.target.readonly))return 0;const n=my(e),o=my(t),a=lw(e)?4&e.target.combinedFlags:4,l=!!(12&t.target.combinedFlags),_=lw(e)?e.target.minLength:0,u=t.target.minLength;if(!a&&n<u)return r&&R(_a.Source_has_0_element_s_but_target_requires_1,n,u),0;if(!l&&o<_)return r&&R(_a.Source_has_0_element_s_but_target_allows_only_1,_,o),0;if(!l&&(a||o<n))return r&&(_<u?R(_a.Target_requires_0_element_s_but_source_may_have_fewer,u):R(_a.Target_allows_only_0_element_s_but_source_may_have_more,o)),0;const d=fy(e),p=fy(t),f=function(e,t){const n=b(e.elementFlags,(e=>!(e&t)));return n>=0?n:e.elementFlags.length}(t.target,11),m=Tb(t.target,11);let g=!!i;for(let a=0;a<n;a++){const _=lw(e)?e.target.elementFlags[a]:4,u=n-1-a,h=l&&a>=f?o-1-Math.min(u,m):a,y=t.target.elementFlags[h];if(8&y&&!(8&_))return r&&R(_a.Source_provides_no_match_for_variadic_element_at_position_0_in_target,h),0;if(8&_&&!(12&y))return r&&R(_a.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&&R(_a.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=Fw(d[a],!!(_&y&2)),b=p[h],x=U(v,8&_&&4&y?Uv(b):Fw(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(_a.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,f,n-m-1,h):O(_a.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!==go&&n!==ho||TN(e)||$C(e)||lw(e)),d=_N(e,t,_,!1);if(d)return r&&function(e,t){const n=mm(e,0),r=mm(e,1),i=Bp(e);if((n.length||r.length)&&!i.length)return!!(ym(t,0).length&&n.length||ym(t,1).length&&r.length);return!0}(e,t)&&function(e,t,n,r){let i=!1;if(n.valueDeclaration&&Sc(n.valueDeclaration)&&WN(n.valueDeclaration.name)&&e.symbol&&32&e.symbol.flags){const r=n.valueDeclaration.name.escapedText,i=Vh(e.symbol,r);if(i&&fm(e,i)){const n=ZC.getDeclarationName(e.symbol.valueDeclaration),i=ZC.getDeclarationName(t.symbol.valueDeclaration);return void R(_a.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,fa(r),fa(""===n.escapedText?IB:n),fa(""===i.escapedText?IB:i))}}const a=Ie(lN(e,t,r,!1));if((!o||o.code!==_a.Class_0_incorrectly_implements_interface_1.code&&o.code!==_a.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=sc(n,void 0,0,20);R(_a.Property_0_is_missing_in_type_1_but_required_in_type_2,r,...dc(e,t)),l(n.declarations)&&B(Rp(n.declarations[0],_a._0_is_declared_here,r)),i&&u&&w++}else z(e,t,!1)&&(a.length>5?R(_a.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,lc(e),lc(t),D(a.slice(0,4),(e=>sc(e))).join(", "),a.length-4):R(_a.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,lc(e),lc(t),D(a,(e=>sc(e))).join(", ")),i&&u&&w++)}(e,t,d,_),0;if(TN(t))for(const n of ne($p(e),i))if(!qp(t,n.escapedName)){if(!(32768&F_(n).flags))return r&&R(_a.Property_0_does_not_exist_on_type_1,sc(n),lc(t)),0}const p=$p(t),f=lw(e)&&lw(t);for(const o of ne(p,i)){const i=o.escapedName;if(!(4194304&o.flags)&&(!f||zT(i)||"length"===i)&&(!a||16777216&o.flags)){const a=fm(e,i);if(a&&a!==o){const i=oe(e,t,a,o,E_,r,s,n===vo);if(!i)return 0;c&=i}}}return c}function ce(e,t,r,i,o){var a,s;if(n===xo)return function(e,t,n){const r=ym(e,n),i=ym(t,n);if(r.length!==i.length)return 0;let o=-1;for(let e=0;e<r.length;e++){const t=OC(r[e],i[e],!1,!1,!1,U);if(!t)return 0;o&=t}return o}(e,t,r);if(t===Ln||e===Ln)return-1;const c=e.symbol&&CL(e.symbol.valueDeclaration),l=t.symbol&&CL(t.symbol.valueDeclaration),_=ym(e,c&&1===r?0:r),u=ym(t,l&&1===r?0:r);if(1===r&&_.length&&u.length){const e=!!(4&_[0].flags),t=!!(4&u[0].flags);if(e&&!t)return i&&R(_a.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!function(e,t,n){if(!e.declaration||!t.declaration)return!0;const r=Rv(e.declaration,6),i=Rv(t.declaration,6);if(2===i)return!0;if(4===i&&2!==r)return!0;if(4!==i&&!r)return!0;n&&R(_a.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,Pc(r),Pc(i));return!1}(_[0],u[0],i))return 0}let d=-1;const p=1===r?ue:le,f=hx(e),m=hx(t);if(64&f&&64&m&&e.symbol===t.symbol||4&f&&4&m&&e.target===t.target){_n.assertEqual(_.length,u.length);for(let e=0;e<u.length;e++){const t=de(_[e],u[e],!0,i,o,p(_[e],u[e]));if(!t)return 0;d&=t}}else if(1===_.length&&1===u.length){const e=n===vo,t=me(_),c=me(u);if(d=de(t,c,e,i,o,p(t,c)),!d&&i&&1===r&&f&m&&(176===(null==(a=c.declaration)?void 0:a.kind)||176===(null==(s=t.declaration)?void 0:s.kind))){const e=e=>cc(e,void 0,262144,r);return R(_a.Type_0_is_not_assignable_to_type_1,e(t),e(c)),R(_a.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&&R(_a.Type_0_provides_no_match_for_the_signature_1,lc(e),cc(t,void 0,void 0,r)),0}return d}function le(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>O(_a.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,lc(e),lc(t)):(e,t)=>O(_a.Call_signature_return_types_0_and_1_are_incompatible,lc(e),lc(t))}function ue(e,t){return 0===e.parameters.length&&0===t.parameters.length?(e,t)=>O(_a.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,lc(e),lc(t)):(e,t)=>O(_a.Construct_signature_return_types_0_and_1_are_incompatible,lc(e),lc(t))}function de(e,t,r,i,o,a){const s=n===go?16:n===ho?24:0;return XS(r?Nh(e):e,r?Nh(t):t,s,i,R,a,(function(e,t,n){return U(e,t,3,n,void 0,o)}),Cn)}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?R(_a._0_index_signatures_are_incompatible,lc(e.keyType)):R(_a._0_and_1_index_signatures_are_incompatible,lc(e.keyType),lc(t.keyType))),i}function ge(e,t,r,i,o){if(n===xo)return function(e,t){const n=qm(e),r=qm(t);if(n.length!==r.length)return 0;for(const t of r){const n=Qm(e,t.keyType);if(!n||!U(n.type,t.type,3)||n.isReadonly!==t.isReadonly)return 0}return-1}(e,t);const a=qm(t),s=V(a,(e=>e.keyType===Vt));let c=-1;for(const t of a){const a=n!==ho&&!r&&s&&1&t.type.flags?-1:Tp(e)&&s?U(hp(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=og(e,t.keyType);return o?fe(o,t,r,i):1&i||!(n!==ho||8192&hx(e))||!Aw(e)?(r&&R(_a.Index_signature_for_type_0_is_missing_in_type_1,lc(t.keyType),lc(e)),0):function(e,t,n,r){let i=-1;const o=t.keyType,a=2097152&e.flags?Up(e):Bp(e);for(const s of a)if(!mT(e,s)&&Bm(Zb(s,8576),o)){const e=E_(s),a=U(_e||32768&e.flags||o===Wt||!(16777216&s.flags)?e:iD(e,524288),t.type,3,n,void 0,r);if(!a)return n&&R(_a.Property_0_is_incompatible_with_index_signature,sc(s)),0;i&=a}for(const a of qm(e))if(Bm(a.keyType,o)){const e=fe(a,t,n,r);if(!e)return 0;i&=e}return i}(e,t,r,i)}}function ET(e){if(16&e.flags)return!1;if(3145728&e.flags)return!!_(e.types,ET);if(465829888&e.flags){const t=nf(e);if(t&&t!==e)return ET(t)}return QC(e)||!!(134217728&e.flags)||!!(268435456&e.flags)}function PT(e,t){return lw(e)&&lw(t)?s:$p(t).filter((t=>AT(Wc(e,t.escapedName),F_(t))))}function AT(e,t){return!!e&&!!t&&Hj(e,32768)&&!!Ew(t)}function OT(e,t,n=FS){return Jq(e,t,n)||function(e,t){const n=hx(e);if(20&n&&1048576&t.flags)return y(t.types,(t=>{if(524288&t.flags){const r=n&hx(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&hx(e)&&EF(t,qC))return y(t.types,(e=>!qC(e)))}(e,t)||function(e,t){let n=0;const r=ym(e,n).length>0||(n=1,ym(e,n).length>0);if(r)return y(t.types,(e=>ym(e,n).length>0))}(e,t)||function(e,t){let n;if(!(406978556&e.flags)){let r=0;for(const i of t.types)if(!(406978556&i.flags)){const t=Vb([rx(e),rx(i)]);if(4194304&t.flags)return i;if(QC(t)||1048576&t.flags){const e=1048576&t.flags?T(t.types,QC):1;e>=r&&(n=i,r=e)}}}return n}(e,t)}function LT(e,t,n){const r=e.types,i=r.map((e=>402784252&e.flags?0:-1));for(const[e,o]of t){let t=!1;for(let a=0;a<r.length;a++)if(i[a]){const s=$c(r[a],o);s&&EF(e(),(e=>!!n(e,s)))?t=!0:i[a]=3}for(let e=0;e<r.length;e++)3===i[e]&&(i[e]=t?0:-1)}const o=k(i,0)?jb(r.filter(((e,t)=>i[t])),0):e;return 131072&o.flags?e:o}function JT(e){if(524288&e.flags){const t=Op(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 33554432&e.flags?JT(e.baseType):!!(2097152&e.flags)&&h(e.types,JT)}function VT(e){return e===Zn||e===nr||8&e.objectFlags?L:iC(e.symbol,e.typeParameters)}function GT(e){return iC(e,aa(e).typeParameters)}function iC(e,t=s){var n,r;const i=aa(e);if(!i.variances){null==(n=$n)||n.push($n.Phase.CheckTypes,"getVariancesWorker",{arity:t.length,id:Nb(Tu(e))});const o=Ui,a=qi;Ui||(Ui=!0,qi=Bi.length),i.variances=s;const c=[];for(const n of t){const t=pC(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=an;an=e=>e?i=!0:t=!0;const a=aC(e,n,Bn),s=aC(e,n,Jn);r=(IS(s,a)?1:0)|(IS(a,s)?2:0),3===r&&IS(aC(e,n,zn),a)&&(r=4),an=o,(t||i)&&(t&&(r|=8),i&&(r|=16))}c.push(r)}o||(Ui=!1,qi=a),i.variances=c,null==(r=$n)||r.pop({variances:c.map(_n.formatVariance)})}return i.variances}function aC(e,t,n){const r=Zk(t,n),i=Tu(e);if(Gc(i))return i;const o=524288&e.flags?hy(e,Wk(aa(e).typeParameters,r)):uy(i,Wk(i.typeParameters,r));return bt.add(Nb(o)),o}function dC(e){return bt.has(Nb(e))}function pC(e){var t;return 28672&Ce(null==(t=e.symbol)?void 0:t.declarations,((e,t)=>e|Jv(t)),0)}function mC(e){return 262144&e.flags&&!rf(e)}function xC(e){return function(e){return!!(4&hx(e))&&!e.node}(e)&&V(fy(e),(e=>!!(262144&e.flags)||xC(e)))}function kC(e,t,n,r,i){if(r===xo&&e.id>t.id){const n=e;e=t,t=n}const o=n?":"+n:"";return xC(e)&&xC(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 fy(e)){if(262144&a.flags){if(r||mC(a)){let e=i.indexOf(a);e<0&&(e=i.length,i.push(a)),n+="="+e;continue}o="*"}else if(t<4&&xC(a)){n+="<"+c(a,t+1)+">";continue}n+="-"+a.id}return n}}(e,t,o,i):`${e.id},${t.id}${o}`}function CC(e,t){if(!(6&ix(e)))return t(e);for(const n of e.links.containingType.types){const r=fm(n,e.escapedName),i=r&&CC(r,t);if(i)return i}}function wC(e){return e.parent&&32&e.parent.flags?Tu(vs(e)):void 0}function NC(e){const t=wC(e),n=t&&cu(t)[0];return n&&Wc(n,e.escapedName)}function DC(e,t,n){return CC(t,(t=>!!(4&ox(t,n))&&!J_(e,wC(t))))?void 0:e}function FC(e,t,n,r=3){if(n>=r){if(96&~hx(e)||(e=EC(e)),2097152&e.flags)return V(e.types,(e=>FC(e,t,n,r)));const i=AC(e);let o=0,a=0;for(let e=0;e<n;e++){const n=t[e];if(PC(n,i)){if(n.id>=a&&(o++,o>=r))return!0;a=n.id}}}return!1}function EC(e){let t;for(;!(96&~hx(e))&&(t=bp(e))&&(t.symbol||2097152&t.flags&&V(t.types,(e=>!!e.symbol)));)e=t;return e}function PC(e,t){return 96&~hx(e)||(e=EC(e)),2097152&e.flags?V(e.types,(e=>PC(e,t))):AC(e)===t}function AC(e){if(524288&e.flags&&!wN(e)){if(4&hx(e)&&e.node)return e.node;if(e.symbol&&!(16&hx(e)&&32&e.symbol.flags))return e.symbol;if(lw(e))return e.target}if(262144&e.flags)return e.symbol;if(8388608&e.flags){do{e=e.objectType}while(8388608&e.flags);return e}return 16777216&e.flags?e.root:e}function IC(e,t,n){if(e===t)return-1;const r=6&ox(e);if(r!==(6&ox(t)))return 0;if(r){if(CJ(e)!==CJ(t))return 0}else if((16777216&e.flags)!=(16777216&t.flags))return 0;return Jj(e)!==Jj(t)?0:n(F_(e),F_(t))}function OC(e,t,n,r,i,o){if(e===t)return-1;if(!function(e,t,n){const r=ij(e),i=ij(t),o=oj(e),a=oj(t),s=aj(e),c=aj(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=Qk(e.typeParameters,t.typeParameters);for(let r=0;r<t.typeParameters.length;r++){const i=e.typeParameters[r],a=t.typeParameters[r];if(!(i===a||o(yS(ry(i),n)||Lt,ry(a)||Lt)&&o(yS(vf(i),n)||Lt,vf(a)||Lt)))return 0}e=lS(e,n,!0)}let a=-1;if(!r){const n=Hg(e);if(n){const e=Hg(t);if(e){const t=o(n,e);if(!t)return 0;a&=t}}}const s=ij(t);for(let n=0;n<s;n++){const r=ej(e,n),i=o(ej(t,n),r);if(!i)return 0;a&=i}if(!i){const n=Kg(e),r=Kg(t);a&=n||r?function(e,t,n){return e&&t&&Mb(e,t)?e.type===t.type?-1:e.type&&t.type?n(e.type,t.type):0:0}(n,r,o):o(Zg(e),Zg(t))}return a}function LC(e){return Ce(e,((e,t)=>e|(1048576&t.flags?LC(t.types):t.flags)),0)}function jC(e){if(1===e.length)return e[0];const t=G?E(e,(e=>OF(e,(e=>!(98304&e.flags))))):e,n=function(e){let t;for(const n of e)if(!(131072&n.flags)){const e=nw(n);if(t??(t=e),e===n||e!==t)return!1}return!0}(t)?jb(t):Ce(t,((e,t)=>PS(e,t)?t:e));return t===e?n:xw(n,98304&LC(e))}function RC(e){return!!(4&hx(e))&&(e.target===Zn||e.target===nr)}function MC(e){return!!(4&hx(e))&&e.target===nr}function BC(e){return RC(e)||lw(e)}function JC(e){return RC(e)&&!MC(e)||lw(e)&&!e.target.readonly}function zC(e){return RC(e)?fy(e)[0]:void 0}function qC(e){return RC(e)||!(98304&e.flags)&&IS(e,_r)}function UC(e){return JC(e)||!(98305&e.flags)&&IS(e,cr)}function VC(e){if(!(4&hx(e)&&3&hx(e.target)))return;if(33554432&hx(e))return 67108864&hx(e)?e.cachedEquivalentBaseType:void 0;e.objectFlags|=33554432;const t=e.target;if(1&hx(t)){const e=eu(t);if(e&&80!==e.expression.kind&&211!==e.expression.kind)return}const n=cu(t);if(1!==n.length)return;if(kd(e.symbol).size)return;let r=l(t.typeParameters)?yS(n[0],Qk(t.typeParameters,fy(e).slice(0,t.typeParameters.length))):n[0];return l(fy(e))>l(t.typeParameters)&&(r=Td(r,ye(fy(e)))),e.objectFlags|=67108864,e.cachedEquivalentBaseType=r}function WC(e){return G?e===pn:e===Rt}function $C(e){const t=zC(e);return!!t&&WC(t)}function HC(e){let t;return lw(e)||!!fm(e,"0")||qC(e)&&!!(t=Wc(e,"length"))&&IF(t,(e=>!!(256&e.flags)))}function KC(e){return qC(e)||HC(e)}function GC(e,t){const n=Wc(e,""+t);return n||(IF(e,lw)?pw(e,t,j.noUncheckedIndexedAccess?jt:void 0):void 0)}function XC(e){return!(240544&e.flags)}function QC(e){return!!(109472&e.flags)}function YC(e){const t=mf(e);return 2097152&t.flags?V(t.types,QC):QC(t)}function ew(e){return!!(16&e.flags)||(1048576&e.flags?!!(1024&e.flags)||h(e.types,QC):QC(e))}function nw(e){return 1056&e.flags?mu(e):402653312&e.flags?Vt:256&e.flags?Wt:2048&e.flags?$t:512&e.flags?sn:1048576&e.flags?function(e){const t=`B${Nb(e)}`;return Eo(t)??Po(t,JF(e,nw))}(e):e}function rw(e){return 402653312&e.flags?Vt:288&e.flags?Wt:2048&e.flags?$t:512&e.flags?sn:1048576&e.flags?JF(e,rw):e}function iw(e){return 1056&e.flags&&yk(e)?mu(e):128&e.flags&&yk(e)?Vt:256&e.flags&&yk(e)?Wt:2048&e.flags&&yk(e)?$t:512&e.flags&&yk(e)?sn:1048576&e.flags?JF(e,iw):e}function aw(e){return 8192&e.flags?cn:1048576&e.flags?JF(e,aw):e}function sw(e,t){return hR(e,t)||(e=aw(iw(e))),hk(e)}function cw(e,t,n,r){if(e&&QC(e)){e=sw(e,t?GB(n,t,r):void 0)}return e}function lw(e){return!!(4&hx(e)&&8&e.target.objectFlags)}function _w(e){return lw(e)&&!!(8&e.target.combinedFlags)}function uw(e){return _w(e)&&1===e.target.elementFlags.length}function dw(e){return fw(e,e.target.fixedLength)}function pw(e,t,n){return JF(e,(e=>{const r=e,i=dw(r);return i?n&&t>=Cb(r.target)?jb([i,n]):i:jt}))}function fw(e,t,n=0,r=!1,i=!1){const o=my(e)-n;if(t<o){const n=fy(e),a=[];for(let r=t;r<o;r++){const t=n[r];a.push(8&e.target.elementFlags[r]?Rx(t,Wt):t)}return r?Vb(a):jb(a,i?0:1)}}function mw({value:e}){return"0"===e.base10Value}function hw(e){return OF(e,(e=>tD(e,4194304)))}function bw(e){return 4&e.flags?ji:8&e.flags?Ri:64&e.flags?Mi:e===Qt||e===Xt||114691&e.flags||128&e.flags&&""===e.value||256&e.flags&&0===e.value||2048&e.flags&&mw(e)?e:un}function xw(e,t){const n=t&~e.flags&98304;return 0===n?e:jb(32768===n?[e,jt]:65536===n?[e,qt]:[e,jt,qt])}function Sw(e,t=!1){_n.assert(G);const n=t?Bt:jt;return e===n||1048576&e.flags&&e.types[0]===n?e:jb([e,n])}function Tw(e){return G?ND(e,2097152):e}function Cw(e){return G?jb([e,Jt]):e}function ww(e){return G?MF(e,Jt):e}function Nw(e,t,n){return n?bl(t)?Sw(e):Cw(e):e}function Dw(e,t){return vl(t)?Tw(e):hl(t)?ww(e):e}function Fw(e,t){return _e&&t?MF(e,Mt):e}function Ew(e){return e===Mt||!!(1048576&e.flags)&&e.types[0]===Mt}function Pw(e){return _e?MF(e,Mt):iD(e,524288)}function Aw(e){const t=hx(e);return 2097152&e.flags?h(e.types,Aw):!(!(e.symbol&&7040&e.symbol.flags)||32&e.symbol.flags||Tz(e))||!!(4194304&t)||!!(1024&t&&Aw(e.source))}function Iw(e,t){const n=$o(e.flags,e.escapedName,8&ix(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=aa(e).nameType;return r&&(n.links.nameType=r),n}function Ow(e){if(!(TN(e)&&8192&hx(e)))return e;const t=e.regularType;if(t)return t;const n=e,r=function(e,t){const n=Ku();for(const r of Bp(e)){const e=F_(r),i=t(e);n.set(r.escapedName,i===e?r:Iw(r,i))}return n}(e,Ow),i=zs(n.symbol,r,n.callSignatures,n.constructSignatures,n.indexInfos);return i.flags=n.flags,i.objectFlags|=-8193&n.objectFlags,e.regularType=i,i}function Lw(e,t,n){return{parent:e,propertyName:t,siblings:n,resolvedProperties:void 0}}function Mw(e){if(!e.siblings){const t=[];for(const n of Mw(e.parent))if(TN(n)){const r=qp(n,e.propertyName);r&&NF(F_(r),(e=>{t.push(e)}))}e.siblings=t}return e.siblings}function Bw(e){if(!e.resolvedProperties){const t=new Map;for(const n of Mw(e))if(TN(n)&&!(2097152&hx(n)))for(const e of $p(n))t.set(e.escapedName,e);e.resolvedProperties=Ie(t.values())}return e.resolvedProperties}function Jw(e,t){if(!(4&e.flags))return e;const n=F_(e),r=Vw(n,t&&Lw(t,e.escapedName,void 0));return r===n?e:Iw(e,r)}function qw(e){const t=vt.get(e.escapedName);if(t)return t;const n=Iw(e,Bt);return n.flags|=16777216,vt.set(e.escapedName,n),n}function Uw(e){return Vw(e,void 0)}function Vw(e,t){if(196608&hx(e)){if(void 0===t&&e.widened)return e.widened;let n;if(98305&e.flags)n=wt;else if(TN(e))n=function(e,t){const n=Ku();for(const r of Bp(e))n.set(r.escapedName,Jw(r,t));if(t)for(const e of Bw(t))n.has(e.escapedName)||n.set(e.escapedName,qw(e));const r=zs(e.symbol,n,s,s,E(qm(e),(e=>Rh(e.keyType,Uw(e.type),e.isReadonly))));return r.objectFlags|=266240&hx(e),r}(e,t);else if(1048576&e.flags){const r=t||Lw(void 0,void 0,e.types),i=E(e.types,(e=>98304&e.flags?e:Vw(e,r)));n=jb(i,V(i,eT)?2:1)}else 2097152&e.flags?n=Vb(E(e.types,Uw)):BC(e)&&(n=uy(e.target,E(fy(e),Uw)));return n&&void 0===t&&(e.widened=n),n||e}return e}function Ww(e){var t;let n=!1;if(65536&hx(e))if(1048576&e.flags)if(V(e.types,eT))n=!0;else for(const t of e.types)n||(n=Ww(t));else if(BC(e))for(const t of fy(e))n||(n=Ww(t));else if(TN(e))for(const r of Bp(e)){const i=F_(r);if(65536&hx(i)&&(n=Ww(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&&(Ro(o,_a.Object_literal_s_property_0_implicitly_has_an_1_type,sc(r),lc(Uw(i))),n=!0)}}return n}function $w(e,t,n){const r=lc(Uw(t));if(Em(e)&&!rT(yd(e),j))return;let i;switch(e.kind){case 226:case 172:case 171:i=ie?_a.Member_0_implicitly_has_an_1_type:_a.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const t=e;if(VN(t.name)){const n=hc(t.name);if((yD(t.parent)||dD(t.parent)||SD(t.parent))&&t.parent.parameters.includes(t)&&(Ue(t,t.name.escapedText,788968,void 0,!0)||n&&Sx(n))){const n="arg"+t.parent.parameters.indexOf(t),r=Pp(t.name)+(t.dotDotDotToken?"[]":"");return void Bo(ie,e,_a.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,n,r)}}i=e.dotDotDotToken?ie?_a.Rest_parameter_0_implicitly_has_an_any_type:_a.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ie?_a.Parameter_0_implicitly_has_an_1_type:_a.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(i=_a.Binding_element_0_implicitly_has_an_1_type,!ie)return;break;case 317:return void Ro(e,_a.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);case 323:return void(ie&&vP(e.parent)&&Ro(e.parent.tagName,_a.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,r));case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(ie&&!e.name)return void Ro(e,3===n?_a.Generator_implicitly_has_yield_type_0_Consider_supplying_a_return_type_annotation:_a.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,r);i=ie?3===n?_a._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:_a._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:_a._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:return void(ie&&Ro(e,_a.Mapped_object_type_implicitly_has_an_any_template_type));default:i=ie?_a.Variable_0_implicitly_has_an_1_type:_a.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Bo(ie,e,i,Pp(Cc(e)),r)}function Hw(e,t,n){a((()=>{ie&&65536&hx(t)&&(!n||o_(e)&&function(e,t){const n=GA(e);if(!n)return!0;let r=Zg(n);const i=Oh(e);switch(t){case 1:return 1&i?r=GB(1,r,!!(2&i))??r:2&i&&(r=fM(r)??r),Fx(r);case 3:const e=GB(0,r,!!(2&i));return!!e&&Fx(e);case 2:const t=GB(2,r,!!(2&i));return!!t&&Fx(t)}return!1}(e,n))&&(Ww(t)||$w(e,t,n))}))}function Kw(e,t,n){const r=ij(e),i=ij(t),o=sj(e),a=sj(t),s=a?i-1:i,c=o?s:Math.min(r,s),l=Hg(e);if(l){const e=Hg(t);e&&n(l,e)}for(let r=0;r<c;r++)n(ej(e,r),ej(t,r));a&&n(nj(e,c,of(a)&&!EF(a,UC)),a)}function Gw(e,t,n){const r=Kg(t);if(r){const t=Kg(e);if(t&&Mb(t,r)&&t.type&&r.type)return void n(t.type,r.type)}const i=Zg(t);rN(i)&&n(Zg(e),i)}function Xw(e,t,n,r){return Qw(e.map(eN),t,n,r||FS)}function Qw(e,t,n,r){const i={inferences:e,signature:t,flags:n,compareTypes:r,mapper:wn,nonFixingMapper:wn};return i.mapper=function(e){return tS(D(e.inferences,(e=>e.typeParameter)),D(e.inferences,((t,n)=>()=>(t.isFixed||(!function(e){if(e.intraExpressionInferenceSites){for(const{node:t,type:n}of e.intraExpressionInferenceSites){const r=174===t.kind?wA(t,2):MA(t,2);r&&xN(e.inferences,n,r)}e.intraExpressionInferenceSites=void 0}}(e),Yw(e.inferences),t.isFixed=!0),EN(e,n)))))}(i),i.nonFixingMapper=function(e){return tS(D(e.inferences,(e=>e.typeParameter)),D(e.inferences,((t,n)=>()=>EN(e,n))))}(i),i}function Yw(e){for(const t of e)t.isFixed||(t.inferredType=void 0)}function Zw(e,t,n){(e.intraExpressionInferenceSites??(e.intraExpressionInferenceSites=[])).push({node:t,type:n})}function eN(e){return{typeParameter:e,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function tN(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 nN(e){return e&&e.mapper}function rN(e){const t=hx(e);if(524288&t)return!!(1048576&t);const n=!!(465829888&e.flags||524288&e.flags&&!iN(e)&&(4&t&&(e.node||V(fy(e),rN))||134217728&t&&l(e.outerTypeParameters)||16&t&&e.symbol&&14384&e.symbol.flags&&e.symbol.declarations||12583968&t)||3145728&e.flags&&!(1024&e.flags)&&!iN(e)&&V(e.types,rN));return 3899393&e.flags&&(e.objectFlags|=524288|(n?1048576:0)),n}function iN(e){if(e.aliasSymbol&&!e.aliasTypeArguments){const t=$u(e.aliasSymbol,265);return!(!t||!uc(t.parent,(e=>307===e.kind||267!==e.kind&&"quit")))}return!1}function oN(e,t,n=0){return!!(e===t||3145728&e.flags&&V(e.types,(e=>oN(e,t,n)))||n<3&&16777216&e.flags&&(oN(Kx(e),t,n+1)||oN(Gx(e),t,n+1)))}function aN(e,t,n){const r=e.id+","+t.id+","+n.id;if(bi.has(r))return bi.get(r);const i=function(e,t,n){if(!(Qm(e,Vt)||0!==$p(e).length&&sN(e)))return;if(RC(e)){const r=cN(fy(e)[0],t,n);if(!r)return;return Uv(r,MC(e))}if(lw(e)){const r=D(wb(e),(e=>cN(e,t,n)));if(!h(r,(e=>!!e)))return;return ob(r,4&xp(t)?E(e.target.elementFlags,(e=>2&e?1:e)):e.target.elementFlags,e.target.readonly,e.target.labeledElementDeclarations)}const r=Ls(1040,void 0);return r.source=e,r.mappedType=t,r.constraintType=n,r}(e,t,n);return bi.set(r,i),i}function sN(e){return!(262144&hx(e))||TN(e)&&V($p(e),(e=>sN(F_(e))))||lw(e)&&V(wb(e),sN)}function cN(e,t,n){const r=e.id+","+t.id+","+n.id;if(vi.has(r))return vi.get(r)||Lt;lo.push(e),_o.push(t);const i=uo;let o;return FC(e,lo,lo.length,2)&&(uo|=1),FC(t,_o,_o.length,2)&&(uo|=2),3!==uo&&(o=function(e,t,n){const r=Rx(n.type,ip(t)),i=hp(t),o=eN(r);return xN([o],e,i),uN(o)||Lt}(e,t,n)),lo.pop(),_o.pop(),uo=i,vi.set(r,o),o}function*lN(e,t,n,r){const i=$p(t);for(const t of i)if(!Yu(t)&&(n||!(16777216&t.flags||48&ix(t)))){const n=fm(e,t.escapedName);if(n){if(r){const e=F_(t);if(109472&e.flags){const r=F_(n);1&r.flags||hk(r)===hk(e)||(yield t)}}}else yield t}}function _N(e,t,n,r){return fe(lN(e,t,n,r))}function uN(e){return e.candidates?jb(e.candidates,2):e.contraCandidates?Vb(e.contraCandidates):void 0}function dN(e){return!!sa(e).skipDirectInference}function pN(e){return!(!e.symbol||!V(e.symbol.declarations,dN))}function fN(e,t){if(""===e)return!1;const n=+e;return isFinite(n)&&(!t||""+n===e)}function mN(e){return Nk(vT(e))}function gN(e,t){if(1&t.flags)return!0;if(134217732&t.flags)return IS(e,t);if(268435456&t.flags){const n=[];for(;268435456&t.flags;)n.unshift(t.symbol),t=t.type;return Ce(n,((e,t)=>dx(t,e)),e)===e&&gN(e,t)}return!1}function hN(e,t){if(2097152&t.flags)return h(t.types,(t=>t===Pn||hN(e,t)));if(4&t.flags||IS(e,t))return!0;if(128&e.flags){const n=e.value;return!!(8&t.flags&&fN(n,!1)||64&t.flags&&bT(n,!1)||98816&t.flags&&n===t.intrinsicName||268435456&t.flags&&gN(kk(n),t)||134217728&t.flags&&vN(e,t))}if(134217728&e.flags){const n=e.texts;return 2===n.length&&""===n[0]&&""===n[1]&&IS(e.types[0],t)}return!1}function yN(e,t){return 128&e.flags?bN([e.value],s,t):134217728&e.flags?ee(e.texts,t.texts)?D(e.types,((e,n)=>{return IS(mf(e),mf(t.types[n]))?e:402653317&(r=e).flags?r:_x(["",""],[r]);var r})):bN(e.texts,e.types,t):void 0}function vN(e,t){const n=yN(e,t);return!!n&&h(n,((e,n)=>hN(e,t.types[n])))}function bN(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.length<c.length+l.length||!i.startsWith(c)||!o.endsWith(l))return;const _=o.slice(0,o.length-l.length),u=[];let d=0,p=c.length;for(let t=1;t<s;t++){const n=a[t];if(n.length>0){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<f(d).length)m(d,p+1);else{if(!(d<r))return;m(d+1,0)}}return m(r,f(r).length),u;function f(t){return t<r?e[t]:_}function m(n,r){const i=n===d?kk(f(n).slice(p,r)):_x([e[d].slice(p),...e.slice(d+1,n),f(n).slice(0,r)],t.slice(d,n));u.push(i),d=n,p=r}}function xN(e,t,n,r=0,i=!1){let o,a,c,l,_=!1,u=2048,d=0;function p(t,a){if(rN(a)&&!wy(a)){if(t===Dt||t===Ft){const e=o;return o=t,p(a,a),void(o=e)}if(t.aliasSymbol&&t.aliasSymbol===a.aliasSymbol){if(t.aliasTypeArguments){const e=aa(t.aliasSymbol).typeParameters,n=Cg(e);v(Eg(t.aliasTypeArguments,e,n,Em(t.aliasSymbol.valueDeclaration)),Eg(a.aliasTypeArguments,e,n,Em(t.aliasSymbol.valueDeclaration)),GT(t.aliasSymbol))}}else if(t===a&&3145728&t.flags)for(const e of t.types)p(e,e);else{if(1048576&a.flags){const[e,n]=g(1048576&t.flags?t.types:[t],a.types,kN),[r,i]=g(e,n,SN);if(0===i.length)return;if(a=jb(i),0===r.length)return void f(t,a,1);t=jb(r)}else if(2097152&a.flags&&!h(a.types,lk)&&!(1048576&t.flags)){const[e,n]=g(2097152&t.flags?t.types:[t],a.types,NS);if(0===e.length||0===n.length)return;t=Vb(e),a=Vb(n)}if(41943040&a.flags){if(wy(a))return;a=Ux(a)}if(8650752&a.flags){if(pN(t))return;const s=S(a);if(s){if(262144&hx(t)||t===At)return;if(!s.isFixed){const u=o||t;if(u===Ft)return;if((void 0===s.priority||r<s.priority)&&(s.candidates=void 0,s.contraCandidates=void 0,s.topLevel=!0,s.priority=r),r===s.priority){if(c=s.typeParameter,lw(l=u)&&GC(l,0)===Rx(c,wk(0))&&!Wc(l,"1"))return;i&&!_?k(s.contraCandidates,u)||(s.contraCandidates=re(s.contraCandidates,u),Yw(e)):k(s.candidates,u)||(s.candidates=re(s.candidates,u),Yw(e))}!(128&r)&&262144&a.flags&&s.topLevel&&!oN(n,a)&&(s.topLevel=!1,Yw(e))}return void(u=Math.min(u,r))}const d=Ix(a,!1);if(d!==a)p(t,d);else if(8388608&a.flags){const e=Ix(a.indexType,!1);if(465829888&e.flags){const n=Ox(Ix(a.objectType,!1),e,!1);n&&n!==a&&p(t,n)}}}var c,l;if(!(4&hx(t)&&4&hx(a)&&(t.target===a.target||RC(t)&&RC(a)))||t.node&&a.node)if(4194304&t.flags&&4194304&a.flags)b(t.type,a.type);else if((ew(t)||4&t.flags)&&4194304&a.flags){const e=function(e){const t=Ku();NF(e,(e=>{if(!(128&e.flags))return;const n=fc(e.value),r=$o(4,n);r.links.type=wt,e.symbol&&(r.declarations=e.symbol.declarations,r.valueDeclaration=e.symbol.valueDeclaration),t.set(n,r)}));const n=4&e.flags?[Rh(Vt,Nn,!1)]:s;return zs(void 0,t,s,s,n)}(t);!function(e,t,n){const i=r;r|=n,b(e,t),r=i}(e,a.type,256)}else if(8388608&t.flags&&8388608&a.flags)p(t.objectType,a.objectType),p(t.indexType,a.indexType);else if(268435456&t.flags&&268435456&a.flags)t.symbol===a.symbol&&p(t.type,a.type);else if(33554432&t.flags)p(t.baseType,a),f(Ay(t),a,4);else if(16777216&a.flags)m(t,a,N);else if(3145728&a.flags)T(t,a.types,a.flags);else if(1048576&t.flags){const e=t.types;for(const t of e)p(t,a)}else if(134217728&a.flags)!function(e,t){const n=yN(e,t),r=t.types;if(n||h(t.texts,(e=>0===e.length)))for(let e=0;e<r.length;e++){const t=n?n[e]:un,i=r[e];if(128&t.flags&&8650752&i.flags){const e=S(i),n=e?ff(e.typeParameter):void 0;if(n&&!Hc(n)){const e=1048576&n.flags?n.types:[n];let r=Ce(e,((e,t)=>e|t.flags),0);if(!(4&r)){const n=t.value;296&r&&!fN(n,!0)&&(r&=-297),2112&r&&!bT(n,!0)&&(r&=-2113);const o=Ce(e,((e,i)=>i.flags&r?4&e.flags?e:4&i.flags?t:134217728&e.flags?e:134217728&i.flags&&vN(t,i)?t:268435456&e.flags?e:268435456&i.flags&&n===px(i.symbol,n)?t:128&e.flags?e:128&i.flags&&i.value===n?i:8&e.flags?e:8&i.flags?wk(+n):32&e.flags?e:32&i.flags?wk(+n):256&e.flags?e:256&i.flags&&i.value===+n?i:64&e.flags?e:64&i.flags?mN(n):2048&e.flags?e:2048&i.flags&&hT(i.value)===n?i:16&e.flags?e:16&i.flags?"true"===n?tn:"false"===n?Xt:sn:512&e.flags?e:512&i.flags&&i.intrinsicName===n?i:32768&e.flags?e:32768&i.flags&&i.intrinsicName===n?i:65536&e.flags?e:65536&i.flags&&i.intrinsicName===n?i:e:e),un);if(!(131072&o.flags)){p(o,i);continue}}}}p(t,i)}}(t,a);else{if(Tp(t=Vf(t))&&Tp(a)&&m(t,a,F),!(512&r&&467927040&t.flags)){const e=Tf(t);if(e!==t&&!(2621440&e.flags))return p(e,a);t=e}2621440&t.flags&&m(t,a,E)}else v(fy(t),fy(a),VT(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),FC(e,c,c.length,2)&&(d|=1),FC(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<t.length?e.length:t.length;for(let i=0;i<r;i++)i<n.length&&2==(7&n[i])?b(e[i],t[i]):p(e[i],t[i])}function b(e,t){i=!i,p(e,t),i=!i}function x(e,t){Q||1024&r?b(e,t):p(e,t)}function S(t){if(8650752&t.flags)for(const n of e)if(t===n.typeParameter)return n}function T(e,t,n){let i=0;if(1048576&n){let n;const o=1048576&e.flags?e.types:[e],a=new Array(o.length);let s=!1;for(const e of t)if(S(e))n=e,i++;else for(let t=0;t<o.length;t++){const n=u;u=2048,p(o[t],e),u===r&&(a[t]=!0),s=s||-1===u,u=Math.min(u,n)}if(0===i){const n=function(e){let t;for(const n of e){const e=2097152&n.flags&&y(n.types,(e=>!!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(jb(e),n)}}else for(const n of t)S(n)?i++:p(e,n);if(2097152&n?1===i:i>0)for(const n of t)S(n)&&f(e,n,1)}function w(e,t,n){if(1048576&n.flags||2097152&n.flags){let r=!1;for(const i of n.types)r=w(e,t,i)||r;return r}if(4194304&n.flags){const r=S(n.type);if(r&&!r.isFixed&&!pN(e)){const i=aN(e,t,n);i&&f(i,r.typeParameter,262144&hx(e)?16:8)}return!0}if(262144&n.flags){f(rx(e,e.pattern?2:0),n,32);const r=nf(n);if(r&&w(e,t,r))return!0;return p(jb($(D($p(e),F_),D(qm(e),(e=>e!==ui?e.type:un)))),hp(t)),!0}return!1}function N(e,t){if(16777216&e.flags)p(e.checkType,t.checkType),p(e.extendsType,t.extendsType),p(Kx(e),Kx(t)),p(Gx(e),Gx(t));else{!function(e,t,n,i){const o=r;r|=i,T(e,t,n),r=o}(e,[Kx(t),Gx(t)],t.flags,i?64:0)}}function F(e,t){p(lp(e),lp(t)),p(hp(e),hp(t));const n=fp(e),r=fp(t);n&&r&&p(n,r)}function E(e,t){var n,r;if(4&hx(e)&&4&hx(t)&&(e.target===t.target||RC(e)&&RC(t)))v(fy(e),fy(t),VT(e.target));else{if(Tp(e)&&Tp(t)&&F(e,t),32&hx(t)&&!t.declaration.nameType){if(w(e,t,lp(t)))return}if(!function(e,t){return lw(e)&&lw(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<e.target.fixedLength)}(e,t):!!_N(e,t,!1,!0)&&!!_N(t,e,!1,!1)}(e,t)){if(BC(e)){if(lw(t)){const a=my(e),s=my(t),c=fy(t),l=t.target.elementFlags;if(lw(e)&&(o=t,my(i=e)===my(o)&&h(i.target.elementFlags,((e,t)=>(12&e)==(12&o.target.elementFlags[t]))))){for(let t=0;t<s;t++)p(fy(e)[t],c[t]);return}const _=lw(e)?Math.min(e.target.fixedLength,t.target.fixedLength):0,u=Math.min(lw(e)?Tb(e.target,3):0,12&t.target.combinedFlags?Tb(t.target,3):0);for(let t=0;t<_;t++)p(fy(e)[t],c[t]);if(!lw(e)||a-_-u==1&&4&e.target.elementFlags[_]){const t=fy(e)[_];for(let e=_;e<s-u;e++)p(8&l[e]?Uv(t):t,c[e])}else{const i=s-_-u;if(2===i){if(l[_]&l[_+1]&8){const t=S(c[_]);t&&void 0!==t.impliedArity&&(p(kb(e,_,u+a-t.impliedArity),c[_]),p(kb(e,_+t.impliedArity,u),c[_+1]))}else if(8&l[_]&&4&l[_+1]){const t=null==(n=S(c[_]))?void 0:n.typeParameter,r=t&&ff(t);if(r&&lw(r)&&!(12&r.target.combinedFlags)){const t=r.target.fixedLength;p(kb(e,_,a-(_+t)),c[_]),p(fw(e,_+t,u),c[_+1])}}else if(4&l[_]&&8&l[_+1]){const n=null==(r=S(c[_+1]))?void 0:r.typeParameter,i=n&&ff(n);if(i&&lw(i)&&!(12&i.target.combinedFlags)){const n=i.target.fixedLength,r=a-Tb(t.target,3),o=r-n,s=ob(fy(e).slice(o,r),e.target.elementFlags.slice(o,r),!1,e.target.labeledElementDeclarations&&e.target.labeledElementDeclarations.slice(o,r));p(fw(e,_,u+n),c[_]),p(s,c[_+1])}}}else if(1===i&&8&l[_]){const n=2&t.target.elementFlags[s-1];f(kb(e,_,u),c[_],n?2:0)}else if(1===i&&4&l[_]){const t=fw(e,_,u);t&&p(t,c[_])}}for(let t=0;t<u;t++)p(fy(e)[a-t-1],c[s-t-1]);return}if(RC(t))return void O(e,t)}!function(e,t){const n=Bp(t);for(const t of n){const n=fm(e,t.escapedName);n&&!V(n.declarations,dN)&&p(Fw(F_(n),!!(16777216&n.flags)),Fw(F_(t),!!(16777216&t.flags)))}}(e,t),P(e,t,0),P(e,t,1),O(e,t)}var i,o}}function P(e,t,n){const r=ym(e,n),i=r.length;if(i>0){const e=ym(t,n),o=e.length;for(let t=0;t<o;t++){I(Ph(r[Math.max(i-o+t,0)]),Nh(e[t]))}}}function I(e,t){if(!(64&e.flags)){const n=_,r=t.declaration?t.declaration.kind:0;_=_||174===r||173===r||176===r,Kw(e,t,x),_=n}Gw(e,t,p)}function O(e,t){const n=hx(e)&hx(t)&32?8:0,r=qm(t);if(Aw(e))for(const t of r){const r=[];for(const n of $p(e))if(Bm(Zb(n,8576),t.keyType)){const e=F_(n);r.push(16777216&n.flags?Pw(e):e)}for(const n of qm(e))Bm(n.keyType,t.keyType)&&r.push(n.type);r.length&&f(jb(r),t.type,n)}for(const t of r){const r=og(e,t.keyType);r&&f(r.type,t.type,n)}}p(t,n)}function kN(e,t){return t===Mt?e===t:NS(e,t)||!!(4&t.flags&&128&e.flags||8&t.flags&&256&e.flags)}function SN(e,t){return!!(524288&e.flags&&524288&t.flags&&e.symbol&&e.symbol===t.symbol||e.aliasSymbol&&e.aliasTypeArguments&&e.aliasSymbol===t.aliasSymbol)}function TN(e){return!!(128&hx(e))}function wN(e){return!!(16512&hx(e))}function DN(e){return 416&e.priority?Vb(e.contraCandidates):Ce(e.contraCandidates,((e,t)=>PS(t,e)?t:e))}function FN(e,t){const n=function(e){if(e.length>1){const t=C(e,wN);if(t.length){const n=jb(t,2);return $(C(e,(e=>!wN(e))),[n])}}return e}(e.candidates),r=function(e){const t=rf(e);return!!t&&Hj(16777216&t.flags?sf(t):t,406978556)}(e.typeParameter)||of(e.typeParameter),i=!r&&e.topLevel&&(e.isFixed||!function(e,t){const n=Kg(e);return n?!!n.type&&oN(n.type,t):oN(Zg(e),t)}(t,e.typeParameter)),o=r?E(n,hk):i?E(n,iw):n;return Uw(416&e.priority?jb(o,2):jC(o))}function EN(e,t){const n=e.inferences[t];if(!n.inferredType){let o,a;if(e.signature){const s=n.candidates?FN(n,e.signature):void 0,c=n.contraCandidates?DN(n):void 0;if(s||c){const t=s&&(!c||!(131073&s.flags)&&V(n.contraCandidates,(e=>IS(s,e)))&&h(e.inferences,(e=>e!==n&&rf(e.typeParameter)!==n.typeParameter||h(e.candidates,(e=>IS(e,s))))));o=t?s:c,a=t?c:s}else if(1&e.flags)o=dn;else{const a=vf(n.typeParameter);a&&(o=yS(a,(r=function(e,t){const n=e.inferences.slice(t);return Qk(D(n,(e=>e.typeParameter)),D(n,(()=>Lt)))}(e,t),i=e.nonFixingMapper,r?nS(5,r,i):i)))}}else o=uN(n);n.inferredType=o||PN(!!(2&e.flags));const s=rf(n.typeParameter);if(s){const t=yS(s,e.nonFixingMapper);o&&e.compareTypes(o,Td(t,o))||(n.inferredType=a&&e.compareTypes(a,Td(t,a))?a:t)}}var r,i;return n.inferredType}function PN(e){return e?wt:Lt}function AN(e){const t=[];for(let n=0;n<e.inferences.length;n++)t.push(EN(e,n));return t}function IN(e){switch(e.escapedText){case"document":case"console":return _a.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return j.types?_a.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.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;case"describe":case"suite":case"it":case"test":return j.types?_a.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.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;case"process":case"require":case"Buffer":case"module":return j.types?_a.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.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Bun":return j.types?_a.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.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun;case"Map":case"Set":case"Promise":case"Symbol":case"WeakMap":case"WeakSet":case"Iterator":case"AsyncIterator":case"SharedArrayBuffer":case"Atomics":case"AsyncIterable":case"AsyncIterableIterator":case"AsyncGenerator":case"AsyncGeneratorFunction":case"BigInt":case"Reflect":case"BigInt64Array":case"BigUint64Array":return _a.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;case"await":if(YD(e.parent))return _a.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return 304===e.parent.kind?_a.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:_a.Cannot_find_name_0}}function ON(e){const t=sa(e);return t.resolvedSymbol||(t.resolvedSymbol=!wd(e)&&Ue(e,e,1160127,IN(e),!cx(e),!1)||xt),t.resolvedSymbol}function LN(e){return!!(33554432&e.flags||uc(e,(e=>QF(e)||YF(e)||wD(e))))}function jN(e,t,n,r){switch(e.kind){case 80:if(!uv(e)){const i=ON(e);return i!==xt?`${r?$B(r):"-1"}|${Nb(t)}|${Nb(n)}|${HB(i)}`:void 0}case 110:return`0|${r?$B(r):"-1"}|${Nb(t)}|${Nb(n)}`;case 235:case 217:return jN(e.expression,t,n,r);case 166:const i=jN(e.left,t,n,r);return i&&`${i}.${e.right.escapedText}`;case 211:case 212:const o=MN(e);if(void 0!==o){const i=jN(e.expression,t,n,r);return i&&`${i}.${o}`}if(QD(e)&&VN(e.argumentExpression)){const i=ON(e.argumentExpression);if(sP(i)||uP(i)&&!QE(i)){const o=jN(e.expression,t,n,r);return o&&`${o}.@${HB(i)}`}}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${$B(e)}#${Nb(t)}`}}function RN(e,t){switch(t.kind){case 217:case 235:return RN(e,t.expression);case 226:return ib(t)&&RN(e,t.left)||uF(t)&&28===t.operatorToken.kind&&RN(e,t.right)}switch(e.kind){case 236:return 236===t.kind&&e.keywordToken===t.keywordToken&&e.name.escapedText===t.name.escapedText;case 80:case 81:return uv(e)?110===t.kind:80===t.kind&&ON(e)===ON(t)||(HF(t)||HD(t))&&ws(ON(e))===hs(t);case 110:return 110===t.kind;case 108:return 108===t.kind;case 235:case 217:return RN(e.expression,t);case 211:case 212:const n=MN(e);if(void 0!==n){const r=Tx(t)?MN(t):void 0;if(void 0!==r)return r===n&&RN(e.expression,t.expression)}if(QD(e)&&QD(t)&&VN(e.argumentExpression)&&VN(t.argumentExpression)){const n=ON(e.argumentExpression);if(n===ON(t.argumentExpression)&&(sP(n)||uP(n)&&!QE(n)))return RN(e.expression,t.expression)}break;case 166:return Tx(t)&&e.right.escapedText===MN(t)&&RN(e.left,t.expression);case 226:return uF(e)&&28===e.operatorToken.kind&&RN(e.right,t)}return!1}function MN(e){if(XD(e))return e.name.escapedText;if(QD(e))return jh((t=e).argumentExpression)?fc(t.argumentExpression.text):sb(t.argumentExpression)?function(e){const t=Xa(e,111551,!0);if(!t||!(sP(t)||8&t.flags))return;const n=t.valueDeclaration;if(void 0===n)return;const r=n_(n);if(r){const e=BN(r);if(void 0!==e)return e}if(Pu(n)&&la(n,e)){const e=Vm(n);if(e){const t=k_(n.parent)?fl(n):ER(e);return t&&BN(t)}if(VE(n))return Lp(n.name)}}(t.argumentExpression):void 0;var t;if(HD(e)){const t=cl(e);return t?fc(t):void 0}return cD(e)?""+e.parent.parameters.indexOf(e):void 0}function BN(e){return 8192&e.flags?e.escapedName:384&e.flags?fc(""+e.value):void 0}function JN(e,t){for(;Tx(e);)if(RN(e=e.expression,t))return!0;return!1}function zN(e,t){for(;hl(e);)if(RN(e=e.expression,t))return!0;return!1}function qN(e,t){if(e&&1048576&e.flags){const n=Mf(e,t);if(n&&2&ix(n))return void 0===n.links.isDiscriminantProperty&&(n.links.isDiscriminantProperty=!(192&~n.links.checkFlags||Fx(F_(n)))),!!n.links.isDiscriminantProperty}return!1}function UN(e,t){let n;for(const r of e)if(qN(t,r.escapedName)){if(n){n.push(r);continue}n=[r]}return n}function $N(e){const t=e.types;if(!(t.length<10||32768&hx(e)||T(t,(e=>!!(59506688&e.flags)))<10)){if(void 0===e.keyPropertyName){const n=_(t,(e=>59506688&e.flags?_($p(e),(e=>QC(F_(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(61603840&i.flags){const e=Wc(i,t);if(e){if(!ew(e))return;let t=!1;NF(e,(e=>{const r=Nb(hk(e)),o=n.get(r);o?o!==Lt&&(n.set(r,Lt),t=!0):n.set(r,i)})),t||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 HN(e,t){var n;const r=null==(n=e.constituentMap)?void 0:n.get(Nb(hk(t)));return r!==Lt?r:void 0}function KN(e,t){const n=$N(e),r=n&&Wc(t,n);return r&&HN(e,r)}function GN(e,t){return RN(e,t)||JN(e,t)}function XN(e,t){if(e.arguments)for(const n of e.arguments)if(GN(t,n)||zN(n,t))return!0;return!(211!==e.expression.kind||!GN(t,e.expression.expression))}function QN(e){return e.id<=0&&(e.id=RB,RB++),e.id}function YN(e,t){if(e===t)return e;if(131072&t.flags)return t;const n=`A${Nb(e)},${Nb(t)}`;return Eo(n)??Po(n,function(e,t){const n=OF(e,(e=>function(e,t){if(!(1048576&e.flags))return IS(e,t);for(const n of e.types)if(IS(n,t))return!0;return!1}(t,e))),r=512&t.flags&&yk(t)?JF(n,gk):n;return IS(t,r)?r:e}(e,t))}function ZN(e){if(256&hx(e))return!1;const t=Op(e);return!!(t.callSignatures.length||t.constructSignatures.length||t.members.get("bind")&&PS(e,Xn))}function eD(e,t){return nD(e,t)&t}function tD(e,t){return 0!==eD(e,t)}function nD(e,t){467927040&e.flags&&(e=ff(e)||Lt);const n=e.flags;if(268435460&n)return G?16317953:16776705;if(134217856&n){const t=128&n&&""===e.value;return G?t?12123649:7929345:t?12582401:16776705}if(40&n)return G?16317698:16776450;if(256&n){const t=0===e.value;return G?t?12123394:7929090:t?12582146:16776450}if(64&n)return G?16317188:16775940;if(2048&n){const t=mw(e);return G?t?12122884:7928580:t?12581636:16775940}if(16&n)return G?16316168:16774920;if(528&n)return G?e===Xt||e===Qt?12121864:7927560:e===Xt||e===Qt?12580616:16774920;if(524288&n){return t&(G?83427327:83886079)?16&hx(e)&&eT(e)?G?83427327:83886079:ZN(e)?G?7880640:16728e3:G?7888800:16736160:0}return 16384&n?9830144:32768&n?26607360:65536&n?42917664:12288&n?G?7925520:16772880:67108864&n?G?7888800:16736160:131072&n?0:1048576&n?Ce(e.types,((e,n)=>e|nD(n,t)),0):2097152&n?function(e,t){const n=Hj(e,402784252);let r=0,i=134217727;for(const o of e.types)if(!(n&&524288&o.flags)){const e=nD(o,t);r|=e,i&=e}return 8256&r|134209471&i}(e,t):83886079}function iD(e,t){return OF(e,(e=>tD(e,t)))}function ND(e,t){const n=ID(iD(G&&2&e.flags?In:e,t));if(G)switch(t){case 524288:return AD(n,65536,131072,33554432,qt);case 1048576:return AD(n,131072,65536,16777216,jt);case 2097152:case 4194304:return JF(n,(e=>tD(e,262144)?function(e){return ur||(ur=Ky("NonNullable",524288,void 0)||xt),ur!==xt?hy(ur,[e]):Vb([e,Nn])}(e):e))}return n}function AD(e,t,n,r,i){const o=eD(e,50528256);if(!(o&t))return e;const a=jb([Nn,i]);return JF(e,(e=>tD(e,t)?Vb([e,o&r||!tD(e,n)?Nn:a]):e))}function ID(e){return e===In?Lt:e}function LD(e,t){return t?jb([rl(e),ER(t)]):e}function RD(e,t){var n;const r=Yb(t);if(!cC(r))return Et;const i=lC(r);return Wc(e,i)||UD(null==(n=cg(e,i))?void 0:n.type)||Et}function JD(e,t){return IF(e,HC)&&GC(e,t)||UD(fB(65,e,jt,void 0))||Et}function UD(e){return e&&j.noUncheckedIndexedAccess?jb([e,Mt]):e}function VD(e){return Uv(fB(65,e,jt,void 0)||Et)}function tF(e){return 226===e.parent.kind&&e.parent.left===e||250===e.parent.kind&&e.parent.initializer===e}function oF(e){return RD(sF(e.parent),e.name)}function sF(e){const{parent:t}=e;switch(t.kind){case 249:return Vt;case 250:return pB(t)||Et;case 226:return function(e){return 209===e.parent.kind&&tF(e.parent)||303===e.parent.kind&&tF(e.parent.parent)?LD(sF(e),e.right):ER(e.right)}(t);case 220:return jt;case 209:return function(e,t){return JD(sF(e),e.elements.indexOf(t))}(t,e);case 230:return function(e){return VD(sF(e.parent))}(t);case 303:return oF(t);case 304:return function(e){return LD(oF(e),e.objectAssignmentInitializer)}(t)}return Et}function _F(e){return sa(e).resolvedType||ER(e)}function pF(e){return 260===e.kind?function(e){return e.initializer?_F(e.initializer):249===e.parent.parent.kind?Vt:250===e.parent.parent.kind&&pB(e.parent.parent)||Et}(e):function(e){const t=e.parent,n=pF(t.parent);return LD(206===t.kind?RD(n,e.propertyName||e.name):e.dotDotDotToken?VD(n):JD(n,t.elements.indexOf(e)),e.initializer)}(e)}function fF(e){switch(e.kind){case 217:return fF(e.expression);case 226:switch(e.operatorToken.kind){case 64:case 76:case 77:case 78:return fF(e.left);case 28:return fF(e.right)}}return e}function vF(e){const{parent:t}=e;return 217===t.kind||226===t.kind&&64===t.operatorToken.kind&&t.left===e||226===t.kind&&28===t.operatorToken.kind&&t.right===e?vF(t):e}function bF(e){return 296===e.kind?hk(ER(e.expression)):un}function SF(e){const t=sa(e);if(!t.switchTypes){t.switchTypes=[];for(const n of e.caseBlock.clauses)t.switchTypes.push(bF(n))}return t.switchTypes}function TF(e){if(V(e.caseBlock.clauses,(e=>296===e.kind&&!ju(e.expression))))return;const t=[];for(const n of e.caseBlock.clauses){const e=296===n.kind?n.expression.text:void 0;t.push(e&&!k(t,e)?e:void 0)}return t}function CF(e,t){return!!(e===t||131072&e.flags||1048576&t.flags&&function(e,t){if(1048576&e.flags){for(const n of e.types)if(!Db(t.types,n))return!1;return!0}if(1056&e.flags&&mu(e)===t)return!0;return Db(t.types,e)}(e,t))}function NF(e,t){return 1048576&e.flags?_(e.types,t):t(e)}function EF(e,t){return 1048576&e.flags?V(e.types,t):t(e)}function IF(e,t){return 1048576&e.flags?h(e.types,t):t(e)}function OF(e,t){if(1048576&e.flags){const n=e.types,r=C(n,t);if(r===n)return e;const i=e.origin;let o;if(i&&1048576&i.flags){const e=i.types,a=C(e,(e=>!!(1048576&e.flags)||t(e)));if(e.length-a.length==n.length-r.length){if(1===a.length)return a[0];o=Lb(1048576,a)}}return Bb(r,16809984&e.objectFlags,void 0,void 0,o)}return 131072&e.flags||t(e)?e:un}function MF(e,t){return OF(e,(e=>e!==t))}function BF(e){return 1048576&e.flags?e.types.length:1}function JF(e,t,n){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);const r=e.origin,i=r&&1048576&r.flags?r.types:e.types;let o,a=!1;for(const e of i){const r=1048576&e.flags?JF(e,t,n):t(e);a||(a=e!==r),r&&(o?o.push(r):o=[r])}return a?o&&jb(o,n?0:1):e}function zF(e,t){if(131072&e.flags)return e;if(!(1048576&e.flags))return t(e);const n=e.origin;return Vb((n&&1048576&n.flags?n.types:e.types).map((e=>1048576&e.flags?zF(e,t):t(e))))}function qF(e,t,n,r){return 1048576&e.flags&&n?jb(D(e.types,t),1,n,r):JF(e,t)}function UF(e,t){return OF(e,(e=>!!(e.flags&t)))}function VF(e,t){return Hj(e,134217804)&&Hj(t,402655616)?JF(e,(e=>4&e.flags?UF(t,402653316):wx(e)&&!Hj(t,402653188)?UF(t,128):8&e.flags?UF(t,264):64&e.flags?UF(t,2112):e)):e}function WF(e){return 0===e.flags}function $F(e){return 0===e.flags?e.type:e}function nE(e,t){return t?{flags:0,type:131072&e.flags?dn:e}:e}function sE(e){return ht[e.id]||(ht[e.id]=function(e){const t=Ls(256);return t.elementType=e,t}(e))}function cE(e,t){const n=Ow(nw(AR(t)));return CF(n,e.elementType)?e:sE(jb([e.elementType,n]))}function lE(e){return e.finalArrayType||(e.finalArrayType=131072&(t=e.elementType).flags?lr:Uv(1048576&t.flags?jb(t.types,2):t));var t}function uE(e){return 256&hx(e)?lE(e):e}function dE(e){return 256&hx(e)?e.elementType:un}function fE(e){const t=vF(e),n=t.parent,r=XD(n)&&("length"===n.name.escapedText||213===n.parent.kind&&VN(n.name)&&Xh(n.name)),i=212===n.kind&&n.expression===t&&226===n.parent.kind&&64===n.parent.operatorToken.kind&&n.parent.left===n&&!Qg(n.parent)&&Kj(ER(n.argumentExpression),296);return r||i}function bE(e,t){if(8752&(e=Ja(e)).flags)return F_(e);if(7&e.flags){if(262144&ix(e)){const t=e.links.syntheticOrigin;if(t&&bE(t))return F_(e)}const r=e.valueDeclaration;if(r){if((HF(n=r)||uD(n)||_D(n)||cD(n))&&(fv(n)||Em(n)&&Eu(n)&&n.initializer&&BT(n.initializer)&&gv(n.initializer)))return F_(e);if(HF(r)&&250===r.parent.parent.kind){const e=r.parent.parent,t=xE(e.expression,void 0);if(t){return fB(e.awaitModifier?15:13,t,jt,void 0)}}t&&sT(t,Rp(r,_a._0_needs_an_explicit_type_annotation,sc(e)))}}var n}function xE(e,t){if(!(67108864&e.flags))switch(e.kind){case 80:return bE(ws(ON(e)),t);case 110:return function(e){const t=em(e,!1,!1);if(r_(t)){const e=Pg(t);if(e.thisParameter)return bE(e.thisParameter)}if(u_(t.parent)){const e=hs(t.parent);return Fv(t)?F_(e):Tu(e).thisType}}(e);case 108:return YP(e);case 211:{const n=xE(e.expression,t);if(n){const r=e.name;let i;if(WN(r)){if(!n.symbol)return;i=fm(n,Vh(n.symbol,r.escapedText))}else i=fm(n,r.escapedText);return i&&bE(i,t)}return}case 217:return xE(e.expression,t)}}function kE(e){const t=sa(e);let n=t.effectsSignature;if(void 0===n){let r;if(uF(e)){r=Yj($I(e.right))}else 244===e.parent.kind?r=xE(e.expression,void 0):108!==e.expression.kind&&(r=hl(e)?eO(Dw(IR(e.expression),e.expression),e.expression):$I(e.expression));const i=ym(r&&Tf(r)||Lt,0),o=1!==i.length||i[0].typeParameters?V(i,SE)?TL(e):void 0:i[0];n=t.effectsSignature=o&&SE(o)?o:ci}return n===ci?void 0:n}function SE(e){return!!(Kg(e)||e.declaration&&131072&(th(e.declaration)||Lt).flags)}function DE(e){const t=LE(e,!1);return ti=e,ni=t,t}function PE(e){const t=ah(e,!0);return 97===t.kind||226===t.kind&&(56===t.operatorToken.kind&&(PE(t.left)||PE(t.right))||57===t.operatorToken.kind&&PE(t.left)&&PE(t.right))}function LE(e,t){for(;;){if(e===ti)return ni;const n=e.flags;if(4096&n){if(!t){const t=QN(e),n=to[t];return void 0!==n?n:to[t]=LE(e,!0)}t=!1}if(368&n)e=e.antecedent;else if(512&n){const t=kE(e.node);if(t){const n=Kg(t);if(n&&3===n.kind&&!n.type){const t=e.node.arguments[n.parameterIndex];if(t&&PE(t))return!1}if(131072&Zg(t).flags)return!1}e=e.antecedent}else{if(4&n)return V(e.antecedent,(e=>LE(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){ti=void 0;const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=LE(e.antecedent,!1);return t.antecedent=n,r}return!(1&n)}{const t=e.node;if(t.clauseStart===t.clauseEnd&&Ij(t.switchStatement))return!1;e=e.antecedent}}}}}function RE(e,t){for(;;){const n=e.flags;if(4096&n){if(!t){const t=QN(e),n=no[t];return void 0!==n?n:no[t]=RE(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=>RE(e,!1)));if(!(8&n)){if(1024&n){const t=e.node.target,n=t.antecedent;t.antecedent=e.node.antecedents;const r=RE(e.antecedent,!1);return t.antecedent=n,r}return!!(1&n)}e=e.antecedent[0]}}}function ME(e){switch(e.kind){case 110:return!0;case 80:if(!uv(e)){const t=ON(e);return sP(t)||uP(t)&&!QE(t)||!!t.valueDeclaration&&rF(t.valueDeclaration)}break;case 211:case 212:return ME(e.expression)&&Jj(sa(e).resolvedSymbol||xt);case 206:case 207:const t=Yh(e.parent);return cD(t)||MT(t)?!ZE(t):HF(t)&&Vq(t)}return!1}function $E(e,t,n=t,r,i=(t=>null==(t=et(e,Og))?void 0:t.flowNode)()){let o,a=!1,s=0;if(Ci)return Et;if(!i)return t;wi++;const c=Ti,l=$F(d(i));Ti=c;const _=256&hx(l)&&fE(e)?lr:uE(l);return _===fn||e.parent&&235===e.parent.kind&&!(131072&_.flags)&&131072&iD(_,2097152).flags?t:_;function u(){return a?o:(a=!0,o=jN(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}),Ci=!0,function(e){const t=uc(e,l_),n=yd(e),r=Kp(n,t.statements.pos);po.add(Xx(n,r.start,r.length,_a.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}(e),Et;let a;for(s++;;){const o=i.flags;if(4096&o){for(let e=c;e<Ti;e++)if(Zi[e]===i)return s--,eo[e];a=i}let l;if(16&o){if(l=f(i),!l){i=i.antecedent;continue}}else if(512&o){if(l=g(i),!l){i=i.antecedent;continue}}else if(96&o)l=x(i);else if(128&o)l=S(i);else if(12&o){if(1===i.antecedent.length){i=i.antecedent[0];continue}l=4&o?T(i):C(i)}else if(256&o){if(l=v(i),!l){i=i.antecedent;continue}}else if(1024&o){const e=i.node.target,t=e.antecedent;e.antecedent=i.node.antecedents,l=d(i.antecedent),e.antecedent=t}else if(2&o){const t=i.node;if(t&&t!==r&&211!==e.kind&&212!==e.kind&&(110!==e.kind||219===t.kind)){i=t.flowNode;continue}l=n}else l=YM(t);return a&&(Zi[Ti]=a,eo[Ti]=l,Ti++),s--,l}}function p(t){const n=t.node;return hP(260===n.kind||208===n.kind?pF(n):sF(n),e)}function f(n){const r=n.node;if(RN(e,r)){if(!DE(n))return fn;if(2===Xg(r)){const e=d(n.antecedent);return nE(nw($F(e)),WF(e))}if(t===Nt||t===lr){if(function(e){return 260===e.kind&&e.initializer&&Sl(e.initializer)||208!==e.kind&&226===e.parent.kind&&Sl(e.parent.right)}(r))return sE(un);const e=iw(p(n));return IS(e,t)?e:cr}const e=Yg(r)?nw(t):t;return 1048576&e.flags?YN(e,p(n)):e}if(JN(e,r)){if(!DE(n))return fn;if(HF(r)&&(Em(r)||Vq(r))){const e=Wm(r);if(e&&(218===e.kind||219===e.kind))return d(n.antecedent)}return t}if(HF(r)&&249===r.parent.parent.kind&&(RN(e,r.parent.parent.expression)||zN(r.parent.parent.expression,e)))return KI(uE($F(d(n.antecedent))))}function m(e,t){const n=ah(t,!0);if(97===n.kind)return fn;if(226===n.kind){if(56===n.operatorToken.kind)return m(m(e,n.left),n.right);if(57===n.operatorToken.kind)return jb([m(e,n.left),m(e,n.right)])}return Y(e,n,!0)}function g(e){const t=kE(e.node);if(t){const n=Kg(t);if(n&&(2===n.kind||3===n.kind)){const t=d(e.antecedent),r=uE($F(t)),i=n.type?Q(r,n,e.node,!0):3===n.kind&&n.parameterIndex>=0&&n.parameterIndex<e.node.arguments.length?m(r,e.node.arguments[n.parameterIndex]):r;return i===r?t:nE(i,WF(t))}if(131072&Zg(t).flags)return fn}}function v(n){if(t===Nt||t===lr){const t=n.node,r=213===t.kind?t.expression.expression:t.left.expression;if(RN(e,fF(r))){const e=d(n.antecedent),r=$F(e);if(256&hx(r)){let n=r;if(213===t.kind)for(const e of t.arguments)n=cE(n,e);else{Kj(AR(t.left.argumentExpression),296)&&(n=cE(n,t.right))}return n===r?e:nE(n,WF(e))}return e}}}function x(e){const t=d(e.antecedent),n=$F(t);if(131072&n.flags)return t;const r=!!(32&e.flags),i=uE(n),o=Y(i,e.node,r);return o===i?t:nE(o,WF(t))}function S(t){const n=ah(t.node.switchStatement.expression),r=d(t.antecedent);let i=$F(r);if(RN(e,n))i=U(i,t.node);else if(221===n.kind&&RN(e,n.expression))i=function(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=TF(t);if(!i)return e;const o=b(t.caseBlock.clauses,(e=>297===e.kind));if(n===r||o>=n&&o<r){const t=Aj(n,r,i);return OF(e,(e=>eD(e,t)===t))}return jb(D(i.slice(n,r),(t=>t?V(e,t):un)))}(i,t.node);else if(112===n.kind)i=function(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=b(t.caseBlock.clauses,(e=>297===e.kind)),o=n===r||i>=n&&i<r;for(let r=0;r<n;r++){const n=t.caseBlock.clauses[r];296===n.kind&&(e=Y(e,n.expression,!1))}if(o){for(let n=r;n<t.caseBlock.clauses.length;n++){const r=t.caseBlock.clauses[n];296===r.kind&&(e=Y(e,r.expression,!1))}return e}return jb(D(t.caseBlock.clauses.slice(n,r),(t=>296===t.kind?Y(e,t.expression,!0):un)))}(i,t.node);else{G&&(zN(n,e)?i=q(i,t.node,(e=>!(163840&e.flags))):221===n.kind&&zN(n.expression,e)&&(i=q(i,t.node,(e=>!(131072&e.flags||128&e.flags&&"undefined"===e.value)))));const r=N(n,i);r&&(i=function(e,t,n){if(n.clauseStart<n.clauseEnd&&1048576&e.flags&&$N(e)===MN(t)){const t=jb(D(SF(n.switchStatement).slice(n.clauseStart,n.clauseEnd),(t=>HN(e,t)||Lt)));if(t!==Lt)return t}return P(e,t,(e=>U(e,n)))}(i,r,t.node))}return nE(i,WF(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=$F(e);if(c===t&&t===n)return c;se(r,c),CF(c,n)||(o=!0),WF(e)&&(a=!0)}if(i){const e=d(i),s=$F(e);if(!(131072&s.flags||k(r,s)||Ij(i.node.switchStatement))){if(s===t&&t===n)return s;r.push(s),CF(s,n)||(o=!0),WF(e)&&(a=!0)}}return nE(w(r,o?2:1),a)}function C(e){const r=QN(e),i=Gi[r]||(Gi[r]=new Map),o=u();if(!o)return t;const a=i.get(o);if(a)return a;for(let t=ki;t<Si;t++)if(Xi[t]===e&&Qi[t]===o&&Yi[t].length)return nE(w(Yi[t],1),!0);const s=[];let c,l=!1;for(const r of e.antecedent){let a;if(c){Xi[Si]=e,Qi[Si]=o,Yi[Si]=s,Si++;const t=ri;ri=void 0,a=d(r),ri=t,Si--;const n=i.get(o);if(n)return n}else a=c=d(r);const _=$F(a);if(se(s,_),CF(_,n)||(l=!0),_===t)break}const _=w(s,l?2:1);return WF(c)?nE(_,!0):(i.set(o,_),_)}function w(e,n){if(function(e){let t=!1;for(const n of e)if(!(131072&n.flags)){if(!(256&hx(n)))return!1;t=!0}return t}(e))return sE(jb(D(e,dE)));const r=ID(jb(E(e,uE),n));return r!==t&&r.flags&t.flags&1048576&&ee(r.types,t.types)?t:r}function N(n,r){if(1048576&t.flags||1048576&r.flags){const i=function(t){if(k_(e)||BT(e)||Bf(e)){if(VN(t)){const n=ON(t).valueDeclaration;if(n&&(HD(n)||cD(n))&&e===n.parent&&!n.initializer&&!n.dotDotDotToken)return n}}else if(Tx(t)){if(RN(e,t.expression))return t}else if(VN(t)){const n=ON(t);if(sP(n)){const t=n.valueDeclaration;if(HF(t)&&!t.type&&t.initializer&&Tx(t.initializer)&&RN(e,t.initializer.expression))return t.initializer;if(HD(t)&&!t.initializer){const n=t.parent.parent;if(HF(n)&&!n.type&&n.initializer&&(VN(n.initializer)||Tx(n.initializer))&&RN(e,n.initializer))return t}}}}(n);if(i){const e=MN(i);if(e){if(qN(1048576&t.flags&&CF(r,t)?t:r,e))return i}}}}function P(e,t,n){const r=MN(t);if(void 0===r)return e;const i=hl(t),o=G&&(i||YT(t))&&Hj(e,98304);let a=Wc(o?iD(e,2097152):e,r);if(!a)return e;a=o&&i?Sw(a):a;const s=n(a);return OF(e,(e=>{const t=$c(e,r)||Lt;return!(131072&t.flags)&&!(131072&s.flags)&&jS(s,t)}))}function A(e,t,n,r,i){if((37===n||38===n)&&1048576&e.flags){const o=$N(e);if(o&&o===MN(t)){const t=HN(e,ER(r));if(t)return n===(i?37:38)?t:QC(Wc(t,o)||Lt)?MF(e,t):e}}return P(e,t,(e=>B(e,n,r,i)))}function I(t,n,r){if(RN(e,n))return ND(t,r?4194304:8388608);G&&r&&zN(n,e)&&(t=ND(t,2097152));const i=N(n,t);return i?P(t,i,(e=>iD(e,r?4194304:8388608))):t}function O(e,t,n){const r=fm(e,t);return r?!!(16777216&r.flags||48&ix(r))||n:!!cg(e,t)||!n}function L(e,t,n){const r=lC(t);if(EF(e,(e=>O(e,r,!0))))return OF(e,(e=>O(e,r,n)));if(n){const n=($r||($r=Hy("Record",2,!0)||xt),$r===xt?void 0:$r);if(n)return Vb([e,hy(n,[t,Lt])])}return e}function j(e,t,n,r,i){return Y(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 I(Y(t,n.right,r),n.left,r);case 35:case 36:case 37:case 38:const i=n.operatorToken.kind,o=fF(n.left),a=fF(n.right);if(221===o.kind&&ju(a))return J(t,o,i,a,r);if(221===a.kind&&ju(o))return J(t,a,i,o,r);if(RN(e,o))return B(t,i,a,r);if(RN(e,a))return B(t,i,o,r);G&&(zN(o,e)?t=M(t,i,a,r):zN(a,e)&&(t=M(t,i,o,r)));const s=N(o,t);if(s)return A(t,s,i,a,r);const c=N(a,t);if(c)return A(t,c,i,o,r);if($(o))return H(t,i,a,r);if($(a))return H(t,i,o,r);if(a_(a)&&!Tx(o))return j(t,o,a,i,r);if(a_(o)&&!Tx(a))return j(t,a,o,i,r);break;case 104:return function(t,n,r){const i=fF(n.left);if(!RN(e,i))return r&&G&&zN(i,e)?ND(t,2097152):t;const o=n.right,a=ER(o);if(!OS(a,Gn))return t;const s=kE(n),c=s&&Kg(s);if(c&&1===c.kind&&0===c.parameterIndex)return X(t,c.type,r,!0);if(!OS(a,Xn))return t;const l=JF(a,K);if(Hc(t)&&(l===Gn||l===Xn)||!r&&(!(524288&l.flags)||tT(l)))return t;return X(t,l,r,!0)}(t,n,r);case 103:if(WN(n.left))return function(t,n,r){const i=fF(n.right);if(!RN(e,i))return t;_n.assertNode(n.left,WN);const o=sO(n.left);if(void 0===o)return t;const a=o.parent,s=Ev(_n.checkDefined(o.valueDeclaration,"should always have a declaration"))?F_(a):Tu(a);return X(t,s,r,!0)}(t,n,r);const l=fF(n.right);if(Ew(t)&&Tx(e)&&RN(e.expression,l)){const i=ER(n.left);if(cC(i)&&MN(e)===lC(i))return iD(t,r?524288:65536)}if(RN(e,l)){const e=ER(n.left);if(cC(e))return L(t,e,r)}break;case 28:return Y(t,n.right,r);case 56:return r?Y(Y(t,n.left,!0),n.right,!0):jb([Y(t,n.left,!1),Y(t,n.right,!1)]);case 57:return r?jb([Y(t,n.left,!0),Y(t,n.right,!0)]):Y(Y(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?98304:32768,a=ER(n);return i!==r&&IF(a,(e=>!!(e.flags&o)))||i===r&&IF(a,(e=>!(e.flags&(3|o))))?ND(e,2097152):e}function B(e,t,n,r){if(1&e.flags)return e;36!==t&&38!==t||(r=!r);const i=ER(n),o=35===t||36===t;if(98304&i.flags){if(!G)return e;return ND(e,o?r?262144:2097152:65536&i.flags?r?131072:1048576:r?65536:524288)}if(r){if(!o&&(2&e.flags||EF(e,tT))){if(469893116&i.flags||tT(i))return i;if(524288&i.flags)return mn}return VF(OF(e,(e=>{return jS(e,i)||o&&(t=i,!!(524&e.flags)&&!!(28&t.flags));var t})),i)}return QC(i)?OF(e,(e=>!(YC(e)&&jS(e,i)))):e}function J(t,n,r,i,o){36!==r&&38!==r||(o=!o);const a=fF(n.expression);if(!RN(e,a)){G&&zN(a,e)&&o===("undefined"!==i.text)&&(t=ND(t,2097152));const n=N(a,t);return n?P(t,n,(e=>z(e,i,o))):t}return z(t,i,o)}function z(e,t,n){return n?V(e,t.text):ND(e,BB.get(t.text)||32768)}function q(e,{switchStatement:t,clauseStart:n,clauseEnd:r},i){return n!==r&&h(SF(t).slice(n,r),i)?iD(e,2097152):e}function U(e,{switchStatement:t,clauseStart:n,clauseEnd:r}){const i=SF(t);if(!i.length)return e;const o=i.slice(n,r),a=n===r||k(o,un);if(2&e.flags&&!a){let t;for(let n=0;n<o.length;n+=1){const r=o[n];if(469893116&r.flags)void 0!==t&&t.push(r);else{if(!(524288&r.flags))return e;void 0===t&&(t=o.slice(0,n)),t.push(mn)}}return jb(void 0===t?o:t)}const s=jb(o),c=131072&s.flags?un:VF(OF(e,(e=>jS(s,e))),s);if(!a)return c;const l=OF(e,(e=>!(YC(e)&&k(i,32768&e.flags?jt:hk(function(e){return 2097152&e.flags&&y(e.types,QC)||e}(e))))));return 131072&c.flags?l:jb([c,l])}function V(e,t){switch(t){case"string":return W(e,Vt,1);case"number":return W(e,Wt,2);case"bigint":return W(e,$t,4);case"boolean":return W(e,sn,8);case"symbol":return W(e,cn,16);case"object":return 1&e.flags?e:jb([W(e,mn,32),W(e,qt,131072)]);case"function":return 1&e.flags?e:W(e,Xn,64);case"undefined":return W(e,jt,65536)}return W(e,mn,128)}function W(e,t,n){return JF(e,(e=>pT(e,t,ho)?tD(e,n)?e:un:PS(t,e)?t:tD(e,n)?Vb([e,t]):un))}function $(t){return(XD(t)&&"constructor"===gc(t.name)||QD(t)&&ju(t.argumentExpression)&&"constructor"===t.argumentExpression.text)&&RN(e,t.expression)}function H(e,t,n,r){if(r?35!==t&&37!==t:36!==t&&38!==t)return e;const i=ER(n);if(!Wz(i)&&!Z_(i))return e;const o=fm(i,"prototype");if(!o)return e;const a=F_(o),s=Hc(a)?void 0:a;return s&&s!==Gn&&s!==Xn?Hc(e)?s:OF(e,(e=>function(e,t){if(524288&e.flags&&1&hx(e)||524288&t.flags&&1&hx(t))return e.symbol===t.symbol;return PS(e,t)}(e,s))):e}function K(e){const t=Wc(e,"prototype");if(t&&!Hc(t))return t;const n=ym(e,1);return n.length?jb(D(n,(e=>Zg(Nh(e))))):Nn}function X(e,t,n,r){const i=1048576&e.flags?`N${Nb(e)},${Nb(t)},${(n?1:0)|(r?2:0)}`:void 0;return Eo(i)??Po(i,function(e,t,n,r){if(!n){if(e===t)return un;if(r)return OF(e,(e=>!OS(e,t)));const n=X(e,t,!0,!1);return OF(e,(e=>!CF(e,n)))}if(3&e.flags)return t;if(e===t)return t;const i=r?OS:PS,o=1048576&e.flags?$N(e):void 0,a=JF(t,(t=>{const n=o&&Wc(t,o),a=JF(n&&HN(e,n)||e,r?e=>OS(e,t)?e:OS(t,e)?t:un:e=>AS(e,t)?e:AS(t,e)?t:PS(e,t)?e:PS(t,e)?t:un);return 131072&a.flags?JF(e,(e=>Hj(e,465829888)&&i(t,ff(e)||Lt)?Vb([e,t]):un)):a}));return 131072&a.flags?PS(t,e)?t:IS(e,t)?e:IS(t,e)?t:Vb([e,t]):a}(e,t,n,r))}function Q(t,n,r,i){if(n.type&&(!Hc(t)||n.type!==Gn&&n.type!==Xn)){const o=function(e,t){if(1===e.kind||3===e.kind)return t.arguments[e.parameterIndex];const n=ah(t.expression);return Tx(n)?ah(n.expression):void 0}(n,r);if(o){if(RN(e,o))return X(t,n.type,i,!1);G&&zN(o,e)&&(i&&!tD(n.type,65536)||!i&&IF(n.type,HI))&&(t=ND(t,2097152));const r=N(o,t);if(r)return P(t,r,(e=>X(e,n.type,i,!1)))}}return t}function Y(t,n,r){if(vl(n)||uF(n.parent)&&(61===n.parent.operatorToken.kind||78===n.parent.operatorToken.kind)&&n.parent.left===n)return function(t,n,r){if(RN(e,n))return ND(t,r?2097152:262144);const i=N(n,t);if(i)return P(t,i,(e=>iD(e,r?2097152:262144)));return t}(t,n,r);switch(n.kind){case 80:if(!RN(e,n)&&F<5){const i=ON(n);if(sP(i)){const n=i.valueDeclaration;if(n&&HF(n)&&!n.type&&n.initializer&&ME(e)){F++;const e=Y(t,n.initializer,r);return F--,e}}}case 110:case 108:case 211:case 212:return I(t,n,r);case 213:return function(t,n,r){if(XN(n,e)){const e=r||!gl(n)?kE(n):void 0,i=e&&Kg(e);if(i&&(0===i.kind||1===i.kind))return Q(t,i,n,r)}if(Ew(t)&&Tx(e)&&XD(n.expression)){const i=n.expression;if(RN(e.expression,fF(i.expression))&&VN(i.name)&&"hasOwnProperty"===i.name.escapedText&&1===n.arguments.length){const i=n.arguments[0];if(ju(i)&&MN(e)===fc(i.text))return iD(t,r?524288:65536)}}return t}(t,n,r);case 217:case 235:return Y(t,n.expression,r);case 226:return R(t,n,r);case 224:if(54===n.operator)return Y(t,n.operand,!r)}return t}}function XE(e){return uc(e.parent,(e=>r_(e)&&!om(e)||268===e.kind||307===e.kind||172===e.kind))}function QE(e){return!YE(e,void 0)}function YE(e,t){const n=uc(e.valueDeclaration,rP);if(!n)return!1;const r=sa(n);return 131072&r.flags||(r.flags|=131072,uc(n.parent,(e=>rP(e)&&!!(131072&sa(e).flags)))||aP(n)),!e.lastAssignmentPos||t&&Math.abs(e.lastAssignmentPos)<t.pos}function ZE(e){return _n.assert(HF(e)||cD(e)),eP(e.name)}function eP(e){return 80===e.kind?QE(hs(e.parent)):V(e.elements,(e=>232!==e.kind&&eP(e.name)))}function rP(e){return o_(e)||WE(e)}function aP(e){switch(e.kind){case 80:const t=Xg(e);if(0!==t){const n=ON(e),r=1===t||void 0!==n.lastAssignmentPos&&n.lastAssignmentPos<0;if(uP(n)){if(void 0===n.lastAssignmentPos||Math.abs(n.lastAssignmentPos)!==Number.MAX_VALUE){const t=uc(e,rP),r=uc(n.valueDeclaration,rP);n.lastAssignmentPos=t===r?function(e,t){let n=e.pos;for(;e&&e.pos>t.pos;){switch(e.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:n=e.end}e=e.parent}return n}(e,n.valueDeclaration):Number.MAX_VALUE}r&&n.lastAssignmentPos>0&&(n.lastAssignmentPos*=-1)}}return;case 281:const n=e.parent.parent,r=e.propertyName||e.name;if(!e.isTypeOnly&&!n.isTypeOnly&&!n.moduleSpecifier&&11!==r.kind){const e=Xa(r,111551,!0,!0);if(e&&uP(e)){const t=void 0!==e.lastAssignmentPos&&e.lastAssignmentPos<0?-1:1;e.lastAssignmentPos=t*Number.MAX_VALUE}}return;case 264:case 265:case 266:return}b_(e)||RI(e,aP)}function sP(e){return 3&e.flags&&!!(6&BI(e))}function uP(e){const t=e.valueDeclaration&&Yh(e.valueDeclaration);return!!t&&(cD(t)||HF(t)&&(JE(t.parent)||dP(t)))}function dP(e){return!!(1&e.parent.flags)&&!(32&ic(e)||243===e.parent.parent.kind&&Qp(e.parent.parent.parent))}function fP(e,t){const n=G&&169===t.kind&&t.initializer&&tD(e,16777216)&&!function(e){const t=sa(e);if(void 0===t.parameterInitializerContainsUndefined){if(!Jc(e,8))return w_(e.symbol),!0;const n=!!tD(pR(e,0),16777216);if(!Uc())return w_(e.symbol),!0;t.parameterInitializerContainsUndefined??(t.parameterInitializerContainsUndefined=n)}return t.parameterInitializerContainsUndefined}(t);return n?iD(e,524288):e}function mP(e){return 2097152&e.flags?V(e.types,mP):!!(465829888&e.flags&&1146880&mf(e).flags)}function gP(e){return 2097152&e.flags?V(e.types,gP):!(!(465829888&e.flags)||Hj(mf(e),98304))}function hP(e,t,n,r){wy(e)&&(e=e.baseType);const i=!(n&&2&n)&&EF(e,mP)&&(r||function(e,t){const n=t.parent;return 211===n.kind||166===n.kind||213===n.kind&&n.expression===t||214===n.kind&&n.expression===t||212===n.kind&&n.expression===t&&!(EF(e,gP)&&Px(ER(n.argumentExpression)))}(e,t)||function(e,t){const n=(VN(e)||XD(e)||QD(e))&&!((NE(e.parent)||wE(e.parent))&&e.parent.tagName===e)&&MA(e,t&&32&t?8:void 0);return n&&!Fx(n)}(t,n));return i?JF(e,mf):e}function yP(e){return!!uc(e,(e=>{const t=e.parent;return void 0===t?"quit":gE(t)?t.expression===e&&sb(e):!!vE(t)&&(t.name===e||t.propertyName===e)}))}function bP(e,t,n,r){if(Je&&(!(33554432&e.flags)||_D(e)||uD(e)))switch(t){case 1:return xP(e);case 2:return kP(e,n,r);case 3:return TP(e);case 4:return wP(e);case 5:return FP(e);case 6:return PP(e);case 7:return IP(e);case 8:return LP(e);case 0:if(VN(e)&&(bm(e)||qE(e.parent)||iE(e.parent)&&e.parent.moduleReference===e)&&VP(e)){if(I_(e.parent)){if((XD(e.parent)?e.parent.expression:e.parent.left)!==e)return}return void xP(e)}if(I_(e)){let t=e;for(;I_(t);){if(Cf(t))return;t=t.parent}return kP(e)}if(gE(e))return TP(e);if(bu(e)||EE(e))return wP(e);if(iE(e))return Nm(e)||MJ(e)?PP(e):void 0;if(vE(e))return IP(e);if((o_(e)||dD(e))&&FP(e),!j.emitDecoratorMetadata)return;if(!(_I(e)&&jv(e)&&e.modifiers&&dm(q,e,e.parent,e.parent.parent)))return;return LP(e);default:_n.assertNever(t,`Unhandled reference hint: ${t}`)}}function xP(e){const t=ON(e);t&&t!==Le&&t!==xt&&!uv(e)&&jP(t,e)}function kP(e,t,n){const r=XD(e)?e.expression:e.left;if(lv(r)||!VN(r))return;const i=ON(r);if(!i||i===xt)return;if(Sk(j)||Ek(j)&&yP(e))return void jP(i,e);const o=n||uR(r);if(Hc(o)||o===dn)return void jP(i,e);let a=t;if(!a&&!n){const t=XD(e)?e.name:e.right,n=WN(t)&&oO(t.escapedText,t),r=Tf(0!==Xg(e)||iO(e)?Uw(o):o);a=WN(t)?n&&cO(r,n)||void 0:fm(r,t.escapedText)}a&&(Oz(a)||8&a.flags&&306===e.parent.kind)||jP(i,e)}function TP(e){if(VN(e.expression)){const t=e.expression,n=ws(Xa(t,-1,!0,!0,e));n&&jP(n,t)}}function wP(e){if(!xI(e)){const t=po&&2===j.jsx?_a.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found:void 0,n=Io(e),r=bu(e)?e.tagName:e,i=1!==j.jsx&&3!==j.jsx;let o;if(EE(e)&&"null"===n||(o=Ue(r,n,i?111551:111167,t,!0)),o&&(o.isReferenced=-1,Je&&2097152&o.flags&&!Ha(o)&&RP(o)),EE(e)){const n=rq(yd(e));if(n){const e=cb(n).escapedText;Ue(r,e,i?111551:111167,t,!0)}}}}function FP(e){if(M<2&&2&Oh(e)){const n=gv(e);BP((t=n)&&_m(t),!1)}var t}function PP(e){Dv(e,32)&&MP(e)}function IP(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=Ue(t,t.escapedText,2998271,void 0,!0);if(n&&(n===De||n===Fe||n.declarations&&Qp(Vc(n.declarations[0]))));else{const r=n&&(2097152&n.flags?qa(n):n);(!r||111551&Ua(r))&&(MP(e),xP(t))}}}function LP(e){if(j.emitDecoratorMetadata){const t=y(e.modifiers,lD);if(!t)return;switch(sq(t,16),e.kind){case 263:const t=iv(e);if(t)for(const e of t.parameters)JP(kM(e));break;case 177:case 178:const n=177===e.kind?178:177,r=$u(hs(e),n);JP(c_(e)||r&&c_(r));break;case 174:for(const t of e.parameters)JP(kM(t));JP(gv(e));break;case 172:JP(fv(e));break;case 169:JP(kM(e));const i=e.parent;for(const e of i.parameters)JP(kM(e));JP(gv(i))}}}function jP(e,t){if(Je&&Ba(e,111551)&&!_v(t)){const n=qa(e);1160127&Ua(e,!0)&&(Sk(j)||Ek(j)&&yP(t)||!Oz(ws(n)))&&RP(e)}}function RP(e){_n.assert(Je);const t=aa(e);if(!t.referenced){t.referenced=!0;const n=xa(e);if(!n)return _n.fail();if(Nm(n)&&111551&Ua(Ja(e))){xP(cb(n.moduleReference))}}}function MP(e){const t=hs(e),n=qa(t);if(n){(n===xt||111551&Ua(t,!0)&&!Oz(n))&&RP(t)}}function BP(e,t){if(!e)return;const n=cb(e),r=2097152|(80===e.kind?788968:1920),i=Ue(n,n.escapedText,r,void 0,!0);if(i&&2097152&i.flags)if(Je&&Ns(i)&&!Oz(qa(i))&&!Ha(i))RP(i);else if(t&&Sk(j)&&bk(j)>=5&&!Ns(i)&&!V(i.declarations,zl)){const t=Ro(e,_a.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,ka);r&&sT(t,Rp(r,_a._0_was_imported_here,gc(n)))}}function JP(e){const t=bM(e);t&&e_(t)&&BP(t,!0)}function zP(e,t){if(uv(e))return;if(t===Le){if(pO(e))return void Ro(e,_a.arguments_cannot_be_referenced_in_property_initializers);let t=Kf(e);if(t)for(M<2&&(219===t.kind?Ro(e,_a.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES5_Consider_using_a_standard_function_expression):Dv(t,1024)&&Ro(e,_a.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES5_Consider_using_a_standard_function_or_method)),sa(t).flags|=512;t&&iF(t);)t=Kf(t),t&&(sa(t).flags|=512);return}const n=ws(t),r=zJ(n,e);Uo(r)&&bx(e,r)&&r.declarations&&Wo(e,r.declarations,e.escapedText);const i=n.valueDeclaration;if(i&&32&n.flags&&u_(i)&&i.name!==e){let t=em(e,!1,!1);for(;307!==t.kind&&t.parent!==i;)t=em(t,!1,!1);307!==t.kind&&(sa(i).flags|=262144,sa(t).flags|=262144,sa(e).flags|=536870912)}!function(e,t){if(M>=2||!(34&t.flags)||!t.valueDeclaration||WE(t.valueDeclaration)||299===t.valueDeclaration.parent.kind)return;const n=Fp(t.valueDeclaration),r=function(e,t){return!!uc(e,(e=>e===t?"quit":r_(e)||e.parent&&uD(e.parent)&&!Ev(e.parent)&&e.parent.initializer===e))}(e,n),i=WP(n);if(i){if(r){let r=!0;if(LF(n)){const i=Th(t.valueDeclaration,261);if(i&&i.parent===n){const i=function(e,t){return uc(e,(e=>e===t?"quit":e===t.initializer||e===t.condition||e===t.incrementor||e===t.statement))}(e.parent,n);if(i){const e=sa(i);e.flags|=8192;se(e.capturedBlockScopeBindings||(e.capturedBlockScopeBindings=[]),t),i===n.initializer&&(r=!1)}}}r&&(sa(i).flags|=4096)}if(LF(n)){const r=Th(t.valueDeclaration,261);r&&r.parent===n&&function(e,t){let n=e;for(;217===n.parent.kind;)n=n.parent;let r=!1;if(Qg(n))r=!0;else if(224===n.parent.kind||225===n.parent.kind){const e=n.parent;r=46===e.operator||47===e.operator}if(!r)return!1;return!!uc(n,(e=>e===t?"quit":e===t.statement))}(e,n)&&(sa(t.valueDeclaration).flags|=65536)}sa(t.valueDeclaration).flags|=32768}r&&(sa(t.valueDeclaration).flags|=16384)}(e,t)}function UP(e,t){if(uv(e))return XP(e);const n=ON(e);if(n===xt)return Et;if(zP(e,n),n===Le)return pO(e)?Et:F_(n);VP(e)&&bP(e,1);const r=ws(n);let i=r.valueDeclaration;const o=i;if(i&&208===i.kind&&k(Ai,i.parent)&&uc(e,(e=>e===i.parent)))return At;let a=function(e,t){var n;const r=F_(e),i=e.valueDeclaration;if(i){if(HD(i)&&!i.initializer&&!i.dotDotDotToken&&i.parent.elements.length>=2){const e=i.parent.parent,n=Yh(e);if(260===n.kind&&6&Uq(n)||169===n.kind){const r=sa(e);if(!(4194304&r.flags)){r.flags|=4194304;const o=Yc(e,0),a=o&&JF(o,mf);if(r.flags&=-4194305,a&&1048576&a.flags&&(169!==n.kind||!ZE(n))){const e=$E(i.parent,a,a,void 0,t.flowNode);return 131072&e.flags?un:ml(i,e,!0)}}}}if(cD(i)&&!i.type&&!i.initializer&&!i.dotDotDotToken){const e=i.parent;if(e.parameters.length>=2&&CS(e)){const r=XA(e);if(r&&1===r.parameters.length&&ZB(r)){const o=wf(yS(F_(r.parameters[0]),null==(n=UA(e))?void 0:n.nonFixingMapper));if(1048576&o.flags&&IF(o,lw)&&!V(e.parameters,ZE))return Rx($E(e,o,o,void 0,t.flowNode),wk(e.parameters.indexOf(i)-(sv(e)?1:0)))}}}}return r}(r,e);const s=Xg(e);if(s){if(!(3&r.flags||Em(e)&&512&r.flags)){return Ro(e,384&r.flags?_a.Cannot_assign_to_0_because_it_is_an_enum:32&r.flags?_a.Cannot_assign_to_0_because_it_is_a_class:1536&r.flags?_a.Cannot_assign_to_0_because_it_is_a_namespace:16&r.flags?_a.Cannot_assign_to_0_because_it_is_a_function:2097152&r.flags?_a.Cannot_assign_to_0_because_it_is_an_import:_a.Cannot_assign_to_0_because_it_is_not_a_variable,sc(n)),Et}if(Jj(r))return 3&r.flags?Ro(e,_a.Cannot_assign_to_0_because_it_is_a_constant,sc(n)):Ro(e,_a.Cannot_assign_to_0_because_it_is_a_read_only_property,sc(n)),Et}const c=2097152&r.flags;if(3&r.flags){if(1===s)return Yg(e)?nw(a):a}else{if(!c)return a;i=xa(n)}if(!i)return a;a=hP(a,e,t);const l=169===Yh(i).kind,_=XE(i);let u=XE(e);const d=u!==_,p=e.parent&&e.parent.parent&&UE(e.parent)&&tF(e.parent.parent),f=134217728&n.flags,m=a===Nt||a===lr,g=m&&235===e.parent.kind;for(;u!==_&&(218===u.kind||219===u.kind||Jf(u))&&(sP(r)&&a!==lr||uP(r)&&YE(r,e));)u=XE(u);const h=o&&HF(o)&&!o.initializer&&!o.exclamationToken&&dP(o)&&!function(e){return(void 0!==e.lastAssignmentPos||QE(e)&&void 0!==e.lastAssignmentPos)&&e.lastAssignmentPos<0}(n),y=l||c||d&&!h||p||f||function(e,t){if(HD(t)){const n=uc(e,HD);return n&&Yh(n)===Yh(t)}}(e,i)||a!==Nt&&a!==lr&&(!G||!!(16387&a.flags)||_v(e)||LN(e)||281===e.parent.kind)||235===e.parent.kind||260===i.kind&&i.exclamationToken||33554432&i.flags,v=g?jt:y?l?fP(a,i):a:m?jt:Sw(a),b=g?Tw($E(e,a,v,u)):$E(e,a,v,u);if(fE(e)||a!==Nt&&a!==lr){if(!y&&!iT(a)&&iT(b))return Ro(e,_a.Variable_0_is_used_before_being_assigned,sc(n)),a}else if(b===Nt||b===lr)return ie&&(Ro(Cc(i),_a.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,sc(n),lc(b)),Ro(e,_a.Variable_0_implicitly_has_an_1_type,sc(n),lc(b))),YM(b);return s?nw(b):b}function VP(e){var t;const n=e.parent;if(n){if(XD(n)&&n.expression===e)return!1;if(vE(n)&&n.isTypeOnly)return!1;const r=null==(t=n.parent)?void 0:t.parent;if(r&&hE(r)&&r.isTypeOnly)return!1}return!0}function WP(e){return uc(e,(e=>!e||Zh(e)?"quit":$_(e,!1)))}function $P(e,t){if(sa(e).flags|=2,172===t.kind||176===t.kind){sa(t.parent).flags|=4}else sa(t).flags|=4}function HP(e){return cf(e)?e:r_(e)?void 0:RI(e,HP)}function KP(e){return ru(Tu(hs(e)))===Ut}function GP(e,t,n){const r=t.parent;vh(r)&&!KP(r)&&Og(e)&&e.flowNode&&!RE(e.flowNode,!1)&&Ro(e,n)}function XP(e){const t=_v(e);let n=em(e,!0,!0),r=!1,i=!1;for(176===n.kind&&GP(e,n,_a.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);219===n.kind&&(n=em(n,!1,!i),r=!0),167===n.kind;)n=em(n,!r,!1),i=!0;if(function(e,t){uD(t)&&Ev(t)&&q&&t.initializer&&As(t.initializer,e.pos)&&jv(t.parent)&&Ro(e,_a.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}(e,n),i)Ro(e,_a.this_cannot_be_referenced_in_a_computed_property_name);else switch(n.kind){case 267:Ro(e,_a.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:Ro(e,_a.this_cannot_be_referenced_in_current_location)}!t&&r&&M<2&&$P(e,n);const o=QP(e,!0,n);if(oe){const t=F_(Fe);if(o===t&&r)Ro(e,_a.The_containing_arrow_function_captures_the_global_value_of_this);else if(!o){const r=Ro(e,_a.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!WE(n)){const e=QP(n);e&&e!==t&&sT(r,Rp(n,_a.An_outer_value_of_this_is_shadowed_by_this_container))}}}return o||wt}function QP(e,t=!0,n=em(e,!1,!1)){const r=Em(e);if(r_(n)&&(!_A(e)||sv(n))){let t=Hg(Pg(n))||r&&function(e){const t=Qc(e);if(t&&t.typeExpression)return Bk(t.typeExpression);const n=Ig(e);if(n)return Hg(n)}(n);if(!t){const e=function(e){if(218===e.kind&&uF(e.parent)&&3===tg(e.parent))return e.parent.left.expression.expression;if(174===e.kind&&210===e.parent.kind&&uF(e.parent.parent)&&6===tg(e.parent.parent))return e.parent.parent.left.expression;if(218===e.kind&&303===e.parent.kind&&210===e.parent.parent.kind&&uF(e.parent.parent.parent)&&6===tg(e.parent.parent.parent))return e.parent.parent.parent.left.expression;if(218===e.kind&&zE(e.parent)&&VN(e.parent.name)&&("value"===e.parent.name.escapedText||"get"===e.parent.name.escapedText||"set"===e.parent.name.escapedText)&&GD(e.parent.parent)&&YD(e.parent.parent.parent)&&e.parent.parent.parent.arguments[2]===e.parent.parent&&9===tg(e.parent.parent.parent))return e.parent.parent.parent.arguments[0].expression;if(pD(e)&&VN(e.name)&&("value"===e.name.escapedText||"get"===e.name.escapedText||"set"===e.name.escapedText)&&GD(e.parent)&&YD(e.parent.parent)&&e.parent.parent.arguments[2]===e.parent&&9===tg(e.parent.parent))return e.parent.parent.arguments[0].expression}(n);if(r&&e){const n=IR(e).symbol;n&&n.members&&16&n.flags&&(t=Tu(n).thisType)}else CL(n)&&(t=Tu(fs(n.symbol)).thisType);t||(t=rA(n))}if(t)return $E(e,t)}if(u_(n.parent)){const t=hs(n.parent);return $E(e,Fv(n)?F_(t):Tu(t).thisType)}if(WE(n)){if(n.commonJsModuleIndicator){const e=hs(n);return e&&F_(e)}if(n.externalModuleIndicator)return jt;if(t)return F_(Fe)}}function YP(e){const t=213===e.parent.kind&&e.parent.expression===e,n=im(e,!0);let r=n,i=!1,o=!1;if(!t){for(;r&&219===r.kind;)Dv(r,1024)&&(o=!0),r=im(r,!0),i=M<2;r&&Dv(r,1024)&&(o=!0)}let a=0;if(!r||!function(e){if(t)return 176===e.kind;if(u_(e.parent)||210===e.parent.kind)return Fv(e)?174===e.kind||173===e.kind||177===e.kind||178===e.kind||172===e.kind||175===e.kind:174===e.kind||173===e.kind||177===e.kind||178===e.kind||172===e.kind||171===e.kind||176===e.kind;return!1}(r)){const n=uc(e,(e=>e===r?"quit":167===e.kind));return n&&167===n.kind?Ro(e,_a.super_cannot_be_referenced_in_a_computed_property_name):t?Ro(e,_a.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):r&&r.parent&&(u_(r.parent)||210===r.parent.kind)?Ro(e,_a.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Ro(e,_a.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Et}if(t||176!==n.kind||GP(e,r,_a.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),Fv(r)||t?(a=32,!t&&M>=2&&M<=8&&(uD(r)||fD(r))&&Ep(e.parent,(e=>{WE(e)&&!Yp(e)||(sa(e).flags|=2097152)}))):a=16,sa(e).flags|=a,174===r.kind&&o&&(am(e.parent)&&Qg(e.parent)?sa(r).flags|=256:sa(r).flags|=128),i&&$P(e.parent,r),210===r.parent.kind)return M<2?(Ro(e,_a.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Et):wt;const s=r.parent;if(!vh(s))return Ro(e,_a.super_can_only_be_referenced_in_a_derived_class),Et;if(KP(s))return t?Et:Ut;const c=Tu(hs(s)),l=c&&cu(c)[0];return l?176===r.kind&&function(e,t){return!!uc(e,(e=>o_(e)?"quit":169===e.kind&&e.parent===t))}(e,r)?(Ro(e,_a.super_cannot_be_referenced_in_constructor_arguments),Et):32===a?ru(c):Td(l,c.thisType):Et}function ZP(e){return 174!==e.kind&&177!==e.kind&&178!==e.kind||210!==e.parent.kind?218===e.kind&&303===e.parent.kind?e.parent.parent:void 0:e.parent}function eA(e){return 4&hx(e)&&e.target===sr?fy(e)[0]:void 0}function tA(e){return JF(e,(e=>2097152&e.flags?_(e.types,eA):eA(e)))}function nA(e,t){let n=e,r=t;for(;r;){const e=tA(r);if(e)return e;if(303!==n.parent.kind)break;n=n.parent.parent,r=LA(n,void 0)}}function rA(e){if(219===e.kind)return;if(CS(e)){const t=XA(e);if(t){const e=t.thisParameter;if(e)return F_(e)}}const t=Em(e);if(oe||t){const n=ZP(e);if(n){const e=LA(n,void 0),t=nA(n,e);return t?yS(t,nN(UA(n))):Uw(e?Tw(e):uR(n))}const r=rh(e.parent);if(ib(r)){const e=r.left;if(Tx(e)){const{expression:n}=e;if(t&&VN(n)){const e=yd(r);if(e.commonJsModuleIndicator&&ON(n)===e.symbol)return}return Uw(uR(n))}}}}function oA(e){const t=e.parent;if(!CS(t))return;const n=om(t);if(n&&n.arguments){const r=nL(n),i=t.parameters.indexOf(e);if(e.dotDotDotToken)return GO(r,i,r.length,wt,void 0,0);const o=sa(n),a=o.resolvedSignature;o.resolvedSignature=si;const s=i<r.length?iw(IR(r[i])):e.initializer?void 0:Rt;return o.resolvedSignature=a,s}const r=XA(t);if(r){const n=t.parameters.indexOf(e)-(sv(t)?1:0);return e.dotDotDotToken&&he(t.parameters)===e?nj(r,n):tj(r,n)}}function aA(e,t){const n=fv(e)||(Em(e)?tC(e):void 0);if(n)return Bk(n);switch(e.kind){case 169:return oA(e);case 208:return function(e,t){const n=e.parent.parent,r=e.propertyName||e.name,i=aA(n,t)||208!==n.kind&&n.initializer&&pR(n,e.dotDotDotToken?32:0);if(!i||k_(r)||Ip(r))return;if(207===n.name.kind){const t=Qd(e.parent.elements,e);if(t<0)return;return DA(i,t)}const o=Yb(r);if(cC(o)){return Wc(i,lC(o))}}(e,t);case 172:if(Fv(e))return function(e,t){const n=V_(e.parent)&&MA(e.parent,t);return n?xA(n,hs(e).escapedName):void 0}(e,t)}}function _A(e){let t=!1;for(;e.parent&&!r_(e.parent);){if(cD(e.parent)&&(t||e.parent.initializer===e))return!0;HD(e.parent)&&e.parent.initializer===e&&(t=!0),e=e.parent}return!1}function pA(e,t){const n=!!(2&Oh(t)),r=fA(t,void 0);if(r)return GB(e,r,n)||void 0}function fA(e,t){const n=th(e);if(n)return n;const r=GA(e);if(r&&!_h(r)){const t=Zg(r),n=Oh(e);return 1&n?OF(t,(e=>!!(58998787&e.flags)||MR(e,n,void 0))):2&n?OF(t,(e=>!!(58998787&e.flags)||!!oM(e))):t}const i=om(e);return i?MA(i,t):void 0}function mA(e,t){const n=nL(e).indexOf(t);return-1===n?void 0:gA(e,n)}function gA(e,t){if(lf(e))return 0===t?Vt:1===t?ev(!1):wt;const n=sa(e).resolvedSignature===li?li:TL(e);if(bu(e)&&0===t)return VA(n,e);const r=n.parameters.length-1;return ZB(n)&&t>=r?Rx(F_(n.parameters[r]),wk(t-r),256):ej(n,t)}function hA(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=tg(e);switch(r){case 0:case 4:const i=function(e){if(au(e)&&e.symbol)return e.symbol;if(VN(e))return ON(e);if(XD(e)){const n=ER(e.expression);return WN(e.name)?t(n,e.name):fm(n,e.name.escapedText)}if(QD(e)){const t=uR(e.argumentExpression);if(!cC(t))return;return fm(ER(e.expression),lC(t))}return;function t(e,t){const n=oO(t.escapedText,t);return n&&cO(e,n)}}(e.left),o=i&&i.valueDeclaration;if(o&&(uD(o)||_D(o))){const t=fv(o);return t&&yS(Bk(t),aa(i).mapper)||(uD(o)?o.initializer&&ER(e.left):void 0)}return 0===r?ER(e.left):vA(e);case 5:if(yA(e,r))return vA(e);if(au(e.left)&&e.left.symbol){const t=e.left.symbol.valueDeclaration;if(!t)return;const n=tt(e.left,Tx),r=fv(t);if(r)return Bk(r);if(VN(n.expression)){const e=n.expression,t=Ue(e,e.escapedText,111551,void 0,!0);if(t){const e=t.valueDeclaration&&fv(t.valueDeclaration);if(e){const t=_g(n);if(void 0!==t)return xA(Bk(e),t)}return}}return Em(t)||t===e.left?void 0:ER(e.left)}return ER(e.left);case 1:case 6:case 3:case 2:let a;2!==r&&(a=au(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&&fv(a);return s?Bk(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=MA(n,t);return e===o&&(i&&i.pattern||!i&&!Km(n))?ER(r):i;case 56:case 28:return e===o?MA(n,t):void 0;default:return}}function yA(e,t=tg(e)){if(4===t)return!0;if(!Em(e)||5!==t||!VN(e.left.expression))return!1;const n=e.left.expression.escapedText,r=Ue(e.left,n,111551,void 0,!0,!0);return cm(null==r?void 0:r.valueDeclaration)}function vA(e){if(!e.symbol)return ER(e.left);if(e.symbol.valueDeclaration){const t=fv(e.symbol.valueDeclaration);if(t){const e=Bk(t);if(e)return e}}const t=tt(e.left,Tx);if(!Bf(em(t.expression,!1,!1)))return;const n=XP(t.expression),r=_g(t);return void 0!==r&&xA(n,r)||void 0}function bA(e,t){if(16777216&e.flags){const n=e;return!!(131072&Vf(Kx(n)).flags)&&Ux(Gx(n))===Ux(n.checkType)&&IS(t,n.extendsType)}return!!(2097152&e.flags)&&V(e.types,(e=>bA(e,t)))}function xA(e,t,n){return JF(e,(e=>{if(2097152&e.flags){let r,i,o=!1;for(const a of e.types){if(!(524288&a.flags))continue;if(Tp(a)&&2!==Np(a)){r=kA(r,SA(a,t,n));continue}const e=TA(a,t);e?(o=!0,i=void 0,r=kA(r,e)):o||(i=re(i,a))}if(i)for(const e of i){r=kA(r,CA(e,t,n))}if(!r)return;return 1===r.length?r[0]:Vb(r)}if(524288&e.flags)return Tp(e)&&2!==Np(e)?SA(e,t,n):TA(e,t)??CA(e,t,n)}),!0)}function kA(e,t){return t?re(e,1&t.flags?Lt:t):e}function SA(e,t,n){const r=n||kk(mc(t)),i=lp(e);if(e.nameType&&bA(e.nameType,r)||bA(i,r))return;return IS(r,ff(i)||i)?jx(e,r):void 0}function TA(e,t){const n=fm(e,t);var r;if(n&&!(262144&ix(r=n)&&!r.links.type&&zc(r,0)>=0))return Fw(F_(n),!!(16777216&n.flags))}function CA(e,t,n){var r;if(lw(e)&&zT(t)&&+t>=0){const t=fw(e,e.target.fixedLength,0,!1,!0);if(t)return t}return null==(r=jm(Jm(e),n||kk(mc(t))))?void 0:r.type}function wA(e,t){if(_n.assert(Bf(e)),!(67108864&e.flags))return NA(e,t)}function NA(e,t){const n=e.parent,r=zE(e)&&aA(e,t);if(r)return r;const i=LA(n,t);if(i){if(_d(e)){const t=hs(e);return xA(i,t.escapedName,aa(t).nameType)}if(Mh(e)){const t=Cc(e);if(t&&aD(t)){const e=IR(t.expression),n=cC(e)&&xA(i,lC(e));if(n)return n}}if(e.name){const t=Yb(e.name);return JF(i,(e=>{var n;return null==(n=jm(Jm(e),t))?void 0:n.type}),!0)}}}function DA(e,t,n,r,i){return e&&JF(e,(e=>{if(lw(e)){if((void 0===r||t<r)&&t<e.target.fixedLength)return Fw(fy(e)[t],!!e.target.elementFlags[t]);const o=void 0!==n&&(void 0===i||t>i)?n-t:0,a=o>0&&12&e.target.combinedFlags?Tb(e.target,3):0;return o>0&&o<=a?fy(e)[my(e)-o]:fw(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||t<r)&&xA(e,""+t)||mB(1,e,jt,void 0,!1)}),!0)}function FA(e,t){const n=e.parent;return yu(n)?MA(e,t):CE(n)?function(e,t,n){const r=LA(e.openingElement.attributes,n),i=TI(kI(e));if(!r||Hc(r)||!i||""===i)return;const o=ly(e.children),a=o.indexOf(t),s=xA(r,i);return s&&(1===o.length?s:JF(s,(e=>qC(e)?Rx(e,wk(a)):e),!0))}(n,e,t):void 0}function AA(e,t){if(AE(e)){const n=LA(e.parent,t);if(!n||Hc(n))return;return xA(n,nC(e.name))}return MA(e.parent,t)}function IA(e){switch(e.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return IA(e.expression);case 294:return!e.expression||IA(e.expression)}return!1}function OA(e,t){const n=`D${$B(e)},${Nb(t)}`;return Eo(n)??Po(n,function(e,t){const n=$N(e),r=n&&y(t.properties,(e=>e.symbol&&303===e.kind&&e.symbol.escapedName===n&&IA(e.initializer))),i=r&&AR(r.initializer);return i&&HN(e,i)}(t,e)??LT(t,$(D(C(e.properties,(e=>!!e.symbol&&(303===e.kind?IA(e.initializer)&&qN(t,e.symbol.escapedName):304===e.kind&&qN(t,e.symbol.escapedName)))),(e=>[()=>AR(303===e.kind?e.initializer:e.name),e.symbol.escapedName])),D(C($p(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)&&qN(t,n.escapedName)})),(e=>[()=>jt,e.escapedName]))),IS))}function LA(e,t){const n=jA(Bf(e)?wA(e,t):MA(e,t),e,t);if(n&&!(t&&2&t&&8650752&n.flags)){const t=JF(n,(e=>32&hx(e)?e:Tf(e)),!0);return 1048576&t.flags&&GD(e)?OA(e,t):1048576&t.flags&&IE(e)?function(e,t){const n=`D${$B(e)},${Nb(t)}`,r=Eo(n);if(r)return r;const i=TI(kI(e));return Po(n,LT(t,$(D(C(e.properties,(e=>!!e.symbol&&291===e.kind&&qN(t,e.symbol.escapedName)&&(!e.initializer||IA(e.initializer)))),(e=>[e.initializer?()=>AR(e.initializer):()=>tn,e.symbol.escapedName])),D(C($p(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||!CE(o)||!ly(o.children).length)&&!e.symbol.members.has(n.escapedName)&&qN(t,n.escapedName)})),(e=>[()=>jt,e.escapedName]))),IS))}(e,t):t}}function jA(e,t,n){if(e&&Hj(e,465829888)){const r=UA(t);if(r&&1&n&&V(r.inferences,wR))return RA(e,r.nonFixingMapper);if(null==r?void 0:r.returnMapper){const t=RA(e,r.returnMapper);return 1048576&t.flags&&Db(t.types,Qt)&&Db(t.types,rn)?OF(t,(e=>e!==Qt&&e!==rn)):t}}return e}function RA(e,t){return 465829888&e.flags?yS(e,t):1048576&e.flags?jb(D(e.types,(e=>RA(e,t))),0):2097152&e.flags?Vb(D(e.types,(e=>RA(e,t)))):e}function MA(e,t){var n;if(67108864&e.flags)return;const r=qA(e,!t);if(r>=0)return Fi[r];const i=sa(e);if(i.contextualReturnType)return 65536&e.flags?jb([i.contextualReturnType,Nj(i.contextualReturnType)]):i.contextualReturnType;const{parent:o}=e;switch(o.kind){case 260:case 169:case 172:case 171:case 208:return function(e,t){const n=e.parent;if(Eu(n)&&e===n.initializer){const e=aA(n,t);if(e)return e;if(!(8&t)&&k_(n.name)&&n.name.elements.length>0)return Vl(n.name,!0,!1)}}(e,t);case 219:case 253:return function(e,t){const n=Kf(e);if(n){const r=Oh(n),i=sa(e);if(i.contextualReturnType)return 2&r?jb([i.contextualReturnType,Nj(i.contextualReturnType)]):i.contextualReturnType;let o=fA(n,t);if(o){if(1&r){const e=!!(2&r);1048576&o.flags&&(o=OF(o,(t=>!!GB(1,t,e))));const t=GB(1,o,!!(2&r));if(!t)return;o=t}if(2&r){const e=JF(o,fM);return e&&jb([e,Nj(e)])}return o}}}(e,t);case 229:return function(e,t){const n=Kf(e);if(n){const r=Oh(n);let i=fA(n,t);if(i){const n=!!(2&r);if(!e.asteriskToken&&1048576&i.flags&&(i=OF(i,(e=>!!GB(1,e,n)))),e.asteriskToken){const r=iJ(i,n),o=(null==r?void 0:r.yieldType)??dn,a=MA(e,t)??dn,s=(null==r?void 0:r.nextType)??Lt,c=Ej(o,a,s,!1);return n?jb([c,Ej(o,a,s,!0)]):c}return GB(0,i,n)}}}(o,t);case 223:return function(e,t){const n=MA(e,t);if(n){const e=fM(n);return e&&jb([e,Nj(e)])}}(o,t);case 213:case 214:return mA(o,e);case 170:return function(e){const t=Cj(e);return t?Ah(t):void 0}(o);case 216:case 234:return kl(o.type)?MA(o,t):Bk(o.type);case 226:return hA(e,t);case 303:case 304:return NA(o,t);case 305:return MA(o.parent,t);case 209:{const r=o,i=LA(r,t),a=Qd(r.elements,e),s=(n=sa(r)).spreadIndices??(n.spreadIndices=function(e){let t,n;for(let r=0;r<e.length;r++)mF(e[r])&&(t??(t=r),n=r);return{first:t,last:n}}(r.elements));return DA(i,a,r.elements.length,s.first,s.last)}case 227:return function(e,t){const n=e.parent;return e===n.whenTrue||e===n.whenFalse?MA(n,t):void 0}(e,t);case 239:return _n.assert(228===o.parent.kind),function(e,t){if(215===e.parent.kind)return mA(e.parent,t)}(o.parent,e);case 217:if(Em(o)){if(ZT(o))return Bk(eC(o));const e=tl(o);if(e&&!kl(e.typeExpression.type))return Bk(e.typeExpression.type)}return MA(o,t);case 235:return MA(o,t);case 238:return Bk(o.type);case 277:return n_(o);case 294:return FA(o,t);case 291:case 293:return AA(o,t);case 286:case 285:return function(e,t){if(NE(e)&&4!==t){const n=qA(e.parent,!t);if(n>=0)return Fi[n]}return gA(e,0)}(o,t);case 301:return function(e){return xA(tv(!1),fC(e))}(o)}}function BA(e){JA(e,MA(e,void 0),!0)}function JA(e,t,n){Di[Pi]=e,Fi[Pi]=t,Ei[Pi]=n,Pi++}function zA(){Pi--}function qA(e,t){for(let n=Pi-1;n>=0;n--)if(e===Di[n]&&(t||!Ei[n]))return n;return-1}function UA(e){for(let t=Li-1;t>=0;t--)if(ch(e,Ii[t]))return Oi[t]}function VA(e,t){return EE(t)||0!==QO(t)?function(e,t){let n=_j(e,Lt);n=WA(t,kI(t),n);const r=vI(FB.IntrinsicAttributes,t);Gc(r)||(n=Bd(r,n));return n}(e,t):function(e,t){const n=kI(t),r=(i=n,SI(FB.ElementAttributesPropertyNameContainer,i));var i;let o=void 0===r?_j(e,Lt):""===r?Zg(e):function(e,t){if(e.compositeSignatures){const n=[];for(const r of e.compositeSignatures){const e=Zg(r);if(Hc(e))return e;const i=Wc(e,t);if(!i)return;n.push(i)}return Vb(n)}const n=Zg(e);return Hc(n)?n:Wc(n,t)}(e,r);if(!o)return r&&l(t.attributes.properties)&&Ro(t,_a.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,mc(r)),Lt;if(o=WA(t,n,o),Hc(o))return o;{let n=o;const r=vI(FB.IntrinsicClassAttributes,t);if(!Gc(r)){const i=H_(r.symbol),o=Zg(e);let a;if(i){a=yS(r,Qk(i,Eg([o],i,Cg(i),Em(t))))}else a=r;n=Bd(a,n)}const i=vI(FB.IntrinsicAttributes,t);return Gc(i)||(n=Bd(i,n)),n}}(e,t)}function WA(e,t,n){const r=(i=t)&&ca(i.exports,FB.LibraryManagedAttributes,788968);var i;if(r){const t=function(e){if(EE(e))return xL(e);if(fI(e.tagName))return Ah(bL(e,NI(e)));const t=uR(e.tagName);if(128&t.flags){const n=wI(t,e);return n?Ah(bL(e,n)):Et}return t}(e),i=AI(r,Em(e),t,n);if(i)return i}return n}function $A(e){return zk(j,"noImplicitAny")?Ce(e,((e,t)=>e!==t&&e?jd(e.typeParameters,t.typeParameters)?function(e,t){const n=e.typeParameters||t.typeParameters;let r;e.typeParameters&&t.typeParameters&&(r=Qk(t.typeParameters,e.typeParameters));let i=166&(e.flags|t.flags);const o=e.declaration,a=function(e,t,n){const r=ij(e),i=ij(t),o=r>=i?e:t,a=o===e?t:e,s=o===e?r:i,c=aj(e)||aj(t),l=c&&!aj(o),_=new Array(s+(l?1:0));for(let u=0;u<s;u++){let d=tj(o,u);o===t&&(d=yS(d,n));let p=tj(a,u)||Lt;a===t&&(p=yS(p,n));const f=jb([d,p]),m=c&&!l&&u===s-1,g=u>=oj(o)&&u>=oj(a),h=u>=r?void 0:XL(e,u),y=u>=i?void 0:XL(t,u),v=$o(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?Uv(f):f,_[u]=v}if(l){const e=$o(1,"args",32768);e.links.type=Uv(ej(a,s)),a===t&&(e.links.type=yS(e.links.type,n)),_[s]=e}return _}(e,t,r),s=he(a);s&&32768&ix(s)&&(i|=1);const c=function(e,t,n){if(!e||!t)return e||t;const r=jb([F_(e),yS(F_(t),n)]);return Iw(e,r)}(e.thisParameter,t.thisParameter,r),l=Math.max(e.minArgumentCount,t.minArgumentCount),_=Dd(o,n,c,a,void 0,void 0,l,i);_.compositeKind=2097152,_.compositeSignatures=$(2097152===e.compositeKind&&e.compositeSignatures||[e],[t]),r&&(_.mapper=2097152===e.compositeKind&&e.mapper&&e.compositeSignatures?iS(e.mapper,r):r);return _}(e,t):void 0:e)):void 0}function HA(e,t){const n=C(ym(e,0),(e=>!function(e,t){let n=0;for(;n<t.parameters.length;n++){const e=t.parameters[n];if(e.initializer||e.questionToken||e.dotDotDotToken||XT(e))break}t.parameters.length&&cv(t.parameters[0])&&n--;return!aj(e)&&ij(e)<n}(e,t)));return 1===n.length?n[0]:$A(n)}function GA(e){return BT(e)||Bf(e)?XA(e):void 0}function XA(e){_n.assert(174!==e.kind||Bf(e));const t=Ig(e);if(t)return t;const n=LA(e,1);if(!n)return;if(!(1048576&n.flags))return HA(n,e);let r;const i=n.types;for(const t of i){const n=HA(t,e);if(n)if(r){if(!OC(r[0],n,!1,!0,!0,DS))return;r.push(n)}else r=[n]}return r?1===r.length?r[0]:Ed(r[0],r):void 0}function QA(e){const t=sa(e);return 1&t.flags||(t.flags|=1,a((()=>function(e){const t=yd(e);if(!Aq(t)&&!e.isUnterminated){let r;n??(n=gs(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=$x(t.fileName,t.text,a,i,e,o);sT(r,n)}else r&&a===r.start||(r=Xx(t,a,i,e,o),po.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)))),ar}function YA(e){return 208===e.kind&&!!e.initializer||303===e.kind&&YA(e.initializer)||304===e.kind&&!!e.objectAssignmentInitializer||226===e.kind&&64===e.operatorToken.kind}function ZA(e,t,n){const r=e.elements,i=r.length,o=[],a=[];BA(e);const s=Qg(e),c=vR(e),l=LA(e,void 0),_=function(e){const t=rh(e.parent);return mF(t)&&j_(t.parent)}(e)||!!l&&EF(l,(e=>HC(e)||Tp(e)&&!e.nameType&&!!pS(e.target||e)));let u=!1;for(let c=0;c<i;c++){const i=r[c];if(230===i.kind){M<Ni.SpreadElements&&sq(i,j.downlevelIteration?1536:1024);const e=IR(i.expression,t,n);if(qC(e))o.push(e),a.push(8);else if(s){const t=rg(e,Wt)||mB(65,e,jt,void 0,!1)||Lt;o.push(t),a.push(4)}else o.push(fB(33,e,jt,i.expression)),a.push(4)}else if(_e&&232===i.kind)u=!0,o.push(Bt),a.push(2);else{const r=bR(i,t,n);if(o.push(Tl(r,!0,u)),a.push(u?2:1),_&&t&&2&t&&!(4&t)&&SS(i)){const t=UA(e);_n.assert(t),Zw(t,i,r)}}}return zA(),s?ob(o,a):eI(n||c||_?ob(o,a,c&&!(l&&EF(l,UC))):Uv(o.length?jb(E(o,((e,t)=>8&a[t]?Jx(e,Wt)||wt:e)),2):G?pn:Rt,c))}function eI(e){if(!(4&hx(e)))return e;let t=e.literalType;return t||(t=e.literalType=dy(e),t.objectFlags|=147456),t}function tI(e){switch(e.kind){case 167:return function(e){return Kj(nI(e),296)}(e);case 80:return zT(e.escapedText);case 9:case 11:return zT(e.text);default:return!1}}function nI(e){const t=sa(e.expression);if(!t.resolvedType){if((wD(e.parent.parent)||u_(e.parent.parent)||QF(e.parent.parent))&&uF(e.expression)&&103===e.expression.operatorToken.kind&&177!==e.parent.kind&&178!==e.parent.kind)return t.resolvedType=Et;if(t.resolvedType=IR(e.expression),uD(e.parent)&&!Ev(e.parent)&&gF(e.parent.parent)){const t=WP(Fp(e.parent.parent));t&&(sa(t).flags|=4096,sa(e).flags|=32768,sa(e.parent.parent).flags|=32768)}(98304&t.resolvedType.flags||!Kj(t.resolvedType,402665900)&&!IS(t.resolvedType,hn))&&Ro(e,_a.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return t.resolvedType}function rI(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return zT(e.escapedName)||n&&Sc(n)&&tI(n.name)}function iI(e){var t;const n=null==(t=e.declarations)?void 0:t[0];return Wh(e)||n&&Sc(n)&&aD(n.name)&&Kj(nI(n.name),4096)}function oI(e,t,n,r){const i=[];for(let e=t;e<n.length;e++){const t=n[e];(r===Vt&&!iI(t)||r===Wt&&rI(t)||r===cn&&iI(t))&&i.push(F_(n[e]))}return Rh(r,i.length?jb(i,2):jt,e)}function aI(e){_n.assert(!!(2097152&e.flags),"Should only get Alias here.");const t=aa(e);if(!t.immediateTarget){const n=xa(e);if(!n)return _n.fail();t.immediateTarget=Ma(n,!0)}return t.immediateTarget}function sI(e,t=0){const n=Qg(e);!function(e,t){const n=new Map;for(const r of e.properties){if(305===r.kind){if(t){const e=ah(r.expression);if(KD(e)||GD(e))return Lq(r.expression,_a.A_rest_element_cannot_contain_a_binding_pattern)}continue}const e=r.name;if(167===e.kind&&yq(e),304===r.kind&&!t&&r.objectAssignmentInitializer&&Lq(r.equalsToken,_a.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),81===e.kind&&Lq(e,_a.Private_identifiers_are_not_allowed_outside_class_bodies),lI(r)&&r.modifiers)for(const e of r.modifiers)!Zl(e)||134===e.kind&&174===r.kind||Lq(e,_a._0_modifier_cannot_be_used_here,Gd(e));else if(PA(r)&&r.modifiers)for(const e of r.modifiers)Zl(e)&&Lq(e,_a._0_modifier_cannot_be_used_here,Gd(e));let i;switch(r.kind){case 304:case 303:xq(r.exclamationToken,_a.A_definite_assignment_assertion_is_not_permitted_in_this_context),bq(r.questionToken,_a.An_object_member_cannot_be_declared_optional),9===e.kind&&Mq(e),10===e.kind&&Mo(!0,Rp(e,_a.A_bigint_literal_cannot_be_used_as_a_property_name)),i=4;break;case 174:i=8;break;case 177:i=1;break;case 178:i=2;break;default:_n.assertNever(r,"Unexpected syntax kind:"+r.kind)}if(!t){const t=zq(e);if(void 0===t)continue;const r=n.get(t);if(r)if(8&i&&8&r)Lq(e,_a.Duplicate_identifier_0,Gd(e));else if(4&i&&4&r)Lq(e,_a.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Gd(e));else{if(!(3&i&&3&r))return Lq(e,_a.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);if(3===r||i===r)return Lq(e,_a.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);n.set(t,i|r)}else n.set(t,i)}}}(e,n);const r=G?Ku():void 0;let i=Ku(),o=[],a=Nn;BA(e);const c=LA(e,void 0),l=c&&c.pattern&&(206===c.pattern.kind||210===c.pattern.kind),_=vR(e),u=_?8:0,d=Em(e)&&!Pm(e),p=d?Xc(e):void 0,f=!c&&d&&!p;let m=8192,g=!1,h=!1,y=!1,v=!1;for(const t of e.properties)t.name&&aD(t.name)&&nI(t.name);let b=0;for(const s of e.properties){let f=hs(s);const k=s.name&&167===s.name.kind?nI(s.name):void 0;if(303===s.kind||304===s.kind||Bf(s)){let i=303===s.kind?xR(s,t):304===s.kind?bR(!n&&s.objectAssignmentInitializer?s.objectAssignmentInitializer:s.name,t):kR(s,t);if(d){const e=xl(s);e?(RS(i,e,s),i=e):p&&p.typeExpression&&RS(i,Bk(p.typeExpression),s)}m|=458752&hx(i);const o=k&&cC(k)?k:void 0,a=o?$o(4|f.flags,lC(o),4096|u):$o(4|f.flags,f.escapedName,u);if(o&&(a.links.nameType=o),n&&YA(s))a.flags|=16777216;else if(l&&!(512&hx(c))){const e=fm(c,f.escapedName);e?a.flags|=16777216&e.flags:Qm(c,Vt)||Ro(s.name,_a.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,sc(f),lc(c))}if(a.declarations=f.declarations,a.parent=f.parent,f.valueDeclaration&&(a.valueDeclaration=f.valueDeclaration),a.links.type=i,a.links.target=f,f=a,null==r||r.set(a.escapedName,a),c&&2&t&&!(4&t)&&(303===s.kind||174===s.kind)&&SS(s)){const t=UA(e);_n.assert(t);Zw(t,303===s.kind?s.initializer:s,i)}}else{if(305===s.kind){M<Ni.ObjectAssign&&sq(s,2),o.length>0&&(a=dk(a,x(),e.symbol,m,_),o=[],i=Ku(),h=!1,y=!1,v=!1);const n=Vf(IR(s.expression,2&t));if(uI(n)){const t=uk(n,_);if(r&&yI(t,r,s),b=o.length,Gc(a))continue;a=dk(a,t,e.symbol,m,_)}else Ro(s,_a.Spread_types_may_only_be_created_from_object_types),a=Et;continue}_n.assert(177===s.kind||178===s.kind),ez(s)}!k||8576&k.flags?i.set(f.escapedName,f):IS(k,hn)&&(IS(k,Wt)?y=!0:IS(k,cn)?v=!0:h=!0,n&&(g=!0)),o.push(f)}return zA(),Gc(a)?Et:a!==Nn?(o.length>0&&(a=dk(a,x(),e.symbol,m,_),o=[],i=Ku(),h=!1,y=!1),JF(a,(e=>e===Nn?x():e))):x();function x(){const t=[],r=vR(e);h&&t.push(oI(r,b,o,Vt)),y&&t.push(oI(r,b,o,Wt)),v&&t.push(oI(r,b,o,cn));const a=zs(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 uI(e){const t=hw(JF(e,mf));return!!(126615553&t.flags||3145728&t.flags&&h(t.types,uI))}function pI(e){return e.includes("-")}function fI(e){return VN(e)&&Ey(e.escapedText)||jE(e)}function mI(e,t){return e.initializer?bR(e.initializer,t):tn}function gI(e,t=0){const n=G?Ku():void 0;let r,i=Ku(),o=Dn,a=!1,c=!1,l=2048;const _=TI(kI(e));let u,d=e;if(!EE(e)){const s=e.attributes;u=s.symbol,d=s;const p=MA(s,0);for(const e of s.properties){const u=e.symbol;if(AE(e)){const r=mI(e,t);l|=458752&hx(r);const o=$o(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),nC(e.name)===_&&(c=!0),p){const t=fm(p,u.escapedName);t&&t.declarations&&Uo(t)&&VN(e.name)&&Wo(e.name,t.declarations,e.name.escapedText)}if(p&&2&t&&!(4&t)&&SS(e)){const t=UA(s);_n.assert(t);Zw(t,e.initializer.expression,r)}}else{_n.assert(293===e.kind),i.size>0&&(o=dk(o,f(),s.symbol,l,!1),i=Ku());const c=Vf(IR(e.expression,2&t));Hc(c)&&(a=!0),uI(c)?(o=dk(o,c,s.symbol,l,!1),n&&yI(c,n,e)):(Ro(e.expression,_a.Spread_types_may_only_be_created_from_object_types),r=r?Vb([r,c]):c)}}a||i.size>0&&(o=dk(o,f(),s.symbol,l,!1))}const p=e.parent;if((CE(p)&&p.openingElement===e||FE(p)&&p.openingFragment===e)&&ly(p.children).length>0){const n=hI(p,t);if(!a&&_&&""!==_){c&&Ro(d,_a._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,mc(_));const t=NE(e)?LA(e.attributes,void 0):void 0,r=t&&xA(t,_),i=$o(4,_);i.links.type=1===n.length?n[0]:r&&EF(r,HC)?ob(n):Uv(jb(n)),i.valueDeclaration=ZC.createPropertySignature(void 0,mc(_),void 0,void 0),FT(i.valueDeclaration,d),i.valueDeclaration.symbol=i;const a=Ku();a.set(_,i),o=dk(o,zs(u,a,s,s,s),u,l,!1)}}return a?wt:r&&o!==Dn?Vb([r,o]):r||(o===Dn?f():o);function f(){return l|=8192,function(e,t,n){const r=zs(t,n,s,s,s);return r.objectFlags|=139392|e,r}(l,u,i)}}function hI(e,t){const n=[];for(const r of e.children)if(12===r.kind)r.containsOnlyTriviaWhiteSpaces||n.push(Vt);else{if(294===r.kind&&!r.expression)continue;n.push(bR(r,t))}return n}function yI(e,t,n){for(const r of $p(e))if(!(16777216&r.flags)){const e=t.get(r.escapedName);if(e){sT(Ro(e.valueDeclaration,_a._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,mc(e.escapedName)),Rp(n,_a.This_spread_always_overwrites_this_property))}}}function vI(e,t){const n=kI(t),r=n&&_s(n),i=r&&ca(r,e,788968);return i?Tu(i):Et}function bI(e){const t=sa(e);if(!t.resolvedSymbol){const n=vI(FB.IntrinsicElements,e);if(Gc(n))return ie&&Ro(e,_a.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,mc(FB.IntrinsicElements)),t.resolvedSymbol=xt;{if(!VN(e.tagName)&&!jE(e.tagName))return _n.fail();const r=jE(e.tagName)?oC(e.tagName):e.tagName.escapedText,i=fm(n,r);if(i)return t.jsxFlags|=1,t.resolvedSymbol=i;const o=mz(n,kk(mc(r)));return o?(t.jsxFlags|=2,t.resolvedSymbol=o):$c(n,r)?(t.jsxFlags|=2,t.resolvedSymbol=n.symbol):(Ro(e,_a.Property_0_does_not_exist_on_type_1,sC(e.tagName),"JSX."+FB.IntrinsicElements),t.resolvedSymbol=xt)}}return t.resolvedSymbol}function xI(e){const t=e&&yd(e),n=t&&sa(t);if(n&&!1===n.jsxImplicitImportContainer)return;if(n&&n.jsxImplicitImportContainer)return n.jsxImplicitImportContainer;const r=Xk(Gk(j,t),j);if(!r)return;const i=1===xk(j)?_a.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:_a.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=j.importHelpers?1:0,r=null==e?void 0:e.imports[n];r&&_n.assert(ey(r)&&r.text===t,`Expected sourceFile.imports[${n}] to be the synthesized JSX runtime import`);return r}(t,r),a=ts(o||e,r,i,e),s=a&&a!==xt?fs(Ja(a)):void 0;return n&&(n.jsxImplicitImportContainer=s||!1),s}function kI(e){const t=e&&sa(e);if(t&&t.jsxNamespace)return t.jsxNamespace;if(!t||!1!==t.jsxNamespace){let n=xI(e);if(!n||n===xt){const t=Io(e);n=Ue(e,t,1920,void 0,!1)}if(n){const e=Ja(ca(_s(Ja(n)),FB.JSX,1920));if(e&&e!==xt)return t&&(t.jsxNamespace=e),e}t&&(t.jsxNamespace=!1)}const n=Ja(Ky(FB.JSX,1920,void 0));return n!==xt?n:void 0}function SI(e,t){const n=t&&ca(t.exports,e,788968),r=n&&Tu(n),i=r&&$p(r);if(i){if(0===i.length)return"";if(1===i.length)return i[0].escapedName;i.length>1&&n.declarations&&Ro(n.declarations[0],_a.The_global_type_JSX_0_may_not_have_more_than_one_property,mc(e))}}function TI(e){return SI(FB.ElementChildrenAttributeNameContainer,e)}function CI(e,t){if(4&e.flags)return[si];if(128&e.flags){const n=wI(e,t);if(n){return[bL(t,n)]}return Ro(t,_a.Property_0_does_not_exist_on_type_1,e.value,"JSX."+FB.IntrinsicElements),s}const n=Tf(e);let r=ym(n,1);return 0===r.length&&(r=ym(n,0)),0===r.length&&1048576&n.flags&&(r=Ld(D(n.types,(e=>CI(e,t))))),r}function wI(e,t){const n=vI(FB.IntrinsicElements,t);if(!Gc(n)){const t=fm(n,fc(e.value));if(t)return F_(t);const r=rg(n,Vt);return r||void 0}return wt}function NI(e){var t;_n.assert(fI(e.tagName));const n=sa(e);if(!n.resolvedJsxElementAttributesType){const r=bI(e);if(1&n.jsxFlags)return n.resolvedJsxElementAttributesType=F_(r)||Et;if(2&n.jsxFlags){const r=jE(e.tagName)?oC(e.tagName):e.tagName.escapedText;return n.resolvedJsxElementAttributesType=(null==(t=cg(vI(FB.IntrinsicElements,e),r))?void 0:t.type)||Et}return n.resolvedJsxElementAttributesType=Et}return n.resolvedJsxElementAttributesType}function DI(e){const t=vI(FB.ElementClass,e);if(!Gc(t))return t}function FI(e){return vI(FB.Element,e)}function EI(e){const t=FI(e);if(t)return jb([t,qt])}function PI(e){const t=kI(e);if(!t)return;const n=(r=t)&&ca(r.exports,FB.ElementType,788968);var r;if(!n)return;const i=AI(n,Em(e));return i&&!Gc(i)?i:void 0}function AI(e,t,...n){const r=Tu(e);if(524288&e.flags){const i=aa(e).typeParameters;if(l(i)>=n.length){const o=Eg(n,i,n.length,t);return 0===l(o)?r:hy(e,o)}}if(l(r.typeParameters)>=n.length){return uy(r,Eg(n,r.typeParameters,n.length,t))}}function II(e){const t=bu(e);var n;t&&function(e){(function(e){if(XD(e)&&jE(e.expression))return Lq(e.expression,_a.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(jE(e)&&Kk(j)&&!Ey(e.namespace.escapedText))Lq(e,_a.React_components_cannot_include_JSX_namespace_names)})(e.tagName),mq(e,e.typeArguments);const t=new Map;for(const n of e.attributes.properties){if(293===n.kind)continue;const{name:e,initializer:r}=n,i=nC(e);if(t.get(i))return Lq(e,_a.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(t.set(i,!0),r&&294===r.kind&&!r.expression)return Lq(r,_a.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}(e),n=e,0===(j.jsx||0)&&Ro(n,_a.Cannot_use_JSX_unless_the_jsx_flag_is_provided),void 0===FI(n)&&ie&&Ro(n,_a.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist),wP(e);const r=TL(e);if(DL(r,e),t){const t=e,n=PI(t);if(void 0!==n){const e=t.tagName;NT(fI(e)?kk(sC(e)):IR(e),n,yo,e,_a.Its_type_0_is_not_a_valid_JSX_element_type,(()=>{const t=Gd(e);return ek(void 0,_a._0_cannot_be_used_as_a_JSX_component,t)}))}else!function(e,t,n){if(1===e){const e=EI(n);e&&NT(t,e,yo,n.tagName,_a.Its_return_type_0_is_not_a_valid_JSX_element,r)}else if(0===e){const e=DI(n);e&&NT(t,e,yo,n.tagName,_a.Its_instance_type_0_is_not_a_valid_JSX_element,r)}else{const e=EI(n),i=DI(n);if(!e||!i)return;NT(t,jb([e,i]),yo,n.tagName,_a.Its_element_type_0_is_not_a_valid_JSX_element,r)}function r(){const e=Gd(n.tagName);return ek(void 0,_a._0_cannot_be_used_as_a_JSX_component,e)}}(QO(t),Zg(r),t)}}function OI(e,t,n){if(524288&e.flags&&(qp(e,t)||cg(e,t)||sd(t)&&Qm(e,Vt)||n&&pI(t)))return!0;if(33554432&e.flags)return OI(e.baseType,t,n);if(3145728&e.flags&&LI(e))for(const r of e.types)if(OI(r,t,n))return!0;return!1}function LI(e){return!!(524288&e.flags&&!(512&hx(e))||67108864&e.flags||33554432&e.flags&&LI(e.baseType)||1048576&e.flags&&V(e.types,LI)||2097152&e.flags&&h(e.types,LI))}function jI(e,t){if(function(e){if(e.expression&&sA(e.expression))Lq(e.expression,_a.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(e),e.expression){const n=IR(e.expression,t);return e.dotDotDotToken&&n!==wt&&!RC(n)&&Ro(e,_a.JSX_spread_child_must_be_an_array_type),n}return Et}function BI(e){return e.valueDeclaration?Uq(e.valueDeclaration):0}function JI(e){if(8192&e.flags||4&ix(e))return!0;if(Em(e.valueDeclaration)){const t=e.valueDeclaration.parent;return t&&uF(t)&&3===tg(t)}}function zI(e,t,n,r,i,o=!0){return UI(e,t,n,r,i,o?166===e.kind?e.right:205===e.kind?e:208===e.kind&&e.propertyName?e.propertyName:e.name:void 0)}function UI(e,t,n,r,i,o){var a;const s=ox(i,n);if(t){if(M<2&&WI(i))return o&&Ro(o,_a.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(64&s)return o&&Ro(o,_a.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,sc(i),lc(wC(i))),!1;if(!(256&s)&&(null==(a=i.declarations)?void 0:a.some(f_)))return o&&Ro(o,_a.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,sc(i)),!1}if(64&s&&WI(i)&&(sm(e)||lm(e)||WD(e.parent)&&cm(e.parent.parent))){const t=gx(vs(i));if(t&&uc(e,(e=>!!(mD(e)&&Nd(e.body)||uD(e))||!(!u_(e)&&!o_(e))&&"quit")))return o&&Ro(o,_a.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,sc(i),qh(t.name)),!1}if(!(6&s))return!0;if(2&s){return!!dz(e,gx(vs(i)))||(o&&Ro(o,_a.Property_0_is_private_and_only_accessible_within_class_1,sc(i),lc(wC(i))),!1)}if(t)return!0;let c=uz(e,(e=>DC(Tu(hs(e)),i,n)));return!c&&(c=function(e){const t=function(e){const t=em(e,!1,!1);return t&&r_(t)?sv(t):void 0}(e);let n=(null==t?void 0:t.type)&&Bk(t.type);if(n)262144&n.flags&&(n=rf(n));else{const t=em(e,!1,!1);r_(t)&&(n=rA(t))}if(n&&7&hx(n))return B_(n);return}(e),c=c&&DC(c,i,n),256&s||!c)?(o&&Ro(o,_a.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,sc(i),lc(wC(i)||r)),!1):!!(256&s)||(262144&r.flags&&(r=r.isThisType?rf(r):ff(r)),!(!r||!J_(r,c))||(o&&Ro(o,_a.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,sc(i),lc(c),lc(r)),!1))}function WI(e){return!!CC(e,(e=>!(8192&e.flags)))}function $I(e){return eO(IR(e),e)}function HI(e){return tD(e,50331648)}function KI(e){return HI(e)?Tw(e):e}function GI(e,t){const n=sb(e)?jp(e):void 0;if(106!==e.kind)if(void 0!==n&&n.length<100){if(VN(e)&&"undefined"===n)return void Ro(e,_a.The_value_0_cannot_be_used_here,"undefined");Ro(e,16777216&t?33554432&t?_a._0_is_possibly_null_or_undefined:_a._0_is_possibly_undefined:_a._0_is_possibly_null,n)}else Ro(e,16777216&t?33554432&t?_a.Object_is_possibly_null_or_undefined:_a.Object_is_possibly_undefined:_a.Object_is_possibly_null);else Ro(e,_a.The_value_0_cannot_be_used_here,"null")}function XI(e,t){Ro(e,16777216&t?33554432&t?_a.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:_a.Cannot_invoke_an_object_which_is_possibly_undefined:_a.Cannot_invoke_an_object_which_is_possibly_null)}function QI(e,t,n){if(G&&2&e.flags){if(sb(t)){const e=jp(t);if(e.length<100)return Ro(t,_a._0_is_of_type_unknown,e),Et}return Ro(t,_a.Object_is_of_type_unknown),Et}const r=eD(e,50331648);if(50331648&r){n(t,r);const i=Tw(e);return 229376&i.flags?Et:i}return e}function eO(e,t){return QI(e,t,GI)}function tO(e,t){const n=eO(e,t);if(16384&n.flags){if(sb(t)){const e=jp(t);if(VN(t)&&"undefined"===e)return Ro(t,_a.The_value_0_cannot_be_used_here,e),n;if(e.length<100)return Ro(t,_a._0_is_possibly_undefined,e),n}Ro(t,_a.Object_is_possibly_undefined)}return n}function nO(e,t,n){return 64&e.flags?function(e,t){const n=IR(e.expression),r=Dw(n,e.expression);return Nw(_O(e,e.expression,eO(r,e.expression),e.name,t),e,r!==n)}(e,t):_O(e,e.expression,$I(e.expression),e.name,t,n)}function rO(e,t){const n=km(e)&&lv(e.left)?eO(XP(e.left),e.left):$I(e.left);return _O(e,e.left,n,e.right,t)}function iO(e){for(;217===e.parent.kind;)e=e.parent;return j_(e.parent)&&e.parent.expression===e}function oO(e,t){for(let n=Zf(t);n;n=Xf(n)){const{symbol:t}=n,r=Vh(t,e),i=t.members&&t.members.get(r)||t.exports&&t.exports.get(r);if(i)return i}}function aO(e){!function(e){if(!Xf(e))return Lq(e,_a.Private_identifiers_are_not_allowed_outside_class_bodies);if(!jF(e.parent)){if(!bm(e))return Lq(e,_a.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=uF(e.parent)&&103===e.parent.operatorToken.kind;if(!sO(e)&&!t)return Lq(e,_a.Cannot_find_name_0,gc(e))}}(e);const t=sO(e);return t&&TO(t,void 0,!1),wt}function sO(e){if(!bm(e))return;const t=sa(e);return void 0===t.resolvedSymbol&&(t.resolvedSymbol=oO(e.escapedText,e)),t.resolvedSymbol}function cO(e,t){return fm(e,t.escapedName)}function lO(e,t){return(wl(t)||sm(e)&&Dl(t))&&em(e,!0,!1)===Fl(t)}function _O(e,t,n,r,i,o){const a=sa(t).resolvedSymbol,s=Xg(e),c=Tf(0!==s||iO(e)?Uw(n):n),l=Hc(c)||c===dn;let u,d;if(WN(r)){(M<Ni.PrivateNamesAndClassStaticBlocks||M<Ni.ClassAndClassElementDecorators||!U)&&(0!==s&&sq(e,1048576),1!==s&&sq(e,524288));const t=oO(r.escapedText,r);if(s&&t&&t.valueDeclaration&&pD(t.valueDeclaration)&&Lq(r,_a.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,gc(r)),l){if(t)return Gc(c)?Et:c;if(void 0===Zf(r))return Lq(r,_a.Private_identifiers_are_not_allowed_outside_class_bodies),wt}if(u=t&&cO(n,t),void 0===u){if(function(e,t,n){let r;const i=$p(e);i&&_(i,(e=>{const n=e.valueDeclaration;if(n&&Sc(n)&&WN(n.name)&&n.name.escapedText===t.escapedText)return r=e,!0}));const o=fa(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),uc(s,(e=>a===e)))return sT(Ro(t,_a.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,lc(e)),Rp(r,_a.The_shadowing_declaration_of_0_is_defined_here,o),Rp(i,_a.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,o)),!0}return Ro(t,_a.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,o,fa(a.name||IB)),!0}return!1}(n,r,t))return Et;const e=Zf(r);e&&bd(yd(e),j.checkJs)&&Lq(r,_a.Private_field_0_must_be_declared_in_an_enclosing_class,gc(r))}else{65536&u.flags&&!(32768&u.flags)&&1!==s&&Ro(e,_a.Private_accessor_was_defined_without_a_getter)}}else{if(l)return VN(t)&&a&&bP(e,2,void 0,n),Gc(c)?Et:c;u=fm(c,r.escapedText,Xj(c),166===e.kind)}if(bP(e,2,u,n),u){const n=zJ(u,r);if(Uo(n)&&bx(e,n)&&n.declarations&&Wo(r,n.declarations,r.escapedText),function(e,t,n){const{valueDeclaration:r}=e;if(!r||yd(t).isDeclarationFile)return;let i;const o=gc(n);!pO(t)||function(e){return uD(e)&&!Ov(e)&&e.questionToken}(r)||Tx(t)&&Tx(t.expression)||la(r,n)||pD(r)&&256&qq(r)||!U&&function(e){if(!(32&e.parent.flags))return!1;let t=F_(e.parent);for(;;){if(t=t.symbol&&fO(t),!t)return!1;const n=fm(t,e.escapedName);if(n&&n.valueDeclaration)return!0}}(e)?263!==r.kind||183===t.parent.kind||33554432&r.flags||la(r,n)||(i=Ro(n,_a.Class_0_used_before_its_declaration,o)):i=Ro(n,_a.Property_0_is_used_before_its_initialization,o);i&&sT(i,Rp(r,_a._0_is_declared_here,o))}(u,e,r),TO(u,e,CO(t,a)),sa(e).resolvedSymbol=u,zI(e,108===t.kind,lx(e),c,u),zj(e,u,s))return Ro(r,_a.Cannot_assign_to_0_because_it_is_a_read_only_property,gc(r)),Et;d=lO(e,u)?Nt:o||cx(e)?D_(u):F_(u)}else{const t=WN(r)||0!==s&&Ex(n)&&!UT(n)?void 0:cg(c,r.escapedText);if(!t||!t.type){const t=uO(e,n.symbol,!0);return!t&&mx(n)?wt:n.symbol===Fe?(Fe.exports.has(r.escapedText)&&418&Fe.exports.get(r.escapedText).flags?Ro(r,_a.Property_0_does_not_exist_on_type_1,mc(r.escapedText),lc(n)):ie&&Ro(r,_a.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,lc(n)),wt):(r.escapedText&&!ga(e)&&mO(r,UT(n)?c:n,t),Et)}t.isReadonly&&(Qg(e)||sh(e))&&Ro(e,_a.Index_signature_in_type_0_only_permits_reading,lc(c)),d=t.type,j.noUncheckedIndexedAccess&&1!==Xg(e)&&(d=jb([d,Mt])),j.noPropertyAccessFromIndexSignature&&XD(e)&&Ro(r,_a.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,mc(r.escapedText)),t.declaration&&Vo(t.declaration)&&Wo(r,[t.declaration],r.escapedText)}return dO(e,u,d,r,i)}function uO(e,t,n){var r;const i=yd(e);if(i&&void 0===j.checkJs&&void 0===i.checkJsDirective&&(1===i.scriptKind||2===i.scriptKind)){const o=_(null==t?void 0:t.declarations,yd),a=!(null==t?void 0:t.valueDeclaration)||!u_(t.valueDeclaration)||(null==(r=t.valueDeclaration.heritageClauses)?void 0:r.length)||gm(!1,t.valueDeclaration);return!(i!==o&&o&&Qp(o)||n&&t&&32&t.flags&&a||e&&n&&XD(e)&&110===e.expression.kind&&a)}return!1}function dO(e,t,n,r,i){const o=Xg(e);if(1===o)return Fw(n,!!(t&&16777216&t.flags));if(t&&!(98311&t.flags)&&!(8192&t.flags&&1048576&n.flags)&&!XJ(t.declarations))return n;if(n===Nt)return Pl(e,t);n=hP(n,e,i);let a=!1;if(G&&Z&&Tx(e)&&110===e.expression.kind){const n=t&&t.valueDeclaration;if(n&&NJ(n)&&!Fv(n)){const t=XE(e);176!==t.kind||t.parent!==n.parent||33554432&n.flags||(a=!0)}}else G&&t&&t.valueDeclaration&&XD(t.valueDeclaration)&&ug(t.valueDeclaration)&&XE(e)===XE(t.valueDeclaration)&&(a=!0);const s=$E(e,n,a?Sw(n):n);return a&&!iT(n)&&iT(s)?(Ro(r,_a.Property_0_is_used_before_being_assigned,sc(t)),n):o?nw(s):s}function pO(e){return!!uc(e,(e=>{switch(e.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return!(!DF(e.parent)||!fD(e.parent.parent))||"quit";default:return!bm(e)&&"quit"}}))}function fO(e){const t=cu(e);if(0!==t.length)return Vb(t)}function mO(e,t,n){const r=sa(e),i=r.nonExistentPropCheckCache||(r.nonExistentPropCheckCache=new Set),o=`${Nb(t)}|${n}`;if(i.has(o))return;let a,s;if(i.add(o),!WN(e)&&1048576&t.flags&&!(402784252&t.flags))for(const n of t.types)if(!fm(n,e.escapedText)&&!cg(n,e.escapedText)){a=ek(a,_a.Property_0_does_not_exist_on_type_1,Pp(e),lc(n));break}if(gO(e.escapedText,t)){const n=Pp(e),r=lc(t);a=ek(a,_a.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=aM(t);if(r&&fm(r,e.escapedText))a=ek(a,_a.Property_0_does_not_exist_on_type_1,Pp(e),lc(t)),s=Rp(e,_a.Did_you_forget_to_use_await);else{const r=Pp(e),i=lc(t),o=function(e,t){const n=Tf(t).symbol;if(!n)return;const r=yc(n),i=ep().get(r);if(i)for(const[t,n]of i)if(k(n,e))return t}(r,t);if(void 0!==o)a=ek(a,_a.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=yO(e,t);if(void 0!==o){const e=yc(o);a=ek(a,n?_a.Property_0_may_not_exist_on_type_1_Did_you_mean_2:_a.Property_0_does_not_exist_on_type_1_Did_you_mean_2,r,i,e),s=o.valueDeclaration&&Rp(o.valueDeclaration,_a._0_is_declared_here,e)}else{const e=function(e){return j.lib&&!j.lib.includes("dom")&&(t=e,n=e=>e.symbol&&/^(?:EventTarget|Node|(?:HTML[a-zA-Z]*)?Element)$/.test(mc(e.symbol.escapedName)),3145728&t.flags?h(t.types,n):n(t))&&eT(e);var t,n}(t)?_a.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:_a.Property_0_does_not_exist_on_type_1;a=ek(pm(a,t),e,r,i)}}}}const c=Jp(yd(e),e,a);s&&sT(c,s),Mo(!n||a.code!==_a.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,c)}function gO(e,t){const n=t.symbol&&fm(F_(t.symbol),e);return void 0!==n&&!!n.valueDeclaration&&Fv(n.valueDeclaration)}function hO(e,t){return SO(e,$p(t),106500)}function yO(e,t){let n=$p(t);if("string"!=typeof e){const r=e.parent;XD(r)&&(n=C(n,(e=>wO(r,t,e)))),e=gc(e)}return SO(e,n,111551)}function vO(e,t){const n=Ye(e)?e:gc(e),r=$p(t);return("for"===n?y(r,(e=>"htmlFor"===yc(e))):"class"===n?y(r,(e=>"className"===yc(e))):void 0)??SO(n,r,111551)}function bO(e,t){const n=yO(e,t);return n&&yc(n)}function xO(e,t,n){_n.assert(void 0!==t,"outername should always be defined");return $e(e,t,n,void 0,!1,!1)}function kO(e,t){return t.exports&&SO(gc(e),ss(t),2623475)}function SO(e,t,n){return Ot(e,t,(function(e){const t=yc(e);if(Kt(t,'"'))return;if(e.flags&n)return t;if(2097152&e.flags){const r=function(e){if(aa(e).aliasTarget!==kt)return qa(e)}(e);if(r&&r.flags&n)return t}return}))}function TO(e,t,n){const r=e&&106500&e.flags&&e.valueDeclaration;if(!r)return;const i=Nv(r,2),o=e.valueDeclaration&&Sc(e.valueDeclaration)&&WN(e.valueDeclaration.name);if((i||o)&&(!t||!cx(t)||65536&e.flags)){if(n){const n=uc(t,o_);if(n&&n.symbol===e)return}(1&ix(e)?aa(e).target:e).isReferenced=-1}}function CO(e,t){return 110===e.kind||!!t&&sb(e)&&t===ON(cb(e))}function wO(e,t,n){return DO(e,211===e.kind&&108===e.expression.kind,!1,t,n)}function NO(e,t,n,r){if(Hc(r))return!0;const i=fm(r,n);return!!i&&DO(e,t,!1,r,i)}function DO(e,t,n,r,i){if(Hc(r))return!0;if(i.valueDeclaration&&Kl(i.valueDeclaration)){const t=Xf(i.valueDeclaration);return!hl(e)&&!!uc(e,(e=>e===t))}return UI(e,t,n,r,i)}function FO(e){const t=e.initializer;if(261===t.kind){const e=t.declarations[0];if(e&&!k_(e.name))return hs(e)}else if(80===t.kind)return ON(t)}function EO(e,t){return 64&e.flags?function(e,t){const n=IR(e.expression),r=Dw(n,e.expression);return Nw(PO(e,eO(r,e.expression),t),e,r!==n)}(e,t):PO(e,$I(e.expression),t)}function PO(e,t,n){const r=0!==Xg(e)||iO(e)?Uw(t):t,i=e.argumentExpression,o=IR(i);if(Gc(r)||r===dn)return r;if(Xj(r)&&!ju(i))return Ro(i,_a.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Et;const a=function(e){const t=ah(e);if(80===t.kind){const r=ON(t);if(3&r.flags){let t=e,i=e.parent;for(;i;){if(249===i.kind&&t===i.statement&&FO(i)===r&&1===qm(n=ER(i.expression)).length&&Qm(n,Wt))return!0;t=i,i=i.parent}}}var n;return!1}(i)?Wt:o,s=Xg(e);let c;0===s?c=32:(c=4|(Ex(r)&&!UT(r)?2:0),2===s&&(c|=32));const l=Jx(r,a,c,e)||Et;return YR(dO(e,sa(e).resolvedSymbol,l,i,n),e)}function AO(e){return j_(e)||eF(e)||bu(e)}function IO(e){return AO(e)&&_(e.typeArguments,QJ),215===e.kind?IR(e.template):bu(e)?IR(e.attributes):uF(e)?IR(e.left):j_(e)&&_(e.arguments,(e=>{IR(e)})),si}function OO(e){return IO(e),ci}function LO(e){return!!e&&(230===e.kind||237===e.kind&&e.isSpread)}function jO(e){return b(e,LO)}function RO(e){return!!(16384&e.flags)}function MO(e){return!!(49155&e.flags)}function BO(e,t,n,r=!1){if(EE(e))return!0;let i,o=!1,a=ij(n),s=oj(n);if(215===e.kind)if(i=t.length,228===e.template.kind){const t=ye(e.template.templateSpans);o=wd(t.literal)||!!t.literal.isUnterminated}else{const t=e.template;_n.assert(15===t.kind),o=!!t.isUnterminated}else if(170===e.kind)i=rL(e,n);else if(226===e.kind)i=1;else if(bu(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(214===e.kind),0===oj(n);{i=r?t.length+1:t.length,o=e.arguments.end===e.end;const a=jO(t);if(a>=0)return a>=oj(n)&&(aj(n)||a<ij(n))}}if(!aj(n)&&i>a)return!1;if(o||i>=s)return!0;for(let t=i;t<s;t++){if(131072&OF(ej(n,t),Em(e)&&!G?MO:RO).flags)return!1}return!0}function JO(e,t){const n=l(e.typeParameters),r=Cg(e.typeParameters);return!V(t)||t.length>=r&&t.length<=n}function zO(e,t){let n;return!!(e.target&&(n=tj(e.target,t))&&Fx(n))}function qO(e){return VO(e,0,!1)}function UO(e){return VO(e,0,!1)||VO(e,1,!1)}function VO(e,t,n){if(524288&e.flags){const r=Op(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 WO(e,t,n,r){const i=Xw(wh(e),e,0,r),o=sj(t),a=n&&(o&&262144&o.flags?n.nonFixingMapper:n.mapper);return Kw(a?lS(t,a):t,e,((e,t)=>{xN(i.inferences,e,t)})),n||Gw(t,e,((e,t)=>{xN(i.inferences,e,t,128)})),xh(e,AN(i),Em(t.declaration))}function $O(e){if(!e)return ln;const t=IR(e);return hb(e)?t:yl(e.parent)?Tw(t):hl(e.parent)?ww(t):t}function HO(e,t,n,r,i){if(bu(e))return function(e,t,n,r){const i=VA(t,e),o=_R(e.attributes,i,r,n);return xN(r.inferences,o,i),AN(r)}(e,t,r,i);if(170!==e.kind&&226!==e.kind){const n=h(t.typeParameters,(e=>!!vf(e))),r=MA(e,n?8:0);if(r){const o=Zg(t);if(rN(o)){const a=UA(e);if(!(!n&&MA(e,8)!==r)){const e=nN(function(e,t=0){return e&&Qw(D(e.inferences,tN),e.signature,e.flags|t,e.compareTypes)}(a,1)),t=yS(r,e),n=qO(t),s=n&&n.typeParameters?Ah(Sh(n,n.typeParameters)):t;xN(i.inferences,s,o,128)}const s=Xw(t.typeParameters,t,i.flags),c=yS(r,a&&a.returnMapper);xN(s.inferences,c,o),i.returnMapper=V(s.inferences,CR)?nN(function(e){const t=C(e.inferences,CR);return t.length?Qw(D(t,tN),e.signature,e.flags,e.compareTypes):void 0}(s)):void 0}}}const o=cj(t),a=o?Math.min(ij(t)-1,n.length):n.length;if(o&&262144&o.flags){const e=y(i.inferences,(e=>e.typeParameter===o));e&&(e.impliedArity=b(n,LO,a)<0?n.length-a:void 0)}const s=Hg(t);if(s&&rN(s)){const t=eL(e);xN(i.inferences,$O(t),s)}for(let e=0;e<a;e++){const o=n[e];if(232!==o.kind){const n=ej(t,e);if(rN(n)){const e=_R(o,n,i,r);xN(i.inferences,e,n)}}}if(o&&rN(o)){const e=GO(n,a,n.length,o,i,r);xN(i.inferences,e,o)}return AN(i)}function KO(e){return 1048576&e.flags?JF(e,KO):1&e.flags||JC(ff(e)||e)?e:lw(e)?ob(wb(e),e.target.elementFlags,!1,e.target.labeledElementDeclarations):ob([e],[8])}function GO(e,t,n,r,i,o){const a=of(r);if(t>=n-1){const t=e[n-1];if(LO(t)){const e=237===t.kind?t.type:_R(t.expression,r,i,o);return qC(e)?KO(e):Uv(fB(33,e,jt,230===t.kind?t.expression:t),a)}}const s=[],c=[],l=[];for(let _=t;_<n;_++){const u=e[_];if(LO(u)){const e=237===u.kind?u.type:IR(u.expression);qC(e)?(s.push(e),c.push(8)):(s.push(fB(33,e,jt,230===u.kind?u.expression:u)),c.push(4))}else{const e=lw(r)?DA(r,_-t,n-t)||Lt:Rx(r,wk(_-t),256),l=_R(u,e,i,o),d=a||Hj(e,406978556);s.push(d?hk(l):iw(l)),c.push(1)}237===u.kind&&u.tupleNameSource?l.push(u.tupleNameSource):l.push(void 0)}return ob(s,c,a&&!EF(r,UC),l)}function XO(e,t,n,r){const i=Em(e.declaration),o=e.typeParameters,a=Eg(D(t,Bk),o,Cg(o),i);let s;for(let e=0;e<t.length;e++){_n.assert(void 0!==o[e],"Should not call checkTypeArguments with too many type arguments");const i=rf(o[e]);if(i){const c=n&&r?()=>ek(void 0,_a.Type_0_does_not_satisfy_the_constraint_1):void 0,l=r||_a.Type_0_does_not_satisfy_the_constraint_1;s||(s=Qk(o,a));const _=a[e];if(!RS(_,Td(yS(i,s),_),n?t[e]:void 0,l,c))return}}return a}function QO(e){if(fI(e.tagName))return 2;const t=Tf(IR(e.tagName));return l(ym(t,1))?0:l(ym(t,0))?1:2}function YO(e){return uA(e,Em(e)?-2147483615:33)}function ZO(e,t,n,r,i,o,a,c){const _={errors:void 0,skipLogging:!0};if(xu(e))return function(e,t,n,r,i,o,a){const s=VA(t,e),c=EE(e)?gI(e):_R(e.attributes,s,void 0,r),_=4&r?Ow(c):c;return function(){var t;if(xI(e))return!0;const n=!NE(e)&&!wE(e)||fI(e.tagName)||jE(e.tagName)?void 0:IR(e.tagName);if(!n)return!0;const r=ym(n,0);if(!l(r))return!0;const o=rq(e);if(!o)return!0;const s=Xa(o,111551,!0,!1,e);if(!s)return!0;const c=ym(F_(s),0);if(!l(c))return!0;let _=!1,u=0;for(const e of c){const t=ym(ej(e,0),0);if(l(t))for(const e of t){if(_=!0,aj(e))return!0;const t=ij(e);t>u&&(u=t)}}if(!_)return!0;let d=1/0;for(const e of r){const t=oj(e);t<d&&(d=t)}if(d<=u)return!0;if(i){const n=e.tagName,r=Rp(n,_a.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,jp(n),d,jp(o),u),i=null==(t=hz(n))?void 0:t.valueDeclaration;i&&sT(r,Rp(i,_a._0_is_declared_here,jp(n))),a&&a.skipLogging&&(a.errors||(a.errors=[])).push(r),a.skipLogging||po.add(r)}return!1}()&&BS(_,s,n,i?EE(e)?e:e.tagName:void 0,EE(e)?void 0:e.attributes,void 0,o,a)}(e,n,r,i,o,a,_)?void 0:(_n.assert(!o||!!_.errors,"jsx should have errors when reporting errors"),_.errors||s);const u=Hg(n);if(u&&u!==ln&&!(ZD(e)||YD(e)&&am(e.expression))){const t=eL(e),n=$O(t),i=o?t||e:void 0,c=_a.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!NT(n,u,r,i,c,a,_))return _n.assert(!o||!!_.errors,"this parameter should have errors when reporting errors"),_.errors||s}const d=_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,p=cj(n),f=p?Math.min(ij(n)-1,t.length):t.length;for(let e=0;e<f;e++){const l=t[e];if(232!==l.kind){const t=ej(n,e),u=_R(l,t,void 0,i),p=4&i?Ow(u):u,f=c?yS(p,c.nonFixingMapper):p,g=YO(l);if(!BS(f,t,r,o?g:void 0,g,d,a,_))return _n.assert(!o||!!_.errors,"parameter should have errors when reporting errors"),m(l,f,t),_.errors||s}}if(p){const n=GO(t,f,t.length,p,void 0,i),a=t.length-f,c=o?0===a?e:1===a?YO(t[f]):wT(tL(e,n),t[f].pos,t[t.length-1].end):void 0;if(!NT(n,p,r,c,d,void 0,_))return _n.assert(!o||!!_.errors,"rest parameter should have errors when reporting errors"),m(c,n,p),_.errors||s}return;function m(e,t,n){if(e&&o&&_.errors&&_.errors.length){if(oM(n))return;const i=oM(t);i&&pT(i,n,r)&&sT(_.errors[0],Rp(e,_a.Did_you_forget_to_use_await))}}}function eL(e){if(226===e.kind)return e.right;const t=213===e.kind?e.expression:215===e.kind?e.tag:170!==e.kind||q?void 0:e.expression;if(t){const e=uA(t);if(Tx(e))return e.expression}}function tL(e,t,n,r){const i=dI.createSyntheticExpression(t,n,r);return cI(i,e),FT(i,e),i}function nL(e){if(EE(e))return[tL(e,Fn)];if(215===e.kind){const t=e.template,n=[tL(t,Or||(Or=Gy("TemplateStringsArray",0,!0)||Nn))];return 228===t.kind&&_(t.templateSpans,(e=>{n.push(e.expression)})),n}if(170===e.kind)return function(e){const t=e.expression,n=Cj(e);if(n){const e=[];for(const r of n.parameters){const n=F_(r);e.push(tL(t,n))}return e}return _n.fail()}(e);if(226===e.kind)return[e.left];if(bu(e))return e.attributes.properties.length>0||NE(e)&&e.parent.children.length>0?[e.attributes]:s;const t=e.arguments||s,n=jO(t);if(n>=0){const e=t.slice(0,n);for(let r=n;r<t.length;r++){const n=t[r],i=230===n.kind&&(Si?IR(n.expression):uR(n.expression));i&&lw(i)?_(wb(i),((t,r)=>{var o;const a=i.target.elementFlags[r],s=tL(n,4&a?Uv(t):t,!!(12&a),null==(o=i.target.labeledElementDeclarations)?void 0:o[r]);e.push(s)})):e.push(n)}return e}return t}function rL(e,t){return j.experimentalDecorators?function(e,t){switch(e.parent.kind){case 263:case 231:return 1;case 172:return Ov(e.parent)?3:2;case 174:case 177:case 178:return t.parameters.length<=2?2:3;case 169:return 3;default:return _n.fail()}}(e,t):Math.min(Math.max(ij(t),1),2)}function iL(e){const t=yd(e),{start:n,length:r}=Xp(t,XD(e.expression)?e.expression.name:e.expression);return{start:n,length:r,sourceFile:t}}function oL(e,t,...n){if(YD(e)){const{sourceFile:r,start:i,length:o}=iL(e);return"message"in t?Xx(r,i,o,t,...n):Vp(r,t)}return"message"in t?Rp(e,t,...n):Jp(yd(e),e,t)}function aL(e,t,n,r){var i;const o=jO(n);if(o>-1)return Rp(n[o],_a.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=oj(e),r=ij(e);t<s&&(s=t,a=e),c=Math.max(c,r),t<n.length&&t>l&&(l=t),n.length<r&&r<_&&(_=r)}const u=V(t,aj),d=u?s:s<c?s+"-"+c:s,p=!u&&1===d&&0===n.length&&function(e){if(!YD(e)||!VN(e.expression))return!1;const t=Ue(e.expression,e.expression.escapedText,111551,void 0,!1),n=null==t?void 0:t.valueDeclaration;if(!(n&&cD(n)&&BT(n.parent)&&ZD(n.parent.parent)&&VN(n.parent.parent.expression)))return!1;const r=pv(!1);return!!r&&hz(n.parent.parent.expression,!0)===r}(e);if(p&&Em(e))return oL(e,_a.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);const f=lD(e)?u?_a.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:_a.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:u?_a.Expected_at_least_0_arguments_but_got_1:p?_a.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:_a.Expected_0_arguments_but_got_1;if(s<n.length&&n.length<c){if(r){let t=ek(void 0,_a.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,n.length,l,_);return t=ek(t,r),oL(e,t)}return oL(e,_a.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,n.length,l,_)}if(n.length<s){let t;if(r){let i=ek(void 0,f,d,n.length);i=ek(i,r),t=oL(e,i)}else t=oL(e,f,d,n.length);const o=null==(i=null==a?void 0:a.declaration)?void 0:i.parameters[a.thisParameter?n.length+1:n.length];if(o){return sT(t,Rp(o,...k_(o.name)?[_a.An_argument_matching_this_binding_pattern_was_not_provided]:Bu(o)?[_a.Arguments_for_the_rest_parameter_0_were_not_provided,gc(cb(o.name))]:[_a.An_argument_for_0_was_not_provided,o.name?gc(cb(o.name)):n.length]))}return t}{const t=ZC.createNodeArray(n.slice(c)),i=me(t).pos;let o=ye(t).end;if(o===i&&o++,wT(t,i,o),r){let i=ek(void 0,f,d,n.length);return i=ek(i,r),zp(yd(e),t,i)}return Mp(yd(e),t,f,d,n.length)}}function sL(e,t,n,r,i,o){const a=215===e.kind,c=170===e.kind,u=bu(e),d=EE(e),p=226===e.kind,f=!I&&!n;let m,g,v,b,x,k=0,S=[];c||p||cf(e)||d||(x=e.typeArguments,(a||u||108!==e.expression.kind)&&_(x,QJ)),S=n||[],function(e,t,n){let r,i,o,a,s=0,c=-1;_n.assert(!t.length);for(const l of e){const e=l.declaration&&hs(l.declaration),_=l.declaration&&l.declaration.parent;i&&e!==i?(o=s=t.length,r=_):r&&_===r?o+=1:(r=_,o=s),i=e,eJ(l)?(c++,a=c,s++):a=o,t.splice(a,0,n?Pd(l,n):l)}}(t,S,i),d||_n.assert(S.length,"Revert #54442 and add a testcase with whatever triggered this");const T=nL(e),w=1===S.length&&!S[0].typeParameters;c||w||!V(T,SS)||(k=4);const N=!!(16&r)&&213===e.kind&&e.arguments.hasTrailingComma;S.length>1&&(b=L(S,go,w,N)),b||(b=L(S,yo,w,N));const F=sa(e);if(F.resolvedSignature!==li&&!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),ez(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<e.length;i++){const o=e[i],a=ij(o);if(aj(o)||a>=t)return i;a>r&&(r=a,n=i)}return n}(t,void 0===Ee?n.length:Ee),o=t[i],{typeParameters:a}=o;if(!a)return o;const s=AO(e)?e.typeArguments:void 0,c=s?Ch(o,function(e,t,n){const r=e.map(yz);for(;r.length>t.length;)r.pop();for(;r.length<t.length;)r.push(vf(t[r.length])||rf(t[r.length])||PN(n));return r}(s,a,Em(e))):function(e,t,n,r,i){const o=Xw(t,n,Em(e)?2:0),a=HO(e,n,r,12|i,o);return Ch(n,a)}(e,a,o,n,r);return t[i]=c,c}(e,t,n,i):function(e){const t=R(e,(e=>e.thisParameter));let n;t.length&&(n=lL(t,t.map(HL)));const{min:r,max:i}=cT(e,cL),o=[];for(let t=0;t<i;t++){const n=R(e,(e=>ZB(e)?t<e.parameters.length-1?e.parameters[t]:ye(e.parameters):t<e.parameters.length?e.parameters[t]:void 0));_n.assert(0!==n.length),o.push(lL(n,R(e,(e=>tj(e,t)))))}const a=R(e,(e=>ZB(e)?ye(e.parameters):void 0));let s=128;if(0!==a.length){const t=Uv(jb(R(e,dh),2));o.push(_L(a,t)),s|=1}e.some(eJ)&&(s|=2);return Dd(e[0].declaration,void 0,n,o,Vb(e.map(Zg)),void 0,r,s)}(t)}(e,S,T,!!n,r),F.resolvedSignature=b,f)if(!o&&p&&(o=_a.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=ek(n,_a.The_last_overload_gave_the_following_error),n=ek(n,_a.No_overload_matches_this_call)),o&&(n=ek(n,o));const r=ZO(e,T,t,yo,0,!0,(()=>n),void 0);if(r)for(const e of r)t.declaration&&m.length>3&&sT(e,Rp(t.declaration,_a.The_last_overload_is_declared_here)),O(t,e),po.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=ZO(e,T,o,yo,0,!0,(()=>ek(void 0,_a.Overload_0_of_1_2_gave_the_following_error,a+1,S.length,cc(o))),void 0);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=ek(D(s,Wp),_a.No_overload_matches_this_call);o&&(c=ek(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 _=Jp(yd(e),j_(E=e)?XD(E.expression)?E.expression.name:E.expression:eF(E)?XD(E.tag)?E.tag.name:E.tag:bu(E)?E.tagName:E,c,l);O(m[0],_),po.add(_)}else if(g)po.add(aL(e,[g],T,o));else if(v)XO(v,e.typeArguments,!0,o);else if(!d){const n=C(t,(e=>JO(e,x)));0===n.length?po.add(function(e,t,n,r){const i=n.length;if(1===t.length){const o=t[0],a=Cg(o.typeParameters),s=l(o.typeParameters);if(r){let t=ek(void 0,_a.Expected_0_type_arguments_but_got_1,a<s?a+"-"+s:a,i);return t=ek(t,r),zp(yd(e),n,t)}return Mp(yd(e),n,_a.Expected_0_type_arguments_but_got_1,a<s?a+"-"+s:a,i)}let o=-1/0,a=1/0;for(const e of t){const t=Cg(e.typeParameters),n=l(e.typeParameters);t>i?a=Math.min(a,t):n<i&&(o=Math.max(o,n))}if(o!==-1/0&&a!==1/0){if(r){let t=ek(void 0,_a.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,o,a);return t=ek(t,r),zp(yd(e),n,t)}return Mp(yd(e),n,_a.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,i,o,a)}if(r){let t=ek(void 0,_a.Expected_0_type_arguments_but_got_1,o===-1/0?a:o,i);return t=ek(t,r),zp(yd(e),n,t)}return Mp(yd(e),n,_a.Expected_0_type_arguments_but_got_1,o===-1/0?a:o,i)}(e,t,x,o)):po.add(aL(e,n,T,o))}var E;return b;function O(e,t){var n,r;const i=m,o=g,a=v,c=(null==(r=null==(n=e.declaration)?void 0:n.symbol)?void 0:r.declarations)||s,l=c.length>1?y(c,(e=>o_(e)&&Nd(e.body))):void 0;if(l){const e=Pg(l),n=!e.typeParameters;L([e],yo,n)&&sT(t,Rp(l,_a.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){var o,a;if(m=void 0,g=void 0,v=void 0,r){const r=t[0];if(V(x)||!BO(e,T,r,i))return;return ZO(e,T,r,n,0,!1,void 0,void 0)?void(m=[r]):r}for(let r=0;r<t.length;r++){let s,c,l=t[r];if(JO(l,x)&&BO(e,T,l,i)){if(l.typeParameters){const t=(null==(a=null==(o=l.typeParameters[0].symbol.declarations)?void 0:o[0])?void 0:a.parent)||(l.declaration&&mD(l.declaration)?l.declaration.parent:l.declaration);let n;if(t&&uc(e,(e=>e===t))&&(l=Fh(l)),V(x)){if(n=XO(l,x,!1),!n){v=l;continue}}else c=Xw(l.typeParameters,l,Em(e)?2:0),n=Wk(HO(e,l,T,8|k,c),c.nonFixingMapper),k|=4&c.flags?8:0;if(s=xh(l,n,Em(l.declaration),c&&c.inferredTypeParameters),cj(l)&&!BO(e,T,s,i)){g=s;continue}}else s=l;if(!ZO(e,T,s,n,k,!1,void 0,c)){if(k){if(k=0,c){if(s=xh(l,Wk(HO(e,l,T,k,c),c.mapper),Em(l.declaration),c.inferredTypeParameters),cj(l)&&!BO(e,T,s,i)){g=s;continue}}if(ZO(e,T,s,n,k,!1,void 0,c)){(m||(m=[])).push(s);continue}}return t[r]=s,s}(m||(m=[])).push(s)}}}}function cL(e){const t=e.parameters.length;return ZB(e)?t-1:t}function lL(e,t){return _L(e,jb(t,2))}function _L(e,t){return Iw(me(e),t)}function uL(e){return!(!e.typeParameters||!Wz(Zg(e)))}function dL(e,t,n,r){return Hc(e)||Hc(t)&&!!(262144&e.flags)||!n&&!r&&!(1048576&t.flags)&&!(131072&Vf(t).flags)&&IS(e,Xn)}function pL(e,t,n){let r=$I(e.expression);if(r===dn)return _i;if(r=Tf(r),Gc(r))return OO(e);if(Hc(r))return e.typeArguments&&Ro(e,_a.Untyped_function_calls_may_not_accept_type_arguments),IO(e);const i=ym(r,1);if(i.length){if(!function(e,t){if(!t||!t.declaration)return!0;const n=t.declaration,r=Rv(n,6);if(!r||176!==n.kind)return!0;const i=gx(n.parent.symbol),o=Tu(n.parent.symbol);if(!dz(e,i)){const t=Xf(e);if(t&&4&r){const e=yz(t);if(mL(n.parent.symbol,e))return!0}return 2&r&&Ro(e,_a.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,lc(o)),4&r&&Ro(e,_a.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,lc(o)),!1}return!0}(e,i[0]))return OO(e);if(fL(i,(e=>!!(4&e.flags))))return Ro(e,_a.Cannot_create_an_instance_of_an_abstract_class),OO(e);const o=r.symbol&&gx(r.symbol);return o&&Dv(o,64)?(Ro(e,_a.Cannot_create_an_instance_of_an_abstract_class),OO(e)):sL(e,i,t,n,0)}const o=ym(r,0);if(o.length){const r=sL(e,o,t,n,0);return ie||(r.declaration&&!CL(r.declaration)&&Zg(r)!==ln&&Ro(e,_a.Only_a_void_function_can_be_called_with_the_new_keyword),Hg(r)===ln&&Ro(e,_a.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),r}return hL(e.expression,r,1),OO(e)}function fL(e,t){return Xe(e)?V(e,(e=>fL(e,t))):1048576===e.compositeKind?V(e.compositeSignatures,t):t(e)}function mL(e,t){const n=cu(t);if(!l(n))return!1;const r=n[0];if(2097152&r.flags){const t=Jd(r.types);let n=0;for(const i of r.types){if(!t[n]&&3&hx(i)){if(i.symbol===e)return!0;if(mL(e,i))return!0}n++}return!1}return r.symbol===e||mL(e,r)}function gL(e,t,n){let r;const i=0===n,o=pM(t),a=o&&ym(o,n).length>0;if(1048576&t.flags){const e=t.types;let o=!1;for(const a of e){if(0!==ym(a,n).length){if(o=!0,r)break}else if(r||(r=ek(r,i?_a.Type_0_has_no_call_signatures:_a.Type_0_has_no_construct_signatures,lc(a)),r=ek(r,i?_a.Not_all_constituents_of_type_0_are_callable:_a.Not_all_constituents_of_type_0_are_constructable,lc(t))),o)break}o||(r=ek(void 0,i?_a.No_constituent_of_type_0_is_callable:_a.No_constituent_of_type_0_is_constructable,lc(t))),r||(r=ek(r,i?_a.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:_a.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,lc(t)))}else r=ek(r,i?_a.Type_0_has_no_call_signatures:_a.Type_0_has_no_construct_signatures,lc(t));let s=i?_a.This_expression_is_not_callable:_a.This_expression_is_not_constructable;if(YD(e.parent)&&0===e.parent.arguments.length){const{resolvedSymbol:t}=sa(e);t&&32768&t.flags&&(s=_a.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:ek(r,s),relatedMessage:a?_a.Did_you_forget_to_use_await:void 0}}function hL(e,t,n,r){const{messageChain:i,relatedMessage:o}=gL(e,t,n),a=Jp(yd(e),e,i);if(o&&sT(a,Rp(e,o)),YD(e.parent)){const{start:t,length:n}=iL(e.parent);a.start=t,a.length=n}po.add(a),yL(t,n,r?sT(a,r):a)}function yL(e,t,n){if(!e.symbol)return;const r=aa(e.symbol).originatingImport;if(r&&!lf(r)){const i=ym(F_(aa(e.symbol).target),t);if(!i||!i.length)return;sT(n,Rp(r,_a.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 vL(e,t,n){const r=IR(e.expression),i=Tf(r);if(Gc(i))return OO(e);const o=ym(i,0),a=ym(i,1).length;if(dL(r,i,o.length,a))return IO(e);if(s=e,(c=o).length&&h(c,(e=>0===e.minArgumentCount&&!ZB(e)&&e.parameters.length<rL(s,e)))&&!nF(e.expression)){const t=Gd(e.expression,!1);return Ro(e,_a._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,t),OO(e)}var s,c;const l=function(e){switch(e.parent.kind){case 263:case 231:return _a.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return _a.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return _a.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return _a.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return _n.fail()}}(e);if(!o.length){const t=gL(e.expression,i,0),n=ek(t.messageChain,l),r=Jp(yd(e.expression),e.expression,n);return t.relatedMessage&&sT(r,Rp(e.expression,t.relatedMessage)),po.add(r),yL(i,0,r),OO(e)}return sL(e,o,t,n,0,l)}function bL(e,t){const n=kI(e),r=n&&_s(n),i=r&&ca(r,FB.Element,788968),o=i&&xe.symbolToEntityName(i,788968,e),a=ZC.createFunctionTypeNode(void 0,[ZC.createParameterDeclaration(void 0,void 0,"props",void 0,xe.typeToTypeNode(t,e))],o?ZC.createTypeReferenceNode(o,void 0):ZC.createKeywordTypeNode(133)),s=$o(1,"props");return s.links.type=t,Dd(a,void 0,void 0,[s],i?Tu(i):Et,void 0,1,0)}function xL(e){const t=sa(yd(e));if(void 0!==t.jsxFragmentType)return t.jsxFragmentType;const n=Io(e);if(!((2===j.jsx||void 0!==j.jsxFragmentFactory)&&"null"!==n))return t.jsxFragmentType=wt;const r=1!==j.jsx&&3!==j.jsx,i=po?_a.Using_JSX_fragments_requires_fragment_factory_0_to_be_in_scope_but_it_could_not_be_found:void 0,o=xI(e)??Ue(e,n,r?111551:111167,i,!0);if(void 0===o)return t.jsxFragmentType=Et;if(o.escapedName===PB.Fragment)return t.jsxFragmentType=F_(o);const a=2097152&o.flags?qa(o):o,s=o&&_s(a),c=s&&ca(s,PB.Fragment,2),l=c&&F_(c);return t.jsxFragmentType=void 0===l?Et:l}function kL(e,t,n){const r=EE(e);let i;if(r)i=xL(e);else{if(fI(e.tagName)){const t=NI(e),n=bL(e,t);return MS(_R(e.attributes,VA(n,e),void 0,0),t,e.tagName,e.attributes),l(e.typeArguments)&&(_(e.typeArguments,QJ),po.add(Mp(yd(e),e.typeArguments,_a.Expected_0_type_arguments_but_got_1,0,l(e.typeArguments)))),n}i=IR(e.tagName)}const o=Tf(i);if(Gc(o))return OO(e);const a=CI(i,e);return dL(i,o,a.length,0)?IO(e):0===a.length?(r?Ro(e,_a.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Gd(e)):Ro(e.tagName,_a.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Gd(e.tagName)),OO(e)):sL(e,a,t,n,0)}function SL(e,t,n){switch(e.kind){case 213:return function(e,t,n){if(108===e.expression.kind){const r=YP(e.expression);if(Hc(r)){for(const t of e.arguments)IR(t);return si}if(!Gc(r)){const i=yh(Xf(e));if(i)return sL(e,nu(r,i.typeArguments,i),t,n,0)}return IO(e)}let r,i=IR(e.expression);if(gl(e)){const t=Dw(i,e.expression);r=t===i?0:bl(e)?16:8,i=t}else r=0;if(i=QI(i,e.expression,XI),i===dn)return _i;const o=Tf(i);if(Gc(o))return OO(e);const a=ym(o,0),s=ym(o,1).length;if(dL(i,o,a.length,s))return!Gc(i)&&e.typeArguments&&Ro(e,_a.Untyped_function_calls_may_not_accept_type_arguments),IO(e);if(!a.length){if(s)Ro(e,_a.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,lc(i));else{let t;if(1===e.arguments.length){const n=yd(e).text;Va(n.charCodeAt(Qa(n,e.expression.end,!0)-1))&&(t=Rp(e.expression,_a.Are_you_missing_a_semicolon))}hL(e.expression,o,0,t)}return OO(e)}return 8&n&&!e.typeArguments&&a.some(uL)?(TR(e,n),li):a.some((e=>Em(e.declaration)&&!!Mc(e.declaration)))?(Ro(e,_a.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,lc(i)),OO(e)):sL(e,a,t,n,r)}(e,t,n);case 214:return pL(e,t,n);case 215:return function(e,t,n){const r=IR(e.tag),i=Tf(r);if(Gc(i))return OO(e);const o=ym(i,0),a=ym(i,1).length;if(dL(r,i,o.length,a))return IO(e);if(!o.length){if(KD(e.parent)){const t=Rp(e.tag,_a.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 po.add(t),OO(e)}return hL(e.tag,i,0),OO(e)}return sL(e,o,t,n,0)}(e,t,n);case 170:return vL(e,t,n);case 289:case 286:case 285:return kL(e,t,n);case 226:return function(e,t,n){const r=IR(e.right);if(!Hc(r)){const i=Yj(r);if(i){const r=Tf(i);if(Gc(r))return OO(e);const o=ym(r,0),a=ym(r,1);if(dL(i,r,o.length,a.length))return IO(e);if(o.length)return sL(e,o,t,n,0)}else if(!Tz(r)&&!PS(r,Xn))return Ro(e.right,_a.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),OO(e)}return si}(e,t,n)}_n.assertNever(e,"Branch in 'resolveSignature' should be unreachable.")}function TL(e,t,n){const r=sa(e),i=r.resolvedSignature;if(i&&i!==li&&!t)return i;const o=qi;i||(qi=Bi.length),r.resolvedSignature=li;const a=SL(e,t,n||0);return qi=o,a!==li&&(r.resolvedSignature=ki===Si?a:i),a}function CL(e){var t;if(!e||!Em(e))return!1;const n=GF(e)||rF(e)?e:(HF(e)||zE(e))&&e.initializer&&rF(e.initializer)?e.initializer:void 0;if(n){if(Mc(e))return!0;if(zE(rh(n.parent)))return!1;const r=hs(n);return!!(null==(t=null==r?void 0:r.members)?void 0:t.size)}return!1}function wL(e,t){var n,r;if(t){const i=aa(t);if(!i.inferredClassSymbol||!i.inferredClassSymbol.has(HB(e))){const o=Gu(e)?e:Qo(e);return o.exports=o.exports||Ku(),o.members=o.members||Ku(),o.flags|=32&t.flags,(null==(n=t.exports)?void 0:n.size)&&na(o.exports,t.exports),(null==(r=t.members)?void 0:r.size)&&na(o.members,t.members),(i.inferredClassSymbol||(i.inferredClassSymbol=new Map)).set(HB(o),o),o}return i.inferredClassSymbol.get(HB(e))}}function NL(e,t){if(!e.parent)return;let n,r;if(HF(e.parent)&&e.parent.initializer===e){if(!(Em(e)||Vq(e.parent)&&o_(e)))return;n=e.parent.name,r=e.parent}else if(uF(e.parent)){const i=e.parent,o=e.parent.operatorToken.kind;if(64!==o||!t&&i.right!==e){if(!(57!==o&&61!==o||(HF(i.parent)&&i.parent.initializer===i?(n=i.parent.name,r=i.parent):uF(i.parent)&&64===i.parent.operatorToken.kind&&(t||i.parent.right===i)&&(n=i.parent.left,r=n),n&&sg(n)&&Xm(n,i.left))))return}else n=i.left,r=n}else t&&GF(e)&&(n=e.name,r=e);return r&&n&&(t||Hm(e,db(n)))?ys(r):void 0}function DL(e,t){var n,r,i,o;if(!(128&e.flags)&&(e.declaration&&536870912&e.declaration.flags)){const a=FL(t),s=ub(um(t));n=a,r=e.declaration,i=s,o=cc(e),qo(r,i?Rp(n,_a.The_signature_0_of_1_is_deprecated,o,i):Rp(n,_a._0_is_deprecated,o))}}function FL(e){switch((e=ah(e)).kind){case 213:case 170:case 214:return FL(e.expression);case 215:return FL(e.tag);case 286:case 285:return FL(e.tagName);case 212:return e.argumentExpression;case 211:return e.name;case 183:const t=e;return oD(t.typeName)?t.typeName.right:t;default:return e}}function EL(e){if(!YD(e))return!1;let t=e.expression;if(XD(t)&&"for"===t.name.escapedText&&(t=t.expression),!VN(t)||"Symbol"!==t.escapedText)return!1;const n=nv(!1);return!!n&&n===Ue(t,"Symbol",111551,void 0,!1)}function PL(e){if(function(e){if(j.verbatimModuleSyntax&&1===z)return Lq(e,_a.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(5===z)return Lq(e,_a.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_node18_or_nodenext);if(e.typeArguments)return Lq(e,_a.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<=z&&z<=199)&&99!==z&&200!==z&&(uq(t),t.length>1)){return Lq(t[1],_a.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_node18_nodenext_or_preserve)}if(0===t.length||t.length>2)return Lq(e,_a.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const n=y(t,mF);if(n)return Lq(n,_a.Argument_of_dynamic_import_cannot_be_spread_element)}(e),0===e.arguments.length)return Dj(e,wt);const t=e.arguments[0],n=uR(t),r=e.arguments.length>1?uR(e.arguments[1]):void 0;for(let t=2;t<e.arguments.length;++t)uR(e.arguments[t]);if((32768&n.flags||65536&n.flags||!IS(n,Vt))&&Ro(t,_a.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,lc(n)),r){const t=ev(!0);t!==Nn&&RS(r,xw(t,32768),e.arguments[1])}const i=Za(e,t);if(i){const n=is(i,t,!0,!1);if(n)return Dj(e,IL(F_(n),n,i,t)||OL(F_(n),n,i,t))}return Dj(e,wt)}function AL(e,t,n){const r=Ku(),i=$o(2097152,"default");return i.parent=t,i.links.nameType=kk("default"),i.links.aliasTarget=Ja(e),r.set("default",i),zs(n,r,s,s,s)}function IL(e,t,n,r){if(Da(r)&&e&&!Gc(e)){const r=e;if(!r.defaultOnlyType){const e=AL(t,n);r.defaultOnlyType=e}return r.defaultOnlyType}}function OL(e,t,n,r){var i;if(H&&e&&!Gc(e)){const o=e;if(!o.syntheticType){if(Ea(null==(i=n.declarations)?void 0:i.find(WE),n,!1,r)){const r=$o(2048,"__type"),i=AL(t,n,r);r.links.type=i,o.syntheticType=uI(e)?dk(e,i,r,0,!1):i}else o.syntheticType=e}return o.syntheticType}return e}function LL(e){if(!Lm(e,!0))return!1;if(!VN(e.expression))return _n.fail();const t=Ue(e.expression,e.expression.escapedText,111551,void 0,!0);if(t===je)return!0;if(2097152&t.flags)return!1;const n=16&t.flags?262:3&t.flags?260:0;if(0!==n){const e=$u(t,n);return!!e&&!!(33554432&e.flags)}return!1}function jL(e){(function(e){if(e.questionDotToken||64&e.flags)return Lq(e.template,_a.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);return!1})(e)||mq(e,e.typeArguments),M<Ni.TaggedTemplates&&sq(e,262144);const t=TL(e);return DL(t,e),Zg(t)}function RL(e){switch(e.kind){case 11:case 15:case 9:case 10:case 112:case 97:case 209:case 210:case 228:return!0;case 217:return RL(e.expression);case 224:const t=e.operator,n=e.operand;return 41===t&&(9===n.kind||10===n.kind)||40===t&&9===n.kind;case 211:case 212:const r=ah(e.expression),i=sb(r)?Xa(r,111551,!0):void 0;return!!(i&&384&i.flags)}return!1}function ML(e,t){const{type:n,expression:r}=BL(e),i=IR(r,t);if(kl(n))return RL(r)||Ro(r,_a.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),hk(i);return sa(e).assertionExpressionType=i,QJ(n),ez(e),Bk(n)}function BL(e){let t,n;switch(e.kind){case 234:case 216:t=e.type,n=e.expression;break;case 217:t=lA(e),n=e.expression}return{type:t,expression:n}}function JL(e){return 64&e.flags?function(e){const t=IR(e.expression),n=Dw(t,e.expression);return Nw(Tw(n),e,n!==t)}(e):Tw(IR(e.expression))}function zL(e){if(hq(e),_(e.typeArguments,QJ),233===e.kind){const t=rh(e.parent);226===t.kind&&104===t.operatorToken.kind&&ch(e,t.right)&&Ro(e,_a.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}return qL(233===e.kind?IR(e.expression):lv(e.exprName)?XP(e.exprName):IR(e.exprName),e)}function qL(e,t){const n=t.typeArguments;if(e===dn||Gc(e)||!V(n))return e;const r=sa(t);if(r.instantiationExpressionTypes||(r.instantiationExpressionTypes=new Map),r.instantiationExpressionTypes.has(e.id))return r.instantiationExpressionTypes.get(e.id);let i,o=!1;const a=function e(n){let r=!1,a=!1;const s=l(n);o||(o=a),r&&!a&&(i??(i=n));return s;function l(n){if(524288&n.flags){const e=Op(n),i=c(e.callSignatures),o=c(e.constructSignatures);if(r||(r=0!==e.callSignatures.length||0!==e.constructSignatures.length),a||(a=0!==i.length||0!==o.length),i!==e.callSignatures||o!==e.constructSignatures){const n=zs($o(0,"__instantiationExpression"),e.members,i,o,e.indexInfos);return n.objectFlags|=8388608,n.node=t,n}}else if(58982400&n.flags){const e=ff(n);if(e){const t=l(e);if(t!==e)return t}}else{if(1048576&n.flags)return JF(n,e);if(2097152&n.flags)return Vb(E(n.types,l))}return n}}(e);r.instantiationExpressionTypes.set(e.id,a);const s=o?i:e;return s&&po.add(Mp(yd(t),n,_a.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,lc(s))),a;function c(e){return E(C(e,(e=>!!e.typeParameters&&JO(e,n))),(e=>{const t=XO(e,n,!0);return t?xh(e,t,Em(e.declaration)):e}))}}function UL(e,t,n){const r=IR(e,n),i=Bk(t);if(Gc(i))return i;return MS(r,i,uc(t.parent,(e=>238===e.kind||350===e.kind)),e,_a.Type_0_does_not_satisfy_the_expected_type_1),r}function VL(e){return function(e){const t=e.name.escapedText;switch(e.keywordToken){case 105:if("target"!==t)return Lq(e.name,_a._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,mc(e.name.escapedText),Fa(e.keywordToken),"target");break;case 102:if("meta"!==t)Lq(e.name,_a._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,mc(e.name.escapedText),Fa(e.keywordToken),"meta")}}(e),105===e.keywordToken?$L(e):102===e.keywordToken?function(e){100<=z&&z<=199?99!==yd(e).impliedNodeFormat&&Ro(e,_a.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):z<6&&4!==z&&Ro(e,_a.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_node18_or_nodenext);const t=yd(e);return _n.assert(!!(8388608&t.flags),"Containing file is missing import meta node flag."),"meta"===e.name.escapedText?Yy():Et}(e):_n.assertNever(e.keywordToken)}function WL(e){switch(e.keywordToken){case 102:return Zy();case 105:const t=$L(e);return Gc(t)?Et:function(e){const t=$o(0,"NewTargetExpression"),n=$o(4,"target",8);n.parent=t,n.links.type=e;const r=Ku([n]);return t.members=r,zs(t,r,s,s,s)}(t);default:_n.assertNever(e.keywordToken)}}function $L(e){const t=rm(e);if(t){if(176===t.kind){return F_(hs(t.parent))}return F_(hs(t))}return Ro(e,_a.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Et}function HL(e){const t=e.valueDeclaration;return Tl(F_(e),!1,!!t&&(Eu(t)||QT(t)))}function KL(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 207:if(e.dotDotDotToken){const r=e.name.elements,i=et(he(r),HD),o=r.length-((null==i?void 0:i.dotDotDotToken)?1:0);if(t<o){const e=r[t];if(HD(e))return KL(e,t,n)}else if(null==i?void 0:i.dotDotDotToken)return KL(i,t-o,n)}}return`arg_${t}`}function GL(e,t=0,n=3,r){if(!e){const e=et(null==r?void 0:r.valueDeclaration,cD);return e?KL(e,t,n):`${(null==r?void 0:r.escapedName)??"arg"}_${t}`}return _n.assert(VN(e.name)),e.name.escapedText}function XL(e,t,n){var r;const i=e.parameters.length-(ZB(e)?1:0);if(t<i)return e.parameters[t].escapedName;const o=e.parameters[i]||xt,a=n||F_(o);if(lw(a)){const e=a.target,n=t-i;return GL(null==(r=e.labeledElementDeclarations)?void 0:r[n],n,e.elementFlags[n],o)}return o.escapedName}function QL(e){return e.valueDeclaration&&cD(e.valueDeclaration)&&VN(e.valueDeclaration.name)&&e.valueDeclaration.name}function YL(e){return 202===e.kind||cD(e)&&e.name&&VN(e.name)}function ZL(e,t){const n=e.parameters.length-(ZB(e)?1:0);if(t<n){const n=e.parameters[t].valueDeclaration;return n&&YL(n)?n:void 0}const r=e.parameters[n]||xt,i=F_(r);if(lw(i)){const e=i.target.labeledElementDeclarations;return e&&e[t-n]}return r.valueDeclaration&&YL(r.valueDeclaration)?r.valueDeclaration:void 0}function ej(e,t){return tj(e,t)||wt}function tj(e,t){const n=e.parameters.length-(ZB(e)?1:0);if(t<n)return HL(e.parameters[t]);if(ZB(e)){const r=F_(e.parameters[n]),i=t-n;if(!lw(r)||12&r.target.combinedFlags||i<r.target.fixedLength)return Rx(r,wk(i))}}function nj(e,t,n){const r=ij(e),i=oj(e),o=sj(e);if(o&&t>=r-1)return t===r-1?o:Uv(Rx(o,Wt));const a=[],s=[],c=[];for(let n=t;n<r;n++)!o||n<r-1?(a.push(ej(e,n)),s.push(n<i?1:2)):(a.push(o),s.push(8)),c.push(ZL(e,n));return ob(a,s,n,c)}function rj(e,t){const n=nj(e,t),r=n&&zC(n);return r&&Hc(r)?wt:n}function ij(e){const t=e.parameters.length;if(ZB(e)){const n=F_(e.parameters[t-1]);if(lw(n))return t+n.target.fixedLength-(12&n.target.combinedFlags?0:1)}return t}function oj(e,t){const n=1&t,r=2&t;if(r||void 0===e.resolvedMinArgumentCount){let t;if(ZB(e)){const n=F_(e.parameters[e.parameters.length-1]);if(lw(n)){const r=b(n.target.elementFlags,(e=>!(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(131072&OF(ej(e,n),RO).flags)break;t=n}e.resolvedMinArgumentCount=t}return e.resolvedMinArgumentCount}function aj(e){if(ZB(e)){const t=F_(e.parameters[e.parameters.length-1]);return!lw(t)||!!(12&t.target.combinedFlags)}return!1}function sj(e){if(ZB(e)){const t=F_(e.parameters[e.parameters.length-1]);if(!lw(t))return Hc(t)?cr:t;if(12&t.target.combinedFlags)return kb(t,t.target.fixedLength)}}function cj(e){const t=sj(e);return!t||RC(t)||Hc(t)?void 0:t}function lj(e){return _j(e,un)}function _j(e,t){return e.parameters.length>0?ej(e,0):t}function uj(e,t,n){const r=e.parameters.length-(ZB(e)?1:0);for(let i=0;i<r;i++){const r=e.parameters[i].valueDeclaration,o=fv(r);if(o){const e=Tl(Bk(o),!1,QT(r)),a=ej(t,i);xN(n.inferences,e,a)}}}function dj(e,t){const n=aa(e);if(n.type)t&&_n.assertEqual(n.type,t,"Parameter symbol already has a cached type which differs from newly assigned type");else{const r=e.valueDeclaration;n.type=Tl(t||(r?$l(r,!0):F_(e)),!1,!!r&&!r.initializer&&QT(r)),r&&80!==r.name.kind&&(n.type===Lt&&(n.type=Vl(r.name)),pj(r.name,n.type))}}function pj(e,t){for(const n of e.elements)if(!hF(n)){const e=ml(n,t,!1);80===n.name.kind?aa(hs(n)).type=e:pj(n.name,e)}}function fj(e){return cy((t=!0,Hr??(Hr=Gy("ClassDecoratorContext",1,t))??On),[e]);var t}function mj(e,t){return cy((n=!0,Kr??(Kr=Gy("ClassMethodDecoratorContext",2,n))??On),[e,t]);var n}function gj(e,t){return cy((n=!0,Gr??(Gr=Gy("ClassGetterDecoratorContext",2,n))??On),[e,t]);var n}function hj(e,t){return cy((n=!0,Xr??(Xr=Gy("ClassSetterDecoratorContext",2,n))??On),[e,t]);var n}function yj(e,t){return cy((n=!0,Qr??(Qr=Gy("ClassAccessorDecoratorContext",2,n))??On),[e,t]);var n}function vj(e,t){return cy((n=!0,ei??(ei=Gy("ClassFieldDecoratorContext",2,n))??On),[e,t]);var n}function bj(e,t,n){const r=Ev(e),i=WN(e.name),o=i?kk(gc(e.name)):Yb(e.name),a=pD(e)?mj(t,n):gD(e)?gj(t,n):hD(e)?hj(t,n):p_(e)?yj(t,n):uD(e)?vj(t,n):_n.failBadSyntaxKind(e),c=function(e,t,n){const r=`${t?"p":"P"}${n?"s":"S"}${e.id}`;let i=mt.get(r);if(!i){const o=Ku();o.set("name",Ko("name",e)),o.set("private",Ko("private",t?tn:Xt)),o.set("static",Ko("static",n?tn:Xt)),i=zs(void 0,o,s,s,s),mt.set(r,i)}return i}(o,i,r);return Vb([a,c])}function xj(e,t){return cy((n=!0,Yr??(Yr=Gy("ClassAccessorDecoratorTarget",2,n))??On),[e,t]);var n}function kj(e,t){return cy((n=!0,Zr??(Zr=Gy("ClassAccessorDecoratorResult",2,n))??On),[e,t]);var n}function Sj(e,t,n){return gM(void 0,void 0,[Ho("target",e),Ho("context",t)],jb([n,ln]))}function Tj(e){const{parent:t}=e,n=sa(t);if(!n.decoratorSignature)switch(n.decoratorSignature=si,t.kind){case 263:case 231:{const e=F_(hs(t)),r=fj(e);n.decoratorSignature=Sj(e,r,e);break}case 174:case 177:case 178:{const e=t;if(!u_(e.parent))break;const r=pD(e)?Ah(Pg(e)):yz(e),i=Ev(e)?F_(hs(e.parent)):du(hs(e.parent)),o=gD(e)?yM(r):hD(e)?vM(r):r,a=bj(e,i,r),s=gD(e)?yM(r):hD(e)?vM(r):r;n.decoratorSignature=Sj(o,a,s);break}case 172:{const e=t;if(!u_(e.parent))break;const r=yz(e),i=Ev(e)?F_(hs(e.parent)):du(hs(e.parent)),o=Ov(e)?xj(i,r):jt,a=bj(e,i,r),s=Ov(e)?kj(i,r):function(e,t){return hM(void 0,Ho("this",e),[Ho("value",t)],t,void 0,1)}(i,r);n.decoratorSignature=Sj(o,a,s);break}}return n.decoratorSignature===si?void 0:n.decoratorSignature}function Cj(e){return q?function(e){const{parent:t}=e,n=sa(t);if(!n.decoratorSignature)switch(n.decoratorSignature=si,t.kind){case 263:case 231:{const e=F_(hs(t)),r=Ho("target",e);n.decoratorSignature=gM(void 0,void 0,[r],jb([e,ln]));break}case 169:{const e=t;if(!mD(e.parent)&&!(pD(e.parent)||hD(e.parent)&&u_(e.parent.parent)))break;if(sv(e.parent)===e)break;const r=sv(e.parent)?e.parent.parameters.indexOf(e)-1:e.parent.parameters.indexOf(e);_n.assert(r>=0);const i=mD(e.parent)?F_(hs(e.parent.parent)):xz(e.parent),o=mD(e.parent)?jt:kz(e.parent),a=wk(r),s=Ho("target",i),c=Ho("propertyKey",o),l=Ho("parameterIndex",a);n.decoratorSignature=gM(void 0,void 0,[s,c,l],ln);break}case 174:case 177:case 178:case 172:{const e=t;if(!u_(e.parent))break;const r=Ho("target",xz(e)),i=Ho("propertyKey",kz(e)),o=uD(e)?ln:zv(yz(e));if(!uD(t)||Ov(t)){const t=Ho("descriptor",zv(yz(e)));n.decoratorSignature=gM(void 0,void 0,[r,i,t],jb([o,ln]))}else n.decoratorSignature=gM(void 0,void 0,[r,i],jb([o,ln]));break}}return n.decoratorSignature===si?void 0:n.decoratorSignature}(e):Tj(e)}function wj(e){const t=av(!0);return t!==On?uy(t,[e=fM(_M(e))||Lt]):Lt}function Nj(e){const t=dv(!0);return t!==On?uy(t,[e=fM(_M(e))||Lt]):Lt}function Dj(e,t){const n=wj(t);return n===Lt?(Ro(e,lf(e)?_a.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:_a.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Et):(pv(!0)||Ro(e,lf(e)?_a.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.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 Fj(e,t){if(!e.body)return Et;const n=Oh(e),r=!!(2&n),i=!!(1&n);let o,a,s,c=ln;if(241!==e.body.kind)o=uR(e.body,t&&-9&t),r&&(o=_M(sM(o,!1,e,_a.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=Lj(e,t);n?n.length>0&&(o=jb(n,2)):c=un;const{yieldTypes:r,nextTypes:i}=function(e,t){const n=[],r=[],i=!!(2&Oh(e));return Df(e.body,(e=>{const o=e.expression?IR(e.expression,t):Rt;let a;if(se(n,Pj(e,o,wt,i)),e.asteriskToken){const t=xB(o,i?19:17,e.expression);a=t&&t.nextType}else a=MA(e,void 0);a&&se(r,a)})),{yieldTypes:n,nextTypes:r}}(e,t);a=V(r)?jb(r,2):void 0,s=V(i)?Vb(i):void 0}else{const r=Lj(e,t);if(!r)return 2&n?Dj(e,un):un;if(0===r.length){const t=fA(e,void 0),r=t&&32768&(aJ(t,n)||ln).flags?jt:ln;return 2&n?Dj(e,r):r}o=jb(r,2)}if(o||a||s){if(a&&Hw(e,a,3),o&&Hw(e,o,1),s&&Hw(e,s,2),o&&QC(o)||a&&QC(a)||s&&QC(s)){const t=GA(e),n=t?t===Pg(e)?i?void 0:o:jA(Zg(t),e,void 0):void 0;i?(a=cw(a,n,0,r),o=cw(o,n,1,r),s=cw(s,n,2,r)):o=function(e,t,n){e&&QC(e)&&(e=sw(e,t?n?aM(t):t:void 0));return e}(o,n,r)}a&&(a=Uw(a)),o&&(o=Uw(o)),s&&(s=Uw(s))}return i?Ej(a||un,o||c,s||pA(2,e)||Lt,r):r?wj(o||c):o||c}function Ej(e,t,n,r){const i=r?hi:yi,o=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||Lt,t=i.resolveIterationType(t,void 0)||Lt,o===On){const r=i.getGlobalIterableIteratorType(!1);return r!==On?Bv(r,[e,t,n]):(i.getGlobalIterableIteratorType(!0),Nn)}return Bv(o,[e,t,n])}function Pj(e,t,n,r){const i=e.expression||e,o=e.asteriskToken?fB(r?19:17,t,n,i):t;return r?pM(o,i,e.asteriskToken?_a.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:_a.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):o}function Aj(e,t,n){let r=0;for(let i=0;i<n.length;i++){const o=i<e||i>=t?n[i]:void 0;r|=void 0!==o?BB.get(o)||32768:0}return r}function Ij(e){const t=sa(e);if(void 0===t.isExhaustive){t.isExhaustive=0;const n=function(e){if(221===e.expression.kind){const t=TF(e);if(!t)return!1;const n=mf(uR(e.expression.expression)),r=Aj(0,0,t);return 3&n.flags?!(556800&~r):!EF(n,(e=>eD(e,r)===r))}const t=mf(uR(e.expression));if(!ew(t))return!1;const n=SF(e);if(!n.length||V(n,XC))return!1;return r=JF(t,hk),i=n,1048576&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 Oj(e){return e.endFlowNode&&DE(e.endFlowNode)}function Lj(e,t){const n=Oh(e),r=[];let i=Oj(e),o=!1;if(Nf(e.body,(a=>{let s=a.expression;if(s){if(s=ah(s,!0),2&n&&223===s.kind&&(s=ah(s.expression,!0)),213===s.kind&&80===s.expression.kind&&uR(s.expression).symbol===fs(e.symbol)&&(!BT(e.symbol.valueDeclaration)||ME(s.expression)))return void(o=!0);let i=uR(s,t&&-9&t);2&n&&(i=_M(sM(i,!1,e,_a.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&i.flags&&(o=!0),se(r,i)}else i=!0})),0!==r.length||i||!o&&!function(e){switch(e.kind){case 218:case 219:return!0;case 174:return 210===e.parent.kind;default:return!1}}(e))return!(G&&r.length&&i)||CL(e)&&r.some((t=>t.symbol===e.symbol))||se(r,jt),r}function jj(e,t){return void a((function(){const n=Oh(e),r=t&&aJ(t,n);if(r&&(Hj(r,16384)||32769&r.flags))return;if(173===e.kind||wd(e.body)||241!==e.body.kind||!Oj(e))return;const i=1024&e.flags,o=gv(e)||e;if(r&&131072&r.flags)Ro(o,_a.A_function_returning_never_cannot_have_a_reachable_end_point);else if(r&&!i)Ro(o,_a.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(r&&G&&!IS(jt,r))Ro(o,_a.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(j.noImplicitReturns){if(!r){if(!i)return;const t=Zg(Pg(e));if(sJ(e,t))return}Ro(o,_a.Not_all_code_paths_return_a_value)}}))}function Rj(e,t){if(_n.assert(174!==e.kind||Bf(e)),ez(e),rF(e)&&QM(e,e.name),t&&4&t&&SS(e)){if(!gv(e)&&!jT(e)){const n=XA(e);if(n&&rN(Zg(n))){const n=sa(e);if(n.contextFreeType)return n.contextFreeType;const r=Fj(e,t),i=Dd(void 0,void 0,void 0,s,r,void 0,0,64),o=zs(e.symbol,O,[i],s,s);return o.objectFlags|=262144,n.contextFreeType=o}}return Ln}return fq(e)||218!==e.kind||vq(e),function(e,t){const n=sa(e);if(!(64&n.flags)){const r=XA(e);if(!(64&n.flags)){n.flags|=64;const i=pe(ym(F_(hs(e)),0));if(!i)return;if(SS(e))if(r){const n=UA(e);let o;if(t&&2&t){uj(i,r,n);const e=sj(r);e&&262144&e.flags&&(o=lS(r,n.nonFixingMapper))}o||(o=n?lS(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=Iw(t.thisParameter,void 0)),dj(e.thisParameter,F_(t.thisParameter)))}const n=e.parameters.length-(ZB(e)?1:0);for(let r=0;r<n;r++){const n=e.parameters[r],i=n.valueDeclaration;if(!fv(i)){let e=tj(t,r);if(e&&i.initializer){let t=pR(i,0);!IS(t,e)&&IS(e,t=mR(i,t))&&(e=t)}dj(n,e)}}if(ZB(e)){const r=ye(e.parameters);(r.valueDeclaration?!fv(r.valueDeclaration):65536&ix(r))&&dj(r,nj(t,n))}}(i,o)}else!function(e){e.thisParameter&&dj(e.thisParameter);for(const t of e.parameters)dj(t)}(i);else if(r&&!e.typeParameters&&r.parameters.length>e.parameters.length){const n=UA(e);t&&2&t&&uj(i,r,n)}if(r&&!th(e)&&!i.resolvedReturnType){const n=Fj(e,t);i.resolvedReturnType||(i.resolvedReturnType=n)}RR(e)}}}(e,t),F_(hs(e))}function Mj(e,t,n,r=!1){if(!IS(t,yn)){const i=r&&oM(t);return zo(e,!!i&&IS(i,yn),n),!1}return!0}function Bj(e){if(!YD(e))return!1;if(!ng(e))return!1;const t=uR(e.arguments[2]);if(Wc(t,"value")){const e=fm(t,"writable"),n=e&&F_(e);if(!n||n===Xt||n===Qt)return!0;if(e&&e.valueDeclaration&&zE(e.valueDeclaration)){const t=IR(e.valueDeclaration.initializer);if(t===Xt||t===Qt)return!0}return!1}return!fm(t,"set")}function Jj(e){return!!(8&ix(e)||4&e.flags&&8&ox(e)||3&e.flags&&6&BI(e)||98304&e.flags&&!(65536&e.flags)||8&e.flags||V(e.declarations,Bj))}function zj(e,t,n){var r,i;if(0===n)return!1;if(Jj(t)){if(4&t.flags&&Tx(e)&&110===e.expression.kind){const n=XE(e);if(!n||176!==n.kind&&!CL(n))return!0;if(t.valueDeclaration){const e=uF(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(Tx(e)){const t=ah(e.expression);if(80===t.kind){const e=sa(t).resolvedSymbol;if(2097152&e.flags){const t=xa(e);return!!t&&274===t.kind}}}return!1}function qj(e,t,n){const r=uA(e,39);return 80===r.kind||Tx(r)?!(64&r.flags)||(Ro(e,n),!1):(Ro(e,t),!1)}function Uj(e){IR(e.expression);const t=ah(e.expression);if(!Tx(t))return Ro(t,_a.The_operand_of_a_delete_operator_must_be_a_property_reference),sn;XD(t)&&WN(t.name)&&Ro(t,_a.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const n=ws(sa(t).resolvedSymbol);return n&&(Jj(n)?Ro(t,_a.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):function(e,t){const n=F_(t);!G||131075&n.flags||(_e?16777216&t.flags:tD(n,16777216))||Ro(e,_a.The_operand_of_a_delete_operator_must_be_optional)}(t,n)),sn}function Vj(e){let t=!1;const n=Yf(e);if(n&&fD(n)){Ro(e,cF(e)?_a.await_expression_cannot_be_used_inside_a_class_static_block:_a.await_using_statements_cannot_be_used_inside_a_class_static_block),t=!0}else if(!(65536&e.flags))if(nm(e)){const n=yd(e);if(!Aq(n)){let r;if(!gp(n,j)){r??(r=Kp(n,e.pos));const i=cF(e)?_a.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.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=Xx(n,r.start,r.length,i);po.add(o),t=!0}switch(z){case 100:case 101:case 199:if(1===n.impliedNodeFormat){r??(r=Kp(n,e.pos)),po.add(Xx(n,r.start,r.length,_a.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(M>=4)break;default:r??(r=Kp(n,e.pos));const i=cF(e)?_a.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:_a.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;po.add(Xx(n,r.start,r.length,i)),t=!0}}}else{const r=yd(e);if(!Aq(r)){const i=Kp(r,e.pos),o=cF(e)?_a.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:_a.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,a=Xx(r,i.start,i.length,o);if(n&&176!==n.kind&&!(2&Oh(n))){sT(a,Rp(n,_a.Did_you_mean_to_mark_this_function_as_async))}po.add(a),t=!0}}return cF(e)&&_A(e)&&(Ro(e,_a.await_expressions_cannot_be_used_in_a_parameter_initializer),t=!0),t}function Wj(e){return Hj(e,2112)?Kj(e,3)||Hj(e,296)?yn:$t:Wt}function $j(e,t){if(Hj(e,t))return!0;const n=mf(e);return!!n&&Hj(n,t)}function Hj(e,t){if(e.flags&t)return!0;if(3145728&e.flags){const n=e.types;for(const e of n)if(Hj(e,t))return!0}return!1}function Kj(e,t,n){return!!(e.flags&t)||!(n&&114691&e.flags)&&(!!(296&t)&&IS(e,Wt)||!!(2112&t)&&IS(e,$t)||!!(402653316&t)&&IS(e,Vt)||!!(528&t)&&IS(e,sn)||!!(16384&t)&&IS(e,ln)||!!(131072&t)&&IS(e,un)||!!(65536&t)&&IS(e,qt)||!!(32768&t)&&IS(e,jt)||!!(4096&t)&&IS(e,cn)||!!(67108864&t)&&IS(e,mn))}function Gj(e,t,n){return 1048576&e.flags?h(e.types,(e=>Gj(e,t,n))):Kj(e,t,n)}function Xj(e){return!!(16&hx(e))&&!!e.symbol&&Qj(e.symbol)}function Qj(e){return!!(128&e.flags)}function Yj(e){const t=wB("hasInstance");if(Gj(e,67108864)){const n=fm(e,t);if(n){const e=F_(n);if(e&&0!==ym(e,0).length)return e}}}function Zj(e,t,n,r){if(n===dn||r===dn)return dn;if(WN(e)){if((M<Ni.PrivateNamesAndClassStaticBlocks||M<Ni.ClassAndClassElementDecorators||!U)&&sq(e,2097152),!sa(e).resolvedSymbol&&Xf(e)){mO(e,r,uO(e,r.symbol,!0))}}else RS(eO(n,e),hn,e);return RS(eO(r,t),mn,t)&&EF(r,(e=>e===An||!!(2097152&e.flags)&&tT(mf(e))))&&Ro(t,_a.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,lc(r)),sn}function eR(e,t,n,r,i=!1){const o=e.properties,a=o[n];if(303===a.kind||304===a.kind){const e=a.name,n=Yb(e);if(cC(n)){const e=fm(t,lC(n));e&&(TO(e,a,i),zI(a,!1,!0,t,e))}const r=il(a,Rx(t,n,32|(YA(a)?16:0),e));return nR(304===a.kind?a:a.initializer,r)}if(305===a.kind){if(!(n<o.length-1)){M<Ni.ObjectSpreadRest&&sq(a,4);const e=[];if(r)for(const t of r)UE(t)||e.push(t.name);const n=Zc(t,e,t.symbol);return uq(r,_a.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),nR(a.expression,n)}Ro(a,_a.A_rest_element_must_be_last_in_a_destructuring_pattern)}else Ro(a,_a.Property_assignment_expected)}function tR(e,t,n,r,i){const o=e.elements,a=o[n];if(232!==a.kind){if(230!==a.kind){const e=wk(n);if(qC(t)){const n=Jx(t,e,32|(YA(a)?16:0),tL(a,e))||Et;return nR(a,il(a,YA(a)?iD(n,524288):n),i)}return nR(a,r,i)}if(n<o.length-1)Ro(a,_a.A_rest_element_must_be_last_in_a_destructuring_pattern);else{const o=a.expression;if(226!==o.kind||64!==o.operatorToken.kind){uq(e.elements,_a.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);return nR(o,IF(t,lw)?JF(t,(e=>kb(e,n))):Uv(r),i)}Ro(o.operatorToken,_a.A_rest_element_cannot_have_an_initializer)}}}function nR(e,t,n,r){let i;if(304===e.kind){const r=e;r.objectAssignmentInitializer&&(G&&!tD(IR(r.objectAssignmentInitializer),16777216)&&(t=iD(t,524288)),function(e,t,n,r,i){const o=t.kind;if(64===o&&(210===e.kind||209===e.kind))return nR(e,IR(n,r),r,110===n.kind);let a;a=Gv(o)?_B(e,r):IR(e,r);const s=IR(n,r);aR(e,t,n,a,s,r,i)}(r.name,r.equalsToken,r.objectAssignmentInitializer,n)),i=e.name}else i=e;return 226===i.kind&&64===i.operatorToken.kind&&(ve(i,n),i=i.left,G&&(t=iD(t,524288))),210===i.kind?function(e,t,n){const r=e.properties;if(G&&0===r.length)return eO(t,e);for(let i=0;i<r.length;i++)eR(e,t,i,r,n);return t}(i,t,r):209===i.kind?function(e,t,n){const r=e.elements;M<Ni.DestructuringAssignment&&j.downlevelIteration&&sq(e,512);const i=fB(193,t,jt,e)||Et;let o=j.noUncheckedIndexedAccess?void 0:i;for(let a=0;a<r.length;a++){let r=i;230===e.elements[a].kind&&(r=o=o??(fB(65,t,jt,e)||Et)),tR(e,t,a,r,n)}return t}(i,t,n):function(e,t,n){const r=IR(e,n),i=305===e.parent.kind?_a.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:_a.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,o=305===e.parent.kind?_a.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:_a.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;qj(e,i,o)&&MS(t,r,e,e);Gl(e)&&sq(e.parent,1048576);return t}(i,t,n)}function rR(e){switch((e=ah(e)).kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return rR(e.whenTrue)&&rR(e.whenFalse);case 226:return!tb(e.operatorToken.kind)&&(rR(e.left)&&rR(e.right));case 224:case 225:switch(e.operator){case 54:case 40:case 41:case 55:return!0}return!1;default:return!1}}function iR(e,t){return!!(98304&t.flags)||LS(e,t)}function oR(e){switch((e=uA(e)).kind){case 223:case 213:case 215:case 212:case 236:case 214:case 211:case 229:case 110:return 3;case 226:switch(e.operatorToken.kind){case 64:case 61:case 78:case 57:case 76:case 56:case 77:return 3;case 28:return oR(e.right)}return 2;case 227:return oR(e.whenTrue)|oR(e.whenFalse);case 106:return 1;case 80:return ON(e)===De?1:3}return 2}function aR(e,t,n,r,i,o,s){const c=t.kind;switch(c){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(r===dn||i===dn)return dn;let a;if(r=eO(r,e),i=eO(i,n),528&r.flags&&528&i.flags&&void 0!==(a=function(e){switch(e){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}(t.kind)))return Ro(s||t,_a.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Fa(t.kind),Fa(a)),Wt;{const o=Mj(e,r,_a.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),a=Mj(n,i,_a.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let l;if(Kj(r,3)&&Kj(i,3)||!Hj(r,2112)&&!Hj(i,2112))l=Wt;else if(u(r,i)){switch(c){case 50:case 73:m();break;case 43:case 68:M<3&&Ro(s,_a.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}l=$t}else m(u),l=Et;if(o&&a)switch(p(l),c){case 48:case 71:case 49:case 72:case 50:case 73:const r=we(n);"number"==typeof r.value&&Math.abs(r.value)>=32&&Bo(VE(rh(n.parent.parent)),s||t,_a.This_operation_can_be_simplified_This_shift_is_identical_to_0_1_2,Gd(e),Fa(c),r.value%32)}return l}case 40:case 65:if(r===dn||i===dn)return dn;let h;if(Kj(r,402653316)||Kj(i,402653316)||(r=eO(r,e),i=eO(i,n)),Kj(r,296,!0)&&Kj(i,296,!0)?h=Wt:Kj(r,2112,!0)&&Kj(i,2112,!0)?h=$t:Kj(r,402653316,!0)||Kj(i,402653316,!0)?h=Vt:(Hc(r)||Hc(i))&&(h=Gc(r)||Gc(i)?Et:wt),h&&!d(c))return h;if(!h){const e=402655727;return m(((t,n)=>Kj(t,e)&&Kj(n,e))),wt}return 65===c&&p(h),h;case 30:case 32:case 33:case 34:return d(c)&&(r=rw(eO(r,e)),i=rw(eO(i,n)),f(((e,t)=>{if(Hc(e)||Hc(t))return!0;const n=IS(e,yn),r=IS(t,yn);return n&&r||!n&&!r&&jS(e,t)}))),sn;case 35:case 36:case 37:case 38:if(!(o&&64&o)){if((Ol(e)||Ol(n))&&(!Em(e)||37===c||38===c)){const e=35===c||37===c;Ro(s,_a.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(ah(n)),o=g(ah(r));if(i||o){const a=Ro(e,_a.This_condition_will_always_return_0,Fa(37===t||35===t?97:112));if(i&&o)return;const s=38===t||36===t?Fa(54):"",c=i?r:n,l=ah(c);sT(a,Rp(c,_a.Did_you_mean_0,`${s}Number.isNaN(${sb(l)?jp(l):"..."})`))}}(s,c,e,n),f(((e,t)=>iR(e,t)||iR(t,e)))}return sn;case 104:return function(e,t,n,r,i){if(n===dn||r===dn)return dn;!Hc(n)&&Gj(n,402784252)&&Ro(e,_a.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),_n.assert(gb(e.parent));const o=TL(e.parent,void 0,i);return o===li?dn:(RS(Zg(o),sn,t,_a.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),sn)}(e,n,r,i,o);case 103:return Zj(e,n,r,i);case 56:case 77:{const e=tD(r,4194304)?jb([(_=G?r:nw(i),JF(_,bw)),i]):r;return 77===c&&p(i),e}case 57:case 76:{const e=tD(r,8388608)?jb([Tw(hw(r)),i],2):r;return 76===c&&p(i),e}case 61:case 78:{const e=tD(r,262144)?jb([Tw(r),i],2):r;return 78===c&&p(i),e}case 64:const y=uF(e.parent)?tg(e.parent):0;return function(e,t){if(2===e)for(const e of Bp(t)){const t=F_(e);if(t.symbol&&32&t.symbol.flags){const t=e.escapedName,n=Ue(e.valueDeclaration,t,788968,void 0,!1);(null==n?void 0:n.declarations)&&n.declarations.some(DP)&&(ea(n,_a.Duplicate_identifier_0,mc(t),e),ea(e,_a.Duplicate_identifier_0,mc(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=ys(e),i=$m(n);return!!i&&GD(i)&&!!(null==(r=null==t?void 0:t.exports)?void 0:r.size);default:return!1}}(y)?(524288&i.flags&&(2===y||6===y||eT(i)||ZN(i)||1&hx(i))||p(i),r):(p(i),i);case 28:if(!j.allowUnreachableCode&&rR(e)&&!(217===(l=e.parent).parent.kind&&CN(l.left)&&"0"===l.left.text&&(YD(l.parent.parent)&&l.parent.parent.expression===l.parent||215===l.parent.parent.kind)&&(Tx(l.right)||VN(l.right)&&"eval"===l.right.escapedText))){const t=yd(e),n=Qa(t.text,e.pos);t.parseDiagnostics.some((e=>e.code===_a.JSX_expressions_must_have_one_parent_element.code&&Ps(e,n)))||Ro(e,_a.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 Kj(e,2112)&&Kj(t,2112)}function d(t){const o=$j(r,12288)?e:$j(i,12288)?n:void 0;return!o||(Ro(o,_a.The_0_operator_cannot_be_applied_to_type_symbol,Fa(t)),!1)}function p(i){tb(c)&&a((function(){let o=r;KJ(t.kind)&&211===e.kind&&(o=nO(e,void 0,!0));if(qj(e,_a.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,_a.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let t;if(_e&&XD(e)&&Hj(i,32768)){const n=Wc(ER(e.expression),e.name.escapedText);AT(i,n)&&(t=_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}MS(i,o,e,n,t)}}))}function f(e){return!e(r,i)&&(m(e),!0)}function m(e){let n=!1;const o=s||t;if(e){const t=fM(r),o=fM(i);n=!(t===r&&o===i)&&!(!t||!o)&&e(t,o)}let a=r,c=i;!n&&e&&([a,c]=function(e,t,n){let r=e,i=t;const o=nw(e),a=nw(t);n(o,a)||(r=o,i=a);return[r,i]}(r,i,e));const[l,_]=dc(a,c);(function(e,n,r,i){switch(t.kind){case 37:case 35:case 38:case 36:return zo(e,n,_a.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,r,i);default:return}})(o,n,l,_)||zo(o,n,_a.Operator_0_cannot_be_applied_to_types_1_and_2,Fa(t.kind),l,_)}function g(e){if(VN(e)&&"NaN"===e.escapedText){const t=Wr||(Wr=Wy("NaN",!1));return!!t&&t===ON(e)}return!1}}function sR(e){const t=e.parent;return nF(t)&&sR(t)||QD(t)&&t.argumentExpression===e}function cR(e){const t=[e.head.text],n=[];for(const r of e.templateSpans){const e=IR(r.expression);$j(e,12288)&&Ro(r.expression,_a.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(IS(e,vn)?e:Vt)}const r=215!==e.parent.kind&&we(e).value;return r?gk(kk(r)):vR(e)||sR(e)||EF(MA(e,void 0)||Lt,lR)?_x(t,n):Vt}function lR(e){return!!(134217856&e.flags||58982400&e.flags&&Hj(ff(e)||Lt,402653316))}function _R(e,t,n,r){const i=function(e){return IE(e)&&!wE(e.parent)?e.parent.parent:e}(e);JA(i,t,!1),function(e,t){Ii[Li]=e,Oi[Li]=t,Li++}(i,n);const o=IR(e,1|r|(n?2:0));n&&n.intraExpressionInferenceSites&&(n.intraExpressionInferenceSites=void 0);const a=Hj(o,2944)&&hR(o,jA(t,e,void 0))?hk(o):o;return Li--,zA(),a}function uR(e,t){if(t)return IR(e,t);const n=sa(e);if(!n.resolvedType){const r=ki,i=ri;ki=Si,ri=void 0,n.resolvedType=IR(e,t),ri=i,ki=r}return n.resolvedType}function dR(e){return 216===(e=ah(e,!0)).kind||234===e.kind||cA(e)}function pR(e,t,n){const r=Vm(e);if(Em(e)){const n=tC(e);if(n)return UL(r,n,t)}const i=PR(r)||(n?_R(r,n,void 0,t||0):uR(r,t));if(cD(HD(e)?nc(e):e)){if(206===e.name.kind&&TN(i))return function(e,t){let n;for(const r of t.elements)if(r.initializer){const t=fR(r);t&&!fm(e,t)&&(n=re(n,r))}if(!n)return e;const r=Ku();for(const t of Bp(e))r.set(t.escapedName,t);for(const e of n){const t=$o(16777220,fR(e));t.links.type=Ul(e,!1,!1),r.set(t.escapedName,t)}const i=zs(e.symbol,r,s,s,qm(e));return i.objectFlags=e.objectFlags,i}(i,e.name);if(207===e.name.kind&&lw(i))return function(e,t){if(12&e.target.combinedFlags||my(e)>=t.elements.length)return e;const n=t.elements,r=wb(e).slice(),i=e.target.elementFlags.slice();for(let t=my(e);t<n.length;t++){const e=n[t];(t<n.length-1||208!==e.kind||!e.dotDotDotToken)&&(r.push(!hF(e)&&YA(e)?Ul(e,!1,!1):wt),i.push(2),hF(e)||YA(e)||$w(e,wt))}return ob(r,i,e.target.readonly)}(i,e.name)}return i}function fR(e){const t=Yb(e.propertyName||e.name);return cC(t)?lC(t):void 0}function mR(e,t){const n=gR(e,t);if(Em(e)){if(WC(n))return $w(e,wt),wt;if($C(n))return $w(e,cr),cr}return n}function gR(e,t){return 6&Uq(e)||tf(e)?t:iw(t)}function hR(e,t){if(t){if(3145728&t.flags){return V(t.types,(t=>hR(e,t)))}if(58982400&t.flags){const n=ff(t)||Lt;return Hj(n,4)&&Hj(e,128)||Hj(n,8)&&Hj(e,256)||Hj(n,64)&&Hj(e,2048)||Hj(n,4096)&&Hj(e,8192)||hR(e,n)}return!!(406847616&t.flags&&Hj(e,128)||256&t.flags&&Hj(e,256)||2048&t.flags&&Hj(e,2048)||512&t.flags&&Hj(e,512)||8192&t.flags&&Hj(e,8192))}return!1}function vR(e){const t=e.parent;return W_(t)&&kl(t.type)||cA(t)&&kl(lA(t))||RL(e)&&of(MA(e,0))||(nF(t)||KD(t)||mF(t))&&vR(t)||(zE(t)||qE(t)||wF(t))&&vR(t.parent)}function bR(e,t,n){const r=IR(e,t,n);return vR(e)||If(e)?hk(r):dR(e)?r:sw(r,jA(MA(e,void 0),e,void 0))}function xR(e,t){return 167===e.name.kind&&nI(e.name),bR(e.initializer,t)}function kR(e,t){Cq(e),167===e.name.kind&&nI(e.name);return SR(e,Rj(e,t),t)}function SR(e,t,n){if(n&&10&n){const r=VO(t,0,!0),i=VO(t,1,!0),o=r||i;if(o&&o.typeParameters){const t=LA(e,2);if(t){const i=VO(Tw(t),r?0:1,!1);if(i&&!i.typeParameters){if(8&n)return TR(e,n),Ln;const t=UA(e),r=t.signature&&Zg(t.signature),a=r&&UO(r);if(a&&!a.typeParameters&&!h(t.inferences,CR)){const e=function(e,t){const n=[];let r,i;for(const o of t){const t=o.symbol.escapedName;if(NR(e.inferredTypeParameters,t)||NR(n,t)){const a=js($o(262144,DR($(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=Qk(r,i);for(const t of i)t.mapper=e}return n}(t,o.typeParameters),n=Sh(o,e),r=D(t.inferences,(e=>eN(e.typeParameter)));if(Kw(n,i,((e,t)=>{xN(r,e,t,0,!0)})),V(r,CR)&&(Gw(n,i,((e,t)=>{xN(r,e,t)})),!function(e,t){for(let n=0;n<e.length;n++)if(CR(e[n])&&CR(t[n]))return!0;return!1}(t.inferences,r)))return function(e,t){for(let n=0;n<e.length;n++)!CR(e[n])&&CR(t[n])&&(e[n]=t[n])}(t.inferences,r),t.inferredTypeParameters=$(t.inferredTypeParameters,e),Ah(n)}return Ah(WO(o,i,t),A(Oi,(e=>e&&D(e.inferences,(e=>e.typeParameter)))).slice())}}}}return t}function TR(e,t){if(2&t){UA(e).flags|=4}}function CR(e){return!(!e.candidates&&!e.contraCandidates)}function wR(e){return!!(e.candidates||e.contraCandidates||bf(e.typeParameter))}function NR(e,t){return V(e,(e=>e.symbol.escapedName===t))}function DR(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(!NR(e,n))return n}}function FR(e){const t=qO(e);if(t&&!t.typeParameters)return Zg(t)}function ER(e){const t=PR(e);if(t)return t;if(268435456&e.flags&&ri){const t=ri[$B(e)];if(t)return t}const n=wi,r=IR(e,64);if(wi!==n){(ri||(ri=[]))[$B(e)]=r,DT(e,268435456|e.flags)}return r}function PR(e){let t=ah(e,!0);if(cA(t)){const e=lA(t);if(!kl(e))return Bk(e)}if(t=ah(e),cF(t)){const e=PR(t.expression);return e?pM(e):void 0}return!YD(t)||108===t.expression.kind||Lm(t,!0)||EL(t)?W_(t)&&!kl(t.type)?Bk(t.type):Il(e)||a_(e)?IR(e):void 0:gl(t)?function(e){const t=IR(e.expression),n=Dw(t,e.expression),r=FR(t);return r&&Nw(r,e,n!==t)}(t):FR($I(t.expression))}function AR(e){const t=sa(e);if(t.contextFreeType)return t.contextFreeType;JA(e,wt,!1);const n=t.contextFreeType=IR(e,4);return zA(),n}function IR(n,i,o){var c,l;null==(c=$n)||c.push($n.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});const _=r;r=n,S=0;const u=function(e,n,r){const i=e.kind;if(t)switch(i){case 231:case 218:case 219:t.throwIfCancellationRequested()}switch(i){case 80:return UP(e,n);case 81:return aO(e);case 110:return XP(e);case 108:return YP(e);case 106:return Ut;case 15:case 11:return dN(e)?Ft:gk(kk(e.text));case 9:return Mq(e),gk(wk(+e.text));case 10:return function(e){const t=zD(e.parent)||lF(e.parent)&&zD(e.parent.parent);if(!t&&M<7&&Lq(e,_a.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))return!0}(e),gk(Nk({negative:!1,base10Value:gT(e.text)}));case 112:return tn;case 97:return Xt;case 228:return cR(e);case 14:return QA(e);case 209:return ZA(e,n,r);case 210:return sI(e,n);case 211:return nO(e,n);case 166:return rO(e,n);case 212:return EO(e,n);case 213:if(102===e.expression.kind)return PL(e);case 214:return function(e,t){var n,r,i;mq(e,e.typeArguments);const o=TL(e,void 0,t);if(o===li)return dn;if(DL(o,e),108===e.expression.kind)return ln;if(214===e.kind){const t=o.declaration;if(t&&176!==t.kind&&180!==t.kind&&185!==t.kind&&(!lP(t)||176!==(null==(r=null==(n=Wg(t))?void 0:n.parent)?void 0:r.kind))&&!Ng(t)&&!CL(t))return ie&&Ro(e,_a.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),wt}if(Em(e)&&LL(e))return Mg(e.arguments[0]);const a=Zg(o);if(12288&a.flags&&EL(e))return Ak(rh(e.parent));if(213===e.kind&&!e.questionDotToken&&244===e.parent.kind&&16384&a.flags&&Kg(o))if(lb(e.expression)){if(!kE(e)){const t=Ro(e.expression,_a.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);xE(e.expression,t)}}else Ro(e.expression,_a.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);if(Em(e)){const t=NL(e,!1);if(null==(i=null==t?void 0:t.exports)?void 0:i.size){const e=zs(t,t.exports,s,s,s);return e.objectFlags|=4096,Vb([a,e])}}return a}(e,n);case 215:return jL(e);case 217:return function(e,t){if(Du(e)){if(ZT(e))return UL(e.expression,eC(e),t);if(cA(e))return ML(e,t)}return IR(e.expression,t)}(e,n);case 231:return function(e){return xJ(e),ez(e),function(e){if(e.name)return;const t=dA(e);if(!Kh(t))return;let n;n=!q&&M<Ni.ClassAndClassElementDecorators&&gm(!1,e)?pe(Nc(e))??e:bJ(e);n&&(sq(n,4194304),(zE(t)||uD(t)||HD(t))&&aD(t.name)&&sq(n,8388608))}(e),F_(hs(e))}(e);case 218:case 219:return Rj(e,n);case 221:return function(e){return IR(e.expression),mo}(e);case 216:case 234:return function(e,t){if(216===e.kind){const t=yd(e);t&&To(t.fileName,[".cts",".mts"])&&Lq(e,_a.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return ML(e,t)}(e,n);case 235:return JL(e);case 233:return zL(e);case 238:return function(e){return QJ(e.type),UL(e.expression,e.type)}(e);case 236:return VL(e);case 220:return Uj(e);case 222:return function(e){return ez(e),Rt}(e);case 223:return function(e){a((()=>Vj(e)));const t=IR(e.expression),n=sM(t,!0,e,_a.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return n!==t||Gc(n)||3&t.flags||Mo(!1,Rp(e,_a.await_has_no_effect_on_the_type_of_this_expression)),n}(e);case 224:return function(e){const t=IR(e.operand);if(t===dn)return dn;switch(e.operand.kind){case 9:switch(e.operator){case 41:return gk(wk(-e.operand.text));case 40:return gk(wk(+e.operand.text))}break;case 10:if(41===e.operator)return gk(Nk({negative:!0,base10Value:gT(e.operand.text)}))}switch(e.operator){case 40:case 41:case 55:return eO(t,e.operand),$j(t,12288)&&Ro(e.operand,_a.The_0_operator_cannot_be_applied_to_type_symbol,Fa(e.operator)),40===e.operator?($j(t,2112)&&Ro(e.operand,_a.Operator_0_cannot_be_applied_to_type_1,Fa(e.operator),lc(nw(t))),Wt):Wj(t);case 54:cB(t,e.operand);const n=eD(t,12582912);return 4194304===n?Xt:8388608===n?tn:sn;case 46:case 47:return Mj(e.operand,eO(t,e.operand),_a.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&qj(e.operand,_a.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,_a.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Wj(t)}return Et}(e);case 225:return function(e){const t=IR(e.operand);return t===dn?dn:(Mj(e.operand,eO(t,e.operand),_a.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&qj(e.operand,_a.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,_a.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Wj(t))}(e);case 226:return ve(e,n);case 227:return function(e,t){const n=_B(e.condition,t);return sB(e.condition,n,e.whenTrue),jb([IR(e.whenTrue,t),IR(e.whenFalse,t)],2)}(e,n);case 230:return function(e,t){return M<Ni.SpreadElements&&sq(e,j.downlevelIteration?1536:1024),fB(33,IR(e.expression,t),jt,e.expression)}(e,n);case 232:return Rt;case 229:return function(e){a((function(){16384&e.flags||Iq(e,_a.A_yield_expression_is_only_allowed_in_a_generator_body),_A(e)&&Ro(e,_a.yield_expressions_cannot_be_used_in_a_parameter_initializer)}));const t=Kf(e);if(!t)return wt;const n=Oh(t);if(!(1&n))return wt;const r=!!(2&n);e.asteriskToken&&(r&&M<Ni.AsyncGenerators&&sq(e,26624),!r&&M<Ni.Generators&&j.downlevelIteration&&sq(e,256));let i=th(t);i&&1048576&i.flags&&(i=OF(i,(e=>MR(e,n,void 0))));const o=i&&iJ(i,r),s=o&&o.yieldType||wt,c=o&&o.nextType||wt,l=e.expression?IR(e.expression):Rt,_=Pj(e,l,c,r);if(i&&_&&MS(_,s,e.expression||e,e.expression),e.asteriskToken)return gB(r?19:17,1,l,e.expression)||wt;if(i)return GB(2,i,r)||wt;let u=pA(2,t);return u||(u=wt,a((()=>{if(ie&&!IT(e)){const t=MA(e,void 0);t&&!Hc(t)||Ro(e,_a.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}}))),u}(e);case 237:return function(e){return e.isSpread?Rx(e.type,Wt):e.type}(e);case 294:return jI(e,n);case 284:case 285:return function(e){return ez(e),FI(e)||wt}(e);case 288:return function(e){II(e.openingFragment);const t=yd(e);!Kk(j)||!j.jsxFactory&&!t.pragmas.has("jsx")||j.jsxFragmentFactory||t.pragmas.has("jsxfrag")||Ro(e,j.jsxFactory?_a.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:_a.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),hI(e);const n=FI(e);return Gc(n)?wt:n}(e);case 292:return function(e,t){return gI(e.parent,t)}(e,n);case 286:_n.fail("Shouldn't ever directly check a JsxOpeningElement")}return Et}(n,i,o),d=SR(n,u,i);return Xj(d)&&function(t,n){const r=211===t.parent.kind&&t.parent.expression===t||212===t.parent.kind&&t.parent.expression===t||(80===t.kind||166===t.kind)&&pz(t)||186===t.parent.kind&&t.parent.exprName===t||281===t.parent.kind;r||Ro(t,_a.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query);if(j.isolatedModules||j.verbatimModuleSyntax&&r&&!Ue(t,cb(t),2097152,void 0,!1,!0)){_n.assert(!!(128&n.symbol.flags));const r=n.symbol.valueDeclaration,i=e.getRedirectReferenceForResolutionFromSourceOfProject(yd(r).resolvedPath);!(33554432&r.flags)||xT(t)||i&&Ek(i.commandLine.options)||Ro(t,_a.Cannot_access_ambient_const_enums_when_0_is_enabled,Re)}}(n,d),r=_,null==(l=$n)||l.pop(),d}function OR(e){lq(e),e.expression&&Iq(e.expression,_a.Type_expected),QJ(e.constraint),QJ(e.default);const t=ku(hs(e));ff(t),function(e){return yf(e)!==Rn}(t)||Ro(e.default,_a.Type_parameter_0_has_a_circular_default,lc(t));const n=rf(t),r=vf(t);n&&r&&RS(r,Td(yS(n,Zk(t,r)),r),e.default,_a.Type_0_does_not_satisfy_the_constraint_1),ez(e),a((()=>gJ(e.name,_a.Type_parameter_name_cannot_be_0)))}function LR(e){lq(e),ZM(e);const t=Kf(e);Dv(e,31)&&(176===t.kind&&Nd(t.body)||Ro(e,_a.A_parameter_property_is_only_allowed_in_a_constructor_implementation),176===t.kind&&VN(e.name)&&"constructor"===e.name.escapedText&&Ro(e.name,_a.constructor_cannot_be_used_as_a_parameter_property_name)),!e.initializer&&QT(e)&&k_(e.name)&&t.body&&Ro(e,_a.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),e.name&&VN(e.name)&&("this"===e.name.escapedText||"new"===e.name.escapedText)&&(0!==t.parameters.indexOf(e)&&Ro(e,_a.A_0_parameter_must_be_the_first_parameter,e.name.escapedText),176!==t.kind&&180!==t.kind&&185!==t.kind||Ro(e,_a.A_constructor_cannot_have_a_this_parameter),219===t.kind&&Ro(e,_a.An_arrow_function_cannot_have_a_this_parameter),177!==t.kind&&178!==t.kind||Ro(e,_a.get_and_set_accessors_cannot_declare_this_parameters)),!e.dotDotDotToken||k_(e.name)||IS(Vf(F_(e.symbol)),_r)||Ro(e,_a.A_rest_parameter_must_be_of_an_array_type)}function jR(e,t,n){for(const r of e.elements){if(hF(r))continue;const e=r.name;if(80===e.kind&&e.escapedText===n)return Ro(t,_a.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,n),!0;if((207===e.kind||206===e.kind)&&jR(e,t,n))return!0}}function RR(e){181===e.kind?function(e){lq(e)||function(e){const t=e.parameters[0];if(1!==e.parameters.length)return Lq(t?t.name:e,_a.An_index_signature_must_have_exactly_one_parameter);if(uq(e.parameters,_a.An_index_signature_cannot_have_a_trailing_comma),t.dotDotDotToken)return Lq(t.dotDotDotToken,_a.An_index_signature_cannot_have_a_rest_parameter);if(Cv(t))return Lq(t.name,_a.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(t.questionToken)return Lq(t.questionToken,_a.An_index_signature_parameter_cannot_have_a_question_mark);if(t.initializer)return Lq(t.name,_a.An_index_signature_parameter_cannot_have_an_initializer);if(!t.type)return Lq(t.name,_a.An_index_signature_parameter_must_have_a_type_annotation);const n=Bk(t.type);if(EF(n,(e=>!!(8576&e.flags)))||Fx(n))return Lq(t.name,_a.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead);if(!IF(n,Gh))return Lq(t.name,_a.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type);if(!e.type)return Lq(e,_a.An_index_signature_must_have_a_type_annotation)}(e)}(e):184!==e.kind&&262!==e.kind&&185!==e.kind&&179!==e.kind&&176!==e.kind&&180!==e.kind||fq(e);const t=Oh(e);4&t||(!(3&~t)&&M<Ni.AsyncGenerators&&sq(e,6144),2==(3&t)&&M<Ni.AsyncFunctions&&sq(e,64),3&t&&M<Ni.Generators&&sq(e,128)),hJ(_l(e)),function(e){const t=C(ol(e),SP);if(!l(t))return;const n=Em(e),r=new Set,i=new Set;_(e.parameters,(({name:e},t)=>{VN(e)&&r.add(e.escapedText),k_(e)&&i.add(t)}));const o=jg(e);if(o){const e=t.length-1,o=t[e];n&&o&&VN(o.name)&&o.typeExpression&&o.typeExpression.type&&!r.has(o.name.escapedText)&&!i.has(e)&&!RC(Bk(o.typeExpression.type))&&Ro(o.name,_a.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,gc(o.name))}else _(t,(({name:e,isNameFirst:t},o)=>{i.has(o)||VN(e)&&r.has(e.escapedText)||(oD(e)?n&&Ro(e,_a.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,jp(e),jp(e.left)):t||Bo(n,e,_a.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,gc(e)))}))}(e),_(e.parameters,LR),e.type&&QJ(e.type),a((function(){!function(e){if(M>=2||!Mu(e)||33554432&e.flags||wd(e.body))return;_(e.parameters,(e=>{e.name&&!k_(e.name)&&e.name.escapedText===Le.escapedName&&Lo("noEmit",e,_a.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)}))}(e);let t=gv(e),n=t;if(Em(e)){const r=tl(e);if(r&&r.typeExpression&&kD(r.typeExpression.type)){const e=qO(Bk(r.typeExpression));e&&e.declaration&&(t=gv(e.declaration),n=r.typeExpression.type)}}if(ie&&!t)switch(e.kind){case 180:Ro(e,_a.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:Ro(e,_a.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(t&&n){const r=Oh(e);if(1==(5&r)){const e=Bk(t);e===ln?Ro(n,_a.A_generator_cannot_have_a_void_type_annotation):MR(e,r,n)}else 2==(3&r)&&function(e,t,n){const r=Bk(t);if(M>=2){if(Gc(r))return;const e=av(!0);if(e!==On&&!R_(r,e))return void o(_a.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,lc(fM(r)||ln))}else{if(bP(e,5),Gc(r))return;const a=_m(t);if(void 0===a)return void o(_a.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,lc(r));const s=Xa(a,111551,!0),c=s?F_(s):Et;if(Gc(c))return void(80===a.kind&&"Promise"===a.escapedText&&B_(r)===av(!1)?Ro(n,_a.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(_a.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,jp(a)));const l=(i=!0,vr||(vr=Gy("PromiseConstructorLike",0,i))||Nn);if(l===Nn)return void o(_a.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,jp(a));const _=_a.Type_0_is_not_a_valid_async_function_return_type_in_ES5_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!RS(c,l,n,_,(()=>t===n?void 0:ek(void 0,_a.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type))))return;const u=a&&cb(a),d=ca(e.locals,u.escapedText,111551);if(d)return void Ro(d.valueDeclaration,_a.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,gc(u),jp(a))}var i;function o(e,t,n,r){if(t===n)Ro(n,e,r);else{sT(Ro(n,_a.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type),Rp(t,e,r))}}sM(r,!1,e,_a.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(e,t,n)}181!==e.kind&&317!==e.kind&&wM(e)}))}function MR(e,t,n){const r=GB(0,e,!!(2&t))||wt;return RS(Ej(r,GB(1,e,!!(2&t))||r,GB(2,e,!!(2&t))||Lt,!!(2&t)),e,n)}function BR(e){const t=new Map;for(const n of e.members)if(171===n.kind){let e;const r=n.name;switch(r.kind){case 11:case 9:e=r.text;break;case 80:e=gc(r);break;default:continue}t.get(e)?(Ro(Cc(n.symbol.valueDeclaration),_a.Duplicate_identifier_0,e),Ro(n.name,_a.Duplicate_identifier_0,e)):t.set(e,!0)}}function JR(e){if(264===e.kind){const t=hs(e);if(t.declarations&&t.declarations.length>0&&t.declarations[0]!==e)return}const t=Ih(hs(e));if(null==t?void 0:t.declarations){const e=new Map;for(const n of t.declarations)bD(n)&&1===n.parameters.length&&n.parameters[0].type&&NF(Bk(n.parameters[0].type),(t=>{const r=e.get(Nb(t));r?r.declarations.push(n):e.set(Nb(t),{type:t,declarations:[n]})}));e.forEach((e=>{if(e.declarations.length>1)for(const t of e.declarations)Ro(t,_a.Duplicate_index_signature_for_type_0,lc(e.type))}))}}function zR(e){lq(e)||function(e){if(aD(e.name)&&uF(e.name.expression)&&103===e.name.expression.operatorToken.kind)return Lq(e.parent.members[0],_a.A_mapped_type_may_not_declare_properties_or_methods);if(u_(e.parent)){if(NN(e.name)&&"constructor"===e.name.text)return Lq(e.name,_a.Classes_may_not_have_a_field_named_constructor);if(Tq(e.name,_a.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(M<2&&WN(e.name))return Lq(e.name,_a.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(M<2&&p_(e))return Lq(e.name,_a.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(p_(e)&&bq(e.questionToken,_a.An_accessor_property_cannot_be_declared_optional))return!0}else if(264===e.parent.kind){if(Tq(e.name,_a.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,_D),e.initializer)return Lq(e.initializer,_a.An_interface_property_cannot_have_an_initializer)}else if(wD(e.parent)){if(Tq(e.name,_a.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,_D),e.initializer)return Lq(e.initializer,_a.A_type_literal_property_cannot_have_an_initializer)}33554432&e.flags&&Nq(e);if(uD(e)&&e.exclamationToken&&(!u_(e.parent)||!e.type||e.initializer||33554432&e.flags||Fv(e)||Av(e))){const t=e.initializer?_a.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:e.type?_a.A_definite_assignment_assertion_is_not_permitted_in_this_context:_a.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Lq(e.exclamationToken,t)}}(e)||yq(e.name),ZM(e),qR(e),Dv(e,64)&&172===e.kind&&e.initializer&&Ro(e,_a.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,Pp(e.name))}function qR(e){if(WN(e.name)&&(M<Ni.PrivateNamesAndClassStaticBlocks||M<Ni.ClassAndClassElementDecorators||!U)){for(let t=Fp(e);t;t=Fp(t))sa(t).flags|=1048576;if(gF(e.parent)){const t=WP(e.parent);t&&(sa(e.name).flags|=32768,sa(t).flags|=4096)}}}function UR(e){RR(e),function(e){const t=Em(e)?hv(e):void 0,n=e.typeParameters||t&&pe(t);if(n){const t=n.pos===n.end?n.pos:Qa(yd(e).text,n.pos);return Oq(e,t,n.end-t,_a.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(e)||function(e){const t=e.type||gv(e);if(t)Lq(t,_a.Type_annotation_cannot_appear_on_a_constructor_declaration)}(e),QJ(e.body);const t=hs(e),n=$u(t,e.kind);function r(e){return!!Kl(e)||172===e.kind&&!Fv(e)&&!!e.initializer}e===n&&rM(t),wd(e.body)||a((function(){const t=e.parent;if(vh(t)){$P(e.parent,t);const n=KP(t),i=HP(e.body);if(i){n&&Ro(i,_a.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);if(!W&&(V(e.parent.members,r)||V(e.parameters,(e=>Dv(e,31)))))if(function(e,t){const n=rh(e.parent);return PF(n)&&n.parent===t}(i,e.body)){let t;for(const n of e.body.statements){if(PF(n)&&cf(uA(n.expression))){t=n;break}if(VR(n))break}void 0===t&&Ro(e,_a.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 Ro(i,_a.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||Ro(e,_a.Constructors_for_derived_classes_must_contain_a_super_call)}}))}function VR(e){return 108===e.kind||110===e.kind||!tm(e)&&!!RI(e,VR)}function WR(e){VN(e.name)&&"constructor"===gc(e.name)&&u_(e.parent)&&Ro(e.name,_a.Class_constructor_may_not_be_an_accessor),a((function(){fq(e)||function(e){if(!(33554432&e.flags)&&187!==e.parent.kind&&264!==e.parent.kind){if(M<2&&WN(e.name))return Lq(e.name,_a.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(void 0===e.body&&!Dv(e,64))return Oq(e,e.end-1,1,_a._0_expected,"{")}if(e.body){if(Dv(e,64))return Lq(e,_a.An_abstract_accessor_cannot_have_an_implementation);if(187===e.parent.kind||264===e.parent.kind)return Lq(e.body,_a.An_implementation_cannot_be_declared_in_ambient_contexts)}if(e.typeParameters)return Lq(e.name,_a.An_accessor_cannot_have_type_parameters);if(!function(e){return Sq(e)||e.parameters.length===(177===e.kind?0:1)}(e))return Lq(e.name,177===e.kind?_a.A_get_accessor_cannot_have_parameters:_a.A_set_accessor_must_have_exactly_one_parameter);if(178===e.kind){if(e.type)return Lq(e.name,_a.A_set_accessor_cannot_have_a_return_type_annotation);const t=_n.checkDefined(ov(e),"Return value does not match parameter count assertion.");if(t.dotDotDotToken)return Lq(t.dotDotDotToken,_a.A_set_accessor_cannot_have_rest_parameter);if(t.questionToken)return Lq(t.questionToken,_a.A_set_accessor_cannot_have_an_optional_parameter);if(t.initializer)return Lq(e.name,_a.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}(e)||yq(e.name);SM(e),RR(e),177===e.kind&&!(33554432&e.flags)&&Nd(e.body)&&512&e.flags&&(1024&e.flags||Ro(e.name,_a.A_get_accessor_must_return_a_value));167===e.name.kind&&nI(e.name);if(_d(e)){const t=hs(e),n=$u(t,177),r=$u(t,178);if(n&&r&&!(1&Jz(n))){sa(n).flags|=1;const e=Jv(n),t=Jv(r);(64&e)!=(64&t)&&(Ro(n.name,_a.Accessors_must_both_be_abstract_or_non_abstract),Ro(r.name,_a.Accessors_must_both_be_abstract_or_non_abstract)),(4&e&&!(6&t)||2&e&&!(2&t))&&(Ro(n.name,_a.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),Ro(r.name,_a.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const t=g_(hs(e));177===e.kind&&jj(e,t)})),QJ(e.body),qR(e)}function $R(e,t,n){return e.typeArguments&&n<e.typeArguments.length?Bk(e.typeArguments[n]):HR(e,t)[n]}function HR(e,t){return Eg(D(e.typeArguments,Bk),t,Cg(t),Em(e))}function KR(e,t){let n,r,i=!0;for(let o=0;o<t.length;o++){const a=rf(t[o]);a&&(n||(n=HR(e,t),r=Qk(t,n)),i=i&&RS(n[o],yS(a,r),e.typeArguments[o],_a.Type_0_does_not_satisfy_the_constraint_1))}return i}function GR(e){const t=Bk(e);if(!Gc(t)){const n=sa(e).resolvedSymbol;if(n)return function(e,t){if(!Gc(e))return 524288&t.flags&&aa(t).typeParameters||(4&hx(e)?e.target.localTypeParameters:void 0)}(t,n)}}function XR(e){if(mq(e,e.typeArguments),183===e.kind&&!Em(e)&&!Im(e)&&e.typeArguments&&e.typeName.end!==e.typeArguments.pos){const t=yd(e);25===Gp(t,e.typeName.end)&&Oq(e,Qa(t.text,e.typeName.end),1,_a.JSDoc_types_can_only_be_used_inside_documentation_comments)}_(e.typeArguments,QJ),QR(e)}function QR(e){if(!Gc(Bk(e))){e.typeArguments&&a((()=>{const t=GR(e);t&&KR(e,t)}));const t=sa(e).resolvedSymbol;t&&V(t.declarations,(e=>WT(e)&&!!(536870912&e.flags)))&&Wo(FL(e),t.declarations,t.escapedName)}}function YR(e,t){if(!(8388608&e.flags))return e;const n=e.objectType,r=e.indexType,i=Tp(n)&&2===Np(n)?Qb(n,0):rx(n,0),o=!!Qm(n,Wt);if(IF(r,(e=>IS(e,i)||o&&Bm(e,Wt))))return 212===t.kind&&Qg(t)&&32&hx(n)&&1&xp(n)&&Ro(t,_a.Index_signature_in_type_0_only_permits_reading,lc(n)),e;if(Ex(n)){const e=vx(r,t);if(e){const r=NF(Tf(n),(t=>fm(t,e)));if(r&&6&ox(r))return Ro(t,_a.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,mc(e)),Et}}return Ro(t,_a.Type_0_cannot_be_used_to_index_type_1,lc(r),lc(n)),Et}function ZR(e){!function(e){var t;if(null==(t=e.members)?void 0:t.length)Lq(e.members[0],_a.A_mapped_type_may_not_declare_properties_or_methods)}(e),QJ(e.typeParameter),QJ(e.nameType),QJ(e.type),e.type||$w(e,wt);const t=qx(e),n=fp(t);if(n)RS(n,hn,e.nameType);else{RS(lp(t),hn,ul(e.typeParameter))}}function eM(e){!function(e){if(158===e.operator){if(155!==e.type.kind)return Lq(e.type,_a._0_expected,Fa(155));let t=nh(e.parent);if(Em(t)&&HE(t)){const e=Vg(t);e&&(t=Ag(e)||e)}switch(t.kind){case 260:const n=t;if(80!==n.name.kind)return Lq(e,_a.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!Af(n))return Lq(e,_a.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(2&n.parent.flags))return Lq(t.name,_a.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!Fv(t)||!Lv(t))return Lq(t.name,_a.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Dv(t,8))return Lq(t.name,_a.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:Lq(e,_a.unique_symbol_types_are_not_allowed_here)}}else if(148===e.operator&&188!==e.type.kind&&189!==e.type.kind)Iq(e,_a.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Fa(155))}(e),QJ(e.type)}function tM(e){return(Nv(e,2)||Kl(e))&&!!(33554432&e.flags)}function nM(e,t){let n=qq(e);if(264!==e.parent.kind&&263!==e.parent.kind&&231!==e.parent.kind&&33554432&e.flags){const t=Dp(e);!(t&&128&t.flags)||128&n||tE(e.parent)&&eE(e.parent.parent)&&dp(e.parent.parent)||(n|=32),n|=128}return n&t}function rM(e){a((()=>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=nM(t(e,n),r);Be(e,(e=>yd(e).fileName)).forEach((e=>{const o=nM(t(e,n),r);for(const t of e){const e=nM(t,r)^i,n=nM(t,r)^o;32&n?Ro(Cc(t),_a.Overload_signatures_must_all_be_exported_or_non_exported):128&n?Ro(Cc(t),_a.Overload_signatures_must_all_be_ambient_or_non_ambient):6&e?Ro(Cc(t)||t,_a.Overload_signatures_must_all_be_public_private_or_protected):64&e&&Ro(Cc(t),_a.Overload_signatures_must_all_be_abstract_or_non_abstract)}}))}}function r(e,n,r,i){if(r!==i){const r=wg(t(e,n));_(e,(e=>{wg(e)!==r&&Ro(Cc(e),_a.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&&wd(e.name))return;let t=!1;const n=RI(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&&(WN(e.name)&&WN(r)&&e.name.escapedText===r.escapedText||aD(e.name)&&aD(r)&&NS(nI(e.name),nI(r))||zh(e.name)&&zh(r)&&Uh(e.name)===Uh(r))){if((174===e.kind||173===e.kind)&&Fv(e)!==Fv(n)){Ro(t,Fv(e)?_a.Function_overload_must_be_static:_a.Function_overload_must_not_be_static)}return}if(Nd(n.body))return void Ro(t,_a.Function_implementation_name_must_be_0,Pp(e.name))}const r=e.name||e;g?Ro(r,_a.Constructor_implementation_is_missing):Dv(e,64)?Ro(r,_a.All_declarations_of_an_abstract_method_must_be_consecutive):Ro(r,_a.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&&(264===t.parent.kind||187===t.parent.kind)||n;if(r&&(s=void 0),263!==t.kind&&231!==t.kind||n||(b=!0),262===t.kind||174===t.kind||173===t.kind||176===t.kind){x.push(t);const e=nM(t,i);c|=e,u&=e,d=d||wg(t),p=p&&wg(t);const n=Nd(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)&&r_(e)&&e.jsDoc&&(f=l(zg(e))>0)}v&&_(x,(e=>{Ro(e,_a.Multiple_constructor_implementations_are_not_allowed)}));y&&_(x,(e=>{Ro(Cc(e)||e,_a.Duplicate_function_implementation)}));if(b&&!g&&16&e.flags&&m){const t=C(m,(e=>263===e.kind)).map((e=>Rp(e,_a.Consider_adding_a_declare_modifier_to_this_class)));_(m,(n=>{const r=263===n.kind?_a.Class_declaration_cannot_implement_overload_list_for_0:262===n.kind?_a.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;r&&sT(Ro(Cc(n)||n,r,yc(e)),...t)}))}!a||a.body||Dv(a,64)||a.questionToken||h(a);if(f&&(m&&(n(m,o,i,c,u),r(m,o,d,p)),o)){const t=Rg(e),n=Pg(o);for(const e of t)if(!QS(n,e)){sT(Ro(e.declaration&&lP(e.declaration)?e.declaration.parent.tagName:e.declaration,_a.This_overload_signature_is_not_compatible_with_its_implementation_signature),Rp(o,_a.The_implementation_signature_is_declared_here));break}}}(e)))}function iM(e){a((()=>function(e){let t=e.localSymbol;if(!t&&(t=hs(e),!t.exportSymbol))return;if($u(t,e.kind)!==e)return;let n=0,r=0,i=0;for(const e of t.declarations){const t=s(e),o=nM(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=Cc(e);t&a?Ro(n,_a.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,Pp(n)):t&o&&Ro(n,_a.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,Pp(n))}function s(e){let t=e;switch(t.kind){case 264:case 265:case 346:case 338:case 340:return 2;case 267:return sp(t)||0!==jM(t)?5:4;case 263:case 266:case 306:return 3;case 307:return 7;case 277:case 226:const e=t,n=gE(e)?e.expression:e.right;if(!sb(n))return 1;t=n;case 271:case 274:case 273:let r=0;return _(qa(hs(t)).declarations,(e=>{r|=s(e)})),r;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return _n.failBadSyntaxKind(t)}}}(e)))}function oM(e,t,n,...r){const i=aM(e,t);return i&&pM(i,t,n,...r)}function aM(e,t,n){if(Hc(e))return;const r=e;if(r.promisedTypeOfPromise)return r.promisedTypeOfPromise;if(R_(e,av(!1)))return r.promisedTypeOfPromise=fy(e)[0];if(Gj(mf(e),402915324))return;const i=Wc(e,"then");if(Hc(i))return;const o=i?ym(i,0):s;if(0===o.length)return void(t&&Ro(t,_a.A_promise_must_have_a_then_method));let a,c;for(const t of o){const n=Hg(t);n&&n!==ln&&!pT(e,n,go)?a=n:c=re(c,t)}if(!c)return _n.assertIsDefined(a),n&&(n.value=a),void(t&&Ro(t,_a.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,lc(e),lc(a)));const l=iD(jb(D(c,lj)),2097152);if(Hc(l))return;const _=ym(l,0);if(0!==_.length)return r.promisedTypeOfPromise=jb(D(_,lj),2);t&&Ro(t,_a.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback)}function sM(e,t,n,r,...i){return(t?pM(e,n,r,...i):fM(e,n,r,...i))||Et}function cM(e){if(Gj(mf(e),402915324))return!1;const t=Wc(e,"then");return!!t&&ym(iD(t,2097152),0).length>0}function lM(e){var t;if(16777216&e.flags){const n=Mv(!1);return!!n&&e.aliasSymbol===n&&1===(null==(t=e.aliasTypeArguments)?void 0:t.length)}return!1}function _M(e){return 1048576&e.flags?JF(e,_M):lM(e)?e.aliasTypeArguments[0]:e}function uM(e){if(Hc(e)||lM(e))return!1;if(Ex(e)){const t=ff(e);if(t?3&t.flags||eT(t)||EF(t,cM):Hj(e,8650752))return!0}return!1}function dM(e){return uM(e)?function(e){const t=Mv(!0);if(t)return hy(t,[_M(e)])}(e)??e:(_n.assert(lM(e)||void 0===aM(e),"type provided should not be a non-generic 'promise'-like."),e)}function pM(e,t,n,...r){const i=fM(e,t,n,...r);return i&&dM(i)}function fM(e,t,n,...r){if(Hc(e))return e;if(lM(e))return e;const i=e;if(i.awaitedTypeOfType)return i.awaitedTypeOfType;if(1048576&e.flags){if(co.lastIndexOf(e.id)>=0)return void(t&&Ro(t,_a.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));const o=t?e=>fM(e,t,n,...r):fM;co.push(e.id);const a=JF(e,o);return co.pop(),i.awaitedTypeOfType=a}if(uM(e))return i.awaitedTypeOfType=e;const o={value:void 0},a=aM(e,void 0,o);if(a){if(e.id===a.id||co.lastIndexOf(a.id)>=0)return void(t&&Ro(t,_a.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));co.push(e.id);const o=fM(a,t,n,...r);if(co.pop(),!o)return;return i.awaitedTypeOfType=o}if(!cM(e))return i.awaitedTypeOfType=e;if(t){let i;_n.assertIsDefined(n),o.value&&(i=ek(i,_a.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,lc(e),lc(o.value))),i=ek(i,n,...r),po.add(Jp(yd(t),t,i))}}function mM(e){!function(e){if(!Aq(yd(e))){let t=e.expression;if(nF(t))return!1;let n,r=!0;for(;;)if(yF(t)||xF(t))t=t.expression;else if(YD(t))r||(n=t),t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1;else{if(!XD(t)){VN(t)||(n=t);break}t.questionDotToken&&(n=t.questionDotToken),t=t.expression,r=!1}if(n)return sT(Ro(e.expression,_a.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator),Rp(n,_a.Invalid_syntax_in_decorator)),!0}}(e);const t=TL(e);DL(t,e);const n=Zg(t);if(1&n.flags)return;const r=Cj(e);if(!(null==r?void 0:r.resolvedReturnType))return;let i;const o=r.resolvedReturnType;switch(e.parent.kind){case 263:case 231:i=_a.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!q){i=_a.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:i=_a.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:i=_a.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return _n.failBadSyntaxKind(e.parent)}RS(n,o,e.expression,i)}function gM(e,t,n,r,i,o=n.length,a=0){return Dd(ZC.createFunctionTypeNode(void 0,s,ZC.createKeywordTypeNode(133)),e,t,n,r,i,o,a)}function hM(e,t,n,r,i,o,a){return Ah(gM(e,t,n,r,i,o,a))}function yM(e){return hM(void 0,void 0,s,e)}function vM(e){return hM(void 0,void 0,[Ho("value",e)],ln)}function bM(e){if(e)switch(e.kind){case 193:case 192:return xM(e.types);case 194:return xM([e.trueType,e.falseType]);case 196:case 202:return bM(e.type);case 183:return e.typeName}}function xM(e){let t;for(let n of e){for(;196===n.kind||202===n.kind;)n=n.type;if(146===n.kind)continue;if(!G&&(201===n.kind&&106===n.literal.kind||157===n.kind))continue;const e=bM(n);if(!e)return;if(t){if(!VN(t)||!VN(e)||t.escapedText!==e.escapedText)return}else t=e}return t}function kM(e){const t=fv(e);return Bu(e)?Ff(t):t}function SM(e){if(!(_I(e)&&jv(e)&&e.modifiers&&dm(q,e,e.parent,e.parent.parent)))return;const t=y(e.modifiers,lD);if(t){if(q)sq(t,8),169===e.kind&&sq(t,32);else if(M<Ni.ClassAndClassElementDecorators)if(sq(t,8),XF(e))if(e.name){bJ(e)&&sq(t,4194304)}else sq(t,4194304);else gF(e)||(WN(e.name)&&(pD(e)||d_(e)||p_(e))&&sq(t,4194304),aD(e.name)&&sq(t,8388608));bP(e,8);for(const t of e.modifiers)lD(t)&&mM(t)}}function TM(e){switch(e.kind){case 80:return e;case 211:return e.name;default:return}}function CM(e){var t;SM(e),RR(e);const n=Oh(e);if(e.name&&167===e.name.kind&&nI(e.name),_d(e)){const n=hs(e),r=e.localSymbol||n,i=null==(t=r.declarations)?void 0:t.find((t=>t.kind===e.kind&&!(524288&t.flags)));e===i&&rM(r),n.parent&&rM(n)}const r=173===e.kind?void 0:e.body;if(QJ(r),jj(e,th(e)),a((function(){gv(e)||(wd(r)&&!tM(e)&&$w(e,wt),1&n&&Nd(r)&&Zg(Pg(e)))})),Em(e)){const t=tl(e);t&&t.typeExpression&&!HA(Bk(t.typeExpression),e)&&Ro(t.typeExpression.type,_a.The_type_of_a_function_declaration_must_match_the_function_s_signature)}}function wM(e){a((function(){const t=yd(e);let n=xi.get(t.path);n||(n=[],xi.set(t.path,n));n.push(e)}))}function NM(e,t){for(const n of e)switch(n.kind){case 263:case 231:PM(n,t),IM(n,t);break;case 307:case 267:case 241:case 269:case 248:case 249:case 250:BM(n,t);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:n.body&&BM(n,t),IM(n,t);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:IM(n,t);break;case 195:AM(n,t);break;default:_n.assertNever(n,"Node should not have been registered for unused identifiers check")}}function DM(e,t,n){n(e,0,Rp(Cc(e)||e,WT(e)?_a._0_is_declared_but_never_used:_a._0_is_declared_but_its_value_is_never_read,t))}function FM(e){return VN(e)&&95===gc(e).charCodeAt(0)}function PM(e,t){for(const n of e.members)switch(n.kind){case 174:case 172:case 177:case 178:if(178===n.kind&&32768&n.symbol.flags)break;const e=hs(n);e.isReferenced||!(Nv(n,2)||Sc(n)&&WN(n.name))||33554432&n.flags||t(n,0,Rp(n.name,_a._0_is_declared_but_its_value_is_never_read,sc(e)));break;case 176:for(const e of n.parameters)!e.symbol.isReferenced&&Dv(e,2)&&t(e,0,Rp(e.name,_a.Property_0_is_declared_but_its_value_is_never_read,yc(e.symbol)));break;case 181:case 240:case 175:break;default:_n.fail("Unexpected class member")}}function AM(e,t){const{typeParameter:n}=e;OM(n)&&t(e,1,Rp(e,_a._0_is_declared_but_its_value_is_never_read,gc(n.name)))}function IM(e,t){const n=hs(e).declarations;if(!n||ye(n)!==e)return;const r=_l(e),i=new Set;for(const e of r){if(!OM(e))continue;const n=gc(e.name),{parent:r}=e;if(195!==r.kind&&r.typeParameters.every(OM)){if(J(i,r)){const i=yd(r),o=NP(r)?lT(r):_T(i,r.typeParameters),a=1===r.typeParameters.length?[_a._0_is_declared_but_its_value_is_never_read,n]:[_a.All_type_parameters_are_unused];t(e,1,Xx(i,o.pos,o.end-o.pos,...a))}}else t(e,1,Rp(e,_a._0_is_declared_but_its_value_is_never_read,n))}}function OM(e){return!(262144&fs(e.symbol).isReferenced||FM(e.name))}function LM(e,t,n,r){const i=String(r(t)),o=e.get(i);o?o[1].push(n):e.set(i,[t,[n]])}function RM(e){return et(Yh(e),cD)}function MM(e){return HD(e)?WD(e.parent)?!(!e.propertyName||!FM(e.name)):FM(e.name):sp(e)||(HF(e)&&Q_(e.parent.parent)||UM(e))&&FM(e.name)}function BM(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(!MM(a))if(UM(a))LM(n,273===(o=a).kind?o:274===o.kind?o.parent:o.parent.parent,a,$B);else if(HD(a)&&WD(a.parent)){a!==ye(a.parent.elements)&&ye(a.parent.elements).dotDotDotToken||LM(r,a.parent,a,$B)}else if(HF(a)){const e=7&Uq(a),t=Cc(a);(4===e||6===e)&&t&&FM(t)||LM(i,a.parent,a,$B)}else{const n=e.valueDeclaration&&RM(e.valueDeclaration),i=e.valueDeclaration&&Cc(e.valueDeclaration);n&&i?Zs(n,n.parent)||cv(n)||FM(i)||(HD(a)&&$D(a.parent)?LM(r,a.parent,a,$B):t(n,1,Rp(i,_a._0_is_declared_but_its_value_is_never_read,yc(e)))):DM(a,yc(e),t)}})),n.forEach((([e,n])=>{const r=e.parent;if((e.name?1:0)+(e.namedBindings?274===e.namedBindings.kind?1:e.namedBindings.elements.length:0)===n.length)t(r,0,1===n.length?Rp(r,_a._0_is_declared_but_its_value_is_never_read,gc(me(n).name)):Rp(r,_a.All_imports_in_import_declaration_are_unused));else for(const e of n)DM(e,gc(e.name),t)})),r.forEach((([e,n])=>{const r=RM(e.parent)?1:0;if(e.elements.length===n.length)1===n.length&&260===e.parent.kind&&261===e.parent.parent.kind?LM(i,e.parent.parent,e.parent,$B):t(e,r,1===n.length?Rp(e,_a._0_is_declared_but_its_value_is_never_read,zM(me(n).name)):Rp(e,_a.All_destructured_elements_are_unused));else for(const e of n)t(e,r,Rp(e,_a._0_is_declared_but_its_value_is_never_read,zM(e.name)))})),i.forEach((([e,n])=>{if(e.declarations.length===n.length)t(e,0,1===n.length?Rp(me(n).name,_a._0_is_declared_but_its_value_is_never_read,zM(me(n).name)):Rp(243===e.parent.kind?e.parent:e,_a.All_variables_are_unused));else for(const e of n)t(e,0,Rp(e,_a._0_is_declared_but_its_value_is_never_read,zM(e.name)))}))}function zM(e){switch(e.kind){case 80:return gc(e);case 207:case 206:return zM(tt(me(e.elements),HD).name);default:return _n.assertNever(e)}}function UM(e){return 273===e.kind||276===e.kind||274===e.kind}function VM(e){if(241===e.kind&&Rq(e),l_(e)){const t=Ci;_(e.statements,QJ),Ci=t}else _(e.statements,QJ);e.locals&&wM(e)}function WM(e,t,n){if((null==t?void 0:t.escapedText)!==n)return!1;if(172===e.kind||171===e.kind||174===e.kind||173===e.kind||177===e.kind||178===e.kind||303===e.kind)return!1;if(33554432&e.flags)return!1;if((aE(e)||iE(e)||mE(e))&&zl(e))return!1;const r=Yh(e);return!cD(r)||!wd(r.parent.body)}function $M(e){uc(e,(t=>{if(4&Jz(t)){return 80!==e.kind?Ro(Cc(e),_a.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):Ro(e,_a.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0}return!1}))}function HM(e){uc(e,(t=>{if(8&Jz(t)){return 80!==e.kind?Ro(Cc(e),_a.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):Ro(e,_a.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0}return!1}))}function GM(e){1048576&Jz(Fp(e))&&(_n.assert(Sc(e)&&VN(e.name)&&"string"==typeof e.name.escapedText,"The target of a WeakMap/WeakSet collision check should be an identifier"),Lo("noEmit",e,_a.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,e.name.escapedText))}function XM(e){let t=!1;if(gF(e)){for(const n of e.members)if(2097152&Jz(n)){t=!0;break}}else if(rF(e))2097152&Jz(e)&&(t=!0);else{const n=Fp(e);n&&2097152&Jz(n)&&(t=!0)}t&&(_n.assert(Sc(e)&&VN(e.name),"The target of a Reflect collision check should be an identifier"),Lo("noEmit",e,_a.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,Pp(e.name),"Reflect"))}function QM(t,n){n&&(function(t,n){if(e.getEmitModuleFormatOfFile(yd(t))>=5)return;if(!n||!WM(t,n,"require")&&!WM(t,n,"exports"))return;if(eE(t)&&1!==jM(t))return;const r=Vc(t);307===r.kind&&Yp(r)&&Lo("noEmit",n,_a.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,Pp(n),Pp(n))}(t,n),function(e,t){if(!t||M>=4||!WM(e,t,"Promise"))return;if(eE(e)&&1!==jM(e))return;const n=Vc(e);307===n.kind&&Yp(n)&&4096&n.flags&&Lo("noEmit",t,_a.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,Pp(t),Pp(t))}(t,n),function(e,t){M<=8&&(WM(e,t,"WeakMap")||WM(e,t,"WeakSet"))&&oo.push(e)}(t,n),function(e,t){t&&M>=2&&M<=8&&WM(e,t,"Reflect")&&ao.push(e)}(t,n),u_(t)?(gJ(n,_a.Class_name_cannot_be_0),33554432&t.flags||function(t){M>=1&&"Object"===t.escapedText&&e.getEmitModuleFormatOfFile(yd(t))<5&&Ro(t,_a.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,pi[z])}(n)):ZF(t)&&gJ(n,_a.Enum_name_cannot_be_0))}function YM(e){return e===Nt?wt:e===lr?cr:e}function ZM(e){var t;if(SM(e),HD(e)||QJ(e.type),!e.name)return;if(167===e.name.kind&&(nI(e.name),Pu(e)&&e.initializer&&uR(e.initializer)),HD(e)){if(e.propertyName&&VN(e.name)&&Qh(e)&&wd(Kf(e).body))return void so.push(e);WD(e.parent)&&e.dotDotDotToken&&M<Ni.ObjectSpreadRest&&sq(e,4),e.propertyName&&167===e.propertyName.kind&&nI(e.propertyName);const t=e.parent.parent,n=Yc(t,e.dotDotDotToken?32:0),r=e.propertyName||e.name;if(n&&!k_(r)){const i=Yb(r);if(cC(i)){const r=fm(n,lC(i));r&&(TO(r,void 0,!1),zI(e,!!t.initializer&&108===t.initializer.kind,!1,n,r))}}}if(k_(e.name)&&(207===e.name.kind&&M<Ni.BindingPatterns&&j.downlevelIteration&&sq(e,512),_(e.name.elements,QJ)),e.initializer&&Qh(e)&&wd(Kf(e).body))return void Ro(e,_a.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);if(k_(e.name)){if(LN(e))return;const t=Pu(e)&&e.initializer&&249!==e.parent.parent.kind,n=!V(e.name.elements,en(hF));if(t||n){const r=$l(e);if(t){const t=uR(e.initializer);G&&n?tO(t,e):MS(t,$l(e),e,e.initializer)}n&&($D(e.name)?fB(65,r,jt,e):G&&tO(r,e))}return}const n=hs(e);if(2097152&n.flags&&(Rm(e)||Mm(e)))return void JJ(e);10===e.name.kind&&Ro(e.name,_a.A_bigint_literal_cannot_be_used_as_a_property_name);const r=YM(F_(n));if(e===n.valueDeclaration){const o=Pu(e)&&Vm(e);if(o){if(!(Em(e)&&GD(o)&&(0===o.properties.length||db(e.name))&&!!(null==(t=n.exports)?void 0:t.size))&&249!==e.parent.parent.kind){const t=uR(o);MS(t,r,e,o,void 0);const n=7&Uq(e);if(6===n){const n=(i=!0,Jr||(Jr=Gy("AsyncDisposable",0,i))||Nn),r=Sv(!0);if(n!==Nn&&r!==Nn){const i=jb([n,r,qt,jt]);RS(Ql(t,e),i,o,_a.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)}}else if(4===n){const n=Sv(!0);if(n!==Nn){const r=jb([n,qt,jt]);RS(Ql(t,e),r,o,_a.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}}n.declarations&&n.declarations.length>1&&V(n.declarations,(t=>t!==e&&Pf(t)&&!tB(t,e)))&&Ro(e.name,_a.All_declarations_of_0_must_have_identical_modifiers,Pp(e.name))}else{const t=YM($l(e));Gc(r)||Gc(t)||NS(r,t)||67108864&n.flags||eB(n.valueDeclaration,r,e,t),Pu(e)&&e.initializer&&MS(uR(e.initializer),t,e,e.initializer,void 0),n.valueDeclaration&&!tB(e,n.valueDeclaration)&&Ro(e.name,_a.All_declarations_of_0_must_have_identical_modifiers,Pp(e.name))}var i;172!==e.kind&&171!==e.kind&&(iM(e),260!==e.kind&&208!==e.kind||function(e){if(7&Uq(e)||Qh(e))return;const t=hs(e);if(1&t.flags){if(!VN(e.name))return _n.fail();const n=Ue(e,e.name.escapedText,3,void 0,!1);if(n&&n!==t&&2&n.flags&&7&BI(n)){const t=Th(n.valueDeclaration,261),r=243===t.parent.kind&&t.parent.parent?t.parent.parent:void 0;if(!r||!(241===r.kind&&r_(r.parent)||268===r.kind||267===r.kind||307===r.kind)){const t=sc(n);Ro(e,_a.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,t,t)}}}}(e),QM(e,e.name))}function eB(e,t,n,r){const i=Cc(n),o=172===n.kind||171===n.kind?_a.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:_a.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,a=Pp(i),s=Ro(i,o,a,lc(t),lc(r));e&&sT(s,Rp(e,_a._0_was_also_declared_here,a))}function tB(e,t){if(169===e.kind&&260===t.kind||260===e.kind&&169===t.kind)return!0;if(wg(e)!==wg(t))return!1;return Rv(e,1358)===Rv(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=Uq(t),r=7&n;if(k_(t.name))switch(r){case 6:return Lq(t,_a._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Lq(t,_a._0_declarations_may_not_have_binding_patterns,"using")}if(249!==t.parent.parent.kind&&250!==t.parent.parent.kind)if(33554432&n)Nq(t);else if(!t.initializer){if(k_(t.name)&&!k_(t.parent))return Lq(t,_a.A_destructuring_declaration_must_have_an_initializer);switch(r){case 6:return Lq(t,_a._0_declarations_must_be_initialized,"await using");case 4:return Lq(t,_a._0_declarations_must_be_initialized,"using");case 2:return Lq(t,_a._0_declarations_must_be_initialized,"const")}}if(t.exclamationToken&&(243!==t.parent.parent.kind||!t.type||t.initializer||33554432&n)){const e=t.initializer?_a.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?_a.A_definite_assignment_assertion_is_not_permitted_in_this_context:_a.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Lq(t.exclamationToken,e)}e.getEmitModuleFormatOfFile(yd(t))<4&&!(33554432&t.parent.parent.flags)&&Dv(t.parent.parent,32)&&Dq(t.name);!!r&&Fq(t.name)}(t),ZM(t),null==(r=$n)||r.pop()}function rB(e){return function(e){if(e.dotDotDotToken){const t=e.parent.elements;if(e!==ye(t))return Lq(e,_a.A_rest_element_must_be_last_in_a_destructuring_pattern);if(uq(t,_a.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),e.propertyName)return Lq(e.name,_a.A_rest_element_cannot_have_a_property_name)}if(e.dotDotDotToken&&e.initializer)Oq(e,e.initializer.pos-1,1,_a.A_rest_element_cannot_have_an_initializer)}(e),ZM(e)}function iB(e){const t=7&ac(e);(4===t||6===t)&&M<Ni.UsingAndAwaitUsing&&sq(e,16777216),_(e.declarations,QJ)}function aB(e){lq(e)||Eq(e.declarationList)||function(e){if(!Pq(e.parent)){const t=7&Uq(e.declarationList);if(t){const n=1===t?"let":2===t?"const":4===t?"using":6===t?"await using":_n.fail("Unknown BlockScope flag");Lq(e,_a._0_declarations_can_only_be_declared_inside_a_block,n)}}}(e),iB(e.declarationList)}function sB(e,t,n){function r(e,t){for(i(e=ah(e),t);uF(e)&&(57===e.operatorToken.kind||61===e.operatorToken.kind);)i(e=ah(e.left),t)}function i(e,n){const i=eb(e)?ah(e.right):e;if(eg(i))return;if(eb(i))return void r(i,n);const o=i===e?t:IR(i);if(1024&o.flags&&XD(i)&&384&(sa(i.expression).resolvedSymbol??xt).flags)return void Ro(i,_a.This_condition_will_always_return_0,o.value?"true":"false");const a=XD(i)&&dR(i.expression);if(!tD(o,4194304)||a)return;const s=ym(o,0),c=!!oM(o);if(0===s.length&&!c)return;const l=VN(i)?i:XD(i)?i.name:void 0,_=l&&hz(l);if(!_&&!c)return;const u=_&&uF(e.parent)&&function(e,t){for(;uF(e)&&56===e.operatorToken.kind;){if(RI(e.right,(function e(n){if(VN(n)){const e=hz(n);if(e&&e===t)return!0}return RI(n,e)})))return!0;e=e.parent}return!1}(e.parent,_)||_&&n&&function(e,t,n,r){return!!RI(t,(function t(i){if(VN(i)){const t=hz(i);if(t&&t===r){if(VN(e)||VN(n)&&uF(n.parent))return!0;let t=n.parent,r=i.parent;for(;t&&r;){if(VN(t)&&VN(r)||110===t.kind&&110===r.kind)return hz(t)===hz(r);if(XD(t)&&XD(r)){if(hz(t.name)!==hz(r.name))return!1;r=r.expression,t=t.expression}else{if(!YD(t)||!YD(r))return!1;r=r.expression,t=t.expression}}}}return RI(i,t)}))}(e,n,l,_);u||(c?zo(i,!0,_a.This_condition_will_always_return_true_since_this_0_is_always_defined,vc(o)):Ro(i,_a.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}G&&r(e,n)}function cB(e,t){if(16384&e.flags)Ro(t,_a.An_expression_of_type_void_cannot_be_tested_for_truthiness);else{const e=lB(t);3!==e&&Ro(t,1===e?_a.This_kind_of_expression_is_always_truthy:_a.This_kind_of_expression_is_always_falsy)}return e}function lB(e){switch((e=uA(e)).kind){case 9:return"0"===e.text||"1"===e.text?3:1;case 209:case 219:case 10:case 231:case 218:case 284:case 285:case 210:case 14:return 1;case 222:case 106:return 2;case 15:case 11:return e.text?1:2;case 227:return lB(e.whenTrue)|lB(e.whenFalse);case 80:return ON(e)===De?2:3}return 3}function _B(e,t){return cB(IR(e,t),e)}function dB(e){kq(e);const t=KI(IR(e.expression));if(261===e.initializer.kind){const t=e.initializer.declarations[0];t&&k_(t.name)&&Ro(t.name,_a.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),iB(e.initializer)}else{const n=e.initializer,r=IR(n);209===n.kind||210===n.kind?Ro(n,_a.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):IS(function(e){const t=ax(rx(e));return 131072&t.flags?Vt:t}(t),r)?qj(n,_a.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,_a.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):Ro(n,_a.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}t!==un&&Kj(t,126091264)||Ro(e.expression,_a.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,lc(t)),QJ(e.statement),e.locals&&wM(e)}function pB(e){return fB(e.awaitModifier?15:13,$I(e.expression),jt,e.expression)}function fB(e,t,n,r){return Hc(t)?t:mB(e,t,n,r,!0)||wt}function mB(e,t,n,r,i){const o=!!(2&e);if(t===un)return void(r&&DB(r,t,o));const a=M>=2,s=!a&&j.downlevelIteration,c=j.noUncheckedIndexedAccess&&!!(128&e);if(a||s||o){const o=xB(t,e,a?r:void 0);if(i&&o){const t=8&e?_a.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&e?_a.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&e?_a.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&e?_a.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&&RS(n,o.nextType,r,t)}if(o||a)return c?UD(o&&o.yieldType):o&&o.yieldType}let l=t,_=!1;if(4&e){if(1048576&l.flags){const e=t.types,n=C(e,(e=>!(402653316&e.flags)));n!==e&&(l=jb(n,2))}else 402653316&l.flags&&(l=un);if(_=l!==t,_&&131072&l.flags)return c?UD(Vt):Vt}if(!qC(l)){if(r){const n=!!(4&e)&&!_,[i,o]=function(n,r){var i;if(r)return n?[_a.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[_a.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0];if(gB(e,0,t,void 0))return[_a.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[_a.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0];return n?[_a.Type_0_is_not_an_array_type_or_a_string_type,!0]:[_a.Type_0_is_not_an_array_type,!0]}(n,s);zo(r,o&&!!oM(l),i,lc(l))}return _?c?UD(Vt):Vt:void 0}const u=rg(l,Wt);return _&&u?402653316&u.flags&&!j.noUncheckedIndexedAccess?Vt:jb(c?[u,Vt,jt]:[u,Vt],2):128&e?UD(u):u}function gB(e,t,n,r){if(Hc(n))return;const i=xB(n,e,r);return i&&i[YB(t)]}function hB(e=un,t=un,n=Lt){if(67359327&e.flags&&180227&t.flags&&180227&n.flags){const r=oy([e,t,n]);let i=fi.get(r);return i||(i={yieldType:e,returnType:t,nextType:n},fi.set(r,i)),i}return{yieldType:e,returnType:t,nextType:n}}function yB(e){let t,n,r;for(const i of e)if(void 0!==i&&i!==mi){if(i===gi)return gi;t=re(t,i.yieldType),n=re(n,i.returnType),r=re(r,i.nextType)}return t||n||r?hB(t&&jb(t),n&&jb(n),r&&Vb(r)):mi}function vB(e,t){return e[t]}function bB(e,t,n){return e[t]=n}function xB(e,t,n){var r,i;if(Hc(e))return gi;if(!(1048576&e.flags)){const i=n?{errors:void 0,skipLogging:!0}:void 0,o=SB(e,t,n,i);if(o===mi){if(n){const r=DB(n,e,!!(2&t));(null==i?void 0:i.errors)&&sT(r,...i.errors)}return}if(null==(r=null==i?void 0:i.errors)?void 0:r.length)for(const e of i.errors)po.add(e);return o}const o=2&t?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",a=vB(e,o);if(a)return a===mi?void 0:a;let s;for(const r of e.types){const a=n?{errors:void 0}:void 0,c=SB(r,t,n,a);if(c===mi){if(n){const r=DB(n,e,!!(2&t));(null==a?void 0:a.errors)&&sT(r,...a.errors)}return void bB(e,o,mi)}if(null==(i=null==a?void 0:a.errors)?void 0:i.length)for(const e of a.errors)po.add(e);s=re(s,c)}const c=s?yB(s):mi;return bB(e,o,c),c===mi?void 0:c}function kB(e,t){if(e===mi)return mi;if(e===gi)return gi;const{yieldType:n,returnType:r,nextType:i}=e;return t&&Mv(!0),hB(pM(n,t)||wt,pM(r,t)||wt,i)}function SB(e,t,n,r){if(Hc(e))return gi;let i=!1;if(2&t){const r=TB(e,hi)||CB(e,hi);if(r){if(r!==mi||!n)return 8&t?kB(r,n):r;i=!0}}if(1&t){let r=TB(e,yi)||CB(e,yi);if(r)if(r===mi&&n)i=!0;else{if(!(2&t))return r;if(r!==mi)return r=kB(r,n),i?r:bB(e,"iterationTypesOfAsyncIterable",r)}}if(2&t){const t=NB(e,hi,n,r,i);if(t!==mi)return t}if(1&t){let o=NB(e,yi,n,r,i);if(o!==mi)return 2&t?(o=kB(o,n),i?o:bB(e,"iterationTypesOfAsyncIterable",o)):o}return mi}function TB(e,t){return vB(e,t.iterableCacheKey)}function CB(e,t){if(R_(e,t.getGlobalIterableType(!1))||R_(e,t.getGlobalIteratorObjectType(!1))||R_(e,t.getGlobalIterableIteratorType(!1))||R_(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=fy(e);return bB(e,t.iterableCacheKey,hB(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}if(P_(e,t.getGlobalBuiltinIteratorTypes())){const[n]=fy(e),r=kv(),i=Lt;return bB(e,t.iterableCacheKey,hB(t.resolveIterationType(n,void 0)||n,t.resolveIterationType(r,void 0)||r,i))}}function wB(e){const t=nv(!1),n=t&&Wc(F_(t),fc(e));return n&&cC(n)?lC(n):`__@${e}`}function NB(e,t,n,r,i){const o=fm(e,wB(t.iteratorSymbolName)),a=!o||16777216&o.flags?void 0:F_(o);if(Hc(a))return i?gi:bB(e,t.iterableCacheKey,gi);const s=a?ym(a,0):void 0,c=C(s,(e=>0===oj(e)));if(!V(c))return n&&V(s)&&RS(e,t.getGlobalIterableType(!0),n,void 0,void 0,r),i?mi:bB(e,t.iterableCacheKey,mi);const l=EB(Vb(D(c,Zg)),t,n,r,i)??mi;return i?l:bB(e,t.iterableCacheKey,l)}function DB(e,t,n){const r=n?_a.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:_a.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;return zo(e,!!oM(t)||!n&&RF(e.parent)&&e.parent.expression===e&&mv(!1)!==On&&IS(t,Bv(mv(!1),[wt,wt,wt])),r,lc(t))}function EB(e,t,n,r,i){if(Hc(e))return gi;let o=function(e,t){return vB(e,t.iteratorCacheKey)}(e,t)||function(e,t){if(R_(e,t.getGlobalIterableIteratorType(!1))||R_(e,t.getGlobalIteratorType(!1))||R_(e,t.getGlobalIteratorObjectType(!1))||R_(e,t.getGlobalGeneratorType(!1))){const[n,r,i]=fy(e);return bB(e,t.iteratorCacheKey,hB(n,r,i))}if(P_(e,t.getGlobalBuiltinIteratorTypes())){const[n]=fy(e),r=kv(),i=Lt;return bB(e,t.iteratorCacheKey,hB(n,r,i))}}(e,t);return o===mi&&n&&(o=void 0,i=!0),o??(o=function(e,t,n,r,i){const o=yB([zB(e,t,"next",n,r),zB(e,t,"return",n,r),zB(e,t,"throw",n,r)]);return i?o:bB(e,t.iteratorCacheKey,o)}(e,t,n,r,i)),o===mi?void 0:o}function OB(e,t){const n=Wc(e,"done")||Xt;return IS(0===t?Xt:tn,n)}function LB(e){return OB(e,0)}function MB(e){return OB(e,1)}function JB(e){if(Hc(e))return gi;const t=vB(e,"iterationTypesOfIteratorResult");if(t)return t;if(R_(e,(n=!1,Cr||(Cr=Gy("IteratorYieldResult",1,n))||On))){return bB(e,"iterationTypesOfIteratorResult",hB(fy(e)[0],void 0,void 0))}var n;if(R_(e,function(e){return wr||(wr=Gy("IteratorReturnResult",1,e))||On}(!1))){return bB(e,"iterationTypesOfIteratorResult",hB(void 0,fy(e)[0],void 0))}const r=OF(e,LB),i=r!==un?Wc(r,"value"):void 0,o=OF(e,MB),a=o!==un?Wc(o,"value"):void 0;return bB(e,"iterationTypesOfIteratorResult",i||a?hB(i,a||ln,void 0):mi)}function zB(e,t,n,r,i){var o,a,c,l;const _=fm(e,n);if(!_&&"next"!==n)return;const u=!_||"next"===n&&16777216&_.flags?void 0:"next"===n?F_(_):iD(F_(_),2097152);if(Hc(u))return gi;const d=u?ym(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(Rp(r,e,n))):Ro(r,e,n)}return"next"===n?mi: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 hB(Yk(t.typeParameters[0],o),Yk(t.typeParameters[1],o),"next"===n?Yk(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,ej(e,0))),f=re(f,Zg(e));if("throw"!==n){const e=p?jb(p):Lt;if("next"===n)g=e;else if("return"===n){m=re(m,t.resolveIterationType(e,r)||wt)}}const y=f?Vb(f):un,v=JB(t.resolveIterationType(y,r)||wt);return v===mi?(r&&(i?(i.errors??(i.errors=[]),i.errors.push(Rp(r,t.mustHaveAValueDiagnostic,n))):Ro(r,t.mustHaveAValueDiagnostic,n)),h=wt,m=re(m,wt)):(h=v.yieldType,m=re(m,v.returnType)),hB(h,jb(m),g)}function GB(e,t,n){if(Hc(t))return;const r=iJ(t,n);return r&&r[YB(e)]}function iJ(e,t){if(Hc(e))return gi;const n=t?hi:yi;return xB(e,t?2:1,void 0)||function(e,t,n,r){return EB(e,t,n,r,!1)}(e,n,void 0,void 0)}function oJ(e){Rq(e)||function(e){let t=e;for(;t;){if(i_(t))return Lq(e,_a.Jump_target_cannot_cross_function_boundary);switch(t.kind){case 256:if(e.label&&t.label.escapedText===e.label.escapedText){return!!(251===e.kind&&!$_(t.statement,!0))&&Lq(e,_a.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}break;case 255:if(252===e.kind&&!e.label)return!1;break;default:if($_(t,!1)&&!e.label)return!1}t=t.parent}if(e.label){return Lq(e,252===e.kind?_a.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:_a.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement)}Lq(e,252===e.kind?_a.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:_a.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement)}(e)}function aJ(e,t){const n=!!(2&t);if(!!(1&t)){const t=GB(1,e,n);return t?n?fM(_M(t)):t:Et}return n?fM(e)||Et:e}function sJ(e,t){const n=aJ(t,Oh(e));return!(!n||!(Hj(n,16384)||32769&n.flags))}function cJ(e,t,n,r,i,o=!1){const a=Em(n),s=Oh(e);if(r){const i=ah(r,a);if(dF(i))return cJ(e,t,n,i.whenTrue,IR(i.whenTrue),!0),void cJ(e,t,n,i.whenFalse,IR(i.whenFalse),!0)}const c=253===n.kind,l=2&s?sM(i,!1,n,_a.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,_=r&&YO(r),u=c&&!o?n:_;if(!(25165824&t.flags&&rN(t)))return void MS(l,t,u,_);if(RS(l,t,void 0))return;let d=n,p=c&&n.flowNode;if(r&&dF(r.parent)&&(p=r.parent.whenTrue===r?r.parent.flowNodeWhenTrue:r.parent.flowNodeWhenFalse,d=r),!p)return void MS(l,t,u,_);const f=z_(q_(e,!1),_l(e)),m=f&&function(e){const t=[];for(const o of e){const e=rf(o);if(e&&1048576&e.flags&&(o.symbol&&o.symbol.declarations&&1===o.symbol.declarations.length)){const a=o.symbol.declarations[0],s=NP(a.parent)?Vg(a.parent):a.parent;if(!r_(s))continue;let c,l=!1;for(const t of s.parameters){const a=fv(t);if(a&&i(o,a)){let i;if(!(kD(a)&&r(o,a)&&(i=n(t,e)))){l=!0;break}if(c){l=!0;break}c=i}}if(!l&&c){const e=ON(c);e!==xt&&t.push([o,e,c])}}}return t;function n(e,t){if(!VN(e.name))return;return!(!!e.questionToken||XT(e))||iT(t)?e.name:void 0}function r(e,t){return zy(t)===e}function i(e,t){return n(t);function n(t){return kD(t)?r(e,t):CD(t)?dS(e,t):!!RI(t,n)}}}(f);if(!m||!m.length||!(_J(g=t)?lJ(g):262144&g.indexType.flags))return void MS(l,t,u,_);var g;const h=[],y=[];for(const[e,t,n]of m){const r=ZC.cloneNode(n);r.id=void 0,sa(r).resolvedSymbol=t,FT(r,d.parent),r.flowNode=p;const i=hP(e,r,void 0,!0);if(i===e)continue;const o=$F($E(r,i));if(3&o.flags||Gc(o)||o===e||o===JF(e,mf))continue;const a=Dy(e,o,!0);h.push(e),y.push(a)}const v=yS(t,Qk(h,y));if(r){const e=sa(r);e.contextualReturnType||(e.contextualReturnType=v)}const b=r?IR(r):jt;MS(2&s?sM(b,!1,n,_a.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):b,v,u,_)}function lJ(e,t){const n=t&&D(e.root.outerTypeParameters,(e=>{const n=Yk(e,t);return Ny(n)?n.baseType:n})),r=`${e.id}:${oy(n)}`;let i=No.get(r);if(void 0===i){const t=yS(e,e.root.outerTypeParameters&&n&&Qk(e.root.outerTypeParameters,n));i=_J(t)&&function(e){if(!e.root.isDistributive)return!1;if(e.root.inferTypeParameters)return!1;if(!(262144&e.checkType.flags))return!1;const t=rf(e.checkType);if(!(t&&1048576&t.flags))return!1;if(!IF(e.extendsType,(e=>V(t.types,(t=>NS(t,e))))))return!1;const n=Kx(e);if(_J(n)&&!lJ(n))return!1;const r=Gx(e);return _J(r)?lJ(r):r===un}(t),No.set(r,i)}return i}function _J(e){return!!(16777216&e.flags)}function uJ(e){Rq(e)||VN(e.expression)&&!e.expression.escapedText&&function(e,t,...n){const r=yd(e);if(!Aq(r)){const i=Kp(r,e.pos);return po.add(Xx(r,Fs(i),0,t,...n)),!0}}(e,_a.Line_break_not_permitted_here),e.expression&&IR(e.expression)}function pJ(e,t,n){const r=qm(e);if(0===r.length)return;for(const t of Bp(e))n&&4194304&t.flags||fJ(e,t,Zb(t,8576,!0),E_(t));const i=t.valueDeclaration;if(i&&u_(i))for(const t of i.members)if(!Fv(t)&&!_d(t)){const n=hs(t);fJ(e,n,ER(t.name.expression),E_(n))}if(r.length>1)for(const t of r)mJ(e,t)}function fJ(e,t,n,r){const i=t.valueDeclaration,o=Cc(i);if(o&&WN(o))return;const a=ig(e,n),s=2&hx(e)?$u(e.symbol,264):void 0,c=i&&226===i.kind||o&&167===o.kind?i:void 0,l=vs(t)===e.symbol?i:void 0;for(const n of a){const i=n.declaration&&vs(hs(n.declaration))===e.symbol?n.declaration:void 0,o=l||i||(s&&!V(cu(e),(e=>!!qp(e,t.escapedName)&&!!rg(e,n.keyType)))?s:void 0);if(o&&!IS(r,n.type)){const e=jo(o,_a.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,sc(t),lc(r),lc(n.keyType),lc(n.type));c&&o!==c&&sT(e,Rp(c,_a._0_is_declared_here,sc(t))),po.add(e)}}}function mJ(e,t){const n=t.declaration,r=ig(e,t.keyType),i=2&hx(e)?$u(e.symbol,264):void 0,o=n&&vs(hs(n))===e.symbol?n:void 0;for(const n of r){if(n===t)continue;const r=n.declaration&&vs(hs(n.declaration))===e.symbol?n.declaration:void 0,a=o||r||(i&&!V(cu(e),(e=>!!Qm(e,t.keyType)&&!!rg(e,n.keyType)))?i:void 0);a&&!IS(t.type,n.type)&&Ro(a,_a._0_index_type_1_is_not_assignable_to_2_index_type_3,lc(t.keyType),lc(t.type),lc(n.keyType),lc(n.type))}}function gJ(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":Ro(e,t,e.escapedText)}}function hJ(e){let t=!1;if(e)for(let t=0;t<e.length;t++){const r=e[t];OR(r),a(n(r,t))}function n(n,r){return()=>{n.default?(t=!0,function(e,t,n){function r(e){if(183===e.kind){const r=zy(e);if(262144&r.flags)for(let i=n;i<t.length;i++)r.symbol===hs(t[i])&&Ro(e,_a.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}RI(e,r)}r(e)}(n.default,e,r)):t&&Ro(n,_a.Required_type_parameters_may_not_follow_optional_type_parameters);for(let t=0;t<r;t++)e[t].symbol===n.symbol&&Ro(n.name,_a.Duplicate_identifier_0,Pp(n.name))}}}function yJ(e){if(e.declarations&&1===e.declarations.length)return;const t=aa(e);if(!t.typeParametersChecked){t.typeParametersChecked=!0;const n=function(e){return C(e.declarations,(e=>263===e.kind||264===e.kind))}(e);if(!n||n.length<=1)return;if(!vJ(n,Tu(e).localTypeParameters,_l)){const t=sc(e);for(const e of n)Ro(e.name,_a.All_declarations_of_0_must_have_identical_type_parameters,t)}}}function vJ(e,t,n){const r=l(t),i=Cg(t);for(const o of e){const e=n(o),a=e.length;if(a<i||a>r)return!1;for(let n=0;n<a;n++){const r=e[n],i=t[n];if(r.name.escapedText!==i.symbol.escapedName)return!1;const o=ul(r),a=o&&Bk(o),s=rf(i);if(a&&s&&!NS(a,s))return!1;const c=r.default&&Bk(r.default),l=vf(i);if(c&&l&&!NS(c,l))return!1}}return!0}function bJ(e){const t=!q&&M<Ni.ClassAndClassElementDecorators&&gm(!1,e),n=M<Ni.PrivateNamesAndClassStaticBlocks||M<Ni.ClassAndClassElementDecorators,r=!W;if(t||n)for(const i of e.members){if(t&&hm(!1,i,e))return pe(Nc(e))??e;if(n){if(fD(i))return i;if(Fv(i)&&(Kl(i)||r&&nz(i)))return i}}}function xJ(e){!function(e){const t=yd(e);(function(e){let t=!1,n=!1;if(!lq(e)&&e.heritageClauses)for(const r of e.heritageClauses){if(96===r.token){if(t)return Iq(r,_a.extends_clause_already_seen);if(n)return Iq(r,_a.extends_clause_must_precede_implements_clause);if(r.types.length>1)return Iq(r.types[1],_a.Classes_can_only_extend_a_single_class);t=!0}else{if(_n.assert(119===r.token),n)return Iq(r,_a.implements_clause_already_seen);n=!0}gq(r)}})(e)||dq(e.typeParameters,t)}(e),SM(e),QM(e,e.name),hJ(_l(e)),iM(e);const t=hs(e),n=Tu(t),r=Td(n),i=F_(t);yJ(t),rM(t),function(e){const t=new Map,n=new Map,r=new Map;for(const o of e.members)if(176===o.kind)for(const e of o.parameters)Zs(e,o)&&!k_(e.name)&&i(t,e.name,e.name.escapedText,3);else{const e=Fv(o),a=o.name;if(!a)continue;const s=WN(a),c=s&&e?16:0,l=s?r:e?n:t,_=a&&zq(a);if(_)switch(o.kind){case 177:i(l,a,_,1|c);break;case 178:i(l,a,_,2|c);break;case 172:i(l,a,_,3|c);break;case 174:i(l,a,_,8|c)}}function i(e,t,n,r){const i=e.get(n);if(i)if((16&i)!=(16&r))Ro(t,_a.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Gd(t));else{const o=!!(8&i),a=!!(8&r);o||a?o!==a&&Ro(t,_a.Duplicate_identifier_0,Gd(t)):i&r&-17?Ro(t,_a.Duplicate_identifier_0,Gd(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(Fv(t)&&n){const t=zq(n);switch(t){case"name":case"length":case"caller":case"arguments":if(U)break;case"prototype":Ro(n,_a.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,t,jc(hs(e)))}}}}(e);const o=yh(e);if(o){_(o.typeArguments,QJ),M<Ni.Classes&&sq(o.parent,1);const t=vh(e);t&&t!==o&&IR(t.expression);const s=cu(n);s.length&&a((()=>{const t=s[0],a=ru(n),c=Tf(a);if(function(e,t){const n=ym(e,1);if(n.length){const r=n[0].declaration;if(r&&Nv(r,2)){dz(t,gx(e.symbol))||Ro(t,_a.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Ga(e.symbol))}}}(c,o),QJ(o.expression),V(o.typeArguments)){_(o.typeArguments,QJ);for(const e of tu(c,o.typeArguments,o))if(!KR(o,e.typeParameters))break}const u=Td(t,n.thisType);if(RS(r,u,void 0)?RS(i,wS(c),e.name||e,_a.Class_static_side_0_incorrectly_extends_base_class_static_side_1):TJ(e,r,u,_a.Class_0_incorrectly_extends_base_class_1),8650752&a.flags)if(Y_(i)){ym(a,1).some((e=>4&e.flags))&&!Dv(e,64)&&Ro(e.name||e,_a.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract)}else Ro(e.name||e,_a.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);if(!(c.symbol&&32&c.symbol.flags||8650752&a.flags)){_(nu(c,o.typeArguments,o),(e=>!CL(e.declaration)&&!NS(Zg(e),t)))&&Ro(o.expression,_a.Base_constructors_must_all_have_the_same_return_type)}!function(e,t){var n,r,i,o,a;const s=$p(t),c=new Map;e:for(const l of s){const s=CJ(l);if(4194304&s.flags)continue;const _=qp(e,s.escapedName);if(!_)continue;const u=CJ(_),d=ox(s);if(_n.assert(!!u,"derived should point to something, even if it is the base class' declaration."),u===s){const r=gx(e.symbol);if(64&d&&(!r||!Dv(r,64))){for(const n of cu(e)){if(n===t)continue;const e=qp(n,s.escapedName),r=e&&CJ(e);if(r&&r!==s)continue e}const i=lc(t),o=lc(e),a=sc(l),_=re(null==(n=c.get(r))?void 0:n.missedProperties,a);c.set(r,{baseTypeName:i,typeName:o,missedProperties:_})}}else{const n=ox(u);if(2&d||2&n)continue;let c;const l=98308&s.flags,_=98308&u.flags;if(l&&_){if((6&ix(s)?null==(r=s.declarations)?void 0:r.some((e=>wJ(e,d))):null==(i=s.declarations)?void 0:i.every((e=>wJ(e,d))))||262144&ix(s)||u.valueDeclaration&&uF(u.valueDeclaration))continue;const c=4!==l&&4===_;if(c||4===l&&4!==_){const n=c?_a._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:_a._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;Ro(Cc(u.valueDeclaration)||u.valueDeclaration,n,sc(s),lc(t),lc(e))}else if(U){const r=null==(o=u.declarations)?void 0:o.find((e=>172===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=vC(gx(e.symbol)),i=r.name;if(r.exclamationToken||!n||!VN(i)||!G||!DJ(i,e,n)){const e=_a.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;Ro(Cc(u.valueDeclaration)||u.valueDeclaration,e,sc(s),lc(t))}}}continue}if(JI(s)){if(JI(u)||4&u.flags)continue;_n.assert(!!(98304&u.flags)),c=_a.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else c=98304&s.flags?_a.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:_a.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;Ro(Cc(u.valueDeclaration)||u.valueDeclaration,c,lc(t),sc(s),lc(e))}}for(const[e,t]of c)if(1===l(t.missedProperties))gF(e)?Ro(e,_a.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,me(t.missedProperties),t.baseTypeName):Ro(e,_a.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=D(t.missedProperties.slice(0,4),(e=>`'${e}'`)).join(", "),r=l(t.missedProperties)-4;gF(e)?Ro(e,_a.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more,t.baseTypeName,n,r):Ro(e,_a.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=D(t.missedProperties,(e=>`'${e}'`)).join(", ");gF(e)?Ro(e,_a.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1,t.baseTypeName,n):Ro(e,_a.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=yh(e),o=i&&cu(t),a=(null==o?void 0:o.length)?Td(me(o),t.thisType):void 0,s=ru(t);for(const i of e.members)Iv(i)||(mD(i)&&_(i.parameters,(o=>{Zs(o,i)&&kJ(e,r,s,a,t,n,o,!0)})),kJ(e,r,s,a,t,n,i,!1))}(e,n,r,i);const s=bh(e);if(s)for(const e of s)sb(e.expression)&&!hl(e.expression)||Ro(e.expression,_a.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),XR(e),a(c(e));function c(t){return()=>{const i=Vf(Bk(t));if(!Gc(i))if(uu(i)){const t=i.symbol&&32&i.symbol.flags?_a.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:_a.Class_0_incorrectly_implements_interface_1,o=Td(i,n.thisType);RS(r,o,void 0)||TJ(e,r,o,t)}else Ro(t,_a.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}a((()=>{pJ(n,t),pJ(i,t,!0),JR(e),function(e){if(!G||!Z||33554432&e.flags)return;const t=vC(e);for(const n of e.members)if(!(128&Jv(n))&&!Fv(n)&&NJ(n)){const e=n.name;if(VN(e)||WN(e)||aD(e)){const r=F_(hs(n));3&r.flags||iT(r)||t&&DJ(e,r,t)||Ro(n.name,_a.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,Pp(e))}}}(e)}))}function kJ(e,t,n,r,i,o,a,s,c=!0){const l=a.name&&hz(a.name)||hz(a);return l?SJ(e,t,n,r,i,o,Pv(a),Av(a),Fv(a),s,l,c?a:void 0):0}function SJ(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)&&__(_.valueDeclaration)&&_.valueDeclaration.name&&pd(_.valueDeclaration.name))return Ro(u,d?_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic:_a.This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic),2;if(r&&(a||j.noImplicitOverride)){const e=c?n:r,i=fm(c?t:o,_.escapedName),f=fm(e,_.escapedName),m=lc(r);if(i&&!f&&a){if(u){const t=hO(yc(_),e);t?Ro(u,d?_a.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.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,m,sc(t)):Ro(u,d?_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:_a.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)&&j.noImplicitOverride&&!p){const e=V(f.declarations,Av);if(a)return 0;if(!e){if(u){Ro(u,l?d?_a.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:_a.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:d?_a.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:_a.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&&Ro(u,_a.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=lc(i);Ro(u,d?_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:_a.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,e)}return 2}return 0}function TJ(e,t,n,r){let i=!1;for(const r of e.members){if(Fv(r))continue;const e=r.name&&hz(r.name)||hz(r);if(e){const o=fm(t,e.escapedName),a=fm(n,e.escapedName);if(o&&a){const s=()=>ek(void 0,_a.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,sc(e),lc(t),lc(n));RS(F_(o),F_(a),r.name||r,void 0,s)||(i=!0)}}}i||RS(t,n,e.name||e,r)}function CJ(e){return 1&ix(e)?e.links.target:e}function wJ(e,t){return 64&t&&(!uD(e)||!e.initializer)||QF(e.parent)}function NJ(e){return 172===e.kind&&!Av(e)&&!e.exclamationToken&&!e.initializer}function DJ(e,t,n){const r=aD(e)?ZC.createElementAccessExpression(ZC.createThis(),e.expression):ZC.createPropertyAccessExpression(ZC.createThis(),e);FT(r.expression,r),FT(r,n),r.flowNode=n.returnFlowNode;return!iT($E(r,t,Sw(t)))}function FJ(e){lq(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),Iq(n,_a.Interface_declaration_cannot_have_implements_clause);if(t)return Iq(n,_a.extends_clause_already_seen);t=!0,gq(n)}}(e),Pq(e.parent)||Lq(e,_a._0_declarations_can_only_be_declared_inside_a_block,"interface"),hJ(e.typeParameters),a((()=>{gJ(e.name,_a.Interface_name_cannot_be_0),iM(e);const t=hs(e);yJ(t);const n=$u(t,264);if(e===n){const n=Tu(t),r=Td(n);if(function(e,t){const n=cu(e);if(n.length<2)return!0;const r=new Map;_(Zu(e).declaredProperties,(t=>{r.set(t.escapedName,{prop:t,containingType:e})}));let i=!0;for(const o of n){const n=$p(Td(o,e.thisType));for(const a of n){const n=r.get(a.escapedName);if(n){if(n.containingType!==e&&0===IC(n.prop,a,DS)){i=!1;const r=lc(n.containingType),s=lc(o);let c=ek(void 0,_a.Named_property_0_of_types_1_and_2_are_not_identical,sc(a),r,s);c=ek(c,_a.Interface_0_cannot_simultaneously_extend_types_1_and_2,lc(e),r,s),po.add(Jp(yd(t),t,c))}}else r.set(a.escapedName,{prop:a,containingType:o})}}return i}(n,e.name)){for(const t of cu(n))RS(r,Td(t,n.thisType),e.name,_a.Interface_0_incorrectly_extends_interface_1);pJ(n,t)}}BR(e)})),_(kh(e),(e=>{sb(e.expression)&&!hl(e.expression)||Ro(e.expression,_a.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),XR(e)})),_(e.members,QJ),a((()=>{JR(e),wM(e)}))}function EJ(e){const t=sa(e);if(!(1024&t.flags)){t.flags|=1024;let n,r=0;for(const t of e.members){const e=PJ(t,r,n);sa(t).enumMemberValue=e,r="number"==typeof e.value?e.value+1:void 0,n=t}}}function PJ(e,t,n){if(Ip(e.name))Ro(e.name,_a.Computed_property_names_are_not_allowed_in_enums);else{const t=Lp(e.name);zT(t)&&!RT(t)&&Ro(e.name,_a.An_enum_member_cannot_have_a_numeric_name)}if(e.initializer)return function(e){const t=ef(e.parent),n=e.initializer,r=we(n,e);void 0!==r.value?t&&"number"==typeof r.value&&!isFinite(r.value)?Ro(n,isNaN(r.value)?_a.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:_a.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):Sk(j)&&"string"==typeof r.value&&!r.isSyntacticallyString&&Ro(n,_a._0_has_a_string_type_but_must_have_syntactically_recognizable_string_syntax_when_isolatedModules_is_enabled,`${gc(e.parent.name)}.${Lp(e.name)}`):t?Ro(n,_a.const_enum_member_initializers_must_be_constant_expressions):33554432&e.parent.flags?Ro(n,_a.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):RS(IR(n),Wt,n,_a.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values);return r}(e);if(33554432&e.parent.flags&&!ef(e.parent))return gC(void 0);if(void 0===t)return Ro(e.name,_a.Enum_member_must_have_initializer),gC(void 0);if(Sk(j)&&(null==n?void 0:n.initializer)){const t=qz(n);("number"!=typeof t.value||t.resolvedOtherFiles)&&Ro(e.name,_a.Enum_member_following_a_non_literal_numeric_member_must_have_an_initializer_when_isolatedModules_is_enabled)}return gC(t)}function AJ(e,t){const n=Xa(e,111551,!0);if(!n)return gC(void 0);if(80===e.kind){const t=e;if(RT(t.escapedText)&&n===Ky(t.escapedText,111551,void 0))return gC(+t.escapedText,!1)}if(8&n.flags)return t?IJ(e,n,t):qz(n.valueDeclaration);if(sP(n)){const e=n.valueDeclaration;if(e&&HF(e)&&!e.type&&e.initializer&&(!t||e!==t&&la(e,t))){const n=we(e.initializer,e);return t&&yd(t)!==yd(e)?gC(n.value,!1,!0,!0):gC(n.value,n.isSyntacticallyString,n.resolvedOtherFiles,!0)}}return gC(void 0)}function IJ(e,t,n){const r=t.valueDeclaration;if(!r||r===n)return Ro(e,_a.Property_0_is_used_before_being_assigned,sc(t)),gC(void 0);if(!la(r,n))return Ro(e,_a.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),gC(0);const i=qz(r);return n.parent!==r.parent?gC(i.value,i.isSyntacticallyString,i.resolvedOtherFiles,!0):i}function OJ(e){a((()=>function(e){lq(e),QM(e,e.name),iM(e),e.members.forEach(LJ),EJ(e);const t=hs(e),n=$u(t,e.kind);if(e===n){if(t.declarations&&t.declarations.length>1){const n=ef(e);_(t.declarations,(e=>{ZF(e)&&ef(e)!==n&&Ro(Cc(e),_a.Enum_declarations_must_all_be_const_or_non_const)}))}let n=!1;_(t.declarations,(e=>{if(266!==e.kind)return!1;const t=e;if(!t.members.length)return!1;const r=t.members[0];r.initializer||(n?Ro(r.name,_a.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):n=!0)}))}}(e)))}function LJ(e){WN(e.name)&&Ro(e,_a.An_enum_member_cannot_be_named_with_a_private_identifier),e.initializer&&IR(e.initializer)}function jJ(t){t.body&&(QJ(t.body),dp(t)||wM(t)),a((function(){var n,r;const i=dp(t),o=33554432&t.flags;i&&!o&&Ro(t.name,_a.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const a=sp(t),s=a?_a.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:_a.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if($J(t,s))return;lq(t)||o||11!==t.name.kind||Lq(t.name,_a.Only_ambient_modules_can_use_quoted_names);if(VN(t.name)&&(QM(t,t.name),!(2080&t.flags))){const e=yd(t),n=Kp(e,qd(t));fo.add(Xx(e,n.start,n.length,_a.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead))}iM(t);const c=hs(t);if(512&c.flags&&!o&&KB(t,Ek(j))){if(Sk(j)&&!yd(t).externalModuleIndicator&&Ro(t.name,_a.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,Re),(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((263===e.kind||262===e.kind&&Nd(e.body))&&!(33554432&e.flags))return e}(c);e&&(yd(t)!==yd(e)?Ro(t.name,_a.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):t.pos<e.pos&&Ro(t.name,_a.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));const n=$u(c,263);n&&function(e,t){const n=Fp(e),r=Fp(t);return Qp(n)?Qp(r):!Qp(r)&&n===r}(t,n)&&(sa(t).flags|=2048)}if(j.verbatimModuleSyntax&&307===t.parent.kind&&1===e.getEmitModuleFormatOfFile(t.parent)){const e=null==(r=t.modifiers)?void 0:r.find((e=>95===e.kind));e&&Ro(e,_a.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(a)if(pp(t)){if((i||33554432&hs(t).flags)&&t.body)for(const e of t.body.statements)RJ(e,i)}else Qp(t.parent)?i?Ro(t.name,_a.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Cs(qh(t.name))&&Ro(t.name,_a.Ambient_module_declaration_cannot_specify_relative_module_name):Ro(t.name,i?_a.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:_a.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}))}function RJ(e,t){switch(e.kind){case 243:for(const n of e.declarationList.declarations)RJ(n,t);break;case 277:case 278:Iq(e,_a.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:if(Nm(e))break;case 272:Iq(e,_a.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const n=e.name;if(k_(n)){for(const e of n.elements)RJ(e,t);break}case 263:case 266:case 262:case 264:case 267:case 265:if(t)return}}function MJ(e){const t=kg(e);if(!t||wd(t))return!1;if(!NN(t))return Ro(t,_a.String_literal_expected),!1;const n=268===e.parent.kind&&sp(e.parent.parent);if(307!==e.parent.kind&&!n)return Ro(t,278===e.kind?_a.Export_declarations_are_not_permitted_in_a_namespace:_a.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(n&&Cs(t.text)&&!Ac(e))return Ro(e,_a.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!iE(e)&&e.attributes){const t=118===e.attributes.token?_a.Import_attribute_values_must_be_string_literal_expressions:_a.Import_assertion_values_must_be_string_literal_expressions;let n=!1;for(const r of e.attributes.elements)NN(r.value)||(n=!0,Ro(r.value,t));return!n}return!0}function BJ(e,t=!0){void 0!==e&&11===e.kind&&(t?5!==z&&6!==z||Lq(e,_a.String_literal_import_and_export_names_are_not_supported_when_the_module_flag_is_set_to_es2015_or_es2020):Lq(e,_a.Identifier_expected))}function JJ(t){var n,r,i,o;let a=hs(t);const s=qa(a);if(s!==xt){if(a=fs(a.exportSymbol||a),Em(t)&&!(111551&s.flags)&&!zl(t)){const e=Ml(t)?t.propertyName||t.name:Sc(t)?t.name:t;if(_n.assert(280!==t.kind),281===t.kind){const o=Ro(e,_a.Types_cannot_appear_in_export_declarations_in_JavaScript_files),a=null==(r=null==(n=yd(t).symbol)?void 0:n.exports)?void 0:r.get($d(t.propertyName||t.name));if(a===s){const e=null==(i=a.declarations)?void 0:i.find(Su);e&&sT(o,Rp(e,_a._0_is_automatically_exported_here,mc(a.escapedName)))}}else{_n.assert(260!==t.kind);const n=uc(t,Zt(oE,iE)),r=(n&&(null==(o=yg(n))?void 0:o.text))??"...",i=mc(VN(e)?e.escapedText:a.escapedName);Ro(e,_a._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,i,`import("${r}").${i}`)}return}const c=Ua(s);if(c&((1160127&a.flags?111551:0)|(788968&a.flags?788968:0)|(1920&a.flags?1920:0))){Ro(t,281===t.kind?_a.Export_declaration_conflicts_with_exported_declaration_of_0:_a.Import_declaration_conflicts_with_local_declaration_of_0,sc(a))}else if(281!==t.kind){j.isolatedModules&&!uc(t,zl)&&1160127&a.flags&&Ro(t,_a.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,sc(a),Re)}if(Sk(j)&&!zl(t)&&!(33554432&t.flags)){const n=Ha(a),r=!(111551&c);if(r||n)switch(t.kind){case 273:case 276:case 271:if(j.verbatimModuleSyntax){_n.assertIsDefined(t.name,"An ImportClause with a symbol should have a name");const e=j.verbatimModuleSyntax&&Nm(t)?_a.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:r?_a._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:_a._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled,i=Wd(276===t.kind&&t.propertyName||t.name);pa(Ro(t,e,i),r?void 0:n,i)}r&&271===t.kind&&Nv(t,32)&&Ro(t,_a.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Re);break;case 281:if(j.verbatimModuleSyntax||yd(n)!==yd(t)){const e=Wd(t.propertyName||t.name);pa(r?Ro(t,_a.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Re):Ro(t,_a._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,e,Re),r?void 0:n,e);break}}if(j.verbatimModuleSyntax&&271!==t.kind&&!Em(t)&&1===e.getEmitModuleFormatOfFile(yd(t))?Ro(t,_a.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled):200===z&&271!==t.kind&&260!==t.kind&&1===e.getEmitModuleFormatOfFile(yd(t))&&Ro(t,_a.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_module_is_set_to_preserve),j.verbatimModuleSyntax&&!zl(t)&&!(33554432&t.flags)&&128&c){const n=s.valueDeclaration,r=e.getRedirectReferenceForResolutionFromSourceOfProject(yd(n).resolvedPath);!(33554432&n.flags)||r&&Ek(r.commandLine.options)||Ro(t,_a.Cannot_access_ambient_const_enums_when_0_is_enabled,Re)}}if(mE(t)){const e=zJ(a,t);Uo(e)&&e.declarations&&Wo(t,e.declarations,e.escapedName)}}}function zJ(e,t){if(!(2097152&e.flags)||Uo(e)||!xa(e))return e;const n=qa(e);if(n===xt)return n;for(;2097152&e.flags;){const r=aI(e);if(!r)break;if(r===n)break;if(r.declarations&&l(r.declarations)){if(Uo(r)){Wo(t,r.declarations,r.escapedName);break}if(e===n)break;e=r}}return n}function qJ(t){QM(t,t.name),JJ(t),276===t.kind&&(BJ(t.propertyName),Hd(t.propertyName||t.name)&&Tk(j)&&e.getEmitModuleFormatOfFile(yd(t))<4&&sq(t,131072))}function UJ(e){var t;const n=e.attributes;if(n){const r=tv(!0);r!==Nn&&RS(Hl(n),xw(r,32768),n);const i=nV(e),o=aV(n,i?Lq:void 0),a=118===e.attributes.token;if(i&&o)return;if(!Jk(z))return Lq(n,a?_a.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve:_a.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_node18_nodenext_or_preserve);if(e.moduleSpecifier&&1===Na(e.moduleSpecifier))return Lq(n,a?_a.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:_a.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls);if(OP(e)||(oE(e)?null==(t=e.importClause)?void 0:t.isTypeOnly:e.isTypeOnly))return Lq(n,a?_a.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:_a.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(o)return Lq(n,_a.resolution_mode_can_only_be_set_for_type_only_imports)}}function VJ(t){if(!$J(t,Em(t)?_a.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:_a.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!lq(t)&&t.modifiers&&Iq(t,_a.An_import_declaration_cannot_have_modifiers),MJ(t)){let n;const r=t.importClause;r&&!function(e){var t;if(e.isTypeOnly&&e.name&&e.namedBindings)return Lq(e,_a.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);if(e.isTypeOnly&&275===(null==(t=e.namedBindings)?void 0:t.kind))return Bq(e.namedBindings);return!1}(r)?(r.name&&qJ(r),r.namedBindings&&(274===r.namedBindings.kind?(qJ(r.namedBindings),e.getEmitModuleFormatOfFile(yd(t))<4&&Tk(j)&&sq(t,65536)):(n=Za(t,t.moduleSpecifier),n&&_(r.namedBindings.elements,qJ))),!r.isTypeOnly&&101<=z&&z<=199&&Da(t.moduleSpecifier,n)&&!function(e){return!!e.attributes&&e.attributes.elements.some((e=>{var t;return"type"===qh(e.name)&&"json"===(null==(t=et(e.value,ju))?void 0:t.text)}))}(t)&&Ro(t.moduleSpecifier,_a.Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0,pi[z])):de&&!r&&Za(t,t.moduleSpecifier)}UJ(t)}}function WJ(t){if(!$J(t,Em(t)?_a.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:_a.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!lq(t)&&wv(t)&&Iq(t,_a.An_export_declaration_cannot_have_modifiers),function(e){var t;if(e.isTypeOnly&&279===(null==(t=e.exportClause)?void 0:t.kind))return Bq(e.exportClause)}(t),!t.moduleSpecifier||MJ(t))if(t.exportClause&&!pE(t.exportClause)){_(t.exportClause.elements,HJ);const e=268===t.parent.kind&&sp(t.parent.parent),n=!e&&268===t.parent.kind&&!t.moduleSpecifier&&33554432&t.flags;307===t.parent.kind||e||n||Ro(t,_a.Export_declarations_are_not_permitted_in_a_namespace)}else{const n=Za(t,t.moduleSpecifier);n&&as(n)?Ro(t.moduleSpecifier,_a.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,sc(n)):t.exportClause&&(JJ(t.exportClause),BJ(t.exportClause.name)),e.getEmitModuleFormatOfFile(yd(t))<4&&(t.exportClause?Tk(j)&&sq(t,65536):sq(t,32768))}UJ(t)}}function $J(e,t){const n=307===e.parent.kind||268===e.parent.kind||267===e.parent.kind;return n||Iq(e,t),!n}function HJ(t){JJ(t);const n=void 0!==t.parent.parent.moduleSpecifier;if(BJ(t.propertyName,n),BJ(t.name),Fk(j)&&Bc(t.propertyName||t.name,!0),n)Tk(j)&&e.getEmitModuleFormatOfFile(yd(t))<4&&Hd(t.propertyName||t.name)&&sq(t,131072);else{const e=t.propertyName||t.name;if(11===e.kind)return;const n=Ue(e,e.escapedText,2998271,void 0,!0);n&&(n===De||n===Fe||n.declarations&&Qp(Vc(n.declarations[0])))?Ro(e,_a.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,gc(e)):bP(t,7)}}function GJ(e){const t=hs(e),n=aa(t);if(!n.exportsChecked){const e=t.exports.get("export=");if(e&&function(e){return nd(e.exports,((e,t)=>"export="!==t))}(t)){const t=xa(e)||e.valueDeclaration;!t||Ac(t)||Em(t)||Ro(t,_a.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const r=us(t);r&&r.forEach((({declarations:e,flags:t},n)=>{if("__export"===n)return;if(1920&t)return;const r=T(e,Yt(qB,en(QF)));if(!(524288&t&&r<=2)&&r>1&&!XJ(e))for(const t of e)XB(t)&&po.add(Rp(t,_a.Cannot_redeclare_exported_variable_0,mc(n)))})),n.exportsChecked=!0}}function XJ(e){return e&&e.length>1&&e.every((e=>Em(e)&&Tx(e)&&(Ym(e.expression)||eg(e.expression))))}function QJ(n){if(n){const i=r;r=n,S=0,function(n){if(8388608&Jz(n))return;Lg(n)&&_(n.jsDoc,(({comment:e,tags:t})=>{YJ(e),_(t,(e=>{YJ(e.comment),Em(n)&&QJ(e)}))}));const r=n.kind;if(t)switch(r){case 267:case 263:case 264:case 262:t.throwIfCancellationRequested()}r>=243&&r<=259&&Og(n)&&n.flowNode&&!DE(n.flowNode)&&Bo(!1===j.allowUnreachableCode,n,_a.Unreachable_code_detected);switch(r){case 168:return OR(n);case 169:return LR(n);case 172:return zR(n);case 171:return function(e){return WN(e.name)&&Ro(e,_a.Private_identifiers_are_not_allowed_outside_class_bodies),zR(e)}(n);case 185:case 184:case 179:case 180:case 181:return RR(n);case 174:case 173:return function(e){Cq(e)||yq(e.name),pD(e)&&e.asteriskToken&&VN(e.name)&&"constructor"===gc(e.name)&&Ro(e.name,_a.Class_constructor_may_not_be_a_generator),CM(e),Dv(e,64)&&174===e.kind&&e.body&&Ro(e,_a.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,Pp(e.name)),WN(e.name)&&!Xf(e)&&Ro(e,_a.Private_identifiers_are_not_allowed_outside_class_bodies),qR(e)}(n);case 175:return function(e){lq(e),RI(e,QJ)}(n);case 176:return UR(n);case 177:case 178:return WR(n);case 183:return XR(n);case 182:return function(e){const t=function(e){switch(e.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const t=e.parent;if(e===t.type)return t}}(e);if(!t)return void Ro(e,_a.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);const n=Pg(t),r=Kg(n);if(!r)return;QJ(e.type);const{parameterName:i}=e;if(0!==r.kind&&2!==r.kind)if(r.parameterIndex>=0){if(ZB(n)&&r.parameterIndex===n.parameters.length-1)Ro(i,_a.A_type_predicate_cannot_reference_a_rest_parameter);else if(r.type){const t=()=>ek(void 0,_a.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);RS(r.type,F_(n.parameters[r.parameterIndex]),e.type,void 0,t)}}else if(i){let n=!1;for(const{name:e}of t.parameters)if(k_(e)&&jR(e,i,r.parameterName)){n=!0;break}n||Ro(e.parameterName,_a.Cannot_find_parameter_0,r.parameterName)}}(n);case 186:return function(e){Uy(e)}(n);case 187:return function(e){_(e.members,QJ),a((function(){const t=ak(e);pJ(t,t.symbol),JR(e),BR(e)}))}(n);case 188:return function(e){QJ(e.elementType)}(n);case 189:return function(e){let t=!1,n=!1;for(const r of e.elements){let e=Vv(r);if(8&e){const t=Bk(r.type);if(!qC(t)){Ro(r,_a.A_rest_element_type_must_be_an_array_type);break}(RC(t)||lw(t)&&4&t.target.combinedFlags)&&(e|=4)}if(4&e){if(n){Lq(r,_a.A_rest_element_cannot_follow_another_rest_element);break}n=!0}else if(2&e){if(n){Lq(r,_a.An_optional_element_cannot_follow_a_rest_element);break}t=!0}else if(1&e&&t){Lq(r,_a.A_required_element_cannot_follow_an_optional_element);break}}_(e.elements,QJ),Bk(e)}(n);case 192:case 193:return function(e){_(e.types,QJ),Bk(e)}(n);case 196:case 190:case 191:return QJ(n.type);case 197:return function(e){Ik(e)}(n);case 198:return eM(n);case 194:return function(e){RI(e,QJ)}(n);case 195:return function(e){uc(e,(e=>e.parent&&194===e.parent.kind&&e.parent.extendsType===e))||Lq(e,_a.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),QJ(e.typeParameter);const t=hs(e.typeParameter);if(t.declarations&&t.declarations.length>1){const e=aa(t);if(!e.typeParametersChecked){e.typeParametersChecked=!0;const n=ku(t),r=Hu(t,168);if(!vJ(r,[n],(e=>[e]))){const e=sc(t);for(const t of r)Ro(t.name,_a.All_declarations_of_0_must_have_identical_constraints,e)}}}wM(e)}(n);case 203:return function(e){for(const t of e.templateSpans)QJ(t.type),RS(Bk(t.type),vn,t.type);Bk(e)}(n);case 205:return function(e){QJ(e.argument),e.attributes&&aV(e.attributes,Lq),QR(e)}(n);case 202:return function(e){e.dotDotDotToken&&e.questionToken&&Lq(e,_a.A_tuple_member_cannot_be_both_optional_and_rest),190===e.type.kind&&Lq(e.type,_a.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),191===e.type.kind&&Lq(e.type,_a.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),QJ(e.type),Bk(e)}(n);case 328:return function(e){const t=Ug(e);if(!t||!XF(t)&&!gF(t))return void Ro(t,_a.JSDoc_0_is_not_attached_to_a_class,gc(e.tagName));const n=ol(t).filter(_P);_n.assert(n.length>0),n.length>1&&Ro(n[1],_a.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const r=TM(e.class.expression),i=vh(t);if(i){const t=TM(i.expression);t&&r.escapedText!==t.escapedText&&Ro(r,_a.JSDoc_0_1_does_not_match_the_extends_2_clause,gc(e.tagName),gc(r),gc(t))}}(n);case 329:return function(e){const t=Ug(e);t&&(XF(t)||gF(t))||Ro(t,_a.JSDoc_0_is_not_attached_to_a_class,gc(e.tagName))}(n);case 346:case 338:case 340:return function(e){e.typeExpression||Ro(e.name,_a.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),e.name&&gJ(e.name,_a.Type_alias_name_cannot_be_0),QJ(e.typeExpression),hJ(_l(e))}(n);case 345:return function(e){QJ(e.constraint);for(const t of e.typeParameters)QJ(t)}(n);case 344:return function(e){QJ(e.typeExpression)}(n);case 324:case 325:case 326:return function(e){e.name&&gz(e.name,!0)}(n);case 341:case 348:return function(e){QJ(e.typeExpression)}(n);case 317:!function(e){a((function(){e.type||Ng(e)||$w(e,wt)})),RR(e)}(n);case 315:case 314:case 312:case 313:case 322:return ZJ(n),void RI(n,QJ);case 318:return void function(e){ZJ(e),QJ(e.type);const{parent:t}=e;if(cD(t)&&iP(t.parent))return void(ye(t.parent.parameters)!==t&&Ro(e,_a.A_rest_parameter_must_be_last_in_a_parameter_list));HE(t)||Ro(e,_a.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const n=e.parent.parent;if(!SP(n))return void Ro(e,_a.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const r=Bg(n);if(!r)return;const i=qg(n);i&&ye(i.parameters).symbol===r||Ro(e,_a.A_rest_parameter_must_be_last_in_a_parameter_list)}(n);case 309:return QJ(n.type);case 333:case 335:case 334:return function(e){const t=Vg(e);t&&Kl(t)&&Ro(e,_a.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}(n);case 350:return function(e){QJ(e.typeExpression);const t=Ug(e);if(t){const e=sl(t,AP);if(l(e)>1)for(let t=1;t<l(e);t++){const n=e[t].tagName;Ro(n,_a._0_tag_already_specified,gc(n))}}}(n);case 343:return function(e){const t=Ug(e);t&&iF(t)&&Ro(e.tagName,_a.An_arrow_function_cannot_have_a_this_parameter)}(n);case 351:return function(e){UJ(e)}(n);case 199:return function(e){QJ(e.objectType),QJ(e.indexType),YR(zx(e),e)}(n);case 200:return ZR(n);case 262:return function(e){a((function(){CM(e),vq(e),QM(e,e.name)}))}(n);case 241:case 268:return VM(n);case 243:return aB(n);case 244:return function(e){Rq(e),IR(e.expression)}(n);case 245:return function(e){Rq(e);const t=_B(e.expression);sB(e.expression,t,e.thenStatement),QJ(e.thenStatement),242===e.thenStatement.kind&&Ro(e.thenStatement,_a.The_body_of_an_if_statement_cannot_be_the_empty_statement),QJ(e.elseStatement)}(n);case 246:return function(e){Rq(e),QJ(e.statement),_B(e.expression)}(n);case 247:return function(e){Rq(e),_B(e.expression),QJ(e.statement)}(n);case 248:return function(e){Rq(e)||e.initializer&&261===e.initializer.kind&&Eq(e.initializer),e.initializer&&(261===e.initializer.kind?iB(e.initializer):IR(e.initializer)),e.condition&&_B(e.condition),e.incrementor&&IR(e.incrementor),QJ(e.statement),e.locals&&wM(e)}(n);case 249:return dB(n);case 250:return function(e){kq(e);const t=Yf(e);e.awaitModifier?t&&fD(t)?Lq(e.awaitModifier,_a.for_await_loops_cannot_be_used_inside_a_class_static_block):2==(6&Oh(t))&&M<Ni.ForAwaitOf&&sq(e,16384):j.downlevelIteration&&M<Ni.ForOf&&sq(e,256);if(261===e.initializer.kind)iB(e.initializer);else{const t=e.initializer,n=pB(e);if(209===t.kind||210===t.kind)nR(t,n||Et);else{const r=IR(t);qj(t,_a.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,_a.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),n&&MS(n,r,t,e.expression)}}QJ(e.statement),e.locals&&wM(e)}(n);case 251:case 252:return oJ(n);case 253:return function(e){if(Rq(e))return;const t=Yf(e);if(t&&fD(t))return void Iq(e,_a.A_return_statement_cannot_be_used_inside_a_class_static_block);if(!t)return void Iq(e,_a.A_return_statement_can_only_be_used_within_a_function_body);const n=Zg(Pg(t));if(G||e.expression||131072&n.flags){const r=e.expression?uR(e.expression):jt;if(178===t.kind)e.expression&&Ro(e,_a.Setters_cannot_return_a_value);else if(176===t.kind){const t=e.expression?uR(e.expression):jt;e.expression&&!MS(t,n,e,e.expression)&&Ro(e,_a.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class)}else th(t)&&cJ(t,aJ(n,Oh(t))??n,e,e.expression,r)}else 176!==t.kind&&j.noImplicitReturns&&!sJ(t,n)&&Ro(e,_a.Not_all_code_paths_return_a_value)}(n);case 254:return function(e){Rq(e)||65536&e.flags&&Iq(e,_a.with_statements_are_not_allowed_in_an_async_function_block),IR(e.expression);const t=yd(e);if(!Aq(t)){const n=Kp(t,e.pos).start;Oq(t,n,e.statement.pos-n,_a.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}(n);case 255:return function(e){let t;Rq(e);let n=!1;const r=IR(e.expression);_(e.caseBlock.clauses,(e=>{var i;297!==e.kind||n||(void 0===t?t=e:(Lq(e,_a.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),n=!0)),296===e.kind&&a((i=e,()=>{const e=IR(i.expression);iR(r,e)||KS(e,r,i.expression,void 0)})),_(e.statements,QJ),j.noFallthroughCasesInSwitch&&e.fallthroughFlowNode&&DE(e.fallthroughFlowNode)&&Ro(e,_a.Fallthrough_case_in_switch)})),e.caseBlock.locals&&wM(e.caseBlock)}(n);case 256:return function(e){Rq(e)||uc(e.parent,(t=>r_(t)?"quit":256===t.kind&&t.label.escapedText===e.label.escapedText&&(Lq(e.label,_a.Duplicate_label_0,Gd(e.label)),!0))),QJ(e.statement)}(n);case 257:return uJ(n);case 258:return function(e){Rq(e),VM(e.tryBlock);const t=e.catchClause;if(t){if(t.variableDeclaration){const e=t.variableDeclaration;ZM(e);const n=fv(e);if(n){const e=Bk(n);!e||3&e.flags||Iq(n,_a.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(e.initializer)Iq(e.initializer,_a.Catch_clause_variable_cannot_have_an_initializer);else{const e=t.block.locals;e&&rd(t.locals,(t=>{const n=e.get(t);(null==n?void 0:n.valueDeclaration)&&2&n.flags&&Lq(n.valueDeclaration,_a.Cannot_redeclare_identifier_0_in_catch_clause,mc(t))}))}}VM(t.block)}e.finallyBlock&&VM(e.finallyBlock)}(n);case 260:return nB(n);case 208:return rB(n);case 263:return function(e){const t=y(e.modifiers,lD);q&&t&&V(e.members,(e=>Ev(e)&&Kl(e)))&&Lq(t,_a.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),e.name||Dv(e,2048)||Iq(e,_a.A_class_declaration_without_the_default_modifier_must_have_a_name),xJ(e),_(e.members,QJ),wM(e)}(n);case 264:return FJ(n);case 265:return function(e){if(lq(e),gJ(e.name,_a.Type_alias_name_cannot_be_0),Pq(e.parent)||Lq(e,_a._0_declarations_can_only_be_declared_inside_a_block,"type"),iM(e),hJ(e.typeParameters),141===e.type.kind){const t=l(e.typeParameters);(0===t?"BuiltinIteratorReturn"===e.name.escapedText:1===t&&UB.has(e.name.escapedText))||Ro(e.type,_a.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types)}else QJ(e.type),wM(e)}(n);case 266:return OJ(n);case 267:return jJ(n);case 272:return VJ(n);case 271:return function(e){if(!$J(e,Em(e)?_a.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:_a.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(lq(e),Nm(e)||MJ(e)))if(qJ(e),bP(e,6),283!==e.moduleReference.kind){const t=qa(hs(e));if(t!==xt){const n=Ua(t);if(111551&n){const t=cb(e.moduleReference);1920&Xa(t,112575).flags||Ro(t,_a.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,Pp(t))}788968&n&&gJ(e.name,_a.Import_name_cannot_be_0)}e.isTypeOnly&&Lq(e,_a.An_import_alias_cannot_use_import_type)}else!(5<=z&&z<=99)||e.isTypeOnly||33554432&e.flags||Lq(e,_a.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 278:return WJ(n);case 277:return function(t){if($J(t,t.isExportEquals?_a.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:_a.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration))return;const n=307===t.parent.kind?t.parent:t.parent.parent;if(267===n.kind&&!sp(n))return void(t.isExportEquals?Ro(t,_a.An_export_assignment_cannot_be_used_in_a_namespace):Ro(t,_a.A_default_export_can_only_be_used_in_an_ECMAScript_style_module));!lq(t)&&Cv(t)&&Iq(t,_a.An_export_assignment_cannot_have_modifiers);const r=fv(t);r&&RS(uR(t.expression),Bk(r),t.expression);const i=!t.isExportEquals&&!(33554432&t.flags)&&j.verbatimModuleSyntax&&1===e.getEmitModuleFormatOfFile(yd(t));if(80===t.expression.kind){const e=t.expression,n=ws(Xa(e,-1,!0,!0,t));if(n){bP(t,3);const r=Ha(n,111551);if(111551&Ua(n)?(uR(e),i||33554432&t.flags||!j.verbatimModuleSyntax||!r||Ro(e,t.isExportEquals?_a.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:_a.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,gc(e))):i||33554432&t.flags||!j.verbatimModuleSyntax||Ro(e,t.isExportEquals?_a.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:_a.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,gc(e)),!i&&!(33554432&t.flags)&&Sk(j)&&!(111551&n.flags)){const i=Ua(n,!1,!0);!(2097152&n.flags&&788968&i)||111551&i||r&&yd(r)===yd(t)?r&&yd(r)!==yd(t)&&pa(Ro(e,t.isExportEquals?_a._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._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,gc(e),Re),r,gc(e)):Ro(e,t.isExportEquals?_a._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._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,gc(e),Re)}}else uR(e);Fk(j)&&Bc(e,!0)}else uR(t.expression);i&&Ro(t,_a.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),GJ(n),33554432&t.flags&&!sb(t.expression)&&Lq(t.expression,_a.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),t.isExportEquals&&(z>=5&&200!==z&&(33554432&t.flags&&99===e.getImpliedNodeFormatForEmit(yd(t))||!(33554432&t.flags)&&1!==e.getImpliedNodeFormatForEmit(yd(t)))?Lq(t,_a.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):4!==z||33554432&t.flags||Lq(t,_a.Export_assignment_is_not_supported_when_module_flag_is_system))}(n);case 242:case 259:return void Rq(n);case 282:(function(e){SM(e)})(n)}}(n),r=i}}function YJ(e){Xe(e)&&_(e,(e=>{Ru(e)&&QJ(e)}))}function ZJ(e){if(!Em(e))if(nP(e)||tP(e)){const t=Fa(nP(e)?54:58),n=e.postfix?_a._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:_a._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,r=Bk(e.type);Lq(e,n,t,lc(tP(e)&&r!==un&&r!==ln?jb(re([r,jt],e.postfix?void 0:qt)):r))}else Lq(e,_a.JSDoc_types_can_only_be_used_inside_documentation_comments)}function ez(e){const t=sa(yd(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=sa(e);t.deferredNodes&&t.deferredNodes.forEach(rz),t.deferredNodes=void 0}function rz(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,S=0,e.kind){case 213:case 214:case 215:case 170:case 286:IO(e);break;case 218:case 219:case 174:case 173:!function(e){_n.assert(174!==e.kind||Bf(e));const t=Oh(e),n=th(e);if(jj(e,n),e.body)if(gv(e)||Zg(Pg(e)),241===e.body.kind)QJ(e.body);else{const r=IR(e.body),i=n&&aJ(n,t);i&&cJ(e,i,e.body,e.body,r)}}(e);break;case 177:case 178:WR(e);break;case 231:!function(e){_(e.members,QJ),wM(e)}(e);break;case 168:!function(e){var t,n;if(QF(e.parent)||u_(e.parent)||YF(e.parent)){const r=ku(hs(e)),o=24576&pC(r);if(o){const a=hs(e.parent);if(!YF(e.parent)||48&hx(Tu(a))){if(8192===o||16384===o){null==(t=$n)||t.push($n.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Nb(Tu(a)),id:Nb(r)});const s=aC(a,r,16384===o?Un:qn),c=aC(a,r,16384===o?qn:Un),l=r;i=r,RS(s,c,e,_a.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),i=l,null==(n=$n)||n.pop()}}else Ro(e,_a.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(e);break;case 285:!function(e){II(e)}(e);break;case 284:!function(e){II(e.openingElement),fI(e.closingElement.tagName)?bI(e.closingElement):IR(e.closingElement.tagName),hI(e)}(e);break;case 216:case 234:case 217:!function(e){const{type:t}=BL(e),n=nF(e)?t:e,r=sa(e);_n.assertIsDefined(r.assertionExpressionType);const i=Ow(nw(r.assertionExpressionType)),o=Bk(t);Gc(o)||a((()=>{const e=Uw(i);LS(o,e)||KS(i,o,n,_a.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 222:IR(e.expression);break;case 226:gb(e)&&IO(e)}r=o,null==(n=$n)||n.pop()}function iz(t,n){var r,i;null==(r=$n)||r.push($n.Phase.Check,n?"checkSourceFileNodes":"checkSourceFile",{path:t.path},!0);const o=n?"beforeCheckNodes":"beforeCheck",s=n?"afterCheckNodes":"afterCheck";er(o),n?function(t,n){const r=sa(t);if(!(1&r.flags)){if(uT(t,j,e))return;jq(t),N(ro),N(io),N(oo),N(ao),N(so),_(n,QJ),tz(t),(r.potentialThisCollisions||(r.potentialThisCollisions=[])).push(...ro),(r.potentialNewTargetCollisions||(r.potentialNewTargetCollisions=[])).push(...io),(r.potentialWeakMapSetCollisions||(r.potentialWeakMapSetCollisions=[])).push(...oo),(r.potentialReflectCollisions||(r.potentialReflectCollisions=[])).push(...ao),(r.potentialUnusedRenamedBindingElementsInTypes||(r.potentialUnusedRenamedBindingElementsInTypes=[])).push(...so),r.flags|=8388608;for(const e of n){sa(e).flags|=8388608}}}(t,n):function(t){const n=sa(t);if(!(1&n.flags)){if(uT(t,j,e))return;jq(t),N(ro),N(io),N(oo),N(ao),N(so),8388608&n.flags&&(ro=n.potentialThisCollisions,io=n.potentialNewTargetCollisions,oo=n.potentialWeakMapSetCollisions,ao=n.potentialReflectCollisions,so=n.potentialUnusedRenamedBindingElementsInTypes),_(t.statements,QJ),QJ(t.endOfFileToken),tz(t),Yp(t)&&wM(t),a((()=>{t.isDeclarationFile||!j.noUnusedLocals&&!j.noUnusedParameters||NM(az(t),((e,t,n)=>{!hd(e)&&oz(t,!!(33554432&e.flags))&&po.add(n)})),t.isDeclarationFile||function(){var e;for(const t of so)if(!(null==(e=hs(t))?void 0:e.isReferenced)){const e=nc(t);_n.assert(Qh(e),"Only parameter declaration should be checked here");const n=Rp(t.name,_a._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,Pp(t.name),Pp(t.propertyName));e.type||sT(n,Xx(yd(e),e.end,0,_a.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,Pp(t.propertyName))),po.add(n)}}()})),Yp(t)&&GJ(t),ro.length&&(_(ro,$M),N(ro)),io.length&&(_(io,HM),N(io)),oo.length&&(_(oo,GM),N(oo)),ao.length&&(_(ao,XM),N(ao)),n.flags|=1}}(t),er(s),tr("Check",o,s),null==(i=$n)||i.pop()}function oz(e,t){if(t)return!1;switch(e){case 0:return!!j.noUnusedLocals;case 1:return!!j.noUnusedParameters;default:return _n.assertNever(e)}}function az(e){return xi.get(e.path)||s}function sz(n,r,i){try{return t=r,function(t,n){if(t){cz();const e=po.getGlobalDiagnostics(),r=e.length;lz(t,n);const i=po.getDiagnostics(t.fileName);if(n)return i;const o=po.getGlobalDiagnostics();if(o!==e){return $(ne(e,o,rk),i)}return 0===r&&o.length>0?$(o,i):i}return _(e.getSourceFiles(),(e=>lz(e))),po.getDiagnostics()}(n,i)}finally{t=void 0}}function cz(){for(const e of o)e();o=[]}function lz(e,t){cz();const n=a;a=e=>e(),iz(e,t),a=n}function _z(e){for(;166===e.parent.kind;)e=e.parent;return 183===e.parent.kind}function uz(e,t){let n,r=Xf(e);for(;r&&!(n=t(r));)r=Xf(r);return n}function dz(e,t){return!!uz(e,(e=>e===t))}function pz(e){return void 0!==function(e){for(;166===e.parent.kind;)e=e.parent;return 271===e.parent.kind?e.parent.moduleReference===e?e.parent:void 0:277===e.parent.kind&&e.parent.expression===e?e.parent:void 0}(e)}function fz(e){if(lh(e))return ys(e.parent);if(Em(e)&&211===e.parent.kind&&e.parent===e.parent.parent.left&&!WN(e)&&!GE(e)&&!function(e){if(110===e.expression.kind){const t=em(e,!1,!1);if(r_(t)){const e=ZP(t);if(e){const t=nA(e,LA(e,void 0));return t&&!Hc(t)}}}}(e.parent)){const t=function(e){switch(tg(e.parent.parent)){case 1:case 3:return ys(e.parent);case 5:if(XD(e.parent)&&Nx(e.parent)===e)return;case 4:case 2:return hs(e.parent.parent)}}(e);if(t)return t}if(277===e.parent.kind&&sb(e)){const t=Xa(e,2998271,!0);if(t&&t!==xt)return t}else if(e_(e)&&pz(e)){const t=Th(e,271);return _n.assert(void 0!==t),Ka(e,!0)}if(e_(e)){const t=function(e){let t=e.parent;for(;oD(t);)e=t,t=t.parent;if(t&&205===t.kind&&t.qualifier===e)return t}(e);if(t){Bk(t);const n=sa(e).resolvedSymbol;return n===xt?void 0:n}}for(;mb(e);)e=e.parent;if(function(e){for(;211===e.parent.kind;)e=e.parent;return 233===e.parent.kind}(e)){let t=0;233===e.parent.kind?(t=Cf(e)?788968:111551,ab(e.parent)&&(t|=111551)):t=1920,t|=2097152;const n=sb(e)?Xa(e,t,!0):void 0;if(n)return n}if(341===e.parent.kind)return Bg(e.parent);if(168===e.parent.kind&&345===e.parent.parent.kind){_n.assert(!Em(e));const t=$g(e.parent);return t&&t.symbol}if(bm(e)){if(wd(e))return;const t=uc(e,Zt(Ru,KE,GE)),n=t?901119:111551;if(80===e.kind){if(vm(e)&&fI(e)){const t=bI(e.parent);return t===xt?void 0:t}const r=Xa(e,n,!0,!0,qg(e));if(!r&&t){const t=uc(e,Zt(u_,QF));if(t)return gz(e,!0,hs(t))}if(r&&t){const t=Vg(e);if(t&&VE(t)&&t===r.valueDeclaration)return Xa(e,n,!0,!0,yd(t))||r}return r}if(WN(e))return sO(e);if(211===e.kind||166===e.kind){const n=sa(e);return n.resolvedSymbol?n.resolvedSymbol:(211===e.kind?(nO(e,0),n.resolvedSymbol||(n.resolvedSymbol=mz(uR(e.expression),Yb(e.name)))):rO(e,0),!n.resolvedSymbol&&t&&oD(e)?gz(e):n.resolvedSymbol)}if(GE(e))return gz(e)}else if(e_(e)&&_z(e)){const t=Xa(e,183===e.parent.kind?788968:1920,!1,!0);return t&&t!==xt?t:by(e)}return 182===e.parent.kind?Xa(e,1):void 0}function mz(e,t){const n=ig(e,t);if(n.length&&e.members){const t=Lh(Op(e).members);if(n===qm(e))return t;if(t){const r=aa(t),i=D(R(n,(e=>e.declaration)),$B).join(",");if(r.filteredIndexSymbolCache||(r.filteredIndexSymbolCache=new Map),r.filteredIndexSymbolCache.has(i))return r.filteredIndexSymbolCache.get(i);{const t=$o(131072,"__index");return t.declarations=R(n,(e=>e.declaration)),t.parent=e.aliasSymbol?e.aliasSymbol:e.symbol?e.symbol:hz(t.declarations[0].parent),r.filteredIndexSymbolCache.set(i,t),t}}}}function gz(e,t,n){if(e_(e)){const r=901119;let i=Xa(e,r,t,!0,qg(e));if(!i&&VN(e)&&n&&(i=fs(ca(_s(n),e.escapedText,r))),i)return i}const r=VN(e)?n:gz(e.left,t,n),i=VN(e)?e.escapedText:e.right.escapedText;if(r){const e=111551&r.flags&&fm(F_(r),"prototype");return fm(e?F_(e):Tu(r),i)}}function hz(e,t){if(WE(e))return VI(e)?fs(e.symbol):void 0;const{parent:n}=e,r=n.parent;if(!(67108864&e.flags)){if(QB(e)){const t=hs(n);return Ml(e.parent)&&e.parent.propertyName===e?aI(t):t}if(uh(e))return hs(n.parent);if(80===e.kind){if(pz(e))return fz(e);if(208===n.kind&&206===r.kind&&e===n.propertyName){const t=fm(yz(r),e.escapedText);if(t)return t}else if(kF(n)&&n.name===e)return 105===n.keywordToken&&"target"===gc(e)?$L(n).symbol:102===n.keywordToken&&"meta"===gc(e)?Zy().members.get("meta"):void 0}switch(e.kind){case 80:case 81:case 211:case 166:if(!uv(e))return fz(e);case 110:const i=em(e,!1,!1);if(r_(i)){const e=Pg(i);if(e.thisParameter)return e.thisParameter}if(xm(e))return IR(e).symbol;case 197:return Ik(e).symbol;case 108:return IR(e).symbol;case 137:const o=e.parent;return o&&176===o.kind?o.parent.symbol:void 0;case 11:case 15:if(Tm(e.parent.parent)&&Cm(e.parent.parent)===e||(272===e.parent.kind||278===e.parent.kind)&&e.parent.moduleSpecifier===e||Em(e)&&OP(e.parent)&&e.parent.moduleSpecifier===e||Em(e)&&Lm(e.parent,!1)||lf(e.parent)||zD(e.parent)&&uf(e.parent.parent)&&e.parent.parent.argument===e.parent)return Za(e,e,t);if(YD(n)&&ng(n)&&n.arguments[1]===e)return hs(n);case 9:const a=QD(n)?n.argumentExpression===e?ER(n.expression):void 0:zD(n)&&BD(r)?Bk(r.objectType):void 0;return a&&fm(a,fc(e.text));case 90:case 100:case 39:case 86:return ys(e.parent);case 205:return uf(e)?hz(e.argument.literal,t):void 0;case 95:return gE(e.parent)?_n.checkDefined(e.parent.symbol):void 0;case 102:case 105:return kF(e.parent)?WL(e.parent).symbol:void 0;case 104:if(uF(e.parent)){const t=ER(e.parent.right),n=Yj(t);return(null==n?void 0:n.symbol)??t.symbol}return;case 236:return IR(e).symbol;case 295:if(vm(e)&&fI(e)){const t=bI(e.parent);return t===xt?void 0:t}default:return}}}function yz(e){if(WE(e)&&!VI(e))return Et;if(67108864&e.flags)return Et;const t=rb(e),n=t&&du(hs(t.class));if(Cf(e)){const t=Bk(e);return n?Td(t,n.thisType):t}if(bm(e))return bz(e);if(n&&!t.isImplements){const e=pe(cu(n));return e?Td(e,n.thisType):Et}if(WT(e)){return Tu(hs(e))}if(80===(r=e).kind&&WT(r.parent)&&Cc(r.parent)===r){const t=hz(e);return t?Tu(t):Et}var r;if(HD(e))return Cl(e,!0,0)||Et;if(_u(e)){const t=hs(e);return t?F_(t):Et}if(QB(e)){const t=hz(e);return t?F_(t):Et}if(k_(e))return Cl(e.parent,!0,0)||Et;if(pz(e)){const t=hz(e);if(t){const e=Tu(t);return Gc(e)?F_(t):e}}return kF(e.parent)&&e.parent.keywordToken===e.kind?WL(e.parent):_E(e)?tv(!1):Et}function vz(e){if(_n.assert(210===e.kind||209===e.kind),250===e.parent.kind){return nR(e,pB(e.parent)||Et)}if(226===e.parent.kind){return nR(e,ER(e.parent.right)||Et)}if(303===e.parent.kind){const t=tt(e.parent.parent,GD);return eR(t,vz(t)||Et,Qd(t.properties,e.parent))}const t=tt(e.parent,KD),n=vz(t)||Et,r=fB(65,n,jt,e.parent)||Et;return tR(t,n,t.elements.indexOf(e),r)}function bz(e){return pb(e)&&(e=e.parent),hk(ER(e))}function xz(e){const t=ys(e.parent);return Fv(e)?F_(t):Tu(t)}function kz(e){const t=e.name;switch(t.kind){case 80:return kk(gc(t));case 9:case 11:return kk(t.text);case 167:const e=nI(t);return Kj(e,12288)?e:Vt;default:return _n.fail("Unsupported property name.")}}function Sz(e){const t=Ku($p(e=Tf(e))),n=ym(e,0).length?Qn:ym(e,1).length?Yn:void 0;return n&&_($p(n),(e=>{t.has(e.escapedName)||t.set(e.escapedName,e)})),Ms(t)}function Tz(e){return 0!==ym(e,0).length||0!==ym(e,1).length}function Cz(e){if(Wl(e))return!1;const t=pc(e,VN);if(!t)return!1;const n=t.parent;if(!n)return!1;return!((XD(n)||zE(n))&&n.name===t)&&Yz(t)===Le}function wz(e,t){var n;const r=pc(e,VN);if(r){let e=Yz(r,function(e){return ou(e.parent)&&e===e.parent.name}(r));if(e){if(1048576&e.flags){const n=fs(e.exportSymbol);if(!t&&944&n.flags&&!(3&n.flags))return;e=n}const i=vs(e);if(i){if(512&i.flags&&307===(null==(n=i.valueDeclaration)?void 0:n.kind)){const e=i.valueDeclaration;return e!==yd(r)?void 0:e}return uc(r.parent,(e=>ou(e)&&hs(e)===i))}}}}function Nz(e){const t=zw(e);if(t)return t;const n=pc(e,VN);if(n){const e=function(e){const t=sa(e).resolvedSymbol;if(t&&t!==xt)return t;return Ue(e,e.escapedText,3257279,void 0,!0,void 0)}(n);if(Ba(e,111551)&&!Ha(e,111551))return xa(e)}}function Dz(e){if(418&e.flags&&e.valueDeclaration&&!WE(e.valueDeclaration)){const t=aa(e);if(void 0===t.isDeclarationWithCollidingName){const n=Fp(e.valueDeclaration);if(xd(n)||function(e){return e.valueDeclaration&&HD(e.valueDeclaration)&&299===nc(e.valueDeclaration).parent.kind}(e))if(Ue(n.parent,e.escapedName,111551,void 0,!1))t.isDeclarationWithCollidingName=!0;else if(zz(e.valueDeclaration,16384)){const r=zz(e.valueDeclaration,32768),i=$_(n,!1),o=241===n.kind&&$_(n.parent,!1);t.isDeclarationWithCollidingName=!(up(n)||r&&(i||o))}else t.isDeclarationWithCollidingName=!1}return t.isDeclarationWithCollidingName}return!1}function Fz(e){if(!Wl(e)){const t=pc(e,VN);if(t){const e=Yz(t);if(e&&Dz(e))return e.valueDeclaration}}}function Ez(e){const t=pc(e,_u);if(t){const e=hs(t);if(e)return Dz(e)}return!1}function Pz(e){switch(_n.assert(Je),e.kind){case 271:return Iz(hs(e));case 273:case 274:case 276:case 281:const t=hs(e);return!!t&&Iz(t,!0);case 278:const n=e.exportClause;return!!n&&(pE(n)||V(n.elements,Pz));case 277:return!e.expression||80!==e.expression.kind||Iz(hs(e),!0)}return!1}function Az(e){const t=pc(e,iE);if(void 0===t||307!==t.parent.kind||!Nm(t))return!1;return Iz(hs(t))&&t.moduleReference&&!wd(t.moduleReference)}function Iz(e,t){if(!e)return!1;const n=yd(e.valueDeclaration);rs(n&&hs(n));const r=ws(qa(e));return r===xt?!t||!Ha(e):!!(111551&Ua(e,t,!0))&&(Ek(j)||!Oz(r))}function Oz(e){return Qj(e)||!!e.constEnumOnlyModule}function Lz(e,t){if(_n.assert(Je),ka(e)){const t=hs(e),n=t&&aa(t);if(null==n?void 0:n.referenced)return!0;const r=aa(t).aliasTarget;if(r&&32&Jv(e)&&111551&Ua(r)&&(Ek(j)||!Oz(r)))return!0}return!!t&&!!RI(e,(e=>Lz(e,t)))}function jz(e){if(Nd(e.body)){if(Nu(e)||wu(e))return!1;const t=Rg(hs(e));return t.length>1||1===t.length&&t[0].declaration!==e}return!1}function Rz(e,t){return(function(e,t){if(!G||bg(e)||SP(e)||!e.initializer)return!1;if(Dv(e,31))return!!t&&o_(t);return!0}(e,t)||function(e){return G&&bg(e)&&(SP(e)||!e.initializer)&&Dv(e,31)}(e))&&!function(e){const t=oq(e);if(!t)return!1;const n=Bk(t);return Gc(n)||iT(n)}(e)}function Mz(e){const t=pc(e,(e=>GF(e)||HF(e)));if(!t)return!1;let n;if(HF(t)){if(t.type||!Em(t)&&!Vq(t))return!1;const e=Wm(t);if(!e||!au(e))return!1;n=hs(e)}else n=hs(t);return!!(n&&16&n.flags|3)&&!!nd(_s(n),(e=>111551&e.flags&&_C(e.valueDeclaration)))}function Bz(e){const t=pc(e,GF);if(!t)return s;const n=hs(t);return n&&$p(F_(n))||s}function Jz(e){var t;const n=e.id||0;return n<0||n>=Ki.length?0:(null==(t=Ki[n])?void 0:t.flags)||0}function zz(e,t){return function(e,t){if(!j.noCheck&&fT(yd(e),j))return;const n=sa(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||MI(e,t)}function i(e){const n=sa(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=2097536,a(e)}function o(e){r(e,i)}function a(e){sa(e).calculatedFlags|=48,108===e.kind&&YP(e)}function s(e){const n=sa(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=336384,_(e)}function c(e){r(e,s)}function l(e){return bm(e)||qE(e.parent)&&(e.parent.objectAssignmentInitializer??e.parent.name)===e}function _(e){const t=sa(e);if(t.calculatedFlags|=536870912,VN(e)&&(t.calculatedFlags|=49152,l(e)&&(!XD(e.parent)||e.parent.name!==e))){const t=ON(e);t&&t!==xt&&zP(e,t)}}function u(e){const n=sa(e);if(n.calculatedFlags&t)return"skip";n.calculatedFlags|=53248,p(e)}function d(e){r(Fp(lh(e)?e.parent:e),u)}function p(e){_(e),aD(e)&&nI(e),WN(e)&&__(e.parent)&&qR(e.parent)}}(e,t),!!(Jz(e)&t)}function qz(e){return EJ(e.parent),sa(e).enumMemberValue??gC(void 0)}function Uz(e){switch(e.kind){case 306:case 211:case 212:return!0}return!1}function Vz(e){if(306===e.kind)return qz(e).value;sa(e).resolvedSymbol||uR(e);const t=sa(e).resolvedSymbol||(sb(e)?Xa(e,111551,!0):void 0);if(t&&8&t.flags){const e=t.valueDeclaration;if(ef(e.parent))return qz(e).value}}function Wz(e){return!!(524288&e.flags)&&ym(e,0).length>0}function $z(e,t){var n;const r=pc(e,e_);if(!r)return 0;if(t&&!(t=pc(t)))return 0;let i=!1;if(oD(r)){const e=Xa(cb(r),111551,!0,!0,t);i=!!(null==(n=null==e?void 0:e.declarations)?void 0:n.every(zl))}const o=Xa(r,111551,!0,!0,t),a=o&&2097152&o.flags?qa(o):o;i||(i=!(!o||!Ha(o,111551)));const s=Xa(r,788968,!0,!0,t),c=s&&2097152&s.flags?qa(s):s;if(o||i||(i=!(!s||!Ha(s,788968))),a&&a===c){const e=pv(!1);if(e&&a===e)return 9;const t=F_(a);if(t&&Z_(t))return i?10:1}if(!c)return i?11:0;const l=Tu(c);return Gc(l)?i?11:0:3&l.flags?11:Kj(l,245760)?2:Kj(l,528)?6:Kj(l,296)?3:Kj(l,2112)?4:Kj(l,402653316)?5:lw(l)?7:Kj(l,12288)?8:Wz(l)?10:RC(l)?7:11}function Hz(e,t,n,r,i){const o=pc(e,SC);if(!o)return ZC.createToken(133);const a=hs(o);return xe.serializeTypeForDeclaration(o,a,t,1024|n,r,i)}function Kz(e){const t=178===(e=pc(e,pl)).kind?177:178,n=$u(hs(e),t);return{firstAccessor:n&&n.pos<e.pos?n:e,secondAccessor:n&&n.pos<e.pos?e:n,setAccessor:178===e.kind?e:n,getAccessor:177===e.kind?e:n}}function Gz(e,t,n,r,i){const o=pc(e,r_);return o?xe.serializeReturnTypeForSignature(o,t,1024|n,r,i):ZC.createToken(133)}function Xz(e,t,n,r,i){const o=pc(e,V_);return o?xe.serializeTypeForExpression(o,t,1024|n,r,i):ZC.createToken(133)}function Qz(e){return Ne.has(fc(e))}function Yz(e,t){const n=sa(e).resolvedSymbol;if(n)return n;let r=e;if(t){const t=e.parent;_u(t)&&e===t.name&&(r=Vc(t))}return Ue(r,e.escapedText,3257279,void 0,!0)}function Zz(e){if(!Wl(e)){const t=pc(e,VN);if(t){const e=Yz(t);if(e)return ws(e).valueDeclaration}}}function eq(e){if(!Wl(e)){const t=pc(e,VN);if(t){const e=Yz(t);if(e)return C(ws(e).declarations,(e=>{switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1}))}}}function tq(e){return!!(tf(e)||HF(e)&&Vq(e))&&yk(F_(hs(e)))}function nq(e,t){return function(e,t,n){const r=1056&e.flags?xe.symbolToExpression(e.symbol,111551,t,void 0,void 0,n):e===tn?ZC.createTrue():e===Xt&&ZC.createFalse();if(r)return r;const i=e.value;return"object"==typeof i?ZC.createBigIntLiteral(i):"string"==typeof i?ZC.createStringLiteral(i):i<0?ZC.createPrefixUnaryExpression(41,ZC.createNumericLiteral(-i)):ZC.createNumericLiteral(i)}(F_(hs(e)),e,t)}function rq(e){return e?(Io(e),yd(e).localJsxFactory||oi):oi}function iq(e){if(e){const t=yd(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=qI(n.arguments.factory,M),t.localJsxFragmentFactory}}if(j.jsxFragmentFactory)return qI(j.jsxFragmentFactory,M)}function oq(e){const t=fv(e);if(t)return t;if(169===e.kind&&178===e.parent.kind){const t=Kz(e.parent).getAccessor;if(t)return gv(t)}}function aq(e){const t=267===e.kind?et(e.name,NN):kg(e),n=es(t,t,void 0);if(n)return $u(n,307)}function sq(e,t){if(j.importHelpers){const n=yd(e);if(gp(n,j)&&!(33554432&e.flags)){const r=function(e,t){const n=sa(e);n.externalHelpersModule||(n.externalHelpersModule=ts(function(e){_n.assert(j.importHelpers,"Expected importHelpers to be enabled");const t=e.imports[0];return _n.assert(t&&ey(t)&&"tslib"===t.text,"Expected sourceFile.imports[0] to be the synthesized tslib import"),t}(e),Uu,_a.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,t)||xt);return n.externalHelpersModule}(n,e);if(r!==xt){const n=aa(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 cq(t)){const i=Ja(ca(us(r),fc(n),111551));i?524288&t?V(Rg(i),(e=>ij(e)>3))||Ro(e,_a.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,Uu,n,4):1048576&t?V(Rg(i),(e=>ij(e)>4))||Ro(e,_a.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,Uu,n,5):1024&t&&(V(Rg(i),(e=>ij(e)>2))||Ro(e,_a.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,Uu,n,3)):Ro(e,_a.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Uu,n)}}n.requestedExternalEmitHelpers|=t}}}}function cq(e){switch(e){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return q?["__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 lq(t){var n;const r=function(e){const t=function(e){return EA(e)?y(e.modifiers,lD):void 0}(e);return t&&Iq(t,_a.Decorators_are_not_valid_here)}(t)||function(e){if(!e.modifiers)return!1;const t=function(e){switch(e.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return y(e.modifiers,Zl);default:if(268===e.parent.kind||307===e.parent.kind)return;switch(e.kind){case 262:return _q(e,134);case 263:case 185:return _q(e,128);case 231:case 264:case 265:return y(e.modifiers,Zl);case 243:return 4&e.declarationList.flags?_q(e,135):y(e.modifiers,Zl);case 266:return _q(e,87);default:_n.assertNever(e)}}}(e);return t&&Iq(t,_a.Modifiers_cannot_appear_here)}(t);if(void 0!==r)return r;if(cD(t)&&cv(t))return Iq(t,_a.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const i=FF(t)?7&t.declarationList.flags:0;let o,a,s,c,l,_=0,u=!1,d=!1;for(const r of t.modifiers)if(lD(r)){if(!dm(q,t,t.parent,t.parent.parent))return 174!==t.kind||Nd(t.body)?Iq(t,_a.Decorators_are_not_valid_here):Iq(t,_a.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(q&&(177===t.kind||178===t.kind)){const e=Kz(t);if(jv(e.firstAccessor)&&t===e.secondAccessor)return Iq(t,_a.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}if(-34849&_)return Lq(r,_a.Decorators_are_not_valid_here);if(d&&98303&_){_n.assertIsDefined(l);return!Aq(yd(r))&&(sT(Ro(r,_a.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Rp(l,_a.Decorator_used_before_export_here)),!0)}_|=32768,98303&_?32&_&&(u=!0):d=!0,l??(l=r)}else{if(148!==r.kind){if(171===t.kind||173===t.kind)return Lq(r,_a._0_modifier_cannot_appear_on_a_type_member,Fa(r.kind));if(181===t.kind&&(126!==r.kind||!u_(t.parent)))return Lq(r,_a._0_modifier_cannot_appear_on_an_index_signature,Fa(r.kind))}if(103!==r.kind&&147!==r.kind&&87!==r.kind&&168===t.kind)return Lq(r,_a._0_modifier_cannot_appear_on_a_type_parameter,Fa(r.kind));switch(r.kind){case 87:{if(266!==t.kind&&168!==t.kind)return Lq(t,_a.A_class_member_cannot_have_the_0_keyword,Fa(87));const e=NP(t.parent)&&Ug(t.parent)||t.parent;if(168===t.kind&&!(o_(e)||u_(e)||SD(e)||TD(e)||yD(e)||vD(e)||dD(e)))return Lq(r,_a._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Fa(r.kind));break}case 164:if(16&_)return Lq(r,_a._0_modifier_already_seen,"override");if(128&_)return Lq(r,_a._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(8&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,"override","readonly");if(512&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,"override","accessor");if(1024&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,"override","async");_|=16,c=r;break;case 125:case 124:case 123:const d=Pc(Kv(r.kind));if(7&_)return Lq(r,_a.Accessibility_modifier_already_seen);if(16&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,d,"override");if(256&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,d,"static");if(512&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,d,"accessor");if(8&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,d,"readonly");if(1024&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,d,"async");if(268===t.parent.kind||307===t.parent.kind)return Lq(r,_a._0_modifier_cannot_appear_on_a_module_or_namespace_element,d);if(64&_)return 123===r.kind?Lq(r,_a._0_modifier_cannot_be_used_with_1_modifier,d,"abstract"):Lq(r,_a._0_modifier_must_precede_1_modifier,d,"abstract");if(Kl(t))return Lq(r,_a.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);_|=Kv(r.kind);break;case 126:if(256&_)return Lq(r,_a._0_modifier_already_seen,"static");if(8&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,"static","readonly");if(1024&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,"static","async");if(512&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,"static","accessor");if(268===t.parent.kind||307===t.parent.kind)return Lq(r,_a._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(169===t.kind)return Lq(r,_a._0_modifier_cannot_appear_on_a_parameter,"static");if(64&_)return Lq(r,_a._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(16&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,"static","override");_|=256,o=r;break;case 129:if(512&_)return Lq(r,_a._0_modifier_already_seen,"accessor");if(8&_)return Lq(r,_a._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(128&_)return Lq(r,_a._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(172!==t.kind)return Lq(r,_a.accessor_modifier_can_only_appear_on_a_property_declaration);_|=512;break;case 148:if(8&_)return Lq(r,_a._0_modifier_already_seen,"readonly");if(172!==t.kind&&171!==t.kind&&181!==t.kind&&169!==t.kind)return Lq(r,_a.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(512&_)return Lq(r,_a._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");_|=8;break;case 95:if(j.verbatimModuleSyntax&&!(33554432&t.flags)&&265!==t.kind&&264!==t.kind&&267!==t.kind&&307===t.parent.kind&&1===e.getEmitModuleFormatOfFile(yd(t)))return Lq(r,_a.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(32&_)return Lq(r,_a._0_modifier_already_seen,"export");if(128&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,"export","declare");if(64&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,"export","abstract");if(1024&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,"export","async");if(u_(t.parent))return Lq(r,_a._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(169===t.kind)return Lq(r,_a._0_modifier_cannot_appear_on_a_parameter,"export");if(4===i)return Lq(r,_a._0_modifier_cannot_appear_on_a_using_declaration,"export");if(6===i)return Lq(r,_a._0_modifier_cannot_appear_on_an_await_using_declaration,"export");_|=32;break;case 90:const p=307===t.parent.kind?t.parent:t.parent.parent;if(267===p.kind&&!sp(p))return Lq(r,_a.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(4===i)return Lq(r,_a._0_modifier_cannot_appear_on_a_using_declaration,"default");if(6===i)return Lq(r,_a._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(!(32&_))return Lq(r,_a._0_modifier_must_precede_1_modifier,"export","default");if(u)return Lq(l,_a.Decorators_are_not_valid_here);_|=2048;break;case 138:if(128&_)return Lq(r,_a._0_modifier_already_seen,"declare");if(1024&_)return Lq(r,_a._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(16&_)return Lq(r,_a._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(u_(t.parent)&&!uD(t))return Lq(r,_a._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(169===t.kind)return Lq(r,_a._0_modifier_cannot_appear_on_a_parameter,"declare");if(4===i)return Lq(r,_a._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(6===i)return Lq(r,_a._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(33554432&t.parent.flags&&268===t.parent.kind)return Lq(r,_a.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Kl(t))return Lq(r,_a._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(512&_)return Lq(r,_a._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");_|=128,a=r;break;case 128:if(64&_)return Lq(r,_a._0_modifier_already_seen,"abstract");if(263!==t.kind&&185!==t.kind){if(174!==t.kind&&172!==t.kind&&177!==t.kind&&178!==t.kind)return Lq(r,_a.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(263!==t.parent.kind||!Dv(t.parent,64)){return Lq(r,172===t.kind?_a.Abstract_properties_can_only_appear_within_an_abstract_class:_a.Abstract_methods_can_only_appear_within_an_abstract_class)}if(256&_)return Lq(r,_a._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(2&_)return Lq(r,_a._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(1024&_&&s)return Lq(s,_a._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(16&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,"abstract","override");if(512&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Sc(t)&&81===t.name.kind)return Lq(r,_a._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");_|=64;break;case 134:if(1024&_)return Lq(r,_a._0_modifier_already_seen,"async");if(128&_||33554432&t.parent.flags)return Lq(r,_a._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(169===t.kind)return Lq(r,_a._0_modifier_cannot_appear_on_a_parameter,"async");if(64&_)return Lq(r,_a._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=NP(t.parent)&&(Ug(t.parent)||y(null==(n=Wg(t.parent))?void 0:n.tags,DP))||t.parent;if(168!==t.kind||o&&!(QF(o)||u_(o)||YF(o)||DP(o)))return Lq(r,_a._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,i);if(_&e)return Lq(r,_a._0_modifier_already_seen,i);if(8192&e&&16384&_)return Lq(r,_a._0_modifier_must_precede_1_modifier,"in","out");_|=e;break}}}return 176===t.kind?256&_?Lq(o,_a._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):16&_?Lq(c,_a._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):!!(1024&_)&&Lq(s,_a._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):(272===t.kind||271===t.kind)&&128&_?Lq(a,_a.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):169===t.kind&&31&_&&k_(t.name)?Lq(t,_a.A_parameter_property_may_not_be_declared_using_a_binding_pattern):169===t.kind&&31&_&&t.dotDotDotToken?Lq(t,_a.A_parameter_property_cannot_be_declared_using_a_rest_parameter):!!(1024&_)&&function(e,t){switch(e.kind){case 174:case 262:case 218:case 219:return!1}return Lq(t,_a._0_modifier_cannot_be_used_here,"async")}(t,s)}function _q(e,t){const n=y(e.modifiers,Zl);return n&&n.kind!==t?n:void 0}function uq(e,t=_a.Trailing_comma_not_allowed){return!(!e||!e.hasTrailingComma)&&Oq(e[0],e.end-1,1,t)}function dq(e,t){if(e&&0===e.length){const n=e.pos-1;return Oq(t,n,Qa(t.text,e.end)+1-n,_a.Type_parameter_list_cannot_be_empty)}return!1}function pq(e){if(M>=3){const t=e.body&&DF(e.body)&&iA(e.body.statements);if(t){const n=C(e.parameters,(e=>!!e.initializer||k_(e.name)||Bu(e)));if(l(n)){_(n,(e=>{sT(Ro(e,_a.This_parameter_is_not_allowed_with_use_strict_directive),Rp(t,_a.use_strict_directive_used_here))}));const e=n.map(((e,t)=>Rp(e,0===t?_a.Non_simple_parameter_declared_here:_a.and_here)));return sT(Ro(t,_a.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...e),!0}}}return!1}function fq(e){const t=yd(e);return lq(e)||dq(e.typeParameters,t)||function(e){let t=!1;const n=e.length;for(let r=0;r<n;r++){const i=e[r];if(i.dotDotDotToken){if(r!==n-1)return Lq(i.dotDotDotToken,_a.A_rest_parameter_must_be_last_in_a_parameter_list);if(33554432&i.flags||uq(e,_a.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),i.questionToken)return Lq(i.questionToken,_a.A_rest_parameter_cannot_be_optional);if(i.initializer)return Lq(i.name,_a.A_rest_parameter_cannot_have_an_initializer)}else if(vg(i)){if(t=!0,i.questionToken&&i.initializer)return Lq(i.name,_a.Parameter_cannot_have_question_mark_and_initializer)}else if(t&&!i.initializer)return Lq(i.name,_a.A_required_parameter_cannot_follow_an_optional_parameter)}}(e.parameters)||function(e,t){if(!iF(e))return!1;e.typeParameters&&!(l(e.typeParameters)>1||e.typeParameters.hasTrailingComma||e.typeParameters[0].constraint)&&t&&To(t.fileName,[".mts",".cts"])&&Lq(e.typeParameters[0],_a.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:n}=e,r=za(t,n.pos).line,i=za(t,n.end).line;return r!==i&&Lq(n,_a.Line_terminator_not_permitted_before_arrow)}(e,t)||o_(e)&&pq(e)}function mq(e,t){return uq(t)||function(e,t){if(t&&0===t.length){const n=yd(e),r=t.pos-1;return Oq(n,r,Qa(n.text,t.end)+1-r,_a.Type_argument_list_cannot_be_empty)}return!1}(e,t)}function gq(e){const t=e.types;if(uq(t))return!0;if(t&&0===t.length){const n=Fa(e.token);return Oq(e,t.pos,0,_a._0_list_cannot_be_empty,n)}return V(t,hq)}function hq(e){return yF(e)&&rD(e.expression)&&e.typeArguments?Lq(e,_a.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):mq(e,e.typeArguments)}function yq(e){if(167!==e.kind)return!1;const t=e;return 226===t.expression.kind&&28===t.expression.operatorToken.kind&&Lq(t.expression,_a.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function vq(e){if(e.asteriskToken){if(_n.assert(262===e.kind||218===e.kind||174===e.kind),33554432&e.flags)return Lq(e.asteriskToken,_a.Generators_are_not_allowed_in_an_ambient_context);if(!e.body)return Lq(e.asteriskToken,_a.An_overload_signature_cannot_be_declared_as_a_generator)}}function bq(e,t){return!!e&&Lq(e,t)}function xq(e,t){return!!e&&Lq(e,t)}function kq(e){if(Rq(e))return!0;if(250===e.kind&&e.awaitModifier&&!(65536&e.flags)){const t=yd(e);if(nm(e)){if(!Aq(t))switch(gp(t,j)||po.add(Rp(e.awaitModifier,_a.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)),z){case 100:case 101:case 199:if(1===t.impliedNodeFormat){po.add(Rp(e.awaitModifier,_a.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(M>=4)break;default:po.add(Rp(e.awaitModifier,_a.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!Aq(t)){const t=Rp(e.awaitModifier,_a.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n=Kf(e);if(n&&176!==n.kind){_n.assert(!(2&Oh(n)),"Enclosing function should never be an async function.");sT(t,Rp(n,_a.Did_you_mean_to_mark_this_function_as_async))}return po.add(t),!0}}if(RF(e)&&!(65536&e.flags)&&VN(e.initializer)&&"async"===e.initializer.escapedText)return Lq(e.initializer,_a.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(261===e.initializer.kind){const t=e.initializer;if(!Eq(t)){const n=t.declarations;if(!n.length)return!1;if(n.length>1){const n=249===e.kind?_a.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:_a.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Iq(t.declarations[1],n)}const r=n[0];if(r.initializer){const t=249===e.kind?_a.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:_a.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Lq(r.name,t)}if(r.type){return Lq(r,249===e.kind?_a.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:_a.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation)}}}return!1}function Sq(e){if(e.parameters.length===(177===e.kind?1:2))return sv(e)}function Tq(e,t){if(pd(e))return Lq(e,t)}function Cq(e){if(fq(e))return!0;if(174===e.kind){if(210===e.parent.kind){if(e.modifiers&&(1!==e.modifiers.length||134!==me(e.modifiers).kind))return Iq(e,_a.Modifiers_cannot_appear_here);if(bq(e.questionToken,_a.An_object_member_cannot_be_declared_optional))return!0;if(xq(e.exclamationToken,_a.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===e.body)return Oq(e,e.end-1,1,_a._0_expected,"{")}if(vq(e))return!0}if(u_(e.parent)){if(M<2&&WN(e.name))return Lq(e.name,_a.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(33554432&e.flags)return Tq(e.name,_a.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(174===e.kind&&!e.body)return Tq(e.name,_a.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(264===e.parent.kind)return Tq(e.name,_a.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(187===e.parent.kind)return Tq(e.name,_a.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 wq(e){return jh(e)||224===e.kind&&41===e.operator&&9===e.operand.kind}function Nq(e){const t=e.initializer;if(t){const r=!(wq(t)||function(e){if((XD(e)||QD(e)&&wq(e.argumentExpression))&&sb(e.expression))return!!(1056&uR(e).flags)}(t)||112===t.kind||97===t.kind||(n=t,10===n.kind||224===n.kind&&41===n.operator&&10===n.operand.kind));if(!(tf(e)||HF(e)&&Vq(e))||e.type)return Lq(t,_a.Initializers_are_not_allowed_in_ambient_contexts);if(r)return Lq(t,_a.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}var n}function Dq(e){if(80===e.kind){if("__esModule"===gc(e))return function(e,t,n,...r){if(!Aq(yd(t)))return Lo(e,t,n,...r),!0;return!1}("noEmit",e,_a.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const t=e.elements;for(const e of t)if(!hF(e))return Dq(e.name)}return!1}function Fq(e){if(80===e.kind){if("let"===e.escapedText)return Lq(e,_a.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)hF(e)||Fq(e.name)}return!1}function Eq(e){const t=e.declarations;if(uq(e.declarations))return!0;if(!e.declarations.length)return Oq(e,t.pos,t.end-t.pos,_a.Variable_declaration_list_cannot_be_empty);const n=7&e.flags;return 4!==n&&6!==n||!jF(e.parent)?6===n&&Vj(e):Lq(e,4===n?_a.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:_a.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration)}function Pq(e){switch(e.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return Pq(e.parent)}return!0}function Aq(e){return e.parseDiagnostics.length>0}function Iq(e,t,...n){const r=yd(e);if(!Aq(r)){const i=Kp(r,e.pos);return po.add(Xx(r,i.start,i.length,t,...n)),!0}return!1}function Oq(e,t,n,r,...i){const o=yd(e);return!Aq(o)&&(po.add(Xx(o,t,n,r,...i)),!0)}function Lq(e,t,...n){return!Aq(yd(e))&&(po.add(Rp(e,t,...n)),!0)}function jq(e){return!!(33554432&e.flags)&&function(e){for(const n of e.statements)if((_u(n)||243===n.kind)&&264!==(t=n).kind&&265!==t.kind&&272!==t.kind&&271!==t.kind&&278!==t.kind&&277!==t.kind&&270!==t.kind&&!Dv(t,2208)&&Iq(t,_a.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier))return!0;var t;return!1}(e)}function Rq(e){if(33554432&e.flags){if(!sa(e).hasReportedStatementInAmbientContext&&(r_(e.parent)||d_(e.parent)))return sa(e).hasReportedStatementInAmbientContext=Iq(e,_a.An_implementation_cannot_be_declared_in_ambient_contexts);if(241===e.parent.kind||268===e.parent.kind||307===e.parent.kind){const t=sa(e.parent);if(!t.hasReportedStatementInAmbientContext)return t.hasReportedStatementInAmbientContext=Iq(e,_a.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Mq(e){const t=Gd(e).includes("."),n=16&e.numericLiteralFlags;if(t||n)return;+e.text<=2**53-1||Mo(!1,Rp(e,_a.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Bq(e){return!!_(e.elements,(e=>{if(e.isTypeOnly)return Iq(e,276===e.kind?_a.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:_a.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)}))}function Jq(e,t,n){if(1048576&t.flags&&2621440&e.flags){const r=KN(t,e);if(r)return r;const i=$p(e);if(i){const e=UN(i,t);if(e){const r=LT(t,D(e,(e=>[()=>F_(e),e.escapedName])),n);if(r!==t)return r}}}}function zq(e){const t=Jh(e);return t||(aD(e)?BN(ER(e.expression)):void 0)}function qq(e){return Oe===e?qe:(Oe=e,qe=ic(e))}function Uq(e){return Pe===e?ze:(Pe=e,ze=ac(e))}function Vq(e){const t=7&Uq(e);return 2===t||4===t||6===t}}function XB(e){return 262!==e.kind&&174!==e.kind||!!e.body}function QB(e){switch(e.parent.kind){case 276:case 281:return VN(e)||11===e.kind;default:return lh(e)}}function YB(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function ZB(e){return!!(1&e.flags)}function eJ(e){return!!(2&e.flags)}(EB=FB||(FB={})).JSX="JSX",EB.IntrinsicElements="IntrinsicElements",EB.ElementClass="ElementClass",EB.ElementAttributesPropertyNameContainer="ElementAttributesProperty",EB.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",EB.Element="Element",EB.ElementType="ElementType",EB.IntrinsicAttributes="IntrinsicAttributes",EB.IntrinsicClassAttributes="IntrinsicClassAttributes",EB.LibraryManagedAttributes="LibraryManagedAttributes",(PB||(PB={})).Fragment="Fragment";var tJ=class e{constructor(t,n,r){var i;for(this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;n instanceof e;)n=n.inner;this.inner=n,this.moduleResolverHost=r,this.context=t,this.canTrackSymbol=!!(null==(i=this.inner)?void 0:i.trackSymbol)}trackSymbol(e,t,n){var r,i;if((null==(r=this.inner)?void 0:r.trackSymbol)&&!this.disableTrackSymbol){if(this.inner.trackSymbol(e,t,n))return this.onDiagnosticReported(),!0;262144&e.flags||((i=this.context).trackedSymbols??(i.trackedSymbols=[])).push([e,t,n])}return!1}reportInaccessibleThisError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleThisError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(e){var t;(null==(t=this.inner)?void 0:t.reportPrivateInBaseOfClassExpression)&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(e))}reportInaccessibleUniqueSymbolError(){var e;(null==(e=this.inner)?void 0:e.reportInaccessibleUniqueSymbolError)&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var e;(null==(e=this.inner)?void 0:e.reportCyclicStructureError)&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(e){var t;(null==(t=this.inner)?void 0:t.reportLikelyUnsafeImportRequiredError)&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(e))}reportTruncationError(){var e;(null==(e=this.inner)?void 0:e.reportTruncationError)&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}reportNonlocalAugmentation(e,t,n){var r;(null==(r=this.inner)?void 0:r.reportNonlocalAugmentation)&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(e,t,n))}reportNonSerializableProperty(e){var t;(null==(t=this.inner)?void 0:t.reportNonSerializableProperty)&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(e))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}reportInferenceFallback(e){var t;(null==(t=this.inner)?void 0:t.reportInferenceFallback)&&!this.context.suppressReportInferenceFallback&&(this.onDiagnosticReported(),this.inner.reportInferenceFallback(e))}pushErrorFallbackNode(e){var t,n;return null==(n=null==(t=this.inner)?void 0:t.pushErrorFallbackNode)?void 0:n.call(t,e)}popErrorFallbackNode(){var e,t;return null==(t=null==(e=this.inner)?void 0:e.popErrorFallbackNode)?void 0:t.call(e)}};function nJ(e,t,n,r){if(void 0===e)return e;const i=t(e);let o;return void 0!==i?(o=Xe(i)?(r||fJ)(i):i,_n.assertNode(o,n),o):void 0}function rJ(e,t,n,r,i){if(void 0===e)return e;const o=e.length;let a;(void 0===r||r<0)&&(r=0),(void 0===i||i>o-r)&&(i=o-r);let s=-1,c=-1;r>0||i<o?a=e.hasTrailingComma&&r+i===o:(s=e.pos,c=e.end,a=e.hasTrailingComma);const l=oJ(e,t,n,r,i);if(l!==e){const e=ZC.createNodeArray(l,a);return wT(e,s,c),e}return e}function iJ(e,t,n,r,i){if(void 0===e)return e;const o=e.length;return(void 0===r||r<0)&&(r=0),(void 0===i||i>o-r)&&(i=o-r),oJ(e,t,n,r,i)}function oJ(e,t,n,r,i){let o;const a=e.length;(r>0||i<a)&&(o=[]);for(let a=0;a<i;a++){const i=e[a+r],s=void 0!==i?t?t(i):i:void 0;if((void 0!==o||void 0===s||s!==i)&&(void 0===o&&(o=e.slice(0,a),_n.assertEachNode(o,n)),s))if(Xe(s))for(const e of s)_n.assertNode(e,n),o.push(e);else _n.assertNode(s,n),o.push(s)}return o||(_n.assertEachNode(e,n),e)}function aJ(e,t,n,r,i,o=rJ){return n.startLexicalEnvironment(),e=o(e,t,pu,r),i&&(e=n.factory.ensureUseStrict(e)),ZC.mergeLexicalEnvironment(e,n.endLexicalEnvironment())}function sJ(e,t,n,r=rJ){let i;return n.startLexicalEnvironment(),e&&(n.setLexicalEnvironmentFlags(1,!0),i=r(e,t,cD),2&n.getLexicalEnvironmentFlags()&&vk(n.getCompilerOptions())>=2&&(i=function(e,t){let n;for(let r=0;r<e.length;r++){const i=e[r],o=cJ(i,t);(n||o!==i)&&(n||(n=e.slice(0,r)),n[r]=o)}if(n)return cI(t.factory.createNodeArray(n,e.hasTrailingComma),e);return e}(i,n)),n.setLexicalEnvironmentFlags(1,!1)),n.suspendLexicalEnvironment(),i}function cJ(e,t){return e.dotDotDotToken?e:k_(e.name)?function(e,t){const{factory:n}=t;return t.addInitializationStatement(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(e.name,void 0,e.type,e.initializer?n.createConditionalExpression(n.createStrictEquality(n.getGeneratedNameForNode(e),n.createVoidZero()),void 0,e.initializer,void 0,n.getGeneratedNameForNode(e)):n.getGeneratedNameForNode(e))]))),n.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,n.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}(e,t):e.initializer?function(e,t,n,r){const i=r.factory;return r.addInitializationStatement(i.createIfStatement(i.createTypeCheck(i.cloneNode(t),"undefined"),ow(cI(i.createBlock([i.createExpressionStatement(ow(cI(i.createAssignment(ow(i.cloneNode(t),96),ow(n,3168|Yd(n))),e),3072))]),e),3905))),i.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}(e,e.name,e.initializer,t):e}function lJ(e,t,n,r=nJ){n.resumeLexicalEnvironment();const i=r(e,t,Y_),o=n.endLexicalEnvironment();if(V(o)){if(!i)return n.factory.createBlock(o);const e=n.factory.converters.convertToFunctionBlock(i),t=ZC.mergeLexicalEnvironment(e.statements,o);return n.factory.updateBlock(e,t)}return i}function _J(e,t,n,r=nJ){n.startBlockScope();const i=r(e,t,pu,n.factory.liftToBlock);_n.assert(i);const o=n.endBlockScope();return V(o)?DF(i)?(o.push(...i.statements),n.factory.updateBlock(i,o)):(o.push(i),n.factory.createBlock(o)):i}function uJ(e,t,n=t){if(n===t||e.length<=1)return rJ(e,t,V_);let r=0;const i=e.length;return rJ(e,(e=>{const o=r<i-1;return r++,o?n(e):t(e)}),V_)}function dJ(e,t,n=jq,r=rJ,i,o=nJ){if(void 0===e)return;const a=pJ[e.kind];return void 0===a?e:a(e,t,n,r,o,i)}var pJ={166:function(e,t,n,r,i,o){return n.factory.updateQualifiedName(e,_n.checkDefined(i(e.left,t,e_)),_n.checkDefined(i(e.right,t,VN)))},167:function(e,t,n,r,i,o){return n.factory.updateComputedPropertyName(e,_n.checkDefined(i(e.expression,t,V_)))},168:function(e,t,n,r,i,o){return n.factory.updateTypeParameterDeclaration(e,r(e.modifiers,t,Zl),_n.checkDefined(i(e.name,t,VN)),i(e.constraint,t,b_),i(e.default,t,b_))},169:function(e,t,n,r,i,o){return n.factory.updateParameterDeclaration(e,r(e.modifiers,t,g_),o?i(e.dotDotDotToken,o,ON):e.dotDotDotToken,_n.checkDefined(i(e.name,t,n_)),o?i(e.questionToken,o,JN):e.questionToken,i(e.type,t,b_),i(e.initializer,t,V_))},170:function(e,t,n,r,i,o){return n.factory.updateDecorator(e,_n.checkDefined(i(e.expression,t,V_)))},171:function(e,t,n,r,i,o){return n.factory.updatePropertySignature(e,r(e.modifiers,t,Zl),_n.checkDefined(i(e.name,t,t_)),o?i(e.questionToken,o,JN):e.questionToken,i(e.type,t,b_))},172:function(e,t,n,r,i,o){return n.factory.updatePropertyDeclaration(e,r(e.modifiers,t,g_),_n.checkDefined(i(e.name,t,t_)),o?i(e.questionToken??e.exclamationToken,o,AA):e.questionToken??e.exclamationToken,i(e.type,t,b_),i(e.initializer,t,V_))},173:function(e,t,n,r,i,o){return n.factory.updateMethodSignature(e,r(e.modifiers,t,Zl),_n.checkDefined(i(e.name,t,t_)),o?i(e.questionToken,o,JN):e.questionToken,r(e.typeParameters,t,sD),r(e.parameters,t,cD),i(e.type,t,b_))},174:function(e,t,n,r,i,o){return n.factory.updateMethodDeclaration(e,r(e.modifiers,t,g_),o?i(e.asteriskToken,o,MN):e.asteriskToken,_n.checkDefined(i(e.name,t,t_)),o?i(e.questionToken,o,JN):e.questionToken,r(e.typeParameters,t,sD),sJ(e.parameters,t,n,r),i(e.type,t,b_),lJ(e.body,t,n,i))},176:function(e,t,n,r,i,o){return n.factory.updateConstructorDeclaration(e,r(e.modifiers,t,g_),sJ(e.parameters,t,n,r),lJ(e.body,t,n,i))},177:function(e,t,n,r,i,o){return n.factory.updateGetAccessorDeclaration(e,r(e.modifiers,t,g_),_n.checkDefined(i(e.name,t,t_)),sJ(e.parameters,t,n,r),i(e.type,t,b_),lJ(e.body,t,n,i))},178:function(e,t,n,r,i,o){return n.factory.updateSetAccessorDeclaration(e,r(e.modifiers,t,g_),_n.checkDefined(i(e.name,t,t_)),sJ(e.parameters,t,n,r),lJ(e.body,t,n,i))},175:function(e,t,n,r,i,o){return n.startLexicalEnvironment(),n.suspendLexicalEnvironment(),n.factory.updateClassStaticBlockDeclaration(e,lJ(e.body,t,n,i))},179:function(e,t,n,r,i,o){return n.factory.updateCallSignature(e,r(e.typeParameters,t,sD),r(e.parameters,t,cD),i(e.type,t,b_))},180:function(e,t,n,r,i,o){return n.factory.updateConstructSignature(e,r(e.typeParameters,t,sD),r(e.parameters,t,cD),i(e.type,t,b_))},181:function(e,t,n,r,i,o){return n.factory.updateIndexSignature(e,r(e.modifiers,t,g_),r(e.parameters,t,cD),_n.checkDefined(i(e.type,t,b_)))},182:function(e,t,n,r,i,o){return n.factory.updateTypePredicateNode(e,i(e.assertsModifier,t,GN),_n.checkDefined(i(e.parameterName,t,IA)),i(e.type,t,b_))},183:function(e,t,n,r,i,o){return n.factory.updateTypeReferenceNode(e,_n.checkDefined(i(e.typeName,t,e_)),r(e.typeArguments,t,b_))},184:function(e,t,n,r,i,o){return n.factory.updateFunctionTypeNode(e,r(e.typeParameters,t,sD),r(e.parameters,t,cD),_n.checkDefined(i(e.type,t,b_)))},185:function(e,t,n,r,i,o){return n.factory.updateConstructorTypeNode(e,r(e.modifiers,t,Zl),r(e.typeParameters,t,sD),r(e.parameters,t,cD),_n.checkDefined(i(e.type,t,b_)))},186:function(e,t,n,r,i,o){return n.factory.updateTypeQueryNode(e,_n.checkDefined(i(e.exprName,t,e_)),r(e.typeArguments,t,b_))},187:function(e,t,n,r,i,o){return n.factory.updateTypeLiteralNode(e,r(e.members,t,h_))},188:function(e,t,n,r,i,o){return n.factory.updateArrayTypeNode(e,_n.checkDefined(i(e.elementType,t,b_)))},189:function(e,t,n,r,i,o){return n.factory.updateTupleTypeNode(e,r(e.elements,t,b_))},190:function(e,t,n,r,i,o){return n.factory.updateOptionalTypeNode(e,_n.checkDefined(i(e.type,t,b_)))},191:function(e,t,n,r,i,o){return n.factory.updateRestTypeNode(e,_n.checkDefined(i(e.type,t,b_)))},192:function(e,t,n,r,i,o){return n.factory.updateUnionTypeNode(e,r(e.types,t,b_))},193:function(e,t,n,r,i,o){return n.factory.updateIntersectionTypeNode(e,r(e.types,t,b_))},194:function(e,t,n,r,i,o){return n.factory.updateConditionalTypeNode(e,_n.checkDefined(i(e.checkType,t,b_)),_n.checkDefined(i(e.extendsType,t,b_)),_n.checkDefined(i(e.trueType,t,b_)),_n.checkDefined(i(e.falseType,t,b_)))},195:function(e,t,n,r,i,o){return n.factory.updateInferTypeNode(e,_n.checkDefined(i(e.typeParameter,t,sD)))},205:function(e,t,n,r,i,o){return n.factory.updateImportTypeNode(e,_n.checkDefined(i(e.argument,t,b_)),i(e.attributes,t,_E),i(e.qualifier,t,e_),r(e.typeArguments,t,b_),e.isTypeOf)},302:function(e,t,n,r,i,o){return n.factory.updateImportTypeAssertionContainer(e,_n.checkDefined(i(e.assertClause,t,cE)),e.multiLine)},202:function(e,t,n,r,i,o){return n.factory.updateNamedTupleMember(e,o?i(e.dotDotDotToken,o,ON):e.dotDotDotToken,_n.checkDefined(i(e.name,t,VN)),o?i(e.questionToken,o,JN):e.questionToken,_n.checkDefined(i(e.type,t,b_)))},196:function(e,t,n,r,i,o){return n.factory.updateParenthesizedType(e,_n.checkDefined(i(e.type,t,b_)))},198:function(e,t,n,r,i,o){return n.factory.updateTypeOperatorNode(e,_n.checkDefined(i(e.type,t,b_)))},199:function(e,t,n,r,i,o){return n.factory.updateIndexedAccessTypeNode(e,_n.checkDefined(i(e.objectType,t,b_)),_n.checkDefined(i(e.indexType,t,b_)))},200:function(e,t,n,r,i,o){return n.factory.updateMappedTypeNode(e,o?i(e.readonlyToken,o,OA):e.readonlyToken,_n.checkDefined(i(e.typeParameter,t,sD)),i(e.nameType,t,b_),o?i(e.questionToken,o,LA):e.questionToken,i(e.type,t,b_),r(e.members,t,h_))},201:function(e,t,n,r,i,o){return n.factory.updateLiteralTypeNode(e,_n.checkDefined(i(e.literal,t,U_)))},203:function(e,t,n,r,i,o){return n.factory.updateTemplateLiteralType(e,_n.checkDefined(i(e.head,t,PN)),r(e.templateSpans,t,UD))},204:function(e,t,n,r,i,o){return n.factory.updateTemplateLiteralTypeSpan(e,_n.checkDefined(i(e.type,t,b_)),_n.checkDefined(i(e.literal,t,Rl)))},206:function(e,t,n,r,i,o){return n.factory.updateObjectBindingPattern(e,r(e.elements,t,HD))},207:function(e,t,n,r,i,o){return n.factory.updateArrayBindingPattern(e,r(e.elements,t,T_))},208:function(e,t,n,r,i,o){return n.factory.updateBindingElement(e,o?i(e.dotDotDotToken,o,ON):e.dotDotDotToken,i(e.propertyName,t,t_),_n.checkDefined(i(e.name,t,n_)),i(e.initializer,t,V_))},209:function(e,t,n,r,i,o){return n.factory.updateArrayLiteralExpression(e,r(e.elements,t,V_))},210:function(e,t,n,r,i,o){return n.factory.updateObjectLiteralExpression(e,r(e.properties,t,v_))},211:function(e,t,n,r,i,o){return fl(e)?n.factory.updatePropertyAccessChain(e,_n.checkDefined(i(e.expression,t,V_)),o?i(e.questionDotToken,o,qN):e.questionDotToken,_n.checkDefined(i(e.name,t,dl))):n.factory.updatePropertyAccessExpression(e,_n.checkDefined(i(e.expression,t,V_)),_n.checkDefined(i(e.name,t,dl)))},212:function(e,t,n,r,i,o){return ml(e)?n.factory.updateElementAccessChain(e,_n.checkDefined(i(e.expression,t,V_)),o?i(e.questionDotToken,o,qN):e.questionDotToken,_n.checkDefined(i(e.argumentExpression,t,V_))):n.factory.updateElementAccessExpression(e,_n.checkDefined(i(e.expression,t,V_)),_n.checkDefined(i(e.argumentExpression,t,V_)))},213:function(e,t,n,r,i,o){return gl(e)?n.factory.updateCallChain(e,_n.checkDefined(i(e.expression,t,V_)),o?i(e.questionDotToken,o,qN):e.questionDotToken,r(e.typeArguments,t,b_),r(e.arguments,t,V_)):n.factory.updateCallExpression(e,_n.checkDefined(i(e.expression,t,V_)),r(e.typeArguments,t,b_),r(e.arguments,t,V_))},214:function(e,t,n,r,i,o){return n.factory.updateNewExpression(e,_n.checkDefined(i(e.expression,t,V_)),r(e.typeArguments,t,b_),r(e.arguments,t,V_))},215:function(e,t,n,r,i,o){return n.factory.updateTaggedTemplateExpression(e,_n.checkDefined(i(e.tag,t,V_)),r(e.typeArguments,t,b_),_n.checkDefined(i(e.template,t,R_)))},216:function(e,t,n,r,i,o){return n.factory.updateTypeAssertion(e,_n.checkDefined(i(e.type,t,b_)),_n.checkDefined(i(e.expression,t,V_)))},217:function(e,t,n,r,i,o){return n.factory.updateParenthesizedExpression(e,_n.checkDefined(i(e.expression,t,V_)))},218:function(e,t,n,r,i,o){return n.factory.updateFunctionExpression(e,r(e.modifiers,t,Zl),o?i(e.asteriskToken,o,MN):e.asteriskToken,i(e.name,t,VN),r(e.typeParameters,t,sD),sJ(e.parameters,t,n,r),i(e.type,t,b_),lJ(e.body,t,n,i))},219:function(e,t,n,r,i,o){return n.factory.updateArrowFunction(e,r(e.modifiers,t,Zl),r(e.typeParameters,t,sD),sJ(e.parameters,t,n,r),i(e.type,t,b_),o?_n.checkDefined(i(e.equalsGreaterThanToken,o,UN)):e.equalsGreaterThanToken,lJ(e.body,t,n,i))},220:function(e,t,n,r,i,o){return n.factory.updateDeleteExpression(e,_n.checkDefined(i(e.expression,t,V_)))},221:function(e,t,n,r,i,o){return n.factory.updateTypeOfExpression(e,_n.checkDefined(i(e.expression,t,V_)))},222:function(e,t,n,r,i,o){return n.factory.updateVoidExpression(e,_n.checkDefined(i(e.expression,t,V_)))},223:function(e,t,n,r,i,o){return n.factory.updateAwaitExpression(e,_n.checkDefined(i(e.expression,t,V_)))},224:function(e,t,n,r,i,o){return n.factory.updatePrefixUnaryExpression(e,_n.checkDefined(i(e.operand,t,V_)))},225:function(e,t,n,r,i,o){return n.factory.updatePostfixUnaryExpression(e,_n.checkDefined(i(e.operand,t,V_)))},226:function(e,t,n,r,i,o){return n.factory.updateBinaryExpression(e,_n.checkDefined(i(e.left,t,V_)),o?_n.checkDefined(i(e.operatorToken,o,zA)):e.operatorToken,_n.checkDefined(i(e.right,t,V_)))},227:function(e,t,n,r,i,o){return n.factory.updateConditionalExpression(e,_n.checkDefined(i(e.condition,t,V_)),o?_n.checkDefined(i(e.questionToken,o,JN)):e.questionToken,_n.checkDefined(i(e.whenTrue,t,V_)),o?_n.checkDefined(i(e.colonToken,o,zN)):e.colonToken,_n.checkDefined(i(e.whenFalse,t,V_)))},228:function(e,t,n,r,i,o){return n.factory.updateTemplateExpression(e,_n.checkDefined(i(e.head,t,PN)),r(e.templateSpans,t,wF))},229:function(e,t,n,r,i,o){return n.factory.updateYieldExpression(e,o?i(e.asteriskToken,o,MN):e.asteriskToken,i(e.expression,t,V_))},230:function(e,t,n,r,i,o){return n.factory.updateSpreadElement(e,_n.checkDefined(i(e.expression,t,V_)))},231:function(e,t,n,r,i,o){return n.factory.updateClassExpression(e,r(e.modifiers,t,g_),i(e.name,t,VN),r(e.typeParameters,t,sD),r(e.heritageClauses,t,BE),r(e.members,t,__))},233:function(e,t,n,r,i,o){return n.factory.updateExpressionWithTypeArguments(e,_n.checkDefined(i(e.expression,t,V_)),r(e.typeArguments,t,b_))},234:function(e,t,n,r,i,o){return n.factory.updateAsExpression(e,_n.checkDefined(i(e.expression,t,V_)),_n.checkDefined(i(e.type,t,b_)))},238:function(e,t,n,r,i,o){return n.factory.updateSatisfiesExpression(e,_n.checkDefined(i(e.expression,t,V_)),_n.checkDefined(i(e.type,t,b_)))},235:function(e,t,n,r,i,o){return hl(e)?n.factory.updateNonNullChain(e,_n.checkDefined(i(e.expression,t,V_))):n.factory.updateNonNullExpression(e,_n.checkDefined(i(e.expression,t,V_)))},236:function(e,t,n,r,i,o){return n.factory.updateMetaProperty(e,_n.checkDefined(i(e.name,t,VN)))},239:function(e,t,n,r,i,o){return n.factory.updateTemplateSpan(e,_n.checkDefined(i(e.expression,t,V_)),_n.checkDefined(i(e.literal,t,Rl)))},241:function(e,t,n,r,i,o){return n.factory.updateBlock(e,r(e.statements,t,pu))},243:function(e,t,n,r,i,o){return n.factory.updateVariableStatement(e,r(e.modifiers,t,g_),_n.checkDefined(i(e.declarationList,t,KF)))},244:function(e,t,n,r,i,o){return n.factory.updateExpressionStatement(e,_n.checkDefined(i(e.expression,t,V_)))},245:function(e,t,n,r,i,o){return n.factory.updateIfStatement(e,_n.checkDefined(i(e.expression,t,V_)),_n.checkDefined(i(e.thenStatement,t,pu,n.factory.liftToBlock)),i(e.elseStatement,t,pu,n.factory.liftToBlock))},246:function(e,t,n,r,i,o){return n.factory.updateDoStatement(e,_J(e.statement,t,n,i),_n.checkDefined(i(e.expression,t,V_)))},247:function(e,t,n,r,i,o){return n.factory.updateWhileStatement(e,_n.checkDefined(i(e.expression,t,V_)),_J(e.statement,t,n,i))},248:function(e,t,n,r,i,o){return n.factory.updateForStatement(e,i(e.initializer,t,eu),i(e.condition,t,V_),i(e.incrementor,t,V_),_J(e.statement,t,n,i))},249:function(e,t,n,r,i,o){return n.factory.updateForInStatement(e,_n.checkDefined(i(e.initializer,t,eu)),_n.checkDefined(i(e.expression,t,V_)),_J(e.statement,t,n,i))},250:function(e,t,n,r,i,o){return n.factory.updateForOfStatement(e,o?i(e.awaitModifier,o,XN):e.awaitModifier,_n.checkDefined(i(e.initializer,t,eu)),_n.checkDefined(i(e.expression,t,V_)),_J(e.statement,t,n,i))},251:function(e,t,n,r,i,o){return n.factory.updateContinueStatement(e,i(e.label,t,VN))},252:function(e,t,n,r,i,o){return n.factory.updateBreakStatement(e,i(e.label,t,VN))},253:function(e,t,n,r,i,o){return n.factory.updateReturnStatement(e,i(e.expression,t,V_))},254:function(e,t,n,r,i,o){return n.factory.updateWithStatement(e,_n.checkDefined(i(e.expression,t,V_)),_n.checkDefined(i(e.statement,t,pu,n.factory.liftToBlock)))},255:function(e,t,n,r,i,o){return n.factory.updateSwitchStatement(e,_n.checkDefined(i(e.expression,t,V_)),_n.checkDefined(i(e.caseBlock,t,nE)))},256:function(e,t,n,r,i,o){return n.factory.updateLabeledStatement(e,_n.checkDefined(i(e.label,t,VN)),_n.checkDefined(i(e.statement,t,pu,n.factory.liftToBlock)))},257:function(e,t,n,r,i,o){return n.factory.updateThrowStatement(e,_n.checkDefined(i(e.expression,t,V_)))},258:function(e,t,n,r,i,o){return n.factory.updateTryStatement(e,_n.checkDefined(i(e.tryBlock,t,DF)),i(e.catchClause,t,JE),i(e.finallyBlock,t,DF))},260:function(e,t,n,r,i,o){return n.factory.updateVariableDeclaration(e,_n.checkDefined(i(e.name,t,n_)),o?i(e.exclamationToken,o,BN):e.exclamationToken,i(e.type,t,b_),i(e.initializer,t,V_))},261:function(e,t,n,r,i,o){return n.factory.updateVariableDeclarationList(e,r(e.declarations,t,HF))},262:function(e,t,n,r,i,o){return n.factory.updateFunctionDeclaration(e,r(e.modifiers,t,Zl),o?i(e.asteriskToken,o,MN):e.asteriskToken,i(e.name,t,VN),r(e.typeParameters,t,sD),sJ(e.parameters,t,n,r),i(e.type,t,b_),lJ(e.body,t,n,i))},263:function(e,t,n,r,i,o){return n.factory.updateClassDeclaration(e,r(e.modifiers,t,g_),i(e.name,t,VN),r(e.typeParameters,t,sD),r(e.heritageClauses,t,BE),r(e.members,t,__))},264:function(e,t,n,r,i,o){return n.factory.updateInterfaceDeclaration(e,r(e.modifiers,t,g_),_n.checkDefined(i(e.name,t,VN)),r(e.typeParameters,t,sD),r(e.heritageClauses,t,BE),r(e.members,t,h_))},265:function(e,t,n,r,i,o){return n.factory.updateTypeAliasDeclaration(e,r(e.modifiers,t,g_),_n.checkDefined(i(e.name,t,VN)),r(e.typeParameters,t,sD),_n.checkDefined(i(e.type,t,b_)))},266:function(e,t,n,r,i,o){return n.factory.updateEnumDeclaration(e,r(e.modifiers,t,g_),_n.checkDefined(i(e.name,t,VN)),r(e.members,t,VE))},267:function(e,t,n,r,i,o){return n.factory.updateModuleDeclaration(e,r(e.modifiers,t,g_),_n.checkDefined(i(e.name,t,jA)),i(e.body,t,tu))},268:function(e,t,n,r,i,o){return n.factory.updateModuleBlock(e,r(e.statements,t,pu))},269:function(e,t,n,r,i,o){return n.factory.updateCaseBlock(e,r(e.clauses,t,ku))},270:function(e,t,n,r,i,o){return n.factory.updateNamespaceExportDeclaration(e,_n.checkDefined(i(e.name,t,VN)))},271:function(e,t,n,r,i,o){return n.factory.updateImportEqualsDeclaration(e,r(e.modifiers,t,g_),e.isTypeOnly,_n.checkDefined(i(e.name,t,VN)),_n.checkDefined(i(e.moduleReference,t,mu)))},272:function(e,t,n,r,i,o){return n.factory.updateImportDeclaration(e,r(e.modifiers,t,g_),i(e.importClause,t,aE),_n.checkDefined(i(e.moduleSpecifier,t,V_)),i(e.attributes,t,_E))},300:function(e,t,n,r,i,o){return n.factory.updateImportAttributes(e,r(e.elements,t,uE),e.multiLine)},301:function(e,t,n,r,i,o){return n.factory.updateImportAttribute(e,_n.checkDefined(i(e.name,t,Vl)),_n.checkDefined(i(e.value,t,V_)))},273:function(e,t,n,r,i,o){return n.factory.updateImportClause(e,e.isTypeOnly,i(e.name,t,VN),i(e.namedBindings,t,iu))},274:function(e,t,n,r,i,o){return n.factory.updateNamespaceImport(e,_n.checkDefined(i(e.name,t,VN)))},280:function(e,t,n,r,i,o){return n.factory.updateNamespaceExport(e,_n.checkDefined(i(e.name,t,VN)))},275:function(e,t,n,r,i,o){return n.factory.updateNamedImports(e,r(e.elements,t,mE))},276:function(e,t,n,r,i,o){return n.factory.updateImportSpecifier(e,e.isTypeOnly,i(e.propertyName,t,bE),_n.checkDefined(i(e.name,t,VN)))},277:function(e,t,n,r,i,o){return n.factory.updateExportAssignment(e,r(e.modifiers,t,g_),_n.checkDefined(i(e.expression,t,V_)))},278:function(e,t,n,r,i,o){return n.factory.updateExportDeclaration(e,r(e.modifiers,t,g_),e.isTypeOnly,i(e.exportClause,t,wl),i(e.moduleSpecifier,t,V_),i(e.attributes,t,_E))},279:function(e,t,n,r,i,o){return n.factory.updateNamedExports(e,r(e.elements,t,vE))},281:function(e,t,n,r,i,o){return n.factory.updateExportSpecifier(e,e.isTypeOnly,i(e.propertyName,t,bE),_n.checkDefined(i(e.name,t,bE)))},283:function(e,t,n,r,i,o){return n.factory.updateExternalModuleReference(e,_n.checkDefined(i(e.expression,t,V_)))},284:function(e,t,n,r,i,o){return n.factory.updateJsxElement(e,_n.checkDefined(i(e.openingElement,t,NE)),r(e.children,t,hu),_n.checkDefined(i(e.closingElement,t,DE)))},285:function(e,t,n,r,i,o){return n.factory.updateJsxSelfClosingElement(e,_n.checkDefined(i(e.tagName,t,gu)),r(e.typeArguments,t,b_),_n.checkDefined(i(e.attributes,t,IE)))},286:function(e,t,n,r,i,o){return n.factory.updateJsxOpeningElement(e,_n.checkDefined(i(e.tagName,t,gu)),r(e.typeArguments,t,b_),_n.checkDefined(i(e.attributes,t,IE)))},287:function(e,t,n,r,i,o){return n.factory.updateJsxClosingElement(e,_n.checkDefined(i(e.tagName,t,gu)))},295:function(e,t,n,r,i,o){return n.factory.updateJsxNamespacedName(e,_n.checkDefined(i(e.namespace,t,VN)),_n.checkDefined(i(e.name,t,VN)))},288:function(e,t,n,r,i,o){return n.factory.updateJsxFragment(e,_n.checkDefined(i(e.openingFragment,t,EE)),r(e.children,t,hu),_n.checkDefined(i(e.closingFragment,t,PE)))},291:function(e,t,n,r,i,o){return n.factory.updateJsxAttribute(e,_n.checkDefined(i(e.name,t,iC)),i(e.initializer,t,vu))},292:function(e,t,n,r,i,o){return n.factory.updateJsxAttributes(e,r(e.properties,t,yu))},293:function(e,t,n,r,i,o){return n.factory.updateJsxSpreadAttribute(e,_n.checkDefined(i(e.expression,t,V_)))},294:function(e,t,n,r,i,o){return n.factory.updateJsxExpression(e,i(e.expression,t,V_))},296:function(e,t,n,r,i,o){return n.factory.updateCaseClause(e,_n.checkDefined(i(e.expression,t,V_)),r(e.statements,t,pu))},297:function(e,t,n,r,i,o){return n.factory.updateDefaultClause(e,r(e.statements,t,pu))},298:function(e,t,n,r,i,o){return n.factory.updateHeritageClause(e,r(e.types,t,yF))},299:function(e,t,n,r,i,o){return n.factory.updateCatchClause(e,i(e.variableDeclaration,t,HF),_n.checkDefined(i(e.block,t,DF)))},303:function(e,t,n,r,i,o){return n.factory.updatePropertyAssignment(e,_n.checkDefined(i(e.name,t,t_)),_n.checkDefined(i(e.initializer,t,V_)))},304:function(e,t,n,r,i,o){return n.factory.updateShorthandPropertyAssignment(e,_n.checkDefined(i(e.name,t,VN)),i(e.objectAssignmentInitializer,t,V_))},305:function(e,t,n,r,i,o){return n.factory.updateSpreadAssignment(e,_n.checkDefined(i(e.expression,t,V_)))},306:function(e,t,n,r,i,o){return n.factory.updateEnumMember(e,_n.checkDefined(i(e.name,t,t_)),i(e.initializer,t,V_))},307:function(e,t,n,r,i,o){return n.factory.updateSourceFile(e,aJ(e.statements,t,n))},355:function(e,t,n,r,i,o){return n.factory.updatePartiallyEmittedExpression(e,_n.checkDefined(i(e.expression,t,V_)))},356:function(e,t,n,r,i,o){return n.factory.updateCommaListExpression(e,r(e.elements,t,V_))}};function fJ(e){return _n.assert(e.length<=1,"Too many nodes written to output."),ve(e)}function mJ(e,t,n,r,i){var o,a,{enter:s,exit:c}=i.extendedDiagnostics?Wn("Source Map","beforeSourcemap","afterSourcemap"):Kn,l=[],_=[],u=new Map,d=[],p=[],f="",m=0,g=0,h=0,y=0,v=0,b=0,x=!1,k=0,S=0,T=0,C=0,w=0,N=0,D=!1,F=!1,E=!1;return{getSources:()=>l,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 _=SJ(n.mappings);for(const s of _){if(o&&(s.generatedLine>o.line||s.generatedLine===o.line&&s.generatedCharacter>o.character))break;if(i&&(s.generatedLine<i.line||i.line===s.generatedLine&&s.generatedCharacter<i.character))continue;let c,_,u,d;if(void 0!==s.sourceIndex){if(c=a[s.sourceIndex],void 0===c){const e=n.sources[s.sourceIndex],t=n.sourceRoot?Ro(n.sourceRoot,e):e,i=Ro(Fo(r),t);a[s.sourceIndex]=c=P(i),n.sourcesContent&&"string"==typeof n.sourcesContent[s.sourceIndex]&&A(c,n.sourcesContent[s.sourceIndex])}_=s.sourceLine,u=s.sourceCharacter,n.names&&void 0!==s.nameIndex&&(l||(l=[]),d=l[s.nameIndex],void 0===d&&(l[s.nameIndex]=d=I(n.names[s.nameIndex])))}const p=s.generatedLine-(i?i.line:0),f=p+e,m=i&&i.line===s.generatedLine?s.generatedCharacter-i.character:s.generatedCharacter;O(f,0===p?m+t:m,c,_,u,d)}c()},toJSON:M,toString:()=>JSON.stringify(M())};function P(t){s();const n=aa(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<e;)o.push(null);o[e]=t}c()}function I(e){s(),a||(a=new Map);let t=a.get(e);return void 0===t&&(t=d.length,d.push(e),a.set(e,t)),c(),t}function O(e,t,n,r,i,o){_n.assert(e>=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!D||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,D=!0),void 0!==n&&void 0!==r&&void 0!==i&&(T=n,C=r,w=i,F=!0,void 0!==o&&(N=o,E=!0)),c()}function L(e){p.push(e),p.length>=1024&&R()}function j(){if(D&&(!x||m!==k||g!==S||h!==T||y!==C||v!==w||b!==N)){if(s(),m<k){do{L(59),m++}while(m<k);g=0}else _n.assertEqual(m,k,"generatedLine cannot backtrack"),x&&L(44);B(S-g),g=S,F&&(B(T-h),h=T,B(C-y),y=C,B(w-v),v=w,E&&(B(N-b),b=N)),x=!0,c()}}function R(){p.length>0&&(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 gJ=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,hJ=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,yJ=/^\s*(\/\/[@#] .*)?$/;function vJ(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function bJ(e){for(let t=e.getLineCount()-1;t>=0;t--){const n=e.getLineText(t),r=hJ.exec(n);if(r)return r[1].trimEnd();if(!n.match(yJ))break}}function xJ(e){return"string"==typeof e||null===e}function kJ(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,xJ))&&(void 0===t.names||null===t.names||Xe(t.names)&&h(t.names,Ye)))return n}catch{}var t}function SJ(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;){const t=e.charCodeAt(r);if(59===t){i++,o=0,r++;continue}if(44===t){r++;continue}let d=!1,h=!1;if(o+=g(),f())return u();if(o<0)return p("Invalid generatedCharacter found");if(!m()){if(d=!0,a+=g(),f())return u();if(a<0)return p("Invalid sourceIndex found");if(m())return p("Unsupported Format: No entries after sourceIndex");if(s+=g(),f())return u();if(s<0)return p("Invalid sourceLine found");if(m())return p("Unsupported Format: No entries after sourceLine");if(c+=g(),f())return u();if(c<0)return p("Invalid sourceCharacter found");if(!m()){if(h=!0,l+=g(),f())return u();if(l<0)return p("Invalid nameIndex found");if(!m())return p("Unsupported Error Format: Entries after nameIndex")}}return{value:_(d,h),done:n}}return u()},[Symbol.iterator](){return this}};function _(e,t){return{generatedLine:i,generatedCharacter:o,sourceIndex:e?a:void 0,sourceLine:e?s:void 0,sourceCharacter:e?c:void 0,nameIndex:t?l:void 0}}function u(){return n=!0,{value:void 0,done:!0}}function d(e){void 0===t&&(t=e)}function p(e){return d(e),u()}function f(){return void 0!==t}function m(){return r===e.length||44===e.charCodeAt(r)||59===e.charCodeAt(r)}function g(){let t=!0,n=0,i=0;for(;t;r++){if(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)<<n,n+=5}var o;return 1&i?(i>>=1,i=-i):i>>=1,i}}function TJ(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 CJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function wJ(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function NJ(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function DJ(e,t){return _n.assert(e.sourceIndex===t.sourceIndex),yt(e.sourcePosition,t.sourcePosition)}function FJ(e,t){return yt(e.generatedPosition,t.generatedPosition)}function EJ(e){return e.sourcePosition}function PJ(e){return e.generatedPosition}function AJ(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,FJ,NJ)}return u}();if(!V(t))return e;let n=Te(t,e.pos,PJ,yt);n<0&&(n=~n);const r=t[n];if(void 0===r||!wJ(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(!wJ(t))continue;let n=e[t.sourceIndex];n||(e[t.sourceIndex]=n=[]),n.push(t)}d=e.map((e=>Z(e,DJ,NJ)))}return d[e]}(n);if(!V(r))return t;let i=Te(r,t.pos,EJ,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?La(a,n.generatedLine,n.generatedCharacter,!0):-1;let i,o;if(CJ(n)){const r=e.getSourceFileLike(c[n.sourceIndex]);i=t.sources[n.sourceIndex],o=void 0!==r?La(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=SJ(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 IJ={getSourcePosition:at,getGeneratedPosition:at};function OJ(e){return(e=_c(e))?$B(e):0}function LJ(e){return!!e&&(!(!fE(e)&&!yE(e))&&V(e.elements,jJ))}function jJ(e){return Hd(e.propertyName||e.name)}function RJ(e,t){return function(n){return 307===n.kind?t(n):function(n){return e.factory.createBundle(D(n.sourceFiles,t))}(n)}}function MJ(e){return!!Sg(e)}function BJ(e){if(Sg(e))return!0;const t=e.importClause&&e.importClause.namedBindings;if(!t)return!1;if(!fE(t))return!1;let n=0;for(const e of t.elements)jJ(e)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&Tg(e)}function JJ(e){return!BJ(e)&&(Tg(e)||!!e.importClause&&fE(e.importClause.namedBindings)&&LJ(e.importClause.namedBindings))}function zJ(e,t){const n=e.getEmitResolver(),r=e.getCompilerOptions(),i=[],o=new WJ,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 272:i.push(n),!p&&BJ(n)&&(p=!0),!f&&JJ(n)&&(f=!0);break;case 271:283===n.moduleReference.kind&&i.push(n);break;case 278:if(n.moduleSpecifier)if(n.exportClause)if(i.push(n),yE(n.exportClause))g(n),f||(f=LJ(n.exportClause));else{const e=n.exportClause.name,t=Wd(e);s.get(t)||(UJ(a,OJ(n),e),s.set(t,!0),l=re(l,e)),p=!0}else i.push(n),d=!0;else g(n);break;case 277:n.isExportEquals&&!_&&(_=n);break;case 243:if(Dv(n,32))for(const e of n.declarationList.declarations)l=qJ(e,s,l,a);break;case 262:Dv(n,32)&&h(n,void 0,Dv(n,2048));break;case 263:if(Dv(n,32))if(Dv(n,2048))u||(UJ(a,OJ(n),e.factory.getDeclarationName(n)),u=!0);else{const e=n.name;e&&!s.get(gc(e))&&(UJ(a,OJ(n),e),s.set(gc(e),!0),l=re(l,e))}}const m=gA(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,yE).elements){const r=Wd(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(262===r.kind){h(r,t.name,Hd(t.name));continue}UJ(a,OJ(r),t.name)}}s.set(r,!0),l=re(l,t.name)}}}function h(t,n,r){if(c.add(_c(t,GF)),r)u||(UJ(a,OJ(t),n??e.factory.getDeclarationName(t)),u=!0);else{n??(n=t.name);const e=Wd(n);s.get(e)||(UJ(a,OJ(t),n),s.set(e,!0))}}}function qJ(e,t,n,r){if(k_(e.name))for(const i of e.name.elements)hF(i)||(n=qJ(i,t,n,r));else if(!Wl(e.name)){const i=gc(e.name);t.get(i)||(t.set(i,!0),n=re(n,e.name),tA(e.name)&&UJ(r,OJ(e),e.name))}return n}function UJ(e,t,n){let r=e[t];return r?r.push(n):e[t]=r=[n],r}var VJ=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($l(t)||Wl(t)){const n=t.emitNode.autoGenerate;if(4==(7&n.flags)){const r=QA(t),i=dl(r)&&r!==t?e.toKey(r):`(generated@${$B(r)})`;return eI(!1,n.prefix,i,n.suffix,e.toKey)}{const t=`(auto@${n.id})`;return eI(!1,n.prefix,t,n.suffix,e.toKey)}}return WN(t)?gc(t).slice(1):gc(t)}},WJ=class extends VJ{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 $J(e){return ju(e)||9===e.kind||Ch(e.kind)||VN(e)}function HJ(e){return!VN(e)&&$J(e)}function KJ(e){return e>=65&&e<=79}function GJ(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 XJ(e){if(!PF(e))return;const t=ah(e.expression);return cf(t)?t:void 0}function QJ(e,t,n){for(let r=t;r<e.length;r+=1){const t=e[r];if(XJ(t))return n.unshift(r),!0;if(WF(t)&&QJ(t.tryBlock.statements,0,n))return n.unshift(r),!0}return!1}function YJ(e,t){const n=[];return QJ(e,t,n),n}function ZJ(e,t,n){return C(e.members,(e=>function(e,t,n){return uD(e)&&(!!e.initializer||!t)&&Ev(e)===n}(e,t,n)))}function ez(e){return uD(t=e)&&Ev(t)||fD(e);var t}function tz(e){return C(e.members,ez)}function nz(e){return 172===e.kind&&void 0!==e.initializer}function rz(e){return!Fv(e)&&(m_(e)||p_(e))&&WN(e.name)}function iz(e){let t;if(e){const n=e.parameters,r=n.length>0&&cv(n[0]),i=r?1:0,o=r?n.length-1:n.length;for(let e=0;e<o;e++){const r=n[e+i];(t||jv(r))&&(t||(t=new Array(o)),t[e]=Nc(r))}}return t}function oz(e,t){const n=Nc(e),r=t?iz(iv(e)):void 0;if(V(n)||V(r))return{decorators:n,parameters:r}}function az(e,t,n){switch(e.kind){case 177:case 178:return n?function(e,t,n){if(!e.body)return;const{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:a}=pv(t.members,e),s=jv(r)?r:i&&jv(i)?i:void 0;if(!s||e!==s)return;const c=Nc(s),l=n?iz(a):void 0;if(!V(c)&&!V(l))return;return{decorators:c,parameters:l,getDecorators:o&&Nc(o),setDecorators:a&&Nc(a)}}(e,t,!0):sz(e,!1);case 174:return sz(e,n);case 172:return function(e){const t=Nc(e);if(!V(t))return;return{decorators:t}}(e);default:return}}function sz(e,t){if(!e.body)return;const n=Nc(e),r=t?iz(e):void 0;return V(n)||V(r)?{decorators:n,parameters:r}:void 0}function cz(e){return{data:e}}function lz(e,t){var n,r;return $l(t)?null==(n=null==e?void 0:e.generatedIdentifiers)?void 0:n.get(QA(t)):null==(r=null==e?void 0:e.identifiers)?void 0:r.get(t.escapedText)}function _z(e,t,n){$l(t)?(e.generatedIdentifiers??(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(QA(t),n)):(e.identifiers??(e.identifiers=new Map),e.identifiers.set(t.escapedText,n))}function uz(e,t){return function(e,t){for(;e;){const n=t(e);if(void 0!==n)return n;e=e.previous}}(e,(e=>lz(e.privateEnv,t)))}function dz(e){return!e.initializer&&VN(e.name)}function pz(e){return h(e,dz)}function fz(e,t){if(!e||!NN(e)||!xg(e.text,t))return e;const n=HS(e.text,Vq(e.text,t));return n!==e.text?tw(cI(ZC.createStringLiteral(n,e.singleQuote),e),e):e}var mz=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(mz||{});function gz(e,t,n,r,i,o){let a,s,c=e;if(ob(e))for(a=e.right;vb(e.left)||yb(e.left);){if(!ob(a))return _n.checkDefined(nJ(a,t,V_));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?VN:V_);const s=o?o(e,r,i):cI(n.factory.createAssignment(_n.checkDefined(nJ(e,t,V_)),r),i);s.original=a,_(s)},createArrayBindingOrAssignmentPattern:e=>function(e,t){return _n.assertEachNode(t,P_),e.createArrayLiteralExpression(D(t,e.converters.convertToArrayAssignmentElement))}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return _n.assertEachNode(t,F_),e.createObjectLiteralExpression(D(t,e.converters.convertToObjectAssignmentElement))}(n.factory,e),createArrayBindingOrAssignmentElement:Tz,visitor:t};if(a&&(a=nJ(a,t,V_),_n.assert(a),VN(a)&&hz(e,a.escapedText)||yz(e)?a=Sz(l,a,!1,c):i?a=Sz(l,a,!0,c):ey(e)&&(c=a)),bz(l,e,a,c,ob(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 hz(e,t){const n=xA(e);return N_(n)?function(e,t){const n=wA(e);for(const e of n)if(hz(e,t))return!0;return!1}(n,t):!!VN(n)&&n.escapedText===t}function yz(e){const t=TA(e);if(t&&aD(t)&&!Il(t.expression))return!0;const n=xA(e);return!!n&&N_(n)&&!!_(wA(n),yz)}function vz(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,T_),e.createArrayBindingPattern(t)}(n.factory,e),createObjectBindingOrAssignmentPattern:e=>function(e,t){return _n.assertEachNode(t,HD),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(HF(e)){let t=bA(e);t&&(VN(t)&&hz(e,t.escapedText)||yz(e))&&(t=Sz(_,_n.checkDefined(nJ(t,_.visitor,V_)),!1,t),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,t))}if(bz(_,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,cI(a,i),l.push(a)}return l;function u(e,t,r,i){_n.assertNode(e,n_),s&&(t=n.factory.inlineExpressions(re(s,t)),s=void 0),c.push({pendingExpressions:s,name:e,value:t,location:r,original:i})}}function bz(e,t,n,r,i){const o=xA(t);if(!i){const i=nJ(bA(t),e.visitor,V_);i?n?(n=function(e,t,n,r){return t=Sz(e,t,!0,r),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}(e,n,i,r),!HJ(i)&&N_(o)&&(n=Sz(e,n,!0,r))):n=i:n||(n=e.context.factory.createVoidZero())}D_(o)?function(e,t,n,r,i){const o=wA(n),a=o.length;if(1!==a){r=Sz(e,r,!C_(t)||0!==a,i)}let s,c;for(let t=0;t<a;t++){const l=o[t];if(kA(l)){if(t===a-1){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n),s=void 0);const t=e.context.getEmitHelperFactory().createRestHelper(r,o,c,n);bz(e,l,t,l)}}else{const t=SA(l);if(!(e.level>=1)||98304&l.transformFlags||98304&xA(l).transformFlags||aD(t)){s&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n),s=void 0);const o=kz(e,r,t);aD(t)&&(c=re(c,o.argumentExpression)),bz(e,l,o,l)}else s=re(s,nJ(l,e.visitor,w_))}}s&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(s),r,i,n)}(e,t,o,n,r):E_(o)?function(e,t,n,r,i){const o=wA(n),a=o.length;if(e.level<1&&e.downlevelIteration)r=Sz(e,cI(e.context.getEmitHelperFactory().createReadHelper(r,a>0&&kA(o[a-1])?void 0:a),i),!1,i);else if(1!==a&&(e.level<1||0===a)||h(o,hF)){r=Sz(e,r,!C_(t)||0!==a,i)}let s,c;for(let t=0;t<a;t++){const n=o[t];if(e.level>=1)if(65536&n.transformFlags||e.hasTransformedPriorElement&&!xz(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(hF(n))continue;if(kA(n)){if(t===a-1){const i=e.context.factory.createArraySliceCall(r,t);bz(e,n,i,n)}}else{const i=e.context.factory.createElementAccessExpression(r,t);bz(e,n,i,n)}}}s&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(s),r,i,n);if(c)for(const[t,n]of c)bz(e,n,t,n)}(e,t,o,n,r):e.emitBindingOrAssignment(o,n,r,t)}function xz(e){const t=xA(e);if(!t||hF(t))return!0;const n=TA(e);if(n&&!zh(n))return!1;const r=bA(e);return!(r&&!HJ(r))&&(N_(t)?h(wA(t),xz):VN(t))}function kz(e,t,n){const{factory:r}=e.context;if(aD(n)){const r=Sz(e,_n.checkDefined(nJ(n.expression,e.visitor,V_)),!1,n);return e.context.factory.createElementAccessExpression(t,r)}if(jh(n)||wN(n)){const i=r.cloneNode(n);return e.context.factory.createElementAccessExpression(t,i)}{const r=e.context.factory.createIdentifier(gc(n));return e.context.factory.createPropertyAccessExpression(t,r)}}function Sz(e,t,n,r){if(VN(t)&&n)return t;{const n=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(n),e.emitExpression(cI(e.context.factory.createAssignment(n,t),r))):e.emitBindingOrAssignment(n,t,r,void 0),n}}function Tz(e){return e}function Cz(e){var t;if(!fD(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return PF(n)&&ib(n.expression,!0)&&VN(n.expression.left)&&(null==(t=e.emitNode)?void 0:t.classThis)===n.expression.left&&110===n.expression.right.kind}function wz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.classThis)&&V(e.members,Cz)}function Nz(e,t,n,r){if(wz(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 nw(a).classThis=t,a}(e,n,r);t.name&&_w(i.body.statements[0],t.name);const o=e.createNodeArray([i,...t.members]);cI(o,t.members);const a=XF(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 nw(a).classThis=n,a}function Dz(e,t,n){const r=_c(uA(n));return(XF(r)||GF(r))&&!r.name&&Dv(r,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function Fz(e,t,n){const{factory:r}=e;if(void 0!==n){return{assignedName:r.createStringLiteral(n),name:t}}if(zh(t)||WN(t)){return{assignedName:r.createStringLiteralFromNode(t),name:t}}if(zh(t.expression)&&!VN(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 Ez(e){var t;if(!fD(e)||1!==e.body.statements.length)return!1;const n=e.body.statements[0];return PF(n)&&TN(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===(null==(t=e.emitNode)?void 0:t.assignedName)}function Pz(e){var t;return!!(null==(t=e.emitNode)?void 0:t.assignedName)&&V(e.members,Ez)}function Az(e){return!!e.name||Pz(e)}function Iz(e,t,n,r){if(Pz(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 nw(s).assignedName=t,s}(e,n,r);t.name&&_w(o.body.statements[0],t.name);const a=b(t.members,Cz)+1,s=t.members.slice(0,a),c=t.members.slice(a),l=i.createNodeArray([...s,o,...c]);return cI(l,t.members),nw(t=XF(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 Oz(e,t,n,r){if(r&&NN(n)&&ym(n))return t;const{factory:i}=e,o=uA(t),a=gF(o)?tt(Iz(e,o,n),gF):e.getEmitHelperFactory().createSetFunctionNameHelper(o,n);return i.restoreOuterExpressions(t,a)}function Lz(e,t,n,r){switch(t.kind){case 303:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=Fz(e,t.name,r),s=Oz(e,t.initializer,o,n);return i.updatePropertyAssignment(t,a,s)}(e,t,n,r);case 304:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Dz(i,t.name,t.objectAssignmentInitializer),a=Oz(e,t.objectAssignmentInitializer,o,n);return i.updateShorthandPropertyAssignment(t,t.name,a)}(e,t,n,r);case 260:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Dz(i,t.name,t.initializer),a=Oz(e,t.initializer,o,n);return i.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,a)}(e,t,n,r);case 169:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Dz(i,t.name,t.initializer),a=Oz(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 208:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Dz(i,t.name,t.initializer),a=Oz(e,t.initializer,o,n);return i.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,a)}(e,t,n,r);case 172:return function(e,t,n,r){const{factory:i}=e,{assignedName:o,name:a}=Fz(e,t.name,r),s=Oz(e,t.initializer,o,n);return i.updatePropertyDeclaration(t,t.modifiers,a,t.questionToken??t.exclamationToken,t.type,s)}(e,t,n,r);case 226:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):Dz(i,t.left,t.right),a=Oz(e,t.right,o,n);return i.updateBinaryExpression(t,t.left,t.operatorToken,a)}(e,t,n,r);case 277:return function(e,t,n,r){const{factory:i}=e,o=void 0!==r?i.createStringLiteral(r):i.createStringLiteral(t.isExportEquals?"":"default"),a=Oz(e,t.expression,o,n);return i.updateExportAssignment(t,t.modifiers,a)}(e,t,n,r)}}var jz=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(jz||{});function Rz(e,t,n,r,i,o){const a=nJ(t.tag,n,V_);_n.assert(a);const s=[void 0],c=[],l=[],_=t.template;if(0===o&&!fy(_))return dJ(t,n,e);const{factory:u}=e;if(EN(_))c.push(Mz(u,_)),l.push(Bz(u,_,r));else{c.push(Mz(u,_.head)),l.push(Bz(u,_.head,r));for(const e of _.templateSpans)c.push(Mz(u,e.literal)),l.push(Bz(u,e.literal,r)),s.push(_n.checkDefined(nJ(e.expression,n,V_)))}const d=e.getEmitHelperFactory().createTemplateObjectHelper(u.createArrayLiteralExpression(c),u.createArrayLiteralExpression(l));if(VI(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 Mz(e,t){return 26656&t.templateFlags?e.createVoidZero():e.createStringLiteral(t.text)}function Bz(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=Ud(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"),cI(e.createStringLiteral(r),t)}var Jz=!1;function zz(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:a}=e,s=e.getEmitResolver(),c=e.getCompilerOptions(),l=vk(c),_=bk(c),u=!!c.experimentalDecorators,d=c.emitDecoratorMetadata?Vz(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;WE(t)&&(m=t);2&x&&function(e){return 267===_c(e).kind}(t)&&(b|=2);8&x&&function(e){return 266===_c(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 211:case 212:return function(e){return Ne(e)}(e)}return e}(n);if(qE(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 cI(t.createPropertyAssignment(n,i),e)}return cI(t.createPropertyAssignment(n,r),e)}}return e}(n);return n},e.enableSubstitution(211),e.enableSubstitution(212);let b,x=0;return function(e){if(308===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 Nw(n,e.readEmitHelpers()),m=void 0,n}function S(e,t){const n=y,r=v;!function(e){switch(e.kind){case 307:case 269:case 268:case 241:y=e,v=void 0;break;case 263:case 262:if(Dv(e,128))break;e.name?ce(e):_n.assert(263===e.kind||Dv(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 N(e){return S(e,F)}function F(n){switch(n.kind){case 272:case 271:case 277:case 278:return function(n){if(function(e){const t=pc(e);if(t===e||gE(e))return!1;if(!t||t.kind!==e.kind)return!0;switch(e.kind){case 272:if(_n.assertNode(t,oE),e.importClause!==t.importClause)return!0;if(e.attributes!==t.attributes)return!0;break;case 271:if(_n.assertNode(t,iE),e.name!==t.name)return!0;if(e.isTypeOnly!==t.isTypeOnly)return!0;if(e.moduleReference!==t.moduleReference&&(e_(e.moduleReference)||e_(t.moduleReference)))return!0;break;case 278:if(_n.assertNode(t,hE),e.exportClause!==t.exportClause)return!0;if(e.attributes!==t.attributes)return!0}return!1}(n))return 1&n.transformFlags?dJ(n,T,e):n;switch(n.kind){case 272:return function(e){if(!e.importClause)return e;if(e.importClause.isTypeOnly)return;const n=nJ(e.importClause,pe,aE);return n?t.updateImportDeclaration(e,void 0,n,e.moduleSpecifier,e.attributes):void 0}(n);case 271:return he(n);case 277:return function(t){return c.verbatimModuleSyntax||s.isValueAliasDeclaration(t)?dJ(t,T,e):void 0}(n);case 278:return function(e){if(e.isTypeOnly)return;if(!e.exportClause||pE(e.exportClause))return t.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,e.moduleSpecifier,e.attributes);const n=!!c.verbatimModuleSyntax,r=nJ(e.exportClause,(e=>function(e,n){return pE(e)?function(e){return t.updateNamespaceExport(e,_n.checkDefined(nJ(e.name,T,VN)))}(e):function(e,n){const r=rJ(e.elements,ge,vE);return n||V(r)?t.updateNamedExports(e,r):void 0}(e,n)}(e,n)),wl);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(278!==e.kind&&272!==e.kind&&273!==e.kind&&(271!==e.kind||283!==e.moduleReference.kind))return 1&e.transformFlags||Dv(e,32)?M(e):e}function A(n){return r=>S(r,(r=>function(n,r){switch(n.kind){case 176: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=>Zs(e,r)));if(!V(a))return lJ(n,T,e);let s=[];i();const c=t.copyPrologue(n.statements,s,!1,T),l=YJ(n.statements,c),_=R(a,Z);l.length?Y(s,n.statements,c,l,0,_):(ae(s,_),ae(s,rJ(n.statements,T,pu,c)));s=t.mergeLexicalEnvironment(s,o());const u=t.createBlock(cI(t.createNodeArray(s),n.statements),!0);return cI(u,n),tw(u,n),u}(n.body,n))}(n);case 172:return function(e,n){const r=33554432&e.flags||Dv(e,64);if(r&&(!u||!jv(e)))return;let i=u_(n)?rJ(e.modifiers,r?L:T,g_):rJ(e.modifiers,O,g_);if(i=U(i,e,n),r)return t.updatePropertyDeclaration(e,$(i,t.createModifiersFromModifierFlags(128)),_n.checkDefined(nJ(e.name,T,t_)),void 0,void 0,void 0);return t.updatePropertyDeclaration(e,i,X(e),void 0,void 0,nJ(e.initializer,T,V_))}(n,r);case 177:return ne(n,r);case 178:return ie(n,r);case 174:return ee(n,r);case 175:return dJ(n,T,e);case 240:return n;case 181:return;default:return _n.failBadSyntaxKind(n)}}(r,n)))}function I(e){return t=>S(t,(t=>function(e,t){switch(e.kind){case 303:case 304:case 305:return T(e);case 177:return ne(e,t);case 178:return ie(e,t);case 174:return ee(e,t);default:return _n.failBadSyntaxKind(e)}}(t,e)))}function O(e){return lD(e)?void 0:T(e)}function L(e){return Zl(e)?void 0:T(e)}function j(e){if(!lD(e)&&!(28895&Kv(e.kind)||g&&95===e.kind))return e}function M(n){if(pu(n)&&Dv(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 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:case 270:return;case 265:case 264:return t.createNotEmittedStatement(n);case 263:return function(n){const r=function(e){let t=0;V(ZJ(e,!0,!0))&&(t|=1);const n=yh(e);n&&106!==uA(n.expression).kind&&(t|=64);gm(u,e)&&(t|=2);mm(u,e)&&(t|=4);ye(e)?t|=8:!function(e){return ve(e)&&Dv(e,2048)}(e)?be(e)&&(t|=16):t|=32;return t}(n),i=l<=1&&!!(7&r);if(!function(e){return jv(e)||V(e.typeParameters)||V(e.heritageClauses,J)||V(e.members,J)}(n)&&!gm(u,n)&&!ye(n))return t.updateClassDeclaration(n,rJ(n.modifiers,j,Zl),n.name,void 0,rJ(n.heritageClauses,T,BE),rJ(n.members,A(n),__));i&&e.startLexicalEnvironment();const o=i||8&r;let a=rJ(n.modifiers,o?L:T,g_);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,rJ(n.heritageClauses,T,BE),z(n));let d,p=Yd(n);1&r&&(p|=64);if(ow(_,p),i){const r=[_],i=Mb(Qa(m.text,n.members.end),20),o=t.getInternalName(n),a=t.createPartiallyEmittedExpression(o);CT(a,i.end),ow(a,3072);const s=t.createReturnStatement(a);TT(s,i.pos),ow(s,3840),r.push(s),Id(r,e.endLexicalEnvironment());const c=t.createImmediatelyInvokedArrowFunction(r);sw(c,1);const l=t.createVariableDeclaration(t.getLocalName(n,!1,!1),void 0,void 0,c);tw(l,n);const u=t.createVariableStatement(void 0,t.createVariableDeclarationList([l],1));tw(u,n),gw(u,n),_w(u,jb(n)),pA(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 231:return function(e){let n=rJ(e.modifiers,L,g_);gm(u,e)&&(n=q(n,e));return t.updateClassExpression(e,n,e.name,void 0,rJ(e.heritageClauses,T,BE),z(e))}(n);case 298:return function(t){if(119===t.token)return;return dJ(t,T,e)}(n);case 233:return function(e){return t.updateExpressionWithTypeArguments(e,_n.checkDefined(nJ(e.expression,T,M_)),void 0)}(n);case 210:return function(e){return t.updateObjectLiteralExpression(e,rJ(e.properties,I(e),v_))}(n);case 176:case 172:case 174:case 177:case 178:case 175:return _n.fail("Class and object literal elements must be visited with their respective visitors");case 262:return function(n){if(!Q(n))return t.createNotEmittedStatement(n);const r=t.updateFunctionDeclaration(n,rJ(n.modifiers,j,Zl),n.asteriskToken,n.name,void 0,sJ(n.parameters,T,e),void 0,lJ(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 218:return function(n){if(!Q(n))return t.createOmittedExpression();const r=t.updateFunctionExpression(n,rJ(n.modifiers,j,Zl),n.asteriskToken,n.name,void 0,sJ(n.parameters,T,e),void 0,lJ(n.body,T,e)||t.createBlock([]));return r}(n);case 219:return function(n){const r=t.updateArrowFunction(n,rJ(n.modifiers,j,Zl),void 0,sJ(n.parameters,T,e),void 0,n.equalsGreaterThanToken,lJ(n.body,T,e));return r}(n);case 169:return function(e){if(cv(e))return;const n=t.updateParameterDeclaration(e,rJ(e.modifiers,(e=>lD(e)?T(e):void 0),g_),e.dotDotDotToken,_n.checkDefined(nJ(e.name,T,n_)),void 0,void 0,nJ(e.initializer,T,V_));n!==e&&(gw(n,e),cI(n,Rb(e)),_w(n,Rb(e)),ow(n.name,64));return n}(n);case 217:return function(n){const r=uA(n.expression,-55);if(W_(r)||bF(r)){const e=nJ(n.expression,T,V_);return _n.assert(e),t.createPartiallyEmittedExpression(e,n)}return dJ(n,T,e)}(n);case 216:case 234:return function(e){const n=nJ(e.expression,T,V_);return _n.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 238:return function(e){const n=nJ(e.expression,T,V_);return _n.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 213:return function(e){return t.updateCallExpression(e,_n.checkDefined(nJ(e.expression,T,V_)),void 0,rJ(e.arguments,T,V_))}(n);case 214:return function(e){return t.updateNewExpression(e,_n.checkDefined(nJ(e.expression,T,V_)),void 0,rJ(e.arguments,T,V_))}(n);case 215:return function(e){return t.updateTaggedTemplateExpression(e,_n.checkDefined(nJ(e.tag,T,V_)),void 0,_n.checkDefined(nJ(e.template,T,R_)))}(n);case 235:return function(e){const n=nJ(e.expression,T,M_);return _n.assert(n),t.createPartiallyEmittedExpression(n,e)}(n);case 266:return function(e){if(!function(e){return!ef(e)||Ek(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=D(e.members,se);return Id(a,o()),ae(a,s),h=i,t.createBlock(cI(t.createNodeArray(a),e.members),!0)}(e,l)),void 0,[d]));tw(p,e),a&&(yw(p,void 0),xw(p,void 0));return cI(p,e),aw(p,i),n.push(p),n}(n);case 243:return function(n){if(ye(n)){const e=ex(n.declarationList);if(0===e.length)return;return cI(t.createExpressionStatement(t.inlineExpressions(D(e,oe))),n)}return dJ(n,T,e)}(n);case 260:return function(e){const n=t.updateVariableDeclaration(e,_n.checkDefined(nJ(e.name,T,n_)),void 0,void 0,nJ(e.initializer,T,V_));e.type&&Ow(n.name,e.type);return n}(n);case 267:return ue(n);case 271:return he(n);case 285:return function(e){return t.updateJsxSelfClosingElement(e,_n.checkDefined(nJ(e.tagName,T,gu)),void 0,_n.checkDefined(nJ(e.attributes,T,IE)))}(n);case 286:return function(e){return t.updateJsxOpeningElement(e,_n.checkDefined(nJ(e.tagName,T,gu)),void 0,_n.checkDefined(nJ(e.attributes,T,IE)))}(n);default:return dJ(n,T,e)}}function B(n){const r=zk(c,"alwaysStrict")&&!(VI(n)&&_>=5)&&!Zp(n);return t.updateSourceFile(n,aJ(n.statements,N,e,0,r))}function J(e){return!!(8192&e.transformFlags)}function z(e){const n=rJ(e.members,A(e),__);let r;const i=iv(e),o=i&&C(i.parameters,(e=>Zs(e,i)));if(o)for(const e of o){const n=t.createPropertyDeclaration(void 0,e.name,void 0,void 0,void 0);tw(n,e),r=re(r,n)}return r?(r=ae(r,n),cI(t.createNodeArray(r),e.members)):n}function q(e,n){const r=W(n,n);if(V(r)){const n=[];ae(n,sn(e,GA)),ae(n,C(e,lD)),ae(n,r),ae(n,C(cn(e,GA),Zl)),e=cI(t.createNodeArray(n),e)}return e}function U(e,n,r){if(u_(r)&&hm(u,n,r)){const i=W(n,r);if(V(i)){const n=[];ae(n,C(e,lD)),ae(n,i),ae(n,C(e,Zl)),e=cI(t.createNodeArray(n),e)}}return e}function W(e,r){if(u)return Jz?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 174===t||177===t||178===t||172===t}function K(e){return 174===e.kind}function G(e){switch(e.kind){case 263:case 231:return void 0!==iv(e);case 174:case 177:case 178:return!0}return!1}function X(e){const n=e.name;if(u&&aD(n)&&jv(e)){const e=nJ(n.expression,T,V_);_n.assert(e);if(!HJ(Sl(e))){const r=t.getGeneratedNameForNode(n);return a(r),t.updateComputedPropertyName(n,t.createAssignment(r,e))}}return _n.checkDefined(nJ(n,T,t_))}function Q(e){return!wd(e.body)}function Y(e,n,r,i,o,a){const s=i[o],c=n[s];if(ae(e,rJ(n,T,pu,r,s-r)),WF(c)){const n=[];Y(n,c.tryBlock.statements,0,i,o+1,a);cI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),nJ(c.catchClause,T,JE),nJ(c.finallyBlock,T,DF)))}else ae(e,rJ(n,T,pu,s,1)),ae(e,a);ae(e,rJ(n,T,pu,s+1))}function Z(e){const n=e.name;if(!VN(n))return;const r=FT(cI(t.cloneNode(n),n),n.parent);ow(r,3168);const i=FT(cI(t.cloneNode(n),n),n.parent);return ow(i,3072),pA(iw(cI(tw(t.createExpressionStatement(t.createAssignment(cI(t.createPropertyAccessExpression(t.createThis(),r),e.name),i)),e),Lb(e,-1))))}function ee(n,r){if(!(1&n.transformFlags))return n;if(!Q(n))return;let i=u_(r)?rJ(n.modifiers,T,g_):rJ(n.modifiers,O,g_);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,lJ(n.body,T,e))}function te(e){return!(wd(e.body)&&Dv(e,64))}function ne(n,r){if(!(1&n.transformFlags))return n;if(!te(n))return;let i=u_(r)?rJ(n.modifiers,T,g_):rJ(n.modifiers,O,g_);return i=U(i,n,r),t.updateGetAccessorDeclaration(n,i,X(n),sJ(n.parameters,T,e),void 0,lJ(n.body,T,e)||t.createBlock([]))}function ie(n,r){if(!(1&n.transformFlags))return n;if(!te(n))return;let i=u_(r)?rJ(n.modifiers,T,g_):rJ(n.modifiers,O,g_);return i=U(i,n,r),t.updateSetAccessorDeclaration(n,i,X(n),sJ(n.parameters,T,e),lJ(n.body,T,e)||t.createBlock([]))}function oe(n){const r=n.name;return k_(r)?gz(n,T,e,0,!1,ke):cI(t.createAssignment(Se(r),_n.checkDefined(nJ(n.initializer,T,V_))),n)}function se(n){const r=function(e,n){const r=e.name;return WN(r)?t.createIdentifier(""):aD(r)?n&&!HJ(r.expression)?t.getGeneratedNameForNode(r):r.expression:VN(r)?t.createStringLiteral(gc(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(nJ(n.initializer,T,V_)):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 cI(t.createExpressionStatement(cI(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,VN),e.name.escapedText}function _e(e,n){const r=t.createVariableDeclaration(t.getLocalName(n,!1,!0)),i=307===y.kind?0:1,o=t.createVariableStatement(rJ(n.modifiers,j,Zl),t.createVariableDeclarationList([r],i));return tw(r,n),yw(r,void 0),xw(r,void 0),tw(o,n),ce(n),!!function(e){if(v){const t=le(e);return v.get(t)===e}return!0}(n)&&(266===n.kind?_w(o.declarationList,n):_w(o,n),gw(o,n),aw(o,2048),e.push(o),!0)}function ue(n){if(!function(e){const t=pc(e,eE);return!t||KB(t,Ek(c))}(n))return t.createNotEmittedStatement(n);_n.assertNode(n.name,VN,"A TypeScript namespace should have an Identifier name."),2&x||(x|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267));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(268===e.body.kind)S(e.body,(e=>ae(c,rJ(e.statements,E,pu)))),l=e.body.statements,_=e.body;else{const t=ue(e.body);t&&(Xe(t)?ae(c,t):c.push(t));l=Lb(de(e).body.statements,-1)}Id(c,o()),h=i,g=a,v=s;const u=t.createBlock(cI(t.createNodeArray(c),l),!0);cI(u,_),e.body&&268===e.body.kind||ow(u,3072|Yd(u));return u}(n,u)),void 0,[p]));return tw(f,n),s&&(yw(f,void 0),xw(f,void 0)),cI(f,n),aw(f,a),i.push(f),i}function de(e){if(267===e.body.kind){return de(e.body)||e.body}}function pe(e){_n.assert(!e.isTypeOnly);const n=De(e)?e.name:void 0,r=nJ(e.namedBindings,fe,iu);return n||r?t.updateImportClause(e,!1,n,r):void 0}function fe(e){if(274===e.kind)return De(e)?e:void 0;{const n=c.verbatimModuleSyntax,r=rJ(e.elements,me,mE);return n||V(r)?t.updateNamedImports(e,r):void 0}}function me(e){return!e.isTypeOnly&&De(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(!De(n))return;return dJ(n,T,e)}if(!function(e){return De(e)||!VI(m)&&s.isTopLevelValueImportEqualsWithEntityName(e)}(n))return;const r=XP(t,n.moduleReference);return ow(r,7168),be(n)||!ye(n)?tw(cI(t.createVariableStatement(rJ(n.modifiers,j,Zl),t.createVariableDeclarationList([tw(t.createVariableDeclaration(n.name,void 0,void 0,r),n)])),n),n):tw((i=n.name,o=r,a=n,cI(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(h,i,!1,!0),o)),a)),n);var i,o,a}function ye(e){return void 0!==g&&Dv(e,32)}function ve(e){return void 0===g&&Dv(e,32)}function be(e){return ve(e)&&!Dv(e,2048)}function xe(e){const n=t.createAssignment(t.getExternalModuleOrNamespaceExportName(h,e,!1,!0),t.getLocalName(e));_w(n,Ib(e.name?e.name.pos:e.pos,e.end));const r=t.createExpressionStatement(n);return _w(r,Ib(-1,e.end)),r}function ke(e,n,r){return cI(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 _w(n,e.name),n}function Ce(e){return t.getGeneratedNameForNode(e)}function we(e){if(x&b&&!Wl(e)&&!tA(e)){const n=s.getReferencedExportContainer(e,!1);if(n&&307!==n.kind){if(2&b&&267===n.kind||8&b&&266===n.kind)return cI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(n),e),e)}}}function Ne(e){const n=function(e){if(Sk(c))return;return XD(e)||QD(e)?s.getConstantValue(e):void 0}(e);if(void 0!==n){Cw(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=_c(e,Tx);kw(i,3,` ${r=Gd(t),r.replace(/\*\//g,"*_/")} `)}return i}var r;return e}function De(e){return c.verbatimModuleSyntax||Em(e)||s.isReferencedAliasDeclaration(e)}}function qz(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,endLexicalEnvironment:i,startLexicalEnvironment:o,resumeLexicalEnvironment:a,addBlockScopedVariable:s}=e,c=e.getEmitResolver(),l=e.getCompilerOptions(),_=vk(l),u=Ok(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 _w(n,e),gw(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 cI(tw(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=_c(t),i=A.get(r);if(i){const o=F,a=R;return F=i,R=j,j=!(fD(r)&&32&Zd(r)),S(e,t,n),j=R,R=a,void(F=o)}switch(t.kind){case 218:if(iF(r)||524288&Yd(t))break;case 262:case 176:case 177:case 178:case 174:case 172:{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 167:{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,N,F,E=!1,P=0;const A=new Map,I=new Set;let O,L,j=!1,R=!1;return RJ(e,(function(t){if(t.isDeclarationFile)return t;if(F=void 0,E=!!(32&Zd(t)),!x&&!E)return t;const n=dJ(t,B,e);return Nw(n,e.readEmitHelpers()),n}));function M(e){return 129===e.kind?ie()?void 0:e:et(e,Zl)}function B(n){if(!(16777216&n.transformFlags||134234112&n.transformFlags))return n;switch(n.kind){case 263:return function(e){return ye(e,ve)}(n);case 231:return function(e){return ye(e,be)}(n);case 175:case 172:return _n.fail("Use `classElementVisitor` instead.");case 303:case 260:case 169:case 208:return function(t){Gh(t,pe)&&(t=Lz(e,t));return dJ(t,B,e)}(n);case 243:return function(t){const n=N;N=[];const r=dJ(t,B,e),i=V(N)?[r,...N]:r;return N=n,i}(n);case 277:return function(t){Gh(t,pe)&&(t=Lz(e,t,!0,t.isExportEquals?"":"default"));return dJ(t,B,e)}(n);case 81:return function(e){if(!g)return e;if(pu(e.parent))return e;return tw(t.createIdentifier(""),e)}(n);case 211:return function(n){if(WN(n.name)){const e=Me(n.name);if(e)return cI(tw(ce(e,n.expression),n),n)}if(b&&L&&am(n)&&VN(n.name)&&Uz(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 tw(i,n.expression),cI(i,n.expression),i}}return dJ(n,B,e)}(n);case 212:return function(n){if(b&&L&&am(n)&&Uz(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,nJ(n.argumentExpression,B,V_),e);return tw(i,n.expression),cI(i,n.expression),i}}return dJ(n,B,e)}(n);case 224:case 225:return _e(n,!1);case 226:return fe(n,!1);case 217:return me(n,!1);case 213:return function(n){var i;if(Gl(n.expression)&&Me(n.expression.name)){const{thisArg:e,target:i}=t.createCallBinding(n.expression,r,_);return gl(n)?t.updateCallChain(n,t.createPropertyAccessChain(nJ(i,B,V_),n.questionDotToken,"call"),void 0,void 0,[nJ(e,B,V_),...rJ(n.arguments,B,V_)]):t.updateCallExpression(n,t.createPropertyAccessExpression(nJ(i,B,V_),"call"),void 0,[nJ(e,B,V_),...rJ(n.arguments,B,V_)])}if(b&&L&&am(n.expression)&&Uz(L)&&(null==(i=null==F?void 0:F.data)?void 0:i.classConstructor)){const e=t.createFunctionCallCall(nJ(n.expression,B,V_),F.data.classConstructor,rJ(n.arguments,B,V_));return tw(e,n),cI(e,n),e}return dJ(n,B,e)}(n);case 244:return function(e){return t.updateExpressionStatement(e,nJ(e.expression,z,V_))}(n);case 215:return function(n){var i;if(Gl(n.tag)&&Me(n.tag.name)){const{thisArg:e,target:i}=t.createCallBinding(n.tag,r,_);return t.updateTaggedTemplateExpression(n,t.createCallExpression(t.createPropertyAccessExpression(nJ(i,B,V_),"bind"),void 0,[nJ(e,B,V_)]),void 0,nJ(n.template,B,R_))}if(b&&L&&am(n.tag)&&Uz(L)&&(null==(i=null==F?void 0:F.data)?void 0:i.classConstructor)){const e=t.createFunctionBindCall(nJ(n.tag,B,V_),F.data.classConstructor,[]);return tw(e,n),cI(e,n),t.updateTaggedTemplateExpression(n,e,void 0,nJ(n.template,B,R_))}return dJ(n,B,e)}(n);case 248:return function(n){return t.updateForStatement(n,nJ(n.initializer,z,eu),nJ(n.condition,B,V_),nJ(n.incrementor,z,V_),_J(n.statement,B,e))}(n);case 110:return function(e){if(v&&L&&fD(L)&&(null==F?void 0:F.data)){const{classThis:t,classConstructor:n}=F.data;return t??n??e}return e}(n);case 262:case 218:return Y(void 0,J,n);case 176:case 174:case 177:case 178:return Y(n,J,n);default:return J(n)}}function J(t){return dJ(t,B,e)}function z(e){switch(e.kind){case 224:case 225:return _e(e,!0);case 226:return fe(e,!0);case 356:return function(e,n){const r=n?uJ(e.elements,z):uJ(e.elements,B,z);return t.updateCommaListExpression(e,r)}(e,!0);case 217:return me(e,!0);default:return B(e)}}function q(n){switch(n.kind){case 298:return dJ(n,q,e);case 233: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,nJ(n.expression,B,V_)),void 0)}return dJ(n,B,e)}(n);default:return B(n)}}function U(e){switch(e.kind){case 210:case 209:return Ue(e);default:return B(e)}}function W(e){switch(e.kind){case 176:return Y(e,G,e);case 177:case 178:case 174:return Y(e,Q,e);case 172:return Y(e,oe,e);case 175:return Y(e,xe,e);case 167:return K(e);case 240:return e;default:return g_(e)?M(e):B(e)}}function $(e){return 167===e.kind?K(e):B(e)}function H(e){switch(e.kind){case 172:return ne(e);case 177:case 178:return W(e);default:_n.assertMissingNode(e,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function K(e){const n=nJ(e.expression,B,V_);return t.updateComputedPropertyName(e,function(e){return V(w)&&(nF(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||!!(Ev(e)&&32&Zd(e))}function Q(n){if(_n.assert(!jv(n)),!Kl(n)||!X(n))return dJ(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(WN(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(wu(e))return t.setterName}}(n);i&&Ae().push(t.createAssignment(i,t.createFunctionExpression(C(n.modifiers,(e=>Zl(e)&&!YN(e)&&!tD(e))),n.asteriskToken,i,void 0,sJ(n.parameters,B,e),void 0,lJ(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=mw(e),i=lw(e),o=e.name;let a=o,s=o;if(aD(o)&&!HJ(o.expression)){const e=iI(o);if(e)a=t.updateComputedPropertyName(o,nJ(o.expression,B,V_)),s=t.updateComputedPropertyName(o,e.left);else{const e=t.createTempVariable(r);_w(e,o.expression);const n=nJ(o.expression,B,V_),i=t.createAssignment(e,n);_w(i,o.expression),a=t.updateComputedPropertyName(o,i),s=t.updateComputedPropertyName(o,e)}}const c=rJ(e.modifiers,M,Zl),l=tI(t,e,c,e.initializer);tw(l,e),ow(l,3072),_w(l,i);const _=Fv(e)?function(){const e=Ee();return e.classThis??e.classConstructor??(null==O?void 0:O.name)}()??t.createThis():t.createThis(),u=nI(t,e,c,a,_);tw(u,e),gw(u,n),_w(u,i);const d=t.createModifiersFromModifierFlags(Hv(c)),p=rI(t,e,d,s,_);return tw(p,e),ow(p,3072),_w(p,i),iJ([l,u,p],H,__)}function ee(e){if(!m||p_(e))return t.updatePropertyDeclaration(e,rJ(e.modifiers,M,Zl),nJ(e.name,$,t_),void 0,void 0,nJ(e.initializer,B,V_));{const n=function(e,n){if(aD(e)){const i=iI(e),o=nJ(e.expression,B,V_),a=Sl(o),l=HJ(a);if(!(!!i||ib(a)&&Wl(a.left))&&!l&&n){const n=t.getGeneratedNameForNode(e);return c.hasNodeCheckFlag(e,32768)?s(n):r(n),t.createAssignment(n,o)}return l||VN(a)?void 0:o}}(e.name,!!e.initializer||u);if(n&&Ae().push(...aI(n)),Fv(e)&&!g){const n=we(e,t.createThis());if(n){const r=t.createClassStaticBlockDeclaration(t.createBlock([n]));return tw(r,e),gw(r,e),gw(n,{pos:-1,end:-1}),yw(n,void 0),xw(n,void 0),r}}}}function ne(n){return _n.assert(!jv(n),"Decorators should already have been transformed and elided."),Kl(n)?function(n){if(!X(n))return p&&!Fv(n)&&(null==F?void 0:F.data)&&16&F.data.facts?t.updatePropertyDeclaration(n,rJ(n.modifiers,B,g_),n.name,void 0,void 0,void 0):(Gh(n,pe)&&(n=Lz(e,n)),t.updatePropertyDeclaration(n,rJ(n.modifiers,M,Zl),nJ(n.name,$,t_),void 0,void 0,nJ(n.initializer,B,V_)));{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 p_(e)&&(ie()||Ev(e)&&32&Zd(e))?Z(e):ne(e)}function se(e){if(L&&Ev(L)&&d_(L)&&p_(_c(L))){const t=uA(e);110===t.kind&&I.add(t)}}function ce(e,t){return se(t=nJ(t,B,V_)),le(e,t)}function le(e,t){switch(gw(t,Lb(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=ah(n.operand);if(Gl(e)){let o;if(o=Me(e.name)){const a=nJ(e.expression,B,V_);se(a);const{readExpression:s,initializeExpression:c}=ue(a);let l=ce(o,s);const _=lF(n)||i?void 0:t.createTempVariable(r);return l=ZP(t,n,l,r,_),l=ge(o,c||s,l,64),tw(l,n),cI(l,n),_&&(l=t.createComma(l,_),cI(l,n)),l}}else if(b&&L&&am(e)&&Uz(L)&&(null==F?void 0:F.data)){const{classConstructor:o,superClassReference:a,facts:s}=F.data;if(1&s){const r=Fe(e);return lF(n)?t.updatePrefixUnaryExpression(n,r):t.updatePostfixUnaryExpression(n,r)}if(o&&a){let s,c;if(XD(e)?VN(e.name)&&(c=s=t.createStringLiteralFromNode(e.name)):HJ(e.argumentExpression)?c=s=e.argumentExpression:(c=t.createTempVariable(r),s=t.createAssignment(c,nJ(e.argumentExpression,B,V_))),s&&c){let l=t.createReflectGetCall(a,c,o);cI(l,e);const _=i?void 0:t.createTempVariable(r);return l=ZP(t,n,l,r,_),l=t.createReflectSetCall(a,s,l,o),tw(l,n),cI(l,n),_&&(l=t.createComma(l,_),cI(l,n)),l}}}}return dJ(n,B,e)}function ue(e){const n=ey(e)?e:t.cloneNode(e);if(110===e.kind&&I.has(e)&&I.add(n),HJ(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(_c(e),F),g){if(Cz(e)){const t=nJ(e.body.statements[0].expression,B,V_);if(ib(t,!0)&&t.left===t.right)return;return t}if(Ez(e))return nJ(e.body.statements[0].expression,B,V_);o();let n=Y(e,(e=>rJ(e,B,pu)),e.body.statements);n=t.mergeLexicalEnvironment(n,i());const r=t.createImmediatelyInvokedArrowFunction(n);return tw(ah(r.expression),e),aw(ah(r.expression),4),tw(r,e),cI(r,e),r}}function pe(e){if(gF(e)&&!e.name){const t=tz(e);if(V(t,Ez))return!1;return(g||!!Zd(e))&&V(t,(e=>fD(e)||Kl(e)||m&&nz(e)))}return!1}function fe(i,o){if(ob(i)){const e=w;w=void 0,i=t.updateBinaryExpression(i,nJ(i.left,U,V_),i.operatorToken,nJ(i.right,B,V_));const n=V(w)?t.inlineExpressions(te([...w,i])):i;return w=e,n}if(ib(i)){Gh(i,pe)&&(i=Lz(e,i),_n.assertNode(i,ib));const n=uA(i.left,9);if(Gl(n)){const e=Me(n.name);if(e)return cI(tw(ge(e,n.expression,i.right,i.operatorToken.kind),i),i)}else if(b&&L&&am(i.left)&&Uz(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,nJ(i.right,B,V_));if(e&&n){let a=QD(i.left)?nJ(i.left.argumentExpression,B,V_):VN(i.left.name)?t.createStringLiteralFromNode(i.left.name):void 0;if(a){let s=nJ(i.right,B,V_);if(KJ(i.operatorToken.kind)){let o=a;HJ(a)||(o=t.createTempVariable(r),a=t.createAssignment(o,a));const c=t.createReflectGetCall(n,o,e);tw(c,i.left),cI(c,i.left),s=t.createBinaryExpression(c,GJ(i.operatorToken.kind),s),cI(s,i)}const c=o?void 0:t.createTempVariable(r);return c&&(s=t.createAssignment(c,s),cI(c,i)),s=t.createReflectSetCall(n,a,s,e),tw(s,i),cI(s,i),c&&(s=t.createComma(s,c),cI(s,i)),s}}}}return function(e){return WN(e.left)&&103===e.operatorToken.kind}(i)?function(t){const r=Me(t.left);if(r){const e=nJ(t.right,B,V_);return tw(n().createClassPrivateFieldInHelper(r.brandCheckIdentifier,e),t)}return dJ(t,B,e)}(i):dJ(i,B,e)}function me(e,n){const r=n?z:B,i=nJ(e.expression,r,V_);return t.updateParenthesizedExpression(e,i)}function ge(e,r,i,o){if(r=nJ(r,B,V_),i=nJ(i,B,V_),se(r),KJ(o)){const{readExpression:n,initializeExpression:a}=ue(r);r=a||n,i=t.createBinaryExpression(le(e,n),GJ(o),i)}switch(gw(r,Lb(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,rz)}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&Zd(n);if(g||l){const e=Cc(n);if(e&&VN(e))Pe().data.className=e;else if((null==(i=n.emitNode)?void 0:i.assignedName)&&NN(n.emitNode.assignedName))if(n.emitNode.assignedName.textSourceNode&&VN(n.emitNode.assignedName.textSourceNode))Pe().data.className=n.emitNode.assignedName.textSourceNode;else if(ms(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=_c(e);u_(r)&&gm(d,r)&&(n|=1),g&&(wz(e)||Pz(e))&&(n|=2);let i=!1,o=!1,a=!1,s=!1;for(const r of e.members)Fv(r)?(r.name&&(WN(r.name)||p_(r))&&g?n|=2:!p_(r)||-1!==h||e.name||(null==(t=e.emitNode)?void 0:t.classThis)||(n|=2),(uD(r)||fD(r))&&(v&&16384&r.transformFlags&&(n|=8,1&n||(n|=2)),b&&134217728&r.transformFlags&&(1&n||(n|=6)))):Av(_c(r))||(p_(r)?(s=!0,a||(a=Kl(r))):Kl(r)?(a=!0,c.hasNodeCheckFlag(r,262144)&&(n|=2)):uD(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(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167)));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=Dv(e,32),_=Dv(e,2048);let u=rJ(e.modifiers,M,Zl);const d=rJ(e.heritageClauses,q,BE),{members:f,prologue:m}=ke(e),h=[];if(a&&Ae().unshift(a),V(w)&&h.push(t.createExpressionStatement(t.inlineExpressions(w))),p||g||32&Zd(e)){const n=tz(e);V(n)&&Ce(h,n,t.getInternalName(e))}h.length>0&&l&&_&&(u=rJ(u,(e=>GA(e)?void 0:e),Zl),h.push(t.createExportAssignment(void 0,!1,t.getLocalName(e,!1,!0))));const y=Ee().classConstructor;s&&y&&(De(),T[OJ(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),_=tz(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=rJ(e.modifiers,M,Zl),y=rJ(e.heritageClauses,q,BE),{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&Zd(e))&&V(_,(e=>fD(e)||Kl(e)||m&&nz(e)))||V(w))if(l)_n.assertIsDefined(N,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),V(w)&&ae(N,D(w,t.createExpressionStatement)),V(_)&&Ce(N,_,(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){De();const n=t.cloneNode(p);n.emitNode.autoGenerate.flags&=-9,T[OJ(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=fD(r)?Y(r,de,r):Y(r,(()=>Ne(r,t)),void 0);e&&(pA(e),tw(e,r),aw(e,3072&Yd(r)),_w(e,Rb(r)),gw(e,r),n.push(e))}return n}(_,p)),k.push(t.cloneNode(p))}else k.push(x);return k.length>1&&(aw(x,131072),k.forEach(pA)),t.inlineExpressions(k)}function xe(t){if(!g)return dJ(t,B,e)}function ke(e){const n=!!(32&Zd(e));if(g||E){for(const t of e.members)if(Kl(t))if(X(t))Le(t,t.name,Ie);else{_z(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(p_(r)){const e=t.getGeneratedPrivateNameForNode(r.name,void 0,"_accessor_storage");if(g||n&&Ev(r))Le(r,e,Oe);else{_z(Pe(),e,{kind:"untransformed"})}}}let i,o,a,s=rJ(e.members,W,__);if(V(s,mD)||(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,Cz),o=y(s,Ez);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=cI(t.createNodeArray(n),e.members)}return{members:s,prologue:o}}function Se(n,r){if(n=nJ(n,B,mD),!((null==F?void 0:F.data)&&16&F.data.facts))return n;const o=yh(r),s=!(!o||106===uA(o.expression).kind),c=sJ(n?n.parameters:void 0,B,e),l=function(n,r,o){var s;const c=ZJ(n,!1,!1);let l=c;u||(l=C(l,(e=>!!e.initializer||WN(e.name)||Ov(e))));const _=he(n),d=V(l)||V(_);if(!r&&!d)return lJ(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=>Zs(_c(e),r))),t=C(l,(e=>!Zs(_c(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=YJ(r.body.statements,f);if(e.length)Te(m,r.body.statements,f,e,0,h,r);else{for(;f<r.body.statements.length;){if(!Zs(_c(r.body.statements[f]),r))break;f++}ae(m,h),ae(m,rJ(r.body.statements,B,pu,f))}}else p&&m.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),ae(m,h);if(m=t.mergeLexicalEnvironment(m,i()),0===m.length&&!r)return;const v=(null==r?void 0:r.body)&&r.body.statements.length>=m.length?r.body.multiLine??m.length>0:m.length>0;return cI(t.createBlock(cI(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)):pA(tw(cI(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,rJ(n,B,pu,r,c-r)),r=c+1,WF(l)){const n=[];Te(n,l.tryBlock.statements,0,i,o+1,a,s);cI(t.createNodeArray(n),l.tryBlock.statements),e.push(t.updateTryStatement(l,t.updateBlock(l.tryBlock,n),nJ(l.catchClause,B,JE),nJ(l.finallyBlock,B,DF)))}else{for(ae(e,rJ(n,B,pu,c,1));r<n.length;){if(!Zs(_c(n[r]),s))break;r++}ae(e,a)}ae(e,rJ(n,B,pu,r))}function Ce(e,t,n){for(const r of t){if(Fv(r)&&!g)continue;const t=we(r,n);t&&e.push(t)}}function we(e,n){const r=fD(e)?Y(e,de,e):Ne(e,n);if(!r)return;const i=t.createExpressionStatement(r);tw(i,e),aw(i,3072&Yd(e)),gw(i,e);const o=_c(e);return cD(o)?(_w(i,o),iw(i)):_w(i,Rb(e)),yw(r,void 0),xw(r,void 0),Ov(o)&&aw(i,3072),i}function Ne(n,r){var i;const o=L,a=function(n,r){const i=!u;Gh(n,pe)&&(n=Lz(e,n));const o=Ov(n)?t.getGeneratedPrivateNameForNode(n.name):aD(n.name)&&!HJ(n.name.expression)?t.updateComputedPropertyName(n.name,t.getGeneratedNameForNode(n.name)):n.name;Ev(n)&&(L=n);if(WN(o)&&X(n)){const e=Me(o);if(e)return"f"===e.kind?e.isStatic?function(e,t,n){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",n||e.createVoidZero())]))}(t,e.variableName,nJ(n.initializer,B,V_)):function(e,t,n,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"set"),void 0,[t,n||e.createVoidZero()])}(t,r,nJ(n.initializer,B,V_),e.brandCheckIdentifier):void 0;_n.fail("Undeclared private name for property declaration.")}if((WN(o)||Ev(n))&&!n.initializer)return;const a=_c(n);if(Dv(a,64))return;let s=nJ(n.initializer,B,V_);if(Zs(a,a.parent)&&VN(o)){const e=t.cloneNode(o);s?(nF(s)&&aA(s.expression)&&TN(s.expression.left,"___runInitializers")&&sF(s.expression.right)&&CN(s.expression.right.expression)&&(s=s.expression.left),s=t.inlineExpressions([s,e])):s=e,ow(o,3168),_w(e,a.name),ow(e,3072)}else s??(s=t.createVoidZero());if(i||WN(o)){const e=UP(t,r,o,o);aw(e,1024);return t.createAssignment(e,s)}{const e=aD(o)?o.expression:VN(o)?t.createStringLiteral(mc(o.escapedText)):o,n=t.createPropertyDescriptor({value:s,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(r,e,n)}}(n,r);return a&&Ev(n)&&(null==(i=null==F?void 0:F.data)?void 0:i.facts)&&(tw(a,n),aw(a,4),_w(a,lw(n.name)),A.set(_c(n),F)),L=o,a}function De(){1&P||(P|=1,e.enableSubstitution(80),T=[])}function Fe(e){return XD(e)?t.updatePropertyAccessExpression(e,t.createVoidZero(),e.name):t.updateElementAccessExpression(e,t.createVoidZero(),nJ(e.argumentExpression,B,V_))}function Ee(){return _n.assert(F),F.data??(F.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Pe(){return _n.assert(F),F.privateEnv??(F.privateEnv=cz({className:void 0,weakSetName:void 0}))}function Ae(){return w??(w=[])}function Ie(e,t,n,r,i,o,a){p_(e)?function(e,t,n,r,i,o){const a=Re(t,"_get"),s=Re(t,"_set"),c=i?_n.checkDefined(n.classThis??n.classConstructor,"classConstructor should be set in private identifier environment"):_n.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");_z(r,t,{kind:"a",getterName:a,setterName:s,brandCheckIdentifier:c,isStatic:i,isValid:o})}(0,t,n,r,i,o):uD(e)?Oe(e,t,n,r,i,o,a):pD(e)?function(e,t,n,r,i,o){const a=Re(t),s=i?_n.checkDefined(n.classThis??n.classConstructor,"classConstructor should be set in private identifier environment"):_n.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");_z(r,t,{kind:"m",methodName:a,brandCheckIdentifier:s,isStatic:i,isValid:o})}(0,t,n,r,i,o):gD(e)?function(e,t,n,r,i,o,a){const s=Re(t,"_get"),c=i?_n.checkDefined(n.classThis??n.classConstructor,"classConstructor should be set in private identifier environment"):_n.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");"a"!==(null==a?void 0:a.kind)||a.isStatic!==i||a.getterName?_z(r,t,{kind:"a",getterName:s,setterName:void 0,brandCheckIdentifier:c,isStatic:i,isValid:o}):a.getterName=s}(0,t,n,r,i,o,a):hD(e)&&function(e,t,n,r,i,o,a){const s=Re(t,"_set"),c=i?_n.checkDefined(n.classThis??n.classConstructor,"classConstructor should be set in private identifier environment"):_n.checkDefined(r.data.weakSetName,"weakSetName should be set in private identifier environment");"a"!==(null==a?void 0:a.kind)||a.isStatic!==i||a.setterName?_z(r,t,{kind:"a",getterName:void 0,setterName:s,brandCheckIdentifier:c,isStatic:i,isValid:o}):a.setterName=s}(0,t,n,r,i,o,a)}function Oe(e,n,r,i,o,a,s){if(o){_z(i,n,{kind:"f",isStatic:!0,brandCheckIdentifier:_n.checkDefined(r.classThis??r.classConstructor,"classConstructor should be set in private identifier environment"),variableName:Re(n),isValid:a})}else{const e=Re(n);_z(i,n,{kind:"f",isStatic:!1,brandCheckIdentifier:e,isValid:a}),Ae().push(t.createAssignment(e,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Le(e,t,n){const r=Ee(),i=Pe(),o=lz(i,t),a=Ev(e),s=!function(e){return!$l(e)&&"#constructor"===e.escapedText}(t)&&void 0===o;n(e,t,r,i,a,s,o)}function je(e,n,i){const{className:o}=Pe().data,a=o?{prefix:"_",node:o,suffix:"_"}:"_",l="object"==typeof e?t.getGeneratedNameForNode(e,24,a,i):"string"==typeof e?t.createUniqueName(e,16,a,i):t.createTempVariable(void 0,!0,a,i);return c.hasNodeCheckFlag(n,32768)?s(l):r(l),l}function Re(e,t){const n=Op(e);return je((null==n?void 0:n.substring(1))??e,e,t)}function Me(e){const t=uz(F,e);return"untransformed"===(null==t?void 0:t.kind)?void 0:t}function Be(n){if(GD(n)||KD(n))return Ue(n);if(Gl(n))return function(n){const i=t.getGeneratedNameForNode(n),o=Me(n.name);if(!o)return dJ(n,B,e);let a=n.expression;return(sm(n)||am(n)||!$J(n.expression))&&(a=t.createTempVariable(r,!0),Ae().push(t.createBinaryExpression(a,64,nJ(n.expression,B,V_)))),t.createAssignmentTargetWrapper(i,ge(o,a,i,64))}(n);if(b&&L&&am(n)&&Uz(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=QD(n)?nJ(n.argumentExpression,B,V_):VN(n.name)?t.createStringLiteralFromNode(n.name):void 0;if(i){const n=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(n,t.createReflectSetCall(r,i,n,e))}}}return dJ(n,B,e)}function Je(n){if(Gh(n,pe)&&(n=Lz(e,n)),ib(n,!0)){const e=Be(n.left),r=nJ(n.right,B,V_);return t.updateBinaryExpression(n,e,n.operatorToken,r)}return Be(n)}function ze(n){if(P_(n)){if(mF(n))return function(n){if(M_(n.expression)){const e=Be(n.expression);return t.updateSpreadElement(n,e)}return dJ(n,B,e)}(n);if(!hF(n))return Je(n)}return dJ(n,B,e)}function qe(n){return _n.assertNode(n,F_),UE(n)?function(n){if(M_(n.expression)){const e=Be(n.expression);return t.updateSpreadAssignment(n,e)}return dJ(n,B,e)}(n):qE(n)?function(t){return Gh(t,pe)&&(t=Lz(e,t)),dJ(t,B,e)}(n):zE(n)?function(n){const r=nJ(n.name,B,t_);if(ib(n.initializer,!0)){const e=Je(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(M_(n.initializer)){const e=Be(n.initializer);return t.updatePropertyAssignment(n,r,e)}return dJ(n,B,e)}(n):dJ(n,B,e)}function Ue(e){return KD(e)?t.updateArrayLiteralExpression(e,rJ(e.elements,ze,V_)):t.updateObjectLiteralExpression(e,rJ(e.properties,qe,v_))}}function Uz(e){return fD(e)||function(e){return uD(e)&&Ev(e)}(e)}function Vz(e){const{factory:t,hoistVariableDeclaration:n}=e,r=e.getEmitResolver(),i=e.getCompilerOptions(),o=vk(i),a=zk(i,"strictNullChecks");let s,c;return{serializeTypeNode:(e,t)=>l(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 172:case 169:return p(e.type);case 178:case 177:return p(function(e,t){const n=pv(t.members,e);return n.setAccessor&&av(n.setAccessor)||n.getAccessor&&gv(n.getAccessor)}(e,n));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function u(e,n){const r=u_(e)?iv(e):r_(e)&&Nd(e.body)?e:void 0,i=[];if(r){const e=function(e,t){if(t&&177===e.kind){const{setAccessor:n}=pv(t.members,e);if(n)return n.parameters}return e.parameters}(r,n),t=e.length;for(let r=0;r<t;r++){const t=e[r];0===r&&VN(t.name)&&"this"===t.name.escapedText||(t.dotDotDotToken?i.push(p(Ff(t.type))):i.push(_(t,n)))}}return t.createArrayLiteralExpression(i)}function d(e){return r_(e)&&e.type?p(e.type):Lh(e)?t.createIdentifier("Promise"):t.createVoidZero()}function p(e){if(void 0===e)return t.createIdentifier("Object");switch((e=oh(e)).kind){case 116:case 157:case 146:return t.createVoidZero();case 184:case 185:return t.createIdentifier("Function");case 188:case 189:return t.createIdentifier("Array");case 182:return e.assertsModifier?t.createVoidZero():t.createIdentifier("Boolean");case 136:return t.createIdentifier("Boolean");case 203:case 154:return t.createIdentifier("String");case 151:return t.createIdentifier("Object");case 201:return f(e.literal);case 150:return t.createIdentifier("Number");case 163:return b("BigInt",7);case 155:return b("Symbol",2);case 183:return function(e){const i=r.getTypeReferenceSerializationKind(e.typeName,c??s);switch(i){case 0:if(uc(e,(e=>e.parent&&OD(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 193:return m(e.types,!0);case 192:return m(e.types,!1);case 194:return m([e.trueType,e.falseType],!1);case 198:if(148===e.operator)return p(e.type);break;case 186:case 199:case 200:case 187:case 133:case 159:case 197:case 205:case 312:case 313:case 317:case 318:case 319:break;case 314:case 315:case 316: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 224:{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=oh(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&&(zD(i)&&106===i.literal.kind||157===i.kind))continue;const e=p(i);if(VN(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 Wl(e)?Wl(t):VN(e)?VN(t)&&e.escapedText===t.escapedText:XD(e)?XD(t)&&g(e.expression,t.expression)&&g(e.name,t.name):sF(e)?sF(t)&&CN(e.expression)&&"0"===e.expression.text&&CN(t.expression)&&"0"===t.expression.text:NN(e)?NN(t)&&e.text===t.text:aF(e)?aF(t)&&g(e.expression,t.expression):nF(e)?nF(t)&&g(e.expression,t.expression):dF(e)?dF(t)&&g(e.condition,t.condition)&&g(e.whenTrue,t.whenTrue)&&g(e.whenFalse,t.whenFalse):!!uF(e)&&(uF(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=FT(cI(dI.cloneNode(e),e),e.parent);return n.original=void 0,FT(n,pc(s)),n;case 166:return function(e){return t.createPropertyAccessExpression(v(e.left),e.right)}(e)}}function b(e,n){return o<n?function(e){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(e),"function"),void 0,t.createIdentifier(e),void 0,t.createIdentifier("Object"))}(e):t.createIdentifier(e)}}function Wz(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),a=vk(o),s=e.onSubstituteNode;let c;return e.onSubstituteNode=function(e,n){if(n=s(e,n),1===e)return function(e){if(80===e.kind)return function(e){return function(e){if(c&&i.hasNodeCheckFlag(e,536870912)){const n=i.getReferencedValueDeclaration(e);if(n){const r=c[n.id];if(r){const n=t.cloneNode(r);return _w(n,e),gw(n,e),n}}}return}(e)??e}(e);return e}(n);return n},RJ(e,(function(t){const n=dJ(t,_,e);return Nw(n,e.readEmitHelpers()),n}));function l(e){return lD(e)?void 0:e}function _(o){if(!(33554432&o.transformFlags))return o;switch(o.kind){case 170:return;case 263:return function(o){if(!gm(!0,o)&&!mm(!0,o))return dJ(o,_,e);const s=gm(!0,o)?function(o,s){const l=Dv(o,32),u=Dv(o,2048),d=rJ(o.modifiers,(e=>GA(e)||lD(e)?void 0:e),g_),f=Rb(o),m=function(n){if(i.hasNodeCheckFlag(n,262144)){c||(e.enableSubstitution(80),c=[]);const i=t.createUniqueName(n.name&&!Wl(n.name)?gc(n.name):"default");return c[OJ(n)]=i,r(i),i}}(o),h=a<2?t.getInternalName(o,!1,!0):t.getLocalName(o,!1,!0),y=rJ(o.heritageClauses,_,BE);let v=rJ(o.members,_,__),b=[];({members:v,decorationStatements:b}=p(o,v));const x=a>=9&&!!m&&V(v,(e=>uD(e)&&Dv(e,256)||fD(e)));x&&(v=cI(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(m,t.createThis()))])),...v]),v));const k=t.createClassExpression(d,s&&Wl(s)?void 0:s,void 0,y,v);tw(k,o),cI(k,f);const S=m&&!x?t.createAssignment(m,k):k,T=t.createVariableDeclaration(h,void 0,void 0,S);tw(T,o);const C=t.createVariableDeclarationList([T],1),w=t.createVariableStatement(void 0,C);tw(w,o),cI(w,f),gw(w,o);const N=[w];if(ae(N,b),function(e,r){const i=function(e){const r=oz(e,!0),i=g(r);if(!i)return;const o=c&&c[OJ(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 ow(_,3072),_w(_,Rb(e)),_}(r);i&&e.push(tw(t.createExpressionStatement(i),r))}(N,o),l)if(u){const e=t.createExportDefault(h);N.push(e)}else{const e=t.createExternalModuleExport(t.getDeclarationName(o));N.push(e)}return N}(o,o.name):function(e,n){const r=rJ(e.modifiers,l,Zl),i=rJ(e.heritageClauses,_,BE);let o=rJ(e.members,_,__),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 231:return function(e){return t.updateClassExpression(e,rJ(e.modifiers,l,Zl),e.name,void 0,rJ(e.heritageClauses,_,BE),rJ(e.members,_,__))}(o);case 176:return function(e){return t.updateConstructorDeclaration(e,rJ(e.modifiers,l,Zl),rJ(e.parameters,_,cD),nJ(e.body,_,DF))}(o);case 174:return function(e){return f(t.updateMethodDeclaration(e,rJ(e.modifiers,l,Zl),e.asteriskToken,_n.checkDefined(nJ(e.name,_,t_)),void 0,void 0,rJ(e.parameters,_,cD),void 0,nJ(e.body,_,DF)),e)}(o);case 178:return function(e){return f(t.updateSetAccessorDeclaration(e,rJ(e.modifiers,l,Zl),_n.checkDefined(nJ(e.name,_,t_)),rJ(e.parameters,_,cD),nJ(e.body,_,DF)),e)}(o);case 177:return function(e){return f(t.updateGetAccessorDeclaration(e,rJ(e.modifiers,l,Zl),_n.checkDefined(nJ(e.name,_,t_)),rJ(e.parameters,_,cD),void 0,nJ(e.body,_,DF)),e)}(o);case 172:return function(e){if(33554432&e.flags||Dv(e,128))return;return f(t.updatePropertyDeclaration(e,rJ(e.modifiers,l,Zl),_n.checkDefined(nJ(e.name,_,t_)),void 0,void 0,nJ(e.initializer,_,V_)),e)}(o);case 169:return function(e){const n=t.updateParameterDeclaration(e,XA(t,e.modifiers),e.dotDotDotToken,_n.checkDefined(nJ(e.name,_,n_)),void 0,void 0,nJ(e.initializer,_,V_));n!==e&&(gw(n,e),cI(n,Rb(e)),_w(n,Rb(e)),ow(n.name,64));return n}(o);default:return dJ(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(!_I(t))continue;const n=az(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=cI(t.createNodeArray([...n,t.createClassStaticBlockDeclaration(t.createBlock(r,!0))]),n),r=void 0),{decorationStatements:r,members:n}}function f(e,t){return e!==t&&(gw(e,t),_w(e,Rb(t))),e}function m(e){return TN(e.expression,"___metadata")}function g(e){if(!e)return;const{false:t,true:n}=Je(e.decorators,m),r=[];return ae(r,D(t,v)),ae(r,A(e.parameters,b)),ae(r,D(n,v)),r}function h(e,n,r){ae(e,D(function(e,t){const n=function(e,t){return C(e.members,(n=>{return i=t,fm(!0,r=n,e)&&i===Fv(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(az(r,e,!0));if(!i)return;const o=function(e,n){return Fv(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 WN(r)?t.createIdentifier(""):aD(r)?n&&!HJ(r.expression)?t.getGeneratedNameForNode(r):r.expression:VN(r)?t.createStringLiteral(gc(r)):t.cloneNode(r)}(r,!Dv(r,128)),s=uD(r)&&!Ov(r)?t.createVoidZero():t.createNull(),c=n().createDecorateHelper(i,o,a,s);return ow(c,3072),_w(c,Rb(r)),c}function v(e){return _n.checkDefined(nJ(e.expression,_,V_))}function b(e,t){let r;if(e){r=[];for(const i of e){const e=n().createParamHelper(v(i),t);cI(e,i.expression),ow(e,3072),r.push(e)}}return r}}function $z(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=vk(e.getCompilerOptions());let s,c,l,_,u,d;return RJ(e,(function(t){s=void 0,d=!1;const n=dJ(t,b,e);Nw(n,e.readEmitHelpers()),d&&(cw(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},(fD(e)||uD(e)&&Ev(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 170:return _n.fail("Use `modifierVisitor` instead.");case 263:return function(n){if(F(n)){const r=[],i=_c(n,u_)??n,o=i.name?t.createStringLiteralFromNode(i.name):t.createStringLiteral("default"),a=Dv(n,32),s=Dv(n,2048);if(n.name||(n=Iz(e,n,o)),a&&s){const e=N(n);if(n.name){const i=t.createVariableDeclaration(t.getLocalName(n),void 0,void 0,e);tw(i,n);const o=t.createVariableDeclarationList([i],1),a=t.createVariableStatement(void 0,o);r.push(a);const s=t.createExportDefault(t.getDeclarationName(n));tw(s,n),gw(s,mw(n)),_w(s,jb(n)),r.push(s)}else{const i=t.createExportDefault(e);tw(i,n),gw(i,mw(n)),_w(i,jb(n)),r.push(i)}}else{_n.assertIsDefined(n.name,"A class declaration that is not a default export must have a name.");const e=N(n),i=a?e=>$N(e)?void 0:k(e):k,o=rJ(n.modifiers,i,Zl),s=t.getLocalName(n,!1,!0),c=t.createVariableDeclaration(s,void 0,void 0,e);tw(c,n);const l=t.createVariableDeclarationList([c],1),_=t.createVariableStatement(o,l);if(tw(_,n),gw(_,mw(n)),r.push(_),a){const e=t.createExternalModuleExport(s);tw(e,n),r.push(e)}}return xe(r)}{const e=rJ(n.modifiers,k,Zl),r=rJ(n.heritageClauses,b,BE);f(void 0);const i=rJ(n.members,S,__);return m(),t.updateClassDeclaration(n,e,n.name,void 0,r,i)}}(n);case 231:return function(e){if(F(e)){const t=N(e);return tw(t,e),t}{const n=rJ(e.modifiers,k,Zl),r=rJ(e.heritageClauses,b,BE);f(void 0);const i=rJ(e.members,S,__);return m(),t.updateClassExpression(e,n,e.name,void 0,r,i)}}(n);case 176:case 172:case 175:return _n.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return function(n){Gh(n,O)&&(n=Lz(e,n,L(n.initializer)));const r=t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,nJ(n.name,b,n_),void 0,void 0,nJ(n.initializer,b,V_));r!==n&&(gw(r,n),cI(r,Rb(n)),_w(r,Rb(n)),ow(r.name,64));return r}(n);case 226:return j(n,!1);case 303:case 260:case 208:return function(t){Gh(t,O)&&(t=Lz(e,t,L(t.initializer)));return dJ(t,b,e)}(n);case 277:return function(t){Gh(t,O)&&(t=Lz(e,t,L(t.expression)));return dJ(t,b,e)}(n);case 110:return function(e){return l??e}(n);case 248:return function(n){return t.updateForStatement(n,nJ(n.initializer,T,eu),nJ(n.condition,b,V_),nJ(n.incrementor,T,V_),_J(n.statement,b,e))}(n);case 244:return function(t){return dJ(t,T,e)}(n);case 356:return M(n,!1);case 217:return H(n,!1);case 355:return function(e,n){const r=n?T:b,i=nJ(e.expression,r,V_);return t.updatePartiallyEmittedExpression(e,i)}(n,!1);case 213:return function(n){if(am(n.expression)&&l){const e=nJ(n.expression,b,V_),r=rJ(n.arguments,b,V_),i=t.createFunctionCallCall(e,l,r);return tw(i,n),cI(i,n),i}return dJ(n,b,e)}(n);case 215:return function(n){if(am(n.tag)&&l){const e=nJ(n.tag,b,V_),r=t.createFunctionBindCall(e,l,[]);tw(r,n),cI(r,n);const i=nJ(n.template,b,R_);return t.updateTaggedTemplateExpression(n,r,void 0,i)}return dJ(n,b,e)}(n);case 224:case 225:return R(n,!1);case 211:return function(n){if(am(n)&&VN(n.name)&&l&&_){const e=t.createStringLiteralFromNode(n.name),r=t.createReflectGetCall(_,e,l);return tw(r,n.expression),cI(r,n.expression),r}return dJ(n,b,e)}(n);case 212:return function(n){if(am(n)&&l&&_){const e=nJ(n.argumentExpression,b,V_),r=t.createReflectGetCall(_,e,l);return tw(r,n.expression),cI(r,n.expression),r}return dJ(n,b,e)}(n);case 167:return J(n);case 174:case 178:case 177:case 218:case 262:{"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=dJ(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 dJ(n,x,e)}}function x(e){if(170!==e.kind)return b(e)}function k(e){if(170!==e.kind)return e}function S(a){switch(a.kind){case 176:return function(e){g(e);const n=rJ(e.modifiers,k,Zl),r=rJ(e.parameters,b,cD);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=YJ(e.body.statements,o);a.length>0?P(r,e.body.statements,o,a,0,n):(ae(r,n),ae(r,rJ(e.body.statements,b,pu))),i=t.createBlock(r,!0),tw(i,e.body),cI(i,e.body)}}return i??(i=nJ(e.body,b,DF)),h(),t.updateConstructorDeclaration(e,n,r,i)}(a);case 174: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=rJ(e,(e=>YN(e)?e:void 0),Zl),t.createGetAccessorDeclaration(e,n,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(r,t.createIdentifier("value")))]))}(n,r,i),e);{const i=rJ(e.parameters,b,cD),o=nJ(e.body,b,DF);return h(),A(t.updateMethodDeclaration(e,n,e.asteriskToken,r,void 0,void 0,i,void 0,o),e)}}(a);case 177: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=rJ(e.parameters,b,cD),o=nJ(e.body,b,DF);return h(),A(t.updateGetAccessorDeclaration(e,n,r,i,void 0,o),e)}}(a);case 178: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=rJ(e.parameters,b,cD),o=nJ(e.body,b,DF);return h(),A(t.updateSetAccessorDeclaration(e,n,r,i,o),e)}}(a);case 172:return function(a){Gh(a,O)&&(a=Lz(e,a,L(a.initializer)));g(a),_n.assert(!yp(a),"Not yet implemented.");const{modifiers:s,name:l,initializersName:_,extraInitializersName:u,descriptorName:d,thisArg:p}=I(a,c,Ov(a)?ie:void 0);r();let f=nJ(a.initializer,b,V_);_&&(f=n().createRunInitializersHelper(p??t.createThis(),_,f??t.createVoidZero()));Fv(a)&&c&&f&&(c.hasStaticInitializers=!0);const m=i();V(m)&&(f=t.createImmediatelyInvokedArrowFunction([...m,t.createReturnStatement(f)]));c&&(Fv(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(),Ov(a)&&d){const e=mw(a),n=lw(a),r=a.name;let i=r,c=r;if(aD(r)&&!HJ(r.expression)){const e=iI(r);if(e)i=t.updateComputedPropertyName(r,nJ(r.expression,b,V_)),c=t.updateComputedPropertyName(r,e.left);else{const e=t.createTempVariable(o);_w(e,r.expression);const n=nJ(r.expression,b,V_),a=t.createAssignment(e,n);_w(a,r.expression),i=t.updateComputedPropertyName(r,a),c=t.updateComputedPropertyName(r,e)}}const l=rJ(s,(e=>129!==e.kind?e:void 0),Zl),_=tI(t,a,l,f);tw(_,a),ow(_,3072),_w(_,n),_w(_.name,a.name);const u=oe(l,i,d);tw(u,a),gw(u,e),_w(u,n);const p=se(l,c,d);return tw(p,a),ow(p,3072),_w(p,n),[_,u,p]}return A(t.updatePropertyDeclaration(a,s,l,void 0,void 0,f),a)}(a);case 175:return function(n){let r;if(g(n),Ez(n))r=dJ(n,b,e);else if(Cz(n)){const t=l;l=void 0,r=dJ(n,b,e),l=t}else if(r=n=dJ(n,b,e),c&&(c.hasStaticInitializers=!0,V(c.pendingStaticInitializers))){const e=[];for(const n of c.pendingStaticInitializers){const r=t.createExpressionStatement(n);_w(r,lw(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 224:case 225:return R(e,!0);case 226:return j(e,!0);case 356:return M(e,!0);case 217:return H(e,!0);default:return b(e)}}function C(e,n){return t.createUniqueName(`${function(e){let t=e.name&&VN(e.name)&&!Wl(e.name)?gc(e.name):e.name&&WN(e.name)&&!Wl(e.name)?gc(e.name).slice(1):e.name&&NN(e.name)&&ms(e.name.text,99)?e.name.text:u_(e)?"class":"member";return Nu(e)&&(t=`get_${t}`),wu(e)&&(t=`set_${t}`),e.name&&WN(e.name)&&(t=`private_${t}`),Fv(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 N(o){r(),!Az(o)&&gm(!1,o)&&(o=Iz(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=>(Kl(e)||p_(e))&&Ev(e)));a=t.createUniqueName("_classThis",n?24:48)}for(const r of e.members){if(m_(r)&&fm(!1,r,e))if(Ev(r)){if(!o){o=t.createUniqueName("_staticExtraInitializers",48);const r=n().createRunInitializersHelper(a??t.createThis(),o);_w(r,e.name??jb(e)),s??(s=[]),s.push(r)}}else{if(!i){i=t.createUniqueName("_instanceExtraInitializers",48);const r=n().createRunInitializersHelper(t.createThis(),i);_w(r,e.name??jb(e)),c??(c=[]),c.push(r)}i??(i=t.createUniqueName("_instanceExtraInitializers",48))}if(fD(r)?Ez(r)||(l=!0):uD(r)&&(Ev(r)?l||(l=!!r.initializer||jv(r)):_||(_=!yp(r))),(Kl(r)||p_(r))&&Ev(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(oz(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=Sh(o.heritageClauses,96),x=v&&pe(v.types),k=x&&nJ(x.expression,b,V_);if(k){s.classSuper=t.createUniqueName("_classSuper",48);const e=uA(k),n=gF(e)&&!e.name||rF(e)&&!e.name||iF(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=rJ(C,(e=>mD(e)?e:S(e)),__),C=rJ(C,(e=>mD(e)?S(e):e),__),u){let n;for(let r of u){r=nJ(r,(function r(i){return 16384&i.transformFlags?110===i.kind?(n||(n=t.createUniqueName("_outerThis",16),c.unshift(w(n,t.createThis()))),n):dJ(i,r,e):i}),V_);l=re(l,t.createExpressionStatement(r))}u=void 0}if(m(),V(s.pendingInstanceInitializers)&&!iv(o)){const e=E(o,s);if(e){const n=yh(o),r=[];if(!(!n||106===uA(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&&nd(s.memberInfos,((e,n)=>{Fv(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&&nd(s.memberInfos,((e,n)=>{Fv(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(_);_w(u,jb(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 ow(t.createIfStatement(n,t.createExpressionStatement(r)),1)}(T,s.metadataReference)),V(s.pendingStaticInitializers)){for(const e of s.pendingStaticInitializers){const n=t.createExpressionStatement(e);_w(n,lw(e)),_=re(_,n)}s.pendingStaticInitializers=void 0}if(s.classExtraInitializersName){const e=n().createRunInitializersHelper(T,s.classExtraInitializersName),r=t.createExpressionStatement(e);_w(r,o.name??jb(o)),_=re(_,r)}l&&_&&!s.hasStaticInitializers&&(ae(l,_),_=void 0);const N=l&&t.createClassStaticBlockDeclaration(t.createBlock(l,!0));N&&h&&sw(N,32);const D=_&&t.createClassStaticBlockDeclaration(t.createBlock(_,!0));if(N||p||D){const e=[],n=C.findIndex(Ez);N?(ae(e,C,0,n+1),e.push(N),ae(e,C,n+1)):ae(e,C),p&&e.push(p),D&&e.push(D),C=cI(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=Nz(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){cw(P,32);for(const e of P.members)(Kl(e)||p_(e))&&Ev(e)&&cw(e,32)}return tw(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,rJ(n,b,pu,r,s-r)),WF(c)){const n=[];P(n,c.tryBlock.statements,0,i,o+1,a);cI(t.createNodeArray(n),c.tryBlock.statements),e.push(t.updateTryStatement(c,t.updateBlock(c.tryBlock,n),nJ(c.catchClause,b,JE),nJ(c.finallyBlock,b,DF)))}else ae(e,rJ(n,b,pu,s,1)),ae(e,a);ae(e,rJ(n,b,pu,s+1))}function A(e,t){return e!==t&&(gw(e,t),_w(e,jb(t))),e}function I(e,r,i){let a,s,c,l,_,d;if(!r){const t=rJ(e.modifiers,k,Zl);return y(),s=B(e.name),v(),{modifiers:t,referencedName:a,name:s,initializersName:c,descriptorName:d,thisArg:_}}const p=Q(az(e,r.class,!1)),f=rJ(e.modifiers,k,Zl);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=m_(e)||p_(e)?Fv(e)?r.staticNonFieldDecorationStatements??(r.staticNonFieldDecorationStatements=[]):r.nonStaticNonFieldDecorationStatements??(r.nonStaticNonFieldDecorationStatements=[]):uD(e)&&!p_(e)?Fv(e)?r.staticFieldDecorationStatements??(r.staticFieldDecorationStatements=[]):r.nonStaticFieldDecorationStatements??(r.nonStaticFieldDecorationStatements=[]):_n.fail(),S=gD(e)?"getter":hD(e)?"setter":pD(e)?"method":p_(e)?"accessor":uD(e)?"field":_n.fail();let T;if(VN(e.name)||WN(e.name))T={computed:!1,name:e.name};else if(zh(e.name))T={computed:!0,name:t.createStringLiteralFromNode(e.name)};else{const r=e.name.expression;zh(r)&&!VN(r)?T={computed:!0,name:t.createStringLiteralFromNode(r)}:(y(),({referencedName:a,name:s}=function(e){if(zh(e)||WN(e)){return{referencedName:t.createStringLiteralFromNode(e),name:nJ(e,b,t_)}}if(zh(e.expression)&&!VN(e.expression)){return{referencedName:t.createStringLiteralFromNode(e.expression),name:nJ(e,b,t_)}}const r=t.getGeneratedNameForNode(e);o(r);const i=n().createPropKeyHelper(nJ(e.expression,b,V_)),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:Fv(e),private:WN(e.name),access:{get:uD(e)||gD(e)||pD(e),set:uD(e)||hD(e)},metadata:r.metadataReference};if(m_(e)){const o=Fv(e)?r.staticMethodExtraInitializersName:r.instanceMethodExtraInitializersName;let a;_n.assertIsDefined(o),Kl(e)&&i&&(a=i(e,rJ(f,(e=>et(e,KN)),Zl)),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);_w(c,jb(e)),k.push(c)}else if(uD(e)){let o;c=x.memberInitializersName??(x.memberInitializersName=C(e,"initializers")),l=x.memberExtraInitializersName??(x.memberExtraInitializersName=C(e,"extraInitializers")),Fv(e)&&(_=r.classThis),Kl(e)&&Ov(e)&&i&&(o=i(e,void 0),x.memberDescriptorName=d=C(e,"descriptor"),o=t.createAssignment(d,o));const a=n().createESDecorateHelper(p_(e)?t.createThis():t.createNull(),o??t.createNull(),m,w,c,l),s=t.createExpressionStatement(a);_w(s,jb(e)),k.push(s)}}return void 0===s&&(y(),s=B(e.name),v()),V(f)||!pD(e)&&!uD(e)||ow(s,1024),{modifiers:f,referencedName:a,name:s,initializersName:c,extraInitializersName:l,descriptorName:d,thisArg:_}}function O(e){return gF(e)&&!e.name&&F(e)}function L(e){const t=uA(e);return gF(t)&&!t.name&&!gm(!1,t)}function j(n,r){if(ob(n)){const e=$(n.left),r=nJ(n.right,b,V_);return t.updateBinaryExpression(n,e,n.operatorToken,r)}if(ib(n)){if(Gh(n,O))return dJ(n=Lz(e,n,L(n.right)),b,e);if(am(n.left)&&l&&_){let e=QD(n.left)?nJ(n.left.argumentExpression,b,V_):VN(n.left.name)?t.createStringLiteralFromNode(n.left.name):void 0;if(e){let i=nJ(n.right,b,V_);if(KJ(n.operatorToken.kind)){let r=e;HJ(e)||(r=t.createTempVariable(o),e=t.createAssignment(r,e));const a=t.createReflectGetCall(_,r,l);tw(a,n.left),cI(a,n.left),i=t.createBinaryExpression(a,GJ(n.operatorToken.kind),i),cI(i,n)}const a=r?void 0:t.createTempVariable(o);return a&&(i=t.createAssignment(a,i),cI(a,n)),i=t.createReflectSetCall(_,e,i,l),tw(i,n),cI(i,n),a&&(i=t.createComma(i,a),cI(i,n)),i}}}if(28===n.operatorToken.kind){const e=nJ(n.left,T,V_),i=nJ(n.right,r?T:b,V_);return t.updateBinaryExpression(n,e,n.operatorToken,i)}return dJ(n,b,e)}function R(n,r){if(46===n.operator||47===n.operator){const e=ah(n.operand);if(am(e)&&l&&_){let i=QD(e)?nJ(e.argumentExpression,b,V_):VN(e.name)?t.createStringLiteralFromNode(e.name):void 0;if(i){let e=i;HJ(i)||(e=t.createTempVariable(o),i=t.createAssignment(e,i));let a=t.createReflectGetCall(_,e,l);tw(a,n),cI(a,n);const s=r?void 0:t.createTempVariable(o);return a=ZP(t,n,a,o,s),a=t.createReflectSetCall(_,i,a,l),tw(a,n),cI(a,n),s&&(a=t.createComma(a,s),cI(a,n)),a}}}return dJ(n,b,e)}function M(e,n){const r=n?uJ(e.elements,T):uJ(e.elements,b,T);return t.updateCommaListExpression(e,r)}function B(e){return aD(e)?J(e):nJ(e,b,t_)}function J(e){let n=nJ(e.expression,b,V_);return HJ(n)||(n=G(n)),t.updateComputedPropertyName(e,n)}function z(n){if(GD(n)||KD(n))return $(n);if(am(n)&&l&&_){const e=QD(n)?nJ(n.argumentExpression,b,V_):VN(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 tw(i,n),cI(i,n),i}}return dJ(n,b,e)}function q(n){if(ib(n,!0)){Gh(n,O)&&(n=Lz(e,n,L(n.right)));const r=z(n.left),i=nJ(n.right,b,V_);return t.updateBinaryExpression(n,r,n.operatorToken,i)}return z(n)}function U(n){return _n.assertNode(n,P_),mF(n)?function(n){if(M_(n.expression)){const e=z(n.expression);return t.updateSpreadElement(n,e)}return dJ(n,b,e)}(n):hF(n)?dJ(n,b,e):q(n)}function W(n){return _n.assertNode(n,F_),UE(n)?function(n){if(M_(n.expression)){const e=z(n.expression);return t.updateSpreadAssignment(n,e)}return dJ(n,b,e)}(n):qE(n)?function(t){return Gh(t,O)&&(t=Lz(e,t,L(t.objectAssignmentInitializer))),dJ(t,b,e)}(n):zE(n)?function(n){const r=nJ(n.name,b,t_);if(ib(n.initializer,!0)){const e=q(n.initializer);return t.updatePropertyAssignment(n,r,e)}if(M_(n.initializer)){const e=z(n.initializer);return t.updatePropertyAssignment(n,r,e)}return dJ(n,b,e)}(n):dJ(n,b,e)}function $(e){if(KD(e)){const n=rJ(e.elements,U,V_);return t.updateArrayLiteralExpression(e,n)}{const n=rJ(e.properties,W,v_);return t.updateObjectLiteralExpression(e,n)}}function H(e,n){const r=n?T:b,i=nJ(e.expression,r,V_);return t.updateParenthesizedExpression(e,i)}function K(e,n){return V(e)&&(n?nF(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,D(e.decorators,Y)),t}function Y(e){const n=nJ(e.expression,b,V_);ow(n,3072);if(Tx(uA(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([]));tw(l,e),_w(l,jb(e)),ow(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 tw(p,e),_w(p,jb(e)),ow(p,3072),p}function ee(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,e.asteriskToken,"value",rJ(e.parameters,b,cD),nJ(e.body,b,DF))])}function te(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"get",[],nJ(e.body,b,DF))])}function ne(e,n){return t.createObjectLiteralExpression([Z(e,e.name,n,void 0,"set",rJ(e.parameters,b,cD),nJ(e.body,b,DF))])}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=rJ(e,(e=>YN(e)?e:void 0),Zl),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=rJ(e,(e=>YN(e)?e:void 0),Zl),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 Hz(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=vk(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 263===t||176===t||174===t||177===t||178===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[$B(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 211:return $(e);case 212:return H(e);case 213:return function(e){const n=e.expression;if(am(n)){const r=XD(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},RJ(e,(function(t){if(t.isDeclarationFile)return t;b(1,!1),b(2,!hp(t,s));const n=dJ(t,C,e);return Nw(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 dJ(t,C,e)}function T(t){switch(t.kind){case 218:case 262:case 174:case 177:case 178:case 176:return t;case 169:case 208:case 260:break;case 80:if(p&&a.isArgumentsLocalBinding(t))return p}return dJ(t,T,e)}function C(n){if(!(256&n.transformFlags))return p?T(n):n;switch(n.kind){case 134:return;case 223:return function(n){if(!x(1))return dJ(n,C,e);return tw(cI(t.createYieldExpression(void 0,nJ(n.expression,C,V_)),n),n)}(n);case 174:return k(3,F,n);case 262:return k(3,A,n);case 218:return k(3,I,n);case 219:return k(1,O,n);case 211:return u&&XD(n)&&108===n.expression.kind&&u.add(n.name.escapedText),dJ(n,C,e);case 212:return u&&108===n.expression.kind&&(d=!0),dJ(n,C,e);case 177:return k(3,E,n);case 178:return k(3,P,n);case 176:return k(3,N,n);case 263:case 231:return k(3,S,n);default:return dJ(n,C,e)}}function w(n){if(Zg(n))switch(n.kind){case 243:return function(n){if(j(n.declarationList)){const e=R(n.declarationList,!1);return e?t.createExpressionStatement(e):void 0}return dJ(n,C,e)}(n);case 248:return function(n){const r=n.initializer;return t.updateForStatement(n,j(r)?R(r,!1):nJ(n.initializer,C,eu),nJ(n.condition,C,V_),nJ(n.incrementor,C,V_),_J(n.statement,w,e))}(n);case 249:return function(n){return t.updateForInStatement(n,j(n.initializer)?R(n.initializer,!0):_n.checkDefined(nJ(n.initializer,C,eu)),_n.checkDefined(nJ(n.expression,C,V_)),_J(n.statement,w,e))}(n);case 250:return function(n){return t.updateForOfStatement(n,nJ(n.awaitModifier,C,XN),j(n.initializer)?R(n.initializer,!0):_n.checkDefined(nJ(n.initializer,C,eu)),_n.checkDefined(nJ(n.expression,C,V_)),_J(n.statement,w,e))}(n);case 299: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=dJ(t,w,e);return l=n,i}return dJ(t,w,e)}(n);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return dJ(n,w,e);default:return _n.assertNever(n,"Unhandled node.")}return C(n)}function N(n){const r=p;p=void 0;const i=t.updateConstructorDeclaration(n,rJ(n.modifiers,C,Zl),sJ(n.parameters,C,e),z(n));return p=r,i}function F(n){let r;const i=Oh(n),o=p;p=void 0;const a=t.updateMethodDeclaration(n,rJ(n.modifiers,C,g_),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,rJ(n.modifiers,C,g_),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,rJ(n.modifiers,C,g_),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=Oh(n),a=t.updateFunctionDeclaration(n,rJ(n.modifiers,C,g_),n.asteriskToken,n.name,void 0,r=2&o?U(n):sJ(n.parameters,C,e),void 0,2&o?V(n,r):lJ(n.body,C,e));return p=i,a}function I(n){let r;const i=p;p=void 0;const o=Oh(n),a=t.updateFunctionExpression(n,rJ(n.modifiers,C,Zl),n.asteriskToken,n.name,void 0,r=2&o?U(n):sJ(n.parameters,C,e),void 0,2&o?V(n,r):lJ(n.body,C,e));return p=i,a}function O(n){let r;const i=Oh(n);return t.updateArrowFunction(n,rJ(n.modifiers,C,Zl),void 0,r=2&i?U(n):sJ(n.parameters,C,e),void 0,n.equalsGreaterThanToken,2&i?V(n,r):lJ(n.body,C,e))}function L({name:e},t){if(VN(e))t.add(e.escapedText);else for(const n of e.elements)hF(n)||L(n,t)}function j(e){return!!e&&KF(e)&&!(7&e.flags)&&e.declarations.some(J)}function R(e,n){!function(e){_(e.declarations,M)}(e);const r=ex(e);return 0===r.length?n?nJ(t.converters.convertToAssignmentElementTarget(e.declarations[0].name),C,V_):void 0:t.inlineExpressions(D(r,B))}function M({name:e}){if(VN(e))o(e);else for(const t of e.elements)hF(t)||M(t)}function B(e){const n=_w(t.createAssignment(t.converters.convertToAssignmentElementTarget(e.name),e.initializer),e);return _n.checkDefined(nJ(n,C,V_))}function J({name:e}){if(VN(e))return l.has(e.escapedText);for(const t of e.elements)if(!hF(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=lJ(n.body,C,e);const s=_c(n,o_);if(c>=2&&(a.hasNodeCheckFlag(n,256)||a.hasNodeCheckFlag(n,128))&&!!(3&~Oh(s))){if(W(),u.size){const e=Kz(t,a,n,u);g[$B(e)]=!0;const r=o.statements.slice();Id(r,[e]),o=t.updateBlock(o,r)}d&&(a.hasNodeCheckFlag(n,256)?ww(o,SN):a.hasNodeCheckFlag(n,128)&&ww(o,kN))}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 pA(n),aw(n,2097152),n}function U(n){if(pz(n.parameters))return sJ(n.parameters,C,e);const r=[];for(const e of n.parameters){if(e.initializer||e.dotDotDotToken){if(219===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 cI(i,n.parameters),i}function V(o,s){const _=pz(o.parameters)?void 0:sJ(o.parameters,C,e);r();const f=_c(o,r_).type,m=c<2?function(e){const t=e&&_m(e);if(t&&e_(t)){const e=a.getTypeReferenceSerializationKind(t);if(1===e||0===e)return t}return}(f):void 0,h=219===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<o.parameters.length;n++){_n.assert(n<s.length);const r=o.parameters[n],i=s[n];if(_n.assertNode(i.name,VN),r.initializer||r.dotDotDotToken){_n.assert(n===s.length-1),e.push(t.createSpreadElement(i.name));break}e.push(i.name)}b=t.createArrayLiteralExpression(e)}else b=t.createIdentifier("arguments");const k=l;l=new Set;for(const e of o.parameters)L(e,l);const S=u,T=d;h||(u=new Set,d=!1);const N=x(2);let D=DF(F=o.body)?t.updateBlock(F,rJ(F.statements,w,pu,E)):t.converters.convertToFunctionBlock(_n.checkDefined(nJ(F,w,Y_)));var F,E;let P;if(D=t.updateBlock(D,t.mergeLexicalEnvironment(D.statements,i())),h){if(P=n().createAwaiterHelper(N,b,m,_,D),v){const e=t.converters.convertToFunctionBlock(P);P=t.updateBlock(e,t.mergeLexicalEnvironment(e.statements,[q()]))}}else{const e=[];e.push(t.createReturnStatement(n().createAwaiterHelper(N,b,m,_,D)));const r=c>=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(r&&(W(),u.size)){const n=Kz(t,a,o,u);g[$B(n)]=!0,Id(e,[n])}v&&Id(e,[q()]);const i=t.createBlock(e,!0);cI(i,o.body),r&&d&&(a.hasNodeCheckFlag(o,256)?ww(i,SN):a.hasNodeCheckFlag(o,128)&&ww(i,kN)),P=i}return l=k,h||(u=S,d=T,p=y),P}function W(){1&f||(f|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function $(e){return 108===e.expression.kind?cI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function H(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,cI(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 Kz(e,t,n,r){const i=t.hasNodeCheckFlag(n,256),o=[];return r.forEach(((t,n)=>{const r=mc(n),a=[];a.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,ow(e.createPropertyAccessExpression(ow(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(ow(e.createPropertyAccessExpression(ow(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 Gz(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getEmitResolver(),s=e.getCompilerOptions(),c=vk(s),l=e.onEmitNode;e.onEmitNode=function(e,t,n){if(1&y&&function(e){const t=e.kind;return 263===t||176===t||174===t||177===t||178===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[$B(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 211:return Q(e);case 212:return Y(e);case 213:return function(e){const n=e.expression;if(am(n)){const r=XD(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 RJ(e,(function(n){if(n.isDeclarationFile)return n;p=n;const r=function(n){const r=k(2,hp(n,s)?0:1);h=!1;const i=dJ(n,C,e),o=$(i.statements,f&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(f))]),a=t.updateSourceFile(i,cI(t.createNodeArray(o),n.statements));return S(r),a}(n);return Nw(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 N(e){if(134!==e.kind)return e}function D(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 dJ(t,C,e)}function E(r,i){if(!(128&r.transformFlags))return r;switch(r.kind){case 223:return function(r){if(2&u&&1&u)return tw(cI(t.createYieldExpression(void 0,n().createAwaitHelper(nJ(r.expression,C,V_))),r),r);return dJ(r,C,e)}(r);case 229:return function(r){if(2&u&&1&u){if(r.asteriskToken){const e=nJ(_n.checkDefined(r.expression),C,V_);return tw(cI(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(r,r.asteriskToken,cI(n().createAsyncDelegatorHelper(cI(n().createAsyncValuesHelper(e),e)),e)))),r),r)}return tw(cI(t.createYieldExpression(void 0,O(r.expression?nJ(r.expression,C,V_):t.createVoidZero())),r),r)}return dJ(r,C,e)}(r);case 253:return function(n){if(2&u&&1&u)return t.updateReturnStatement(n,O(n.expression?nJ(n.expression,C,V_):t.createVoidZero()));return dJ(n,C,e)}(r);case 256:return function(n){if(2&u){const e=Rf(n);return 250===e.kind&&e.awaitModifier?I(e,n):t.restoreEnclosingLabel(nJ(e,C,pu,t.liftToBlock),n)}return dJ(n,C,e)}(r);case 210:return function(r){if(65536&r.transformFlags){const e=function(e){let n;const r=[];for(const i of e)if(305===i.kind){n&&(r.push(t.createObjectLiteralExpression(n)),n=void 0);const e=i.expression;r.push(nJ(e,C,V_))}else n=re(n,303===i.kind?t.createPropertyAssignment(i.name,nJ(i.initializer,C,V_)):nJ(i,C,v_));n&&r.push(t.createObjectLiteralExpression(n));return r}(r.properties);e.length&&210!==e[0].kind&&e.unshift(t.createObjectLiteralExpression());let i=e[0];if(e.length>1){for(let t=1;t<e.length;t++)i=n().createAssignHelper([i,e[t]]);return i}return n().createAssignHelper(e)}return dJ(r,C,e)}(r);case 226:return function(n,r){if(ob(n)&&sI(n.left))return gz(n,C,e,1,!r);if(28===n.operatorToken.kind)return t.updateBinaryExpression(n,nJ(n.left,w,V_),n.operatorToken,nJ(n.right,r?w:C,V_));return dJ(n,C,e)}(r,i);case 356:return function(n,r){if(r)return dJ(n,w,e);let i;for(let e=0;e<n.elements.length;e++){const t=n.elements[e],r=nJ(t,e<n.elements.length-1?w:C,V_);(i||r!==t)&&(i||(i=n.elements.slice(0,e)),i.push(r))}const o=i?cI(t.createNodeArray(i),n.elements):n.elements;return t.updateCommaListExpression(n,o)}(r,i);case 299:return function(n){if(n.variableDeclaration&&k_(n.variableDeclaration.name)&&65536&n.variableDeclaration.name.transformFlags){const r=t.getGeneratedNameForNode(n.variableDeclaration.name),i=vz(t.updateVariableDeclaration(n.variableDeclaration,n.variableDeclaration.name,void 0,void 0,r),C,e,1);let o=nJ(n.block,C,DF);return V(i)&&(o=t.updateBlock(o,[t.createVariableStatement(void 0,i),...o.statements])),t.updateCatchClause(n,t.updateVariableDeclaration(n.variableDeclaration,r,void 0,void 0,void 0),o)}return dJ(n,C,e)}(r);case 243:return function(t){if(Dv(t,32)){const n=h;h=!0;const r=dJ(t,C,e);return h=n,r}return dJ(t,C,e)}(r);case 260:return function(e){if(h){const t=h;h=!1;const n=P(e,!0);return h=t,n}return P(e,!1)}(r);case 246:case 247:case 249:return D(F,r,0,2);case 250:return I(r,void 0);case 248:return D(A,r,0,2);case 222:case 244:return function(t){return dJ(t,w,e)}(r);case 176:return D(M,r,2,1);case 174:return D(z,r,2,1);case 177:return D(B,r,2,1);case 178:return D(J,r,2,1);case 262:return D(q,r,2,1);case 218:return D(W,r,2,1);case 219:return D(U,r,2,0);case 169:return j(r);case 217:return function(t,n){return dJ(t,n?w:C,e)}(r,i);case 215:return function(t){return Rz(e,t,C,p,T,0)}(r);case 211:return m&&XD(r)&&108===r.expression.kind&&m.add(r.name.escapedText),dJ(r,C,e);case 212:return m&&108===r.expression.kind&&(g=!0),dJ(r,C,e);case 263:case 231:return D(F,r,2,1);default:return dJ(r,C,e)}}function P(t,n){return k_(t.name)&&65536&t.name.transformFlags?vz(t,C,e,1,void 0,n):dJ(t,C,e)}function A(n){return t.updateForStatement(n,nJ(n.initializer,w,eu),nJ(n.condition,C,V_),nJ(n.incrementor,w,V_),_J(n.statement,C,e))}function I(r,i){const a=k(0,2);(65536&r.initializer.transformFlags||S_(r.initializer)&&sI(r.initializer))&&(r=function(e){const n=ah(e.initializer);if(KF(n)||S_(n)){let r,i;const o=t.createTempVariable(void 0),a=[GP(t,n,o)];return DF(e.statement)?(ae(a,e.statement.statements),r=e.statement,i=e.statement.statements):e.statement&&(re(a,e.statement),r=e.statement,i=e.statement),t.updateForOfStatement(e,e.awaitModifier,cI(t.createVariableDeclarationList([cI(t.createVariableDeclaration(o),e.initializer)],1),e.initializer),e.expression,cI(t.createBlock(cI(t.createNodeArray(a),i),!0),r))}return e}(r));const s=r.awaitModifier?function(r,i,a){const s=nJ(r.expression,C,V_),c=VN(s)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),l=VN(s)?t.getGeneratedNameForNode(c):t.createTempVariable(void 0),_=t.createTempVariable(void 0),u=t.createTempVariable(o),d=t.createUniqueName("e"),p=t.getGeneratedNameForNode(d),f=t.createTempVariable(void 0),m=cI(n().createAsyncValuesHelper(s),r.expression),g=t.createCallExpression(t.createPropertyAccessExpression(c,"next"),void 0,[]),h=t.createPropertyAccessExpression(l,"done"),y=t.createPropertyAccessExpression(l,"value"),v=t.createFunctionCallCall(f,c,[]);o(d),o(f);const b=2&a?t.inlineExpressions([t.createAssignment(d,t.createVoidZero()),m]):m,x=ow(cI(t.createForStatement(ow(cI(t.createVariableDeclarationList([t.createVariableDeclaration(_,void 0,void 0,t.createTrue()),cI(t.createVariableDeclaration(c,void 0,void 0,b),r.expression),t.createVariableDeclaration(l)]),r.expression),4194304),t.inlineExpressions([t.createAssignment(l,O(g)),t.createAssignment(u,h),t.createLogicalNot(u)]),t.createAssignment(_,t.createTrue()),function(n,r,i){const a=t.createTempVariable(o),s=t.createAssignment(a,r),c=t.createExpressionStatement(s);_w(c,n.expression);const l=t.createAssignment(i,t.createFalse()),_=t.createExpressionStatement(l);_w(_,n.expression);const u=[c,_],d=GP(t,n.initializer,a);let p,f;u.push(nJ(d,C,pu));const m=_J(n.statement,C,e);DF(m)?(ae(u,m.statements),p=m,f=m.statements):u.push(m);return cI(t.createBlock(cI(t.createNodeArray(u),f),!0),p)}(r,y,_)),r),512);return tw(x,r),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(x,i)]),t.createCatchClause(t.createVariableDeclaration(p),ow(t.createBlock([t.createExpressionStatement(t.createAssignment(d,t.createObjectLiteralExpression([t.createPropertyAssignment("error",p)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([ow(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(_),t.createLogicalNot(u)),t.createAssignment(f,t.createPropertyAccessExpression(c,"return"))),t.createExpressionStatement(O(v))),1)]),void 0,ow(t.createBlock([ow(t.createIfStatement(d,t.createThrowStatement(t.createPropertyAccessExpression(d,"error"))),1)]),1))]))}(r,i,a):t.restoreEnclosingLabel(dJ(r,C,e),i);return S(a),s}function O(e){return 1&u?t.createYieldExpression(void 0,n().createAwaitHelper(e)):t.createAwaitExpression(e)}function L(e){return _n.assertNode(e,cD),j(e)}function j(n){return(null==d?void 0:d.has(n))?t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,k_(n.name)?t.getGeneratedNameForNode(n):n.name,void 0,void 0,void 0):65536&n.transformFlags?t.updateParameterDeclaration(n,void 0,n.dotDotDotToken,t.getGeneratedNameForNode(n),void 0,void 0,nJ(n.initializer,C,V_)):dJ(n,C,e)}function R(e){let t;for(const n of e.parameters)t?t.add(n):65536&n.transformFlags&&(t=new Set);return t}function M(n){const r=u,i=d;u=Oh(n),d=R(n);const o=t.updateConstructorDeclaration(n,n.modifiers,sJ(n.parameters,L,e),G(n));return u=r,d=i,o}function B(n){const r=u,i=d;u=Oh(n),d=R(n);const o=t.updateGetAccessorDeclaration(n,n.modifiers,nJ(n.name,C,t_),sJ(n.parameters,L,e),void 0,G(n));return u=r,d=i,o}function J(n){const r=u,i=d;u=Oh(n),d=R(n);const o=t.updateSetAccessorDeclaration(n,n.modifiers,nJ(n.name,C,t_),sJ(n.parameters,L,e),G(n));return u=r,d=i,o}function z(n){const r=u,i=d;u=Oh(n),d=R(n);const o=t.updateMethodDeclaration(n,1&u?rJ(n.modifiers,N,g_):n.modifiers,2&u?void 0:n.asteriskToken,nJ(n.name,C,t_),nJ(void 0,C,JN),void 0,2&u&&1&u?H(n):sJ(n.parameters,L,e),void 0,2&u&&1&u?K(n):G(n));return u=r,d=i,o}function q(n){const r=u,i=d;u=Oh(n),d=R(n);const o=t.updateFunctionDeclaration(n,1&u?rJ(n.modifiers,N,Zl):n.modifiers,2&u?void 0:n.asteriskToken,n.name,void 0,2&u&&1&u?H(n):sJ(n.parameters,L,e),void 0,2&u&&1&u?K(n):G(n));return u=r,d=i,o}function U(n){const r=u,i=d;u=Oh(n),d=R(n);const o=t.updateArrowFunction(n,n.modifiers,void 0,sJ(n.parameters,L,e),void 0,n.equalsGreaterThanToken,G(n));return u=r,d=i,o}function W(n){const r=u,i=d;u=Oh(n),d=R(n);const o=t.updateFunctionExpression(n,1&u?rJ(n.modifiers,N,Zl):n.modifiers,2&u?void 0:n.asteriskToken,n.name,void 0,2&u&&1&u?H(n):sJ(n.parameters,L,e),void 0,2&u&&1&u?K(n):G(n));return u=r,d=i,o}function H(n){if(pz(n.parameters))return sJ(n.parameters,C,e);const r=[];for(const e of n.parameters){if(e.initializer||e.dotDotDotToken)break;const n=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e.name,8));r.push(n)}const i=t.createNodeArray(r);return cI(i,n.parameters),i}function K(o){const s=pz(o.parameters)?void 0:sJ(o.parameters,C,e);r();const l=m,_=g;m=new Set,g=!1;const u=[];let d=t.updateBlock(o.body,rJ(o.body.statements,C,pu));d=t.updateBlock(d,t.mergeLexicalEnvironment(d.statements,X(i(),o)));const p=t.createReturnStatement(n().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(42),o.name&&t.getGeneratedNameForNode(o.name),void 0,s??[],void 0,d),!!(1&b))),f=c>=2&&(a.hasNodeCheckFlag(o,256)||a.hasNodeCheckFlag(o,128));if(f){1&y||(y|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243));const n=Kz(t,a,o,m);x[$B(n)]=!0,Id(u,[n])}u.push(p);const h=t.updateBlock(o.body,u);return f&&g&&(a.hasNodeCheckFlag(o,256)?ww(h,SN):a.hasNodeCheckFlag(o,128)&&ww(h,kN)),m=l,g=_,h}function G(e){r();let n=0;const o=[],a=nJ(e.body,C,Y_)??t.createBlock([]);DF(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 Id(o,s),ae(o,e.statements.slice(n)),t.updateBlock(e,cI(t.createNodeArray(o),e.statements))}return a}function X(n,r){let i=!1;for(const o of r.parameters)if(i){if(k_(o.name)){if(o.name.elements.length>0){const r=vz(o,C,e,0,t.getGeneratedNameForNode(o));if(V(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);ow(i,2097152),n=re(n,i)}}else if(o.initializer){const e=t.getGeneratedNameForNode(o),r=nJ(o.initializer,C,V_),i=t.createAssignment(e,r),a=t.createExpressionStatement(i);ow(a,2097152),n=re(n,a)}}else if(o.initializer){const e=t.cloneNode(o.name);cI(e,o.name),ow(e,96);const r=nJ(o.initializer,C,V_);aw(r,3168);const i=t.createAssignment(e,r);cI(i,o),ow(i,3072);const a=t.createBlock([t.createExpressionStatement(i)]);cI(a,o),ow(a,3905);const s=t.createTypeCheck(t.cloneNode(o.name),"undefined"),c=t.createIfStatement(s,a);pA(c),cI(c,o),ow(c,2101056),n=re(n,c)}}else if(65536&o.transformFlags){i=!0;const r=vz(o,C,e,1,t.getGeneratedNameForNode(o),!1,!0);if(V(r)){const e=t.createVariableDeclarationList(r),i=t.createVariableStatement(void 0,e);ow(i,2097152),n=re(n,i)}}return n}function Q(e){return 108===e.expression.kind?cI(t.createPropertyAccessExpression(t.createUniqueName("_super",48),e.name),e):e}function Y(e){return 108===e.expression.kind?(n=e.argumentExpression,r=e,cI(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 Xz(e){const t=e.factory;return RJ(e,(function(t){if(t.isDeclarationFile)return t;return dJ(t,n,e)}));function n(r){return 64&r.transformFlags?299===r.kind?function(r){if(!r.variableDeclaration)return t.updateCatchClause(r,t.createVariableDeclaration(t.createTempVariable(void 0)),nJ(r.block,n,DF));return dJ(r,n,e)}(r):dJ(r,n,e):r}}function Qz(e){const{factory:t,hoistVariableDeclaration:n}=e;return RJ(e,(function(t){if(t.isDeclarationFile)return t;return dJ(t,r,e)}));function r(i){if(!(32&i.transformFlags))return i;switch(i.kind){case 213:{const e=o(i,!1);return _n.assertNotNode(e,SE),e}case 211:case 212:if(hl(i)){const e=s(i,!1,!1);return _n.assertNotNode(e,SE),e}return dJ(i,r,e);case 226:return 61===i.operatorToken.kind?function(e){let i=nJ(e.left,r,V_),o=i;$J(i)||(o=t.createTempVariable(n),i=t.createAssignment(o,i));return cI(t.createConditionalExpression(c(i,o),void 0,o,void 0,nJ(e.right,r,V_)),e)}(i):dJ(i,r,e);case 220:return function(e){return hl(ah(e.expression))?tw(a(e.expression,!1,!0),e):t.updateDeleteExpression(e,nJ(e.expression,r,V_))}(i);default:return dJ(i,r,e)}}function i(e,n,r){const i=a(e.expression,n,r);return SE(i)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(e,i.expression),i.thisArg):t.updateParenthesizedExpression(e,i)}function o(n,o){if(hl(n))return s(n,o,!1);if(nF(n.expression)&&hl(ah(n.expression))){const e=i(n.expression,!0,!1),o=rJ(n.arguments,r,V_);return SE(e)?cI(t.createFunctionCallCall(e.expression,e.thisArg,o),n):t.updateCallExpression(n,e,void 0,o)}return dJ(n,r,e)}function a(e,a,c){switch(e.kind){case 217:return i(e,a,c);case 211:case 212:return function(e,i,o){if(hl(e))return s(e,i,o);let a,c=nJ(e.expression,r,V_);return _n.assertNotNode(c,SE),i&&($J(c)?a=c:(a=t.createTempVariable(n),c=t.createAssignment(a,c))),c=211===e.kind?t.updatePropertyAccessExpression(e,c,nJ(e.name,r,VN)):t.updateElementAccessExpression(e,c,nJ(e.argumentExpression,r,V_)),a?t.createSyntheticReferenceExpression(c,a):c}(e,a,c);case 213:return o(e,a);default:return nJ(e,r,V_)}}function s(e,i,o){const{expression:s,chain:l}=function(e){_n.assertNotNode(e,Tl);const t=[e];for(;!e.questionDotToken&&!eF(e);)e=tt(Sl(e.expression),hl),_n.assertNotNode(e,Tl),t.unshift(e);return{expression:e.expression,chain:t}}(e),_=a(Sl(s),gl(l[0]),!1);let u=SE(_)?_.thisArg:void 0,d=SE(_)?_.expression:_,p=t.restoreOuterExpressions(s,d,8);$J(d)||(d=t.createTempVariable(n),p=t.createAssignment(d,p));let f,m=d;for(let e=0;e<l.length;e++){const o=l[e];switch(o.kind){case 211:case 212:e===l.length-1&&i&&($J(m)?f=m:(f=t.createTempVariable(n),m=t.createAssignment(f,m))),m=211===o.kind?t.createPropertyAccessExpression(m,nJ(o.name,r,VN)):t.createElementAccessExpression(m,nJ(o.argumentExpression,r,V_));break;case 213:0===e&&u?(Wl(u)||(u=t.cloneNode(u),aw(u,3072)),m=t.createFunctionCallCall(m,108===u.kind?t.createThis():u,rJ(o.arguments,r,V_))):m=t.createCallExpression(m,void 0,rJ(o.arguments,r,V_))}tw(m,o)}const g=o?t.createConditionalExpression(c(p,d,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(m)):t.createConditionalExpression(c(p,d,!0),void 0,t.createVoidZero(),void 0,m);return cI(g,e),f?t.createSyntheticReferenceExpression(g,f):g}function c(e,n,r){return t.createBinaryExpression(t.createBinaryExpression(e,t.createToken(r?37:38),t.createNull()),t.createToken(r?57:56),t.createBinaryExpression(n,t.createToken(r?37:38),t.createVoidZero()))}}function Yz(e){const{hoistVariableDeclaration:t,factory:n}=e;return RJ(e,(function(t){if(t.isDeclarationFile)return t;return dJ(t,r,e)}));function r(i){return 16&i.transformFlags?Yv(i)?function(e){const i=GJ(e.operatorToken.kind);let o=ah(nJ(e.left,r,M_)),a=o;const s=ah(nJ(e.right,r,V_));if(Tx(o)){const e=$J(o.expression),r=e?o.expression:n.createTempVariable(t),i=e?o.expression:n.createAssignment(r,o.expression);if(XD(o))a=n.createPropertyAccessExpression(r,o.name),o=n.createPropertyAccessExpression(i,o.name);else{const e=$J(o.argumentExpression),s=e?o.argumentExpression:n.createTempVariable(t);a=n.createElementAccessExpression(r,s),o=n.createElementAccessExpression(i,e?o.argumentExpression:n.createAssignment(s,o.argumentExpression))}}return n.createBinaryExpression(o,i,n.createParenthesizedExpression(n.createAssignment(a,s)))}(i):dJ(i,r,e):i}}function Zz(e){const{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:r,startLexicalEnvironment:i,endLexicalEnvironment:o}=e;let a,s,c,l;return RJ(e,(function(t){if(t.isDeclarationFile)return t;const n=nJ(t,_,WE);return Nw(n,e.readEmitHelpers()),s=void 0,a=void 0,c=void 0,n}));function _(n){if(!(4&n.transformFlags))return n;switch(n.kind){case 307:return function(n){const r=iq(n.statements);if(r){i(),a=new VJ,s=[];const e=eq(n.statements),c=[];ae(c,iJ(n.statements,_,pu,0,e));let d=e;for(;d<n.statements.length;){if(0!==rq(n.statements[d])){d>e&&ae(c,rJ(n.statements,_,pu,e,d-e));break}d++}_n.assert(d<n.statements.length,"Should have encountered at least one 'using' statement.");const p=m(),f=u(n.statements,d,n.statements.length,p,c);return a.size&&re(c,t.createExportDeclaration(void 0,!1,t.createNamedExports(Ie(a.values())))),ae(c,o()),s.length&&c.push(t.createVariableStatement(t.createModifiersFromModifierFlags(32),t.createVariableDeclarationList(s,1))),ae(c,g(f,p,2===r)),l&&c.push(t.createExportAssignment(void 0,!0,l)),t.updateSourceFile(n,c)}return dJ(n,_,e)}(n);case 241:return function(n){const r=iq(n.statements);if(r){const e=eq(n.statements),i=m();return t.updateBlock(n,[...iJ(n.statements,_,pu,0,e),...g(u(n.statements,e,n.statements.length,i,void 0),i,2===r)])}return dJ(n,_,e)}(n);case 248:return function(n){if(n.initializer&&tq(n.initializer))return nJ(t.createBlock([t.createVariableStatement(void 0,n.initializer),t.updateForStatement(n,void 0,n.condition,n.incrementor,n.statement)]),_,pu);return dJ(n,_,e)}(n);case 250:return function(n){if(tq(n.initializer)){const e=n.initializer,r=pe(e.declarations)||t.createVariableDeclaration(t.createTempVariable(void 0)),i=2===nq(e),o=t.getGeneratedNameForNode(r.name),a=t.updateVariableDeclaration(r,r.name,void 0,void 0,o),s=t.createVariableDeclarationList([a],i?6:4),c=t.createVariableStatement(void 0,s);return nJ(t.updateForOfStatement(n,n.awaitModifier,t.createVariableDeclarationList([t.createVariableDeclaration(o)],2),n.expression,DF(n.statement)?t.updateBlock(n.statement,[c,...n.statement.statements]):t.createBlock([c,n.statement],!0)),_,pu)}return dJ(n,_,e)}(n);case 255:return function(n){const r=function(e){let t=0;for(const n of e){const e=iq(n.statements);if(2===e)return 2;e>t&&(t=e)}return t}(n.caseBlock.clauses);if(r){const i=m();return g([t.updateSwitchStatement(n,nJ(n.expression,_,V_),t.updateCaseBlock(n.caseBlock,n.caseBlock.clauses.map((n=>function(n,r){if(0!==iq(n.statements))return RE(n)?t.updateCaseClause(n,nJ(n.expression,_,V_),u(n.statements,0,n.statements.length,r,void 0)):t.updateDefaultClause(n,u(n.statements,0,n.statements.length,r,void 0));return dJ(n,_,e)}(n,i)))))],i,2===r)}return dJ(n,_,e)}(n);default:return dJ(n,_,e)}}function u(i,o,a,s,u){const m=[];for(let r=o;r<a;r++){const o=i[r],a=rq(o);if(a){_n.assertNode(o,FF);const r=[];for(let i of o.declarationList.declarations){if(!VN(i.name)){r.length=0;break}Gh(i)&&(i=Lz(e,i));const o=nJ(i.initializer,_,V_)??t.createVoidZero();r.push(t.updateVariableDeclaration(i,i.name,void 0,void 0,n().createAddDisposableResourceHelper(s,o,2===a)))}if(r.length){const e=t.createVariableDeclarationList(r,2);tw(e,o.declarationList),cI(e,o.declarationList),g(t.updateVariableStatement(o,void 0,e));continue}}const c=_(o);Xe(c)?c.forEach(g):c&&g(c)}return m;function g(n){_n.assertNode(n,pu),re(m,function(n){if(!u)return n;switch(n.kind){case 272:case 271:case 278:case 262:return function(e,t){return void t.push(e)}(n,u);case 277:return function(n){return n.isExportEquals?function(e){if(l)return e;l=t.createUniqueName("_default",56),r(l);const n=t.createAssignment(l,e.expression);return t.createExpressionStatement(n)}(n):function(n){if(c)return n;c=t.createUniqueName("_default",56),f(c,!0,"default",n);let r=n.expression,i=uA(r);Gh(i)&&(i=Lz(e,i,!1,"default"),r=t.restoreOuterExpressions(r,i));const o=t.createAssignment(c,r);return t.createExpressionStatement(o)}(n)}(n);case 263:return function(n){if(!n.name&&c)return n;const r=Dv(n,32),i=Dv(n,2048);let o=t.converters.convertToClassExpression(n);n.name&&(f(t.getLocalName(n),r&&!i,void 0,n),o=t.createAssignment(t.getDeclarationName(n),o),Gh(o)&&(o=Lz(e,o,!1)),tw(o,n),_w(o,n),gw(o,n));i&&!c&&(c=t.createUniqueName("_default",56),f(c,!0,"default",n),o=t.createAssignment(c,o),Gh(o)&&(o=Lz(e,o,!1,"default")),tw(o,n));return t.createExpressionStatement(o)}(n);case 243:return function(e){let n;const r=Dv(e,32);for(const t of e.declarationList.declarations)p(t,r,t),t.initializer&&(n=re(n,d(t)));if(n){const r=t.createExpressionStatement(t.inlineExpressions(n));return tw(r,e),gw(r,e),_w(r,e),r}return}(n)}return n}(n))}}function d(e){let n;_n.assertIsDefined(e.initializer),VN(e.name)?(n=t.cloneNode(e.name),ow(n,-114689&Yd(n))):n=t.converters.convertToAssignmentPattern(e.name);const r=t.createAssignment(n,e.initializer);return tw(r,e),gw(r,e),_w(r,e),r}function p(e,t,n){if(k_(e.name))for(const r of e.name.elements)hF(r)||p(r,t,n);else f(e.name,t,void 0,n)}function f(e,n,i,o){const c=Wl(e)?e:t.cloneNode(e);if(n){if(void 0===i&&!tA(c)){const e=t.createVariableDeclaration(c);return o&&tw(e,o),void s.push(e)}const e=void 0!==i?c:void 0,n=void 0!==i?i:c,r=t.createExportSpecifier(!1,e,n);o&&tw(r,o),a.set(c,r)}r(c)}function m(){return t.createUniqueName("env")}function g(e,r,i){const o=[],a=t.createObjectLiteralExpression([t.createPropertyAssignment("stack",t.createArrayLiteralExpression()),t.createPropertyAssignment("error",t.createVoidZero()),t.createPropertyAssignment("hasError",t.createFalse())]),s=t.createVariableDeclaration(r,void 0,void 0,a),c=t.createVariableDeclarationList([s],2),l=t.createVariableStatement(void 0,c);o.push(l);const _=t.createBlock(e,!0),u=t.createUniqueName("e"),d=t.createCatchClause(u,t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(r,"error"),u)),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(r,"hasError"),t.createTrue()))],!0));let p;if(i){const e=t.createUniqueName("result");p=t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(e,void 0,void 0,n().createDisposeResourcesHelper(r))],2)),t.createIfStatement(e,t.createExpressionStatement(t.createAwaitExpression(e)))],!0)}else p=t.createBlock([t.createExpressionStatement(n().createDisposeResourcesHelper(r))],!0);const f=t.createTryStatement(_,d,p);return o.push(f),o}}function eq(e){for(let t=0;t<e.length;t++)if(!df(e[t])&&!pf(e[t]))return t;return 0}function tq(e){return KF(e)&&0!==nq(e)}function nq(e){return 6==(7&e.flags)?2:4==(7&e.flags)?1:0}function rq(e){return FF(e)?nq(e.declarationList):0}function iq(e){let t=0;for(const n of e){const e=rq(n);if(2===e)return 2;e>t&&(t=e)}return t}function oq(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getCompilerOptions();let i,o;return RJ(e,(function(n){if(n.isDeclarationFile)return n;i=n,o={},o.importSpecifier=Gk(r,n);let a=dJ(n,u,e);Nw(a,e.readEmitHelpers());let s=a.statements;o.filenameDeclaration&&(s=jd(s.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2))));if(o.utilizedImplicitRuntimeImports)for(const[e,r]of Ie(o.utilizedImplicitRuntimeImports.entries()))if(VI(n)){const n=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(Ie(r.values()))),t.createStringLiteral(e),void 0);ET(n,!1),s=jd(s.slice(),n)}else if(Yp(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));ET(n,!1),s=jd(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:Xk(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 Jw(l,_),c.set(e,_),l}function u(t){return 2&t.transformFlags?function(t){switch(t.kind){case 284:return m(t,!1);case 285:return g(t,!1);case 288:return h(t,!1);case 294:return L(t);default:return dJ(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;i<e.length;i++){const o=e.charCodeAt(i);Va(o)?(-1!==n&&-1!==r&&(t=A(t,e.substr(n,r-n+1))),n=-1):Ua(o)||(r=i,-1===n&&(n=i))}return-1!==n?A(t,e.substr(n)):t}(e.text);return void 0===n?void 0:t.createStringLiteral(n)}(e);case 294:return L(e);case 284:return m(e,!0);case 285:return g(e,!0);case 288:return h(e,!0);default:return _n.failBadSyntaxKind(e)}}function p(e){return e.properties.some((e=>zE(e)&&(VN(e.name)&&"__proto__"===gc(e.name)||NN(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(!OE(n)||GD(n.expression)&&!n.expression.properties.some(UE)){if(t&&AE(n)&&VN(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,e)}function g(e,t){return(f(e)?k:b)(e,void 0,t,e)}function h(e,t){return(void 0===o.importSpecifier?T:S)(e.openingFragment,e.children,t,e)}function v(e){const n=ly(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&&VN(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=ly(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=_c(i);if(e&&WE(e)){void 0===o&&m.push(t.createVoidZero()),m.push(f?t.createTrue():t.createFalse());const n=za(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=cI(t.createCallExpression(c(f),void 0,m),u);return _&&pA(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?$P(t,e.getEmitResolver().getJsxFactoryEntity(i),r.reactNamespace,n):_("createElement"),g=HP(t,m,u,f,R(a,d),c);return s&&pA(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=KP(t,e.getEmitResolver().getJsxFactoryEntity(i),e.getEmitResolver().getJsxFragmentFactoryEntity(i),r.reactNamespace,R(o,d),n,s);return a&&pA(c),c}function w(e,i){const o=vk(r);return o&&o>=5?t.createObjectLiteralExpression(function(e,n){const r=P(q(e,OE,((e,n)=>P(D(e,(e=>{return n?GD((r=e).expression)&&!p(r.expression)?E(r.expression.properties,(e=>_n.checkDefined(nJ(e,u,v_)))):t.createSpreadAssignment(_n.checkDefined(nJ(r.expression,u,V_))):N(e);var r}))))));n&&r.push(n);return r}(e,i)):function(e,r){const i=[];let o=[];for(const t of e)if(OE(t)){if(GD(t.expression)&&!p(t.expression)){for(const e of t.expression.properties)UE(e)?(a(),i.push(_n.checkDefined(nJ(e.expression,u,V_)))):o.push(_n.checkDefined(nJ(e,u)));continue}a(),i.push(_n.checkDefined(nJ(t.expression,u,V_)))}else o.push(N(t));r&&o.push(r);a(),i.length&&!GD(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 N(e){const n=function(e){const n=e.name;if(VN(n)){const e=gc(n);return/^[A-Z_]\w*$/i.test(e)?n:t.createStringLiteral(e)}return t.createStringLiteral(gc(n.namespace)+":"+gc(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:!qm(e,i);return cI(t.createStringLiteral(function(e){const t=I(e);return t===e?void 0:t}(e.text)||e.text,n),e)}return 294===e.kind?void 0===e.expression?t.createTrue():_n.checkDefined(nJ(e.expression,u,V_)):CE(e)?m(e,!1):wE(e)?g(e,!1):FE(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 bs(parseInt(i,10));if(o)return bs(parseInt(o,16));{const t=aq.get(a);return t?bs(t):e}}))}function O(e){if(284===e.kind)return O(e.openingElement);{const n=e.tagName;return VN(n)&&Ey(n.escapedText)?t.createStringLiteral(gc(n)):jE(n)?t.createStringLiteral(gc(n.namespace)+":"+gc(n.name)):XP(t,n)}}function L(e){const n=nJ(e.expression,u,V_);return e.dotDotDotToken?t.createSpreadElement(n):n}}var aq=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 RJ(e,(function(t){if(t.isDeclarationFile)return t;return dJ(t,r,e)}));function r(i){return 512&i.transformFlags?226===i.kind?function(i){switch(i.operatorToken.kind){case 68:return function(e){let i,o;const a=nJ(e.left,r,V_),s=nJ(e.right,r,V_);if(QD(a)){const e=t.createTempVariable(n),r=t.createTempVariable(n);i=cI(t.createElementAccessExpression(cI(t.createAssignment(e,a.expression),a.expression),cI(t.createAssignment(r,a.argumentExpression),a.argumentExpression)),a),o=cI(t.createElementAccessExpression(e,r),a)}else if(XD(a)){const e=t.createTempVariable(n);i=cI(t.createPropertyAccessExpression(cI(t.createAssignment(e,a.expression),a.expression),a.name),a),o=cI(t.createPropertyAccessExpression(e,a.name),a)}else i=a,o=a;return cI(t.createAssignment(i,cI(t.createGlobalMethodCall("Math","pow",[o,s]),e)),e)}(i);case 43:return function(e){const n=nJ(e.left,r,V_),i=nJ(e.right,r,V_);return cI(t.createGlobalMethodCall("Math","pow",[n,i]),e)}(i);default:return dJ(i,r,e)}}(i):dJ(i,r,e):i}}function cq(e,t){return{kind:e,expression:t}}function lq(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&&r_(t)){const r=v(32670,16&Yd(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&&!eA(e)){const n=c.getReferencedDeclarationWithCollidingName(e);if(n&&(!u_(n)||!function(e,t){let n=pc(t);if(!n||n===e||n.end<=e.pos||n.pos>=e.end)return!1;const r=Fp(e);for(;n;){if(n===r||n===e)return!1;if(__(n)&&n.parent===e)return!0;n=n.parent}return!1}(n,e)))return cI(t.getGeneratedNameForNode(Cc(n)),e)}return e}(e);case 110:return function(e){if(1&y&&16&p)return cI(A(),e);return e}(e)}return e}(n);if(VN(n))return function(e){if(2&y&&!eA(e)){const n=pc(e,VN);if(n&&function(e){switch(e.parent.kind){case 208:case 263:case 266:case 260:return e.parent.name===e&&c.isDeclarationWithCollidingName(e.parent)}return!1}(n))return cI(t.getGeneratedNameForNode(n),e)}return e}(n);return n};let y=0;return RJ(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,rJ(e.statements,S,pu,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,cI(t.createNodeArray($(i,a)),e.statements))}(n);return Nw(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)&&253===e.kind&&!e.expression}function k(e){return!!(1024&e.transformFlags)||void 0!==m||8192&p&&function(e){return 4194304&e.transformFlags&&(JF(e)||AF(e)||zF(e)||qF(e)||nE(e)||RE(e)||ME(e)||WF(e)||JE(e)||UF(e)||$_(e,!1)||DF(e))}(e)||$_(e,!1)&&qe(e)||!!(1&Zd(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=_c(e);if(uD(t)&&Ev(t)){const t=v(32670,16449),n=F(e,!1);return b(t,229376,0),n}return F(e,!1)}return e}function N(e){return 108===e.kind?lt(e,!0):S(e)}function F(n,r){switch(n.kind){case 126:return;case 263:return function(e){const n=t.createVariableDeclaration(t.getLocalName(e,!0),void 0,void 0,O(e));tw(n,e);const r=[],i=t.createVariableStatement(void 0,t.createVariableDeclarationList([n]));if(tw(i,e),cI(i,e),pA(i),r.push(i),Dv(e,32)){const n=Dv(e,2048)?t.createExportDefault(t.getLocalName(e)):t.createExternalModuleExport(t.getLocalName(e));tw(n,i),r.push(n)}return xe(r)}(n);case 231:return function(e){return O(e)}(n);case 169:return function(e){return e.dotDotDotToken?void 0:k_(e.name)?tw(cI(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(e),void 0,void 0,void 0),e),e):e.initializer?tw(cI(t.createParameterDeclaration(void 0,void 0,e.name,void 0,void 0,void 0),e),e):e}(n);case 262: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,rJ(n.modifiers,S,Zl),n.asteriskToken,s,void 0,o,void 0,a)}(n);case 219: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 cI(o,n),tw(o,n),ow(o,16),b(i,0,0),m=r,o}(n);case 218:return function(n){const r=524288&Yd(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 260:return we(n);case 80:return I(n);case 261:return function(n){if(7&n.flags||524288&n.transformFlags){7&n.flags&&_t();const e=rJ(n.declarations,1&n.flags?Ce:we,HF),r=t.createVariableDeclarationList(e);return tw(r,n),cI(r,n),gw(r,n),524288&n.transformFlags&&(k_(n.declarations[0].name)||k_(ye(n.declarations).name))&&_w(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 Ib(t,n)}(e)),r}return dJ(n,S,e)}(n);case 255:return function(t){if(void 0!==m){const n=m.allowedNonLabeledJumps;m.allowedNonLabeledJumps|=2;const r=dJ(t,S,e);return m.allowedNonLabeledJumps=n,r}return dJ(t,S,e)}(n);case 269:return function(t){const n=v(7104,0),r=dJ(t,S,e);return b(n,0,0),r}(n);case 241:return function(t,n){if(n)return dJ(t,S,e);const r=256&p?v(7104,512):v(6976,128),i=dJ(t,S,e);return b(r,0,0),i}(n,!1);case 252:case 251:return function(n){if(m){const e=252===n.kind?2:4;if(!(n.label&&m.labels&&m.labels.get(gc(n.label))||!n.label&&m.allowedNonLabeledJumps&e)){let e;const r=n.label;r?252===n.kind?(e=`break-${r.escapedText}`,Ge(m,!0,gc(r),e)):(e=`continue-${r.escapedText}`,Ge(m,!1,gc(r),e)):252===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;r<e.length;r++){const i=He(e[r],1);n=0===r?i:t.createBinaryExpression(n,28,i)}i=t.createBinaryExpression(n,28,i)}return t.createReturnStatement(i)}}return dJ(n,S,e)}(n);case 256:return function(e){m&&!m.labels&&(m.labels=new Map);const n=Rf(e,m&&Ne);return $_(n,!1)?function(e,t){switch(e.kind){case 246:case 247:return Ee(e,t);case 248:return Pe(e,t);case 249:return Ae(e,t);case 250:return Ie(e,t)}}(n,e):t.restoreEnclosingLabel(nJ(n,S,pu,t.liftToBlock)??cI(t.createEmptyStatement(),n),e,m&&De)}(n);case 246:case 247:return Ee(n,void 0);case 248:return Pe(n,void 0);case 249:return Ae(n,void 0);case 250:return Ie(n,void 0);case 244:case 222:return function(t){return dJ(t,T,e)}(n);case 210:return function(n){const r=n.properties;let i=-1,o=!1;for(let e=0;e<r.length;e++){const t=r[e];if(1048576&t.transformFlags&&4&p||(o=167===_n.checkDefined(t.name).kind)){i=e;break}}if(i<0)return dJ(n,S,e);const s=t.createTempVariable(a),c=[],l=t.createAssignment(s,ow(t.createObjectLiteralExpression(rJ(r,S,v_,0,i),n.multiLine),o?131072:0));n.multiLine&&pA(l);return c.push(l),function(e,t,n,r){const i=t.properties,o=i.length;for(let a=r;a<o;a++){const r=i[a];switch(r.kind){case 177:case 178:const i=pv(t.properties,r);r===i.firstAccessor&&e.push(be(n,i,t,!!t.multiLine));break;case 174:e.push(nt(r,n,t,t.multiLine));break;case 303:e.push(Ye(r,n,t.multiLine));break;case 304:e.push(Ze(r,n,t.multiLine));break;default:_n.failBadSyntaxKind(t)}}}(c,n,s,i),c.push(n.multiLine?pA(FT(cI(t.cloneNode(s),s),s.parent)):s),t.inlineExpressions(c)}(n);case 299:return function(n){const r=v(7104,0);let i;if(_n.assert(!!n.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),k_(n.variableDeclaration.name)){const r=t.createTempVariable(void 0),o=t.createVariableDeclaration(r);cI(o,n.variableDeclaration);const a=vz(n.variableDeclaration,S,e,0,r),s=t.createVariableDeclarationList(a);cI(s,n.variableDeclaration);const c=t.createVariableStatement(void 0,s);i=t.updateCatchClause(n,o,function(e,n){const r=rJ(e.statements,S,pu);return t.updateBlock(e,[n,...r])}(n.block,c))}else i=dJ(n,S,e);return b(r,0,0),i}(n);case 304:return function(e){return cI(t.createPropertyAssignment(e.name,I(t.cloneNode(e.name))),e)}(n);case 167:case 229:return function(t){return dJ(t,S,e)}(n);case 209:return function(t){if(V(t.elements,mF))return rt(t.elements,!1,!!t.multiLine,!!t.elements.hasTrailingComma);return dJ(t,S,e)}(n);case 213:return function(n){if(1&Zd(n))return function(e){const n=tt(tt(uA(e.expression),iF).body,DF),r=e=>FF(e)&&!!me(e.declarationList.declarations).initializer,i=m;m=void 0;const o=rJ(n.statements,w,pu);m=i;const a=C(o,r),s=C(o,(e=>!r(e))),c=tt(me(a),FF).declarationList.declarations[0],l=uA(c.initializer);let _=et(l,ib);!_&&uF(l)&&28===l.operatorToken.kind&&(_=et(l.left,ib));const u=tt(_?uA(_.right):l,YD),d=tt(uA(u.expression),rF),p=d.body.statements;let f=0,g=-1;const h=[];if(_){const e=et(p[f],PF);e&&(h.push(e),f++),h.push(p[f]),f++,h.push(t.createExpressionStatement(t.createAssignment(_.left,tt(c.name,VN))))}for(;!JF(de(p,g));)g--;ae(h,p,f,g),g<-1&&ae(h,p,g+1);const y=et(de(p,g),JF);for(const e of s)JF(e)&&(null==y?void 0:y.expression)&&!VN(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=uA(n.expression);if(108===r.kind||am(r)||V(n.arguments,mF))return function(n,r){if(32768&n.transformFlags||108===n.expression.kind||am(uA(n.expression))){const{target:e,thisArg:i}=t.createCallBinding(n.expression,a);let o;if(108===n.expression.kind&&ow(i,8),o=32768&n.transformFlags?t.createFunctionApplyCall(_n.checkDefined(nJ(e,N,V_)),108===n.expression.kind?i:_n.checkDefined(nJ(i,S,V_)),rt(n.arguments,!0,!1,!1)):cI(t.createFunctionCallCall(_n.checkDefined(nJ(e,N,V_)),108===n.expression.kind?i:_n.checkDefined(nJ(i,S,V_)),rJ(n.arguments,S,V_)),n),108===n.expression.kind){const e=t.createLogicalOr(o,Z());o=r?t.createAssignment(A(),e):e}return tw(o,n)}cf(n)&&(p|=131072);return dJ(n,S,e)}(n,!0);return t.updateCallExpression(n,_n.checkDefined(nJ(n.expression,N,V_)),void 0,rJ(n.arguments,S,V_))}(n);case 214:return function(n){if(V(n.arguments,mF)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return t.createNewExpression(t.createFunctionApplyCall(_n.checkDefined(nJ(e,S,V_)),r,rt(t.createNodeArray([t.createVoidZero(),...n.arguments]),!0,!1,!1)),void 0,[])}return dJ(n,S,e)}(n);case 217:return function(t,n){return dJ(t,n?T:S,e)}(n,r);case 226:return Te(n,r);case 356:return function(n,r){if(r)return dJ(n,T,e);let i;for(let e=0;e<n.elements.length;e++){const t=n.elements[e],r=nJ(t,e<n.elements.length-1?T:S,V_);(i||r!==t)&&(i||(i=n.elements.slice(0,e)),_n.assert(r),i.push(r))}const o=i?cI(t.createNodeArray(i),n.elements):n.elements;return t.updateCommaListExpression(n,o)}(n,r);case 15:case 16:case 17:case 18:return function(e){return cI(t.createStringLiteral(e.text),e)}(n);case 11:return function(e){if(e.hasExtendedUnicodeEscape)return cI(t.createStringLiteral(e.text),e);return e}(n);case 9:return function(e){if(384&e.numericLiteralFlags)return cI(t.createNumericLiteral(e.text),e);return e}(n);case 215:return function(t){return Rz(e,t,S,u,g,1)}(n);case 228:return function(e){let n=t.createStringLiteral(e.head.text);for(const r of e.templateSpans){const e=[_n.checkDefined(nJ(r.expression,S,V_))];r.literal.text.length>0&&e.push(t.createStringLiteral(r.literal.text)),n=t.createCallExpression(t.createPropertyAccessExpression(n,"concat"),void 0,e)}return cI(n,e)}(n);case 230:return function(e){return nJ(e.expression,S,V_)}(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 236:return function(e){if(105===e.keywordToken&&"target"===e.name.escapedText)return p|=32768,t.createUniqueName("_newTarget",48);return e}(n);case 174:return function(e){_n.assert(!aD(e.name));const n=ke(e,Lb(e,-1),void 0,void 0);return ow(n,1024|Yd(n)),cI(t.createPropertyAssignment(e.name,n),e)}(n);case 177:case 178:return function(n){_n.assert(!aD(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=177===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 243:return function(n){const r=v(0,Dv(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&Zd(e.declarationList.declarations[0].initializer))}(n))i=dJ(n,S,e);else{let r;for(const i of n.declarationList.declarations)if(Ve(m,i),i.initializer){let n;k_(i.name)?n=gz(i,S,e,0):(n=t.createBinaryExpression(i.name,64,_n.checkDefined(nJ(i.initializer,S,V_))),cI(n,i)),r=re(r,n)}i=r?cI(t.createExpressionStatement(t.inlineExpressions(r)),n):void 0}return b(r,0,0),i}(n);case 253: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(nJ(n.expression,S,V_)):t.createVoidZero())]));if(x(n))return E(n);return dJ(n,S,e)}(n);default:return dJ(n,S,e)}}function E(e){return tw(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?tw(cI(t.createIdentifier(mc(e.escapedText)),e),e):e}function O(a){a.name&&_t();const s=vh(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),_=Ph(l)?t.getGeneratedNameForNode(l):l;r(),function(e,r,i){i&&e.push(cI(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),_=iv(r),u=function(e,t){if(!e||!t)return!1;if(V(e.parameters))return!1;const n=pe(e.body.statements);if(!n||!ey(n)||244!==n.kind)return!1;const r=n.expression;if(!ey(r)||213!==r.kind)return!1;const i=r.expression;if(!ey(i)||108!==i.kind)return!1;const o=ve(r.arguments);if(!o||!ey(o)||230!==o.kind)return!1;const a=o.expression;return VN(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!==uA(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);cI(a,e.members);const s=t.createBlock(a,!0);return cI(s,e),ow(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,rJ(e.body.statements,S,pu,_));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(cI(t.createNodeArray([...c,...l]),e.body.statements),!0);return cI(d,e.body),function(e,n,r){const i=e;e=function(e){for(let n=0;n<e.statements.length-1;n++){const r=e.statements[n];if(!B(r))continue;const i=r.declarationList.declarations[0];if(110!==i.initializer.kind)continue;const o=n;let a=n+1;for(;a<e.statements.length;){const t=e.statements[a];if(PF(t)&&G(uA(t.expression)))break;if(!L(t))return e;a++}const s=e.statements[a];let c=s.expression;J(c)&&(c=c.right);const l=t.updateVariableDeclaration(i,i.name,void 0,void 0,c),_=t.updateVariableDeclarationList(r.declarationList,[l]),u=t.createVariableStatement(r.modifiers,_);tw(u,s),cI(u,s);const d=t.createNodeArray([...e.statements.slice(0,o),...e.statements.slice(o+1,a),u,...e.statements.slice(a+1)]);return cI(d,e.statements),t.updateBlock(e,d)}return e}(e),e=function(e,n){for(const t of n.statements)if(134217728&t.transformFlags&&!XJ(t))return e;const r=!(16384&n.transformFlags||65536&p||131072&p);for(let n=e.statements.length-1;n>0;n--){const i=e.statements[n];if(JF(i)&&i.expression&&R(i.expression)){const i=e.statements[n-1];let o;if(PF(i)&&K(uA(i.expression)))o=i.expression;else if(r&&B(i)){const e=i.declarationList.declarations[0];G(uA(e.initializer))&&(o=t.createAssignment(A(),e.initializer))}if(!o)break;const a=t.createReturnStatement(o);tw(a,i),cI(a,i);const s=t.createNodeArray([...e.statements.slice(0,n-1),a,...e.statements.slice(n+1)]);return cI(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&&!XJ(t))return e;return t.updateBlock(e,rJ(e.statements,X,pu))}(e,n));r&&(e=function(e){return t.updateBlock(e,rJ(e.statements,Q,pu))}(e));return e}(d,e.body,a)}(_,r,s,u));cI(d,_||r),s&&ow(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 240:e.push(ue(n));break;case 174:e.push(fe(ut(t,n),n,t));break;case 177:case 178:const r=pv(t.members,n);n===r.firstAccessor&&e.push(ge(ut(t,n),r,t));break;case 176:case 175:break;default:_n.failBadSyntaxKind(n,u&&u.fileName)}}(c,a);const f=Mb(Qa(d,a.members.end),20),g=t.createPartiallyEmittedExpression(_);CT(g,f.end),ow(g,3072);const h=t.createReturnStatement(g);TT(h,f.pos),ow(h,3840),c.push(h),Id(c,o());const y=t.createBlock(cI(t.createNodeArray(c),a.members),!0);return ow(y,3072),y}(a,s));ow(c,131072&Yd(a)|1048576);const l=t.createPartiallyEmittedExpression(c);CT(l,a.end),ow(l,3072);const _=t.createPartiallyEmittedExpression(l);CT(_,Qa(d,a.pos)),ow(_,3072);const f=t.createParenthesizedExpression(t.createCallExpression(_,void 0,s?[_n.checkDefined(nJ(s.expression,S,V_))]:[]));return vw(f,3,"* @class "),f}function L(e){return FF(e)&&h(e.declarationList.declarations,(e=>VN(e.name)&&!e.initializer))}function j(e){if(cf(e))return!0;if(!(134217728&e.transformFlags))return!1;switch(e.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const t=e;return!!aD(t.name)&&!!RI(t.name,j)}}return!!RI(e,j)}function R(e){return Wl(e)&&"_this"===gc(e)}function M(e){return Wl(e)&&"_super"===gc(e)}function B(e){return FF(e)&&1===e.declarationList.declarations.length&&function(e){return HF(e)&&R(e.name)&&!!e.initializer}(e.declarationList.declarations[0])}function J(e){return ib(e,!0)&&R(e.left)}function z(e){return YD(e)&&XD(e.expression)&&M(e.expression.expression)&&VN(e.expression.name)&&("call"===gc(e.expression.name)||"apply"===gc(e.expression.name))&&e.arguments.length>=1&&110===e.arguments[0].kind}function U(e){return uF(e)&&57===e.operatorToken.kind&&110===e.right.kind&&z(e.left)}function W(e){return uF(e)&&56===e.operatorToken.kind&&uF(e.left)&&38===e.left.operatorToken.kind&&M(e.left.left)&&106===e.left.right.kind&&z(e.right)&&"apply"===gc(e.right.expression.name)}function H(e){return uF(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 219:case 218:case 262:case 176:case 175:return e;case 177:case 178:case 174:case 172:{const n=e;return aD(n.name)?t.replacePropertyName(n,dJ(n.name,X,void 0)):e}}return dJ(e,X,void 0)}function Q(e){if(z(e)&&2===e.arguments.length&&VN(e.arguments[1])&&"arguments"===gc(e.arguments[1]))return t.createLogicalAnd(t.createStrictInequality(ct(),t.createNull()),e);switch(e.kind){case 219:case 218:case 262:case 176:case 175:return e;case 177:case 178:case 174:case 172:{const n=e;return aD(n.name)?t.replacePropertyName(n,dJ(n.name,Q,void 0)):e}}return dJ(e,Q,void 0)}function Y(e){if(253===e.kind)return!0;if(245===e.kind){const t=e;if(t.elseStatement)return Y(t.thenStatement)&&Y(t.elseStatement)}else if(241===e.kind){const t=he(e.statements);if(t&&Y(t))return!0}return!1}function Z(){return ow(t.createThis(),8)}function te(e){return void 0!==e.initializer||k_(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||(k_(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?(jd(n,ow(t.createVariableStatement(void 0,t.createVariableDeclarationList(vz(r,S,e,0,t.getGeneratedNameForNode(r)))),2097152)),!0):!!o&&(jd(n,ow(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(r),_n.checkDefined(nJ(o,S,V_)))),2097152)),!0)}function oe(e,n,r,i){i=_n.checkDefined(nJ(i,S,V_));const o=t.createIfStatement(t.createTypeCheck(t.cloneNode(r),"undefined"),ow(cI(t.createBlock([t.createExpressionStatement(ow(cI(t.createAssignment(ow(FT(cI(t.cloneNode(r),r),r.parent),96),ow(i,3168|Yd(i))),n),3072))]),n),3905));pA(o),cI(o,n),ow(o,2101056),jd(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?FT(cI(t.cloneNode(a.name),a.name),a.name.parent):t.createTempVariable(void 0);ow(s,96);const c=80===a.name.kind?t.cloneNode(a.name):s,l=r.parameters.length-1,_=t.createLoopVariable();o.push(ow(cI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(s,void 0,void 0,t.createArrayLiteralExpression([]))])),a),2097152));const u=t.createForStatement(cI(t.createVariableDeclarationList([t.createVariableDeclaration(_,void 0,void 0,t.createNumericLiteral(l))]),a),cI(t.createLessThan(_,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),a),cI(t.createPostfixIncrement(_),a),t.createBlock([pA(cI(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(c,0===l?_:t.createSubtract(_,t.createNumericLiteral(l))),t.createElementAccessExpression(t.createIdentifier("arguments"),_))),a))]));return ow(u,2097152),pA(u),o.push(u),80!==a.name.kind&&o.push(ow(cI(t.createVariableStatement(void 0,t.createVariableDeclarationList(vz(a,S,e,0,c))),a),2097152)),Od(n,o),!0}function ce(e,n){return!!(131072&p&&219!==n.kind)&&(le(e,n,t.createThis()),!0)}function le(n,r,i){1&y||(y|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262));const o=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(A(),void 0,void 0,i)]));ow(o,2100224),_w(o,r),jd(n,o)}function _e(e,n){if(32768&p){let r;switch(n.kind){case 219:return e;case 174:case 177:case 178:r=t.createVoidZero();break;case 176:r=t.createPropertyAccessExpression(ow(t.createThis(),8),"constructor");break;case 262:case 218:r=t.createConditionalExpression(t.createLogicalAnd(ow(t.createThis(),8),t.createBinaryExpression(ow(t.createThis(),8),104,t.getLocalName(n))),void 0,t.createPropertyAccessExpression(ow(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)]));ow(i,2100224),jd(e,i)}return e}function ue(e){return cI(t.createEmptyStatement(),e)}function fe(n,r,i){const o=mw(r),a=lw(r),s=ke(r,r,void 0,i),c=nJ(r.name,S,t_);let l;if(_n.assert(c),!WN(c)&&Ok(e.getCompilerOptions())){const e=aD(c)?c.expression:VN(c)?t.createStringLiteral(mc(c.escapedText)):c;l=t.createObjectDefinePropertyCall(n,e,t.createPropertyDescriptor({value:s,enumerable:!1,writable:!0,configurable:!0}))}else{const e=UP(t,n,c,r.name);l=t.createAssignment(e,s)}ow(s,3072),_w(s,a);const _=cI(t.createExpressionStatement(l),r);return tw(_,r),gw(_,o),ow(_,96),_}function ge(e,n,r){const i=t.createExpressionStatement(be(e,n,r,!1));return ow(i,3072),_w(i,lw(n.firstAccessor)),i}function be(e,{firstAccessor:n,getAccessor:r,setAccessor:i},o,a){const s=FT(cI(t.cloneNode(e),e),e.parent);ow(s,3136),_w(s,n.name);const c=nJ(n.name,S,t_);if(_n.assert(c),WN(c))return _n.failBadSyntaxKind(c,"Encountered unhandled private identifier while transforming ES2015.");const l=QP(t,c);ow(l,3104),_w(l,n.name);const _=[];if(r){const e=ke(r,void 0,void 0,o);_w(e,lw(r)),ow(e,1024);const n=t.createPropertyAssignment("get",e);gw(n,mw(r)),_.push(n)}if(i){const e=ke(i,void 0,void 0,o);_w(e,lw(i)),ow(e,1024);const n=t.createPropertyAssignment("set",e);gw(n,mw(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&&pA(u),u}function ke(n,r,i,o){const a=m;m=void 0;const s=o&&u_(o)&&!Fv(n)?v(32670,73):v(32670,65),c=sJ(n.parameters,S,e),l=Se(n);return 32768&p&&!i&&(262===n.kind||218===n.kind)&&(i=t.getGeneratedNameForNode(n)),b(s,229376,0),m=a,tw(cI(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(),DF(_)&&(d=t.copyStandardPrologue(_.statements,c,0,!1),d=t.copyCustomPrologue(_.statements,l,d,S,ff),d=t.copyCustomPrologue(_.statements,l,d,S,gf)),a=ne(l,e)||a,a=se(l,e,!1)||a,DF(_))d=t.copyCustomPrologue(_.statements,l,d,S),n=_.statements,ae(l,rJ(_.statements,S,pu,d)),!a&&_.multiLine&&(a=!0);else{_n.assert(219===e.kind),n=Ob(_,-1);const i=e.equalsGreaterThanToken;ey(i)||ey(_)||(Ub(i,_,u)?s=!0:a=!0);const o=nJ(_,S,V_),c=t.createReturnStatement(o);cI(c,_),Sw(c,_),ow(c,2880),l.push(c),r=_}if(t.mergeLexicalEnvironment(c,o()),_e(c,e),ce(c,e),V(c)&&(a=!0),l.unshift(...c),DF(_)&&ee(l,_.statements))return _;const p=t.createBlock(cI(t.createNodeArray(l),n),a);return cI(p,e.body),!a&&s&&ow(p,1),r&&dw(p,20,r),tw(p,e.body),p}function Te(n,r){return ob(n)?gz(n,S,e,0,!r):28===n.operatorToken.kind?t.updateBinaryExpression(n,_n.checkDefined(nJ(n.left,T,V_)),n.operatorToken,_n.checkDefined(nJ(n.right,r?T:S,V_))):dJ(n,S,e)}function Ce(n){return k_(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()):dJ(n,S,e)}function we(t){const n=v(32,0);let r;return r=k_(t.name)?vz(t,S,e,0,void 0,!!(32&n)):dJ(t,S,e),b(n,0,0),r}function Ne(e){m.labels.set(gc(e.label),!0)}function De(e){m.labels.set(gc(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(LF(n)?function(e){return t.updateForStatement(e,nJ(e.initializer,T,eu),nJ(e.condition,S,V_),nJ(e.incrementor,T,V_),_n.checkDefined(nJ(e.statement,S,pu,t.liftToBlock)))}(n):dJ(n,S,e),i,m&&De);return m&&(m.allowedNonLabeledJumps=r),o}const c=function(e){let t;switch(e.kind){case 248:case 249:case 250:const n=e.initializer;n&&261===n.kind&&(t=n)}const n=[],r=[];if(t&&7&ac(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,ow(t.createVariableDeclarationList([t.createVariableDeclaration(r,void 0,void 0,ow(t.createFunctionExpression(void 0,i?t.createToken(42):void 0,void 0,void 0,void 0,void 0,_n.checkDefined(nJ(t.createBlock(a,!0),S,DF))),o))]),4194304)),c=t.createVariableDeclarationList(D(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=nJ(e.statement,S,pu,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(nJ(e.incrementor,S,V_))),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(nJ(e.condition,S,V_))),_n.checkDefined(nJ(t.createBreakStatement(),S,pu)))));_n.assert(s),DF(s)?ae(l,s.statements):l.push(s);Ke(n.loopOutParameters,1,1,l),Id(l,c);const _=t.createBlock(l,!0);DF(s)&&tw(_,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,ow(t.createVariableDeclarationList([t.createVariableDeclaration(a,void 0,void 0,ow(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,D(n.loopParameters,(e=>e.name))),c=i?t.createYieldExpression(t.createToken(42),ow(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),ow(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&&De)}else{const e=We(n,u,_n.checkDefined(nJ(n.statement,S,pu,t.liftToBlock)));f=t.restoreEnclosingLabel(e,i,m&&De)}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(KF(a)){7&n.initializer.flags&&_t();const i=pe(a.declarations);if(i&&k_(i.name)){const a=vz(i,S,e,0,r),s=cI(t.createVariableDeclarationList(a),n.initializer);tw(s,n.initializer),_w(s,Ib(a[0].pos,ye(a).end)),o.push(t.createVariableStatement(void 0,s))}else o.push(cI(t.createVariableStatement(void 0,tw(cI(t.createVariableDeclarationList([t.createVariableDeclaration(i?i.name:t.createTempVariable(void 0),void 0,void 0,r)]),Lb(a,-1)),a)),Ob(a,-1)))}else{const e=t.createAssignment(a,r);ob(e)?o.push(t.createExpressionStatement(Te(e,!0))):(CT(e,a.end),o.push(cI(t.createExpressionStatement(_n.checkDefined(nJ(e,S,V_))),Ob(a,-1))))}if(i)return Le(ae(o,i));{const e=nJ(n.statement,S,pu,t.liftToBlock);return _n.assert(e),DF(e)?t.updateBlock(e,cI(t.createNodeArray($(o,e.statements)),e.statements)):(o.push(e),Le(o))}}function Le(e){return ow(t.createBlock(t.createNodeArray(e),!0),864)}function je(e,n,r){const i=nJ(e.expression,S,V_);_n.assert(i);const o=t.createLoopVariable(),a=VN(i)?t.getGeneratedNameForNode(i):t.createTempVariable(void 0);ow(i,96|Yd(i));const s=cI(t.createForStatement(ow(cI(t.createVariableDeclarationList([cI(t.createVariableDeclaration(o,void 0,void 0,t.createNumericLiteral(0)),Lb(e.expression,-1)),cI(t.createVariableDeclaration(a,void 0,void 0,i),e.expression)]),e.expression),4194304),cI(t.createLessThan(o,t.createPropertyAccessExpression(a,"length")),e.expression),cI(t.createPostfixIncrement(o),e.expression),Oe(e,t.createElementAccessExpression(a,o),r)),e);return ow(s,512),cI(s,e),t.restoreEnclosingLabel(s,n,m&&De)}function Re(e,r,i,o){const s=nJ(e.expression,S,V_);_n.assert(s);const c=VN(s)?t.getGeneratedNameForNode(s):t.createTempVariable(void 0),l=VN(s)?t.getGeneratedNameForNode(c):t.createTempVariable(void 0),_=t.createUniqueName("e"),u=t.getGeneratedNameForNode(_),d=t.createTempVariable(void 0),p=cI(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=ow(cI(t.createForStatement(ow(cI(t.createVariableDeclarationList([cI(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&&De)]),t.createCatchClause(t.createVariableDeclaration(u),ow(t.createBlock([t.createExpressionStatement(t.createAssignment(_,t.createObjectLiteralExpression([t.createPropertyAssignment("error",u)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([ow(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,ow(t.createBlock([ow(t.createIfStatement(_,t.createThrowStatement(t.createPropertyAccessExpression(_,"error"))),1)]),1))]))}function Me(e){return c.hasNodeCheckFlag(e,8192)}function Be(e){return LF(e)&&!!e.initializer&&Me(e.initializer)}function Je(e){return LF(e)&&!!e.condition&&Me(e.condition)}function ze(e){return LF(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)hF(e)||t(e.name)}(t.name)}function We(e,n,r){switch(e.kind){case 248:return function(e,n,r){const i=e.condition&&Me(e.condition),o=i||e.incrementor&&Me(e.incrementor);return t.updateForStatement(e,nJ(n?n.part:e.initializer,T,eu),nJ(i?void 0:e.condition,S,V_),nJ(o?void 0:e.incrementor,T,V_),r)}(e,n,r);case 249:return function(e,n){return t.updateForInStatement(e,_n.checkDefined(nJ(e.initializer,S,eu)),_n.checkDefined(nJ(e.expression,S,V_)),n)}(e,r);case 250:return function(e,n){return t.updateForOfStatement(e,void 0,_n.checkDefined(nJ(e.initializer,S,eu)),_n.checkDefined(nJ(e.expression,S,V_)),n)}(e,r);case 246:return function(e,n){return t.updateDoStatement(e,n,_n.checkDefined(nJ(e.expression,S,V_)))}(e,r);case 247:return function(e,n){return t.updateWhileStatement(e,_n.checkDefined(nJ(e.expression,S,V_)),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(k_(a))for(const t of a.elements)hF(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_"+gc(a));let o=0;s&&(o|=1),LF(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(UP(t,n,_n.checkDefined(nJ(e.name,S,t_))),_n.checkDefined(nJ(e.initializer,S,V_)));return cI(i,e),r&&pA(i),i}function Ze(e,n,r){const i=t.createAssignment(UP(t,n,_n.checkDefined(nJ(e.name,S,t_))),t.cloneNode(e.name));return cI(i,e),r&&pA(i),i}function nt(e,n,r,i){const o=t.createAssignment(UP(t,n,_n.checkDefined(nJ(e.name,S,t_))),ke(e,e,void 0,r));return cI(o,e),i&&pA(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||AT(e.expression)||TN(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;e<c.length;e++){const t=c[e];u=l.createSpreadArrayHelper(u,t.expression,1===t.kind&&!r)}return u}function it(e){return mF(e)?ot:st}function ot(e){return D(e,at)}function at(e){_n.assertNode(e,mF);let t=nJ(e.expression,S,V_);_n.assert(t);const r=TN(t,"___read");let i=r||AT(t)?2:1;return!s.downlevelIteration||1!==i||KD(t)||r||(t=n().createReadHelper(t,void 0),i=2),cq(i,t)}function st(e,n,r){return cq(0,t.createArrayLiteralExpression(rJ(t.createNodeArray(e,r),S,V_),n))}function ct(){return t.createUniqueName("_super",48)}function lt(e,n){const r=8&p&&!n?t.createPropertyAccessExpression(tw(ct(),e),"prototype"):ct();return tw(r,e),gw(r,e),_w(r,e),r}function _t(){2&y||(y|=2,e.enableSubstitution(80))}function ut(e,n){return Fv(n)?t.getInternalName(e):t.createPropertyAccessExpression(t.getInternalName(e),"prototype")}}function _q(e){const{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:r,endLexicalEnvironment:i,hoistFunctionDeclaration:o,hoistVariableDeclaration:a}=e,s=e.getCompilerOptions(),c=vk(s),l=e.getEmitResolver(),u=e.onSubstituteNode;let d,p,f,m,g,h,y,v,b,x;e.onSubstituteNode=function(e,n){if(n=u(e,n),1===e)return function(e){if(VN(e))return function(e){if(!Wl(e)&&d&&d.has(gc(e))){const n=_c(e);if(VN(n)&&n.parent){const r=l.getReferencedValueDeclaration(n);if(r){const n=p[OJ(r)];if(n){const r=FT(cI(t.cloneNode(n),n),n.parent);return _w(r,e),gw(r,e),r}}}}return e}(e);return e}(n);return n};let k,S,T,C,w,N,F,E,P,A,I,O,L=1,j=0,R=0;return RJ(e,(function(t){if(t.isDeclarationFile||!(2048&t.transformFlags))return t;const n=dJ(t,M,e);return Nw(n,e.readEmitHelpers()),n}));function M(t){const n=t.transformFlags;return m?function(t){switch(t.kind){case 246:case 247:return function(t){return m?(ae(),t=dJ(t,M,e),ce(),t):dJ(t,M,e)}(t);case 255:return function(t){m&&ne({kind:2,isScript:!0,breakLabel:-1});t=dJ(t,M,e),m&&le();return t}(t);case 256:return function(t){m&&ne({kind:4,isScript:!0,labelText:gc(t.label),breakLabel:-1});t=dJ(t,M,e),m&&_e();return t}(t);default:return B(t)}}(t):f?B(t):o_(t)&&t.asteriskToken?function(e){switch(e.kind){case 262:return J(e);case 218:return z(e);default:return _n.failBadSyntaxKind(e)}}(t):2048&n?dJ(t,M,e):t}function B(r){switch(r.kind){case 262:return J(r);case 218:return z(r);case 177:case 178:return function(t){const n=f,r=m;return f=!1,m=!1,t=dJ(t,M,e),f=n,m=r,t}(r);case 243:return function(e){if(1048576&e.transformFlags)return void K(e.declarationList);{if(2097152&Yd(e))return e;for(const t of e.declarationList.declarations)a(t.name);const n=ex(e.declarationList);if(0===n.length)return;return _w(t.createExpressionStatement(t.inlineExpressions(D(n,G))),e)}}(r);case 248:return function(n){m&&ae();const r=n.initializer;if(r&&KF(r)){for(const e of r.declarations)a(e.name);const i=ex(r);n=t.updateForStatement(n,i.length>0?t.inlineExpressions(D(i,G)):void 0,nJ(n.condition,M,V_),nJ(n.incrementor,M,V_),_J(n.statement,M,e))}else n=dJ(n,M,e);m&&ce();return n}(r);case 249:return function(n){m&&ae();const r=n.initializer;if(KF(r)){for(const e of r.declarations)a(e.name);n=t.updateForInStatement(n,r.declarations[0].name,_n.checkDefined(nJ(n.expression,M,V_)),_n.checkDefined(nJ(n.statement,M,pu,t.liftToBlock)))}else n=dJ(n,M,e);m&&ce();return n}(r);case 252:return function(t){if(m){const e=me(t.label&&gc(t.label));if(e>0)return be(e,t)}return dJ(t,M,e)}(r);case 251:return function(t){if(m){const e=ge(t.label&&gc(t.label));if(e>0)return be(e,t)}return dJ(t,M,e)}(r);case 253:return function(e){return n=nJ(e.expression,M,V_),r=e,cI(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 226:return function(n){const r=ny(n);switch(r){case 0:return function(n){if(X(n.right))return Xv(n.operatorToken.kind)?function(e){const t=ee(),n=Z();Se(n,_n.checkDefined(nJ(e.left,M,V_)),e.left),56===e.operatorToken.kind?Ne(t,n,e.left):we(t,n,e.left);return Se(n,_n.checkDefined(nJ(e.right,M,V_)),e.right),te(t),n}(n):28===n.operatorToken.kind?U(n):t.updateBinaryExpression(n,Y(_n.checkDefined(nJ(n.left,M,V_))),n.operatorToken,_n.checkDefined(nJ(n.right,M,V_)));return dJ(n,M,e)}(n);case 1:return function(n){const{left:r,right:i}=n;if(X(i)){let e;switch(r.kind){case 211:e=t.updatePropertyAccessExpression(r,Y(_n.checkDefined(nJ(r.expression,M,M_))),r.name);break;case 212:e=t.updateElementAccessExpression(r,Y(_n.checkDefined(nJ(r.expression,M,M_))),Y(_n.checkDefined(nJ(r.argumentExpression,M,V_))));break;default:e=_n.checkDefined(nJ(r,M,V_))}const o=n.operatorToken.kind;return KJ(o)?cI(t.createAssignment(e,cI(t.createBinaryExpression(Y(e),GJ(o),_n.checkDefined(nJ(i,M,V_))),n)),n):t.updateBinaryExpression(n,e,n.operatorToken,_n.checkDefined(nJ(i,M,V_)))}return dJ(n,M,e)}(n);default:return _n.assertNever(r)}}(r);case 356:return function(e){let n=[];for(const r of e.elements)uF(r)&&28===r.operatorToken.kind?n.push(U(r)):(X(r)&&n.length>0&&(De(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(_n.checkDefined(nJ(r,M,V_))));return t.inlineExpressions(n)}(r);case 227:return function(t){if(X(t.whenTrue)||X(t.whenFalse)){const e=ee(),n=ee(),r=Z();return Ne(e,_n.checkDefined(nJ(t.condition,M,V_)),t.condition),Se(r,_n.checkDefined(nJ(t.whenTrue,M,V_)),t.whenTrue),Te(n),te(e),Se(r,_n.checkDefined(nJ(t.whenFalse,M,V_)),t.whenFalse),te(n),r}return dJ(t,M,e)}(r);case 229:return function(e){const r=ee(),i=nJ(e.expression,M,V_);if(e.asteriskToken){!function(e,t){De(7,[e],t)}(8388608&Yd(e.expression)?i:cI(n().createValuesHelper(i),e),e)}else!function(e,t){De(6,[e],t)}(i,e);return te(r),function(e){return cI(t.createCallExpression(t.createPropertyAccessExpression(C,"sent"),void 0,[]),e)}(e)}(r);case 209:return function(e){return V(e.elements,void 0,void 0,e.multiLine)}(r);case 210:return function(e){const n=e.properties,r=e.multiLine,i=Q(n),o=Z();Se(o,t.createObjectLiteralExpression(rJ(n,M,v_,0,i),r));const a=Ce(n,s,[],i);return a.push(r?pA(FT(cI(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=nJ(YP(t,e,i,o),M,V_);return a&&(r&&pA(a),n.push(a)),n}}(r);case 212:return function(n){if(X(n.argumentExpression))return t.updateElementAccessExpression(n,Y(_n.checkDefined(nJ(n.expression,M,M_))),_n.checkDefined(nJ(n.argumentExpression,M,V_)));return dJ(n,M,e)}(r);case 213:return function(n){if(!lf(n)&&_(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(n.expression,a,c,!0);return tw(cI(t.createFunctionApplyCall(Y(_n.checkDefined(nJ(e,M,M_))),r,V(n.arguments)),n),n)}return dJ(n,M,e)}(r);case 214:return function(n){if(_(n.arguments,X)){const{target:e,thisArg:r}=t.createCallBinding(t.createPropertyAccessExpression(n.expression,"bind"),a);return tw(cI(t.createNewExpression(t.createFunctionApplyCall(Y(_n.checkDefined(nJ(e,M,V_))),r,V(n.arguments,t.createVoidZero())),void 0,[]),n),n)}return dJ(n,M,e)}(r);default:return dJ(r,M,e)}}(r):4196352&r.transformFlags?dJ(r,M,e):r}}function J(n){if(n.asteriskToken)n=tw(cI(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=dJ(n,M,e),f=t,m=r}return f?void o(n):n}function z(n){if(n.asteriskToken)n=tw(cI(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=dJ(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,D=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,N=!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;e<k.length;e++)Ae(e);Fe(k.length)}else Fe(0);if(E){const e=t.createPropertyAccessExpression(C,"label");return[pA(t.createSwitchStatement(e,t.createCaseBlock(E)))]}if(P)return P;return[]}();return n().createGeneratorHelper(ow(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,C)],void 0,t.createBlock(e,e.length>0)),1048576))}();return Id(o,i()),o.push(t.createReturnStatement(V)),f=a,m=s,g=c,h=l,y=_,v=u,b=d,x=p,L=D,k=B,S=J,T=z,C=q,cI(t.createBlock(o,e.multiLine),e)}function U(e){let n=[];return r(e.left),r(e.right),t.inlineExpressions(n);function r(e){uF(e)&&28===e.operatorToken.kind?(r(e.left),r(e.right)):(X(e)&&n.length>0&&(De(1,[t.createExpressionStatement(t.inlineExpressions(n))]),n=[]),n.push(_n.checkDefined(nJ(e,M,V_))))}}function V(e,n,r,i){const o=Q(e);let a;if(o>0){a=Z();const r=rJ(e,M,V_,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(nJ(r,M,V_))),e}),[],o);return a?t.createArrayConcatCall(a,[t.createArrayLiteralExpression(s,i)]):cI(t.createArrayLiteralExpression(n?[n,...s]:s,i),r)}function W(e,t=0){const n=e.length;for(let r=t;r<n;r++)H(e[r])}function $(e){DF(e)?W(e.statements):H(e)}function H(n){const r=m;m||(m=X(n)),function(n){switch(n.kind){case 241:return function(e){X(e)?W(e.statements):ke(nJ(e,M,pu))}(n);case 244:return function(e){ke(nJ(e,M,pu))}(n);case 245:return function(e){if(X(e))if(X(e.thenStatement)||X(e.elseStatement)){const t=ee(),n=e.elseStatement?ee():void 0;Ne(e.elseStatement?n:t,_n.checkDefined(nJ(e.expression,M,V_)),e.expression),$(e.thenStatement),e.elseStatement&&(Te(t),te(n),$(e.elseStatement)),te(t)}else ke(nJ(e,M,pu));else ke(nJ(e,M,pu))}(n);case 246:return function(e){if(X(e)){const t=ee(),n=ee();se(t),te(n),$(e.statement),te(t),we(n,_n.checkDefined(nJ(e.expression,M,V_))),ce()}else ke(nJ(e,M,pu))}(n);case 247:return function(e){if(X(e)){const t=ee(),n=se(t);te(t),Ne(n,_n.checkDefined(nJ(e.expression,M,V_))),$(e.statement),Te(t),ce()}else ke(nJ(e,M,pu))}(n);case 248:return function(e){if(X(e)){const n=ee(),r=ee(),i=se(r);if(e.initializer){const n=e.initializer;KF(n)?K(n):ke(cI(t.createExpressionStatement(_n.checkDefined(nJ(n,M,V_))),n))}te(n),e.condition&&Ne(i,_n.checkDefined(nJ(e.condition,M,V_))),$(e.statement),te(r),e.incrementor&&ke(cI(t.createExpressionStatement(_n.checkDefined(nJ(e.incrementor,M,V_))),e.incrementor)),Te(n),ce()}else ke(nJ(e,M,pu))}(n);case 249:return function(e){if(X(e)){const n=Z(),r=Z(),i=Z(),o=t.createLoopVariable(),s=e.initializer;a(o),Se(n,_n.checkDefined(nJ(e.expression,M,V_))),Se(r,t.createArrayLiteralExpression()),ke(t.createForInStatement(i,n,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(r,"push"),void 0,[i])))),Se(o,t.createNumericLiteral(0));const c=ee(),l=ee(),_=se(l);let u;if(te(c),Ne(_,t.createLessThan(o,t.createPropertyAccessExpression(r,"length"))),Se(i,t.createElementAccessExpression(r,o)),Ne(l,t.createBinaryExpression(i,103,n)),KF(s)){for(const e of s.declarations)a(e.name);u=t.cloneNode(s.declarations[0].name)}else u=_n.checkDefined(nJ(s,M,V_)),_n.assert(M_(u));Se(u,i),$(e.statement),te(l),ke(t.createExpressionStatement(t.createPostfixIncrement(o))),Te(c),ce()}else ke(nJ(e,M,pu))}(n);case 251:return function(e){const t=ge(e.label?gc(e.label):void 0);t>0?Te(t,e):ke(e)}(n);case 252:return function(e){const t=me(e.label?gc(e.label):void 0);t>0?Te(t,e):ke(e)}(n);case 253:return function(e){t=nJ(e.expression,M,V_),n=e,De(8,[t],n);var t,n}(n);case 254: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(nJ(e.expression,M,V_)))),$(e.statement),function(){_n.assert(1===oe());te(re().endLabel)}()):ke(nJ(e,M,pu))}(n);case 255: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(nJ(e.expression,M,V_))),a=[];let s=-1;for(let e=0;e<r;e++){const t=n.clauses[e];a.push(ee()),297===t.kind&&-1===s&&(s=e)}let c=0,l=[];for(;c<r;){let e=0;for(let i=c;i<r;i++){const r=n.clauses[i];if(296===r.kind){if(X(r.expression)&&l.length>0)break;l.push(t.createCaseClause(_n.checkDefined(nJ(r.expression,M,V_)),[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;e<r;e++)te(a[e]),W(n.clauses[e].statements);le()}else ke(nJ(e,M,pu))}(n);case 256:return function(e){X(e)?(!function(e){const t=ee();ne({kind:4,isScript:!1,labelText:e,breakLabel:t})}(gc(e.label)),$(e.statement),_e()):ke(nJ(e,M,pu))}(n);case 257:return function(e){n=_n.checkDefined(nJ(e.expression??t.createVoidZero(),M,V_)),r=e,De(9,[n],r);var n,r}(n);case 258:return function(n){X(n)?(function(){const e=ee(),t=ee();te(e),ne({kind:0,state:0,startLabel:e,endLabel:t}),xe()}(),$(n.tryBlock),n.catchClause&&(!function(n){let r;if(_n.assert(0===oe()),Wl(n.name))r=n.name,a(n.name);else{const t=gc(n.name);r=Z(t),d||(d=new Map,p=[],e.enableSubstitution(80)),d.set(t,!0),p[OJ(n)]=r}const i=ie();_n.assert(i.state<1);Te(i.endLabel);const o=ee();te(o),i.state=1,i.catchVariable=r,i.catchLabel=o,Se(r,t.createCallExpression(t.createPropertyAccessExpression(C,"sent"),void 0,[])),xe()}(n.catchClause.variableDeclaration),$(n.catchClause.block)),n.finallyBlock&&(!function(){_n.assert(0===oe());const e=ie();_n.assert(e.state<2);Te(e.endLabel);const t=ee();te(t),e.state=2,e.finallyLabel=t}(),$(n.finallyBlock)),function(){_n.assert(0===oe());const e=re();e.state<2?Te(e.endLabel):De(10);te(e.endLabel),xe(),e.state=3}()):ke(dJ(n,M,e))}(n);default:ke(nJ(n,M,pu))}}(n),m=r}function K(e){for(const n of e.declarations){const e=t.cloneNode(n.name);gw(e,n.name),a(e)}const n=ex(e),r=n.length;let i=0,o=[];for(;i<r;){for(let e=i;e<r;e++){const t=n[e];if(X(t.initializer)&&o.length>0)break;o.push(G(t))}o.length&&(ke(t.createExpressionStatement(t.inlineExpressions(o))),i+=o.length,o=[])}}function G(e){return _w(t.createAssignment(_w(t.cloneNode(e.name),e.name),_n.checkDefined(nJ(e.initializer,M,V_))),e)}function X(e){return!!e&&!!(1048576&e.transformFlags)}function Q(e){const t=e.length;for(let n=0;n<t;n++)if(X(e[n]))return n;return-1}function Y(e){if(Wl(e)||8192&Yd(e))return e;const n=t.createTempVariable(a);return Se(n,e,e),n}function Z(e){const n=e?t.createUniqueName(e):t.createTempVariable(void 0);return a(n),n}function ee(){b||(b=[]);const e=L;return L++,b[e]=-1,e}function te(e){_n.assert(void 0!==b,"No labels were defined."),b[e]=k?k.length:0}function ne(e){g||(g=[],y=[],h=[],v=[]);const t=y.length;return y[t]=0,h[t]=k?k.length:0,g[t]=e,v.push(e),t}function re(){const e=ie();if(void 0===e)return _n.fail("beginBlock was never called.");const t=y.length;return y[t]=1,h[t]=k?k.length:0,g[t]=e,v.pop(),e}function ie(){return he(v)}function oe(){const e=ie();return e&&e.kind}function ae(){ne({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function se(e){const t=ee();return ne({kind:3,isScript:!1,breakLabel:t,continueLabel:e}),t}function ce(){_n.assert(3===oe());const e=re(),t=e.breakLabel;e.isScript||te(t)}function le(){_n.assert(2===oe());const e=re(),t=e.breakLabel;e.isScript||te(t)}function _e(){_n.assert(4===oe());const e=re();e.isScript||te(e.breakLabel)}function ue(e){return 2===e.kind||3===e.kind}function de(e){return 4===e.kind}function pe(e){return 3===e.kind}function fe(e,t){for(let n=t;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 kw(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"),cI(t.createReturnStatement(t.createArrayLiteralExpression([ve(3),ye(e)])),n)}function xe(){De(0)}function ke(e){e?De(1,[e]):xe()}function Se(e,t,n){De(2,[e,t],n)}function Te(e,t){De(3,[e],t)}function we(e,t,n){De(4,[e,t],n)}function Ne(e,t,n){De(5,[e,t],n)}function De(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<b.length;t++)if(b[t]===e&&x[t])return!0;return!1})(e)&&(Pe(e),O=void 0,Oe(void 0,void 0)),P&&E&&Ee(!1),function(){if(void 0!==x&&void 0!==w)for(let e=0;e<w.length;e++){const t=w[e];if(void 0!==t)for(const n of t){const t=x[n];if(void 0!==t)for(const n of t)n.text=String(e)}}}()}function Ee(e){if(E||(E=[]),P){if(O)for(let e=O.length-1;e>=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<b.length;t++)b[t]===e&&(P&&(Ee(!N),N=!1,F=!1,R++),void 0===w&&(w=[]),void 0===w[R]?w[R]=[t]:w[R].push(t))}function Ae(e){if(Pe(e),function(e){if(g)for(;j<y.length&&h[j]<=e;j++){const e=g[j],t=y[j];switch(e.kind){case 0:0===t?(A||(A=[]),P||(P=[]),A.push(I),I=e):1===t&&(I=A.pop());break;case 1:0===t?(O||(O=[]),O.push(e)):1===t&&O.pop()}}}(e),N)return;N=!1,F=!1;const n=k[e];if(0===n)return;if(10===n)return N=!0,void Ie(t.createReturnStatement(t.createArrayLiteralExpression([ve(7)])));const r=S[e];if(1===n)return Ie(r[0]);const i=T[e];switch(n){case 2:return o=r[0],a=r[1],s=i,void Ie(cI(t.createExpressionStatement(t.createAssignment(o,a)),s));case 3:return function(e,n){N=!0,Ie(ow(cI(t.createReturnStatement(t.createArrayLiteralExpression([ve(3),ye(e)])),n),768))}(r[0],i);case 4:return function(e,n,r){Ie(ow(t.createIfStatement(n,ow(cI(t.createReturnStatement(t.createArrayLiteralExpression([ve(3),ye(e)])),r),768)),1))}(r[0],r[1],i);case 5:return function(e,n,r){Ie(ow(t.createIfStatement(t.createLogicalNot(n),ow(cI(t.createReturnStatement(t.createArrayLiteralExpression([ve(3),ye(e)])),r),768)),1))}(r[0],r[1],i);case 6:return function(e,n){N=!0,Ie(ow(cI(t.createReturnStatement(t.createArrayLiteralExpression(e?[ve(4),e]:[ve(4)])),n),768))}(r[0],i);case 7:return function(e,n){N=!0,Ie(ow(cI(t.createReturnStatement(t.createArrayLiteralExpression([ve(5),e])),n),768))}(r[0],i);case 8:return Oe(r[0],i);case 9:return function(e,n){N=!0,F=!0,Ie(cI(t.createThrowStatement(e),n))}(r[0],i)}var o,a,s}function Ie(e){e&&(P?P.push(e):P=[e])}function Oe(e,n){N=!0,F=!0,Ie(ow(cI(t.createReturnStatement(t.createArrayLiteralExpression(e?[ve(2),e]:[ve(2)])),n),768))}}function uq(e){const{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,a=e.getCompilerOptions(),c=e.getEmitResolver(),_=e.getEmitHost(),u=vk(a),d=bk(a),p=e.onSubstituteNode,f=e.onEmitNode;e.onSubstituteNode=function(e,n){if((n=p(e,n)).id&&v[n.id])return n;if(1===e)return function(e){switch(e.kind){case 80:return Z(e);case 213:return function(e){if(VN(e.expression)){const n=Z(e.expression);if(v[$B(n)]=!0,!(VN(n)||8192&Yd(e.expression)))return cw(t.updateCallExpression(e,n,void 0,e.arguments),16)}return e}(e);case 215:return function(e){if(VN(e.tag)){const n=Z(e.tag);if(v[$B(n)]=!0,!(VN(n)||8192&Yd(e.tag)))return cw(t.updateTaggedTemplateExpression(e,n,void 0,e.template),16)}return e}(e);case 226:return function(e){if(tb(e.operatorToken.kind)&&VN(e.left)&&(!Wl(e.left)||Hl(e.left))&&!tA(e.left)){const t=ee(e.left);if(t){let n=e;for(const r of t)v[$B(n)]=!0,n=Q(r,n,e);return n}}return e}(e)}return e}(n);if(qE(n))return function(e){const n=e.name,r=Z(n);if(r!==n){if(e.objectAssignmentInitializer){const i=t.createAssignment(r,e.objectAssignmentInitializer);return cI(t.createPropertyAssignment(n,i),e)}return cI(t.createPropertyAssignment(n,r),e)}return e}(n);return n},e.onEmitNode=function(e,t,n){307===t.kind?(g=t,h=m[OJ(g)],f(e,t,n),g=void 0,h=void 0):f(e,t,n)},e.enableSubstitution(213),e.enableSubstitution(215),e.enableSubstitution(80),e.enableSubstitution(226),e.enableSubstitution(304),e.enableEmitNotification(307);const m=[];let g,h,y;const v=[];let b;return RJ(e,(function(t){if(t.isDeclarationFile||!(gp(t,a)||8388608&t.transformFlags||Zp(t)&&jk(a)&&a.outFile))return t;g=t,h=zJ(e,t),m[OJ(t)]=h,a.rewriteRelativeImportExtensions&&FC(t,!1,!1,(e=>{ju(e.arguments[0])&&!xg(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!(LS(g.fileName)&&g.commonJsModuleIndicator&&(!g.externalModuleIndicator||!0===g.externalModuleIndicator))&&!(h.exportEquals||!VI(g))}function k(n){r();const o=[],s=zk(a,"alwaysStrict")||VI(g),c=t.copyPrologue(n.statements,o,s&&!Zp(n),F);if(x()&&re(o,G()),V(h.exportedNames)){const e=50;for(let n=0;n<h.exportedNames.length;n+=e)re(o,t.createExpressionStatement(Ce(h.exportedNames.slice(n,n+e),((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(gc(n))),e)),t.createVoidZero())))}for(const e of h.exportedFunctions)$(o,e);re(o,nJ(h.externalHelpersImportDeclaration,F,pu)),ae(o,rJ(n.statements,F,pu,c)),D(o,!1),Id(o,i());const l=t.updateSourceFile(n,cI(t.createNodeArray(o),n.statements));return Nw(l,e.readEmitHelpers()),l}function S(n){const r=t.createIdentifier("define"),i=vA(t,n,_,a),o=Zp(n)&&n,{aliasedModuleNames:c,unaliasedModuleNames:l,importAliasNames:u}=C(n,!0),d=t.updateSourceFile(n,cI(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,N(n))]))]),n.statements));return Nw(d,e.readEmitHelpers()),d}function T(n){const{aliasedModuleNames:r,unaliasedModuleNames:i,importAliasNames:o}=C(n,!1),s=vA(t,n,_,a),c=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"factory")],void 0,cI(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")]))]),ow(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,cI(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,N(n))]))]),n.statements));return Nw(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=yA(t,e,g,_,c,a),l=hA(t,e,g);s&&(n&&l?(ow(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(iE(e)||hE(e)||!yA(t,e,g,_,c,a))return;const n=hA(t,e,g),r=B(e,n);return r!==n?t.createExpressionStatement(t.createAssignment(n,r)):void 0}function N(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(gc(n))),e)),t.createVoidZero())));for(const e of h.exportedFunctions)$(n,e);re(n,nJ(h.externalHelpersImportDeclaration,F,pu)),2===d&&ae(n,R(h.externalImports,w)),ae(n,rJ(e.statements,F,pu,o)),D(n,!0),Id(n,i());const a=t.createBlock(n,!0);return b&&ww(a,dq),a}function D(e,n){if(h.exportEquals){const r=nJ(h.exportEquals.expression,A,V_);if(r)if(n){const n=t.createReturnStatement(r);cI(n,h.exportEquals),ow(n,3840),e.push(n)}else{const n=t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),r));cI(n,h.exportEquals),ow(n,3072),e.push(n)}}}function F(e){switch(e.kind){case 272:return function(e){let n;const r=Sg(e);if(2!==d){if(!e.importClause)return tw(cI(t.createExpressionStatement(J(e)),e),e);{const i=[];r&&!Tg(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&&Tg(e)&&i.push(t.createVariableDeclaration(t.cloneNode(r.name),void 0,void 0,t.getGeneratedNameForNode(e)))),n=re(n,tw(cI(t.createVariableStatement(void 0,t.createVariableDeclarationList(i,u>=2?2:0)),e),e))}}else r&&Tg(e)&&(n=re(n,t.createVariableStatement(void 0,t.createVariableDeclarationList([tw(cI(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 VJ;n.name&&(e=H(e,r,n));const i=n.namedBindings;if(i)switch(i.kind){case 274:e=H(e,r,i);break;case 275:for(const t of i.elements)e=H(e,r,t,!0)}return e}(n,e),xe(n)}(e);case 271:return function(e){let n;_n.assert(Tm(e),"import= for internal module references should be handled in an earlier transformer."),2!==d?n=Dv(e,32)?re(n,tw(cI(t.createExpressionStatement(Q(e.name,J(e))),e),e)):re(n,tw(cI(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(e.name),void 0,void 0,J(e))],u>=2?2:0)),e),e)):Dv(e,32)&&(n=re(n,tw(cI(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 VJ,t)}(n,e),xe(n)}(e);case 278:return function(e){if(!e.moduleSpecifier)return;const r=t.getGeneratedNameForNode(e);if(e.exportClause&&yE(e.exportClause)){const i=[];2!==d&&i.push(tw(cI(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=!!Tk(a)&&!(2&Zd(e))&&Hd(s)?n().createImportDefaultHelper(r):r,l=11===s.kind?t.createElementAccessExpression(c,s):t.createPropertyAccessExpression(c,s);i.push(tw(cI(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(tw(cI(t.createExpressionStatement(Q(t.cloneNode(e.exportClause.name),function(e,t){if(!Tk(a)||2&Zd(e))return t;if(MJ(e))return n().createImportStarHelper(t);return t}(e,2!==d?J(e):Vd(e)||11===e.exportClause.name.kind?r:t.createIdentifier(gc(e.exportClause.name))))),e),e)),xe(i)}return tw(cI(t.createExpressionStatement(n().createExportStarHelper(2!==d?J(e):r)),e),e)}(e);case 277:return function(e){if(e.isExportEquals)return;return X(t.createIdentifier("default"),nJ(e.expression,A,V_),e,!0)}(e);default:return E(e)}}function E(n){switch(n.kind){case 243:return function(n){let r,i,o;if(Dv(n,32)){let e,a=!1;for(const r of n.declarationList.declarations)if(VN(r.name)&&tA(r.name))if(e||(e=rJ(n.modifiers,Y,Zl)),r.initializer){i=re(i,t.updateVariableDeclaration(r,r.name,void 0,void 0,Q(r.name,nJ(r.initializer,A,V_))))}else i=re(i,r);else if(r.initializer)if(!k_(r.name)&&(iF(r.initializer)||rF(r.initializer)||gF(r.initializer))){const e=t.createAssignment(cI(t.createPropertyAccessExpression(t.createIdentifier("exports"),r.name),r.name),t.createIdentifier(qh(r.name)));i=re(i,t.createVariableDeclaration(r.name,r.exclamationToken,r.type,nJ(r.initializer,A,V_))),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=tw(cI(t.createExpressionStatement(t.inlineExpressions(o)),n),n);a&&iw(e),r=re(r,e)}}else r=re(r,dJ(n,A,e));return r=function(e,t){return U(e,t.declarationList,!1)}(r,n),xe(r)}(n);case 262:return function(n){let r;r=Dv(n,32)?re(r,tw(cI(t.createFunctionDeclaration(rJ(n.modifiers,Y,Zl),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,rJ(n.parameters,A,cD),void 0,dJ(n.body,A,e)),n),n)):re(r,dJ(n,A,e));return xe(r)}(n);case 263:return function(n){let r;r=Dv(n,32)?re(r,tw(cI(t.createClassDeclaration(rJ(n.modifiers,Y,g_),t.getDeclarationName(n,!0,!0),void 0,rJ(n.heritageClauses,A,BE),rJ(n.members,A,__)),n),n)):re(r,dJ(n,A,e));return r=$(r,n),xe(r)}(n);case 248:return L(n,!0);case 249:return function(n){if(KF(n.initializer)&&!(7&n.initializer.flags)){const r=U(void 0,n.initializer,!0);if(V(r)){const i=nJ(n.initializer,I,eu),o=nJ(n.expression,A,V_),a=_J(n.statement,E,e),s=DF(a)?t.updateBlock(a,[...r,...a.statements]):t.createBlock([...r,a],!0);return t.updateForInStatement(n,i,o,s)}}return t.updateForInStatement(n,nJ(n.initializer,I,eu),nJ(n.expression,A,V_),_J(n.statement,E,e))}(n);case 250:return function(n){if(KF(n.initializer)&&!(7&n.initializer.flags)){const r=U(void 0,n.initializer,!0),i=nJ(n.initializer,I,eu),o=nJ(n.expression,A,V_);let a=_J(n.statement,E,e);return V(r)&&(a=DF(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,nJ(n.initializer,I,eu),nJ(n.expression,A,V_),_J(n.statement,E,e))}(n);case 246:return function(n){return t.updateDoStatement(n,_J(n.statement,E,e),nJ(n.expression,A,V_))}(n);case 247:return function(n){return t.updateWhileStatement(n,nJ(n.expression,A,V_),_J(n.statement,E,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,nJ(e.statement,E,pu,t.liftToBlock)??cI(t.createEmptyStatement(),e.statement))}(n);case 254:return function(e){return t.updateWithStatement(e,nJ(e.expression,A,V_),_n.checkDefined(nJ(e.statement,E,pu,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,nJ(e.expression,A,V_),nJ(e.thenStatement,E,pu,t.liftToBlock)??t.createBlock([]),nJ(e.elseStatement,E,pu,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,nJ(e.expression,A,V_),_n.checkDefined(nJ(e.caseBlock,E,nE)))}(n);case 269:return function(e){return t.updateCaseBlock(e,rJ(e.clauses,E,ku))}(n);case 296:return function(e){return t.updateCaseClause(e,nJ(e.expression,A,V_),rJ(e.statements,E,pu))}(n);case 297:case 258:return function(t){return dJ(t,E,e)}(n);case 299:return function(e){return t.updateCatchClause(e,e.variableDeclaration,_n.checkDefined(nJ(e.block,E,DF)))}(n);case 241:return function(t){return t=dJ(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 248:return L(r,!1);case 244:return function(e){return t.updateExpressionStatement(e,nJ(e.expression,I,V_))}(r);case 217:return function(e,n){return t.updateParenthesizedExpression(e,nJ(e.expression,n?I:A,V_))}(r,i);case 355:return function(e,n){return t.updatePartiallyEmittedExpression(e,nJ(e.expression,n?I:A,V_))}(r,i);case 213:const s=r===pe(y);if(s&&y.shift(),lf(r)&&_.shouldTransformImportCall(g))return function(r,i){if(0===d&&u>=7)return dJ(r,A,e);const s=yA(t,r,g,_,c,a),l=nJ(pe(r.arguments),A,V_),p=!s||l&&NN(l)&&l.text===s.text?l&&i?NN(l)?fz(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,$J(e)){const r=Wl(e)?e:NN(e)?t.createStringLiteralFromNode(e):ow(cI(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,rJ(e.arguments,(t=>t===e.arguments[0]?ju(t)?fz(t,a):n().createRewriteRelativeImportExtensionsHelper(t):A(t)),V_))}(r);break;case 226:if(ob(r))return function(t,n){if(O(t.left))return gz(t,A,e,0,!n,z);return dJ(t,A,e)}(r,i);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&VN(n.operand)&&!Wl(n.operand)&&!tA(n.operand)&&!Zb(n.operand)){const e=ee(n.operand);if(e){let i,a=nJ(n.operand,A,V_);lF(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(i=t.createTempVariable(o),a=t.createAssignment(i,a),cI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),cI(a,n));for(const t of e)v[$B(a)]=!0,a=Q(t,a),cI(a,n);return i&&(v[$B(a)]=!0,a=t.createComma(a,i),cI(a,n)),a}}return dJ(n,A,e)}(r,i)}return dJ(r,A,e)}function A(e){return P(e,!1)}function I(e){return P(e,!0)}function O(e){if(GD(e))for(const t of e.properties)switch(t.kind){case 303:if(O(t.initializer))return!0;break;case 304:if(O(t.name))return!0;break;case 305:if(O(t.expression))return!0;break;case 174:case 177:case 178:return!1;default:_n.assertNever(t,"Unhandled object member kind")}else if(KD(e)){for(const t of e.elements)if(mF(t)){if(O(t.expression))return!0}else if(O(t))return!0}else if(VN(e))return l(ee(e))>(nA(e)?1:0);return!1}function L(n,r){if(r&&n.initializer&&KF(n.initializer)&&!(7&n.initializer.flags)){const i=U(void 0,n.initializer,!1);if(i){const o=[],a=nJ(n.initializer,I,KF),s=t.createVariableStatement(void 0,a);o.push(s),ae(o,i);const c=nJ(n.condition,A,V_),l=nJ(n.incrementor,I,V_),_=_J(n.statement,r?E:A,e);return o.push(t.updateForStatement(n,void 0,c,l,_)),o}}return t.updateForStatement(n,nJ(n.initializer,I,eu),nJ(n.condition,A,V_),nJ(n.incrementor,I,V_),_J(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&&ow(l,16));const _=t.createNewExpression(t.createIdentifier("Promise"),void 0,[l]);return Tk(a)?t.createCallExpression(t.createPropertyAccessExpression(_,t.createIdentifier("then")),void 0,[n().createImportStarCallbackHelper()]):_}function M(e,r){const i=e&&!HJ(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]:[]);Tk(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!Tk(a)||2&Zd(e)?t:BJ(e)?n().createImportStarHelper(t):JJ(e)?n().createImportDefaultHelper(t):t}function J(e){const n=yA(t,e,g,_,c,a),r=[];return n&&r.push(fz(n,a)),t.createCallExpression(t.createIdentifier("require"),void 0,r)}function z(e,n,r){const i=ee(e);if(i){let o=nA(e)?n:t.createAssignment(e,n);for(const e of i)ow(o,8),o=Q(e,o,r);return o}return t.createAssignment(e,n)}function q(n){return k_(n.name)?gz(nJ(n,A,tx),A,e,0,!1,z):t.createAssignment(cI(t.createPropertyAccessExpression(t.createIdentifier("exports"),n.name),n.name),n.initializer?nJ(n.initializer,A,V_):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(k_(t.name))for(const r of t.name.elements)hF(r)||(e=W(e,r,n));else Wl(t.name)||HF(t)&&!t.initializer&&!n||(e=H(e,new VJ,t));return e}function $(e,n){if(h.exportEquals)return e;const r=new VJ;if(Dv(n,32)){e=K(e,r,Dv(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 ow(e,2097152),e}function X(e,n,r,i,o){const a=cI(t.createExpressionStatement(Q(e,n,void 0,o)),r);return pA(a),i||ow(a,3072),a}function Q(e,n,r,i){return cI(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&Yd(e)){const n=fA(g);return n?t.createPropertyAccessExpression(n,e):e}if((!Wl(e)||64&e.emitNode.autoGenerate.flags)&&!tA(e)){const i=c.getReferencedExportContainer(e,nA(e));if(i&&307===i.kind)return cI(t.createPropertyAccessExpression(t.createIdentifier("exports"),t.cloneNode(e)),e);const o=c.getReferencedImportDeclaration(e);if(o){if(aE(o))return cI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default")),e);if(mE(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 cI(11===i.kind?t.createElementAccessExpression(a,t.cloneNode(i)):t.createPropertyAccessExpression(a,t.cloneNode(i)),e)}}}return e}function ee(e){if(Wl(e)){if(Hl(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[OJ(t)];const n=new Set,r=c.getReferencedValueDeclarations(e);if(r){for(const e of r){const t=null==h?void 0:h.exportedBindings[OJ(e)];if(t)for(const e of t)n.add(e)}if(n.size)return Ie(n)}}}}var dq={name:"typescript:dynamicimport-sync-require",scoped:!0,text:'\n            var __syncRequire = typeof module === "object" && typeof module.exports === "object";'};function pq(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&Yd(e)){const n=fA(m);return n?t.createPropertyAccessExpression(n,e):e}if(!Wl(e)&&!tA(e)){const i=a.getReferencedImportDeclaration(e);if(i){if(aE(i))return cI(t.createPropertyAccessExpression(t.getGeneratedNameForNode(i.parent),t.createIdentifier("default")),e);if(mE(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 cI(11===o.kind?t.createElementAccessExpression(a,t.cloneNode(o)):t.createPropertyAccessExpression(a,t.cloneNode(o)),e)}}}return e}(e);case 226:return function(e){if(tb(e.operatorToken.kind)&&VN(e.left)&&(!Wl(e.left)||Hl(e.left))&&!tA(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 236:return function(e){if(_f(e))return t.createPropertyAccessExpression(y,t.createIdentifier("meta"));return e}(e)}return e}(n);if(4===e)return function(e){if(304===e.kind)return function(e){var n,r;const i=e.name;if(!Wl(i)&&!tA(i)){const o=a.getReferencedImportDeclaration(i);if(o){if(aE(o))return cI(t.createPropertyAssignment(t.cloneNode(i),t.createPropertyAccessExpression(t.getGeneratedNameForNode(o.parent),t.createIdentifier("default"))),e);if(mE(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 cI(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(307===t.kind){const r=OJ(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(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(307);const u=[],d=[],p=[],f=[];let m,g,h,y,v,b,x;return RJ(e,(function(i){if(i.isDeclarationFile||!(gp(i,o)||8388608&i.transformFlags))return i;const c=OJ(i);m=i,b=i,g=u[c]=zJ(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=yA(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=zk(o,"alwaysStrict")||VI(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")))]))),nJ(g.externalHelpersImportDeclaration,T,pu);const l=rJ(e.statements,T,pu,c);ae(a,v),Id(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(278===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)Hd(e)||n.push(t.createPropertyAssignment(t.createStringLiteralFromNode(e),t.createTrue()));for(const e of g.exportedFunctions)Dv(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=vA(t,i,s,o),N=t.createArrayLiteralExpression(D(l,(e=>e.name))),F=ow(t.updateSourceFile(i,cI(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,w?[w,N,C]:[N,C]))]),i.statements)),2048);o.outFile||Ew(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([ow(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=>hA(t,e,m))),o=n?t.getGeneratedNameForNode(n):t.createUniqueName(""),a=[];for(const n of i.externalImports){const r=hA(t,n,m);switch(n.kind){case 272:if(!n.importClause)break;case 271:_n.assert(void 0!==r),a.push(t.createExpressionStatement(t.createAssignment(r,o))),Dv(n,32)&&a.push(t.createExpressionStatement(t.createCallExpression(h,void 0,[t.createStringLiteral(gc(r)),o])));break;case 278:if(_n.assert(void 0!==r),n.exportClause)if(yE(n.exportClause)){const e=[];for(const r of n.exportClause.elements)e.push(t.createPropertyAssignment(t.createStringLiteral(Wd(r.name)),t.createElementAccessExpression(o,t.createStringLiteral(Wd(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(Wd(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 272:return function(e){let n;e.importClause&&i(hA(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 274:e=L(e,r);break;case 275:for(const t of r.elements)e=L(e,t)}return e}(n,e))}(e);case 271:return function(e){let n;return _n.assert(Tm(e),"import= for internal module references should be handled in an earlier transformer."),i(hA(t,e,m)),xe(function(e,t){if(g.exportEquals)return e;return L(e,t)}(n,e))}(e);case 278:return function(e){return void _n.assertIsDefined(e)}(e);case 277:return function(e){if(e.isExportEquals)return;const n=nJ(e.expression,U,V_);return R(t.createIdentifier("default"),n,!0)}(e);default:return B(e)}}function C(e){if(!N(e.declarationList))return nJ(e,U,pu);let n;if(rf(e.declarationList)||nf(e.declarationList)){const r=rJ(e.modifiers,H,g_),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=Dv(e,32);for(const t of e.declarationList.declarations)t.initializer?r=re(r,F(t,i)):w(t);r&&(n=re(n,cI(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(k_(e.name))for(const t of e.name.elements)hF(t)||w(t);else i(t.cloneNode(e.name))}function N(e){return!(4194304&Yd(e)||307!==b.kind&&7&_c(e).flags)}function F(t,n){const r=n?E:P;return k_(t.name)?gz(t,U,e,0,!1,r):t.initializer?r(t.name,nJ(t.initializer,U,V_)):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(cI(t.createAssignment(e,n),r))):G(cI(t.createAssignment(e,n),r))}function I(e,n,r){if(g.exportEquals)return e;if(k_(n.name))for(const t of n.name.elements)hF(t)||(e=I(e,t,r));else if(!Wl(n.name)){let i;r&&(e=j(e,n.name,t.getLocalName(n)),i=gc(n.name)),e=L(e,n,i)}return e}function O(e,n){if(g.exportEquals)return e;let r;if(Dv(n,32)){const i=Dv(n,2048)?t.createStringLiteral("default"):n.name;e=j(e,i,t.getLocalName(n)),r=qh(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)Wd(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 pA(i),r||ow(i,3072),i}function M(e,n){const r=VN(e)?t.createStringLiteralFromNode(e):e;return ow(n,3072|Yd(n)),gw(t.createCallExpression(h,void 0,[r,n]),n)}function B(n){switch(n.kind){case 243:return C(n);case 262:return function(n){v=Dv(n,32)?re(v,t.updateFunctionDeclaration(n,rJ(n.modifiers,H,g_),n.asteriskToken,t.getDeclarationName(n,!0,!0),void 0,rJ(n.parameters,U,cD),void 0,nJ(n.body,U,DF))):re(v,dJ(n,U,e)),v=O(v,n)}(n);case 263:return function(e){let n;const r=t.getLocalName(e);return i(r),n=re(n,cI(t.createExpressionStatement(t.createAssignment(r,cI(t.createClassExpression(rJ(e.modifiers,H,g_),e.name,void 0,rJ(e.heritageClauses,U,BE),rJ(e.members,U,__)),e))),e)),n=O(n,e),xe(n)}(n);case 248:return J(n,!0);case 249:return function(n){const r=b;return b=n,n=t.updateForInStatement(n,z(n.initializer),nJ(n.expression,U,V_),_J(n.statement,B,e)),b=r,n}(n);case 250:return function(n){const r=b;return b=n,n=t.updateForOfStatement(n,n.awaitModifier,z(n.initializer),nJ(n.expression,U,V_),_J(n.statement,B,e)),b=r,n}(n);case 246:return function(n){return t.updateDoStatement(n,_J(n.statement,B,e),nJ(n.expression,U,V_))}(n);case 247:return function(n){return t.updateWhileStatement(n,nJ(n.expression,U,V_),_J(n.statement,B,e))}(n);case 256:return function(e){return t.updateLabeledStatement(e,e.label,nJ(e.statement,B,pu,t.liftToBlock)??t.createExpressionStatement(t.createIdentifier("")))}(n);case 254:return function(e){return t.updateWithStatement(e,nJ(e.expression,U,V_),_n.checkDefined(nJ(e.statement,B,pu,t.liftToBlock)))}(n);case 245:return function(e){return t.updateIfStatement(e,nJ(e.expression,U,V_),nJ(e.thenStatement,B,pu,t.liftToBlock)??t.createBlock([]),nJ(e.elseStatement,B,pu,t.liftToBlock))}(n);case 255:return function(e){return t.updateSwitchStatement(e,nJ(e.expression,U,V_),_n.checkDefined(nJ(e.caseBlock,B,nE)))}(n);case 269:return function(e){const n=b;return b=e,e=t.updateCaseBlock(e,rJ(e.clauses,B,ku)),b=n,e}(n);case 296:return function(e){return t.updateCaseClause(e,nJ(e.expression,U,V_),rJ(e.statements,B,pu))}(n);case 297:case 258:return function(t){return dJ(t,B,e)}(n);case 299:return function(e){const n=b;return b=e,e=t.updateCatchClause(e,e.variableDeclaration,_n.checkDefined(nJ(e.block,B,DF))),b=n,e}(n);case 241:return function(t){const n=b;return b=t,t=dJ(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,nJ(n.initializer,r?z:W,eu),nJ(n.condition,U,V_),nJ(n.incrementor,W,V_),_J(n.statement,r?B:U,e)),b=i,n}function z(e){if(function(e){return KF(e)&&N(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 nJ(e,W,eu)}function q(n,r){if(!(276828160&n.transformFlags))return n;switch(n.kind){case 248:return J(n,!1);case 244:return function(e){return t.updateExpressionStatement(e,nJ(e.expression,W,V_))}(n);case 217:return function(e,n){return t.updateParenthesizedExpression(e,nJ(e.expression,n?W:U,V_))}(n,r);case 355:return function(e,n){return t.updatePartiallyEmittedExpression(e,nJ(e.expression,n?W:U,V_))}(n,r);case 226:if(ob(n))return function(t,n){if($(t.left))return gz(t,U,e,0,!n);return dJ(t,U,e)}(n,r);break;case 213:if(lf(n))return function(e){const n=yA(t,e,m,s,a,o),r=nJ(pe(e.arguments),U,V_),i=!n||r&&NN(r)&&r.text===n.text?r:n;return t.createCallExpression(t.createPropertyAccessExpression(y,t.createIdentifier("import")),void 0,i?[i]:[])}(n);break;case 224:case 225:return function(n,r){if((46===n.operator||47===n.operator)&&VN(n.operand)&&!Wl(n.operand)&&!tA(n.operand)&&!Zb(n.operand)){const e=K(n.operand);if(e){let o,a=nJ(n.operand,U,V_);lF(n)?a=t.updatePrefixUnaryExpression(n,a):(a=t.updatePostfixUnaryExpression(n,a),r||(o=t.createTempVariable(i),a=t.createAssignment(o,a),cI(a,n)),a=t.createComma(a,t.cloneNode(n.operand)),cI(a,n));for(const t of e)a=M(t,G(a));return o&&(a=t.createComma(a,o),cI(a,n)),a}}return dJ(n,U,e)}(n,r)}return dJ(n,U,e)}function U(e){return q(e,!1)}function W(e){return q(e,!0)}function $(e){if(ib(e,!0))return $(e.left);if(mF(e))return $(e.expression);if(GD(e))return V(e.properties,$);if(KD(e))return V(e.elements,$);if(qE(e))return $(e.name);if(zE(e))return $(e.initializer);if(VN(e)){const t=a.getReferencedExportContainer(e);return void 0!==t&&307===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(!Wl(e)){const t=a.getReferencedImportDeclaration(e);if(t)return t;const n=a.getReferencedValueDeclaration(e);if(n&&(null==g?void 0:g.exportedBindings[OJ(n)]))return n;const r=a.getReferencedValueDeclarations(e);if(r)for(const e of r)if(e!==n&&(null==g?void 0:g.exportedBindings[OJ(e)]))return e;return n}}(e);if(r){const i=a.getReferencedExportContainer(e,!1);i&&307===i.kind&&(n=re(n,t.getDeclarationName(r))),n=ae(n,null==g?void 0:g.exportedBindings[OJ(r)])}else if(Wl(e)&&Hl(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[$B(e)]=!0,e}}function fq(e){const{factory:t,getEmitHelperFactory:n}=e,r=e.getEmitHost(),i=e.getEmitResolver(),o=e.getCompilerOptions(),a=vk(o),s=e.onEmitNode,c=e.onSubstituteNode;e.onEmitNode=function(e,t,n){WE(t)?((VI(t)||Sk(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(VN(n)&&8192&Yd(n))return function(e){const n=d&&fA(d);if(n)return l.add($B(e)),t.createPropertyAccessExpression(n,e);if(u){const n=gc(e);let r=u.get(n);return r||u.set(n,r=t.createUniqueName(n,48)),r}return e}(n);return n},e.enableEmitNotification(307),e.enableSubstitution(80);const l=new Set;let _,u,d,p;return RJ(e,(function(r){if(r.isDeclarationFile)return r;if(VI(r)||Sk(o)){d=r,p=void 0,o.rewriteRelativeImportExtensions&&(4194304&d.flags||Em(r))&&FC(r,!1,!1,(e=>{ju(e.arguments[0])&&!xg(e.arguments[0].text,o)||(_=re(_,e))}));let i=function(r){const i=gA(t,n(),r,o);if(i){const e=[],n=t.copyPrologue(r.statements,e);return ae(e,iJ([i],f,pu)),ae(e,rJ(r.statements,f,pu,n)),t.updateSourceFile(r,cI(t.createNodeArray(e),r.statements))}return dJ(r,f,e)}(r);return Nw(i,e.readEmitHelpers()),d=void 0,p&&(i=t.updateSourceFile(i,cI(t.createNodeArray(Od(i.statements.slice(),p)),i.statements))),!VI(r)||200===bk(o)||V(i.statements,X_)?i:t.updateSourceFile(i,cI(t.createNodeArray([...i.statements,qP(t)]),i.statements))}return r}));function f(r){switch(r.kind){case 271:return bk(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,tw(cI(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){Dv(n,32)&&(e=re(e,t.createExportDeclaration(void 0,n.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,gc(n.name))]))));return e}(n,e),xe(n)}(r):void 0;case 277:return function(e){if(e.isExportEquals){if(200===bk(o)){return tw(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),e.expression)),e)}return}return e}(r);case 278:return function(e){const n=fz(e.moduleSpecifier,o);if(void 0!==o.module&&o.module>5||!e.exportClause||!pE(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(!1,void 0,t.createNamespaceImport(i)),n,e.attributes);tw(a,e.exportClause);const s=Vd(e)?t.createExportDefault(i):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,i,r)]));return tw(s,e),[a,s]}(r);case 272:return function(e){if(!o.rewriteRelativeImportExtensions)return e;const n=fz(e.moduleSpecifier,o);if(n===e.moduleSpecifier)return e;return t.updateImportDeclaration(e,e.modifiers,e.importClause,n,e.attributes)}(r);case 213:if(r===(null==_?void 0:_[0]))return function(e){return t.updateCallExpression(e,e.expression,e.typeArguments,[ju(e.arguments[0])?fz(e.arguments[0],o):n().createRewriteRelativeImportExtensionsHelper(e.arguments[0]),...e.arguments.slice(1)])}(_.shift());break;default:if((null==_?void 0:_.length)&&Qb(r,_[0]))return dJ(r,f,e)}return r}function m(e){const n=yA(t,e,_n.checkDefined(d),r,i,o),s=[];if(n&&s.push(fz(n,o)),200===bk(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(!1,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,VN),t.createCallExpression(t.cloneNode(c),void 0,s)}}function mq(e){const t=e.onSubstituteNode,n=e.onEmitNode,r=fq(e),i=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;const a=uq(e),s=e.onSubstituteNode,c=e.onEmitNode,l=t=>e.getEmitHost().getEmitModuleFormatOfFile(t);let _;return e.onSubstituteNode=function(e,n){return WE(n)?(_=n,t(e,n)):_?l(_)>=5?i(e,n):s(e,n):t(e,n)},e.onEmitNode=function(e,t,r){WE(t)&&(_=t);if(!_)return n(e,t,r);if(l(_)>=5)return o(e,t,r);return c(e,t,r)},e.enableSubstitution(307),e.enableEmitNotification(307),function(t){return 307===t.kind?u(t):function(t){return e.factory.createBundle(D(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(WE(t)),t}}function gq(e){return HF(e)||uD(e)||_D(e)||HD(e)||wu(e)||Nu(e)||vD(e)||yD(e)||pD(e)||dD(e)||GF(e)||cD(e)||sD(e)||yF(e)||iE(e)||YF(e)||mD(e)||bD(e)||XD(e)||QD(e)||uF(e)||Dg(e)}function hq(e){return wu(e)||Nu(e)?function(t){const n=function(t){return Fv(e)?t.errorModuleName?2===t.accessibility?_a.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?_a.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?_a.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.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}:dD(e)||pD(e)?function(t){const n=function(t){return Fv(e)?t.errorModuleName?2===t.accessibility?_a.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind?t.errorModuleName?2===t.accessibility?_a.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_method_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?_a.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.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}:yq(e)}function yq(e){return HF(e)||uD(e)||_D(e)||XD(e)||QD(e)||uF(e)||HD(e)||mD(e)?t:wu(e)||Nu(e)?function(t){let n;n=178===e.kind?Fv(e)?t.errorModuleName?_a.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?_a.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:Fv(e)?t.errorModuleName?2===t.accessibility?_a.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.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?2===t.accessibility?_a.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.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}}:vD(e)||yD(e)||pD(e)||dD(e)||GF(e)||bD(e)?function(t){let n;switch(e.kind){case 180:n=t.errorModuleName?_a.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:n=t.errorModuleName?_a.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:n=t.errorModuleName?_a.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:n=Fv(e)?t.errorModuleName?2===t.accessibility?_a.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_a.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:263===e.parent.kind?t.errorModuleName?2===t.accessibility?_a.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_a.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:t.errorModuleName?_a.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:_a.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:n=t.errorModuleName?2===t.accessibility?_a.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:_a.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:_a.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}}:cD(e)?Zs(e,e.parent)&&Dv(e.parent,2)?t:function(t){const n=function(t){switch(e.parent.kind){case 176:return t.errorModuleName?2===t.accessibility?_a.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return t.errorModuleName?_a.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return t.errorModuleName?_a.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return t.errorModuleName?_a.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return Fv(e.parent)?t.errorModuleName?2===t.accessibility?_a.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?t.errorModuleName?2===t.accessibility?_a.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:t.errorModuleName?_a.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return t.errorModuleName?2===t.accessibility?_a.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:_a.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return t.errorModuleName?2===t.accessibility?_a.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:_a.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}:sD(e)?function(){let t;switch(e.parent.kind){case 263:t=_a.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:t=_a.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:t=_a.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:t=_a.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:t=_a.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:t=Fv(e.parent)?_a.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:263===e.parent.parent.kind?_a.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:_a.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:t=_a.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:t=_a.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:t=_a.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}}:yF(e)?function(){let t;t=XF(e.parent.parent)?BE(e.parent)&&119===e.parent.token?_a.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?_a.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:_a.extends_clause_of_exported_class_has_or_is_using_private_name_0:_a.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;return{diagnosticMessage:t,errorNode:e,typeName:Cc(e.parent.parent)}}:iE(e)?function(){return{diagnosticMessage:_a.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}:YF(e)||Dg(e)?function(t){return{diagnosticMessage:t.errorModuleName?_a.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:_a.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:Dg(e)?_n.checkDefined(e.typeExpression):e.type,typeName:Dg(e)?Cc(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 260===e.kind||208===e.kind?t.errorModuleName?2===t.accessibility?_a.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:_a.Exported_variable_0_has_or_is_using_private_name_1:172===e.kind||211===e.kind||212===e.kind||226===e.kind||171===e.kind||169===e.kind&&Dv(e.parent,2)?Fv(e)?t.errorModuleName?2===t.accessibility?_a.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:263===e.parent.kind||169===e.kind?t.errorModuleName?2===t.accessibility?_a.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:_a.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:_a.Public_property_0_of_exported_class_has_or_is_using_private_name_1:t.errorModuleName?_a.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:_a.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 vq(e){const t={219:_a.Add_a_return_type_to_the_function_expression,218:_a.Add_a_return_type_to_the_function_expression,174:_a.Add_a_return_type_to_the_method,177:_a.Add_a_return_type_to_the_get_accessor_declaration,178:_a.Add_a_type_to_parameter_of_the_set_accessor_declaration,262:_a.Add_a_return_type_to_the_function_declaration,180:_a.Add_a_return_type_to_the_function_declaration,169:_a.Add_a_type_annotation_to_the_parameter_0,260:_a.Add_a_type_annotation_to_the_variable_0,172:_a.Add_a_type_annotation_to_the_property_0,171:_a.Add_a_type_annotation_to_the_property_0,277:_a.Move_the_expression_in_default_export_to_a_variable_and_add_a_type_annotation_to_it},n={218:_a.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,262:_a.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,219:_a.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,174:_a.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,180:_a.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations,177:_a.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,178:_a.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations,169:_a.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations,260:_a.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations,172:_a.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,171:_a.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations,167:_a.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations,305:_a.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations,304:_a.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations,209:_a.Only_const_arrays_can_be_inferred_with_isolatedDeclarations,277:_a.Default_exports_can_t_be_inferred_with_isolatedDeclarations,230:_a.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations};return function(r){if(uc(r,BE))return Rp(r,_a.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations);if((Cf(r)||CD(r.parent))&&(e_(r)||sb(r)))return function(e){const t=Rp(e,_a.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations,Gd(e,!1));return o(e,t),t}(r);switch(_n.type(r),r.kind){case 177:case 178:return i(r);case 167:case 304:case 305:return function(e){const t=Rp(e,n[e.kind]);return o(e,t),t}(r);case 209:case 230:return function(e){const t=Rp(e,n[e.kind]);return o(e,t),t}(r);case 174:case 180:case 218:case 219:case 262:return function(e){const r=Rp(e,n[e.kind]);return o(e,r),sT(r,Rp(e,t[e.kind])),r}(r);case 208:return function(e){return Rp(e,_a.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations)}(r);case 172:case 260:return function(e){const r=Rp(e,n[e.kind]),i=Gd(e.name,!1);return sT(r,Rp(e,t[e.kind],i)),r}(r);case 169:return function(r){if(wu(r.parent))return i(r.parent);const o=e.requiresAddingImplicitUndefined(r,void 0);if(!o&&r.initializer)return a(r.initializer);const s=o?_a.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations:n[r.kind],c=Rp(r,s),l=Gd(r.name,!1);return sT(c,Rp(r,t[r.kind],l)),c}(r);case 303:return a(r.initializer);case 231:return function(e){return a(e,_a.Inference_from_class_expressions_is_not_supported_with_isolatedDeclarations)}(r);default:return a(r)}};function r(e){const t=uc(e,(e=>gE(e)||pu(e)||HF(e)||uD(e)||cD(e)));if(t)return gE(t)?t:JF(t)?uc(t,(e=>o_(e)&&!mD(e))):pu(t)?void 0:t}function i(e){const{getAccessor:r,setAccessor:i}=pv(e.symbol.declarations,e),o=Rp((wu(e)?e.parameters[0]:e)??e,n[e.kind]);return i&&sT(o,Rp(i,t[i.kind])),r&&sT(o,Rp(r,t[r.kind])),o}function o(e,n){const i=r(e);if(i){const e=gE(i)||!i.name?"":Gd(i.name,!1);sT(n,Rp(i,t[i.kind],e))}return n}function a(e,i){const o=r(e);let a;if(o){const r=gE(o)||!o.name?"":Gd(o.name,!1);o===uc(e.parent,(e=>gE(e)||(pu(e)?"quit":!nF(e)&&!tF(e)&&!vF(e))))?(a=Rp(e,i??n[o.kind]),sT(a,Rp(o,t[o.kind],r))):(a=Rp(e,i??_a.Expression_type_can_t_be_inferred_with_isolatedDeclarations),sT(a,Rp(o,t[o.kind],r)),sT(a,Rp(e,_a.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit)))}else a=Rp(e,i??_a.Expression_type_can_t_be_inferred_with_isolatedDeclarations);return a}}function bq(e,t,n){const r=e.getCompilerOptions();return k(C(Gy(e,n),Am),n)?Lq(t,e,ZC,r,[n],[Sq],!1).diagnostics:void 0}var xq=531469,kq=8;function Sq(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(N.isSymbolAccessible(e,t,n,!0))},reportInaccessibleThisError:function(){(v||b)&&e.addDiagnostic(Rp(v||b,_a.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,B(),"this"))},reportInaccessibleUniqueSymbolError:function(){(v||b)&&e.addDiagnostic(Rp(v||b,_a.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,B(),"unique symbol"))},reportCyclicStructureError:function(){(v||b)&&e.addDiagnostic(Rp(v||b,_a.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(sT(Rp(v||b,_a.Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected,t),...HF((v||b).parent)?[Rp(v||b,_a.Add_a_type_annotation_to_the_variable_0,B())]:[]))},reportLikelyUnsafeImportRequiredError:function(t){(v||b)&&e.addDiagnostic(Rp(v||b,_a.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(Rp(v||b,_a.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=>yd(e)===t)),a=C(r.declarations,(e=>yd(e)!==t));if(o&&a)for(const t of a)e.addDiagnostic(sT(Rp(t,_a.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Rp(o,_a.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))},reportNonSerializableProperty:function(t){(v||b)&&e.addDiagnostic(Rp(v||b,_a.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 N=e.getEmitResolver(),F=e.getCompilerOptions(),E=vq(N),{stripInternal:I,isolatedDeclarations:O}=F;return function(s){if(307===s.kind&&s.isDeclarationFile)return s;if(308===s.kind){u=!0,S=[],T=[],w=[];let l=!1;const _=m.createBundle(D(s.sourceFiles,(s=>{if(s.isDeclarationFile)return;if(l=l||s.hasNoDefaultLib,x=s,n=s,r=void 0,o=!1,i=new Map,a=t,p=!1,f=!1,h(s),Yp(s)||Zp(s)){d=!1,c=!1;const t=Fm(s)?m.createNodeArray(J(s)):rJ(s.statements,le,pu);return m.updateSourceFile(s,[m.createModuleDeclaration([m.createModifier(138)],m.createStringLiteral(My(e.getEmitHost(),s)),m.createModuleBlock(cI(m.createNodeArray(ae(t)),s.statements)))],!0,[],[],!1,[])}c=!0;const _=Fm(s)?m.createNodeArray(J(s)):rJ(s.statements,le,pu);return m.updateSourceFile(s,ae(_),!0,[],[],!1,[])}))),y=Fo(Lo(qq(s,g,!0).declarationFilePath));return _.syntheticFileReferences=C(y),_.syntheticTypeReferences=v(),_.syntheticLibReferences=b(),_.hasNoDefaultLib=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=rJ(s.statements,le,pu);l=cI(m.createNodeArray(ae(e)),s.statements),VI(s)&&(!d||p&&!f)&&(l=cI(m.createNodeArray([...l,qP(m)]),l))}const _=Fo(Lo(qq(s,g,!0).declarationFilePath));return m.updateSourceFile(s,l,!0,C(_),v(),s.hasNoDefaultLib,b());function h(e){S=$(S,D(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=qq(r,g,!0);i=e.declarationFilePath||e.jsFilePath||r.fileName}if(!i)return;const o=aa(e,i,g.getCurrentDirectory(),g.getCanonicalFileName,!1),a=y(n);return a.fileName=o,a}))}};function L(t){N.getPropertiesOfContainerFunction(t).forEach((t=>{if(_C(t.valueDeclaration)){const n=uF(t.valueDeclaration)?t.valueDeclaration.left:t.valueDeclaration;e.addDiagnostic(Rp(n,_a.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)&&yd(t)===x&&(HF(t)&&N.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(Rp(t.errorNode||n.errorNode,n.diagnosticMessage,Gd(n.typeName),t.errorSymbolName,t.errorModuleName)):e.addDiagnostic(Rp(t.errorNode||n.errorNode,n.diagnosticMessage,t.errorSymbolName,t.errorModuleName)),!0}return!1}function B(){return v?Pp(v):b&&Cc(b)?Pp(Cc(b)):b&&gE(b)?b.isExportEquals?"export=":"default":"(Missing)"}function J(e){const t=a;a=t=>t.errorNode&&gq(t.errorNode)?yq(t.errorNode)(t):{diagnosticMessage:t.errorModuleName?_a.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:_a.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:t.errorNode||e};const n=N.getDeclarationStatementsForSourceFile(e,xq,kq,y);return a=t,n}function z(e){return 80===e.kind?e:207===e.kind?m.updateArrayBindingPattern(e,rJ(e.elements,t,T_)):m.updateObjectBindingPattern(e,rJ(e.elements,t,HD));function t(e){return 232===e.kind?e:(e.propertyName&&aD(e.propertyName)&&sb(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=yq(e));const r=m.updateParameterDeclaration(e,function(e,t,n,r){return e.createModifiersFromModifierFlags(Tq(t,n,r))}(m,e,t),e.dotDotDotToken,z(e.name),N.isOptionalParameter(e)?e.questionToken||m.createToken(58):void 0,H(e,!0),W(e));return o||(a=n),r}function U(e){return Cq(e)&&!!e.initializer&&N.isLiteralConstDeclaration(pc(e))}function W(e){if(U(e)){return xC(kC(e.initializer))||j(e),N.createLiteralConstValue(pc(e,Cq),y)}}function H(e,t){if(!t&&Nv(e,2))return;if(U(e))return;if(!gE(e)&&!HD(e)&&e.type&&(!cD(e)||!N.requiresAddingImplicitUndefined(e,n)))return nJ(e.type,ce,b_);const r=v;let i,s;return v=e.name,o||(i=a,gq(e)&&(a=yq(e))),SC(e)?s=N.createTypeOfDeclaration(e,n,xq,kq,y):r_(e)?s=N.createReturnTypeOfSignatureDeclaration(e,n,xq,kq,y):_n.assertNever(e),v=r,o||(a=i),s??m.createKeywordTypeNode(133)}function K(e){switch((e=pc(e)).kind){case 262:case 267:case 264:case 263:case 265:case 266:return!N.isDeclarationVisible(e);case 260:return!G(e);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function G(e){return!hF(e)&&(k_(e.name)?V(e.name.elements,G):N.isDeclarationVisible(e))}function X(e,t,n){if(Nv(e,2))return m.createNodeArray();const r=D(t,(e=>q(e,n)));return r?m.createNodeArray(r,t.hasTrailingComma):m.createNodeArray()}function Q(e,t){let n;if(!t){const t=sv(e);t&&(n=[q(t)])}if(hD(e)){let r;if(!t){const t=ov(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:rJ(t,ce,sD)}function Z(e){return WE(e)||YF(e)||eE(e)||XF(e)||QF(e)||r_(e)||bD(e)||JD(e)}function ee(e,t){M(N.isEntityNameVisible(e,t))}function ne(e,t){return Du(e)&&Du(t)&&(e.jsDoc=t.jsDoc),gw(e,mw(t))}function ie(t,n){if(n){if(d=d||267!==t.kind&&205!==t.kind,ju(n)&&u){const n=Jy(e.getEmitHost(),N,t);if(n)return m.createStringLiteral(n)}return n}}function oe(e){const t=aV(e);return e&&void 0!==t?e:void 0}function ae(e){for(;l(r);){const e=r.shift();if(!Cp(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&&WE(e.parent)&&!(VI(e.parent)&&u);const n=de(e);c=t,i.set(OJ(e),n)}return rJ(e,(function(e){if(Cp(e)){const t=OJ(e);if(i.has(t)){const n=i.get(t);return i.delete(t),n&&((Xe(n)?V(n,G_):G_(n))&&(p=!0),WE(e.parent)&&(Xe(n)?V(n,X_):X_(n))&&(d=!0)),n}}return e}),pu)}function ce(t){if(fe(t))return;if(_u(t)){if(K(t))return;if(Mh(t))if(O){if(!N.isDefinitelyReferenceToGlobalSymbolObject(t.name.expression)){if(XF(t.parent)||GD(t.parent))return void e.addDiagnostic(Rp(t,_a.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations));if((QF(t.parent)||wD(t.parent))&&!sb(t.name.expression))return void e.addDiagnostic(Rp(t,_a.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations))}}else if(!N.isLateBound(pc(t))||!sb(t.name.expression))return}if(r_(t)&&N.isImplementationOfOverload(t))return;if(NF(t))return;let r;Z(t)&&(r=n,n=t);const i=a,s=gq(t),c=o;let l=(187===t.kind||200===t.kind)&&265!==t.parent.kind;if((pD(t)||dD(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=yq(t)),CD(t)&&ee(t.exprName,n),l&&(o=!0),function(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}(t))switch(t.kind){case 233:{(e_(t.expression)||sb(t.expression))&&ee(t.expression,n);const r=dJ(t,ce,e);return u(m.updateExpressionWithTypeArguments(r,r.expression,r.typeArguments))}case 183:{ee(t.typeName,n);const r=dJ(t,ce,e);return u(m.updateTypeReferenceNode(r,r.typeName,r.typeArguments))}case 180:return u(m.updateConstructSignature(t,Y(t,t.typeParameters),X(t,t.parameters),H(t)));case 176:return u(m.createConstructorDeclaration(ge(t),X(t,t.parameters,0),void 0));case 174:if(WN(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 177:return WN(t.name)?u(void 0):u(m.updateGetAccessorDeclaration(t,ge(t),t.name,Q(t,Nv(t,2)),H(t),void 0));case 178:return WN(t.name)?u(void 0):u(m.updateSetAccessorDeclaration(t,ge(t),t.name,Q(t,Nv(t,2)),void 0));case 172:return WN(t.name)?u(void 0):u(m.updatePropertyDeclaration(t,ge(t),t.name,t.questionToken,H(t),W(t)));case 171:return WN(t.name)?u(void 0):u(m.updatePropertySignature(t,ge(t),t.name,t.questionToken,H(t)));case 173:return WN(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 179:return u(m.updateCallSignature(t,Y(t,t.typeParameters),X(t,t.parameters),H(t)));case 181:return u(m.updateIndexSignature(t,ge(t),X(t,t.parameters),nJ(t.type,ce,b_)||m.createKeywordTypeNode(133)));case 260:return k_(t.name)?pe(t.name):(l=!0,o=!0,u(m.updateVariableDeclaration(t,t.name,void 0,H(t),W(t))));case 168:return 174===(_=t).parent.kind&&Nv(_.parent,2)&&(t.default||t.constraint)?u(m.updateTypeParameterDeclaration(t,t.modifiers,t.name,void 0,void 0)):u(dJ(t,ce,e));case 194:{const e=nJ(t.checkType,ce,b_),r=nJ(t.extendsType,ce,b_),i=n;n=t.trueType;const o=nJ(t.trueType,ce,b_);n=i;const a=nJ(t.falseType,ce,b_);return _n.assert(e),_n.assert(r),_n.assert(o),_n.assert(a),u(m.updateConditionalTypeNode(t,e,r,o,a))}case 184:return u(m.updateFunctionTypeNode(t,rJ(t.typeParameters,ce,sD),X(t,t.parameters),_n.checkDefined(nJ(t.type,ce,b_))));case 185:return u(m.updateConstructorTypeNode(t,ge(t),rJ(t.typeParameters,ce,sD),X(t,t.parameters),_n.checkDefined(nJ(t.type,ce,b_))));case 205:return uf(t)?u(m.updateImportTypeNode(t,m.updateLiteralTypeNode(t.argument,ie(t,t.argument.literal)),t.attributes,t.qualifier,rJ(t.typeArguments,ce,b_),t.isTypeOf)):u(t);default:_n.assertNever(t,`Attempted to process unhandled node kind: ${_n.formatSyntaxKind(t.kind)}`)}var _;return DD(t)&&za(x,t.pos).line===za(x,t.end).line&&ow(t,1),u(dJ(t,ce,e));function u(e){return e&&s&&Mh(t)&&function(e){let t;o||(t=a,a=hq(e));v=e.name,_n.assert(Mh(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&&tw(ne(e,t),t)}}function le(e){if(!function(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}(e))return;if(fe(e))return;switch(e.kind){case 278:return WE(e.parent)&&(d=!0),f=!0,m.updateExportDeclaration(e,e.modifiers,e.isTypeOnly,e.exportClause,ie(e,e.moduleSpecifier),oe(e.attributes));case 277:if(WE(e.parent)&&(d=!0),f=!0,80===e.expression.kind)return e;{const t=m.createUniqueName("_default",16);a=()=>({diagnosticMessage:_a.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),iw(e),[i,m.updateExportAssignment(e,e.modifiers,t)]}}const t=de(e);return i.set(OJ(e),t),e}function _e(e){if(iE(e)||Nv(e,2048)||!lI(e))return e;const t=m.createModifiersFromModifierFlags(131039&Jv(e));return m.replaceModifiers(e,t)}function ue(e,t,n,r){const i=m.updateModuleDeclaration(e,t,n,r);if(sp(i)||32&i.flags)return i;const o=m.createModuleDeclaration(i.modifiers,i.name,i.body,32|i.flags);return tw(o,i),cI(o,i),o}function de(t){if(r)for(;Jt(r,t););if(fe(t))return;switch(t.kind){case 271:return function(e){if(N.isDeclarationVisible(e)){if(283===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=yq(e),ee(e.moduleReference,n),a=t,e}}}(t);case 272:return function(t){if(!t.importClause)return m.updateImportDeclaration(t,t.modifiers,t.importClause,ie(t,t.moduleSpecifier),oe(t.attributes));const n=t.importClause&&t.importClause.name&&N.isDeclarationVisible(t.importClause)?t.importClause.name:void 0;if(!t.importClause.namedBindings)return n&&m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,void 0),ie(t,t.moduleSpecifier),oe(t.attributes));if(274===t.importClause.namedBindings.kind){const e=N.isDeclarationVisible(t.importClause.namedBindings)?t.importClause.namedBindings:void 0;return n||e?m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,e),ie(t,t.moduleSpecifier),oe(t.attributes)):void 0}const r=R(t.importClause.namedBindings.elements,(e=>N.isDeclarationVisible(e)?e:void 0));return r&&r.length||n?m.updateImportDeclaration(t,t.modifiers,m.updateImportClause(t.importClause,t.importClause.isTypeOnly,n,r&&r.length?m.updateNamedImports(t.importClause.namedBindings,r):void 0),ie(t,t.moduleSpecifier),oe(t.attributes)):N.isImportRequiredByAugmentation(t)?(O&&e.addDiagnostic(Rp(t,_a.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(_u(t)&&K(t))return;if(OP(t))return;if(r_(t)&&N.isImplementationOfOverload(t))return;let o;Z(t)&&(o=n,n=t);const s=gq(t),u=a;s&&(a=yq(t));const g=c;switch(t.kind){case 265:{c=!1;const e=h(m.updateTypeAliasDeclaration(t,ge(t),t.name,rJ(t.typeParameters,ce,sD),_n.checkDefined(nJ(t.type,ce,b_))));return c=g,e}case 264:return h(m.updateInterfaceDeclaration(t,ge(t),t.name,Y(t,t.typeParameters),he(t.heritageClauses),rJ(t.members,ce,h_)));case 262:{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&&N.isExpandoFunctionDeclaration(t)&&function(e){var t;if(e.body)return!0;const n=null==(t=e.symbol.declarations)?void 0:t.filter((e=>GF(e)&&!e.body));return!n||n.indexOf(e)===n.length-1}(t)){const r=N.getPropertiesOfContainerFunction(t);O&&L(t);const i=dI.createModuleDeclaration(void 0,e.name||m.createIdentifier("_default"),m.createModuleBlock([]),32);FT(i,n),i.locals=Ku(r),i.symbol=r[0].parent;const o=[];let s=R(r,(e=>{if(!_C(e.valueDeclaration))return;const t=mc(e.escapedName);if(!ms(t,99))return;a=yq(e.valueDeclaration);const n=N.createTypeOfDeclaration(e.valueDeclaration,i,xq,2|kq,y);a=u;const r=Eh(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(D(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&Jv(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 WE(t.parent)&&(d=!0),f=!0,[_,p,g]}return e}case 267:{c=!1;const e=t.body;if(e&&268===e.kind){const n=p,r=f;f=!1,p=!1;let i=ae(rJ(e.statements,le,pu));33554432&t.flags&&(p=!1),dp(t)||function(e){return V(e,me)}(i)||f||(i=p?m.createNodeArray([...i,qP(m)]):rJ(i,_e,pu));const o=m.updateModuleBlock(e,i);c=g,p=n,f=r;const a=ge(t);return h(ue(t,a,pp(t)?ie(t,t.name):t.name,o))}{c=g;const n=ge(t);c=!1,nJ(e,le);const r=OJ(e),o=i.get(r);return i.delete(r),h(ue(t,n,t.name,o))}}case 263:{v=t.name,b=t;const e=m.createNodeArray(ge(t)),r=Y(t,t.typeParameters),i=iv(t);let o;if(i){const e=a;o=te(A(i.parameters,(e=>{if(Dv(e,31)&&!fe(e))return a=yq(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)hF(i)||(k_(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&&WN(e.name)))?[m.createPropertyDeclaration(void 0,m.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,N.createLateBoundIndexSignatures(t,n,xq,kq,y)),o),rJ(t.members,ce,__)),l=m.createNodeArray(s),_=yh(t);if(_&&!sb(_.expression)&&106!==_.expression.kind){const n=t.name?mc(t.name.escapedText):"default",i=m.createUniqueName(`${n}_base`,16);a=()=>({diagnosticMessage:_a.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:_,typeName:t.name});const o=m.createVariableDeclaration(i,void 0,N.createTypeOfExpression(_.expression,t,xq,kq,y),void 0),s=m.createVariableStatement(c?[m.createModifier(138)]:[],m.createVariableDeclarationList([o],2)),u=m.createNodeArray(D(t.heritageClauses,(e=>{if(96===e.token){const t=a;a=yq(e.types[0]);const n=m.updateHeritageClause(e,D(e.types,(e=>m.updateExpressionWithTypeArguments(e,i,rJ(e.typeArguments,ce,b_)))));return a=t,n}return m.updateHeritageClause(e,rJ(m.createNodeArray(C(e.types,(e=>sb(e.expression)||106===e.expression.kind))),ce,yF))})));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 243:return h(function(e){if(!_(e.declarationList.declarations,G))return;const t=rJ(e.declarationList.declarations,ce,HF);if(!l(t))return;const n=m.createNodeArray(ge(e));let r;rf(e.declarationList)||nf(e.declarationList)?(r=m.createVariableDeclarationList(t,2),tw(r,e.declarationList),cI(r,e.declarationList),gw(r,e.declarationList)):r=m.updateVariableDeclarationList(e.declarationList,t);return m.updateVariableStatement(e,n,r)}(t));case 266:return h(m.updateEnumDeclaration(t,m.createNodeArray(ge(t)),t.name,m.createNodeArray(R(t.members,(t=>{if(fe(t))return;const n=N.getEnumMemberValue(t),r=null==n?void 0:n.value;O&&t.initializer&&(null==n?void 0:n.hasExternalReferences)&&!aD(t.name)&&e.addDiagnostic(Rp(t,_a.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),267===t.kind&&(c=g),e===t?e:(b=void 0,v=void 0,e&&tw(ne(e,t),t))}}function pe(e){return P(R(e.elements,(e=>function(e){if(232===e.kind)return;if(e.name){if(!G(e))return;return k_(e.name)?pe(e.name):m.createVariableDeclaration(e.name,void 0,H(e),void 0)}}(e))))}function fe(e){return!!I&&!!e&&zu(e,x)}function me(e){return gE(e)||hE(e)}function ge(e){const t=Jv(e),n=function(e){let t=130030,n=c&&!function(e){if(264===e.kind)return!0;return!1}(e)?128:0;const r=307===e.parent.kind;(!r||u&&r&&VI(e.parent))&&(t^=128,n=0);return Tq(e,t,n)}(e);return t===n?iJ(e.modifiers,(e=>et(e,Zl)),Zl):m.createModifiersFromModifierFlags(n)}function he(e){return m.createNodeArray(C(D(e,(e=>m.updateHeritageClause(e,rJ(m.createNodeArray(C(e.types,(t=>sb(t.expression)||96===e.token&&106===t.expression.kind))),ce,yF)))),(e=>e.types&&!!e.types.length)))}}function Tq(e,t=131070,n=0){let r=Jv(e)&t|n;return 2048&r&&!(32&r)&&(r^=32),2048&r&&128&r&&(r^=128),r}function Cq(e){switch(e.kind){case 172:case 171:return!Nv(e,2);case 169:case 260:return!0}return!1}var wq={scriptTransformers:s,declarationTransformers:s};function Nq(e,t,n){return{scriptTransformers:Dq(e,t,n),declarationTransformers:Fq(t)}}function Dq(e,t,n){if(n)return s;const r=vk(e),i=bk(e),o=Ok(e),a=[];return ae(a,t&&D(t.before,Pq)),a.push(zz),e.experimentalDecorators&&a.push(Wz),Kk(e)&&a.push(oq),r<99&&a.push(Zz),e.experimentalDecorators||!(r<99)&&o||a.push($z),a.push(qz),r<8&&a.push(Yz),r<7&&a.push(Qz),r<6&&a.push(Xz),r<5&&a.push(Gz),r<4&&a.push(Hz),r<3&&a.push(sq),r<2&&(a.push(lq),a.push(_q)),a.push(function(e){switch(e){case 200:return fq;case 99:case 7:case 6:case 5:case 100:case 101:case 199:case 1:return mq;case 4:return pq;default:return uq}}(i)),ae(a,t&&D(t.after,Pq)),a}function Fq(e){const t=[];return t.push(Sq),ae(t,e&&D(e.afterDeclarations,Aq)),t}function Eq(e,t){return n=>{const r=e(n);return"function"==typeof r?t(n,r):function(e){return t=>$E(t)?e.transformBundle(t):e.transformSourceFile(t)}(r)}}function Pq(e){return Eq(e,RJ)}function Aq(e){return Eq(e,((e,t)=>t))}function Iq(e,t){return t}function Oq(e,t,n){n(e,t)}function Lq(e,t,n,r,i,o,a){var s,c;const l=new Array(358);let _,u,d,p,f,m=0,g=[],h=[],y=[],v=[],b=0,x=!1,k=[],S=0,T=Iq,C=Oq,w=0;const N=[],D={factory:n,getCompilerOptions:()=>r,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:ut((()=>Uw(D))),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(_));ow(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=ow(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."),ow(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."),ow(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){N.push(e)}};for(const e of i)rw(yd(pc(e)));er("beforeTransform");const F=o.map((e=>e(D))),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",307===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)rw(yd(pc(e)));_=void 0,g=void 0,u=void 0,h=void 0,T=void 0,C=void 0,f=void 0,w=3}},diagnostics:N};function A(e){return!e||WE(e)&&e.isDeclarationFile?e:E(e)}function I(e){return!(!(1&l[e.kind])||8&Yd(e))}function O(e){return!!(2&l[e.kind])||!!(4&Yd(e))}}var jq={factory:ZC,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:Iq,onEmitNode:Oq,addDiagnostic:nt},Rq=function(){const e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}();function Mq(e){return So(e,".tsbuildinfo")}function Bq(e,t,n,r=!1,i,o){const a=Xe(n)?n:Gy(e,n,r),s=e.getCompilerOptions();if(!i)if(s.outFile){if(a.length){const n=ZC.createBundle(a),i=t(qq(n,e,r),n);if(i)return i}}else for(const n of a){const i=t(qq(n,e,r),n);if(i)return i}if(o){const e=Jq(s);if(e)return t({buildInfoPath:e},void 0)}}function Jq(e){const t=e.configFilePath;if(!function(e){return Pk(e)||!!e.tscBuild}(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;const n=e.outFile;let r;if(n)r=VS(n);else{if(!t)return;const n=VS(t);r=e.outDir?e.rootDir?Mo(e.outDir,ra(e.rootDir,n,!0)):Ro(e.outDir,Eo(n)):n}return r+".tsbuildinfo"}function zq(e,t){const n=e.outFile,r=e.emitDeclarationOnly?void 0:n,i=r&&Uq(r,e),o=t||Fk(e)?VS(n)+".d.ts":void 0;return{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:o&&Ak(e)?o+".map":void 0}}function qq(e,t,n){const r=t.getCompilerOptions();if(308===e.kind)return zq(r,n);{const i=qy(e.fileName,t,Vq(e.fileName,r)),o=Zp(e),a=o&&0===Zo(e.fileName,i,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames()),s=r.emitDeclarationOnly||a?void 0:i,c=!s||Zp(e)?void 0:Uq(s,r),l=n||Fk(r)&&!o?Uy(e.fileName,t):void 0;return{jsFilePath:s,sourceMapFilePath:c,declarationFilePath:l,declarationMapPath:l&&Ak(r)?l+".map":void 0}}}function Uq(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function Vq(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 Wq(e,t,n,r){return n?Mo(n,ra(r(),e,t)):e}function $q(e,t,n,r=()=>eU(t,n)){return Hq(e,t.options,n,r)}function Hq(e,t,n,r){return HS(Wq(e,n,t.declarationDir||t.outDir,r),Wy(e))}function Kq(e,t,n,r=()=>eU(t,n)){if(t.options.emitDeclarationOnly)return;const i=So(e,".json"),o=Gq(e,t.options,n,r);return i&&0===Zo(e,o,_n.checkDefined(t.options.configFilePath),n)?void 0:o}function Gq(e,t,n,r){return HS(Wq(e,n,t.outDir,r),Vq(e,t))}function Xq(){let e;return{addOutput:function(t){t&&(e||(e=[])).push(t)},getOutputs:function(){return e||s}}}function Qq(e,t){const{jsFilePath:n,sourceMapFilePath:r,declarationFilePath:i,declarationMapPath:o}=zq(e.options,!1);t(n),t(r),t(i),t(o)}function Yq(e,t,n,r,i){if(YI(t))return;const o=Kq(t,e,n,i);if(r(o),!So(t,".json")&&(o&&e.options.sourceMap&&r(`${o}.map`),Fk(e.options))){const o=$q(t,e,n,i);r(o),e.options.declarationMap&&r(`${o}.map`)}}function Zq(e,t,n,r,i){let o;return e.rootDir?(o=Jo(e.rootDir,n),null==i||i(e.rootDir)):e.composite&&e.configFilePath?(o=Fo(Lo(e.configFilePath)),null==i||i(o)):o=AU(t(),n,r),o&&o[o.length-1]!==_o&&(o+=_o),o}function eU({options:e,fileNames:t},n){return Zq(e,(()=>C(t,(t=>!(e.noEmitForJsFiles&&To(t,NS)||YI(t))))),Fo(Lo(_n.checkDefined(e.configFilePath))),Vt(!n))}function tU(e,t){const{addOutput:n,getOutputs:r}=Xq();if(e.options.outFile)Qq(e,n);else{const r=ut((()=>eU(e,t)));for(const i of e.fileNames)Yq(e,i,t,n,r)}return n(Jq(e.options)),r()}function nU(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}=Xq();return e.options.outFile?Qq(e,r):Yq(e,t,n,r),i()}function rU(e,t){if(e.options.outFile){const{jsFilePath:t,declarationFilePath:n}=zq(e.options,!1);return _n.checkDefined(t||n,`project ${e.options.configFilePath} expected to have at least one output`)}const n=ut((()=>eU(e,t)));for(const r of e.fileNames){if(YI(r))continue;const i=Kq(r,e,t,n);if(i)return i;if(!So(r,".json")&&Fk(e.options))return $q(r,e,t,n)}const r=Jq(e.options);return r||_n.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function iU(e,t){return!!t&&!!e}function oU(e,t,n,{scriptTransformers:r,declarationTransformers:i},a,s,c,_){var u=t.getCompilerOptions(),d=u.sourceMap||u.inlineSourceMap||Ak(u)?[]:void 0,p=u.listEmittedFiles?[]:void 0,f=_y(),m=Ab(u),g=Oy(m),{enter:h,exit:y}=Wn("printTime","beforePrint","afterPrint"),v=!1;return h(),Bq(t,(function({jsFilePath:s,sourceMapFilePath:_,declarationFilePath:d,declarationMapPath:m,buildInfoPath:g},h){var y,k,S,T,w,N;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);(WE(n)?[n]:C(n.sourceFiles,Am)).forEach((t=>{!u.noCheck&&fT(t,u)||function(t){if(Fm(t))return;MI(t,(t=>!iE(t)||32&qv(t)?oE(t)?"skip":void e.markLinkedReferences(t):"skip"))}(t)}));const s=Lq(e,t,ZC,u,[n],r,!1),c=pU({removeComments:u.removeComments,newLine:u.newLine,noEmitHelpers:u.noEmitHelpers,module:bk(u),moduleResolution:xk(u),target:vk(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=WE(n)?[n]:n.sourceFiles,_=c?s:C(s,Am),d=u.outFile?[ZC.createBundle(_)]:_;_.forEach((e=>{(a&&!Fk(u)||u.noCheck||iU(a,c)||!fT(e,u))&&b(e)}));const m=Lq(e,t,ZC,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,pU(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};Zy(t,f,e,aU(r),!1,void 0,{buildInfo:r}),null==p||p.push(e)}(g),null==(N=$n)||N.pop()}),Gy(t,n,c),c,s,!n&&!_),y(),{emitSkipped:v,diagnostics:f.getDiagnostics(),emittedFiles:p,sourceMaps:d};function b(t){gE(t)?80===t.expression.kind&&e.collectLinkedAliases(t.expression,!0):vE(t)?e.collectLinkedAliases(t.propertyName||t.name,!0):RI(t,b)}function x(e,n,r,i,o){const a=r.transformed[0],s=308===a.kind?a:void 0,c=307===a.kind?a:void 0,l=s?s.sourceFiles:[c];let _,p;if(function(e,t){return(e.sourceMap||e.inlineSourceMap)&&(307!==t.kind||!So(t.fileName,".json"))}(o,a)&&(_=mJ(t,Eo(Lo(e)),function(e){const t=Lo(e.sourceRoot||"");return t?Wo(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(Qy(r.fileName,t,n))),0===Do(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,${Tb(co,e)}`}const a=Eo(Lo(_n.checkDefined(i)));if(e.mapRoot){let n=Lo(e.mapRoot);return o&&(n=Fo(Qy(o.fileName,t,n))),0===Do(n)?(n=Ro(t.getCommonSourceDirectory(),n),encodeURI(aa(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();Zy(t,f,n,e,!1,l)}}else g.writeLine();const h=g.getText(),y={sourceMapUrlPos:p,diagnostics:r.diagnostics};return Zy(t,f,e,h,!!u.emitBOM,l,y),g.clear(),!y.skippedDtsWrite}}function aU(e){return JSON.stringify(e)}function sU(e,t){return wb(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},lU=ut((()=>pU({}))),_U=ut((()=>pU({removeComments:!0}))),uU=ut((()=>pU({removeComments:!0,neverAsciiEscape:!0}))),dU=ut((()=>pU({removeComments:!0,omitTrailingSemicolon:!0})));function pU(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,N,D,F,E,{hasGlobalName:P,onEmitNode:A=Oq,isEmitNotificationEnabled:I,substituteNode:O=Iq,onBeforeEmitNode:L,onAfterEmitNode:j,onBeforeEmitNodeArray:R,onAfterEmitNodeArray:M,onBeforeEmitToken:B,onAfterEmitToken:J}=t,z=!!e.extendedDiagnostics,q=!!e.omitBraceSourceMapPositions,U=Ab(e),W=bk(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=ZC.parenthesizer,ae={select:e=>0===e?oe.parenthesizeLeadingTypeArgument:void 0},se=function(){return KA((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,V_))),F=void 0),(i===Gn||i===hr||i===Me)&&uF(e))return e;E=r,i(1,e)}}();return Te(),{printNode:function(e,t,n){switch(e){case 0:_n.assert(WE(t),"Expected a SourceFile node.");break;case 2:_n.assert(VN(t),"Expected an Identifier node.");break;case 1:_n.assert(V_(t),"Expected an Expression node.")}switch(t.kind){case 307:return _e(t);case 308: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),Nt(!!(i=e).hasNoDefaultLib,i.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=Oy(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,N=void 0,D=void 0,e&&Tr(e)}function Se(t,n){t&&e.omitTrailingSemicolon&&(t=Ly(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,N=void 0,D=void 0,Se(void 0,void 0)}function Ce(){return N||(N=Ra(_n.checkDefined(n)))}function we(e,t){void 0!==e&&Ae(4,e,t)}function Ne(e){void 0!==e&&Ae(2,e,void 0)}function De(e,t){void 0!==e&&Ae(1,e,t)}function Fe(e){Ae(NN(e)?6:4,e)}function Ee(e){H&&4&Zd(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&&!WE(e)}function Oe(e){return!G&&!WE(e)&&!Pm(e)}function Le(e,t,n){switch(e){case 0:if(A!==Oq&&(!I||I(n)))return Re;case 1:if(O!==Iq&&(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=Pw(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(242===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,WE));if(2===e)return Ve(tt(t,VN));if(6===e)return Ue(tt(t,NN),!0);if(3===e)return function(e){we(e.name),rn(),Zt("in"),rn(),we(e.constraint)}(tt(t,sD));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,_E));if(5===e)return _n.assertNode(t,EF),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 166:return function(e){(function(e){80===e.kind?De(e):we(e)})(e.left),Qt("."),we(e.right)}(t);case 167:return function(e){Qt("["),De(e.expression,oe.parenthesizeExpressionOfComputedPropertyName),Qt("]")}(t);case 168: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 169:return function(e){It(e,e.modifiers,!0),we(e.dotDotDotToken),At(e.name,tn),we(e.questionToken),e.parent&&317===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 170:return o=t,Qt("@"),void De(o.expression,oe.parenthesizeLeftSideOfAccess);case 171:return function(e){Ot(e,e.modifiers),At(e.name,on),we(e.questionToken),Lt(e.type),Yt()}(t);case 172: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 173:return function(e){Ot(e,e.modifiers),we(e.name),we(e.questionToken),lt(e,dt,ut)}(t);case 174:return function(e){It(e,e.modifiers,!0),we(e.asteriskToken),we(e.name),we(e.questionToken),lt(e,dt,_t)}(t);case 175:return function(e){Zt("static"),En(e),pt(e.body),Pn(e)}(t);case 176:return function(e){It(e,e.modifiers,!1),Zt("constructor"),lt(e,dt,_t)}(t);case 177:case 178:return function(e){const t=It(e,e.modifiers,!0),n=177===e.kind?139:153;rt(n,t,Zt,e),rn(),we(e.name),lt(e,dt,_t)}(t);case 179:return function(e){lt(e,dt,ut)}(t);case 180:return function(e){Zt("new"),rn(),lt(e,dt,ut)}(t);case 181: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 182:return function(e){e.assertsModifier&&(we(e.assertsModifier),rn());we(e.parameterName),e.type&&(rn(),Zt("is"),rn(),we(e.type))}(t);case 183:return function(e){we(e.typeName),Jt(e,e.typeArguments)}(t);case 184:return function(e){lt(e,$e,He)}(t);case 185:return function(e){Ot(e,e.modifiers),Zt("new"),rn(),lt(e,$e,He)}(t);case 186:return function(e){Zt("typeof"),rn(),we(e.exprName),Jt(e,e.typeArguments)}(t);case 187:return function(e){En(e),_(e.members,Ln),Qt("{");const t=1&Yd(e)?768:32897;Wt(e,e.members,524288|t),Qt("}"),Pn(e)}(t);case 188:return function(e){we(e.elementType,oe.parenthesizeNonArrayTypeOfPostfixType),Qt("["),Qt("]")}(t);case 189:return function(e){rt(23,e.pos,Qt,e);const t=1&Yd(e)?528:657;Wt(e,e.elements,524288|t,oe.parenthesizeElementTypeOfTupleType),rt(24,e.elements.end,Qt,e)}(t);case 190:return function(e){we(e.type,oe.parenthesizeTypeOfOptionalType),Qt("?")}(t);case 192:return function(e){Wt(e,e.types,516,oe.parenthesizeConstituentTypeOfUnionType)}(t);case 193:return function(e){Wt(e,e.types,520,oe.parenthesizeConstituentTypeOfIntersectionType)}(t);case 194: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 195:return function(e){Zt("infer"),rn(),we(e.typeParameter)}(t);case 196:return function(e){Qt("("),we(e.type),Qt(")")}(t);case 233:return Xe(t);case 197:return void Zt("this");case 198:return function(e){pn(e.operator,Zt),rn();const t=148===e.operator?oe.parenthesizeOperandOfReadonlyTypeOperator:oe.parenthesizeOperandOfTypeOperator;we(e.type,t)}(t);case 199:return function(e){we(e.objectType,oe.parenthesizeNonArrayTypeOfPostfixType),Qt("["),we(e.indexType),Qt("]")}(t);case 200:return function(e){const t=Yd(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 201:return function(e){De(e.literal)}(t);case 202: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 203:return function(e){we(e.head),Wt(e,e.templateSpans,262144)}(t);case 204:return function(e){we(e.type),we(e.literal)}(t);case 205: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 206:return function(e){Qt("{"),Wt(e,e.elements,525136),Qt("}")}(t);case 207:return function(e){Qt("["),Wt(e,e.elements,524880),Qt("]")}(t);case 208: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 239:return function(e){De(e.expression),we(e.literal)}(t);case 240:return void Yt();case 241:return function(e){Qe(e,!e.multiLine&&wn(e))}(t);case 243:return function(e){It(e,e.modifiers,!1),we(e.declarationList),Yt()}(t);case 242:return Ye(!1);case 244:return function(e){De(e.expression,oe.parenthesizeExpressionOfExpressionStatement),n&&Zp(n)&&!ey(e.expression)||Yt()}(t);case 245:return function(e){const t=rt(101,e.pos,Zt,e);rn(),rt(21,t,Qt,e),De(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),245===e.elseStatement.kind?(rn(),we(e.elseStatement)):Bt(e,e.elseStatement))}(t);case 246:return function(e){rt(92,e.pos,Zt,e),Bt(e,e.statement),DF(e.statement)&&!H?rn():fn(e,e.statement,e.expression);Ze(e,e.statement.end),Yt()}(t);case 247:return function(e){Ze(e,e.pos),Bt(e,e.statement)}(t);case 248: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 249: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(),De(e.expression),rt(22,e.expression.end,Qt,e),Bt(e,e.statement)}(t);case 250: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(),De(e.expression),rt(22,e.expression.end,Qt,e),Bt(e,e.statement)}(t);case 251:return function(e){rt(88,e.pos,Zt,e),Rt(e.label),Yt()}(t);case 252:return function(e){rt(83,e.pos,Zt,e),Rt(e.label),Yt()}(t);case 253:return function(e){rt(107,e.pos,Zt,e),Mt(e.expression&&at(e.expression),at),Yt()}(t);case 254:return function(e){const t=rt(118,e.pos,Zt,e);rn(),rt(21,t,Qt,e),De(e.expression),rt(22,e.expression.end,Qt,e),Bt(e,e.statement)}(t);case 255:return function(e){const t=rt(109,e.pos,Zt,e);rn(),rt(21,t,Qt,e),De(e.expression),rt(22,e.expression.end,Qt,e),rn(),we(e.caseBlock)}(t);case 256:return function(e){we(e.label),rt(59,e.label.end,Qt,e),rn(),we(e.statement)}(t);case 257:return function(e){rt(111,e.pos,Zt,e),Mt(at(e.expression),at),Yt()}(t);case 258: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 259:return function(e){un(89,e.pos,Zt),Yt()}(t);case 260: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 261:return function(e){if(nf(e))Zt("await"),rn(),Zt("using");else{Zt(sf(e)?"let":of(e)?"const":rf(e)?"using":"var")}rn(),Wt(e,e.declarations,528)}(t);case 262:return function(e){ct(e)}(t);case 263:return function(e){gt(e)}(t);case 264: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 265: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 266:return function(e){It(e,e.modifiers,!1),Zt("enum"),rn(),we(e.name),rn(),Qt("{"),Wt(e,e.members,145),Qt("}")}(t);case 267: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&&eE(t);)Qt("."),we(t.name),t=t.body;rn(),we(t)}(t);case 268:return function(e){En(e),_(e.statements,On),Qe(e,wn(e)),Pn(e)}(t);case 269:return function(e){rt(19,e.pos,Qt,e),Wt(e,e.clauses,129),rt(20,e.clauses.end,Qt,e,!0)}(t);case 270: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 271: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?De(e):we(e)}(e.moduleReference),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.importClause&&(we(e.importClause),rn(),rt(161,e.importClause.end,Zt,e),rn());De(e.moduleSpecifier),e.attributes&&Rt(e.attributes);Yt()}(t);case 273:return function(e){e.isTypeOnly&&(rt(156,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 274:return function(e){const t=rt(42,e.pos,Qt,e);rn(),rt(130,t,Zt,e),rn(),we(e.name)}(t);case 280:return function(e){const t=rt(42,e.pos,Qt,e);rn(),rt(130,t,Zt,e),rn(),we(e.name)}(t);case 275:case 279:return function(e){ht(e)}(t);case 276:case 281:return function(e){yt(e)}(t);case 277: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(),De(e.expression,e.isExportEquals?oe.getParenthesizeRightSideOfBinaryForOperator(64):oe.parenthesizeExpressionOfExportDefault),Yt()}(t);case 278: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(),De(e.moduleSpecifier)}e.attributes&&Rt(e.attributes);Yt()}(t);case 300:return function(e){rt(e.token,e.pos,Zt,e),rn();const t=e.elements;Wt(e,t,526226)}(t);case 301:return function(e){we(e.name),Qt(":"),rn();const t=e.value;if(!(1024&Yd(t))){_r(mw(t).pos)}we(t)}(t);case 282:case 319:case 330:case 331:case 333:case 334:case 335:case 336:case 353:case 354:return;case 283:return function(e){Zt("require"),Qt("("),De(e.expression),Qt(")")}(t);case 12:return function(e){x.writeLiteral(e.text)}(t);case 286:case 289:return function(e){if(Qt("<"),NE(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 287:case 290:return function(e){Qt("</"),DE(e)&&vt(e.tagName);Qt(">")}(t);case 291:return function(e){we(e.name),function(e,t,n,r){n&&(t(e),r(n))}("=",Qt,e.initializer,Fe)}(t);case 292:return function(e){Wt(e,e.properties,262656)}(t);case 293:return function(e){Qt("{..."),De(e.expression),Qt("}")}(t);case 294:return function(e){var t;if(e.expression||!ne&&!ey(e)&&(r=e.pos,function(e){let t=!1;return as((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r)||function(e){let t=!1;return os((null==n?void 0:n.text)||"",e+1,(()=>t=!0)),t}(r))){const r=n&&!ey(e)&&za(n,e.pos).line!==za(n,e.end).line;r&&x.increaseIndent();const i=rt(19,e.pos,Qt,e);we(e.dotDotDotToken),De(e.expression),rt(20,(null==(t=e.expression)?void 0:t.end)||i,Qt,e),r&&x.decreaseIndent()}var r}(t);case 295:return function(e){Ne(e.namespace),Qt(":"),Ne(e.name)}(t);case 296:return function(e){rt(84,e.pos,Zt,e),rn(),De(e.expression,oe.parenthesizeExpressionForDisallowedComma),bt(e,e.statements,e.expression.end)}(t);case 297:return function(e){const t=rt(90,e.pos,Zt,e);bt(e,e.statements,t)}(t);case 298:return function(e){rn(),pn(e.token,Zt),rn(),Wt(e,e.types,528)}(t);case 299: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 303:return function(e){we(e.name),Qt(":"),rn();const t=e.initializer;if(!(1024&Yd(t))){_r(mw(t).pos)}De(t,oe.parenthesizeExpressionForDisallowedComma)}(t);case 304:return function(e){we(e.name),e.objectAssignmentInitializer&&(rn(),Qt("="),rn(),De(e.objectAssignmentInitializer,oe.parenthesizeExpressionForDisallowedComma))}(t);case 305:return function(e){e.expression&&(rt(26,e.pos,Qt,e),De(e.expression,oe.parenthesizeExpressionForDisallowedComma))}(t);case 306:return function(e){we(e.name),jt(e.initializer,e.name.end,e,oe.parenthesizeExpressionForDisallowedComma)}(t);case 307:return wt(t);case 308:return _n.fail("Bundles should be printed using printBundle");case 309:return Ct(t);case 310:return function(e){rn(),Qt("{"),we(e.name),Qt("}")}(t);case 312:return Qt("*");case 313:return Qt("?");case 314:return function(e){Qt("?"),we(e.type)}(t);case 315:return function(e){Qt("!"),we(e.type)}(t);case 316:return function(e){we(e.type),Qt("=")}(t);case 317:return function(e){Zt("function"),qt(e,e.parameters),Qt(":"),we(e.type)}(t);case 191:case 318:return function(e){Qt("..."),we(e.type)}(t);case 320:return function(e){if(K("/**"),e.comment){const t=ll(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||344!==e.tags[0].kind||e.comment?Wt(e,e.tags,33):(rn(),we(e.tags[0])));rn(),K("*/")}(t);case 322:return xt(t);case 323:return kt(t);case 327:case 332:case 337:return St((i=t).tagName),void Tt(i.comment);case 328:case 329:return function(e){St(e.tagName),rn(),Qt("{"),we(e.class),Qt("}"),Tt(e.comment)}(t);case 338:return function(e){St(e.tagName),e.name&&(rn(),we(e.name));Tt(e.comment),kt(e.typeExpression)}(t);case 339:return function(e){Tt(e.comment),kt(e.typeExpression)}(t);case 341:case 348:return function(e){St(e.tagName),Ct(e.typeExpression),rn(),e.isBracketed&&Qt("[");we(e.name),e.isBracketed&&Qt("]");Tt(e.comment)}(t);case 340:case 342:case 343:case 344:case 349:case 350:return function(e){St(e.tagName),Ct(e.typeExpression),Tt(e.comment)}(t);case 345:return function(e){St(e.tagName),Ct(e.constraint),rn(),Wt(e,e.typeParameters,528),Tt(e.comment)}(t);case 346:return function(e){St(e.tagName),e.typeExpression&&(309===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&&322===e.typeExpression.kind&&xt(e.typeExpression)}(t);case 347:return function(e){St(e.tagName),we(e.name),Tt(e.comment)}(t);case 351:return function(e){St(e.tagName),rn(),e.importClause&&(we(e.importClause),rn(),rt(161,e.importClause.end,Zt,e),rn());De(e.moduleSpecifier),e.attributes&&Rt(e.attributes);Tt(e.comment)}(t)}if(V_(t)&&(e=1,O!==Iq)){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 209:return function(e){const t=e.elements,n=e.multiLine?65536:0;$t(e,t,8914|n,oe.parenthesizeExpressionForDisallowedComma)}(t);case 210:return function(e){En(e),_(e.properties,Ln);const t=131072&Yd(e);t&&cn();const r=e.multiLine?65536:0,i=n&&n.languageVersion>=1&&!Zp(n)?64:0;Wt(e,e.properties,526226|i|r),t&&ln();Pn(e)}(t);case 211:return function(e){De(e.expression,oe.parenthesizeLeftSideOfAccess);const t=e.questionDotToken||wT(ZC.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(CN(e=Sl(e))){const t=Fn(e,void 0,!0,!1);return!(448&e.numericLiteralFlags||t.includes(Fa(25))||t.includes(String.fromCharCode(69))||t.includes(String.fromCharCode(101)))}if(Tx(e)){const t=Tw(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 212:return function(e){De(e.expression,oe.parenthesizeLeftSideOfAccess),we(e.questionDotToken),rt(23,e.expression.end,Qt,e),De(e.argumentExpression),rt(24,e.argumentExpression.end,Qt,e)}(t);case 213:return function(e){const t=16&Zd(e);t&&(Qt("("),Gt("0"),Qt(","),rn());De(e.expression,oe.parenthesizeLeftSideOfAccess),t&&Qt(")");we(e.questionDotToken),Jt(e,e.typeArguments),$t(e,e.arguments,2576,oe.parenthesizeExpressionForDisallowedComma)}(t);case 214:return function(e){rt(105,e.pos,Zt,e),rn(),De(e.expression,oe.parenthesizeExpressionOfNew),Jt(e,e.typeArguments),$t(e,e.arguments,18960,oe.parenthesizeExpressionForDisallowedComma)}(t);case 215:return function(e){const t=16&Zd(e);t&&(Qt("("),Gt("0"),Qt(","),rn());De(e.tag,oe.parenthesizeLeftSideOfAccess),t&&Qt(")");Jt(e,e.typeArguments),rn(),De(e.template)}(t);case 216:return function(e){Qt("<"),we(e.type),Qt(">"),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 217:return function(e){const t=rt(21,e.pos,Qt,e),n=kn(e.expression,e);De(e.expression,void 0),Sn(e.expression,e),hn(n),rt(22,e.expression?e.expression.end:t,Qt,e)}(t);case 218:return function(e){jn(e.name),ct(e)}(t);case 219:return function(e){Ot(e,e.modifiers),lt(e,Ke,Ge)}(t);case 220:return function(e){rt(91,e.pos,Zt,e),rn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 221:return function(e){rt(114,e.pos,Zt,e),rn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 222:return function(e){rt(116,e.pos,Zt,e),rn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 223:return function(e){rt(135,e.pos,Zt,e),rn(),De(e.expression,oe.parenthesizeOperandOfPrefixUnary)}(t);case 224:return function(e){pn(e.operator,en),function(e){const t=e.operand;return 224===t.kind&&(40===e.operator&&(40===t.operator||46===t.operator)||41===e.operator&&(41===t.operator||47===t.operator))}(e)&&rn();De(e.operand,oe.parenthesizeOperandOfPrefixUnary)}(t);case 225:return function(e){De(e.operand,oe.parenthesizeOperandOfPostfixUnary),pn(e.operator,en)}(t);case 226:return se(t);case 227: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);De(e.condition,oe.parenthesizeConditionOfConditionalExpression),gn(t,!0),we(e.questionToken),gn(n,!0),De(e.whenTrue,oe.parenthesizeBranchOfConditionalExpression),hn(t,n),gn(r,!0),we(e.colonToken),gn(i,!0),De(e.whenFalse,oe.parenthesizeBranchOfConditionalExpression),hn(r,i)}(t);case 228:return function(e){we(e.head),Wt(e,e.templateSpans,262144)}(t);case 229:return function(e){rt(127,e.pos,Zt,e),we(e.asteriskToken),Mt(e.expression&&at(e.expression),st)}(t);case 230:return function(e){rt(26,e.pos,Qt,e),De(e.expression,oe.parenthesizeExpressionForDisallowedComma)}(t);case 231:return function(e){jn(e.name),gt(e)}(t);case 232:case 282:case 353:return;case 234:return function(e){De(e.expression,void 0),e.type&&(rn(),Zt("as"),rn(),we(e.type))}(t);case 235:return function(e){De(e.expression,oe.parenthesizeLeftSideOfAccess),en("!")}(t);case 233:return Xe(t);case 238:return function(e){De(e.expression,void 0),e.type&&(rn(),Zt("satisfies"),rn(),we(e.type))}(t);case 236:return function(e){un(e.keywordToken,e.pos,Qt),Qt("."),we(e.name)}(t);case 237:return _n.fail("SyntheticExpression should never be printed.");case 284:return function(e){we(e.openingElement),Wt(e,e.children,262144),we(e.closingElement)}(t);case 285:return function(e){Qt("<"),vt(e.tagName),Jt(e,e.typeArguments),rn(),we(e.attributes),Qt("/>")}(t);case 288:return function(e){we(e.openingFragment),Wt(e,e.children,262144),we(e.closingFragment)}(t);case 352:return _n.fail("SyntaxList should not be printed");case 355:return function(e){const t=Yd(e);1024&t||e.pos===e.expression.pos||_r(e.expression.pos);De(e.expression),2048&t||e.end===e.expression.end||cr(e.expression.end)}(t);case 356:return function(e){$t(e,e.elements,528,void 0)}(t);case 357:return _n.fail("SyntheticReferenceExpression should not be printed")}return Ch(t.kind)?dn(t,Zt):Fl(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=308===t.kind?t:void 0;if(i&&0===W)return;const o=i?i.sourceFiles.length:1;for(let a=0;a<o;a++){const o=i?i.sourceFiles[a]:t,s=WE(o)?o:n,c=e.noEmitHelpers||!!s&&mA(s),l=WE(o)&&!S,_=qe(o);if(_)for(const e of _){if(e.scoped){if(i)continue}else{if(c)continue;if(l){if($.get(e.name))continue;$.set(e.name,!0)}}"string"==typeof e.text?mn(e.text):mn(e.text(Wn)),r=!0}}return r}function qe(e){const t=Fw(e);return t&&le(t,Vw)}function Ue(t,n){const r=Fn(t,void 0,e.neverAsciiEscape,n);var i;!e.sourceMap&&!e.inlineSourceMap||11!==t.kind&&!Ll(t.kind)?(i=r,x.writeStringLiteral(i)):Gt(r)}function Ve(e){(e.symbol?Xt:K)(Dn(e,!1),e.symbol),Wt(e,Rw(e),53776)}function We(e){K(Dn(e,!1))}function $e(e){zt(e,e.typeParameters),Ut(e,e.parameters),rn(),Qt("=>")}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){DF(e.body)?pt(e.body):(rn(),De(e.body,oe.parenthesizeConciseBodyOfArrowFunction))}function Xe(e){De(e.expression,oe.parenthesizeLeftSideOfAccess),Jt(e,e.typeArguments)}function Qe(e,t){rt(19,e.pos,Qt,e);const n=t||1&Yd(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),De(e.expression),rt(22,e.expression.end,Qt,e)}function nt(e){void 0!==e&&(261===e.kind?we(e):De(e))}function rt(e,t,r,i,o){const a=pc(i),s=a&&a.kind===i.kind,c=t;if(s&&n&&(t=Qa(n.text,t)),s&&i.pos!==c){const e=o&&n&&!Hb(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=294===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=_s(n.text,e.pos);if(t){const t=pc(e);if(t&&nF(t.parent))return!0}return!!V(t,it)||(!!V(hw(e),it)||!!TF(e)&&(!(e.pos===e.expression.pos||!V(us(n.text,e.expression.pos),it))||ot(e.expression)))}function at(e){if(!ne)switch(e.kind){case 355:if(ot(e)){const t=pc(e);if(t&&nF(t)){const n=ZC.createParenthesizedExpression(e.expression);return tw(n,e),cI(n,t),n}return ZC.createParenthesizedExpression(e)}return ZC.updatePartiallyEmittedExpression(e,at(e.expression));case 211:return ZC.updatePropertyAccessExpression(e,at(e.expression),e.name);case 212:return ZC.updateElementAccessExpression(e,at(e.expression),e.argumentExpression);case 213:return ZC.updateCallExpression(e,at(e.expression),e.typeArguments,e.arguments);case 215:return ZC.updateTaggedTemplateExpression(e,at(e.tag),e.typeArguments,e.template);case 225:return ZC.updatePostfixUnaryExpression(e,at(e.operand));case 226:return ZC.updateBinaryExpression(e,at(e.left),e.operatorToken,e.right);case 227:return ZC.updateConditionalExpression(e,at(e.condition),e.questionToken,e.whenTrue,e.colonToken,e.whenFalse);case 234:return ZC.updateAsExpression(e,at(e.expression),e.type);case 238:return ZC.updateSatisfiesExpression(e,at(e.expression),e.type);case 235:return ZC.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(),Ne(e.name),lt(e,dt,_t)}function lt(e,t,n){const r=131072&Yd(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&Yd(e))return!0;if(e.multiLine)return!1;if(!ey(e)&&n&&!Bb(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,Rb(e).pos,Zt,e),e.name&&(rn(),Ne(e.name));const t=131072&Yd(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?De(e):we(e)}function bt(e,t,r){let i=163969;1===t.length&&(!n||ey(e)||ey(t[0])||Jb(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,ZC.createNodeArray(e.jsDocPropertyTags),33)}function kt(e){e.typeParameters&&Wt(e,ZC.createNodeArray(e.typeParameters),33),e.parameters&&Wt(e,ZC.createNodeArray(e.parameters),33),e.type&&(sn(),rn(),Qt("*"),rn(),we(e.type))}function St(e){Qt("@"),we(e)}function Tt(e){const t=ll(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||!df(t[0])||ey(t[0])?nr(e,t,Dt):Dt(e)}function Nt(e,t,r,i){if(e&&(nn('/// <reference no-default-lib="true"/>'),sn()),n&&n.moduleName&&(nn(`/// <amd-module name="${n.moduleName}" />`),sn()),n&&n.amdDependencies)for(const e of n.amdDependencies)e.name?nn(`/// <amd-dependency name="${e.name}" path="${e.path}" />`):nn(`/// <amd-dependency path="${e.path}" />`),sn();function o(e,t){for(const n of t){const t=n.resolutionMode?`resolution-mode="${99===n.resolutionMode?"import":"require"}" `:"",r=n.preserve?'preserve="true" ':"";nn(`/// <reference ${e}="${n.fileName}" ${t}${r}/>`),sn()}}o("path",t),o("types",r),o("lib",i)}function Dt(e){const t=e.statements;En(e),_(e.statements,On),ze(e);const n=b(t,(e=>!df(e)));!function(e){e.isDeclarationFile&&Nt(e.hasNoDefaultLib,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<e.length;i++){const o=e[i];if(!df(o))return i;(!n||!n.has(o.expression.text))&&(r&&(r=!1,ke(t)),sn(),we(o),n&&n.add(o.expression.text))}return e.length}function Et(e){if(WE(e))Ft(e.statements,e);else{const t=new Set;for(const n of e.sourceFiles)Ft(n.statements,n,t);ke(void 0)}}function Pt(e){if(WE(e)){const t=ds(e.text);if(t)return nn(t),sn(),!0}else for(const t of e.sourceFiles)if(Pt(t))return!0}function At(e,t){if(!e)return;const n=K;K=t,we(e),K=n}function It(e,t,n){if(null==t?void 0:t.length){if(h(t,Zl))return Ot(e,t);if(h(t,lD))return n?function(e,t){Wt(e,t,2146305);const n=he(t);return n&&!QS(n.end)?n.end:e.pos}(e,t):e.pos;let r,i;null==R||R(t);let o,a=0,s=0;for(;a<t.length;){for(;s<t.length;){if(o=t[s],i=lD(o)?"decorators":"modifiers",void 0===r)r=i;else if(i!==r)break;s++}const c={pos:-1,end:-1};0===a&&(c.pos=t.pos),s===t.length-1&&(c.end=t.end),("modifiers"===r||n)&&Kt(we,e,t,"modifiers"===r?2359808:2146305,void 0,a,s-a,!1,c),a=s,r=i,s++}if(null==M||M(t),o&&!QS(o.end))return o.end}return e.pos}function Ot(e,t){Wt(e,t,2359808);const n=he(t);return n&&!QS(n.end)?n.end:e.pos}function Lt(e){e&&(Qt(":"),rn(),we(e))}function jt(e,t,n,r){e&&(rn(),rt(64,t,en,n),rn(),De(e,r))}function Rt(e){e&&(rn(),we(e))}function Mt(e,t){e&&(rn(),De(e,t))}function Bt(e,t){DF(t)||1&Yd(e)||H&&!yn(e,t,0)?(rn(),we(t)):(sn(),cn(),EF(t)?Ae(5,t):we(t),ln())}function Jt(e,t){Wt(e,t,53776,ae)}function zt(e,t){if(r_(e)&&e.typeArguments)return Jt(e,e.typeArguments);Wt(e,t,53776|(iF(e)?64:0))}function qt(e,t){Wt(e,t,2576)}function Ut(e,t){!function(e,t){const n=ve(t);return n&&n.pos===e.pos&&iF(e)&&!e.type&&!V(e.modifiers)&&!V(e.typeParameters)&&!V(n.modifiers)&&!n.dotDotDotToken&&!n.questionToken&&!n.type&&!n.initializer&&VN(n.name)}(e,t)?qt(e,t):Wt(e,t,528)}function Vt(e){switch(60&e){case 0:break;case 16:Qt(",");break;case 4:rn(),Qt("|");break;case 32:rn(),Qt("*"),rn();break;case 8:rn(),Qt("&")}}function Wt(e,t,n,r,i,o){Ht(we,e,t,n|(e&&2&Yd(e)?65536:0),r,i,o)}function $t(e,t,n,r,i,o){Ht(De,e,t,n,r,i,o)}function Ht(e,t,r,i,o,a=0,s=(r?r.length-a:0)){if(void 0===r&&16384&i)return;const c=void 0===r||a>=r.length||0===s;if(c&&32768&i)return null==R||R(r),void(null==M||M(r));15360&i&&(Qt(function(e){return Rq[15360&e][0]}(i)),c&&r&&_r(r.pos,!0)),null==R||R(r),c?!(1&i)||H&&(!t||n&&Bb(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 Rq[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?fU:"object"==typeof t?mU:gU}(e,i);let p,f=!1;for(let s=0;s<a;s++){const a=n[o+s];if(32&r)sn(),Vt(r);else if(p){if(60&r&&p.end!==(t?t.end:-1)){2048&Yd(p)||cr(p.end)}Vt(r);const e=vn(p,a,r);if(e>0){if(131&r||(cn(),f=!0),_&&60&r&&!QS(a.pos)){_r(mw(a).pos,!!(512&r),!0)}sn(e),_=!1}else p&&512&r&&rn()}if(_){_r(mw(a).pos)}else _=l;v=a.pos,d(a,e,i,s),f&&(ln(),f=!1),p=a}const m=p?Yd(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;t<e;t++)x.writeLine(t>0)}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(Fa(e.kind)),J&&J(e)}function pn(e,t,n){const r=Fa(e);return t(r),n<0?n:n+r.length}function fn(e,t,n){if(1&Yd(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=Lu(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&&Bb(e,n)?0:1;if(t.pos===v)return 0;if(12===t.kind)return 0;if(n&&e&&!QS(e.pos)&&!ey(t)&&(!t.parent||_c(t.parent)===_c(e)))return H?xn((r=>Gb(t.pos,e.pos,n,r))):Jb(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&&!ey(e)&&!ey(t))return H&&function(e,t){if(t.pos<e.end)return!1;e=_c(e),t=_c(t);const n=e.parent;if(!n||n!==t.parent)return!1;const r=LT(e),i=null==r?void 0:r.indexOf(e);return void 0!==i&&i>-1&&r.indexOf(t)===i+1}(e,t)?xn((r=>Vb(e,t,n,r))):!H&&(o=t,(i=_c(i=e)).parent&&i.parent===_c(o).parent)?Ub(e,t,n)?0:1:65536&r?1:0;if(Tn(e,r)||Tn(t,r))return 1}else if(pw(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&&Bb(e,n)?0:1;if(n&&e&&!QS(e.pos)&&!ey(t)&&(!t.parent||t.parent===e)){if(H){const r=i&&!QS(i.end)?i.end:t.end;return xn((t=>Xb(r,e.end,n,t)))}return zb(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(ey(e)){const n=pw(e);return void 0===n?!!(65536&t):n}return!!(65536&t)}function Cn(e,t,r){return 262144&Yd(e)?0:(e=Nn(e),t=Nn(t),pw(r=Nn(r))?1:!n||ey(e)||ey(t)||ey(r)?0:H?xn((e=>Vb(t,r,n,e))):Ub(t,r,n)?0:1)}function wn(e){return 0===e.statements.length&&(!n||Ub(e,e,n))}function Nn(e){for(;217===e.kind&&ey(e);)e=e.expression;return e}function Dn(e,t){if(Wl(e)||$l(e))return Rn(e);if(NN(e)&&e.textSourceNode)return Dn(e.textSourceNode,t);const r=n,i=!!r&&!!e.parent&&!ey(e);if(dl(e)){if(!i||yd(e)!==_c(r))return gc(e)}else if(jE(e)){if(!i||yd(e)!==_c(r))return aC(e)}else if(_n.assertNode(e,Il),!i)return e.text;return Ud(r,e,t)}function Fn(t,r=n,i,o){if(11===t.kind&&t.textSourceNode){const e=t.textSourceNode;if(VN(e)||WN(e)||CN(e)||jE(e)){const n=CN(e)?e.text:Dn(e);return o?`"${Dy(n)}"`:i||16777216&Yd(t)?`"${xy(n)}"`:`"${Sy(n)}"`}return Fn(e,yd(e),i,o)}return np(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&Yd(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&Yd(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 241:case 296:case 297:_(e.statements,On);break;case 256:case 254:case 246:case 247:On(e.statement);break;case 245:On(e.thenStatement),On(e.elseStatement);break;case 248:case 250:case 249:On(e.initializer),On(e.statement);break;case 255:On(e.caseBlock);break;case 269:_(e.clauses,On);break;case 258:On(e.tryBlock),On(e.catchClause),On(e.finallyBlock);break;case 299:On(e.variableDeclaration),On(e.block);break;case 243:On(e.declarationList);break;case 261:_(e.declarations,On);break;case 260:case 169:case 208:case 263:case 274:case 280:jn(e.name);break;case 262:jn(e.name),1048576&Yd(e)&&(_(e.parameters,On),On(e.body));break;case 206:case 207:case 275:_(e.elements,On);break;case 272:On(e.importClause);break;case 273:jn(e.name),On(e.namedBindings);break;case 276:jn(e.propertyName||e.name)}}function Ln(e){if(e)switch(e.kind){case 303:case 304:case 172:case 171:case 174:case 173:case 177:case 178:jn(e.name)}}function jn(e){e&&(Wl(e)||$l(e)?Rn(e):k_(e)&&On(e))}function Rn(e){const t=e.emitNode.autoGenerate;if(4==(7&t.flags))return Mn(QA(e),WN(e),t.flags,t.prefix,t.suffix);{const n=t.id;return o[n]||(o[n]=function(e){const t=e.emitNode.autoGenerate,n=YA(t.prefix,Rn),r=YA(t.suffix);switch(7&t.flags){case 1:return qn(0,!!(8&t.flags),WN(e),n,r);case 2:return _n.assertNode(e,VN),qn(268435456,!!(8&t.flags),!1,n,r);case 3:return Un(gc(e),32&t.flags?Jn:Bn,!!(16&t.flags),!!(8&t.flags),WN(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=$B(e),c=t?i:r;return c[s]||(c[s]=Kn(e,t,n??0,YA(o,Rn),YA(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||Cd(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=eI(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=eI(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=eI(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=eI(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=eI(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=Dn(e.name);return function(e,t){for(let n=t;n&&ch(n,t);n=n.nextContainer)if(su(n)&&n.locals){const t=n.locals.get(fc(e));if(t&&3257279&t.flags)return!1}return!0}(t,et(e,su))?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(Dn(e),Bn,!!(16&n),!!(8&n),t,r,i);case 267:case 266:return _n.assert(!r&&!i&&!t),$n(e);case 272:case 278:return _n.assert(!r&&!i&&!t),function(e){const t=kg(e);return Un(NN(t)?ip(t.text):"module",Bn,!1,!1,!1,"","")}(e);case 262:case 263:{_n.assert(!r&&!i&&!t);const o=e.name;return o&&!Wl(o)?Kn(o,!1,n,r,i):Hn()}case 277:return _n.assert(!r&&!i&&!t),Hn();case 231:return _n.assert(!r&&!i&&!t),Un("class",Bn,!1,!1,!1,"","");case 174:case 177:case 178:return function(e,t,n,r){return VN(e.name)?Mn(e.name,t):qn(0,!1,t,n,r)}(e,t,r,i);case 167: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=Yd(e),n=mw(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,353!==e.kind),(!i||n>=0&&1024&t)&&(Y=n),(!o||r>=0&&2048&t)&&(Z=r,261===e.kind&&(ee=r)));_(hw(e),Zn),ie()}(e,t,n.pos,n.end),4096&t&&(ne=!0)}function Qn(e,t,n,r){const i=Yd(e),o=mw(e);4096&i&&(ne=!1),Yn(e,i,o.pos,o.end,t,n,r);const a=Lw(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;_(bw(e),er),(n>0||r>0)&&n!==r&&(Y=i,Z=o,ee=a,s||353===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);kv(t,3===e.kind?Oa(t):void 0,x,0,t.length,U)}function nr(e,t,r){re();const{pos:i,end:o}=t,a=Yd(e),s=ne||o<0||!!(2048&a);i<0||!!(1024&a)||function(e){const t=n&&xv(n.text,Ce(),x,mr,e,U,ne);t&&(D?D.push(t):D=[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||(mI(t,n)||Md(t,n))}function sr(e,t,r,i,o){n&&ar(n.text,e)&&(te||(bv(Ce(),x,o,e),te=!0),kr(e),kv(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),kv(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),kv(n.text,Ce(),x,e,t,U),kr(t),2===r&&x.writeLine())}function dr(e,t,r,i){n&&(kr(e),kv(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!==D&&ye(D).nodePos===e}(e)?function(e){if(!n)return;const t=ye(D).detachedCommentEndPos;D.length-1?D.pop():D=void 0;os(n.text,t,e,t)}(t):os(n.text,e,t,e))}function fr(e,t){n&&(-1===Z||e!==Z&&e!==ee)&&as(n.text,e,t)}function mr(e,t,r,i,o,a){n&&ar(n.text,i)&&(kr(i),kv(e,t,r,i,o,a),kr(o))}function gr(e,t){return!!n&&Rd(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=Yd(e),n=lw(e),r=n.source||C;353!==e.kind&&!(32&t)&&n.pos>=0&&Sr(n.source||C,xr(r,n.pos)),128&t&&(G=!0)}function br(e){const t=Yd(e),n=lw(e);128&t&&(G=!1),353!==e.kind&&!(64&t)&&n.end>=0&&Sr(n.source||C,n.end)}function xr(e,t){return e.skipTrivia?e.skipTrivia(t):Qa(e.text,t)}function kr(e){if(G||QS(e)||Cr(C))return;const{line:t,character:n}=za(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 fU(e,t,n,r){t(e)}function mU(e,t,n,r){t(e,n.select(r))}function gU(e,t,n,r){t(e,n)}function hU(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(Wo(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 yS(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):iT}),d);return e.readDirectory(r,i,a,c,u);function g(t,n){if(m&&n===p)return m;const r={files:D(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 Uo(e,t,i)}function a(e){return r.get(Wo(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=Wo(n));if(i)return i;try{return function(t,n){var i;if(!e.realpath||Wo(o(e.realpath(t)))===n){const i={files:D(e.readDirectory(t,void 0,void 0,["*.*"]),l)||[],directories:e.getDirectories(t)||[]};return r.set(Wo(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(Wo(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){sa(Fo(e),(e=>!!r.delete(Wo(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 yU=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(yU||{});function vU(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 bU(e,t){t.forEach((t=>{t.projects.delete(e)&&t.close()}))}function xU(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)))&&xU(e,i,n)}))}function kU(e,t,n){fx(t,e.getMissingFilePaths(),{createNewValue:n,onDeleteValue:rx})}function SU(e,t,n){function r(e,t){return{watcher:n(e,t),flags:t}}t?fx(e,new Map(Object.entries(t)),{createNewValue:r,onDeleteValue:FU,onExistingValue:function(t,n,i){if(t.flags===n)return;t.watcher.close(),e.set(i,r(i,n))}}):dx(e,FU)}function TU({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=RW(n);if(!d)return l(`Project: ${r} Detected ignored path: ${t}`),!0;if((n=d)===e)return!1;if(ko(n)&&!JS(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 Ik(i);case 6:return Dk(i);case 0:return!1}}())return l(`Project: ${r} Detected file add/remove of non supported extension: ${t}`),!0;if(wj(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(YI(n)){if(i.declarationDir)return!1}else if(!To(n,NS))return!1;const p=VS(n),f=Xe(o)?void 0:d$(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 CU(e,t){return!!e&&e.isEmittedFile(t)}var wU=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(wU||{});function NU(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)}`)}}:k$;return{watchFile:c("watchFile"),watchDirectory:c("watchDirectory")};function c(t){return(n,r,i,o,c,l)=>{var _;return Dj(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 DU(e){const t=null==e?void 0:e.fallbackPolling;return{watchFile:void 0!==t?t:1}}function FU(e){e.watcher.close()}function EU(e,t,n="tsconfig.json"){return sa(e,(e=>{const r=Ro(e,n);return t(r)?r:void 0}))}function PU(e,t){const n=Fo(t);return zo(ho(e)?e:Ro(n,e))}function AU(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<o;e++)if(n(r[e])!==n(i[e])){if(0===e)return!0;r.length=e;break}i.length<r.length&&(r.length=i.length)}))?"":r?Oo(r):t}function IU(e,t){return jU(e,t)}function OU(e,t){return(n,r,i)=>{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?zI(n,o,r,t):void 0}}function LU(e,t,n){return(r,i,o,a)=>{try{er("beforeIOWrite"),tv(r,i,o,e,t,n),er("afterIOWrite"),tr("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}}}function jU(e,t,n=co){const r=new Map,i=Vt(n.useCaseSensitiveFileNames);function o(){return Fo(zo(n.getExecutingFilePath()))}const a=Ab(e),s=n.realpath&&(e=>n.realpath(e)),c={getSourceFile:OU((e=>c.readFile(e)),t),getDefaultLibLocation:o,getDefaultLibFileName:e=>Ro(o(),Ds(e)),writeFile:LU(((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 RU(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")||Mq(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 _&&(YI(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 MU(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)),Fk(e.getCompilerOptions())&&(r=ae(r,e.getDeclarationDiagnostics(t,n))),ws(r||s)}function BU(e,t){let n="";for(const r of e)n+=JU(r,t);return n}function JU(e,t){const n=`${si(e)} TS${e.code}: ${ZU(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){const{line:r,character:i}=za(e.file,e.start);return`${ia(e.file.fileName,t.getCurrentDirectory(),(e=>t.getCanonicalFileName(e)))}(${r+1},${i+1}): `+n}return n}var zU=(e=>(e.Grey="[90m",e.Red="[91m",e.Yellow="[93m",e.Blue="[94m",e.Cyan="[96m",e))(zU||{}),qU="[7m",UU=" ",VU="[0m",WU="...",$U="  ",HU="    ";function KU(e){switch(e){case 1:return"[91m";case 0:return"[93m";case 2:return _n.fail("Should never get an Info diagnostic on the command line.");case 3:return"[94m"}}function GU(e,t){return t+e+VU}function XU(e,t,n,r,i,o){const{line:a,character:s}=za(e,t),{line:c,character:l}=za(e,t+n),_=za(e,e.text.length).line,u=c-a>=4;let d=(c+1+"").length;u&&(d=Math.max(WU.length,d));let p="";for(let t=a;t<=c;t++){p+=o.getNewLine(),u&&a+1<t&&t<c-1&&(p+=r+GU(WU.padStart(d),qU)+UU+o.getNewLine(),t=c-1);const n=La(e,t,0),f=t<_?La(e,t+1,0):e.text.length;let m=e.text.slice(n,f);if(m=m.trimEnd(),m=m.replace(/\t/g," "),p+=r+GU((t+1+"").padStart(d),qU)+UU,p+=m+o.getNewLine(),p+=r+GU("".padStart(d),qU)+UU,p+=i,t===a){const e=t===c?l:void 0;p+=m.slice(0,s).replace(/\S/g," "),p+=m.slice(s,e).replace(/./g,"~")}else p+=t===c?m.slice(0,l).replace(/./g,"~"):m.replace(/./g,"~");p+=VU}return p}function QU(e,t,n,r=GU){const{line:i,character:o}=za(e,t);let a="";return a+=r(n?ia(e.fileName,n.getCurrentDirectory(),(e=>n.getCanonicalFileName(e))):e.fileName,"[96m"),a+=":",a+=r(`${i+1}`,"[93m"),a+=":",a+=r(`${o+1}`,"[93m"),a}function YU(e,t){let n="";for(const r of e){if(r.file){const{file:e,start:i}=r;n+=QU(e,i,t),n+=" - "}if(n+=GU(si(r),KU(r.category)),n+=GU(` TS${r.code}: `,"[90m"),n+=ZU(r.messageText,t.getNewLine()),r.file&&r.code!==_a.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=XU(r.file,r.start,r.length,"",KU(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+=$U+QU(e,i,t),n+=XU(e,i,o,HU,"[96m",t)),n+=t.getNewLine(),n+=HU+ZU(a,t.getNewLine())}n+=t.getNewLine()}return n}function ZU(e,t,n=0){if(Ye(e))return e;if(void 0===e)return"";let r="";if(n){r+=t;for(let e=0;e<n;e++)r+="  "}if(r+=e.messageText,n++,e.next)for(const i of e.next)r+=ZU(i,t,n);return r}function eV(e,t){return(Ye(e)?t:e.resolutionMode)||t}function tV(e,t,n){return iV(e,qV(e,t),n)}function nV(e){var t;return hE(e)?e.isTypeOnly:!!(null==(t=e.importClause)?void 0:t.isTypeOnly)}function rV(e,t,n){return iV(e,t,n)}function iV(e,t,n){if(oE(t.parent)||hE(t.parent)||OP(t.parent)){if(nV(t.parent)){const e=aV(t.parent.attributes);if(e)return e}}if(t.parent.parent&&qD(t.parent.parent)){const e=aV(t.parent.parent.attributes);if(e)return e}if(n&&mk(n))return oV(e,t,n)}function oV(e,t,n){var r;if(!n)return;const i=null==(r=rh(t.parent))?void 0:r.parent;if(i&&iE(i)||Lm(t.parent,!1))return 1;if(lf(rh(t.parent)))return PV(e,n)?1:99;const o=AV(e,n);return 1===o?1:Lk(o)||200===o?99:void 0}function aV(e,t){if(!e)return;if(1!==l(e.elements))return void(null==t||t(e,118===e.token?_a.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:_a.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require));const n=e.elements[0];if(ju(n.name))if("resolution-mode"===n.name.text){if(ju(n.value)){if("import"===n.value.text||"require"===n.value.text)return"import"===n.value.text?99:1;null==t||t(n.value,_a.resolution_mode_should_be_either_require_or_import)}}else null==t||t(n.name,118===e.token?_a.resolution_mode_is_the_only_valid_key_for_type_import_attributes:_a.resolution_mode_is_the_only_valid_key_for_type_import_assertions)}var sV={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0};function cV(e){return e.text}var lV={getName:cV,getMode:(e,t,n)=>rV(t,e,n)};function _V(e,t,n,r,i){return{nameAndMode:lV,resolve:(o,a)=>FR(o,e,n,r,i,t,a)}}function uV(e){return Ye(e)?e:e.fileName}var dV={getName:uV,getMode:(e,t,n)=>eV(e,t&&OV(t,n))};function pV(e,t,n,r,i){return{nameAndMode:dV,resolve:(o,a)=>sR(o,e,n,r,t,i,a)}}function fV(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=yR(e,o);let s=_.get(a);s||_.set(a,s=u.resolve(e,o)),l.push(s)}return l}function mV(e,t){return gV(void 0,e,((e,n)=>e&&t(e,n)))}function gV(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)}var hV="__inferred type names__.ts";function yV(e,t,n){return Ro(e.configFilePath?Fo(e.configFilePath):t,`__lib_node_modules_lookup_${n}__.ts`)}function vV(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 bV(e){return lt(e.fileName)}function xV(e){const t=bV(e);return fO.get(t)}function kV(e){switch(null==e?void 0:e.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function SV(e){return void 0!==e.pos}function TV(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=qV(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=Qa(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 CV(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 sd(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&&nd(d,i))return!1;const p=e.getCompilerOptions();return!!ux(p,n)&&((!e.resolvedLibReferences||!nd(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=BV(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=BV(t);return!c(n)}}function wV(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function NV(e,t,n,r){const i=DV(e,t,n,r);return"object"==typeof i?i.impliedNodeFormat:i}function DV(e,t,n,r){const i=xk(r),o=3<=i&&i<=99||qR(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=tM(t,n,r),o=[];i.failedLookupLocations=o,i.affectingLocations=o;const a=nM(Fo(e),i);return{impliedNodeFormat:"module"===(null==a?void 0:a.contents.packageJsonContent.type)?99:1,packageJsonLocations:o,packageJsonScope:a}}():void 0}var FV=new Set([_a.Cannot_redeclare_block_scoped_variable_0.code,_a.A_module_cannot_have_multiple_default_exports.code,_a.Another_export_default_is_here.code,_a.The_first_export_default_is_here.code,_a.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,_a.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,_a.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,_a.constructor_is_a_reserved_word.code,_a.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,_a.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,_a.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,_a.Invalid_use_of_0_in_strict_mode.code,_a.A_label_is_not_allowed_here.code,_a.with_statements_are_not_allowed_in_strict_mode.code,_a.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,_a.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,_a.A_class_declaration_without_the_default_modifier_must_have_a_name.code,_a.A_class_member_cannot_have_the_0_keyword.code,_a.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,_a.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,_a.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,_a.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,_a.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,_a.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,_a.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,_a.A_destructuring_declaration_must_have_an_initializer.code,_a.A_get_accessor_cannot_have_parameters.code,_a.A_rest_element_cannot_contain_a_binding_pattern.code,_a.A_rest_element_cannot_have_a_property_name.code,_a.A_rest_element_cannot_have_an_initializer.code,_a.A_rest_element_must_be_last_in_a_destructuring_pattern.code,_a.A_rest_parameter_cannot_have_an_initializer.code,_a.A_rest_parameter_must_be_last_in_a_parameter_list.code,_a.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,_a.A_return_statement_cannot_be_used_inside_a_class_static_block.code,_a.A_set_accessor_cannot_have_rest_parameter.code,_a.A_set_accessor_must_have_exactly_one_parameter.code,_a.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,_a.An_export_declaration_cannot_have_modifiers.code,_a.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,_a.An_import_declaration_cannot_have_modifiers.code,_a.An_object_member_cannot_be_declared_optional.code,_a.Argument_of_dynamic_import_cannot_be_spread_element.code,_a.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,_a.Cannot_redeclare_identifier_0_in_catch_clause.code,_a.Catch_clause_variable_cannot_have_an_initializer.code,_a.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,_a.Classes_can_only_extend_a_single_class.code,_a.Classes_may_not_have_a_field_named_constructor.code,_a.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,_a.Duplicate_label_0.code,_a.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,_a.for_await_loops_cannot_be_used_inside_a_class_static_block.code,_a.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,_a.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,_a.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,_a.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,_a.Jump_target_cannot_cross_function_boundary.code,_a.Line_terminator_not_permitted_before_arrow.code,_a.Modifiers_cannot_appear_here.code,_a.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,_a.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,_a.Private_identifiers_are_not_allowed_outside_class_bodies.code,_a.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,_a.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,_a.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,_a.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,_a.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,_a.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,_a.Trailing_comma_not_allowed.code,_a.Variable_declaration_list_cannot_be_empty.code,_a._0_and_1_operations_cannot_be_mixed_without_parentheses.code,_a._0_expected.code,_a._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,_a._0_list_cannot_be_empty.code,_a._0_modifier_already_seen.code,_a._0_modifier_cannot_appear_on_a_constructor_declaration.code,_a._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,_a._0_modifier_cannot_appear_on_a_parameter.code,_a._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,_a._0_modifier_cannot_be_used_here.code,_a._0_modifier_must_precede_1_modifier.code,_a._0_declarations_can_only_be_declared_inside_a_block.code,_a._0_declarations_must_be_initialized.code,_a.extends_clause_already_seen.code,_a.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,_a.Class_constructor_may_not_be_a_generator.code,_a.Class_constructor_may_not_be_an_accessor.code,_a.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_a.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_a.Private_field_0_must_be_declared_in_an_enclosing_class.code,_a.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]);function EV(e,t,n,r,o){var a,c,l,u,d,f,m,g,h,v,x,S,T,w,N,D;const 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,{rootNames:E,options:I,configFileParsingDiagnostics:O,projectReferences:L,typeScriptVersion:j}=F;let{oldProgram:M}=F;for(const e of EO)if(Ne(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 B=ut((()=>Kn("ignoreDeprecations",_a.Invalid_value_for_ignoreDeprecations)));let J,z,q,U,W,H,K,G,X,Q,Y,Z,te,ne,ie,oe,ae,se,ce,_e,ue,de,pe=We();const fe="number"==typeof I.maxNodeModuleJsDepth?I.maxNodeModuleJsDepth:0;let me=0;const ge=new Map,he=new Map;null==(a=$n)||a.push($n.Phase.Program,"createProgram",{configFilePath:I.configFilePath,rootDir:I.rootDir},!0),er("beforeProgram");const ye=F.host||IU(I),ve=MV(ye);let be=I.noLib;const xe=ut((()=>ye.getDefaultLibFileName(I))),ke=ye.getDefaultLibLocation?ye.getDefaultLibLocation():Fo(xe()),Se=_y();let Te=[];const Ce=ye.getCurrentDirectory(),we=IS(I),De=OS(I,we),Fe=new Map;let Ee,Pe,Ae,Ie;const Oe=ye.hasInvalidatedResolutions||rt;let Le;if(ye.resolveModuleNameLiterals?(Ie=ye.resolveModuleNameLiterals.bind(ye),Ae=null==(c=ye.getModuleResolutionCache)?void 0:c.call(ye)):ye.resolveModuleNames?(Ie=(e,t,n,r,i,o)=>ye.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:eT(e.resolvedFileName)}}:sV)),Ae=null==(l=ye.getModuleResolutionCache)?void 0:l.call(ye)):(Ae=TR(Ce,On,I),Ie=(e,t,n,r,i)=>fV(e,t,n,r,i,ye,Ae,_V)),ye.resolveTypeReferenceDirectiveReferences)Le=ye.resolveTypeReferenceDirectiveReferences.bind(ye);else if(ye.resolveTypeReferenceDirectives)Le=(e,t,n,r,i)=>ye.resolveTypeReferenceDirectives(e.map(uV),t,n,r,null==i?void 0:i.impliedNodeFormat).map((e=>({resolvedTypeReferenceDirective:e})));else{const e=CR(Ce,On,void 0,null==Ae?void 0:Ae.getPackageJsonInfoCache(),null==Ae?void 0:Ae.optionsToRedirectsKey);Le=(t,n,r,i,o)=>fV(t,n,r,i,o,ye,e,pV)}const je=ye.hasInvalidatedLibResolutions||rt;let Re;if(ye.resolveLibrary)Re=ye.resolveLibrary.bind(ye);else{const e=TR(Ce,On,I,null==Ae?void 0:Ae.getPackageJsonInfoCache());Re=(t,n,r)=>NR(t,n,r,ye,e)}const Me=new Map;let Be,Je=new Map,ze=We();const qe=new Map;let Ue=new Map;const $e=ye.useCaseSensitiveFileNames()?new Map:void 0;let He,Ke,Ge,Qe;const Ze=!!(null==(u=ye.useSourceOfProjectReferenceRedirect)?void 0:u.call(ye))&&!I.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:tt,fileExists:it,directoryExists:ot}=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()&&(!!YI(t)&&d(t,!0))}function l(t){const r=e.getSourceOfProjectReferenceRedirect(e.toPath(t));return void 0!==r?!Ye(r)||n.call(e.compilerHost,r):void 0}function _(n){const r=e.toPath(n),i=`${r}${_o}`;return rd(t,(e=>r===e||Kt(e,i)||Kt(r,`${e}/`)))}function u(t){var n;if(!e.getResolvedProjectReferences()||OT(t))return;if(!o||!t.includes(zR))return;const r=e.getSymlinkCache(),i=Wo(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=Wo(e.toPath(a)))!==i?r.setSymlinkedDirectory(t,{real:Wo(a),realPath:s}):r.setSymlinkedDirectory(i,!1)}function d(t,n){var r;const i=n?e=>l(e):e=>_(e),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(zR)&&(!(!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:ye,getSymlinkCache:or,useSourceOfProjectReferenceRedirect:Ze,toPath:Et,getResolvedProjectReferences:Bt,getSourceOfProjectReferenceRedirect:Tn,forEachResolvedProjectReference:Sn}),st=ye.readFile.bind(ye);null==(d=$n)||d.push($n.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!M});const ct=function(e,t){return!!e&&ed(e.getCompilerOptions(),t,CO)}(M,I);let _t;if(null==(f=$n)||f.pop(),null==(m=$n)||m.push($n.Phase.Program,"tryReuseStructureFromOldProgram",{}),_t=function(){var e;if(!M)return 0;const t=M.getCompilerOptions();if(Yu(t,I))return 0;if(!ee(M.getRootFileNames(),E))return 0;if(gV(M.getProjectReferences(),M.getResolvedProjectReferences(),((e,t,n)=>{const r=jn((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?wn(t.sourceFile.path).commandLine.projectReferences:L,sd))))return 0;L&&(He=L.map(jn));const n=[],r=[];if(_t=2,nd(M.getMissingFilePaths(),(e=>ye.fileExists(e))))return 0;const i=M.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=fn(t.fileName,Ae,ye,I);let o,a=ye.getSourceFileByPath?ye.getSourceFileByPath(t.fileName,t.resolvedPath,i,void 0,ct):ye.getSourceFile(t.fileName,i,void 0,ct);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(M.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=M.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?_t=1:ee(t.libReferenceDirectives,a.libReferenceDirectives,rn)?t.hasNoDefaultLib!==a.hasNoDefaultLib?_t=1:ee(t.referencedFiles,a.referencedFiles,rn)?(sn(a),ee(t.imports,a.imports,on)&&ee(t.moduleAugmentations,a.moduleAugmentations,on)?(12582912&t.flags)!=(12582912&a.flags)?_t=1:ee(t.typeReferenceDirectives,a.typeReferenceDirectives,rn)||(_t=1):_t=1):_t=1:_t=1,r.push(a)):Oe(t.path)&&(_t=1,r.push(a)),n.push(a)}if(2!==_t)return _t;for(const e of r){const t=zV(e),n=At(t,e);(ce??(ce=new Map)).set(e.path,n);const r=Fn(e);gd(t,n,(t=>M.getResolvedModule(e,t.text,iV(e,t,r))),cd)&&(_t=1);const i=e.typeReferenceDirectives,o=It(i,e);(ue??(ue=new Map)).set(e.path,o);gd(i,o,(t=>M.getResolvedTypeReferenceDirective(e,uV(t),ur(t,e))),md)&&(_t=1)}if(2!==_t)return _t;if(Zu(t,I))return 1;if(M.resolvedLibReferences&&nd(M.resolvedLibReferences,((e,t)=>An(t).actual!==e.actual)))return 1;if(ye.hasChangedAutomaticTypeDirectiveNames){if(ye.hasChangedAutomaticTypeDirectiveNames())return 1}else if(ne=uR(I,ye),!ee(M.getAutomaticTypeDirectiveNames(),ne))return 1;Ue=M.getMissingFilePaths(),_n.assert(n.length===M.getSourceFiles().length);for(const e of n)qe.set(e.path,e);return M.getFilesByNameMap().forEach(((e,t)=>{e?e.path!==t?qe.set(t,qe.get(e.path)):M.isSourceFileFromExternalLibrary(e)&&he.set(e.path,!0):qe.set(t,e)})),q=n,pe=M.getFileIncludeReasons(),te=M.getFileProcessingDiagnostics(),ne=M.getAutomaticTypeDirectiveNames(),ie=M.getAutomaticTypeDirectiveResolutions(),Je=M.sourceFileToPackageName,ze=M.redirectTargetsMap,Be=M.usesUriStyleNodeCoreModules,se=M.resolvedModules,_e=M.resolvedTypeReferenceDirectiveNames,oe=M.resolvedLibReferences,de=M.getCurrentPackagesMap(),2}(),null==(g=$n)||g.pop(),2!==_t){if(J=[],z=[],L&&(He||(He=L.map(jn)),E.length&&(null==He||He.forEach(((e,t)=>{if(!e)return;const n=e.commandLine.options.outFile;if(Ze){if(n||0===bk(e.commandLine.options))for(const n of e.commandLine.fileNames)un(n,{kind:1,index:t})}else if(n)un(HS(n,".d.ts"),{kind:2,index:t});else if(0===bk(e.commandLine.options)){const n=ut((()=>eU(e.commandLine,!ye.useCaseSensitiveFileNames())));for(const r of e.commandLine.fileNames)YI(r)||So(r,".json")||un($q(r,e.commandLine,!ye.useCaseSensitiveFileNames(),n),{kind:2,index:t})}})))),null==(h=$n)||h.push($n.Phase.Program,"processRootFiles",{count:E.length}),_(E,((e,t)=>nn(e,!1,!1,{kind:0,index:t}))),null==(v=$n)||v.pop(),ne??(ne=E.length?uR(I,ye):s),ie=vR(),ne.length){null==(x=$n)||x.push($n.Phase.Program,"processTypeReferences",{count:ne.length});const e=Ro(I.configFilePath?Fo(I.configFilePath):Ce,hV),t=It(ne,e);for(let e=0;e<ne.length;e++)ie.set(ne[e],void 0,t[e]),En(ne[e],void 0,t[e],{kind:8,typeReference:ne[e],packageId:null==(T=null==(S=t[e])?void 0:S.resolvedTypeReferenceDirective)?void 0:T.packageId});null==(w=$n)||w.pop()}if(E.length&&!be){const e=xe();!I.lib&&e?nn(e,!0,!1,{kind:6}):_(I.lib,((e,t)=>{nn(Pn(e),!0,!1,{kind:6,index:t})}))}q=le(J,(function(e,t){return yt(Ft(e),Ft(t))})).concat(z),J=void 0,z=void 0,G=void 0}if(M&&ye.onReleaseOldSourceFile){const e=M.getSourceFiles();for(const t of e){const e=Vt(t.resolvedPath);(ct||!e||e.impliedNodeFormat!==t.impliedNodeFormat||t.resolvedPath===t.path&&e.resolvedPath!==t.path)&&ye.onReleaseOldSourceFile(t,M.getCompilerOptions(),!!Vt(t.path),e)}ye.getParsedCommandLine||M.forEachResolvedProjectReference((e=>{wn(e.sourceFile.path)||ye.onReleaseOldSourceFile(e.sourceFile,M.getCompilerOptions(),!1,void 0)}))}M&&ye.onReleaseParsedCommandLine&&gV(M.getProjectReferences(),M.getResolvedProjectReferences(),((e,t,n)=>{const r=BV((null==t?void 0:t.commandLine.projectReferences[n])||M.getProjectReferences()[n]);(null==Ke?void 0:Ke.has(Et(r)))||ye.onReleaseParsedCommandLine(r,e,M.getCompilerOptions())})),M=void 0,ae=void 0,ce=void 0,ue=void 0;const dt={getRootFileNames:()=>E,getSourceFile:Ut,getSourceFileByPath:Vt,getSourceFiles:()=>q,getMissingFilePaths:()=>Ue,getModuleResolutionCache:()=>Ae,getFilesByNameMap:()=>qe,getCompilerOptions:()=>I,getSyntacticDiagnostics:function(e,t){return Wt(e,Ht,t)},getOptionsDiagnostics:function(){return ws($(pt().getGlobalDiagnostics(),function(){if(!I.configFile)return s;let e=pt().getDiagnostics(I.configFile.fileName);return Sn((t=>{e=$(e,pt().getDiagnostics(t.sourceFile.fileName))})),e}()))},getGlobalDiagnostics:function(){return E.length?ws(zt().getGlobalDiagnostics().slice()):s},getSemanticDiagnostics:function(e,t,n){return Wt(e,((e,t)=>function(e,t,n){return $(RV(Qt(e,t,n),I),$t(e))}(e,t,n)),t)},getCachedSemanticDiagnostics:function(e){return null==Y?void 0:Y.get(e.path)},getSuggestionDiagnostics:function(e,t){return Xt((()=>zt().getSuggestionDiagnostics(e,t)))},getDeclarationDiagnostics:function(e,t){return Wt(e,tn,t)},getBindAndCheckDiagnostics:function(e,t){return Qt(e,t,void 0)},getProgramDiagnostics:$t,getTypeChecker:zt,getClassifiableNames:function(){var e;if(!K){zt(),K=new Set;for(const t of q)null==(e=t.classifiableNames)||e.forEach((e=>K.add(e)))}return K},getCommonSourceDirectory:Pt,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=Xt((()=>function(e,t,n,r,i,o,a,s){if(!a){const i=jV(e,t,n,r);if(i)return i}const c=zt(),l=c.getEmitResolver(I.outFile?void 0:t,r,iU(i,a));er("beforeEmit");const _=c.runWithCancellationToken(r,(()=>oU(l,jt(n),t,Nq(I,o,i),i,!1,a,s)));return er("afterEmit"),tr("Emit","beforeEmit","afterEmit"),_}(dt,e,t,n,r,i,o,a)));return null==(c=$n)||c.pop(),l},getCurrentDirectory:()=>Ce,getNodeCount:()=>zt().getNodeCount(),getIdentifierCount:()=>zt().getIdentifierCount(),getSymbolCount:()=>zt().getSymbolCount(),getTypeCount:()=>zt().getTypeCount(),getInstantiationCount:()=>zt().getInstantiationCount(),getRelationCacheSizes:()=>zt().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>te,getAutomaticTypeDirectiveNames:()=>ne,getAutomaticTypeDirectiveResolutions:()=>ie,isSourceFileFromExternalLibrary:Jt,isSourceFileDefaultLibrary:function(e){if(!e.isDeclarationFile)return!1;if(e.hasNoDefaultLib)return!0;if(I.noLib)return!1;const t=ye.useCaseSensitiveFileNames()?gt:mt;return I.lib?V(I.lib,(n=>{const r=oe.get(n);return!!r&&t(e.fileName,r.actual)})):t(e.fileName,xe())},getModeForUsageLocation:ar,getEmitSyntaxForUsageLocation:function(e,t){return oV(e,t,Fn(e))},getModeForResolutionAtIndex:sr,getSourceFileFromReference:function(e,t){return cn(PU(t.fileName,e.fileName),Ut)},getLibFileFromReference:function(e){var t;const n=xV(e),r=n&&(null==(t=null==oe?void 0:oe.get(n))?void 0:t.actual);return void 0!==r?Ut(r):void 0},sourceFileToPackageName:Je,redirectTargetsMap:ze,usesUriStyleNodeCoreModules:Be,resolvedModules:se,resolvedTypeReferenceDirectiveNames:_e,resolvedLibReferences:oe,getResolvedModule:ft,getResolvedModuleFromModuleSpecifier:function(e,t){return t??(t=yd(e)),_n.assertIsDefined(t,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),ft(t,e.text,ar(t,e))},getResolvedTypeReferenceDirective:ht,getResolvedTypeReferenceDirectiveFromTypeReferenceDirective:function(e,t){return ht(t,e.fileName,ur(e,t))},forEachResolvedModule:vt,forEachResolvedTypeReferenceDirective:bt,getCurrentPackagesMap:()=>de,typesPackageExists:function(e){return kt().has(SM(e))},packageBundlesTypes:function(e){return!!kt().get(e)},isEmittedFile:function(e){if(I.noEmit)return!1;const t=Et(e);if(Vt(t))return!1;const n=I.outFile;if(n)return ir(t,n)||ir(t,VS(n)+".d.ts");if(I.declarationDir&&ea(I.declarationDir,t,Ce,!ye.useCaseSensitiveFileNames()))return!0;if(I.outDir)return ea(I.outDir,t,Ce,!ye.useCaseSensitiveFileNames());if(To(t,NS)||YI(t)){const e=VS(t);return!!Vt(e+".ts")||!!Vt(e+".tsx")}return!1},getConfigFileParsingDiagnostics:function(){return O||s},getProjectReferences:function(){return L},getResolvedProjectReferences:Bt,getProjectReferenceRedirect:yn,getResolvedProjectReferenceToRedirect:kn,getResolvedProjectReferenceByPath:wn,forEachResolvedProjectReference:Sn,isSourceOfProjectReferenceRedirect:Cn,getRedirectReferenceForResolutionFromSourceOfProject:Dt,getCompilerOptionsForFile:Fn,getDefaultResolutionModeForFile:cr,getEmitModuleFormatOfFile:lr,getImpliedNodeFormatForEmit:function(e){return IV(e,Fn(e))},shouldTransformImportCall:_r,emitBuildInfo:function(e){var t,n;null==(t=$n)||t.push($n.Phase.Emit,"emitBuildInfo",{},!0),er("beforeEmit");const r=oU(cU,jt(e),void 0,wq,!1,!0);return er("afterEmit"),tr("Emit","beforeEmit","afterEmit"),null==(n=$n)||n.pop(),r},fileExists:it,readFile:st,directoryExists:ot,getSymlinkCache:or,realpath:null==(N=ye.realpath)?void 0:N.bind(ye),useCaseSensitiveFileNames:()=>ye.useCaseSensitiveFileNames(),getCanonicalFileName:On,getFileIncludeReasons:()=>pe,structureIsReused:_t,writeFile:Mt,getGlobalTypingsCacheLocation:Ve(ye,ye.getGlobalTypingsCacheLocation)};return tt(),function(){I.strictPropertyInitialization&&!zk(I,"strictNullChecks")&&Hn(_a.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks");I.exactOptionalPropertyTypes&&!zk(I,"strictNullChecks")&&Hn(_a.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks");(I.isolatedModules||I.verbatimModuleSyntax)&&I.outFile&&Hn(_a.Option_0_cannot_be_specified_with_option_1,"outFile",I.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules");I.isolatedDeclarations&&(Ik(I)&&Hn(_a.Option_0_cannot_be_specified_with_option_1,"allowJs","isolatedDeclarations"),Fk(I)||Hn(_a.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"isolatedDeclarations","declaration","composite"));I.inlineSourceMap&&(I.sourceMap&&Hn(_a.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),I.mapRoot&&Hn(_a.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap"));I.composite&&(!1===I.declaration&&Hn(_a.Composite_projects_may_not_disable_declaration_emit,"declaration"),!1===I.incremental&&Hn(_a.Composite_projects_may_not_disable_incremental_compilation,"declaration"));const e=I.outFile;I.tsBuildInfoFile||!I.incremental||e||I.configFilePath||Se.add(Yx(_a.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));if(function(){Rn("5.0","5.5",(function(e,t,n,r,...i){if(n){const o=ek(void 0,_a.Use_0_instead,n);Xn(!t,e,void 0,ek(o,r,...i))}else Xn(!t,e,void 0,r,...i)}),(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",void 0,"outFile"),I.importsNotUsedAsValues&&e("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),I.preserveValueImports&&e("preserveValueImports",void 0,"verbatimModuleSyntax")}))}(),function(){const e=I.suppressOutputPathCheck?void 0:Jq(I);gV(L,He,((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){Gn(t,n,o,...a)}Rn("5.0","5.5",r,(t=>{e.prepend&&t("prepend")}))}(i,o,r),!t)return void Gn(o,r,_a.File_0_not_found,i.path);const a=t.commandLine.options;if(!a.composite||a.noEmit){(n?n.commandLine.fileNames:E).length&&(a.composite||Gn(o,r,_a.Referenced_project_0_must_have_setting_composite_Colon_true,i.path),a.noEmit&&Gn(o,r,_a.Referenced_project_0_may_not_disable_emit,i.path))}!n&&e&&e===Jq(a)&&(Gn(o,r,_a.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,e,i.path),Fe.set(Et(e),!0))}))}(),I.composite){const e=new Set(E.map(Et));for(const t of q)Xy(t,dt)&&!e.has(t.path)&&Jn(t,_a.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(Ne(I.paths,e))if(Qk(e)||qn(!0,e,_a.Pattern_0_can_have_at_most_one_Asterisk_character,e),Xe(I.paths[e])){const t=I.paths[e].length;0===t&&qn(!1,e,_a.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,e);for(let n=0;n<t;n++){const t=I.paths[e][n],r=typeof t;"string"===r?(Qk(t)||zn(e,n,_a.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,t,e),I.baseUrl||bo(t)||vo(t)||zn(e,n,_a.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):zn(e,n,_a.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,t,e,r)}}else qn(!1,e,_a.Substitutions_for_pattern_0_should_be_an_array,e);I.sourceMap||I.inlineSourceMap||(I.inlineSources&&Hn(_a.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),I.sourceRoot&&Hn(_a.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot"));!I.mapRoot||I.sourceMap||I.declarationMap||Hn(_a.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap");I.declarationDir&&(Fk(I)||Hn(_a.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),e&&Hn(_a.Option_0_cannot_be_specified_with_option_1,"declarationDir","outFile"));I.declarationMap&&!Fk(I)&&Hn(_a.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite");I.lib&&I.noLib&&Hn(_a.Option_0_cannot_be_specified_with_option_1,"lib","noLib");const t=vk(I),n=y(q,(e=>VI(e)&&!e.isDeclarationFile));if(I.isolatedModules||I.verbatimModuleSyntax)0===I.module&&t<2&&I.isolatedModules&&Hn(_a.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),!1===I.preserveConstEnums&&Hn(_a.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,I.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(n&&t<2&&0===I.module){const e=Xp(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);Se.add(Xx(n,e.start,e.length,_a.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(e&&!I.emitDeclarationOnly)if(I.module&&2!==I.module&&4!==I.module)Hn(_a.Only_amd_and_system_modules_are_supported_alongside_0,"outFile","module");else if(void 0===I.module&&n){const e=Xp(n,"boolean"==typeof n.externalModuleIndicator?n:n.externalModuleIndicator);Se.add(Xx(n,e.start,e.length,_a.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,"outFile"))}Dk(I)&&(1===xk(I)?Hn(_a.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):jk(I)||Hn(_a.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||Fk(I)&&I.declarationDir){const e=Pt();I.outDir&&""===e&&q.some((e=>Do(e.fileName)>1))&&Hn(_a.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}I.checkJs&&!Ik(I)&&Hn(_a.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs");I.emitDeclarationOnly&&(Fk(I)||Hn(_a.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"));I.emitDecoratorMetadata&&!I.experimentalDecorators&&Hn(_a.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators");I.jsxFactory?(I.reactNamespace&&Hn(_a.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==I.jsx&&5!==I.jsx||Hn(_a.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",uO.get(""+I.jsx)),qI(I.jsxFactory,t)||Kn("jsxFactory",_a.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,I.jsxFactory)):I.reactNamespace&&!ms(I.reactNamespace,t)&&Kn("reactNamespace",_a.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,I.reactNamespace);I.jsxFragmentFactory&&(I.jsxFactory||Hn(_a.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==I.jsx&&5!==I.jsx||Hn(_a.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",uO.get(""+I.jsx)),qI(I.jsxFragmentFactory,t)||Kn("jsxFragmentFactory",_a.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,I.jsxFragmentFactory));I.reactNamespace&&(4!==I.jsx&&5!==I.jsx||Hn(_a.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",uO.get(""+I.jsx)));I.jsxImportSource&&2===I.jsx&&Hn(_a.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",uO.get(""+I.jsx));const r=bk(I);I.verbatimModuleSyntax&&(2!==r&&3!==r&&4!==r||Hn(_a.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"));I.allowImportingTsExtensions&&!(I.noEmit||I.emitDeclarationOnly||I.rewriteRelativeImportExtensions)&&Kn("allowImportingTsExtensions",_a.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const i=xk(I);I.resolvePackageJsonExports&&!Bk(i)&&Hn(_a.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports");I.resolvePackageJsonImports&&!Bk(i)&&Hn(_a.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports");I.customConditions&&!Bk(i)&&Hn(_a.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions");100!==i||Lk(r)||200===r||Kn("moduleResolution",_a.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler");if(pi[r]&&100<=r&&r<=199&&!(3<=i&&i<=99)){const e=pi[r],t=ci[e]?e:"Node16";Kn("moduleResolution",_a.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];Kn("module",_a.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,e,e)}if(!I.noEmit&&!I.suppressOutputPathCheck){const e=jt(),t=new Set;Bq(e,(e=>{I.emitDeclarationOnly||o(e.jsFilePath,t),o(e.declarationFilePath,t)}))}function o(e,t){if(e){const n=Et(e);if(qe.has(n)){let t;I.configFilePath||(t=ek(void 0,_a.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=ek(t,_a.Cannot_write_file_0_because_it_would_overwrite_input_file,e),rr(e,Zx(t))}const r=ye.useCaseSensitiveFileNames()?n:lt(n);t.has(r)?rr(e,Yx(_a.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,e)):t.add(r)}}}(),er("afterProgram"),tr("Program","beforeProgram","afterProgram"),null==(D=$n)||D.pop(),dt;function pt(){return Te&&(null==te||te.forEach((e=>{switch(e.kind){case 1:return Se.add(Mn(e.file&&Vt(e.file),e.fileProcessingReason,e.diagnostic,e.args||s));case 0:return Se.add(function({reason:e}){const{file:t,pos:n,end:r}=TV(dt,e),i=bV(t.libReferenceDirectives[e.index]),o=Ot(Rt(Gt(i,"lib."),".d.ts"),pO,at);return Xx(t,_n.checkDefined(n),_n.checkDefined(r)-n,o?_a.Cannot_find_lib_definition_for_0_Did_you_mean_1:_a.Cannot_find_lib_definition_for_0,i,o)}(e));case 2:return e.diagnostics.forEach((e=>Se.add(e)));default:_n.assertNever(e)}})),Te.forEach((({file:e,diagnostic:t,args:n})=>Se.add(Mn(e,void 0,t,n)))),Te=void 0,X=void 0,Q=void 0),Se}function ft(e,t,n){var r;return null==(r=null==se?void 0:se.get(e.path))?void 0:r.get(t,n)}function ht(e,t,n){var r;return null==(r=null==_e?void 0:_e.get(e.path))?void 0:r.get(t,n)}function vt(e,t){xt(se,e,t)}function bt(e,t){xt(_e,e,t)}function xt(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 kt(){return de||(de=new Map,vt((({resolvedModule:e})=>{(null==e?void 0:e.packageId)&&de.set(e.packageId.name,".d.ts"===e.extension||!!de.get(e.packageId.name))})),de)}function St(e){var t;(null==(t=e.resolutionDiagnostics)?void 0:t.length)&&(te??(te=[])).push({kind:2,diagnostics:e.resolutionDiagnostics})}function Tt(e,t,n,r){if(ye.resolveModuleNameLiterals||!ye.resolveModuleNames)return St(n);if(!Ae||Cs(t))return;const i=Fo(Jo(e.originalFileName,Ce)),o=Nt(e),a=Ae.getFromNonRelativeNameCache(t,r,i,o);a&&St(a)}function Ct(e,t,n){var r,i;const o=Jo(t.originalFileName,Ce),a=Nt(t);null==(r=$n)||r.push($n.Phase.Program,"resolveModuleNamesWorker",{containingFileName:o}),er("beforeResolveModule");const s=Ie(e,o,a,I,t,n);return er("afterResolveModule"),tr("ResolveModule","beforeResolveModule","afterResolveModule"),null==(i=$n)||i.pop(),s}function wt(e,t,n){var r,i;const o=Ye(t)?void 0:t,a=Ye(t)?t:Jo(t.originalFileName,Ce),s=o&&Nt(o);null==(r=$n)||r.push($n.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:a}),er("beforeResolveTypeReference");const c=Le(e,a,s,I,o,n);return er("afterResolveTypeReference"),tr("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),null==(i=$n)||i.pop(),c}function Nt(e){const t=kn(e.originalFileName);if(t||!YI(e.originalFileName))return t;const n=Dt(e.path);if(n)return n;if(!ye.realpath||!I.preserveSymlinks||!e.originalFileName.includes(zR))return;const r=Et(ye.realpath(e.originalFileName));return r===e.path?void 0:Dt(r)}function Dt(e){const t=Tn(e);return Ye(t)?kn(t):t?Sn((t=>{const n=t.commandLine.options.outFile;if(n)return Et(n)===e?t:void 0})):void 0}function Ft(e){if(ea(ke,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=pO.indexOf(n);if(-1!==r)return r+1}return pO.length+2}function Et(e){return Uo(e,Ce,On)}function Pt(){if(void 0===W){const e=C(q,(e=>Xy(e,dt)));W=Zq(I,(()=>R(e,(e=>e.isDeclarationFile?void 0:e.fileName))),Ce,On,(t=>function(e,t){let n=!0;const r=ye.getCanonicalFileName(Jo(t,Ce));for(const i of e)if(!i.isDeclarationFile){0!==ye.getCanonicalFileName(Jo(i.fileName,Ce)).indexOf(r)&&(Jn(i,_a.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[i.fileName,t]),n=!1)}return n}(e,t)))}return W}function At(e,t){return Lt({entries:e,containingFile:t,containingSourceFile:t,redirectedReference:Nt(t),nameAndModeGetter:lV,resolutionWorker:Ct,getResolutionFromOldProgram:(e,n)=>null==M?void 0:M.getResolvedModule(t,e,n),getResolved:ld,canReuseResolutionsInFile:()=>t===(null==M?void 0:M.getSourceFile(t.fileName))&&!Oe(t.path),resolveToOwnAmbientModule:!0})}function It(e,t){const n=Ye(t)?void 0:t;return Lt({entries:e,containingFile:t,containingSourceFile:n,redirectedReference:n&&Nt(n),nameAndModeGetter:dV,resolutionWorker:wt,getResolutionFromOldProgram:(e,t)=>{var r;return n?null==M?void 0:M.getResolvedTypeReferenceDirective(n,e,t):null==(r=null==M?void 0:M.getAutomaticTypeDirectiveResolutions())?void 0:r.get(e,t)},getResolved:_d,canReuseResolutionsInFile:()=>n?n===(null==M?void 0:M.getSourceFile(n.fileName))&&!Oe(n.path):!Oe(Et(t))})}function Lt({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!==_t||_&&n.ambientModuleNames.length))return o(e,t,void 0);let u,d,p,f;const m=l();for(let s=0;s<e.length;s++){const l=e[s];if(m){const _=i.getName(l),u=a(_,i.getMode(l,n,(null==r?void 0:r.commandLine.options)??I)),d=u&&c(u);if(d){zj(I,ye)&&Jj(ye,o===Ct?d.packageId?_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:d.packageId?_a.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_a.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,_,n?Jo(n.originalFileName,Ce):t,d.resolvedFileName,d.packageId&&fd(d.packageId)),(p??(p=new Array(e.length)))[s]=u,(f??(f=[])).push(l);continue}}if(_){const t=i.getName(l);if(k(n.ambientModuleNames,t)){zj(I,ye)&&Jj(ye,_a.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,t,Jo(n.originalFileName,Ce)),(p??(p=new Array(e.length)))[s]=sV;continue}}(u??(u=[])).push(l),(d??(d=[])).push(s)}if(!u)return p;const g=o(u,t,f);return p?(g.forEach(((e,t)=>p[d[t]]=e)),p):g}function jt(e){return{getCanonicalFileName:On,getCommonSourceDirectory:dt.getCommonSourceDirectory,getCompilerOptions:dt.getCompilerOptions,getCurrentDirectory:()=>Ce,getSourceFile:dt.getSourceFile,getSourceFileByPath:dt.getSourceFileByPath,getSourceFiles:dt.getSourceFiles,isSourceFileFromExternalLibrary:Jt,getResolvedProjectReferenceToRedirect:kn,getProjectReferenceRedirect:yn,isSourceOfProjectReferenceRedirect:Cn,getSymlinkCache:or,writeFile:e||Mt,isEmitBlocked:qt,shouldTransformImportCall:_r,getEmitModuleFormatOfFile:lr,getDefaultResolutionModeForFile:cr,getModeForResolutionAtIndex:sr,readFile:e=>ye.readFile(e),fileExists:e=>{const t=Et(e);return!!Vt(t)||!Ue.has(t)&&ye.fileExists(e)},realpath:Ve(ye,ye.realpath),useCaseSensitiveFileNames:()=>ye.useCaseSensitiveFileNames(),getBuildInfo:()=>{var e;return null==(e=dt.getBuildInfo)?void 0:e.call(dt)},getSourceFileFromReference:(e,t)=>dt.getSourceFileFromReference(e,t),redirectTargetsMap:ze,getFileIncludeReasons:dt.getFileIncludeReasons,createHash:Ve(ye,ye.createHash),getModuleResolutionCache:()=>dt.getModuleResolutionCache(),trace:Ve(ye,ye.trace),getGlobalTypingsCacheLocation:dt.getGlobalTypingsCacheLocation}}function Mt(e,t,n,r,i,o){ye.writeFile(e,t,n,r,i,o)}function Bt(){return He}function Jt(e){return!!he.get(e.path)}function zt(){return H||(H=GB(dt))}function qt(e){return Fe.has(Et(e))}function Ut(e){return Vt(Et(e))}function Vt(e){return qe.get(e)||void 0}function Wt(e,t,n){return ws(e?t(e,n):A(dt.getSourceFiles(),(e=>(n&&n.throwIfCancellationRequested(),t(e,n)))))}function $t(e){var t;if(uT(e,I,dt))return s;const n=pt().getDiagnostics(e.fileName);return(null==(t=e.commentDirectives)?void 0:t.length)?Zt(e,e.commentDirectives,n).diagnostics:n}function Ht(e){return Fm(e)?(e.additionalSyntacticDiagnostics||(e.additionalSyntacticDiagnostics=function(e){return Xt((()=>{const t=[];return n(e,e),MI(e,n,r),t;function n(e,n){switch(n.kind){case 169:case 172:case 174:if(n.questionToken===e)return t.push(a(e,_a.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(n.type===e)return t.push(a(e,_a.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(e.kind){case 273:if(e.isTypeOnly)return t.push(a(n,_a._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(e.isTypeOnly)return t.push(a(e,_a._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(e.isTypeOnly)return t.push(a(e,_a._0_declarations_can_only_be_used_in_TypeScript_files,mE(e)?"import...type":"export...type")),"skip";break;case 271:return t.push(a(e,_a.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(e.isExportEquals)return t.push(a(e,_a.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(119===e.token)return t.push(a(e,_a.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const r=Fa(120);return _n.assertIsDefined(r),t.push(a(e,_a._0_declarations_can_only_be_used_in_TypeScript_files,r)),"skip";case 267:const i=32&e.flags?Fa(145):Fa(144);return _n.assertIsDefined(i),t.push(a(e,_a._0_declarations_can_only_be_used_in_TypeScript_files,i)),"skip";case 265:return t.push(a(e,_a.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return e.body?void 0:(t.push(a(e,_a.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const o=_n.checkDefined(Fa(94));return t.push(a(e,_a._0_declarations_can_only_be_used_in_TypeScript_files,o)),"skip";case 235:return t.push(a(e,_a.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return t.push(a(e.type,_a.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return t.push(a(e.type,_a.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:_n.fail()}}function r(e,n){if(EA(n)){const e=y(n.modifiers,lD);e&&t.push(a(e,_a.Decorators_are_not_valid_here))}else if(_I(n)&&n.modifiers){const e=b(n.modifiers,lD);if(e>=0)if(cD(n)&&!I.experimentalDecorators)t.push(a(n.modifiers[e],_a.Decorators_are_not_valid_here));else if(XF(n)){const r=b(n.modifiers,$N);if(r>=0){const i=b(n.modifiers,HN);if(e>r&&i>=0&&e<i)t.push(a(n.modifiers[e],_a.Decorators_are_not_valid_here));else if(r>=0&&e<r){const i=b(n.modifiers,lD,r);i>=0&&t.push(sT(a(n.modifiers[i],_a.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),a(n.modifiers[e],_a.Decorator_used_before_export_here)))}}}}switch(n.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(e===n.typeParameters)return t.push(o(e,_a.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(e===n.modifiers)return i(n.modifiers,243===n.kind),"skip";break;case 172:if(e===n.modifiers){for(const n of e)Zl(n)&&126!==n.kind&&129!==n.kind&&t.push(a(n,_a.The_0_modifier_can_only_be_used_in_TypeScript_files,Fa(n.kind)));return"skip"}break;case 169:if(e===n.modifiers&&V(e,Zl))return t.push(o(e,_a.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(e===n.typeArguments)return t.push(o(e,_a.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,_a.The_0_modifier_can_only_be_used_in_TypeScript_files,Fa(r.kind)))}}function o(t,n,...r){const i=t.pos;return Xx(e,i,t.end-i,n,...r)}function a(t,n,...r){return Bp(e,t,n,...r)}}))}(e)),$(e.additionalSyntacticDiagnostics,e.parseDiagnostics)):e.parseDiagnostics}function Xt(e){try{return e()}catch(e){throw e instanceof Tr&&(H=void 0),e}}function Qt(e,t,n){if(n)return Yt(e,t,n);let r=null==Y?void 0:Y.get(e.path);return r||(Y??(Y=new Map)).set(e.path,r=Yt(e,t)),r}function Yt(e,t,n){return Xt((()=>{if(uT(e,I,dt))return s;const r=zt();_n.assert(!!e.bindDiagnostics);const i=1===e.scriptKind||2===e.scriptKind,o=bd(e,I.checkJs),a=i&&rT(e,I);let c=e.bindDiagnostics,l=r.getDiagnostics(e,t,n);return o&&(c=C(c,(e=>FV.has(e.code))),l=C(l,(e=>FV.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}=Zt(e,e.commentDirectives,o);if(n)return a;for(const t of s.getUnusedExpectations())a.push($p(e,t.range,_a.Unused_ts_expect_error_directive));return a}(e,!o,!!n,c,l,a?e.jsDocDiagnostics:void 0)}))}function Zt(e,t,n){const r=Bd(e,t),i=n.filter((e=>-1===function(e,t){const{file:n,start:r}=e;if(!n)return-1;const i=Ra(n);let o=Ma(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 en(e,t){let n=null==Z?void 0:Z.get(e.path);return n||(Z??(Z=new Map)).set(e.path,n=function(e,t){return Xt((()=>{const n=zt().getEmitResolver(e,t);return bq(jt(nt),n,e)||s}))}(e,t)),n}function tn(e,t){return e.isDeclarationFile?s:en(e,t)}function nn(e,t,n,r){ln(zo(e),t,n,void 0,r)}function rn(e,t){return e.fileName===t.fileName}function on(e,t){return 80===e.kind?80===t.kind&&e.escapedText===t.escapedText:11===t.kind&&e.text===t.text}function an(e,t){const n=ZC.createStringLiteral(e),r=ZC.createImportDeclaration(void 0,void 0,n);return cw(r,2),FT(n,r),FT(r,t),n.flags&=-17,r.flags&=-17,n}function sn(e){if(e.imports)return;const t=Fm(e),n=VI(e);let r,i,o;if(t||!e.isDeclarationFile&&(Sk(I)||VI(e))){I.importHelpers&&(r=[an(Uu,e)]);const t=Xk(Gk(I,e),I);t&&(r||(r=[])).push(an(t,e))}for(const t of e.statements)a(t,!1);return(4194304&e.flags||t)&&FC(e,!0,!0,((e,t)=>{ET(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=kg(t);!(n&&NN(n)&&n.text)||s&&Cs(n.text)||(ET(t,!1),r=re(r,n),Be||0!==me||e.isDeclarationFile||(Kt(n.text,"node:")&&!NC.has(n.text)?Be=!0:void 0===Be&&wC.has(n.text)&&(Be=!1)))}else if(eE(t)&&sp(t)&&(s||Dv(t,128)||e.isDeclarationFile)){t.name.parent=t;const r=qh(t.name);if(n||s&&!Cs(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 cn(e,t,n,r){if(ko(e)){const i=ye.getCanonicalFileName(e);if(!I.allowNonTsExtensions&&!_(P(De),(e=>So(i,e))))return void(n&&(LS(i)?n(_a.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,e):n(_a.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,e,"'"+P(we).join("', '")+"'")));const o=t(e);if(n)if(o)kV(r)&&i===ye.getCanonicalFileName(Vt(r.file).fileName)&&n(_a.A_file_cannot_have_a_reference_to_itself);else{const t=yn(e);t?n(_a.Output_file_0_has_not_been_built_from_source_file_1,t,e):n(_a.File_0_not_found,e)}return o}{const r=I.allowNonTsExtensions&&t(e);if(r)return r;if(n&&I.allowNonTsExtensions)return void n(_a.File_0_not_found,e);const i=_(we[0],(n=>t(e+n)));return n&&!i&&n(_a.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,e,"'"+P(we).join("', '")+"'"),i}}function ln(e,t,n,r,i){cn(e,(e=>pn(e,t,n,i,r)),((e,...t)=>Bn(void 0,i,e,t)),i)}function un(e,t){return ln(e,!1,!1,void 0,t)}function dn(e,t,n){!kV(n)&&V(pe.get(t.path),kV)?Bn(t,n,_a.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[t.fileName,e]):Bn(t,n,_a.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[e,t.fileName])}function pn(e,t,n,r,i){var o,a;null==(o=$n)||o.push($n.Phase.Program,"findSourceFile",{fileName:e,isDefaultLib:t||void 0,fileIncludeKind:Cr[r.kind]});const s=function(e,t,n,r,i){var o;const a=Et(e);if(Ze){let o=Tn(a);if(!o&&ye.realpath&&I.preserveSymlinks&&YI(e)&&e.includes(zR)){const t=Et(ye.realpath(e));t!==a&&(o=Tn(t))}if(o){const s=Ye(o)?pn(o,t,n,r,i):void 0;return s&&gn(s,a,e,void 0),s}}const s=e;if(qe.has(a)){const n=qe.get(a),i=mn(n||void 0,r,!0);if(n&&i&&!1!==I.forceConsistentCasingInFileNames){const t=n.fileName;Et(t)!==Et(e)&&(e=yn(e)||e);qo(t,Ce)!==qo(e,Ce)&&dn(e,n,r)}return n&&he.get(n.path)&&0===me?(he.set(n.path,!1),I.noResolve||(Nn(n,t),Dn(n)),I.noLib||In(n),ge.set(n.path,!1),Ln(n)):n&&ge.get(n.path)&&me<fe&&(ge.set(n.path,!1),Ln(n)),n||void 0}let c;if(!Ze){const t=bn(e);if(t){if(t.commandLine.options.outFile)return;const n=xn(t,e);e=n,c=Et(n)}}const l=fn(e,Ae,ye,I),_=ye.getSourceFile(e,l,(t=>Bn(void 0,r,_a.Cannot_read_file_0_Colon_1,[e,t])),ct);if(i){const t=fd(i),n=Me.get(t);if(n){const t=function(e,t,n,r,i,o,a){var s;const c=dI.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,he.set(r,me>0),c}(n,_,e,a,Et(e),s,l);return ze.add(n.path,e),gn(t,a,e,c),mn(t,r,!1),Je.set(a,pd(i)),z.push(t),t}_&&(Me.set(t,_),Je.set(a,pd(i)))}if(gn(_,a,e,c),_){if(he.set(a,me>0),_.fileName=e,_.path=a,_.resolvedPath=Et(e),_.originalFileName=s,_.packageJsonLocations=(null==(o=l.packageJsonLocations)?void 0:o.length)?l.packageJsonLocations:void 0,_.packageJsonScope=l.packageJsonScope,mn(_,r,!1),ye.useCaseSensitiveFileNames()){const t=lt(a),n=$e.get(t);n?dn(e,n,r):$e.set(t,_)}be=be||_.hasNoDefaultLib&&!n,I.noResolve||(Nn(_,t),Dn(_)),I.noLib||In(_),Ln(_),t?J.push(_):z.push(_),(G??(G=new Set)).add(_.path)}return _}(e,t,n,r,i);return null==(a=$n)||a.pop(),s}function fn(e,t,n,r){const i=DV(Jo(e,Ce),null==t?void 0:t.getPackageJsonInfoCache(),n,r),o=vk(r),a=fk(r);return"object"==typeof i?{...i,languageVersion:o,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}:{languageVersion:o,impliedNodeFormat:i,setExternalModuleIndicator:a,jsDocParsingMode:n.jsDocParsingMode}}function mn(e,t,n){return!(!e||n&&kV(t)&&(null==G?void 0:G.has(t.file)))&&(pe.add(e.path,t),!0)}function gn(e,t,n,r){r?(hn(n,r,e),hn(n,t,e||!1)):hn(n,t,e)}function hn(e,t,n){qe.set(t,n),void 0!==n?Ue.delete(t):Ue.set(t,e)}function yn(e){const t=bn(e);return t&&xn(t,e)}function bn(e){if(He&&He.length&&!YI(e)&&!So(e,".json"))return kn(e)}function xn(e,t){const n=e.commandLine.options.outFile;return n?HS(n,".d.ts"):$q(t,e.commandLine,!ye.useCaseSensitiveFileNames())}function kn(e){void 0===Ge&&(Ge=new Map,Sn((e=>{Et(I.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach((t=>Ge.set(Et(t),e.sourceFile.path)))})));const t=Ge.get(Et(e));return t&&wn(t)}function Sn(e){return mV(He,e)}function Tn(e){if(YI(e))return void 0===Qe&&(Qe=new Map,Sn((e=>{const t=e.commandLine.options.outFile;if(t){const e=HS(t,".d.ts");Qe.set(Et(e),!0)}else{const t=ut((()=>eU(e.commandLine,!ye.useCaseSensitiveFileNames())));_(e.commandLine.fileNames,(n=>{if(!YI(n)&&!So(n,".json")){const r=$q(n,e.commandLine,!ye.useCaseSensitiveFileNames(),t);Qe.set(Et(r),n)}}))}}))),Qe.get(e)}function Cn(e){return Ze&&!!kn(e)}function wn(e){if(Ke)return Ke.get(e)||void 0}function Nn(e,t){_(e.referencedFiles,((n,r)=>{ln(PU(n.fileName,e.fileName),t,!1,void 0,{kind:4,file:e.path,index:r})}))}function Dn(e){const t=e.typeReferenceDirectives;if(!t.length)return;const n=(null==ue?void 0:ue.get(e.path))||It(t,e),r=vR();(_e??(_e=new Map)).set(e.path,r);for(let i=0;i<t.length;i++){const t=e.typeReferenceDirectives[i],o=n[i],a=t.fileName,s=ur(t,e);r.set(a,s,o),En(a,s,o,{kind:5,file:e.path,index:i})}}function Fn(e){var t;return(null==(t=Nt(e))?void 0:t.commandLine.options)||I}function En(e,t,n,r){var i,o;null==(i=$n)||i.push($n.Phase.Program,"processTypeReferenceDirective",{directive:e,hasResolved:!!n.resolvedTypeReferenceDirective,refKind:r.kind,refPath:kV(r)?r.file:void 0}),function(e,t,n,r){St(n);const{resolvedTypeReferenceDirective:i}=n;i?(i.isExternalLibraryImport&&me++,ln(i.resolvedFileName,!1,!1,i.packageId,r),i.isExternalLibraryImport&&me--):Bn(void 0,r,_a.Cannot_find_type_definition_file_for_0,[e])}(e,0,n,r),null==(o=$n)||o.pop()}function Pn(e){const t=null==oe?void 0:oe.get(e);if(t)return t.actual;const n=An(e);return(oe??(oe=new Map)).set(e,n),n.actual}function An(e){var t,n,r,i,o;const a=null==ae?void 0:ae.get(e);if(a)return a;if(0!==_t&&M&&!je(e)){const i=null==(t=M.resolvedLibReferences)?void 0:t.get(e);if(i){if(i.resolution&&zj(I,ye)){const t=vV(e),o=yV(I,Ce,e);Jj(ye,i.resolution.resolvedModule?i.resolution.resolvedModule.packageId?_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,t,Jo(o,Ce),null==(n=i.resolution.resolvedModule)?void 0:n.resolvedFileName,(null==(r=i.resolution.resolvedModule)?void 0:r.packageId)&&fd(i.resolution.resolvedModule.packageId))}return(ae??(ae=new Map)).set(e,i),i}}const s=vV(e),c=yV(I,Ce,e);null==(i=$n)||i.push($n.Phase.Program,"resolveLibrary",{resolveFrom:c}),er("beforeResolveLibrary");const l=Re(s,c,I,e);er("afterResolveLibrary"),tr("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),null==(o=$n)||o.pop();const _={resolution:l,actual:l.resolvedModule?l.resolvedModule.resolvedFileName:Ro(ke,e)};return(ae??(ae=new Map)).set(e,_),_}function In(e){_(e.libReferenceDirectives,((t,n)=>{const r=xV(t);r?nn(Pn(r),!0,!0,{kind:7,file:e.path,index:n}):(te||(te=[])).push({kind:0,reason:{kind:7,file:e.path,index:n}})}))}function On(e){return ye.getCanonicalFileName(e)}function Ln(e){if(sn(e),e.imports.length||e.moduleAugmentations.length){const t=zV(e),n=(null==ce?void 0:ce.get(e.path))||At(t,e);_n.assert(n.length===t.length);const r=Fn(e),i=vR();(se??(se=new Map)).set(e.path,i);for(let o=0;o<t.length;o++){const a=n[o].resolvedModule,s=t[o].text,c=iV(e,t[o],r);if(i.set(s,c,n[o]),Tt(e,s,n[o],c),!a)continue;const l=a.isExternalLibraryImport,_=!ZS(a.extension)&&!bn(a.resolvedFileName),u=l&&_&&(!a.originalPath||qR(a.resolvedFileName)),d=a.resolvedFileName;l&&me++;const p=u&&me>fe,f=d&&!JV(r,a,e)&&!r.noResolve&&o<e.imports.length&&!p&&!(_&&!Ik(r))&&(Em(e.imports[o])||!(16777216&e.imports[o].flags));p?ge.set(e.path,!0):f&&pn(d,!1,!1,{kind:3,file:e.path,index:o},a.packageId),l&&me--}}}function jn(e){Ke||(Ke=new Map);const t=BV(e),n=Et(t),r=Ke.get(n);if(void 0!==r)return r||void 0;let i,o;if(ye.getParsedCommandLine){if(i=ye.getParsedCommandLine(t),!i)return gn(void 0,n,t,void 0),void Ke.set(n,!1);o=_n.checkDefined(i.options.configFile),_n.assert(!o.path||o.path===n),gn(o,n,t,void 0)}else{const e=Jo(Fo(t),Ce);if(o=ye.getSourceFile(t,100),gn(o,n,t,void 0),void 0===o)return void Ke.set(n,!1);i=UL(o,ve,e,void 0,t)}o.fileName=t,o.path=n,o.resolvedPath=n,o.originalFileName=t;const a={commandLine:i,sourceFile:o};return Ke.set(n,a),i.projectReferences&&(a.references=i.projectReferences.map(jn)),a}function Rn(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)return new vn(e);B()}return vn.zero}(),l=!(1===a.compareTo(s)),_=!l&&-1===c.compareTo(o);(l||_)&&r(((r,i,o)=>{l?void 0===i?n(r,i,o,_a.Option_0_has_been_removed_Please_remove_it_from_your_configuration,r):n(r,i,o,_a.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,r,i):void 0===i?n(r,i,o,_a.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.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 Mn(e,t,n,r){let i;const o=e&&pe.get(e.path);let a,c,l,_,u,d=kV(t)?t:void 0,p=e&&(null==X?void 0:X.get(e.path));p?(p.fileIncludeReasonDetails?(i=new Set(o),null==o||o.forEach(h)):null==o||o.forEach(g),_=p.redirectInfo):(null==o||o.forEach(g),_=e&&f$(e,Fn(e))),t&&g(t);const f=(null==i?void 0:i.size)!==(null==o?void 0:o.length);d&&1===(null==i?void 0:i.size)&&(i=void 0),i&&p&&(p.details&&!f?u=ek(p.details,n,...r||s):p.fileIncludeReasonDetails&&(f?a=y()?re(p.fileIncludeReasonDetails.next.slice(0,o.length),a[0]):[...p.fileIncludeReasonDetails.next,a[0]]:y()?a=p.fileIncludeReasonDetails.next.slice(0,o.length):l=p.fileIncludeReasonDetails)),u||(l||(l=i&&ek(a,_a.The_file_is_in_the_program_because_Colon)),u=ek(_?l?[l,..._]:_:l,n,...r||s)),e&&(p?(!p.fileIncludeReasonDetails||!f&&l)&&(p.fileIncludeReasonDetails=l):(X??(X=new Map)).set(e.path,p={fileIncludeReasonDetails:l,redirectInfo:_}),p.details||f||(p.details=u.next));const m=d&&TV(dt,d);return m&&SV(m)?Up(m.file,m.pos,m.end-m.pos,u,c):Zx(u,c);function g(e){(null==i?void 0:i.has(e))||((i??(i=new Set)).add(e),(a??(a=[])).push(h$(dt,e)),h(e))}function h(e){!d&&kV(e)?d=e:d!==e&&(c=re(c,function(e){let t=null==Q?void 0:Q.get(e);void 0===t&&(Q??(Q=new Map)).set(e,t=function(e){if(kV(e)){const t=TV(dt,e);let n;switch(e.kind){case 3:n=_a.File_is_included_via_import_here;break;case 4:n=_a.File_is_included_via_reference_here;break;case 5:n=_a.File_is_included_via_type_library_reference_here;break;case 7:n=_a.File_is_included_via_library_reference_here;break;default:_n.assertNever(e)}return SV(t)?Xx(t.file,t.pos,t.end-t.pos,n):void 0}if(!I.configFile)return;let t,n;switch(e.kind){case 0:if(!I.configFile.configFileSpecs)return;const i=Jo(E[e.index],Ce),o=m$(dt,i);if(o){t=$f(I.configFile,"files",o),n=_a.File_is_matched_by_files_list_specified_here;break}const a=g$(dt,i);if(!a||!Ye(a))return;t=$f(I.configFile,"include",a),n=_a.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const s=_n.checkDefined(null==He?void 0:He[e.index]),c=gV(L,He,((e,t,n)=>e===s?{sourceFile:(null==t?void 0:t.sourceFile)||I.configFile,index:n}:void 0));if(!c)return;const{sourceFile:l,index:_}=c,u=Hf(l,"references",(e=>KD(e.initializer)?e.initializer:void 0));return u&&u.elements.length>_?Bp(l,u.elements[_],2===e.kind?_a.File_is_output_from_referenced_project_specified_here:_a.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!I.types)return;t=Wn("types",e.typeReference),n=_a.File_is_entry_point_of_type_library_specified_here;break;case 6:if(void 0!==e.index){t=Wn("lib",I.lib[e.index]),n=_a.File_is_library_specified_here;break}const d=qk(vk(I));t=d?(r=d,Un("target",(e=>NN(e.initializer)&&e.initializer.text===r?e.initializer:void 0))):void 0,n=_a.File_is_default_library_for_target_specified_here;break;default:_n.assertNever(e)}var r;return t&&Bp(I.configFile,t,n)}(e)??!1);return t||void 0}(e)))}function y(){var e;return(null==(e=p.fileIncludeReasonDetails.next)?void 0:e.length)!==(null==o?void 0:o.length)}}function Bn(e,t,n,r){(te||(te=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:n,args:r})}function Jn(e,t,n){Te.push({file:e,diagnostic:t,args:n})}function zn(e,t,n,...r){let i=!0;Vn((o=>{GD(o.initializer)&&Uf(o.initializer,e,(e=>{const o=e.initializer;KD(o)&&o.elements.length>t&&(Se.add(Bp(I.configFile,o.elements[t],n,...r)),i=!1)}))})),i&&Qn(n,...r)}function qn(e,t,n,...r){let i=!0;Vn((o=>{GD(o.initializer)&&nr(o.initializer,e,t,void 0,n,...r)&&(i=!1)})),i&&Qn(n,...r)}function Un(e,t){return Uf(Yn(),e,t)}function Vn(e){return Un("paths",e)}function Wn(e,t){const n=Yn();return n&&Vf(n,e,t)}function Hn(e,t,n,r){Xn(!0,t,n,e,t,n,r)}function Kn(e,t,...n){Xn(!1,e,void 0,t,...n)}function Gn(e,t,n,...r){const i=Hf(e||I.configFile,"references",(e=>KD(e.initializer)?e.initializer:void 0));i&&i.elements.length>t?Se.add(Bp(e||I.configFile,i.elements[t],n,...r)):Se.add(Yx(n,...r))}function Xn(e,t,n,r,...i){const o=Yn();(!o||!nr(o,e,t,n,r,...i))&&Qn(r,...i)}function Qn(e,...t){const n=Zn();n?"messageText"in e?Se.add(Jp(I.configFile,n.name,e)):Se.add(Bp(I.configFile,n.name,e,...t)):"messageText"in e?Se.add(Zx(e)):Se.add(Yx(e,...t))}function Yn(){if(void 0===Ee){const e=Zn();Ee=e&&et(e.initializer,GD)||!1}return Ee||void 0}function Zn(){return void 0===Pe&&(Pe=Uf(Wf(I.configFile),"compilerOptions",at)||!1),Pe||void 0}function nr(e,t,n,r,i,...o){let a=!1;return Uf(e,n,(e=>{"messageText"in i?Se.add(Jp(I.configFile,t?e.name:e.initializer,i)):Se.add(Bp(I.configFile,t?e.name:e.initializer,i,...o)),a=!0}),r),a}function rr(e,t){Fe.set(Et(e),!0),Se.add(t)}function ir(e,t){return 0===Zo(e,t,Ce,!ye.useCaseSensitiveFileNames())}function or(){return ye.getSymlinkCache?ye.getSymlinkCache():(U||(U=Yk(Ce,On)),q&&!U.hasProcessedResolutions()&&U.setSymlinksFromResolutions(vt,bt,ie),U)}function ar(e,t){return iV(e,t,Fn(e))}function sr(e,t){return ar(e,qV(e,t))}function cr(e){return OV(e,Fn(e))}function lr(e){return AV(e,Fn(e))}function _r(e){return PV(e,Fn(e))}function ur(e,t){return e.resolutionMode||cr(t)}}function PV(e,t){const n=bk(t);return!(100<=n&&n<=199||200===n)&&AV(e,t)<5}function AV(e,t){return IV(e,t)??bk(t)}function IV(e,t){var n,r;const i=bk(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 OV(e,t){return mk(t)?IV(e,t):void 0}var LV={diagnostics:s,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0};function jV(e,t,n,r){const i=e.getCompilerOptions();if(i.noEmit)return t?LV: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&&Fk(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 RV(e,t){return C(e,(e=>!e.skippedOn||!t[e.skippedOn]))}function MV(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 BV(e){return z$(e.path)}function JV(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 Dk(e)?void 0:_a.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;default:return n||e.allowArbitraryExtensions?void 0:_a.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}function r(){return e.jsx?void 0:_a.Module_0_was_resolved_to_1_but_jsx_is_not_set}function i(){return Ik(e)||!zk(e,"noImplicitAny")?void 0:_a.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}}function zV({imports:e,moduleAugmentations:t}){const n=e.map((e=>e));for(const e of t)11===e.kind&&n.push(e);return n}function qV({imports:e,moduleAugmentations:t},n){if(n<e.length)return e[n];let r=e.length;for(const e of t)if(11===e.kind){if(n===r)return e;r++}_n.fail("should never ask for module name at index higher than possible module name")}function UV(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 VV,WV=(e=>(e[e.ComputedDts=0]="ComputedDts",e[e.StoredSignatureAtEmit=1]="StoredSignatureAtEmit",e[e.UsedVersion=2]="UsedVersion",e))(WV||{});(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=yd(e))?void 0:t.resolvedPath}))}(n)}function i(e,t,n,r){return Uo(e.getProjectReferenceRedirect(t)||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(!NN(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=yd(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(YI(n),`File extension for signature expected to be dts: Got:: ${n}`),i(TW(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=>dp(e.parent)))}(e)||!Yp(e)&&!Zp(e)&&!function(e){for(const t of e.statements)if(!cp(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&&(Sk(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})(VV||(VV={}));var $V=(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))($V||{});function HV(e){return void 0!==e.program}function KV(e){let t=1;return e.sourceMap&&(t|=2),e.inlineSourceMap&&(t|=4),Fk(e)&&(t|=24),e.declarationMap&&(t|=32),e.emitDeclarationOnly&&(t&=56),t}function GV(e,t){const n=t&&(Ze(t)?t:KV(t)),r=Ze(e)?e:KV(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 XV(e,t){var n,r;const i=VV.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&&QV(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=VV.canReuseOldState(i.referencedMap,t),c=s?t.compilerOptions:void 0;let l=s&&!Vk(o,c);const _=o.composite&&(null==t?void 0:t.emitSignatures)&&!a&&!$k(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=Pk(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||rd(y,(e=>!v.has(e)))))||h&&rd(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?tW(o,r,e):YV(o,e)),l){if(n.isDeclarationFile&&!f)return;if(n.hasNoDefaultLib&&!m)return;const o=t.semanticDiagnosticsPerFile.get(r);o&&(i.semanticDiagnosticsPerFile.set(r,t.hasReusableDiagnostic?tW(o,r,e):YV(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,QV(o,t.compilerOptions,e))}})),s&&nd(t.fileInfos,((e,t)=>!i.fileInfos.has(t)&&(!!e.affectsGlobalScope||(i.buildInfoEmitPending=!0,!!a)))))VV.getAllFilesExcludingDefaultLibraryFile(i,e,void 0).forEach((e=>g(e.resolvedPath)));else if(c){const t=Wk(o,c)?KV(o):GV(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)||wW(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 QV(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:Ye(n)?[n]:n[0]}function YV(e,t){return e.length?E(e,(e=>{if(Ye(e.messageText))return e;const n=ZV(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 ZV(e,t,n,r){const i=r(e);if(!0===i)return{...dd(t),next:eW(e.next,t,n,r)};if(i)return{...ud(t,n,i.moduleReference,i.mode,i.packageName||i.moduleReference),next:eW(e.next,t,n,r)};const o=eW(e.next,t,n,r);return o===e.next?e:{...e,next:o}}function eW(e,t,n,r){return E(e,(e=>ZV(e,t,n,r)))}function tW(e,t,n){if(!e.length)return s;let r;return e.map((e=>{const r=nW(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=>nW(e,t,n,i))):[]:void 0,r}));function i(e){return r??(r=Fo(Jo(Jq(n.getCompilerOptions()),n.getCurrentDirectory()))),Uo(e,r,n.getCanonicalFileName)}}function nW(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:ZV(e.messageText,o,n,(e=>e.info))}}function rW(e,t){_n.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function iW(e,t,n){for(var r;;){const{affectedFiles:i}=e;if(i){const o=e.seenAffectedFiles;let a=e.affectedFilesIndex;for(;a<i.length;){const r=i[a];if(!o.has(r.resolvedPath))return e.affectedFilesIndex=a,wW(e,r.resolvedPath,KV(e.compilerOptions)),lW(e,r,t,n),r;a++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,null==(r=e.oldSignatures)||r.clear(),e.affectedFiles=void 0}const o=e.changedFilesSet.keys().next();if(o.done)return;if(e.program.getCompilerOptions().outFile)return e.program;e.affectedFiles=VV.getFilesAffectedByWithOldState(e,e.program,o.value,t,n),e.currentChangedFilePath=o.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function oW(e,t,n){var r,i;if(((null==(r=e.affectedFilesPendingEmit)?void 0:r.size)||e.programEmitPending)&&(t||n||(e.affectedFilesPendingEmit=void 0,e.programEmitPending=void 0),null==(i=e.affectedFilesPendingEmit)||i.forEach(((t,r)=>{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 aW(e,t,n,r){let i=GV(e,t);return n&&(i&=56),r&&(i&=8),i}function sW(e){return e?8:56}function cW(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;const t=e.program.getCompilerOptions();_(e.program.getSourceFiles(),(n=>e.program.isSourceFileDefaultLibrary(n)&&!dT(n,t,e.program)&&uW(e,n.resolvedPath)))}}function lW(e,t,n,r){if(uW(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles)return cW(e),void VV.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(!dW(e,t.resolvedPath))return;if(Sk(e.compilerOptions)){const i=new Map;i.set(t.resolvedPath,!0);const o=VV.getReferencedByPaths(e,t.resolvedPath);for(;o.length>0;){const t=o.pop();if(!i.has(t)){if(i.set(t,!0),pW(e,t,!1,n,r))return;if(_W(e,t,!1,n,r),dW(e,t)){const n=e.program.getSourceFileByPath(t);o.push(...VV.getReferencedByPaths(e,n.resolvedPath))}}}}const a=new Set,s=!!(null==(i=t.symbol)?void 0:i.exports)&&!!nd(t.symbol.exports,(n=>{if(128&n.flags)return!0;const r=ax(n,e.program.getTypeChecker());return r!==n&&(!!(128&r.flags)&&V(r.declarations,(e=>yd(e)===t)))}));null==(o=e.referencedMap.getKeys(t.resolvedPath))||o.forEach((t=>{if(pW(e,t,s,n,r))return!0;const i=e.referencedMap.getKeys(t);return i&&rd(i,(t=>fW(e,t,s,a,n,r)))}))}(e,t,n,r)}function _W(e,t,n,r,i){if(uW(e,t),!e.changedFilesSet.has(t)){const o=e.program.getSourceFileByPath(t);o&&(VV.updateShapeSignature(e,e.program,o,r,i,!0),n?wW(e,t,KV(e.compilerOptions)):Fk(e.compilerOptions)&&wW(e,t,e.compilerOptions.declarationMap?56:24))}}function uW(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function dW(e,t){const n=_n.checkDefined(e.oldSignatures).get(t)||void 0;return _n.checkDefined(e.fileInfos.get(t)).signature!==n}function pW(e,t,n,r,i){var o;return!!(null==(o=e.fileInfos.get(t))?void 0:o.affectsGlobalScope)&&(VV.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach((t=>_W(e,t.resolvedPath,n,r,i))),cW(e),!0)}function fW(e,t,n,r,i,o){var a;if(J(r,t)){if(pW(e,t,n,i,o))return!0;_W(e,t,n,i,o),null==(a=e.referencedMap.getKeys(t))||a.forEach((t=>fW(e,t,n,r,i,o)))}}function mW(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 RV(o,e.compilerOptions);const a=e.program.getBindAndCheckDiagnostics(t,n);return r.set(i,a),e.buildInfoEmitPending=!0,RV(a,e.compilerOptions)}(e,t,n,r),e.program.getProgramDiagnostics(t))}function gW(e){var t;return!!(null==(t=e.options)?void 0:t.outFile)}function hW(e){return!!e.fileNames}function yW(e){void 0===e.hasErrors&&(Pk(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)}))&&(vW(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)}))||vW(e))}function vW(e){return!!(e.program.getConfigFileParsingDiagnostics().length||e.program.getSyntacticDiagnostics().length||e.program.getOptionsDiagnostics().length||e.program.getGlobalDiagnostics().length)}function bW(e){return yW(e),e.buildInfoEmitPending??(e.buildInfoEmitPending=!!e.hasErrorsFromOldState!=!!e.hasErrors)}var xW=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(xW||{});function kW(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=EV({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 SW(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function TW(e,t,n,r,i){var o;let a;return n=SW(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`${$o(ra(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 CW(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=XV(t,a);t.getBuildInfo=()=>function(e){var t,n;const r=e.program.getCurrentDirectory(),i=Fo(Jo(Jq(e.compilerOptions),r)),a=e.latestChangedDtsFile?b(e.latestChangedDtsFile):void 0,c=[],l=new Map,u=new Set(e.program.getRootFileNames().map((t=>Uo(t,r,e.program.getCanonicalFileName))));if(yW(e),!Pk(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:D(),emitDiagnosticsPerFile:F(),changeFileSet:O(),outSignature:e.outSignature,latestChangedDtsFile:a,pendingEmit:e.programEmitPending?e.programEmitPending!==KV(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(!Zp(n)&&Xy(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=D();let v;if(null==(n=e.affectedFilesPendingEmit)?void 0:n.size){const t=KV(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||!Xy(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 $o(ra(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}=RO();for(const r of Fe(e).sort(Tt)){const i=n.get(r.toLowerCase());(null==i?void 0:i.affectsBuildInfo)&&((t||(t={}))[r]=N(i,e[r]))}return t}function N(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 D(){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<e.length;t++)i.push(A(e[t]));return i}))||e}function O(){let t;if(e.changedFilesSet.size)for(const n of Ie(e.changedFilesSet.keys()).sort(Tt))t=re(t,k(n));return t}}(function(e){return _n.assert(HV(e)),e}(c)),t=void 0,r=void 0,a=void 0;const l=IW(c,i);return l.state=c,l.hasChangedEmitSignature=()=>!!c.hasChangedEmitSignature,l.getAllDependencies=e=>VV.getAllDependencies(c,_n.checkDefined(c.program),e),l.getSemanticDiagnostics=function(e,t){if(_n.assert(HV(c)),rW(c,e),e)return mW(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,mW(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(HV(c)),1===e){let e,i;for(rW(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(HV(c)),1===e&&rW(c,t);const a=jV(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}}oW(c,i,!1)}const _=c.program.emit(t,f(n,o),r,i,o);return m(t,i,!1,_.diagnostics),_},l.releaseProgram=()=>function(e){VV.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(HV(c)),bW(c)){const r=c.program.emitBuildInfo(e||Ve(n,n.writeFile),t);return c.buildInfoEmitPending=!1,r}return LV}):_t(),l;function u(e,t,r,i,o){var a,s,l,_;_n.assert(HV(c));let u=iW(c,t,n);const p=KV(c.compilerOptions);let m,g=o?8:r?56&p:p;if(!u){if(c.compilerOptions.outFile){if(c.programEmitPending&&(g=aW(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&sW(o))){c.seenProgramEmit=sW(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 nd(e.affectedFilesPendingEmit,((r,i)=>{var o;const a=e.program.getSourceFileByPath(i);if(!a||!Xy(a,e.program))return void e.affectedFilesPendingEmit.delete(i);const s=aW(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 nd(e.emitDiagnosticsPerFile,((n,r)=>{var i;const o=e.program.getSourceFileByPath(r);if(!o||!Xy(o,e.program))return void e.emitDiagnosticsPerFile.delete(r);const a=(null==(i=e.seenEmittedFiles)?void 0:i.get(o.resolvedPath))||0;return a&sW(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|sW(o)),{result:{emitSkipped:!0,diagnostics:e.diagnostics},affected:e.affectedFile}}}if(!u){if(o||!bW(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=GV((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?GV(p,g):c.programEmitPending?GV(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(HV(c)),Fk(c.compilerOptions)?(r,i,o,a,s,l)=>{var _,u,d;if(YI(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=TW(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)(SW(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||(oW(c,n,r),d(i))}function g(e,t){for(_n.assert(HV(c));;){const r=iW(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=mW(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,mW(c,r,e,n)))),c.semanticDiagnosticsPerFile=n,i=t||s,c.changedFilesSet.clear(),c.programEmitPending=KV(c.compilerOptions),c.compilerOptions.noCheck||(c.checkPending=void 0),c.buildInfoEmitPending=!0}return{result:i,affected:r}}}}function wW(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 NW(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 DW(e,t){return Ze(e)?t:e[1]||24}function FW(e,t){return e||KV(t||{})}function EW(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 Uo(e,c,l)}));let d;const p=e.latestChangedDtsFile?g(e.latestChangedDtsFile):void 0,f=new Map,m=new Set(D(e.changeFileSet,h));if(gW(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?JL(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:FW(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=NW(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?KV(e.options||{}):void 0;_={fileInfos:f,compilerOptions:e.options?JL(e.options,g):{},referencedMap:function(e,t){const n=VV.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=>DW(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 PW(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=Uo(e.fileNames[n],r,i),c=Ye(t)?t:t.version;if(o.set(s,c),a<e.root.length){const t=e.root[a],r=n+1;Xe(t)?t[0]<=r&&r<=t[1]&&(l(r,s),t[1]===r&&a++):t===r&&(l(r,s),a++)}})),{fileInfos:o,roots:s};function l(t,n){const o=c.get(t);o?s.set(Uo(e.fileNames[o-1],r,i),n):s.set(n,void 0)}}function AW(e,t,n){if(hW(r=e)||!r.root)return;var r;const i=Fo(Jo(t,n.getCurrentDirectory())),o=Vt(n.useCaseSensitiveFileNames());return e.root.map((e=>Uo(e,i,o)))}function IW(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 OW(e,t,n,r,i,o){return CW(0,kW(e,t,n,r,i,o))}function LW(e,t,n,r,i,o){return CW(1,kW(e,t,n,r,i,o))}function jW(e,t,n,r,i,o){const{newProgram:a,configFileParsingDiagnostics:s}=kW(e,t,n,r,i,o);return IW({program:a,compilerOptions:a.getCompilerOptions()},s)}function RW(e){return jt(e,"/node_modules/.staging")?Rt(e,"/.staging"):V(Yi,(t=>e.includes(t)))?void 0:e}function MW(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 BW(e,t){if(void 0===t&&(t=e.length),t<=2)return!1;return t>MW(e,t)+1}function JW(e){return BW(Io(e))}function zW(e){return UW(Fo(e))}function qW(e,t){if(t.length<t.length)return!1;for(let n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0}function UW(e){return JW(e)}function VW(e){return UW(e)}function WW(e,t,n,r,i,o,a,s){const c=Io(t),l=Io(e=ho(e)?zo(e):Jo(e,a())),_=MW(c,c.length);if(c.length<=_+1)return;const u=c.indexOf("node_modules");if(-1!==u&&u+1<=_+1)return;const d=c.lastIndexOf("node_modules");return o&&qW(i,c)?c.length>i.length+1?HW(l,c,Math.max(i.length+1,_+1),d):{dir:n,dirPath:r,nonRecursive:!0}:$W(l,c,c.length-1,_,u,i,d,s)}function $W(e,t,n,r,i,o,a,s){if(-1!==i)return HW(e,t,i+1,a);let c=!0,l=n;if(!s)for(let e=0;e<n;e++)if(t[e]!==o[e]){c=!1,l=Math.max(e+1,r+1);break}return HW(e,t,l,a,c)}function HW(e,t,n,r,i){let o;return-1!==r&&r+1>=n&&r+2<t.length&&(Kt(t[r+1],"@")?r+3<t.length&&(o=r+3):o=r+2),{dir:Oo(e,n),dirPath:Oo(t,n),nonRecursive:i,packageDir:void 0!==o?Oo(e,o):void 0,packageDirPath:void 0!==o?Oo(t,o):void 0}}function KW(e,t,n,r,i,o,a,s){const c=Io(t);if(i&&qW(r,c))return n;const l=$W(Io(e=ho(e)?zo(e):Jo(e,o())),c,c.length,MW(c,c.length),c.indexOf("node_modules"),r,c.lastIndexOf("node_modules"),a);return l&&s(l.dirPath)?l.dirPath:void 0}function GW(e,t){const n=Jo(e,t());return yo(n)?n:Vo(n)}function XW(e){var t;return(null==(t=e.getCompilerHost)?void 0:t.call(e))||e}function QW(e,t,n,r,i){return{nameAndMode:lV,resolve:(o,a)=>function(e,t,n,r,i,o,a){const s=XW(e),c=FR(n,r,i,s,t,o,a);if(!e.getGlobalTypingsCacheLocation)return c;const l=e.getGlobalTypingsCacheLocation();if(!(void 0===l||Cs(n)||c.resolvedModule&&YS(c.resolvedModule.extension))){const{resolvedModule:r,failedLookupLocations:o,affectingLocations:a,resolutionDiagnostics:_}=PM(_n.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,i,s,l,t);if(r)return c.resolvedModule=r,c.failedLookupLocations=Xj(c.failedLookupLocations,o),c.affectingLocations=Xj(c.affectingLocations,a),c.resolutionDiagnostics=Xj(c.resolutionDiagnostics,_),c}return c}(r,i,o,e,n,t,a)}}function YW(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=TR(b(),e.getCanonicalFileName,e.getCompilationSettings()),T=new Map,C=CR(b(),e.getCanonicalFileName,e.getCompilationSettings(),S.getPackageJsonInfoCache(),S.optionsToRedirectsKey),w=new Map,N=TR(b(),e.getCanonicalFileName,wR(e.getCompilationSettings()),S.getPackageJsonInfoCache()),D=new Map,F=new Map,E=GW(t,b),P=e.toPath(E),A=Io(P),I=BW(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:D,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,N.isReadonly=void 0,S.getPackageJsonInfoCache().isReadonly=void 0,S.clearAllExceptPackageJsonInfoCache(),C.clearAllExceptPackageJsonInfoCache(),N.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(yV(e.getCompilationSettings(),b(),r)),ld),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;t<n;t++)K(e.packageJsonLocations[t],!1);if(r.length>n)for(let e=n;e<r.length;e++)F.get(r[e]).files--;n?u.set(e.resolvedPath,e.packageJsonLocations):u.delete(e.resolvedPath)})),u.forEach(((e,n)=>{const r=null==t?void 0:t.getSourceFileByPath(n);r&&r.resolvedPath===n||(e.forEach((e=>F.get(e).files--)),u.delete(n))})));D.forEach(J),F.forEach(z),L.forEach(B),y=!1,S.isReadonly=!0,C.isReadonly=!0,N.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:QW(r,i,o,e,S),getResolutionWithResolvedFileName:ld,shouldRetryResolution:e=>!e.resolvedModule||!ZS(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:pV(n,r,i,XW(e),C),getResolutionWithResolvedFileName:_d,shouldRetryResolution:e=>void 0===e.resolvedTypeReferenceDirective,deferWatchingNonRelativeResolution:!1})},resolveLibrary:function(t,n,r,i){const o=XW(e);let a=null==w?void 0:w.get(i);if(!a||a.isInvalidated){const s=a;a=NR(t,n,r,o,N);const c=e.toPath(n);W(t,a,c,ld,!1),w.set(i,a),s&&ee(s,c,ld)}else if(zj(r,o)){const e=ld(a);Jj(o,(null==e?void 0:e.resolvedFileName)?e.packageId?_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_a.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)&&fd(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=XW(e),_=FR(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(){const t=e.getCompilationSettings();if(t.types)return void de();const n=nR(t,{getCurrentDirectory:b});n?fx(R,new Set(n),{createNewValue:pe,onDeleteValue:rx}):de()},closeTypeRootsWatch:de,clear:function(){dx(D,FU),dx(F,FU),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()),N.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&&(D.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}){const f=e.toPath(n),m=s.get(f)||s.set(f,vR()).get(f),g=[],h=p&&M(f),y=e.getCurrentProgram(),b=y&&y.getResolvedProjectReferenceToRedirect(n),x=b?!o||o.sourceFile.path!==b.sourceFile.path:!!o,S=vR();for(const c of t){const t=l.nameAndMode.getName(c),y=l.nameAndMode.getMode(c,i,(null==o?void 0:o.commandLine.options)||a);let b=m.get(t,y);if(!S.has(t,y)&&(v||x||!b||b.isInvalidated||h&&!Cs(t)&&d(b))){const n=b;b=l.resolve(t,y),e.onDiscoveredSymlink&&ZW(b)&&e.onDiscoveredSymlink(),m.set(t,y,b),b!==n&&(W(t,b,f,_,u),n&&ee(n,f,_)),p&&r&&!T(n,b)&&(r.push(f),p=!1)}else{const r=XW(e);if(zj(a,r)&&!S.has(t,y)){const e=_(b);Jj(r,s===k?(null==e?void 0:e.resolvedFileName)?e.packageId?_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_a.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:(null==e?void 0:e.resolvedFileName)?e.packageId?_a.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:_a.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:_a.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)&&fd(e.packageId))}}_n.assert(void 0!==b&&!b.isInvalidated),S.set(t,y,!0),g.push(b)}return null==c||c.forEach((e=>S.set(l.nameAndMode.getName(e),l.nameAndMode.getMode(e,i,(null==o?void 0:o.commandLine.options)||a),!0))),m.size()!==S.size()&&m.forEach(((e,t,n)=>{S.has(t,n)||(ee(e,f,_),m.delete(t,n))})),g;function T(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||Cs(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=WW(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:VW(e.toPath(o))?e.watchAffectingFileLocation(o,((t,n)=>{null==x||x.addOrDeleteFile(t,e.toPath(o),n),G(o,S.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()})):x$,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=D.get(t);return r?(_n.assert(!!n==!!r.nonRecursive),r.refCount++):D.set(t,r={watcher:ne(e,t,n),refCount:1,nonRecursive:n}),r}function Z(t,n){const r=WW(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){D.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(e,t,n){const r=e.get(t);r&&(r.forEach((e=>ee(e,t,n))),e.delete(t))}function ie(e){re(k,e,ld),re(T,e,_d)}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,hV)}})),n}function ae(t,n){if(n)(h||(h=new Set)).add(t);else{const n=RW(t);if(!n)return!1;if(t=n,e.fileIsOpen(t))return!1;const r=Fo(t);if(U(t)||ca(t)||U(r)||ca(r))(m||(m=new Set)).add(t),(g||(g=new Set)).add(t);else{if(CU(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=UR(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(){dx(R,rx)}function pe(t){return function(t){return!!e.getCompilationSettings().typeRoots||zW(e.toPath(t))}(t)?e.watchTypeRootsDirectory(t,(n=>{const r=e.toPath(n);x&&x.addOrDeleteFileOrDirectory(n,r),y=!0,e.onChangedAutomaticTypeDirectiveNames();const i=KW(t,e.toPath(t),P,A,I,b,e.preferNonRecursiveWatch,(e=>D.has(e)||j.has(e)));i&&ae(r,i===r)}),1):x$}}function ZW(e){var t,n;return!(!(null==(t=e.resolvedModule)?void 0:t.originalPath)&&!(null==(n=e.resolvedTypeReferenceDirective)?void 0:n.originalPath))}var e$=co?{getCurrentDirectory:()=>co.getCurrentDirectory(),getNewLine:()=>co.newLine,getCanonicalFileName:Vt(co.useCaseSensitiveFileNames)}:void 0;function t$(e,t){const n=e===co&&e$?e$:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:Vt(e.useCaseSensitiveFileNames)};if(!t)return t=>e.write(JU(t,n));const r=new Array(1);return t=>{r[0]=t,e.write(YU(r,n)+n.getNewLine()),r[0]=void 0}}function n$(e,t,n){return!(!e.clearScreen||n.preserveWatchOutput||n.extendedDiagnostics||n.diagnostics||!k(r$,t.code))&&(e.clearScreen(),!0)}var r$=[_a.Starting_compilation_in_watch_mode.code,_a.File_change_detected_Starting_incremental_compilation.code];function i$(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):(new Date).toLocaleTimeString()}function o$(e,t){return t?(t,n,r)=>{n$(e,t,r);let i=`[${GU(i$(e),"[90m")}] `;i+=`${ZU(t.messageText,e.newLine)}${n+n}`,e.write(i)}:(t,n,r)=>{let i="";n$(e,t,r)||(i+=n),i+=`${i$(e)} - `,i+=`${ZU(t.messageText,e.newLine)}${function(e,t){return k(r$,e.code)?t+t:t}(t,n)}`,e.write(i)}}function a$(e,t,n,r,i,o){const a=i;a.onUnRecoverableConfigFileDiagnostic=e=>P$(i,o,e);const s=rL(e,t,a,n,r);return a.onUnRecoverableConfigFileDiagnostic=void 0,s}function s$(e){return T(e,(e=>1===e.category))}function c$(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}=za(n.file,n.start);return{fileName:t,line:e+1}}}))}function l$(e){return 1===e?_a.Found_1_error_Watching_for_file_changes:_a.Found_0_errors_Watching_for_file_changes}function _$(e,t){const n=GU(":"+e.line,"[90m");return vo(e.fileName)&&vo(t)?ra(t,e.fileName,!1)+n:e.fileName+n}function u$(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]&&_$(i[0],r.getCurrentDirectory());let s;s=1===e?void 0!==t[0]?[_a.Found_1_error_in_0,a]:[_a.Found_1_error]:0===o.length?[_a.Found_0_errors,e]:1===o.length?[_a.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,a]:[_a.Found_0_errors_in_1_files,e,o.length];const c=Yx(...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=_a.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=i<c?" ".repeat(c-i):"",a=_$(n,t.getCurrentDirectory());_+=`${o}${r}  ${a}\n`})),_}(i,r):"";return`${n}${ZU(c.messageText,n)}${n}${n}${l}`}function d$(e){return!!e.state}function p$(e,t){var n,r;const i=e.getFileIncludeReasons(),o=t=>ia(t,e.getCurrentDirectory(),e.getCanonicalFileName);for(const a of e.getSourceFiles())t(`${y$(a,o)}`),null==(n=i.get(a.path))||n.forEach((n=>t(`  ${h$(e,n,o).messageText}`))),null==(r=f$(a,e.getCompilerOptionsForFile(a),o))||r.forEach((e=>t(`  ${e.messageText}`)))}function f$(e,t,n){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(ek(void 0,_a.File_is_output_of_project_reference_source_0,y$(e.originalFileName,n))),e.redirectInfo&&(i??(i=[])).push(ek(void 0,_a.File_redirects_to_file_0,y$(e.redirectInfo.redirectTarget,n))),Yp(e))switch(IV(e,t)){case 99:e.packageJsonScope&&(i??(i=[])).push(ek(void 0,_a.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,y$(ye(e.packageJsonLocations),n)));break;case 1:e.packageJsonScope?(i??(i=[])).push(ek(void 0,e.packageJsonScope.contents.packageJsonContent.type?_a.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:_a.File_is_CommonJS_module_because_0_does_not_have_field_type,y$(ye(e.packageJsonLocations),n))):(null==(r=e.packageJsonLocations)?void 0:r.length)&&(i??(i=[])).push(ek(void 0,_a.File_is_CommonJS_module_because_package_json_was_not_found))}return i}function m$(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 g$(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=pS(e,a,"files");return!!n&&hS(`(${n})$`,s).test(t)}));return-1!==c?i.configFileSpecs.validatedIncludeSpecsBeforeSubstitution[c]:void 0}function h$(e,t,n){var r,i;const o=e.getCompilerOptions();if(kV(t)){const r=TV(e,t),i=SV(r)?r.file.text.substring(r.pos,r.end):`"${r.text}"`;let o;switch(_n.assert(SV(r)||3===t.kind,"Only synthetic references are imports"),t.kind){case 3:o=SV(r)?r.packageId?_a.Imported_via_0_from_file_1_with_packageId_2:_a.Imported_via_0_from_file_1:r.text===Uu?r.packageId?_a.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:_a.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:r.packageId?_a.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:_a.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:_n.assert(!r.packageId),o=_a.Referenced_via_0_from_file_1;break;case 5:o=r.packageId?_a.Type_library_referenced_via_0_from_file_1_with_packageId_2:_a.Type_library_referenced_via_0_from_file_1;break;case 7:_n.assert(!r.packageId),o=_a.Library_referenced_via_0_from_file_1;break;default:_n.assertNever(t)}return ek(void 0,o,i,y$(r.file,n),r.packageId&&fd(r.packageId))}switch(t.kind){case 0:if(!(null==(r=o.configFile)?void 0:r.configFileSpecs))return ek(void 0,_a.Root_file_specified_for_compilation);const a=Jo(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(m$(e,a))return ek(void 0,_a.Part_of_files_list_in_tsconfig_json);const s=g$(e,a);return Ye(s)?ek(void 0,_a.Matched_by_include_pattern_0_in_1,s,y$(o.configFile,n)):ek(void 0,s?_a.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:_a.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 ek(void 0,o.outFile?c?_a.Output_from_referenced_project_0_included_because_1_specified:_a.Source_from_referenced_project_0_included_because_1_specified:c?_a.Output_from_referenced_project_0_included_because_module_is_specified_as_none:_a.Source_from_referenced_project_0_included_because_module_is_specified_as_none,y$(l.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:return ek(void 0,...o.types?t.packageId?[_a.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,fd(t.packageId)]:[_a.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[_a.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,fd(t.packageId)]:[_a.Entry_point_for_implicit_type_library_0,t.typeReference]);case 6:{if(void 0!==t.index)return ek(void 0,_a.Library_0_specified_in_compilerOptions,o.lib[t.index]);const e=qk(vk(o));return ek(void 0,...e?[_a.Default_library_for_target_0,e]:[_a.Default_library])}default:_n.assertNever(t)}}function y$(e,t){const n=Ye(e)?e:e.fileName;return t?t(n):n}function v$(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&&Fk(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=ws(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?p$(d$(e)?e.getProgram():e,t):(n.listFiles||n.listFilesOnly)&&_(e.getSourceFiles(),(e=>{t(e.fileName)}))}(e,n)}return r&&r(s$(f),c$(f)),{emitResult:p,diagnostics:f}}function b$(e,t,n,r,i,o,a,s){const{emitResult:c,diagnostics:l}=v$(e,t,n,r,i,o,a,s);return c.emitSkipped&&l.length>0?1:l.length>0?2:0}var x$={close:nt},k$=()=>x$;function S$(e=co,t){return{onWatchStatusChange:t||o$(e),watchFile:Ve(e,e.watchFile)||k$,watchDirectory:Ve(e,e.watchDirectory)||k$,setTimeout:Ve(e,e.setTimeout)||nt,clearTimeout:Ve(e,e.clearTimeout)||nt,preferNonRecursiveWatch:e.preferNonRecursiveWatch}}var T$={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 C$(e,t){const n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,r=0!==n?t=>e.trace(t):nt,i=NU(e,n,r);return i.writeLog=r,i}function w$(e,t,n=e){const r=e.useCaseSensitiveFileNames(),i={getSourceFile:OU(((t,n)=>n?e.readFile(t,n):i.readFile(t)),void 0),getDefaultLibLocation:Ve(e,e.getDefaultLibLocation),getDefaultLibFileName:t=>e.getDefaultLibFileName(t),writeFile:LU(((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:()=>Ab(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 N$(e,t){if(t.match(gJ)){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||!Va(i)){n=r;continue}}const o=t.substring(n,e);if(o.match(hJ)){t=t.substring(0,n);break}if(!o.match(yJ))break;e=n}}return(e.createHash||ji)(t)}function D$(e){const t=e.getSourceFile;e.getSourceFile=(...n)=>{const r=t.call(e,...n);return r&&(r.version=N$(e,r.text)),r}}function F$(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(),Ds(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||LW,storeSignatureInfo:e.storeSignatureInfo,now:Ve(e,e.now)}}function E$(e=co,t,n,r){const i=t=>e.write(t+e.newLine),o=F$(e,t);return Ue(o,S$(e,r)),o.afterProgramCreate=e=>{const t=e.getCompilerOptions(),r=Ab(t);v$(e,n,i,(e=>o.onWatchStatusChange(Yx(l$(e),e),r,t,e)))},o}function P$(e,t,n){t(n),e.exit(1)}function A$({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=a||t$(i),l=E$(i,o,c,s);return l.onUnRecoverableConfigFileDiagnostic=e=>P$(i,c,e),l.configFileName=e,l.optionsToExtend=t,l.watchOptionsToExtend=n,l.extraFileExtensions=r,l}function I$({rootFiles:e,options:t,watchOptions:n,projectReferences:r,system:i,createProgram:o,reportDiagnostic:a,reportWatchStatus:s}){const c=E$(i,o,a||t$(i),s);return c.rootFiles=e,c.options=t,c.watchOptions=n,c.projectReferences=r,c}function O$(e){const t=e.system||co,n=e.host||(e.host=j$(e.options,t)),r=R$(e),i=b$(r,e.reportDiagnostic||t$(t),(e=>n.trace&&n.trace(e)),e.reportErrorSummary||e.options.pretty?(e,r)=>t.write(u$(e,r,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(r),i}function L$(e,t){const n=Jq(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=sU(n,e)}return r&&r.version===o&&hW(r)?EW(r,n,t):void 0}function j$(e,t=co){const n=jU(e,void 0,t);return n.createHash=Ve(t,t.createHash),n.storeSignatureInfo=t.storeSignatureInfo,D$(n),RU(n,(e=>Uo(e,n.getCurrentDirectory(),n.getCanonicalFileName))),n}function R$({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:r,host:i,createProgram:o}){return(o=o||LW)(e,t,i=i||j$(t),L$(t,i),n,r)}function M$(e,t,n,r,i,o,a,s){return Xe(e)?I$({rootFiles:e,options:t,watchOptions:s,projectReferences:a,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o}):A$({configFileName:e,optionsToExtend:t,watchOptionsToExtend:a,extraFileExtensions:s,system:n,createProgram:r,reportDiagnostic:i,reportWatchStatus:o})}function B$(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:N}=e,D=!1,F=!1;const E=void 0===h?void 0:hU(e,g,m),P=E||e,A=MV(e,P);let I=G();h&&e.configFileParsingResult&&(ce(e.configFileParsingResult),I=G()),ee(_a.Starting_compilation_in_watch_mode),h&&!e.configFileParsingResult&&(I=Ab(y),_n.assert(!T),se(),I=G()),_n.assert(C),_n.assert(T);const{watchFile:O,watchDirectory:L,writeLog:j}=C$(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,T$.ConfigFile));const B=w$(e,(()=>C),P);D$(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&&dx(r.watchedDirectories,FU);null==(t=r.watcher)||t.close(),bU(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,T$.FailedLookupLocations),B.watchAffectingFileLocation=(e,t)=>O(e,t,2e3,w,T$.AffectingFileLocation),B.watchTypeRootsDirectory=(e,t,n)=>L(e,t,n,w,T$.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=YW(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=L$(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(),dx(d,(e=>{e&&e.fileWatcher&&(e.fileWatcher.close(),e.fileWatcher=void 0)})),M&&(M.close(),M=void 0),null==_||_.clear(),_=void 0,c&&(dx(c,FU),c=void 0),i&&(dx(i,FU),i=void 0),r&&(dx(r,rx),r=void 0),s&&(dx(s,(e=>{var t;null==(t=e.watcher)||t.close(),e.watcher=void 0,e.watchedDirectories&&dx(e.watchedDirectories,FU),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&&Yu(n.getCompilerOptions(),C)&&z.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:a}=z.createHasInvalidatedResolutions(q,U),{originalReadFile:c,originalFileExists:_,originalDirectoryExists:y,originalCreateDirectory:v,originalWriteFile:b,readFileWithCache:D}=RU(B,X);return CV(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?N$(B,r):void 0}(e,D)),(e=>B.fileExists(e)),o,a,te,le,N)?F&&(u&&ee(_a.File_change_detected_Starting_incremental_compilation),t=x(void 0,void 0,B,t,S,N),F=!1):(u&&ee(_a.File_change_detected_Starting_incremental_compilation),function(e,n){j("CreatingProgramWith::"),j(`  roots: ${JSON.stringify(T)}`),j(`  options: ${JSON.stringify(C)}`),N&&j(`  projectReferences: ${JSON.stringify(N)}`);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,N),z.finishCachingPerDirectoryResolution(t.getProgram(),o),kU(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,T$.ConfigFileOfReferencedProject)),SU(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)&&(TU({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,T$.WildcardDirectoryOfReferencedProject)})),ge(t,null==(o=n.parsedCommandLine)?void 0:o.options,(null==(a=n.parsedCommandLine)?void 0:a.watchOptions)||w,T$.ExtendedConfigOfReferencedProject)}(e,t,n)}else SU(i||(i=new Map),k,me),h&&ge(X(h),C,w,T$.ExtendedConfigFile)})),l=void 0,t}function G(){return Ab(C||y)}function X(e){return Uo(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,T$.SourceFile))):(o.fileWatcher&&o.fileWatcher.close(),d.set(t,!1));else if(i){const n=_e(t,e,ue,250,w,T$.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(Yx(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=Cj(C.configFile.configFileSpecs,Jo(Fo(h),g),C,A,b),aj(T,Jo(h,g),C.configFile.configFileSpecs,S,D)&&(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(rL(h,y,A,_||(_=new Map),v,b))}function ce(e){T=e.fileNames,C=e.options,w=e.watchOptions,N=e.projectReferences,k=e.wildcardDirectories,S=wV(e).slice(),D=oj(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=Cj(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=rL(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))?x$:_e(e,t,fe,500,w,T$.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),TU({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,T$.WildcardDirectory)}function ge(e,t,r,i){vU(e,t,c||(c=new Map),((e,t)=>O(e,((r,i)=>{var o;de(e,t,i),_&&xU(_,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 J$=(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))(J$||{});function z$(e){return So(e,".json")?e:Ro(e,"tsconfig.json")}var q$=new Date(-864e13);function U$(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 V$(e){return e.now?e.now():new Date}function W$(e){return!!e&&!!e.buildOrder}function $$(e){return W$(e)?e.buildOrder:e}function H$(e,t){return n=>{let r=t?`[${GU(i$(e),"[90m")}] `:`${i$(e)} - `;r+=`${ZU(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(r)}}function K$(e,t,n,r){const i=F$(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||t$(e),i.reportSolutionBuilderStatus=r||H$(e),i.now=Ve(e,e.now),i}function G$(e=co,t,n,r,i){const o=K$(e,t,n,r);return o.reportErrorSummary=i,o}function X$(e=co,t,n,r,i){const o=K$(e,t,n,r);return Ue(o,S$(e,i)),o}function Q$(e,t,n){return VH(!1,e,t,n)}function Y$(e,t,n,r){return VH(!0,e,t,n,r)}function Z$(e,t,n,r,i){const o=t,a=t,s=function(e){const t={};return gO.forEach((n=>{Ne(e,n.name)&&(t[n.name]=e[n.name])})),t.tscBuild=!0,t}(r),c=w$(o,(()=>m.projectCompilerOptions));let l,_,u;D$(c),c.getParsedCommandLine=e=>iH(m,e,tH(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=TR(c.getCurrentDirectory(),c.getCanonicalFileName),c.resolveModuleNameLiterals=(e,t,n,r,i)=>fV(e,t,n,r,i,o,l,_V),c.getModuleResolutionCache=()=>l),c.resolveTypeReferenceDirectiveReferences||c.resolveTypeReferenceDirectives||(_=CR(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)=>fV(e,t,n,r,i,o,_,pV)),c.resolveLibrary||(u=TR(c.getCurrentDirectory(),c.getCanonicalFileName,void 0,null==l?void 0:l.getPackageJsonInfoCache()),c.resolveLibrary=(e,t,n)=>NR(e,t,n,o,u)),c.getBuildInfo=(e,t)=>CH(m,e,tH(m,t),void 0);const{watchFile:d,watchDirectory:p,writeLog:f}=C$(a,r),m={host:o,hostWithWatch:a,parseConfigFileHost:MV(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 eH(e,t){return Uo(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function tH(e,t){const{resolvedConfigFilePaths:n}=e,r=n.get(t);if(void 0!==r)return r;const i=eH(e,t);return n.set(t,i),i}function nH(e){return!!e.options}function rH(e,t){const n=e.configFileCache.get(t);return n&&nH(n)?n:void 0}function iH(e,t,n){const{configFileCache:r}=e,i=r.get(n);if(i)return nH(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=Yx(_a.File_0_not_found,t))):(a.onUnRecoverableConfigFileDiagnostic=e=>o=e,u=rL(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 oH(e,t){return z$(Mo(e.compilerHost.getCurrentDirectory(),t))}function aH(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=tH(e,t);if(r.has(l))return;if(n.has(l))return void(s||(a||(a=[])).push(Yx(_a.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,i.join("\r\n"))));n.set(l,!0),i.push(t);const _=iH(e,t,l);if(_&&_.projectReferences)for(const t of _.projectReferences){c(oH(e,t.path),s||t.circular)}i.pop(),r.set(l,!0),(o||(o=[])).push(t)}}function sH(e){return e.buildOrder||function(e){const t=aH(e,e.rootNames.map((t=>oH(e,t))));e.resolvedConfigFilePaths.clear();const n=new Set($$(t).map((t=>tH(e,t)))),r={onDeleteValue:nt};px(e.configFileCache,n,r),px(e.projectStatus,n,r),px(e.builderPrograms,n,r),px(e.diagnostics,n,r),px(e.projectPendingBuild,n,r),px(e.projectErrorsReported,n,r),px(e.buildInfoCache,n,r),px(e.outputTimeStamps,n,r),px(e.lastCachedPackageJsonLookups,n,r),e.watch&&(px(e.allWatchedConfigFiles,n,{onDeleteValue:rx}),e.allWatchedExtendedConfigFiles.forEach((e=>{e.projects.forEach((t=>{n.has(t)||e.projects.delete(t)})),e.close()})),px(e.allWatchedWildcardDirectories,n,{onDeleteValue:e=>e.forEach(FU)}),px(e.allWatchedInputFiles,n,{onDeleteValue:e=>e.forEach(rx)}),px(e.allWatchedPackageJsonFiles,n,{onDeleteValue:e=>e.forEach(rx)}));return e.buildOrder=t}(e)}function cH(e,t,n){const r=t&&oH(e,t),i=sH(e);if(W$(i))return i;if(r){const t=tH(e,r);if(-1===b(i,(n=>tH(e,n)===t)))return}const o=r?aH(e,[r]):i;return _n.assert(!W$(o)),_n.assert(!n||void 0!==r),_n.assert(!n||o[o.length-1]===r),n?o.slice(0,o.length-1):o}function lH(e){e.cache&&_H(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}=RU(n,(t=>eH(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 _H(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 uH(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function dH({projectPendingBuild:e},t,n){const r=e.get(t);(void 0===r||r<n)&&e.set(t,n)}function pH(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&HH(e,_a.Starting_compilation_in_watch_mode),lH(e);$$(sH(e)).forEach((t=>e.projectPendingBuild.set(tH(e,t),0))),t&&t.throwIfCancellationRequested()}var fH=(e=>(e[e.Build=0]="Build",e[e.UpdateOutputFileStamps=1]="UpdateOutputFileStamps",e))(fH||{});function mH(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function gH(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"),mH(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 $H(e,_a.A_non_dry_build_would_build_project_0,t),l=1,void(_=2);if(e.options.verbose&&$H(e,_a.Building_project_0,t),0===i.fileNames.length)return GH(e,n,wV(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||L$(i.options,n)}(e,n,i),wV(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&&(dR(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=Pk(h);let v,b;const{emitResult:x,diagnostics:k}=v$(c,(e=>f.reportDiagnostic(e)),e.write,void 0,((t,i,o,a,s,l)=>{var _;const u=eH(e,t);if(g.set(eH(e,t),t),null==l?void 0:l.buildInfo){b||(b=V$(e.host));const r=null==(_=c.hasChangedEmitSignature)?void 0:_.call(c),i=TH(e,t,n);i?(i.buildInfo=l.buildInfo,i.modifiedTime=b,r&&(i.latestChangedDtsTime=b)):e.buildInfoCache.set(n,{path:eH(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=SH(e,n))).set(u,b||(b=V$(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||FH(e,i,n,_a.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())??rU(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:AH(e,t,n,r,i,a,_n.checkDefined(l)),_++}_n.assert(_>o)}}}function hH(e,t,n){if(!e.projectPendingBuild.size)return;if(W$(t))return;const{options:r,projectPendingBuild:i}=e;for(let o=0;o<t.length;o++){const a=t[o],s=tH(e,a),c=e.projectPendingBuild.get(s);if(void 0===c)continue;n&&(n=!1,YH(e,t));const l=iH(e,a,s);if(!l){XH(e,s),i.delete(s);continue}2===c?(BH(e,a,s,l),JH(e,s,l),zH(e,a,s,l),qH(e,a,s,l),UH(e,a,s,l)):1===c&&(l.fileNames=Cj(l.options.configFile.configFileSpecs,Fo(a),l.options,e.parseConfigFileHost),aj(l.fileNames,a,l.options.configFile.configFileSpecs,l.errors,oj(l.raw)),qH(e,a,s,l),UH(e,a,s,l));const _=DH(e,l,s);if(!r.force){if(1===_.type){ZH(e,a,_),GH(e,s,wV(l)),i.delete(s),r.dry&&$H(e,_a.Project_0_is_up_to_date,a);continue}if(2===_.type||15===_.type)return GH(e,s,wV(l)),{kind:1,status:_,project:a,projectPath:s,projectIndex:o,config:l}}if(12!==_.type){if(16!==_.type)return{kind:0,status:_,project:a,projectPath:s,projectIndex:o,config:l};ZH(e,a,_),GH(e,s,wV(l)),i.delete(s)}else ZH(e,a,_),GH(e,s,wV(l)),i.delete(s),r.verbose&&$H(e,_.upstreamProjectBlocked?_a.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:_a.Skipping_build_of_project_0_because_its_dependency_1_has_errors,a,_.upstreamProjectName)}}function yH(e,t,n){return ZH(e,t.project,t.status),1!==t.kind?gH(e,t.project,t.projectPath,t.projectIndex,t.config,t.status,n):function(e,t,n,r,i){let o=!0;return{kind:1,project:t,projectPath:n,buildOrder:i,getCompilerOptions:()=>r.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{PH(e,r,n),o=!1},done:()=>(o&&PH(e,r,n),er("SolutionBuilder::Timestamps only updates"),mH(e,n))}}(e,t.project,t.projectPath,t.config,n)}function vH(e,t,n){const r=hH(e,t,n);return r?yH(e,r,t):r}function bH(e){return!!e.watcher}function xH(e,t){const n=eH(e,t),r=e.filesWatched.get(n);if(e.watch&&r){if(!bH(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 kH(e,t,n,r,i,o,a){const s=eH(e,t),c=e.filesWatched.get(s);if(c&&bH(c))c.callbacks.push(n);else{const l=e.watchFile(t,((t,n,r)=>{const i=_n.checkDefined(e.filesWatched.get(s));_n.assert(bH(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(bH(t)),1===t.callbacks.length?(e.filesWatched.delete(s),FU(t)):Ut(t.callbacks,n)}}}function SH(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function TH(e,t,n){const r=eH(e,t),i=e.buildInfoCache.get(n);return(null==i?void 0:i.path)===r?i:void 0}function CH(e,t,n,r){const i=eH(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?sU(t,a):void 0;return e.buildInfoCache.set(n,{path:i,buildInfo:s||!1,modifiedTime:r||Ji}),s}function wH(e,t,n,r){if(n<xH(e,t))return{type:5,outOfDateOutputFileName:r,newerInputFileName:t}}function NH(e,t,n){return e.buildInfoCache.get(n).path===t.path}function DH(e,t,n){if(void 0===t)return{type:0,reason:"config file deleted mid-build"};const r=e.projectStatus.get(n);if(void 0!==r)return r;er("SolutionBuilder::beforeUpToDateCheck");const i=function(e,t,n){var r,i,a,c,l;if(ij(t))return{type:16};let u;const d=!!e.options.force;if(t.projectReferences){e.projectStatus.set(n,{type:13});for(const n of t.projectReferences){const t=BV(n),r=tH(e,t),i=iH(e,t,r),o=DH(e,i,r);if(13!==o.type&&16!==o.type){if(e.options.stopBuildOnErrors&&(0===o.type||12===o.type))return{type:12,upstreamProjectName:n.path,upstreamProjectBlocked:12===o.type};d||(u||(u=[])).push({ref:n,refStatus:o,resolvedRefPath:r,resolvedConfig:i})}}}if(d)return{type:17};const{host:p}=e,f=Jq(t.options),m=Pk(t.options);let g=TH(e,f,n);const h=(null==g?void 0:g.modifiedTime)||zi(p,f);if(h===Ji)return g||e.buildInfoCache.set(n,{path:eH(e,f),buildInfo:!1,modifiedTime:h}),{type:3,missingOutputFileName:f};const y=CH(e,f,n,h);if(!y)return{type:4,fileName:f};const v=m&&hW(y)?y:void 0;if((v||!m)&&y.version!==o)return{type:14,version:y.version};if(!t.options.noCheck&&(y.errors||y.checkPending))return{type:8,buildInfoFile:f};if(v){if(!t.options.noCheck&&((null==(r=v.changeFileSet)?void 0:r.length)||(null==(i=v.semanticDiagnosticsPerFile)?void 0:i.length)||Fk(t.options)&&(null==(a=v.emitDiagnosticsPerFile)?void 0:a.length)))return{type:8,buildInfoFile:f};if(!t.options.noEmit&&((null==(c=v.changeFileSet)?void 0:c.length)||(null==(l=v.affectedFilesPendingEmit)?void 0:l.length)||void 0!==v.pendingEmit))return{type:7,buildInfoFile:f};if((!t.options.noEmit||t.options.noEmit&&Fk(t.options))&&aW(t.options,v.options||{},void 0,!!t.options.noEmit))return{type:9,buildInfoFile:f}}let b,x=h,k=f,S=q$,T=!1;const C=new Set;let w,N;for(const n of t.fileNames){const t=xH(e,n);if(t===Ji)return{type:0,reason:`${n} does not exist`};const r=eH(e,n);if(h<t){let t,i;if(v){w||(w=PW(v,f,p));const o=w.roots.get(r);t=w.fileInfos.get(o??r);const a=t?e.readFileWithCache(o??n):void 0;i=void 0!==a?N$(p,a):void 0,t&&t===i&&(T=!0)}if(!t||t!==i)return{type:5,outOfDateOutputFileName:f,newerInputFileName:n}}t>S&&(b=n,S=t),C.add(r)}if(v?(w||(w=PW(v,f,p)),N=nd(w.roots,((e,t)=>C.has(t)?void 0:t))):N=_(AW(y,f,p),(e=>C.has(e)?void 0:e)),N)return{type:10,buildInfoFile:f,inputFile:N};if(!m){const r=tU(t,!p.useCaseSensitiveFileNames()),i=SH(e,n);for(const t of r){if(t===f)continue;const n=eH(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(r<S)return{type:5,outOfDateOutputFileName:t,newerInputFileName:b};r<x&&(x=r,k=t)}}let D=!1;if(u)for(const{ref:t,refStatus:r,resolvedConfig:i,resolvedRefPath:o}of u){if(r.newestInputFileTime&&r.newestInputFileTime<=x)continue;if(NH(e,g??(g=e.buildInfoCache.get(n)),o))return{type:6,outOfDateOutputFileName:f,newerProjectName:t.path};const a=EH(e,i.options,o);if(!(a&&a<=x))return _n.assert(void 0!==k,"Should have an oldest output filename here"),{type:6,outOfDateOutputFileName:k,newerProjectName:t.path};D=!0}const F=wH(e,t.options.configFilePath,x,k);if(F)return F;const E=_(t.options.configFile.extendedSourceFiles||s,(t=>wH(e,t,x,k)));if(E)return E;const P=e.lastCachedPackageJsonLookups.get(n),A=P&&rd(P,(t=>wH(e,t,x,k)));return A||{type:D?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 FH(e,t,n,r,i){if(t.options.noEmit)return;let o;const a=Jq(t.options),s=Pk(t.options);if(a&&s)return(null==i?void 0:i.has(eH(e,a)))||(e.options.verbose&&$H(e,r,t.options.configFilePath),e.host.setModifiedTime(a,o=V$(e.host)),TH(e,a,n).modifiedTime=o),void e.outputTimeStamps.delete(n);const{host:c}=e,l=tU(t,!c.useCaseSensitiveFileNames()),_=SH(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=eH(e,d);(null==i?void 0:i.has(l))||(s&&(s=!1,$H(e,r,t.options.configFilePath)),c.setModifiedTime(d,o||(o=V$(e.host))),d===a?TH(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 EH(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&&hW(r.buildInfo)&&r.buildInfo.latestChangedDtsFile?e.host.getModifiedTime(Jo(r.buildInfo.latestChangedDtsFile,Fo(r.path))):void 0;return r.latestChangedDtsTime=i||!1,i}function PH(e,t,n){if(e.options.dry)return $H(e,_a.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);FH(e,t,n,_a.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:rU(t,!e.host.useCaseSensitiveFileNames())})}function AH(e,t,n,r,i,o,a){if(!(e.options.stopBuildOnErrors&&4&a)&&i.options.composite)for(let i=r+1;i<o.length;i++){const r=o[i],s=tH(e,r);if(e.projectPendingBuild.has(s))continue;const c=iH(e,r,s);if(c&&c.projectReferences)for(const r of c.projectReferences){if(tH(e,oH(e,r.path))!==n)continue;const i=e.projectStatus.get(s);if(i)switch(i.type){case 1:if(2&a){i.type=2;break}case 15:case 2:2&a||e.projectStatus.set(s,{type:6,outOfDateOutputFileName:i.oldestOutputFileName,newerProjectName:t});break;case 12:tH(e,oH(e,i.upstreamProjectName))===n&&uH(e,s)}dH(e,s,0);break}}}function IH(e,t,n,r,i,o){er("SolutionBuilder::beforeBuild");const a=function(e,t,n,r,i,o){const a=cH(e,t,o);if(!a)return 3;pH(e,n);let s=!0,c=0;for(;;){const t=vH(e,a,s);if(!t)break;s=!1,t.done(n,r,null==i?void 0:i(t.project)),e.diagnostics.has(t.projectPath)||c++}return _H(e),QH(e,a),function(e,t){if(!e.watchAllProjectsPending)return;er("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(const n of $$(t)){const t=tH(e,n),r=iH(e,n,t);BH(e,n,t,r),JH(e,t,r),r&&(zH(e,n,t,r),qH(e,n,t,r),UH(e,n,t,r))}er("SolutionBuilder::afterWatcherCreation"),tr("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}(e,a),W$(a)?4:a.some((t=>e.diagnostics.has(tH(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 OH(e,t,n){er("SolutionBuilder::beforeClean");const r=function(e,t,n){const r=cH(e,t,n);if(!r)return 3;if(W$(r))return KH(e,r.circularDiagnostics),4;const{options:i,host:o}=e,a=i.dry?[]:void 0;for(const t of r){const n=tH(e,t),r=iH(e,t,n);if(void 0===r){XH(e,n);continue}const i=tU(r,!o.useCaseSensitiveFileNames());if(!i.length)continue;const s=new Set(r.fileNames.map((t=>eH(e,t))));for(const t of i)s.has(eH(e,t))||o.fileExists(t)&&(a?a.push(t):(o.deleteFile(t),LH(e,n,0)))}a&&$H(e,_a.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 LH(e,t,n){e.host.getParsedCommandLine&&1===n&&(n=2),2===n&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,uH(e,t),dH(e,t,n),lH(e)}function jH(e,t,n){e.reportFileChangeDetected=!0,LH(e,t,n),RH(e,250,!0)}function RH(e,t,n){const{hostWithWatch:r}=e;r.setTimeout&&r.clearTimeout&&(e.timerToBuildInvalidatedProject&&r.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=r.setTimeout(MH,t,"timerToBuildInvalidatedProject",e,n))}function MH(e,t,n){er("SolutionBuilder::beforeBuild");const r=function(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),HH(e,_a.File_change_detected_Starting_incremental_compilation));let n=0;const r=sH(e),i=vH(e,r,!1);if(i)for(i.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;const i=hH(e,r,!1);if(!i)break;if(1!==i.kind&&(t||5===n))return void RH(e,100,!1);yH(e,i,r).done(),1!==i.kind&&n++}return _H(e),r}(t,n);er("SolutionBuilder::afterBuild"),tr("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),r&&QH(t,r)}function BH(e,t,n,r){e.watch&&!e.allWatchedConfigFiles.has(n)&&e.allWatchedConfigFiles.set(n,kH(e,t,(()=>jH(e,n,2)),2e3,null==r?void 0:r.watchOptions,T$.ConfigFile,t))}function JH(e,t,n){vU(t,null==n?void 0:n.options,e.allWatchedExtendedConfigFiles,((t,r)=>kH(e,t,(()=>{var t;return null==(t=e.allWatchedExtendedConfigFiles.get(r))?void 0:t.projects.forEach((t=>jH(e,t,2)))}),2e3,null==n?void 0:n.watchOptions,T$.ExtendedConfigFile)),(t=>eH(e,t)))}function zH(e,t,n,r){e.watch&&SU(U$(e.allWatchedWildcardDirectories,n),r.wildcardDirectories,((i,o)=>e.watchDirectory(i,(o=>{var a;TU({watchedDirPath:eH(e,i),fileOrDirectory:o,fileOrDirectoryPath:eH(e,o),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:r.options,program:e.builderPrograms.get(n)||(null==(a=rH(e,n))?void 0:a.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:t=>e.writeLog(t),toPath:t=>eH(e,t)})||jH(e,n,1)}),o,null==r?void 0:r.watchOptions,T$.WildcardDirectory,t)))}function qH(e,t,n,r){e.watch&&fx(U$(e.allWatchedInputFiles,n),new Set(r.fileNames),{createNewValue:i=>kH(e,i,(()=>jH(e,n,0)),250,null==r?void 0:r.watchOptions,T$.SourceFile,t),onDeleteValue:rx})}function UH(e,t,n,r){e.watch&&e.lastCachedPackageJsonLookups&&fx(U$(e.allWatchedPackageJsonFiles,n),e.lastCachedPackageJsonLookups.get(n),{createNewValue:i=>kH(e,i,(()=>jH(e,n,0)),2e3,null==r?void 0:r.watchOptions,T$.PackageJson,t),onDeleteValue:rx})}function VH(e,t,n,r,i){const o=Z$(e,t,n,r,i);return{build:(e,t,n,r)=>IH(o,e,t,n,r),clean:e=>OH(o,e),buildReferences:(e,t,n,r)=>IH(o,e,t,n,r,!0),cleanReferences:e=>OH(o,e,!0),getNextInvalidatedProject:e=>(pH(o,e),vH(o,sH(o),!1)),getBuildOrder:()=>sH(o),getUpToDateStatusOfProject:e=>{const t=oH(o,e),n=tH(o,t);return DH(o,iH(o,t,n),n)},invalidateProject:(e,t)=>LH(o,e,t||0),close:()=>function(e){dx(e.allWatchedConfigFiles,rx),dx(e.allWatchedExtendedConfigFiles,FU),dx(e.allWatchedWildcardDirectories,(e=>dx(e,FU))),dx(e.allWatchedInputFiles,(e=>dx(e,rx))),dx(e.allWatchedPackageJsonFiles,(e=>dx(e,rx)))}(o)}}function WH(e,t){return ia(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function $H(e,t,...n){e.host.reportSolutionBuilderStatus(Yx(t,...n))}function HH(e,t,...n){var r,i;null==(i=(r=e.hostWithWatch).onWatchStatusChange)||i.call(r,Yx(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function KH({host:e},t){t.forEach((t=>e.reportDiagnostic(t)))}function GH(e,t,n){KH(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function XH(e,t){GH(e,t,[e.configFileCache.get(t)])}function QH(e,t){if(!e.needsSummary)return;e.needsSummary=!1;const n=e.watch||!!e.host.reportErrorSummary,{diagnostics:r}=e;let i=0,o=[];W$(t)?(YH(e,t.buildOrder),KH(e,t.circularDiagnostics),n&&(i+=s$(t.circularDiagnostics)),n&&(o=[...o,...c$(t.circularDiagnostics)])):(t.forEach((t=>{const n=tH(e,t);e.projectErrorsReported.has(n)||KH(e,r.get(n)||s)})),n&&r.forEach((e=>i+=s$(e))),n&&r.forEach((e=>[...o,...c$(e)]))),e.watch?HH(e,l$(i),i):e.host.reportErrorSummary&&e.host.reportErrorSummary(i,o)}function YH(e,t){e.options.verbose&&$H(e,_a.Projects_in_this_build_Colon_0,t.map((t=>"\r\n    * "+WH(e,t))).join(""))}function ZH(e,t,n){e.options.verbose&&function(e,t,n){switch(n.type){case 5:return $H(e,_a.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,WH(e,t),WH(e,n.outOfDateOutputFileName),WH(e,n.newerInputFileName));case 6:return $H(e,_a.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,WH(e,t),WH(e,n.outOfDateOutputFileName),WH(e,n.newerProjectName));case 3:return $H(e,_a.Project_0_is_out_of_date_because_output_file_1_does_not_exist,WH(e,t),WH(e,n.missingOutputFileName));case 4:return $H(e,_a.Project_0_is_out_of_date_because_there_was_error_reading_file_1,WH(e,t),WH(e,n.fileName));case 7:return $H(e,_a.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,WH(e,t),WH(e,n.buildInfoFile));case 8:return $H(e,_a.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_program_needs_to_report_errors,WH(e,t),WH(e,n.buildInfoFile));case 9:return $H(e,_a.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,WH(e,t),WH(e,n.buildInfoFile));case 10:return $H(e,_a.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,WH(e,t),WH(e,n.buildInfoFile),WH(e,n.inputFile));case 1:if(void 0!==n.newestInputFileTime)return $H(e,_a.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,WH(e,t),WH(e,n.newestInputFileName||""),WH(e,n.oldestOutputFileName||""));break;case 2:return $H(e,_a.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,WH(e,t));case 15:return $H(e,_a.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,WH(e,t));case 11:return $H(e,_a.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,WH(e,t),WH(e,n.upstreamProjectName));case 12:return $H(e,n.upstreamProjectBlocked?_a.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:_a.Project_0_can_t_be_built_because_its_dependency_1_has_errors,WH(e,t),WH(e,n.upstreamProjectName));case 0:return $H(e,_a.Project_0_is_out_of_date_because_1,WH(e,t),n.reason);case 14:return $H(e,_a.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,WH(e,t),n.version,o);case 17:$H(e,_a.Project_0_is_being_forcibly_rebuilt,WH(e,t))}}(e,t,n)}var eK=(e=>(e[e.time=0]="time",e[e.count=1]="count",e[e.memory=2]="memory",e))(eK||{});function tK(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,TS)?"TypeScript":To(n,NS)?"JavaScript":So(n,".json")?"JSON":"Other"}(e,n),i=Ra(n).length;t.set(r,t.get(r)+i)})),t}function nK(e,t,n){return iK(e,n)?t$(e,!0):t}function rK(e){return!!e.writeOutputIsTTY&&e.writeOutputIsTTY()&&!e.getEnvironmentVariable("NO_COLOR")}function iK(e,t){return t&&void 0!==t.pretty?t.pretty:rK(e)}function oK(e){return e.options.all?le(bO.concat(AO),((e,t)=>kt(e.name,t.name))):C(bO.concat(AO),(e=>!!e.showInSimplifiedHelpView))}function aK(e){e.write(nL(_a.Version_0,o)+e.newLine)}function sK(e){if(!rK(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`[97m${e}[39m`}return{bold:function(e){return`[1m${e}[22m`},blue:function(e){return!t||n||r?`[94m${e}[39m`:o(e)},brightWhite:o,blueBackground:function(e){return i?`[48;5;68m${e}[39;49m`:`[44m${e}[39;49m`}}}function cK(e){return`--${e.name}${e.shortName?`, -${e.shortName}`:""}`}function lK(e,t,n,r){var i;const o=[],a=sK(e),s=cK(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 nL(_a.type_Colon);case"list":return nL(_a.one_or_more_Colon);default:return nL(_a.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?nL(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=nL(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(nL(_a.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=nL(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=nL(_a.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!==_a.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 _K(e,t){let n=0;for(const e of t){const t=cK(e).length;n=n>t?n:t}const r=n+2,i=r+2;let o=[];for(const n of t){const t=lK(e,n,r,i);o=[...o,...t]}return o[o.length-2]!==e.newLine&&o.push(e.newLine),o}function uK(e,t,n,r,i,o){let a=[];if(a.push(sK(e).bold(t)+e.newLine+e.newLine),i&&a.push(i+e.newLine+e.newLine),!r)return a=[...a,..._K(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=nL(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,..._K(e,t)]})),o&&a.push(o+e.newLine+e.newLine),a}function dK(e,t){let n=[...pK(e,`${nL(_a.tsc_Colon_The_TypeScript_Compiler)} - ${nL(_a.Version_0,o)}`)];n=[...n,...uK(e,nL(_a.BUILD_OPTIONS),C(t,(e=>e!==AO)),!1,Qx(_a.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 pK(e,t){var n;const r=sK(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 fK(e,t){t.options.all?function(e,t,n,r){let i=[...pK(e,`${nL(_a.tsc_Colon_The_TypeScript_Compiler)} - ${nL(_a.Version_0,o)}`)];i=[...i,...uK(e,nL(_a.ALL_COMPILER_OPTIONS),t,!0,void 0,Qx(_a.You_can_learn_about_all_of_the_compiler_options_at_0,"https://aka.ms/tsc"))],i=[...i,...uK(e,nL(_a.WATCH_OPTIONS),r,!1,nL(_a.Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon))],i=[...i,...uK(e,nL(_a.BUILD_OPTIONS),C(n,(e=>e!==AO)),!1,Qx(_a.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,oK(t),IO,mO):function(e,t){const n=sK(e);let r=[...pK(e,`${nL(_a.tsc_Colon_The_TypeScript_Compiler)} - ${nL(_a.Version_0,o)}`)];r.push(n.bold(nL(_a.COMMON_COMMANDS))+e.newLine+e.newLine),s("tsc",_a.Compiles_the_current_project_tsconfig_json_in_the_working_directory),s("tsc app.ts util.ts",_a.Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options),s("tsc -b",_a.Build_a_composite_project_in_the_working_directory),s("tsc --init",_a.Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory),s("tsc -p ./path/to/tsconfig.json",_a.Compiles_the_TypeScript_project_located_at_the_specified_path),s("tsc --help --all",_a.An_expanded_version_of_this_information_showing_all_possible_compiler_options),s(["tsc --noEmit","tsc --target esnext"],_a.Compiles_the_current_project_with_additional_settings);const i=t.filter((e=>e.isCommandLineOnly||e.category===_a.Command_line_Options)),a=t.filter((e=>!k(i,e)));r=[...r,...uK(e,nL(_a.COMMAND_LINE_FLAGS),i,!1,void 0,void 0),...uK(e,nL(_a.COMMON_COMPILER_OPTIONS),a,!1,void 0,Qx(_a.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("  "+nL(i)+e.newLine+e.newLine)}}(e,oK(t))}function mK(e,t,n){let r,i=t$(e);if(n.options.locale&&lc(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,r){const i=e.getCurrentDirectory(),o=zo(Ro(i,"tsconfig.json"));if(e.fileExists(o))t(Yx(_a.A_tsconfig_json_file_is_already_defined_at_Colon_0,o));else{e.writeFile(o,BL(n,r,e.newLine));const t=[e.newLine,...pK(e,"Created a new tsconfig.json with:")];t.push(RL(n,e.newLine)+e.newLine+e.newLine),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,n.fileNames),e.exit(0);if(n.options.version)return aK(e),e.exit(0);if(n.options.help||n.options.all)return fK(e,n),e.exit(0);if(n.options.watch&&n.options.listFilesOnly)return i(Yx(_a.Options_0_and_1_cannot_be_combined,"watch","listFilesOnly")),e.exit(1);if(n.options.project){if(0!==n.fileNames.length)return i(Yx(_a.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(Yx(_a.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(Yx(_a.The_specified_path_does_not_exist_Colon_0,n.options.project)),e.exit(1)}else if(0===n.fileNames.length){r=EU(zo(e.getCurrentDirectory()),(t=>e.fileExists(t)))}if(0===n.fileNames.length&&!r)return n.options.showConfig?i(Yx(_a.Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0,zo(e.getCurrentDirectory()))):(aK(e),fK(e,n)),e.exit(1);const o=e.getCurrentDirectory(),a=JL(n.options,(e=>Jo(e,o)));if(r){const o=new Map,s=a$(r,a,o,n.watchOptions,e,i);if(a.showConfig)return 0!==s.errors.length?(i=nK(e,i,s.options),s.errors.forEach(i),e.exit(1)):(e.write(JSON.stringify(FL(s,r,e),null,4)+e.newLine),e.exit(0));if(i=nK(e,i,s.options),nx(s.options)){if(yK(e,i))return;return function(e,t,n,r,i,o,a){const s=A$({configFileName:r.options.configFilePath,optionsToExtend:i,watchOptionsToExtend:o,system:e,reportDiagnostic:n,reportWatchStatus:NK(e,r.options)});return wK(e,t,s),s.configFileParsingResult=r,s.extendedConfigCache=a,B$(s)}(e,t,i,s,a,n.watchOptions,o)}Pk(s.options)?SK(e,t,i,s):kK(e,t,i,s)}else{if(a.showConfig)return e.write(JSON.stringify(FL(n,Ro(o,"tsconfig.json"),e),null,4)+e.newLine),e.exit(0);if(i=nK(e,i,a),nx(a)){if(yK(e,i))return;return function(e,t,n,r,i,o){const a=I$({rootFiles:r,options:i,watchOptions:o,system:e,reportDiagnostic:n,reportWatchStatus:NK(e,i)});return wK(e,t,a),B$(a)}(e,t,i,n.fileNames,a,n.watchOptions)}Pk(a)?SK(e,t,i,{...n,options:a}):kK(e,t,i,{...n,options:a})}}function gK(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===AO.name||t===AO.shortName}return!1}function hK(e,t,n){if(gK(n)){const{buildOptions:r,watchOptions:i,projects:o,errors:a}=tL(n);if(!r.generateCpuProfile||!e.enableCPUProfiler)return bK(e,t,r,i,o,a);e.enableCPUProfiler(r.generateCpuProfile,(()=>bK(e,t,r,i,o,a)))}const r=XO(n,(t=>e.readFile(t)));if(!r.options.generateCpuProfile||!e.enableCPUProfiler)return mK(e,t,r);e.enableCPUProfiler(r.options.generateCpuProfile,(()=>mK(e,t,r)))}function yK(e,t){return(!e.watchFile||!e.watchDirectory)&&(t(Yx(_a.The_current_host_does_not_support_the_0_option,"--watch")),e.exit(1),!0)}var vK=2;function bK(e,t,n,r,i,o){const a=nK(e,t$(e),n);if(n.locale&&lc(n.locale,e,o),o.length>0)return o.forEach(a),e.exit(1);if(n.help)return aK(e),dK(e,OO),e.exit(0);if(0===i.length)return aK(e),dK(e,OO),e.exit(0);if(!e.getModifiedTime||!e.setModifiedTime||n.clean&&!e.deleteFile)return a(Yx(_a.The_current_host_does_not_support_the_0_option,"--build")),e.exit(1);if(n.watch){if(yK(e,a))return;const o=X$(e,void 0,a,H$(e,iK(e,n)),NK(e,n));o.jsDocParsingMode=vK;const s=DK(e,n);TK(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!==_a.Found_0_errors_Watching_for_file_changes.code&&e.code!==_a.Found_1_error_Watching_for_file_changes.code||FK(_,s)};const _=Y$(o,i,n,r);return _.build(),FK(_,s),l=!0,_}const s=G$(e,void 0,a,H$(e,iK(e,n)),xK(e,n));s.jsDocParsingMode=vK;const c=DK(e,n);TK(e,t,s,c);const l=Q$(s,i,n),_=n.clean?l.clean():l.build();return FK(l,c),dr(),e.exit(_)}function xK(e,t){return iK(e,t)?(t,n)=>e.write(u$(t,n,e.newLine,e)):void 0}function kK(e,t,n,r){const{fileNames:i,options:o,projectReferences:a}=r,s=jU(o,void 0,e);s.jsDocParsingMode=vK;const c=s.getCurrentDirectory(),l=Vt(s.useCaseSensitiveFileNames());RU(s,(e=>Uo(e,c,l))),AK(e,o,!1);const _=EV({rootNames:i,options:o,projectReferences:a,host:s,configFileParsingDiagnostics:wV(r)}),u=b$(_,n,(t=>e.write(t+e.newLine)),xK(e,o));return OK(e,_,void 0),t(_),e.exit(u)}function SK(e,t,n,r){const{options:i,fileNames:o,projectReferences:a}=r;AK(e,i,!1);const s=j$(i,e);s.jsDocParsingMode=vK;const c=O$({host:s,system:e,rootNames:o,options:i,configFileParsingDiagnostics:wV(r),projectReferences:a,reportDiagnostic:n,reportErrorSummary:xK(e,i),afterProgramEmitAndDiagnostics:n=>{OK(e,n.getProgram(),void 0),t(n)}});return e.exit(c)}function TK(e,t,n,r){CK(e,n,!0),n.afterProgramEmitAndDiagnostics=n=>{OK(e,n.getProgram(),r),t(n)}}function CK(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&&AK(e,i,n),r(t,i,o,a,s,c))}function wK(e,t,n){n.jsDocParsingMode=vK,CK(e,n,!1);const r=n.afterProgramCreate;n.afterProgramCreate=n=>{r(n),OK(e,n.getProgram(),void 0),t(n)}}function NK(e,t){return o$(e,iK(e,t))}function DK(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 FK(e,t){if(!t)return;if(!cr())return void co.write(_a.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:$$(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)=>{IK(e)&&n.push({name:`${i(e)} time`,value:t,type:0})})),_r(),lr(),t.clear(),LK(co,n)}function EK(e,t){return e===co&&(t.diagnostics||t.extendedDiagnostics)}function PK(e,t){return e===co&&t.generateTrace}function AK(e,t,n){EK(e,t)&&lr(e),PK(e,t)&&ur(n?"build":"project",t.generateTrace,t.configFilePath)}function IK(e){return Kt(e,"SolutionBuilder::")}function OK(e,t,n){var r;const i=t.getCompilerOptions();let o;if(PK(e,i)&&(null==(r=$n)||r.stopTracing()),EK(e,i)){o=[];const r=e.getMemoryUsage?e.getMemoryUsage():-1;s("Files",t.getSourceFiles().length);const l=tK(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)=>{IK(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),LK(e,o),_?n?(ir((e=>{IK(e)||ar(e)})),or((e=>{IK(e)||sr(e)}))):_r():e.write(_a.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 LK(e,t){let n=0,r=0;for(const e of t){e.name.length>n&&(n=e.name.length);const t=jK(e);t.length>r&&(r=t.length)}for(const i of t)e.write(`${i.name}:`.padEnd(n+2)+jK(i).toString().padStart(r)+e.newLine)}function jK(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 RK(e,t=!0){return{type:e,reportFallback:t}}var MK=RK(void 0,!1),BK=RK(void 0,!1),JK=RK(void 0,!0);function zK(e,t){const n=zk(e,"strictNullChecks");return{serializeTypeOfDeclaration:function(e,n,r){switch(e.kind){case 169:case 341:return u(e,n,r);case 260:return function(e,n,r){var i;const o=fv(e);let s=JK;o?s=RK(a(o,r,e,n)):!e.initializer||1!==(null==(i=n.declarations)?void 0:i.length)&&1!==T(n.declarations,HF)||t.isExpandoFunctionDeclaration(e)||E(e)||(s=h(e.initializer,r,void 0,void 0,af(e)));return void 0!==s.type?s.type:d(e,n,r,s.reportFallback)}(e,n,r);case 171:case 348:case 172:return function(e,n,r){const i=fv(e),o=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration);let s=JK;if(i)s=RK(a(i,r,e,n,o));else{const t=uD(e)?e.initializer:void 0;if(t&&!E(e)){s=h(t,r,void 0,o,tf(e))}}return void 0!==s.type?s.type:d(e,n,r,s.reportFallback)}(e,n,r);case 208:return d(e,n,r);case 277:return l(e.expression,r,void 0,!0);case 211:case 212:case 226:return function(e,t,n){const r=fv(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 303:case 304:return function(e,n,r){const i=fv(e);let a;i&&t.canReuseTypeNodeAnnotation(r,e,i,n)&&(a=o(i,r));if(!a&&303===e.kind){const i=e.initializer,s=cA(i)?lA(i):234===i.kind||216===i.kind?i.type:void 0;s&&!kl(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 177:return c(e,t,n);case 174:case 262:case 180:case 173:case 179:case 176:case 178:case 181:case 184:case 185:case 218:case 219:case 317:case 323: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:ZC.cloneNode(n),r??n)}function i(n,r){const{finalizeBoundary:i,startRecoveryScope:o,hadError:a,markError:s}=t.createRecoveryBoundary(n),c=nJ(r,l,b_);if(i())return n.approximateLength+=r.end-r.pos,c;function l(r){if(a())return r;const i=o(),c=PC(r)?t.enterNewScope(n,r):void 0,_=function(r){var i;if(HE(r))return nJ(r.type,l,b_);if(ZE(r)||319===r.kind)return ZC.createKeywordTypeNode(133);if(eP(r))return ZC.createKeywordTypeNode(159);if(tP(r))return ZC.createUnionTypeNode([nJ(r.type,l,b_),ZC.createLiteralTypeNode(ZC.createNull())]);if(rP(r))return ZC.createUnionTypeNode([nJ(r.type,l,b_),ZC.createKeywordTypeNode(157)]);if(nP(r))return nJ(r.type,l);if(oP(r))return ZC.createArrayTypeNode(nJ(r.type,l,b_));if(cP(r))return ZC.createTypeLiteralNode(D(r.jsDocPropertyTags,(e=>{const i=nJ(VN(e.name)?e.name:e.name.right,l,VN),o=t.getJsDocPropertyOverride(n,r,e);return ZC.createPropertySignature(void 0,i,e.isBracketed||e.typeExpression&&rP(e.typeExpression.type)?ZC.createToken(58):void 0,o||e.typeExpression&&nJ(e.typeExpression.type,l,b_)||ZC.createKeywordTypeNode(133))})));if(kD(r)&&VN(r.typeName)&&""===r.typeName.escapedText)return tw(ZC.createKeywordTypeNode(133),r);if((yF(r)||kD(r))&&Om(r))return ZC.createTypeLiteralNode([ZC.createIndexSignature(void 0,[ZC.createParameterDeclaration(void 0,void 0,"x",void 0,nJ(r.typeArguments[0],l,b_))],nJ(r.typeArguments[1],l,b_))]);if(iP(r)){if(Ng(r)){let e;return ZC.createConstructorTypeNode(void 0,rJ(r.typeParameters,l,sD),R(r.parameters,((r,i)=>r.name&&VN(r.name)&&"new"===r.name.escapedText?void(e=r.type):ZC.createParameterDeclaration(void 0,c(r),t.markNodeReuse(n,ZC.createIdentifier(_(r,i)),r),ZC.cloneNode(r.questionToken),nJ(r.type,l,b_),void 0))),nJ(e||r.type,l,b_)||ZC.createKeywordTypeNode(133))}return ZC.createFunctionTypeNode(rJ(r.typeParameters,l,sD),D(r.parameters,((e,r)=>ZC.createParameterDeclaration(void 0,c(e),t.markNodeReuse(n,ZC.createIdentifier(_(e,r)),e),ZC.cloneNode(e.questionToken),nJ(e.type,l,b_),void 0))),nJ(r.type,l,b_)||ZC.createKeywordTypeNode(133))}if(RD(r))return t.canReuseTypeNode(n,r)||s(),r;if(sD(r)){const{node:e}=t.trackExistingEntityName(n,r.name);return ZC.updateTypeParameterDeclaration(r,rJ(r.modifiers,l,Zl),e,nJ(r.constraint,l,b_),nJ(r.default,l,b_))}if(BD(r)){const e=u(r);return e||(s(),r)}if(kD(r)){const e=f(r);return e||(s(),r)}if(uf(r))return 132===(null==(i=r.attributes)?void 0:i.token)?(s(),r):t.canReuseTypeNode(n,r)?ZC.updateImportTypeNode(r,ZC.updateLiteralTypeNode(r.argument,m(r,r.argument.literal)),nJ(r.attributes,l,_E),nJ(r.qualifier,l,e_),rJ(r.typeArguments,l,b_),r.isTypeOf):t.serializeExistingTypeNode(n,r);if(Sc(r)&&167===r.name.kind&&!t.hasLateBindableName(r)){if(!Mh(r))return o(r,l);if(t.shouldRemoveDeclaration(n,r))return}if(r_(r)&&!r.type||uD(r)&&!r.type&&!r.initializer||_D(r)&&!r.type&&!r.initializer||cD(r)&&!r.type&&!r.initializer){let e=o(r,l);return e===r&&(e=t.markNodeReuse(n,ZC.cloneNode(r),r)),e.type=ZC.createKeywordTypeNode(133),cD(r)&&(e.modifiers=void 0),e}if(CD(r)){const e=p(r);return e||(s(),r)}if(aD(r)&&sb(r.expression)){const{node:i,introducesError:o}=t.trackExistingEntityName(n,r.expression);if(o){const i=t.serializeTypeOfExpression(n,r.expression);let o;if(zD(i))o=i.literal;else{const e=t.evaluateEntityNameExpression(r.expression),a="string"==typeof e.value?ZC.createStringLiteral(e.value,void 0):"number"==typeof e.value?ZC.createNumericLiteral(e.value,0):void 0;if(!a)return qD(i)&&t.trackComputedName(n,r.expression),r;o=a}return 11===o.kind&&ms(o.text,vk(e))?ZC.createIdentifier(o.text):9!==o.kind||o.text.startsWith("-")?ZC.updateComputedPropertyName(r,o):o}return ZC.updateComputedPropertyName(r,i)}if(xD(r)){let e;if(VN(r.parameterName)){const{node:i,introducesError:o}=t.trackExistingEntityName(n,r.parameterName);o&&s(),e=i}else e=ZC.cloneNode(r.parameterName);return ZC.updateTypePredicateNode(r,ZC.cloneNode(r.assertsModifier),e,nJ(r.type,l,b_))}if(DD(r)||wD(r)||JD(r)){const e=o(r,l),i=t.markNodeReuse(n,e===r?ZC.cloneNode(r):e,r);return ow(i,Yd(i)|(1024&n.flags&&wD(r)?0:1)),i}if(NN(r)&&268435456&n.flags&&!r.singleQuote){const e=ZC.cloneNode(r);return e.singleQuote=!0,e}if(OD(r)){const e=nJ(r.checkType,l,b_),i=t.enterNewScope(n,r),o=nJ(r.extendsType,l,b_),a=nJ(r.trueType,l,b_);i();const s=nJ(r.falseType,l,b_);return ZC.updateConditionalTypeNode(r,e,o,a,s)}if(MD(r))if(158===r.operator&&155===r.type.kind){if(!t.canReuseTypeNode(n,r))return s(),r}else if(143===r.operator){const e=d(r);return e||(s(),r)}return o(r,l);function o(e,t){return dJ(e,t,void 0,!n.enclosingFile||n.enclosingFile!==yd(e)?a:void 0)}function a(e,t,n,r,i){let o=rJ(e,t,n,r,i);return o&&(-1===o.pos&&-1===o.end||(o===e&&(o=ZC.createNodeArray(e.slice(),e.hasTrailingComma)),wT(o,-1,-1))),o}function c(e){return e.dotDotDotToken||(e.type&&oP(e.type)?ZC.createToken(26):void 0)}function _(e,t){return e.name&&VN(e.name)&&"this"===e.name.escapedText?"this":c(e)?"args":`arg${t}`}function m(e,r){const i=t.getModuleSpecifierOverride(n,e,r);return i?tw(ZC.createStringLiteral(i),r):nJ(r,l,NN)}}(r);return null==c||c(),a()?b_(r)&&!xD(r)?(i(),t.serializeExistingTypeNode(n,r)):r:_?t.markNodeReuse(n,_,r):void 0}function _(e){const t=oh(e);switch(t.kind){case 183:return f(t);case 186:return p(t);case 199:return u(t);case 198:const e=t;if(143===e.operator)return d(e)}return nJ(e,l,b_)}function u(e){const t=_(e.objectType);if(void 0!==t)return ZC.updateIndexedAccessTypeNode(e,t,nJ(e.indexType,l,b_))}function d(e){_n.assertEqual(e.operator,143);const t=_(e.type);if(void 0!==t)return ZC.updateTypeOperatorNode(e,t)}function p(e){const{introducesError:r,node:i}=t.trackExistingEntityName(n,e.exprName);if(!r)return ZC.updateTypeQueryNode(e,i,rJ(e.typeArguments,l,b_));const o=t.serializeTypeName(n,e.exprName,!0);return o?t.markNodeReuse(n,o,e.exprName):void 0}function f(e){if(t.canReuseTypeNode(n,e)){const{introducesError:r,node:i}=t.trackExistingEntityName(n,e.typeName),o=rJ(e.typeArguments,l,b_);if(!r){const r=ZC.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&&!N(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&&!N(e)||(c=o(e,n,a)),void 0===c&&s?(n.tracker.reportInferenceFallback(r),t.serializeExistingTypeNode(n,e,a)??ZC.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)??ZC.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&&!xD(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,void 0,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 177===e.kind?Em(e)&&nl(e)||gv(e):yv(e)}function u(e,n,r){const i=e.parent;if(178===i.kind)return c(i,void 0,r);const o=fv(e),s=t.requiresAddingImplicitUndefined(e,n,r.enclosingDeclaration);let l=JK;return o?l=RK(a(o,r,e,n,s)):cD(e)&&e.initializer&&VN(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?ZC.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?ZC.createKeywordTypeNode(133):t.serializeTypeOfExpression(n,e)??ZC.createKeywordTypeNode(133)}function f(e,n,r,i,o=!0){if(177===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)??ZC.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 kl(t)?h(e,n,!0,r):RK(s(t,n,r))}function h(e,r,i=!1,o=!1,a=!1){switch(e.kind){case 217:return cA(e)?g(e.expression,lA(e),r,o):h(e.expression,r,i,o);case 80:if(t.isUndefinedIdentifierExpression(e))return RK(S());break;case 106:return RK(n?w(ZC.createLiteralTypeNode(ZC.createNull()),o,e,r):ZC.createKeywordTypeNode(133));case 219:case 218: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 RK(ZC.createFunctionTypeNode(r,i,n))}(e,r)));case 216:case 234:const s=e;return g(s.expression,s.type,r,o);case 224:const c=e;if(xC(c))return C(40===c.operator?c.operand:c,10===c.operand.kind?163:150,r,i||a,o);break;case 209: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(230===n.kind)return t.tracker.reportInferenceFallback(n),!1;return!0}(e,t,n))return r||_u(rh(e).parent)?BK:RK(p(e,t,!1,r));const i=t.noInferenceFallback;t.noInferenceFallback=!0;const o=[];for(const r of e.elements)if(_n.assert(230!==r.kind),232===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 ZC.createTupleTypeNode(o).emitNode={flags:1,autoGenerate:void 0,internalFlags:0},t.noInferenceFallback=i,MK}(e,r,i,o);case 210: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(304===i.kind||305===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(167===i.name.kind){const e=i.name.expression;xC(e,!1)||t.isDefinitelyReferenceToGlobalSymbolObject(e)||(n.tracker.reportInferenceFallback(i.name),r=!1)}}}return r}(e,n))return i||_u(rh(e).parent)?BK:RK(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(!qE(t)&&!UE(t));const e=t.name;let i;switch(t.kind){case 174:i=m(n,t,(()=>x(t,e,n,r)));break;case 303:i=y(t,e,n,r);break;case 178:case 177:i=k(t,e,n)}i&&(gw(i,t),a.push(i))}n.flags=s;const c=ZC.createTypeLiteralNode(a);1024&n.flags||ow(c,1);return n.noInferenceFallback=o,MK}(e,r,i,o);case 231:return RK(p(e,r,!0,o));case 228:if(!i&&!a)return RK(ZC.createKeywordTypeNode(154));break;default:let l,_=e;switch(e.kind){case 9:l=150;break;case 15:_=ZC.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 JK}function y(e,t,n,i){const o=i?[ZC.createModifier(148)]:[],a=h(e.initializer,n,i),s=void 0!==a.type?a.type:d(e,void 0,n,a.reportFallback);return ZC.createPropertySignature(o,r(n,t),void 0,s)}function v(e,n){return ZC.updateParameterDeclaration(e,[],r(n,e.dotDotDotToken),t.serializeNameOfParameter(n,e),t.isOptionalParameter(e)?ZC.createToken(58):void 0,u(e,void 0,n),void 0)}function b(e,t){return null==e?void 0:e.map((e=>{var n;return ZC.updateTypeParameterDeclaration(e,null==(n=e.modifiers)?void 0:n.map((e=>r(t,e))),r(t,e.name),s(e.constraint,t),s(e.default,t))}))}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?ZC.createPropertySignature([ZC.createModifier(148)],r(n,t),r(n,e.questionToken),ZC.createFunctionTypeNode(a,s,o)):(VN(t)&&"new"===t.escapedText&&(t=ZC.createStringLiteral("new")),ZC.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)?ZC.updateGetAccessorDeclaration(e,[],r(i,n),t,s(a,i),void 0):ZC.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 ZC.createPropertySignature(void 0===o.setAccessor?[ZC.createModifier(148)]:[],r(i,n),void 0,t)}}function S(){return n?ZC.createKeywordTypeNode(157):ZC.createKeywordTypeNode(133)}function C(e,t,n,i,o){let a;return i?(224===e.kind&&40===e.operator&&(a=ZC.createLiteralTypeNode(r(n,e.operand))),a=ZC.createLiteralTypeNode(r(n,e))):a=ZC.createKeywordTypeNode(t),RK(w(a,o,e,n))}function w(e,t,r,i){const o=r&&rh(r).parent,a=o&&_u(o)&&QT(o);return n&&(t||a)?(N(e)||i.tracker.reportInferenceFallback(e),AD(e)?ZC.createUnionTypeNode([...e.types,ZC.createKeywordTypeNode(157)]):ZC.createUnionTypeNode([e,ZC.createKeywordTypeNode(157)])):e}function N(e){return!n||(!(!Ch(e.kind)&&201!==e.kind&&184!==e.kind&&185!==e.kind&&188!==e.kind&&189!==e.kind&&187!==e.kind&&203!==e.kind&&197!==e.kind)||(196===e.kind?N(e.type):(192===e.kind||193===e.kind)&&e.types.every(N)))}function F(e,n,r,i=!0){let s=JK;const c=Ng(e)?fv(e.parameters[0]):gv(e);return c?s=RK(a(c,r,e,n)):eh(e)&&(s=function(e,t){let n;if(e&&!wd(e.body)){if(3&Oh(e))return JK;const t=e.body;t&&DF(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=cA(n)?lA(n):vF(n)||tF(n)?n.type:void 0;if(e&&!kl(e))return RK(o(e,t))}}return JK}(e,r)),void 0!==s.type?s.type:function(e,n,r){return r&&n.tracker.reportInferenceFallback(e),!0===n.noInferenceFallback?ZC.createKeywordTypeNode(133):t.serializeReturnTypeForSignature(n,e)??ZC.createKeywordTypeNode(133)}(e,r,i&&s.reportFallback&&!c)}function E(e){return uc(e.parent,(e=>YD(e)||!o_(e)&&!!fv(e)||CE(e)||LE(e)))}}var qK={};n(qK,{NameValidationResult:()=>uG,discoverTypings:()=>lG,isTypingUpToDate:()=>oG,loadSafeList:()=>sG,loadTypesMap:()=>cG,nonRelativeModuleNameForTypingCache:()=>aG,renderPackageNameValidationFailure:()=>mG,validatePackageName:()=>pG});var UK,VK,WK="action::set",$K="action::invalidate",HK="action::packageInstalled",KK="event::typesRegistry",GK="event::beginInstallTypes",XK="event::endInstallTypes",QK="event::initializationFailed",YK="action::watchTypingLocations";function ZK(e){return co.args.includes(e)}function eG(e){const t=co.args.indexOf(e);return t>=0&&t<co.args.length-1?co.args[t+1]:void 0}function tG(){const e=new Date;return`${e.getHours().toString().padStart(2,"0")}:${e.getMinutes().toString().padStart(2,"0")}:${e.getSeconds().toString().padStart(2,"0")}.${e.getMilliseconds().toString().padStart(3,"0")}`}(VK=UK||(UK={})).GlobalCacheLocation="--globalTypingsCacheLocation",VK.LogFile="--logFile",VK.EnableTelemetry="--enableTelemetry",VK.TypingSafeListLocation="--typingSafeListLocation",VK.TypesMapLocation="--typesMapLocation",VK.NpmLocation="--npmLocation",VK.ValidateDefaultNpmLocation="--validateDefaultNpmLocation";var nG="\n    ";function rG(e){return nG+e.replace(/\n/g,nG)}function iG(e){return rG(JSON.stringify(e,void 0,2))}function oG(e,t){return new vn(De(t,`ts${i}`)||De(t,"latest")).compareTo(e.version)<=0}function aG(e){return DC.has(e)?"node":e}function sG(e,t){const n=iL(t,(t=>e.readFile(t)));return new Map(Object.entries(n.config))}function cG(e,t){var n;const r=iL(t,(t=>e.readFile(t)));if(null==(n=r.config)?void 0:n.simpleMap)return new Map(Object.entries(r.config.simpleMap))}function lG(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(LS(t))return t}));const d=[];a.include&&y(a.include,"Explicitly included types");const p=a.exclude||[];if(!l.types){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(!LS(e))return;const t=Bt(VS(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(aG),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&&oG(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:${iG(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=iL(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&&lt(t[t.length-4])===i||!n&&lt(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=iL(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 _G,uG=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(uG||{}),dG=214;function pG(e){return fG(e,!0)}function fG(e,t){if(!e)return 1;if(e.length>dG)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=fG(t[1],!1);if(0!==e)return{name:t[1],isScopeName:!0,result:e};const n=fG(t[2],!1);return 0!==n?{name:t[2],isScopeName:!1,result:n}:0}}return encodeURIComponent(e)!==e?5:0}function mG(e,t){return"object"==typeof e?gG(t,e.result,e.name,e.isScopeName):gG(t,e,t,!1)}function gG(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 ${dG} 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 non URI safe 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)}})(_G||(_G={}));var hG=(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))(hG||{}),yG=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(yG||{}),vG=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(vG||{}),bG={},xG=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(xG||{}),kG=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(kG||{}),SG=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(SG||{}),TG=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(TG||{}),CG=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(CG||{}),wG=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(wG||{}),NG=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(NG||{});function DG(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 FG=DG("\n"),EG=(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))(EG||{}),PG=(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))(PG||{}),AG=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(AG||{}),IG=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(IG||{}),OG=(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))(OG||{}),LG=(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))(LG||{}),jG=(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))(jG||{}),RG=(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))(RG||{}),MG=(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))(MG||{}),BG=(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))(BG||{}),JG=gs(99,!0),zG=(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))(zG||{});function qG(e){switch(e.kind){case 260:return Em(e)&&Xc(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 346:return void 0===e.name?3:2;case 306:case 263:return 3;case 267:return sp(e)||1===jM(e)?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 307:return 5}return 7}function UG(e){const t=(e=qX(e)).parent;return 307===e.kind?1:gE(t)||vE(t)||TE(t)||mE(t)||aE(t)||iE(t)&&e===t.name?7:VG(e)?function(e){const t=166===e.kind?e:oD(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&271===t.parent.kind?7:4}(e):lh(e)?qG(t):e_(e)&&uc(e,Zt(KE,Ru,GE))?7:function(e){pb(e)&&(e=e.parent);switch(e.kind){case 110:return!bm(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return Cf(e.parent)}return!1}(e)?2:function(e){return function(e){let t=e,n=!0;if(166===t.parent.kind){for(;t.parent&&166===t.parent.kind;)t=t.parent;n=t.right===e}return 183===t.parent.kind&&!n}(e)||function(e){let t=e,n=!0;if(211===t.parent.kind){for(;t.parent&&211===t.parent.kind;)t=t.parent;n=t.name===e}if(!n&&233===t.parent.kind&&298===t.parent.parent.kind){const e=t.parent.parent.parent;return 263===e.kind&&119===t.parent.parent.token||264===e.kind&&96===t.parent.parent.token}return!1}(e)}(e)?4:sD(t)?(_n.assert(NP(t.parent)),2):zD(t)?3:1}function VG(e){for(;166===e.parent.kind;)e=e.parent;return Nm(e.parent)&&e.parent.moduleReference===e}function WG(e,t=!1,n=!1){return eX(e,YD,QG,t,n)}function $G(e,t=!1,n=!1){return eX(e,ZD,QG,t,n)}function HG(e,t=!1,n=!1){return eX(e,j_,QG,t,n)}function KG(e,t=!1,n=!1){return eX(e,eF,YG,t,n)}function GG(e,t=!1,n=!1){return eX(e,lD,QG,t,n)}function XG(e,t=!1,n=!1){return eX(e,bu,ZG,t,n)}function QG(e){return e.expression}function YG(e){return e.tag}function ZG(e){return e.tagName}function eX(e,t,n,r,i){let o=r?function(e){return lX(e)||_X(e)?e.parent:e}(e):tX(e);return i&&(o=uA(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function tX(e){return lX(e)?e.parent:e}function nX(e,t){for(;e;){if(256===e.kind&&e.label.escapedText===t)return e.label;e=e.parent}}function rX(e,t){return!!XD(e.expression)&&e.expression.name.text===t}function iX(e){var t;return VN(e)&&(null==(t=et(e.parent,Cl))?void 0:t.label)===e}function oX(e){var t;return VN(e)&&(null==(t=et(e.parent,UF))?void 0:t.label)===e}function aX(e){return oX(e)||iX(e)}function sX(e){var t;return(null==(t=et(e.parent,Cu))?void 0:t.tagName)===e}function cX(e){var t;return(null==(t=et(e.parent,oD))?void 0:t.right)===e}function lX(e){var t;return(null==(t=et(e.parent,XD))?void 0:t.name)===e}function _X(e){var t;return(null==(t=et(e.parent,QD))?void 0:t.argumentExpression)===e}function uX(e){var t;return(null==(t=et(e.parent,eE))?void 0:t.name)===e}function dX(e){var t;return VN(e)&&(null==(t=et(e.parent,r_))?void 0:t.name)===e}function pX(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Cc(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return 199===e.parent.parent.kind;default:return!1}}function fX(e){return Tm(e.parent.parent)&&Cm(e.parent.parent)===e}function mX(e){for(Dg(e)&&(e=e.parent.parent);;){if(!(e=e.parent))return;switch(e.kind){case 307:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function gX(e){switch(e.kind){case 307:return VI(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 338:case 346:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(Yh(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:n}=e;return r_(n)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Dv(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const r=tg(e),{right:i}=e;switch(r){case 7:case 8:case 9:case 0:default:return"";case 1:case 2:const e=gX(i);return""===e?"const":e;case 3:case 5:return rF(i)?"method":"property";case 4:return"property";case 6:return"local class"}case 80:return aE(e.parent)?"alias":"";case 277:const o=gX(e.expression);return""===o?"const":o;default:return""}function t(e){return of(e)?"const":sf(e)?"let":"var"}}function hX(e){switch(e.kind){case 110:return!0;case 80:return dv(e)&&169===e.parent.kind;default:return!1}}var yX=/^\/\/\/\s*</;function vX(e,t){return Ra(t)[t.getLineAndCharacterOfPosition(e).line]}function bX(e,t){return kX(e,t.pos)&&kX(e,t.end)}function xX(e,t){return e.pos<=t&&t<=e.end}function kX(e,t){return e.pos<t&&t<e.end}function SX(e,t,n){return e.pos<=t&&e.end>=n}function TX(e,t,n){return wX(e.pos,e.end,t,n)}function CX(e,t,n,r){return wX(e.getStart(t),e.end,n,r)}function wX(e,t,n,r){return Math.max(e,n)<Math.min(t,r)}function NX(e,t,n){return _n.assert(e.pos<=t),t<e.end||!DX(e,n)}function DX(e,t){if(void 0===e||wd(e))return!1;switch(e.kind){case 263:case 264:case 266:case 210:case 206:case 187:case 241:case 268:case 269:case 275:case 279:return FX(e,20,t);case 299:return DX(e.block,t);case 214:if(!e.arguments)return!0;case 213:case 217:case 196:return FX(e,22,t);case 184:case 185:return DX(e.type,t);case 176:case 177:case 178:case 262:case 218:case 174:case 173:case 180:case 179:case 219:return e.body?DX(e.body,t):e.type?DX(e.type,t):PX(e,22,t);case 267:return!!e.body&&DX(e.body,t);case 245:return e.elseStatement?DX(e.elseStatement,t):DX(e.thenStatement,t);case 244:return DX(e.expression,t)||PX(e,27,t);case 209:case 207:case 212:case 167:case 189:return FX(e,24,t);case 181:return e.type?DX(e.type,t):PX(e,24,t);case 296:case 297:return!1;case 248:case 249:case 250:case 247:return DX(e.statement,t);case 246:return PX(e,117,t)?FX(e,22,t):DX(e.statement,t);case 186:return DX(e.exprName,t);case 221:case 220:case 222:case 229:case 230:return DX(e.expression,t);case 215:return DX(e.template,t);case 228:return DX(he(e.templateSpans),t);case 239:return Nd(e.literal);case 278:case 272:return Nd(e.moduleSpecifier);case 224:return DX(e.operand,t);case 226:return DX(e.right,t);case 227:return DX(e.whenFalse,t);default:return!0}}function FX(e,t,n){const r=e.getChildren(n);if(r.length){const e=ye(r);if(e.kind===t)return!0;if(27===e.kind&&1!==r.length)return r[r.length-2].kind===t}return!1}function EX(e){const t=IX(e);if(!t)return;return{listItemIndex:Qd(t.getChildren(),e),list:t}}function PX(e,t,n){return!!AX(e,t,n)}function AX(e,t,n){return y(e.getChildren(n),(e=>e.kind===t))}function IX(e){const t=y(e.parent.getChildren(),(t=>LP(t)&&Qb(t,e)));return _n.assert(!t||k(t.getChildren(),e)),t}function OX(e){return 90===e.kind}function LX(e){return 86===e.kind}function jX(e){return 100===e.kind}function RX(e,t){if(16777216&e.flags)return;const n=mZ(e,t);if(n)return n;const r=function(e){let t;return uc(e,(e=>(b_(e)&&(t=e),!oD(e.parent)&&!b_(e.parent)&&!h_(e.parent)))),t}(e);return r&&t.getTypeAtLocation(r)}function MX(e,t){if(!t)switch(e.kind){case 263:case 231:return function(e){if(Sc(e))return e.name;if(XF(e)){const t=e.modifiers&&y(e.modifiers,OX);if(t)return t}if(gF(e)){const t=y(e.getChildren(),LX);if(t)return t}}(e);case 262:case 218:return function(e){if(Sc(e))return e.name;if(GF(e)){const t=y(e.modifiers,OX);if(t)return t}if(rF(e)){const t=y(e.getChildren(),jX);if(t)return t}}(e);case 176:return e}if(Sc(e))return e.name}function BX(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(fE(e.importClause.namedBindings)){const t=ve(e.importClause.namedBindings.elements);if(!t)return;return t.name}if(dE(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function JX(e,t){if(e.exportClause){if(yE(e.exportClause)){if(!ve(e.exportClause.elements))return;return e.exportClause.elements[0].name}if(pE(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function zX(e,t){const{parent:n}=e;if(Zl(e)&&(t||90!==e.kind)?lI(n)&&k(n.modifiers,e):86===e.kind?XF(n)||gF(e):100===e.kind?GF(n)||rF(e):120===e.kind?QF(n):94===e.kind?ZF(n):156===e.kind?YF(n):145===e.kind||144===e.kind?eE(n):102===e.kind?iE(n):139===e.kind?gD(n):153===e.kind&&hD(n)){const e=MX(n,t);if(e)return e}if((115===e.kind||87===e.kind||121===e.kind)&&KF(n)&&1===n.declarations.length){const e=n.declarations[0];if(VN(e.name))return e.name}if(156===e.kind){if(aE(n)&&n.isTypeOnly){const e=BX(n.parent,t);if(e)return e}if(hE(n)&&n.isTypeOnly){const e=JX(n,t);if(e)return e}}if(130===e.kind){if(mE(n)&&n.propertyName||vE(n)&&n.propertyName||dE(n)||pE(n))return n.name;if(hE(n)&&n.exportClause&&pE(n.exportClause))return n.exportClause.name}if(102===e.kind&&oE(n)){const e=BX(n,t);if(e)return e}if(95===e.kind){if(hE(n)){const e=JX(n,t);if(e)return e}if(gE(n))return uA(n.expression)}if(149===e.kind&&TE(n))return n.expression;if(161===e.kind&&(oE(n)||hE(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((96===e.kind||119===e.kind)&&BE(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(sD(n)&&n.constraint&&kD(n.constraint))return n.constraint.typeName;if(OD(n)&&kD(n.extendsType))return n.extendsType.typeName}if(140===e.kind&&LD(n))return n.typeParameter.name;if(103===e.kind&&sD(n)&&JD(n.parent))return n.name;if(143===e.kind&&MD(n)&&143===n.operator&&kD(n.type))return n.type.typeName;if(148===e.kind&&MD(n)&&148===n.operator&&ND(n.type)&&kD(n.type.elementType))return n.type.elementType.typeName;if(!t){if((105===e.kind&&ZD(n)||116===e.kind&&sF(n)||114===e.kind&&aF(n)||135===e.kind&&cF(n)||127===e.kind&&fF(n)||91===e.kind&&oF(n))&&n.expression)return uA(n.expression);if((103===e.kind||104===e.kind)&&uF(n)&&n.operatorToken===e)return uA(n.right);if(130===e.kind&&vF(n)&&kD(n.type))return n.type.typeName;if(103===e.kind&&jF(n)||165===e.kind&&RF(n))return uA(n.expression)}return e}function qX(e){return zX(e,!1)}function UX(e){return zX(e,!0)}function VX(e,t){return WX(e,t,(e=>zh(e)||Ch(e.kind)||WN(e)))}function WX(e,t,n){return HX(e,t,!1,n,!1)}function $X(e,t){return HX(e,t,!0,void 0,!1)}function HX(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(c<t)return-1;const l=n?i[o].getFullStart():i[o].getStart(e,!0);return l>t?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()),c<t)return!1;if(s??(s=n?a.getFullStart():a.getStart(e,!0)),s>t)return!1;if(t<c||t===c&&(1===a.kind||i))return!0;if(r&&c===t){const n=QX(t,e,a);if(n&&r(n))return o=n,!0}return!1}}function KX(e,t){let n=$X(e,t);for(;rQ(n);){const t=XX(n,n.parent,e);if(!t)return;n=t}return n}function GX(e,t){const n=$X(e,t);return El(n)&&t>n.getStart(e)&&t<n.getEnd()?n:QX(t,e)}function XX(e,t,n){return function t(r){if(El(r)&&r.pos===e.end)return r;return d(r.getChildren(n),(r=>(r.pos<=e.pos&&r.end>e.end||r.pos===e.end)&&pQ(r,n)?t(r):void 0))}(t)}function QX(e,t,n,r){const i=function i(o){if(YX(o)&&1!==o.kind)return o;const a=o.getChildren(t),s=Te(a,e,((e,t)=>t),((t,n)=>e<a[t].end?!a[t-1]||e>=a[t-1].end?0:1:-1));if(s>=0&&a[s]){const n=a[s];if(e<n.end){if(n.getStart(t,!r)>=e||!pQ(n,t)||rQ(n)){const e=eQ(a,s,t,o.kind);return e?!r&&Tu(e)&&e.getChildren(t).length?i(e):ZX(e,t):void 0}return i(n)}}_n.assert(void 0!==n||307===o.kind||1===o.kind||Tu(o));const c=eQ(a,a.length,t,o.kind);return c&&ZX(c,t)}(n||t);return _n.assert(!(i&&rQ(i))),i}function YX(e){return El(e)&&!rQ(e)}function ZX(e,t){if(YX(e))return e;const n=e.getChildren(t);if(0===n.length)return e;const r=eQ(n,n.length,t,e.kind);return r&&ZX(r,t)}function eQ(e,t,n,r){for(let i=t-1;i>=0;i--){if(rQ(e[i]))0!==i||12!==r&&285!==r||_n.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(pQ(e[i],n))return e[i]}}function tQ(e,t,n=QX(t,e)){if(n&&Ul(n)){const r=n.getStart(e),i=n.getEnd();if(r<t&&t<i)return!0;if(t===i)return!!n.isUnterminated}return!1}function nQ(e,t){const n=$X(e,t);return!!n&&(12===n.kind||(30===n.kind&&12===n.parent.kind||(30===n.kind&&294===n.parent.kind||(!(!n||20!==n.kind||294!==n.parent.kind)||30===n.kind&&287===n.parent.kind))))}function rQ(e){return DN(e)&&e.containsOnlyTriviaWhiteSpaces}function iQ(e,t){const n=$X(e,t);return Ll(n.kind)&&t>n.getStart(e)}function oQ(e,t){const n=$X(e,t);return!!DN(n)||(!(19!==n.kind||!LE(n.parent)||!CE(n.parent.parent))||!(30!==n.kind||!bu(n.parent)||!CE(n.parent.parent)))}function aQ(e,t){return function(n){for(;n;)if(n.kind>=285&&n.kind<=294||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(284!==n.kind)return!1;if(t>n.getStart(e))return!0;n=n.parent}return!1}($X(e,t))}function sQ(e,t,n){const r=Fa(e.kind),i=Fa(t),o=e.getFullStart(),a=n.text.lastIndexOf(i,o);if(-1===a)return;if(n.text.lastIndexOf(r,o-1)<a){const e=QX(a+1,n);if(e&&e.kind===t)return e}const s=e.kind;let c=0;for(;;){const r=QX(e.getFullStart(),n);if(!r)return;if((e=r).kind===t){if(0===c)return e;c--}else e.kind===s&&c++}}function cQ(e,t,n){const r=_Q(e,t);return void 0!==r&&(Cf(r.called)||0!==lQ(r.called,r.nTypeArguments,n).length||cQ(r.called,t,n))}function lQ(e,t,n){let r=n.getTypeAtLocation(e);hl(e.parent)&&(r=function(e,t,n){return t?e.getNonNullableType():n?e.getNonOptionalType():e}(r,yl(e.parent),!0));return(ZD(e.parent)?r.getConstructSignatures():r.getCallSignatures()).filter((e=>!!e.typeParameters&&e.typeParameters.length>=t))}function _Q(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=QX(n.getFullStart(),t),n&&29===n.kind&&(n=QX(n.getFullStart(),t)),!n||!VN(n))return;if(!r)return lh(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=sQ(n,19,t),!n)return;break;case 22:if(n=sQ(n,21,t),!n)return;break;case 24:if(n=sQ(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(b_(n))break;return}n=QX(n.getFullStart(),t)}}function uQ(e,t,n){return Sde.getRangeOfEnclosingComment(e,t,void 0,n)}function dQ(e,t){return!!uc($X(e,t),sP)}function pQ(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function fQ(e,t=0){const n=[],r=_u(e)?oc(e)&~t:0;return 2&r&&n.push("private"),4&r&&n.push("protected"),1&r&&n.push("public"),(256&r||fD(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"),277===e.kind&&n.push("export"),n.length>0?n.join(","):""}function mQ(e){return 183===e.kind||213===e.kind?e.typeArguments:r_(e)||263===e.kind||264===e.kind?e.typeParameters:void 0}function gQ(e){return 2===e||3===e}function hQ(e){return!(11!==e&&14!==e&&!Ll(e))}function yQ(e,t,n){return!!(4&t.flags)&&e.isEmptyAnonymousObjectType(n)}function vQ(e){if(!e.isIntersection())return!1;const{types:t,checker:n}=e;return 2===t.length&&(yQ(n,t[0],t[1])||yQ(n,t[1],t[0]))}function bQ(e,t,n){return Ll(e.kind)&&e.getStart(n)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function xQ(e){switch(e){case 125:case 123:case 124:return!0}return!1}function kQ(e){const t=ze(e);return VL(t,e&&e.configFile),t}function SQ(e){if(209===e.kind||210===e.kind){if(226===e.parent.kind&&e.parent.left===e&&64===e.parent.operatorToken.kind)return!0;if(250===e.parent.kind&&e.parent.initializer===e)return!0;if(SQ(303===e.parent.kind?e.parent.parent:e.parent))return!0}return!1}function TQ(e,t){return wQ(e,t,!0)}function CQ(e,t){return wQ(e,t,!1)}function wQ(e,t,n){const r=uQ(e,t,void 0);return!!r&&n===yX.test(e.text.substring(r.pos,r.end))}function NQ(e,t){if(e)switch(e.kind){case 11:case 15:return FQ(e,t);default:return DQ(e)}}function DQ(e,t,n){return $s(e.getStart(t),(n||e).getEnd())}function FQ(e,t){let n=e.getEnd()-1;if(e.isUnterminated){if(e.getStart()===n)return;n=Math.min(t,e.getEnd())}return $s(e.getStart()+1,n)}function EQ(e,t){return Ib(e.getStart(t),e.end)}function PQ(e){return $s(e.pos,e.end)}function AQ(e){return Ib(e.start,e.start+e.length)}function IQ(e,t,n){return OQ(Ws(e,t),n)}function OQ(e,t){return{span:e,newText:t}}var LQ=[133,131,163,136,97,140,143,146,106,150,151,148,154,155,114,112,116,157,158,159];function jQ(e){return k(LQ,e)}function RQ(e){return 156===e.kind}function MQ(e){return RQ(e)||VN(e)&&"type"===e.text}function BQ(){const e=[];return t=>{const n=$B(t);return!e[n]&&(e[n]=!0)}}function JQ(e){return e.getText(0,e.getLength())}function zQ(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function qQ(e){return e.isTypeParameter()&&e.getConstraint()||e}function UQ(e){return 167===e.kind?jh(e.expression)?e.expression.text:void 0:WN(e)?gc(e):qh(e)}function VQ(e){return e.getSourceFiles().some((t=>!(t.isDeclarationFile||e.isSourceFileFromExternalLibrary(t)||!t.externalModuleIndicator&&!t.commonJsModuleIndicator)))}function WQ(e){return e.getSourceFiles().some((t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator))}function $Q(e){return!!e.module||vk(e)>=2||!!e.noEmit}function HQ(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,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(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 KQ(e,t){return{...HQ(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function GQ(e){return 2===e||e>=3&&e<=99||100===e}function XQ(e,t,n,r,i){return ZC.createImportDeclaration(void 0,e||t?ZC.createImportClause(!!i,e,t&&t.length?ZC.createNamedImports(t):void 0):void 0,"string"==typeof n?QQ(n,r):n,void 0)}function QQ(e,t){return ZC.createStringLiteral(e,0===t)}var YQ=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(YQ||{});function ZQ(e,t){return qm(e,t)?1:0}function eY(e,t){if(t.quotePreference&&"auto"!==t.quotePreference)return"single"===t.quotePreference?0:1;{const t=Dm(e)&&e.imports&&y(e.imports,(e=>NN(e)&&!ey(e.parent)));return t?ZQ(t,e):1}}function tY(e){switch(e){case 0:return"'";case 1:return'"';default:return _n.assertNever(e)}}function nY(e){const t=rY(e);return void 0===t?void 0:mc(t)}function rY(e){return"default"!==e.escapedName?e.escapedName:d(e.declarations,(e=>{const t=Cc(e);return t&&80===t.kind?t.escapedText:void 0}))}function iY(e){return ju(e)&&(TE(e.parent)||oE(e.parent)||OP(e.parent)||Lm(e.parent,!1)&&e.parent.arguments[0]===e||lf(e.parent)&&e.parent.arguments[0]===e)}function oY(e){return HD(e)&&WD(e.parent)&&VN(e.name)&&!e.propertyName}function aY(e,t){const n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function sY(e,t,n){if(e)for(;e.parent;){if(WE(e.parent)||!cY(n,e.parent,t))return e;e=e.parent}}function cY(e,t,n){return Ps(e,t.getStart(n))&&t.getEnd()<=Fs(e)}function lY(e,t){return lI(e)?y(e.modifiers,(e=>e.kind===t)):void 0}function _Y(e,t,n,r,i){var o;const a=243===(Xe(n)?n[0]:n).kind?Jm:kp,s=C(t.statements,a),{comparer:c,isSorted:l}=c_e.getOrganizeImportsStringComparerWithDetection(s,i),_=Xe(n)?le(n,((e,t)=>c_e.compareImportsOrRequireStatements(e,t,c))):[n];if(null==s?void 0:s.length)if(_n.assert(Dm(t)),s&&l)for(const n of _){const r=c_e.getImportDeclarationInsertionIndex(s,n,c);if(0===r){const r=s[0]===t.statements[0]?{leadingTriviaOption:Kue.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(Dm(t))e.insertNodesAtTopOfFile(t,_,r);else for(const n of _)e.insertStatementsInNewFile(t.fileName,[n],null==(o=_c(n))?void 0:o.getSourceFile())}function uY(e,t){return _n.assert(e.isTypeOnly),tt(e.getChildAt(0,t),RQ)}function dY(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function pY(e,t,n){return(n?gt:mt)(e.fileName,t.fileName)&&dY(e.textSpan,t.textSpan)}function fY(e){return(t,n)=>pY(t,n,e)}function mY(e,t){if(e)for(let n=0;n<e.length;n++)if(e.indexOf(e[n])===n){const r=t(e[n],n);if(r)return r}}function gY(e,t,n){for(let r=t;r<n;r++)if(!qa(e.charCodeAt(r)))return!1;return!0}function hY(e,t,n){const r=t.tryGetSourcePosition(e);return r&&(!n||n(zo(r.fileName))?r:void 0)}function yY(e,t,n){const{fileName:r,textSpan:i}=e,o=hY({fileName:r,pos:i.start},t,n);if(!o)return;const a=hY({fileName:r,pos:i.start+i.length},t,n),s=a?a.pos-o.pos:i.length;return{fileName:o.fileName,textSpan:{start:o.pos,length:s},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:vY(e,t,n),originalContextSpan:e.contextSpan}}function vY(e,t,n){const r=e.contextSpan&&hY({fileName:e.fileName,pos:e.contextSpan.start},t,n),i=e.contextSpan&&hY({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,n);return r&&i?{start:r.pos,length:i.pos-r.pos}:void 0}function bY(e){return!!uc(e.declarations?pe(e.declarations):void 0,(e=>!!cD(e)||!(HD(e)||WD(e)||$D(e))&&"quit"))}var xY=function(){const e=10*Vu;let t,n,r,i;c();const o=e=>s(e,17);return{displayParts:()=>{const n=t.length&&t[t.length-1].text;return i>e&&n&&"..."!==n&&(qa(n.charCodeAt(n.length-1))||t.push(kY(" ",16)),t.push(kY("...",15))),t},writeKeyword:e=>s(e,5),writeOperator:e=>s(e,12),writePunctuation:e=>s(e,15),writeTrailingSemicolon:e=>s(e,15),writeSpace:e=>s(e,16),writeStringLiteral:e=>s(e,8),writeParameter:e=>s(e,13),writeProperty:e=>s(e,14),writeLiteral:e=>s(e,8),writeSymbol:function(n,r){if(i>e)return;a(),i+=n.length,t.push(function(e,t){return kY(e,n(t));function n(e){const t=e.flags;return 3&t?bY(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}}(n,r))},writeLine:function(){if(i>e)return;i+=1,t.push(MY()),n=!0},write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:_t,getIndent:()=>r,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},clear:c};function a(){if(!(i>e)&&n){const e=Ay(r);e&&(i+=e.length,t.push(kY(e,16))),n=!1}}function s(n,r){i>e||(a(),i+=n.length,t.push(kY(n,r)))}function c(){t=[],n=!0,r=0,i=0}}();function kY(e,t){return{text:e,kind:EG[t]}}function SY(){return kY(" ",16)}function TY(e){return kY(Fa(e),5)}function CY(e){return kY(Fa(e),15)}function wY(e){return kY(Fa(e),12)}function NY(e){return kY(e,13)}function DY(e){return kY(e,14)}function FY(e){const t=Ea(e);return void 0===t?EY(e):TY(t)}function EY(e){return kY(e,17)}function PY(e){return kY(e,0)}function AY(e){return kY(e,18)}function IY(e){return kY(e,24)}function OY(e){return kY(e,22)}function LY(e,t){var n;const r=[OY(`{@${XE(e)?"link":QE(e)?"linkcode":"linkplain"} `)];if(e.name){const i=null==t?void 0:t.getSymbolAtLocation(e.name),o=i&&t?WY(i,t):void 0,a=function(e){let t=e.indexOf("://");if(0===t){for(;t<e.length&&124!==e.charCodeAt(t);)t++;return t}if(0===e.indexOf("()"))return 2;if("<"===e.charAt(0)){let t=0,n=0;for(;n<e.length;)if("<"===e[n]&&t++,">"===e[n]&&t--,n++,!t)return n}return 0}(e.text),s=Gd(e.name)+e.text.slice(0,a),c=function(e){let t=0;if(124===e.charCodeAt(t++)){for(;t<e.length&&32===e.charCodeAt(t);)t++;return e.slice(t)}return e}(e.text.slice(a)),l=(null==o?void 0:o.valueDeclaration)||(null==(n=null==o?void 0:o.declarations)?void 0:n[0]);if(l)r.push(function(e,t){return{text:e,kind:EG[23],target:{fileName:yd(t).fileName,textSpan:DQ(t)}}}(s,l)),c&&r.push(IY(c));else{const t=0===a||124===e.text.charCodeAt(a)&&32!==s.charCodeAt(s.length-1)?" ":"";r.push(IY(s+t+c))}}else e.text&&r.push(IY(e.text));return r.push(OY("}")),r}var jY="\n";function RY(e,t){var n;return(null==t?void 0:t.newLineCharacter)||(null==(n=e.getNewLine)?void 0:n.call(e))||jY}function MY(){return kY("\n",6)}function BY(e){try{return e(xY),xY.displayParts()}finally{xY.clear()}}function JY(e,t,n,r=0,i,o){return BY((a=>{e.writeType(t,n,17408|r,a,i,o)}))}function zY(e,t,n,r,i=0){return BY((o=>{e.writeSymbol(t,n,r,8|i,o)}))}function qY(e,t,n,r=0){return r|=25632,BY((i=>{e.writeSignature(t,n,r,void 0,i)}))}function UY(e){return!!e.parent&&Ml(e.parent)&&e.parent.propertyName===e}function VY(e,t){return xS(e,t.getScriptKind&&t.getScriptKind(e))}function WY(e,t){let n=e;for(;$Y(n)||Gu(n)&&n.links.target;)n=Gu(n)&&n.links.target?n.links.target:ax(n,t);return n}function $Y(e){return!!(2097152&e.flags)}function HY(e,t){return HB(ax(e,t))}function KY(e,t){for(;qa(e.charCodeAt(t));)t+=1;return t}function GY(e,t){for(;t>-1&&Ua(e.charCodeAt(t));)t-=1;return t+1}function XY(e,t=!0){const n=e&&YY(e);return n&&!t&&tZ(n),ET(n,!1)}function QY(e,t,n){let r=n(e);return r?tw(r,e):r=YY(e,n),r&&!t&&tZ(r),r}function YY(e,t){const n=t?e=>QY(e,!0,t):XY,r=dJ(e,n,void 0,t?e=>e&&eZ(e,!0,t):e=>e&&ZY(e),n);if(r===e){return cI(NN(e)?tw(ZC.createStringLiteralFromNode(e),e):CN(e)?tw(ZC.createNumericLiteral(e.text,e.numericLiteralFlags),e):ZC.cloneNode(e),e)}return r.parent=void 0,r}function ZY(e,t=!0){if(e){const n=ZC.createNodeArray(e.map((e=>XY(e,t))),e.hasTrailingComma);return cI(n,e),n}return e}function eZ(e,t,n){return ZC.createNodeArray(e.map((e=>QY(e,t,n))),e.hasTrailingComma)}function tZ(e){nZ(e),rZ(e)}function nZ(e){oZ(e,1024,aZ)}function rZ(e){oZ(e,2048,bx)}function iZ(e,t){const n=e.getSourceFile();!function(e,t){const n=e.getFullStart(),r=e.getStart();for(let e=n;e<r;e++)if(10===t.charCodeAt(e))return!0;return!1}(e,n.text)?uZ(e,t,n):lZ(e,t,n),_Z(e,t,n)}function oZ(e,t,n){aw(e,t);const r=n(e);r&&oZ(r,t,n)}function aZ(e){return e.forEachChild((e=>e))}function sZ(e,t){let n=e;for(let r=1;!Cd(t,n);r++)n=`${e}_${r}`;return n}function cZ(e,t,n,r){let i=0,o=-1;for(const{fileName:a,textChanges:s}of e){_n.assert(a===t);for(const e of s){const{span:t,newText:a}=e,s=pZ(a,xy(n));if(-1!==s&&(o=t.start+i+s,!r))return o;i+=a.length-t.length}}return _n.assert(r),_n.assert(o>=0),o}function lZ(e,t,n,r,i){os(n.text,e.pos,dZ(t,n,r,i,vw))}function _Z(e,t,n,r,i){as(n.text,e.end,dZ(t,n,r,i,kw))}function uZ(e,t,n,r,i){as(n.text,e.pos,dZ(t,n,r,i,vw))}function dZ(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 pZ(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 fZ(e){return uF(e)&&28===e.operatorToken.kind||GD(e)||(vF(e)||bF(e))&&GD(e.expression)}function mZ(e,t,n){const r=rh(e.parent);switch(r.kind){case 214:return t.getContextualType(r,n);case 226:{const{left:i,operatorToken:o,right:a}=r;return hZ(o.kind)?t.getTypeAtLocation(e===a?i:a):t.getContextualType(e,n)}case 296:return bZ(r,t);default:return t.getContextualType(e,n)}}function gZ(e,t,n){const r=eY(e,t),i=JSON.stringify(n);return 0===r?`'${Fy(i).replace(/'/g,(()=>"\\'")).replace(/\\"/g,'"')}'`:i}function hZ(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function yZ(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function vZ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function bZ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}var xZ="anonymous function";function kZ(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:KQ(n,r)});return o?s:void 0}function SZ(e){return 179===e||180===e||181===e||171===e||173===e}function TZ(e){return 262===e||176===e||174===e||177===e||178===e}function CZ(e){return 267===e}function wZ(e){return 243===e||244===e||246===e||251===e||252===e||253===e||257===e||259===e||172===e||265===e||272===e||271===e||278===e||270===e||277===e}var NZ=Zt(SZ,TZ,CZ,wZ);function DZ(e,t,n){const r=uc(t,(t=>t.end!==e?"quit":NZ(t.kind)));return!!r&&function(e,t){const n=e.getLastToken(t);if(n&&27===n.kind)return!1;if(SZ(e.kind)){if(n&&28===n.kind)return!1}else if(CZ(e.kind)){const n=ye(e.getChildren(t));if(n&&tE(n))return!1}else if(TZ(e.kind)){const n=ye(e.getChildren(t));if(n&&Mf(n))return!1}else if(!wZ(e.kind))return!1;if(246===e.kind)return!0;const r=XX(e,uc(e,(e=>!e.parent)),t);return!r||20===r.kind||t.getLineAndCharacterOfPosition(e.getEnd()).line!==t.getLineAndCharacterOfPosition(r.getStart(t)).line}(r,n)}function FZ(e){let t=0,n=0;return RI(e,(function r(i){if(wZ(i.kind)){const r=i.getLastToken(e);27===(null==r?void 0:r.kind)?t++:n++}else if(SZ(i.kind)){const r=i.getLastToken(e);if(27===(null==r?void 0:r.kind))t++;else if(r&&28!==r.kind){za(e,r.getStart(e)).line!==za(e,Kp(e,r.end).start).line&&n++}}return t+n>=5||RI(i,r)})),0===t&&n<=1||t/n>.2}function EZ(e,t){return LZ(e,e.getDirectories,t)||[]}function PZ(e,t,n,r,i){return LZ(e,e.readDirectory,t,n,r,i)||s}function AZ(e,t){return LZ(e,e.fileExists,t)}function IZ(e,t){return OZ((()=>Fb(t,e)))||!1}function OZ(e){try{return e()}catch{return}}function LZ(e,t,...n){return OZ((()=>t&&t.apply(e,n)))}function jZ(e,t){const n=[];return hM(t,e,(e=>{const r=Ro(e,"package.json");AZ(t,r)&&n.push(r)})),n}function RZ(e,t){let n;return hM(t,e,(e=>"node_modules"===e||(n=EU(e,(e=>AZ(t,e)),"package.json"),!!n||void 0))),n}function MZ(e,t){if(!t.readFile)return;const n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],r=Db(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 BZ(e,t,n){const r=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||function(e,t){if(!t.fileExists)return[];const n=[];return hM(t,Fo(e),(e=>{const r=Ro(e,"package.json");if(t.fileExists(r)){const e=MZ(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=Fy(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(SM(t)))return!0;return!1}function c(t){return!!(Dm(e)&&Fm(e)&&DC.has(t)&&(void 0===i&&(i=JZ(e)),i))}function l(r,i){if(!r.includes("node_modules"))return;const o=GM.getNodeModulesPackageName(n.getCompilationSettings(),e,r,i,t);return o?bo(o)||ho(o)?void 0:_(o):void 0}function _(e){const t=Io(CM(e)).slice(1);return Kt(t[0],"@")?`${t[0]}/${t[1]}`:t[0]}}function JZ(e){return V(e.imports,(({text:e})=>DC.has(e)))}function zZ(e){return k(Io(e),"node_modules")}function qZ(e){return void 0!==e.file&&void 0!==e.start&&void 0!==e.length}function UZ(e,t){const n=Te(t,DQ(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,qZ)}}function VZ(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=Fs(e);for(;;){const n=et(t[r],qZ);if(!n||n.start>o)break;Is(e,n)&&i.push(n),r++}return i}function WZ({startPosition:e,endPosition:t}){return $s(e,void 0===t?e:t)}function $Z(e,t){return uc($X(e,t.start),(n=>n.getStart(e)<t.start||n.getEnd()>Fs(t)?"quit":V_(n)&&dY(t,DQ(n,e))))}function HZ(e,t,n=at){return e?Xe(e)?n(D(e,t)):t(e,0):void 0}function KZ(e){return Xe(e)?me(e):e}function GZ(e,t,n){return"export="===e.escapedName||"default"===e.escapedName?XZ(e)||QZ(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 XZ(e){return d(e.declarations,(t=>{var n,r,i;if(gE(t))return null==(n=et(uA(t.expression),VN))?void 0:n.text;if(vE(t)&&2097152===t.symbol.flags)return null==(r=et(t.propertyName,VN))?void 0:r.text;const o=null==(i=et(Cc(t),VN))?void 0:i.text;return o||(e.parent&&!Xu(e.parent)?e.parent.getName():void 0)}))}function QZ(e,t,n){return YZ(VS(Fy(e.name)),t,n)}function YZ(e,t,n){const r=Eo(Rt(VS(e),"/index"));let i="",o=!0;const a=r.charCodeAt(0);ps(a,t)?(i+=String.fromCharCode(a),n&&(i=i.toUpperCase())):o=!1;for(let e=1;e<r.length;e++){const n=r.charCodeAt(e),a=fs(n,t);if(a){let e=String.fromCharCode(n);o||(e=e.toUpperCase()),i+=e}o=a}return Eh(i)?`_${i}`:i||"_"}function ZZ(e,t,n){const r=t.length;if(r+n>e.length)return!1;for(let i=0;i<r;i++)if(t.charCodeAt(i)!==e.charCodeAt(i+n))return!1;return!0}function e0(e){return 95===e.charCodeAt(0)}function t0(e){return!!(65536&oc(e))}function n0(e,t){let n;for(const t of e.imports)if(DC.has(t.text)&&!NC.has(t.text)){if(Kt(t.text,"node:"))return!0;n=!1}return n??t.usesUriStyleNodeCoreModules}function r0(e){return"\n"===e?1:0}function i0(e){return Xe(e)?qx(Wx(e[0]),e.slice(1)):Wx(e)}function o0({options:e},t){const n=!e.semicolons||"ignore"===e.semicolons,r="remove"===e.semicolons||n&&!FZ(t);return{...e,semicolons:r?"remove":"ignore"}}function a0(e){return 2===e||3===e}function s0(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function c0(e,t){const n=new Set,r=new Set,i=new Set;for(const a of t)if(!ME(a)){const t=ah(a.expression);if(Il(t))switch(t.kind){case 15:case 11:n.add(t.text);break;case 9:r.add(parseInt(t.text));break;case 10:const e=yT(jt(t.text,"n")?t.text.slice(0,-1):t.text);e&&i.add(hT(e))}else{const t=e.getSymbolAtLocation(a.expression);if(t&&t.valueDeclaration&&VE(t.valueDeclaration)){const n=e.getConstantValue(t.valueDeclaration);void 0!==n&&o(n)}}}return{addValue:o,hasValue:function(e){switch(typeof e){case"string":return n.has(e);case"number":return r.has(e);case"object":return i.has(hT(e))}}};function o(e){switch(typeof e){case"string":n.add(e);break;case"number":r.add(e)}}}function l0(e,t,n,r){var i;if(!LS("string"==typeof e?e:e.fileName))return!1;const o="string"==typeof e?t.getCompilerOptions():t.getCompilerOptionsForFile(e),a=bk(o),s=IV("string"==typeof e?{fileName:e,impliedNodeFormat:NV(Uo(e,n.getCurrentDirectory(),Ry(n)),null==(i=t.getPackageJsonInfoCache)?void 0:i.call(t),n,o)}:e,o);if(99===s)return!1;if(1===s)return!0;if(o.verbatimModuleSyntax&&1===a)return!0;if(o.verbatimModuleSyntax&&Lk(a))return!1;if("object"==typeof e){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return r}function _0(e){switch(e.kind){case 241:case 307:case 268:case 296:return!0;default:return!1}}function u0(e,t,n,r){var i;const o=DV(e,null==(i=n.getPackageJsonInfoCache)?void 0:i.call(n),r,n.getCompilerOptions());let a,c;return"object"==typeof o&&(a=o.impliedNodeFormat,c=o.packageJsonScope),{path:Uo(e,n.getCurrentDirectory(),n.getCanonicalFileName),fileName:e,externalModuleIndicator:99===t||void 0,commonJsModuleIndicator:1===t||void 0,impliedNodeFormat:a,packageJsonScope:c,statements:s,imports:s}}var d0=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(d0||{}),p0=(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))(p0||{});function f0(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=VT(_.fileName);if(t){const{topLevelNodeModulesIndex:n,topLevelPackageNameIndex:r,packageRootIndex:o}=t;if(f=wM(CM(_.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(zR)&&i.set(f,t)}else i.set(f,t)}}}const m=1===u&&bb(s)||s,g=0===u||Xu(m)?mc(c):function(e,t,n){let r;return C0(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=Fy(l.name),b=t++,x=ax(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} ${HB(ax(t,r))} ${e} ${i}`}(h,s,Cs(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 nd(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&&JZ(e)!==JZ(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=>lp(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(mc(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 m0(e,t,n,r,i,o,a,s){var c;if(!n){let n;const i=Fy(r.name);return DC.has(i)&&void 0!==(n=n0(t,e))?n===Kt(i,"node:"):!o||o.allowsImportingAmbientModule(r,a)||g0(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&&g0(t,l.packageName);const _=Ry(a),u=null==(c=a.getGlobalTypingsCacheLocation)?void 0:c.call(a),d=!!GM.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=hM(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)&&g0(t,e.packageName)}return d}function g0(e,t){return e.imports&&e.imports.some((e=>e.text===t||e.text.startsWith(t+"/")))}function h0(e,t,n,r,i){var o,a;const s=jy(t),c=n.autoImportFileExcludePatterns&&y0(n,s);v0(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();v0(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 y0(e,t){return R(e.autoImportFileExcludePatterns,(e=>{const n=fS(e,"","exclude");return n?hS(n,t):void 0}))}function v0(e,t,n,r,i){var o;const a=n&&b0(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)Yp(n)&&!(null==a?void 0:a(n))&&i(e.getMergedSymbol(n.symbol),n)}function b0(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)&&qR(n)){let o=Fo(n);return hM(t,Fo(i),(t=>{const i=r.get(Wo(t));if(i)return i.some((t=>e.some((e=>e.test(n.replace(o,t))))));o=Fo(o)}))??!1}return!1}}function x0(e,t){return t.autoImportFileExcludePatterns?b0(y0(t,jy(e)),e):()=>!1}function k0(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))||f0({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{h0(n,t,r,!0,((t,n,r,o)=>{++d%100==0&&(null==i||i.throwIfCancellationRequested());const a=new Set,s=r.getTypeChecker(),c=S0(t,s);c&&T0(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)&&T0(r,s)&&xx(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 S0(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 T0(e,t){return!(t.isUndefinedSymbol(e)||t.isUnknownSymbol(e)||Wh(e)||$h(e))}function C0(e,t,n,r){let i,o=e;const a=new Set;for(;o;){const e=XZ(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),!xx(a,o))break;o=2097152&o.flags?t.getImmediateAliasedSymbol(o):void 0}for(const e of i??s)if(e.parent&&Xu(e.parent)){const t=r(QZ(e.parent,n,!1),QZ(e.parent,n,!0));if(t)return t}}function w0(){const e=gs(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(),Ah(i)||(p(),o=i);const n=e.getTokenEnd();if(E0(e.getTokenStart(),n,l,A0(i),u),n>=t.length){const t=F0(e,i,he(a));void 0!==t&&(_=t)}}while(1!==i);function p(){switch(i){case 44:case 69:D0[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(!Ch(i))break;(25===o||Ch(o)&&Ch(i)&&!function(e,t){if(!xQ(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<r.length;e+=3){const t=r[e],o=r[e+1],a=r[e+2];if(i>=0){const e=t-i;e>0&&n.push({length:e,classification:4})}n.push({length:o,classification:P0(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 N0,D0=Re([80,11,9,10,14,110,46,47,22,24,20,112,97],(e=>e),(()=>!0));function F0(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(Ll(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 E0(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 P0(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 A0(e){if(Ch(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 Ll(e)?6:2}}function I0(e,t,n,r,i){return M0(L0(e,t,n,r,i))}function O0(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function L0(e,t,n,r,i){const o=[];return n.forEachChild((function a(s){if(s&&Bs(i,s.pos,s.getFullWidth())){if(O0(t,s.kind),VN(s)&&!wd(s)&&r.has(s.escapedText)){const t=e.getSymbolAtLocation(s),r=t&&j0(t,UG(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 j0(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=>eE(e)&&1===jM(e)))}(e)?14:void 0:2097152&r?j0(n.getAliasedSymbol(e),t,n):2&t?64&r?13:262144&r?15:void 0:void 0:void 0}function R0(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 M0(e){_n.assert(e.spans.length%3==0);const t=e.spans,n=[];for(let e=0;e<t.length;e+=3)n.push({textSpan:Ws(t[e],t[e+1]),classificationType:R0(t[e+2])});return n}function B0(e,t,n){return M0(J0(e,t,n))}function J0(e,t,n){const r=n.start,i=n.length,o=gs(99,!1,t.languageVariant,t.text),a=gs(99,!1,t.languageVariant,t.text),s=[];return g(t),{spans:s,endOfLineState:0};function c(e,t,n){s.push(e),s.push(t),s.push(n)}function l(e,n,r,i){if(3===n){const n=$I(t.text,r,i);if(n&&n.jsDoc)return FT(n.jsDoc,e),void function(e){var t,n,r,i,o,a,s,l;let d=e.pos;if(e.tags)for(const f of e.tags){f.pos!==d&&_(d,f.pos-d),c(f.pos,1,10),c(f.tagName.pos,f.tagName.end-f.tagName.pos,18),d=f.tagName.end;let e=f.tagName.end;switch(f.kind){case 341:const c=f;p(c),e=c.isNameFirst&&(null==(t=c.typeExpression)?void 0:t.end)||c.name.end;break;case 348:const _=f;e=_.isNameFirst&&(null==(n=_.typeExpression)?void 0:n.end)||_.name.end;break;case 345:u(f),d=f.end,e=f.typeParameters.end;break;case 346:const m=f;e=309===(null==(r=m.typeExpression)?void 0:r.kind)&&(null==(i=m.fullName)?void 0:i.end)||(null==(o=m.typeExpression)?void 0:o.end)||e;break;case 338:case 343:case 340:e=f.typeExpression.end;break;case 344:g(f.typeExpression),d=f.end,e=f.typeExpression.end;break;case 342:g(f.typeExpression),d=f.end,e=(null==(a=f.typeExpression)?void 0:a.end)||e;break;case 347:e=(null==(s=f.name)?void 0:s.end)||e;break;case 328:case 329:e=f.class.end;break;case 349:g(f.typeExpression),d=f.end,e=(null==(l=f.typeExpression)?void 0:l.end)||e}"object"==typeof f.comment?_(f.comment.pos,f.comment.end-f.comment.pos):"string"==typeof f.comment&&_(e,f.end-e)}d!==e.end&&_(d,e.end-d);return;function p(e){e.isNameFirst&&(_(d,e.name.pos-d),c(e.name.pos,e.name.end-e.name.pos,17),d=e.name.end),e.typeExpression&&(_(d,e.typeExpression.pos-d),g(e.typeExpression),d=e.typeExpression.end),e.isNameFirst||(_(d,e.name.pos-d),c(e.name.pos,e.name.end-e.name.pos,17),d=e.name.end)}}(n.jsDoc)}else if(2===n&&function(e,n){const r=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/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<d&&_(s,d-s);return!0}(r,i))return;_(r,i)}function _(e,t){c(e,t,1)}function u(e){for(const t of e.getChildren())g(t)}function d(e,t,n){let r;for(r=t;r<n&&!Va(e.charCodeAt(r));r++);for(c(t,r-t,1),a.resetTokenState(r);a.getTokenEnd()<n;)p()}function p(){const e=a.getTokenEnd(),t=a.scan(),n=a.getTokenEnd(),r=m(t);r&&c(e,n-e,r)}function f(e){if(sP(e))return!0;if(wd(e))return!0;const n=function(e){switch(e.parent&&e.parent.kind){case 286:if(e.parent.tagName===e)return 19;break;case 287:if(e.parent.tagName===e)return 20;break;case 285:if(e.parent.tagName===e)return 21;break;case 291:if(e.parent.name===e)return 22}return}(e);if(!El(e)&&12!==e.kind&&void 0===n)return!1;const r=12===e.kind?e.pos:function(e){for(o.resetTokenState(e.pos);;){const n=o.getTokenEnd();if(!Xa(t.text,n))return n;const r=o.scan(),i=o.getTokenEnd(),a=i-n;if(!Ah(r))return n;switch(r){case 4:case 5:continue;case 2:case 3:l(e,r,n,a),o.resetTokenState(i);continue;case 7:const s=t.text,_=s.charCodeAt(n);if(60===_||62===_){c(n,a,1);continue}_n.assert(124===_||61===_),d(s,n,i);break;case 6:break;default:_n.assertNever(r)}}}(e),i=e.end-r;if(_n.assert(i>=0),i>0){const t=n||m(e.kind,e);t&&c(r,i,t)}return!0}function m(e,t){if(Ch(e))return 3;if((30===e||32===e)&&t&&mQ(t.parent))return 10;if(wh(e)){if(t){const n=t.parent;if(64===e&&(260===n.kind||172===n.kind||169===n.kind||291===n.kind))return 5;if(226===n.kind||224===n.kind||225===n.kind||227===n.kind)return 5}return 10}if(9===e)return 4;if(10===e)return 25;if(11===e)return t&&291===t.parent.kind?24:6;if(14===e)return 6;if(Ll(e))return 6;if(12===e)return 23;if(80===e){if(t){switch(t.parent.kind){case 263:return t.parent.name===t?11:void 0;case 168:return t.parent.name===t?15:void 0;case 264:return t.parent.name===t?13:void 0;case 266:return t.parent.name===t?12:void 0;case 267:return t.parent.name===t?14:void 0;case 169:return t.parent.name===t?lv(t)?3:17:void 0}if(kl(t.parent))return 3}return 2}}function g(n){if(n&&Js(r,i,n.pos,n.getFullWidth())){O0(e,n.kind);for(const e of n.getChildren(t))f(e)||g(e)}}}function z0(e){return!!e.sourceFile}function q0(e,t,n){return U0(e,t,n)}function U0(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=z0(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=xS(e,d);const y=a(o),v=o===y?void 0:o,b=6===d?100:vk(y),x="object"==typeof p?p:{languageVersion:b,impliedNodeFormat:v&&NV(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:fk(y),jsDocParsingMode:n};x.languageVersion=b,_n.assertEqual(n,x.jsDocParsingMode);const k=i.size,S=W0(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=!YI(t)&&nd(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===JQ(c)&&(_n.assert(u),w={sourceFile:e,languageServiceRefCount:0},N())}if(w)w.sourceFile.version!==_&&(w.sourceFile=Y8(w.sourceFile,c,_,c.getChangeRange(w.sourceFile.scriptSnapshot)),r&&r.setDocument(S,t,w.sourceFile)),u&&w.languageServiceRefCount++;else{const n=Q8(e,c,x,_,!1,d);r&&r.setDocument(S,t,n),w={sourceFile:n,languageServiceRefCount:1},N()}return _n.assert(0!==w.languageServiceRefCount),w.sourceFile;function N(){if(C)if(z0(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(W0(t,r))),a=o.get(e),s=l(a,n);s.languageServiceRefCount--,_n.assert(s.languageServiceRefCount>=0),0===s.languageServiceRefCount&&(z0(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,Uo(e,t,o),n,V0(a(n)),r,i,c,l)},acquireDocumentWithKey:s,updateDocument:function(e,n,r,i,s,l){return c(e,Uo(e,t,o),n,V0(a(n)),r,i,s,l)},updateDocumentWithKey:c,releaseDocument:function(e,n,r,i){return u(Uo(e,t,o),V0(n),r,i)},releaseDocumentWithKey:u,getKeyForCompilationSettings:V0,getDocumentRegistryBucketKeyWithMode:W0,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)=>{z0(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 V0(e){return mR(e,CO)}function W0(e,t){return t?`${e}|${t}`:e}function $0(e,t,n,r,i,o,a){const s=jy(r),c=Vt(s),l=H0(t,n,c,a),_=H0(n,t,c,a);return Kue.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=KD(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(!NN(e))return!1;const r=K0(c,e.text),i=n(r);return void 0!==i&&(t.replaceRangeWithText(s,Y0(e,s),d(i)),!0)}function d(e){return ra(c,e,!a)}Z0(l,((e,n)=>{switch(n){case"files":case"include":case"exclude":{if(_(e)||"include"!==n||!KD(e.initializer))return;const l=R(e.initializer.elements,(e=>NN(e)?e.text:void 0));if(0===l.length)return;const u=gS(c,[],l,a,o);return void(hS(_n.checkDefined(u.includeFilePattern),a).test(r)&&!hS(_n.checkDefined(u.includeFilePattern),a).test(i)&&t.insertNodeAfter(s,ye(e.initializer.elements),ZC.createStringLiteral(d(i))))}case"compilerOptions":return void Z0(e.initializer,((e,t)=>{const n=QO(t);_n.assert("listOrElement"!==(null==n?void 0:n.type)),n&&(n.isFilePath||"list"===n.type&&n.element.isFilePath)?_(e):"paths"===t&&Z0(e.initializer,(e=>{if(KD(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;Q0(s,t,(e=>{if(!bo(e))return;const t=K0(p,e),r=n(t);return void 0===r?void 0:$o(ra(_,r,o))}),(t=>{const r=e.getTypeChecker().getSymbolAtLocation(t);if((null==r?void 0:r.declarations)&&r.declarations.some((e=>sp(e))))return;const o=void 0!==u?X0(t,FR(t.text,d,e.getCompilerOptions(),i),n,a):G0(r,t,s,e,i,n);return void 0!==o&&(o.updated||f&&bo(t.text))?GM.updateModuleSpecifier(e.getCompilerOptions(),s,l,o.newFileName,HQ(e,i),t.text):void 0}))}}(e,i,l,_,r,c)}))}function H0(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=eS(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=oa(e,t,r);return K0(Fo(n),i)}(o.fileName,a,e,n):a}}function K0(e,t){return $o(function(e,t){return zo(Ro(e,t))}(e,t))}function G0(e,t,n,r,i,o){if(e){const t=y(e.declarations,WE).fileName,n=o(t);return void 0===n?{newFileName:t,updated:!1}:{newFileName:n,updated:!0}}{const e=r.getModeForUsageLocation(n,t);return X0(t,i.resolveModuleNameLiterals||!i.resolveModuleNames?r.getResolvedModuleFromModuleSpecifier(t,n):i.getResolvedModuleWithFailedLookupLocationsFromCache&&i.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,e),o,r.getSourceFiles())}}function X0(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 Q0(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,Y0(n,e),i)}}function Y0(e,t){return Ib(e.getStart(t)+1,e.end-1)}function Z0(e,t){if(GD(e))for(const n of e.properties)zE(n)&&NN(n.name)&&t(n,n.name.text)}(e=>{function t(e,t){return{fileName:t.fileName,textSpan:DQ(e,t),kind:"none"}}function n(e){return VF(e)?[e]:WF(e)?$(e.catchClause?n(e.catchClause):e.tryBlock&&n(e.tryBlock),e.finallyBlock&&n(e.finallyBlock)):r_(e)?void 0:i(e,n)}function r(e){return Cl(e)?[e]:r_(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 uc(e,(t=>{switch(t.kind){case 255:if(251===e.kind)return!1;case 248:case 249:case 250:case 247:case 246:return!e.label||function(e,t){return!!uc(e.parent,(e=>UF(e)?e.label.escapedText===t:"quit"))}(t,e.label.escapedText);default:return r_(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)&&246===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 248:case 249:case 250:case 246:case 247:return c(t);case 255: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,AX(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(Mf(e)||307===e.kind)return e;if(WF(e)&&e.tryBlock===t&&e.catchClause)return t;t=e}}(e);if(!r)return;const i=[];return _(n(r),(e=>{i.push(AX(e,111,t))})),Mf(r)&&Nf(r,(e=>{i.push(AX(e,107,t))})),i}function f(e,t){const r=Kf(e);if(!r)return;const i=[];return Nf(tt(r.body,DF),(e=>{i.push(AX(e,107,t))})),_(n(r.body),(e=>{i.push(AX(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)})),RI(t,(e=>{g(e,(e=>{cF(e)&&s(n,e.getFirstToken(),135)}))})),n}function g(e,t){t(e),r_(e)||u_(e)||QF(e)||eE(e)||YF(e)||b_(e)||RI(e,(e=>g(e,t)))}e.getDocumentHighlights=function(e,n,r,i,o){const a=VX(r,i);if(a.parent&&(NE(a.parent)&&a.parent.tagName===a||DE(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=wce.getReferenceEntriesForNode(e,t,n,i,r,void 0,o);if(!a)return;const s=Me(a.map(wce.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(Uo(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 AF(e.parent)?function(e,n){const r=function(e,t){const n=[];for(;AF(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||!AF(e.elseStatement))break;e=e.elseStatement}return n}(e,n),i=[];for(let e=0;e<r.length;e++){if(93===r[e].kind&&e<r.length-1){const t=r[e],o=r[e+1];let a=!0;for(let e=o.getStart(n)-1;e>=t.end;e--)if(!Ua(n.text.charCodeAt(e))){a=!1;break}if(a){i.push({fileName:n.fileName,textSpan:$s(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,JF,f);case 111:return o(e.parent,VF,p);case 113:case 85:case 98:return o(85===e.kind?e.parent.parent:e.parent,WF,d);case 109:return o(e.parent,qF,u);case 84:case 90:return ME(e.parent)||RE(e.parent)?o(e.parent.parent.parent,qF,u):void 0;case 83:case 88:return o(e.parent,Cl,l);case 99:case 117:case 92:return o(e.parent,(e=>$_(e,!0)),c);case 137:return i(mD,[137]);case 139:case 153:return i(d_,[139,153]);case 135:return o(e.parent,cF,m);case 134:return a(m(e));case 127:return a(function(e){const t=Kf(e);if(!t)return;const n=[];return RI(t,(e=>{g(e,(e=>{fF(e)&&s(n,e.getFirstToken(),127)}))})),n}(e));case 103:case 147:return;default:return Xl(e.kind)&&(_u(e.parent)||FF(e.parent))?a((r=e.kind,R(function(e,t){const n=e.parent;switch(n.kind){case 268:case 307:case 241:case 296:case 297:return 64&t&&XF(e)?[...e.members,e]:n.statements;case 176:case 174:case 262:return[...n.parameters,...u_(n.parent)?n.parent.members:[]];case 263:case 231:case 264:case 187:const r=n.members;if(15&t){const e=y(n.members,mD);if(e)return[...r,...e.parameters]}else if(64&t)return[...r,n];return r;default:return}}(e.parent,Kv(r)),(e=>lY(e,r))))):void 0}var r;function i(t,r){return o(e.parent,t,(e=>{var i;return R(null==(i=et(e,au))?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)}})(N0||(N0={}));var e1=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(e1||{});function t1(e,t){return{kind:e,isCaseSensitive:t}}function n1(e){const t=new Map,n=e.trim().split(".").map((e=>{return{totalTextChunk:g1(t=e.trim()),subWordTextChunks:m1(t)};var t}));return 1===n.length&&""===n[0].totalTextChunk.text?{getMatchForLastSegmentOfPattern:()=>t1(2,!0),getFullMatch:()=>t1(2,!0),patternContainsDots:!1}:n.some((e=>!e.subWordTextChunks.length))?void 0:{getFullMatch:(e,r)=>function(e,t,n,r){const i=o1(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=a1(o,o1(e[i],n[t],r));return o}(e,r,n,t),getMatchForLastSegmentOfPattern:e=>o1(e,ye(n),t),patternContainsDots:n.length>1}}function r1(e,t){let n=t.get(e);return n||t.set(e,n=y1(e)),n}function i1(e,t,n){const r=function(e,t){const n=e.length-t.length;for(let r=0;r<=n;r++)if(C1(t,((t,n)=>d1(e.charCodeAt(n+r))===t)))return r;return-1}(e,t.textLowerCase);if(0===r)return t1(t.text.length===e.length?0:1,Kt(e,t.text));if(t.isLowerCase){if(-1===r)return;const i=r1(e,n);for(const n of i)if(c1(e,n,t.text,!0))return t1(2,c1(e,n,t.text,!1));if(t.text.length<e.length&&_1(e.charCodeAt(r)))return t1(2,!1)}else{if(e.indexOf(t.text)>0)return t1(2,!0);if(t.characterSpans.length>0){const r=r1(e,n),i=!!l1(e,r,t,!1)||!l1(e,r,t,!0)&&void 0;if(void 0!==i)return t1(3,i)}}}function o1(e,t,n){if(C1(t.totalTextChunk.text,(e=>32!==e&&42!==e))){const r=i1(e,t.totalTextChunk,n);if(r)return r}const r=t.subWordTextChunks;let i;for(const t of r)i=a1(i,i1(e,t,n));return i}function a1(e,t){return xt([e,t],s1)}function s1(e,t){return void 0===e?1:void 0===t?-1:yt(e.kind,t.kind)||It(!e.isCaseSensitive,!t.isCaseSensitive)}function c1(e,t,n,r,i={start:0,length:n.length}){return i.length<=t.length&&T1(0,i.length,(o=>function(e,t,n){return n?d1(e)===d1(t):e===t}(n.charCodeAt(i.start+o),e.charCodeAt(t.start+o),r)))}function l1(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<i.length;c++){const t=i[c];if(_&&(!_1(n.text.charCodeAt(i[c-1].start))||!_1(n.text.charCodeAt(i[c].start))))break;if(!c1(e,l,n.text,r,t))break;_=!0,o=void 0===o?s:o,a=void 0===a||a,l=Ws(l.start+t.length,l.length-t.length)}_||void 0===a||(a=!1),s++}}function _1(e){if(e>=65&&e<=90)return!0;if(e<127||!wa(e,99))return!1;const t=String.fromCharCode(e);return t===t.toUpperCase()}function u1(e){if(e>=97&&e<=122)return!0;if(e<127||!wa(e,99))return!1;const t=String.fromCharCode(e);return t===t.toLowerCase()}function d1(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function p1(e){return e>=48&&e<=57}function f1(e){return _1(e)||u1(e)||p1(e)||95===e||36===e}function m1(e){const t=[];let n=0,r=0;for(let i=0;i<e.length;i++){f1(e.charCodeAt(i))?(0===r&&(n=i),r++):r>0&&(t.push(g1(e.substr(n,r))),r=0)}return r>0&&t.push(g1(e.substr(n,r))),t}function g1(e){const t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:h1(e)}}function h1(e){return v1(e,!1)}function y1(e){return v1(e,!0)}function v1(e,t){const n=[];let r=0;for(let i=1;i<e.length;i++){const o=p1(e.charCodeAt(i-1)),a=p1(e.charCodeAt(i)),s=S1(e,t,i),c=t&&k1(e,i,r);(b1(e.charCodeAt(i-1))||b1(e.charCodeAt(i))||o!==a||s||c)&&(x1(e,r,i)||n.push(Ws(r,i-r)),r=i)}return x1(e,r,e.length)||n.push(Ws(r,e.length-r)),n}function b1(e){switch(e){case 33:case 34:case 35:case 37:case 38:case 39:case 40:case 41:case 42:case 44:case 45:case 46:case 47:case 58:case 59:case 63:case 64:case 91:case 92:case 93:case 95:case 123:case 125:return!0}return!1}function x1(e,t,n){return C1(e,(e=>b1(e)&&95!==e),t,n)}function k1(e,t,n){return t!==n&&t+1<e.length&&_1(e.charCodeAt(t))&&u1(e.charCodeAt(t+1))&&C1(e,_1,n,t)}function S1(e,t,n){const r=_1(e.charCodeAt(n-1));return _1(e.charCodeAt(n))&&(!t||!r)}function T1(e,t,n){for(let r=e;r<t;r++)if(!n(r))return!1;return!0}function C1(e,t,n=0,r=e.length){return T1(n,r,(n=>t(e.charCodeAt(n),n)))}function w1(e,t=!0,n=!1){const r={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},i=[];let o,a,s,c=0,_=!1;function u(){return a=s,s=JG.scan(),19===s?c++:20===s&&c--,s}function d(){const e=JG.getTokenValue(),t=JG.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=JG.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=JG.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){JG.lookAhead((()=>{const e=JG.scan();return 161!==e&&(42===e||19===e||80===e||Ch(e))}))&&(e=u())}if(80===e||Ch(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||Ch(e))&&(e=u(),161===e&&(e=u(),11===e&&p()))))}return!0}return!1}function h(){let e=JG.getToken();if(95===e){if(f(),e=u(),156===e){JG.lookAhead((()=>{const e=JG.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){JG.lookAhead((()=>{const e=JG.scan();return 80===e||Ch(e)}))&&(e=u())}if((80===e||Ch(e))&&(e=u(),64===e&&y(!0)))return!0}return!0}return!1}function y(e,t=!1){let n=e?u():JG.getToken();return 149===n&&(n=u(),21===n&&(n=u(),(11===n||t&&15===n)&&p()),!0)}function v(){let e=JG.getToken();if(80===e&&"define"===JG.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(JG.setText(e),u();1!==JG.getToken();){if(16===JG.getToken()){const e=[JG.getToken()];e:for(;l(e);){const t=JG.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===JG.reScanTemplateToken(!1)&&e.pop():e.pop())}}u()}m()||g()||h()||n&&(y(!1,!0)||v())||u()}JG.setText(void 0)}(),eO(r,e),tO(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:!!r.hasNoDefaultLib,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:!!r.hasNoDefaultLib,ambientExternalModules:e}}}var N1=/^data:(?:application\/json;charset=[uU][tT][fF]-8;base64,([A-Za-z0-9+/=]+)$)?/;function D1(e){const t=Vt(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),r=new Map,i=new Map;return{tryGetSourcePosition:function e(t){if(!YI(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(YI(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?VS(i)+".d.ts":Vy(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 Uo(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&&F1({getSourceFileLike:l,getCanonicalFileName:t,log:t=>e.log(t)},n,vJ(r.text,Ra(r)),(t=>!e.fileExists||e.fileExists(t)?e.readFile(t):void 0))}return i.set(a,c||IJ),c||IJ}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 Ma(Ra(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 F1(e,t,n,r){let i=bJ(n);if(i){const n=N1.exec(i);if(n){if(n[1]){const r=n[1];return E1(e,Cb(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 E1(e,o,i);if(void 0!==o)return o||void 0}}function E1(e,t,n){const r=kJ(t);if(r&&r.sources&&r.file&&r.mappings&&(!r.sourcesContent||!r.sourcesContent.some(Ye)))return AJ(e,r,n)}var P1=new Map;function A1(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&&(WQ(t)||$Q(t.getCompilerOptions()))&&function(e){return e.statements.some((e=>{switch(e.kind){case 243:return e.declarationList.declarations.some((e=>!!e.initializer&&Lm(I1(e.initializer),!0)));case 244:{const{expression:t}=e;if(!uF(t))return Lm(t,!0);const n=tg(t);return 1===n||2===n}default:return!1}}))}(e)&&i.push(Rp(uF(a=e.commonJsModuleIndicator)?a.left:a,_a.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const s=Fm(e);if(P1.clear(),function t(n){if(s)(function(e,t){var n,r,i,o;if(rF(e)){if(HF(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(GF(e))return!!(null==(o=e.symbol.members)?void 0:o.size);return!1})(n,o)&&i.push(Rp(HF(n.parent)?n.parent.name:n,_a.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(FF(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(Rp(e,_a.require_call_may_be_converted_to_an_import))}const t=I7.getJSDocTypedefNodes(n);for(const e of t)i.push(Rp(e,_a.JSDoc_typedef_may_be_converted_to_TypeScript_type));I7.parameterShouldGetTypeFromJSDoc(n)&&i.push(Rp(n.name||n,_a.JSDoc_types_may_be_moved_to_TypeScript_types))}q1(n)&&function(e,t,n){(function(e,t){return!Lh(e)&&e.body&&DF(e.body)&&function(e,t){return!!Nf(e,(e=>j1(e,t)))}(e.body,t)&&L1(e,t)})(e,t)&&!P1.has(z1(e))&&n.push(Rp(!e.name&&HF(e.parent)&&VN(e.parent.name)?e.parent.name:e,_a.This_may_be_converted_to_an_async_function))}(n,o,i);n.forEachChild(t)}(e),Ck(t.getCompilerOptions()))for(const n of e.imports){const o=O1(vg(n));if(!o)continue;const a=null==(r=t.getResolvedModuleFromModuleSpecifier(n,e))?void 0:r.resolvedModule,s=a&&t.getSourceFile(a.resolvedFileName);s&&s.externalModuleIndicator&&!0!==s.externalModuleIndicator&&gE(s.externalModuleIndicator)&&s.externalModuleIndicator.isExportEquals&&i.push(Rp(o,_a.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 I1(e){return XD(e)?I1(e.expression):e}function O1(e){switch(e.kind){case 272:const{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&274===t.namedBindings.kind&&NN(n)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function L1(e,t){const n=t.getSignatureFromDeclaration(e),r=n?t.getReturnTypeOfSignature(n):void 0;return!!r&&!!t.getPromisedTypeOfPromise(r)}function j1(e,t){return JF(e)&&!!e.expression&&R1(e.expression,t)}function R1(e,t){if(!M1(e)||!B1(e)||!e.arguments.every((e=>J1(e,t))))return!1;let n=e.expression.expression;for(;M1(n)||XD(n);)if(YD(n)){if(!B1(n)||!n.arguments.every((e=>J1(e,t))))return!1;n=n.expression.expression}else n=n.expression;return!0}function M1(e){return YD(e)&&(rX(e,"then")||rX(e,"catch")||rX(e,"finally"))}function B1(e){const t=e.expression.name.text,n="then"===t?2:"catch"===t||"finally"===t?1:0;return!(e.arguments.length>n)&&(e.arguments.length<n||(1===n||V(e.arguments,(e=>106===e.kind||VN(e)&&"undefined"===e.text))))}function J1(e,t){switch(e.kind){case 262:case 218:if(1&Oh(e))return!1;case 219:P1.set(z1(e),!0);case 106:return!0;case 80:case 211:{const n=t.getSymbolAtLocation(e);return!!n&&(t.isUndefinedSymbol(n)||V(ax(n,t).declarations,(e=>r_(e)||Eu(e)&&!!e.initializer&&r_(e.initializer))))}default:return!1}}function z1(e){return`${e.pos.toString()}:${e.end.toString()}`}function q1(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var U1=new Set(["isolatedModules"]);function V1(e,t){return X1(e,t,!1)}function W1(e,t){return X1(e,t,!0)}var $1,H1,K1='/// <reference no-default-lib="true"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number {}\ninterface Object {}\ninterface RegExp {}\ninterface String {}\ninterface Array<T> { 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}',G1="lib.d.ts";function X1(e,t,n){$1??($1=zI(G1,K1,{languageVersion:99}));const r=[],i=t.compilerOptions?Y1(t.compilerOptions,r):{},o={target:1,jsx:1};for(const e in o)Ne(o,e)&&void 0===i[e]&&(i[e]=o[e]);for(const e of NO)i.verbatimModuleSyntax&&U1.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);const a=Ab(i),s={getSourceFile:e=>e===zo(c)?l:e===zo(G1)?$1: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:()=>G1,useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:e=>e,getCurrentDirectory:()=>"",getNewLine:()=>a,fileExists:e=>e===c||!!n&&e===G1,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},c=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),l=zI(c,e,{languageVersion:vk(i),impliedNodeFormat:NV(Uo(c,"",s.getCanonicalFileName),void 0,s,i),setExternalModuleIndicator:fk(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=EV(n?[c,G1]:[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 Q1(e,t,n,r,i){const o=V1(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!r,moduleName:i});return ae(r,o.diagnostics),o.outputText}function Y1(e,t){H1=H1||C(bO,(e=>"object"==typeof e.type&&!nd(e.type,(e=>"number"!=typeof e)))),e=kQ(e);for(const n of H1){if(!Ne(e,n.name))continue;const r=e[n.name];Ye(r)?e[n.name]=qO(n,r,t):nd(n.type,(e=>e===r))||t.push(JO(n))}return e}var Z1={};function e2(e,t,n,r,i,o,a){const c=n1(r);if(!c)return s;const l=[],_=1===e.length?e[0]:void 0;for(const r of e)n.throwIfCancellationRequested(),o&&r.isDeclarationFile||t2(r,!!a,_)||r.getNamedDeclarations().forEach(((e,n)=>{n2(c,n,e,t,r.fileName,!!a,_,l)}));return l.sort(c2),(void 0===i?l:l.slice(0,i)).map(l2)}function t2(e,t,n){return e!==n&&t&&(zZ(e.path)||e.hasNoDefaultLib)}function n2(e,t,n,r,i,o,a,s){const c=e.getMatchForLastSegmentOfPattern(t);if(c)for(const l of n)if(r2(l,r,o,a))if(e.patternContainsDots){const n=e.getFullMatch(s2(l),t);n&&s.push({name:t,fileName:i,matchKind:n.kind,isCaseSensitive:n.isCaseSensitive,declaration:l})}else s.push({name:t,fileName:i,matchKind:c.kind,isCaseSensitive:c.isCaseSensitive,declaration:l})}function r2(e,t,n,r){var i;switch(e.kind){case 273:case 276:case 271:const o=t.getSymbolAtLocation(e.name),a=t.getAliasedSymbol(o);return o.escapedName!==a.escapedName&&!(null==(i=a.declarations)?void 0:i.every((e=>t2(e.getSourceFile(),n,r))));default:return!0}}function i2(e,t){const n=Cc(e);return!!n&&(a2(n,t)||167===n.kind&&o2(n.expression,t))}function o2(e,t){return a2(e,t)||XD(e)&&(t.push(e.name.text),!0)&&o2(e.expression,t)}function a2(e,t){return zh(e)&&(t.push(qh(e)),!0)}function s2(e){const t=[],n=Cc(e);if(n&&167===n.kind&&!o2(n.expression,t))return s;t.shift();let r=mX(e);for(;r;){if(!i2(r,t))return s;r=mX(r)}return t.reverse(),t}function c2(e,t){return yt(e.matchKind,t.matchKind)||Pt(e.name,t.name)}function l2(e){const t=e.declaration,n=mX(t),r=n&&Cc(n);return{name:e.name,kind:gX(t),kindModifiers:fQ(t),matchKind:e1[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:DQ(t),containerName:r?r.text:"",containerKind:r?gX(n):""}}n(Z1,{getNavigateToItems:()=>e2});var _2={};n(_2,{getNavigationBarItems:()=>b2,getNavigationTree:()=>x2});var u2,d2,p2,f2,m2=/\s+/g,g2=150,h2=[],y2=[],v2=[];function b2(e,t){u2=t,d2=e;try{return D(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(T2(e)){case 263:case 231:case 266:case 264:case 267:case 307:case 265:case 346:case 338:return!0;case 219:case 262:case 218:return t(e);default:return!1}function t(e){if(!e.node.body)return!1;switch(T2(e.parent)){case 268:case 307:case 174:case 176:return!0;default:return!1}}}}(w2(e)),G2)}finally{k2()}}function x2(e,t){u2=t,d2=e;try{return K2(w2(e))}finally{k2()}}function k2(){d2=void 0,u2=void 0,h2=[],p2=void 0,v2=[]}function S2(e){return o6(e.getText(d2))}function T2(e){return e.node.kind}function C2(e,t){e.children?e.children.push(t):e.children=[t]}function w2(e){_n.assert(!h2.length);const t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};p2=t;for(const t of e.statements)R2(t);return I2(),_n.assert(!p2&&!h2.length),t}function N2(e,t){C2(p2,D2(e,t))}function D2(e,t){return{node:e,name:t||(_u(e)||V_(e)?Cc(e):void 0),additionalNodes:void 0,parent:p2,children:void 0,indent:p2.indent+1}}function F2(e){f2||(f2=new Map),f2.set(e,!0)}function E2(e){for(let t=0;t<e;t++)I2()}function P2(e,t){const n=[];for(;!zh(t);){const e=cg(t),r=_g(t);t=t.expression,"prototype"===r||WN(e)||n.push(e)}n.push(t);for(let t=n.length-1;t>0;t--){A2(e,n[t])}return[n.length-1,n[0]]}function A2(e,t){const n=D2(e,t);C2(p2,n),h2.push(p2),y2.push(f2),f2=void 0,p2=n}function I2(){p2.children&&(M2(p2.children,p2),V2(p2.children)),p2=h2.pop(),f2=y2.pop()}function O2(e,t,n){A2(e,n),R2(t),I2()}function L2(e){e.initializer&&function(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}(e.initializer)?(A2(e),RI(e.initializer,R2),I2()):O2(e,e.initializer)}function j2(e){const t=Cc(e);if(void 0===t)return!1;if(aD(t)){const e=t.expression;return sb(e)||CN(e)||jh(e)}return!!t}function R2(e){if(u2.throwIfCancellationRequested(),e&&!El(e))switch(e.kind){case 176:const t=e;O2(t,t.body);for(const e of t.parameters)Zs(e,t)&&N2(e);break;case 174:case 177:case 178:case 173:j2(e)&&O2(e,e.body);break;case 172:j2(e)&&L2(e);break;case 171:j2(e)&&N2(e);break;case 273:const n=e;n.name&&N2(n.name);const{namedBindings:r}=n;if(r)if(274===r.kind)N2(r);else for(const e of r.elements)N2(e);break;case 304:O2(e,e.name);break;case 305:const{expression:i}=e;VN(i)?N2(e,i):N2(e);break;case 208:case 303:case 260:{const t=e;k_(t.name)?R2(t.name):L2(t);break}case 262:const o=e.name;o&&VN(o)&&F2(o.text),O2(e,e.body);break;case 219:case 218:O2(e,e.body);break;case 266:A2(e);for(const t of e.members)e6(t)||N2(t);I2();break;case 263:case 231:case 264:A2(e);for(const t of e.members)R2(t);I2();break;case 267:O2(e,Z2(e).body);break;case 277:{const t=e.expression,n=GD(t)||YD(t)?t:iF(t)||rF(t)?t.body:void 0;n?(A2(e),R2(n),I2()):N2(e);break}case 281:case 271:case 181:case 179:case 180:case 265:N2(e);break;case 213:case 226:{const t=tg(e);switch(t){case 1:case 2:return void O2(e,e.right);case 6:case 3:{const n=e,r=n.left,i=3===t?r.expression:r;let o,a=0;return VN(i.expression)?(F2(i.expression.text),o=i.expression):[a,o]=P2(n,i.expression),6===t?GD(n.right)&&n.right.properties.length>0&&(A2(n,o),RI(n.right,R2),I2()):rF(n.right)||iF(n.right)?O2(e,n.right,o):(A2(n,o),O2(e,n.right,r.name),I2()),void E2(a)}case 7:case 9:{const n=e,r=7===t?n.arguments[0]:n.arguments[0].expression,i=n.arguments[1],[o,a]=P2(e,r);return A2(e,a),A2(e,cI(ZC.createIdentifier(i.text),i)),R2(e.arguments[2]),I2(),I2(),void E2(o)}case 5:{const t=e,n=t.left,r=n.expression;if(VN(r)&&"prototype"!==_g(n)&&f2&&f2.has(r.text))return void(rF(t.right)||iF(t.right)?O2(e,t.right,r):og(n)&&(A2(t,r),O2(t.left,t.right,cg(n)),I2()));break}case 4:case 0:case 8:break;default:_n.assertNever(t)}}default:Du(e)&&_(e.jsDoc,(e=>{_(e.tags,(e=>{Dg(e)&&N2(e)}))})),RI(e,R2)}}function M2(e,t){const n=new Map;w(e,((e,r)=>{const i=e.name||Cc(e.node),o=i&&S2(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(J2(n,e,r,t))return!1;return a.push(e),!0}{const i=a;return!J2(i,e,r,t)&&(n.set(o,[i,e]),!0)}}))}var B2={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1};function J2(e,t,n,r){return!!function(e,t,n,r){function i(e){return rF(e)||GF(e)||HF(e)}const o=uF(t.node)||YD(t.node)?tg(t.node):0,a=uF(e.node)||YD(e.node)?tg(e.node):0;if(B2[o]&&B2[a]||i(e.node)&&B2[o]||i(t.node)&&B2[a]||XF(e.node)&&z2(e.node)&&B2[o]||XF(t.node)&&B2[a]||XF(e.node)&&z2(e.node)&&i(t.node)||XF(t.node)&&i(e.node)&&z2(e.node)){let o=e.additionalNodes&&he(e.additionalNodes)||e.node;if(!XF(e.node)&&!XF(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=D2(cI(ZC.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&&(M2(e.children,e),V2(e.children)));o=e.node=cI(ZC.createClassDeclaration(void 0,e.name||ZC.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=$(e.children,t.children),e.children&&M2(e.children,e);const a=t.node;return r.children[n-1].node.end===o.end?cI(o,{pos:o.pos,end:a.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(cI(ZC.createClassDeclaration(void 0,e.name||ZC.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&&(!q2(e,n)||!q2(t,n)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return Fv(e)===Fv(t);case 267:return U2(e,t)&&Y2(e)===Y2(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&&(M2(e.children,e),V2(e.children))}(e,t),!0)}function z2(e){return!!(16&e.flags)}function q2(e,t){if(void 0===e.parent)return!1;const n=tE(e.parent)?e.parent.parent:e.parent;return n===t.node||k(t.additionalNodes,n)}function U2(e,t){return e.body&&t.body?e.body.kind===t.body.kind&&(267!==e.body.kind||U2(e.body,t.body)):e.body===t.body}function V2(e){e.sort(W2)}function W2(e,t){return Pt($2(e.node),$2(t.node))||yt(T2(e),T2(t))}function $2(e){if(267===e.kind)return Q2(e);const t=Cc(e);if(t&&t_(t)){const e=Jh(t);return e&&mc(e)}switch(e.kind){case 218:case 219:case 231:return r6(e);default:return}}function H2(e,t){if(267===e.kind)return o6(Q2(e));if(t){const e=VN(t)?t.text:QD(t)?`[${S2(t.argumentExpression)}]`:S2(t);if(e.length>0)return o6(e)}switch(e.kind){case 307:const t=e;return VI(t)?`"${xy(Eo(VS(zo(t.fileName))))}"`:"<global>";case 277:return gE(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return 2048&qv(e)?"default":r6(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return"<unknown>"}}function K2(e){return{text:H2(e.node,e.name),kind:gX(e.node),kindModifiers:n6(e.node),spans:X2(e),nameSpan:e.name&&t6(e.name),childItems:D(e.children,K2)}}function G2(e){return{text:H2(e.node,e.name),kind:gX(e.node),kindModifiers:n6(e.node),spans:X2(e),childItems:D(e.children,(function(e){return{text:H2(e.node,e.name),kind:gX(e.node),kindModifiers:fQ(e.node),spans:X2(e),childItems:v2,indent:0,bolded:!1,grayed:!1}}))||v2,indent:e.indent,bolded:!1,grayed:!1}}function X2(e){const t=[t6(e.node)];if(e.additionalNodes)for(const n of e.additionalNodes)t.push(t6(n));return t}function Q2(e){return sp(e)?Gd(e.name):Y2(e)}function Y2(e){const t=[qh(e.name)];for(;e.body&&267===e.body.kind;)e=e.body,t.push(qh(e.name));return t.join(".")}function Z2(e){return e.body&&eE(e.body)?Z2(e.body):e}function e6(e){return!e.name||167===e.name.kind}function t6(e){return 307===e.kind?PQ(e):DQ(e,d2)}function n6(e){return e.parent&&260===e.parent.kind&&(e=e.parent),fQ(e)}function r6(e){const{parent:t}=e;if(e.name&&ad(e.name)>0)return o6(Pp(e.name));if(HF(t))return o6(Pp(t.name));if(uF(t)&&64===t.operatorToken.kind)return S2(t.left).replace(m2,"");if(zE(t))return S2(t.name);if(2048&qv(e))return"default";if(u_(e))return"<class>";if(YD(t)){let e=i6(t.expression);if(void 0!==e){if(e=o6(e),e.length>g2)return`${e} callback`;return`${e}(${o6(R(t.arguments,(e=>ju(e)||R_(e)?e.getText(d2):void 0)).join(", "))}) callback`}}return"<function>"}function i6(e){if(VN(e))return e.text;if(XD(e)){const t=i6(e.expression),n=e.name.text;return void 0===t?n:`${t}.${n}`}}function o6(e){return(e=e.length>g2?e.substring(0,g2)+"...":e).replace(/\\?(?:\r?\n|[\r\u2028\u2029])/g,"")}var a6={};n(a6,{addExportsInOldFile:()=>B6,addImportsForMovedSymbols:()=>$6,addNewFileToTsconfig:()=>M6,addOrRemoveBracesToArrowFunction:()=>P3,addTargetFileImports:()=>v3,containsJsx:()=>i3,convertArrowFunctionOrFunctionExpression:()=>q3,convertParamsToDestructuredObject:()=>Y3,convertStringOrTemplateLiteral:()=>y4,convertToOptionalChainExpression:()=>A4,createNewFileName:()=>n3,doChangeNamedToNamespaceOrDefault:()=>k6,extractSymbol:()=>V4,generateGetAccessorAndSetAccessor:()=>l8,getApplicableRefactors:()=>l6,getEditsForRefactor:()=>_6,getExistingLocals:()=>m3,getIdentifierForNode:()=>y3,getNewStatementsAndRemoveFromOldFile:()=>R6,getStatementsToMove:()=>r3,getUsageInfo:()=>a3,inferFunctionReturnType:()=>p8,isInImport:()=>l3,isRefactorErrorInfo:()=>g3,refactorKindBeginsWith:()=>h3,registerRefactor:()=>c6});var s6=new Map;function c6(e,t){s6.set(e,t)}function l6(e,t){return Ie(O(s6.values(),(n=>{var r;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!(null==(r=n.kinds)?void 0:r.some((t=>h3(t,e.kind))))?void 0:n.getAvailableActions(e,t)})))}function _6(e,t,n,r){const i=s6.get(t);return i&&i.getEditsForAction(e,n,r)}var u6="Convert export",d6={name:"Convert default export to named export",description:Wx(_a.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},p6={name:"Convert named export to default export",description:Wx(_a.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"};function f6(e,t=!0){const{file:n,program:r}=e,i=WZ(e),o=$X(n,i.start),a=o.parent&&32&qv(o.parent)&&t?o.parent:sY(o,n,i);if(!(a&&(WE(a.parent)||tE(a.parent)&&sp(a.parent.parent))))return{error:Wx(_a.Could_not_find_export_statement)};const s=r.getTypeChecker(),c=function(e,t){if(WE(e))return e.symbol;const n=e.parent.symbol;if(n.valueDeclaration&&pp(n.valueDeclaration))return t.getMergedSymbol(n);return n}(a.parent,s),l=qv(a)||(gE(a)&&!a.isExportEquals?2080:0),_=!!(2048&l);if(!(32&l)||!_&&c.exports.has("default"))return{error:Wx(_a.This_file_already_has_a_default_export)};const u=e=>VN(e)&&s.getSymbolAtLocation(e)?void 0:{error:Wx(_a.Can_only_convert_named_export)};switch(a.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const e=a;if(!e.name)return;return u(e.name)||{exportNode:e,exportName:e.name,wasDefault:_,exportingModuleSymbol:c}}case 243:{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 277:{const e=a;if(e.isExportEquals)return;return u(e.expression)||{exportNode:e,exportName:e.expression,wasDefault:_,exportingModuleSymbol:c}}default:return}}function m6(e,t){return ZC.createImportSpecifier(!1,e===t?void 0:ZC.createIdentifier(e),ZC.createIdentifier(t))}function g6(e,t){return ZC.createExportSpecifier(!1,e===t?void 0:ZC.createIdentifier(e),ZC.createIdentifier(t))}c6(u6,{kinds:[d6.kind,p6.kind],getAvailableActions:function(e){const t=f6(e,"invoked"===e.triggerReason);if(!t)return s;if(!g3(t)){const e=t.wasDefault?d6:p6;return[{name:u6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:u6,description:Wx(_a.Convert_default_export_to_named_export),actions:[{...d6,notApplicableReason:t.error},{...p6,notApplicableReason:t.error}]}]:s},getEditsForAction:function(e,t){_n.assert(t===d6.name||t===p6.name,"Unexpected action name");const n=f6(e);_n.assert(n&&!g3(n),"Expected applicable refactor info");const r=Kue.ChangeTracker.with(e,(t=>function(e,t,n,r,i){(function(e,{wasDefault:t,exportNode:n,exportName:r},i,o){if(t)if(gE(n)&&!n.isExportEquals){const t=n.expression,r=g6(t.text,t.text);i.replaceNode(e,n,ZC.createExportDeclaration(void 0,!1,ZC.createNamedExports([r])))}else i.delete(e,_n.checkDefined(lY(n,90),"Should find a default keyword in modifier list"));else{const t=_n.checkDefined(lY(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 262:case 263:case 264:i.insertNodeAfter(e,t,ZC.createToken(90));break;case 243:const a=me(n.declarationList.declarations);if(!wce.Core.isSymbolReferencedInFile(r,o,e)&&!a.type){i.replaceNode(e,n,ZC.createExportDefault(_n.checkDefined(a.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:i.deleteModifier(e,t),i.insertNodeAfter(e,n,ZC.createExportDefault(ZC.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");wce.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 211:n.replaceNode(e,t,ZC.createIdentifier(r));break;case 276:case 281:{const t=i;n.replaceNode(e,t,m6(r,t.name.text));break}case 273:{const o=i;_n.assert(o.name===t,"Import clause name should match provided ref");const a=m6(r,t.text),{namedBindings:s}=o;if(s)if(274===s.kind){n.deleteRange(e,{pos:t.getStart(e),end:s.getStart(e)});const i=NN(o.parent.moduleSpecifier)?ZQ(o.parent.moduleSpecifier,e):1,a=XQ(void 0,[m6(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,ZC.createNamedImports([a]));break}case 205:const o=i;n.replaceNode(e,i,ZC.createImportTypeNode(o.argument,o.attributes,ZC.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 211:n.replaceNode(e,t,ZC.createIdentifier("default"));break;case 276:{const t=ZC.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 281:n.replaceNode(e,r,g6("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 h6="Convert import",y6={0:{name:"Convert namespace import to named imports",description:Wx(_a.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Wx(_a.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Wx(_a.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}};function v6(e,t=!0){const{file:n}=e,r=WZ(e),i=$X(n,r.start),o=t?uc(i,Zt(oE,OP)):sY(i,n,r);if(void 0===o||!oE(o)&&!OP(o))return{error:"Selection is not an import declaration."};const a=r.start+r.length,s=XX(o,o.parent,n);if(s&&a>s.getStart())return;const{importClause:c}=o;if(!c)return{error:Wx(_a.Could_not_find_import_clause)};if(!c.namedBindings)return{error:Wx(_a.Could_not_find_namespace_import_or_named_imports)};if(274===c.namedBindings.kind)return{convertTo:0,import:c.namedBindings};return b6(e.program,c)?{convertTo:1,import:c.namedBindings}:{convertTo:2,import:c.namedBindings}}function b6(e,t){return Ck(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 x6(e){return XD(e)?e.name:e.right}function k6(e,t,n,r,i=b6(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&&NN(s)?YZ(s.text,99):"module";const _=r.elements.some((function(t){return!!wce.Core.eachSymbolReferenceInFile(t.name,o,e,(e=>{const t=o.resolveName(l,e,-1,!0);return!!t&&(!c.has(t)||vE(e.parent))}))}))?sZ(l,e):l,u=new Set;for(const t of r.elements){const r=t.propertyName||t.name;wce.Core.eachSymbolReferenceInFile(t.name,o,e,(i=>{const o=11===r.kind?ZC.createElementAccessExpression(ZC.createIdentifier(_),ZC.cloneNode(r)):ZC.createPropertyAccessExpression(ZC.createIdentifier(_),ZC.cloneNode(r));qE(i.parent)?n.replaceNode(e,i.parent,ZC.createPropertyAssignment(i.text,o)):vE(i.parent)?u.add(t):n.replaceNode(e,i,o)}))}if(n.replaceNode(e,r,i?ZC.createIdentifier(_):ZC.createNamespaceImport(ZC.createIdentifier(_))),u.size&&oE(a)){const t=Ie(u.values(),(e=>ZC.createImportSpecifier(e.isTypeOnly,e.propertyName&&ZC.cloneNode(e.propertyName),ZC.cloneNode(e.name))));n.insertNodeAfter(e,r.parent.parent,S6(a,void 0,t))}}function S6(e,t,n){return ZC.createImportDeclaration(void 0,T6(t,n),e.moduleSpecifier,void 0)}function T6(e,t){return ZC.createImportClause(!1,e,t&&t.length?ZC.createNamedImports(t):void 0)}c6(h6,{kinds:Pe(y6).map((e=>e.kind)),getAvailableActions:function(e){const t=v6(e,"invoked"===e.triggerReason);if(!t)return s;if(!g3(t)){const e=y6[t.convertTo];return[{name:h6,description:e.description,actions:[e]}]}return e.preferences.provideRefactorNotApplicableReason?Pe(y6).map((e=>({name:h6,description:e.description,actions:[{...e,notApplicableReason:t.error}]}))):s},getEditsForAction:function(e,t){_n.assert(V(Pe(y6),(e=>e.name===t)),"Unexpected action name");const n=v6(e);_n.assert(n&&!g3(n),"Expected applicable refactor info");const r=Kue.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;wce.Core.eachSymbolReferenceInFile(r.name,t,e,(e=>{if(I_(e.parent)){const r=x6(e.parent).text;t.resolveName(r,e,-1,!0)&&s.set(r,!0),_n.assert((XD(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=x6(t).text;let i=c.get(r);void 0===i&&c.set(r,i=s.has(r)?sZ(r,e):r),n.replaceNode(e,t,ZC.createIdentifier(i))}const l=[];c.forEach(((e,t)=>{l.push(ZC.createImportSpecifier(!1,e===t?void 0:ZC.createIdentifier(t),ZC.createIdentifier(e)))}));const _=r.parent.parent;if(o&&!i&&oE(_))n.insertNodeAfter(e,_,S6(_,void 0,l));else{const t=o?ZC.createIdentifier(r.name.text):void 0;n.replaceNode(e,r.parent,T6(t,l))}}(e,i,n,r.import,Ck(t.getCompilerOptions())):k6(e,t,n,r.import,1===r.convertTo)}(e.file,e.program,t,n)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var C6="Extract type",w6={name:"Extract to type alias",description:Wx(_a.Extract_to_type_alias),kind:"refactor.extract.type"},N6={name:"Extract to interface",description:Wx(_a.Extract_to_interface),kind:"refactor.extract.interface"},D6={name:"Extract to typedef",description:Wx(_a.Extract_to_typedef),kind:"refactor.extract.typedef"};function F6(e,t=!0){const{file:n,startPosition:r}=e,i=Fm(n),o=AQ(WZ(e)),a=o.pos===o.end&&t,c=function(e,t,n,r){const i=[()=>$X(e,t),()=>WX(e,t,(()=>!0))];for(const t of i){const i=t(),o=CX(i,e,n.pos,n.end),a=uc(i,(t=>t.parent&&b_(t)&&!P6(n,t.parent,e)&&(r||o)));if(a)return a}return}(n,r,o,a);if(!c||!b_(c))return{info:{error:Wx(_a.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const l=e.program.getTypeChecker(),_=function(e,t){return uc(e,pu)||(t?uc(e,sP):void 0)}(c,i);if(void 0===_)return{info:{error:Wx(_a.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};const u=function(e,t){return uc(e,(e=>e===t?"quit":!(!AD(e.parent)&&!ID(e.parent))))??e}(c,_);if(!b_(u))return{info:{error:Wx(_a.Selection_is_not_a_valid_type_node)},affectedTextRange:void 0};const d=[];(AD(u.parent)||ID(u.parent))&&o.end>c.end&&ae(d,u.parent.types.filter((e=>CX(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(kD(t)){if(VN(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(sD(e)&&e.getSourceFile()===r){if(e.name.escapedText===o.escapedText&&P6(e,a,r))return!0;if(P6(n,e,r)&&!P6(a,e,r)){se(i,e);break}}}}else if(LD(t)){const e=uc(t,(e=>OD(e)&&P6(e.extendsType,t,r)));if(!e||!P6(a,e,r))return!0}else if(xD(t)||RD(t)){const e=uc(t.parent,r_);if(e&&e.type&&P6(e.type,t,r)&&!P6(a,e,r))return!0}else if(CD(t))if(VN(t.exprName)){const i=e.resolveName(t.exprName.text,t.exprName,111551,!1);if((null==i?void 0:i.valueDeclaration)&&P6(n,i.valueDeclaration,r)&&!P6(a,i.valueDeclaration,r))return!0}else if(lv(t.exprName.left)&&!P6(a,t.parent,r))return!0;return r&&DD(t)&&za(r,t.pos).line===za(r,t.end).line&&ow(t,1),RI(t,c)}}(l,p,_,n);if(!f)return{info:{error:Wx(_a.No_type_could_be_extracted_from_this_type_node)},affectedTextRange:void 0};return{info:{isJS:i,selection:p,enclosingNode:_,typeParameters:f,typeElements:E6(l,p)},affectedTextRange:m}}function E6(e,t){if(t){if(Xe(t)){const n=[];for(const r of t){const t=E6(e,r);if(!t)return;ae(n,t)}return n}if(ID(t)){const n=[],r=new Set;for(const i of t.types){const t=E6(e,i);if(!t||!t.every((e=>e.name&&xx(r,UQ(e.name)))))return;ae(n,t)}return n}return jD(t)?E6(e,t.type):wD(t)?t.members:void 0}}function P6(e,t,n){return SX(e,Qa(n.text,t.pos),t.end)}function A6(e){return Xe(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:AD(e.selection[0].parent)?ZC.createUnionTypeNode(e.selection):ZC.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}c6(C6,{kinds:[w6.kind,N6.kind,D6.kind],getAvailableActions:function(e){const{info:t,affectedTextRange:n}=F6(e,"invoked"===e.triggerReason);if(!t)return s;if(!g3(t)){return[{name:C6,description:Wx(_a.Extract_type),actions:t.isJS?[D6]:re([w6],t.typeElements&&N6)}].map((t=>({...t,actions:t.actions.map((t=>({...t,range:n?{start:{line:za(e.file,n.pos).line,offset:za(e.file,n.pos).character},end:{line:za(e.file,n.end).line,offset:za(e.file,n.end).character}}:void 0})))})))}return e.preferences.provideRefactorNotApplicableReason?[{name:C6,description:Wx(_a.Extract_type),actions:[{...D6,notApplicableReason:t.error},{...w6,notApplicableReason:t.error},{...N6,notApplicableReason:t.error}]}]:s},getEditsForAction:function(e,t){const{file:n}=e,{info:r}=F6(e);_n.assert(r&&!g3(r),"Expected to find a range to extract");const i=sZ("NewType",n),o=Kue.ChangeTracker.with(e,(o=>{switch(t){case w6.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}=A6(r),l=ZC.createTypeAliasDeclaration(void 0,n,o.map((e=>ZC.updateTypeParameterDeclaration(e,e.modifiers,e.name,e.constraint,void 0))),c);e.insertNodeBefore(t,i,Iw(l),!0),e.replaceNodeRange(t,a,s,ZC.createTypeReferenceNode(n,o.map((e=>ZC.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:Kue.LeadingTriviaOption.Exclude,trailingTriviaOption:Kue.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);case D6.name:return _n.assert(r.isJS,"Invalid actionName/JS combo"),function(e,t,n,r,i){var o;Qe(i.selection).forEach((e=>{ow(e,7168)}));const{enclosingNode:a,typeParameters:s}=i,{firstTypeNode:c,lastTypeNode:l,newTypeNode:u}=A6(i),d=ZC.createJSDocTypedefTag(ZC.createIdentifier("typedef"),ZC.createJSDocTypeExpression(u),ZC.createIdentifier(r)),p=[];_(s,(e=>{const t=ul(e),n=ZC.createTypeParameterDeclaration(void 0,e.name),r=ZC.createJSDocTemplateTag(ZC.createIdentifier("template"),t&&tt(t,HE),[n]);p.push(r)}));const f=ZC.createJSDocComment(void 0,ZC.createNodeArray($(p,[d])));if(sP(a)){const r=a.getStart(n),i=RY(t.host,null==(o=t.formatContext)?void 0:o.options);e.insertNodeAt(n,a.getStart(n),f,{suffix:i+i+n.text.slice(GY(n.text,r-1),r)})}else e.insertNodeBefore(n,a,f,!0);e.replaceNodeRange(n,c,l,ZC.createTypeReferenceNode(r,s.map((e=>ZC.createTypeReferenceNode(e.name,void 0)))))}(o,e,n,i,r);case N6.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=ZC.createInterfaceDeclaration(void 0,n,a,void 0,s);cI(c,null==(i=s[0])?void 0:i.parent),e.insertNodeBefore(t,o,Iw(c),!0);const{firstTypeNode:l,lastTypeNode:_}=A6(r);e.replaceNodeRange(t,l,_,ZC.createTypeReferenceNode(n,a.map((e=>ZC.createTypeReferenceNode(e.name,void 0)))),{leadingTriviaOption:Kue.LeadingTriviaOption.Exclude,trailingTriviaOption:Kue.TrailingTriviaOption.ExcludeWhitespace})}(o,n,i,r);default:_n.fail("Unexpected action name")}})),a=n.fileName;return{edits:o,renameFilename:a,renameLocation:cZ(o,a,i,!1)}}});var I6="Move to file",O6=Wx(_a.Move_to_file),L6={name:"Move to file",description:O6,kind:"refactor.move.file"};function j6(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function R6(e,t,n,r,i,o,a,s,c,_){const u=o.getTypeChecker(),p=sn(e.statements,df),f=!l0(t.fileName,o,a,!!e.commonJsModuleIndicator),m=eY(e,s);$6(n.oldFileImportsFromTargetFile,t.fileName,_,o),function(e,t,n,r){for(const i of e.statements)k(t,i)||V6(i,(e=>{W6(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)V6(l,(_=>{if(s.getSymbolAtLocation(U6(_))!==r.symbol)return;const u=e=>{const t=HD(e.parent)?aY(s,e.parent):ax(s.getSymbolAtLocation(e),s);return!!t&&i.has(t)};K6(c,_,e,u);const d=Mo(Fo(Jo(r.fileName,t.getCurrentDirectory())),o);if(0===Ct(!t.useCaseSensitiveFileNames())(d,c.fileName))return;const p=GM.getModuleSpecifier(t.getCompilerOptions(),c,c.fileName,d,HQ(t,n)),f=Z6(_,QQ(p,a),u);f&&e.insertNodeAfter(c,l,f);const m=J6(_);m&&z6(e,c,s,i,p,m,_,a)}))}(r,o,a,e,n.movedSymbols,t.fileName,m),B6(e,n.targetFileImportsFromOldFile,r,f),v3(e,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,u,o,c),!Dm(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(G6(t)&&!H6(e,t,r)&&c3(t,(e=>{var t;return n.includes(_n.checkDefined(null==(t=et(e,au))?void 0:t.symbol))}))){const e=function(e,t){return t?[X6(e)]:function(e){return[e,...Y6(e).map(Q6)]}(e)}(XY(t),r);if(e)return e}return XY(t)}))}(e,i.all,Ie(n.oldFileImportsFromTargetFile.keys()),f);Dm(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)G6(e)&&Dv(e,32)&&c3(e,(e=>{var t;const n=d(au(e)?null==(t=s.get(e.symbol.escapedName))?void 0:t.declarations:void 0,(e=>hE(e)?e:vE(e)?et(e.parent.parent,hE):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&&yE(t.exportClause)&&l(t.exportClause.elements)){const o=t.exportClause.elements,s=C(o,(e=>void 0===y(ax(e.symbol,n).declarations,(e=>u3(e)&&i.has(e)))));if(0===l(s)){e.deleteNode(r,t),a.add(t);continue}l(s)<l(o)&&e.replaceNode(r,t,ZC.updateExportDeclaration(t,t.modifiers,t.isTypeOnly,ZC.updateNamedExports(t.exportClause,ZC.createNodeArray(s,o.hasTrailingComma)),t.moduleSpecifier,t.attributes))}}const c=v(r.statements,(e=>hE(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):Dm(t)?r.insertNodesAtEndOfFile(t,g,!1):r.insertStatementsInNewFile(t.fileName,c.hasFixes()?[4,...g]:g,e)}function M6(e,t,n,r,i){const o=e.getCompilerOptions().configFile;if(!o)return;const a=zo(Ro(n,"..",r)),s=oa(o.fileName,a,i),c=o.statements[0]&&et(o.statements[0].expression,GD),l=c&&y(c.properties,(e=>zE(e)&&NN(e.name)&&"files"===e.name.text));l&&KD(l.initializer)&&t.insertNodeInListAfter(o,ye(l.initializer.elements),ZC.createStringLiteral(s),l.initializer.elements)}function B6(e,t,n,r){const i=BQ();t.forEach(((t,o)=>{var a;if(o.declarations)for(const t of o.declarations){if(!u3(t))continue;const o=PF(a=t)?et(a.expression.left.name,VN):et(a.name,VN);if(!o)continue;const s=e3(t);i(s)&&t3(e,s,o,n,r)}}))}function J6(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&274===e.importClause.namedBindings.kind?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return et(e.name,VN);default:return _n.assertNever(e,`Unexpected node kind ${e.kind}`)}}function z6(e,t,n,r,i,o,a,s){const c=YZ(i,99);let l=!1;const _=[];if(wce.Core.eachSymbolReferenceInFile(o,n,t,(e=>{XD(e.parent)&&(l=l||!!n.resolveName(c,e,-1,!0),r.has(n.getSymbolAtLocation(e.parent.name))&&_.push(e))})),_.length){const n=l?sZ(c,t):c;for(const r of _)e.replaceNode(t,r,ZC.createIdentifier(n));e.insertNodeAfter(t,a,function(e,t,n,r){const i=ZC.createIdentifier(t),o=QQ(n,r);switch(e.kind){case 272:return ZC.createImportDeclaration(void 0,ZC.createImportClause(!1,void 0,ZC.createNamespaceImport(i)),o,void 0);case 271:return ZC.createImportEqualsDeclaration(void 0,!1,i,ZC.createExternalModuleReference(o));case 260:return ZC.createVariableDeclaration(i,void 0,void 0,q6(o));default:return _n.assertNever(e,`Unexpected node kind ${e.kind}`)}}(a,c,i,s))}}function q6(e){return ZC.createCallExpression(ZC.createIdentifier("require"),void 0,[e])}function U6(e){return 272===e.kind?e.moduleSpecifier:271===e.kind?e.moduleReference.expression:e.initializer.arguments[0]}function V6(e,t){if(oE(e))NN(e.moduleSpecifier)&&t(e);else if(iE(e))TE(e.moduleReference)&&ju(e.moduleReference.expression)&&t(e);else if(FF(e))for(const n of e.declarationList.declarations)n.initializer&&Lm(n.initializer,!0)&&t(n)}function W6(e,t){var n,r,i,o,a;if(272===e.kind){if((null==(n=e.importClause)?void 0:n.name)&&t(e.importClause),274===(null==(i=null==(r=e.importClause)?void 0:r.namedBindings)?void 0:i.kind)&&t(e.importClause.namedBindings),275===(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(271===e.kind)t(e);else if(260===e.kind)if(80===e.name.kind)t(e);else if(206===e.name.kind)for(const n of e.name.elements)VN(n.name)&&t(n)}function $6(e,t,n,r){for(const[i,o]of e){const e=GZ(i,vk(r.getCompilerOptions())),a="default"===i.name&&i.parent?1:0;n.addImportForNonExistentExport(e,t,a,i.flags,o)}}function H6(e,t,n,r){var i;return n?!PF(t)&&Dv(t,32)||!!(r&&e.symbol&&(null==(i=e.symbol.exports)?void 0:i.has(r.escapedText))):!!e.symbol&&!!e.symbol.exports&&Y6(t).some((t=>e.symbol.exports.has(fc(t))))}function K6(e,t,n,r){if(272===t.kind&&t.importClause){const{name:i,namedBindings:o}=t.importClause;if((!i||r(i))&&(!o||275===o.kind&&0!==o.elements.length&&o.elements.every((e=>r(e.name)))))return n.delete(e,t)}W6(t,(t=>{t.name&&VN(t.name)&&r(t.name)&&n.delete(e,t)}))}function G6(e){return _n.assert(WE(e.parent),"Node parent should be a SourceFile"),p3(e)||FF(e)}function X6(e){const t=lI(e)?$([ZC.createModifier(95)],Dc(e)):void 0;switch(e.kind){case 262:return ZC.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:const n=_I(e)?Nc(e):void 0;return ZC.updateClassDeclaration(e,$(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return ZC.updateVariableStatement(e,t,e.declarationList);case 267:return ZC.updateModuleDeclaration(e,t,e.name,e.body);case 266:return ZC.updateEnumDeclaration(e,t,e.name,e.members);case 265:return ZC.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return ZC.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return ZC.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return _n.fail();default:return _n.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function Q6(e){return ZC.createExpressionStatement(ZC.createBinaryExpression(ZC.createPropertyAccessExpression(ZC.createIdentifier("exports"),ZC.createIdentifier(e)),64,ZC.createIdentifier(e)))}function Y6(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return R(e.declarationList.declarations,(e=>VN(e.name)?e.name.text:void 0));case 267:case 266:case 265:case 264:case 271:return s;case 244:return _n.fail("Can't export an ExpressionStatement");default:return _n.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function Z6(e,t,n){switch(e.kind){case 272:{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(274===e.kind)return t(e.name)?e:void 0;{const n=e.elements.filter((e=>t(e.name)));return n.length?ZC.createNamedImports(n):void 0}}(r.namedBindings,n);return i||o?ZC.createImportDeclaration(void 0,ZC.createImportClause(r.isTypeOnly,i,o),XY(t),void 0):void 0}case 271:return n(e.name)?e:void 0;case 260:{const r=function(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{const n=e.elements.filter((e=>e.propertyName||!VN(e.name)||t(e.name)));return n.length?ZC.createObjectBindingPattern(n):void 0}}}(e.name,n);return r?function(e,t,n,r=2){return ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(e,void 0,t,n)],r))}(r,e.type,q6(t),e.parent.flags):void 0}default:return _n.assertNever(e,`Unexpected import kind ${e.kind}`)}}function e3(e){switch(e.kind){case 260:return e.parent.parent;case 208:return e3(tt(e.parent.parent,(e=>HF(e)||HD(e))));default:return e}}function t3(e,t,n,r,i){if(!H6(e,t,i,n))if(i)PF(t)||r.insertExportModifier(e,t);else{const n=Y6(t);0!==n.length&&r.insertNodesAfter(e,t,n.map(Q6))}}function n3(e,t,n,r){const i=t.getTypeChecker();if(r){const t=a3(e,r.all,i),s=Fo(e.fileName),c=eT(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,rd(o,nY)||rd(a,nY)||"newFile"),c,s,n))+c;return l}var o,a;return""}function r3(e){const t=function(e){const{file:t}=e,n=AQ(WZ(e)),{statements:r}=t;let i=b(r,(e=>e.end>n.pos));if(-1===i)return;const o=f3(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=f3(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,o3,((e,t)=>{for(let r=e;r<t;r++)n.push(i[r]);r.push({first:i[e],afterLast:o})})),0===n.length?void 0:{all:n,ranges:r}}function i3(e){return y(e,(e=>!!(2&e.transformFlags)))}function o3(e){return!function(e){switch(e.kind){case 272:return!0;case 271:return!Dv(e,32);case 243:return e.declarationList.declarations.every((e=>!!e.initializer&&Lm(e.initializer,!0)));default:return!1}}(e)&&!df(e)}function a3(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,l3)?r:void 0}(i3(t));l&&s.set(l,[!1,et(null==(o=l.declarations)?void 0:o[0],(e=>mE(e)||aE(e)||dE(e)||iE(e)||HD(e)||HF(e)))]);for(const e of t)c3(e,(e=>{a.add(_n.checkDefined(PF(e)?n.getSymbolAtLocation(e.expression.left):e.symbol,"Need a symbol here"))}));const _=new Set;for(const o of t)s3(o,n,i,((t,i)=>{if(!t.declarations)return;if(r.has(ax(t,n)))return void _.add(t);const o=y(t.declarations,l3);if(o){const e=s.get(t);s.set(t,[(void 0===e||e)&&i,et(o,(e=>mE(e)||aE(e)||dE(e)||iE(e)||HD(e)||HF(e)))])}else!a.has(t)&&h(t.declarations,(t=>{return u3(t)&&(HF(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),s3(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 s3(e,t,n,r){e.forEachChild((function e(i){if(VN(i)&&!lh(i)){if(n&&!Qb(n,i))return;const e=t.getSymbolAtLocation(i);e&&r(e,xT(i))}else i.forEachChild(e)}))}function c3(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return d(e.declarationList.declarations,(e=>d3(e.name,t)));case 244:{const{expression:n}=e;return uF(n)&&1===tg(n)?t(e):void 0}}}function l3(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return _3(e);case 208:return HF(e.parent.parent)&&_3(e.parent.parent);default:return!1}}function _3(e){return WE(e.parent.parent.parent)&&!!e.initializer&&Lm(e.initializer,!0)}function u3(e){return p3(e)&&WE(e.parent)||HF(e)&&WE(e.parent.parent.parent)}function d3(e,t){switch(e.kind){case 80:return t(tt(e.parent,(e=>HF(e)||HD(e))));case 207:case 206:return d(e.elements,(e=>hF(e)?void 0:d3(e.name,t)));default:return _n.assertNever(e,`Unexpected name kind ${e.kind}`)}}function p3(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function f3(e,t){if(o_(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=>yd(t)===e&&pu(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 m3(e,t,n){const r=new Set;for(const t of e.imports){const e=vg(t);if(oE(e)&&e.importClause&&e.importClause.namedBindings&&fE(e.importClause.namedBindings))for(const t of e.importClause.namedBindings.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(ax(e,n))}if(jm(e.parent)&&WD(e.parent.name))for(const t of e.parent.name.elements){const e=n.getSymbolAtLocation(t.propertyName||t.name);e&&r.add(ax(e,n))}}for(const i of t)s3(i,n,void 0,(t=>{const i=ax(t,n);i.valueDeclaration&&yd(i.valueDeclaration).path===e.path&&r.add(i)}));return r}function g3(e){return void 0!==e.error}function h3(e,t){return!t||e.substr(0,t.length)===t}function y3(e,t,n,r){return!XD(e)||u_(t)||n.resolveName(e.name.text,e,111551,!1)||WN(e.name)||hc(e.name)?sZ(u_(t)?"newProperty":"newLocal",r):e.name.text}function v3(e,t,n,r,i,o){t.forEach((([e,t],n)=>{var i;const a=ax(n,r);r.isUnknownSymbol(a)?o.addVerbatimImport(_n.checkDefined(t??uc(null==(i=n.declarations)?void 0:i[0],Tp))):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)})),$6(n,e.fileName,o,i)}c6(I6,{kinds:[L6.kind],getAvailableActions:function(e,t){const n=e.file,r=r3(e);if(!t)return s;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=uc($X(n,e.startPosition),_0),r=uc($X(n,e.endPosition),_0);if(t&&!WE(t)&&r&&!WE(r))return s}if(e.preferences.allowTextChangesInNewFiles&&r){const e={start:{line:za(n,r.all[0].getStart(n)).line,offset:za(n,r.all[0].getStart(n)).character},end:{line:za(n,ye(r.all).end).line,offset:za(n,ye(r.all).end).character}};return[{name:I6,description:O6,actions:[{...L6,range:e}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:I6,description:O6,actions:[{...L6,notApplicableReason:Wx(_a.Selection_is_not_a_valid_statement_or_statements)}]}]:s},getEditsForAction:function(e,t,n){_n.assert(t===I6,"Wrong refactor invoked");const r=_n.checkDefined(r3(e)),{host:i,program:o}=e;_n.assert(n,"No interactive refactor arguments available");const a=n.targetFile;if(LS(a)||jS(a)){if(i.fileExists(a)&&void 0===o.getSourceFile(a))return j6(Wx(_a.Cannot_move_statements_to_the_selected_file));const t=Kue.ChangeTracker.with(e,(t=>function(e,t,n,r,i,o,a,s){const c=r.getTypeChecker(),l=!a.fileExists(n),_=l?u0(n,t.externalModuleIndicator?99:t.commonJsModuleIndicator?1:void 0,r,a):_n.checkDefined(r.getSourceFile(n)),u=I7.createImportAdder(t,e.program,e.preferences,e.host),d=I7.createImportAdder(_,e.program,e.preferences,e.host);R6(t,_,a3(t,i.all,c,l?void 0:m3(_,i.all,c)),o,i,r,a,s,d,u),l&&M6(r,o,t.fileName,n,Ry(a))}(e,e.file,n.targetFile,e.program,r,t,e.host,e.preferences)));return{edits:t,renameFilename:void 0,renameLocation:void 0}}return j6(Wx(_a.Cannot_move_to_file_selected_file_is_invalid))}});var b3="Inline variable",x3=Wx(_a.Inline_variable),k3={name:b3,description:x3,kind:"refactor.inline.variable"};function S3(e,t,n,r){var i,o;const a=r.getTypeChecker(),s=VX(e,t),c=s.parent;if(VN(s)){if(tx(c)&&Af(c)&&VN(c.name)){if(1!==(null==(i=a.getMergedSymbol(c.symbol).declarations)?void 0:i.length))return{error:Wx(_a.Variables_with_multiple_declarations_cannot_be_inlined)};if(T3(c))return;const t=C3(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:Wx(_a.Variables_with_multiple_declarations_cannot_be_inlined)};const n=t.declarations[0];if(!tx(n)||!Af(n)||!VN(n.name))return;if(T3(n))return;const r=C3(n,a,e);return r&&{references:r,declaration:n,replacement:n.initializer}}return{error:Wx(_a.Could_not_find_variable_to_inline)}}}function T3(e){return V(tt(e.parent.parent,FF).modifiers,$N)}function C3(e,t,n){const r=[],i=wce.Core.eachSymbolReferenceInFile(e.name,t,n,(t=>!(!wce.isWriteAccessForReference(t)||qE(t.parent))||(!(!vE(t.parent)&&!gE(t.parent))||(!!CD(t.parent)||(!!As(e,t.pos)||void r.push(t))))));return 0===r.length||i?void 0:r}function w3(e,t){t=XY(t);const{parent:n}=e;return V_(n)&&(iy(t)<iy(n)||fZ(n))||r_(t)&&(L_(n)||XD(n))||XD(n)&&(CN(t)||GD(t))?ZC.createParenthesizedExpression(t):VN(e)&&qE(n)?ZC.createPropertyAssignment(e,t):t}function N3(e,t,n,r){const i=n.parent,o=i.templateSpans.indexOf(n),a=0===o?i.head:i.templateSpans[o-1];e.replaceRangeWithText(t,{pos:a.getEnd()-2,end:n.literal.getStart()+1},r.text.replace(/\\/g,"\\\\").replace(/`/g,"\\`"))}c6(b3,{kinds:[k3.kind],getAvailableActions(e){const{file:t,program:n,preferences:r,startPosition:i,triggerReason:o}=e,a=S3(t,i,"invoked"===o,n);return a?a6.isRefactorErrorInfo(a)?r.provideRefactorNotApplicableReason?[{name:b3,description:x3,actions:[{...k3,notApplicableReason:a.error}]}]:s:[{name:b3,description:x3,actions:[k3]}]:s},getEditsForAction(e,t){_n.assert(t===b3,"Unexpected refactor invoked");const{file:n,program:r,startPosition:i}=e,o=S3(n,i,!0,r);if(!o||a6.isRefactorErrorInfo(o))return;const{references:a,declaration:s,replacement:c}=o;return{edits:Kue.ChangeTracker.with(e,(e=>{for(const t of a){const r=NN(c)&&VN(t)&&rh(t.parent);r&&wF(r)&&!eF(r.parent.parent)?N3(e,n,r,c):e.replaceNode(n,t,w3(t,c))}e.delete(n,s)}))}}});var D3="Move to a new file",F3=Wx(_a.Move_to_a_new_file),E3={name:D3,description:F3,kind:"refactor.move.newFile"};c6(D3,{kinds:[E3.kind],getAvailableActions:function(e){const t=r3(e),n=e.file;if("implicit"===e.triggerReason&&void 0!==e.endPosition){const t=uc($X(n,e.startPosition),_0),r=uc($X(n,e.endPosition),_0);if(t&&!WE(t)&&r&&!WE(r))return s}if(e.preferences.allowTextChangesInNewFiles&&t){const n=e.file,r={start:{line:za(n,t.all[0].getStart(n)).line,offset:za(n,t.all[0].getStart(n)).character},end:{line:za(n,ye(t.all).end).line,offset:za(n,ye(t.all).end).character}};return[{name:D3,description:F3,actions:[{...E3,range:r}]}]}return e.preferences.provideRefactorNotApplicableReason?[{name:D3,description:F3,actions:[{...E3,notApplicableReason:Wx(_a.Selection_is_not_a_valid_statement_or_statements)}]}]:s},getEditsForAction:function(e,t){_n.assert(t===D3,"Wrong refactor invoked");const n=_n.checkDefined(r3(e)),r=Kue.ChangeTracker.with(e,(t=>function(e,t,n,r,i,o,a){const s=t.getTypeChecker(),c=a3(e,n.all,s),l=n3(e,t,i,n),_=u0(l,e.externalModuleIndicator?99:e.commonJsModuleIndicator?1:void 0,t,i),u=I7.createImportAdder(e,o.program,o.preferences,o.host),d=I7.createImportAdder(_,o.program,o.preferences,o.host);R6(e,_,c,r,n,t,i,a,d,u),M6(t,r,e.fileName,l,Ry(i))}(e.file,e.program,n,t,e.host,e,e.preferences)));return{edits:r,renameFilename:void 0,renameLocation:void 0}}});var P3={},A3="Convert overload list to single signature",I3=Wx(_a.Convert_overload_list_to_single_signature),O3={name:A3,description:I3,kind:"refactor.rewrite.function.overloadList"};function L3(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function j3(e,t,n){const r=uc($X(e,t),L3);if(!r)return;if(o_(r)&&r.body&&xX(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=>yd(t)===e)))return;if(!L3(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||!VN(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}c6(A3,{kinds:[O3.kind],getEditsForAction:function(e){const{file:t,startPosition:n,program:r}=e,i=j3(t,n,r);if(!i)return;const o=r.getTypeChecker(),a=i[i.length-1];let s=a;switch(a.kind){case 173:s=ZC.updateMethodSignature(a,a.modifiers,a.name,a.questionToken,a.typeParameters,c(i),a.type);break;case 174:s=ZC.updateMethodDeclaration(a,a.modifiers,a.asteriskToken,a.name,a.questionToken,a.typeParameters,c(i),a.type,a.body);break;case 179:s=ZC.updateCallSignature(a,a.typeParameters,c(i),a.type);break;case 176:s=ZC.updateConstructorDeclaration(a,a.modifiers,c(i),a.body);break;case 180:s=ZC.updateConstructSignature(a,a.typeParameters,c(i),a.type);break;case 262:s=ZC.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:Kue.ChangeTracker.with(e,(e=>{e.replaceNodeRange(t,i[0],i[i.length-1],s)}))};function c(e){const t=e[e.length-1];return o_(t)&&t.body&&(e=e.slice(0,e.length-1)),ZC.createNodeArray([ZC.createParameterDeclaration(void 0,ZC.createToken(26),"args",void 0,ZC.createUnionTypeNode(D(e,_)))])}function _(e){const t=D(e.parameters,u);return ow(ZC.createTupleTypeNode(t),V(t,(e=>!!l(hw(e))))?0:1)}function u(e){_n.assert(VN(e.name));const t=cI(ZC.createNamedTupleMember(e.dotDotDotToken,e.name,e.questionToken,e.type||ZC.createKeywordTypeNode(133)),e),n=e.symbol&&e.symbol.getDocumentationComment(o);if(n){const e=$8(n);e.length&&yw(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 j3(t,n,r)?[{name:A3,description:I3,actions:[O3]}]:s}});var R3="Add or remove braces in an arrow function",M3=Wx(_a.Add_or_remove_braces_in_an_arrow_function),B3={name:"Add braces to arrow function",description:Wx(_a.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},J3={name:"Remove braces from arrow function",description:Wx(_a.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"};function z3(e,t,n=!0,r){const i=$X(e,t),o=Kf(i);if(!o)return{error:Wx(_a.Could_not_find_a_containing_arrow_function)};if(!iF(o))return{error:Wx(_a.Containing_function_is_not_an_arrow_function)};if(Qb(o,i)&&(!Qb(o.body,i)||n)){if(h3(B3.kind,r)&&V_(o.body))return{func:o,addBraces:!0,expression:o.body};if(h3(J3.kind,r)&&DF(o.body)&&1===o.body.statements.length){const e=me(o.body.statements);if(JF(e)){return{func:o,addBraces:!1,expression:e.expression&&GD(Fx(e.expression,!1))?ZC.createParenthesizedExpression(e.expression):e.expression,returnStatement:e}}}}}c6(R3,{kinds:[J3.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=z3(n,r);_n.assert(i&&!g3(i),"Expected applicable refactor info");const{expression:o,returnStatement:a,func:s}=i;let c;if(t===B3.name){const e=ZC.createReturnStatement(o);c=ZC.createBlock([e],!0),lZ(o,e,n,3,!0)}else if(t===J3.name&&a){const e=o||ZC.createVoidZero();c=fZ(e)?ZC.createParenthesizedExpression(e):e,uZ(a,c,n,3,!1),lZ(a,c,n,3,!1),_Z(a,c,n,3,!1)}else _n.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:Kue.ChangeTracker.with(e,(e=>{e.replaceNode(n,s.body,c)}))}},getAvailableActions:function(e){const{file:t,startPosition:n,triggerReason:r}=e,i=z3(t,n,"invoked"===r);if(!i)return s;if(!g3(i))return[{name:R3,description:M3,actions:[i.addBraces?B3:J3]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:R3,description:M3,actions:[{...B3,notApplicableReason:i.error},{...J3,notApplicableReason:i.error}]}];return s}});var q3={},U3="Convert arrow function or function expression",V3=Wx(_a.Convert_arrow_function_or_function_expression),W3={name:"Convert to anonymous function",description:Wx(_a.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},$3={name:"Convert to named function",description:Wx(_a.Convert_to_named_function),kind:"refactor.rewrite.function.named"},H3={name:"Convert to arrow function",description:Wx(_a.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"};function K3(e){let t=!1;return e.forEachChild((function e(n){hX(n)?t=!0:u_(n)||GF(n)||rF(n)||RI(n,e)})),t}function G3(e,t,n){const r=$X(e,t),i=n.getTypeChecker(),o=function(e,t,n){if(!function(e){return HF(e)||KF(e)&&1===e.declarations.length}(n))return;const r=(HF(n)?n:me(n.declarations)).initializer;if(r&&(iF(r)||rF(r)&&!Q3(e,t,r)))return r;return}(e,i,r.parent);if(o&&!K3(o.body)&&!i.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};const a=Kf(r);if(a&&(rF(a)||iF(a))&&!Qb(a.body,r)&&!K3(a.body)&&!i.containsArgumentsReference(a)){if(rF(a)&&Q3(e,i,a))return;return{selectedVariableDeclaration:!1,func:a}}}function X3(e){if(V_(e)){const t=ZC.createReturnStatement(e),n=e.getSourceFile();return cI(t,e),tZ(t),uZ(e,t,n,void 0,!0),ZC.createBlock([t],!0)}return e}function Q3(e,t,n){return!!n.name&&wce.Core.isSymbolReferencedInFile(n.name,t,e)}c6(U3,{kinds:[W3.kind,$3.kind,H3.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r,program:i}=e,o=G3(n,r,i);if(!o)return;const{func:a}=o,s=[];switch(t){case W3.name:s.push(...function(e,t){const{file:n}=e,r=X3(t.body),i=ZC.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,r);return Kue.ChangeTracker.with(e,(e=>e.replaceNode(n,t,i)))}(e,a));break;case $3.name:const t=function(e){const t=e.parent;if(!HF(t)||!Af(t))return;const n=t.parent,r=n.parent;return KF(n)&&FF(r)&&VN(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=X3(t.body),{variableDeclaration:o,variableDeclarationList:a,statement:s,name:c}=n;nZ(s);const _=32&ic(o)|Jv(t),u=ZC.createModifiersFromModifierFlags(_),d=ZC.createFunctionDeclaration(l(u)?u:void 0,t.asteriskToken,c,t.typeParameters,t.parameters,t.type,i);return 1===a.declarations.length?Kue.ChangeTracker.with(e,(e=>e.replaceNode(r,s,d))):Kue.ChangeTracker.with(e,(e=>{e.delete(r,o),e.insertNodeAfter(r,s,d)}))}(e,a,t));break;case H3.name:if(!rF(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&&JF(t)&&!!t.expression}(t.body,i)?o=t.body:(o=i.expression,tZ(o),iZ(i,o));const a=ZC.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,ZC.createToken(39),o);return Kue.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=G3(t,n,r);if(!o)return s;const{selectedVariableDeclaration:a,func:c}=o,l=[],_=[];if(h3($3.kind,i)){const e=a||iF(c)&&HF(c.parent)?void 0:Wx(_a.Could_not_convert_to_named_function);e?_.push({...$3,notApplicableReason:e}):l.push($3)}if(h3(W3.kind,i)){const e=!a&&iF(c)?void 0:Wx(_a.Could_not_convert_to_anonymous_function);e?_.push({...W3,notApplicableReason:e}):l.push(W3)}if(h3(H3.kind,i)){const e=rF(c)?void 0:Wx(_a.Could_not_convert_to_arrow_function);e?_.push({...H3,notApplicableReason:e}):l.push(H3)}return[{name:U3,description:V3,actions:0===l.length&&e.preferences.provideRefactorNotApplicableReason?_:l}]}});var Y3={},Z3="Convert parameters to destructured object",e4=Wx(_a.Convert_parameters_to_destructured_object),t4={name:Z3,description:e4,kind:"refactor.rewrite.parameters.toDestructured"};function n4(e,t){const n=a7(e);if(n){const e=t.getContextualTypeForObjectLiteralElement(n),r=null==e?void 0:e.getSymbol();if(r&&!(6&ix(r)))return r}}function r4(e){const t=e.node;return mE(t.parent)||aE(t.parent)||iE(t.parent)||dE(t.parent)||vE(t.parent)||gE(t.parent)?t:void 0}function i4(e){if(_u(e.node.parent))return e.node}function o4(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 213:case 214:const e=et(n,j_);if(e&&e.expression===t)return e;break;case 211:const r=et(n,XD);if(r&&r.parent&&r.name===t){const e=et(r.parent,j_);if(e&&e.expression===r)return e}break;case 212:const i=et(n,QD);if(i&&i.parent&&i.argumentExpression===t){const e=et(i.parent,j_);if(e&&e.expression===i)return e}}}}function a4(e){if(e.node.parent){const t=e.node,n=t.parent;switch(n.kind){case 211:const e=et(n,XD);if(e&&e.expression===t)return e;break;case 212:const r=et(n,QD);if(r&&r.expression===t)return r}}}function s4(e){const t=e.node;if(2===UG(t)||ab(t.parent))return t}function c4(e,t,n){const r=WX(e,t),i=Gf(r);if(!function(e){const t=uc(e,Su);if(t){const e=uc(t,(e=>!Su(e)));return!!e&&o_(e)}return!1}(r))return!(i&&function(e,t){var n;if(!function(e,t){return function(e){if(p4(e))return e.length-1;return e.length}(e)>=1&&h(e,(e=>function(e,t){if(Bu(e)){const n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&VN(e.name)}(e,t)))}(e.parameters,t))return!1;switch(e.kind){case 262:return u4(e)&&_4(e,t);case 174:if(GD(e.parent)){const r=n4(e.name,t);return 1===(null==(n=null==r?void 0:r.declarations)?void 0:n.length)&&_4(e,t)}return _4(e,t);case 176:return XF(e.parent)?u4(e.parent)&&_4(e,t):d4(e.parent.parent)&&_4(e,t);case 218:case 219:return d4(e.parent)}return!1}(i,n)&&Qb(i,r))||i.body&&Qb(i.body,r)?void 0:i}function l4(e){return dD(e)&&(QF(e.parent)||wD(e.parent))}function _4(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function u4(e){if(!e.name){return!!lY(e,90)}return!0}function d4(e){return HF(e)&&of(e)&&VN(e.name)&&!e.type}function p4(e){return e.length>0&&hX(e[0].name)}function f4(e){return p4(e)&&(e=ZC.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function m4(e,t){const n=f4(e.parameters),r=Bu(ye(n)),i=D(r?t.slice(0,n.length-1):t,((e,t)=>{const r=h4(n[t]),i=(o=r,VN(a=e)&&qh(a)===o?ZC.createShorthandPropertyAssignment(o):ZC.createPropertyAssignment(o,a));var o,a;return tZ(i.name),zE(i)&&tZ(i.initializer),iZ(e,i),i}));if(r&&t.length>=n.length){const e=t.slice(n.length-1),r=ZC.createPropertyAssignment(h4(ye(n)),ZC.createArrayLiteralExpression(e));i.push(r)}return ZC.createObjectLiteralExpression(i,!1)}function g4(e,t,n){const r=t.getTypeChecker(),i=f4(e.parameters),o=D(i,(function(e){const t=ZC.createBindingElement(void 0,void 0,h4(e),Bu(e)&&u(e)?ZC.createArrayLiteralExpression():e.initializer);tZ(t),e.initializer&&t.initializer&&iZ(e.initializer,t.initializer);return t})),a=ZC.createObjectBindingPattern(o),s=function(e){const t=D(e,_);return aw(ZC.createTypeLiteralNode(t),1)}(i);let c;h(i,u)&&(c=ZC.createObjectLiteralExpression());const l=ZC.createParameterDeclaration(void 0,void 0,a,void 0,s,c);if(p4(e.parameters)){const t=e.parameters[0],n=ZC.createParameterDeclaration(void 0,void 0,t.name,void 0,t.type);return tZ(n.name),iZ(t.name,n.name),t.type&&(tZ(n.type),iZ(t.type,n.type)),ZC.createNodeArray([n,l])}return ZC.createNodeArray([l]);function _(e){let i=e.type;var o;i||!e.initializer&&!Bu(e)||(o=e,i=kZ(r.getTypeAtLocation(o),o,t,n));const a=ZC.createPropertySignature(void 0,h4(e),u(e)?ZC.createToken(58):e.questionToken,i);return tZ(a),iZ(e.name,a.name),e.type&&a.type&&iZ(e.type,a.type),a}function u(e){if(Bu(e)){const t=r.getTypeAtLocation(e);return!r.isTupleType(t)}return r.isOptionalParameter(e)}}function h4(e){return qh(e.name)}c6(Z3,{kinds:[t4.kind],getEditsForAction:function(e,t){_n.assert(t===Z3,"Unexpected action name");const{file:n,startPosition:r,program:i,cancellationToken:o,host:a}=e,s=c4(n,r,i.getTypeChecker());if(!s||!o)return;const c=function(e,t,n){const r=function(e){switch(e.kind){case 262:if(e.name)return[e.name];return[_n.checkDefined(lY(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:const t=_n.checkDefined(AX(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");if(231===e.parent.kind){return[e.parent.parent.name,t]}return[t];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return _n.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}(e),i=mD(e)?function(e){switch(e.parent.kind){case 263:const t=e.parent;if(t.name)return[t.name];return[_n.checkDefined(lY(t,90),"Nameless class declaration should be a default export")];case 231: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=>wce.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=D(r,_),c=D(i,_),l=mD(e),u=D(r,(e=>n4(e,a)));for(const r of t){if(r.kind===wce.EntryKind.Span){o.valid=!1;continue}if(k(u,_(r.node))){if(l4(r.node.parent)){o.signature=r.node.parent;continue}const e=o4(r);if(e){o.functionCalls.push(e);continue}}const t=n4(r.node,a);if(t&&k(u,t)){const e=i4(r);if(e){o.declarations.push(e);continue}}if(k(s,_(r.node))||$G(r.node)){if(r4(r))continue;const e=i4(r);if(e){o.declarations.push(e);continue}const t=o4(r);if(t){o.functionCalls.push(t);continue}}if(l&&k(c,_(r.node))){if(r4(r))continue;const t=i4(r);if(t){o.declarations.push(t);continue}const i=a4(r);if(i){n.accessExpressions.push(i);continue}if(XF(e.parent)){const e=s4(r);if(e){n.typeUsages.push(e);continue}}}o.valid=!1}return o}function _(e){const t=a.getSymbolAtLocation(e);return t&&WY(t,a)}}(s,i,o);if(c.valid){const t=Kue.ChangeTracker.with(e,(e=>function(e,t,n,r,i,o){const a=o.signature,s=D(g4(i,t,n),(e=>XY(e)));if(a){l(a,D(g4(a,t,n),(e=>XY(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=XY(m4(i,e.arguments),!0);r.replaceNodeRange(yd(e),me(e.arguments),ye(e.arguments),t,{leadingTriviaOption:Kue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Kue.TrailingTriviaOption.Include})}function l(t,n){r.replaceNodeRangeWithNodes(e,me(t.parameters),ye(t.parameters),n,{joiner:", ",indentation:0,leadingTriviaOption:Kue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Kue.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 c4(t,n,e.program.getTypeChecker())?[{name:Z3,description:e4,actions:[t4]}]:s}});var y4={},v4="Convert to template string",b4=Wx(_a.Convert_to_template_string),x4={name:v4,description:b4,kind:"refactor.rewrite.string"};function k4(e,t){const n=$X(e,t),r=T4(n);return!C4(r).isValidConcatenation&&nF(r.parent)&&uF(r.parent.parent)?r.parent.parent:n}function S4(e,t){const n=T4(t),r=e.file,i=function({nodes:e,operators:t},n){const r=w4(t,n),i=N4(e,n,r),[o,a,s,c]=F4(0,e);if(o===e.length){const e=ZC.createNoSubstitutionTemplateLiteral(a,s);return i(c,e),e}const l=[],_=ZC.createTemplateHead(a,s);i(c,_);for(let t=o;t<e.length;t++){const n=P4(e[t]);r(t,n);const[o,a,s,c]=F4(t+1,e);t=o-1;const _=t===e.length-1;if(pF(n)){const e=D(n.templateSpans,((e,t)=>{E4(e);const r=t===n.templateSpans.length-1,i=e.literal.text+(r?a:""),o=D4(e.literal)+(r?s:"");return ZC.createTemplateSpan(e.expression,_&&r?ZC.createTemplateTail(i,o):ZC.createTemplateMiddle(i,o))}));l.push(...e)}else{const e=_?ZC.createTemplateTail(a,s):ZC.createTemplateMiddle(a,s);i(c,e),l.push(ZC.createTemplateSpan(n,e))}}return ZC.createTemplateExpression(_,l)}(C4(n),r),o=us(r.text,n.end);if(o){const t=o[o.length-1],a={pos:o[0].pos,end:t.end};return Kue.ChangeTracker.with(e,(e=>{e.deleteRange(r,a),e.replaceNode(r,n,i)}))}return Kue.ChangeTracker.with(e,(e=>e.replaceNode(r,n,i)))}function T4(e){return uc(e.parent,(e=>{switch(e.kind){case 211:case 212:return!1;case 228:case 226:return!(uF(e.parent)&&(t=e.parent,64!==t.operatorToken.kind&&65!==t.operatorToken.kind));default:return"quit"}var t}))||e}function C4(e){const t=e=>{if(!uF(e))return{nodes:[e],operators:[],validOperators:!0,hasString:NN(e)||EN(e)};const{nodes:n,operators:r,hasString:i,validOperators:o}=t(e.left);if(!(i||NN(e.right)||pF(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}}c6(v4,{kinds:[x4.kind],getEditsForAction:function(e,t){const{file:n,startPosition:r}=e,i=k4(n,r);if(t===b4)return{edits:S4(e,i)};return _n.fail("invalid action")},getAvailableActions:function(e){const{file:t,startPosition:n}=e,r=T4(k4(t,n)),i=NN(r),o={name:v4,description:b4,actions:[]};if(i&&"invoked"!==e.triggerReason)return s;if(bm(r)&&(i||uF(r)&&C4(r).isValidConcatenation))return o.actions.push(x4),[o];if(e.preferences.provideRefactorNotApplicableReason)return o.actions.push({...x4,notApplicableReason:Wx(_a.Can_only_convert_string_concatenations_and_string_literals)}),[o];return s}});var w4=(e,t)=>(n,r)=>{n<e.length&&_Z(e[n],r,t,3,!1)},N4=(e,t,n)=>(r,i)=>{for(;r.length>0;){const o=r.shift();_Z(e[o],i,t,3,!1),n(o,i)}};function D4(e){const t=PN(e)||AN(e)?-2:-1;return Gd(e).slice(1,t)}function F4(e,t){const n=[];let r="",i="";for(;e<t.length;){const o=t[e];if(!ju(o)){if(pF(o)){r+=o.head.text,i+=D4(o.head);break}break}r+=o.text,i+=Gd(o).slice(1,-1).replace(/\\.|[$`]/g,(e=>"\\"===e[0]?e:"\\"+e)),n.push(e),e++}return[e,r,i,n]}function E4(e){const t=e.getSourceFile();_Z(e,e.expression,t,3,!1),uZ(e.expression,e.expression,t,3,!1)}function P4(e){return nF(e)&&(E4(e),e=e.expression),e}var A4={},I4="Convert to optional chain expression",O4=Wx(_a.Convert_to_optional_chain_expression),L4={name:I4,description:O4,kind:"refactor.rewrite.expression.optionalChain"};function j4(e){return uF(e)||dF(e)}function R4(e){return j4(e)||function(e){return PF(e)||JF(e)||FF(e)}(e)}function M4(e,t=!0){const{file:n,program:r}=e,i=WZ(e),o=0===i.length;if(o&&!t)return;const a=$X(n,i.start),s=GX(n,i.start+i.length),c=$s(a.pos,s&&s.end>=a.pos?s.getEnd():a.getEnd()),l=o?function(e){for(;e.parent;){if(R4(e)&&!R4(e.parent))return e;e=e.parent}return}(a):function(e,t){for(;e.parent;){if(R4(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}return}(a,c),_=l&&R4(l)?function(e){if(j4(e))return e;if(FF(e)){const t=Ag(e),n=null==t?void 0:t.initializer;return n&&j4(n)?n:void 0}return e.expression&&j4(e.expression)?e.expression:void 0}(l):void 0;if(!_)return{error:Wx(_a.Could_not_find_convertible_access_expression)};const u=r.getTypeChecker();return dF(_)?function(e,t){const n=e.condition,r=q4(e.whenTrue);if(!r||t.isNullableType(t.getTypeAtLocation(r)))return{error:Wx(_a.Could_not_find_convertible_access_expression)};if((XD(n)||VN(n))&&J4(n,r.expression))return{finalExpression:r,occurrences:[n],expression:e};if(uF(n)){const t=B4(r.expression,n);return t?{finalExpression:r,occurrences:t,expression:e}:{error:Wx(_a.Could_not_find_matching_access_expressions)}}}(_,u):function(e){if(56!==e.operatorToken.kind)return{error:Wx(_a.Can_only_convert_logical_AND_access_chains)};const t=q4(e.right);if(!t)return{error:Wx(_a.Could_not_find_convertible_access_expression)};const n=B4(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:Wx(_a.Could_not_find_matching_access_expressions)}}(_)}function B4(e,t){const n=[];for(;uF(t)&&56===t.operatorToken.kind;){const r=J4(ah(e),ah(t.right));if(!r)break;n.push(r),e=r,t=t.left}const r=J4(e,t);return r&&n.push(r),n.length>0?n:void 0}function J4(e,t){if(VN(t)||XD(t)||QD(t))return function(e,t){for(;(YD(e)||XD(e)||QD(e))&&z4(e)!==z4(t);)e=e.expression;for(;XD(e)&&XD(t)||QD(e)&&QD(t);){if(z4(e)!==z4(t))return!1;e=e.expression,t=t.expression}return VN(e)&&VN(t)&&e.getText()===t.getText()}(e,t)?t:void 0}function z4(e){return VN(e)||jh(e)?e.getText():XD(e)?z4(e.name):QD(e)?z4(e.argumentExpression):void 0}function q4(e){return uF(e=ah(e))?q4(e.left):(XD(e)||QD(e)||YD(e))&&!hl(e)?e:void 0}function U4(e,t,n){if(XD(t)||QD(t)||YD(t)){const r=U4(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(),YD(t))return o?ZC.createCallChain(r,ZC.createToken(29),t.typeArguments,t.arguments):ZC.createCallChain(r,t.questionDotToken,t.typeArguments,t.arguments);if(XD(t))return o?ZC.createPropertyAccessChain(r,ZC.createToken(29),t.name):ZC.createPropertyAccessChain(r,t.questionDotToken,t.name);if(QD(t))return o?ZC.createElementAccessChain(r,ZC.createToken(29),t.argumentExpression):ZC.createElementAccessChain(r,t.questionDotToken,t.argumentExpression)}return t}c6(I4,{kinds:[L4.kind],getEditsForAction:function(e,t){const n=M4(e);_n.assert(n&&!g3(n),"Expected applicable refactor info");return{edits:Kue.ChangeTracker.with(e,(t=>function(e,t,n,r){const{finalExpression:i,occurrences:o,expression:a}=r,s=o[o.length-1],c=U4(t,i,o);c&&(XD(c)||QD(c)||YD(c))&&(uF(a)?n.replaceNodeRange(e,s,i,c):dF(a)&&n.replaceNode(e,a,ZC.createBinaryExpression(c,ZC.createToken(61),a.whenFalse)))}(e.file,e.program.getTypeChecker(),t,n))),renameFilename:void 0,renameLocation:void 0}},getAvailableActions:function(e){const t=M4(e,"invoked"===e.triggerReason);if(!t)return s;if(!g3(t))return[{name:I4,description:O4,actions:[L4]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:I4,description:O4,actions:[{...L4,notApplicableReason:t.error}]}];return s}});var V4={};n(V4,{Messages:()=>W4,RangeFacts:()=>Q4,getRangeToExtract:()=>Y4,getRefactorActionsToExtractSymbol:()=>G4,getRefactorEditsToExtractSymbol:()=>X4});var W4,$4="Extract Symbol",H4={name:"Extract Constant",description:Wx(_a.Extract_constant),kind:"refactor.extract.constant"},K4={name:"Extract Function",description:Wx(_a.Extract_function),kind:"refactor.extract.function"};function G4(e){const t=e.kind,n=Y4(e.file,WZ(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 h3(K4.kind,t)&&r.push({name:$4,description:K4.description,actions:[{...K4,notApplicableReason:m(n.errors)}]}),h3(H4.kind,t)&&r.push({name:$4,description:H4.description,actions:[{...H4,notApplicableReason:m(n.errors)}]}),r}const{affectedTextRange:i,extractions:o}=function(e,t){const{scopes:n,affectedTextRange:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=t8(e,t),a=n.map(((e,t)=>{const n=function(e){return o_(e)?"inner function":u_(e)?"method":"function"}(e),r=function(e){return u_(e)?"readonly field":"constant"}(e),a=o_(e)?function(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:xZ;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:_n.assertNever(e,`Unexpected scope kind ${e.kind}`)}}(e):u_(e)?function(e){return 263===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 268===e.kind?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}(e);let s,c;return 1===a?(s=qx(Wx(_a.Extract_to_0_in_1_scope),[n,"global"]),c=qx(Wx(_a.Extract_to_0_in_1_scope),[r,"global"])):0===a?(s=qx(Wx(_a.Extract_to_0_in_1_scope),[n,"module"]),c=qx(Wx(_a.Extract_to_0_in_1_scope),[r,"module"])):(s=qx(Wx(_a.Extract_to_0_in_1),[n,a]),c=qx(Wx(_a.Extract_to_0_in_1),[r,a])),0!==t||u_(e)||(c=qx(Wx(_a.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(h3(K4.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:K4.kind,range:{start:{line:za(e.file,i.pos).line,offset:za(e.file,i.pos).character},end:{line:za(e.file,i.end).line,offset:za(e.file,i.end).character}}})):l||(l={description:t,name:`function_scope_${p}`,notApplicableReason:m(n.errors),kind:K4.kind})}if(h3(H4.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:H4.kind,range:{start:{line:za(e.file,i.pos).line,offset:za(e.file,i.pos).character},end:{line:za(e.file,i.end).line,offset:za(e.file,i.end).character}}})):d||(d={description:t,name:`constant_scope_${p}`,notApplicableReason:m(r.errors),kind:H4.kind})}p++}const f=[];return a.length?f.push({name:$4,description:Wx(_a.Extract_function),actions:a}):e.preferences.provideRefactorNotApplicableReason&&l&&f.push({name:$4,description:Wx(_a.Extract_function),actions:[l]}),_.length?f.push({name:$4,description:Wx(_a.Extract_constant),actions:_}):e.preferences.provideRefactorNotApplicableReason&&d&&f.push({name:$4,description:Wx(_a.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 X4(e,t){const n=Y4(e.file,WZ(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}}=t8(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(),_=vk(c.program.getCompilerOptions()),u=I7.createImportAdder(c.file,c.program,c.preferences,c.host),d=t.getSourceFile(),p=sZ(u_(t)?"newMethod":"newFunction",d),f=Em(t),m=ZC.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=I7.typeToAutoImportableTypeNode(l,u,n,t,_,1,8)}const i=ZC.createParameterDeclaration(void 0,void 0,n,void 0,r);h.push(i),2===e.usage&&(b||(b=[])).push(e),v.push(ZC.createIdentifier(n))}));const x=Ie(r.values(),(e=>({type:e,declaration:n8(e,c.startPosition)})));x.sort(r8);const k=0===x.length?void 0:R(x,(({declaration:e})=>e)),S=void 0!==k?k.map((e=>ZC.createTypeReferenceNode(e.name,void 0))):void 0;if(V_(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(DF(e)&&!o&&0===r.size)return{body:ZC.createBlock(e.statements,!0),returnValueProperty:void 0};let a,s=!1;const c=ZC.createNodeArray(DF(e)?e.statements.slice(0):[pu(e)?e:ZC.createReturnStatement(ah(e))]);if(o||r.size){const r=rJ(c,l,pu).slice();if(o&&!i&&pu(e)){const e=i8(t,n);1===e.length?r.push(ZC.createReturnStatement(e[0].name)):r.push(ZC.createReturnStatement(ZC.createObjectLiteralExpression(e)))}return{body:ZC.createBlock(r,!0),returnValueProperty:a}}return{body:ZC.createBlock(c,!0),returnValueProperty:void 0};function l(e){if(!s&&JF(e)&&o){const r=i8(t,n);return e.expression&&(a||(a="__return"),r.unshift(ZC.createPropertyAssignment(a,nJ(e.expression,l,V_)))),1===r.length?ZC.createReturnStatement(r[0].name):ZC.createReturnStatement(ZC.createObjectLiteralExpression(r))}{const t=s;s=s||o_(e)||u_(e);const n=r.get($B(e).toString()),i=n?XY(n):dJ(e,l,void 0);return s=t,i}}}(e,o,b,i,!!(1&a.facts));let w;tZ(T);const N=!!(16&a.facts);if(u_(t)){const e=f?[]:[ZC.createModifier(123)];32&a.facts&&e.push(ZC.createModifier(126)),4&a.facts&&e.push(ZC.createModifier(134)),w=ZC.createMethodDeclaration(e.length?e:void 0,2&a.facts?ZC.createToken(42):void 0,m,void 0,k,h,g,T)}else N&&h.unshift(ZC.createParameterDeclaration(void 0,void 0,"this",void 0,l.typeToTypeNode(l.getTypeAtLocation(a.thisNode),t,1,8),void 0)),w=ZC.createFunctionDeclaration(4&a.facts?[ZC.createToken(134)]:void 0,2&a.facts?ZC.createToken(42):void 0,m,k,h,g,T);const D=Kue.ChangeTracker.fromContext(c),F=function(e,t){return y(function(e){if(o_(e)){const t=e.body;if(DF(t))return t.statements}else{if(tE(e)||WE(e))return e.statements;if(u_(e))return e.members}return s}(t),(t=>t.pos>=e&&o_(t)&&!mD(t)))}((o8(a.range)?ye(a.range):a.range).end,t);F?D.insertNodeBefore(c.file,F,w,!0):D.insertNodeAtEndOfScope(c.file,t,w);u.writeFixes(D);const E=[],P=function(e,t,n){const r=ZC.createIdentifier(n);if(u_(e)){const n=32&t.facts?ZC.createIdentifier(e.name.text):ZC.createThis();return ZC.createPropertyAccessExpression(n,r)}return r}(t,a,p);N&&v.unshift(ZC.createIdentifier("this"));let A=ZC.createCallExpression(N?ZC.createPropertyAccessExpression(P,"call"):P,S,v);2&a.facts&&(A=ZC.createYieldExpression(ZC.createToken(42),A));4&a.facts&&(A=ZC.createAwaitExpression(A));s8(e)&&(A=ZC.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(ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(XY(e.name),void 0,XY(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(ZC.createBindingElement(void 0,void 0,XY(a.name)));const o=l.typeToTypeNode(l.getBaseTypeOfLiteralType(l.getTypeAtLocation(a)),t,1,8);n.push(ZC.createPropertySignature(void 0,a.symbol.name,void 0,o)),i=i||void 0!==a.type,r&=a.parent.flags}const a=i?ZC.createTypeLiteralNode(n):void 0;a&&ow(a,1),E.push(ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(ZC.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(ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(e.symbol.name,void 0,j(e.type))],t)))}C&&E.push(ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(C,void 0,j(g))],1)));const e=i8(o,b);C&&e.unshift(ZC.createShorthandPropertyAssignment(C)),1===e.length?(_n.assert(!C,"Shouldn't have returnValueProperty here"),E.push(ZC.createExpressionStatement(ZC.createAssignment(e[0].name,A))),1&a.facts&&E.push(ZC.createReturnStatement())):(E.push(ZC.createExpressionStatement(ZC.createAssignment(ZC.createObjectLiteralExpression(e),A))),C&&E.push(ZC.createReturnStatement(ZC.createIdentifier(C))))}else 1&a.facts?E.push(ZC.createReturnStatement(A)):o8(a.range)?E.push(ZC.createExpressionStatement(A)):E.push(A);o8(a.range)?D.replaceNodeRangeWithNodes(c.file,me(a.range),ye(a.range),E):D.replaceNodeWithNodes(c.file,a.range,E);const I=D.getChanges(),O=(o8(a.range)?me(a.range):a.range).getSourceFile().fileName,L=cZ(I,O,p,!1);return{renameFilename:O,renameLocation:L,edits:I};function j(e){if(void 0===e)return;const t=XY(e);let n=t;for(;jD(n);)n=n.type;return AD(n)&&y(n.types,(e=>157===e.kind))?t:ZC.createUnionTypeNode([t,ZC.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}}=t8(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=y3(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($B(e).toString());return r?XY(r):dJ(e,n,void 0)}}(ah(e),n);({variableType:l,initializer:_}=m(l,_)),tZ(_);const u=Kue.ChangeTracker.fromContext(i);if(u_(t)){_n.assert(!c,"Cannot extract to a JS class");const n=[];n.push(ZC.createModifier(123)),32&r&&n.push(ZC.createModifier(126)),n.push(ZC.createModifier(148));const o=ZC.createPropertyDeclaration(n,s,void 0,l,_);let a=ZC.createPropertyAccessExpression(32&r?ZC.createIdentifier(t.name.getText()):ZC.createThis(),ZC.createIdentifier(s));s8(e)&&(a=ZC.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&&!uD(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=ZC.createVariableDeclaration(s,void 0,l,_),r=function(e,t){let n;for(;void 0!==e&&e!==t;){if(HF(e)&&e.initializer===n&&KF(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=ZC.createIdentifier(s);u.replaceNode(i.file,e,t)}else if(244===e.parent.kind&&t===uc(e,e8)){const t=ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([n],2));u.replaceNode(i.file,e.parent,t)}else{const r=ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([n],2)),o=function(e,t){let n;_n.assert(!u_(t));for(let r=e;r!==t;r=r.parent)e8(r)&&(n=r);for(let r=(n||e).parent;;r=r.parent){if(_0(r)){let t;for(const n of r.statements){if(n.pos>e.pos)break;t=n}return!t&&RE(r)?(_n.assert(qF(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),244===e.parent.kind)u.delete(i.file,e.parent);else{let t=ZC.createIdentifier(s);s8(e)&&(t=ZC.createJsxExpression(void 0,t)),u.replaceNode(i.file,e,t)}}}const d=u.getChanges(),p=e.getSourceFile().fileName,f=cZ(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(!rF(r)&&!iF(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(ZC.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,iF(r))r=ZC.updateArrowFunction(r,lI(e)?Dc(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||VN(n.name)&&"this"!==n.name.escapedText){const n=o.getTypeOfSymbolAtLocation(a.thisParameter,e);s.splice(0,0,ZC.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(n,t,1,8)))}}r=ZC.updateFunctionExpression(r,lI(e)?Dc(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}}}(V_(i)?i:i.statements[0].expression,r[n],o[n],e.facts,t)}(n,e,t)}_n.fail("Unrecognized action name")}c6($4,{kinds:[H4.kind,K4.kind],getEditsForAction:X4,getAvailableActions:G4}),(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")})(W4||(W4={}));var Q4=(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))(Q4||{});function Y4(e,t,n=!0){const{length:r}=t;if(0===r&&!n)return{errors:[Xx(e,t.start,r,W4.cannotExtractEmpty)]};const i=0===r&&n,o=KX(e,t.start),a=GX(e,Fs(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 uc(e,(e=>e.parent&&a8(e)&&!uF(e.parent)))}(o):sY(o,e,s),l=i?c:sY(a,e,s);let _,u=0;if(!c||!l)return{errors:[Xx(e,t.start,r,W4.cannotExtractRange)]};if(16777216&c.flags)return{errors:[Xx(e,t.start,r,W4.cannotExtractJSDoc)]};if(c.parent!==l.parent)return{errors:[Xx(e,t.start,r,W4.cannotExtractRange)]};if(c!==l){if(!_0(c.parent))return{errors:[Xx(e,t.start,r,W4.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:[Xx(e,t.start,r,W4.cannotExtractRange)]}}if(JF(c)&&!c.expression)return{errors:[Xx(e,t.start,r,W4.cannotExtractRange)]};const d=function(e){if(JF(e)){if(e.expression)return e.expression}else if(FF(e)||KF(e)){const t=FF(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(HF(e)&&e.initializer)return e.initializer;return e}(c),p=function(e){if(VN(PF(e)?e.expression:e))return[Rp(e,W4.cannotExtractIdentifier)];return}(d)||f(d);return p?{errors:p}:{targetRange:{range:Z4(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(!QS(e.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!(pu(e)||bm(e)&&a8(e)||c8(e)))return[Rp(e,W4.statementOrExpressionExpected)];if(33554432&e.flags)return[Rp(e,W4.cannotExtractAmbientBlock)];const i=Xf(e);let o;i&&function(e,t){let n=e;for(;n!==t;){if(172===n.kind){Fv(n)&&(u|=32);break}if(169===n.kind){176===Kf(n).kind&&(u|=32);break}174===n.kind&&Fv(n)&&(u|=32),n=n.parent}}(e,i);let a,s=4;if(function e(n){if(o)return!0;if(_u(n)){if(Dv(260===n.kind?n.parent.parent:n,32))return(o||(o=[])).push(Rp(n,W4.cannotExtractExportedEntity)),!0}switch(n.kind){case 272:return(o||(o=[])).push(Rp(n,W4.cannotExtractImport)),!0;case 277:return(o||(o=[])).push(Rp(n,W4.cannotExtractExportedEntity)),!0;case 108:if(213===n.parent.kind){const e=Xf(n);if(void 0===e||e.pos<t.start||e.end>=t.start+t.length)return(o||(o=[])).push(Rp(n,W4.cannotExtractSuper)),!0}else u|=8,_=n;break;case 219:RI(n,(function e(t){if(hX(t))u|=8,_=n;else{if(u_(t)||r_(t)&&!iF(t))return!1;RI(t,e)}}));case 263:case 262:WE(n.parent)&&void 0===n.parent.externalModuleIndicator&&(o||(o=[])).push(Rp(n,W4.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const r=s;switch(n.kind){case 245:s&=-5;break;case 258:s=0;break;case 241:n.parent&&258===n.parent.kind&&n.parent.finallyBlock===n&&(s=4);break;case 297:case 296:s|=1;break;default:$_(n,!1)&&(s|=3)}switch(n.kind){case 197:case 110:u|=8,_=n;break;case 256:{const t=n.label;(a||(a=[])).push(t.escapedText),RI(n,e),a.pop();break}case 252:case 251:{const e=n.label;e?k(a,e.escapedText)||(o||(o=[])).push(Rp(n,W4.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):s&(252===n.kind?1:2)||(o||(o=[])).push(Rp(n,W4.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:u|=4;break;case 229:u|=2;break;case 253:4&s?u|=1:(o||(o=[])).push(Rp(n,W4.cannotExtractRangeContainingConditionalReturnStatement));break;default:RI(n,e)}s=r}(e),8&u){const t=em(e,!1,!1);(262===t.kind||174===t.kind&&210===t.parent.kind||218===t.kind)&&(u|=16)}return o}}function Z4(e){return pu(e)?[e]:bm(e)?PF(e.parent)?[e.parent]:e:c8(e)?e:void 0}function e8(e){return iF(e)?Z_(e.body):o_(e)||WE(e)||tE(e)||u_(e)}function t8(e,t){const{file:n}=t,r=function(e){let t=o8(e.range)?me(e.range):e.range;if(8&e.facts&&!(16&e.facts)){const e=Xf(t);if(e){const n=uc(t,o_);return n?[n,e]:[e]}}const n=[];for(;;)if(t=t.parent,169===t.kind&&(t=uc(t,(e=>o_(e))).parent),e8(t)&&(n.push(t),307===t.kind))return n}(e),i=function(e,t){return o8(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=o8(e.range)?1===e.range.length&&PF(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=Xx(r,n,i-n,W4.expressionExpected)}else 147456&i.getTypeAtLocation(m).flags&&(g=Rp(m,W4.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),u_(e)&&Em(e)&&t.push(Rp(e,W4.cannotExtractToJSClass)),iF(e)&&!DF(e.body)&&t.push(Rp(e,W4.cannotExtractToExpressionArrowFunction)),_.push(t)}const h=new Map,v=o8(e.range)?ZC.createBlock(e.range):e.range,b=o8(e.range)?me(e.range):e.range,x=k(b);if(T(v),x&&!o8(e.range)&&!AE(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<t.length;r=r.parent)if(r===t[n]&&(e.forEach(((e,t)=>{s[n].typeParameterUsages.set(t,e)})),n++),bp(r))for(const t of _l(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){RI(vp(t[0],t[0].parent)?t[0]:Fp(t[0]),N)}for(let n=0;n<t.length;n++){const r=s[n];if(n>0&&(r.usages.size>0||r.typeParameterUsages.size>0)){const t=o8(e.range)?e.range[0]:e.range;_[n].push(Rp(t,W4.cannotAccessVariablesFromNestedScopes))}16&e.facts&&u_(t[n])&&l[n].push(Rp(e.thisNode,W4.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(o8(e.range)||0===p.length,"No variable declarations expected if something was extracted"),o&&!o8(e.range)){const t=Rp(e.range,W4.cannotWriteInExpression);l[n].push(t),_[n].push(t)}else if(i&&n>0){const e=Rp(i,W4.cannotExtractReadonlyPropertyInitializerOutsideConstructor);l[n].push(e),_[n].push(e)}else if(f){const e=Rp(f,W4.cannotExtractExportedEntity);l[n].push(e),_[n].push(e)}}return{target:v,usagesPerScope:s,functionErrorsPerScope:l,constantErrorsPerScope:_,exposedVariableDeclarations:p};function k(e){return!!uc(e,(e=>bp(e)&&0!==_l(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(_u(e)&&e.symbol&&u.push(e),ib(e))T(e.left,2),T(e.right);else if(q_(e))T(e.operand,2);else if(XD(e)||QD(e))RI(e,T);else if(VN(e)){if(!e.parent)return;if(oD(e.parent)&&e!==e.parent.left)return;if(XD(e.parent)&&e!==e.parent.expression)return;C(e,t,Cf(e))}else RI(e,T)}function C(e,n,r){const i=w(e,n,r);if(i)for(let n=0;n<t.length;n++){const t=c[n].get(i);t&&s[n].substitutions.set($B(e).toString(),t)}}function w(o,a,u){const d=D(o);if(!d)return;const p=HB(d).toString(),f=h.get(p);if(f&&f>=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&&!SX(n,g.getStart(),g.end)){if(2&e.facts&&2===a){const e=Rp(o,W4.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const t of l)t.push(e);for(const t of _)t.push(e)}for(let e=0;e<t.length;e++){const n=t[e];if(i.resolveName(d.name,n,d.flags,!1)!==d&&!c[e].has(p)){const t=F(d.exportSymbol||d,n,u);if(t)c[e].set(p,t);else if(u){if(!(262144&d.flags)){const t=Rp(o,W4.typeWillNotBeVisibleInTheNewScope);l[e].push(t),_[e].push(t)}}else s[e].usages.set(o.text,{usage:a,symbol:d,node:o})}}return p}}function N(t){if(t===e.range||o8(e.range)&&e.range.includes(t))return;const n=VN(t)?D(t):i.getSymbolAtLocation(t);if(n){const e=y(u,(e=>e.symbol===n));if(e)if(HF(e)){const t=e.symbol.id.toString();d.has(t)||(p.push(e),d.set(t,!0))}else f=f||e}RI(t,N)}function D(e){return e.parent&&qE(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 ZC.createIdentifier(e.name);const i=F(e.parent,t,n);return void 0!==i?n?ZC.createQualifiedName(i,ZC.createIdentifier(e.name)):ZC.createPropertyAccessExpression(i,e.name):void 0}}(e,r,i,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:r,affectedTextRange:i,readsAndWrites:o}}function n8(e,t){let n;const r=e.symbol;if(r&&r.declarations)for(const e of r.declarations)(void 0===n||e.pos<n.pos)&&e.pos<t&&(n=e);return n}function r8({type:e,declaration:t},{type:n,declaration:r}){return At(t,r,"pos",yt)||Tt(e.symbol?e.symbol.getName():"",n.symbol?n.symbol.getName():"")||yt(e.id,n.id)}function i8(e,t){const n=D(e,(e=>ZC.createShorthandPropertyAssignment(e.symbol.name))),r=D(t,(e=>ZC.createShorthandPropertyAssignment(e.symbol.name)));return void 0===n?r:void 0===r?n:n.concat(r)}function o8(e){return Xe(e)}function a8(e){const{parent:t}=e;if(306===t.kind)return!1;switch(e.kind){case 11:return 272!==t.kind&&276!==t.kind;case 230:case 206:case 208:return!1;case 80:return 208!==t.kind&&276!==t.kind&&281!==t.kind}return!0}function s8(e){return c8(e)||(CE(e)||wE(e)||FE(e))&&(CE(e.parent)||FE(e.parent))}function c8(e){return NN(e)&&e.parent&&AE(e.parent)}var l8={},_8="Generate 'get' and 'set' accessors",u8=Wx(_a.Generate_get_and_set_accessors),d8={name:_8,description:u8,kind:"refactor.rewrite.property.generateAccessors"};c6(_8,{kinds:[d8.kind],getEditsForAction:function(e,t){if(!e.endPosition)return;const n=I7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition);_n.assert(n&&!g3(n),"Expected applicable refactor info");const r=I7.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:(VN(o)?0:-1)+cZ(r,i,o.text,cD(n.declaration)),edits:r}},getAvailableActions(e){if(!e.endPosition)return s;const t=I7.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,"invoked"===e.triggerReason);return t?g3(t)?e.preferences.provideRefactorNotApplicableReason?[{name:_8,description:u8,actions:[{...d8,notApplicableReason:t.error}]}]:s:[{name:_8,description:u8,actions:[d8]}]:s}});var p8={},f8="Infer function return type",m8=Wx(_a.Infer_function_return_type),g8={name:f8,description:m8,kind:"refactor.rewrite.function.returnType"};function h8(e){if(Em(e.file)||!h3(g8.kind,e.kind))return;const t=uc(VX(e.file,e.startPosition),(e=>DF(e)||e.parent&&iF(e.parent)&&(39===e.kind||e.parent.body===e)?"quit":function(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}(e)));if(!t||!t.body||t.type)return{error:Wx(_a.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:Wx(_a.Could_not_determine_function_return_type)};const i=n.typeToTypeNode(r,t,1,8);return i?{declaration:t,returnTypeNode:i}:void 0}c6(f8,{kinds:[g8.kind],getEditsForAction:function(e){const t=h8(e);if(t&&!g3(t)){return{renameFilename:void 0,renameLocation:void 0,edits:Kue.ChangeTracker.with(e,(n=>function(e,t,n,r){const i=AX(n,22,e),o=iF(n)&&void 0===i,a=o?me(n.parameters):i;a&&(o&&(t.insertNodeBefore(e,a,ZC.createToken(21)),t.insertNodeAfter(e,a,ZC.createToken(22))),t.insertNodeAt(e,a.end,r,{prefix:": "}))}(e.file,n,t.declaration,t.returnTypeNode)))}}return},getAvailableActions:function(e){const t=h8(e);if(!t)return s;if(!g3(t))return[{name:f8,description:m8,actions:[g8]}];if(e.preferences.provideRefactorNotApplicableReason)return[{name:f8,description:m8,actions:[{...g8,notApplicableReason:t.error}]}];return s}});var y8=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(y8||{}),v8=(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))(v8||{}),b8=(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))(b8||{});function x8(e,t,n,r){const i=k8(e,t,n,r);_n.assert(i.spans.length%3==0);const o=i.spans,a=[];for(let e=0;e<o.length;e+=3)a.push({textSpan:Ws(o[e],o[e+1]),classificationType:o[e+2]});return a}function k8(e,t,n,r){return{spans:S8(e,n,r,t),endOfLineState:0}}function S8(e,t,n,r){const i=[];return e&&t&&function(e,t,n,r,i){const o=e.getTypeChecker();let a=!1;function s(c){switch(c.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:i.throwIfCancellationRequested()}if(!c||!Bs(n,c.pos,c.getFullWidth())||0===c.getFullWidth())return;const l=a;if((CE(c)||wE(c))&&(a=!0),LE(c)&&(a=!1),VN(c)&&!a&&!function(e){const t=e.parent;return t&&(aE(t)||mE(t)||dE(t))}(c)&&!RT(c.escapedText)){let n=o.getSymbolAtLocation(c);if(n){2097152&n.flags&&(n=o.getAliasedSymbol(n));let i=function(e,t){const n=e.getFlags();if(32&n)return 0;if(384&n)return 1;if(524288&n)return 5;if(64&n){if(2&t)return 2}else if(262144&n)return 4;let r=e.valueDeclaration||e.declarations&&e.declarations[0];r&&HD(r)&&(r=T8(r));return r&&w8.get(r.kind)}(n,UG(c));if(void 0!==i){let a=0;if(c.parent){(HD(c.parent)||w8.get(c.parent.kind)===i)&&c.parent.name===c&&(a=1)}6===i&&C8(c)&&(i=9),i=function(e,t,n){if(7===n||9===n||6===n){const r=e.getTypeAtLocation(t);if(r){const e=e=>e(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(;C8(e);)e=e.parent;return YD(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=ic(s),o=ac(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){HD(e)&&(e=T8(e));if(HF(e))return(!WE(e.parent.parent.parent)||JE(e.parent))&&e.getSourceFile()===t;if(GF(e))return!WE(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)}}}RI(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 T8(e){for(;;){if(!HD(e.parent.parent))return e.parent.parent;e=e.parent.parent}}function C8(e){return oD(e.parent)&&e.parent.right===e||XD(e.parent)&&e.parent.name===e}var w8=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]]),N8="0.8";function D8(e,t,n,r){const i=Dl(e)?new F8(e,t,n):80===e?new O8(80,t,n):81===e?new L8(81,t,n):new I8(e,t,n);return i.parent=r,i.flags=101441536&r.flags,i}var F8=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(!QS(this.pos)&&!QS(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return yd(this)}getStart(e,t){return this.assertHasRealPosition(),Jd(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=yd(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"),MP(this,e)??BP(this,e,function(e,t){const n=[];if(Tu(e))return e.forEachChild((e=>{n.push(e)})),n;JG.setText((t||e.getSourceFile()).text);let r=e.pos;const i=t=>{E8(n,r,t.pos,e),n.push(t),r=t.end},o=t=>{E8(n,r,t.pos,e),n.push(function(e,t){const n=D8(352,e.pos,e.end,t),r=[];let i=e.pos;for(const n of e)E8(r,i,n.pos,t),r.push(n),i=n.end;return E8(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),E8(n,r,e.end,e),JG.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<309||e.kind>351));return n.kind<166?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();const t=he(this.getChildren(e));if(t)return t.kind<166?t:t.getLastToken(e)}forEachChild(e,t){return RI(this,e,t)}};function E8(e,t,n,r){for(JG.resetTokenState(t);t<n;){const i=JG.scan(),o=JG.getTokenEnd();if(o<=n){if(80===i){if(GT(r))continue;_n.fail(`Did not expect ${_n.formatSyntaxKind(r.kind)} to have an Identifier in its trivia`)}e.push(D8(i,t,o,r))}if(t=o,1===i)break}}var P8=class{constructor(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}getSourceFile(){return yd(this)}getStart(e,t){return Jd(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return 1===this.kind&&this.jsDoc||s}getFirstToken(){}getLastToken(){}forEachChild(){}},A8=class{constructor(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}getFlags(){return this.flags}get name(){return yc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=s,!this.declarations&&Gu(this)&&this.links.target&&Gu(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=J8([t],e)}else this.documentationComment=J8(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Nu(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=s,this.contextualGetAccessorDocumentationComment=J8(C(this.declarations,Nu),t)),l(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(wu(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=s,this.contextualSetAccessorDocumentationComment=J8(C(this.declarations,wu),t)),l(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return void 0===this.tags&&(this.tags=s,this.tags=B8(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Nu(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=s,this.contextualGetAccessorTags=B8(C(this.declarations,Nu),t)),l(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(wu(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=s,this.contextualSetAccessorTags=B8(C(this.declarations,wu),t)),l(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},I8=class extends P8{constructor(e,t,n){super(e,t,n)}},O8=class extends P8{constructor(e,t,n){super(e,t,n)}get text(){return gc(this)}},L8=class extends P8{constructor(e,t,n){super(e,t,n)}get text(){return gc(this)}},j8=class{constructor(e,t){this.flags=t,this.checker=e}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(1048576&this.flags)}isIntersection(){return!!(2097152&this.flags)}isUnionOrIntersection(){return!!(3145728&this.flags)}isLiteral(){return!!(2432&this.flags)}isStringLiteral(){return!!(128&this.flags)}isNumberLiteral(){return!!(256&this.flags)}isTypeParameter(){return!!(262144&this.flags)}isClassOrInterface(){return!!(3&hx(this))}isClass(){return!!(1&hx(this))}isIndexType(){return!!(4194304&this.flags)}get typeArguments(){if(4&hx(this))return this.checker.getTypeArguments(this)}},R8=class{constructor(e,t){this.flags=t,this.checker=e}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){const t=this.checker.getParameterType(this,e);if(t.isIndexType()&&UT(t.type)){const e=t.type.getConstraint();if(e)return this.checker.getIndexType(e)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=J8(nn(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=B8(nn(this.declaration),this.checker))}};function M8(e){return ol(e).some((e=>"inheritDoc"===e.tagName.text||"inheritdoc"===e.tagName.text))}function B8(e,t){if(!e)return s;let n=jle.getJsDocTagsFromDeclarations(e,t);if(t&&(0===n.length||e.some(M8))){const r=new Set;for(const i of e){const e=z8(t,i,(e=>{var n;if(!r.has(e))return r.add(e),177===i.kind||178===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 J8(e,t){if(!e)return s;let n=jle.getJsDocCommentsFromDeclarations(e,t);if(t&&(0===n.length||e.some(M8))){const r=new Set;for(const i of e){const e=z8(t,i,(e=>{if(!r.has(e))return r.add(e),177===i.kind||178===i.kind?e.getContextualDocumentationComment(i,t):e.getDocumentationComment(t)}));e&&(n=0===n.length?e.slice():e.concat(MY(),n))}}return n}function z8(e,t,n){var r;const i=176===(null==(r=t.parent)?void 0:r.kind)?t.parent.parent:t.parent;if(!i)return;const o=Ev(t);return d(xh(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 q8=class extends F8{constructor(e,t,n){super(e,t,n)}update(e,t){return WI(this,e,t)}getLineAndCharacterOfPosition(e){return za(this,e)}getLineStarts(){return Ra(this)}getPositionOfLineAndCharacter(e,t,n){return ja(Ra(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 262:case 218:case 174:case 173: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)}RI(i,r);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(i),RI(i,r);break;case 169:if(!Dv(i,31))break;case 260:case 208:{const e=i;if(k_(e.name)){RI(e.name,r);break}e.initializer&&r(e.initializer)}case 306:case 172:case 171:t(i);break;case 278:const s=i;s.exportClause&&(yE(s.exportClause)?_(s.exportClause.elements,r):r(s.exportClause.name));break;case 272:const c=i.importClause;c&&(c.name&&t(c.name),c.namedBindings&&(274===c.namedBindings.kind?t(c.namedBindings):_(c.namedBindings.elements,r)));break;case 226:0!==tg(i)&&t(i);default:RI(i,r)}})),e;function t(t){const r=n(t);r&&e.add(r,t)}function n(e){const t=Tc(e);return t&&(aD(t)&&XD(t.expression)?t.expression.name.text:t_(t)?UQ(t):void 0)}}},U8=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(e=>e)}getLineAndCharacterOfPosition(e){return za(this,e)}};function V8(e){let t=!0;for(const n in e)if(Ne(e,n)&&!W8(n)){t=!1;break}if(t)return e;const n={};for(const t in e)if(Ne(e,t)){n[W8(t)?t:t.charAt(0).toLowerCase()+t.substr(1)]=e[t]}return n}function W8(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function $8(e){return e?D(e,(e=>e.text)).join(""):""}function H8(){return{target:1,jsx:1}}function K8(){return I7.getSupportedErrorCodes()}var G8=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 _=VY(e,this.host),u=this.host.getScriptVersion(e);let d;if(this.currentFileName!==e){d=Q8(e,l,{languageVersion:99,impliedNodeFormat:NV(Uo(e,this.host.getCurrentDirectory(),(null==(r=null==(n=(t=this.host).getCompilerHost)?void 0:n.call(t))?void 0:r.getCanonicalFileName)||Ry(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:fk(this.host.getCompilationSettings()),jsDocParsingMode:0},u,!0,_)}else if(this.currentFileVersion!==u){const e=l.getChangeRange(this.currentFileScriptSnapshot);d=Y8(this.currentSourceFile,l,u,e)}return d&&(this.currentFileVersion=u,this.currentFileName=e,this.currentFileScriptSnapshot=l,this.currentSourceFile=d),this.currentSourceFile}};function X8(e,t,n){e.version=n,e.scriptSnapshot=t}function Q8(e,t,n,r,i,o){const a=zI(e,JQ(t),n,i,o);return X8(a,t,r),a}function Y8(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=Fs(r.span)!==e.text.length?e.text.substr(Fs(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=WI(e,o,r,i);return X8(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 Q8(e.fileName,t,o,n,!0,e.scriptKind)}var Z8={isCancellationRequested:rt,throwIfCancellationRequested:nt},e7=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}},t7=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}},n7=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],r7=[...n7,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];function i7(e,t=q0(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 G8(e);let a,c,l=0;const u=e.getCancellationToken?new e7(e.getCancellationToken()):Z8,d=e.getCurrentDirectory();function p(t){e.log&&e.log(t)}Vx(null==(r=e.getLocalizedDiagnosticMessages)?void 0:r.bind(e));const f=jy(e),m=Vt(f),g=D1({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:1,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:()=>Ab(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=>Fb(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}=RU(S,(e=>Uo(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},N=t.getKeyForCompilationSettings(h);let D=new Set;if(CV(a,_,h,((t,n)=>e.getScriptVersion(n)),(e=>S.fileExists(e)),y,v,b,F,x))return S=void 0,k=void 0,void(D=void 0);return a=EV({rootNames:_,options:h,host:S,oldProgram:a,projectReferences:x}),S=void 0,k=void 0,D=void 0,g.clearCache(),void a.getTypeChecker();function F(t){const n=Uo(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=Uo(e,d,m),t.resolvedPath=t.path,t.originalFileName=t.fileName,UL(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,Uo(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=VY(n,e),_=e.getScriptVersion(n);if(!s){const o=a&&a.getSourceFileByPath(r);if(o){if(l===o.scriptKind||D.has(o.resolvedPath))return t.updateDocumentWithKey(n,r,e,N,c,_,l,i);t.releaseDocumentWithKey(o.resolvedPath,t.getKeyForCompilationSettings(a.getCompilerOptions()),o.scriptKind,o.impliedNodeFormat),D.add(o.resolvedPath)}}return t.acquireDocumentWithKey(n,r,e,N,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(Os(t,e))return;const n=uc(GX(e,Fs(t))||e,(e=>Ls(e,t))),r=[];return k(t,n,r),e.end===t.start+t.length&&r.push(e.endOfFileToken),V(r,WE)?void 0:r}function k(e,t,n){return!!function(e,t){const n=t.start+t.length;return e.pos<n&&e.end>t.start}(t,e)&&(Os(e,t)?(S(t,n),!0):_0(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):u_(t)?function(e,t,n){var r,i,o;const a=t=>qs(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&&!mC(e);)e=e.parent;t.push(e)}function T(e,t,n,r){y();const i=n&&n.use===wce.FindReferencesUse.Rename?a.getSourceFiles().filter((e=>!a.isSourceFileDefaultLibrary(e))):a.getSourceFiles();return wce.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,Uo(n,d,m)),packageName:t.packageName}):Promise.reject("Host does not implement `installPackage`");var n}function N(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}=N(r,t);let l=n||!1,_=Number.MAX_VALUE;const u=new Map,d=new RegExp(/\S/),p=aQ(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:aQ(a,d),f=p?"{/*":"/*",m=p?"*/}":"*/",g=p?"\\{\\/\\*":"\\/\\*",h=p?"\\*\\/\\}":"\\*\\/";for(;d<=t.end;){const e=uQ(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:_||!gY(c,d,-1===e?t.end:d+e),d=-1===e?t.end+1:d+e+m.length}}if(_||!l){2!==(null==(i=uQ(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;e<u.length-1;e++)c.substr(u[e]-m.length,m.length)!==m&&s.push({newText:m,span:{length:0,start:u[e]}}),c.substr(u[e],f.length)!==f&&s.push({newText:f,span:{length:0,start:u[e]}});s.length%2!=0&&s.push({newText:m,span:{length:0,start:u[u.length-1]}})}else for(const e of u){const t=e-m.length>0?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!cO(e.tagName,t.tagName)||CE(n)&&cO(e.tagName,n.openingElement.tagName)&&P(n)}function I({closingFragment:e,parent:t}){return!!(262144&e.flags)||FE(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:Sde.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(!Fk(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(uT(n,r,a)||!fT(n,r)||a.getCachedSemanticDiagnostics(n))return;const i=function(e,t){const n=[],r=Vs(t.map((e=>PQ(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=Vs(i.map((e=>$s(e.getFullStart(),e.getEnd()))));return{diagnostics:a.getSemanticDiagnostics(n,u,i).slice(),spans:o}},getSuggestionDiagnostics:function(e){return y(),A1(h(e),a,u)},getCompilerOptionsDiagnostics:function(){return y(),[...a.getOptionsDiagnostics(u),...a.getGlobalDiagnostics(u)]},getSyntacticClassifications:function(e,t){return B0(u,o.getCurrentSourceFile(e),t)},getSemanticClassifications:function(e,t,n){return y(),"2020"===(n||"original")?x8(a,u,h(e),t):I0(a.getTypeChecker(),u,h(e),a.getClassifiableNames(),t)},getEncodedSyntacticClassifications:function(e,t){return J0(u,o.getCurrentSourceFile(e),t)},getEncodedSemanticClassifications:function(e,t,n){return y(),"original"===(n||"original")?L0(a.getTypeChecker(),u,h(e),a.getClassifiableNames(),t):k8(a,u,h(e),t)},getCompletionsAtPosition:function(t,n,r=bG,i){const o={...r,includeCompletionsForModuleExports:r.includeCompletionsForModuleExports||r.includeExternalModuleExports,includeCompletionsWithInsertText:r.includeCompletionsWithInsertText||r.includeInsertTextCompletions};return y(),Tae.getCompletionsAtPosition(e,a,p,h(t),n,o,r.triggerCharacter,r.triggerKind,u,i&&Sde.getFormatContext(i,e),r.includeSymbol)},getCompletionEntryDetails:function(t,n,r,i,o,s=bG,c){return y(),Tae.getCompletionEntryDetails(a,p,h(t),n,{name:r,source:o,data:c},e,i&&Sde.getFormatContext(i,e),s,u)},getCompletionEntrySymbol:function(t,n,r,i,o=bG){return y(),Tae.getCompletionEntrySymbol(a,p,h(t),n,{name:r,source:i},e,o)},getSignatureHelpItems:function(e,t,{triggerReason:n}=bG){y();const r=h(e);return nue.getSignatureHelpItems(a,r,t,n,u)},getQuickInfoAtPosition:function(e,t,n){y();const r=h(e),i=VX(r,t);if(i===r)return;const o=a.getTypeChecker(),s=function(e){if(ZD(e.parent)&&e.pos===e.parent.pos)return e.parent.expression;if(FD(e.parent)&&e.pos===e.parent.pos)return e.parent;if(_f(e.parent)&&e.parent.name===e)return e.parent;if(jE(e.parent))return e.parent;return e}(i),c=function(e,t){const n=a7(e);if(n){const e=t.getContextualType(n.parent),r=e&&s7(n,t,e,!1);if(r&&1===r.length)return me(r)}return t.getSymbolAtLocation(e)}(s,o);if(!c||o.isUnknownSymbol(c)){const e=function(e,t,n){switch(t.kind){case 80:return!(16777216&t.flags&&!Em(t)&&(171===t.parent.kind&&t.parent.name===t||uc(t,(e=>169===e.kind))))&&(!aX(t)&&!sX(t)&&!kl(t.parent));case 211:case 166:return!uQ(e,n);case 110:case 197:case 108:case 202:return!0;case 236:return _f(t);default:return!1}}(r,s,t)?o.getTypeAtLocation(s):void 0;return e&&{kind:"",kindModifiers:"",textSpan:DQ(s,r),displayParts:o.runWithCancellationToken(u,(t=>JY(t,e,mX(s),void 0,n))),documentation:e.symbol?e.symbol.getDocumentationComment(o):void 0,tags:e.symbol?e.symbol.getJsDocTags(o):void 0}}const{symbolKind:l,displayParts:_,documentation:d,tags:p,canIncreaseVerbosityLevel:f}=o.runWithCancellationToken(u,(e=>Bue.getSymbolDisplayPartsDocumentationAndSymbolKind(e,c,r,mX(s),s,void 0,void 0,n)));return{kind:l,kindModifiers:Bue.getSymbolModifiers(o,c),textSpan:DQ(s,r),displayParts:_,documentation:d,tags:p,canIncreaseVerbosityLevel:f}},getDefinitionAtPosition:function(e,t,n,r){return y(),ple.getDefinitionAtPosition(a,h(e),t,n,r)},getDefinitionAndBoundSpan:function(e,t){return y(),ple.getDefinitionAndBoundSpan(a,h(e),t)},getImplementationAtPosition:function(e,t){return y(),wce.getImplementationsAtPosition(a,u,a.getSourceFiles(),h(e),t)},getTypeDefinitionAtPosition:function(e,t){return y(),ple.getTypeDefinitionAtPosition(a.getTypeChecker(),h(e),t)},getReferencesAtPosition:function(e,t){return y(),T(VX(h(e),t),t,{use:wce.FindReferencesUse.References},wce.toReferenceEntry)},findReferences:function(e,t){return y(),wce.findReferencedSymbols(a,u,a.getSourceFiles(),h(e),t)},getFileReferences:function(e){return y(),wce.Core.getReferencesForFileName(e,a,a.getSourceFiles()).map(wce.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 N0.getDocumentHighlights(a,u,o,t,i)},getNameOrDottedNameSpan:function(e,t,n){const r=o.getCurrentSourceFile(e),i=VX(r,t);if(i===r)return;switch(i.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let a=i;for(;;)if(lX(a)||cX(a))a=a.parent;else{if(!uX(a))break;if(267!==a.parent.parent.kind||a.parent.parent.body!==a.parent)break;a=a.parent.parent.name}return $s(a.getStart(),i.getEnd())},getBreakpointStatementAtPosition:function(e,t){const n=o.getCurrentSourceFile(e);return _7.spanInSourceFileAtLocation(n,t)},getNavigateToItems:function(e,t,n,r=!1,i=!1){return y(),e2(n?[h(n)]:a.getSourceFiles(),a.getTypeChecker(),u,e,t,r,i)},getRenameInfo:function(e,t,n){return y(),G_e.getRenameInfo(a,h(e),t,n||{})},getSmartSelectionRange:function(e,t){return Due.getSmartSelectionRange(t,o.getCurrentSourceFile(e))},findRenameLocations:function(e,t,n,r,i){y();const o=h(e),a=UX(VX(o,t));if(G_e.nodeIsEligibleForRename(a)){if(VN(a)&&(NE(a.parent)||DE(a.parent))&&Ey(a.escapedText)){const{openingElement:e,closingElement:t}=a.parent.parent;return[e,t].map((e=>{const t=DQ(e.tagName,o);return{fileName:o.fileName,textSpan:t,...wce.toContextSpan(t,o,e.parent)}}))}{const e=eY(o,i??bG),s="boolean"==typeof i?i:null==i?void 0:i.providePrefixAndSuffixTextForRename;return T(a,t,{findInStrings:n,findInComments:r,providePrefixAndSuffixTextForRename:s,use:wce.FindReferencesUse.Rename},((t,n,r)=>wce.toRenameLocation(t,n,r,s||!1,e)))}}},getNavigationBarItems:function(e){return b2(o.getCurrentSourceFile(e),u)},getNavigationTree:function(e){return x2(o.getCurrentSourceFile(e),u)},getOutliningSpans:function(e){const t=o.getCurrentSourceFile(e);return J_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="(?:"+D(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(!uQ(n,c))continue;let l;for(let n=0;n<t.length;n++)a[n+e]&&(l=t[n]);if(void 0===l)return _n.fail();if((o=r.charCodeAt(c+l.text.length))>=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=WX(n,t),i=r.getStart(n)===t?C.get(r.kind.toString()):void 0,a=i&&AX(r.parent,i,n);return a?[DQ(r,n),DQ(a,n)].sort(((e,t)=>e.start-t.start)):s},getIndentationAtPosition:function(e,t,n){let r=qn();const i=V8(n),a=o.getCurrentSourceFile(e);p("getIndentationAtPosition: getCurrentSourceFile: "+(qn()-r)),r=qn();const s=Sde.SmartIndenter.getIndentation(t,a,i);return p("getIndentationAtPosition: computeIndentation  : "+(qn()-r)),s},getFormattingEditsForRange:function(t,n,r,i){const a=o.getCurrentSourceFile(t);return Sde.formatSelection(n,r,a,Sde.getFormatContext(V8(i),e))},getFormattingEditsForDocument:function(t,n){return Sde.formatDocument(o.getCurrentSourceFile(t),Sde.getFormatContext(V8(n),e))},getFormattingEditsAfterKeystroke:function(t,n,r,i){const a=o.getCurrentSourceFile(t),s=Sde.getFormatContext(V8(i),e);if(!uQ(a,n))switch(r){case"{":return Sde.formatOnOpeningCurly(n,a,s);case"}":return Sde.formatOnClosingCurly(n,a,s);case";":return Sde.formatOnSemicolon(n,a,s);case"\n":return Sde.formatOnEnter(n,a,s)}return[]},getDocCommentTemplateAtPosition:function(t,n,r,i){const a=i?Sde.getFormatContext(i,e).options:void 0;return jle.getDocCommentTemplateAtPosition(RY(e,a),o.getCurrentSourceFile(t),n,r)},isValidBraceCompletionAtPosition:function(e,t,n){if(60===n)return!1;const r=o.getCurrentSourceFile(e);if(tQ(r,t))return!1;if(nQ(r,t))return 123===n;if(iQ(r,t))return!1;switch(n){case 39:case 34:case 96:return!uQ(r,t)}return!0},getJsxClosingTagAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=QX(t,n);if(!r)return;const i=32===r.kind&&NE(r.parent)?r.parent.parent:DN(r)&&CE(r.parent)?r.parent:void 0;if(i&&P(i))return{newText:`</${i.openingElement.tagName.getText(n)}>`};const a=32===r.kind&&EE(r.parent)?r.parent.parent:DN(r)&&FE(r.parent)?r.parent:void 0;return a&&I(a)?{newText:"</>"}:void 0},getLinkedEditingRangeAtPosition:function(e,t){const n=o.getCurrentSourceFile(e),r=QX(t,n);if(!r||307===r.parent.kind)return;const i="[a-zA-Z0-9:\\-\\._$]*";if(FE(r.parent.parent)){const e=r.parent.parent.openingFragment,o=r.parent.parent.closingFragment;if(hd(e)||hd(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=uc(r.parent,(e=>!(!NE(e)&&!DE(e))));if(!e)return;_n.assert(NE(e)||DE(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=Sde.getRangeOfEnclosingComment(r,t);return!i||n&&3!==i.kind?void 0:PQ(i)},getCodeFixesAtPosition:function(t,n,r,i,o,s=bG){y();const c=h(t),l=$s(n,r),_=Sde.getFormatContext(o,e);return A(X(i,ft,yt),(t=>(u.throwIfCancellationRequested(),I7.getFixes({errorCode:t,sourceFile:c,span:l,program:a,host:e,cancellationToken:u,formatContext:_,preferences:s}))))},getCombinedCodeFix:function(t,n,r,i=bG){y(),_n.assert("file"===t.type);const o=h(t.fileName),s=Sde.getFormatContext(r,e);return I7.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=bG){y(),_n.assert("file"===t.type);const i=h(t.fileName);if(hd(i))return s;const o=Sde.getFormatContext(n,e),c=t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":"All");return c_e.organizeImports(i,o,e,a,r,c)},getEditsForFileRename:function(t,n,r,i=bG){return $0(v(),t,n,e,Sde.getFormatContext(r,e),i,g)},getEmitOutput:function(t,n,r){y();const i=h(t),o=e.getCustomTransformers&&e.getCustomTransformers();return UV(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=yY(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)||wce.isDeclarationOfSymbol(r,i)){n.add(t),t.isDefinition=!0;const r=yY(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=VX(t,e.textSpan.start);return wce.Core.getAdjustedNode(n,{use:wce.FindReferencesUse.References})}},getApplicableRefactors:function(e,t,n=bG,r,i,o){y();const a=h(e);return a6.getApplicableRefactors(O(a,t,n,bG,r,i),o)},getEditsForRefactor:function(e,t,n,r,i,o=bG,a){y();const s=h(e);return a6.getEditsForRefactor(O(s,n,o,t),r,i,a)},getMoveToRefactoringFileSuggestions:function(t,n,r=bG){y();const i=h(t),o=_n.checkDefined(a.getSourceFiles()),s=eT(t),c=r3(O(i,n,r,bG)),l=i3(null==c?void 0:c.all),_=R(o,(e=>{const t=eT(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:n3(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=d7.resolveCallHierarchyDeclaration(a,VX(h(e),t));return n&&HZ(n,(e=>d7.createCallHierarchyItem(a,e)))},provideCallHierarchyIncomingCalls:function(e,t){y();const n=h(e),r=KZ(d7.resolveCallHierarchyDeclaration(a,0===t?n:VX(n,t)));return r?d7.getIncomingCalls(a,r,u):[]},provideCallHierarchyOutgoingCalls:function(e,t){y();const n=h(e),r=KZ(d7.resolveCallHierarchyDeclaration(a,0===t?n:VX(n,t)));return r?d7.getOutgoingCalls(a,r):[]},toggleLineComment:F,toggleMultilineComment:E,commentSelection:function(e,t){const n=o.getCurrentSourceFile(e),{firstLine:r,lastLine:i}=N(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+=aQ(n,i)?2:1);for(let t=i;t<=a;t++){const i=uQ(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=bG){y();const i=h(t);return Ple.provideInlayHints(function(t,n,r){return{file:t,program:v(),host:e,span:n,preferences:r,cancellationToken:u}}(i,n,r))},getSupportedCodeFixes:K8,preparePasteEditsForFile:function(e,t){return y(),Sfe.preparePasteEdits(h(e),t,a.getTypeChecker())},getPasteEdits:function(t,n){return y(),Cfe.pasteEditsProvider(h(t.targetFile),t.pastedText,t.pasteLocations,t.copiedFrom?{file:h(t.copiedFrom.file),range:t.copiedFrom.range}:void 0,e,t.preferences,Sde.getFormatContext(n,e),u)},mapCode:function(t,n,r,i,a){return n_e.mapCode(o.getCurrentSourceFile(t),n,r,e,Sde.getFormatContext(i,e),a)}};switch(i){case 0:break;case 1:n7.forEach((e=>L[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:r7.forEach((e=>L[e]=()=>{throw new Error(`LanguageService Operation: ${e} not allowed in LanguageServiceMode.Syntactic`)}));break;default:_n.assertNever(i)}return L}function o7(e){return e.nameTable||function(e){const t=e.nameTable=new Map;e.forEachChild((function e(n){if(VN(n)&&!sX(n)&&n.escapedText||jh(n)&&function(e){return lh(e)||283===e.parent.kind||function(e){return e&&e.parent&&212===e.parent.kind&&e.parent.argumentExpression===e}(e)||uh(e)}(n)){const e=Uh(n);t.set(e,void 0===t.get(e)?n.pos:-1)}else if(WN(n)){const e=n.escapedText;t.set(e,void 0===t.get(e)?n.pos:-1)}if(RI(n,e),Du(n))for(const t of n.jsDoc)RI(t,e)}))}(e),e.nameTable}function a7(e){const t=function(e){switch(e.kind){case 11:case 15:case 9:if(167===e.parent.kind)return Au(e.parent.parent)?e.parent.parent:void 0;case 80:return!Au(e.parent)||210!==e.parent.parent.kind&&292!==e.parent.parent.kind||e.parent.name!==e?void 0:e.parent}return}(e);return t&&(GD(t.parent)||IE(t.parent))?t:void 0}function s7(e,t,n,r){const i=UQ(e.name);if(!i)return s;if(!n.isUnion()){const e=n.getProperty(i);return e?[e]:s}const o=GD(e.parent)||IE(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 c7(e){if(co)return Ro(Fo(zo(co.getExecutingFilePath())),Ds(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}function l7(e,t,n){const r=[];n=Y1(n,r);const i=Xe(e)?e:[e],o=Lq(void 0,void 0,ZC,n,i,t,!0);return o.diagnostics=$(o.diagnostics,r),o}zx({getNodeConstructor:()=>F8,getTokenConstructor:()=>I8,getIdentifierConstructor:()=>O8,getPrivateIdentifierConstructor:()=>L8,getSourceFileConstructor:()=>q8,getSymbolConstructor:()=>A8,getTypeConstructor:()=>j8,getSignatureConstructor:()=>R8,getSourceMapSourceConstructor:()=>U8});var _7={};function u7(e,t){if(e.isDeclarationFile)return;let n=$X(e,t);const r=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>r){const t=QX(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=_I(t)?v(t.modifiers,lD):void 0;return $s(r?Qa(e.text,r.end):t.getStart(e),(n||t).getEnd())}function o(t,n){return i(t,XX(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(QX(t.pos,e))}function c(t){return l(XX(t,t.parent,e))}function l(t){if(t){const{parent:n}=t;switch(t.kind){case 243:return r(t.declarationList.declarations[0]);case 260:case 172:case 171:return r(t);case 169:return function e(t){if(k_(t.name))return f(t.name);if(function(e){return!!e.initializer||void 0!==e.dotDotDotToken||Dv(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 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:return function(e){if(!e.body)return;if(u(e))return i(e);return l(e.body)}(t);case 241:if(Mf(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 268:return d(t);case 299:return d(t.block);case 244:return i(t.expression);case 253:return i(t.getChildAt(0),t.expression);case 247:return o(t,t.expression);case 246:return l(t.statement);case 259:return i(t.getChildAt(0));case 245:return o(t,t.expression);case 256:return l(t.statement);case 252:case 251:return i(t.getChildAt(0),t.label);case 248: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 249:return o(t,t.expression);case 250:return p(t);case 255:return o(t,t.expression);case 296:case 297:return l(t.statements[0]);case 258:return d(t.tryBlock);case 257:case 277:return i(t,t.expression);case 271:return i(t,t.moduleReference);case 272:case 278:return i(t,t.moduleSpecifier);case 267:if(1!==jM(t))return;case 263:case 266:case 306:case 208:return i(t);case 254:return l(t.statement);case 170: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(;o<t.length&&r(t[o]);)o++;return $s(Qa(e.text,t[n].pos),t[o-1].end)}}return i(n)}(n.modifiers,t,lD);case 206:case 207:return f(t);case 264:case 265:return;case 27:case 1:return a(QX(t.pos,e));case 28:return s(t);case 19:return function(t){switch(t.parent.kind){case 266:const n=t.parent;return a(QX(t.pos,e,t.parent),n.members.length?n.members[0]:n.getLastToken(e));case 263:const r=t.parent;return a(QX(t.pos,e,t.parent),r.members.length?r.members[0]:r.getLastToken(e));case 269:return a(t.parent.parent,t.parent.clauses[0])}return l(t.parent)}(t);case 20:return function(e){switch(e.parent.kind){case 268:if(1!==jM(e.parent.parent))return;case 266:case 263:return i(e);case 241:if(Mf(e.parent))return i(e);case 299:return l(he(e.parent.statements));case 269:const t=he(e.parent.clauses);return t?l(he(t.statements)):void 0;case 206:const n=e.parent;return l(he(n.elements)||n);default:if(SQ(e.parent)){const t=e.parent;return i(he(t.properties)||t)}return l(e.parent)}}(t);case 24:return function(e){if(207===e.parent.kind){const t=e.parent;return i(he(t.elements)||t)}if(SQ(e.parent)){const t=e.parent;return i(he(t.elements)||t)}return l(e.parent)}(t);case 21:return function(e){if(246===e.parent.kind||213===e.parent.kind||214===e.parent.kind)return s(e);if(217===e.parent.kind)return c(e);return l(e.parent)}(t);case 22:return function(e){switch(e.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return s(e);default:return l(e.parent)}}(t);case 59:return function(e){if(r_(e.parent)||303===e.parent.kind||169===e.parent.kind)return s(e);return l(e.parent)}(t);case 32:case 30:return function(e){if(216===e.parent.kind)return c(e);return l(e.parent)}(t);case 117:return function(e){if(246===e.parent.kind)return o(e,e.parent.expression);return l(e.parent)}(t);case 93:case 85:case 98:return c(t);case 165:return function(e){if(250===e.parent.kind)return c(e);return l(e.parent)}(t);default:if(SQ(t))return m(t);if((80===t.kind||230===t.kind||303===t.kind||304===t.kind)&&SQ(n))return i(t);if(226===t.kind){const{left:e,operatorToken:n}=t;if(SQ(e))return m(e);if(64===n.kind&&SQ(t.parent))return i(t);if(28===n.kind)return l(e)}if(bm(t))switch(n.kind){case 246:return s(t);case 170:return l(t.parent);case 248:case 250:return i(t);case 226:if(28===t.parent.operatorToken.kind)return i(t);break;case 219:if(t.parent.body===t)return i(t)}switch(t.parent.kind){case 303:if(t.parent.name===t&&!SQ(t.parent.parent))return l(t.parent.initializer);break;case 216:if(t.parent.type===t)return c(t.parent.type);break;case 260:case 169:{const{initializer:e,type:n}=t.parent;if(e===t||n===t||tb(t.kind))return s(t);break}case 226:{const{left:e}=t.parent;if(SQ(e)&&t!==e)return s(t);break}default:if(r_(t.parent)&&t.parent.type===t)return s(t)}return l(t.parent)}}function n(t){return KF(t.parent)&&t.parent.declarations[0]===t?i(QX(t.pos,e,t.parent),t):i(t)}function r(t){if(249===t.parent.parent.kind)return l(t.parent.parent);const r=t.parent;return k_(t.name)?f(t.name):Pu(t)&&t.initializer||Dv(t,32)||250===r.parent.kind?n(t):KF(t.parent)&&t.parent.declarations[0]!==t?l(QX(t.pos,e,t.parent)):void 0}function u(e){return Dv(e,32)||263===e.parent.kind&&176!==e.kind}function d(t){switch(t.parent.kind){case 267:if(1!==jM(t.parent))return;case 247:case 245:case 249:return a(t.parent,t.statements[0]);case 248:case 250:return a(QX(t.pos,e,t.parent),t.statements[0])}return l(t.statements[0])}function p(e){if(261!==e.initializer.kind)return l(e.initializer);{const t=e.initializer;if(t.declarations.length>0)return l(t.declarations[0])}}function f(e){const t=_(e.elements,(e=>232!==e.kind?e:void 0));return t?l(t):208===e.parent.kind?i(e.parent):n(e.parent)}function m(e){_n.assert(207!==e.kind&&206!==e.kind);const t=_(209===e.kind?e.elements:e.properties,(e=>232!==e.kind?e:void 0));return t?l(t):i(226===e.parent.kind?e.parent:e)}}}n(_7,{spanInSourceFileAtLocation:()=>u7});var d7={};function p7(e){return uD(e)||HF(e)}function f7(e){return(rF(e)||iF(e)||gF(e))&&p7(e.parent)&&e===e.parent.initializer&&VN(e.parent.name)&&(!!(2&ac(e.parent))||uD(e.parent))}function m7(e){return WE(e)||eE(e)||GF(e)||rF(e)||XF(e)||gF(e)||fD(e)||pD(e)||dD(e)||gD(e)||hD(e)}function g7(e){return WE(e)||eE(e)&&VN(e.name)||GF(e)||XF(e)||fD(e)||pD(e)||dD(e)||gD(e)||hD(e)||function(e){return(rF(e)||gF(e))&&Sc(e)}(e)||f7(e)}function h7(e){return WE(e)?e:Sc(e)?e.name:f7(e)?e.parent.name:_n.checkDefined(e.modifiers&&y(e.modifiers,y7))}function y7(e){return 90===e.kind}function v7(e,t){const n=h7(t);return n&&e.getSymbolAtLocation(n)}function b7(e,t){if(t.body)return t;if(mD(t))return iv(t.parent);if(GF(t)||pD(t)){const n=v7(e,t);return n&&n.valueDeclaration&&o_(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function x7(e,t){const n=v7(e,t);let r;if(n&&n.declarations){const e=K(n.declarations),t=D(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=D(e,(e=>n.declarations[e]));let o;for(const e of i)g7(e)&&(o&&o.parent===e.parent&&o.end===e.pos||(r=re(r,e)),o=e)}return r}function k7(e,t){return fD(t)?t:o_(t)?b7(e,t)??x7(e,t)??t:x7(e,t)??t}function S7(e,t){const n=e.getTypeChecker();let r=!1;for(;;){if(g7(t))return k7(n,t);if(m7(t)){const e=uc(t,g7);return e&&k7(n,e)}if(lh(t)){if(g7(t.parent))return k7(n,t.parent);if(m7(t.parent)){const e=uc(t.parent,g7);return e&&k7(n,e)}return p7(t.parent)&&t.parent.initializer&&f7(t.parent.initializer)?t.parent.initializer:void 0}if(mD(t))return g7(t.parent)?t.parent:void 0;if(126!==t.kind||!fD(t.parent)){if(HF(t)&&t.initializer&&f7(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 T7(e,t){const n=t.getSourceFile(),r=function(e,t){if(WE(t))return{text:t.fileName,pos:0,end:0};if((GF(t)||XF(t))&&!Sc(t)){const e=t.modifiers&&y(t.modifiers,y7);if(e)return{text:"default",pos:e.getStart(),end:e.getEnd()}}if(fD(t)){const n=Qa(t.getSourceFile().text,Rb(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=f7(t)?t.parent.name:_n.checkDefined(Cc(t),"Expected call hierarchy item to have a name");let r=VN(n)?gc(n):jh(n)?n.text:aD(n)&&jh(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=dU();r=od((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(f7(e))return uD(e.parent)&&u_(e.parent.parent)?gF(e.parent.parent)?null==(t=wc(e.parent.parent))?void 0:t.getText():null==(n=e.parent.parent.name)?void 0:n.getText():tE(e.parent.parent.parent.parent)&&VN(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return 210===e.parent.kind?null==(r=wc(e.parent))?void 0:r.getText():null==(i=Cc(e.parent))?void 0:i.getText();case 262:case 263:case 267:if(tE(e.parent)&&VN(e.parent.parent.name))return e.parent.parent.name.getText()}}(t),o=gX(t),a=fQ(t),s=$s(Qa(n.text,t.getFullStart(),!1,!0),t.getEnd()),c=$s(r.pos,r.end);return{file:n.fileName,kind:o,kindModifiers:a,name:r.text,containerName:i,span:s,selectionSpan:c}}function C7(e){return void 0!==e}function w7(e){if(e.kind===wce.EntryKind.Node){const{node:t}=e;if(HG(t,!0,!0)||KG(t,!0,!0)||GG(t,!0,!0)||XG(t,!0,!0)||lX(t)||_X(t)){const e=t.getSourceFile();return{declaration:uc(t,g7)||e,range:EQ(t,e)}}}}function N7(e){return $B(e.declaration)}function D7(e,t,n){if(WE(t)||eE(t)||fD(t))return[];const r=h7(t),i=C(wce.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),r,0,{use:wce.FindReferencesUse.References},w7),C7);return i?Be(i,N7,(t=>function(e,t){return n=T7(e,t[0].declaration),r=D(t,(e=>PQ(e.range))),{from:n,fromSpans:r};var n,r}(e,t))):[]}function F7(e,t){const n=[],r=function(e,t){function n(n){const r=eF(n)?n.tag:bu(n)?n.tagName:Tx(n)||fD(n)?n:n.expression,i=S7(e,r);if(i){const e=EQ(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(g7(t)){if(u_(t))for(const n of t.members)n.name&&aD(n.name)&&e(n.name.expression)}else{switch(t.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:return void n(t);case 216:case 234:case 238:return void e(t.expression);case 260:case 169:return e(t.name),void e(t.initializer);case 213:case 214:return n(t),e(t.expression),void _(t.arguments,e);case 215:return n(t),e(t.tag),void e(t.template);case 286:case 285:return n(t),e(t.tagName),void e(t.attributes);case 170:return n(t),void e(t.expression);case 211:case 212:n(t),RI(t,e)}Cf(t)||RI(t,e)}}}(e,n);switch(t.kind){case 307:!function(e,t){_(e.statements,t)}(t,r);break;case 267:!function(e,t){!Dv(e,128)&&e.body&&tE(e.body)&&_(e.body.statements,t)}(t,r);break;case 262:case 218:case 219:case 174:case 177:case 178:!function(e,t,n){const r=b7(e,t);r&&(_(r.parameters,n),n(r.body))}(e.getTypeChecker(),t,r);break;case 263:case 231:!function(e,t){_(e.modifiers,t);const n=vh(e);n&&t(n.expression);for(const n of e.members)lI(n)&&_(n.modifiers,t),uD(n)?t(n.initializer):mD(n)&&n.body?(_(n.parameters,t),t(n.body)):fD(n)&&t(n)}(t,r);break;case 175:!function(e,t){t(e.body)}(t,r);break;default:_n.assertNever(t)}return n}function E7(e,t){return 33554432&t.flags||dD(t)?[]:Be(F7(e,t),N7,(t=>function(e,t){return n=T7(e,t[0].declaration),r=D(t,(e=>PQ(e.range))),{to:n,fromSpans:r};var n,r}(e,t)))}n(d7,{createCallHierarchyItem:()=>T7,getIncomingCalls:()=>D7,getOutgoingCalls:()=>E7,resolveCallHierarchyDeclaration:()=>S7});var P7={};n(P7,{v2020:()=>A7});var A7={};n(A7,{TokenEncodingConsts:()=>y8,TokenModifier:()=>b8,TokenType:()=>v8,getEncodedSemanticClassifications:()=>k8,getSemanticClassifications:()=>x8});var I7={};n(I7,{PreserveOptionalFlags:()=>qie,addNewNodeForMemberSymbol:()=>Uie,codeFixAll:()=>H7,createCodeFixAction:()=>M7,createCodeFixActionMaybeFixAll:()=>B7,createCodeFixActionWithoutFixAll:()=>R7,createCombinedCodeActions:()=>W7,createFileTextChanges:()=>$7,createImportAdder:()=>yee,createImportSpecifierResolver:()=>bee,createMissingMemberNodes:()=>Jie,createSignatureDeclarationFromCallExpression:()=>Wie,createSignatureDeclarationFromSignature:()=>Vie,createStubbedBody:()=>noe,eachDiagnostic:()=>K7,findAncestorMatchingSpan:()=>_oe,generateAccessorFromProperty:()=>uoe,getAccessorConvertiblePropertyAtPosition:()=>moe,getAllFixes:()=>V7,getAllSupers:()=>yoe,getFixes:()=>U7,getImportCompletionAction:()=>xee,getImportKind:()=>Ree,getJSDocTypedefNodes:()=>oee,getNoopSymbolTrackerWithResolver:()=>zie,getPromoteTypeOnlyCompletionAction:()=>kee,getSupportedErrorCodes:()=>q7,importFixName:()=>mee,importSymbols:()=>loe,parameterShouldGetTypeFromJSDoc:()=>M5,registerCodeFix:()=>z7,setJsonCompilerOptionValue:()=>ioe,setJsonCompilerOptionValues:()=>roe,tryGetAutoImportableReferenceFromTypeNode:()=>soe,typeNodeToAutoImportableTypeNode:()=>Kie,typePredicateToAutoImportableTypeNode:()=>Xie,typeToAutoImportableTypeNode:()=>Hie,typeToMinimizedReferenceType:()=>Gie});var O7,L7=We(),j7=new Map;function R7(e,t,n){return J7(e,i0(n),t,void 0,void 0)}function M7(e,t,n,r,i,o){return J7(e,i0(n),t,r,i0(i),o)}function B7(e,t,n,r,i,o){return J7(e,i0(n),t,r,i&&i0(i),o)}function J7(e,t,n,r,i,o){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:i,commands:o?[o]:void 0}}function z7(e){for(const t of e.errorCodes)O7=void 0,L7.add(String(t),e);if(e.fixIds)for(const t of e.fixIds)_n.assert(!j7.has(t)),j7.set(t,e)}function q7(){return O7??(O7=Ie(L7.keys()))}function U7(e){const t=G7(e);return A(L7.get(String(e.errorCode)),(n=>D(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 V7(e){return j7.get(tt(e.fixId,Ye)).getAllCodeActions(e)}function W7(e,t){return{changes:e,commands:t}}function $7(e,t){return{fileName:e,textChanges:t}}function H7(e,t,n){const r=[];return W7(Kue.ChangeTracker.with(e,(i=>K7(e,t,(e=>n(i,e,r))))),0===r.length?void 0:r)}function K7(e,t,n){for(const r of G7(e))k(t,r.code)&&n(r)}function G7({program:e,sourceFile:t,cancellationToken:n}){const r=[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...A1(t,e,n)];return Fk(e.getCompilerOptions())&&r.push(...e.getDeclarationDiagnostics(t,n)),r}var X7="addConvertToUnknownForNonOverlappingTypes",Q7=[_a.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 Y7(e,t,n){const r=vF(n)?ZC.createAsExpression(n.expression,ZC.createKeywordTypeNode(159)):ZC.createTypeAssertion(ZC.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,r)}function Z7(e,t){if(!Em(e))return uc($X(e,t),(e=>vF(e)||tF(e)))}z7({errorCodes:Q7,getCodeActions:function(e){const t=Z7(e.sourceFile,e.span.start);if(void 0===t)return;const n=Kue.ChangeTracker.with(e,(n=>Y7(n,e.sourceFile,t)));return[M7(X7,n,_a.Add_unknown_conversion_for_non_overlapping_types,X7,_a.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[X7],getAllCodeActions:e=>H7(e,Q7,((e,t)=>{const n=Z7(t.file,t.start);n&&Y7(e,t.file,n)}))}),z7({errorCodes:[_a.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,_a.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,_a.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[R7("addEmptyExportDeclaration",Kue.ChangeTracker.with(e,(e=>{const n=ZC.createExportDeclaration(void 0,!1,ZC.createNamedExports([]),void 0);e.insertNodeAtEndOfScope(t,t,n)})),_a.Add_export_to_make_this_file_into_a_module)]}});var e5="addMissingAsync",t5=[_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_a.Type_0_is_not_assignable_to_type_1.code,_a.Type_0_is_not_comparable_to_type_1.code];function n5(e,t,n,r){const i=n((n=>function(e,t,n,r){if(r&&r.has($B(n)))return;null==r||r.add($B(n));const i=ZC.replaceModifiers(XY(n,!0),ZC.createNodeArray(ZC.createModifiersFromModifierFlags(1024|qv(n))));e.replaceNode(t,n,i)}(n,e.sourceFile,t,r)));return M7(e5,i,_a.Add_async_modifier_to_containing_function,e5,_a.Add_all_missing_async_modifiers)}function r5(e,t){if(!t)return;return uc($X(e,t.start),(n=>n.getStart(e)<t.start||n.getEnd()>Fs(t)?"quit":(iF(n)||pD(n)||rF(n)||GF(n))&&dY(t,DQ(n,e))))}z7({fixIds:[e5],errorCodes:t5,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)&&dY({start:n,length:r},e)&&o===t&&!!i&&V(i,(e=>e.code===_a.Did_you_mean_to_mark_this_function_as_async.code))}(o,n)),s=r5(t,a&&a.relatedInformation&&y(a.relatedInformation,(e=>e.code===_a.Did_you_mean_to_mark_this_function_as_async.code)));if(!s)return;return[n5(e,s,(t=>Kue.ChangeTracker.with(e,t)))]},getAllCodeActions:e=>{const{sourceFile:t}=e,n=new Set;return H7(e,t5,((r,i)=>{const o=i.relatedInformation&&y(i.relatedInformation,(e=>e.code===_a.Did_you_mean_to_mark_this_function_as_async.code)),a=r5(t,o);if(!a)return;return n5(e,a,(e=>(e(r),[])),n)}))}});var i5="addMissingAwait",o5=_a.Property_0_does_not_exist_on_type_1.code,a5=[_a.This_expression_is_not_callable.code,_a.This_expression_is_not_constructable.code],s5=[_a.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,_a.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,_a.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,_a.Operator_0_cannot_be_applied_to_type_1.code,_a.Operator_0_cannot_be_applied_to_types_1_and_2.code,_a.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,_a.This_condition_will_always_return_true_since_this_0_is_always_defined.code,_a.Type_0_is_not_an_array_type.code,_a.Type_0_is_not_an_array_type_or_a_string_type.code,_a.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,_a.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_a.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_a.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,_a.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,o5,...a5];function c5(e,t,n,r,i){const o=$Z(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)&&dY({start:e,length:r},n)&&o===t&&!!i&&V(i,(e=>e.code===_a.Did_you_forget_to_use_await.code))))}(e,t,n,r,i)&&d5(o)?o:void 0}function l5(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(XD(e.parent)&&VN(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(VN(e))return{identifiers:[e],isCompleteFix:!0};if(uF(e)){let n,r=!0;for(const i of[e.left,e.right]){const e=t.getTypeAtLocation(i);if(t.getPromisedTypeOfPromise(e)){if(!VN(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,HF),l=c&&et(c.name,VN),_=Th(c,243);if(!c||!_||c.type||!c.initializer||_.getSourceFile()!==t||Dv(_,32)||!l||!d5(c.initializer)){s=!1;continue}const u=r.getSemanticDiagnostics(t,n);wce.Core.eachSymbolReferenceInFile(l,i,t,(n=>e!==n&&!u5(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 R7("addMissingAwaitToInitializer",i((e=>{_(l.initializers,(({expression:t})=>p5(e,n,a,r,t,o))),o&&l.needsSecondPassForFixAll&&p5(e,n,a,r,t,o)})),1===l.initializers.length?[_a.Add_await_to_initializer_for_0,l.initializers[0].declarationSymbol.name]:_a.Add_await_to_initializers)}}function _5(e,t,n,r,i,o){const a=i((i=>p5(i,n,e.sourceFile,r,t,o)));return M7(i5,a,_a.Add_await,i5,_a.Fix_all_expressions_possibly_missing_await)}function u5(e,t,n,r){const i=XD(e.parent)?e.parent.name:uF(e.parent)?e.parent:e,o=y(t,(e=>e.start===i.getStart(n)&&e.start+e.length===i.getEnd()));return o&&k(s5,o.code)||1&r.getTypeAtLocation(i).flags}function d5(e){return 65536&e.flags||!!uc(e,(e=>e.parent&&iF(e.parent)&&e.parent.body===e||DF(e)&&(262===e.parent.kind||218===e.parent.kind||219===e.parent.kind||174===e.parent.kind)))}function p5(e,t,n,r,i,o){if(RF(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,ZC.updateForOfStatement(t,ZC.createToken(135),t.initializer,t.expression,t.statement))}}if(uF(i))for(const t of[i.left,i.right]){if(o&&VN(t)){const e=r.getSymbolAtLocation(t);if(e&&o.has(HB(e)))continue}const i=r.getTypeAtLocation(t),a=r.getPromisedTypeOfPromise(i)?ZC.createAwaitExpression(t):t;e.replaceNode(n,t,a)}else if(t===o5&&XD(i.parent)){if(o&&VN(i.parent.expression)){const e=r.getSymbolAtLocation(i.parent.expression);if(e&&o.has(HB(e)))return}e.replaceNode(n,i.parent.expression,ZC.createParenthesizedExpression(ZC.createAwaitExpression(i.parent.expression))),f5(e,i.parent.expression,n)}else if(k(a5,t)&&j_(i.parent)){if(o&&VN(i)){const e=r.getSymbolAtLocation(i);if(e&&o.has(HB(e)))return}e.replaceNode(n,i,ZC.createParenthesizedExpression(ZC.createAwaitExpression(i))),f5(e,i,n)}else{if(o&&HF(i.parent)&&VN(i.parent.name)){const e=r.getSymbolAtLocation(i.parent.name);if(e&&!J(o,HB(e)))return}e.replaceNode(n,i,ZC.createAwaitExpression(i))}}function f5(e,t,n){const r=QX(t.pos,n);r&&DZ(r.end,r.parent,n)&&e.insertText(n,t.getStart(n),";")}z7({fixIds:[i5],errorCodes:s5,getCodeActions:function(e){const{sourceFile:t,errorCode:n,span:r,cancellationToken:i,program:o}=e,a=c5(t,n,r,i,o);if(!a)return;const s=e.program.getTypeChecker(),c=t=>Kue.ChangeTracker.with(e,t);return te([l5(e,a,n,s,c),_5(e,a,n,s,c)])},getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=e.program.getTypeChecker(),o=new Set;return H7(e,s5,((a,s)=>{const c=c5(t,s.code,s,r,n);if(!c)return;const l=e=>(e(a),[]);return l5(e,c,s.code,i,l,o)||_5(e,c,s.code,i,l,o)}))}});var m5="addMissingConst",g5=[_a.Cannot_find_name_0.code,_a.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code];function h5(e,t,n,r,i){const o=$X(t,n),a=uc(o,(e=>Q_(e.parent)?e.parent.initializer===e:!function(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}(e)&&"quit"));if(a)return y5(e,a,t,i);const s=o.parent;if(uF(s)&&64===s.operatorToken.kind&&PF(s.parent))return y5(e,o,t,i);if(KD(s)){const n=r.getTypeChecker();if(!h(s.elements,(e=>function(e,t){const n=VN(e)?e:ib(e,!0)&&VN(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}(e,n))))return;return y5(e,s,t,i)}const c=uc(o,(e=>!!PF(e.parent)||!function(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}(e)&&"quit"));if(c){if(!v5(c,r.getTypeChecker()))return;return y5(e,c,t,i)}}function y5(e,t,n,r){r&&!J(r,t)||e.insertModifierBefore(n,87,t)}function v5(e,t){return!!uF(e)&&(28===e.operatorToken.kind?h([e.left,e.right],(e=>v5(e,t))):64===e.operatorToken.kind&&VN(e.left)&&!t.getSymbolAtLocation(e.left))}z7({errorCodes:g5,getCodeActions:function(e){const t=Kue.ChangeTracker.with(e,(t=>h5(t,e.sourceFile,e.span.start,e.program)));if(t.length>0)return[M7(m5,t,_a.Add_const_to_unresolved_variable,m5,_a.Add_const_to_all_unresolved_variables)]},fixIds:[m5],getAllCodeActions:e=>{const t=new Set;return H7(e,g5,((n,r)=>h5(n,r.file,r.start,e.program,t)))}});var b5="addMissingDeclareProperty",x5=[_a.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 k5(e,t,n,r){const i=$X(t,n);if(!VN(i))return;const o=i.parent;172!==o.kind||r&&!J(r,o)||e.insertModifierBefore(t,138,o)}z7({errorCodes:x5,getCodeActions:function(e){const t=Kue.ChangeTracker.with(e,(t=>k5(t,e.sourceFile,e.span.start)));if(t.length>0)return[M7(b5,t,_a.Prefix_with_declare,b5,_a.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[b5],getAllCodeActions:e=>{const t=new Set;return H7(e,x5,((e,n)=>k5(e,n.file,n.start,t)))}});var S5="addMissingInvocationForDecorator",T5=[_a._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function C5(e,t,n){const r=uc($X(t,n),lD);_n.assert(!!r,"Expected position to be owned by a decorator.");const i=ZC.createCallExpression(r.expression,void 0,void 0);e.replaceNode(t,r.expression,i)}z7({errorCodes:T5,getCodeActions:function(e){const t=Kue.ChangeTracker.with(e,(t=>C5(t,e.sourceFile,e.span.start)));return[M7(S5,t,_a.Call_decorator_expression,S5,_a.Add_to_all_uncalled_decorators)]},fixIds:[S5],getAllCodeActions:e=>H7(e,T5,((e,t)=>C5(e,t.file,t.start)))});var w5="addMissingResolutionModeImportAttribute",N5=[_a.Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code,_a.Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute.code];function D5(e,t,n,r,i,o){var a,s,c;const l=uc($X(t,n),Zt(oE,qD));_n.assert(!!l,"Expected position to be owned by an ImportDeclaration or ImportType.");const _=0===eY(t,o),u=yg(l),d=!u||(null==(a=FR(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?ZC.updateImportAttributes(l.attributes,ZC.createNodeArray([...l.attributes.elements,ZC.createImportAttribute(ZC.createStringLiteral("resolution-mode",_),ZC.createStringLiteral(d?"import":"require",_))],l.attributes.elements.hasTrailingComma),l.attributes.multiLine):ZC.createImportAttributes(ZC.createNodeArray([ZC.createImportAttribute(ZC.createStringLiteral("resolution-mode",_),ZC.createStringLiteral(d?"import":"require",_))]));272===l.kind?e.replaceNode(t,l,ZC.updateImportDeclaration(l,l.modifiers,l.importClause,l.moduleSpecifier,p)):e.replaceNode(t,l,ZC.updateImportTypeNode(l,l.argument,p,l.qualifier,l.typeArguments))}z7({errorCodes:N5,getCodeActions:function(e){const t=Kue.ChangeTracker.with(e,(t=>D5(t,e.sourceFile,e.span.start,e.program,e.host,e.preferences)));return[M7(w5,t,_a.Add_resolution_mode_import_attribute,w5,_a.Add_resolution_mode_import_attribute_to_all_type_only_imports_that_need_it)]},fixIds:[w5],getAllCodeActions:e=>H7(e,N5,((t,n)=>D5(t,n.file,n.start,e.program,e.host,e.preferences)))});var F5="addNameToNamelessParameter",E5=[_a.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function P5(e,t,n){const r=$X(t,n),i=r.parent;if(!cD(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=ZC.createTypeReferenceNode(i.name,void 0),c=A5(t,i);for(;c;)s=ZC.createArrayTypeNode(s),a=c.getEnd(),c=A5(t,c);const l=ZC.createParameterDeclaration(i.modifiers,i.dotDotDotToken,"arg"+o,i.questionToken,i.dotDotDotToken&&!ND(s)?ZC.createArrayTypeNode(s):s,i.initializer);e.replaceRange(t,Ib(i.getStart(t),a),l)}function A5(e,t){const n=XX(t.name,t.parent,e);if(n&&23===n.kind&&$D(n.parent)&&cD(n.parent.parent))return n.parent.parent}z7({errorCodes:E5,getCodeActions:function(e){const t=Kue.ChangeTracker.with(e,(t=>P5(t,e.sourceFile,e.span.start)));return[M7(F5,t,_a.Add_parameter_name,F5,_a.Add_names_to_all_parameters_without_names)]},fixIds:[F5],getAllCodeActions:e=>H7(e,E5,((e,t)=>P5(e,t.file,t.start)))});var I5="addOptionalPropertyUndefined";function O5(e,t){var n;if(e){if(uF(e.parent)&&64===e.parent.operatorToken.kind)return{source:e.parent.right,target:e.parent.left};if(HF(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(YD(e.parent)){const n=t.getSymbolAtLocation(e.parent.expression);if(!(null==n?void 0:n.valueDeclaration)||!c_(n.valueDeclaration.kind))return;if(!V_(e))return;const r=e.parent.arguments.indexOf(e);if(-1===r)return;const i=n.valueDeclaration.parameters[r].name;if(VN(i))return{source:e,target:i}}else if(zE(e.parent)&&VN(e.parent.name)||qE(e.parent)){const r=O5(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:zE(e.parent)?e.parent.initializer:e.parent.name,target:o}}}}z7({errorCodes:[_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_a.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=O5($Z(e,t),n);if(!o)return s;const{source:a,target:c}=o,l=function(e,t,n){return XD(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=>yd(e).fileName.match(/\.d\.ts$/))))return s;return n.getExactOptionalProperties(l)}(e.sourceFile,e.span,t);if(!n.length)return;const r=Kue.ChangeTracker.with(e,(e=>function(e,t){for(const n of t){const t=n.valueDeclaration;if(t&&(_D(t)||uD(t))&&t.type){const n=ZC.createUnionTypeNode([...192===t.type.kind?t.type.types:[t.type],ZC.createTypeReferenceNode("undefined")]);e.replaceNode(t.getSourceFile(),t.type,n)}}}(e,n)));return[R7(I5,r,_a.Add_undefined_to_optional_property_type)]},fixIds:[I5]});var L5="annotateWithTypeFromJSDoc",j5=[_a.JSDoc_types_may_be_moved_to_TypeScript_types.code];function R5(e,t){const n=$X(e,t);return et(cD(n.parent)?n.parent.parent:n.parent,M5)}function M5(e){return function(e){return o_(e)||260===e.kind||171===e.kind||172===e.kind}(e)&&B5(e)}function B5(e){return o_(e)?e.parameters.some(B5)||!e.type&&!!rl(e):!e.type&&!!nl(e)}function J5(e,t,n){if(o_(n)&&(rl(n)||n.parameters.some((e=>!!nl(e))))){if(!n.typeParameters){const r=hv(n);r.length&&e.insertTypeParameters(t,n,r)}const r=iF(n)&&!AX(n,21,t);r&&e.insertNodeBefore(t,me(n.parameters),ZC.createToken(21));for(const r of n.parameters)if(!r.type){const n=nl(r);n&&e.tryInsertTypeAnnotation(t,r,nJ(n,z5,b_))}if(r&&e.insertNodeAfter(t,ye(n.parameters),ZC.createToken(22)),!n.type){const r=rl(n);r&&e.tryInsertTypeAnnotation(t,n,nJ(r,z5,b_))}}else{const r=_n.checkDefined(nl(n),"A JSDocType for this declaration should exist");_n.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,nJ(r,z5,b_))}}function z5(e){switch(e.kind){case 312:case 313:return ZC.createTypeReferenceNode("any",s);case 316:return function(e){return ZC.createUnionTypeNode([nJ(e.type,z5,b_),ZC.createTypeReferenceNode("undefined",s)])}(e);case 315:return z5(e.type);case 314:return function(e){return ZC.createUnionTypeNode([nJ(e.type,z5,b_),ZC.createTypeReferenceNode("null",s)])}(e);case 318:return function(e){return ZC.createArrayTypeNode(nJ(e.type,z5,b_))}(e);case 317:return function(e){return ZC.createFunctionTypeNode(s,e.parameters.map(q5),e.type??ZC.createKeywordTypeNode(133))}(e);case 183:return function(e){let t=e.typeName,n=e.typeArguments;if(VN(e.typeName)){if(Om(e))return function(e){const t=ZC.createParameterDeclaration(void 0,void 0,150===e.typeArguments[0].kind?"n":"s",void 0,ZC.createTypeReferenceNode(150===e.typeArguments[0].kind?"number":"string",[]),void 0),n=ZC.createTypeLiteralNode([ZC.createIndexSignature(void 0,[t],e.typeArguments[1])]);return ow(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=ZC.createIdentifier(r),n="Array"!==r&&"Promise"!==r||e.typeArguments?rJ(e.typeArguments,z5,b_):ZC.createNodeArray([ZC.createTypeReferenceNode("any",s)])}return ZC.createTypeReferenceNode(t,n)}(e);case 322:return function(e){const t=ZC.createTypeLiteralNode(D(e.jsDocPropertyTags,(e=>ZC.createPropertySignature(void 0,VN(e.name)?e.name:e.name.right,HT(e)?ZC.createToken(58):void 0,e.typeExpression&&nJ(e.typeExpression.type,z5,b_)||ZC.createKeywordTypeNode(133)))));return ow(t,1),t}(e);default:const t=dJ(e,z5,void 0);return ow(t,1),t}}function q5(e){const t=e.parent.parameters.indexOf(e),n=318===e.type.kind&&t===e.parent.parameters.length-1,r=e.name||(n?"rest":"arg"+t),i=n?ZC.createToken(26):e.dotDotDotToken;return ZC.createParameterDeclaration(e.modifiers,i,r,e.questionToken,nJ(e.type,z5,b_),e.initializer)}z7({errorCodes:j5,getCodeActions(e){const t=R5(e.sourceFile,e.span.start);if(!t)return;const n=Kue.ChangeTracker.with(e,(n=>J5(n,e.sourceFile,t)));return[M7(L5,n,_a.Annotate_with_type_from_JSDoc,L5,_a.Annotate_everything_with_types_from_JSDoc)]},fixIds:[L5],getAllCodeActions:e=>H7(e,j5,((e,t)=>{const n=R5(t.file,t.start);n&&J5(e,t.file,n)}))});var U5="convertFunctionToEs6Class",V5=[_a.This_constructor_function_may_be_converted_to_a_class_declaration.code];function W5(e,t,n,r,i,o){const a=r.getSymbolAtLocation($X(t,n));if(!(a&&a.valueDeclaration&&19&a.flags))return;const s=a.valueDeclaration;if(GF(s)||rF(s))e.replaceNode(t,s,function(e){const t=c(a);e.body&&t.unshift(ZC.createConstructorDeclaration(void 0,e.parameters,e.body));const n=$5(e,95);return ZC.createClassDeclaration(n,e.name,void 0,void 0,t)}(s));else if(HF(s)){const n=function(e){const t=e.initializer;if(!t||!rF(t)||!VN(e.name))return;const n=c(e.symbol);t.body&&n.unshift(ZC.createConstructorDeclaration(void 0,t.parameters,t.body));const r=$5(e.parent.parent,95);return ZC.createClassDeclaration(r,e.name,void 0,void 0,n)}(s);if(!n)return;const r=s.parent.parent;KF(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&&XD(t)&&uF(t.parent)&&64===t.parent.operatorToken.kind&&GD(t.parent.right)){a(t.parent.right.symbol,void 0,r)}}else a(e,[ZC.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&&uF(r)&&GD(r.right)&&V(r.right.properties,H5)||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,!(Tx(u=s)?XD(u)&&H5(u)||r_(d):h(u.properties,(e=>!!(pD(e)||pl(e)||zE(e)&&rF(e.initializer)&&e.name||H5(e))))))return;var u,d;if(V(a,(e=>{const t=Cc(e);return!(!t||!VN(t)||gc(t)!==yc(n))})))return;const p=c.parent&&244===c.parent.kind?c.parent:c;if(e.delete(t,p),l)if(Tx(s)&&(rF(l)||iF(l))){const e=eY(t,i),n=function(e,t,n){if(XD(e))return e.name;const r=e.argumentExpression;if(CN(r))return r;if(ju(r))return ms(r.text,vk(t))?ZC.createIdentifier(r.text):EN(r)?ZC.createStringLiteral(r.text,0===n):r;return}(s,o,e);n&&f(a,l,n)}else{if(!GD(l)){if(Fm(t))return;if(!XD(s))return;const e=ZC.createPropertyDeclaration(r,s.name,void 0,void 0,l);return lZ(c.parent,e,t),void a.push(e)}_(l.properties,(e=>{(pD(e)||pl(e))&&a.push(e),zE(e)&&rF(e.initializer)&&f(a,e.initializer,e.name),H5(e)}))}else a.push(ZC.createPropertyDeclaration(r,n.name,void 0,void 0,void 0));function f(e,n,i){return rF(n)?function(e,n,i){const o=$(r,$5(n,134)),a=ZC.createMethodDeclaration(o,void 0,i,void 0,void 0,n.parameters,void 0,n.body);return lZ(c,a,t),void e.push(a)}(e,n,i):function(e,n,i){const o=n.body;let a;a=241===o.kind?o:ZC.createBlock([ZC.createReturnStatement(o)]);const s=$(r,$5(n,134)),l=ZC.createMethodDeclaration(s,void 0,i,void 0,void 0,n.parameters,void 0,a);lZ(c,l,t),e.push(l)}(e,n,i)}}}}function $5(e,t){return lI(e)?C(e.modifiers,(e=>e.kind===t)):void 0}function H5(e){return!!e.name&&!(!VN(e.name)||"constructor"!==e.name.text)}z7({errorCodes:V5,getCodeActions(e){const t=Kue.ChangeTracker.with(e,(t=>W5(t,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())));return[M7(U5,t,_a.Convert_function_to_an_ES2015_class,U5,_a.Convert_all_constructor_functions_to_classes)]},fixIds:[U5],getAllCodeActions:e=>H7(e,V5,((t,n)=>W5(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())))});var K5="convertToAsyncFunction",G5=[_a.This_may_be_converted_to_an_async_function.code],X5=!0;function Q5(e,t,n,r){const i=$X(t,n);let o;if(o=VN(i)&&HF(i.parent)&&i.parent.initializer&&o_(i.parent.initializer)?i.parent.initializer:et(Kf($X(t,n)),q1),!o)return;const a=new Map,c=Em(o),l=function(e,t){if(!e.body)return new Set;const n=new Set;return RI(e.body,(function e(r){Y5(r,t,"then")?(n.add($B(r)),_(r.arguments,e)):Y5(r,t,"catch")||Y5(r,t,"finally")?(n.add($B(r)),RI(r,e)):t9(r,t)?n.add($B(r)):RI(r,e)})),n}(o,r),u=function(e,t,n){const r=new Map,i=We();return RI(e,(function e(o){if(!VN(o))return void RI(o,e);const a=t.getSymbolAtLocation(o);if(a){const e=f9(t.getTypeAtLocation(o),t),s=HB(a).toString();if(!e||cD(o.parent)||o_(o.parent)||n.has(s)){if(o.parent&&(cD(o.parent)||HF(o.parent)||HD(o.parent))){const e=o.text,t=i.get(e);if(t&&t.some((e=>e!==a))){const t=n9(o,i);r.set(s,t.identifier),n.set(s,t),i.add(e,a)}else{const t=XY(o);n.set(s,y9(t)),i.add(e,a)}}}else{const t=pe(e.parameters),r=(null==t?void 0:t.valueDeclaration)&&cD(t.valueDeclaration)&&et(t.valueDeclaration.name,VN)||ZC.createUniqueName("result",16),o=n9(r,i);n.set(s,o),i.add(r.text,a)}}})),QY(e,!0,(e=>{if(HD(e)&&VN(e.name)&&WD(e.parent)){const n=t.getSymbolAtLocation(e.name),i=n&&r.get(String(HB(n)));if(i&&i.text!==(e.name||e.propertyName).getText())return ZC.createBindingElement(e.dotDotDotToken,e.propertyName||e.name,i,e.initializer)}else if(VN(e)){const n=t.getSymbolAtLocation(e),i=n&&r.get(String(HB(n)));if(i)return ZC.createIdentifier(i.text)}}))}(o,r,a);if(!L1(u,r))return;const d=u.body&&DF(u.body)?function(e,t){const n=[];return Nf(e,(e=>{j1(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=Qa(t.text,Rb(o).pos);e.insertModifierAt(t,f,134,{suffix:" "});for(const n of d)if(RI(n,(function r(i){if(YD(i)){const r=o9(i,i,p,!1);if(r9())return!0;e.replaceNodeWithNodes(t,n,r)}else if(!r_(i)&&(RI(i,r),r9()))return!0})),r9())return}function Y5(e,t,n){if(!YD(e))return!1;const r=rX(e,n)&&t.getTypeAtLocation(e);return!(!r||!t.getPromisedTypeOfPromise(r))}function Z5(e,t){return!!(4&hx(e))&&e.target===t}function e9(e,t,n){if("finally"===e.expression.name.escapedText)return;const r=n.getTypeAtLocation(e.expression.expression);if(Z5(r,n.getPromiseType())||Z5(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 t9(e,t){return!!V_(e)&&!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e))}function n9(e,t){const n=(t.get(e.text)||s).length;return y9(0===n?e:ZC.createIdentifier(e.text+"_"+n))}function r9(){return!X5}function i9(){return X5=!1,s}function o9(e,t,n,r,i){if(Y5(t,n.checker,"then"))return function(e,t,n,r,i,o){if(!t||a9(r,t))return l9(e,n,r,i,o);if(n&&!a9(r,n))return i9();const a=g9(t,r),s=o9(e.expression.expression,e.expression.expression,r,!0,a);if(r9())return i9();const c=d9(t,i,o,a,e,r);return r9()?i9():$(s,c)}(t,de(t.arguments,0),de(t.arguments,1),n,r,i);if(Y5(t,n.checker,"catch"))return l9(t,de(t.arguments,0),n,r,i);if(Y5(t,n.checker,"finally"))return function(e,t,n,r,i){if(!t||a9(n,t))return o9(e,e.expression.expression,n,r,i);const o=s9(e,n,i),a=o9(e,e.expression.expression,n,!0,o);if(r9())return i9();const s=d9(t,r,void 0,void 0,e,n);if(r9())return i9();const c=ZC.createBlock(a),l=ZC.createBlock(s),_=ZC.createTryStatement(c,void 0,l);return c9(e,n,_,o,i)}(t,de(t.arguments,0),n,r,i);if(XD(t))return o9(e,t.expression,n,r,i);const o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(_n.assertNode(_c(t).parent,XD),function(e,t,n,r,i){if(T9(e,n)){let e=XY(t);return r&&(e=ZC.createAwaitExpression(e)),[ZC.createReturnStatement(e)]}return _9(i,ZC.createAwaitExpression(t),void 0)}(e,t,n,r,i)):i9()}function a9({checker:e},t){if(106===t.kind)return!0;if(VN(t)&&!Wl(t)&&"undefined"===gc(t)){const n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function s9(e,t,n){let r;return n&&!T9(e,t)&&(S9(n)?(r=n,t.synthNamesMap.forEach(((e,r)=>{if(e.identifier.text===n.identifier.text){const e=(i=n,y9(ZC.createUniqueName(i.identifier.text,16)));t.synthNamesMap.set(r,e)}var i}))):r=y9(ZC.createUniqueName("result",16),n.types),k9(r)),r}function c9(e,t,n,r,i){const o=[];let a;if(r&&!T9(e,t)){a=XY(k9(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=[ZC.createVariableDeclaration(a,void 0,i)],c=ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList(s,1));o.push(c)}return o.push(n),i&&a&&1===i.kind&&o.push(ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(XY(x9(i)),void 0,void 0,a)],2))),o}function l9(e,t,n,r,i){if(!t||a9(n,t))return o9(e,e.expression.expression,n,r,i);const o=g9(t,n),a=s9(e,n,i),s=o9(e,e.expression.expression,n,!0,a);if(r9())return i9();const c=d9(t,r,a,o,e,n);if(r9())return i9();const l=ZC.createBlock(s),_=ZC.createCatchClause(o&&XY(b9(o)),ZC.createBlock(c));return c9(e,n,ZC.createTryStatement(l,_,void 0),a,i)}function _9(e,t,n){return!e||h9(e)?[ZC.createExpressionStatement(t)]:S9(e)&&e.hasBeenDeclared?[ZC.createExpressionStatement(ZC.createAssignment(XY(v9(e)),t))]:[ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(XY(b9(e)),void 0,n,t)],2))]}function u9(e,t){if(t&&e){const n=ZC.createUniqueName("result",16);return[..._9(y9(n),e,t),ZC.createReturnStatement(n)]}return[ZC.createReturnStatement(e)]}function d9(e,t,n,r,i,o){var a;switch(e.kind){case 106:break;case 211:case 80:if(!r)break;const c=ZC.createCallExpression(XY(e),void 0,S9(r)?[v9(r)]:[]);if(T9(i,o))return u9(c,e9(i,e,o.checker));const l=o.checker.getTypeAtLocation(e),_=o.checker.getSignaturesOfType(l,0);if(!_.length)return i9();const u=_[0].getReturnType(),d=_9(n,ZC.createAwaitExpression(c),e9(i,e,o.checker));return n&&n.types.push(o.checker.getAwaitedType(u)||u),d;case 218:case 219:{const r=e.body,c=null==(a=f9(o.checker.getTypeAtLocation(e),o.checker))?void 0:a.getReturnType();if(DF(r)){let a=[],s=!1;for(const l of r.statements)if(JF(l))if(s=!0,j1(l,o.checker))a=a.concat(m9(o,l,t,n));else{const t=c&&l.expression?p9(o.checker,c,l.expression):l.expression;a.push(...u9(t,e9(i,e,o.checker)))}else{if(t&&Nf(l,it))return i9();a.push(l)}return T9(i,o)?a.map((e=>XY(e))):function(e,t,n,r){const i=[];for(const r of e)if(JF(r)){if(r.expression){const e=t9(r.expression,n.checker)?ZC.createAwaitExpression(r.expression):r.expression;void 0===t?i.push(ZC.createExpressionStatement(e)):S9(t)&&t.hasBeenDeclared?i.push(ZC.createExpressionStatement(ZC.createAssignment(v9(t),e))):i.push(ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(b9(t),void 0,void 0,e)],2)))}}else i.push(XY(r));r||void 0===t||i.push(ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(b9(t),void 0,void 0,ZC.createIdentifier("undefined"))],2)));return i}(a,n,o,s)}{const a=R1(r,o.checker)?m9(o,ZC.createReturnStatement(r),t,n):s;if(a.length>0)return a;if(c){const t=p9(o.checker,c,r);if(T9(i,o))return u9(t,e9(i,e,o.checker));{const e=_9(n,t,void 0);return n&&n.types.push(o.checker.getAwaitedType(c)||c),e}}return i9()}}default:return i9()}return s}function p9(e,t,n){const r=XY(n);return e.getPromisedTypeOfPromise(t)?ZC.createAwaitExpression(r):r}function f9(e,t){return he(t.getSignaturesOfType(e,0))}function m9(e,t,n,r){let i=[];return RI(t,(function t(o){if(YD(o)){const t=o9(o,o,e,n,r);if(i=i.concat(t),i.length>0)return}else r_(o)||RI(o,t)})),i}function g9(e,t){const n=[];let r;if(o_(e)){if(e.parameters.length>0){r=function e(t){if(VN(t))return i(t);const n=A(t.elements,(t=>hF(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 VN(e)?r=i(e):XD(e)&&VN(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,au))?void 0:n.symbol)??t.checker.getSymbolAtLocation(e)}((r=e).original?r.original:r);if(!i)return y9(e,n);return t.synthNamesMap.get(HB(i).toString())||y9(e,n)}}function h9(e){return!e||(S9(e)?!e.identifier.text:h(e.elements,h9))}function y9(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function v9(e){return e.hasBeenReferenced=!0,e.identifier}function b9(e){return S9(e)?k9(e):x9(e)}function x9(e){for(const t of e.elements)b9(t);return e.bindingPattern}function k9(e){return e.hasBeenDeclared=!0,e.identifier}function S9(e){return 0===e.kind}function T9(e,t){return!!e.original&&t.setOfExpressionsToReturn.has($B(e.original))}function C9(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=vg(a);switch(c.kind){case 271:r.replaceNode(e,c,XQ(c.name,void 0,a,i));break;case 213:Lm(c,!1)&&r.replaceNode(e,c,ZC.createPropertyAccessExpression(XY(c),"default"))}}}function w9(e,t){e.forEachChild((function n(r){if(XD(r)&&WM(e,r.expression)&&VN(r.name)){const{parent:e}=r;t(r,uF(e)&&e.left===r&&64===e.operatorToken.kind)}r.forEachChild(n)}))}function N9(e,t,n,r,i,o,a,s,l){switch(t.kind){case 243:return D9(e,t,r,n,i,o,l),!1;case 244:{const{expression:i}=t;switch(i.kind){case 213:return Lm(i,!0)&&r.replaceNode(e,t,XQ(void 0,void 0,i.arguments[0],l)),!1;case 226:{const{operatorToken:t}=i;return 64===t.kind&&function(e,t,n,r,i,o){const{left:a,right:s}=n;if(!XD(a))return!1;if(WM(e,a)){if(!WM(e,s)){const i=GD(s)?function(e,t){const n=j(e.properties,(e=>{switch(e.kind){case 177:case 178:case 304:case 305:return;case 303:return VN(e.name)?function(e,t,n){const r=[ZC.createToken(95)];switch(t.kind){case 218:{const{name:n}=t;if(n&&n.text!==e)return i()}case 219:return L9(e,r,t,n);case 231:return function(e,t,n,r){return ZC.createClassDeclaration($(t,ZY(n.modifiers)),e,ZY(n.typeParameters),ZY(n.heritageClauses),P9(n.members,r))}(e,r,t,n);default:return i()}function i(){return M9(r,ZC.createIdentifier(e),P9(t,n))}}(e.name.text,e.initializer,t):void 0;case 174:return VN(e.name)?L9(e.name.text,[ZC.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=")?[[E9(n)],!0]:i.has("default")?i.size>1?[[F9(n),E9(n)],!0]:[[E9(n)],!0]:[[F9(n)],!1]}(s.arguments[0],t):void 0;return i?(r.replaceNodeWithNodes(e,n.parent,i[0]),i[1]):(r.replaceRangeWithText(e,Ib(a.getStart(e),s.pos),"export default"),!0)}r.delete(e,n.parent)}else WM(e,a.expression)&&function(e,t,n,r){const{text:i}=t.left.name,o=r.get(i);if(void 0!==o){const r=[M9(void 0,o,t.right),B9([ZC.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(!(rF(t)||iF(t)||gF(t))||t.name&&t.name.text!==o)i.replaceNodeRangeWithNodes(r,e.expression,AX(e,25,r),[ZC.createToken(95),ZC.createToken(87)],{joiner:" ",suffix:" "});else{i.replaceRange(r,{pos:e.getStart(r),end:t.getStart(r)},ZC.createToken(95),{suffix:" "}),t.name||i.insertName(r,t,o);const a=AX(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 D9(e,t,n,r,i,o,a){const{declarationList:s}=t;let c=!1;const l=D(s.declarations,(t=>{const{name:n,initializer:l}=t;if(l){if(WM(e,l))return c=!0,J9([]);if(Lm(l,!0))return c=!0,function(e,t,n,r,i,o){switch(e.kind){case 206:{const n=j(e.elements,(e=>e.dotDotDotToken||e.initializer||e.propertyName&&!VN(e.propertyName)||!VN(e.name)?void 0:R9(e.propertyName&&e.propertyName.text,e.name.text)));if(n)return J9([XQ(void 0,n,t,o)])}case 207:{const n=A9(YZ(t.text,i),r);return J9([XQ(ZC.createIdentifier(n),void 0,t,o),M9(void 0,XY(e),ZC.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(XD(i)){const{name:{text:e}}=i;if("default"===e){c=!0;const e=t.getText();(s??(s=new Map)).set(i,ZC.createIdentifier(e))}else{_n.assert(i.expression===t,"Didn't expect expression === use");let n=a.get(e);void 0===n&&(n=A9(e,r),a.set(e,n)),(s??(s=new Map)).set(i,ZC.createIdentifier(n))}}else c=!0}const l=0===a.size?void 0:Ie(F(a.entries(),(([e,t])=>ZC.createImportSpecifier(!1,e===t?void 0:ZC.createIdentifier(e),ZC.createIdentifier(t)))));l||(c=!0);return J9([XQ(c?XY(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(XD(l)&&Lm(l.expression,!0))return c=!0,function(e,t,n,r,i){switch(e.kind){case 206:case 207:{const o=A9(t,r);return J9([j9(o,t,n,i),M9(void 0,e,ZC.createIdentifier(o))])}case 80:return J9([j9(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 J9([ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([t],s.flags))])}));if(c){let r;return n.replaceNodeWithNodes(e,t,A(l,(e=>e.newImports))),_(l,(e=>{e.useSitesToUnqualify&&id(e.useSitesToUnqualify,r??(r=new Map))})),r}}function F9(e){return B9(void 0,e)}function E9(e){return B9([ZC.createExportSpecifier(!1,void 0,"default")],e)}function P9(e,t){return t&&V(Ie(t.keys()),(t=>Qb(e,t)))?Xe(e)?eZ(e,!0,n):QY(e,!0,n):e;function n(e){if(211===e.kind){const n=t.get(e);return t.delete(e),n}}}function A9(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function I9(e){const t=We();return O9(e,(e=>t.add(e.text,e))),t}function O9(e,t){VN(e)&&function(e){const{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:case 276:return t.propertyName!==e;default:return!0}}(e)&&t(e),e.forEachChild((e=>O9(e,t)))}function L9(e,t,n,r){return ZC.createFunctionDeclaration($(t,ZY(n.modifiers)),XY(n.asteriskToken),e,ZY(n.typeParameters),ZY(n.parameters),XY(n.type),ZC.converters.convertToFunctionBlock(P9(n.body,r)))}function j9(e,t,n,r){return"default"===t?XQ(ZC.createIdentifier(e),void 0,n,r):XQ(void 0,[R9(t,e)],n,r)}function R9(e,t){return ZC.createImportSpecifier(!1,void 0!==e&&e!==t?ZC.createIdentifier(e):void 0,ZC.createIdentifier(t))}function M9(e,t,n){return ZC.createVariableStatement(e,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(t,void 0,void 0,n)],2))}function B9(e,t){return ZC.createExportDeclaration(void 0,!1,e&&ZC.createNamedExports(e),void 0===t?void 0:ZC.createStringLiteral(t))}function J9(e,t){return{newImports:e,useSitesToUnqualify:t}}z7({errorCodes:G5,getCodeActions(e){X5=!0;const t=Kue.ChangeTracker.with(e,(t=>Q5(t,e.sourceFile,e.span.start,e.program.getTypeChecker())));return X5?[M7(K5,t,_a.Convert_to_async_function,K5,_a.Convert_all_to_async_functions)]:[]},fixIds:[K5],getAllCodeActions:e=>H7(e,G5,((t,n)=>Q5(t,n.file,n.start,e.program.getTypeChecker())))}),z7({errorCodes:[_a.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[R7("convertToEsModule",Kue.ChangeTracker.with(e,(e=>{const i=function(e,t,n,r,i){const o={original:I9(e),additional:new Set},a=function(e,t,n){const r=new Map;return w9(e,(e=>{const{text:i}=e.name;r.has(i)||!Ph(e.name)&&!t.resolveName(i,e,111551,!0)||r.set(i,A9(`_${i}`,n))})),r}(e,t,o);!function(e,t,n){w9(e,((r,i)=>{if(i)return;const{text:o}=r.name;n.replaceNode(e,r,ZC.createIdentifier(t.get(o)||o))}))}(e,a,n);let s,c=!1;for(const a of C(e.statements,FF)){const c=D9(e,a,n,t,o,r,i);c&&id(c,s??(s=new Map))}for(const l of C(e.statements,(e=>!FF(e)))){const _=N9(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,vk(n.getCompilerOptions()),eY(t,r));if(i)for(const i of n.getSourceFiles())C9(i,t,n,e,eY(i,r))})),_a.Convert_to_ES_module)]}});var z9="correctQualifiedNameToIndexedAccessType",q9=[_a.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 U9(e,t){const n=uc($X(e,t),oD);return _n.assert(!!n,"Expected position to be owned by a qualified name."),VN(n.left)?n:void 0}function V9(e,t,n){const r=n.right.text,i=ZC.createIndexedAccessTypeNode(ZC.createTypeReferenceNode(n.left,void 0),ZC.createLiteralTypeNode(ZC.createStringLiteral(r)));e.replaceNode(t,n,i)}z7({errorCodes:q9,getCodeActions(e){const t=U9(e.sourceFile,e.span.start);if(!t)return;const n=Kue.ChangeTracker.with(e,(n=>V9(n,e.sourceFile,t))),r=`${t.left.text}["${t.right.text}"]`;return[M7(z9,n,[_a.Rewrite_as_the_indexed_access_type_0,r],z9,_a.Rewrite_all_as_indexed_access_types)]},fixIds:[z9],getAllCodeActions:e=>H7(e,q9,((e,t)=>{const n=U9(t.file,t.start);n&&V9(e,t.file,n)}))});var W9=[_a.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],$9="convertToTypeOnlyExport";function H9(e,t){return et($X(t,e.start).parent,vE)}function K9(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=VZ(DQ(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return C(n.elements,(t=>{var n;return t===e||(null==(n=UZ(t,r))?void 0:n.code)===W9[0]}))}(t,n);if(o.length===r.elements.length)e.insertModifierBefore(n.sourceFile,156,r);else{const t=ZC.updateExportDeclaration(i,i.modifiers,!1,ZC.updateNamedExports(r,C(r.elements,(e=>!k(o,e)))),i.moduleSpecifier,void 0),a=ZC.createExportDeclaration(void 0,!0,ZC.createNamedExports(o),i.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,i,t,{leadingTriviaOption:Kue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Kue.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,i,a)}}z7({errorCodes:W9,getCodeActions:function(e){const t=Kue.ChangeTracker.with(e,(t=>K9(t,H9(e.span,e.sourceFile),e)));if(t.length)return[M7($9,t,_a.Convert_to_type_only_export,$9,_a.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[$9],getAllCodeActions:function(e){const t=new Set;return H7(e,W9,((n,r)=>{const i=H9(r,e.sourceFile);i&&xx(t,$B(i.parent.parent))&&K9(n,i,e)}))}});var G9=[_a._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,_a._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],X9="convertToTypeOnlyImport";function Q9(e,t){const{parent:n}=$X(e,t);return mE(n)||oE(n)&&n.importClause?n:void 0}function Y9(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(wce.Core.eachSymbolReferenceInFile(e.name,i,t,(e=>{const t=i.getSymbolAtLocation(e);return!!t&&i.symbolIsValue(t)||!xT(e)})))return!1}return!0}function Z9(e,t,n){var r;if(mE(n))e.replaceNode(t,n,ZC.updateImportSpecifier(n,!0,n.propertyName,n.name));else{const i=n.importClause;if(i.name&&i.namedBindings)e.replaceNodeWithNodes(t,n,[ZC.createImportDeclaration(ZY(n.modifiers,!0),ZC.createImportClause(!0,XY(i.name,!0),void 0),XY(n.moduleSpecifier,!0),XY(n.attributes,!0)),ZC.createImportDeclaration(ZY(n.modifiers,!0),ZC.createImportClause(!0,void 0,XY(i.namedBindings,!0)),XY(n.moduleSpecifier,!0),XY(n.attributes,!0))]);else{const o=275===(null==(r=i.namedBindings)?void 0:r.kind)?ZC.updateNamedImports(i.namedBindings,E(i.namedBindings.elements,(e=>ZC.updateImportSpecifier(e,!1,e.propertyName,e.name)))):i.namedBindings,a=ZC.updateImportDeclaration(n,n.modifiers,ZC.updateImportClause(i,!0,i.name,o),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,a)}}}z7({errorCodes:G9,getCodeActions:function(e){var t;const n=Q9(e.sourceFile,e.span.start);if(n){const r=Kue.ChangeTracker.with(e,(t=>Z9(t,e.sourceFile,n))),i=276===n.kind&&oE(n.parent.parent.parent)&&Y9(n,e.sourceFile,e.program)?Kue.ChangeTracker.with(e,(t=>Z9(t,e.sourceFile,n.parent.parent.parent))):void 0,o=M7(X9,r,276===n.kind?[_a.Use_type_0,(null==(t=n.propertyName)?void 0:t.text)??n.name.text]:_a.Use_import_type,X9,_a.Fix_all_with_type_only_imports);return V(i)?[R7(X9,i,_a.Use_import_type),o]:[o]}},fixIds:[X9],getAllCodeActions:function(e){const t=new Set;return H7(e,G9,((n,r)=>{const i=Q9(r.file,r.start);272!==(null==i?void 0:i.kind)||t.has(i)?276===(null==i?void 0:i.kind)&&oE(i.parent.parent.parent)&&!t.has(i.parent.parent.parent)&&Y9(i,r.file,e.program)?(Z9(n,r.file,i.parent.parent.parent),t.add(i.parent.parent.parent)):276===(null==i?void 0:i.kind)&&Z9(n,r.file,i):(Z9(n,r.file,i),t.add(i))}))}});var eee="convertTypedefToType",tee=[_a.JSDoc_typedef_may_be_converted_to_TypeScript_type.code];function nee(e,t,n,r,i=!1){if(!DP(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(322===n.kind)return function(e,t){const n=iee(t);if(!V(n))return;return ZC.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}(r,n);if(309===n.kind)return function(e,t){const n=XY(t.type);if(!n)return;return ZC.createTypeAliasDeclaration(void 0,ZC.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=r<n?t.getChildAt(r+1):void 0;return{leftSibling:i,rightSibling:o}}(t);let l=a.getStart(),_="";!s&&a.comment&&(l=ree(a,a.getStart(),t.getStart()),_=`${r} */${r}`),s&&(i&&DP(s)?(l=t.getStart(),_=""):(l=ree(a,s.getStart(),t.getStart()),_=`${r} */${r}`));let u=a.getEnd(),d="";c&&(i&&DP(c)?(u=c.getStart(),d=`${r}${r}`):(u=c.getStart(),d=`${r}/**${r} * `)),e.replaceRange(n,{pos:l,end:u},o,{prefix:_,suffix:d})}function ree(e,t,n){const r=e.getText().substring(t-e.getStart(),n-e.getStart());for(let e=r.length;e>0;e--)if(!/[*/\s]/.test(r.substring(e-1,e)))return t+e;return n}function iee(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&&cP(r)){const e=iee(r);o=ZC.createTypeLiteralNode(e)}else r&&(o=XY(r));if(o&&n){const e=i?ZC.createToken(58):void 0;return ZC.createPropertySignature(void 0,n,e,o)}}))}function oee(e){return Du(e)?A(e.jsDoc,(e=>{var t;return null==(t=e.tags)?void 0:t.filter((e=>DP(e)))})):[]}z7({fixIds:[eee],errorCodes:tee,getCodeActions(e){const t=RY(e.host,e.formatContext.options),n=$X(e.sourceFile,e.span.start);if(!n)return;const r=Kue.ChangeTracker.with(e,(r=>nee(r,n,e.sourceFile,t)));return r.length>0?[M7(eee,r,_a.Convert_typedef_to_TypeScript_type,eee,_a.Convert_all_typedef_to_TypeScript_types)]:void 0},getAllCodeActions:e=>H7(e,tee,((t,n)=>{const r=RY(e.host,e.formatContext.options),i=$X(n.file,n.start);i&&nee(t,i,n.file,r,!0)}))});var aee="convertLiteralTypeToMappedType",see=[_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];function cee(e,t){const n=$X(e,t);if(VN(n)){const t=tt(n.parent.parent,_D),r=n.getText(e);return{container:tt(t.parent,wD),typeNode:t.type,constraint:r,name:"K"===r?"P":"K"}}}function lee(e,t,{container:n,typeNode:r,constraint:i,name:o}){e.replaceNode(t,n,ZC.createMappedTypeNode(void 0,ZC.createTypeParameterDeclaration(void 0,o,ZC.createTypeReferenceNode(i)),void 0,void 0,r,void 0))}z7({errorCodes:see,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=cee(t,n.start);if(!r)return;const{name:i,constraint:o}=r,a=Kue.ChangeTracker.with(e,(e=>lee(e,t,r)));return[M7(aee,a,[_a.Convert_0_to_1_in_0,o,i],aee,_a.Convert_all_type_literals_to_mapped_type)]},fixIds:[aee],getAllCodeActions:e=>H7(e,see,((e,t)=>{const n=cee(t.file,t.start);n&&lee(e,t.file,n)}))});var _ee=[_a.Class_0_incorrectly_implements_interface_1.code,_a.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],uee="fixClassIncorrectlyImplementsInterface";function dee(e,t){return _n.checkDefined(Xf($X(e,t)),"There should be a containing class")}function pee(e){return!(e.valueDeclaration&&2&Jv(e.valueDeclaration))}function fee(e,t,n,r,i,o){const a=e.program.getTypeChecker(),s=function(e,t){const n=yh(e);if(!n)return Ku();const r=t.getTypeAtLocation(n),i=t.getPropertiesOfType(r);return Ku(i.filter(pee))}(r,a),c=a.getTypeAtLocation(t),l=a.getPropertiesOfType(c).filter(Yt(pee,(e=>!s.has(e.escapedName)))),_=a.getTypeAtLocation(r),u=y(r.members,(e=>mD(e)));_.getNumberIndexType()||p(c,1),_.getStringIndexType()||p(c,0);const d=yee(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,zie(e)))}function f(e,t,n){u?i.insertNodeAfter(e,u,n):i.insertMemberAtStart(e,t,n)}Jie(r,l,n,e,o,d,(e=>f(n,r,e))),d.writeFixes(i)}z7({errorCodes:_ee,getCodeActions(e){const{sourceFile:t,span:n}=e,r=dee(t,n.start);return R(bh(r),(n=>{const i=Kue.ChangeTracker.with(e,(i=>fee(e,n,t,r,i,e.preferences)));return 0===i.length?void 0:M7(uee,i,[_a.Implement_interface_0,n.getText(t)],uee,_a.Implement_all_unimplemented_interfaces)}))},fixIds:[uee],getAllCodeActions(e){const t=new Set;return H7(e,_ee,((n,r)=>{const i=dee(r.file,r.start);if(xx(t,$B(i)))for(const t of bh(i))fee(e,t,r.file,i,n,e.preferences)}))}});var mee="import",gee="fixMissingImport",hee=[_a.Cannot_find_name_0.code,_a.Cannot_find_name_0_Did_you_mean_1.code,_a.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_a.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_a.Cannot_find_namespace_0.code,_a._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,_a._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,_a.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,_a._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,_a.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,_a.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,_a.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,_a.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,_a.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,_a.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,_a.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,_a.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,_a.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,_a.Cannot_find_namespace_0_Did_you_mean_1.code,_a.Cannot_extend_an_interface_0_Did_you_mean_implements.code,_a.This_JSX_tag_requires_0_to_be_in_scope_but_it_could_not_be_found.code];function yee(e,t,n,r,i){return vee(e,t,!1,n,r,i)}function vee(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=Aee(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=GZ(n,vk(a)),f=t.getTypeChecker(),m=f.getMergedSymbol(ax(n,f)),g=Cee(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=Eee(e,t);let y=See(e,g,t,void 0,!!s,h,i,r);if(y){const e=(null==(_=et(null==c?void 0:c.name,VN))?void 0:_.text)??d;let t,r;c&&Bl(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=HQ(t,i),m=GM.getModuleSpecifiersWithCacheInfo(d,u,a,e,f,r,void 0,!0),g=Eee(e,t);let h=Dee(o,!0,void 0,n.flags,t.getTypeChecker(),a);h=1===h&&Bl(s)?2:1;const y=oE(s)?Tg(s)?1:2:mE(s)?0:aE(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=See(e,v,t,void 0,!!o,g,i,r);let x;x=b&&2!==y?{...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:eY(e,r);for(const n of s)Vee(t,e,n);for(const n of c)Wee(t,e,n,u);if(_.size){_n.assert(Dm(e),"Cannot remove imports from a future source file");const n=new Set(R([..._],(e=>uc(e,oE)))),r=new Set(R([..._],(e=>uc(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,dE)||_.has(e.importClause.namedBindings))&&(!et(null==(r=e.importClause)?void 0:r.namedBindings,fE)||h(e.importClause.namedBindings.elements,(e=>_.has(e))))})),s=[...r].filter((e=>(206!==e.name.kind||!l.has(e.name))&&(206!==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)&&(274===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,ZC.updateImportClause(n.importClause,n.importClause.isTypeOnly,n.importClause.name,void 0));for(const n of _){const r=uc(n,oE);r&&-1===a.indexOf(r)&&-1===c.indexOf(r)?273===n.kind?t.delete(e,n.name):(_n.assert(276===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)):208===n.kind?(null==(o=l.get(n.parent))?void 0:o.namedImports)?(p??(p=new Set)).add(n):t.delete(e,n):271===n.kind&&t.delete(e,n)}}l.forEach((({importClauseOrBindingPattern:n,defaultImport:i,namedImports:o})=>{Uee(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?Xee:Gee)(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&&_Y(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=Mee(e,t,n),i=BZ(e.sourceFile,e.preferences,e.host);return r&&Iee(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=Eee(e,t);if(_&&_.symbol){const{fixes:a}=Nee([{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 _=u0(o,99,t,i);p({fix:{kind:3,moduleSpecifierKind:"relative",moduleSpecifier:GM.getLocalModuleSpecifierBetweenFileNames(e,o,a,HQ(t,i),r),importKind:Ree(_,s,t),addAsTypeOnly:Dee(l,!0,void 0,c,t.getTypeChecker(),a),useRequire:u},symbolName:n,errorIdentifierText:n})}},removeExistingImport:function(e){273===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=>uc(e,oE)))),t=new Set(R([...u],(e=>uc(e,Jm))));return[...R([...u],(e=>271===e.kind?XY(e,!0):void 0)),...[...e].map((e=>{var t;return u.has(e)?XY(e,!0):XY(ZC.updateImportDeclaration(e,e.modifiers,e.importClause&&ZC.updateImportClause(e.importClause,e.importClause.isTypeOnly,u.has(e.importClause)?e.importClause.name:void 0,u.has(e.importClause.namedBindings)?e.importClause.namedBindings:(null==(t=et(e.importClause.namedBindings,fE))?void 0:t.elements.some((e=>u.has(e))))?ZC.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)?XY(e,!0):XY(ZC.updateVariableStatement(e,e.modifiers,ZC.updateVariableDeclarationList(e.declarationList,R(e.declarationList.declarations,(e=>u.has(e)?e:ZC.updateVariableDeclaration(e,206===e.name.kind?ZC.updateObjectBindingPattern(e.name,e.name.elements.filter((e=>u.has(e)))):e.name,e.exclamationToken,e.type,e.initializer))))),!0)))]}}function bee(e,t,n,r){const i=BZ(e,r,n),o=Fee(e,t);return{getModuleSpecifierForBestExportInfo:function(a,s,c,l){const{fixes:_,computedWithoutCacheCount:u}=Nee(a,s,c,!1,t,e,n,r,o,l),d=Oee(_,e,t,i,n,r);return d&&{...d,computedWithoutCacheCount:u}}}}function xee(e,t,n,r,i,o,a,s,c,l,_,u){let d;n?(d=k0(r,a,s,_,u).get(r.path,n),_n.assertIsDefined(d,"Some exportInfo should match the specified exportMapKey")):(d=xo(Fy(t.name))?[wee(e,i,t,s,a)]:Cee(r,e,i,t,o,s,a,_,u),_n.assertIsDefined(d,"Some exportInfo should match the specified symbol / moduleSymbol"));const p=Eee(r,s),f=xT($X(r,l)),m=_n.checkDefined(See(r,d,s,l,f,p,a,_));return{moduleSpecifier:m.moduleSpecifier,codeAction:Tee(zee({host:a,formatContext:c,preferences:_},r,i,m,!1,s,_))}}function kee(e,t,n,r,i,o){const a=n.getCompilerOptions(),s=be(Jee(e,n.getTypeChecker(),t,a)),c=Bee(e,t,s,n),l=s!==t.text;return c&&Tee(zee({host:r,formatContext:i,preferences:o},e,s,c,l,n,o))}function See(e,t,n,r,i,o,a,s){const c=BZ(e,s,a);return Oee(Nee(t,r,i,o,n,e,a,s).fixes,e,n,c,a,s)}function Tee({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function Cee(e,t,n,r,i,o,a,s,c){const l=Pee(o,a),_=s.autoImportFileExcludePatterns&&x0(a,s),u=o.getTypeChecker().getMergedSymbol(r),d=_&&u.declarations&&$u(u,307),p=d&&_(d);return k0(e,a,o,s,c).search(e.path,i,(e=>e===n),(e=>{const n=l(e[0].isFromPackageJson);if(n.getMergedSymbol(ax(e[0].symbol,n))===t&&(p||e.some((e=>n.getMergedSymbol(e.moduleSymbol)===r||e.symbol.parent===r))))return e}))}function wee(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=S0(n,r);if(o&&ax(o.symbol,r)===e)return{symbol:o.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:o.exportKind,targetFlags:ax(e,r).flags,isFromPackageJson:i};const a=r.tryGetMemberInModuleExportsAndProperties(t,n);return a&&ax(a,r)===e?{symbol:a,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:ax(e,r).flags,isFromPackageJson:i}:void 0}}function Nee(e,t,n,r,i,o,a,c,l=(Dm(o)?Fee(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 260:return null==(t=et(e.name,VN))?void 0:t.text;case 271:return e.name.text;case 351:case 272:return null==(r=et(null==(n=e.importClause)?void 0:n.namedBindings,dE))?void 0:r.name.text;default:return _n.assertNever(e)}}(e),o=i&&(null==(r=yg(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=Bl(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||271===e.kind)return;if(260===e.kind)return 0!==i&&1!==i||206!==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||!ju(e.moduleSpecifier))return;const{name:c,namedBindings:l}=s;if(s.isTypeOnly&&(0!==i||!l))return;const _=Dee(t,!1,o,a,n,r);return 1===i&&(c||2===_&&l)||0===i&&274===(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=yg(e))?void 0:c.text;if(l){return{kind:3,moduleSpecifierKind:void 0,moduleSpecifier:l,importKind:t,addAsTypeOnly:o?4:Dee(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=LS(t.fileName),_=e.getCompilerOptions(),u=HQ(e,a),d=Pee(e,a),p=GQ(xk(_)),f=c?e=>GM.tryGetModuleSpecifiersFromCache(e.moduleSymbol,t,u,s):(e,n)=>GM.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=Dee(r,!0,o.symbol,o.targetFlags,s,_);return m+=c?1:0,R(u,(r=>{if(p&&qR(r))return;if(!h&&l&&void 0!==n)return{kind:1,moduleSpecifierKind:g,moduleSpecifier:r,usagePosition:n,exportInfo:o,isReExport:a>0};const c=Ree(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=C0(e,s,vk(_),at)),t||(t=QZ(o.moduleSymbol,vk(_),!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 Dee(e,t,n,r,i,o){return e?!n||!o.verbatimModuleSyntax||111551&r&&!i.getTypeOnlyAliasDeclaration(n)?1:2:4}function Fee(e,t){const n=t.getTypeChecker();let r;for(const t of e.imports){const e=vg(t);if(jm(e.parent)){const i=n.resolveExternalModuleName(t);i&&(r||(r=We())).add(HB(i),e.parent)}else if(272===e.kind||271===e.kind||351===e.kind){const i=n.getSymbolAtLocation(t);i&&(r||(r=We())).add(HB(i),e)}}return{getImportsForExportInfo:({moduleSymbol:n,exportKind:i,targetFlags:o,symbol:a})=>{const c=null==r?void 0:r.get(HB(n));if(!c)return s;if(Fm(e)&&!(111551&o)&&!h(c,OP))return s;const l=Ree(e,i,t);return c.map((e=>({declaration:e,importKind:l,symbol:a,targetFlags:o})))}}}function Eee(e,t){if(!LS(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 bk(n)<5;if(1===Zee(e,t))return!0;if(99===Zee(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 Pee(e,t){return dt((n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker()))}function Aee(e,t,n,r){const i=$X(e.sourceFile,n);let o;if(t===_a._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=VN(e)?t.getSymbolAtLocation(e):void 0;if(yx(n))return n;const{parent:r}=e;if(bu(r)&&r.tagName===e||EE(r)){const n=t.resolveName(t.getJsxNamespace(r),bu(r)?e:r,111551,!1);if(yx(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}],_=Eee(e,t);return Nee(l,void 0,!1,_,t,e,n,r).fixes.map((e=>{var t;return{fix:e,symbolName:c,errorIdentifierText:null==(t=et(i,VN))?void 0:t.text}}))}(e,i);else{if(!VN(i))return;if(t===_a._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const t=be(Jee(e.sourceFile,e.program.getTypeChecker(),i,e.program.getCompilerOptions())),n=Bee(e.sourceFile,i,t,e.program);return n&&[{fix:n,symbolName:t,errorIdentifierText:i.text}]}o=Mee(e,i,r)}const a=BZ(e.sourceFile,e.preferences,e.host);return o&&Iee(o,e.sourceFile,e.program,a,e.host,e.preferences)}function Iee(e,t,n,r,i,o){const a=e=>Uo(e,i.getCurrentDirectory(),Ry(i));return le(e,((e,i)=>It(!!e.isJsxNamespaceFix,!!i.isJsxNamespaceFix)||yt(e.fix.kind,i.fix.kind)||Lee(e.fix,i.fix,t,n,o,r.allowsImportingSpecifier,a)))}function Oee(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===Lee(a,e,t,n,o,r.allowsImportingSpecifier,(e=>Uo(e,i.getCurrentDirectory(),Ry(i))))?a:e))}function Lee(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:")?n0(n,r)?-1:1:Kt(t,"node:")&&!Kt(e,"node:")?n0(n,r)?1:-1:0}(e.moduleSpecifier,t.moduleSpecifier,n,r)||It(jee(e,n.path,a),jee(t,n.path,a))||qS(e.moduleSpecifier,t.moduleSpecifier):0}function jee(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 Ree(e,t,n,r){if(n.getCompilerOptions().verbatimModuleSyntax&&1===function(e,t){return Dm(e)?t.getEmitModuleFormatOfFile(e):AV(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=Ck(t),i=LS(e.fileName);if(!i&&bk(t)>=5)return r?1:2;if(i)return e.externalModuleIndicator||n?r?1:2:3;for(const t of e.statements??s)if(iE(t)&&!wd(t.moduleReference))return 3;return r?1:3}(e,n.getCompilerOptions(),!!r);case 3:return function(e,t,n){if(Ck(t.getCompilerOptions()))return 1;const r=bk(t.getCompilerOptions());switch(r){case 2:case 1:case 3:return LS(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 199:return 99===Zee(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 Mee({sourceFile:e,program:t,cancellationToken:n,host:r,preferences:i},o,a){const s=t.getTypeChecker(),c=t.getCompilerOptions();return A(Jee(e,s,o,c),(s=>{if("default"===s)return;const c=xT(o),l=Eee(e,t),_=function(e,t,n,r,i,o,a,s,c){var l;const _=We(),u=BZ(i,c,s),d=null==(l=s.getModuleSpecifierCache)?void 0:l.call(s),p=dt((e=>HQ(e?s.getPackageJsonAutoImportProvider():o,s)));function f(e,t,n,r,o,a){const s=p(a);if(m0(o,i,t,e,c,u,s,d)){const i=o.getTypeChecker();_.add(HY(n,i).toString(),{symbol:n,moduleSymbol:e,moduleFileName:null==t?void 0:t.fileName,exportKind:r,targetFlags:ax(n,i).flags,isFromPackageJson:a})}}return h0(o,s,c,a,((i,o,a,s)=>{const c=a.getTypeChecker();r.throwIfCancellationRequested();const l=a.getCompilerOptions(),_=S0(i,c);_&&Yee(c.getSymbolFlags(_.symbol),n)&&C0(_.symbol,c,vk(l),((n,r)=>(t?r??n:n)===e))&&f(i,o,_.symbol,_.exportKind,a,s);const u=c.tryGetMemberInModuleExportsAndProperties(e,i);u&&Yee(c.getSymbolFlags(u),n)&&f(i,o,u,0,a,s)})),_}(s,vm(o),UG(o),n,e,t,a,r,i);return Ie(O(_.values(),(n=>Nee(n,o.getStart(e),c,l,t,e,r,i).fixes)),(e=>({fix:e,symbolName:s,errorIdentifierText:o.text,isJsxNamespaceFix:s!==o.text})))}))}function Bee(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&&yd(a)===e?{kind:4,typeOnlyAliasDeclaration:a}:void 0}function Jee(e,t,n,r){const i=n.parent;if((bu(i)||DE(i))&&i.tagName===n&&a0(r.jsx)){const r=t.getJsxNamespace(e);if(function(e,t,n){if(Ey(t.text))return!0;const r=n.resolveName(e,t,111551,!0);return!r||V(r.declarations,zl)&&!(111551&r.flags)}(r,n,t)){return!Ey(n.text)&&!t.resolveName(n.text,n,111551,!1)?[n.text,r]:[r]}}return[n.text]}function zee(e,t,n,r,i,o,a){let c;const l=Kue.ChangeTracker.with(e,(e=>{c=function(e,t,n,r,i,o,a){const c=eY(t,a);switch(r.kind){case 0:return Vee(e,t,r),[_a.Change_0_to_1,n,`${r.namespacePrefix}.${n}`];case 1:return Wee(e,t,r,c),[_a.Change_0_to_1,n,$ee(r.moduleSpecifier,c)+n];case 2:{const{importClauseOrBindingPattern:o,importKind:c,addAsTypeOnly:l,moduleSpecifier:_}=r;Uee(e,t,o,1===c?{name:n,addAsTypeOnly:l}:void 0,0===c?[{name:n,addAsTypeOnly:l}]:s,void 0,a);const u=Fy(_);return i?[_a.Import_0_from_1,n,u]:[_a.Update_import_from_0,u]}case 3:{const{importKind:s,moduleSpecifier:l,addAsTypeOnly:_,useRequire:u,qualification:d}=r;return _Y(e,t,(u?Xee:Gee)(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&&Vee(e,t,d),i?[_a.Import_0_from_1,n,l]:[_a.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 276:if(t.isTypeOnly){if(t.parent.elements.length>1){const n=ZC.updateImportSpecifier(t,!1,t.propertyName,t.name),{specifierComparer:o}=c_e.getNamedImportSpecifierComparerWithDetection(t.parent.parent.parent,i,r),a=c_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:Jd(t.getFirstToken()),end:Jd(t.propertyName??t.name)}),t}return _n.assert(t.parent.parent.isTypeOnly),s(t.parent.parent),t.parent.parent;case 273:return s(t),t;case 274:return s(t.parent),t.parent;case 271:return e.deleteRange(r,t.getChildAt(1)),t;default:_n.failBadSyntaxKind(t)}function s(s){var c;if(e.delete(r,uY(s,r)),!o.allowImportingTsExtensions){const t=yg(s.parent),i=t&&(null==(c=n.getResolvedModuleFromModuleSpecifier(t,r))?void 0:c.resolvedModule);if(null==i?void 0:i.resolvedUsingTsExtension){const n=Ho(t.text,Vq(t.text,o));e.replaceNode(r,t,ZC.createStringLiteral(n))}}if(a){const n=et(s.namedBindings,fE);if(n&&n.elements.length>1){!1!==c_e.getNamedImportSpecifierComparerWithDetection(s.parent,i,r).isSorted&&276===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 276===s.kind?[_a.Remove_type_from_import_of_0_from_1,n,qee(s.parent.parent)]:[_a.Remove_type_from_import_declaration_from_0,qee(s)]}default:return _n.assertNever(r,`Unexpected fix kind ${r.kind}`)}}(e,t,n,r,i,o,a)}));return M7(mee,l,c,gee,_a.Add_all_missing_imports)}function qee(e){var t,n;return 271===e.kind?(null==(n=et(null==(t=et(e.moduleReference,TE))?void 0:t.expression,ju))?void 0:n.text)||e.moduleReference.getText():tt(e.parent.moduleSpecifier,NN).text}function Uee(e,t,n,r,i,o,a){var c;if(206===n.kind){if(o&&n.elements.some((e=>o.has(e))))return void e.replaceNode(t,n,ZC.createObjectBindingPattern([...n.elements.filter((e=>!o.has(e))),...r?[ZC.createBindingElement(void 0,"default",r.name)]:s,...i.map((e=>ZC.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,fE))?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),ZC.createIdentifier(r.name),{suffix:", "})),i.length){const{specifierComparer:r,isSorted:s}=c_e.getNamedImportSpecifierComparerWithDetection(n.parent,a,t),c=le(i.map((e=>ZC.createImportSpecifier((!n.isTypeOnly||l)&&Kee(e,a),void 0===e.propertyName?void 0:ZC.createIdentifier(e.propertyName),ZC.createIdentifier(e.name)))),r);if(o)e.replaceNode(t,n.namedBindings,ZC.updateNamedImports(n.namedBindings,le([..._.filter((e=>!o.has(e))),...c],r)));else if((null==_?void 0:_.length)&&!1!==s){const i=l&&_?ZC.updateNamedImports(n.namedBindings,E(_,(e=>ZC.updateImportSpecifier(e,!0,e.propertyName,e.name)))).elements:_;for(const o of c){const a=c_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=ZC.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,uY(n,t)),_))for(const n of _)e.insertModifierBefore(t,156,n);function u(n,r,i){const o=ZC.createBindingElement(void 0,i,r);n.elements.length?e.insertNodeInListAfter(t,ye(n.elements),o):e.replaceNode(t,n,ZC.createObjectBindingPattern([o]))}}function Vee(e,t,{namespacePrefix:n,usagePosition:r}){e.insertText(t,r,n+".")}function Wee(e,t,{moduleSpecifier:n,usagePosition:r},i){e.insertText(t,r,$ee(n,i))}function $ee(e,t){const n=tY(t);return`import(${n}${e}${n}).`}function Hee({addAsTypeOnly:e}){return 2===e}function Kee(e,t){return Hee(e)||!!t.preferTypeOnlyAutoImports&&4!==e.addAsTypeOnly}function Gee(e,t,n,r,i,o,a){const s=QQ(e,t);let c;if(void 0!==n||(null==r?void 0:r.length)){const i=(!n||Hee(n))&&h(r,Hee)||(o.verbatimModuleSyntax||a.preferTypeOnlyAutoImports)&&4!==(null==n?void 0:n.addAsTypeOnly)&&!V(r,(e=>4===e.addAsTypeOnly));c=ie(c,XQ(n&&ZC.createIdentifier(n.name),null==r?void 0:r.map((e=>ZC.createImportSpecifier(!i&&Kee(e,a),void 0===e.propertyName?void 0:ZC.createIdentifier(e.propertyName),ZC.createIdentifier(e.name)))),e,t,i))}if(i){c=ie(c,3===i.importKind?ZC.createImportEqualsDeclaration(void 0,Kee(i,a),ZC.createIdentifier(i.name),ZC.createExternalModuleReference(s)):ZC.createImportDeclaration(void 0,ZC.createImportClause(Kee(i,a),void 0,ZC.createNamespaceImport(ZC.createIdentifier(i.name))),s,void 0))}return _n.checkDefined(c)}function Xee(e,t,n,r,i){const o=QQ(e,t);let a;if(n||(null==r?void 0:r.length)){const e=(null==r?void 0:r.map((({name:e,propertyName:t})=>ZC.createBindingElement(void 0,t,e))))||[];n&&e.unshift(ZC.createBindingElement(void 0,"default",n.name));a=ie(a,Qee(ZC.createObjectBindingPattern(e),o))}if(i){a=ie(a,Qee(i.name,o))}return _n.checkDefined(a)}function Qee(e,t){return ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration("string"==typeof e?ZC.createIdentifier(e):e,void 0,void 0,ZC.createCallExpression(ZC.createIdentifier("require"),void 0,[t]))],2))}function Yee(e,t){return 7===t||(1&t?!!(111551&e):2&t?!!(788968&e):!!(4&t)&&!!(1920&e))}function Zee(e,t){return Dm(e)?t.getImpliedNodeFormatForEmit(e):IV(e,t.getCompilerOptions())}z7({errorCodes:hee,getCodeActions(e){const{errorCode:t,preferences:n,sourceFile:r,span:i,program:o}=e,a=Aee(e,t,i.start,!0);if(a)return a.map((({fix:t,symbolName:i,errorIdentifierText:a})=>zee(e,r,i,t,i!==a,o,n)))},fixIds:[gee],getAllCodeActions:e=>{const{sourceFile:t,program:n,preferences:r,host:i,cancellationToken:o}=e,a=vee(t,n,!0,r,i,o);return K7(e,hee,(t=>a.addImportFromDiagnostic(t,e))),W7(Kue.ChangeTracker.with(e,a.writeFixes))}});var ete="addMissingConstraint",tte=[_a.Type_0_is_not_comparable_to_type_1.code,_a.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,_a.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,_a.Type_0_is_not_assignable_to_type_1.code,_a.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,_a.Property_0_is_incompatible_with_index_signature.code,_a.Property_0_in_type_1_is_not_assignable_to_type_2.code,_a.Type_0_does_not_satisfy_the_constraint_1.code];function nte(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===_a.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=_oe(i.file,Ws(i.start,i.length));if(void 0!==o&&(VN(o)&&sD(o.parent)&&(o=o.parent),sD(o))){if(JD(o.parent))return;const r=$X(t,n.start),a=function(e,t){if(b_(t.parent))return e.getTypeArgumentConstraint(t.parent);const n=V_(t)?e.getContextualType(t):void 0;return n||e.getTypeAtLocation(t)}(e.getTypeChecker(),r)||function(e){const[,t]=ZU(e,"\n",0).match(/`extends (.*)`/)||[];return t}(i.messageText);return{constraint:a,declaration:o,token:r}}}function rte(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=vk(t.getCompilerOptions()),l=zie({program:t,host:r}),_=yee(i,t,n,r),u=Hie(c,_,s,void 0,o,void 0,void 0,l);u&&(e.replaceNode(i,a,ZC.updateTypeParameterDeclaration(a,void 0,a.name,u,a.default)),_.writeFixes(e))}}z7({errorCodes:tte,getCodeActions(e){const{sourceFile:t,span:n,program:r,preferences:i,host:o}=e,a=nte(r,t,n);if(void 0===a)return;const s=Kue.ChangeTracker.with(e,(e=>rte(e,r,i,o,t,a)));return[M7(ete,s,_a.Add_extends_constraint,ete,_a.Add_extends_constraint_to_all_type_parameters)]},fixIds:[ete],getAllCodeActions:e=>{const{program:t,preferences:n,host:r}=e,i=new Set;return W7(Kue.ChangeTracker.with(e,(o=>{K7(e,tte,(e=>{const a=nte(t,e.file,Ws(e.start,e.length));if(a&&xx(i,$B(a.declaration)))return rte(o,t,n,r,e.file,a)}))})))}});var ite="fixOverrideModifier",ote="fixAddOverrideModifier",ate="fixRemoveOverrideModifier",ste=[_a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,_a.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,_a.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,_a.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,_a.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,_a.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,_a.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],cte={[_a.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_a.Add_override_modifier,fixId:ote,fixAllDescriptions:_a.Add_all_missing_override_modifiers},[_a.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_a.Add_override_modifier,fixId:ote,fixAllDescriptions:_a.Add_all_missing_override_modifiers},[_a.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:_a.Remove_override_modifier,fixId:ate,fixAllDescriptions:_a.Remove_all_unnecessary_override_modifiers},[_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:_a.Remove_override_modifier,fixId:ate,fixAllDescriptions:_a.Remove_override_modifier},[_a.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:_a.Add_override_modifier,fixId:ote,fixAllDescriptions:_a.Add_all_missing_override_modifiers},[_a.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:_a.Add_override_modifier,fixId:ote,fixAllDescriptions:_a.Add_all_missing_override_modifiers},[_a.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:_a.Add_override_modifier,fixId:ote,fixAllDescriptions:_a.Remove_all_unnecessary_override_modifiers},[_a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:_a.Remove_override_modifier,fixId:ate,fixAllDescriptions:_a.Remove_all_unnecessary_override_modifiers},[_a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:_a.Remove_override_modifier,fixId:ate,fixAllDescriptions:_a.Remove_all_unnecessary_override_modifiers}};function lte(e,t,n,r){switch(n){case _a.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case _a.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case _a.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case _a.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case _a.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=ute(t,n);if(Fm(t))return void e.addJSDocTags(t,r,[ZC.createJSDocOverrideTag(ZC.createIdentifier("override"))]);const i=r.modifiers||s,o=y(i,YN),a=y(i,ZN),c=y(i,(e=>xQ(e.kind))),l=v(i,lD),_=a?a.end:o?o.end:c?c.end:l?Qa(t.text,l.end):r.getStart(t),u=c||o||a?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,_,164,u)}(e,t.sourceFile,r);case _a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case _a.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case _a.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case _a.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=ute(t,n);if(Fm(t))return void e.filterJSDocTags(t,r,en(yP));const i=y(r.modifiers,eD);_n.assertIsDefined(i),e.deleteModifier(t,i)}(e,t.sourceFile,r);default:_n.fail("Unexpected error code: "+n)}}function _te(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return Zs(e,e.parent);default:return!1}}function ute(e,t){const n=uc($X(e,t),(e=>u_(e)?"quit":_te(e)));return _n.assert(n&&_te(n)),n}z7({errorCodes:ste,getCodeActions:function(e){const{errorCode:t,span:n}=e,r=cte[t];if(!r)return s;const{descriptions:i,fixId:o,fixAllDescriptions:a}=r,c=Kue.ChangeTracker.with(e,(r=>lte(r,e,t,n.start)));return[B7(ite,c,i,o,a)]},fixIds:[ite,ote,ate],getAllCodeActions:e=>H7(e,ste,((t,n)=>{const{code:r,start:i}=n,o=cte[r];o&&o.fixId===e.fixId&&lte(t,e,r,i)}))});var dte="fixNoPropertyAccessFromIndexSignature",pte=[_a.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code];function fte(e,t,n,r){const i=eY(t,r),o=ZC.createStringLiteral(n.name.text,0===i);e.replaceNode(t,n,fl(n)?ZC.createElementAccessChain(n.expression,n.questionDotToken,o):ZC.createElementAccessExpression(n.expression,o))}function mte(e,t){return tt($X(e,t).parent,XD)}z7({errorCodes:pte,fixIds:[dte],getCodeActions(e){const{sourceFile:t,span:n,preferences:r}=e,i=mte(t,n.start),o=Kue.ChangeTracker.with(e,(t=>fte(t,e.sourceFile,i,r)));return[M7(dte,o,[_a.Use_element_access_for_0,i.name.text],dte,_a.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>H7(e,pte,((t,n)=>fte(t,n.file,mte(n.file,n.start),e.preferences)))});var gte="fixImplicitThis",hte=[_a.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function yte(e,t,n,r){const i=$X(t,n);if(!hX(i))return;const o=em(i,!1,!1);if((GF(o)||rF(o))&&!WE(em(o,!1,!1))){const n=_n.checkDefined(AX(o,100,t)),{name:i}=o,a=_n.checkDefined(o.body);if(rF(o)){if(i&&wce.Core.isSymbolReferencedInFile(i,r,t,a))return;return e.delete(t,n),i&&e.delete(t,i),e.insertText(t,a.pos," =>"),[_a.Convert_function_expression_0_to_arrow_function,i?i.text:xZ]}return e.replaceNode(t,n,ZC.createToken(87)),e.insertText(t,i.end," = "),e.insertText(t,a.pos," =>"),[_a.Convert_function_declaration_0_to_arrow_function,i.text]}}z7({errorCodes:hte,getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e;let i;const o=Kue.ChangeTracker.with(e,(e=>{i=yte(e,t,r.start,n.getTypeChecker())}));return i?[M7(gte,o,i,gte,_a.Fix_all_implicit_this_errors)]:s},fixIds:[gte],getAllCodeActions:e=>H7(e,hte,((t,n)=>{yte(t,n.file,n.start,e.program.getTypeChecker())}))});var vte="fixImportNonExportedMember",bte=[_a.Module_0_declares_1_locally_but_it_is_not_exported.code];function xte(e,t,n){var r,i;const o=$X(e,t);if(VN(o)){const t=uc(o,oE);if(void 0===t)return;const a=NN(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||s0(n,c))return;const _=null==(i=et(c.symbol.valueDeclaration,su))?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=HF(t)?et(t.parent.parent,FF):void 0;return n&&1===l(n.declarationList.declarations)?n:t}(u);if(void 0===d)return;return{exportName:{node:o,isTypeOnly:WT(d)},node:d,moduleSourceFile:c,moduleSpecifier:a.text}}}function kte(e,t,n,r,i){l(r)&&(i?Tte(e,t,n,i,r):Cte(e,t,n,r))}function Ste(e,t){return v(e.statements,(e=>hE(e)&&(t&&e.isTypeOnly||!e.isTypeOnly)))}function Tte(e,t,n,r,i){const o=r.exportClause&&yE(r.exportClause)?r.exportClause.elements:ZC.createNodeArray([]),a=!(r.isTypeOnly||!Sk(t.getCompilerOptions())&&!y(o,(e=>e.isTypeOnly)));e.replaceNode(n,r,ZC.updateExportDeclaration(r,r.modifiers,r.isTypeOnly,ZC.createNamedExports(ZC.createNodeArray([...o,...wte(i,a)],o.hasTrailingComma)),r.moduleSpecifier,r.attributes))}function Cte(e,t,n,r){e.insertNodeAtEndOfScope(n,n,ZC.createExportDeclaration(void 0,!1,ZC.createNamedExports(wte(r,Sk(t.getCompilerOptions()))),void 0,void 0))}function wte(e,t){return ZC.createNodeArray(D(e,(e=>ZC.createExportSpecifier(t&&e.isTypeOnly,void 0,e.node))))}z7({errorCodes:bte,fixIds:[vte],getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=xte(t,n.start,r);if(void 0===i)return;const o=Kue.ChangeTracker.with(e,(e=>function(e,t,{exportName:n,node:r,moduleSourceFile:i}){const o=Ste(i,n.isTypeOnly);o?Tte(e,t,i,o,[n]):$T(r)?e.insertExportModifier(i,r):Cte(e,t,i,[n])}(e,r,i)));return[M7(vte,o,[_a.Export_0_from_module_1,i.exportName.node.text,i.moduleSpecifier],vte,_a.Export_all_referenced_locals)]},getAllCodeActions(e){const{program:t}=e;return W7(Kue.ChangeTracker.with(e,(n=>{const r=new Map;K7(e,bte,(e=>{const i=xte(e.file,e.start,t);if(void 0===i)return;const{exportName:o,node:a,moduleSourceFile:s}=i;if(void 0===Ste(s,o.isTypeOnly)&&$T(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=Ste(r,!0);i&&i.isTypeOnly?(kte(n,t,r,e.typeOnlyExports,i),kte(n,t,r,e.exports,Ste(r,!1))):kte(n,t,r,[...e.exports,...e.typeOnlyExports],i)}))})))}});var Nte="fixIncorrectNamedTupleSyntax";z7({errorCodes:[_a.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,_a.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=$X(e,t);return uc(n,(e=>202===e.kind))}(t,n.start),i=Kue.ChangeTracker.with(e,(e=>function(e,t,n){if(!n)return;let r=n.type,i=!1,o=!1;for(;190===r.kind||191===r.kind||196===r.kind;)190===r.kind?i=!0:191===r.kind&&(o=!0),r=r.type;const a=ZC.updateNamedTupleMember(n,n.dotDotDotToken||(o?ZC.createToken(26):void 0),n.name,n.questionToken||(i?ZC.createToken(58):void 0),r);if(a===n)return;e.replaceNode(t,n,a)}(e,t,r)));return[M7(Nte,i,_a.Move_labeled_tuple_element_modifiers_to_labels,Nte,_a.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[Nte]});var Dte="fixSpelling",Fte=[_a.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,_a.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,_a.Cannot_find_name_0_Did_you_mean_1.code,_a.Could_not_find_name_0_Did_you_mean_1.code,_a.Cannot_find_namespace_0_Did_you_mean_1.code,_a.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_a.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_a._0_has_no_exported_member_named_1_Did_you_mean_2.code,_a.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,_a.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,_a.No_overload_matches_this_call.code,_a.Type_0_is_not_assignable_to_type_1.code];function Ete(e,t,n,r){const i=$X(e,t),o=i.parent;if((r===_a.No_overload_matches_this_call.code||r===_a.Type_0_is_not_assignable_to_type_1.code)&&!AE(o))return;const a=n.program.getTypeChecker();let s;if(XD(o)&&o.name===i){_n.assert(dl(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(uF(o)&&103===o.operatorToken.kind&&o.left===i&&WN(i)){const e=a.getTypeAtLocation(o.right);s=a.getSuggestedSymbolForNonexistentProperty(i,e)}else if(oD(o)&&o.right===i){const e=a.getSymbolAtLocation(o.left);e&&1536&e.flags&&(s=a.getSuggestedSymbolForNonexistentModule(o.right,e))}else if(mE(o)&&o.name===i){_n.assertNode(i,VN,"Expected an identifier for spelling (import)");const t=function(e,t,n){var r;if(!t||!ju(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,uc(i,oE),e);t&&t.symbol&&(s=a.getSuggestedSymbolForNonexistentModule(i,t.symbol))}else if(AE(o)&&o.name===i){_n.assertNode(i,VN,"Expected an identifier for JSX attribute");const e=uc(i,bu),t=a.getContextualTypeForArgumentAtIndex(e,0);s=a.getSuggestedSymbolForNonexistentJSXAttribute(i,t)}else if(Pv(o)&&__(o)&&o.name===i){const e=uc(i,u_),t=e?yh(e):void 0,n=t?a.getTypeAtLocation(t):void 0;n&&(s=a.getSuggestedSymbolForNonexistentClassMember(Gd(i),n))}else{const e=UG(i),t=Gd(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 Pte(e,t,n,r,i){const o=yc(r);if(!ms(o,i)&&XD(n.parent)){const i=r.valueDeclaration;i&&Sc(i)&&WN(i.name)?e.replaceNode(t,n,ZC.createIdentifier(o)):e.replaceNode(t,n.parent,ZC.createElementAccessExpression(n.parent.expression,ZC.createStringLiteral(o)))}else e.replaceNode(t,n,ZC.createIdentifier(o))}z7({errorCodes:Fte,getCodeActions(e){const{sourceFile:t,errorCode:n}=e,r=Ete(t,e.span.start,e,n);if(!r)return;const{node:i,suggestedSymbol:o}=r,a=vk(e.host.getCompilationSettings());return[M7("spelling",Kue.ChangeTracker.with(e,(e=>Pte(e,t,i,o,a))),[_a.Change_spelling_to_0,yc(o)],Dte,_a.Fix_all_detected_spelling_errors)]},fixIds:[Dte],getAllCodeActions:e=>H7(e,Fte,((t,n)=>{const r=Ete(n.file,n.start,e,n.code),i=vk(e.host.getCompilationSettings());r&&Pte(t,e.sourceFile,r.node,r.suggestedSymbol,i)}))});var Ate="returnValueCorrect",Ite="fixAddReturnStatement",Ote="fixRemoveBracesFromArrowFunctionBody",Lte="fixWrapTheBlockWithParen",jte=[_a.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,_a.Type_0_is_not_assignable_to_type_1.code,_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function Rte(e,t,n){const r=e.createSymbol(4,t.escapedText);r.links.type=e.getTypeAtLocation(n);const i=Ku([r]);return e.createAnonymousType(void 0,i,[],[],[])}function Mte(e,t,n,r){if(!t.body||!DF(t.body)||1!==l(t.body.statements))return;const i=me(t.body.statements);if(PF(i)&&Bte(e,t,e.getTypeAtLocation(i.expression),n,r))return{declaration:t,kind:0,expression:i.expression,statement:i,commentSource:i.expression};if(UF(i)&&PF(i.statement)){const o=ZC.createObjectLiteralExpression([ZC.createPropertyAssignment(i.label,i.statement.expression)]);if(Bte(e,t,Rte(e,i.label,i.statement.expression),n,r))return iF(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(DF(i)&&1===l(i.statements)){const o=me(i.statements);if(UF(o)&&PF(o.statement)){const a=ZC.createObjectLiteralExpression([ZC.createPropertyAssignment(o.label,o.statement.expression)]);if(Bte(e,t,Rte(e,o.label,o.statement.expression),n,r))return{declaration:t,kind:0,expression:a,statement:i,commentSource:o}}}}function Bte(e,t,n,r,i){if(i){const r=e.getSignatureFromDeclaration(t);if(r){Dv(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,Ku(),[i],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,r)}function Jte(e,t,n,r){const i=$X(t,n);if(!i.parent)return;const o=uc(i.parent,o_);switch(r){case _a.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&Qb(o.type,i)))return;return Mte(e,o,e.getTypeFromTypeNode(o.type),!1);case _a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!YD(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 Mte(e,o,n,!0);case _a.Type_0_is_not_assignable_to_type_1.code:if(!lh(i)||!Pf(i.parent)&&!AE(i.parent))return;const r=function(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(LE(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 348:case 341:return}}(i.parent);if(!r||!o_(r)||!r.body)return;return Mte(e,r,e.getTypeAtLocation(i.parent),!0)}}function zte(e,t,n,r){tZ(n);const i=FZ(t);e.replaceNode(t,r,ZC.createReturnStatement(n),{leadingTriviaOption:Kue.LeadingTriviaOption.Exclude,trailingTriviaOption:Kue.TrailingTriviaOption.Exclude,suffix:i?";":void 0})}function qte(e,t,n,r,i,o){const a=o||fZ(r)?ZC.createParenthesizedExpression(r):r;tZ(i),iZ(i,a),e.replaceNode(t,n.body,a)}function Ute(e,t,n,r){e.replaceNode(t,n.body,ZC.createParenthesizedExpression(r))}function Vte(e,t,n){const r=Kue.ChangeTracker.with(e,(r=>zte(r,e.sourceFile,t,n)));return M7(Ate,r,_a.Add_a_return_statement,Ite,_a.Add_all_missing_return_statement)}function Wte(e,t,n){const r=Kue.ChangeTracker.with(e,(r=>Ute(r,e.sourceFile,t,n)));return M7(Ate,r,_a.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,Lte,_a.Wrap_all_object_literal_with_parentheses)}z7({errorCodes:jte,fixIds:[Ite,Ote,Lte],getCodeActions:function(e){const{program:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=Jte(t.getTypeChecker(),n,r,i);if(o)return 0===o.kind?re([Vte(e,o.expression,o.statement)],iF(o.declaration)?function(e,t,n,r){const i=Kue.ChangeTracker.with(e,(i=>qte(i,e.sourceFile,t,n,r,!1)));return M7(Ate,i,_a.Remove_braces_from_arrow_function_body,Ote,_a.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(e,o.declaration,o.expression,o.commentSource):void 0):[Wte(e,o.declaration,o.expression)]},getAllCodeActions:e=>H7(e,jte,((t,n)=>{const r=Jte(e.program.getTypeChecker(),n.file,n.start,n.code);if(r)switch(e.fixId){case Ite:zte(t,n.file,r.expression,r.statement);break;case Ote:if(!iF(r.declaration))return;qte(t,n.file,r.declaration,r.expression,r.commentSource,!1);break;case Lte:if(!iF(r.declaration))return;Ute(t,n.file,r.declaration,r.expression);break;default:_n.fail(JSON.stringify(e.fixId))}}))});var $te="fixMissingMember",Hte="fixMissingProperties",Kte="fixMissingAttributes",Gte="fixMissingFunctionDeclaration",Xte=[_a.Property_0_does_not_exist_on_type_1.code,_a.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,_a.Property_0_is_missing_in_type_1_but_required_in_type_2.code,_a.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,_a.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_a.Cannot_find_name_0.code,_a.Type_0_does_not_satisfy_the_expected_type_1.code];function Qte(e,t,n,r,i){var o,a;const c=$X(e,t),_=c.parent;if(n===_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(19!==c.kind||!GD(_)||!YD(_.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&&cD(n)&&VN(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||bF(_)||JF(_)){const e=(bF(_)||JF(_))&&_.expression?_.expression:_;if(GD(e)){const t=bF(_)?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:JF(e.parent)||fF(e.parent)?0:void 0}}}if(!dl(c))return;if(VN(c)&&Eu(_)&&_.initializer&&GD(_.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(VN(c)&&bu(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(AE(t)&&o.add(nC(t.name)),OE(t)){const n=e.getTypeAtLocation(t.expression);for(const e of n.getProperties())o.add(e.escapedName)}return C(i,(e=>ms(e.name,t,1)&&!(16777216&e.flags||48&ix(e)||o.has(e.escapedName))))}(r,vk(i.getCompilerOptions()),c.parent);if(!l(e))return;return{kind:4,token:c,attributes:e,parentDeclaration:c.parent}}if(VN(c)){const t=null==(a=r.getContextualType(c))?void 0:a.getNonNullableType();if(t&&16&hx(t)){const n=pe(r.getSignaturesOfType(t,0));if(void 0===n)return;return{kind:5,token:c,signature:n,sourceFile:e,parentDeclaration:_ne(c)}}if(YD(_)&&_.expression===c)return{kind:2,token:c,call:_,sourceFile:e,modifierFlags:0,parentDeclaration:_ne(c)}}if(!XD(_))return;const u=qQ(r.getTypeAtLocation(_.expression)),d=u.symbol;if(!d||!d.declarations)return;if(VN(c)&&YD(_.parent)){const t=y(d.declarations,eE),n=null==t?void 0:t.getSourceFile();if(t&&n&&!s0(i,n))return{kind:2,token:c,call:_.parent,sourceFile:n,modifierFlags:32,parentDeclaration:t};const r=y(d.declarations,WE);if(e.commonJsModuleIndicator)return;if(r&&!s0(i,r))return{kind:2,token:c,call:_.parent,sourceFile:r,modifierFlags:32,parentDeclaration:r}}const p=y(d.declarations,u_);if(!p&&WN(c))return;const f=p||y(d.declarations,(e=>QF(e)||wD(e)));if(f&&!s0(i,f.getSourceFile())){const e=!wD(f)&&(u.target||u)!==r.getDeclaredTypeOfSymbol(d);if(e&&(WN(c)||QF(f)))return;const t=f.getSourceFile(),n=wD(f)?0:(e?256:0)|(e0(c.text)?2:0),i=Fm(t);return{kind:0,token:c,call:et(_.parent,YD),modifierFlags:n,parentDeclaration:f,declSourceFile:t,isJSFile:i}}const m=y(d.declarations,ZF);return!m||1056&u.flags||WN(c)||s0(i,m.getSourceFile())?void 0:{kind:1,token:c,parentDeclaration:m}}function Yte(e,t,n,r,i){const o=r.text;if(i){if(231===n.kind)return;const r=n.name.getText(),i=Zte(ZC.createIdentifier(r),o);e.insertNodeAfter(t,n,i)}else if(WN(r)){const r=ZC.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),i=nne(n);i?e.insertNodeAfter(t,i,r):e.insertMemberAtStart(t,n,r)}else{const r=iv(n);if(!r)return;const i=Zte(ZC.createThis(),o);e.insertNodeAtConstructorEnd(t,r,i)}}function Zte(e,t){return ZC.createExpressionStatement(ZC.createAssignment(ZC.createPropertyAccessExpression(e,t),lne()))}function ene(e,t,n){let r;if(226===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||ZC.createKeywordTypeNode(133)}function tne(e,t,n,r,i,o){const a=o?ZC.createNodeArray(ZC.createModifiersFromModifierFlags(o)):void 0,s=u_(n)?ZC.createPropertyDeclaration(a,r,void 0,i,void 0):ZC.createPropertySignature(void 0,r,void 0,i),c=nne(n);c?e.insertNodeAfter(t,c,s):e.insertMemberAtStart(t,n,s)}function nne(e){let t;for(const n of e.members){if(!uD(n))break;t=n}return t}function rne(e,t,n,r,i,o,a){const s=yee(a,e.program,e.preferences,e.host),c=Wie(u_(o)?174:173,e,s,n,r,i,o),l=function(e,t){if(wD(e))return;const n=uc(t,(e=>pD(e)||mD(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 ine(e,t,{token:n,parentDeclaration:r}){const i=V(r.members,(e=>{const n=t.getTypeAtLocation(e);return!!(n&&402653316&n.flags)})),o=r.getSourceFile(),a=ZC.createEnumMember(n,i?ZC.createStringLiteral(n.text):void 0),s=he(r.members);s?e.insertNodeInListAfter(o,s,a,r.members):e.insertMemberAtStart(o,r,a)}function one(e,t,n){const r=eY(t.sourceFile,t.preferences),i=yee(t.sourceFile,t.program,t.preferences,t.host),o=2===n.kind?Wie(262,t,i,n.call,gc(n.token),n.modifierFlags,n.parentDeclaration):Vie(262,t,r,n.signature,noe(_a.Function_not_implemented.message,r),n.token,void 0,void 0,void 0,i);void 0===o&&_n.fail("fixMissingFunctionDeclaration codefix got unexpected error."),JF(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),i.writeFixes(e)}function ane(e,t,n){const r=yee(t.sourceFile,t.program,t.preferences,t.host),i=eY(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),a=n.parentDeclaration.attributes,s=V(a.properties,OE),c=D(n.attributes,(e=>{const a=cne(t,o,r,i,o.getTypeOfSymbol(e),n.parentDeclaration),s=ZC.createIdentifier(e.name),c=ZC.createJsxAttribute(s,ZC.createJsxExpression(void 0,a));return FT(s,c),c})),l=ZC.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 sne(e,t,n){const r=yee(t.sourceFile,t.program,t.preferences,t.host),i=eY(t.sourceFile,t.preferences),o=vk(t.program.getCompilerOptions()),a=t.program.getTypeChecker(),s=D(n.properties,(e=>{const s=cne(t,a,r,i,a.getTypeOfSymbol(e),n.parentDeclaration);return ZC.createPropertyAssignment(function(e,t,n,r){if(Gu(e)){const t=r.symbolToNode(e,111551,void 0,void 0,1);if(t&&aD(t))return t}return qT(e.name,t,0===n,!1,!1)}(e,o,i,a),s)})),c={leadingTriviaOption:Kue.LeadingTriviaOption.Exclude,trailingTriviaOption:Kue.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,ZC.createObjectLiteralExpression([...n.parentDeclaration.properties,...s],!0),c),r.writeFixes(e)}function cne(e,t,n,r,i,o){if(3&i.flags)return lne();if(134217732&i.flags)return ZC.createStringLiteral("",0===r);if(8&i.flags)return ZC.createNumericLiteral(0);if(64&i.flags)return ZC.createBigIntLiteral("0n");if(16&i.flags)return ZC.createFalse();if(1056&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?ZC.createNumericLiteral(0):ZC.createPropertyAccessExpression(r,t.symbolToString(e))}if(256&i.flags)return ZC.createNumericLiteral(i.value);if(2048&i.flags)return ZC.createBigIntLiteral(i.value);if(128&i.flags)return ZC.createStringLiteral(i.value,0===r);if(512&i.flags)return i===t.getFalseType()||i===t.getFalseType(!0)?ZC.createFalse():ZC.createTrue();if(65536&i.flags)return ZC.createNull();if(1048576&i.flags){return d(i.types,(i=>cne(e,t,n,r,i,o)))??lne()}if(t.isArrayLikeType(i))return ZC.createArrayLiteralExpression();if(function(e){return 524288&e.flags&&(128&hx(e)||e.symbol&&et(ve(e.symbol.declarations),wD))}(i)){const a=D(t.getPropertiesOfType(i),(i=>{const a=cne(e,t,n,r,t.getTypeOfSymbol(i),o);return ZC.createPropertyAssignment(i.name,a)}));return ZC.createObjectLiteralExpression(a,!0)}if(16&hx(i)){if(void 0===y(i.symbol.declarations||s,Zt(SD,dD,pD)))return lne();const a=t.getSignaturesOfType(i,0);if(void 0===a)return lne();return Vie(218,e,r,a[0],noe(_a.Function_not_implemented.message,r),void 0,void 0,void 0,o,n)??lne()}if(1&hx(i)){const e=gx(i.symbol);if(void 0===e||Av(e))return lne();const t=iv(e);return t&&l(t.parameters)?lne():ZC.createNewExpression(ZC.createIdentifier(i.symbol.name),void 0,void 0)}return lne()}function lne(){return ZC.createIdentifier("undefined")}function _ne(e){if(uc(e,LE)){const t=uc(e.parent,JF);if(t)return t}return yd(e)}z7({errorCodes:Xte,getCodeActions(e){const t=e.program.getTypeChecker(),n=Qte(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(3===n.kind){const t=Kue.ChangeTracker.with(e,(t=>sne(t,e,n)));return[M7(Hte,t,_a.Add_missing_properties,Hte,_a.Add_all_missing_properties)]}if(4===n.kind){const t=Kue.ChangeTracker.with(e,(t=>ane(t,e,n)));return[M7(Kte,t,_a.Add_missing_attributes,Kte,_a.Add_all_missing_attributes)]}if(2===n.kind||5===n.kind){const t=Kue.ChangeTracker.with(e,(t=>one(t,e,n)));return[M7(Gte,t,[_a.Add_missing_function_declaration_0,n.token.text],Gte,_a.Add_all_missing_function_declarations)]}if(1===n.kind){const t=Kue.ChangeTracker.with(e,(t=>ine(t,e.program.getTypeChecker(),n)));return[M7($te,t,[_a.Add_missing_enum_member_0,n.token.text],$te,_a.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=>Kue.ChangeTracker.with(e,(i=>rne(e,i,a,o,t,n,r))),l=[M7($te,c(256&i),[256&i?_a.Declare_static_method_0:_a.Declare_method_0,s],$te,_a.Add_all_missing_members)];2&i&&l.unshift(R7($te,c(2),[_a.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(QF(t)||wD(t))return;const o=Kue.ChangeTracker.with(e,(e=>Yte(e,n,t,i,!!(256&r))));if(0===o.length)return;const a=256&r?_a.Initialize_static_property_0:WN(i)?_a.Declare_a_private_field_named_0:_a.Initialize_property_0_in_the_constructor;return M7($te,o,[a,i.text],$te,_a.Add_all_missing_members)}(e,t)):function(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:r,token:i}){const o=i.text,a=256&r,s=ene(e.program.getTypeChecker(),t,i),c=r=>Kue.ChangeTracker.with(e,(e=>tne(e,n,t,o,s,r))),l=[M7($te,c(256&r),[a?_a.Declare_static_property_0:_a.Declare_property_0,o],$te,_a.Add_all_missing_members)];if(a||WN(i))return l;2&r&&l.unshift(R7($te,c(2),[_a.Declare_private_property_0,o]));return l.push(function(e,t,n,r,i){const o=ZC.createKeywordTypeNode(154),a=ZC.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),s=ZC.createIndexSignature(void 0,[a],i),c=Kue.ChangeTracker.with(e,(e=>e.insertMemberAtStart(t,n,s)));return R7($te,c,[_a.Add_index_signature_for_property_0,r])}(e,n,t,i.text,s)),l}(e,t)}(e,n))}},fixIds:[$te,Gte,Hte,Kte],getAllCodeActions:e=>{const{program:t,fixId:n}=e,r=t.getTypeChecker(),i=new Set,o=new Map;return W7(Kue.ChangeTracker.with(e,(t=>{K7(e,Xte,(a=>{const s=Qte(a.file,a.start,a.code,r,e.program);if(void 0===s)return;const c=$B(s.parentDeclaration)+"#"+(3===s.kind?s.identifier||$B(s.token):s.token.text);if(xx(i,c))if(n!==Gte||2!==s.kind&&5!==s.kind){if(n===Hte&&3===s.kind)sne(t,e,s);else if(n===Kte&&4===s.kind)ane(t,e,s);else if(1===s.kind&&ine(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 one(t,e,s)})),o.forEach(((n,i)=>{const a=wD(i)?void 0:yoe(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(_&&!WN(l))rne(e,t,_,l,256&c,n,s);else if(!u||QF(n)||wD(n)){const e=ene(r,n,l);tne(t,s,n,l.text,e,256&c)}else Yte(t,s,n,l,!!(256&c))}}))})))}});var une="addMissingNewOperator",dne=[_a.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];function pne(e,t,n){const r=tt(function(e,t){let n=$X(e,t.start);const r=Fs(t);for(;n.end<r;)n=n.parent;return n}(t,n),YD),i=ZC.createNewExpression(r.expression,r.typeArguments,r.arguments);e.replaceNode(t,r,i)}z7({errorCodes:dne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=Kue.ChangeTracker.with(e,(e=>pne(e,t,n)));return[M7(une,r,_a.Add_missing_new_operator_to_call,une,_a.Add_missing_new_operator_to_all_calls)]},fixIds:[une],getAllCodeActions:e=>H7(e,dne,((t,n)=>pne(t,e.sourceFile,n)))});var fne="addMissingParam",mne="addOptionalParam",gne=[_a.Expected_0_arguments_but_got_1.code];function hne(e,t,n){const r=uc($X(e,n),YD);if(void 0===r||0===l(r.arguments))return;const i=t.getTypeChecker(),o=C(i.getTypeAtLocation(r.expression).symbol.declarations,bne);if(void 0===o)return;const a=he(o);if(void 0===a||void 0===a.body||s0(t,a.getSourceFile()))return;const s=function(e){const t=Cc(e);if(t)return t;if(HF(e.parent)&&VN(e.parent.name)||uD(e.parent)||cD(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,...kne(a,o)];for(let e=0,t=0,n=0;e<d;e++){const o=r.arguments[e],s=Tx(o)?Cx(o):o,l=i.getWidenedType(i.getBaseTypeOfLiteralType(i.getTypeAtLocation(o))),d=t<u?a.parameters[t]:void 0;if(d&&i.isTypeAssignableTo(l,i.getTypeAtLocation(d))){t++;continue}const f=s&&VN(s)?s.text:"p"+n++,m=yne(i,l,a);re(c,{pos:e,declaration:Tne(f,m,void 0)}),Cne(p,t)||re(_,{pos:e,declaration:Tne(f,m,ZC.createToken(58))})}return{newParameters:c,newOptionalParameters:_,name:Pp(s),declarations:p}}function yne(e,t,n){return e.typeToTypeNode(e.getWidenedType(t),n,1,8)??ZC.createKeywordTypeNode(159)}function vne(e,t,n,r,i,o){const a=vk(t.getCompilerOptions());_(i,(i=>{const s=yd(i),c=yee(s,t,n,r);l(i.parameters)?e.replaceNodeRangeWithNodes(s,me(i.parameters),ye(i.parameters),xne(c,a,i,o),{joiner:", ",indentation:0,leadingTriviaOption:Kue.LeadingTriviaOption.IncludeAll,trailingTriviaOption:Kue.TrailingTriviaOption.Include}):_(xne(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 bne(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function xne(e,t,n,r){const i=D(n.parameters,(e=>ZC.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,ZC.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,r&&r.questionToken?ZC.createToken(58):o.questionToken,wne(e,o.type,t),o.initializer))}return i}function kne(e,t){const n=[];for(const r of t)if(Sne(r)){if(l(r.parameters)===l(e.parameters)){n.push(r);continue}if(l(r.parameters)>l(e.parameters))return[]}return n}function Sne(e){return bne(e)&&void 0===e.body}function Tne(e,t,n){return ZC.createParameterDeclaration(void 0,void 0,e,n,t,void 0)}function Cne(e,t){return l(e)&&V(e,(e=>t<l(e.parameters)&&!!e.parameters[t]&&void 0===e.parameters[t].questionToken))}function wne(e,t,n){const r=soe(t,n);return r?(loe(e,r.symbols),r.typeNode):t}z7({errorCodes:gne,fixIds:[fne,mne],getCodeActions(e){const t=hne(e.sourceFile,e.program,e.span.start);if(void 0===t)return;const{name:n,declarations:r,newParameters:i,newOptionalParameters:o}=t,a=[];return l(i)&&re(a,M7(fne,Kue.ChangeTracker.with(e,(t=>vne(t,e.program,e.preferences,e.host,r,i))),[l(i)>1?_a.Add_missing_parameters_to_0:_a.Add_missing_parameter_to_0,n],fne,_a.Add_all_missing_parameters)),l(o)&&re(a,M7(mne,Kue.ChangeTracker.with(e,(t=>vne(t,e.program,e.preferences,e.host,r,o))),[l(o)>1?_a.Add_optional_parameters_to_0:_a.Add_optional_parameter_to_0,n],mne,_a.Add_all_optional_parameters)),a},getAllCodeActions:e=>H7(e,gne,((t,n)=>{const r=hne(e.sourceFile,e.program,n.start);if(r){const{declarations:n,newParameters:i,newOptionalParameters:o}=r;e.fixId===fne&&vne(t,e.program,e.preferences,e.host,n,i),e.fixId===mne&&vne(t,e.program,e.preferences,e.host,n,o)}}))});var Nne="installTypesPackage",Dne=_a.Cannot_find_module_0_or_its_corresponding_type_declarations.code,Fne=_a.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,Ene=[Dne,_a.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code,Fne];function Pne(e,t){return{type:"install package",file:e,packageName:t}}function Ane(e,t){const n=et($X(e,t),NN);if(!n)return;const r=n.text,{packageName:i}=cM(r);return Cs(i)?void 0:i}function Ine(e,t,n){var r;return n===Dne?DC.has(e)?"@types/node":void 0:(null==(r=t.isKnownTypesPackageName)?void 0:r.call(t,e))?SM(e):void 0}z7({errorCodes:Ene,getCodeActions:function(e){const{host:t,sourceFile:n,span:{start:r},errorCode:i}=e,o=i===Fne?Gk(e.program.getCompilerOptions(),n):Ane(n,r);if(void 0===o)return;const a=Ine(o,t,i);return void 0===a?[]:[M7("fixCannotFindModule",[],[_a.Install_0,a],Nne,_a.Install_all_missing_types_packages,Pne(n.fileName,a))]},fixIds:[Nne],getAllCodeActions:e=>H7(e,Ene,((t,n,r)=>{const i=Ane(n.file,n.start);if(void 0!==i)switch(e.fixId){case Nne:{const t=Ine(i,e.host,n.code);t&&r.push(Pne(n.file.fileName,t));break}default:_n.fail(`Bad fixId: ${e.fixId}`)}}))});var One=[_a.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,_a.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2.code,_a.Non_abstract_class_0_is_missing_implementations_for_the_following_members_of_1_Colon_2_and_3_more.code,_a.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,_a.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1.code,_a.Non_abstract_class_expression_is_missing_implementations_for_the_following_members_of_0_Colon_1_and_2_more.code],Lne="fixClassDoesntImplementInheritedAbstractMember";function jne(e,t){return tt($X(e,t).parent,u_)}function Rne(e,t,n,r,i){const o=yh(e),a=n.program.getTypeChecker(),s=a.getTypeAtLocation(o),c=a.getPropertiesOfType(s).filter(Mne),l=yee(t,n.program,i,n.host);Jie(e,c,t,n,i,l,(n=>r.insertMemberAtStart(t,e,n))),l.writeFixes(r)}function Mne(e){const t=qv(me(e.getDeclarations()));return!(2&t||!(64&t))}z7({errorCodes:One,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Kue.ChangeTracker.with(e,(r=>Rne(jne(t,n.start),t,e,r,e.preferences)));return 0===r.length?void 0:[M7(Lne,r,_a.Implement_inherited_abstract_class,Lne,_a.Implement_all_inherited_abstract_classes)]},fixIds:[Lne],getAllCodeActions:function(e){const t=new Set;return H7(e,One,((n,r)=>{const i=jne(r.file,r.start);xx(t,$B(i))&&Rne(i,e.sourceFile,e,n,e.preferences)}))}});var Bne="classSuperMustPrecedeThisAccess",Jne=[_a.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];function zne(e,t,n,r){e.insertNodeAtConstructorStart(t,n,r),e.delete(t,r)}function qne(e,t){const n=$X(e,t);if(110!==n.kind)return;const r=Kf(n),i=Une(r.body);return i&&!i.expression.arguments.some((e=>XD(e)&&e.expression===n))?{constructor:r,superCall:i}:void 0}function Une(e){return PF(e)&&cf(e.expression)?e:r_(e)?void 0:RI(e,Une)}z7({errorCodes:Jne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=qne(t,n.start);if(!r)return;const{constructor:i,superCall:o}=r,a=Kue.ChangeTracker.with(e,(e=>zne(e,t,i,o)));return[M7(Bne,a,_a.Make_super_call_the_first_statement_in_the_constructor,Bne,_a.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[Bne],getAllCodeActions(e){const{sourceFile:t}=e,n=new Set;return H7(e,Jne,((e,r)=>{const i=qne(r.file,r.start);if(!i)return;const{constructor:o,superCall:a}=i;xx(n,$B(o.parent))&&zne(e,t,o,a)}))}});var Vne="constructorForDerivedNeedSuperCall",Wne=[_a.Constructors_for_derived_classes_must_contain_a_super_call.code];function $ne(e,t){const n=$X(e,t);return _n.assert(mD(n.parent),"token should be at the constructor declaration"),n.parent}function Hne(e,t,n){const r=ZC.createExpressionStatement(ZC.createCallExpression(ZC.createSuper(),void 0,s));e.insertNodeAtConstructorStart(t,n,r)}z7({errorCodes:Wne,getCodeActions(e){const{sourceFile:t,span:n}=e,r=$ne(t,n.start),i=Kue.ChangeTracker.with(e,(e=>Hne(e,t,r)));return[M7(Vne,i,_a.Add_missing_super_call,Vne,_a.Add_all_missing_super_calls)]},fixIds:[Vne],getAllCodeActions:e=>H7(e,Wne,((t,n)=>Hne(t,e.sourceFile,$ne(n.file,n.start))))});var Kne="fixEnableJsxFlag",Gne=[_a.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];function Xne(e,t){ioe(e,t,"jsx",ZC.createStringLiteral("react"))}z7({errorCodes:Gne,getCodeActions:function(e){const{configFile:t}=e.program.getCompilerOptions();if(void 0===t)return;const n=Kue.ChangeTracker.with(e,(e=>Xne(e,t)));return[R7(Kne,n,_a.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Kne],getAllCodeActions:e=>H7(e,Gne,(t=>{const{configFile:n}=e.program.getCompilerOptions();void 0!==n&&Xne(t,n)}))});var Qne="fixNaNEquality",Yne=[_a.This_condition_will_always_return_0.code];function Zne(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===_a.Did_you_mean_0.code));if(void 0===i||void 0===i.file||void 0===i.start||void 0===i.length)return;const o=_oe(i.file,Ws(i.start,i.length));return void 0!==o&&V_(o)&&uF(o.parent)?{suggestion:tre(i.messageText),expression:o.parent,arg:o}:void 0}function ere(e,t,n,r){const i=ZC.createCallExpression(ZC.createPropertyAccessExpression(ZC.createIdentifier("Number"),ZC.createIdentifier("isNaN")),void 0,[n]),o=r.operatorToken.kind;e.replaceNode(t,r,38===o||36===o?ZC.createPrefixUnaryExpression(54,i):i)}function tre(e){const[,t]=ZU(e,"\n",0).match(/'(.*)'/)||[];return t}z7({errorCodes:Yne,getCodeActions(e){const{sourceFile:t,span:n,program:r}=e,i=Zne(r,t,n);if(void 0===i)return;const{suggestion:o,expression:a,arg:s}=i,c=Kue.ChangeTracker.with(e,(e=>ere(e,t,s,a)));return[M7(Qne,c,[_a.Use_0,o],Qne,_a.Use_Number_isNaN_in_all_conditions)]},fixIds:[Qne],getAllCodeActions:e=>H7(e,Yne,((t,n)=>{const r=Zne(e.program,n.file,Ws(n.start,n.length));r&&ere(t,n.file,r.arg,r.expression)}))}),z7({errorCodes:[_a.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,_a.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,_a.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_node18_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=bk(t);if(i>=5&&i<99){const t=Kue.ChangeTracker.with(e,(e=>{ioe(e,n,"module",ZC.createStringLiteral("esnext"))}));r.push(R7("fixModuleOption",t,[_a.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const o=vk(t);if(o<4||o>99){const t=Kue.ChangeTracker.with(e,(e=>{if(!Wf(n))return;const t=[["target",ZC.createStringLiteral("es2017")]];1===i&&t.push(["module",ZC.createStringLiteral("commonjs")]),roe(e,n,t)}));r.push(R7("fixTargetOption",t,[_a.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return r.length?r:void 0}});var nre="fixPropertyAssignment",rre=[_a.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 ire(e,t,n){e.replaceNode(t,n,ZC.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function ore(e,t){return tt($X(e,t).parent,qE)}z7({errorCodes:rre,fixIds:[nre],getCodeActions(e){const{sourceFile:t,span:n}=e,r=ore(t,n.start),i=Kue.ChangeTracker.with(e,(t=>ire(t,e.sourceFile,r)));return[M7(nre,i,[_a.Change_0_to_1,"=",":"],nre,[_a.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>H7(e,rre,((e,t)=>ire(e,t.file,ore(t.file,t.start))))});var are="extendsInterfaceBecomesImplements",sre=[_a.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function cre(e,t){const n=Xf($X(e,t)).heritageClauses,r=n[0].getFirstToken();return 96===r.kind?{extendsToken:r,heritageClauses:n}:void 0}function lre(e,t,n,r){if(e.replaceNode(t,n,ZC.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},ZC.createToken(28));const o=t.text;let a=n.end;for(;a<o.length&&Ua(o.charCodeAt(a));)a++;e.deleteRange(t,{pos:n.getStart(),end:a})}}z7({errorCodes:sre,getCodeActions(e){const{sourceFile:t}=e,n=cre(t,e.span.start);if(!n)return;const{extendsToken:r,heritageClauses:i}=n,o=Kue.ChangeTracker.with(e,(e=>lre(e,t,r,i)));return[M7(are,o,_a.Change_extends_to_implements,are,_a.Change_all_extended_interfaces_to_implements)]},fixIds:[are],getAllCodeActions:e=>H7(e,sre,((e,t)=>{const n=cre(t.file,t.start);n&&lre(e,t.file,n.extendsToken,n.heritageClauses)}))});var _re="forgottenThisPropertyAccess",ure=_a.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,dre=[_a.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,_a.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,ure];function pre(e,t,n){const r=$X(e,t);if(VN(r)||WN(r))return{node:r,className:n===ure?Xf(r).name.text:void 0}}function fre(e,t,{node:n,className:r}){tZ(n),e.replaceNode(t,n,ZC.createPropertyAccessExpression(r?ZC.createIdentifier(r):ZC.createThis(),n))}z7({errorCodes:dre,getCodeActions(e){const{sourceFile:t}=e,n=pre(t,e.span.start,e.errorCode);if(!n)return;const r=Kue.ChangeTracker.with(e,(e=>fre(e,t,n)));return[M7(_re,r,[_a.Add_0_to_unresolved_variable,n.className||"this"],_re,_a.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[_re],getAllCodeActions:e=>H7(e,dre,((t,n)=>{const r=pre(n.file,n.start,n.code);r&&fre(t,e.sourceFile,r)}))});var mre="fixInvalidJsxCharacters_expression",gre="fixInvalidJsxCharacters_htmlEntity",hre=[_a.Unexpected_token_Did_you_mean_or_gt.code,_a.Unexpected_token_Did_you_mean_or_rbrace.code];z7({errorCodes:hre,fixIds:[mre,gre],getCodeActions(e){const{sourceFile:t,preferences:n,span:r}=e,i=Kue.ChangeTracker.with(e,(e=>vre(e,n,t,r.start,!1))),o=Kue.ChangeTracker.with(e,(e=>vre(e,n,t,r.start,!0)));return[M7(mre,i,_a.Wrap_invalid_character_in_an_expression_container,mre,_a.Wrap_all_invalid_characters_in_an_expression_container),M7(gre,o,_a.Convert_invalid_character_to_its_html_entity_code,gre,_a.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions:e=>H7(e,hre,((t,n)=>vre(t,e.preferences,n.file,n.start,e.fixId===gre)))});var yre={">":"&gt;","}":"&rbrace;"};function vre(e,t,n,r,i){const o=n.getText()[r];if(!function(e){return Ne(yre,e)}(o))return;const a=i?yre[o]:`{${gZ(n,t,o)}}`;e.replaceRangeWithText(n,{pos:r,end:r+1},a)}var bre="deleteUnmatchedParameter",xre="renameUnmatchedParameter",kre=[_a.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function Sre(e,t){const n=$X(e,t);if(n.parent&&SP(n.parent)&&VN(n.parent.name)){const e=n.parent,t=Vg(e),r=qg(e);if(t&&r)return{jsDocHost:t,signature:r,name:n.parent.name,jsDocParameterTag:e}}}z7({fixIds:[bre,xre],errorCodes:kre,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=[],i=Sre(t,n.start);if(i)return re(r,function(e,{name:t,jsDocHost:n,jsDocParameterTag:r}){const i=Kue.ChangeTracker.with(e,(t=>t.filterJSDocTags(e.sourceFile,n,(e=>e!==r))));return M7(bre,i,[_a.Delete_unused_param_tag_0,t.getText(e.sourceFile)],bre,_a.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=ol(r),s=new Set;for(const e of a)SP(e)&&VN(e.name)&&s.add(e.name.escapedText);const c=d(r.parameters,(e=>VN(e.name)&&!s.has(e.name.escapedText)?e.name.getText(o):void 0));if(void 0===c)return;const _=ZC.updateJSDocParameterTag(i,i.tagName,ZC.createIdentifier(c),i.isBracketed,i.typeExpression,i.isNameFirst,i.comment),u=Kue.ChangeTracker.with(e,(e=>e.replaceJSDocComment(o,n,D(a,(e=>e===i?_:e)))));return R7(xre,u,[_a.Rename_param_tag_name_0_to_1,t.getText(o),c])}(e,i)),r},getAllCodeActions:function(e){const t=new Map;return W7(Kue.ChangeTracker.with(e,(n=>{K7(e,kre,(({file:e,start:n})=>{const r=Sre(e,n);r&&t.set(r.signature,re(t.get(r.signature),r.jsDocParameterTag))})),t.forEach(((t,r)=>{if(e.fixId===bre){const e=new Set(t);n.filterJSDocTags(r.getSourceFile(),r,(t=>!e.has(t)))}}))})))}});var Tre="fixUnreferenceableDecoratorMetadata";z7({errorCodes:[_a.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($X(e,n),VN);if(!r||183!==r.parent.kind)return;const i=t.getTypeChecker().getSymbolAtLocation(r);return y((null==i?void 0:i.declarations)||s,Zt(aE,mE,iE))}(e.sourceFile,e.program,e.span.start);if(!t)return;const n=Kue.ChangeTracker.with(e,(n=>276===t.kind&&function(e,t,n,r){a6.doChangeNamedToNamespaceOrDefault(t,r,e,n.parent)}(n,e.sourceFile,t,e.program))),r=Kue.ChangeTracker.with(e,(n=>function(e,t,n,r){if(271===n.kind)return void e.insertModifierBefore(t,156,n.name);const i=273===n.kind?n:n.parent.parent;if(i.name&&i.namedBindings)return;const o=r.getTypeChecker();if(Cg(i,(e=>{if(111551&ax(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,R7(Tre,n,_a.Convert_named_imports_to_namespace_import))),r.length&&(i=re(i,R7(Tre,r,_a.Use_import_type))),i},fixIds:[Tre]});var Cre="unusedIdentifier",wre="unusedIdentifier_prefix",Nre="unusedIdentifier_delete",Dre="unusedIdentifier_deleteImports",Fre="unusedIdentifier_infer",Ere=[_a._0_is_declared_but_its_value_is_never_read.code,_a._0_is_declared_but_never_used.code,_a.Property_0_is_declared_but_its_value_is_never_read.code,_a.All_imports_in_import_declaration_are_unused.code,_a.All_destructured_elements_are_unused.code,_a.All_variables_are_unused.code,_a.All_type_parameters_are_unused.code];function Pre(e,t,n){e.replaceNode(t,n.parent,ZC.createKeywordTypeNode(159))}function Are(e,t){return M7(Cre,e,t,Nre,_a.Delete_all_unused_declarations)}function Ire(e,t,n){e.delete(t,_n.checkDefined(tt(n.parent,xp).typeParameters,"The type parameter to delete should exist"))}function Ore(e){return 102===e.kind||80===e.kind&&(276===e.parent.kind||273===e.parent.kind)}function Lre(e){return 102===e.kind?et(e.parent,oE):void 0}function jre(e,t){return KF(t.parent)&&me(t.parent.getChildren(e))===t}function Rre(e,t,n){e.delete(t,243===n.parent.kind?n.parent:n)}function Mre(e,t,n,r){t!==_a.Property_0_is_declared_but_its_value_is_never_read.code&&(140===r.kind&&(r=tt(r.parent,LD).typeParameter.name),VN(r)&&function(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}(r)&&(e.replaceNode(n,r,ZC.createIdentifier(`_${r.text}`)),cD(r.parent)&&Ec(r.parent).forEach((t=>{VN(t.name)&&e.replaceNode(n,t.name,ZC.createIdentifier(`_${t.name.text}`))}))))}function Bre(e,t,n,r,i,o,a,s){!function(e,t,n,r,i,o,a,s){const{parent:c}=e;if(cD(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 174:case 176:const c=s.parameters.indexOf(n),l=pD(s)?s.name:s,_=wce.Core.getReferencedSymbolsForNode(s.pos,l,i,r,o);if(_)for(const e of _)for(const t of e.references)if(t.kind===wce.EntryKind.Node){const e=nD(t.node)&&YD(t.node.parent)&&t.node.parent.arguments.length>c,r=XD(t.node.parent)&&nD(t.node.parent.expression)&&YD(t.node.parent.parent)&&t.node.parent.parent.arguments.length>c,i=(pD(t.node.parent)||dD(t.node.parent))&&t.node.parent!==n.parent&&t.node.parent.parameters.length>c;if(e||r||i)return!1}return!0;case 262:return!s.name||!function(e,t,n){return!!wce.Core.eachSymbolReferenceInFile(n,e,t,(e=>VN(e)&&YD(e.parent)&&e.parent.arguments.includes(e)))}(e,t,s.name)||zre(s,n,a);case 218:case 219:return zre(s,n,a);case 178:return!1;case 177:return!0;default:return _n.failBadSyntaxKind(s)}}(r,t,n,i,o,a,s))if(n.modifiers&&n.modifiers.length>0&&(!VN(n.name)||wce.Core.isSymbolReferencedInFile(n.name,r,t)))for(const r of n.modifiers)Zl(r)&&e.deleteModifier(t,r);else!n.initializer&&Jre(n,r,i)&&e.delete(t,n)}(t,n,c,r,i,o,a,s);else if(!(s&&VN(e)&&wce.Core.isSymbolReferencedInFile(e,r,n))){const r=aE(c)?e:aD(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),VN(t)&&wce.Core.eachSymbolReferenceInFile(t,r,e,(t=>{var r;XD(t.parent)&&t.parent.name===t&&(t=t.parent),!s&&((uF((r=t).parent)&&r.parent.left===r||(_F(r.parent)||lF(r.parent))&&r.parent.operand===r)&&PF(r.parent.parent))&&n.delete(e,t.parent.parent)}))}function Jre(e,t,n){const r=e.parent.parameters.indexOf(e);return!wce.Core.someSignatureUsage(e.parent,n,t,((e,t)=>!t||t.arguments.length>r))}function zre(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=>VN(e.name)&&!e.symbol.isReferenced)):i===r.length-1}z7({errorCodes:Ere,getCodeActions(e){const{errorCode:t,sourceFile:n,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),a=r.getSourceFiles(),s=$X(n,e.span.start);if(NP(s))return[Are(Kue.ChangeTracker.with(e,(e=>e.delete(n,s))),_a.Remove_template_tag)];if(30===s.kind){return[Are(Kue.ChangeTracker.with(e,(e=>Ire(e,n,s))),_a.Remove_type_parameters)]}const c=Lre(s);if(c){const t=Kue.ChangeTracker.with(e,(e=>e.delete(n,c)));return[M7(Cre,t,[_a.Remove_import_from_0,vx(c)],Dre,_a.Delete_all_unused_imports)]}if(Ore(s)){const t=Kue.ChangeTracker.with(e,(e=>Bre(n,s,e,o,a,r,i,!1)));if(t.length)return[M7(Cre,t,[_a.Remove_unused_declaration_for_Colon_0,s.getText(n)],Dre,_a.Delete_all_unused_imports)]}if(WD(s.parent)||$D(s.parent)){if(cD(s.parent.parent)){const t=s.parent.elements,r=[t.length>1?_a.Remove_unused_declarations_for_Colon_0:_a.Remove_unused_declaration_for_Colon_0,D(t,(e=>e.getText(n))).join(", ")];return[Are(Kue.ChangeTracker.with(e,(e=>function(e,t,n){_(n.elements,(n=>e.delete(t,n)))}(e,n,s.parent))),r)]}return[Are(Kue.ChangeTracker.with(e,(t=>function(e,t,n,{parent:r}){if(HF(r)&&r.initializer&&L_(r.initializer))if(KF(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:RY(e.host,e.formatContext.options)+n.text.slice(GY(n.text,o-1),o),suffix:FZ(n)?";":""})}else t.replaceNode(n,r.parent,r.initializer);else t.delete(n,r)}(e,t,n,s.parent))),_a.Remove_unused_destructuring_declaration)]}if(jre(n,s))return[Are(Kue.ChangeTracker.with(e,(e=>Rre(e,n,s.parent))),_a.Remove_variable_statement)];if(VN(s)&&GF(s.parent))return[Are(Kue.ChangeTracker.with(e,(e=>function(e,t,n){const r=n.symbol.declarations;if(r)for(const n of r)e.delete(t,n)}(e,n,s.parent))),[_a.Remove_unused_declaration_for_Colon_0,s.getText(n)])];const u=[];if(140===s.kind){const t=Kue.ChangeTracker.with(e,(e=>Pre(e,n,s))),r=tt(s.parent,LD).typeParameter.name.text;u.push(M7(Cre,t,[_a.Replace_infer_0_with_unknown,r],Fre,_a.Replace_all_unused_infer_with_unknown))}else{const t=Kue.ChangeTracker.with(e,(e=>Bre(n,s,e,o,a,r,i,!1)));if(t.length){const e=aD(s.parent)?s.parent:s;u.push(Are(t,[_a.Remove_unused_declaration_for_Colon_0,e.getText(n)]))}}const d=Kue.ChangeTracker.with(e,(e=>Mre(e,t,n,s)));return d.length&&u.push(M7(Cre,d,[_a.Prefix_0_with_an_underscore,s.getText(n)],wre,_a.Prefix_all_unused_declarations_with_where_possible)),u},fixIds:[wre,Nre,Dre,Fre],getAllCodeActions:e=>{const{sourceFile:t,program:n,cancellationToken:r}=e,i=n.getTypeChecker(),o=n.getSourceFiles();return H7(e,Ere,((a,s)=>{const c=$X(t,s.start);switch(e.fixId){case wre:Mre(a,s.code,t,c);break;case Dre:{const e=Lre(c);e?a.delete(t,e):Ore(c)&&Bre(t,c,a,i,o,n,r,!0);break}case Nre:if(140===c.kind||Ore(c))break;if(NP(c))a.delete(t,c);else if(30===c.kind)Ire(a,t,c);else if(WD(c.parent)){if(c.parent.parent.initializer)break;cD(c.parent.parent)&&!Jre(c.parent.parent,i,o)||a.delete(t,c.parent.parent)}else{if($D(c.parent.parent)&&c.parent.parent.parent.initializer)break;jre(t,c)?Rre(a,t,c.parent):Bre(t,c,a,i,o,n,r,!0)}break;case Fre:140===c.kind&&Pre(a,t,c);break;default:_n.fail(JSON.stringify(e.fixId))}}))}});var qre="fixUnreachableCode",Ure=[_a.Unreachable_code_detected.code];function Vre(e,t,n,r,i){const o=$X(t,n),a=uc(o,pu);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=(DF(a.parent)?a.parent:a).parent;if(!DF(a.parent)||a===me(a.parent.statements))switch(c.kind){case 245:if(c.elseStatement){if(DF(a.parent))break;return void e.replaceNode(t,a,ZC.createBlock(s))}case 247:case 248:return void e.delete(t,c)}if(DF(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}(aT(a.parent.statements,a),(e=>e.pos<i)),"Some statement should be last");e.deleteNodeRange(t,a,o)}else e.delete(t,a)}z7({errorCodes:Ure,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;const t=Kue.ChangeTracker.with(e,(t=>Vre(t,e.sourceFile,e.span.start,e.span.length,e.errorCode)));return[M7(qre,t,_a.Remove_unreachable_code,qre,_a.Remove_all_unreachable_code)]},fixIds:[qre],getAllCodeActions:e=>H7(e,Ure,((e,t)=>Vre(e,t.file,t.start,t.length,t.code)))});var Wre="fixUnusedLabel",$re=[_a.Unused_label.code];function Hre(e,t,n){const r=$X(t,n),i=tt(r.parent,UF),o=r.getStart(t),a=i.statement.getStart(t),s=Hb(o,a,t)?a:Qa(t.text,AX(i,59,t).end,!0);e.deleteRange(t,{pos:o,end:s})}z7({errorCodes:$re,getCodeActions(e){const t=Kue.ChangeTracker.with(e,(t=>Hre(t,e.sourceFile,e.span.start)));return[M7(Wre,t,_a.Remove_unused_label,Wre,_a.Remove_all_unused_labels)]},fixIds:[Wre],getAllCodeActions:e=>H7(e,$re,((e,t)=>Hre(e,t.file,t.start)))});var Kre="fixJSDocTypes_plain",Gre="fixJSDocTypes_nullable",Xre=[_a.JSDoc_types_can_only_be_used_inside_documentation_comments.code,_a._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,_a._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code];function Qre(e,t,n,r,i){e.replaceNode(t,n,i.typeToTypeNode(r,n,void 0))}function Yre(e,t,n){const r=uc($X(e,t),Zre),i=r&&r.type;return i&&{typeNode:i,type:eie(n,i)}}function Zre(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function eie(e,t){if(tP(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)}z7({errorCodes:Xre,getCodeActions(e){const{sourceFile:t}=e,n=e.program.getTypeChecker(),r=Yre(t,e.span.start,n);if(!r)return;const{typeNode:i,type:o}=r,a=i.getText(t),s=[c(o,Kre,_a.Change_all_jsdoc_style_types_to_TypeScript)];return 314===i.kind&&s.push(c(o,Gre,_a.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),s;function c(r,o,s){return M7("jdocTypes",Kue.ChangeTracker.with(e,(e=>Qre(e,t,i,r,n))),[_a.Change_0_to_1,a,n.typeToString(r)],o,s)}},fixIds:[Kre,Gre],getAllCodeActions(e){const{fixId:t,program:n,sourceFile:r}=e,i=n.getTypeChecker();return H7(e,Xre,((e,n)=>{const o=Yre(n.file,n.start,i);if(!o)return;const{typeNode:a,type:s}=o,c=314===a.kind&&t===Gre?i.getNullableType(s,32768):s;Qre(e,r,a,c,i)}))}});var tie="fixMissingCallParentheses",nie=[_a.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code];function rie(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function iie(e,t){const n=$X(e,t);if(XD(n.parent)){let e=n.parent;for(;XD(e.parent);)e=e.parent;return e.name}if(VN(n))return n}z7({errorCodes:nie,fixIds:[tie],getCodeActions(e){const{sourceFile:t,span:n}=e,r=iie(t,n.start);if(!r)return;const i=Kue.ChangeTracker.with(e,(t=>rie(t,e.sourceFile,r)));return[M7(tie,i,_a.Add_missing_call_parentheses,tie,_a.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>H7(e,nie,((e,t)=>{const n=iie(t.file,t.start);n&&rie(e,t.file,n)}))});var oie="fixMissingTypeAnnotationOnExports",aie="add-annotation",sie="add-type-assertion",cie=[_a.Function_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,_a.Method_must_have_an_explicit_return_type_annotation_with_isolatedDeclarations.code,_a.At_least_one_accessor_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_a.Variable_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_a.Parameter_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_a.Property_must_have_an_explicit_type_annotation_with_isolatedDeclarations.code,_a.Expression_type_can_t_be_inferred_with_isolatedDeclarations.code,_a.Binding_elements_can_t_be_exported_directly_with_isolatedDeclarations.code,_a.Computed_property_names_on_class_or_object_literals_cannot_be_inferred_with_isolatedDeclarations.code,_a.Computed_properties_must_be_number_or_string_literals_variables_or_dotted_expressions_with_isolatedDeclarations.code,_a.Enum_member_initializers_must_be_computable_without_references_to_external_symbols_with_isolatedDeclarations.code,_a.Extends_clause_can_t_contain_an_expression_with_isolatedDeclarations.code,_a.Objects_that_contain_shorthand_properties_can_t_be_inferred_with_isolatedDeclarations.code,_a.Objects_that_contain_spread_assignments_can_t_be_inferred_with_isolatedDeclarations.code,_a.Arrays_with_spread_elements_can_t_inferred_with_isolatedDeclarations.code,_a.Default_exports_can_t_be_inferred_with_isolatedDeclarations.code,_a.Only_const_arrays_can_be_inferred_with_isolatedDeclarations.code,_a.Assigning_properties_to_functions_without_declaring_them_is_not_supported_with_isolatedDeclarations_Add_an_explicit_declaration_for_the_properties_assigned_to_this_function.code,_a.Declaration_emit_for_this_parameter_requires_implicitly_adding_undefined_to_its_type_This_is_not_supported_with_isolatedDeclarations.code,_a.Type_containing_private_name_0_can_t_be_used_with_isolatedDeclarations.code,_a.Add_satisfies_and_a_type_assertion_to_this_expression_satisfies_T_as_T_to_make_the_type_explicit.code],lie=new Set([177,174,172,262,218,219,260,169,277,263,206,207]),_ie=531469;function uie(e,t,n,r,i){const o=die(n,r,i);o.result&&o.textChanges.length&&t.push(M7(e,o.textChanges,o.result,oie,_a.Add_all_missing_type_annotations))}function die(e,t,n){const r={typeNode:void 0,mutatedTarget:!1},i=Kue.ChangeTracker.fromContext(e),o=e.sourceFile,a=e.program,s=a.getTypeChecker(),c=vk(a.getCompilerOptions()),l=yee(e.sourceFile,e.program,e.preferences,e.host),_=new Set,u=new Set,d=pU({preserveSourceNewlines:!1}),p=n({addTypeAnnotation:function(t){e.cancellationToken.throwIfCancellationRequested();const n=$X(o,t.start),r=g(n);if(r)return GF(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)ms(t.name,vk(a.getCompilerOptions()))&&(t.valueDeclaration&&HF(t.valueDeclaration)||c.push(ZC.createVariableStatement([ZC.createModifier(95)],ZC.createVariableDeclarationList([ZC.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(ZC.createModifier(95));l.push(ZC.createModifier(138));const _=ZC.createModuleDeclaration(l,e.name,ZC.createModuleBlock(c),101441696);return i.insertNodeAfter(o,e,_),[_a.Annotate_types_of_properties_expando_function_in_a_namespace]}(r):h(r);const c=(l=n,uc(l,(e=>lie.has(e.kind)&&(!WD(e)&&!$D(e)||HF(e.parent)))));var l;if(c)return h(c);return},addInlineAssertion:function(t){e.cancellationToken.throwIfCancellationRequested();const n=$X(o,t.start);if(g(n))return;const r=F(n,t);if(!r||eh(r)||eh(r.parent))return;const a=V_(r),c=qE(r);if(!c&&_u(r))return;if(uc(r,k_))return;if(uc(r,VE))return;if(a&&(uc(r,BE)||uc(r,b_)))return;if(mF(r))return;const l=uc(r,HF),_=l&&s.getTypeAtLocation(l);if(_&&8192&_.flags)return;if(!a&&!c)return;const{typeNode:u,mutatedTarget:d}=x(r,_);if(!u||d)return;c?i.insertNodeAt(o,r.end,m(XY(r.name),u),{prefix:": "}):a?i.replaceNode(o,r,function(e,t){f(e)&&(e=ZC.createParenthesizedExpression(e));return ZC.createAsExpression(ZC.createSatisfiesExpression(e,XY(t)),t)}(XY(r),u)):_n.assertNever(r);return[_a.Add_satisfies_and_an_inline_type_assertion_with_0,D(u)]},extractAsVariable:function(t){e.cancellationToken.throwIfCancellationRequested();const n=F($X(o,t.start),t);if(!n||eh(n)||eh(n.parent))return;if(!V_(n))return;if(KD(n))return i.replaceNode(o,n,m(n,ZC.createTypeReferenceNode("const"))),[_a.Mark_array_literal_as_const];const r=uc(n,zE);if(r){if(r===n.parent&&sb(n))return;const e=ZC.createUniqueName(y3(n,o,s,o),16);let t=n,a=n;if(mF(t)&&(t=rh(t.parent),a=T(t.parent)?t=t.parent:m(t,ZC.createTypeReferenceNode("const"))),sb(t))return;const c=ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(e,void 0,void 0,a)],2)),l=uc(n,pu);return i.insertNodeBefore(o,l,c),i.replaceNode(o,t,ZC.createAsExpression(ZC.cloneNode(e),ZC.createTypeQueryNode(ZC.cloneNode(e)))),[_a.Extract_to_variable_and_replace_with_0_as_typeof_0,D(e)]}}});return l.writeFixes(i),{result:p,textChanges:i.getChanges()};function f(e){return!(sb(e)||YD(e)||GD(e)||KD(e))}function m(e,t){return f(e)&&(e=ZC.createParenthesizedExpression(e)),ZC.createAsExpression(e,t)}function g(e){const t=uc(e,(e=>pu(e)?"quit":_C(e)));if(t&&_C(t)){let e=t;if(uF(e)&&(e=e.left,!_C(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(BT(e)&&HF(e.parent))return e.parent;if(GF(e))return e}}}}function h(e){if(!(null==_?void 0:_.has(e)))switch(null==_||_.add(e),e.kind){case 169:case 172:case 260:return function(e){const{typeNode:t}=x(e);if(t)return e.type?i.replaceNode(yd(e),e.type,t):i.tryInsertTypeAnnotation(yd(e),e,t),[_a.Add_annotation_of_type_0,D(t)]}(e);case 219:case 218:case 262:case 174:case 177:return function(e,t){if(e.type)return;const{typeNode:n}=x(e);if(n)return i.tryInsertTypeAnnotation(t,e,n),[_a.Add_return_type_0,D(n)]}(e,o);case 277:return function(e){if(e.isExportEquals)return;const{typeNode:t}=x(e.expression);if(!t)return;const n=ZC.createUniqueName("_default");return i.replaceNodeWithNodes(o,e,[ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(n,void 0,t,e.expression)],2)),ZC.updateExportAssignment(e,null==e?void 0:e.modifiers,n)]),[_a.Extract_default_export_to_variable]}(e);case 263: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=ZC.createUniqueName(e.name?e.name.text+"Base":"Anonymous",16),l=ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(c,void 0,s,a.expression)],2));i.insertNodeBefore(o,e,l);const _=us(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:" "}),[_a.Extract_base_class_to_variable]}(e);case 206:case 207:return function(e){var t;const n=e.parent,r=e.parent.parent.parent;if(!n.initializer)return;let a;const s=[];if(VN(n.initializer))a={expression:{kind:3,identifier:n.initializer}};else{const e=ZC.createUniqueName("dest",16);a={expression:{kind:3,identifier:e}},s.push(ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(e,void 0,void 0,n.initializer)],2)))}const c=[];$D(e)?y(e,c,a):v(e,c,a);const l=new Map;for(const e of c){if(e.element.propertyName&&aD(e.element.propertyName)){const t=e.element.propertyName.expression,n=ZC.getGeneratedNameForNode(t),r=ZC.createVariableDeclaration(n,void 0,void 0,t),i=ZC.createVariableDeclarationList([r],2),o=ZC.createVariableStatement(void 0,i);s.push(o),l.set(t,n)}const n=e.element.name;if($D(n))y(n,c,e);else if(WD(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=ZC.createUniqueName(n&&VN(n)?n.text:"temp",16);s.push(ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(r,void 0,void 0,o)],2))),o=ZC.createConditionalExpression(ZC.createBinaryExpression(r,ZC.createToken(37),ZC.createIdentifier("undefined")),ZC.createToken(58),e.element.initializer,ZC.createToken(59),o)}const a=Dv(r,32)?[ZC.createToken(95)]:void 0;s.push(ZC.createVariableStatement(a,ZC.createVariableDeclarationList([ZC.createVariableDeclaration(n,void 0,i,o)],2)))}}r.declarationList.declarations.length>1&&s.push(ZC.updateVariableStatement(r,r.modifiers,ZC.updateVariableDeclarationList(r.declarationList,r.declarationList.declarations.filter((t=>t!==e.parent)))));return i.replaceNodeWithNodes(o,r,s),[_a.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<e.elements.length;++r){const i=e.elements[r];hF(i)||t.push({element:i,parent:n,expression:{kind:2,arrayIndex:r}})}}function v(e,t,n){for(const r of e.elements){let e;if(r.propertyName){if(aD(r.propertyName)){t.push({element:r,parent:n,expression:{kind:1,computed:r.propertyName.expression}});continue}e=r.propertyName.text}else e=r.name.text;t.push({element:r,parent:n,expression:{kind:0,text:e}})}}function b(e,t){const n=[e];for(;e.parent;)e=e.parent,n.push(e);let r=n[n.length-1].expression.identifier;for(let e=n.length-2;e>=0;--e){const i=n[e].expression;0===i.kind?r=ZC.createPropertyAccessChain(r,void 0,ZC.createIdentifier(i.text)):1===i.kind?r=ZC.createElementAccessExpression(r,t.get(i.computed)):2===i.kind&&(r=ZC.createElementAccessExpression(r,i.arrayIndex))}return r}function x(e,n){if(1===t)return C(e);let i;if(eh(e)){const t=s.getSignatureFromDeclaration(e);if(t){const n=s.getTypePredicateOfSignature(t);if(n)return n.type?{typeNode:N(n,uc(e,_u)??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=uc(e,_u)??o;return cD(e)&&s.requiresAddingImplicitUndefined(e,a)&&(i=s.getUnionType([s.getUndefinedType(),i],0)),{typeNode:w(i,a,c(i)),mutatedTarget:!1};function c(t){return(HF(e)||uD(e)&&Dv(e,264))&&8192&t.flags?1048576:0}}function k(e){return ZC.createTypeQueryNode(XY(e))}function S(e,t,n,a,s,c,l,_){const u=[],d=[];let p;const f=uc(e,pu);for(const t of a(e))s(t)?(g(),sb(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=ZC.createUniqueName(t+"_Part"+(d.length+1),16),a=n?ZC.createAsExpression(e,ZC.createTypeReferenceNode("const")):e,s=ZC.createVariableStatement(void 0,ZC.createVariableDeclarationList([ZC.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 W_(e)&&kl(e.type)}function C(e){if(cD(e))return r;if(qE(e))return{typeNode:k(e.name),mutatedTarget:!1};if(sb(e))return{typeNode:k(e),mutatedTarget:!1};if(T(e))return C(e.expression);if(KD(e)){const t=uc(e,HF);return function(e,t="temp"){const n=!!uc(e,T);return n?S(e,t,n,(e=>e.elements),mF,ZC.createSpreadElement,(e=>ZC.createArrayLiteralExpression(e,!0)),(e=>ZC.createTupleTypeNode(e.map(ZC.createRestTypeNode)))):r}(e,t&&VN(t.name)?t.name.text:void 0)}if(GD(e)){const t=uc(e,HF);return function(e,t="temp"){return S(e,t,!!uc(e,T),(e=>e.properties),UE,ZC.createSpreadAssignment,(e=>ZC.createObjectLiteralExpression(e,!0)),ZC.createIntersectionTypeNode)}(e,t&&VN(t.name)?t.name.text:void 0)}if(HF(e)&&e.initializer)return C(e.initializer);if(dF(e)){const{typeNode:t,mutatedTarget:n}=C(e.whenTrue);if(!t)return r;const{typeNode:i,mutatedTarget:o}=C(e.whenFalse);return i?{typeNode:ZC.createUnionTypeNode([t,i]),mutatedTarget:n||o}:r}return r}function w(e,t,n=0){let r=!1;const i=Gie(s,e,t,_ie|n,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});if(!i)return;const o=Kie(i,l,c);return r?ZC.createKeywordTypeNode(133):o}function N(e,t,n=0){let r=!1;const i=Xie(s,l,e,t,c,_ie|n,1,{moduleResolverHost:a,trackSymbol:()=>!0,reportTruncationError(){r=!0}});return r?ZC.createKeywordTypeNode(133):i}function D(e){ow(e,1);const t=d.printNode(4,e,o);return t.length>Vu?t.substring(0,Vu-3)+"...":(ow(e,0),t)}function F(e,t){for(;e&&e.end<t.start+t.length;)e=e.parent;for(;e.parent.pos===e.pos&&e.parent.end===e.end;)e=e.parent;return VN(e)&&Eu(e.parent)&&e.parent.initializer?e.parent.initializer:e}}z7({errorCodes:cie,fixIds:[oie],getCodeActions(e){const t=[];return uie(aie,t,e,0,(t=>t.addTypeAnnotation(e.span))),uie(aie,t,e,1,(t=>t.addTypeAnnotation(e.span))),uie(aie,t,e,2,(t=>t.addTypeAnnotation(e.span))),uie(sie,t,e,0,(t=>t.addInlineAssertion(e.span))),uie(sie,t,e,1,(t=>t.addInlineAssertion(e.span))),uie(sie,t,e,2,(t=>t.addInlineAssertion(e.span))),uie("extract-expression",t,e,0,(t=>t.extractAsVariable(e.span))),t},getAllCodeActions:e=>W7(die(e,0,(t=>{K7(e,cie,(e=>{t.addTypeAnnotation(e)}))})).textChanges)});var pie="fixAwaitInSyncFunction",fie=[_a.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_a.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_a.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,_a.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code];function mie(e,t){const n=Kf($X(e,t));if(!n)return;let r;switch(n.kind){case 174:r=n.name;break;case 262:case 218:r=AX(n,100,e);break;case 219:r=AX(n,n.typeParameters?30:21,e)||me(n.parameters);break;default:return}return r&&{insertBefore:r,returnType:(i=n,i.type?i.type:HF(i.parent)&&i.parent.type&&SD(i.parent.type)?i.parent.type.type:void 0)};var i}function gie(e,t,{insertBefore:n,returnType:r}){if(r){const n=_m(r);n&&80===n.kind&&"Promise"===n.text||e.replaceNode(t,r,ZC.createTypeReferenceNode("Promise",ZC.createNodeArray([r])))}e.insertModifierBefore(t,134,n)}z7({errorCodes:fie,getCodeActions(e){const{sourceFile:t,span:n}=e,r=mie(t,n.start);if(!r)return;const i=Kue.ChangeTracker.with(e,(e=>gie(e,t,r)));return[M7(pie,i,_a.Add_async_modifier_to_containing_function,pie,_a.Add_all_missing_async_modifiers)]},fixIds:[pie],getAllCodeActions:function(e){const t=new Set;return H7(e,fie,((n,r)=>{const i=mie(r.file,r.start);i&&xx(t,$B(i.insertBefore))&&gie(n,e.sourceFile,i)}))}});var hie=[_a._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,_a._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],yie="fixPropertyOverrideAccessor";function vie(e,t,n,r,i){let o,a;if(r===_a._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===_a._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=$X(e,t).parent;_n.assert(d_(r),"error span of fixPropertyOverrideAccessor should only be on an accessor");const s=r.parent;_n.assert(u_(s),"erroneous accessors should only be inside classes");const c=ve(yoe(s,n));if(!c)return[];const l=mc(Lp(r.name)),_=n.getPropertyOfType(n.getTypeAtLocation(c),l);if(!_||!_.valueDeclaration)return[];o=_.valueDeclaration.pos,a=_.valueDeclaration.end,e=yd(_.valueDeclaration)}else _n.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+r);return uoe(e,i.program,o,a,i,_a.Generate_get_and_set_accessors.message)}z7({errorCodes:hie,getCodeActions(e){const t=vie(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[M7(yie,t,_a.Generate_get_and_set_accessors,yie,_a.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[yie],getAllCodeActions:e=>H7(e,hie,((t,n)=>{const r=vie(n.file,n.start,n.length,n.code,e);if(r)for(const n of r)t.pushRaw(e.sourceFile,n)}))});var bie="inferFromUsage",xie=[_a.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,_a.Variable_0_implicitly_has_an_1_type.code,_a.Parameter_0_implicitly_has_an_1_type.code,_a.Rest_parameter_0_implicitly_has_an_any_type.code,_a.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,_a._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,_a.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,_a.Member_0_implicitly_has_an_1_type.code,_a.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,_a.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_a.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_a.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,_a.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,_a._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,_a.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,_a.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,_a.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];function kie(e,t){switch(e){case _a.Parameter_0_implicitly_has_an_1_type.code:case _a.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return hD(Kf(t))?_a.Infer_type_of_0_from_usage:_a.Infer_parameter_types_from_usage;case _a.Rest_parameter_0_implicitly_has_an_any_type.code:case _a.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return _a.Infer_parameter_types_from_usage;case _a.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return _a.Infer_this_type_of_0_from_usage;default:return _a.Infer_type_of_0_from_usage}}function Sie(e,t,n,r,i,o,a,s,c){if(!Ql(n.kind)&&80!==n.kind&&26!==n.kind&&110!==n.kind)return;const{parent:l}=n,_=yee(t,i,c,s);switch(r=function(e){switch(e){case _a.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return _a.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case _a.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _a.Variable_0_implicitly_has_an_1_type.code;case _a.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _a.Parameter_0_implicitly_has_an_1_type.code;case _a.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return _a.Rest_parameter_0_implicitly_has_an_any_type.code;case _a.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return _a.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case _a._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return _a._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case _a.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return _a.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case _a.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return _a.Member_0_implicitly_has_an_1_type.code}return e}(r)){case _a.Member_0_implicitly_has_an_1_type.code:case _a.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(HF(l)&&a(l)||uD(l)||_D(l))return Tie(e,_,t,l,i,s,o),_.writeFixes(e),l;if(XD(l)){const n=kZ(Fie(l.name,i,o),l,i,s);if(n){const r=ZC.createJSDocTypeTag(void 0,ZC.createJSDocTypeExpression(n),void 0);e.addJSDocTags(t,tt(l.parent.parent,PF),[r])}return _.writeFixes(e),l}return;case _a.Variable_0_implicitly_has_an_1_type.code:{const t=i.getTypeChecker().getSymbolAtLocation(n);return t&&t.valueDeclaration&&HF(t.valueDeclaration)&&a(t.valueDeclaration)?(Tie(e,_,yd(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 _a.Parameter_0_implicitly_has_an_1_type.code:if(hD(u)){Cie(e,_,t,u,i,s,o),d=u;break}case _a.Rest_parameter_0_implicitly_has_an_any_type.code:if(a(u)){const n=tt(l,cD);!function(e,t,n,r,i,o,a,s){if(!VN(r.name))return;const c=function(e,t,n,r){const i=Eie(e,t,n,r);return i&&Pie(n,i,r).parameters(e)||e.parameters.map((e=>({declaration:e,type:VN(e.name)?Fie(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))Nie(e,n,c,o,a);else{const r=iF(i)&&!AX(i,21,n);r&&e.insertNodeBefore(n,me(i.parameters),ZC.createToken(21));for(const{declaration:r,type:i}of c)!r||r.type||r.initializer||wie(e,t,n,r,i,o,a);r&&e.insertNodeAfter(n,ye(i.parameters),ZC.createToken(22))}}(e,_,t,n,u,i,s,o),d=n}break;case _a.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case _a._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:gD(u)&&VN(u.name)&&(wie(e,_,t,u,Fie(u.name,i,o),i,s),d=u);break;case _a.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:hD(u)&&(Cie(e,_,t,u,i,s,o),d=u);break;case _a.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:Kue.isThisTypeAnnotatable(u)&&a(u)&&(!function(e,t,n,r,i,o){const a=Eie(n,t,r,o);if(!a||!a.length)return;const s=Pie(r,a,o).thisParameter(),c=kZ(s,n,r,i);if(!c)return;Em(n)?function(e,t,n,r){e.addJSDocTags(t,n,[ZC.createJSDocThisTag(void 0,ZC.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 Tie(e,t,n,r,i,o,a){VN(r.name)&&wie(e,t,n,r,Fie(r.name,i,a),i,o)}function Cie(e,t,n,r,i,o,a){const s=pe(r.parameters);if(s&&VN(r.name)&&VN(s.name)){let c=Fie(r.name,i,a);c===i.getTypeChecker().getAnyType()&&(c=Fie(s.name,i,a)),Em(r)?Nie(e,n,[{declaration:s,type:c}],i,o):wie(e,t,n,s,c,i,o)}}function wie(e,t,n,r,i,o,a){const s=kZ(i,r,o,a);if(s)if(Em(n)&&171!==r.kind){const t=HF(r)?et(r.parent.parent,FF):r;if(!t)return;const i=ZC.createJSDocTypeExpression(s),o=gD(r)?ZC.createJSDocReturnTag(void 0,i,void 0):ZC.createJSDocTypeTag(void 0,i,void 0);e.addJSDocTags(n,t,[o])}else(function(e,t,n,r,i,o){const a=soe(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,vk(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,r,s)}function Nie(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||nl(t)||!VN(t.name))return;const n=e.type&&kZ(e.type,t,r,i);if(n){return ow(ZC.cloneNode(t.name),7168),{name:ZC.cloneNode(t.name),param:t,isOptional:!!e.isOptional,typeNode:n}}}));if(a.length)if(iF(o)||rF(o)){const n=iF(o)&&!AX(o,21,t);n&&e.insertNodeBefore(t,me(o.parameters),ZC.createToken(21)),_(a,(({typeNode:n,param:r})=>{const i=ZC.createJSDocTypeTag(void 0,ZC.createJSDocTypeExpression(n)),o=ZC.createJSDocComment(void 0,[i]);e.insertNodeAt(t,r.getStart(t),o,{suffix:" "})})),n&&e.insertNodeAfter(t,ye(o.parameters),ZC.createToken(22))}else{const n=D(a,(({name:e,typeNode:t,isOptional:n})=>ZC.createJSDocParameterTag(void 0,e,!!n,ZC.createJSDocTypeExpression(t),!1,void 0)));e.addJSDocTags(t,o,n)}}function Die(e,t,n){return R(wce.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),(e=>e.kind!==wce.EntryKind.Span?et(e.node,VN):void 0))}function Fie(e,t,n){return Pie(t,Die(e,t,n),n).single()}function Eie(e,t,n,r){let i;switch(e.kind){case 176:i=AX(e,137,t);break;case 219:case 218:const n=e.parent;i=(HF(n)||uD(n))&&VN(n.name)?n.name:e.name;break;case 262:case 174:case 173:i=e.name}if(i)return Die(i,n,r)}function Pie(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=Bu(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<e.argumentTypes.length;t++)s.push(r.getBaseTypeOfLiteralType(e.argumentTypes[t]));else s.push(r.getBaseTypeOfLiteralType(e.argumentTypes[o]));if(VN(t.name)){const i=c(Die(t.name,e,n));s.push(...l?R(i,r.getElementTypeOfArrayType):i)}const u=f(s);return{type:l?r.createArrayType(u):u,isOptional:_&&!l,declaration:t}}))},thisParameter:function(){const e={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 t)n.throwIfCancellationRequested(),u(r,e);return f(e.candidateThisTypes||s)}};function a(e){const t=new Map;for(const n of e)n.properties&&n.properties.forEach(((e,n)=>{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(;pb(e);)e=e.parent;switch(e.parent.kind){case 244:!function(e,t){v(t,YD(e)?r.getVoidType():r.getAnyType())}(e,t);break;case 225:t.isNumber=!0;break;case 224:!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 226:!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);1056&i.flags?v(n,i):n.isNumber=!0;break;case 65:case 40:const o=r.getTypeAtLocation(t.left===e?t.right:t.left);1056&o.flags?v(n,o):296&o.flags?n.isNumber=!0:402653316&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||260!==e.parent.parent.kind&&!ib(e.parent.parent,!0)||v(n,r.getTypeAtLocation(t.right))}}(e,e.parent,t);break;case 296:case 297:!function(e,t){v(t,r.getTypeAtLocation(e.parent.parent.expression))}(e.parent,t);break;case 213:case 214: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_),213===e.kind?(t.calls||(t.calls=[])).push(n):(t.constructs||(t.constructs=[])).push(n)}(e.parent,t):d(e,t);break;case 211:!function(e,t){const n=fc(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 212:!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),296&t.flags?n.numberIndex=i:n.stringIndex=i}}(e.parent,e,t);break;case 303:case 304:!function(e,t){const n=HF(e.parent.parent)?e.parent.parent:e.parent;b(t,r.getTypeAtLocation(n))}(e.parent,t);break;case 172:!function(e,t){b(t,r.getTypeAtLocation(e.parent))}(e.parent,t);break;case 260:{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=>!(16385&e.flags),low:e=>!!(16385&e.flags)},{high:e=>!(114689&e.flags||16&hx(e)),low:e=>!!(16&hx(e))}]);const i=n.filter((e=>16&hx(e)));return i.length&&(n=n.filter((e=>!(16&hx(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.length<e.length?16777216:0,o=r.createSymbol(4|i,t);return o.links.type=r.getUnionType(n),[t,o]})),_=[];i.length&&_.push(r.createIndexInfo(r.getStringType(),r.getUnionType(i),a));o.length&&_.push(r.createIndexInfo(r.getNumberType(),r.getUnionType(o),s));return r.createAnonymousType(e[0].symbol,l,t,n,_)}(i))),r.getWidenedType(r.getUnionType(n.map(r.getBaseTypeOfLiteralType),2))}function m(e){var t,n,a;const c=[];e.isNumber&&c.push(r.getNumberType()),e.isString&&c.push(r.getStringType()),e.isNumberOrString&&c.push(r.getUnionType([r.getStringType(),r.getNumberType()])),e.numberIndex&&c.push(r.createArrayType(p(e.numberIndex))),((null==(t=e.properties)?void 0:t.size)||(null==(n=e.constructs)?void 0:n.length)||e.stringIndex)&&c.push(g(e));const _=(e.candidateTypes||[]).map((e=>r.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&&!nd(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,Ku(),[y(o)],s,s)))}return!r.isTypeAssignableTo(i,p(t));var o}))}(t,e)));if(0<t.length&&t.length<3)return t.map((t=>function(e,t){if(!(4&hx(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(3145728&e.flags)return A(e.types,(e=>h(e,t,n)));if(4&hx(e)&&4&hx(t)){const i=r.getTypeArguments(e),o=r.getTypeArguments(t),a=[];if(i&&o)for(let e=0;e<i.length;e++)o[e]&&a.push(...h(i[e],o[e],n));return a}const i=r.getSignaturesOfType(e,0),o=r.getSignaturesOfType(t,0);return 1===i.length&&1===o.length?function(e,t,n){var i;const o=[];for(let a=0;a<e.parameters.length;a++){const s=e.parameters[a],c=t.parameters[a],l=e.declaration&&Bu(e.declaration.parameters[a]);if(!c)break;let _=s.valueDeclaration?r.getTypeOfSymbolAtLocation(s,s.valueDeclaration):r.getAnyType();const u=l&&r.getElementTypeOfArrayType(_);u&&(_=u);const d=(null==(i=et(c,Gu))?void 0:i.links.type)||(c.valueDeclaration?r.getTypeOfSymbolAtLocation(c,c.valueDeclaration):r.getAnyType());o.push(...h(_,d,n))}const a=r.getReturnTypeOfSignature(e),s=r.getReturnTypeOfSignature(t);return o.push(...h(a,s,n)),o}(i[0],o[0],n):[]}function y(e){const t=[],n=Math.max(...e.map((e=>e.argumentTypes.length)));for(let i=0;i<n;i++){const n=r.createSymbol(1,fc(`arg${i}`));n.links.type=f(e.map((e=>e.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||131072&t.flags||(e.candidateTypes||(e.candidateTypes=[])).push(t)}function b(e,t){!t||1&t.flags||131072&t.flags||(e.candidateThisTypes||(e.candidateThisTypes=[])).push(t)}}z7({errorCodes:xie,getCodeActions(e){const{sourceFile:t,program:n,span:{start:r},errorCode:i,cancellationToken:o,host:a,preferences:s}=e,c=$X(t,r);let l;const _=Kue.ChangeTracker.with(e,(e=>{l=Sie(e,t,c,i,n,o,it,a,s)})),u=l&&Cc(l);return u&&0!==_.length?[M7(bie,_,[kie(i,c),Gd(u)],bie,_a.Infer_all_types_from_usage)]:void 0},fixIds:[bie],getAllCodeActions(e){const{sourceFile:t,program:n,cancellationToken:r,host:i,preferences:o}=e,a=BQ();return H7(e,xie,((e,s)=>{Sie(e,t,$X(s.file,s.start),s.code,n,r,a,i,o)}))}});var Aie="fixReturnTypeInAsyncFunction",Iie=[_a.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 Oie(e,t,n){if(Em(e))return;const r=uc($X(e,n),o_),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 Lie(e,t,n,r){e.replaceNode(t,n,ZC.createTypeReferenceNode("Promise",[r]))}z7({errorCodes:Iie,fixIds:[Aie],getCodeActions:function(e){const{sourceFile:t,program:n,span:r}=e,i=n.getTypeChecker(),o=Oie(t,n.getTypeChecker(),r.start);if(!o)return;const{returnTypeNode:a,returnType:s,promisedTypeNode:c,promisedType:l}=o,_=Kue.ChangeTracker.with(e,(e=>Lie(e,t,a,c)));return[M7(Aie,_,[_a.Replace_0_with_Promise_1,i.typeToString(s),i.typeToString(l)],Aie,_a.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>H7(e,Iie,((t,n)=>{const r=Oie(n.file,e.program.getTypeChecker(),n.start);r&&Lie(t,n.file,r.returnTypeNode,r.promisedTypeNode)}))});var jie="disableJsDiagnostics",Rie="disableJsDiagnostics",Mie=R(Object.keys(_a),(e=>{const t=_a[e];return 1===t.category?t.code:void 0}));function Bie(e,t,n,r){const{line:i}=za(t,n);r&&!J(r,i)||e.insertCommentBeforeLine(t,i,n," @ts-ignore")}function Jie(e,t,n,r,i,o,a){const s=e.symbol.members;for(const c of t)s.has(c.escapedName)||Uie(c,e,n,r,i,o,a,void 0)}function zie(e){return{trackSymbol:()=>!1,moduleResolverHost:KQ(e.program,e.host)}}z7({errorCodes:Mie,getCodeActions:function(e){const{sourceFile:t,program:n,span:r,host:i,formatContext:o}=e;if(!Em(t)||!rT(t,n.getCompilerOptions()))return;const a=t.checkJsDirective?"":RY(i,o.options),s=[R7(jie,[$7(t.fileName,[OQ(t.checkJsDirective?$s(t.checkJsDirective.pos,t.checkJsDirective.end):Ws(0,0),`// @ts-nocheck${a}`)])],_a.Disable_checking_for_this_file)];return Kue.isValidLocationToAddComment(t,r.start)&&s.unshift(M7(jie,Kue.ChangeTracker.with(e,(e=>Bie(e,t,r.start))),_a.Ignore_this_error_message,Rie,_a.Add_ts_ignore_to_all_error_messages)),s},fixIds:[Rie],getAllCodeActions:e=>{const t=new Set;return H7(e,Mie,((e,n)=>{Kue.isValidLocationToAddComment(n.file,n.start)&&Bie(e,n.file,n.start,t)}))}});var qie=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(qie||{});function Uie(e,t,n,r,i,o,a,c,_=3,u=!1){const d=e.getDeclarations(),p=pe(d),f=r.program.getTypeChecker(),m=vk(r.program.getCompilerOptions()),g=(null==p?void 0:p.kind)??171,h=function(e,t){if(262144&ix(e)){const t=e.links.nameType;if(t&&cC(t))return ZC.createIdentifier(mc(lC(t)))}return XY(Cc(t),!1)}(e,p),y=p?Jv(p):0;let v=256&y;v|=1&y?1:4&y?4:0,p&&p_(p)&&(v|=512);const b=function(){let e;v&&(e=ie(e,ZC.createModifiersFromModifierFlags(v)));r.program.getCompilerOptions().noImplicitOverride&&p&&Av(p)&&(e=re(e,ZC.createToken(164)));return e&&ZC.createNodeArray(e)}(),x=f.getWidenedType(f.getTypeOfSymbolAtLocation(e,t)),k=!!(16777216&e.flags),S=!!(33554432&t.flags)||u,T=eY(n,i),C=1|(0===T?268435456:0);switch(g){case 171:case 172:let n=f.typeToTypeNode(x,t,C,8,zie(r));if(o){const e=soe(n,m);e&&(n=e.typeNode,loe(o,e.symbols))}a(ZC.createPropertyDeclaration(b,p?N(h):e.getName(),k&&2&_?ZC.createToken(58):void 0,n,void 0));break;case 177:case 178:{_n.assertIsDefined(d);let e=f.typeToTypeNode(x,t,C,void 0,zie(r));const n=pv(d,p),i=n.secondAccessor?[n.firstAccessor,n.secondAccessor]:[n.firstAccessor];if(o){const t=soe(e,m);t&&(e=t.typeNode,loe(o,t.symbols))}for(const t of i)if(gD(t))a(ZC.createGetAccessorDeclaration(b,N(h),s,E(e),F(c,T,S)));else{_n.assertNode(t,hD,"The counterpart to a getter should be a setter");const n=ov(t),r=n&&VN(n.name)?gc(n.name):void 0;a(ZC.createSetAccessorDeclaration(b,N(h),eoe(1,[r],[E(e)],1,!1),F(c,T,S)))}break}case 173:case 174:_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,N(h),F(c,T,S));break}for(const e of i)e.declaration&&33554432&e.declaration.flags||w(T,e,b,N(h));if(!S)if(d.length>i.length){const e=f.getSignatureFromDeclaration(d[d.length-1]);w(T,e,b,N(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),ZB(e)&&(d=!0),e.parameters.length>=_.parameters.length&&(!ZB(e)||ZB(_))&&(_=e);const p=_.parameters.length-(ZB(_)?1:0),f=_.parameters.map((e=>e.name)),m=eoe(p,f,void 0,u,!1);if(d){const e=ZC.createParameterDeclaration(void 0,ZC.createToken(26),f[p]||"rest",p>=u?ZC.createToken(58):void 0,ZC.createArrayTypeNode(ZC.createKeywordTypeNode(159)),void 0);m.push(e)}return function(e,t,n,r,i,o,a,s){return ZC.createMethodDeclaration(e,void 0,t,n?ZC.createToken(58):void 0,r,i,o,s||toe(a))}(a,i,o,void 0,m,function(e,t,n,r){if(l(e)){const i=t.getUnionType(D(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(i,r,1,8,zie(n))}}(r,e,t,n),s,c)}(f,r,t,i,N(h),k&&!!(1&_),b,T,c))}function w(e,n,i,s,c){const l=Vie(174,r,e,n,c,s,i,k&&!!(1&_),t,o);l&&a(l)}function N(e){return VN(e)&&"constructor"===e.escapedText?ZC.createComputedPropertyName(ZC.createStringLiteral(gc(e),0===T)):XY(e,!1)}function F(e,t,n){return n?void 0:XY(e,!1)||toe(t)}function E(e){return XY(e,!1)}}function Vie(e,t,n,r,i,o,a,s,c,l){const _=t.program,u=_.getTypeChecker(),d=vk(_.getCompilerOptions()),p=Em(c),f=524545|(0===n?268435456:0),m=u.signatureToSignatureDeclaration(r,e,c,f,8,zie(t));if(!m)return;let g=p?void 0:m.typeParameters,h=m.parameters,y=p?void 0:XY(m.type);if(l){if(g){const e=E(g,(e=>{let t=e.constraint,n=e.default;if(t){const e=soe(t,d);e&&(t=e.typeNode,loe(l,e.symbols))}if(n){const e=soe(n,d);e&&(n=e.typeNode,loe(l,e.symbols))}return ZC.updateTypeParameterDeclaration(e,e.modifiers,e.name,t,n)}));g!==e&&(g=cI(ZC.createNodeArray(e,g.hasTrailingComma),g))}const e=E(h,(e=>{let t=p?void 0:e.type;if(t){const e=soe(t,d);e&&(t=e.typeNode,loe(l,e.symbols))}return ZC.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,p?void 0:e.questionToken,t,e.initializer)}));if(h!==e&&(h=cI(ZC.createNodeArray(e,h.hasTrailingComma),h)),y){const e=soe(y,d);e&&(y=e.typeNode,loe(l,e.symbols))}}const v=s?ZC.createToken(58):void 0,b=m.asteriskToken;return rF(m)?ZC.updateFunctionExpression(m,a,m.asteriskToken,et(o,VN),g,h,y,i??m.body):iF(m)?ZC.updateArrowFunction(m,a,g,h,y,m.equalsGreaterThanToken,i??m.body):pD(m)?ZC.updateMethodDeclaration(m,a,b,o??ZC.createIdentifier(""),v,g,h,y,i):GF(m)?ZC.updateFunctionDeclaration(m,a,m.asteriskToken,et(o,VN),g,h,y,i??m.body):void 0}function Wie(e,t,n,r,i,o,a){const s=eY(t.sourceFile,t.preferences),c=vk(t.program.getCompilerOptions()),l=zie(t),_=t.program.getTypeChecker(),u=Em(a),{typeArguments:d,arguments:p,parent:f}=r,m=u?void 0:_.getContextualType(r),g=D(p,(e=>VN(e)?e.text:XD(e)&&VN(e.name)?e.name.text:void 0)),h=u?[]:D(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;_<n.length;_+=1){const u=n[_];if(u.isUnionOrIntersection()&&u.types.some(Qie)){const e=$ie(_);c.push(ZC.createTypeReferenceNode(e)),l.set(e,void 0);continue}const d=e.getBaseTypeOfLiteralType(u),p=Hie(e,t,d,r,i,o,a,s);if(!p)continue;c.push(p);const f=Zie(u),m=u.isTypeParameter()&&u.constraint&&!Yie(u.constraint)?Hie(e,t,u.constraint,r,i,o,a,s):void 0;f&&l.set(f,{argumentType:u,constraint:m})}return{argumentTypeNodes:c,argumentTypeParameters:Ie(l.entries())}}(_,n,h,a,c,1,8,l),b=o?ZC.createNodeArray(ZC.createModifiersFromModifierFlags(o)):void 0,x=fF(f)?ZC.createToken(42):void 0,k=u?void 0:function(e,t,n){const r=new Set(t.map((e=>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<o;e+=1)r.add($ie(e))}return Ie(r.values(),(e=>{var t;return ZC.createTypeParameterDeclaration(void 0,e,null==(t=i.get(e))?void 0:t.constraint)}))}(_,v,d),S=eoe(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 174:return ZC.createMethodDeclaration(b,x,i,void 0,k,S,T,toe(s));case 173:return ZC.createMethodSignature(b,i,void 0,k,S,void 0===T?ZC.createKeywordTypeNode(159):T);case 262:return _n.assert("string"==typeof i||VN(i),"Unexpected name"),ZC.createFunctionDeclaration(b,x,i,k,S,T,noe(_a.Function_not_implemented.message,s));default:_n.fail("Unexpected kind")}}function $ie(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function Hie(e,t,n,r,i,o,a,s){const c=e.typeToTypeNode(n,r,o,a,s);if(c)return Kie(c,t,i)}function Kie(e,t,n){const r=soe(e,n);return r&&(loe(t,r.symbols),e=r.typeNode),XY(e)}function Gie(e,t,n,r,i,o){let a=e.typeToTypeNode(t,n,r,i,o);if(a){if(kD(a)){const n=t;if(n.typeArguments&&a.typeArguments){const t=function(e,t){_n.assert(t.typeArguments);const n=t.typeArguments,r=t.target;for(let t=0;t<n.length;t++){const i=n.slice(0,t);if(e.fillMissingTypeArguments(i,r.typeParameters,t,!1).every(((e,t)=>e===n[t])))return t}return n.length}(e,n);if(t<a.typeArguments.length){const e=ZC.createNodeArray(a.typeArguments.slice(0,t));a=ZC.updateTypeReferenceNode(a,a.typeName,e)}}}return a}}function Xie(e,t,n,r,i,o,a,s){let c=e.typePredicateToTypePredicateNode(n,r,o,a,s);if((null==c?void 0:c.type)&&qD(c.type)){const e=soe(c.type,i);e&&(loe(t,e.symbols),c=ZC.updateTypePredicateNode(c,c.assertsModifier,c.parameterName,e.typeNode))}return XY(c)}function Qie(e){return e.isUnionOrIntersection()?e.types.some(Qie):262144&e.flags}function Yie(e){return 524288&e.flags&&16===e.objectFlags}function Zie(e){var t;if(3145728&e.flags)for(const t of e.types){const e=Zie(t);if(e)return e}return 262144&e.flags?null==(t=e.getSymbol())?void 0:t.getName():void 0}function eoe(e,t,n,r,i){const o=[],a=new Map;for(let s=0;s<e;s++){const e=(null==t?void 0:t[s])||`arg${s}`,c=a.get(e);a.set(e,(c||0)+1);const l=ZC.createParameterDeclaration(void 0,void 0,e+(c||""),void 0!==r&&s>=r?ZC.createToken(58):void 0,i?void 0:(null==n?void 0:n[s])||ZC.createKeywordTypeNode(159),void 0);o.push(l)}return o}function toe(e){return noe(_a.Method_not_implemented.message,e)}function noe(e,t){return ZC.createBlock([ZC.createThrowStatement(ZC.createNewExpression(ZC.createIdentifier("Error"),void 0,[ZC.createStringLiteral(e,0===t)]))],!0)}function roe(e,t,n){const r=Wf(t);if(!r)return;const i=aoe(r,"compilerOptions");if(void 0===i)return void e.insertNodeAtObjectStart(t,r,ooe("compilerOptions",ZC.createObjectLiteralExpression(n.map((([e,t])=>ooe(e,t))),!0)));const o=i.initializer;if(GD(o))for(const[r,i]of n){const n=aoe(o,r);void 0===n?e.insertNodeAtObjectStart(t,o,ooe(r,i)):e.replaceNode(t,n.initializer,i)}}function ioe(e,t,n,r){roe(e,t,[[n,r]])}function ooe(e,t){return ZC.createPropertyAssignment(ZC.createStringLiteral(e),t)}function aoe(e,t){return y(e.properties,(e=>zE(e)&&!!e.name&&NN(e.name)&&e.name.text===t))}function soe(e,t){let n;const r=nJ(e,(function e(r){if(uf(r)&&r.qualifier){const i=cb(r.qualifier);if(!i.symbol)return dJ(r,e,void 0);const o=GZ(i.symbol,t),a=o!==i.text?coe(r.qualifier,ZC.createIdentifier(o)):r.qualifier;n=re(n,i.symbol);const s=rJ(r.typeArguments,e,b_);return ZC.createTypeReferenceNode(a,s)}return dJ(r,e,void 0)}),b_);if(n&&r)return{typeNode:r,symbols:n}}function coe(e,t){return 80===e.kind?t:ZC.createQualifiedName(coe(e.left,t),e.right)}function loe(e,t){t.forEach((t=>e.addImportFromExportedSymbol(t,!0)))}function _oe(e,t){const n=Fs(t);let r=$X(e,t.start);for(;r.end<n;)r=r.parent;return r}function uoe(e,t,n,r,i,o){const a=moe(e,t,n,r);if(!a||a6.isRefactorErrorInfo(a))return;const s=Kue.ChangeTracker.fromContext(i),{isStatic:c,isReadonly:l,fieldName:_,accessorName:u,originalName:d,type:p,container:f,declaration:m}=a;let g,h;if(tZ(_),tZ(u),tZ(m),tZ(f),u_(f)){const t=Jv(m);if(Fm(e)){const e=ZC.createModifiersFromModifierFlags(t);g=e,h=e}else g=ZC.createModifiersFromModifierFlags(function(e){e&=-9,e&=-3,4&e||(e|=1);return e}(t)),h=ZC.createModifiersFromModifierFlags(function(e){return e&=-2,e&=-5,e|=2,e}(t));_I(m)&&(h=$(Nc(m),h))}!function(e,t,n,r,i,o){uD(n)?function(e,t,n,r,i,o){const a=ZC.updatePropertyDeclaration(n,o,i,n.questionToken||n.exclamationToken,r,n.initializer);e.replaceNode(t,n,a)}(e,t,n,r,i,o):zE(n)?function(e,t,n,r){let i=ZC.updatePropertyAssignment(n,r,n.initializer);(i.modifiers||i.questionToken||i.exclamationToken)&&(i===n&&(i=ZC.cloneNode(i)),i.modifiers=void 0,i.questionToken=void 0,i.exclamationToken=void 0);e.replacePropertyAssignment(t,n,i)}(e,t,n,i):e.replaceNode(t,n,ZC.updateParameterDeclaration(n,o,n.dotDotDotToken,tt(i,VN),n.questionToken,n.type,n.initializer))}(s,e,m,p,_,h);const y=function(e,t,n,r,i,o){return ZC.createGetAccessorDeclaration(r,t,[],n,ZC.createBlock([ZC.createReturnStatement(foe(e,i,o))],!0))}(_,u,p,g,c,f);if(tZ(y),goe(s,e,y,m,f),l){const t=iv(f);t&&function(e,t,n,r,i){if(!n.body)return;n.body.forEachChild((function n(o){QD(o)&&110===o.expression.kind&&NN(o.argumentExpression)&&o.argumentExpression.text===i&&lx(o)&&e.replaceNode(t,o.argumentExpression,ZC.createStringLiteral(r)),XD(o)&&110===o.expression.kind&&o.name.text===i&&lx(o)&&e.replaceNode(t,o.name,ZC.createIdentifier(r)),r_(o)||u_(o)||o.forEachChild(n)}))}(s,e,t,_.text,d)}else{const t=function(e,t,n,r,i,o){return ZC.createSetAccessorDeclaration(r,t,[ZC.createParameterDeclaration(void 0,void 0,ZC.createIdentifier("value"),void 0,n)],ZC.createBlock([ZC.createExpressionStatement(ZC.createAssignment(foe(e,i,o),ZC.createIdentifier("value")))],!0))}(_,u,p,g,c,f);tZ(t),goe(s,e,t,m,f)}return s.getChanges()}function doe(e){return Zs(e,e.parent)||uD(e)||zE(e)}function poe(e,t){return VN(t)?ZC.createIdentifier(e):ZC.createStringLiteral(e)}function foe(e,t,n){const r=t?n.name:ZC.createThis();return VN(e)?ZC.createPropertyAccessExpression(r,e):ZC.createElementAccessExpression(r,ZC.createStringLiteralFromNode(e))}function moe(e,t,n,r,i=!0){const o=n===r&&i,a=uc($X(e,n).parent,doe);if(!a||!CX(a.name,e,n,r)&&!o)return{error:Wx(_a.Could_not_find_property_for_which_to_generate_accessor)};if(!function(e){return VN(e)||NN(e)}(a.name))return{error:Wx(_a.Name_is_not_valid)};if(271!=(98303&Jv(a)|271))return{error:Wx(_a.Can_only_convert_property_with_modifier)};const s=a.name.text,c=e0(s),l=poe(c?s:sZ(`_${s}`,e),a.name),_=poe(c?sZ(s.substring(1),e):s,a.name);return{isStatic:Ev(a),isReadonly:Lv(a),type:hoe(a,t),container:169===a.kind?a.parent.parent:a.parent,originalName:a.name.text,declaration:a,fieldName:l,accessorName:_,renameAccessor:c}}function goe(e,t,n,r,i){Zs(r,r.parent)?e.insertMemberAtStart(t,i,n):zE(r)?e.insertNodeAfterComma(t,r,n):e.insertNodeAfter(t,r,n)}function hoe(e,t){const n=mv(e);if(uD(e)&&n&&e.questionToken){const e=t.getTypeChecker(),r=e.getTypeFromTypeNode(n);if(!e.isTypeAssignableTo(e.getUndefinedType(),r)){const e=AD(n)?n.types:[n];return ZC.createUnionTypeNode([...e,ZC.createKeywordTypeNode(157)])}}return n}function yoe(e,t){const n=[];for(;e;){const r=vh(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,u_);if(!a)break;n.push(a),e=a}return n}var voe="invalidImportSyntax";function boe(e,t,n,r){const i=Kue.ChangeTracker.with(e,(e=>e.replaceNode(t,n,r)));return R7(voe,i,[_a.Replace_import_with_0,i[0].textChanges[0].newText])}function xoe(e,t){const n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&Gu(n.symbol)&&n.symbol.links.originatingImport))return[];const r=[],i=n.symbol.links.originatingImport;if(lf(i)||ae(r,function(e,t){const n=yd(t),r=Sg(t),i=e.program.getCompilerOptions(),o=[];return o.push(boe(e,n,t,XQ(r.name,void 0,t.moduleSpecifier,eY(n,e.preferences)))),1===bk(i)&&o.push(boe(e,n,t,ZC.createImportEqualsDeclaration(void 0,!1,r.name,ZC.createExternalModuleReference(t.moduleSpecifier)))),o}(e,i)),V_(t)&&(!Sc(t.parent)||t.parent.name!==t)){const n=e.sourceFile,i=Kue.ChangeTracker.with(e,(e=>e.replaceNode(n,t,ZC.createPropertyAccessExpression(t,"default"),{})));r.push(R7(voe,i,_a.Use_synthetic_default_member))}return r}z7({errorCodes:[_a.This_expression_is_not_callable.code,_a.This_expression_is_not_constructable.code],getCodeActions:function(e){const t=e.sourceFile,n=_a.This_expression_is_not_callable.code===e.errorCode?213:214,r=uc($X(t,e.span.start),(e=>e.kind===n));if(!r)return[];const i=r.expression;return xoe(e,i)}}),z7({errorCodes:[_a.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,_a.Type_0_does_not_satisfy_the_constraint_1.code,_a.Type_0_is_not_assignable_to_type_1.code,_a.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,_a.Type_predicate_0_is_not_assignable_to_1.code,_a.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,_a._0_index_type_1_is_not_assignable_to_2_index_type_3.code,_a.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,_a.Property_0_in_type_1_is_not_assignable_to_type_2.code,_a.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,_a.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:function(e){const t=uc($X(e.sourceFile,e.span.start),(t=>t.getStart()===e.span.start&&t.getEnd()===e.span.start+e.span.length));if(!t)return[];return xoe(e,t)}});var koe="strictClassInitialization",Soe="addMissingPropertyDefiniteAssignmentAssertions",Toe="addMissingPropertyUndefinedType",Coe="addMissingPropertyInitializer",woe=[_a.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];function Noe(e,t){const n=$X(e,t);if(VN(n)&&uD(n.parent)){const e=fv(n.parent);if(e)return{type:e,prop:n.parent,isJs:Em(n.parent)}}}function Doe(e,t,n){tZ(n);const r=ZC.updatePropertyDeclaration(n,n.modifiers,n.name,ZC.createToken(54),n.type,n.initializer);e.replaceNode(t,n,r)}function Foe(e,t,n){const r=ZC.createKeywordTypeNode(157),i=AD(n.type)?n.type.types.concat(r):[n.type,r],o=ZC.createUnionTypeNode(i);n.isJs?e.addJSDocTags(t,n.prop,[ZC.createJSDocTypeTag(void 0,ZC.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function Eoe(e,t,n,r){tZ(n);const i=ZC.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,r);e.replaceNode(t,n,i)}function Poe(e,t){return Aoe(e,e.getTypeFromTypeNode(t.type))}function Aoe(e,t){if(512&t.flags)return t===e.getFalseType()||t===e.getFalseType(!0)?ZC.createFalse():ZC.createTrue();if(t.isStringLiteral())return ZC.createStringLiteral(t.value);if(t.isNumberLiteral())return ZC.createNumericLiteral(t.value);if(2048&t.flags)return ZC.createBigIntLiteral(t.value);if(t.isUnion())return d(t.types,(t=>Aoe(e,t)));if(t.isClass()){const e=gx(t.symbol);if(!e||Dv(e,64))return;const n=iv(e);if(n&&n.parameters.length)return;return ZC.createNewExpression(ZC.createIdentifier(t.symbol.name),void 0,void 0)}return e.isArrayLikeType(t)?ZC.createArrayLiteralExpression():void 0}z7({errorCodes:woe,getCodeActions:function(e){const t=Noe(e.sourceFile,e.span.start);if(!t)return;const n=[];return re(n,function(e,t){const n=Kue.ChangeTracker.with(e,(n=>Foe(n,e.sourceFile,t)));return M7(koe,n,[_a.Add_undefined_type_to_property_0,t.prop.name.getText()],Toe,_a.Add_undefined_type_to_all_uninitialized_properties)}(e,t)),re(n,function(e,t){if(t.isJs)return;const n=Kue.ChangeTracker.with(e,(n=>Doe(n,e.sourceFile,t.prop)));return M7(koe,n,[_a.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],Soe,_a.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=Poe(n,t.prop);if(!r)return;const i=Kue.ChangeTracker.with(e,(n=>Eoe(n,e.sourceFile,t.prop,r)));return M7(koe,i,[_a.Add_initializer_to_property_0,t.prop.name.getText()],Coe,_a.Add_initializers_to_all_uninitialized_properties)}(e,t)),n},fixIds:[Soe,Toe,Coe],getAllCodeActions:e=>H7(e,woe,((t,n)=>{const r=Noe(n.file,n.start);if(r)switch(e.fixId){case Soe:Doe(t,n.file,r.prop);break;case Toe:Foe(t,n.file,r);break;case Coe:const i=Poe(e.program.getTypeChecker(),r.prop);if(!i)return;Eoe(t,n.file,r.prop,i);break;default:_n.fail(JSON.stringify(e.fixId))}}))});var Ioe="requireInTs",Ooe=[_a.require_call_may_be_converted_to_an_import.code];function Loe(e,t,n){const{allowSyntheticDefaults:r,defaultImportName:i,namedImports:o,statement:a,moduleSpecifier:s}=n;e.replaceNode(t,a,i&&!r?ZC.createImportEqualsDeclaration(void 0,!1,i,ZC.createExternalModuleReference(s)):ZC.createImportDeclaration(void 0,ZC.createImportClause(!1,i,o),s,void 0))}function joe(e,t,n,r){const{parent:i}=$X(e,n);Lm(i,!0)||_n.failBadSyntaxKind(i);const o=tt(i.parent,HF),a=eY(e,r),s=et(o.name,VN),c=WD(o.name)?function(e){const t=[];for(const n of e.elements){if(!VN(n.name)||n.initializer)return;t.push(ZC.createImportSpecifier(!1,et(n.propertyName,VN),n.name))}if(t.length)return ZC.createNamedImports(t)}(o.name):void 0;if(s||c){const e=me(i.arguments);return{allowSyntheticDefaults:Ck(t.getCompilerOptions()),defaultImportName:s,namedImports:c,statement:tt(o.parent.parent,FF),moduleSpecifier:EN(e)?ZC.createStringLiteral(e.text,0===a):e}}}z7({errorCodes:Ooe,getCodeActions(e){const t=joe(e.sourceFile,e.program,e.span.start,e.preferences);if(!t)return;const n=Kue.ChangeTracker.with(e,(n=>Loe(n,e.sourceFile,t)));return[M7(Ioe,n,_a.Convert_require_to_import,Ioe,_a.Convert_all_require_to_import)]},fixIds:[Ioe],getAllCodeActions:e=>H7(e,Ooe,((t,n)=>{const r=joe(n.file,e.program,n.start,e.preferences);r&&Loe(t,e.sourceFile,r)}))});var Roe="useDefaultImport",Moe=[_a.Import_may_be_converted_to_a_default_import.code];function Boe(e,t){const n=$X(e,t);if(!VN(n))return;const{parent:r}=n;if(iE(r)&&TE(r.moduleReference))return{importNode:r,name:n,moduleSpecifier:r.moduleReference.expression};if(dE(r)&&oE(r.parent.parent)){const e=r.parent.parent;return{importNode:e,name:n,moduleSpecifier:e.moduleSpecifier}}}function Joe(e,t,n,r){e.replaceNode(t,n.importNode,XQ(n.name,void 0,n.moduleSpecifier,eY(t,r)))}z7({errorCodes:Moe,getCodeActions(e){const{sourceFile:t,span:{start:n}}=e,r=Boe(t,n);if(!r)return;const i=Kue.ChangeTracker.with(e,(n=>Joe(n,t,r,e.preferences)));return[M7(Roe,i,_a.Convert_to_default_import,Roe,_a.Convert_all_to_default_imports)]},fixIds:[Roe],getAllCodeActions:e=>H7(e,Moe,((t,n)=>{const r=Boe(n.file,n.start);r&&Joe(t,n.file,r,e.preferences)}))});var zoe="useBigintLiteral",qoe=[_a.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code];function Uoe(e,t,n){const r=et($X(t,n.start),CN);if(!r)return;const i=r.getText(t)+"n";e.replaceNode(t,r,ZC.createBigIntLiteral(i))}z7({errorCodes:qoe,getCodeActions:function(e){const t=Kue.ChangeTracker.with(e,(t=>Uoe(t,e.sourceFile,e.span)));if(t.length>0)return[M7(zoe,t,_a.Convert_to_a_bigint_numeric_literal,zoe,_a.Convert_all_to_bigint_numeric_literals)]},fixIds:[zoe],getAllCodeActions:e=>H7(e,qoe,((e,t)=>Uoe(e,t.file,t)))});var Voe="fixAddModuleReferTypeMissingTypeof",Woe=[_a.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function $oe(e,t){const n=$X(e,t);return _n.assert(102===n.kind,"This token should be an ImportKeyword"),_n.assert(205===n.parent.kind,"Token parent should be an ImportType"),n.parent}function Hoe(e,t,n){const r=ZC.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,r)}z7({errorCodes:Woe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=$oe(t,n.start),i=Kue.ChangeTracker.with(e,(e=>Hoe(e,t,r)));return[M7(Voe,i,_a.Add_missing_typeof,Voe,_a.Add_missing_typeof)]},fixIds:[Voe],getAllCodeActions:e=>H7(e,Woe,((t,n)=>Hoe(t,e.sourceFile,$oe(n.file,n.start))))});var Koe="wrapJsxInFragment",Goe=[_a.JSX_expressions_must_have_one_parent_element.code];function Xoe(e,t){let n=$X(e,t).parent.parent;if((uF(n)||(n=n.parent,uF(n)))&&wd(n.operatorToken))return n}function Qoe(e,t,n){const r=function(e){const t=[];let n=e;for(;;){if(uF(n)&&wd(n.operatorToken)&&28===n.operatorToken.kind){if(t.push(n.left),hu(n.right))return t.push(n.right),t;if(uF(n.right)){n=n.right;continue}return}return}}(n);r&&e.replaceNode(t,n,ZC.createJsxFragment(ZC.createJsxOpeningFragment(),r,ZC.createJsxJsxClosingFragment()))}z7({errorCodes:Goe,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=Xoe(t,n.start);if(!r)return;const i=Kue.ChangeTracker.with(e,(e=>Qoe(e,t,r)));return[M7(Koe,i,_a.Wrap_in_JSX_fragment,Koe,_a.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[Koe],getAllCodeActions:e=>H7(e,Goe,((t,n)=>{const r=Xoe(e.sourceFile,n.start);r&&Qoe(t,e.sourceFile,r)}))});var Yoe="wrapDecoratorInParentheses",Zoe=[_a.Expression_must_be_enclosed_in_parentheses_to_be_used_as_a_decorator.code];function eae(e,t,n){const r=uc($X(t,n),lD);_n.assert(!!r,"Expected position to be owned by a decorator.");const i=ZC.createParenthesizedExpression(r.expression);e.replaceNode(t,r.expression,i)}z7({errorCodes:Zoe,getCodeActions:function(e){const t=Kue.ChangeTracker.with(e,(t=>eae(t,e.sourceFile,e.span.start)));return[M7(Yoe,t,_a.Wrap_in_parentheses,Yoe,_a.Wrap_all_invalid_decorator_expressions_in_parentheses)]},fixIds:[Yoe],getAllCodeActions:e=>H7(e,Zoe,((e,t)=>eae(e,t.file,t.start)))});var tae="fixConvertToMappedObjectType",nae=[_a.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function rae(e,t){const n=et($X(e,t).parent.parent,bD);if(!n)return;const r=QF(n.parent)?n.parent:et(n.parent.parent,YF);return r?{indexSignature:n,container:r}:void 0}function iae(e,t,{indexSignature:n,container:r}){const i=(QF(r)?r.members:r.type.members).filter((e=>!bD(e))),o=me(n.parameters),a=ZC.createTypeParameterDeclaration(void 0,tt(o.name,VN),o.type),c=ZC.createMappedTypeNode(Lv(n)?ZC.createModifier(148):void 0,a,void 0,n.questionToken,n.type,void 0),l=ZC.createIntersectionTypeNode([...xh(r),c,...i.length?[ZC.createTypeLiteralNode(i)]:s]);var _,u;e.replaceNode(t,r,(_=r,u=l,ZC.createTypeAliasDeclaration(_.modifiers,_.name,_.typeParameters,u)))}z7({errorCodes:nae,getCodeActions:function(e){const{sourceFile:t,span:n}=e,r=rae(t,n.start);if(!r)return;const i=Kue.ChangeTracker.with(e,(e=>iae(e,t,r))),o=gc(r.container.name);return[M7(tae,i,[_a.Convert_0_to_mapped_object_type,o],tae,[_a.Convert_0_to_mapped_object_type,o])]},fixIds:[tae],getAllCodeActions:e=>H7(e,nae,((e,t)=>{const n=rae(t.file,t.start);n&&iae(e,t.file,n)}))});var oae="removeAccidentalCallParentheses";z7({errorCodes:[_a.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],getCodeActions(e){const t=uc($X(e.sourceFile,e.span.start),YD);if(!t)return;const n=Kue.ChangeTracker.with(e,(n=>{n.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})}));return[R7(oae,n,_a.Remove_parentheses)]},fixIds:[oae]});var aae="removeUnnecessaryAwait",sae=[_a.await_has_no_effect_on_the_type_of_this_expression.code];function cae(e,t,n){const r=et($X(t,n.start),(e=>135===e.kind)),i=r&&et(r.parent,cF);if(!i)return;let o=i;if(nF(i.parent)){if(VN(Fx(i.expression,!1))){const e=QX(i.parent.pos,t);e&&105!==e.kind&&(o=i.parent)}}e.replaceNode(t,o,i.expression)}z7({errorCodes:sae,getCodeActions:function(e){const t=Kue.ChangeTracker.with(e,(t=>cae(t,e.sourceFile,e.span)));if(t.length>0)return[M7(aae,t,_a.Remove_unnecessary_await,aae,_a.Remove_all_unnecessary_uses_of_await)]},fixIds:[aae],getAllCodeActions:e=>H7(e,sae,((e,t)=>cae(e,t.file,t)))});var lae=[_a.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],_ae="splitTypeOnlyImport";function uae(e,t){return uc($X(e,t.start),oE)}function dae(e,t,n){if(!t)return;const r=_n.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,ZC.updateImportDeclaration(t,t.modifiers,ZC.updateImportClause(r,r.isTypeOnly,r.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,ZC.createImportDeclaration(void 0,ZC.updateImportClause(r,r.isTypeOnly,void 0,r.namedBindings),t.moduleSpecifier,t.attributes))}z7({errorCodes:lae,fixIds:[_ae],getCodeActions:function(e){const t=Kue.ChangeTracker.with(e,(t=>dae(t,uae(e.sourceFile,e.span),e)));if(t.length)return[M7(_ae,t,_a.Split_into_two_separate_import_declarations,_ae,_a.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>H7(e,lae,((t,n)=>{dae(t,uae(e.sourceFile,n),e)}))});var pae="fixConvertConstToLet",fae=[_a.Cannot_assign_to_0_because_it_is_a_constant.code];function mae(e,t,n){var r;const i=n.getTypeChecker().getSymbolAtLocation($X(e,t));if(void 0===i)return;const o=et(null==(r=null==i?void 0:i.valueDeclaration)?void 0:r.parent,KF);if(void 0===o)return;const a=AX(o,87,e);return void 0!==a?{symbol:i,token:a}:void 0}function gae(e,t,n){e.replaceNode(t,n,ZC.createToken(121))}z7({errorCodes:fae,getCodeActions:function(e){const{sourceFile:t,span:n,program:r}=e,i=mae(t,n.start,r);if(void 0===i)return;const o=Kue.ChangeTracker.with(e,(e=>gae(e,t,i.token)));return[B7(pae,o,_a.Convert_const_to_let,pae,_a.Convert_all_const_to_let)]},getAllCodeActions:e=>{const{program:t}=e,n=new Set;return W7(Kue.ChangeTracker.with(e,(r=>{K7(e,fae,(e=>{const i=mae(e.file,e.start,t);if(i&&xx(n,HB(i.symbol)))return gae(r,e.file,i.token)}))})))},fixIds:[pae]});var hae="fixExpectedComma",yae=[_a._0_expected.code];function vae(e,t,n){const r=$X(e,t);return 27===r.kind&&r.parent&&(GD(r.parent)||KD(r.parent))?{node:r}:void 0}function bae(e,t,{node:n}){const r=ZC.createToken(28);e.replaceNode(t,n,r)}z7({errorCodes:yae,getCodeActions(e){const{sourceFile:t}=e,n=vae(t,e.span.start,e.errorCode);if(!n)return;const r=Kue.ChangeTracker.with(e,(e=>bae(e,t,n)));return[M7(hae,r,[_a.Change_0_to_1,";",","],hae,[_a.Change_0_to_1,";",","])]},fixIds:[hae],getAllCodeActions:e=>H7(e,yae,((t,n)=>{const r=vae(n.file,n.start,n.code);r&&bae(t,e.sourceFile,r)}))});var xae="addVoidToPromise",kae=[_a.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,_a.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function Sae(e,t,n,r,i){const o=$X(t,n.start);if(!VN(o)||!YD(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||!cD(c)||!ZD(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(nF(e.parent)){const n=null==(t=tl(e.parent))?void 0:t.typeExpression.type;if(n&&kD(n)&&VN(n.typeName)&&"Promise"===gc(n.typeName))return n.typeArguments}}(c.parent.parent);if(V(l)){const n=l[0],r=!AD(n)&&!jD(n)&&jD(ZC.createUnionTypeNode([n,ZC.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,Qa(t.text,c.parent.parent.pos),"/** @type {Promise<void>} */(")):(!i||2&i.flags)&&e.insertText(t,c.parent.parent.expression.end,"<void>")}}z7({errorCodes:kae,fixIds:[xae],getCodeActions(e){const t=Kue.ChangeTracker.with(e,(t=>Sae(t,e.sourceFile,e.span,e.program)));if(t.length>0)return[M7("addVoidToPromise",t,_a.Add_void_to_Promise_resolved_without_a_value,xae,_a.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:e=>H7(e,kae,((t,n)=>Sae(t,n.file,n,e.program,new Set)))});var Tae={};n(Tae,{CompletionKind:()=>yse,CompletionSource:()=>Eae,SortText:()=>Nae,StringCompletions:()=>Xse,SymbolOriginInfoKind:()=>Pae,createCompletionDetails:()=>gse,createCompletionDetailsForSymbol:()=>mse,getCompletionEntriesFromSymbols:()=>use,getCompletionEntryDetails:()=>pse,getCompletionEntrySymbol:()=>hse,getCompletionsAtPosition:()=>Jae,getDefaultCommitCharacters:()=>Bae,getPropertiesForObjectExpression:()=>Ase,moduleSpecifierResolutionCacheAttemptLimit:()=>wae,moduleSpecifierResolutionLimit:()=>Cae});var Cae=100,wae=1e3,Nae={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"},Dae=[".",",",";"],Fae=[".",";"],Eae=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(Eae||{}),Pae=(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=6]="SymbolMemberExport",e))(Pae||{});function Aae(e){return!!(e&&4&e.kind)}function Iae(e){return!(!e||32!==e.kind)}function Oae(e){return(Aae(e)||Iae(e))&&!!e.isFromPackageJson}function Lae(e){return!!(e&&64&e.kind)}function jae(e){return!!(e&&128&e.kind)}function Rae(e){return!!(e&&512&e.kind)}function Mae(e,t,n,r,i,o,a,s,c){var l,_,u,d;const p=qn(),f=a||wk(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&&h<Cae,a=!r&&o.allowIncompleteCompletions&&v<wae,c=r||a?n.getModuleSpecifierForBestExportInfo(e,i,s,a):void 0;(!r&&!a||a&&!c)&&(m=!0);h+=(null==c?void 0:c.computedWithoutCacheCount)||0,y+=e.length-((null==c?void 0:c.computedWithoutCacheCount)||0),a&&v++;return c||(f?"failed":"skipped")},skippedAny:()=>m,resolvedAny:()=>h>0,resolvedBeyondLimit:()=>h>Cae}),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 Bae(e){return e?[]:Dae}function Jae(e,t,n,r,i,o,a,s,c,l,_=!1){var u;const{previousToken:d}=xse(i,r);if(a&&!tQ(r,i,d)&&!function(e,t,n,r){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&yZ(n)&&r===n.getStart(e)+1;case"#":return!!n&&WN(n)&&!!Xf(n);case"<":return!!n&&30===n.kind&&(!uF(n.parent)||Rse(n.parent));case"/":return!!n&&(ju(n)?!!bg(n):44===n.kind&&DE(n.parent));case" ":return!!n&&rD(n)&&307===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:Bae(!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&&VN(d)){const n=function(e,t,n,r,i,o,a,s){const c=e.get();if(!c)return;const l=VX(t,s),_=n.text.toLowerCase(),u=k0(t,i,r,o,a),d=Mae("continuePreviousIncompleteResponse",i,I7.createImportSpecifierResolver(t,r,i,o),r,n.getStart(),o,!1,xT(n),(e=>{const n=R(c.entries,(n=>{var o;if(!n.hasAction||!n.source||!n.data||qae(n.data))return n;if(!Hse(n.name,_))return;const{origin:a}=_n.checkDefined(kse(n.name,n.data,r,i)),s=u.get(t.path,n.data.exportMapKey),c=s&&e.tryResolve(s,!Cs(Fy(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=ase(l),n.source=_se(l),n.sourceDisplay=[EY(l.moduleSpecifier)],n}));return e.skippedAny()||(c.isIncomplete=void 0),n}));return c.entries=d,c.flags=4|(c.flags||0),c.optionalReplacementSpan=Kae(l),c}(m,r,d,t,e,o,c,i);if(n)return n}else null==m||m.clear();const g=Xse.getStringLiteralCompletions(r,i,d,p,e,t,n,o,_);if(g)return g;if(d&&Cl(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&&!r_(r);){if(UF(r)){const e=r.label.text;n.has(e)||(n.set(e,!0),t.push({name:e,kindModifiers:"",kind:"label",sortText:Nae.LocationPriority}))}r=r.parent}return t}(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t,defaultCommitCharacters:Bae(!1)}}(d.parent);const h=bse(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:N,hasUnresolvedAutoImports:D,defaultCommitCharacters:F}=o;let E=o.literals;const P=n.getTypeChecker();if(1===_k(e.scriptKind)){const t=function(e,t){const n=uc(e,(e=>{switch(e.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}}));if(n){const e=!!AX(n,32,t),r=n.parent.openingElement.tagName.getText(t)+(e?"":">");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:DQ(n.tagName),entries:[{name:r,kind:"class",kindModifiers:void 0,sortText:Nae.LocationPriority}],defaultCommitCharacters:Bae(!1)}}return}(m,e);if(t)return t}const A=uc(u,RE);if(A&&(iD(u)||ch(u,A.expression))){const e=c0(P,A.parent.clauses);E=E.filter((t=>!e.hasValue(t))),_.forEach(((t,n)=>{if(t.valueDeclaration&&VE(t.valueDeclaration)){const r=P.getConstantValue(t.valueDeclaration);void 0!==r&&e.hasValue(r)&&(y[n]={kind:256})}}))}const I=[],O=Gae(e,r);if(O&&!f&&(!_||0===_.length)&&0===h)return;const L=use(_,I,void 0,u,m,c,e,t,n,vk(r),i,d,a,r,s,x,g,k,b,C,v,y,N,k,S,l);if(0!==h)for(const t of wse(h,!w&&Fm(e)))(x&&jQ(Ea(t.name))||!x&&Gse(t.name)||!L.has(t.name))&&(L.add(t.name),Y(I,t,zae,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;(oE(i)||hE(i)&&i.moduleSpecifier)&&e===i.moduleSpecifier&&o===a&&n.push({name:Fa(132),kind:"keyword",kindModifiers:"",sortText:Nae.GlobalsOrKeywords})}return n}(u,c))L.has(e.name)||(L.add(e.name),Y(I,e,zae,void 0,!0));for(const t of E){const n=tse(e,a,t);L.add(n.name),Y(I,n,zae,void 0,!0)}O||function(e,t,n,r,i){o7(e).forEach(((e,o)=>{if(e===t)return;const a=mc(o);!n.has(a)&&ms(a,r)&&(n.add(a),Y(i,{name:a,kind:"warning",kindModifiers:"",sortText:Nae.JavascriptIdentifiers,isFromUncheckedFile:!0,commitCharacters:[]},zae))}))}(e,m.pos,L,vk(r),I);let j;if(a.includeCompletionsWithInsertText&&u&&!S&&!T&&(j=uc(u,nE))){const i=Xae(j,e,a,r,t,n,s);i&&I.push(i.entry)}return{flags:o.flags,isGlobalCompletion:p,isIncomplete:!(!a.allowIncompleteCompletions||!D)||void 0,isMemberCompletion:Zae(d),isNewIdentifierLocation:f,optionalReplacementSpan:Kae(m),entries:I,defaultCommitCharacters:F??Bae(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 Uae([...jle.getJSDocTagNameCompletions(),...Vae(r,i,f,p,o,!0)]);case 2:return Uae([...jle.getJSDocTagCompletions(),...Vae(r,i,f,p,o,!1)]);case 3:return Uae(jle.getJSDocParameterNameCompletions(h.tag));case 4:return y=h.keywordCompletions,{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:v=h.isNewIdentifierLocation,entries:y.slice(),defaultCommitCharacters:Bae(v)};default:return _n.assertNever(h)}}function zae(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=qS(e.data.moduleSpecifier,t.data.moduleSpecifier)),0===i?-1:i}function qae(e){return!!(null==e?void 0:e.moduleSpecifier)}function Uae(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e,defaultCommitCharacters:Bae(!1)}}function Vae(e,t,n,r,i,o){const a=$X(e,t);if(!Cu(a)&&!sP(a))return[];const s=sP(a)?a:a.parent;if(!sP(s))return[];const c=s.parent;if(!r_(c))return[];const l=Fm(e),_=i.includeCompletionsWithSnippetText||void 0,u=T(s.tags,(e=>SP(e)&&e.getEnd()<=t));return R(c.parameters,(e=>{if(!Ec(e).length){if(VN(e.name)){const t={tabstop:1},a=e.name.text;let s=$ae(a,e.initializer,e.dotDotDotToken,l,!1,!1,n,r,i),c=_?$ae(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:Nae.LocationPriority,insertText:_?c:void 0,isSnippet:_}}if(e.parent.parameters.indexOf(e)===u){const t=`param${u}`,a=Wae(t,e.name,e.initializer,e.dotDotDotToken,l,!1,n,r,i),s=_?Wae(t,e.name,e.initializer,e.dotDotDotToken,l,!0,n,r,i):void 0;let c=a.join(Ab(r)+"* "),d=null==s?void 0:s.join(Ab(r)+"* ");return o&&(c=c.slice(1),d&&(d=d.slice(1))),{name:c,kind:"parameter",sortText:Nae.LocationPriority,insertText:_?d:void 0,isSnippet:_}}}}))}function Wae(e,t,n,r,i,o,a,s,c){return i?l(e,t,n,r,{tabstop:1}):[$ae(e,n,r,i,!1,o,a,s,c,{tabstop:1})];function l(e,t,n,r,l){if(WD(t)&&!r){const u={tabstop:l.tabstop},d=$ae(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[$ae(e,n,r,i,!1,o,a,s,c,l)]}function _(e,t,n){if(!t.propertyName&&VN(t.name)||VN(t.name)){const r=t.propertyName?Op(t.propertyName):t.name.text;if(!r)return;return[$ae(`${e}.${r}`,t.initializer,t.dotDotDotToken,i,!1,o,a,s,c,n)]}if(t.propertyName){const r=Op(t.propertyName);return r&&l(`${e}.${r}`,t.name,t.initializer,t.dotDotDotToken,n)}}}function $ae(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=JT(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(!(16385&e.flags)){const n=t.getSourceFile(),i=0===eY(n,c)?268435456:0,l=a.typeToTypeNode(e,uc(t,r_),i);if(l){const e=o?ose({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target}):pU({removeComments:!0,module:s.module,moduleResolution:s.moduleResolution,target:s.target});ow(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 Hae(e,t,n){return{kind:4,keywordCompletions:wse(e,t),isNewIdentifierLocation:n}}function Kae(e){return 80===(null==e?void 0:e.kind)?DQ(e):void 0}function Gae(e,t){return!Fm(e)||!!rT(e,t)}function Xae(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 _=c0(c,s),u=vk(r),d=eY(t,n),p=I7.createImportAdder(t,o,n,i),f=[];for(const t of l.types)if(1024&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=I7.typeToAutoImportableTypeNode(c,p,t,e,u);if(!r)return;const i=Qae(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?ZC.createPrefixUnaryExpression(41,ZC.createBigIntLiteral({negative:!1,base10Value:t.value.base10Value})):ZC.createBigIntLiteral(t.value));break;case"number":f.push(t.value<0?ZC.createPrefixUnaryExpression(41,ZC.createNumericLiteral(-t.value)):ZC.createNumericLiteral(t.value));break;case"string":f.push(ZC.createStringLiteral(t.value,0===d))}if(0===f.length)return;const m=D(f,(e=>ZC.createCaseClause(e,[]))),g=RY(i,null==a?void 0:a.options),h=ose({removeComments:!0,module:r.module,moduleResolution:r.moduleResolution,target:r.target,newLine:r0(g)}),y=a?e=>h.printAndFormatNode(4,e,t,a):e=>h.printNode(4,e,t),v=D(m,((e,t)=>n.includeCompletionsWithSnippetText?`${y(e)}$${t+1}`:`${y(e)}`)).join(g);return{entry:{name:`${h.printNode(4,m[0],t)} ...`,kind:"",sortText:Nae.GlobalsOrKeywords,insertText:v,hasAction:p.hasFixes()||void 0,source:"SwitchCases/",isSnippet:!!n.includeCompletionsWithSnippetText||void 0},importAdder:p}}}function Qae(e,t,n){switch(e.kind){case 183:return Yae(e.typeName,t,n);case 199:const r=Qae(e.objectType,t,n),i=Qae(e.indexType,t,n);return r&&i&&ZC.createElementAccessExpression(r,i);case 201:const o=e.literal;switch(o.kind){case 11:return ZC.createStringLiteral(o.text,0===n);case 9:return ZC.createNumericLiteral(o.text,o.numericLiteralFlags)}return;case 196:const a=Qae(e.type,t,n);return a&&(VN(a)?a:ZC.createParenthesizedExpression(a));case 186:return Yae(e.exprName,t,n);case 205:_n.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function Yae(e,t,n){if(VN(e))return e;const r=mc(e.right.escapedText);return KT(r,t)?ZC.createPropertyAccessExpression(Yae(e.left,t,n),r):ZC.createElementAccessExpression(Yae(e.left,t,n),ZC.createStringLiteral(r,0===n))}function Zae(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function ese(e,t,n){return"object"==typeof n?hT(n)+"n":Ye(n)?gZ(e,t,n):JSON.stringify(n)}function tse(e,t,n){return{name:ese(e,t,n),kind:"string",kindModifiers:"",sortText:Nae.LocationPriority,commitCharacters:[]}}function nse(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,N;let D,F,E,P,A,I,O,L=NQ(n,o),j=_se(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))D=_?`this${M?"?.":""}[${cse(a,b,l)}]`:`this${M?"?.":"."}${l}`;else if((B||M)&&p){D=B?_?`[${cse(a,b,l)}]`:`[${l}]`:l,(M||p.questionDotToken)&&(D=`?.${D}`);const e=AX(p,25,a)||AX(p,29,a);if(!e)return;const t=Kt(l,p.name.text)?p.name.end:e.end;L=$s(e.getStart(a),t)}if(f&&(void 0===D&&(D=l),D=`{${D}}`,"boolean"!=typeof f&&(L=DQ(f,a))),u&&function(e){return!!(8&e.kind)}(u)&&p){void 0===D&&(D=l);const e=QX(p.pos,a);let t="";e&&DZ(e.end,e.parent,a)&&(t=";"),t+=`(await ${p.expression.getText()})`,D=_?`${t}${D}`:`${t}${M?"?.":"."}${D}`;L=$s((et(p.parent,cF)?p.parent:p.expression).getStart(a),p.end)}if(Iae(u)&&(A=[EY(u.moduleSpecifier)],m&&(({insertText:D,replacementSpan:L}=function(e,t,n,r,i,o,a){const s=t.replacementSpan,c=JT(gZ(i,a,n.moduleSpecifier)),l=n.isDefaultExport?1:"export="===n.exportName?2:0,_=a.includeCompletionsWithSnippetText?"$1":"",u=I7.getImportKind(i,l,o,!0),d=t.couldBeTypeOnlyImportSpecifier,p=t.isTopLevelTypeOnly?` ${Fa(156)} `:" ",f=d?`${Fa(156)} `:"",m=r?";":"";switch(u){case 3:return{replacementSpan:s,insertText:`import${p}${JT(e)}${_} = require(${c})${m}`};case 1:return{replacementSpan:s,insertText:`import${p}${JT(e)}${_} from ${c}${m}`};case 2:return{replacementSpan:s,insertText:`import${p}* as ${JT(e)} from ${c}${m}`};case 0:return{replacementSpan:s,insertText:`import${p}{ ${f}${JT(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=QX(r.pos,a,r))?void 0:w.kind)&&(pD(r.parent.parent)||gD(r.parent.parent)||hD(r.parent.parent)||UE(r.parent)||(null==(N=uc(r.parent,zE))?void 0:N.getLastToken(a))===r||qE(r.parent)&&za(a,r.getEnd()).line!==za(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)&&(u_(t)||t.parent&&t.parent.parent&&__(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&u_(t.parent.parent)||t.parent&&LP(t)&&u_(t.parent))}(e,i,a)){let t;const n=rse(s,c,v,b,l,e,i,o,r,k);if(!n)return;({insertText:D,filterText:F,isSnippet:P,importAdder:t}=n),((null==t?void 0:t.hasFixes())||n.eraseRange)&&(I=!0,j="ClassMemberSnippet/")}if(u&&jae(u)&&(({insertText:D,isSnippet:P,labelDetails:O}=u),b.useLabelDetailsInCompletionEntries||(l+=O.detail,O=void 0),j="ObjectLiteralMethodSnippet/",t=Nae.SortBelow(t)),S&&!T&&b.includeCompletionsWithSnippetText&&b.jsxAttributeCompletionStyle&&"none"!==b.jsxAttributeCompletionStyle&&(!AE(i.parent)||!i.parent.initializer)){let t="braces"===b.jsxAttributeCompletionStyle;const n=R.getTypeOfSymbolAtLocation(e,i);"auto"!==b.jsxAttributeCompletionStyle||528&n.flags||1048576&n.flags&&y(n.types,(e=>!!(528&e.flags)))||(402653316&n.flags||1048576&n.flags&&h(n.types,(e=>!!(402686084&e.flags||vQ(e))))?(D=`${JT(l)}=${gZ(a,b,"$1")}`,P=!0):t=!0),t&&(D=`${JT(l)}={$1}`,P=!0)}if(void 0!==D&&!b.includeCompletionsWithInsertText)return;(Aae(u)||Iae(u))&&(E=ase(u),I=!m);const J=uc(i,wx);if(J){const e=vk(s.getCompilationSettings());if(ms(l,e)){if(275===J.kind){const e=Ea(l);e&&(135===e||Fh(e))&&(D=`${l} as ${l}_`)}}else D=cse(a,b,l),275===J.kind&&(JG.setText(a.text),JG.resetTokenState(o),130===JG.scan()&&80===JG.scan()||(D+=" as "+function(e,t){let n,r=!1,i="";for(let o=0;o<e.length;o+=void 0!==n&&n>=65536?2:1)n=e.codePointAt(o),void 0!==n&&(0===o?ps(n,t):fs(n,t))?(r&&(i+="_"),i+=String.fromCodePoint(n),r=!1):r=!0;r&&(i+="_");return i||"_"}(l,e)))}const z=Bue.getSymbolKind(R,e,i),q="warning"===z||"string"===z?[]:void 0;return{name:l,kind:z,kindModifiers:Bue.getSymbolModifiers(R,e),sortText:t,source:j,hasAction:!!I||void 0,isRecommended:lse(e,d,R)||void 0,insertText:D,filterText:F,replacementSpan:L,sourceDisplay:A,labelDetails:O,isSnippet:P,isPackageJsonImport:Oae(u)||void 0,isImportStatementCompletion:!!m||void 0,data:E,commitCharacters:q,...C?{symbol:e}:void 0}}function rse(e,t,n,r,i,o,a,s,c,l){const _=uc(a,u_);if(!_)return;let u,d=i;const p=i,f=t.getTypeChecker(),m=a.getSourceFile(),g=ose({removeComments:!0,module:n.module,moduleResolution:n.moduleResolution,target:n.target,omitTrailingSemicolon:!1,newLine:r0(RY(e,null==l?void 0:l.options))}),h=I7.createImportAdder(m,t,r,e);let y;if(r.includeCompletionsWithSnippetText){u=!0;const e=ZC.createEmptyStatement();y=ZC.createBlock([e],!0),Aw(e,{kind:0,order:0})}else y=ZC.createBlock([],!0);let v=0;const{modifiers:b,range:x,decorators:k}=function(e,t,n){if(!e||za(t,n).line>za(t,e.getEnd()).line)return{modifiers:0};let r,i,o=0;const a={pos:n,end:n};if(uD(e.parent)&&(i=function(e){if(Zl(e))return e.kind;if(VN(e)){const t=hc(e);if(t&&Xl(t))return t}return}(e))){e.parent.modifiers&&(o|=98303&Hv(e.parent.modifiers),r=e.parent.modifiers.filter(lD)||[],a.pos=Math.min(...e.parent.modifiers.map((e=>e.getStart(t)))));const n=Kv(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<a.end?a:void 0}}(c,m,s),S=64&b&&64&_.modifierFlagsCache;let T=[];if(I7.addNewNodeForMemberSymbol(o,_,m,{program:t,host:e},r,h,(e=>{let t=0;S&&(t|=64),__(e)&&1===f.getMemberOverrideModifierStatus(_,e,o)&&(t|=16),T.length||(v=e.modifierFlagsCache|t),e=ZC.replaceModifiers(e,v),T.push(e)}),y,I7.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=>ZC.replaceModifiers(e,v))),null==k?void 0:k.length){const e=T[T.length-1];_I(e)&&(T[T.length-1]=ZC.replaceDecoratorsAndModifiers(e,k.concat(Dc(e)||[])))}const r=131073;d=l?g.printAndFormatSnippetList(r,ZC.createNodeArray(T),m,l):g.printSnippetList(r,ZC.createNodeArray(T),m)}return{insertText:d,filterText:p,isSnippet:u,importAdder:h,eraseRange:x}}function ise(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=XY(Cc(c),!1),_=s.getWidenedType(s.getTypeOfSymbolAtLocation(e,t)),u=eY(n,o),d=33554432|(0===u?268435456:0);switch(c.kind){case 171:case 172:case 173:case 174:{let e=1048576&_.flags&&_.types.length<10?s.getUnionType(_.types,2):_;if(1048576&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,I7.getNoopSymbolTrackerWithResolver({program:r,host:i}));if(!n||!SD(n))return;let a;if(o.includeCompletionsWithSnippetText){const e=ZC.createEmptyStatement();a=ZC.createBlock([e],!0),Aw(e,{kind:0,order:0})}else a=ZC.createBlock([],!0);const c=n.parameters.map((e=>ZC.createParameterDeclaration(void 0,e.dotDotDotToken,e.name,void 0,void 0,e.initializer)));return ZC.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=ose({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!1,newLine:r0(RY(i,null==s?void 0:s.options))});l=s?d.printAndFormatSnippetList(80,ZC.createNodeArray([u],!0),_,s):d.printSnippetList(80,ZC.createNodeArray([u],!0),_);const p=pU({removeComments:!0,module:o.module,moduleResolution:o.moduleResolution,target:o.target,omitTrailingSemicolon:!0}),f=ZC.createMethodSignature(void 0,"",u.questionToken,u.typeParameters,u.parameters,u.type);return{isSnippet:c,insertText:l,labelDetails:{detail:p.printNode(4,f,_)}}}function ose(e){let t;const n=Kue.createWriter(Ab(e)),r=pU(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?Kue.applyChanges(i,t):i},printAndFormatSnippetList:function(e,n,r,i){const o={text:a(e,n,r),getLineAndCharacterOfPosition(e){return za(this,e)}},s=o0(i,r),c=A(n,(e=>{const t=Kue.assignPositionsToNode(e);return Sde.formatNodeGivenIndentation(t,o,r.languageVariant,0,0,{...i,options:s})})),l=t?le($(c,t),((e,t)=>vt(e.span,t.span))):c;return Kue.applyChanges(o.text,l)},printNode:function(e,n,r){const i=s(e,n,r);return t?Kue.applyChanges(i,t):i},printAndFormatNode:function(e,n,r,i){const o={text:s(e,n,r),getLineAndCharacterOfPosition(e){return za(this,e)}},a=o0(i,r),c=Kue.assignPositionsToNode(n),l=Sde.formatNodeGivenIndentation(c,o,r.languageVariant,0,0,{...i,options:a}),_=t?le($(l,t),((e,t)=>vt(e.span,t.span))):l;return Kue.applyChanges(o.text,_)}};function o(e,r){const i=JT(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 ase(e){const t=e.fileName?void 0:Fy(e.moduleSymbol.name),n=!!e.isFromPackageJson||void 0;if(Iae(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:Fy(e.moduleSymbol.name),isPackageJsonImport:!!e.isFromPackageJson||void 0}}function sse(e,t,n){const r="default"===e.exportName,i=!!e.isPackageJsonImport;if(qae(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 cse(e,t,n){return/^\d+$/.test(n)?n:gZ(e,t,n)}function lse(e,t,n){return e===t||!!(1048576&e.flags)&&n.getExportSymbolOfSymbol(e)===t}function _se(e){return Aae(e)?Fy(e.moduleSymbol.name):Iae(e)?e.moduleSpecifier:1===(null==e?void 0:e.kind)?"ThisProperty/":64===(null==e?void 0:e.kind)?"TypeOnlyAlias/":void 0}function use(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(),N=function(e,t){if(!e)return;let n=uc(e,(e=>Mf(e)||Vse(e)||k_(e)?"quit":(cD(e)||sD(e))&&!bD(e.parent)));n||(n=uc(t,(e=>Mf(e)||Vse(e)||k_(e)?"quit":HF(e))));return n}(r,i),D=FZ(a),F=c.getTypeChecker(),E=new Map;for(let _=0;_<e.length;_++){const w=e[_],N=null==x?void 0:x[_],I=Sse(w,l,N,u,!!h);if(!I||E.get(I.name)&&(!N||!jae(N))||1===u&&k&&!P(w,k))continue;if(!m&&Em(a)&&A(w))continue;const{name:O,needsConvertPropertyAccess:L}=I,j=(null==k?void 0:k[HB(w)])??Nae.LocationPriority,R=nse(w,$se(w,F)?Nae.Deprecated(j):j,n,r,i,o,a,s,c,O,L,N,b,g,y,v,D,p,d,u,f,S,T,C);if(!R)continue;const M=(!N||Lae(N))&&!(void 0===w.parent&&!V(w.declarations,(e=>e.getSourceFile()===i.getSourceFile())));E.set(O,M),Y(t,R,zae,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(!WE(i)){if(gE(i.parent))return!0;if(et(N,HF)&&e.valueDeclaration===N)return!1;const s=e.valueDeclaration??(null==(n=e.declarations)?void 0:n[0]);if(N&&s)if(cD(N)&&cD(s)){const e=N.parent.parameters;if(s.pos>=N.pos&&s.pos<e.end)return!1}else if(sD(N)&&sD(s)){if(N===s&&96===(null==r?void 0:r.kind))return!1;if(function(e){if(!e)return!1;let t=e,n=e.parent;for(;n;){if(sD(n))return n.default===t||64===t.kind;t=n,n=n.parent}return!1}(r)&&!LD(N.parent)){const e=N.parent.typeParameters;if(e&&s.pos>=N.pos&&s.pos<e.end)return!1}}const c=ax(e,F);if(a.externalModuleIndicator&&!p.allowUmdGlobalAccess&&t[HB(e)]===Nae.GlobalsOrKeywords&&(t[HB(c)]===Nae.AutoImportSuggestions||t[HB(c)]===Nae.LocationPriority))return!1;if(o|=sx(c),VG(i))return!!(1920&o);if(m)return Wse(e,F)}return!!(111551&o)}function A(e){var t;const n=sx(ax(e,F));return!(111551&n||Em(null==(t=e.declarations)?void 0:t[0])&&!(788968&n))}}function dse(e,t,n,r,i,o,a){if("SwitchCases/"===i.source)return{type:"cases"};if(i.data){const t=kse(i.name,i.data,e,o);if(t){const{contextToken:e,previousToken:i}=xse(r,n);return{type:"symbol",symbol:t.symbol,location:VX(n,r),previousToken:i,contextToken:e,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:t.origin}}}const s=e.getCompilerOptions(),c=bse(e,t,n,s,r,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},i,o,void 0);if(!c)return{type:"none"};if(0!==c.kind)return{type:"request",request:c};const{symbols:l,literals:_,location:u,completionKind:p,symbolToOriginInfoMap:f,contextToken:m,previousToken:g,isJsxInitializer:h,isTypeOnlyLocation:v}=c,b=y(_,(e=>ese(n,a,e)===i.name));return void 0!==b?{type:"literal",literal:b}:d(l,((e,t)=>{const n=f[t],r=Sse(e,vk(s),n,p,c.isJsxIdentifierExpected);return r&&r.name===i.name&&("ClassMemberSnippet/"===i.source&&106500&e.flags||"ObjectLiteralMethodSnippet/"===i.source&&8196&e.flags||_se(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 pse(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}=xse(r,n);if(tQ(n,r,f))return Xse.getStringLiteralCompletionDetails(u,n,r,f,e,o,c,s);const g=dse(e,t,n,r,i,o,s);switch(g.type){case"request":{const{request:e}=g;switch(e.kind){case 1:return jle.getJSDocTagNameCompletionDetails(u);case 2:return jle.getJSDocTagCompletionDetails(u);case 3:return jle.getJSDocParameterNameCompletionDetails(u);case 4:return V(e.keywordCompletions,(e=>e.name===u))?fse(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)&&_&&Mse(n||_,c).replacementSpan)return{codeActions:void 0,sourceDisplay:[EY(p.moduleSpecifier)]};if("ClassMemberSnippet/"===f){const{importAdder:r,eraseRange:_}=rse(a,o,s,d,e,i,t,l,n,u);if((null==r?void 0:r.hasFixes())||_){return{sourceDisplay:void 0,codeActions:[{changes:Kue.ChangeTracker.with({host:a,formatContext:u,preferences:d},(e=>{r&&r.writeFixes(e),_&&e.deleteRange(c,_)})),description:(null==r?void 0:r.hasFixes())?i0([_a.Includes_imports_of_types_referenced_by_0,e]):i0([_a.Update_modifiers_of_0,e])}]}}}if(Lae(r)){const e=I7.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=Kue.ChangeTracker.with({host:a,formatContext:u,preferences:d},(e=>e.insertText(c,n.end,",")));if(t)return{sourceDisplay:void 0,codeActions:[{changes:t,description:i0([_a.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!r||!Aae(r)&&!Iae(r))return{codeActions:void 0,sourceDisplay:void 0};const g=r.isFromPackageJson?a.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:h}=r,y=g.getMergedSymbol(ax(i.exportSymbol||i,g)),v=30===(null==n?void 0:n.kind)&&bu(n.parent),{moduleSpecifier:b,codeAction:x}=I7.getImportCompletionAction(y,h,null==p?void 0:p.exportMapKey,c,e,v,a,o,u,_&&VN(_)?_.getStart(c):l,d,m);return _n.assert(!(null==p?void 0:p.moduleSpecifier)||b===p.moduleSpecifier),{sourceDisplay:[EY(b)],codeActions:[x]}}(u,i,f,m,t,e,o,_,n,r,h,a,s,p,d,c);return mse(t,Rae(m)?m.symbolName:t.name,l,n,i,c,y,v)}case"literal":{const{literal:e}=g;return fse(ese(n,s,e),"string","string"==typeof e?8:7)}case"cases":{const t=Xae(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=Kue.ChangeTracker.with({host:o,formatContext:a,preferences:s},n.writeFixes);return{name:e.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:r,description:i0([_a.Includes_imports_of_types_referenced_by_0,u])}]}}return{name:u,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return Cse().some((e=>e.name===u))?fse(u,"keyword",5):void 0;default:_n.assertNever(g)}}function fse(e,t,n){return gse(e,"",t,[kY(e,n)])}function mse(e,t,n,r,i,o,a,s){const{displayParts:c,documentation:l,symbolKind:_,tags:u}=n.runWithCancellationToken(o,(t=>Bue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,r,i,i,7)));return gse(t,Bue.getSymbolModifiers(n,e),_,c,l,u,a,s)}function gse(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 hse(e,t,n,r,i,o,a){const s=dse(e,t,n,r,i,o,a);return"symbol"===s.type?s.symbol:void 0}var yse=(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))(yse||{});function vse(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=>307===e.kind)))}(e.parent)?e:vse(e.parent,t,n))}function bse(e,t,n,r,i,o,a,s,c,l){const u=e.getTypeChecker(),p=Gae(n,r);let f=qn(),m=$X(n,i);t("getCompletionData: Get current token: "+(qn()-f)),f=qn();const g=uQ(n,i,m);t("getCompletionData: Is inside comment: "+(qn()-f));let h=!1,v=!1,b=!1;if(g){if(dQ(n,i)){if(64===n.text.charCodeAt(i-1))return{kind:1};{const e=vX(i,n);if(!/[^*|\s(/)]/.test(n.text.substring(e,i)))return{kind:2}}}const e=function(e,t){return uc(e,(e=>!(!Cu(e)||!xX(e,t))||!!sP(e)&&"quit"))}(m,i);if(e){if(e.tagName.pos<=i&&i<=e.tagName.end)return{kind:1};if(OP(e))v=!0;else{const t=function(e){if(function(e){switch(e.kind){case 341:case 348:case 342:case 344:case 346:case 349:case 350:return!0;case 345:return!!e.constraint;default:return!1}}(e)){const t=NP(e)?e.constraint:e.typeExpression;return t&&309===t.kind?t:void 0}if(_P(e)||PP(e))return e.class;return}(e);if(t&&(m=$X(n,i),m&&(lh(m)||348===m.parent.kind&&m.parent.name===m)||(h=ve(t))),!h&&SP(e)&&(wd(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=xse(i,n),S=k.previousToken;let T=k.contextToken;t("getCompletionData: Get previous token: "+(qn()-f));let w,N,D,F=m,E=!1,P=!1,I=!1,O=!1,L=!1,j=!1,M=VX(n,i),B=0,J=!1,z=0;if(T){const e=Mse(T,n);if(e.keywordCompletion){if(e.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[(q=e.keywordCompletion,{name:Fa(q),kind:"keyword",kindModifiers:"",sortText:Nae.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,N=e,J=e.isNewIdentifierLocation),!e.replacementSpan&&function(e){const r=qn(),o=function(e){return(FN(e)||Ul(e))&&(kX(e,i)||i===e.end&&(!!e.isUnterminated||FN(e)))}(e)||function(e){const t=e.parent,r=t.kind;switch(e.kind){case 28:return 260===r||261===(o=e).parent.kind&&!cQ(o,n,u)||243===r||266===r||pe(r)||264===r||207===r||265===r||u_(t)&&!!t.typeParameters&&t.typeParameters.end>=e.pos;case 25:case 23:return 207===r;case 59:return 208===r;case 21:return 299===r||pe(r);case 19:return 266===r;case 30:return 263===r||231===r||264===r||265===r||c_(r);case 126:return 172===r&&!u_(t.parent);case 26:return 169===r||!!t.parent&&207===t.parent.kind;case 125:case 123:case 124:return 169===r&&!mD(t.parent);case 130:return 276===r||281===r||274===r;case 139:case 153:return!jse(e);case 80:if((276===r||281===r)&&e===t.name&&"type"===e.text)return!1;if(uc(e.parent,HF)&&function(e,t){return n.getLineEndOfPosition(e.getEnd())<t}(e,i))return!1;break;case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return 276!==r;case 42:return r_(e.parent)&&!pD(e.parent)}var o;if(Fse(Pse(e))&&jse(e))return!1;if(ue(e)&&(!VN(e)||Ql(Pse(e))||ve(e)))return!1;switch(Pse(e)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return uD(e.parent)}const a=uc(e.parent,u_);if(a&&e===S&&de(e,i))return!1;const s=Th(e.parent,172);if(s&&e!==S&&u_(S.parent.parent)&&i<=S.end){if(de(e,S.end))return!1;if(64!==e.kind&&(nz(s)||Fu(s)))return!0}return lh(e)&&!qE(e.parent)&&!AE(e.parent)&&!((u_(e.parent)||QF(e.parent)||sD(e.parent))&&(e!==S||i>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&&(286===M.kind||285===M.kind))return!1;if(286===e.parent.kind)return 286!==M.parent.kind;if(287===e.parent.kind||285===e.parent.kind)return!!e.parent.parent&&284===e.parent.parent.kind}return!1}(e)||wN(e);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(qn()-r)),o}(T))return t("Returning an empty list because completion was requested in an invalid position."),B?Hae(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 211:w=r,F=w.expression;if(wd(Nx(w))||(YD(F)||r_(F))&&F.end===T.pos&&F.getChildCount(n)&&22!==ye(F.getChildren(n)).kind)return;break;case 166:F=r.left;break;case 267:F=r.name;break;case 205:F=r;break;case 236:F=r.getFirstToken(n),_n.assert(102===F.kind||105===F.kind);break;default:return}else if(!N){if(r&&211===r.kind&&(T=r,r=r.parent),m.parent===M)switch(m.kind){case 32:284!==m.parent.kind&&286!==m.parent.kind||(M=m);break;case 44:285===m.parent.kind&&(M=m)}switch(r.kind){case 287:44===T.kind&&(O=!0,M=T);break;case 226:if(!Rse(r))break;case 285:case 284:case 286:j=!0,30===T.kind&&(I=!0,M=T);break;case 294:case 293:(20===S.kind||80===S.kind&&291===S.parent.kind)&&(j=!0);break;case 291:if(r.initializer===S&&S.end<i){j=!0;break}switch(S.kind){case 64:L=!0;break;case 80:j=!0,r!==S.parent&&!r.initializer&&AX(r,64,n)&&(L=S)}}}}var q;const U=qn();let W,H=5,K=!1,G=[];const X=[],Q=[],Y=new Set,Z=h||v||!!N&&zl(M.parent)||!((ee=T)&&(114===ee.kind&&(186===ee.parent.kind||aF(ee.parent))||131===ee.kind&&182===ee.parent.kind))&&(cQ(T,n,u)||Cf(M)||function(e){if(e){const t=e.parent.kind;switch(e.kind){case 59:return 172===t||171===t||169===t||260===t||c_(t);case 64:return 265===t||168===t;case 130:return 234===t;case 30:return 183===t||216===t;case 96:return 168===t;case 152:return 238===t}}return!1}(T));var ee;const te=dt((t=>HQ(t?s.getPackageJsonAutoImportProvider():e,s)));if(E||P)!function(){H=2;const e=uf(F),t=e&&!F.isTypeOf||Cf(F.parent)||cQ(T,n,u),r=VG(F);if(e_(F)||e||XD(F)){const n=eE(F.parent);n&&(J=!0,D=[]);let i=u.getSymbolAtLocation(F);if(i&&(i=ax(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=>Wse(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=>307!==e.kind&&267!==e.kind&&266!==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||_v(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?Hae(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 mZ(e,r);case 64:switch(i.kind){case 260:return r.getContextualType(i.initializer);case 226:return r.getTypeAtLocation(i.left);case 291:return r.getContextualTypeForJsxAttribute(i);default:return}case 105:return r.getContextualType(i);case 84:const o=et(i,RE);return o?bZ(o,r):void 0;case 19:return!LE(i)||CE(i.parent)||FE(i.parent)?void 0:r.getContextualTypeForJsxAttribute(i.parent);default:const a=nue.getArgumentInfoForCompletions(e,t,n,r);return a?r.getContextualTypeForArgumentAtIndex(a.invocation,a.argumentIndex):hZ(e.kind)&&uF(i)&&hZ(i.operatorToken.kind)?r.getTypeAtLocation(i.left):r.getContextualType(e,4)||r.getContextualType(e)}}(S,i,n,u),re=!et(S,ju)&&!j?R(ne&&(ne.isUnion()?ne.types:[ne]),(e=>!e.isLiteral()||1024&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&&!mx(r)?vse(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:N,hasUnresolvedAutoImports:K,flags:z,defaultCommitCharacters:D};function oe(e,t,n){e.getStringIndexType()&&(J=!0,D=[]),P&&V(e.getCallSignatures())&&(J=!0,D??(D=Dae));const r=205===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(Ose(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(Cc(e),aD)));if(l){const r=se(l.expression),a=r&&u.getSymbolAtLocation(r),d=a&&vse(a,T,u),m=d&&HB(d);if(m&&xx(Y,m)){const t=G.length;G.push(d);const r=d.parent;if(r&&Xu(r)&&u.tryGetMemberInModuleExportsAndProperties(d.name,r)===d){const a=Cs(Fy(r.name))?null==(c=vd(r))?void 0:c.fileName:void 0,{moduleSpecifier:l}=(W||(W=I7.createImportSpecifierResolver(n,e,s,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:a,isFromPackageJson:!1,moduleSymbol:r,symbol:d,targetFlags:ax(d,u).flags}],i,xT(M))||{};if(l){const e={kind:f(6),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&Jv(e.valueDeclaration)&&u_(e.valueDeclaration.parent))})(e)&&(Q[HB(e)]=Nae.LocalDeclarationPriority)}function p(e){o.includeCompletionsWithInsertText&&(r&&xx(Y,HB(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 VN(e)?e:XD(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(wD(t))return t;break;case 27:case 28:case 80:if(171===t.kind&&wD(t.parent))return t.parent}return}(T);if(!e)return 0;const t=(ID(e.parent)?e.parent:void 0)||e,n=Lse(t,u);if(!n)return 0;const r=u.getTypeFromTypeNode(t),i=Ose(n,u),o=Ose(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(GD(i)||WD(i))return i;break;case 42:return pD(i)?et(i.parent,GD):void 0;case 134:return et(i.parent,GD);case 80:if("async"===e.text&&qE(e.parent))return e.parent.parent;{if(GD(e.parent.parent)&&(UE(e.parent)||qE(e.parent)&&za(n,e.getEnd()).line!==za(n,t).line))return e.parent.parent;const r=uc(i,zE);if((null==r?void 0:r.getLastToken(n))===e&&GD(r.parent))return r.parent}break;default:if((null==(r=i.parent)?void 0:r.parent)&&(pD(i.parent)||gD(i.parent)||hD(i.parent))&&GD(i.parent.parent))return i.parent.parent;if(UE(i)&&GD(i.parent))return i.parent;const o=uc(i,zE);if(59!==e.kind&&(null==o?void 0:o.getLastToken(n))===e&&GD(o.parent))return o.parent}}return}(T,i,n);if(!a)return 0;let l,_;if(H=0,210===a.kind){const e=function(e,t){const n=t.getContextualType(e);if(n)return n;const r=rh(e.parent);if(uF(r)&&64===r.operatorToken.kind&&e===r.left)return t.getTypeAtLocation(r);if(V_(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=Ase(e,t,a,u),_=a.properties,0===l.length&&!r)return 0}else{_n.assert(206===a.kind),J=!1;const e=Yh(a.parent);if(!Pf(e))return _n.fail("Root declaration is not variable-like.");let t=Eu(e)||!!fv(e)||250===e.parent.parent.kind;if(t||169!==e.kind||(V_(e.parent)?t=!!u.getContextualType(e.parent):174!==e.parent.kind&&178!==e.parent.kind||(t=V_(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(303!==e.kind&&304!==e.kind&&208!==e.kind&&174!==e.kind&&177!==e.kind&&178!==e.kind&&305!==e.kind)continue;if(ve(e))continue;let t;if(UE(e))fe(e,n);else if(HD(e)&&e.propertyName)80===e.propertyName.kind&&(t=e.propertyName.escapedText);else{const n=Cc(e);t=n&&zh(n)?Uh(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(),210===a.kind&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(function(e){for(let t=e;t<G.length;t++){const e=G[t],n=HB(e),i=null==X?void 0:X[t],o=Sse(e,vk(r),i,0,!1);if(o){const e=Q[n]??Nae.LocationPriority,{name:t}=o;Q[n]=Nae.ObjectLiteralProperty(e,t)}}}(t),function(t,n){if(Em(M))return;t.forEach((t=>{if(!function(e){if(!(8196&e.flags))return!1;return!0}(t))return;const i=Sse(t,vk(r),void 0,0,!1);if(!i)return;const{name:a}=i,l=ise(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}()||(N?(J=!0,le(),1):0)||function(){if(!T)return 0;const e=19===T.kind||28===T.kind?et(T.parent,wx):MQ(T)?et(T.parent.parent,wx):void 0;if(!e)return 0;MQ(T)||(B=8);const{moduleSpecifier:t}=275===e.kind?e.parent.parent:e.parent;if(!t)return J=!0,275===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=>$d(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,_E):59===T.kind?et(T.parent.parent,_E):void 0;if(void 0===e)return 0;const t=new Set(e.elements.map(fC));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,yE);if(!t)return 0;const n=uc(t,Zt(WE,eE));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[HB(e)]=Nae.OptionalMember)})),1}()||(function(e){if(e){const t=e.parent;switch(e.kind){case 21:case 28:return mD(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 352:return et(n.parent,kx);case 1:const t=et(he(tt(n.parent,WE).statements),kx);if(t&&!AX(t,20,e))return t;break;case 81:if(et(n.parent,uD))return uc(n,u_);break;case 80:if(hc(n))return;if(uD(n.parent)&&n.parent.initializer===n)return;if(jse(n))return uc(n,kx)}if(!t)return;if(137===n.kind||VN(t)&&uD(t.parent)&&u_(n))return uc(t,u_);switch(t.kind){case 64:return;case 27:case 20:return jse(n)&&n.parent.name===n?n.parent.parent:et(n,kx);case 19:case 28:return et(t.parent,kx);default:if(kx(n)){if(za(e,t.getEnd()).line!==za(e,r).line)return n;const i=u_(t.parent.parent)?Fse:Dse;return i(t.kind)||42===t.kind||VN(t)&&i(hc(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:u_(e)?2:3,!u_(e))return 1;const t=27===T.kind?T.parent.parent:T.parent;let r=__(t)?Jv(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}fD(t)&&(r|=256);if(!(2&r)){const t=A(u_(e)&&16&r?nn(yh(e)):xh(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(172!==e.kind&&174!==e.kind&&177!==e.kind&&178!==e.kind)continue;if(ve(e))continue;if(Nv(e,2))continue;if(Fv(e)!==!!(256&n))continue;const t=Jh(e.name);t&&r.add(t)}return e.filter((e=>!(r.has(e.escapedName)||!e.declarations||2&ox(e)||e.valueDeclaration&&Kl(e.valueDeclaration))))}(t,e.members,r)),_(G,((e,t)=>{const n=null==e?void 0:e.valueDeclaration;if(n&&__(n)&&n.name&&aD(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 211:case 292:case 291:case 293:if(t&&(285===t.kind||286===t.kind)){if(32===e.kind){const r=QX(e.pos,n,void 0);if(!t.typeArguments||r&&44===r.kind)break}return t}if(291===t.kind)return t.parent.parent;break;case 11:if(t&&(291===t.kind||293===t.kind))return t.parent.parent;break;case 20:if(t&&294===t.kind&&t.parent&&291===t.parent.kind)return t.parent.parent.parent;if(t&&293===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)||(291===e.kind?n.add(nC(e.name)):OE(e)&&fe(e,r));const i=e.filter((e=>!n.has(e.escapedName)));return ge(r,i),i}(Ase(t,r,e.attributes,u),e.attributes.properties)),me(),H=3,J=!1,1}()||(function(){B=function(e){if(e){let t;const n=uc(e.parent,(e=>u_(e)?"quit":!(!o_(e)||t!==e.body)||(t=e,!1)));return n&&n}}(T)?5:1,H=1,({isNewIdentifierLocation:J,defaultCommitCharacters:D}=_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&&!NX(r,t,n);)r=r.parent;return r}(T,e,n)||n;b=function(e){switch(e.kind){case 307:case 228:case 294:case 241:return!0;default:return pu(e)}}(t);const r=2887656|(Z?0:111551),a=S&&!xT(S);G=$(G,u.getSymbolsInScope(t,r)),_n.assertEachIsDefined(G,"getSymbolsInScope() should all be defined");for(let e=0;e<G.length;e++){const t=G[e];if(u.isArgumentsSymbol(t)||V(t.declarations,(e=>e.getSourceFile()===n))||(Q[HB(t)]=Nae.GlobalsOrKeywords),a&&!(111551&t.flags)){const n=t.declarations&&y(t.declarations,Bl);if(n){const t={kind:64,declaration:n};X[e]=t}}}if(o.includeCompletionsWithInsertText&&307!==t.kind){const e=u.tryGetThisTypeAt(t,!1,u_(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 Ose(e,u))X[G.length]={kind:1},G.push(t),Q[HB(t)]=Nae.SuggestedClassMembers}le(),Z&&(B=T&&W_(T.parent)?6:7)}(),1);return 1===t}function le(){var t,r;if(!function(){var t;return!!N||!!o.includeCompletionsForModuleExports&&(!(!n.externalModuleIndicator&&!n.commonJsModuleIndicator)||!!$Q(e.getCompilerOptions())||(null==(t=e.getSymlinkCache)?void 0:t.call(e).hasAnySymlinks())||!!e.getCompilerOptions().paths||VQ(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&&N?"":S&&VN(S)?S.text.toLowerCase():"",_=null==(t=s.getModuleSpecifierCache)?void 0:t.call(s),u=k0(n,s,e,o,l),d=null==(r=s.getPackageJsonAutoImportProvider)?void 0:r.call(s),p=a?void 0:BZ(n,o,s);function f(t){return m0(t.isFromPackageJson?d:e,n,et(t.moduleSymbol.valueDeclaration,WE),t.moduleSymbol,o,p,te(t.isFromPackageJson),_)}Mae("collectAutoImports",s,W||(W=I7.createImportSpecifierResolver(n,e,s,o)),e,i,o,!!N,xT(M),(e=>{u.search(n.path,I,((e,t)=>{if(!ms(e,vk(s.getCompilationSettings())))return!1;if(!a&&Eh(e))return!1;if(!(Z||N||111551&t))return!1;if(Z&&!(790504&t))return!1;const n=e.charCodeAt(0);return(!I||!(n<65||n>90))&&(!!a||Hse(e,c))}),((t,n,r,i)=>{if(a&&!V(t,(e=>a.source===Fy(e.moduleSymbol.name))))return;if(!(t=C(t,f)).length)return;const o=e.tryResolve(t,r)||{};if("failed"===o)return;let s,c=t[0];"skipped"!==o&&({exportInfo:c=t[0],moduleSpecifier:s}=o);const l=1===c.exportKind;!function(e,t){const n=HB(e);if(Q[n]===Nae.GlobalsOrKeywords)return;X[G.length]=t,Q[n]=N?Nae.LocationPriority:Nae.AutoImportSuggestions,G.push(e)}(l&&bb(_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=Pse(T);switch(t){case 28:switch(e){case 213:case 214:{const e=T.parent.expression;return za(n,e.end).line!==za(n,i).line?{defaultCommitCharacters:Fae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:Dae,isNewIdentifierLocation:!0}}case 226:return{defaultCommitCharacters:Fae,isNewIdentifierLocation:!0};case 176:case 184:case 210:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 209:return{defaultCommitCharacters:Dae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Dae,isNewIdentifierLocation:!1}}case 21:switch(e){case 213:case 214:{const e=T.parent.expression;return za(n,e.end).line!==za(n,i).line?{defaultCommitCharacters:Fae,isNewIdentifierLocation:!0}:{defaultCommitCharacters:Dae,isNewIdentifierLocation:!0}}case 217:return{defaultCommitCharacters:Fae,isNewIdentifierLocation:!0};case 176:case 196:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Dae,isNewIdentifierLocation:!1}}case 23:switch(e){case 209:case 181:case 189:case 167:return{defaultCommitCharacters:Dae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Dae,isNewIdentifierLocation:!1}}case 144:case 145:case 102:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};case 25:return 267===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Dae,isNewIdentifierLocation:!1};case 19:switch(e){case 263:case 210:return{defaultCommitCharacters:[],isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Dae,isNewIdentifierLocation:!1}}case 64:switch(e){case 260:case 226:return{defaultCommitCharacters:Dae,isNewIdentifierLocation:!0};default:return{defaultCommitCharacters:Dae,isNewIdentifierLocation:!1}}case 16:return{defaultCommitCharacters:Dae,isNewIdentifierLocation:228===e};case 17:return{defaultCommitCharacters:Dae,isNewIdentifierLocation:239===e};case 134:return 174===e||304===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Dae,isNewIdentifierLocation:!1};case 42:return 174===e?{defaultCommitCharacters:[],isNewIdentifierLocation:!0}:{defaultCommitCharacters:Dae,isNewIdentifierLocation:!1}}if(Fse(t))return{defaultCommitCharacters:[],isNewIdentifierLocation:!0}}return{defaultCommitCharacters:Dae,isNewIdentifierLocation:!1}}function ue(e){return!!e.parent&&cD(e.parent)&&mD(e.parent.parent)&&(Ql(e.kind)||lh(e))}function de(e,t){return 64!==e.kind&&(27===e.kind||!Hb(e.end,t,n))}function pe(e){return c_(e)&&176!==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=HB(e);Q[t]=Q[t]??Nae.OptionalMember}}))}function ge(e,t){if(0!==e.size)for(const n of t)e.has(n.name)&&(Q[HB(n)]=Nae.MemberDeclaredBySpreadAssignment)}function ve(e){return e.getStart(n)<=i&&i<=e.getEnd()}}function xse(e,t){const n=QX(e,t);if(n&&e<=n.end&&(dl(n)||Ch(n.kind))){return{contextToken:QX(n.getFullStart(),t,void 0),previousToken:n}}return{contextToken:n,previousToken:n}}function kse(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&&bb(s)||s,{symbol:s,origin:sse(t,e,a)}}function Sse(e,t,n,r,i){if(function(e){return!!(e&&256&e.kind)}(n))return;const o=function(e){return Aae(e)||Iae(e)||Rae(e)}(n)?n.symbolName:e.name;if(void 0===o||1536&e.flags&&zm(o.charCodeAt(0))||Wh(e))return;const a={name:o,needsConvertPropertyAccess:!1};if(ms(o,t,i?1:0)||e.valueDeclaration&&Kl(e.valueDeclaration))return a;if(2097152&e.flags)return{name:o,needsConvertPropertyAccess:!0};switch(r){case 3:return Rae(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 Tse=[],Cse=ut((()=>{const e=[];for(let t=83;t<=165;t++)e.push({name:Fa(t),kind:"keyword",kindModifiers:"",sortText:Nae.GlobalsOrKeywords});return e}));function wse(e,t){if(!t)return Nse(e);const n=e+8+1;return Tse[n]||(Tse[n]=Nse(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}}(Ea(e.name)))))}function Nse(e){return Tse[e]||(Tse[e]=Cse().filter((t=>{const n=Ea(t.name);switch(e){case 0:return!1;case 1:return Ese(n)||138===n||144===n||156===n||145===n||128===n||jQ(n)&&157!==n;case 5:return Ese(n);case 2:return Fse(n);case 3:return Dse(n);case 4:return Ql(n);case 6:return jQ(n)||87===n;case 7:return jQ(n);case 8:return 156===n;default:return _n.assertNever(e)}})))}function Dse(e){return 148===e}function Fse(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return Yl(e)}}function Ese(e){return 134===e||135===e||160===e||130===e||152===e||156===e||!Dh(e)&&!Fse(e)}function Pse(e){return VN(e)?hc(e)??0:e.kind}function Ase(e,t,n,r){const i=t&&t!==e,o=r.getUnionType(C(1048576&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=>!(402784252&e.flags||n.isArrayLikeType(e)||n.isTypeInvalidDueToUnionDiscriminant(e,t)||n.typeHasCallOrConstructSignatures(e)||e.isClass()&&Ise(e.getApparentProperties()))))):e.getApparentProperties()}(a,n,r);return a.isClass()&&Ise(s)?[]:i?C(s,(function(e){return!l(e.declarations)||V(e.declarations,(e=>e.parent!==n))})):s}function Ise(e){return V(e,(e=>!!(6&ox(e))))}function Ose(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 Lse(e,t){if(!e)return;if(b_(e)&&Iu(e.parent))return t.getTypeArgumentConstraint(e);const n=Lse(e.parent,t);if(n)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 193:case 187:case 192:return n}}function jse(e){return e.parent&&y_(e.parent)&&kx(e.parent.parent)}function Rse({left:e}){return wd(e)}function Mse(e,t){var n,r,i;let o,a=!1;const s=function(){const n=e.parent;if(iE(n)){const r=n.getLastToken(t);return VN(e)&&r!==e?(o=161,void(a=!0)):(o=156===e.kind?void 0:156,Use(n.moduleReference)?n:void 0)}if(zse(n,e)&&qse(n.parent))return n;if(fE(n)||dE(n)){if(n.parent.isTypeOnly||19!==e.kind&&102!==e.kind&&28!==e.kind||(o=156),qse(n)){if(20!==e.kind&&80!==e.kind)return n.parent.parent;a=!0,o=161}return}if(hE(n)&&42===e.kind||yE(n)&&20===e.kind)return a=!0,void(o=161);if(rD(e)&&WE(n))return o=156,e;if(rD(e)&&oE(n))return o=156,Use(n.moduleSpecifier)?n:void 0;return}();return{isKeywordOnlyCompletion:a,keywordCompletion:o,isNewIdentifierLocation:!(!s&&156!==o),isTopLevelTypeOnly:!!(null==(r=null==(n=et(s,oE))?void 0:n.importClause)?void 0:r.isTypeOnly)||!!(null==(i=et(s,iE))?void 0:i.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!s&&zse(s,e),replacementSpan:Bse(s)}}function Bse(e){var t;if(!e)return;const n=uc(e,Zt(oE,iE,OP))??e,r=n.getSourceFile();if(Bb(n,r))return DQ(n,r);_n.assert(102!==n.kind&&276!==n.kind);const i=272===n.kind||351===n.kind?Jse(null==(t=n.importClause)?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,o={pos:n.getFirstToken().getStart(),end:i.pos};return Bb(o,r)?PQ(o):void 0}function Jse(e){var t;return y(null==(t=et(e,fE))?void 0:t.elements,(t=>{var n;return!t.propertyName&&Eh(t.name.text)&&28!==(null==(n=QX(t.name.pos,e.getSourceFile(),e))?void 0:n.kind)}))}function zse(e,t){return mE(e)&&(e.isTypeOnly||t===e.name&&MQ(t))}function qse(e){if(!Use(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(fE(e)){const t=Jse(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function Use(e){var t;return!!wd(e)||!(null==(t=et(TE(e)?e.expression:e,ju))?void 0:t.text)}function Vse(e){return e.parent&&iF(e.parent)&&(e.parent.body===e||39===e.kind)}function Wse(e,t,n=new Set){return r(e)||r(ax(e.exportSymbol||e,t));function r(e){return!!(788968&e.flags)||t.isUnknownSymbol(e)||!!(1536&e.flags)&&xx(n,e)&&t.getExportsOfModule(e).some((e=>Wse(e,t,n)))}}function $se(e,t){const n=ax(e,t).declarations;return!!l(n)&&h(n,t0)}function Hse(e,t){if(0===t.length)return!0;let n,r=!1,i=0;const o=e.length;for(let a=0;a<o;a++){const o=e.charCodeAt(a),s=t.charCodeAt(i);if((o===s||o===Kse(s))&&(r||(r=void 0===n||97<=n&&n<=122&&65<=o&&o<=90||95===n&&95!==o),r&&i++,i===t.length))return!0;n=o}return!1}function Kse(e){return 97<=e&&e<=122?e-32:e}function Gse(e){return"abstract"===e||"async"===e||"await"===e||"declare"===e||"module"===e||"namespace"===e||"type"===e||"satisfies"===e||"as"===e}var Xse={};n(Xse,{getStringLiteralCompletionDetails:()=>ece,getStringLiteralCompletions:()=>Zse});var Qse={directory:0,script:1,"external module name":2};function Yse(){const e=new Map;return{add:function(t){const n=e.get(t.name);(!n||Qse[n.kind]<Qse[t.kind])&&e.set(t.name,t)},has:e.has.bind(e),values:e.values.bind(e)}}function Zse(e,t,n,r,i,o,a,s,c){if(TQ(e,t)){const n=function(e,t,n,r,i){const o=n.getCompilerOptions(),a=$X(e,t),s=_s(e.text,a.pos),c=s&&y(s,(e=>t>=e.pos&&t<=e.end));if(!c)return;const l=e.text.slice(c.pos,t),_=Sce.exec(l);if(!_)return;const[,u,d,p]=_,f=Fo(e.path),m="path"===d?pce(p,f,uce(o,0,e),n,r,i,!0,e.path):"types"===d?kce(n,r,i,f,yce(p),uce(o,1,e)):_n.fail();return lce(p,c.pos+u.length,Ie(m.values()))}(e,t,o,i,HQ(o,i));return n&&tce(n)}if(tQ(e,t,n)){if(!n||!ju(n))return;return function(e,t,n,r,i,o,a,s,c,l){if(void 0===e)return;const _=FQ(t,c);switch(e.kind){case 0:return tce(e.paths);case 1:{const u=[];return use(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:Bae(e.hasIndexSignature)}}case 2:{const n=15===t.kind?96:Kt(Gd(t),"'")?39:34,r=e.types.map((e=>({name:xy(e.value,n),kindModifiers:"",kind:"string",sortText:Nae.LocationPriority,replacementSpan:NQ(t,c),commitCharacters:[]})));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:_,entries:r,defaultCommitCharacters:Bae(e.isNewIdentifier)}}default:return _n.assertNever(e)}}(rce(e,n,t,o,i,s),n,e,i,o,a,r,s,t,c)}}function ece(e,t,n,r,i,o,a,s){if(!r||!ju(r))return;const c=rce(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&&gse(e,nce(t.extension),t.kind,[EY(e)])}case 1:{const a=y(n.symbols,(t=>t.name===e));return a&&mse(a,a.name,i,r,t,o)}case 2:return y(n.types,(t=>t.value===e))?gse(e,"","string",[EY(e)]):void 0;default:return _n.assertNever(n)}}(e,r,c,t,i.getTypeChecker(),a)}function tce(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:nce(r),sortText:Nae.LocationPriority,replacementSpan:n}))),defaultCommitCharacters:Bae(t)}}function nce(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 rce(e,t,n,r,i,o){const a=r.getTypeChecker(),s=ice(t.parent);switch(s.kind){case 201:{const c=ice(s.parent);return 205===c.kind?{kind:0,paths:_ce(e,t,r,i,o)}:function e(t){switch(t.kind){case 233:case 183:{const e=uc(s,(e=>e.parent===t));return e?{kind:2,types:ace(a.getTypeArgumentConstraint(e)),isNewIdentifier:!1}:void 0}case 199:const{indexType:i,objectType:o}=t;if(!xX(i,n))return;return oce(a.getTypeFromTypeNode(o));case 192:{const n=e(ice(t.parent));if(!n)return;const i=(r=s,R(t.types,(e=>e!==r&&zD(e)&&NN(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 303:return GD(s.parent)&&s.name===t?function(e,t){const n=e.getContextualType(t);if(!n)return;const r=e.getContextualType(t,4);return{kind:1,symbols:Ase(n,r,t,e),hasIndexSignature:vZ(n)}}(a,s.parent):c()||c(0);case 212:{const{expression:e,argumentExpression:n}=s;return t===ah(n)?oce(a.getTypeAtLocation(e)):void 0}case 213:case 214:case 291:if(!function(e){return YD(e.parent)&&pe(e.parent.arguments)===e&&VN(e.parent.expression)&&"require"===e.parent.expression.escapedText}(t)&&!lf(s)){const r=nue.getArgumentInfoForCompletions(291===s.kind?s.parent:t,n,e,a);return r&&function(e,t,n,r){let i=!1;const o=new Set,a=bu(e)?_n.checkDefined(uc(t.parent,AE)):t,s=A(r.getCandidateSignaturesForStringLiteralCompletions(e,a),(t=>{if(!ZB(t)&&n.argumentCount>t.parameters.length)return;let s=t.getTypeParameterAtPosition(n.argumentIndex);if(bu(e)){const e=r.getTypeOfPropertyOfType(s,rC(a.name));e&&(s=e)}return i=i||!!(4&s.flags),ace(s,o)}));return l(s)?{kind:2,types:s,isNewIdentifier:i}:void 0}(r.invocation,t,r,a)||c(0)}case 272:case 278:case 283:case 351:return{kind:0,paths:_ce(e,t,r,i,o)};case 296:const _=c0(a,s.parent.clauses),u=c();if(!u)return;return{kind:2,types:u.types.filter((e=>!_.hasValue(e.value))),isNewIdentifier:!1};case 276:case 281:const d=s;if(d.propertyName&&t!==d.propertyName)return;const p=d.parent,{moduleSpecifier:f}=275===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=>$d(e.propertyName||e.name))));return{kind:1,symbols:g.filter((e=>"default"!==e.escapedName&&!h.has(e.escapedName))),hasIndexSignature:!1};default:return c()||c(0)}function c(e=4){const n=ace(mZ(t,a,e));if(n.length)return{kind:2,types:n,isNewIdentifier:!1}}}function ice(e){switch(e.kind){case 196:return nh(e);case 217:return rh(e);default:return e}}function oce(e){return e&&{kind:1,symbols:C(e.getApparentProperties(),(e=>!(e.valueDeclaration&&Kl(e.valueDeclaration)))),hasIndexSignature:vZ(e)}}function ace(e,t=new Set){return e?(e=qQ(e)).isUnion()?A(e.types,(e=>ace(e,t))):!e.isStringLiteral()||1024&e.flags||!xx(t,e.value)?s:[e]:s}function sce(e,t,n){return{name:e,kind:t,extension:n}}function cce(e){return sce(e,"directory",void 0)}function lce(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||ms(e.substr(r,i),99)?void 0:Ws(t+r,i)}(e,t),i=0===e.length?void 0:Ws(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 _ce(e,t,n,r,i){return lce(t.text,t.getStart(e)+1,function(e,t,n,r,i){const o=Lo(t.text),a=ju(t)?n.getModeForUsageLocation(e,t):void 0,c=e.path,l=Fo(c),_=n.getCompilerOptions(),u=n.getTypeChecker(),p=HQ(n,r),f=uce(_,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=>Wo(zo(ho(e)?e:Ro(t,e)))));const i=d(e,(e=>ea(e,n,t,r)?n.substr(e.length):void 0));return X([...e.map((e=>Ro(e,i))),n].map((e=>Vo(e))),gt,Tt)}(e,l,n,_);return X(A(u,(e=>Ie(pce(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(pce(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=Yse(),p=xk(l);if(_){const t=zo(Ro(i.getCurrentDirectory(),_));pce(e,t,a,r,i,o,!1,void 0,d)}if(u){const t=Ky(l,i);mce(d,e,t,a,r,i,o,u)}const f=yce(e);for(const t of function(e,t,n){const r=n.getAmbientModules().map((e=>Fy(e.name))).filter((t=>Kt(t,e)&&!t.includes("*")));if(void 0!==t){const e=Wo(t);return r.map((t=>Gt(t,e)))}return r}(e,f,c))d.add(sce(t,"external module name",void 0));if(kce(r,i,o,t,f,a,d),GQ(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 jZ(t,e)){const t=Nb(r,e);for(const e of Tce){const r=t[e];if(r)for(const e in r)Ne(r,e)&&!Kt(e,"@types/")&&n.push(e)}}return n}(i,t)){const t=sce(e,"external module name",void 0);d.has(t.name)||(n=!0,d.add(t))}if(!n){const n=wk(l),s=Nk(l);let c=!1;const _=t=>{if(s&&!c){const n=Ro(t,"package.json");if(c=AZ(i,n)){m(Nb(n,i).imports,e,t,!1,!0)}}};let u=t=>{const n=Ro(t,"node_modules");IZ(i,n)&&pce(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(!AZ(i,c))return t(n);{const t=Nb(c,i),n=r.join("/")+(r.length&&Co(e)?"/":"");m(t.exports,n,a,!0,!1)}}}hM(i,t,u)}}return Ie(d.values());function m(e,t,s,c,_){if("object"!=typeof e||null===e)return;const u=Fe(e),p=lR(l,n);gce(d,c,_,t,s,a,r,i,o,u,(t=>{const n=hce(e[t],p);if(void 0!==n)return nn(jt(t,"/")&&jt(n,"/")?n+"*":n)}),uM)}}(o,l,a,n,r,p,f)}(e,t,n,r,i))}function uce(e,t,n,r,i,o){return{extensionsToSearch:P(dce(e,r)),referenceKind:t,importingSourceFile:n,endingPreference:null==i?void 0:i.importModuleSpecifierEnding,resolutionMode:o}}function dce(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=[...IS(e),n];return GQ(xk(e))?OS(e,r):r}function pce(e,t,n,r,i,o,a,s,c=Yse()){var l;void 0===e&&(e=""),Co(e=Lo(e))||(e=Fo(e)),""===e&&(e="."+_o);const _=Mo(t,e=Wo(e)),u=Co(_)?_:Fo(_);if(!a){const e=RZ(u,i);if(e){const t=Nb(e,i).typesVersions;if("object"==typeof t){const a=null==(l=tR(t))?void 0:l.paths;if(a){const t=Fo(e);if(mce(c,_.slice(Wo(t).length),t,n,r,i,o,a))return c}}}}const d=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!IZ(i,u))return c;const p=PZ(i,u,n.extensionsToSearch,void 0,["./*"]);if(p)for(let e of p){if(e=zo(e),s&&0===Zo(e,s,t,d))continue;const{name:i,extension:o}=fce(Eo(e),r,n,!1);c.add(sce(i,"script",o))}const f=EZ(i,u);if(f)for(const e of f){const t=Eo(zo(e));"@types"!==t&&c.add(cce(t))}return c}function fce(e,t,n,r){const i=GM.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:nT(i)};if(0===n.referenceKind)return{name:e,extension:nT(e)};let o=GM.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,PS))return{name:e,extension:nT(e)};const n=GM.tryGetJSExtensionForFile(e,t.getCompilerOptions());return n?{name:HS(e,n),extension:n}:{name:e,extension:nT(e)}}if(!r&&(0===o[0]||1===o[0])&&To(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:VS(e),extension:nT(e)};const a=GM.tryGetJSExtensionForFile(e,t.getCompilerOptions());return a?{name:HS(e,a),extension:a}:{name:e,extension:nT(e)}}function mce(e,t,n,r,i,o,a,s){return gce(e,!1,!1,t,n,r,i,o,a,Fe(s),(e=>s[e]),((e,t)=>{const n=KS(e),r=KS(t),i="object"==typeof n?n.prefix.length:e.length;return yt("object"==typeof r?r.prefix.length:t.length,i)}))}function gce(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=KS(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:vce(l,f,r,i,o,t,n,a,s,c).map((({name:e,kind:t,extension:n})=>sce(e,t,n)))})}}return p.forEach((t=>t.results.forEach((t=>e.add(t))))),void 0!==d}function hce(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)||fM(t,n)){return hce(e[n],t)}}function yce(e){return Cce(e)?Co(e)?e:Fo(e):void 0}function vce(e,t,n,r,i,o,a,c,l,_){const u=KS(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=bce("",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=>bce(d,r,e,i,o,a,c,l,_)));function p(e,t){return Kt(e,n)?[{name:Vo(e),kind:t,extension:void 0}]:s}}function bce(e,t,n,r,i,o,a,s,c){if(!s.readDirectory)return;const l=KS(n);if(void 0===l||Ye(l))return;const _=Mo(l.prefix),u=Co(l.prefix)?_:Fo(_),p=Co(l.prefix)?"":Eo(_),f=Cce(e),m=f?Co(e)?e:Fo(e):void 0,g=()=>c.getCommonSourceDirectory(),h=!jy(c),y=a.getCompilerOptions().outDir,v=a.getCompilerOptions().declarationDir,b=f?Ro(u,p+m):u,x=zo(Ro(t,b)),k=o&&y&&Hy(x,h,y,g),S=o&&v&&Hy(x,h,v,g),T=zo(l.suffix),C=T&&Wy("_"+T),w=T?$y("_"+T):void 0,N=[C&&HS(T,C),...w?w.map((e=>HS(T,e))):[],T].filter(Ye),D=T?N.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:Wo(e)+p;return R(PZ(s,e,r.extensionsToSearch,void 0,D),(e=>{const n=(i=e,o=t,d(N,(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:xce(t)})));var i,o;if(n){if(Cce(n))return cce(Io(xce(n))[1]);const{name:e,extension:t}=fce(n,a,r,F);return sce(e,"script",t)}}))}function A(e){return R(EZ(s,e),(e=>"node_modules"===e?void 0:cce(e)))}}function xce(e){return e[0]===_o?e.slice(1):e}function kce(e,t,n,r,i,o,a=Yse()){const c=e.getCompilerOptions(),l=new Map,_=OZ((()=>nR(c,t)))||s;for(const e of _)u(e);for(const e of jZ(r,t)){u(Ro(Fo(e),"node_modules/@types"))}return a;function u(r){if(IZ(t,r))for(const s of EZ(t,r)){const _=wM(s);if(!c.types||k(c.types,_))if(void 0===i)l.has(_)||(a.add(sce(_,"external module name",void 0)),l.set(_,!0));else{const c=Ro(r,s),l=eS(i,_,Ry(t));void 0!==l&&pce(l,c,o,e,t,n,!1,void 0,a)}}}}var Sce=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\x03"]*)$/,Tce=["dependencies","devDependencies","peerDependencies","optionalDependencies"];function Cce(e){return e.includes(_o)}var wce={};function Nce(e,t,n,r){const i=function(e,t,n){const r=new Map;for(const i of e)n&&n.throwIfCancellationRequested(),Ice(i,((e,n)=>{const i=t.getSymbolAtLocation(n);if(i){const t=HB(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=BQ(),c=BQ(),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)pp(e)&&t.has(e.getSourceFile().fileName)&&h(e);return u.map(yd)}function p(e){const t=y(e);if(t)for(const e of t)if(s(e))switch(a&&a.throwIfCancellationRequested(),e.kind){case 213:if(lf(e)){f(e);break}if(!_){const t=e.parent;if(2===i&&260===t.kind){const{name:e}=t;if(80===e.kind){l.push(e);break}}}break;case 80:break;case 271:g(e,e.name,Dv(e,32),!1);break;case 272:case 351:l.push(e);const t=e.importClause&&e.importClause.namedBindings;t&&274===t.kind?g(e,t.name,!1,!0):!_&&Tg(e)&&h(Rce(e));break;case 278:e.exportClause?280===e.exportClause.kind?h(Rce(e),!0):l.push(e):p(jce(e,o));break;case 205:!_&&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(uc(e,Mce)||e.getSourceFile(),!!m(e,!0))}function m(e,t=!1){return uc(e,(e=>t&&Mce(e)?"quit":lI(e)&&V(e.modifiers,$N)))}function g(e,t,n,r){if(2===i)r||l.push(e);else if(!_){const r=Rce(e);_n.assert(307===r.kind||267===r.kind),n||function(e,t,n){const r=n.getSymbolAtLocation(t);return!!Ace(e,(e=>{if(!hE(e))return;const{exportClause:t,moduleSpecifier:i}=e;return!i&&t&&yE(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)qD(e)||h(Rce(e),!0)}function y(e){return n.get(HB(e).toString())}}(e,t,i,a,n,r);return{indirectUsers:l,...Ece(c,o,a.exportKind,n,s)}}}n(wce,{Core:()=>Hce,DefinitionKind:()=>Jce,EntryKind:()=>zce,ExportKind:()=>Dce,FindReferencesUse:()=>Kce,ImportExport:()=>Fce,createImportTracker:()=>Nce,findModuleReferences:()=>Pce,findReferenceOrRenameEntries:()=>Yce,findReferencedSymbols:()=>Gce,getContextNode:()=>Wce,getExportInfo:()=>Lce,getImplementationsAtPosition:()=>Xce,getImportOrExportSymbol:()=>Oce,getReferenceEntriesForNode:()=>Zce,isContextWithStartAndEndNode:()=>Uce,isDeclarationOfSymbol:()=>dle,isWriteAccessForReference:()=>ule,toContextSpan:()=>$ce,toHighlightSpan:()=>cle,toReferenceEntry:()=>ile,toRenameLocation:()=>rle});var Dce=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Dce||{}),Fce=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Fce||{});function Ece(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(271===e.kind)return void(Bce(e)&&l(e.name));if(80===e.kind)return void l(e);if(205===e.kind){if(e.qualifier){const n=cb(e.qualifier);n.escapedText===yc(t)&&a.push(n)}else 2===n&&a.push(e.argument.literal);return}if(11!==e.moduleSpecifier.kind)return;if(278===e.kind)return void(e.exportClause&&yE(e.exportClause)&&_(e.exportClause));const{name:o,namedBindings:c}=e.importClause||{name:void 0,namedBindings:void 0};if(c)switch(c.kind){case 274:l(c.name);break;case 275:0!==n&&1!==n||_(c);break;default:_n.assertNever(c)}if(o&&(1===n||2===n)&&(!i||o.escapedText===rY(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($d(o||e)))if(o)a.push(o),i&&$d(e)!==t.escapedName||s(e,r.getSymbolAtLocation(e));else{s(e,281===n.kind&&n.propertyName?r.getExportSpecifierLocalTargetSymbol(n):r.getSymbolAtLocation(e))}}}function u(e){return e===t.escapedName||0!==n&&"default"===e}}function Pce(e,t,n){var r;const i=[],o=e.getTypeChecker();for(const a of t){const t=n.valueDeclaration;if(307===(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})}}Ice(a,((e,t)=>{o.getSymbolAtLocation(t)===n&&i.push(ey(e)?{kind:"implicit",literal:t,referencingFile:a}:{kind:"import",literal:t})}))}return i}function Ace(e,t){return _(307===e.kind?e.statements:e.body.statements,(e=>t(e)||Mce(e)&&_(e.body&&e.body.statements,t)))}function Ice(e,t){if(e.externalModuleIndicator||void 0!==e.imports)for(const n of e.imports)t(vg(n),n);else Ace(e,(e=>{switch(e.kind){case 278:case 272:{const n=e;n.moduleSpecifier&&NN(n.moduleSpecifier)&&t(n,n.moduleSpecifier);break}case 271:{const n=e;Bce(n)&&t(n,n.moduleReference.expression);break}}}))}function Oce(e,t,n,r){return r?i():i()||function(){if(!function(e){const{parent:t}=e;switch(t.kind){case 271:return t.name===e&&Bce(t);case 276:return!t.propertyName;case 273:case 274:return _n.assert(t.name===e),!0;case 208: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(vE(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(XD(n)&&eg(n.expression)&&!WN(n.name))return t.getSymbolAtLocation(n);if(qE(n)&&uF(n.parent.parent)&&2===tg(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(gE(i))return null==(n=et(i.expression,au))?void 0:n.symbol;if(uF(i))return null==(r=et(i.right,au))?void 0:r.symbol;if(WE(i))return i.symbol;return}(r,n),void 0===r))return;const i=rY(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 211===s.kind?(null==(i=t.declarations)?void 0:i.some((e=>e===s)))&&uF(c)?_(c,!1):void 0:o(t.exportSymbol,a(s));{const i=function(e,t){const n=HF(e)?e:HD(e)?nc(e):void 0;return n?e.name!==t||JE(n.parent)?void 0:FF(n.parent.parent)?n.parent.parent:void 0:e}(s,e);if(i&&Dv(i,32)){if(iE(i)&&i.moduleReference===e){if(r)return;return{kind:0,symbol:n.getSymbolAtLocation(i.name)}}return o(t,a(i))}if(pE(s))return o(t,0);if(gE(s))return l(s);if(gE(c))return l(c);if(uF(s))return _(s,!0);if(uF(c))return _(c,!0);if(DP(s)||pP(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(tg(e)){case 1:i=0;break;case 2:i=2;break;default:return}const a=r?n.getSymbolAtLocation(Cx(tt(e.left,Tx))):t;return a&&o(a,i)}}function o(e,t){const r=Lce(e,t,n);return r&&{kind:1,symbol:e,exportInfo:r}}function a(e){return Dv(e,2048)?1:0}}function Lce(e,t,n){const r=e.parent;if(!r)return;const i=n.getMergedSymbol(r);return Xu(i)?{exportingModuleSymbol:i,exportKind:t}:void 0}function jce(e,t){return t.getMergedSymbol(Rce(e).symbol)}function Rce(e){if(213===e.kind||351===e.kind)return e.getSourceFile();const{parent:t}=e;return 307===t.kind?t:(_n.assert(268===t.kind),tt(t.parent,Mce))}function Mce(e){return 267===e.kind&&11===e.name.kind}function Bce(e){return 283===e.moduleReference.kind&&11===e.moduleReference.expression.kind}var Jce=(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))(Jce||{}),zce=(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))(zce||{});function qce(e,t=1){return{kind:t,node:e.name||e,context:Vce(e)}}function Uce(e){return e&&void 0===e.kind}function Vce(e){if(_u(e))return Wce(e);if(e.parent){if(!_u(e.parent)&&!gE(e.parent)){if(Em(e)){const t=uF(e.parent)?e.parent:Tx(e.parent)&&uF(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(t&&0!==tg(t))return Wce(t)}if(NE(e.parent)||DE(e.parent))return e.parent.parent;if(wE(e.parent)||UF(e.parent)||Cl(e.parent))return e.parent;if(ju(e)){const t=bg(e);if(t){const e=uc(t,(e=>_u(e)||pu(e)||Cu(e)));return _u(e)?Wce(e):e}}const t=uc(e,aD);return t?Wce(t.parent):void 0}return e.parent.name===e||mD(e.parent)||gE(e.parent)||(Ml(e.parent)||HD(e.parent))&&e.parent.propertyName===e||90===e.kind&&Dv(e.parent,2080)?Wce(e.parent):void 0}}function Wce(e){if(e)switch(e.kind){case 260:return KF(e.parent)&&1===e.parent.declarations.length?FF(e.parent.parent)?e.parent.parent:Q_(e.parent.parent)?Wce(e.parent.parent):e.parent:e;case 208:return Wce(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return PF(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return SQ(e.parent)?Wce(uc(e.parent,(e=>uF(e)||Q_(e)))):e;case 255:return{start:y(e.getChildren(e.getSourceFile()),(e=>109===e.kind)),end:e.caseBlock};default:return e}}function $ce(e,t,n){if(!n)return;const r=Uce(n)?lle(n.start,t,n.end):lle(n,t);return r.start!==e.start||r.length!==e.length?{contextSpan:r}:void 0}var Hce,Kce=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Kce||{});function Gce(e,t,n,r,i){const o=VX(r,i),a={use:1},s=Hce.getReferencedSymbolsForNode(i,o,e,n,t,a),c=e.getTypeChecker(),l=Hce.getAdjustedNode(o,a),_=function(e){return 90===e.kind||!!_h(e)||uh(e)||137===e.kind&&mD(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}=nle(r,t,n),a=i.map((e=>e.text)).join(""),s=r.declarations&&pe(r.declarations);return{...tle(s?Cc(s)||s:n),name:a,kind:o,displayParts:i,context:Wce(s)}}case 1:{const{node:t}=e;return{...tle(t),name:t.text,kind:"label",displayParts:[kY(t.text,17)]}}case 2:{const{node:t}=e,n=Fa(t.kind);return{...tle(t),name:n,kind:"keyword",displayParts:[{text:n,kind:"keyword"}]}}case 3:{const{node:n}=e,r=t.getSymbolAtLocation(n),i=r&&Bue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,r,n.getSourceFile(),mX(n),n).displayParts||[EY("this")];return{...tle(n),name:"this",kind:"var",displayParts:i}}case 4:{const{node:t}=e;return{...tle(t),name:t.text,kind:"var",displayParts:[kY(Gd(t),8)]}}case 5:return{textSpan:PQ(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[kY(`"${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,...$ce(o,i,l)}}(e,t,o))),references:n.map((e=>function(e,t){const n=ile(e);return t?{...n,isDefinition:0!==e.kind&&dle(e.node,t)}:n}(e,_)))})):void 0}function Xce(e,t,n,r,i){const o=VX(r,i);let a;const s=Qce(e,t,n,o,i);if(211===o.parent.kind||208===o.parent.kind||212===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(!xx(i,$B(o.node)))continue;a=re(a,o);const s=Qce(e,t,n,o.node,o.node.pos);s&&r.enqueue(...s)}}const c=e.getTypeChecker();return D(a,(e=>function(e,t){const n=ole(e);if(0!==e.kind){const{node:r}=e;return{...n,...sle(r,t)}}return{...n,kind:"",displayParts:[]}}(e,c)))}function Qce(e,t,n,r,i){if(307===r.kind)return;const o=e.getTypeChecker();if(304===r.parent.kind){const e=[];return Hce.getReferenceEntriesForShorthandPropertyAssignment(r,o,(t=>e.push(qce(t)))),e}if(108===r.kind||am(r.parent)){const e=o.getSymbolAtLocation(r);return e.valueDeclaration&&[qce(e.valueDeclaration)]}return Zce(i,r,e,n,t,{implementations:!0,use:1})}function Yce(e,t,n,r,i,o,a){return D(ele(Hce.getReferencedSymbolsForNode(i,r,e,n,t,o)),(t=>a(t,r,e.getTypeChecker())))}function Zce(e,t,n,r,i,o={},a=new Set(r.map((e=>e.fileName)))){return ele(Hce.getReferencedSymbolsForNode(e,t,n,r,i,o,a))}function ele(e){return e&&A(e,(e=>e.references))}function tle(e){const t=e.getSourceFile();return{sourceFile:t,textSpan:lle(aD(e)?e.expression:e,t)}}function nle(e,t,n){const r=Hce.getIntersectingMeaningFromDeclarations(n,e),i=e.declarations&&pe(e.declarations)||n,{displayParts:o,symbolKind:a}=Bue.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,i.getSourceFile(),i,i,r);return{displayParts:o,kind:a}}function rle(e,t,n,r,i){return{...ole(e),...r&&ale(e,t,n,i)}}function ile(e){const t=ole(e);if(0===e.kind)return{...t,isWriteAccess:!1};const{kind:n,node:r}=e;return{...t,isWriteAccess:ule(r),isInString:2===n||void 0}}function ole(e){if(0===e.kind)return{textSpan:e.textSpan,fileName:e.fileName};{const t=e.node.getSourceFile(),n=lle(e.node,t);return{textSpan:n,fileName:t.fileName,...$ce(n,t,e.context)}}}function ale(e,t,n,r){if(0!==e.kind&&(VN(t)||ju(t))){const{node:r,kind:i}=e,o=r.parent,a=t.text,s=qE(o);if(s||oY(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 GD(n)&&uF(n.parent)&&eg(n.parent.left)?e:t}return e}if(mE(o)&&!o.propertyName){return k((vE(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t)).declarations,o)?{prefixText:a+" as "}:bG}if(vE(o)&&!o.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:a+" as "}:{suffixText:" as "+a}}if(0!==e.kind&&CN(e.node)&&Tx(e.node.parent)){const e=tY(r);return{prefixText:e,suffixText:e}}return bG}function sle(e,t){const n=t.getSymbolAtLocation(_u(e)&&e.name?e.name:e);return n?nle(n,t,e):210===e.kind?{kind:"interface",displayParts:[CY(21),EY("object literal"),CY(22)]}:231===e.kind?{kind:"local class",displayParts:[CY(21),EY("anonymous local class"),CY(22)]}:{kind:gX(e),displayParts:[]}}function cle(e){const t=ole(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};const n=ule(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 lle(e,t,n){let r=e.getStart(t),i=(n||e).getEnd();return ju(e)&&i-r>2&&(_n.assert(void 0===n),r+=1,i-=1),269===(null==n?void 0:n.kind)&&(i=n.getFullStart()),$s(r,i)}function _le(e){return 0===e.kind?e.textSpan:lle(e.node,e.node.getSourceFile())}function ule(e){const t=_h(e);return!!t&&function(e){if(33554432&e.flags)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 338:case 346:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!SQ(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||JE(e.parent);case 173:case 171:case 348:case 341:return!1;default:return _n.failBadSyntaxKind(e)}}(t)||90===e.kind||lx(e)}function dle(e,t){var n;if(!t)return!1;const r=_h(e)||(90===e.kind?e.parent:uh(e)||137===e.kind&&mD(e.parent)?e.parent.parent:void 0),i=r&&uF(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=qX(e):2===t.use&&(e=UX(e)),e}function n(e,t,n){let r;const i=t.get(e.path)||s;for(const e of i)if(kV(e)){const t=n.getSourceFileByPath(e.file),i=TV(n,e);SV(i)&&(r=re(r,{kind:0,fileName:t.fileName,textSpan:PQ(i)}))}return r}function r(e,t,n){if(e.parent&&rE(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,WE);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=ax(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=_le(t),s=_le(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(Pce(e,r,t),(e=>{if("import"===e.kind){const t=e.literal.parent;if(zD(t)){const e=tt(t.parent,qD);if(n&&!e.qualifier)return}return qce(e.literal)}if("implicit"===e.kind){return qce(e.literal.text!==Uu&&MI(e.referencingFile,(e=>2&e.transformFlags?CE(e)||wE(e)||FE(e)?e:void 0:"skip"))||e.referencingFile.statements[0]||e.referencingFile)}return{kind:0,fileName:e.referencingFile.fileName,textSpan:PQ(e.ref)}}));if(t.declarations)for(const e of t.declarations)switch(e.kind){case 307:break;case 267:i.has(e.getSourceFile().fileName)&&o.push(qce(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=uF(e)&&XD(e.left)?e.left.expression:gE(e)?_n.checkDefined(AX(e,95,t)):Cc(e)||e;o.push(qce(n))}}return o.length?[{definition:{type:0,symbol:t},references:o}]:s}function u(e){return 148===e.kind&&MD(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(vE(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 wD(r.parent)&&AD(r.parent.parent)?n.getPropertyOfType(n.getTypeFromTypeNode(r.parent.parent),e.name):void 0}))}(e,t,i,!Z(a))||e,c=t?X(t,s):7,l=[],_=new v(n,r,t?function(e){switch(e.kind){case 176:case 137:return 1;case 80:if(u_(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,vE):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&&(218===i.kind||231===i.kind))return i;if(!t)return;if(8196&n){const e=y(t,(e=>Nv(e,2)||Kl(e)));return e?Th(e,263):void 0}if(t.some(oY))return;const o=r&&!(262144&e.flags);if(o&&(!Xu(r)||r.globalExports))return;let a;for(const e of t){const t=mX(e);if(a&&a!==t)return;if(!t||307===t.kind&&!Yp(t))return;if(a=t,rF(a)){let e;for(;e=Mg(a);)a=e}}return o?a.getSourceFile():a}(e);if(r)I(r,r.getSourceFile(),n,t,!(WE(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=>!WE(e)&&!eE(e)));return t&&t.symbol}e.getReferencedSymbolsForNode=function(e,a,l,_,f,m={},g=new Set(_.map((e=>e.fileName)))){var h,y;if(WE(a=t(a,m))){const t=ple.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(jQ(e.kind)){if(116===e.kind&&sF(e.parent))return;if(148===e.kind&&!u(e))return;return function(e,t,n,r){const i=A(e,(e=>(n.throwIfCancellationRequested(),R(D(e,Fa(t),e),(e=>{if(e.kind===t&&(!r||r(e)))return qce(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(_f(e.parent)&&e.parent.name===e)return function(e,t){const n=A(e,(e=>(t.throwIfCancellationRequested(),R(D(e,"meta",e),(e=>{const t=e.parent;if(_f(t))return qce(t)})))));return n.length?[{definition:{type:2,node:n[0].node},references:n}]:void 0}(t,n);if(YN(e)&&fD(e.parent))return[{definition:{type:2,node:e},references:[qce(e)]}];if(iX(e)){const t=nX(e.parent,e.text);return t&&E(t.parent,t)}if(oX(e))return E(e.parent,e);if(hX(e))return function(e,t,n){let r=em(e,!1,!1),i=256;switch(r.kind){case 174:case 173:if(Bf(r)){i&=qv(r),r=r.parent;break}case 172:case 171:case 176:case 177:case 178:i&=qv(r),r=r.parent;break;case 307:if(VI(r)||$(e))return;case 262:case 218:break;default:return}const o=A(307===r.kind?t:[r.getSourceFile()],(e=>(n.throwIfCancellationRequested(),D(e,"this",WE(r)?e:r).filter((e=>{if(!hX(e))return!1;const t=em(e,!1,!1);if(!au(t))return!1;switch(r.kind){case 218:case 262:return r.symbol===t.symbol;case 174:case 173:return Bf(r)&&r.symbol===t.symbol;case 231:case 263:case 210:return t.parent&&au(t.parent)&&r.symbol===t.parent.symbol&&Fv(t)===!!i;case 307:return 307===t.kind&&!VI(t)&&!$(e)}}))))).map((e=>qce(e))),a=d(o,(e=>cD(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 172:case 171:case 174:case 173:case 176:case 177:case 178:n&=qv(t),t=t.parent;break;default:return}const r=R(D(t.getSourceFile(),"super",t),(e=>{if(108!==e.kind)return;const r=im(e,!1);return r&&Fv(r)===!!n&&r.parent.symbol===t.symbol?qce(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(mD(a)&&a.parent.name||a);if(!b){if(!m.implementations&&ju(a)){if(iY(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=RX(e,n),o=A(t,(t=>(r.throwIfCancellationRequested(),R(D(t,e.text),(r=>{if(ju(r)&&r.text===e.text){if(!i)return EN(r)&&!Bb(r,t)?void 0:qce(r,2);{const e=RX(r,n);if(i!==n.getStringType()&&(i===e||function(e,t){if(_D(e.parent))return t.getPropertyOfType(t.getTypeAtLocation(e.parent.parent),e.text)}(r,n)))return qce(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=BQ(),this.markSeenReExportRHS=BQ(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(e){return this.sourceFilesSet.has(e.fileName)}getImportSearches(e,t){return this.importTracker||(this.importTracker=Nce(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(e,t,2===this.options.use)}createSearch(e,t,n,r={}){const{text:i=Fy(yc(bb(t)||h(t)||t)),allSearchSymbols:o=[t]}=r,a=fc(i),s=this.options.implementations&&e?function(e,t,n){const r=lX(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=HB(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(qce(e,t))}addStringOrCommentReference(e,t){this.result.push({definition:void 0,references:[{kind:0,fileName:e,textSpan:t}]})}markSearchedSymbols(e,t){const n=$B(e),r=this.sourceFileToSeenSymbols[n]||(this.sourceFileToSeenSymbols[n]=new Set);let i=!1;for(const e of t)i=J(r,HB(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||!(!VN(e)&&!Ml(e.parent))&&!(Ml(e.parent)&&Hd(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!==o7(e).get(t.escapedText)&&P(e,t,n)}function N(e,t,n,r,i=n){const o=Zs(e.parent,e.parent.parent)?me(t.getSymbolsOfParameterPropertyDeclaration(e.parent,e.text)):t.getSymbolAtLocation(e);if(o)for(const a of D(n,o.name,i)){if(!VN(a)||a===e||a.escapedText!==e.escapedText)continue;const n=t.getSymbolAtLocation(a);if(n===o||t.getShorthandAssignmentValueSymbol(a.parent)===o||vE(a.parent)&&M(a,n,a.parent,t)===o){const e=r(a);if(e)return e}}}function D(e,t,n=e){return R(F(e,t,n),(t=>{const n=VX(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&&fs(i.charCodeAt(s-1),99)||e!==o&&fs(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(D(n,r,e),(e=>e===t||iX(e)&&nX(e,r)===t?qce(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!!(UG(e)&t.searchMeaning)}function L(e,t,n,r,i){const o=VX(e,t);if(!function(e,t){switch(e.kind){case 81:if(GE(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&&(pX(n)||uX(e)||fX(e)||YD(e.parent)&&ng(e.parent)&&e.parent.arguments[1]===e||Ml(e.parent))}case 9:return pX(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&&tQ(e,t)||r.options.findInComments&&CQ(e,t))&&r.addStringOrCommentReference(e.fileName,Ws(t,n.text.length)));if(!O(o,r))return;let a=r.checker.getSymbolAtLocation(o);if(!a)return;const s=o.parent;if(mE(s)&&s.propertyName===o)return;if(vE(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&&cP(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=>{oD(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&ix(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){$G(e)&&B(e,n.symbol,r);const i=()=>r.referenceAdder(n.symbol);if(u_(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=AX(e,137,t);_n.assert(176===e.kind&&!!r),n(r)}e.exports&&e.exports.forEach((e=>{const t=e.valueDeclaration;if(t&&174===t.kind){const e=t.body;e&&Y(e,110,(e=>{$G(e)&&n(e)}))}}))}(n.symbol,t,i());else{const t=nb(tX(e).parent);t&&(function(e,t){const n=z(e.symbol);if(!n||!n.declarations)return;for(const e of n.declarations){_n.assert(176===e.kind);const n=e.body;n&&Y(n,108,(e=>{WG(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||!u_(r))return;_n.assert(r.name===e);const i=n.referenceAdder(t.symbol);for(const e of r.members)m_(e)&&Fv(e)&&e.body&&e.body.forEachChild((function e(t){110===t.kind?i(t):r_(t)||u_(t)||t.forEachChild(e)}))}(o,n,r);break;default:_n.assertNever(r.specialSearchKind)}Em(o)&&HD(o.parent)&&Rm(o.parent.parent.parent)&&(a=o.parent.symbol,!a)||function(e,t,n,r){const i=Oce(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&&Cc(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&&Hd(l)||d(),!Z(i.options)||a){const t=Hd(e)||Hd(n.name)?1:0,r=_n.checkDefined(n.symbol),o=Lce(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(lh(e)&&(r=e.parent,33554432&r.flags?!QF(r)&&!YF(r):Pf(r)?Eu(r):o_(r)?r.body:u_(r)||ou(r)))return void t(e);var r;if(80!==e.kind)return;304===e.parent.kind&&Q(e,n.checker,t);const i=q(e);if(i)return void t(i);const o=uc(e,(e=>!oD(e.parent)&&!b_(e.parent)&&!h_(e.parent))),a=o.parent;if(Fu(a)&&a.type===o&&n.markSeenContainingTypeReference(a))if(Eu(a))s(a.initializer);else if(r_(a)&&a.body){const e=a.body;241===e.kind?Nf(e,(e=>{e.expression&&s(e.expression)})):s(e)}else W_(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 VN(e)||XD(e)?q(e.parent):yF(e)?et(e.parent.parent,Zt(u_,QF)):void 0}function U(e){switch(e.kind){case 217:return U(e.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function W(e,t,n,r){if(e===t)return!0;const i=HB(e)+","+HB(t),o=n.get(i);if(void 0!==o)return o;n.set(i,!1);const a=!!e.declarations&&e.declarations.some((e=>xh(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&&169===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=a7(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(s7(c,n,r,!0),(e=>p(e,4)));if(o)return o;const s=function(e,t){return SQ(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&&Zs(e.valueDeclaration,e.valueDeclaration.parent)){const t=n.getSymbolsOfParameterPropertyDeclaration(tt(e.valueDeclaration,cD),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=$u(e,281);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?oY(t.parent)?aY(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&&xx(i,e))return d(e.declarations,(e=>d(xh(e),(e=>{const i=n.getTypeAtLocation(e),a=i&&i.symbol&&n.getPropertyOfType(i,t);return i&&a&&(d(n.getRootSymbols(a),r)||o(i.symbol))}))))}}(r.parent,r.name,n,(n=>a(e,r,n,t))):void 0)))}function f(e,t){const n=$u(e,208);if(n&&oY(n))return aY(t,n)}}function G(e){if(!e.valueDeclaration)return!1;return!!(256&Jv(e.valueDeclaration))}function X(e,t){let n=UG(e);const{declarations:r}=t;if(r){let e;do{e=n;for(const e of r){const t=qG(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&qG(e)&&n(e)}function Y(e,t,n){RI(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=Nce(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)VN(e)&&qD(e.parent)&&s(e);for(const e of _)for(const n of D(e,a?"default":o)){const e=t.getSymbolAtLocation(n),i=V(null==e?void 0:e.declarations,(e=>!!et(e,gE)));!VN(n)||Ml(n.parent)||e!==r&&!i||s(n)}},e.isSymbolReferencedInFile=function(e,t,n,r=n){return N(e,t,n,(()=>!0),r)||!1},e.eachSymbolReferenceInFile=N,e.getTopMostDeclarationNamesInFile=function(e,t){return C(D(t,e),(e=>!!_h(e))).reduce(((e,t)=>{const n=function(e){let t=0;for(;e;)e=mX(e),t++;return t}(t);return V(e.declarationNames)&&n!==e.depth?n<e.depth&&(e.declarationNames=[t],e.depth=n):(e.declarationNames.push(t),e.depth=n),e}),{depth:1/0,declarationNames:[]}).declarationNames},e.someSignatureUsage=function(e,t,n,r){if(!e.name||!VN(e.name))return!1;const i=_n.checkDefined(n.getSymbolAtLocation(e.name));for(const o of t)for(const t of D(o,i.name)){if(!VN(t)||t===e.name||t.escapedText!==e.name.escapedText)continue;const o=tX(t),a=YD(o.parent)&&o.parent.expression===o?o.parent:void 0,s=n.getSymbolAtLocation(t);if(s&&n.getRootSymbols(s).some((e=>e===i))&&r(t,a))return!0}return!1},e.getIntersectingMeaningFromDeclarations=X,e.getReferenceEntriesForShorthandPropertyAssignment=Q})(Hce||(Hce={}));var ple={};function fle(e,t,n,r,i){var o;const a=gle(t,n,e),c=a&&[(l=a.reference.fileName,u=a.fileName,d=a.unverified,{fileName:u,textSpan:$s(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=VX(t,n);if(p===t)return;const{parent:f}=p,m=e.getTypeChecker();if(164===p.kind||VN(p)&&yP(f)&&f.tagName===p)return function(e,t){const n=uc(t,__);if(!n||!n.name)return;const r=uc(n,u_);if(!r)return;const i=yh(r);if(!i)return;const o=ah(i.expression),a=gF(o)?o.symbol:e.getSymbolAtLocation(o);if(!a)return;const s=mc(Lp(n.name)),c=Ev(n)?e.getPropertyOfType(e.getTypeOfSymbol(a),s):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(a),s);if(!c)return;return Tle(e,c,t)}(m,p)||s;if(iX(p)){const e=nX(p.parent,p.text);return e?[wle(m,e,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:const e=uc(p.parent,(e=>fD(e)?"quit":o_(e)));return e?[Fle(m,e)]:void 0;case 90:if(!ME(p.parent))break;case 84:const n=uc(p.parent,qF);if(n)return[Nle(n,t)]}if(135===p.kind){const e=uc(p,(e=>o_(e)));return e&&V(e.modifiers,(e=>134===e.kind))?[Fle(m,e)]:void 0}if(127===p.kind){const e=uc(p,(e=>o_(e)));return e&&e.asteriskToken?[Fle(m,e)]:void 0}if(YN(p)&&fD(p.parent)){const e=p.parent.parent,{symbol:t,failedAliasResolution:n}=Sle(e,m,i),r=C(e.members,fD),o=t?m.symbolToString(t,e):"",a=p.getSourceFile();return D(r,(e=>{let{pos:t}=Rb(e);return t=Qa(a.text,t),wle(m,e,"constructor","static {}",o,!1,n,{start:t,length:6})}))}let{symbol:g,failedAliasResolution:y}=Sle(p,m,i),v=p;if(r&&y){const e=_([p,...(null==g?void 0:g.declarations)||s],(e=>uc(e,Sp))),t=e&&yg(e);t&&(({symbol:g,failedAliasResolution:y}=Sle(t,m,i)),v=t)}if(!g&&iY(v)){const n=null==(o=e.getResolvedModuleFromModuleSpecifier(v,t))?void 0:o.resolvedModule;if(n)return[{name:v.text,fileName:n.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Ws(0,0),failedAliasResolution:y,isAmbient:YI(n.resolvedFileName),unverified:v!==p}]}if(!g)return $(c,function(e,t){return R(t.getIndexInfosAtLocation(e),(e=>e.declaration&&Fle(t,e.declaration)))}(p,m));if(r&&h(g.declarations,(e=>e.getSourceFile().fileName===t.fileName)))return;const b=function(e,t){const n=function(e){const t=uc(e,(e=>!lX(e))),n=null==t?void 0:t.parent;return n&&L_(n)&&um(n)===t?n:void 0}(t),r=n&&e.getResolvedSignature(n);return et(r&&r.declaration,(e=>r_(e)&&!SD(e)))}(m,p);if(b&&(!bu(p.parent)||!function(e){switch(e.kind){case 176:case 185:case 179:case 180:return!0;default:return!1}}(b))){const e=Fle(m,b,y);let t=e=>e!==b;if(m.getRootSymbols(g).some((e=>function(e,t){var n;return e===t.symbol||e===t.symbol.parent||ib(t.parent)||!L_(t.parent)&&e===(null==(n=et(t.parent,au))?void 0:n.symbol)}(e,b)))){if(!mD(b))return[e];t=e=>e!==b&&(XF(e)||gF(e))}const n=Tle(m,g,p,y,t)||s;return 108===p.kind?[e,...n]:[...n,e]}if(304===p.parent.kind){const e=m.getShorthandAssignmentValueSymbol(g.valueDeclaration);return $((null==e?void 0:e.declarations)?e.declarations.map((t=>Cle(t,m,e,p,!1,y))):s,mle(m,p))}if(t_(p)&&HD(f)&&WD(f.parent)&&p===(f.propertyName||f.name)){const e=UQ(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&&Tle(m,n,p)}))}const x=mle(m,p);return $(c,x.length?x:Tle(m,g,p,y))}function mle(e,t){const n=a7(t);if(n){const r=n&&e.getContextualType(n.parent);if(r)return A(s7(n,e,r,!1),(n=>Tle(e,n,t)))}return s}function gle(e,t,n){var r,i;const o=Ele(e.referencedFiles,t);if(o){const t=n.getSourceFileFromReference(e,o);return t&&{reference:o,fileName:t.fileName,file:t,unverified:!1}}const a=Ele(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=Ele(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=WX(e,t);let o;if(iY(r)&&Cs(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(ple,{createDefinitionInfo:()=>Cle,getDefinitionAndBoundSpan:()=>kle,getDefinitionAtPosition:()=>fle,getReferenceAtPosition:()=>gle,getTypeDefinitionAtPosition:()=>ble});var hle=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"]);function yle(e,t){if(!t.aliasSymbol)return!1;const n=t.aliasSymbol.name;if(!hle.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.aliasSymbol}function vle(e,t,n,r){var i,o;if(4&hx(t)&&function(e,t){const n=t.symbol.name;if(!hle.has(n))return!1;const r=e.resolveName(n,void 0,788968,!1);return!!r&&r===t.target.symbol}(e,t))return xle(e.getTypeArguments(t)[0],e,n,r);if(yle(e,t)&&t.aliasTypeArguments)return xle(t.aliasTypeArguments[0],e,n,r);if(32&hx(t)&&t.target&&yle(e,t.target)){const a=null==(o=null==(i=t.aliasSymbol)?void 0:i.declarations)?void 0:o[0];if(a&&YF(a)&&kD(a.type)&&a.type.typeArguments)return xle(e.getTypeAtLocation(a.type.typeArguments[0]),e,n,r)}return[]}function ble(e,t,n){const r=VX(t,n);if(r===t)return;if(_f(r.parent)&&r.parent.name===r)return xle(e.getTypeAtLocation(r.parent),e,r.parent,!1);const{symbol:i,failedAliasResolution:o}=Sle(r,e,!1);if(!i)return;const a=e.getTypeOfSymbolAtLocation(i,r),s=function(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&HF(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&&xle(s,e,r,o),[l,_]=c&&0!==c.length?[s,c]:[a,xle(a,e,r,o)];return _.length?[...vle(e,l,r,o),..._]:!(111551&i.flags)&&788968&i.flags?Tle(e,ax(i,e),r,o):void 0}function xle(e,t,n,r){return A(!e.isUnion()||32&e.flags?[e]:e.types,(e=>e.symbol&&Tle(t,e.symbol,n,r)))}function kle(e,t,n){const r=fle(e,t,n);if(!r||0===r.length)return;const i=Ele(t.referencedFiles,n)||Ele(t.typeReferenceDirectives,n)||Ele(t.libReferenceDirectives,n);if(i)return{definitions:r,textSpan:PQ(i)};const o=VX(t,n);return{definitions:r,textSpan:Ws(o.getStart(),o.getWidth())}}function Sle(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||!Ml(e.parent)))return!1;if(e.parent===t)return!0;if(274===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 Tle(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)&&($G(n)||137===n.kind)){const e=y(o,u_);return e&&c(e.members,!0)}}()||(HG(n)||dX(n)?c(o,!1):void 0));if(a)return a;const s=C(o,(e=>!function(e){if(!Um(e))return!1;const t=uc(e,(e=>!!ib(e)||!Um(e)&&"quit"));return!!t&&5===tg(t)}(e)));return D(V(s)?s:o,(i=>Cle(i,e,t,n,!1,r)));function c(i,o){if(!i)return;const a=i.filter(o?mD:r_),s=a.filter((e=>!!e.body));return a.length?0!==s.length?s.map((r=>Cle(r,e,t,n))):[Cle(ye(a),e,t,n,!1,r)]:void 0}}function Cle(e,t,n,r,i,o){const a=t.symbolToString(n),s=Bue.getSymbolKind(t,n,r),c=n.parent?t.symbolToString(n.parent,r):"";return wle(t,e,s,a,c,i,o)}function wle(e,t,n,r,i,o,a,s){const c=t.getSourceFile();if(!s){s=DQ(Cc(t)||t,c)}return{fileName:c.fileName,textSpan:s,kind:n,name:r,containerKind:void 0,containerName:i,...wce.toContextSpan(s,c,wce.getContextNode(t)),isLocal:!Dle(e,t),isAmbient:!!(33554432&t.flags),unverified:o,failedAliasResolution:a}}function Nle(e,t){const n=wce.getContextNode(e),r=DQ(Uce(n)?n.start:n,t);return{fileName:t.fileName,textSpan:r,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...wce.toContextSpan(r,t,n),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function Dle(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Eu(t.parent)&&t.parent.initializer===t)return Dle(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(Nv(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return Dle(e,t.parent);default:return!1}}function Fle(e,t,n){return Cle(t,e,t.symbol,t,!1,n)}function Ele(e,t){return y(e,(e=>As(e,t)))}var Ple={};n(Ple,{provideInlayHints:()=>Lle});var Ale=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`);function Ile(e){return"literals"===e.includeInlayParameterNameHints}function Ole(e){return!0===e.interactiveInlayHints}function Lle(e){const{file:t,program:n,span:r,cancellationToken:i,preferences:o}=e,a=t.text,s=n.getCompilerOptions(),c=eY(t,o),l=n.getTypeChecker(),_=[];return function e(n){if(!n||0===n.getFullWidth())return;switch(n.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:i.throwIfCancellationRequested()}if(!Bs(r,n.pos,n.getFullWidth()))return;if(b_(n)&&!yF(n))return;o.includeInlayVariableTypeHints&&HF(n)||o.includeInlayPropertyDeclarationTypeHints&&uD(n)?f(n):o.includeInlayEnumMemberValueHints&&VE(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)&&(YD(n)||ZD(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=ah(e);if(Ile(o)&&!h(t)){r++;continue}let i=0;if(mF(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=mc(r);if(g(t,s))continue;u(s,n,e.getStart(),i)}}}(n):(o.includeInlayFunctionParameterTypeHints&&o_(n)&&jT(n)&&function(e){const t=l.getSignatureFromDeclaration(e);if(!t)return;for(let n=0;n<e.parameters.length&&n<t.parameters.length;++n){const r=e.parameters[n];if(!S(r))continue;if(fv(r))continue;const i=v(t.parameters[n]);i&&d(i,r.questionToken?r.questionToken.end:r.name.end)}}(n),o.includeInlayFunctionLikeReturnTypeHints&&function(e){return iF(e)||rF(e)||GF(e)||pD(e)||gD(e)}(n)&&function(e){if(iF(e)&&!AX(e,21,t))return;if(gv(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(!Ole(o))return function(e){const n=71286784,r=_U();return od((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 RI(n,e)}(t),_;function u(e,t,n,r){let i,a=`${r?"...":""}${e}`;Ole(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&&(!uD(e)||1&l.getTypeAtLocation(e).flags)||k_(e.name)||HF(e)&&!S(e))return;if(fv(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 VN(e)?e.text===t:!!XD(e)&&e.name.text===t}function g(e,n){if(!ms(n,vk(s),_k(t.scriptKind)))return!1;const r=_s(a,e.pos);if(!(null==r?void 0:r.length))return!1;const i=Ale(n);return V(r,(e=>i.test(a.substring(e.pos,e.end))))}function h(e){switch(e.kind){case 224:{const t=e.operand;return Il(t)||VN(t)&&RT(t.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const t=e.escapedText;return function(e){return"undefined"===e}(t)||RT(t)}}return Il(e)}function y(e){const n=AX(e,22,t);return n?n.end:e.parameters.end}function v(e){const t=e.valueDeclaration;if(!t||!cD(t))return;const n=l.getTypeOfSymbolAtLocation(e,t);return p(n)?void 0:x(n)}function x(e){if(!Ole(o))return function(e){const n=_U();return od((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=Fa(e.kind);if(c)t.push({text:c});else if(Il(e))t.push({text:o(e)});else switch(e.kind){case 80:_n.assertNode(e,VN);const c=gc(e),l=e.symbol&&e.symbol.declarations&&e.symbol.declarations.length&&Cc(e.symbol.declarations[0]);l?t.push(T(c,l)):t.push({text:c});break;case 166:_n.assertNode(e,oD),n(e.left),t.push({text:"."}),n(e.right);break;case 182:_n.assertNode(e,xD),e.assertsModifier&&t.push({text:"asserts "}),n(e.parameterName),e.type&&(t.push({text:" is "}),n(e.type));break;case 183:_n.assertNode(e,kD),n(e.typeName),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 168:_n.assertNode(e,sD),e.modifiers&&i(e.modifiers," "),n(e.name),e.constraint&&(t.push({text:" extends "}),n(e.constraint)),e.default&&(t.push({text:" = "}),n(e.default));break;case 169:_n.assertNode(e,cD),e.modifiers&&i(e.modifiers," "),e.dotDotDotToken&&t.push({text:"..."}),n(e.name),e.questionToken&&t.push({text:"?"}),e.type&&(t.push({text:": "}),n(e.type));break;case 185:_n.assertNode(e,TD),t.push({text:"new "}),r(e),t.push({text:" => "}),n(e.type);break;case 186:_n.assertNode(e,CD),t.push({text:"typeof "}),n(e.exprName),e.typeArguments&&(t.push({text:"<"}),i(e.typeArguments,", "),t.push({text:">"}));break;case 187:_n.assertNode(e,wD),t.push({text:"{"}),e.members.length&&(t.push({text:" "}),i(e.members,"; "),t.push({text:" "})),t.push({text:"}"});break;case 188:_n.assertNode(e,ND),n(e.elementType),t.push({text:"[]"});break;case 189:_n.assertNode(e,DD),t.push({text:"["}),i(e.elements,", "),t.push({text:"]"});break;case 202:_n.assertNode(e,FD),e.dotDotDotToken&&t.push({text:"..."}),n(e.name),e.questionToken&&t.push({text:"?"}),t.push({text:": "}),n(e.type);break;case 190:_n.assertNode(e,ED),n(e.type),t.push({text:"?"});break;case 191:_n.assertNode(e,PD),t.push({text:"..."}),n(e.type);break;case 192:_n.assertNode(e,AD),i(e.types," | ");break;case 193:_n.assertNode(e,ID),i(e.types," & ");break;case 194:_n.assertNode(e,OD),n(e.checkType),t.push({text:" extends "}),n(e.extendsType),t.push({text:" ? "}),n(e.trueType),t.push({text:" : "}),n(e.falseType);break;case 195:_n.assertNode(e,LD),t.push({text:"infer "}),n(e.typeParameter);break;case 196:_n.assertNode(e,jD),t.push({text:"("}),n(e.type),t.push({text:")"});break;case 198:_n.assertNode(e,MD),t.push({text:`${Fa(e.operator)} `}),n(e.type);break;case 199:_n.assertNode(e,BD),n(e.objectType),t.push({text:"["}),n(e.indexType),t.push({text:"]"});break;case 200:_n.assertNode(e,JD),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 201:_n.assertNode(e,zD),n(e.literal);break;case 184:_n.assertNode(e,SD),r(e),t.push({text:" => "}),n(e.type);break;case 205:_n.assertNode(e,qD),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 171:_n.assertNode(e,_D),(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 181:_n.assertNode(e,bD),t.push({text:"["}),i(e.parameters,", "),t.push({text:"]"}),e.type&&(t.push({text:": "}),n(e.type));break;case 173:_n.assertNode(e,dD),(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 179:_n.assertNode(e,yD),r(e),e.type&&(t.push({text:": "}),n(e.type));break;case 207:_n.assertNode(e,$D),t.push({text:"["}),i(e.elements,", "),t.push({text:"]"});break;case 206:_n.assertNode(e,WD),t.push({text:"{"}),e.elements.length&&(t.push({text:" "}),i(e.elements,", "),t.push({text:" "})),t.push({text:"}"});break;case 208:_n.assertNode(e,HD),n(e.name);break;case 224:_n.assertNode(e,lF),t.push({text:Fa(e.operator)}),n(e.operand);break;case 203:_n.assertNode(e,VD),n(e.head),e.templateSpans.forEach(n);break;case 16:_n.assertNode(e,PN),t.push({text:o(e)});break;case 204:_n.assertNode(e,UD),n(e.type),n(e.literal);break;case 17:_n.assertNode(e,AN),t.push({text:o(e)});break;case 18:_n.assertNode(e,IN),t.push({text:o(e)});break;case 197:_n.assertNode(e,RD),t.push({text:"this"});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?`'${xy(e.text,39)}'`:`"${xy(e.text,34)}"`;case 16:case 17:case 18:{const t=e.rawText??dy(xy(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((Qh(e)||HF(e)&&of(e))&&e.initializer){const t=ah(e.initializer);return!(h(t)||ZD(t)||GD(t)||W_(t))}return!0}function T(e,t){const n=t.getSourceFile();return{text:e,span:DQ(t,n),file:n.fileName}}}var jle={};n(jle,{getDocCommentTemplateAtPosition:()=>Zle,getJSDocParameterNameCompletionDetails:()=>Yle,getJSDocParameterNameCompletions:()=>Qle,getJSDocTagCompletionDetails:()=>Xle,getJSDocTagCompletions:()=>Gle,getJSDocTagNameCompletionDetails:()=>Kle,getJSDocTagNameCompletions:()=>Hle,getJsDocCommentsFromDeclarations:()=>Jle,getJsDocTagsFromDeclarations:()=>qle});var Rle,Mle,Ble=["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 Jle(e,t){const n=[];return mY(e,(e=>{for(const r of function(e){switch(e.kind){case 341:case 348:return[e];case 338:case 346:return[e,e.parent];case 323:if(vP(e.parent))return[e.parent.parent];default:return jg(e)}}(e)){const i=sP(r)&&r.tags&&y(r.tags,(e=>327===e.kind&&("inheritDoc"===e.tagName.escapedText||"inheritdoc"===e.tagName.escapedText)));if(void 0===r.comment&&!i||sP(r)&&346!==e.kind&&338!==e.kind&&r.tags&&r.tags.some((e=>346===e.kind||338===e.kind))&&!r.tags.some((e=>341===e.kind||342===e.kind)))continue;let o=r.comment?Wle(r.comment,t):[];i&&i.comment&&(o=o.concat(Wle(i.comment,t))),k(n,o,zle)||n.push(o)}})),P(g(n,[MY()]))}function zle(e,t){return ee(e,t,((e,t)=>e.kind===t.kind&&e.text===t.text))}function qle(e,t){const n=[];return mY(e,(e=>{const r=ol(e);if(!r.some((e=>346===e.kind||338===e.kind))||r.some((e=>341===e.kind||342===e.kind)))for(const e of r)n.push({name:e.tagName.text,text:$le(e,t)}),n.push(...Ule(Vle(e),t))})),n}function Ule(e,t){return A(e,(e=>$([{name:e.tagName.text,text:$le(e,t)}],Ule(Vle(e),t))))}function Vle(e){return Nl(e)&&e.isNameFirst&&e.typeExpression&&cP(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function Wle(e,t){return"string"==typeof e?[EY(e)]:A(e,(e=>321===e.kind?[EY(e.text)]:LY(e,t)))}function $le(e,t){const{comment:n,kind:r}=e,i=function(e){switch(e){case 341:return NY;case 348:return DY;case 345:return AY;case 346:case 338:return PY;default:return EY}}(r);switch(r){case 349:const r=e.typeExpression;return r?o(r):void 0===n?void 0:Wle(n,t);case 329:case 328:return o(e.class);case 345:const a=e,s=[];if(a.constraint&&s.push(EY(a.constraint.getText())),l(a.typeParameters)){l(s)&&s.push(SY());const e=a.typeParameters[a.typeParameters.length-1];_(a.typeParameters,(t=>{s.push(i(t.getText())),e!==t&&s.push(CY(28),SY())}))}return n&&s.push(SY(),...Wle(n,t)),s;case 344:case 350:return o(e.typeExpression);case 346:case 338:case 348:case 341:case 347:const{name:c}=e;return c?o(c):void 0===n?void 0:Wle(n,t);default:return void 0===n?void 0:Wle(n,t)}function o(e){return r=e.getText(),n?r.match(/^https?$/)?[EY(r),...Wle(n,t)]:[i(r),SY(),...Wle(n,t)]:[EY(r)];var r}}function Hle(){return Rle||(Rle=D(Ble,(e=>({name:e,kind:"keyword",kindModifiers:"",sortText:Tae.SortText.LocationPriority}))))}var Kle=Xle;function Gle(){return Mle||(Mle=D(Ble,(e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:Tae.SortText.LocationPriority}))))}function Xle(e){return{name:e,kind:"",kindModifiers:"",displayParts:[EY(e)],documentation:s,tags:void 0,codeActions:void 0}}function Qle(e){if(!VN(e.name))return s;const t=e.name.text,n=e.parent,r=n.parent;return r_(r)?R(r.parameters,(r=>{if(!VN(r.name))return;const i=r.name.text;return n.tags.some((t=>t!==e&&SP(t)&&VN(t.name)&&t.name.escapedText===i))||void 0!==t&&!Kt(i,t)?void 0:{name:i,kind:"parameter",kindModifiers:"",sortText:Tae.SortText.LocationPriority}})):[]}function Yle(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[EY(e)],documentation:s,tags:void 0,codeActions:void 0}}function Zle(e,t,n,r){const i=$X(t,n),o=uc(i,sP);if(o&&(void 0!==o.comment||l(o.tags)))return;const a=i.getStart(t);if(!o&&a<n)return;const s=function(e,t){return td(e,(e=>e_e(e,t)))}(i,r);if(!s)return;const{commentOwner:c,parameters:_,hasReturn:u}=s,d=he(Du(c)&&c.jsDoc?c.jsDoc:void 0);if(c.getStart(t)<n||d&&o&&d!==o)return;const p=function(e,t){const{text:n}=e,r=vX(t,e);let i=r;for(;i<=t&&Ua(n.charCodeAt(i));i++);return n.slice(r,i)}(t,n),f=LS(t.fileName),m=(_?function(e,t,n,r){return e.map((({name:e,dotDotDotToken:i},o)=>{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(ol(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 e_e(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:const n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:t_e(n,t)};case 303:return e_e(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{const n=e;return n.type&&SD(n.type)?{commentOwner:e,parameters:n.type.parameters,hasReturn:t_e(n.type,t)}:{commentOwner:e}}case 243:{const n=e.declarationList.declarations,r=1===n.length&&n[0].initializer?function(e){for(;217===e.kind;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return y(e.members,mD)}}(n[0].initializer):void 0;return r?{commentOwner:e,parameters:r.parameters,hasReturn:t_e(r,t)}:{commentOwner:e}}case 307:return"quit";case 267:return 267===e.parent.kind?void 0:{commentOwner:e};case 244:return e_e(e.expression,t);case 226:{const n=e;return 0===tg(n)?"quit":r_(n.right)?{commentOwner:e,parameters:n.right.parameters,hasReturn:t_e(n.right,t)}:{commentOwner:e}}case 172:const r=e.initializer;if(r&&(rF(r)||iF(r)))return{commentOwner:e,parameters:r.parameters,hasReturn:t_e(r,t)}}}function t_e(e,t){return!!(null==t?void 0:t.generateReturnInDocTemplate)&&(SD(e)||iF(e)&&V_(e.body)||o_(e)&&e.body&&DF(e.body)&&!!Nf(e.body,(e=>e)))}var n_e={};function r_e(e,t,n,r,i,o){return Kue.ChangeTracker.with({host:r,formatContext:i,preferences:o},(r=>{const i=t.map((t=>function(e,t){const n=[{parse:()=>zI("__mapcode_content_nodes.ts",t,e.languageVersion,!0,e.scriptKind),body:e=>e.statements},{parse:()=>zI("__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)i_e(e,r,t,o)}))}function i_e(e,t,n,r){__(n[0])||h_(n[0])?function(e,t,n,r){let i;i=r&&r.length?_(r,(t=>uc($X(e,t.start),Zt(u_,QF)))):y(e.statements,Zt(u_,QF));if(!i)return;const o=i.members.find((e=>n.some((t=>o_e(t,e)))));if(o){const r=v(i.members,(e=>n.some((t=>o_e(t,e)))));return _(n,a_e),void t.replaceNodeRangeWithNodes(e,o,r,n)}_(n,a_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=uc($X(e,i.start),(e=>Zt(DF,WE)(e)&&V(e.statements,(e=>n.some((t=>o_e(t,e)))))));if(r){const i=r.statements.find((e=>n.some((t=>o_e(t,e)))));if(i){const o=v(r.statements,(e=>n.some((t=>o_e(t,e)))));return _(n,a_e),void t.replaceNodeRangeWithNodes(e,i,o,n)}}}let i=e.statements;for(const t of r){const n=uc($X(e,t.start),DF);if(n){i=n.statements;break}}_(n,a_e),t.insertNodesAfter(e,i[i.length-1],n)}(e,t,n,r)}function o_e(e,t){var n,r,i,o,a,s;return e.kind===t.kind&&(176===e.kind?e.kind===t.kind:Sc(e)&&Sc(t)?e.name.getText()===t.name.getText():AF(e)&&AF(t)||OF(e)&&OF(t)?e.expression.getText()===t.expression.getText():LF(e)&&LF(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()):Q_(e)&&Q_(t)?e.expression.getText()===t.expression.getText()&&e.initializer.getText()===t.initializer.getText():UF(e)&&UF(t)?e.label.getText()===t.label.getText():e.getText()===t.getText())}function a_e(e){s_e(e),e.parent=void 0}function s_e(e){e.pos=-1,e.end=-1,e.forEachChild(s_e)}n(n_e,{mapCode:()=>r_e});var c_e={};function l_e(e,t,n,r,i,o){const a=Kue.ChangeTracker.fromContext({host:n,formatContext:t,preferences:i}),s="SortAndCombine"===o||"All"===o,c=s,_="RemoveUnused"===o||"All"===o,u=e.statements.filter(oE),d=u_e(e,u),{comparersToTest:p,typeOrdersToTest:f}=__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}=S_e(d,p)),!g.typeOrder||"boolean"!=typeof i.organizeImportsIgnoreCase){const e=T_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(;i<r;)if(hE(n[i])){void 0===t[o]&&(t[o]=[]);const e=n[i];if(e.moduleSpecifier)t[o].push(e),i++;else{for(;i<r&&hE(n[i]);)t[o].push(n[i++]);o++}}else i++;return A(t,(t=>u_e(e,t)))}(e).forEach((e=>v(e,g.namedImportComparer)));for(const t of e.statements.filter(sp)){if(!t.body)continue;if(u_e(e,t.body.statements.filter(oE)).forEach((e=>y(e,g))),"RemoveUnused"!==o){v(t.body.statements.filter(hE),g.namedImportComparer)}}return a.getChanges();function h(r,i){if(0===l(r))return;ow(r[0],1024);const o=c?Be(r,(e=>p_e(e.moduleSpecifier))):[r],_=A(s?le(o,((e,t)=>v_e(e[0].moduleSpecifier,t[0].moduleSpecifier,g.moduleSpecifierComparer??m))):o,(e=>p_e(e[0].moduleSpecifier)||void 0===e[0].moduleSpecifier?i(e):e));if(0===_.length)a.deleteNodes(e,r,{leadingTriviaOption:Kue.LeadingTriviaOption.Exclude,trailingTriviaOption:Kue.TrailingTriviaOption.Include},!0);else{const i={leadingTriviaOption:Kue.LeadingTriviaOption.Exclude,trailingTriviaOption:Kue.TrailingTriviaOption.Include,suffix:RY(n,t.options)};a.replaceNodeWithNodes(e,r[0],_,i);const o=a.nodeHasTrailingComment(e,r[0],i);a.deleteNodes(e,r.slice(1),{trailingTriviaOption:Kue.TrailingTriviaOption.Include},o)}}function y(t,n){const i=n.moduleSpecifierComparer??m,o=n.namedImportComparer??m,a=A_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(dE(o))l(o.name)||(o=void 0);else{const e=o.elements.filter((e=>l(e.name)));e.length<o.elements.length&&(o=e.length?ZC.updateNamedImports(o,e):void 0)}i||o?c.push(h_e(n,i,o)):x_e(t,r)&&(t.isDeclarationFile?c.push(ZC.createImportDeclaration(n.modifiers,void 0,r,void 0)):c.push(n))}return c;function l(e){return s&&(e.text===o||a&&e.text===a)&&a0(i.jsx)||wce.Core.isSymbolReferencedInFile(e,r,t)}}(t,e,r)),c&&(t=m_e(t,i,a,e)),s&&(t=le(t,((e,t)=>j_e(e,t,i)))),t)))}function v(e,t){const n=A_e(i,t);h(e,(e=>g_e(e,n)))}}function __e(e){return{comparersToTest:"boolean"==typeof e.organizeImportsIgnoreCase?[E_e(e,e.organizeImportsIgnoreCase)]:[E_e(e,!0),E_e(e,!1)],typeOrdersToTest:e.organizeImportsTypeOrder?[e.organizeImportsTypeOrder]:["last","inline","first"]}}function u_e(e,t){const n=gs(e.languageVersion,!1,e.languageVariant),r=[];let i=0;for(const o of t)r[i]&&d_e(e,o,n)&&i++,r[i]||(r[i]=[]),r[i].push(o);return r}function d_e(e,t,n){const r=t.getFullStart(),i=t.getStart();n.setText(e.text,r,i-r);let o=0;for(;n.getTokenStart()<i;){if(4===n.scan()&&(o++,o>=2))return!0}return!1}function p_e(e){return void 0!==e&&ju(e)?e.text:void 0}function f_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&&(dE(a)?e.namespaceImports.push(i):e.namedImports.push(i))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:r}}function m_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+=ju(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:_}=f_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(h_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(h_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(ZC.createImportSpecifier(!1,ZC.createIdentifier("default"),e.importClause.name));g.push(...k_e(_));const h=ZC.createNodeArray(le(g,n),null==p?void 0:p.importClause.namedBindings.elements.hasTrailingComma),y=0===h.length?m?void 0:ZC.createNamedImports(s):p?ZC.updateNamedImports(p.importClause.namedBindings,h):ZC.createNamedImports(h);r&&y&&(null==p?void 0:p.importClause.namedBindings)&&!Bb(p.importClause.namedBindings,r)&&ow(y,2),i&&m&&y?(o.push(h_e(f,m,void 0)),o.push(h_e(p??f,void 0,y))):o.push(h_e(f,m,y))}}return o}function g_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&&yE(e.exportClause)?e.exportClause.elements:s)));const r=le(n,t),i=e[0];o.push(ZC.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,i.exportClause&&(yE(i.exportClause)?ZC.updateNamedExports(i.exportClause,r):ZC.updateNamespaceExport(i.exportClause,i.exportClause.name)),i.moduleSpecifier,i.attributes))}return o}function h_e(e,t,n){return ZC.updateImportDeclaration(e,e.modifiers,ZC.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.attributes)}function y_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 v_e(e,t,n){const r=void 0===e?void 0:p_e(e),i=void 0===t?void 0:p_e(t);return It(void 0===r,void 0===i)||It(Cs(r),Cs(i))||n(r,i)}function b_e(e){var t;switch(e.kind){case 271:return null==(t=et(e.moduleReference,TE))?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function x_e(e,t){const n=NN(t)&&t.text;return Ye(n)&&V(e.moduleAugmentations,(e=>NN(e)&&e.text===n))}function k_e(e){return A(e,(e=>D(function(e){var t;return(null==(t=e.importClause)?void 0:t.namedBindings)&&fE(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}(e),(e=>e.name&&e.propertyName&&$d(e.name)===$d(e.propertyName)?ZC.updateImportSpecifier(e,e.isTypeOnly,void 0,e.name):e))))}function S_e(e,t){const n=[];return e.forEach((e=>{n.push(e.map((e=>p_e(b_e(e))||"")))})),w_e(n,t)}function T_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,fE))?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,fE))?void 0:n.elements})).filter((e=>void 0!==e));if(!r||0===n.length){const e=w_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)+C_e(r,((t,n)=>y_e(t,n,e,{organizeImportsTypeOrder:i})));for(const r of n){const n=r;t[n]<a[n]&&(a[n]=t[n],s[n]=e)}}e:for(const e of n){const t=e;for(const e of n){if(a[e]<a[t])continue e}return{namedImportComparer:s[t],typeOrder:t,isSorted:0===a[t]}}return{namedImportComparer:s.last,typeOrder:"last",isSorted:0===a.last}}function C_e(e,t){let n=0;for(let r=0;r<e.length-1;r++)t(e[r],e[r+1])>0&&n++;return n}function w_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+=C_e(n,i)}t<r&&(r=t,n=i)}return{comparer:n??t[0],isSorted:0===r}}function N_e(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:274===(null==(t=e.importClause.namedBindings)?void 0:t.kind)?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function D_e(e){return e?St:Tt}function F_e(e,t){const n=function(e){let t=e.organizeImportsLocale;"auto"===t&&(t=Ft());void 0===t&&(t="en");const n=Intl.Collator.supportedLocalesOf(t),r=n.length?n[0]:"en";return r}(t),r=t.organizeImportsCaseFirst??!1,i=t.organizeImportsNumericCollation??!1,o=t.organizeImportsAccentCollation??!0,a=e?o?"accent":"base":o?"variant":"case";return new Intl.Collator(n,{usage:"sort",caseFirst:r||"false",sensitivity:a,numeric:i}).compare}function E_e(e,t){return"unicode"===(e.organizeImportsCollation??"ordinal")?F_e(t,e):D_e(t)}function P_e(e,t){return S_e([e],__e(t).comparersToTest)}function A_e(e,t){const n=t??D_e(!!e.organizeImportsIgnoreCase);return(t,r)=>y_e(t,r,n,e)}function I_e(e,t,n){const{comparersToTest:r,typeOrdersToTest:i}=__e(t),o=T_e([e],r,i);let a,s=A_e(t,r[0]);if("boolean"!=typeof t.organizeImportsIgnoreCase||!t.organizeImportsTypeOrder)if(o){const{namedImportComparer:e,typeOrder:t,isSorted:n}=o;a=n,s=A_e({organizeImportsTypeOrder:t},e)}else if(n){const e=T_e(n.statements.filter(oE),r,i);if(e){const{namedImportComparer:t,typeOrder:n,isSorted:r}=e;a=r,s=A_e({organizeImportsTypeOrder:n},t)}}return{specifierComparer:s,isSorted:a}}function O_e(e,t,n){const r=Se(e,t,at,((e,t)=>j_e(e,t,n)));return r<0?~r:r}function L_e(e,t,n){const r=Se(e,t,at,n);return r<0?~r:r}function j_e(e,t,n){return v_e(b_e(e),b_e(t),n)||function(e,t){return yt(N_e(e),N_e(t))}(e,t)}function R_e(e,t,n,r){const i=D_e(t);return m_e(e,i,A_e({organizeImportsTypeOrder:null==r?void 0:r.organizeImportsTypeOrder},i),n)}function M_e(e,t,n){return g_e(e,((e,r)=>y_e(e,r,D_e(t),{organizeImportsTypeOrder:(null==n?void 0:n.organizeImportsTypeOrder)??"last"})))}function B_e(e,t,n){return v_e(e,t,D_e(!!n))}n(c_e,{compareImportsOrRequireStatements:()=>j_e,compareModuleSpecifiers:()=>B_e,getImportDeclarationInsertionIndex:()=>O_e,getImportSpecifierInsertionIndex:()=>L_e,getNamedImportSpecifierComparerWithDetection:()=>I_e,getOrganizeImportsStringComparerWithDetection:()=>P_e,organizeImports:()=>l_e,testCoalesceExports:()=>M_e,testCoalesceImports:()=>R_e});var J_e={};function z_e(e,t){const n=[];return function(e,t,n){let r=40,i=0;const o=[...e.statements,e.endOfFileToken],a=o.length;for(;i<a;){for(;i<a&&!kp(o[i]);)s(o[i]),i++;if(i===a)break;const t=i;for(;i<a&&kp(o[i]);)s(o[i]),i++;const r=i-1;r!==t&&n.push($_e(AX(o[t],102,e).getStart(e),o[r].getEnd(),"imports"))}function s(i){var o;if(0===r)return;t.throwIfCancellationRequested(),(_u(i)||FF(i)||JF(i)||j_(i)||1===i.kind)&&W_e(i,e,t,n),r_(i)&&uF(i.parent)&&XD(i.parent.left)&&W_e(i.parent.left,e,t,n),(DF(i)||tE(i))&&V_e(i.statements.end,e,t,n),(u_(i)||QF(i))&&V_e(i.members.end,e,t,n);const a=function(e,t){switch(e.kind){case 241:if(r_(e.parent))return function(e,t,n){const r=function(e,t,n){if($b(e.parameters,n)){const t=AX(e,21,n);if(t)return t}return AX(t,19,n)}(e,t,n),i=AX(t,20,n);return r&&i&&H_e(r,i,e,n,219!==e.kind)}(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return _(e.parent);case 258:const n=e.parent;if(n.tryBlock===e)return _(e.parent);if(n.finallyBlock===e){const e=AX(n,98,t);if(e)return _(e)}default:return K_e(DQ(e,t),"code")}case 268:return _(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return _(e);case 189:return _(e,!1,!DD(e.parent),23);case 296:case 297:return u(e.statements);case 210:return l(e);case 209:return l(e,23);case 284:return o(e);case 288:return a(e);case 285:case 286:return s(e.attributes);case 228:case 15:return c(e);case 207:return _(e,!1,!HD(e.parent),23);case 219:return i(e);case 213:return r(e);case 217:return d(e);case 275:case 279:case 300:return n(e)}function n(e){if(!e.elements.length)return;const n=AX(e,19,t),r=AX(e,20,t);return n&&r&&!Hb(n.pos,r.pos,t)?H_e(n,r,e,t,!1,!1):void 0}function r(e){if(!e.arguments.length)return;const n=AX(e,21,t),r=AX(e,22,t);return n&&r&&!Hb(n.pos,r.pos,t)?H_e(n,r,e,t,!1,!0):void 0}function i(e){if(DF(e.body)||nF(e.body)||Hb(e.body.getFullStart(),e.body.getEnd(),t))return;return K_e($s(e.body.getFullStart(),e.body.getEnd()),"code",DQ(e))}function o(e){const n=$s(e.openingElement.getStart(t),e.closingElement.getEnd()),r=e.openingElement.tagName.getText(t);return K_e(n,"code",n,!1,"<"+r+">...</"+r+">")}function a(e){const n=$s(e.openingFragment.getStart(t),e.closingFragment.getEnd());return K_e(n,"code",n,!1,"<>...</>")}function s(e){if(0!==e.properties.length)return $_e(e.getStart(t),e.getEnd(),"code")}function c(e){if(15!==e.kind||0!==e.text.length)return $_e(e.getStart(t),e.getEnd(),"code")}function l(e,t=19){return _(e,!1,!KD(e.parent)&&!YD(e.parent),t)}function _(n,r=!1,i=!0,o=19,a=(19===o?20:24)){const s=AX(e,o,t),c=AX(e,a,t);return s&&c&&H_e(s,c,n,t,r,i)}function u(e){return e.length?K_e(PQ(e),"code"):void 0}function d(e){if(Hb(e.getStart(),e.getEnd(),t))return;return K_e($s(e.getStart(),e.getEnd()),"code",DQ(e))}}(i,e);a&&n.push(a),r--,YD(i)?(r++,s(i.expression),r--,i.arguments.forEach(s),null==(o=i.typeArguments)||o.forEach(s)):AF(i)&&i.elseStatement&&AF(i.elseStatement)?(s(i.expression),s(i.thenStatement),r++,s(i.elseStatement),r--):i.forEachChild(s),r++}}(e,t,n),function(e,t){const n=[],r=e.getLineStarts();for(const i of r){const r=e.getLineEndOfPosition(i),o=U_e(e.text.substring(i,r));if(o&&!uQ(e,i))if(o.isStart){const t=$s(e.text.indexOf("//",i),r);n.push(K_e(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(J_e,{collectElements:()=>z_e});var q_e=/^#(end)?region(.*)\r?$/;function U_e(e){if(!Kt(e=e.trimStart(),"//"))return null;e=e.slice(2).trim();const t=q_e.exec(e);return t?{isStart:!t[1],name:t[2].trim()}:void 0}function V_e(e,t,n,r){const i=_s(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(U_e(c.slice(t,_))){l(),s=0;break}0===s&&(o=t),a=_,s++;break;case 3:l(),r.push($_e(t,_,"comment")),s=0;break;default:_n.assertNever(e)}function l(){s>1&&r.push($_e(o,a,"comment"))}l()}function W_e(e,t,n,r){DN(e)||V_e(e.pos,t,n,r)}function $_e(e,t,n){return K_e($s(e,t),n)}function H_e(e,t,n,r,i=!1,o=!0){return K_e($s(o?e.getFullStart():e.getStart(r),t.getEnd()),"code",DQ(n,r),i)}function K_e(e,t,n=e,r=!1,i="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:i,autoCollapse:r}}var G_e={};function X_e(e,t,n,r){const i=UX(VX(t,n));if(tue(i)){const n=function(e,t,n,r,i){const o=t.getSymbolAtLocation(e);if(!o){if(ju(e)){const r=RX(e,t);if(r&&(128&r.flags||1048576&r.flags&&h(r.types,(e=>!!(128&e.flags)))))return Y_e(e.text,e.text,"string","",e,n)}else if(aX(e)){const t=Gd(e);return Y_e(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 Z_e(_a.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(VN(e)&&"default"===e.escapedText&&o.parent&&1536&o.parent.flags)return;if(ju(e)&&bg(e))return i.allowRenameOfImportPath?function(e,t,n){if(!Cs(e.text))return Z_e(_a.You_cannot_rename_a_module_via_a_global_import);const r=n.declarations&&y(n.declarations,WE);if(!r)return;const i=jt(e.text,"/index")||jt(e.text,"/index.js")?void 0:Mt(VS(r.fileName),"/index"),o=void 0===i?r.fileName:i,a=void 0===i?"module":"directory",s=e.text.lastIndexOf("/")+1,c=Ws(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=>mE(e)));e&&!e.propertyName&&(t=n.getAliasedSymbol(t))}const{declarations:i}=t;if(!i)return;const o=Q_e(e.path);if(void 0===o)return V(i,(e=>zZ(e.getSourceFile().path)))?_a.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const e of i){const t=Q_e(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 _a.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}return}(n,o,t,i);if(s)return Z_e(s);const c=Bue.getSymbolKind(t,o,e),l=UY(e)||jh(e)&&167===e.parent.kind?Fy(qh(e)):void 0,_=l||t.symbolToString(o),u=l||t.getFullyQualifiedName(o);return Y_e(_,u,c,Bue.getSymbolModifiers(t,o),e,n)}(i,e.getTypeChecker(),t,e,r);if(n)return n}return Z_e(_a.You_cannot_rename_this_element)}function Q_e(e){const t=Io(e),n=t.lastIndexOf("node_modules");if(-1!==n)return t.slice(0,n+2)}function Y_e(e,t,n,r,i,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:r,triggerSpan:eue(i,o)}}function Z_e(e){return{canRename:!1,localizedErrorMessage:Wx(e)}}function eue(e,t){let n=e.getStart(t),r=e.getWidth(t);return ju(e)&&(n+=1,r-=2),Ws(n,r)}function tue(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return pX(e);default:return!1}}n(G_e,{getRenameInfo:()=>X_e,nodeIsEligibleForRename:()=>tue});var nue={};function rue(e,t,n,r,i){const o=e.getTypeChecker(),a=GX(t,n);if(!a)return;const s=!!r&&"characterTyped"===r.kind;if(s&&(tQ(t,n,a)||uQ(t,n)))return;const c=!!r&&"invoked"===r.kind,l=function(e,t,n,r,i){for(let o=e;!WE(o)&&(i||!DF(o));o=o.parent){_n.assert(Qb(o.parent,o),"Not a subspan",(()=>`Child: ${_n.formatSyntaxKind(o.kind)}, parent: ${_n.formatSyntaxKind(o.parent.kind)}`));const e=cue(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(!j_(t))return!1;const r=t.getChildren(n);switch(e.kind){case 21:return k(r,e);case 28:{const t=IX(e);return!!t&&k(r,t)}case 30:return iue(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&&!iue(i,r,VN(a)?a.parent:a))return;const s=lQ(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?xue(_.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=[kue(e,s,a,vue(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=yue(e.invocation),i=XD(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=>xue(a,a[0],e,t,n,!0)))}))))}(l,e,i):void 0}function iue(e,t,n){const r=e.getFullStart();let i=e.parent;for(;i;){const e=QX(r,t,i,!0);if(e)return Qb(n,e);i=i.parent}return _n.fail("Could not find preceding token")}function oue(e,t,n,r){const i=sue(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 aue(e,t,n,r){const i=function(e,t,n){if(30===e.kind||21===e.kind)return{list:hue(e.parent,e,t),argumentIndex:0};{const t=IX(e);return t&&{list:t,argumentIndex:pue(n,t,e)}}}(e,n,r);if(!i)return;const{list:o,argumentIndex:a}=i,s=function(e,t){return fue(e,t,void 0)}(r,o),c=function(e,t){const n=e.getFullStart(),r=Qa(t.text,e.getEnd(),!1);return Ws(n,r-n)}(o,n);return{list:o,argumentIndex:a,argumentCount:s,argumentsSpan:c}}function sue(e,t,n,r){const{parent:i}=e;if(j_(i)){const t=i,o=aue(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(EN(e)&&eF(i))return bQ(e,t,n)?mue(i,0,n):void 0;if(PN(e)&&215===i.parent.kind){const r=i,o=r.parent;_n.assert(228===r.kind);return mue(o,bQ(e,t,n)?0:1,n)}if(wF(i)&&eF(i.parent.parent)){const r=i,o=i.parent.parent;if(IN(e)&&!bQ(e,t,n))return;const a=function(e,t,n,r){if(_n.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),jl(t))return bQ(t,n,r)?0:e+2;return e+1}(r.parent.templateSpans.indexOf(r),e,t,n);return mue(o,a,n)}if(bu(i)){const e=i.attributes.pos;return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:Ws(e,Qa(n.text,i.attributes.end,!1)-e),argumentIndex:0,argumentCount:1}}{const t=_Q(e,n);if(t){const{called:r,nTypeArguments:i}=t;return{isTypeParameterList:!0,invocation:{kind:1,called:r},argumentsSpan:$s(r.getStart(n),e.end),argumentIndex:i,argumentCount:i+1}}return}}function cue(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 uc(e.parent,(e=>!!cD(e)||!(HD(e)||WD(e)||$D(e))&&"quit"))}}(e);if(void 0===i)return;const o=function(e,t,n,r){const{parent:i}=e;switch(i.kind){case 217:case 174:case 218:case 219:const n=aue(e,0,t,r);if(!n)return;const{argumentIndex:o,argumentCount:a,argumentsSpan:s}=n,c=pD(i)?r.getContextualTypeForObjectLiteralElement(i):r.getContextualType(i);return c&&{contextualType:c,argumentIndex:o,argumentCount:a,argumentsSpan:s};case 226:{const t=lue(i),n=r.getContextualType(t),o=21===e.kind?0:_ue(i)-1,a=_ue(t);return n&&{contextualType:n,argumentIndex:o,argumentCount:a,argumentsSpan:DQ(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:uue(u)},argumentsSpan:l,argumentIndex:s,argumentCount:c}}(e,0,n,r)||sue(e,t,n,r)}function lue(e){return uF(e.parent)?lue(e.parent):e}function _ue(e){return uF(e.left)?_ue(e.left)+1:2}function uue(e){return"__type"===e.name&&d(e.declarations,(e=>{var t;return SD(e)?null==(t=et(e.parent,au))?void 0:t.symbol:void 0}))||e}function due(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 pue(e,t,n){return fue(e,t,n)}function fue(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;mF(t)?(i+=due(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 mue(e,t,n){const r=EN(e.template)?1:e.template.templateSpans.length+1;return 0!==t&&_n.assertLessThan(t,r),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:gue(e,n),argumentIndex:t,argumentCount:r}}function gue(e,t){const n=e.template,r=n.getStart();let i=n.getEnd();if(228===n.kind){0===ye(n.templateSpans).literal.getFullWidth()&&(i=Qa(t.text,i,!1))}return Ws(r,i-r)}function hue(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 yue(e){return 0===e.kind?um(e.node):e.called}function vue(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}n(nue,{getArgumentInfoForCompletions:()=>oue,getSignatureHelpItems:()=>rue});var bue=70246400;function xue(e,t,{isTypeParameterList:n,argumentCount:r,argumentsSpan:i,invocation:o,argumentIndex:a},c,l,_){var u;const d=vue(o),p=2===o.kind?o.symbol:l.getSymbolAtLocation(yue(o))||_&&(null==(u=t.declaration)?void 0:u.symbol),f=p?zY(l,p,_?c:void 0,void 0):s,m=D(e,(e=>function(e,t,n,r,i,o){const a=(n?Cue:wue)(e,r,i,o);return D(a,(({isVariadic:n,parameters:o,prefix:a,suffix:s})=>{const c=[...t,...a],l=[...s,...Tue(e,i,r)],_=e.getDocumentationComment(r),u=e.getJsDocTags();return{isVariadic:n,prefixDisplayParts:c,suffixDisplayParts:l,separatorDisplayParts:Sue,parameters:o,documentation:_,tags:u}}))}(e,f,n,l,d,c)));let g=0,h=0;for(let n=0;n<m.length;n++){const i=m[n];if(e[n]===t&&(g=h,i.length>1)){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));-1<e&&e<v.parameters.length-1?y.argumentIndex=v.parameters.length:y.argumentIndex=Math.min(y.argumentIndex,v.parameters.length-1)}return y}function kue(e,t,n,r,i){const o=zY(n,e),a=_U(),s=t.map((e=>Nue(e,n,r,i,a))),c=e.getDocumentationComment(n),l=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,CY(30)],suffixDisplayParts:[CY(32)],separatorDisplayParts:Sue,parameters:s,documentation:c,tags:l}}var Sue=[CY(28),SY()];function Tue(e,t,n){return BY((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 Cue(e,t,n,r){const i=(e.target||e).typeParameters,o=_U(),a=(i||s).map((e=>Nue(e,t,n,r,o))),c=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,bue)]:[];return t.getExpandedParameters(e).map((e=>{const i=ZC.createNodeArray([...c,...D(e,(e=>t.symbolToParameterDeclaration(e,n,bue)))]),s=BY((e=>{o.writeList(2576,i,r,e)}));return{isVariadic:!1,parameters:a,prefix:[CY(30)],suffix:[CY(32),...s]}}))}function wue(e,t,n,r){const i=_U(),o=BY((o=>{if(e.typeParameters&&e.typeParameters.length){const a=ZC.createNodeArray(e.typeParameters.map((e=>t.typeParameterToDeclaration(e,n,bue))));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],Gu))?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=BY((o=>{const a=t.symbolToParameterDeclaration(e,n,bue);i.writeNode(4,a,r,o)})),a=t.isOptionalParameter(e.valueDeclaration),s=Gu(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,CY(21)],suffix:[CY(22)]})))}function Nue(e,t,n,r,i){const o=BY((o=>{const a=t.typeParameterToDeclaration(e,n,bue);i.writeNode(4,a,r,o)}));return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var Due={};function Fue(e,t){var n,r;let i={textSpan:$s(t.getFullStart(),t.getEnd())},o=t;e:for(;;){const i=Aue(o);if(!i.length)break;for(let c=0;c<i.length;c++){const l=i[c-1],_=i[c],u=i[c+1];if(Jd(_,t,!0)>e)break e;const d=ve(us(t.text,_.end));if(d&&2===d.kind&&s(d.pos,d.end),Eue(t,e,_)){if(Z_(_)&&o_(o)&&!Hb(_.getStart(t),_.getEnd(),t)&&a(_.getStart(t),_.getEnd()),DF(_)||wF(_)||PN(_)||IN(_)||l&&PN(l)||KF(_)&&FF(o)||LP(_)&&KF(o)||HF(_)&&LP(o)&&1===i.length||HE(_)||lP(_)||cP(_)){o=_;break}if(wF(o)&&u&&Rl(u)){a(_.getFullStart()-2,u.getStart()+1)}const e=LP(_)&&jue(l)&&Rue(u)&&!Hb(l.getStart(),u.getStart(),t);let s=e?l.getEnd():_.getStart();const c=e?u.getStart():Mue(t,_);if(Du(_)&&(null==(n=_.jsDoc)?void 0:n.length)&&a(me(_.jsDoc).getStart(),c),LP(_)){const e=_.getChildren()[0];e&&Du(e)&&(null==(r=e.jsDoc)?void 0:r.length)&&e.getStart()!==_.pos&&(s=Math.min(s,me(e.jsDoc).getStart()))}a(s,c),(NN(_)||R_(_))&&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=$s(t,n);(!i||!dY(r,i.textSpan)&&zs(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 Eue(e,t,n){if(_n.assert(n.pos<=t),t<n.end)return!0;return n.getEnd()===t&&VX(e,t).pos<n.end}n(Due,{getSmartSelectionRange:()=>Fue});var Pue=Zt(oE,iE);function Aue(e){var t;if(WE(e))return Iue(e.getChildAt(0).getChildren(),Pue);if(JD(e)){const[t,...n]=e.getChildren(),r=_n.checkDefined(n.pop());_n.assertEqual(t.kind,19),_n.assertEqual(r.kind,20);const i=Iue(n,(t=>t===e.readonlyToken||148===t.kind||t===e.questionToken||58===t.kind));return[t,Lue(Oue(Iue(i,(({kind:e})=>23===e||168===e||24===e)),(({kind:e})=>59===e))),r]}if(_D(e)){const n=Iue(e.getChildren(),(t=>t===e.name||k(e.modifiers,t))),r=320===(null==(t=n[0])?void 0:t.kind)?n[0]:void 0,i=Oue(r?n.slice(1):n,(({kind:e})=>59===e));return r?[r,Lue(i)]:i}if(cD(e)){const t=Iue(e.getChildren(),(t=>t===e.dotDotDotToken||t===e.name));return Oue(Iue(t,(n=>n===t[0]||n===e.questionToken)),(({kind:e})=>64===e))}return HD(e)?Oue(e.getChildren(),(({kind:e})=>64===e)):e.getChildren()}function Iue(e,t){const n=[];let r;for(const i of e)t(i)?(r=r||[],r.push(i)):(r&&(n.push(Lue(r)),r=void 0),n.push(i));return r&&n.push(Lue(r)),n}function Oue(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?Lue(i):void 0,o,c.length?Lue(c):void 0]);return s?l.concat(a):l}function Lue(e){return _n.assertGreaterThanOrEqual(e.length,1),wT(dI.createSyntaxList(e),e[0].pos,ye(e).end)}function jue(e){const t=e&&e.kind;return 19===t||23===t||21===t||286===t}function Rue(e){const t=e&&e.kind;return 20===t||24===t||22===t||287===t}function Mue(e,t){switch(t.kind){case 341:case 338:case 348:case 346:case 343:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var Bue={};n(Bue,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>$ue,getSymbolKind:()=>zue,getSymbolModifiers:()=>Vue});var Jue=70246400;function zue(e,t,n){const r=que(e,t,n);if(""!==r)return r;const i=sx(t);return 32&i?$u(t,231)?"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 que(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&&V_(n)||uv(n))return"parameter";const i=sx(t);if(3&i)return bY(t)?"parameter":t.valueDeclaration&&of(t.valueDeclaration)?"const":t.valueDeclaration&&rf(t.valueDeclaration)?"using":t.valueDeclaration&&nf(t.valueDeclaration)?"await using":_(t.declarations,sf)?"let":Hue(t)?"local var":"var";if(16&i)return Hue(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 Uue(e){if(e.declarations&&e.declarations.length){const[t,...n]=e.declarations,r=fQ(t,l(n)&&t0(t)&&V(n,(e=>!t0(e)))?65536:0);if(r)return r.split(",")}return[]}function Vue(e,t){if(!t)return"";const n=new Set(Uue(t));if(2097152&t.flags){const r=e.getAliasedSymbol(t);r!==t&&_(Uue(r),(e=>{n.add(e)}))}return 16777216&t.flags&&n.add("optional"),n.size>0?Ie(n.values()).join(","):""}function Wue(e,t,n,r,i,o,a,c,l){var u;const p=[];let f=[],m=[];const g=sx(t);let h=1&a?que(e,t,i):"",v=!1;const b=110===i.kind&&xm(i)||uv(i);let x,S,T=!1;const C=void 0!==l?{couldUnfoldMore:!1}:void 0;if(110===i.kind&&!b)return{displayParts:[TY(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==h||32&g||2097152&g){if("getter"===h||"setter"===h){const e=y(t.declarations,(e=>e.name===i));if(e)switch(e.kind){case 177:h="getter";break;case 178:h="setter";break;case 172:h="accessor";break;default:_n.assertNever(e)}else h="property"}let n,a;if(o??(o=b?e.getTypeAtLocation(i):e.getTypeOfSymbolAtLocation(t,i)),i.parent&&211===i.parent.kind){const e=i.parent.name;(e===i||e&&0===e.getFullWidth())&&(i=i.parent)}if(j_(i)?a=i:(WG(i)||$G(i)||i.parent&&(bu(i.parent)||eF(i.parent))&&r_(t.valueDeclaration))&&(a=i.parent),a){n=e.getResolvedSignature(a);const i=214===a.kind||YD(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&g?(h="constructor",P(o.symbol,h)):2097152&g?(h="alias",A(h),p.push(SY()),i&&(4&n.flags&&(p.push(TY(128)),p.push(SY())),p.push(TY(105)),p.push(SY())),E(t)):P(t,h),h){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":p.push(CY(59)),p.push(SY()),16&hx(o)||!o.symbol||(ae(p,zY(e,o.symbol,r,void 0,5)),p.push(MY())),i&&(4&n.flags&&(p.push(TY(128)),p.push(SY())),p.push(TY(105)),p.push(SY())),I(n,s,262144);break;default:I(n,s)}v=!0,T=s.length>1}}else if(dX(i)&&!(98304&g)||137===i.kind&&176===i.parent.kind){const r=i.parent;if(t.declarations&&y(t.declarations,(e=>e===(137===i.kind?r.parent:r)))){const i=176===r.kind?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();n=e.isImplementationOfOverload(r)?i[0]:e.getSignatureFromDeclaration(r),176===r.kind?(h="constructor",P(o.symbol,h)):P(179!==r.kind||2048&o.symbol.flags||4096&o.symbol.flags?t:o.symbol,h),n&&I(n,i),v=!0,T=i.length>1}}}if(32&g&&!v&&!b&&(D(),$u(t,231)?A("local class"):p.push(TY(86)),p.push(SY()),E(t),O(t,n)),64&g&&2&a&&(N(),p.push(TY(120)),p.push(SY()),E(t),O(t,n)),524288&g&&2&a&&(N(),p.push(TY(156)),p.push(SY()),E(t),O(t,n),p.push(SY()),p.push(wY(64)),p.push(SY()),ae(p,JY(e,i.parent&&kl(i.parent)?e.getTypeAtLocation(i.parent):e.getDeclaredTypeOfSymbol(t),r,8388608,l,C))),384&g&&(N(),V(t.declarations,(e=>ZF(e)&&ef(e)))&&(p.push(TY(87)),p.push(SY())),p.push(TY(94)),p.push(SY()),E(t)),1536&g&&!b){N();const e=$u(t,267),n=e&&e.name&&80===e.name.kind;p.push(TY(n?145:144)),p.push(SY()),E(t)}if(262144&g&&2&a)if(N(),p.push(CY(21)),p.push(EY("type parameter")),p.push(CY(22)),p.push(SY()),E(t),t.parent)F(),E(t.parent,r),O(t.parent,r);else{const r=$u(t,168);if(void 0===r)return _n.fail();const i=r.parent;if(i)if(r_(i)){F();const t=e.getSignatureFromDeclaration(i);180===i.kind?(p.push(TY(105)),p.push(SY())):179!==i.kind&&i.name&&E(i.symbol),ae(p,qY(e,t,n,32))}else YF(i)&&(F(),p.push(TY(156)),p.push(SY()),E(i.symbol),O(i.symbol,n))}if(8&g){h="enum member",P(t,"enum member");const n=null==(u=t.declarations)?void 0:u[0];if(306===(null==n?void 0:n.kind)){const t=e.getConstantValue(n);void 0!==t&&(p.push(SY()),p.push(wY(64)),p.push(SY()),p.push(kY(rp(t),"number"==typeof t?7:8)))}}if(2097152&t.flags){if(N(),!v||0===f.length&&0===m.length){const n=e.getAliasedSymbol(t);if(n!==t&&n.declarations&&n.declarations.length>0){const i=n.declarations[0],s=Cc(i);if(s&&!v){const c=cp(i)&&Dv(i,128),l="default"!==t.name&&!c,_=Wue(e,n,yd(i),r,s,o,a,l?t:n);p.push(..._.displayParts),p.push(MY()),x=_.documentation,S=_.tags}else x=n.getContextualDocumentationComment(i,e),S=n.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:p.push(TY(95)),p.push(SY()),p.push(TY(145));break;case 277:p.push(TY(95)),p.push(SY()),p.push(TY(t.declarations[0].isExportEquals?64:90));break;case 281:p.push(TY(95));break;default:p.push(TY(102))}p.push(SY()),E(t),_(t.declarations,(t=>{if(271===t.kind){const n=t;if(Tm(n))p.push(SY()),p.push(wY(64)),p.push(SY()),p.push(TY(149)),p.push(CY(21)),p.push(kY(Gd(Cm(n)),8)),p.push(CY(22));else{const t=e.getSymbolAtLocation(n.moduleReference);t&&(p.push(SY()),p.push(wY(64)),p.push(SY()),E(t,r))}return!0}}))}if(!v)if(""!==h){if(o)if(b?(N(),p.push(TY(110))):P(t,h),"property"===h||"accessor"===h||"getter"===h||"setter"===h||"JSX attribute"===h||3&g||"local var"===h||"index"===h||"using"===h||"await using"===h||b){if(p.push(CY(59)),p.push(SY()),o.symbol&&262144&o.symbol.flags&&"index"!==h){const t=BY((t=>{const n=e.typeParameterToDeclaration(o,r,Jue,void 0,void 0,l);w().writeNode(4,n,yd(pc(r)),t)}));ae(p,t)}else ae(p,JY(e,o,r,void 0,l,C));if(Gu(t)&&t.links.target&&Gu(t.links.target)&&t.links.target.links.tupleLabelDeclaration){const e=t.links.target.links.tupleLabelDeclaration;_n.assertNode(e.name,VN),p.push(SY()),p.push(CY(21)),p.push(EY(gc(e.name))),p.push(CY(22))}}else if(16&g||8192&g||16384&g||131072&g||98304&g||"method"===h){const e=o.getNonNullableType().getCallSignatures();e.length&&(I(e[0],e),T=e.length>1)}}else h=zue(e,t,i);if(0!==f.length||T||(f=t.getContextualDocumentationComment(r,e)),0===f.length&&4&g&&t.parent&&t.declarations&&_(t.parent.declarations,(e=>307===e.kind)))for(const n of t.declarations){if(!n.parent||226!==n.parent.kind)continue;const t=e.getSymbolAtLocation(n.parent.right);if(t&&(f=t.getDocumentationComment(e),m=t.getJsDocTags(e),f.length>0))break}if(0===f.length&&VN(i)&&t.valueDeclaration&&HD(t.valueDeclaration)){const n=t.valueDeclaration,r=n.parent,i=n.propertyName||n.name;if(VN(i)&&WD(r)){const t=qh(i),n=e.getTypeAtLocation(r);f=d(n.isUnion()?n.types:[n],(n=>{const r=n.getProperty(t);return r?r.getDocumentationComment(e):void 0}))||s}}return 0!==m.length||T||(m=t.getContextualJsDocTags(r,e)),0===f.length&&x&&(f=x),0===m.length&&S&&(m=S),{displayParts:p,documentation:f,symbolKind:h,tags:0===m.length?void 0:m,canIncreaseVerbosityLevel:null==C?void 0:C.couldUnfoldMore};function w(){return _U()}function N(){p.length&&p.push(MY()),D()}function D(){c&&(A("alias"),p.push(SY()))}function F(){p.push(SY()),p.push(TY(103)),p.push(SY())}function E(r,i){let o;c&&r===t&&(r=c),"index"===h&&(o=e.getIndexInfosOfIndexSymbol(r));let a=[];131072&r.flags&&o?(r.parent&&(a=zY(e,r.parent)),a.push(CY(23)),o.forEach(((t,n)=>{a.push(...JY(e,t.keyType)),n!==o.length-1&&(a.push(SY()),a.push(CY(52)),a.push(SY()))})),a.push(CY(24))):a=zY(e,r,i||n,void 0,7),ae(p,a),16777216&t.flags&&p.push(CY(58))}function P(e,t){N(),t&&(A(t),e&&!V(e.declarations,(e=>iF(e)||(rF(e)||gF(e))&&!e.name))&&(p.push(SY()),E(e)))}function A(e){switch(e){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":return void p.push(FY(e));default:return p.push(CY(21)),p.push(FY(e)),void p.push(CY(22))}}function I(t,n,i=0){ae(p,qY(e,t,r,32|i)),n.length>1&&(p.push(SY()),p.push(CY(21)),p.push(wY(40)),p.push(kY((n.length-1).toString(),7)),p.push(SY()),p.push(EY(2===n.length?"overload":"overloads")),p.push(CY(22))),f=t.getDocumentationComment(e),m=t.getJsDocTags(),n.length>1&&0===f.length&&0===m.length&&(f=n[0].getDocumentationComment(e),m=n[0].getJsDocTags().filter((e=>"deprecated"!==e.name)))}function O(t,n){const r=BY((r=>{const i=e.symbolToTypeParameterDeclarations(t,n,Jue);w().writeList(53776,i,yd(pc(n)),r)}));ae(p,r)}}function $ue(e,t,n,r,i,o=UG(i),a,s){return Wue(e,t,n,r,i,void 0,o,a,s)}function Hue(e){return!e.parent&&_(e.declarations,(e=>{if(218===e.kind)return!0;if(260!==e.kind&&262!==e.kind)return!1;for(let t=e.parent;!Mf(t);t=t.parent)if(307===t.kind||268===t.kind)return!1;return!0}))}var Kue={};function Gue(e){const t=e.__pos;return _n.assert("number"==typeof t),t}function Xue(e,t){_n.assert("number"==typeof t),e.__pos=t}function Que(e){const t=e.__end;return _n.assert("number"==typeof t),t}function Yue(e,t){_n.assert("number"==typeof t),e.__end=t}n(Kue,{ChangeTracker:()=>_de,LeadingTriviaOption:()=>Zue,TrailingTriviaOption:()=>ede,applyChanges:()=>fde,assignPositionsToNode:()=>hde,createWriter:()=>vde,deleteNode:()=>xde,getAdjustedEndPosition:()=>ade,isThisTypeAnnotatable:()=>cde,isValidLocationToAddComment:()=>bde});var Zue=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(Zue||{}),ede=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(ede||{});function tde(e,t){return Qa(e,t,!1,!0)}var nde={leadingTriviaOption:0,trailingTriviaOption:0};function rde(e,t,n,r){return{pos:ide(e,t,r),end:ade(e,n,r)}}function ide(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=vX(n,e);return xX(t,r)?r:n}if(2===a){const n=yf(t,e.text);if(null==n?void 0:n.length)return vX(n[0].pos,e)}const s=t.getFullStart(),c=t.getStart(e);if(s===c)return c;const l=vX(s,e);if(vX(c,e)===l)return 1===a?s:c;if(r){const t=(null==(i=_s(e.text,s))?void 0:i[0])||(null==(o=us(e.text,s))?void 0:o[0]);if(t)return Qa(e.text,t.end,!0,!0)}const _=s>0?1:0;let u=kd(nv(e,l)+_,e);return u=tde(e.text,u),kd(nv(e,u),e)}function ode(e,t,n){const{end:r}=t,{trailingTriviaOption:i}=n;if(2===i){const n=us(e.text,r);if(n){const r=nv(e,t.end);for(const t of n){if(2===t.kind||nv(e,t.pos)>r)break;if(nv(e,t.end)>r)return Qa(e.text,t.end,!0,!0)}}}}function ade(e,t,n){var r;const{end:i}=t,{trailingTriviaOption:o}=n;if(0===o)return i;if(1===o){const t=$(us(e.text,i),_s(e.text,i)),n=null==(r=null==t?void 0:t[t.length-1])?void 0:r.end;return n||i}const a=ode(e,t,n);if(a)return a;const s=Qa(e.text,i,!0);return s===i||2!==o&&!Va(e.text.charCodeAt(s-1))?i:s}function sde(e,t){return!!t&&!!e.parent&&(28===t.kind||27===t.kind&&210===e.parent.kind)}function cde(e){return rF(e)||GF(e)}var lde,_de=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(RY(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:AQ(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,rde(e,t,t,n))}deleteNodes(e,t,n={leadingTriviaOption:1},r){for(const i of t){const t=ide(e,i,n,r),o=ade(e,i,n);this.deleteRange(e,{pos:t,end:o}),r=!!ode(e,i,n)}}deleteModifier(e,t){this.deleteRange(e,{pos:t.getStart(e),end:Qa(e.text,t.end,!0)})}deleteNodeRange(e,t,n,r={leadingTriviaOption:1}){const i=ide(e,t,r),o=ade(e,n,r);this.deleteRange(e,{pos:i,end:o})}deleteNodeRangeExcludingEnd(e,t,n,r={leadingTriviaOption:1}){const i=ide(e,t,r),o=void 0===n?e.text.length:ide(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=nde){this.replaceRange(e,rde(e,t,t,r),n,r)}replaceNodeRange(e,t,n,r,i=nde){this.replaceRange(e,rde(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=nde){this.replaceRangeWithNodes(e,rde(e,t,t,r),n,r)}replaceNodeWithText(e,t,n){this.replaceRangeWithText(e,rde(e,t,t,nde),n)}replaceNodeRangeWithNodes(e,t,n,r,i=nde){this.replaceRangeWithNodes(e,rde(e,t,n,i),r,i)}nodeHasTrailingComment(e,t,n=nde){return!!ode(e,t,n)}nextCommaToken(e,t){const n=XX(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,Ib(t),n,r)}insertNodesAt(e,t,n,r={}){this.replaceRangeWithNodes(e,Ib(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(!df(n))break;t=n}let n=0;const r=e.text;if(t)return n=t.end,c(),n;const i=ds(r);void 0!==i&&(n=i.length,c());const o=_s(r,n);if(!o)return n;let a,s;for(const t of o){if(3===t.kind){if(Md(r,t.pos)){a={range:t,pinnedOrTripleSlash:!0};continue}}else if(Rd(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(s<e.getLineAndCharacterOfPosition(t.end).line+2)break}a={range:t,pinnedOrTripleSlash:!1}}a&&(n=a.range.end,c());return n;function c(){if(n<r.length){const e=r.charCodeAt(n);Va(e)&&(n++,n<r.length&&13===e&&10===r.charCodeAt(n)&&n++)}}}(e),i={prefix:0===r?void 0:this.newLineCharacter,suffix:(Va(e.text.charCodeAt(r))?"":this.newLineCharacter)+(n?this.newLineCharacter:"")};Xe(t)?this.insertNodesAt(e,r,t,i):this.insertNodeAt(e,r,t,i)}insertNodesAtEndOfFile(e,t,n){this.insertAtEndOfFile(e,t,n)}insertAtEndOfFile(e,t,n){const r=e.end+1,i={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(n?this.newLineCharacter:"")};this.insertNodesAt(e,r,t,i)}insertStatementsInNewFile(e,t,n){this.newFileChanges||(this.newFileChanges=We()),this.newFileChanges.add(e,{oldFile:n,statements:t})}insertFirstParameter(e,t,n){const r=pe(t);r?this.insertNodeBefore(e,r,n):this.insertNodeAt(e,t.pos,n)}insertNodeBefore(e,t,n,r=!1,i={}){this.insertNodeAt(e,ide(e,t,i),n,this.getOptionsForInsertNodeBefore(t,n,r))}insertNodesBefore(e,t,n,r=!1,i={}){this.insertNodesAt(e,ide(e,t,i),n,this.getOptionsForInsertNodeBefore(t,me(n),r))}insertModifierAt(e,t,n,r={}){this.insertNodeAt(e,t,ZC.createToken(n),r)}insertModifierBefore(e,t,n){return this.insertModifierAt(e,n.getStart(e),t,{suffix:" "})}insertCommentBeforeLine(e,t,n,r){const i=kd(t,e),o=KY(e.text,i),a=bde(e,o),s=WX(e,a?o:n),c=e.text.slice(i,o),l=`${a?"":this.newLineCharacter}//${r}${this.newLineCharacter}${c}`;this.insertText(e,s.getStart(e),l)}insertJsdocCommentBefore(e,t,n){const r=t.getStart(e);if(t.jsDoc)for(const n of t.jsDoc)this.deleteRange(e,{pos:vX(n.getStart(e),e),end:ade(e,n,{})});const i=GY(e.text,r-1),o=e.text.slice(i,r);this.insertNodeAt(e,r,n,{suffix:this.newLineCharacter+o})}createJSDocText(e,t){const n=A(t.jsDoc,(e=>Ye(e.comment)?ZC.createJSDocText(e.comment):e.comment)),r=ve(t.jsDoc);return r&&Hb(r.pos,r.end,e)&&0===l(n)?void 0:ZC.createNodeArray(g(n,ZC.createJSDocText("\n")))}replaceJSDocComment(e,t,n){this.insertJsdocCommentBefore(e,function(e){if(219!==e.kind)return e;const t=172===e.parent.kind?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}(t),ZC.createJSDocComment(this.createJSDocText(e,t),ZC.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 341:{const n=e,r=t;return VN(n.name)&&VN(r.name)&&n.name.escapedText===r.name.escapedText?ZC.createJSDocParameterTag(void 0,r.name,!1,r.typeExpression,r.isNameFirst,n.comment):void 0}case 342:return ZC.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 344:return ZC.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,Ib(t),n)}tryInsertTypeAnnotation(e,t,n){let r;if(r_(t)){if(r=AX(t,22,e),!r){if(!iF(t))return!1;r=me(t.parameters)}}else r=(260===t.kind?t.exclamationToken:t.questionToken)??t.name;return this.insertNodeAt(e,r.end,n,{prefix:": "}),!0}tryInsertThisTypeAnnotation(e,t,n){const r=AX(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=(AX(t,21,e)||me(t.parameters)).getStart(e);this.insertNodesAt(e,r,n,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(e,t,n){return pu(e)||__(e)?{suffix:n?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:HF(e)?{suffix:", "}:cD(e)?cD(t)?{suffix:", "}:{}:NN(e)&&oE(e.parent)||fE(e)?{suffix:", "}:mE(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=>PF(e)&&cf(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,ZC.createBlock(n,!0))}insertNodeAtEndOfScope(e,t,n){const r=ide(e,t.getLastToken(),{});this.insertNodeAt(e,r,n,{prefix:Va(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,pde(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,r))}guessIndentationFromExistingMembers(e,t){let n,r=t;for(const i of pde(t)){if(Jb(r,i,e))return;const t=i.getStart(e),o=Sde.SmartIndenter.findFirstNonWhitespaceColumn(vX(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 Sde.SmartIndenter.findFirstNonWhitespaceColumn(vX(n,e),n,e,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(e,t,n){const r=0===pde(t).length,i=!this.classesWithNodesInsertedAtStart.has($B(t));i&&this.classesWithNodesInsertedAtStart.set($B(t),{node:t,sourceFile:e});const o=GD(t)&&(!Zp(e)||!r);return{indentation:n,prefix:(GD(t)&&Zp(e)&&r&&!i?",":"")+this.newLineCharacter,suffix:o?",":QF(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,((_D(r=t)||uD(r))&&y_(i)&&167===i.name.kind||du(r)&&du(i))&&59!==e.text.charCodeAt(t.end-1)&&this.replaceRange(e,Ib(t.end),ZC.createToken(27));return ade(e,t,{})}getInsertNodeAfterOptions(e,t){const n=this.getInsertNodeAfterOptionsWorker(t);return{...n,prefix:t.end===e.end&&pu(t)?n.prefix?`\n${n.prefix}`:"\n":n.prefix}}getInsertNodeAfterOptionsWorker(e){switch(e.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return _n.assert(pu(e)||y_(e)),{suffix:this.newLineCharacter}}}insertName(e,t,n){if(_n.assert(!t.name),219===t.kind){const r=AX(t,39,e),i=AX(t,21,e);i?(this.insertNodesAt(e,i.getStart(e),[ZC.createToken(100),ZC.createIdentifier(n)],{joiner:" "}),xde(this,e,r)):(this.insertText(e,me(t.parameters).getStart(e),`function ${n}(`),this.replaceRange(e,r,ZC.createToken(22))),241!==t.body.kind&&(this.insertNodesAt(e,t.body.getStart(e),[ZC.createToken(19),ZC.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(e,t.body.end,[ZC.createToken(27),ZC.createToken(20)],{joiner:" "}))}else{const r=AX(t,218===t.kind?100:86,e).end;this.insertNodeAt(e,r,ZC.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,!Hb(n.elements[0].getStart(),n.parent.parent.getStart(),e))}insertNodeInListAfter(e,t,n,r=Sde.SmartIndenter.getContainingList(t,e)){if(!r)return void _n.fail("node is not a list element");const i=Qd(r,t);if(i<0)return;const o=t.getEnd();if(i!==r.length-1){const o=$X(e,t.end);if(o&&sde(t,o)){const t=r[i+1],a=tde(e.text,t.getFullStart()),s=`${Fa(o.kind)}${e.text.substring(o.end,a)}`;this.insertNodesAt(e,a,[n],{suffix:s})}}else{const a=t.getStart(e),s=vX(a,e);let c,l=!1;if(1===r.length)c=28;else{const n=QX(t.pos,e);c=sde(t,n)?n.kind:28;l=vX(r[i-1].getStart(e),e)!==s}if(!function(e,t){let n=t;for(;n<e.length;){const t=e.charCodeAt(n);if(!Ua(t))return 47===t;n++}return!1}(e.text,t.end)&&Hb(r.pos,r.end,e)||(l=!0),l){this.replaceRange(e,Ib(o),ZC.createToken(c));const t=Sde.SmartIndenter.findFirstNonWhitespaceColumn(s,a,e,this.formatContext.options);let r=Qa(e.text,o,!0,!1);for(;r!==o&&Va(e.text.charCodeAt(r-1));)r--;this.replaceRange(e,Ib(r),n,{indentation:t,prefix:this.newLineCharacter})}else this.replaceRange(e,Ib(o),n,{prefix:`${Fa(c)} `})}}parenthesizeExpression(e,t){this.replaceRange(e,lT(t),ZC.createParenthesizedExpression(t))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach((({node:e,sourceFile:t})=>{const[n,r]=function(e,t){const n=AX(e,19,t),r=AX(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===pde(e).length,o=Hb(n,r,t);i&&o&&n!==r-1&&this.deleteRange(t,Ib(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&&bX(e.node,n)))||(Xe(n)?this.deleteRange(t,_T(t,n)):mde.deleteDeclaration(this,e,t,n));e.forEach((t=>{const n=t.getSourceFile(),r=Sde.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:ude(n,r[i+1])})}))}getChanges(e){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const t=lde.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,e);return this.newFileChanges&&this.newFileChanges.forEach(((e,n)=>{t.push(lde.newFileChanges(n,e,this.newLineCharacter,this.formatContext))})),t}createNewFile(e,t,n){this.insertStatementsInNewFile(t,n,e)}};function ude(e,t){return Qa(e.text,ide(e,t,{leadingTriviaOption:1}),!1,!0)}function dde(e,t,n,r){const i=ude(e,r);if(void 0===n||Hb(ade(e,t,{}),i,e))return i;const o=QX(r.getStart(e),e);if(sde(t,o)){const r=QX(t.getStart(e),e);if(sde(n,r)){const t=Qa(e.text,o.getEnd(),!0,!0);if(Hb(r.getStart(e),o.getStart(e),e))return Va(e.text.charCodeAt(t-1))?t-1:t;if(Va(e.text.charCodeAt(t)))return t}}return i}function pde(e){return GD(e)?e.properties:e.members}function fde(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(Fs(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=zI("any file name",o,{languageVersion:99,jsDocParsingMode:1},!0,e);return fde(o,Sde.formatDocument(a,i))+r}function n(e,t,n){const r=vde(n);return pU({newLine:r0(n),neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},r).writeNode(4,e,t,r),{text:r.getText(),node:hde(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<a.length-1;e++)_n.assert(a[e].range.end<=a[e+1].range.pos,"Changes overlap",(()=>`${JSON.stringify(a[e].range)} and ${JSON.stringify(a[e+1].range)}`));const s=R(a,(e=>{const a=PQ(e.range),s=1===e.kind?yd(_c(e.node))??e.sourceFile:2===e.kind?yd(_c(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=o0(l,t),f=void 0!==o?o:Sde.SmartIndenter.getIndentation(i,r,p,a===c||vX(i,t)===i);void 0===s&&(s=Sde.SmartIndenter.shouldIndentChildNode(p,e)&&p.indentSize||0);const m={text:d,getLineAndCharacterOfPosition(e){return za(this,e)}},g=Sde.formatNodeGivenIndentation(u,m,t.languageVariant,f,s,{...l,options:p});return fde(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||vX(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||!ZZ(s.text,c,a.start))return OQ(a,c)}));return s.length>0?{fileName:o.fileName,textChanges:s}:void 0}))},e.newFileChanges=function(e,n,r,i){const o=t(kS(e),n,r,i);return{fileName:e,textChanges:[OQ(Ws(0,0),o)],isNewFile:!0}},e.newFileChangesWorker=t,e.getNonformattedText=n})(lde||(lde={}));var mde,gde={...jq,factory:qC(1|jq.factory.flags,jq.factory.baseFactory)};function hde(e){const t=dJ(e,hde,gde,yde,hde),n=ey(t)?t:Object.create(t);return wT(n,Gue(e),Que(e)),n}function yde(e,t,n,r,i){const o=rJ(e,t,n,r,i);if(!o)return o;_n.assert(e);const a=o===e?ZC.createNodeArray(o.slice(0)):o;return wT(a,Gue(e),Que(e)),a}function vde(e){let t=0;const n=Oy(e);function r(e,r){if(r||!function(e){return Qa(e,0)===e.length}(e)){t=n.getTextPos();let r=0;for(;qa(e.charCodeAt(e.length-r-1));)r++;t-=r}}return{onBeforeEmitNode:e=>{e&&Xue(e,t)},onAfterEmitNode:e=>{e&&Yue(e,t)},onBeforeEmitNodeArray:e=>{e&&Xue(e,t)},onAfterEmitNodeArray:e=>{e&&Yue(e,t)},onBeforeEmitToken:e=>{e&&Xue(e,t)},onAfterEmitToken:e=>{e&&Yue(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 bde(e,t){return!(uQ(e,t)||tQ(e,t)||iQ(e,t)||oQ(e,t))}function xde(e,t,n,r={leadingTriviaOption:1}){const i=ide(t,n,r),o=ade(t,n,r);e.deleteRange(t,{pos:i,end:o})}function kde(e,t,n,r){const i=_n.checkDefined(Sde.SmartIndenter.getContainingList(r,n)),o=Qd(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:ude(n,r),end:o===i.length-1?ade(n,r,{}):dde(n,r,i[o-1],i[o+1])})):xde(e,n,r)}(e=>{function t(e,t,n){if(n.parent.name){const r=_n.checkDefined($X(t,n.pos-1));e.deleteRange(t,{pos:r.getStart(t),end:n.end})}else{xde(e,t,Th(n,272))}}e.deleteDeclaration=function(e,n,r,i){switch(i.kind){case 169:{const t=i.parent;iF(t)&&1===t.parameters.length&&!AX(t,21,r)?e.replaceNodeWithText(r,i,"()"):kde(e,n,r,i);break}case 272:case 271:xde(e,r,i,{leadingTriviaOption:r.imports.length&&i===me(r.imports).parent||i===y(r.statements,kp)?0:Du(i)?2:3});break;case 208:const o=i.parent;207===o.kind&&i!==ye(o.elements)?xde(e,r,i):kde(e,n,r,i);break;case 260:!function(e,t,n,r){const{parent:i}=r;if(299===i.kind)return void e.deleteNodeRange(n,AX(i,21,n),AX(i,22,n));if(1!==i.declarations.length)return void kde(e,t,n,r);const o=i.parent;switch(o.kind){case 250:case 249:e.replaceNode(n,r,ZC.createObjectLiteralExpression());break;case 248:xde(e,n,i);break;case 243:xde(e,n,o,{leadingTriviaOption:Du(o)?2:3});break;default:_n.assertNever(o)}}(e,n,r,i);break;case 168:kde(e,n,r,i);break;case 276:const a=i.parent;1===a.elements.length?t(e,r,a):kde(e,n,r,i);break;case 274:t(e,r,i);break;case 27:xde(e,r,i,{trailingTriviaOption:0});break;case 100:xde(e,r,i,{leadingTriviaOption:0});break;case 263:case 262:xde(e,r,i,{leadingTriviaOption:Du(i)?2:3});break;default:i.parent?aE(i.parent)&&i.parent.name===i?function(e,t,n){if(n.namedBindings){const r=n.name.getStart(t),i=$X(t,n.name.end);if(i&&28===i.kind){const n=Qa(t.text,i.end,!1,!0);e.deleteRange(t,{pos:r,end:n})}else xde(e,t,n.name)}else xde(e,t,n.parent)}(e,r,i.parent):YD(i.parent)&&k(i.parent.arguments,i)?kde(e,n,r,i):xde(e,r,i):xde(e,r,i)}}})(mde||(mde={}));var Sde={};n(Sde,{FormattingContext:()=>Cde,FormattingRequestKind:()=>Tde,RuleAction:()=>Pde,RuleFlags:()=>Ade,SmartIndenter:()=>tfe,anyContext:()=>Ede,createTextRangeWithKind:()=>sfe,formatDocument:()=>dfe,formatNodeGivenIndentation:()=>hfe,formatOnClosingCurly:()=>ufe,formatOnEnter:()=>cfe,formatOnOpeningCurly:()=>_fe,formatOnSemicolon:()=>lfe,formatSelection:()=>pfe,getAllRules:()=>Ide,getFormatContext:()=>Hpe,getFormattingScanner:()=>Dde,getIndentationString:()=>kfe,getRangeOfEnclosingComment:()=>xfe});var Tde=(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))(Tde||{}),Cde=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=AX(e,19,this.sourceFile),n=AX(e,20,this.sourceFile);if(t&&n){return this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line===this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line}return!1}},wde=gs(99,!1,0),Nde=gs(99,!1,1);function Dde(e,t,n,r,i){const o=1===t?Nde:wde;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(;e<r;){const t=o.getToken();if(!Ah(t))break;o.scan();const n={pos:e,end:o.getTokenFullStart(),kind:t};e=o.getTokenFullStart(),a=re(a,n)}c=o.getTokenFullStart()},readTokenInfo:function(e){_n.assert(p());const t=function(e){switch(e.kind){case 34:case 72:case 73:case 50:case 49:return!0}return!1}(e)?1:(i=e,14===i.kind?2:function(e){return 17===e.kind||18===e.kind}(e)?3:function(e){if(e.parent)switch(e.parent.kind){case 291:case 286:case 287:case 285:return Ch(e.kind)||80===e.kind}return!1}(e)?4:(n=e,DN(n)||CE(n)&&12===(null==_?void 0:_.token.kind)?5:function(e){return e.parent&&AE(e.parent)&&e.parent.initializer===e}(e)?6:0));var n;var i;if(_&&t===l)return m(_,e);o.getTokenFullStart()!==c&&(_n.assert(void 0!==_),o.resetTokenState(c),o.scan());let u=function(e,t){const n=o.getToken();switch(l=0,t){case 1:if(32===n){l=1;const t=o.reScanGreaterToken();return _n.assert(e.kind===t),t}break;case 2:if(44===(r=n)||69===r){l=2;const t=o.reScanSlashToken();return _n.assert(e.kind===t),t}break;case 3:if(20===n)return l=3,o.reScanTemplateToken(!1);break;case 4:return l=4,o.scanJsxIdentifier();case 5:return l=5,o.reScanJsxToken(!1);case 6:return l=6,o.reScanJsxAttributeValue();case 0:break;default:_n.assertNever(t)}var r;return n}(e,t);const d=sfe(o.getTokenFullStart(),o.getTokenEnd(),u);s&&(s=void 0);for(;o.getTokenFullStart()<r&&(u=o.scan(),Ah(u));){const e=sfe(o.getTokenFullStart(),o.getTokenEnd(),u);if(s||(s=[]),s.push(e),4===u){o.scan();break}}return _={leadingTrivia:a,trailingTrivia:s,token:d},m(_,e)},readEOFTokenRange:function(){return _n.assert(f()),sfe(o.getTokenFullStart(),o.getTokenEnd(),1)},isOnToken:p,isOnEOF:f,getCurrentLeadingTrivia:()=>a,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&&!Ah(e)}function f(){return 1===(_?_.token.kind:o.getToken())}function m(e,t){return El(t)&&e.token.kind!==t.kind&&(e.token.kind=t.kind),e}}var Fde,Ede=s,Pde=(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))(Pde||{}),Ade=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(Ade||{});function Ide(){const e=[];for(let t=0;t<=165;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=Lde([...e,3]),i=Lde([...e,1]),o=Rde(83,165),a=Rde(30,79),s=[103,104,165,130,142,152],c=[80,...LQ],l=r,_=Lde([80,32,3,86,95,102]),u=Lde([22,3,92,113,98,93,85]);return[...[Ode("IgnoreBeforeComment",n,[2,3],Ede,1),Ode("IgnoreAfterLineComment",2,n,Ede,1),Ode("NotSpaceBeforeColon",n,59,[vpe,Hde,Kde],16),Ode("SpaceAfterColon",59,n,[vpe,Hde,Cpe],4),Ode("NoSpaceBeforeQuestionMark",n,58,[vpe,Hde,Kde],16),Ode("SpaceAfterQuestionMarkInConditionalOperator",58,n,[vpe,Qde],4),Ode("NoSpaceAfterQuestionMark",58,n,[vpe,Xde],16),Ode("NoSpaceBeforeDot",n,[25,29],[vpe,$pe],16),Ode("NoSpaceAfterDot",[25,29],n,[vpe],16),Ode("NoSpaceBetweenImportParenInImportType",102,21,[vpe,ype],16),Ode("NoSpaceAfterUnaryPrefixOperator",[46,47,55,54],[9,10,80,21,23,19,110,105],[vpe,Hde],16),Ode("NoSpaceAfterUnaryPreincrementOperator",46,[80,21,110,105],[vpe],16),Ode("NoSpaceAfterUnaryPredecrementOperator",47,[80,21,110,105],[vpe],16),Ode("NoSpaceBeforeUnaryPostincrementOperator",[80,22,24,105],46,[vpe,Upe],16),Ode("NoSpaceBeforeUnaryPostdecrementOperator",[80,22,24,105],47,[vpe,Upe],16),Ode("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[vpe,$de],4),Ode("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[vpe,$de],4),Ode("SpaceAfterAddWhenFollowedByPreincrement",40,46,[vpe,$de],4),Ode("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[vpe,$de],4),Ode("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[vpe,$de],4),Ode("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[vpe,$de],4),Ode("NoSpaceAfterCloseBrace",20,[28,27],[vpe],16),Ode("NewLineBeforeCloseBraceInBlockContext",r,20,[tpe],8),Ode("SpaceAfterCloseBrace",20,t(22),[vpe,_pe],4),Ode("SpaceBetweenCloseBraceAndElse",20,93,[vpe],4),Ode("SpaceBetweenCloseBraceAndWhile",20,117,[vpe],4),Ode("NoSpaceBetweenEmptyBraceBrackets",19,20,[vpe,dpe],16),Ode("SpaceAfterConditionalClosingParen",22,23,[upe],4),Ode("NoSpaceBetweenFunctionKeywordAndStar",100,42,[spe],16),Ode("SpaceAfterStarInGeneratorDeclaration",42,80,[spe],4),Ode("SpaceAfterFunctionInFuncDecl",100,n,[ope],4),Ode("NewLineAfterOpenBraceInBlockContext",19,n,[tpe],8),Ode("SpaceAfterGetSetInMember",[139,153],80,[ope],4),Ode("NoSpaceBetweenYieldKeywordAndStar",127,42,[vpe,zpe],16),Ode("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[vpe,zpe],4),Ode("NoSpaceBetweenReturnAndSemicolon",107,27,[vpe],16),Ode("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[vpe],4),Ode("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[vpe,Ppe],4),Ode("NoSpaceBeforeOpenParenInFuncCall",n,21,[vpe,ppe,fpe],16),Ode("SpaceBeforeBinaryKeywordOperator",n,s,[vpe,$de],4),Ode("SpaceAfterBinaryKeywordOperator",s,n,[vpe,$de],4),Ode("SpaceAfterVoidOperator",116,n,[vpe,Jpe],4),Ode("SpaceBetweenAsyncAndOpenParen",134,21,[hpe,vpe],4),Ode("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[vpe],4),Ode("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[vpe],16),Ode("SpaceBeforeJsxAttribute",n,80,[Spe,vpe],4),Ode("SpaceBeforeSlashInJsxOpeningElement",n,44,[Npe,vpe],4),Ode("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[Npe,vpe],16),Ode("NoSpaceBeforeEqualInJsxAttribute",n,64,[Tpe,vpe],16),Ode("NoSpaceAfterEqualInJsxAttribute",64,n,[Tpe,vpe],16),Ode("NoSpaceBeforeJsxNamespaceColon",80,59,[wpe],16),Ode("NoSpaceAfterJsxNamespaceColon",59,80,[wpe],16),Ode("NoSpaceAfterModuleImport",[144,149],21,[vpe],16),Ode("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,[vpe],4),Ode("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[vpe],4),Ode("SpaceAfterModuleName",11,19,[Ipe],4),Ode("SpaceBeforeArrow",n,39,[vpe],4),Ode("SpaceAfterArrow",39,n,[vpe],4),Ode("NoSpaceAfterEllipsis",26,80,[vpe],16),Ode("NoSpaceAfterOptionalParameters",58,[22,28],[vpe,Hde],16),Ode("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[vpe,Ope],16),Ode("NoSpaceBeforeOpenAngularBracket",c,30,[vpe,Rpe],16),Ode("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[vpe,Rpe],16),Ode("NoSpaceAfterOpenAngularBracket",30,n,[vpe,Rpe],16),Ode("NoSpaceBeforeCloseAngularBracket",n,32,[vpe,Rpe],16),Ode("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[vpe,Rpe,ape,Bpe],16),Ode("SpaceBeforeAt",[22,80],60,[vpe],4),Ode("NoSpaceAfterAt",60,n,[vpe],16),Ode("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[Fpe],4),Ode("NoSpaceBeforeNonNullAssertionOperator",n,54,[vpe,qpe],16),Ode("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[vpe,Lpe],16),Ode("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[vpe],4)],...[Ode("SpaceAfterConstructor",137,21,[Bde("insertSpaceAfterConstructor"),vpe],4),Ode("NoSpaceAfterConstructor",137,21,[zde("insertSpaceAfterConstructor"),vpe],16),Ode("SpaceAfterComma",28,n,[Bde("insertSpaceAfterCommaDelimiter"),vpe,xpe,mpe,gpe],4),Ode("NoSpaceAfterComma",28,n,[zde("insertSpaceAfterCommaDelimiter"),vpe,xpe],16),Ode("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Bde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),ope],4),Ode("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[zde("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),ope],16),Ode("SpaceAfterKeywordInControl",o,21,[Bde("insertSpaceAfterKeywordsInControlFlowStatements"),upe],4),Ode("NoSpaceAfterKeywordInControl",o,21,[zde("insertSpaceAfterKeywordsInControlFlowStatements"),upe],16),Ode("SpaceAfterOpenParen",21,n,[Bde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),vpe],4),Ode("SpaceBeforeCloseParen",n,22,[Bde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),vpe],4),Ode("SpaceBetweenOpenParens",21,21,[Bde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),vpe],4),Ode("NoSpaceBetweenParens",21,22,[vpe],16),Ode("NoSpaceAfterOpenParen",21,n,[zde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),vpe],16),Ode("NoSpaceBeforeCloseParen",n,22,[zde("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),vpe],16),Ode("SpaceAfterOpenBracket",23,n,[Bde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),vpe],4),Ode("SpaceBeforeCloseBracket",n,24,[Bde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),vpe],4),Ode("NoSpaceBetweenBrackets",23,24,[vpe],16),Ode("NoSpaceAfterOpenBracket",23,n,[zde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),vpe],16),Ode("NoSpaceBeforeCloseBracket",n,24,[zde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),vpe],16),Ode("SpaceAfterOpenBrace",19,n,[Ude("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Zde],4),Ode("SpaceBeforeCloseBrace",n,20,[Ude("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Zde],4),Ode("NoSpaceBetweenEmptyBraceBrackets",19,20,[vpe,dpe],16),Ode("NoSpaceAfterOpenBrace",19,n,[Jde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),vpe],16),Ode("NoSpaceBeforeCloseBrace",n,20,[Jde("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),vpe],16),Ode("SpaceBetweenEmptyBraceBrackets",19,20,[Bde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Ode("NoSpaceBetweenEmptyBraceBrackets",19,20,[Jde("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),vpe],16),Ode("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[Bde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),bpe],4,1),Ode("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[Bde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),vpe],4),Ode("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[zde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),bpe],16,1),Ode("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[zde("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),vpe],16),Ode("SpaceAfterOpenBraceInJsxExpression",19,n,[Bde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),vpe,kpe],4),Ode("SpaceBeforeCloseBraceInJsxExpression",n,20,[Bde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),vpe,kpe],4),Ode("NoSpaceAfterOpenBraceInJsxExpression",19,n,[zde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),vpe,kpe],16),Ode("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[zde("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),vpe,kpe],16),Ode("SpaceAfterSemicolonInFor",27,n,[Bde("insertSpaceAfterSemicolonInForStatements"),vpe,Vde],4),Ode("NoSpaceAfterSemicolonInFor",27,n,[zde("insertSpaceAfterSemicolonInForStatements"),vpe,Vde],16),Ode("SpaceBeforeBinaryOperator",n,a,[Bde("insertSpaceBeforeAndAfterBinaryOperators"),vpe,$de],4),Ode("SpaceAfterBinaryOperator",a,n,[Bde("insertSpaceBeforeAndAfterBinaryOperators"),vpe,$de],4),Ode("NoSpaceBeforeBinaryOperator",n,a,[zde("insertSpaceBeforeAndAfterBinaryOperators"),vpe,$de],16),Ode("NoSpaceAfterBinaryOperator",a,n,[zde("insertSpaceBeforeAndAfterBinaryOperators"),vpe,$de],16),Ode("SpaceBeforeOpenParenInFuncDecl",n,21,[Bde("insertSpaceBeforeFunctionParenthesis"),vpe,ope],4),Ode("NoSpaceBeforeOpenParenInFuncDecl",n,21,[zde("insertSpaceBeforeFunctionParenthesis"),vpe,ope],16),Ode("NewLineBeforeOpenBraceInControl",u,19,[Bde("placeOpenBraceOnNewLineForControlBlocks"),upe,epe],8,1),Ode("NewLineBeforeOpenBraceInFunction",l,19,[Bde("placeOpenBraceOnNewLineForFunctions"),ope,epe],8,1),Ode("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[Bde("placeOpenBraceOnNewLineForFunctions"),cpe,epe],8,1),Ode("SpaceAfterTypeAssertion",32,n,[Bde("insertSpaceAfterTypeAssertion"),vpe,Mpe],4),Ode("NoSpaceAfterTypeAssertion",32,n,[zde("insertSpaceAfterTypeAssertion"),vpe,Mpe],16),Ode("SpaceBeforeTypeAnnotation",n,[58,59],[Bde("insertSpaceBeforeTypeAnnotation"),vpe,Gde],4),Ode("NoSpaceBeforeTypeAnnotation",n,[58,59],[zde("insertSpaceBeforeTypeAnnotation"),vpe,Gde],16),Ode("NoOptionalSemicolon",27,i,[Mde("semicolons","remove"),Vpe],32),Ode("OptionalSemicolon",n,i,[Mde("semicolons","insert"),Wpe],64)],...[Ode("NoSpaceBeforeSemicolon",n,27,[vpe],16),Ode("SpaceBeforeOpenBraceInControl",u,19,[qde("placeOpenBraceOnNewLineForControlBlocks"),upe,Ape,Yde],4,1),Ode("SpaceBeforeOpenBraceInFunction",l,19,[qde("placeOpenBraceOnNewLineForFunctions"),ope,rpe,Ape,Yde],4,1),Ode("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",_,19,[qde("placeOpenBraceOnNewLineForFunctions"),cpe,Ape,Yde],4,1),Ode("NoSpaceBeforeComma",n,28,[vpe],16),Ode("NoSpaceBeforeOpenBracket",t(134,84),23,[vpe],16),Ode("NoSpaceAfterCloseBracket",24,n,[vpe,Dpe],16),Ode("SpaceAfterSemicolon",27,n,[vpe],4),Ode("SpaceBetweenForAndAwaitKeyword",99,135,[vpe],4),Ode("SpaceBetweenDotDotDotAndTypeName",26,c,[vpe],16),Ode("SpaceBetweenStatements",[22,92,93,84],n,[vpe,xpe,Wde],4),Ode("SpaceAfterTryCatchFinally",[113,85,98],19,[vpe],4)]]}function Ode(e,t,n,r,i,o=0){return{leftTokenRange:jde(t),rightTokenRange:jde(n),rule:{debugName:e,context:r,action:i,flags:o}}}function Lde(e){return{tokens:e,isSpecific:!0}}function jde(e){return"number"==typeof e?Lde([e]):Xe(e)?Lde(e):e}function Rde(e,t,n=[]){const r=[];for(let i=e;i<=t;i++)k(n,i)||r.push(i);return Lde(r)}function Mde(e,t){return n=>n.options&&n.options[e]===t}function Bde(e){return t=>t.options&&Ne(t.options,e)&&!!t.options[e]}function Jde(e){return t=>t.options&&Ne(t.options,e)&&!t.options[e]}function zde(e){return t=>!t.options||!Ne(t.options,e)||!t.options[e]}function qde(e){return t=>!t.options||!Ne(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function Ude(e){return t=>!t.options||!Ne(t.options,e)||!!t.options[e]}function Vde(e){return 248===e.contextNode.kind}function Wde(e){return!Vde(e)}function $de(e){switch(e.contextNode.kind){case 226:return 28!==e.contextNode.operatorToken.kind;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return 64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 249:case 168:return 103===e.currentTokenSpan.kind||103===e.nextTokenSpan.kind||64===e.currentTokenSpan.kind||64===e.nextTokenSpan.kind;case 250:return 165===e.currentTokenSpan.kind||165===e.nextTokenSpan.kind}return!1}function Hde(e){return!$de(e)}function Kde(e){return!Gde(e)}function Gde(e){const t=e.contextNode.kind;return 172===t||171===t||169===t||260===t||c_(t)}function Xde(e){return!function(e){return uD(e.contextNode)&&e.contextNode.questionToken}(e)}function Qde(e){return 227===e.contextNode.kind||194===e.contextNode.kind}function Yde(e){return e.TokensAreOnSameLine()||rpe(e)}function Zde(e){return 206===e.contextNode.kind||200===e.contextNode.kind||function(e){return npe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}(e)}function epe(e){return rpe(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function tpe(e){return npe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function npe(e){return ipe(e.contextNode)}function rpe(e){return ipe(e.nextTokenParent)}function ipe(e){if(lpe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function ope(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function ape(e){return!ope(e)}function spe(e){return 262===e.contextNode.kind||218===e.contextNode.kind}function cpe(e){return lpe(e.contextNode)}function lpe(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function _pe(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const t=e.currentTokenParent.parent;if(!t||219!==t.kind&&218!==t.kind)return!0}}return!1}function upe(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function dpe(e){return 210===e.contextNode.kind}function ppe(e){return function(e){return 213===e.contextNode.kind}(e)||function(e){return 214===e.contextNode.kind}(e)}function fpe(e){return 28!==e.currentTokenSpan.kind}function mpe(e){return 24!==e.nextTokenSpan.kind}function gpe(e){return 22!==e.nextTokenSpan.kind}function hpe(e){return 219===e.contextNode.kind}function ype(e){return 205===e.contextNode.kind}function vpe(e){return e.TokensAreOnSameLine()&&12!==e.contextNode.kind}function bpe(e){return 12!==e.contextNode.kind}function xpe(e){return 284!==e.contextNode.kind&&288!==e.contextNode.kind}function kpe(e){return 294===e.contextNode.kind||293===e.contextNode.kind}function Spe(e){return 291===e.nextTokenParent.kind||295===e.nextTokenParent.kind&&291===e.nextTokenParent.parent.kind}function Tpe(e){return 291===e.contextNode.kind}function Cpe(e){return 295!==e.nextTokenParent.kind}function wpe(e){return 295===e.nextTokenParent.kind}function Npe(e){return 285===e.contextNode.kind}function Dpe(e){return!ope(e)&&!rpe(e)}function Fpe(e){return e.TokensAreOnSameLine()&&jv(e.contextNode)&&Epe(e.currentTokenParent)&&!Epe(e.nextTokenParent)}function Epe(e){for(;e&&V_(e);)e=e.parent;return e&&170===e.kind}function Ppe(e){return 261===e.currentTokenParent.kind&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function Ape(e){return 2!==e.formattingRequestKind}function Ipe(e){return 267===e.contextNode.kind}function Ope(e){return 187===e.contextNode.kind}function Lpe(e){return 180===e.contextNode.kind}function jpe(e,t){if(30!==e.kind&&32!==e.kind)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function Rpe(e){return jpe(e.currentTokenSpan,e.currentTokenParent)||jpe(e.nextTokenSpan,e.nextTokenParent)}function Mpe(e){return 216===e.contextNode.kind}function Bpe(e){return!Mpe(e)}function Jpe(e){return 116===e.currentTokenSpan.kind&&222===e.currentTokenParent.kind}function zpe(e){return 229===e.contextNode.kind&&void 0!==e.contextNode.expression}function qpe(e){return 235===e.contextNode.kind}function Upe(e){return!function(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}(e)}function Vpe(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(Ah(t)){const r=e.nextTokenParent===e.currentTokenParent?XX(e.currentTokenParent,uc(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||240!==t&&27!==t&&(264===e.contextNode.kind||265===e.contextNode.kind?!_D(e.currentTokenParent)||!!e.currentTokenParent.type||21!==t:uD(e.currentTokenParent)?!e.currentTokenParent.initializer:248!==e.currentTokenParent.kind&&242!==e.currentTokenParent.kind&&240!==e.currentTokenParent.kind&&23!==t&&21!==t&&40!==t&&41!==t&&44!==t&&14!==t&&28!==t&&228!==t&&16!==t&&15!==t&&25!==t)}function Wpe(e){return DZ(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function $pe(e){return!XD(e.contextNode)||!CN(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}function Hpe(e,t){return{options:e,getRules:Kpe(),host:t}}function Kpe(){return void 0===Fde&&(Fde=function(e){const t=function(e){const t=new Array(ife*ife),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=Xpe(i,o);let s=t[a];void 0===s&&(s=t[a]=[]),afe(s,r.rule,e,n,a)}}return t}(e);return e=>{const n=t[Xpe(e.currentTokenSpan.kind,e.nextTokenSpan.kind)];if(n){const t=[];let r=0;for(const i of n){const n=~Gpe(r);i.action&n&&h(i.context,(t=>t(e)))&&(t.push(i),r|=i.action)}if(t.length)return t}}}(Ide())),Fde}function Gpe(e){let t=0;return 1&e&&(t|=28),2&e&&(t|=96),28&e&&(t|=28),96&e&&(t|=96),t}function Xpe(e,t){return _n.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*ife+t}var Qpe,Ype,Zpe,efe,tfe,nfe=5,rfe=31,ife=166,ofe=((Qpe=ofe||{})[Qpe.StopRulesSpecific=0]="StopRulesSpecific",Qpe[Qpe.StopRulesAny=1*nfe]="StopRulesAny",Qpe[Qpe.ContextRulesSpecific=2*nfe]="ContextRulesSpecific",Qpe[Qpe.ContextRulesAny=3*nfe]="ContextRulesAny",Qpe[Qpe.NoContextRulesSpecific=4*nfe]="NoContextRulesSpecific",Qpe[Qpe.NoContextRulesAny=5*nfe]="NoContextRulesAny",Qpe);function afe(e,t,n,r,i){const o=3&t.action?n?0:ofe.StopRulesAny:t.context!==Ede?n?ofe.ContextRulesSpecific:ofe.ContextRulesAny:n?ofe.NoContextRulesSpecific:ofe.NoContextRulesAny,a=r[i]||0;e.splice(function(e,t){let n=0;for(let r=0;r<=t;r+=nfe)n+=e&rfe,e>>=nfe;return n}(a,o),0,t),r[i]=function(e,t){const n=1+(e>>t&rfe);return _n.assert((n&rfe)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(rfe<<t)|n<<t}(a,o)}function sfe(e,t,n){const r={pos:e,end:t,kind:n};return _n.isDebugging&&Object.defineProperty(r,"__debugKind",{get:()=>_n.formatSyntaxKind(n)}),r}function cfe(e,t,n){const r=t.getLineAndCharacterOfPosition(e).line;if(0===r)return[];let i=Td(r,t);for(;Ua(t.text.charCodeAt(i));)i--;Va(t.text.charCodeAt(i))&&i--;return vfe({pos:kd(r-1,t),end:i+1},t,n,2)}function lfe(e,t,n){return yfe(mfe(ffe(e,27,t)),t,n,3)}function _fe(e,t,n){const r=ffe(e,19,t);if(!r)return[];return vfe({pos:vX(mfe(r.parent).getStart(t),t),end:e},t,n,4)}function ufe(e,t,n){return yfe(mfe(ffe(e,20,t)),t,n,5)}function dfe(e,t){return vfe({pos:0,end:e.text.length},e,t,0)}function pfe(e,t,n,r){return vfe({pos:vX(e,n),end:t},n,r,1)}function ffe(e,t,n){const r=QX(e,n);return r&&r.kind===t&&e===r.getEnd()?r:void 0}function mfe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!gfe(t.parent,t);)t=t.parent;return t}function gfe(e,t){switch(e.kind){case 263:case 264:return Qb(e.members,t);case 267:const n=e.body;return!!n&&268===n.kind&&Qb(n.statements,t);case 307:case 241:case 268:return Qb(e.statements,t);case 299:return Qb(e.block.statements,t)}return!1}function hfe(e,t,n,r,i,o){const a={pos:e.pos,end:e.end};return Dde(t.text,n,a.pos,a.end,(n=>bfe(a,e,r,i,n,o,1,(e=>!1),t)))}function yfe(e,t,n,r){if(!e)return[];return vfe({pos:vX(e.getStart(t),t),end:e.end},t,n,r)}function vfe(e,t,n,r){const i=function(e,t){return function n(r){const i=RI(r,(n=>Yb(n.getStart(t),n.end,e)&&n));if(i){const e=n(i);if(e)return e}return r}(t)}(e,t);return Dde(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=QX(t.pos,n);return i?i.end>=t.pos?e.pos:i.end:e.pos}(i,e,t),e.end,(o=>bfe(e,i,tfe.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(tfe.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=>TX(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(wX(e.pos,e.end,t.start,t.start+t.length))return!0;r++}};function i(){return!1}}(t.parseDiagnostics,e),t)))}function bfe(e,t,n,r,i,{options:o,getRules:a,host:s},c,l,_){var d;const p=new Cde(_,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;jv(t)&&(s=_.getLineAndCharacterOfPosition(zd(t,_)).line),function t(n,r,a,s,c,u){if(!TX(e,n.getStart(_),n.getEnd()))return;const d=T(n,a,c,u);let p=r;RI(n,(e=>{g(e,-1,n,d,a,s,!1)}),(e=>{h(e,n,a,d)}));for(;i.isOnToken()&&i.getTokenFullStart()<e.end;){const t=i.readTokenInfo(n);if(t.token.end>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(!ey(r)),wd(r)||Dd(s,r))return a;const m=r.getStart(_),g=_.getLineAndCharacterOfPosition(m).line;let h=g;jv(r)&&(h=_.getLineAndCharacterOfPosition(zd(r,_)).line);let b=-1;if(d&&Qb(e,s)&&(b=function(e,t,n,r,i){if(TX(r,e,t)||SX(r,e,t)){if(-1!==i)return i}else{const t=_.getLineAndCharacterOfPosition(e).line,r=vX(e,_),i=tfe.findFirstNonWhitespaceColumn(r,e,_,o);if(t!==n||e===i){const e=tfe.getBaseIndentation(o);return e>i?e:i}}return-1}(m,r.end,l,e,a),-1!==b&&(a=b)),!TX(e,r.pos,r.end))return r.end<e.pos&&i.skipToEndOf(r),a;if(0===r.getFullWidth())return a;for(;i.isOnToken()&&i.getTokenFullStart()<e.end;){const t=i.readTokenInfo(n);if(t.token.end>e.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(El(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=170===r.kind?g:u,S=function(e,t,n,r,i,a){const s=tfe.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)}:tfe.childStartsOnTheSameLineWithElseInIfStatement(r,e,t,_)||tfe.childIsUnindentedBranchOfConditionalExpression(r,e,t,_)||tfe.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&&209===s.kind&&-1===a&&(a=S.indentation),a}function h(t,r,a,s){_n.assert(Pl(t)),_n.assert(!ey(t));const c=function(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}(r,t);let l=s,u=a;if(!TX(e,t.pos,t.end))return void(t.end<e.pos&&i.skipToEndOf(t));if(0!==c)for(;i.isOnToken()&&i.getTokenFullStart()<e.end;){const e=i.readTokenInfo(r);if(e.token.end>t.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=vX(e.token.pos,_);t=tfe.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;e<t.length;e++){d=g(t[e],d,n,l,u,u,!0,0===e)}const p=function(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}(c);if(0!==p&&i.isOnToken()&&i.getTokenFullStart()<e.end){let e=i.readTokenInfo(r);28===e.token.kind&&(y(e,r,l,r),e=i.isOnToken()?i.readTokenInfo(r):void 0),e&&e.token.kind===p&&Qb(r,e.token)&&y(e,r,l,r,!0)}}function y(t,n,r,o,a){_n.assert(Qb(n,t.token));const s=i.lastTrailingTriviaWasNewLine();let c=!1;t.leadingTrivia&&w(t.leadingTrivia,n,p,r);let u=0;const d=Qb(e,t.token),g=_.getLineAndCharacterOfPosition(t.token.pos);if(d){const e=l(t.token),i=m;if(u=N(t.token,g,n,p,r),!e)if(0===u){const e=i&&_.getLineAndCharacterOfPosition(i.end).line;c=s&&g.line!==e}else c=1===u}if(t.trailingTrivia&&(f=ye(t.trailingTrivia).end,w(t.trailingTrivia,n,p,r)),c){const e=d&&!l(t.token)?r.getIndentationForToken(g.line,t.token.kind,o,!!a):-1;let n=!0;if(t.leadingTrivia){const i=r.getIndentationForComment(t.token.kind,e,o);n=C(t.leadingTrivia,i,n,(e=>F(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=tfe.nodeWillIndentChild(o,t,void 0,_,!1)?n+o.indentSize:n;C(S,r,!0,(e=>{N(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)gQ(e.kind)&&(n<e.pos&&I(n,e.pos-1,m),n=e.end+1);n<e.end&&I(n,e.end,m)}(S)}if(m&&i.getTokenFullStart()>=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=QX(e.end,_,t))?void 0:d.parent)||g;D(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 286:case 287:case 285:return!1}break;case 23:case 24:if(200!==i.kind)return!1}return t!==n&&!(jv(e)&&r===function(e){if(lI(e)){const t=y(e.modifiers,Zl,b(e.modifiers,lD));if(t)return t.kind}switch(e.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(e.asteriskToken)return 42;case 172:case 169:const t=Cc(e);if(t)return t.kind}}(e))}(r,o,a)?n+i(a):n,getIndentation:()=>n,getDelta:i,recomputeIndentation:(t,i)=>{tfe.shouldIndentChildNode(o,i,e,_)&&(n+=t?o.indentSize:-o.indentSize,r=tfe.shouldIndentChildNode(o,e)?o.indentSize:0)}};function i(t){return tfe.nodeWillIndentChild(o,e,t,_,!0)?r:0}}function C(t,n,r,i){for(const o of t){const t=Qb(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(gQ(o.kind)&&Qb(e,o)){N(o,_.getLineAndCharacterOfPosition(o.pos),n,r,i)}}function N(t,n,r,i,o){let a=0;if(!l(t))if(m)a=D(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 D(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,RY(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(IQ(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=kfe(t,o);if(n)L(e,0,r);else{const n=_.getLineAndCharacterOfPosition(e),i=kd(n.line,_);(t!==function(e,t){let n=0;for(let r=0;r<t;r++)9===_.text.charCodeAt(e+r)?n+=o.tabSize-n%o.tabSize:n++;return n}(i,n.character)||function(e,t){return e!==_.text.substr(t,e.length)}(r,i))&&L(i,n.character,r)}}function E(e,t,n,r=!0){let i=_.getLineAndCharacterOfPosition(e.pos).line;const a=_.getLineAndCharacterOfPosition(e.end).line;if(i===a)return void(n||F(e.pos,t,!1));const s=[];let c=e.pos;for(let e=i;e<a;e++){const t=Td(e,_);s.push({pos:c,end:t}),c=kd(e+1,_)}if(r&&s.push({pos:c,end:e.end}),0===s.length)return;const l=kd(i,_),u=tfe.findFirstNonWhitespaceCharacterAndColumn(l,s[0].pos,_,o);let d=0;n&&(d=1,i++);const p=t-u.column;for(let e=d;e<s.length;e++,i++){const t=kd(i,_),n=0===e?u:tfe.findFirstNonWhitespaceCharacterAndColumn(s[e].pos,s[e].end,_,o),r=n.column+p;if(r>0){const e=kfe(r,o);L(t,n.character,e)}else O(t,n.character)}}function P(e,t,n){for(let r=e;r<t;r++){const e=kd(r,_),t=Td(r,_);if(n&&(gQ(n.kind)||hQ(n.kind))&&n.pos<=t&&n.end>t)continue;const i=A(e,t);-1!==i&&(_n.assert(i===e||!Ua(_.text.charCodeAt(i-1))),O(i,t+1-i))}}function A(e,t){let n=t;for(;n>=e&&Ua(_.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(IQ(e,t,""))}function L(e,t,n){(t||n)&&k.push(IQ(e,t,n))}}function xfe(e,t,n,r=$X(e,t)){const i=uc(r,sP);i&&(r=i.parent);if(r.getStart(e)<=t&&t<r.getEnd())return;const o=$((n=null===n?void 0:void 0===n?QX(t,e):n)&&us(e.text,n.end),hf(r,e));return o&&y(o,(n=>kX(n,t)||t===n.end&&(2===n.kind||t===e.getFullWidth())))}function kfe(e,t){if((!Ype||Ype.tabSize!==t.tabSize||Ype.indentSize!==t.indentSize)&&(Ype={tabSize:t.tabSize,indentSize:t.indentSize},Zpe=efe=void 0),t.convertTabsToSpaces){let n;const r=Math.floor(e/t.indentSize),i=e%t.indentSize;return efe||(efe=[]),void 0===efe[r]?(n=zQ(" ",t.indentSize*r),efe[r]=n):n=efe[r],i?n+zQ(" ",i):n}{const n=Math.floor(e/t.tabSize),r=e-n*t.tabSize;let i;return Zpe||(Zpe=[]),void 0===Zpe[n]?Zpe[n]=i=zQ("\t",n):i=Zpe[n],r?i+zQ(" ",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=t<n.pos||t>n.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(_u(e)||du(e))&&(307===t.kind||!r)?v(n,i,o):-1}let s;var c;function l(e,t,n,r){const i=XX(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(!YD(e)||!k(e.arguments,t))return!1;return za(r,e.expression.getEnd()).line===n}function d(e,t,n,r){if(245===e.kind&&e.elseStatement===t){const t=AX(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 183:return i(n.typeArguments);case 210:return i(n.properties);case 209:case 275:case 279:case 206:case 207:return i(n.elements);case 187:return i(n.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return i(n.typeParameters)||i(n.parameters);case 177:return i(n.parameters);case 263:case 231:case 264:case 265:case 345:return i(n.typeParameters);case 214:case 213:return i(n.typeArguments)||i(n.arguments);case 261:return i(n.declarations)}function i(i){return i&&SX(function(e,t,n){const r=e.getChildren(n);for(let e=1;e<r.length-1;e++)if(r[e].pos===t.pos&&r[e].end===t.end)return{pos:r[e-1].end,end:r[e+1].getStart(n)};return t}(n,i,r),e,t)?i:void 0}}function m(e,t,n){return e?v(t.getLineAndCharacterOfPosition(e.pos),t,n):-1}function g(e,t,n,r){if(e.parent&&261===e.parent.kind)return-1;const i=p(e,t);if(i){const o=i.indexOf(e);if(-1!==o){const e=h(i,o,t,n);if(-1!==e)return e}return m(i,t,n)+(r?n.indentSize:0)}return-1}function h(e,t,n,r){_n.assert(t>=0&&t<e.length);let i=_(e[t],n);for(let o=t-1;o>=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;a<t;a++){const e=n.text.charCodeAt(a);if(!Ua(e))break;9===e?o+=r.tabSize+o%r.tabSize:o++,i++}return{column:o,character:i}}function x(e,t,n,r){return b(e,t,n,r).column}function S(e,t,n,r,i){const o=n?n.kind:0;switch(t.kind){case 244:case 263:case 231:case 264:case 266:case 265:case 209:case 241:case 268:case 210:case 187:case 200:case 189:case 217:case 211:case 213:case 214:case 243:case 277:case 253:case 227:case 207:case 206:case 286:case 289:case 285:case 294:case 173:case 179:case 180:case 169:case 184:case 185:case 196:case 215:case 223:case 279:case 275:case 281:case 276:case 172:case 296:case 297:return!0;case 269:return e.indentSwitchCase??!0;case 260:case 303:case 226:if(!e.indentMultiLineObjectLiteralBeginningOnBlankLine&&r&&210===o)return C(r,n);if(226===t.kind&&r&&n&&284===o){return r.getLineAndCharacterOfPosition(Qa(r.text,t.pos)).line!==r.getLineAndCharacterOfPosition(Qa(r.text,n.pos)).line}if(226!==t.kind)return!0;break;case 246:case 247:case 249:case 250:case 248:case 245:case 262:case 218:case 174:case 176:case 177:case 178:return 241!==o;case 219:return r&&217===o?C(r,n):241!==o;case 278:return 279!==o;case 272:return 273!==o||!!n.namedBindings&&275!==n.namedBindings.kind;case 284:return 287!==o;case 288:return 290!==o;case 193:case 192:case 238:if(187===o||189===o||200===o)return!1}return i}function T(e,t,n,r,i=!1){return S(e,t,n,r,!1)&&!(i&&n&&function(e,t){switch(e){case 253:case 257:case 251:case 252:return 241!==t.kind;default:return!1}}(n.kind,t))}function C(e,t){const n=Qa(e.text,t.pos);return e.getLineAndCharacterOfPosition(n).line===e.getLineAndCharacterOfPosition(t.end).line}(n=t||(t={}))[n.Unknown=-1]="Unknown",e.getIndentation=function(e,t,n,o=!1){if(e>t.text.length)return r(n);if(0===n.indentStyle)return 0;const a=QX(e,t,void 0,!0),s=xfe(t,e,a||null);if(s&&3===s.kind)return function(e,t,n,r){const i=za(e,t).line-1,o=za(e,r.pos).line;if(_n.assert(o>=0),i<=o)return x(kd(o,e),t,e,n);const a=kd(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(hQ(a.kind)&&a.getStart(t)<=e&&e<a.end)return 0;const c=t.getLineAndCharacterOfPosition(e).line,u=$X(t,e),d=19===u.kind&&210===u.parent.kind;if(1===n.indentStyle||d)return function(e,t,n){let r=t;for(;r>0;){if(!qa(e.text.charCodeAt(r)))break;r--}const i=vX(r,e);return x(i,r,e,n)}(t,e,n);if(28===a.kind&&226!==a.parent.kind){const e=function(e,t,n){const r=EX(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&&!Qb(p,a)){const e=[218,219].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(NX(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(dF(e)&&(t===e.whenTrue||t===e.whenFalse)){const i=za(r,e.condition.end).line;if(t===e.whenTrue)return n===i;{const t=_(e.whenTrue,r).line,o=za(r,e.whenTrue.end).line;return i===t&&o===n}}return!1},e.argumentStartsOnSameLineAsPreviousArgument=function(e,t,n,r){if(j_(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===za(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})(tfe||(tfe={}));var Sfe={};function Tfe(e,t,n){let r=!1;return t.forEach((t=>{const i=uc($X(e,t.pos),(e=>Qb(e,t)));i&&RI(i,(function i(o){var a;if(!r){if(VN(o)&&xX(t,o.getStart(e))){const t=n.resolveName(o.text,o,-1,!1);if(t&&t.declarations)for(const n of t.declarations)if(l3(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(Sfe,{preparePasteEdits:()=>Tfe});var Cfe={};n(Cfe,{pasteEditsProvider:()=>Nfe});var wfe="providePostPasteEdits";function Nfe(e,t,n,r,i,o,a,s){return{edits:Kue.ChangeTracker.with({host:i,formatContext:a,preferences:o},(c=>Dfe(e,t,n,r,i,o,a,s,c))),fixId:wfe}}function Dfe(e,t,n,r,i,o,a,s,c){let l;t.length!==n.length&&(l=1===t.length?t[0]:t.join(RY(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=I7.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=$X(e,n),o=GX(e,n)??$X(e,r);return{pos:VN(i)&&n<=i.getStart(e)?i.getFullStart():n,end:VN(o)&&r===o.getEnd()?Kue.getAdjustedEndPosition(e,o,{}):r}}(r),a=a3(r.file,_,n,m3(f,_,n),o),s=!l0(e.fileName,p,i,!!r.file.commonJsModuleIndicator);B6(r.file,a.targetFileImportsFromOldFile,c,s),v3(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 _=uc($X(e.sourceFile,c.pos),(e=>Qb(e,c)));_&&RI(_,(function t(n){if(VN(n)&&xX(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,eY(r?r.file:e,o))})),u.hasFixes()&&n.forEach(((n,r)=>{c.replaceRangeWithText(e,{pos:n.pos,end:n.end},l??t[r])}))}var Ffe={};n(Ffe,{ANONYMOUS:()=>xZ,AccessFlags:()=>Gr,AssertionLevel:()=>pt,AssignmentDeclarationKind:()=>oi,AssignmentKind:()=>Kg,Associativity:()=>ty,BreakpointResolver:()=>_7,BuilderFileEmit:()=>$V,BuilderProgramKind:()=>xW,BuilderState:()=>VV,CallHierarchy:()=>d7,CharacterCodes:()=>xi,CheckFlags:()=>qr,CheckMode:()=>JB,ClassificationType:()=>BG,ClassificationTypeNames:()=>MG,CommentDirectiveType:()=>Sr,Comparison:()=>a,CompletionInfoFlags:()=>PG,CompletionTriggerKind:()=>SG,Completions:()=>Tae,ContainerFlags:()=>BM,ContextFlags:()=>Ir,Debug:()=>_n,DiagnosticCategory:()=>ai,Diagnostics:()=>_a,DocumentHighlights:()=>N0,ElementFlags:()=>Kr,EmitFlags:()=>Ci,EmitHint:()=>Fi,EmitOnly:()=>Nr,EndOfLineState:()=>OG,ExitStatus:()=>Fr,ExportKind:()=>p0,Extension:()=>ki,ExternalEmitHelpers:()=>Di,FileIncludeKind:()=>Cr,FilePreprocessingDiagnosticsKind:()=>wr,FileSystemEntryKind:()=>ro,FileWatcherEventKind:()=>Mi,FindAllReferences:()=>wce,FlattenLevel:()=>mz,FlowFlags:()=>kr,ForegroundColorEscapeSequences:()=>zU,FunctionFlags:()=>Ih,GeneratedIdentifierFlags:()=>vr,GetLiteralTextFlags:()=>tp,GoToDefinition:()=>ple,HighlightSpanKind:()=>CG,IdentifierNameMap:()=>VJ,ImportKind:()=>d0,ImportsNotUsedAsValues:()=>mi,IndentStyle:()=>wG,IndexFlags:()=>Xr,IndexKind:()=>ei,InferenceFlags:()=>ri,InferencePriority:()=>ni,InlayHintKind:()=>TG,InlayHints:()=>Ple,InternalEmitFlags:()=>wi,InternalNodeBuilderFlags:()=>Lr,InternalSymbolName:()=>Ur,IntersectionFlags:()=>Ar,InvalidatedProjectKind:()=>fH,JSDocParsingMode:()=>Li,JsDoc:()=>jle,JsTyping:()=>qK,JsxEmit:()=>fi,JsxFlags:()=>gr,JsxReferenceKind:()=>Qr,LanguageFeatureMinimumTarget:()=>Ni,LanguageServiceMode:()=>vG,LanguageVariant:()=>vi,LexicalEnvironmentFlags:()=>Pi,ListFormat:()=>Ai,LogLevel:()=>un,MapCode:()=>n_e,MemberOverrideStatus:()=>Er,ModifierFlags:()=>mr,ModuleDetectionKind:()=>li,ModuleInstanceState:()=>LM,ModuleKind:()=>pi,ModuleResolutionKind:()=>ci,ModuleSpecifierEnding:()=>MS,NavigateTo:()=>Z1,NavigationBar:()=>_2,NewLineKind:()=>gi,NodeBuilderFlags:()=>Or,NodeCheckFlags:()=>Vr,NodeFactoryFlags:()=>BC,NodeFlags:()=>fr,NodeResolutionFeatures:()=>AR,ObjectFlags:()=>$r,OperationCanceledException:()=>Tr,OperatorPrecedence:()=>ay,OrganizeImports:()=>c_e,OrganizeImportsMode:()=>kG,OuterExpressionKinds:()=>Ei,OutliningElementsCollector:()=>J_e,OutliningSpanKind:()=>AG,OutputFileType:()=>IG,PackageJsonAutoImportPreference:()=>yG,PackageJsonDependencyGroup:()=>hG,PatternMatchKind:()=>e1,PollingInterval:()=>Bi,PollingWatchKind:()=>di,PragmaKindFlags:()=>Ii,PredicateSemantics:()=>yr,PreparePasteEdits:()=>Sfe,PrivateIdentifierKind:()=>qw,ProcessLevel:()=>jz,ProgramUpdateLevel:()=>yU,QuotePreference:()=>YQ,RegularExpressionFlags:()=>br,RelationComparisonResult:()=>hr,Rename:()=>G_e,ScriptElementKind:()=>jG,ScriptElementKindModifier:()=>RG,ScriptKind:()=>hi,ScriptSnapshot:()=>_G,ScriptTarget:()=>yi,SemanticClassificationFormat:()=>xG,SemanticMeaning:()=>zG,SemicolonPreference:()=>NG,SignatureCheckMode:()=>zB,SignatureFlags:()=>Zr,SignatureHelp:()=>nue,SignatureInfo:()=>WV,SignatureKind:()=>Yr,SmartSelectionRange:()=>Due,SnippetKind:()=>Ti,StatisticType:()=>eK,StructureIsReused:()=>Dr,SymbolAccessibility:()=>Mr,SymbolDisplay:()=>Bue,SymbolDisplayPartKind:()=>EG,SymbolFlags:()=>zr,SymbolFormatFlags:()=>Rr,SyntaxKind:()=>pr,Ternary:()=>ii,ThrottledCancellationToken:()=>t7,TokenClass:()=>LG,TokenFlags:()=>xr,TransformFlags:()=>Si,TypeFacts:()=>MB,TypeFlags:()=>Wr,TypeFormatFlags:()=>jr,TypeMapKind:()=>ti,TypePredicateKind:()=>Br,TypeReferenceSerializationKind:()=>Jr,UnionReduction:()=>Pr,UpToDateStatusType:()=>J$,VarianceFlags:()=>Hr,Version:()=>vn,VersionRange:()=>xn,WatchDirectoryFlags:()=>bi,WatchDirectoryKind:()=>ui,WatchFileKind:()=>_i,WatchLogLevel:()=>wU,WatchType:()=>T$,accessPrivateIdentifier:()=>uz,addEmitFlags:()=>aw,addEmitHelper:()=>ww,addEmitHelpers:()=>Nw,addInternalEmitFlags:()=>cw,addNodeFactoryPatcher:()=>zC,addObjectAllocatorPatcher:()=>Jx,addRange:()=>ae,addRelatedInfo:()=>sT,addSyntheticLeadingComment:()=>vw,addSyntheticTrailingComment:()=>kw,addToSeen:()=>xx,advancedAsyncSuperHelper:()=>SN,affectsDeclarationPathOptionDeclarations:()=>SO,affectsEmitOptionDeclarations:()=>kO,allKeysStartWithDot:()=>lM,altDirectorySeparator:()=>uo,and:()=>Yt,append:()=>re,appendIfUnique:()=>ce,arrayFrom:()=>Ie,arrayIsEqualTo:()=>ee,arrayIsHomogeneous:()=>ST,arrayOf:()=>Ae,arrayReverseIterator:()=>_e,arrayToMap:()=>je,arrayToMultiMap:()=>Me,arrayToNumericMap:()=>Re,assertType:()=>tn,assign:()=>Oe,asyncSuperHelper:()=>kN,attachFileToDiagnostics:()=>Gx,base64decode:()=>Cb,base64encode:()=>Tb,binarySearch:()=>Se,binarySearchKey:()=>Te,bindSourceFile:()=>qM,breakIntoCharacterSpans:()=>h1,breakIntoWordSpans:()=>y1,buildLinkParts:()=>LY,buildOpts:()=>OO,buildOverload:()=>Lfe,bundlerModuleNameResolver:()=>OR,canBeConvertedToAsync:()=>q1,canHaveDecorators:()=>_I,canHaveExportModifier:()=>$T,canHaveFlowNode:()=>Og,canHaveIllegalDecorators:()=>EA,canHaveIllegalModifiers:()=>PA,canHaveIllegalType:()=>DA,canHaveIllegalTypeParameters:()=>FA,canHaveJSDoc:()=>Lg,canHaveLocals:()=>su,canHaveModifiers:()=>lI,canHaveModuleSpecifier:()=>hg,canHaveSymbol:()=>au,canIncludeBindAndCheckDiagnostics:()=>fT,canJsonReportNoInputFiles:()=>oj,canProduceDiagnostics:()=>gq,canUsePropertyAccess:()=>KT,canWatchAffectingLocation:()=>VW,canWatchAtTypes:()=>zW,canWatchDirectoryOrFile:()=>BW,canWatchDirectoryOrFilePath:()=>JW,cartesianProduct:()=>on,cast:()=>tt,chainBundle:()=>RJ,chainDiagnosticMessages:()=>ek,changeAnyExtension:()=>Ho,changeCompilerHostLikeToUseCache:()=>RU,changeExtension:()=>HS,changeFullExtension:()=>Ko,changesAffectModuleResolution:()=>Yu,changesAffectingProgramStructure:()=>Zu,characterCodeToRegularExpressionFlag:()=>Ia,childIsDecorated:()=>mm,classElementOrClassElementParameterIsDecorated:()=>hm,classHasClassThisAssignment:()=>wz,classHasDeclaredOrExplicitlyAssignedName:()=>Az,classHasExplicitlyAssignedName:()=>Pz,classOrConstructorParameterIsDecorated:()=>gm,classicNameResolver:()=>DM,classifier:()=>P7,cleanExtendedConfigCache:()=>xU,clear:()=>N,clearMap:()=>dx,clearSharedExtendedConfigFileWatcher:()=>bU,climbPastPropertyAccess:()=>tX,clone:()=>ze,cloneCompilerOptions:()=>kQ,closeFileWatcher:()=>rx,closeFileWatcherOf:()=>FU,codefix:()=>I7,collapseTextChangeRangesAcrossMultipleVersions:()=>Qs,collectExternalModuleInfo:()=>zJ,combine:()=>ie,combinePaths:()=>Ro,commandLineOptionOfCustomType:()=>EO,commentPragmas:()=>Oi,commonOptionsWithBuild:()=>gO,compact:()=>te,compareBooleans:()=>It,compareDataObjects:()=>ux,compareDiagnostics:()=>rk,compareEmitHelpers:()=>Vw,compareNumberOfDirectorySeparators:()=>qS,comparePaths:()=>Zo,comparePathsCaseInsensitive:()=>Yo,comparePathsCaseSensitive:()=>Qo,comparePatternKeys:()=>uM,compareProperties:()=>At,compareStringsCaseInsensitive:()=>kt,compareStringsCaseInsensitiveEslintCompatible:()=>St,compareStringsCaseSensitive:()=>Tt,compareStringsCaseSensitiveUI:()=>Pt,compareTextSpans:()=>vt,compareValues:()=>yt,compilerOptionsAffectDeclarationPath:()=>$k,compilerOptionsAffectEmit:()=>Wk,compilerOptionsAffectSemanticDiagnostics:()=>Vk,compilerOptionsDidYouMeanDiagnostics:()=>GO,compilerOptionsIndicateEsModules:()=>$Q,computeCommonSourceDirectoryOfFilenames:()=>AU,computeLineAndCharacterOfPosition:()=>Ma,computeLineOfPosition:()=>Ba,computeLineStarts:()=>Oa,computePositionOfLineAndCharacter:()=>ja,computeSignatureWithDiagnostics:()=>TW,computeSuggestionDiagnostics:()=>A1,computedOptions:()=>hk,concatenate:()=>$,concatenateDiagnosticMessageChains:()=>tk,consumesNodeCoreModules:()=>JZ,contains:()=>k,containsIgnoredPath:()=>OT,containsObjectRestOrSpread:()=>sI,containsParseError:()=>hd,containsPath:()=>ea,convertCompilerOptionsForTelemetry:()=>Rj,convertCompilerOptionsFromJson:()=>_j,convertJsonOption:()=>yj,convertToBase64:()=>Sb,convertToJson:()=>wL,convertToObject:()=>CL,convertToOptionsWithAbsolutePaths:()=>JL,convertToRelativePath:()=>ia,convertToTSConfig:()=>FL,convertTypeAcquisitionFromJson:()=>uj,copyComments:()=>iZ,copyEntries:()=>id,copyLeadingComments:()=>lZ,copyProperties:()=>Ue,copyTrailingAsLeadingComments:()=>uZ,copyTrailingComments:()=>_Z,couldStartTrivia:()=>Xa,countWhere:()=>T,createAbstractBuilder:()=>jW,createAccessorPropertyBackingField:()=>tI,createAccessorPropertyGetRedirector:()=>nI,createAccessorPropertySetRedirector:()=>rI,createBaseNodeFactory:()=>AC,createBinaryExpressionTrampoline:()=>KA,createBuilderProgram:()=>CW,createBuilderProgramUsingIncrementalBuildInfo:()=>EW,createBuilderStatusReporter:()=>H$,createCacheableExportInfoMap:()=>f0,createCachedDirectoryStructureHost:()=>hU,createClassifier:()=>w0,createCommentDirectivesMap:()=>Bd,createCompilerDiagnostic:()=>Yx,createCompilerDiagnosticForInvalidCustomType:()=>JO,createCompilerDiagnosticFromMessageChain:()=>Zx,createCompilerHost:()=>IU,createCompilerHostFromProgramHost:()=>w$,createCompilerHostWorker:()=>jU,createDetachedDiagnostic:()=>$x,createDiagnosticCollection:()=>_y,createDiagnosticForFileFromMessageChain:()=>Vp,createDiagnosticForNode:()=>Rp,createDiagnosticForNodeArray:()=>Mp,createDiagnosticForNodeArrayFromMessageChain:()=>zp,createDiagnosticForNodeFromMessageChain:()=>Jp,createDiagnosticForNodeInSourceFile:()=>Bp,createDiagnosticForRange:()=>$p,createDiagnosticMessageChainFromDiagnostic:()=>Wp,createDiagnosticReporter:()=>t$,createDocumentPositionMapper:()=>AJ,createDocumentRegistry:()=>q0,createDocumentRegistryInternal:()=>U0,createEmitAndSemanticDiagnosticsBuilderProgram:()=>LW,createEmitHelperFactory:()=>Uw,createEmptyExports:()=>qP,createEvaluator:()=>hC,createExpressionForJsxElement:()=>HP,createExpressionForJsxFragment:()=>KP,createExpressionForObjectLiteralElementLike:()=>YP,createExpressionForPropertyName:()=>QP,createExpressionFromEntityName:()=>XP,createExternalHelpersImportDeclarationIfNeeded:()=>gA,createFileDiagnostic:()=>Xx,createFileDiagnosticFromMessageChain:()=>Up,createFlowNode:()=>JM,createForOfBindingStatement:()=>GP,createFutureSourceFile:()=>u0,createGetCanonicalFileName:()=>Vt,createGetIsolatedDeclarationErrors:()=>vq,createGetSourceFile:()=>OU,createGetSymbolAccessibilityDiagnosticForNode:()=>yq,createGetSymbolAccessibilityDiagnosticForNodeName:()=>hq,createGetSymbolWalker:()=>KM,createIncrementalCompilerHost:()=>j$,createIncrementalProgram:()=>R$,createJsxFactoryExpression:()=>$P,createLanguageService:()=>i7,createLanguageServiceSourceFile:()=>Q8,createMemberAccessForPropertyName:()=>UP,createModeAwareCache:()=>vR,createModeAwareCacheKey:()=>yR,createModeMismatchDetails:()=>dd,createModuleNotFoundChain:()=>ud,createModuleResolutionCache:()=>TR,createModuleResolutionLoader:()=>_V,createModuleResolutionLoaderUsingGlobalCache:()=>QW,createModuleSpecifierResolutionHost:()=>HQ,createMultiMap:()=>We,createNameResolver:()=>bC,createNodeConverters:()=>LC,createNodeFactory:()=>qC,createOptionNameMap:()=>jO,createOverload:()=>Ofe,createPackageJsonImportFilter:()=>BZ,createPackageJsonInfo:()=>MZ,createParenthesizerRules:()=>IC,createPatternMatcher:()=>n1,createPrinter:()=>pU,createPrinterWithDefaults:()=>lU,createPrinterWithRemoveComments:()=>_U,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>uU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>dU,createProgram:()=>EV,createProgramHost:()=>F$,createPropertyNameNodeForIdentifierOrLiteral:()=>qT,createQueue:()=>Ke,createRange:()=>Ib,createRedirectedBuilderProgram:()=>IW,createResolutionCache:()=>YW,createRuntimeTypeSerializer:()=>Vz,createScanner:()=>gs,createSemanticDiagnosticsBuilderProgram:()=>OW,createSet:()=>Ge,createSolutionBuilder:()=>Q$,createSolutionBuilderHost:()=>G$,createSolutionBuilderWithWatch:()=>Y$,createSolutionBuilderWithWatchHost:()=>X$,createSortedArray:()=>Q,createSourceFile:()=>zI,createSourceMapGenerator:()=>mJ,createSourceMapSource:()=>ew,createSuperAccessVariableStatement:()=>Kz,createSymbolTable:()=>Ku,createSymlinkCache:()=>Yk,createSyntacticTypeNodeBuilder:()=>zK,createSystemWatchFunctions:()=>ao,createTextChange:()=>OQ,createTextChangeFromStartLength:()=>IQ,createTextChangeRange:()=>Gs,createTextRangeFromNode:()=>EQ,createTextRangeFromSpan:()=>AQ,createTextSpan:()=>Ws,createTextSpanFromBounds:()=>$s,createTextSpanFromNode:()=>DQ,createTextSpanFromRange:()=>PQ,createTextSpanFromStringLiteralLikeContent:()=>FQ,createTextWriter:()=>Oy,createTokenRange:()=>Mb,createTypeChecker:()=>GB,createTypeReferenceDirectiveResolutionCache:()=>CR,createTypeReferenceResolutionLoader:()=>pV,createWatchCompilerHost:()=>M$,createWatchCompilerHostOfConfigFile:()=>A$,createWatchCompilerHostOfFilesAndCompilerOptions:()=>I$,createWatchFactory:()=>C$,createWatchHost:()=>S$,createWatchProgram:()=>B$,createWatchStatusReporter:()=>o$,createWriteFileMeasuringIO:()=>LU,declarationNameToString:()=>Pp,decodeMappings:()=>SJ,decodedTextSpanIntersectsWith:()=>Js,deduplicate:()=>X,defaultInitCompilerOptions:()=>BO,defaultMaximumTruncationLength:()=>Vu,diagnosticCategoryName:()=>si,diagnosticToString:()=>i0,diagnosticsEqualityComparer:()=>sk,directoryProbablyExists:()=>Fb,directorySeparator:()=>_o,displayPart:()=>kY,displayPartsToString:()=>$8,disposeEmitNodes:()=>rw,documentSpansEqual:()=>pY,dumpTracingLegend:()=>dr,elementAt:()=>de,elideNodes:()=>XA,emitDetachedComments:()=>xv,emitFiles:()=>oU,emitFilesAndReportErrors:()=>v$,emitFilesAndReportErrorsAndGetExitStatus:()=>b$,emitModuleKindIsNonNodeESM:()=>Lk,emitNewLineBeforeLeadingCommentOfPosition:()=>bv,emitResolverSkipsTypeChecking:()=>iU,emitSkippedWithNoDiagnostics:()=>LV,emptyArray:()=>s,emptyFileSystemEntries:()=>iT,emptyMap:()=>c,emptyOptions:()=>bG,endsWith:()=>jt,ensurePathIsNonModuleName:()=>$o,ensureScriptKind:()=>xS,ensureTrailingDirectorySeparator:()=>Wo,entityNameToString:()=>jp,enumerateInsertsAndDeletes:()=>rn,equalOwnProperties:()=>Le,equateStringsCaseInsensitive:()=>mt,equateStringsCaseSensitive:()=>gt,equateValues:()=>ft,escapeJsxAttributeString:()=>Dy,escapeLeadingUnderscores:()=>fc,escapeNonAsciiString:()=>Sy,escapeSnippetText:()=>JT,escapeString:()=>xy,escapeTemplateSubstitution:()=>dy,evaluatorResult:()=>gC,every:()=>h,exclusivelyPrefixedNodeCoreModules:()=>NC,executeCommandLine:()=>hK,expandPreOrPostfixIncrementOrDecrementExpression:()=>ZP,explainFiles:()=>p$,explainIfFileIsRedirectAndImpliedFormat:()=>f$,exportAssignmentIsAlias:()=>mh,expressionResultIsUnused:()=>IT,extend:()=>qe,extensionFromPath:()=>eT,extensionIsTS:()=>YS,extensionsNotSupportingExtensionlessResolution:()=>AS,externalHelpersModuleNameText:()=>Uu,factory:()=>ZC,fileExtensionIs:()=>So,fileExtensionIsOneOf:()=>To,fileIncludeReasonToDiagnostics:()=>h$,fileShouldUseJavaScriptRequire:()=>l0,filter:()=>C,filterMutate:()=>w,filterSemanticDiagnostics:()=>RV,find:()=>y,findAncestor:()=>uc,findBestPatternMatch:()=>Ht,findChildOfKind:()=>AX,findComputedPropertyNameCacheAssignment:()=>iI,findConfigFile:()=>EU,findConstructorDeclaration:()=>vC,findContainingList:()=>IX,findDiagnosticForNode:()=>UZ,findFirstNonJsxWhitespaceToken:()=>KX,findIndex:()=>b,findLast:()=>v,findLastIndex:()=>x,findListItemInfo:()=>EX,findModifier:()=>lY,findNextToken:()=>XX,findPackageJson:()=>RZ,findPackageJsons:()=>jZ,findPrecedingMatchingToken:()=>sQ,findPrecedingToken:()=>QX,findSuperStatementIndexPath:()=>YJ,findTokenOnLeftOfPosition:()=>GX,findUseStrictPrologue:()=>iA,first:()=>me,firstDefined:()=>d,firstDefinedIterator:()=>p,firstIterator:()=>ge,firstOrOnly:()=>KZ,firstOrUndefined:()=>pe,firstOrUndefinedIterator:()=>fe,fixupCompilerOptions:()=>Y1,flatMap:()=>A,flatMapIterator:()=>O,flatMapToMutable:()=>I,flatten:()=>P,flattenCommaList:()=>aI,flattenDestructuringAssignment:()=>gz,flattenDestructuringBinding:()=>vz,flattenDiagnosticMessageText:()=>ZU,forEach:()=>_,forEachAncestor:()=>td,forEachAncestorDirectory:()=>sa,forEachAncestorDirectoryStoppingAtGlobalCache:()=>hM,forEachChild:()=>RI,forEachChildRecursively:()=>MI,forEachDynamicImportOrRequireCall:()=>FC,forEachEmittedFile:()=>Bq,forEachEnclosingBlockScopeContainer:()=>Ep,forEachEntry:()=>nd,forEachExternalModuleToImportFrom:()=>h0,forEachImportClauseDeclaration:()=>Cg,forEachKey:()=>rd,forEachLeadingCommentRange:()=>os,forEachNameInAccessChainWalkingLeft:()=>Dx,forEachNameOfDefaultExport:()=>C0,forEachPropertyAssignment:()=>Uf,forEachResolvedProjectReference:()=>mV,forEachReturnStatement:()=>Nf,forEachRight:()=>u,forEachTrailingCommentRange:()=>as,forEachTsConfigPropArray:()=>Hf,forEachUnique:()=>mY,forEachYieldExpression:()=>Df,formatColorAndReset:()=>GU,formatDiagnostic:()=>JU,formatDiagnostics:()=>BU,formatDiagnosticsWithColorAndContext:()=>YU,formatGeneratedName:()=>eI,formatGeneratedNamePart:()=>YA,formatLocation:()=>QU,formatMessage:()=>Qx,formatStringFromArgs:()=>qx,formatting:()=>Sde,generateDjb2Hash:()=>ji,generateTSConfig:()=>BL,getAdjustedReferenceLocation:()=>qX,getAdjustedRenameLocation:()=>UX,getAliasDeclarationFromName:()=>ph,getAllAccessorDeclarations:()=>pv,getAllDecoratorsOfClass:()=>oz,getAllDecoratorsOfClassElement:()=>az,getAllJSDocTags:()=>sl,getAllJSDocTagsOfKind:()=>cl,getAllKeys:()=>Ee,getAllProjectOutputs:()=>tU,getAllSuperTypeNodes:()=>xh,getAllowImportingTsExtensions:()=>yk,getAllowJSCompilerOption:()=>Ik,getAllowSyntheticDefaultImports:()=>Ck,getAncestor:()=>Th,getAnyExtensionFromPath:()=>Ao,getAreDeclarationMapsEnabled:()=>Ak,getAssignedExpandoInitializer:()=>$m,getAssignedName:()=>wc,getAssignmentDeclarationKind:()=>tg,getAssignmentDeclarationPropertyAccessKind:()=>ug,getAssignmentTargetKind:()=>Xg,getAutomaticTypeDirectiveNames:()=>uR,getBaseFileName:()=>Eo,getBinaryOperatorPrecedence:()=>cy,getBuildInfo:()=>sU,getBuildInfoFileVersionMap:()=>PW,getBuildInfoText:()=>aU,getBuildOrderFromAnyBuildOrder:()=>$$,getBuilderCreationParameters:()=>kW,getBuilderFileEmit:()=>KV,getCanonicalDiagnostic:()=>Hp,getCheckFlags:()=>ix,getClassExtendsHeritageElement:()=>vh,getClassLikeDeclarationOfSymbol:()=>gx,getCombinedLocalAndExportSymbolFlags:()=>sx,getCombinedModifierFlags:()=>ic,getCombinedNodeFlags:()=>ac,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>oc,getCommentRange:()=>mw,getCommonSourceDirectory:()=>Zq,getCommonSourceDirectoryOfConfig:()=>eU,getCompilerOptionValue:()=>Hk,getCompilerOptionsDiffValue:()=>RL,getConditions:()=>lR,getConfigFileParsingDiagnostics:()=>wV,getConstantValue:()=>Tw,getContainerFlags:()=>$M,getContainerNode:()=>mX,getContainingClass:()=>Xf,getContainingClassExcludingClassDecorators:()=>Zf,getContainingClassStaticBlock:()=>Qf,getContainingFunction:()=>Kf,getContainingFunctionDeclaration:()=>Gf,getContainingFunctionOrClassStaticBlock:()=>Yf,getContainingNodeArray:()=>LT,getContainingObjectLiteralElement:()=>a7,getContextualTypeFromParent:()=>mZ,getContextualTypeFromParentOrAncestorTypeNode:()=>RX,getDeclarationDiagnostics:()=>bq,getDeclarationEmitExtensionForPath:()=>Wy,getDeclarationEmitOutputFilePath:()=>Uy,getDeclarationEmitOutputFilePathWorker:()=>Vy,getDeclarationFileExtension:()=>ZI,getDeclarationFromName:()=>_h,getDeclarationModifierFlagsFromSymbol:()=>ox,getDeclarationOfKind:()=>$u,getDeclarationsOfKind:()=>Hu,getDeclaredExpandoInitializer:()=>Wm,getDecorators:()=>Nc,getDefaultCompilerOptions:()=>H8,getDefaultFormatCodeSettings:()=>DG,getDefaultLibFileName:()=>Ds,getDefaultLibFilePath:()=>c7,getDefaultLikeExportInfo:()=>S0,getDefaultLikeExportNameFromDeclaration:()=>XZ,getDefaultResolutionModeForFileWorker:()=>OV,getDiagnosticText:()=>nL,getDiagnosticsWithinSpan:()=>VZ,getDirectoryPath:()=>Fo,getDirectoryToWatchFailedLookupLocation:()=>WW,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>KW,getDocumentPositionMapper:()=>F1,getDocumentSpansEqualityComparer:()=>fY,getESModuleInterop:()=>Tk,getEditsForFileRename:()=>$0,getEffectiveBaseTypeNode:()=>yh,getEffectiveConstraintOfTypeParameter:()=>ul,getEffectiveContainerForJSDocTemplateTag:()=>Jg,getEffectiveImplementsTypeNodes:()=>bh,getEffectiveInitializer:()=>Vm,getEffectiveJSDocHost:()=>Ug,getEffectiveModifierFlags:()=>Jv,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>zv,getEffectiveModifierFlagsNoCache:()=>Wv,getEffectiveReturnTypeNode:()=>gv,getEffectiveSetAccessorTypeAnnotationNode:()=>yv,getEffectiveTypeAnnotationNode:()=>fv,getEffectiveTypeParameterDeclarations:()=>_l,getEffectiveTypeRoots:()=>nR,getElementOrPropertyAccessArgumentExpressionOrName:()=>lg,getElementOrPropertyAccessName:()=>_g,getElementsOfBindingOrAssignmentPattern:()=>wA,getEmitDeclarations:()=>Fk,getEmitFlags:()=>Yd,getEmitHelpers:()=>Fw,getEmitModuleDetectionKind:()=>kk,getEmitModuleFormatOfFileWorker:()=>AV,getEmitModuleKind:()=>bk,getEmitModuleResolutionKind:()=>xk,getEmitScriptTarget:()=>vk,getEmitStandardClassFields:()=>Uk,getEnclosingBlockScopeContainer:()=>Fp,getEnclosingContainer:()=>Dp,getEncodedSemanticClassifications:()=>L0,getEncodedSyntacticClassifications:()=>J0,getEndLinePosition:()=>Td,getEntityNameFromTypeNode:()=>_m,getEntrypointsFromPackageJsonInfo:()=>ZR,getErrorCountForSummary:()=>s$,getErrorSpanForNode:()=>Xp,getErrorSummaryText:()=>u$,getEscapedTextOfIdentifierOrLiteral:()=>Uh,getEscapedTextOfJsxAttributeName:()=>nC,getEscapedTextOfJsxNamespacedName:()=>oC,getExpandoInitializer:()=>Hm,getExportAssignmentExpression:()=>gh,getExportInfoMap:()=>k0,getExportNeedsImportStarHelper:()=>MJ,getExpressionAssociativity:()=>ny,getExpressionPrecedence:()=>iy,getExternalHelpersModuleName:()=>fA,getExternalModuleImportEqualsDeclarationExpression:()=>Cm,getExternalModuleName:()=>kg,getExternalModuleNameFromDeclaration:()=>Jy,getExternalModuleNameFromPath:()=>zy,getExternalModuleNameLiteral:()=>yA,getExternalModuleRequireArgument:()=>wm,getFallbackOptions:()=>DU,getFileEmitOutput:()=>UV,getFileMatcherPatterns:()=>gS,getFileNamesFromConfigSpecs:()=>Cj,getFileWatcherEventKind:()=>Qi,getFilesInErrorForSummary:()=>c$,getFirstConstructorWithBody:()=>iv,getFirstIdentifier:()=>cb,getFirstNonSpaceCharacterPosition:()=>KY,getFirstProjectOutput:()=>rU,getFixableErrorSpanExpression:()=>$Z,getFormatCodeSettingsForWriting:()=>o0,getFullWidth:()=>ad,getFunctionFlags:()=>Oh,getHeritageClause:()=>Sh,getHostSignatureFromJSDoc:()=>qg,getIdentifierAutoGenerate:()=>Bw,getIdentifierGeneratedImportReference:()=>zw,getIdentifierTypeArguments:()=>Rw,getImmediatelyInvokedFunctionExpression:()=>om,getImpliedNodeFormatForEmitWorker:()=>IV,getImpliedNodeFormatForFile:()=>NV,getImpliedNodeFormatForFileWorker:()=>DV,getImportNeedsImportDefaultHelper:()=>JJ,getImportNeedsImportStarHelper:()=>BJ,getIndentString:()=>Ay,getInferredLibraryNameResolveFrom:()=>yV,getInitializedVariables:()=>ex,getInitializerOfBinaryExpression:()=>dg,getInitializerOfBindingOrAssignmentElement:()=>bA,getInterfaceBaseTypeNodes:()=>kh,getInternalEmitFlags:()=>Zd,getInvokedExpression:()=>um,getIsFileExcluded:()=>x0,getIsolatedModules:()=>Sk,getJSDocAugmentsTag:()=>jc,getJSDocClassTag:()=>Mc,getJSDocCommentRanges:()=>yf,getJSDocCommentsAndTags:()=>jg,getJSDocDeprecatedTag:()=>Kc,getJSDocDeprecatedTagNoCache:()=>Gc,getJSDocEnumTag:()=>Xc,getJSDocHost:()=>Vg,getJSDocImplementsTags:()=>Rc,getJSDocOverloadTags:()=>zg,getJSDocOverrideTagNoCache:()=>Hc,getJSDocParameterTags:()=>Ec,getJSDocParameterTagsNoCache:()=>Pc,getJSDocPrivateTag:()=>zc,getJSDocPrivateTagNoCache:()=>qc,getJSDocProtectedTag:()=>Uc,getJSDocProtectedTagNoCache:()=>Vc,getJSDocPublicTag:()=>Bc,getJSDocPublicTagNoCache:()=>Jc,getJSDocReadonlyTag:()=>Wc,getJSDocReadonlyTagNoCache:()=>$c,getJSDocReturnTag:()=>Yc,getJSDocReturnType:()=>rl,getJSDocRoot:()=>Wg,getJSDocSatisfiesExpressionType:()=>eC,getJSDocSatisfiesTag:()=>el,getJSDocTags:()=>ol,getJSDocTemplateTag:()=>Zc,getJSDocThisTag:()=>Qc,getJSDocType:()=>nl,getJSDocTypeAliasName:()=>NA,getJSDocTypeAssertionType:()=>lA,getJSDocTypeParameterDeclarations:()=>hv,getJSDocTypeParameterTags:()=>Ic,getJSDocTypeParameterTagsNoCache:()=>Oc,getJSDocTypeTag:()=>tl,getJSXImplicitImportBase:()=>Gk,getJSXRuntimeImport:()=>Xk,getJSXTransformEnabled:()=>Kk,getKeyForCompilerOptions:()=>mR,getLanguageVariant:()=>_k,getLastChild:()=>bx,getLeadingCommentRanges:()=>_s,getLeadingCommentRangesOfNode:()=>hf,getLeftmostAccessExpression:()=>Nx,getLeftmostExpression:()=>Fx,getLibraryNameFromLibFileName:()=>vV,getLineAndCharacterOfPosition:()=>za,getLineInfo:()=>vJ,getLineOfLocalPosition:()=>nv,getLineStartPositionForPosition:()=>vX,getLineStarts:()=>Ra,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Xb,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Gb,getLinesBetweenPositions:()=>Ja,getLinesBetweenRangeEndAndRangeStart:()=>Vb,getLinesBetweenRangeEndPositions:()=>Wb,getLiteralText:()=>np,getLocalNameForExternalImport:()=>hA,getLocalSymbolForExportDefault:()=>bb,getLocaleSpecificMessage:()=>Wx,getLocaleTimeString:()=>i$,getMappedContextSpan:()=>vY,getMappedDocumentSpan:()=>yY,getMappedLocation:()=>hY,getMatchedFileSpec:()=>m$,getMatchedIncludeSpec:()=>g$,getMeaningFromDeclaration:()=>qG,getMeaningFromLocation:()=>UG,getMembersOfDeclaration:()=>Ef,getModeForFileReference:()=>eV,getModeForResolutionAtIndex:()=>tV,getModeForUsageLocation:()=>rV,getModifiedTime:()=>zi,getModifiers:()=>Dc,getModuleInstanceState:()=>jM,getModuleNameStringLiteralAt:()=>qV,getModuleSpecifierEndingPreference:()=>BS,getModuleSpecifierResolverHost:()=>KQ,getNameForExportedSymbol:()=>GZ,getNameFromImportAttribute:()=>fC,getNameFromIndexInfo:()=>Ap,getNameFromPropertyName:()=>UQ,getNameOfAccessExpression:()=>Cx,getNameOfCompilerOptionValue:()=>OL,getNameOfDeclaration:()=>Cc,getNameOfExpando:()=>Gm,getNameOfJSDocTypedef:()=>kc,getNameOfScriptTarget:()=>qk,getNameOrArgument:()=>cg,getNameTable:()=>o7,getNamespaceDeclarationNode:()=>Sg,getNewLineCharacter:()=>Ab,getNewLineKind:()=>r0,getNewLineOrDefaultFromHost:()=>RY,getNewTargetContainer:()=>rm,getNextJSDocCommentLocation:()=>Mg,getNodeChildren:()=>MP,getNodeForGeneratedName:()=>QA,getNodeId:()=>$B,getNodeKind:()=>gX,getNodeModifiers:()=>fQ,getNodeModulePathParts:()=>VT,getNonAssignedNameOfDeclaration:()=>Tc,getNonAssignmentOperatorForCompoundAssignment:()=>GJ,getNonAugmentationDeclaration:()=>mp,getNonDecoratorTokenPosOfNode:()=>zd,getNonIncrementalBuildInfoRoots:()=>AW,getNonModifierTokenPosOfNode:()=>qd,getNormalizedAbsolutePath:()=>Jo,getNormalizedAbsolutePathWithoutRoot:()=>qo,getNormalizedPathComponents:()=>Bo,getObjectFlags:()=>hx,getOperatorAssociativity:()=>ry,getOperatorPrecedence:()=>sy,getOptionFromName:()=>QO,getOptionsForLibraryResolution:()=>wR,getOptionsNameMap:()=>RO,getOrCreateEmitNode:()=>nw,getOrUpdate:()=>B,getOriginalNode:()=>_c,getOriginalNodeId:()=>OJ,getOutputDeclarationFileName:()=>$q,getOutputDeclarationFileNameWorker:()=>Hq,getOutputExtension:()=>Vq,getOutputFileNames:()=>nU,getOutputJSFileNameWorker:()=>Gq,getOutputPathsFor:()=>qq,getOwnEmitOutputFilePath:()=>qy,getOwnKeys:()=>Fe,getOwnValues:()=>Pe,getPackageJsonTypesVersionsPaths:()=>tR,getPackageNameFromTypesPackageName:()=>CM,getPackageScopeForPath:()=>nM,getParameterSymbolFromJSDoc:()=>Bg,getParentNodeInSpan:()=>sY,getParseTreeNode:()=>pc,getParsedCommandLineOfConfigFile:()=>rL,getPathComponents:()=>Io,getPathFromPathComponents:()=>Oo,getPathUpdater:()=>H0,getPathsBasePath:()=>Ky,getPatternFromSpec:()=>pS,getPendingEmitKindWithSeen:()=>aW,getPositionOfLineAndCharacter:()=>La,getPossibleGenericSignatures:()=>lQ,getPossibleOriginalInputExtensionForExtension:()=>$y,getPossibleOriginalInputPathWithoutChangingExt:()=>Hy,getPossibleTypeArgumentsInfo:()=>_Q,getPreEmitDiagnostics:()=>MU,getPrecedingNonSpaceCharacterPosition:()=>GY,getPrivateIdentifier:()=>lz,getProperties:()=>ZJ,getProperty:()=>De,getPropertyArrayElementValue:()=>Vf,getPropertyAssignmentAliasLikeExpression:()=>hh,getPropertyNameForPropertyNameNode:()=>Jh,getPropertyNameFromType:()=>lC,getPropertyNameOfBindingOrAssignmentElement:()=>SA,getPropertySymbolFromBindingElement:()=>aY,getPropertySymbolsFromContextualType:()=>s7,getQuoteFromPreference:()=>tY,getQuotePreference:()=>eY,getRangesWhere:()=>W,getRefactorContextSpan:()=>WZ,getReferencedFileLocation:()=>TV,getRegexFromPattern:()=>hS,getRegularExpressionForWildcard:()=>_S,getRegularExpressionsForWildcards:()=>uS,getRelativePathFromDirectory:()=>ra,getRelativePathFromFile:()=>oa,getRelativePathToDirectoryOrUrl:()=>aa,getRenameLocation:()=>cZ,getReplacementSpanForContextToken:()=>NQ,getResolutionDiagnostic:()=>JV,getResolutionModeOverride:()=>aV,getResolveJsonModule:()=>Dk,getResolvePackageJsonExports:()=>wk,getResolvePackageJsonImports:()=>Nk,getResolvedExternalModuleName:()=>My,getResolvedModuleFromResolution:()=>ld,getResolvedTypeReferenceDirectiveFromResolution:()=>_d,getRestIndicatorOfBindingOrAssignmentElement:()=>kA,getRestParameterElementType:()=>Ff,getRightMostAssignedExpression:()=>Qm,getRootDeclaration:()=>Yh,getRootDirectoryOfResolutionCache:()=>GW,getRootLength:()=>Do,getScriptKind:()=>VY,getScriptKindFromFileName:()=>kS,getScriptTargetFeatures:()=>ep,getSelectedEffectiveModifierFlags:()=>Rv,getSelectedSyntacticModifierFlags:()=>Mv,getSemanticClassifications:()=>I0,getSemanticJsxChildren:()=>ly,getSetAccessorTypeAnnotationNode:()=>av,getSetAccessorValueParameter:()=>ov,getSetExternalModuleIndicator:()=>fk,getShebang:()=>ds,getSingleVariableOfVariableStatement:()=>Ag,getSnapshotText:()=>JQ,getSnippetElement:()=>Pw,getSourceFileOfModule:()=>vd,getSourceFileOfNode:()=>yd,getSourceFilePathInNewDir:()=>Qy,getSourceFileVersionAsHashFromText:()=>N$,getSourceFilesToEmit:()=>Gy,getSourceMapRange:()=>lw,getSourceMapper:()=>D1,getSourceTextOfNodeFromSourceFile:()=>Ud,getSpanOfTokenAtPosition:()=>Kp,getSpellingSuggestion:()=>Ot,getStartPositionOfLine:()=>kd,getStartPositionOfRange:()=>Kb,getStartsOnNewLine:()=>pw,getStaticPropertiesAndClassStaticBlock:()=>tz,getStrictOptionValue:()=>zk,getStringComparer:()=>Ct,getSubPatternFromSpec:()=>fS,getSuperCallFromStatement:()=>XJ,getSuperContainer:()=>im,getSupportedCodeFixes:()=>K8,getSupportedExtensions:()=>IS,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>OS,getSwitchedType:()=>bZ,getSymbolId:()=>HB,getSymbolNameForPrivateIdentifier:()=>Vh,getSymbolTarget:()=>WY,getSyntacticClassifications:()=>B0,getSyntacticModifierFlags:()=>qv,getSyntacticModifierFlagsNoCache:()=>$v,getSynthesizedDeepClone:()=>XY,getSynthesizedDeepCloneWithReplacements:()=>QY,getSynthesizedDeepClones:()=>ZY,getSynthesizedDeepClonesWithReplacements:()=>eZ,getSyntheticLeadingComments:()=>hw,getSyntheticTrailingComments:()=>bw,getTargetLabel:()=>nX,getTargetOfBindingOrAssignmentElement:()=>xA,getTemporaryModuleResolutionState:()=>tM,getTextOfConstantValue:()=>rp,getTextOfIdentifierOrLiteral:()=>qh,getTextOfJSDocComment:()=>ll,getTextOfJsxAttributeName:()=>rC,getTextOfJsxNamespacedName:()=>aC,getTextOfNode:()=>Gd,getTextOfNodeFromSourceText:()=>Kd,getTextOfPropertyName:()=>Lp,getThisContainer:()=>em,getThisParameter:()=>sv,getTokenAtPosition:()=>$X,getTokenPosOfNode:()=>Jd,getTokenSourceMapRange:()=>uw,getTouchingPropertyName:()=>VX,getTouchingToken:()=>WX,getTrailingCommentRanges:()=>us,getTrailingSemicolonDeferringWriter:()=>Ly,getTransformers:()=>Nq,getTsBuildInfoEmitOutputFilePath:()=>Jq,getTsConfigObjectLiteralExpression:()=>Wf,getTsConfigPropArrayElementValue:()=>$f,getTypeAnnotationNode:()=>mv,getTypeArgumentOrTypeParameterList:()=>mQ,getTypeKeywordOfTypeOnlyImport:()=>uY,getTypeNode:()=>Lw,getTypeNodeIfAccessible:()=>kZ,getTypeParameterFromJsDoc:()=>$g,getTypeParameterOwner:()=>Ys,getTypesPackageName:()=>SM,getUILocale:()=>Ft,getUniqueName:()=>sZ,getUniqueSymbolId:()=>HY,getUseDefineForClassFields:()=>Ok,getWatchErrorSummaryDiagnosticMessage:()=>l$,getWatchFactory:()=>NU,group:()=>Be,groupBy:()=>Je,guessIndentation:()=>Lu,handleNoEmitOptions:()=>jV,handleWatchOptionsConfigDirTemplateSubstitution:()=>GL,hasAbstractModifier:()=>Av,hasAccessorModifier:()=>Ov,hasAmbientModifier:()=>Iv,hasChangesInResolutions:()=>gd,hasContextSensitiveParameters:()=>jT,hasDecorators:()=>jv,hasDocComment:()=>dQ,hasDynamicName:()=>Mh,hasEffectiveModifier:()=>Nv,hasEffectiveModifiers:()=>Cv,hasEffectiveReadonlyModifier:()=>Lv,hasExtension:()=>ko,hasImplementationTSFileExtension:()=>RS,hasIndexSignature:()=>vZ,hasInferredType:()=>SC,hasInitializer:()=>Eu,hasInvalidEscape:()=>fy,hasJSDocNodes:()=>Du,hasJSDocParameterTags:()=>Lc,hasJSFileExtension:()=>LS,hasJsonModuleEmitEnabled:()=>jk,hasOnlyExpressionInitializer:()=>Pu,hasOverrideModifier:()=>Pv,hasPossibleExternalModuleReference:()=>wp,hasProperty:()=>Ne,hasPropertyAccessExpressionWithName:()=>rX,hasQuestionToken:()=>wg,hasRecordedExternalHelpers:()=>mA,hasResolutionModeOverride:()=>uC,hasRestParameter:()=>Mu,hasScopeMarker:()=>K_,hasStaticModifier:()=>Ev,hasSyntacticModifier:()=>Dv,hasSyntacticModifiers:()=>wv,hasTSFileExtension:()=>jS,hasTabstop:()=>GT,hasTrailingDirectorySeparator:()=>Co,hasType:()=>Fu,hasTypeArguments:()=>Hg,hasZeroOrOneAsteriskCharacter:()=>Qk,hostGetCanonicalFileName:()=>Ry,hostUsesCaseSensitiveFileNames:()=>jy,idText:()=>gc,identifierIsThisKeyword:()=>dv,identifierToKeywordKind:()=>hc,identity:()=>at,identitySourceMapConsumer:()=>IJ,ignoreSourceNewlines:()=>Iw,ignoredPaths:()=>Yi,importFromModuleSpecifier:()=>vg,importSyntaxAffectsModuleResolution:()=>mk,indexOfAnyCharCode:()=>S,indexOfNode:()=>Qd,indicesOf:()=>K,inferredTypesContainingFile:()=>hV,injectClassNamedEvaluationHelperBlockIfMissing:()=>Iz,injectClassThisAssignmentIfMissing:()=>Nz,insertImports:()=>_Y,insertSorted:()=>Y,insertStatementAfterCustomPrologue:()=>jd,insertStatementAfterStandardPrologue:()=>Ld,insertStatementsAfterCustomPrologue:()=>Od,insertStatementsAfterStandardPrologue:()=>Id,intersperse:()=>g,intrinsicTagNameToString:()=>sC,introducesArgumentsExoticObject:()=>jf,inverseJsxOptionMap:()=>uO,isAbstractConstructorSymbol:()=>mx,isAbstractModifier:()=>ZN,isAccessExpression:()=>Tx,isAccessibilityModifier:()=>xQ,isAccessor:()=>d_,isAccessorModifier:()=>tD,isAliasableExpression:()=>fh,isAmbientModule:()=>sp,isAmbientPropertyDeclaration:()=>yp,isAnyDirectorySeparator:()=>mo,isAnyImportOrBareOrAccessedRequire:()=>Sp,isAnyImportOrReExport:()=>Np,isAnyImportOrRequireStatement:()=>Tp,isAnyImportSyntax:()=>kp,isAnySupportedFileExtension:()=>tT,isApplicableVersionedTypesKey:()=>fM,isArgumentExpressionOfElementAccess:()=>_X,isArray:()=>Xe,isArrayBindingElement:()=>T_,isArrayBindingOrAssignmentElement:()=>P_,isArrayBindingOrAssignmentPattern:()=>E_,isArrayBindingPattern:()=>$D,isArrayLiteralExpression:()=>KD,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>SQ,isArrayTypeNode:()=>ND,isArrowFunction:()=>iF,isAsExpression:()=>vF,isAssertClause:()=>cE,isAssertEntry:()=>lE,isAssertionExpression:()=>W_,isAssertsKeyword:()=>GN,isAssignmentDeclaration:()=>Um,isAssignmentExpression:()=>ib,isAssignmentOperator:()=>tb,isAssignmentPattern:()=>S_,isAssignmentTarget:()=>Qg,isAsteriskToken:()=>MN,isAsyncFunction:()=>Lh,isAsyncModifier:()=>KN,isAutoAccessorPropertyDeclaration:()=>p_,isAwaitExpression:()=>cF,isAwaitKeyword:()=>XN,isBigIntLiteral:()=>wN,isBinaryExpression:()=>uF,isBinaryLogicalOperator:()=>Gv,isBinaryOperatorToken:()=>zA,isBindableObjectDefinePropertyCall:()=>ng,isBindableStaticAccessExpression:()=>og,isBindableStaticElementAccessExpression:()=>ag,isBindableStaticNameExpression:()=>sg,isBindingElement:()=>HD,isBindingElementOfBareOrAccessedRequire:()=>Mm,isBindingName:()=>n_,isBindingOrAssignmentElement:()=>w_,isBindingOrAssignmentPattern:()=>N_,isBindingPattern:()=>k_,isBlock:()=>DF,isBlockLike:()=>_0,isBlockOrCatchScoped:()=>op,isBlockScope:()=>vp,isBlockScopedContainerTopLevel:()=>up,isBooleanLiteral:()=>a_,isBreakOrContinueStatement:()=>Cl,isBreakStatement:()=>BF,isBuildCommand:()=>gK,isBuildInfoFile:()=>Mq,isBuilderProgram:()=>d$,isBundle:()=>$E,isCallChain:()=>gl,isCallExpression:()=>YD,isCallExpressionTarget:()=>WG,isCallLikeExpression:()=>L_,isCallLikeOrFunctionLikeExpression:()=>O_,isCallOrNewExpression:()=>j_,isCallOrNewExpressionTarget:()=>HG,isCallSignatureDeclaration:()=>yD,isCallToHelper:()=>TN,isCaseBlock:()=>nE,isCaseClause:()=>RE,isCaseKeyword:()=>iD,isCaseOrDefaultClause:()=>ku,isCatchClause:()=>JE,isCatchClauseVariableDeclaration:()=>MT,isCatchClauseVariableDeclarationOrBindingElement:()=>ap,isCheckJsEnabledForFile:()=>rT,isCircularBuildOrder:()=>W$,isClassDeclaration:()=>XF,isClassElement:()=>__,isClassExpression:()=>gF,isClassInstanceProperty:()=>f_,isClassLike:()=>u_,isClassMemberModifier:()=>Yl,isClassNamedEvaluationHelperBlock:()=>Ez,isClassOrTypeElement:()=>y_,isClassStaticBlockDeclaration:()=>fD,isClassThisAssignmentBlock:()=>Cz,isColonToken:()=>zN,isCommaExpression:()=>aA,isCommaListExpression:()=>CF,isCommaSequence:()=>sA,isCommaToken:()=>LN,isComment:()=>gQ,isCommonJsExportPropertyAssignment:()=>Of,isCommonJsExportedExpression:()=>If,isCompoundAssignment:()=>KJ,isComputedNonLiteralName:()=>Ip,isComputedPropertyName:()=>aD,isConciseBody:()=>Y_,isConditionalExpression:()=>dF,isConditionalTypeNode:()=>OD,isConstAssertion:()=>yC,isConstTypeReference:()=>kl,isConstructSignatureDeclaration:()=>vD,isConstructorDeclaration:()=>mD,isConstructorTypeNode:()=>TD,isContextualKeyword:()=>Dh,isContinueStatement:()=>MF,isCustomPrologue:()=>pf,isDebuggerStatement:()=>$F,isDeclaration:()=>_u,isDeclarationBindingElement:()=>C_,isDeclarationFileName:()=>YI,isDeclarationName:()=>lh,isDeclarationNameOfEnumOrNamespace:()=>Zb,isDeclarationReadonly:()=>tf,isDeclarationStatement:()=>uu,isDeclarationWithTypeParameterChildren:()=>xp,isDeclarationWithTypeParameters:()=>bp,isDecorator:()=>lD,isDecoratorTarget:()=>GG,isDefaultClause:()=>ME,isDefaultImport:()=>Tg,isDefaultModifier:()=>HN,isDefaultedExpandoInitializer:()=>Km,isDeleteExpression:()=>oF,isDeleteTarget:()=>sh,isDeprecatedDeclaration:()=>t0,isDestructuringAssignment:()=>ob,isDiskPathRoot:()=>yo,isDoStatement:()=>IF,isDocumentRegistryEntry:()=>z0,isDotDotDotToken:()=>ON,isDottedName:()=>lb,isDynamicName:()=>Bh,isEffectiveExternalModule:()=>gp,isEffectiveStrictModeSourceFile:()=>hp,isElementAccessChain:()=>ml,isElementAccessExpression:()=>QD,isEmittedFileOfProgram:()=>CU,isEmptyArrayLiteral:()=>vb,isEmptyBindingElement:()=>tc,isEmptyBindingPattern:()=>ec,isEmptyObjectLiteral:()=>yb,isEmptyStatement:()=>EF,isEmptyStringLiteral:()=>ym,isEntityName:()=>e_,isEntityNameExpression:()=>sb,isEnumConst:()=>ef,isEnumDeclaration:()=>ZF,isEnumMember:()=>VE,isEqualityOperatorKind:()=>hZ,isEqualsGreaterThanToken:()=>UN,isExclamationToken:()=>BN,isExcludedFile:()=>wj,isExclusivelyTypeOnlyImportOrExport:()=>nV,isExpandoPropertyDeclaration:()=>_C,isExportAssignment:()=>gE,isExportDeclaration:()=>hE,isExportModifier:()=>$N,isExportName:()=>nA,isExportNamespaceAsDefaultDeclaration:()=>Vd,isExportOrDefaultModifier:()=>GA,isExportSpecifier:()=>vE,isExportsIdentifier:()=>Ym,isExportsOrModuleExportsOrAlias:()=>WM,isExpression:()=>V_,isExpressionNode:()=>bm,isExpressionOfExternalModuleImportEqualsDeclaration:()=>fX,isExpressionOfOptionalChainRoot:()=>vl,isExpressionStatement:()=>PF,isExpressionWithTypeArguments:()=>yF,isExpressionWithTypeArgumentsInClassExtendsClause:()=>ab,isExternalModule:()=>VI,isExternalModuleAugmentation:()=>pp,isExternalModuleImportEqualsDeclaration:()=>Tm,isExternalModuleIndicator:()=>X_,isExternalModuleNameRelative:()=>Cs,isExternalModuleReference:()=>TE,isExternalModuleSymbol:()=>Xu,isExternalOrCommonJsModule:()=>Yp,isFileLevelReservedGeneratedIdentifier:()=>Hl,isFileLevelUniqueName:()=>Cd,isFileProbablyExternalModule:()=>gI,isFirstDeclarationOfSymbolParameter:()=>bY,isFixablePromiseHandler:()=>R1,isForInOrOfStatement:()=>Q_,isForInStatement:()=>jF,isForInitializer:()=>eu,isForOfStatement:()=>RF,isForStatement:()=>LF,isFullSourceFile:()=>Dm,isFunctionBlock:()=>Mf,isFunctionBody:()=>Z_,isFunctionDeclaration:()=>GF,isFunctionExpression:()=>rF,isFunctionExpressionOrArrowFunction:()=>BT,isFunctionLike:()=>r_,isFunctionLikeDeclaration:()=>o_,isFunctionLikeKind:()=>c_,isFunctionLikeOrClassStaticBlockDeclaration:()=>i_,isFunctionOrConstructorTypeNode:()=>x_,isFunctionOrModuleBlock:()=>l_,isFunctionSymbol:()=>gg,isFunctionTypeNode:()=>SD,isGeneratedIdentifier:()=>Wl,isGeneratedPrivateIdentifier:()=>$l,isGetAccessor:()=>Nu,isGetAccessorDeclaration:()=>gD,isGetOrSetAccessorDeclaration:()=>pl,isGlobalScopeAugmentation:()=>dp,isGlobalSourceFile:()=>Qp,isGrammarError:()=>Dd,isHeritageClause:()=>BE,isHoistedFunction:()=>ff,isHoistedVariableStatement:()=>gf,isIdentifier:()=>VN,isIdentifierANonContextualKeyword:()=>Ph,isIdentifierName:()=>dh,isIdentifierOrThisTypeNode:()=>IA,isIdentifierPart:()=>fs,isIdentifierStart:()=>ps,isIdentifierText:()=>ms,isIdentifierTypePredicate:()=>zf,isIdentifierTypeReference:()=>kT,isIfStatement:()=>AF,isIgnoredFileFromWildCardWatching:()=>TU,isImplicitGlob:()=>dS,isImportAttribute:()=>uE,isImportAttributeName:()=>Vl,isImportAttributes:()=>_E,isImportCall:()=>lf,isImportClause:()=>aE,isImportDeclaration:()=>oE,isImportEqualsDeclaration:()=>iE,isImportKeyword:()=>rD,isImportMeta:()=>_f,isImportOrExportSpecifier:()=>Ml,isImportOrExportSpecifierName:()=>UY,isImportSpecifier:()=>mE,isImportTypeAssertionContainer:()=>sE,isImportTypeNode:()=>qD,isImportable:()=>m0,isInComment:()=>uQ,isInCompoundLikeAssignment:()=>Yg,isInExpressionContext:()=>xm,isInJSDoc:()=>Im,isInJSFile:()=>Em,isInJSXText:()=>oQ,isInJsonFile:()=>Pm,isInNonReferenceComment:()=>CQ,isInReferenceComment:()=>TQ,isInRightSideOfInternalImportEqualsDeclaration:()=>VG,isInString:()=>tQ,isInTemplateString:()=>iQ,isInTopLevelContext:()=>nm,isInTypeQuery:()=>_v,isIncrementalBuildInfo:()=>hW,isIncrementalBundleEmitBuildInfo:()=>gW,isIncrementalCompilation:()=>Pk,isIndexSignatureDeclaration:()=>bD,isIndexedAccessTypeNode:()=>BD,isInferTypeNode:()=>LD,isInfinityOrNaNString:()=>RT,isInitializedProperty:()=>nz,isInitializedVariable:()=>tx,isInsideJsxElement:()=>aQ,isInsideJsxElementOrAttribute:()=>nQ,isInsideNodeModules:()=>zZ,isInsideTemplateLiteral:()=>bQ,isInstanceOfExpression:()=>gb,isInstantiatedModule:()=>KB,isInterfaceDeclaration:()=>QF,isInternalDeclaration:()=>zu,isInternalModuleImportEqualsDeclaration:()=>Nm,isInternalName:()=>eA,isIntersectionTypeNode:()=>ID,isIntrinsicJsxName:()=>Ey,isIterationStatement:()=>$_,isJSDoc:()=>sP,isJSDocAllType:()=>ZE,isJSDocAugmentsTag:()=>_P,isJSDocAuthorTag:()=>uP,isJSDocCallbackTag:()=>pP,isJSDocClassTag:()=>dP,isJSDocCommentContainingNode:()=>Tu,isJSDocConstructSignature:()=>Ng,isJSDocDeprecatedTag:()=>bP,isJSDocEnumTag:()=>kP,isJSDocFunctionType:()=>iP,isJSDocImplementsTag:()=>PP,isJSDocImportTag:()=>OP,isJSDocIndexSignature:()=>Om,isJSDocLikeText:()=>mI,isJSDocLink:()=>XE,isJSDocLinkCode:()=>QE,isJSDocLinkLike:()=>Ru,isJSDocLinkPlain:()=>YE,isJSDocMemberName:()=>GE,isJSDocNameReference:()=>KE,isJSDocNamepathType:()=>aP,isJSDocNamespaceBody:()=>ru,isJSDocNode:()=>Su,isJSDocNonNullableType:()=>nP,isJSDocNullableType:()=>tP,isJSDocOptionalParameter:()=>XT,isJSDocOptionalType:()=>rP,isJSDocOverloadTag:()=>vP,isJSDocOverrideTag:()=>yP,isJSDocParameterTag:()=>SP,isJSDocPrivateTag:()=>mP,isJSDocPropertyLikeTag:()=>Nl,isJSDocPropertyTag:()=>EP,isJSDocProtectedTag:()=>gP,isJSDocPublicTag:()=>fP,isJSDocReadonlyTag:()=>hP,isJSDocReturnTag:()=>TP,isJSDocSatisfiesExpression:()=>ZT,isJSDocSatisfiesTag:()=>AP,isJSDocSeeTag:()=>xP,isJSDocSignature:()=>lP,isJSDocTag:()=>Cu,isJSDocTemplateTag:()=>NP,isJSDocThisTag:()=>CP,isJSDocThrowsTag:()=>IP,isJSDocTypeAlias:()=>Dg,isJSDocTypeAssertion:()=>cA,isJSDocTypeExpression:()=>HE,isJSDocTypeLiteral:()=>cP,isJSDocTypeTag:()=>wP,isJSDocTypedefTag:()=>DP,isJSDocUnknownTag:()=>FP,isJSDocUnknownType:()=>eP,isJSDocVariadicType:()=>oP,isJSXTagName:()=>vm,isJsonEqual:()=>mT,isJsonSourceFile:()=>Zp,isJsxAttribute:()=>AE,isJsxAttributeLike:()=>yu,isJsxAttributeName:()=>iC,isJsxAttributes:()=>IE,isJsxCallLike:()=>xu,isJsxChild:()=>hu,isJsxClosingElement:()=>DE,isJsxClosingFragment:()=>PE,isJsxElement:()=>CE,isJsxExpression:()=>LE,isJsxFragment:()=>FE,isJsxNamespacedName:()=>jE,isJsxOpeningElement:()=>NE,isJsxOpeningFragment:()=>EE,isJsxOpeningLikeElement:()=>bu,isJsxOpeningLikeElementTagName:()=>XG,isJsxSelfClosingElement:()=>wE,isJsxSpreadAttribute:()=>OE,isJsxTagNameExpression:()=>gu,isJsxText:()=>DN,isJumpStatementTarget:()=>iX,isKeyword:()=>Ch,isKeywordOrPunctuation:()=>Nh,isKnownSymbol:()=>Wh,isLabelName:()=>aX,isLabelOfLabeledStatement:()=>oX,isLabeledStatement:()=>UF,isLateVisibilityPaintedStatement:()=>Cp,isLeftHandSideExpression:()=>M_,isLet:()=>sf,isLineBreak:()=>Va,isLiteralComputedPropertyDeclarationName:()=>uh,isLiteralExpression:()=>Il,isLiteralExpressionOfObject:()=>Ol,isLiteralImportTypeNode:()=>uf,isLiteralKind:()=>Al,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>pX,isLiteralTypeLiteral:()=>U_,isLiteralTypeNode:()=>zD,isLocalName:()=>tA,isLogicalOperator:()=>Xv,isLogicalOrCoalescingAssignmentExpression:()=>Yv,isLogicalOrCoalescingAssignmentOperator:()=>Qv,isLogicalOrCoalescingBinaryExpression:()=>eb,isLogicalOrCoalescingBinaryOperator:()=>Zv,isMappedTypeNode:()=>JD,isMemberName:()=>dl,isMetaProperty:()=>kF,isMethodDeclaration:()=>pD,isMethodOrAccessor:()=>m_,isMethodSignature:()=>dD,isMinusToken:()=>RN,isMissingDeclaration:()=>xE,isMissingPackageJsonInfo:()=>pR,isModifier:()=>Zl,isModifierKind:()=>Xl,isModifierLike:()=>g_,isModuleAugmentationExternal:()=>fp,isModuleBlock:()=>tE,isModuleBody:()=>tu,isModuleDeclaration:()=>eE,isModuleExportName:()=>bE,isModuleExportsAccessExpression:()=>eg,isModuleIdentifier:()=>Zm,isModuleName:()=>jA,isModuleOrEnumDeclaration:()=>ou,isModuleReference:()=>mu,isModuleSpecifierLike:()=>iY,isModuleWithStringLiteralName:()=>cp,isNameOfFunctionDeclaration:()=>dX,isNameOfModuleDeclaration:()=>uX,isNamedDeclaration:()=>Sc,isNamedEvaluation:()=>Gh,isNamedEvaluationSource:()=>Kh,isNamedExportBindings:()=>wl,isNamedExports:()=>yE,isNamedImportBindings:()=>iu,isNamedImports:()=>fE,isNamedImportsOrExports:()=>wx,isNamedTupleMember:()=>FD,isNamespaceBody:()=>nu,isNamespaceExport:()=>pE,isNamespaceExportDeclaration:()=>rE,isNamespaceImport:()=>dE,isNamespaceReexportDeclaration:()=>Sm,isNewExpression:()=>ZD,isNewExpressionTarget:()=>$G,isNewScopeNode:()=>PC,isNoSubstitutionTemplateLiteral:()=>EN,isNodeArray:()=>Pl,isNodeArrayMultiLine:()=>$b,isNodeDescendantOf:()=>ch,isNodeKind:()=>Dl,isNodeLikeSystem:()=>ln,isNodeModulesDirectory:()=>ca,isNodeWithPossibleHoistedDeclaration:()=>Zg,isNonContextualKeyword:()=>Fh,isNonGlobalAmbientModule:()=>lp,isNonNullAccess:()=>YT,isNonNullChain:()=>Tl,isNonNullExpression:()=>xF,isNonStaticMethodOrAccessorWithPrivateName:()=>rz,isNotEmittedStatement:()=>kE,isNullishCoalesce:()=>xl,isNumber:()=>Ze,isNumericLiteral:()=>CN,isNumericLiteralName:()=>zT,isObjectBindingElementWithoutPropertyName:()=>oY,isObjectBindingOrAssignmentElement:()=>F_,isObjectBindingOrAssignmentPattern:()=>D_,isObjectBindingPattern:()=>WD,isObjectLiteralElement:()=>Au,isObjectLiteralElementLike:()=>v_,isObjectLiteralExpression:()=>GD,isObjectLiteralMethod:()=>Bf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>Jf,isObjectTypeDeclaration:()=>kx,isOmittedExpression:()=>hF,isOptionalChain:()=>hl,isOptionalChainRoot:()=>yl,isOptionalDeclaration:()=>QT,isOptionalJSDocPropertyLikeTag:()=>HT,isOptionalTypeNode:()=>ED,isOuterExpression:()=>_A,isOutermostOptionalChain:()=>bl,isOverrideModifier:()=>eD,isPackageJsonInfo:()=>dR,isPackedArrayLiteral:()=>AT,isParameter:()=>cD,isParameterPropertyDeclaration:()=>Zs,isParameterPropertyModifier:()=>Ql,isParenthesizedExpression:()=>nF,isParenthesizedTypeNode:()=>jD,isParseTreeNode:()=>dc,isPartOfParameterDeclaration:()=>Qh,isPartOfTypeNode:()=>Cf,isPartOfTypeOnlyImportOrExportDeclaration:()=>ql,isPartOfTypeQuery:()=>km,isPartiallyEmittedExpression:()=>TF,isPatternMatch:()=>Qt,isPinnedComment:()=>Md,isPlainJsFile:()=>bd,isPlusToken:()=>jN,isPossiblyTypeArgumentPosition:()=>cQ,isPostfixUnaryExpression:()=>_F,isPrefixUnaryExpression:()=>lF,isPrimitiveLiteralValue:()=>xC,isPrivateIdentifier:()=>WN,isPrivateIdentifierClassElementDeclaration:()=>Kl,isPrivateIdentifierPropertyAccessExpression:()=>Gl,isPrivateIdentifierSymbol:()=>$h,isProgramUptoDate:()=>CV,isPrologueDirective:()=>df,isPropertyAccessChain:()=>fl,isPropertyAccessEntityNameExpression:()=>_b,isPropertyAccessExpression:()=>XD,isPropertyAccessOrQualifiedName:()=>I_,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>A_,isPropertyAssignment:()=>zE,isPropertyDeclaration:()=>uD,isPropertyName:()=>t_,isPropertyNameLiteral:()=>zh,isPropertySignature:()=>_D,isPrototypeAccess:()=>db,isPrototypePropertyAssignment:()=>pg,isPunctuation:()=>wh,isPushOrUnshiftIdentifier:()=>Xh,isQualifiedName:()=>oD,isQuestionDotToken:()=>qN,isQuestionOrExclamationToken:()=>AA,isQuestionOrPlusOrMinusToken:()=>LA,isQuestionToken:()=>JN,isReadonlyKeyword:()=>QN,isReadonlyKeywordOrPlusOrMinusToken:()=>OA,isRecognizedTripleSlashComment:()=>Rd,isReferenceFileLocation:()=>SV,isReferencedFile:()=>kV,isRegularExpressionLiteral:()=>FN,isRequireCall:()=>Lm,isRequireVariableStatement:()=>Jm,isRestParameter:()=>Bu,isRestTypeNode:()=>PD,isReturnStatement:()=>JF,isReturnStatementWithFixablePromiseHandler:()=>j1,isRightSideOfAccessExpression:()=>fb,isRightSideOfInstanceofExpression:()=>hb,isRightSideOfPropertyAccess:()=>lX,isRightSideOfQualifiedName:()=>cX,isRightSideOfQualifiedNameOrPropertyAccess:()=>pb,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>mb,isRootedDiskPath:()=>ho,isSameEntityName:()=>Xm,isSatisfiesExpression:()=>bF,isSemicolonClassElement:()=>NF,isSetAccessor:()=>wu,isSetAccessorDeclaration:()=>hD,isShiftOperatorOrHigher:()=>RA,isShorthandAmbientModuleSymbol:()=>_p,isShorthandPropertyAssignment:()=>qE,isSideEffectImport:()=>TC,isSignedNumericLiteral:()=>Rh,isSimpleCopiableExpression:()=>$J,isSimpleInlineableExpression:()=>HJ,isSimpleParameterList:()=>pz,isSingleOrDoubleQuote:()=>zm,isSolutionConfig:()=>ij,isSourceElement:()=>mC,isSourceFile:()=>WE,isSourceFileFromLibrary:()=>s0,isSourceFileJS:()=>Fm,isSourceFileNotJson:()=>Am,isSourceMapping:()=>CJ,isSpecialPropertyDeclaration:()=>fg,isSpreadAssignment:()=>UE,isSpreadElement:()=>mF,isStatement:()=>pu,isStatementButNotDeclaration:()=>du,isStatementOrBlock:()=>fu,isStatementWithLocals:()=>xd,isStatic:()=>Fv,isStaticModifier:()=>YN,isString:()=>Ye,isStringANonContextualKeyword:()=>Eh,isStringAndEmptyAnonymousObjectIntersection:()=>vQ,isStringDoubleQuoted:()=>qm,isStringLiteral:()=>NN,isStringLiteralLike:()=>ju,isStringLiteralOrJsxExpression:()=>vu,isStringLiteralOrTemplate:()=>yZ,isStringOrNumericLiteralLike:()=>jh,isStringOrRegularExpressionOrTemplateLiteral:()=>hQ,isStringTextContainingNode:()=>Ul,isSuperCall:()=>cf,isSuperKeyword:()=>nD,isSuperProperty:()=>am,isSupportedSourceFileName:()=>JS,isSwitchStatement:()=>qF,isSyntaxList:()=>LP,isSyntheticExpression:()=>SF,isSyntheticReference:()=>SE,isTagName:()=>sX,isTaggedTemplateExpression:()=>eF,isTaggedTemplateTag:()=>KG,isTemplateExpression:()=>pF,isTemplateHead:()=>PN,isTemplateLiteral:()=>R_,isTemplateLiteralKind:()=>Ll,isTemplateLiteralToken:()=>jl,isTemplateLiteralTypeNode:()=>VD,isTemplateLiteralTypeSpan:()=>UD,isTemplateMiddle:()=>AN,isTemplateMiddleOrTemplateTail:()=>Rl,isTemplateSpan:()=>wF,isTemplateTail:()=>IN,isTextWhiteSpaceLike:()=>gY,isThis:()=>hX,isThisContainerOrFunctionBlock:()=>tm,isThisIdentifier:()=>lv,isThisInTypeQuery:()=>uv,isThisInitializedDeclaration:()=>cm,isThisInitializedObjectBindingExpression:()=>lm,isThisProperty:()=>sm,isThisTypeNode:()=>RD,isThisTypeParameter:()=>UT,isThisTypePredicate:()=>qf,isThrowStatement:()=>VF,isToken:()=>El,isTokenKind:()=>Fl,isTraceEnabled:()=>zj,isTransientSymbol:()=>Gu,isTrivia:()=>Ah,isTryStatement:()=>WF,isTupleTypeNode:()=>DD,isTypeAlias:()=>Fg,isTypeAliasDeclaration:()=>YF,isTypeAssertionExpression:()=>tF,isTypeDeclaration:()=>WT,isTypeElement:()=>h_,isTypeKeyword:()=>jQ,isTypeKeywordTokenOrIdentifier:()=>MQ,isTypeLiteralNode:()=>wD,isTypeNode:()=>b_,isTypeNodeKind:()=>Sx,isTypeOfExpression:()=>aF,isTypeOnlyExportDeclaration:()=>Jl,isTypeOnlyImportDeclaration:()=>Bl,isTypeOnlyImportOrExportDeclaration:()=>zl,isTypeOperatorNode:()=>MD,isTypeParameterDeclaration:()=>sD,isTypePredicateNode:()=>xD,isTypeQueryNode:()=>CD,isTypeReferenceNode:()=>kD,isTypeReferenceType:()=>Iu,isTypeUsableAsPropertyName:()=>cC,isUMDExportSymbol:()=>yx,isUnaryExpression:()=>J_,isUnaryExpressionWithWrite:()=>q_,isUnicodeIdentifierStart:()=>wa,isUnionTypeNode:()=>AD,isUrl:()=>go,isValidBigIntString:()=>bT,isValidESSymbolDeclaration:()=>Lf,isValidTypeOnlyAliasUseSite:()=>xT,isValueSignatureDeclaration:()=>eh,isVarAwaitUsing:()=>nf,isVarConst:()=>of,isVarConstLike:()=>af,isVarUsing:()=>rf,isVariableDeclaration:()=>HF,isVariableDeclarationInVariableStatement:()=>Af,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Rm,isVariableDeclarationInitializedToRequire:()=>jm,isVariableDeclarationList:()=>KF,isVariableLike:()=>Pf,isVariableStatement:()=>FF,isVoidExpression:()=>sF,isWatchSet:()=>nx,isWhileStatement:()=>OF,isWhiteSpaceLike:()=>qa,isWhiteSpaceSingleLine:()=>Ua,isWithStatement:()=>zF,isWriteAccess:()=>lx,isWriteOnlyAccess:()=>cx,isYieldExpression:()=>fF,jsxModeNeedsExplicitImport:()=>a0,keywordPart:()=>TY,last:()=>ye,lastOrUndefined:()=>he,length:()=>l,libMap:()=>fO,libs:()=>pO,lineBreakPart:()=>MY,loadModuleFromGlobalCache:()=>PM,loadWithModeAwareCache:()=>fV,makeIdentifierFromModuleName:()=>ip,makeImport:()=>XQ,makeStringLiteral:()=>QQ,mangleScopedPackageName:()=>TM,map:()=>D,mapAllOrFail:()=>j,mapDefined:()=>R,mapDefinedIterator:()=>M,mapEntries:()=>U,mapIterator:()=>F,mapOneOrMany:()=>HZ,mapToDisplayParts:()=>BY,matchFiles:()=>yS,matchPatternOrExact:()=>oT,matchedText:()=>$t,matchesExclude:()=>Dj,matchesExcludeWorker:()=>Fj,maxBy:()=>bt,maybeBind:()=>Ve,maybeSetLocalizedDiagnosticMessages:()=>Vx,memoize:()=>ut,memoizeOne:()=>dt,min:()=>xt,minAndMax:()=>cT,missingFileModifiedTime:()=>Ji,modifierToFlag:()=>Kv,modifiersToFlags:()=>Hv,moduleExportNameIsDefault:()=>Hd,moduleExportNameTextEscaped:()=>$d,moduleExportNameTextUnescaped:()=>Wd,moduleOptionDeclaration:()=>yO,moduleResolutionIsEqualTo:()=>cd,moduleResolutionNameAndModeGetter:()=>lV,moduleResolutionOptionDeclarations:()=>TO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Bk,moduleResolutionUsesNodeModules:()=>GQ,moduleSpecifierToValidIdentifier:()=>YZ,moduleSpecifiers:()=>GM,moduleSupportsImportAttributes:()=>Jk,moduleSymbolToValidIdentifier:()=>QZ,moveEmitHelpers:()=>Ew,moveRangeEnd:()=>Ob,moveRangePastDecorators:()=>jb,moveRangePastModifiers:()=>Rb,moveRangePos:()=>Lb,moveSyntheticComments:()=>Sw,mutateMap:()=>fx,mutateMapSkippingNewValues:()=>px,needsParentheses:()=>fZ,needsScopeMarker:()=>G_,newCaseClauseTracker:()=>c0,newPrivateEnvironment:()=>cz,noEmitNotification:()=>Oq,noEmitSubstitution:()=>Iq,noTransformers:()=>wq,noTruncationMaximumTruncationLength:()=>Wu,nodeCanBeDecorated:()=>dm,nodeCoreModules:()=>DC,nodeHasName:()=>xc,nodeIsDecorated:()=>pm,nodeIsMissing:()=>wd,nodeIsPresent:()=>Nd,nodeIsSynthesized:()=>ey,nodeModuleNameResolver:()=>LR,nodeModulesPathPart:()=>zR,nodeNextJsonConfigResolver:()=>jR,nodeOrChildIsDecorated:()=>fm,nodeOverlapsWithStartEnd:()=>CX,nodePosToString:()=>Sd,nodeSeenTracker:()=>BQ,nodeStartsNewLexicalEnvironment:()=>Zh,noop:()=>nt,noopFileWatcher:()=>x$,normalizePath:()=>zo,normalizeSlashes:()=>Lo,normalizeSpans:()=>Vs,not:()=>en,notImplemented:()=>_t,notImplementedResolver:()=>cU,nullNodeConverters:()=>RC,nullParenthesizerRules:()=>OC,nullTransformationContext:()=>jq,objectAllocator:()=>Mx,operatorPart:()=>wY,optionDeclarations:()=>bO,optionMapToObject:()=>PL,optionsAffectingProgramStructure:()=>wO,optionsForBuild:()=>IO,optionsForWatch:()=>mO,optionsHaveChanges:()=>ed,or:()=>Zt,orderedRemoveItem:()=>Jt,orderedRemoveItemAt:()=>zt,packageIdToPackageName:()=>pd,packageIdToString:()=>fd,parameterIsThisKeyword:()=>cv,parameterNamePart:()=>NY,parseBaseNodeFactory:()=>uI,parseBigInt:()=>yT,parseBuildCommand:()=>tL,parseCommandLine:()=>XO,parseCommandLineWorker:()=>$O,parseConfigFileTextToJson:()=>oL,parseConfigFileWithSystem:()=>a$,parseConfigHostFromCompilerHostLike:()=>MV,parseCustomTypeOption:()=>qO,parseIsolatedEntityName:()=>qI,parseIsolatedJSDocComment:()=>$I,parseJSDocTypeExpressionForTests:()=>HI,parseJsonConfigFileContent:()=>qL,parseJsonSourceFileConfigFileContent:()=>UL,parseJsonText:()=>UI,parseListTypeOption:()=>UO,parseNodeFactory:()=>dI,parseNodeModuleFromPath:()=>UR,parsePackageName:()=>cM,parsePseudoBigInt:()=>gT,parseValidBigInt:()=>vT,pasteEdits:()=>Cfe,patchWriteFileEnsuringDirectory:()=>so,pathContainsNodeModules:()=>qR,pathIsAbsolute:()=>vo,pathIsBareSpecifier:()=>xo,pathIsRelative:()=>bo,patternText:()=>Wt,performIncrementalCompilation:()=>O$,performance:()=>Un,positionBelongsToNode:()=>NX,positionIsASICandidate:()=>DZ,positionIsSynthesized:()=>QS,positionsAreOnSameLine:()=>Hb,preProcessFile:()=>w1,probablyUsesSemicolons:()=>FZ,processCommentPragmas:()=>eO,processPragmasIntoFields:()=>tO,processTaggedTemplateExpression:()=>Rz,programContainsEsModules:()=>WQ,programContainsModules:()=>VQ,projectReferenceIsEqualTo:()=>sd,propertyNamePart:()=>DY,pseudoBigIntToString:()=>hT,punctuationPart:()=>CY,pushIfUnique:()=>se,quote:()=>gZ,quotePreferenceFromString:()=>ZQ,rangeContainsPosition:()=>xX,rangeContainsPositionExclusive:()=>kX,rangeContainsRange:()=>Qb,rangeContainsRangeExclusive:()=>bX,rangeContainsStartEnd:()=>SX,rangeEndIsOnSameLineAsRangeStart:()=>Ub,rangeEndPositionsAreOnSameLine:()=>zb,rangeEquals:()=>ue,rangeIsOnSingleLine:()=>Bb,rangeOfNode:()=>lT,rangeOfTypeParameters:()=>_T,rangeOverlapsWithStartEnd:()=>TX,rangeStartIsOnSameLineAsRangeEnd:()=>qb,rangeStartPositionsAreOnSameLine:()=>Jb,readBuilderProgram:()=>L$,readConfigFile:()=>iL,readJson:()=>Nb,readJsonConfigFile:()=>aL,readJsonOrUndefined:()=>wb,reduceEachLeadingCommentRange:()=>ss,reduceEachTrailingCommentRange:()=>cs,reduceLeft:()=>Ce,reduceLeftIterator:()=>f,reducePathComponents:()=>jo,refactor:()=>a6,regExpEscape:()=>nS,regularExpressionFlagToCharacterCode:()=>Aa,relativeComplement:()=>ne,removeAllComments:()=>iw,removeEmitHelper:()=>Dw,removeExtension:()=>$S,removeFileExtension:()=>VS,removeIgnoredPath:()=>RW,removeMinAndVersionNumbers:()=>Bt,removePrefix:()=>Gt,removeSuffix:()=>Rt,removeTrailingDirectorySeparator:()=>Vo,repeatString:()=>zQ,replaceElement:()=>ke,replaceFirstStar:()=>pC,resolutionExtensionIsTSOrJson:()=>ZS,resolveConfigFileProjectName:()=>z$,resolveJSModule:()=>PR,resolveLibrary:()=>NR,resolveModuleName:()=>FR,resolveModuleNameFromCache:()=>DR,resolvePackageNameToPackageJson:()=>_R,resolvePath:()=>Mo,resolveProjectReferencePath:()=>BV,resolveTripleslashReference:()=>PU,resolveTypeReferenceDirective:()=>sR,resolvingEmptyArray:()=>qu,returnFalse:()=>rt,returnNoopFileWatcher:()=>k$,returnTrue:()=>it,returnUndefined:()=>ot,returnsPromise:()=>L1,rewriteModuleSpecifier:()=>fz,sameFlatMap:()=>L,sameMap:()=>E,sameMapping:()=>TJ,scanTokenAtPosition:()=>Gp,scanner:()=>JG,semanticDiagnosticsOptionDeclarations:()=>xO,serializeCompilerOptions:()=>LL,server:()=>jfe,servicesVersion:()=>N8,setCommentRange:()=>gw,setConfigFileInOptions:()=>VL,setConstantValue:()=>Cw,setEmitFlags:()=>ow,setGetSourceFileAsHashVersioned:()=>D$,setIdentifierAutoGenerate:()=>Mw,setIdentifierGeneratedImportReference:()=>Jw,setIdentifierTypeArguments:()=>jw,setInternalEmitFlags:()=>sw,setLocalizedDiagnosticMessages:()=>Ux,setNodeChildren:()=>BP,setNodeFlags:()=>DT,setObjectAllocator:()=>zx,setOriginalNode:()=>tw,setParent:()=>FT,setParentRecursive:()=>ET,setPrivateIdentifier:()=>_z,setSnippetElement:()=>Aw,setSourceMapRange:()=>_w,setStackTraceLimit:()=>Ri,setStartsOnNewLine:()=>fw,setSyntheticLeadingComments:()=>yw,setSyntheticTrailingComments:()=>xw,setSys:()=>lo,setSysLog:()=>to,setTextRange:()=>cI,setTextRangeEnd:()=>CT,setTextRangePos:()=>TT,setTextRangePosEnd:()=>wT,setTextRangePosWidth:()=>NT,setTokenSourceMapRange:()=>dw,setTypeNode:()=>Ow,setUILocale:()=>Et,setValueDeclaration:()=>mg,shouldAllowImportingTsExtension:()=>EM,shouldPreserveConstEnums:()=>Ek,shouldRewriteModuleSpecifier:()=>xg,shouldUseUriStyleNodeCoreModules:()=>n0,showModuleSpecifier:()=>vx,signatureHasRestParameter:()=>ZB,signatureToDisplayParts:()=>qY,single:()=>be,singleElementArray:()=>nn,singleIterator:()=>z,singleOrMany:()=>xe,singleOrUndefined:()=>ve,skipAlias:()=>ax,skipConstraint:()=>qQ,skipOuterExpressions:()=>uA,skipParentheses:()=>ah,skipPartiallyEmittedExpressions:()=>Sl,skipTrivia:()=>Qa,skipTypeChecking:()=>uT,skipTypeCheckingIgnoringNoCheck:()=>dT,skipTypeParentheses:()=>oh,skipWhile:()=>cn,sliceAfter:()=>aT,some:()=>V,sortAndDeduplicate:()=>Z,sortAndDeduplicateDiagnostics:()=>ws,sourceFileAffectingCompilerOptions:()=>CO,sourceFileMayBeEmitted:()=>Xy,sourceMapCommentRegExp:()=>hJ,sourceMapCommentRegExpDontCareLineStart:()=>gJ,spacePart:()=>SY,spanMap:()=>q,startEndContainsRange:()=>Yb,startEndOverlapsWithStartEnd:()=>wX,startOnNewLine:()=>pA,startTracing:()=>ur,startsWith:()=>Kt,startsWithDirectory:()=>ta,startsWithUnderscore:()=>e0,startsWithUseStrict:()=>oA,stringContainsAt:()=>ZZ,stringToToken:()=>Ea,stripQuotes:()=>Fy,supportedDeclarationExtensions:()=>ES,supportedJSExtensionsFlat:()=>NS,supportedLocaleDirectories:()=>cc,supportedTSExtensionsFlat:()=>TS,supportedTSImplementationExtensions:()=>PS,suppressLeadingAndTrailingTrivia:()=>tZ,suppressLeadingTrivia:()=>nZ,suppressTrailingTrivia:()=>rZ,symbolEscapedNameNoDefault:()=>rY,symbolName:()=>yc,symbolNameNoDefault:()=>nY,symbolToDisplayParts:()=>zY,sys:()=>co,sysLog:()=>eo,tagNamesAreEquivalent:()=>cO,takeWhile:()=>sn,targetOptionDeclaration:()=>hO,targetToLibMap:()=>Ns,testFormatSettings:()=>FG,textChangeRangeIsUnchanged:()=>Ks,textChangeRangeNewSpan:()=>Hs,textChanges:()=>Kue,textOrKeywordPart:()=>FY,textPart:()=>EY,textRangeContainsPositionInclusive:()=>As,textRangeContainsTextSpan:()=>Ls,textRangeIntersectsWithTextSpan:()=>qs,textSpanContainsPosition:()=>Ps,textSpanContainsTextRange:()=>Os,textSpanContainsTextSpan:()=>Is,textSpanEnd:()=>Fs,textSpanIntersection:()=>Us,textSpanIntersectsWith:()=>Bs,textSpanIntersectsWithPosition:()=>zs,textSpanIntersectsWithTextSpan:()=>Ms,textSpanIsEmpty:()=>Es,textSpanOverlap:()=>Rs,textSpanOverlapsWith:()=>js,textSpansEqual:()=>dY,textToKeywordObj:()=>pa,timestamp:()=>qn,toArray:()=>Qe,toBuilderFileEmit:()=>DW,toBuilderStateFileInfoForMultiEmit:()=>NW,toEditorSettings:()=>V8,toFileNameLowerCase:()=>lt,toPath:()=>Uo,toProgramEmitPending:()=>FW,toSorted:()=>le,tokenIsIdentifierOrKeyword:()=>ua,tokenIsIdentifierOrKeywordOrGreaterThan:()=>da,tokenToString:()=>Fa,trace:()=>Jj,tracing:()=>$n,tracingEnabled:()=>Hn,transferSourceFileChildren:()=>zP,transform:()=>l7,transformClassFields:()=>qz,transformDeclarations:()=>Sq,transformECMAScriptModule:()=>fq,transformES2015:()=>lq,transformES2016:()=>sq,transformES2017:()=>Hz,transformES2018:()=>Gz,transformES2019:()=>Xz,transformES2020:()=>Qz,transformES2021:()=>Yz,transformESDecorators:()=>$z,transformESNext:()=>Zz,transformGenerators:()=>_q,transformImpliedNodeFormatDependentModule:()=>mq,transformJsx:()=>oq,transformLegacyDecorators:()=>Wz,transformModule:()=>uq,transformNamedEvaluation:()=>Lz,transformNodes:()=>Lq,transformSystemModule:()=>pq,transformTypeScript:()=>zz,transpile:()=>Q1,transpileDeclaration:()=>W1,transpileModule:()=>V1,transpileOptionValueCompilerOptions:()=>NO,tryAddToSet:()=>J,tryAndIgnoreErrors:()=>OZ,tryCast:()=>et,tryDirectoryExists:()=>IZ,tryExtractTSExtension:()=>xb,tryFileExists:()=>AZ,tryGetClassExtendingExpressionWithTypeArguments:()=>nb,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>rb,tryGetDirectories:()=>EZ,tryGetExtensionFromPath:()=>nT,tryGetImportFromModuleSpecifier:()=>bg,tryGetJSDocSatisfiesTypeNode:()=>tC,tryGetModuleNameFromFile:()=>vA,tryGetModuleSpecifierFromDeclaration:()=>yg,tryGetNativePerformanceHooks:()=>Bn,tryGetPropertyAccessOrIdentifierToString:()=>ub,tryGetPropertyNameOfBindingOrAssignmentElement:()=>TA,tryGetSourceMappingURL:()=>bJ,tryGetTextOfPropertyName:()=>Op,tryParseJson:()=>Db,tryParsePattern:()=>KS,tryParsePatterns:()=>XS,tryParseRawSourceMap:()=>kJ,tryReadDirectory:()=>PZ,tryReadFile:()=>sL,tryRemoveDirectoryPrefix:()=>eS,tryRemoveExtension:()=>WS,tryRemovePrefix:()=>Xt,tryRemoveSuffix:()=>Mt,tscBuildOption:()=>AO,typeAcquisitionDeclarations:()=>LO,typeAliasNamePart:()=>PY,typeDirectiveIsEqualTo:()=>md,typeKeywords:()=>LQ,typeParameterNamePart:()=>AY,typeToDisplayParts:()=>JY,unchangedPollThresholds:()=>Wi,unchangedTextChangeRange:()=>Xs,unescapeLeadingUnderscores:()=>mc,unmangleScopedPackageName:()=>wM,unorderedRemoveItem:()=>Ut,unprefixedNodeCoreModules:()=>wC,unreachableCodeIsError:()=>Rk,unsetNodeChildren:()=>JP,unusedLabelIsError:()=>Mk,unwrapInnermostStatementOfLabel:()=>Rf,unwrapParenthesizedExpression:()=>kC,updateErrorForNoInputFiles:()=>aj,updateLanguageServiceSourceFile:()=>Y8,updateMissingFilePathsWatch:()=>kU,updateResolutionField:()=>Xj,updateSharedExtendedConfigFileWatcher:()=>vU,updateSourceFile:()=>WI,updateWatchingWildcardDirectories:()=>SU,usingSingleLineStringWriter:()=>od,utf16EncodeAsString:()=>bs,validateLocaleAndSetLanguage:()=>lc,version:()=>o,versionMajorMinor:()=>i,visitArray:()=>iJ,visitCommaListElements:()=>uJ,visitEachChild:()=>dJ,visitFunctionBody:()=>lJ,visitIterationBody:()=>_J,visitLexicalEnvironment:()=>aJ,visitNode:()=>nJ,visitNodes:()=>rJ,visitParameterList:()=>sJ,walkUpBindingElementsAndPatterns:()=>nc,walkUpOuterExpressions:()=>dA,walkUpParenthesizedExpressions:()=>rh,walkUpParenthesizedTypes:()=>nh,walkUpParenthesizedTypesAndGetParentAndChild:()=>ih,whitespaceOrMapCommentRegExp:()=>yJ,writeCommentRange:()=>kv,writeFile:()=>Zy,writeFileEnsuringDirectories:()=>tv,zipWith:()=>m});var Efe,Pfe=!0;function Afe(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?` ${qx(i,[e])}`:"",o}function Ife(e,t={}){const n="string"==typeof t.typeScriptVersion?new vn(t.typeScriptVersion):t.typeScriptVersion??Efe??(Efe=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=Afe(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()=>{Pfe&&!i&&(_n.log.warn(Afe(e,!1,t,n,r)),i=!0)}}(e,r,a,t.message):nt}function Ofe(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)&&Ne(t,`${a}`)&&(t[a]=(i=t[a],function(e,t){return function(){return e(),t.apply(this,arguments)}}(Ife((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;Ne(e,`${r}`)&&Ne(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 Lfe(e){return{overload:t=>({bind:n=>({finish:()=>Ofe(e,t,n),deprecate:r=>({finish:()=>Ofe(e,t,n,r)})})})}}var jfe={};n(jfe,{ActionInvalidate:()=>$K,ActionPackageInstalled:()=>HK,ActionSet:()=>WK,ActionWatchTypingLocations:()=>YK,Arguments:()=>UK,AutoImportProviderProject:()=>Lme,AuxiliaryProject:()=>Ime,CharRangeSection:()=>Nhe,CloseFileWatcherEvent:()=>tge,CommandNames:()=>the,ConfigFileDiagEvent:()=>Gme,ConfiguredProject:()=>jme,ConfiguredProjectLoadKind:()=>Sge,CreateDirectoryWatcherEvent:()=>ege,CreateFileWatcherEvent:()=>Zme,Errors:()=>Vfe,EventBeginInstallTypes:()=>GK,EventEndInstallTypes:()=>XK,EventInitializationFailed:()=>QK,EventTypesRegistry:()=>KK,ExternalProject:()=>Rme,GcTimer:()=>ame,InferredProject:()=>Ame,LargeFileReferencedEvent:()=>Kme,LineIndex:()=>Ihe,LineLeaf:()=>Lhe,LineNode:()=>Ohe,LogLevel:()=>$fe,Msg:()=>Kfe,OpenFileInfoTelemetryEvent:()=>Yme,Project:()=>Pme,ProjectInfoTelemetryEvent:()=>Qme,ProjectKind:()=>Tme,ProjectLanguageServiceStateEvent:()=>Xme,ProjectLoadingFinishEvent:()=>Hme,ProjectLoadingStartEvent:()=>$me,ProjectService:()=>Vge,ProjectsUpdatedInBackgroundEvent:()=>Wme,ScriptInfo:()=>xme,ScriptVersionCache:()=>Phe,Session:()=>vhe,TextStorage:()=>vme,ThrottledOperations:()=>ome,TypingsInstallerAdapter:()=>Rhe,allFilesAreJsOrDts:()=>Nme,allRootFilesAreJsOrDts:()=>wme,asNormalizedPath:()=>Yfe,convertCompilerOptions:()=>lge,convertFormatOptions:()=>cge,convertScriptKindName:()=>pge,convertTypeAcquisition:()=>uge,convertUserPreferences:()=>fge,convertWatchOptions:()=>_ge,countEachFileTypes:()=>Cme,createInstallTypingsRequest:()=>Gfe,createModuleSpecifierCache:()=>Hge,createNormalizedPathMap:()=>Zfe,createPackageJsonCache:()=>Kge,createSortedArray:()=>ime,emptyArray:()=>Hfe,findArgument:()=>eG,formatDiagnosticToProtocol:()=>ehe,formatMessage:()=>nhe,getBaseConfigFileName:()=>sme,getDetailWatchInfo:()=>Pge,getLocationInNewDocument:()=>The,hasArgument:()=>ZK,hasNoTypeScriptSource:()=>Dme,indent:()=>rG,isBackgroundProject:()=>zme,isConfigFile:()=>Wge,isConfiguredProject:()=>Bme,isDynamicFileName:()=>bme,isExternalProject:()=>Jme,isInferredProject:()=>Mme,isInferredProjectName:()=>eme,isProjectDeferredClose:()=>qme,makeAutoImportProviderProjectName:()=>nme,makeAuxiliaryProjectName:()=>rme,makeInferredProjectName:()=>tme,maxFileSize:()=>Vme,maxProgramSizeForNonTsFiles:()=>Ume,normalizedPathToPath:()=>Qfe,nowString:()=>tG,nullCancellationToken:()=>Gge,nullTypingsInstaller:()=>yge,protocol:()=>cme,scriptInfoIsContainedByBackgroundProject:()=>kme,scriptInfoIsContainedByDeferredClosedProject:()=>Sme,stringifyIndented:()=>iG,toEvent:()=>ihe,toNormalizedPath:()=>Xfe,tryConvertScriptKindName:()=>dge,typingsInstaller:()=>Rfe,updateProjectIfDirty:()=>Ige});var Rfe={};n(Rfe,{TypingsInstaller:()=>qfe,getNpmCommandForInstallation:()=>zfe,installNpmPackages:()=>Jfe,typingsName:()=>Ufe});var Mfe={isEnabled:()=>!1,writeLine:nt};function Bfe(e,t,n,r){try{const r=FR(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 Jfe(e,t,n,r){let i=!1;for(let o=n.length;o>0;){const a=zfe(e,t,n,o);o=a.remaining,i=r(a.command)||i}return i}function zfe(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 qfe=class{constructor(e,t,n,r,i,o=Mfe){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:KK,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:YK,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${iG(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=qK.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=sa(Fo(t),(e=>{if(this.installTypingHost.fileExists(Ro(e,"package.json")))return e}))||i;if(a)this.installWorker(-1,[n],a,(e=>{const t={kind:HK,projectName:r,id:o,success:e,message:e?`Package ${n} installed.`:`There was an error installing ${n}.`};this.sendResponse(t)}));else{const e={kind:HK,projectName:r,id:o,success:!1,message:"Could not determine a project root path."};this.sendResponse(e)}}initializeSafeList(){if(this.typesMapLocation){const e=qK.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=qK.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}':${iG(r)}`),this.log.writeLine(`Loaded content of '${n}':${iG(i)}`)),r.devDependencies&&i.dependencies)for(const t in r.devDependencies){if(!Ne(i.dependencies,t))continue;const n=Eo(t);if(!n)continue;const r=Bfe(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=De(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=TM(e);if(this.missingTypingsSet.has(t))return void(this.log.isEnabled()&&this.log.writeLine(`'${e}':: '${t}' is in missingTypingsSet - skipping...`));const n=qK.validatePackageName(e);if(n!==qK.NameValidationResult.Ok)return this.missingTypingsSet.add(t),void(this.log.isEnabled()&&this.log.writeLine(qK.renderPackageNameValidationFailure(n,e)));if(this.typesRegistry.has(t)){if(!this.packageNameToTypingLocation.get(t)||!qK.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:GK,eventId:s,typingsInstallerVersion:o,projectName:e.projectName});const c=a.map(Ufe);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=Bfe(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:XK,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||rd(r,(e=>!n.has(e)))||rd(n,(e=>!r.has(e)))?(this.projectWatchers.set(e,r),this.sendResponse({kind:YK,projectName:e,files:t})):this.sendResponse({kind:YK,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:WK}}installTypingsAsync(e,t,n,r){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:r}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount<this.throttleLimit&&this.pendingRunRequests.length;){this.inFlightRequestCount++;const e=this.pendingRunRequests.pop();this.installWorker(e.requestId,e.packageNames,e.cwd,(t=>{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()}))}}};function Ufe(e){return`@types/${e}@ts${i}`}var Vfe,Wfe,$fe=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))($fe||{}),Hfe=[],Kfe=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(Kfe||{});function Gfe(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 Xfe(e){return zo(e)}function Qfe(e,t,n){return n(ho(e)?e:Jo(e,t))}function Yfe(e){return e}function Zfe(){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 eme(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function tme(e){return`/dev/null/inferredProject${e}*`}function nme(e){return`/dev/null/autoImportProviderProject${e}*`}function rme(e){return`/dev/null/auxiliaryProject${e}*`}function ime(){return[]}(Wfe=Vfe||(Vfe={})).ThrowNoProject=function(){throw new Error("No Project.")},Wfe.ThrowProjectLanguageServiceDisabled=function(){throw new Error("The project's language service is disabled.")},Wfe.ThrowProjectDoesNotContainDocument=function(e,t){throw new Error(`Project '${t.getProjectName()}' does not contain document '${e}'`)};var ome=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()}},ame=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 sme(e){const t=Eo(e);return"tsconfig.json"===t||"jsconfig.json"===t?t:void 0}var cme={};n(cme,{ClassificationType:()=>BG,CommandTypes:()=>lme,CompletionTriggerKind:()=>SG,IndentStyle:()=>pme,JsxEmit:()=>fme,ModuleKind:()=>mme,ModuleResolutionKind:()=>gme,NewLineKind:()=>hme,OrganizeImportsMode:()=>kG,PollingWatchKind:()=>dme,ScriptTarget:()=>yme,SemicolonPreference:()=>NG,WatchDirectoryKind:()=>ume,WatchFileKind:()=>_me});var lme=(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))(lme||{}),_me=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(_me||{}),ume=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(ume||{}),dme=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(dme||{}),pme=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(pme||{}),fme=(e=>(e.None="none",e.Preserve="preserve",e.ReactNative="react-native",e.React="react",e.ReactJSX="react-jsx",e.ReactJSXDev="react-jsxdev",e))(fme||{}),mme=(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.NodeNext="nodenext",e.Preserve="preserve",e))(mme||{}),gme=(e=>(e.Classic="classic",e.Node="node",e.NodeJs="node",e.Node10="node10",e.Node16="node16",e.NodeNext="nodenext",e.Bundler="bundler",e))(gme||{}),hme=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(hme||{}),yme=(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.ESNext="esnext",e.JSON="json",e.Latest="esnext",e))(yme||{}),vme=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=JQ(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=_G.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 $s(n[e],e+1<n.length?n[e+1]:this.text.length)}lineOffsetToPosition(e,t,n){const r=this.tryUseScriptVersionCache();return r?r.lineOffsetToPosition(e,t):ja(this.getLineMap(),e-1,t-1,this.text,n)}positionToLineOffset(e){const t=this.tryUseScriptVersionCache();if(t)return t.positionToLineOffset(e);const{line:n,character:r}=Ma(this.getLineMap(),e);return{line:n+1,offset:r+1}}getFileTextAndSize(e){let t;const n=e||this.info.fileName,r=()=>void 0===t?t=this.host.readFile(n)||"":t;if(!jS(this.info.fileName)){const e=this.host.getFileSize?this.host.getFileSize(n):r().length;if(e>Vme){_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=Phe.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=Phe.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=Oa(_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 vJ(this.text,t)}};function bme(e){return"^"===e[0]||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&"^"===Eo(e)[0]||e.includes(":^")&&!e.includes(_o)}var xme=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=bme(t),this.textStorage=new vme(e,this,o),(r||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||kS(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){Bme(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&&!Mme(e)&&e.addMissingFileRoot(t.fileName)}N(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return Vfe.ThrowNoProject();case 1:return qme(this.containingProjects[0])||zme(this.containingProjects[0])?Vfe.ThrowNoProject():this.containingProjects[0];default:let e,t,n,r;for(let i=0;i<this.containingProjects.length;i++){const o=this.containingProjects[i];if(Bme(o)){if(o.deferredClose)continue;if(!o.isSourceOfProjectReferenceRedirect(this.fileName)){if(void 0===r&&i!==this.containingProjects.length-1&&(r=o.projectService.findDefaultConfiguredProject(this)||!1),r===o)return o;n||(n=o)}e||(e=o)}else{if(Jme(o))return o;!t&&Mme(o)&&(t=o)}}return(r||n||e||t)??Vfe.ThrowNoProject()}}registerFileUpdate(){for(const e of this.containingProjects)e.registerFileUpdate(this.path)}setOptions(e,t){e&&(this.formatSettings?this.formatSettings={...this.formatSettings,...e}:(this.formatSettings=DG(this.host.newLine),Oe(this.formatSettings,e))),t&&(this.preferences||(this.preferences=bG),this.preferences={...this.preferences,...t})}getLatestVersion(){return this.textStorage.getSnapshot(),this.textStorage.getVersion()}saveTo(e){this.host.writeFile(e,JQ(this.textStorage.getSnapshot()))}delayReloadNonMixedContentFile(){_n.assert(!this.isDynamicOrHasMixedContent()),this.textStorage.delayReloadFromFileIntoText(),this.markContainingProjectsAsDirty()}reloadFromFile(e){return!!this.textStorage.reloadWithFileText(e)&&(this.markContainingProjectsAsDirty(),!0)}editContent(e,t,n){this.textStorage.edit(e,t,n),this.markContainingProjectsAsDirty()}markContainingProjectsAsDirty(){for(const e of this.containingProjects)e.markFileAsDirty(this.path)}isOrphan(){return this.deferredDelete||!_(this.containingProjects,(e=>!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)&&(FU(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}};function kme(e){return V(e.containingProjects,zme)}function Sme(e){return V(e.containingProjects,qme)}var Tme=(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))(Tme||{});function Cme(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:YI(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 wme(e){const t=Cme(e.getRootScriptInfos());return 0===t.ts&&0===t.tsx}function Nme(e){const t=Cme(e.getScriptInfos());return 0===t.ts&&0===t.tsx}function Dme(e){return!e.some((e=>So(e,".ts")&&!YI(e)||So(e,".tsx")))}function Fme(e){return void 0!==e.generatedFilePath}function Eme(e,t){if(e===t)return!0;if(0===(e||Hfe).length&&0===(t||Hfe).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 Pme=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=Hfe,this.moduleSpecifierCache=Hge(this),this.createHash=Ve(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=qK.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,n.logger.info(`Creating ${Tme[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 t7(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(r||Ik(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions={target:1,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=YW(this,this.currentDirectory,!0),this.languageService=i7(this,this.projectService.documentRegistry,this.projectService.serverMode),i&&this.disableLanguageService(i),this.markAsDirty(),zme(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(e){}isNonTsProject(){return Ige(this),Nme(this)}isJsOnlyProject(){return Ige(this),function(e){const t=Cme(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=Yk(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())),Ds(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 Uo(e,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(e,t,n){return this.projectService.watchFactory.watchDirectory(e,t,n,this.projectService.getWatchOptions(this),T$.FailedLookupLocations,this)}watchAffectingFileLocation(e,t){return this.projectService.watchFactory.watchFile(e,t,2e3,this.projectService.getWatchOptions(this),T$.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),T$.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))||Hfe}getAllProjectErrors(){return this.projectErrors||Hfe}setProjectErrors(e){this.projectErrors=e}getLanguageService(e=!0){return e&&Ige(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?(Ige(this),this.builderState=VV.create(this.program,this.builderState,!0),R(VV.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:Hfe};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&&Fk(this.compilerOptions)){const t=i.filter((e=>YI(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);VV.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&&(dx(this.missingFilesMap,rx),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?D(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 Hfe}getFileNames(e,t){if(!this.program)return[];if(!this.languageServiceEnabled){let e=this.getRootFiles();if(this.compilerOptions){const t=c7(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(){Ige(this)}updateGraph(){var e,t;null==(e=$n)||e.push($n.Phase.Session,"updateGraph",{name:this.projectName,kind:Tme[this.projectKind]}),this.resolutionCache.startRecordingFilesWithChangedResolutions();const n=this.updateGraphWorker(),r=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const i=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Hfe;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=>Fy(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&&ZS(e.extension)||Cs(t)||n.some((e=>e===t))||(r=re(r,cM(t).packageName))}),t),r||Hfe}))}(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===yge)return;const n=this.typingsCache;var r,i,o,a;!e&&n&&(o=t,a=n.typeAcquisition,o.enable===a.enable&&Eme(o.include,a.include)&&Eme(o.exclude,a.exclude))&&!function(e,t){return Ik(e)!==Ik(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):Hfe;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&&dx(this.typingWatchers,rx),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:$K})}watchTypingLocations(e){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?T$.TypingInstallerLocationFile:T$.TypingInstallerLocationDirectory;this.typingWatchers.set(r,JW(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")?Zo(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}:: ${Pge(t,this)}`),x$))}};for(const t of e){const e=Eo(t);if("package.json"!==e&&"bower.json"!==e)if(ea(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 ea(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)}))}getCurrentProgram(){return this.program}removeExistingTypings(e){if(!e.length)return e;const t=uR(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))})),kU(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),((e,t)=>this.addMissingFileWatcher(e,t))),this.generatedFilesMap){const e=this.compilerOptions.outFile;Fme(this.generatedFilesMap)?e&&this.isValidGeneratedFileWatcher(VS(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(Vy(n.fileName,this.compilerOptions,this.program),e)||(FU(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&&rd(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||Hfe;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:: ${Dr[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(Bme(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 x$}const r=this.projectService.watchFactory.watchFile(Jo(t,this.currentDirectory),((t,n)=>{Bme(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),T$.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(Fme(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),T$.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(e,t){return this.toPath(e)===t.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(Fme(this.generatedFilesMap)?FU(this.generatedFilesMap):dx(this.generatedFilesMap,FU),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(e){const t=this.projectService.getScriptInfoForPath(this.toPath(e));return t&&!t.isAttached(this)?Vfe.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",p$(this.program,(e=>i+=`\t${e}\n`)))}return i}print(e,t,n){var r;this.writeLog(`Project '${this.projectName}' (${Tme[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()),Yu(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||Ige(this);const o={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:Mme(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:Xfe(e),isSourceOfProjectReferenceRedirect:!1}))))||Hfe,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 nd(s,((n,r)=>{e.has(r)?t&&n!==e.get(r)&&u.push({fileName:r,isSourceOfProjectReferenceRedirect:n}):c.set(r,n)})),nd(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:Xfe(e),isSourceOfProjectReferenceRedirect:!1}))))||Hfe,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:Ffe}),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?Hfe:this.projectService.getPackageJsonsVisibleToFile(e,this,t)}getNearestAncestorDirectoryWithPackageJson(e){return this.projectService.getNearestAncestorDirectoryWithPackageJson(e,this)}getPackageJsonsForAutoImport(e){return this.getPackageJsonsVisibleToFile(Ro(this.currentDirectory,hV),e)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=f0(this))}clearCachedExportInfoMap(){var e;null==(e=this.exportMapCache)||e.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return 0!==this.projectService.includePackageJsonAutoImports()&&this.languageServiceEnabled&&!zZ(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 Ige(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=Lme.create(r,this,this.getHostForAutoImportProvider())??!1,this.autoImportProviderHost)return Ige(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",qn()-i),null==(t=$n)||t.pop(),this.autoImportProviderHost.getCurrentProgram();null==(n=$n)||n.pop()}}isDefaultProjectForOpenFiles(){return!!nd(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 Ime(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 Ame=class extends Pme{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=kQ(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:wme(this),include:s,exclude:s}}},Ime=class extends Pme{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(){}},Ome=class e extends Pme{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,hV),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=_R(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=_R(`@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([HS(e.commandLine.options.outFile,".d.ts")]));else if(e){const n=ut((()=>eU(e.commandLine,!t.useCaseSensitiveFileNames())));g+=h(b(R(e.commandLine.fileNames,(r=>YI(r)||So(r,".json")||a.getSourceFile(r)?void 0:$q(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=ZR(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:Wo(r),realPath:Wo(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()}};Ome.maxDependencies=10,Ome.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:s,lib:s,noLib:!0};var Lme=Ome,jme=class extends Pme{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=Xfe(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(Xfe(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)}getResolvedProjectReferenceToRedirect(e){const t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(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))||Hfe}getAllProjectErrors(){return this.projectErrors||Hfe}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 nR(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){this.parsedCommandLine=e,aj(e.fileNames,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,oj(e.raw))}},Rme=class extends Pme{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 Mme(e){return 0===e.projectKind}function Bme(e){return 1===e.projectKind}function Jme(e){return 2===e.projectKind}function zme(e){return 3===e.projectKind||4===e.projectKind}function qme(e){return Bme(e)&&!!e.deferredClose}var Ume=20971520,Vme=4194304,Wme="projectsUpdatedInBackground",$me="projectLoadingStart",Hme="projectLoadingFinish",Kme="largeFileReferenced",Gme="configFileDiag",Xme="projectLanguageServiceState",Qme="projectInfo",Yme="openFileInfo",Zme="createFileWatcher",ege="createDirectoryWatcher",tge="closeFileWatcher",nge="*ensureProjectForOpenFiles*";function rge(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 ige=rge(bO),oge=rge(mO),age=new Map(Object.entries({none:0,block:1,smart:2})),sge={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 cge(e){return Ye(e.indentStyle)&&(e.indentStyle=age.get(e.indentStyle.toLowerCase()),_n.assert(void 0!==e.indentStyle)),e}function lge(e){return ige.forEach(((t,n)=>{const r=e[n];Ye(r)&&(e[n]=t.get(r.toLowerCase()))})),e}function _ge(e,t){let n,r;return mO.forEach((i=>{const o=e[i.name];if(void 0===o)return;const a=oge.get(i.name);(n||(n={}))[i.name]=a?Ye(o)?a.get(o.toLowerCase()):o:yj(i,o,t||"",r||(r=[]))})),n&&{watchOptions:n,errors:r}}function uge(e){let t;return LO.forEach((n=>{const r=e[n.name];void 0!==r&&((t||(t={}))[n.name]=r)})),t}function dge(e){return Ye(e)?pge(e):e}function pge(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function fge(e){const{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}var mge={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)))},gge={getFileName:e=>e.fileName,getScriptKind:e=>dge(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent};function hge(e,t){for(const n of t)if(n.getProjectName()===e)return n}var yge={isKnownTypesPackageName:rt,installPackage:_t,enqueueInstallTypingsRequest:nt,attach:nt,onProjectClosed:nt,globalTypingsCacheLocation:void 0},vge={close:nt};function bge(e,t){if(!t)return;const n=t.get(e.path);return void 0!==n?kge(e)?n&&!Ye(n)?n.get(e.fileName):void 0:Ye(n)||!n?n:n.get(!1):void 0}function xge(e){return!!e.containingProjects}function kge(e){return!!e.configFileInfo}var Sge=(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))(Sge||{});function Tge(e){return e-1}function Cge(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 wge(e,t,n,r,i,o,a,s){const c=t.options.disableReferencedProjectLoad?0:r;let l;return _(t.projectReferences,(t=>{var _;const u=Xfe(BV(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&&wge(e,t,n,c,i,o,a,s)))}function Nge(e,t,n,r,i){let o,a=!1;switch(t){case 2:case 3:jge(e)&&(o=e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath));break;case 4:if(o=Lge(e),o)break;case 5:a=function(e,t){if(t){if(Oge(e,t,!1))return!0}else Ige(e);return!1}(e,n);break;case 6:if(e.projectService.reloadConfiguredProjectOptimized(e,r,i),o=Lge(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 Dge(e,t){return e.initialLoadPending?(e.potentialProjectReferences&&rd(e.potentialProjectReferences,t))??(e.resolvedChildConfigs&&rd(e.resolvedChildConfigs,t)):void 0}function Fge(e,t,n){const r=n&&e.projectService.configuredProjects.get(n);return r&&t(r)}function Ege(e,t){return function(e,t,n,r){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.initialLoadPending?Dge(e,r):_(e.getProjectReferences(),n)}(e,(n=>Fge(e,t,n.sourceFile.path)),(n=>Fge(e,t,e.toPath(BV(n)))),(n=>Fge(e,t,n)))}function Pge(e,t){return`${Ye(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function Age(e){return!e.isScriptOpen()&&void 0!==e.mTime}function Ige(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&!e.updateGraph()}function Oge(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 Lge(e){const t=Xfe(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),jge(e))return n}function jge(e){return!(!e.parsedCommandLine||!e.parsedCommandLine.options.composite&&!ij(e.parsedCommandLine))}function Rge(e){return`User requested reload projects: ${e}`}function Mge(e){Bme(e)&&(e.projectOptions=!0)}function Bge(e){let t=1;return()=>e(t++)}function Jge(){return{idToCallbacks:new Map,pathToId:new Map}}function zge(e,t){return!!t&&!!e.eventHandler&&!!e.session}function qge(e,t){if(!zge(e,t))return;const n=Jge(),r=Jge(),i=Jge();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:Zme,data:{id:t,path:e}})))},watchDirectory:function(e,t,n){return a(n?i:r,e,t,(t=>({eventName:ege,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:tge,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 Uge=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=Bge(tme),this.newAutoImportProviderProjectName=Bge(nme),this.newAuxiliaryProjectName=Bge(rme),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=sge,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||yge,this.throttleWaitMilliseconds=e.throttleWaitMilliseconds,this.eventHandler=e.eventHandler,this.suppressDiagnosticEvents=e.suppressDiagnosticEvents,this.globalPlugins=e.globalPlugins||Hfe,this.pluginProbeLocations=e.pluginProbeLocations||Hfe,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=Xfe(this.host.getCurrentDirectory()),this.toCanonicalFileName=Vt(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Wo(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new ome(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:DG(this.host.newLine),preferences:bG,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=U0(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=Kge(this),this.watchFactory=0!==this.serverMode?{watchFile:k$,watchDirectory:k$}:NU(qge(this,e.canUseWatchEvents)||this.host,n,r,Pge),this.canUseWatchEvents=zge(this,e.canUseWatchEvents),null==(t=e.incrementalVerifier)||t.call(e,this)}toPath(e){return Uo(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:Xme,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)Ne(t.simpleMap,e)&&this.legacySafelist.set(e,t.simpleMap[e].toLowerCase())}catch(e){this.logger.info(`Error loading types map: ${e}`),this.safelist=sge,this.legacySafelist.clear()}}updateTypingsForProject(e){const t=this.findProject(e.projectName);if(t)switch(e.kind){case WK:return void t.updateTypingFiles(e.compilerOptions,e.typeAcquisition,e.unresolvedImports,e.typings);case $K: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(nge,2500,(()=>{0!==this.pendingProjectUpdates.size?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())})))}delayUpdateProjectGraph(e){if(qme(e))return;if(e.markAsDirty(),zme(e))return;const t=e.getProjectName();this.pendingProjectUpdates.set(t,e),this.throttledOperations.schedule(t,250,(()=>{this.pendingProjectUpdates.delete(t)&&Ige(e)}))}hasPendingProjectUpdate(e){return this.pendingProjectUpdates.has(e.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const e={eventName:Wme,data:{openFiles:Ie(this.openFiles.keys(),(e=>this.getScriptInfoForPath(e).fileName))}};this.eventHandler(e)}sendLargeFileReferencedEvent(e,t){if(!this.eventHandler)return;const n={eventName:Kme,data:{file:e,fileSize:t,maxFileSize:Vme}};this.eventHandler(n)}sendProjectLoadingStartEvent(e,t){if(!this.eventHandler)return;e.sendLoadingProjectFinish=!0;const n={eventName:$me,data:{project:e,reason:t}};this.eventHandler(n)}sendProjectLoadingFinishEvent(e){if(!this.eventHandler||!e.sendLoadingProjectFinish)return;e.sendLoadingProjectFinish=!1;const t={eventName:Hme,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=lge(e),r=_ge(e,t),i=uge(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 eme(e)?hge(e,this.inferredProjects):this.findExternalProjectByProjectName(e)||this.findConfiguredProjectByProjectName(Xfe(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),Vfe.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(e){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(e)}ensureProjectStructuresUptoDate(){let e=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const t=t=>{e=Ige(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)),T$.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)&&!zZ(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);TU({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(Bme(t)){e.hasMixedContent&&e.registerFileUpdate();const n=t.openFileWatchTriggered.get(e.path);void 0!==n&&(t.openFileWatchTriggered.delete(e.path),t.pendingUpdateLevel<n&&(t.pendingUpdateLevel=n,t.markFileAsDirty(e.path)))}else Mme(t)&&t.isRoot(e)&&(t.isProjectWithSingleRoot()&&(o=!0),t.removeFile(e,r,!0));t.languageServiceEnabled||t.markAsDirty()}return this.openFiles.delete(e.path),this.configFileForOpenFiles.delete(e.path),null==(n=this.pendingOpenFileProjectUpdates)||n.delete(e.path),_n.assert(!this.rootOfInferredProjects.has(e)),!t&&o&&this.assignOrphanScriptInfosToInferredProject(),r?this.watchClosedScriptInfo(e):this.handleDeletedFile(e,!1),o}deleteScriptInfo(e){_n.assert(!e.isScriptOpen()),this.filenameToScriptInfo.delete(e.path),this.filenameToScriptInfoVersion.set(e.path,e.textStorage.version),this.stopWatchingScriptInfo(e);const t=e.getRealpathIfDifferent();t&&this.realpathToScriptInfos.remove(t,e),e.closeSourceMapFileWatcher()}configFileExists(e,t,n){const r=this.configFileExistenceInfoCache.get(t);let i;if(!this.openFiles.has(n.path)||kge(n)&&!n.isForDefaultProject||(r?(r.openFilesImpactedByConfigFile??(r.openFilesImpactedByConfigFile=new Set)).add(n.path):(i=new Set).add(n.path)),r)return r.exists;const o=this.host.fileExists(e);return this.configFileExistenceInfoCache.set(t,{exists:o,openFilesImpactedByConfigFile:i}),o}createConfigFileWatcherForParsedConfig(e,t,n){var r,i;const o=this.configFileExistenceInfoCache.get(t);o.watcher&&o.watcher!==vge||(o.watcher=this.watchFactory.watchFile(e,((n,r)=>this.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)),T$.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,bU(e,this.sharedExtendedConfigFileWatchers),_n.checkDefined(o.watcher),(null==(i=o.openFilesImpactedByConfigFile)?void 0:i.size)?o.inferredProjectRoots?JW(Fo(e))||(o.watcher.close(),o.watcher=vge):(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=JW(Fo(t))?this.watchFactory.watchFile(n,((e,r)=>this.onConfigFileChanged(n,t,r)),2e3,this.hostConfiguration.watchOptions,T$.ConfigFileForInferredRoot):vge)})))}forEachConfigFileLocation(e,t){if(0!==this.serverMode)return;_n.assert(!xge(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=()=>ea(n,r,this.currentDirectory,!this.host.useCaseSensitiveFileNames),o=!n||!i();let a=!0,s=!0;kge(e)&&(a=!jt(e.fileName,"tsconfig.json")&&(s=!1));do{const e=Qfe(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(ca(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=bge(e,this.pendingOpenFileProjectUpdates);if(void 0!==t)return t}return bge(e,this.configFileForOpenFiles)}setConfigFileNameForFileInCache(e,t){if(!this.openFiles.has(e.path))return;const n=t||!1;if(kge(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($ge),this.configuredProjects.forEach($ge),this.inferredProjects.forEach($ge),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 hge(e,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(e,t,n,r){if(t&&t.disableSizeLimit||!this.host.getFileSize)return;let i=Ume;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(!jS(t)&&(o+=this.host.getFileSize(t),o>Ume||o>i)){const e=n.map((e=>r.getFileName(e))).filter((e=>!jS(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=lge(n),a=_ge(n,Fo(Lo(e))),s=new Rme(e,this,o,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e,o,t,gge),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,gge,r),this.externalProjects.push(s),s}sendProjectTelemetry(e){if(this.seenProjects.has(e.projectName))return void Mge(e);if(this.seenProjects.set(e.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash)return void Mge(e);const t=Bme(e)?e.projectOptions:void 0;Mge(e);const n={projectId:this.host.createSHA256Hash(e.projectName),fileStats:Cme(e.getScriptInfos(),!0),compilerOptions:Rj(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(!Bme(e))return"other";return sme(e.getConfigFilePath())||"other"}(),projectType:e instanceof Rme?"external":"configured",languageServiceEnabled:e.languageServiceEnabled,version:o};this.eventHandler({eventName:Qme,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:hU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const o=new jme(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=Xfe(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,mge);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,mge,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)||hU(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),c=sL(e,(e=>this.host.readFile(e))),l=UI(e,Ye(c)?c:""),_=l.parseDiagnostics;Ye(c)||_.push(c);const u=Fo(e),d=UL(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||mT(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),vU(t,d.options,this.sharedExtendedConfigFileWatchers,((t,n)=>this.watchFactory.watchFile(t,(()=>{var e;xU(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,T$.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,SU(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;dx(n.watchedDirectories,FU),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),nd(n.config.projects,at)||(n.config.watchedDirectories&&(dx(n.config.watchedDirectories,FU),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=Xfe(t);let c;if(bme(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=Qfe(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)),mge),e.markAsDirty(),e.updateGraph()}reloadFileNamesOfParsedConfig(e,t){if(void 0===t.updateLevel)return t.parsedCommandLine;_n.assert(1===t.updateLevel);const n=Cj(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,mge)}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,Rge(t)),!0)}setProjectForReload(e,t,n){2===t&&this.clearSemanticCache(e),e.pendingUpdateReason=n&&Rge(n),e.pendingUpdateLevel=t}reloadConfiguredProject(e,t){e.initialLoadPending=!1,this.setProjectForReload(e,0),this.loadConfiguredProject(e,t),Oge(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:Gme,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&&ea(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 Ame(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(Xfe(e),t,void 0,void 0,n,r)}getScriptInfo(e){return this.getScriptInfoForNormalizedPath(Xfe(e))}getScriptInfoOrConfig(e){const t=Xfe(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?nd(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,T$.ClosedScriptInfo)}}createNodeModulesWatcher(e,t){let n=this.watchFactory.watchDirectory(e,(e=>{var n;const i=RW(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?Age(e)&&this.refreshScriptInfo(e):ko(i)||this.refreshScriptInfosInDirectory(i)}}),1,this.hostConfiguration.watchOptions,T$.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=>{Age(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)||bme(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=Qfe(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=bme(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 xme(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(Qfe(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:JQ(o)};const a=e.projectName,s=F1({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,T$.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(Xfe(e.file));t&&(t.setOptions(cge(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,...cge(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=_ge(e.watchOptions))?void 0:t.watchOptions,r=GL(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?GL(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(Age(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(nge),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,Jme)||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()&&Mme(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(Ige),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(e,t,n,r){return this.openClientFileWithNormalizedPath(Xfe(e),t,n,!1,r?Xfe(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:Xfe(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,Nge(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=>{Bme(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=>(Ige(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(Ige),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 jge(e)?e.projectService.configFileExistenceInfoCache.get(e.canonicalConfigFilePath):void 0}(_);break;case 4:case 5:_??(_=this.createConfiguredProject(e,n)),a||({sentConfigFileDiag:u,configFileExistenceInfo:l}=Nge(_,t,i));break;case 6:if(_??(_=this.createConfiguredProject(e,Rge(n))),_.projectService.reloadConfiguredProjectOptimized(_,n,o),l=Lge(_),l)break;case 7:_??(_=this.createConfiguredProject(e,Rge(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=Tge(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(JS(n.fileName,t.options,this.hostConfiguration.extraFileExtensions))return!1;const{validatedFilesSpec:r,validatedIncludeSpecs:i,validatedExcludeSpecs:o}=t.options.configFile.configFileSpecs,a=Xfe(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)&&(!Fj(n.fileName,o,this.host.useCaseSensitiveFileNames,this.currentDirectory,a)&&(null==i?void 0:i.some((e=>{const t=pS(e,a,"files");return!!t&&hS(`(${t})$`,this.host.useCaseSensitiveFileNames).test(n.fileName)}))))}tryFindDefaultConfiguredProjectForOpenScriptInfoOrClosedFileInfo(e,t,n,r,i,o){const a=xge(e),s=Tge(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,Xfe(e.project.getConfigFilePath()),e.reason,e.project,e.project.canonicalConfigFilePath):h(e.project,t)}(t,t.project)??((n=t.project).parsedCommandLine&&wge(n,n.parsedCommandLine,g,s,r(n),i,o))??function(t){return a?Cge(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?Nge(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&&Cge(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)Dge(r,(t=>e.has(t)))&&Ige(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=mV(r.references,(e=>t.has(e.sourceFile.path)?e:void 0));if(!i)continue;const o=Xfe(r.sourceFile.fileName),a=this.findConfiguredProjectByProjectName(o)??this.createConfiguredProject(o,`Creating project referenced by : ${e.projectName} as it references project ${i.sourceFile.fileName}`);Ige(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)=>{ea(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(Qfe(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||!Bme(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?(nd(this.openFiles,((e,n)=>{if(null==t?void 0:t.has(n))return;const i=this.getScriptInfoForPath(n);if(y(i.containingProjects,Jme))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?(nd(this.configuredProjects,(e=>{if(r.has(e)&&(a(e)||Ege(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),Ege(e,s))}}removeOrphanScriptInfos(){const e=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach((t=>{if(!t.deferredDelete){if(!t.isScriptOpen()&&t.isOrphan()&&!Sme(t)&&!kme(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(!rd(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()||!xx(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:Yme,data:{info:{checkJs:r}}})}closeClientFile(e,t){const n=this.getScriptInfoForNormalizedPath(Xfe(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(Qfe(Xfe(t.fileName),t.projectRootPath?this.getNormalizedAbsolutePath(t.projectRootPath):this.currentDirectory,this.toCanonicalFileName)));const e=this.getOrCreateOpenScriptInfo(Xfe(t.fileName),t.content,dge(t.scriptKind),t.hasMixedContent,t.projectRootPath?Xfe(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=Xfe(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=sge}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;e<n.length;e++)if(s.some((t=>t.test(a[e]))))_(e);else{if(r.enable){const t=Eo(lt(a[e]));if(So(t,"js")){const n=Bt(VS(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=Xfe(t.fileName);if(sme(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=Dme(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=lge(e.options),a=_ge(e.options,n.getCurrentDirectory()),s=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(e.projectFileName,r,i,gge);s?n.disableLanguageService(s):n.enableLanguageService(),n.setProjectErrors(null==a?void 0:a.errors),this.updateRootAndOptionsOfNonInferredProject(n,i,gge,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||Cs(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=Pme.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,Pme.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(D(e,(async([e,n])=>{const r=await Promise.all(n);if(e.isClosed()||qme(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 hM(t,Fo(e),a),o}getNearestAncestorDirectoryWithPackageJson(e,t){return hM(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,T$.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}}}())}};Uge.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g;var Vge=Uge;function Wge(e){return void 0!==e.kind}function $ge(e){e.print(!1,!1,!1)}function Hge(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(zR)+zR.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(rx),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 Kge(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)=>{hM(o,t,(t=>{const o=e.toPath(t);if(3!==i(o))return!0;const a=Ro(t,"package.json");AZ(e,a)?r(a,Ro(o,"package.json")):n.set(o,!0)}))}};function r(r,i){const o=_n.checkDefined(MZ(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 Gge={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}};function Xge(e,t){if((Mme(e)||Jme(e))&&e.isJsOnlyProject()){const n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function Qge(e,t,n){const r=t.getScriptInfoForNormalizedPath(e);return{start:r.positionToLineOffset(n.start),end:r.positionToLineOffset(n.start+n.length),text:ZU(n.messageText,"\n"),code:n.code,category:si(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:D(n.relatedInformation,Yge)}}function Yge(e){return e.file?{span:{start:Zge(za(e.file,e.start)),end:Zge(za(e.file,e.start+e.length)),file:e.file.fileName},message:ZU(e.messageText,"\n"),category:si(e),code:e.code}:{message:ZU(e.messageText,"\n"),category:si(e),code:e.code}}function Zge(e){return{line:e.line+1,offset:e.character+1}}function ehe(e,t){const n=e.file&&Zge(za(e.file,e.start)),r=e.file&&Zge(za(e.file,e.start+e.length)),i=ZU(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:D(e.relatedInformation,Yge)};return t?{...s,fileName:e.file&&e.file.fileName}:s}var the=lme;function nhe(e,t,n,r){const i=t.hasLevel(3),o=JSON.stringify(e);i&&t.info(`${e.type}:${iG(e)}`);return`Content-Length: ${1+n(o,"utf8")}\r\n\r\n${o}${r}`}var rhe=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 ihe(e,t){return{seq:0,type:"event",event:e,body:t}}function ohe(e){return Ge((({textSpan:e})=>e.start+100003*e.length),fY(e))}function ahe(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 she(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 che(e,t,n,r,i,o,a){const s=new Map,c=Ke();c.enqueue({project:t,location:n}),she(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(uhe(e,t))continue;if(Ige(e),!e.containsFile(Xfe(t.fileName)))continue;const n=f(e,t);s.set(e,n??Hfe),p.add(dhe(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 lhe(e,t){if(t.containsFile(Xfe(e.fileName))&&!uhe(t,e))return e}function _he(e,t,n,r){const i=lhe(e,t);if(i)return i;const o=n();if(o&&t.containsFile(Xfe(o.fileName)))return o;const a=r();return a&&t.containsFile(Xfe(a.fileName))?a:void 0}function uhe(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 dhe(e){return Bme(e)?e.canonicalConfigFilePath:e.getProjectName()}function phe({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function fhe(e,t){return hY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function mhe(e,t){return yY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}function ghe(e,t){return vY(e,t.getSourceMapper(),(e=>t.projectService.fileExists(e)))}var hhe=["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"],yhe=[...hhe,"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"],vhe=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=D(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(Xfe(e.arguments.file),e.arguments.fileContent,pge(e.arguments.scriptKindName),e.arguments.projectRootPath?Xfe(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||yge,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 rhe(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 Vge(r),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new ame(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:hhe.forEach((e=>this.handlers.set(e,(e=>{throw new Error(`Request: ${e.command} not allowed in LanguageServiceMode.PartialSemantic`)}))));break;case 2:yhe.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&&bhe(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 Wme:this.projectsUpdatedInBackgroundEvent(e.data.openFiles);break;case $me:this.event({projectName:e.data.project.getProjectName(),reason:e.data.reason},e.eventName);break;case Hme:this.event({projectName:e.data.project.getProjectName()},e.eventName);break;case Kme:case Zme:case ege:case tge:this.event(e.data,e.eventName);break;case Gme:this.event({triggerFile:e.data.triggerFile,configFile:e.data.configFileName,diagnostics:D(e.data.diagnostics,(e=>ehe(e,!0)))},e.eventName);break;case Xme:this.event({projectName:e.data.project.getProjectName(),languageServiceEnabled:e.data.languageServiceEnabled},e.eventName);break;case Qme:{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},Wme))}logError(e,t){this.logErrorWorker(e,t)}logErrorWorker(e,t,n){let r="Exception on executing command "+t;if(e.message&&(r+=":\n"+rG(e.message),e.stack&&(r+="\n"+rG(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=JQ(i.getSnapshot());r+=`\n\nFile text of ${n.file}:${rG(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}' (${Tme[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: ${iG(e)}`)}writeMessage(e){const t=nhe(e,this.logger,this.byteLength,this.host.newLine);this.host.write(t)}event(e,t){this.send(ihe(t,e))}doOutput(e,t,n,r,i,o){const a={seq:0,type:"response",command:t,request_seq:n,success:r,performanceData:i&&bhe(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=Xge(t,e)?Hfe: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=>Qge(e,t,n))),spans:null==o?void 0:o.map((e=>xhe(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 Ige(_),_.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=Xfe(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):D(r,(e=>ehe(e,!1)))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(e){return e.map((e=>({message:ZU(e.messageText,this.host.newLine),start:e.start,length:e.length,category:si(e),code:e.code,source:e.source,startLocation:e.file&&Zge(za(e.file,e.start)),endLocation:e.file&&Zge(za(e.file,e.start+e.length)),reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,relatedInformation:D(e.relatedInformation,Yge)})))}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:ZU(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:D(e.relatedInformation,Yge)})))}getDiagnosticsWorker(e,t,n,r){const{project:i,file:o}=this.getFileAndProject(e);if(t&&Xge(i,o))return Hfe;const a=i.getScriptInfoForNormalizedPath(o),s=n(i,o);return r?this.convertToDiagnosticsWithLinePosition(s,a):s.map((e=>Qge(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)||Hfe,i);return n?this.mapDefinitionInfo(a,i):a.map(e.mapToOriginalLocation)}mapDefinitionInfoLocations(e,t){return e.map((e=>{const n=mhe(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:Hfe,textSpan:void 0};const c=this.mapDefinitionInfoLocations(s.definitions,i),{textSpan:l}=s;return n?{definitions:this.mapDefinitionInfo(c,i),textSpan:xhe(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||Hfe,r).slice();if(0===this.projectService.serverMode&&(!V(a,(e=>Xfe(e.fileName)!==n&&!e.isAmbient))||V(a,(e=>!!e.failedAliasResolution)))){const e=Ge((e=>e.textSpan.start),fY(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=>Xfe(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=>Xfe(e.fileName)!==n&&e.isAmbient));for(const a of V(t)?t:function(){const e=r.getLanguageService(),t=e.getProgram(),o=VX(t.getSourceFile(n),i);if((ju(o)||VN(o))&&Tx(o.parent))return Dx(o,(t=>{var r;if(t===o)return;const i=null==(r=e.getDefinitionAtPosition(n,t.getStart(),!0,!1))?void 0:r.filter((e=>Xfe(e.fileName)!==n&&e.isAmbient)).map((e=>({fileName:e.fileName,name:qh(o)})));return V(i)?i:void 0}))||Hfe;return Hfe}()){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=VT(e);if(s&&e.lastIndexOf(zR)===s.topLevelNodeModulesIndex){const c=e.substring(0,s.packageRootIndex),l=null==(i=r.getModuleResolutionCache())?void 0:i.getPackageJsonInfoCache(),_=r.getCompilationSettings(),u=nM(Jo(c,r.getCurrentDirectory()),tM(l,r,_));if(!u)return;const d=ZR(u,{moduleResolution:2},r,r.getModuleResolutionCache()),p=CM(wM(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}/${VS(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=VX(t.getSourceFile(n),i),c=t.getTypeChecker().getSymbolAtLocation(s),_=c&&$u(c,276);if(!_)return;return l((null==(o=_.propertyName)?void 0:o.text)||_.name.text,a,r)}function l(e,t,n){return R(wce.Core.getTopMostDeclarationNamesInFile(e,t),(e=>{const t=n.getTypeChecker().getSymbolAtLocation(e),r=_h(e);if(t&&r)return ple.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=>ehe(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,Fs(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)||Hfe,n);return this.mapDefinitionInfo(i,n)}mapImplementationLocations(e,t){return e.map((e=>{const n=mhe(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)||Hfe,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?Hfe: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?Hfe: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})=>({...khe(e,r,n),kind:t})))}})):o:Hfe}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);Ige(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(Xfe(t.getConfigFilePath())):(o??(o=[])).push(Xfe(t.getConfigFilePath())))})),null==(t=r.seenConfigs)||t.forEach((e=>(i??(i=[])).push(e))),{notMatchedByConfig:i,notInProject:o,defaultProject:r.defaultProject&&Xfe(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?Hfe:(this.projectService.logErrorForScriptInfoNotFound(e.file),Vfe.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),Vfe.ThrowNoProject())}getDefaultProject(e){if(e.projectFileName){const t=this.getProject(e.projectFileName);if(t)return t;if(!e.file)return Vfe.ThrowNoProject()}return this.projectService.getScriptInfo(e.file).getDefaultProject()}getRenameLocations(e,t){const n=Xfe(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=che(e,t,n,ahe(t,n,!0),_he,((e,t)=>e.getLanguageService().findRenameLocations(t.fileName,t.pos,r,i,o)),((e,t)=>t(phe(e))));if(Xe(s))return s;const c=[],l=ohe(a);return s.forEach(((e,t)=>{for(const n of e)l.has(n)||fhe(phe(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:xhe(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({...khe(r,i,o),...c})}return Ie(t.values())}getReferences(e,t){const n=Xfe(e.file),r=this.getProjects(e),i=this.getPositionInFile(e,n),o=function(e,t,n,r,i){var o,a;const s=che(e,t,n,ahe(t,n,!1),_he,((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(phe(e.definition));for(const n of e.references)t(phe(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=ohe(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=[],_=ohe(r);return s.forEach(((e,t)=>{for(const n of e){const e=fhe(phe(n.definition),t),i=void 0===e?n.definition:{...n.definition,textSpan:Ws(e.pos,n.definition.textSpan.length),fileName:e.fileName,contextSpan:ghe(n.definition,t)};let o=y(l,(e=>pY(e.definition,i,r)));o||(o={definition:i,references:[]},l.push(o));for(const e of n.references)_.has(e)||fhe(phe(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?$8(l.displayParts):"",u=l&&l.textSpan,d=u?c.positionToLineOffset(u.start).offset:0,p=u?c.getSnapshot().getText(u.start,Fs(u)):"";return{refs:A(o,(e=>e.references.map((e=>Che(this.projectService,e,a))))),symbolName:p,symbolStartOffset:d,symbolDisplayString:_}}getFileReferences(e,t){const n=this.getProjects(e),r=Xfe(e.file),i=this.getPreferences(r),o={fileName:r,pos:0},a=che(n,this.getDefaultProject(e),o,o,lhe,(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=ohe(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=>Che(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=Xfe(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:xhe(t.textSpan,e),hintSpan:xhe(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?cge(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=r.getLanguageService().getQuickInfoAtPosition(n,this.getPosition(e,i),e.verbosityLevel);if(!o)return;const a=!!this.getPreferences(n).displayPartsForJSDoc;if(t){const e=$8(o.displayParts);return{kind:o.kind,kindModifiers:o.kindModifiers,start:i.positionToLineOffset(o.textSpan.start),end:i.positionToLineOffset(Fs(o.textSpan)),displayString:e,documentation:a?this.mapDisplayParts(o.documentation,r):$8(o.documentation),tags:this.mapJSDocTagInfo(o.tags,r,a),canIncreaseVerbosityLevel:o.canIncreaseVerbosityLevel}}return a?o:{...o,tags:this.mapJSDocTagInfo(o.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?cge(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?cge(e.options):this.getFormatOptions(t);return n.getFormattingEditsForDocument(t,r)}getFormattingEditsAfterKeystrokeFull(e){const{file:t,languageService:n}=this.getFileAndLanguageServiceForSyntacticOperation(e),r=e.options?cge(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=>Fs(e.span)<t))}(a,i))){const{lineText:s,absolutePosition:c}=r.textStorage.getAbsolutePositionAndLineText(e.line);if(s&&s.search("\\S")<0){const e=n.getIndentationAtPosition(t,i,o);let r,l,_=0;for(r=0,l=s.length;r<l;r++)if(" "===s.charAt(r))_++;else{if("\t"!==s.charAt(r))break;_+=o.tabSize}if(e!==_){const t=c+r;a.push({span:$s(c,t),newText:Sde.getIndentationString(e,o)})}}}if(a)return a.map((e=>({start:r.positionToLineOffset(e.span.start),end:r.positionToLineOffset(Fs(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,{...fge(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?xhe(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&&xhe(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,whe):void 0)}));return t?s?c:c.map((e=>({...e,tags:this.mapJSDocTagInfo(e.tags,r,!1)}))):c.map((e=>({...e,codeActions:D(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||YI(t.fileName)&&!function(e){return Fk(e)||!!e.emitDecoratorMetadata}(n)?void 0:{projectFileName:e.getProjectName(),fileNames:e.getCompileOnSaveAffectedFileList(t),projectUsesOutFile:!!n.outFile}})):Hfe}emitFile(e){const{file:t,project:n}=this.getFileAndProject(e);if(n||Vfe.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=>ehe(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=Xfe(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=Xfe(e.file),n=void 0===e.tmpfile?void 0:Xfe(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 D(e,(e=>({text:e.text,kind:e.kind,kindModifiers:e.kindModifiers,spans:e.spans.map((e=>xhe(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=>xhe(e,t))),nameSpan:e.nameSpan&&xhe(e.nameSpan,t),childItems:D(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(Fs(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){she(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)&&!fhe(phe(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 K8();if(e.file){const{file:t,project:n}=this.getFileAndProject(e);return n.getLanguageService().getSupportedCodeFixes(t)}const t=this.getProject(e.projectFileName);return t||Vfe.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:Zge({line:e.range.start.line,character:e.range.start.offset}),end:Zge({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=The(JQ(r.getScriptInfoForNormalizedPath(Xfe(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(bme(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(Xfe(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=Xfe(e.oldFilePath),r=Xfe(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=r.getLanguageService(),s=[...i.getSyntacticDiagnostics(n),...i.getSemanticDiagnostics(n),...i.getSuggestionDiagnostics(n)].map((e=>Js(o,a-o,e.start,e.length)&&e.code)),c=e.errorCodes.find((e=>!s.includes(e)));throw void 0!==c&&(t.message=`BADCLIENT: Bad error code, ${c} not found in range ${o}..${a} (found: ${s.join(", ")}); could have caused this error:\n${t.message}`),t}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:She(t,e.span.start),end:She(t,Fs(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=>xhe(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=[],_=Xfe(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):YI(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 D(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:xhe(e.textSpan,t)};return e.parent&&(n.parent=this.mapSelectionRange(e.parent,t)),n}getScriptInfoFromProjectService(e){const t=Xfe(e),n=this.projectService.getScriptInfoForNormalizedPath(t);return n||(this.projectService.logErrorForScriptInfoNotFound(t),Vfe.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:xhe(e.span,t),selectionSpan:xhe(e.selectionSpan,t)}}toProtocolCallHierarchyIncomingCall(e){const t=this.getScriptInfoFromProjectService(e.from.file);return{from:this.toProtocolCallHierarchyItem(e.from),fromSpans:e.fromSpans.map((e=>xhe(e,t)))}}toProtocolCallHierarchyOutgoingCall(e,t){return{to:this.toProtocolCallHierarchyItem(e.to),fromSpans:e.fromSpans.map((e=>xhe(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&&HZ(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:${iG(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:${rG(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 bhe(e){const t=e.diagnosticsDuration&&Ie(e.diagnosticsDuration,(([e,t])=>({...t,file:e})));return{...e,diagnosticsDuration:t}}function xhe(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Fs(e))}}function khe(e,t,n){const r=xhe(e,n),i=t&&xhe(t,n);return i?{...r,contextStart:i.start,contextEnd:i.end}:r}function She(e,t){return Wge(e)?{line:(n=e.getLineAndCharacterOfPosition(t)).line+1,offset:n.character+1}:e.positionToLineOffset(t);var n}function The(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}=Ma(Oa(i),n);return{line:o+1,offset:a+1}}function Che(e,{fileName:t,textSpan:n,contextSpan:r,isWriteAccess:i,isDefinition:o},{disableLineTextInReferences:a}){const s=_n.checkDefined(e.getScriptInfo(t)),c=khe(n,r,s),l=a?void 0:function(e,t){const n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,Fs(n)).replace(/\r|\n/g,"")}(s,c);return{file:t,...c,lineText:l,isWriteAccess:i,isDefinition:o}}function whe(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 Nhe=(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))(Nhe||{}),Dhe=class{constructor(){this.goSubtree=!0,this.lineIndex=new Ihe,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new Ohe,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=Ihe.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<n.length;t++)e[t-1]=new Lhe(n[t]);let r=this.startPath.length-2;for(;r>=0;){const n=this.startPath[r];e=n.insertAt(t,e),r--,t=n}let i=e.length;for(;i>0;){const t=new Ohe;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 Lhe(""):new Ohe}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)}},Fhe=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return Gs(Ws(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},Ehe=class e{constructor(){this.changes=[],this.versions=new Array(e.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion||t>this.currentVersion))return t%e.maxVersions}currentVersionToIndex(){return this.currentVersion%e.maxVersions}edit(t,n,r){this.changes.push(new Fhe(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 Ahe(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 Ws(r,void 0!==n?n.length:t.absolutePositionOfStartOfLine(e+2)-r)}getTextChangesBetweenVersions(e,t){if(!(e<t))return Xs;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 Qs(n)}}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const n=new e,r=new Ahe(0,n,new Ihe);n.versions[n.currentVersion]=r;const i=Ihe.linesFromText(t);return r.index.load(i.lines),n}};Ehe.changeNumberThreshold=8,Ehe.changeLengthThreshold=256,Ehe.maxVersions=8;var Phe=Ehe,Ahe=class e{constructor(e,t,n,r=Hfe){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?Xs:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},Ihe=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;e<t.length;e++)n[e]=new Lhe(t[e]);this.root=e.buildTreeFromBottom(n)}else this.root=new Ohe}walk(e,t,n){this.root.walk(e,t,n)}getText(e,t){let n="";return t>0&&e<this.root.charCount()&&this.walk(e,t,{goSubtree:!0,done:!1,leaf:(e,t,r)=>{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 Dhe;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 Ohe(e);const t=new Array(Math.ceil(e.length/4));let n=0;for(let r=0;r<t.length;r++){const i=Math.min(n+4,e.length);t[r]=new Ohe(e.slice(n,i)),n=i}return this.buildTreeFromBottom(t)}static linesFromText(e){const t=Oa(e);if(0===t.length)return{lines:[],lineMap:t};const n=new Array(t.length),r=t.length-1;for(let i=0;i<r;i++)n[i]=e.substring(t[i],t[i+1]);const i=e.substring(t[r]);return i.length>0?n[r]=i:n.pop(),{lines:n,lineMap:t}}},Ohe=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(r<e-1)for(let t=r+1;t<e;t++)this.skipChild(0,0,t,n,5)}}charOffsetToLineInfo(e,t){if(0===this.children.length)return{oneBasedLine:e,zeroBasedColumn:t,lineText:void 0};for(const n of this.children){if(n.charCount()>t)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<r){for(n=new e;t<r;)n.add(this.children[t]),t++;n.updateCounts()}return this.children.length=i,n}remove(e){const t=this.findChildIndex(e),n=this.children.length;if(t<n-1)for(let e=t;e<n-1;e++)this.children[e]=this.children[e+1];this.children.pop()}findChildIndex(e){const t=this.children.indexOf(e);return _n.assert(-1!==t),t}insertAt(t,n){let r=this.findChildIndex(t);const i=this.children.length,o=n.length;if(i<4&&r===i-1&&1===o)return this.add(n[0]),this.updateCounts(),[];{const t=this.splitAfter(r);let i=0;for(r++;r<4&&i<o;)this.children[r]=n[i],r++,i++;let a=[],s=0;if(i<o){s=Math.ceil((o-i)/4),a=new Array(s);let t=0;for(let t=0;t<s;t++)a[t]=new e;let r=a[0];for(;i<o;)r.add(n[i]),i++,4===r.children.length&&(t++,r=a[t]);for(let e=a.length-1;e>=0;e--)0===a[e].children.length&&a.pop()}t&&a.push(t),this.updateCounts();for(let e=0;e<s;e++)a[e].updateCounts();return a}}add(e){this.children.push(e),_n.assert(this.children.length<=4)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},Lhe=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,t,n){n.leaf(e,t,this)}charCount(){return this.text.length}lineCount(){return 1}},jhe=class e{constructor(e,t,n,r,i,o){this.telemetryEnabled=e,this.logger=t,this.host=n,this.globalTypingsCacheLocation=r,this.event=i,this.maxActiveRequestCount=o,this.activeRequestCount=0,this.requestQueue=Ke(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(e){var t;return qK.validatePackageName(e)===qK.NameValidationResult.Ok&&(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!(null==(t=this.typesRegistryCache)?void 0:t.has(e)))}installPackage(e){this.packageInstallId++;const t={kind:"installPackage",...e,id:this.packageInstallId},n=new Promise(((e,t)=>{(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=Gfe(e,t,n);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${iG(r)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(r):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${r.projectName}`),this.requestQueue.enqueue(r),this.requestMap.set(r.projectName,r))}handleMessage(e){var t,n;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${iG(e)}`),e.kind){case KK:this.typesRegistryCache=new Map(Object.entries(e.typesRegistry));break;case HK:{const r=null==(t=this.packageInstalledPromise)?void 0:t.get(e.id);_n.assertIsDefined(r,"Should find the promise for package install"),null==(n=this.packageInstalledPromise)||n.delete(e.id),e.success?r.resolve({successMessage:e.message}):r.reject(e.message),this.projectService.updateTypingsForProject(e),this.event(e,"setTypings");break}case QK:{const t={message:e.message},n="typesInstallerInitializationFailed";this.event(t,n);break}case GK:{const t={eventId:e.eventId,packages:e.packagesToInstall},n="beginInstallTypes";this.event(t,n);break}case XK:{if(this.telemetryEnabled){const t={telemetryEventName:"typingsInstalled",payload:{installedPackages:e.packagesToInstall.join(","),installSuccess:e.installSuccess,typingsInstallerVersion:e.typingsInstallerVersion}},n="telemetry";this.event(t,n)}const t={eventId:e.eventId,packages:e.packagesToInstall,success:e.installSuccess},n="endInstallTypes";this.event(t,n);break}case $K:this.projectService.updateTypingsForProject(e);break;case WK:for(this.activeRequestCount>0?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 YK: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:${iG(t)}`),this.installer.send(t)}),e.requestDelayMillis,`${t.projectName}::${t.kind}`)}};jhe.requestDelayMillis=100;var Rhe=jhe,Mhe={};n(Mhe,{ActionInvalidate:()=>$K,ActionPackageInstalled:()=>HK,ActionSet:()=>WK,ActionWatchTypingLocations:()=>YK,Arguments:()=>UK,AutoImportProviderProject:()=>Lme,AuxiliaryProject:()=>Ime,CharRangeSection:()=>Nhe,CloseFileWatcherEvent:()=>tge,CommandNames:()=>the,ConfigFileDiagEvent:()=>Gme,ConfiguredProject:()=>jme,ConfiguredProjectLoadKind:()=>Sge,CreateDirectoryWatcherEvent:()=>ege,CreateFileWatcherEvent:()=>Zme,Errors:()=>Vfe,EventBeginInstallTypes:()=>GK,EventEndInstallTypes:()=>XK,EventInitializationFailed:()=>QK,EventTypesRegistry:()=>KK,ExternalProject:()=>Rme,GcTimer:()=>ame,InferredProject:()=>Ame,LargeFileReferencedEvent:()=>Kme,LineIndex:()=>Ihe,LineLeaf:()=>Lhe,LineNode:()=>Ohe,LogLevel:()=>$fe,Msg:()=>Kfe,OpenFileInfoTelemetryEvent:()=>Yme,Project:()=>Pme,ProjectInfoTelemetryEvent:()=>Qme,ProjectKind:()=>Tme,ProjectLanguageServiceStateEvent:()=>Xme,ProjectLoadingFinishEvent:()=>Hme,ProjectLoadingStartEvent:()=>$me,ProjectService:()=>Vge,ProjectsUpdatedInBackgroundEvent:()=>Wme,ScriptInfo:()=>xme,ScriptVersionCache:()=>Phe,Session:()=>vhe,TextStorage:()=>vme,ThrottledOperations:()=>ome,TypingsInstallerAdapter:()=>Rhe,allFilesAreJsOrDts:()=>Nme,allRootFilesAreJsOrDts:()=>wme,asNormalizedPath:()=>Yfe,convertCompilerOptions:()=>lge,convertFormatOptions:()=>cge,convertScriptKindName:()=>pge,convertTypeAcquisition:()=>uge,convertUserPreferences:()=>fge,convertWatchOptions:()=>_ge,countEachFileTypes:()=>Cme,createInstallTypingsRequest:()=>Gfe,createModuleSpecifierCache:()=>Hge,createNormalizedPathMap:()=>Zfe,createPackageJsonCache:()=>Kge,createSortedArray:()=>ime,emptyArray:()=>Hfe,findArgument:()=>eG,formatDiagnosticToProtocol:()=>ehe,formatMessage:()=>nhe,getBaseConfigFileName:()=>sme,getDetailWatchInfo:()=>Pge,getLocationInNewDocument:()=>The,hasArgument:()=>ZK,hasNoTypeScriptSource:()=>Dme,indent:()=>rG,isBackgroundProject:()=>zme,isConfigFile:()=>Wge,isConfiguredProject:()=>Bme,isDynamicFileName:()=>bme,isExternalProject:()=>Jme,isInferredProject:()=>Mme,isInferredProjectName:()=>eme,isProjectDeferredClose:()=>qme,makeAutoImportProviderProjectName:()=>nme,makeAuxiliaryProjectName:()=>rme,makeInferredProjectName:()=>tme,maxFileSize:()=>Vme,maxProgramSizeForNonTsFiles:()=>Ume,normalizedPathToPath:()=>Qfe,nowString:()=>tG,nullCancellationToken:()=>Gge,nullTypingsInstaller:()=>yge,protocol:()=>cme,scriptInfoIsContainedByBackgroundProject:()=>kme,scriptInfoIsContainedByDeferredClosedProject:()=>Sme,stringifyIndented:()=>iG,toEvent:()=>ihe,toNormalizedPath:()=>Xfe,tryConvertScriptKindName:()=>dge,typingsInstaller:()=>Rfe,updateProjectIfDirty:()=>Ige}),"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/913fa72109a7d4762dc7b383db5eb07ae9b2cbb1bd09d45e406b197f82407957.map