@uibot/design-md-importer 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +34 -34
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,61 +1,61 @@
1
1
  // @bun
2
- var Kx=Object.create;var{getPrototypeOf:Vx,defineProperty:El,getOwnPropertyNames:Yx}=Object;var Pl=Object.prototype.hasOwnProperty;function Jx(e){return this[e]}var Wx,Xx,Al=(e,t,r)=>{var s=e!=null&&typeof e==="object";if(s){var i=t?Wx??=new WeakMap:Xx??=new WeakMap,n=i.get(e);if(n)return n}r=e!=null?Kx(Vx(e)):{};let a=t||!e||!e.__esModule||!Pl.call(e,"default")?El(r,"default",{value:e,enumerable:!0}):r;if(e&&typeof e==="object"||typeof e==="function"){for(let o of Yx(e))if(!Pl.call(a,o))El(a,o,{get:Jx.bind(e,o),enumerable:!0})}if(s)i.set(e,a);return a};var A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var nn=import.meta.require;var Gs=A(function(yu){Object.defineProperty(yu,"__esModule",{value:!0});function $x(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}class Ut{constructor(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r}}class ns{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}}function Xe(e,t){let{line:r,column:s,index:i}=e;return new Ut(r,s+t,i+t)}var vl="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Hx={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:vl},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:vl}},Cl={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Js=(e)=>e.type==="UpdateExpression"?Cl.UpdateExpression[`${e.prefix}`]:Cl[e.type],zx={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
2
+ var Vx=Object.create;var{getPrototypeOf:Yx,defineProperty:El,getOwnPropertyNames:Jx}=Object;var Pl=Object.prototype.hasOwnProperty;function Wx(e){return this[e]}var Xx,$x,Al=(e,t,r)=>{var s=e!=null&&typeof e==="object";if(s){var i=t?Xx??=new WeakMap:$x??=new WeakMap,n=i.get(e);if(n)return n}r=e!=null?Vx(Yx(e)):{};let a=t||!e||!e.__esModule||!Pl.call(e,"default")?El(r,"default",{value:e,enumerable:!0}):r;if(e&&typeof e==="object"||typeof e==="function"){for(let o of Jx(e))if(!Pl.call(a,o))El(a,o,{get:Wx.bind(e,o),enumerable:!0})}if(s)i.set(e,a);return a};var A=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var nn=import.meta.require;var Qs=A(function(yu){Object.defineProperty(yu,"__esModule",{value:!0});function Hx(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}class Ut{constructor(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r}}class as{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}}function Xe(e,t){let{line:r,column:s,index:i}=e;return new Ut(r,s+t,i+t)}var vl="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",zx={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:vl},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:vl}},Cl={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Ws=(e)=>e.type==="UpdateExpression"?Cl.UpdateExpression[`${e.prefix}`]:Cl[e.type],Gx={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
3
3
  - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
4
- - Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${Js(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${Js(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${Js(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map((t)=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map((t)=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperCallNotNewExpression:"Cannot use new with super(...).",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Gx={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Qx={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},Zx=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),eS=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${Js({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),tS={UnsupportedBind:"Binding should be performed on object property.",UnsupportedBindRHS:"The right-hand side of binding can not be super or import."},rS=["message"];function Il(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function sS({toMessage:e,code:t,reasonCode:r,syntaxPlugin:s}){let i=r==="MissingPlugin"||r==="MissingOneOfPlugins",n={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(n[r])r=n[r];return function a(o,l){let u=SyntaxError();if(u.code=t,u.reasonCode=r,u.loc=o,u.pos=o.index,u.syntaxPlugin=s,i)u.missingPlugin=l.missingPlugin;return Il(u,"clone",function(m={}){var x;let{line:g,column:E,index:I}=(x=m.loc)!=null?x:o;return a(new Ut(g,E,I),Object.assign({},l,m.details))}),Il(u,"details",l),Object.defineProperty(u,"message",{configurable:!0,get(){let p=`${e(l)} (${o.line}:${o.column})`;return this.message=p,p},set(p){Object.defineProperty(this,"message",{value:p,writable:!0})}}),u}}function xt(e,t){if(Array.isArray(e))return(s)=>xt(s,e[0]);let r={};for(let s of Object.keys(e)){let i=e[s],n=typeof i==="string"?{message:()=>i}:typeof i==="function"?{message:i}:i,{message:a}=n,o=$x(n,rS),l=typeof a==="string"?()=>a:a;r[s]=sS(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}var T=Object.assign({},xt(Hx),xt(zx),xt(Gx),xt(Qx),xt`pipelineOperator`(eS),xt`functionBind`(tS));function iS(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function nS(e){let t=iS();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))if(e[r]!=null)t[r]=e[r];if(t.startLine===1){if(e.startIndex==null&&t.startColumn>0)t.startIndex=t.startColumn;else if(e.startColumn==null&&t.startIndex>0)t.startColumn=t.startIndex}else if(e.startColumn==null||e.startIndex==null){if(e.startIndex!=null)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.")}if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:aS}=Object,wl=(e,t)=>{if(e)aS(e,t,{enumerable:!1,value:e[t]})};function Qr(e){return wl(e.loc.start,"index"),wl(e.loc.end,"index"),e}var oS=(e)=>class extends e{parse(){let r=Qr(super.parse());if(this.optionFlags&256)r.tokens=r.tokens.map(Qr);return r}parseRegExpLiteral({pattern:r,flags:s}){let i=null;try{i=new RegExp(r,s)}catch(a){}let n=this.estreeParseLiteral(i);return n.regex={pattern:r,flags:s},n}parseBigIntLiteral(r){let s;try{s=BigInt(r)}catch(n){s=null}let i=this.estreeParseLiteral(s);return i.bigint=String(i.value||r),i}parseDecimalLiteral(r){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||r),i}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}estreeParseChainExpression(r,s){let i=this.startNodeAtNode(r);return i.expression=r,this.finishNodeAt(i,"ChainExpression",s)}directiveToStmt(r){let s=r.value;delete r.value,this.castNodeTo(s,"Literal"),s.raw=s.extra.raw,s.value=s.extra.expressionValue;let i=this.castNodeTo(r,"ExpressionStatement");return i.expression=s,i.directive=s.extra.rawValue,delete s.extra,i}fillOptionalPropertiesForTSESLint(r){}cloneEstreeStringLiteral(r){let{start:s,end:i,loc:n,range:a,raw:o,value:l}=r,u=Object.create(r.constructor.prototype);return u.type="Literal",u.start=s,u.end=i,u.loc=n,u.range=a,u.raw=o,u.value=l,u}initFunction(r,s){super.initFunction(r,s),r.expression=!1}checkDeclaration(r){if(r!=null&&this.isObjectProperty(r))this.checkDeclaration(r.value);else super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var s;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value==="string"&&!((s=r.expression.extra)!=null&&s.parenthesized)}parseBlockBody(r,s,i,n,a){super.parseBlockBody(r,s,i,n,a);let o=r.directives.map((l)=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives}parsePrivateName(){let r=super.parsePrivateName();if(!this.getPluginOption("estree","classFeatures"))return r;return this.convertPrivateNameToPrivateIdentifier(r)}convertPrivateNameToPrivateIdentifier(r){let s=super.getPrivateNameSV(r);return delete r.id,r.name=s,this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){if(!this.getPluginOption("estree","classFeatures"))return super.isPrivateName(r);return r.type==="PrivateIdentifier"}getPrivateNameSV(r){if(!this.getPluginOption("estree","classFeatures"))return super.getPrivateNameSV(r);return r.name}parseLiteral(r,s){let i=super.parseLiteral(r,s);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(r,s,i=!1){super.parseFunctionBody(r,s,i),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,s,i,n,a,o,l=!1){let u=this.startNode();u.kind=r.kind,u=super.parseMethod(u,s,i,n,a,o,l),delete u.kind;let{typeParameters:p}=r;if(p)delete r.typeParameters,u.typeParameters=p,this.resetStartLocationFromNode(u,p);let m=this.castNodeTo(u,"FunctionExpression");if(r.value=m,o==="ClassPrivateMethod")r.computed=!1;if(o==="ObjectMethod"){if(r.kind==="method")r.kind="init";return r.shorthand=!1,this.finishNode(r,"Property")}else return this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){if(r.type==="Literal")return r.value==="constructor";return super.nameIsConstructor(r)}parseClassProperty(...r){let s=super.parseClassProperty(...r);if(!this.getPluginOption("estree","classFeatures"))return s;return this.castNodeTo(s,"PropertyDefinition"),s}parseClassPrivateProperty(...r){let s=super.parseClassPrivateProperty(...r);if(!this.getPluginOption("estree","classFeatures"))return s;return this.castNodeTo(s,"PropertyDefinition"),s.computed=!1,s}parseClassAccessorProperty(r){let s=super.parseClassAccessorProperty(r);if(!this.getPluginOption("estree","classFeatures"))return s;if(s.abstract&&this.hasPlugin("typescript"))delete s.abstract,this.castNodeTo(s,"TSAbstractAccessorProperty");else this.castNodeTo(s,"AccessorProperty");return s}parseObjectProperty(r,s,i,n){let a=super.parseObjectProperty(r,s,i,n);if(a)a.kind="init",this.castNodeTo(a,"Property");return a}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}isValidLVal(r,s,i,n){return r==="Property"?"value":super.isValidLVal(r,s,i,n)}isAssignable(r,s){if(r!=null&&this.isObjectProperty(r))return this.isAssignable(r.value,s);return super.isAssignable(r,s)}toAssignable(r,s=!1){if(r!=null&&this.isObjectProperty(r)){let{key:i,value:n}=r;if(this.isPrivateName(i))this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start);this.toAssignable(n,s)}else super.toAssignable(r,s)}toAssignableObjectExpressionProp(r,s,i){if(r.type==="Property"&&(r.kind==="get"||r.kind==="set"))this.raise(T.PatternHasAccessor,r.key);else if(r.type==="Property"&&r.method)this.raise(T.PatternHasMethod,r.key);else super.toAssignableObjectExpressionProp(r,s,i)}finishCallExpression(r,s){let i=super.finishCallExpression(r,s);if(i.callee.type==="Import"){var n,a;this.castNodeTo(i,"ImportExpression"),i.source=i.arguments[0],i.options=(n=i.arguments[1])!=null?n:null,i.attributes=(a=i.arguments[1])!=null?a:null,delete i.arguments,delete i.callee}else if(i.type==="OptionalCallExpression")this.castNodeTo(i,"CallExpression");else i.optional=!1;return i}toReferencedArguments(r){if(r.type==="ImportExpression")return;super.toReferencedArguments(r)}parseExport(r,s){let i=this.state.lastTokStartLoc,n=super.parseExport(r,s);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":if(n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier")this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers;case"ExportDefaultDeclaration":{var a;let{declaration:o}=n;if((o==null?void 0:o.type)==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===n.start)this.resetStartLocation(n,i)}break}return n}stopParseSubscript(r,s){let i=super.stopParseSubscript(r,s);if(s.optionalChainMember)return this.estreeParseChainExpression(i,r.loc.end);return i}parseMember(r,s,i,n,a){let o=super.parseMember(r,s,i,n,a);if(o.type==="OptionalMemberExpression")this.castNodeTo(o,"MemberExpression");else o.optional=!1;return o}isOptionalMemberExpression(r){if(r.type==="ChainExpression")return r.expression.type==="MemberExpression";return super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){if(r.type==="ChainExpression")r=r.expression;return super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,s){let i=super.castNodeTo(r,s);return this.fillOptionalPropertiesForTSESLint(i),i}cloneIdentifier(r){let s=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(s),s}cloneStringLiteral(r){if(r.type==="Literal")return this.cloneEstreeStringLiteral(r);return super.cloneStringLiteral(r)}finishNodeAt(r,s,i){return Qr(super.finishNodeAt(r,s,i))}finishNode(r,s){let i=super.finishNode(r,s);return this.fillOptionalPropertiesForTSESLint(i),i}resetStartLocation(r,s){super.resetStartLocation(r,s),Qr(r)}resetEndLocation(r,s=this.state.lastTokEndLoc){super.resetEndLocation(r,s),Qr(r)}};class wr{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}var be={brace:new wr("{"),j_oTag:new wr("<tag"),j_cTag:new wr("</tag"),j_expr:new wr("<tag>...</tag>",!0)};be.template=new wr("`",!0);var ne=!0,U=!0,an=!0,Zr=!0,$t=!0,lS=!0;class yn{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop!=null?t.binop:null,this.updateContext=null}}var Tn=new Map;function Te(e,t={}){t.keyword=e;let r=H(e,t);return Tn.set(e,r),r}function We(e,t){return H(e,{beforeExpr:ne,binop:t})}var ss=-1,Kt=[],xn=[],Sn=[],gn=[],bn=[],En=[];function H(e,t={}){var r,s,i,n;return++ss,xn.push(e),Sn.push((r=t.binop)!=null?r:-1),gn.push((s=t.beforeExpr)!=null?s:!1),bn.push((i=t.startsExpr)!=null?i:!1),En.push((n=t.prefix)!=null?n:!1),Kt.push(new yn(e,t)),ss}function ue(e,t={}){var r,s,i,n;return++ss,Tn.set(e,ss),xn.push(e),Sn.push((r=t.binop)!=null?r:-1),gn.push((s=t.beforeExpr)!=null?s:!1),bn.push((i=t.startsExpr)!=null?i:!1),En.push((n=t.prefix)!=null?n:!1),Kt.push(new yn("name",t)),ss}var uS={bracketL:H("[",{beforeExpr:ne,startsExpr:U}),bracketHashL:H("#[",{beforeExpr:ne,startsExpr:U}),bracketBarL:H("[|",{beforeExpr:ne,startsExpr:U}),bracketR:H("]"),bracketBarR:H("|]"),braceL:H("{",{beforeExpr:ne,startsExpr:U}),braceBarL:H("{|",{beforeExpr:ne,startsExpr:U}),braceHashL:H("#{",{beforeExpr:ne,startsExpr:U}),braceR:H("}"),braceBarR:H("|}"),parenL:H("(",{beforeExpr:ne,startsExpr:U}),parenR:H(")"),comma:H(",",{beforeExpr:ne}),semi:H(";",{beforeExpr:ne}),colon:H(":",{beforeExpr:ne}),doubleColon:H("::",{beforeExpr:ne}),dot:H("."),question:H("?",{beforeExpr:ne}),questionDot:H("?."),arrow:H("=>",{beforeExpr:ne}),template:H("template"),ellipsis:H("...",{beforeExpr:ne}),backQuote:H("`",{startsExpr:U}),dollarBraceL:H("${",{beforeExpr:ne,startsExpr:U}),templateTail:H("...`",{startsExpr:U}),templateNonTail:H("...${",{beforeExpr:ne,startsExpr:U}),at:H("@"),hash:H("#",{startsExpr:U}),interpreterDirective:H("#!..."),eq:H("=",{beforeExpr:ne,isAssign:Zr}),assign:H("_=",{beforeExpr:ne,isAssign:Zr}),slashAssign:H("_=",{beforeExpr:ne,isAssign:Zr}),xorAssign:H("_=",{beforeExpr:ne,isAssign:Zr}),moduloAssign:H("_=",{beforeExpr:ne,isAssign:Zr}),incDec:H("++/--",{prefix:$t,postfix:lS,startsExpr:U}),bang:H("!",{beforeExpr:ne,prefix:$t,startsExpr:U}),tilde:H("~",{beforeExpr:ne,prefix:$t,startsExpr:U}),doubleCaret:H("^^",{startsExpr:U}),doubleAt:H("@@",{startsExpr:U}),pipeline:We("|>",0),nullishCoalescing:We("??",1),logicalOR:We("||",1),logicalAND:We("&&",2),bitwiseOR:We("|",3),bitwiseXOR:We("^",4),bitwiseAND:We("&",5),equality:We("==/!=/===/!==",6),lt:We("</>/<=/>=",7),gt:We("</>/<=/>=",7),relational:We("</>/<=/>=",7),bitShift:We("<</>>/>>>",8),bitShiftL:We("<</>>/>>>",8),bitShiftR:We("<</>>/>>>",8),plusMin:H("+/-",{beforeExpr:ne,binop:9,prefix:$t,startsExpr:U}),modulo:H("%",{binop:10,startsExpr:U}),star:H("*",{binop:10}),slash:We("/",10),exponent:H("**",{beforeExpr:ne,binop:11,rightAssociative:!0}),_in:Te("in",{beforeExpr:ne,binop:7}),_instanceof:Te("instanceof",{beforeExpr:ne,binop:7}),_break:Te("break"),_case:Te("case",{beforeExpr:ne}),_catch:Te("catch"),_continue:Te("continue"),_debugger:Te("debugger"),_default:Te("default",{beforeExpr:ne}),_else:Te("else",{beforeExpr:ne}),_finally:Te("finally"),_function:Te("function",{startsExpr:U}),_if:Te("if"),_return:Te("return",{beforeExpr:ne}),_switch:Te("switch"),_throw:Te("throw",{beforeExpr:ne,prefix:$t,startsExpr:U}),_try:Te("try"),_var:Te("var"),_const:Te("const"),_with:Te("with"),_new:Te("new",{beforeExpr:ne,startsExpr:U}),_this:Te("this",{startsExpr:U}),_super:Te("super",{startsExpr:U}),_class:Te("class",{startsExpr:U}),_extends:Te("extends",{beforeExpr:ne}),_export:Te("export"),_import:Te("import",{startsExpr:U}),_null:Te("null",{startsExpr:U}),_true:Te("true",{startsExpr:U}),_false:Te("false",{startsExpr:U}),_typeof:Te("typeof",{beforeExpr:ne,prefix:$t,startsExpr:U}),_void:Te("void",{beforeExpr:ne,prefix:$t,startsExpr:U}),_delete:Te("delete",{beforeExpr:ne,prefix:$t,startsExpr:U}),_do:Te("do",{isLoop:an,beforeExpr:ne}),_for:Te("for",{isLoop:an}),_while:Te("while",{isLoop:an}),_as:ue("as",{startsExpr:U}),_assert:ue("assert",{startsExpr:U}),_async:ue("async",{startsExpr:U}),_await:ue("await",{startsExpr:U}),_defer:ue("defer",{startsExpr:U}),_from:ue("from",{startsExpr:U}),_get:ue("get",{startsExpr:U}),_let:ue("let",{startsExpr:U}),_meta:ue("meta",{startsExpr:U}),_of:ue("of",{startsExpr:U}),_sent:ue("sent",{startsExpr:U}),_set:ue("set",{startsExpr:U}),_source:ue("source",{startsExpr:U}),_static:ue("static",{startsExpr:U}),_using:ue("using",{startsExpr:U}),_yield:ue("yield",{startsExpr:U}),_asserts:ue("asserts",{startsExpr:U}),_checks:ue("checks",{startsExpr:U}),_exports:ue("exports",{startsExpr:U}),_global:ue("global",{startsExpr:U}),_implements:ue("implements",{startsExpr:U}),_intrinsic:ue("intrinsic",{startsExpr:U}),_infer:ue("infer",{startsExpr:U}),_is:ue("is",{startsExpr:U}),_mixins:ue("mixins",{startsExpr:U}),_proto:ue("proto",{startsExpr:U}),_require:ue("require",{startsExpr:U}),_satisfies:ue("satisfies",{startsExpr:U}),_keyof:ue("keyof",{startsExpr:U}),_readonly:ue("readonly",{startsExpr:U}),_unique:ue("unique",{startsExpr:U}),_abstract:ue("abstract",{startsExpr:U}),_declare:ue("declare",{startsExpr:U}),_enum:ue("enum",{startsExpr:U}),_module:ue("module",{startsExpr:U}),_namespace:ue("namespace",{startsExpr:U}),_interface:ue("interface",{startsExpr:U}),_type:ue("type",{startsExpr:U}),_opaque:ue("opaque",{startsExpr:U}),name:H("name",{startsExpr:U}),placeholder:H("%%",{startsExpr:U}),string:H("string",{startsExpr:U}),num:H("num",{startsExpr:U}),bigint:H("bigint",{startsExpr:U}),decimal:H("decimal",{startsExpr:U}),regexp:H("regexp",{startsExpr:U}),privateName:H("#name",{startsExpr:U}),eof:H("eof"),jsxName:H("jsxName"),jsxText:H("jsxText",{beforeExpr:ne}),jsxTagStart:H("jsxTagStart",{startsExpr:U}),jsxTagEnd:H("jsxTagEnd")};function Ee(e){return e>=93&&e<=133}function cS(e){return e<=92}function St(e){return e>=58&&e<=133}function ql(e){return e>=58&&e<=137}function pS(e){return gn[e]}function ts(e){return bn[e]}function fS(e){return e>=29&&e<=33}function Nl(e){return e>=129&&e<=131}function hS(e){return e>=90&&e<=92}function Pn(e){return e>=58&&e<=92}function dS(e){return e>=39&&e<=59}function mS(e){return e===34}function yS(e){return En[e]}function TS(e){return e>=121&&e<=123}function xS(e){return e>=124&&e<=130}function zt(e){return xn[e]}function Ws(e){return Sn[e]}function SS(e){return e===57}function $s(e){return e>=24&&e<=25}function Rt(e){return Kt[e]}Kt[8].updateContext=(e)=>{e.pop()};Kt[5].updateContext=Kt[7].updateContext=Kt[23].updateContext=(e)=>{e.push(be.brace)};Kt[22].updateContext=(e)=>{if(e[e.length-1]===be.template)e.pop();else e.push(be.template)};Kt[143].updateContext=(e)=>{e.push(be.j_expr,be.j_oTag)};var An="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Ul="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",gS=new RegExp("["+An+"]"),bS=new RegExp("["+An+Ul+"]");An=Ul=null;var Kl=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],ES=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function fn(e,t){let r=65536;for(let s=0,i=t.length;s<i;s+=2){if(r+=t[s],r>e)return!1;if(r+=t[s+1],r>=e)return!0}return!1}function vt(e){if(e<65)return e===36;if(e<=90)return!0;if(e<97)return e===95;if(e<=122)return!0;if(e<=65535)return e>=170&&gS.test(String.fromCharCode(e));return fn(e,Kl)}function lr(e){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<=90)return!0;if(e<97)return e===95;if(e<=122)return!0;if(e<=65535)return e>=170&&bS.test(String.fromCharCode(e));return fn(e,Kl)||fn(e,ES)}var vn={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},PS=new Set(vn.keyword),AS=new Set(vn.strict),vS=new Set(vn.strictBind);function Vl(e,t){return t&&e==="await"||e==="enum"}function Yl(e,t){return Vl(e,t)||AS.has(e)}function Jl(e){return vS.has(e)}function Wl(e,t){return Yl(e,t)||Jl(e)}function CS(e){return PS.has(e)}function IS(e,t,r){return e===64&&t===64&&vt(r)}var wS=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function NS(e){return wS.has(e)}class Hs{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class zs{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&128)return!0;if(t&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new Hs(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,t,r){let s=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(s,e,t,r);let i=s.names.get(e)||0;if(t&16)i=i|4;else{if(!s.firstLexicalName)s.firstLexicalName=e;i=i|2}if(s.names.set(e,i),t&8)this.maybeExportDefined(s,e)}else if(t&4){for(let i=this.scopeStack.length-1;i>=0;--i)if(s=this.scopeStack[i],this.checkRedeclarationInScope(s,e,t,r),s.names.set(e,(s.names.get(e)||0)|1),this.maybeExportDefined(s,e),s.flags&1667)break}if(this.parser.inModule&&s.flags&1)this.undefinedExports.delete(e)}maybeExportDefined(e,t){if(this.parser.inModule&&e.flags&1)this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,s){if(this.isRedeclaredInScope(e,t,r))this.parser.raise(T.VarRedeclaration,s,{identifierName:t})}isRedeclaredInScope(e,t,r){if(!(r&1))return!1;if(r&8)return e.names.has(t);let s=e.names.get(t)||0;if(r&16)return(s&2)>0||!this.treatFunctionsAsVarInScope(e)&&(s&1)>0;return(s&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(s&4)>0}checkLocalExport(e){let{name:t}=e;if(!this.scopeStack[0].names.has(t))this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&1667)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&1731&&!(t&4))return t}}}class Xl extends Hs{constructor(...e){super(...e);this.declareFunctions=new Set}}class $l extends zs{createScope(e){return new Xl(e)}declareName(e,t,r){let s=this.currentScope();if(t&2048){this.checkRedeclarationInScope(s,e,t,r),this.maybeExportDefined(s,e),s.declareFunctions.add(e);return}super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return!0;if(r&2048&&!e.declareFunctions.has(t)){let s=e.names.get(t);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(e){if(!this.scopeStack[0].declareFunctions.has(e.name))super.checkLocalExport(e)}}var OS=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Q=xt`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function _S(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function Ol(e){return e.importKind==="type"||e.importKind==="typeof"}var kS={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function DS(e,t){let r=[],s=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?r:s).push(e[i]);return[r,s]}var LS=/\*?\s*@((?:no)?flow)\b/,MS=(e)=>class extends e{constructor(...r){super(...r);this.flowPragma=void 0}getScopeHandler(){return $l}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,s){if(r!==134&&r!==13&&r!==28){if(this.flowPragma===void 0)this.flowPragma=null}super.finishToken(r,s)}addComment(r){if(this.flowPragma===void 0){let s=LS.exec(r.value);if(!s);else if(s[1]==="flow")this.flowPragma="flow";else if(s[1]==="noflow")this.flowPragma="noflow";else throw Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let s=this.state.inType;this.state.inType=!0,this.expect(r||14);let i=this.flowParseType();return this.state.inType=s,i}flowParsePredicate(){let r=this.startNode(),s=this.state.startLoc;if(this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>s.index+1)this.raise(Q.UnexpectedSpaceBetweenModuloChecks,s);if(this.eat(10))return r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate");else return this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let s=null,i=null;if(this.match(54))this.state.inType=r,i=this.flowParsePredicate();else if(s=this.flowParseType(),this.state.inType=r,this.match(54))i=this.flowParsePredicate();return[s,i]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let s=r.id=this.parseIdentifier(),i=this.startNode(),n=this.startNode();if(this.match(47))i.typeParameters=this.flowParseTypeParameterDeclaration();else i.typeParameters=null;this.expect(10);let a=this.flowParseFunctionTypeParams();return i.params=a.params,i.rest=a.rest,i.this=a._this,this.expect(11),[i.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),s.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(s),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,s){if(this.match(80))return this.flowParseDeclareClass(r);else if(this.match(68))return this.flowParseDeclareFunction(r);else if(this.match(74))return this.flowParseDeclareVariable(r);else if(this.eatContextual(127))if(this.match(16))return this.flowParseDeclareModuleExports(r);else{if(s)this.raise(Q.NestedDeclareModule,this.state.lastTokStartLoc);return this.flowParseDeclareModule(r)}else if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);else if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);else if(this.isContextual(129))return this.flowParseDeclareInterface(r);else if(this.match(82))return this.flowParseDeclareExportDeclaration(r,s);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){if(this.scope.enter(0),this.match(134))r.id=super.parseExprAtom();else r.id=this.parseIdentifier();let s=r.body=this.startNode(),i=s.body=[];this.expect(5);while(!this.match(8)){let o=this.startNode();if(this.match(83)){if(this.next(),!this.isContextual(130)&&!this.match(87))this.raise(Q.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc);i.push(super.parseImport(o))}else this.expectContextual(125,Q.UnsupportedStatementInDeclareModule),i.push(this.flowParseDeclare(o,!0))}this.scope.exit(),this.expect(8),this.finishNode(s,"BlockStatement");let n=null,a=!1;return i.forEach((o)=>{if(_S(o)){if(n==="CommonJS")this.raise(Q.AmbiguousDeclareModuleKind,o);n="ES"}else if(o.type==="DeclareModuleExports"){if(a)this.raise(Q.DuplicateDeclareModuleExports,o);if(n==="ES")this.raise(Q.AmbiguousDeclareModuleKind,o);n="CommonJS",a=!0}}),r.kind=n||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,s){if(this.expect(82),this.eat(65)){if(this.match(68)||this.match(80))r.declaration=this.flowParseDeclare(this.startNode());else r.declaration=this.flowParseType(),this.semicolon();return r.default=!0,this.finishNode(r,"DeclareExportDeclaration")}else{if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!s){let i=this.state.value;throw this.raise(Q.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:kS[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");else if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))if(r=this.parseExport(r,null),r.type==="ExportNamedDeclaration")return r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration");else return this.castNodeTo(r,"DeclareExportAllDeclaration")}throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let s=this.flowParseTypeAlias(r);return this.castNodeTo(s,"DeclareTypeAlias"),s}flowParseDeclareOpaqueType(r){this.next();let s=this.flowParseOpaqueType(r,!0);return this.castNodeTo(s,"DeclareOpaqueType"),s}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,s){if(r.id=this.flowParseRestrictedIdentifier(!s,!0),this.scope.declareName(r.id.name,s?17:8201,r.id.loc.start),this.match(47))r.typeParameters=this.flowParseTypeParameterDeclaration();else r.typeParameters=null;if(r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!s&&this.eat(12));if(s){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:s,allowExact:!1,allowSpread:!1,allowProto:s,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();if(r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47))r.typeParameters=this.flowParseTypeParameterInstantiation();else r.typeParameters=null;return this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){if(r==="_")this.raise(Q.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,s,i){if(!OS.has(r))return;this.raise(i?Q.AssignReservedType:Q.UnexpectedReservedType,s,{reservedType:r})}flowParseRestrictedIdentifierName(r,s){return this.checkReservedType(this.state.value,this.state.startLoc,s),this.parseIdentifierName(r)}flowParseRestrictedIdentifier(r,s){let i=this.startNode(),n=this.flowParseRestrictedIdentifierName(r,s);return this.createIdentifier(i,n)}flowParseTypeAlias(r){if(r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47))r.typeParameters=this.flowParseTypeParameterDeclaration();else r.typeParameters=null;return r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,s){if(this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47))r.typeParameters=this.flowParseTypeParameterDeclaration();else r.typeParameters=null;if(r.supertype=null,this.match(14))r.supertype=this.flowParseTypeInitialiser(14);if(r.impltype=null,!s)r.impltype=this.flowParseTypeInitialiser(29);return this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){let r=this.startNode();return this.next(),r.typeAnnotation=this.flowParseType(),this.finishNode(r,"TypeAnnotation")}}flowParseTypeParameter(r=!1){let s=this.state.startLoc,i=this.startNode(),n=this.flowParseVariance();if(i.name=this.flowParseRestrictedIdentifierName(),i.variance=n,i.bound=this.flowParseTypeParameterBound(),this.match(29))this.eat(29),i.default=this.flowParseType();else if(r)this.raise(Q.MissingTypeParamDefault,s);return this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,s=this.startNode();if(s.params=[],this.state.inType=!0,this.match(47)||this.match(143))this.next();else this.unexpected();let i=!1;do{let n=this.flowParseTypeParameter(i);if(s.params.push(n),n.default)i=!0;if(!this.match(48))this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(s,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==be.brace){let s=this.state.context;this.state.context=[s[0]];try{return r()}finally{this.state.context=s}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()!==47)return;return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),s=this.state.inType;if(this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!1;while(!this.match(48))if(r.params.push(this.flowParseType()),!this.match(48))this.expect(12);this.state.noAnonFunctionType=i}),this.state.inType=s,!this.state.inType&&this.curContext()===be.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),s=this.state.inType;r.params=[],this.state.inType=!0,this.expect(47);while(!this.match(48))if(r.params.push(this.flowParseTypeOrImplicitInstantiation()),!this.match(48))this.expect(12);return this.expect(48),this.state.inType=s,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,s,i){if(r.static=s,this.lookahead().type===14)r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser();else r.id=null,r.key=this.flowParseType();return this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=i,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,s){if(r.static=s,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10))r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start));else{if(r.method=!1,this.eat(17))r.optional=!0;r.value=this.flowParseTypeInitialiser()}return this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){if(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47))r.typeParameters=this.flowParseTypeParameterDeclaration();if(this.expect(10),this.match(78)){if(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(r.params.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))r.rest=this.flowParseFunctionTypeParam(!1);return this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,s){let i=this.startNode();return r.static=s,r.value=this.flowParseObjectTypeMethodish(i),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:s,allowSpread:i,allowProto:n,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let u,p,m=!1;if(s&&this.match(6))this.expect(6),u=9,p=!0;else this.expect(5),u=8,p=!1;l.exact=p;while(!this.match(u)){let g=!1,E=null,I=null,b=this.startNode();if(n&&this.isContextual(118)){let N=this.lookahead();if(N.type!==14&&N.type!==17)this.next(),E=this.state.startLoc,r=!1}if(r&&this.isContextual(106)){let N=this.lookahead();if(N.type!==14&&N.type!==17)this.next(),g=!0}let C=this.flowParseVariance();if(this.eat(0)){if(E!=null)this.unexpected(E);if(this.eat(0)){if(C)this.unexpected(C.loc.start);l.internalSlots.push(this.flowParseObjectTypeInternalSlot(b,g))}else l.indexers.push(this.flowParseObjectTypeIndexer(b,g,C))}else if(this.match(10)||this.match(47)){if(E!=null)this.unexpected(E);if(C)this.unexpected(C.loc.start);l.callProperties.push(this.flowParseObjectTypeCallProperty(b,g))}else{let N="init";if(this.isContextual(99)||this.isContextual(104)){let j=this.lookahead();if(ql(j.type))N=this.state.value,this.next()}let z=this.flowParseObjectTypeProperty(b,g,E,C,N,i,a!=null?a:!p);if(z===null)m=!0,I=this.state.lastTokStartLoc;else l.properties.push(z)}if(this.flowObjectTypeSemicolon(),I&&!this.match(8)&&!this.match(9))this.raise(Q.UnexpectedExplicitInexactInObject,I)}if(this.expect(u),i)l.inexact=m;let x=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,x}flowParseObjectTypeProperty(r,s,i,n,a,o,l){if(this.eat(21)){if(this.match(12)||this.match(13)||this.match(8)||this.match(9)){if(!o)this.raise(Q.InexactInsideNonObject,this.state.lastTokStartLoc);else if(!l)this.raise(Q.InexactInsideExact,this.state.lastTokStartLoc);if(n)this.raise(Q.InexactVariance,n);return null}if(!o)this.raise(Q.UnexpectedSpreadType,this.state.lastTokStartLoc);if(i!=null)this.unexpected(i);if(n)this.raise(Q.SpreadVariance,n);return r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty")}else{r.key=this.flowParseObjectPropertyKey(),r.static=s,r.proto=i!=null,r.kind=a;let u=!1;if(this.match(47)||this.match(10)){if(r.method=!0,i!=null)this.unexpected(i);if(n)this.unexpected(n.loc.start);if(r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),a==="get"||a==="set")this.flowCheckGetterSetterParams(r);if(!o&&r.key.name==="constructor"&&r.value.this)this.raise(Q.ThisParamBannedInConstructor,r.value.this)}else{if(a!=="init")this.unexpected();if(r.method=!1,this.eat(17))u=!0;r.value=this.flowParseTypeInitialiser(),r.variance=n}return r.optional=u,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let s=r.kind==="get"?0:1,i=r.value.params.length+(r.value.rest?1:0);if(r.value.this)this.raise(r.kind==="get"?Q.GetterMayNotHaveThisParam:Q.SetterMayNotHaveThisParam,r.value.this);if(i!==s)this.raise(r.kind==="get"?T.BadGetterArity:T.BadSetterArity,r);if(r.kind==="set"&&r.value.rest)this.raise(T.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9))this.unexpected()}flowParseQualifiedTypeIdentifier(r,s){r!=null||(r=this.state.startLoc);let i=s||this.flowParseRestrictedIdentifier(!0);while(this.eat(16)){let n=this.startNodeAt(r);n.qualification=i,n.id=this.flowParseRestrictedIdentifier(!0),i=this.finishNode(n,"QualifiedTypeIdentifier")}return i}flowParseGenericType(r,s){let i=this.startNodeAt(r);if(i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(r,s),this.match(47))i.typeParameters=this.flowParseTypeParameterInstantiation();return this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();r.types=[],this.expect(0);while(this.state.pos<this.length&&!this.match(3)){if(r.types.push(this.flowParseType()),this.match(3))break;this.expect(12)}return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let s=null,i=!1,n=null,a=this.startNode(),o=this.lookahead(),l=this.state.type===78;if(o.type===14||o.type===17){if(l&&!r)this.raise(Q.ThisParamMustBeFirst,a);if(s=this.parseIdentifier(l),this.eat(17)){if(i=!0,l)this.raise(Q.ThisParamMayNotBeOptional,a)}n=this.flowParseTypeInitialiser()}else n=this.flowParseType();return a.name=s,a.optional=i,a.typeAnnotation=n,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let s=this.startNodeAt(r.loc.start);return s.name=null,s.optional=!1,s.typeAnnotation=r,this.finishNode(s,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let s=null,i=null;if(this.match(78)){if(i=this.flowParseFunctionTypeParam(!0),i.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(r.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))s=this.flowParseFunctionTypeParam(!1);return{params:r,rest:s,_this:i}}flowIdentToTypeAnnotation(r,s,i){switch(i.name){case"any":return this.finishNode(s,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(s,"BooleanTypeAnnotation");case"mixed":return this.finishNode(s,"MixedTypeAnnotation");case"empty":return this.finishNode(s,"EmptyTypeAnnotation");case"number":return this.finishNode(s,"NumberTypeAnnotation");case"string":return this.finishNode(s,"StringTypeAnnotation");case"symbol":return this.finishNode(s,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(i.name),this.flowParseGenericType(r,i)}}flowParsePrimaryType(){let r=this.state.startLoc,s=this.startNode(),i,n,a=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=o,n;case 47:{let l=this.startNode();return l.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),i=this.flowParseFunctionTypeParams(),l.params=i.params,l.rest=i.rest,l.this=i._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),this.finishNode(l,"FunctionTypeAnnotation")}case 10:{let l=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Ee(this.state.type)||this.match(78)){let u=this.lookahead().type;a=u!==17&&u!==14}else a=!0;if(a)if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),n;else this.eat(12);if(n)i=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]);else i=this.flowParseFunctionTypeParams();return l.params=i.params,l.rest=i.rest,l.this=i._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),l.typeParameters=null,this.finishNode(l,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return s.value=this.match(85),this.next(),this.finishNode(s,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",s);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",s);throw this.raise(Q.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(s,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(s,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(s,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(s,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Pn(this.state.type)){let l=zt(this.state.type);return this.next(),super.createIdentifier(s,l)}else if(Ee(this.state.type)){if(this.isContextual(129))return this.flowParseInterfaceType();return this.flowIdentToTypeAnnotation(r,s,this.parseIdentifier())}}throw this.unexpected()}flowParsePostfixType(){let r=this.state.startLoc,s=this.flowParsePrimaryType(),i=!1;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){let n=this.startNodeAt(r),a=this.eat(18);if(i=i||a,this.expect(0),!a&&this.match(3))n.elementType=s,this.next(),s=this.finishNode(n,"ArrayTypeAnnotation");else if(n.objectType=s,n.indexType=this.flowParseType(),this.expect(3),i)n.optional=a,s=this.finishNode(n,"OptionalIndexedAccessType");else s=this.finishNode(n,"IndexedAccessType")}return s}flowParsePrefixType(){let r=this.startNode();if(this.eat(17))return r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation");else return this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let s=this.startNodeAt(r.loc.start);return s.params=[this.reinterpretTypeAsFunctionTypeParam(r)],s.rest=null,s.this=null,s.returnType=this.flowParseType(),s.typeParameters=null,this.finishNode(s,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let s=this.flowParseAnonFunctionWithoutParens();r.types=[s];while(this.eat(45))r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?s:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let s=this.flowParseIntersectionType();r.types=[s];while(this.eat(43))r.types.push(this.flowParseIntersectionType());return r.types.length===1?s:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let s=this.flowParseUnionType();return this.state.inType=r,s}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let r=this.state.startLoc,s=this.parseIdentifier();return this.flowParseGenericType(r,s)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let r=this.startNode(),s=this.parseIdentifierName();if(this.match(14))r.typeAnnotation=this.flowParseTypeAnnotation();return this.createIdentifier(r,s)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;if(this.match(53)){if(r=this.startNode(),this.state.value==="+")r.kind="plus";else r.kind="minus";return this.next(),this.finishNode(r,"Variance")}return r}parseFunctionBody(r,s,i=!1){if(s){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,i));return}super.parseFunctionBody(r,!1,i)}parseFunctionBodyAndFinish(r,s,i=!1){if(this.match(14)){let n=this.startNode();[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=n.typeAnnotation?this.finishNode(n,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,s,i)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let i=this.lookahead();if(St(i.type)){let n=this.startNode();return this.next(),this.flowParseInterface(n)}}else if(this.isContextual(126)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let s=super.parseStatementLike(r);if(this.flowPragma===void 0&&!this.isValidDirective(s))this.flowPragma=null;return s}parseExpressionStatement(r,s,i){if(s.type==="Identifier"){if(s.name==="declare"){if(this.match(80)||Ee(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(Ee(this.state.type)){if(s.name==="interface")return this.flowParseInterface(r);else if(s.name==="type")return this.flowParseTypeAlias(r);else if(s.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,s,i)}shouldParseExportDeclaration(){let{type:r}=this.state;if(r===126||Nl(r))return!this.state.containsEsc;return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;if(r===126||Nl(r))return this.state.containsEsc;return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,s,i){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let x=this.lookaheadCharCode();if(x===44||x===61||x===58||x===41)return this.setOptionalParametersError(i),r}this.expect(17);let n=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(s),{consequent:l,failed:u}=this.tryParseConditionalConsequent(),[p,m]=this.getArrowLikeExpressions(l);if(u||m.length>0){let x=[...a];if(m.length>0){this.state=n,this.state.noArrowAt=x;for(let g=0;g<m.length;g++)x.push(m[g].start);({consequent:l,failed:u}=this.tryParseConditionalConsequent()),[p,m]=this.getArrowLikeExpressions(l)}if(u&&p.length>1)this.raise(Q.AmbiguousConditionalArrow,n.startLoc);if(u&&p.length===1)this.state=n,x.push(p[0].start),this.state.noArrowAt=x,{consequent:l,failed:u}=this.tryParseConditionalConsequent()}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),s=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:s}}getArrowLikeExpressions(r,s){let i=[r],n=[];while(i.length!==0){let a=i.pop();if(a.type==="ArrowFunctionExpression"){if(a.typeParameters||!a.returnType)this.finishArrowValidation(a);else n.push(a);if(a.body.type!=="BlockStatement")i.push(a.body)}else if(a.type==="ConditionalExpression")i.push(a.consequent),i.push(a.alternate)}if(s)return n.forEach((a)=>this.finishArrowValidation(a)),[n,[]];return DS(n,(a)=>a.params.every((o)=>this.isAssignable(o,!0)))}finishArrowValidation(r){var s;this.toAssignableList(r.params,(s=r.extra)==null?void 0:s.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,s){let i;if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))this.state.noArrowParamsConversionAt.push(this.state.start),i=s(),this.state.noArrowParamsConversionAt.pop();else i=s();return i}parseParenItem(r,s){let i=super.parseParenItem(r,s);if(this.eat(17))i.optional=!0,this.resetEndLocation(r);if(this.match(14)){let n=this.startNodeAt(s);return n.expression=i,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return i}assertModuleNodeAllowed(r){if(r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type")return;super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let s=this.startNode();if(this.next(),this.match(5))return r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null;else return this.flowParseTypeAlias(s)}else if(this.isContextual(131)){r.exportKind="type";let s=this.startNode();return this.next(),this.flowParseOpaqueType(s,!1)}else if(this.isContextual(129)){r.exportKind="type";let s=this.startNode();return this.next(),this.flowParseInterface(s)}else if(this.isContextual(126)){r.exportKind="value";let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}else return super.parseExportDeclaration(r)}eatExportStar(r){if(super.eatExportStar(r))return!0;if(this.isContextual(130)&&this.lookahead().type===55)return r.exportKind="type",this.next(),this.next(),!0;return!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:s}=this.state,i=super.maybeParseExportNamespaceSpecifier(r);if(i&&r.exportKind==="type")this.unexpected(s);return i}parseClassId(r,s,i){if(super.parseClassId(r,s,i),this.match(47))r.typeParameters=this.flowParseTypeParameterDeclaration()}parseClassMember(r,s,i){let{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,s))return;s.declare=!0}if(super.parseClassMember(r,s,i),s.declare){if(s.type!=="ClassProperty"&&s.type!=="ClassPrivateProperty"&&s.type!=="PropertyDefinition")this.raise(Q.DeclareClassElement,n);else if(s.value)this.raise(Q.DeclareClassFieldInitializer,s.value)}}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),s="@@"+r;if(!this.isIterator(r)||!this.state.inType)this.raise(T.InvalidIdentifier,this.state.curPosition(),{identifierName:s});this.finishToken(132,s)}getTokenFromCode(r){let s=this.input.charCodeAt(this.state.pos+1);if(r===123&&s===124)this.finishOp(6,2);else if(this.state.inType&&(r===62||r===60))this.finishOp(r===62?48:47,1);else if(this.state.inType&&r===63)if(s===46)this.finishOp(18,2);else this.finishOp(17,1);else if(IS(r,s,this.input.charCodeAt(this.state.pos+2)))this.state.pos+=2,this.readIterator();else super.getTokenFromCode(r)}isAssignable(r,s){if(r.type==="TypeCastExpression")return this.isAssignable(r.expression,s);else return super.isAssignable(r,s)}toAssignable(r,s=!1){if(!s&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression")r.left=this.typeCastToParameter(r.left);super.toAssignable(r,s)}toAssignableList(r,s,i){for(let n=0;n<r.length;n++){let a=r[n];if((a==null?void 0:a.type)==="TypeCastExpression")r[n]=this.typeCastToParameter(a)}super.toAssignableList(r,s,i)}toReferencedList(r,s){for(let n=0;n<r.length;n++){var i;let a=r[n];if(a&&a.type==="TypeCastExpression"&&!((i=a.extra)!=null&&i.parenthesized)&&(r.length>1||!s))this.raise(Q.TypeCastInPattern,a.typeAnnotation)}return r}parseArrayLike(r,s,i){let n=super.parseArrayLike(r,s,i);if(i!=null&&!this.state.maybeInArrowParameters)this.toReferencedList(n.elements);return n}isValidLVal(r,s,i,n){return r==="TypeCastExpression"||super.isValidLVal(r,s,i,n)}parseClassProperty(r){if(this.match(14))r.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassProperty(r)}parseClassPrivateProperty(r){if(this.match(14))r.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,s,i,n,a,o){if(s.variance)this.unexpected(s.variance.loc.start);if(delete s.variance,this.match(47))s.typeParameters=this.flowParseTypeParameterDeclaration();if(super.pushClassMethod(r,s,i,n,a,o),s.params&&a){let l=s.params;if(l.length>0&&this.isThisParam(l[0]))this.raise(Q.ThisParamBannedInConstructor,s)}else if(s.type==="MethodDefinition"&&a&&s.value.params){let l=s.value.params;if(l.length>0&&this.isThisParam(l[0]))this.raise(Q.ThisParamBannedInConstructor,s)}}pushClassPrivateMethod(r,s,i,n){if(s.variance)this.unexpected(s.variance.loc.start);if(delete s.variance,this.match(47))s.typeParameters=this.flowParseTypeParameterDeclaration();super.pushClassPrivateMethod(r,s,i,n)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51)))r.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression();if(this.isContextual(113)){this.next();let s=r.implements=[];do{let i=this.startNode();if(i.id=this.flowParseRestrictedIdentifier(!0),this.match(47))i.typeParameters=this.flowParseTypeParameterInstantiation();else i.typeParameters=null;s.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let s=this.getObjectOrClassMethodParams(r);if(s.length>0){let i=s[0];if(this.isThisParam(i)&&r.kind==="get")this.raise(Q.GetterMayNotHaveThisParam,i);else if(this.isThisParam(i))this.raise(Q.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,s,i,n,a,o,l){if(r.variance)this.unexpected(r.variance.loc.start);delete r.variance;let u;if(this.match(47)&&!o){if(u=this.flowParseTypeParameterDeclaration(),!this.match(10))this.unexpected()}let p=super.parseObjPropValue(r,s,i,n,a,o,l);if(u)(p.value||p).typeParameters=u;return p}parseFunctionParamType(r){if(this.eat(17)){if(r.type!=="Identifier")this.raise(Q.PatternIsOptional,r);if(this.isThisParam(r))this.raise(Q.ThisParamMayNotBeOptional,r);r.optional=!0}if(this.match(14))r.typeAnnotation=this.flowParseTypeAnnotation();else if(this.isThisParam(r))this.raise(Q.ThisParamAnnotationRequired,r);if(this.match(29)&&this.isThisParam(r))this.raise(Q.ThisParamNoDefault,r);return this.resetEndLocation(r),r}parseMaybeDefault(r,s){let i=super.parseMaybeDefault(r,s);if(i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start)this.raise(Q.TypeBeforeInitializer,i.typeAnnotation);return i}checkImportReflection(r){if(super.checkImportReflection(r),r.module&&r.importKind!=="value")this.raise(Q.ImportReflectionHasImportType,r.specifiers[0].loc.start)}parseImportSpecifierLocal(r,s,i){s.local=Ol(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(s,i))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){if(!r)return!0;let s=this.lookaheadCharCode();return s===123||s===42}return!r&&this.isContextual(87)}applyImportPhase(r,s,i,n){if(super.applyImportPhase(r,s,i,n),s){if(!i&&this.match(65))return;r.exportKind=i==="type"?i:"value"}else{if(i==="type"&&this.match(55))this.unexpected();r.importKind=i==="type"||i==="typeof"?i:"value"}}parseImportSpecifier(r,s,i,n,a){let o=r.imported,l=null;if(o.type==="Identifier"){if(o.name==="type")l="type";else if(o.name==="typeof")l="typeof"}let u=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let m=this.parseIdentifier(!0);if(l!==null&&!St(this.state.type))r.imported=m,r.importKind=l,r.local=this.cloneIdentifier(m);else r.imported=o,r.importKind=null,r.local=this.parseIdentifier()}else{if(l!==null&&St(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=l;else{if(s)throw this.raise(T.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null}if(this.eatContextual(93))r.local=this.parseIdentifier();else u=!0,r.local=this.cloneIdentifier(r.imported)}let p=Ol(r);if(i&&p)this.raise(Q.ImportTypeShorthandOnlyInPureImport,r);if(i||p)this.checkReservedType(r.local.name,r.local.loc.start,!0);if(u&&!i&&!p)this.checkReservedWord(r.local.name,r.loc.start,!0,!0);return this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(r,s){let i=r.kind;if(i!=="get"&&i!=="set"&&this.match(47))r.typeParameters=this.flowParseTypeParameterDeclaration();super.parseFunctionParams(r,s)}parseVarId(r,s){if(super.parseVarId(r,s),this.match(14))r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id)}parseAsyncArrowFromCallExpression(r,s){if(this.match(14)){let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=i}return super.parseAsyncArrowFromCallExpression(r,s)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,s){var i;let n=null,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,s),n),!a.error)return a.node;let{context:u}=this.state,p=u[u.length-1];if(p===be.j_oTag||p===be.j_expr)u.pop()}if((i=a)!=null&&i.error||this.match(47)){var o,l;n=n||this.state.clone();let u,p=this.tryParse((x)=>{var g;u=this.flowParseTypeParameterDeclaration();let E=this.forwardNoArrowParamsConversionAt(u,()=>{let b=super.parseMaybeAssign(r,s);return this.resetStartLocationFromNode(b,u),b});if((g=E.extra)!=null&&g.parenthesized)x();let I=this.maybeUnwrapTypeCastExpression(E);if(I.type!=="ArrowFunctionExpression")x();return I.typeParameters=u,this.resetStartLocationFromNode(I,u),E},n),m=null;if(p.node&&this.maybeUnwrapTypeCastExpression(p.node).type==="ArrowFunctionExpression"){if(!p.error&&!p.aborted){if(p.node.async)this.raise(Q.UnexpectedTypeParameterBeforeAsyncArrowFunction,u);return p.node}m=p.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(m)return this.state=p.failState,m;if((l=a)!=null&&l.thrown)throw a.error;if(p.thrown)throw p.error;throw this.raise(Q.UnexpectedTokenAfterTypeParameter,u)}return super.parseMaybeAssign(r,s)}parseArrow(r){if(this.match(14)){let s=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();if([n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return n});if(s.thrown)return null;if(s.error)this.state=s.failState;r.returnType=s.node.typeAnnotation?this.finishNode(s.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,s){if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))r.params=s;else super.setArrowFunctionParameters(r,s)}checkParams(r,s,i,n=!0){if(i&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))return;for(let a=0;a<r.params.length;a++)if(this.isThisParam(r.params[a])&&a>0)this.raise(Q.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,s,i,n)}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,s,i){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(s.index)){this.next();let n=this.startNodeAt(s);n.callee=r,n.arguments=super.parseCallExpressionArguments(),r=this.finishNode(n,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let n=this.state.clone(),a=this.tryParse((l)=>this.parseAsyncArrowWithTypeParameters(s)||l(),n);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,s,i),n);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,s,i)}parseSubscript(r,s,i,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,i)return n.stop=!0,r;this.next();let a=this.startNodeAt(s);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!i&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(s);a.callee=r;let o=this.tryParse(()=>{if(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),n.optionalChainMember)a.optional=!1;return this.finishCallExpression(a,n.optionalChainMember)});if(o.node){if(o.error)this.state=o.failState;return o.node}}return super.parseSubscript(r,s,i,n)}parseNewCallee(r){super.parseNewCallee(r);let s=null;if(this.shouldParseTypes()&&this.match(47))s=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node;r.typeArguments=s}parseAsyncArrowWithTypeParameters(r){let s=this.startNodeAt(r);if(this.parseFunctionParams(s,!1),!this.parseArrow(s))return;return super.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(r){let s=this.input.charCodeAt(this.state.pos+1);if(r===42&&s===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let s=this.input.charCodeAt(this.state.pos+1);if(r===124&&s===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,s){let i=super.parseTopLevel(r,s);if(this.state.hasFlowComment)this.raise(Q.UnterminatedFlowComment,this.state.curPosition());return i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Q.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();if(r)this.state.pos+=r,this.state.hasFlowComment=!0;return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,s=2;while([32,9].includes(this.input.charCodeAt(r+s)))s++;let i=this.input.charCodeAt(s+r),n=this.input.charCodeAt(s+r+1);if(i===58&&n===58)return s+2;if(this.input.slice(s+r,s+r+12)==="flow-include")return s+12;if(i===58&&n!==58)return s;return!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(T.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:s,memberName:i}){this.raise(Q.EnumBooleanMemberNotInitialized,r,{memberName:i,enumName:s})}flowEnumErrorInvalidMemberInitializer(r,s){return this.raise(!s.explicitType?Q.EnumInvalidMemberInitializerUnknownType:s.explicitType==="symbol"?Q.EnumInvalidMemberInitializerSymbolType:Q.EnumInvalidMemberInitializerPrimaryType,r,s)}flowEnumErrorNumberMemberNotInitialized(r,s){this.raise(Q.EnumNumberMemberNotInitialized,r,s)}flowEnumErrorStringMemberInconsistentlyInitialized(r,s){this.raise(Q.EnumStringMemberInconsistentlyInitialized,r,s)}flowEnumMemberInit(){let r=this.state.startLoc,s=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let i=this.parseNumericLiteral(this.state.value);if(s())return{type:"number",loc:i.loc.start,value:i};return{type:"invalid",loc:r}}case 134:{let i=this.parseStringLiteral(this.state.value);if(s())return{type:"string",loc:i.loc.start,value:i};return{type:"invalid",loc:r}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));if(s())return{type:"boolean",loc:i.loc.start,value:i};return{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,s=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:s,init:i}}flowEnumCheckExplicitTypeMismatch(r,s,i){let{explicitType:n}=s;if(n===null)return;if(n!==i)this.flowEnumErrorInvalidMemberInitializer(r,s)}flowEnumMembers({enumName:r,explicitType:s}){let i=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;while(!this.match(8)){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:l,init:u}=this.flowEnumMemberRaw(),p=l.name;if(p==="")continue;if(/^[a-z]/.test(p))this.raise(Q.EnumInvalidMemberName,l,{memberName:p,suggestion:p[0].toUpperCase()+p.slice(1),enumName:r});if(i.has(p))this.raise(Q.EnumDuplicateMemberName,l,{memberName:p,enumName:r});i.add(p);let m={enumName:r,explicitType:s,memberName:p};switch(o.id=l,u.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(u.loc,m,"boolean"),o.init=u.value,n.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(u.loc,m,"number"),o.init=u.value,n.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(u.loc,m,"string"),o.init=u.value,n.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,m);case"none":switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,m);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,m);break;default:n.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}if(!this.match(8))this.expect(12)}return{members:n,hasUnknownMembers:a}}flowEnumStringMembers(r,s,{enumName:i}){if(r.length===0)return s;else if(s.length===0)return r;else if(s.length>r.length){for(let n of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:i});return s}else{for(let n of s)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:i});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!Ee(this.state.type))throw this.raise(Q.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:s}=this.state;if(this.next(),s!=="boolean"&&s!=="number"&&s!=="string"&&s!=="symbol")this.raise(Q.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:s});return s}flowEnumBody(r,s){let i=s.name,n=s.loc.start,a=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:i,explicitType:a});switch(r.hasUnknownMembers=l,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let u=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let p=o.booleanMembers.length,m=o.numberMembers.length,x=o.stringMembers.length,g=o.defaultedMembers.length;if(!p&&!m&&!x&&!g)return u();else if(!p&&!m)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");else if(!m&&!x&&p>=g){for(let E of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(E.loc.start,{enumName:i,memberName:E.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!p&&!x&&m>=g){for(let E of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(E.loc.start,{enumName:i,memberName:E.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(Q.EnumInconsistentMemberValues,n,{enumName:i}),u()}}}flowParseEnumDeclaration(r){let s=this.parseIdentifier();return r.id=s,r.body=this.flowEnumBody(this.startNode(),s),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){if(this.shouldParseTypes()){if(this.match(47)||this.match(51))r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()}return super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let s=this.input.charCodeAt(r+1);return s!==60&&s!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;if(r===47)this.state.pos-=1,this.readToken_lt();else if(r===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:r}=this.state;if(r===51)return this.state.pos-=2,this.finishOp(47,1),47;return r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},BS={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},FS=/\r\n|[\r\n\u2028\u2029]/,Vs=new RegExp(FS.source,"g");function Or(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function _l(e,t,r){for(let s=t;s<r;s++)if(Or(e.charCodeAt(s)))return!0;return!1}var on=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ln=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function jS(e){switch(e){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 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var or=xt`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Ht(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function Nr(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return Nr(e.object)+"."+Nr(e.property);throw Error("Node had unexpected type: "+e.type)}var RS=(e)=>class extends e{jsxReadToken(){let r="",s=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(or.UnterminatedJsxContent,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){if(i===60&&this.state.canStartJSXElement)++this.state.pos,this.finishToken(143);else super.getTokenFromCode(i);return}r+=this.input.slice(s,this.state.pos),this.finishToken(142,r);return;case 38:r+=this.input.slice(s,this.state.pos),r+=this.jsxReadEntity(),s=this.state.pos;break;case 62:case 125:default:if(Or(i))r+=this.input.slice(s,this.state.pos),r+=this.jsxReadNewLine(!0),s=this.state.pos;else++this.state.pos}}}jsxReadNewLine(r){let s=this.input.charCodeAt(this.state.pos),i;if(++this.state.pos,s===13&&this.input.charCodeAt(this.state.pos)===10)++this.state.pos,i=r?`
4
+ - Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${Ws(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${Ws(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${Ws(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map((t)=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map((t)=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperCallNotNewExpression:"Cannot use new with super(...).",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Qx={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},Zx={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},eS=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),tS=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${Ws({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),rS={UnsupportedBind:"Binding should be performed on object property.",UnsupportedBindRHS:"The right-hand side of binding can not be super or import."},sS=["message"];function Il(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function iS({toMessage:e,code:t,reasonCode:r,syntaxPlugin:s}){let i=r==="MissingPlugin"||r==="MissingOneOfPlugins",n={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};if(n[r])r=n[r];return function a(o,l){let u=SyntaxError();if(u.code=t,u.reasonCode=r,u.loc=o,u.pos=o.index,u.syntaxPlugin=s,i)u.missingPlugin=l.missingPlugin;return Il(u,"clone",function(m={}){var x;let{line:g,column:E,index:I}=(x=m.loc)!=null?x:o;return a(new Ut(g,E,I),Object.assign({},l,m.details))}),Il(u,"details",l),Object.defineProperty(u,"message",{configurable:!0,get(){let p=`${e(l)} (${o.line}:${o.column})`;return this.message=p,p},set(p){Object.defineProperty(this,"message",{value:p,writable:!0})}}),u}}function xt(e,t){if(Array.isArray(e))return(s)=>xt(s,e[0]);let r={};for(let s of Object.keys(e)){let i=e[s],n=typeof i==="string"?{message:()=>i}:typeof i==="function"?{message:i}:i,{message:a}=n,o=Hx(n,sS),l=typeof a==="string"?()=>a:a;r[s]=iS(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:s,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}var T=Object.assign({},xt(zx),xt(Gx),xt(Qx),xt(Zx),xt`pipelineOperator`(tS),xt`functionBind`(rS));function nS(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function aS(e){let t=nS();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))if(e[r]!=null)t[r]=e[r];if(t.startLine===1){if(e.startIndex==null&&t.startColumn>0)t.startIndex=t.startColumn;else if(e.startColumn==null&&t.startIndex>0)t.startColumn=t.startIndex}else if(e.startColumn==null||e.startIndex==null){if(e.startIndex!=null)throw Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.")}if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:oS}=Object,wl=(e,t)=>{if(e)oS(e,t,{enumerable:!1,value:e[t]})};function Zr(e){return wl(e.loc.start,"index"),wl(e.loc.end,"index"),e}var lS=(e)=>class extends e{parse(){let r=Zr(super.parse());if(this.optionFlags&256)r.tokens=r.tokens.map(Zr);return r}parseRegExpLiteral({pattern:r,flags:s}){let i=null;try{i=new RegExp(r,s)}catch(a){}let n=this.estreeParseLiteral(i);return n.regex={pattern:r,flags:s},n}parseBigIntLiteral(r){let s;try{s=BigInt(r)}catch(n){s=null}let i=this.estreeParseLiteral(s);return i.bigint=String(i.value||r),i}parseDecimalLiteral(r){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||r),i}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}estreeParseChainExpression(r,s){let i=this.startNodeAtNode(r);return i.expression=r,this.finishNodeAt(i,"ChainExpression",s)}directiveToStmt(r){let s=r.value;delete r.value,this.castNodeTo(s,"Literal"),s.raw=s.extra.raw,s.value=s.extra.expressionValue;let i=this.castNodeTo(r,"ExpressionStatement");return i.expression=s,i.directive=s.extra.rawValue,delete s.extra,i}fillOptionalPropertiesForTSESLint(r){}cloneEstreeStringLiteral(r){let{start:s,end:i,loc:n,range:a,raw:o,value:l}=r,u=Object.create(r.constructor.prototype);return u.type="Literal",u.start=s,u.end=i,u.loc=n,u.range=a,u.raw=o,u.value=l,u}initFunction(r,s){super.initFunction(r,s),r.expression=!1}checkDeclaration(r){if(r!=null&&this.isObjectProperty(r))this.checkDeclaration(r.value);else super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var s;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value==="string"&&!((s=r.expression.extra)!=null&&s.parenthesized)}parseBlockBody(r,s,i,n,a){super.parseBlockBody(r,s,i,n,a);let o=r.directives.map((l)=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives}parsePrivateName(){let r=super.parsePrivateName();if(!this.getPluginOption("estree","classFeatures"))return r;return this.convertPrivateNameToPrivateIdentifier(r)}convertPrivateNameToPrivateIdentifier(r){let s=super.getPrivateNameSV(r);return delete r.id,r.name=s,this.castNodeTo(r,"PrivateIdentifier")}isPrivateName(r){if(!this.getPluginOption("estree","classFeatures"))return super.isPrivateName(r);return r.type==="PrivateIdentifier"}getPrivateNameSV(r){if(!this.getPluginOption("estree","classFeatures"))return super.getPrivateNameSV(r);return r.name}parseLiteral(r,s){let i=super.parseLiteral(r,s);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(r,s,i=!1){super.parseFunctionBody(r,s,i),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,s,i,n,a,o,l=!1){let u=this.startNode();u.kind=r.kind,u=super.parseMethod(u,s,i,n,a,o,l),delete u.kind;let{typeParameters:p}=r;if(p)delete r.typeParameters,u.typeParameters=p,this.resetStartLocationFromNode(u,p);let m=this.castNodeTo(u,"FunctionExpression");if(r.value=m,o==="ClassPrivateMethod")r.computed=!1;if(o==="ObjectMethod"){if(r.kind==="method")r.kind="init";return r.shorthand=!1,this.finishNode(r,"Property")}else return this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){if(r.type==="Literal")return r.value==="constructor";return super.nameIsConstructor(r)}parseClassProperty(...r){let s=super.parseClassProperty(...r);if(!this.getPluginOption("estree","classFeatures"))return s;return this.castNodeTo(s,"PropertyDefinition"),s}parseClassPrivateProperty(...r){let s=super.parseClassPrivateProperty(...r);if(!this.getPluginOption("estree","classFeatures"))return s;return this.castNodeTo(s,"PropertyDefinition"),s.computed=!1,s}parseClassAccessorProperty(r){let s=super.parseClassAccessorProperty(r);if(!this.getPluginOption("estree","classFeatures"))return s;if(s.abstract&&this.hasPlugin("typescript"))delete s.abstract,this.castNodeTo(s,"TSAbstractAccessorProperty");else this.castNodeTo(s,"AccessorProperty");return s}parseObjectProperty(r,s,i,n){let a=super.parseObjectProperty(r,s,i,n);if(a)a.kind="init",this.castNodeTo(a,"Property");return a}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}isValidLVal(r,s,i,n){return r==="Property"?"value":super.isValidLVal(r,s,i,n)}isAssignable(r,s){if(r!=null&&this.isObjectProperty(r))return this.isAssignable(r.value,s);return super.isAssignable(r,s)}toAssignable(r,s=!1){if(r!=null&&this.isObjectProperty(r)){let{key:i,value:n}=r;if(this.isPrivateName(i))this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start);this.toAssignable(n,s)}else super.toAssignable(r,s)}toAssignableObjectExpressionProp(r,s,i){if(r.type==="Property"&&(r.kind==="get"||r.kind==="set"))this.raise(T.PatternHasAccessor,r.key);else if(r.type==="Property"&&r.method)this.raise(T.PatternHasMethod,r.key);else super.toAssignableObjectExpressionProp(r,s,i)}finishCallExpression(r,s){let i=super.finishCallExpression(r,s);if(i.callee.type==="Import"){var n,a;this.castNodeTo(i,"ImportExpression"),i.source=i.arguments[0],i.options=(n=i.arguments[1])!=null?n:null,i.attributes=(a=i.arguments[1])!=null?a:null,delete i.arguments,delete i.callee}else if(i.type==="OptionalCallExpression")this.castNodeTo(i,"CallExpression");else i.optional=!1;return i}toReferencedArguments(r){if(r.type==="ImportExpression")return;super.toReferencedArguments(r)}parseExport(r,s){let i=this.state.lastTokStartLoc,n=super.parseExport(r,s);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":if(n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier")this.castNodeTo(n,"ExportAllDeclaration"),n.exported=n.specifiers[0].exported,delete n.specifiers;case"ExportDefaultDeclaration":{var a;let{declaration:o}=n;if((o==null?void 0:o.type)==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===n.start)this.resetStartLocation(n,i)}break}return n}stopParseSubscript(r,s){let i=super.stopParseSubscript(r,s);if(s.optionalChainMember)return this.estreeParseChainExpression(i,r.loc.end);return i}parseMember(r,s,i,n,a){let o=super.parseMember(r,s,i,n,a);if(o.type==="OptionalMemberExpression")this.castNodeTo(o,"MemberExpression");else o.optional=!1;return o}isOptionalMemberExpression(r){if(r.type==="ChainExpression")return r.expression.type==="MemberExpression";return super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){if(r.type==="ChainExpression")r=r.expression;return super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,s){let i=super.castNodeTo(r,s);return this.fillOptionalPropertiesForTSESLint(i),i}cloneIdentifier(r){let s=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(s),s}cloneStringLiteral(r){if(r.type==="Literal")return this.cloneEstreeStringLiteral(r);return super.cloneStringLiteral(r)}finishNodeAt(r,s,i){return Zr(super.finishNodeAt(r,s,i))}finishNode(r,s){let i=super.finishNode(r,s);return this.fillOptionalPropertiesForTSESLint(i),i}resetStartLocation(r,s){super.resetStartLocation(r,s),Zr(r)}resetEndLocation(r,s=this.state.lastTokEndLoc){super.resetEndLocation(r,s),Zr(r)}};class Nr{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}var be={brace:new Nr("{"),j_oTag:new Nr("<tag"),j_cTag:new Nr("</tag"),j_expr:new Nr("<tag>...</tag>",!0)};be.template=new Nr("`",!0);var ne=!0,U=!0,an=!0,es=!0,$t=!0,uS=!0;class yn{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop!=null?t.binop:null,this.updateContext=null}}var Tn=new Map;function Te(e,t={}){t.keyword=e;let r=H(e,t);return Tn.set(e,r),r}function We(e,t){return H(e,{beforeExpr:ne,binop:t})}var is=-1,Kt=[],xn=[],Sn=[],gn=[],bn=[],En=[];function H(e,t={}){var r,s,i,n;return++is,xn.push(e),Sn.push((r=t.binop)!=null?r:-1),gn.push((s=t.beforeExpr)!=null?s:!1),bn.push((i=t.startsExpr)!=null?i:!1),En.push((n=t.prefix)!=null?n:!1),Kt.push(new yn(e,t)),is}function ue(e,t={}){var r,s,i,n;return++is,Tn.set(e,is),xn.push(e),Sn.push((r=t.binop)!=null?r:-1),gn.push((s=t.beforeExpr)!=null?s:!1),bn.push((i=t.startsExpr)!=null?i:!1),En.push((n=t.prefix)!=null?n:!1),Kt.push(new yn("name",t)),is}var cS={bracketL:H("[",{beforeExpr:ne,startsExpr:U}),bracketHashL:H("#[",{beforeExpr:ne,startsExpr:U}),bracketBarL:H("[|",{beforeExpr:ne,startsExpr:U}),bracketR:H("]"),bracketBarR:H("|]"),braceL:H("{",{beforeExpr:ne,startsExpr:U}),braceBarL:H("{|",{beforeExpr:ne,startsExpr:U}),braceHashL:H("#{",{beforeExpr:ne,startsExpr:U}),braceR:H("}"),braceBarR:H("|}"),parenL:H("(",{beforeExpr:ne,startsExpr:U}),parenR:H(")"),comma:H(",",{beforeExpr:ne}),semi:H(";",{beforeExpr:ne}),colon:H(":",{beforeExpr:ne}),doubleColon:H("::",{beforeExpr:ne}),dot:H("."),question:H("?",{beforeExpr:ne}),questionDot:H("?."),arrow:H("=>",{beforeExpr:ne}),template:H("template"),ellipsis:H("...",{beforeExpr:ne}),backQuote:H("`",{startsExpr:U}),dollarBraceL:H("${",{beforeExpr:ne,startsExpr:U}),templateTail:H("...`",{startsExpr:U}),templateNonTail:H("...${",{beforeExpr:ne,startsExpr:U}),at:H("@"),hash:H("#",{startsExpr:U}),interpreterDirective:H("#!..."),eq:H("=",{beforeExpr:ne,isAssign:es}),assign:H("_=",{beforeExpr:ne,isAssign:es}),slashAssign:H("_=",{beforeExpr:ne,isAssign:es}),xorAssign:H("_=",{beforeExpr:ne,isAssign:es}),moduloAssign:H("_=",{beforeExpr:ne,isAssign:es}),incDec:H("++/--",{prefix:$t,postfix:uS,startsExpr:U}),bang:H("!",{beforeExpr:ne,prefix:$t,startsExpr:U}),tilde:H("~",{beforeExpr:ne,prefix:$t,startsExpr:U}),doubleCaret:H("^^",{startsExpr:U}),doubleAt:H("@@",{startsExpr:U}),pipeline:We("|>",0),nullishCoalescing:We("??",1),logicalOR:We("||",1),logicalAND:We("&&",2),bitwiseOR:We("|",3),bitwiseXOR:We("^",4),bitwiseAND:We("&",5),equality:We("==/!=/===/!==",6),lt:We("</>/<=/>=",7),gt:We("</>/<=/>=",7),relational:We("</>/<=/>=",7),bitShift:We("<</>>/>>>",8),bitShiftL:We("<</>>/>>>",8),bitShiftR:We("<</>>/>>>",8),plusMin:H("+/-",{beforeExpr:ne,binop:9,prefix:$t,startsExpr:U}),modulo:H("%",{binop:10,startsExpr:U}),star:H("*",{binop:10}),slash:We("/",10),exponent:H("**",{beforeExpr:ne,binop:11,rightAssociative:!0}),_in:Te("in",{beforeExpr:ne,binop:7}),_instanceof:Te("instanceof",{beforeExpr:ne,binop:7}),_break:Te("break"),_case:Te("case",{beforeExpr:ne}),_catch:Te("catch"),_continue:Te("continue"),_debugger:Te("debugger"),_default:Te("default",{beforeExpr:ne}),_else:Te("else",{beforeExpr:ne}),_finally:Te("finally"),_function:Te("function",{startsExpr:U}),_if:Te("if"),_return:Te("return",{beforeExpr:ne}),_switch:Te("switch"),_throw:Te("throw",{beforeExpr:ne,prefix:$t,startsExpr:U}),_try:Te("try"),_var:Te("var"),_const:Te("const"),_with:Te("with"),_new:Te("new",{beforeExpr:ne,startsExpr:U}),_this:Te("this",{startsExpr:U}),_super:Te("super",{startsExpr:U}),_class:Te("class",{startsExpr:U}),_extends:Te("extends",{beforeExpr:ne}),_export:Te("export"),_import:Te("import",{startsExpr:U}),_null:Te("null",{startsExpr:U}),_true:Te("true",{startsExpr:U}),_false:Te("false",{startsExpr:U}),_typeof:Te("typeof",{beforeExpr:ne,prefix:$t,startsExpr:U}),_void:Te("void",{beforeExpr:ne,prefix:$t,startsExpr:U}),_delete:Te("delete",{beforeExpr:ne,prefix:$t,startsExpr:U}),_do:Te("do",{isLoop:an,beforeExpr:ne}),_for:Te("for",{isLoop:an}),_while:Te("while",{isLoop:an}),_as:ue("as",{startsExpr:U}),_assert:ue("assert",{startsExpr:U}),_async:ue("async",{startsExpr:U}),_await:ue("await",{startsExpr:U}),_defer:ue("defer",{startsExpr:U}),_from:ue("from",{startsExpr:U}),_get:ue("get",{startsExpr:U}),_let:ue("let",{startsExpr:U}),_meta:ue("meta",{startsExpr:U}),_of:ue("of",{startsExpr:U}),_sent:ue("sent",{startsExpr:U}),_set:ue("set",{startsExpr:U}),_source:ue("source",{startsExpr:U}),_static:ue("static",{startsExpr:U}),_using:ue("using",{startsExpr:U}),_yield:ue("yield",{startsExpr:U}),_asserts:ue("asserts",{startsExpr:U}),_checks:ue("checks",{startsExpr:U}),_exports:ue("exports",{startsExpr:U}),_global:ue("global",{startsExpr:U}),_implements:ue("implements",{startsExpr:U}),_intrinsic:ue("intrinsic",{startsExpr:U}),_infer:ue("infer",{startsExpr:U}),_is:ue("is",{startsExpr:U}),_mixins:ue("mixins",{startsExpr:U}),_proto:ue("proto",{startsExpr:U}),_require:ue("require",{startsExpr:U}),_satisfies:ue("satisfies",{startsExpr:U}),_keyof:ue("keyof",{startsExpr:U}),_readonly:ue("readonly",{startsExpr:U}),_unique:ue("unique",{startsExpr:U}),_abstract:ue("abstract",{startsExpr:U}),_declare:ue("declare",{startsExpr:U}),_enum:ue("enum",{startsExpr:U}),_module:ue("module",{startsExpr:U}),_namespace:ue("namespace",{startsExpr:U}),_interface:ue("interface",{startsExpr:U}),_type:ue("type",{startsExpr:U}),_opaque:ue("opaque",{startsExpr:U}),name:H("name",{startsExpr:U}),placeholder:H("%%",{startsExpr:U}),string:H("string",{startsExpr:U}),num:H("num",{startsExpr:U}),bigint:H("bigint",{startsExpr:U}),decimal:H("decimal",{startsExpr:U}),regexp:H("regexp",{startsExpr:U}),privateName:H("#name",{startsExpr:U}),eof:H("eof"),jsxName:H("jsxName"),jsxText:H("jsxText",{beforeExpr:ne}),jsxTagStart:H("jsxTagStart",{startsExpr:U}),jsxTagEnd:H("jsxTagEnd")};function Ee(e){return e>=93&&e<=133}function pS(e){return e<=92}function St(e){return e>=58&&e<=133}function ql(e){return e>=58&&e<=137}function fS(e){return gn[e]}function rs(e){return bn[e]}function hS(e){return e>=29&&e<=33}function Nl(e){return e>=129&&e<=131}function dS(e){return e>=90&&e<=92}function Pn(e){return e>=58&&e<=92}function mS(e){return e>=39&&e<=59}function yS(e){return e===34}function TS(e){return En[e]}function xS(e){return e>=121&&e<=123}function SS(e){return e>=124&&e<=130}function zt(e){return xn[e]}function Xs(e){return Sn[e]}function gS(e){return e===57}function Hs(e){return e>=24&&e<=25}function Rt(e){return Kt[e]}Kt[8].updateContext=(e)=>{e.pop()};Kt[5].updateContext=Kt[7].updateContext=Kt[23].updateContext=(e)=>{e.push(be.brace)};Kt[22].updateContext=(e)=>{if(e[e.length-1]===be.template)e.pop();else e.push(be.template)};Kt[143].updateContext=(e)=>{e.push(be.j_expr,be.j_oTag)};var An="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Ul="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",bS=new RegExp("["+An+"]"),ES=new RegExp("["+An+Ul+"]");An=Ul=null;var Kl=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],PS=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function fn(e,t){let r=65536;for(let s=0,i=t.length;s<i;s+=2){if(r+=t[s],r>e)return!1;if(r+=t[s+1],r>=e)return!0}return!1}function vt(e){if(e<65)return e===36;if(e<=90)return!0;if(e<97)return e===95;if(e<=122)return!0;if(e<=65535)return e>=170&&bS.test(String.fromCharCode(e));return fn(e,Kl)}function ur(e){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<=90)return!0;if(e<97)return e===95;if(e<=122)return!0;if(e<=65535)return e>=170&&ES.test(String.fromCharCode(e));return fn(e,Kl)||fn(e,PS)}var vn={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},AS=new Set(vn.keyword),vS=new Set(vn.strict),CS=new Set(vn.strictBind);function Vl(e,t){return t&&e==="await"||e==="enum"}function Yl(e,t){return Vl(e,t)||vS.has(e)}function Jl(e){return CS.has(e)}function Wl(e,t){return Yl(e,t)||Jl(e)}function IS(e){return AS.has(e)}function wS(e,t,r){return e===64&&t===64&&vt(r)}var NS=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function OS(e){return NS.has(e)}class zs{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class Gs{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&128)return!0;if(t&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new zs(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,t,r){let s=this.currentScope();if(t&8||t&16){this.checkRedeclarationInScope(s,e,t,r);let i=s.names.get(e)||0;if(t&16)i=i|4;else{if(!s.firstLexicalName)s.firstLexicalName=e;i=i|2}if(s.names.set(e,i),t&8)this.maybeExportDefined(s,e)}else if(t&4){for(let i=this.scopeStack.length-1;i>=0;--i)if(s=this.scopeStack[i],this.checkRedeclarationInScope(s,e,t,r),s.names.set(e,(s.names.get(e)||0)|1),this.maybeExportDefined(s,e),s.flags&1667)break}if(this.parser.inModule&&s.flags&1)this.undefinedExports.delete(e)}maybeExportDefined(e,t){if(this.parser.inModule&&e.flags&1)this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,s){if(this.isRedeclaredInScope(e,t,r))this.parser.raise(T.VarRedeclaration,s,{identifierName:t})}isRedeclaredInScope(e,t,r){if(!(r&1))return!1;if(r&8)return e.names.has(t);let s=e.names.get(t)||0;if(r&16)return(s&2)>0||!this.treatFunctionsAsVarInScope(e)&&(s&1)>0;return(s&2)>0&&!(e.flags&8&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(s&4)>0}checkLocalExport(e){let{name:t}=e;if(!this.scopeStack[0].names.has(t))this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&1667)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:t}=this.scopeStack[e];if(t&1731&&!(t&4))return t}}}class Xl extends zs{constructor(...e){super(...e);this.declareFunctions=new Set}}class $l extends Gs{createScope(e){return new Xl(e)}declareName(e,t,r){let s=this.currentScope();if(t&2048){this.checkRedeclarationInScope(s,e,t,r),this.maybeExportDefined(s,e),s.declareFunctions.add(e);return}super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return!0;if(r&2048&&!e.declareFunctions.has(t)){let s=e.names.get(t);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(e){if(!this.scopeStack[0].declareFunctions.has(e.name))super.checkLocalExport(e)}}var _S=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Q=xt`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function kS(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function Ol(e){return e.importKind==="type"||e.importKind==="typeof"}var DS={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function LS(e,t){let r=[],s=[];for(let i=0;i<e.length;i++)(t(e[i],i,e)?r:s).push(e[i]);return[r,s]}var MS=/\*?\s*@((?:no)?flow)\b/,BS=(e)=>class extends e{constructor(...r){super(...r);this.flowPragma=void 0}getScopeHandler(){return $l}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,s){if(r!==134&&r!==13&&r!==28){if(this.flowPragma===void 0)this.flowPragma=null}super.finishToken(r,s)}addComment(r){if(this.flowPragma===void 0){let s=MS.exec(r.value);if(!s);else if(s[1]==="flow")this.flowPragma="flow";else if(s[1]==="noflow")this.flowPragma="noflow";else throw Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let s=this.state.inType;this.state.inType=!0,this.expect(r||14);let i=this.flowParseType();return this.state.inType=s,i}flowParsePredicate(){let r=this.startNode(),s=this.state.startLoc;if(this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>s.index+1)this.raise(Q.UnexpectedSpaceBetweenModuloChecks,s);if(this.eat(10))return r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate");else return this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let s=null,i=null;if(this.match(54))this.state.inType=r,i=this.flowParsePredicate();else if(s=this.flowParseType(),this.state.inType=r,this.match(54))i=this.flowParsePredicate();return[s,i]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let s=r.id=this.parseIdentifier(),i=this.startNode(),n=this.startNode();if(this.match(47))i.typeParameters=this.flowParseTypeParameterDeclaration();else i.typeParameters=null;this.expect(10);let a=this.flowParseFunctionTypeParams();return i.params=a.params,i.rest=a.rest,i.this=a._this,this.expect(11),[i.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),s.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(s),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,s){if(this.match(80))return this.flowParseDeclareClass(r);else if(this.match(68))return this.flowParseDeclareFunction(r);else if(this.match(74))return this.flowParseDeclareVariable(r);else if(this.eatContextual(127))if(this.match(16))return this.flowParseDeclareModuleExports(r);else{if(s)this.raise(Q.NestedDeclareModule,this.state.lastTokStartLoc);return this.flowParseDeclareModule(r)}else if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);else if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);else if(this.isContextual(129))return this.flowParseDeclareInterface(r);else if(this.match(82))return this.flowParseDeclareExportDeclaration(r,s);throw this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){if(this.scope.enter(0),this.match(134))r.id=super.parseExprAtom();else r.id=this.parseIdentifier();let s=r.body=this.startNode(),i=s.body=[];this.expect(5);while(!this.match(8)){let o=this.startNode();if(this.match(83)){if(this.next(),!this.isContextual(130)&&!this.match(87))this.raise(Q.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc);i.push(super.parseImport(o))}else this.expectContextual(125,Q.UnsupportedStatementInDeclareModule),i.push(this.flowParseDeclare(o,!0))}this.scope.exit(),this.expect(8),this.finishNode(s,"BlockStatement");let n=null,a=!1;return i.forEach((o)=>{if(kS(o)){if(n==="CommonJS")this.raise(Q.AmbiguousDeclareModuleKind,o);n="ES"}else if(o.type==="DeclareModuleExports"){if(a)this.raise(Q.DuplicateDeclareModuleExports,o);if(n==="ES")this.raise(Q.AmbiguousDeclareModuleKind,o);n="CommonJS",a=!0}}),r.kind=n||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,s){if(this.expect(82),this.eat(65)){if(this.match(68)||this.match(80))r.declaration=this.flowParseDeclare(this.startNode());else r.declaration=this.flowParseType(),this.semicolon();return r.default=!0,this.finishNode(r,"DeclareExportDeclaration")}else{if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!s){let i=this.state.value;throw this.raise(Q.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:i,suggestion:DS[i]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");else if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))if(r=this.parseExport(r,null),r.type==="ExportNamedDeclaration")return r.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration");else return this.castNodeTo(r,"DeclareExportAllDeclaration")}throw this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let s=this.flowParseTypeAlias(r);return this.castNodeTo(s,"DeclareTypeAlias"),s}flowParseDeclareOpaqueType(r){this.next();let s=this.flowParseOpaqueType(r,!0);return this.castNodeTo(s,"DeclareOpaqueType"),s}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,s){if(r.id=this.flowParseRestrictedIdentifier(!s,!0),this.scope.declareName(r.id.name,s?17:8201,r.id.loc.start),this.match(47))r.typeParameters=this.flowParseTypeParameterDeclaration();else r.typeParameters=null;if(r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!s&&this.eat(12));if(s){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:s,allowExact:!1,allowSpread:!1,allowProto:s,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();if(r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47))r.typeParameters=this.flowParseTypeParameterInstantiation();else r.typeParameters=null;return this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){if(r==="_")this.raise(Q.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,s,i){if(!_S.has(r))return;this.raise(i?Q.AssignReservedType:Q.UnexpectedReservedType,s,{reservedType:r})}flowParseRestrictedIdentifierName(r,s){return this.checkReservedType(this.state.value,this.state.startLoc,s),this.parseIdentifierName(r)}flowParseRestrictedIdentifier(r,s){let i=this.startNode(),n=this.flowParseRestrictedIdentifierName(r,s);return this.createIdentifier(i,n)}flowParseTypeAlias(r){if(r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47))r.typeParameters=this.flowParseTypeParameterDeclaration();else r.typeParameters=null;return r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,s){if(this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47))r.typeParameters=this.flowParseTypeParameterDeclaration();else r.typeParameters=null;if(r.supertype=null,this.match(14))r.supertype=this.flowParseTypeInitialiser(14);if(r.impltype=null,!s)r.impltype=this.flowParseTypeInitialiser(29);return this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){let r=this.startNode();return this.next(),r.typeAnnotation=this.flowParseType(),this.finishNode(r,"TypeAnnotation")}}flowParseTypeParameter(r=!1){let s=this.state.startLoc,i=this.startNode(),n=this.flowParseVariance();if(i.name=this.flowParseRestrictedIdentifierName(),i.variance=n,i.bound=this.flowParseTypeParameterBound(),this.match(29))this.eat(29),i.default=this.flowParseType();else if(r)this.raise(Q.MissingTypeParamDefault,s);return this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,s=this.startNode();if(s.params=[],this.state.inType=!0,this.match(47)||this.match(143))this.next();else this.unexpected();let i=!1;do{let n=this.flowParseTypeParameter(i);if(s.params.push(n),n.default)i=!0;if(!this.match(48))this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(s,"TypeParameterDeclaration")}flowInTopLevelContext(r){if(this.curContext()!==be.brace){let s=this.state.context;this.state.context=[s[0]];try{return r()}finally{this.state.context=s}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()!==47)return;return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),s=this.state.inType;if(this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!1;while(!this.match(48))if(r.params.push(this.flowParseType()),!this.match(48))this.expect(12);this.state.noAnonFunctionType=i}),this.state.inType=s,!this.state.inType&&this.curContext()===be.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let r=this.startNode(),s=this.state.inType;r.params=[],this.state.inType=!0,this.expect(47);while(!this.match(48))if(r.params.push(this.flowParseTypeOrImplicitInstantiation()),!this.match(48))this.expect(12);return this.expect(48),this.state.inType=s,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,s,i){if(r.static=s,this.lookahead().type===14)r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser();else r.id=null,r.key=this.flowParseType();return this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=i,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,s){if(r.static=s,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10))r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start));else{if(r.method=!1,this.eat(17))r.optional=!0;r.value=this.flowParseTypeInitialiser()}return this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){if(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47))r.typeParameters=this.flowParseTypeParameterDeclaration();if(this.expect(10),this.match(78)){if(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(r.params.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))r.rest=this.flowParseFunctionTypeParam(!1);return this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,s){let i=this.startNode();return r.static=s,r.value=this.flowParseObjectTypeMethodish(i),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:s,allowSpread:i,allowProto:n,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let u,p,m=!1;if(s&&this.match(6))this.expect(6),u=9,p=!0;else this.expect(5),u=8,p=!1;l.exact=p;while(!this.match(u)){let g=!1,E=null,I=null,b=this.startNode();if(n&&this.isContextual(118)){let N=this.lookahead();if(N.type!==14&&N.type!==17)this.next(),E=this.state.startLoc,r=!1}if(r&&this.isContextual(106)){let N=this.lookahead();if(N.type!==14&&N.type!==17)this.next(),g=!0}let C=this.flowParseVariance();if(this.eat(0)){if(E!=null)this.unexpected(E);if(this.eat(0)){if(C)this.unexpected(C.loc.start);l.internalSlots.push(this.flowParseObjectTypeInternalSlot(b,g))}else l.indexers.push(this.flowParseObjectTypeIndexer(b,g,C))}else if(this.match(10)||this.match(47)){if(E!=null)this.unexpected(E);if(C)this.unexpected(C.loc.start);l.callProperties.push(this.flowParseObjectTypeCallProperty(b,g))}else{let N="init";if(this.isContextual(99)||this.isContextual(104)){let j=this.lookahead();if(ql(j.type))N=this.state.value,this.next()}let z=this.flowParseObjectTypeProperty(b,g,E,C,N,i,a!=null?a:!p);if(z===null)m=!0,I=this.state.lastTokStartLoc;else l.properties.push(z)}if(this.flowObjectTypeSemicolon(),I&&!this.match(8)&&!this.match(9))this.raise(Q.UnexpectedExplicitInexactInObject,I)}if(this.expect(u),i)l.inexact=m;let x=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,x}flowParseObjectTypeProperty(r,s,i,n,a,o,l){if(this.eat(21)){if(this.match(12)||this.match(13)||this.match(8)||this.match(9)){if(!o)this.raise(Q.InexactInsideNonObject,this.state.lastTokStartLoc);else if(!l)this.raise(Q.InexactInsideExact,this.state.lastTokStartLoc);if(n)this.raise(Q.InexactVariance,n);return null}if(!o)this.raise(Q.UnexpectedSpreadType,this.state.lastTokStartLoc);if(i!=null)this.unexpected(i);if(n)this.raise(Q.SpreadVariance,n);return r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty")}else{r.key=this.flowParseObjectPropertyKey(),r.static=s,r.proto=i!=null,r.kind=a;let u=!1;if(this.match(47)||this.match(10)){if(r.method=!0,i!=null)this.unexpected(i);if(n)this.unexpected(n.loc.start);if(r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),a==="get"||a==="set")this.flowCheckGetterSetterParams(r);if(!o&&r.key.name==="constructor"&&r.value.this)this.raise(Q.ThisParamBannedInConstructor,r.value.this)}else{if(a!=="init")this.unexpected();if(r.method=!1,this.eat(17))u=!0;r.value=this.flowParseTypeInitialiser(),r.variance=n}return r.optional=u,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let s=r.kind==="get"?0:1,i=r.value.params.length+(r.value.rest?1:0);if(r.value.this)this.raise(r.kind==="get"?Q.GetterMayNotHaveThisParam:Q.SetterMayNotHaveThisParam,r.value.this);if(i!==s)this.raise(r.kind==="get"?T.BadGetterArity:T.BadSetterArity,r);if(r.kind==="set"&&r.value.rest)this.raise(T.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){if(!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9))this.unexpected()}flowParseQualifiedTypeIdentifier(r,s){r!=null||(r=this.state.startLoc);let i=s||this.flowParseRestrictedIdentifier(!0);while(this.eat(16)){let n=this.startNodeAt(r);n.qualification=i,n.id=this.flowParseRestrictedIdentifier(!0),i=this.finishNode(n,"QualifiedTypeIdentifier")}return i}flowParseGenericType(r,s){let i=this.startNodeAt(r);if(i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(r,s),this.match(47))i.typeParameters=this.flowParseTypeParameterInstantiation();return this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();r.types=[],this.expect(0);while(this.state.pos<this.length&&!this.match(3)){if(r.types.push(this.flowParseType()),this.match(3))break;this.expect(12)}return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let s=null,i=!1,n=null,a=this.startNode(),o=this.lookahead(),l=this.state.type===78;if(o.type===14||o.type===17){if(l&&!r)this.raise(Q.ThisParamMustBeFirst,a);if(s=this.parseIdentifier(l),this.eat(17)){if(i=!0,l)this.raise(Q.ThisParamMayNotBeOptional,a)}n=this.flowParseTypeInitialiser()}else n=this.flowParseType();return a.name=s,a.optional=i,a.typeAnnotation=n,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let s=this.startNodeAt(r.loc.start);return s.name=null,s.optional=!1,s.typeAnnotation=r,this.finishNode(s,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let s=null,i=null;if(this.match(78)){if(i=this.flowParseFunctionTypeParam(!0),i.name=null,!this.match(11))this.expect(12)}while(!this.match(11)&&!this.match(21))if(r.push(this.flowParseFunctionTypeParam(!1)),!this.match(11))this.expect(12);if(this.eat(21))s=this.flowParseFunctionTypeParam(!1);return{params:r,rest:s,_this:i}}flowIdentToTypeAnnotation(r,s,i){switch(i.name){case"any":return this.finishNode(s,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(s,"BooleanTypeAnnotation");case"mixed":return this.finishNode(s,"MixedTypeAnnotation");case"empty":return this.finishNode(s,"EmptyTypeAnnotation");case"number":return this.finishNode(s,"NumberTypeAnnotation");case"string":return this.finishNode(s,"StringTypeAnnotation");case"symbol":return this.finishNode(s,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(i.name),this.flowParseGenericType(r,i)}}flowParsePrimaryType(){let r=this.state.startLoc,s=this.startNode(),i,n,a=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=o,n;case 47:{let l=this.startNode();return l.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),i=this.flowParseFunctionTypeParams(),l.params=i.params,l.rest=i.rest,l.this=i._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),this.finishNode(l,"FunctionTypeAnnotation")}case 10:{let l=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Ee(this.state.type)||this.match(78)){let u=this.lookahead().type;a=u!==17&&u!==14}else a=!0;if(a)if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),n;else this.eat(12);if(n)i=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]);else i=this.flowParseFunctionTypeParams();return l.params=i.params,l.rest=i.rest,l.this=i._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),l.typeParameters=null,this.finishNode(l,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return s.value=this.match(85),this.next(),this.finishNode(s,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",s);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",s);throw this.raise(Q.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(s,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(s,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(s,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(s,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Pn(this.state.type)){let l=zt(this.state.type);return this.next(),super.createIdentifier(s,l)}else if(Ee(this.state.type)){if(this.isContextual(129))return this.flowParseInterfaceType();return this.flowIdentToTypeAnnotation(r,s,this.parseIdentifier())}}throw this.unexpected()}flowParsePostfixType(){let r=this.state.startLoc,s=this.flowParsePrimaryType(),i=!1;while((this.match(0)||this.match(18))&&!this.canInsertSemicolon()){let n=this.startNodeAt(r),a=this.eat(18);if(i=i||a,this.expect(0),!a&&this.match(3))n.elementType=s,this.next(),s=this.finishNode(n,"ArrayTypeAnnotation");else if(n.objectType=s,n.indexType=this.flowParseType(),this.expect(3),i)n.optional=a,s=this.finishNode(n,"OptionalIndexedAccessType");else s=this.finishNode(n,"IndexedAccessType")}return s}flowParsePrefixType(){let r=this.startNode();if(this.eat(17))return r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation");else return this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let s=this.startNodeAt(r.loc.start);return s.params=[this.reinterpretTypeAsFunctionTypeParam(r)],s.rest=null,s.this=null,s.returnType=this.flowParseType(),s.typeParameters=null,this.finishNode(s,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let s=this.flowParseAnonFunctionWithoutParens();r.types=[s];while(this.eat(45))r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?s:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let s=this.flowParseIntersectionType();r.types=[s];while(this.eat(43))r.types.push(this.flowParseIntersectionType());return r.types.length===1?s:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let s=this.flowParseUnionType();return this.state.inType=r,s}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let r=this.state.startLoc,s=this.parseIdentifier();return this.flowParseGenericType(r,s)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(){let r=this.startNode(),s=this.parseIdentifierName();if(this.match(14))r.typeAnnotation=this.flowParseTypeAnnotation();return this.createIdentifier(r,s)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;if(this.match(53)){if(r=this.startNode(),this.state.value==="+")r.kind="plus";else r.kind="minus";return this.next(),this.finishNode(r,"Variance")}return r}parseFunctionBody(r,s,i=!1){if(s){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,i));return}super.parseFunctionBody(r,!1,i)}parseFunctionBodyAndFinish(r,s,i=!1){if(this.match(14)){let n=this.startNode();[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=n.typeAnnotation?this.finishNode(n,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,s,i)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let i=this.lookahead();if(St(i.type)){let n=this.startNode();return this.next(),this.flowParseInterface(n)}}else if(this.isContextual(126)){let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}let s=super.parseStatementLike(r);if(this.flowPragma===void 0&&!this.isValidDirective(s))this.flowPragma=null;return s}parseExpressionStatement(r,s,i){if(s.type==="Identifier"){if(s.name==="declare"){if(this.match(80)||Ee(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(Ee(this.state.type)){if(s.name==="interface")return this.flowParseInterface(r);else if(s.name==="type")return this.flowParseTypeAlias(r);else if(s.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,s,i)}shouldParseExportDeclaration(){let{type:r}=this.state;if(r===126||Nl(r))return!this.state.containsEsc;return super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;if(r===126||Nl(r))return this.state.containsEsc;return super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,s,i){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let x=this.lookaheadCharCode();if(x===44||x===61||x===58||x===41)return this.setOptionalParametersError(i),r}this.expect(17);let n=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(s),{consequent:l,failed:u}=this.tryParseConditionalConsequent(),[p,m]=this.getArrowLikeExpressions(l);if(u||m.length>0){let x=[...a];if(m.length>0){this.state=n,this.state.noArrowAt=x;for(let g=0;g<m.length;g++)x.push(m[g].start);({consequent:l,failed:u}=this.tryParseConditionalConsequent()),[p,m]=this.getArrowLikeExpressions(l)}if(u&&p.length>1)this.raise(Q.AmbiguousConditionalArrow,n.startLoc);if(u&&p.length===1)this.state=n,x.push(p[0].start),this.state.noArrowAt=x,{consequent:l,failed:u}=this.tryParseConditionalConsequent()}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),s=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:s}}getArrowLikeExpressions(r,s){let i=[r],n=[];while(i.length!==0){let a=i.pop();if(a.type==="ArrowFunctionExpression"){if(a.typeParameters||!a.returnType)this.finishArrowValidation(a);else n.push(a);if(a.body.type!=="BlockStatement")i.push(a.body)}else if(a.type==="ConditionalExpression")i.push(a.consequent),i.push(a.alternate)}if(s)return n.forEach((a)=>this.finishArrowValidation(a)),[n,[]];return LS(n,(a)=>a.params.every((o)=>this.isAssignable(o,!0)))}finishArrowValidation(r){var s;this.toAssignableList(r.params,(s=r.extra)==null?void 0:s.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,s){let i;if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))this.state.noArrowParamsConversionAt.push(this.state.start),i=s(),this.state.noArrowParamsConversionAt.pop();else i=s();return i}parseParenItem(r,s){let i=super.parseParenItem(r,s);if(this.eat(17))i.optional=!0,this.resetEndLocation(r);if(this.match(14)){let n=this.startNodeAt(s);return n.expression=i,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return i}assertModuleNodeAllowed(r){if(r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type")return;super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let s=this.startNode();if(this.next(),this.match(5))return r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null;else return this.flowParseTypeAlias(s)}else if(this.isContextual(131)){r.exportKind="type";let s=this.startNode();return this.next(),this.flowParseOpaqueType(s,!1)}else if(this.isContextual(129)){r.exportKind="type";let s=this.startNode();return this.next(),this.flowParseInterface(s)}else if(this.isContextual(126)){r.exportKind="value";let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}else return super.parseExportDeclaration(r)}eatExportStar(r){if(super.eatExportStar(r))return!0;if(this.isContextual(130)&&this.lookahead().type===55)return r.exportKind="type",this.next(),this.next(),!0;return!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:s}=this.state,i=super.maybeParseExportNamespaceSpecifier(r);if(i&&r.exportKind==="type")this.unexpected(s);return i}parseClassId(r,s,i){if(super.parseClassId(r,s,i),this.match(47))r.typeParameters=this.flowParseTypeParameterDeclaration()}parseClassMember(r,s,i){let{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,s))return;s.declare=!0}if(super.parseClassMember(r,s,i),s.declare){if(s.type!=="ClassProperty"&&s.type!=="ClassPrivateProperty"&&s.type!=="PropertyDefinition")this.raise(Q.DeclareClassElement,n);else if(s.value)this.raise(Q.DeclareClassFieldInitializer,s.value)}}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),s="@@"+r;if(!this.isIterator(r)||!this.state.inType)this.raise(T.InvalidIdentifier,this.state.curPosition(),{identifierName:s});this.finishToken(132,s)}getTokenFromCode(r){let s=this.input.charCodeAt(this.state.pos+1);if(r===123&&s===124)this.finishOp(6,2);else if(this.state.inType&&(r===62||r===60))this.finishOp(r===62?48:47,1);else if(this.state.inType&&r===63)if(s===46)this.finishOp(18,2);else this.finishOp(17,1);else if(wS(r,s,this.input.charCodeAt(this.state.pos+2)))this.state.pos+=2,this.readIterator();else super.getTokenFromCode(r)}isAssignable(r,s){if(r.type==="TypeCastExpression")return this.isAssignable(r.expression,s);else return super.isAssignable(r,s)}toAssignable(r,s=!1){if(!s&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression")r.left=this.typeCastToParameter(r.left);super.toAssignable(r,s)}toAssignableList(r,s,i){for(let n=0;n<r.length;n++){let a=r[n];if((a==null?void 0:a.type)==="TypeCastExpression")r[n]=this.typeCastToParameter(a)}super.toAssignableList(r,s,i)}toReferencedList(r,s){for(let n=0;n<r.length;n++){var i;let a=r[n];if(a&&a.type==="TypeCastExpression"&&!((i=a.extra)!=null&&i.parenthesized)&&(r.length>1||!s))this.raise(Q.TypeCastInPattern,a.typeAnnotation)}return r}parseArrayLike(r,s,i){let n=super.parseArrayLike(r,s,i);if(i!=null&&!this.state.maybeInArrowParameters)this.toReferencedList(n.elements);return n}isValidLVal(r,s,i,n){return r==="TypeCastExpression"||super.isValidLVal(r,s,i,n)}parseClassProperty(r){if(this.match(14))r.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassProperty(r)}parseClassPrivateProperty(r){if(this.match(14))r.typeAnnotation=this.flowParseTypeAnnotation();return super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,s,i,n,a,o){if(s.variance)this.unexpected(s.variance.loc.start);if(delete s.variance,this.match(47))s.typeParameters=this.flowParseTypeParameterDeclaration();if(super.pushClassMethod(r,s,i,n,a,o),s.params&&a){let l=s.params;if(l.length>0&&this.isThisParam(l[0]))this.raise(Q.ThisParamBannedInConstructor,s)}else if(s.type==="MethodDefinition"&&a&&s.value.params){let l=s.value.params;if(l.length>0&&this.isThisParam(l[0]))this.raise(Q.ThisParamBannedInConstructor,s)}}pushClassPrivateMethod(r,s,i,n){if(s.variance)this.unexpected(s.variance.loc.start);if(delete s.variance,this.match(47))s.typeParameters=this.flowParseTypeParameterDeclaration();super.pushClassPrivateMethod(r,s,i,n)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51)))r.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression();if(this.isContextual(113)){this.next();let s=r.implements=[];do{let i=this.startNode();if(i.id=this.flowParseRestrictedIdentifier(!0),this.match(47))i.typeParameters=this.flowParseTypeParameterInstantiation();else i.typeParameters=null;s.push(this.finishNode(i,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let s=this.getObjectOrClassMethodParams(r);if(s.length>0){let i=s[0];if(this.isThisParam(i)&&r.kind==="get")this.raise(Q.GetterMayNotHaveThisParam,i);else if(this.isThisParam(i))this.raise(Q.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,s,i,n,a,o,l){if(r.variance)this.unexpected(r.variance.loc.start);delete r.variance;let u;if(this.match(47)&&!o){if(u=this.flowParseTypeParameterDeclaration(),!this.match(10))this.unexpected()}let p=super.parseObjPropValue(r,s,i,n,a,o,l);if(u)(p.value||p).typeParameters=u;return p}parseFunctionParamType(r){if(this.eat(17)){if(r.type!=="Identifier")this.raise(Q.PatternIsOptional,r);if(this.isThisParam(r))this.raise(Q.ThisParamMayNotBeOptional,r);r.optional=!0}if(this.match(14))r.typeAnnotation=this.flowParseTypeAnnotation();else if(this.isThisParam(r))this.raise(Q.ThisParamAnnotationRequired,r);if(this.match(29)&&this.isThisParam(r))this.raise(Q.ThisParamNoDefault,r);return this.resetEndLocation(r),r}parseMaybeDefault(r,s){let i=super.parseMaybeDefault(r,s);if(i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start)this.raise(Q.TypeBeforeInitializer,i.typeAnnotation);return i}checkImportReflection(r){if(super.checkImportReflection(r),r.module&&r.importKind!=="value")this.raise(Q.ImportReflectionHasImportType,r.specifiers[0].loc.start)}parseImportSpecifierLocal(r,s,i){s.local=Ol(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(s,i))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){if(!r)return!0;let s=this.lookaheadCharCode();return s===123||s===42}return!r&&this.isContextual(87)}applyImportPhase(r,s,i,n){if(super.applyImportPhase(r,s,i,n),s){if(!i&&this.match(65))return;r.exportKind=i==="type"?i:"value"}else{if(i==="type"&&this.match(55))this.unexpected();r.importKind=i==="type"||i==="typeof"?i:"value"}}parseImportSpecifier(r,s,i,n,a){let o=r.imported,l=null;if(o.type==="Identifier"){if(o.name==="type")l="type";else if(o.name==="typeof")l="typeof"}let u=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let m=this.parseIdentifier(!0);if(l!==null&&!St(this.state.type))r.imported=m,r.importKind=l,r.local=this.cloneIdentifier(m);else r.imported=o,r.importKind=null,r.local=this.parseIdentifier()}else{if(l!==null&&St(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=l;else{if(s)throw this.raise(T.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null}if(this.eatContextual(93))r.local=this.parseIdentifier();else u=!0,r.local=this.cloneIdentifier(r.imported)}let p=Ol(r);if(i&&p)this.raise(Q.ImportTypeShorthandOnlyInPureImport,r);if(i||p)this.checkReservedType(r.local.name,r.local.loc.start,!0);if(u&&!i&&!p)this.checkReservedWord(r.local.name,r.loc.start,!0,!0);return this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(r,s){let i=r.kind;if(i!=="get"&&i!=="set"&&this.match(47))r.typeParameters=this.flowParseTypeParameterDeclaration();super.parseFunctionParams(r,s)}parseVarId(r,s){if(super.parseVarId(r,s),this.match(14))r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id)}parseAsyncArrowFromCallExpression(r,s){if(this.match(14)){let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=i}return super.parseAsyncArrowFromCallExpression(r,s)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,s){var i;let n=null,a;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,s),n),!a.error)return a.node;let{context:u}=this.state,p=u[u.length-1];if(p===be.j_oTag||p===be.j_expr)u.pop()}if((i=a)!=null&&i.error||this.match(47)){var o,l;n=n||this.state.clone();let u,p=this.tryParse((x)=>{var g;u=this.flowParseTypeParameterDeclaration();let E=this.forwardNoArrowParamsConversionAt(u,()=>{let b=super.parseMaybeAssign(r,s);return this.resetStartLocationFromNode(b,u),b});if((g=E.extra)!=null&&g.parenthesized)x();let I=this.maybeUnwrapTypeCastExpression(E);if(I.type!=="ArrowFunctionExpression")x();return I.typeParameters=u,this.resetStartLocationFromNode(I,u),E},n),m=null;if(p.node&&this.maybeUnwrapTypeCastExpression(p.node).type==="ArrowFunctionExpression"){if(!p.error&&!p.aborted){if(p.node.async)this.raise(Q.UnexpectedTypeParameterBeforeAsyncArrowFunction,u);return p.node}m=p.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(m)return this.state=p.failState,m;if((l=a)!=null&&l.thrown)throw a.error;if(p.thrown)throw p.error;throw this.raise(Q.UnexpectedTokenAfterTypeParameter,u)}return super.parseMaybeAssign(r,s)}parseArrow(r){if(this.match(14)){let s=this.tryParse(()=>{let i=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();if([n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=i,this.canInsertSemicolon())this.unexpected();if(!this.match(19))this.unexpected();return n});if(s.thrown)return null;if(s.error)this.state=s.failState;r.returnType=s.node.typeAnnotation?this.finishNode(s.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,s){if(this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))r.params=s;else super.setArrowFunctionParameters(r,s)}checkParams(r,s,i,n=!0){if(i&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))return;for(let a=0;a<r.params.length;a++)if(this.isThisParam(r.params[a])&&a>0)this.raise(Q.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,s,i,n)}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,s,i){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(s.index)){this.next();let n=this.startNodeAt(s);n.callee=r,n.arguments=super.parseCallExpressionArguments(),r=this.finishNode(n,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let n=this.state.clone(),a=this.tryParse((l)=>this.parseAsyncArrowWithTypeParameters(s)||l(),n);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,s,i),n);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,s,i)}parseSubscript(r,s,i,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,i)return n.stop=!0,r;this.next();let a=this.startNodeAt(s);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!i&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(s);a.callee=r;let o=this.tryParse(()=>{if(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),n.optionalChainMember)a.optional=!1;return this.finishCallExpression(a,n.optionalChainMember)});if(o.node){if(o.error)this.state=o.failState;return o.node}}return super.parseSubscript(r,s,i,n)}parseNewCallee(r){super.parseNewCallee(r);let s=null;if(this.shouldParseTypes()&&this.match(47))s=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node;r.typeArguments=s}parseAsyncArrowWithTypeParameters(r){let s=this.startNodeAt(r);if(this.parseFunctionParams(s,!1),!this.parseArrow(s))return;return super.parseArrowExpression(s,void 0,!0)}readToken_mult_modulo(r){let s=this.input.charCodeAt(this.state.pos+1);if(r===42&&s===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let s=this.input.charCodeAt(this.state.pos+1);if(r===124&&s===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,s){let i=super.parseTopLevel(r,s);if(this.state.hasFlowComment)this.raise(Q.UnterminatedFlowComment,this.state.curPosition());return i}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Q.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();if(r)this.state.pos+=r,this.state.hasFlowComment=!0;return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,s=2;while([32,9].includes(this.input.charCodeAt(r+s)))s++;let i=this.input.charCodeAt(s+r),n=this.input.charCodeAt(s+r+1);if(i===58&&n===58)return s+2;if(this.input.slice(s+r,s+r+12)==="flow-include")return s+12;if(i===58&&n!==58)return s;return!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(T.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:s,memberName:i}){this.raise(Q.EnumBooleanMemberNotInitialized,r,{memberName:i,enumName:s})}flowEnumErrorInvalidMemberInitializer(r,s){return this.raise(!s.explicitType?Q.EnumInvalidMemberInitializerUnknownType:s.explicitType==="symbol"?Q.EnumInvalidMemberInitializerSymbolType:Q.EnumInvalidMemberInitializerPrimaryType,r,s)}flowEnumErrorNumberMemberNotInitialized(r,s){this.raise(Q.EnumNumberMemberNotInitialized,r,s)}flowEnumErrorStringMemberInconsistentlyInitialized(r,s){this.raise(Q.EnumStringMemberInconsistentlyInitialized,r,s)}flowEnumMemberInit(){let r=this.state.startLoc,s=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let i=this.parseNumericLiteral(this.state.value);if(s())return{type:"number",loc:i.loc.start,value:i};return{type:"invalid",loc:r}}case 134:{let i=this.parseStringLiteral(this.state.value);if(s())return{type:"string",loc:i.loc.start,value:i};return{type:"invalid",loc:r}}case 85:case 86:{let i=this.parseBooleanLiteral(this.match(85));if(s())return{type:"boolean",loc:i.loc.start,value:i};return{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,s=this.parseIdentifier(!0),i=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:s,init:i}}flowEnumCheckExplicitTypeMismatch(r,s,i){let{explicitType:n}=s;if(n===null)return;if(n!==i)this.flowEnumErrorInvalidMemberInitializer(r,s)}flowEnumMembers({enumName:r,explicitType:s}){let i=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;while(!this.match(8)){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:l,init:u}=this.flowEnumMemberRaw(),p=l.name;if(p==="")continue;if(/^[a-z]/.test(p))this.raise(Q.EnumInvalidMemberName,l,{memberName:p,suggestion:p[0].toUpperCase()+p.slice(1),enumName:r});if(i.has(p))this.raise(Q.EnumDuplicateMemberName,l,{memberName:p,enumName:r});i.add(p);let m={enumName:r,explicitType:s,memberName:p};switch(o.id=l,u.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(u.loc,m,"boolean"),o.init=u.value,n.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(u.loc,m,"number"),o.init=u.value,n.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(u.loc,m,"string"),o.init=u.value,n.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,m);case"none":switch(s){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,m);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,m);break;default:n.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}if(!this.match(8))this.expect(12)}return{members:n,hasUnknownMembers:a}}flowEnumStringMembers(r,s,{enumName:i}){if(r.length===0)return s;else if(s.length===0)return r;else if(s.length>r.length){for(let n of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:i});return s}else{for(let n of s)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:i});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!Ee(this.state.type))throw this.raise(Q.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:s}=this.state;if(this.next(),s!=="boolean"&&s!=="number"&&s!=="string"&&s!=="symbol")this.raise(Q.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:s});return s}flowEnumBody(r,s){let i=s.name,n=s.loc.start,a=this.flowEnumParseExplicitType({enumName:i});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:i,explicitType:a});switch(r.hasUnknownMembers=l,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let u=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let p=o.booleanMembers.length,m=o.numberMembers.length,x=o.stringMembers.length,g=o.defaultedMembers.length;if(!p&&!m&&!x&&!g)return u();else if(!p&&!m)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(r,"EnumStringBody");else if(!m&&!x&&p>=g){for(let E of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(E.loc.start,{enumName:i,memberName:E.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!p&&!x&&m>=g){for(let E of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(E.loc.start,{enumName:i,memberName:E.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(Q.EnumInconsistentMemberValues,n,{enumName:i}),u()}}}flowParseEnumDeclaration(r){let s=this.parseIdentifier();return r.id=s,r.body=this.flowEnumBody(this.startNode(),s),this.finishNode(r,"EnumDeclaration")}jsxParseOpeningElementAfterName(r){if(this.shouldParseTypes()){if(this.match(47)||this.match(51))r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()}return super.jsxParseOpeningElementAfterName(r)}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let s=this.input.charCodeAt(r+1);return s!==60&&s!==61}return!1}reScan_lt_gt(){let{type:r}=this.state;if(r===47)this.state.pos-=1,this.readToken_lt();else if(r===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:r}=this.state;if(r===51)return this.state.pos-=2,this.finishOp(47,1),47;return r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},FS={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},jS=/\r\n|[\r\n\u2028\u2029]/,Ys=new RegExp(jS.source,"g");function _r(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function _l(e,t,r){for(let s=t;s<r;s++)if(_r(e.charCodeAt(s)))return!0;return!1}var on=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ln=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function RS(e){switch(e){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 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var lr=xt`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Ht(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function Or(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return Or(e.object)+"."+Or(e.property);throw Error("Node had unexpected type: "+e.type)}var qS=(e)=>class extends e{jsxReadToken(){let r="",s=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(lr.UnterminatedJsxContent,this.state.startLoc);let i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:if(this.state.pos===this.state.start){if(i===60&&this.state.canStartJSXElement)++this.state.pos,this.finishToken(143);else super.getTokenFromCode(i);return}r+=this.input.slice(s,this.state.pos),this.finishToken(142,r);return;case 38:r+=this.input.slice(s,this.state.pos),r+=this.jsxReadEntity(),s=this.state.pos;break;case 62:case 125:default:if(_r(i))r+=this.input.slice(s,this.state.pos),r+=this.jsxReadNewLine(!0),s=this.state.pos;else++this.state.pos}}}jsxReadNewLine(r){let s=this.input.charCodeAt(this.state.pos),i;if(++this.state.pos,s===13&&this.input.charCodeAt(this.state.pos)===10)++this.state.pos,i=r?`
5
5
  `:`\r
6
- `;else i=String.fromCharCode(s);return++this.state.curLine,this.state.lineStart=this.state.pos,i}jsxReadString(r){let s="",i=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(T.UnterminatedString,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);if(n===r)break;if(n===38)s+=this.input.slice(i,this.state.pos),s+=this.jsxReadEntity(),i=this.state.pos;else if(Or(n))s+=this.input.slice(i,this.state.pos),s+=this.jsxReadNewLine(!1),i=this.state.pos;else++this.state.pos}s+=this.input.slice(i,this.state.pos++),this.finishToken(134,s)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let s=10;if(this.codePointAtPos(this.state.pos)===120)s=16,++this.state.pos;let i=this.readInt(s,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(i)}else{let s=0,i=!1;while(s++<10&&this.state.pos<this.length&&!(i=this.codePointAtPos(this.state.pos)===59))++this.state.pos;if(i){let n=this.input.slice(r,this.state.pos),a=BS[n];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r,s=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(lr(r)||r===45);this.finishToken(141,this.input.slice(s,this.state.pos))}jsxParseIdentifier(){let r=this.startNode();if(this.match(141))r.name=this.state.value;else if(Pn(this.state.type))r.name=zt(this.state.type);else this.unexpected();return this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){let r=this.state.startLoc,s=this.jsxParseIdentifier();if(!this.eat(14))return s;let i=this.startNodeAt(r);return i.namespace=s,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){let r=this.state.startLoc,s=this.jsxParseNamespacedName();if(s.type==="JSXNamespacedName")return s;while(this.eat(16)){let i=this.startNodeAt(r);i.object=s,i.property=this.jsxParseIdentifier(),s=this.finishNode(i,"JSXMemberExpression")}return s}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:if(r=this.startNode(),this.setContext(be.brace),this.next(),r=this.jsxParseExpressionContainer(r,be.j_oTag),r.expression.type==="JSXEmptyExpression")this.raise(or.AttributeIsEmpty,r);return r;case 143:case 134:return this.parseExprAtom();default:throw this.raise(or.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(be.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,s){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{let i=this.parseExpression();r.expression=i}return this.setContext(s),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();if(this.match(5))return this.setContext(be.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(be.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute");return r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute")}jsxParseOpeningElementAt(r){let s=this.startNodeAt(r);if(this.eat(144))return this.finishNode(s,"JSXOpeningFragment");return s.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(s)}jsxParseOpeningElementAfterName(r){let s=[];while(!this.match(56)&&!this.match(144))s.push(this.jsxParseAttribute());return r.attributes=s,r.selfClosing=this.eat(56),this.expect(144),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let s=this.startNodeAt(r);if(this.eat(144))return this.finishNode(s,"JSXClosingFragment");return s.name=this.jsxParseElementName(),this.expect(144),this.finishNode(s,"JSXClosingElement")}jsxParseElementAt(r){let s=this.startNodeAt(r),i=[],n=this.jsxParseOpeningElementAt(r),a=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 143:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}i.push(this.jsxParseElementAt(r));break;case 142:i.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();if(this.setContext(be.brace),this.next(),this.match(21))i.push(this.jsxParseSpreadChild(o));else i.push(this.jsxParseExpressionContainer(o,be.j_expr));break}default:this.unexpected()}if(Ht(n)&&!Ht(a)&&a!==null)this.raise(or.MissingClosingTagFragment,a);else if(!Ht(n)&&Ht(a))this.raise(or.MissingClosingTagElement,a,{openingTagName:Nr(n.name)});else if(!Ht(n)&&!Ht(a)){if(Nr(a.name)!==Nr(n.name))this.raise(or.MissingClosingTagElement,a,{openingTagName:Nr(n.name)})}}if(Ht(n))s.openingFragment=n,s.closingFragment=a;else s.openingElement=n,s.closingElement=a;if(s.children=i,this.match(47))throw this.raise(or.UnwrappedAdjacentJSXElements,this.state.startLoc);return Ht(n)?this.finishNode(s,"JSXFragment"):this.finishNode(s,"JSXElement")}jsxParseElement(){let r=this.state.startLoc;return this.next(),this.jsxParseElementAt(r)}setContext(r){let{context:s}=this.state;s[s.length-1]=r}parseExprAtom(r){if(this.match(143))return this.jsxParseElement();else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33)return this.replaceToken(143),this.jsxParseElement();else return super.parseExprAtom(r)}skipSpace(){if(!this.curContext().preserveSpace)super.skipSpace()}getTokenFromCode(r){let s=this.curContext();if(s===be.j_expr){this.jsxReadToken();return}if(s===be.j_oTag||s===be.j_cTag){if(vt(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(144);return}if((r===34||r===39)&&s===be.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(r)}updateContext(r){let{context:s,type:i}=this.state;if(i===56&&r===143)s.splice(-2,2,be.j_cTag),this.state.canStartJSXElement=!1;else if(i===143)s.push(be.j_oTag);else if(i===144){let n=s[s.length-1];if(n===be.j_oTag&&r===56||n===be.j_cTag)s.pop(),this.state.canStartJSXElement=s[s.length-1]===be.j_expr;else this.setContext(be.j_expr),this.state.canStartJSXElement=!0}else this.state.canStartJSXElement=pS(i)}};class Hl extends Hs{constructor(...e){super(...e);this.tsNames=new Map}}class zl extends zs{constructor(...e){super(...e);this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new Hl(e)}enter(e){if(e===1024)this.importsStack.push(new Set);super.enter(e)}exit(){let e=super.exit();if(e===1024)this.importsStack.pop();return e}hasImport(e,t){let r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!t&&r>1){for(let s=0;s<r-1;s++)if(this.importsStack[s].has(e))return!0}return!1}declareName(e,t,r){if(t&4096){if(this.hasImport(e,!0))this.parser.raise(T.VarRedeclaration,r,{identifierName:e});this.importsStack[this.importsStack.length-1].add(e);return}let s=this.currentScope(),i=s.tsNames.get(e)||0;if(t&1024){this.maybeExportDefined(s,e),s.tsNames.set(e,i|16);return}if(super.declareName(e,t,r),t&2){if(!(t&1))this.checkRedeclarationInScope(s,e,t,r),this.maybeExportDefined(s,e);i=i|1}if(t&256)i=i|2;if(t&512)i=i|4;if(t&128)i=i|8;if(i)s.tsNames.set(e,i)}isRedeclaredInScope(e,t,r){let s=e.tsNames.get(t);if((s&2)>0){if(r&256){let i=!!(r&512),n=(s&4)>0;return i!==n}return!0}if(r&128&&(s&8)>0)if(e.names.get(t)&2)return!!(r&1);else return!1;if(r&2&&(s&1)>0)return!0;return super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let r=this.scopeStack.length;for(let s=r-1;s>=0;s--){let n=this.scopeStack[s].tsNames.get(t);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(e)}}class Gl{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function Xs(e,t){return(e?2:0)|(t?1:0)}class Ql{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e==="string")return this.plugins.has(e);else{let[t,r]=e;if(!this.hasPlugin(t))return!1;let s=this.plugins.get(t);for(let i of Object.keys(r))if((s==null?void 0:s[i])!==r[i])return!1;return!0}}getPluginOption(e,t){var r;return(r=this.plugins.get(e))==null?void 0:r[t]}}function Zl(e,t){if(e.trailingComments===void 0)e.trailingComments=t;else e.trailingComments.unshift(...t)}function qS(e,t){if(e.leadingComments===void 0)e.leadingComments=t;else e.leadingComments.unshift(...t)}function as(e,t){if(e.innerComments===void 0)e.innerComments=t;else e.innerComments.unshift(...t)}function Tt(e,t,r){let s=null,i=t.length;while(s===null&&i>0)s=t[--i];if(s===null||s.start>r.start)as(e,r.comments);else Zl(s,r.comments)}class eu extends Ql{addComment(e){if(this.filename)e.loc.filename=this.filename;let{commentsLen:t}=this.state;if(this.comments.length!==t)this.comments.length=t;this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,r=t.length;if(r===0)return;let s=r-1,i=t[s];if(i.start===e.end)i.leadingNode=e,s--;let{start:n}=e;for(;s>=0;s--){let a=t[s],o=a.end;if(o>n)a.containingNode=e,this.finalizeComment(a),t.splice(s,1);else{if(o===n)a.trailingNode=e;break}}}finalizeComment(e){var t;let{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null){if(e.leadingNode!==null)Zl(e.leadingNode,r);if(e.trailingNode!==null)qS(e.trailingNode,r)}else{let{containingNode:s,start:i}=e;if(this.input.charCodeAt(this.offsetToSourcePos(i)-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":Tt(s,s.properties,e);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":Tt(s,s.arguments,e);break;case"ImportExpression":Tt(s,[s.source,(t=s.options)!=null?t:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":Tt(s,s.params,e);break;case"ArrayExpression":case"ArrayPattern":Tt(s,s.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Tt(s,s.specifiers,e);break;case"TSEnumDeclaration":Tt(s,s.members,e);break;case"TSEnumBody":Tt(s,s.members,e);break;case"TSInterfaceBody":Tt(s,s.body,e);break;default:{if(s.type==="RecordExpression"){Tt(s,s.properties,e);break}if(s.type==="TupleExpression"){Tt(s,s.elements,e);break}as(s,r)}}else as(s,r)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:r}=t;if(r===0)return;let s=t[r-1];if(s.leadingNode===e)s.leadingNode=null}takeSurroundingComments(e,t,r){let{commentStack:s}=this.state,i=s.length;if(i===0)return;let n=i-1;for(;n>=0;n--){let a=s[n],o=a.end;if(a.start===r)a.leadingNode=e;else if(o===t)a.trailingNode=e;else if(o<t)break}}}class Cn{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[be.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){if(e)this.flags|=1;else this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:r,startLine:s,startColumn:i}){this.strict=e===!1?!1:e===!0?!0:t==="module",this.startIndex=r,this.curLine=s,this.lineStart=-i,this.startLoc=this.endLoc=new Ut(s,i,r)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){if(e)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){if(e)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){if(e)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){if(e)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){if(e)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){if(e)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){if(e)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){if(e)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){if(e)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){if(e)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){if(e)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){if(e)this.flags|=4096;else this.flags&=-4097}curPosition(){return new Ut(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let e=new Cn;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var US=function(t){return t>=48&&t<=57},kl={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ys={bin:(e)=>e===48||e===49,oct:(e)=>e>=48&&e<=55,dec:(e)=>e>=48&&e<=57,hex:(e)=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Dl(e,t,r,s,i,n){let a=r,o=s,l=i,u="",p=null,m=r,{length:x}=t;for(;;){if(r>=x){n.unterminated(a,o,l),u+=t.slice(m,r);break}let g=t.charCodeAt(r);if(KS(e,g,t,r)){u+=t.slice(m,r);break}if(g===92){u+=t.slice(m,r);let E=VS(t,r,s,i,e==="template",n);if(E.ch===null&&!p)p={pos:r,lineStart:s,curLine:i};else u+=E.ch;({pos:r,lineStart:s,curLine:i}=E),m=r}else if(g===8232||g===8233)++r,++i,s=r;else if(g===10||g===13)if(e==="template"){if(u+=t.slice(m,r)+`
7
- `,++r,g===13&&t.charCodeAt(r)===10)++r;++i,m=s=r}else n.unterminated(a,o,l);else++r}return{pos:r,str:u,firstInvalidLoc:p,lineStart:s,curLine:i,containsInvalid:!!p}}function KS(e,t,r,s){if(e==="template")return t===96||t===36&&r.charCodeAt(s+1)===123;return t===(e==="double"?34:39)}function VS(e,t,r,s,i,n){let a=!i;t++;let o=(u)=>({pos:t,ch:u,lineStart:r,curLine:s}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
8
- `);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=hn(e,t,r,s,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=ru(e,t,r,s,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:if(e.charCodeAt(t)===10)++t;case 10:r=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);else n.strictNumericEscape(t-1,r,s);default:if(l>=48&&l<=55){let u=t-1,m=/^[0-7]+/.exec(e.slice(u,t+2))[0],x=parseInt(m,8);if(x>255)m=m.slice(0,-1),x=parseInt(m,8);t+=m.length-1;let g=e.charCodeAt(t);if(m!=="0"||g===56||g===57)if(i)return o(null);else n.strictNumericEscape(u,r,s);return o(String.fromCharCode(x))}return o(String.fromCharCode(l))}}function hn(e,t,r,s,i,n,a,o){let l=t,u;if({n:u,pos:t}=tu(e,t,r,s,16,i,n,!1,o,!a),u===null)if(a)o.invalidEscapeSequence(l,r,s);else t=l-1;return{code:u,pos:t}}function tu(e,t,r,s,i,n,a,o,l,u){let p=t,m=i===16?kl.hex:kl.decBinOct,x=i===16?Ys.hex:i===10?Ys.dec:i===8?Ys.oct:Ys.bin,g=!1,E=0;for(let I=0,b=n==null?1/0:n;I<b;++I){let C=e.charCodeAt(t),N;if(C===95&&o!=="bail"){let z=e.charCodeAt(t-1),j=e.charCodeAt(t+1);if(!o){if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,s)}else if(Number.isNaN(j)||!x(j)||m.has(z)||m.has(j)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,s)}++t;continue}if(C>=97)N=C-97+10;else if(C>=65)N=C-65+10;else if(US(C))N=C-48;else N=1/0;if(N>=i)if(N<=9&&u)return{n:null,pos:t};else if(N<=9&&l.invalidDigit(t,r,s,i))N=0;else if(a)N=0,g=!0;else break;++t,E=E*i+N}if(t===p||n!=null&&t-p!==n||g)return{n:null,pos:t};return{n:E,pos:t}}function ru(e,t,r,s,i,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=hn(e,t,r,s,e.indexOf("}",t)-t,!0,i,n),++t,o!==null&&o>1114111)if(i)n.invalidCodePoint(t,r,s);else return{code:null,pos:t}}else({code:o,pos:t}=hn(e,t,r,s,4,!1,i,n));return{code:o,pos:t}}function es(e,t,r){return new Ut(r,e-t,e)}var YS=new Set([103,109,115,105,121,117,100,118]);class qt{constructor(e){let t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new ns(e.startLoc,e.endLoc)}}class su extends eu{constructor(e,t){super();this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(r,s,i,n)=>{if(!(this.optionFlags&2048))return!1;return this.raise(T.InvalidDigit,es(r,s,i),{radix:n}),!0},numericSeparatorInEscapeSequence:this.errorBuilder(T.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(T.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(T.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(T.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(r,s,i)=>{this.recordStrictModeErrors(T.StrictNumericEscape,es(r,s,i))},unterminated:(r,s,i)=>{throw this.raise(T.UnterminatedString,es(r-1,s,i))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(T.StrictNumericEscape),unterminated:(r,s,i)=>{throw this.raise(T.UnterminatedTemplate,es(r,s,i))}}),this.state=new Cn,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){if(this.checkKeywordEscapes(),this.optionFlags&256)this.pushToken(new qt(this.state));this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){if(this.match(e))return this.next(),!0;else return!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return on.lastIndex=e,on.test(this.input)?on.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return ln.lastIndex=e,ln.test(this.input)?ln.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)===55296&&++e<this.input.length){let r=this.input.charCodeAt(e);if((r&64512)===56320)t=65536+((t&1023)<<10)+(r&1023)}return t}setStrict(e){if(this.state.strict=e,e)this.state.strictErrors.forEach(([t,r])=>this.raise(t,r)),this.state.strictErrors.clear()}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,!this.isLookahead)this.state.startLoc=this.state.curPosition();if(this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;if(!this.isLookahead)t=this.state.curPosition();let r=this.state.pos,s=this.input.indexOf(e,r+2);if(s===-1)throw this.raise(T.UnterminatedComment,this.state.curPosition());this.state.pos=s+e.length,Vs.lastIndex=r+2;while(Vs.test(this.input)&&Vs.lastIndex<=s)++this.state.curLine,this.state.lineStart=Vs.lastIndex;if(this.isLookahead)return;let i={type:"CommentBlock",value:this.input.slice(r+2,s),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(s+e.length),loc:new ns(t,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(i);return i}skipLineComment(e){let t=this.state.pos,r;if(!this.isLookahead)r=this.state.curPosition();let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)while(!Or(s)&&++this.state.pos<this.length)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let i=this.state.pos,a={type:"CommentLine",value:this.input.slice(t+e,i),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(i),loc:new ns(r,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(a);return a}skipSpace(){let e=this.state.pos,t=this.optionFlags&4096?[]:null;e:while(this.state.pos<this.length){let r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:if(this.input.charCodeAt(this.state.pos+1)===10)++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let s=this.skipBlockComment("*/");if(s!==void 0)this.addComment(s),t==null||t.push(s);break}case 47:{let s=this.skipLineComment(2);if(s!==void 0)this.addComment(s),t==null||t.push(s);break}default:break e}break;default:if(jS(r))++this.state.pos;else if(r===45&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===45&&this.input.charCodeAt(s+2)===62&&(e===0||this.state.lineStart>e)){let i=this.skipLineComment(3);if(i!==void 0)this.addComment(i),t==null||t.push(i)}else break e}else if(r===60&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let i=this.skipLineComment(4);if(i!==void 0)this.addComment(i),t==null||t.push(i)}else break e}else break e}}if((t==null?void 0:t.length)>0){let r=this.state.pos,s={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(r),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let r=this.state.type;if(this.state.type=e,this.state.value=t,!this.isLookahead)this.updateContext(r)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(T.UnexpectedDigitAfterHash,this.state.curPosition());if(t===123||t===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(t===123?T.RecordExpressionHashIncorrectStartSyntaxType:T.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());if(this.state.pos+=2,t===123)this.finishToken(7);else this.finishToken(1)}else if(vt(t))++this.state.pos,this.finishToken(139,this.readWord1(t));else if(t===92)++this.state.pos,this.finishToken(139,this.readWord1());else this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}if(e===46&&this.input.charCodeAt(this.state.pos+2)===46)this.state.pos+=3,this.finishToken(21);else++this.state.pos,this.finishToken(16)}readToken_slash(){if(this.input.charCodeAt(this.state.pos+1)===61)this.finishOp(31,2);else this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let t=this.state.pos;this.state.pos+=1;while(!Or(e)&&++this.state.pos<this.length)e=this.input.charCodeAt(this.state.pos);let r=this.input.slice(t+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){let t=e===42?55:54,r=1,s=this.input.charCodeAt(this.state.pos+1);if(e===42&&s===42)r++,s=this.input.charCodeAt(this.state.pos+2),t=57;if(s===61&&!this.state.inType)r++,t=e===37?33:30;this.finishOp(t,r)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){if(this.input.charCodeAt(this.state.pos+2)===61)this.finishOp(30,3);else this.finishOp(e===124?41:42,2);return}if(e===124){if(t===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&t===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(T.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&t===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(T.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(t===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);if(e===61&&!this.state.inType)this.finishOp(32,2);else if(e===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){if(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94)this.unexpected()}else this.finishOp(44,1)}readToken_atSign(){if(this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}]))this.finishOp(38,2);else this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}if(t===61)this.finishOp(30,2);else this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(t===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===62){let r=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+r)===61){this.finishOp(30,r+1);return}this.finishOp(52,r);return}if(t===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&t===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);if(e===63)if(t===61)this.finishOp(30,3);else this.finishOp(40,2);else if(e===46&&!(t>=48&&t<=57))this.state.pos+=2,this.finishToken(18);else++this.state.pos,this.finishToken(17)}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(T.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(T.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:if(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58)this.finishOp(15,2);else++this.state.pos,this.finishToken(14);return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let t=this.input.charCodeAt(this.state.pos+1);if(t===120||t===88){this.readRadixNumber(16);return}if(t===111||t===79){this.readRadixNumber(8);return}if(t===98||t===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(vt(e)){this.readWord(e);return}}throw this.raise(T.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){let e=this.state.startLoc,t=this.state.start+1,r,s,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(T.UnterminatedRegExp,Xe(e,1));let l=this.input.charCodeAt(i);if(Or(l))throw this.raise(T.UnterminatedRegExp,Xe(e,1));if(r)r=!1;else{if(l===91)s=!0;else if(l===93&&s)s=!1;else if(l===47&&!s)break;r=l===92}}let n=this.input.slice(t,i);++i;let a="",o=()=>Xe(e,i+2-t);while(i<this.length){let l=this.codePointAtPos(i),u=String.fromCharCode(l);if(YS.has(l)){if(l===118){if(a.includes("u"))this.raise(T.IncompatibleRegExpUVFlags,o())}else if(l===117){if(a.includes("v"))this.raise(T.IncompatibleRegExpUVFlags,o())}if(a.includes(u))this.raise(T.DuplicateRegExpFlags,o())}else if(lr(l)||l===92)this.raise(T.MalformedRegExpFlags,o());else break;++i,a+=u}this.state.pos=i,this.finishToken(138,{pattern:n,flags:a})}readInt(e,t,r=!1,s=!0){let{n:i,pos:n}=tu(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,s,this.errorHandlers_readInt,!1);return this.state.pos=n,i}readRadixNumber(e){let t=this.state.pos,r=this.state.curPosition(),s=!1;this.state.pos+=2;let i=this.readInt(e);if(i==null)this.raise(T.InvalidDigit,Xe(r,2),{radix:e});let n=this.input.charCodeAt(this.state.pos);if(n===110)++this.state.pos,s=!0;else if(n===109)throw this.raise(T.InvalidDecimal,r);if(vt(this.codePointAtPos(this.state.pos)))throw this.raise(T.NumberIdentifier,this.state.curPosition());if(s){let a=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,a);return}this.finishToken(135,i)}readNumber(e){let t=this.state.pos,r=this.state.curPosition(),s=!1,i=!1,n=!1,a=!1;if(!e&&this.readInt(10)===null)this.raise(T.InvalidNumber,this.state.curPosition());let o=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(o){let x=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(T.StrictOctalLiteral,r),!this.state.strict){let g=x.indexOf("_");if(g>0)this.raise(T.ZeroDigitNumericSeparator,Xe(r,g))}a=o&&!/[89]/.test(x)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!a)++this.state.pos,this.readInt(10),s=!0,l=this.input.charCodeAt(this.state.pos);if((l===69||l===101)&&!a){if(l=this.input.charCodeAt(++this.state.pos),l===43||l===45)++this.state.pos;if(this.readInt(10)===null)this.raise(T.InvalidOrMissingExponent,r);s=!0,n=!0,l=this.input.charCodeAt(this.state.pos)}if(l===110){if(s||o)this.raise(T.InvalidBigIntLiteral,r);++this.state.pos,i=!0}if(l===109){if(this.expectPlugin("decimal",this.state.curPosition()),n||o)this.raise(T.InvalidDecimal,r);++this.state.pos;var u=!0}if(vt(this.codePointAtPos(this.state.pos)))throw this.raise(T.NumberIdentifier,this.state.curPosition());let p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i){this.finishToken(136,p);return}if(u){this.finishToken(137,p);return}let m=a?parseInt(p,8):parseFloat(p);this.finishToken(135,m)}readCodePoint(e){let{code:t,pos:r}=ru(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){let{str:t,pos:r,curLine:s,lineStart:i}=Dl(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=i,this.state.curLine=s,this.finishToken(134,t)}readTemplateContinuation(){if(!this.match(8))this.unexpected(null,8);this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:s,curLine:i,lineStart:n}=Dl("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);if(this.state.pos=s+1,this.state.lineStart=n,this.state.curLine=i,r)this.state.firstInvalidTemplateEscapePos=new Ut(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos));if(this.input.codePointAt(s)===96)this.finishToken(24,r?null:e+t+"`");else this.state.pos++,this.finishToken(25,r?null:e+t+"${")}recordStrictModeErrors(e,t){let r=t.index;if(this.state.strict&&!this.state.strictErrors.has(r))this.raise(e,t);else this.state.strictErrors.set(r,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="",r=this.state.pos,s=this.state.pos;if(e!==void 0)this.state.pos+=e<=65535?1:2;while(this.state.pos<this.length){let i=this.codePointAtPos(this.state.pos);if(lr(i))this.state.pos+=i<=65535?1:2;else if(i===92){this.state.containsEsc=!0,t+=this.input.slice(s,this.state.pos);let n=this.state.curPosition(),a=this.state.pos===r?vt:lr;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(T.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;let o=this.readCodePoint(!0);if(o!==null){if(!a(o))this.raise(T.EscapedCharNotAnIdentifier,n);t+=String.fromCodePoint(o)}s=this.state.pos}else break}return t+this.input.slice(s,this.state.pos)}readWord(e){let t=this.readWord1(e),r=Tn.get(t);if(r!==void 0)this.finishToken(r,zt(r));else this.finishToken(132,t)}checkKeywordEscapes(){let{type:e}=this.state;if(Pn(e)&&this.state.containsEsc)this.raise(T.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:zt(e)})}raise(e,t,r={}){let s=t instanceof Ut?t:t.loc.start,i=e(s,r);if(!(this.optionFlags&2048))throw i;if(!this.isLookahead)this.state.errors.push(i);return i}raiseOverwrite(e,t,r={}){let s=t instanceof Ut?t:t.loc.start,i=s.index,n=this.state.errors;for(let a=n.length-1;a>=0;a--){let o=n[a];if(o.loc.index===i)return n[a]=e(s,r);if(o.loc.index<i)break}return this.raise(e,t,r)}updateContext(e){}unexpected(e,t){throw this.raise(T.UnexpectedToken,e!=null?e:this.state.startLoc,{expected:t?zt(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(T.MissingPlugin,t!=null?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((t)=>this.hasPlugin(t)))throw this.raise(T.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,r,s)=>{this.raise(e,es(t,r,s))}}}class iu{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class nu{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new iu)}exit(){let e=this.stack.pop(),t=this.current();for(let[r,s]of Array.from(e.undefinedPrivateNames))if(t){if(!t.undefinedPrivateNames.has(r))t.undefinedPrivateNames.set(r,s)}else this.parser.raise(T.InvalidPrivateFieldResolution,s,{identifierName:r})}declarePrivateName(e,t,r){let{privateNames:s,loneAccessors:i,undefinedPrivateNames:n}=this.current(),a=s.has(e);if(t&3){let o=a&&i.get(e);if(o){let l=o&4,u=t&4,p=o&3,m=t&3;if(a=p===m||l!==u,!a)i.delete(e)}else if(!a)i.set(e,t)}if(a)this.parser.raise(T.PrivateNameRedeclaration,r,{identifierName:e});s.add(e),n.delete(e)}usePrivateName(e,t){let r;for(r of this.stack)if(r.privateNames.has(e))return;if(r)r.undefinedPrivateNames.set(e,t);else this.parser.raise(T.InvalidPrivateFieldResolution,t,{identifierName:e})}}class ls{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class In extends ls{constructor(e){super(e);this.declarationErrors=new Map}recordDeclarationError(e,t){let r=t.index;this.declarationErrors.set(r,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class au{constructor(e){this.parser=void 0,this.stack=[new ls],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let r=t.loc.start,{stack:s}=this,i=s.length-1,n=s[i];while(!n.isCertainlyParameterDeclaration()){if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(e,r);else return;n=s[--i]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){let{stack:r}=this,s=r[r.length-1],i=t.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(e,i);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(e,i);else return}recordAsyncArrowParametersError(e){let{stack:t}=this,r=t.length-1,s=t[r];while(s.canBeArrowParameterDeclaration()){if(s.type===2)s.recordDeclarationError(T.AwaitBindingIdentifier,e);s=t[--r]}}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];if(!t.canBeArrowParameterDeclaration())return;t.iterateErrors(([r,s])=>{this.parser.raise(r,s);let i=e.length-2,n=e[i];while(n.canBeArrowParameterDeclaration())n.clearDeclarationError(s.index),n=e[--i]})}}function JS(){return new ls(3)}function WS(){return new In(1)}function XS(){return new In(2)}function ou(){return new ls}class lu extends su{addExtra(e,t,r,s=!0){if(!e)return;let{extra:i}=e;if(i==null)i={},e.extra=i;if(s)i[t]=r;else Object.defineProperty(i,t,{enumerable:s,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){let r=this.input.charCodeAt(e+t.length);return!(lr(r)||(r&64512)===55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){if(this.isContextual(e))return this.next(),!0;return!1}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return _l(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return _l(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){if(e?this.isLineTerminator():this.eat(13))return;this.raise(T.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){if(!this.eat(e))this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let r={node:null};try{let s=e((i=null)=>{throw r.node=i,r});if(this.state.errors.length>t.errors.length){let i=this.state;return this.state=t,this.state.tokensLength=i.tokensLength,{node:s,error:i.errors[t.errors.length],thrown:!1,aborted:!1,failState:i}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let i=this.state;if(this.state=t,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:i};if(s===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:i};throw s}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:r,doubleProtoLoc:s,privateKeyLoc:i,optionalParametersLoc:n,voidPatternLoc:a}=e,o=!!r||!!s||!!n||!!i||!!a;if(!t)return o;if(r!=null)this.raise(T.InvalidCoverInitializedName,r);if(s!=null)this.raise(T.DuplicateProto,s);if(i!=null)this.raise(T.UnexpectedPrivateField,i);if(n!=null)this.unexpected(n);if(a!=null)this.raise(T.InvalidCoverDiscardElement,a)}isLiteralPropertyName(){return ql(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let t=this.state.labels;this.state.labels=[];let r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=e;let i=this.scope,n=this.getScopeHandler();this.scope=new n(this,e);let a=this.prodParam;this.prodParam=new Gl;let o=this.classScope;this.classScope=new nu(this);let l=this.expressionScope;return this.expressionScope=new au(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=s,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=l}}enterInitialScopes(){let e=0;if(this.inModule||this.optionFlags&1)e|=2;if(this.optionFlags&32)e|=1;let t=!this.inModule&&this.options.sourceType==="commonjs";if(t||this.optionFlags&2)e|=4;this.prodParam.enter(e);let r=t?514:1;if(this.optionFlags&4)r|=512;this.scope.enter(r)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;if(t!==null)this.expectPlugin("destructuringPrivate",t)}}class is{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class os{constructor(e,t,r){if(this.type="",this.start=t,this.end=0,this.loc=new ns(r),(e==null?void 0:e.optionFlags)&128)this.range=[t,0];if(e!=null&&e.filename)this.loc.filename=e.filename}}var dn=os.prototype;dn.__clone=function(){let e=new os(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,s=t.length;r<s;r++){let i=t[r];if(i!=="leadingComments"&&i!=="trailingComments"&&i!=="innerComments")e[i]=this[i]}return e};class uu extends lu{startNode(){let e=this.state.startLoc;return new os(this,e.index,e)}startNodeAt(e){return new os(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,r){if(e.type=t,e.end=r.index,e.loc.end=r,this.optionFlags&128)e.range[1]=r.index;if(this.optionFlags&4096)this.processComment(e);return e}resetStartLocation(e,t){if(e.start=t.index,e.loc.start=t,this.optionFlags&128)e.range[0]=t.index}resetEndLocation(e,t=this.state.lastTokEndLoc){if(e.end=t.index,e.loc.end=t,this.optionFlags&128)e.range[1]=t.index}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){let{type:t,start:r,end:s,loc:i,range:n,name:a}=e,o=Object.create(dn);if(o.type=t,o.start=r,o.end=s,o.loc=i,o.range=n,o.name=a,e.extra)o.extra=e.extra;return o}cloneStringLiteral(e){let{type:t,start:r,end:s,loc:i,range:n,extra:a}=e,o=Object.create(dn);return o.type=t,o.start=r,o.end=s,o.loc=i,o.range=n,o.extra=a,o.value=e.value,o}}var mn=(e)=>e.type==="ParenthesizedExpression"?mn(e.expression):e;class cu extends uu{toAssignable(e,t=!1){var r,s;let i=void 0;if(e.type==="ParenthesizedExpression"||(r=e.extra)!=null&&r.parenthesized)if(i=mn(e),t){if(i.type==="Identifier")this.expressionScope.recordArrowParameterBindingError(T.InvalidParenthesizedAssignment,e);else if(i.type!=="CallExpression"&&i.type!=="MemberExpression"&&!this.isOptionalMemberExpression(i))this.raise(T.InvalidParenthesizedAssignment,e)}else this.raise(T.InvalidParenthesizedAssignment,e);switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let a=0,o=e.properties.length,l=o-1;a<o;a++){var n;let u=e.properties[a],p=a===l;if(this.toAssignableObjectExpressionProp(u,p,t),p&&u.type==="RestElement"&&(n=e.extra)!=null&&n.trailingCommaLoc)this.raise(T.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:a,value:o}=e;if(this.isPrivateName(a))this.classScope.usePrivateName(this.getPrivateNameSV(a),a.loc.start);this.toAssignable(o,t);break}case"SpreadElement":throw Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,(s=e.extra)==null?void 0:s.trailingCommaLoc,t);break;case"AssignmentExpression":if(e.operator!=="=")this.raise(T.MissingEqInAssignment,e.left.loc.end);if(this.castNodeTo(e,"AssignmentPattern"),delete e.operator,e.left.type==="VoidPattern")this.raise(T.VoidPatternInitializer,e.left);this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(i,t);break}}toAssignableObjectExpressionProp(e,t,r){if(e.type==="ObjectMethod")this.raise(e.kind==="get"||e.kind==="set"?T.PatternHasAccessor:T.PatternHasMethod,e.key);else if(e.type==="SpreadElement"){this.castNodeTo(e,"RestElement");let s=e.argument;if(this.checkToRestConversion(s,!1),this.toAssignable(s,r),!t)this.raise(T.RestTrailingComma,e)}else this.toAssignable(e,r)}toAssignableList(e,t,r){let s=e.length-1;for(let i=0;i<=s;i++){let n=e[i];if(!n)continue;if(this.toAssignableListItem(e,i,r),n.type==="RestElement"){if(i<s)this.raise(T.RestTrailingComma,n);else if(t)this.raise(T.RestTrailingComma,t)}}}toAssignableListItem(e,t,r){let s=e[t];if(s.type==="SpreadElement"){this.castNodeTo(s,"RestElement");let i=s.argument;this.checkToRestConversion(i,!0),this.toAssignable(i,r)}else this.toAssignable(s,r)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let r=e.properties.length-1;return e.properties.every((s,i)=>s.type!=="ObjectMethod"&&(i===r||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((r)=>r===null||this.isAssignable(r));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let r of e)if((r==null?void 0:r.type)==="ArrayExpression")this.toReferencedListDeep(r.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let t=this.parseBindingAtom();if(t.type==="VoidPattern")this.raise(T.UnexpectedVoidPattern,t);return e.argument=t,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,r){let s=r&1,i=[],n=!0;while(!this.eat(e)){if(n)n=!1;else this.expect(12);if(s&&this.match(12))i.push(null);else if(this.eat(e))break;else if(this.match(21)){let a=this.parseRestBinding();if(this.hasPlugin("flow")||r&2)a=this.parseFunctionParamType(a);if(i.push(a),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let a=[];if(r&2){if(this.match(26)&&this.hasPlugin("decorators"))this.raise(T.UnsupportedParameterDecorator,this.state.startLoc);while(this.match(26))a.push(this.parseDecorator())}i.push(this.parseBindingElement(r,a))}}return i}parseBindingRestProperty(e){if(this.next(),this.hasPlugin("discardBinding")&&this.match(88))e.argument=this.parseVoidPattern(null),this.raise(T.UnexpectedVoidPattern,e.argument);else e.argument=this.parseIdentifier();return this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let r=this.startNode();if(e===139)this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),r.key=this.parsePrivateName();else this.parsePropertyName(r);return r.method=!1,this.parseObjPropValue(r,t,!1,!1,!0,!1)}parseBindingElement(e,t){let r=this.parseMaybeDefault();if(this.hasPlugin("flow")||e&2)this.parseFunctionParamType(r);if(t.length)r.decorators=t,this.resetStartLocationFromNode(r,t[0]);return this.parseMaybeDefault(r.loc.start,r)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(e!=null||(e=this.state.startLoc),t=t!=null?t:this.parseBindingAtom(),!this.eat(29))return t;let r=this.startNodeAt(e);if(t.type==="VoidPattern")this.raise(T.VoidPatternInitializer,t);return r.left=t,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(e,t,r,s){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!t&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,t,r=64,s=!1,i=!1,n=!1,a=!1){var o;let l=e.type;if(this.isObjectMethod(e))return;let u=this.isOptionalMemberExpression(e);if(u||l==="MemberExpression"){if(u){if(this.expectPlugin("optionalChainingAssign",e.loc.start),t.type!=="AssignmentExpression")this.raise(T.InvalidLhsOptionalChaining,e,{ancestor:t})}if(r!==64)this.raise(T.InvalidPropertyBindingPattern,e);return}if(l==="Identifier"){this.checkIdentifier(e,r,i);let{name:b}=e;if(s)if(s.has(b))this.raise(T.ParamDupe,e);else s.add(b);return}else if(l==="VoidPattern"&&t.type==="CatchClause")this.raise(T.VoidPatternCatchClauseParam,e);let p=mn(e);a||(a=p.type==="CallExpression"&&(p.callee.type==="Import"||p.callee.type==="Super"));let m=this.isValidLVal(l,a,!(n||(o=e.extra)!=null&&o.parenthesized)&&t.type==="AssignmentExpression",r);if(m===!0)return;if(m===!1){let b=r===64?T.InvalidLhs:T.InvalidLhsBinding;this.raise(b,e,{ancestor:t});return}let x,g;if(typeof m==="string")x=m,g=l==="ParenthesizedExpression";else[x,g]=m;let E=l==="ArrayPattern"||l==="ObjectPattern"?{type:l}:t,I=e[x];if(Array.isArray(I)){for(let b of I)if(b)this.checkLVal(b,E,r,s,i,g,!0)}else if(I)this.checkLVal(I,E,r,s,i,g,a)}checkIdentifier(e,t,r=!1){if(this.state.strict&&(r?Wl(e.name,this.inModule):Jl(e.name)))if(t===64)this.raise(T.StrictEvalArguments,e,{referenceName:e.name});else this.raise(T.StrictEvalArgumentsBinding,e,{bindingName:e.name});if(t&8192&&e.name==="let")this.raise(T.LetInLexicalBinding,e);if(!(t&64))this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(T.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){if(!this.match(12))return!1;return this.raise(this.lookaheadCharCode()===e?T.RestTrailingComma:T.ElementAfterRest,this.state.startLoc),!0}}var un=/in(?:stanceof)?|as|satisfies/y;function $S(e){if(e==null)throw Error(`Unexpected ${e} value.`);return e}function Ll(e){if(!e)throw Error("Assert fail")}var J=xt`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:(e)=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:(e)=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:(e)=>`'${e}' declarations are not allowed in ambient contexts.`});function HS(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function Ml(e){return e==="private"||e==="public"||e==="protected"}function zS(e){return e==="in"||e==="out"}var GS=(e)=>class extends e{constructor(...r){super(...r);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:J.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:J.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:J.InvalidModifierOnTypeParameter})}getScopeHandler(){return zl}tsIsIdentifier(){return Ee(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){if(this.next(),this.hasPrecedingLineBreak())return!1;return this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){if(this.match(106))return this.next(),this.tsTokenCanFollowModifier();return this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,s,i){if(!Ee(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let n=this.state.value;if(r.includes(n)){if(i&&this.match(106))return;if(s&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}return}tsParseModifiers({allowedModifiers:r,disallowedModifiers:s,stopOnStartOfClassStaticBlock:i,errorTemplate:n=J.InvalidModifierOnTypeMember},a){let o=(u,p,m,x)=>{if(p===m&&a[x])this.raise(J.InvalidModifiersOrder,u,{orderedModifiers:[m,x]})},l=(u,p,m,x)=>{if(a[m]&&p===x||a[x]&&p===m)this.raise(J.IncompatibleModifiers,u,{modifiers:[m,x]})};for(;;){let{startLoc:u}=this.state,p=this.tsParseModifier(r.concat(s!=null?s:[]),i,a.static);if(!p)break;if(Ml(p))if(a.accessibility)this.raise(J.DuplicateAccessibilityModifier,u,{modifier:p});else o(u,p,p,"override"),o(u,p,p,"static"),o(u,p,p,"readonly"),a.accessibility=p;else if(zS(p)){if(a[p])this.raise(J.DuplicateModifier,u,{modifier:p});a[p]=!0,o(u,p,"in","out")}else{if(hasOwnProperty.call(a,p))this.raise(J.DuplicateModifier,u,{modifier:p});else o(u,p,"static","readonly"),o(u,p,"static","override"),o(u,p,"override","readonly"),o(u,p,"abstract","override"),l(u,p,"declare","override"),l(u,p,"static","abstract");a[p]=!0}if(s!=null&&s.includes(p))this.raise(n,u,{modifier:p})}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,s){let i=[];while(!this.tsIsListTerminator(r))i.push(s());return i}tsParseDelimitedList(r,s,i){return $S(this.tsParseDelimitedListWorker(r,s,!0,i))}tsParseDelimitedListWorker(r,s,i,n){let a=[],o=-1;for(;;){if(this.tsIsListTerminator(r))break;o=-1;let l=s();if(l==null)return;if(a.push(l),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;if(i)this.expect(12);return}if(n)n.value=o;return a}tsParseBracketedList(r,s,i,n,a){if(!n)if(i)this.expect(0);else this.expect(47);let o=this.tsParseDelimitedList(r,s,a);if(i)this.expect(3);else this.expect(48);return o}tsParseImportType(){let r=this.startNode();if(this.expect(83),this.expect(10),!this.match(134))this.raise(J.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom();else r.argument=this.parseStringLiteral(this.state.value);if(this.eat(12))r.options=this.tsParseImportTypeOptions();else r.options=null;if(this.expect(11),this.eat(16))r.qualifier=this.tsParseEntityName(3);if(this.match(47))r.typeParameters=this.tsParseTypeArguments();return this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let s=this.startNode();if(this.isContextual(76))s.method=!1,s.key=this.parseIdentifier(!0),s.computed=!1,s.shorthand=!1;else this.unexpected(null,76);return this.expect(14),s.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(s)],this.eat(12),this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),s=[];this.expect(5);while(!this.match(8)){let i=this.state.type;if(Ee(i)||i===134)s.push(super.parsePropertyDefinition(null));else this.unexpected();this.eat(12)}return r.properties=s,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let s;if(r&1&&this.match(78))if(r&2)s=this.parseIdentifier(!0);else{let i=this.startNode();this.next(),s=this.finishNode(i,"ThisExpression")}else s=this.parseIdentifier(!!(r&1));while(this.eat(16)){let i=this.startNodeAtNode(s);i.left=s,i.right=this.parseIdentifier(!!(r&1)),s=this.finishNode(i,"TSQualifiedName")}return s}tsParseTypeReference(){let r=this.startNode();if(r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47))r.typeParameters=this.tsParseTypeArguments();return this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let s=this.startNodeAtNode(r);return s.parameterName=r,s.typeAnnotation=this.tsParseTypeAnnotation(!1),s.asserts=!1,this.finishNode(s,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();if(this.expect(87),this.match(83))r.exprName=this.tsParseImportType();else r.exprName=this.tsParseEntityName(3);if(!this.hasPrecedingLineBreak()&&this.match(47))r.typeParameters=this.tsParseTypeArguments();return this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let s=this.startNode();return r(s),s.name=this.tsParseTypeParameterName(),s.constraint=this.tsEatThenParseType(81),s.default=this.tsEatThenParseType(29),this.finishNode(s,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let s=this.startNode();if(this.match(47)||this.match(143))this.next();else this.unexpected();let i={value:-1};if(s.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,i),s.params.length===0)this.raise(J.EmptyTypeParameters,s);if(i.value!==-1)this.addExtra(s,"trailingComma",i.value);return this.finishNode(s,"TSTypeParameterDeclaration")}tsFillSignature(r,s){let i=r===19,n="parameters",a="typeAnnotation";if(s.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),s.parameters=this.tsParseBindingListForSignature(),i)s.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(r);else if(this.match(r))s.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(r)}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let s of r){let{type:i}=s;if(i==="AssignmentPattern"||i==="TSParameterProperty")this.raise(J.UnsupportedSignatureParameterKind,s,{type:i})}return r}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator())this.expect(13)}tsParseSignatureMember(r,s){return this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon(),this.finishNode(s,r)}tsIsUnambiguouslyIndexSignature(){if(this.next(),Ee(this.state.type))return this.next(),this.match(14);return!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let s=this.parseIdentifier();s.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(s),this.expect(3),r.parameters=[s];let i=this.tsTryParseTypeAnnotation();if(i)r.typeAnnotation=i;return this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,s){if(this.eat(17))r.optional=!0;if(this.match(10)||this.match(47)){if(s)this.raise(J.ReadonlyForMethodSignature,r);let i=r;if(i.kind&&this.match(47))this.raise(J.AccessorCannotHaveTypeParameters,this.state.curPosition());this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon();let n="parameters",a="typeAnnotation";if(i.kind==="get"){if(i[n].length>0){if(this.raise(T.BadGetterArity,this.state.curPosition()),this.isThisParam(i[n][0]))this.raise(J.AccessorCannotDeclareThisParameter,this.state.curPosition())}}else if(i.kind==="set"){if(i[n].length!==1)this.raise(T.BadSetterArity,this.state.curPosition());else{let o=i[n][0];if(this.isThisParam(o))this.raise(J.AccessorCannotDeclareThisParameter,this.state.curPosition());if(o.type==="Identifier"&&o.optional)this.raise(J.SetAccessorCannotHaveOptionalParameter,this.state.curPosition());if(o.type==="RestElement")this.raise(J.SetAccessorCannotHaveRestParameter,this.state.curPosition())}if(i[a])this.raise(J.SetAccessorCannotHaveReturnType,i[a])}else i.kind="method";return this.finishNode(i,"TSMethodSignature")}else{let i=r;if(s)i.readonly=!0;let n=this.tsTryParseTypeAnnotation();if(n)i.typeAnnotation=n;return this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let i=this.startNode();if(this.next(),this.match(10)||this.match(47))return this.tsParseSignatureMember("TSConstructSignatureDeclaration",r);else return r.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(r,!1)}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let s=this.tsTryParseIndexSignature(r);if(s)return s;if(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()){if(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47))this.unexpected(null,10)}return this.tsParsePropertyOrMethodSignature(r,!!r.readonly)}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){if(this.next(),this.eat(53))return this.isContextual(122);if(this.isContextual(122))this.next();if(!this.match(0))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(58)}tsParseMappedType(){let r=this.startNode();if(this.expect(5),this.match(53))r.readonly=this.state.value,this.next(),this.expectContextual(122);else if(this.eatContextual(122))r.readonly=!0;this.expect(0);let s=this.startNode();if(s.name=this.tsParseTypeParameterName(),s.constraint=this.tsExpectThenParseType(58),r.typeParameter=this.finishNode(s,"TSTypeParameter"),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53))r.optional=this.state.value,this.next(),this.expect(17);else if(this.eat(17))r.optional=!0;return r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let s=!1;return r.elementTypes.forEach((i)=>{let{type:n}=i;if(s&&n!=="TSRestType"&&n!=="TSOptionalType"&&!(n==="TSNamedTupleMember"&&i.optional))this.raise(J.OptionalTypeBeforeRequired,i);s||(s=n==="TSNamedTupleMember"&&i.optional||n==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,s=this.eat(21),{startLoc:i}=this.state,n,a,o,l,p=St(this.state.type)?this.lookaheadCharCode():null;if(p===58)n=!0,o=!1,a=this.parseIdentifier(!0),this.expect(14),l=this.tsParseType();else if(p===63){o=!0;let m=this.state.value,x=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58)n=!0,a=this.createIdentifier(this.startNodeAt(i),m),this.expect(17),this.expect(14),l=this.tsParseType();else n=!1,l=x,this.expect(17)}else l=this.tsParseType(),o=this.eat(17),n=this.eat(14);if(n){let m;if(a){if(m=this.startNodeAt(i),m.optional=o,m.label=a,m.elementType=l,this.eat(17))m.optional=!0,this.raise(J.TupleOptionalAfterType,this.state.lastTokStartLoc)}else m=this.startNodeAt(i),m.optional=o,this.raise(J.InvalidTupleMemberLabel,l),m.label=l,m.elementType=this.tsParseType();l=this.finishNode(m,"TSNamedTupleMember")}else if(o){let m=this.startNodeAt(i);m.typeAnnotation=l,l=this.finishNode(m,"TSOptionalType")}if(s){let m=this.startNodeAt(r);m.typeAnnotation=l,l=this.finishNode(m,"TSRestType")}return l}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,s){let i=this.startNode();if(r==="TSConstructorType"){if(i.abstract=!!s,s)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(r);else return r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),s=this.lookahead();if(s.type!==135&&s.type!==136)this.unexpected();return r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(Ee(r)||r===88||r===84){let s=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":HS(this.state.value);if(s!==void 0&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,s)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:r}=this.state,s=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0))if(this.match(3)){let i=this.startNodeAt(r);i.elementType=s,this.expect(3),s=this.finishNode(i,"TSArrayType")}else{let i=this.startNodeAt(r);i.objectType=s,i.indexType=this.tsParseType(),this.expect(3),s=this.finishNode(i,"TSIndexedAccessType")}return s}tsParseTypeOperator(){let r=this.startNode(),s=this.state.value;if(this.next(),r.operator=s,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),s==="readonly")this.tsCheckTypeAnnotationForReadOnly(r);return this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(J.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(s,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return TS(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,s,i){let n=this.startNode(),a=this.eat(i),o=[];do o.push(s());while(this.eat(i));if(o.length===1&&!a)return o[0];return n.types=o,this.finishNode(n,r)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){if(this.match(47))return!0;return this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Ee(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,s=r.length;try{return this.parseObjectLike(8,!0),r.length===s}catch(i){return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,s=r.length;try{return super.parseBindingList(3,93,1),r.length===s}catch(i){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)){if(this.next(),this.match(19))return!0}}return!1}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let s=this.startNode();this.expect(r);let i=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();if(l.type==="TSThisType")i.parameterName=l,i.asserts=!0,i.typeAnnotation=null,l=this.finishNode(i,"TSTypePredicate");else this.resetStartLocationFromNode(l,i),l.asserts=!0;return s.typeAnnotation=l,this.finishNode(s,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a){if(!n)return this.tsParseTypeAnnotation(!1,s);return i.parameterName=this.parseIdentifier(),i.asserts=n,i.typeAnnotation=null,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")}let o=this.tsParseTypeAnnotation(!1);return i.parameterName=a,i.typeAnnotation=o,i.asserts=n,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;if(this.next(),!Ee(this.state.type)&&!this.match(78))return!1;if(r)this.raise(T.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"});return!0}tsParseTypeAnnotation(r=!0,s=this.startNode()){return this.tsInType(()=>{if(r)this.expect(14);s.typeAnnotation=this.tsParseType()}),this.finishNode(s,"TSTypeAnnotation")}tsParseType(){Ll(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let s=this.startNodeAtNode(r);return s.checkType=r,s.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),s.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),s.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(s,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(77))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){if(this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(J.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let s=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{let n=this.startNode();if(n.expression=this.tsParseEntityName(3),this.match(47))n.typeParameters=this.tsParseTypeArguments();return this.finishNode(n,"TSExpressionWithTypeArguments")});if(!i.length)this.raise(J.EmptyHeritageClauseType,s,{token:r});return i}tsParseInterfaceDeclaration(r,s={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual(129),s.declare)r.declare=!0;if(Ee(this.state.type))r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130);else r.id=null,this.raise(J.MissingInterfaceName,this.state.startLoc);if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81))r.extends=this.tsParseHeritageClause("extends");let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==be.brace){let s=this.state.context;this.state.context=[s[0]];try{return r()}finally{this.state.context=s}}else return r()}tsInType(r){let s=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=s}}tsInDisallowConditionalTypesContext(r){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=s}}tsInAllowConditionalTypesContext(r){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=s}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();if(r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29))r.initializer=super.parseMaybeAssignAllowIn();return this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,s={}){if(s.const)r.const=!0;if(s.declare)r.declare=!0;return this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,s=!1){if(r.id=this.parseIdentifier(),!s)this.checkIdentifier(r.id,1024);if(this.eat(16)){let i=this.startNode();this.tsParseModuleOrNamespaceDeclaration(i,!0),r.body=i}else this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){if(this.isContextual(112))r.kind="global",r.global=!0,r.id=this.parseIdentifier();else if(this.match(134))r.kind="module",r.id=super.parseStringLiteral(this.state.value);else this.unexpected();if(this.match(5))this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();else this.semicolon();return this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,s,i){r.isExport=i||!1,r.id=s||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let n=this.tsParseModuleReference();if(r.importKind==="type"&&n.type!=="TSExternalModuleReference")this.raise(J.ImportAliasHasImportType,n);return r.moduleReference=n,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();if(this.expectContextual(119),this.expect(10),!this.match(134))this.unexpected();return r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let s=this.state.clone(),i=r();return this.state=s,i}tsTryParseAndCatch(r){let s=this.tryParse((i)=>r()||i());if(s.aborted||!s.node)return;if(s.error)this.state=s.failState;return s.node}tsTryParse(r){let s=this.state.clone(),i=r();if(i!==void 0&&i!==!1)return i;this.state=s}tsTryParseDeclare(r){if(this.isLineTerminator())return;let s=this.state.type;return this.tsInAmbientContext(()=>{switch(s){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum"))return r.declare=!0,this.parseVarStatement(r,this.state.value,!0);return this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0});case 107:if(this.isUsing())return this.raise(J.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(J.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let i=this.tsParseInterfaceDeclaration(r,{declare:!0});if(i)return i}default:if(Ee(s))return this.tsParseDeclaration(r,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(r,s,i,n){switch(s){case 124:if(this.tsCheckLineTerminator(i)&&(this.match(80)||Ee(this.state.type)))return this.tsParseAbstractDeclaration(r,n);break;case 127:if(this.tsCheckLineTerminator(i)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);else if(Ee(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(i)&&Ee(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(i)&&Ee(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){if(r){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let i=this.tsTryParseAndCatch(()=>{let n=this.startNodeAt(r);return n.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),n});if(this.state.maybeInArrowParameters=s,!i)return;return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();if(r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0)this.raise(J.EmptyTypeArguments,r);else if(!this.state.inType&&this.curContext()===be.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return xS(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;return super.isExportDefaultSpecifier()}parseBindingElement(r,s){let i=s.length?s[0].loc.start:this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let{accessibility:a,override:o,readonly:l}=n;if(!(r&4)&&(a||l||o))this.raise(J.UnexpectedParameterModifier,i);let u=this.parseMaybeDefault();if(r&2)this.parseFunctionParamType(u);let p=this.parseMaybeDefault(u.loc.start,u);if(a||l||o){let m=this.startNodeAt(i);if(s.length)m.decorators=s;if(a)m.accessibility=a;if(l)m.readonly=l;if(o)m.override=o;if(p.type!=="Identifier"&&p.type!=="AssignmentPattern")this.raise(J.UnsupportedParameterPropertyKind,m);return m.parameter=p,this.finishNode(m,"TSParameterProperty")}if(s.length)u.decorators=s;return p}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let s of r.params)if(s.type!=="Identifier"&&s.optional&&!this.state.isAmbientContext)this.raise(J.PatternIsOptional,s)}setArrowFunctionParameters(r,s,i){super.setArrowFunctionParameters(r,s,i),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,s,i=!1){if(this.match(14))r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14);let n=s==="FunctionDeclaration"?"TSDeclareFunction":s==="ClassMethod"||s==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(n&&!this.match(5)&&this.isLineTerminator())return this.finishNode(r,n);if(n==="TSDeclareFunction"&&this.state.isAmbientContext){if(this.raise(J.DeclareFunctionHasImplementation,r),r.declare)return super.parseFunctionBodyAndFinish(r,n,i)}return this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,s,i)}registerFunctionStatementId(r){if(!r.body&&r.id)this.checkIdentifier(r.id,1024);else super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach((s)=>{if((s==null?void 0:s.type)==="TSTypeCastExpression")this.raise(J.UnexpectedTypeAnnotation,s.typeAnnotation)})}toReferencedList(r,s){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,s,i){let n=super.parseArrayLike(r,s,i);if(n.type==="ArrayExpression")this.tsCheckForInvalidTypeCasts(n.elements);return n}parseSubscript(r,s,i,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(s);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return n.stop=!0,r;n.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(r)){let x=this.tsTryParseGenericAsyncArrowFunction(s);if(x)return n.stop=!0,x}let u=this.tsParseTypeArgumentsInExpression();if(!u)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if($s(this.state.type)){let x=super.parseTaggedTemplateExpression(r,s,n);return x.typeParameters=u,x}if(!i&&this.eat(10)){let x=this.startNodeAt(s);if(x.callee=r,x.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(x.arguments),x.typeParameters=u,n.optionalChainMember)x.optional=a;return this.finishCallExpression(x,n.optionalChainMember)}let p=this.state.type;if(p===48||p===52||p!==10&&p!==93&&p!==120&&ts(p)&&!this.hasPrecedingLineBreak())return;let m=this.startNodeAt(s);return m.expression=r,m.typeParameters=u,this.finishNode(m,"TSInstantiationExpression")});if(o)this.unexpected(o,10);if(l){if(l.type==="TSInstantiationExpression"){if(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)this.raise(J.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc);if(!this.match(16)&&!this.match(18))l.expression=super.stopParseSubscript(r,n)}return l}}return super.parseSubscript(r,s,i,n)}parseNewCallee(r){var s;super.parseNewCallee(r);let{callee:i}=r;if(i.type==="TSInstantiationExpression"&&!((s=i.extra)!=null&&s.parenthesized))r.typeParameters=i.typeParameters,r.callee=i.expression}parseExprOp(r,s,i){let n;if(Ws(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){let a=this.startNodeAt(s);return a.expression=r,a.typeAnnotation=this.tsInType(()=>{if(this.next(),this.match(75)){if(n)this.raise(T.UnexpectedKeyword,this.state.startLoc,{keyword:"const"});return this.tsParseTypeReference()}return this.tsParseType()}),this.finishNode(a,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,s,i)}return super.parseExprOp(r,s,i)}checkReservedWord(r,s,i,n){if(!this.state.isAmbientContext)super.checkReservedWord(r,s,i,n)}checkImportReflection(r){if(super.checkImportReflection(r),r.module&&r.importKind!=="value")this.raise(J.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let s=this.lookaheadCharCode();return r?s===123||s===42:s!==61}return!r&&this.isContextual(87)}applyImportPhase(r,s,i,n){if(super.applyImportPhase(r,s,i,n),s)r.exportKind=i==="type"?"type":"value";else r.importKind=i==="type"||i==="typeof"?i:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let s;if(Ee(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);else if(this.isContextual(130)){let i=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,i);else s=super.parseImportSpecifiersAndAfter(r,i)}else s=super.parseImport(r);if(s.importKind==="type"&&s.specifiers.length>1&&s.specifiers[0].type==="ImportDefaultSpecifier")this.raise(J.TypeImportCannotSpecifyDefaultAndNamed,s);return s}parseExport(r,s){if(this.match(83)){let i=r;this.next();let n=null;if(this.isContextual(130)&&this.isPotentialImportPhase(!1))n=this.parseMaybeImportPhase(i,!1);else i.importKind="value";return this.tsParseImportEqualsDeclaration(i,n,!0)}else if(this.eat(29)){let i=r;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){let i=r;return this.expectContextual(128),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(r,s)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,s,i=!1){let{isAmbientContext:n}=this.state,a=super.parseVarStatement(r,s,i||n);if(!n)return a;if(!r.declare&&(s==="using"||s==="await using"))return this.raiseOverwrite(J.UsingDeclarationInAmbientContext,r,s),a;for(let{id:o,init:l}of a.declarations){if(!l)continue;if(s==="var"||s==="let"||!!o.typeAnnotation)this.raise(J.InitializerNotAllowedInAmbientContext,l);else if(!ZS(l,this.hasPlugin("estree")))this.raise(J.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,l)}return a}parseStatementContent(r,s){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let i=this.state.type,n=this.startNode();this.next();let a=i===125?this.tsTryParseDeclare(n):this.tsParseAbstractDeclaration(n,s);if(a){if(i===125)a.declare=!0;return a}else return n.expression=this.createIdentifier(this.startNodeAt(n.loc.start),i===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(n,"ExpressionStatement")}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let n=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(n)}break}case 129:{let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let i=this.startNode();return this.next(),this.tsParseDeclaration(i,127,!1,s)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let i=this.startNode();return this.next(),this.tsParseDeclaration(i,128,!1,s)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let i=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(i)}break}}return super.parseStatementContent(r,s)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,s){return s.some((i)=>{if(Ml(i))return r.accessibility===i;return!!r[i]})}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,s,i){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:J.InvalidModifierOnTypeParameterPositions},s);let a=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(s,n))this.raise(J.StaticBlockCannotHaveModifier,this.state.curPosition());super.parseClassStaticBlock(r,s)}else this.parseClassMemberWithIsStatic(r,s,i,!!s.static)};if(s.declare)this.tsInAmbientContext(a);else a()}parseClassMemberWithIsStatic(r,s,i,n){let a=this.tsTryParseIndexSignature(s);if(a){if(r.body.push(a),s.abstract)this.raise(J.IndexSignatureHasAbstract,s);if(s.accessibility)this.raise(J.IndexSignatureHasAccessibility,s,{modifier:s.accessibility});if(s.declare)this.raise(J.IndexSignatureHasDeclare,s);if(s.override)this.raise(J.IndexSignatureHasOverride,s);return}if(!this.state.inAbstractClass&&s.abstract)this.raise(J.NonAbstractClassHasAbstractMethod,s);if(s.override){if(!i.hadSuperClass)this.raise(J.OverrideNotInSubClass,s)}super.parseClassMemberWithIsStatic(r,s,i,n)}parsePostMemberNameModifiers(r){if(this.eat(17))r.optional=!0;if(r.readonly&&this.match(10))this.raise(J.ClassMethodHasReadonly,r);if(r.declare&&this.match(10))this.raise(J.ClassMethodHasDeclare,r)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return!0;return super.shouldParseExportDeclaration()}parseConditional(r,s,i){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let n=this.lookaheadCharCode();if(n===44||n===61||n===58||n===41)return this.setOptionalParametersError(i),r}return super.parseConditional(r,s,i)}parseParenItem(r,s){let i=super.parseParenItem(r,s);if(this.eat(17))i.optional=!0,this.resetEndLocation(r);if(this.match(14)){let n=this.startNodeAt(s);return n.expression=r,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let s=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(J.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=Ee(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);if(!a)return null;if(a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||i)r.exportKind="type";if(i&&a.type!=="TSImportEqualsDeclaration")this.resetStartLocation(a,s),a.declare=!0;return a}parseClassId(r,s,i,n){if((!s||i)&&this.isContextual(113))return;super.parseClassId(r,s,i,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(a)r.typeParameters=a}parseClassPropertyAnnotation(r){if(!r.optional){if(this.eat(35))r.definite=!0;else if(this.eat(17))r.optional=!0}let s=this.tsTryParseTypeAnnotation();if(s)r.typeAnnotation=s}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29))this.raise(J.DeclareClassFieldHasInitializer,this.state.startLoc);if(r.abstract&&this.match(29)){let{key:s}=r;this.raise(J.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:s.type==="Identifier"&&!r.computed?s.name:`[${this.input.slice(this.offsetToSourcePos(s.start),this.offsetToSourcePos(s.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){if(r.abstract)this.raise(J.PrivateElementHasAbstract,r);if(r.accessibility)this.raise(J.PrivateElementHasAccessibility,r,{modifier:r.accessibility});return this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){if(this.parseClassPropertyAnnotation(r),r.optional)this.raise(J.AccessorCannotBeOptional,r);return super.parseClassAccessorProperty(r)}pushClassMethod(r,s,i,n,a,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(l&&a)this.raise(J.ConstructorHasTypeParameters,l);let{declare:u=!1,kind:p}=s;if(u&&(p==="get"||p==="set"))this.raise(J.DeclareAccessor,s,{kind:p});if(l)s.typeParameters=l;super.pushClassMethod(r,s,i,n,a,o)}pushClassPrivateMethod(r,s,i,n){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(a)s.typeParameters=a;super.pushClassPrivateMethod(r,s,i,n)}declareClassPrivateMethodInScope(r,s){if(r.type==="TSDeclareMethod")return;if(r.type==="MethodDefinition"&&r.value.body==null)return;super.declareClassPrivateMethodInScope(r,s)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass){if(r.superClass.type==="TSInstantiationExpression"){let s=r.superClass,i=s.expression;this.takeSurroundingComments(i,i.start,i.end);let n=s.typeParameters;this.takeSurroundingComments(n,n.start,n.end),r.superClass=i,r.superTypeParameters=n}else if(this.match(47)||this.match(51))r.superTypeParameters=this.tsParseTypeArgumentsInExpression()}if(this.eatContextual(113))r.implements=this.tsParseHeritageClause("implements")}parseObjPropValue(r,s,i,n,a,o,l){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(u)r.typeParameters=u;return super.parseObjPropValue(r,s,i,n,a,o,l)}parseFunctionParams(r,s){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(i)r.typeParameters=i;super.parseFunctionParams(r,s)}parseVarId(r,s){if(super.parseVarId(r,s),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35))r.definite=!0;let i=this.tsTryParseTypeAnnotation();if(i)r.id.typeAnnotation=i,this.resetEndLocation(r.id)}parseAsyncArrowFromCallExpression(r,s){if(this.match(14))r.returnType=this.tsParseTypeAnnotation();return super.parseAsyncArrowFromCallExpression(r,s)}parseMaybeAssign(r,s){var i,n,a,o,l;let u,p,m;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(u=this.state.clone(),p=this.tryParse(()=>super.parseMaybeAssign(r,s),u),!p.error)return p.node;let{context:E}=this.state,I=E[E.length-1];if(I===be.j_oTag||I===be.j_expr)E.pop()}if(!((i=p)!=null&&i.error)&&!this.match(47))return super.parseMaybeAssign(r,s);if(!u||u===this.state)u=this.state.clone();let x,g=this.tryParse((E)=>{var I,b;x=this.tsParseTypeParameters(this.tsParseConstModifier);let C=super.parseMaybeAssign(r,s);if(C.type!=="ArrowFunctionExpression"||(I=C.extra)!=null&&I.parenthesized)E();if(((b=x)==null?void 0:b.params.length)!==0)this.resetStartLocationFromNode(C,x);return C.typeParameters=x,C},u);if(!g.error&&!g.aborted){if(x)this.reportReservedArrowTypeParam(x);return g.node}if(!p){if(Ll(!this.hasPlugin("jsx")),m=this.tryParse(()=>super.parseMaybeAssign(r,s),u),!m.error)return m.node}if((n=p)!=null&&n.node)return this.state=p.failState,p.node;if(g.node){if(this.state=g.failState,x)this.reportReservedArrowTypeParam(x);return g.node}if((a=m)!=null&&a.node)return this.state=m.failState,m.node;throw((o=p)==null?void 0:o.error)||g.error||((l=m)==null?void 0:l.error)}reportReservedArrowTypeParam(r){var s;if(r.params.length===1&&!r.params[0].constraint&&!((s=r.extra)!=null&&s.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(J.ReservedArrowTypeParam,r)}parseMaybeUnary(r,s){if(!this.hasPlugin("jsx")&&this.match(47))return this.tsParseTypeAssertion();return super.parseMaybeUnary(r,s)}parseArrow(r){if(this.match(14)){let s=this.tryParse((i)=>{let n=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))i();return n});if(s.aborted)return;if(!s.thrown){if(s.error)this.state=s.failState;r.returnType=s.node}}return super.parseArrow(r)}parseFunctionParamType(r){if(this.eat(17))r.optional=!0;let s=this.tsTryParseTypeAnnotation();if(s)r.typeAnnotation=s;return this.resetEndLocation(r),r}isAssignable(r,s){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,s);case"TSParameterProperty":return!0;default:return super.isAssignable(r,s)}}toAssignable(r,s=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,s);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(s)this.expressionScope.recordArrowParameterBindingError(J.UnexpectedTypeCastInParameter,r);else this.raise(J.UnexpectedTypeCastInParameter,r);this.toAssignable(r.expression,s);break;case"AssignmentExpression":if(!s&&r.left.type==="TSTypeCastExpression")r.left=this.typeCastToParameter(r.left);default:super.toAssignable(r,s)}}toAssignableParenthesizedExpression(r,s){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,s);break;default:super.toAssignable(r,s)}}checkToRestConversion(r,s){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,s)}}isValidLVal(r,s,i,n){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(n!==64||!i)&&["expression",!0];default:return super.isValidLVal(r,s,i,n)}}parseBindingAtom(){if(this.state.type===78)return this.parseIdentifier(!0);return super.parseBindingAtom()}parseMaybeDecoratorArguments(r,s){if(this.match(47)||this.match(51)){let i=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let n=super.parseMaybeDecoratorArguments(r,s);return n.typeParameters=i,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,s)}checkCommaAfterRest(r){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r)return this.next(),!1;return super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,s){let i=super.parseMaybeDefault(r,s);if(i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start)this.raise(J.TypeAnnotationAfterAssign,i.typeAnnotation);return i}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){let{type:r}=this.state;if(r===47)this.state.pos-=1,this.readToken_lt();else if(r===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:r}=this.state;if(r===51)return this.state.pos-=2,this.finishOp(47,1),47;return r}toAssignableListItem(r,s,i){let n=r[s];if(n.type==="TSTypeCastExpression")r[s]=this.typeCastToParameter(n);super.toAssignableListItem(r,s,i)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){if(this.match(14))return r.every((s)=>this.isAssignable(s,!0));return super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let s=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(s)r.typeParameters=s}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let s=super.getGetterSetterExpectedParamCount(r),n=this.getObjectOrClassMethodParams(r)[0];return n&&this.isThisParam(n)?s+1:s}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),s=this.tsTryParseTypeAnnotation();if(s)r.typeAnnotation=s,this.resetEndLocation(r);return r}tsInAmbientContext(r){let{isAmbientContext:s,strict:i}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=s,this.state.strict=i}}parseClass(r,s,i){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,s,i)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(r,s){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(s,this.parseClass(r,!0,!1));else if(this.isContextual(129))if(!this.hasFollowingLineBreak())return r.abstract=!0,this.raise(J.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r);else return null;throw this.unexpected(null,80)}parseMethod(r,s,i,n,a,o,l){let u=super.parseMethod(r,s,i,n,a,o,l);if(u.abstract||u.type==="TSAbstractMethodDefinition"){if((this.hasPlugin("estree")?u.value:u).body){let{key:x}=u;this.raise(J.AbstractMethodHasImplementation,u,{methodName:x.type==="Identifier"&&!u.computed?x.name:`[${this.input.slice(this.offsetToSourcePos(x.start),this.offsetToSourcePos(x.end))}]`})}}return u}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.getExpression()}parseExportSpecifier(r,s,i,n){if(!s&&n)return this.parseTypeOnlyImportExportSpecifier(r,!1,i),this.finishNode(r,"ExportSpecifier");return r.exportKind="value",super.parseExportSpecifier(r,s,i,n)}parseImportSpecifier(r,s,i,n,a){if(!s&&n)return this.parseTypeOnlyImportExportSpecifier(r,!0,i),this.finishNode(r,"ImportSpecifier");return r.importKind="value",super.parseImportSpecifier(r,s,i,n,i?4098:4096)}parseTypeOnlyImportExportSpecifier(r,s,i){let n=s?"imported":"local",a=s?"local":"exported",o=r[n],l,u=!1,p=!0,m=o.loc.start;if(this.isContextual(93)){let g=this.parseIdentifier();if(this.isContextual(93)){let E=this.parseIdentifier();if(St(this.state.type))u=!0,o=g,l=s?this.parseIdentifier():this.parseModuleExportName(),p=!1;else l=E,p=!1}else if(St(this.state.type))p=!1,l=s?this.parseIdentifier():this.parseModuleExportName();else u=!0,o=g}else if(St(this.state.type))if(u=!0,s){if(o=this.parseIdentifier(!0),!this.isContextual(93))this.checkReservedWord(o.name,o.loc.start,!0,!0)}else o=this.parseModuleExportName();if(u&&i)this.raise(s?J.TypeModifierIsUsedInTypeImports:J.TypeModifierIsUsedInTypeExports,m);r[n]=o,r[a]=l;let x=s?"importKind":"exportKind";if(r[x]=u?"type":"value",p&&this.eatContextual(93))r[a]=s?this.parseIdentifier():this.parseModuleExportName();if(!r[a])r[a]=this.cloneIdentifier(r[n]);if(s)this.checkIdentifier(r[a],u?4098:4096)}fillOptionalPropertiesForTSESLint(r){var s,i,n,a,o,l,u,p,m,x,g,E,I,b,C,N,z,j,V,ie,ge,ke,Fe,Je,st,at,it,dt,Ve,kt,Wt,Ze,Xt,Dt,B,M,w,K,te,se,me,Se,_e,Ae,fe,Pe,ve,oe,ye;switch(r.type){case"ImportDeclaration":(s=r.phase)!=null||(r.phase=null);return;case"ExpressionStatement":(i=r.directive)!=null||(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(n=r.decorators)!=null||(r.decorators=[]),(a=r.optional)!=null||(r.optional=!1),(o=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);return;case"TSParameterProperty":(l=r.accessibility)!=null||(r.accessibility=void 0),(u=r.decorators)!=null||(r.decorators=[]),(p=r.override)!=null||(r.override=!1),(m=r.readonly)!=null||(r.readonly=!1),(x=r.static)!=null||(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(g=r.declare)!=null||(r.declare=!1),(E=r.returnType)!=null||(r.returnType=void 0),(I=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"Property":(b=r.optional)!=null||(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(C=r.optional)!=null||(r.optional=!1);case"TSIndexSignature":(N=r.accessibility)!=null||(r.accessibility=void 0),(z=r.readonly)!=null||(r.readonly=!1),(j=r.static)!=null||(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(V=r.declare)!=null||(r.declare=!1),(ie=r.definite)!=null||(r.definite=!1),(ge=r.readonly)!=null||(r.readonly=!1),(ke=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(Fe=r.accessibility)!=null||(r.accessibility=void 0),(Je=r.decorators)!=null||(r.decorators=[]),(st=r.override)!=null||(r.override=!1),(at=r.optional)!=null||(r.optional=!1);return;case"ClassExpression":(it=r.id)!=null||(r.id=null);case"ClassDeclaration":(dt=r.abstract)!=null||(r.abstract=!1),(Ve=r.declare)!=null||(r.declare=!1),(kt=r.decorators)!=null||(r.decorators=[]),(Wt=r.implements)!=null||(r.implements=[]),(Ze=r.superTypeArguments)!=null||(r.superTypeArguments=void 0),(Xt=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(Dt=r.declare)!=null||(r.declare=!1);return;case"VariableDeclarator":(B=r.definite)!=null||(r.definite=!1);return;case"TSEnumDeclaration":(M=r.const)!=null||(r.const=!1),(w=r.declare)!=null||(r.declare=!1);return;case"TSEnumMember":(K=r.computed)!=null||(r.computed=!1);return;case"TSImportType":(te=r.qualifier)!=null||(r.qualifier=null),(se=r.options)!=null||(r.options=null);return;case"TSInterfaceDeclaration":(me=r.declare)!=null||(r.declare=!1),(Se=r.extends)!=null||(r.extends=[]);return;case"TSMappedType":(_e=r.optional)!=null||(r.optional=!1),(Ae=r.readonly)!=null||(r.readonly=void 0);return;case"TSModuleDeclaration":(fe=r.declare)!=null||(r.declare=!1),(Pe=r.global)!=null||(r.global=r.kind==="global");return;case"TSTypeParameter":(ve=r.const)!=null||(r.const=!1),(oe=r.in)!=null||(r.in=!1),(ye=r.out)!=null||(r.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,s){if(vt(r)){if(un.lastIndex=s,un.test(this.input)){let i=this.codePointAtPos(un.lastIndex);if(!lr(i)&&i!==92)return!1}return!0}else if(r===92)return!0;else return!1}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let r=this.nextTokenInLineStart(),s=this.codePointAtPos(r);return this.chStartsBindingIdentifierAndNotRelationalOperator(s,r)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let r=this.nextTokenInLineStart(),s=this.codePointAtPos(r);return this.chStartsBindingIdentifier(s,r)||s===34||s===39}};function QS(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;if(t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0))return!1;return fu(e.object)}function ZS(e,t){var r;let{type:s}=e;if((r=e.extra)!=null&&r.parenthesized)return!1;if(t){if(s==="Literal"){let{value:i}=e;if(typeof i==="string"||typeof i==="boolean")return!0}}else if(s==="StringLiteral"||s==="BooleanLiteral")return!0;if(pu(e,t)||eg(e,t))return!0;if(s==="TemplateLiteral"&&e.expressions.length===0)return!0;if(QS(e))return!0;return!1}function pu(e,t){if(t)return e.type==="Literal"&&(typeof e.value==="number"||("bigint"in e));return e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function eg(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:s}=e;if(r==="-"&&pu(s,t))return!0}return!1}function fu(e){if(e.type==="Identifier")return!0;if(e.type!=="MemberExpression"||e.computed)return!1;return fu(e.object)}var Bl=xt`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),tg=(e)=>class extends e{parsePlaceholder(r){if(this.match(133)){let s=this.startNode();return this.next(),this.assertNoSpace(),s.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(s,r)}}finishPlaceholder(r,s){let i=r;if(!i.expectedNode||!i.type)i=this.finishNode(i,"Placeholder");return i.expectedNode=s,i}getTokenFromCode(r){if(r===37&&this.input.charCodeAt(this.state.pos+1)===37)this.finishOp(133,2);else super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,s,i,n){if(r!==void 0)super.checkReservedWord(r,s,i,n)}cloneIdentifier(r){let s=super.cloneIdentifier(r);if(s.type==="Placeholder")s.expectedNode=r.expectedNode;return s}cloneStringLiteral(r){if(r.type==="Placeholder")return this.cloneIdentifier(r);return super.cloneStringLiteral(r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,s,i,n){return r==="Placeholder"||super.isValidLVal(r,s,i,n)}toAssignable(r,s){if(r&&r.type==="Placeholder"&&r.expectedNode==="Expression")r.expectedNode="Pattern";else super.toAssignable(r,s)}chStartsBindingIdentifier(r,s){if(super.chStartsBindingIdentifier(r,s))return!0;let i=this.nextTokenStart();if(this.input.charCodeAt(i)===37&&this.input.charCodeAt(i+1)===37)return!0;return!1}verifyBreakContinue(r,s){var i;if(((i=r.label)==null?void 0:i.type)==="Placeholder")return;super.verifyBreakContinue(r,s)}parseExpressionStatement(r,s){var i;if(s.type!=="Placeholder"||(i=s.extra)!=null&&i.parenthesized)return super.parseExpressionStatement(r,s);if(this.match(14)){let a=r;return a.label=this.finishPlaceholder(s,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();let n=r;return n.name=s.name,this.finishPlaceholder(n,"Statement")}parseBlock(r,s,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,s,i)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,s,i){let n=s?"ClassDeclaration":"ClassExpression";this.next();let a=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(133)||this.match(5))r.id=o;else if(i||!s)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,n);else throw this.raise(Bl.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(r,s,i);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,a),this.finishNode(r,n)}parseExport(r,s){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(r,s);let n=r;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let a=this.startNode();return a.exported=i,n.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(n,s)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")){if(this.input.startsWith(zt(133),this.nextTokenStartSince(r+4)))return!0}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,s){var i;if((i=r.specifiers)!=null&&i.length)return!0;return super.maybeParseExportDefaultSpecifier(r,s)}checkExport(r){let{specifiers:s}=r;if(s!=null&&s.length)r.specifiers=s.filter((i)=>i.exported.type==="Placeholder");super.checkExport(r),r.specifiers=s}parseImport(r){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(s,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let i=this.startNodeAtNode(s);if(i.local=s,r.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)){if(!this.maybeParseStarImportSpecifier(r))this.parseNamedImportSpecifiers(r)}return this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index))this.raise(Bl.UnexpectedSpace,this.state.lastTokEndLoc)}},rg=(e)=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,s=this.startNode();if(this.next(),Ee(this.state.type)){let i=this.parseIdentifierName(),n=this.createIdentifier(s,i);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(10))return n}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}},Fl=["minimal","fsharp","hack","smart"],jl=["^^","@@","^","%","#"];function sg(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw Error("Cannot use the decorators and decorators-legacy plugin together");let s=e.get("decorators").decoratorsBeforeExport;if(s!=null&&typeof s!=="boolean")throw Error("'decoratorsBeforeExport' must be a boolean, if specified.");let i=e.get("decorators").allowCallParenthesized;if(i!=null&&typeof i!=="boolean")throw Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;let s=e.get("pipelineOperator").proposal;if(!Fl.includes(s)){let i=Fl.map((n)=>`"${n}"`).join(", ");throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`)}if(s==="hack"){var r;if(e.has("placeholders"))throw Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let i=e.get("pipelineOperator").topicToken;if(!jl.includes(i)){let n=jl.map((a)=>`"${a}"`).join(", ");throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}if(i==="#"&&((r=e.get("recordAndTuple"))==null?void 0:r.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if(s==="smart"&&((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(e.get("moduleAttributes").version!=="may-2020")throw Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")){if(e.has("deprecatedImportAssert"))throw Error("Cannot combine importAssertions and deprecatedImportAssert plugins.")}if(e.has("deprecatedImportAssert"));else if(e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax)e.set("deprecatedImportAssert",{});if(e.has("recordAndTuple")){let s=e.get("recordAndTuple").syntaxType;if(s!=null){let i=["hash","bar"];if(!i.includes(s))throw Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+i.map((n)=>`'${n}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let s=Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw s.missingPlugins="doExpressions",s}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&e.get("discardBinding").syntaxType!=="void")throw Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var hu={estree:oS,jsx:RS,flow:MS,typescript:GS,v8intrinsic:rg,placeholders:tg},ig=Object.keys(hu);class du extends cu{checkProto(e,t,r,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return r;let i=e.key;if((i.type==="Identifier"?i.name:i.value)==="__proto__"){if(t)return this.raise(T.RecordNoProto,i),!0;if(r)if(s){if(s.doubleProtoLoc===null)s.doubleProtoLoc=i.loc.start}else this.raise(T.DuplicateProto,i);return!0}return r}shouldExitDescending(e,t){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(T.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(T.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});if(this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256)e.tokens=this.tokens;return e}parseExpression(e,t){if(e)return this.disallowInAnd(()=>this.parseExpressionBase(t));return this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){let s=this.startNodeAt(t);s.expressions=[r];while(this.eat(12))s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){let r=this.state.startLoc,s=this.isContextual(108);if(s){if(this.prodParam.hasYield){this.next();let o=this.parseYield(r);if(t)o=t.call(this,o,r);return o}}let i;if(e)i=!1;else e=new is,i=!0;let{type:n}=this.state;if(n===10||Ee(n))this.state.potentialArrowAt=this.state.start;let a=this.parseMaybeConditional(e);if(t)a=t.call(this,a,r);if(fS(this.state.type)){let o=this.startNodeAt(r),l=this.state.value;if(o.operator=l,this.match(29)){this.toAssignable(a,!0),o.left=a;let u=r.index;if(e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=u)e.doubleProtoLoc=null;if(e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=u)e.shorthandAssignLoc=null;if(e.privateKeyLoc!=null&&e.privateKeyLoc.index>=u)this.checkDestructuringPrivate(e),e.privateKeyLoc=null;if(e.voidPatternLoc!=null&&e.voidPatternLoc.index>=u)e.voidPatternLoc=null}else o.left=a;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(o,"AssignmentExpression"),void 0,void 0,void 0,void 0,l==="||="||l==="&&="||l==="??="),o}else if(i)this.checkExpressionErrors(e,!0);if(s){let{type:o}=this.state;if((this.hasPlugin("v8intrinsic")?ts(o):ts(o)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(T.YieldNotInGeneratorFunction,r),this.parseYield(r)}return a}parseMaybeConditional(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprOps(e);if(this.shouldExitDescending(s,r))return s;return this.parseConditional(s,t,e)}parseConditional(e,t,r){if(this.eat(17)){let s=this.startNodeAt(t);return s.test=e,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(e);if(this.shouldExitDescending(s,r))return s;return this.parseExprOp(s,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){let i=this.getPrivateNameSV(e);if(r>=Ws(58)||!this.prodParam.hasIn||!this.match(58))this.raise(T.PrivateInExpectedIn,e,{identifierName:i});this.classScope.usePrivateName(i,e.loc.start)}let s=this.state.type;if(dS(s)&&(this.prodParam.hasIn||!this.match(58))){let i=Ws(s);if(i>r){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let n=this.startNodeAt(t);n.left=e,n.operator=this.state.value;let a=s===41||s===42,o=s===40;if(o)i=Ws(42);if(this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait)throw this.raise(T.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}n.right=this.parseExprOpRightExpr(s,i);let l=this.finishNode(n,a||o?"LogicalExpression":"BinaryExpression"),u=this.state.type;if(o&&(u===41||u===42)||a&&u===40)throw this.raise(T.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,r)}}return e}parseExprOpRightExpr(e,t){let r=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(T.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r)});default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){let r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,SS(e)?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,r=this.parseMaybeAssign();if(Zx.has(r.type)&&!((e=r.extra)!=null&&e.parenthesized))this.raise(T.PipeUnparenthesizedBody,t,{type:r.type});if(!this.topicReferenceWasUsedInCurrentContext())this.raise(T.PipeTopicUnused,t);return r}checkExponentialAfterUnary(e){if(this.match(57))this.raise(T.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let r=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let o=this.parseAwait(r);if(!t)this.checkExponentialAfterUnary(o);return o}let i=this.match(34),n=this.startNode();if(yS(this.state.type)){if(n.operator=this.state.value,n.prefix=!0,this.match(72))this.expectPlugin("throwExpressions");let o=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&o){let l=n.argument;if(l.type==="Identifier")this.raise(T.StrictDelete,n);else if(this.hasPropertyAsPrivateName(l))this.raise(T.DeletePrivateField,n)}if(!i){if(!t)this.checkExponentialAfterUnary(n);return this.finishNode(n,"UnaryExpression")}}let a=this.parseUpdate(n,i,e);if(s){let{type:o}=this.state;if((this.hasPlugin("v8intrinsic")?ts(o):ts(o)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(T.AwaitNotInAsyncContext,r),this.parseAwait(r)}return a}parseUpdate(e,t,r){if(t){let n=e;return this.checkLVal(n.argument,this.finishNode(n,"UpdateExpression")),e}let s=this.state.startLoc,i=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return i;while(mS(this.state.type)&&!this.canInsertSemicolon()){let n=this.startNodeAt(s);n.operator=this.state.value,n.prefix=!1,n.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(n,"UpdateExpression"))}return i}parseExprSubscripts(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprAtom(e);if(this.shouldExitDescending(s,r))return s;return this.parseSubscripts(s,t)}parseSubscripts(e,t,r){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,r,s),s.maybeAsyncArrow=!1;while(!s.stop);return e}parseSubscript(e,t,r,s){let{type:i}=this.state;if(!r&&i===15)return this.parseBind(e,t,s);else if($s(i))return this.parseTaggedTemplateExpression(e,t,s);let n=!1;if(i===18){if(r){if(this.raise(T.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40)return this.stopParseSubscript(e,s)}s.optionalChainMember=n=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,s,n);else{let a=this.eat(0);if(a||n||this.eat(16))return this.parseMember(e,t,s,a,n);else return this.stopParseSubscript(e,s)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,r,s,i){let n=this.startNodeAt(t);if(n.object=e,n.computed=s,s)n.property=this.parseExpression(),this.expect(3);else if(this.match(139)){if(e.type==="Super")this.raise(T.SuperPrivateField,t);this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()}else n.property=this.parseIdentifier(!0);if(r.optionalChainMember)return n.optional=i,this.finishNode(n,"OptionalMemberExpression");else return this.finishNode(n,"MemberExpression")}parseBind(e,t,r){let s=this.startNodeAt(t);s.object=e,this.next();let i=this.match(83),n=this.parseNoCallExpr();if(n.type==="Super"||i&&n.type==="ImportExpression"||n.type==="Import")throw this.raise(T.UnsupportedBindRHS,n);return s.callee=n,r.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),t,!1)}parseCoverCallAndAsyncArrowHead(e,t,r,s){let i=this.state.maybeInArrowParameters,n=null;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t);a.callee=e;let{maybeAsyncArrow:o,optionalChainMember:l}=r;if(o)this.expressionScope.enter(XS()),n=new is;if(l)a.optional=s;if(s)a.arguments=this.parseCallExpressionArguments();else a.arguments=this.parseCallExpressionArguments(e.type!=="Super",a,n);let u=this.finishCallExpression(a,l);if(o&&this.shouldParseAsyncArrow()&&!s)r.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),u=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),u);else{if(o)this.checkExpressionErrors(n,!0),this.expressionScope.exit();this.toReferencedArguments(u)}return this.state.maybeInArrowParameters=i,u}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){let s=this.startNodeAt(t);if(s.tag=e,s.quasi=this.parseTemplate(!0),r.optionalChainMember)this.raise(T.OptionalChainingNoTemplate,t);return this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type==="Import"){if(e.arguments.length===0||e.arguments.length>2)this.raise(T.ImportCallArity,e);else for(let r of e.arguments)if(r.type==="SpreadElement")this.raise(T.ImportCallSpreadArgument,r)}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r){let s=[],i=!0,n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;while(!this.eat(11)){if(i)i=!1;else if(this.expect(12),this.match(11)){if(t)this.addTrailingCommaExtraToNode(t);this.next();break}s.push(this.parseExprListItem(11,!1,r,e))}return this.state.inFSharpPipelineDirectBody=n,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;if(this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,(r=t.extra)==null?void 0:r.trailingCommaLoc),t.innerComments)as(e,t.innerComments);if(t.callee.trailingComments)as(e,t.callee.trailingComments);return e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,r=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:if(t=this.startNode(),this.next(),this.match(16))return this.parseImportMetaPropertyOrPhaseCall(t);if(this.match(10))if(this.optionFlags&512)return this.parseImportCall(t);else return this.finishNode(t,"Import");else return this.raise(T.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import");case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let i=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(i)}case 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let i=t.callee=this.parseNoCallExpr();if(i.type==="MemberExpression")return this.finishNode(t,"BindExpression");else throw this.raise(T.UnsupportedBind,i)}case 139:return this.raise(T.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.parseTopicReference(i);throw this.unexpected()}case 47:{let i=this.input.codePointAt(this.nextTokenStart());if(vt(i)||i===62)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected()}default:if(s===137)return this.parseDecimalLiteral(this.state.value);else if(s===2||s===1)return this.parseArrayLike(this.state.type===2?4:3,!0);else if(s===6||s===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(Ee(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let i=this.state.potentialArrowAt===this.state.start,n=this.state.containsEsc,a=this.parseIdentifier();if(!n&&a.name==="async"&&!this.canInsertSemicolon()){let{type:o}=this.state;if(o===68)return this.resetPreviousNodeTrailingComments(a),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(a));else if(Ee(o))if(i&&this.lookaheadCharCode()===61)return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(a));else return a;else if(o===90)return this.resetPreviousNodeTrailingComments(a),this.parseDo(this.startNodeAtNode(a),!0)}if(i&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(a),[a],!1);return a}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=Xe(this.state.endLoc,-1),this.parseTopicReference(r);throw this.unexpected()}parseTopicReference(e){let t=this.startNode(),r=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(t,r,e,s)}finishTopicReference(e,t,r,s){if(this.testTopicReferenceConfiguration(r,t,s))if(r==="hack"){if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(T.PipeTopicUnbound,t);return this.registerTopicReference(),this.finishNode(e,"TopicReference")}else{if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(T.PrimaryTopicNotAllowed,t);return this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference")}else throw this.raise(T.PipeTopicUnconfiguredToken,t,{token:zt(s)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:zt(r)}]);case"smart":return r===27;default:throw this.raise(T.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Xs(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];if(this.prodParam.exit(),this.hasPrecedingLineBreak())this.raise(T.LineTerminatorBeforeArrow,this.state.curPosition());return this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){if(this.expectPlugin("doExpressions"),t)this.expectPlugin("asyncDoExpressions");e.async=t,this.next();let r=this.state.labels;if(this.state.labels=[],t)this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit();else e.body=this.parseBlock();return this.state.labels=r,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();if(this.next(),this.match(10)&&!this.scope.allowDirectSuper){if(!(this.optionFlags&16))this.raise(T.SuperNotAllowed,e)}else if(!this.scope.allowSuper){if(!(this.optionFlags&16))this.raise(T.UnexpectedSuper,e)}if(!this.match(10)&&!this.match(0)&&!this.match(16))this.raise(T.UnsupportedSuper,e);return this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(Xe(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"function");if(this.next(),this.match(103))this.expectPlugin("functionSent");else if(!this.hasPlugin("functionSent"))this.unexpected();return this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;let s=this.state.containsEsc;if(e.property=this.parseIdentifier(!0),e.property.name!==r||s)this.raise(T.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r});return this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}else{let t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);if(this.isContextual(101)){if(!this.inModule)this.raise(T.ImportMetaOutsideModule,t);this.sawUnambiguousESM=!0}return this.parseMetaProperty(e,t,"meta")}}parseLiteralAtNode(e,t,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}parseLiteral(e,t){let r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let t=this.startNode();return this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let t=this.state.startLoc,r;this.next(),this.expressionScope.enter(WS());let s=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let n=this.state.startLoc,a=[],o=new is,l=!0,u,p;while(!this.match(11)){if(l)l=!1;else if(this.expect(12,o.optionalParametersLoc===null?null:o.optionalParametersLoc),this.match(11)){p=this.state.startLoc;break}if(this.match(21)){let g=this.state.startLoc;if(u=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),g)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowInOrVoidPattern(11,o,this.parseParenItem))}let m=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=i;let x=this.startNodeAt(t);if(e&&this.shouldParseArrow(a)&&(x=this.parseArrow(x)))return this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(x,a,!1),x;if(this.expressionScope.exit(),!a.length)this.unexpected(this.state.lastTokStartLoc);if(p)this.unexpected(p);if(u)this.unexpected(u);if(this.checkExpressionErrors(o,!0),this.toReferencedListDeep(a,!0),a.length>1)r=this.startNodeAt(n),r.expressions=a,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,m);else r=a[0];return this.wrapParenthesis(t,r)}wrapParenthesis(e,t){if(!(this.optionFlags&1024))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let r=this.parseMetaProperty(e,t,"target");if(!this.scope.allowNewTarget)this.raise(T.UnexpectedNewTarget,r);return r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let t=this.match(83),r=this.parseNoCallExpr();if(e.callee=r,t&&r.type==="ImportExpression"||r.type==="Import")this.raise(T.ImportCallNotNewExpression,r);if(r.type==="Super")this.raise(T.SuperCallNotNewExpression,r)}parseTemplateElement(e){let{start:t,startLoc:r,end:s,value:i}=this.state,n=t+1,a=this.startNodeAt(Xe(r,1));if(i===null){if(!e)this.raise(T.InvalidEscapeSequenceTemplate,Xe(this.state.firstInvalidTemplateEscapePos,1))}let o=this.match(24),l=o?-1:-2,u=s+l;a.value={raw:this.input.slice(n,u).replace(/\r\n?/g,`
9
- `),cooked:i===null?null:i.slice(1,l)},a.tail=o,this.next();let p=this.finishNode(a,"TemplateElement");return this.resetEndLocation(p,Xe(this.state.lastTokEndLoc,l)),p}parseTemplate(e){let t=this.startNode(),r=this.parseTemplateElement(e),s=[r],i=[];while(!r.tail)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(r=this.parseTemplateElement(e));return t.expressions=i,t.quasis=s,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,s){if(r)this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=!1,a=!0,o=this.startNode();o.properties=[],this.next();while(!this.match(e)){if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}let u;if(t)u=this.parseBindingProperty();else u=this.parsePropertyDefinition(s),n=this.checkProto(u,r,n,s);if(r&&!this.isObjectProperty(u)&&u.type!=="SpreadElement")this.raise(T.InvalidRecordProperty,u);if(u.shorthand)this.addExtra(u,"shorthand",!0);o.properties.push(u)}this.next(),this.state.inFSharpPipelineDirectBody=i;let l="ObjectExpression";if(t)l="ObjectPattern";else if(r)l="RecordExpression";return this.finishNode(o,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26)){if(this.hasPlugin("decorators"))this.raise(T.UnsupportedPropertyDecorator,this.state.startLoc);while(this.match(26))t.push(this.parseDecorator())}let r=this.startNode(),s=!1,i=!1,n;if(this.match(21)){if(t.length)this.unexpected();return this.parseSpread()}if(t.length)r.decorators=t,t=[];if(r.method=!1,e)n=this.state.startLoc;let a=this.eat(55);this.parsePropertyNamePrefixOperator(r);let o=this.state.containsEsc;if(this.parsePropertyName(r,e),!a&&!o&&this.maybeAsyncOrAccessorProp(r)){let{key:l}=r,u=l.name;if(u==="async"&&!this.hasPrecedingLineBreak())s=!0,this.resetPreviousNodeTrailingComments(l),a=this.eat(55),this.parsePropertyName(r);if(u==="get"||u==="set"){if(i=!0,this.resetPreviousNodeTrailingComments(l),r.kind=u,this.match(55))a=!0,this.raise(T.AccessorIsGenerator,this.state.curPosition(),{kind:u}),this.next();this.parsePropertyName(r)}}return this.parseObjPropValue(r,n,a,s,!1,i,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;let r=this.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e);if(s.length!==r)this.raise(e.kind==="get"?T.BadGetterArity:T.BadSetterArity,e);if(e.kind==="set"&&((t=s[s.length-1])==null?void 0:t.type)==="RestElement")this.raise(T.BadSetterRestParameter,e)}parseObjectMethod(e,t,r,s,i){if(i){let n=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(r||t||this.match(10)){if(s)this.unexpected();return e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}}parseObjectProperty(e,t,r,s){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(e);if(!e.computed&&e.key.type==="Identifier"){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){let i=this.state.startLoc;if(s!=null){if(s.shorthandAssignLoc===null)s.shorthandAssignLoc=i}else this.raise(T.InvalidCoverInitializedName,i);e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,r,s,i,n,a){let o=this.parseObjectMethod(e,r,s,i,n)||this.parseObjectProperty(e,t,i,a);if(!o)this.unexpected();return o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:r,value:s}=this.state,i;if(St(r))i=this.parseIdentifier(!0);else switch(r){case 135:i=this.parseNumericLiteral(s);break;case 134:i=this.parseStringLiteral(s);break;case 136:i=this.parseBigIntLiteral(s);break;case 139:{let n=this.state.startLoc;if(t!=null){if(t.privateKeyLoc===null)t.privateKeyLoc=n}else this.raise(T.UnexpectedPrivateField,n);i=this.parsePrivateName();break}default:if(r===137){i=this.parseDecimalLiteral(s);break}this.unexpected()}if(e.key=i,r!==139)e.computed=!1}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,s,i,n,a=!1){this.initFunction(e,r),e.generator=t,this.scope.enter(530|(a?576:0)|(i?32:0)),this.prodParam.enter(Xs(r,e.generator)),this.parseFunctionParams(e,s);let o=this.parseFunctionBodyAndFinish(e,n,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t,r){if(t)this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!t,r,i),this.state.inFSharpPipelineDirectBody=s,this.finishNode(i,t?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,s){this.scope.enter(518);let i=Xs(r,!1);if(!this.match(5)&&this.prodParam.hasIn)i|=8;this.prodParam.enter(i),this.initFunction(e,r);let n=this.state.maybeInArrowParameters;if(t)this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,s);return this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,!1),e.params=t}parseFunctionBodyAndFinish(e,t,r=!1){return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t,r=!1){let s=t&&!this.match(5);if(this.expressionScope.enter(ou()),s)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let i=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,(a)=>{let o=!this.isSimpleParamList(e.params);if(a&&o)this.raise(T.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&!!e.key?e.key.loc.end:e);let l=!i&&this.state.strict;if(this.checkParams(e,!this.state.strict&&!t&&!r&&!o,t,l),this.state.strict&&e.id)this.checkIdentifier(e.id,65,l)}),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,r,s=!0){let i=!t&&new Set,n={type:"FormalParameters"};for(let a of e.params)this.checkLVal(a,n,5,i,s)}parseExprList(e,t,r,s){let i=[],n=!0;while(!this.eat(e)){if(n)n=!1;else if(this.expect(12),this.match(e)){if(s)this.addTrailingCommaExtraToNode(s);this.next();break}i.push(this.parseExprListItem(e,t,r))}return i}parseExprListItem(e,t,r,s){let i;if(this.match(12)){if(!t)this.raise(T.UnexpectedToken,this.state.curPosition(),{unexpected:","});i=null}else if(this.match(21)){let n=this.state.startLoc;i=this.parseParenItem(this.parseSpread(r),n)}else if(this.match(17)){if(this.expectPlugin("partialApplication"),!s)this.raise(T.UnexpectedArgumentPlaceholder,this.state.startLoc);let n=this.startNode();this.next(),i=this.finishNode(n,"ArgumentPlaceholder")}else i=this.parseMaybeAssignAllowInOrVoidPattern(e,r,this.parseParenItem);return i}parseIdentifier(e){let t=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}createIdentifierAt(e,t,r){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,"Identifier",r)}parseIdentifierName(e){let t,{startLoc:r,type:s}=this.state;if(St(s))t=this.state.value;else this.unexpected();let i=cS(s);if(e){if(i)this.replaceToken(132)}else this.checkReservedWord(t,r,i,!1);return this.next(),t}checkReservedWord(e,t,r,s){if(e.length>10)return;if(!NS(e))return;if(r&&CS(e)){this.raise(T.UnexpectedKeyword,t,{keyword:e});return}if((!this.state.strict?Vl:s?Wl:Yl)(e,this.inModule)){this.raise(T.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(T.YieldBindingIdentifier,t);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(T.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(T.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(T.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;if(e&&!this.scope.inFunction)this.state.hasTopLevelAwait=!0;return e}parseAwait(e){let t=this.startNodeAt(e);if(this.expressionScope.recordParameterInitializerError(T.AwaitExpressionFormalParameter,t),this.eat(55))this.raise(T.ObsoleteAwaitStar,t);if(!this.scope.inFunction&&!(this.optionFlags&1))if(this.isAmbiguousPrefixOrIdentifier())this.ambiguousScriptDifferentAst=!0;else this.sawUnambiguousESM=!0;if(!this.state.soloAwait)t.argument=this.parseMaybeUnary(null,!0);return this.finishNode(t,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||$s(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){let t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(T.YieldInParameter,t);let r=!1,s=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:s=this.parseMaybeAssign()}return t.delegate=r,t.argument=s,this.finishNode(t,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12))if(!this.match(11)){if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)){if(this.addTrailingCommaExtraToNode(e.options),!this.match(11)){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(T.ImportCallArity,e)}}}else this.addTrailingCommaExtraToNode(e.source);return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(e.type==="SequenceExpression")this.raise(T.PipelineHeadSequenceExpression,t)}}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}else{let r=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),r.expression=e,this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(T.PipelineBodyNoArrow,this.state.startLoc);if(!this.topicReferenceWasUsedInCurrentContext())this.raise(T.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}else return e()}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(t&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();if(this.next(),!this.match(5))this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");let t=this.startNode();if(e!=null)e.voidPatternLoc=this.state.startLoc;return this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,r){if(t!=null&&this.match(88)){let s=this.lookaheadCharCode();if(s===44||s===(e===3?93:e===8?125:41)||s===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,r)}parsePropertyNamePrefixOperator(e){}}var cn={kind:1},ng={kind:2},ag=/[\uD800-\uDFFF]/u,pn=/in(?:stanceof)?/y;function og(e,t,r){for(let s=0;s<e.length;s++){let i=e[s],{type:n}=i;if(typeof n==="number"){if(n===139){let{loc:a,start:o,value:l,end:u}=i,p=o+1,m=Xe(a.start,1);e.splice(s,1,new qt({type:Rt(27),value:"#",start:o,end:p,startLoc:a.start,endLoc:m}),new qt({type:Rt(132),value:l,start:p,end:u,startLoc:m,endLoc:a.end})),s++;continue}if($s(n)){let{loc:a,start:o,value:l,end:u}=i,p=o+1,m=Xe(a.start,1),x;if(t.charCodeAt(o-r)===96)x=new qt({type:Rt(22),value:"`",start:o,end:p,startLoc:a.start,endLoc:m});else x=new qt({type:Rt(8),value:"}",start:o,end:p,startLoc:a.start,endLoc:m});let g,E,I,b;if(n===24)E=u-1,I=Xe(a.end,-1),g=l===null?null:l.slice(1,-1),b=new qt({type:Rt(22),value:"`",start:E,end:u,startLoc:I,endLoc:a.end});else E=u-2,I=Xe(a.end,-2),g=l===null?null:l.slice(1,-2),b=new qt({type:Rt(23),value:"${",start:E,end:u,startLoc:I,endLoc:a.end});e.splice(s,1,x,new qt({type:Rt(20),value:g,start:p,end:E,startLoc:m,endLoc:I}),b),s+=2;continue}i.type=Rt(n)}}return e}class mu extends du{parseTopLevel(e,t){if(e.program=this.parseProgram(t,140,this.options.sourceType==="module"?"module":"script"),e.comments=this.comments,this.optionFlags&256)e.tokens=og(this.tokens,this.input,this.startIndex);return this.finishNode(e,"File")}parseProgram(e,t,r){if(e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[i,n]of Array.from(this.scope.undefinedExports))this.raise(T.ModuleExportUndefined,n,{localName:i});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let s;if(t===140)s=this.finishNode(e,"Program");else s=this.finishNodeAt(e,"Program",Xe(this.state.startLoc,-1));return s}stmtToDirective(e){let t=this.castNodeTo(e,"Directive"),r=this.castNodeTo(e.expression,"DirectiveLiteral"),s=r.value,i=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end)),n=r.value=i.slice(1,-1);return this.addExtra(r,"raw",i),this.addExtra(r,"rawValue",n),this.addExtra(r,"expressionValue",s),t.value=r,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){if(!this.isContextual(100))return!1;return this.hasFollowingBindingAtom()}isUsing(){if(!this.isContextual(107))return!1;return this.nextTokenIsIdentifierOnSameLine()}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let r=this.lookaheadCharCodeSince(e+2);if(r!==61&&r!==58&&r!==59)return!1}if(this.chStartsBindingIdentifier(t,e)||this.isUnparsedContextual(e,"void"))return!0;return!1}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(vt(e)){if(pn.lastIndex=t,pn.test(this.input)){let r=this.codePointAtPos(pn.lastIndex);if(!lr(r)&&r!==92)return!1}return!0}else if(e===92)return!0;else return!1}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;if(this.options.annexB&&!this.state.strict){if(t|=4,e)t|=8}return this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;if(this.match(26))t=this.parseDecorators(!0);return this.parseStatementContent(e,t)}parseStatementContent(e,t){let r=this.state.type,s=this.startNode(),i=!!(e&2),n=!!(e&4),a=e&1;switch(r){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;if(!n)this.raise(this.state.strict?T.StrictFunction:this.options.annexB?T.SloppyFunctionAnnexB:T.SloppyFunction,this.state.startLoc);return this.parseFunctionStatement(s,!1,!i&&n);case 80:if(!i)this.unexpected();return this.parseClass(this.maybeTakeDecorators(t,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing()){if(!this.allowsUsing())this.raise(T.UnexpectedUsingDeclaration,s);else if(!i)this.raise(T.UnexpectedLexicalDeclaration,s);else if(!this.recordAwaitIfAllowed())this.raise(T.AwaitUsingNotInAsyncContext,s);return this.next(),this.parseVarStatement(s,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;if(!this.allowsUsing())this.raise(T.UnexpectedUsingDeclaration,this.state.startLoc);else if(!i)this.raise(T.UnexpectedLexicalDeclaration,this.state.startLoc);return this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let u=this.nextTokenStart(),p=this.codePointAtPos(u);if(p!==91){if(!i&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(p,u)&&p!==123)break}}case 75:if(!i)this.raise(T.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let u=this.state.value;return this.parseVarStatement(s,u)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let u=this.lookaheadCharCode();if(u===40||u===46)break}case 82:{if(!(this.optionFlags&8)&&!a)this.raise(T.UnexpectedImportExport,this.state.startLoc);this.next();let u;if(r===83)u=this.parseImport(s);else u=this.parseExport(s,t);return this.assertModuleNodeAllowed(u),u}default:if(this.isAsyncFunction()){if(!i)this.raise(T.AsyncFunctionInSingleStatementContext,this.state.startLoc);return this.next(),this.parseFunctionStatement(s,!0,!i&&n)}}let o=this.state.value,l=this.parseExpression();if(Ee(r)&&l.type==="Identifier"&&this.eat(14))return this.parseLabeledStatement(s,o,l,e);else return this.parseExpressionStatement(s,l,t)}assertModuleNodeAllowed(e){if(!(this.optionFlags&8)&&!this.inModule)this.raise(T.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return!0;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,t,r){if(e){var s;if((s=t.decorators)!=null&&s.length){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean")this.raise(T.DecoratorsBeforeAfterExport,t.decorators[0]);t.decorators.unshift(...e)}else t.decorators=e;if(this.resetStartLocationFromNode(t,e[0]),r)this.resetStartLocationFromNode(r,t)}return t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82)){if(!e)this.unexpected();if(!this.decoratorsEnabledBeforeExport())this.raise(T.DecoratorExportClass,this.state.startLoc)}else if(!this.canHaveLeadingDecorator())throw this.raise(T.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t=this.state.startLoc,r;if(this.match(10)){let s=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(s,r);let i=this.state.startLoc;if(e.expression=this.parseMaybeDecoratorArguments(r,s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==r)this.raise(T.DecoratorArgumentsOutsideParentheses,i)}else{r=this.parseIdentifier(!1);while(this.eat(16)){let s=this.startNodeAt(t);if(s.object=r,this.match(139))this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName();else s.property=this.parseIdentifier(!0);s.computed=!1,r=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){let r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return e}parseBreakContinueStatement(e,t){if(this.next(),this.isLineTerminator())e.label=null;else e.label=this.parseIdentifier(),this.semicolon();return this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;r<this.state.labels.length;++r){let s=this.state.labels[r];if(e.label==null||s.name===e.label.name){if(s.kind!=null&&(t||s.kind===1))break;if(e.label&&t)break}}if(r===this.state.labels.length){let s=t?"BreakStatement":"ContinueStatement";this.raise(T.IllegalBreakContinue,e,{type:s})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(cn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(cn);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed())t=this.state.startLoc,this.next();if(this.scope.enter(0),this.expect(10),this.match(13)){if(t!==null)this.unexpected(t);return this.parseFor(e,null)}let r=this.isContextual(100);{let o=this.isAwaitUsing(),l=o||this.isForUsing(),u=r&&this.hasFollowingBindingAtom()||l;if(this.match(74)||this.match(75)||u){let p=this.startNode(),m;if(o){if(m="await using",!this.recordAwaitIfAllowed())this.raise(T.AwaitUsingNotInAsyncContext,this.state.startLoc);this.next()}else m=this.state.value;this.next(),this.parseVar(p,!0,m);let x=this.finishNode(p,"VariableDeclaration"),g=this.match(58);if(g&&l)this.raise(T.ForInUsing,x);if((g||this.isContextual(102))&&x.declarations.length===1)return this.parseForIn(e,x,t);if(t!==null)this.unexpected(t);return this.parseFor(e,x)}}let s=this.isContextual(95),i=new is,n=this.parseExpression(!0,i),a=this.isContextual(102);if(a){if(r)this.raise(T.ForOfLet,n);if(t===null&&s&&n.type==="Identifier")this.raise(T.ForOfAsync,n)}if(a||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(n,!0);let o=a?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{type:o}),this.parseForIn(e,n,t)}else this.checkExpressionErrors(i,!0);if(t!==null)this.unexpected(t);return this.parseFor(e,n)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){if(!this.prodParam.hasReturn)this.raise(T.IllegalReturn,this.state.startLoc);if(this.next(),this.isLineTerminator())e.argument=null;else e.argument=this.parseExpression(),this.semicolon();return this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let t=e.cases=[];this.expect(5),this.state.labels.push(ng),this.scope.enter(256);let r;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let i=this.match(61);if(r)this.finishNode(r,"SwitchCase");if(t.push(r=this.startNode()),r.consequent=[],this.next(),i)r.test=this.parseExpression();else{if(s)this.raise(T.MultipleDefaultsInSwitch,this.state.lastTokStartLoc);s=!0,r.test=null}this.expect(14)}else if(r)r.consequent.push(this.parseStatementListItem());else this.unexpected();if(this.scope.exit(),r)this.finishNode(r,"SwitchCase");return this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){if(this.next(),this.hasPrecedingLineBreak())this.raise(T.NewlineAfterThrow,this.state.lastTokEndLoc);return e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();if(this.next(),this.match(10))this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11);else t.param=null,this.scope.enter(0);t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}if(e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer)this.raise(T.NoCatchOrFinally,e);return this.finishNode(e,"TryStatement")}parseVarStatement(e,t,r=!1){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(cn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){if(this.state.strict)this.raise(T.StrictWith,this.state.startLoc);return this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,s){for(let n of this.state.labels)if(n.name===t)this.raise(T.LabelRedeclaration,r,{labelName:t});let i=hS(this.state.type)?1:this.match(71)?2:null;for(let n=this.state.labels.length-1;n>=0;n--){let a=this.state.labels[n];if(a.statementStart===e.start)a.statementStart=this.sourceToOffsetPos(this.state.start),a.kind=i;else break}return this.state.labels.push({name:t,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,r){let s=this.startNode();if(e)this.state.strictErrors.clear();if(this.expect(5),t)this.scope.enter(0);if(this.parseBlockBody(s,e,!1,8,r),t)this.scope.exit();return this.finishNode(s,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,s,i){let n=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(n,t?a:void 0,r,s,i)}parseBlockOrModuleBlockBody(e,t,r,s,i){let n=this.state.strict,a=!1,o=!1;while(!this.match(s)){let l=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(l)){let u=this.stmtToDirective(l);if(t.push(u),!a&&u.value.value==="use strict")a=!0,this.setStrict(!0);continue}o=!0,this.state.strictErrors.clear()}e.push(l)}if(i==null||i.call(this,a),!n)this.setStrict(!1);this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){let s=this.match(58);if(this.next(),s){if(r!==null)this.unexpected(r)}else e.await=r!==null;if(t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier"))this.raise(T.ForInOfLoopInitializer,t,{type:s?"ForInStatement":"ForOfStatement"});if(t.type==="AssignmentPattern")this.raise(T.InvalidLhs,t,{ancestor:{type:"ForStatement"}});return e.left=t,e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,t,r,s=!1){let i=e.declarations=[];e.kind=r;for(;;){let n=this.startNode();if(this.parseVarId(n,r),n.init=!this.eat(29)?null:t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn(),n.init===null&&!s){if(n.id.type!=="Identifier"&&!(t&&(this.match(58)||this.isContextual(102))))this.raise(T.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"});else if((r==="const"||r==="using"||r==="await using")&&!(this.match(58)||this.isContextual(102)))this.raise(T.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r})}if(i.push(this.finishNode(n,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){let r=this.parseBindingAtom();if(t==="using"||t==="await using"){if(r.type==="ArrayPattern"||r.type==="ObjectPattern")this.raise(T.UsingDeclarationHasBindingPattern,r.loc.start)}else if(r.type==="VoidPattern")this.raise(T.UnexpectedVoidPattern,r.loc.start);this.checkLVal(r,{type:"VariableDeclarator"},t==="var"?5:8201),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let r=t&2,s=!!(t&1),i=s&&!(t&4),n=!!(t&8);if(this.initFunction(e,n),this.match(55)){if(r)this.raise(T.GeneratorInSingleStatementContext,this.state.startLoc);this.next(),e.generator=!0}if(s)e.id=this.parseFunctionId(i);let a=this.state.maybeInArrowParameters;if(this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Xs(n,e.generator)),!s)e.id=this.parseFunctionId();if(this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!r)this.registerFunctionStatementId(e);return this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||Ee(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(JS()),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){if(!e.id)return;this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,r){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,s),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let r={hadConstructor:!1,hadSuperClass:e},s=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{while(!this.match(8)){if(this.eat(13)){if(s.length>0)throw this.raise(T.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}let n=this.startNode();if(s.length)n.decorators=s,this.resetStartLocationFromNode(n,s[0]),s=[];if(this.parseClassMember(i,n,r),n.kind==="constructor"&&n.decorators&&n.decorators.length>0)this.raise(T.DecoratorConstructor,n)}}),this.state.strict=t,this.next(),s.length)throw this.raise(T.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){let r=this.parseIdentifier(!0);if(this.isClassMethod()){let s=t;return s.kind="method",s.computed=!1,s.key=r,s.static=!1,this.pushClassMethod(e,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=t;return s.computed=!1,s.key=r,s.static=!1,e.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(e,t,r){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,r,s)}parseClassMemberWithIsStatic(e,t,r,s){let i=t,n=t,a=t,o=t,l=t,u=i,p=i;if(t.static=s,this.parsePropertyNamePrefixOperator(t),this.eat(55)){u.kind="method";let b=this.match(139);if(this.parseClassElementName(u),this.parsePostMemberNameModifiers(u),b){this.pushClassPrivateMethod(e,n,!0,!1);return}if(this.isNonstaticConstructor(i))this.raise(T.ConstructorIsGenerator,i.key);this.pushClassMethod(e,i,!0,!1,!1,!1);return}let m=!this.state.containsEsc&&Ee(this.state.type),x=this.parseClassElementName(t),g=m?x.name:null,E=this.isPrivateName(x),I=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(u.kind="method",E){this.pushClassPrivateMethod(e,n,!1,!1);return}let b=this.isNonstaticConstructor(i),C=!1;if(b){if(i.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript"))this.raise(T.DuplicateConstructor,x);if(b&&this.hasPlugin("typescript")&&t.override)this.raise(T.OverrideOnConstructor,x);r.hadConstructor=!0,C=r.hadSuperClass}this.pushClassMethod(e,i,!1,!1,b,C)}else if(this.isClassProperty())if(E)this.pushClassPrivateProperty(e,o);else this.pushClassProperty(e,a);else if(g==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(x);let b=this.eat(55);if(p.optional)this.unexpected(I);u.kind="method";let C=this.match(139);if(this.parseClassElementName(u),this.parsePostMemberNameModifiers(p),C)this.pushClassPrivateMethod(e,n,b,!0);else{if(this.isNonstaticConstructor(i))this.raise(T.ConstructorIsAsync,i.key);this.pushClassMethod(e,i,b,!0,!1,!1)}}else if((g==="get"||g==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(x),u.kind=g;let b=this.match(139);if(this.parseClassElementName(i),b)this.pushClassPrivateMethod(e,n,!1,!1);else{if(this.isNonstaticConstructor(i))this.raise(T.ConstructorIsAccessor,i.key);this.pushClassMethod(e,i,!1,!1,!1,!1)}this.checkGetterSetterParams(i)}else if(g==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(x);let b=this.match(139);this.parseClassElementName(a),this.pushClassAccessorProperty(e,l,b)}else if(this.isLineTerminator())if(E)this.pushClassPrivateProperty(e,o);else this.pushClassProperty(e,a);else this.unexpected()}parseClassElementName(e){let{type:t,value:r}=this.state;if((t===132||t===134)&&e.static&&r==="prototype")this.raise(T.StaticPrototype,this.state.startLoc);if(t===139){if(r==="constructor")this.raise(T.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return e.key=s,s}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var r;this.scope.enter(720);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=t.body=[];if(this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,e.body.push(this.finishNode(t,"StaticBlock")),(r=t.decorators)!=null&&r.length)this.raise(T.DecoratorStaticBlock,t)}pushClassProperty(e,t){if(!t.computed&&this.nameIsConstructor(t.key))this.raise(T.ConstructorClassField,t.key);e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){if(!r&&!t.computed&&this.nameIsConstructor(t.key))this.raise(T.ConstructorClassField,t.key);let s=this.parseClassAccessorProperty(t);if(e.body.push(s),r)this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(e,t,r,s,i,n){e.body.push(this.parseMethod(t,r,s,i,n,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,s){let i=this.parseMethod(t,r,s,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);let n=i.kind==="get"?i.static?6:2:i.kind==="set"?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,n)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(ou()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r,s=8331){if(Ee(this.state.type)){if(e.id=this.parseIdentifier(),t)this.declareNameFromIdentifier(e.id,s)}else if(r||!t)e.id=null;else throw this.raise(T.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let r=this.parseMaybeImportPhase(e,!0),s=this.maybeParseExportDefaultSpecifier(e,r),i=!s||this.eat(12),n=i&&this.eatExportStar(e),a=n&&this.maybeParseExportNamespaceSpecifier(e),o=i&&(!a||this.eat(12)),l=s||n;if(n&&!a){if(s)this.unexpected();if(t)throw this.raise(T.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let u=this.maybeParseExportNamedSpecifiers(e);if(s&&i&&!n&&!u)this.unexpected(null,5);if(a&&o)this.unexpected(null,98);let p;if(l||u){if(p=!1,t)throw this.raise(T.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else p=this.maybeParseExportDeclaration(e);if(l||u||p){var m;let x=e;if(this.checkExport(x,!0,!1,!!x.source),((m=x.declaration)==null?void 0:m.type)==="ClassDeclaration")this.maybeTakeDecorators(t,x.declaration,x);else if(t)throw this.raise(T.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(x,"ExportNamedDeclaration")}if(this.eat(65)){let x=e,g=this.parseExportDefaultExpression();if(x.declaration=g,g.type==="ClassDeclaration")this.maybeTakeDecorators(t,g,x);else if(t)throw this.raise(T.UnsupportedDecoratorExport,e);return this.checkExport(x,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(x,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",t==null?void 0:t.loc.start);let r=t||this.parseIdentifier(!0),s=this.startNodeAtNode(r);return s.exported=r,e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t,r;(r=(t=e).specifiers)!=null||(t.specifiers=[]);let s=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),s.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let t=e;if(!t.specifiers)t.specifiers=[];let r=t.exportKind==="type";if(t.specifiers.push(...this.parseExportSpecifiers(r)),t.source=null,this.hasPlugin("importAssertions"))t.assertions=[];else t.attributes=[];return t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){if(this.shouldParseExportDeclaration()){if(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions"))e.assertions=[];else e.attributes=[];return e.declaration=this.parseExportDeclaration(e),!0}return!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);else if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(T.DecoratorBeforeExport,this.state.startLoc);return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0)}if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(T.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){if(this.match(80))return this.parseClass(this.startNode(),!0,!1);return this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(Ee(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let s=this.nextTokenStart(),i=this.input.charCodeAt(s);if(i===123||this.chStartsBindingIdentifier(i,s)&&!this.input.startsWith("from",s))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(this.input.charCodeAt(t)===44||Ee(this.state.type)&&r)return!0;if(this.match(65)&&r){let s=this.input.charCodeAt(this.nextTokenStartSince(t+4));return s===34||s===39}return!1}parseExportFrom(e,t){if(this.eatContextual(98))e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e);else if(t)this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;if(e===26){if(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(T.DecoratorBeforeExport,this.state.startLoc);return!0}}if(this.isUsing())return this.raise(T.UsingDeclarationExport,this.state.startLoc),!0;if(this.isAwaitUsing())return this.raise(T.UsingDeclarationExport,this.state.startLoc),!0;return e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,s){if(t){var i;if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var n;let a=e.declaration;if(a.type==="Identifier"&&a.name==="from"&&a.end-a.start===4&&!((n=a.extra)!=null&&n.parenthesized))this.raise(T.ExportDefaultFromAsIdentifier,a)}}else if((i=e.specifiers)!=null&&i.length)for(let a of e.specifiers){let{exported:o}=a,l=o.type==="Identifier"?o.name:o.value;if(this.checkDuplicateExports(a,l),!s&&a.local){let{local:u}=a;if(u.type!=="Identifier")this.raise(T.ExportBindingIsString,a,{localName:u.value,exportName:l});else this.checkReservedWord(u.name,u.loc.start,!0,!1),this.scope.checkLocalExport(u)}}else if(e.declaration){let a=e.declaration;if(a.type==="FunctionDeclaration"||a.type==="ClassDeclaration"){let{id:o}=a;if(!o)throw Error("Assertion failure");this.checkDuplicateExports(e,o.name)}else if(a.type==="VariableDeclaration")for(let o of a.declarations)this.checkDeclaration(o.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let t of e.properties)this.checkDeclaration(t);else if(e.type==="ArrayPattern"){for(let t of e.elements)if(t)this.checkDeclaration(t)}else if(e.type==="ObjectProperty")this.checkDeclaration(e.value);else if(e.type==="RestElement")this.checkDeclaration(e.argument);else if(e.type==="AssignmentPattern")this.checkDeclaration(e.left)}checkDuplicateExports(e,t){if(this.exportedIdentifiers.has(t))if(t==="default")this.raise(T.DuplicateDefaultExport,e);else this.raise(T.DuplicateExport,e,{exportName:t});this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],r=!0;this.expect(5);while(!this.eat(8)){if(r)r=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),i=this.match(134),n=this.startNode();n.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(n,i,e,s))}return t}parseExportSpecifier(e,t,r,s){if(this.eatContextual(93))e.exported=this.parseModuleExportName();else if(t)e.exported=this.cloneStringLiteral(e.local);else if(!e.exported)e.exported=this.cloneIdentifier(e.local);return this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),t=ag.exec(e.value);if(t)this.raise(T.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)});return e}return this.parseIdentifier(!0)}isJSONModuleImport(e){if(e.assertions!=null)return e.assertions.some(({key:t,value:r})=>r.value==="json"&&(t.type==="Identifier"?t.name==="type":t.value==="type"));return!1}checkImportReflection(e){let{specifiers:t}=e,r=t.length===1?t[0].type:null;if(e.phase==="source"){if(r!=="ImportDefaultSpecifier")this.raise(T.SourcePhaseImportRequiresDefault,t[0].loc.start)}else if(e.phase==="defer"){if(r!=="ImportNamespaceSpecifier")this.raise(T.DeferImportRequiresNamespace,t[0].loc.start)}else if(e.module){var s;if(r!=="ImportDefaultSpecifier")this.raise(T.ImportReflectionNotBinding,t[0].loc.start);if(((s=e.assertions)==null?void 0:s.length)>0)this.raise(T.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:t}=e;if(t!=null){let r=t.find((s)=>{let i;if(s.type==="ExportSpecifier")i=s.local;else if(s.type==="ImportSpecifier")i=s.imported;if(i!==void 0)return i.type==="Identifier"?i.name!=="default":i.value!=="default"});if(r!==void 0)this.raise(T.ImportJSONBindingNotDefault,r.loc.start)}}}isPotentialImportPhase(e){if(e)return!1;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,t,r,s){if(t)return;if(r==="module")this.expectPlugin("importReflection",s),e.module=!0;else if(this.hasPlugin("importReflection"))e.module=!1;if(r==="source")this.expectPlugin("sourcePhaseImports",s),e.phase="source";else if(r==="defer")this.expectPlugin("deferredImportEvaluation",s),e.phase="defer";else if(this.hasPlugin("sourcePhaseImports"))e.phase=null}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let r=this.startNode(),s=this.parseIdentifierName(!0),{type:i}=this.state;if(St(i)?i!==98||this.lookaheadCharCode()===102:i!==12)return this.applyImportPhase(e,t,s,r.loc.start),null;else return this.applyImportPhase(e,t,null),this.createIdentifier(r,s)}isPrecedingIdImportPhase(e){let{type:t}=this.state;return Ee(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){if(this.match(134))return this.parseImportSourceAndAttributes(e);return this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),i=s&&this.maybeParseStarImportSpecifier(e);if(s&&!i)this.parseNamedImportSpecifiers(e);return this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){var t;return(t=e.specifiers)!=null||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){if(!this.match(134))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t,r=8201){return this.checkLVal(e.local,{type:t},r),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);let e=[],t=new Set;do{if(this.match(8))break;let r=this.startNode(),s=this.state.value;if(t.has(s))this.raise(T.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s});if(t.add(s),this.match(134))r.key=this.parseStringLiteral(s);else r.key=this.parseIdentifier(!0);if(this.expect(14),!this.match(134))throw this.raise(T.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],t=new Set;do{let r=this.startNode();if(r.key=this.parseIdentifier(!0),r.key.name!=="type")this.raise(T.ModuleAttributeDifferentFromType,r.key);if(t.has(r.key.name))this.raise(T.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name});if(t.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(T.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;if(this.next(),this.hasPlugin("moduleAttributes"))t=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0);else t=this.parseImportAttributes();r=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions"))this.raise(T.ImportAttributesUseAssert,this.state.startLoc);if(!this.hasPlugin("importAssertions"))this.addExtra(e,"deprecatedAssertSyntax",!0);this.next(),t=this.parseImportAttributes()}else t=[];if(!r&&this.hasPlugin("importAssertions"))e.assertions=t;else e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}else if(St(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;this.expect(5);while(!this.eat(8)){if(t)t=!1;else{if(this.eat(14))throw this.raise(T.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let r=this.startNode(),s=this.match(134),i=this.isContextual(130);r.imported=this.parseModuleExportName();let n=this.parseImportSpecifier(r,s,e.importKind==="type"||e.importKind==="typeof",i,void 0);e.specifiers.push(n)}}parseImportSpecifier(e,t,r,s,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:n}=e;if(t)throw this.raise(T.ImportBindingIsString,e,{importName:n.value});if(this.checkReservedWord(n.name,e.loc.start,!0,!0),!e.local)e.local=this.cloneIdentifier(n)}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}}class wn extends mu{constructor(e,t,r){let s=nS(e);super(s,t);this.options=s,this.initializeScopes(),this.plugins=r,this.filename=s.sourceFilename,this.startIndex=s.startIndex;let i=0;if(s.allowAwaitOutsideFunction)i|=1;if(s.allowReturnOutsideFunction)i|=2;if(s.allowImportExportEverywhere)i|=8;if(s.allowSuperOutsideMethod)i|=16;if(s.allowUndeclaredExports)i|=64;if(s.allowNewTargetOutsideFunction)i|=4;if(s.allowYieldOutsideFunction)i|=32;if(s.ranges)i|=128;if(s.tokens)i|=256;if(s.createImportExpressions)i|=512;if(s.createParenthesizedExpressions)i|=1024;if(s.errorRecovery)i|=2048;if(s.attachComment)i|=4096;if(s.annexB)i|=8192;this.optionFlags=i}getScopeHandler(){return zs}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;let r=this.parseTopLevel(e,t);return r.errors=this.state.errors,r.comments.length=this.state.commentsLen,r}}function lg(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let s=rs(t,e),i=s.parse();if(s.sawUnambiguousESM)return i;if(s.ambiguousScriptDifferentAst)try{return t.sourceType="script",rs(t,e).parse()}catch(n){}else i.program.sourceType="script";return i}catch(s){try{return t.sourceType="script",rs(t,e).parse()}catch(i){}throw s}}else return rs(t,e).parse()}function ug(e,t){let r=rs(t,e);if(r.options.strictMode)r.state.strict=!0;return r.getExpression()}function cg(e){let t={};for(let r of Object.keys(e))t[r]=Rt(e[r]);return t}var pg=cg(uS);function rs(e,t){let r=wn,s=new Map;if(e!=null&&e.plugins){for(let i of e.plugins){let n,a;if(typeof i==="string")n=i;else[n,a]=i;if(!s.has(n))s.set(n,a||{})}sg(s),r=fg(s)}return new r(e,t,s)}var Rl=new Map;function fg(e){let t=[];for(let i of ig)if(e.has(i))t.push(i);let r=t.join("|"),s=Rl.get(r);if(!s){s=wn;for(let i of t)s=hu[i](s);Rl.set(r,s)}return s}yu.parse=lg;yu.parseExpression=ug;yu.tokTypes=pg});var Nn=A(function(Tu){Object.defineProperty(Tu,"__esModule",{value:!0});Tu.Var=Tu.User=Tu.Statement=Tu.SpreadProperty=Tu.Scope=Tu.RestProperty=Tu.ReferencedMemberExpression=Tu.ReferencedIdentifier=Tu.Referenced=Tu.Pure=Tu.NumericLiteralTypeAnnotation=Tu.Generated=Tu.ForAwaitStatement=Tu.Flow=Tu.Expression=Tu.ExistentialTypeParam=Tu.BlockScoped=Tu.BindingIdentifier=void 0;var E1e=Tu.ReferencedIdentifier=["Identifier","JSXIdentifier"],P1e=Tu.ReferencedMemberExpression=["MemberExpression"],A1e=Tu.BindingIdentifier=["Identifier"],v1e=Tu.Statement=["Statement"],C1e=Tu.Expression=["Expression"],I1e=Tu.Scope=["Scopable","Pattern"],w1e=Tu.Referenced=null,N1e=Tu.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],O1e=Tu.Var=["VariableDeclaration"],_1e=Tu.User=null,k1e=Tu.Generated=null,D1e=Tu.Pure=null,L1e=Tu.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],M1e=Tu.RestProperty=["RestElement"],B1e=Tu.SpreadProperty=["RestElement"],F1e=Tu.ExistentialTypeParam=["ExistsTypeAnnotation"],j1e=Tu.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],R1e=Tu.ForAwaitStatement=["ForOfStatement"]});var gu=A(function(U1e,Su){var _r=1000,kr=_r*60,Dr=kr*60,ur=Dr*24,Dg=ur*7,Lg=ur*365.25;Su.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Mg(e);else if(r==="number"&&isFinite(e))return t.long?Fg(e):Bg(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Mg(e){if(e=String(e),e.length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]),s=(t[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return r*Lg;case"weeks":case"week":case"w":return r*Dg;case"days":case"day":case"d":return r*ur;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Dr;case"minutes":case"minute":case"mins":case"min":case"m":return r*kr;case"seconds":case"second":case"secs":case"sec":case"s":return r*_r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}function Bg(e){var t=Math.abs(e);if(t>=ur)return Math.round(e/ur)+"d";if(t>=Dr)return Math.round(e/Dr)+"h";if(t>=kr)return Math.round(e/kr)+"m";if(t>=_r)return Math.round(e/_r)+"s";return e+"ms"}function Fg(e){var t=Math.abs(e);if(t>=ur)return Qs(e,t,ur,"day");if(t>=Dr)return Qs(e,t,Dr,"hour");if(t>=kr)return Qs(e,t,kr,"minute");if(t>=_r)return Qs(e,t,_r,"second");return e+" ms"}function Qs(e,t,r,s){var i=t>=r*1.5;return Math.round(e/r)+" "+s+(i?"s":"")}});var On=A(function(K1e,bu){function jg(e){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=i,r.enabled=o,r.humanize=gu(),r.destroy=u,Object.keys(e).forEach((p)=>{r[p]=e[p]}),r.names=[],r.skips=[],r.formatters={};function t(p){let m=0;for(let x=0;x<p.length;x++)m=(m<<5)-m+p.charCodeAt(x),m|=0;return r.colors[Math.abs(m)%r.colors.length]}r.selectColor=t;function r(p){let m,x=null,g,E;function I(...b){if(!I.enabled)return;let C=I,N=Number(new Date),z=N-(m||N);if(C.diff=z,C.prev=m,C.curr=N,m=N,b[0]=r.coerce(b[0]),typeof b[0]!=="string")b.unshift("%O");let j=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(ie,ge)=>{if(ie==="%%")return"%";j++;let ke=r.formatters[ge];if(typeof ke==="function"){let Fe=b[j];ie=ke.call(C,Fe),b.splice(j,1),j--}return ie}),r.formatArgs.call(C,b),(C.log||r.log).apply(C,b)}if(I.namespace=p,I.useColors=r.useColors(),I.color=r.selectColor(p),I.extend=s,I.destroy=r.destroy,Object.defineProperty(I,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(x!==null)return x;if(g!==r.namespaces)g=r.namespaces,E=r.enabled(p);return E},set:(b)=>{x=b}}),typeof r.init==="function")r.init(I);return I}function s(p,m){let x=r(this.namespace+(typeof m>"u"?":":m)+p);return x.log=this.log,x}function i(p){r.save(p),r.namespaces=p,r.names=[],r.skips=[];let m=(typeof p==="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let x of m)if(x[0]==="-")r.skips.push(x.slice(1));else r.names.push(x)}function n(p,m){let x=0,g=0,E=-1,I=0;while(x<p.length)if(g<m.length&&(m[g]===p[x]||m[g]==="*"))if(m[g]==="*")E=g,I=x,g++;else x++,g++;else if(E!==-1)g=E+1,I++,x=I;else return!1;while(g<m.length&&m[g]==="*")g++;return g===m.length}function a(){let p=[...r.names,...r.skips.map((m)=>"-"+m)].join(",");return r.enable(""),p}function o(p){for(let m of r.skips)if(n(p,m))return!1;for(let m of r.names)if(n(p,m))return!0;return!1}function l(p){if(p instanceof Error)return p.stack||p.message;return p}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}bu.exports=jg});var Eu=A(function(_n,Zs){_n.formatArgs=qg;_n.save=Ug;_n.load=Kg;_n.useColors=Rg;_n.storage=Vg();_n.destroy=(()=>{let e=!1;return()=>{if(!e)e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();_n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function Rg(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function qg(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Zs.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,s=0;e[0].replace(/%[a-zA-Z%]/g,(i)=>{if(i==="%%")return;if(r++,i==="%c")s=r}),e.splice(s,0,t)}_n.log=console.debug||console.log||(()=>{});function Ug(e){try{if(e)_n.storage.setItem("debug",e);else _n.storage.removeItem("debug")}catch(t){}}function Kg(){let e;try{e=_n.storage.getItem("debug")||_n.storage.getItem("DEBUG")}catch(t){}if(!e&&typeof process<"u"&&"env"in process)e=process.env.DEBUG;return e}function Vg(){try{return localStorage}catch(e){}}Zs.exports=On()(_n);var{formatters:Yg}=Zs.exports;Yg.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var vu=A(function(kn,ti){var Qg=nn("tty"),ei=nn("util");kn.init=nb;kn.log=rb;kn.formatArgs=eb;kn.save=sb;kn.load=ib;kn.useColors=Zg;kn.destroy=ei.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");kn.colors=[6,2,3,4,5,1];try{let e=(()=>{throw new Error("Cannot require module "+"supports-color");})();if(e&&(e.stderr||e).level>=2)kn.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(e){}kn.inspectOpts=Object.keys(process.env).filter((e)=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,n)=>n.toUpperCase()),s=process.env[t];if(/^(yes|on|true|enabled)$/i.test(s))s=!0;else if(/^(no|off|false|disabled)$/i.test(s))s=!1;else if(s==="null")s=null;else s=Number(s);return e[r]=s,e},{});function Zg(){return"colors"in kn.inspectOpts?Boolean(kn.inspectOpts.colors):Qg.isatty(process.stderr.fd)}function eb(e){let{namespace:t,useColors:r}=this;if(r){let s=this.color,i="\x1B[3"+(s<8?s:"8;5;"+s),n=` ${i};1m${t} \x1B[0m`;e[0]=n+e[0].split(`
6
+ `;else i=String.fromCharCode(s);return++this.state.curLine,this.state.lineStart=this.state.pos,i}jsxReadString(r){let s="",i=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(T.UnterminatedString,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);if(n===r)break;if(n===38)s+=this.input.slice(i,this.state.pos),s+=this.jsxReadEntity(),i=this.state.pos;else if(_r(n))s+=this.input.slice(i,this.state.pos),s+=this.jsxReadNewLine(!1),i=this.state.pos;else++this.state.pos}s+=this.input.slice(i,this.state.pos++),this.finishToken(134,s)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let s=10;if(this.codePointAtPos(this.state.pos)===120)s=16,++this.state.pos;let i=this.readInt(s,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(i)}else{let s=0,i=!1;while(s++<10&&this.state.pos<this.length&&!(i=this.codePointAtPos(this.state.pos)===59))++this.state.pos;if(i){let n=this.input.slice(r,this.state.pos),a=FS[n];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r,s=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(ur(r)||r===45);this.finishToken(141,this.input.slice(s,this.state.pos))}jsxParseIdentifier(){let r=this.startNode();if(this.match(141))r.name=this.state.value;else if(Pn(this.state.type))r.name=zt(this.state.type);else this.unexpected();return this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){let r=this.state.startLoc,s=this.jsxParseIdentifier();if(!this.eat(14))return s;let i=this.startNodeAt(r);return i.namespace=s,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){let r=this.state.startLoc,s=this.jsxParseNamespacedName();if(s.type==="JSXNamespacedName")return s;while(this.eat(16)){let i=this.startNodeAt(r);i.object=s,i.property=this.jsxParseIdentifier(),s=this.finishNode(i,"JSXMemberExpression")}return s}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:if(r=this.startNode(),this.setContext(be.brace),this.next(),r=this.jsxParseExpressionContainer(r,be.j_oTag),r.expression.type==="JSXEmptyExpression")this.raise(lr.AttributeIsEmpty,r);return r;case 143:case 134:return this.parseExprAtom();default:throw this.raise(lr.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(be.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,s){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{let i=this.parseExpression();r.expression=i}return this.setContext(s),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();if(this.match(5))return this.setContext(be.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(be.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute");return r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute")}jsxParseOpeningElementAt(r){let s=this.startNodeAt(r);if(this.eat(144))return this.finishNode(s,"JSXOpeningFragment");return s.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(s)}jsxParseOpeningElementAfterName(r){let s=[];while(!this.match(56)&&!this.match(144))s.push(this.jsxParseAttribute());return r.attributes=s,r.selfClosing=this.eat(56),this.expect(144),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let s=this.startNodeAt(r);if(this.eat(144))return this.finishNode(s,"JSXClosingFragment");return s.name=this.jsxParseElementName(),this.expect(144),this.finishNode(s,"JSXClosingElement")}jsxParseElementAt(r){let s=this.startNodeAt(r),i=[],n=this.jsxParseOpeningElementAt(r),a=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 143:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}i.push(this.jsxParseElementAt(r));break;case 142:i.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();if(this.setContext(be.brace),this.next(),this.match(21))i.push(this.jsxParseSpreadChild(o));else i.push(this.jsxParseExpressionContainer(o,be.j_expr));break}default:this.unexpected()}if(Ht(n)&&!Ht(a)&&a!==null)this.raise(lr.MissingClosingTagFragment,a);else if(!Ht(n)&&Ht(a))this.raise(lr.MissingClosingTagElement,a,{openingTagName:Or(n.name)});else if(!Ht(n)&&!Ht(a)){if(Or(a.name)!==Or(n.name))this.raise(lr.MissingClosingTagElement,a,{openingTagName:Or(n.name)})}}if(Ht(n))s.openingFragment=n,s.closingFragment=a;else s.openingElement=n,s.closingElement=a;if(s.children=i,this.match(47))throw this.raise(lr.UnwrappedAdjacentJSXElements,this.state.startLoc);return Ht(n)?this.finishNode(s,"JSXFragment"):this.finishNode(s,"JSXElement")}jsxParseElement(){let r=this.state.startLoc;return this.next(),this.jsxParseElementAt(r)}setContext(r){let{context:s}=this.state;s[s.length-1]=r}parseExprAtom(r){if(this.match(143))return this.jsxParseElement();else if(this.match(47)&&this.input.charCodeAt(this.state.pos)!==33)return this.replaceToken(143),this.jsxParseElement();else return super.parseExprAtom(r)}skipSpace(){if(!this.curContext().preserveSpace)super.skipSpace()}getTokenFromCode(r){let s=this.curContext();if(s===be.j_expr){this.jsxReadToken();return}if(s===be.j_oTag||s===be.j_cTag){if(vt(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(144);return}if((r===34||r===39)&&s===be.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(r)}updateContext(r){let{context:s,type:i}=this.state;if(i===56&&r===143)s.splice(-2,2,be.j_cTag),this.state.canStartJSXElement=!1;else if(i===143)s.push(be.j_oTag);else if(i===144){let n=s[s.length-1];if(n===be.j_oTag&&r===56||n===be.j_cTag)s.pop(),this.state.canStartJSXElement=s[s.length-1]===be.j_expr;else this.setContext(be.j_expr),this.state.canStartJSXElement=!0}else this.state.canStartJSXElement=fS(i)}};class Hl extends zs{constructor(...e){super(...e);this.tsNames=new Map}}class zl extends Gs{constructor(...e){super(...e);this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new Hl(e)}enter(e){if(e===1024)this.importsStack.push(new Set);super.enter(e)}exit(){let e=super.exit();if(e===1024)this.importsStack.pop();return e}hasImport(e,t){let r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!t&&r>1){for(let s=0;s<r-1;s++)if(this.importsStack[s].has(e))return!0}return!1}declareName(e,t,r){if(t&4096){if(this.hasImport(e,!0))this.parser.raise(T.VarRedeclaration,r,{identifierName:e});this.importsStack[this.importsStack.length-1].add(e);return}let s=this.currentScope(),i=s.tsNames.get(e)||0;if(t&1024){this.maybeExportDefined(s,e),s.tsNames.set(e,i|16);return}if(super.declareName(e,t,r),t&2){if(!(t&1))this.checkRedeclarationInScope(s,e,t,r),this.maybeExportDefined(s,e);i=i|1}if(t&256)i=i|2;if(t&512)i=i|4;if(t&128)i=i|8;if(i)s.tsNames.set(e,i)}isRedeclaredInScope(e,t,r){let s=e.tsNames.get(t);if((s&2)>0){if(r&256){let i=!!(r&512),n=(s&4)>0;return i!==n}return!0}if(r&128&&(s&8)>0)if(e.names.get(t)&2)return!!(r&1);else return!1;if(r&2&&(s&1)>0)return!0;return super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){let{name:t}=e;if(this.hasImport(t))return;let r=this.scopeStack.length;for(let s=r-1;s>=0;s--){let n=this.scopeStack[s].tsNames.get(t);if((n&1)>0||(n&16)>0)return}super.checkLocalExport(e)}}class Gl{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}}function $s(e,t){return(e?2:0)|(t?1:0)}class Ql{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if(typeof e==="string")return this.plugins.has(e);else{let[t,r]=e;if(!this.hasPlugin(t))return!1;let s=this.plugins.get(t);for(let i of Object.keys(r))if((s==null?void 0:s[i])!==r[i])return!1;return!0}}getPluginOption(e,t){var r;return(r=this.plugins.get(e))==null?void 0:r[t]}}function Zl(e,t){if(e.trailingComments===void 0)e.trailingComments=t;else e.trailingComments.unshift(...t)}function US(e,t){if(e.leadingComments===void 0)e.leadingComments=t;else e.leadingComments.unshift(...t)}function os(e,t){if(e.innerComments===void 0)e.innerComments=t;else e.innerComments.unshift(...t)}function Tt(e,t,r){let s=null,i=t.length;while(s===null&&i>0)s=t[--i];if(s===null||s.start>r.start)os(e,r.comments);else Zl(s,r.comments)}class eu extends Ql{addComment(e){if(this.filename)e.loc.filename=this.filename;let{commentsLen:t}=this.state;if(this.comments.length!==t)this.comments.length=t;this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:t}=this.state,r=t.length;if(r===0)return;let s=r-1,i=t[s];if(i.start===e.end)i.leadingNode=e,s--;let{start:n}=e;for(;s>=0;s--){let a=t[s],o=a.end;if(o>n)a.containingNode=e,this.finalizeComment(a),t.splice(s,1);else{if(o===n)a.trailingNode=e;break}}}finalizeComment(e){var t;let{comments:r}=e;if(e.leadingNode!==null||e.trailingNode!==null){if(e.leadingNode!==null)Zl(e.leadingNode,r);if(e.trailingNode!==null)US(e.trailingNode,r)}else{let{containingNode:s,start:i}=e;if(this.input.charCodeAt(this.offsetToSourcePos(i)-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":Tt(s,s.properties,e);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":Tt(s,s.arguments,e);break;case"ImportExpression":Tt(s,[s.source,(t=s.options)!=null?t:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":Tt(s,s.params,e);break;case"ArrayExpression":case"ArrayPattern":Tt(s,s.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Tt(s,s.specifiers,e);break;case"TSEnumDeclaration":Tt(s,s.members,e);break;case"TSEnumBody":Tt(s,s.members,e);break;case"TSInterfaceBody":Tt(s,s.body,e);break;default:{if(s.type==="RecordExpression"){Tt(s,s.properties,e);break}if(s.type==="TupleExpression"){Tt(s,s.elements,e);break}os(s,r)}}else os(s,r)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:t}=this.state,{length:r}=t;if(r===0)return;let s=t[r-1];if(s.leadingNode===e)s.leadingNode=null}takeSurroundingComments(e,t,r){let{commentStack:s}=this.state,i=s.length;if(i===0)return;let n=i-1;for(;n>=0;n--){let a=s[n],o=a.end;if(a.start===r)a.leadingNode=e;else if(o===t)a.trailingNode=e;else if(o<t)break}}}class Cn{constructor(){this.flags=1024,this.startIndex=void 0,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[be.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){if(e)this.flags|=1;else this.flags&=-2}init({strictMode:e,sourceType:t,startIndex:r,startLine:s,startColumn:i}){this.strict=e===!1?!1:e===!0?!0:t==="module",this.startIndex=r,this.curLine=s,this.lineStart=-i,this.startLoc=this.endLoc=new Ut(s,i,r)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){if(e)this.flags|=2;else this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){if(e)this.flags|=4;else this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){if(e)this.flags|=8;else this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){if(e)this.flags|=16;else this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){if(e)this.flags|=32;else this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){if(e)this.flags|=64;else this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){if(e)this.flags|=128;else this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){if(e)this.flags|=256;else this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){if(e)this.flags|=512;else this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){if(e)this.flags|=1024;else this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){if(e)this.flags|=2048;else this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){if(e)this.flags|=4096;else this.flags&=-4097}curPosition(){return new Ut(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let e=new Cn;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var KS=function(t){return t>=48&&t<=57},kl={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Js={bin:(e)=>e===48||e===49,oct:(e)=>e>=48&&e<=55,dec:(e)=>e>=48&&e<=57,hex:(e)=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function Dl(e,t,r,s,i,n){let a=r,o=s,l=i,u="",p=null,m=r,{length:x}=t;for(;;){if(r>=x){n.unterminated(a,o,l),u+=t.slice(m,r);break}let g=t.charCodeAt(r);if(VS(e,g,t,r)){u+=t.slice(m,r);break}if(g===92){u+=t.slice(m,r);let E=YS(t,r,s,i,e==="template",n);if(E.ch===null&&!p)p={pos:r,lineStart:s,curLine:i};else u+=E.ch;({pos:r,lineStart:s,curLine:i}=E),m=r}else if(g===8232||g===8233)++r,++i,s=r;else if(g===10||g===13)if(e==="template"){if(u+=t.slice(m,r)+`
7
+ `,++r,g===13&&t.charCodeAt(r)===10)++r;++i,m=s=r}else n.unterminated(a,o,l);else++r}return{pos:r,str:u,firstInvalidLoc:p,lineStart:s,curLine:i,containsInvalid:!!p}}function VS(e,t,r,s){if(e==="template")return t===96||t===36&&r.charCodeAt(s+1)===123;return t===(e==="double"?34:39)}function YS(e,t,r,s,i,n){let a=!i;t++;let o=(u)=>({pos:t,ch:u,lineStart:r,curLine:s}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
8
+ `);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=hn(e,t,r,s,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=ru(e,t,r,s,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:if(e.charCodeAt(t)===10)++t;case 10:r=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);else n.strictNumericEscape(t-1,r,s);default:if(l>=48&&l<=55){let u=t-1,m=/^[0-7]+/.exec(e.slice(u,t+2))[0],x=parseInt(m,8);if(x>255)m=m.slice(0,-1),x=parseInt(m,8);t+=m.length-1;let g=e.charCodeAt(t);if(m!=="0"||g===56||g===57)if(i)return o(null);else n.strictNumericEscape(u,r,s);return o(String.fromCharCode(x))}return o(String.fromCharCode(l))}}function hn(e,t,r,s,i,n,a,o){let l=t,u;if({n:u,pos:t}=tu(e,t,r,s,16,i,n,!1,o,!a),u===null)if(a)o.invalidEscapeSequence(l,r,s);else t=l-1;return{code:u,pos:t}}function tu(e,t,r,s,i,n,a,o,l,u){let p=t,m=i===16?kl.hex:kl.decBinOct,x=i===16?Js.hex:i===10?Js.dec:i===8?Js.oct:Js.bin,g=!1,E=0;for(let I=0,b=n==null?1/0:n;I<b;++I){let C=e.charCodeAt(t),N;if(C===95&&o!=="bail"){let z=e.charCodeAt(t-1),j=e.charCodeAt(t+1);if(!o){if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,s)}else if(Number.isNaN(j)||!x(j)||m.has(z)||m.has(j)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,s)}++t;continue}if(C>=97)N=C-97+10;else if(C>=65)N=C-65+10;else if(KS(C))N=C-48;else N=1/0;if(N>=i)if(N<=9&&u)return{n:null,pos:t};else if(N<=9&&l.invalidDigit(t,r,s,i))N=0;else if(a)N=0,g=!0;else break;++t,E=E*i+N}if(t===p||n!=null&&t-p!==n||g)return{n:null,pos:t};return{n:E,pos:t}}function ru(e,t,r,s,i,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=hn(e,t,r,s,e.indexOf("}",t)-t,!0,i,n),++t,o!==null&&o>1114111)if(i)n.invalidCodePoint(t,r,s);else return{code:null,pos:t}}else({code:o,pos:t}=hn(e,t,r,s,4,!1,i,n));return{code:o,pos:t}}function ts(e,t,r){return new Ut(r,e-t,e)}var JS=new Set([103,109,115,105,121,117,100,118]);class qt{constructor(e){let t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new as(e.startLoc,e.endLoc)}}class su extends eu{constructor(e,t){super();this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(r,s,i,n)=>{if(!(this.optionFlags&2048))return!1;return this.raise(T.InvalidDigit,ts(r,s,i),{radix:n}),!0},numericSeparatorInEscapeSequence:this.errorBuilder(T.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(T.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(T.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(T.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(r,s,i)=>{this.recordStrictModeErrors(T.StrictNumericEscape,ts(r,s,i))},unterminated:(r,s,i)=>{throw this.raise(T.UnterminatedString,ts(r-1,s,i))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(T.StrictNumericEscape),unterminated:(r,s,i)=>{throw this.raise(T.UnterminatedTemplate,ts(r,s,i))}}),this.state=new Cn,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){if(this.checkKeywordEscapes(),this.optionFlags&256)this.pushToken(new qt(this.state));this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){if(this.match(e))return this.next(),!0;else return!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return on.lastIndex=e,on.test(this.input)?on.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return ln.lastIndex=e,ln.test(this.input)?ln.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)===55296&&++e<this.input.length){let r=this.input.charCodeAt(e);if((r&64512)===56320)t=65536+((t&1023)<<10)+(r&1023)}return t}setStrict(e){if(this.state.strict=e,e)this.state.strictErrors.forEach(([t,r])=>this.raise(t,r)),this.state.strictErrors.clear()}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,!this.isLookahead)this.state.startLoc=this.state.curPosition();if(this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;if(!this.isLookahead)t=this.state.curPosition();let r=this.state.pos,s=this.input.indexOf(e,r+2);if(s===-1)throw this.raise(T.UnterminatedComment,this.state.curPosition());this.state.pos=s+e.length,Ys.lastIndex=r+2;while(Ys.test(this.input)&&Ys.lastIndex<=s)++this.state.curLine,this.state.lineStart=Ys.lastIndex;if(this.isLookahead)return;let i={type:"CommentBlock",value:this.input.slice(r+2,s),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(s+e.length),loc:new as(t,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(i);return i}skipLineComment(e){let t=this.state.pos,r;if(!this.isLookahead)r=this.state.curPosition();let s=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)while(!_r(s)&&++this.state.pos<this.length)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let i=this.state.pos,a={type:"CommentLine",value:this.input.slice(t+e,i),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(i),loc:new as(r,this.state.curPosition())};if(this.optionFlags&256)this.pushToken(a);return a}skipSpace(){let e=this.state.pos,t=this.optionFlags&4096?[]:null;e:while(this.state.pos<this.length){let r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:if(this.input.charCodeAt(this.state.pos+1)===10)++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let s=this.skipBlockComment("*/");if(s!==void 0)this.addComment(s),t==null||t.push(s);break}case 47:{let s=this.skipLineComment(2);if(s!==void 0)this.addComment(s),t==null||t.push(s);break}default:break e}break;default:if(RS(r))++this.state.pos;else if(r===45&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===45&&this.input.charCodeAt(s+2)===62&&(e===0||this.state.lineStart>e)){let i=this.skipLineComment(3);if(i!==void 0)this.addComment(i),t==null||t.push(i)}else break e}else if(r===60&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let i=this.skipLineComment(4);if(i!==void 0)this.addComment(i),t==null||t.push(i)}else break e}else break e}}if((t==null?void 0:t.length)>0){let r=this.state.pos,s={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(r),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let r=this.state.type;if(this.state.type=e,this.state.value=t,!this.isLookahead)this.updateContext(r)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(T.UnexpectedDigitAfterHash,this.state.curPosition());if(t===123||t===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(t===123?T.RecordExpressionHashIncorrectStartSyntaxType:T.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());if(this.state.pos+=2,t===123)this.finishToken(7);else this.finishToken(1)}else if(vt(t))++this.state.pos,this.finishToken(139,this.readWord1(t));else if(t===92)++this.state.pos,this.finishToken(139,this.readWord1());else this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}if(e===46&&this.input.charCodeAt(this.state.pos+2)===46)this.state.pos+=3,this.finishToken(21);else++this.state.pos,this.finishToken(16)}readToken_slash(){if(this.input.charCodeAt(this.state.pos+1)===61)this.finishOp(31,2);else this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let t=this.state.pos;this.state.pos+=1;while(!_r(e)&&++this.state.pos<this.length)e=this.input.charCodeAt(this.state.pos);let r=this.input.slice(t+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){let t=e===42?55:54,r=1,s=this.input.charCodeAt(this.state.pos+1);if(e===42&&s===42)r++,s=this.input.charCodeAt(this.state.pos+2),t=57;if(s===61&&!this.state.inType)r++,t=e===37?33:30;this.finishOp(t,r)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){if(this.input.charCodeAt(this.state.pos+2)===61)this.finishOp(30,3);else this.finishOp(e===124?41:42,2);return}if(e===124){if(t===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&t===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(T.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&t===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(T.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(t===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);if(e===61&&!this.state.inType)this.finishOp(32,2);else if(e===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){if(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94)this.unexpected()}else this.finishOp(44,1)}readToken_atSign(){if(this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}]))this.finishOp(38,2);else this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}if(t===61)this.finishOp(30,2);else this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(t===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===62){let r=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+r)===61){this.finishOp(30,r+1);return}this.finishOp(52,r);return}if(t===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&t===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);if(e===63)if(t===61)this.finishOp(30,3);else this.finishOp(40,2);else if(e===46&&!(t>=48&&t<=57))this.state.pos+=2,this.finishToken(18);else++this.state.pos,this.finishToken(17)}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(T.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(T.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:if(this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58)this.finishOp(15,2);else++this.state.pos,this.finishToken(14);return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let t=this.input.charCodeAt(this.state.pos+1);if(t===120||t===88){this.readRadixNumber(16);return}if(t===111||t===79){this.readRadixNumber(8);return}if(t===98||t===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(vt(e)){this.readWord(e);return}}throw this.raise(T.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){let e=this.state.startLoc,t=this.state.start+1,r,s,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(T.UnterminatedRegExp,Xe(e,1));let l=this.input.charCodeAt(i);if(_r(l))throw this.raise(T.UnterminatedRegExp,Xe(e,1));if(r)r=!1;else{if(l===91)s=!0;else if(l===93&&s)s=!1;else if(l===47&&!s)break;r=l===92}}let n=this.input.slice(t,i);++i;let a="",o=()=>Xe(e,i+2-t);while(i<this.length){let l=this.codePointAtPos(i),u=String.fromCharCode(l);if(JS.has(l)){if(l===118){if(a.includes("u"))this.raise(T.IncompatibleRegExpUVFlags,o())}else if(l===117){if(a.includes("v"))this.raise(T.IncompatibleRegExpUVFlags,o())}if(a.includes(u))this.raise(T.DuplicateRegExpFlags,o())}else if(ur(l)||l===92)this.raise(T.MalformedRegExpFlags,o());else break;++i,a+=u}this.state.pos=i,this.finishToken(138,{pattern:n,flags:a})}readInt(e,t,r=!1,s=!0){let{n:i,pos:n}=tu(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,s,this.errorHandlers_readInt,!1);return this.state.pos=n,i}readRadixNumber(e){let t=this.state.pos,r=this.state.curPosition(),s=!1;this.state.pos+=2;let i=this.readInt(e);if(i==null)this.raise(T.InvalidDigit,Xe(r,2),{radix:e});let n=this.input.charCodeAt(this.state.pos);if(n===110)++this.state.pos,s=!0;else if(n===109)throw this.raise(T.InvalidDecimal,r);if(vt(this.codePointAtPos(this.state.pos)))throw this.raise(T.NumberIdentifier,this.state.curPosition());if(s){let a=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,a);return}this.finishToken(135,i)}readNumber(e){let t=this.state.pos,r=this.state.curPosition(),s=!1,i=!1,n=!1,a=!1;if(!e&&this.readInt(10)===null)this.raise(T.InvalidNumber,this.state.curPosition());let o=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(o){let x=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(T.StrictOctalLiteral,r),!this.state.strict){let g=x.indexOf("_");if(g>0)this.raise(T.ZeroDigitNumericSeparator,Xe(r,g))}a=o&&!/[89]/.test(x)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!a)++this.state.pos,this.readInt(10),s=!0,l=this.input.charCodeAt(this.state.pos);if((l===69||l===101)&&!a){if(l=this.input.charCodeAt(++this.state.pos),l===43||l===45)++this.state.pos;if(this.readInt(10)===null)this.raise(T.InvalidOrMissingExponent,r);s=!0,n=!0,l=this.input.charCodeAt(this.state.pos)}if(l===110){if(s||o)this.raise(T.InvalidBigIntLiteral,r);++this.state.pos,i=!0}if(l===109){if(this.expectPlugin("decimal",this.state.curPosition()),n||o)this.raise(T.InvalidDecimal,r);++this.state.pos;var u=!0}if(vt(this.codePointAtPos(this.state.pos)))throw this.raise(T.NumberIdentifier,this.state.curPosition());let p=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(i){this.finishToken(136,p);return}if(u){this.finishToken(137,p);return}let m=a?parseInt(p,8):parseFloat(p);this.finishToken(135,m)}readCodePoint(e){let{code:t,pos:r}=ru(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){let{str:t,pos:r,curLine:s,lineStart:i}=Dl(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=i,this.state.curLine=s,this.finishToken(134,t)}readTemplateContinuation(){if(!this.match(8))this.unexpected(null,8);this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:s,curLine:i,lineStart:n}=Dl("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);if(this.state.pos=s+1,this.state.lineStart=n,this.state.curLine=i,r)this.state.firstInvalidTemplateEscapePos=new Ut(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos));if(this.input.codePointAt(s)===96)this.finishToken(24,r?null:e+t+"`");else this.state.pos++,this.finishToken(25,r?null:e+t+"${")}recordStrictModeErrors(e,t){let r=t.index;if(this.state.strict&&!this.state.strictErrors.has(r))this.raise(e,t);else this.state.strictErrors.set(r,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="",r=this.state.pos,s=this.state.pos;if(e!==void 0)this.state.pos+=e<=65535?1:2;while(this.state.pos<this.length){let i=this.codePointAtPos(this.state.pos);if(ur(i))this.state.pos+=i<=65535?1:2;else if(i===92){this.state.containsEsc=!0,t+=this.input.slice(s,this.state.pos);let n=this.state.curPosition(),a=this.state.pos===r?vt:ur;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(T.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;let o=this.readCodePoint(!0);if(o!==null){if(!a(o))this.raise(T.EscapedCharNotAnIdentifier,n);t+=String.fromCodePoint(o)}s=this.state.pos}else break}return t+this.input.slice(s,this.state.pos)}readWord(e){let t=this.readWord1(e),r=Tn.get(t);if(r!==void 0)this.finishToken(r,zt(r));else this.finishToken(132,t)}checkKeywordEscapes(){let{type:e}=this.state;if(Pn(e)&&this.state.containsEsc)this.raise(T.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:zt(e)})}raise(e,t,r={}){let s=t instanceof Ut?t:t.loc.start,i=e(s,r);if(!(this.optionFlags&2048))throw i;if(!this.isLookahead)this.state.errors.push(i);return i}raiseOverwrite(e,t,r={}){let s=t instanceof Ut?t:t.loc.start,i=s.index,n=this.state.errors;for(let a=n.length-1;a>=0;a--){let o=n[a];if(o.loc.index===i)return n[a]=e(s,r);if(o.loc.index<i)break}return this.raise(e,t,r)}updateContext(e){}unexpected(e,t){throw this.raise(T.UnexpectedToken,e!=null?e:this.state.startLoc,{expected:t?zt(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(T.MissingPlugin,t!=null?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((t)=>this.hasPlugin(t)))throw this.raise(T.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,r,s)=>{this.raise(e,ts(t,r,s))}}}class iu{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class nu{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new iu)}exit(){let e=this.stack.pop(),t=this.current();for(let[r,s]of Array.from(e.undefinedPrivateNames))if(t){if(!t.undefinedPrivateNames.has(r))t.undefinedPrivateNames.set(r,s)}else this.parser.raise(T.InvalidPrivateFieldResolution,s,{identifierName:r})}declarePrivateName(e,t,r){let{privateNames:s,loneAccessors:i,undefinedPrivateNames:n}=this.current(),a=s.has(e);if(t&3){let o=a&&i.get(e);if(o){let l=o&4,u=t&4,p=o&3,m=t&3;if(a=p===m||l!==u,!a)i.delete(e)}else if(!a)i.set(e,t)}if(a)this.parser.raise(T.PrivateNameRedeclaration,r,{identifierName:e});s.add(e),n.delete(e)}usePrivateName(e,t){let r;for(r of this.stack)if(r.privateNames.has(e))return;if(r)r.undefinedPrivateNames.set(e,t);else this.parser.raise(T.InvalidPrivateFieldResolution,t,{identifierName:e})}}class us{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}}class In extends us{constructor(e){super(e);this.declarationErrors=new Map}recordDeclarationError(e,t){let r=t.index;this.declarationErrors.set(r,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class au{constructor(e){this.parser=void 0,this.stack=[new us],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){let r=t.loc.start,{stack:s}=this,i=s.length-1,n=s[i];while(!n.isCertainlyParameterDeclaration()){if(n.canBeArrowParameterDeclaration())n.recordDeclarationError(e,r);else return;n=s[--i]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){let{stack:r}=this,s=r[r.length-1],i=t.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(e,i);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(e,i);else return}recordAsyncArrowParametersError(e){let{stack:t}=this,r=t.length-1,s=t[r];while(s.canBeArrowParameterDeclaration()){if(s.type===2)s.recordDeclarationError(T.AwaitBindingIdentifier,e);s=t[--r]}}validateAsPattern(){let{stack:e}=this,t=e[e.length-1];if(!t.canBeArrowParameterDeclaration())return;t.iterateErrors(([r,s])=>{this.parser.raise(r,s);let i=e.length-2,n=e[i];while(n.canBeArrowParameterDeclaration())n.clearDeclarationError(s.index),n=e[--i]})}}function WS(){return new us(3)}function XS(){return new In(1)}function $S(){return new In(2)}function ou(){return new us}class lu extends su{addExtra(e,t,r,s=!0){if(!e)return;let{extra:i}=e;if(i==null)i={},e.extra=i;if(s)i[t]=r;else Object.defineProperty(i,t,{enumerable:s,value:r})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){let r=this.input.charCodeAt(e+t.length);return!(ur(r)||(r&64512)===55296)}return!1}isLookaheadContextual(e){let t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){if(this.isContextual(e))return this.next(),!0;return!1}expectContextual(e,t){if(!this.eatContextual(e)){if(t!=null)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return _l(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return _l(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){if(e?this.isLineTerminator():this.eat(13))return;this.raise(T.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){if(!this.eat(e))this.unexpected(t,e)}tryParse(e,t=this.state.clone()){let r={node:null};try{let s=e((i=null)=>{throw r.node=i,r});if(this.state.errors.length>t.errors.length){let i=this.state;return this.state=t,this.state.tokensLength=i.tokensLength,{node:s,error:i.errors[t.errors.length],thrown:!1,aborted:!1,failState:i}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let i=this.state;if(this.state=t,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:i};if(s===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:i};throw s}}checkExpressionErrors(e,t){if(!e)return!1;let{shorthandAssignLoc:r,doubleProtoLoc:s,privateKeyLoc:i,optionalParametersLoc:n,voidPatternLoc:a}=e,o=!!r||!!s||!!n||!!i||!!a;if(!t)return o;if(r!=null)this.raise(T.InvalidCoverInitializedName,r);if(s!=null)this.raise(T.DuplicateProto,s);if(i!=null)this.raise(T.UnexpectedPrivateField,i);if(n!=null)this.unexpected(n);if(a!=null)this.raise(T.InvalidCoverDiscardElement,a)}isLiteralPropertyName(){return ql(this.state.type)}isPrivateName(e){return e.type==="PrivateName"}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return(e.type==="MemberExpression"||e.type==="OptionalMemberExpression")&&this.isPrivateName(e.property)}isObjectProperty(e){return e.type==="ObjectProperty"}isObjectMethod(e){return e.type==="ObjectMethod"}initializeScopes(e=this.options.sourceType==="module"){let t=this.state.labels;this.state.labels=[];let r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=e;let i=this.scope,n=this.getScopeHandler();this.scope=new n(this,e);let a=this.prodParam;this.prodParam=new Gl;let o=this.classScope;this.classScope=new nu(this);let l=this.expressionScope;return this.expressionScope=new au(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=s,this.scope=i,this.prodParam=a,this.classScope=o,this.expressionScope=l}}enterInitialScopes(){let e=0;if(this.inModule||this.optionFlags&1)e|=2;if(this.optionFlags&32)e|=1;let t=!this.inModule&&this.options.sourceType==="commonjs";if(t||this.optionFlags&2)e|=4;this.prodParam.enter(e);let r=t?514:1;if(this.optionFlags&4)r|=512;this.scope.enter(r)}checkDestructuringPrivate(e){let{privateKeyLoc:t}=e;if(t!==null)this.expectPlugin("destructuringPrivate",t)}}class ns{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class ls{constructor(e,t,r){if(this.type="",this.start=t,this.end=0,this.loc=new as(r),(e==null?void 0:e.optionFlags)&128)this.range=[t,0];if(e!=null&&e.filename)this.loc.filename=e.filename}}var dn=ls.prototype;dn.__clone=function(){let e=new ls(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,s=t.length;r<s;r++){let i=t[r];if(i!=="leadingComments"&&i!=="trailingComments"&&i!=="innerComments")e[i]=this[i]}return e};class uu extends lu{startNode(){let e=this.state.startLoc;return new ls(this,e.index,e)}startNodeAt(e){return new ls(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,r){if(e.type=t,e.end=r.index,e.loc.end=r,this.optionFlags&128)e.range[1]=r.index;if(this.optionFlags&4096)this.processComment(e);return e}resetStartLocation(e,t){if(e.start=t.index,e.loc.start=t,this.optionFlags&128)e.range[0]=t.index}resetEndLocation(e,t=this.state.lastTokEndLoc){if(e.end=t.index,e.loc.end=t,this.optionFlags&128)e.range[1]=t.index}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){let{type:t,start:r,end:s,loc:i,range:n,name:a}=e,o=Object.create(dn);if(o.type=t,o.start=r,o.end=s,o.loc=i,o.range=n,o.name=a,e.extra)o.extra=e.extra;return o}cloneStringLiteral(e){let{type:t,start:r,end:s,loc:i,range:n,extra:a}=e,o=Object.create(dn);return o.type=t,o.start=r,o.end=s,o.loc=i,o.range=n,o.extra=a,o.value=e.value,o}}var mn=(e)=>e.type==="ParenthesizedExpression"?mn(e.expression):e;class cu extends uu{toAssignable(e,t=!1){var r,s;let i=void 0;if(e.type==="ParenthesizedExpression"||(r=e.extra)!=null&&r.parenthesized)if(i=mn(e),t){if(i.type==="Identifier")this.expressionScope.recordArrowParameterBindingError(T.InvalidParenthesizedAssignment,e);else if(i.type!=="CallExpression"&&i.type!=="MemberExpression"&&!this.isOptionalMemberExpression(i))this.raise(T.InvalidParenthesizedAssignment,e)}else this.raise(T.InvalidParenthesizedAssignment,e);switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let a=0,o=e.properties.length,l=o-1;a<o;a++){var n;let u=e.properties[a],p=a===l;if(this.toAssignableObjectExpressionProp(u,p,t),p&&u.type==="RestElement"&&(n=e.extra)!=null&&n.trailingCommaLoc)this.raise(T.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:a,value:o}=e;if(this.isPrivateName(a))this.classScope.usePrivateName(this.getPrivateNameSV(a),a.loc.start);this.toAssignable(o,t);break}case"SpreadElement":throw Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,(s=e.extra)==null?void 0:s.trailingCommaLoc,t);break;case"AssignmentExpression":if(e.operator!=="=")this.raise(T.MissingEqInAssignment,e.left.loc.end);if(this.castNodeTo(e,"AssignmentPattern"),delete e.operator,e.left.type==="VoidPattern")this.raise(T.VoidPatternInitializer,e.left);this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(i,t);break}}toAssignableObjectExpressionProp(e,t,r){if(e.type==="ObjectMethod")this.raise(e.kind==="get"||e.kind==="set"?T.PatternHasAccessor:T.PatternHasMethod,e.key);else if(e.type==="SpreadElement"){this.castNodeTo(e,"RestElement");let s=e.argument;if(this.checkToRestConversion(s,!1),this.toAssignable(s,r),!t)this.raise(T.RestTrailingComma,e)}else this.toAssignable(e,r)}toAssignableList(e,t,r){let s=e.length-1;for(let i=0;i<=s;i++){let n=e[i];if(!n)continue;if(this.toAssignableListItem(e,i,r),n.type==="RestElement"){if(i<s)this.raise(T.RestTrailingComma,n);else if(t)this.raise(T.RestTrailingComma,t)}}}toAssignableListItem(e,t,r){let s=e[t];if(s.type==="SpreadElement"){this.castNodeTo(s,"RestElement");let i=s.argument;this.checkToRestConversion(i,!0),this.toAssignable(i,r)}else this.toAssignable(s,r)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let r=e.properties.length-1;return e.properties.every((s,i)=>s.type!=="ObjectMethod"&&(i===r||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((r)=>r===null||this.isAssignable(r));case"AssignmentExpression":return e.operator==="=";case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(let r of e)if((r==null?void 0:r.type)==="ArrayExpression")this.toReferencedListDeep(r.elements)}parseSpread(e){let t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){let e=this.startNode();this.next();let t=this.parseBindingAtom();if(t.type==="VoidPattern")this.raise(T.UnexpectedVoidPattern,t);return e.argument=t,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,r){let s=r&1,i=[],n=!0;while(!this.eat(e)){if(n)n=!1;else this.expect(12);if(s&&this.match(12))i.push(null);else if(this.eat(e))break;else if(this.match(21)){let a=this.parseRestBinding();if(this.hasPlugin("flow")||r&2)a=this.parseFunctionParamType(a);if(i.push(a),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{let a=[];if(r&2){if(this.match(26)&&this.hasPlugin("decorators"))this.raise(T.UnsupportedParameterDecorator,this.state.startLoc);while(this.match(26))a.push(this.parseDecorator())}i.push(this.parseBindingElement(r,a))}}return i}parseBindingRestProperty(e){if(this.next(),this.hasPlugin("discardBinding")&&this.match(88))e.argument=this.parseVoidPattern(null),this.raise(T.UnexpectedVoidPattern,e.argument);else e.argument=this.parseIdentifier();return this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){let{type:e,startLoc:t}=this.state;if(e===21)return this.parseBindingRestProperty(this.startNode());let r=this.startNode();if(e===139)this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),r.key=this.parsePrivateName();else this.parsePropertyName(r);return r.method=!1,this.parseObjPropValue(r,t,!1,!1,!0,!1)}parseBindingElement(e,t){let r=this.parseMaybeDefault();if(this.hasPlugin("flow")||e&2)this.parseFunctionParamType(r);if(t.length)r.decorators=t,this.resetStartLocationFromNode(r,t[0]);return this.parseMaybeDefault(r.loc.start,r)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(e!=null||(e=this.state.startLoc),t=t!=null?t:this.parseBindingAtom(),!this.eat(29))return t;let r=this.startNodeAt(e);if(t.type==="VoidPattern")this.raise(T.VoidPatternInitializer,t);return r.left=t,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(e,t,r,s){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!t&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(e){return e.type==="OptionalMemberExpression"}checkLVal(e,t,r=64,s=!1,i=!1,n=!1,a=!1){var o;let l=e.type;if(this.isObjectMethod(e))return;let u=this.isOptionalMemberExpression(e);if(u||l==="MemberExpression"){if(u){if(this.expectPlugin("optionalChainingAssign",e.loc.start),t.type!=="AssignmentExpression")this.raise(T.InvalidLhsOptionalChaining,e,{ancestor:t})}if(r!==64)this.raise(T.InvalidPropertyBindingPattern,e);return}if(l==="Identifier"){this.checkIdentifier(e,r,i);let{name:b}=e;if(s)if(s.has(b))this.raise(T.ParamDupe,e);else s.add(b);return}else if(l==="VoidPattern"&&t.type==="CatchClause")this.raise(T.VoidPatternCatchClauseParam,e);let p=mn(e);a||(a=p.type==="CallExpression"&&(p.callee.type==="Import"||p.callee.type==="Super"));let m=this.isValidLVal(l,a,!(n||(o=e.extra)!=null&&o.parenthesized)&&t.type==="AssignmentExpression",r);if(m===!0)return;if(m===!1){let b=r===64?T.InvalidLhs:T.InvalidLhsBinding;this.raise(b,e,{ancestor:t});return}let x,g;if(typeof m==="string")x=m,g=l==="ParenthesizedExpression";else[x,g]=m;let E=l==="ArrayPattern"||l==="ObjectPattern"?{type:l}:t,I=e[x];if(Array.isArray(I)){for(let b of I)if(b)this.checkLVal(b,E,r,s,i,g,!0)}else if(I)this.checkLVal(I,E,r,s,i,g,a)}checkIdentifier(e,t,r=!1){if(this.state.strict&&(r?Wl(e.name,this.inModule):Jl(e.name)))if(t===64)this.raise(T.StrictEvalArguments,e,{referenceName:e.name});else this.raise(T.StrictEvalArgumentsBinding,e,{bindingName:e.name});if(t&8192&&e.name==="let")this.raise(T.LetInLexicalBinding,e);if(!(t&64))this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(T.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){if(!this.match(12))return!1;return this.raise(this.lookaheadCharCode()===e?T.RestTrailingComma:T.ElementAfterRest,this.state.startLoc),!0}}var un=/in(?:stanceof)?|as|satisfies/y;function HS(e){if(e==null)throw Error(`Unexpected ${e} value.`);return e}function Ll(e){if(!e)throw Error("Assert fail")}var J=xt`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:(e)=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:(e)=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:(e)=>`'${e}' declarations are not allowed in ambient contexts.`});function zS(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function Ml(e){return e==="private"||e==="public"||e==="protected"}function GS(e){return e==="in"||e==="out"}var QS=(e)=>class extends e{constructor(...r){super(...r);this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:J.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:J.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:J.InvalidModifierOnTypeParameter})}getScopeHandler(){return zl}tsIsIdentifier(){return Ee(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){if(this.next(),this.hasPrecedingLineBreak())return!1;return this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){if(this.match(106))return this.next(),this.tsTokenCanFollowModifier();return this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,s,i){if(!Ee(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let n=this.state.value;if(r.includes(n)){if(i&&this.match(106))return;if(s&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}return}tsParseModifiers({allowedModifiers:r,disallowedModifiers:s,stopOnStartOfClassStaticBlock:i,errorTemplate:n=J.InvalidModifierOnTypeMember},a){let o=(u,p,m,x)=>{if(p===m&&a[x])this.raise(J.InvalidModifiersOrder,u,{orderedModifiers:[m,x]})},l=(u,p,m,x)=>{if(a[m]&&p===x||a[x]&&p===m)this.raise(J.IncompatibleModifiers,u,{modifiers:[m,x]})};for(;;){let{startLoc:u}=this.state,p=this.tsParseModifier(r.concat(s!=null?s:[]),i,a.static);if(!p)break;if(Ml(p))if(a.accessibility)this.raise(J.DuplicateAccessibilityModifier,u,{modifier:p});else o(u,p,p,"override"),o(u,p,p,"static"),o(u,p,p,"readonly"),a.accessibility=p;else if(GS(p)){if(a[p])this.raise(J.DuplicateModifier,u,{modifier:p});a[p]=!0,o(u,p,"in","out")}else{if(hasOwnProperty.call(a,p))this.raise(J.DuplicateModifier,u,{modifier:p});else o(u,p,"static","readonly"),o(u,p,"static","override"),o(u,p,"override","readonly"),o(u,p,"abstract","override"),l(u,p,"declare","override"),l(u,p,"static","abstract");a[p]=!0}if(s!=null&&s.includes(p))this.raise(n,u,{modifier:p})}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,s){let i=[];while(!this.tsIsListTerminator(r))i.push(s());return i}tsParseDelimitedList(r,s,i){return HS(this.tsParseDelimitedListWorker(r,s,!0,i))}tsParseDelimitedListWorker(r,s,i,n){let a=[],o=-1;for(;;){if(this.tsIsListTerminator(r))break;o=-1;let l=s();if(l==null)return;if(a.push(l),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;if(i)this.expect(12);return}if(n)n.value=o;return a}tsParseBracketedList(r,s,i,n,a){if(!n)if(i)this.expect(0);else this.expect(47);let o=this.tsParseDelimitedList(r,s,a);if(i)this.expect(3);else this.expect(48);return o}tsParseImportType(){let r=this.startNode();if(this.expect(83),this.expect(10),!this.match(134))this.raise(J.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom();else r.argument=this.parseStringLiteral(this.state.value);if(this.eat(12))r.options=this.tsParseImportTypeOptions();else r.options=null;if(this.expect(11),this.eat(16))r.qualifier=this.tsParseEntityName(3);if(this.match(47))r.typeParameters=this.tsParseTypeArguments();return this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let s=this.startNode();if(this.isContextual(76))s.method=!1,s.key=this.parseIdentifier(!0),s.computed=!1,s.shorthand=!1;else this.unexpected(null,76);return this.expect(14),s.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(s)],this.eat(12),this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),s=[];this.expect(5);while(!this.match(8)){let i=this.state.type;if(Ee(i)||i===134)s.push(super.parsePropertyDefinition(null));else this.unexpected();this.eat(12)}return r.properties=s,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let s;if(r&1&&this.match(78))if(r&2)s=this.parseIdentifier(!0);else{let i=this.startNode();this.next(),s=this.finishNode(i,"ThisExpression")}else s=this.parseIdentifier(!!(r&1));while(this.eat(16)){let i=this.startNodeAtNode(s);i.left=s,i.right=this.parseIdentifier(!!(r&1)),s=this.finishNode(i,"TSQualifiedName")}return s}tsParseTypeReference(){let r=this.startNode();if(r.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47))r.typeParameters=this.tsParseTypeArguments();return this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let s=this.startNodeAtNode(r);return s.parameterName=r,s.typeAnnotation=this.tsParseTypeAnnotation(!1),s.asserts=!1,this.finishNode(s,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();if(this.expect(87),this.match(83))r.exprName=this.tsParseImportType();else r.exprName=this.tsParseEntityName(3);if(!this.hasPrecedingLineBreak()&&this.match(47))r.typeParameters=this.tsParseTypeArguments();return this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let s=this.startNode();return r(s),s.name=this.tsParseTypeParameterName(),s.constraint=this.tsEatThenParseType(81),s.default=this.tsEatThenParseType(29),this.finishNode(s,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let s=this.startNode();if(this.match(47)||this.match(143))this.next();else this.unexpected();let i={value:-1};if(s.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,i),s.params.length===0)this.raise(J.EmptyTypeParameters,s);if(i.value!==-1)this.addExtra(s,"trailingComma",i.value);return this.finishNode(s,"TSTypeParameterDeclaration")}tsFillSignature(r,s){let i=r===19,n="parameters",a="typeAnnotation";if(s.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),s.parameters=this.tsParseBindingListForSignature(),i)s.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(r);else if(this.match(r))s.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(r)}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let s of r){let{type:i}=s;if(i==="AssignmentPattern"||i==="TSParameterProperty")this.raise(J.UnsupportedSignatureParameterKind,s,{type:i})}return r}tsParseTypeMemberSemicolon(){if(!this.eat(12)&&!this.isLineTerminator())this.expect(13)}tsParseSignatureMember(r,s){return this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon(),this.finishNode(s,r)}tsIsUnambiguouslyIndexSignature(){if(this.next(),Ee(this.state.type))return this.next(),this.match(14);return!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let s=this.parseIdentifier();s.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(s),this.expect(3),r.parameters=[s];let i=this.tsTryParseTypeAnnotation();if(i)r.typeAnnotation=i;return this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,s){if(this.eat(17))r.optional=!0;if(this.match(10)||this.match(47)){if(s)this.raise(J.ReadonlyForMethodSignature,r);let i=r;if(i.kind&&this.match(47))this.raise(J.AccessorCannotHaveTypeParameters,this.state.curPosition());this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon();let n="parameters",a="typeAnnotation";if(i.kind==="get"){if(i[n].length>0){if(this.raise(T.BadGetterArity,this.state.curPosition()),this.isThisParam(i[n][0]))this.raise(J.AccessorCannotDeclareThisParameter,this.state.curPosition())}}else if(i.kind==="set"){if(i[n].length!==1)this.raise(T.BadSetterArity,this.state.curPosition());else{let o=i[n][0];if(this.isThisParam(o))this.raise(J.AccessorCannotDeclareThisParameter,this.state.curPosition());if(o.type==="Identifier"&&o.optional)this.raise(J.SetAccessorCannotHaveOptionalParameter,this.state.curPosition());if(o.type==="RestElement")this.raise(J.SetAccessorCannotHaveRestParameter,this.state.curPosition())}if(i[a])this.raise(J.SetAccessorCannotHaveReturnType,i[a])}else i.kind="method";return this.finishNode(i,"TSMethodSignature")}else{let i=r;if(s)i.readonly=!0;let n=this.tsTryParseTypeAnnotation();if(n)i.typeAnnotation=n;return this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let i=this.startNode();if(this.next(),this.match(10)||this.match(47))return this.tsParseSignatureMember("TSConstructSignatureDeclaration",r);else return r.key=this.createIdentifier(i,"new"),this.tsParsePropertyOrMethodSignature(r,!1)}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let s=this.tsTryParseIndexSignature(r);if(s)return s;if(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()){if(r.kind=r.key.name,super.parsePropertyName(r),!this.match(10)&&!this.match(47))this.unexpected(null,10)}return this.tsParsePropertyOrMethodSignature(r,!!r.readonly)}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){if(this.next(),this.eat(53))return this.isContextual(122);if(this.isContextual(122))this.next();if(!this.match(0))return!1;if(this.next(),!this.tsIsIdentifier())return!1;return this.next(),this.match(58)}tsParseMappedType(){let r=this.startNode();if(this.expect(5),this.match(53))r.readonly=this.state.value,this.next(),this.expectContextual(122);else if(this.eatContextual(122))r.readonly=!0;this.expect(0);let s=this.startNode();if(s.name=this.tsParseTypeParameterName(),s.constraint=this.tsExpectThenParseType(58),r.typeParameter=this.finishNode(s,"TSTypeParameter"),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53))r.optional=this.state.value,this.next(),this.expect(17);else if(this.eat(17))r.optional=!0;return r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let s=!1;return r.elementTypes.forEach((i)=>{let{type:n}=i;if(s&&n!=="TSRestType"&&n!=="TSOptionalType"&&!(n==="TSNamedTupleMember"&&i.optional))this.raise(J.OptionalTypeBeforeRequired,i);s||(s=n==="TSNamedTupleMember"&&i.optional||n==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,s=this.eat(21),{startLoc:i}=this.state,n,a,o,l,p=St(this.state.type)?this.lookaheadCharCode():null;if(p===58)n=!0,o=!1,a=this.parseIdentifier(!0),this.expect(14),l=this.tsParseType();else if(p===63){o=!0;let m=this.state.value,x=this.tsParseNonArrayType();if(this.lookaheadCharCode()===58)n=!0,a=this.createIdentifier(this.startNodeAt(i),m),this.expect(17),this.expect(14),l=this.tsParseType();else n=!1,l=x,this.expect(17)}else l=this.tsParseType(),o=this.eat(17),n=this.eat(14);if(n){let m;if(a){if(m=this.startNodeAt(i),m.optional=o,m.label=a,m.elementType=l,this.eat(17))m.optional=!0,this.raise(J.TupleOptionalAfterType,this.state.lastTokStartLoc)}else m=this.startNodeAt(i),m.optional=o,this.raise(J.InvalidTupleMemberLabel,l),m.label=l,m.elementType=this.tsParseType();l=this.finishNode(m,"TSNamedTupleMember")}else if(o){let m=this.startNodeAt(i);m.typeAnnotation=l,l=this.finishNode(m,"TSOptionalType")}if(s){let m=this.startNodeAt(r);m.typeAnnotation=l,l=this.finishNode(m,"TSRestType")}return l}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,s){let i=this.startNode();if(r==="TSConstructorType"){if(i.abstract=!!s,s)this.next();this.next()}return this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,i)),this.finishNode(i,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}parseTemplateSubstitution(){if(this.state.inType)return this.tsParseType();return super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.tsParseThisTypePredicate(r);else return r}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),s=this.lookahead();if(s.type!==135&&s.type!==136)this.unexpected();return r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(Ee(r)||r===88||r===84){let s=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":zS(this.state.value);if(s!==void 0&&this.lookaheadCharCode()!==46){let i=this.startNode();return this.next(),this.finishNode(i,s)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:r}=this.state,s=this.tsParseNonArrayType();while(!this.hasPrecedingLineBreak()&&this.eat(0))if(this.match(3)){let i=this.startNodeAt(r);i.elementType=s,this.expect(3),s=this.finishNode(i,"TSArrayType")}else{let i=this.startNodeAt(r);i.objectType=s,i.indexType=this.tsParseType(),this.expect(3),s=this.finishNode(i,"TSIndexedAccessType")}return s}tsParseTypeOperator(){let r=this.startNode(),s=this.state.value;if(this.next(),r.operator=s,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),s==="readonly")this.tsCheckTypeAnnotationForReadOnly(r);return this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(J.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let s=this.startNode();return s.name=this.tsParseTypeParameterName(),s.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(s,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return xS(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,s,i){let n=this.startNode(),a=this.eat(i),o=[];do o.push(s());while(this.eat(i));if(o.length===1&&!a)return o[0];return n.types=o,this.finishNode(n,r)}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){if(this.match(47))return!0;return this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Ee(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,s=r.length;try{return this.parseObjectLike(8,!0),r.length===s}catch(i){return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,s=r.length;try{return super.parseBindingList(3,93,1),r.length===s}catch(i){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)){if(this.next(),this.match(19))return!0}}return!1}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let s=this.startNode();this.expect(r);let i=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();if(l.type==="TSThisType")i.parameterName=l,i.asserts=!0,i.typeAnnotation=null,l=this.finishNode(i,"TSTypePredicate");else this.resetStartLocationFromNode(l,i),l.asserts=!0;return s.typeAnnotation=l,this.finishNode(s,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a){if(!n)return this.tsParseTypeAnnotation(!1,s);return i.parameterName=this.parseIdentifier(),i.asserts=n,i.typeAnnotation=null,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")}let o=this.tsParseTypeAnnotation(!1);return i.parameterName=a,i.typeAnnotation=o,i.asserts=n,s.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(s,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;if(this.next(),!Ee(this.state.type)&&!this.match(78))return!1;if(r)this.raise(T.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"});return!0}tsParseTypeAnnotation(r=!0,s=this.startNode()){return this.tsInType(()=>{if(r)this.expect(14);s.typeAnnotation=this.tsParseType()}),this.finishNode(s,"TSTypeAnnotation")}tsParseType(){Ll(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let s=this.startNodeAtNode(r);return s.checkType=r,s.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),s.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),s.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(s,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){if(this.tsIsStartOfFunctionType())return this.tsParseFunctionOrConstructorType("TSFunctionType");if(this.match(77))return this.tsParseFunctionOrConstructorType("TSConstructorType");else if(this.isAbstractConstructorSignature())return this.tsParseFunctionOrConstructorType("TSConstructorType",!0);return this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){if(this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(J.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let s=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",()=>{let n=this.startNode();if(n.expression=this.tsParseEntityName(3),this.match(47))n.typeParameters=this.tsParseTypeArguments();return this.finishNode(n,"TSExpressionWithTypeArguments")});if(!i.length)this.raise(J.EmptyHeritageClauseType,s,{token:r});return i}tsParseInterfaceDeclaration(r,s={}){if(this.hasFollowingLineBreak())return null;if(this.expectContextual(129),s.declare)r.declare=!0;if(Ee(this.state.type))r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130);else r.id=null,this.raise(J.MissingInterfaceName,this.state.startLoc);if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81))r.extends=this.tsParseHeritageClause("extends");let i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(i,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==be.brace){let s=this.state.context;this.state.context=[s[0]];try{return r()}finally{this.state.context=s}}else return r()}tsInType(r){let s=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=s}}tsInDisallowConditionalTypesContext(r){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=s}}tsInAllowConditionalTypesContext(r){let s=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=s}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();if(r.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29))r.initializer=super.parseMaybeAssignAllowIn();return this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,s={}){if(s.const)r.const=!0;if(s.declare)r.declare=!0;return this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,s=!1){if(r.id=this.parseIdentifier(),!s)this.checkIdentifier(r.id,1024);if(this.eat(16)){let i=this.startNode();this.tsParseModuleOrNamespaceDeclaration(i,!0),r.body=i}else this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){if(this.isContextual(112))r.kind="global",r.global=!0,r.id=this.parseIdentifier();else if(this.match(134))r.kind="module",r.id=super.parseStringLiteral(this.state.value);else this.unexpected();if(this.match(5))this.scope.enter(1024),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();else this.semicolon();return this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,s,i){r.isExport=i||!1,r.id=s||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let n=this.tsParseModuleReference();if(r.importKind==="type"&&n.type!=="TSExternalModuleReference")this.raise(J.ImportAliasHasImportType,n);return r.moduleReference=n,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let r=this.startNode();if(this.expectContextual(119),this.expect(10),!this.match(134))this.unexpected();return r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let s=this.state.clone(),i=r();return this.state=s,i}tsTryParseAndCatch(r){let s=this.tryParse((i)=>r()||i());if(s.aborted||!s.node)return;if(s.error)this.state=s.failState;return s.node}tsTryParse(r){let s=this.state.clone(),i=r();if(i!==void 0&&i!==!1)return i;this.state=s}tsTryParseDeclare(r){if(this.isLineTerminator())return;let s=this.state.type;return this.tsInAmbientContext(()=>{switch(s){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 100:if(this.state.containsEsc)return;case 75:case 74:if(!this.match(75)||!this.isLookaheadContextual("enum"))return r.declare=!0,this.parseVarStatement(r,this.state.value,!0);return this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0});case 107:if(this.isUsing())return this.raise(J.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(J.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let i=this.tsParseInterfaceDeclaration(r,{declare:!0});if(i)return i}default:if(Ee(s))return this.tsParseDeclaration(r,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(r,s,i,n){switch(s){case 124:if(this.tsCheckLineTerminator(i)&&(this.match(80)||Ee(this.state.type)))return this.tsParseAbstractDeclaration(r,n);break;case 127:if(this.tsCheckLineTerminator(i)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);else if(Ee(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case 128:if(this.tsCheckLineTerminator(i)&&Ee(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case 130:if(this.tsCheckLineTerminator(i)&&Ee(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){if(r){if(this.hasFollowingLineBreak())return!1;return this.next(),!0}return!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let s=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let i=this.tsTryParseAndCatch(()=>{let n=this.startNodeAt(r);return n.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),n});if(this.state.maybeInArrowParameters=s,!i)return;return super.parseArrowExpression(i,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()!==47)return;return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();if(r.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0)this.raise(J.EmptyTypeArguments,r);else if(!this.state.inType&&this.curContext()===be.brace)this.reScan_lt_gt();return this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return SS(this.state.type)}isExportDefaultSpecifier(){if(this.tsIsDeclarationStart())return!1;return super.isExportDefaultSpecifier()}parseBindingElement(r,s){let i=s.length?s[0].loc.start:this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let{accessibility:a,override:o,readonly:l}=n;if(!(r&4)&&(a||l||o))this.raise(J.UnexpectedParameterModifier,i);let u=this.parseMaybeDefault();if(r&2)this.parseFunctionParamType(u);let p=this.parseMaybeDefault(u.loc.start,u);if(a||l||o){let m=this.startNodeAt(i);if(s.length)m.decorators=s;if(a)m.accessibility=a;if(l)m.readonly=l;if(o)m.override=o;if(p.type!=="Identifier"&&p.type!=="AssignmentPattern")this.raise(J.UnsupportedParameterPropertyKind,m);return m.parameter=p,this.finishNode(m,"TSParameterProperty")}if(s.length)u.decorators=s;return p}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let s of r.params)if(s.type!=="Identifier"&&s.optional&&!this.state.isAmbientContext)this.raise(J.PatternIsOptional,s)}setArrowFunctionParameters(r,s,i){super.setArrowFunctionParameters(r,s,i),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,s,i=!1){if(this.match(14))r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14);let n=s==="FunctionDeclaration"?"TSDeclareFunction":s==="ClassMethod"||s==="ClassPrivateMethod"?"TSDeclareMethod":void 0;if(n&&!this.match(5)&&this.isLineTerminator())return this.finishNode(r,n);if(n==="TSDeclareFunction"&&this.state.isAmbientContext){if(this.raise(J.DeclareFunctionHasImplementation,r),r.declare)return super.parseFunctionBodyAndFinish(r,n,i)}return this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,s,i)}registerFunctionStatementId(r){if(!r.body&&r.id)this.checkIdentifier(r.id,1024);else super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach((s)=>{if((s==null?void 0:s.type)==="TSTypeCastExpression")this.raise(J.UnexpectedTypeAnnotation,s.typeAnnotation)})}toReferencedList(r,s){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,s,i){let n=super.parseArrayLike(r,s,i);if(n.type==="ArrayExpression")this.tsCheckForInvalidTypeCasts(n.elements);return n}parseSubscript(r,s,i,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(s);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(i)return n.stop=!0,r;n.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!i&&this.atPossibleAsyncArrow(r)){let x=this.tsTryParseGenericAsyncArrowFunction(s);if(x)return n.stop=!0,x}let u=this.tsParseTypeArgumentsInExpression();if(!u)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(Hs(this.state.type)){let x=super.parseTaggedTemplateExpression(r,s,n);return x.typeParameters=u,x}if(!i&&this.eat(10)){let x=this.startNodeAt(s);if(x.callee=r,x.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(x.arguments),x.typeParameters=u,n.optionalChainMember)x.optional=a;return this.finishCallExpression(x,n.optionalChainMember)}let p=this.state.type;if(p===48||p===52||p!==10&&p!==93&&p!==120&&rs(p)&&!this.hasPrecedingLineBreak())return;let m=this.startNodeAt(s);return m.expression=r,m.typeParameters=u,this.finishNode(m,"TSInstantiationExpression")});if(o)this.unexpected(o,10);if(l){if(l.type==="TSInstantiationExpression"){if(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)this.raise(J.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc);if(!this.match(16)&&!this.match(18))l.expression=super.stopParseSubscript(r,n)}return l}}return super.parseSubscript(r,s,i,n)}parseNewCallee(r){var s;super.parseNewCallee(r);let{callee:i}=r;if(i.type==="TSInstantiationExpression"&&!((s=i.extra)!=null&&s.parenthesized))r.typeParameters=i.typeParameters,r.callee=i.expression}parseExprOp(r,s,i){let n;if(Xs(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){let a=this.startNodeAt(s);return a.expression=r,a.typeAnnotation=this.tsInType(()=>{if(this.next(),this.match(75)){if(n)this.raise(T.UnexpectedKeyword,this.state.startLoc,{keyword:"const"});return this.tsParseTypeReference()}return this.tsParseType()}),this.finishNode(a,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,s,i)}return super.parseExprOp(r,s,i)}checkReservedWord(r,s,i,n){if(!this.state.isAmbientContext)super.checkReservedWord(r,s,i,n)}checkImportReflection(r){if(super.checkImportReflection(r),r.module&&r.importKind!=="value")this.raise(J.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let s=this.lookaheadCharCode();return r?s===123||s===42:s!==61}return!r&&this.isContextual(87)}applyImportPhase(r,s,i,n){if(super.applyImportPhase(r,s,i,n),s)r.exportKind=i==="type"?"type":"value";else r.importKind=i==="type"||i==="typeof"?i:"value"}parseImport(r){if(this.match(134))return r.importKind="value",super.parseImport(r);let s;if(Ee(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);else if(this.isContextual(130)){let i=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,i);else s=super.parseImportSpecifiersAndAfter(r,i)}else s=super.parseImport(r);if(s.importKind==="type"&&s.specifiers.length>1&&s.specifiers[0].type==="ImportDefaultSpecifier")this.raise(J.TypeImportCannotSpecifyDefaultAndNamed,s);return s}parseExport(r,s){if(this.match(83)){let i=r;this.next();let n=null;if(this.isContextual(130)&&this.isPotentialImportPhase(!1))n=this.parseMaybeImportPhase(i,!1);else i.importKind="value";return this.tsParseImportEqualsDeclaration(i,n,!0)}else if(this.eat(29)){let i=r;return i.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(i,"TSExportAssignment")}else if(this.eatContextual(93)){let i=r;return this.expectContextual(128),i.id=this.parseIdentifier(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration")}else return super.parseExport(r,s)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,s,i=!1){let{isAmbientContext:n}=this.state,a=super.parseVarStatement(r,s,i||n);if(!n)return a;if(!r.declare&&(s==="using"||s==="await using"))return this.raiseOverwrite(J.UsingDeclarationInAmbientContext,r,s),a;for(let{id:o,init:l}of a.declarations){if(!l)continue;if(s==="var"||s==="let"||!!o.typeAnnotation)this.raise(J.InitializerNotAllowedInAmbientContext,l);else if(!eg(l,this.hasPlugin("estree")))this.raise(J.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,l)}return a}parseStatementContent(r,s){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let i=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(i,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let i=this.state.type,n=this.startNode();this.next();let a=i===125?this.tsTryParseDeclare(n):this.tsParseAbstractDeclaration(n,s);if(a){if(i===125)a.declare=!0;return a}else return n.expression=this.createIdentifier(this.startNodeAt(n.loc.start),i===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(n,"ExpressionStatement")}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let n=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(n)}break}case 129:{let i=this.tsParseInterfaceDeclaration(this.startNode());if(i)return i;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let i=this.startNode();return this.next(),this.tsParseDeclaration(i,127,!1,s)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let i=this.startNode();return this.next(),this.tsParseDeclaration(i,128,!1,s)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let i=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(i)}break}}return super.parseStatementContent(r,s)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,s){return s.some((i)=>{if(Ml(i))return r.accessibility===i;return!!r[i]})}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,s,i){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:J.InvalidModifierOnTypeParameterPositions},s);let a=()=>{if(this.tsIsStartOfStaticBlocks()){if(this.next(),this.next(),this.tsHasSomeModifiers(s,n))this.raise(J.StaticBlockCannotHaveModifier,this.state.curPosition());super.parseClassStaticBlock(r,s)}else this.parseClassMemberWithIsStatic(r,s,i,!!s.static)};if(s.declare)this.tsInAmbientContext(a);else a()}parseClassMemberWithIsStatic(r,s,i,n){let a=this.tsTryParseIndexSignature(s);if(a){if(r.body.push(a),s.abstract)this.raise(J.IndexSignatureHasAbstract,s);if(s.accessibility)this.raise(J.IndexSignatureHasAccessibility,s,{modifier:s.accessibility});if(s.declare)this.raise(J.IndexSignatureHasDeclare,s);if(s.override)this.raise(J.IndexSignatureHasOverride,s);return}if(!this.state.inAbstractClass&&s.abstract)this.raise(J.NonAbstractClassHasAbstractMethod,s);if(s.override){if(!i.hadSuperClass)this.raise(J.OverrideNotInSubClass,s)}super.parseClassMemberWithIsStatic(r,s,i,n)}parsePostMemberNameModifiers(r){if(this.eat(17))r.optional=!0;if(r.readonly&&this.match(10))this.raise(J.ClassMethodHasReadonly,r);if(r.declare&&this.match(10))this.raise(J.ClassMethodHasDeclare,r)}shouldParseExportDeclaration(){if(this.tsIsDeclarationStart())return!0;return super.shouldParseExportDeclaration()}parseConditional(r,s,i){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let n=this.lookaheadCharCode();if(n===44||n===61||n===58||n===41)return this.setOptionalParametersError(i),r}return super.parseConditional(r,s,i)}parseParenItem(r,s){let i=super.parseParenItem(r,s);if(this.eat(17))i.optional=!0,this.resetEndLocation(r);if(this.match(14)){let n=this.startNodeAt(s);return n.expression=r,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let s=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(J.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=Ee(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);if(!a)return null;if(a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||i)r.exportKind="type";if(i&&a.type!=="TSImportEqualsDeclaration")this.resetStartLocation(a,s),a.declare=!0;return a}parseClassId(r,s,i,n){if((!s||i)&&this.isContextual(113))return;super.parseClassId(r,s,i,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);if(a)r.typeParameters=a}parseClassPropertyAnnotation(r){if(!r.optional){if(this.eat(35))r.definite=!0;else if(this.eat(17))r.optional=!0}let s=this.tsTryParseTypeAnnotation();if(s)r.typeAnnotation=s}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29))this.raise(J.DeclareClassFieldHasInitializer,this.state.startLoc);if(r.abstract&&this.match(29)){let{key:s}=r;this.raise(J.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:s.type==="Identifier"&&!r.computed?s.name:`[${this.input.slice(this.offsetToSourcePos(s.start),this.offsetToSourcePos(s.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){if(r.abstract)this.raise(J.PrivateElementHasAbstract,r);if(r.accessibility)this.raise(J.PrivateElementHasAccessibility,r,{modifier:r.accessibility});return this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){if(this.parseClassPropertyAnnotation(r),r.optional)this.raise(J.AccessorCannotBeOptional,r);return super.parseClassAccessorProperty(r)}pushClassMethod(r,s,i,n,a,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(l&&a)this.raise(J.ConstructorHasTypeParameters,l);let{declare:u=!1,kind:p}=s;if(u&&(p==="get"||p==="set"))this.raise(J.DeclareAccessor,s,{kind:p});if(l)s.typeParameters=l;super.pushClassMethod(r,s,i,n,a,o)}pushClassPrivateMethod(r,s,i,n){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(a)s.typeParameters=a;super.pushClassPrivateMethod(r,s,i,n)}declareClassPrivateMethodInScope(r,s){if(r.type==="TSDeclareMethod")return;if(r.type==="MethodDefinition"&&r.value.body==null)return;super.declareClassPrivateMethodInScope(r,s)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass){if(r.superClass.type==="TSInstantiationExpression"){let s=r.superClass,i=s.expression;this.takeSurroundingComments(i,i.start,i.end);let n=s.typeParameters;this.takeSurroundingComments(n,n.start,n.end),r.superClass=i,r.superTypeParameters=n}else if(this.match(47)||this.match(51))r.superTypeParameters=this.tsParseTypeArgumentsInExpression()}if(this.eatContextual(113))r.implements=this.tsParseHeritageClause("implements")}parseObjPropValue(r,s,i,n,a,o,l){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(u)r.typeParameters=u;return super.parseObjPropValue(r,s,i,n,a,o,l)}parseFunctionParams(r,s){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);if(i)r.typeParameters=i;super.parseFunctionParams(r,s)}parseVarId(r,s){if(super.parseVarId(r,s),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35))r.definite=!0;let i=this.tsTryParseTypeAnnotation();if(i)r.id.typeAnnotation=i,this.resetEndLocation(r.id)}parseAsyncArrowFromCallExpression(r,s){if(this.match(14))r.returnType=this.tsParseTypeAnnotation();return super.parseAsyncArrowFromCallExpression(r,s)}parseMaybeAssign(r,s){var i,n,a,o,l;let u,p,m;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(u=this.state.clone(),p=this.tryParse(()=>super.parseMaybeAssign(r,s),u),!p.error)return p.node;let{context:E}=this.state,I=E[E.length-1];if(I===be.j_oTag||I===be.j_expr)E.pop()}if(!((i=p)!=null&&i.error)&&!this.match(47))return super.parseMaybeAssign(r,s);if(!u||u===this.state)u=this.state.clone();let x,g=this.tryParse((E)=>{var I,b;x=this.tsParseTypeParameters(this.tsParseConstModifier);let C=super.parseMaybeAssign(r,s);if(C.type!=="ArrowFunctionExpression"||(I=C.extra)!=null&&I.parenthesized)E();if(((b=x)==null?void 0:b.params.length)!==0)this.resetStartLocationFromNode(C,x);return C.typeParameters=x,C},u);if(!g.error&&!g.aborted){if(x)this.reportReservedArrowTypeParam(x);return g.node}if(!p){if(Ll(!this.hasPlugin("jsx")),m=this.tryParse(()=>super.parseMaybeAssign(r,s),u),!m.error)return m.node}if((n=p)!=null&&n.node)return this.state=p.failState,p.node;if(g.node){if(this.state=g.failState,x)this.reportReservedArrowTypeParam(x);return g.node}if((a=m)!=null&&a.node)return this.state=m.failState,m.node;throw((o=p)==null?void 0:o.error)||g.error||((l=m)==null?void 0:l.error)}reportReservedArrowTypeParam(r){var s;if(r.params.length===1&&!r.params[0].constraint&&!((s=r.extra)!=null&&s.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike"))this.raise(J.ReservedArrowTypeParam,r)}parseMaybeUnary(r,s){if(!this.hasPlugin("jsx")&&this.match(47))return this.tsParseTypeAssertion();return super.parseMaybeUnary(r,s)}parseArrow(r){if(this.match(14)){let s=this.tryParse((i)=>{let n=this.tsParseTypeOrTypePredicateAnnotation(14);if(this.canInsertSemicolon()||!this.match(19))i();return n});if(s.aborted)return;if(!s.thrown){if(s.error)this.state=s.failState;r.returnType=s.node}}return super.parseArrow(r)}parseFunctionParamType(r){if(this.eat(17))r.optional=!0;let s=this.tsTryParseTypeAnnotation();if(s)r.typeAnnotation=s;return this.resetEndLocation(r),r}isAssignable(r,s){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,s);case"TSParameterProperty":return!0;default:return super.isAssignable(r,s)}}toAssignable(r,s=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,s);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":if(s)this.expressionScope.recordArrowParameterBindingError(J.UnexpectedTypeCastInParameter,r);else this.raise(J.UnexpectedTypeCastInParameter,r);this.toAssignable(r.expression,s);break;case"AssignmentExpression":if(!s&&r.left.type==="TSTypeCastExpression")r.left=this.typeCastToParameter(r.left);default:super.toAssignable(r,s)}}toAssignableParenthesizedExpression(r,s){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,s);break;default:super.toAssignable(r,s)}}checkToRestConversion(r,s){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,s)}}isValidLVal(r,s,i,n){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(n!==64||!i)&&["expression",!0];default:return super.isValidLVal(r,s,i,n)}}parseBindingAtom(){if(this.state.type===78)return this.parseIdentifier(!0);return super.parseBindingAtom()}parseMaybeDecoratorArguments(r,s){if(this.match(47)||this.match(51)){let i=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let n=super.parseMaybeDecoratorArguments(r,s);return n.typeParameters=i,n}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,s)}checkCommaAfterRest(r){if(this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r)return this.next(),!1;return super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,s){let i=super.parseMaybeDefault(r,s);if(i.type==="AssignmentPattern"&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start)this.raise(J.TypeAnnotationAfterAssign,i.typeAnnotation);return i}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){let{type:r}=this.state;if(r===47)this.state.pos-=1,this.readToken_lt();else if(r===48)this.state.pos-=1,this.readToken_gt()}reScan_lt(){let{type:r}=this.state;if(r===51)return this.state.pos-=2,this.finishOp(47,1),47;return r}toAssignableListItem(r,s,i){let n=r[s];if(n.type==="TSTypeCastExpression")r[s]=this.typeCastToParameter(n);super.toAssignableListItem(r,s,i)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){if(this.match(14))return r.every((s)=>this.isAssignable(s,!0));return super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let s=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());if(s)r.typeParameters=s}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let s=super.getGetterSetterExpectedParamCount(r),n=this.getObjectOrClassMethodParams(r)[0];return n&&this.isThisParam(n)?s+1:s}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),s=this.tsTryParseTypeAnnotation();if(s)r.typeAnnotation=s,this.resetEndLocation(r);return r}tsInAmbientContext(r){let{isAmbientContext:s,strict:i}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=s,this.state.strict=i}}parseClass(r,s,i){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,s,i)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(r,s){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(s,this.parseClass(r,!0,!1));else if(this.isContextual(129))if(!this.hasFollowingLineBreak())return r.abstract=!0,this.raise(J.NonClassMethodPropertyHasAbstractModifier,r),this.tsParseInterfaceDeclaration(r);else return null;throw this.unexpected(null,80)}parseMethod(r,s,i,n,a,o,l){let u=super.parseMethod(r,s,i,n,a,o,l);if(u.abstract||u.type==="TSAbstractMethodDefinition"){if((this.hasPlugin("estree")?u.value:u).body){let{key:x}=u;this.raise(J.AbstractMethodHasImplementation,u,{methodName:x.type==="Identifier"&&!u.computed?x.name:`[${this.input.slice(this.offsetToSourcePos(x.start),this.offsetToSourcePos(x.end))}]`})}}return u}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.parse()}getExpression(){if(this.shouldParseAsAmbientContext())this.state.isAmbientContext=!0;return super.getExpression()}parseExportSpecifier(r,s,i,n){if(!s&&n)return this.parseTypeOnlyImportExportSpecifier(r,!1,i),this.finishNode(r,"ExportSpecifier");return r.exportKind="value",super.parseExportSpecifier(r,s,i,n)}parseImportSpecifier(r,s,i,n,a){if(!s&&n)return this.parseTypeOnlyImportExportSpecifier(r,!0,i),this.finishNode(r,"ImportSpecifier");return r.importKind="value",super.parseImportSpecifier(r,s,i,n,i?4098:4096)}parseTypeOnlyImportExportSpecifier(r,s,i){let n=s?"imported":"local",a=s?"local":"exported",o=r[n],l,u=!1,p=!0,m=o.loc.start;if(this.isContextual(93)){let g=this.parseIdentifier();if(this.isContextual(93)){let E=this.parseIdentifier();if(St(this.state.type))u=!0,o=g,l=s?this.parseIdentifier():this.parseModuleExportName(),p=!1;else l=E,p=!1}else if(St(this.state.type))p=!1,l=s?this.parseIdentifier():this.parseModuleExportName();else u=!0,o=g}else if(St(this.state.type))if(u=!0,s){if(o=this.parseIdentifier(!0),!this.isContextual(93))this.checkReservedWord(o.name,o.loc.start,!0,!0)}else o=this.parseModuleExportName();if(u&&i)this.raise(s?J.TypeModifierIsUsedInTypeImports:J.TypeModifierIsUsedInTypeExports,m);r[n]=o,r[a]=l;let x=s?"importKind":"exportKind";if(r[x]=u?"type":"value",p&&this.eatContextual(93))r[a]=s?this.parseIdentifier():this.parseModuleExportName();if(!r[a])r[a]=this.cloneIdentifier(r[n]);if(s)this.checkIdentifier(r[a],u?4098:4096)}fillOptionalPropertiesForTSESLint(r){var s,i,n,a,o,l,u,p,m,x,g,E,I,b,C,N,z,j,V,ie,ge,ke,Fe,Je,st,at,it,dt,Ve,kt,Wt,Ze,Xt,Dt,B,M,w,K,te,se,me,Se,_e,Ae,fe,Pe,ve,oe,ye;switch(r.type){case"ImportDeclaration":(s=r.phase)!=null||(r.phase=null);return;case"ExpressionStatement":(i=r.directive)!=null||(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(n=r.decorators)!=null||(r.decorators=[]),(a=r.optional)!=null||(r.optional=!1),(o=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);return;case"TSParameterProperty":(l=r.accessibility)!=null||(r.accessibility=void 0),(u=r.decorators)!=null||(r.decorators=[]),(p=r.override)!=null||(r.override=!1),(m=r.readonly)!=null||(r.readonly=!1),(x=r.static)!=null||(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(g=r.declare)!=null||(r.declare=!1),(E=r.returnType)!=null||(r.returnType=void 0),(I=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"Property":(b=r.optional)!=null||(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(C=r.optional)!=null||(r.optional=!1);case"TSIndexSignature":(N=r.accessibility)!=null||(r.accessibility=void 0),(z=r.readonly)!=null||(r.readonly=!1),(j=r.static)!=null||(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(V=r.declare)!=null||(r.declare=!1),(ie=r.definite)!=null||(r.definite=!1),(ge=r.readonly)!=null||(r.readonly=!1),(ke=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(Fe=r.accessibility)!=null||(r.accessibility=void 0),(Je=r.decorators)!=null||(r.decorators=[]),(st=r.override)!=null||(r.override=!1),(at=r.optional)!=null||(r.optional=!1);return;case"ClassExpression":(it=r.id)!=null||(r.id=null);case"ClassDeclaration":(dt=r.abstract)!=null||(r.abstract=!1),(Ve=r.declare)!=null||(r.declare=!1),(kt=r.decorators)!=null||(r.decorators=[]),(Wt=r.implements)!=null||(r.implements=[]),(Ze=r.superTypeArguments)!=null||(r.superTypeArguments=void 0),(Xt=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(Dt=r.declare)!=null||(r.declare=!1);return;case"VariableDeclarator":(B=r.definite)!=null||(r.definite=!1);return;case"TSEnumDeclaration":(M=r.const)!=null||(r.const=!1),(w=r.declare)!=null||(r.declare=!1);return;case"TSEnumMember":(K=r.computed)!=null||(r.computed=!1);return;case"TSImportType":(te=r.qualifier)!=null||(r.qualifier=null),(se=r.options)!=null||(r.options=null);return;case"TSInterfaceDeclaration":(me=r.declare)!=null||(r.declare=!1),(Se=r.extends)!=null||(r.extends=[]);return;case"TSMappedType":(_e=r.optional)!=null||(r.optional=!1),(Ae=r.readonly)!=null||(r.readonly=void 0);return;case"TSModuleDeclaration":(fe=r.declare)!=null||(r.declare=!1),(Pe=r.global)!=null||(r.global=r.kind==="global");return;case"TSTypeParameter":(ve=r.const)!=null||(r.const=!1),(oe=r.in)!=null||(r.in=!1),(ye=r.out)!=null||(r.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(r,s){if(vt(r)){if(un.lastIndex=s,un.test(this.input)){let i=this.codePointAtPos(un.lastIndex);if(!ur(i)&&i!==92)return!1}return!0}else if(r===92)return!0;else return!1}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let r=this.nextTokenInLineStart(),s=this.codePointAtPos(r);return this.chStartsBindingIdentifierAndNotRelationalOperator(s,r)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let r=this.nextTokenInLineStart(),s=this.codePointAtPos(r);return this.chStartsBindingIdentifier(s,r)||s===34||s===39}};function ZS(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;if(t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0))return!1;return fu(e.object)}function eg(e,t){var r;let{type:s}=e;if((r=e.extra)!=null&&r.parenthesized)return!1;if(t){if(s==="Literal"){let{value:i}=e;if(typeof i==="string"||typeof i==="boolean")return!0}}else if(s==="StringLiteral"||s==="BooleanLiteral")return!0;if(pu(e,t)||tg(e,t))return!0;if(s==="TemplateLiteral"&&e.expressions.length===0)return!0;if(ZS(e))return!0;return!1}function pu(e,t){if(t)return e.type==="Literal"&&(typeof e.value==="number"||("bigint"in e));return e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function tg(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:s}=e;if(r==="-"&&pu(s,t))return!0}return!1}function fu(e){if(e.type==="Identifier")return!0;if(e.type!=="MemberExpression"||e.computed)return!1;return fu(e.object)}var Bl=xt`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),rg=(e)=>class extends e{parsePlaceholder(r){if(this.match(133)){let s=this.startNode();return this.next(),this.assertNoSpace(),s.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(s,r)}}finishPlaceholder(r,s){let i=r;if(!i.expectedNode||!i.type)i=this.finishNode(i,"Placeholder");return i.expectedNode=s,i}getTokenFromCode(r){if(r===37&&this.input.charCodeAt(this.state.pos+1)===37)this.finishOp(133,2);else super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,s,i,n){if(r!==void 0)super.checkReservedWord(r,s,i,n)}cloneIdentifier(r){let s=super.cloneIdentifier(r);if(s.type==="Placeholder")s.expectedNode=r.expectedNode;return s}cloneStringLiteral(r){if(r.type==="Placeholder")return this.cloneIdentifier(r);return super.cloneStringLiteral(r)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,s,i,n){return r==="Placeholder"||super.isValidLVal(r,s,i,n)}toAssignable(r,s){if(r&&r.type==="Placeholder"&&r.expectedNode==="Expression")r.expectedNode="Pattern";else super.toAssignable(r,s)}chStartsBindingIdentifier(r,s){if(super.chStartsBindingIdentifier(r,s))return!0;let i=this.nextTokenStart();if(this.input.charCodeAt(i)===37&&this.input.charCodeAt(i+1)===37)return!0;return!1}verifyBreakContinue(r,s){var i;if(((i=r.label)==null?void 0:i.type)==="Placeholder")return;super.verifyBreakContinue(r,s)}parseExpressionStatement(r,s){var i;if(s.type!=="Placeholder"||(i=s.extra)!=null&&i.parenthesized)return super.parseExpressionStatement(r,s);if(this.match(14)){let a=r;return a.label=this.finishPlaceholder(s,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();let n=r;return n.name=s.name,this.finishPlaceholder(n,"Statement")}parseBlock(r,s,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,s,i)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,s,i){let n=s?"ClassDeclaration":"ClassExpression";this.next();let a=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(133)||this.match(5))r.id=o;else if(i||!s)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,n);else throw this.raise(Bl.ClassNameIsRequired,this.state.startLoc);else this.parseClassId(r,s,i);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,a),this.finishNode(r,n)}parseExport(r,s){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(r,s);let n=r;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let a=this.startNode();return a.exported=i,n.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(n,s)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")){if(this.input.startsWith(zt(133),this.nextTokenStartSince(r+4)))return!0}}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,s){var i;if((i=r.specifiers)!=null&&i.length)return!0;return super.maybeParseExportDefaultSpecifier(r,s)}checkExport(r){let{specifiers:s}=r;if(s!=null&&s.length)r.specifiers=s.filter((i)=>i.exported.type==="Placeholder");super.checkExport(r),r.specifiers=s}parseImport(r){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(s,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let i=this.startNodeAtNode(s);if(i.local=s,r.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)){if(!this.maybeParseStarImportSpecifier(r))this.parseNamedImportSpecifiers(r)}return this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){if(this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index))this.raise(Bl.UnexpectedSpace,this.state.lastTokEndLoc)}},sg=(e)=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,s=this.startNode();if(this.next(),Ee(this.state.type)){let i=this.parseIdentifierName(),n=this.createIdentifier(s,i);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(10))return n}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}},Fl=["minimal","fsharp","hack","smart"],jl=["^^","@@","^","%","#"];function ig(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw Error("Cannot use the decorators and decorators-legacy plugin together");let s=e.get("decorators").decoratorsBeforeExport;if(s!=null&&typeof s!=="boolean")throw Error("'decoratorsBeforeExport' must be a boolean, if specified.");let i=e.get("decorators").allowCallParenthesized;if(i!=null&&typeof i!=="boolean")throw Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;let s=e.get("pipelineOperator").proposal;if(!Fl.includes(s)){let i=Fl.map((n)=>`"${n}"`).join(", ");throw Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`)}if(s==="hack"){var r;if(e.has("placeholders"))throw Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let i=e.get("pipelineOperator").topicToken;if(!jl.includes(i)){let n=jl.map((a)=>`"${a}"`).join(", ");throw Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}if(i==="#"&&((r=e.get("recordAndTuple"))==null?void 0:r.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if(s==="smart"&&((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash")throw Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(e.get("moduleAttributes").version!=="may-2020")throw Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")){if(e.has("deprecatedImportAssert"))throw Error("Cannot combine importAssertions and deprecatedImportAssert plugins.")}if(e.has("deprecatedImportAssert"));else if(e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax)e.set("deprecatedImportAssert",{});if(e.has("recordAndTuple")){let s=e.get("recordAndTuple").syntaxType;if(s!=null){let i=["hash","bar"];if(!i.includes(s))throw Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+i.map((n)=>`'${n}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let s=Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw s.missingPlugins="doExpressions",s}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&e.get("discardBinding").syntaxType!=="void")throw Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var hu={estree:lS,jsx:qS,flow:BS,typescript:QS,v8intrinsic:sg,placeholders:rg},ng=Object.keys(hu);class du extends cu{checkProto(e,t,r,s){if(e.type==="SpreadElement"||this.isObjectMethod(e)||e.computed||e.shorthand)return r;let i=e.key;if((i.type==="Identifier"?i.name:i.value)==="__proto__"){if(t)return this.raise(T.RecordNoProto,i),!0;if(r)if(s){if(s.doubleProtoLoc===null)s.doubleProtoLoc=i.loc.start}else this.raise(T.DuplicateProto,i);return!0}return r}shouldExitDescending(e,t){return e.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(T.ParseExpressionEmptyInput,this.state.startLoc);let e=this.parseExpression();if(!this.match(140))throw this.raise(T.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});if(this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,this.optionFlags&256)e.tokens=this.tokens;return e}parseExpression(e,t){if(e)return this.disallowInAnd(()=>this.parseExpressionBase(t));return this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){let t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){let s=this.startNodeAt(t);s.expressions=[r];while(this.eat(12))s.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){let r=this.state.startLoc,s=this.isContextual(108);if(s){if(this.prodParam.hasYield){this.next();let o=this.parseYield(r);if(t)o=t.call(this,o,r);return o}}let i;if(e)i=!1;else e=new ns,i=!0;let{type:n}=this.state;if(n===10||Ee(n))this.state.potentialArrowAt=this.state.start;let a=this.parseMaybeConditional(e);if(t)a=t.call(this,a,r);if(hS(this.state.type)){let o=this.startNodeAt(r),l=this.state.value;if(o.operator=l,this.match(29)){this.toAssignable(a,!0),o.left=a;let u=r.index;if(e.doubleProtoLoc!=null&&e.doubleProtoLoc.index>=u)e.doubleProtoLoc=null;if(e.shorthandAssignLoc!=null&&e.shorthandAssignLoc.index>=u)e.shorthandAssignLoc=null;if(e.privateKeyLoc!=null&&e.privateKeyLoc.index>=u)this.checkDestructuringPrivate(e),e.privateKeyLoc=null;if(e.voidPatternLoc!=null&&e.voidPatternLoc.index>=u)e.voidPatternLoc=null}else o.left=a;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(o,"AssignmentExpression"),void 0,void 0,void 0,void 0,l==="||="||l==="&&="||l==="??="),o}else if(i)this.checkExpressionErrors(e,!0);if(s){let{type:o}=this.state;if((this.hasPlugin("v8intrinsic")?rs(o):rs(o)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(T.YieldNotInGeneratorFunction,r),this.parseYield(r)}return a}parseMaybeConditional(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprOps(e);if(this.shouldExitDescending(s,r))return s;return this.parseConditional(s,t,e)}parseConditional(e,t,r){if(this.eat(17)){let s=this.startNodeAt(t);return s.test=e,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(e);if(this.shouldExitDescending(s,r))return s;return this.parseExprOp(s,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){let i=this.getPrivateNameSV(e);if(r>=Xs(58)||!this.prodParam.hasIn||!this.match(58))this.raise(T.PrivateInExpectedIn,e,{identifierName:i});this.classScope.usePrivateName(i,e.loc.start)}let s=this.state.type;if(mS(s)&&(this.prodParam.hasIn||!this.match(58))){let i=Xs(s);if(i>r){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}let n=this.startNodeAt(t);n.left=e,n.operator=this.state.value;let a=s===41||s===42,o=s===40;if(o)i=Xs(42);if(this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])){if(this.state.type===96&&this.prodParam.hasAwait)throw this.raise(T.UnexpectedAwaitAfterPipelineBody,this.state.startLoc)}n.right=this.parseExprOpRightExpr(s,i);let l=this.finishNode(n,a||o?"LogicalExpression":"BinaryExpression"),u=this.state.type;if(o&&(u===41||u===42)||a&&u===40)throw this.raise(T.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,r)}}return e}parseExprOpRightExpr(e,t){let r=this.state.startLoc;switch(e){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(T.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r)});default:return this.parseExprOpBaseRightExpr(e,t)}}parseExprOpBaseRightExpr(e,t){let r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,gS(e)?t-1:t)}parseHackPipeBody(){var e;let{startLoc:t}=this.state,r=this.parseMaybeAssign();if(eS.has(r.type)&&!((e=r.extra)!=null&&e.parenthesized))this.raise(T.PipeUnparenthesizedBody,t,{type:r.type});if(!this.topicReferenceWasUsedInCurrentContext())this.raise(T.PipeTopicUnused,t);return r}checkExponentialAfterUnary(e){if(this.match(57))this.raise(T.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){let r=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let o=this.parseAwait(r);if(!t)this.checkExponentialAfterUnary(o);return o}let i=this.match(34),n=this.startNode();if(TS(this.state.type)){if(n.operator=this.state.value,n.prefix=!0,this.match(72))this.expectPlugin("throwExpressions");let o=this.match(89);if(this.next(),n.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&o){let l=n.argument;if(l.type==="Identifier")this.raise(T.StrictDelete,n);else if(this.hasPropertyAsPrivateName(l))this.raise(T.DeletePrivateField,n)}if(!i){if(!t)this.checkExponentialAfterUnary(n);return this.finishNode(n,"UnaryExpression")}}let a=this.parseUpdate(n,i,e);if(s){let{type:o}=this.state;if((this.hasPlugin("v8intrinsic")?rs(o):rs(o)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(T.AwaitNotInAsyncContext,r),this.parseAwait(r)}return a}parseUpdate(e,t,r){if(t){let n=e;return this.checkLVal(n.argument,this.finishNode(n,"UpdateExpression")),e}let s=this.state.startLoc,i=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return i;while(yS(this.state.type)&&!this.canInsertSemicolon()){let n=this.startNodeAt(s);n.operator=this.state.value,n.prefix=!1,n.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(n,"UpdateExpression"))}return i}parseExprSubscripts(e){let t=this.state.startLoc,r=this.state.potentialArrowAt,s=this.parseExprAtom(e);if(this.shouldExitDescending(s,r))return s;return this.parseSubscripts(s,t)}parseSubscripts(e,t,r){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do e=this.parseSubscript(e,t,r,s),s.maybeAsyncArrow=!1;while(!s.stop);return e}parseSubscript(e,t,r,s){let{type:i}=this.state;if(!r&&i===15)return this.parseBind(e,t,s);else if(Hs(i))return this.parseTaggedTemplateExpression(e,t,s);let n=!1;if(i===18){if(r){if(this.raise(T.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40)return this.stopParseSubscript(e,s)}s.optionalChainMember=n=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,s,n);else{let a=this.eat(0);if(a||n||this.eat(16))return this.parseMember(e,t,s,a,n);else return this.stopParseSubscript(e,s)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,r,s,i){let n=this.startNodeAt(t);if(n.object=e,n.computed=s,s)n.property=this.parseExpression(),this.expect(3);else if(this.match(139)){if(e.type==="Super")this.raise(T.SuperPrivateField,t);this.classScope.usePrivateName(this.state.value,this.state.startLoc),n.property=this.parsePrivateName()}else n.property=this.parseIdentifier(!0);if(r.optionalChainMember)return n.optional=i,this.finishNode(n,"OptionalMemberExpression");else return this.finishNode(n,"MemberExpression")}parseBind(e,t,r){let s=this.startNodeAt(t);s.object=e,this.next();let i=this.match(83),n=this.parseNoCallExpr();if(n.type==="Super"||i&&n.type==="ImportExpression"||n.type==="Import")throw this.raise(T.UnsupportedBindRHS,n);return s.callee=n,r.stop=!0,this.parseSubscripts(this.finishNode(s,"BindExpression"),t,!1)}parseCoverCallAndAsyncArrowHead(e,t,r,s){let i=this.state.maybeInArrowParameters,n=null;this.state.maybeInArrowParameters=!0,this.next();let a=this.startNodeAt(t);a.callee=e;let{maybeAsyncArrow:o,optionalChainMember:l}=r;if(o)this.expressionScope.enter($S()),n=new ns;if(l)a.optional=s;if(s)a.arguments=this.parseCallExpressionArguments();else a.arguments=this.parseCallExpressionArguments(e.type!=="Super",a,n);let u=this.finishCallExpression(a,l);if(o&&this.shouldParseAsyncArrow()&&!s)r.stop=!0,this.checkDestructuringPrivate(n),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),u=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),u);else{if(o)this.checkExpressionErrors(n,!0),this.expressionScope.exit();this.toReferencedArguments(u)}return this.state.maybeInArrowParameters=i,u}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){let s=this.startNodeAt(t);if(s.tag=e,s.quasi=this.parseTemplate(!0),r.optionalChainMember)this.raise(T.OptionalChainingNoTemplate,t);return this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return e.type==="Identifier"&&e.name==="async"&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if(e.callee.type==="Import"){if(e.arguments.length===0||e.arguments.length>2)this.raise(T.ImportCallArity,e);else for(let r of e.arguments)if(r.type==="SpreadElement")this.raise(T.ImportCallSpreadArgument,r)}return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r){let s=[],i=!0,n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;while(!this.eat(11)){if(i)i=!1;else if(this.expect(12),this.match(11)){if(t)this.addTrailingCommaExtraToNode(t);this.next();break}s.push(this.parseExprListItem(11,!1,r,e))}return this.state.inFSharpPipelineDirectBody=n,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;if(this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,(r=t.extra)==null?void 0:r.trailingCommaLoc),t.innerComments)os(e,t.innerComments);if(t.callee.trailingComments)os(e,t.callee.trailingComments);return e}parseNoCallExpr(){let e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,r=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:if(t=this.startNode(),this.next(),this.match(16))return this.parseImportMetaPropertyOrPhaseCall(t);if(this.match(10))if(this.optionFlags&512)return this.parseImportCall(t);else return this.finishNode(t,"Import");else return this.raise(T.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import");case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let i=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(i)}case 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;let i=t.callee=this.parseNoCallExpr();if(i.type==="MemberExpression")return this.finishNode(t,"BindExpression");else throw this.raise(T.UnsupportedBind,i)}case 139:return this.raise(T.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.parseTopicReference(i);throw this.unexpected()}case 47:{let i=this.input.codePointAt(this.nextTokenStart());if(vt(i)||i===62)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected()}default:if(s===137)return this.parseDecimalLiteral(this.state.value);else if(s===2||s===1)return this.parseArrayLike(this.state.type===2?4:3,!0);else if(s===6||s===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0);if(Ee(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let i=this.state.potentialArrowAt===this.state.start,n=this.state.containsEsc,a=this.parseIdentifier();if(!n&&a.name==="async"&&!this.canInsertSemicolon()){let{type:o}=this.state;if(o===68)return this.resetPreviousNodeTrailingComments(a),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(a));else if(Ee(o))if(i&&this.lookaheadCharCode()===61)return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(a));else return a;else if(o===90)return this.resetPreviousNodeTrailingComments(a),this.parseDo(this.startNodeAtNode(a),!0)}if(i&&this.match(19)&&!this.canInsertSemicolon())return this.next(),this.parseArrowExpression(this.startNodeAtNode(a),[a],!1);return a}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){let r=this.getPluginOption("pipelineOperator","proposal");if(r)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=Xe(this.state.endLoc,-1),this.parseTopicReference(r);throw this.unexpected()}parseTopicReference(e){let t=this.startNode(),r=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(t,r,e,s)}finishTopicReference(e,t,r,s){if(this.testTopicReferenceConfiguration(r,t,s))if(r==="hack"){if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(T.PipeTopicUnbound,t);return this.registerTopicReference(),this.finishNode(e,"TopicReference")}else{if(!this.topicReferenceIsAllowedInCurrentContext())this.raise(T.PrimaryTopicNotAllowed,t);return this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference")}else throw this.raise(T.PipeTopicUnconfiguredToken,t,{token:zt(s)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:zt(r)}]);case"smart":return r===27;default:throw this.raise(T.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter($s(!0,this.prodParam.hasYield));let t=[this.parseIdentifier()];if(this.prodParam.exit(),this.hasPrecedingLineBreak())this.raise(T.LineTerminatorBeforeArrow,this.state.curPosition());return this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){if(this.expectPlugin("doExpressions"),t)this.expectPlugin("asyncDoExpressions");e.async=t,this.next();let r=this.state.labels;if(this.state.labels=[],t)this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit();else e.body=this.parseBlock();return this.state.labels=r,this.finishNode(e,"DoExpression")}parseSuper(){let e=this.startNode();if(this.next(),this.match(10)&&!this.scope.allowDirectSuper){if(!(this.optionFlags&16))this.raise(T.SuperNotAllowed,e)}else if(!this.scope.allowSuper){if(!(this.optionFlags&16))this.raise(T.UnexpectedSuper,e)}if(!this.match(10)&&!this.match(0)&&!this.match(16))this.raise(T.UnsupportedSuper,e);return this.finishNode(e,"Super")}parsePrivateName(){let e=this.startNode(),t=this.startNodeAt(Xe(this.state.startLoc,1)),r=this.state.value;return this.next(),e.id=this.createIdentifier(t,r),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){let e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"function");if(this.next(),this.match(103))this.expectPlugin("functionSent");else if(!this.hasPlugin("functionSent"))this.unexpected();return this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;let s=this.state.containsEsc;if(e.property=this.parseIdentifier(!0),e.property.name!==r||s)this.raise(T.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r});return this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){let t=this.isContextual(105);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}else{let t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);if(this.isContextual(101)){if(!this.inModule)this.raise(T.ImportMetaOutsideModule,t);this.sawUnambiguousESM=!0}return this.parseMetaProperty(e,t,"meta")}}parseLiteralAtNode(e,t,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}parseLiteral(e,t){let r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){let t=this.startNode();return this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){let t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){let e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){let t=this.state.startLoc,r;this.next(),this.expressionScope.enter(XS());let s=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let n=this.state.startLoc,a=[],o=new ns,l=!0,u,p;while(!this.match(11)){if(l)l=!1;else if(this.expect(12,o.optionalParametersLoc===null?null:o.optionalParametersLoc),this.match(11)){p=this.state.startLoc;break}if(this.match(21)){let g=this.state.startLoc;if(u=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),g)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowInOrVoidPattern(11,o,this.parseParenItem))}let m=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=i;let x=this.startNodeAt(t);if(e&&this.shouldParseArrow(a)&&(x=this.parseArrow(x)))return this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(x,a,!1),x;if(this.expressionScope.exit(),!a.length)this.unexpected(this.state.lastTokStartLoc);if(p)this.unexpected(p);if(u)this.unexpected(u);if(this.checkExpressionErrors(o,!0),this.toReferencedListDeep(a,!0),a.length>1)r=this.startNodeAt(n),r.expressions=a,this.finishNode(r,"SequenceExpression"),this.resetEndLocation(r,m);else r=a[0];return this.wrapParenthesis(t,r)}wrapParenthesis(e,t){if(!(this.optionFlags&1024))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;let r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){let e=this.startNode();if(this.next(),this.match(16)){let t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();let r=this.parseMetaProperty(e,t,"target");if(!this.scope.allowNewTarget)this.raise(T.UnexpectedNewTarget,r);return r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){let t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){let t=this.match(83),r=this.parseNoCallExpr();if(e.callee=r,t&&r.type==="ImportExpression"||r.type==="Import")this.raise(T.ImportCallNotNewExpression,r);if(r.type==="Super")this.raise(T.SuperCallNotNewExpression,r)}parseTemplateElement(e){let{start:t,startLoc:r,end:s,value:i}=this.state,n=t+1,a=this.startNodeAt(Xe(r,1));if(i===null){if(!e)this.raise(T.InvalidEscapeSequenceTemplate,Xe(this.state.firstInvalidTemplateEscapePos,1))}let o=this.match(24),l=o?-1:-2,u=s+l;a.value={raw:this.input.slice(n,u).replace(/\r\n?/g,`
9
+ `),cooked:i===null?null:i.slice(1,l)},a.tail=o,this.next();let p=this.finishNode(a,"TemplateElement");return this.resetEndLocation(p,Xe(this.state.lastTokEndLoc,l)),p}parseTemplate(e){let t=this.startNode(),r=this.parseTemplateElement(e),s=[r],i=[];while(!r.tail)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(r=this.parseTemplateElement(e));return t.expressions=i,t.quasis=s,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,s){if(r)this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=!1,a=!0,o=this.startNode();o.properties=[],this.next();while(!this.match(e)){if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}let u;if(t)u=this.parseBindingProperty();else u=this.parsePropertyDefinition(s),n=this.checkProto(u,r,n,s);if(r&&!this.isObjectProperty(u)&&u.type!=="SpreadElement")this.raise(T.InvalidRecordProperty,u);if(u.shorthand)this.addExtra(u,"shorthand",!0);o.properties.push(u)}this.next(),this.state.inFSharpPipelineDirectBody=i;let l="ObjectExpression";if(t)l="ObjectPattern";else if(r)l="RecordExpression";return this.finishNode(o,l)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&e.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26)){if(this.hasPlugin("decorators"))this.raise(T.UnsupportedPropertyDecorator,this.state.startLoc);while(this.match(26))t.push(this.parseDecorator())}let r=this.startNode(),s=!1,i=!1,n;if(this.match(21)){if(t.length)this.unexpected();return this.parseSpread()}if(t.length)r.decorators=t,t=[];if(r.method=!1,e)n=this.state.startLoc;let a=this.eat(55);this.parsePropertyNamePrefixOperator(r);let o=this.state.containsEsc;if(this.parsePropertyName(r,e),!a&&!o&&this.maybeAsyncOrAccessorProp(r)){let{key:l}=r,u=l.name;if(u==="async"&&!this.hasPrecedingLineBreak())s=!0,this.resetPreviousNodeTrailingComments(l),a=this.eat(55),this.parsePropertyName(r);if(u==="get"||u==="set"){if(i=!0,this.resetPreviousNodeTrailingComments(l),r.kind=u,this.match(55))a=!0,this.raise(T.AccessorIsGenerator,this.state.curPosition(),{kind:u}),this.next();this.parsePropertyName(r)}}return this.parseObjPropValue(r,n,a,s,!1,i,e)}getGetterSetterExpectedParamCount(e){return e.kind==="get"?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;let r=this.getGetterSetterExpectedParamCount(e),s=this.getObjectOrClassMethodParams(e);if(s.length!==r)this.raise(e.kind==="get"?T.BadGetterArity:T.BadSetterArity,e);if(e.kind==="set"&&((t=s[s.length-1])==null?void 0:t.type)==="RestElement")this.raise(T.BadSetterRestParameter,e)}parseObjectMethod(e,t,r,s,i){if(i){let n=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(r||t||this.match(10)){if(s)this.unexpected();return e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}}parseObjectProperty(e,t,r,s){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(e);if(!e.computed&&e.key.type==="Identifier"){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){let i=this.state.startLoc;if(s!=null){if(s.shorthandAssignLoc===null)s.shorthandAssignLoc=i}else this.raise(T.InvalidCoverInitializedName,i);e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,r,s,i,n,a){let o=this.parseObjectMethod(e,r,s,i,n)||this.parseObjectProperty(e,t,i,a);if(!o)this.unexpected();return o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:r,value:s}=this.state,i;if(St(r))i=this.parseIdentifier(!0);else switch(r){case 135:i=this.parseNumericLiteral(s);break;case 134:i=this.parseStringLiteral(s);break;case 136:i=this.parseBigIntLiteral(s);break;case 139:{let n=this.state.startLoc;if(t!=null){if(t.privateKeyLoc===null)t.privateKeyLoc=n}else this.raise(T.UnexpectedPrivateField,n);i=this.parsePrivateName();break}default:if(r===137){i=this.parseDecimalLiteral(s);break}this.unexpected()}if(e.key=i,r!==139)e.computed=!1}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,s,i,n,a=!1){this.initFunction(e,r),e.generator=t,this.scope.enter(530|(a?576:0)|(i?32:0)),this.prodParam.enter($s(r,e.generator)),this.parseFunctionParams(e,s);let o=this.parseFunctionBodyAndFinish(e,n,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t,r){if(t)this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!t,r,i),this.state.inFSharpPipelineDirectBody=s,this.finishNode(i,t?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,s){this.scope.enter(518);let i=$s(r,!1);if(!this.match(5)&&this.prodParam.hasIn)i|=8;this.prodParam.enter(i),this.initFunction(e,r);let n=this.state.maybeInArrowParameters;if(t)this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,s);return this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=n,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,!1),e.params=t}parseFunctionBodyAndFinish(e,t,r=!1){return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t,r=!1){let s=t&&!this.match(5);if(this.expressionScope.enter(ou()),s)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{let i=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),e.body=this.parseBlock(!0,!1,(a)=>{let o=!this.isSimpleParamList(e.params);if(a&&o)this.raise(T.IllegalLanguageModeDirective,(e.kind==="method"||e.kind==="constructor")&&!!e.key?e.key.loc.end:e);let l=!i&&this.state.strict;if(this.checkParams(e,!this.state.strict&&!t&&!r&&!o,t,l),this.state.strict&&e.id)this.checkIdentifier(e.id,65,l)}),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(e){return e.type==="Identifier"}isSimpleParamList(e){for(let t=0,r=e.length;t<r;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,r,s=!0){let i=!t&&new Set,n={type:"FormalParameters"};for(let a of e.params)this.checkLVal(a,n,5,i,s)}parseExprList(e,t,r,s){let i=[],n=!0;while(!this.eat(e)){if(n)n=!1;else if(this.expect(12),this.match(e)){if(s)this.addTrailingCommaExtraToNode(s);this.next();break}i.push(this.parseExprListItem(e,t,r))}return i}parseExprListItem(e,t,r,s){let i;if(this.match(12)){if(!t)this.raise(T.UnexpectedToken,this.state.curPosition(),{unexpected:","});i=null}else if(this.match(21)){let n=this.state.startLoc;i=this.parseParenItem(this.parseSpread(r),n)}else if(this.match(17)){if(this.expectPlugin("partialApplication"),!s)this.raise(T.UnexpectedArgumentPlaceholder,this.state.startLoc);let n=this.startNode();this.next(),i=this.finishNode(n,"ArgumentPlaceholder")}else i=this.parseMaybeAssignAllowInOrVoidPattern(e,r,this.parseParenItem);return i}parseIdentifier(e){let t=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}createIdentifierAt(e,t,r){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,"Identifier",r)}parseIdentifierName(e){let t,{startLoc:r,type:s}=this.state;if(St(s))t=this.state.value;else this.unexpected();let i=pS(s);if(e){if(i)this.replaceToken(132)}else this.checkReservedWord(t,r,i,!1);return this.next(),t}checkReservedWord(e,t,r,s){if(e.length>10)return;if(!OS(e))return;if(r&&IS(e)){this.raise(T.UnexpectedKeyword,t,{keyword:e});return}if((!this.state.strict?Vl:s?Wl:Yl)(e,this.inModule)){this.raise(T.UnexpectedReservedWord,t,{reservedWord:e});return}else if(e==="yield"){if(this.prodParam.hasYield){this.raise(T.YieldBindingIdentifier,t);return}}else if(e==="await"){if(this.prodParam.hasAwait){this.raise(T.AwaitBindingIdentifier,t);return}if(this.scope.inStaticBlock){this.raise(T.AwaitBindingIdentifierInStaticBlock,t);return}this.expressionScope.recordAsyncArrowParametersError(t)}else if(e==="arguments"){if(this.scope.inClassAndNotInNonArrowFunction){this.raise(T.ArgumentsInClass,t);return}}}recordAwaitIfAllowed(){let e=this.prodParam.hasAwait;if(e&&!this.scope.inFunction)this.state.hasTopLevelAwait=!0;return e}parseAwait(e){let t=this.startNodeAt(e);if(this.expressionScope.recordParameterInitializerError(T.AwaitExpressionFormalParameter,t),this.eat(55))this.raise(T.ObsoleteAwaitStar,t);if(!this.scope.inFunction&&!(this.optionFlags&1))if(this.isAmbiguousPrefixOrIdentifier())this.ambiguousScriptDifferentAst=!0;else this.sawUnambiguousESM=!0;if(!this.state.soloAwait)t.argument=this.parseMaybeUnary(null,!0);return this.finishNode(t,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:e}=this.state;return e===53||e===10||e===0||Hs(e)||e===102&&!this.state.containsEsc||e===138||e===56||this.hasPlugin("v8intrinsic")&&e===54}parseYield(e){let t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(T.YieldInParameter,t);let r=!1,s=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:s=this.parseMaybeAssign()}return t.delegate=r,t.argument=s,this.finishNode(t,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12))if(!this.match(11)){if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)){if(this.addTrailingCommaExtraToNode(e.options),!this.match(11)){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(T.ImportCallArity,e)}}}else this.addTrailingCommaExtraToNode(e.source);return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){if(e.type==="SequenceExpression")this.raise(T.PipelineHeadSequenceExpression,t)}}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){let r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}else{let r=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),r.expression=e,this.finishNode(r,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(T.PipelineBodyNoArrow,this.state.startLoc);if(!this.topicReferenceWasUsedInCurrentContext())this.raise(T.PipelineTopicUnused,e)}withTopicBindingContext(e){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}else return e()}withSoloAwaitPermittingContext(e){let t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){let t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(t|8);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){let t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(t&-9);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){let t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let e=this.startNode();if(this.next(),!this.match(5))this.unexpected(null,5);let t=this.startNodeAt(this.state.endLoc);this.next();let r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");let t=this.startNode();if(e!=null)e.voidPatternLoc=this.state.startLoc;return this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,r){if(t!=null&&this.match(88)){let s=this.lookaheadCharCode();if(s===44||s===(e===3?93:e===8?125:41)||s===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,r)}parsePropertyNamePrefixOperator(e){}}var cn={kind:1},ag={kind:2},og=/[\uD800-\uDFFF]/u,pn=/in(?:stanceof)?/y;function lg(e,t,r){for(let s=0;s<e.length;s++){let i=e[s],{type:n}=i;if(typeof n==="number"){if(n===139){let{loc:a,start:o,value:l,end:u}=i,p=o+1,m=Xe(a.start,1);e.splice(s,1,new qt({type:Rt(27),value:"#",start:o,end:p,startLoc:a.start,endLoc:m}),new qt({type:Rt(132),value:l,start:p,end:u,startLoc:m,endLoc:a.end})),s++;continue}if(Hs(n)){let{loc:a,start:o,value:l,end:u}=i,p=o+1,m=Xe(a.start,1),x;if(t.charCodeAt(o-r)===96)x=new qt({type:Rt(22),value:"`",start:o,end:p,startLoc:a.start,endLoc:m});else x=new qt({type:Rt(8),value:"}",start:o,end:p,startLoc:a.start,endLoc:m});let g,E,I,b;if(n===24)E=u-1,I=Xe(a.end,-1),g=l===null?null:l.slice(1,-1),b=new qt({type:Rt(22),value:"`",start:E,end:u,startLoc:I,endLoc:a.end});else E=u-2,I=Xe(a.end,-2),g=l===null?null:l.slice(1,-2),b=new qt({type:Rt(23),value:"${",start:E,end:u,startLoc:I,endLoc:a.end});e.splice(s,1,x,new qt({type:Rt(20),value:g,start:p,end:E,startLoc:m,endLoc:I}),b),s+=2;continue}i.type=Rt(n)}}return e}class mu extends du{parseTopLevel(e,t){if(e.program=this.parseProgram(t,140,this.options.sourceType==="module"?"module":"script"),e.comments=this.comments,this.optionFlags&256)e.tokens=lg(this.tokens,this.input,this.startIndex);return this.finishNode(e,"File")}parseProgram(e,t,r){if(e.sourceType=r,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[i,n]of Array.from(this.scope.undefinedExports))this.raise(T.ModuleExportUndefined,n,{localName:i});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let s;if(t===140)s=this.finishNode(e,"Program");else s=this.finishNodeAt(e,"Program",Xe(this.state.startLoc,-1));return s}stmtToDirective(e){let t=this.castNodeTo(e,"Directive"),r=this.castNodeTo(e.expression,"DirectiveLiteral"),s=r.value,i=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end)),n=r.value=i.slice(1,-1);return this.addExtra(r,"raw",i),this.addExtra(r,"rawValue",n),this.addExtra(r,"expressionValue",s),t.value=r,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;let e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){if(!this.isContextual(100))return!1;return this.hasFollowingBindingAtom()}isUsing(){if(!this.isContextual(107))return!1;return this.nextTokenIsIdentifierOnSameLine()}isForUsing(){if(!this.isContextual(107))return!1;let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){let r=this.lookaheadCharCodeSince(e+2);if(r!==61&&r!==58&&r!==59)return!1}if(this.chStartsBindingIdentifier(t,e)||this.isUnparsedContextual(e,"void"))return!0;return!1}nextTokenIsIdentifierOnSameLine(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);let t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(vt(e)){if(pn.lastIndex=t,pn.test(this.input)){let r=this.codePointAtPos(pn.lastIndex);if(!ur(r)&&r!==92)return!1}return!0}else if(e===92)return!0;else return!1}chStartsBindingPattern(e){return e===91||e===123}hasFollowingBindingAtom(){let e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){let e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return t===123||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;if(this.options.annexB&&!this.state.strict){if(t|=4,e)t|=8}return this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;if(this.match(26))t=this.parseDecorators(!0);return this.parseStatementContent(e,t)}parseStatementContent(e,t){let r=this.state.type,s=this.startNode(),i=!!(e&2),n=!!(e&4),a=e&1;switch(r){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;if(!n)this.raise(this.state.strict?T.StrictFunction:this.options.annexB?T.SloppyFunctionAnnexB:T.SloppyFunction,this.state.startLoc);return this.parseFunctionStatement(s,!1,!i&&n);case 80:if(!i)this.unexpected();return this.parseClass(this.maybeTakeDecorators(t,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing()){if(!this.allowsUsing())this.raise(T.UnexpectedUsingDeclaration,s);else if(!i)this.raise(T.UnexpectedLexicalDeclaration,s);else if(!this.recordAwaitIfAllowed())this.raise(T.AwaitUsingNotInAsyncContext,s);return this.next(),this.parseVarStatement(s,"await using")}break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;if(!this.allowsUsing())this.raise(T.UnexpectedUsingDeclaration,this.state.startLoc);else if(!i)this.raise(T.UnexpectedLexicalDeclaration,this.state.startLoc);return this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let u=this.nextTokenStart(),p=this.codePointAtPos(u);if(p!==91){if(!i&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(p,u)&&p!==123)break}}case 75:if(!i)this.raise(T.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let u=this.state.value;return this.parseVarStatement(s,u)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let u=this.lookaheadCharCode();if(u===40||u===46)break}case 82:{if(!(this.optionFlags&8)&&!a)this.raise(T.UnexpectedImportExport,this.state.startLoc);this.next();let u;if(r===83)u=this.parseImport(s);else u=this.parseExport(s,t);return this.assertModuleNodeAllowed(u),u}default:if(this.isAsyncFunction()){if(!i)this.raise(T.AsyncFunctionInSingleStatementContext,this.state.startLoc);return this.next(),this.parseFunctionStatement(s,!0,!i&&n)}}let o=this.state.value,l=this.parseExpression();if(Ee(r)&&l.type==="Identifier"&&this.eat(14))return this.parseLabeledStatement(s,o,l,e);else return this.parseExpressionStatement(s,l,t)}assertModuleNodeAllowed(e){if(!(this.optionFlags&8)&&!this.inModule)this.raise(T.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){if(this.hasPlugin("decorators-legacy"))return!0;return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(e,t,r){if(e){var s;if((s=t.decorators)!=null&&s.length){if(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!=="boolean")this.raise(T.DecoratorsBeforeAfterExport,t.decorators[0]);t.decorators.unshift(...e)}else t.decorators=e;if(this.resetStartLocationFromNode(t,e[0]),r)this.resetStartLocationFromNode(r,t)}return t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){let t=[];do t.push(this.parseDecorator());while(this.match(26));if(this.match(82)){if(!e)this.unexpected();if(!this.decoratorsEnabledBeforeExport())this.raise(T.DecoratorExportClass,this.state.startLoc)}else if(!this.canHaveLeadingDecorator())throw this.raise(T.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let e=this.startNode();if(this.next(),this.hasPlugin("decorators")){let t=this.state.startLoc,r;if(this.match(10)){let s=this.state.startLoc;this.next(),r=this.parseExpression(),this.expect(11),r=this.wrapParenthesis(s,r);let i=this.state.startLoc;if(e.expression=this.parseMaybeDecoratorArguments(r,s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&e.expression!==r)this.raise(T.DecoratorArgumentsOutsideParentheses,i)}else{r=this.parseIdentifier(!1);while(this.eat(16)){let s=this.startNodeAt(t);if(s.object=r,this.match(139))this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName();else s.property=this.parseIdentifier(!0);s.computed=!1,r=this.finishNode(s,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(r,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){let r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return e}parseBreakContinueStatement(e,t){if(this.next(),this.isLineTerminator())e.label=null;else e.label=this.parseIdentifier(),this.semicolon();return this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let r;for(r=0;r<this.state.labels.length;++r){let s=this.state.labels[r];if(e.label==null||s.name===e.label.name){if(s.kind!=null&&(t||s.kind===1))break;if(e.label&&t)break}}if(r===this.state.labels.length){let s=t?"BreakStatement":"ContinueStatement";this.raise(T.IllegalBreakContinue,e,{type:s})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(cn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(cn);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed())t=this.state.startLoc,this.next();if(this.scope.enter(0),this.expect(10),this.match(13)){if(t!==null)this.unexpected(t);return this.parseFor(e,null)}let r=this.isContextual(100);{let o=this.isAwaitUsing(),l=o||this.isForUsing(),u=r&&this.hasFollowingBindingAtom()||l;if(this.match(74)||this.match(75)||u){let p=this.startNode(),m;if(o){if(m="await using",!this.recordAwaitIfAllowed())this.raise(T.AwaitUsingNotInAsyncContext,this.state.startLoc);this.next()}else m=this.state.value;this.next(),this.parseVar(p,!0,m);let x=this.finishNode(p,"VariableDeclaration"),g=this.match(58);if(g&&l)this.raise(T.ForInUsing,x);if((g||this.isContextual(102))&&x.declarations.length===1)return this.parseForIn(e,x,t);if(t!==null)this.unexpected(t);return this.parseFor(e,x)}}let s=this.isContextual(95),i=new ns,n=this.parseExpression(!0,i),a=this.isContextual(102);if(a){if(r)this.raise(T.ForOfLet,n);if(t===null&&s&&n.type==="Identifier")this.raise(T.ForOfAsync,n)}if(a||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(n,!0);let o=a?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{type:o}),this.parseForIn(e,n,t)}else this.checkExpressionErrors(i,!0);if(t!==null)this.unexpected(t);return this.parseFor(e,n)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){if(!this.prodParam.hasReturn)this.raise(T.IllegalReturn,this.state.startLoc);if(this.next(),this.isLineTerminator())e.argument=null;else e.argument=this.parseExpression(),this.semicolon();return this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();let t=e.cases=[];this.expect(5),this.state.labels.push(ag),this.scope.enter(256);let r;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let i=this.match(61);if(r)this.finishNode(r,"SwitchCase");if(t.push(r=this.startNode()),r.consequent=[],this.next(),i)r.test=this.parseExpression();else{if(s)this.raise(T.MultipleDefaultsInSwitch,this.state.lastTokStartLoc);s=!0,r.test=null}this.expect(14)}else if(r)r.consequent.push(this.parseStatementListItem());else this.unexpected();if(this.scope.exit(),r)this.finishNode(r,"SwitchCase");return this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){if(this.next(),this.hasPrecedingLineBreak())this.raise(T.NewlineAfterThrow,this.state.lastTokEndLoc);return e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){let e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&e.type==="Identifier"?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){let t=this.startNode();if(this.next(),this.match(10))this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11);else t.param=null,this.scope.enter(0);t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}if(e.finalizer=this.eat(67)?this.parseBlock():null,!e.handler&&!e.finalizer)this.raise(T.NoCatchOrFinally,e);return this.finishNode(e,"TryStatement")}parseVarStatement(e,t,r=!1){return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(cn),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){if(this.state.strict)this.raise(T.StrictWith,this.state.startLoc);return this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,s){for(let n of this.state.labels)if(n.name===t)this.raise(T.LabelRedeclaration,r,{labelName:t});let i=dS(this.state.type)?1:this.match(71)?2:null;for(let n=this.state.labels.length-1;n>=0;n--){let a=this.state.labels[n];if(a.statementStart===e.start)a.statementStart=this.sourceToOffsetPos(this.state.start),a.kind=i;else break}return this.state.labels.push({name:t,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,r){let s=this.startNode();if(e)this.state.strictErrors.clear();if(this.expect(5),t)this.scope.enter(0);if(this.parseBlockBody(s,e,!1,8,r),t)this.scope.exit();return this.finishNode(s,"BlockStatement")}isValidDirective(e){return e.type==="ExpressionStatement"&&e.expression.type==="StringLiteral"&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,s,i){let n=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(n,t?a:void 0,r,s,i)}parseBlockOrModuleBlockBody(e,t,r,s,i){let n=this.state.strict,a=!1,o=!1;while(!this.match(s)){let l=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(l)){let u=this.stmtToDirective(l);if(t.push(u),!a&&u.value.value==="use strict")a=!0,this.setStrict(!0);continue}o=!0,this.state.strictErrors.clear()}e.push(l)}if(i==null||i.call(this,a),!n)this.setStrict(!1);this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){let s=this.match(58);if(this.next(),s){if(r!==null)this.unexpected(r)}else e.await=r!==null;if(t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier"))this.raise(T.ForInOfLoopInitializer,t,{type:s?"ForInStatement":"ForOfStatement"});if(t.type==="AssignmentPattern")this.raise(T.InvalidLhs,t,{ancestor:{type:"ForStatement"}});return e.left=t,e.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")}parseVar(e,t,r,s=!1){let i=e.declarations=[];e.kind=r;for(;;){let n=this.startNode();if(this.parseVarId(n,r),n.init=!this.eat(29)?null:t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn(),n.init===null&&!s){if(n.id.type!=="Identifier"&&!(t&&(this.match(58)||this.isContextual(102))))this.raise(T.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"});else if((r==="const"||r==="using"||r==="await using")&&!(this.match(58)||this.isContextual(102)))this.raise(T.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r})}if(i.push(this.finishNode(n,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){let r=this.parseBindingAtom();if(t==="using"||t==="await using"){if(r.type==="ArrayPattern"||r.type==="ObjectPattern")this.raise(T.UsingDeclarationHasBindingPattern,r.loc.start)}else if(r.type==="VoidPattern")this.raise(T.UnexpectedVoidPattern,r.loc.start);this.checkLVal(r,{type:"VariableDeclarator"},t==="var"?5:8201),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){let r=t&2,s=!!(t&1),i=s&&!(t&4),n=!!(t&8);if(this.initFunction(e,n),this.match(55)){if(r)this.raise(T.GeneratorInSingleStatementContext,this.state.startLoc);this.next(),e.generator=!0}if(s)e.id=this.parseFunctionId(i);let a=this.state.maybeInArrowParameters;if(this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter($s(n,e.generator)),!s)e.id=this.parseFunctionId();if(this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!r)this.registerFunctionStatementId(e);return this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||Ee(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(WS()),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){if(!e.id)return;this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,r){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,s),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return e.type==="Identifier"&&e.name==="constructor"||e.type==="StringLiteral"&&e.value==="constructor"}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();let r={hadConstructor:!1,hadSuperClass:e},s=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{while(!this.match(8)){if(this.eat(13)){if(s.length>0)throw this.raise(T.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}let n=this.startNode();if(s.length)n.decorators=s,this.resetStartLocationFromNode(n,s[0]),s=[];if(this.parseClassMember(i,n,r),n.kind==="constructor"&&n.decorators&&n.decorators.length>0)this.raise(T.DecoratorConstructor,n)}}),this.state.strict=t,this.next(),s.length)throw this.raise(T.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){let r=this.parseIdentifier(!0);if(this.isClassMethod()){let s=t;return s.kind="method",s.computed=!1,s.key=r,s.static=!1,this.pushClassMethod(e,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=t;return s.computed=!1,s.key=r,s.static=!1,e.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(e,t,r){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5)){this.parseClassStaticBlock(e,t);return}}this.parseClassMemberWithIsStatic(e,t,r,s)}parseClassMemberWithIsStatic(e,t,r,s){let i=t,n=t,a=t,o=t,l=t,u=i,p=i;if(t.static=s,this.parsePropertyNamePrefixOperator(t),this.eat(55)){u.kind="method";let b=this.match(139);if(this.parseClassElementName(u),this.parsePostMemberNameModifiers(u),b){this.pushClassPrivateMethod(e,n,!0,!1);return}if(this.isNonstaticConstructor(i))this.raise(T.ConstructorIsGenerator,i.key);this.pushClassMethod(e,i,!0,!1,!1,!1);return}let m=!this.state.containsEsc&&Ee(this.state.type),x=this.parseClassElementName(t),g=m?x.name:null,E=this.isPrivateName(x),I=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(u.kind="method",E){this.pushClassPrivateMethod(e,n,!1,!1);return}let b=this.isNonstaticConstructor(i),C=!1;if(b){if(i.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript"))this.raise(T.DuplicateConstructor,x);if(b&&this.hasPlugin("typescript")&&t.override)this.raise(T.OverrideOnConstructor,x);r.hadConstructor=!0,C=r.hadSuperClass}this.pushClassMethod(e,i,!1,!1,b,C)}else if(this.isClassProperty())if(E)this.pushClassPrivateProperty(e,o);else this.pushClassProperty(e,a);else if(g==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(x);let b=this.eat(55);if(p.optional)this.unexpected(I);u.kind="method";let C=this.match(139);if(this.parseClassElementName(u),this.parsePostMemberNameModifiers(p),C)this.pushClassPrivateMethod(e,n,b,!0);else{if(this.isNonstaticConstructor(i))this.raise(T.ConstructorIsAsync,i.key);this.pushClassMethod(e,i,b,!0,!1,!1)}}else if((g==="get"||g==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(x),u.kind=g;let b=this.match(139);if(this.parseClassElementName(i),b)this.pushClassPrivateMethod(e,n,!1,!1);else{if(this.isNonstaticConstructor(i))this.raise(T.ConstructorIsAccessor,i.key);this.pushClassMethod(e,i,!1,!1,!1,!1)}this.checkGetterSetterParams(i)}else if(g==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(x);let b=this.match(139);this.parseClassElementName(a),this.pushClassAccessorProperty(e,l,b)}else if(this.isLineTerminator())if(E)this.pushClassPrivateProperty(e,o);else this.pushClassProperty(e,a);else this.unexpected()}parseClassElementName(e){let{type:t,value:r}=this.state;if((t===132||t===134)&&e.static&&r==="prototype")this.raise(T.StaticPrototype,this.state.startLoc);if(t===139){if(r==="constructor")this.raise(T.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return e.key=s,s}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var r;this.scope.enter(720);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=t.body=[];if(this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,e.body.push(this.finishNode(t,"StaticBlock")),(r=t.decorators)!=null&&r.length)this.raise(T.DecoratorStaticBlock,t)}pushClassProperty(e,t){if(!t.computed&&this.nameIsConstructor(t.key))this.raise(T.ConstructorClassField,t.key);e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){let r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){if(!r&&!t.computed&&this.nameIsConstructor(t.key))this.raise(T.ConstructorClassField,t.key);let s=this.parseClassAccessorProperty(t);if(e.body.push(s),r)this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(e,t,r,s,i,n){e.body.push(this.parseMethod(t,r,s,i,n,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,s){let i=this.parseMethod(t,r,s,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);let n=i.kind==="get"?i.static?6:2:i.kind==="set"?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,n)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(ou()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r,s=8331){if(Ee(this.state.type)){if(e.id=this.parseIdentifier(),t)this.declareNameFromIdentifier(e.id,s)}else if(r||!t)e.id=null;else throw this.raise(T.MissingClassName,this.state.startLoc)}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){let r=this.parseMaybeImportPhase(e,!0),s=this.maybeParseExportDefaultSpecifier(e,r),i=!s||this.eat(12),n=i&&this.eatExportStar(e),a=n&&this.maybeParseExportNamespaceSpecifier(e),o=i&&(!a||this.eat(12)),l=s||n;if(n&&!a){if(s)this.unexpected();if(t)throw this.raise(T.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}let u=this.maybeParseExportNamedSpecifiers(e);if(s&&i&&!n&&!u)this.unexpected(null,5);if(a&&o)this.unexpected(null,98);let p;if(l||u){if(p=!1,t)throw this.raise(T.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else p=this.maybeParseExportDeclaration(e);if(l||u||p){var m;let x=e;if(this.checkExport(x,!0,!1,!!x.source),((m=x.declaration)==null?void 0:m.type)==="ClassDeclaration")this.maybeTakeDecorators(t,x.declaration,x);else if(t)throw this.raise(T.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(x,"ExportNamedDeclaration")}if(this.eat(65)){let x=e,g=this.parseExportDefaultExpression();if(x.declaration=g,g.type==="ClassDeclaration")this.maybeTakeDecorators(t,g,x);else if(t)throw this.raise(T.UnsupportedDecoratorExport,e);return this.checkExport(x,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(x,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",t==null?void 0:t.loc.start);let r=t||this.parseIdentifier(!0),s=this.startNodeAtNode(r);return s.exported=r,e.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t,r;(r=(t=e).specifiers)!=null||(t.specifiers=[]);let s=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),s.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){let t=e;if(!t.specifiers)t.specifiers=[];let r=t.exportKind==="type";if(t.specifiers.push(...this.parseExportSpecifiers(r)),t.source=null,this.hasPlugin("importAssertions"))t.assertions=[];else t.attributes=[];return t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){if(this.shouldParseExportDeclaration()){if(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions"))e.assertions=[];else e.attributes=[];return e.declaration=this.parseExportDeclaration(e),!0}return!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){let e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);else if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26)){if(this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(T.DecoratorBeforeExport,this.state.startLoc);return this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0)}if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(T.UnsupportedDefaultExport,this.state.startLoc);let t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){if(this.match(80))return this.parseClass(this.startNode(),!0,!1);return this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:e}=this.state;if(Ee(e)){if(e===95&&!this.state.containsEsc||e===100)return!1;if((e===130||e===129)&&!this.state.containsEsc){let s=this.nextTokenStart(),i=this.input.charCodeAt(s);if(i===123||this.chStartsBindingIdentifier(i,s)&&!this.input.startsWith("from",s))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let t=this.nextTokenStart(),r=this.isUnparsedContextual(t,"from");if(this.input.charCodeAt(t)===44||Ee(this.state.type)&&r)return!0;if(this.match(65)&&r){let s=this.input.charCodeAt(this.nextTokenStartSince(t+4));return s===34||s===39}return!1}parseExportFrom(e,t){if(this.eatContextual(98))e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e);else if(t)this.unexpected();this.semicolon()}shouldParseExportDeclaration(){let{type:e}=this.state;if(e===26){if(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators")){if(this.getPluginOption("decorators","decoratorsBeforeExport")===!0)this.raise(T.DecoratorBeforeExport,this.state.startLoc);return!0}}if(this.isUsing())return this.raise(T.UsingDeclarationExport,this.state.startLoc),!0;if(this.isAwaitUsing())return this.raise(T.UsingDeclarationExport,this.state.startLoc),!0;return e===74||e===75||e===68||e===80||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,s){if(t){var i;if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var n;let a=e.declaration;if(a.type==="Identifier"&&a.name==="from"&&a.end-a.start===4&&!((n=a.extra)!=null&&n.parenthesized))this.raise(T.ExportDefaultFromAsIdentifier,a)}}else if((i=e.specifiers)!=null&&i.length)for(let a of e.specifiers){let{exported:o}=a,l=o.type==="Identifier"?o.name:o.value;if(this.checkDuplicateExports(a,l),!s&&a.local){let{local:u}=a;if(u.type!=="Identifier")this.raise(T.ExportBindingIsString,a,{localName:u.value,exportName:l});else this.checkReservedWord(u.name,u.loc.start,!0,!1),this.scope.checkLocalExport(u)}}else if(e.declaration){let a=e.declaration;if(a.type==="FunctionDeclaration"||a.type==="ClassDeclaration"){let{id:o}=a;if(!o)throw Error("Assertion failure");this.checkDuplicateExports(e,o.name)}else if(a.type==="VariableDeclaration")for(let o of a.declarations)this.checkDeclaration(o.id)}}}checkDeclaration(e){if(e.type==="Identifier")this.checkDuplicateExports(e,e.name);else if(e.type==="ObjectPattern")for(let t of e.properties)this.checkDeclaration(t);else if(e.type==="ArrayPattern"){for(let t of e.elements)if(t)this.checkDeclaration(t)}else if(e.type==="ObjectProperty")this.checkDeclaration(e.value);else if(e.type==="RestElement")this.checkDeclaration(e.argument);else if(e.type==="AssignmentPattern")this.checkDeclaration(e.left)}checkDuplicateExports(e,t){if(this.exportedIdentifiers.has(t))if(t==="default")this.raise(T.DuplicateDefaultExport,e);else this.raise(T.DuplicateExport,e,{exportName:t});this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){let t=[],r=!0;this.expect(5);while(!this.eat(8)){if(r)r=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),i=this.match(134),n=this.startNode();n.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(n,i,e,s))}return t}parseExportSpecifier(e,t,r,s){if(this.eatContextual(93))e.exported=this.parseModuleExportName();else if(t)e.exported=this.cloneStringLiteral(e.local);else if(!e.exported)e.exported=this.cloneIdentifier(e.local);return this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let e=this.parseStringLiteral(this.state.value),t=og.exec(e.value);if(t)this.raise(T.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)});return e}return this.parseIdentifier(!0)}isJSONModuleImport(e){if(e.assertions!=null)return e.assertions.some(({key:t,value:r})=>r.value==="json"&&(t.type==="Identifier"?t.name==="type":t.value==="type"));return!1}checkImportReflection(e){let{specifiers:t}=e,r=t.length===1?t[0].type:null;if(e.phase==="source"){if(r!=="ImportDefaultSpecifier")this.raise(T.SourcePhaseImportRequiresDefault,t[0].loc.start)}else if(e.phase==="defer"){if(r!=="ImportNamespaceSpecifier")this.raise(T.DeferImportRequiresNamespace,t[0].loc.start)}else if(e.module){var s;if(r!=="ImportDefaultSpecifier")this.raise(T.ImportReflectionNotBinding,t[0].loc.start);if(((s=e.assertions)==null?void 0:s.length)>0)this.raise(T.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&e.type!=="ExportAllDeclaration"){let{specifiers:t}=e;if(t!=null){let r=t.find((s)=>{let i;if(s.type==="ExportSpecifier")i=s.local;else if(s.type==="ImportSpecifier")i=s.imported;if(i!==void 0)return i.type==="Identifier"?i.name!=="default":i.value!=="default"});if(r!==void 0)this.raise(T.ImportJSONBindingNotDefault,r.loc.start)}}}isPotentialImportPhase(e){if(e)return!1;return this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(e,t,r,s){if(t)return;if(r==="module")this.expectPlugin("importReflection",s),e.module=!0;else if(this.hasPlugin("importReflection"))e.module=!1;if(r==="source")this.expectPlugin("sourcePhaseImports",s),e.phase="source";else if(r==="defer")this.expectPlugin("deferredImportEvaluation",s),e.phase="defer";else if(this.hasPlugin("sourcePhaseImports"))e.phase=null}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;let r=this.startNode(),s=this.parseIdentifierName(!0),{type:i}=this.state;if(St(i)?i!==98||this.lookaheadCharCode()===102:i!==12)return this.applyImportPhase(e,t,s,r.loc.start),null;else return this.applyImportPhase(e,t,null),this.createIdentifier(r,s)}isPrecedingIdImportPhase(e){let{type:t}=this.state;return Ee(t)?t!==98||this.lookaheadCharCode()===102:t!==12}parseImport(e){if(this.match(134))return this.parseImportSourceAndAttributes(e);return this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),i=s&&this.maybeParseStarImportSpecifier(e);if(s&&!i)this.parseNamedImportSpecifiers(e);return this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){var t;return(t=e.specifiers)!=null||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){if(!this.match(134))this.unexpected();return this.parseExprAtom()}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t,r=8201){return this.checkLVal(e.local,{type:t},r),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);let e=[],t=new Set;do{if(this.match(8))break;let r=this.startNode(),s=this.state.value;if(t.has(s))this.raise(T.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s});if(t.add(s),this.match(134))r.key=this.parseStringLiteral(s);else r.key=this.parseIdentifier(!0);if(this.expect(14),!this.match(134))throw this.raise(T.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){let e=[],t=new Set;do{let r=this.startNode();if(r.key=this.parseIdentifier(!0),r.key.name!=="type")this.raise(T.ModuleAttributeDifferentFromType,r.key);if(t.has(r.key.name))this.raise(T.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name});if(t.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(T.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;if(this.next(),this.hasPlugin("moduleAttributes"))t=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0);else t=this.parseImportAttributes();r=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak()){if(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions"))this.raise(T.ImportAttributesUseAssert,this.state.startLoc);if(!this.hasPlugin("importAssertions"))this.addExtra(e,"deprecatedAssertSyntax",!0);this.next(),t=this.parseImportAttributes()}else t=[];if(!r&&this.hasPlugin("importAssertions"))e.assertions=t;else e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){let r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}else if(St(this.state.type))return this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(e){if(this.match(55)){let t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;this.expect(5);while(!this.eat(8)){if(t)t=!1;else{if(this.eat(14))throw this.raise(T.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let r=this.startNode(),s=this.match(134),i=this.isContextual(130);r.imported=this.parseModuleExportName();let n=this.parseImportSpecifier(r,s,e.importKind==="type"||e.importKind==="typeof",i,void 0);e.specifiers.push(n)}}parseImportSpecifier(e,t,r,s,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{let{imported:n}=e;if(t)throw this.raise(T.ImportBindingIsString,e,{importName:n.value});if(this.checkReservedWord(n.name,e.loc.start,!0,!0),!e.local)e.local=this.cloneIdentifier(n)}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return e.type==="Identifier"&&e.name==="this"}}class wn extends mu{constructor(e,t,r){let s=aS(e);super(s,t);this.options=s,this.initializeScopes(),this.plugins=r,this.filename=s.sourceFilename,this.startIndex=s.startIndex;let i=0;if(s.allowAwaitOutsideFunction)i|=1;if(s.allowReturnOutsideFunction)i|=2;if(s.allowImportExportEverywhere)i|=8;if(s.allowSuperOutsideMethod)i|=16;if(s.allowUndeclaredExports)i|=64;if(s.allowNewTargetOutsideFunction)i|=4;if(s.allowYieldOutsideFunction)i|=32;if(s.ranges)i|=128;if(s.tokens)i|=256;if(s.createImportExpressions)i|=512;if(s.createParenthesizedExpressions)i|=1024;if(s.errorRecovery)i|=2048;if(s.attachComment)i|=4096;if(s.annexB)i|=8192;this.optionFlags=i}getScopeHandler(){return Gs}parse(){this.enterInitialScopes();let e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;let r=this.parseTopLevel(e,t);return r.errors=this.state.errors,r.comments.length=this.state.commentsLen,r}}function ug(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let s=ss(t,e),i=s.parse();if(s.sawUnambiguousESM)return i;if(s.ambiguousScriptDifferentAst)try{return t.sourceType="script",ss(t,e).parse()}catch(n){}else i.program.sourceType="script";return i}catch(s){try{return t.sourceType="script",ss(t,e).parse()}catch(i){}throw s}}else return ss(t,e).parse()}function cg(e,t){let r=ss(t,e);if(r.options.strictMode)r.state.strict=!0;return r.getExpression()}function pg(e){let t={};for(let r of Object.keys(e))t[r]=Rt(e[r]);return t}var fg=pg(cS);function ss(e,t){let r=wn,s=new Map;if(e!=null&&e.plugins){for(let i of e.plugins){let n,a;if(typeof i==="string")n=i;else[n,a]=i;if(!s.has(n))s.set(n,a||{})}ig(s),r=hg(s)}return new r(e,t,s)}var Rl=new Map;function hg(e){let t=[];for(let i of ng)if(e.has(i))t.push(i);let r=t.join("|"),s=Rl.get(r);if(!s){s=wn;for(let i of t)s=hu[i](s);Rl.set(r,s)}return s}yu.parse=ug;yu.parseExpression=cg;yu.tokTypes=fg});var Nn=A(function(Tu){Object.defineProperty(Tu,"__esModule",{value:!0});Tu.Var=Tu.User=Tu.Statement=Tu.SpreadProperty=Tu.Scope=Tu.RestProperty=Tu.ReferencedMemberExpression=Tu.ReferencedIdentifier=Tu.Referenced=Tu.Pure=Tu.NumericLiteralTypeAnnotation=Tu.Generated=Tu.ForAwaitStatement=Tu.Flow=Tu.Expression=Tu.ExistentialTypeParam=Tu.BlockScoped=Tu.BindingIdentifier=void 0;var E1e=Tu.ReferencedIdentifier=["Identifier","JSXIdentifier"],P1e=Tu.ReferencedMemberExpression=["MemberExpression"],A1e=Tu.BindingIdentifier=["Identifier"],v1e=Tu.Statement=["Statement"],C1e=Tu.Expression=["Expression"],I1e=Tu.Scope=["Scopable","Pattern"],w1e=Tu.Referenced=null,N1e=Tu.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],O1e=Tu.Var=["VariableDeclaration"],_1e=Tu.User=null,k1e=Tu.Generated=null,D1e=Tu.Pure=null,L1e=Tu.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],M1e=Tu.RestProperty=["RestElement"],B1e=Tu.SpreadProperty=["RestElement"],F1e=Tu.ExistentialTypeParam=["ExistsTypeAnnotation"],j1e=Tu.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],R1e=Tu.ForAwaitStatement=["ForOfStatement"]});var gu=A(function(U1e,Su){var kr=1000,Dr=kr*60,Lr=Dr*60,cr=Lr*24,Lg=cr*7,Mg=cr*365.25;Su.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Bg(e);else if(r==="number"&&isFinite(e))return t.long?jg(e):Fg(e);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Bg(e){if(e=String(e),e.length>100)return;var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]),s=(t[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return r*Mg;case"weeks":case"week":case"w":return r*Lg;case"days":case"day":case"d":return r*cr;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Lr;case"minutes":case"minute":case"mins":case"min":case"m":return r*Dr;case"seconds":case"second":case"secs":case"sec":case"s":return r*kr;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}function Fg(e){var t=Math.abs(e);if(t>=cr)return Math.round(e/cr)+"d";if(t>=Lr)return Math.round(e/Lr)+"h";if(t>=Dr)return Math.round(e/Dr)+"m";if(t>=kr)return Math.round(e/kr)+"s";return e+"ms"}function jg(e){var t=Math.abs(e);if(t>=cr)return Zs(e,t,cr,"day");if(t>=Lr)return Zs(e,t,Lr,"hour");if(t>=Dr)return Zs(e,t,Dr,"minute");if(t>=kr)return Zs(e,t,kr,"second");return e+" ms"}function Zs(e,t,r,s){var i=t>=r*1.5;return Math.round(e/r)+" "+s+(i?"s":"")}});var On=A(function(K1e,bu){function Rg(e){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=i,r.enabled=o,r.humanize=gu(),r.destroy=u,Object.keys(e).forEach((p)=>{r[p]=e[p]}),r.names=[],r.skips=[],r.formatters={};function t(p){let m=0;for(let x=0;x<p.length;x++)m=(m<<5)-m+p.charCodeAt(x),m|=0;return r.colors[Math.abs(m)%r.colors.length]}r.selectColor=t;function r(p){let m,x=null,g,E;function I(...b){if(!I.enabled)return;let C=I,N=Number(new Date),z=N-(m||N);if(C.diff=z,C.prev=m,C.curr=N,m=N,b[0]=r.coerce(b[0]),typeof b[0]!=="string")b.unshift("%O");let j=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,(ie,ge)=>{if(ie==="%%")return"%";j++;let ke=r.formatters[ge];if(typeof ke==="function"){let Fe=b[j];ie=ke.call(C,Fe),b.splice(j,1),j--}return ie}),r.formatArgs.call(C,b),(C.log||r.log).apply(C,b)}if(I.namespace=p,I.useColors=r.useColors(),I.color=r.selectColor(p),I.extend=s,I.destroy=r.destroy,Object.defineProperty(I,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(x!==null)return x;if(g!==r.namespaces)g=r.namespaces,E=r.enabled(p);return E},set:(b)=>{x=b}}),typeof r.init==="function")r.init(I);return I}function s(p,m){let x=r(this.namespace+(typeof m>"u"?":":m)+p);return x.log=this.log,x}function i(p){r.save(p),r.namespaces=p,r.names=[],r.skips=[];let m=(typeof p==="string"?p:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let x of m)if(x[0]==="-")r.skips.push(x.slice(1));else r.names.push(x)}function n(p,m){let x=0,g=0,E=-1,I=0;while(x<p.length)if(g<m.length&&(m[g]===p[x]||m[g]==="*"))if(m[g]==="*")E=g,I=x,g++;else x++,g++;else if(E!==-1)g=E+1,I++,x=I;else return!1;while(g<m.length&&m[g]==="*")g++;return g===m.length}function a(){let p=[...r.names,...r.skips.map((m)=>"-"+m)].join(",");return r.enable(""),p}function o(p){for(let m of r.skips)if(n(p,m))return!1;for(let m of r.names)if(n(p,m))return!0;return!1}function l(p){if(p instanceof Error)return p.stack||p.message;return p}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}bu.exports=Rg});var Eu=A(function(_n,ei){_n.formatArgs=Ug;_n.save=Kg;_n.load=Vg;_n.useColors=qg;_n.storage=Yg();_n.destroy=(()=>{let e=!1;return()=>{if(!e)e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();_n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function qg(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Ug(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+ei.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,s=0;e[0].replace(/%[a-zA-Z%]/g,(i)=>{if(i==="%%")return;if(r++,i==="%c")s=r}),e.splice(s,0,t)}_n.log=console.debug||console.log||(()=>{});function Kg(e){try{if(e)_n.storage.setItem("debug",e);else _n.storage.removeItem("debug")}catch(t){}}function Vg(){let e;try{e=_n.storage.getItem("debug")||_n.storage.getItem("DEBUG")}catch(t){}if(!e&&typeof process<"u"&&"env"in process)e=process.env.DEBUG;return e}function Yg(){try{return localStorage}catch(e){}}ei.exports=On()(_n);var{formatters:Jg}=ei.exports;Jg.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Cu=A(function(kn,ti){var Pu=nn("tty"),Gt=nn("util");kn.init=nb;kn.log=rb;kn.formatArgs=eb;kn.save=sb;kn.load=ib;kn.useColors=Zg;kn.destroy=Gt.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");kn.colors=[6,2,3,4,5,1];try{let e=(()=>{throw new Error("Cannot require module "+"supports-color");})();if(e&&(e.stderr||e).level>=2)kn.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(e){}kn.inspectOpts=Object.keys(process.env).filter((e)=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(i,n)=>n.toUpperCase()),s=process.env[t];if(/^(yes|on|true|enabled)$/i.test(s))s=!0;else if(/^(no|off|false|disabled)$/i.test(s))s=!1;else if(s==="null")s=null;else s=Number(s);return e[r]=s,e},{});function Zg(){return"colors"in kn.inspectOpts?Boolean(kn.inspectOpts.colors):Pu.isatty(process.stderr.fd)}function eb(e){let{namespace:t,useColors:r}=this;if(r){let s=this.color,i="\x1B[3"+(s<8?s:"8;5;"+s),n=` ${i};1m${t} \x1B[0m`;e[0]=n+e[0].split(`
10
10
  `).join(`
11
- `+n),e.push(i+"m+"+ti.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=tb()+t+" "+e[0]}function tb(){if(kn.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function rb(...e){return process.stderr.write(ei.formatWithOptions(kn.inspectOpts,...e)+`
12
- `)}function sb(e){if(e)process.env.DEBUG=e;else delete process.env.DEBUG}function ib(){return process.env.DEBUG}function nb(e){e.inspectOpts={};let t=Object.keys(kn.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=kn.inspectOpts[t[r]]}ti.exports=On()(kn);var{formatters:Pu}=ti.exports;Pu.o=function(e){return this.inspectOpts.colors=this.useColors,ei.inspect(e,this.inspectOpts).split(`
13
- `).map((t)=>t.trim()).join(" ")};Pu.O=function(e){return this.inspectOpts.colors=this.useColors,ei.inspect(e,this.inspectOpts)}});var Cu=A(function(J1e,Dn){if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)Dn.exports=Eu();else Dn.exports=vu()});var ri=A(function(Iu){Object.defineProperty(Iu,"__esModule",{value:!0});Iu.default=hb;function hb(e,t){let r=Object.keys(t);for(let s of r)if(e[s]!==t[s])return!1;return!0}});var Lr=A(function(Nu){Object.defineProperty(Nu,"__esModule",{value:!0});Nu.default=mb;var wu=new Set;function mb(e,t,r="",s=e){if(wu.has(s))return;wu.add(s);let{internal:i,trace:n}=yb(1,2);if(i)return;console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
11
+ `+n),e.push(i+"m+"+ti.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=tb()+t+" "+e[0]}function tb(){if(kn.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function rb(...e){return process.stderr.write(Gt.formatWithOptions(kn.inspectOpts,...e)+`
12
+ `)}function sb(e){if(e)process.env.DEBUG=e;else delete process.env.DEBUG}function ib(){return process.env.DEBUG}function nb(e){e.inspectOpts={};let t=Object.keys(kn.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=kn.inspectOpts[t[r]]}ti.exports=On()(kn);var{formatters:Au}=ti.exports;Au.o=function(e){return this.inspectOpts.colors=this.useColors,Gt.inspect(e,this.inspectOpts).split(`
13
+ `).map((t)=>t.trim()).join(" ")};Au.O=function(e){return this.inspectOpts.colors=this.useColors,Gt.inspect(e,this.inspectOpts)}});var Iu=A(function(J1e,Dn){if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)Dn.exports=Eu();else Dn.exports=Cu()});var ri=A(function(wu){Object.defineProperty(wu,"__esModule",{value:!0});wu.default=hb;function hb(e,t){let r=Object.keys(t);for(let s of r)if(e[s]!==t[s])return!1;return!0}});var Mr=A(function(Ou){Object.defineProperty(Ou,"__esModule",{value:!0});Ou.default=mb;var Nu=new Set;function mb(e,t,r="",s=e){if(Nu.has(s))return;Nu.add(s);let{internal:i,trace:n}=yb(1,2);if(i)return;console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
14
14
  ${n}`)}function yb(e,t){let{stackTraceLimit:r,prepareStackTrace:s}=Error,i;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){i=o},Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=s,!i)return{internal:!1,trace:""};let n=i.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(n[1].getFileName()),trace:n.map((a)=>` at ${a}`).join(`
15
- `)}}});var Le=A(function(_u){Object.defineProperty(_u,"__esModule",{value:!0});_u.isAccessor=M1;_u.isAnyTypeAnnotation=Z0;_u.isArgumentPlaceholder=wP;_u.isArrayExpression=xb;_u.isArrayPattern=y0;_u.isArrayTypeAnnotation=eE;_u.isArrowFunctionExpression=T0;_u.isAssignmentExpression=Sb;_u.isAssignmentPattern=m0;_u.isAwaitExpression=q0;_u.isBigIntLiteral=K0;_u.isBinary=s1;_u.isBinaryExpression=gb;_u.isBindExpression=NP;_u.isBlock=a1;_u.isBlockParent=n1;_u.isBlockStatement=Ab;_u.isBooleanLiteral=Jb;_u.isBooleanLiteralTypeAnnotation=rE;_u.isBooleanTypeAnnotation=tE;_u.isBreakStatement=vb;_u.isCallExpression=Cb;_u.isCatchClause=Ib;_u.isClass=k1;_u.isClassAccessorProperty=X0;_u.isClassBody=x0;_u.isClassDeclaration=g0;_u.isClassExpression=S0;_u.isClassImplements=iE;_u.isClassMethod=k0;_u.isClassPrivateMethod=H0;_u.isClassPrivateProperty=$0;_u.isClassProperty=W0;_u.isCompletionStatement=u1;_u.isConditional=c1;_u.isConditionalExpression=wb;_u.isContinueStatement=Nb;_u.isDebuggerStatement=Ob;_u.isDecimalLiteral=MP;_u.isDeclaration=S1;_u.isDeclareClass=nE;_u.isDeclareExportAllDeclaration=dE;_u.isDeclareExportDeclaration=hE;_u.isDeclareFunction=aE;_u.isDeclareInterface=oE;_u.isDeclareModule=lE;_u.isDeclareModuleExports=uE;_u.isDeclareOpaqueType=pE;_u.isDeclareTypeAlias=cE;_u.isDeclareVariable=fE;_u.isDeclaredPredicate=mE;_u.isDecorator=OP;_u.isDirective=Eb;_u.isDirectiveLiteral=Pb;_u.isDoExpression=_P;_u.isDoWhileStatement=_b;_u.isEmptyStatement=kb;_u.isEmptyTypeAnnotation=CE;_u.isEnumBody=K1;_u.isEnumBooleanBody=eP;_u.isEnumBooleanMember=iP;_u.isEnumDeclaration=ZE;_u.isEnumDefaultedMember=oP;_u.isEnumMember=V1;_u.isEnumNumberBody=tP;_u.isEnumNumberMember=nP;_u.isEnumStringBody=rP;_u.isEnumStringMember=aP;_u.isEnumSymbolBody=sP;_u.isExistsTypeAnnotation=yE;_u.isExportAllDeclaration=b0;_u.isExportDeclaration=D1;_u.isExportDefaultDeclaration=E0;_u.isExportDefaultSpecifier=kP;_u.isExportNamedDeclaration=P0;_u.isExportNamespaceSpecifier=V0;_u.isExportSpecifier=A0;_u.isExpression=r1;_u.isExpressionStatement=Db;_u.isExpressionWrapper=h1;_u.isFile=Lb;_u.isFlow=F1;_u.isFlowBaseAnnotation=R1;_u.isFlowDeclaration=q1;_u.isFlowPredicate=U1;_u.isFlowType=j1;_u.isFor=d1;_u.isForInStatement=Mb;_u.isForOfStatement=v0;_u.isForStatement=Bb;_u.isForXStatement=m1;_u.isFunction=y1;_u.isFunctionDeclaration=Fb;_u.isFunctionExpression=jb;_u.isFunctionParameter=g1;_u.isFunctionParent=T1;_u.isFunctionTypeAnnotation=TE;_u.isFunctionTypeParam=xE;_u.isGenericTypeAnnotation=SE;_u.isIdentifier=Rb;_u.isIfStatement=qb;_u.isImmutable=v1;_u.isImport=U0;_u.isImportAttribute=Q0;_u.isImportDeclaration=C0;_u.isImportDefaultSpecifier=I0;_u.isImportExpression=O0;_u.isImportNamespaceSpecifier=w0;_u.isImportOrExportDeclaration=Ou;_u.isImportSpecifier=N0;_u.isIndexedAccessType=lP;_u.isInferredPredicate=gE;_u.isInterfaceDeclaration=EE;_u.isInterfaceExtends=bE;_u.isInterfaceTypeAnnotation=PE;_u.isInterpreterDirective=bb;_u.isIntersectionTypeAnnotation=AE;_u.isJSX=Y1;_u.isJSXAttribute=cP;_u.isJSXClosingElement=pP;_u.isJSXClosingFragment=AP;_u.isJSXElement=fP;_u.isJSXEmptyExpression=hP;_u.isJSXExpressionContainer=dP;_u.isJSXFragment=EP;_u.isJSXIdentifier=yP;_u.isJSXMemberExpression=TP;_u.isJSXNamespacedName=xP;_u.isJSXOpeningElement=SP;_u.isJSXOpeningFragment=PP;_u.isJSXSpreadAttribute=gP;_u.isJSXSpreadChild=mP;_u.isJSXText=bP;_u.isLVal=E1;_u.isLabeledStatement=Ub;_u.isLiteral=A1;_u.isLogicalExpression=Xb;_u.isLoop=p1;_u.isMemberExpression=$b;_u.isMetaProperty=_0;_u.isMethod=I1;_u.isMiscellaneous=J1;_u.isMixedTypeAnnotation=vE;_u.isModuleDeclaration=ev;_u.isModuleExpression=BP;_u.isModuleSpecifier=L1;_u.isNewExpression=Hb;_u.isNoop=vP;_u.isNullLiteral=Yb;_u.isNullLiteralTypeAnnotation=sE;_u.isNullableTypeAnnotation=IE;_u.isNumberLiteral=z1;_u.isNumberLiteralTypeAnnotation=wE;_u.isNumberTypeAnnotation=NE;_u.isNumericLiteral=Vb;_u.isObjectExpression=Gb;_u.isObjectMember=w1;_u.isObjectMethod=Qb;_u.isObjectPattern=D0;_u.isObjectProperty=Zb;_u.isObjectTypeAnnotation=OE;_u.isObjectTypeCallProperty=kE;_u.isObjectTypeIndexer=DE;_u.isObjectTypeInternalSlot=_E;_u.isObjectTypeProperty=LE;_u.isObjectTypeSpreadProperty=ME;_u.isOpaqueType=BE;_u.isOptionalCallExpression=J0;_u.isOptionalIndexedAccessType=uP;_u.isOptionalMemberExpression=Y0;_u.isParenthesizedExpression=s0;_u.isPattern=_1;_u.isPatternLike=b1;_u.isPipelineBareFunction=RP;_u.isPipelinePrimaryTopicReference=qP;_u.isPipelineTopicExpression=jP;_u.isPlaceholder=CP;_u.isPrivate=B1;_u.isPrivateName=z0;_u.isProgram=zb;_u.isProperty=N1;_u.isPureish=x1;_u.isQualifiedTypeIdentifier=FE;_u.isRecordExpression=DP;_u.isRegExpLiteral=Wb;_u.isRegexLiteral=G1;_u.isRestElement=e0;_u.isRestProperty=Q1;_u.isReturnStatement=t0;_u.isScopable=i1;_u.isSequenceExpression=r0;_u.isSpreadElement=L0;_u.isSpreadProperty=Z1;_u.isStandardized=t1;_u.isStatement=o1;_u.isStaticBlock=G0;_u.isStringLiteral=Kb;_u.isStringLiteralTypeAnnotation=jE;_u.isStringTypeAnnotation=RE;_u.isSuper=M0;_u.isSwitchCase=i0;_u.isSwitchStatement=n0;_u.isSymbolTypeAnnotation=qE;_u.isTSAnyKeyword=GP;_u.isTSArrayType=TA;_u.isTSAsExpression=FA;_u.isTSBaseType=H1;_u.isTSBigIntKeyword=ZP;_u.isTSBooleanKeyword=QP;_u.isTSCallSignatureDeclaration=WP;_u.isTSConditionalType=AA;_u.isTSConstructSignatureDeclaration=XP;_u.isTSConstructorType=fA;_u.isTSDeclareFunction=VP;_u.isTSDeclareMethod=YP;_u.isTSEntityName=P1;_u.isTSEnumBody=qA;_u.isTSEnumDeclaration=UA;_u.isTSEnumMember=KA;_u.isTSExportAssignment=HA;_u.isTSExpressionWithTypeArguments=kA;_u.isTSExternalModuleReference=XA;_u.isTSFunctionType=pA;_u.isTSImportEqualsDeclaration=WA;_u.isTSImportType=JA;_u.isTSIndexSignature=zP;_u.isTSIndexedAccessType=wA;_u.isTSInferType=vA;_u.isTSInstantiationExpression=BA;_u.isTSInterfaceBody=LA;_u.isTSInterfaceDeclaration=DA;_u.isTSIntersectionType=PA;_u.isTSIntrinsicKeyword=eA;_u.isTSLiteralType=_A;_u.isTSMappedType=NA;_u.isTSMethodSignature=HP;_u.isTSModuleBlock=YA;_u.isTSModuleDeclaration=VA;_u.isTSNamedTupleMember=bA;_u.isTSNamespaceExportDeclaration=zA;_u.isTSNeverKeyword=tA;_u.isTSNonNullExpression=$A;_u.isTSNullKeyword=rA;_u.isTSNumberKeyword=sA;_u.isTSObjectKeyword=iA;_u.isTSOptionalType=SA;_u.isTSParameterProperty=KP;_u.isTSParenthesizedType=CA;_u.isTSPropertySignature=$P;_u.isTSQualifiedName=JP;_u.isTSRestType=gA;_u.isTSSatisfiesExpression=jA;_u.isTSStringKeyword=nA;_u.isTSSymbolKeyword=aA;_u.isTSTemplateLiteralType=OA;_u.isTSThisType=cA;_u.isTSTupleType=xA;_u.isTSType=$1;_u.isTSTypeAliasDeclaration=MA;_u.isTSTypeAnnotation=GA;_u.isTSTypeAssertion=RA;_u.isTSTypeElement=X1;_u.isTSTypeLiteral=yA;_u.isTSTypeOperator=IA;_u.isTSTypeParameter=e1;_u.isTSTypeParameterDeclaration=ZA;_u.isTSTypeParameterInstantiation=QA;_u.isTSTypePredicate=dA;_u.isTSTypeQuery=mA;_u.isTSTypeReference=hA;_u.isTSUndefinedKeyword=oA;_u.isTSUnionType=EA;_u.isTSUnknownKeyword=lA;_u.isTSVoidKeyword=uA;_u.isTaggedTemplateExpression=B0;_u.isTemplateElement=F0;_u.isTemplateLiteral=j0;_u.isTerminatorless=l1;_u.isThisExpression=a0;_u.isThisTypeAnnotation=UE;_u.isThrowStatement=o0;_u.isTopicReference=FP;_u.isTryStatement=l0;_u.isTupleExpression=LP;_u.isTupleTypeAnnotation=KE;_u.isTypeAlias=YE;_u.isTypeAnnotation=JE;_u.isTypeCastExpression=WE;_u.isTypeParameter=XE;_u.isTypeParameterDeclaration=$E;_u.isTypeParameterInstantiation=HE;_u.isTypeScript=W1;_u.isTypeofTypeAnnotation=VE;_u.isUnaryExpression=u0;_u.isUnaryLike=O1;_u.isUnionTypeAnnotation=zE;_u.isUpdateExpression=c0;_u.isUserWhitespacable=C1;_u.isV8IntrinsicIdentifier=IP;_u.isVariableDeclaration=p0;_u.isVariableDeclarator=f0;_u.isVariance=GE;_u.isVoidPattern=UP;_u.isVoidTypeAnnotation=QE;_u.isWhile=f1;_u.isWhileStatement=h0;_u.isWithStatement=d0;_u.isYieldExpression=R0;var h=ri(),cs=Lr();function xb(e,t){if(!e)return!1;if(e.type!=="ArrayExpression")return!1;return t==null||(0,h.default)(e,t)}function Sb(e,t){if(!e)return!1;if(e.type!=="AssignmentExpression")return!1;return t==null||(0,h.default)(e,t)}function gb(e,t){if(!e)return!1;if(e.type!=="BinaryExpression")return!1;return t==null||(0,h.default)(e,t)}function bb(e,t){if(!e)return!1;if(e.type!=="InterpreterDirective")return!1;return t==null||(0,h.default)(e,t)}function Eb(e,t){if(!e)return!1;if(e.type!=="Directive")return!1;return t==null||(0,h.default)(e,t)}function Pb(e,t){if(!e)return!1;if(e.type!=="DirectiveLiteral")return!1;return t==null||(0,h.default)(e,t)}function Ab(e,t){if(!e)return!1;if(e.type!=="BlockStatement")return!1;return t==null||(0,h.default)(e,t)}function vb(e,t){if(!e)return!1;if(e.type!=="BreakStatement")return!1;return t==null||(0,h.default)(e,t)}function Cb(e,t){if(!e)return!1;if(e.type!=="CallExpression")return!1;return t==null||(0,h.default)(e,t)}function Ib(e,t){if(!e)return!1;if(e.type!=="CatchClause")return!1;return t==null||(0,h.default)(e,t)}function wb(e,t){if(!e)return!1;if(e.type!=="ConditionalExpression")return!1;return t==null||(0,h.default)(e,t)}function Nb(e,t){if(!e)return!1;if(e.type!=="ContinueStatement")return!1;return t==null||(0,h.default)(e,t)}function Ob(e,t){if(!e)return!1;if(e.type!=="DebuggerStatement")return!1;return t==null||(0,h.default)(e,t)}function _b(e,t){if(!e)return!1;if(e.type!=="DoWhileStatement")return!1;return t==null||(0,h.default)(e,t)}function kb(e,t){if(!e)return!1;if(e.type!=="EmptyStatement")return!1;return t==null||(0,h.default)(e,t)}function Db(e,t){if(!e)return!1;if(e.type!=="ExpressionStatement")return!1;return t==null||(0,h.default)(e,t)}function Lb(e,t){if(!e)return!1;if(e.type!=="File")return!1;return t==null||(0,h.default)(e,t)}function Mb(e,t){if(!e)return!1;if(e.type!=="ForInStatement")return!1;return t==null||(0,h.default)(e,t)}function Bb(e,t){if(!e)return!1;if(e.type!=="ForStatement")return!1;return t==null||(0,h.default)(e,t)}function Fb(e,t){if(!e)return!1;if(e.type!=="FunctionDeclaration")return!1;return t==null||(0,h.default)(e,t)}function jb(e,t){if(!e)return!1;if(e.type!=="FunctionExpression")return!1;return t==null||(0,h.default)(e,t)}function Rb(e,t){if(!e)return!1;if(e.type!=="Identifier")return!1;return t==null||(0,h.default)(e,t)}function qb(e,t){if(!e)return!1;if(e.type!=="IfStatement")return!1;return t==null||(0,h.default)(e,t)}function Ub(e,t){if(!e)return!1;if(e.type!=="LabeledStatement")return!1;return t==null||(0,h.default)(e,t)}function Kb(e,t){if(!e)return!1;if(e.type!=="StringLiteral")return!1;return t==null||(0,h.default)(e,t)}function Vb(e,t){if(!e)return!1;if(e.type!=="NumericLiteral")return!1;return t==null||(0,h.default)(e,t)}function Yb(e,t){if(!e)return!1;if(e.type!=="NullLiteral")return!1;return t==null||(0,h.default)(e,t)}function Jb(e,t){if(!e)return!1;if(e.type!=="BooleanLiteral")return!1;return t==null||(0,h.default)(e,t)}function Wb(e,t){if(!e)return!1;if(e.type!=="RegExpLiteral")return!1;return t==null||(0,h.default)(e,t)}function Xb(e,t){if(!e)return!1;if(e.type!=="LogicalExpression")return!1;return t==null||(0,h.default)(e,t)}function $b(e,t){if(!e)return!1;if(e.type!=="MemberExpression")return!1;return t==null||(0,h.default)(e,t)}function Hb(e,t){if(!e)return!1;if(e.type!=="NewExpression")return!1;return t==null||(0,h.default)(e,t)}function zb(e,t){if(!e)return!1;if(e.type!=="Program")return!1;return t==null||(0,h.default)(e,t)}function Gb(e,t){if(!e)return!1;if(e.type!=="ObjectExpression")return!1;return t==null||(0,h.default)(e,t)}function Qb(e,t){if(!e)return!1;if(e.type!=="ObjectMethod")return!1;return t==null||(0,h.default)(e,t)}function Zb(e,t){if(!e)return!1;if(e.type!=="ObjectProperty")return!1;return t==null||(0,h.default)(e,t)}function e0(e,t){if(!e)return!1;if(e.type!=="RestElement")return!1;return t==null||(0,h.default)(e,t)}function t0(e,t){if(!e)return!1;if(e.type!=="ReturnStatement")return!1;return t==null||(0,h.default)(e,t)}function r0(e,t){if(!e)return!1;if(e.type!=="SequenceExpression")return!1;return t==null||(0,h.default)(e,t)}function s0(e,t){if(!e)return!1;if(e.type!=="ParenthesizedExpression")return!1;return t==null||(0,h.default)(e,t)}function i0(e,t){if(!e)return!1;if(e.type!=="SwitchCase")return!1;return t==null||(0,h.default)(e,t)}function n0(e,t){if(!e)return!1;if(e.type!=="SwitchStatement")return!1;return t==null||(0,h.default)(e,t)}function a0(e,t){if(!e)return!1;if(e.type!=="ThisExpression")return!1;return t==null||(0,h.default)(e,t)}function o0(e,t){if(!e)return!1;if(e.type!=="ThrowStatement")return!1;return t==null||(0,h.default)(e,t)}function l0(e,t){if(!e)return!1;if(e.type!=="TryStatement")return!1;return t==null||(0,h.default)(e,t)}function u0(e,t){if(!e)return!1;if(e.type!=="UnaryExpression")return!1;return t==null||(0,h.default)(e,t)}function c0(e,t){if(!e)return!1;if(e.type!=="UpdateExpression")return!1;return t==null||(0,h.default)(e,t)}function p0(e,t){if(!e)return!1;if(e.type!=="VariableDeclaration")return!1;return t==null||(0,h.default)(e,t)}function f0(e,t){if(!e)return!1;if(e.type!=="VariableDeclarator")return!1;return t==null||(0,h.default)(e,t)}function h0(e,t){if(!e)return!1;if(e.type!=="WhileStatement")return!1;return t==null||(0,h.default)(e,t)}function d0(e,t){if(!e)return!1;if(e.type!=="WithStatement")return!1;return t==null||(0,h.default)(e,t)}function m0(e,t){if(!e)return!1;if(e.type!=="AssignmentPattern")return!1;return t==null||(0,h.default)(e,t)}function y0(e,t){if(!e)return!1;if(e.type!=="ArrayPattern")return!1;return t==null||(0,h.default)(e,t)}function T0(e,t){if(!e)return!1;if(e.type!=="ArrowFunctionExpression")return!1;return t==null||(0,h.default)(e,t)}function x0(e,t){if(!e)return!1;if(e.type!=="ClassBody")return!1;return t==null||(0,h.default)(e,t)}function S0(e,t){if(!e)return!1;if(e.type!=="ClassExpression")return!1;return t==null||(0,h.default)(e,t)}function g0(e,t){if(!e)return!1;if(e.type!=="ClassDeclaration")return!1;return t==null||(0,h.default)(e,t)}function b0(e,t){if(!e)return!1;if(e.type!=="ExportAllDeclaration")return!1;return t==null||(0,h.default)(e,t)}function E0(e,t){if(!e)return!1;if(e.type!=="ExportDefaultDeclaration")return!1;return t==null||(0,h.default)(e,t)}function P0(e,t){if(!e)return!1;if(e.type!=="ExportNamedDeclaration")return!1;return t==null||(0,h.default)(e,t)}function A0(e,t){if(!e)return!1;if(e.type!=="ExportSpecifier")return!1;return t==null||(0,h.default)(e,t)}function v0(e,t){if(!e)return!1;if(e.type!=="ForOfStatement")return!1;return t==null||(0,h.default)(e,t)}function C0(e,t){if(!e)return!1;if(e.type!=="ImportDeclaration")return!1;return t==null||(0,h.default)(e,t)}function I0(e,t){if(!e)return!1;if(e.type!=="ImportDefaultSpecifier")return!1;return t==null||(0,h.default)(e,t)}function w0(e,t){if(!e)return!1;if(e.type!=="ImportNamespaceSpecifier")return!1;return t==null||(0,h.default)(e,t)}function N0(e,t){if(!e)return!1;if(e.type!=="ImportSpecifier")return!1;return t==null||(0,h.default)(e,t)}function O0(e,t){if(!e)return!1;if(e.type!=="ImportExpression")return!1;return t==null||(0,h.default)(e,t)}function _0(e,t){if(!e)return!1;if(e.type!=="MetaProperty")return!1;return t==null||(0,h.default)(e,t)}function k0(e,t){if(!e)return!1;if(e.type!=="ClassMethod")return!1;return t==null||(0,h.default)(e,t)}function D0(e,t){if(!e)return!1;if(e.type!=="ObjectPattern")return!1;return t==null||(0,h.default)(e,t)}function L0(e,t){if(!e)return!1;if(e.type!=="SpreadElement")return!1;return t==null||(0,h.default)(e,t)}function M0(e,t){if(!e)return!1;if(e.type!=="Super")return!1;return t==null||(0,h.default)(e,t)}function B0(e,t){if(!e)return!1;if(e.type!=="TaggedTemplateExpression")return!1;return t==null||(0,h.default)(e,t)}function F0(e,t){if(!e)return!1;if(e.type!=="TemplateElement")return!1;return t==null||(0,h.default)(e,t)}function j0(e,t){if(!e)return!1;if(e.type!=="TemplateLiteral")return!1;return t==null||(0,h.default)(e,t)}function R0(e,t){if(!e)return!1;if(e.type!=="YieldExpression")return!1;return t==null||(0,h.default)(e,t)}function q0(e,t){if(!e)return!1;if(e.type!=="AwaitExpression")return!1;return t==null||(0,h.default)(e,t)}function U0(e,t){if(!e)return!1;if(e.type!=="Import")return!1;return t==null||(0,h.default)(e,t)}function K0(e,t){if(!e)return!1;if(e.type!=="BigIntLiteral")return!1;return t==null||(0,h.default)(e,t)}function V0(e,t){if(!e)return!1;if(e.type!=="ExportNamespaceSpecifier")return!1;return t==null||(0,h.default)(e,t)}function Y0(e,t){if(!e)return!1;if(e.type!=="OptionalMemberExpression")return!1;return t==null||(0,h.default)(e,t)}function J0(e,t){if(!e)return!1;if(e.type!=="OptionalCallExpression")return!1;return t==null||(0,h.default)(e,t)}function W0(e,t){if(!e)return!1;if(e.type!=="ClassProperty")return!1;return t==null||(0,h.default)(e,t)}function X0(e,t){if(!e)return!1;if(e.type!=="ClassAccessorProperty")return!1;return t==null||(0,h.default)(e,t)}function $0(e,t){if(!e)return!1;if(e.type!=="ClassPrivateProperty")return!1;return t==null||(0,h.default)(e,t)}function H0(e,t){if(!e)return!1;if(e.type!=="ClassPrivateMethod")return!1;return t==null||(0,h.default)(e,t)}function z0(e,t){if(!e)return!1;if(e.type!=="PrivateName")return!1;return t==null||(0,h.default)(e,t)}function G0(e,t){if(!e)return!1;if(e.type!=="StaticBlock")return!1;return t==null||(0,h.default)(e,t)}function Q0(e,t){if(!e)return!1;if(e.type!=="ImportAttribute")return!1;return t==null||(0,h.default)(e,t)}function Z0(e,t){if(!e)return!1;if(e.type!=="AnyTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function eE(e,t){if(!e)return!1;if(e.type!=="ArrayTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function tE(e,t){if(!e)return!1;if(e.type!=="BooleanTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function rE(e,t){if(!e)return!1;if(e.type!=="BooleanLiteralTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function sE(e,t){if(!e)return!1;if(e.type!=="NullLiteralTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function iE(e,t){if(!e)return!1;if(e.type!=="ClassImplements")return!1;return t==null||(0,h.default)(e,t)}function nE(e,t){if(!e)return!1;if(e.type!=="DeclareClass")return!1;return t==null||(0,h.default)(e,t)}function aE(e,t){if(!e)return!1;if(e.type!=="DeclareFunction")return!1;return t==null||(0,h.default)(e,t)}function oE(e,t){if(!e)return!1;if(e.type!=="DeclareInterface")return!1;return t==null||(0,h.default)(e,t)}function lE(e,t){if(!e)return!1;if(e.type!=="DeclareModule")return!1;return t==null||(0,h.default)(e,t)}function uE(e,t){if(!e)return!1;if(e.type!=="DeclareModuleExports")return!1;return t==null||(0,h.default)(e,t)}function cE(e,t){if(!e)return!1;if(e.type!=="DeclareTypeAlias")return!1;return t==null||(0,h.default)(e,t)}function pE(e,t){if(!e)return!1;if(e.type!=="DeclareOpaqueType")return!1;return t==null||(0,h.default)(e,t)}function fE(e,t){if(!e)return!1;if(e.type!=="DeclareVariable")return!1;return t==null||(0,h.default)(e,t)}function hE(e,t){if(!e)return!1;if(e.type!=="DeclareExportDeclaration")return!1;return t==null||(0,h.default)(e,t)}function dE(e,t){if(!e)return!1;if(e.type!=="DeclareExportAllDeclaration")return!1;return t==null||(0,h.default)(e,t)}function mE(e,t){if(!e)return!1;if(e.type!=="DeclaredPredicate")return!1;return t==null||(0,h.default)(e,t)}function yE(e,t){if(!e)return!1;if(e.type!=="ExistsTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function TE(e,t){if(!e)return!1;if(e.type!=="FunctionTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function xE(e,t){if(!e)return!1;if(e.type!=="FunctionTypeParam")return!1;return t==null||(0,h.default)(e,t)}function SE(e,t){if(!e)return!1;if(e.type!=="GenericTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function gE(e,t){if(!e)return!1;if(e.type!=="InferredPredicate")return!1;return t==null||(0,h.default)(e,t)}function bE(e,t){if(!e)return!1;if(e.type!=="InterfaceExtends")return!1;return t==null||(0,h.default)(e,t)}function EE(e,t){if(!e)return!1;if(e.type!=="InterfaceDeclaration")return!1;return t==null||(0,h.default)(e,t)}function PE(e,t){if(!e)return!1;if(e.type!=="InterfaceTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function AE(e,t){if(!e)return!1;if(e.type!=="IntersectionTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function vE(e,t){if(!e)return!1;if(e.type!=="MixedTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function CE(e,t){if(!e)return!1;if(e.type!=="EmptyTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function IE(e,t){if(!e)return!1;if(e.type!=="NullableTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function wE(e,t){if(!e)return!1;if(e.type!=="NumberLiteralTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function NE(e,t){if(!e)return!1;if(e.type!=="NumberTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function OE(e,t){if(!e)return!1;if(e.type!=="ObjectTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function _E(e,t){if(!e)return!1;if(e.type!=="ObjectTypeInternalSlot")return!1;return t==null||(0,h.default)(e,t)}function kE(e,t){if(!e)return!1;if(e.type!=="ObjectTypeCallProperty")return!1;return t==null||(0,h.default)(e,t)}function DE(e,t){if(!e)return!1;if(e.type!=="ObjectTypeIndexer")return!1;return t==null||(0,h.default)(e,t)}function LE(e,t){if(!e)return!1;if(e.type!=="ObjectTypeProperty")return!1;return t==null||(0,h.default)(e,t)}function ME(e,t){if(!e)return!1;if(e.type!=="ObjectTypeSpreadProperty")return!1;return t==null||(0,h.default)(e,t)}function BE(e,t){if(!e)return!1;if(e.type!=="OpaqueType")return!1;return t==null||(0,h.default)(e,t)}function FE(e,t){if(!e)return!1;if(e.type!=="QualifiedTypeIdentifier")return!1;return t==null||(0,h.default)(e,t)}function jE(e,t){if(!e)return!1;if(e.type!=="StringLiteralTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function RE(e,t){if(!e)return!1;if(e.type!=="StringTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function qE(e,t){if(!e)return!1;if(e.type!=="SymbolTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function UE(e,t){if(!e)return!1;if(e.type!=="ThisTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function KE(e,t){if(!e)return!1;if(e.type!=="TupleTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function VE(e,t){if(!e)return!1;if(e.type!=="TypeofTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function YE(e,t){if(!e)return!1;if(e.type!=="TypeAlias")return!1;return t==null||(0,h.default)(e,t)}function JE(e,t){if(!e)return!1;if(e.type!=="TypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function WE(e,t){if(!e)return!1;if(e.type!=="TypeCastExpression")return!1;return t==null||(0,h.default)(e,t)}function XE(e,t){if(!e)return!1;if(e.type!=="TypeParameter")return!1;return t==null||(0,h.default)(e,t)}function $E(e,t){if(!e)return!1;if(e.type!=="TypeParameterDeclaration")return!1;return t==null||(0,h.default)(e,t)}function HE(e,t){if(!e)return!1;if(e.type!=="TypeParameterInstantiation")return!1;return t==null||(0,h.default)(e,t)}function zE(e,t){if(!e)return!1;if(e.type!=="UnionTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function GE(e,t){if(!e)return!1;if(e.type!=="Variance")return!1;return t==null||(0,h.default)(e,t)}function QE(e,t){if(!e)return!1;if(e.type!=="VoidTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function ZE(e,t){if(!e)return!1;if(e.type!=="EnumDeclaration")return!1;return t==null||(0,h.default)(e,t)}function eP(e,t){if(!e)return!1;if(e.type!=="EnumBooleanBody")return!1;return t==null||(0,h.default)(e,t)}function tP(e,t){if(!e)return!1;if(e.type!=="EnumNumberBody")return!1;return t==null||(0,h.default)(e,t)}function rP(e,t){if(!e)return!1;if(e.type!=="EnumStringBody")return!1;return t==null||(0,h.default)(e,t)}function sP(e,t){if(!e)return!1;if(e.type!=="EnumSymbolBody")return!1;return t==null||(0,h.default)(e,t)}function iP(e,t){if(!e)return!1;if(e.type!=="EnumBooleanMember")return!1;return t==null||(0,h.default)(e,t)}function nP(e,t){if(!e)return!1;if(e.type!=="EnumNumberMember")return!1;return t==null||(0,h.default)(e,t)}function aP(e,t){if(!e)return!1;if(e.type!=="EnumStringMember")return!1;return t==null||(0,h.default)(e,t)}function oP(e,t){if(!e)return!1;if(e.type!=="EnumDefaultedMember")return!1;return t==null||(0,h.default)(e,t)}function lP(e,t){if(!e)return!1;if(e.type!=="IndexedAccessType")return!1;return t==null||(0,h.default)(e,t)}function uP(e,t){if(!e)return!1;if(e.type!=="OptionalIndexedAccessType")return!1;return t==null||(0,h.default)(e,t)}function cP(e,t){if(!e)return!1;if(e.type!=="JSXAttribute")return!1;return t==null||(0,h.default)(e,t)}function pP(e,t){if(!e)return!1;if(e.type!=="JSXClosingElement")return!1;return t==null||(0,h.default)(e,t)}function fP(e,t){if(!e)return!1;if(e.type!=="JSXElement")return!1;return t==null||(0,h.default)(e,t)}function hP(e,t){if(!e)return!1;if(e.type!=="JSXEmptyExpression")return!1;return t==null||(0,h.default)(e,t)}function dP(e,t){if(!e)return!1;if(e.type!=="JSXExpressionContainer")return!1;return t==null||(0,h.default)(e,t)}function mP(e,t){if(!e)return!1;if(e.type!=="JSXSpreadChild")return!1;return t==null||(0,h.default)(e,t)}function yP(e,t){if(!e)return!1;if(e.type!=="JSXIdentifier")return!1;return t==null||(0,h.default)(e,t)}function TP(e,t){if(!e)return!1;if(e.type!=="JSXMemberExpression")return!1;return t==null||(0,h.default)(e,t)}function xP(e,t){if(!e)return!1;if(e.type!=="JSXNamespacedName")return!1;return t==null||(0,h.default)(e,t)}function SP(e,t){if(!e)return!1;if(e.type!=="JSXOpeningElement")return!1;return t==null||(0,h.default)(e,t)}function gP(e,t){if(!e)return!1;if(e.type!=="JSXSpreadAttribute")return!1;return t==null||(0,h.default)(e,t)}function bP(e,t){if(!e)return!1;if(e.type!=="JSXText")return!1;return t==null||(0,h.default)(e,t)}function EP(e,t){if(!e)return!1;if(e.type!=="JSXFragment")return!1;return t==null||(0,h.default)(e,t)}function PP(e,t){if(!e)return!1;if(e.type!=="JSXOpeningFragment")return!1;return t==null||(0,h.default)(e,t)}function AP(e,t){if(!e)return!1;if(e.type!=="JSXClosingFragment")return!1;return t==null||(0,h.default)(e,t)}function vP(e,t){if(!e)return!1;if(e.type!=="Noop")return!1;return t==null||(0,h.default)(e,t)}function CP(e,t){if(!e)return!1;if(e.type!=="Placeholder")return!1;return t==null||(0,h.default)(e,t)}function IP(e,t){if(!e)return!1;if(e.type!=="V8IntrinsicIdentifier")return!1;return t==null||(0,h.default)(e,t)}function wP(e,t){if(!e)return!1;if(e.type!=="ArgumentPlaceholder")return!1;return t==null||(0,h.default)(e,t)}function NP(e,t){if(!e)return!1;if(e.type!=="BindExpression")return!1;return t==null||(0,h.default)(e,t)}function OP(e,t){if(!e)return!1;if(e.type!=="Decorator")return!1;return t==null||(0,h.default)(e,t)}function _P(e,t){if(!e)return!1;if(e.type!=="DoExpression")return!1;return t==null||(0,h.default)(e,t)}function kP(e,t){if(!e)return!1;if(e.type!=="ExportDefaultSpecifier")return!1;return t==null||(0,h.default)(e,t)}function DP(e,t){if(!e)return!1;if(e.type!=="RecordExpression")return!1;return t==null||(0,h.default)(e,t)}function LP(e,t){if(!e)return!1;if(e.type!=="TupleExpression")return!1;return t==null||(0,h.default)(e,t)}function MP(e,t){if(!e)return!1;if(e.type!=="DecimalLiteral")return!1;return t==null||(0,h.default)(e,t)}function BP(e,t){if(!e)return!1;if(e.type!=="ModuleExpression")return!1;return t==null||(0,h.default)(e,t)}function FP(e,t){if(!e)return!1;if(e.type!=="TopicReference")return!1;return t==null||(0,h.default)(e,t)}function jP(e,t){if(!e)return!1;if(e.type!=="PipelineTopicExpression")return!1;return t==null||(0,h.default)(e,t)}function RP(e,t){if(!e)return!1;if(e.type!=="PipelineBareFunction")return!1;return t==null||(0,h.default)(e,t)}function qP(e,t){if(!e)return!1;if(e.type!=="PipelinePrimaryTopicReference")return!1;return t==null||(0,h.default)(e,t)}function UP(e,t){if(!e)return!1;if(e.type!=="VoidPattern")return!1;return t==null||(0,h.default)(e,t)}function KP(e,t){if(!e)return!1;if(e.type!=="TSParameterProperty")return!1;return t==null||(0,h.default)(e,t)}function VP(e,t){if(!e)return!1;if(e.type!=="TSDeclareFunction")return!1;return t==null||(0,h.default)(e,t)}function YP(e,t){if(!e)return!1;if(e.type!=="TSDeclareMethod")return!1;return t==null||(0,h.default)(e,t)}function JP(e,t){if(!e)return!1;if(e.type!=="TSQualifiedName")return!1;return t==null||(0,h.default)(e,t)}function WP(e,t){if(!e)return!1;if(e.type!=="TSCallSignatureDeclaration")return!1;return t==null||(0,h.default)(e,t)}function XP(e,t){if(!e)return!1;if(e.type!=="TSConstructSignatureDeclaration")return!1;return t==null||(0,h.default)(e,t)}function $P(e,t){if(!e)return!1;if(e.type!=="TSPropertySignature")return!1;return t==null||(0,h.default)(e,t)}function HP(e,t){if(!e)return!1;if(e.type!=="TSMethodSignature")return!1;return t==null||(0,h.default)(e,t)}function zP(e,t){if(!e)return!1;if(e.type!=="TSIndexSignature")return!1;return t==null||(0,h.default)(e,t)}function GP(e,t){if(!e)return!1;if(e.type!=="TSAnyKeyword")return!1;return t==null||(0,h.default)(e,t)}function QP(e,t){if(!e)return!1;if(e.type!=="TSBooleanKeyword")return!1;return t==null||(0,h.default)(e,t)}function ZP(e,t){if(!e)return!1;if(e.type!=="TSBigIntKeyword")return!1;return t==null||(0,h.default)(e,t)}function eA(e,t){if(!e)return!1;if(e.type!=="TSIntrinsicKeyword")return!1;return t==null||(0,h.default)(e,t)}function tA(e,t){if(!e)return!1;if(e.type!=="TSNeverKeyword")return!1;return t==null||(0,h.default)(e,t)}function rA(e,t){if(!e)return!1;if(e.type!=="TSNullKeyword")return!1;return t==null||(0,h.default)(e,t)}function sA(e,t){if(!e)return!1;if(e.type!=="TSNumberKeyword")return!1;return t==null||(0,h.default)(e,t)}function iA(e,t){if(!e)return!1;if(e.type!=="TSObjectKeyword")return!1;return t==null||(0,h.default)(e,t)}function nA(e,t){if(!e)return!1;if(e.type!=="TSStringKeyword")return!1;return t==null||(0,h.default)(e,t)}function aA(e,t){if(!e)return!1;if(e.type!=="TSSymbolKeyword")return!1;return t==null||(0,h.default)(e,t)}function oA(e,t){if(!e)return!1;if(e.type!=="TSUndefinedKeyword")return!1;return t==null||(0,h.default)(e,t)}function lA(e,t){if(!e)return!1;if(e.type!=="TSUnknownKeyword")return!1;return t==null||(0,h.default)(e,t)}function uA(e,t){if(!e)return!1;if(e.type!=="TSVoidKeyword")return!1;return t==null||(0,h.default)(e,t)}function cA(e,t){if(!e)return!1;if(e.type!=="TSThisType")return!1;return t==null||(0,h.default)(e,t)}function pA(e,t){if(!e)return!1;if(e.type!=="TSFunctionType")return!1;return t==null||(0,h.default)(e,t)}function fA(e,t){if(!e)return!1;if(e.type!=="TSConstructorType")return!1;return t==null||(0,h.default)(e,t)}function hA(e,t){if(!e)return!1;if(e.type!=="TSTypeReference")return!1;return t==null||(0,h.default)(e,t)}function dA(e,t){if(!e)return!1;if(e.type!=="TSTypePredicate")return!1;return t==null||(0,h.default)(e,t)}function mA(e,t){if(!e)return!1;if(e.type!=="TSTypeQuery")return!1;return t==null||(0,h.default)(e,t)}function yA(e,t){if(!e)return!1;if(e.type!=="TSTypeLiteral")return!1;return t==null||(0,h.default)(e,t)}function TA(e,t){if(!e)return!1;if(e.type!=="TSArrayType")return!1;return t==null||(0,h.default)(e,t)}function xA(e,t){if(!e)return!1;if(e.type!=="TSTupleType")return!1;return t==null||(0,h.default)(e,t)}function SA(e,t){if(!e)return!1;if(e.type!=="TSOptionalType")return!1;return t==null||(0,h.default)(e,t)}function gA(e,t){if(!e)return!1;if(e.type!=="TSRestType")return!1;return t==null||(0,h.default)(e,t)}function bA(e,t){if(!e)return!1;if(e.type!=="TSNamedTupleMember")return!1;return t==null||(0,h.default)(e,t)}function EA(e,t){if(!e)return!1;if(e.type!=="TSUnionType")return!1;return t==null||(0,h.default)(e,t)}function PA(e,t){if(!e)return!1;if(e.type!=="TSIntersectionType")return!1;return t==null||(0,h.default)(e,t)}function AA(e,t){if(!e)return!1;if(e.type!=="TSConditionalType")return!1;return t==null||(0,h.default)(e,t)}function vA(e,t){if(!e)return!1;if(e.type!=="TSInferType")return!1;return t==null||(0,h.default)(e,t)}function CA(e,t){if(!e)return!1;if(e.type!=="TSParenthesizedType")return!1;return t==null||(0,h.default)(e,t)}function IA(e,t){if(!e)return!1;if(e.type!=="TSTypeOperator")return!1;return t==null||(0,h.default)(e,t)}function wA(e,t){if(!e)return!1;if(e.type!=="TSIndexedAccessType")return!1;return t==null||(0,h.default)(e,t)}function NA(e,t){if(!e)return!1;if(e.type!=="TSMappedType")return!1;return t==null||(0,h.default)(e,t)}function OA(e,t){if(!e)return!1;if(e.type!=="TSTemplateLiteralType")return!1;return t==null||(0,h.default)(e,t)}function _A(e,t){if(!e)return!1;if(e.type!=="TSLiteralType")return!1;return t==null||(0,h.default)(e,t)}function kA(e,t){if(!e)return!1;if(e.type!=="TSExpressionWithTypeArguments")return!1;return t==null||(0,h.default)(e,t)}function DA(e,t){if(!e)return!1;if(e.type!=="TSInterfaceDeclaration")return!1;return t==null||(0,h.default)(e,t)}function LA(e,t){if(!e)return!1;if(e.type!=="TSInterfaceBody")return!1;return t==null||(0,h.default)(e,t)}function MA(e,t){if(!e)return!1;if(e.type!=="TSTypeAliasDeclaration")return!1;return t==null||(0,h.default)(e,t)}function BA(e,t){if(!e)return!1;if(e.type!=="TSInstantiationExpression")return!1;return t==null||(0,h.default)(e,t)}function FA(e,t){if(!e)return!1;if(e.type!=="TSAsExpression")return!1;return t==null||(0,h.default)(e,t)}function jA(e,t){if(!e)return!1;if(e.type!=="TSSatisfiesExpression")return!1;return t==null||(0,h.default)(e,t)}function RA(e,t){if(!e)return!1;if(e.type!=="TSTypeAssertion")return!1;return t==null||(0,h.default)(e,t)}function qA(e,t){if(!e)return!1;if(e.type!=="TSEnumBody")return!1;return t==null||(0,h.default)(e,t)}function UA(e,t){if(!e)return!1;if(e.type!=="TSEnumDeclaration")return!1;return t==null||(0,h.default)(e,t)}function KA(e,t){if(!e)return!1;if(e.type!=="TSEnumMember")return!1;return t==null||(0,h.default)(e,t)}function VA(e,t){if(!e)return!1;if(e.type!=="TSModuleDeclaration")return!1;return t==null||(0,h.default)(e,t)}function YA(e,t){if(!e)return!1;if(e.type!=="TSModuleBlock")return!1;return t==null||(0,h.default)(e,t)}function JA(e,t){if(!e)return!1;if(e.type!=="TSImportType")return!1;return t==null||(0,h.default)(e,t)}function WA(e,t){if(!e)return!1;if(e.type!=="TSImportEqualsDeclaration")return!1;return t==null||(0,h.default)(e,t)}function XA(e,t){if(!e)return!1;if(e.type!=="TSExternalModuleReference")return!1;return t==null||(0,h.default)(e,t)}function $A(e,t){if(!e)return!1;if(e.type!=="TSNonNullExpression")return!1;return t==null||(0,h.default)(e,t)}function HA(e,t){if(!e)return!1;if(e.type!=="TSExportAssignment")return!1;return t==null||(0,h.default)(e,t)}function zA(e,t){if(!e)return!1;if(e.type!=="TSNamespaceExportDeclaration")return!1;return t==null||(0,h.default)(e,t)}function GA(e,t){if(!e)return!1;if(e.type!=="TSTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function QA(e,t){if(!e)return!1;if(e.type!=="TSTypeParameterInstantiation")return!1;return t==null||(0,h.default)(e,t)}function ZA(e,t){if(!e)return!1;if(e.type!=="TSTypeParameterDeclaration")return!1;return t==null||(0,h.default)(e,t)}function e1(e,t){if(!e)return!1;if(e.type!=="TSTypeParameter")return!1;return t==null||(0,h.default)(e,t)}function t1(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return t==null||(0,h.default)(e,t)}function r1(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return t==null||(0,h.default)(e,t)}function s1(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return t==null||(0,h.default)(e,t)}function i1(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,h.default)(e,t)}function n1(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,h.default)(e,t)}function a1(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,h.default)(e,t)}function o1(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return t==null||(0,h.default)(e,t)}function l1(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return t==null||(0,h.default)(e,t)}function u1(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return t==null||(0,h.default)(e,t)}function c1(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return t==null||(0,h.default)(e,t)}function p1(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,h.default)(e,t)}function f1(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return t==null||(0,h.default)(e,t)}function h1(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return t==null||(0,h.default)(e,t)}function d1(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,h.default)(e,t)}function m1(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,h.default)(e,t)}function y1(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,h.default)(e,t)}function T1(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return t==null||(0,h.default)(e,t)}function x1(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,h.default)(e,t)}function S1(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return!1}return t==null||(0,h.default)(e,t)}function g1(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,h.default)(e,t)}function b1(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,h.default)(e,t)}function E1(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,h.default)(e,t)}function P1(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,h.default)(e,t)}function A1(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,h.default)(e,t)}function v1(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,h.default)(e,t)}function C1(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return t==null||(0,h.default)(e,t)}function I1(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,h.default)(e,t)}function w1(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return t==null||(0,h.default)(e,t)}function N1(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return t==null||(0,h.default)(e,t)}function O1(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return t==null||(0,h.default)(e,t)}function _1(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return!1}return t==null||(0,h.default)(e,t)}function k1(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return t==null||(0,h.default)(e,t)}function Ou(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return t==null||(0,h.default)(e,t)}function D1(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return t==null||(0,h.default)(e,t)}function L1(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return t==null||(0,h.default)(e,t)}function M1(e,t){if(!e)return!1;switch(e.type){case"ClassAccessorProperty":break;default:return!1}return t==null||(0,h.default)(e,t)}function B1(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return t==null||(0,h.default)(e,t)}function F1(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,h.default)(e,t)}function j1(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,h.default)(e,t)}function R1(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return t==null||(0,h.default)(e,t)}function q1(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return t==null||(0,h.default)(e,t)}function U1(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return t==null||(0,h.default)(e,t)}function K1(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return t==null||(0,h.default)(e,t)}function V1(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return t==null||(0,h.default)(e,t)}function Y1(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return t==null||(0,h.default)(e,t)}function J1(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return t==null||(0,h.default)(e,t)}function W1(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return t==null||(0,h.default)(e,t)}function X1(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return t==null||(0,h.default)(e,t)}function $1(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return t==null||(0,h.default)(e,t)}function H1(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return t==null||(0,h.default)(e,t)}function z1(e,t){if((0,cs.default)("isNumberLiteral","isNumericLiteral"),!e)return!1;if(e.type!=="NumberLiteral")return!1;return t==null||(0,h.default)(e,t)}function G1(e,t){if((0,cs.default)("isRegexLiteral","isRegExpLiteral"),!e)return!1;if(e.type!=="RegexLiteral")return!1;return t==null||(0,h.default)(e,t)}function Q1(e,t){if((0,cs.default)("isRestProperty","isRestElement"),!e)return!1;if(e.type!=="RestProperty")return!1;return t==null||(0,h.default)(e,t)}function Z1(e,t){if((0,cs.default)("isSpreadProperty","isSpreadElement"),!e)return!1;if(e.type!=="SpreadProperty")return!1;return t==null||(0,h.default)(e,t)}function ev(e,t){return(0,cs.default)("isModuleDeclaration","isImportOrExportDeclaration"),Ou(e,t)}});var Ln=A(function(Du){Object.defineProperty(Du,"__esModule",{value:!0});Du.default=RO;var pr=Le();function ku(e){return(0,pr.isMemberExpression)(e)||(0,pr.isMetaProperty)(e)}function RO(e,t,r){if(!ku(e))return!1;let s=Array.isArray(t)?t:t.split("."),i=[],n;for(n=e;ku(n);n=(a=n.object)!=null?a:n.meta){var a;i.push(n.property)}if(i.push(n),i.length<s.length)return!1;if(!r&&i.length>s.length)return!1;for(let o=0,l=i.length-1;o<s.length;o++,l--){let u=i[l],p;if((0,pr.isIdentifier)(u))p=u.name;else if((0,pr.isStringLiteral)(u))p=u.value;else if((0,pr.isThisExpression)(u))p="this";else if((0,pr.isSuper)(u))p="super";else if((0,pr.isPrivateName)(u))p="#"+u.id.name;else return!1;if(s[o]!==p)return!1}return!0}});var Mn=A(function(Lu){Object.defineProperty(Lu,"__esModule",{value:!0});Lu.default=KO;var UO=Ln();function KO(e,t){let r=e.split(".");return(s)=>(0,UO.default)(s,r,t)}});var Fu=A(function(Mu){Object.defineProperty(Mu,"__esModule",{value:!0});Mu.default=void 0;var YO=Mn(),JO=(0,YO.default)("React.Component"),G1e=Mu.default=JO});var Ru=A(function(ju){Object.defineProperty(ju,"__esModule",{value:!0});ju.default=WO;function WO(e){return!!e&&/^[a-z]/.test(e)}});var si=A(function(Uu){Object.defineProperty(Uu,"__esModule",{value:!0});Uu.default=$O;var qu=ut();function $O(e,t){if(e===t)return!0;if(e==null)return!1;if(qu.ALIAS_KEYS[t])return!1;let r=qu.FLIPPED_ALIAS_KEYS[t];if(r!=null&&r.includes(e))return!0;return!1}});var Bn=A(function(Ku){Object.defineProperty(Ku,"__esModule",{value:!0});Ku.default=GO;var zO=ut();function GO(e,t){if(e===t)return!0;let r=zO.PLACEHOLDERS_ALIAS[e];if(r!=null&&r.includes(t))return!0;return!1}});var Mr=A(function(Vu){Object.defineProperty(Vu,"__esModule",{value:!0});Vu.default=s_;var ZO=ri(),e_=si(),t_=Bn(),r_=ut();function s_(e,t,r){if(!t)return!1;if(!(0,e_.default)(t.type,e)){if(!r&&t.type==="Placeholder"&&e in r_.FLIPPED_ALIAS_KEYS)return(0,t_.default)(t.expectedNode,e);return!1}if(r===void 0)return!0;else return(0,ZO.default)(t,r)}});var Hu=A(function($u){Object.defineProperty($u,"__esModule",{value:!0});$u.isIdentifierChar=Xu;$u.isIdentifierName=l_;$u.isIdentifierStart=Wu;var jn="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Yu="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",n_=new RegExp("["+jn+"]"),a_=new RegExp("["+jn+Yu+"]");jn=Yu=null;var Ju=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],o_=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function Fn(e,t){let r=65536;for(let s=0,i=t.length;s<i;s+=2){if(r+=t[s],r>e)return!1;if(r+=t[s+1],r>=e)return!0}return!1}function Wu(e){if(e<65)return e===36;if(e<=90)return!0;if(e<97)return e===95;if(e<=122)return!0;if(e<=65535)return e>=170&&n_.test(String.fromCharCode(e));return Fn(e,Ju)}function Xu(e){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<=90)return!0;if(e<97)return e===95;if(e<=122)return!0;if(e<=65535)return e>=170&&a_.test(String.fromCharCode(e));return Fn(e,Ju)||Fn(e,o_)}function l_(e){let t=!0;for(let r=0;r<e.length;r++){let s=e.charCodeAt(r);if((s&64512)===55296&&r+1<e.length){let i=e.charCodeAt(++r);if((i&64512)===56320)s=65536+((s&1023)<<10)+(i&1023)}if(t){if(t=!1,!Wu(s))return!1}else if(!Xu(s))return!1}return!t}});var ec=A(function(Zu){Object.defineProperty(Zu,"__esModule",{value:!0});Zu.isKeyword=y_;Zu.isReservedWord=zu;Zu.isStrictBindOnlyReservedWord=Qu;Zu.isStrictBindReservedWord=m_;Zu.isStrictReservedWord=Gu;var Rn={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},f_=new Set(Rn.keyword),h_=new Set(Rn.strict),d_=new Set(Rn.strictBind);function zu(e,t){return t&&e==="await"||e==="enum"}function Gu(e,t){return zu(e,t)||h_.has(e)}function Qu(e){return d_.has(e)}function m_(e,t){return Gu(e,t)||Qu(e)}function y_(e){return f_.has(e)}});var fs=A(function(Ct){Object.defineProperty(Ct,"__esModule",{value:!0});Object.defineProperty(Ct,"isIdentifierChar",{enumerable:!0,get:function(){return qn.isIdentifierChar}});Object.defineProperty(Ct,"isIdentifierName",{enumerable:!0,get:function(){return qn.isIdentifierName}});Object.defineProperty(Ct,"isIdentifierStart",{enumerable:!0,get:function(){return qn.isIdentifierStart}});Object.defineProperty(Ct,"isKeyword",{enumerable:!0,get:function(){return ps.isKeyword}});Object.defineProperty(Ct,"isReservedWord",{enumerable:!0,get:function(){return ps.isReservedWord}});Object.defineProperty(Ct,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return ps.isStrictBindOnlyReservedWord}});Object.defineProperty(Ct,"isStrictBindReservedWord",{enumerable:!0,get:function(){return ps.isStrictBindReservedWord}});Object.defineProperty(Ct,"isStrictReservedWord",{enumerable:!0,get:function(){return ps.isStrictReservedWord}});var qn=Hu(),ps=ec()});var Br=A(function(tc){Object.defineProperty(tc,"__esModule",{value:!0});tc.default=E_;var Un=fs();function E_(e,t=!0){if(typeof e!=="string")return!1;if(t){if((0,Un.isKeyword)(e)||(0,Un.isStrictReservedWord)(e,!0))return!1}return(0,Un.isIdentifierName)(e)}});var ac=A(function(nc){Object.defineProperty(nc,"__esModule",{value:!0});nc.readCodePoint=ic;nc.readInt=sc;nc.readStringContents=v_;var A_=function(t){return t>=48&&t<=57},rc={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ii={bin:(e)=>e===48||e===49,oct:(e)=>e>=48&&e<=55,dec:(e)=>e>=48&&e<=57,hex:(e)=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function v_(e,t,r,s,i,n){let a=r,o=s,l=i,u="",p=null,m=r,{length:x}=t;for(;;){if(r>=x){n.unterminated(a,o,l),u+=t.slice(m,r);break}let g=t.charCodeAt(r);if(C_(e,g,t,r)){u+=t.slice(m,r);break}if(g===92){u+=t.slice(m,r);let E=I_(t,r,s,i,e==="template",n);if(E.ch===null&&!p)p={pos:r,lineStart:s,curLine:i};else u+=E.ch;({pos:r,lineStart:s,curLine:i}=E),m=r}else if(g===8232||g===8233)++r,++i,s=r;else if(g===10||g===13)if(e==="template"){if(u+=t.slice(m,r)+`
15
+ `)}}});var Le=A(function(ku){Object.defineProperty(ku,"__esModule",{value:!0});ku.isAccessor=M1;ku.isAnyTypeAnnotation=Z0;ku.isArgumentPlaceholder=wP;ku.isArrayExpression=xb;ku.isArrayPattern=y0;ku.isArrayTypeAnnotation=eE;ku.isArrowFunctionExpression=T0;ku.isAssignmentExpression=Sb;ku.isAssignmentPattern=m0;ku.isAwaitExpression=q0;ku.isBigIntLiteral=K0;ku.isBinary=s1;ku.isBinaryExpression=gb;ku.isBindExpression=NP;ku.isBlock=a1;ku.isBlockParent=n1;ku.isBlockStatement=Ab;ku.isBooleanLiteral=Jb;ku.isBooleanLiteralTypeAnnotation=rE;ku.isBooleanTypeAnnotation=tE;ku.isBreakStatement=vb;ku.isCallExpression=Cb;ku.isCatchClause=Ib;ku.isClass=k1;ku.isClassAccessorProperty=X0;ku.isClassBody=x0;ku.isClassDeclaration=g0;ku.isClassExpression=S0;ku.isClassImplements=iE;ku.isClassMethod=k0;ku.isClassPrivateMethod=H0;ku.isClassPrivateProperty=$0;ku.isClassProperty=W0;ku.isCompletionStatement=u1;ku.isConditional=c1;ku.isConditionalExpression=wb;ku.isContinueStatement=Nb;ku.isDebuggerStatement=Ob;ku.isDecimalLiteral=MP;ku.isDeclaration=S1;ku.isDeclareClass=nE;ku.isDeclareExportAllDeclaration=dE;ku.isDeclareExportDeclaration=hE;ku.isDeclareFunction=aE;ku.isDeclareInterface=oE;ku.isDeclareModule=lE;ku.isDeclareModuleExports=uE;ku.isDeclareOpaqueType=pE;ku.isDeclareTypeAlias=cE;ku.isDeclareVariable=fE;ku.isDeclaredPredicate=mE;ku.isDecorator=OP;ku.isDirective=Eb;ku.isDirectiveLiteral=Pb;ku.isDoExpression=_P;ku.isDoWhileStatement=_b;ku.isEmptyStatement=kb;ku.isEmptyTypeAnnotation=CE;ku.isEnumBody=K1;ku.isEnumBooleanBody=eP;ku.isEnumBooleanMember=iP;ku.isEnumDeclaration=ZE;ku.isEnumDefaultedMember=oP;ku.isEnumMember=V1;ku.isEnumNumberBody=tP;ku.isEnumNumberMember=nP;ku.isEnumStringBody=rP;ku.isEnumStringMember=aP;ku.isEnumSymbolBody=sP;ku.isExistsTypeAnnotation=yE;ku.isExportAllDeclaration=b0;ku.isExportDeclaration=D1;ku.isExportDefaultDeclaration=E0;ku.isExportDefaultSpecifier=kP;ku.isExportNamedDeclaration=P0;ku.isExportNamespaceSpecifier=V0;ku.isExportSpecifier=A0;ku.isExpression=r1;ku.isExpressionStatement=Db;ku.isExpressionWrapper=h1;ku.isFile=Lb;ku.isFlow=F1;ku.isFlowBaseAnnotation=R1;ku.isFlowDeclaration=q1;ku.isFlowPredicate=U1;ku.isFlowType=j1;ku.isFor=d1;ku.isForInStatement=Mb;ku.isForOfStatement=v0;ku.isForStatement=Bb;ku.isForXStatement=m1;ku.isFunction=y1;ku.isFunctionDeclaration=Fb;ku.isFunctionExpression=jb;ku.isFunctionParameter=g1;ku.isFunctionParent=T1;ku.isFunctionTypeAnnotation=TE;ku.isFunctionTypeParam=xE;ku.isGenericTypeAnnotation=SE;ku.isIdentifier=Rb;ku.isIfStatement=qb;ku.isImmutable=v1;ku.isImport=U0;ku.isImportAttribute=Q0;ku.isImportDeclaration=C0;ku.isImportDefaultSpecifier=I0;ku.isImportExpression=O0;ku.isImportNamespaceSpecifier=w0;ku.isImportOrExportDeclaration=_u;ku.isImportSpecifier=N0;ku.isIndexedAccessType=lP;ku.isInferredPredicate=gE;ku.isInterfaceDeclaration=EE;ku.isInterfaceExtends=bE;ku.isInterfaceTypeAnnotation=PE;ku.isInterpreterDirective=bb;ku.isIntersectionTypeAnnotation=AE;ku.isJSX=Y1;ku.isJSXAttribute=cP;ku.isJSXClosingElement=pP;ku.isJSXClosingFragment=AP;ku.isJSXElement=fP;ku.isJSXEmptyExpression=hP;ku.isJSXExpressionContainer=dP;ku.isJSXFragment=EP;ku.isJSXIdentifier=yP;ku.isJSXMemberExpression=TP;ku.isJSXNamespacedName=xP;ku.isJSXOpeningElement=SP;ku.isJSXOpeningFragment=PP;ku.isJSXSpreadAttribute=gP;ku.isJSXSpreadChild=mP;ku.isJSXText=bP;ku.isLVal=E1;ku.isLabeledStatement=Ub;ku.isLiteral=A1;ku.isLogicalExpression=Xb;ku.isLoop=p1;ku.isMemberExpression=$b;ku.isMetaProperty=_0;ku.isMethod=I1;ku.isMiscellaneous=J1;ku.isMixedTypeAnnotation=vE;ku.isModuleDeclaration=ev;ku.isModuleExpression=BP;ku.isModuleSpecifier=L1;ku.isNewExpression=Hb;ku.isNoop=vP;ku.isNullLiteral=Yb;ku.isNullLiteralTypeAnnotation=sE;ku.isNullableTypeAnnotation=IE;ku.isNumberLiteral=z1;ku.isNumberLiteralTypeAnnotation=wE;ku.isNumberTypeAnnotation=NE;ku.isNumericLiteral=Vb;ku.isObjectExpression=Gb;ku.isObjectMember=w1;ku.isObjectMethod=Qb;ku.isObjectPattern=D0;ku.isObjectProperty=Zb;ku.isObjectTypeAnnotation=OE;ku.isObjectTypeCallProperty=kE;ku.isObjectTypeIndexer=DE;ku.isObjectTypeInternalSlot=_E;ku.isObjectTypeProperty=LE;ku.isObjectTypeSpreadProperty=ME;ku.isOpaqueType=BE;ku.isOptionalCallExpression=J0;ku.isOptionalIndexedAccessType=uP;ku.isOptionalMemberExpression=Y0;ku.isParenthesizedExpression=s0;ku.isPattern=_1;ku.isPatternLike=b1;ku.isPipelineBareFunction=RP;ku.isPipelinePrimaryTopicReference=qP;ku.isPipelineTopicExpression=jP;ku.isPlaceholder=CP;ku.isPrivate=B1;ku.isPrivateName=z0;ku.isProgram=zb;ku.isProperty=N1;ku.isPureish=x1;ku.isQualifiedTypeIdentifier=FE;ku.isRecordExpression=DP;ku.isRegExpLiteral=Wb;ku.isRegexLiteral=G1;ku.isRestElement=e0;ku.isRestProperty=Q1;ku.isReturnStatement=t0;ku.isScopable=i1;ku.isSequenceExpression=r0;ku.isSpreadElement=L0;ku.isSpreadProperty=Z1;ku.isStandardized=t1;ku.isStatement=o1;ku.isStaticBlock=G0;ku.isStringLiteral=Kb;ku.isStringLiteralTypeAnnotation=jE;ku.isStringTypeAnnotation=RE;ku.isSuper=M0;ku.isSwitchCase=i0;ku.isSwitchStatement=n0;ku.isSymbolTypeAnnotation=qE;ku.isTSAnyKeyword=GP;ku.isTSArrayType=TA;ku.isTSAsExpression=FA;ku.isTSBaseType=H1;ku.isTSBigIntKeyword=ZP;ku.isTSBooleanKeyword=QP;ku.isTSCallSignatureDeclaration=WP;ku.isTSConditionalType=AA;ku.isTSConstructSignatureDeclaration=XP;ku.isTSConstructorType=fA;ku.isTSDeclareFunction=VP;ku.isTSDeclareMethod=YP;ku.isTSEntityName=P1;ku.isTSEnumBody=qA;ku.isTSEnumDeclaration=UA;ku.isTSEnumMember=KA;ku.isTSExportAssignment=HA;ku.isTSExpressionWithTypeArguments=kA;ku.isTSExternalModuleReference=XA;ku.isTSFunctionType=pA;ku.isTSImportEqualsDeclaration=WA;ku.isTSImportType=JA;ku.isTSIndexSignature=zP;ku.isTSIndexedAccessType=wA;ku.isTSInferType=vA;ku.isTSInstantiationExpression=BA;ku.isTSInterfaceBody=LA;ku.isTSInterfaceDeclaration=DA;ku.isTSIntersectionType=PA;ku.isTSIntrinsicKeyword=eA;ku.isTSLiteralType=_A;ku.isTSMappedType=NA;ku.isTSMethodSignature=HP;ku.isTSModuleBlock=YA;ku.isTSModuleDeclaration=VA;ku.isTSNamedTupleMember=bA;ku.isTSNamespaceExportDeclaration=zA;ku.isTSNeverKeyword=tA;ku.isTSNonNullExpression=$A;ku.isTSNullKeyword=rA;ku.isTSNumberKeyword=sA;ku.isTSObjectKeyword=iA;ku.isTSOptionalType=SA;ku.isTSParameterProperty=KP;ku.isTSParenthesizedType=CA;ku.isTSPropertySignature=$P;ku.isTSQualifiedName=JP;ku.isTSRestType=gA;ku.isTSSatisfiesExpression=jA;ku.isTSStringKeyword=nA;ku.isTSSymbolKeyword=aA;ku.isTSTemplateLiteralType=OA;ku.isTSThisType=cA;ku.isTSTupleType=xA;ku.isTSType=$1;ku.isTSTypeAliasDeclaration=MA;ku.isTSTypeAnnotation=GA;ku.isTSTypeAssertion=RA;ku.isTSTypeElement=X1;ku.isTSTypeLiteral=yA;ku.isTSTypeOperator=IA;ku.isTSTypeParameter=e1;ku.isTSTypeParameterDeclaration=ZA;ku.isTSTypeParameterInstantiation=QA;ku.isTSTypePredicate=dA;ku.isTSTypeQuery=mA;ku.isTSTypeReference=hA;ku.isTSUndefinedKeyword=oA;ku.isTSUnionType=EA;ku.isTSUnknownKeyword=lA;ku.isTSVoidKeyword=uA;ku.isTaggedTemplateExpression=B0;ku.isTemplateElement=F0;ku.isTemplateLiteral=j0;ku.isTerminatorless=l1;ku.isThisExpression=a0;ku.isThisTypeAnnotation=UE;ku.isThrowStatement=o0;ku.isTopicReference=FP;ku.isTryStatement=l0;ku.isTupleExpression=LP;ku.isTupleTypeAnnotation=KE;ku.isTypeAlias=YE;ku.isTypeAnnotation=JE;ku.isTypeCastExpression=WE;ku.isTypeParameter=XE;ku.isTypeParameterDeclaration=$E;ku.isTypeParameterInstantiation=HE;ku.isTypeScript=W1;ku.isTypeofTypeAnnotation=VE;ku.isUnaryExpression=u0;ku.isUnaryLike=O1;ku.isUnionTypeAnnotation=zE;ku.isUpdateExpression=c0;ku.isUserWhitespacable=C1;ku.isV8IntrinsicIdentifier=IP;ku.isVariableDeclaration=p0;ku.isVariableDeclarator=f0;ku.isVariance=GE;ku.isVoidPattern=UP;ku.isVoidTypeAnnotation=QE;ku.isWhile=f1;ku.isWhileStatement=h0;ku.isWithStatement=d0;ku.isYieldExpression=R0;var h=ri(),ps=Mr();function xb(e,t){if(!e)return!1;if(e.type!=="ArrayExpression")return!1;return t==null||(0,h.default)(e,t)}function Sb(e,t){if(!e)return!1;if(e.type!=="AssignmentExpression")return!1;return t==null||(0,h.default)(e,t)}function gb(e,t){if(!e)return!1;if(e.type!=="BinaryExpression")return!1;return t==null||(0,h.default)(e,t)}function bb(e,t){if(!e)return!1;if(e.type!=="InterpreterDirective")return!1;return t==null||(0,h.default)(e,t)}function Eb(e,t){if(!e)return!1;if(e.type!=="Directive")return!1;return t==null||(0,h.default)(e,t)}function Pb(e,t){if(!e)return!1;if(e.type!=="DirectiveLiteral")return!1;return t==null||(0,h.default)(e,t)}function Ab(e,t){if(!e)return!1;if(e.type!=="BlockStatement")return!1;return t==null||(0,h.default)(e,t)}function vb(e,t){if(!e)return!1;if(e.type!=="BreakStatement")return!1;return t==null||(0,h.default)(e,t)}function Cb(e,t){if(!e)return!1;if(e.type!=="CallExpression")return!1;return t==null||(0,h.default)(e,t)}function Ib(e,t){if(!e)return!1;if(e.type!=="CatchClause")return!1;return t==null||(0,h.default)(e,t)}function wb(e,t){if(!e)return!1;if(e.type!=="ConditionalExpression")return!1;return t==null||(0,h.default)(e,t)}function Nb(e,t){if(!e)return!1;if(e.type!=="ContinueStatement")return!1;return t==null||(0,h.default)(e,t)}function Ob(e,t){if(!e)return!1;if(e.type!=="DebuggerStatement")return!1;return t==null||(0,h.default)(e,t)}function _b(e,t){if(!e)return!1;if(e.type!=="DoWhileStatement")return!1;return t==null||(0,h.default)(e,t)}function kb(e,t){if(!e)return!1;if(e.type!=="EmptyStatement")return!1;return t==null||(0,h.default)(e,t)}function Db(e,t){if(!e)return!1;if(e.type!=="ExpressionStatement")return!1;return t==null||(0,h.default)(e,t)}function Lb(e,t){if(!e)return!1;if(e.type!=="File")return!1;return t==null||(0,h.default)(e,t)}function Mb(e,t){if(!e)return!1;if(e.type!=="ForInStatement")return!1;return t==null||(0,h.default)(e,t)}function Bb(e,t){if(!e)return!1;if(e.type!=="ForStatement")return!1;return t==null||(0,h.default)(e,t)}function Fb(e,t){if(!e)return!1;if(e.type!=="FunctionDeclaration")return!1;return t==null||(0,h.default)(e,t)}function jb(e,t){if(!e)return!1;if(e.type!=="FunctionExpression")return!1;return t==null||(0,h.default)(e,t)}function Rb(e,t){if(!e)return!1;if(e.type!=="Identifier")return!1;return t==null||(0,h.default)(e,t)}function qb(e,t){if(!e)return!1;if(e.type!=="IfStatement")return!1;return t==null||(0,h.default)(e,t)}function Ub(e,t){if(!e)return!1;if(e.type!=="LabeledStatement")return!1;return t==null||(0,h.default)(e,t)}function Kb(e,t){if(!e)return!1;if(e.type!=="StringLiteral")return!1;return t==null||(0,h.default)(e,t)}function Vb(e,t){if(!e)return!1;if(e.type!=="NumericLiteral")return!1;return t==null||(0,h.default)(e,t)}function Yb(e,t){if(!e)return!1;if(e.type!=="NullLiteral")return!1;return t==null||(0,h.default)(e,t)}function Jb(e,t){if(!e)return!1;if(e.type!=="BooleanLiteral")return!1;return t==null||(0,h.default)(e,t)}function Wb(e,t){if(!e)return!1;if(e.type!=="RegExpLiteral")return!1;return t==null||(0,h.default)(e,t)}function Xb(e,t){if(!e)return!1;if(e.type!=="LogicalExpression")return!1;return t==null||(0,h.default)(e,t)}function $b(e,t){if(!e)return!1;if(e.type!=="MemberExpression")return!1;return t==null||(0,h.default)(e,t)}function Hb(e,t){if(!e)return!1;if(e.type!=="NewExpression")return!1;return t==null||(0,h.default)(e,t)}function zb(e,t){if(!e)return!1;if(e.type!=="Program")return!1;return t==null||(0,h.default)(e,t)}function Gb(e,t){if(!e)return!1;if(e.type!=="ObjectExpression")return!1;return t==null||(0,h.default)(e,t)}function Qb(e,t){if(!e)return!1;if(e.type!=="ObjectMethod")return!1;return t==null||(0,h.default)(e,t)}function Zb(e,t){if(!e)return!1;if(e.type!=="ObjectProperty")return!1;return t==null||(0,h.default)(e,t)}function e0(e,t){if(!e)return!1;if(e.type!=="RestElement")return!1;return t==null||(0,h.default)(e,t)}function t0(e,t){if(!e)return!1;if(e.type!=="ReturnStatement")return!1;return t==null||(0,h.default)(e,t)}function r0(e,t){if(!e)return!1;if(e.type!=="SequenceExpression")return!1;return t==null||(0,h.default)(e,t)}function s0(e,t){if(!e)return!1;if(e.type!=="ParenthesizedExpression")return!1;return t==null||(0,h.default)(e,t)}function i0(e,t){if(!e)return!1;if(e.type!=="SwitchCase")return!1;return t==null||(0,h.default)(e,t)}function n0(e,t){if(!e)return!1;if(e.type!=="SwitchStatement")return!1;return t==null||(0,h.default)(e,t)}function a0(e,t){if(!e)return!1;if(e.type!=="ThisExpression")return!1;return t==null||(0,h.default)(e,t)}function o0(e,t){if(!e)return!1;if(e.type!=="ThrowStatement")return!1;return t==null||(0,h.default)(e,t)}function l0(e,t){if(!e)return!1;if(e.type!=="TryStatement")return!1;return t==null||(0,h.default)(e,t)}function u0(e,t){if(!e)return!1;if(e.type!=="UnaryExpression")return!1;return t==null||(0,h.default)(e,t)}function c0(e,t){if(!e)return!1;if(e.type!=="UpdateExpression")return!1;return t==null||(0,h.default)(e,t)}function p0(e,t){if(!e)return!1;if(e.type!=="VariableDeclaration")return!1;return t==null||(0,h.default)(e,t)}function f0(e,t){if(!e)return!1;if(e.type!=="VariableDeclarator")return!1;return t==null||(0,h.default)(e,t)}function h0(e,t){if(!e)return!1;if(e.type!=="WhileStatement")return!1;return t==null||(0,h.default)(e,t)}function d0(e,t){if(!e)return!1;if(e.type!=="WithStatement")return!1;return t==null||(0,h.default)(e,t)}function m0(e,t){if(!e)return!1;if(e.type!=="AssignmentPattern")return!1;return t==null||(0,h.default)(e,t)}function y0(e,t){if(!e)return!1;if(e.type!=="ArrayPattern")return!1;return t==null||(0,h.default)(e,t)}function T0(e,t){if(!e)return!1;if(e.type!=="ArrowFunctionExpression")return!1;return t==null||(0,h.default)(e,t)}function x0(e,t){if(!e)return!1;if(e.type!=="ClassBody")return!1;return t==null||(0,h.default)(e,t)}function S0(e,t){if(!e)return!1;if(e.type!=="ClassExpression")return!1;return t==null||(0,h.default)(e,t)}function g0(e,t){if(!e)return!1;if(e.type!=="ClassDeclaration")return!1;return t==null||(0,h.default)(e,t)}function b0(e,t){if(!e)return!1;if(e.type!=="ExportAllDeclaration")return!1;return t==null||(0,h.default)(e,t)}function E0(e,t){if(!e)return!1;if(e.type!=="ExportDefaultDeclaration")return!1;return t==null||(0,h.default)(e,t)}function P0(e,t){if(!e)return!1;if(e.type!=="ExportNamedDeclaration")return!1;return t==null||(0,h.default)(e,t)}function A0(e,t){if(!e)return!1;if(e.type!=="ExportSpecifier")return!1;return t==null||(0,h.default)(e,t)}function v0(e,t){if(!e)return!1;if(e.type!=="ForOfStatement")return!1;return t==null||(0,h.default)(e,t)}function C0(e,t){if(!e)return!1;if(e.type!=="ImportDeclaration")return!1;return t==null||(0,h.default)(e,t)}function I0(e,t){if(!e)return!1;if(e.type!=="ImportDefaultSpecifier")return!1;return t==null||(0,h.default)(e,t)}function w0(e,t){if(!e)return!1;if(e.type!=="ImportNamespaceSpecifier")return!1;return t==null||(0,h.default)(e,t)}function N0(e,t){if(!e)return!1;if(e.type!=="ImportSpecifier")return!1;return t==null||(0,h.default)(e,t)}function O0(e,t){if(!e)return!1;if(e.type!=="ImportExpression")return!1;return t==null||(0,h.default)(e,t)}function _0(e,t){if(!e)return!1;if(e.type!=="MetaProperty")return!1;return t==null||(0,h.default)(e,t)}function k0(e,t){if(!e)return!1;if(e.type!=="ClassMethod")return!1;return t==null||(0,h.default)(e,t)}function D0(e,t){if(!e)return!1;if(e.type!=="ObjectPattern")return!1;return t==null||(0,h.default)(e,t)}function L0(e,t){if(!e)return!1;if(e.type!=="SpreadElement")return!1;return t==null||(0,h.default)(e,t)}function M0(e,t){if(!e)return!1;if(e.type!=="Super")return!1;return t==null||(0,h.default)(e,t)}function B0(e,t){if(!e)return!1;if(e.type!=="TaggedTemplateExpression")return!1;return t==null||(0,h.default)(e,t)}function F0(e,t){if(!e)return!1;if(e.type!=="TemplateElement")return!1;return t==null||(0,h.default)(e,t)}function j0(e,t){if(!e)return!1;if(e.type!=="TemplateLiteral")return!1;return t==null||(0,h.default)(e,t)}function R0(e,t){if(!e)return!1;if(e.type!=="YieldExpression")return!1;return t==null||(0,h.default)(e,t)}function q0(e,t){if(!e)return!1;if(e.type!=="AwaitExpression")return!1;return t==null||(0,h.default)(e,t)}function U0(e,t){if(!e)return!1;if(e.type!=="Import")return!1;return t==null||(0,h.default)(e,t)}function K0(e,t){if(!e)return!1;if(e.type!=="BigIntLiteral")return!1;return t==null||(0,h.default)(e,t)}function V0(e,t){if(!e)return!1;if(e.type!=="ExportNamespaceSpecifier")return!1;return t==null||(0,h.default)(e,t)}function Y0(e,t){if(!e)return!1;if(e.type!=="OptionalMemberExpression")return!1;return t==null||(0,h.default)(e,t)}function J0(e,t){if(!e)return!1;if(e.type!=="OptionalCallExpression")return!1;return t==null||(0,h.default)(e,t)}function W0(e,t){if(!e)return!1;if(e.type!=="ClassProperty")return!1;return t==null||(0,h.default)(e,t)}function X0(e,t){if(!e)return!1;if(e.type!=="ClassAccessorProperty")return!1;return t==null||(0,h.default)(e,t)}function $0(e,t){if(!e)return!1;if(e.type!=="ClassPrivateProperty")return!1;return t==null||(0,h.default)(e,t)}function H0(e,t){if(!e)return!1;if(e.type!=="ClassPrivateMethod")return!1;return t==null||(0,h.default)(e,t)}function z0(e,t){if(!e)return!1;if(e.type!=="PrivateName")return!1;return t==null||(0,h.default)(e,t)}function G0(e,t){if(!e)return!1;if(e.type!=="StaticBlock")return!1;return t==null||(0,h.default)(e,t)}function Q0(e,t){if(!e)return!1;if(e.type!=="ImportAttribute")return!1;return t==null||(0,h.default)(e,t)}function Z0(e,t){if(!e)return!1;if(e.type!=="AnyTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function eE(e,t){if(!e)return!1;if(e.type!=="ArrayTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function tE(e,t){if(!e)return!1;if(e.type!=="BooleanTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function rE(e,t){if(!e)return!1;if(e.type!=="BooleanLiteralTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function sE(e,t){if(!e)return!1;if(e.type!=="NullLiteralTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function iE(e,t){if(!e)return!1;if(e.type!=="ClassImplements")return!1;return t==null||(0,h.default)(e,t)}function nE(e,t){if(!e)return!1;if(e.type!=="DeclareClass")return!1;return t==null||(0,h.default)(e,t)}function aE(e,t){if(!e)return!1;if(e.type!=="DeclareFunction")return!1;return t==null||(0,h.default)(e,t)}function oE(e,t){if(!e)return!1;if(e.type!=="DeclareInterface")return!1;return t==null||(0,h.default)(e,t)}function lE(e,t){if(!e)return!1;if(e.type!=="DeclareModule")return!1;return t==null||(0,h.default)(e,t)}function uE(e,t){if(!e)return!1;if(e.type!=="DeclareModuleExports")return!1;return t==null||(0,h.default)(e,t)}function cE(e,t){if(!e)return!1;if(e.type!=="DeclareTypeAlias")return!1;return t==null||(0,h.default)(e,t)}function pE(e,t){if(!e)return!1;if(e.type!=="DeclareOpaqueType")return!1;return t==null||(0,h.default)(e,t)}function fE(e,t){if(!e)return!1;if(e.type!=="DeclareVariable")return!1;return t==null||(0,h.default)(e,t)}function hE(e,t){if(!e)return!1;if(e.type!=="DeclareExportDeclaration")return!1;return t==null||(0,h.default)(e,t)}function dE(e,t){if(!e)return!1;if(e.type!=="DeclareExportAllDeclaration")return!1;return t==null||(0,h.default)(e,t)}function mE(e,t){if(!e)return!1;if(e.type!=="DeclaredPredicate")return!1;return t==null||(0,h.default)(e,t)}function yE(e,t){if(!e)return!1;if(e.type!=="ExistsTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function TE(e,t){if(!e)return!1;if(e.type!=="FunctionTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function xE(e,t){if(!e)return!1;if(e.type!=="FunctionTypeParam")return!1;return t==null||(0,h.default)(e,t)}function SE(e,t){if(!e)return!1;if(e.type!=="GenericTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function gE(e,t){if(!e)return!1;if(e.type!=="InferredPredicate")return!1;return t==null||(0,h.default)(e,t)}function bE(e,t){if(!e)return!1;if(e.type!=="InterfaceExtends")return!1;return t==null||(0,h.default)(e,t)}function EE(e,t){if(!e)return!1;if(e.type!=="InterfaceDeclaration")return!1;return t==null||(0,h.default)(e,t)}function PE(e,t){if(!e)return!1;if(e.type!=="InterfaceTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function AE(e,t){if(!e)return!1;if(e.type!=="IntersectionTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function vE(e,t){if(!e)return!1;if(e.type!=="MixedTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function CE(e,t){if(!e)return!1;if(e.type!=="EmptyTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function IE(e,t){if(!e)return!1;if(e.type!=="NullableTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function wE(e,t){if(!e)return!1;if(e.type!=="NumberLiteralTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function NE(e,t){if(!e)return!1;if(e.type!=="NumberTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function OE(e,t){if(!e)return!1;if(e.type!=="ObjectTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function _E(e,t){if(!e)return!1;if(e.type!=="ObjectTypeInternalSlot")return!1;return t==null||(0,h.default)(e,t)}function kE(e,t){if(!e)return!1;if(e.type!=="ObjectTypeCallProperty")return!1;return t==null||(0,h.default)(e,t)}function DE(e,t){if(!e)return!1;if(e.type!=="ObjectTypeIndexer")return!1;return t==null||(0,h.default)(e,t)}function LE(e,t){if(!e)return!1;if(e.type!=="ObjectTypeProperty")return!1;return t==null||(0,h.default)(e,t)}function ME(e,t){if(!e)return!1;if(e.type!=="ObjectTypeSpreadProperty")return!1;return t==null||(0,h.default)(e,t)}function BE(e,t){if(!e)return!1;if(e.type!=="OpaqueType")return!1;return t==null||(0,h.default)(e,t)}function FE(e,t){if(!e)return!1;if(e.type!=="QualifiedTypeIdentifier")return!1;return t==null||(0,h.default)(e,t)}function jE(e,t){if(!e)return!1;if(e.type!=="StringLiteralTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function RE(e,t){if(!e)return!1;if(e.type!=="StringTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function qE(e,t){if(!e)return!1;if(e.type!=="SymbolTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function UE(e,t){if(!e)return!1;if(e.type!=="ThisTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function KE(e,t){if(!e)return!1;if(e.type!=="TupleTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function VE(e,t){if(!e)return!1;if(e.type!=="TypeofTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function YE(e,t){if(!e)return!1;if(e.type!=="TypeAlias")return!1;return t==null||(0,h.default)(e,t)}function JE(e,t){if(!e)return!1;if(e.type!=="TypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function WE(e,t){if(!e)return!1;if(e.type!=="TypeCastExpression")return!1;return t==null||(0,h.default)(e,t)}function XE(e,t){if(!e)return!1;if(e.type!=="TypeParameter")return!1;return t==null||(0,h.default)(e,t)}function $E(e,t){if(!e)return!1;if(e.type!=="TypeParameterDeclaration")return!1;return t==null||(0,h.default)(e,t)}function HE(e,t){if(!e)return!1;if(e.type!=="TypeParameterInstantiation")return!1;return t==null||(0,h.default)(e,t)}function zE(e,t){if(!e)return!1;if(e.type!=="UnionTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function GE(e,t){if(!e)return!1;if(e.type!=="Variance")return!1;return t==null||(0,h.default)(e,t)}function QE(e,t){if(!e)return!1;if(e.type!=="VoidTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function ZE(e,t){if(!e)return!1;if(e.type!=="EnumDeclaration")return!1;return t==null||(0,h.default)(e,t)}function eP(e,t){if(!e)return!1;if(e.type!=="EnumBooleanBody")return!1;return t==null||(0,h.default)(e,t)}function tP(e,t){if(!e)return!1;if(e.type!=="EnumNumberBody")return!1;return t==null||(0,h.default)(e,t)}function rP(e,t){if(!e)return!1;if(e.type!=="EnumStringBody")return!1;return t==null||(0,h.default)(e,t)}function sP(e,t){if(!e)return!1;if(e.type!=="EnumSymbolBody")return!1;return t==null||(0,h.default)(e,t)}function iP(e,t){if(!e)return!1;if(e.type!=="EnumBooleanMember")return!1;return t==null||(0,h.default)(e,t)}function nP(e,t){if(!e)return!1;if(e.type!=="EnumNumberMember")return!1;return t==null||(0,h.default)(e,t)}function aP(e,t){if(!e)return!1;if(e.type!=="EnumStringMember")return!1;return t==null||(0,h.default)(e,t)}function oP(e,t){if(!e)return!1;if(e.type!=="EnumDefaultedMember")return!1;return t==null||(0,h.default)(e,t)}function lP(e,t){if(!e)return!1;if(e.type!=="IndexedAccessType")return!1;return t==null||(0,h.default)(e,t)}function uP(e,t){if(!e)return!1;if(e.type!=="OptionalIndexedAccessType")return!1;return t==null||(0,h.default)(e,t)}function cP(e,t){if(!e)return!1;if(e.type!=="JSXAttribute")return!1;return t==null||(0,h.default)(e,t)}function pP(e,t){if(!e)return!1;if(e.type!=="JSXClosingElement")return!1;return t==null||(0,h.default)(e,t)}function fP(e,t){if(!e)return!1;if(e.type!=="JSXElement")return!1;return t==null||(0,h.default)(e,t)}function hP(e,t){if(!e)return!1;if(e.type!=="JSXEmptyExpression")return!1;return t==null||(0,h.default)(e,t)}function dP(e,t){if(!e)return!1;if(e.type!=="JSXExpressionContainer")return!1;return t==null||(0,h.default)(e,t)}function mP(e,t){if(!e)return!1;if(e.type!=="JSXSpreadChild")return!1;return t==null||(0,h.default)(e,t)}function yP(e,t){if(!e)return!1;if(e.type!=="JSXIdentifier")return!1;return t==null||(0,h.default)(e,t)}function TP(e,t){if(!e)return!1;if(e.type!=="JSXMemberExpression")return!1;return t==null||(0,h.default)(e,t)}function xP(e,t){if(!e)return!1;if(e.type!=="JSXNamespacedName")return!1;return t==null||(0,h.default)(e,t)}function SP(e,t){if(!e)return!1;if(e.type!=="JSXOpeningElement")return!1;return t==null||(0,h.default)(e,t)}function gP(e,t){if(!e)return!1;if(e.type!=="JSXSpreadAttribute")return!1;return t==null||(0,h.default)(e,t)}function bP(e,t){if(!e)return!1;if(e.type!=="JSXText")return!1;return t==null||(0,h.default)(e,t)}function EP(e,t){if(!e)return!1;if(e.type!=="JSXFragment")return!1;return t==null||(0,h.default)(e,t)}function PP(e,t){if(!e)return!1;if(e.type!=="JSXOpeningFragment")return!1;return t==null||(0,h.default)(e,t)}function AP(e,t){if(!e)return!1;if(e.type!=="JSXClosingFragment")return!1;return t==null||(0,h.default)(e,t)}function vP(e,t){if(!e)return!1;if(e.type!=="Noop")return!1;return t==null||(0,h.default)(e,t)}function CP(e,t){if(!e)return!1;if(e.type!=="Placeholder")return!1;return t==null||(0,h.default)(e,t)}function IP(e,t){if(!e)return!1;if(e.type!=="V8IntrinsicIdentifier")return!1;return t==null||(0,h.default)(e,t)}function wP(e,t){if(!e)return!1;if(e.type!=="ArgumentPlaceholder")return!1;return t==null||(0,h.default)(e,t)}function NP(e,t){if(!e)return!1;if(e.type!=="BindExpression")return!1;return t==null||(0,h.default)(e,t)}function OP(e,t){if(!e)return!1;if(e.type!=="Decorator")return!1;return t==null||(0,h.default)(e,t)}function _P(e,t){if(!e)return!1;if(e.type!=="DoExpression")return!1;return t==null||(0,h.default)(e,t)}function kP(e,t){if(!e)return!1;if(e.type!=="ExportDefaultSpecifier")return!1;return t==null||(0,h.default)(e,t)}function DP(e,t){if(!e)return!1;if(e.type!=="RecordExpression")return!1;return t==null||(0,h.default)(e,t)}function LP(e,t){if(!e)return!1;if(e.type!=="TupleExpression")return!1;return t==null||(0,h.default)(e,t)}function MP(e,t){if(!e)return!1;if(e.type!=="DecimalLiteral")return!1;return t==null||(0,h.default)(e,t)}function BP(e,t){if(!e)return!1;if(e.type!=="ModuleExpression")return!1;return t==null||(0,h.default)(e,t)}function FP(e,t){if(!e)return!1;if(e.type!=="TopicReference")return!1;return t==null||(0,h.default)(e,t)}function jP(e,t){if(!e)return!1;if(e.type!=="PipelineTopicExpression")return!1;return t==null||(0,h.default)(e,t)}function RP(e,t){if(!e)return!1;if(e.type!=="PipelineBareFunction")return!1;return t==null||(0,h.default)(e,t)}function qP(e,t){if(!e)return!1;if(e.type!=="PipelinePrimaryTopicReference")return!1;return t==null||(0,h.default)(e,t)}function UP(e,t){if(!e)return!1;if(e.type!=="VoidPattern")return!1;return t==null||(0,h.default)(e,t)}function KP(e,t){if(!e)return!1;if(e.type!=="TSParameterProperty")return!1;return t==null||(0,h.default)(e,t)}function VP(e,t){if(!e)return!1;if(e.type!=="TSDeclareFunction")return!1;return t==null||(0,h.default)(e,t)}function YP(e,t){if(!e)return!1;if(e.type!=="TSDeclareMethod")return!1;return t==null||(0,h.default)(e,t)}function JP(e,t){if(!e)return!1;if(e.type!=="TSQualifiedName")return!1;return t==null||(0,h.default)(e,t)}function WP(e,t){if(!e)return!1;if(e.type!=="TSCallSignatureDeclaration")return!1;return t==null||(0,h.default)(e,t)}function XP(e,t){if(!e)return!1;if(e.type!=="TSConstructSignatureDeclaration")return!1;return t==null||(0,h.default)(e,t)}function $P(e,t){if(!e)return!1;if(e.type!=="TSPropertySignature")return!1;return t==null||(0,h.default)(e,t)}function HP(e,t){if(!e)return!1;if(e.type!=="TSMethodSignature")return!1;return t==null||(0,h.default)(e,t)}function zP(e,t){if(!e)return!1;if(e.type!=="TSIndexSignature")return!1;return t==null||(0,h.default)(e,t)}function GP(e,t){if(!e)return!1;if(e.type!=="TSAnyKeyword")return!1;return t==null||(0,h.default)(e,t)}function QP(e,t){if(!e)return!1;if(e.type!=="TSBooleanKeyword")return!1;return t==null||(0,h.default)(e,t)}function ZP(e,t){if(!e)return!1;if(e.type!=="TSBigIntKeyword")return!1;return t==null||(0,h.default)(e,t)}function eA(e,t){if(!e)return!1;if(e.type!=="TSIntrinsicKeyword")return!1;return t==null||(0,h.default)(e,t)}function tA(e,t){if(!e)return!1;if(e.type!=="TSNeverKeyword")return!1;return t==null||(0,h.default)(e,t)}function rA(e,t){if(!e)return!1;if(e.type!=="TSNullKeyword")return!1;return t==null||(0,h.default)(e,t)}function sA(e,t){if(!e)return!1;if(e.type!=="TSNumberKeyword")return!1;return t==null||(0,h.default)(e,t)}function iA(e,t){if(!e)return!1;if(e.type!=="TSObjectKeyword")return!1;return t==null||(0,h.default)(e,t)}function nA(e,t){if(!e)return!1;if(e.type!=="TSStringKeyword")return!1;return t==null||(0,h.default)(e,t)}function aA(e,t){if(!e)return!1;if(e.type!=="TSSymbolKeyword")return!1;return t==null||(0,h.default)(e,t)}function oA(e,t){if(!e)return!1;if(e.type!=="TSUndefinedKeyword")return!1;return t==null||(0,h.default)(e,t)}function lA(e,t){if(!e)return!1;if(e.type!=="TSUnknownKeyword")return!1;return t==null||(0,h.default)(e,t)}function uA(e,t){if(!e)return!1;if(e.type!=="TSVoidKeyword")return!1;return t==null||(0,h.default)(e,t)}function cA(e,t){if(!e)return!1;if(e.type!=="TSThisType")return!1;return t==null||(0,h.default)(e,t)}function pA(e,t){if(!e)return!1;if(e.type!=="TSFunctionType")return!1;return t==null||(0,h.default)(e,t)}function fA(e,t){if(!e)return!1;if(e.type!=="TSConstructorType")return!1;return t==null||(0,h.default)(e,t)}function hA(e,t){if(!e)return!1;if(e.type!=="TSTypeReference")return!1;return t==null||(0,h.default)(e,t)}function dA(e,t){if(!e)return!1;if(e.type!=="TSTypePredicate")return!1;return t==null||(0,h.default)(e,t)}function mA(e,t){if(!e)return!1;if(e.type!=="TSTypeQuery")return!1;return t==null||(0,h.default)(e,t)}function yA(e,t){if(!e)return!1;if(e.type!=="TSTypeLiteral")return!1;return t==null||(0,h.default)(e,t)}function TA(e,t){if(!e)return!1;if(e.type!=="TSArrayType")return!1;return t==null||(0,h.default)(e,t)}function xA(e,t){if(!e)return!1;if(e.type!=="TSTupleType")return!1;return t==null||(0,h.default)(e,t)}function SA(e,t){if(!e)return!1;if(e.type!=="TSOptionalType")return!1;return t==null||(0,h.default)(e,t)}function gA(e,t){if(!e)return!1;if(e.type!=="TSRestType")return!1;return t==null||(0,h.default)(e,t)}function bA(e,t){if(!e)return!1;if(e.type!=="TSNamedTupleMember")return!1;return t==null||(0,h.default)(e,t)}function EA(e,t){if(!e)return!1;if(e.type!=="TSUnionType")return!1;return t==null||(0,h.default)(e,t)}function PA(e,t){if(!e)return!1;if(e.type!=="TSIntersectionType")return!1;return t==null||(0,h.default)(e,t)}function AA(e,t){if(!e)return!1;if(e.type!=="TSConditionalType")return!1;return t==null||(0,h.default)(e,t)}function vA(e,t){if(!e)return!1;if(e.type!=="TSInferType")return!1;return t==null||(0,h.default)(e,t)}function CA(e,t){if(!e)return!1;if(e.type!=="TSParenthesizedType")return!1;return t==null||(0,h.default)(e,t)}function IA(e,t){if(!e)return!1;if(e.type!=="TSTypeOperator")return!1;return t==null||(0,h.default)(e,t)}function wA(e,t){if(!e)return!1;if(e.type!=="TSIndexedAccessType")return!1;return t==null||(0,h.default)(e,t)}function NA(e,t){if(!e)return!1;if(e.type!=="TSMappedType")return!1;return t==null||(0,h.default)(e,t)}function OA(e,t){if(!e)return!1;if(e.type!=="TSTemplateLiteralType")return!1;return t==null||(0,h.default)(e,t)}function _A(e,t){if(!e)return!1;if(e.type!=="TSLiteralType")return!1;return t==null||(0,h.default)(e,t)}function kA(e,t){if(!e)return!1;if(e.type!=="TSExpressionWithTypeArguments")return!1;return t==null||(0,h.default)(e,t)}function DA(e,t){if(!e)return!1;if(e.type!=="TSInterfaceDeclaration")return!1;return t==null||(0,h.default)(e,t)}function LA(e,t){if(!e)return!1;if(e.type!=="TSInterfaceBody")return!1;return t==null||(0,h.default)(e,t)}function MA(e,t){if(!e)return!1;if(e.type!=="TSTypeAliasDeclaration")return!1;return t==null||(0,h.default)(e,t)}function BA(e,t){if(!e)return!1;if(e.type!=="TSInstantiationExpression")return!1;return t==null||(0,h.default)(e,t)}function FA(e,t){if(!e)return!1;if(e.type!=="TSAsExpression")return!1;return t==null||(0,h.default)(e,t)}function jA(e,t){if(!e)return!1;if(e.type!=="TSSatisfiesExpression")return!1;return t==null||(0,h.default)(e,t)}function RA(e,t){if(!e)return!1;if(e.type!=="TSTypeAssertion")return!1;return t==null||(0,h.default)(e,t)}function qA(e,t){if(!e)return!1;if(e.type!=="TSEnumBody")return!1;return t==null||(0,h.default)(e,t)}function UA(e,t){if(!e)return!1;if(e.type!=="TSEnumDeclaration")return!1;return t==null||(0,h.default)(e,t)}function KA(e,t){if(!e)return!1;if(e.type!=="TSEnumMember")return!1;return t==null||(0,h.default)(e,t)}function VA(e,t){if(!e)return!1;if(e.type!=="TSModuleDeclaration")return!1;return t==null||(0,h.default)(e,t)}function YA(e,t){if(!e)return!1;if(e.type!=="TSModuleBlock")return!1;return t==null||(0,h.default)(e,t)}function JA(e,t){if(!e)return!1;if(e.type!=="TSImportType")return!1;return t==null||(0,h.default)(e,t)}function WA(e,t){if(!e)return!1;if(e.type!=="TSImportEqualsDeclaration")return!1;return t==null||(0,h.default)(e,t)}function XA(e,t){if(!e)return!1;if(e.type!=="TSExternalModuleReference")return!1;return t==null||(0,h.default)(e,t)}function $A(e,t){if(!e)return!1;if(e.type!=="TSNonNullExpression")return!1;return t==null||(0,h.default)(e,t)}function HA(e,t){if(!e)return!1;if(e.type!=="TSExportAssignment")return!1;return t==null||(0,h.default)(e,t)}function zA(e,t){if(!e)return!1;if(e.type!=="TSNamespaceExportDeclaration")return!1;return t==null||(0,h.default)(e,t)}function GA(e,t){if(!e)return!1;if(e.type!=="TSTypeAnnotation")return!1;return t==null||(0,h.default)(e,t)}function QA(e,t){if(!e)return!1;if(e.type!=="TSTypeParameterInstantiation")return!1;return t==null||(0,h.default)(e,t)}function ZA(e,t){if(!e)return!1;if(e.type!=="TSTypeParameterDeclaration")return!1;return t==null||(0,h.default)(e,t)}function e1(e,t){if(!e)return!1;if(e.type!=="TSTypeParameter")return!1;return t==null||(0,h.default)(e,t)}function t1(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return t==null||(0,h.default)(e,t)}function r1(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return t==null||(0,h.default)(e,t)}function s1(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return t==null||(0,h.default)(e,t)}function i1(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,h.default)(e,t)}function n1(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,h.default)(e,t)}function a1(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,h.default)(e,t)}function o1(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return t==null||(0,h.default)(e,t)}function l1(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return t==null||(0,h.default)(e,t)}function u1(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return t==null||(0,h.default)(e,t)}function c1(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return t==null||(0,h.default)(e,t)}function p1(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,h.default)(e,t)}function f1(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return t==null||(0,h.default)(e,t)}function h1(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return t==null||(0,h.default)(e,t)}function d1(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,h.default)(e,t)}function m1(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,h.default)(e,t)}function y1(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,h.default)(e,t)}function T1(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return t==null||(0,h.default)(e,t)}function x1(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,h.default)(e,t)}function S1(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return!1}return t==null||(0,h.default)(e,t)}function g1(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,h.default)(e,t)}function b1(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,h.default)(e,t)}function E1(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,h.default)(e,t)}function P1(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,h.default)(e,t)}function A1(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,h.default)(e,t)}function v1(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,h.default)(e,t)}function C1(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return t==null||(0,h.default)(e,t)}function I1(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,h.default)(e,t)}function w1(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return t==null||(0,h.default)(e,t)}function N1(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return t==null||(0,h.default)(e,t)}function O1(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return t==null||(0,h.default)(e,t)}function _1(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return!1}return t==null||(0,h.default)(e,t)}function k1(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return t==null||(0,h.default)(e,t)}function _u(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return t==null||(0,h.default)(e,t)}function D1(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return t==null||(0,h.default)(e,t)}function L1(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return t==null||(0,h.default)(e,t)}function M1(e,t){if(!e)return!1;switch(e.type){case"ClassAccessorProperty":break;default:return!1}return t==null||(0,h.default)(e,t)}function B1(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return t==null||(0,h.default)(e,t)}function F1(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,h.default)(e,t)}function j1(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,h.default)(e,t)}function R1(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return t==null||(0,h.default)(e,t)}function q1(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return t==null||(0,h.default)(e,t)}function U1(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return t==null||(0,h.default)(e,t)}function K1(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return t==null||(0,h.default)(e,t)}function V1(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return t==null||(0,h.default)(e,t)}function Y1(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return t==null||(0,h.default)(e,t)}function J1(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return t==null||(0,h.default)(e,t)}function W1(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return t==null||(0,h.default)(e,t)}function X1(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return t==null||(0,h.default)(e,t)}function $1(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return t==null||(0,h.default)(e,t)}function H1(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return t==null||(0,h.default)(e,t)}function z1(e,t){if((0,ps.default)("isNumberLiteral","isNumericLiteral"),!e)return!1;if(e.type!=="NumberLiteral")return!1;return t==null||(0,h.default)(e,t)}function G1(e,t){if((0,ps.default)("isRegexLiteral","isRegExpLiteral"),!e)return!1;if(e.type!=="RegexLiteral")return!1;return t==null||(0,h.default)(e,t)}function Q1(e,t){if((0,ps.default)("isRestProperty","isRestElement"),!e)return!1;if(e.type!=="RestProperty")return!1;return t==null||(0,h.default)(e,t)}function Z1(e,t){if((0,ps.default)("isSpreadProperty","isSpreadElement"),!e)return!1;if(e.type!=="SpreadProperty")return!1;return t==null||(0,h.default)(e,t)}function ev(e,t){return(0,ps.default)("isModuleDeclaration","isImportOrExportDeclaration"),_u(e,t)}});var Ln=A(function(Lu){Object.defineProperty(Lu,"__esModule",{value:!0});Lu.default=RO;var fr=Le();function Du(e){return(0,fr.isMemberExpression)(e)||(0,fr.isMetaProperty)(e)}function RO(e,t,r){if(!Du(e))return!1;let s=Array.isArray(t)?t:t.split("."),i=[],n;for(n=e;Du(n);n=(a=n.object)!=null?a:n.meta){var a;i.push(n.property)}if(i.push(n),i.length<s.length)return!1;if(!r&&i.length>s.length)return!1;for(let o=0,l=i.length-1;o<s.length;o++,l--){let u=i[l],p;if((0,fr.isIdentifier)(u))p=u.name;else if((0,fr.isStringLiteral)(u))p=u.value;else if((0,fr.isThisExpression)(u))p="this";else if((0,fr.isSuper)(u))p="super";else if((0,fr.isPrivateName)(u))p="#"+u.id.name;else return!1;if(s[o]!==p)return!1}return!0}});var Mn=A(function(Mu){Object.defineProperty(Mu,"__esModule",{value:!0});Mu.default=KO;var UO=Ln();function KO(e,t){let r=e.split(".");return(s)=>(0,UO.default)(s,r,t)}});var ju=A(function(Bu){Object.defineProperty(Bu,"__esModule",{value:!0});Bu.default=void 0;var YO=Mn(),JO=(0,YO.default)("React.Component"),G1e=Bu.default=JO});var qu=A(function(Ru){Object.defineProperty(Ru,"__esModule",{value:!0});Ru.default=WO;function WO(e){return!!e&&/^[a-z]/.test(e)}});var si=A(function(Ku){Object.defineProperty(Ku,"__esModule",{value:!0});Ku.default=$O;var Uu=ut();function $O(e,t){if(e===t)return!0;if(e==null)return!1;if(Uu.ALIAS_KEYS[t])return!1;let r=Uu.FLIPPED_ALIAS_KEYS[t];if(r!=null&&r.includes(e))return!0;return!1}});var Bn=A(function(Vu){Object.defineProperty(Vu,"__esModule",{value:!0});Vu.default=GO;var zO=ut();function GO(e,t){if(e===t)return!0;let r=zO.PLACEHOLDERS_ALIAS[e];if(r!=null&&r.includes(t))return!0;return!1}});var Br=A(function(Yu){Object.defineProperty(Yu,"__esModule",{value:!0});Yu.default=s_;var ZO=ri(),e_=si(),t_=Bn(),r_=ut();function s_(e,t,r){if(!t)return!1;if(!(0,e_.default)(t.type,e)){if(!r&&t.type==="Placeholder"&&e in r_.FLIPPED_ALIAS_KEYS)return(0,t_.default)(t.expectedNode,e);return!1}if(r===void 0)return!0;else return(0,ZO.default)(t,r)}});var zu=A(function(Hu){Object.defineProperty(Hu,"__esModule",{value:!0});Hu.isIdentifierChar=$u;Hu.isIdentifierName=l_;Hu.isIdentifierStart=Xu;var jn="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Ju="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",n_=new RegExp("["+jn+"]"),a_=new RegExp("["+jn+Ju+"]");jn=Ju=null;var Wu=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],o_=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function Fn(e,t){let r=65536;for(let s=0,i=t.length;s<i;s+=2){if(r+=t[s],r>e)return!1;if(r+=t[s+1],r>=e)return!0}return!1}function Xu(e){if(e<65)return e===36;if(e<=90)return!0;if(e<97)return e===95;if(e<=122)return!0;if(e<=65535)return e>=170&&n_.test(String.fromCharCode(e));return Fn(e,Wu)}function $u(e){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<=90)return!0;if(e<97)return e===95;if(e<=122)return!0;if(e<=65535)return e>=170&&a_.test(String.fromCharCode(e));return Fn(e,Wu)||Fn(e,o_)}function l_(e){let t=!0;for(let r=0;r<e.length;r++){let s=e.charCodeAt(r);if((s&64512)===55296&&r+1<e.length){let i=e.charCodeAt(++r);if((i&64512)===56320)s=65536+((s&1023)<<10)+(i&1023)}if(t){if(t=!1,!Xu(s))return!1}else if(!$u(s))return!1}return!t}});var tc=A(function(ec){Object.defineProperty(ec,"__esModule",{value:!0});ec.isKeyword=y_;ec.isReservedWord=Gu;ec.isStrictBindOnlyReservedWord=Zu;ec.isStrictBindReservedWord=m_;ec.isStrictReservedWord=Qu;var Rn={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},f_=new Set(Rn.keyword),h_=new Set(Rn.strict),d_=new Set(Rn.strictBind);function Gu(e,t){return t&&e==="await"||e==="enum"}function Qu(e,t){return Gu(e,t)||h_.has(e)}function Zu(e){return d_.has(e)}function m_(e,t){return Qu(e,t)||Zu(e)}function y_(e){return f_.has(e)}});var hs=A(function(Ct){Object.defineProperty(Ct,"__esModule",{value:!0});Object.defineProperty(Ct,"isIdentifierChar",{enumerable:!0,get:function(){return qn.isIdentifierChar}});Object.defineProperty(Ct,"isIdentifierName",{enumerable:!0,get:function(){return qn.isIdentifierName}});Object.defineProperty(Ct,"isIdentifierStart",{enumerable:!0,get:function(){return qn.isIdentifierStart}});Object.defineProperty(Ct,"isKeyword",{enumerable:!0,get:function(){return fs.isKeyword}});Object.defineProperty(Ct,"isReservedWord",{enumerable:!0,get:function(){return fs.isReservedWord}});Object.defineProperty(Ct,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return fs.isStrictBindOnlyReservedWord}});Object.defineProperty(Ct,"isStrictBindReservedWord",{enumerable:!0,get:function(){return fs.isStrictBindReservedWord}});Object.defineProperty(Ct,"isStrictReservedWord",{enumerable:!0,get:function(){return fs.isStrictReservedWord}});var qn=zu(),fs=tc()});var Fr=A(function(rc){Object.defineProperty(rc,"__esModule",{value:!0});rc.default=E_;var Un=hs();function E_(e,t=!0){if(typeof e!=="string")return!1;if(t){if((0,Un.isKeyword)(e)||(0,Un.isStrictReservedWord)(e,!0))return!1}return(0,Un.isIdentifierName)(e)}});var oc=A(function(ac){Object.defineProperty(ac,"__esModule",{value:!0});ac.readCodePoint=nc;ac.readInt=ic;ac.readStringContents=v_;var A_=function(t){return t>=48&&t<=57},sc={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ii={bin:(e)=>e===48||e===49,oct:(e)=>e>=48&&e<=55,dec:(e)=>e>=48&&e<=57,hex:(e)=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function v_(e,t,r,s,i,n){let a=r,o=s,l=i,u="",p=null,m=r,{length:x}=t;for(;;){if(r>=x){n.unterminated(a,o,l),u+=t.slice(m,r);break}let g=t.charCodeAt(r);if(C_(e,g,t,r)){u+=t.slice(m,r);break}if(g===92){u+=t.slice(m,r);let E=I_(t,r,s,i,e==="template",n);if(E.ch===null&&!p)p={pos:r,lineStart:s,curLine:i};else u+=E.ch;({pos:r,lineStart:s,curLine:i}=E),m=r}else if(g===8232||g===8233)++r,++i,s=r;else if(g===10||g===13)if(e==="template"){if(u+=t.slice(m,r)+`
16
16
  `,++r,g===13&&t.charCodeAt(r)===10)++r;++i,m=s=r}else n.unterminated(a,o,l);else++r}return{pos:r,str:u,firstInvalidLoc:p,lineStart:s,curLine:i,containsInvalid:!!p}}function C_(e,t,r,s){if(e==="template")return t===96||t===36&&r.charCodeAt(s+1)===123;return t===(e==="double"?34:39)}function I_(e,t,r,s,i,n){let a=!i;t++;let o=(u)=>({pos:t,ch:u,lineStart:r,curLine:s}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
17
- `);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=Kn(e,t,r,s,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=ic(e,t,r,s,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:if(e.charCodeAt(t)===10)++t;case 10:r=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);else n.strictNumericEscape(t-1,r,s);default:if(l>=48&&l<=55){let u=t-1,m=/^[0-7]+/.exec(e.slice(u,t+2))[0],x=parseInt(m,8);if(x>255)m=m.slice(0,-1),x=parseInt(m,8);t+=m.length-1;let g=e.charCodeAt(t);if(m!=="0"||g===56||g===57)if(i)return o(null);else n.strictNumericEscape(u,r,s);return o(String.fromCharCode(x))}return o(String.fromCharCode(l))}}function Kn(e,t,r,s,i,n,a,o){let l=t,u;if({n:u,pos:t}=sc(e,t,r,s,16,i,n,!1,o,!a),u===null)if(a)o.invalidEscapeSequence(l,r,s);else t=l-1;return{code:u,pos:t}}function sc(e,t,r,s,i,n,a,o,l,u){let p=t,m=i===16?rc.hex:rc.decBinOct,x=i===16?ii.hex:i===10?ii.dec:i===8?ii.oct:ii.bin,g=!1,E=0;for(let I=0,b=n==null?1/0:n;I<b;++I){let C=e.charCodeAt(t),N;if(C===95&&o!=="bail"){let z=e.charCodeAt(t-1),j=e.charCodeAt(t+1);if(!o){if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,s)}else if(Number.isNaN(j)||!x(j)||m.has(z)||m.has(j)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,s)}++t;continue}if(C>=97)N=C-97+10;else if(C>=65)N=C-65+10;else if(A_(C))N=C-48;else N=1/0;if(N>=i)if(N<=9&&u)return{n:null,pos:t};else if(N<=9&&l.invalidDigit(t,r,s,i))N=0;else if(a)N=0,g=!0;else break;++t,E=E*i+N}if(t===p||n!=null&&t-p!==n||g)return{n:null,pos:t};return{n:E,pos:t}}function ic(e,t,r,s,i,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Kn(e,t,r,s,e.indexOf("}",t)-t,!0,i,n),++t,o!==null&&o>1114111)if(i)n.invalidCodePoint(t,r,s);else return{code:null,pos:t}}else({code:o,pos:t}=Kn(e,t,r,s,4,!1,i,n));return{code:o,pos:t}}});var Fr=A(function(lc){Object.defineProperty(lc,"__esModule",{value:!0});lc.UPDATE_OPERATORS=lc.UNARY_OPERATORS=lc.STRING_UNARY_OPERATORS=lc.STATEMENT_OR_BLOCK_KEYS=lc.NUMBER_UNARY_OPERATORS=lc.NUMBER_BINARY_OPERATORS=lc.LOGICAL_OPERATORS=lc.INHERIT_KEYS=lc.FOR_INIT_KEYS=lc.FLATTENABLE_KEYS=lc.EQUALITY_BINARY_OPERATORS=lc.COMPARISON_BINARY_OPERATORS=lc.COMMENT_KEYS=lc.BOOLEAN_UNARY_OPERATORS=lc.BOOLEAN_NUMBER_BINARY_OPERATORS=lc.BOOLEAN_BINARY_OPERATORS=lc.BINARY_OPERATORS=lc.ASSIGNMENT_OPERATORS=void 0;var lve=lc.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],uve=lc.FLATTENABLE_KEYS=["body","expressions"],cve=lc.FOR_INIT_KEYS=["left","init"],pve=lc.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],__=lc.LOGICAL_OPERATORS=["||","&&","??"],fve=lc.UPDATE_OPERATORS=["++","--"],k_=lc.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],D_=lc.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],L_=lc.COMPARISON_BINARY_OPERATORS=[...D_,"in","instanceof"],M_=lc.BOOLEAN_BINARY_OPERATORS=[...L_,...k_],oc=lc.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],hve=lc.BINARY_OPERATORS=["+",...oc,...M_,"|>"],dve=lc.ASSIGNMENT_OPERATORS=["=","+=",...oc.map((e)=>e+"="),...__.map((e)=>e+"=")],B_=lc.BOOLEAN_UNARY_OPERATORS=["delete","!"],F_=lc.NUMBER_UNARY_OPERATORS=["+","-","~"],j_=lc.STRING_UNARY_OPERATORS=["typeof"],mve=lc.UNARY_OPERATORS=["void","throw",...B_,...F_,...j_],yve=lc.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};lc.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");lc.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var It=A(function(yc){Object.defineProperty(yc,"__esModule",{value:!0});yc.allExpandedTypes=yc.VISITOR_KEYS=yc.NODE_UNION_SHAPES__PRIVATE=yc.NODE_PARENT_VALIDATIONS=yc.NODE_FIELDS=yc.FLIPPED_ALIAS_KEYS=yc.DEPRECATED_KEYS=yc.BUILDER_KEYS=yc.ALIAS_KEYS=void 0;yc.arrayOf=pc;yc.arrayOfType=fc;yc.assertEach=hc;yc.assertNodeOrValueType=Tk;yc.assertNodeType=ai;yc.assertOneOf=mk;yc.assertOptionalChainStart=Sk;yc.assertShape=xk;yc.assertValueType=Wn;yc.chain=dc;yc.default=mc;yc.defineAliasedType=Ek;yc.validate=Jn;yc.validateArrayOfType=dk;yc.validateOptional=fk;yc.validateOptionalType=hk;yc.validateType=pk;var cc=Mr(),hs=oi(),ik=yc.VISITOR_KEYS={},nk=yc.ALIAS_KEYS={},Vn=yc.FLIPPED_ALIAS_KEYS={},ak=yc.NODE_FIELDS={},ok=yc.BUILDER_KEYS={},lk=yc.DEPRECATED_KEYS={},uk=yc.NODE_PARENT_VALIDATIONS={},ck=yc.NODE_UNION_SHAPES__PRIVATE={};function ni(e){if(Array.isArray(e))return"array";else if(e===null)return"null";else return typeof e}function Jn(e){return{validate:e}}function pk(...e){return Jn(ai(...e))}function fk(e){return{validate:e,optional:!0}}function hk(...e){return{validate:ai(...e),optional:!0}}function pc(e){return dc(Wn("array"),hc(e))}function fc(...e){return pc(ai(...e))}function dk(...e){return Jn(fc(...e))}function hc(e){let t=process.env.BABEL_TYPES_8_BREAKING?hs.validateChild:()=>{};function r(s,i,n){if(!Array.isArray(n))return;let a=0,o={toString(){return`${i}[${a}]`}};for(;a<n.length;a++){let l=n[a];e(s,o,l),t(s,o,l)}}return r.each=e,r}function mk(...e){function t(r,s,i){if(!e.includes(i))throw TypeError(`Property ${s} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(i)}`)}return t.oneOf=e,t}var yk=yc.allExpandedTypes=[];function ai(...e){let t=new Set;yk.push({types:e,set:t});function r(s,i,n){let a=n==null?void 0:n.type;if(a!=null){if(t.has(a)){(0,hs.validateChild)(s,i,n);return}if(a==="Placeholder"){for(let o of e)if((0,cc.default)(o,n)){(0,hs.validateChild)(s,i,n);return}}}throw TypeError(`Property ${i} of ${s.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(a)}`)}return r.oneOfNodeTypes=e,r}function Tk(...e){function t(r,s,i){let n=ni(i);for(let a of e)if(n===a||(0,cc.default)(a,i)){(0,hs.validateChild)(r,s,i);return}throw TypeError(`Property ${s} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(i==null?void 0:i.type)}`)}return t.oneOfNodeOrValueTypes=e,t}function Wn(e){function t(r,s,i){if(ni(i)===e)return;throw TypeError(`Property ${s} expected type of ${e} but got ${ni(i)}`)}return t.type=e,t}function xk(e){let t=Object.keys(e);function r(s,i,n){let a=[];for(let o of t)try{(0,hs.validateField)(s,o,n[o],e[o])}catch(l){if(l instanceof TypeError){a.push(l.message);continue}throw l}if(a.length)throw TypeError(`Property ${i} of ${s.type} expected to have the following:
17
+ `);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=Kn(e,t,r,s,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=nc(e,t,r,s,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:if(e.charCodeAt(t)===10)++t;case 10:r=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);else n.strictNumericEscape(t-1,r,s);default:if(l>=48&&l<=55){let u=t-1,m=/^[0-7]+/.exec(e.slice(u,t+2))[0],x=parseInt(m,8);if(x>255)m=m.slice(0,-1),x=parseInt(m,8);t+=m.length-1;let g=e.charCodeAt(t);if(m!=="0"||g===56||g===57)if(i)return o(null);else n.strictNumericEscape(u,r,s);return o(String.fromCharCode(x))}return o(String.fromCharCode(l))}}function Kn(e,t,r,s,i,n,a,o){let l=t,u;if({n:u,pos:t}=ic(e,t,r,s,16,i,n,!1,o,!a),u===null)if(a)o.invalidEscapeSequence(l,r,s);else t=l-1;return{code:u,pos:t}}function ic(e,t,r,s,i,n,a,o,l,u){let p=t,m=i===16?sc.hex:sc.decBinOct,x=i===16?ii.hex:i===10?ii.dec:i===8?ii.oct:ii.bin,g=!1,E=0;for(let I=0,b=n==null?1/0:n;I<b;++I){let C=e.charCodeAt(t),N;if(C===95&&o!=="bail"){let z=e.charCodeAt(t-1),j=e.charCodeAt(t+1);if(!o){if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,s)}else if(Number.isNaN(j)||!x(j)||m.has(z)||m.has(j)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,s)}++t;continue}if(C>=97)N=C-97+10;else if(C>=65)N=C-65+10;else if(A_(C))N=C-48;else N=1/0;if(N>=i)if(N<=9&&u)return{n:null,pos:t};else if(N<=9&&l.invalidDigit(t,r,s,i))N=0;else if(a)N=0,g=!0;else break;++t,E=E*i+N}if(t===p||n!=null&&t-p!==n||g)return{n:null,pos:t};return{n:E,pos:t}}function nc(e,t,r,s,i,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Kn(e,t,r,s,e.indexOf("}",t)-t,!0,i,n),++t,o!==null&&o>1114111)if(i)n.invalidCodePoint(t,r,s);else return{code:null,pos:t}}else({code:o,pos:t}=Kn(e,t,r,s,4,!1,i,n));return{code:o,pos:t}}});var jr=A(function(uc){Object.defineProperty(uc,"__esModule",{value:!0});uc.UPDATE_OPERATORS=uc.UNARY_OPERATORS=uc.STRING_UNARY_OPERATORS=uc.STATEMENT_OR_BLOCK_KEYS=uc.NUMBER_UNARY_OPERATORS=uc.NUMBER_BINARY_OPERATORS=uc.LOGICAL_OPERATORS=uc.INHERIT_KEYS=uc.FOR_INIT_KEYS=uc.FLATTENABLE_KEYS=uc.EQUALITY_BINARY_OPERATORS=uc.COMPARISON_BINARY_OPERATORS=uc.COMMENT_KEYS=uc.BOOLEAN_UNARY_OPERATORS=uc.BOOLEAN_NUMBER_BINARY_OPERATORS=uc.BOOLEAN_BINARY_OPERATORS=uc.BINARY_OPERATORS=uc.ASSIGNMENT_OPERATORS=void 0;var lve=uc.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],uve=uc.FLATTENABLE_KEYS=["body","expressions"],cve=uc.FOR_INIT_KEYS=["left","init"],pve=uc.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],__=uc.LOGICAL_OPERATORS=["||","&&","??"],fve=uc.UPDATE_OPERATORS=["++","--"],k_=uc.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],D_=uc.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],L_=uc.COMPARISON_BINARY_OPERATORS=[...D_,"in","instanceof"],M_=uc.BOOLEAN_BINARY_OPERATORS=[...L_,...k_],lc=uc.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],hve=uc.BINARY_OPERATORS=["+",...lc,...M_,"|>"],dve=uc.ASSIGNMENT_OPERATORS=["=","+=",...lc.map((e)=>e+"="),...__.map((e)=>e+"=")],B_=uc.BOOLEAN_UNARY_OPERATORS=["delete","!"],F_=uc.NUMBER_UNARY_OPERATORS=["+","-","~"],j_=uc.STRING_UNARY_OPERATORS=["typeof"],mve=uc.UNARY_OPERATORS=["void","throw",...B_,...F_,...j_],yve=uc.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};uc.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped");uc.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var It=A(function(Tc){Object.defineProperty(Tc,"__esModule",{value:!0});Tc.allExpandedTypes=Tc.VISITOR_KEYS=Tc.NODE_UNION_SHAPES__PRIVATE=Tc.NODE_PARENT_VALIDATIONS=Tc.NODE_FIELDS=Tc.FLIPPED_ALIAS_KEYS=Tc.DEPRECATED_KEYS=Tc.BUILDER_KEYS=Tc.ALIAS_KEYS=void 0;Tc.arrayOf=fc;Tc.arrayOfType=hc;Tc.assertEach=dc;Tc.assertNodeOrValueType=Tk;Tc.assertNodeType=ai;Tc.assertOneOf=mk;Tc.assertOptionalChainStart=Sk;Tc.assertShape=xk;Tc.assertValueType=Wn;Tc.chain=mc;Tc.default=yc;Tc.defineAliasedType=Ek;Tc.validate=Jn;Tc.validateArrayOfType=dk;Tc.validateOptional=fk;Tc.validateOptionalType=hk;Tc.validateType=pk;var pc=Br(),ds=oi(),ik=Tc.VISITOR_KEYS={},nk=Tc.ALIAS_KEYS={},Vn=Tc.FLIPPED_ALIAS_KEYS={},ak=Tc.NODE_FIELDS={},ok=Tc.BUILDER_KEYS={},lk=Tc.DEPRECATED_KEYS={},uk=Tc.NODE_PARENT_VALIDATIONS={},ck=Tc.NODE_UNION_SHAPES__PRIVATE={};function ni(e){if(Array.isArray(e))return"array";else if(e===null)return"null";else return typeof e}function Jn(e){return{validate:e}}function pk(...e){return Jn(ai(...e))}function fk(e){return{validate:e,optional:!0}}function hk(...e){return{validate:ai(...e),optional:!0}}function fc(e){return mc(Wn("array"),dc(e))}function hc(...e){return fc(ai(...e))}function dk(...e){return Jn(hc(...e))}function dc(e){let t=process.env.BABEL_TYPES_8_BREAKING?ds.validateChild:()=>{};function r(s,i,n){if(!Array.isArray(n))return;let a=0,o={toString(){return`${i}[${a}]`}};for(;a<n.length;a++){let l=n[a];e(s,o,l),t(s,o,l)}}return r.each=e,r}function mk(...e){function t(r,s,i){if(!e.includes(i))throw TypeError(`Property ${s} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(i)}`)}return t.oneOf=e,t}var yk=Tc.allExpandedTypes=[];function ai(...e){let t=new Set;yk.push({types:e,set:t});function r(s,i,n){let a=n==null?void 0:n.type;if(a!=null){if(t.has(a)){(0,ds.validateChild)(s,i,n);return}if(a==="Placeholder"){for(let o of e)if((0,pc.default)(o,n)){(0,ds.validateChild)(s,i,n);return}}}throw TypeError(`Property ${i} of ${s.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(a)}`)}return r.oneOfNodeTypes=e,r}function Tk(...e){function t(r,s,i){let n=ni(i);for(let a of e)if(n===a||(0,pc.default)(a,i)){(0,ds.validateChild)(r,s,i);return}throw TypeError(`Property ${s} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(i==null?void 0:i.type)}`)}return t.oneOfNodeOrValueTypes=e,t}function Wn(e){function t(r,s,i){if(ni(i)===e)return;throw TypeError(`Property ${s} expected type of ${e} but got ${ni(i)}`)}return t.type=e,t}function xk(e){let t=Object.keys(e);function r(s,i,n){let a=[];for(let o of t)try{(0,ds.validateField)(s,o,n[o],e[o])}catch(l){if(l instanceof TypeError){a.push(l.message);continue}throw l}if(a.length)throw TypeError(`Property ${i} of ${s.type} expected to have the following:
18
18
  ${a.join(`
19
- `)}`)}return r.shapeOf=e,r}function Sk(){function e(t){var r;let s=t;while(t){let{type:i}=s;if(i==="OptionalCallExpression"){if(s.optional)return;s=s.callee;continue}if(i==="OptionalMemberExpression"){if(s.optional)return;s=s.object;continue}break}throw TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=s)==null?void 0:r.type}`)}return e}function dc(...e){function t(...r){for(let s of e)s(...r)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var gk=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),bk=new Set(["default","optional","deprecated","validate"]),Yn={};function Ek(...e){return(t,r={})=>{let s=r.aliases;if(!s){var i;if(r.inherits)s=(i=Yn[r.inherits].aliases)==null?void 0:i.slice();s!=null||(s=[]),r.aliases=s}let n=e.filter((a)=>!s.includes(a));s.unshift(...n),mc(t,r)}}function mc(e,t={}){let r=t.inherits&&Yn[t.inherits]||{},s=t.fields;if(!s){if(s={},r.fields){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let u=r.fields[l],p=u.default;if(Array.isArray(p)?p.length>0:p&&typeof p==="object")throw Error("field defaults can only be primitives or empty arrays currently");s[l]={default:Array.isArray(p)?[]:p,optional:u.optional,deprecated:u.deprecated,validate:u.validate}}}}let i=t.visitor||r.visitor||[],n=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(!gk.has(o))throw Error(`Unknown type option "${o}" on ${e}`);if(t.deprecatedAlias)lk[t.deprecatedAlias]=e;for(let o of i.concat(a))s[o]=s[o]||{};for(let o of Object.keys(s)){let l=s[o];if(l.default!==void 0&&!a.includes(o))l.optional=!0;if(l.default===void 0)l.default=null;else if(!l.validate&&l.default!=null)l.validate=Wn(ni(l.default));for(let u of Object.keys(l))if(!bk.has(u))throw Error(`Unknown field key "${u}" on ${e}.${o}`)}if(ik[e]=t.visitor=i,ok[e]=t.builder=a,ak[e]=t.fields=s,nk[e]=t.aliases=n,n.forEach((o)=>{Vn[o]=Vn[o]||[],Vn[o].push(e)}),t.validate)uk[e]=t.validate;if(t.unionShape)ck[e]=t.unionShape;Yn[e]=t}});var ms=A(function(gc){Object.defineProperty(gc,"__esModule",{value:!0});gc.patternLikeCommon=gc.importAttributes=gc.functionTypeAnnotationCommon=gc.functionDeclarationCommon=gc.functionCommon=gc.classMethodOrPropertyUnionShapeCommon=gc.classMethodOrPropertyCommon=gc.classMethodOrDeclareMethodCommon=void 0;var $e=Mr(),$k=Br(),xc=fs(),Hk=ac(),jr=Fr(),d=It(),ds=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,d.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});gc.classMethodOrPropertyUnionShapeCommon=ds;var F=(0,d.defineAliasedType)("Standardized");F("ArrayExpression",{fields:{elements:{validate:(0,d.arrayOf)((0,d.assertNodeOrValueType)("null","Expression","SpreadElement")),default:!process.env.BABEL_TYPES_8_BREAKING?[]:void 0}},visitor:["elements"],aliases:["Expression"]});F("AssignmentExpression",{fields:{operator:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertValueType)("string"):Object.assign(function(){let e=(0,d.assertOneOf)(...jr.ASSIGNMENT_OPERATORS),t=(0,d.assertOneOf)("=");return function(r,s,i){((0,$e.default)("Pattern",r.left)?t:e)(r,s,i)}}(),{oneOf:jr.ASSIGNMENT_OPERATORS})},left:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertNodeType)("LVal","OptionalMemberExpression"):(0,d.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,d.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});F("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,d.assertOneOf)(...jr.BINARY_OPERATORS)},left:{validate:function(){let e=(0,d.assertNodeType)("Expression"),t=(0,d.assertNodeType)("Expression","PrivateName");return Object.assign(function(s,i,n){(s.operator==="in"?t:e)(s,i,n)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,d.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});F("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,d.assertValueType)("string")}}});F("Directive",{visitor:["value"],fields:{value:{validate:(0,d.assertNodeType)("DirectiveLiteral")}}});F("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,d.assertValueType)("string")}}});F("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,d.arrayOfType)("Directive"),default:[]},body:(0,d.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});F("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,d.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});F("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,d.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,d.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,d.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,d.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,d.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});F("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,d.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,d.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});F("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,d.assertNodeType)("Expression")},consequent:{validate:(0,d.assertNodeType)("Expression")},alternate:{validate:(0,d.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});F("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,d.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});F("DebuggerStatement",{aliases:["Statement"]});F("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,d.assertNodeType)("Expression")},body:{validate:(0,d.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});F("EmptyStatement",{aliases:["Statement"]});F("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,d.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});F("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,d.assertNodeType)("Program")},comments:{validate:!process.env.BABEL_TYPES_8_BREAKING?Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}):(0,d.assertEach)((0,d.assertNodeType)("CommentBlock","CommentLine")),optional:!0},tokens:{validate:(0,d.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});F("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertNodeType)("VariableDeclaration","LVal"):(0,d.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,d.assertNodeType)("Expression")},body:{validate:(0,d.assertNodeType)("Statement")}}});F("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,d.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,d.assertNodeType)("Expression"),optional:!0},update:{validate:(0,d.assertNodeType)("Expression"),optional:!0},body:{validate:(0,d.assertNodeType)("Statement")}}});var Rr=()=>({params:(0,d.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});gc.functionCommon=Rr;var fr=()=>({returnType:{validate:(0,d.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,d.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});gc.functionTypeAnnotationCommon=fr;var Sc=()=>Object.assign({},Rr(),{declare:{validate:(0,d.assertValueType)("boolean"),optional:!0},id:{validate:(0,d.assertNodeType)("Identifier"),optional:!0}});gc.functionDeclarationCommon=Sc;F("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},Sc(),fr(),{body:{validate:(0,d.assertNodeType)("BlockStatement")},predicate:{validate:(0,d.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){let e=(0,d.assertNodeType)("Identifier");return function(t,r,s){if(!(0,$e.default)("ExportDefaultDeclaration",t))e(s,"id",s.id)}}()});F("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Rr(),fr(),{id:{validate:(0,d.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,d.assertNodeType)("BlockStatement")},predicate:{validate:(0,d.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var qr=()=>({typeAnnotation:{validate:(0,d.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,d.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0}});gc.patternLikeCommon=qr;F("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},qr(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertValueType)("string"),Object.assign(function(e,t,r){if(!(0,$k.default)(r,!1))throw TypeError(`"${r}" is not a valid identifier name`)},{type:"string"})):(0,d.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,r){let s=/\.(\w+)$/.exec(t.toString());if(!s)return;let[,i]=s,n={computed:!1};if(i==="property"){if((0,$e.default)("MemberExpression",e,n))return;if((0,$e.default)("OptionalMemberExpression",e,n))return}else if(i==="key"){if((0,$e.default)("Property",e,n))return;if((0,$e.default)("Method",e,n))return}else if(i==="exported"){if((0,$e.default)("ExportSpecifier",e))return}else if(i==="imported"){if((0,$e.default)("ImportSpecifier",e,{imported:r}))return}else if(i==="meta"){if((0,$e.default)("MetaProperty",e,{meta:r}))return}if(((0,xc.isKeyword)(r.name)||(0,xc.isReservedWord)(r.name,!1))&&r.name!=="this")throw TypeError(`"${r.name}" is not a valid identifier`)}:void 0});F("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,d.assertNodeType)("Expression")},consequent:{validate:(0,d.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,d.assertNodeType)("Statement")}}});F("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,d.assertNodeType)("Identifier")},body:{validate:(0,d.assertNodeType)("Statement")}}});F("StringLiteral",{builder:["value"],fields:{value:{validate:(0,d.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});F("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,d.chain)((0,d.assertValueType)("number"),Object.assign(function(e,t,r){if(1/r<0||!Number.isFinite(r)){let s=Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});F("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});F("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,d.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});F("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,d.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertValueType)("string"),Object.assign(function(e,t,r){let s=/[^dgimsuvy]/.exec(r);if(s)throw TypeError(`"${s[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,d.assertValueType)("string"),default:""}}});F("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,d.assertOneOf)(...jr.LOGICAL_OPERATORS)},left:{validate:(0,d.assertNodeType)("Expression")},right:{validate:(0,d.assertNodeType)("Expression")}}});F("MemberExpression",{builder:["object","property","computed",...!process.env.BABEL_TYPES_8_BREAKING?["optional"]:[]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,d.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,d.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,d.assertNodeType)("Expression","Super")},property:{validate:function(){let e=(0,d.assertNodeType)("Identifier","PrivateName"),t=(0,d.assertNodeType)("Expression"),r=function(s,i,n){(s.computed?t:e)(s,i,n)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},!process.env.BABEL_TYPES_8_BREAKING?{optional:{validate:(0,d.assertValueType)("boolean"),optional:!0}}:{})});F("NewExpression",{inherits:"CallExpression",fields:{callee:{validate:(0,d.assertNodeType)("Expression")},arguments:(0,d.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,d.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});F("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,d.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,d.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,d.arrayOfType)("Directive"),default:[]},body:(0,d.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});F("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,d.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});F("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},ds(),{fields:Object.assign({},Rr(),fr(),{kind:Object.assign({validate:(0,d.assertOneOf)("method","get","set")},!process.env.BABEL_TYPES_8_BREAKING?{default:"method"}:{}),computed:{default:!1},key:{validate:function(){let e=(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,d.assertNodeType)("Expression"),r=function(s,i,n){(s.computed?t:e)(s,i,n)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,d.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}));F("ObjectProperty",{builder:["key","value","computed","shorthand",...!process.env.BABEL_TYPES_8_BREAKING?["decorators"]:[]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,d.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:function(){let e=(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,d.assertNodeType)("Expression");return Object.assign(function(s,i,n){(s.computed?t:e)(s,i,n)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,d.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertValueType)("boolean"),Object.assign(function(e,t,r){if(!r)return;if(e.computed)throw TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,$e.default)("Identifier",e.key))throw TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")},{type:"boolean"})):(0,d.assertValueType)("boolean"),default:!1},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){let e=(0,d.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,d.assertNodeType)("Expression");return function(r,s,i){((0,$e.default)("ObjectPattern",r)?e:t)(i,"value",i.value)}}()});F("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},qr(),{argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern"):(0,d.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){let r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw Error("Internal Babel error: malformed key.");let[,s,i]=r;if(e[s].length>+i+1)throw TypeError(`RestElement must be last element of ${s}`)}:void 0});F("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,d.assertNodeType)("Expression"),optional:!0}}});F("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,d.validateArrayOfType)("Expression")},aliases:["Expression"]});F("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,d.assertNodeType)("Expression")}}});F("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,d.assertNodeType)("Expression"),optional:!0},consequent:(0,d.validateArrayOfType)("Statement")}});F("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,d.assertNodeType)("Expression")},cases:(0,d.validateArrayOfType)("SwitchCase")}});F("ThisExpression",{aliases:["Expression"]});F("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,d.assertNodeType)("Expression")}}});F("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertNodeType)("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,d.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,d.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,d.assertNodeType)("BlockStatement")}}});F("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,d.assertNodeType)("Expression")},operator:{validate:(0,d.assertOneOf)(...jr.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});F("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertNodeType)("Expression"):(0,d.assertNodeType)("Identifier","MemberExpression")},operator:{validate:(0,d.assertOneOf)(...jr.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});F("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,d.assertValueType)("boolean"),optional:!0},kind:{validate:(0,d.assertOneOf)("var","let","const","using","await using")},declarations:(0,d.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let e=(0,d.assertNodeType)("Identifier","Placeholder"),t=(0,d.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),r=(0,d.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(s,i,n){let{kind:a,declarations:o}=n,l=(0,$e.default)("ForXStatement",s,{left:n});if(l){if(o.length!==1)throw TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${s.type}`)}for(let u of o)if(a==="const"||a==="let"||a==="var")if(!l&&!u.init)e(u,"id",u.id);else t(u,"id",u.id);else r(u,"id",u.id)}})():void 0});F("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertNodeType)("LVal","VoidPattern"):(0,d.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern")},definite:{optional:!0,validate:(0,d.assertValueType)("boolean")},init:{optional:!0,validate:(0,d.assertNodeType)("Expression")}}});F("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,d.assertNodeType)("Expression")},body:{validate:(0,d.assertNodeType)("Statement")}}});F("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,d.assertNodeType)("Expression")},body:{validate:(0,d.assertNodeType)("Statement")}}});F("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},qr(),{left:{validate:(0,d.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,d.assertNodeType)("Expression")},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0}})});F("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},qr(),{elements:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeOrValueType)("null","PatternLike")))}})});F("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},Rr(),fr(),{expression:{validate:(0,d.assertValueType)("boolean")},body:{validate:(0,d.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,d.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});F("ClassBody",{visitor:["body"],fields:{body:(0,d.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});F("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,d.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,d.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,d.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,d.assertNodeType)("Expression")},["superTypeParameters"]:{validate:(0,d.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,d.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,d.assertNodeType)("InterfaceExtends"),optional:!0}}});F("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,d.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,d.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,d.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,d.assertNodeType)("Expression")},["superTypeParameters"]:{validate:(0,d.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,d.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,d.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,d.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,d.assertValueType)("boolean"),optional:!0}},validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){let e=(0,d.assertNodeType)("Identifier");return function(t,r,s){if(!(0,$e.default)("ExportDefaultDeclaration",t))e(s,"id",s.id)}}()});var li=gc.importAttributes={attributes:{optional:!0,validate:(0,d.arrayOfType)("ImportAttribute")}};li.assertions={deprecated:!0,optional:!0,validate:(0,d.arrayOfType)("ImportAttribute")};F("ExportAllDeclaration",{builder:["source","attributes"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,d.assertNodeType)("StringLiteral")},exportKind:(0,d.validateOptional)((0,d.assertOneOf)("type","value"))},li)});F("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,d.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,d.validateOptional)((0,d.assertOneOf)("value"))}});F("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(r&&e.specifiers.length)throw TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,d.assertNodeType)("Declaration")}},li,{specifiers:{default:[],validate:(0,d.arrayOf)(function(){let e=(0,d.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,d.assertNodeType)("ExportSpecifier");if(!process.env.BABEL_TYPES_8_BREAKING)return e;return Object.assign(function(r,s,i){(r.source?e:t)(r,s,i)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]})}())},source:{validate:(0,d.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,d.validateOptional)((0,d.assertOneOf)("type","value"))})});F("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,d.assertNodeType)("Identifier")},exported:{validate:(0,d.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,d.assertOneOf)("type","value"),optional:!0}}});F("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,d.assertNodeType)("VariableDeclaration","LVal");let e=(0,d.assertNodeType)("VariableDeclaration"),t=(0,d.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(r,s,i){if((0,$e.default)("VariableDeclaration",i))e(r,s,i);else t(r,s,i)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,d.assertNodeType)("Expression")},body:{validate:(0,d.assertNodeType)("Statement")},await:{default:!1}}});F("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},li,{module:{optional:!0,validate:(0,d.assertValueType)("boolean")},phase:{default:null,validate:(0,d.assertOneOf)("source","defer")},specifiers:(0,d.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,d.assertNodeType)("StringLiteral")},importKind:{validate:(0,d.assertOneOf)("type","typeof","value"),optional:!0}})});F("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,d.assertNodeType)("Identifier")}}});F("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,d.assertNodeType)("Identifier")}}});F("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,d.assertNodeType)("Identifier")},imported:{validate:(0,d.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,d.assertOneOf)("type","typeof","value"),optional:!0}}});F("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,d.assertOneOf)("source","defer")},source:{validate:(0,d.assertNodeType)("Expression")},options:{validate:(0,d.assertNodeType)("Expression"),optional:!0}}});F("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertNodeType)("Identifier"),Object.assign(function(e,t,r){let s;switch(r.name){case"function":s="sent";break;case"new":s="target";break;case"import":s="meta";break}if(!(0,$e.default)("Identifier",e.property,{name:s}))throw TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,d.assertNodeType)("Identifier")},property:{validate:(0,d.assertNodeType)("Identifier")}}});var ui=()=>({abstract:{validate:(0,d.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,d.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,d.assertValueType)("boolean"),optional:!0},key:{validate:(0,d.chain)(function(){let e=(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,d.assertNodeType)("Expression");return function(r,s,i){(r.computed?t:e)(r,s,i)}}(),(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});gc.classMethodOrPropertyCommon=ui;var Xn=()=>Object.assign({},Rr(),ui(),{params:(0,d.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,d.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,d.chain)((0,d.assertValueType)("string"),(0,d.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0}});gc.classMethodOrDeclareMethodCommon=Xn;F("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},ds(),{fields:Object.assign({},Xn(),fr(),{body:{validate:(0,d.assertNodeType)("BlockStatement")}})}));F("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},qr(),{properties:(0,d.validateArrayOfType)("RestElement","ObjectProperty")})});F("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,d.assertNodeType)("Expression")}}});F("Super",{aliases:["Expression"]});F("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,d.assertNodeType)("Expression")},quasi:{validate:(0,d.assertNodeType)("TemplateLiteral")},["typeParameters"]:{validate:(0,d.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});F("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,d.chain)((0,d.assertShape)({raw:{validate:(0,d.assertValueType)("string")},cooked:{validate:(0,d.assertValueType)("string"),optional:!0}}),function(t){let r=t.value.raw,s=!1,i=()=>{throw Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:a}=(0,Hk.readStringContents)("template",r,0,0,0,{unterminated(){s=!0},strictNumericEscape:i,invalidEscapeSequence:i,numericSeparatorInEscapeSequence:i,unexpectedNumericSeparator:i,invalidDigit:i,invalidCodePoint:i});if(!s)throw Error("Invalid raw");t.value.cooked=a?null:n})},tail:{default:!1}}});F("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,d.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
20
- Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});F("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,d.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,d.assertNodeType)("Expression")}}});F("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,d.assertNodeType)("Expression")}}});F("Import",{aliases:["Expression"]});F("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,d.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});F("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,d.assertNodeType)("Identifier")}}});F("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,d.assertNodeType)("Expression")},property:{validate:function(){let e=(0,d.assertNodeType)("Identifier"),t=(0,d.assertNodeType)("Expression");return Object.assign(function(s,i,n){(s.computed?t:e)(s,i,n)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertValueType)("boolean"):(0,d.chain)((0,d.assertValueType)("boolean"),(0,d.assertOptionalChainStart)())}}});F("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,d.assertNodeType)("Expression")},arguments:(0,d.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertValueType)("boolean"):(0,d.chain)((0,d.assertValueType)("boolean"),(0,d.assertOptionalChainStart)())},typeArguments:{validate:(0,d.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,d.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});F("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},ds(),{fields:Object.assign({},ui(),{value:{validate:(0,d.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,d.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,d.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,d.assertValueType)("boolean"),optional:!0},declare:{validate:(0,d.assertValueType)("boolean"),optional:!0},variance:{validate:(0,d.assertNodeType)("Variance"),optional:!0}})}));F("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},ds(!0),{fields:Object.assign({},ui(),{key:{validate:(0,d.chain)(function(){let e=(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,d.assertNodeType)("Expression");return function(r,s,i){(r.computed?t:e)(r,s,i)}}(),(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,d.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,d.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,d.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,d.assertValueType)("boolean"),optional:!0},declare:{validate:(0,d.assertValueType)("boolean"),optional:!0},variance:{validate:(0,d.assertNodeType)("Variance"),optional:!0}})}));F("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,d.assertNodeType)("PrivateName")},value:{validate:(0,d.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,d.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,d.assertValueType)("boolean"),default:!1},readonly:{validate:(0,d.assertValueType)("boolean"),optional:!0},optional:{validate:(0,d.assertValueType)("boolean"),optional:!0},definite:{validate:(0,d.assertValueType)("boolean"),optional:!0},variance:{validate:(0,d.assertNodeType)("Variance"),optional:!0}}});F("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Xn(),fr(),{kind:{validate:(0,d.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,d.assertNodeType)("PrivateName")},body:{validate:(0,d.assertNodeType)("BlockStatement")}})});F("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,d.assertNodeType)("Identifier")}}});F("StaticBlock",{visitor:["body"],fields:{body:(0,d.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});F("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,d.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,d.assertNodeType)("StringLiteral")}}})});var Pc=A(function(){var Ec=ms(),P=It(),W=(0,P.defineAliasedType)("Flow"),$n=(e)=>{let t=e==="DeclareClass";W(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,P.validateType)("Identifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterDeclaration"),extends:(0,P.validateOptional)((0,P.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,P.validateOptional)((0,P.arrayOfType)("InterfaceExtends")),implements:(0,P.validateOptional)((0,P.arrayOfType)("ClassImplements"))}:{},{body:(0,P.validateType)("ObjectTypeAnnotation")})})};W("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,P.validateType)("FlowType")}});W("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,P.validateType)("Identifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterInstantiation")}});$n("DeclareClass");W("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,P.validateType)("Identifier"),predicate:(0,P.validateOptionalType)("DeclaredPredicate")}});$n("DeclareInterface");W("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,P.validateType)("Identifier","StringLiteral"),body:(0,P.validateType)("BlockStatement"),kind:(0,P.validateOptional)((0,P.assertOneOf)("CommonJS","ES"))}});W("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,P.validateType)("TypeAnnotation")}});W("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,P.validateType)("Identifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterDeclaration"),right:(0,P.validateType)("FlowType")}});W("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,P.validateType)("Identifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,P.validateOptionalType)("FlowType"),impltype:(0,P.validateOptionalType)("FlowType")}});W("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,P.validateType)("Identifier")}});W("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,P.validateOptionalType)("Flow"),specifiers:(0,P.validateOptional)((0,P.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,P.validateOptionalType)("StringLiteral"),default:(0,P.validateOptional)((0,P.assertValueType)("boolean"))},Ec.importAttributes)});W("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,P.validateType)("StringLiteral"),exportKind:(0,P.validateOptional)((0,P.assertOneOf)("type","value"))},Ec.importAttributes)});W("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,P.validateType)("Flow")}});W("ExistsTypeAnnotation",{aliases:["FlowType"]});W("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,P.validateOptionalType)("TypeParameterDeclaration"),params:(0,P.validateArrayOfType)("FunctionTypeParam"),rest:(0,P.validateOptionalType)("FunctionTypeParam"),this:(0,P.validateOptionalType)("FunctionTypeParam"),returnType:(0,P.validateType)("FlowType")}});W("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,P.validateOptionalType)("Identifier"),typeAnnotation:(0,P.validateType)("FlowType"),optional:(0,P.validateOptional)((0,P.assertValueType)("boolean"))}});W("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,P.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterInstantiation")}});W("InferredPredicate",{aliases:["FlowPredicate"]});W("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,P.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterInstantiation")}});$n("InterfaceDeclaration");W("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,P.validateOptional)((0,P.arrayOfType)("InterfaceExtends")),body:(0,P.validateType)("ObjectTypeAnnotation")}});W("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,P.validate)((0,P.arrayOfType)("FlowType"))}});W("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,P.validateType)("FlowType")}});W("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,P.validate)((0,P.assertValueType)("number"))}});W("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,P.validate)((0,P.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,P.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,P.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,P.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,P.assertValueType)("boolean"),default:!1},inexact:(0,P.validateOptional)((0,P.assertValueType)("boolean"))}});W("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,P.validateType)("Identifier"),value:(0,P.validateType)("FlowType"),optional:(0,P.validate)((0,P.assertValueType)("boolean")),static:(0,P.validate)((0,P.assertValueType)("boolean")),method:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,P.validateType)("FlowType"),static:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,P.validateOptionalType)("Identifier"),key:(0,P.validateType)("FlowType"),value:(0,P.validateType)("FlowType"),static:(0,P.validate)((0,P.assertValueType)("boolean")),variance:(0,P.validateOptionalType)("Variance")}});W("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,P.validateType)("Identifier","StringLiteral"),value:(0,P.validateType)("FlowType"),kind:(0,P.validate)((0,P.assertOneOf)("init","get","set")),static:(0,P.validate)((0,P.assertValueType)("boolean")),proto:(0,P.validate)((0,P.assertValueType)("boolean")),optional:(0,P.validate)((0,P.assertValueType)("boolean")),variance:(0,P.validateOptionalType)("Variance"),method:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,P.validateType)("FlowType")}});W("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,P.validateType)("Identifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,P.validateOptionalType)("FlowType"),impltype:(0,P.validateType)("FlowType")}});W("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,P.validateType)("Identifier"),qualification:(0,P.validateType)("Identifier","QualifiedTypeIdentifier")}});W("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,P.validate)((0,P.assertValueType)("string"))}});W("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,P.validate)((0,P.arrayOfType)("FlowType"))}});W("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,P.validateType)("FlowType")}});W("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,P.validateType)("Identifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterDeclaration"),right:(0,P.validateType)("FlowType")}});W("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,P.validateType)("FlowType")}});W("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,P.validateType)("Expression"),typeAnnotation:(0,P.validateType)("TypeAnnotation")}});W("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,P.validate)((0,P.assertValueType)("string")),bound:(0,P.validateOptionalType)("TypeAnnotation"),default:(0,P.validateOptionalType)("FlowType"),variance:(0,P.validateOptionalType)("Variance")}});W("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,P.validate)((0,P.arrayOfType)("TypeParameter"))}});W("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,P.validate)((0,P.arrayOfType)("FlowType"))}});W("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,P.validate)((0,P.arrayOfType)("FlowType"))}});W("Variance",{builder:["kind"],fields:{kind:(0,P.validate)((0,P.assertOneOf)("minus","plus"))}});W("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,P.validateType)("Identifier"),body:(0,P.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});W("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,P.validate)((0,P.assertValueType)("boolean")),members:(0,P.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,P.validate)((0,P.assertValueType)("boolean")),members:(0,P.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,P.validate)((0,P.assertValueType)("boolean")),members:(0,P.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,P.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,P.validateType)("Identifier"),init:(0,P.validateType)("BooleanLiteral")}});W("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,P.validateType)("Identifier"),init:(0,P.validateType)("NumericLiteral")}});W("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,P.validateType)("Identifier"),init:(0,P.validateType)("StringLiteral")}});W("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,P.validateType)("Identifier")}});W("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,P.validateType)("FlowType"),indexType:(0,P.validateType)("FlowType")}});W("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,P.validateType)("FlowType"),indexType:(0,P.validateType)("FlowType"),optional:(0,P.validate)((0,P.assertValueType)("boolean"))}})});var Ac=A(function(){var De=It(),He=(0,De.defineAliasedType)("JSX");He("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,De.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,De.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});He("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,De.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});He("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,De.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,De.assertNodeType)("JSXClosingElement")},children:(0,De.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,De.assertValueType)("boolean"),optional:!0}})});He("JSXEmptyExpression",{});He("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,De.assertNodeType)("Expression","JSXEmptyExpression")}}});He("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,De.assertNodeType)("Expression")}}});He("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,De.assertValueType)("string")}}});He("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,De.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,De.assertNodeType)("JSXIdentifier")}}});He("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,De.assertNodeType)("JSXIdentifier")},name:{validate:(0,De.assertNodeType)("JSXIdentifier")}}});He("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,De.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,De.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,De.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,De.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});He("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,De.assertNodeType)("Expression")}}});He("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,De.assertValueType)("string")}}});He("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,De.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,De.assertNodeType)("JSXClosingFragment")},children:(0,De.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});He("JSXOpeningFragment",{aliases:["Immutable"]});He("JSXClosingFragment",{aliases:["Immutable"]})});var Gn=A(function(vc){Object.defineProperty(vc,"__esModule",{value:!0});vc.PLACEHOLDERS_FLIPPED_ALIAS=vc.PLACEHOLDERS_ALIAS=vc.PLACEHOLDERS=void 0;var sD=It(),iD=vc.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],zn=vc.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of iD){let t=sD.ALIAS_KEYS[e];if(t!=null&&t.length)zn[e]=t}var Hn=vc.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(zn).forEach((e)=>{zn[e].forEach((t)=>{if(!hasOwnProperty.call(Hn,t))Hn[t]=[];Hn[t].push(e)})})});var Ic=A(function(){var ci=It(),oD=Gn(),lD=ms(),Qn=(0,ci.defineAliasedType)("Miscellaneous");Qn("Noop",{visitor:[]});Qn("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,ci.assertNodeType)("Identifier")},expectedNode:{validate:(0,ci.assertOneOf)(...oD.PLACEHOLDERS)}},(0,lD.patternLikeCommon)())});Qn("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,ci.assertValueType)("string")}}})});var wc=A(function(){var Ne=It();(0,Ne.default)("ArgumentPlaceholder",{});(0,Ne.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:!process.env.BABEL_TYPES_8_BREAKING?{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}:{object:{validate:(0,Ne.assertNodeType)("Expression")},callee:{validate:(0,Ne.assertNodeType)("Expression")}}});(0,Ne.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,Ne.assertNodeType)("Expression")}}});(0,Ne.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,Ne.assertNodeType)("BlockStatement")},async:{validate:(0,Ne.assertValueType)("boolean"),default:!1}}});(0,Ne.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,Ne.assertNodeType)("Identifier")}}});(0,Ne.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,Ne.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,Ne.default)("TupleExpression",{fields:{elements:{validate:(0,Ne.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,Ne.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,Ne.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,Ne.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,Ne.assertNodeType)("Program")}},aliases:["Expression"]});(0,Ne.default)("TopicReference",{aliases:["Expression"]});(0,Ne.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,Ne.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Ne.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,Ne.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Ne.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,Ne.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})});var Mc=A(function(){var O=It(),Zn=ms(),uD=Mr(),Z=(0,O.defineAliasedType)("TypeScript"),et=(0,O.assertValueType)("boolean"),Nc=()=>({returnType:{validate:(0,O.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,O.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});Z("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,O.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,O.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,O.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,O.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,O.arrayOfType)("Decorator"),optional:!0}}});Z("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,Zn.functionDeclarationCommon)(),Nc())});Z("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,Zn.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,Zn.classMethodOrDeclareMethodCommon)(),Nc())}));Z("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,O.validateType)("TSEntityName"),right:(0,O.validateType)("Identifier")}});var pi=()=>({typeParameters:(0,O.validateOptionalType)("TSTypeParameterDeclaration"),["parameters"]:(0,O.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),["typeAnnotation"]:(0,O.validateOptionalType)("TSTypeAnnotation")}),Oc={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:pi()};Z("TSCallSignatureDeclaration",Oc);Z("TSConstructSignatureDeclaration",Oc);var _c=()=>({key:(0,O.validateType)("Expression"),computed:{default:!1},optional:(0,O.validateOptional)(et)});Z("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},_c(),{readonly:(0,O.validateOptional)(et),typeAnnotation:(0,O.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,O.assertOneOf)("get","set")}})});Z("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},pi(),_c(),{kind:{validate:(0,O.assertOneOf)("method","get","set")}})});Z("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,O.validateOptional)(et),static:(0,O.validateOptional)(et),parameters:(0,O.validateArrayOfType)("Identifier"),typeAnnotation:(0,O.validateOptionalType)("TSTypeAnnotation")}});var cD=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of cD)Z(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});Z("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var kc={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};Z("TSFunctionType",Object.assign({},kc,{fields:pi()}));Z("TSConstructorType",Object.assign({},kc,{fields:Object.assign({},pi(),{abstract:(0,O.validateOptional)(et)})}));Z("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,O.validateType)("TSEntityName"),["typeParameters"]:(0,O.validateOptionalType)("TSTypeParameterInstantiation")}});Z("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,O.validateType)("Identifier","TSThisType"),typeAnnotation:(0,O.validateOptionalType)("TSTypeAnnotation"),asserts:(0,O.validateOptional)(et)}});Z("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,O.validateType)("TSEntityName","TSImportType"),["typeParameters"]:(0,O.validateOptionalType)("TSTypeParameterInstantiation")}});Z("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,O.validateArrayOfType)("TSTypeElement")}});Z("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,O.validateType)("TSType")}});Z("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,O.validateArrayOfType)("TSType","TSNamedTupleMember")}});Z("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,O.validateType)("TSType")}});Z("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,O.validateType)("TSType")}});Z("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,O.validateType)("Identifier"),optional:{validate:et,default:!1},elementType:(0,O.validateType)("TSType")}});var Dc={aliases:["TSType"],visitor:["types"],fields:{types:(0,O.validateArrayOfType)("TSType")}};Z("TSUnionType",Dc);Z("TSIntersectionType",Dc);Z("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,O.validateType)("TSType"),extendsType:(0,O.validateType)("TSType"),trueType:(0,O.validateType)("TSType"),falseType:(0,O.validateType)("TSType")}});Z("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,O.validateType)("TSTypeParameter")}});Z("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,O.validateType)("TSType")}});Z("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,O.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,O.validateType)("TSType")}});Z("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,O.validateType)("TSType"),indexType:(0,O.validateType)("TSType")}});Z("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,O.validateType)("TSTypeParameter")},{readonly:(0,O.validateOptional)((0,O.assertOneOf)(!0,!1,"+","-")),optional:(0,O.validateOptional)((0,O.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,O.validateOptionalType)("TSType"),nameType:(0,O.validateOptionalType)("TSType")})});Z("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,O.validateArrayOfType)("TemplateElement"),types:{validate:(0,O.chain)((0,O.assertValueType)("array"),(0,O.assertEach)((0,O.assertNodeType)("TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.
21
- Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});Z("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let e=(0,O.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,O.assertOneOf)("-"),r=(0,O.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),s=function(n,a,o){if((0,uD.default)("UnaryExpression",o))t(o,"operator",o.operator),e(o,"argument",o.argument);else r(n,a,o)};return s.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],s}()}}});Z("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,O.validateType)("TSEntityName"),typeParameters:(0,O.validateOptionalType)("TSTypeParameterInstantiation")}});Z("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,O.validateOptional)(et),id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,O.validateOptional)((0,O.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,O.validateType)("TSInterfaceBody")}});Z("TSInterfaceBody",{visitor:["body"],fields:{body:(0,O.validateArrayOfType)("TSTypeElement")}});Z("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,O.validateOptional)(et),id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,O.validateType)("TSType")}});Z("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,O.validateType)("Expression"),["typeParameters"]:(0,O.validateOptionalType)("TSTypeParameterInstantiation")}});var Lc={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,O.validateType)("Expression"),typeAnnotation:(0,O.validateType)("TSType")}};Z("TSAsExpression",Lc);Z("TSSatisfiesExpression",Lc);Z("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,O.validateType)("TSType"),expression:(0,O.validateType)("Expression")}});Z("TSEnumBody",{visitor:["members"],fields:{members:(0,O.validateArrayOfType)("TSEnumMember")}});Z("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,O.validateOptional)(et),const:(0,O.validateOptional)(et),id:(0,O.validateType)("Identifier"),members:(0,O.validateArrayOfType)("TSEnumMember"),initializer:(0,O.validateOptionalType)("Expression"),body:(0,O.validateOptionalType)("TSEnumBody")}});Z("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,O.validateType)("Identifier","StringLiteral"),initializer:(0,O.validateOptionalType)("Expression")}});Z("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,O.assertOneOf)("global","module","namespace")},declare:(0,O.validateOptional)(et)},{global:(0,O.validateOptional)(et)},{id:(0,O.validateType)("Identifier","StringLiteral"),body:(0,O.validateType)("TSModuleBlock","TSModuleDeclaration")})});Z("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,O.validateArrayOfType)("Statement")}});Z("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:Object.assign({},{argument:(0,O.validateType)("StringLiteral")},{qualifier:(0,O.validateOptionalType)("TSEntityName")},{typeParameters:(0,O.validateOptionalType)("TSTypeParameterInstantiation")},{options:{validate:(0,O.assertNodeType)("ObjectExpression"),optional:!0}})});Z("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,O.validate)(et)},{id:(0,O.validateType)("Identifier"),moduleReference:(0,O.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,O.assertOneOf)("type","value"),optional:!0}})});Z("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,O.validateType)("StringLiteral")}});Z("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,O.validateType)("Expression")}});Z("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,O.validateType)("Expression")}});Z("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,O.validateType)("Identifier")}});Z("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,O.assertNodeType)("TSType")}}});Z("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,O.validateArrayOfType)("TSType")}});Z("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,O.validateArrayOfType)("TSTypeParameter")}});Z("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,O.assertValueType)("string")},in:{validate:(0,O.assertValueType)("boolean"),optional:!0},out:{validate:(0,O.assertValueType)("boolean"),optional:!0},const:{validate:(0,O.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,O.assertNodeType)("TSType"),optional:!0},default:{validate:(0,O.assertNodeType)("TSType"),optional:!0}}})});var jc=A(function(Bc){Object.defineProperty(Bc,"__esModule",{value:!0});Bc.DEPRECATED_ALIASES=void 0;var _ve=Bc.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var ut=A(function(tt){Object.defineProperty(tt,"__esModule",{value:!0});Object.defineProperty(tt,"ALIAS_KEYS",{enumerable:!0,get:function(){return ze.ALIAS_KEYS}});Object.defineProperty(tt,"BUILDER_KEYS",{enumerable:!0,get:function(){return ze.BUILDER_KEYS}});Object.defineProperty(tt,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return ea.DEPRECATED_ALIASES}});Object.defineProperty(tt,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return ze.DEPRECATED_KEYS}});Object.defineProperty(tt,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return ze.FLIPPED_ALIAS_KEYS}});Object.defineProperty(tt,"NODE_FIELDS",{enumerable:!0,get:function(){return ze.NODE_FIELDS}});Object.defineProperty(tt,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return ze.NODE_PARENT_VALIDATIONS}});Object.defineProperty(tt,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return ze.NODE_UNION_SHAPES__PRIVATE}});Object.defineProperty(tt,"PLACEHOLDERS",{enumerable:!0,get:function(){return ta.PLACEHOLDERS}});Object.defineProperty(tt,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return ta.PLACEHOLDERS_ALIAS}});Object.defineProperty(tt,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return ta.PLACEHOLDERS_FLIPPED_ALIAS}});tt.TYPES=void 0;Object.defineProperty(tt,"VISITOR_KEYS",{enumerable:!0,get:function(){return ze.VISITOR_KEYS}});ms();Pc();Ac();Ic();wc();Mc();var ze=It(),ta=Gn(),ea=jc();Object.keys(ea.DEPRECATED_ALIASES).forEach((e)=>{ze.FLIPPED_ALIAS_KEYS[e]=ze.FLIPPED_ALIAS_KEYS[ea.DEPRECATED_ALIASES[e]]});for(let{types:e,set:t}of ze.allExpandedTypes)for(let r of e){let s=ze.FLIPPED_ALIAS_KEYS[r];if(s)s.forEach(t.add,t);else t.add(r)}var Dve=tt.TYPES=[].concat(Object.keys(ze.VISITOR_KEYS),Object.keys(ze.FLIPPED_ALIAS_KEYS),Object.keys(ze.DEPRECATED_KEYS))});var oi=A(function(Kc){Object.defineProperty(Kc,"__esModule",{value:!0});Kc.default=pD;Kc.validateChild=Uc;Kc.validateField=qc;Kc.validateInternal=fD;var ys=ut();function pD(e,t,r){if(!e)return;let s=ys.NODE_FIELDS[e.type];if(!s)return;let i=s[t];qc(e,t,r,i),Uc(e,t,r)}function fD(e,t,r,s,i){if(!(e!=null&&e.validate))return;if(e.optional&&s==null)return;if(e.validate(t,r,s),i){var n;let a=s.type;if(a==null)return;(n=ys.NODE_PARENT_VALIDATIONS[a])==null||n.call(ys.NODE_PARENT_VALIDATIONS,t,r,s)}}function qc(e,t,r,s){if(!(s!=null&&s.validate))return;if(s.optional&&r==null)return;s.validate(e,t,r)}function Uc(e,t,r){var s;let i=r==null?void 0:r.type;if(i==null)return;(s=ys.NODE_PARENT_VALIDATIONS[i])==null||s.call(ys.NODE_PARENT_VALIDATIONS,e,t,r)}});var ra=A(function(Xc){Object.defineProperty(Xc,"__esModule",{value:!0});Xc.anyTypeAnnotation=zL;Xc.argumentPlaceholder=vM;Xc.arrayExpression=gD;Xc.arrayPattern=mL;Xc.arrayTypeAnnotation=GL;Xc.arrowFunctionExpression=yL;Xc.assignmentExpression=bD;Xc.assignmentPattern=dL;Xc.awaitExpression=jL;Xc.bigIntLiteral=SD;Xc.binaryExpression=ED;Xc.bindExpression=CM;Xc.blockStatement=CD;Xc.booleanLiteral=WD;Xc.booleanLiteralTypeAnnotation=ZL;Xc.booleanTypeAnnotation=QL;Xc.breakStatement=ID;Xc.callExpression=wD;Xc.catchClause=ND;Xc.classAccessorProperty=YL;Xc.classBody=TL;Xc.classDeclaration=SL;Xc.classExpression=xL;Xc.classImplements=t2;Xc.classMethod=_L;Xc.classPrivateMethod=WL;Xc.classPrivateProperty=JL;Xc.classProperty=VL;Xc.conditionalExpression=OD;Xc.continueStatement=_D;Xc.debuggerStatement=kD;Xc.decimalLiteral=kM;Xc.declareClass=r2;Xc.declareExportAllDeclaration=p2;Xc.declareExportDeclaration=c2;Xc.declareFunction=s2;Xc.declareInterface=i2;Xc.declareModule=n2;Xc.declareModuleExports=a2;Xc.declareOpaqueType=l2;Xc.declareTypeAlias=o2;Xc.declareVariable=u2;Xc.declaredPredicate=f2;Xc.decorator=IM;Xc.directive=AD;Xc.directiveLiteral=vD;Xc.doExpression=wM;Xc.doWhileStatement=DD;Xc.emptyStatement=LD;Xc.emptyTypeAnnotation=P2;Xc.enumBooleanBody=G2;Xc.enumBooleanMember=tM;Xc.enumDeclaration=z2;Xc.enumDefaultedMember=iM;Xc.enumNumberBody=Q2;Xc.enumNumberMember=rM;Xc.enumStringBody=Z2;Xc.enumStringMember=sM;Xc.enumSymbolBody=eM;Xc.existsTypeAnnotation=h2;Xc.exportAllDeclaration=gL;Xc.exportDefaultDeclaration=bL;Xc.exportDefaultSpecifier=NM;Xc.exportNamedDeclaration=EL;Xc.exportNamespaceSpecifier=qL;Xc.exportSpecifier=PL;Xc.expressionStatement=MD;Xc.file=BD;Xc.forInStatement=FD;Xc.forOfStatement=AL;Xc.forStatement=jD;Xc.functionDeclaration=RD;Xc.functionExpression=qD;Xc.functionTypeAnnotation=d2;Xc.functionTypeParam=m2;Xc.genericTypeAnnotation=y2;Xc.identifier=UD;Xc.ifStatement=KD;Xc.import=RL;Xc.importAttribute=HL;Xc.importDeclaration=vL;Xc.importDefaultSpecifier=CL;Xc.importExpression=NL;Xc.importNamespaceSpecifier=IL;Xc.importSpecifier=wL;Xc.indexedAccessType=nM;Xc.inferredPredicate=T2;Xc.interfaceDeclaration=S2;Xc.interfaceExtends=x2;Xc.interfaceTypeAnnotation=g2;Xc.interpreterDirective=PD;Xc.intersectionTypeAnnotation=b2;Xc.jSXAttribute=Xc.jsxAttribute=oM;Xc.jSXClosingElement=Xc.jsxClosingElement=lM;Xc.jSXClosingFragment=Xc.jsxClosingFragment=bM;Xc.jSXElement=Xc.jsxElement=uM;Xc.jSXEmptyExpression=Xc.jsxEmptyExpression=cM;Xc.jSXExpressionContainer=Xc.jsxExpressionContainer=pM;Xc.jSXFragment=Xc.jsxFragment=SM;Xc.jSXIdentifier=Xc.jsxIdentifier=hM;Xc.jSXMemberExpression=Xc.jsxMemberExpression=dM;Xc.jSXNamespacedName=Xc.jsxNamespacedName=mM;Xc.jSXOpeningElement=Xc.jsxOpeningElement=yM;Xc.jSXOpeningFragment=Xc.jsxOpeningFragment=gM;Xc.jSXSpreadAttribute=Xc.jsxSpreadAttribute=TM;Xc.jSXSpreadChild=Xc.jsxSpreadChild=fM;Xc.jSXText=Xc.jsxText=xM;Xc.labeledStatement=VD;Xc.logicalExpression=XD;Xc.memberExpression=$D;Xc.metaProperty=OL;Xc.mixedTypeAnnotation=E2;Xc.moduleExpression=DM;Xc.newExpression=HD;Xc.noop=EM;Xc.nullLiteral=JD;Xc.nullLiteralTypeAnnotation=e2;Xc.nullableTypeAnnotation=A2;Xc.numberLiteral=QB;Xc.numberLiteralTypeAnnotation=v2;Xc.numberTypeAnnotation=C2;Xc.numericLiteral=Vc;Xc.objectExpression=GD;Xc.objectMethod=QD;Xc.objectPattern=kL;Xc.objectProperty=ZD;Xc.objectTypeAnnotation=I2;Xc.objectTypeCallProperty=N2;Xc.objectTypeIndexer=O2;Xc.objectTypeInternalSlot=w2;Xc.objectTypeProperty=_2;Xc.objectTypeSpreadProperty=k2;Xc.opaqueType=D2;Xc.optionalCallExpression=KL;Xc.optionalIndexedAccessType=aM;Xc.optionalMemberExpression=UL;Xc.parenthesizedExpression=rL;Xc.pipelineBareFunction=BM;Xc.pipelinePrimaryTopicReference=FM;Xc.pipelineTopicExpression=MM;Xc.placeholder=PM;Xc.privateName=XL;Xc.program=zD;Xc.qualifiedTypeIdentifier=L2;Xc.recordExpression=OM;Xc.regExpLiteral=Yc;Xc.regexLiteral=ZB;Xc.restElement=Jc;Xc.restProperty=eF;Xc.returnStatement=eL;Xc.sequenceExpression=tL;Xc.spreadElement=Wc;Xc.spreadProperty=tF;Xc.staticBlock=$L;Xc.stringLiteral=YD;Xc.stringLiteralTypeAnnotation=M2;Xc.stringTypeAnnotation=B2;Xc.super=DL;Xc.switchCase=sL;Xc.switchStatement=iL;Xc.symbolTypeAnnotation=F2;Xc.taggedTemplateExpression=LL;Xc.templateElement=ML;Xc.templateLiteral=BL;Xc.thisExpression=nL;Xc.thisTypeAnnotation=j2;Xc.throwStatement=aL;Xc.topicReference=LM;Xc.tryStatement=oL;Xc.tSAnyKeyword=Xc.tsAnyKeyword=$M;Xc.tSArrayType=Xc.tsArrayType=dB;Xc.tSAsExpression=Xc.tsAsExpression=LB;Xc.tSBigIntKeyword=Xc.tsBigIntKeyword=zM;Xc.tSBooleanKeyword=Xc.tsBooleanKeyword=HM;Xc.tSCallSignatureDeclaration=Xc.tsCallSignatureDeclaration=VM;Xc.tSConditionalType=Xc.tsConditionalType=bB;Xc.tSConstructSignatureDeclaration=Xc.tsConstructSignatureDeclaration=YM;Xc.tSConstructorType=Xc.tsConstructorType=uB;Xc.tSDeclareFunction=Xc.tsDeclareFunction=qM;Xc.tSDeclareMethod=Xc.tsDeclareMethod=UM;Xc.tSEnumBody=Xc.tsEnumBody=FB;Xc.tSEnumDeclaration=Xc.tsEnumDeclaration=jB;Xc.tSEnumMember=Xc.tsEnumMember=RB;Xc.tSExportAssignment=Xc.tsExportAssignment=WB;Xc.tSExpressionWithTypeArguments=Xc.tsExpressionWithTypeArguments=NB;Xc.tSExternalModuleReference=Xc.tsExternalModuleReference=YB;Xc.tSFunctionType=Xc.tsFunctionType=lB;Xc.tSImportEqualsDeclaration=Xc.tsImportEqualsDeclaration=VB;Xc.tSImportType=Xc.tsImportType=KB;Xc.tSIndexSignature=Xc.tsIndexSignature=XM;Xc.tSIndexedAccessType=Xc.tsIndexedAccessType=vB;Xc.tSInferType=Xc.tsInferType=EB;Xc.tSInstantiationExpression=Xc.tsInstantiationExpression=DB;Xc.tSInterfaceBody=Xc.tsInterfaceBody=_B;Xc.tSInterfaceDeclaration=Xc.tsInterfaceDeclaration=OB;Xc.tSIntersectionType=Xc.tsIntersectionType=gB;Xc.tSIntrinsicKeyword=Xc.tsIntrinsicKeyword=GM;Xc.tSLiteralType=Xc.tsLiteralType=wB;Xc.tSMappedType=Xc.tsMappedType=CB;Xc.tSMethodSignature=Xc.tsMethodSignature=WM;Xc.tSModuleBlock=Xc.tsModuleBlock=UB;Xc.tSModuleDeclaration=Xc.tsModuleDeclaration=qB;Xc.tSNamedTupleMember=Xc.tsNamedTupleMember=xB;Xc.tSNamespaceExportDeclaration=Xc.tsNamespaceExportDeclaration=XB;Xc.tSNeverKeyword=Xc.tsNeverKeyword=QM;Xc.tSNonNullExpression=Xc.tsNonNullExpression=JB;Xc.tSNullKeyword=Xc.tsNullKeyword=ZM;Xc.tSNumberKeyword=Xc.tsNumberKeyword=eB;Xc.tSObjectKeyword=Xc.tsObjectKeyword=tB;Xc.tSOptionalType=Xc.tsOptionalType=yB;Xc.tSParameterProperty=Xc.tsParameterProperty=RM;Xc.tSParenthesizedType=Xc.tsParenthesizedType=PB;Xc.tSPropertySignature=Xc.tsPropertySignature=JM;Xc.tSQualifiedName=Xc.tsQualifiedName=KM;Xc.tSRestType=Xc.tsRestType=TB;Xc.tSSatisfiesExpression=Xc.tsSatisfiesExpression=MB;Xc.tSStringKeyword=Xc.tsStringKeyword=rB;Xc.tSSymbolKeyword=Xc.tsSymbolKeyword=sB;Xc.tSTemplateLiteralType=Xc.tsTemplateLiteralType=IB;Xc.tSThisType=Xc.tsThisType=oB;Xc.tSTupleType=Xc.tsTupleType=mB;Xc.tSTypeAliasDeclaration=Xc.tsTypeAliasDeclaration=kB;Xc.tSTypeAnnotation=Xc.tsTypeAnnotation=$B;Xc.tSTypeAssertion=Xc.tsTypeAssertion=BB;Xc.tSTypeLiteral=Xc.tsTypeLiteral=hB;Xc.tSTypeOperator=Xc.tsTypeOperator=AB;Xc.tSTypeParameter=Xc.tsTypeParameter=GB;Xc.tSTypeParameterDeclaration=Xc.tsTypeParameterDeclaration=zB;Xc.tSTypeParameterInstantiation=Xc.tsTypeParameterInstantiation=HB;Xc.tSTypePredicate=Xc.tsTypePredicate=pB;Xc.tSTypeQuery=Xc.tsTypeQuery=fB;Xc.tSTypeReference=Xc.tsTypeReference=cB;Xc.tSUndefinedKeyword=Xc.tsUndefinedKeyword=iB;Xc.tSUnionType=Xc.tsUnionType=SB;Xc.tSUnknownKeyword=Xc.tsUnknownKeyword=nB;Xc.tSVoidKeyword=Xc.tsVoidKeyword=aB;Xc.tupleExpression=_M;Xc.tupleTypeAnnotation=R2;Xc.typeAlias=U2;Xc.typeAnnotation=K2;Xc.typeCastExpression=V2;Xc.typeParameter=Y2;Xc.typeParameterDeclaration=J2;Xc.typeParameterInstantiation=W2;Xc.typeofTypeAnnotation=q2;Xc.unaryExpression=lL;Xc.unionTypeAnnotation=X2;Xc.updateExpression=uL;Xc.v8IntrinsicIdentifier=AM;Xc.variableDeclaration=cL;Xc.variableDeclarator=pL;Xc.variance=$2;Xc.voidPattern=jM;Xc.voidTypeAnnotation=H2;Xc.whileStatement=fL;Xc.withStatement=hL;Xc.yieldExpression=FL;var TD=oi(),fi=Lr(),xD=It(),{validateInternal:c}=TD,{NODE_FIELDS:S}=xD;function SD(e){if(typeof e==="bigint")e=e.toString();let t={type:"BigIntLiteral",value:e},r=S.BigIntLiteral;return c(r.value,t,"value",e),t}function gD(e=[]){let t={type:"ArrayExpression",elements:e},r=S.ArrayExpression;return c(r.elements,t,"elements",e,1),t}function bD(e,t,r){let s={type:"AssignmentExpression",operator:e,left:t,right:r},i=S.AssignmentExpression;return c(i.operator,s,"operator",e),c(i.left,s,"left",t,1),c(i.right,s,"right",r,1),s}function ED(e,t,r){let s={type:"BinaryExpression",operator:e,left:t,right:r},i=S.BinaryExpression;return c(i.operator,s,"operator",e),c(i.left,s,"left",t,1),c(i.right,s,"right",r,1),s}function PD(e){let t={type:"InterpreterDirective",value:e},r=S.InterpreterDirective;return c(r.value,t,"value",e),t}function AD(e){let t={type:"Directive",value:e},r=S.Directive;return c(r.value,t,"value",e,1),t}function vD(e){let t={type:"DirectiveLiteral",value:e},r=S.DirectiveLiteral;return c(r.value,t,"value",e),t}function CD(e,t=[]){let r={type:"BlockStatement",body:e,directives:t},s=S.BlockStatement;return c(s.body,r,"body",e,1),c(s.directives,r,"directives",t,1),r}function ID(e=null){let t={type:"BreakStatement",label:e},r=S.BreakStatement;return c(r.label,t,"label",e,1),t}function wD(e,t){let r={type:"CallExpression",callee:e,arguments:t},s=S.CallExpression;return c(s.callee,r,"callee",e,1),c(s.arguments,r,"arguments",t,1),r}function ND(e=null,t){let r={type:"CatchClause",param:e,body:t},s=S.CatchClause;return c(s.param,r,"param",e,1),c(s.body,r,"body",t,1),r}function OD(e,t,r){let s={type:"ConditionalExpression",test:e,consequent:t,alternate:r},i=S.ConditionalExpression;return c(i.test,s,"test",e,1),c(i.consequent,s,"consequent",t,1),c(i.alternate,s,"alternate",r,1),s}function _D(e=null){let t={type:"ContinueStatement",label:e},r=S.ContinueStatement;return c(r.label,t,"label",e,1),t}function kD(){return{type:"DebuggerStatement"}}function DD(e,t){let r={type:"DoWhileStatement",test:e,body:t},s=S.DoWhileStatement;return c(s.test,r,"test",e,1),c(s.body,r,"body",t,1),r}function LD(){return{type:"EmptyStatement"}}function MD(e){let t={type:"ExpressionStatement",expression:e},r=S.ExpressionStatement;return c(r.expression,t,"expression",e,1),t}function BD(e,t=null,r=null){let s={type:"File",program:e,comments:t,tokens:r},i=S.File;return c(i.program,s,"program",e,1),c(i.comments,s,"comments",t,1),c(i.tokens,s,"tokens",r),s}function FD(e,t,r){let s={type:"ForInStatement",left:e,right:t,body:r},i=S.ForInStatement;return c(i.left,s,"left",e,1),c(i.right,s,"right",t,1),c(i.body,s,"body",r,1),s}function jD(e=null,t=null,r=null,s){let i={type:"ForStatement",init:e,test:t,update:r,body:s},n=S.ForStatement;return c(n.init,i,"init",e,1),c(n.test,i,"test",t,1),c(n.update,i,"update",r,1),c(n.body,i,"body",s,1),i}function RD(e=null,t,r,s=!1,i=!1){let n={type:"FunctionDeclaration",id:e,params:t,body:r,generator:s,async:i},a=S.FunctionDeclaration;return c(a.id,n,"id",e,1),c(a.params,n,"params",t,1),c(a.body,n,"body",r,1),c(a.generator,n,"generator",s),c(a.async,n,"async",i),n}function qD(e=null,t,r,s=!1,i=!1){let n={type:"FunctionExpression",id:e,params:t,body:r,generator:s,async:i},a=S.FunctionExpression;return c(a.id,n,"id",e,1),c(a.params,n,"params",t,1),c(a.body,n,"body",r,1),c(a.generator,n,"generator",s),c(a.async,n,"async",i),n}function UD(e){let t={type:"Identifier",name:e},r=S.Identifier;return c(r.name,t,"name",e),t}function KD(e,t,r=null){let s={type:"IfStatement",test:e,consequent:t,alternate:r},i=S.IfStatement;return c(i.test,s,"test",e,1),c(i.consequent,s,"consequent",t,1),c(i.alternate,s,"alternate",r,1),s}function VD(e,t){let r={type:"LabeledStatement",label:e,body:t},s=S.LabeledStatement;return c(s.label,r,"label",e,1),c(s.body,r,"body",t,1),r}function YD(e){let t={type:"StringLiteral",value:e},r=S.StringLiteral;return c(r.value,t,"value",e),t}function Vc(e){let t={type:"NumericLiteral",value:e},r=S.NumericLiteral;return c(r.value,t,"value",e),t}function JD(){return{type:"NullLiteral"}}function WD(e){let t={type:"BooleanLiteral",value:e},r=S.BooleanLiteral;return c(r.value,t,"value",e),t}function Yc(e,t=""){let r={type:"RegExpLiteral",pattern:e,flags:t},s=S.RegExpLiteral;return c(s.pattern,r,"pattern",e),c(s.flags,r,"flags",t),r}function XD(e,t,r){let s={type:"LogicalExpression",operator:e,left:t,right:r},i=S.LogicalExpression;return c(i.operator,s,"operator",e),c(i.left,s,"left",t,1),c(i.right,s,"right",r,1),s}function $D(e,t,r=!1,s=null){let i={type:"MemberExpression",object:e,property:t,computed:r,optional:s},n=S.MemberExpression;return c(n.object,i,"object",e,1),c(n.property,i,"property",t,1),c(n.computed,i,"computed",r),c(n.optional,i,"optional",s),i}function HD(e,t){let r={type:"NewExpression",callee:e,arguments:t,typeParameters:null},s=S.NewExpression;return c(s.callee,r,"callee",e,1),c(s.arguments,r,"arguments",t,1),r}function zD(e,t=[],r="script",s=null){let i={type:"Program",body:e,directives:t,sourceType:r,interpreter:s},n=S.Program;return c(n.body,i,"body",e,1),c(n.directives,i,"directives",t,1),c(n.sourceType,i,"sourceType",r),c(n.interpreter,i,"interpreter",s,1),i}function GD(e){let t={type:"ObjectExpression",properties:e},r=S.ObjectExpression;return c(r.properties,t,"properties",e,1),t}function QD(e="method",t,r,s,i=!1,n=!1,a=!1){let o={type:"ObjectMethod",kind:e,key:t,params:r,body:s,computed:i,generator:n,async:a},l=S.ObjectMethod;return c(l.kind,o,"kind",e),c(l.key,o,"key",t,1),c(l.params,o,"params",r,1),c(l.body,o,"body",s,1),c(l.computed,o,"computed",i),c(l.generator,o,"generator",n),c(l.async,o,"async",a),o}function ZD(e,t,r=!1,s=!1,i=null){let n={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:s,decorators:i},a=S.ObjectProperty;return c(a.key,n,"key",e,1),c(a.value,n,"value",t,1),c(a.computed,n,"computed",r),c(a.shorthand,n,"shorthand",s),c(a.decorators,n,"decorators",i,1),n}function Jc(e){let t={type:"RestElement",argument:e},r=S.RestElement;return c(r.argument,t,"argument",e,1),t}function eL(e=null){let t={type:"ReturnStatement",argument:e},r=S.ReturnStatement;return c(r.argument,t,"argument",e,1),t}function tL(e){let t={type:"SequenceExpression",expressions:e},r=S.SequenceExpression;return c(r.expressions,t,"expressions",e,1),t}function rL(e){let t={type:"ParenthesizedExpression",expression:e},r=S.ParenthesizedExpression;return c(r.expression,t,"expression",e,1),t}function sL(e=null,t){let r={type:"SwitchCase",test:e,consequent:t},s=S.SwitchCase;return c(s.test,r,"test",e,1),c(s.consequent,r,"consequent",t,1),r}function iL(e,t){let r={type:"SwitchStatement",discriminant:e,cases:t},s=S.SwitchStatement;return c(s.discriminant,r,"discriminant",e,1),c(s.cases,r,"cases",t,1),r}function nL(){return{type:"ThisExpression"}}function aL(e){let t={type:"ThrowStatement",argument:e},r=S.ThrowStatement;return c(r.argument,t,"argument",e,1),t}function oL(e,t=null,r=null){let s={type:"TryStatement",block:e,handler:t,finalizer:r},i=S.TryStatement;return c(i.block,s,"block",e,1),c(i.handler,s,"handler",t,1),c(i.finalizer,s,"finalizer",r,1),s}function lL(e,t,r=!0){let s={type:"UnaryExpression",operator:e,argument:t,prefix:r},i=S.UnaryExpression;return c(i.operator,s,"operator",e),c(i.argument,s,"argument",t,1),c(i.prefix,s,"prefix",r),s}function uL(e,t,r=!1){let s={type:"UpdateExpression",operator:e,argument:t,prefix:r},i=S.UpdateExpression;return c(i.operator,s,"operator",e),c(i.argument,s,"argument",t,1),c(i.prefix,s,"prefix",r),s}function cL(e,t){let r={type:"VariableDeclaration",kind:e,declarations:t},s=S.VariableDeclaration;return c(s.kind,r,"kind",e),c(s.declarations,r,"declarations",t,1),r}function pL(e,t=null){let r={type:"VariableDeclarator",id:e,init:t},s=S.VariableDeclarator;return c(s.id,r,"id",e,1),c(s.init,r,"init",t,1),r}function fL(e,t){let r={type:"WhileStatement",test:e,body:t},s=S.WhileStatement;return c(s.test,r,"test",e,1),c(s.body,r,"body",t,1),r}function hL(e,t){let r={type:"WithStatement",object:e,body:t},s=S.WithStatement;return c(s.object,r,"object",e,1),c(s.body,r,"body",t,1),r}function dL(e,t){let r={type:"AssignmentPattern",left:e,right:t},s=S.AssignmentPattern;return c(s.left,r,"left",e,1),c(s.right,r,"right",t,1),r}function mL(e){let t={type:"ArrayPattern",elements:e},r=S.ArrayPattern;return c(r.elements,t,"elements",e,1),t}function yL(e,t,r=!1){let s={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},i=S.ArrowFunctionExpression;return c(i.params,s,"params",e,1),c(i.body,s,"body",t,1),c(i.async,s,"async",r),s}function TL(e){let t={type:"ClassBody",body:e},r=S.ClassBody;return c(r.body,t,"body",e,1),t}function xL(e=null,t=null,r,s=null){let i={type:"ClassExpression",id:e,superClass:t,body:r,decorators:s},n=S.ClassExpression;return c(n.id,i,"id",e,1),c(n.superClass,i,"superClass",t,1),c(n.body,i,"body",r,1),c(n.decorators,i,"decorators",s,1),i}function SL(e=null,t=null,r,s=null){let i={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:s},n=S.ClassDeclaration;return c(n.id,i,"id",e,1),c(n.superClass,i,"superClass",t,1),c(n.body,i,"body",r,1),c(n.decorators,i,"decorators",s,1),i}function gL(e,t=null){let r={type:"ExportAllDeclaration",source:e,attributes:t},s=S.ExportAllDeclaration;return c(s.source,r,"source",e,1),c(s.attributes,r,"attributes",t,1),r}function bL(e){let t={type:"ExportDefaultDeclaration",declaration:e},r=S.ExportDefaultDeclaration;return c(r.declaration,t,"declaration",e,1),t}function EL(e=null,t=[],r=null,s=null){let i={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r,attributes:s},n=S.ExportNamedDeclaration;return c(n.declaration,i,"declaration",e,1),c(n.specifiers,i,"specifiers",t,1),c(n.source,i,"source",r,1),c(n.attributes,i,"attributes",s,1),i}function PL(e,t){let r={type:"ExportSpecifier",local:e,exported:t},s=S.ExportSpecifier;return c(s.local,r,"local",e,1),c(s.exported,r,"exported",t,1),r}function AL(e,t,r,s=!1){let i={type:"ForOfStatement",left:e,right:t,body:r,await:s},n=S.ForOfStatement;return c(n.left,i,"left",e,1),c(n.right,i,"right",t,1),c(n.body,i,"body",r,1),c(n.await,i,"await",s),i}function vL(e,t,r=null){let s={type:"ImportDeclaration",specifiers:e,source:t,attributes:r},i=S.ImportDeclaration;return c(i.specifiers,s,"specifiers",e,1),c(i.source,s,"source",t,1),c(i.attributes,s,"attributes",r,1),s}function CL(e){let t={type:"ImportDefaultSpecifier",local:e},r=S.ImportDefaultSpecifier;return c(r.local,t,"local",e,1),t}function IL(e){let t={type:"ImportNamespaceSpecifier",local:e},r=S.ImportNamespaceSpecifier;return c(r.local,t,"local",e,1),t}function wL(e,t){let r={type:"ImportSpecifier",local:e,imported:t},s=S.ImportSpecifier;return c(s.local,r,"local",e,1),c(s.imported,r,"imported",t,1),r}function NL(e,t=null){let r={type:"ImportExpression",source:e,options:t},s=S.ImportExpression;return c(s.source,r,"source",e,1),c(s.options,r,"options",t,1),r}function OL(e,t){let r={type:"MetaProperty",meta:e,property:t},s=S.MetaProperty;return c(s.meta,r,"meta",e,1),c(s.property,r,"property",t,1),r}function _L(e="method",t,r,s,i=!1,n=!1,a=!1,o=!1){let l={type:"ClassMethod",kind:e,key:t,params:r,body:s,computed:i,static:n,generator:a,async:o},u=S.ClassMethod;return c(u.kind,l,"kind",e),c(u.key,l,"key",t,1),c(u.params,l,"params",r,1),c(u.body,l,"body",s,1),c(u.computed,l,"computed",i),c(u.static,l,"static",n),c(u.generator,l,"generator",a),c(u.async,l,"async",o),l}function kL(e){let t={type:"ObjectPattern",properties:e},r=S.ObjectPattern;return c(r.properties,t,"properties",e,1),t}function Wc(e){let t={type:"SpreadElement",argument:e},r=S.SpreadElement;return c(r.argument,t,"argument",e,1),t}function DL(){return{type:"Super"}}function LL(e,t){let r={type:"TaggedTemplateExpression",tag:e,quasi:t},s=S.TaggedTemplateExpression;return c(s.tag,r,"tag",e,1),c(s.quasi,r,"quasi",t,1),r}function ML(e,t=!1){let r={type:"TemplateElement",value:e,tail:t},s=S.TemplateElement;return c(s.value,r,"value",e),c(s.tail,r,"tail",t),r}function BL(e,t){let r={type:"TemplateLiteral",quasis:e,expressions:t},s=S.TemplateLiteral;return c(s.quasis,r,"quasis",e,1),c(s.expressions,r,"expressions",t,1),r}function FL(e=null,t=!1){let r={type:"YieldExpression",argument:e,delegate:t},s=S.YieldExpression;return c(s.argument,r,"argument",e,1),c(s.delegate,r,"delegate",t),r}function jL(e){let t={type:"AwaitExpression",argument:e},r=S.AwaitExpression;return c(r.argument,t,"argument",e,1),t}function RL(){return{type:"Import"}}function qL(e){let t={type:"ExportNamespaceSpecifier",exported:e},r=S.ExportNamespaceSpecifier;return c(r.exported,t,"exported",e,1),t}function UL(e,t,r=!1,s){let i={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:s},n=S.OptionalMemberExpression;return c(n.object,i,"object",e,1),c(n.property,i,"property",t,1),c(n.computed,i,"computed",r),c(n.optional,i,"optional",s),i}function KL(e,t,r){let s={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},i=S.OptionalCallExpression;return c(i.callee,s,"callee",e,1),c(i.arguments,s,"arguments",t,1),c(i.optional,s,"optional",r),s}function VL(e,t=null,r=null,s=null,i=!1,n=!1){let a={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:s,computed:i,static:n},o=S.ClassProperty;return c(o.key,a,"key",e,1),c(o.value,a,"value",t,1),c(o.typeAnnotation,a,"typeAnnotation",r,1),c(o.decorators,a,"decorators",s,1),c(o.computed,a,"computed",i),c(o.static,a,"static",n),a}function YL(e,t=null,r=null,s=null,i=!1,n=!1){let a={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:s,computed:i,static:n},o=S.ClassAccessorProperty;return c(o.key,a,"key",e,1),c(o.value,a,"value",t,1),c(o.typeAnnotation,a,"typeAnnotation",r,1),c(o.decorators,a,"decorators",s,1),c(o.computed,a,"computed",i),c(o.static,a,"static",n),a}function JL(e,t=null,r=null,s=!1){let i={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:s},n=S.ClassPrivateProperty;return c(n.key,i,"key",e,1),c(n.value,i,"value",t,1),c(n.decorators,i,"decorators",r,1),c(n.static,i,"static",s),i}function WL(e="method",t,r,s,i=!1){let n={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:s,static:i},a=S.ClassPrivateMethod;return c(a.kind,n,"kind",e),c(a.key,n,"key",t,1),c(a.params,n,"params",r,1),c(a.body,n,"body",s,1),c(a.static,n,"static",i),n}function XL(e){let t={type:"PrivateName",id:e},r=S.PrivateName;return c(r.id,t,"id",e,1),t}function $L(e){let t={type:"StaticBlock",body:e},r=S.StaticBlock;return c(r.body,t,"body",e,1),t}function HL(e,t){let r={type:"ImportAttribute",key:e,value:t},s=S.ImportAttribute;return c(s.key,r,"key",e,1),c(s.value,r,"value",t,1),r}function zL(){return{type:"AnyTypeAnnotation"}}function GL(e){let t={type:"ArrayTypeAnnotation",elementType:e},r=S.ArrayTypeAnnotation;return c(r.elementType,t,"elementType",e,1),t}function QL(){return{type:"BooleanTypeAnnotation"}}function ZL(e){let t={type:"BooleanLiteralTypeAnnotation",value:e},r=S.BooleanLiteralTypeAnnotation;return c(r.value,t,"value",e),t}function e2(){return{type:"NullLiteralTypeAnnotation"}}function t2(e,t=null){let r={type:"ClassImplements",id:e,typeParameters:t},s=S.ClassImplements;return c(s.id,r,"id",e,1),c(s.typeParameters,r,"typeParameters",t,1),r}function r2(e,t=null,r=null,s){let i={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:s},n=S.DeclareClass;return c(n.id,i,"id",e,1),c(n.typeParameters,i,"typeParameters",t,1),c(n.extends,i,"extends",r,1),c(n.body,i,"body",s,1),i}function s2(e){let t={type:"DeclareFunction",id:e},r=S.DeclareFunction;return c(r.id,t,"id",e,1),t}function i2(e,t=null,r=null,s){let i={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:s},n=S.DeclareInterface;return c(n.id,i,"id",e,1),c(n.typeParameters,i,"typeParameters",t,1),c(n.extends,i,"extends",r,1),c(n.body,i,"body",s,1),i}function n2(e,t,r=null){let s={type:"DeclareModule",id:e,body:t,kind:r},i=S.DeclareModule;return c(i.id,s,"id",e,1),c(i.body,s,"body",t,1),c(i.kind,s,"kind",r),s}function a2(e){let t={type:"DeclareModuleExports",typeAnnotation:e},r=S.DeclareModuleExports;return c(r.typeAnnotation,t,"typeAnnotation",e,1),t}function o2(e,t=null,r){let s={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},i=S.DeclareTypeAlias;return c(i.id,s,"id",e,1),c(i.typeParameters,s,"typeParameters",t,1),c(i.right,s,"right",r,1),s}function l2(e,t=null,r=null){let s={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},i=S.DeclareOpaqueType;return c(i.id,s,"id",e,1),c(i.typeParameters,s,"typeParameters",t,1),c(i.supertype,s,"supertype",r,1),s}function u2(e){let t={type:"DeclareVariable",id:e},r=S.DeclareVariable;return c(r.id,t,"id",e,1),t}function c2(e=null,t=null,r=null,s=null){let i={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:s},n=S.DeclareExportDeclaration;return c(n.declaration,i,"declaration",e,1),c(n.specifiers,i,"specifiers",t,1),c(n.source,i,"source",r,1),c(n.attributes,i,"attributes",s,1),i}function p2(e,t=null){let r={type:"DeclareExportAllDeclaration",source:e,attributes:t},s=S.DeclareExportAllDeclaration;return c(s.source,r,"source",e,1),c(s.attributes,r,"attributes",t,1),r}function f2(e){let t={type:"DeclaredPredicate",value:e},r=S.DeclaredPredicate;return c(r.value,t,"value",e,1),t}function h2(){return{type:"ExistsTypeAnnotation"}}function d2(e=null,t,r=null,s){let i={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:s},n=S.FunctionTypeAnnotation;return c(n.typeParameters,i,"typeParameters",e,1),c(n.params,i,"params",t,1),c(n.rest,i,"rest",r,1),c(n.returnType,i,"returnType",s,1),i}function m2(e=null,t){let r={type:"FunctionTypeParam",name:e,typeAnnotation:t},s=S.FunctionTypeParam;return c(s.name,r,"name",e,1),c(s.typeAnnotation,r,"typeAnnotation",t,1),r}function y2(e,t=null){let r={type:"GenericTypeAnnotation",id:e,typeParameters:t},s=S.GenericTypeAnnotation;return c(s.id,r,"id",e,1),c(s.typeParameters,r,"typeParameters",t,1),r}function T2(){return{type:"InferredPredicate"}}function x2(e,t=null){let r={type:"InterfaceExtends",id:e,typeParameters:t},s=S.InterfaceExtends;return c(s.id,r,"id",e,1),c(s.typeParameters,r,"typeParameters",t,1),r}function S2(e,t=null,r=null,s){let i={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:s},n=S.InterfaceDeclaration;return c(n.id,i,"id",e,1),c(n.typeParameters,i,"typeParameters",t,1),c(n.extends,i,"extends",r,1),c(n.body,i,"body",s,1),i}function g2(e=null,t){let r={type:"InterfaceTypeAnnotation",extends:e,body:t},s=S.InterfaceTypeAnnotation;return c(s.extends,r,"extends",e,1),c(s.body,r,"body",t,1),r}function b2(e){let t={type:"IntersectionTypeAnnotation",types:e},r=S.IntersectionTypeAnnotation;return c(r.types,t,"types",e,1),t}function E2(){return{type:"MixedTypeAnnotation"}}function P2(){return{type:"EmptyTypeAnnotation"}}function A2(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e},r=S.NullableTypeAnnotation;return c(r.typeAnnotation,t,"typeAnnotation",e,1),t}function v2(e){let t={type:"NumberLiteralTypeAnnotation",value:e},r=S.NumberLiteralTypeAnnotation;return c(r.value,t,"value",e),t}function C2(){return{type:"NumberTypeAnnotation"}}function I2(e,t=[],r=[],s=[],i=!1){let n={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:s,exact:i},a=S.ObjectTypeAnnotation;return c(a.properties,n,"properties",e,1),c(a.indexers,n,"indexers",t,1),c(a.callProperties,n,"callProperties",r,1),c(a.internalSlots,n,"internalSlots",s,1),c(a.exact,n,"exact",i),n}function w2(e,t,r,s,i){let n={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:s,method:i},a=S.ObjectTypeInternalSlot;return c(a.id,n,"id",e,1),c(a.value,n,"value",t,1),c(a.optional,n,"optional",r),c(a.static,n,"static",s),c(a.method,n,"method",i),n}function N2(e){let t={type:"ObjectTypeCallProperty",value:e,static:null},r=S.ObjectTypeCallProperty;return c(r.value,t,"value",e,1),t}function O2(e=null,t,r,s=null){let i={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:s,static:null},n=S.ObjectTypeIndexer;return c(n.id,i,"id",e,1),c(n.key,i,"key",t,1),c(n.value,i,"value",r,1),c(n.variance,i,"variance",s,1),i}function _2(e,t,r=null){let s={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},i=S.ObjectTypeProperty;return c(i.key,s,"key",e,1),c(i.value,s,"value",t,1),c(i.variance,s,"variance",r,1),s}function k2(e){let t={type:"ObjectTypeSpreadProperty",argument:e},r=S.ObjectTypeSpreadProperty;return c(r.argument,t,"argument",e,1),t}function D2(e,t=null,r=null,s){let i={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:s},n=S.OpaqueType;return c(n.id,i,"id",e,1),c(n.typeParameters,i,"typeParameters",t,1),c(n.supertype,i,"supertype",r,1),c(n.impltype,i,"impltype",s,1),i}function L2(e,t){let r={type:"QualifiedTypeIdentifier",id:e,qualification:t},s=S.QualifiedTypeIdentifier;return c(s.id,r,"id",e,1),c(s.qualification,r,"qualification",t,1),r}function M2(e){let t={type:"StringLiteralTypeAnnotation",value:e},r=S.StringLiteralTypeAnnotation;return c(r.value,t,"value",e),t}function B2(){return{type:"StringTypeAnnotation"}}function F2(){return{type:"SymbolTypeAnnotation"}}function j2(){return{type:"ThisTypeAnnotation"}}function R2(e){let t={type:"TupleTypeAnnotation",types:e},r=S.TupleTypeAnnotation;return c(r.types,t,"types",e,1),t}function q2(e){let t={type:"TypeofTypeAnnotation",argument:e},r=S.TypeofTypeAnnotation;return c(r.argument,t,"argument",e,1),t}function U2(e,t=null,r){let s={type:"TypeAlias",id:e,typeParameters:t,right:r},i=S.TypeAlias;return c(i.id,s,"id",e,1),c(i.typeParameters,s,"typeParameters",t,1),c(i.right,s,"right",r,1),s}function K2(e){let t={type:"TypeAnnotation",typeAnnotation:e},r=S.TypeAnnotation;return c(r.typeAnnotation,t,"typeAnnotation",e,1),t}function V2(e,t){let r={type:"TypeCastExpression",expression:e,typeAnnotation:t},s=S.TypeCastExpression;return c(s.expression,r,"expression",e,1),c(s.typeAnnotation,r,"typeAnnotation",t,1),r}function Y2(e=null,t=null,r=null){let s={type:"TypeParameter",bound:e,default:t,variance:r,name:null},i=S.TypeParameter;return c(i.bound,s,"bound",e,1),c(i.default,s,"default",t,1),c(i.variance,s,"variance",r,1),s}function J2(e){let t={type:"TypeParameterDeclaration",params:e},r=S.TypeParameterDeclaration;return c(r.params,t,"params",e,1),t}function W2(e){let t={type:"TypeParameterInstantiation",params:e},r=S.TypeParameterInstantiation;return c(r.params,t,"params",e,1),t}function X2(e){let t={type:"UnionTypeAnnotation",types:e},r=S.UnionTypeAnnotation;return c(r.types,t,"types",e,1),t}function $2(e){let t={type:"Variance",kind:e},r=S.Variance;return c(r.kind,t,"kind",e),t}function H2(){return{type:"VoidTypeAnnotation"}}function z2(e,t){let r={type:"EnumDeclaration",id:e,body:t},s=S.EnumDeclaration;return c(s.id,r,"id",e,1),c(s.body,r,"body",t,1),r}function G2(e){let t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=S.EnumBooleanBody;return c(r.members,t,"members",e,1),t}function Q2(e){let t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=S.EnumNumberBody;return c(r.members,t,"members",e,1),t}function Z2(e){let t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=S.EnumStringBody;return c(r.members,t,"members",e,1),t}function eM(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=S.EnumSymbolBody;return c(r.members,t,"members",e,1),t}function tM(e){let t={type:"EnumBooleanMember",id:e,init:null},r=S.EnumBooleanMember;return c(r.id,t,"id",e,1),t}function rM(e,t){let r={type:"EnumNumberMember",id:e,init:t},s=S.EnumNumberMember;return c(s.id,r,"id",e,1),c(s.init,r,"init",t,1),r}function sM(e,t){let r={type:"EnumStringMember",id:e,init:t},s=S.EnumStringMember;return c(s.id,r,"id",e,1),c(s.init,r,"init",t,1),r}function iM(e){let t={type:"EnumDefaultedMember",id:e},r=S.EnumDefaultedMember;return c(r.id,t,"id",e,1),t}function nM(e,t){let r={type:"IndexedAccessType",objectType:e,indexType:t},s=S.IndexedAccessType;return c(s.objectType,r,"objectType",e,1),c(s.indexType,r,"indexType",t,1),r}function aM(e,t){let r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},s=S.OptionalIndexedAccessType;return c(s.objectType,r,"objectType",e,1),c(s.indexType,r,"indexType",t,1),r}function oM(e,t=null){let r={type:"JSXAttribute",name:e,value:t},s=S.JSXAttribute;return c(s.name,r,"name",e,1),c(s.value,r,"value",t,1),r}function lM(e){let t={type:"JSXClosingElement",name:e},r=S.JSXClosingElement;return c(r.name,t,"name",e,1),t}function uM(e,t=null,r,s=null){let i={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:s},n=S.JSXElement;return c(n.openingElement,i,"openingElement",e,1),c(n.closingElement,i,"closingElement",t,1),c(n.children,i,"children",r,1),c(n.selfClosing,i,"selfClosing",s),i}function cM(){return{type:"JSXEmptyExpression"}}function pM(e){let t={type:"JSXExpressionContainer",expression:e},r=S.JSXExpressionContainer;return c(r.expression,t,"expression",e,1),t}function fM(e){let t={type:"JSXSpreadChild",expression:e},r=S.JSXSpreadChild;return c(r.expression,t,"expression",e,1),t}function hM(e){let t={type:"JSXIdentifier",name:e},r=S.JSXIdentifier;return c(r.name,t,"name",e),t}function dM(e,t){let r={type:"JSXMemberExpression",object:e,property:t},s=S.JSXMemberExpression;return c(s.object,r,"object",e,1),c(s.property,r,"property",t,1),r}function mM(e,t){let r={type:"JSXNamespacedName",namespace:e,name:t},s=S.JSXNamespacedName;return c(s.namespace,r,"namespace",e,1),c(s.name,r,"name",t,1),r}function yM(e,t,r=!1){let s={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},i=S.JSXOpeningElement;return c(i.name,s,"name",e,1),c(i.attributes,s,"attributes",t,1),c(i.selfClosing,s,"selfClosing",r),s}function TM(e){let t={type:"JSXSpreadAttribute",argument:e},r=S.JSXSpreadAttribute;return c(r.argument,t,"argument",e,1),t}function xM(e){let t={type:"JSXText",value:e},r=S.JSXText;return c(r.value,t,"value",e),t}function SM(e,t,r){let s={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},i=S.JSXFragment;return c(i.openingFragment,s,"openingFragment",e,1),c(i.closingFragment,s,"closingFragment",t,1),c(i.children,s,"children",r,1),s}function gM(){return{type:"JSXOpeningFragment"}}function bM(){return{type:"JSXClosingFragment"}}function EM(){return{type:"Noop"}}function PM(e,t){let r={type:"Placeholder",expectedNode:e,name:t},s=S.Placeholder;return c(s.expectedNode,r,"expectedNode",e),c(s.name,r,"name",t,1),r}function AM(e){let t={type:"V8IntrinsicIdentifier",name:e},r=S.V8IntrinsicIdentifier;return c(r.name,t,"name",e),t}function vM(){return{type:"ArgumentPlaceholder"}}function CM(e,t){let r={type:"BindExpression",object:e,callee:t},s=S.BindExpression;return c(s.object,r,"object",e,1),c(s.callee,r,"callee",t,1),r}function IM(e){let t={type:"Decorator",expression:e},r=S.Decorator;return c(r.expression,t,"expression",e,1),t}function wM(e,t=!1){let r={type:"DoExpression",body:e,async:t},s=S.DoExpression;return c(s.body,r,"body",e,1),c(s.async,r,"async",t),r}function NM(e){let t={type:"ExportDefaultSpecifier",exported:e},r=S.ExportDefaultSpecifier;return c(r.exported,t,"exported",e,1),t}function OM(e){let t={type:"RecordExpression",properties:e},r=S.RecordExpression;return c(r.properties,t,"properties",e,1),t}function _M(e=[]){let t={type:"TupleExpression",elements:e},r=S.TupleExpression;return c(r.elements,t,"elements",e,1),t}function kM(e){let t={type:"DecimalLiteral",value:e},r=S.DecimalLiteral;return c(r.value,t,"value",e),t}function DM(e){let t={type:"ModuleExpression",body:e},r=S.ModuleExpression;return c(r.body,t,"body",e,1),t}function LM(){return{type:"TopicReference"}}function MM(e){let t={type:"PipelineTopicExpression",expression:e},r=S.PipelineTopicExpression;return c(r.expression,t,"expression",e,1),t}function BM(e){let t={type:"PipelineBareFunction",callee:e},r=S.PipelineBareFunction;return c(r.callee,t,"callee",e,1),t}function FM(){return{type:"PipelinePrimaryTopicReference"}}function jM(){return{type:"VoidPattern"}}function RM(e){let t={type:"TSParameterProperty",parameter:e},r=S.TSParameterProperty;return c(r.parameter,t,"parameter",e,1),t}function qM(e=null,t=null,r,s=null){let i={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:s},n=S.TSDeclareFunction;return c(n.id,i,"id",e,1),c(n.typeParameters,i,"typeParameters",t,1),c(n.params,i,"params",r,1),c(n.returnType,i,"returnType",s,1),i}function UM(e=null,t,r=null,s,i=null){let n={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:s,returnType:i},a=S.TSDeclareMethod;return c(a.decorators,n,"decorators",e,1),c(a.key,n,"key",t,1),c(a.typeParameters,n,"typeParameters",r,1),c(a.params,n,"params",s,1),c(a.returnType,n,"returnType",i,1),n}function KM(e,t){let r={type:"TSQualifiedName",left:e,right:t},s=S.TSQualifiedName;return c(s.left,r,"left",e,1),c(s.right,r,"right",t,1),r}function VM(e=null,t,r=null){let s={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},i=S.TSCallSignatureDeclaration;return c(i.typeParameters,s,"typeParameters",e,1),c(i.parameters,s,"parameters",t,1),c(i.typeAnnotation,s,"typeAnnotation",r,1),s}function YM(e=null,t,r=null){let s={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},i=S.TSConstructSignatureDeclaration;return c(i.typeParameters,s,"typeParameters",e,1),c(i.parameters,s,"parameters",t,1),c(i.typeAnnotation,s,"typeAnnotation",r,1),s}function JM(e,t=null){let r={type:"TSPropertySignature",key:e,typeAnnotation:t},s=S.TSPropertySignature;return c(s.key,r,"key",e,1),c(s.typeAnnotation,r,"typeAnnotation",t,1),r}function WM(e,t=null,r,s=null){let i={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:s,kind:null},n=S.TSMethodSignature;return c(n.key,i,"key",e,1),c(n.typeParameters,i,"typeParameters",t,1),c(n.parameters,i,"parameters",r,1),c(n.typeAnnotation,i,"typeAnnotation",s,1),i}function XM(e,t=null){let r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},s=S.TSIndexSignature;return c(s.parameters,r,"parameters",e,1),c(s.typeAnnotation,r,"typeAnnotation",t,1),r}function $M(){return{type:"TSAnyKeyword"}}function HM(){return{type:"TSBooleanKeyword"}}function zM(){return{type:"TSBigIntKeyword"}}function GM(){return{type:"TSIntrinsicKeyword"}}function QM(){return{type:"TSNeverKeyword"}}function ZM(){return{type:"TSNullKeyword"}}function eB(){return{type:"TSNumberKeyword"}}function tB(){return{type:"TSObjectKeyword"}}function rB(){return{type:"TSStringKeyword"}}function sB(){return{type:"TSSymbolKeyword"}}function iB(){return{type:"TSUndefinedKeyword"}}function nB(){return{type:"TSUnknownKeyword"}}function aB(){return{type:"TSVoidKeyword"}}function oB(){return{type:"TSThisType"}}function lB(e=null,t,r=null){let s={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r},i=S.TSFunctionType;return c(i.typeParameters,s,"typeParameters",e,1),c(i.parameters,s,"parameters",t,1),c(i.typeAnnotation,s,"typeAnnotation",r,1),s}function uB(e=null,t,r=null){let s={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r},i=S.TSConstructorType;return c(i.typeParameters,s,"typeParameters",e,1),c(i.parameters,s,"parameters",t,1),c(i.typeAnnotation,s,"typeAnnotation",r,1),s}function cB(e,t=null){let r={type:"TSTypeReference",typeName:e,typeParameters:t},s=S.TSTypeReference;return c(s.typeName,r,"typeName",e,1),c(s.typeParameters,r,"typeParameters",t,1),r}function pB(e,t=null,r=null){let s={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},i=S.TSTypePredicate;return c(i.parameterName,s,"parameterName",e,1),c(i.typeAnnotation,s,"typeAnnotation",t,1),c(i.asserts,s,"asserts",r),s}function fB(e,t=null){let r={type:"TSTypeQuery",exprName:e,typeParameters:t},s=S.TSTypeQuery;return c(s.exprName,r,"exprName",e,1),c(s.typeParameters,r,"typeParameters",t,1),r}function hB(e){let t={type:"TSTypeLiteral",members:e},r=S.TSTypeLiteral;return c(r.members,t,"members",e,1),t}function dB(e){let t={type:"TSArrayType",elementType:e},r=S.TSArrayType;return c(r.elementType,t,"elementType",e,1),t}function mB(e){let t={type:"TSTupleType",elementTypes:e},r=S.TSTupleType;return c(r.elementTypes,t,"elementTypes",e,1),t}function yB(e){let t={type:"TSOptionalType",typeAnnotation:e},r=S.TSOptionalType;return c(r.typeAnnotation,t,"typeAnnotation",e,1),t}function TB(e){let t={type:"TSRestType",typeAnnotation:e},r=S.TSRestType;return c(r.typeAnnotation,t,"typeAnnotation",e,1),t}function xB(e,t,r=!1){let s={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},i=S.TSNamedTupleMember;return c(i.label,s,"label",e,1),c(i.elementType,s,"elementType",t,1),c(i.optional,s,"optional",r),s}function SB(e){let t={type:"TSUnionType",types:e},r=S.TSUnionType;return c(r.types,t,"types",e,1),t}function gB(e){let t={type:"TSIntersectionType",types:e},r=S.TSIntersectionType;return c(r.types,t,"types",e,1),t}function bB(e,t,r,s){let i={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:s},n=S.TSConditionalType;return c(n.checkType,i,"checkType",e,1),c(n.extendsType,i,"extendsType",t,1),c(n.trueType,i,"trueType",r,1),c(n.falseType,i,"falseType",s,1),i}function EB(e){let t={type:"TSInferType",typeParameter:e},r=S.TSInferType;return c(r.typeParameter,t,"typeParameter",e,1),t}function PB(e){let t={type:"TSParenthesizedType",typeAnnotation:e},r=S.TSParenthesizedType;return c(r.typeAnnotation,t,"typeAnnotation",e,1),t}function AB(e,t="keyof"){let r={type:"TSTypeOperator",typeAnnotation:e,operator:t},s=S.TSTypeOperator;return c(s.typeAnnotation,r,"typeAnnotation",e,1),c(s.operator,r,"operator",t),r}function vB(e,t){let r={type:"TSIndexedAccessType",objectType:e,indexType:t},s=S.TSIndexedAccessType;return c(s.objectType,r,"objectType",e,1),c(s.indexType,r,"indexType",t,1),r}function CB(e,t=null,r=null){let s={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r},i=S.TSMappedType;return c(i.typeParameter,s,"typeParameter",e,1),c(i.typeAnnotation,s,"typeAnnotation",t,1),c(i.nameType,s,"nameType",r,1),s}function IB(e,t){let r={type:"TSTemplateLiteralType",quasis:e,types:t},s=S.TSTemplateLiteralType;return c(s.quasis,r,"quasis",e,1),c(s.types,r,"types",t,1),r}function wB(e){let t={type:"TSLiteralType",literal:e},r=S.TSLiteralType;return c(r.literal,t,"literal",e,1),t}function NB(e,t=null){let r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},s=S.TSExpressionWithTypeArguments;return c(s.expression,r,"expression",e,1),c(s.typeParameters,r,"typeParameters",t,1),r}function OB(e,t=null,r=null,s){let i={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:s},n=S.TSInterfaceDeclaration;return c(n.id,i,"id",e,1),c(n.typeParameters,i,"typeParameters",t,1),c(n.extends,i,"extends",r,1),c(n.body,i,"body",s,1),i}function _B(e){let t={type:"TSInterfaceBody",body:e},r=S.TSInterfaceBody;return c(r.body,t,"body",e,1),t}function kB(e,t=null,r){let s={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},i=S.TSTypeAliasDeclaration;return c(i.id,s,"id",e,1),c(i.typeParameters,s,"typeParameters",t,1),c(i.typeAnnotation,s,"typeAnnotation",r,1),s}function DB(e,t=null){let r={type:"TSInstantiationExpression",expression:e,typeParameters:t},s=S.TSInstantiationExpression;return c(s.expression,r,"expression",e,1),c(s.typeParameters,r,"typeParameters",t,1),r}function LB(e,t){let r={type:"TSAsExpression",expression:e,typeAnnotation:t},s=S.TSAsExpression;return c(s.expression,r,"expression",e,1),c(s.typeAnnotation,r,"typeAnnotation",t,1),r}function MB(e,t){let r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},s=S.TSSatisfiesExpression;return c(s.expression,r,"expression",e,1),c(s.typeAnnotation,r,"typeAnnotation",t,1),r}function BB(e,t){let r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},s=S.TSTypeAssertion;return c(s.typeAnnotation,r,"typeAnnotation",e,1),c(s.expression,r,"expression",t,1),r}function FB(e){let t={type:"TSEnumBody",members:e},r=S.TSEnumBody;return c(r.members,t,"members",e,1),t}function jB(e,t){let r={type:"TSEnumDeclaration",id:e,members:t},s=S.TSEnumDeclaration;return c(s.id,r,"id",e,1),c(s.members,r,"members",t,1),r}function RB(e,t=null){let r={type:"TSEnumMember",id:e,initializer:t},s=S.TSEnumMember;return c(s.id,r,"id",e,1),c(s.initializer,r,"initializer",t,1),r}function qB(e,t){let r={type:"TSModuleDeclaration",id:e,body:t,kind:null},s=S.TSModuleDeclaration;return c(s.id,r,"id",e,1),c(s.body,r,"body",t,1),r}function UB(e){let t={type:"TSModuleBlock",body:e},r=S.TSModuleBlock;return c(r.body,t,"body",e,1),t}function KB(e,t=null,r=null){let s={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},i=S.TSImportType;return c(i.argument,s,"argument",e,1),c(i.qualifier,s,"qualifier",t,1),c(i.typeParameters,s,"typeParameters",r,1),s}function VB(e,t){let r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},s=S.TSImportEqualsDeclaration;return c(s.id,r,"id",e,1),c(s.moduleReference,r,"moduleReference",t,1),r}function YB(e){let t={type:"TSExternalModuleReference",expression:e},r=S.TSExternalModuleReference;return c(r.expression,t,"expression",e,1),t}function JB(e){let t={type:"TSNonNullExpression",expression:e},r=S.TSNonNullExpression;return c(r.expression,t,"expression",e,1),t}function WB(e){let t={type:"TSExportAssignment",expression:e},r=S.TSExportAssignment;return c(r.expression,t,"expression",e,1),t}function XB(e){let t={type:"TSNamespaceExportDeclaration",id:e},r=S.TSNamespaceExportDeclaration;return c(r.id,t,"id",e,1),t}function $B(e){let t={type:"TSTypeAnnotation",typeAnnotation:e},r=S.TSTypeAnnotation;return c(r.typeAnnotation,t,"typeAnnotation",e,1),t}function HB(e){let t={type:"TSTypeParameterInstantiation",params:e},r=S.TSTypeParameterInstantiation;return c(r.params,t,"params",e,1),t}function zB(e){let t={type:"TSTypeParameterDeclaration",params:e},r=S.TSTypeParameterDeclaration;return c(r.params,t,"params",e,1),t}function GB(e=null,t=null,r){let s={type:"TSTypeParameter",constraint:e,default:t,name:r},i=S.TSTypeParameter;return c(i.constraint,s,"constraint",e,1),c(i.default,s,"default",t,1),c(i.name,s,"name",r),s}function QB(e){return(0,fi.default)("NumberLiteral","NumericLiteral","The node type "),Vc(e)}function ZB(e,t=""){return(0,fi.default)("RegexLiteral","RegExpLiteral","The node type "),Yc(e,t)}function eF(e){return(0,fi.default)("RestProperty","RestElement","The node type "),Jc(e)}function tF(e){return(0,fi.default)("SpreadProperty","SpreadElement","The node type "),Wc(e)}});var Qc=A(function($c){Object.defineProperty($c,"__esModule",{value:!0});$c.JSXIdentifier=$c.JSXFragment=$c.JSXExpressionContainer=$c.JSXEmptyExpression=$c.JSXElement=$c.JSXClosingFragment=$c.JSXClosingElement=$c.JSXAttribute=$c.IntersectionTypeAnnotation=$c.InterpreterDirective=$c.InterfaceTypeAnnotation=$c.InterfaceExtends=$c.InterfaceDeclaration=$c.InferredPredicate=$c.IndexedAccessType=$c.ImportSpecifier=$c.ImportNamespaceSpecifier=$c.ImportExpression=$c.ImportDefaultSpecifier=$c.ImportDeclaration=$c.ImportAttribute=$c.Import=$c.IfStatement=$c.Identifier=$c.GenericTypeAnnotation=$c.FunctionTypeParam=$c.FunctionTypeAnnotation=$c.FunctionExpression=$c.FunctionDeclaration=$c.ForStatement=$c.ForOfStatement=$c.ForInStatement=$c.File=$c.ExpressionStatement=$c.ExportSpecifier=$c.ExportNamespaceSpecifier=$c.ExportNamedDeclaration=$c.ExportDefaultSpecifier=$c.ExportDefaultDeclaration=$c.ExportAllDeclaration=$c.ExistsTypeAnnotation=$c.EnumSymbolBody=$c.EnumStringMember=$c.EnumStringBody=$c.EnumNumberMember=$c.EnumNumberBody=$c.EnumDefaultedMember=$c.EnumDeclaration=$c.EnumBooleanMember=$c.EnumBooleanBody=$c.EmptyTypeAnnotation=$c.EmptyStatement=$c.DoWhileStatement=$c.DoExpression=$c.DirectiveLiteral=$c.Directive=$c.Decorator=$c.DeclaredPredicate=$c.DeclareVariable=$c.DeclareTypeAlias=$c.DeclareOpaqueType=$c.DeclareModuleExports=$c.DeclareModule=$c.DeclareInterface=$c.DeclareFunction=$c.DeclareExportDeclaration=$c.DeclareExportAllDeclaration=$c.DeclareClass=$c.DecimalLiteral=$c.DebuggerStatement=$c.ContinueStatement=$c.ConditionalExpression=$c.ClassProperty=$c.ClassPrivateProperty=$c.ClassPrivateMethod=$c.ClassMethod=$c.ClassImplements=$c.ClassExpression=$c.ClassDeclaration=$c.ClassBody=$c.ClassAccessorProperty=$c.CatchClause=$c.CallExpression=$c.BreakStatement=$c.BooleanTypeAnnotation=$c.BooleanLiteralTypeAnnotation=$c.BooleanLiteral=$c.BlockStatement=$c.BindExpression=$c.BinaryExpression=$c.BigIntLiteral=$c.AwaitExpression=$c.AssignmentPattern=$c.AssignmentExpression=$c.ArrowFunctionExpression=$c.ArrayTypeAnnotation=$c.ArrayPattern=$c.ArrayExpression=$c.ArgumentPlaceholder=$c.AnyTypeAnnotation=void 0;$c.TSNumberKeyword=$c.TSNullKeyword=$c.TSNonNullExpression=$c.TSNeverKeyword=$c.TSNamespaceExportDeclaration=$c.TSNamedTupleMember=$c.TSModuleDeclaration=$c.TSModuleBlock=$c.TSMethodSignature=$c.TSMappedType=$c.TSLiteralType=$c.TSIntrinsicKeyword=$c.TSIntersectionType=$c.TSInterfaceDeclaration=$c.TSInterfaceBody=$c.TSInstantiationExpression=$c.TSInferType=$c.TSIndexedAccessType=$c.TSIndexSignature=$c.TSImportType=$c.TSImportEqualsDeclaration=$c.TSFunctionType=$c.TSExternalModuleReference=$c.TSExpressionWithTypeArguments=$c.TSExportAssignment=$c.TSEnumMember=$c.TSEnumDeclaration=$c.TSEnumBody=$c.TSDeclareMethod=$c.TSDeclareFunction=$c.TSConstructorType=$c.TSConstructSignatureDeclaration=$c.TSConditionalType=$c.TSCallSignatureDeclaration=$c.TSBooleanKeyword=$c.TSBigIntKeyword=$c.TSAsExpression=$c.TSArrayType=$c.TSAnyKeyword=$c.SymbolTypeAnnotation=$c.SwitchStatement=$c.SwitchCase=$c.Super=$c.StringTypeAnnotation=$c.StringLiteralTypeAnnotation=$c.StringLiteral=$c.StaticBlock=$c.SpreadProperty=$c.SpreadElement=$c.SequenceExpression=$c.ReturnStatement=$c.RestProperty=$c.RestElement=$c.RegexLiteral=$c.RegExpLiteral=$c.RecordExpression=$c.QualifiedTypeIdentifier=$c.Program=$c.PrivateName=$c.Placeholder=$c.PipelineTopicExpression=$c.PipelinePrimaryTopicReference=$c.PipelineBareFunction=$c.ParenthesizedExpression=$c.OptionalMemberExpression=$c.OptionalIndexedAccessType=$c.OptionalCallExpression=$c.OpaqueType=$c.ObjectTypeSpreadProperty=$c.ObjectTypeProperty=$c.ObjectTypeInternalSlot=$c.ObjectTypeIndexer=$c.ObjectTypeCallProperty=$c.ObjectTypeAnnotation=$c.ObjectProperty=$c.ObjectPattern=$c.ObjectMethod=$c.ObjectExpression=$c.NumericLiteral=$c.NumberTypeAnnotation=$c.NumberLiteralTypeAnnotation=$c.NumberLiteral=$c.NullableTypeAnnotation=$c.NullLiteralTypeAnnotation=$c.NullLiteral=$c.Noop=$c.NewExpression=$c.ModuleExpression=$c.MixedTypeAnnotation=$c.MetaProperty=$c.MemberExpression=$c.LogicalExpression=$c.LabeledStatement=$c.JSXText=$c.JSXSpreadChild=$c.JSXSpreadAttribute=$c.JSXOpeningFragment=$c.JSXOpeningElement=$c.JSXNamespacedName=$c.JSXMemberExpression=void 0;$c.YieldExpression=$c.WithStatement=$c.WhileStatement=$c.VoidTypeAnnotation=$c.VoidPattern=$c.Variance=$c.VariableDeclarator=$c.VariableDeclaration=$c.V8IntrinsicIdentifier=$c.UpdateExpression=$c.UnionTypeAnnotation=$c.UnaryExpression=$c.TypeofTypeAnnotation=$c.TypeParameterInstantiation=$c.TypeParameterDeclaration=$c.TypeParameter=$c.TypeCastExpression=$c.TypeAnnotation=$c.TypeAlias=$c.TupleTypeAnnotation=$c.TupleExpression=$c.TryStatement=$c.TopicReference=$c.ThrowStatement=$c.ThisTypeAnnotation=$c.ThisExpression=$c.TemplateLiteral=$c.TemplateElement=$c.TaggedTemplateExpression=$c.TSVoidKeyword=$c.TSUnknownKeyword=$c.TSUnionType=$c.TSUndefinedKeyword=$c.TSTypeReference=$c.TSTypeQuery=$c.TSTypePredicate=$c.TSTypeParameterInstantiation=$c.TSTypeParameterDeclaration=$c.TSTypeParameter=$c.TSTypeOperator=$c.TSTypeLiteral=$c.TSTypeAssertion=$c.TSTypeAnnotation=$c.TSTypeAliasDeclaration=$c.TSTupleType=$c.TSThisType=$c.TSTemplateLiteralType=$c.TSSymbolKeyword=$c.TSStringKeyword=$c.TSSatisfiesExpression=$c.TSRestType=$c.TSQualifiedName=$c.TSPropertySignature=$c.TSParenthesizedType=$c.TSParameterProperty=$c.TSOptionalType=$c.TSObjectKeyword=void 0;var Ts=ra(),pIe=Lr();function y(e){return Ts[e]}var fIe=$c.ArrayExpression=y("arrayExpression"),hIe=$c.AssignmentExpression=y("assignmentExpression"),dIe=$c.BinaryExpression=y("binaryExpression"),mIe=$c.InterpreterDirective=y("interpreterDirective"),yIe=$c.Directive=y("directive"),TIe=$c.DirectiveLiteral=y("directiveLiteral"),xIe=$c.BlockStatement=y("blockStatement"),SIe=$c.BreakStatement=y("breakStatement"),gIe=$c.CallExpression=y("callExpression"),bIe=$c.CatchClause=y("catchClause"),EIe=$c.ConditionalExpression=y("conditionalExpression"),PIe=$c.ContinueStatement=y("continueStatement"),AIe=$c.DebuggerStatement=y("debuggerStatement"),vIe=$c.DoWhileStatement=y("doWhileStatement"),CIe=$c.EmptyStatement=y("emptyStatement"),IIe=$c.ExpressionStatement=y("expressionStatement"),wIe=$c.File=y("file"),NIe=$c.ForInStatement=y("forInStatement"),OIe=$c.ForStatement=y("forStatement"),_Ie=$c.FunctionDeclaration=y("functionDeclaration"),kIe=$c.FunctionExpression=y("functionExpression"),DIe=$c.Identifier=y("identifier"),LIe=$c.IfStatement=y("ifStatement"),MIe=$c.LabeledStatement=y("labeledStatement"),BIe=$c.StringLiteral=y("stringLiteral"),FIe=$c.NumericLiteral=y("numericLiteral"),jIe=$c.NullLiteral=y("nullLiteral"),RIe=$c.BooleanLiteral=y("booleanLiteral"),qIe=$c.RegExpLiteral=y("regExpLiteral"),UIe=$c.LogicalExpression=y("logicalExpression"),KIe=$c.MemberExpression=y("memberExpression"),VIe=$c.NewExpression=y("newExpression"),YIe=$c.Program=y("program"),JIe=$c.ObjectExpression=y("objectExpression"),WIe=$c.ObjectMethod=y("objectMethod"),XIe=$c.ObjectProperty=y("objectProperty"),$Ie=$c.RestElement=y("restElement"),HIe=$c.ReturnStatement=y("returnStatement"),zIe=$c.SequenceExpression=y("sequenceExpression"),GIe=$c.ParenthesizedExpression=y("parenthesizedExpression"),QIe=$c.SwitchCase=y("switchCase"),ZIe=$c.SwitchStatement=y("switchStatement"),ewe=$c.ThisExpression=y("thisExpression"),twe=$c.ThrowStatement=y("throwStatement"),rwe=$c.TryStatement=y("tryStatement"),swe=$c.UnaryExpression=y("unaryExpression"),iwe=$c.UpdateExpression=y("updateExpression"),nwe=$c.VariableDeclaration=y("variableDeclaration"),awe=$c.VariableDeclarator=y("variableDeclarator"),owe=$c.WhileStatement=y("whileStatement"),lwe=$c.WithStatement=y("withStatement"),uwe=$c.AssignmentPattern=y("assignmentPattern"),cwe=$c.ArrayPattern=y("arrayPattern"),pwe=$c.ArrowFunctionExpression=y("arrowFunctionExpression"),fwe=$c.ClassBody=y("classBody"),hwe=$c.ClassExpression=y("classExpression"),dwe=$c.ClassDeclaration=y("classDeclaration"),mwe=$c.ExportAllDeclaration=y("exportAllDeclaration"),ywe=$c.ExportDefaultDeclaration=y("exportDefaultDeclaration"),Twe=$c.ExportNamedDeclaration=y("exportNamedDeclaration"),xwe=$c.ExportSpecifier=y("exportSpecifier"),Swe=$c.ForOfStatement=y("forOfStatement"),gwe=$c.ImportDeclaration=y("importDeclaration"),bwe=$c.ImportDefaultSpecifier=y("importDefaultSpecifier"),Ewe=$c.ImportNamespaceSpecifier=y("importNamespaceSpecifier"),Pwe=$c.ImportSpecifier=y("importSpecifier"),Awe=$c.ImportExpression=y("importExpression"),vwe=$c.MetaProperty=y("metaProperty"),Cwe=$c.ClassMethod=y("classMethod"),Iwe=$c.ObjectPattern=y("objectPattern"),wwe=$c.SpreadElement=y("spreadElement"),Nwe=$c.Super=y("super"),Owe=$c.TaggedTemplateExpression=y("taggedTemplateExpression"),_we=$c.TemplateElement=y("templateElement"),kwe=$c.TemplateLiteral=y("templateLiteral"),Dwe=$c.YieldExpression=y("yieldExpression"),Lwe=$c.AwaitExpression=y("awaitExpression"),Mwe=$c.Import=y("import"),Bwe=$c.BigIntLiteral=y("bigIntLiteral"),Fwe=$c.ExportNamespaceSpecifier=y("exportNamespaceSpecifier"),jwe=$c.OptionalMemberExpression=y("optionalMemberExpression"),Rwe=$c.OptionalCallExpression=y("optionalCallExpression"),qwe=$c.ClassProperty=y("classProperty"),Uwe=$c.ClassAccessorProperty=y("classAccessorProperty"),Kwe=$c.ClassPrivateProperty=y("classPrivateProperty"),Vwe=$c.ClassPrivateMethod=y("classPrivateMethod"),Ywe=$c.PrivateName=y("privateName"),Jwe=$c.StaticBlock=y("staticBlock"),Wwe=$c.ImportAttribute=y("importAttribute"),Xwe=$c.AnyTypeAnnotation=y("anyTypeAnnotation"),$we=$c.ArrayTypeAnnotation=y("arrayTypeAnnotation"),Hwe=$c.BooleanTypeAnnotation=y("booleanTypeAnnotation"),zwe=$c.BooleanLiteralTypeAnnotation=y("booleanLiteralTypeAnnotation"),Gwe=$c.NullLiteralTypeAnnotation=y("nullLiteralTypeAnnotation"),Qwe=$c.ClassImplements=y("classImplements"),Zwe=$c.DeclareClass=y("declareClass"),eNe=$c.DeclareFunction=y("declareFunction"),tNe=$c.DeclareInterface=y("declareInterface"),rNe=$c.DeclareModule=y("declareModule"),sNe=$c.DeclareModuleExports=y("declareModuleExports"),iNe=$c.DeclareTypeAlias=y("declareTypeAlias"),nNe=$c.DeclareOpaqueType=y("declareOpaqueType"),aNe=$c.DeclareVariable=y("declareVariable"),oNe=$c.DeclareExportDeclaration=y("declareExportDeclaration"),lNe=$c.DeclareExportAllDeclaration=y("declareExportAllDeclaration"),uNe=$c.DeclaredPredicate=y("declaredPredicate"),cNe=$c.ExistsTypeAnnotation=y("existsTypeAnnotation"),pNe=$c.FunctionTypeAnnotation=y("functionTypeAnnotation"),fNe=$c.FunctionTypeParam=y("functionTypeParam"),hNe=$c.GenericTypeAnnotation=y("genericTypeAnnotation"),dNe=$c.InferredPredicate=y("inferredPredicate"),mNe=$c.InterfaceExtends=y("interfaceExtends"),yNe=$c.InterfaceDeclaration=y("interfaceDeclaration"),TNe=$c.InterfaceTypeAnnotation=y("interfaceTypeAnnotation"),xNe=$c.IntersectionTypeAnnotation=y("intersectionTypeAnnotation"),SNe=$c.MixedTypeAnnotation=y("mixedTypeAnnotation"),gNe=$c.EmptyTypeAnnotation=y("emptyTypeAnnotation"),bNe=$c.NullableTypeAnnotation=y("nullableTypeAnnotation"),ENe=$c.NumberLiteralTypeAnnotation=y("numberLiteralTypeAnnotation"),PNe=$c.NumberTypeAnnotation=y("numberTypeAnnotation"),ANe=$c.ObjectTypeAnnotation=y("objectTypeAnnotation"),vNe=$c.ObjectTypeInternalSlot=y("objectTypeInternalSlot"),CNe=$c.ObjectTypeCallProperty=y("objectTypeCallProperty"),INe=$c.ObjectTypeIndexer=y("objectTypeIndexer"),wNe=$c.ObjectTypeProperty=y("objectTypeProperty"),NNe=$c.ObjectTypeSpreadProperty=y("objectTypeSpreadProperty"),ONe=$c.OpaqueType=y("opaqueType"),_Ne=$c.QualifiedTypeIdentifier=y("qualifiedTypeIdentifier"),kNe=$c.StringLiteralTypeAnnotation=y("stringLiteralTypeAnnotation"),DNe=$c.StringTypeAnnotation=y("stringTypeAnnotation"),LNe=$c.SymbolTypeAnnotation=y("symbolTypeAnnotation"),MNe=$c.ThisTypeAnnotation=y("thisTypeAnnotation"),BNe=$c.TupleTypeAnnotation=y("tupleTypeAnnotation"),FNe=$c.TypeofTypeAnnotation=y("typeofTypeAnnotation"),jNe=$c.TypeAlias=y("typeAlias"),RNe=$c.TypeAnnotation=y("typeAnnotation"),qNe=$c.TypeCastExpression=y("typeCastExpression"),UNe=$c.TypeParameter=y("typeParameter"),KNe=$c.TypeParameterDeclaration=y("typeParameterDeclaration"),VNe=$c.TypeParameterInstantiation=y("typeParameterInstantiation"),YNe=$c.UnionTypeAnnotation=y("unionTypeAnnotation"),JNe=$c.Variance=y("variance"),WNe=$c.VoidTypeAnnotation=y("voidTypeAnnotation"),XNe=$c.EnumDeclaration=y("enumDeclaration"),$Ne=$c.EnumBooleanBody=y("enumBooleanBody"),HNe=$c.EnumNumberBody=y("enumNumberBody"),zNe=$c.EnumStringBody=y("enumStringBody"),GNe=$c.EnumSymbolBody=y("enumSymbolBody"),QNe=$c.EnumBooleanMember=y("enumBooleanMember"),ZNe=$c.EnumNumberMember=y("enumNumberMember"),eOe=$c.EnumStringMember=y("enumStringMember"),tOe=$c.EnumDefaultedMember=y("enumDefaultedMember"),rOe=$c.IndexedAccessType=y("indexedAccessType"),sOe=$c.OptionalIndexedAccessType=y("optionalIndexedAccessType"),iOe=$c.JSXAttribute=y("jsxAttribute"),nOe=$c.JSXClosingElement=y("jsxClosingElement"),aOe=$c.JSXElement=y("jsxElement"),oOe=$c.JSXEmptyExpression=y("jsxEmptyExpression"),lOe=$c.JSXExpressionContainer=y("jsxExpressionContainer"),uOe=$c.JSXSpreadChild=y("jsxSpreadChild"),cOe=$c.JSXIdentifier=y("jsxIdentifier"),pOe=$c.JSXMemberExpression=y("jsxMemberExpression"),fOe=$c.JSXNamespacedName=y("jsxNamespacedName"),hOe=$c.JSXOpeningElement=y("jsxOpeningElement"),dOe=$c.JSXSpreadAttribute=y("jsxSpreadAttribute"),mOe=$c.JSXText=y("jsxText"),yOe=$c.JSXFragment=y("jsxFragment"),TOe=$c.JSXOpeningFragment=y("jsxOpeningFragment"),xOe=$c.JSXClosingFragment=y("jsxClosingFragment"),SOe=$c.Noop=y("noop"),gOe=$c.Placeholder=y("placeholder"),bOe=$c.V8IntrinsicIdentifier=y("v8IntrinsicIdentifier"),EOe=$c.ArgumentPlaceholder=y("argumentPlaceholder"),POe=$c.BindExpression=y("bindExpression"),AOe=$c.Decorator=y("decorator"),vOe=$c.DoExpression=y("doExpression"),COe=$c.ExportDefaultSpecifier=y("exportDefaultSpecifier"),IOe=$c.RecordExpression=y("recordExpression"),wOe=$c.TupleExpression=y("tupleExpression"),NOe=$c.DecimalLiteral=y("decimalLiteral"),OOe=$c.ModuleExpression=y("moduleExpression"),_Oe=$c.TopicReference=y("topicReference"),kOe=$c.PipelineTopicExpression=y("pipelineTopicExpression"),DOe=$c.PipelineBareFunction=y("pipelineBareFunction"),LOe=$c.PipelinePrimaryTopicReference=y("pipelinePrimaryTopicReference"),MOe=$c.VoidPattern=y("voidPattern"),BOe=$c.TSParameterProperty=y("tsParameterProperty"),FOe=$c.TSDeclareFunction=y("tsDeclareFunction"),jOe=$c.TSDeclareMethod=y("tsDeclareMethod"),ROe=$c.TSQualifiedName=y("tsQualifiedName"),qOe=$c.TSCallSignatureDeclaration=y("tsCallSignatureDeclaration"),UOe=$c.TSConstructSignatureDeclaration=y("tsConstructSignatureDeclaration"),KOe=$c.TSPropertySignature=y("tsPropertySignature"),VOe=$c.TSMethodSignature=y("tsMethodSignature"),YOe=$c.TSIndexSignature=y("tsIndexSignature"),JOe=$c.TSAnyKeyword=y("tsAnyKeyword"),WOe=$c.TSBooleanKeyword=y("tsBooleanKeyword"),XOe=$c.TSBigIntKeyword=y("tsBigIntKeyword"),$Oe=$c.TSIntrinsicKeyword=y("tsIntrinsicKeyword"),HOe=$c.TSNeverKeyword=y("tsNeverKeyword"),zOe=$c.TSNullKeyword=y("tsNullKeyword"),GOe=$c.TSNumberKeyword=y("tsNumberKeyword"),QOe=$c.TSObjectKeyword=y("tsObjectKeyword"),ZOe=$c.TSStringKeyword=y("tsStringKeyword"),e_e=$c.TSSymbolKeyword=y("tsSymbolKeyword"),t_e=$c.TSUndefinedKeyword=y("tsUndefinedKeyword"),r_e=$c.TSUnknownKeyword=y("tsUnknownKeyword"),s_e=$c.TSVoidKeyword=y("tsVoidKeyword"),i_e=$c.TSThisType=y("tsThisType"),n_e=$c.TSFunctionType=y("tsFunctionType"),a_e=$c.TSConstructorType=y("tsConstructorType"),o_e=$c.TSTypeReference=y("tsTypeReference"),l_e=$c.TSTypePredicate=y("tsTypePredicate"),u_e=$c.TSTypeQuery=y("tsTypeQuery"),c_e=$c.TSTypeLiteral=y("tsTypeLiteral"),p_e=$c.TSArrayType=y("tsArrayType"),f_e=$c.TSTupleType=y("tsTupleType"),h_e=$c.TSOptionalType=y("tsOptionalType"),d_e=$c.TSRestType=y("tsRestType"),m_e=$c.TSNamedTupleMember=y("tsNamedTupleMember"),y_e=$c.TSUnionType=y("tsUnionType"),T_e=$c.TSIntersectionType=y("tsIntersectionType"),x_e=$c.TSConditionalType=y("tsConditionalType"),S_e=$c.TSInferType=y("tsInferType"),g_e=$c.TSParenthesizedType=y("tsParenthesizedType"),b_e=$c.TSTypeOperator=y("tsTypeOperator"),E_e=$c.TSIndexedAccessType=y("tsIndexedAccessType"),P_e=$c.TSMappedType=y("tsMappedType"),A_e=$c.TSTemplateLiteralType=y("tsTemplateLiteralType"),v_e=$c.TSLiteralType=y("tsLiteralType"),C_e=$c.TSExpressionWithTypeArguments=y("tsExpressionWithTypeArguments"),I_e=$c.TSInterfaceDeclaration=y("tsInterfaceDeclaration"),w_e=$c.TSInterfaceBody=y("tsInterfaceBody"),N_e=$c.TSTypeAliasDeclaration=y("tsTypeAliasDeclaration"),O_e=$c.TSInstantiationExpression=y("tsInstantiationExpression"),__e=$c.TSAsExpression=y("tsAsExpression"),k_e=$c.TSSatisfiesExpression=y("tsSatisfiesExpression"),D_e=$c.TSTypeAssertion=y("tsTypeAssertion"),L_e=$c.TSEnumBody=y("tsEnumBody"),M_e=$c.TSEnumDeclaration=y("tsEnumDeclaration"),B_e=$c.TSEnumMember=y("tsEnumMember"),F_e=$c.TSModuleDeclaration=y("tsModuleDeclaration"),j_e=$c.TSModuleBlock=y("tsModuleBlock"),R_e=$c.TSImportType=y("tsImportType"),q_e=$c.TSImportEqualsDeclaration=y("tsImportEqualsDeclaration"),U_e=$c.TSExternalModuleReference=y("tsExternalModuleReference"),K_e=$c.TSNonNullExpression=y("tsNonNullExpression"),V_e=$c.TSExportAssignment=y("tsExportAssignment"),Y_e=$c.TSNamespaceExportDeclaration=y("tsNamespaceExportDeclaration"),J_e=$c.TSTypeAnnotation=y("tsTypeAnnotation"),W_e=$c.TSTypeParameterInstantiation=y("tsTypeParameterInstantiation"),X_e=$c.TSTypeParameterDeclaration=y("tsTypeParameterDeclaration"),$_e=$c.TSTypeParameter=y("tsTypeParameter"),H_e=$c.NumberLiteral=Ts.numberLiteral,z_e=$c.RegexLiteral=Ts.regexLiteral,G_e=$c.RestProperty=Ts.restProperty,Q_e=$c.SpreadProperty=Ts.spreadProperty});var rt=A(function(Gt){Object.defineProperty(Gt,"__esModule",{value:!0});var sa=ra();Object.keys(sa).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in Gt&&Gt[e]===sa[e])return;Object.defineProperty(Gt,e,{enumerable:!0,get:function(){return sa[e]}})});var ia=Qc();Object.keys(ia).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in Gt&&Gt[e]===ia[e])return;Object.defineProperty(Gt,e,{enumerable:!0,get:function(){return ia[e]}})})});var ep=A(function(Zc){Object.defineProperty(Zc,"__esModule",{value:!0});Zc.default=N7;var I7=rt(),w7=ae();function N7(e,t){let r=e.value.split(/\r\n|\n|\r/),s=0;for(let n=0;n<r.length;n++)if(/[^ \t]/.exec(r[n]))s=n;let i="";for(let n=0;n<r.length;n++){let a=r[n],o=n===0,l=n===r.length-1,u=n===s,p=a.replace(/\t/g," ");if(!o)p=p.replace(/^ +/,"");if(!l)p=p.replace(/ +$/,"");if(p){if(!u)p+=" ";i+=p}}if(i)t.push((0,w7.inherits)((0,I7.stringLiteral)(i),e))}});var rp=A(function(tp){Object.defineProperty(tp,"__esModule",{value:!0});tp.default=k7;var na=Le(),_7=ep();function k7(e){let t=[];for(let r=0;r<e.children.length;r++){let s=e.children[r];if((0,na.isJSXText)(s)){(0,_7.default)(s,t);continue}if((0,na.isJSXExpressionContainer)(s))s=s.expression;if((0,na.isJSXEmptyExpression)(s))continue;t.push(s)}return t}});var aa=A(function(sp){Object.defineProperty(sp,"__esModule",{value:!0});sp.default=M7;var L7=ut();function M7(e){return!!(e&&L7.VISITOR_KEYS[e.type])}});var np=A(function(ip){Object.defineProperty(ip,"__esModule",{value:!0});ip.default=j7;var F7=aa();function j7(e){if(!(0,F7.default)(e)){var t;let r=(t=e==null?void 0:e.type)!=null?t:JSON.stringify(e);throw TypeError(`Not a valid node of type "${r}"`)}}});var op=A(function(ap){Object.defineProperty(ap,"__esModule",{value:!0});ap.assertAccessor=nJ;ap.assertAnyTypeAnnotation=EU;ap.assertArgumentPlaceholder=GK;ap.assertArrayExpression=U7;ap.assertArrayPattern=Rq;ap.assertArrayTypeAnnotation=PU;ap.assertArrowFunctionExpression=qq;ap.assertAssignmentExpression=K7;ap.assertAssignmentPattern=jq;ap.assertAwaitExpression=uU;ap.assertBigIntLiteral=pU;ap.assertBinary=CY;ap.assertBinaryExpression=V7;ap.assertBindExpression=QK;ap.assertBlock=NY;ap.assertBlockParent=wY;ap.assertBlockStatement=X7;ap.assertBooleanLiteral=dq;ap.assertBooleanLiteralTypeAnnotation=vU;ap.assertBooleanTypeAnnotation=AU;ap.assertBreakStatement=$7;ap.assertCallExpression=H7;ap.assertCatchClause=z7;ap.assertClass=tJ;ap.assertClassAccessorProperty=yU;ap.assertClassBody=Uq;ap.assertClassDeclaration=Vq;ap.assertClassExpression=Kq;ap.assertClassImplements=IU;ap.assertClassMethod=tU;ap.assertClassPrivateMethod=xU;ap.assertClassPrivateProperty=TU;ap.assertClassProperty=mU;ap.assertCompletionStatement=kY;ap.assertConditional=DY;ap.assertConditionalExpression=G7;ap.assertContinueStatement=Q7;ap.assertDebuggerStatement=Z7;ap.assertDecimalLiteral=iV;ap.assertDeclaration=KY;ap.assertDeclareClass=wU;ap.assertDeclareExportAllDeclaration=FU;ap.assertDeclareExportDeclaration=BU;ap.assertDeclareFunction=NU;ap.assertDeclareInterface=OU;ap.assertDeclareModule=_U;ap.assertDeclareModuleExports=kU;ap.assertDeclareOpaqueType=LU;ap.assertDeclareTypeAlias=DU;ap.assertDeclareVariable=MU;ap.assertDeclaredPredicate=jU;ap.assertDecorator=ZK;ap.assertDirective=J7;ap.assertDirectiveLiteral=W7;ap.assertDoExpression=eV;ap.assertDoWhileStatement=eq;ap.assertEmptyStatement=tq;ap.assertEmptyTypeAnnotation=HU;ap.assertEnumBody=fJ;ap.assertEnumBooleanBody=PK;ap.assertEnumBooleanMember=IK;ap.assertEnumDeclaration=EK;ap.assertEnumDefaultedMember=OK;ap.assertEnumMember=hJ;ap.assertEnumNumberBody=AK;ap.assertEnumNumberMember=wK;ap.assertEnumStringBody=vK;ap.assertEnumStringMember=NK;ap.assertEnumSymbolBody=CK;ap.assertExistsTypeAnnotation=RU;ap.assertExportAllDeclaration=Yq;ap.assertExportDeclaration=sJ;ap.assertExportDefaultDeclaration=Jq;ap.assertExportDefaultSpecifier=tV;ap.assertExportNamedDeclaration=Wq;ap.assertExportNamespaceSpecifier=fU;ap.assertExportSpecifier=Xq;ap.assertExpression=vY;ap.assertExpressionStatement=rq;ap.assertExpressionWrapper=BY;ap.assertFile=sq;ap.assertFlow=oJ;ap.assertFlowBaseAnnotation=uJ;ap.assertFlowDeclaration=cJ;ap.assertFlowPredicate=pJ;ap.assertFlowType=lJ;ap.assertFor=FY;ap.assertForInStatement=iq;ap.assertForOfStatement=$q;ap.assertForStatement=nq;ap.assertForXStatement=jY;ap.assertFunction=RY;ap.assertFunctionDeclaration=aq;ap.assertFunctionExpression=oq;ap.assertFunctionParameter=VY;ap.assertFunctionParent=qY;ap.assertFunctionTypeAnnotation=qU;ap.assertFunctionTypeParam=UU;ap.assertGenericTypeAnnotation=KU;ap.assertIdentifier=lq;ap.assertIfStatement=uq;ap.assertImmutable=$Y;ap.assertImport=cU;ap.assertImportAttribute=bU;ap.assertImportDeclaration=Hq;ap.assertImportDefaultSpecifier=zq;ap.assertImportExpression=Zq;ap.assertImportNamespaceSpecifier=Gq;ap.assertImportOrExportDeclaration=rJ;ap.assertImportSpecifier=Qq;ap.assertIndexedAccessType=_K;ap.assertInferredPredicate=VU;ap.assertInterfaceDeclaration=JU;ap.assertInterfaceExtends=YU;ap.assertInterfaceTypeAnnotation=WU;ap.assertInterpreterDirective=Y7;ap.assertIntersectionTypeAnnotation=XU;ap.assertJSX=dJ;ap.assertJSXAttribute=DK;ap.assertJSXClosingElement=LK;ap.assertJSXClosingFragment=XK;ap.assertJSXElement=MK;ap.assertJSXEmptyExpression=BK;ap.assertJSXExpressionContainer=FK;ap.assertJSXFragment=JK;ap.assertJSXIdentifier=RK;ap.assertJSXMemberExpression=qK;ap.assertJSXNamespacedName=UK;ap.assertJSXOpeningElement=KK;ap.assertJSXOpeningFragment=WK;ap.assertJSXSpreadAttribute=VK;ap.assertJSXSpreadChild=jK;ap.assertJSXText=YK;ap.assertLVal=JY;ap.assertLabeledStatement=cq;ap.assertLiteral=XY;ap.assertLogicalExpression=yq;ap.assertLoop=LY;ap.assertMemberExpression=Tq;ap.assertMetaProperty=eU;ap.assertMethod=zY;ap.assertMiscellaneous=mJ;ap.assertMixedTypeAnnotation=$U;ap.assertModuleDeclaration=AJ;ap.assertModuleExpression=nV;ap.assertModuleSpecifier=iJ;ap.assertNewExpression=xq;ap.assertNoop=$K;ap.assertNullLiteral=hq;ap.assertNullLiteralTypeAnnotation=CU;ap.assertNullableTypeAnnotation=zU;ap.assertNumberLiteral=gJ;ap.assertNumberLiteralTypeAnnotation=GU;ap.assertNumberTypeAnnotation=QU;ap.assertNumericLiteral=fq;ap.assertObjectExpression=gq;ap.assertObjectMember=GY;ap.assertObjectMethod=bq;ap.assertObjectPattern=rU;ap.assertObjectProperty=Eq;ap.assertObjectTypeAnnotation=ZU;ap.assertObjectTypeCallProperty=tK;ap.assertObjectTypeIndexer=rK;ap.assertObjectTypeInternalSlot=eK;ap.assertObjectTypeProperty=sK;ap.assertObjectTypeSpreadProperty=iK;ap.assertOpaqueType=nK;ap.assertOptionalCallExpression=dU;ap.assertOptionalIndexedAccessType=kK;ap.assertOptionalMemberExpression=hU;ap.assertParenthesizedExpression=Cq;ap.assertPattern=eJ;ap.assertPatternLike=YY;ap.assertPipelineBareFunction=lV;ap.assertPipelinePrimaryTopicReference=uV;ap.assertPipelineTopicExpression=oV;ap.assertPlaceholder=HK;ap.assertPrivate=aJ;ap.assertPrivateName=SU;ap.assertProgram=Sq;ap.assertProperty=QY;ap.assertPureish=UY;ap.assertQualifiedTypeIdentifier=aK;ap.assertRecordExpression=rV;ap.assertRegExpLiteral=mq;ap.assertRegexLiteral=bJ;ap.assertRestElement=Pq;ap.assertRestProperty=EJ;ap.assertReturnStatement=Aq;ap.assertScopable=IY;ap.assertSequenceExpression=vq;ap.assertSpreadElement=sU;ap.assertSpreadProperty=PJ;ap.assertStandardized=AY;ap.assertStatement=OY;ap.assertStaticBlock=gU;ap.assertStringLiteral=pq;ap.assertStringLiteralTypeAnnotation=oK;ap.assertStringTypeAnnotation=lK;ap.assertSuper=iU;ap.assertSwitchCase=Iq;ap.assertSwitchStatement=wq;ap.assertSymbolTypeAnnotation=uK;ap.assertTSAnyKeyword=gV;ap.assertTSArrayType=qV;ap.assertTSAsExpression=aY;ap.assertTSBaseType=SJ;ap.assertTSBigIntKeyword=EV;ap.assertTSBooleanKeyword=bV;ap.assertTSCallSignatureDeclaration=mV;ap.assertTSConditionalType=XV;ap.assertTSConstructSignatureDeclaration=yV;ap.assertTSConstructorType=MV;ap.assertTSDeclareFunction=fV;ap.assertTSDeclareMethod=hV;ap.assertTSEntityName=WY;ap.assertTSEnumBody=uY;ap.assertTSEnumDeclaration=cY;ap.assertTSEnumMember=pY;ap.assertTSExportAssignment=xY;ap.assertTSExpressionWithTypeArguments=tY;ap.assertTSExternalModuleReference=yY;ap.assertTSFunctionType=LV;ap.assertTSImportEqualsDeclaration=mY;ap.assertTSImportType=dY;ap.assertTSIndexSignature=SV;ap.assertTSIndexedAccessType=GV;ap.assertTSInferType=$V;ap.assertTSInstantiationExpression=nY;ap.assertTSInterfaceBody=sY;ap.assertTSInterfaceDeclaration=rY;ap.assertTSIntersectionType=WV;ap.assertTSIntrinsicKeyword=PV;ap.assertTSLiteralType=eY;ap.assertTSMappedType=QV;ap.assertTSMethodSignature=xV;ap.assertTSModuleBlock=hY;ap.assertTSModuleDeclaration=fY;ap.assertTSNamedTupleMember=YV;ap.assertTSNamespaceExportDeclaration=SY;ap.assertTSNeverKeyword=AV;ap.assertTSNonNullExpression=TY;ap.assertTSNullKeyword=vV;ap.assertTSNumberKeyword=CV;ap.assertTSObjectKeyword=IV;ap.assertTSOptionalType=KV;ap.assertTSParameterProperty=pV;ap.assertTSParenthesizedType=HV;ap.assertTSPropertySignature=TV;ap.assertTSQualifiedName=dV;ap.assertTSRestType=VV;ap.assertTSSatisfiesExpression=oY;ap.assertTSStringKeyword=wV;ap.assertTSSymbolKeyword=NV;ap.assertTSTemplateLiteralType=ZV;ap.assertTSThisType=DV;ap.assertTSTupleType=UV;ap.assertTSType=xJ;ap.assertTSTypeAliasDeclaration=iY;ap.assertTSTypeAnnotation=gY;ap.assertTSTypeAssertion=lY;ap.assertTSTypeElement=TJ;ap.assertTSTypeLiteral=RV;ap.assertTSTypeOperator=zV;ap.assertTSTypeParameter=PY;ap.assertTSTypeParameterDeclaration=EY;ap.assertTSTypeParameterInstantiation=bY;ap.assertTSTypePredicate=FV;ap.assertTSTypeQuery=jV;ap.assertTSTypeReference=BV;ap.assertTSUndefinedKeyword=OV;ap.assertTSUnionType=JV;ap.assertTSUnknownKeyword=_V;ap.assertTSVoidKeyword=kV;ap.assertTaggedTemplateExpression=nU;ap.assertTemplateElement=aU;ap.assertTemplateLiteral=oU;ap.assertTerminatorless=_Y;ap.assertThisExpression=Nq;ap.assertThisTypeAnnotation=cK;ap.assertThrowStatement=Oq;ap.assertTopicReference=aV;ap.assertTryStatement=_q;ap.assertTupleExpression=sV;ap.assertTupleTypeAnnotation=pK;ap.assertTypeAlias=hK;ap.assertTypeAnnotation=dK;ap.assertTypeCastExpression=mK;ap.assertTypeParameter=yK;ap.assertTypeParameterDeclaration=TK;ap.assertTypeParameterInstantiation=xK;ap.assertTypeScript=yJ;ap.assertTypeofTypeAnnotation=fK;ap.assertUnaryExpression=kq;ap.assertUnaryLike=ZY;ap.assertUnionTypeAnnotation=SK;ap.assertUpdateExpression=Dq;ap.assertUserWhitespacable=HY;ap.assertV8IntrinsicIdentifier=zK;ap.assertVariableDeclaration=Lq;ap.assertVariableDeclarator=Mq;ap.assertVariance=gK;ap.assertVoidPattern=cV;ap.assertVoidTypeAnnotation=bK;ap.assertWhile=MY;ap.assertWhileStatement=Bq;ap.assertWithStatement=Fq;ap.assertYieldExpression=lU;var q7=Mr(),xs=Lr();function f(e,t,r){if(!(0,q7.default)(e,t,r))throw Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function U7(e,t){f("ArrayExpression",e,t)}function K7(e,t){f("AssignmentExpression",e,t)}function V7(e,t){f("BinaryExpression",e,t)}function Y7(e,t){f("InterpreterDirective",e,t)}function J7(e,t){f("Directive",e,t)}function W7(e,t){f("DirectiveLiteral",e,t)}function X7(e,t){f("BlockStatement",e,t)}function $7(e,t){f("BreakStatement",e,t)}function H7(e,t){f("CallExpression",e,t)}function z7(e,t){f("CatchClause",e,t)}function G7(e,t){f("ConditionalExpression",e,t)}function Q7(e,t){f("ContinueStatement",e,t)}function Z7(e,t){f("DebuggerStatement",e,t)}function eq(e,t){f("DoWhileStatement",e,t)}function tq(e,t){f("EmptyStatement",e,t)}function rq(e,t){f("ExpressionStatement",e,t)}function sq(e,t){f("File",e,t)}function iq(e,t){f("ForInStatement",e,t)}function nq(e,t){f("ForStatement",e,t)}function aq(e,t){f("FunctionDeclaration",e,t)}function oq(e,t){f("FunctionExpression",e,t)}function lq(e,t){f("Identifier",e,t)}function uq(e,t){f("IfStatement",e,t)}function cq(e,t){f("LabeledStatement",e,t)}function pq(e,t){f("StringLiteral",e,t)}function fq(e,t){f("NumericLiteral",e,t)}function hq(e,t){f("NullLiteral",e,t)}function dq(e,t){f("BooleanLiteral",e,t)}function mq(e,t){f("RegExpLiteral",e,t)}function yq(e,t){f("LogicalExpression",e,t)}function Tq(e,t){f("MemberExpression",e,t)}function xq(e,t){f("NewExpression",e,t)}function Sq(e,t){f("Program",e,t)}function gq(e,t){f("ObjectExpression",e,t)}function bq(e,t){f("ObjectMethod",e,t)}function Eq(e,t){f("ObjectProperty",e,t)}function Pq(e,t){f("RestElement",e,t)}function Aq(e,t){f("ReturnStatement",e,t)}function vq(e,t){f("SequenceExpression",e,t)}function Cq(e,t){f("ParenthesizedExpression",e,t)}function Iq(e,t){f("SwitchCase",e,t)}function wq(e,t){f("SwitchStatement",e,t)}function Nq(e,t){f("ThisExpression",e,t)}function Oq(e,t){f("ThrowStatement",e,t)}function _q(e,t){f("TryStatement",e,t)}function kq(e,t){f("UnaryExpression",e,t)}function Dq(e,t){f("UpdateExpression",e,t)}function Lq(e,t){f("VariableDeclaration",e,t)}function Mq(e,t){f("VariableDeclarator",e,t)}function Bq(e,t){f("WhileStatement",e,t)}function Fq(e,t){f("WithStatement",e,t)}function jq(e,t){f("AssignmentPattern",e,t)}function Rq(e,t){f("ArrayPattern",e,t)}function qq(e,t){f("ArrowFunctionExpression",e,t)}function Uq(e,t){f("ClassBody",e,t)}function Kq(e,t){f("ClassExpression",e,t)}function Vq(e,t){f("ClassDeclaration",e,t)}function Yq(e,t){f("ExportAllDeclaration",e,t)}function Jq(e,t){f("ExportDefaultDeclaration",e,t)}function Wq(e,t){f("ExportNamedDeclaration",e,t)}function Xq(e,t){f("ExportSpecifier",e,t)}function $q(e,t){f("ForOfStatement",e,t)}function Hq(e,t){f("ImportDeclaration",e,t)}function zq(e,t){f("ImportDefaultSpecifier",e,t)}function Gq(e,t){f("ImportNamespaceSpecifier",e,t)}function Qq(e,t){f("ImportSpecifier",e,t)}function Zq(e,t){f("ImportExpression",e,t)}function eU(e,t){f("MetaProperty",e,t)}function tU(e,t){f("ClassMethod",e,t)}function rU(e,t){f("ObjectPattern",e,t)}function sU(e,t){f("SpreadElement",e,t)}function iU(e,t){f("Super",e,t)}function nU(e,t){f("TaggedTemplateExpression",e,t)}function aU(e,t){f("TemplateElement",e,t)}function oU(e,t){f("TemplateLiteral",e,t)}function lU(e,t){f("YieldExpression",e,t)}function uU(e,t){f("AwaitExpression",e,t)}function cU(e,t){f("Import",e,t)}function pU(e,t){f("BigIntLiteral",e,t)}function fU(e,t){f("ExportNamespaceSpecifier",e,t)}function hU(e,t){f("OptionalMemberExpression",e,t)}function dU(e,t){f("OptionalCallExpression",e,t)}function mU(e,t){f("ClassProperty",e,t)}function yU(e,t){f("ClassAccessorProperty",e,t)}function TU(e,t){f("ClassPrivateProperty",e,t)}function xU(e,t){f("ClassPrivateMethod",e,t)}function SU(e,t){f("PrivateName",e,t)}function gU(e,t){f("StaticBlock",e,t)}function bU(e,t){f("ImportAttribute",e,t)}function EU(e,t){f("AnyTypeAnnotation",e,t)}function PU(e,t){f("ArrayTypeAnnotation",e,t)}function AU(e,t){f("BooleanTypeAnnotation",e,t)}function vU(e,t){f("BooleanLiteralTypeAnnotation",e,t)}function CU(e,t){f("NullLiteralTypeAnnotation",e,t)}function IU(e,t){f("ClassImplements",e,t)}function wU(e,t){f("DeclareClass",e,t)}function NU(e,t){f("DeclareFunction",e,t)}function OU(e,t){f("DeclareInterface",e,t)}function _U(e,t){f("DeclareModule",e,t)}function kU(e,t){f("DeclareModuleExports",e,t)}function DU(e,t){f("DeclareTypeAlias",e,t)}function LU(e,t){f("DeclareOpaqueType",e,t)}function MU(e,t){f("DeclareVariable",e,t)}function BU(e,t){f("DeclareExportDeclaration",e,t)}function FU(e,t){f("DeclareExportAllDeclaration",e,t)}function jU(e,t){f("DeclaredPredicate",e,t)}function RU(e,t){f("ExistsTypeAnnotation",e,t)}function qU(e,t){f("FunctionTypeAnnotation",e,t)}function UU(e,t){f("FunctionTypeParam",e,t)}function KU(e,t){f("GenericTypeAnnotation",e,t)}function VU(e,t){f("InferredPredicate",e,t)}function YU(e,t){f("InterfaceExtends",e,t)}function JU(e,t){f("InterfaceDeclaration",e,t)}function WU(e,t){f("InterfaceTypeAnnotation",e,t)}function XU(e,t){f("IntersectionTypeAnnotation",e,t)}function $U(e,t){f("MixedTypeAnnotation",e,t)}function HU(e,t){f("EmptyTypeAnnotation",e,t)}function zU(e,t){f("NullableTypeAnnotation",e,t)}function GU(e,t){f("NumberLiteralTypeAnnotation",e,t)}function QU(e,t){f("NumberTypeAnnotation",e,t)}function ZU(e,t){f("ObjectTypeAnnotation",e,t)}function eK(e,t){f("ObjectTypeInternalSlot",e,t)}function tK(e,t){f("ObjectTypeCallProperty",e,t)}function rK(e,t){f("ObjectTypeIndexer",e,t)}function sK(e,t){f("ObjectTypeProperty",e,t)}function iK(e,t){f("ObjectTypeSpreadProperty",e,t)}function nK(e,t){f("OpaqueType",e,t)}function aK(e,t){f("QualifiedTypeIdentifier",e,t)}function oK(e,t){f("StringLiteralTypeAnnotation",e,t)}function lK(e,t){f("StringTypeAnnotation",e,t)}function uK(e,t){f("SymbolTypeAnnotation",e,t)}function cK(e,t){f("ThisTypeAnnotation",e,t)}function pK(e,t){f("TupleTypeAnnotation",e,t)}function fK(e,t){f("TypeofTypeAnnotation",e,t)}function hK(e,t){f("TypeAlias",e,t)}function dK(e,t){f("TypeAnnotation",e,t)}function mK(e,t){f("TypeCastExpression",e,t)}function yK(e,t){f("TypeParameter",e,t)}function TK(e,t){f("TypeParameterDeclaration",e,t)}function xK(e,t){f("TypeParameterInstantiation",e,t)}function SK(e,t){f("UnionTypeAnnotation",e,t)}function gK(e,t){f("Variance",e,t)}function bK(e,t){f("VoidTypeAnnotation",e,t)}function EK(e,t){f("EnumDeclaration",e,t)}function PK(e,t){f("EnumBooleanBody",e,t)}function AK(e,t){f("EnumNumberBody",e,t)}function vK(e,t){f("EnumStringBody",e,t)}function CK(e,t){f("EnumSymbolBody",e,t)}function IK(e,t){f("EnumBooleanMember",e,t)}function wK(e,t){f("EnumNumberMember",e,t)}function NK(e,t){f("EnumStringMember",e,t)}function OK(e,t){f("EnumDefaultedMember",e,t)}function _K(e,t){f("IndexedAccessType",e,t)}function kK(e,t){f("OptionalIndexedAccessType",e,t)}function DK(e,t){f("JSXAttribute",e,t)}function LK(e,t){f("JSXClosingElement",e,t)}function MK(e,t){f("JSXElement",e,t)}function BK(e,t){f("JSXEmptyExpression",e,t)}function FK(e,t){f("JSXExpressionContainer",e,t)}function jK(e,t){f("JSXSpreadChild",e,t)}function RK(e,t){f("JSXIdentifier",e,t)}function qK(e,t){f("JSXMemberExpression",e,t)}function UK(e,t){f("JSXNamespacedName",e,t)}function KK(e,t){f("JSXOpeningElement",e,t)}function VK(e,t){f("JSXSpreadAttribute",e,t)}function YK(e,t){f("JSXText",e,t)}function JK(e,t){f("JSXFragment",e,t)}function WK(e,t){f("JSXOpeningFragment",e,t)}function XK(e,t){f("JSXClosingFragment",e,t)}function $K(e,t){f("Noop",e,t)}function HK(e,t){f("Placeholder",e,t)}function zK(e,t){f("V8IntrinsicIdentifier",e,t)}function GK(e,t){f("ArgumentPlaceholder",e,t)}function QK(e,t){f("BindExpression",e,t)}function ZK(e,t){f("Decorator",e,t)}function eV(e,t){f("DoExpression",e,t)}function tV(e,t){f("ExportDefaultSpecifier",e,t)}function rV(e,t){f("RecordExpression",e,t)}function sV(e,t){f("TupleExpression",e,t)}function iV(e,t){f("DecimalLiteral",e,t)}function nV(e,t){f("ModuleExpression",e,t)}function aV(e,t){f("TopicReference",e,t)}function oV(e,t){f("PipelineTopicExpression",e,t)}function lV(e,t){f("PipelineBareFunction",e,t)}function uV(e,t){f("PipelinePrimaryTopicReference",e,t)}function cV(e,t){f("VoidPattern",e,t)}function pV(e,t){f("TSParameterProperty",e,t)}function fV(e,t){f("TSDeclareFunction",e,t)}function hV(e,t){f("TSDeclareMethod",e,t)}function dV(e,t){f("TSQualifiedName",e,t)}function mV(e,t){f("TSCallSignatureDeclaration",e,t)}function yV(e,t){f("TSConstructSignatureDeclaration",e,t)}function TV(e,t){f("TSPropertySignature",e,t)}function xV(e,t){f("TSMethodSignature",e,t)}function SV(e,t){f("TSIndexSignature",e,t)}function gV(e,t){f("TSAnyKeyword",e,t)}function bV(e,t){f("TSBooleanKeyword",e,t)}function EV(e,t){f("TSBigIntKeyword",e,t)}function PV(e,t){f("TSIntrinsicKeyword",e,t)}function AV(e,t){f("TSNeverKeyword",e,t)}function vV(e,t){f("TSNullKeyword",e,t)}function CV(e,t){f("TSNumberKeyword",e,t)}function IV(e,t){f("TSObjectKeyword",e,t)}function wV(e,t){f("TSStringKeyword",e,t)}function NV(e,t){f("TSSymbolKeyword",e,t)}function OV(e,t){f("TSUndefinedKeyword",e,t)}function _V(e,t){f("TSUnknownKeyword",e,t)}function kV(e,t){f("TSVoidKeyword",e,t)}function DV(e,t){f("TSThisType",e,t)}function LV(e,t){f("TSFunctionType",e,t)}function MV(e,t){f("TSConstructorType",e,t)}function BV(e,t){f("TSTypeReference",e,t)}function FV(e,t){f("TSTypePredicate",e,t)}function jV(e,t){f("TSTypeQuery",e,t)}function RV(e,t){f("TSTypeLiteral",e,t)}function qV(e,t){f("TSArrayType",e,t)}function UV(e,t){f("TSTupleType",e,t)}function KV(e,t){f("TSOptionalType",e,t)}function VV(e,t){f("TSRestType",e,t)}function YV(e,t){f("TSNamedTupleMember",e,t)}function JV(e,t){f("TSUnionType",e,t)}function WV(e,t){f("TSIntersectionType",e,t)}function XV(e,t){f("TSConditionalType",e,t)}function $V(e,t){f("TSInferType",e,t)}function HV(e,t){f("TSParenthesizedType",e,t)}function zV(e,t){f("TSTypeOperator",e,t)}function GV(e,t){f("TSIndexedAccessType",e,t)}function QV(e,t){f("TSMappedType",e,t)}function ZV(e,t){f("TSTemplateLiteralType",e,t)}function eY(e,t){f("TSLiteralType",e,t)}function tY(e,t){f("TSExpressionWithTypeArguments",e,t)}function rY(e,t){f("TSInterfaceDeclaration",e,t)}function sY(e,t){f("TSInterfaceBody",e,t)}function iY(e,t){f("TSTypeAliasDeclaration",e,t)}function nY(e,t){f("TSInstantiationExpression",e,t)}function aY(e,t){f("TSAsExpression",e,t)}function oY(e,t){f("TSSatisfiesExpression",e,t)}function lY(e,t){f("TSTypeAssertion",e,t)}function uY(e,t){f("TSEnumBody",e,t)}function cY(e,t){f("TSEnumDeclaration",e,t)}function pY(e,t){f("TSEnumMember",e,t)}function fY(e,t){f("TSModuleDeclaration",e,t)}function hY(e,t){f("TSModuleBlock",e,t)}function dY(e,t){f("TSImportType",e,t)}function mY(e,t){f("TSImportEqualsDeclaration",e,t)}function yY(e,t){f("TSExternalModuleReference",e,t)}function TY(e,t){f("TSNonNullExpression",e,t)}function xY(e,t){f("TSExportAssignment",e,t)}function SY(e,t){f("TSNamespaceExportDeclaration",e,t)}function gY(e,t){f("TSTypeAnnotation",e,t)}function bY(e,t){f("TSTypeParameterInstantiation",e,t)}function EY(e,t){f("TSTypeParameterDeclaration",e,t)}function PY(e,t){f("TSTypeParameter",e,t)}function AY(e,t){f("Standardized",e,t)}function vY(e,t){f("Expression",e,t)}function CY(e,t){f("Binary",e,t)}function IY(e,t){f("Scopable",e,t)}function wY(e,t){f("BlockParent",e,t)}function NY(e,t){f("Block",e,t)}function OY(e,t){f("Statement",e,t)}function _Y(e,t){f("Terminatorless",e,t)}function kY(e,t){f("CompletionStatement",e,t)}function DY(e,t){f("Conditional",e,t)}function LY(e,t){f("Loop",e,t)}function MY(e,t){f("While",e,t)}function BY(e,t){f("ExpressionWrapper",e,t)}function FY(e,t){f("For",e,t)}function jY(e,t){f("ForXStatement",e,t)}function RY(e,t){f("Function",e,t)}function qY(e,t){f("FunctionParent",e,t)}function UY(e,t){f("Pureish",e,t)}function KY(e,t){f("Declaration",e,t)}function VY(e,t){f("FunctionParameter",e,t)}function YY(e,t){f("PatternLike",e,t)}function JY(e,t){f("LVal",e,t)}function WY(e,t){f("TSEntityName",e,t)}function XY(e,t){f("Literal",e,t)}function $Y(e,t){f("Immutable",e,t)}function HY(e,t){f("UserWhitespacable",e,t)}function zY(e,t){f("Method",e,t)}function GY(e,t){f("ObjectMember",e,t)}function QY(e,t){f("Property",e,t)}function ZY(e,t){f("UnaryLike",e,t)}function eJ(e,t){f("Pattern",e,t)}function tJ(e,t){f("Class",e,t)}function rJ(e,t){f("ImportOrExportDeclaration",e,t)}function sJ(e,t){f("ExportDeclaration",e,t)}function iJ(e,t){f("ModuleSpecifier",e,t)}function nJ(e,t){f("Accessor",e,t)}function aJ(e,t){f("Private",e,t)}function oJ(e,t){f("Flow",e,t)}function lJ(e,t){f("FlowType",e,t)}function uJ(e,t){f("FlowBaseAnnotation",e,t)}function cJ(e,t){f("FlowDeclaration",e,t)}function pJ(e,t){f("FlowPredicate",e,t)}function fJ(e,t){f("EnumBody",e,t)}function hJ(e,t){f("EnumMember",e,t)}function dJ(e,t){f("JSX",e,t)}function mJ(e,t){f("Miscellaneous",e,t)}function yJ(e,t){f("TypeScript",e,t)}function TJ(e,t){f("TSTypeElement",e,t)}function xJ(e,t){f("TSType",e,t)}function SJ(e,t){f("TSBaseType",e,t)}function gJ(e,t){(0,xs.default)("assertNumberLiteral","assertNumericLiteral"),f("NumberLiteral",e,t)}function bJ(e,t){(0,xs.default)("assertRegexLiteral","assertRegExpLiteral"),f("RegexLiteral",e,t)}function EJ(e,t){(0,xs.default)("assertRestProperty","assertRestElement"),f("RestProperty",e,t)}function PJ(e,t){(0,xs.default)("assertSpreadProperty","assertSpreadElement"),f("SpreadProperty",e,t)}function AJ(e,t){(0,xs.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),f("ModuleDeclaration",e,t)}});var cp=A(function(lp){Object.defineProperty(lp,"__esModule",{value:!0});lp.default=void 0;var gt=rt(),ake=lp.default=uG;function uG(e){switch(e){case"string":return(0,gt.stringTypeAnnotation)();case"number":return(0,gt.numberTypeAnnotation)();case"undefined":return(0,gt.voidTypeAnnotation)();case"boolean":return(0,gt.booleanTypeAnnotation)();case"function":return(0,gt.genericTypeAnnotation)((0,gt.identifier)("Function"));case"object":return(0,gt.genericTypeAnnotation)((0,gt.identifier)("Object"));case"symbol":return(0,gt.genericTypeAnnotation)((0,gt.identifier)("Symbol"));case"bigint":return(0,gt.anyTypeAnnotation)()}throw Error("Invalid typeof value: "+e)}});var oa=A(function(hp){Object.defineProperty(hp,"__esModule",{value:!0});hp.default=fp;var Ss=Le();function pp(e){return(0,Ss.isIdentifier)(e)?e.name:`${e.id.name}.${pp(e.qualification)}`}function fp(e){let t=Array.from(e),r=new Map,s=new Map,i=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(!o)continue;if(n.includes(o))continue;if((0,Ss.isAnyTypeAnnotation)(o))return[o];if((0,Ss.isFlowBaseAnnotation)(o)){s.set(o.type,o);continue}if((0,Ss.isUnionTypeAnnotation)(o)){if(!i.has(o.types))t.push(...o.types),i.add(o.types);continue}if((0,Ss.isGenericTypeAnnotation)(o)){let l=pp(o.id);if(r.has(l)){let u=r.get(l);if(u.typeParameters){if(o.typeParameters)u.typeParameters.params.push(...o.typeParameters.params),u.typeParameters.params=fp(u.typeParameters.params)}else u=o.typeParameters}else r.set(l,o);continue}n.push(o)}for(let[,a]of s)n.push(a);for(let[,a]of r)n.push(a);return n}});var mp=A(function(dp){Object.defineProperty(dp,"__esModule",{value:!0});dp.default=hG;var pG=rt(),fG=oa();function hG(e){let t=(0,fG.default)(e);if(t.length===1)return t[0];else return(0,pG.unionTypeAnnotation)(t)}});var Sp=A(function(xp){Object.defineProperty(xp,"__esModule",{value:!0});xp.default=Tp;var Ur=Le();function yp(e){return(0,Ur.isIdentifier)(e)?e.name:(0,Ur.isThisExpression)(e)?"this":`${e.right.name}.${yp(e.left)}`}function Tp(e){let t=Array.from(e),r=new Map,s=new Map,i=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(!o)continue;if(n.includes(o))continue;if((0,Ur.isTSAnyKeyword)(o))return[o];if((0,Ur.isTSBaseType)(o)){s.set(o.type,o);continue}if((0,Ur.isTSUnionType)(o)){if(!i.has(o.types))t.push(...o.types),i.add(o.types);continue}let l="typeParameters";if((0,Ur.isTSTypeReference)(o)&&o[l]){let u=o[l],p=yp(o.typeName);if(r.has(p)){let m=r.get(p),x=m[l];if(x)x.params.push(...u.params),x.params=Tp(x.params);else m=u}else r.set(p,o);continue}n.push(o)}for(let[,a]of s)n.push(a);for(let[,a]of r)n.push(a);return n}});var bp=A(function(gp){Object.defineProperty(gp,"__esModule",{value:!0});gp.default=SG;var yG=rt(),TG=Sp(),xG=Le();function SG(e){let t=e.map((s)=>(0,xG.isTSTypeAnnotation)(s)?s.typeAnnotation:s),r=(0,TG.default)(t);if(r.length===1)return r[0];else return(0,yG.tsUnionType)(r)}});var la=A(function(Pp){Object.defineProperty(Pp,"__esModule",{value:!0});Pp.buildUndefinedNode=bG;var Ep=rt();function bG(){return(0,Ep.unaryExpression)("void",(0,Ep.numericLiteral)(0),!0)}});var Qt=A(function(wp){Object.defineProperty(wp,"__esModule",{value:!0});wp.default=PG;var Ap=ut(),vp=Le(),{hasOwn:wt}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function Cp(e,t,r,s){if(e&&typeof e.type==="string")return Ip(e,t,r,s);return e}function ua(e,t,r,s){if(Array.isArray(e))return e.map((i)=>Cp(i,t,r,s));return Cp(e,t,r,s)}function PG(e,t=!0,r=!1){return Ip(e,t,r,new Map)}function Ip(e,t=!0,r=!1,s){if(!e)return e;let{type:i}=e,n={type:e.type};if((0,vp.isIdentifier)(e)){if(n.name=e.name,wt(e,"optional")&&typeof e.optional==="boolean")n.optional=e.optional;if(wt(e,"typeAnnotation"))n.typeAnnotation=t?ua(e.typeAnnotation,!0,r,s):e.typeAnnotation;if(wt(e,"decorators"))n.decorators=t?ua(e.decorators,!0,r,s):e.decorators}else if(!wt(Ap.NODE_FIELDS,i))throw Error(`Unknown node type: "${i}"`);else for(let a of Object.keys(Ap.NODE_FIELDS[i]))if(wt(e,a))if(t)n[a]=(0,vp.isFile)(e)&&a==="comments"?hi(e.comments,t,r,s):ua(e[a],!0,r,s);else n[a]=e[a];if(wt(e,"loc"))if(r)n.loc=null;else n.loc=e.loc;if(wt(e,"leadingComments"))n.leadingComments=hi(e.leadingComments,t,r,s);if(wt(e,"innerComments"))n.innerComments=hi(e.innerComments,t,r,s);if(wt(e,"trailingComments"))n.trailingComments=hi(e.trailingComments,t,r,s);if(wt(e,"extra"))n.extra=Object.assign({},e.extra);return n}function hi(e,t,r,s){if(!e||!t)return e;return e.map((i)=>{let n=s.get(i);if(n)return n;let{type:a,value:o,loc:l}=i,u={type:a,value:o,loc:l};if(r)u.loc=null;return s.set(i,u),u})}});var Op=A(function(Np){Object.defineProperty(Np,"__esModule",{value:!0});Np.default=CG;var vG=Qt();function CG(e){return(0,vG.default)(e,!1)}});var kp=A(function(_p){Object.defineProperty(_p,"__esModule",{value:!0});_p.default=NG;var wG=Qt();function NG(e){return(0,wG.default)(e)}});var Lp=A(function(Dp){Object.defineProperty(Dp,"__esModule",{value:!0});Dp.default=kG;var _G=Qt();function kG(e){return(0,_G.default)(e,!0,!0)}});var Bp=A(function(Mp){Object.defineProperty(Mp,"__esModule",{value:!0});Mp.default=MG;var LG=Qt();function MG(e){return(0,LG.default)(e,!1,!0)}});var ca=A(function(Fp){Object.defineProperty(Fp,"__esModule",{value:!0});Fp.default=FG;function FG(e,t,r){if(!r||!e)return e;let s=`${t}Comments`;if(e[s])if(t==="leading")e[s]=r.concat(e[s]);else e[s].push(...r);else e[s]=r;return e}});var Rp=A(function(jp){Object.defineProperty(jp,"__esModule",{value:!0});jp.default=qG;var RG=ca();function qG(e,t,r,s){return(0,RG.default)(e,t,[{type:s?"CommentLine":"CommentBlock",value:r}])}});var di=A(function(qp){Object.defineProperty(qp,"__esModule",{value:!0});qp.default=KG;function KG(e,t,r){if(t&&r)t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean)))}});var pa=A(function(Up){Object.defineProperty(Up,"__esModule",{value:!0});Up.default=JG;var YG=di();function JG(e,t){(0,YG.default)("innerComments",e,t)}});var fa=A(function(Kp){Object.defineProperty(Kp,"__esModule",{value:!0});Kp.default=$G;var XG=di();function $G(e,t){(0,XG.default)("leadingComments",e,t)}});var ha=A(function(Vp){Object.defineProperty(Vp,"__esModule",{value:!0});Vp.default=GG;var zG=di();function GG(e,t){(0,zG.default)("trailingComments",e,t)}});var da=A(function(Yp){Object.defineProperty(Yp,"__esModule",{value:!0});Yp.default=rQ;var ZG=ha(),eQ=fa(),tQ=pa();function rQ(e,t){return(0,ZG.default)(e,t),(0,eQ.default)(e,t),(0,tQ.default)(e,t),e}});var Wp=A(function(Jp){Object.defineProperty(Jp,"__esModule",{value:!0});Jp.default=nQ;var iQ=Fr();function nQ(e){return iQ.COMMENT_KEYS.forEach((t)=>{e[t]=null}),e}});var Hp=A(function(Xp){Object.defineProperty(Xp,"__esModule",{value:!0});Xp.WHILE_TYPES=Xp.USERWHITESPACABLE_TYPES=Xp.UNARYLIKE_TYPES=Xp.TYPESCRIPT_TYPES=Xp.TSTYPE_TYPES=Xp.TSTYPEELEMENT_TYPES=Xp.TSENTITYNAME_TYPES=Xp.TSBASETYPE_TYPES=Xp.TERMINATORLESS_TYPES=Xp.STATEMENT_TYPES=Xp.STANDARDIZED_TYPES=Xp.SCOPABLE_TYPES=Xp.PUREISH_TYPES=Xp.PROPERTY_TYPES=Xp.PRIVATE_TYPES=Xp.PATTERN_TYPES=Xp.PATTERNLIKE_TYPES=Xp.OBJECTMEMBER_TYPES=Xp.MODULESPECIFIER_TYPES=Xp.MODULEDECLARATION_TYPES=Xp.MISCELLANEOUS_TYPES=Xp.METHOD_TYPES=Xp.LVAL_TYPES=Xp.LOOP_TYPES=Xp.LITERAL_TYPES=Xp.JSX_TYPES=Xp.IMPORTOREXPORTDECLARATION_TYPES=Xp.IMMUTABLE_TYPES=Xp.FUNCTION_TYPES=Xp.FUNCTIONPARENT_TYPES=Xp.FUNCTIONPARAMETER_TYPES=Xp.FOR_TYPES=Xp.FORXSTATEMENT_TYPES=Xp.FLOW_TYPES=Xp.FLOWTYPE_TYPES=Xp.FLOWPREDICATE_TYPES=Xp.FLOWDECLARATION_TYPES=Xp.FLOWBASEANNOTATION_TYPES=Xp.EXPRESSION_TYPES=Xp.EXPRESSIONWRAPPER_TYPES=Xp.EXPORTDECLARATION_TYPES=Xp.ENUMMEMBER_TYPES=Xp.ENUMBODY_TYPES=Xp.DECLARATION_TYPES=Xp.CONDITIONAL_TYPES=Xp.COMPLETIONSTATEMENT_TYPES=Xp.CLASS_TYPES=Xp.BLOCK_TYPES=Xp.BLOCKPARENT_TYPES=Xp.BINARY_TYPES=Xp.ACCESSOR_TYPES=void 0;var re=ut(),Cke=Xp.STANDARDIZED_TYPES=re.FLIPPED_ALIAS_KEYS.Standardized,Ike=Xp.EXPRESSION_TYPES=re.FLIPPED_ALIAS_KEYS.Expression,wke=Xp.BINARY_TYPES=re.FLIPPED_ALIAS_KEYS.Binary,Nke=Xp.SCOPABLE_TYPES=re.FLIPPED_ALIAS_KEYS.Scopable,Oke=Xp.BLOCKPARENT_TYPES=re.FLIPPED_ALIAS_KEYS.BlockParent,_ke=Xp.BLOCK_TYPES=re.FLIPPED_ALIAS_KEYS.Block,kke=Xp.STATEMENT_TYPES=re.FLIPPED_ALIAS_KEYS.Statement,Dke=Xp.TERMINATORLESS_TYPES=re.FLIPPED_ALIAS_KEYS.Terminatorless,Lke=Xp.COMPLETIONSTATEMENT_TYPES=re.FLIPPED_ALIAS_KEYS.CompletionStatement,Mke=Xp.CONDITIONAL_TYPES=re.FLIPPED_ALIAS_KEYS.Conditional,Bke=Xp.LOOP_TYPES=re.FLIPPED_ALIAS_KEYS.Loop,Fke=Xp.WHILE_TYPES=re.FLIPPED_ALIAS_KEYS.While,jke=Xp.EXPRESSIONWRAPPER_TYPES=re.FLIPPED_ALIAS_KEYS.ExpressionWrapper,Rke=Xp.FOR_TYPES=re.FLIPPED_ALIAS_KEYS.For,qke=Xp.FORXSTATEMENT_TYPES=re.FLIPPED_ALIAS_KEYS.ForXStatement,Uke=Xp.FUNCTION_TYPES=re.FLIPPED_ALIAS_KEYS.Function,Kke=Xp.FUNCTIONPARENT_TYPES=re.FLIPPED_ALIAS_KEYS.FunctionParent,Vke=Xp.PUREISH_TYPES=re.FLIPPED_ALIAS_KEYS.Pureish,Yke=Xp.DECLARATION_TYPES=re.FLIPPED_ALIAS_KEYS.Declaration,Jke=Xp.FUNCTIONPARAMETER_TYPES=re.FLIPPED_ALIAS_KEYS.FunctionParameter,Wke=Xp.PATTERNLIKE_TYPES=re.FLIPPED_ALIAS_KEYS.PatternLike,Xke=Xp.LVAL_TYPES=re.FLIPPED_ALIAS_KEYS.LVal,$ke=Xp.TSENTITYNAME_TYPES=re.FLIPPED_ALIAS_KEYS.TSEntityName,Hke=Xp.LITERAL_TYPES=re.FLIPPED_ALIAS_KEYS.Literal,zke=Xp.IMMUTABLE_TYPES=re.FLIPPED_ALIAS_KEYS.Immutable,Gke=Xp.USERWHITESPACABLE_TYPES=re.FLIPPED_ALIAS_KEYS.UserWhitespacable,Qke=Xp.METHOD_TYPES=re.FLIPPED_ALIAS_KEYS.Method,Zke=Xp.OBJECTMEMBER_TYPES=re.FLIPPED_ALIAS_KEYS.ObjectMember,eDe=Xp.PROPERTY_TYPES=re.FLIPPED_ALIAS_KEYS.Property,tDe=Xp.UNARYLIKE_TYPES=re.FLIPPED_ALIAS_KEYS.UnaryLike,rDe=Xp.PATTERN_TYPES=re.FLIPPED_ALIAS_KEYS.Pattern,sDe=Xp.CLASS_TYPES=re.FLIPPED_ALIAS_KEYS.Class,oQ=Xp.IMPORTOREXPORTDECLARATION_TYPES=re.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,iDe=Xp.EXPORTDECLARATION_TYPES=re.FLIPPED_ALIAS_KEYS.ExportDeclaration,nDe=Xp.MODULESPECIFIER_TYPES=re.FLIPPED_ALIAS_KEYS.ModuleSpecifier,aDe=Xp.ACCESSOR_TYPES=re.FLIPPED_ALIAS_KEYS.Accessor,oDe=Xp.PRIVATE_TYPES=re.FLIPPED_ALIAS_KEYS.Private,lDe=Xp.FLOW_TYPES=re.FLIPPED_ALIAS_KEYS.Flow,uDe=Xp.FLOWTYPE_TYPES=re.FLIPPED_ALIAS_KEYS.FlowType,cDe=Xp.FLOWBASEANNOTATION_TYPES=re.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,pDe=Xp.FLOWDECLARATION_TYPES=re.FLIPPED_ALIAS_KEYS.FlowDeclaration,fDe=Xp.FLOWPREDICATE_TYPES=re.FLIPPED_ALIAS_KEYS.FlowPredicate,hDe=Xp.ENUMBODY_TYPES=re.FLIPPED_ALIAS_KEYS.EnumBody,dDe=Xp.ENUMMEMBER_TYPES=re.FLIPPED_ALIAS_KEYS.EnumMember,mDe=Xp.JSX_TYPES=re.FLIPPED_ALIAS_KEYS.JSX,yDe=Xp.MISCELLANEOUS_TYPES=re.FLIPPED_ALIAS_KEYS.Miscellaneous,TDe=Xp.TYPESCRIPT_TYPES=re.FLIPPED_ALIAS_KEYS.TypeScript,xDe=Xp.TSTYPEELEMENT_TYPES=re.FLIPPED_ALIAS_KEYS.TSTypeElement,SDe=Xp.TSTYPE_TYPES=re.FLIPPED_ALIAS_KEYS.TSType,gDe=Xp.TSBASETYPE_TYPES=re.FLIPPED_ALIAS_KEYS.TSBaseType,bDe=Xp.MODULEDECLARATION_TYPES=oQ});var ya=A(function(zp){Object.defineProperty(zp,"__esModule",{value:!0});zp.default=iZ;var mi=Le(),ma=rt();function iZ(e,t){if((0,mi.isBlockStatement)(e))return e;let r=[];if((0,mi.isEmptyStatement)(e))r=[];else{if(!(0,mi.isStatement)(e))if((0,mi.isFunction)(t))e=(0,ma.returnStatement)(e);else e=(0,ma.expressionStatement)(e);r=[e]}return(0,ma.blockStatement)(r)}});var Qp=A(function(Gp){Object.defineProperty(Gp,"__esModule",{value:!0});Gp.default=oZ;var aZ=ya();function oZ(e,t="body"){let r=(0,aZ.default)(e[t],e);return e[t]=r,r}});var Ta=A(function(Zp){Object.defineProperty(Zp,"__esModule",{value:!0});Zp.default=pZ;var uZ=Br(),cZ=fs();function pZ(e){e=e+"";let t="";for(let r of e)t+=(0,cZ.isIdentifierChar)(r.codePointAt(0))?r:"-";if(t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,s){return s?s.toUpperCase():""}),!(0,uZ.default)(t))t=`_${t}`;return t||"_"}});var tf=A(function(ef){Object.defineProperty(ef,"__esModule",{value:!0});ef.default=dZ;var hZ=Ta();function dZ(e){if(e=(0,hZ.default)(e),e==="eval"||e==="arguments")e="_"+e;return e}});var sf=A(function(rf){Object.defineProperty(rf,"__esModule",{value:!0});rf.default=xZ;var yZ=Le(),TZ=rt();function xZ(e,t=e.key||e.property){if(!e.computed&&(0,yZ.isIdentifier)(t))t=(0,TZ.stringLiteral)(t.name);return t}});var of=A(function(nf){Object.defineProperty(nf,"__esModule",{value:!0});nf.default=void 0;var gs=Le(),wDe=nf.default=gZ;function gZ(e){if((0,gs.isExpressionStatement)(e))e=e.expression;if((0,gs.isExpression)(e))return e;if((0,gs.isClass)(e))e.type="ClassExpression",e.abstract=!1;else if((0,gs.isFunction)(e))e.type="FunctionExpression";if(!(0,gs.isExpression)(e))throw Error(`cannot turn ${e.type} to an expression`);return e}});var xa=A(function(cf){Object.defineProperty(cf,"__esModule",{value:!0});cf.default=bs;var bZ=ut(),lf=Symbol(),uf=Symbol();function bs(e,t,r){if(!e)return!1;let s=bZ.VISITOR_KEYS[e.type];if(!s)return!1;r=r||{};let i=t(e,r);if(i!==void 0)switch(i){case lf:return!1;case uf:return!0}for(let n of s){let a=e[n];if(!a)continue;if(Array.isArray(a)){for(let o of a)if(bs(o,t,r))return!0}else if(bs(a,t,r))return!0}return!1}bs.skip=lf;bs.stop=uf});var Sa=A(function(ff){Object.defineProperty(ff,"__esModule",{value:!0});ff.default=vZ;var PZ=Fr(),pf=["tokens","start","end","loc","raw","rawValue"],AZ=[...PZ.COMMENT_KEYS,"comments",...pf];function vZ(e,t={}){let r=t.preserveComments?pf:AZ;for(let i of r)if(e[i]!=null)e[i]=void 0;for(let i of Object.keys(e))if(i.startsWith("_")&&e[i]!=null)e[i]=void 0;let s=Object.getOwnPropertySymbols(e);for(let i of s)e[i]=null}});var ga=A(function(hf){Object.defineProperty(hf,"__esModule",{value:!0});hf.default=NZ;var IZ=xa(),wZ=Sa();function NZ(e,t){return(0,IZ.default)(e,wZ.default,t),e}});var yf=A(function(mf){Object.defineProperty(mf,"__esModule",{value:!0});mf.default=hr;var df=Le(),_Z=Qt(),kZ=ga();function hr(e,t=e.key){let r;if(e.kind==="method")return hr.increment()+"";else if((0,df.isIdentifier)(t))r=t.name;else if((0,df.isStringLiteral)(t))r=JSON.stringify(t.value);else r=JSON.stringify((0,kZ.default)((0,_Z.default)(t)));if(e.computed)r=`[${r}]`;if(e.static)r=`static:${r}`;return r}hr.uid=0;hr.increment=function(){if(hr.uid>=Number.MAX_SAFE_INTEGER)return hr.uid=0;else return hr.uid++}});var Sf=A(function(Tf){Object.defineProperty(Tf,"__esModule",{value:!0});Tf.default=void 0;var yi=Le(),LZ=rt(),LDe=Tf.default=MZ;function MZ(e,t){if((0,yi.isStatement)(e))return e;let r=!1,s;if((0,yi.isClass)(e))r=!0,s="ClassDeclaration";else if((0,yi.isFunction)(e))r=!0,s="FunctionDeclaration";else if((0,yi.isAssignmentExpression)(e))return(0,LZ.expressionStatement)(e);if(r&&!e.id)s=!1;if(!s)if(t)return!1;else throw Error(`cannot turn ${e.type} to a statement`);return e.type=s,e}});var Ef=A(function(gf){Object.defineProperty(gf,"__esModule",{value:!0});gf.default=void 0;var BZ=Br(),Re=rt(),BDe=gf.default=ba,FZ=Function.call.bind(Object.prototype.toString);function jZ(e){return FZ(e)==="[object RegExp]"}function RZ(e){if(typeof e!=="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function ba(e){if(e===void 0)return(0,Re.identifier)("undefined");if(e===!0||e===!1)return(0,Re.booleanLiteral)(e);if(e===null)return(0,Re.nullLiteral)();if(typeof e==="string")return(0,Re.stringLiteral)(e);if(typeof e==="number"){let t;if(Number.isFinite(e))t=(0,Re.numericLiteral)(Math.abs(e));else{let r;if(Number.isNaN(e))r=(0,Re.numericLiteral)(0);else r=(0,Re.numericLiteral)(1);t=(0,Re.binaryExpression)("/",r,(0,Re.numericLiteral)(0))}if(e<0||Object.is(e,-0))t=(0,Re.unaryExpression)("-",t);return t}if(typeof e==="bigint")if(e<0)return(0,Re.unaryExpression)("-",(0,Re.bigIntLiteral)(-e));else return(0,Re.bigIntLiteral)(e);if(jZ(e)){let t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,Re.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,Re.arrayExpression)(e.map(ba));if(RZ(e)){let t=[];for(let r of Object.keys(e)){let s,i=!1;if((0,BZ.default)(r))if(r==="__proto__")i=!0,s=(0,Re.stringLiteral)(r);else s=(0,Re.identifier)(r);else s=(0,Re.stringLiteral)(r);t.push((0,Re.objectProperty)(s,ba(e[r]),i))}return(0,Re.objectExpression)(t)}throw Error("don't know how to turn this value into a node")}});var Af=A(function(Pf){Object.defineProperty(Pf,"__esModule",{value:!0});Pf.default=UZ;var qZ=rt();function UZ(e,t,r=!1){return e.object=(0,qZ.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var If=A(function(Cf){Object.defineProperty(Cf,"__esModule",{value:!0});Cf.default=YZ;var vf=Fr(),VZ=da();function YZ(e,t){if(!e||!t)return e;for(let r of vf.INHERIT_KEYS.optional)if(e[r]==null)e[r]=t[r];for(let r of Object.keys(t))if(r.startsWith("_")&&r!=="__clone")e[r]=t[r];for(let r of vf.INHERIT_KEYS.force)e[r]=t[r];return(0,VZ.default)(e,t),e}});var Nf=A(function(wf){Object.defineProperty(wf,"__esModule",{value:!0});wf.default=$Z;var WZ=rt(),XZ=ae();function $Z(e,t){if((0,XZ.isSuper)(e.object))throw Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,WZ.memberExpression)(t,e.object),e}});var _f=A(function(Of){Object.defineProperty(Of,"__esModule",{value:!0});Of.default=zZ;function zZ(e){let t=[].concat(e),r=Object.create(null);while(t.length){let s=t.pop();if(!s)continue;switch(s.type){case"ArrayPattern":t.push(...s.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(s.left);break;case"ObjectPattern":t.push(...s.properties);break;case"ObjectProperty":t.push(s.value);break;case"RestElement":case"UpdateExpression":t.push(s.argument);break;case"UnaryExpression":if(s.operator==="delete")t.push(s.argument);break;case"Identifier":r[s.name]=s;break;default:break}}return r}});var Es=A(function(kf){Object.defineProperty(kf,"__esModule",{value:!0});kf.default=Ea;var Vt=Le();function Ea(e,t,r,s){let i=[].concat(e),n=Object.create(null);while(i.length){let a=i.shift();if(!a)continue;if(s&&((0,Vt.isAssignmentExpression)(a)||(0,Vt.isUnaryExpression)(a)||(0,Vt.isUpdateExpression)(a)))continue;if((0,Vt.isIdentifier)(a)){if(t)(n[a.name]=n[a.name]||[]).push(a);else n[a.name]=a;continue}if((0,Vt.isExportDeclaration)(a)&&!(0,Vt.isExportAllDeclaration)(a)){if((0,Vt.isDeclaration)(a.declaration))i.push(a.declaration);continue}if(r){if((0,Vt.isFunctionDeclaration)(a)){i.push(a.id);continue}if((0,Vt.isFunctionExpression)(a))continue}let o=Ea.keys[a.type];if(o)for(let l=0;l<o.length;l++){let u=o[l],p=a[u];if(p)if(Array.isArray(p))i.push(...p);else i.push(p)}}return n}var QZ={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};Ea.keys=QZ});var Mf=A(function(Df){Object.defineProperty(Df,"__esModule",{value:!0});Df.default=void 0;var eee=Es(),VDe=Df.default=tee;function tee(e,t){return(0,eee.default)(e,t,!0)}});var jf=A(function(Ff){Object.defineProperty(Ff,"__esModule",{value:!0});Ff.default=see;var ct=Le();function ree(e){if((0,ct.isNullLiteral)(e))return"null";if((0,ct.isRegExpLiteral)(e))return`/${e.pattern}/${e.flags}`;if((0,ct.isTemplateLiteral)(e))return e.quasis.map((t)=>t.value.raw).join("");if(e.value!==void 0)return String(e.value);return null}function Bf(e){if(!e.computed||(0,ct.isLiteral)(e.key))return e.key}function see(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let r="",s;if((0,ct.isObjectProperty)(t,{value:e}))s=Bf(t);else if((0,ct.isObjectMethod)(e)||(0,ct.isClassMethod)(e)){if(s=Bf(e),e.kind==="get")r="get ";else if(e.kind==="set")r="set "}else if((0,ct.isVariableDeclarator)(t,{init:e}))s=t.id;else if((0,ct.isAssignmentExpression)(t,{operator:"=",right:e}))s=t.left;if(!s)return null;let i=(0,ct.isLiteral)(s)?ree(s):(0,ct.isIdentifier)(s)?s.name:(0,ct.isPrivateName)(s)?s.id.name:null;if(i==null)return null;return{name:r+i,originalNode:s}}});var qf=A(function(Rf){Object.defineProperty(Rf,"__esModule",{value:!0});Rf.default=aee;var nee=ut();function aee(e,t,r){if(typeof t==="function")t={enter:t};let{enter:s,exit:i}=t;Pa(e,s,i,r,[])}function Pa(e,t,r,s,i){let n=nee.VISITOR_KEYS[e.type];if(!n)return;if(t)t(e,i,s);for(let a of n){let o=e[a];if(Array.isArray(o))for(let l=0;l<o.length;l++){let u=o[l];if(!u)continue;i.push({node:e,key:a,index:l}),Pa(u,t,r,s,i),i.pop()}else if(o)i.push({node:e,key:a}),Pa(o,t,r,s,i),i.pop()}if(r)r(e,i,s)}});var Kf=A(function(Uf){Object.defineProperty(Uf,"__esModule",{value:!0});Uf.default=uee;var lee=Es();function uee(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let s=lee.default.keys[t.type];if(s)for(let i=0;i<s.length;i++){let n=s[i],a=t[n];if(Array.isArray(a)){if(a.includes(e))return!0}else if(a===e)return!0}return!1}});var Aa=A(function(Vf){Object.defineProperty(Vf,"__esModule",{value:!0});Vf.default=hee;var pee=Le(),fee=Symbol.for("var used to be block scoped");function hee(e){return(0,pee.isVariableDeclaration)(e)&&(e.kind!=="var"||e[fee])}});var Wf=A(function(Jf){Object.defineProperty(Jf,"__esModule",{value:!0});Jf.default=yee;var Yf=Le(),mee=Aa();function yee(e){return(0,Yf.isFunctionDeclaration)(e)||(0,Yf.isClassDeclaration)(e)||(0,mee.default)(e)}});var $f=A(function(Xf){Object.defineProperty(Xf,"__esModule",{value:!0});Xf.default=gee;var xee=si(),See=Le();function gee(e){if((0,xee.default)(e.type,"Immutable"))return!0;if((0,See.isIdentifier)(e))if(e.name==="undefined")return!0;else return!1;return!1}});var Gf=A(function(zf){Object.defineProperty(zf,"__esModule",{value:!0});zf.default=va;var Hf=ut();function va(e,t){if(typeof e!=="object"||typeof t!=="object"||e==null||t==null)return e===t;if(e.type!==t.type)return!1;let r=Object.keys(Hf.NODE_FIELDS[e.type]||e.type),s=Hf.VISITOR_KEYS[e.type];for(let i of r){let n=e[i],a=t[i];if(typeof n!==typeof a)return!1;if(n==null&&a==null)continue;else if(n==null||a==null)return!1;if(Array.isArray(n)){if(!Array.isArray(a))return!1;if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++)if(!va(n[o],a[o]))return!1;continue}if(typeof n==="object"&&!(s!=null&&s.includes(i))){for(let o of Object.keys(n))if(n[o]!==a[o])return!1;continue}if(!va(n,a))return!1}return!0}});var Zf=A(function(Qf){Object.defineProperty(Qf,"__esModule",{value:!0});Qf.default=Pee;function Pee(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":if(t.property===e)return!!t.computed;return t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.key===e)return!!t.computed;return!1;case"ObjectProperty":if(t.key===e)return!!t.computed;return(r==null?void 0:r.type)!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":if(t.key===e)return!!t.computed;return!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":if(r!=null&&r.source)return!1;return t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":if(t.key===e)return!!t.computed;return!0}return!0}});var th=A(function(eh){Object.defineProperty(eh,"__esModule",{value:!0});eh.default=vee;var dr=Le();function vee(e,t){if((0,dr.isBlockStatement)(e)&&((0,dr.isFunction)(t)||(0,dr.isCatchClause)(t)))return!1;if((0,dr.isPattern)(e)&&((0,dr.isFunction)(t)||(0,dr.isCatchClause)(t)))return!0;return(0,dr.isScopable)(e)}});var ih=A(function(sh){Object.defineProperty(sh,"__esModule",{value:!0});sh.default=Iee;var rh=Le();function Iee(e){return(0,rh.isImportDefaultSpecifier)(e)||(0,rh.isIdentifier)(e.imported||e.exported,{name:"default"})}});var ah=A(function(nh){Object.defineProperty(nh,"__esModule",{value:!0});nh.default=_ee;var Nee=Br(),Oee=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function _ee(e){return(0,Nee.default)(e)&&!Oee.has(e)}});var lh=A(function(oh){Object.defineProperty(oh,"__esModule",{value:!0});oh.default=Mee;var Dee=Le(),Lee=Symbol.for("var used to be block scoped");function Mee(e){return(0,Dee.isVariableDeclaration)(e,{kind:"var"})&&!e[Lee]}});var ch=A(function(uh){Object.defineProperty(uh,"__esModule",{value:!0});uh.default=Ti;var Fee=Es(),mr=Le(),Ca=rt(),Ia=la(),jee=Qt();function Ti(e,t){let r=[],s=!0;for(let i of e){if(!(0,mr.isEmptyStatement)(i))s=!1;if((0,mr.isExpression)(i))r.push(i);else if((0,mr.isExpressionStatement)(i))r.push(i.expression);else if((0,mr.isVariableDeclaration)(i)){if(i.kind!=="var")return;for(let n of i.declarations){let a=(0,Fee.default)(n);for(let o of Object.keys(a))t.push({kind:i.kind,id:(0,jee.default)(a[o])});if(n.init)r.push((0,Ca.assignmentExpression)("=",n.id,n.init))}s=!0}else if((0,mr.isIfStatement)(i)){let n=i.consequent?Ti([i.consequent],t):(0,Ia.buildUndefinedNode)(),a=i.alternate?Ti([i.alternate],t):(0,Ia.buildUndefinedNode)();if(!n||!a)return;r.push((0,Ca.conditionalExpression)(i.test,n,a))}else if((0,mr.isBlockStatement)(i)){let n=Ti(i.body,t);if(!n)return;r.push(n)}else if((0,mr.isEmptyStatement)(i)){if(e.indexOf(i)===0)s=!0}else return}if(s)r.push((0,Ia.buildUndefinedNode)());if(r.length===1)return r[0];else return(0,Ca.sequenceExpression)(r)}});var fh=A(function(ph){Object.defineProperty(ph,"__esModule",{value:!0});ph.default=Uee;var qee=ch();function Uee(e,t){if(!(e!=null&&e.length))return;let r=[],s=(0,qee.default)(e,r);if(!s)return;for(let i of r)t.push(i);return s}});var ae=A(function(R){Object.defineProperty(R,"__esModule",{value:!0});var Zt={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(R,"__internal__deprecationWarning",{enumerable:!0,get:function(){return Wte.default}});Object.defineProperty(R,"addComment",{enumerable:!0,get:function(){return ete.default}});Object.defineProperty(R,"addComments",{enumerable:!0,get:function(){return tte.default}});Object.defineProperty(R,"appendToMemberExpression",{enumerable:!0,get:function(){return yte.default}});Object.defineProperty(R,"assertNode",{enumerable:!0,get:function(){return Wee.default}});Object.defineProperty(R,"buildMatchMemberExpression",{enumerable:!0,get:function(){return Jte.default}});Object.defineProperty(R,"clone",{enumerable:!0,get:function(){return zee.default}});Object.defineProperty(R,"cloneDeep",{enumerable:!0,get:function(){return Gee.default}});Object.defineProperty(R,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return Qee.default}});Object.defineProperty(R,"cloneNode",{enumerable:!0,get:function(){return Hee.default}});Object.defineProperty(R,"cloneWithoutLoc",{enumerable:!0,get:function(){return Zee.default}});Object.defineProperty(R,"createFlowUnionType",{enumerable:!0,get:function(){return hh.default}});Object.defineProperty(R,"createTSUnionType",{enumerable:!0,get:function(){return $ee.default}});Object.defineProperty(R,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return Xee.default}});Object.defineProperty(R,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return hh.default}});Object.defineProperty(R,"ensureBlock",{enumerable:!0,get:function(){return ote.default}});Object.defineProperty(R,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return Ete.default}});Object.defineProperty(R,"getBindingIdentifiers",{enumerable:!0,get:function(){return Pte.default}});Object.defineProperty(R,"getFunctionName",{enumerable:!0,get:function(){return vte.default}});Object.defineProperty(R,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return Ate.default}});Object.defineProperty(R,"inheritInnerComments",{enumerable:!0,get:function(){return rte.default}});Object.defineProperty(R,"inheritLeadingComments",{enumerable:!0,get:function(){return ste.default}});Object.defineProperty(R,"inheritTrailingComments",{enumerable:!0,get:function(){return nte.default}});Object.defineProperty(R,"inherits",{enumerable:!0,get:function(){return Tte.default}});Object.defineProperty(R,"inheritsComments",{enumerable:!0,get:function(){return ite.default}});Object.defineProperty(R,"is",{enumerable:!0,get:function(){return wte.default}});Object.defineProperty(R,"isBinding",{enumerable:!0,get:function(){return Nte.default}});Object.defineProperty(R,"isBlockScoped",{enumerable:!0,get:function(){return Ote.default}});Object.defineProperty(R,"isImmutable",{enumerable:!0,get:function(){return _te.default}});Object.defineProperty(R,"isLet",{enumerable:!0,get:function(){return kte.default}});Object.defineProperty(R,"isNode",{enumerable:!0,get:function(){return Dte.default}});Object.defineProperty(R,"isNodesEquivalent",{enumerable:!0,get:function(){return Lte.default}});Object.defineProperty(R,"isPlaceholderType",{enumerable:!0,get:function(){return Mte.default}});Object.defineProperty(R,"isReferenced",{enumerable:!0,get:function(){return Bte.default}});Object.defineProperty(R,"isScope",{enumerable:!0,get:function(){return Fte.default}});Object.defineProperty(R,"isSpecifierDefault",{enumerable:!0,get:function(){return jte.default}});Object.defineProperty(R,"isType",{enumerable:!0,get:function(){return Rte.default}});Object.defineProperty(R,"isValidES3Identifier",{enumerable:!0,get:function(){return qte.default}});Object.defineProperty(R,"isValidIdentifier",{enumerable:!0,get:function(){return Ute.default}});Object.defineProperty(R,"isVar",{enumerable:!0,get:function(){return Kte.default}});Object.defineProperty(R,"matchesPattern",{enumerable:!0,get:function(){return Vte.default}});Object.defineProperty(R,"prependToMemberExpression",{enumerable:!0,get:function(){return xte.default}});R.react=void 0;Object.defineProperty(R,"removeComments",{enumerable:!0,get:function(){return ate.default}});Object.defineProperty(R,"removeProperties",{enumerable:!0,get:function(){return Ste.default}});Object.defineProperty(R,"removePropertiesDeep",{enumerable:!0,get:function(){return gte.default}});Object.defineProperty(R,"removeTypeDuplicates",{enumerable:!0,get:function(){return bte.default}});Object.defineProperty(R,"shallowEqual",{enumerable:!0,get:function(){return Ite.default}});Object.defineProperty(R,"toBindingIdentifierName",{enumerable:!0,get:function(){return lte.default}});Object.defineProperty(R,"toBlock",{enumerable:!0,get:function(){return ute.default}});Object.defineProperty(R,"toComputedKey",{enumerable:!0,get:function(){return cte.default}});Object.defineProperty(R,"toExpression",{enumerable:!0,get:function(){return pte.default}});Object.defineProperty(R,"toIdentifier",{enumerable:!0,get:function(){return fte.default}});Object.defineProperty(R,"toKeyAlias",{enumerable:!0,get:function(){return hte.default}});Object.defineProperty(R,"toStatement",{enumerable:!0,get:function(){return dte.default}});Object.defineProperty(R,"traverse",{enumerable:!0,get:function(){return xi.default}});Object.defineProperty(R,"traverseFast",{enumerable:!0,get:function(){return Cte.default}});Object.defineProperty(R,"validate",{enumerable:!0,get:function(){return Yte.default}});Object.defineProperty(R,"valueToNode",{enumerable:!0,get:function(){return mte.default}});var Vee=Fu(),Yee=Ru(),Jee=rp(),Wee=np(),wa=op();Object.keys(wa).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(Zt,e))return;if(e in R&&R[e]===wa[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return wa[e]}})});var Xee=cp(),hh=mp(),$ee=bp(),Na=la();Object.keys(Na).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(Zt,e))return;if(e in R&&R[e]===Na[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return Na[e]}})});var Oa=rt();Object.keys(Oa).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(Zt,e))return;if(e in R&&R[e]===Oa[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return Oa[e]}})});var Hee=Qt(),zee=Op(),Gee=kp(),Qee=Lp(),Zee=Bp(),ete=Rp(),tte=ca(),rte=pa(),ste=fa(),ite=da(),nte=ha(),ate=Wp(),_a=Hp();Object.keys(_a).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(Zt,e))return;if(e in R&&R[e]===_a[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return _a[e]}})});var ka=Fr();Object.keys(ka).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(Zt,e))return;if(e in R&&R[e]===ka[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return ka[e]}})});var ote=Qp(),lte=tf(),ute=ya(),cte=sf(),pte=of(),fte=Ta(),hte=yf(),dte=Sf(),mte=Ef(),Da=ut();Object.keys(Da).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(Zt,e))return;if(e in R&&R[e]===Da[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return Da[e]}})});var yte=Af(),Tte=If(),xte=Nf(),Ste=Sa(),gte=ga(),bte=oa(),Ete=_f(),Pte=Es(),Ate=Mf(),vte=jf(),xi=qf();Object.keys(xi).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(Zt,e))return;if(e in R&&R[e]===xi[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return xi[e]}})});var Cte=xa(),Ite=ri(),wte=Mr(),Nte=Kf(),Ote=Wf(),_te=$f(),kte=Aa(),Dte=aa(),Lte=Gf(),Mte=Bn(),Bte=Zf(),Fte=th(),jte=ih(),Rte=si(),qte=ah(),Ute=Br(),Kte=lh(),Vte=Ln(),Yte=oi(),Jte=Mn(),La=Le();Object.keys(La).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(Zt,e))return;if(e in R&&R[e]===La[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return La[e]}})});var Wte=Lr(),Xte=fh(),nLe=R.react={isReactComponent:Vee.default,isCompatTag:Yee.default,buildChildren:Jee.default};R.toSequenceExpression=Xte.default;if(process.env.BABEL_TYPES_8_BREAKING)console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")});var Ma=A(function(Th){Object.defineProperty(Th,"__esModule",{value:!0});Th.isBindingIdentifier=Tre;Th.isBlockScoped=Ere;Th.isExpression=Sre;Th.isFlow=Ire;Th.isForAwaitStatement=Ore;Th.isGenerated=vre;Th.isPure=Cre;Th.isReferenced=bre;Th.isReferencedIdentifier=mre;Th.isReferencedMemberExpression=yre;Th.isRestProperty=wre;Th.isScope=gre;Th.isSpreadProperty=Nre;Th.isStatement=xre;Th.isUser=Are;Th.isVar=Pre;var Hte=ae(),{isBinding:zte,isBlockScoped:Gte,isExportDeclaration:Qte,isExpression:Zte,isFlow:ere,isForStatement:tre,isForXStatement:rre,isIdentifier:mh,isImportDeclaration:sre,isImportSpecifier:ire,isJSXIdentifier:nre,isJSXMemberExpression:are,isMemberExpression:ore,isRestElement:yh,isReferenced:Si,isScope:lre,isStatement:ure,isVar:cre,isVariableDeclaration:pre,react:fre,isForOfStatement:hre}=Hte,{isCompatTag:dre}=fre;function mre(e){let{node:t,parent:r}=this;if(mh(t,e))return Si(t,r,this.parentPath.parent);else if(nre(t,e)){if(!are(r)&&dre(t.name))return!1;return Si(t,r,this.parentPath.parent)}else return!1}function yre(){let{node:e,parent:t}=this;return ore(e)&&Si(e,t)}function Tre(){let{node:e,parent:t}=this,r=this.parentPath.parent;return mh(e)&&zte(e,t,r)}function xre(){let{node:e,parent:t}=this;if(ure(e)){if(pre(e)){if(rre(t,{left:e}))return!1;if(tre(t,{init:e}))return!1}return!0}else return!1}function Sre(){if(this.isIdentifier())return this.isReferencedIdentifier();else return Zte(this.node)}function gre(){return lre(this.node,this.parent)}function bre(){return Si(this.node,this.parent)}function Ere(){return Gte(this.node)}function Pre(){return cre(this.node)}function Are(){var e;return!!((e=this.node)!=null&&e.loc)}function vre(){return!this.isUser()}function Cre(e){return this.scope.isPure(this.node,e)}function Ire(){let{node:e}=this;if(ere(e))return!0;else if(sre(e))return e.importKind==="type"||e.importKind==="typeof";else if(Qte(e))return e.exportKind==="type";else if(ire(e))return e.importKind==="type"||e.importKind==="typeof";else return!1}function wre(){var e;return yh(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function Nre(){var e;return yh(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function Ore(){return hre(this.node,{await:!0})}Th.isExistentialTypeParam=function(){throw Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")};Th.isNumericLiteralTypeAnnotation=function(){throw Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var As=A(function(_h){Object.defineProperty(_h,"__esModule",{value:!0});_h.environmentVisitor=rse;_h.explode=wh;_h.isExplodedVisitor=Ih;_h.merge=Oh;_h.verify=Nh;var Ch=Nn(),Hre=Ma(),zre=ae(),xh=pt(),{DEPRECATED_KEYS:Sh,DEPRECATED_ALIASES:gh,FLIPPED_ALIAS_KEYS:bh,TYPES:Gre,__internal__deprecationWarning:Eh}=zre;function Qre(e){return e in Ch}function Ih(e){return e==null?void 0:e._exploded}function wh(e){if(Ih(e))return e;e._exploded=!0;for(let r of Object.keys(e)){if(yr(r))continue;let s=r.split("|");if(s.length===1)continue;let i=e[r];delete e[r];for(let n of s)e[n]=i}Nh(e),delete e.__esModule,Zre(e),vh(e);for(let r of Object.keys(e)){if(yr(r))continue;if(!Qre(r))continue;let s=e[r];for(let n of Object.keys(s))s[n]=ese(r,s[n]);delete e[r];let i=Ch[r];if(i!==null)for(let n of i){var t;(t=e[n])!=null||(e[n]={}),Ps(e[n],s)}else Ps(e,s)}for(let r of Object.keys(e)){if(yr(r))continue;let s=bh[r];if(r in Sh){let n=Sh[r];Eh(r,n,"Visitor "),s=[n]}else if(r in gh){let n=gh[r];Eh(r,n,"Visitor "),s=bh[n]}if(!s)continue;let i=e[r];delete e[r];for(let n of s){let a=e[n];if(a)Ps(a,i);else e[n]=Object.assign({},i)}}for(let r of Object.keys(e)){if(yr(r))continue;vh(e[r])}return e}function Nh(e){if(e._verified)return;if(typeof e==="function")throw Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if(t==="enter"||t==="exit")Ph(t,e[t]);if(yr(t))continue;if(!Gre.includes(t))throw Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.29.0`);let r=e[t];if(typeof r==="object")for(let s of Object.keys(r))if(s==="enter"||s==="exit")Ph(`${t}.${s}`,r[s]);else throw Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${s}`)}e._verified=!0}function Ph(e,t){let r=[].concat(t);for(let s of r)if(typeof s!=="function")throw TypeError(`Non-function found defined in ${e} with type ${typeof s}`)}function Oh(e,t=[],r){let s={_verified:!0,_exploded:!0};Object.defineProperty(s,"_exploded",{enumerable:!1}),Object.defineProperty(s,"_verified",{enumerable:!1});for(let i=0;i<e.length;i++){let n=wh(e[i]),a=t[i],o=n;if(a||r)o=Ah(o,a,r);Ps(s,o);for(let l of Object.keys(n)){if(yr(l))continue;let u=n[l];if(a||r)u=Ah(u,a,r);let p=s[l]||(s[l]={});Ps(p,u)}}return s}function Ah(e,t,r){let s={};for(let i of["enter","exit"]){let n=e[i];if(!Array.isArray(n))continue;n=n.map(function(a){let o=a;if(t)o=function(l){a.call(t,l,t)};if(r)o=r(t==null?void 0:t.key,i,o);if(o!==a)o.toString=()=>a.toString();return o}),s[i]=n}return s}function Zre(e){for(let t of Object.keys(e)){if(yr(t))continue;let r=e[t];if(typeof r==="function")e[t]={enter:r}}}function vh(e){if(e.enter&&!Array.isArray(e.enter))e.enter=[e.enter];if(e.exit&&!Array.isArray(e.exit))e.exit=[e.exit]}function ese(e,t){let r=`is${e}`,s=Hre[r],i=function(n){if(s.call(n))return t.apply(this,arguments)};return i.toString=()=>t.toString(),i}function yr(e){if(e.startsWith("_"))return!0;if(e==="enter"||e==="exit"||e==="shouldSkip")return!0;if(e==="denylist"||e==="noScope"||e==="skipKeys")return!0;if(e==="blacklist")return!0;return!1}function Ps(e,t){for(let r of["enter","exit"]){if(!t[r])continue;e[r]=[].concat(e[r]||[],t[r])}}var tse={FunctionParent(e){if(e.isArrowFunctionExpression())return;if(e.skip(),e.isMethod())if(!e.requeueComputedKeyAndDecorators)xh.requeueComputedKeyAndDecorators.call(e);else e.requeueComputedKeyAndDecorators()},Property(e){if(e.isObjectProperty())return;if(e.skip(),!e.requeueComputedKeyAndDecorators)xh.requeueComputedKeyAndDecorators.call(e);else e.requeueComputedKeyAndDecorators()}};function rse(e){return Oh([tse,e])}});var Mh=A(function(Dh){Object.defineProperty(Dh,"__esModule",{value:!0});Dh.default=void 0;var gi=ae(),lse=gi,use=bi(),cse=As(),pse=pt(),{getAssignmentIdentifiers:fse}=lse,hse={ReferencedIdentifier({node:e},t){if(e.name===t.oldName)e.name=t.newName},Scope(e,t){if(!e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)){if(e.skip(),e.isMethod())if(!e.requeueComputedKeyAndDecorators)pse.requeueComputedKeyAndDecorators.call(e);else e.requeueComputedKeyAndDecorators();if(e.isSwitchStatement())e.context.maybeQueue(e.get("discriminant"))}},ObjectProperty({node:e,scope:t},r){let{name:s}=e.key;if(e.shorthand&&(s===r.oldName||s===r.newName)&&t.getBindingIdentifier(s)===r.binding.identifier){var i;if(e.shorthand=!1,(i=e.extra)!=null&&i.shorthand)e.extra.shorthand=!1}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.isAssignmentExpression()?fse(e.node):e.getOuterBindingIdentifiers();for(let s in r)if(s===t.oldName)r[s].name=t.newName}};class kh{constructor(e,t,r){this.newName=r,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){let t=e.parentPath;if(!t.isExportDeclaration())return;if(t.isExportDefaultDeclaration()){let{declaration:r}=t.node;if(gi.isDeclaration(r)&&!r.id)return}if(t.isExportAllDeclaration())return;t.splitExportDeclaration()}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){let{binding:e,oldName:t,newName:r}=this,{scope:s,path:i}=e,n=i.find((l)=>l.isDeclaration()||l.isFunctionExpression()||l.isClassExpression());if(n){if(n.getOuterBindingIdentifiers()[t]===e.identifier)this.maybeConvertFromExportDeclaration(n)}let a=arguments[0]||s.block,o={discriminant:!0};if(gi.isMethod(a)){if(a.computed)o.key=!0;if(!gi.isObjectMethod(a))o.decorators=!0}if((0,use.traverseNode)(a,(0,cse.explode)(hse),s,this,s.path,o),!arguments[0])s.removeOwnBinding(t),s.bindings[r]=e,this.binding.identifier.name=r;if(n)this.maybeConvertFromClassFunctionDeclaration(i),this.maybeConvertFromClassFunctionExpression(i)}}Dh.default=kh});var Fh=A(function(Bh){Object.defineProperty(Bh,"__esModule",{value:!0});Bh.default=Sse;var dse=ae(),mse=Kr(),yse=As(),Tse=pt(),{VISITOR_KEYS:xse}=dse;function Sse(e,t,r){let s=(0,yse.explode)(t);if(s.enter||s.exit)throw Error("Should not be used with enter/exit visitors.");i(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e);function i(n,a,o,l,u,p,m,x){if(!o)return;let g=x||mse.NodePath.get({hub:m,parentPath:n,parent:a,container:l,listKey:p,key:u});Tse._forceSetScope.call(g);let E=s[o.type];if(E!=null&&E.enter)for(let b of E.enter)b.call(r,g,r);if(g.shouldSkip)return;let I=xse[o.type];if(!(I!=null&&I.length))return;for(let b of I){let C=o[b];if(!C)continue;if(Array.isArray(C))for(let N=0;N<C.length;N++){let z=C[N];i(g,o,z,C,N,b)}else i(g,o,C,o,b,null)}if(E!=null&&E.exit)for(let b of E.exit)b.call(r,g,r)}}});var Uh=A(function(Rh){Object.defineProperty(Rh,"__esModule",{value:!0});Rh.default=void 0;class jh{constructor({identifier:e,scope:t,path:r,kind:s}){if(this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=t,this.path=r,this.kind=s,(s==="var"||s==="hoisted")&&bse(r))this.reassign(r);this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){if(this.hasDeoptedValue)return;this.hasValue=!0,this.value=e}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){if(this.constant=!1,this.constantViolations.includes(e))return;this.constantViolations.push(e)}reference(e){if(this.referencePaths.includes(e))return;this.referenced=!0,this.references++,this.referencePaths.push(e)}dereference(){this.references--,this.referenced=!!this.references}}Rh.default=jh;function bse(e){let t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:r,key:s}=e;r;{parentPath:r,key:s}=r){if(r.isFunctionParent())return!1;if(s==="left"&&r.isForXStatement()||t&&s==="body"&&r.isLoop())return!0}return!1}});var Tr=A(function(Yh){Object.defineProperty(Yh,"__esModule",{value:!0});Yh.clear=Pse;Yh.clearPath=Kh;Yh.clearScope=Vh;Yh.getCachedPaths=Ase;Yh.getOrCreateCachedPaths=vse;Yh.scope=Yh.path=void 0;var Ei=Yh.path=new WeakMap,Ese=Yh.scope=new WeakMap;function Pse(){Kh(),Vh()}function Kh(){Yh.path=Ei=new WeakMap}function Vh(){Yh.scope=Ese=new WeakMap}function Ase(e){let{parent:t,parentPath:r}=e;return Ei.get(t)}function vse(e,t){let r=Ei.get(e);if(!r)Ei.set(e,r=new Map);return r}});var Wh=A(function(hLe,_se){_se.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var Xh=A(function(dLe,kse){kse.exports=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]});var qa=A(function(cd){Object.defineProperty(cd,"__esModule",{value:!0});cd.default=void 0;var Dse=Mh(),sd=Kr(),mLe=Fh(),Lse=Uh(),id=ae(),nd=id,$h=Tr(),Mse=Wh(),Bse=Xh(),{assignmentExpression:Fse,callExpression:Hh,cloneNode:zh,getBindingIdentifiers:ad,identifier:Sr,isArrayExpression:od,isBinary:jse,isCallExpression:Gh,isClass:Rse,isClassBody:qse,isClassDeclaration:Use,isExportAllDeclaration:ld,isExportDefaultDeclaration:Kse,isExportNamedDeclaration:Fa,isFunctionDeclaration:Vse,isIdentifier:xr,isImportDeclaration:ja,isLiteral:Yse,isMemberExpression:Jse,isMethod:Wse,isModuleSpecifier:Xse,isNullLiteral:$se,isObjectExpression:Hse,isProperty:zse,isPureish:Gse,isRegExpLiteral:Qse,isSuper:Zse,isTaggedTemplateExpression:eie,isTemplateLiteral:ud,isThisExpression:Qh,isUnaryExpression:tie,isVariableDeclaration:rie,expressionStatement:sie,matchesPattern:Zh,memberExpression:Ra,numericLiteral:iie,toIdentifier:nie,variableDeclaration:aie,variableDeclarator:oie,isObjectProperty:lie,isTopicReference:ed,isMetaProperty:uie,isPrivateName:cie,isExportDeclaration:pie,buildUndefinedNode:fie,sequenceExpression:hie}=id;function Oe(e,t){switch(e==null?void 0:e.type){default:if(ja(e)||pie(e)){var r;if((ld(e)||Fa(e)||ja(e))&&e.source)Oe(e.source,t);else if((Fa(e)||ja(e))&&(r=e.specifiers)!=null&&r.length)for(let s of e.specifiers)Oe(s,t);else if((Kse(e)||Fa(e))&&e.declaration)Oe(e.declaration,t)}else if(Xse(e))Oe(e.local,t);else if(Yse(e)&&!$se(e)&&!Qse(e)&&!ud(e))t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":Oe(e.object,t),Oe(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":Oe(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(let s of e.properties)Oe(s,t);break;case"SpreadElement":case"RestElement":Oe(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":Oe(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":case"ImportExpression":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),Oe(e.argument,t);break;case"AwaitExpression":t.push("await"),Oe(e.argument,t);break;case"AssignmentExpression":Oe(e.left,t);break;case"VariableDeclarator":Oe(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":Oe(e.id,t);break;case"PrivateName":Oe(e.id,t);break;case"ParenthesizedExpression":Oe(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":Oe(e.argument,t);break;case"MetaProperty":Oe(e.meta,t),Oe(e.property,t);break;case"JSXElement":Oe(e.openingElement,t);break;case"JSXOpeningElement":Oe(e.name,t);break;case"JSXFragment":Oe(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":Oe(e.namespace,t),Oe(e.name,t);break}}function td(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}function die(e){return e.isFunctionExpression()&&!e.node.id||e.isArrowFunctionExpression()}var rd=Symbol.for("should not be considered a local binding"),mie={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped())return;if(e.isImportDeclaration())return;if(e.isExportDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){if(nd.isTSQualifiedName(e.parent)&&e.parent.right===e.node)return;if(e.parentPath.isTSImportEqualsDeclaration())return;t.references.push(e)},ForXStatement(e,t){let r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){let{scope:s}=e;(s.getFunctionParent()||s.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){let{node:t,scope:r}=e;if(ld(t))return;let s=t.declaration;if(Use(s)||Vse(s)){let i=s.id;if(!i)return;let n=r.getBinding(i.name);n==null||n.reference(e)}else if(rie(s))for(let i of s.declarations)for(let n of Object.keys(ad(i))){let a=r.getBinding(n);a==null||a.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){if(e.node.operator==="delete")t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e)t=t.parent;if(t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let i=e.node.id.name;e.scope.bindings[i]=e.scope.parent.getBinding(i)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){let t=e.get("params");for(let r of t)e.scope.registerBinding("param",r);if(e.isFunctionExpression()&&e.node.id&&!e.node.id[rd])e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){if(e.node.id&&!e.node.id[rd])e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},Pi,yie=0;class ft{constructor(e){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;let{node:t}=e,r=$h.scope.get(t);if((r==null?void 0:r.path)===e)return r;$h.scope.set(t,this),this.uid=yie++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var e;let t,r=this.path;do{var s;let i=r.key==="key"||r.listKey==="decorators";if(r=r.parentPath,i&&r.isMethod())r=r.parentPath;if((s=r)!=null&&s.isScope())t=r}while(r&&!t);return(e=t)==null?void 0:e.scope}get references(){throw Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(e){let t=this.generateUidIdentifier(e);return this.push({id:t}),zh(t)}generateUidIdentifier(e){return Sr(this.generateUid(e))}generateUid(e="temp"){e=nie(e).replace(/^_+/,"").replace(/\d+$/g,"");let t,r=0;do{if(t=`_${e}`,r>=11)t+=r-1;else if(r>=9)t+=r-9;else if(r>=1)t+=r+1;r++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));let s=this.getProgramParent();return s.references[t]=!0,s.uids[t]=!0,t}generateUidBasedOnNode(e,t){let r=[];Oe(e,r);let s=r.join("$");return s=s.replace(/^_/,"")||t||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return Sr(this.generateUidBasedOnNode(e,t))}isStatic(e){if(Qh(e)||Zse(e)||ed(e))return!0;if(xr(e)){let t=this.getBinding(e.name);if(t)return t.constant;else return this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;else{let r=this.generateUidIdentifierBasedOnNode(e);if(!t)return this.push({id:r}),zh(r);return r}}checkBlockScopedCollisions(e,t,r,s){if(t==="param")return;if(e.kind==="local")return;if(t==="let"||e.kind==="let"||e.kind==="const"||e.kind==="module"||e.kind==="param"&&t==="const")throw this.path.hub.buildError(s,`Duplicate declaration "${r}"`,TypeError)}rename(e,t){let r=this.getBinding(e);if(r)t||(t=this.generateUidIdentifier(e).name),new Dse.default(r,e,t).rename(arguments[2])}dump(){let e="-".repeat(60);console.log(e);let t=this;do{console.log("#",t.block.type);for(let r of Object.keys(t.bindings)){let s=t.bindings[r];console.log(" -",r,{constant:s.constant,references:s.references,violations:s.constantViolations.length,kind:s.kind})}}while(t=t.parent);console.log(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){let t=e.get("declarations"),{kind:r}=e.node;for(let s of t)this.registerBinding(r==="using"||r==="await using"?"const":r,s)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){let t=e.node.importKind==="type"||e.node.importKind==="typeof",r=e.get("specifiers");for(let s of r){let i=t||s.isImportSpecifier()&&(s.node.importKind==="type"||s.node.importKind==="typeof");this.registerBinding(i?"unknown":"module",s)}}else if(e.isExportDeclaration()){let t=e.get("declaration");if(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())this.registerDeclaration(t)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return fie()}registerConstantViolation(e){let t=e.getAssignmentIdentifiers();for(let s of Object.keys(t)){var r;(r=this.getBinding(s))==null||r.reassign(e)}}registerBinding(e,t,r=t){if(!e)throw ReferenceError("no `kind`");if(t.isVariableDeclaration()){let n=t.get("declarations");for(let a of n)this.registerBinding(e,a);return}let s=this.getProgramParent(),i=t.getOuterBindingIdentifiers(!0);for(let n of Object.keys(i)){s.references[n]=!0;for(let a of i[n]){let o=this.getOwnBinding(n);if(o){if(o.identifier===a)continue;this.checkBlockScopedCollisions(o,e,n,a)}if(o)o.reassign(r);else this.bindings[n]=new Lse.default({identifier:a,scope:this,path:r,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){let t=this;do if(t.uids[e])return!0;while(t=t.parent);return!1}hasGlobal(e){let t=this;do if(t.globals[e])return!0;while(t=t.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){if(xr(e)){let n=this.getBinding(e.name);if(!n)return!1;if(t)return n.constant;return!0}else if(Qh(e)||uie(e)||ed(e)||cie(e))return!0;else if(Rse(e)){var r;if(e.superClass&&!this.isPure(e.superClass,t))return!1;if(((r=e.decorators)==null?void 0:r.length)>0)return!1;return this.isPure(e.body,t)}else if(qse(e)){for(let n of e.body)if(!this.isPure(n,t))return!1;return!0}else if(jse(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);else if(od(e)||(e==null?void 0:e.type)==="TupleExpression"){for(let n of e.elements)if(n!==null&&!this.isPure(n,t))return!1;return!0}else if(Hse(e)||(e==null?void 0:e.type)==="RecordExpression"){for(let n of e.properties)if(!this.isPure(n,t))return!1;return!0}else if(Wse(e)){var s;if(e.computed&&!this.isPure(e.key,t))return!1;if(((s=e.decorators)==null?void 0:s.length)>0)return!1;return!0}else if(zse(e)){var i;if(e.computed&&!this.isPure(e.key,t))return!1;if(((i=e.decorators)==null?void 0:i.length)>0)return!1;if(lie(e)||e.static){if(e.value!==null&&!this.isPure(e.value,t))return!1}return!0}else if(tie(e))return this.isPure(e.argument,t);else if(ud(e)){for(let n of e.expressions)if(!this.isPure(n,t))return!1;return!0}else if(eie(e))return Zh(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t);else if(Jse(e))return!e.computed&&xr(e.object)&&e.object.name==="Symbol"&&xr(e.property)&&e.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0});else if(Gh(e))return Zh(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&e.arguments.length===1&&nd.isStringLiteral(e.arguments[0]);else return Gse(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{let r=t.data[e];if(r!=null)return r}while(t=t.parent)}removeData(e){let t=this;do if(t.data[e]!=null)t.data[e]=null;while(t=t.parent)}init(){if(!this.inited)this.inited=!0,this.crawl()}crawl(){let e=this.path;td(this),this.data=Object.create(null);let t=this;do{if(t.crawling)return;if(t.path.isProgram())break}while(t=t.parent);let r=t,s={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,Pi||(Pi=sd.default.visitors.merge([{Scope(i){td(i.scope)}},mie])),e.type!=="Program"){let i=Pi[e.type];if(i)for(let n of i.enter)n.call(s,e,s)}e.traverse(Pi,s),this.crawling=!1;for(let i of s.assignments){let n=i.getAssignmentIdentifiers();for(let a of Object.keys(n)){if(i.scope.getBinding(a))continue;r.addGlobal(n[a])}i.scope.registerConstantViolation(i)}for(let i of s.references){let n=i.scope.getBinding(i.node.name);if(n)n.reference(i);else r.addGlobal(i.node)}for(let i of s.constantViolations)i.scope.registerConstantViolation(i)}push(e){let t=this.path;if(t.isPattern())t=this.getPatternParent().path;else if(!t.isBlockStatement()&&!t.isProgram())t=this.getBlockParent().path;if(t.isSwitchStatement())t=(this.getFunctionParent()||this.getProgramParent()).path;let{init:r,unique:s,kind:i="var",id:n}=e;if(!r&&!s&&(i==="var"||i==="let")&&die(t)&&Gh(t.parent,{callee:t.node})&&t.parent.arguments.length<=t.node.params.length&&xr(n)){t.pushContainer("params",n),t.scope.registerBinding("param",t.get("params")[t.node.params.length-1]);return}if(t.isLoop()||t.isCatchClause()||t.isFunction())t.ensureBlock(),t=t.get("body");let a=e._blockHoist==null?2:e._blockHoist,o=`declaration:${i}:${a}`,l=!s&&t.getData(o);if(!l){let m=aie(i,[]);if(m._blockHoist=a,[l]=t.unshiftContainer("body",[m]),!s)t.setData(o,l)}let u=oie(n,r),p=l.node.declarations.push(u);t.scope.registerBinding(i,l.get("declarations")[p-1])}getProgramParent(){let e=this;do if(e.path.isProgram())return e;while(e=e.parent);throw Error("Couldn't find a Program")}getFunctionParent(){let e=this;do if(e.path.isFunctionParent())return e;while(e=e.parent);return null}getBlockParent(){let e=this;do if(e.path.isBlockParent())return e;while(e=e.parent);throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do if(!e.path.isPattern())return e.getBlockParent();while(e=e.parent.parent);throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let e=Object.create(null),t=this;do{for(let r of Object.keys(t.bindings))if(r in e===!1)e[r]=t.bindings[r];t=t.parent}while(t);return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t=this,r;do{let i=t.getOwnBinding(e);if(i){var s;if((s=r)!=null&&s.isPattern()&&i.kind!=="param"&&i.kind!=="local");else return i}else if(!i&&e==="arguments"&&t.path.isFunction()&&!t.path.isArrowFunctionExpression())break;r=t.path}while(t=t.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return(t=this.getBinding(e))==null?void 0:t.identifier}getOwnBindingIdentifier(e){let t=this.bindings[e];return t==null?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){if(!e)return!1;let r,s,i;if(typeof t==="object")r=t.noGlobals,s=t.noUids,i=t.upToScope;else if(typeof t==="boolean")r=t;let n=this;do{if(i===n)break;if(n.hasOwnBinding(e))return!0}while(n=n.parent);if(!s&&this.hasUid(e))return!0;if(!r&&ft.globals.includes(e))return!0;if(!r&&ft.contextVariables.includes(e))return!0;return!1}parentHasBinding(e,t){var r;return(r=this.parent)==null?void 0:r.hasBinding(e,t)}moveBindingTo(e,t){let r=this.getBinding(e);if(r)r.scope.removeOwnBinding(e),r.scope=t,t.bindings[e]=r}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;(t=this.getBinding(e))==null||t.scope.removeOwnBinding(e);let r=this;do if(r.uids[e])r.uids[e]=!1;while(r=r.parent)}hoistVariables(e=(t)=>this.push({id:t})){this.crawl();let t=new Set;for(let r of Object.keys(this.bindings)){let s=this.bindings[r];if(!s)continue;let{path:i}=s;if(!i.isVariableDeclarator())continue;let{parent:n,parentPath:a}=i;if(n.kind!=="var"||t.has(n))continue;t.add(i.parent);let o,l=[];for(let u of n.declarations){if(o!=null||(o=u.id),u.init)l.push(Fse("=",u.id,u.init));let p=Object.keys(ad(u,!1,!0,!0));for(let m of p)e(Sr(m),u.init!=null)}if(a.parentPath.isForXStatement({left:n}))a.replaceWith(o);else if(l.length===0)a.remove();else{let u=l.length===1?l[0]:hie(l);if(a.parentPath.isForStatement({init:n}))a.replaceWith(u);else a.replaceWith(sie(u))}}}}cd.default=ft;ft.globals=[...Mse,...Bse];ft.contextVariables=["arguments","undefined","Infinity","NaN"];ft.prototype._renameFromMap=function(t,r,s,i){if(t[r])t[s]=i,t[r]=null};ft.prototype.traverse=function(e,t,r){(0,sd.default)(e,t,this,r,this.path)};ft.prototype._generateUid=function(t,r){let s=t;if(r>1)s+=r;return`_${s}`};ft.prototype.toArray=function(t,r,s){if(xr(t)){let a=this.getBinding(t.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return t}if(od(t))return t;if(xr(t,{name:"arguments"}))return Hh(Ra(Ra(Ra(Sr("Array"),Sr("prototype")),Sr("slice")),Sr("call")),[t]);let i,n=[t];if(r===!0)i="toConsumableArray";else if(typeof r==="number")n.push(iie(r)),i="slicedToArray";else i="toArray";if(s)n.unshift(this.path.hub.addHelper(i)),i="maybeArrayLike";return Hh(this.path.hub.addHelper(i),n)};ft.prototype.getAllBindingsOfKind=function(...t){let r=Object.create(null);for(let s of t){let i=this;do{for(let n of Object.keys(i.bindings)){let a=i.bindings[n];if(a.kind===s)r[n]=a}i=i.parent}while(i)}return r};Object.defineProperties(ft.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var Ka=A(function(Ua,vs){(function(e,t){if(typeof Ua==="object"&&typeof vs<"u")t(vs),vs.exports=r(vs);else if(typeof define==="function"&&define.amd)define(["module"],function(s){t.apply(this,arguments),s.exports=r(s)});else{let s={exports:{}};t(s),e=typeof globalThis<"u"?globalThis:e||self,e.sourcemapCodec=r(s)}function r(s){return"default"in s.exports?s.exports.default:s.exports}})(Ua,function(e){var{defineProperty:t,getOwnPropertyDescriptor:r,getOwnPropertyNames:s}=Object,i=Object.prototype.hasOwnProperty,n=(B,M)=>{for(var w in M)t(B,w,{get:M[w],enumerable:!0})},a=(B,M,w,K)=>{if(M&&typeof M==="object"||typeof M==="function"){for(let te of s(M))if(!i.call(B,te)&&te!==w)t(B,te,{get:()=>M[te],enumerable:!(K=r(M,te))||K.enumerable})}return B},o=(B)=>a(t({},"__esModule",{value:!0}),B),l={};n(l,{decode:()=>Wt,decodeGeneratedRanges:()=>st,decodeOriginalScopes:()=>ke,decodeRangeMappings:()=>Ve,encode:()=>Dt,encodeGeneratedRanges:()=>at,encodeOriginalScopes:()=>Fe,encodeRangeMappings:()=>kt}),e.exports=o(l);var u=44,p=59,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x=new Uint8Array(64),g=new Uint8Array(128);for(let B=0;B<m.length;B++){let M=m.charCodeAt(B);x[B]=M,g[M]=B}function E(B){let M=0,w=0,K=0;do{let te=B.next();K=g[te],M|=(K&31)<<w,w+=5}while(K&32);return M}function I(B){return B&1?-2147483648|-(B>>>1):B>>>1}function b(B,M){do{let w=M&31;if(M>>>=5,M>0)w|=32;B.write(x[w])}while(M>0)}function C(B){return B<0?-B<<1|1:B<<1}function N(B,M){if(B.pos>=M)return!1;return B.peek()!==u}var z=16384,j=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(B){return Buffer.from(B.buffer,B.byteOffset,B.byteLength).toString()}}:{decode(B){let M="";for(let w=0;w<B.length;w++)M+=String.fromCharCode(B[w]);return M}},V=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(z)}write(B){let{buffer:M}=this;if(M[this.pos++]=B,this.pos===z)this.out+=j.decode(M),this.pos=0}flush(){let{buffer:B,out:M,pos:w}=this;return w>0?M+j.decode(B.subarray(0,w)):M}},ie=class{constructor(B){this.pos=0,this.buffer=B}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(B){let{buffer:M,pos:w}=this,K=M.indexOf(B,w);return K===-1?M.length:K}},ge=[];function ke(B){let{length:M}=B,w=new ie(B),K=[],te=[],se=0;for(;w.pos<M;w.pos++){se+=I(E(w));let me=I(E(w));if(!N(w,M)){let ve=te.pop();ve[2]=se,ve[3]=me;continue}let Se=I(E(w)),fe=I(E(w))&1?[se,me,0,0,Se,I(E(w))]:[se,me,0,0,Se],Pe=ge;if(N(w,M)){Pe=[];do{let ve=I(E(w));Pe.push(ve)}while(N(w,M))}fe.vars=Pe,K.push(fe),te.push(fe)}return K}function Fe(B){let M=new V;for(let w=0;w<B.length;)w=Je(B,w,M,[0]);return M.flush()}function Je(B,M,w,K){let te=B[M],{0:se,1:me,2:Se,3:_e,4:Ae,vars:fe}=te;if(M>0)w.write(u);b(w,C(se-K[0])),K[0]=se,b(w,C(me)),b(w,C(Ae));let Pe=te.length===6?1:0;if(b(w,C(Pe)),te.length===6)b(w,C(te[5]));for(let ve of fe)b(w,C(ve));for(M++;M<B.length;){let ve=B[M],{0:oe,1:ye}=ve;if(oe>Se||oe===Se&&ye>=_e)break;M=Je(B,M,w,K)}return w.write(u),b(w,C(Se-K[0])),K[0]=Se,b(w,C(_e)),M}function st(B){let{length:M}=B,w=new ie(B),K=[],te=[],se=0,me=0,Se=0,_e=0,Ae=0,fe=0,Pe=0,ve=0;do{let oe=w.indexOf(";"),ye=0;for(;w.pos<oe;w.pos++){if(ye+=I(E(w)),!N(w,oe)){let Ce=te.pop();Ce[2]=se,Ce[3]=ye;continue}let L=I(E(w)),D=L&1,Y=L&2,G=L&4,ce=null,le=ge,pe;if(D){let Ce=me+I(E(w));Se=I(E(w))+(me===Ce?Se:0),me=Ce,pe=[se,ye,0,0,Ce,Se]}else pe=[se,ye,0,0];if(pe.isScope=!!G,Y){let Ce=_e,qe=Ae;_e+=I(E(w));let mt=Ce===_e;Ae=(mt?Ae:0)+I(E(w)),fe=(mt&&qe===Ae?fe:0)+I(E(w)),ce=[_e,Ae,fe]}if(pe.callsite=ce,N(w,oe)){le=[];do{Pe=se,ve=ye;let Ce=I(E(w)),qe;if(Ce<-1){qe=[[I(E(w))]];for(let mt=-1;mt>Ce;mt--){let Lt=Pe;Pe+=I(E(w)),ve=(Pe===Lt?ve:0)+I(E(w));let Mt=I(E(w));qe.push([Mt,Pe,ve])}}else qe=[[Ce]];le.push(qe)}while(N(w,oe))}pe.bindings=le,K.push(pe),te.push(pe)}se++,w.pos=oe+1}while(w.pos<M);return K}function at(B){if(B.length===0)return"";let M=new V;for(let w=0;w<B.length;)w=it(B,w,M,[0,0,0,0,0,0,0]);return M.flush()}function it(B,M,w,K){let te=B[M],{0:se,1:me,2:Se,3:_e,isScope:Ae,callsite:fe,bindings:Pe}=te;if(K[0]<se)dt(w,K[0],se),K[0]=se,K[1]=0;else if(M>0)w.write(u);b(w,C(te[1]-K[1])),K[1]=te[1];let ve=(te.length===6?1:0)|(fe?2:0)|(Ae?4:0);if(b(w,C(ve)),te.length===6){let{4:oe,5:ye}=te;if(oe!==K[2])K[3]=0;b(w,C(oe-K[2])),K[2]=oe,b(w,C(ye-K[3])),K[3]=ye}if(fe){let{0:oe,1:ye,2:L}=te.callsite;if(oe!==K[4])K[5]=0,K[6]=0;else if(ye!==K[5])K[6]=0;b(w,C(oe-K[4])),K[4]=oe,b(w,C(ye-K[5])),K[5]=ye,b(w,C(L-K[6])),K[6]=L}if(Pe)for(let oe of Pe){if(oe.length>1)b(w,C(-oe.length));let ye=oe[0][0];b(w,C(ye));let L=se,D=me;for(let Y=1;Y<oe.length;Y++){let G=oe[Y];b(w,C(G[1]-L)),L=G[1],b(w,C(G[2]-D)),D=G[2],b(w,C(G[0]))}}for(M++;M<B.length;){let oe=B[M],{0:ye,1:L}=oe;if(ye>Se||ye===Se&&L>=_e)break;M=it(B,M,w,K)}if(K[0]<Se)dt(w,K[0],Se),K[0]=Se,K[1]=0;else w.write(u);return b(w,C(_e-K[1])),K[1]=_e,M}function dt(B,M,w){do B.write(p);while(++M<w)}function Ve(B){let{length:M}=B,w=new ie(B),K=[];do{let te=w.indexOf(";"),se=[],me=0;while(w.pos<te)me+=E(w),se.push(me);K.push(se),w.pos=te+1}while(w.pos<=M);return K}function kt(B){if(B.length===0)return"";let M=new V;for(let w=0;w<B.length;w++){let K=B[w];if(w>0)M.write(p);let te=0;for(let se=0;se<K.length;se++){let me=K[se];b(M,me-te),te=me}}return M.flush()}function Wt(B){let{length:M}=B,w=new ie(B),K=[],te=0,se=0,me=0,Se=0,_e=0;do{let Ae=w.indexOf(";"),fe=[],Pe=!0,ve=0;te=0;while(w.pos<Ae){let oe;if(te+=I(E(w)),te<ve)Pe=!1;if(ve=te,N(w,Ae))if(se+=I(E(w)),me+=I(E(w)),Se+=I(E(w)),N(w,Ae))_e+=I(E(w)),oe=[te,se,me,Se,_e];else oe=[te,se,me,Se];else oe=[te];fe.push(oe),w.pos++}if(!Pe)Ze(fe);K.push(fe),w.pos=Ae+1}while(w.pos<=M);return K}function Ze(B){B.sort(Xt)}function Xt(B,M){return B[0]-M[0]}function Dt(B){let M=new V,w=0,K=0,te=0,se=0;for(let me=0;me<B.length;me++){let Se=B[me];if(me>0)M.write(p);if(Se.length===0)continue;let _e=0;for(let Ae=0;Ae<Se.length;Ae++){let fe=Se[Ae];if(Ae>0)M.write(u);if(b(M,C(fe[0]-_e)),_e=fe[0],fe.length===1)continue;if(b(M,C(fe[1]-w)),b(M,C(fe[2]-K)),b(M,C(fe[3]-te)),w=fe[1],K=fe[2],te=fe[3],fe.length===4)continue;b(M,C(fe[4]-se)),se=fe[4]}}return M.flush()}})});var fd=A(function(Va,Ya){(function(e,t){typeof Va==="object"&&typeof Ya<"u"?Ya.exports=t():typeof define==="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.resolveURI=t())})(Va,function(){let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function s(b){return e.test(b)}function i(b){return b.startsWith("//")}function n(b){return b.startsWith("/")}function a(b){return b.startsWith("file:")}function o(b){return/^[.?#]/.test(b)}function l(b){let C=t.exec(b);return p(C[1],C[2]||"",C[3],C[4]||"",C[5]||"/",C[6]||"",C[7]||"")}function u(b){let C=r.exec(b),N=C[2];return p("file:","",C[1]||"","",n(N)?N:"/"+N,C[3]||"",C[4]||"")}function p(b,C,N,z,j,V,ie){return{scheme:b,user:C,host:N,port:z,path:j,query:V,hash:ie,type:7}}function m(b){if(i(b)){let N=l("http:"+b);return N.scheme="",N.type=6,N}if(n(b)){let N=l("http://foo.com"+b);return N.scheme="",N.host="",N.type=5,N}if(a(b))return u(b);if(s(b))return l(b);let C=l("http://foo.com/"+b);return C.scheme="",C.host="",C.type=b?b.startsWith("?")?3:b.startsWith("#")?2:4:1,C}function x(b){if(b.endsWith("/.."))return b;let C=b.lastIndexOf("/");return b.slice(0,C+1)}function g(b,C){if(E(C,C.type),b.path==="/")b.path=C.path;else b.path=x(C.path)+b.path}function E(b,C){let N=C<=4,z=b.path.split("/"),j=1,V=0,ie=!1;for(let ke=1;ke<z.length;ke++){let Fe=z[ke];if(!Fe){ie=!0;continue}if(ie=!1,Fe===".")continue;if(Fe===".."){if(V)ie=!0,V--,j--;else if(N)z[j++]=Fe;continue}z[j++]=Fe,V++}let ge="";for(let ke=1;ke<j;ke++)ge+="/"+z[ke];if(!ge||ie&&!ge.endsWith("/.."))ge+="/";b.path=ge}function I(b,C){if(!b&&!C)return"";let N=m(b),z=N.type;if(C&&z!==7){let V=m(C),ie=V.type;switch(z){case 1:N.hash=V.hash;case 2:N.query=V.query;case 3:case 4:g(N,V);case 5:N.user=V.user,N.host=V.host,N.port=V.port;case 6:N.scheme=V.scheme}if(ie>z)z=ie}E(N,z);let j=N.query+N.hash;switch(z){case 2:case 3:return j;case 4:{let V=N.path.slice(1);if(!V)return j||".";if(o(C||b)&&!o(V))return"./"+V+j;return V+j}case 5:return N.path+j;default:return N.scheme+"//"+N.user+N.host+N.port+N.path+j}}return I})});var Wa=A(function(Ja,Cs){(function(e,t){if(typeof Ja==="object"&&typeof Cs<"u")t(Cs,fd(),Ka()),Cs.exports=r(Cs);else if(typeof define==="function"&&define.amd)define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],function(s){t.apply(this,arguments),s.exports=r(s)});else{let s={exports:{}};t(s,e.resolveURI,e.sourcemapCodec),e=typeof globalThis<"u"?globalThis:e||self,e.traceMapping=r(s)}function r(s){return"default"in s.exports?s.exports.default:s.exports}})(Ja,function(e,t,r){var{create:s,defineProperty:i,getOwnPropertyDescriptor:n,getOwnPropertyNames:a,getPrototypeOf:o}=Object,l=Object.prototype.hasOwnProperty,u=(v,_)=>function(){return _||(0,v[a(v)[0]])((_={exports:{}}).exports,_),_.exports},p=(v,_)=>{for(var k in _)i(v,k,{get:_[k],enumerable:!0})},m=(v,_,k,q)=>{if(_&&typeof _==="object"||typeof _==="function"){for(let ee of a(_))if(!l.call(v,ee)&&ee!==k)i(v,ee,{get:()=>_[ee],enumerable:!(q=n(_,ee))||q.enumerable})}return v},x=(v,_,k)=>(k=v!=null?s(o(v)):{},m(_||!v||!v.__esModule?i(k,"default",{value:v,enumerable:!0}):k,v)),g=(v)=>m(i({},"__esModule",{value:!0}),v),E=u({"umd:@jridgewell/sourcemap-codec"(v,_){_.exports=r}}),I=u({"umd:@jridgewell/resolve-uri"(v,_){_.exports=t}}),b={};p(b,{AnyMap:()=>te,FlattenMap:()=>te,GREATEST_LOWER_BOUND:()=>ve,LEAST_UPPER_BOUND:()=>Pe,TraceMap:()=>oe,allGeneratedPositionsFor:()=>le,decodedMap:()=>Mt,decodedMappings:()=>D,eachMapping:()=>pe,encodedMap:()=>Cr,encodedMappings:()=>L,generatedPositionFor:()=>ce,isIgnored:()=>mt,originalPositionFor:()=>G,presortedDecodedMap:()=>Lt,sourceContentFor:()=>qe,traceSegment:()=>Y}),e.exports=g(b);var C=x(E()),N=x(I());function z(v){if(!v)return"";let _=v.lastIndexOf("/");return v.slice(0,_+1)}function j(v,_){let k=z(v),q=_?_+"/":"";return(ee)=>(0,N.default)(q+(ee||""),k)}var V=0,ie=1,ge=2,ke=3,Fe=4,Je=1,st=2;function at(v,_){let k=it(v,0);if(k===v.length)return v;if(!_)v=v.slice();for(let q=k;q<v.length;q=it(v,q+1))v[q]=Ve(v[q],_);return v}function it(v,_){for(let k=_;k<v.length;k++)if(!dt(v[k]))return k;return v.length}function dt(v){for(let _=1;_<v.length;_++)if(v[_][V]<v[_-1][V])return!1;return!0}function Ve(v,_){if(!_)v=v.slice();return v.sort(kt)}function kt(v,_){return v[V]-_[V]}function Wt(v,_){let k=_.map(()=>[]);for(let q=0;q<v.length;q++){let ee=v[q];for(let X=0;X<ee.length;X++){let de=ee[X];if(de.length===1)continue;let we=de[ie],he=de[ge],je=de[ke],Ue=k[we];(Ue[he]||(Ue[he]=[])).push([je,q,de[V]])}}for(let q=0;q<k.length;q++){let ee=k[q];for(let X=0;X<ee.length;X++){let de=ee[X];if(de)de.sort(kt)}}return k}var Ze=!1;function Xt(v,_,k,q){while(k<=q){let ee=k+(q-k>>1),X=v[ee][V]-_;if(X===0)return Ze=!0,ee;if(X<0)k=ee+1;else q=ee-1}return Ze=!1,k-1}function Dt(v,_,k){for(let q=k+1;q<v.length;k=q++)if(v[q][V]!==_)break;return k}function B(v,_,k){for(let q=k-1;q>=0;k=q--)if(v[q][V]!==_)break;return k}function M(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function w(v,_,k,q){let{lastKey:ee,lastNeedle:X,lastIndex:de}=k,we=0,he=v.length-1;if(q===ee){if(_===X)return Ze=de!==-1&&v[de][V]===_,de;if(_>=X)we=de===-1?0:de;else he=de}return k.lastKey=q,k.lastNeedle=_,k.lastIndex=Xt(v,_,we,he)}function K(v){return typeof v==="string"?JSON.parse(v):v}var te=function(v,_){let k=K(v);if(!("sections"in k))return new oe(k,_);let q=[],ee=[],X=[],de=[],we=[];se(k,_,q,ee,X,de,we,0,0,1/0,1/0);let he={version:3,file:k.file,names:de,sources:ee,sourcesContent:X,mappings:q,ignoreList:we};return Lt(he)};function se(v,_,k,q,ee,X,de,we,he,je,Ue){let{sections:Ke}=v;for(let nt=0;nt<Ke.length;nt++){let{map:ot,offset:Pt}=Ke[nt],At=je,jt=Ue;if(nt+1<Ke.length){let Ir=Ke[nt+1].offset;if(At=Math.min(je,we+Ir.line),At===je)jt=Math.min(Ue,he+Ir.column);else if(At<je)jt=he+Ir.column}me(ot,_,k,q,ee,X,de,we+Pt.line,he+Pt.column,At,jt)}}function me(v,_,k,q,ee,X,de,we,he,je,Ue){let Ke=K(v);if("sections"in Ke)return se(...arguments);let nt=new oe(Ke,_),ot=q.length,Pt=X.length,At=D(nt),{resolvedSources:jt,sourcesContent:Ir,ignoreList:tn}=nt;if(Se(q,jt),Se(X,nt.names),Ir)Se(ee,Ir);else for(let lt=0;lt<jt.length;lt++)ee.push(null);if(tn)for(let lt=0;lt<tn.length;lt++)de.push(tn[lt]+ot);for(let lt=0;lt<At.length;lt++){let rn=we+lt;if(rn>je)return;let Tl=_e(k,rn),Ux=lt===0?he:0,xl=At[lt];for(let sn=0;sn<xl.length;sn++){let ar=xl[sn],Ks=Ux+ar[V];if(rn===je&&Ks>=Ue)return;if(ar.length===1){Tl.push([Ks]);continue}let Sl=ot+ar[ie],gl=ar[ge],bl=ar[ke];Tl.push(ar.length===4?[Ks,Sl,gl,bl]:[Ks,Sl,gl,bl,Pt+ar[Fe]])}}}function Se(v,_){for(let k=0;k<_.length;k++)v.push(_[k])}function _e(v,_){for(let k=v.length;k<=_;k++)v[k]=[];return v[_]}var Ae="`line` must be greater than 0 (lines start at line 1)",fe="`column` must be greater than or equal to 0 (columns start at column 0)",Pe=-1,ve=1,oe=class{constructor(v,_){let k=typeof v==="string";if(!k&&v._decodedMemo)return v;let q=K(v),{version:ee,file:X,names:de,sourceRoot:we,sources:he,sourcesContent:je}=q;this.version=ee,this.file=X,this.names=de||[],this.sourceRoot=we,this.sources=he,this.sourcesContent=je,this.ignoreList=q.ignoreList||q.x_google_ignoreList||void 0;let Ue=j(_,we);this.resolvedSources=he.map(Ue);let{mappings:Ke}=q;if(typeof Ke==="string")this._encoded=Ke,this._decoded=void 0;else if(Array.isArray(Ke))this._encoded=void 0,this._decoded=at(Ke,k);else if(q.sections)throw Error("TraceMap passed sectioned source map, please use FlattenMap export instead");else throw Error(`invalid source map: ${JSON.stringify(q)}`);this._decodedMemo=M(),this._bySources=void 0,this._bySourceMemos=void 0}};function ye(v){return v}function L(v){var _,k;return(k=(_=ye(v))._encoded)!=null?k:_._encoded=(0,C.encode)(ye(v)._decoded)}function D(v){var _;return(_=ye(v))._decoded||(_._decoded=(0,C.decode)(ye(v)._encoded))}function Y(v,_,k){let q=D(v);if(_>=q.length)return null;let ee=q[_],X=nr(ee,ye(v)._decodedMemo,_,k,ve);return X===-1?null:ee[X]}function G(v,_){let{line:k,column:q,bias:ee}=_;if(k--,k<0)throw Error(Ae);if(q<0)throw Error(fe);let X=D(v);if(k>=X.length)return Ft(null,null,null,null);let de=X[k],we=nr(de,ye(v)._decodedMemo,k,q,ee||ve);if(we===-1)return Ft(null,null,null,null);let he=de[we];if(he.length===1)return Ft(null,null,null,null);let{names:je,resolvedSources:Ue}=v;return Ft(Ue[he[ie]],he[ge]+1,he[ke],he.length===5?je[he[Fe]]:null)}function ce(v,_){let{source:k,line:q,column:ee,bias:X}=_;return yl(v,k,q,ee,X||ve,!1)}function le(v,_){let{source:k,line:q,column:ee,bias:X}=_;return yl(v,k,q,ee,X||Pe,!0)}function pe(v,_){let k=D(v),{names:q,resolvedSources:ee}=v;for(let X=0;X<k.length;X++){let de=k[X];for(let we=0;we<de.length;we++){let he=de[we],je=X+1,Ue=he[0],Ke=null,nt=null,ot=null,Pt=null;if(he.length!==1)Ke=ee[he[1]],nt=he[2]+1,ot=he[3];if(he.length===5)Pt=q[he[4]];_({generatedLine:je,generatedColumn:Ue,source:Ke,originalLine:nt,originalColumn:ot,name:Pt})}}}function Ce(v,_){let{sources:k,resolvedSources:q}=v,ee=k.indexOf(_);if(ee===-1)ee=q.indexOf(_);return ee}function qe(v,_){let{sourcesContent:k}=v;if(k==null)return null;let q=Ce(v,_);return q===-1?null:k[q]}function mt(v,_){let{ignoreList:k}=v;if(k==null)return!1;let q=Ce(v,_);return q===-1?!1:k.includes(q)}function Lt(v,_){let k=new oe(Bt(v,[]),_);return ye(k)._decoded=v.mappings,k}function Mt(v){return Bt(v,D(v))}function Cr(v){return Bt(v,L(v))}function Bt(v,_){return{version:v.version,file:v.file,names:v.names,sourceRoot:v.sourceRoot,sources:v.sources,sourcesContent:v.sourcesContent,mappings:_,ignoreList:v.ignoreList||v.x_google_ignoreList}}function Ft(v,_,k,q){return{source:v,line:_,column:k,name:q}}function yt(v,_){return{line:v,column:_}}function nr(v,_,k,q,ee){let X=w(v,q,_,k);if(Ze)X=(ee===Pe?Dt:B)(v,q,X);else if(ee===Pe)X++;if(X===-1||X===v.length)return-1;return X}function qx(v,_,k,q,ee){let X=nr(v,_,k,q,ve);if(!Ze&&ee===Pe)X++;if(X===-1||X===v.length)return[];let de=Ze?q:v[X][V];if(!Ze)X=B(v,de,X);let we=Dt(v,de,X),he=[];for(;X<=we;X++){let je=v[X];he.push(yt(je[Je]+1,je[st]))}return he}function yl(v,_,k,q,ee,X){var de,we;if(k--,k<0)throw Error(Ae);if(q<0)throw Error(fe);let{sources:he,resolvedSources:je}=v,Ue=he.indexOf(_);if(Ue===-1)Ue=je.indexOf(_);if(Ue===-1)return X?[]:yt(null,null);let Ke=(de=ye(v))._bySourceMemos||(de._bySourceMemos=he.map(M)),ot=((we=ye(v))._bySources||(we._bySources=Wt(D(v),Ke)))[Ue][k];if(ot==null)return X?[]:yt(null,null);let Pt=Ke[Ue];if(X)return qx(ot,Pt,k,q,ee);let At=nr(ot,Pt,k,q,ee);if(At===-1)return yt(null,null);let jt=ot[At];return yt(jt[Je]+1,jt[st])}})});var hd=A(function(Xa,Is){(function(e,t){if(typeof Xa==="object"&&typeof Is<"u")t(Is,Ka(),Wa()),Is.exports=r(Is);else if(typeof define==="function"&&define.amd)define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],function(s){t.apply(this,arguments),s.exports=r(s)});else{let s={exports:{}};t(s,e.sourcemapCodec,e.traceMapping),e=typeof globalThis<"u"?globalThis:e||self,e.genMapping=r(s)}function r(s){return"default"in s.exports?s.exports.default:s.exports}})(Xa,function(e,t,r){var{create:s,defineProperty:i,getOwnPropertyDescriptor:n,getOwnPropertyNames:a,getPrototypeOf:o}=Object,l=Object.prototype.hasOwnProperty,u=(L,D)=>function(){return D||(0,L[a(L)[0]])((D={exports:{}}).exports,D),D.exports},p=(L,D)=>{for(var Y in D)i(L,Y,{get:D[Y],enumerable:!0})},m=(L,D,Y,G)=>{if(D&&typeof D==="object"||typeof D==="function"){for(let ce of a(D))if(!l.call(L,ce)&&ce!==Y)i(L,ce,{get:()=>D[ce],enumerable:!(G=n(D,ce))||G.enumerable})}return L},x=(L,D,Y)=>(Y=L!=null?s(o(L)):{},m(D||!L||!L.__esModule?i(Y,"default",{value:L,enumerable:!0}):Y,L)),g=(L)=>m(i({},"__esModule",{value:!0}),L),E=u({"umd:@jridgewell/sourcemap-codec"(L,D){D.exports=t}}),I=u({"umd:@jridgewell/trace-mapping"(L,D){D.exports=r}}),b={};p(b,{GenMapping:()=>dt,addMapping:()=>Wt,addSegment:()=>kt,allMappings:()=>te,fromMap:()=>K,maybeAddMapping:()=>Xt,maybeAddSegment:()=>Ze,setIgnore:()=>B,setSourceContent:()=>Dt,toDecodedMap:()=>M,toEncodedMap:()=>w}),e.exports=g(b);var C=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function N(L){return L}function z(L,D){return N(L)._indexes[D]}function j(L,D){let Y=z(L,D);if(Y!==void 0)return Y;let{array:G,_indexes:ce}=N(L),le=G.push(D);return ce[D]=le-1}function V(L,D){let Y=z(L,D);if(Y===void 0)return;let{array:G,_indexes:ce}=N(L);for(let le=Y+1;le<G.length;le++){let pe=G[le];G[le-1]=pe,ce[pe]--}ce[D]=void 0,G.pop()}var ie=x(E()),ge=x(I()),ke=0,Fe=1,Je=2,st=3,at=4,it=-1,dt=class{constructor({file:L,sourceRoot:D}={}){this._names=new C,this._sources=new C,this._sourcesContent=[],this._mappings=[],this.file=L,this.sourceRoot=D,this._ignoreList=new C}};function Ve(L){return L}function kt(L,D,Y,G,ce,le,pe,Ce){return se(!1,L,D,Y,G,ce,le,pe,Ce)}function Wt(L,D){return ye(!1,L,D)}var Ze=(L,D,Y,G,ce,le,pe,Ce)=>se(!0,L,D,Y,G,ce,le,pe,Ce),Xt=(L,D)=>ye(!0,L,D);function Dt(L,D,Y){let{_sources:G,_sourcesContent:ce}=Ve(L),le=j(G,D);ce[le]=Y}function B(L,D,Y=!0){let{_sources:G,_sourcesContent:ce,_ignoreList:le}=Ve(L),pe=j(G,D);if(pe===ce.length)ce[pe]=null;if(Y)j(le,pe);else V(le,pe)}function M(L){let{_mappings:D,_sources:Y,_sourcesContent:G,_names:ce,_ignoreList:le}=Ve(L);return fe(D),{version:3,file:L.file||void 0,names:ce.array,sourceRoot:L.sourceRoot||void 0,sources:Y.array,sourcesContent:G,mappings:D,ignoreList:le.array}}function w(L){let D=M(L);return Object.assign({},D,{mappings:(0,ie.encode)(D.mappings)})}function K(L){let D=new ge.TraceMap(L),Y=new dt({file:D.file,sourceRoot:D.sourceRoot});if(Pe(Ve(Y)._names,D.names),Pe(Ve(Y)._sources,D.sources),Ve(Y)._sourcesContent=D.sourcesContent||D.sources.map(()=>null),Ve(Y)._mappings=(0,ge.decodedMappings)(D),D.ignoreList)Pe(Ve(Y)._ignoreList,D.ignoreList);return Y}function te(L){let D=[],{_mappings:Y,_sources:G,_names:ce}=Ve(L);for(let le=0;le<Y.length;le++){let pe=Y[le];for(let Ce=0;Ce<pe.length;Ce++){let qe=pe[Ce],mt={line:le+1,column:qe[ke]},Lt=void 0,Mt=void 0,Cr=void 0;if(qe.length!==1){if(Lt=G.array[qe[Fe]],Mt={line:qe[Je]+1,column:qe[st]},qe.length===5)Cr=ce.array[qe[at]]}D.push({generated:mt,source:Lt,original:Mt,name:Cr})}}return D}function se(L,D,Y,G,ce,le,pe,Ce,qe){let{_mappings:mt,_sources:Lt,_sourcesContent:Mt,_names:Cr}=Ve(D),Bt=Se(mt,Y),Ft=_e(Bt,G);if(!ce){if(L&&ve(Bt,Ft))return;return Ae(Bt,Ft,[G])}me(le),me(pe);let yt=j(Lt,ce),nr=Ce?j(Cr,Ce):it;if(yt===Mt.length)Mt[yt]=qe!=null?qe:null;if(L&&oe(Bt,Ft,yt,le,pe,nr))return;return Ae(Bt,Ft,Ce?[G,yt,le,pe,nr]:[G,yt,le,pe])}function me(L){}function Se(L,D){for(let Y=L.length;Y<=D;Y++)L[Y]=[];return L[D]}function _e(L,D){let Y=L.length;for(let G=Y-1;G>=0;Y=G--){let ce=L[G];if(D>=ce[ke])break}return Y}function Ae(L,D,Y){for(let G=L.length;G>D;G--)L[G]=L[G-1];L[D]=Y}function fe(L){let{length:D}=L,Y=D;for(let G=Y-1;G>=0;Y=G,G--)if(L[G].length>0)break;if(Y<D)L.length=Y}function Pe(L,D){for(let Y=0;Y<D.length;Y++)j(L,D[Y])}function ve(L,D){if(D===0)return!0;return L[D-1].length===1}function oe(L,D,Y,G,ce,le){if(D===0)return!1;let pe=L[D-1];if(pe.length===1)return!1;return Y===pe[Fe]&&G===pe[Je]&&ce===pe[st]&&le===(pe.length===5?pe[at]:it)}function ye(L,D,Y){let{generated:G,source:ce,original:le,name:pe,content:Ce}=Y;if(!ce)return se(L,D,G.line-1,G.column,null,null,null,null,null);return me(le),se(L,D,G.line-1,G.column,ce,le.line-1,le.column,pe,Ce)}})});var Td=A(function(md){Object.defineProperty(md,"__esModule",{value:!0});md.default=void 0;var er=hd(),$a=Wa();class dd{constructor(e,t){var r;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;let s=this._map=new er.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=(r=e.sourceFileName)==null?void 0:r.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new $a.TraceMap(e.inputSourceMap);let n=this._inputMap.resolvedSources;if(n.length)for(let a=0;a<n.length;a++){var i;(0,er.setSourceContent)(s,n[a],(i=this._inputMap.sourcesContent)==null?void 0:i[a])}}if(typeof t==="string"&&!e.inputSourceMap)(0,er.setSourceContent)(s,this._sourceFileName,t);else if(typeof t==="object")for(let n of Object.keys(t))(0,er.setSourceContent)(s,n.replace(/\\/g,"/"),t[n])}get(){return(0,er.toEncodedMap)(this._map)}getDecoded(){return(0,er.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,er.allMappings)(this._map))}mark(e,t,r,s,i,n){var a;this._rawMappings=void 0;let o;if(t!=null)if(this._inputMap){if(o=(0,$a.originalPositionFor)(this._inputMap,{line:t,column:r}),o.name&&(i||s!=null&&o.column===r))s=o.name;else if(i){let l=(0,$a.originalPositionFor)(this._inputMap,i);if(l.name)s=l.name}}else o={name:null,source:(n==null?void 0:n.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:r};(0,er.maybeAddMapping)(this._map,{name:s,generated:e,source:(a=o)==null?void 0:a.source,original:o})}}md.default=dd});var Ed=A(function(gd){Object.defineProperty(gd,"__esModule",{value:!0});gd.default=void 0;var xd=[];for(let e=0;e<32;e++)xd.push(" ".repeat(e*2));class Sd{constructor(e,t){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._canMarkIdName=!0,this._indentChar="",this._queuedChar=0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=t}get(){let{_map:e,_last:t}=this;if(this._queuedChar!==32)this._flush();let r=t===10?(this._buf+this._str).trimRight():this._buf+this._str;if(e===null)return{code:r,decodedMap:void 0,map:null,rawMappings:void 0};let s={code:r,decodedMap:e.getDecoded(),get __mergedMap(){return this.map},get map(){let i=e.get();return s.map=i,i},set map(i){Object.defineProperty(s,"map",{value:i,writable:!0})},get rawMappings(){let i=e.getRawMappings();return s.rawMappings=i,i},set rawMappings(i){Object.defineProperty(s,"rawMappings",{value:i,writable:!0})}};return s}append(e,t,r=!1){this._flush(),this._append(e,t,r)}appendChar(e){this._flush(),this._appendChar(e,1,!0)}queue(e){this._flush(),this._queuedChar=e}_flush(){let e=this._queuedChar;if(e!==0)this._appendChar(e,1,!0),this._queuedChar=0}_appendChar(e,t,r){if(this._last=e,e===-1){let n=t>=64?this._indentChar.repeat(t):xd[t/2];this._str+=n}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);let s=e===32,i=this._position;if(e!==10){if(this._map){let n=this._sourcePosition;if(r&&n){if(this._map.mark(i,n.line,n.column,s?void 0:n.identifierName,s?void 0:n.identifierNamePos,n.filename),!s&&this._canMarkIdName)n.identifierName=void 0,n.identifierNamePos=void 0}else this._map.mark(i)}i.column+=t}else i.line++,i.column=0}_append(e,t,r){let s=e.length,i=this._position,n=this._sourcePosition;if(this._last=-1,++this._appendCount>4096)+this._str,this._buf+=this._str,this._str=e,this._appendCount=0;else this._str+=e;let a=!r&&this._map!==null;if(!t&&!a){i.column+=s;return}let{column:o,identifierName:l,identifierNamePos:u,filename:p}=n,m=n.line;if((l!=null||u!=null)&&this._canMarkIdName)n.identifierName=void 0,n.identifierNamePos=void 0;let x=e.indexOf(`
19
+ `)}`)}return r.shapeOf=e,r}function Sk(){function e(t){var r;let s=t;while(t){let{type:i}=s;if(i==="OptionalCallExpression"){if(s.optional)return;s=s.callee;continue}if(i==="OptionalMemberExpression"){if(s.optional)return;s=s.object;continue}break}throw TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=s)==null?void 0:r.type}`)}return e}function mc(...e){function t(...r){for(let s of e)s(...r)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var gk=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),bk=new Set(["default","optional","deprecated","validate"]),Yn={};function Ek(...e){return(t,r={})=>{let s=r.aliases;if(!s){var i;if(r.inherits)s=(i=Yn[r.inherits].aliases)==null?void 0:i.slice();s!=null||(s=[]),r.aliases=s}let n=e.filter((a)=>!s.includes(a));s.unshift(...n),yc(t,r)}}function yc(e,t={}){let r=t.inherits&&Yn[t.inherits]||{},s=t.fields;if(!s){if(s={},r.fields){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let u=r.fields[l],p=u.default;if(Array.isArray(p)?p.length>0:p&&typeof p==="object")throw Error("field defaults can only be primitives or empty arrays currently");s[l]={default:Array.isArray(p)?[]:p,optional:u.optional,deprecated:u.deprecated,validate:u.validate}}}}let i=t.visitor||r.visitor||[],n=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(!gk.has(o))throw Error(`Unknown type option "${o}" on ${e}`);if(t.deprecatedAlias)lk[t.deprecatedAlias]=e;for(let o of i.concat(a))s[o]=s[o]||{};for(let o of Object.keys(s)){let l=s[o];if(l.default!==void 0&&!a.includes(o))l.optional=!0;if(l.default===void 0)l.default=null;else if(!l.validate&&l.default!=null)l.validate=Wn(ni(l.default));for(let u of Object.keys(l))if(!bk.has(u))throw Error(`Unknown field key "${u}" on ${e}.${o}`)}if(ik[e]=t.visitor=i,ok[e]=t.builder=a,ak[e]=t.fields=s,nk[e]=t.aliases=n,n.forEach((o)=>{Vn[o]=Vn[o]||[],Vn[o].push(e)}),t.validate)uk[e]=t.validate;if(t.unionShape)ck[e]=t.unionShape;Yn[e]=t}});var ys=A(function(bc){Object.defineProperty(bc,"__esModule",{value:!0});bc.patternLikeCommon=bc.importAttributes=bc.functionTypeAnnotationCommon=bc.functionDeclarationCommon=bc.functionCommon=bc.classMethodOrPropertyUnionShapeCommon=bc.classMethodOrPropertyCommon=bc.classMethodOrDeclareMethodCommon=void 0;var $e=Br(),$k=Fr(),Sc=hs(),Hk=oc(),Rr=jr(),d=It(),ms=(e=!1)=>({unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,d.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}});bc.classMethodOrPropertyUnionShapeCommon=ms;var F=(0,d.defineAliasedType)("Standardized");F("ArrayExpression",{fields:{elements:{validate:(0,d.arrayOf)((0,d.assertNodeOrValueType)("null","Expression","SpreadElement")),default:!process.env.BABEL_TYPES_8_BREAKING?[]:void 0}},visitor:["elements"],aliases:["Expression"]});F("AssignmentExpression",{fields:{operator:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertValueType)("string"):Object.assign(function(){let e=(0,d.assertOneOf)(...Rr.ASSIGNMENT_OPERATORS),t=(0,d.assertOneOf)("=");return function(r,s,i){((0,$e.default)("Pattern",r.left)?t:e)(r,s,i)}}(),{oneOf:Rr.ASSIGNMENT_OPERATORS})},left:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertNodeType)("LVal","OptionalMemberExpression"):(0,d.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,d.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});F("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,d.assertOneOf)(...Rr.BINARY_OPERATORS)},left:{validate:function(){let e=(0,d.assertNodeType)("Expression"),t=(0,d.assertNodeType)("Expression","PrivateName");return Object.assign(function(s,i,n){(s.operator==="in"?t:e)(s,i,n)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,d.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});F("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,d.assertValueType)("string")}}});F("Directive",{visitor:["value"],fields:{value:{validate:(0,d.assertNodeType)("DirectiveLiteral")}}});F("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,d.assertValueType)("string")}}});F("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,d.arrayOfType)("Directive"),default:[]},body:(0,d.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});F("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,d.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});F("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,d.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,d.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,d.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,d.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,d.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});F("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,d.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,d.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});F("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,d.assertNodeType)("Expression")},consequent:{validate:(0,d.assertNodeType)("Expression")},alternate:{validate:(0,d.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});F("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,d.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});F("DebuggerStatement",{aliases:["Statement"]});F("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,d.assertNodeType)("Expression")},body:{validate:(0,d.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});F("EmptyStatement",{aliases:["Statement"]});F("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,d.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});F("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,d.assertNodeType)("Program")},comments:{validate:!process.env.BABEL_TYPES_8_BREAKING?Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}):(0,d.assertEach)((0,d.assertNodeType)("CommentBlock","CommentLine")),optional:!0},tokens:{validate:(0,d.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});F("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertNodeType)("VariableDeclaration","LVal"):(0,d.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,d.assertNodeType)("Expression")},body:{validate:(0,d.assertNodeType)("Statement")}}});F("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,d.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,d.assertNodeType)("Expression"),optional:!0},update:{validate:(0,d.assertNodeType)("Expression"),optional:!0},body:{validate:(0,d.assertNodeType)("Statement")}}});var qr=()=>({params:(0,d.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});bc.functionCommon=qr;var hr=()=>({returnType:{validate:(0,d.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,d.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});bc.functionTypeAnnotationCommon=hr;var gc=()=>Object.assign({},qr(),{declare:{validate:(0,d.assertValueType)("boolean"),optional:!0},id:{validate:(0,d.assertNodeType)("Identifier"),optional:!0}});bc.functionDeclarationCommon=gc;F("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},gc(),hr(),{body:{validate:(0,d.assertNodeType)("BlockStatement")},predicate:{validate:(0,d.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){let e=(0,d.assertNodeType)("Identifier");return function(t,r,s){if(!(0,$e.default)("ExportDefaultDeclaration",t))e(s,"id",s.id)}}()});F("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},qr(),hr(),{id:{validate:(0,d.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,d.assertNodeType)("BlockStatement")},predicate:{validate:(0,d.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var Ur=()=>({typeAnnotation:{validate:(0,d.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,d.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0}});bc.patternLikeCommon=Ur;F("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},Ur(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertValueType)("string"),Object.assign(function(e,t,r){if(!(0,$k.default)(r,!1))throw TypeError(`"${r}" is not a valid identifier name`)},{type:"string"})):(0,d.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,r){let s=/\.(\w+)$/.exec(t.toString());if(!s)return;let[,i]=s,n={computed:!1};if(i==="property"){if((0,$e.default)("MemberExpression",e,n))return;if((0,$e.default)("OptionalMemberExpression",e,n))return}else if(i==="key"){if((0,$e.default)("Property",e,n))return;if((0,$e.default)("Method",e,n))return}else if(i==="exported"){if((0,$e.default)("ExportSpecifier",e))return}else if(i==="imported"){if((0,$e.default)("ImportSpecifier",e,{imported:r}))return}else if(i==="meta"){if((0,$e.default)("MetaProperty",e,{meta:r}))return}if(((0,Sc.isKeyword)(r.name)||(0,Sc.isReservedWord)(r.name,!1))&&r.name!=="this")throw TypeError(`"${r.name}" is not a valid identifier`)}:void 0});F("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,d.assertNodeType)("Expression")},consequent:{validate:(0,d.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,d.assertNodeType)("Statement")}}});F("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,d.assertNodeType)("Identifier")},body:{validate:(0,d.assertNodeType)("Statement")}}});F("StringLiteral",{builder:["value"],fields:{value:{validate:(0,d.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});F("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,d.chain)((0,d.assertValueType)("number"),Object.assign(function(e,t,r){if(1/r<0||!Number.isFinite(r)){let s=Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});F("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});F("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,d.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});F("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,d.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertValueType)("string"),Object.assign(function(e,t,r){let s=/[^dgimsuvy]/.exec(r);if(s)throw TypeError(`"${s[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,d.assertValueType)("string"),default:""}}});F("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,d.assertOneOf)(...Rr.LOGICAL_OPERATORS)},left:{validate:(0,d.assertNodeType)("Expression")},right:{validate:(0,d.assertNodeType)("Expression")}}});F("MemberExpression",{builder:["object","property","computed",...!process.env.BABEL_TYPES_8_BREAKING?["optional"]:[]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,d.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,d.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,d.assertNodeType)("Expression","Super")},property:{validate:function(){let e=(0,d.assertNodeType)("Identifier","PrivateName"),t=(0,d.assertNodeType)("Expression"),r=function(s,i,n){(s.computed?t:e)(s,i,n)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},!process.env.BABEL_TYPES_8_BREAKING?{optional:{validate:(0,d.assertValueType)("boolean"),optional:!0}}:{})});F("NewExpression",{inherits:"CallExpression",fields:{callee:{validate:(0,d.assertNodeType)("Expression")},arguments:(0,d.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,d.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});F("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,d.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,d.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,d.arrayOfType)("Directive"),default:[]},body:(0,d.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});F("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,d.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});F("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},ms(),{fields:Object.assign({},qr(),hr(),{kind:Object.assign({validate:(0,d.assertOneOf)("method","get","set")},!process.env.BABEL_TYPES_8_BREAKING?{default:"method"}:{}),computed:{default:!1},key:{validate:function(){let e=(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,d.assertNodeType)("Expression"),r=function(s,i,n){(s.computed?t:e)(s,i,n)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,d.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}));F("ObjectProperty",{builder:["key","value","computed","shorthand",...!process.env.BABEL_TYPES_8_BREAKING?["decorators"]:[]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,d.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:function(){let e=(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,d.assertNodeType)("Expression");return Object.assign(function(s,i,n){(s.computed?t:e)(s,i,n)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,d.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertValueType)("boolean"),Object.assign(function(e,t,r){if(!r)return;if(e.computed)throw TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,$e.default)("Identifier",e.key))throw TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")},{type:"boolean"})):(0,d.assertValueType)("boolean"),default:!1},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){let e=(0,d.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,d.assertNodeType)("Expression");return function(r,s,i){((0,$e.default)("ObjectPattern",r)?e:t)(i,"value",i.value)}}()});F("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},Ur(),{argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern"):(0,d.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){let r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw Error("Internal Babel error: malformed key.");let[,s,i]=r;if(e[s].length>+i+1)throw TypeError(`RestElement must be last element of ${s}`)}:void 0});F("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,d.assertNodeType)("Expression"),optional:!0}}});F("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,d.validateArrayOfType)("Expression")},aliases:["Expression"]});F("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,d.assertNodeType)("Expression")}}});F("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,d.assertNodeType)("Expression"),optional:!0},consequent:(0,d.validateArrayOfType)("Statement")}});F("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,d.assertNodeType)("Expression")},cases:(0,d.validateArrayOfType)("SwitchCase")}});F("ThisExpression",{aliases:["Expression"]});F("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,d.assertNodeType)("Expression")}}});F("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertNodeType)("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,d.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,d.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,d.assertNodeType)("BlockStatement")}}});F("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,d.assertNodeType)("Expression")},operator:{validate:(0,d.assertOneOf)(...Rr.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});F("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertNodeType)("Expression"):(0,d.assertNodeType)("Identifier","MemberExpression")},operator:{validate:(0,d.assertOneOf)(...Rr.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});F("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,d.assertValueType)("boolean"),optional:!0},kind:{validate:(0,d.assertOneOf)("var","let","const","using","await using")},declarations:(0,d.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let e=(0,d.assertNodeType)("Identifier","Placeholder"),t=(0,d.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),r=(0,d.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(s,i,n){let{kind:a,declarations:o}=n,l=(0,$e.default)("ForXStatement",s,{left:n});if(l){if(o.length!==1)throw TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${s.type}`)}for(let u of o)if(a==="const"||a==="let"||a==="var")if(!l&&!u.init)e(u,"id",u.id);else t(u,"id",u.id);else r(u,"id",u.id)}})():void 0});F("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertNodeType)("LVal","VoidPattern"):(0,d.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern")},definite:{optional:!0,validate:(0,d.assertValueType)("boolean")},init:{optional:!0,validate:(0,d.assertNodeType)("Expression")}}});F("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,d.assertNodeType)("Expression")},body:{validate:(0,d.assertNodeType)("Statement")}}});F("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,d.assertNodeType)("Expression")},body:{validate:(0,d.assertNodeType)("Statement")}}});F("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ur(),{left:{validate:(0,d.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,d.assertNodeType)("Expression")},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0}})});F("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ur(),{elements:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeOrValueType)("null","PatternLike")))}})});F("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},qr(),hr(),{expression:{validate:(0,d.assertValueType)("boolean")},body:{validate:(0,d.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,d.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});F("ClassBody",{visitor:["body"],fields:{body:(0,d.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});F("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,d.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,d.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,d.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,d.assertNodeType)("Expression")},["superTypeParameters"]:{validate:(0,d.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,d.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,d.assertNodeType)("InterfaceExtends"),optional:!0}}});F("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,d.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,d.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,d.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,d.assertNodeType)("Expression")},["superTypeParameters"]:{validate:(0,d.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,d.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,d.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,d.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,d.assertValueType)("boolean"),optional:!0}},validate:!process.env.BABEL_TYPES_8_BREAKING?void 0:function(){let e=(0,d.assertNodeType)("Identifier");return function(t,r,s){if(!(0,$e.default)("ExportDefaultDeclaration",t))e(s,"id",s.id)}}()});var li=bc.importAttributes={attributes:{optional:!0,validate:(0,d.arrayOfType)("ImportAttribute")}};li.assertions={deprecated:!0,optional:!0,validate:(0,d.arrayOfType)("ImportAttribute")};F("ExportAllDeclaration",{builder:["source","attributes"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,d.assertNodeType)("StringLiteral")},exportKind:(0,d.validateOptional)((0,d.assertOneOf)("type","value"))},li)});F("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,d.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,d.validateOptional)((0,d.assertOneOf)("value"))}});F("ExportNamedDeclaration",{builder:["declaration","specifiers","source","attributes"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(r&&e.specifiers.length)throw TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,d.assertNodeType)("Declaration")}},li,{specifiers:{default:[],validate:(0,d.arrayOf)(function(){let e=(0,d.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,d.assertNodeType)("ExportSpecifier");if(!process.env.BABEL_TYPES_8_BREAKING)return e;return Object.assign(function(r,s,i){(r.source?e:t)(r,s,i)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]})}())},source:{validate:(0,d.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,d.validateOptional)((0,d.assertOneOf)("type","value"))})});F("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,d.assertNodeType)("Identifier")},exported:{validate:(0,d.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,d.assertOneOf)("type","value"),optional:!0}}});F("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,d.assertNodeType)("VariableDeclaration","LVal");let e=(0,d.assertNodeType)("VariableDeclaration"),t=(0,d.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(r,s,i){if((0,$e.default)("VariableDeclaration",i))e(r,s,i);else t(r,s,i)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,d.assertNodeType)("Expression")},body:{validate:(0,d.assertNodeType)("Statement")},await:{default:!1}}});F("ImportDeclaration",{builder:["specifiers","source","attributes"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},li,{module:{optional:!0,validate:(0,d.assertValueType)("boolean")},phase:{default:null,validate:(0,d.assertOneOf)("source","defer")},specifiers:(0,d.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,d.assertNodeType)("StringLiteral")},importKind:{validate:(0,d.assertOneOf)("type","typeof","value"),optional:!0}})});F("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,d.assertNodeType)("Identifier")}}});F("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,d.assertNodeType)("Identifier")}}});F("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,d.assertNodeType)("Identifier")},imported:{validate:(0,d.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,d.assertOneOf)("type","typeof","value"),optional:!0}}});F("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,d.assertOneOf)("source","defer")},source:{validate:(0,d.assertNodeType)("Expression")},options:{validate:(0,d.assertNodeType)("Expression"),optional:!0}}});F("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertNodeType)("Identifier"),Object.assign(function(e,t,r){let s;switch(r.name){case"function":s="sent";break;case"new":s="target";break;case"import":s="meta";break}if(!(0,$e.default)("Identifier",e.property,{name:s}))throw TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,d.assertNodeType)("Identifier")},property:{validate:(0,d.assertNodeType)("Identifier")}}});var ui=()=>({abstract:{validate:(0,d.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,d.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,d.assertValueType)("boolean"),optional:!0},key:{validate:(0,d.chain)(function(){let e=(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,d.assertNodeType)("Expression");return function(r,s,i){(r.computed?t:e)(r,s,i)}}(),(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});bc.classMethodOrPropertyCommon=ui;var Xn=()=>Object.assign({},qr(),ui(),{params:(0,d.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,d.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,d.chain)((0,d.assertValueType)("string"),(0,d.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0}});bc.classMethodOrDeclareMethodCommon=Xn;F("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},ms(),{fields:Object.assign({},Xn(),hr(),{body:{validate:(0,d.assertNodeType)("BlockStatement")}})}));F("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},Ur(),{properties:(0,d.validateArrayOfType)("RestElement","ObjectProperty")})});F("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,d.assertNodeType)("Expression")}}});F("Super",{aliases:["Expression"]});F("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,d.assertNodeType)("Expression")},quasi:{validate:(0,d.assertNodeType)("TemplateLiteral")},["typeParameters"]:{validate:(0,d.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});F("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,d.chain)((0,d.assertShape)({raw:{validate:(0,d.assertValueType)("string")},cooked:{validate:(0,d.assertValueType)("string"),optional:!0}}),function(t){let r=t.value.raw,s=!1,i=()=>{throw Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:a}=(0,Hk.readStringContents)("template",r,0,0,0,{unterminated(){s=!0},strictNumericEscape:i,invalidEscapeSequence:i,numericSeparatorInEscapeSequence:i,unexpectedNumericSeparator:i,invalidDigit:i,invalidCodePoint:i});if(!s)throw Error("Invalid raw");t.value.cooked=a?null:n})},tail:{default:!1}}});F("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,d.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,d.chain)((0,d.assertValueType)("array"),(0,d.assertEach)((0,d.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
20
+ Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});F("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,d.chain)((0,d.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,d.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,d.assertNodeType)("Expression")}}});F("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,d.assertNodeType)("Expression")}}});F("Import",{aliases:["Expression"]});F("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,d.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});F("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,d.assertNodeType)("Identifier")}}});F("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,d.assertNodeType)("Expression")},property:{validate:function(){let e=(0,d.assertNodeType)("Identifier"),t=(0,d.assertNodeType)("Expression");return Object.assign(function(s,i,n){(s.computed?t:e)(s,i,n)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertValueType)("boolean"):(0,d.chain)((0,d.assertValueType)("boolean"),(0,d.assertOptionalChainStart)())}}});F("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,d.assertNodeType)("Expression")},arguments:(0,d.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:!process.env.BABEL_TYPES_8_BREAKING?(0,d.assertValueType)("boolean"):(0,d.chain)((0,d.assertValueType)("boolean"),(0,d.assertOptionalChainStart)())},typeArguments:{validate:(0,d.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,d.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});F("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},ms(),{fields:Object.assign({},ui(),{value:{validate:(0,d.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,d.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,d.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,d.assertValueType)("boolean"),optional:!0},declare:{validate:(0,d.assertValueType)("boolean"),optional:!0},variance:{validate:(0,d.assertNodeType)("Variance"),optional:!0}})}));F("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},ms(!0),{fields:Object.assign({},ui(),{key:{validate:(0,d.chain)(function(){let e=(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,d.assertNodeType)("Expression");return function(r,s,i){(r.computed?t:e)(r,s,i)}}(),(0,d.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,d.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,d.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,d.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,d.assertValueType)("boolean"),optional:!0},declare:{validate:(0,d.assertValueType)("boolean"),optional:!0},variance:{validate:(0,d.assertNodeType)("Variance"),optional:!0}})}));F("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,d.assertNodeType)("PrivateName")},value:{validate:(0,d.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,d.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,d.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,d.assertValueType)("boolean"),default:!1},readonly:{validate:(0,d.assertValueType)("boolean"),optional:!0},optional:{validate:(0,d.assertValueType)("boolean"),optional:!0},definite:{validate:(0,d.assertValueType)("boolean"),optional:!0},variance:{validate:(0,d.assertNodeType)("Variance"),optional:!0}}});F("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Xn(),hr(),{kind:{validate:(0,d.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,d.assertNodeType)("PrivateName")},body:{validate:(0,d.assertNodeType)("BlockStatement")}})});F("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,d.assertNodeType)("Identifier")}}});F("StaticBlock",{visitor:["body"],fields:{body:(0,d.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});F("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,d.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,d.assertNodeType)("StringLiteral")}}})});var Ac=A(function(){var Pc=ys(),P=It(),W=(0,P.defineAliasedType)("Flow"),$n=(e)=>{let t=e==="DeclareClass";W(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,P.validateType)("Identifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterDeclaration"),extends:(0,P.validateOptional)((0,P.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,P.validateOptional)((0,P.arrayOfType)("InterfaceExtends")),implements:(0,P.validateOptional)((0,P.arrayOfType)("ClassImplements"))}:{},{body:(0,P.validateType)("ObjectTypeAnnotation")})})};W("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,P.validateType)("FlowType")}});W("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,P.validateType)("Identifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterInstantiation")}});$n("DeclareClass");W("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,P.validateType)("Identifier"),predicate:(0,P.validateOptionalType)("DeclaredPredicate")}});$n("DeclareInterface");W("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,P.validateType)("Identifier","StringLiteral"),body:(0,P.validateType)("BlockStatement"),kind:(0,P.validateOptional)((0,P.assertOneOf)("CommonJS","ES"))}});W("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,P.validateType)("TypeAnnotation")}});W("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,P.validateType)("Identifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterDeclaration"),right:(0,P.validateType)("FlowType")}});W("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,P.validateType)("Identifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,P.validateOptionalType)("FlowType"),impltype:(0,P.validateOptionalType)("FlowType")}});W("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,P.validateType)("Identifier")}});W("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,P.validateOptionalType)("Flow"),specifiers:(0,P.validateOptional)((0,P.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,P.validateOptionalType)("StringLiteral"),default:(0,P.validateOptional)((0,P.assertValueType)("boolean"))},Pc.importAttributes)});W("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,P.validateType)("StringLiteral"),exportKind:(0,P.validateOptional)((0,P.assertOneOf)("type","value"))},Pc.importAttributes)});W("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,P.validateType)("Flow")}});W("ExistsTypeAnnotation",{aliases:["FlowType"]});W("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,P.validateOptionalType)("TypeParameterDeclaration"),params:(0,P.validateArrayOfType)("FunctionTypeParam"),rest:(0,P.validateOptionalType)("FunctionTypeParam"),this:(0,P.validateOptionalType)("FunctionTypeParam"),returnType:(0,P.validateType)("FlowType")}});W("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,P.validateOptionalType)("Identifier"),typeAnnotation:(0,P.validateType)("FlowType"),optional:(0,P.validateOptional)((0,P.assertValueType)("boolean"))}});W("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,P.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterInstantiation")}});W("InferredPredicate",{aliases:["FlowPredicate"]});W("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,P.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterInstantiation")}});$n("InterfaceDeclaration");W("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,P.validateOptional)((0,P.arrayOfType)("InterfaceExtends")),body:(0,P.validateType)("ObjectTypeAnnotation")}});W("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,P.validate)((0,P.arrayOfType)("FlowType"))}});W("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,P.validateType)("FlowType")}});W("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,P.validate)((0,P.assertValueType)("number"))}});W("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,P.validate)((0,P.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,P.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,P.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,P.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,P.assertValueType)("boolean"),default:!1},inexact:(0,P.validateOptional)((0,P.assertValueType)("boolean"))}});W("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,P.validateType)("Identifier"),value:(0,P.validateType)("FlowType"),optional:(0,P.validate)((0,P.assertValueType)("boolean")),static:(0,P.validate)((0,P.assertValueType)("boolean")),method:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,P.validateType)("FlowType"),static:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,P.validateOptionalType)("Identifier"),key:(0,P.validateType)("FlowType"),value:(0,P.validateType)("FlowType"),static:(0,P.validate)((0,P.assertValueType)("boolean")),variance:(0,P.validateOptionalType)("Variance")}});W("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,P.validateType)("Identifier","StringLiteral"),value:(0,P.validateType)("FlowType"),kind:(0,P.validate)((0,P.assertOneOf)("init","get","set")),static:(0,P.validate)((0,P.assertValueType)("boolean")),proto:(0,P.validate)((0,P.assertValueType)("boolean")),optional:(0,P.validate)((0,P.assertValueType)("boolean")),variance:(0,P.validateOptionalType)("Variance"),method:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,P.validateType)("FlowType")}});W("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,P.validateType)("Identifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,P.validateOptionalType)("FlowType"),impltype:(0,P.validateType)("FlowType")}});W("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,P.validateType)("Identifier"),qualification:(0,P.validateType)("Identifier","QualifiedTypeIdentifier")}});W("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,P.validate)((0,P.assertValueType)("string"))}});W("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,P.validate)((0,P.arrayOfType)("FlowType"))}});W("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,P.validateType)("FlowType")}});W("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,P.validateType)("Identifier"),typeParameters:(0,P.validateOptionalType)("TypeParameterDeclaration"),right:(0,P.validateType)("FlowType")}});W("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,P.validateType)("FlowType")}});W("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,P.validateType)("Expression"),typeAnnotation:(0,P.validateType)("TypeAnnotation")}});W("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,P.validate)((0,P.assertValueType)("string")),bound:(0,P.validateOptionalType)("TypeAnnotation"),default:(0,P.validateOptionalType)("FlowType"),variance:(0,P.validateOptionalType)("Variance")}});W("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,P.validate)((0,P.arrayOfType)("TypeParameter"))}});W("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,P.validate)((0,P.arrayOfType)("FlowType"))}});W("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,P.validate)((0,P.arrayOfType)("FlowType"))}});W("Variance",{builder:["kind"],fields:{kind:(0,P.validate)((0,P.assertOneOf)("minus","plus"))}});W("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});W("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,P.validateType)("Identifier"),body:(0,P.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});W("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,P.validate)((0,P.assertValueType)("boolean")),members:(0,P.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,P.validate)((0,P.assertValueType)("boolean")),members:(0,P.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,P.validate)((0,P.assertValueType)("boolean")),members:(0,P.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,P.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,P.validate)((0,P.assertValueType)("boolean"))}});W("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,P.validateType)("Identifier"),init:(0,P.validateType)("BooleanLiteral")}});W("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,P.validateType)("Identifier"),init:(0,P.validateType)("NumericLiteral")}});W("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,P.validateType)("Identifier"),init:(0,P.validateType)("StringLiteral")}});W("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,P.validateType)("Identifier")}});W("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,P.validateType)("FlowType"),indexType:(0,P.validateType)("FlowType")}});W("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,P.validateType)("FlowType"),indexType:(0,P.validateType)("FlowType"),optional:(0,P.validate)((0,P.assertValueType)("boolean"))}})});var vc=A(function(){var De=It(),He=(0,De.defineAliasedType)("JSX");He("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,De.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,De.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});He("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,De.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});He("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,De.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,De.assertNodeType)("JSXClosingElement")},children:(0,De.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,De.assertValueType)("boolean"),optional:!0}})});He("JSXEmptyExpression",{});He("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,De.assertNodeType)("Expression","JSXEmptyExpression")}}});He("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,De.assertNodeType)("Expression")}}});He("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,De.assertValueType)("string")}}});He("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,De.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,De.assertNodeType)("JSXIdentifier")}}});He("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,De.assertNodeType)("JSXIdentifier")},name:{validate:(0,De.assertNodeType)("JSXIdentifier")}}});He("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,De.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,De.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,De.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,De.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});He("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,De.assertNodeType)("Expression")}}});He("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,De.assertValueType)("string")}}});He("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,De.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,De.assertNodeType)("JSXClosingFragment")},children:(0,De.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});He("JSXOpeningFragment",{aliases:["Immutable"]});He("JSXClosingFragment",{aliases:["Immutable"]})});var Gn=A(function(Cc){Object.defineProperty(Cc,"__esModule",{value:!0});Cc.PLACEHOLDERS_FLIPPED_ALIAS=Cc.PLACEHOLDERS_ALIAS=Cc.PLACEHOLDERS=void 0;var sD=It(),iD=Cc.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],zn=Cc.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of iD){let t=sD.ALIAS_KEYS[e];if(t!=null&&t.length)zn[e]=t}var Hn=Cc.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(zn).forEach((e)=>{zn[e].forEach((t)=>{if(!hasOwnProperty.call(Hn,t))Hn[t]=[];Hn[t].push(e)})})});var wc=A(function(){var ci=It(),oD=Gn(),lD=ys(),Qn=(0,ci.defineAliasedType)("Miscellaneous");Qn("Noop",{visitor:[]});Qn("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,ci.assertNodeType)("Identifier")},expectedNode:{validate:(0,ci.assertOneOf)(...oD.PLACEHOLDERS)}},(0,lD.patternLikeCommon)())});Qn("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,ci.assertValueType)("string")}}})});var Nc=A(function(){var Ne=It();(0,Ne.default)("ArgumentPlaceholder",{});(0,Ne.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:!process.env.BABEL_TYPES_8_BREAKING?{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}:{object:{validate:(0,Ne.assertNodeType)("Expression")},callee:{validate:(0,Ne.assertNodeType)("Expression")}}});(0,Ne.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,Ne.assertNodeType)("Expression")}}});(0,Ne.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,Ne.assertNodeType)("BlockStatement")},async:{validate:(0,Ne.assertValueType)("boolean"),default:!1}}});(0,Ne.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,Ne.assertNodeType)("Identifier")}}});(0,Ne.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,Ne.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,Ne.default)("TupleExpression",{fields:{elements:{validate:(0,Ne.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,Ne.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,Ne.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,Ne.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,Ne.assertNodeType)("Program")}},aliases:["Expression"]});(0,Ne.default)("TopicReference",{aliases:["Expression"]});(0,Ne.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,Ne.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Ne.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,Ne.assertNodeType)("Expression")}},aliases:["Expression"]});(0,Ne.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,Ne.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})});var Bc=A(function(){var O=It(),Zn=ys(),uD=Br(),Z=(0,O.defineAliasedType)("TypeScript"),et=(0,O.assertValueType)("boolean"),Oc=()=>({returnType:{validate:(0,O.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,O.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});Z("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,O.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,O.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,O.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,O.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,O.arrayOfType)("Decorator"),optional:!0}}});Z("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,Zn.functionDeclarationCommon)(),Oc())});Z("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,Zn.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,Zn.classMethodOrDeclareMethodCommon)(),Oc())}));Z("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,O.validateType)("TSEntityName"),right:(0,O.validateType)("Identifier")}});var pi=()=>({typeParameters:(0,O.validateOptionalType)("TSTypeParameterDeclaration"),["parameters"]:(0,O.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),["typeAnnotation"]:(0,O.validateOptionalType)("TSTypeAnnotation")}),_c={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:pi()};Z("TSCallSignatureDeclaration",_c);Z("TSConstructSignatureDeclaration",_c);var kc=()=>({key:(0,O.validateType)("Expression"),computed:{default:!1},optional:(0,O.validateOptional)(et)});Z("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},kc(),{readonly:(0,O.validateOptional)(et),typeAnnotation:(0,O.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,O.assertOneOf)("get","set")}})});Z("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},pi(),kc(),{kind:{validate:(0,O.assertOneOf)("method","get","set")}})});Z("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,O.validateOptional)(et),static:(0,O.validateOptional)(et),parameters:(0,O.validateArrayOfType)("Identifier"),typeAnnotation:(0,O.validateOptionalType)("TSTypeAnnotation")}});var cD=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of cD)Z(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});Z("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var Dc={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};Z("TSFunctionType",Object.assign({},Dc,{fields:pi()}));Z("TSConstructorType",Object.assign({},Dc,{fields:Object.assign({},pi(),{abstract:(0,O.validateOptional)(et)})}));Z("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,O.validateType)("TSEntityName"),["typeParameters"]:(0,O.validateOptionalType)("TSTypeParameterInstantiation")}});Z("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,O.validateType)("Identifier","TSThisType"),typeAnnotation:(0,O.validateOptionalType)("TSTypeAnnotation"),asserts:(0,O.validateOptional)(et)}});Z("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,O.validateType)("TSEntityName","TSImportType"),["typeParameters"]:(0,O.validateOptionalType)("TSTypeParameterInstantiation")}});Z("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,O.validateArrayOfType)("TSTypeElement")}});Z("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,O.validateType)("TSType")}});Z("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,O.validateArrayOfType)("TSType","TSNamedTupleMember")}});Z("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,O.validateType)("TSType")}});Z("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,O.validateType)("TSType")}});Z("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,O.validateType)("Identifier"),optional:{validate:et,default:!1},elementType:(0,O.validateType)("TSType")}});var Lc={aliases:["TSType"],visitor:["types"],fields:{types:(0,O.validateArrayOfType)("TSType")}};Z("TSUnionType",Lc);Z("TSIntersectionType",Lc);Z("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,O.validateType)("TSType"),extendsType:(0,O.validateType)("TSType"),trueType:(0,O.validateType)("TSType"),falseType:(0,O.validateType)("TSType")}});Z("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,O.validateType)("TSTypeParameter")}});Z("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,O.validateType)("TSType")}});Z("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,O.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,O.validateType)("TSType")}});Z("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,O.validateType)("TSType"),indexType:(0,O.validateType)("TSType")}});Z("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,O.validateType)("TSTypeParameter")},{readonly:(0,O.validateOptional)((0,O.assertOneOf)(!0,!1,"+","-")),optional:(0,O.validateOptional)((0,O.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,O.validateOptionalType)("TSType"),nameType:(0,O.validateOptionalType)("TSType")})});Z("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,O.validateArrayOfType)("TemplateElement"),types:{validate:(0,O.chain)((0,O.assertValueType)("array"),(0,O.assertEach)((0,O.assertNodeType)("TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.
21
+ Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});Z("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let e=(0,O.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,O.assertOneOf)("-"),r=(0,O.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),s=function(n,a,o){if((0,uD.default)("UnaryExpression",o))t(o,"operator",o.operator),e(o,"argument",o.argument);else r(n,a,o)};return s.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],s}()}}});Z("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,O.validateType)("TSEntityName"),typeParameters:(0,O.validateOptionalType)("TSTypeParameterInstantiation")}});Z("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,O.validateOptional)(et),id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,O.validateOptional)((0,O.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,O.validateType)("TSInterfaceBody")}});Z("TSInterfaceBody",{visitor:["body"],fields:{body:(0,O.validateArrayOfType)("TSTypeElement")}});Z("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,O.validateOptional)(et),id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,O.validateType)("TSType")}});Z("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,O.validateType)("Expression"),["typeParameters"]:(0,O.validateOptionalType)("TSTypeParameterInstantiation")}});var Mc={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,O.validateType)("Expression"),typeAnnotation:(0,O.validateType)("TSType")}};Z("TSAsExpression",Mc);Z("TSSatisfiesExpression",Mc);Z("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,O.validateType)("TSType"),expression:(0,O.validateType)("Expression")}});Z("TSEnumBody",{visitor:["members"],fields:{members:(0,O.validateArrayOfType)("TSEnumMember")}});Z("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,O.validateOptional)(et),const:(0,O.validateOptional)(et),id:(0,O.validateType)("Identifier"),members:(0,O.validateArrayOfType)("TSEnumMember"),initializer:(0,O.validateOptionalType)("Expression"),body:(0,O.validateOptionalType)("TSEnumBody")}});Z("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,O.validateType)("Identifier","StringLiteral"),initializer:(0,O.validateOptionalType)("Expression")}});Z("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,O.assertOneOf)("global","module","namespace")},declare:(0,O.validateOptional)(et)},{global:(0,O.validateOptional)(et)},{id:(0,O.validateType)("Identifier","StringLiteral"),body:(0,O.validateType)("TSModuleBlock","TSModuleDeclaration")})});Z("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,O.validateArrayOfType)("Statement")}});Z("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:Object.assign({},{argument:(0,O.validateType)("StringLiteral")},{qualifier:(0,O.validateOptionalType)("TSEntityName")},{typeParameters:(0,O.validateOptionalType)("TSTypeParameterInstantiation")},{options:{validate:(0,O.assertNodeType)("ObjectExpression"),optional:!0}})});Z("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,O.validate)(et)},{id:(0,O.validateType)("Identifier"),moduleReference:(0,O.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,O.assertOneOf)("type","value"),optional:!0}})});Z("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,O.validateType)("StringLiteral")}});Z("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,O.validateType)("Expression")}});Z("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,O.validateType)("Expression")}});Z("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,O.validateType)("Identifier")}});Z("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,O.assertNodeType)("TSType")}}});Z("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,O.validateArrayOfType)("TSType")}});Z("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,O.validateArrayOfType)("TSTypeParameter")}});Z("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,O.assertValueType)("string")},in:{validate:(0,O.assertValueType)("boolean"),optional:!0},out:{validate:(0,O.assertValueType)("boolean"),optional:!0},const:{validate:(0,O.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,O.assertNodeType)("TSType"),optional:!0},default:{validate:(0,O.assertNodeType)("TSType"),optional:!0}}})});var Rc=A(function(Fc){Object.defineProperty(Fc,"__esModule",{value:!0});Fc.DEPRECATED_ALIASES=void 0;var _ve=Fc.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var ut=A(function(tt){Object.defineProperty(tt,"__esModule",{value:!0});Object.defineProperty(tt,"ALIAS_KEYS",{enumerable:!0,get:function(){return ze.ALIAS_KEYS}});Object.defineProperty(tt,"BUILDER_KEYS",{enumerable:!0,get:function(){return ze.BUILDER_KEYS}});Object.defineProperty(tt,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return ea.DEPRECATED_ALIASES}});Object.defineProperty(tt,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return ze.DEPRECATED_KEYS}});Object.defineProperty(tt,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return ze.FLIPPED_ALIAS_KEYS}});Object.defineProperty(tt,"NODE_FIELDS",{enumerable:!0,get:function(){return ze.NODE_FIELDS}});Object.defineProperty(tt,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return ze.NODE_PARENT_VALIDATIONS}});Object.defineProperty(tt,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return ze.NODE_UNION_SHAPES__PRIVATE}});Object.defineProperty(tt,"PLACEHOLDERS",{enumerable:!0,get:function(){return ta.PLACEHOLDERS}});Object.defineProperty(tt,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return ta.PLACEHOLDERS_ALIAS}});Object.defineProperty(tt,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return ta.PLACEHOLDERS_FLIPPED_ALIAS}});tt.TYPES=void 0;Object.defineProperty(tt,"VISITOR_KEYS",{enumerable:!0,get:function(){return ze.VISITOR_KEYS}});ys();Ac();vc();wc();Nc();Bc();var ze=It(),ta=Gn(),ea=Rc();Object.keys(ea.DEPRECATED_ALIASES).forEach((e)=>{ze.FLIPPED_ALIAS_KEYS[e]=ze.FLIPPED_ALIAS_KEYS[ea.DEPRECATED_ALIASES[e]]});for(let{types:e,set:t}of ze.allExpandedTypes)for(let r of e){let s=ze.FLIPPED_ALIAS_KEYS[r];if(s)s.forEach(t.add,t);else t.add(r)}var Dve=tt.TYPES=[].concat(Object.keys(ze.VISITOR_KEYS),Object.keys(ze.FLIPPED_ALIAS_KEYS),Object.keys(ze.DEPRECATED_KEYS))});var oi=A(function(Vc){Object.defineProperty(Vc,"__esModule",{value:!0});Vc.default=pD;Vc.validateChild=Kc;Vc.validateField=Uc;Vc.validateInternal=fD;var Ts=ut();function pD(e,t,r){if(!e)return;let s=Ts.NODE_FIELDS[e.type];if(!s)return;let i=s[t];Uc(e,t,r,i),Kc(e,t,r)}function fD(e,t,r,s,i){if(!(e!=null&&e.validate))return;if(e.optional&&s==null)return;if(e.validate(t,r,s),i){var n;let a=s.type;if(a==null)return;(n=Ts.NODE_PARENT_VALIDATIONS[a])==null||n.call(Ts.NODE_PARENT_VALIDATIONS,t,r,s)}}function Uc(e,t,r,s){if(!(s!=null&&s.validate))return;if(s.optional&&r==null)return;s.validate(e,t,r)}function Kc(e,t,r){var s;let i=r==null?void 0:r.type;if(i==null)return;(s=Ts.NODE_PARENT_VALIDATIONS[i])==null||s.call(Ts.NODE_PARENT_VALIDATIONS,e,t,r)}});var ra=A(function($c){Object.defineProperty($c,"__esModule",{value:!0});$c.anyTypeAnnotation=zL;$c.argumentPlaceholder=vM;$c.arrayExpression=gD;$c.arrayPattern=mL;$c.arrayTypeAnnotation=GL;$c.arrowFunctionExpression=yL;$c.assignmentExpression=bD;$c.assignmentPattern=dL;$c.awaitExpression=jL;$c.bigIntLiteral=SD;$c.binaryExpression=ED;$c.bindExpression=CM;$c.blockStatement=CD;$c.booleanLiteral=WD;$c.booleanLiteralTypeAnnotation=ZL;$c.booleanTypeAnnotation=QL;$c.breakStatement=ID;$c.callExpression=wD;$c.catchClause=ND;$c.classAccessorProperty=YL;$c.classBody=TL;$c.classDeclaration=SL;$c.classExpression=xL;$c.classImplements=t2;$c.classMethod=_L;$c.classPrivateMethod=WL;$c.classPrivateProperty=JL;$c.classProperty=VL;$c.conditionalExpression=OD;$c.continueStatement=_D;$c.debuggerStatement=kD;$c.decimalLiteral=kM;$c.declareClass=r2;$c.declareExportAllDeclaration=p2;$c.declareExportDeclaration=c2;$c.declareFunction=s2;$c.declareInterface=i2;$c.declareModule=n2;$c.declareModuleExports=a2;$c.declareOpaqueType=l2;$c.declareTypeAlias=o2;$c.declareVariable=u2;$c.declaredPredicate=f2;$c.decorator=IM;$c.directive=AD;$c.directiveLiteral=vD;$c.doExpression=wM;$c.doWhileStatement=DD;$c.emptyStatement=LD;$c.emptyTypeAnnotation=P2;$c.enumBooleanBody=G2;$c.enumBooleanMember=tM;$c.enumDeclaration=z2;$c.enumDefaultedMember=iM;$c.enumNumberBody=Q2;$c.enumNumberMember=rM;$c.enumStringBody=Z2;$c.enumStringMember=sM;$c.enumSymbolBody=eM;$c.existsTypeAnnotation=h2;$c.exportAllDeclaration=gL;$c.exportDefaultDeclaration=bL;$c.exportDefaultSpecifier=NM;$c.exportNamedDeclaration=EL;$c.exportNamespaceSpecifier=qL;$c.exportSpecifier=PL;$c.expressionStatement=MD;$c.file=BD;$c.forInStatement=FD;$c.forOfStatement=AL;$c.forStatement=jD;$c.functionDeclaration=RD;$c.functionExpression=qD;$c.functionTypeAnnotation=d2;$c.functionTypeParam=m2;$c.genericTypeAnnotation=y2;$c.identifier=UD;$c.ifStatement=KD;$c.import=RL;$c.importAttribute=HL;$c.importDeclaration=vL;$c.importDefaultSpecifier=CL;$c.importExpression=NL;$c.importNamespaceSpecifier=IL;$c.importSpecifier=wL;$c.indexedAccessType=nM;$c.inferredPredicate=T2;$c.interfaceDeclaration=S2;$c.interfaceExtends=x2;$c.interfaceTypeAnnotation=g2;$c.interpreterDirective=PD;$c.intersectionTypeAnnotation=b2;$c.jSXAttribute=$c.jsxAttribute=oM;$c.jSXClosingElement=$c.jsxClosingElement=lM;$c.jSXClosingFragment=$c.jsxClosingFragment=bM;$c.jSXElement=$c.jsxElement=uM;$c.jSXEmptyExpression=$c.jsxEmptyExpression=cM;$c.jSXExpressionContainer=$c.jsxExpressionContainer=pM;$c.jSXFragment=$c.jsxFragment=SM;$c.jSXIdentifier=$c.jsxIdentifier=hM;$c.jSXMemberExpression=$c.jsxMemberExpression=dM;$c.jSXNamespacedName=$c.jsxNamespacedName=mM;$c.jSXOpeningElement=$c.jsxOpeningElement=yM;$c.jSXOpeningFragment=$c.jsxOpeningFragment=gM;$c.jSXSpreadAttribute=$c.jsxSpreadAttribute=TM;$c.jSXSpreadChild=$c.jsxSpreadChild=fM;$c.jSXText=$c.jsxText=xM;$c.labeledStatement=VD;$c.logicalExpression=XD;$c.memberExpression=$D;$c.metaProperty=OL;$c.mixedTypeAnnotation=E2;$c.moduleExpression=DM;$c.newExpression=HD;$c.noop=EM;$c.nullLiteral=JD;$c.nullLiteralTypeAnnotation=e2;$c.nullableTypeAnnotation=A2;$c.numberLiteral=QB;$c.numberLiteralTypeAnnotation=v2;$c.numberTypeAnnotation=C2;$c.numericLiteral=Yc;$c.objectExpression=GD;$c.objectMethod=QD;$c.objectPattern=kL;$c.objectProperty=ZD;$c.objectTypeAnnotation=I2;$c.objectTypeCallProperty=N2;$c.objectTypeIndexer=O2;$c.objectTypeInternalSlot=w2;$c.objectTypeProperty=_2;$c.objectTypeSpreadProperty=k2;$c.opaqueType=D2;$c.optionalCallExpression=KL;$c.optionalIndexedAccessType=aM;$c.optionalMemberExpression=UL;$c.parenthesizedExpression=rL;$c.pipelineBareFunction=BM;$c.pipelinePrimaryTopicReference=FM;$c.pipelineTopicExpression=MM;$c.placeholder=PM;$c.privateName=XL;$c.program=zD;$c.qualifiedTypeIdentifier=L2;$c.recordExpression=OM;$c.regExpLiteral=Jc;$c.regexLiteral=ZB;$c.restElement=Wc;$c.restProperty=eF;$c.returnStatement=eL;$c.sequenceExpression=tL;$c.spreadElement=Xc;$c.spreadProperty=tF;$c.staticBlock=$L;$c.stringLiteral=YD;$c.stringLiteralTypeAnnotation=M2;$c.stringTypeAnnotation=B2;$c.super=DL;$c.switchCase=sL;$c.switchStatement=iL;$c.symbolTypeAnnotation=F2;$c.taggedTemplateExpression=LL;$c.templateElement=ML;$c.templateLiteral=BL;$c.thisExpression=nL;$c.thisTypeAnnotation=j2;$c.throwStatement=aL;$c.topicReference=LM;$c.tryStatement=oL;$c.tSAnyKeyword=$c.tsAnyKeyword=$M;$c.tSArrayType=$c.tsArrayType=dB;$c.tSAsExpression=$c.tsAsExpression=LB;$c.tSBigIntKeyword=$c.tsBigIntKeyword=zM;$c.tSBooleanKeyword=$c.tsBooleanKeyword=HM;$c.tSCallSignatureDeclaration=$c.tsCallSignatureDeclaration=VM;$c.tSConditionalType=$c.tsConditionalType=bB;$c.tSConstructSignatureDeclaration=$c.tsConstructSignatureDeclaration=YM;$c.tSConstructorType=$c.tsConstructorType=uB;$c.tSDeclareFunction=$c.tsDeclareFunction=qM;$c.tSDeclareMethod=$c.tsDeclareMethod=UM;$c.tSEnumBody=$c.tsEnumBody=FB;$c.tSEnumDeclaration=$c.tsEnumDeclaration=jB;$c.tSEnumMember=$c.tsEnumMember=RB;$c.tSExportAssignment=$c.tsExportAssignment=WB;$c.tSExpressionWithTypeArguments=$c.tsExpressionWithTypeArguments=NB;$c.tSExternalModuleReference=$c.tsExternalModuleReference=YB;$c.tSFunctionType=$c.tsFunctionType=lB;$c.tSImportEqualsDeclaration=$c.tsImportEqualsDeclaration=VB;$c.tSImportType=$c.tsImportType=KB;$c.tSIndexSignature=$c.tsIndexSignature=XM;$c.tSIndexedAccessType=$c.tsIndexedAccessType=vB;$c.tSInferType=$c.tsInferType=EB;$c.tSInstantiationExpression=$c.tsInstantiationExpression=DB;$c.tSInterfaceBody=$c.tsInterfaceBody=_B;$c.tSInterfaceDeclaration=$c.tsInterfaceDeclaration=OB;$c.tSIntersectionType=$c.tsIntersectionType=gB;$c.tSIntrinsicKeyword=$c.tsIntrinsicKeyword=GM;$c.tSLiteralType=$c.tsLiteralType=wB;$c.tSMappedType=$c.tsMappedType=CB;$c.tSMethodSignature=$c.tsMethodSignature=WM;$c.tSModuleBlock=$c.tsModuleBlock=UB;$c.tSModuleDeclaration=$c.tsModuleDeclaration=qB;$c.tSNamedTupleMember=$c.tsNamedTupleMember=xB;$c.tSNamespaceExportDeclaration=$c.tsNamespaceExportDeclaration=XB;$c.tSNeverKeyword=$c.tsNeverKeyword=QM;$c.tSNonNullExpression=$c.tsNonNullExpression=JB;$c.tSNullKeyword=$c.tsNullKeyword=ZM;$c.tSNumberKeyword=$c.tsNumberKeyword=eB;$c.tSObjectKeyword=$c.tsObjectKeyword=tB;$c.tSOptionalType=$c.tsOptionalType=yB;$c.tSParameterProperty=$c.tsParameterProperty=RM;$c.tSParenthesizedType=$c.tsParenthesizedType=PB;$c.tSPropertySignature=$c.tsPropertySignature=JM;$c.tSQualifiedName=$c.tsQualifiedName=KM;$c.tSRestType=$c.tsRestType=TB;$c.tSSatisfiesExpression=$c.tsSatisfiesExpression=MB;$c.tSStringKeyword=$c.tsStringKeyword=rB;$c.tSSymbolKeyword=$c.tsSymbolKeyword=sB;$c.tSTemplateLiteralType=$c.tsTemplateLiteralType=IB;$c.tSThisType=$c.tsThisType=oB;$c.tSTupleType=$c.tsTupleType=mB;$c.tSTypeAliasDeclaration=$c.tsTypeAliasDeclaration=kB;$c.tSTypeAnnotation=$c.tsTypeAnnotation=$B;$c.tSTypeAssertion=$c.tsTypeAssertion=BB;$c.tSTypeLiteral=$c.tsTypeLiteral=hB;$c.tSTypeOperator=$c.tsTypeOperator=AB;$c.tSTypeParameter=$c.tsTypeParameter=GB;$c.tSTypeParameterDeclaration=$c.tsTypeParameterDeclaration=zB;$c.tSTypeParameterInstantiation=$c.tsTypeParameterInstantiation=HB;$c.tSTypePredicate=$c.tsTypePredicate=pB;$c.tSTypeQuery=$c.tsTypeQuery=fB;$c.tSTypeReference=$c.tsTypeReference=cB;$c.tSUndefinedKeyword=$c.tsUndefinedKeyword=iB;$c.tSUnionType=$c.tsUnionType=SB;$c.tSUnknownKeyword=$c.tsUnknownKeyword=nB;$c.tSVoidKeyword=$c.tsVoidKeyword=aB;$c.tupleExpression=_M;$c.tupleTypeAnnotation=R2;$c.typeAlias=U2;$c.typeAnnotation=K2;$c.typeCastExpression=V2;$c.typeParameter=Y2;$c.typeParameterDeclaration=J2;$c.typeParameterInstantiation=W2;$c.typeofTypeAnnotation=q2;$c.unaryExpression=lL;$c.unionTypeAnnotation=X2;$c.updateExpression=uL;$c.v8IntrinsicIdentifier=AM;$c.variableDeclaration=cL;$c.variableDeclarator=pL;$c.variance=$2;$c.voidPattern=jM;$c.voidTypeAnnotation=H2;$c.whileStatement=fL;$c.withStatement=hL;$c.yieldExpression=FL;var TD=oi(),fi=Mr(),xD=It(),{validateInternal:c}=TD,{NODE_FIELDS:S}=xD;function SD(e){if(typeof e==="bigint")e=e.toString();let t={type:"BigIntLiteral",value:e},r=S.BigIntLiteral;return c(r.value,t,"value",e),t}function gD(e=[]){let t={type:"ArrayExpression",elements:e},r=S.ArrayExpression;return c(r.elements,t,"elements",e,1),t}function bD(e,t,r){let s={type:"AssignmentExpression",operator:e,left:t,right:r},i=S.AssignmentExpression;return c(i.operator,s,"operator",e),c(i.left,s,"left",t,1),c(i.right,s,"right",r,1),s}function ED(e,t,r){let s={type:"BinaryExpression",operator:e,left:t,right:r},i=S.BinaryExpression;return c(i.operator,s,"operator",e),c(i.left,s,"left",t,1),c(i.right,s,"right",r,1),s}function PD(e){let t={type:"InterpreterDirective",value:e},r=S.InterpreterDirective;return c(r.value,t,"value",e),t}function AD(e){let t={type:"Directive",value:e},r=S.Directive;return c(r.value,t,"value",e,1),t}function vD(e){let t={type:"DirectiveLiteral",value:e},r=S.DirectiveLiteral;return c(r.value,t,"value",e),t}function CD(e,t=[]){let r={type:"BlockStatement",body:e,directives:t},s=S.BlockStatement;return c(s.body,r,"body",e,1),c(s.directives,r,"directives",t,1),r}function ID(e=null){let t={type:"BreakStatement",label:e},r=S.BreakStatement;return c(r.label,t,"label",e,1),t}function wD(e,t){let r={type:"CallExpression",callee:e,arguments:t},s=S.CallExpression;return c(s.callee,r,"callee",e,1),c(s.arguments,r,"arguments",t,1),r}function ND(e=null,t){let r={type:"CatchClause",param:e,body:t},s=S.CatchClause;return c(s.param,r,"param",e,1),c(s.body,r,"body",t,1),r}function OD(e,t,r){let s={type:"ConditionalExpression",test:e,consequent:t,alternate:r},i=S.ConditionalExpression;return c(i.test,s,"test",e,1),c(i.consequent,s,"consequent",t,1),c(i.alternate,s,"alternate",r,1),s}function _D(e=null){let t={type:"ContinueStatement",label:e},r=S.ContinueStatement;return c(r.label,t,"label",e,1),t}function kD(){return{type:"DebuggerStatement"}}function DD(e,t){let r={type:"DoWhileStatement",test:e,body:t},s=S.DoWhileStatement;return c(s.test,r,"test",e,1),c(s.body,r,"body",t,1),r}function LD(){return{type:"EmptyStatement"}}function MD(e){let t={type:"ExpressionStatement",expression:e},r=S.ExpressionStatement;return c(r.expression,t,"expression",e,1),t}function BD(e,t=null,r=null){let s={type:"File",program:e,comments:t,tokens:r},i=S.File;return c(i.program,s,"program",e,1),c(i.comments,s,"comments",t,1),c(i.tokens,s,"tokens",r),s}function FD(e,t,r){let s={type:"ForInStatement",left:e,right:t,body:r},i=S.ForInStatement;return c(i.left,s,"left",e,1),c(i.right,s,"right",t,1),c(i.body,s,"body",r,1),s}function jD(e=null,t=null,r=null,s){let i={type:"ForStatement",init:e,test:t,update:r,body:s},n=S.ForStatement;return c(n.init,i,"init",e,1),c(n.test,i,"test",t,1),c(n.update,i,"update",r,1),c(n.body,i,"body",s,1),i}function RD(e=null,t,r,s=!1,i=!1){let n={type:"FunctionDeclaration",id:e,params:t,body:r,generator:s,async:i},a=S.FunctionDeclaration;return c(a.id,n,"id",e,1),c(a.params,n,"params",t,1),c(a.body,n,"body",r,1),c(a.generator,n,"generator",s),c(a.async,n,"async",i),n}function qD(e=null,t,r,s=!1,i=!1){let n={type:"FunctionExpression",id:e,params:t,body:r,generator:s,async:i},a=S.FunctionExpression;return c(a.id,n,"id",e,1),c(a.params,n,"params",t,1),c(a.body,n,"body",r,1),c(a.generator,n,"generator",s),c(a.async,n,"async",i),n}function UD(e){let t={type:"Identifier",name:e},r=S.Identifier;return c(r.name,t,"name",e),t}function KD(e,t,r=null){let s={type:"IfStatement",test:e,consequent:t,alternate:r},i=S.IfStatement;return c(i.test,s,"test",e,1),c(i.consequent,s,"consequent",t,1),c(i.alternate,s,"alternate",r,1),s}function VD(e,t){let r={type:"LabeledStatement",label:e,body:t},s=S.LabeledStatement;return c(s.label,r,"label",e,1),c(s.body,r,"body",t,1),r}function YD(e){let t={type:"StringLiteral",value:e},r=S.StringLiteral;return c(r.value,t,"value",e),t}function Yc(e){let t={type:"NumericLiteral",value:e},r=S.NumericLiteral;return c(r.value,t,"value",e),t}function JD(){return{type:"NullLiteral"}}function WD(e){let t={type:"BooleanLiteral",value:e},r=S.BooleanLiteral;return c(r.value,t,"value",e),t}function Jc(e,t=""){let r={type:"RegExpLiteral",pattern:e,flags:t},s=S.RegExpLiteral;return c(s.pattern,r,"pattern",e),c(s.flags,r,"flags",t),r}function XD(e,t,r){let s={type:"LogicalExpression",operator:e,left:t,right:r},i=S.LogicalExpression;return c(i.operator,s,"operator",e),c(i.left,s,"left",t,1),c(i.right,s,"right",r,1),s}function $D(e,t,r=!1,s=null){let i={type:"MemberExpression",object:e,property:t,computed:r,optional:s},n=S.MemberExpression;return c(n.object,i,"object",e,1),c(n.property,i,"property",t,1),c(n.computed,i,"computed",r),c(n.optional,i,"optional",s),i}function HD(e,t){let r={type:"NewExpression",callee:e,arguments:t,typeParameters:null},s=S.NewExpression;return c(s.callee,r,"callee",e,1),c(s.arguments,r,"arguments",t,1),r}function zD(e,t=[],r="script",s=null){let i={type:"Program",body:e,directives:t,sourceType:r,interpreter:s},n=S.Program;return c(n.body,i,"body",e,1),c(n.directives,i,"directives",t,1),c(n.sourceType,i,"sourceType",r),c(n.interpreter,i,"interpreter",s,1),i}function GD(e){let t={type:"ObjectExpression",properties:e},r=S.ObjectExpression;return c(r.properties,t,"properties",e,1),t}function QD(e="method",t,r,s,i=!1,n=!1,a=!1){let o={type:"ObjectMethod",kind:e,key:t,params:r,body:s,computed:i,generator:n,async:a},l=S.ObjectMethod;return c(l.kind,o,"kind",e),c(l.key,o,"key",t,1),c(l.params,o,"params",r,1),c(l.body,o,"body",s,1),c(l.computed,o,"computed",i),c(l.generator,o,"generator",n),c(l.async,o,"async",a),o}function ZD(e,t,r=!1,s=!1,i=null){let n={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:s,decorators:i},a=S.ObjectProperty;return c(a.key,n,"key",e,1),c(a.value,n,"value",t,1),c(a.computed,n,"computed",r),c(a.shorthand,n,"shorthand",s),c(a.decorators,n,"decorators",i,1),n}function Wc(e){let t={type:"RestElement",argument:e},r=S.RestElement;return c(r.argument,t,"argument",e,1),t}function eL(e=null){let t={type:"ReturnStatement",argument:e},r=S.ReturnStatement;return c(r.argument,t,"argument",e,1),t}function tL(e){let t={type:"SequenceExpression",expressions:e},r=S.SequenceExpression;return c(r.expressions,t,"expressions",e,1),t}function rL(e){let t={type:"ParenthesizedExpression",expression:e},r=S.ParenthesizedExpression;return c(r.expression,t,"expression",e,1),t}function sL(e=null,t){let r={type:"SwitchCase",test:e,consequent:t},s=S.SwitchCase;return c(s.test,r,"test",e,1),c(s.consequent,r,"consequent",t,1),r}function iL(e,t){let r={type:"SwitchStatement",discriminant:e,cases:t},s=S.SwitchStatement;return c(s.discriminant,r,"discriminant",e,1),c(s.cases,r,"cases",t,1),r}function nL(){return{type:"ThisExpression"}}function aL(e){let t={type:"ThrowStatement",argument:e},r=S.ThrowStatement;return c(r.argument,t,"argument",e,1),t}function oL(e,t=null,r=null){let s={type:"TryStatement",block:e,handler:t,finalizer:r},i=S.TryStatement;return c(i.block,s,"block",e,1),c(i.handler,s,"handler",t,1),c(i.finalizer,s,"finalizer",r,1),s}function lL(e,t,r=!0){let s={type:"UnaryExpression",operator:e,argument:t,prefix:r},i=S.UnaryExpression;return c(i.operator,s,"operator",e),c(i.argument,s,"argument",t,1),c(i.prefix,s,"prefix",r),s}function uL(e,t,r=!1){let s={type:"UpdateExpression",operator:e,argument:t,prefix:r},i=S.UpdateExpression;return c(i.operator,s,"operator",e),c(i.argument,s,"argument",t,1),c(i.prefix,s,"prefix",r),s}function cL(e,t){let r={type:"VariableDeclaration",kind:e,declarations:t},s=S.VariableDeclaration;return c(s.kind,r,"kind",e),c(s.declarations,r,"declarations",t,1),r}function pL(e,t=null){let r={type:"VariableDeclarator",id:e,init:t},s=S.VariableDeclarator;return c(s.id,r,"id",e,1),c(s.init,r,"init",t,1),r}function fL(e,t){let r={type:"WhileStatement",test:e,body:t},s=S.WhileStatement;return c(s.test,r,"test",e,1),c(s.body,r,"body",t,1),r}function hL(e,t){let r={type:"WithStatement",object:e,body:t},s=S.WithStatement;return c(s.object,r,"object",e,1),c(s.body,r,"body",t,1),r}function dL(e,t){let r={type:"AssignmentPattern",left:e,right:t},s=S.AssignmentPattern;return c(s.left,r,"left",e,1),c(s.right,r,"right",t,1),r}function mL(e){let t={type:"ArrayPattern",elements:e},r=S.ArrayPattern;return c(r.elements,t,"elements",e,1),t}function yL(e,t,r=!1){let s={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},i=S.ArrowFunctionExpression;return c(i.params,s,"params",e,1),c(i.body,s,"body",t,1),c(i.async,s,"async",r),s}function TL(e){let t={type:"ClassBody",body:e},r=S.ClassBody;return c(r.body,t,"body",e,1),t}function xL(e=null,t=null,r,s=null){let i={type:"ClassExpression",id:e,superClass:t,body:r,decorators:s},n=S.ClassExpression;return c(n.id,i,"id",e,1),c(n.superClass,i,"superClass",t,1),c(n.body,i,"body",r,1),c(n.decorators,i,"decorators",s,1),i}function SL(e=null,t=null,r,s=null){let i={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:s},n=S.ClassDeclaration;return c(n.id,i,"id",e,1),c(n.superClass,i,"superClass",t,1),c(n.body,i,"body",r,1),c(n.decorators,i,"decorators",s,1),i}function gL(e,t=null){let r={type:"ExportAllDeclaration",source:e,attributes:t},s=S.ExportAllDeclaration;return c(s.source,r,"source",e,1),c(s.attributes,r,"attributes",t,1),r}function bL(e){let t={type:"ExportDefaultDeclaration",declaration:e},r=S.ExportDefaultDeclaration;return c(r.declaration,t,"declaration",e,1),t}function EL(e=null,t=[],r=null,s=null){let i={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r,attributes:s},n=S.ExportNamedDeclaration;return c(n.declaration,i,"declaration",e,1),c(n.specifiers,i,"specifiers",t,1),c(n.source,i,"source",r,1),c(n.attributes,i,"attributes",s,1),i}function PL(e,t){let r={type:"ExportSpecifier",local:e,exported:t},s=S.ExportSpecifier;return c(s.local,r,"local",e,1),c(s.exported,r,"exported",t,1),r}function AL(e,t,r,s=!1){let i={type:"ForOfStatement",left:e,right:t,body:r,await:s},n=S.ForOfStatement;return c(n.left,i,"left",e,1),c(n.right,i,"right",t,1),c(n.body,i,"body",r,1),c(n.await,i,"await",s),i}function vL(e,t,r=null){let s={type:"ImportDeclaration",specifiers:e,source:t,attributes:r},i=S.ImportDeclaration;return c(i.specifiers,s,"specifiers",e,1),c(i.source,s,"source",t,1),c(i.attributes,s,"attributes",r,1),s}function CL(e){let t={type:"ImportDefaultSpecifier",local:e},r=S.ImportDefaultSpecifier;return c(r.local,t,"local",e,1),t}function IL(e){let t={type:"ImportNamespaceSpecifier",local:e},r=S.ImportNamespaceSpecifier;return c(r.local,t,"local",e,1),t}function wL(e,t){let r={type:"ImportSpecifier",local:e,imported:t},s=S.ImportSpecifier;return c(s.local,r,"local",e,1),c(s.imported,r,"imported",t,1),r}function NL(e,t=null){let r={type:"ImportExpression",source:e,options:t},s=S.ImportExpression;return c(s.source,r,"source",e,1),c(s.options,r,"options",t,1),r}function OL(e,t){let r={type:"MetaProperty",meta:e,property:t},s=S.MetaProperty;return c(s.meta,r,"meta",e,1),c(s.property,r,"property",t,1),r}function _L(e="method",t,r,s,i=!1,n=!1,a=!1,o=!1){let l={type:"ClassMethod",kind:e,key:t,params:r,body:s,computed:i,static:n,generator:a,async:o},u=S.ClassMethod;return c(u.kind,l,"kind",e),c(u.key,l,"key",t,1),c(u.params,l,"params",r,1),c(u.body,l,"body",s,1),c(u.computed,l,"computed",i),c(u.static,l,"static",n),c(u.generator,l,"generator",a),c(u.async,l,"async",o),l}function kL(e){let t={type:"ObjectPattern",properties:e},r=S.ObjectPattern;return c(r.properties,t,"properties",e,1),t}function Xc(e){let t={type:"SpreadElement",argument:e},r=S.SpreadElement;return c(r.argument,t,"argument",e,1),t}function DL(){return{type:"Super"}}function LL(e,t){let r={type:"TaggedTemplateExpression",tag:e,quasi:t},s=S.TaggedTemplateExpression;return c(s.tag,r,"tag",e,1),c(s.quasi,r,"quasi",t,1),r}function ML(e,t=!1){let r={type:"TemplateElement",value:e,tail:t},s=S.TemplateElement;return c(s.value,r,"value",e),c(s.tail,r,"tail",t),r}function BL(e,t){let r={type:"TemplateLiteral",quasis:e,expressions:t},s=S.TemplateLiteral;return c(s.quasis,r,"quasis",e,1),c(s.expressions,r,"expressions",t,1),r}function FL(e=null,t=!1){let r={type:"YieldExpression",argument:e,delegate:t},s=S.YieldExpression;return c(s.argument,r,"argument",e,1),c(s.delegate,r,"delegate",t),r}function jL(e){let t={type:"AwaitExpression",argument:e},r=S.AwaitExpression;return c(r.argument,t,"argument",e,1),t}function RL(){return{type:"Import"}}function qL(e){let t={type:"ExportNamespaceSpecifier",exported:e},r=S.ExportNamespaceSpecifier;return c(r.exported,t,"exported",e,1),t}function UL(e,t,r=!1,s){let i={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:s},n=S.OptionalMemberExpression;return c(n.object,i,"object",e,1),c(n.property,i,"property",t,1),c(n.computed,i,"computed",r),c(n.optional,i,"optional",s),i}function KL(e,t,r){let s={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},i=S.OptionalCallExpression;return c(i.callee,s,"callee",e,1),c(i.arguments,s,"arguments",t,1),c(i.optional,s,"optional",r),s}function VL(e,t=null,r=null,s=null,i=!1,n=!1){let a={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:s,computed:i,static:n},o=S.ClassProperty;return c(o.key,a,"key",e,1),c(o.value,a,"value",t,1),c(o.typeAnnotation,a,"typeAnnotation",r,1),c(o.decorators,a,"decorators",s,1),c(o.computed,a,"computed",i),c(o.static,a,"static",n),a}function YL(e,t=null,r=null,s=null,i=!1,n=!1){let a={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:s,computed:i,static:n},o=S.ClassAccessorProperty;return c(o.key,a,"key",e,1),c(o.value,a,"value",t,1),c(o.typeAnnotation,a,"typeAnnotation",r,1),c(o.decorators,a,"decorators",s,1),c(o.computed,a,"computed",i),c(o.static,a,"static",n),a}function JL(e,t=null,r=null,s=!1){let i={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:s},n=S.ClassPrivateProperty;return c(n.key,i,"key",e,1),c(n.value,i,"value",t,1),c(n.decorators,i,"decorators",r,1),c(n.static,i,"static",s),i}function WL(e="method",t,r,s,i=!1){let n={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:s,static:i},a=S.ClassPrivateMethod;return c(a.kind,n,"kind",e),c(a.key,n,"key",t,1),c(a.params,n,"params",r,1),c(a.body,n,"body",s,1),c(a.static,n,"static",i),n}function XL(e){let t={type:"PrivateName",id:e},r=S.PrivateName;return c(r.id,t,"id",e,1),t}function $L(e){let t={type:"StaticBlock",body:e},r=S.StaticBlock;return c(r.body,t,"body",e,1),t}function HL(e,t){let r={type:"ImportAttribute",key:e,value:t},s=S.ImportAttribute;return c(s.key,r,"key",e,1),c(s.value,r,"value",t,1),r}function zL(){return{type:"AnyTypeAnnotation"}}function GL(e){let t={type:"ArrayTypeAnnotation",elementType:e},r=S.ArrayTypeAnnotation;return c(r.elementType,t,"elementType",e,1),t}function QL(){return{type:"BooleanTypeAnnotation"}}function ZL(e){let t={type:"BooleanLiteralTypeAnnotation",value:e},r=S.BooleanLiteralTypeAnnotation;return c(r.value,t,"value",e),t}function e2(){return{type:"NullLiteralTypeAnnotation"}}function t2(e,t=null){let r={type:"ClassImplements",id:e,typeParameters:t},s=S.ClassImplements;return c(s.id,r,"id",e,1),c(s.typeParameters,r,"typeParameters",t,1),r}function r2(e,t=null,r=null,s){let i={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:s},n=S.DeclareClass;return c(n.id,i,"id",e,1),c(n.typeParameters,i,"typeParameters",t,1),c(n.extends,i,"extends",r,1),c(n.body,i,"body",s,1),i}function s2(e){let t={type:"DeclareFunction",id:e},r=S.DeclareFunction;return c(r.id,t,"id",e,1),t}function i2(e,t=null,r=null,s){let i={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:s},n=S.DeclareInterface;return c(n.id,i,"id",e,1),c(n.typeParameters,i,"typeParameters",t,1),c(n.extends,i,"extends",r,1),c(n.body,i,"body",s,1),i}function n2(e,t,r=null){let s={type:"DeclareModule",id:e,body:t,kind:r},i=S.DeclareModule;return c(i.id,s,"id",e,1),c(i.body,s,"body",t,1),c(i.kind,s,"kind",r),s}function a2(e){let t={type:"DeclareModuleExports",typeAnnotation:e},r=S.DeclareModuleExports;return c(r.typeAnnotation,t,"typeAnnotation",e,1),t}function o2(e,t=null,r){let s={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},i=S.DeclareTypeAlias;return c(i.id,s,"id",e,1),c(i.typeParameters,s,"typeParameters",t,1),c(i.right,s,"right",r,1),s}function l2(e,t=null,r=null){let s={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},i=S.DeclareOpaqueType;return c(i.id,s,"id",e,1),c(i.typeParameters,s,"typeParameters",t,1),c(i.supertype,s,"supertype",r,1),s}function u2(e){let t={type:"DeclareVariable",id:e},r=S.DeclareVariable;return c(r.id,t,"id",e,1),t}function c2(e=null,t=null,r=null,s=null){let i={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:s},n=S.DeclareExportDeclaration;return c(n.declaration,i,"declaration",e,1),c(n.specifiers,i,"specifiers",t,1),c(n.source,i,"source",r,1),c(n.attributes,i,"attributes",s,1),i}function p2(e,t=null){let r={type:"DeclareExportAllDeclaration",source:e,attributes:t},s=S.DeclareExportAllDeclaration;return c(s.source,r,"source",e,1),c(s.attributes,r,"attributes",t,1),r}function f2(e){let t={type:"DeclaredPredicate",value:e},r=S.DeclaredPredicate;return c(r.value,t,"value",e,1),t}function h2(){return{type:"ExistsTypeAnnotation"}}function d2(e=null,t,r=null,s){let i={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:s},n=S.FunctionTypeAnnotation;return c(n.typeParameters,i,"typeParameters",e,1),c(n.params,i,"params",t,1),c(n.rest,i,"rest",r,1),c(n.returnType,i,"returnType",s,1),i}function m2(e=null,t){let r={type:"FunctionTypeParam",name:e,typeAnnotation:t},s=S.FunctionTypeParam;return c(s.name,r,"name",e,1),c(s.typeAnnotation,r,"typeAnnotation",t,1),r}function y2(e,t=null){let r={type:"GenericTypeAnnotation",id:e,typeParameters:t},s=S.GenericTypeAnnotation;return c(s.id,r,"id",e,1),c(s.typeParameters,r,"typeParameters",t,1),r}function T2(){return{type:"InferredPredicate"}}function x2(e,t=null){let r={type:"InterfaceExtends",id:e,typeParameters:t},s=S.InterfaceExtends;return c(s.id,r,"id",e,1),c(s.typeParameters,r,"typeParameters",t,1),r}function S2(e,t=null,r=null,s){let i={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:s},n=S.InterfaceDeclaration;return c(n.id,i,"id",e,1),c(n.typeParameters,i,"typeParameters",t,1),c(n.extends,i,"extends",r,1),c(n.body,i,"body",s,1),i}function g2(e=null,t){let r={type:"InterfaceTypeAnnotation",extends:e,body:t},s=S.InterfaceTypeAnnotation;return c(s.extends,r,"extends",e,1),c(s.body,r,"body",t,1),r}function b2(e){let t={type:"IntersectionTypeAnnotation",types:e},r=S.IntersectionTypeAnnotation;return c(r.types,t,"types",e,1),t}function E2(){return{type:"MixedTypeAnnotation"}}function P2(){return{type:"EmptyTypeAnnotation"}}function A2(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e},r=S.NullableTypeAnnotation;return c(r.typeAnnotation,t,"typeAnnotation",e,1),t}function v2(e){let t={type:"NumberLiteralTypeAnnotation",value:e},r=S.NumberLiteralTypeAnnotation;return c(r.value,t,"value",e),t}function C2(){return{type:"NumberTypeAnnotation"}}function I2(e,t=[],r=[],s=[],i=!1){let n={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:s,exact:i},a=S.ObjectTypeAnnotation;return c(a.properties,n,"properties",e,1),c(a.indexers,n,"indexers",t,1),c(a.callProperties,n,"callProperties",r,1),c(a.internalSlots,n,"internalSlots",s,1),c(a.exact,n,"exact",i),n}function w2(e,t,r,s,i){let n={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:s,method:i},a=S.ObjectTypeInternalSlot;return c(a.id,n,"id",e,1),c(a.value,n,"value",t,1),c(a.optional,n,"optional",r),c(a.static,n,"static",s),c(a.method,n,"method",i),n}function N2(e){let t={type:"ObjectTypeCallProperty",value:e,static:null},r=S.ObjectTypeCallProperty;return c(r.value,t,"value",e,1),t}function O2(e=null,t,r,s=null){let i={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:s,static:null},n=S.ObjectTypeIndexer;return c(n.id,i,"id",e,1),c(n.key,i,"key",t,1),c(n.value,i,"value",r,1),c(n.variance,i,"variance",s,1),i}function _2(e,t,r=null){let s={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},i=S.ObjectTypeProperty;return c(i.key,s,"key",e,1),c(i.value,s,"value",t,1),c(i.variance,s,"variance",r,1),s}function k2(e){let t={type:"ObjectTypeSpreadProperty",argument:e},r=S.ObjectTypeSpreadProperty;return c(r.argument,t,"argument",e,1),t}function D2(e,t=null,r=null,s){let i={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:s},n=S.OpaqueType;return c(n.id,i,"id",e,1),c(n.typeParameters,i,"typeParameters",t,1),c(n.supertype,i,"supertype",r,1),c(n.impltype,i,"impltype",s,1),i}function L2(e,t){let r={type:"QualifiedTypeIdentifier",id:e,qualification:t},s=S.QualifiedTypeIdentifier;return c(s.id,r,"id",e,1),c(s.qualification,r,"qualification",t,1),r}function M2(e){let t={type:"StringLiteralTypeAnnotation",value:e},r=S.StringLiteralTypeAnnotation;return c(r.value,t,"value",e),t}function B2(){return{type:"StringTypeAnnotation"}}function F2(){return{type:"SymbolTypeAnnotation"}}function j2(){return{type:"ThisTypeAnnotation"}}function R2(e){let t={type:"TupleTypeAnnotation",types:e},r=S.TupleTypeAnnotation;return c(r.types,t,"types",e,1),t}function q2(e){let t={type:"TypeofTypeAnnotation",argument:e},r=S.TypeofTypeAnnotation;return c(r.argument,t,"argument",e,1),t}function U2(e,t=null,r){let s={type:"TypeAlias",id:e,typeParameters:t,right:r},i=S.TypeAlias;return c(i.id,s,"id",e,1),c(i.typeParameters,s,"typeParameters",t,1),c(i.right,s,"right",r,1),s}function K2(e){let t={type:"TypeAnnotation",typeAnnotation:e},r=S.TypeAnnotation;return c(r.typeAnnotation,t,"typeAnnotation",e,1),t}function V2(e,t){let r={type:"TypeCastExpression",expression:e,typeAnnotation:t},s=S.TypeCastExpression;return c(s.expression,r,"expression",e,1),c(s.typeAnnotation,r,"typeAnnotation",t,1),r}function Y2(e=null,t=null,r=null){let s={type:"TypeParameter",bound:e,default:t,variance:r,name:null},i=S.TypeParameter;return c(i.bound,s,"bound",e,1),c(i.default,s,"default",t,1),c(i.variance,s,"variance",r,1),s}function J2(e){let t={type:"TypeParameterDeclaration",params:e},r=S.TypeParameterDeclaration;return c(r.params,t,"params",e,1),t}function W2(e){let t={type:"TypeParameterInstantiation",params:e},r=S.TypeParameterInstantiation;return c(r.params,t,"params",e,1),t}function X2(e){let t={type:"UnionTypeAnnotation",types:e},r=S.UnionTypeAnnotation;return c(r.types,t,"types",e,1),t}function $2(e){let t={type:"Variance",kind:e},r=S.Variance;return c(r.kind,t,"kind",e),t}function H2(){return{type:"VoidTypeAnnotation"}}function z2(e,t){let r={type:"EnumDeclaration",id:e,body:t},s=S.EnumDeclaration;return c(s.id,r,"id",e,1),c(s.body,r,"body",t,1),r}function G2(e){let t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=S.EnumBooleanBody;return c(r.members,t,"members",e,1),t}function Q2(e){let t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=S.EnumNumberBody;return c(r.members,t,"members",e,1),t}function Z2(e){let t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=S.EnumStringBody;return c(r.members,t,"members",e,1),t}function eM(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=S.EnumSymbolBody;return c(r.members,t,"members",e,1),t}function tM(e){let t={type:"EnumBooleanMember",id:e,init:null},r=S.EnumBooleanMember;return c(r.id,t,"id",e,1),t}function rM(e,t){let r={type:"EnumNumberMember",id:e,init:t},s=S.EnumNumberMember;return c(s.id,r,"id",e,1),c(s.init,r,"init",t,1),r}function sM(e,t){let r={type:"EnumStringMember",id:e,init:t},s=S.EnumStringMember;return c(s.id,r,"id",e,1),c(s.init,r,"init",t,1),r}function iM(e){let t={type:"EnumDefaultedMember",id:e},r=S.EnumDefaultedMember;return c(r.id,t,"id",e,1),t}function nM(e,t){let r={type:"IndexedAccessType",objectType:e,indexType:t},s=S.IndexedAccessType;return c(s.objectType,r,"objectType",e,1),c(s.indexType,r,"indexType",t,1),r}function aM(e,t){let r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},s=S.OptionalIndexedAccessType;return c(s.objectType,r,"objectType",e,1),c(s.indexType,r,"indexType",t,1),r}function oM(e,t=null){let r={type:"JSXAttribute",name:e,value:t},s=S.JSXAttribute;return c(s.name,r,"name",e,1),c(s.value,r,"value",t,1),r}function lM(e){let t={type:"JSXClosingElement",name:e},r=S.JSXClosingElement;return c(r.name,t,"name",e,1),t}function uM(e,t=null,r,s=null){let i={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:s},n=S.JSXElement;return c(n.openingElement,i,"openingElement",e,1),c(n.closingElement,i,"closingElement",t,1),c(n.children,i,"children",r,1),c(n.selfClosing,i,"selfClosing",s),i}function cM(){return{type:"JSXEmptyExpression"}}function pM(e){let t={type:"JSXExpressionContainer",expression:e},r=S.JSXExpressionContainer;return c(r.expression,t,"expression",e,1),t}function fM(e){let t={type:"JSXSpreadChild",expression:e},r=S.JSXSpreadChild;return c(r.expression,t,"expression",e,1),t}function hM(e){let t={type:"JSXIdentifier",name:e},r=S.JSXIdentifier;return c(r.name,t,"name",e),t}function dM(e,t){let r={type:"JSXMemberExpression",object:e,property:t},s=S.JSXMemberExpression;return c(s.object,r,"object",e,1),c(s.property,r,"property",t,1),r}function mM(e,t){let r={type:"JSXNamespacedName",namespace:e,name:t},s=S.JSXNamespacedName;return c(s.namespace,r,"namespace",e,1),c(s.name,r,"name",t,1),r}function yM(e,t,r=!1){let s={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},i=S.JSXOpeningElement;return c(i.name,s,"name",e,1),c(i.attributes,s,"attributes",t,1),c(i.selfClosing,s,"selfClosing",r),s}function TM(e){let t={type:"JSXSpreadAttribute",argument:e},r=S.JSXSpreadAttribute;return c(r.argument,t,"argument",e,1),t}function xM(e){let t={type:"JSXText",value:e},r=S.JSXText;return c(r.value,t,"value",e),t}function SM(e,t,r){let s={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},i=S.JSXFragment;return c(i.openingFragment,s,"openingFragment",e,1),c(i.closingFragment,s,"closingFragment",t,1),c(i.children,s,"children",r,1),s}function gM(){return{type:"JSXOpeningFragment"}}function bM(){return{type:"JSXClosingFragment"}}function EM(){return{type:"Noop"}}function PM(e,t){let r={type:"Placeholder",expectedNode:e,name:t},s=S.Placeholder;return c(s.expectedNode,r,"expectedNode",e),c(s.name,r,"name",t,1),r}function AM(e){let t={type:"V8IntrinsicIdentifier",name:e},r=S.V8IntrinsicIdentifier;return c(r.name,t,"name",e),t}function vM(){return{type:"ArgumentPlaceholder"}}function CM(e,t){let r={type:"BindExpression",object:e,callee:t},s=S.BindExpression;return c(s.object,r,"object",e,1),c(s.callee,r,"callee",t,1),r}function IM(e){let t={type:"Decorator",expression:e},r=S.Decorator;return c(r.expression,t,"expression",e,1),t}function wM(e,t=!1){let r={type:"DoExpression",body:e,async:t},s=S.DoExpression;return c(s.body,r,"body",e,1),c(s.async,r,"async",t),r}function NM(e){let t={type:"ExportDefaultSpecifier",exported:e},r=S.ExportDefaultSpecifier;return c(r.exported,t,"exported",e,1),t}function OM(e){let t={type:"RecordExpression",properties:e},r=S.RecordExpression;return c(r.properties,t,"properties",e,1),t}function _M(e=[]){let t={type:"TupleExpression",elements:e},r=S.TupleExpression;return c(r.elements,t,"elements",e,1),t}function kM(e){let t={type:"DecimalLiteral",value:e},r=S.DecimalLiteral;return c(r.value,t,"value",e),t}function DM(e){let t={type:"ModuleExpression",body:e},r=S.ModuleExpression;return c(r.body,t,"body",e,1),t}function LM(){return{type:"TopicReference"}}function MM(e){let t={type:"PipelineTopicExpression",expression:e},r=S.PipelineTopicExpression;return c(r.expression,t,"expression",e,1),t}function BM(e){let t={type:"PipelineBareFunction",callee:e},r=S.PipelineBareFunction;return c(r.callee,t,"callee",e,1),t}function FM(){return{type:"PipelinePrimaryTopicReference"}}function jM(){return{type:"VoidPattern"}}function RM(e){let t={type:"TSParameterProperty",parameter:e},r=S.TSParameterProperty;return c(r.parameter,t,"parameter",e,1),t}function qM(e=null,t=null,r,s=null){let i={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:s},n=S.TSDeclareFunction;return c(n.id,i,"id",e,1),c(n.typeParameters,i,"typeParameters",t,1),c(n.params,i,"params",r,1),c(n.returnType,i,"returnType",s,1),i}function UM(e=null,t,r=null,s,i=null){let n={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:s,returnType:i},a=S.TSDeclareMethod;return c(a.decorators,n,"decorators",e,1),c(a.key,n,"key",t,1),c(a.typeParameters,n,"typeParameters",r,1),c(a.params,n,"params",s,1),c(a.returnType,n,"returnType",i,1),n}function KM(e,t){let r={type:"TSQualifiedName",left:e,right:t},s=S.TSQualifiedName;return c(s.left,r,"left",e,1),c(s.right,r,"right",t,1),r}function VM(e=null,t,r=null){let s={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},i=S.TSCallSignatureDeclaration;return c(i.typeParameters,s,"typeParameters",e,1),c(i.parameters,s,"parameters",t,1),c(i.typeAnnotation,s,"typeAnnotation",r,1),s}function YM(e=null,t,r=null){let s={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},i=S.TSConstructSignatureDeclaration;return c(i.typeParameters,s,"typeParameters",e,1),c(i.parameters,s,"parameters",t,1),c(i.typeAnnotation,s,"typeAnnotation",r,1),s}function JM(e,t=null){let r={type:"TSPropertySignature",key:e,typeAnnotation:t},s=S.TSPropertySignature;return c(s.key,r,"key",e,1),c(s.typeAnnotation,r,"typeAnnotation",t,1),r}function WM(e,t=null,r,s=null){let i={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:s,kind:null},n=S.TSMethodSignature;return c(n.key,i,"key",e,1),c(n.typeParameters,i,"typeParameters",t,1),c(n.parameters,i,"parameters",r,1),c(n.typeAnnotation,i,"typeAnnotation",s,1),i}function XM(e,t=null){let r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},s=S.TSIndexSignature;return c(s.parameters,r,"parameters",e,1),c(s.typeAnnotation,r,"typeAnnotation",t,1),r}function $M(){return{type:"TSAnyKeyword"}}function HM(){return{type:"TSBooleanKeyword"}}function zM(){return{type:"TSBigIntKeyword"}}function GM(){return{type:"TSIntrinsicKeyword"}}function QM(){return{type:"TSNeverKeyword"}}function ZM(){return{type:"TSNullKeyword"}}function eB(){return{type:"TSNumberKeyword"}}function tB(){return{type:"TSObjectKeyword"}}function rB(){return{type:"TSStringKeyword"}}function sB(){return{type:"TSSymbolKeyword"}}function iB(){return{type:"TSUndefinedKeyword"}}function nB(){return{type:"TSUnknownKeyword"}}function aB(){return{type:"TSVoidKeyword"}}function oB(){return{type:"TSThisType"}}function lB(e=null,t,r=null){let s={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r},i=S.TSFunctionType;return c(i.typeParameters,s,"typeParameters",e,1),c(i.parameters,s,"parameters",t,1),c(i.typeAnnotation,s,"typeAnnotation",r,1),s}function uB(e=null,t,r=null){let s={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r},i=S.TSConstructorType;return c(i.typeParameters,s,"typeParameters",e,1),c(i.parameters,s,"parameters",t,1),c(i.typeAnnotation,s,"typeAnnotation",r,1),s}function cB(e,t=null){let r={type:"TSTypeReference",typeName:e,typeParameters:t},s=S.TSTypeReference;return c(s.typeName,r,"typeName",e,1),c(s.typeParameters,r,"typeParameters",t,1),r}function pB(e,t=null,r=null){let s={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},i=S.TSTypePredicate;return c(i.parameterName,s,"parameterName",e,1),c(i.typeAnnotation,s,"typeAnnotation",t,1),c(i.asserts,s,"asserts",r),s}function fB(e,t=null){let r={type:"TSTypeQuery",exprName:e,typeParameters:t},s=S.TSTypeQuery;return c(s.exprName,r,"exprName",e,1),c(s.typeParameters,r,"typeParameters",t,1),r}function hB(e){let t={type:"TSTypeLiteral",members:e},r=S.TSTypeLiteral;return c(r.members,t,"members",e,1),t}function dB(e){let t={type:"TSArrayType",elementType:e},r=S.TSArrayType;return c(r.elementType,t,"elementType",e,1),t}function mB(e){let t={type:"TSTupleType",elementTypes:e},r=S.TSTupleType;return c(r.elementTypes,t,"elementTypes",e,1),t}function yB(e){let t={type:"TSOptionalType",typeAnnotation:e},r=S.TSOptionalType;return c(r.typeAnnotation,t,"typeAnnotation",e,1),t}function TB(e){let t={type:"TSRestType",typeAnnotation:e},r=S.TSRestType;return c(r.typeAnnotation,t,"typeAnnotation",e,1),t}function xB(e,t,r=!1){let s={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},i=S.TSNamedTupleMember;return c(i.label,s,"label",e,1),c(i.elementType,s,"elementType",t,1),c(i.optional,s,"optional",r),s}function SB(e){let t={type:"TSUnionType",types:e},r=S.TSUnionType;return c(r.types,t,"types",e,1),t}function gB(e){let t={type:"TSIntersectionType",types:e},r=S.TSIntersectionType;return c(r.types,t,"types",e,1),t}function bB(e,t,r,s){let i={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:s},n=S.TSConditionalType;return c(n.checkType,i,"checkType",e,1),c(n.extendsType,i,"extendsType",t,1),c(n.trueType,i,"trueType",r,1),c(n.falseType,i,"falseType",s,1),i}function EB(e){let t={type:"TSInferType",typeParameter:e},r=S.TSInferType;return c(r.typeParameter,t,"typeParameter",e,1),t}function PB(e){let t={type:"TSParenthesizedType",typeAnnotation:e},r=S.TSParenthesizedType;return c(r.typeAnnotation,t,"typeAnnotation",e,1),t}function AB(e,t="keyof"){let r={type:"TSTypeOperator",typeAnnotation:e,operator:t},s=S.TSTypeOperator;return c(s.typeAnnotation,r,"typeAnnotation",e,1),c(s.operator,r,"operator",t),r}function vB(e,t){let r={type:"TSIndexedAccessType",objectType:e,indexType:t},s=S.TSIndexedAccessType;return c(s.objectType,r,"objectType",e,1),c(s.indexType,r,"indexType",t,1),r}function CB(e,t=null,r=null){let s={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r},i=S.TSMappedType;return c(i.typeParameter,s,"typeParameter",e,1),c(i.typeAnnotation,s,"typeAnnotation",t,1),c(i.nameType,s,"nameType",r,1),s}function IB(e,t){let r={type:"TSTemplateLiteralType",quasis:e,types:t},s=S.TSTemplateLiteralType;return c(s.quasis,r,"quasis",e,1),c(s.types,r,"types",t,1),r}function wB(e){let t={type:"TSLiteralType",literal:e},r=S.TSLiteralType;return c(r.literal,t,"literal",e,1),t}function NB(e,t=null){let r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},s=S.TSExpressionWithTypeArguments;return c(s.expression,r,"expression",e,1),c(s.typeParameters,r,"typeParameters",t,1),r}function OB(e,t=null,r=null,s){let i={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:s},n=S.TSInterfaceDeclaration;return c(n.id,i,"id",e,1),c(n.typeParameters,i,"typeParameters",t,1),c(n.extends,i,"extends",r,1),c(n.body,i,"body",s,1),i}function _B(e){let t={type:"TSInterfaceBody",body:e},r=S.TSInterfaceBody;return c(r.body,t,"body",e,1),t}function kB(e,t=null,r){let s={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},i=S.TSTypeAliasDeclaration;return c(i.id,s,"id",e,1),c(i.typeParameters,s,"typeParameters",t,1),c(i.typeAnnotation,s,"typeAnnotation",r,1),s}function DB(e,t=null){let r={type:"TSInstantiationExpression",expression:e,typeParameters:t},s=S.TSInstantiationExpression;return c(s.expression,r,"expression",e,1),c(s.typeParameters,r,"typeParameters",t,1),r}function LB(e,t){let r={type:"TSAsExpression",expression:e,typeAnnotation:t},s=S.TSAsExpression;return c(s.expression,r,"expression",e,1),c(s.typeAnnotation,r,"typeAnnotation",t,1),r}function MB(e,t){let r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},s=S.TSSatisfiesExpression;return c(s.expression,r,"expression",e,1),c(s.typeAnnotation,r,"typeAnnotation",t,1),r}function BB(e,t){let r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},s=S.TSTypeAssertion;return c(s.typeAnnotation,r,"typeAnnotation",e,1),c(s.expression,r,"expression",t,1),r}function FB(e){let t={type:"TSEnumBody",members:e},r=S.TSEnumBody;return c(r.members,t,"members",e,1),t}function jB(e,t){let r={type:"TSEnumDeclaration",id:e,members:t},s=S.TSEnumDeclaration;return c(s.id,r,"id",e,1),c(s.members,r,"members",t,1),r}function RB(e,t=null){let r={type:"TSEnumMember",id:e,initializer:t},s=S.TSEnumMember;return c(s.id,r,"id",e,1),c(s.initializer,r,"initializer",t,1),r}function qB(e,t){let r={type:"TSModuleDeclaration",id:e,body:t,kind:null},s=S.TSModuleDeclaration;return c(s.id,r,"id",e,1),c(s.body,r,"body",t,1),r}function UB(e){let t={type:"TSModuleBlock",body:e},r=S.TSModuleBlock;return c(r.body,t,"body",e,1),t}function KB(e,t=null,r=null){let s={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},i=S.TSImportType;return c(i.argument,s,"argument",e,1),c(i.qualifier,s,"qualifier",t,1),c(i.typeParameters,s,"typeParameters",r,1),s}function VB(e,t){let r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},s=S.TSImportEqualsDeclaration;return c(s.id,r,"id",e,1),c(s.moduleReference,r,"moduleReference",t,1),r}function YB(e){let t={type:"TSExternalModuleReference",expression:e},r=S.TSExternalModuleReference;return c(r.expression,t,"expression",e,1),t}function JB(e){let t={type:"TSNonNullExpression",expression:e},r=S.TSNonNullExpression;return c(r.expression,t,"expression",e,1),t}function WB(e){let t={type:"TSExportAssignment",expression:e},r=S.TSExportAssignment;return c(r.expression,t,"expression",e,1),t}function XB(e){let t={type:"TSNamespaceExportDeclaration",id:e},r=S.TSNamespaceExportDeclaration;return c(r.id,t,"id",e,1),t}function $B(e){let t={type:"TSTypeAnnotation",typeAnnotation:e},r=S.TSTypeAnnotation;return c(r.typeAnnotation,t,"typeAnnotation",e,1),t}function HB(e){let t={type:"TSTypeParameterInstantiation",params:e},r=S.TSTypeParameterInstantiation;return c(r.params,t,"params",e,1),t}function zB(e){let t={type:"TSTypeParameterDeclaration",params:e},r=S.TSTypeParameterDeclaration;return c(r.params,t,"params",e,1),t}function GB(e=null,t=null,r){let s={type:"TSTypeParameter",constraint:e,default:t,name:r},i=S.TSTypeParameter;return c(i.constraint,s,"constraint",e,1),c(i.default,s,"default",t,1),c(i.name,s,"name",r),s}function QB(e){return(0,fi.default)("NumberLiteral","NumericLiteral","The node type "),Yc(e)}function ZB(e,t=""){return(0,fi.default)("RegexLiteral","RegExpLiteral","The node type "),Jc(e,t)}function eF(e){return(0,fi.default)("RestProperty","RestElement","The node type "),Wc(e)}function tF(e){return(0,fi.default)("SpreadProperty","SpreadElement","The node type "),Xc(e)}});var Zc=A(function(Hc){Object.defineProperty(Hc,"__esModule",{value:!0});Hc.JSXIdentifier=Hc.JSXFragment=Hc.JSXExpressionContainer=Hc.JSXEmptyExpression=Hc.JSXElement=Hc.JSXClosingFragment=Hc.JSXClosingElement=Hc.JSXAttribute=Hc.IntersectionTypeAnnotation=Hc.InterpreterDirective=Hc.InterfaceTypeAnnotation=Hc.InterfaceExtends=Hc.InterfaceDeclaration=Hc.InferredPredicate=Hc.IndexedAccessType=Hc.ImportSpecifier=Hc.ImportNamespaceSpecifier=Hc.ImportExpression=Hc.ImportDefaultSpecifier=Hc.ImportDeclaration=Hc.ImportAttribute=Hc.Import=Hc.IfStatement=Hc.Identifier=Hc.GenericTypeAnnotation=Hc.FunctionTypeParam=Hc.FunctionTypeAnnotation=Hc.FunctionExpression=Hc.FunctionDeclaration=Hc.ForStatement=Hc.ForOfStatement=Hc.ForInStatement=Hc.File=Hc.ExpressionStatement=Hc.ExportSpecifier=Hc.ExportNamespaceSpecifier=Hc.ExportNamedDeclaration=Hc.ExportDefaultSpecifier=Hc.ExportDefaultDeclaration=Hc.ExportAllDeclaration=Hc.ExistsTypeAnnotation=Hc.EnumSymbolBody=Hc.EnumStringMember=Hc.EnumStringBody=Hc.EnumNumberMember=Hc.EnumNumberBody=Hc.EnumDefaultedMember=Hc.EnumDeclaration=Hc.EnumBooleanMember=Hc.EnumBooleanBody=Hc.EmptyTypeAnnotation=Hc.EmptyStatement=Hc.DoWhileStatement=Hc.DoExpression=Hc.DirectiveLiteral=Hc.Directive=Hc.Decorator=Hc.DeclaredPredicate=Hc.DeclareVariable=Hc.DeclareTypeAlias=Hc.DeclareOpaqueType=Hc.DeclareModuleExports=Hc.DeclareModule=Hc.DeclareInterface=Hc.DeclareFunction=Hc.DeclareExportDeclaration=Hc.DeclareExportAllDeclaration=Hc.DeclareClass=Hc.DecimalLiteral=Hc.DebuggerStatement=Hc.ContinueStatement=Hc.ConditionalExpression=Hc.ClassProperty=Hc.ClassPrivateProperty=Hc.ClassPrivateMethod=Hc.ClassMethod=Hc.ClassImplements=Hc.ClassExpression=Hc.ClassDeclaration=Hc.ClassBody=Hc.ClassAccessorProperty=Hc.CatchClause=Hc.CallExpression=Hc.BreakStatement=Hc.BooleanTypeAnnotation=Hc.BooleanLiteralTypeAnnotation=Hc.BooleanLiteral=Hc.BlockStatement=Hc.BindExpression=Hc.BinaryExpression=Hc.BigIntLiteral=Hc.AwaitExpression=Hc.AssignmentPattern=Hc.AssignmentExpression=Hc.ArrowFunctionExpression=Hc.ArrayTypeAnnotation=Hc.ArrayPattern=Hc.ArrayExpression=Hc.ArgumentPlaceholder=Hc.AnyTypeAnnotation=void 0;Hc.TSNumberKeyword=Hc.TSNullKeyword=Hc.TSNonNullExpression=Hc.TSNeverKeyword=Hc.TSNamespaceExportDeclaration=Hc.TSNamedTupleMember=Hc.TSModuleDeclaration=Hc.TSModuleBlock=Hc.TSMethodSignature=Hc.TSMappedType=Hc.TSLiteralType=Hc.TSIntrinsicKeyword=Hc.TSIntersectionType=Hc.TSInterfaceDeclaration=Hc.TSInterfaceBody=Hc.TSInstantiationExpression=Hc.TSInferType=Hc.TSIndexedAccessType=Hc.TSIndexSignature=Hc.TSImportType=Hc.TSImportEqualsDeclaration=Hc.TSFunctionType=Hc.TSExternalModuleReference=Hc.TSExpressionWithTypeArguments=Hc.TSExportAssignment=Hc.TSEnumMember=Hc.TSEnumDeclaration=Hc.TSEnumBody=Hc.TSDeclareMethod=Hc.TSDeclareFunction=Hc.TSConstructorType=Hc.TSConstructSignatureDeclaration=Hc.TSConditionalType=Hc.TSCallSignatureDeclaration=Hc.TSBooleanKeyword=Hc.TSBigIntKeyword=Hc.TSAsExpression=Hc.TSArrayType=Hc.TSAnyKeyword=Hc.SymbolTypeAnnotation=Hc.SwitchStatement=Hc.SwitchCase=Hc.Super=Hc.StringTypeAnnotation=Hc.StringLiteralTypeAnnotation=Hc.StringLiteral=Hc.StaticBlock=Hc.SpreadProperty=Hc.SpreadElement=Hc.SequenceExpression=Hc.ReturnStatement=Hc.RestProperty=Hc.RestElement=Hc.RegexLiteral=Hc.RegExpLiteral=Hc.RecordExpression=Hc.QualifiedTypeIdentifier=Hc.Program=Hc.PrivateName=Hc.Placeholder=Hc.PipelineTopicExpression=Hc.PipelinePrimaryTopicReference=Hc.PipelineBareFunction=Hc.ParenthesizedExpression=Hc.OptionalMemberExpression=Hc.OptionalIndexedAccessType=Hc.OptionalCallExpression=Hc.OpaqueType=Hc.ObjectTypeSpreadProperty=Hc.ObjectTypeProperty=Hc.ObjectTypeInternalSlot=Hc.ObjectTypeIndexer=Hc.ObjectTypeCallProperty=Hc.ObjectTypeAnnotation=Hc.ObjectProperty=Hc.ObjectPattern=Hc.ObjectMethod=Hc.ObjectExpression=Hc.NumericLiteral=Hc.NumberTypeAnnotation=Hc.NumberLiteralTypeAnnotation=Hc.NumberLiteral=Hc.NullableTypeAnnotation=Hc.NullLiteralTypeAnnotation=Hc.NullLiteral=Hc.Noop=Hc.NewExpression=Hc.ModuleExpression=Hc.MixedTypeAnnotation=Hc.MetaProperty=Hc.MemberExpression=Hc.LogicalExpression=Hc.LabeledStatement=Hc.JSXText=Hc.JSXSpreadChild=Hc.JSXSpreadAttribute=Hc.JSXOpeningFragment=Hc.JSXOpeningElement=Hc.JSXNamespacedName=Hc.JSXMemberExpression=void 0;Hc.YieldExpression=Hc.WithStatement=Hc.WhileStatement=Hc.VoidTypeAnnotation=Hc.VoidPattern=Hc.Variance=Hc.VariableDeclarator=Hc.VariableDeclaration=Hc.V8IntrinsicIdentifier=Hc.UpdateExpression=Hc.UnionTypeAnnotation=Hc.UnaryExpression=Hc.TypeofTypeAnnotation=Hc.TypeParameterInstantiation=Hc.TypeParameterDeclaration=Hc.TypeParameter=Hc.TypeCastExpression=Hc.TypeAnnotation=Hc.TypeAlias=Hc.TupleTypeAnnotation=Hc.TupleExpression=Hc.TryStatement=Hc.TopicReference=Hc.ThrowStatement=Hc.ThisTypeAnnotation=Hc.ThisExpression=Hc.TemplateLiteral=Hc.TemplateElement=Hc.TaggedTemplateExpression=Hc.TSVoidKeyword=Hc.TSUnknownKeyword=Hc.TSUnionType=Hc.TSUndefinedKeyword=Hc.TSTypeReference=Hc.TSTypeQuery=Hc.TSTypePredicate=Hc.TSTypeParameterInstantiation=Hc.TSTypeParameterDeclaration=Hc.TSTypeParameter=Hc.TSTypeOperator=Hc.TSTypeLiteral=Hc.TSTypeAssertion=Hc.TSTypeAnnotation=Hc.TSTypeAliasDeclaration=Hc.TSTupleType=Hc.TSThisType=Hc.TSTemplateLiteralType=Hc.TSSymbolKeyword=Hc.TSStringKeyword=Hc.TSSatisfiesExpression=Hc.TSRestType=Hc.TSQualifiedName=Hc.TSPropertySignature=Hc.TSParenthesizedType=Hc.TSParameterProperty=Hc.TSOptionalType=Hc.TSObjectKeyword=void 0;var xs=ra(),pIe=Mr();function y(e){return xs[e]}var fIe=Hc.ArrayExpression=y("arrayExpression"),hIe=Hc.AssignmentExpression=y("assignmentExpression"),dIe=Hc.BinaryExpression=y("binaryExpression"),mIe=Hc.InterpreterDirective=y("interpreterDirective"),yIe=Hc.Directive=y("directive"),TIe=Hc.DirectiveLiteral=y("directiveLiteral"),xIe=Hc.BlockStatement=y("blockStatement"),SIe=Hc.BreakStatement=y("breakStatement"),gIe=Hc.CallExpression=y("callExpression"),bIe=Hc.CatchClause=y("catchClause"),EIe=Hc.ConditionalExpression=y("conditionalExpression"),PIe=Hc.ContinueStatement=y("continueStatement"),AIe=Hc.DebuggerStatement=y("debuggerStatement"),vIe=Hc.DoWhileStatement=y("doWhileStatement"),CIe=Hc.EmptyStatement=y("emptyStatement"),IIe=Hc.ExpressionStatement=y("expressionStatement"),wIe=Hc.File=y("file"),NIe=Hc.ForInStatement=y("forInStatement"),OIe=Hc.ForStatement=y("forStatement"),_Ie=Hc.FunctionDeclaration=y("functionDeclaration"),kIe=Hc.FunctionExpression=y("functionExpression"),DIe=Hc.Identifier=y("identifier"),LIe=Hc.IfStatement=y("ifStatement"),MIe=Hc.LabeledStatement=y("labeledStatement"),BIe=Hc.StringLiteral=y("stringLiteral"),FIe=Hc.NumericLiteral=y("numericLiteral"),jIe=Hc.NullLiteral=y("nullLiteral"),RIe=Hc.BooleanLiteral=y("booleanLiteral"),qIe=Hc.RegExpLiteral=y("regExpLiteral"),UIe=Hc.LogicalExpression=y("logicalExpression"),KIe=Hc.MemberExpression=y("memberExpression"),VIe=Hc.NewExpression=y("newExpression"),YIe=Hc.Program=y("program"),JIe=Hc.ObjectExpression=y("objectExpression"),WIe=Hc.ObjectMethod=y("objectMethod"),XIe=Hc.ObjectProperty=y("objectProperty"),$Ie=Hc.RestElement=y("restElement"),HIe=Hc.ReturnStatement=y("returnStatement"),zIe=Hc.SequenceExpression=y("sequenceExpression"),GIe=Hc.ParenthesizedExpression=y("parenthesizedExpression"),QIe=Hc.SwitchCase=y("switchCase"),ZIe=Hc.SwitchStatement=y("switchStatement"),ewe=Hc.ThisExpression=y("thisExpression"),twe=Hc.ThrowStatement=y("throwStatement"),rwe=Hc.TryStatement=y("tryStatement"),swe=Hc.UnaryExpression=y("unaryExpression"),iwe=Hc.UpdateExpression=y("updateExpression"),nwe=Hc.VariableDeclaration=y("variableDeclaration"),awe=Hc.VariableDeclarator=y("variableDeclarator"),owe=Hc.WhileStatement=y("whileStatement"),lwe=Hc.WithStatement=y("withStatement"),uwe=Hc.AssignmentPattern=y("assignmentPattern"),cwe=Hc.ArrayPattern=y("arrayPattern"),pwe=Hc.ArrowFunctionExpression=y("arrowFunctionExpression"),fwe=Hc.ClassBody=y("classBody"),hwe=Hc.ClassExpression=y("classExpression"),dwe=Hc.ClassDeclaration=y("classDeclaration"),mwe=Hc.ExportAllDeclaration=y("exportAllDeclaration"),ywe=Hc.ExportDefaultDeclaration=y("exportDefaultDeclaration"),Twe=Hc.ExportNamedDeclaration=y("exportNamedDeclaration"),xwe=Hc.ExportSpecifier=y("exportSpecifier"),Swe=Hc.ForOfStatement=y("forOfStatement"),gwe=Hc.ImportDeclaration=y("importDeclaration"),bwe=Hc.ImportDefaultSpecifier=y("importDefaultSpecifier"),Ewe=Hc.ImportNamespaceSpecifier=y("importNamespaceSpecifier"),Pwe=Hc.ImportSpecifier=y("importSpecifier"),Awe=Hc.ImportExpression=y("importExpression"),vwe=Hc.MetaProperty=y("metaProperty"),Cwe=Hc.ClassMethod=y("classMethod"),Iwe=Hc.ObjectPattern=y("objectPattern"),wwe=Hc.SpreadElement=y("spreadElement"),Nwe=Hc.Super=y("super"),Owe=Hc.TaggedTemplateExpression=y("taggedTemplateExpression"),_we=Hc.TemplateElement=y("templateElement"),kwe=Hc.TemplateLiteral=y("templateLiteral"),Dwe=Hc.YieldExpression=y("yieldExpression"),Lwe=Hc.AwaitExpression=y("awaitExpression"),Mwe=Hc.Import=y("import"),Bwe=Hc.BigIntLiteral=y("bigIntLiteral"),Fwe=Hc.ExportNamespaceSpecifier=y("exportNamespaceSpecifier"),jwe=Hc.OptionalMemberExpression=y("optionalMemberExpression"),Rwe=Hc.OptionalCallExpression=y("optionalCallExpression"),qwe=Hc.ClassProperty=y("classProperty"),Uwe=Hc.ClassAccessorProperty=y("classAccessorProperty"),Kwe=Hc.ClassPrivateProperty=y("classPrivateProperty"),Vwe=Hc.ClassPrivateMethod=y("classPrivateMethod"),Ywe=Hc.PrivateName=y("privateName"),Jwe=Hc.StaticBlock=y("staticBlock"),Wwe=Hc.ImportAttribute=y("importAttribute"),Xwe=Hc.AnyTypeAnnotation=y("anyTypeAnnotation"),$we=Hc.ArrayTypeAnnotation=y("arrayTypeAnnotation"),Hwe=Hc.BooleanTypeAnnotation=y("booleanTypeAnnotation"),zwe=Hc.BooleanLiteralTypeAnnotation=y("booleanLiteralTypeAnnotation"),Gwe=Hc.NullLiteralTypeAnnotation=y("nullLiteralTypeAnnotation"),Qwe=Hc.ClassImplements=y("classImplements"),Zwe=Hc.DeclareClass=y("declareClass"),eNe=Hc.DeclareFunction=y("declareFunction"),tNe=Hc.DeclareInterface=y("declareInterface"),rNe=Hc.DeclareModule=y("declareModule"),sNe=Hc.DeclareModuleExports=y("declareModuleExports"),iNe=Hc.DeclareTypeAlias=y("declareTypeAlias"),nNe=Hc.DeclareOpaqueType=y("declareOpaqueType"),aNe=Hc.DeclareVariable=y("declareVariable"),oNe=Hc.DeclareExportDeclaration=y("declareExportDeclaration"),lNe=Hc.DeclareExportAllDeclaration=y("declareExportAllDeclaration"),uNe=Hc.DeclaredPredicate=y("declaredPredicate"),cNe=Hc.ExistsTypeAnnotation=y("existsTypeAnnotation"),pNe=Hc.FunctionTypeAnnotation=y("functionTypeAnnotation"),fNe=Hc.FunctionTypeParam=y("functionTypeParam"),hNe=Hc.GenericTypeAnnotation=y("genericTypeAnnotation"),dNe=Hc.InferredPredicate=y("inferredPredicate"),mNe=Hc.InterfaceExtends=y("interfaceExtends"),yNe=Hc.InterfaceDeclaration=y("interfaceDeclaration"),TNe=Hc.InterfaceTypeAnnotation=y("interfaceTypeAnnotation"),xNe=Hc.IntersectionTypeAnnotation=y("intersectionTypeAnnotation"),SNe=Hc.MixedTypeAnnotation=y("mixedTypeAnnotation"),gNe=Hc.EmptyTypeAnnotation=y("emptyTypeAnnotation"),bNe=Hc.NullableTypeAnnotation=y("nullableTypeAnnotation"),ENe=Hc.NumberLiteralTypeAnnotation=y("numberLiteralTypeAnnotation"),PNe=Hc.NumberTypeAnnotation=y("numberTypeAnnotation"),ANe=Hc.ObjectTypeAnnotation=y("objectTypeAnnotation"),vNe=Hc.ObjectTypeInternalSlot=y("objectTypeInternalSlot"),CNe=Hc.ObjectTypeCallProperty=y("objectTypeCallProperty"),INe=Hc.ObjectTypeIndexer=y("objectTypeIndexer"),wNe=Hc.ObjectTypeProperty=y("objectTypeProperty"),NNe=Hc.ObjectTypeSpreadProperty=y("objectTypeSpreadProperty"),ONe=Hc.OpaqueType=y("opaqueType"),_Ne=Hc.QualifiedTypeIdentifier=y("qualifiedTypeIdentifier"),kNe=Hc.StringLiteralTypeAnnotation=y("stringLiteralTypeAnnotation"),DNe=Hc.StringTypeAnnotation=y("stringTypeAnnotation"),LNe=Hc.SymbolTypeAnnotation=y("symbolTypeAnnotation"),MNe=Hc.ThisTypeAnnotation=y("thisTypeAnnotation"),BNe=Hc.TupleTypeAnnotation=y("tupleTypeAnnotation"),FNe=Hc.TypeofTypeAnnotation=y("typeofTypeAnnotation"),jNe=Hc.TypeAlias=y("typeAlias"),RNe=Hc.TypeAnnotation=y("typeAnnotation"),qNe=Hc.TypeCastExpression=y("typeCastExpression"),UNe=Hc.TypeParameter=y("typeParameter"),KNe=Hc.TypeParameterDeclaration=y("typeParameterDeclaration"),VNe=Hc.TypeParameterInstantiation=y("typeParameterInstantiation"),YNe=Hc.UnionTypeAnnotation=y("unionTypeAnnotation"),JNe=Hc.Variance=y("variance"),WNe=Hc.VoidTypeAnnotation=y("voidTypeAnnotation"),XNe=Hc.EnumDeclaration=y("enumDeclaration"),$Ne=Hc.EnumBooleanBody=y("enumBooleanBody"),HNe=Hc.EnumNumberBody=y("enumNumberBody"),zNe=Hc.EnumStringBody=y("enumStringBody"),GNe=Hc.EnumSymbolBody=y("enumSymbolBody"),QNe=Hc.EnumBooleanMember=y("enumBooleanMember"),ZNe=Hc.EnumNumberMember=y("enumNumberMember"),eOe=Hc.EnumStringMember=y("enumStringMember"),tOe=Hc.EnumDefaultedMember=y("enumDefaultedMember"),rOe=Hc.IndexedAccessType=y("indexedAccessType"),sOe=Hc.OptionalIndexedAccessType=y("optionalIndexedAccessType"),iOe=Hc.JSXAttribute=y("jsxAttribute"),nOe=Hc.JSXClosingElement=y("jsxClosingElement"),aOe=Hc.JSXElement=y("jsxElement"),oOe=Hc.JSXEmptyExpression=y("jsxEmptyExpression"),lOe=Hc.JSXExpressionContainer=y("jsxExpressionContainer"),uOe=Hc.JSXSpreadChild=y("jsxSpreadChild"),cOe=Hc.JSXIdentifier=y("jsxIdentifier"),pOe=Hc.JSXMemberExpression=y("jsxMemberExpression"),fOe=Hc.JSXNamespacedName=y("jsxNamespacedName"),hOe=Hc.JSXOpeningElement=y("jsxOpeningElement"),dOe=Hc.JSXSpreadAttribute=y("jsxSpreadAttribute"),mOe=Hc.JSXText=y("jsxText"),yOe=Hc.JSXFragment=y("jsxFragment"),TOe=Hc.JSXOpeningFragment=y("jsxOpeningFragment"),xOe=Hc.JSXClosingFragment=y("jsxClosingFragment"),SOe=Hc.Noop=y("noop"),gOe=Hc.Placeholder=y("placeholder"),bOe=Hc.V8IntrinsicIdentifier=y("v8IntrinsicIdentifier"),EOe=Hc.ArgumentPlaceholder=y("argumentPlaceholder"),POe=Hc.BindExpression=y("bindExpression"),AOe=Hc.Decorator=y("decorator"),vOe=Hc.DoExpression=y("doExpression"),COe=Hc.ExportDefaultSpecifier=y("exportDefaultSpecifier"),IOe=Hc.RecordExpression=y("recordExpression"),wOe=Hc.TupleExpression=y("tupleExpression"),NOe=Hc.DecimalLiteral=y("decimalLiteral"),OOe=Hc.ModuleExpression=y("moduleExpression"),_Oe=Hc.TopicReference=y("topicReference"),kOe=Hc.PipelineTopicExpression=y("pipelineTopicExpression"),DOe=Hc.PipelineBareFunction=y("pipelineBareFunction"),LOe=Hc.PipelinePrimaryTopicReference=y("pipelinePrimaryTopicReference"),MOe=Hc.VoidPattern=y("voidPattern"),BOe=Hc.TSParameterProperty=y("tsParameterProperty"),FOe=Hc.TSDeclareFunction=y("tsDeclareFunction"),jOe=Hc.TSDeclareMethod=y("tsDeclareMethod"),ROe=Hc.TSQualifiedName=y("tsQualifiedName"),qOe=Hc.TSCallSignatureDeclaration=y("tsCallSignatureDeclaration"),UOe=Hc.TSConstructSignatureDeclaration=y("tsConstructSignatureDeclaration"),KOe=Hc.TSPropertySignature=y("tsPropertySignature"),VOe=Hc.TSMethodSignature=y("tsMethodSignature"),YOe=Hc.TSIndexSignature=y("tsIndexSignature"),JOe=Hc.TSAnyKeyword=y("tsAnyKeyword"),WOe=Hc.TSBooleanKeyword=y("tsBooleanKeyword"),XOe=Hc.TSBigIntKeyword=y("tsBigIntKeyword"),$Oe=Hc.TSIntrinsicKeyword=y("tsIntrinsicKeyword"),HOe=Hc.TSNeverKeyword=y("tsNeverKeyword"),zOe=Hc.TSNullKeyword=y("tsNullKeyword"),GOe=Hc.TSNumberKeyword=y("tsNumberKeyword"),QOe=Hc.TSObjectKeyword=y("tsObjectKeyword"),ZOe=Hc.TSStringKeyword=y("tsStringKeyword"),e_e=Hc.TSSymbolKeyword=y("tsSymbolKeyword"),t_e=Hc.TSUndefinedKeyword=y("tsUndefinedKeyword"),r_e=Hc.TSUnknownKeyword=y("tsUnknownKeyword"),s_e=Hc.TSVoidKeyword=y("tsVoidKeyword"),i_e=Hc.TSThisType=y("tsThisType"),n_e=Hc.TSFunctionType=y("tsFunctionType"),a_e=Hc.TSConstructorType=y("tsConstructorType"),o_e=Hc.TSTypeReference=y("tsTypeReference"),l_e=Hc.TSTypePredicate=y("tsTypePredicate"),u_e=Hc.TSTypeQuery=y("tsTypeQuery"),c_e=Hc.TSTypeLiteral=y("tsTypeLiteral"),p_e=Hc.TSArrayType=y("tsArrayType"),f_e=Hc.TSTupleType=y("tsTupleType"),h_e=Hc.TSOptionalType=y("tsOptionalType"),d_e=Hc.TSRestType=y("tsRestType"),m_e=Hc.TSNamedTupleMember=y("tsNamedTupleMember"),y_e=Hc.TSUnionType=y("tsUnionType"),T_e=Hc.TSIntersectionType=y("tsIntersectionType"),x_e=Hc.TSConditionalType=y("tsConditionalType"),S_e=Hc.TSInferType=y("tsInferType"),g_e=Hc.TSParenthesizedType=y("tsParenthesizedType"),b_e=Hc.TSTypeOperator=y("tsTypeOperator"),E_e=Hc.TSIndexedAccessType=y("tsIndexedAccessType"),P_e=Hc.TSMappedType=y("tsMappedType"),A_e=Hc.TSTemplateLiteralType=y("tsTemplateLiteralType"),v_e=Hc.TSLiteralType=y("tsLiteralType"),C_e=Hc.TSExpressionWithTypeArguments=y("tsExpressionWithTypeArguments"),I_e=Hc.TSInterfaceDeclaration=y("tsInterfaceDeclaration"),w_e=Hc.TSInterfaceBody=y("tsInterfaceBody"),N_e=Hc.TSTypeAliasDeclaration=y("tsTypeAliasDeclaration"),O_e=Hc.TSInstantiationExpression=y("tsInstantiationExpression"),__e=Hc.TSAsExpression=y("tsAsExpression"),k_e=Hc.TSSatisfiesExpression=y("tsSatisfiesExpression"),D_e=Hc.TSTypeAssertion=y("tsTypeAssertion"),L_e=Hc.TSEnumBody=y("tsEnumBody"),M_e=Hc.TSEnumDeclaration=y("tsEnumDeclaration"),B_e=Hc.TSEnumMember=y("tsEnumMember"),F_e=Hc.TSModuleDeclaration=y("tsModuleDeclaration"),j_e=Hc.TSModuleBlock=y("tsModuleBlock"),R_e=Hc.TSImportType=y("tsImportType"),q_e=Hc.TSImportEqualsDeclaration=y("tsImportEqualsDeclaration"),U_e=Hc.TSExternalModuleReference=y("tsExternalModuleReference"),K_e=Hc.TSNonNullExpression=y("tsNonNullExpression"),V_e=Hc.TSExportAssignment=y("tsExportAssignment"),Y_e=Hc.TSNamespaceExportDeclaration=y("tsNamespaceExportDeclaration"),J_e=Hc.TSTypeAnnotation=y("tsTypeAnnotation"),W_e=Hc.TSTypeParameterInstantiation=y("tsTypeParameterInstantiation"),X_e=Hc.TSTypeParameterDeclaration=y("tsTypeParameterDeclaration"),$_e=Hc.TSTypeParameter=y("tsTypeParameter"),H_e=Hc.NumberLiteral=xs.numberLiteral,z_e=Hc.RegexLiteral=xs.regexLiteral,G_e=Hc.RestProperty=xs.restProperty,Q_e=Hc.SpreadProperty=xs.spreadProperty});var rt=A(function(Qt){Object.defineProperty(Qt,"__esModule",{value:!0});var sa=ra();Object.keys(sa).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in Qt&&Qt[e]===sa[e])return;Object.defineProperty(Qt,e,{enumerable:!0,get:function(){return sa[e]}})});var ia=Zc();Object.keys(ia).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in Qt&&Qt[e]===ia[e])return;Object.defineProperty(Qt,e,{enumerable:!0,get:function(){return ia[e]}})})});var tp=A(function(ep){Object.defineProperty(ep,"__esModule",{value:!0});ep.default=N7;var I7=rt(),w7=ae();function N7(e,t){let r=e.value.split(/\r\n|\n|\r/),s=0;for(let n=0;n<r.length;n++)if(/[^ \t]/.exec(r[n]))s=n;let i="";for(let n=0;n<r.length;n++){let a=r[n],o=n===0,l=n===r.length-1,u=n===s,p=a.replace(/\t/g," ");if(!o)p=p.replace(/^ +/,"");if(!l)p=p.replace(/ +$/,"");if(p){if(!u)p+=" ";i+=p}}if(i)t.push((0,w7.inherits)((0,I7.stringLiteral)(i),e))}});var sp=A(function(rp){Object.defineProperty(rp,"__esModule",{value:!0});rp.default=k7;var na=Le(),_7=tp();function k7(e){let t=[];for(let r=0;r<e.children.length;r++){let s=e.children[r];if((0,na.isJSXText)(s)){(0,_7.default)(s,t);continue}if((0,na.isJSXExpressionContainer)(s))s=s.expression;if((0,na.isJSXEmptyExpression)(s))continue;t.push(s)}return t}});var aa=A(function(ip){Object.defineProperty(ip,"__esModule",{value:!0});ip.default=M7;var L7=ut();function M7(e){return!!(e&&L7.VISITOR_KEYS[e.type])}});var ap=A(function(np){Object.defineProperty(np,"__esModule",{value:!0});np.default=j7;var F7=aa();function j7(e){if(!(0,F7.default)(e)){var t;let r=(t=e==null?void 0:e.type)!=null?t:JSON.stringify(e);throw TypeError(`Not a valid node of type "${r}"`)}}});var lp=A(function(op){Object.defineProperty(op,"__esModule",{value:!0});op.assertAccessor=nJ;op.assertAnyTypeAnnotation=EU;op.assertArgumentPlaceholder=GK;op.assertArrayExpression=U7;op.assertArrayPattern=Rq;op.assertArrayTypeAnnotation=PU;op.assertArrowFunctionExpression=qq;op.assertAssignmentExpression=K7;op.assertAssignmentPattern=jq;op.assertAwaitExpression=uU;op.assertBigIntLiteral=pU;op.assertBinary=CY;op.assertBinaryExpression=V7;op.assertBindExpression=QK;op.assertBlock=NY;op.assertBlockParent=wY;op.assertBlockStatement=X7;op.assertBooleanLiteral=dq;op.assertBooleanLiteralTypeAnnotation=vU;op.assertBooleanTypeAnnotation=AU;op.assertBreakStatement=$7;op.assertCallExpression=H7;op.assertCatchClause=z7;op.assertClass=tJ;op.assertClassAccessorProperty=yU;op.assertClassBody=Uq;op.assertClassDeclaration=Vq;op.assertClassExpression=Kq;op.assertClassImplements=IU;op.assertClassMethod=tU;op.assertClassPrivateMethod=xU;op.assertClassPrivateProperty=TU;op.assertClassProperty=mU;op.assertCompletionStatement=kY;op.assertConditional=DY;op.assertConditionalExpression=G7;op.assertContinueStatement=Q7;op.assertDebuggerStatement=Z7;op.assertDecimalLiteral=iV;op.assertDeclaration=KY;op.assertDeclareClass=wU;op.assertDeclareExportAllDeclaration=FU;op.assertDeclareExportDeclaration=BU;op.assertDeclareFunction=NU;op.assertDeclareInterface=OU;op.assertDeclareModule=_U;op.assertDeclareModuleExports=kU;op.assertDeclareOpaqueType=LU;op.assertDeclareTypeAlias=DU;op.assertDeclareVariable=MU;op.assertDeclaredPredicate=jU;op.assertDecorator=ZK;op.assertDirective=J7;op.assertDirectiveLiteral=W7;op.assertDoExpression=eV;op.assertDoWhileStatement=eq;op.assertEmptyStatement=tq;op.assertEmptyTypeAnnotation=HU;op.assertEnumBody=fJ;op.assertEnumBooleanBody=PK;op.assertEnumBooleanMember=IK;op.assertEnumDeclaration=EK;op.assertEnumDefaultedMember=OK;op.assertEnumMember=hJ;op.assertEnumNumberBody=AK;op.assertEnumNumberMember=wK;op.assertEnumStringBody=vK;op.assertEnumStringMember=NK;op.assertEnumSymbolBody=CK;op.assertExistsTypeAnnotation=RU;op.assertExportAllDeclaration=Yq;op.assertExportDeclaration=sJ;op.assertExportDefaultDeclaration=Jq;op.assertExportDefaultSpecifier=tV;op.assertExportNamedDeclaration=Wq;op.assertExportNamespaceSpecifier=fU;op.assertExportSpecifier=Xq;op.assertExpression=vY;op.assertExpressionStatement=rq;op.assertExpressionWrapper=BY;op.assertFile=sq;op.assertFlow=oJ;op.assertFlowBaseAnnotation=uJ;op.assertFlowDeclaration=cJ;op.assertFlowPredicate=pJ;op.assertFlowType=lJ;op.assertFor=FY;op.assertForInStatement=iq;op.assertForOfStatement=$q;op.assertForStatement=nq;op.assertForXStatement=jY;op.assertFunction=RY;op.assertFunctionDeclaration=aq;op.assertFunctionExpression=oq;op.assertFunctionParameter=VY;op.assertFunctionParent=qY;op.assertFunctionTypeAnnotation=qU;op.assertFunctionTypeParam=UU;op.assertGenericTypeAnnotation=KU;op.assertIdentifier=lq;op.assertIfStatement=uq;op.assertImmutable=$Y;op.assertImport=cU;op.assertImportAttribute=bU;op.assertImportDeclaration=Hq;op.assertImportDefaultSpecifier=zq;op.assertImportExpression=Zq;op.assertImportNamespaceSpecifier=Gq;op.assertImportOrExportDeclaration=rJ;op.assertImportSpecifier=Qq;op.assertIndexedAccessType=_K;op.assertInferredPredicate=VU;op.assertInterfaceDeclaration=JU;op.assertInterfaceExtends=YU;op.assertInterfaceTypeAnnotation=WU;op.assertInterpreterDirective=Y7;op.assertIntersectionTypeAnnotation=XU;op.assertJSX=dJ;op.assertJSXAttribute=DK;op.assertJSXClosingElement=LK;op.assertJSXClosingFragment=XK;op.assertJSXElement=MK;op.assertJSXEmptyExpression=BK;op.assertJSXExpressionContainer=FK;op.assertJSXFragment=JK;op.assertJSXIdentifier=RK;op.assertJSXMemberExpression=qK;op.assertJSXNamespacedName=UK;op.assertJSXOpeningElement=KK;op.assertJSXOpeningFragment=WK;op.assertJSXSpreadAttribute=VK;op.assertJSXSpreadChild=jK;op.assertJSXText=YK;op.assertLVal=JY;op.assertLabeledStatement=cq;op.assertLiteral=XY;op.assertLogicalExpression=yq;op.assertLoop=LY;op.assertMemberExpression=Tq;op.assertMetaProperty=eU;op.assertMethod=zY;op.assertMiscellaneous=mJ;op.assertMixedTypeAnnotation=$U;op.assertModuleDeclaration=AJ;op.assertModuleExpression=nV;op.assertModuleSpecifier=iJ;op.assertNewExpression=xq;op.assertNoop=$K;op.assertNullLiteral=hq;op.assertNullLiteralTypeAnnotation=CU;op.assertNullableTypeAnnotation=zU;op.assertNumberLiteral=gJ;op.assertNumberLiteralTypeAnnotation=GU;op.assertNumberTypeAnnotation=QU;op.assertNumericLiteral=fq;op.assertObjectExpression=gq;op.assertObjectMember=GY;op.assertObjectMethod=bq;op.assertObjectPattern=rU;op.assertObjectProperty=Eq;op.assertObjectTypeAnnotation=ZU;op.assertObjectTypeCallProperty=tK;op.assertObjectTypeIndexer=rK;op.assertObjectTypeInternalSlot=eK;op.assertObjectTypeProperty=sK;op.assertObjectTypeSpreadProperty=iK;op.assertOpaqueType=nK;op.assertOptionalCallExpression=dU;op.assertOptionalIndexedAccessType=kK;op.assertOptionalMemberExpression=hU;op.assertParenthesizedExpression=Cq;op.assertPattern=eJ;op.assertPatternLike=YY;op.assertPipelineBareFunction=lV;op.assertPipelinePrimaryTopicReference=uV;op.assertPipelineTopicExpression=oV;op.assertPlaceholder=HK;op.assertPrivate=aJ;op.assertPrivateName=SU;op.assertProgram=Sq;op.assertProperty=QY;op.assertPureish=UY;op.assertQualifiedTypeIdentifier=aK;op.assertRecordExpression=rV;op.assertRegExpLiteral=mq;op.assertRegexLiteral=bJ;op.assertRestElement=Pq;op.assertRestProperty=EJ;op.assertReturnStatement=Aq;op.assertScopable=IY;op.assertSequenceExpression=vq;op.assertSpreadElement=sU;op.assertSpreadProperty=PJ;op.assertStandardized=AY;op.assertStatement=OY;op.assertStaticBlock=gU;op.assertStringLiteral=pq;op.assertStringLiteralTypeAnnotation=oK;op.assertStringTypeAnnotation=lK;op.assertSuper=iU;op.assertSwitchCase=Iq;op.assertSwitchStatement=wq;op.assertSymbolTypeAnnotation=uK;op.assertTSAnyKeyword=gV;op.assertTSArrayType=qV;op.assertTSAsExpression=aY;op.assertTSBaseType=SJ;op.assertTSBigIntKeyword=EV;op.assertTSBooleanKeyword=bV;op.assertTSCallSignatureDeclaration=mV;op.assertTSConditionalType=XV;op.assertTSConstructSignatureDeclaration=yV;op.assertTSConstructorType=MV;op.assertTSDeclareFunction=fV;op.assertTSDeclareMethod=hV;op.assertTSEntityName=WY;op.assertTSEnumBody=uY;op.assertTSEnumDeclaration=cY;op.assertTSEnumMember=pY;op.assertTSExportAssignment=xY;op.assertTSExpressionWithTypeArguments=tY;op.assertTSExternalModuleReference=yY;op.assertTSFunctionType=LV;op.assertTSImportEqualsDeclaration=mY;op.assertTSImportType=dY;op.assertTSIndexSignature=SV;op.assertTSIndexedAccessType=GV;op.assertTSInferType=$V;op.assertTSInstantiationExpression=nY;op.assertTSInterfaceBody=sY;op.assertTSInterfaceDeclaration=rY;op.assertTSIntersectionType=WV;op.assertTSIntrinsicKeyword=PV;op.assertTSLiteralType=eY;op.assertTSMappedType=QV;op.assertTSMethodSignature=xV;op.assertTSModuleBlock=hY;op.assertTSModuleDeclaration=fY;op.assertTSNamedTupleMember=YV;op.assertTSNamespaceExportDeclaration=SY;op.assertTSNeverKeyword=AV;op.assertTSNonNullExpression=TY;op.assertTSNullKeyword=vV;op.assertTSNumberKeyword=CV;op.assertTSObjectKeyword=IV;op.assertTSOptionalType=KV;op.assertTSParameterProperty=pV;op.assertTSParenthesizedType=HV;op.assertTSPropertySignature=TV;op.assertTSQualifiedName=dV;op.assertTSRestType=VV;op.assertTSSatisfiesExpression=oY;op.assertTSStringKeyword=wV;op.assertTSSymbolKeyword=NV;op.assertTSTemplateLiteralType=ZV;op.assertTSThisType=DV;op.assertTSTupleType=UV;op.assertTSType=xJ;op.assertTSTypeAliasDeclaration=iY;op.assertTSTypeAnnotation=gY;op.assertTSTypeAssertion=lY;op.assertTSTypeElement=TJ;op.assertTSTypeLiteral=RV;op.assertTSTypeOperator=zV;op.assertTSTypeParameter=PY;op.assertTSTypeParameterDeclaration=EY;op.assertTSTypeParameterInstantiation=bY;op.assertTSTypePredicate=FV;op.assertTSTypeQuery=jV;op.assertTSTypeReference=BV;op.assertTSUndefinedKeyword=OV;op.assertTSUnionType=JV;op.assertTSUnknownKeyword=_V;op.assertTSVoidKeyword=kV;op.assertTaggedTemplateExpression=nU;op.assertTemplateElement=aU;op.assertTemplateLiteral=oU;op.assertTerminatorless=_Y;op.assertThisExpression=Nq;op.assertThisTypeAnnotation=cK;op.assertThrowStatement=Oq;op.assertTopicReference=aV;op.assertTryStatement=_q;op.assertTupleExpression=sV;op.assertTupleTypeAnnotation=pK;op.assertTypeAlias=hK;op.assertTypeAnnotation=dK;op.assertTypeCastExpression=mK;op.assertTypeParameter=yK;op.assertTypeParameterDeclaration=TK;op.assertTypeParameterInstantiation=xK;op.assertTypeScript=yJ;op.assertTypeofTypeAnnotation=fK;op.assertUnaryExpression=kq;op.assertUnaryLike=ZY;op.assertUnionTypeAnnotation=SK;op.assertUpdateExpression=Dq;op.assertUserWhitespacable=HY;op.assertV8IntrinsicIdentifier=zK;op.assertVariableDeclaration=Lq;op.assertVariableDeclarator=Mq;op.assertVariance=gK;op.assertVoidPattern=cV;op.assertVoidTypeAnnotation=bK;op.assertWhile=MY;op.assertWhileStatement=Bq;op.assertWithStatement=Fq;op.assertYieldExpression=lU;var q7=Br(),Ss=Mr();function f(e,t,r){if(!(0,q7.default)(e,t,r))throw Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function U7(e,t){f("ArrayExpression",e,t)}function K7(e,t){f("AssignmentExpression",e,t)}function V7(e,t){f("BinaryExpression",e,t)}function Y7(e,t){f("InterpreterDirective",e,t)}function J7(e,t){f("Directive",e,t)}function W7(e,t){f("DirectiveLiteral",e,t)}function X7(e,t){f("BlockStatement",e,t)}function $7(e,t){f("BreakStatement",e,t)}function H7(e,t){f("CallExpression",e,t)}function z7(e,t){f("CatchClause",e,t)}function G7(e,t){f("ConditionalExpression",e,t)}function Q7(e,t){f("ContinueStatement",e,t)}function Z7(e,t){f("DebuggerStatement",e,t)}function eq(e,t){f("DoWhileStatement",e,t)}function tq(e,t){f("EmptyStatement",e,t)}function rq(e,t){f("ExpressionStatement",e,t)}function sq(e,t){f("File",e,t)}function iq(e,t){f("ForInStatement",e,t)}function nq(e,t){f("ForStatement",e,t)}function aq(e,t){f("FunctionDeclaration",e,t)}function oq(e,t){f("FunctionExpression",e,t)}function lq(e,t){f("Identifier",e,t)}function uq(e,t){f("IfStatement",e,t)}function cq(e,t){f("LabeledStatement",e,t)}function pq(e,t){f("StringLiteral",e,t)}function fq(e,t){f("NumericLiteral",e,t)}function hq(e,t){f("NullLiteral",e,t)}function dq(e,t){f("BooleanLiteral",e,t)}function mq(e,t){f("RegExpLiteral",e,t)}function yq(e,t){f("LogicalExpression",e,t)}function Tq(e,t){f("MemberExpression",e,t)}function xq(e,t){f("NewExpression",e,t)}function Sq(e,t){f("Program",e,t)}function gq(e,t){f("ObjectExpression",e,t)}function bq(e,t){f("ObjectMethod",e,t)}function Eq(e,t){f("ObjectProperty",e,t)}function Pq(e,t){f("RestElement",e,t)}function Aq(e,t){f("ReturnStatement",e,t)}function vq(e,t){f("SequenceExpression",e,t)}function Cq(e,t){f("ParenthesizedExpression",e,t)}function Iq(e,t){f("SwitchCase",e,t)}function wq(e,t){f("SwitchStatement",e,t)}function Nq(e,t){f("ThisExpression",e,t)}function Oq(e,t){f("ThrowStatement",e,t)}function _q(e,t){f("TryStatement",e,t)}function kq(e,t){f("UnaryExpression",e,t)}function Dq(e,t){f("UpdateExpression",e,t)}function Lq(e,t){f("VariableDeclaration",e,t)}function Mq(e,t){f("VariableDeclarator",e,t)}function Bq(e,t){f("WhileStatement",e,t)}function Fq(e,t){f("WithStatement",e,t)}function jq(e,t){f("AssignmentPattern",e,t)}function Rq(e,t){f("ArrayPattern",e,t)}function qq(e,t){f("ArrowFunctionExpression",e,t)}function Uq(e,t){f("ClassBody",e,t)}function Kq(e,t){f("ClassExpression",e,t)}function Vq(e,t){f("ClassDeclaration",e,t)}function Yq(e,t){f("ExportAllDeclaration",e,t)}function Jq(e,t){f("ExportDefaultDeclaration",e,t)}function Wq(e,t){f("ExportNamedDeclaration",e,t)}function Xq(e,t){f("ExportSpecifier",e,t)}function $q(e,t){f("ForOfStatement",e,t)}function Hq(e,t){f("ImportDeclaration",e,t)}function zq(e,t){f("ImportDefaultSpecifier",e,t)}function Gq(e,t){f("ImportNamespaceSpecifier",e,t)}function Qq(e,t){f("ImportSpecifier",e,t)}function Zq(e,t){f("ImportExpression",e,t)}function eU(e,t){f("MetaProperty",e,t)}function tU(e,t){f("ClassMethod",e,t)}function rU(e,t){f("ObjectPattern",e,t)}function sU(e,t){f("SpreadElement",e,t)}function iU(e,t){f("Super",e,t)}function nU(e,t){f("TaggedTemplateExpression",e,t)}function aU(e,t){f("TemplateElement",e,t)}function oU(e,t){f("TemplateLiteral",e,t)}function lU(e,t){f("YieldExpression",e,t)}function uU(e,t){f("AwaitExpression",e,t)}function cU(e,t){f("Import",e,t)}function pU(e,t){f("BigIntLiteral",e,t)}function fU(e,t){f("ExportNamespaceSpecifier",e,t)}function hU(e,t){f("OptionalMemberExpression",e,t)}function dU(e,t){f("OptionalCallExpression",e,t)}function mU(e,t){f("ClassProperty",e,t)}function yU(e,t){f("ClassAccessorProperty",e,t)}function TU(e,t){f("ClassPrivateProperty",e,t)}function xU(e,t){f("ClassPrivateMethod",e,t)}function SU(e,t){f("PrivateName",e,t)}function gU(e,t){f("StaticBlock",e,t)}function bU(e,t){f("ImportAttribute",e,t)}function EU(e,t){f("AnyTypeAnnotation",e,t)}function PU(e,t){f("ArrayTypeAnnotation",e,t)}function AU(e,t){f("BooleanTypeAnnotation",e,t)}function vU(e,t){f("BooleanLiteralTypeAnnotation",e,t)}function CU(e,t){f("NullLiteralTypeAnnotation",e,t)}function IU(e,t){f("ClassImplements",e,t)}function wU(e,t){f("DeclareClass",e,t)}function NU(e,t){f("DeclareFunction",e,t)}function OU(e,t){f("DeclareInterface",e,t)}function _U(e,t){f("DeclareModule",e,t)}function kU(e,t){f("DeclareModuleExports",e,t)}function DU(e,t){f("DeclareTypeAlias",e,t)}function LU(e,t){f("DeclareOpaqueType",e,t)}function MU(e,t){f("DeclareVariable",e,t)}function BU(e,t){f("DeclareExportDeclaration",e,t)}function FU(e,t){f("DeclareExportAllDeclaration",e,t)}function jU(e,t){f("DeclaredPredicate",e,t)}function RU(e,t){f("ExistsTypeAnnotation",e,t)}function qU(e,t){f("FunctionTypeAnnotation",e,t)}function UU(e,t){f("FunctionTypeParam",e,t)}function KU(e,t){f("GenericTypeAnnotation",e,t)}function VU(e,t){f("InferredPredicate",e,t)}function YU(e,t){f("InterfaceExtends",e,t)}function JU(e,t){f("InterfaceDeclaration",e,t)}function WU(e,t){f("InterfaceTypeAnnotation",e,t)}function XU(e,t){f("IntersectionTypeAnnotation",e,t)}function $U(e,t){f("MixedTypeAnnotation",e,t)}function HU(e,t){f("EmptyTypeAnnotation",e,t)}function zU(e,t){f("NullableTypeAnnotation",e,t)}function GU(e,t){f("NumberLiteralTypeAnnotation",e,t)}function QU(e,t){f("NumberTypeAnnotation",e,t)}function ZU(e,t){f("ObjectTypeAnnotation",e,t)}function eK(e,t){f("ObjectTypeInternalSlot",e,t)}function tK(e,t){f("ObjectTypeCallProperty",e,t)}function rK(e,t){f("ObjectTypeIndexer",e,t)}function sK(e,t){f("ObjectTypeProperty",e,t)}function iK(e,t){f("ObjectTypeSpreadProperty",e,t)}function nK(e,t){f("OpaqueType",e,t)}function aK(e,t){f("QualifiedTypeIdentifier",e,t)}function oK(e,t){f("StringLiteralTypeAnnotation",e,t)}function lK(e,t){f("StringTypeAnnotation",e,t)}function uK(e,t){f("SymbolTypeAnnotation",e,t)}function cK(e,t){f("ThisTypeAnnotation",e,t)}function pK(e,t){f("TupleTypeAnnotation",e,t)}function fK(e,t){f("TypeofTypeAnnotation",e,t)}function hK(e,t){f("TypeAlias",e,t)}function dK(e,t){f("TypeAnnotation",e,t)}function mK(e,t){f("TypeCastExpression",e,t)}function yK(e,t){f("TypeParameter",e,t)}function TK(e,t){f("TypeParameterDeclaration",e,t)}function xK(e,t){f("TypeParameterInstantiation",e,t)}function SK(e,t){f("UnionTypeAnnotation",e,t)}function gK(e,t){f("Variance",e,t)}function bK(e,t){f("VoidTypeAnnotation",e,t)}function EK(e,t){f("EnumDeclaration",e,t)}function PK(e,t){f("EnumBooleanBody",e,t)}function AK(e,t){f("EnumNumberBody",e,t)}function vK(e,t){f("EnumStringBody",e,t)}function CK(e,t){f("EnumSymbolBody",e,t)}function IK(e,t){f("EnumBooleanMember",e,t)}function wK(e,t){f("EnumNumberMember",e,t)}function NK(e,t){f("EnumStringMember",e,t)}function OK(e,t){f("EnumDefaultedMember",e,t)}function _K(e,t){f("IndexedAccessType",e,t)}function kK(e,t){f("OptionalIndexedAccessType",e,t)}function DK(e,t){f("JSXAttribute",e,t)}function LK(e,t){f("JSXClosingElement",e,t)}function MK(e,t){f("JSXElement",e,t)}function BK(e,t){f("JSXEmptyExpression",e,t)}function FK(e,t){f("JSXExpressionContainer",e,t)}function jK(e,t){f("JSXSpreadChild",e,t)}function RK(e,t){f("JSXIdentifier",e,t)}function qK(e,t){f("JSXMemberExpression",e,t)}function UK(e,t){f("JSXNamespacedName",e,t)}function KK(e,t){f("JSXOpeningElement",e,t)}function VK(e,t){f("JSXSpreadAttribute",e,t)}function YK(e,t){f("JSXText",e,t)}function JK(e,t){f("JSXFragment",e,t)}function WK(e,t){f("JSXOpeningFragment",e,t)}function XK(e,t){f("JSXClosingFragment",e,t)}function $K(e,t){f("Noop",e,t)}function HK(e,t){f("Placeholder",e,t)}function zK(e,t){f("V8IntrinsicIdentifier",e,t)}function GK(e,t){f("ArgumentPlaceholder",e,t)}function QK(e,t){f("BindExpression",e,t)}function ZK(e,t){f("Decorator",e,t)}function eV(e,t){f("DoExpression",e,t)}function tV(e,t){f("ExportDefaultSpecifier",e,t)}function rV(e,t){f("RecordExpression",e,t)}function sV(e,t){f("TupleExpression",e,t)}function iV(e,t){f("DecimalLiteral",e,t)}function nV(e,t){f("ModuleExpression",e,t)}function aV(e,t){f("TopicReference",e,t)}function oV(e,t){f("PipelineTopicExpression",e,t)}function lV(e,t){f("PipelineBareFunction",e,t)}function uV(e,t){f("PipelinePrimaryTopicReference",e,t)}function cV(e,t){f("VoidPattern",e,t)}function pV(e,t){f("TSParameterProperty",e,t)}function fV(e,t){f("TSDeclareFunction",e,t)}function hV(e,t){f("TSDeclareMethod",e,t)}function dV(e,t){f("TSQualifiedName",e,t)}function mV(e,t){f("TSCallSignatureDeclaration",e,t)}function yV(e,t){f("TSConstructSignatureDeclaration",e,t)}function TV(e,t){f("TSPropertySignature",e,t)}function xV(e,t){f("TSMethodSignature",e,t)}function SV(e,t){f("TSIndexSignature",e,t)}function gV(e,t){f("TSAnyKeyword",e,t)}function bV(e,t){f("TSBooleanKeyword",e,t)}function EV(e,t){f("TSBigIntKeyword",e,t)}function PV(e,t){f("TSIntrinsicKeyword",e,t)}function AV(e,t){f("TSNeverKeyword",e,t)}function vV(e,t){f("TSNullKeyword",e,t)}function CV(e,t){f("TSNumberKeyword",e,t)}function IV(e,t){f("TSObjectKeyword",e,t)}function wV(e,t){f("TSStringKeyword",e,t)}function NV(e,t){f("TSSymbolKeyword",e,t)}function OV(e,t){f("TSUndefinedKeyword",e,t)}function _V(e,t){f("TSUnknownKeyword",e,t)}function kV(e,t){f("TSVoidKeyword",e,t)}function DV(e,t){f("TSThisType",e,t)}function LV(e,t){f("TSFunctionType",e,t)}function MV(e,t){f("TSConstructorType",e,t)}function BV(e,t){f("TSTypeReference",e,t)}function FV(e,t){f("TSTypePredicate",e,t)}function jV(e,t){f("TSTypeQuery",e,t)}function RV(e,t){f("TSTypeLiteral",e,t)}function qV(e,t){f("TSArrayType",e,t)}function UV(e,t){f("TSTupleType",e,t)}function KV(e,t){f("TSOptionalType",e,t)}function VV(e,t){f("TSRestType",e,t)}function YV(e,t){f("TSNamedTupleMember",e,t)}function JV(e,t){f("TSUnionType",e,t)}function WV(e,t){f("TSIntersectionType",e,t)}function XV(e,t){f("TSConditionalType",e,t)}function $V(e,t){f("TSInferType",e,t)}function HV(e,t){f("TSParenthesizedType",e,t)}function zV(e,t){f("TSTypeOperator",e,t)}function GV(e,t){f("TSIndexedAccessType",e,t)}function QV(e,t){f("TSMappedType",e,t)}function ZV(e,t){f("TSTemplateLiteralType",e,t)}function eY(e,t){f("TSLiteralType",e,t)}function tY(e,t){f("TSExpressionWithTypeArguments",e,t)}function rY(e,t){f("TSInterfaceDeclaration",e,t)}function sY(e,t){f("TSInterfaceBody",e,t)}function iY(e,t){f("TSTypeAliasDeclaration",e,t)}function nY(e,t){f("TSInstantiationExpression",e,t)}function aY(e,t){f("TSAsExpression",e,t)}function oY(e,t){f("TSSatisfiesExpression",e,t)}function lY(e,t){f("TSTypeAssertion",e,t)}function uY(e,t){f("TSEnumBody",e,t)}function cY(e,t){f("TSEnumDeclaration",e,t)}function pY(e,t){f("TSEnumMember",e,t)}function fY(e,t){f("TSModuleDeclaration",e,t)}function hY(e,t){f("TSModuleBlock",e,t)}function dY(e,t){f("TSImportType",e,t)}function mY(e,t){f("TSImportEqualsDeclaration",e,t)}function yY(e,t){f("TSExternalModuleReference",e,t)}function TY(e,t){f("TSNonNullExpression",e,t)}function xY(e,t){f("TSExportAssignment",e,t)}function SY(e,t){f("TSNamespaceExportDeclaration",e,t)}function gY(e,t){f("TSTypeAnnotation",e,t)}function bY(e,t){f("TSTypeParameterInstantiation",e,t)}function EY(e,t){f("TSTypeParameterDeclaration",e,t)}function PY(e,t){f("TSTypeParameter",e,t)}function AY(e,t){f("Standardized",e,t)}function vY(e,t){f("Expression",e,t)}function CY(e,t){f("Binary",e,t)}function IY(e,t){f("Scopable",e,t)}function wY(e,t){f("BlockParent",e,t)}function NY(e,t){f("Block",e,t)}function OY(e,t){f("Statement",e,t)}function _Y(e,t){f("Terminatorless",e,t)}function kY(e,t){f("CompletionStatement",e,t)}function DY(e,t){f("Conditional",e,t)}function LY(e,t){f("Loop",e,t)}function MY(e,t){f("While",e,t)}function BY(e,t){f("ExpressionWrapper",e,t)}function FY(e,t){f("For",e,t)}function jY(e,t){f("ForXStatement",e,t)}function RY(e,t){f("Function",e,t)}function qY(e,t){f("FunctionParent",e,t)}function UY(e,t){f("Pureish",e,t)}function KY(e,t){f("Declaration",e,t)}function VY(e,t){f("FunctionParameter",e,t)}function YY(e,t){f("PatternLike",e,t)}function JY(e,t){f("LVal",e,t)}function WY(e,t){f("TSEntityName",e,t)}function XY(e,t){f("Literal",e,t)}function $Y(e,t){f("Immutable",e,t)}function HY(e,t){f("UserWhitespacable",e,t)}function zY(e,t){f("Method",e,t)}function GY(e,t){f("ObjectMember",e,t)}function QY(e,t){f("Property",e,t)}function ZY(e,t){f("UnaryLike",e,t)}function eJ(e,t){f("Pattern",e,t)}function tJ(e,t){f("Class",e,t)}function rJ(e,t){f("ImportOrExportDeclaration",e,t)}function sJ(e,t){f("ExportDeclaration",e,t)}function iJ(e,t){f("ModuleSpecifier",e,t)}function nJ(e,t){f("Accessor",e,t)}function aJ(e,t){f("Private",e,t)}function oJ(e,t){f("Flow",e,t)}function lJ(e,t){f("FlowType",e,t)}function uJ(e,t){f("FlowBaseAnnotation",e,t)}function cJ(e,t){f("FlowDeclaration",e,t)}function pJ(e,t){f("FlowPredicate",e,t)}function fJ(e,t){f("EnumBody",e,t)}function hJ(e,t){f("EnumMember",e,t)}function dJ(e,t){f("JSX",e,t)}function mJ(e,t){f("Miscellaneous",e,t)}function yJ(e,t){f("TypeScript",e,t)}function TJ(e,t){f("TSTypeElement",e,t)}function xJ(e,t){f("TSType",e,t)}function SJ(e,t){f("TSBaseType",e,t)}function gJ(e,t){(0,Ss.default)("assertNumberLiteral","assertNumericLiteral"),f("NumberLiteral",e,t)}function bJ(e,t){(0,Ss.default)("assertRegexLiteral","assertRegExpLiteral"),f("RegexLiteral",e,t)}function EJ(e,t){(0,Ss.default)("assertRestProperty","assertRestElement"),f("RestProperty",e,t)}function PJ(e,t){(0,Ss.default)("assertSpreadProperty","assertSpreadElement"),f("SpreadProperty",e,t)}function AJ(e,t){(0,Ss.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),f("ModuleDeclaration",e,t)}});var pp=A(function(up){Object.defineProperty(up,"__esModule",{value:!0});up.default=void 0;var gt=rt(),ake=up.default=uG;function uG(e){switch(e){case"string":return(0,gt.stringTypeAnnotation)();case"number":return(0,gt.numberTypeAnnotation)();case"undefined":return(0,gt.voidTypeAnnotation)();case"boolean":return(0,gt.booleanTypeAnnotation)();case"function":return(0,gt.genericTypeAnnotation)((0,gt.identifier)("Function"));case"object":return(0,gt.genericTypeAnnotation)((0,gt.identifier)("Object"));case"symbol":return(0,gt.genericTypeAnnotation)((0,gt.identifier)("Symbol"));case"bigint":return(0,gt.anyTypeAnnotation)()}throw Error("Invalid typeof value: "+e)}});var oa=A(function(dp){Object.defineProperty(dp,"__esModule",{value:!0});dp.default=hp;var gs=Le();function fp(e){return(0,gs.isIdentifier)(e)?e.name:`${e.id.name}.${fp(e.qualification)}`}function hp(e){let t=Array.from(e),r=new Map,s=new Map,i=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(!o)continue;if(n.includes(o))continue;if((0,gs.isAnyTypeAnnotation)(o))return[o];if((0,gs.isFlowBaseAnnotation)(o)){s.set(o.type,o);continue}if((0,gs.isUnionTypeAnnotation)(o)){if(!i.has(o.types))t.push(...o.types),i.add(o.types);continue}if((0,gs.isGenericTypeAnnotation)(o)){let l=fp(o.id);if(r.has(l)){let u=r.get(l);if(u.typeParameters){if(o.typeParameters)u.typeParameters.params.push(...o.typeParameters.params),u.typeParameters.params=hp(u.typeParameters.params)}else u=o.typeParameters}else r.set(l,o);continue}n.push(o)}for(let[,a]of s)n.push(a);for(let[,a]of r)n.push(a);return n}});var yp=A(function(mp){Object.defineProperty(mp,"__esModule",{value:!0});mp.default=hG;var pG=rt(),fG=oa();function hG(e){let t=(0,fG.default)(e);if(t.length===1)return t[0];else return(0,pG.unionTypeAnnotation)(t)}});var gp=A(function(Sp){Object.defineProperty(Sp,"__esModule",{value:!0});Sp.default=xp;var Kr=Le();function Tp(e){return(0,Kr.isIdentifier)(e)?e.name:(0,Kr.isThisExpression)(e)?"this":`${e.right.name}.${Tp(e.left)}`}function xp(e){let t=Array.from(e),r=new Map,s=new Map,i=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(!o)continue;if(n.includes(o))continue;if((0,Kr.isTSAnyKeyword)(o))return[o];if((0,Kr.isTSBaseType)(o)){s.set(o.type,o);continue}if((0,Kr.isTSUnionType)(o)){if(!i.has(o.types))t.push(...o.types),i.add(o.types);continue}let l="typeParameters";if((0,Kr.isTSTypeReference)(o)&&o[l]){let u=o[l],p=Tp(o.typeName);if(r.has(p)){let m=r.get(p),x=m[l];if(x)x.params.push(...u.params),x.params=xp(x.params);else m=u}else r.set(p,o);continue}n.push(o)}for(let[,a]of s)n.push(a);for(let[,a]of r)n.push(a);return n}});var Ep=A(function(bp){Object.defineProperty(bp,"__esModule",{value:!0});bp.default=SG;var yG=rt(),TG=gp(),xG=Le();function SG(e){let t=e.map((s)=>(0,xG.isTSTypeAnnotation)(s)?s.typeAnnotation:s),r=(0,TG.default)(t);if(r.length===1)return r[0];else return(0,yG.tsUnionType)(r)}});var la=A(function(Ap){Object.defineProperty(Ap,"__esModule",{value:!0});Ap.buildUndefinedNode=bG;var Pp=rt();function bG(){return(0,Pp.unaryExpression)("void",(0,Pp.numericLiteral)(0),!0)}});var Zt=A(function(Np){Object.defineProperty(Np,"__esModule",{value:!0});Np.default=PG;var vp=ut(),Cp=Le(),{hasOwn:wt}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function Ip(e,t,r,s){if(e&&typeof e.type==="string")return wp(e,t,r,s);return e}function ua(e,t,r,s){if(Array.isArray(e))return e.map((i)=>Ip(i,t,r,s));return Ip(e,t,r,s)}function PG(e,t=!0,r=!1){return wp(e,t,r,new Map)}function wp(e,t=!0,r=!1,s){if(!e)return e;let{type:i}=e,n={type:e.type};if((0,Cp.isIdentifier)(e)){if(n.name=e.name,wt(e,"optional")&&typeof e.optional==="boolean")n.optional=e.optional;if(wt(e,"typeAnnotation"))n.typeAnnotation=t?ua(e.typeAnnotation,!0,r,s):e.typeAnnotation;if(wt(e,"decorators"))n.decorators=t?ua(e.decorators,!0,r,s):e.decorators}else if(!wt(vp.NODE_FIELDS,i))throw Error(`Unknown node type: "${i}"`);else for(let a of Object.keys(vp.NODE_FIELDS[i]))if(wt(e,a))if(t)n[a]=(0,Cp.isFile)(e)&&a==="comments"?hi(e.comments,t,r,s):ua(e[a],!0,r,s);else n[a]=e[a];if(wt(e,"loc"))if(r)n.loc=null;else n.loc=e.loc;if(wt(e,"leadingComments"))n.leadingComments=hi(e.leadingComments,t,r,s);if(wt(e,"innerComments"))n.innerComments=hi(e.innerComments,t,r,s);if(wt(e,"trailingComments"))n.trailingComments=hi(e.trailingComments,t,r,s);if(wt(e,"extra"))n.extra=Object.assign({},e.extra);return n}function hi(e,t,r,s){if(!e||!t)return e;return e.map((i)=>{let n=s.get(i);if(n)return n;let{type:a,value:o,loc:l}=i,u={type:a,value:o,loc:l};if(r)u.loc=null;return s.set(i,u),u})}});var _p=A(function(Op){Object.defineProperty(Op,"__esModule",{value:!0});Op.default=CG;var vG=Zt();function CG(e){return(0,vG.default)(e,!1)}});var Dp=A(function(kp){Object.defineProperty(kp,"__esModule",{value:!0});kp.default=NG;var wG=Zt();function NG(e){return(0,wG.default)(e)}});var Mp=A(function(Lp){Object.defineProperty(Lp,"__esModule",{value:!0});Lp.default=kG;var _G=Zt();function kG(e){return(0,_G.default)(e,!0,!0)}});var Fp=A(function(Bp){Object.defineProperty(Bp,"__esModule",{value:!0});Bp.default=MG;var LG=Zt();function MG(e){return(0,LG.default)(e,!1,!0)}});var ca=A(function(jp){Object.defineProperty(jp,"__esModule",{value:!0});jp.default=FG;function FG(e,t,r){if(!r||!e)return e;let s=`${t}Comments`;if(e[s])if(t==="leading")e[s]=r.concat(e[s]);else e[s].push(...r);else e[s]=r;return e}});var qp=A(function(Rp){Object.defineProperty(Rp,"__esModule",{value:!0});Rp.default=qG;var RG=ca();function qG(e,t,r,s){return(0,RG.default)(e,t,[{type:s?"CommentLine":"CommentBlock",value:r}])}});var di=A(function(Up){Object.defineProperty(Up,"__esModule",{value:!0});Up.default=KG;function KG(e,t,r){if(t&&r)t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean)))}});var pa=A(function(Kp){Object.defineProperty(Kp,"__esModule",{value:!0});Kp.default=JG;var YG=di();function JG(e,t){(0,YG.default)("innerComments",e,t)}});var fa=A(function(Vp){Object.defineProperty(Vp,"__esModule",{value:!0});Vp.default=$G;var XG=di();function $G(e,t){(0,XG.default)("leadingComments",e,t)}});var ha=A(function(Yp){Object.defineProperty(Yp,"__esModule",{value:!0});Yp.default=GG;var zG=di();function GG(e,t){(0,zG.default)("trailingComments",e,t)}});var da=A(function(Jp){Object.defineProperty(Jp,"__esModule",{value:!0});Jp.default=rQ;var ZG=ha(),eQ=fa(),tQ=pa();function rQ(e,t){return(0,ZG.default)(e,t),(0,eQ.default)(e,t),(0,tQ.default)(e,t),e}});var Xp=A(function(Wp){Object.defineProperty(Wp,"__esModule",{value:!0});Wp.default=nQ;var iQ=jr();function nQ(e){return iQ.COMMENT_KEYS.forEach((t)=>{e[t]=null}),e}});var zp=A(function($p){Object.defineProperty($p,"__esModule",{value:!0});$p.WHILE_TYPES=$p.USERWHITESPACABLE_TYPES=$p.UNARYLIKE_TYPES=$p.TYPESCRIPT_TYPES=$p.TSTYPE_TYPES=$p.TSTYPEELEMENT_TYPES=$p.TSENTITYNAME_TYPES=$p.TSBASETYPE_TYPES=$p.TERMINATORLESS_TYPES=$p.STATEMENT_TYPES=$p.STANDARDIZED_TYPES=$p.SCOPABLE_TYPES=$p.PUREISH_TYPES=$p.PROPERTY_TYPES=$p.PRIVATE_TYPES=$p.PATTERN_TYPES=$p.PATTERNLIKE_TYPES=$p.OBJECTMEMBER_TYPES=$p.MODULESPECIFIER_TYPES=$p.MODULEDECLARATION_TYPES=$p.MISCELLANEOUS_TYPES=$p.METHOD_TYPES=$p.LVAL_TYPES=$p.LOOP_TYPES=$p.LITERAL_TYPES=$p.JSX_TYPES=$p.IMPORTOREXPORTDECLARATION_TYPES=$p.IMMUTABLE_TYPES=$p.FUNCTION_TYPES=$p.FUNCTIONPARENT_TYPES=$p.FUNCTIONPARAMETER_TYPES=$p.FOR_TYPES=$p.FORXSTATEMENT_TYPES=$p.FLOW_TYPES=$p.FLOWTYPE_TYPES=$p.FLOWPREDICATE_TYPES=$p.FLOWDECLARATION_TYPES=$p.FLOWBASEANNOTATION_TYPES=$p.EXPRESSION_TYPES=$p.EXPRESSIONWRAPPER_TYPES=$p.EXPORTDECLARATION_TYPES=$p.ENUMMEMBER_TYPES=$p.ENUMBODY_TYPES=$p.DECLARATION_TYPES=$p.CONDITIONAL_TYPES=$p.COMPLETIONSTATEMENT_TYPES=$p.CLASS_TYPES=$p.BLOCK_TYPES=$p.BLOCKPARENT_TYPES=$p.BINARY_TYPES=$p.ACCESSOR_TYPES=void 0;var re=ut(),Cke=$p.STANDARDIZED_TYPES=re.FLIPPED_ALIAS_KEYS.Standardized,Ike=$p.EXPRESSION_TYPES=re.FLIPPED_ALIAS_KEYS.Expression,wke=$p.BINARY_TYPES=re.FLIPPED_ALIAS_KEYS.Binary,Nke=$p.SCOPABLE_TYPES=re.FLIPPED_ALIAS_KEYS.Scopable,Oke=$p.BLOCKPARENT_TYPES=re.FLIPPED_ALIAS_KEYS.BlockParent,_ke=$p.BLOCK_TYPES=re.FLIPPED_ALIAS_KEYS.Block,kke=$p.STATEMENT_TYPES=re.FLIPPED_ALIAS_KEYS.Statement,Dke=$p.TERMINATORLESS_TYPES=re.FLIPPED_ALIAS_KEYS.Terminatorless,Lke=$p.COMPLETIONSTATEMENT_TYPES=re.FLIPPED_ALIAS_KEYS.CompletionStatement,Mke=$p.CONDITIONAL_TYPES=re.FLIPPED_ALIAS_KEYS.Conditional,Bke=$p.LOOP_TYPES=re.FLIPPED_ALIAS_KEYS.Loop,Fke=$p.WHILE_TYPES=re.FLIPPED_ALIAS_KEYS.While,jke=$p.EXPRESSIONWRAPPER_TYPES=re.FLIPPED_ALIAS_KEYS.ExpressionWrapper,Rke=$p.FOR_TYPES=re.FLIPPED_ALIAS_KEYS.For,qke=$p.FORXSTATEMENT_TYPES=re.FLIPPED_ALIAS_KEYS.ForXStatement,Uke=$p.FUNCTION_TYPES=re.FLIPPED_ALIAS_KEYS.Function,Kke=$p.FUNCTIONPARENT_TYPES=re.FLIPPED_ALIAS_KEYS.FunctionParent,Vke=$p.PUREISH_TYPES=re.FLIPPED_ALIAS_KEYS.Pureish,Yke=$p.DECLARATION_TYPES=re.FLIPPED_ALIAS_KEYS.Declaration,Jke=$p.FUNCTIONPARAMETER_TYPES=re.FLIPPED_ALIAS_KEYS.FunctionParameter,Wke=$p.PATTERNLIKE_TYPES=re.FLIPPED_ALIAS_KEYS.PatternLike,Xke=$p.LVAL_TYPES=re.FLIPPED_ALIAS_KEYS.LVal,$ke=$p.TSENTITYNAME_TYPES=re.FLIPPED_ALIAS_KEYS.TSEntityName,Hke=$p.LITERAL_TYPES=re.FLIPPED_ALIAS_KEYS.Literal,zke=$p.IMMUTABLE_TYPES=re.FLIPPED_ALIAS_KEYS.Immutable,Gke=$p.USERWHITESPACABLE_TYPES=re.FLIPPED_ALIAS_KEYS.UserWhitespacable,Qke=$p.METHOD_TYPES=re.FLIPPED_ALIAS_KEYS.Method,Zke=$p.OBJECTMEMBER_TYPES=re.FLIPPED_ALIAS_KEYS.ObjectMember,eDe=$p.PROPERTY_TYPES=re.FLIPPED_ALIAS_KEYS.Property,tDe=$p.UNARYLIKE_TYPES=re.FLIPPED_ALIAS_KEYS.UnaryLike,rDe=$p.PATTERN_TYPES=re.FLIPPED_ALIAS_KEYS.Pattern,sDe=$p.CLASS_TYPES=re.FLIPPED_ALIAS_KEYS.Class,oQ=$p.IMPORTOREXPORTDECLARATION_TYPES=re.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,iDe=$p.EXPORTDECLARATION_TYPES=re.FLIPPED_ALIAS_KEYS.ExportDeclaration,nDe=$p.MODULESPECIFIER_TYPES=re.FLIPPED_ALIAS_KEYS.ModuleSpecifier,aDe=$p.ACCESSOR_TYPES=re.FLIPPED_ALIAS_KEYS.Accessor,oDe=$p.PRIVATE_TYPES=re.FLIPPED_ALIAS_KEYS.Private,lDe=$p.FLOW_TYPES=re.FLIPPED_ALIAS_KEYS.Flow,uDe=$p.FLOWTYPE_TYPES=re.FLIPPED_ALIAS_KEYS.FlowType,cDe=$p.FLOWBASEANNOTATION_TYPES=re.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,pDe=$p.FLOWDECLARATION_TYPES=re.FLIPPED_ALIAS_KEYS.FlowDeclaration,fDe=$p.FLOWPREDICATE_TYPES=re.FLIPPED_ALIAS_KEYS.FlowPredicate,hDe=$p.ENUMBODY_TYPES=re.FLIPPED_ALIAS_KEYS.EnumBody,dDe=$p.ENUMMEMBER_TYPES=re.FLIPPED_ALIAS_KEYS.EnumMember,mDe=$p.JSX_TYPES=re.FLIPPED_ALIAS_KEYS.JSX,yDe=$p.MISCELLANEOUS_TYPES=re.FLIPPED_ALIAS_KEYS.Miscellaneous,TDe=$p.TYPESCRIPT_TYPES=re.FLIPPED_ALIAS_KEYS.TypeScript,xDe=$p.TSTYPEELEMENT_TYPES=re.FLIPPED_ALIAS_KEYS.TSTypeElement,SDe=$p.TSTYPE_TYPES=re.FLIPPED_ALIAS_KEYS.TSType,gDe=$p.TSBASETYPE_TYPES=re.FLIPPED_ALIAS_KEYS.TSBaseType,bDe=$p.MODULEDECLARATION_TYPES=oQ});var ya=A(function(Gp){Object.defineProperty(Gp,"__esModule",{value:!0});Gp.default=iZ;var mi=Le(),ma=rt();function iZ(e,t){if((0,mi.isBlockStatement)(e))return e;let r=[];if((0,mi.isEmptyStatement)(e))r=[];else{if(!(0,mi.isStatement)(e))if((0,mi.isFunction)(t))e=(0,ma.returnStatement)(e);else e=(0,ma.expressionStatement)(e);r=[e]}return(0,ma.blockStatement)(r)}});var Zp=A(function(Qp){Object.defineProperty(Qp,"__esModule",{value:!0});Qp.default=oZ;var aZ=ya();function oZ(e,t="body"){let r=(0,aZ.default)(e[t],e);return e[t]=r,r}});var Ta=A(function(ef){Object.defineProperty(ef,"__esModule",{value:!0});ef.default=pZ;var uZ=Fr(),cZ=hs();function pZ(e){e=e+"";let t="";for(let r of e)t+=(0,cZ.isIdentifierChar)(r.codePointAt(0))?r:"-";if(t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,s){return s?s.toUpperCase():""}),!(0,uZ.default)(t))t=`_${t}`;return t||"_"}});var rf=A(function(tf){Object.defineProperty(tf,"__esModule",{value:!0});tf.default=dZ;var hZ=Ta();function dZ(e){if(e=(0,hZ.default)(e),e==="eval"||e==="arguments")e="_"+e;return e}});var nf=A(function(sf){Object.defineProperty(sf,"__esModule",{value:!0});sf.default=xZ;var yZ=Le(),TZ=rt();function xZ(e,t=e.key||e.property){if(!e.computed&&(0,yZ.isIdentifier)(t))t=(0,TZ.stringLiteral)(t.name);return t}});var lf=A(function(af){Object.defineProperty(af,"__esModule",{value:!0});af.default=void 0;var bs=Le(),wDe=af.default=gZ;function gZ(e){if((0,bs.isExpressionStatement)(e))e=e.expression;if((0,bs.isExpression)(e))return e;if((0,bs.isClass)(e))e.type="ClassExpression",e.abstract=!1;else if((0,bs.isFunction)(e))e.type="FunctionExpression";if(!(0,bs.isExpression)(e))throw Error(`cannot turn ${e.type} to an expression`);return e}});var xa=A(function(pf){Object.defineProperty(pf,"__esModule",{value:!0});pf.default=Es;var bZ=ut(),uf=Symbol(),cf=Symbol();function Es(e,t,r){if(!e)return!1;let s=bZ.VISITOR_KEYS[e.type];if(!s)return!1;r=r||{};let i=t(e,r);if(i!==void 0)switch(i){case uf:return!1;case cf:return!0}for(let n of s){let a=e[n];if(!a)continue;if(Array.isArray(a)){for(let o of a)if(Es(o,t,r))return!0}else if(Es(a,t,r))return!0}return!1}Es.skip=uf;Es.stop=cf});var Sa=A(function(hf){Object.defineProperty(hf,"__esModule",{value:!0});hf.default=vZ;var PZ=jr(),ff=["tokens","start","end","loc","raw","rawValue"],AZ=[...PZ.COMMENT_KEYS,"comments",...ff];function vZ(e,t={}){let r=t.preserveComments?ff:AZ;for(let i of r)if(e[i]!=null)e[i]=void 0;for(let i of Object.keys(e))if(i.startsWith("_")&&e[i]!=null)e[i]=void 0;let s=Object.getOwnPropertySymbols(e);for(let i of s)e[i]=null}});var ga=A(function(df){Object.defineProperty(df,"__esModule",{value:!0});df.default=NZ;var IZ=xa(),wZ=Sa();function NZ(e,t){return(0,IZ.default)(e,wZ.default,t),e}});var Tf=A(function(yf){Object.defineProperty(yf,"__esModule",{value:!0});yf.default=dr;var mf=Le(),_Z=Zt(),kZ=ga();function dr(e,t=e.key){let r;if(e.kind==="method")return dr.increment()+"";else if((0,mf.isIdentifier)(t))r=t.name;else if((0,mf.isStringLiteral)(t))r=JSON.stringify(t.value);else r=JSON.stringify((0,kZ.default)((0,_Z.default)(t)));if(e.computed)r=`[${r}]`;if(e.static)r=`static:${r}`;return r}dr.uid=0;dr.increment=function(){if(dr.uid>=Number.MAX_SAFE_INTEGER)return dr.uid=0;else return dr.uid++}});var gf=A(function(xf){Object.defineProperty(xf,"__esModule",{value:!0});xf.default=void 0;var yi=Le(),LZ=rt(),LDe=xf.default=MZ;function MZ(e,t){if((0,yi.isStatement)(e))return e;let r=!1,s;if((0,yi.isClass)(e))r=!0,s="ClassDeclaration";else if((0,yi.isFunction)(e))r=!0,s="FunctionDeclaration";else if((0,yi.isAssignmentExpression)(e))return(0,LZ.expressionStatement)(e);if(r&&!e.id)s=!1;if(!s)if(t)return!1;else throw Error(`cannot turn ${e.type} to a statement`);return e.type=s,e}});var Pf=A(function(bf){Object.defineProperty(bf,"__esModule",{value:!0});bf.default=void 0;var BZ=Fr(),Re=rt(),BDe=bf.default=ba,FZ=Function.call.bind(Object.prototype.toString);function jZ(e){return FZ(e)==="[object RegExp]"}function RZ(e){if(typeof e!=="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function ba(e){if(e===void 0)return(0,Re.identifier)("undefined");if(e===!0||e===!1)return(0,Re.booleanLiteral)(e);if(e===null)return(0,Re.nullLiteral)();if(typeof e==="string")return(0,Re.stringLiteral)(e);if(typeof e==="number"){let t;if(Number.isFinite(e))t=(0,Re.numericLiteral)(Math.abs(e));else{let r;if(Number.isNaN(e))r=(0,Re.numericLiteral)(0);else r=(0,Re.numericLiteral)(1);t=(0,Re.binaryExpression)("/",r,(0,Re.numericLiteral)(0))}if(e<0||Object.is(e,-0))t=(0,Re.unaryExpression)("-",t);return t}if(typeof e==="bigint")if(e<0)return(0,Re.unaryExpression)("-",(0,Re.bigIntLiteral)(-e));else return(0,Re.bigIntLiteral)(e);if(jZ(e)){let t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,Re.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,Re.arrayExpression)(e.map(ba));if(RZ(e)){let t=[];for(let r of Object.keys(e)){let s,i=!1;if((0,BZ.default)(r))if(r==="__proto__")i=!0,s=(0,Re.stringLiteral)(r);else s=(0,Re.identifier)(r);else s=(0,Re.stringLiteral)(r);t.push((0,Re.objectProperty)(s,ba(e[r]),i))}return(0,Re.objectExpression)(t)}throw Error("don't know how to turn this value into a node")}});var vf=A(function(Af){Object.defineProperty(Af,"__esModule",{value:!0});Af.default=UZ;var qZ=rt();function UZ(e,t,r=!1){return e.object=(0,qZ.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var wf=A(function(If){Object.defineProperty(If,"__esModule",{value:!0});If.default=YZ;var Cf=jr(),VZ=da();function YZ(e,t){if(!e||!t)return e;for(let r of Cf.INHERIT_KEYS.optional)if(e[r]==null)e[r]=t[r];for(let r of Object.keys(t))if(r.startsWith("_")&&r!=="__clone")e[r]=t[r];for(let r of Cf.INHERIT_KEYS.force)e[r]=t[r];return(0,VZ.default)(e,t),e}});var Of=A(function(Nf){Object.defineProperty(Nf,"__esModule",{value:!0});Nf.default=$Z;var WZ=rt(),XZ=ae();function $Z(e,t){if((0,XZ.isSuper)(e.object))throw Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,WZ.memberExpression)(t,e.object),e}});var kf=A(function(_f){Object.defineProperty(_f,"__esModule",{value:!0});_f.default=zZ;function zZ(e){let t=[].concat(e),r=Object.create(null);while(t.length){let s=t.pop();if(!s)continue;switch(s.type){case"ArrayPattern":t.push(...s.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(s.left);break;case"ObjectPattern":t.push(...s.properties);break;case"ObjectProperty":t.push(s.value);break;case"RestElement":case"UpdateExpression":t.push(s.argument);break;case"UnaryExpression":if(s.operator==="delete")t.push(s.argument);break;case"Identifier":r[s.name]=s;break;default:break}}return r}});var Ps=A(function(Df){Object.defineProperty(Df,"__esModule",{value:!0});Df.default=Ea;var Vt=Le();function Ea(e,t,r,s){let i=[].concat(e),n=Object.create(null);while(i.length){let a=i.shift();if(!a)continue;if(s&&((0,Vt.isAssignmentExpression)(a)||(0,Vt.isUnaryExpression)(a)||(0,Vt.isUpdateExpression)(a)))continue;if((0,Vt.isIdentifier)(a)){if(t)(n[a.name]=n[a.name]||[]).push(a);else n[a.name]=a;continue}if((0,Vt.isExportDeclaration)(a)&&!(0,Vt.isExportAllDeclaration)(a)){if((0,Vt.isDeclaration)(a.declaration))i.push(a.declaration);continue}if(r){if((0,Vt.isFunctionDeclaration)(a)){i.push(a.id);continue}if((0,Vt.isFunctionExpression)(a))continue}let o=Ea.keys[a.type];if(o)for(let l=0;l<o.length;l++){let u=o[l],p=a[u];if(p)if(Array.isArray(p))i.push(...p);else i.push(p)}}return n}var QZ={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],TSImportEqualsDeclaration:["id"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};Ea.keys=QZ});var Bf=A(function(Lf){Object.defineProperty(Lf,"__esModule",{value:!0});Lf.default=void 0;var eee=Ps(),VDe=Lf.default=tee;function tee(e,t){return(0,eee.default)(e,t,!0)}});var Rf=A(function(jf){Object.defineProperty(jf,"__esModule",{value:!0});jf.default=see;var ct=Le();function ree(e){if((0,ct.isNullLiteral)(e))return"null";if((0,ct.isRegExpLiteral)(e))return`/${e.pattern}/${e.flags}`;if((0,ct.isTemplateLiteral)(e))return e.quasis.map((t)=>t.value.raw).join("");if(e.value!==void 0)return String(e.value);return null}function Ff(e){if(!e.computed||(0,ct.isLiteral)(e.key))return e.key}function see(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let r="",s;if((0,ct.isObjectProperty)(t,{value:e}))s=Ff(t);else if((0,ct.isObjectMethod)(e)||(0,ct.isClassMethod)(e)){if(s=Ff(e),e.kind==="get")r="get ";else if(e.kind==="set")r="set "}else if((0,ct.isVariableDeclarator)(t,{init:e}))s=t.id;else if((0,ct.isAssignmentExpression)(t,{operator:"=",right:e}))s=t.left;if(!s)return null;let i=(0,ct.isLiteral)(s)?ree(s):(0,ct.isIdentifier)(s)?s.name:(0,ct.isPrivateName)(s)?s.id.name:null;if(i==null)return null;return{name:r+i,originalNode:s}}});var Uf=A(function(qf){Object.defineProperty(qf,"__esModule",{value:!0});qf.default=aee;var nee=ut();function aee(e,t,r){if(typeof t==="function")t={enter:t};let{enter:s,exit:i}=t;Pa(e,s,i,r,[])}function Pa(e,t,r,s,i){let n=nee.VISITOR_KEYS[e.type];if(!n)return;if(t)t(e,i,s);for(let a of n){let o=e[a];if(Array.isArray(o))for(let l=0;l<o.length;l++){let u=o[l];if(!u)continue;i.push({node:e,key:a,index:l}),Pa(u,t,r,s,i),i.pop()}else if(o)i.push({node:e,key:a}),Pa(o,t,r,s,i),i.pop()}if(r)r(e,i,s)}});var Vf=A(function(Kf){Object.defineProperty(Kf,"__esModule",{value:!0});Kf.default=uee;var lee=Ps();function uee(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let s=lee.default.keys[t.type];if(s)for(let i=0;i<s.length;i++){let n=s[i],a=t[n];if(Array.isArray(a)){if(a.includes(e))return!0}else if(a===e)return!0}return!1}});var Aa=A(function(Yf){Object.defineProperty(Yf,"__esModule",{value:!0});Yf.default=hee;var pee=Le(),fee=Symbol.for("var used to be block scoped");function hee(e){return(0,pee.isVariableDeclaration)(e)&&(e.kind!=="var"||e[fee])}});var Xf=A(function(Wf){Object.defineProperty(Wf,"__esModule",{value:!0});Wf.default=yee;var Jf=Le(),mee=Aa();function yee(e){return(0,Jf.isFunctionDeclaration)(e)||(0,Jf.isClassDeclaration)(e)||(0,mee.default)(e)}});var Hf=A(function($f){Object.defineProperty($f,"__esModule",{value:!0});$f.default=gee;var xee=si(),See=Le();function gee(e){if((0,xee.default)(e.type,"Immutable"))return!0;if((0,See.isIdentifier)(e))if(e.name==="undefined")return!0;else return!1;return!1}});var Qf=A(function(Gf){Object.defineProperty(Gf,"__esModule",{value:!0});Gf.default=va;var zf=ut();function va(e,t){if(typeof e!=="object"||typeof t!=="object"||e==null||t==null)return e===t;if(e.type!==t.type)return!1;let r=Object.keys(zf.NODE_FIELDS[e.type]||e.type),s=zf.VISITOR_KEYS[e.type];for(let i of r){let n=e[i],a=t[i];if(typeof n!==typeof a)return!1;if(n==null&&a==null)continue;else if(n==null||a==null)return!1;if(Array.isArray(n)){if(!Array.isArray(a))return!1;if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++)if(!va(n[o],a[o]))return!1;continue}if(typeof n==="object"&&!(s!=null&&s.includes(i))){for(let o of Object.keys(n))if(n[o]!==a[o])return!1;continue}if(!va(n,a))return!1}return!0}});var eh=A(function(Zf){Object.defineProperty(Zf,"__esModule",{value:!0});Zf.default=Pee;function Pee(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":if(t.property===e)return!!t.computed;return t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":if(t.key===e)return!!t.computed;return!1;case"ObjectProperty":if(t.key===e)return!!t.computed;return(r==null?void 0:r.type)!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":if(t.key===e)return!!t.computed;return!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":if(r!=null&&r.source)return!1;return t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":if(t.key===e)return!!t.computed;return!0}return!0}});var rh=A(function(th){Object.defineProperty(th,"__esModule",{value:!0});th.default=vee;var mr=Le();function vee(e,t){if((0,mr.isBlockStatement)(e)&&((0,mr.isFunction)(t)||(0,mr.isCatchClause)(t)))return!1;if((0,mr.isPattern)(e)&&((0,mr.isFunction)(t)||(0,mr.isCatchClause)(t)))return!0;return(0,mr.isScopable)(e)}});var nh=A(function(ih){Object.defineProperty(ih,"__esModule",{value:!0});ih.default=Iee;var sh=Le();function Iee(e){return(0,sh.isImportDefaultSpecifier)(e)||(0,sh.isIdentifier)(e.imported||e.exported,{name:"default"})}});var oh=A(function(ah){Object.defineProperty(ah,"__esModule",{value:!0});ah.default=_ee;var Nee=Fr(),Oee=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function _ee(e){return(0,Nee.default)(e)&&!Oee.has(e)}});var uh=A(function(lh){Object.defineProperty(lh,"__esModule",{value:!0});lh.default=Mee;var Dee=Le(),Lee=Symbol.for("var used to be block scoped");function Mee(e){return(0,Dee.isVariableDeclaration)(e,{kind:"var"})&&!e[Lee]}});var ph=A(function(ch){Object.defineProperty(ch,"__esModule",{value:!0});ch.default=Ti;var Fee=Ps(),yr=Le(),Ca=rt(),Ia=la(),jee=Zt();function Ti(e,t){let r=[],s=!0;for(let i of e){if(!(0,yr.isEmptyStatement)(i))s=!1;if((0,yr.isExpression)(i))r.push(i);else if((0,yr.isExpressionStatement)(i))r.push(i.expression);else if((0,yr.isVariableDeclaration)(i)){if(i.kind!=="var")return;for(let n of i.declarations){let a=(0,Fee.default)(n);for(let o of Object.keys(a))t.push({kind:i.kind,id:(0,jee.default)(a[o])});if(n.init)r.push((0,Ca.assignmentExpression)("=",n.id,n.init))}s=!0}else if((0,yr.isIfStatement)(i)){let n=i.consequent?Ti([i.consequent],t):(0,Ia.buildUndefinedNode)(),a=i.alternate?Ti([i.alternate],t):(0,Ia.buildUndefinedNode)();if(!n||!a)return;r.push((0,Ca.conditionalExpression)(i.test,n,a))}else if((0,yr.isBlockStatement)(i)){let n=Ti(i.body,t);if(!n)return;r.push(n)}else if((0,yr.isEmptyStatement)(i)){if(e.indexOf(i)===0)s=!0}else return}if(s)r.push((0,Ia.buildUndefinedNode)());if(r.length===1)return r[0];else return(0,Ca.sequenceExpression)(r)}});var hh=A(function(fh){Object.defineProperty(fh,"__esModule",{value:!0});fh.default=Uee;var qee=ph();function Uee(e,t){if(!(e!=null&&e.length))return;let r=[],s=(0,qee.default)(e,r);if(!s)return;for(let i of r)t.push(i);return s}});var ae=A(function(R){Object.defineProperty(R,"__esModule",{value:!0});var er={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(R,"__internal__deprecationWarning",{enumerable:!0,get:function(){return Wte.default}});Object.defineProperty(R,"addComment",{enumerable:!0,get:function(){return ete.default}});Object.defineProperty(R,"addComments",{enumerable:!0,get:function(){return tte.default}});Object.defineProperty(R,"appendToMemberExpression",{enumerable:!0,get:function(){return yte.default}});Object.defineProperty(R,"assertNode",{enumerable:!0,get:function(){return Wee.default}});Object.defineProperty(R,"buildMatchMemberExpression",{enumerable:!0,get:function(){return Jte.default}});Object.defineProperty(R,"clone",{enumerable:!0,get:function(){return zee.default}});Object.defineProperty(R,"cloneDeep",{enumerable:!0,get:function(){return Gee.default}});Object.defineProperty(R,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return Qee.default}});Object.defineProperty(R,"cloneNode",{enumerable:!0,get:function(){return Hee.default}});Object.defineProperty(R,"cloneWithoutLoc",{enumerable:!0,get:function(){return Zee.default}});Object.defineProperty(R,"createFlowUnionType",{enumerable:!0,get:function(){return dh.default}});Object.defineProperty(R,"createTSUnionType",{enumerable:!0,get:function(){return $ee.default}});Object.defineProperty(R,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return Xee.default}});Object.defineProperty(R,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return dh.default}});Object.defineProperty(R,"ensureBlock",{enumerable:!0,get:function(){return ote.default}});Object.defineProperty(R,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return Ete.default}});Object.defineProperty(R,"getBindingIdentifiers",{enumerable:!0,get:function(){return Pte.default}});Object.defineProperty(R,"getFunctionName",{enumerable:!0,get:function(){return vte.default}});Object.defineProperty(R,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return Ate.default}});Object.defineProperty(R,"inheritInnerComments",{enumerable:!0,get:function(){return rte.default}});Object.defineProperty(R,"inheritLeadingComments",{enumerable:!0,get:function(){return ste.default}});Object.defineProperty(R,"inheritTrailingComments",{enumerable:!0,get:function(){return nte.default}});Object.defineProperty(R,"inherits",{enumerable:!0,get:function(){return Tte.default}});Object.defineProperty(R,"inheritsComments",{enumerable:!0,get:function(){return ite.default}});Object.defineProperty(R,"is",{enumerable:!0,get:function(){return wte.default}});Object.defineProperty(R,"isBinding",{enumerable:!0,get:function(){return Nte.default}});Object.defineProperty(R,"isBlockScoped",{enumerable:!0,get:function(){return Ote.default}});Object.defineProperty(R,"isImmutable",{enumerable:!0,get:function(){return _te.default}});Object.defineProperty(R,"isLet",{enumerable:!0,get:function(){return kte.default}});Object.defineProperty(R,"isNode",{enumerable:!0,get:function(){return Dte.default}});Object.defineProperty(R,"isNodesEquivalent",{enumerable:!0,get:function(){return Lte.default}});Object.defineProperty(R,"isPlaceholderType",{enumerable:!0,get:function(){return Mte.default}});Object.defineProperty(R,"isReferenced",{enumerable:!0,get:function(){return Bte.default}});Object.defineProperty(R,"isScope",{enumerable:!0,get:function(){return Fte.default}});Object.defineProperty(R,"isSpecifierDefault",{enumerable:!0,get:function(){return jte.default}});Object.defineProperty(R,"isType",{enumerable:!0,get:function(){return Rte.default}});Object.defineProperty(R,"isValidES3Identifier",{enumerable:!0,get:function(){return qte.default}});Object.defineProperty(R,"isValidIdentifier",{enumerable:!0,get:function(){return Ute.default}});Object.defineProperty(R,"isVar",{enumerable:!0,get:function(){return Kte.default}});Object.defineProperty(R,"matchesPattern",{enumerable:!0,get:function(){return Vte.default}});Object.defineProperty(R,"prependToMemberExpression",{enumerable:!0,get:function(){return xte.default}});R.react=void 0;Object.defineProperty(R,"removeComments",{enumerable:!0,get:function(){return ate.default}});Object.defineProperty(R,"removeProperties",{enumerable:!0,get:function(){return Ste.default}});Object.defineProperty(R,"removePropertiesDeep",{enumerable:!0,get:function(){return gte.default}});Object.defineProperty(R,"removeTypeDuplicates",{enumerable:!0,get:function(){return bte.default}});Object.defineProperty(R,"shallowEqual",{enumerable:!0,get:function(){return Ite.default}});Object.defineProperty(R,"toBindingIdentifierName",{enumerable:!0,get:function(){return lte.default}});Object.defineProperty(R,"toBlock",{enumerable:!0,get:function(){return ute.default}});Object.defineProperty(R,"toComputedKey",{enumerable:!0,get:function(){return cte.default}});Object.defineProperty(R,"toExpression",{enumerable:!0,get:function(){return pte.default}});Object.defineProperty(R,"toIdentifier",{enumerable:!0,get:function(){return fte.default}});Object.defineProperty(R,"toKeyAlias",{enumerable:!0,get:function(){return hte.default}});Object.defineProperty(R,"toStatement",{enumerable:!0,get:function(){return dte.default}});Object.defineProperty(R,"traverse",{enumerable:!0,get:function(){return xi.default}});Object.defineProperty(R,"traverseFast",{enumerable:!0,get:function(){return Cte.default}});Object.defineProperty(R,"validate",{enumerable:!0,get:function(){return Yte.default}});Object.defineProperty(R,"valueToNode",{enumerable:!0,get:function(){return mte.default}});var Vee=ju(),Yee=qu(),Jee=sp(),Wee=ap(),wa=lp();Object.keys(wa).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(er,e))return;if(e in R&&R[e]===wa[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return wa[e]}})});var Xee=pp(),dh=yp(),$ee=Ep(),Na=la();Object.keys(Na).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(er,e))return;if(e in R&&R[e]===Na[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return Na[e]}})});var Oa=rt();Object.keys(Oa).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(er,e))return;if(e in R&&R[e]===Oa[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return Oa[e]}})});var Hee=Zt(),zee=_p(),Gee=Dp(),Qee=Mp(),Zee=Fp(),ete=qp(),tte=ca(),rte=pa(),ste=fa(),ite=da(),nte=ha(),ate=Xp(),_a=zp();Object.keys(_a).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(er,e))return;if(e in R&&R[e]===_a[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return _a[e]}})});var ka=jr();Object.keys(ka).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(er,e))return;if(e in R&&R[e]===ka[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return ka[e]}})});var ote=Zp(),lte=rf(),ute=ya(),cte=nf(),pte=lf(),fte=Ta(),hte=Tf(),dte=gf(),mte=Pf(),Da=ut();Object.keys(Da).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(er,e))return;if(e in R&&R[e]===Da[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return Da[e]}})});var yte=vf(),Tte=wf(),xte=Of(),Ste=Sa(),gte=ga(),bte=oa(),Ete=kf(),Pte=Ps(),Ate=Bf(),vte=Rf(),xi=Uf();Object.keys(xi).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(er,e))return;if(e in R&&R[e]===xi[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return xi[e]}})});var Cte=xa(),Ite=ri(),wte=Br(),Nte=Vf(),Ote=Xf(),_te=Hf(),kte=Aa(),Dte=aa(),Lte=Qf(),Mte=Bn(),Bte=eh(),Fte=rh(),jte=nh(),Rte=si(),qte=oh(),Ute=Fr(),Kte=uh(),Vte=Ln(),Yte=oi(),Jte=Mn(),La=Le();Object.keys(La).forEach(function(e){if(e==="default"||e==="__esModule")return;if(Object.prototype.hasOwnProperty.call(er,e))return;if(e in R&&R[e]===La[e])return;Object.defineProperty(R,e,{enumerable:!0,get:function(){return La[e]}})});var Wte=Mr(),Xte=hh(),nLe=R.react={isReactComponent:Vee.default,isCompatTag:Yee.default,buildChildren:Jee.default};R.toSequenceExpression=Xte.default;if(process.env.BABEL_TYPES_8_BREAKING)console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")});var Ma=A(function(xh){Object.defineProperty(xh,"__esModule",{value:!0});xh.isBindingIdentifier=Tre;xh.isBlockScoped=Ere;xh.isExpression=Sre;xh.isFlow=Ire;xh.isForAwaitStatement=Ore;xh.isGenerated=vre;xh.isPure=Cre;xh.isReferenced=bre;xh.isReferencedIdentifier=mre;xh.isReferencedMemberExpression=yre;xh.isRestProperty=wre;xh.isScope=gre;xh.isSpreadProperty=Nre;xh.isStatement=xre;xh.isUser=Are;xh.isVar=Pre;var Hte=ae(),{isBinding:zte,isBlockScoped:Gte,isExportDeclaration:Qte,isExpression:Zte,isFlow:ere,isForStatement:tre,isForXStatement:rre,isIdentifier:yh,isImportDeclaration:sre,isImportSpecifier:ire,isJSXIdentifier:nre,isJSXMemberExpression:are,isMemberExpression:ore,isRestElement:Th,isReferenced:Si,isScope:lre,isStatement:ure,isVar:cre,isVariableDeclaration:pre,react:fre,isForOfStatement:hre}=Hte,{isCompatTag:dre}=fre;function mre(e){let{node:t,parent:r}=this;if(yh(t,e))return Si(t,r,this.parentPath.parent);else if(nre(t,e)){if(!are(r)&&dre(t.name))return!1;return Si(t,r,this.parentPath.parent)}else return!1}function yre(){let{node:e,parent:t}=this;return ore(e)&&Si(e,t)}function Tre(){let{node:e,parent:t}=this,r=this.parentPath.parent;return yh(e)&&zte(e,t,r)}function xre(){let{node:e,parent:t}=this;if(ure(e)){if(pre(e)){if(rre(t,{left:e}))return!1;if(tre(t,{init:e}))return!1}return!0}else return!1}function Sre(){if(this.isIdentifier())return this.isReferencedIdentifier();else return Zte(this.node)}function gre(){return lre(this.node,this.parent)}function bre(){return Si(this.node,this.parent)}function Ere(){return Gte(this.node)}function Pre(){return cre(this.node)}function Are(){var e;return!!((e=this.node)!=null&&e.loc)}function vre(){return!this.isUser()}function Cre(e){return this.scope.isPure(this.node,e)}function Ire(){let{node:e}=this;if(ere(e))return!0;else if(sre(e))return e.importKind==="type"||e.importKind==="typeof";else if(Qte(e))return e.exportKind==="type";else if(ire(e))return e.importKind==="type"||e.importKind==="typeof";else return!1}function wre(){var e;return Th(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function Nre(){var e;return Th(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function Ore(){return hre(this.node,{await:!0})}xh.isExistentialTypeParam=function(){throw Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")};xh.isNumericLiteralTypeAnnotation=function(){throw Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var vs=A(function(kh){Object.defineProperty(kh,"__esModule",{value:!0});kh.environmentVisitor=rse;kh.explode=Nh;kh.isExplodedVisitor=wh;kh.merge=_h;kh.verify=Oh;var Ih=Nn(),Hre=Ma(),zre=ae(),Sh=pt(),{DEPRECATED_KEYS:gh,DEPRECATED_ALIASES:bh,FLIPPED_ALIAS_KEYS:Eh,TYPES:Gre,__internal__deprecationWarning:Ph}=zre;function Qre(e){return e in Ih}function wh(e){return e==null?void 0:e._exploded}function Nh(e){if(wh(e))return e;e._exploded=!0;for(let r of Object.keys(e)){if(Tr(r))continue;let s=r.split("|");if(s.length===1)continue;let i=e[r];delete e[r];for(let n of s)e[n]=i}Oh(e),delete e.__esModule,Zre(e),Ch(e);for(let r of Object.keys(e)){if(Tr(r))continue;if(!Qre(r))continue;let s=e[r];for(let n of Object.keys(s))s[n]=ese(r,s[n]);delete e[r];let i=Ih[r];if(i!==null)for(let n of i){var t;(t=e[n])!=null||(e[n]={}),As(e[n],s)}else As(e,s)}for(let r of Object.keys(e)){if(Tr(r))continue;let s=Eh[r];if(r in gh){let n=gh[r];Ph(r,n,"Visitor "),s=[n]}else if(r in bh){let n=bh[r];Ph(r,n,"Visitor "),s=Eh[n]}if(!s)continue;let i=e[r];delete e[r];for(let n of s){let a=e[n];if(a)As(a,i);else e[n]=Object.assign({},i)}}for(let r of Object.keys(e)){if(Tr(r))continue;Ch(e[r])}return e}function Oh(e){if(e._verified)return;if(typeof e==="function")throw Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if(t==="enter"||t==="exit")Ah(t,e[t]);if(Tr(t))continue;if(!Gre.includes(t))throw Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.29.0`);let r=e[t];if(typeof r==="object")for(let s of Object.keys(r))if(s==="enter"||s==="exit")Ah(`${t}.${s}`,r[s]);else throw Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${s}`)}e._verified=!0}function Ah(e,t){let r=[].concat(t);for(let s of r)if(typeof s!=="function")throw TypeError(`Non-function found defined in ${e} with type ${typeof s}`)}function _h(e,t=[],r){let s={_verified:!0,_exploded:!0};Object.defineProperty(s,"_exploded",{enumerable:!1}),Object.defineProperty(s,"_verified",{enumerable:!1});for(let i=0;i<e.length;i++){let n=Nh(e[i]),a=t[i],o=n;if(a||r)o=vh(o,a,r);As(s,o);for(let l of Object.keys(n)){if(Tr(l))continue;let u=n[l];if(a||r)u=vh(u,a,r);let p=s[l]||(s[l]={});As(p,u)}}return s}function vh(e,t,r){let s={};for(let i of["enter","exit"]){let n=e[i];if(!Array.isArray(n))continue;n=n.map(function(a){let o=a;if(t)o=function(l){a.call(t,l,t)};if(r)o=r(t==null?void 0:t.key,i,o);if(o!==a)o.toString=()=>a.toString();return o}),s[i]=n}return s}function Zre(e){for(let t of Object.keys(e)){if(Tr(t))continue;let r=e[t];if(typeof r==="function")e[t]={enter:r}}}function Ch(e){if(e.enter&&!Array.isArray(e.enter))e.enter=[e.enter];if(e.exit&&!Array.isArray(e.exit))e.exit=[e.exit]}function ese(e,t){let r=`is${e}`,s=Hre[r],i=function(n){if(s.call(n))return t.apply(this,arguments)};return i.toString=()=>t.toString(),i}function Tr(e){if(e.startsWith("_"))return!0;if(e==="enter"||e==="exit"||e==="shouldSkip")return!0;if(e==="denylist"||e==="noScope"||e==="skipKeys")return!0;if(e==="blacklist")return!0;return!1}function As(e,t){for(let r of["enter","exit"]){if(!t[r])continue;e[r]=[].concat(e[r]||[],t[r])}}var tse={FunctionParent(e){if(e.isArrowFunctionExpression())return;if(e.skip(),e.isMethod())if(!e.requeueComputedKeyAndDecorators)Sh.requeueComputedKeyAndDecorators.call(e);else e.requeueComputedKeyAndDecorators()},Property(e){if(e.isObjectProperty())return;if(e.skip(),!e.requeueComputedKeyAndDecorators)Sh.requeueComputedKeyAndDecorators.call(e);else e.requeueComputedKeyAndDecorators()}};function rse(e){return _h([tse,e])}});var Bh=A(function(Lh){Object.defineProperty(Lh,"__esModule",{value:!0});Lh.default=void 0;var gi=ae(),lse=gi,use=bi(),cse=vs(),pse=pt(),{getAssignmentIdentifiers:fse}=lse,hse={ReferencedIdentifier({node:e},t){if(e.name===t.oldName)e.name=t.newName},Scope(e,t){if(!e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)){if(e.skip(),e.isMethod())if(!e.requeueComputedKeyAndDecorators)pse.requeueComputedKeyAndDecorators.call(e);else e.requeueComputedKeyAndDecorators();if(e.isSwitchStatement())e.context.maybeQueue(e.get("discriminant"))}},ObjectProperty({node:e,scope:t},r){let{name:s}=e.key;if(e.shorthand&&(s===r.oldName||s===r.newName)&&t.getBindingIdentifier(s)===r.binding.identifier){var i;if(e.shorthand=!1,(i=e.extra)!=null&&i.shorthand)e.extra.shorthand=!1}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.isAssignmentExpression()?fse(e.node):e.getOuterBindingIdentifiers();for(let s in r)if(s===t.oldName)r[s].name=t.newName}};class Dh{constructor(e,t,r){this.newName=r,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(e){let t=e.parentPath;if(!t.isExportDeclaration())return;if(t.isExportDefaultDeclaration()){let{declaration:r}=t.node;if(gi.isDeclaration(r)&&!r.id)return}if(t.isExportAllDeclaration())return;t.splitExportDeclaration()}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){let{binding:e,oldName:t,newName:r}=this,{scope:s,path:i}=e,n=i.find((l)=>l.isDeclaration()||l.isFunctionExpression()||l.isClassExpression());if(n){if(n.getOuterBindingIdentifiers()[t]===e.identifier)this.maybeConvertFromExportDeclaration(n)}let a=arguments[0]||s.block,o={discriminant:!0};if(gi.isMethod(a)){if(a.computed)o.key=!0;if(!gi.isObjectMethod(a))o.decorators=!0}if((0,use.traverseNode)(a,(0,cse.explode)(hse),s,this,s.path,o),!arguments[0])s.removeOwnBinding(t),s.bindings[r]=e,this.binding.identifier.name=r;if(n)this.maybeConvertFromClassFunctionDeclaration(i),this.maybeConvertFromClassFunctionExpression(i)}}Lh.default=Dh});var jh=A(function(Fh){Object.defineProperty(Fh,"__esModule",{value:!0});Fh.default=Sse;var dse=ae(),mse=Vr(),yse=vs(),Tse=pt(),{VISITOR_KEYS:xse}=dse;function Sse(e,t,r){let s=(0,yse.explode)(t);if(s.enter||s.exit)throw Error("Should not be used with enter/exit visitors.");i(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e);function i(n,a,o,l,u,p,m,x){if(!o)return;let g=x||mse.NodePath.get({hub:m,parentPath:n,parent:a,container:l,listKey:p,key:u});Tse._forceSetScope.call(g);let E=s[o.type];if(E!=null&&E.enter)for(let b of E.enter)b.call(r,g,r);if(g.shouldSkip)return;let I=xse[o.type];if(!(I!=null&&I.length))return;for(let b of I){let C=o[b];if(!C)continue;if(Array.isArray(C))for(let N=0;N<C.length;N++){let z=C[N];i(g,o,z,C,N,b)}else i(g,o,C,o,b,null)}if(E!=null&&E.exit)for(let b of E.exit)b.call(r,g,r)}}});var Kh=A(function(qh){Object.defineProperty(qh,"__esModule",{value:!0});qh.default=void 0;class Rh{constructor({identifier:e,scope:t,path:r,kind:s}){if(this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=e,this.scope=t,this.path=r,this.kind=s,(s==="var"||s==="hoisted")&&bse(r))this.reassign(r);this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){if(this.hasDeoptedValue)return;this.hasValue=!0,this.value=e}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){if(this.constant=!1,this.constantViolations.includes(e))return;this.constantViolations.push(e)}reference(e){if(this.referencePaths.includes(e))return;this.referenced=!0,this.references++,this.referencePaths.push(e)}dereference(){this.references--,this.referenced=!!this.references}}qh.default=Rh;function bse(e){let t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:r,key:s}=e;r;{parentPath:r,key:s}=r){if(r.isFunctionParent())return!1;if(s==="left"&&r.isForXStatement()||t&&s==="body"&&r.isLoop())return!0}return!1}});var xr=A(function(Jh){Object.defineProperty(Jh,"__esModule",{value:!0});Jh.clear=Pse;Jh.clearPath=Vh;Jh.clearScope=Yh;Jh.getCachedPaths=Ase;Jh.getOrCreateCachedPaths=vse;Jh.scope=Jh.path=void 0;var Ei=Jh.path=new WeakMap,Ese=Jh.scope=new WeakMap;function Pse(){Vh(),Yh()}function Vh(){Jh.path=Ei=new WeakMap}function Yh(){Jh.scope=Ese=new WeakMap}function Ase(e){let{parent:t,parentPath:r}=e;return Ei.get(t)}function vse(e,t){let r=Ei.get(e);if(!r)Ei.set(e,r=new Map);return r}});var Xh=A(function(hLe,_se){_se.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var $h=A(function(dLe,kse){kse.exports=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]});var qa=A(function(pd){Object.defineProperty(pd,"__esModule",{value:!0});pd.default=void 0;var Dse=Bh(),id=Vr(),mLe=jh(),Lse=Kh(),nd=ae(),ad=nd,Hh=xr(),Mse=Xh(),Bse=$h(),{assignmentExpression:Fse,callExpression:zh,cloneNode:Gh,getBindingIdentifiers:od,identifier:gr,isArrayExpression:ld,isBinary:jse,isCallExpression:Qh,isClass:Rse,isClassBody:qse,isClassDeclaration:Use,isExportAllDeclaration:ud,isExportDefaultDeclaration:Kse,isExportNamedDeclaration:Fa,isFunctionDeclaration:Vse,isIdentifier:Sr,isImportDeclaration:ja,isLiteral:Yse,isMemberExpression:Jse,isMethod:Wse,isModuleSpecifier:Xse,isNullLiteral:$se,isObjectExpression:Hse,isProperty:zse,isPureish:Gse,isRegExpLiteral:Qse,isSuper:Zse,isTaggedTemplateExpression:eie,isTemplateLiteral:cd,isThisExpression:Zh,isUnaryExpression:tie,isVariableDeclaration:rie,expressionStatement:sie,matchesPattern:ed,memberExpression:Ra,numericLiteral:iie,toIdentifier:nie,variableDeclaration:aie,variableDeclarator:oie,isObjectProperty:lie,isTopicReference:td,isMetaProperty:uie,isPrivateName:cie,isExportDeclaration:pie,buildUndefinedNode:fie,sequenceExpression:hie}=nd;function Oe(e,t){switch(e==null?void 0:e.type){default:if(ja(e)||pie(e)){var r;if((ud(e)||Fa(e)||ja(e))&&e.source)Oe(e.source,t);else if((Fa(e)||ja(e))&&(r=e.specifiers)!=null&&r.length)for(let s of e.specifiers)Oe(s,t);else if((Kse(e)||Fa(e))&&e.declaration)Oe(e.declaration,t)}else if(Xse(e))Oe(e.local,t);else if(Yse(e)&&!$se(e)&&!Qse(e)&&!cd(e))t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":Oe(e.object,t),Oe(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":Oe(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(let s of e.properties)Oe(s,t);break;case"SpreadElement":case"RestElement":Oe(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":Oe(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":case"ImportExpression":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),Oe(e.argument,t);break;case"AwaitExpression":t.push("await"),Oe(e.argument,t);break;case"AssignmentExpression":Oe(e.left,t);break;case"VariableDeclarator":Oe(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":Oe(e.id,t);break;case"PrivateName":Oe(e.id,t);break;case"ParenthesizedExpression":Oe(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":Oe(e.argument,t);break;case"MetaProperty":Oe(e.meta,t),Oe(e.property,t);break;case"JSXElement":Oe(e.openingElement,t);break;case"JSXOpeningElement":Oe(e.name,t);break;case"JSXFragment":Oe(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":Oe(e.namespace,t),Oe(e.name,t);break}}function rd(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}function die(e){return e.isFunctionExpression()&&!e.node.id||e.isArrowFunctionExpression()}var sd=Symbol.for("should not be considered a local binding"),mie={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped())return;if(e.isImportDeclaration())return;if(e.isExportDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){if(ad.isTSQualifiedName(e.parent)&&e.parent.right===e.node)return;if(e.parentPath.isTSImportEqualsDeclaration())return;t.references.push(e)},ForXStatement(e,t){let r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){let{scope:s}=e;(s.getFunctionParent()||s.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){let{node:t,scope:r}=e;if(ud(t))return;let s=t.declaration;if(Use(s)||Vse(s)){let i=s.id;if(!i)return;let n=r.getBinding(i.name);n==null||n.reference(e)}else if(rie(s))for(let i of s.declarations)for(let n of Object.keys(od(i))){let a=r.getBinding(n);a==null||a.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){if(e.node.operator==="delete")t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e)t=t.parent;if(t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let i=e.node.id.name;e.scope.bindings[i]=e.scope.parent.getBinding(i)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){let t=e.get("params");for(let r of t)e.scope.registerBinding("param",r);if(e.isFunctionExpression()&&e.node.id&&!e.node.id[sd])e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){if(e.node.id&&!e.node.id[sd])e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},Pi,yie=0;class ft{constructor(e){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;let{node:t}=e,r=Hh.scope.get(t);if((r==null?void 0:r.path)===e)return r;Hh.scope.set(t,this),this.uid=yie++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var e;let t,r=this.path;do{var s;let i=r.key==="key"||r.listKey==="decorators";if(r=r.parentPath,i&&r.isMethod())r=r.parentPath;if((s=r)!=null&&s.isScope())t=r}while(r&&!t);return(e=t)==null?void 0:e.scope}get references(){throw Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(e){let t=this.generateUidIdentifier(e);return this.push({id:t}),Gh(t)}generateUidIdentifier(e){return gr(this.generateUid(e))}generateUid(e="temp"){e=nie(e).replace(/^_+/,"").replace(/\d+$/g,"");let t,r=0;do{if(t=`_${e}`,r>=11)t+=r-1;else if(r>=9)t+=r-9;else if(r>=1)t+=r+1;r++}while(this.hasLabel(t)||this.hasBinding(t)||this.hasGlobal(t)||this.hasReference(t));let s=this.getProgramParent();return s.references[t]=!0,s.uids[t]=!0,t}generateUidBasedOnNode(e,t){let r=[];Oe(e,r);let s=r.join("$");return s=s.replace(/^_/,"")||t||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return gr(this.generateUidBasedOnNode(e,t))}isStatic(e){if(Zh(e)||Zse(e)||td(e))return!0;if(Sr(e)){let t=this.getBinding(e.name);if(t)return t.constant;else return this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;else{let r=this.generateUidIdentifierBasedOnNode(e);if(!t)return this.push({id:r}),Gh(r);return r}}checkBlockScopedCollisions(e,t,r,s){if(t==="param")return;if(e.kind==="local")return;if(t==="let"||e.kind==="let"||e.kind==="const"||e.kind==="module"||e.kind==="param"&&t==="const")throw this.path.hub.buildError(s,`Duplicate declaration "${r}"`,TypeError)}rename(e,t){let r=this.getBinding(e);if(r)t||(t=this.generateUidIdentifier(e).name),new Dse.default(r,e,t).rename(arguments[2])}dump(){let e="-".repeat(60);console.log(e);let t=this;do{console.log("#",t.block.type);for(let r of Object.keys(t.bindings)){let s=t.bindings[r];console.log(" -",r,{constant:s.constant,references:s.references,violations:s.constantViolations.length,kind:s.kind})}}while(t=t.parent);console.log(e)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){let t=e.get("declarations"),{kind:r}=e.node;for(let s of t)this.registerBinding(r==="using"||r==="await using"?"const":r,s)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){let t=e.node.importKind==="type"||e.node.importKind==="typeof",r=e.get("specifiers");for(let s of r){let i=t||s.isImportSpecifier()&&(s.node.importKind==="type"||s.node.importKind==="typeof");this.registerBinding(i?"unknown":"module",s)}}else if(e.isExportDeclaration()){let t=e.get("declaration");if(t.isClassDeclaration()||t.isFunctionDeclaration()||t.isVariableDeclaration())this.registerDeclaration(t)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return fie()}registerConstantViolation(e){let t=e.getAssignmentIdentifiers();for(let s of Object.keys(t)){var r;(r=this.getBinding(s))==null||r.reassign(e)}}registerBinding(e,t,r=t){if(!e)throw ReferenceError("no `kind`");if(t.isVariableDeclaration()){let n=t.get("declarations");for(let a of n)this.registerBinding(e,a);return}let s=this.getProgramParent(),i=t.getOuterBindingIdentifiers(!0);for(let n of Object.keys(i)){s.references[n]=!0;for(let a of i[n]){let o=this.getOwnBinding(n);if(o){if(o.identifier===a)continue;this.checkBlockScopedCollisions(o,e,n,a)}if(o)o.reassign(r);else this.bindings[n]=new Lse.default({identifier:a,scope:this,path:r,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){let t=this;do if(t.uids[e])return!0;while(t=t.parent);return!1}hasGlobal(e){let t=this;do if(t.globals[e])return!0;while(t=t.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){if(Sr(e)){let n=this.getBinding(e.name);if(!n)return!1;if(t)return n.constant;return!0}else if(Zh(e)||uie(e)||td(e)||cie(e))return!0;else if(Rse(e)){var r;if(e.superClass&&!this.isPure(e.superClass,t))return!1;if(((r=e.decorators)==null?void 0:r.length)>0)return!1;return this.isPure(e.body,t)}else if(qse(e)){for(let n of e.body)if(!this.isPure(n,t))return!1;return!0}else if(jse(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);else if(ld(e)||(e==null?void 0:e.type)==="TupleExpression"){for(let n of e.elements)if(n!==null&&!this.isPure(n,t))return!1;return!0}else if(Hse(e)||(e==null?void 0:e.type)==="RecordExpression"){for(let n of e.properties)if(!this.isPure(n,t))return!1;return!0}else if(Wse(e)){var s;if(e.computed&&!this.isPure(e.key,t))return!1;if(((s=e.decorators)==null?void 0:s.length)>0)return!1;return!0}else if(zse(e)){var i;if(e.computed&&!this.isPure(e.key,t))return!1;if(((i=e.decorators)==null?void 0:i.length)>0)return!1;if(lie(e)||e.static){if(e.value!==null&&!this.isPure(e.value,t))return!1}return!0}else if(tie(e))return this.isPure(e.argument,t);else if(cd(e)){for(let n of e.expressions)if(!this.isPure(n,t))return!1;return!0}else if(eie(e))return ed(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t);else if(Jse(e))return!e.computed&&Sr(e.object)&&e.object.name==="Symbol"&&Sr(e.property)&&e.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0});else if(Qh(e))return ed(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&e.arguments.length===1&&ad.isStringLiteral(e.arguments[0]);else return Gse(e)}setData(e,t){return this.data[e]=t}getData(e){let t=this;do{let r=t.data[e];if(r!=null)return r}while(t=t.parent)}removeData(e){let t=this;do if(t.data[e]!=null)t.data[e]=null;while(t=t.parent)}init(){if(!this.inited)this.inited=!0,this.crawl()}crawl(){let e=this.path;rd(this),this.data=Object.create(null);let t=this;do{if(t.crawling)return;if(t.path.isProgram())break}while(t=t.parent);let r=t,s={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,Pi||(Pi=id.default.visitors.merge([{Scope(i){rd(i.scope)}},mie])),e.type!=="Program"){let i=Pi[e.type];if(i)for(let n of i.enter)n.call(s,e,s)}e.traverse(Pi,s),this.crawling=!1;for(let i of s.assignments){let n=i.getAssignmentIdentifiers();for(let a of Object.keys(n)){if(i.scope.getBinding(a))continue;r.addGlobal(n[a])}i.scope.registerConstantViolation(i)}for(let i of s.references){let n=i.scope.getBinding(i.node.name);if(n)n.reference(i);else r.addGlobal(i.node)}for(let i of s.constantViolations)i.scope.registerConstantViolation(i)}push(e){let t=this.path;if(t.isPattern())t=this.getPatternParent().path;else if(!t.isBlockStatement()&&!t.isProgram())t=this.getBlockParent().path;if(t.isSwitchStatement())t=(this.getFunctionParent()||this.getProgramParent()).path;let{init:r,unique:s,kind:i="var",id:n}=e;if(!r&&!s&&(i==="var"||i==="let")&&die(t)&&Qh(t.parent,{callee:t.node})&&t.parent.arguments.length<=t.node.params.length&&Sr(n)){t.pushContainer("params",n),t.scope.registerBinding("param",t.get("params")[t.node.params.length-1]);return}if(t.isLoop()||t.isCatchClause()||t.isFunction())t.ensureBlock(),t=t.get("body");let a=e._blockHoist==null?2:e._blockHoist,o=`declaration:${i}:${a}`,l=!s&&t.getData(o);if(!l){let m=aie(i,[]);if(m._blockHoist=a,[l]=t.unshiftContainer("body",[m]),!s)t.setData(o,l)}let u=oie(n,r),p=l.node.declarations.push(u);t.scope.registerBinding(i,l.get("declarations")[p-1])}getProgramParent(){let e=this;do if(e.path.isProgram())return e;while(e=e.parent);throw Error("Couldn't find a Program")}getFunctionParent(){let e=this;do if(e.path.isFunctionParent())return e;while(e=e.parent);return null}getBlockParent(){let e=this;do if(e.path.isBlockParent())return e;while(e=e.parent);throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let e=this;do if(!e.path.isPattern())return e.getBlockParent();while(e=e.parent.parent);throw Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let e=Object.create(null),t=this;do{for(let r of Object.keys(t.bindings))if(r in e===!1)e[r]=t.bindings[r];t=t.parent}while(t);return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){let t=this,r;do{let i=t.getOwnBinding(e);if(i){var s;if((s=r)!=null&&s.isPattern()&&i.kind!=="param"&&i.kind!=="local");else return i}else if(!i&&e==="arguments"&&t.path.isFunction()&&!t.path.isArrowFunctionExpression())break;r=t.path}while(t=t.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return(t=this.getBinding(e))==null?void 0:t.identifier}getOwnBindingIdentifier(e){let t=this.bindings[e];return t==null?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){if(!e)return!1;let r,s,i;if(typeof t==="object")r=t.noGlobals,s=t.noUids,i=t.upToScope;else if(typeof t==="boolean")r=t;let n=this;do{if(i===n)break;if(n.hasOwnBinding(e))return!0}while(n=n.parent);if(!s&&this.hasUid(e))return!0;if(!r&&ft.globals.includes(e))return!0;if(!r&&ft.contextVariables.includes(e))return!0;return!1}parentHasBinding(e,t){var r;return(r=this.parent)==null?void 0:r.hasBinding(e,t)}moveBindingTo(e,t){let r=this.getBinding(e);if(r)r.scope.removeOwnBinding(e),r.scope=t,t.bindings[e]=r}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;(t=this.getBinding(e))==null||t.scope.removeOwnBinding(e);let r=this;do if(r.uids[e])r.uids[e]=!1;while(r=r.parent)}hoistVariables(e=(t)=>this.push({id:t})){this.crawl();let t=new Set;for(let r of Object.keys(this.bindings)){let s=this.bindings[r];if(!s)continue;let{path:i}=s;if(!i.isVariableDeclarator())continue;let{parent:n,parentPath:a}=i;if(n.kind!=="var"||t.has(n))continue;t.add(i.parent);let o,l=[];for(let u of n.declarations){if(o!=null||(o=u.id),u.init)l.push(Fse("=",u.id,u.init));let p=Object.keys(od(u,!1,!0,!0));for(let m of p)e(gr(m),u.init!=null)}if(a.parentPath.isForXStatement({left:n}))a.replaceWith(o);else if(l.length===0)a.remove();else{let u=l.length===1?l[0]:hie(l);if(a.parentPath.isForStatement({init:n}))a.replaceWith(u);else a.replaceWith(sie(u))}}}}pd.default=ft;ft.globals=[...Mse,...Bse];ft.contextVariables=["arguments","undefined","Infinity","NaN"];ft.prototype._renameFromMap=function(t,r,s,i){if(t[r])t[s]=i,t[r]=null};ft.prototype.traverse=function(e,t,r){(0,id.default)(e,t,this,r,this.path)};ft.prototype._generateUid=function(t,r){let s=t;if(r>1)s+=r;return`_${s}`};ft.prototype.toArray=function(t,r,s){if(Sr(t)){let a=this.getBinding(t.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return t}if(ld(t))return t;if(Sr(t,{name:"arguments"}))return zh(Ra(Ra(Ra(gr("Array"),gr("prototype")),gr("slice")),gr("call")),[t]);let i,n=[t];if(r===!0)i="toConsumableArray";else if(typeof r==="number")n.push(iie(r)),i="slicedToArray";else i="toArray";if(s)n.unshift(this.path.hub.addHelper(i)),i="maybeArrayLike";return zh(this.path.hub.addHelper(i),n)};ft.prototype.getAllBindingsOfKind=function(...t){let r=Object.create(null);for(let s of t){let i=this;do{for(let n of Object.keys(i.bindings)){let a=i.bindings[n];if(a.kind===s)r[n]=a}i=i.parent}while(i)}return r};Object.defineProperties(ft.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var Ka=A(function(Ua,Cs){(function(e,t){if(typeof Ua==="object"&&typeof Cs<"u")t(Cs),Cs.exports=r(Cs);else if(typeof define==="function"&&define.amd)define(["module"],function(s){t.apply(this,arguments),s.exports=r(s)});else{let s={exports:{}};t(s),e=typeof globalThis<"u"?globalThis:e||self,e.sourcemapCodec=r(s)}function r(s){return"default"in s.exports?s.exports.default:s.exports}})(Ua,function(e){var{defineProperty:t,getOwnPropertyDescriptor:r,getOwnPropertyNames:s}=Object,i=Object.prototype.hasOwnProperty,n=(B,M)=>{for(var w in M)t(B,w,{get:M[w],enumerable:!0})},a=(B,M,w,K)=>{if(M&&typeof M==="object"||typeof M==="function"){for(let te of s(M))if(!i.call(B,te)&&te!==w)t(B,te,{get:()=>M[te],enumerable:!(K=r(M,te))||K.enumerable})}return B},o=(B)=>a(t({},"__esModule",{value:!0}),B),l={};n(l,{decode:()=>Wt,decodeGeneratedRanges:()=>st,decodeOriginalScopes:()=>ke,decodeRangeMappings:()=>Ve,encode:()=>Dt,encodeGeneratedRanges:()=>at,encodeOriginalScopes:()=>Fe,encodeRangeMappings:()=>kt}),e.exports=o(l);var u=44,p=59,m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x=new Uint8Array(64),g=new Uint8Array(128);for(let B=0;B<m.length;B++){let M=m.charCodeAt(B);x[B]=M,g[M]=B}function E(B){let M=0,w=0,K=0;do{let te=B.next();K=g[te],M|=(K&31)<<w,w+=5}while(K&32);return M}function I(B){return B&1?-2147483648|-(B>>>1):B>>>1}function b(B,M){do{let w=M&31;if(M>>>=5,M>0)w|=32;B.write(x[w])}while(M>0)}function C(B){return B<0?-B<<1|1:B<<1}function N(B,M){if(B.pos>=M)return!1;return B.peek()!==u}var z=16384,j=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(B){return Buffer.from(B.buffer,B.byteOffset,B.byteLength).toString()}}:{decode(B){let M="";for(let w=0;w<B.length;w++)M+=String.fromCharCode(B[w]);return M}},V=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(z)}write(B){let{buffer:M}=this;if(M[this.pos++]=B,this.pos===z)this.out+=j.decode(M),this.pos=0}flush(){let{buffer:B,out:M,pos:w}=this;return w>0?M+j.decode(B.subarray(0,w)):M}},ie=class{constructor(B){this.pos=0,this.buffer=B}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(B){let{buffer:M,pos:w}=this,K=M.indexOf(B,w);return K===-1?M.length:K}},ge=[];function ke(B){let{length:M}=B,w=new ie(B),K=[],te=[],se=0;for(;w.pos<M;w.pos++){se+=I(E(w));let me=I(E(w));if(!N(w,M)){let ve=te.pop();ve[2]=se,ve[3]=me;continue}let Se=I(E(w)),fe=I(E(w))&1?[se,me,0,0,Se,I(E(w))]:[se,me,0,0,Se],Pe=ge;if(N(w,M)){Pe=[];do{let ve=I(E(w));Pe.push(ve)}while(N(w,M))}fe.vars=Pe,K.push(fe),te.push(fe)}return K}function Fe(B){let M=new V;for(let w=0;w<B.length;)w=Je(B,w,M,[0]);return M.flush()}function Je(B,M,w,K){let te=B[M],{0:se,1:me,2:Se,3:_e,4:Ae,vars:fe}=te;if(M>0)w.write(u);b(w,C(se-K[0])),K[0]=se,b(w,C(me)),b(w,C(Ae));let Pe=te.length===6?1:0;if(b(w,C(Pe)),te.length===6)b(w,C(te[5]));for(let ve of fe)b(w,C(ve));for(M++;M<B.length;){let ve=B[M],{0:oe,1:ye}=ve;if(oe>Se||oe===Se&&ye>=_e)break;M=Je(B,M,w,K)}return w.write(u),b(w,C(Se-K[0])),K[0]=Se,b(w,C(_e)),M}function st(B){let{length:M}=B,w=new ie(B),K=[],te=[],se=0,me=0,Se=0,_e=0,Ae=0,fe=0,Pe=0,ve=0;do{let oe=w.indexOf(";"),ye=0;for(;w.pos<oe;w.pos++){if(ye+=I(E(w)),!N(w,oe)){let Ce=te.pop();Ce[2]=se,Ce[3]=ye;continue}let L=I(E(w)),D=L&1,Y=L&2,G=L&4,ce=null,le=ge,pe;if(D){let Ce=me+I(E(w));Se=I(E(w))+(me===Ce?Se:0),me=Ce,pe=[se,ye,0,0,Ce,Se]}else pe=[se,ye,0,0];if(pe.isScope=!!G,Y){let Ce=_e,qe=Ae;_e+=I(E(w));let mt=Ce===_e;Ae=(mt?Ae:0)+I(E(w)),fe=(mt&&qe===Ae?fe:0)+I(E(w)),ce=[_e,Ae,fe]}if(pe.callsite=ce,N(w,oe)){le=[];do{Pe=se,ve=ye;let Ce=I(E(w)),qe;if(Ce<-1){qe=[[I(E(w))]];for(let mt=-1;mt>Ce;mt--){let Lt=Pe;Pe+=I(E(w)),ve=(Pe===Lt?ve:0)+I(E(w));let Mt=I(E(w));qe.push([Mt,Pe,ve])}}else qe=[[Ce]];le.push(qe)}while(N(w,oe))}pe.bindings=le,K.push(pe),te.push(pe)}se++,w.pos=oe+1}while(w.pos<M);return K}function at(B){if(B.length===0)return"";let M=new V;for(let w=0;w<B.length;)w=it(B,w,M,[0,0,0,0,0,0,0]);return M.flush()}function it(B,M,w,K){let te=B[M],{0:se,1:me,2:Se,3:_e,isScope:Ae,callsite:fe,bindings:Pe}=te;if(K[0]<se)dt(w,K[0],se),K[0]=se,K[1]=0;else if(M>0)w.write(u);b(w,C(te[1]-K[1])),K[1]=te[1];let ve=(te.length===6?1:0)|(fe?2:0)|(Ae?4:0);if(b(w,C(ve)),te.length===6){let{4:oe,5:ye}=te;if(oe!==K[2])K[3]=0;b(w,C(oe-K[2])),K[2]=oe,b(w,C(ye-K[3])),K[3]=ye}if(fe){let{0:oe,1:ye,2:L}=te.callsite;if(oe!==K[4])K[5]=0,K[6]=0;else if(ye!==K[5])K[6]=0;b(w,C(oe-K[4])),K[4]=oe,b(w,C(ye-K[5])),K[5]=ye,b(w,C(L-K[6])),K[6]=L}if(Pe)for(let oe of Pe){if(oe.length>1)b(w,C(-oe.length));let ye=oe[0][0];b(w,C(ye));let L=se,D=me;for(let Y=1;Y<oe.length;Y++){let G=oe[Y];b(w,C(G[1]-L)),L=G[1],b(w,C(G[2]-D)),D=G[2],b(w,C(G[0]))}}for(M++;M<B.length;){let oe=B[M],{0:ye,1:L}=oe;if(ye>Se||ye===Se&&L>=_e)break;M=it(B,M,w,K)}if(K[0]<Se)dt(w,K[0],Se),K[0]=Se,K[1]=0;else w.write(u);return b(w,C(_e-K[1])),K[1]=_e,M}function dt(B,M,w){do B.write(p);while(++M<w)}function Ve(B){let{length:M}=B,w=new ie(B),K=[];do{let te=w.indexOf(";"),se=[],me=0;while(w.pos<te)me+=E(w),se.push(me);K.push(se),w.pos=te+1}while(w.pos<=M);return K}function kt(B){if(B.length===0)return"";let M=new V;for(let w=0;w<B.length;w++){let K=B[w];if(w>0)M.write(p);let te=0;for(let se=0;se<K.length;se++){let me=K[se];b(M,me-te),te=me}}return M.flush()}function Wt(B){let{length:M}=B,w=new ie(B),K=[],te=0,se=0,me=0,Se=0,_e=0;do{let Ae=w.indexOf(";"),fe=[],Pe=!0,ve=0;te=0;while(w.pos<Ae){let oe;if(te+=I(E(w)),te<ve)Pe=!1;if(ve=te,N(w,Ae))if(se+=I(E(w)),me+=I(E(w)),Se+=I(E(w)),N(w,Ae))_e+=I(E(w)),oe=[te,se,me,Se,_e];else oe=[te,se,me,Se];else oe=[te];fe.push(oe),w.pos++}if(!Pe)Ze(fe);K.push(fe),w.pos=Ae+1}while(w.pos<=M);return K}function Ze(B){B.sort(Xt)}function Xt(B,M){return B[0]-M[0]}function Dt(B){let M=new V,w=0,K=0,te=0,se=0;for(let me=0;me<B.length;me++){let Se=B[me];if(me>0)M.write(p);if(Se.length===0)continue;let _e=0;for(let Ae=0;Ae<Se.length;Ae++){let fe=Se[Ae];if(Ae>0)M.write(u);if(b(M,C(fe[0]-_e)),_e=fe[0],fe.length===1)continue;if(b(M,C(fe[1]-w)),b(M,C(fe[2]-K)),b(M,C(fe[3]-te)),w=fe[1],K=fe[2],te=fe[3],fe.length===4)continue;b(M,C(fe[4]-se)),se=fe[4]}}return M.flush()}})});var hd=A(function(Va,Ya){(function(e,t){typeof Va==="object"&&typeof Ya<"u"?Ya.exports=t():typeof define==="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.resolveURI=t())})(Va,function(){let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function s(b){return e.test(b)}function i(b){return b.startsWith("//")}function n(b){return b.startsWith("/")}function a(b){return b.startsWith("file:")}function o(b){return/^[.?#]/.test(b)}function l(b){let C=t.exec(b);return p(C[1],C[2]||"",C[3],C[4]||"",C[5]||"/",C[6]||"",C[7]||"")}function u(b){let C=r.exec(b),N=C[2];return p("file:","",C[1]||"","",n(N)?N:"/"+N,C[3]||"",C[4]||"")}function p(b,C,N,z,j,V,ie){return{scheme:b,user:C,host:N,port:z,path:j,query:V,hash:ie,type:7}}function m(b){if(i(b)){let N=l("http:"+b);return N.scheme="",N.type=6,N}if(n(b)){let N=l("http://foo.com"+b);return N.scheme="",N.host="",N.type=5,N}if(a(b))return u(b);if(s(b))return l(b);let C=l("http://foo.com/"+b);return C.scheme="",C.host="",C.type=b?b.startsWith("?")?3:b.startsWith("#")?2:4:1,C}function x(b){if(b.endsWith("/.."))return b;let C=b.lastIndexOf("/");return b.slice(0,C+1)}function g(b,C){if(E(C,C.type),b.path==="/")b.path=C.path;else b.path=x(C.path)+b.path}function E(b,C){let N=C<=4,z=b.path.split("/"),j=1,V=0,ie=!1;for(let ke=1;ke<z.length;ke++){let Fe=z[ke];if(!Fe){ie=!0;continue}if(ie=!1,Fe===".")continue;if(Fe===".."){if(V)ie=!0,V--,j--;else if(N)z[j++]=Fe;continue}z[j++]=Fe,V++}let ge="";for(let ke=1;ke<j;ke++)ge+="/"+z[ke];if(!ge||ie&&!ge.endsWith("/.."))ge+="/";b.path=ge}function I(b,C){if(!b&&!C)return"";let N=m(b),z=N.type;if(C&&z!==7){let V=m(C),ie=V.type;switch(z){case 1:N.hash=V.hash;case 2:N.query=V.query;case 3:case 4:g(N,V);case 5:N.user=V.user,N.host=V.host,N.port=V.port;case 6:N.scheme=V.scheme}if(ie>z)z=ie}E(N,z);let j=N.query+N.hash;switch(z){case 2:case 3:return j;case 4:{let V=N.path.slice(1);if(!V)return j||".";if(o(C||b)&&!o(V))return"./"+V+j;return V+j}case 5:return N.path+j;default:return N.scheme+"//"+N.user+N.host+N.port+N.path+j}}return I})});var Wa=A(function(Ja,Is){(function(e,t){if(typeof Ja==="object"&&typeof Is<"u")t(Is,hd(),Ka()),Is.exports=r(Is);else if(typeof define==="function"&&define.amd)define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],function(s){t.apply(this,arguments),s.exports=r(s)});else{let s={exports:{}};t(s,e.resolveURI,e.sourcemapCodec),e=typeof globalThis<"u"?globalThis:e||self,e.traceMapping=r(s)}function r(s){return"default"in s.exports?s.exports.default:s.exports}})(Ja,function(e,t,r){var{create:s,defineProperty:i,getOwnPropertyDescriptor:n,getOwnPropertyNames:a,getPrototypeOf:o}=Object,l=Object.prototype.hasOwnProperty,u=(v,_)=>function(){return _||(0,v[a(v)[0]])((_={exports:{}}).exports,_),_.exports},p=(v,_)=>{for(var k in _)i(v,k,{get:_[k],enumerable:!0})},m=(v,_,k,q)=>{if(_&&typeof _==="object"||typeof _==="function"){for(let ee of a(_))if(!l.call(v,ee)&&ee!==k)i(v,ee,{get:()=>_[ee],enumerable:!(q=n(_,ee))||q.enumerable})}return v},x=(v,_,k)=>(k=v!=null?s(o(v)):{},m(_||!v||!v.__esModule?i(k,"default",{value:v,enumerable:!0}):k,v)),g=(v)=>m(i({},"__esModule",{value:!0}),v),E=u({"umd:@jridgewell/sourcemap-codec"(v,_){_.exports=r}}),I=u({"umd:@jridgewell/resolve-uri"(v,_){_.exports=t}}),b={};p(b,{AnyMap:()=>te,FlattenMap:()=>te,GREATEST_LOWER_BOUND:()=>ve,LEAST_UPPER_BOUND:()=>Pe,TraceMap:()=>oe,allGeneratedPositionsFor:()=>le,decodedMap:()=>Mt,decodedMappings:()=>D,eachMapping:()=>pe,encodedMap:()=>Ir,encodedMappings:()=>L,generatedPositionFor:()=>ce,isIgnored:()=>mt,originalPositionFor:()=>G,presortedDecodedMap:()=>Lt,sourceContentFor:()=>qe,traceSegment:()=>Y}),e.exports=g(b);var C=x(E()),N=x(I());function z(v){if(!v)return"";let _=v.lastIndexOf("/");return v.slice(0,_+1)}function j(v,_){let k=z(v),q=_?_+"/":"";return(ee)=>(0,N.default)(q+(ee||""),k)}var V=0,ie=1,ge=2,ke=3,Fe=4,Je=1,st=2;function at(v,_){let k=it(v,0);if(k===v.length)return v;if(!_)v=v.slice();for(let q=k;q<v.length;q=it(v,q+1))v[q]=Ve(v[q],_);return v}function it(v,_){for(let k=_;k<v.length;k++)if(!dt(v[k]))return k;return v.length}function dt(v){for(let _=1;_<v.length;_++)if(v[_][V]<v[_-1][V])return!1;return!0}function Ve(v,_){if(!_)v=v.slice();return v.sort(kt)}function kt(v,_){return v[V]-_[V]}function Wt(v,_){let k=_.map(()=>[]);for(let q=0;q<v.length;q++){let ee=v[q];for(let X=0;X<ee.length;X++){let de=ee[X];if(de.length===1)continue;let we=de[ie],he=de[ge],je=de[ke],Ue=k[we];(Ue[he]||(Ue[he]=[])).push([je,q,de[V]])}}for(let q=0;q<k.length;q++){let ee=k[q];for(let X=0;X<ee.length;X++){let de=ee[X];if(de)de.sort(kt)}}return k}var Ze=!1;function Xt(v,_,k,q){while(k<=q){let ee=k+(q-k>>1),X=v[ee][V]-_;if(X===0)return Ze=!0,ee;if(X<0)k=ee+1;else q=ee-1}return Ze=!1,k-1}function Dt(v,_,k){for(let q=k+1;q<v.length;k=q++)if(v[q][V]!==_)break;return k}function B(v,_,k){for(let q=k-1;q>=0;k=q--)if(v[q][V]!==_)break;return k}function M(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function w(v,_,k,q){let{lastKey:ee,lastNeedle:X,lastIndex:de}=k,we=0,he=v.length-1;if(q===ee){if(_===X)return Ze=de!==-1&&v[de][V]===_,de;if(_>=X)we=de===-1?0:de;else he=de}return k.lastKey=q,k.lastNeedle=_,k.lastIndex=Xt(v,_,we,he)}function K(v){return typeof v==="string"?JSON.parse(v):v}var te=function(v,_){let k=K(v);if(!("sections"in k))return new oe(k,_);let q=[],ee=[],X=[],de=[],we=[];se(k,_,q,ee,X,de,we,0,0,1/0,1/0);let he={version:3,file:k.file,names:de,sources:ee,sourcesContent:X,mappings:q,ignoreList:we};return Lt(he)};function se(v,_,k,q,ee,X,de,we,he,je,Ue){let{sections:Ke}=v;for(let nt=0;nt<Ke.length;nt++){let{map:ot,offset:Pt}=Ke[nt],At=je,jt=Ue;if(nt+1<Ke.length){let wr=Ke[nt+1].offset;if(At=Math.min(je,we+wr.line),At===je)jt=Math.min(Ue,he+wr.column);else if(At<je)jt=he+wr.column}me(ot,_,k,q,ee,X,de,we+Pt.line,he+Pt.column,At,jt)}}function me(v,_,k,q,ee,X,de,we,he,je,Ue){let Ke=K(v);if("sections"in Ke)return se(...arguments);let nt=new oe(Ke,_),ot=q.length,Pt=X.length,At=D(nt),{resolvedSources:jt,sourcesContent:wr,ignoreList:tn}=nt;if(Se(q,jt),Se(X,nt.names),wr)Se(ee,wr);else for(let lt=0;lt<jt.length;lt++)ee.push(null);if(tn)for(let lt=0;lt<tn.length;lt++)de.push(tn[lt]+ot);for(let lt=0;lt<At.length;lt++){let rn=we+lt;if(rn>je)return;let Tl=_e(k,rn),Kx=lt===0?he:0,xl=At[lt];for(let sn=0;sn<xl.length;sn++){let or=xl[sn],Vs=Kx+or[V];if(rn===je&&Vs>=Ue)return;if(or.length===1){Tl.push([Vs]);continue}let Sl=ot+or[ie],gl=or[ge],bl=or[ke];Tl.push(or.length===4?[Vs,Sl,gl,bl]:[Vs,Sl,gl,bl,Pt+or[Fe]])}}}function Se(v,_){for(let k=0;k<_.length;k++)v.push(_[k])}function _e(v,_){for(let k=v.length;k<=_;k++)v[k]=[];return v[_]}var Ae="`line` must be greater than 0 (lines start at line 1)",fe="`column` must be greater than or equal to 0 (columns start at column 0)",Pe=-1,ve=1,oe=class{constructor(v,_){let k=typeof v==="string";if(!k&&v._decodedMemo)return v;let q=K(v),{version:ee,file:X,names:de,sourceRoot:we,sources:he,sourcesContent:je}=q;this.version=ee,this.file=X,this.names=de||[],this.sourceRoot=we,this.sources=he,this.sourcesContent=je,this.ignoreList=q.ignoreList||q.x_google_ignoreList||void 0;let Ue=j(_,we);this.resolvedSources=he.map(Ue);let{mappings:Ke}=q;if(typeof Ke==="string")this._encoded=Ke,this._decoded=void 0;else if(Array.isArray(Ke))this._encoded=void 0,this._decoded=at(Ke,k);else if(q.sections)throw Error("TraceMap passed sectioned source map, please use FlattenMap export instead");else throw Error(`invalid source map: ${JSON.stringify(q)}`);this._decodedMemo=M(),this._bySources=void 0,this._bySourceMemos=void 0}};function ye(v){return v}function L(v){var _,k;return(k=(_=ye(v))._encoded)!=null?k:_._encoded=(0,C.encode)(ye(v)._decoded)}function D(v){var _;return(_=ye(v))._decoded||(_._decoded=(0,C.decode)(ye(v)._encoded))}function Y(v,_,k){let q=D(v);if(_>=q.length)return null;let ee=q[_],X=ar(ee,ye(v)._decodedMemo,_,k,ve);return X===-1?null:ee[X]}function G(v,_){let{line:k,column:q,bias:ee}=_;if(k--,k<0)throw Error(Ae);if(q<0)throw Error(fe);let X=D(v);if(k>=X.length)return Ft(null,null,null,null);let de=X[k],we=ar(de,ye(v)._decodedMemo,k,q,ee||ve);if(we===-1)return Ft(null,null,null,null);let he=de[we];if(he.length===1)return Ft(null,null,null,null);let{names:je,resolvedSources:Ue}=v;return Ft(Ue[he[ie]],he[ge]+1,he[ke],he.length===5?je[he[Fe]]:null)}function ce(v,_){let{source:k,line:q,column:ee,bias:X}=_;return yl(v,k,q,ee,X||ve,!1)}function le(v,_){let{source:k,line:q,column:ee,bias:X}=_;return yl(v,k,q,ee,X||Pe,!0)}function pe(v,_){let k=D(v),{names:q,resolvedSources:ee}=v;for(let X=0;X<k.length;X++){let de=k[X];for(let we=0;we<de.length;we++){let he=de[we],je=X+1,Ue=he[0],Ke=null,nt=null,ot=null,Pt=null;if(he.length!==1)Ke=ee[he[1]],nt=he[2]+1,ot=he[3];if(he.length===5)Pt=q[he[4]];_({generatedLine:je,generatedColumn:Ue,source:Ke,originalLine:nt,originalColumn:ot,name:Pt})}}}function Ce(v,_){let{sources:k,resolvedSources:q}=v,ee=k.indexOf(_);if(ee===-1)ee=q.indexOf(_);return ee}function qe(v,_){let{sourcesContent:k}=v;if(k==null)return null;let q=Ce(v,_);return q===-1?null:k[q]}function mt(v,_){let{ignoreList:k}=v;if(k==null)return!1;let q=Ce(v,_);return q===-1?!1:k.includes(q)}function Lt(v,_){let k=new oe(Bt(v,[]),_);return ye(k)._decoded=v.mappings,k}function Mt(v){return Bt(v,D(v))}function Ir(v){return Bt(v,L(v))}function Bt(v,_){return{version:v.version,file:v.file,names:v.names,sourceRoot:v.sourceRoot,sources:v.sources,sourcesContent:v.sourcesContent,mappings:_,ignoreList:v.ignoreList||v.x_google_ignoreList}}function Ft(v,_,k,q){return{source:v,line:_,column:k,name:q}}function yt(v,_){return{line:v,column:_}}function ar(v,_,k,q,ee){let X=w(v,q,_,k);if(Ze)X=(ee===Pe?Dt:B)(v,q,X);else if(ee===Pe)X++;if(X===-1||X===v.length)return-1;return X}function Ux(v,_,k,q,ee){let X=ar(v,_,k,q,ve);if(!Ze&&ee===Pe)X++;if(X===-1||X===v.length)return[];let de=Ze?q:v[X][V];if(!Ze)X=B(v,de,X);let we=Dt(v,de,X),he=[];for(;X<=we;X++){let je=v[X];he.push(yt(je[Je]+1,je[st]))}return he}function yl(v,_,k,q,ee,X){var de,we;if(k--,k<0)throw Error(Ae);if(q<0)throw Error(fe);let{sources:he,resolvedSources:je}=v,Ue=he.indexOf(_);if(Ue===-1)Ue=je.indexOf(_);if(Ue===-1)return X?[]:yt(null,null);let Ke=(de=ye(v))._bySourceMemos||(de._bySourceMemos=he.map(M)),ot=((we=ye(v))._bySources||(we._bySources=Wt(D(v),Ke)))[Ue][k];if(ot==null)return X?[]:yt(null,null);let Pt=Ke[Ue];if(X)return Ux(ot,Pt,k,q,ee);let At=ar(ot,Pt,k,q,ee);if(At===-1)return yt(null,null);let jt=ot[At];return yt(jt[Je]+1,jt[st])}})});var dd=A(function(Xa,ws){(function(e,t){if(typeof Xa==="object"&&typeof ws<"u")t(ws,Ka(),Wa()),ws.exports=r(ws);else if(typeof define==="function"&&define.amd)define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],function(s){t.apply(this,arguments),s.exports=r(s)});else{let s={exports:{}};t(s,e.sourcemapCodec,e.traceMapping),e=typeof globalThis<"u"?globalThis:e||self,e.genMapping=r(s)}function r(s){return"default"in s.exports?s.exports.default:s.exports}})(Xa,function(e,t,r){var{create:s,defineProperty:i,getOwnPropertyDescriptor:n,getOwnPropertyNames:a,getPrototypeOf:o}=Object,l=Object.prototype.hasOwnProperty,u=(L,D)=>function(){return D||(0,L[a(L)[0]])((D={exports:{}}).exports,D),D.exports},p=(L,D)=>{for(var Y in D)i(L,Y,{get:D[Y],enumerable:!0})},m=(L,D,Y,G)=>{if(D&&typeof D==="object"||typeof D==="function"){for(let ce of a(D))if(!l.call(L,ce)&&ce!==Y)i(L,ce,{get:()=>D[ce],enumerable:!(G=n(D,ce))||G.enumerable})}return L},x=(L,D,Y)=>(Y=L!=null?s(o(L)):{},m(D||!L||!L.__esModule?i(Y,"default",{value:L,enumerable:!0}):Y,L)),g=(L)=>m(i({},"__esModule",{value:!0}),L),E=u({"umd:@jridgewell/sourcemap-codec"(L,D){D.exports=t}}),I=u({"umd:@jridgewell/trace-mapping"(L,D){D.exports=r}}),b={};p(b,{GenMapping:()=>dt,addMapping:()=>Wt,addSegment:()=>kt,allMappings:()=>te,fromMap:()=>K,maybeAddMapping:()=>Xt,maybeAddSegment:()=>Ze,setIgnore:()=>B,setSourceContent:()=>Dt,toDecodedMap:()=>M,toEncodedMap:()=>w}),e.exports=g(b);var C=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function N(L){return L}function z(L,D){return N(L)._indexes[D]}function j(L,D){let Y=z(L,D);if(Y!==void 0)return Y;let{array:G,_indexes:ce}=N(L),le=G.push(D);return ce[D]=le-1}function V(L,D){let Y=z(L,D);if(Y===void 0)return;let{array:G,_indexes:ce}=N(L);for(let le=Y+1;le<G.length;le++){let pe=G[le];G[le-1]=pe,ce[pe]--}ce[D]=void 0,G.pop()}var ie=x(E()),ge=x(I()),ke=0,Fe=1,Je=2,st=3,at=4,it=-1,dt=class{constructor({file:L,sourceRoot:D}={}){this._names=new C,this._sources=new C,this._sourcesContent=[],this._mappings=[],this.file=L,this.sourceRoot=D,this._ignoreList=new C}};function Ve(L){return L}function kt(L,D,Y,G,ce,le,pe,Ce){return se(!1,L,D,Y,G,ce,le,pe,Ce)}function Wt(L,D){return ye(!1,L,D)}var Ze=(L,D,Y,G,ce,le,pe,Ce)=>se(!0,L,D,Y,G,ce,le,pe,Ce),Xt=(L,D)=>ye(!0,L,D);function Dt(L,D,Y){let{_sources:G,_sourcesContent:ce}=Ve(L),le=j(G,D);ce[le]=Y}function B(L,D,Y=!0){let{_sources:G,_sourcesContent:ce,_ignoreList:le}=Ve(L),pe=j(G,D);if(pe===ce.length)ce[pe]=null;if(Y)j(le,pe);else V(le,pe)}function M(L){let{_mappings:D,_sources:Y,_sourcesContent:G,_names:ce,_ignoreList:le}=Ve(L);return fe(D),{version:3,file:L.file||void 0,names:ce.array,sourceRoot:L.sourceRoot||void 0,sources:Y.array,sourcesContent:G,mappings:D,ignoreList:le.array}}function w(L){let D=M(L);return Object.assign({},D,{mappings:(0,ie.encode)(D.mappings)})}function K(L){let D=new ge.TraceMap(L),Y=new dt({file:D.file,sourceRoot:D.sourceRoot});if(Pe(Ve(Y)._names,D.names),Pe(Ve(Y)._sources,D.sources),Ve(Y)._sourcesContent=D.sourcesContent||D.sources.map(()=>null),Ve(Y)._mappings=(0,ge.decodedMappings)(D),D.ignoreList)Pe(Ve(Y)._ignoreList,D.ignoreList);return Y}function te(L){let D=[],{_mappings:Y,_sources:G,_names:ce}=Ve(L);for(let le=0;le<Y.length;le++){let pe=Y[le];for(let Ce=0;Ce<pe.length;Ce++){let qe=pe[Ce],mt={line:le+1,column:qe[ke]},Lt=void 0,Mt=void 0,Ir=void 0;if(qe.length!==1){if(Lt=G.array[qe[Fe]],Mt={line:qe[Je]+1,column:qe[st]},qe.length===5)Ir=ce.array[qe[at]]}D.push({generated:mt,source:Lt,original:Mt,name:Ir})}}return D}function se(L,D,Y,G,ce,le,pe,Ce,qe){let{_mappings:mt,_sources:Lt,_sourcesContent:Mt,_names:Ir}=Ve(D),Bt=Se(mt,Y),Ft=_e(Bt,G);if(!ce){if(L&&ve(Bt,Ft))return;return Ae(Bt,Ft,[G])}me(le),me(pe);let yt=j(Lt,ce),ar=Ce?j(Ir,Ce):it;if(yt===Mt.length)Mt[yt]=qe!=null?qe:null;if(L&&oe(Bt,Ft,yt,le,pe,ar))return;return Ae(Bt,Ft,Ce?[G,yt,le,pe,ar]:[G,yt,le,pe])}function me(L){}function Se(L,D){for(let Y=L.length;Y<=D;Y++)L[Y]=[];return L[D]}function _e(L,D){let Y=L.length;for(let G=Y-1;G>=0;Y=G--){let ce=L[G];if(D>=ce[ke])break}return Y}function Ae(L,D,Y){for(let G=L.length;G>D;G--)L[G]=L[G-1];L[D]=Y}function fe(L){let{length:D}=L,Y=D;for(let G=Y-1;G>=0;Y=G,G--)if(L[G].length>0)break;if(Y<D)L.length=Y}function Pe(L,D){for(let Y=0;Y<D.length;Y++)j(L,D[Y])}function ve(L,D){if(D===0)return!0;return L[D-1].length===1}function oe(L,D,Y,G,ce,le){if(D===0)return!1;let pe=L[D-1];if(pe.length===1)return!1;return Y===pe[Fe]&&G===pe[Je]&&ce===pe[st]&&le===(pe.length===5?pe[at]:it)}function ye(L,D,Y){let{generated:G,source:ce,original:le,name:pe,content:Ce}=Y;if(!ce)return se(L,D,G.line-1,G.column,null,null,null,null,null);return me(le),se(L,D,G.line-1,G.column,ce,le.line-1,le.column,pe,Ce)}})});var xd=A(function(yd){Object.defineProperty(yd,"__esModule",{value:!0});yd.default=void 0;var tr=dd(),$a=Wa();class md{constructor(e,t){var r;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;let s=this._map=new tr.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=(r=e.sourceFileName)==null?void 0:r.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new $a.TraceMap(e.inputSourceMap);let n=this._inputMap.resolvedSources;if(n.length)for(let a=0;a<n.length;a++){var i;(0,tr.setSourceContent)(s,n[a],(i=this._inputMap.sourcesContent)==null?void 0:i[a])}}if(typeof t==="string"&&!e.inputSourceMap)(0,tr.setSourceContent)(s,this._sourceFileName,t);else if(typeof t==="object")for(let n of Object.keys(t))(0,tr.setSourceContent)(s,n.replace(/\\/g,"/"),t[n])}get(){return(0,tr.toEncodedMap)(this._map)}getDecoded(){return(0,tr.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,tr.allMappings)(this._map))}mark(e,t,r,s,i,n){var a;this._rawMappings=void 0;let o;if(t!=null)if(this._inputMap){if(o=(0,$a.originalPositionFor)(this._inputMap,{line:t,column:r}),o.name&&(i||s!=null&&o.column===r))s=o.name;else if(i){let l=(0,$a.originalPositionFor)(this._inputMap,i);if(l.name)s=l.name}}else o={name:null,source:(n==null?void 0:n.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:r};(0,tr.maybeAddMapping)(this._map,{name:s,generated:e,source:(a=o)==null?void 0:a.source,original:o})}}yd.default=md});var Pd=A(function(bd){Object.defineProperty(bd,"__esModule",{value:!0});bd.default=void 0;var Sd=[];for(let e=0;e<32;e++)Sd.push(" ".repeat(e*2));class gd{constructor(e,t){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._canMarkIdName=!0,this._indentChar="",this._queuedChar=0,this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=e,this._indentChar=t}get(){let{_map:e,_last:t}=this;if(this._queuedChar!==32)this._flush();let r=t===10?(this._buf+this._str).trimRight():this._buf+this._str;if(e===null)return{code:r,decodedMap:void 0,map:null,rawMappings:void 0};let s={code:r,decodedMap:e.getDecoded(),get __mergedMap(){return this.map},get map(){let i=e.get();return s.map=i,i},set map(i){Object.defineProperty(s,"map",{value:i,writable:!0})},get rawMappings(){let i=e.getRawMappings();return s.rawMappings=i,i},set rawMappings(i){Object.defineProperty(s,"rawMappings",{value:i,writable:!0})}};return s}append(e,t,r=!1){this._flush(),this._append(e,t,r)}appendChar(e){this._flush(),this._appendChar(e,1,!0)}queue(e){this._flush(),this._queuedChar=e}_flush(){let e=this._queuedChar;if(e!==0)this._appendChar(e,1,!0),this._queuedChar=0}_appendChar(e,t,r){if(this._last=e,e===-1){let n=t>=64?this._indentChar.repeat(t):Sd[t/2];this._str+=n}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);let s=e===32,i=this._position;if(e!==10){if(this._map){let n=this._sourcePosition;if(r&&n){if(this._map.mark(i,n.line,n.column,s?void 0:n.identifierName,s?void 0:n.identifierNamePos,n.filename),!s&&this._canMarkIdName)n.identifierName=void 0,n.identifierNamePos=void 0}else this._map.mark(i)}i.column+=t}else i.line++,i.column=0}_append(e,t,r){let s=e.length,i=this._position,n=this._sourcePosition;if(this._last=-1,++this._appendCount>4096)+this._str,this._buf+=this._str,this._str=e,this._appendCount=0;else this._str+=e;let a=!r&&this._map!==null;if(!t&&!a){i.column+=s;return}let{column:o,identifierName:l,identifierNamePos:u,filename:p}=n,m=n.line;if((l!=null||u!=null)&&this._canMarkIdName)n.identifierName=void 0,n.identifierNamePos=void 0;let x=e.indexOf(`
22
22
  `),g=0;if(a&&x!==0)this._map.mark(i,m,o,l,u,p);while(x!==-1){if(i.line++,i.column=0,g=x+1,g<s&&m!==void 0){if(m++,a)this._map.mark(i,m,0,void 0,void 0,p)}x=e.indexOf(`
23
- `,g)}i.column+=s-g}removeLastSemicolon(){if(this._queuedChar===59)this._queuedChar=0}getLastChar(e){if(!e)return this._last;let t=this._queuedChar;return t!==0?t:this._last}getNewlineCount(){return this._queuedChar===0&&this._last===10?1:0}hasContent(){return this._last!==0}exactSource(e,t){if(!this._map){t();return}this.source("start",e);let r=e.identifierName,s=this._sourcePosition;if(r!=null)this._canMarkIdName=!1,s.identifierName=r;if(t(),r!=null)this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0;this.source("end",e)}source(e,t){if(!this._map)return;this._normalizePosition(e,t,0)}sourceWithOffset(e,t,r){if(!this._map)return;this._normalizePosition(e,t,r)}_normalizePosition(e,t,r){this._flush();let s=t[e];if(s)this.setSourcePosition(s.line,Math.max(s.column+r,0)),this._sourcePosition.filename=t.filename}setSourcePosition(e,t){let r=this._sourcePosition;r.line=e,r.column=t}getCurrentColumn(){return this._position.column+(this._queuedChar?1:0)}getCurrentLine(){return this._position.line}}gd.default=Sd});var Od=A(function(Nd){Object.defineProperty(Nd,"__esModule",{value:!0});Nd.AssignmentExpression=Kie;Nd.BinaryExpression=Mie;Nd.ClassExpression=Rie;Nd.ArrowFunctionExpression=Nd.ConditionalExpression=wd;Nd.DoExpression=Cie;Nd.FunctionExpression=qie;Nd.FunctionTypeAnnotation=Pie;Nd.Identifier=Vie;Nd.LogicalExpression=Bie;Nd.NullableTypeAnnotation=Eie;Nd.ObjectExpression=vie;Nd.OptionalIndexedAccessType=wie;Nd.OptionalCallExpression=Nd.OptionalMemberExpression=Uie;Nd.SequenceExpression=Fie;Nd.TSSatisfiesExpression=Nd.TSAsExpression=Nie;Nd.TSConditionalType=Oie;Nd.TSConstructorType=Nd.TSFunctionType=Lie;Nd.TSInferType=kie;Nd.TSInstantiationExpression=Die;Nd.TSIntersectionType=_ie;Nd.SpreadElement=Nd.UnaryExpression=Nd.TSTypeAssertion=Id;Nd.TSTypeOperator=za;Nd.TSUnionType=Cd;Nd.IntersectionTypeAnnotation=Nd.UnionTypeAnnotation=Iie;Nd.UpdateExpression=Aie;Nd.AwaitExpression=Nd.YieldExpression=jie;var Tie=ae(),Ye=tr(),{isMemberExpression:xie,isOptionalMemberExpression:Sie,isYieldExpression:gie,isStatement:bie}=Tie,Pd=new Map([["||",0],["??",1],["&&",2],["|",3],["^",4],["&",5],["==",6],["===",6],["!=",6],["!==",6],["<",7],[">",7],["<=",7],[">=",7],["in",7],["instanceof",7],[">>",8],["<<",8],[">>>",8],["+",9],["-",9],["*",10],["/",10],["%",10],["**",11]]);function Ad(e){return e===156||e===201||e===209}var Ai=(e,t,r)=>(r===21||r===22)&&t.superClass===e,vi=(e,t,r)=>{switch(r){case 108:case 132:return t.object===e;case 17:case 130:case 112:return t.callee===e;case 222:return t.tag===e;case 191:return!0}return!1};function Eie(e,t,r){return r===4}function Pie(e,t,r,s){return r===239||r===90||r===4||(s&Ye.TokenContext.arrowFlowReturnType)>0}function Aie(e,t,r){return vi(e,t,r)||Ai(e,t,r)}function vd(e){return(e&(Ye.TokenContext.expressionStatement|Ye.TokenContext.arrowBody))>0}function vie(e,t,r,s){return vd(s)}function Cie(e,t,r,s){return(s&Ye.TokenContext.expressionStatement)>0&&!e.async}function Ha(e,t,r,s){if(Ai(e,t,r))return!0;if(vi(e,t,r)||r===238||r===145||r===8)return!0;let i;switch(r){case 10:case 107:i=Pd.get(t.operator);break;case 156:case 201:i=7}if(i!==void 0){let n=s===2?7:Pd.get(e.operator);if(i>n)return!0;if(i===n&&r===10&&(n===11?t.left===e:t.right===e))return!0;if(s===1&&r===107&&(n===1&&i!==1||i===1&&n!==1))return!0}return!1}function Iie(e,t,r){switch(r){case 4:case 115:case 90:case 239:return!0}return!1}function wie(e,t,r){return r===84&&t.objectType===e}function Nie(e,t,r){if((r===6||r===7)&&t.left===e)return!0;if(r===10&&(t.operator==="|"||t.operator==="&")&&e===t.left)return!0;return Ha(e,t,r,2)}function Oie(e,t,r){switch(r){case 155:case 195:case 211:case 212:return!0;case 175:return t.objectType===e;case 181:case 219:return t.types[0]===e;case 161:return t.checkType===e||t.extendsType===e}return!1}function Cd(e,t,r){switch(r){case 181:case 211:case 155:case 195:return!0;case 175:return t.objectType===e}return!1}function _ie(e,t,r){return r===211||za(e,t,r)}function kie(e,t,r){if(za(e,t,r))return!0;if((r===181||r===219)&&e.typeParameter.constraint&&t.types[0]===e)return!0;return!1}function za(e,t,r){switch(r){case 155:case 195:return!0;case 175:if(t.objectType===e)return!0}return!1}function Die(e,t,r){switch(r){case 17:case 130:case 112:case 177:return t.typeParameters!=null}return!1}function Lie(e,t,r){if(Cd(e,t,r))return!0;return r===219||r===161&&(t.checkType===e||t.extendsType===e)}function Mie(e,t,r,s){if(Ha(e,t,r,0))return!0;return(s&Ye.TokenContext.forInOrInitHeadAccumulate)>0&&e.operator==="in"}function Bie(e,t,r){return Ha(e,t,r,1)}function Fie(e,t,r){if(r===144||r===133||r===108&&t.property===e||r===132&&t.property===e||r===224)return!1;if(r===21)return!0;if(r===68)return t.right===e;if(r===60)return!0;return!bie(t)}function jie(e,t,r){return r===10||r===107||r===238||r===145||vi(e,t,r)||r===8&&gie(e)||r===28&&e===t.test||Ai(e,t,r)||Ad(r)}function Rie(e,t,r,s){return(s&(Ye.TokenContext.expressionStatement|Ye.TokenContext.exportDefault))>0}function Id(e,t,r){return vi(e,t,r)||r===10&&t.operator==="**"&&t.left===e||Ai(e,t,r)}function qie(e,t,r,s){return(s&(Ye.TokenContext.expressionStatement|Ye.TokenContext.exportDefault))>0}function wd(e,t,r){switch(r){case 238:case 145:case 10:case 107:case 8:return!0;case 28:if(t.test===e)return!0}if(Ad(r))return!0;return Id(e,t,r)}function Uie(e,t,r){switch(r){case 17:return t.callee===e;case 108:return t.object===e}return!1}function Kie(e,t,r,s){if(vd(s)&&e.left.type==="ObjectPattern")return!0;return wd(e,t,r)}function Vie(e,t,r,s,i){var n;if(i&&i(e)!==e.name)return!1;if(r===6&&(n=e.extra)!=null&&n.parenthesized&&t.left===e){let a=t.right.type;if((a==="FunctionExpression"||a==="ClassExpression")&&t.right.id==null)return!0}if(s&Ye.TokenContext.forOfHead||(r===108||r===132)&&s&(Ye.TokenContext.expressionStatement|Ye.TokenContext.forInitHead|Ye.TokenContext.forInHead)){if(e.name==="let"){if((xie(t,{object:e,computed:!0})||Sie(t,{object:e,computed:!0,optional:!1}))&&s&(Ye.TokenContext.expressionStatement|Ye.TokenContext.forInitHead|Ye.TokenContext.forInHead))return!0;return(s&Ye.TokenContext.forOfHead)>0}}return r===68&&t.left===e&&e.name==="async"&&!t.await}});var Ga=A(function(kd){Object.defineProperty(kd,"__esModule",{value:!0});kd.TaggedTemplateExpression=yne;kd.TemplateElement=Tne;kd.TemplateLiteral=xne;kd._printTemplate=_d;function yne(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)}function Tne(){throw Error("TemplateElement printing is handled in TemplateLiteral")}function _d(e,t){let r=e.quasis,s="`";for(let i=0;i<r.length-1;i++)if(s+=r[i].value.raw,this.token(s+"${",!0),this.print(t[i]),s="}",this.tokenMap){let n=this.tokenMap.findMatching(e,"}",i);if(n)this._catchUpTo(n.loc.start)}s+=r[r.length-1].value.raw,this.token(s+"`",!0)}function xne(e){_d.call(this,e,e.expressions)}});var Ci=A(function(Ld){Object.defineProperty(Ld,"__esModule",{value:!0});Ld.LogicalExpression=Ld.AssignmentExpression=$ne;Ld.AssignmentPattern=Xne;Ld.AwaitExpression=Vne;Ld.BinaryExpression=Hne;Ld.BindExpression=zne;Ld.CallExpression=Une;Ld.ConditionalExpression=kne;Ld.Decorator=jne;Ld.DoExpression=Nne;Ld.EmptyStatement=Jne;Ld.ExpressionStatement=Wne;Ld.Import=Kne;Ld.MemberExpression=Gne;Ld.MetaProperty=Qne;Ld.ModuleExpression=tae;Ld.NewExpression=Dne;Ld.OptionalCallExpression=qne;Ld.OptionalMemberExpression=Rne;Ld.ParenthesizedExpression=One;Ld.PrivateName=Zne;Ld.SequenceExpression=Lne;Ld.Super=Bne;Ld.ThisExpression=Mne;Ld.UnaryExpression=wne;Ld.UpdateExpression=_ne;Ld.V8IntrinsicIdentifier=eae;Ld.YieldExpression=Yne;Ld._shouldPrintDecoratorsBeforeExport=Fne;var Pne=ae(),Ane=tr(),{isCallExpression:vne,isLiteral:Dd,isMemberExpression:Qa,isNewExpression:Cne,isPattern:Ine}=Pne;function wne(e){let{operator:t}=e,r=t.charCodeAt(0);if(r>=97&&r<=122)this.word(t),this.space();else this.tokenChar(r);this.print(e.argument)}function Nne(e){if(e.async)this.word("async",!0),this.space();this.word("do"),this.space(),this.print(e.body)}function One(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function _ne(e){if(e.prefix)this.token(e.operator,!1,0,!0),this.print(e.argument);else this.print(e.argument,!0),this.token(e.operator,!1,0,!0)}function kne(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)}function Dne(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&e.arguments.length===0&&!e.optional&&!vne(t,{callee:e})&&!Qa(t)&&!Cne(t))return;if(this.print(e.typeArguments),this.print(e.typeParameters),e.optional)this.token("?.");if(e.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(e,")"))return;this.tokenChar(40);let r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=r,this.rightParens(e)}function Lne(e){this.printList(e.expressions)}function Mne(){this.word("this")}function Bne(){this.word("super")}function Fne(e){if(typeof this.format.decoratorsBeforeExport==="boolean")return this.format.decoratorsBeforeExport;return typeof e.start==="number"&&e.start===e.declaration.start}function jne(e){this.tokenChar(64);let{expression:t}=e;this.print(t),this.newline()}function Rne(e){let{computed:t}=e,{optional:r,property:s}=e;if(this.print(e.object),!t&&Qa(s))throw TypeError("Got a MemberExpression for MemberExpression property");if(Dd(s)&&typeof s.value==="number")t=!0;if(r)this.token("?.");if(t)this.tokenChar(91),this.print(s),this.tokenChar(93);else{if(!r)this.tokenChar(46);this.print(s)}}function qne(e){if(this.print(e.callee),this.print(e.typeParameters),e.optional)this.token("?.");this.print(e.typeArguments),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,void 0,void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function Une(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function Kne(){this.word("import")}function Vne(e){this.word("await"),this.space(),this.print(e.argument)}function Yne(e){if(e.delegate){if(this.word("yield",!0),this.tokenChar(42),e.argument)this.space(),this.print(e.argument)}else if(e.argument)this.word("yield",!0),this.space(),this.print(e.argument);else this.word("yield")}function Jne(){this.semicolon(!0)}function Wne(e){this.tokenContext|=Ane.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()}function Xne(e){if(this.print(e.left),e.left.type==="Identifier"||Ine(e.left)){if(e.left.optional)this.tokenChar(63);this.print(e.left.typeAnnotation)}this.space(),this.tokenChar(61),this.space(),this.print(e.right)}function $ne(e){this.print(e.left),this.space(),this.token(e.operator,!1,0,!0),this.space(),this.print(e.right)}function Hne(e){this.print(e.left),this.space();let{operator:t}=e;if(t.charCodeAt(0)===105)this.word(t);else this.token(t,!1,0,!0),this.setLastChar(t.charCodeAt(t.length-1));this.space(),this.print(e.right)}function zne(e){this.print(e.object),this.token("::"),this.print(e.callee)}function Gne(e){if(this.print(e.object),!e.computed&&Qa(e.property))throw TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(Dd(e.property)&&typeof e.property.value==="number")t=!0;if(t){let r=this.enterDelimited();this.tokenChar(91),this.print(e.property,void 0,!0),this.tokenChar(93),this._noLineTerminatorAfterNode=r}else this.tokenChar(46),this.print(e.property)}function Qne(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)}function Zne(e){this.tokenChar(35),this.print(e.id)}function eae(e){this.tokenChar(37),this.word(e.name)}function tae(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;if(t.body.length||t.directives.length)this.newline();this.print(t),this.dedent(),this.rightBrace(e)}});var Fd=A(function(Bd){Object.defineProperty(Bd,"__esModule",{value:!0});Bd.BreakStatement=Uae;Bd.CatchClause=Xae;Bd.ContinueStatement=Kae;Bd.DebuggerStatement=zae;Bd.DoWhileStatement=qae;Bd.ForInStatement=jae;Bd.ForOfStatement=Rae;Bd.ForStatement=Bae;Bd.IfStatement=Mae;Bd.LabeledStatement=Jae;Bd.ReturnStatement=Vae;Bd.SwitchCase=Hae;Bd.SwitchStatement=$ae;Bd.ThrowStatement=Yae;Bd.TryStatement=Wae;Bd.VariableDeclaration=Qae;Bd.VariableDeclarator=Zae;Bd.WhileStatement=Fae;Bd.WithStatement=Lae;var Oae=ae(),gr=tr(),{isFor:_ae,isIfStatement:kae,isStatement:Dae}=Oae;function Lae(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e.body)}function Mae(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&kae(Md(e.consequent));if(t)this.tokenChar(123),this.newline(),this.indent();if(this.printAndIndentOnComments(e.consequent),t)this.dedent(),this.newline(),this.tokenChar(125);if(e.alternate){if(this.endsWith(125))this.space();this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate)}}function Md(e){let{body:t}=e;if(Dae(t)===!1)return e;return Md(t)}function Bae(e){if(this.word("for"),this.space(),this.tokenChar(40),this.tokenContext|=gr.TokenContext.forInitHead|gr.TokenContext.forInOrInitHeadAccumulate,this.print(e.init),this.tokenContext=gr.TokenContext.normal,this.tokenChar(59),e.test)this.space(),this.print(e.test);if(this.tokenChar(59,1),e.update)this.space(),this.print(e.update);this.tokenChar(41),this.printBlock(e.body)}function Fae(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e.body)}function jae(e){this.word("for"),this.space(),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=gr.TokenContext.forInHead|gr.TokenContext.forInOrInitHeadAccumulate,this.print(e.left),this.tokenContext=gr.TokenContext.normal,this.space(),this.word("in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function Rae(e){if(this.word("for"),this.space(),e.await)this.word("await"),this.space();this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=gr.TokenContext.forOfHead,this.print(e.left),this.space(),this.word("of"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function qae(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()}function Ii(e,t){if(t)e.space(),e.printTerminatorless(t);e.semicolon()}function Uae(e){this.word("break"),Ii(this,e.label)}function Kae(e){this.word("continue"),Ii(this,e.label)}function Vae(e){this.word("return"),Ii(this,e.argument)}function Yae(e){this.word("throw"),Ii(this,e.argument)}function Jae(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)}function Wae(e){if(this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers)this.print(e.handlers[0]);else this.print(e.handler);if(e.finalizer)this.space(),this.word("finally"),this.space(),this.print(e.finalizer)}function Xae(e){if(this.word("catch"),this.space(),e.param)this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space();this.print(e.body)}function $ae(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)}function Hae(e){if(e.test)this.word("case"),this.space(),this.print(e.test),this.tokenChar(58);else this.word("default"),this.tokenChar(58);if(e.consequent.length)this.newline(),this.printSequence(e.consequent,!0)}function zae(){this.word("debugger"),this.semicolon()}function Gae(e){this.tokenChar(44,e),this.newline()}function Qae(e,t){if(e.declare)this.word("declare"),this.space();let{kind:r}=e;switch(r){case"await using":this.word("await"),this.space();case"using":this.word("using",!0);break;default:this.word(r)}this.space();let s=!1;if(!_ae(t)){for(let i of e.declarations)if(i.init){s=!0;break}}if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,s?Gae:void 0),t!=null)switch(t.type){case"ForStatement":if(t.init===e)return;break;case"ForInStatement":case"ForOfStatement":if(t.left===e)return}this.semicolon()}function Zae(e){if(this.print(e.id),e.definite)this.tokenChar(33);if(this.print(e.id.typeAnnotation),e.init)this.space(),this.tokenChar(61),this.space(),this.print(e.init)}});var ws=A(function(Kd){Object.defineProperty(Kd,"__esModule",{value:!0});Kd.ArrowFunctionExpression=Aoe;Kd.FunctionDeclaration=Kd.FunctionExpression=Poe;Kd._functionHead=qd;Kd._methodHead=Eoe;Kd._param=Rd;Kd._parameters=jd;Kd._params=Vr;Kd._predicate=Za;Kd._shouldPrintArrowParamsParens=Ud;var Soe=ae(),goe=tr(),{isIdentifier:boe}=Soe;function Vr(e,t,r,s){if(this.print(e.typeParameters),r!==void 0||s!==void 0){let i=voe.call(this,r,s);if(i)this.sourceIdentifierName(i.name,i.pos)}this.tokenChar(40),jd.call(this,e.params,41),this.print(e.returnType,t),this._noLineTerminator=t}function jd(e,t){let r=this.enterDelimited(),s=this.shouldPrintTrailingComma(t),i=e.length;for(let n=0;n<i;n++)if(Rd.call(this,e[n]),s||n<i-1)this.tokenChar(44,n),this.space();this.tokenChar(t),this._noLineTerminatorAfterNode=r}function Rd(e){if(this.printJoin(e.decorators,void 0,void 0,void 0,void 0,!0),this.print(e,void 0,!0),e.optional)this.tokenChar(63);this.print(e.typeAnnotation,void 0,!0)}function Eoe(e){let{kind:t,key:r}=e;if(t==="get"||t==="set")this.word(t),this.space();if(e.async)this.word("async",!0),this.space();if(t==="method"||t==="init"){if(e.generator)this.tokenChar(42)}if(e.computed)this.tokenChar(91),this.print(r),this.tokenChar(93);else this.print(r);if(e.optional)this.tokenChar(63);if(this._buf._map)Vr.call(this,e,!1,e.computed&&e.key.type!=="StringLiteral"?void 0:e.key);else Vr.call(this,e,!1)}function Za(e,t){if(e.predicate){if(!e.returnType)this.tokenChar(58);this.space(),this.print(e.predicate,t)}}function qd(e,t,r){if(e.async){if(this.word("async"),!this.format.preserveFormat)this._innerCommentsState=0;this.space()}if(this.word("function"),e.generator){if(!this.format.preserveFormat)this._innerCommentsState=0;this.tokenChar(42)}if(this.space(),e.id)this.print(e.id);if(this._buf._map)Vr.call(this,e,!1,e.id,t);else Vr.call(this,e,!1);if(r)Za.call(this,e)}function Poe(e,t){qd.call(this,e,t,!0),this.space(),this.print(e.body)}function Aoe(e,t){if(e.async)this.word("async",!0),this.space();if(Ud.call(this,e))Vr.call(this,e,!0,void 0,this._buf._map?t:void 0);else this.print(e.params[0],!0);Za.call(this,e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=goe.TokenContext.arrowBody,this.print(e.body)}function Ud(e){var t,r;if(e.params.length!==1)return!0;if(e.typeParameters||e.returnType||e.predicate)return!0;let s=e.params[0];if(!boe(s)||s.typeAnnotation||s.optional||(t=s.leadingComments)!=null&&t.length||(r=s.trailingComments)!=null&&r.length)return!0;if(this.tokenMap){if(e.loc==null)return!0;if(this.tokenMap.findMatching(e,"(")!==null)return!0;let i=this.tokenMap.findMatching(e,"=>");if((i==null?void 0:i.loc)==null)return!0;return i.loc.start.line!==e.loc.start.line}if(this.format.retainLines)return!0;return!1}function voe(e,t){let r=e;if(!r&&t){let l=t.type;if(l==="VariableDeclarator")r=t.id;else if(l==="AssignmentExpression"||l==="AssignmentPattern")r=t.left;else if(l==="ObjectProperty"||l==="ClassProperty"){if(!t.computed||t.key.type==="StringLiteral")r=t.key}else if(l==="ClassPrivateProperty"||l==="ClassAccessorProperty")r=t.key}if(!r)return;let s;if(r.type==="Identifier"){var i,n;s={pos:(i=r.loc)==null?void 0:i.start,name:((n=r.loc)==null?void 0:n.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;s={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;s={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return s}});var to=A(function(Hd){Object.defineProperty(Hd,"__esModule",{value:!0});Hd.TSAnyKeyword=Hoe;Hd.TSArrayType=mle;Hd.TSAsExpression=Lle;Hd.TSBigIntKeyword=zoe;Hd.TSBooleanKeyword=ele;Hd.TSCallSignatureDeclaration=Yoe;Hd.TSInterfaceHeritage=Hd.TSClassImplements=Ole;Hd.TSConditionalType=Ele;Hd.TSConstructSignatureDeclaration=Joe;Hd.TSConstructorType=cle;Hd.TSDeclareFunction=Uoe;Hd.TSDeclareMethod=Koe;Hd.TSEnumBody=$d;Hd.TSEnumDeclaration=jle;Hd.TSEnumMember=Rle;Hd.TSExportAssignment=Wle;Hd.TSExternalModuleReference=Yle;Hd.TSFunctionType=ule;Hd.TSImportEqualsDeclaration=Vle;Hd.TSImportType=Kle;Hd.TSIndexSignature=$oe;Hd.TSIndexedAccessType=Cle;Hd.TSInferType=Ple;Hd.TSInstantiationExpression=Fle;Hd.TSInterfaceBody=kle;Hd.TSInterfaceDeclaration=_le;Hd.TSIntersectionType=ble;Hd.TSIntrinsicKeyword=ole;Hd.TSLiteralType=Nle;Hd.TSMappedType=Ile;Hd.TSMethodSignature=Xoe;Hd.TSModuleBlock=Ule;Hd.TSModuleDeclaration=qle;Hd.TSNamedTupleMember=Sle;Hd.TSNamespaceExportDeclaration=Xle;Hd.TSNeverKeyword=ale;Hd.TSNonNullExpression=Jle;Hd.TSNullKeyword=nle;Hd.TSNumberKeyword=Qoe;Hd.TSObjectKeyword=Zoe;Hd.TSOptionalType=Tle;Hd.TSParameterProperty=qoe;Hd.TSParenthesizedType=Ale;Hd.TSPropertySignature=Woe;Hd.TSQualifiedName=Voe;Hd.TSRestType=xle;Hd.TSSatisfiesExpression=Mle;Hd.TSStringKeyword=tle;Hd.TSSymbolKeyword=rle;Hd.TSTemplateLiteralType=wle;Hd.TSThisType=lle;Hd.TSTupleType=yle;Hd.TSTypeAliasDeclaration=Dle;Hd.TSTypeAnnotation=Foe;Hd.TSTypeAssertion=Ble;Hd.TSTypeLiteral=dle;Hd.TSTypeOperator=vle;Hd.TSTypeParameter=Roe;Hd.TSTypeParameterDeclaration=Hd.TSTypeParameterInstantiation=joe;Hd.TSTypePredicate=fle;Hd.TSTypeQuery=hle;Hd.TSTypeReference=ple;Hd.TSUndefinedKeyword=ile;Hd.TSUnionType=gle;Hd.TSUnknownKeyword=Goe;Hd.TSVoidKeyword=sle;Hd._tsPrintClassMemberModifiers=$le;var Ns=ws(),Moe=ro(),Boe=Ga();function Foe(e,t){if(this.token((t.type==="TSFunctionType"||t.type==="TSConstructorType")&&t.typeAnnotation===e?"=>":":"),this.space(),e.optional)this.tokenChar(63);this.print(e.typeAnnotation)}function joe(e,t){this.tokenChar(60);let r=t.type==="ArrowFunctionExpression"&&e.params.length===1;if(this.tokenMap&&e.start!=null&&e.end!=null)r&&(r=!!this.tokenMap.find(e,(s)=>this.tokenMap.matchesOriginal(s,","))),r||(r=this.shouldPrintTrailingComma(">"));this.printList(e.params,r),this.tokenChar(62)}function Roe(e){if(e.const)this.word("const"),this.space();if(e.in)this.word("in"),this.space();if(e.out)this.word("out"),this.space();if(this.word(e.name),e.constraint)this.space(),this.word("extends"),this.space(),this.print(e.constraint);if(e.default)this.space(),this.tokenChar(61),this.space(),this.print(e.default)}function qoe(e){if(e.accessibility)this.word(e.accessibility),this.space();if(e.readonly)this.word("readonly"),this.space();Ns._param.call(this,e.parameter)}function Uoe(e,t){if(e.declare)this.word("declare"),this.space();Ns._functionHead.call(this,e,t,!1),this.semicolon()}function Koe(e){Moe._classMethodHead.call(this,e),this.semicolon()}function Voe(e){this.print(e.left),this.tokenChar(46),this.print(e.right)}function Yoe(e){eo.call(this,e),Os(this,e)}function Os(e,t){if(!e.tokenMap||!t.start||!t.end){e.semicolon();return}if(e.tokenMap.endMatches(t,","))e.token(",");else if(e.tokenMap.endMatches(t,";"))e.semicolon()}function Joe(e){this.word("new"),this.space(),eo.call(this,e),Os(this,e)}function Woe(e){let{readonly:t}=e;if(t)this.word("readonly"),this.space();Jd.call(this,e),this.print(e.typeAnnotation),Os(this,e)}function Jd(e){if(e.computed)this.tokenChar(91);if(this.print(e.key),e.computed)this.tokenChar(93);if(e.optional)this.tokenChar(63)}function Xoe(e){let{kind:t}=e;if(t==="set"||t==="get")this.word(t),this.space();Jd.call(this,e),eo.call(this,e),Os(this,e)}function $oe(e){let{readonly:t,static:r}=e;if(r)this.word("static"),this.space();if(t)this.word("readonly"),this.space();this.tokenChar(91),Ns._parameters.call(this,e.parameters,93),this.print(e.typeAnnotation),Os(this,e)}function Hoe(){this.word("any")}function zoe(){this.word("bigint")}function Goe(){this.word("unknown")}function Qoe(){this.word("number")}function Zoe(){this.word("object")}function ele(){this.word("boolean")}function tle(){this.word("string")}function rle(){this.word("symbol")}function sle(){this.word("void")}function ile(){this.word("undefined")}function nle(){this.word("null")}function ale(){this.word("never")}function ole(){this.word("intrinsic")}function lle(){this.word("this")}function ule(e){Wd.call(this,e)}function cle(e){if(e.abstract)this.word("abstract"),this.space();this.word("new"),this.space(),Wd.call(this,e)}function Wd(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),Ns._parameters.call(this,r,41),this.space();let s=e.typeAnnotation;this.print(s)}function ple(e){let t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)}function fle(e){if(e.asserts)this.word("asserts"),this.space();if(this.print(e.parameterName),e.typeAnnotation)this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation)}function hle(e){this.word("typeof"),this.space(),this.print(e.exprName);let t=e.typeParameters;if(t)this.print(t)}function dle(e){wi(this,e,()=>this.printJoin(e.members,!0,!0,void 0,void 0,!0))}function mle(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function yle(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function Tle(e){this.print(e.typeAnnotation),this.tokenChar(63)}function xle(e){this.token("..."),this.print(e.typeAnnotation)}function Sle(e){if(this.print(e.label),e.optional)this.tokenChar(63);this.tokenChar(58),this.space(),this.print(e.elementType)}function gle(e){Xd(this,e,"|")}function ble(e){Xd(this,e,"&")}function Xd(e,t,r){var s;let i=0;if((s=e.tokenMap)!=null&&s.startMatches(t,r))i=1,e.token(r);e.printJoin(t.types,void 0,void 0,function(n){this.space(),this.token(r,void 0,n+i),this.space()})}function Ele(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)}function Ple(e){this.word("infer"),this.print(e.typeParameter)}function Ale(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)}function vle(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)}function Cle(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function Ile(e){let{nameType:t,optional:r,readonly:s,typeAnnotation:i}=e;this.tokenChar(123);let n=this.enterDelimited();if(this.space(),s)Vd(this,s),this.word("readonly"),this.space();if(this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint,void 0,!0),t)this.space(),this.word("as"),this.space(),this.print(t,void 0,!0);if(this.tokenChar(93),r)Vd(this,r),this.tokenChar(63);if(i)this.tokenChar(58),this.space(),this.print(i,void 0,!0);this.space(),this._noLineTerminatorAfterNode=n,this.tokenChar(125)}function Vd(e,t){if(t!==!0)e.token(t)}function wle(e){Boe._printTemplate.call(this,e,e.types)}function Nle(e){this.print(e.literal)}function Ole(e){this.print(e.expression),this.print(e.typeArguments)}function _le(e){let{declare:t,id:r,typeParameters:s,extends:i,body:n}=e;if(t)this.word("declare"),this.space();if(this.word("interface"),this.space(),this.print(r),this.print(s),i!=null&&i.length)this.space(),this.word("extends"),this.space(),this.printList(i);this.space(),this.print(n)}function kle(e){wi(this,e,()=>this.printJoin(e.body,!0,!0,void 0,void 0,!0))}function Dle(e){let{declare:t,id:r,typeParameters:s,typeAnnotation:i}=e;if(t)this.word("declare"),this.space();this.word("type"),this.space(),this.print(r),this.print(s),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon()}function Lle(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("as"),this.space(),this.print(r)}function Mle(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("satisfies"),this.space(),this.print(r)}function Ble(e){let{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r)}function Fle(e){this.print(e.expression),this.print(e.typeParameters)}function jle(e){let{declare:t,const:r,id:s}=e;if(t)this.word("declare"),this.space();if(r)this.word("const"),this.space();this.word("enum"),this.space(),this.print(s),this.space(),$d.call(this,e)}function $d(e){wi(this,e,()=>{var t;return this.printList(e.members,(t=this.shouldPrintTrailingComma("}"))!=null?t:!0,!0,!0,void 0,!0)})}function Rle(e){let{id:t,initializer:r}=e;if(this.print(t),r)this.space(),this.tokenChar(61),this.space(),this.print(r)}function qle(e){let{declare:t,id:r,kind:s}=e;if(t)this.word("declare"),this.space();if(!e.global)this.word(s!=null?s:r.type==="Identifier"?"namespace":"module"),this.space();if(this.print(r),!e.body){this.semicolon();return}let i=e.body;while(i.type==="TSModuleDeclaration")this.tokenChar(46),this.print(i.id),i=i.body;this.space(),this.print(i)}function Ule(e){wi(this,e,()=>this.printSequence(e.body,!0,!0))}function Kle(e){let{qualifier:t,options:r}=e;if(this.word("import"),this.tokenChar(40),this.print(e.argument),r)this.tokenChar(44),this.print(r);if(this.tokenChar(41),t)this.tokenChar(46),this.print(t);let s=e.typeParameters;if(s)this.print(s)}function Vle(e){let{id:t,moduleReference:r}=e;if(e.isExport)this.word("export"),this.space();this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(r),this.semicolon()}function Yle(e){this.token("require("),this.print(e.expression),this.tokenChar(41)}function Jle(e){this.print(e.expression),this.tokenChar(33),this.setLastChar(33)}function Wle(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()}function Xle(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()}function eo(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),Ns._parameters.call(this,r,41);let s=e.typeAnnotation;this.print(s)}function $le(e){let t=e.type==="ClassPrivateProperty",r=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";if(Yd(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]),e.static)this.word("static"),this.space();Yd(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"])}function wi(e,t,r){e.token("{");let s=e.enterDelimited();r(),e._noLineTerminatorAfterNode=s,e.rightBrace(t)}function Yd(e,t,r){var s;let i=new Set;for(let n of r)if(n)i.add(n);(s=e.tokenMap)==null||s.find(t,(n)=>{if(i.has(n.value))return e.token(n.value),e.space(),i.delete(n.value),i.size===0;return!1});for(let n of i)e.word(n),e.space()}});var so=A(function(Zd){Object.defineProperty(Zd,"__esModule",{value:!0});Zd.ExportAllDeclaration=bce;Zd.ExportDefaultDeclaration=Pce;Zd.ExportDefaultSpecifier=xce;Zd.ExportNamedDeclaration=Ece;Zd.ExportNamespaceSpecifier=gce;Zd.ExportSpecifier=Sce;Zd.ImportAttribute=vce;Zd.ImportDeclaration=Ace;Zd.ImportDefaultSpecifier=Tce;Zd.ImportExpression=Ice;Zd.ImportNamespaceSpecifier=Cce;Zd.ImportSpecifier=yce;Zd._printAttributes=Ni;var lce=ae(),uce=tr(),cce=Ci(),{isClassDeclaration:pce,isExportDefaultSpecifier:fce,isExportNamespaceSpecifier:hce,isImportDefaultSpecifier:dce,isImportNamespaceSpecifier:mce,isStatement:Gd}=lce;function yce(e){if(e.importKind==="type"||e.importKind==="typeof")this.word(e.importKind),this.space();if(this.print(e.imported),e.local&&e.local.name!==e.imported.name)this.space(),this.word("as"),this.space(),this.print(e.local)}function Tce(e){this.print(e.local)}function xce(e){this.print(e.exported)}function Sce(e){if(e.exportKind==="type")this.word("type"),this.space();if(this.print(e.local),e.exported&&e.local.name!==e.exported.name)this.space(),this.word("as"),this.space(),this.print(e.exported)}function gce(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var zd=!1;function Ni(e,t){var r;let{attributes:s}=e;var{assertions:i}=e;let{importAttributesKeyword:n}=this.format;if(s&&!n&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!zd)zd=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n');let a=n==="assert"||!n&&i;if(this.word(a?"assert":"with"),this.space(),!a&&(n==="with-legacy"||!n&&(r=e.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(s||i);return}let o=t?1:0;this.token("{",void 0,o),this.space(),this.printList(s||i,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,o)}function bce(e){var t,r;if(this.word("export"),this.space(),e.exportKind==="type")this.word("type"),this.space();if(this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length)this.print(e.source,!0),this.space(),Ni.call(this,e,!1);else this.print(e.source);this.semicolon()}function Qd(e,t){if(pce(t.declaration)&&cce._shouldPrintDecoratorsBeforeExport.call(e,t))e.printJoin(t.declaration.decorators)}function Ece(e){if(Qd(this,e),this.word("export"),this.space(),e.declaration){let s=e.declaration;if(this.print(s),!Gd(s))this.semicolon()}else{if(e.exportKind==="type")this.word("type"),this.space();let s=e.specifiers.slice(0),i=!1;for(;;){let a=s[0];if(fce(a)||hce(a)){if(i=!0,this.print(s.shift()),s.length)this.tokenChar(44),this.space()}else break}let n=!1;if(s.length||!s.length&&!i){if(n=!0,this.tokenChar(123),s.length)this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space();this.tokenChar(125)}if(e.source){var t,r;if(this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length)this.print(e.source,!0),this.space(),Ni.call(this,e,n);else this.print(e.source)}this.semicolon()}}function Pce(e){Qd(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=uce.TokenContext.exportDefault;let t=e.declaration;if(this.print(t),!Gd(t))this.semicolon()}function Ace(e){var t,r;this.word("import"),this.space();let s=e.importKind==="type"||e.importKind==="typeof";if(s)this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space();else if(e.module)this.noIndentInnerCommentsHere(),this.word("module"),this.space();else if(e.phase)this.noIndentInnerCommentsHere(),this.word(e.phase),this.space();let i=e.specifiers.slice(0),n=!!i.length;while(n){let o=i[0];if(dce(o)||mce(o)){if(this.print(i.shift()),i.length)this.tokenChar(44),this.space()}else break}let a=!1;if(i.length)a=!0,this.tokenChar(123),this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125);else if(s&&!n)a=!0,this.tokenChar(123),this.tokenChar(125);if(n||s)this.space(),this.word("from"),this.space();if((t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length)this.print(e.source,!0),this.space(),Ni.call(this,e,a);else this.print(e.source);this.semicolon()}function vce(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function Cce(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function Ice(e){if(this.word("import"),e.phase)this.tokenChar(46),this.word(e.phase);this.tokenChar(40);let t=this.shouldPrintTrailingComma(")");if(this.print(e.source),e.options!=null)this.tokenChar(44),this.space(),this.print(e.options);if(t)this.tokenChar(44);this.rightParens(e)}});var sm=A(function(VLe,rm){var em={},Uce=em.hasOwnProperty,tm=(e,t)=>{for(let r in e)if(Uce.call(e,r))t(r,e[r])},Kce=(e,t)=>{if(!t)return e;return tm(t,(r,s)=>{e[r]=s}),e},Vce=(e,t)=>{let r=e.length,s=-1;while(++s<r)t(e[s])},Oi=(e)=>"\\u"+("0000"+e).slice(-4),_s=(e,t)=>{let r=e.toString(16);if(t)return r;return r.toUpperCase()},ks=em.toString,Yce=Array.isArray,Jce=(e)=>typeof Buffer==="function"&&Buffer.isBuffer(e),Wce=(e)=>ks.call(e)=="[object Object]",Xce=(e)=>typeof e=="string"||ks.call(e)=="[object String]",$ce=(e)=>typeof e=="number"||ks.call(e)=="[object Number]",io=(e)=>typeof e=="bigint",Hce=(e)=>typeof e=="function",zce=(e)=>ks.call(e)=="[object Map]",Gce=(e)=>ks.call(e)=="[object Set]",Qce={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},Zce=/[\\\b\f\n\r\t]/,epe=/[0-9]/,tpe=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,rpe=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,spe=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,rr=(e,t)=>{let r=()=>{u=l,++t.indentLevel,l=t.indent.repeat(t.indentLevel)},s={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},i=t&&t.json;if(i)s.quotes="double",s.wrap=!0;if(t=Kce(s,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick")t.quotes="single";let n=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,o=t.lowercaseHex,l=t.indent.repeat(t.indentLevel),u="",p=t.__inline1__,m=t.__inline2__,x=a?"":`
24
- `,g,E=!0,I=t.numbers=="binary",b=t.numbers=="octal",C=t.numbers=="decimal",N=t.numbers=="hexadecimal";if(i&&e&&Hce(e.toJSON))e=e.toJSON();if(!Xce(e)){if(zce(e)){if(e.size==0)return"new Map()";if(!a)t.__inline1__=!0,t.__inline2__=!1;return"new Map("+rr(Array.from(e),t)+")"}if(Gce(e)){if(e.size==0)return"new Set()";return"new Set("+rr(Array.from(e),t)+")"}if(Jce(e)){if(e.length==0)return"Buffer.from([])";return"Buffer.from("+rr(Array.from(e),t)+")"}if(Yce(e)){if(g=[],t.wrap=!0,p)t.__inline1__=!1,t.__inline2__=!0;if(!m)r();if(Vce(e,(j)=>{if(E=!1,m)t.__inline2__=!1;g.push((a||m?"":l)+rr(j,t))}),E)return"[]";if(m)return"["+g.join(", ")+"]";return"["+x+g.join(","+x)+x+(a?"":u)+"]"}else if($ce(e)||io(e)){if(i)return JSON.stringify(Number(e));let j;if(C)j=String(e);else if(N){let V=e.toString(16);if(!o)V=V.toUpperCase();j="0x"+V}else if(I)j="0b"+e.toString(2);else if(b)j="0o"+e.toString(8);if(io(e))return j+"n";return j}else if(io(e)){if(i)return JSON.stringify(Number(e));return e+"n"}else if(!Wce(e)){if(i)return JSON.stringify(e)||"null";return String(e)}else{if(g=[],t.wrap=!0,r(),tm(e,(j,V)=>{E=!1,g.push((a?"":l)+rr(j,t)+":"+(a?"":" ")+rr(V,t))}),E)return"{}";return"{"+x+g.join(","+x)+x+(a?"":u)+"}"}}let z=t.escapeEverything?rpe:spe;if(g=e.replace(z,(j,V,ie,ge,ke,Fe)=>{if(V){if(t.minimal)return V;let st=V.charCodeAt(0),at=V.charCodeAt(1);if(t.es6){let it=(st-55296)*1024+at-56320+65536;return"\\u{"+_s(it,o)+"}"}return Oi(_s(st,o))+Oi(_s(at,o))}if(ie)return Oi(_s(ie.charCodeAt(0),o));if(j=="\x00"&&!i&&!epe.test(Fe.charAt(ke+1)))return"\\0";if(ge){if(ge==n||t.escapeEverything)return"\\"+ge;return ge}if(Zce.test(j))return Qce[j];if(t.minimal&&!tpe.test(j))return j;let Je=_s(j.charCodeAt(0),o);if(i||Je.length>2)return Oi(Je);return"\\x"+("00"+Je).slice(-2)}),n=="`")g=g.replace(/\$\{/g,"\\${");if(t.isScriptContext)g=g.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,i?"\\u003C!--":"\\x3C!--");if(t.wrap)g=n+g+n;return g};rr.version="3.0.2";rm.exports=rr});var ki=A(function(am){Object.defineProperty(am,"__esModule",{value:!0});am.ArgumentPlaceholder=upe;am.ArrayPattern=am.ArrayExpression=dpe;am.BigIntLiteral=gpe;am.BooleanLiteral=ype;am.Identifier=lpe;am.NullLiteral=Tpe;am.NumericLiteral=xpe;am.ObjectPattern=am.ObjectExpression=ppe;am.ObjectMethod=fpe;am.ObjectProperty=hpe;am.PipelineBareFunction=Ppe;am.PipelinePrimaryTopicReference=Ape;am.PipelineTopicExpression=Epe;am.RegExpLiteral=mpe;am.SpreadElement=am.RestElement=cpe;am.StringLiteral=Spe;am.TopicReference=bpe;am.VoidPattern=vpe;am._getRawIdentifier=ope;var ipe=ae(),nm=sm(),npe=ws(),{isAssignmentPattern:ape,isIdentifier:no}=ipe,_i="";function ope(e){let{name:t}=e,r=this.tokenMap.find(e,(s)=>s.value===t);if(r)return _i=this._originalCode.slice(r.start,r.end),_i;return _i=e.name}function lpe(e){if(this._buf._map){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name)}this.word(this.tokenMap?_i:e.name)}function upe(){this.tokenChar(63)}function cpe(e){this.token("..."),this.print(e.argument)}function ppe(e){let t=e.properties;if(this.tokenChar(123),t.length){let r=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0,void 0,!0),this.space(),this._noLineTerminatorAfterNode=r}this.rightBrace(e)}function fpe(e){this.printJoin(e.decorators),npe._methodHead.call(this,e),this.space(),this.print(e.body)}function hpe(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(ape(e.value)&&no(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}if(this.print(e.key),e.shorthand&&no(e.key)&&no(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)}function dpe(e){let t=e.elements,r=t.length;this.tokenChar(91);let s=this.enterDelimited();for(let i=0;i<t.length;i++){let n=t[i];if(n){if(i>0)this.space();if(this.print(n,void 0,!0),i<r-1||this.shouldPrintTrailingComma("]"))this.tokenChar(44,i)}else this.tokenChar(44,i)}this._noLineTerminatorAfterNode=s,this.tokenChar(93)}function mpe(e){this.word(`/${e.pattern}/${e.flags}`,!1)}function ype(e){this.word(e.value?"true":"false")}function Tpe(){this.word("null")}function xpe(e){let t=this.getPossibleRaw(e),r=this.format.jsescOption,s=e.value,i=s+"";if(r.numbers)this.number(nm(s,r),s);else if(t==null)this.number(i,s);else if(this.format.minified)this.number(t.length<i.length?t:i,s);else this.number(t,s)}function Spe(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let r=nm(e.value,this.format.jsescOption);this.token(r)}function gpe(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"n")}var im=new Set(["^^","@@","^","%","#"]);function bpe(){let{topicToken:e}=this.format;if(im.has(e))this.token(e);else{let t=JSON.stringify(e),r=Array.from(im,(s)=>JSON.stringify(s));throw Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}}function Epe(e){this.print(e.expression)}function Ppe(e){this.print(e.callee)}function Ape(){this.tokenChar(35)}function vpe(){this.word("void")}});var lo=A(function(Fi){Object.defineProperty(Fi,"__esModule",{value:!0});Fi.AnyTypeAnnotation=Hpe;Fi.ArrayTypeAnnotation=zpe;Fi.BooleanLiteralTypeAnnotation=Qpe;Fi.BooleanTypeAnnotation=Gpe;Fi.DeclareClass=efe;Fi.DeclareExportAllDeclaration=pfe;Fi.DeclareExportDeclaration=cfe;Fi.DeclareFunction=tfe;Fi.DeclareInterface=ife;Fi.DeclareModule=nfe;Fi.DeclareModuleExports=afe;Fi.DeclareOpaqueType=lfe;Fi.DeclareTypeAlias=ofe;Fi.DeclareVariable=ufe;Fi.DeclaredPredicate=sfe;Fi.EmptyTypeAnnotation=Ofe;Fi.EnumBooleanBody=hfe;Fi.EnumBooleanMember=xfe;Fi.EnumDeclaration=ffe;Fi.EnumDefaultedMember=Tfe;Fi.EnumNumberBody=dfe;Fi.EnumNumberMember=Sfe;Fi.EnumStringBody=mfe;Fi.EnumStringMember=gfe;Fi.EnumSymbolBody=yfe;Fi.ExistsTypeAnnotation=Efe;Fi.FunctionTypeAnnotation=Pfe;Fi.FunctionTypeParam=Afe;Fi.IndexedAccessType=Zfe;Fi.InferredPredicate=rfe;Fi.InterfaceDeclaration=lm;Fi.GenericTypeAnnotation=Fi.ClassImplements=Fi.InterfaceExtends=vfe;Fi.InterfaceTypeAnnotation=Ife;Fi.IntersectionTypeAnnotation=wfe;Fi.MixedTypeAnnotation=Nfe;Fi.NullLiteralTypeAnnotation=Zpe;Fi.NullableTypeAnnotation=_fe;Object.defineProperty(Fi,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return om.NumericLiteral}});Fi.NumberTypeAnnotation=kfe;Fi.ObjectTypeAnnotation=qfe;Fi.ObjectTypeCallProperty=Kfe;Fi.ObjectTypeIndexer=Vfe;Fi.ObjectTypeInternalSlot=Ufe;Fi.ObjectTypeProperty=Yfe;Fi.ObjectTypeSpreadProperty=Jfe;Fi.OpaqueType=cm;Fi.OptionalIndexedAccessType=ehe;Fi.QualifiedTypeIdentifier=Wfe;Object.defineProperty(Fi,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return om.StringLiteral}});Fi.StringTypeAnnotation=Dfe;Fi.SymbolTypeAnnotation=Xfe;Fi.ThisTypeAnnotation=Lfe;Fi.TupleTypeAnnotation=Mfe;Fi.TypeAlias=um;Fi.TypeAnnotation=Ffe;Fi.TypeCastExpression=zfe;Fi.TypeParameter=Rfe;Fi.TypeParameterDeclaration=Fi.TypeParameterInstantiation=jfe;Fi.TypeofTypeAnnotation=Bfe;Fi.UnionTypeAnnotation=Hfe;Fi.Variance=Gfe;Fi.VoidTypeAnnotation=Qfe;Fi._interfaceish=oo;Fi._variance=Bi;var Jpe=ae(),Wpe=so(),Xpe=tr(),om=ki(),{isDeclareExportDeclaration:Di,isStatement:$pe}=Jpe;function Hpe(){this.word("any")}function zpe(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function Gpe(){this.word("boolean")}function Qpe(e){this.word(e.value?"true":"false")}function Zpe(){this.word("null")}function efe(e,t){if(!Di(t))this.word("declare"),this.space();this.word("class"),this.space(),oo.call(this,e)}function tfe(e,t){if(!Di(t))this.word("declare"),this.space();if(this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate)this.space(),this.print(e.predicate);this.semicolon()}function rfe(){this.tokenChar(37),this.word("checks")}function sfe(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)}function ife(e){this.word("declare"),this.space(),lm.call(this,e)}function nfe(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)}function afe(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)}function ofe(e){this.word("declare"),this.space(),um.call(this,e)}function lfe(e,t){if(!Di(t))this.word("declare"),this.space();cm.call(this,e)}function ufe(e,t){if(!Di(t))this.word("declare"),this.space();this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()}function cfe(e){if(this.word("declare"),this.space(),this.word("export"),this.space(),e.default)this.word("default"),this.space();bfe.call(this,e)}function pfe(e){this.word("declare"),this.space(),Wpe.ExportAllDeclaration.call(this,e)}function ffe(e){let{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r)}function Li(e,t,r){if(r)e.space(),e.word("of"),e.space(),e.word(t);e.space()}function Mi(e,t){let{members:r}=t;e.token("{"),e.indent(),e.newline();for(let s of r)e.print(s),e.newline();if(t.hasUnknownMembers)e.token("..."),e.newline();e.dedent(),e.token("}")}function hfe(e){let{explicitType:t}=e;Li(this,"boolean",t),Mi(this,e)}function dfe(e){let{explicitType:t}=e;Li(this,"number",t),Mi(this,e)}function mfe(e){let{explicitType:t}=e;Li(this,"string",t),Mi(this,e)}function yfe(e){Li(this,"symbol",!0),Mi(this,e)}function Tfe(e){let{id:t}=e;this.print(t),this.tokenChar(44)}function ao(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function xfe(e){ao(this,e)}function Sfe(e){ao(this,e)}function gfe(e){ao(this,e)}function bfe(e){if(e.declaration){let t=e.declaration;if(this.print(t),!$pe(t))this.semicolon()}else{if(this.tokenChar(123),e.specifiers.length)this.space(),this.printList(e.specifiers),this.space();if(this.tokenChar(125),e.source)this.space(),this.word("from"),this.space(),this.print(e.source);this.semicolon()}}function Efe(){this.tokenChar(42)}function Pfe(e,t){if(this.print(e.typeParameters),this.tokenChar(40),e.this){if(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),e.params.length||e.rest)this.tokenChar(44),this.space()}if(this.printList(e.params),e.rest){if(e.params.length)this.tokenChar(44),this.space();this.token("..."),this.print(e.rest)}this.tokenChar(41);let r=t==null?void 0:t.type;if(r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method))this.tokenChar(58);else this.space(),this.token("=>");this.space(),this.print(e.returnType)}function Afe(e){if(this.print(e.name),e.optional)this.tokenChar(63);if(e.name)this.tokenChar(58),this.space();this.print(e.typeAnnotation)}function vfe(e){this.print(e.id),this.print(e.typeParameters,!0)}function oo(e){var t;if(this.print(e.id),this.print(e.typeParameters),(t=e.extends)!=null&&t.length)this.space(),this.word("extends"),this.space(),this.printList(e.extends);if(e.type==="DeclareClass"){var r,s;if((r=e.mixins)!=null&&r.length)this.space(),this.word("mixins"),this.space(),this.printList(e.mixins);if((s=e.implements)!=null&&s.length)this.space(),this.word("implements"),this.space(),this.printList(e.implements)}this.space(),this.print(e.body)}function Bi(e){var t;let r=(t=e.variance)==null?void 0:t.kind;if(r!=null){if(r==="plus")this.tokenChar(43);else if(r==="minus")this.tokenChar(45)}}function lm(e){this.word("interface"),this.space(),oo.call(this,e)}function Cfe(e){this.space(),this.token("&",!1,e),this.space()}function Ife(e){var t;if(this.word("interface"),(t=e.extends)!=null&&t.length)this.space(),this.word("extends"),this.space(),this.printList(e.extends);this.space(),this.print(e.body)}function wfe(e){this.printJoin(e.types,void 0,void 0,Cfe)}function Nfe(){this.word("mixed")}function Ofe(){this.word("empty")}function _fe(e){this.tokenChar(63),this.print(e.typeAnnotation)}function kfe(){this.word("number")}function Dfe(){this.word("string")}function Lfe(){this.word("this")}function Mfe(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)}function Bfe(e){this.word("typeof"),this.space(),this.print(e.argument)}function um(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()}function Ffe(e,t){if(this.tokenChar(58),this.space(),t.type==="ArrowFunctionExpression")this.tokenContext|=Xpe.TokenContext.arrowFlowReturnType;else if(e.optional)this.tokenChar(63);this.print(e.typeAnnotation)}function jfe(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)}function Rfe(e){if(Bi.call(this,e),this.word(e.name),e.bound)this.print(e.bound);if(e.default)this.space(),this.tokenChar(61),this.space(),this.print(e.default)}function cm(e){if(this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype)this.tokenChar(58),this.space(),this.print(e.supertype);if(e.impltype)this.space(),this.tokenChar(61),this.space(),this.print(e.impltype);this.semicolon()}function qfe(e){if(e.exact)this.token("{|");else this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];if(t.length)this.newline(),this.space(),this.printJoin(t,!0,!0,()=>{if(t.length!==1||e.inexact)this.tokenChar(44),this.space()},!0),this.space();if(e.inexact){if(this.indent(),this.token("..."),t.length)this.newline();this.dedent()}if(e.exact)this.token("|}");else this.tokenChar(125)}function Ufe(e){if(e.static)this.word("static"),this.space();if(this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional)this.tokenChar(63);if(!e.method)this.tokenChar(58),this.space();this.print(e.value)}function Kfe(e){if(e.static)this.word("static"),this.space();this.print(e.value)}function Vfe(e){if(e.static)this.word("static"),this.space();if(Bi.call(this,e),this.tokenChar(91),e.id)this.print(e.id),this.tokenChar(58),this.space();this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)}function Yfe(e){if(e.proto)this.word("proto"),this.space();if(e.static)this.word("static"),this.space();if(e.kind==="get"||e.kind==="set")this.word(e.kind),this.space();if(Bi.call(this,e),this.print(e.key),e.optional)this.tokenChar(63);if(!e.method)this.tokenChar(58),this.space();this.print(e.value)}function Jfe(e){this.token("..."),this.print(e.argument)}function Wfe(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)}function Xfe(){this.word("symbol")}function $fe(e){this.space(),this.token("|",!1,e),this.space()}function Hfe(e){this.printJoin(e.types,void 0,void 0,$fe)}function zfe(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)}function Gfe(e){if(e.kind==="plus")this.tokenChar(43);else this.tokenChar(45)}function Qfe(){this.word("void")}function Zfe(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function ehe(e){if(this.print(e.objectType),e.optional)this.token("?.");this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}});var ro=A(function(fm){Object.defineProperty(fm,"__esModule",{value:!0});fm.ClassAccessorProperty=xde;fm.ClassBody=mde;fm.ClassExpression=fm.ClassDeclaration=dde;fm.ClassMethod=gde;fm.ClassPrivateMethod=bde;fm.ClassPrivateProperty=Sde;fm.ClassProperty=Tde;fm.StaticBlock=Ede;fm._classMethodHead=uo;var ude=ae(),cde=Ci(),ji=to(),pm=lo(),pde=ws(),{isExportDefaultDeclaration:fde,isExportNamedDeclaration:hde}=ude;function dde(e,t){if(!(fde(t)||hde(t))||!cde._shouldPrintDecoratorsBeforeExport.call(this,t))this.printJoin(e.decorators);if(e.declare)this.word("declare"),this.space();if(e.abstract)this.word("abstract"),this.space();if(this.word("class"),e.id)this.space(),this.print(e.id);if(this.print(e.typeParameters),e.superClass)this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters);if(e.implements)this.space(),this.word("implements"),this.space(),this.printList(e.implements);this.space(),this.print(e.body)}function mde(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else{let t=yde(this,e);t==null||t(-1);let r=this.enterDelimited();if(this.printJoin(e.body,!0,!0,t,!0,!0),this._noLineTerminatorAfterNode=r,!this.endsWith(10))this.newline();this.rightBrace(e)}}function yde(e,t){if(!e.tokenMap||t.start==null||t.end==null)return null;let r=e.tokenMap.getIndexes(t);if(!r)return null;let s=1,i=0,n=0,a=()=>{while(n<t.body.length&&t.body[n].start==null)n++};return a(),(o)=>{if(n<=o)n=o+1,a();let l=n===t.body.length?t.end:t.body[n].start,u;while(s<r.length&&e.tokenMap.matchesOriginal(u=e._tokens[r[s]],";")&&u.start<l)e.tokenChar(59,i++),s++}}function Tde(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;if(r)this.catchUp(r)}if(ji._tsPrintClassMemberModifiers.call(this,e),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else pm._variance.call(this,e),this.print(e.key);if(e.optional)this.tokenChar(63);if(e.definite)this.tokenChar(33);if(this.print(e.typeAnnotation),e.value)this.space(),this.tokenChar(61),this.space(),this.print(e.value);this.semicolon()}function xde(e){var t;this.printJoin(e.decorators);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;if(r)this.catchUp(r);if(ji._tsPrintClassMemberModifiers.call(this,e),this.word("accessor",!0),this.space(),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else pm._variance.call(this,e),this.print(e.key);if(e.optional)this.tokenChar(63);if(e.definite)this.tokenChar(33);if(this.print(e.typeAnnotation),e.value)this.space(),this.tokenChar(61),this.space(),this.print(e.value);this.semicolon()}function Sde(e){if(this.printJoin(e.decorators),ji._tsPrintClassMemberModifiers.call(this,e),this.print(e.key),e.optional)this.tokenChar(63);if(e.definite)this.tokenChar(33);if(this.print(e.typeAnnotation),e.value)this.space(),this.tokenChar(61),this.space(),this.print(e.value);this.semicolon()}function gde(e){uo.call(this,e),this.space(),this.print(e.body)}function bde(e){uo.call(this,e),this.space(),this.print(e.body)}function uo(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;if(r)this.catchUp(r)}ji._tsPrintClassMemberModifiers.call(this,e),pde._methodHead.call(this,e)}function Ede(e){if(this.word("static"),this.space(),this.tokenChar(123),e.body.length===0)this.tokenChar(125);else this.newline(),this.printSequence(e.body,!0),this.rightBrace(e)}});var dm=A(function(hm){Object.defineProperty(hm,"__esModule",{value:!0});hm.BlockStatement=Lde;hm.Directive=Mde;hm.DirectiveLiteral=jde;hm.File=kde;hm.InterpreterDirective=Rde;hm.Placeholder=qde;hm.Program=Dde;function kde(e){if(e.program)this.print(e.program.interpreter);this.print(e.program)}function Dde(e){var t;this.printInnerComments(!1);let r=(t=e.directives)==null?void 0:t.length;if(r){var s;let i=e.body.length?2:1;if(this.printSequence(e.directives,void 0,void 0,i),!((s=e.directives[r-1].trailingComments)!=null&&s.length))this.newline(i)}this.printSequence(e.body)}function Lde(e){var t;this.tokenChar(123);let r=this.enterDelimited(),s=(t=e.directives)==null?void 0:t.length;if(s){var i;let n=e.body.length?2:1;if(this.printSequence(e.directives,!0,!0,n),!((i=e.directives[s-1].trailingComments)!=null&&i.length))this.newline(n)}this.printSequence(e.body,!0,!0),this._noLineTerminatorAfterNode=r,this.rightBrace(e)}function Mde(e){this.print(e.value),this.semicolon()}var Bde=/(?:^|[^\\])(?:\\\\)*'/,Fde=/(?:^|[^\\])(?:\\\\)*"/;function jde(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let{value:r}=e;if(!Fde.test(r))this.token(`"${r}"`);else if(!Bde.test(r))this.token(`'${r}'`);else throw Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function Rde(e){this.token(`#!${e.value}`),this._newline()}function qde(e){if(this.token("%%"),this.print(e.name),this.token("%%"),e.expectedNode==="Statement")this.semicolon()}});var ym=A(function(mm){Object.defineProperty(mm,"__esModule",{value:!0});mm.JSXAttribute=$de;mm.JSXClosingElement=nme;mm.JSXClosingFragment=ume;mm.JSXElement=rme;mm.JSXEmptyExpression=ame;mm.JSXExpressionContainer=Zde;mm.JSXFragment=ome;mm.JSXIdentifier=Hde;mm.JSXMemberExpression=Gde;mm.JSXNamespacedName=zde;mm.JSXOpeningElement=ime;mm.JSXOpeningFragment=lme;mm.JSXSpreadAttribute=Qde;mm.JSXSpreadChild=eme;mm.JSXText=tme;function $de(e){if(this.print(e.name),e.value)this.tokenChar(61),this.print(e.value)}function Hde(e){this.word(e.name)}function zde(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)}function Gde(e){this.print(e.object),this.tokenChar(46),this.print(e.property)}function Qde(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)}function Zde(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)}function eme(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)}function tme(e){let t=this.getPossibleRaw(e);if(t!==void 0)this.token(t,!0);else this.token(e.value,!0)}function rme(e){let t=e.openingElement;if(this.print(t),t.selfClosing)return;this.indent();for(let r of e.children)this.print(r);this.dedent(),this.print(e.closingElement)}function sme(){this.space()}function ime(e){if(this.tokenChar(60),this.print(e.name),e.typeArguments)this.print(e.typeArguments);if(this.print(e.typeParameters),e.attributes.length>0)this.space(),this.printJoin(e.attributes,void 0,void 0,sme);if(e.selfClosing)this.space(),this.tokenChar(47);this.tokenChar(62)}function nme(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)}function ame(){this.printInnerComments()}function ome(e){this.print(e.openingFragment),this.indent();for(let t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)}function lme(){this.tokenChar(60),this.tokenChar(62)}function ume(){this.token("</"),this.tokenChar(62)}});var Tm=A(function(xe){Object.defineProperty(xe,"__esModule",{value:!0});var co=Ga();Object.keys(co).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===co[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return co[e]}})});var po=Ci();Object.keys(po).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===po[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return po[e]}})});var fo=Fd();Object.keys(fo).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===fo[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return fo[e]}})});var ho=ro();Object.keys(ho).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===ho[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return ho[e]}})});var mo=ws();Object.keys(mo).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===mo[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return mo[e]}})});var yo=so();Object.keys(yo).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===yo[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return yo[e]}})});var To=ki();Object.keys(To).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===To[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return To[e]}})});var xo=lo();Object.keys(xo).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===xo[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return xo[e]}})});var So=dm();Object.keys(So).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===So[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return So[e]}})});var go=ym();Object.keys(go).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===go[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return go[e]}})});var bo=to();Object.keys(bo).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===bo[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return bo[e]}})})});var Sm=A(function(xm){Object.defineProperty(xm,"__esModule",{value:!0});xm.DecimalLiteral=Ime;xm.Noop=vme;xm.RecordExpression=wme;xm.TSExpressionWithTypeArguments=Cme;xm.TupleExpression=Nme;function vme(){}function Cme(e){this.print(e.expression),this.print(e.typeParameters)}function Ime(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"m")}function wme(e){let t=e.properties,r,s;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",s="|}";else if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);else r="#{",s="}";if(this.token(r),t.length)this.space(),this.printList(t,this.shouldPrintTrailingComma(s),!0,!0),this.space();this.token(s)}function Nme(e){let t=e.elements,r=t.length,s,i;if(this.format.recordAndTupleSyntaxType==="bar")s="[|",i="|]";else if(this.format.recordAndTupleSyntaxType==="hash")s="#[",i="]";else throw Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(s);for(let n=0;n<t.length;n++){let a=t[n];if(a){if(n>0)this.space();if(this.print(a),n<r-1||this.shouldPrintTrailingComma(i))this.token(",",!1,n)}}this.token(i)}});var Eo=A(function(Am){Object.defineProperty(Am,"__esModule",{value:!0});Am.generatorInfosMap=void 0;var gm=Tm(),bm=Sm(),Em=Am.generatorInfosMap=new Map,Pm=0;for(let e of Object.keys(gm).sort()){if(e.startsWith("_"))continue;Em.set(e,[gm[e],Pm++,void 0])}for(let e of Object.keys(bm))Em.set(e,[bm[e],Pm++,void 0])});var tr=A(function(wm){Object.defineProperty(wm,"__esModule",{value:!0});wm.TokenContext=void 0;wm.isLastChild=Rme;wm.parentNeedsParens=jme;var Cm=Od(),Mme=ae(),Im=Eo(),{VISITOR_KEYS:Bme}=Mme,n2e=wm.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};for(let e of Object.keys(Cm)){let t=Cm[e];if(Im.generatorInfosMap.has(e))Im.generatorInfosMap.get(e)[2]=t}function Fme(e){let t=e;while(!0)switch(t.type){case"CallExpression":case"ImportExpression":case"OptionalCallExpression":case"OptionalMemberExpression":return!0;case"MemberExpression":t=t.object;break;case"TaggedTemplateExpression":t=t.tag;break;case"TSNonNullExpression":t=t.expression;break;default:return!1}}function jme(e,t,r){switch(r){case 112:if(t.callee===e)return Fme(e);break;case 42:return!Po(e)&&!(e.type==="CallExpression"&&Po(e.callee))&&e.type!=="ParenthesizedExpression"}return!1}function Po(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&Po(e.object);default:return!1}}function Rme(e,t){let r=Bme[e.type];for(let s=r.length-1;s>=0;s--){let i=e[r[s]];if(i===t)return!0;else if(Array.isArray(i)){let n=i.length-1;while(n>=0&&i[n]===null)n--;return n>=0&&i[n]===t}else if(i)return!1}return!1}});var Dm=A(function(_m){Object.defineProperty(_m,"__esModule",{value:!0});_m.TokenMap=void 0;var Kme=ae(),{traverseFast:Vme,VISITOR_KEYS:Yme}=Kme;class Om{constructor(e,t,r){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=t,this._source=r,Vme(e,(s)=>{let i=this._getTokensIndexesOfNode(s);if(i.length>0)this._nodesToTokenIndexes.set(s,i)}),this._tokensCache.clear()}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){let r=this._nodesToTokenIndexes.get(e);if(r)for(let s=0;s<r.length;s++){let i=r[s],n=this._tokens[i];if(t(n,i))return n}return null}findLastIndex(e,t){let r=this._nodesToTokenIndexes.get(e);if(r)for(let s=r.length-1;s>=0;s--){let i=r[s],n=this._tokens[i];if(t(n,i))return i}return-1}findMatching(e,t,r=0){let s=this._nodesToTokenIndexes.get(e);if(s){if(typeof t==="number")t=String.fromCharCode(t);let i=0,n=r;if(n>1){let a=this._nodesOccurrencesCountCache.get(e);if((a==null?void 0:a.test)===t&&a.count<n)i=a.i+1,r-=a.count+1}for(;i<s.length;i++){let a=this._tokens[s[i]];if(this.matchesOriginal(a,t)){if(r===0){if(n>0)this._nodesOccurrencesCountCache.set(e,{test:t,count:n,i});return a}r--}}}return null}matchesOriginal(e,t){if(e.end-e.start!==t.length)return!1;if(e.value!=null)return e.value===t;return this._source.startsWith(t,e.start)}startMatches(e,t){let r=this._nodesToTokenIndexes.get(e);if(!r)return!1;let s=this._tokens[r[0]];if(s.start!==e.start)return!1;return this.matchesOriginal(s,t)}endMatches(e,t){let r=this._nodesToTokenIndexes.get(e);if(!r)return!1;let s=this._tokens[r[r.length-1]];if(s.end!==e.end)return!1;return this.matchesOriginal(s,t)}_getTokensIndexesOfNode(e){var t;if(e.start==null||e.end==null)return[];let{first:r,last:s}=this._findTokensOfNode(e,0,this._tokens.length-1),i=r,n=Jme(e);if((e.type==="ExportNamedDeclaration"||e.type==="ExportDefaultDeclaration")&&((t=e.declaration)==null?void 0:t.type)==="ClassDeclaration")n.next();let a=[];for(let o of n){if(o==null)continue;if(o.start==null||o.end==null)continue;let l=this._findTokensOfNode(o,i,s),u=l.first;for(let p=i;p<u;p++)a.push(p);i=l.last+1}for(let o=i;o<=s;o++)a.push(o);return a}_findTokensOfNode(e,t,r){let s=this._tokensCache.get(e);if(s)return s;let i=this._findFirstTokenOfNode(e.start,t,r),n=this._findLastTokenOfNode(e.end,i,r);return this._tokensCache.set(e,{first:i,last:n}),{first:i,last:n}}_findFirstTokenOfNode(e,t,r){while(t<=r){let s=r+t>>1;if(e<this._tokens[s].start)r=s-1;else if(e>this._tokens[s].start)t=s+1;else return s}return t}_findLastTokenOfNode(e,t,r){while(t<=r){let s=r+t>>1;if(e<this._tokens[s].end)r=s-1;else if(e>this._tokens[s].end)t=s+1;else return s}return r}}_m.TokenMap=Om;function*Jme(e){if(e.type==="TemplateLiteral"){yield e.quasis[0];for(let r=1;r<e.quasis.length;r++)yield e.expressions[r-1],yield e.quasis[r];return}let t=Yme[e.type];for(let r of t){let s=e[r];if(!s)continue;if(Array.isArray(s))yield*s;else yield s}}});var Rm=A(function(Fm){Object.defineProperty(Fm,"__esModule",{value:!0});Fm.default=void 0;var Wme=Ed(),sr=tr(),Xme=Eo(),$me=ae(),Hme=Dm(),zme=ki(),{isExpression:Gme,isFunction:Qme,isStatement:Zme,isClassBody:eye,isTSInterfaceBody:tye,isTSEnumMember:rye}=$me,sye=/e/i,iye=/\.0+$/,Mm=/[\n\r\u2028\u2029]/,nye=/[\n\r\u2028\u2029]|\*\//;function Lm(e){return e.type==="CommentLine"||Mm.test(e.value)}class Bm{constructor(e,t,r=null,s=null){this.tokenContext=sr.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._currentTypeId=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._lastCommentLine=0,this._innerCommentsState=0,this._flags=0,this.tokenMap=null,this._boundGetRawIdentifier=null,this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=e,this._tokens=r,this._originalCode=s,this._indentRepeat=e.indent.style.length,this._inputMap=(t==null?void 0:t._inputMap)||null,this._buf=new Wme.default(t,e.indent.style[0]);let{preserveFormat:i,compact:n,concise:a,retainLines:o,retainFunctionParens:l}=e;if(i)this._flags|=1;if(n)this._flags|=2;if(a)this._flags|=4;if(o)this._flags|=8;if(l)this._flags|=16;if(e.auxiliaryCommentBefore||e.auxiliaryCommentAfter)this._flags|=32}enterDelimited(){let e=this._noLineTerminatorAfterNode;if(e!==null)this._noLineTerminatorAfterNode=null;return e}generate(e){if(this.format.preserveFormat)this.tokenMap=new Hme.TokenMap(e,this._tokens,this._originalCode),this._boundGetRawIdentifier=zme._getRawIdentifier.bind(this);return this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(e=this._flags){if(e&7)return;this._indent+=this._indentRepeat}dedent(e=this._flags){if(e&7)return;this._indent-=this._indentRepeat}semicolon(e=!1){let t=this._flags;if(t&32)this._maybeAddAuxComment();if(t&1){let r=this._currentNode;if(r.start!=null&&r.end!=null){if(!this.tokenMap.endMatches(r,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let s=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[s[s.length-1]].loc.start)}}if(e)this._appendChar(59);else this._queue(59);this._noLineTerminator=!1}rightBrace(e){if(this.format.minified)this._buf.removeLastSemicolon();this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){if(this._flags&3)return;if(e)this._space();else{let t=this.getLastChar(!0);if(t!==0&&t!==32&&t!==10)this._space()}}word(e,t=!1){this.tokenContext&=sr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e);let r=this._flags;if(r&32)this._maybeAddAuxComment();if(r&1)this._catchUpToCurrentToken(e);let s=this.getLastChar();if(s===-2||s===-3||s===47&&e.charCodeAt(0)===47)this._space();this._append(e,!1),this.setLastChar(-3),this._noLineTerminator=t}number(e,t){function r(s){if(s.length>2&&s.charCodeAt(0)===48){let i=s.charCodeAt(1);return i===98||i===111||i===120}return!1}if(this.word(e),Number.isInteger(t)&&!r(e)&&!sye.test(e)&&!iye.test(e)&&e.charCodeAt(e.length-1)!==46)this.setLastChar(-2)}token(e,t=!1,r=0,s=!1){this.tokenContext&=sr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,r);let i=this._flags;if(i&32)this._maybeAddAuxComment();if(i&1)this._catchUpToCurrentToken(e,r);if(s){let n=e.charCodeAt(0);if((n===45&&e==="--"||n===61)&&this.getLastChar()===33||n===43&&this.getLastChar()===43||n===45&&this.getLastChar()===45||n===46&&this.getLastChar()===-2)this._space()}this._append(e,t),this._noLineTerminator=!1}tokenChar(e,t=0){this.tokenContext&=sr.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,t);let r=this._flags;if(r&32)this._maybeAddAuxComment();if(r&1)this._catchUpToCurrentToken(e,t);if(e===43&&this.getLastChar()===43||e===45&&this.getLastChar()===45||e===46&&this.getLastChar()===-2)this._space();this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t=this._flags){if(e<=0)return;if(t&10)return;if(t&4){this.space();return}if(e>2)e=2;e-=this._buf.getNewlineCount();for(let r=0;r<e;r++)this._newline()}endsWith(e){return this.getLastChar(!0)===e}getLastChar(e){return this._buf.getLastChar(e)}setLastChar(e){this._buf._last=e}exactSource(e,t){if(!e){t();return}this._catchUp("start",e),this._buf.exactSource(e,t)}source(e,t){if(!t)return;this._catchUp(e,t),this._buf.source(e,t)}sourceWithOffset(e,t,r){if(!t||this.format.preserveFormat)return;this._catchUp(e,t),this._buf.sourceWithOffset(e,t,r)}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;let r=this._buf._sourcePosition;r.identifierNamePos=t,r.identifierName=e}_space(){this._queue(32)}_newline(){if(this._buf._queuedChar===32)this._buf._queuedChar=0;this._appendChar(10,!0)}_catchUpToCurrentToken(e,t=0){let r=this.tokenMap.findMatching(this._currentNode,e,t);if(r)this._catchUpTo(r.loc.start);if(this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine())this._appendChar(59,!0);this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(),this._buf.append(e,t)}_appendChar(e,t){if(!t)this._maybeIndent();this._buf.appendChar(e)}_queue(e){this._buf.queue(e),this.setLastChar(-1)}_maybeIndent(){let e=this._shouldIndent();if(e>0)this._buf._appendChar(-1,e,!1)}_shouldIndent(){return this.endsWith(10)?this._indent:0}catchUp(e){if(!this.format.retainLines)return;let t=e-this._buf.getCurrentLine();for(let r=0;r<t;r++)this._newline()}_catchUp(e,t){let r=this._flags;if((r&1)===0){if(r&8&&t!=null&&t[e])this.catchUp(t[e].line);return}let s=t==null?void 0:t[e];if(s!=null)this._catchUpTo(s)}_catchUpTo({line:e,column:t,index:r}){let s=e-this._buf.getCurrentLine();if(s>0&&this._noLineTerminator)return;for(let n=0;n<s;n++)this._newline();let i=s>0?t:t-this._buf.getCurrentColumn();if(i>0){let n=this._originalCode?this._originalCode.slice(r-i,r).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(i);this._buf.append(n,!1,!0),this._buf.setSourcePosition(e,t),this.setLastChar(32)}}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,t=!1,r=!1,s){var i,n;if(!e)return;this._innerCommentsState=0;let{type:a,loc:o,extra:l}=e,u=this._flags,p=!1;if(e._compact)this._flags|=4,p=!0;let m=Xme.generatorInfosMap.get(a);if(m===void 0)throw ReferenceError(`unknown node of type ${JSON.stringify(a)} with constructor ${JSON.stringify(e.constructor.name)}`);let[x,g,E]=m,I=this._currentNode,b=this._currentTypeId;if(this._currentNode=e,this._currentTypeId=g,u&1)this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode;let C;if(u&32)C=this._insideAux,this._insideAux=o==null,this._maybeAddAuxComment(this._insideAux&&!C);let N=0;if(r)if(N=this.tokenContext,N&sr.TokenContext.forInOrInitHeadAccumulate)this.tokenContext=0;else N=0;let z=l!=null&&l.parenthesized,j=z&&u&1||z&&u&16&&g===71||I&&((0,sr.parentNeedsParens)(e,I,b)||E!=null&&E(e,I,b,this.tokenContext,u&1?this._boundGetRawIdentifier:void 0));if(!j&&z&&(i=e.leadingComments)!=null&&i.length&&e.leadingComments[0].type==="CommentBlock")switch(b){case 65:case 243:case 6:case 143:break;case 17:case 130:case 112:if(I.callee!==e)break;default:j=!0}let V=!1;if(!j&&this._noLineTerminator&&((n=e.leadingComments)!=null&&n.some(Lm)||u&8&&o&&o.start.line>this._buf.getCurrentLine()))j=!0,V=!0;let ie;if(!j){if(t||(t=!!I&&this._noLineTerminatorAfterNode===I&&(0,sr.isLastChild)(I,e)),t){var ge;if((ge=e.trailingComments)!=null&&ge.some(Lm)){if(Gme(e))j=!0}else ie=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e}}if(j){if(this.tokenChar(40),V)this.indent();if(this._innerCommentsState=0,!r)N=this.tokenContext;if(N&sr.TokenContext.forInOrInitHeadAccumulate)this.tokenContext=0;ie=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null}if(this._printLeadingComments(e,I),this.exactSource(g===139||g===66?null:o,x.bind(this,e,I)),j){if(this._printTrailingComments(e,I),V)this.dedent(),this.newline();this.tokenChar(41),this._noLineTerminator=t}else if(t&&!this._noLineTerminator)this._noLineTerminator=!0,this._printTrailingComments(e,I);else this._printTrailingComments(e,I,s);if(N)this.tokenContext=N;if(this._currentNode=I,this._currentTypeId=b,p)this._flags=u;if(u&32)this._insideAux=C;if(ie!=null)this._noLineTerminatorAfterNode=ie;this._innerCommentsState=0}_maybeAddAuxComment(e){if(e)this._printAuxBeforeComment();if(!this._insideAux)this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let e=this.format.auxiliaryCommentBefore;if(e)this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let e=this.format.auxiliaryCommentAfter;if(e)this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){let t=e.extra;if((t==null?void 0:t.raw)!=null&&t.rawValue!=null&&e.value===t.rawValue)return t.raw}printJoin(e,t,r,s,i,n,a){if(!(e!=null&&e.length))return;let o=this._flags;if(r==null&&o&8){var l;let m=(l=e[0].loc)==null?void 0:l.start.line;if(m!=null&&m!==this._buf.getCurrentLine())r=!0}if(r)this.indent(o);let u=e.length;for(let m=0;m<u;m++){let x=e[m];if(!x)continue;if(t&&m===0&&this._buf.hasContent())this.newline(1,o);if(this.print(x,!1,n,a||0),s!=null){if(m<u-1)s.call(this,m,!1);else if(i)s.call(this,m,!0)}if(t)if(m+1===u)this.newline(1,o);else{let g=this._lastCommentLine;if(g>0){var p;let E=(((p=e[m+1].loc)==null?void 0:p.start.line)||0)-g;if(E>=0){this.newline(E||1,o);continue}}this.newline(1,o)}}if(r)this.dedent(o)}printAndIndentOnComments(e){let t=e.leadingComments&&e.leadingComments.length>0;if(t)this.indent();if(this.print(e),t)this.dedent()}printBlock(e){if(e.type!=="EmptyStatement")this.space();this.print(e)}_printTrailingComments(e,t,r){let{innerComments:s,trailingComments:i}=e;if(s!=null&&s.length)this._printComments(2,s,e,t,r);if(i!=null&&i.length)this._printComments(2,i,e,t,r);else this._lastCommentLine=0}_printLeadingComments(e,t){let r=e.leadingComments;if(!(r!=null&&r.length))return;this._printComments(0,r,e,t)}_maybePrintInnerComments(e,t){var r;let s=this._innerCommentsState;switch(s&3){case 0:this._innerCommentsState=5;return;case 1:this.printInnerComments((s&4)>0,(r=this.tokenMap)==null?void 0:r.findMatching(this._currentNode,e,t))}}printInnerComments(e=!0,t){let r=this._currentNode,s=r.innerComments;if(!(s!=null&&s.length)){this._innerCommentsState=2;return}let i=this.endsWith(32);if(e)this.indent();switch(this._printComments(1,s,r,void 0,void 0,t)){case 2:this._innerCommentsState=2;case 1:if(i)this.space()}if(e)this.dedent()}noIndentInnerCommentsHere(){this._innerCommentsState&=-5}printSequence(e,t,r,s){this.printJoin(e,!0,t!=null?t:!1,void 0,void 0,r,s)}printList(e,t,r,s,i,n){this.printJoin(e,r,s,i!=null?i:aye,t,n)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;let t=this.tokenMap.findLastIndex(this._currentNode,(r)=>this.tokenMap.matchesOriginal(r,typeof e==="number"?String.fromCharCode(e):e));if(t<=0)return null;return this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_shouldPrintComment(e,t){if(e.ignore)return 0;if(this._printedComments.has(e))return 0;if(this._noLineTerminator&&nye.test(e.value))return 2;if(t&&this.tokenMap){let r=this.tokenMap.find(this._currentNode,(s)=>s.value===e.value);if(r&&r.start>t.start)return 2}if(this._printedComments.add(e),!this.format.shouldPrintComment(e.value))return 0;return 1}_printComment(e,t){let r=this._noLineTerminator,s=e.type==="CommentBlock",i=s&&t!==1&&!r;if(i&&this._buf.hasContent()&&t!==2)this.newline(1);switch(this.getLastChar(!0)){case 47:this._space();case 91:case 123:case 40:break;default:this.space()}let n;if(s){if(n=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var a;let o=(a=e.loc)==null?void 0:a.start.column;if(o){let l=new RegExp("\\n\\s{1,"+o+"}","g");n=n.replace(l,`
23
+ `,g)}i.column+=s-g}removeLastSemicolon(){if(this._queuedChar===59)this._queuedChar=0}getLastChar(e){if(!e)return this._last;let t=this._queuedChar;return t!==0?t:this._last}getNewlineCount(){return this._queuedChar===0&&this._last===10?1:0}hasContent(){return this._last!==0}exactSource(e,t){if(!this._map){t();return}this.source("start",e);let r=e.identifierName,s=this._sourcePosition;if(r!=null)this._canMarkIdName=!1,s.identifierName=r;if(t(),r!=null)this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0;this.source("end",e)}source(e,t){if(!this._map)return;this._normalizePosition(e,t,0)}sourceWithOffset(e,t,r){if(!this._map)return;this._normalizePosition(e,t,r)}_normalizePosition(e,t,r){this._flush();let s=t[e];if(s)this.setSourcePosition(s.line,Math.max(s.column+r,0)),this._sourcePosition.filename=t.filename}setSourcePosition(e,t){let r=this._sourcePosition;r.line=e,r.column=t}getCurrentColumn(){return this._position.column+(this._queuedChar?1:0)}getCurrentLine(){return this._position.line}}bd.default=gd});var _d=A(function(Od){Object.defineProperty(Od,"__esModule",{value:!0});Od.AssignmentExpression=Kie;Od.BinaryExpression=Mie;Od.ClassExpression=Rie;Od.ArrowFunctionExpression=Od.ConditionalExpression=Nd;Od.DoExpression=Cie;Od.FunctionExpression=qie;Od.FunctionTypeAnnotation=Pie;Od.Identifier=Vie;Od.LogicalExpression=Bie;Od.NullableTypeAnnotation=Eie;Od.ObjectExpression=vie;Od.OptionalIndexedAccessType=wie;Od.OptionalCallExpression=Od.OptionalMemberExpression=Uie;Od.SequenceExpression=Fie;Od.TSSatisfiesExpression=Od.TSAsExpression=Nie;Od.TSConditionalType=Oie;Od.TSConstructorType=Od.TSFunctionType=Lie;Od.TSInferType=kie;Od.TSInstantiationExpression=Die;Od.TSIntersectionType=_ie;Od.SpreadElement=Od.UnaryExpression=Od.TSTypeAssertion=wd;Od.TSTypeOperator=za;Od.TSUnionType=Id;Od.IntersectionTypeAnnotation=Od.UnionTypeAnnotation=Iie;Od.UpdateExpression=Aie;Od.AwaitExpression=Od.YieldExpression=jie;var Tie=ae(),Ye=rr(),{isMemberExpression:xie,isOptionalMemberExpression:Sie,isYieldExpression:gie,isStatement:bie}=Tie,Ad=new Map([["||",0],["??",1],["&&",2],["|",3],["^",4],["&",5],["==",6],["===",6],["!=",6],["!==",6],["<",7],[">",7],["<=",7],[">=",7],["in",7],["instanceof",7],[">>",8],["<<",8],[">>>",8],["+",9],["-",9],["*",10],["/",10],["%",10],["**",11]]);function vd(e){return e===156||e===201||e===209}var Ai=(e,t,r)=>(r===21||r===22)&&t.superClass===e,vi=(e,t,r)=>{switch(r){case 108:case 132:return t.object===e;case 17:case 130:case 112:return t.callee===e;case 222:return t.tag===e;case 191:return!0}return!1};function Eie(e,t,r){return r===4}function Pie(e,t,r,s){return r===239||r===90||r===4||(s&Ye.TokenContext.arrowFlowReturnType)>0}function Aie(e,t,r){return vi(e,t,r)||Ai(e,t,r)}function Cd(e){return(e&(Ye.TokenContext.expressionStatement|Ye.TokenContext.arrowBody))>0}function vie(e,t,r,s){return Cd(s)}function Cie(e,t,r,s){return(s&Ye.TokenContext.expressionStatement)>0&&!e.async}function Ha(e,t,r,s){if(Ai(e,t,r))return!0;if(vi(e,t,r)||r===238||r===145||r===8)return!0;let i;switch(r){case 10:case 107:i=Ad.get(t.operator);break;case 156:case 201:i=7}if(i!==void 0){let n=s===2?7:Ad.get(e.operator);if(i>n)return!0;if(i===n&&r===10&&(n===11?t.left===e:t.right===e))return!0;if(s===1&&r===107&&(n===1&&i!==1||i===1&&n!==1))return!0}return!1}function Iie(e,t,r){switch(r){case 4:case 115:case 90:case 239:return!0}return!1}function wie(e,t,r){return r===84&&t.objectType===e}function Nie(e,t,r){if((r===6||r===7)&&t.left===e)return!0;if(r===10&&(t.operator==="|"||t.operator==="&")&&e===t.left)return!0;return Ha(e,t,r,2)}function Oie(e,t,r){switch(r){case 155:case 195:case 211:case 212:return!0;case 175:return t.objectType===e;case 181:case 219:return t.types[0]===e;case 161:return t.checkType===e||t.extendsType===e}return!1}function Id(e,t,r){switch(r){case 181:case 211:case 155:case 195:return!0;case 175:return t.objectType===e}return!1}function _ie(e,t,r){return r===211||za(e,t,r)}function kie(e,t,r){if(za(e,t,r))return!0;if((r===181||r===219)&&e.typeParameter.constraint&&t.types[0]===e)return!0;return!1}function za(e,t,r){switch(r){case 155:case 195:return!0;case 175:if(t.objectType===e)return!0}return!1}function Die(e,t,r){switch(r){case 17:case 130:case 112:case 177:return t.typeParameters!=null}return!1}function Lie(e,t,r){if(Id(e,t,r))return!0;return r===219||r===161&&(t.checkType===e||t.extendsType===e)}function Mie(e,t,r,s){if(Ha(e,t,r,0))return!0;return(s&Ye.TokenContext.forInOrInitHeadAccumulate)>0&&e.operator==="in"}function Bie(e,t,r){return Ha(e,t,r,1)}function Fie(e,t,r){if(r===144||r===133||r===108&&t.property===e||r===132&&t.property===e||r===224)return!1;if(r===21)return!0;if(r===68)return t.right===e;if(r===60)return!0;return!bie(t)}function jie(e,t,r){return r===10||r===107||r===238||r===145||vi(e,t,r)||r===8&&gie(e)||r===28&&e===t.test||Ai(e,t,r)||vd(r)}function Rie(e,t,r,s){return(s&(Ye.TokenContext.expressionStatement|Ye.TokenContext.exportDefault))>0}function wd(e,t,r){return vi(e,t,r)||r===10&&t.operator==="**"&&t.left===e||Ai(e,t,r)}function qie(e,t,r,s){return(s&(Ye.TokenContext.expressionStatement|Ye.TokenContext.exportDefault))>0}function Nd(e,t,r){switch(r){case 238:case 145:case 10:case 107:case 8:return!0;case 28:if(t.test===e)return!0}if(vd(r))return!0;return wd(e,t,r)}function Uie(e,t,r){switch(r){case 17:return t.callee===e;case 108:return t.object===e}return!1}function Kie(e,t,r,s){if(Cd(s)&&e.left.type==="ObjectPattern")return!0;return Nd(e,t,r)}function Vie(e,t,r,s,i){var n;if(i&&i(e)!==e.name)return!1;if(r===6&&(n=e.extra)!=null&&n.parenthesized&&t.left===e){let a=t.right.type;if((a==="FunctionExpression"||a==="ClassExpression")&&t.right.id==null)return!0}if(s&Ye.TokenContext.forOfHead||(r===108||r===132)&&s&(Ye.TokenContext.expressionStatement|Ye.TokenContext.forInitHead|Ye.TokenContext.forInHead)){if(e.name==="let"){if((xie(t,{object:e,computed:!0})||Sie(t,{object:e,computed:!0,optional:!1}))&&s&(Ye.TokenContext.expressionStatement|Ye.TokenContext.forInitHead|Ye.TokenContext.forInHead))return!0;return(s&Ye.TokenContext.forOfHead)>0}}return r===68&&t.left===e&&e.name==="async"&&!t.await}});var Ga=A(function(Dd){Object.defineProperty(Dd,"__esModule",{value:!0});Dd.TaggedTemplateExpression=yne;Dd.TemplateElement=Tne;Dd.TemplateLiteral=xne;Dd._printTemplate=kd;function yne(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)}function Tne(){throw Error("TemplateElement printing is handled in TemplateLiteral")}function kd(e,t){let r=e.quasis,s="`";for(let i=0;i<r.length-1;i++)if(s+=r[i].value.raw,this.token(s+"${",!0),this.print(t[i]),s="}",this.tokenMap){let n=this.tokenMap.findMatching(e,"}",i);if(n)this._catchUpTo(n.loc.start)}s+=r[r.length-1].value.raw,this.token(s+"`",!0)}function xne(e){kd.call(this,e,e.expressions)}});var Ci=A(function(Md){Object.defineProperty(Md,"__esModule",{value:!0});Md.LogicalExpression=Md.AssignmentExpression=$ne;Md.AssignmentPattern=Xne;Md.AwaitExpression=Vne;Md.BinaryExpression=Hne;Md.BindExpression=zne;Md.CallExpression=Une;Md.ConditionalExpression=kne;Md.Decorator=jne;Md.DoExpression=Nne;Md.EmptyStatement=Jne;Md.ExpressionStatement=Wne;Md.Import=Kne;Md.MemberExpression=Gne;Md.MetaProperty=Qne;Md.ModuleExpression=tae;Md.NewExpression=Dne;Md.OptionalCallExpression=qne;Md.OptionalMemberExpression=Rne;Md.ParenthesizedExpression=One;Md.PrivateName=Zne;Md.SequenceExpression=Lne;Md.Super=Bne;Md.ThisExpression=Mne;Md.UnaryExpression=wne;Md.UpdateExpression=_ne;Md.V8IntrinsicIdentifier=eae;Md.YieldExpression=Yne;Md._shouldPrintDecoratorsBeforeExport=Fne;var Pne=ae(),Ane=rr(),{isCallExpression:vne,isLiteral:Ld,isMemberExpression:Qa,isNewExpression:Cne,isPattern:Ine}=Pne;function wne(e){let{operator:t}=e,r=t.charCodeAt(0);if(r>=97&&r<=122)this.word(t),this.space();else this.tokenChar(r);this.print(e.argument)}function Nne(e){if(e.async)this.word("async",!0),this.space();this.word("do"),this.space(),this.print(e.body)}function One(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function _ne(e){if(e.prefix)this.token(e.operator,!1,0,!0),this.print(e.argument);else this.print(e.argument,!0),this.token(e.operator,!1,0,!0)}function kne(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)}function Dne(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&e.arguments.length===0&&!e.optional&&!vne(t,{callee:e})&&!Qa(t)&&!Cne(t))return;if(this.print(e.typeArguments),this.print(e.typeParameters),e.optional)this.token("?.");if(e.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(e,")"))return;this.tokenChar(40);let r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=r,this.rightParens(e)}function Lne(e){this.printList(e.expressions)}function Mne(){this.word("this")}function Bne(){this.word("super")}function Fne(e){if(typeof this.format.decoratorsBeforeExport==="boolean")return this.format.decoratorsBeforeExport;return typeof e.start==="number"&&e.start===e.declaration.start}function jne(e){this.tokenChar(64);let{expression:t}=e;this.print(t),this.newline()}function Rne(e){let{computed:t}=e,{optional:r,property:s}=e;if(this.print(e.object),!t&&Qa(s))throw TypeError("Got a MemberExpression for MemberExpression property");if(Ld(s)&&typeof s.value==="number")t=!0;if(r)this.token("?.");if(t)this.tokenChar(91),this.print(s),this.tokenChar(93);else{if(!r)this.tokenChar(46);this.print(s)}}function qne(e){if(this.print(e.callee),this.print(e.typeParameters),e.optional)this.token("?.");this.print(e.typeArguments),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,void 0,void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function Une(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")"),void 0,void 0,void 0,!0),this._noLineTerminatorAfterNode=t,this.rightParens(e)}function Kne(){this.word("import")}function Vne(e){this.word("await"),this.space(),this.print(e.argument)}function Yne(e){if(e.delegate){if(this.word("yield",!0),this.tokenChar(42),e.argument)this.space(),this.print(e.argument)}else if(e.argument)this.word("yield",!0),this.space(),this.print(e.argument);else this.word("yield")}function Jne(){this.semicolon(!0)}function Wne(e){this.tokenContext|=Ane.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()}function Xne(e){if(this.print(e.left),e.left.type==="Identifier"||Ine(e.left)){if(e.left.optional)this.tokenChar(63);this.print(e.left.typeAnnotation)}this.space(),this.tokenChar(61),this.space(),this.print(e.right)}function $ne(e){this.print(e.left),this.space(),this.token(e.operator,!1,0,!0),this.space(),this.print(e.right)}function Hne(e){this.print(e.left),this.space();let{operator:t}=e;if(t.charCodeAt(0)===105)this.word(t);else this.token(t,!1,0,!0),this.setLastChar(t.charCodeAt(t.length-1));this.space(),this.print(e.right)}function zne(e){this.print(e.object),this.token("::"),this.print(e.callee)}function Gne(e){if(this.print(e.object),!e.computed&&Qa(e.property))throw TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(Ld(e.property)&&typeof e.property.value==="number")t=!0;if(t){let r=this.enterDelimited();this.tokenChar(91),this.print(e.property,void 0,!0),this.tokenChar(93),this._noLineTerminatorAfterNode=r}else this.tokenChar(46),this.print(e.property)}function Qne(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)}function Zne(e){this.tokenChar(35),this.print(e.id)}function eae(e){this.tokenChar(37),this.word(e.name)}function tae(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;if(t.body.length||t.directives.length)this.newline();this.print(t),this.dedent(),this.rightBrace(e)}});var jd=A(function(Fd){Object.defineProperty(Fd,"__esModule",{value:!0});Fd.BreakStatement=Uae;Fd.CatchClause=Xae;Fd.ContinueStatement=Kae;Fd.DebuggerStatement=zae;Fd.DoWhileStatement=qae;Fd.ForInStatement=jae;Fd.ForOfStatement=Rae;Fd.ForStatement=Bae;Fd.IfStatement=Mae;Fd.LabeledStatement=Jae;Fd.ReturnStatement=Vae;Fd.SwitchCase=Hae;Fd.SwitchStatement=$ae;Fd.ThrowStatement=Yae;Fd.TryStatement=Wae;Fd.VariableDeclaration=Qae;Fd.VariableDeclarator=Zae;Fd.WhileStatement=Fae;Fd.WithStatement=Lae;var Oae=ae(),br=rr(),{isFor:_ae,isIfStatement:kae,isStatement:Dae}=Oae;function Lae(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e.body)}function Mae(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&kae(Bd(e.consequent));if(t)this.tokenChar(123),this.newline(),this.indent();if(this.printAndIndentOnComments(e.consequent),t)this.dedent(),this.newline(),this.tokenChar(125);if(e.alternate){if(this.endsWith(125))this.space();this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate)}}function Bd(e){let{body:t}=e;if(Dae(t)===!1)return e;return Bd(t)}function Bae(e){if(this.word("for"),this.space(),this.tokenChar(40),this.tokenContext|=br.TokenContext.forInitHead|br.TokenContext.forInOrInitHeadAccumulate,this.print(e.init),this.tokenContext=br.TokenContext.normal,this.tokenChar(59),e.test)this.space(),this.print(e.test);if(this.tokenChar(59,1),e.update)this.space(),this.print(e.update);this.tokenChar(41),this.printBlock(e.body)}function Fae(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e.body)}function jae(e){this.word("for"),this.space(),this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=br.TokenContext.forInHead|br.TokenContext.forInOrInitHeadAccumulate,this.print(e.left),this.tokenContext=br.TokenContext.normal,this.space(),this.word("in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function Rae(e){if(this.word("for"),this.space(),e.await)this.word("await"),this.space();this.noIndentInnerCommentsHere(),this.tokenChar(40),this.tokenContext|=br.TokenContext.forOfHead,this.print(e.left),this.space(),this.word("of"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e.body)}function qae(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()}function Ii(e,t){if(t)e.space(),e.printTerminatorless(t);e.semicolon()}function Uae(e){this.word("break"),Ii(this,e.label)}function Kae(e){this.word("continue"),Ii(this,e.label)}function Vae(e){this.word("return"),Ii(this,e.argument)}function Yae(e){this.word("throw"),Ii(this,e.argument)}function Jae(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)}function Wae(e){if(this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers)this.print(e.handlers[0]);else this.print(e.handler);if(e.finalizer)this.space(),this.word("finally"),this.space(),this.print(e.finalizer)}function Xae(e){if(this.word("catch"),this.space(),e.param)this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space();this.print(e.body)}function $ae(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0),this.rightBrace(e)}function Hae(e){if(e.test)this.word("case"),this.space(),this.print(e.test),this.tokenChar(58);else this.word("default"),this.tokenChar(58);if(e.consequent.length)this.newline(),this.printSequence(e.consequent,!0)}function zae(){this.word("debugger"),this.semicolon()}function Gae(e){this.tokenChar(44,e),this.newline()}function Qae(e,t){if(e.declare)this.word("declare"),this.space();let{kind:r}=e;switch(r){case"await using":this.word("await"),this.space();case"using":this.word("using",!0);break;default:this.word(r)}this.space();let s=!1;if(!_ae(t)){for(let i of e.declarations)if(i.init){s=!0;break}}if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,s?Gae:void 0),t!=null)switch(t.type){case"ForStatement":if(t.init===e)return;break;case"ForInStatement":case"ForOfStatement":if(t.left===e)return}this.semicolon()}function Zae(e){if(this.print(e.id),e.definite)this.tokenChar(33);if(this.print(e.id.typeAnnotation),e.init)this.space(),this.tokenChar(61),this.space(),this.print(e.init)}});var Ns=A(function(Vd){Object.defineProperty(Vd,"__esModule",{value:!0});Vd.ArrowFunctionExpression=Aoe;Vd.FunctionDeclaration=Vd.FunctionExpression=Poe;Vd._functionHead=Ud;Vd._methodHead=Eoe;Vd._param=qd;Vd._parameters=Rd;Vd._params=Yr;Vd._predicate=Za;Vd._shouldPrintArrowParamsParens=Kd;var Soe=ae(),goe=rr(),{isIdentifier:boe}=Soe;function Yr(e,t,r,s){if(this.print(e.typeParameters),r!==void 0||s!==void 0){let i=voe.call(this,r,s);if(i)this.sourceIdentifierName(i.name,i.pos)}this.tokenChar(40),Rd.call(this,e.params,41),this.print(e.returnType,t),this._noLineTerminator=t}function Rd(e,t){let r=this.enterDelimited(),s=this.shouldPrintTrailingComma(t),i=e.length;for(let n=0;n<i;n++)if(qd.call(this,e[n]),s||n<i-1)this.tokenChar(44,n),this.space();this.tokenChar(t),this._noLineTerminatorAfterNode=r}function qd(e){if(this.printJoin(e.decorators,void 0,void 0,void 0,void 0,!0),this.print(e,void 0,!0),e.optional)this.tokenChar(63);this.print(e.typeAnnotation,void 0,!0)}function Eoe(e){let{kind:t,key:r}=e;if(t==="get"||t==="set")this.word(t),this.space();if(e.async)this.word("async",!0),this.space();if(t==="method"||t==="init"){if(e.generator)this.tokenChar(42)}if(e.computed)this.tokenChar(91),this.print(r),this.tokenChar(93);else this.print(r);if(e.optional)this.tokenChar(63);if(this._buf._map)Yr.call(this,e,!1,e.computed&&e.key.type!=="StringLiteral"?void 0:e.key);else Yr.call(this,e,!1)}function Za(e,t){if(e.predicate){if(!e.returnType)this.tokenChar(58);this.space(),this.print(e.predicate,t)}}function Ud(e,t,r){if(e.async){if(this.word("async"),!this.format.preserveFormat)this._innerCommentsState=0;this.space()}if(this.word("function"),e.generator){if(!this.format.preserveFormat)this._innerCommentsState=0;this.tokenChar(42)}if(this.space(),e.id)this.print(e.id);if(this._buf._map)Yr.call(this,e,!1,e.id,t);else Yr.call(this,e,!1);if(r)Za.call(this,e)}function Poe(e,t){Ud.call(this,e,t,!0),this.space(),this.print(e.body)}function Aoe(e,t){if(e.async)this.word("async",!0),this.space();if(Kd.call(this,e))Yr.call(this,e,!0,void 0,this._buf._map?t:void 0);else this.print(e.params[0],!0);Za.call(this,e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=goe.TokenContext.arrowBody,this.print(e.body)}function Kd(e){var t,r;if(e.params.length!==1)return!0;if(e.typeParameters||e.returnType||e.predicate)return!0;let s=e.params[0];if(!boe(s)||s.typeAnnotation||s.optional||(t=s.leadingComments)!=null&&t.length||(r=s.trailingComments)!=null&&r.length)return!0;if(this.tokenMap){if(e.loc==null)return!0;if(this.tokenMap.findMatching(e,"(")!==null)return!0;let i=this.tokenMap.findMatching(e,"=>");if((i==null?void 0:i.loc)==null)return!0;return i.loc.start.line!==e.loc.start.line}if(this.format.retainLines)return!0;return!1}function voe(e,t){let r=e;if(!r&&t){let l=t.type;if(l==="VariableDeclarator")r=t.id;else if(l==="AssignmentExpression"||l==="AssignmentPattern")r=t.left;else if(l==="ObjectProperty"||l==="ClassProperty"){if(!t.computed||t.key.type==="StringLiteral")r=t.key}else if(l==="ClassPrivateProperty"||l==="ClassAccessorProperty")r=t.key}if(!r)return;let s;if(r.type==="Identifier"){var i,n;s={pos:(i=r.loc)==null?void 0:i.start,name:((n=r.loc)==null?void 0:n.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;s={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;s={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return s}});var to=A(function(zd){Object.defineProperty(zd,"__esModule",{value:!0});zd.TSAnyKeyword=Hoe;zd.TSArrayType=mle;zd.TSAsExpression=Lle;zd.TSBigIntKeyword=zoe;zd.TSBooleanKeyword=ele;zd.TSCallSignatureDeclaration=Yoe;zd.TSInterfaceHeritage=zd.TSClassImplements=Ole;zd.TSConditionalType=Ele;zd.TSConstructSignatureDeclaration=Joe;zd.TSConstructorType=cle;zd.TSDeclareFunction=Uoe;zd.TSDeclareMethod=Koe;zd.TSEnumBody=Hd;zd.TSEnumDeclaration=jle;zd.TSEnumMember=Rle;zd.TSExportAssignment=Wle;zd.TSExternalModuleReference=Yle;zd.TSFunctionType=ule;zd.TSImportEqualsDeclaration=Vle;zd.TSImportType=Kle;zd.TSIndexSignature=$oe;zd.TSIndexedAccessType=Cle;zd.TSInferType=Ple;zd.TSInstantiationExpression=Fle;zd.TSInterfaceBody=kle;zd.TSInterfaceDeclaration=_le;zd.TSIntersectionType=ble;zd.TSIntrinsicKeyword=ole;zd.TSLiteralType=Nle;zd.TSMappedType=Ile;zd.TSMethodSignature=Xoe;zd.TSModuleBlock=Ule;zd.TSModuleDeclaration=qle;zd.TSNamedTupleMember=Sle;zd.TSNamespaceExportDeclaration=Xle;zd.TSNeverKeyword=ale;zd.TSNonNullExpression=Jle;zd.TSNullKeyword=nle;zd.TSNumberKeyword=Qoe;zd.TSObjectKeyword=Zoe;zd.TSOptionalType=Tle;zd.TSParameterProperty=qoe;zd.TSParenthesizedType=Ale;zd.TSPropertySignature=Woe;zd.TSQualifiedName=Voe;zd.TSRestType=xle;zd.TSSatisfiesExpression=Mle;zd.TSStringKeyword=tle;zd.TSSymbolKeyword=rle;zd.TSTemplateLiteralType=wle;zd.TSThisType=lle;zd.TSTupleType=yle;zd.TSTypeAliasDeclaration=Dle;zd.TSTypeAnnotation=Foe;zd.TSTypeAssertion=Ble;zd.TSTypeLiteral=dle;zd.TSTypeOperator=vle;zd.TSTypeParameter=Roe;zd.TSTypeParameterDeclaration=zd.TSTypeParameterInstantiation=joe;zd.TSTypePredicate=fle;zd.TSTypeQuery=hle;zd.TSTypeReference=ple;zd.TSUndefinedKeyword=ile;zd.TSUnionType=gle;zd.TSUnknownKeyword=Goe;zd.TSVoidKeyword=sle;zd._tsPrintClassMemberModifiers=$le;var Os=Ns(),Moe=ro(),Boe=Ga();function Foe(e,t){if(this.token((t.type==="TSFunctionType"||t.type==="TSConstructorType")&&t.typeAnnotation===e?"=>":":"),this.space(),e.optional)this.tokenChar(63);this.print(e.typeAnnotation)}function joe(e,t){this.tokenChar(60);let r=t.type==="ArrowFunctionExpression"&&e.params.length===1;if(this.tokenMap&&e.start!=null&&e.end!=null)r&&(r=!!this.tokenMap.find(e,(s)=>this.tokenMap.matchesOriginal(s,","))),r||(r=this.shouldPrintTrailingComma(">"));this.printList(e.params,r),this.tokenChar(62)}function Roe(e){if(e.const)this.word("const"),this.space();if(e.in)this.word("in"),this.space();if(e.out)this.word("out"),this.space();if(this.word(e.name),e.constraint)this.space(),this.word("extends"),this.space(),this.print(e.constraint);if(e.default)this.space(),this.tokenChar(61),this.space(),this.print(e.default)}function qoe(e){if(e.accessibility)this.word(e.accessibility),this.space();if(e.readonly)this.word("readonly"),this.space();Os._param.call(this,e.parameter)}function Uoe(e,t){if(e.declare)this.word("declare"),this.space();Os._functionHead.call(this,e,t,!1),this.semicolon()}function Koe(e){Moe._classMethodHead.call(this,e),this.semicolon()}function Voe(e){this.print(e.left),this.tokenChar(46),this.print(e.right)}function Yoe(e){eo.call(this,e),_s(this,e)}function _s(e,t){if(!e.tokenMap||!t.start||!t.end){e.semicolon();return}if(e.tokenMap.endMatches(t,","))e.token(",");else if(e.tokenMap.endMatches(t,";"))e.semicolon()}function Joe(e){this.word("new"),this.space(),eo.call(this,e),_s(this,e)}function Woe(e){let{readonly:t}=e;if(t)this.word("readonly"),this.space();Wd.call(this,e),this.print(e.typeAnnotation),_s(this,e)}function Wd(e){if(e.computed)this.tokenChar(91);if(this.print(e.key),e.computed)this.tokenChar(93);if(e.optional)this.tokenChar(63)}function Xoe(e){let{kind:t}=e;if(t==="set"||t==="get")this.word(t),this.space();Wd.call(this,e),eo.call(this,e),_s(this,e)}function $oe(e){let{readonly:t,static:r}=e;if(r)this.word("static"),this.space();if(t)this.word("readonly"),this.space();this.tokenChar(91),Os._parameters.call(this,e.parameters,93),this.print(e.typeAnnotation),_s(this,e)}function Hoe(){this.word("any")}function zoe(){this.word("bigint")}function Goe(){this.word("unknown")}function Qoe(){this.word("number")}function Zoe(){this.word("object")}function ele(){this.word("boolean")}function tle(){this.word("string")}function rle(){this.word("symbol")}function sle(){this.word("void")}function ile(){this.word("undefined")}function nle(){this.word("null")}function ale(){this.word("never")}function ole(){this.word("intrinsic")}function lle(){this.word("this")}function ule(e){Xd.call(this,e)}function cle(e){if(e.abstract)this.word("abstract"),this.space();this.word("new"),this.space(),Xd.call(this,e)}function Xd(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),Os._parameters.call(this,r,41),this.space();let s=e.typeAnnotation;this.print(s)}function ple(e){let t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)}function fle(e){if(e.asserts)this.word("asserts"),this.space();if(this.print(e.parameterName),e.typeAnnotation)this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation)}function hle(e){this.word("typeof"),this.space(),this.print(e.exprName);let t=e.typeParameters;if(t)this.print(t)}function dle(e){wi(this,e,()=>this.printJoin(e.members,!0,!0,void 0,void 0,!0))}function mle(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function yle(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)}function Tle(e){this.print(e.typeAnnotation),this.tokenChar(63)}function xle(e){this.token("..."),this.print(e.typeAnnotation)}function Sle(e){if(this.print(e.label),e.optional)this.tokenChar(63);this.tokenChar(58),this.space(),this.print(e.elementType)}function gle(e){$d(this,e,"|")}function ble(e){$d(this,e,"&")}function $d(e,t,r){var s;let i=0;if((s=e.tokenMap)!=null&&s.startMatches(t,r))i=1,e.token(r);e.printJoin(t.types,void 0,void 0,function(n){this.space(),this.token(r,void 0,n+i),this.space()})}function Ele(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)}function Ple(e){this.word("infer"),this.print(e.typeParameter)}function Ale(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)}function vle(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)}function Cle(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function Ile(e){let{nameType:t,optional:r,readonly:s,typeAnnotation:i}=e;this.tokenChar(123);let n=this.enterDelimited();if(this.space(),s)Yd(this,s),this.word("readonly"),this.space();if(this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint,void 0,!0),t)this.space(),this.word("as"),this.space(),this.print(t,void 0,!0);if(this.tokenChar(93),r)Yd(this,r),this.tokenChar(63);if(i)this.tokenChar(58),this.space(),this.print(i,void 0,!0);this.space(),this._noLineTerminatorAfterNode=n,this.tokenChar(125)}function Yd(e,t){if(t!==!0)e.token(t)}function wle(e){Boe._printTemplate.call(this,e,e.types)}function Nle(e){this.print(e.literal)}function Ole(e){this.print(e.expression),this.print(e.typeArguments)}function _le(e){let{declare:t,id:r,typeParameters:s,extends:i,body:n}=e;if(t)this.word("declare"),this.space();if(this.word("interface"),this.space(),this.print(r),this.print(s),i!=null&&i.length)this.space(),this.word("extends"),this.space(),this.printList(i);this.space(),this.print(n)}function kle(e){wi(this,e,()=>this.printJoin(e.body,!0,!0,void 0,void 0,!0))}function Dle(e){let{declare:t,id:r,typeParameters:s,typeAnnotation:i}=e;if(t)this.word("declare"),this.space();this.word("type"),this.space(),this.print(r),this.print(s),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon()}function Lle(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("as"),this.space(),this.print(r)}function Mle(e){let{expression:t,typeAnnotation:r}=e;this.print(t,!0),this.space(),this.word("satisfies"),this.space(),this.print(r)}function Ble(e){let{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r)}function Fle(e){this.print(e.expression),this.print(e.typeParameters)}function jle(e){let{declare:t,const:r,id:s}=e;if(t)this.word("declare"),this.space();if(r)this.word("const"),this.space();this.word("enum"),this.space(),this.print(s),this.space(),Hd.call(this,e)}function Hd(e){wi(this,e,()=>{var t;return this.printList(e.members,(t=this.shouldPrintTrailingComma("}"))!=null?t:!0,!0,!0,void 0,!0)})}function Rle(e){let{id:t,initializer:r}=e;if(this.print(t),r)this.space(),this.tokenChar(61),this.space(),this.print(r)}function qle(e){let{declare:t,id:r,kind:s}=e;if(t)this.word("declare"),this.space();if(!e.global)this.word(s!=null?s:r.type==="Identifier"?"namespace":"module"),this.space();if(this.print(r),!e.body){this.semicolon();return}let i=e.body;while(i.type==="TSModuleDeclaration")this.tokenChar(46),this.print(i.id),i=i.body;this.space(),this.print(i)}function Ule(e){wi(this,e,()=>this.printSequence(e.body,!0,!0))}function Kle(e){let{qualifier:t,options:r}=e;if(this.word("import"),this.tokenChar(40),this.print(e.argument),r)this.tokenChar(44),this.print(r);if(this.tokenChar(41),t)this.tokenChar(46),this.print(t);let s=e.typeParameters;if(s)this.print(s)}function Vle(e){let{id:t,moduleReference:r}=e;if(e.isExport)this.word("export"),this.space();this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(r),this.semicolon()}function Yle(e){this.token("require("),this.print(e.expression),this.tokenChar(41)}function Jle(e){this.print(e.expression),this.tokenChar(33),this.setLastChar(33)}function Wle(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()}function Xle(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()}function eo(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),Os._parameters.call(this,r,41);let s=e.typeAnnotation;this.print(s)}function $le(e){let t=e.type==="ClassPrivateProperty",r=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";if(Jd(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]),e.static)this.word("static"),this.space();Jd(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"])}function wi(e,t,r){e.token("{");let s=e.enterDelimited();r(),e._noLineTerminatorAfterNode=s,e.rightBrace(t)}function Jd(e,t,r){var s;let i=new Set;for(let n of r)if(n)i.add(n);(s=e.tokenMap)==null||s.find(t,(n)=>{if(i.has(n.value))return e.token(n.value),e.space(),i.delete(n.value),i.size===0;return!1});for(let n of i)e.word(n),e.space()}});var so=A(function(em){Object.defineProperty(em,"__esModule",{value:!0});em.ExportAllDeclaration=bce;em.ExportDefaultDeclaration=Pce;em.ExportDefaultSpecifier=xce;em.ExportNamedDeclaration=Ece;em.ExportNamespaceSpecifier=gce;em.ExportSpecifier=Sce;em.ImportAttribute=vce;em.ImportDeclaration=Ace;em.ImportDefaultSpecifier=Tce;em.ImportExpression=Ice;em.ImportNamespaceSpecifier=Cce;em.ImportSpecifier=yce;em._printAttributes=Ni;var lce=ae(),uce=rr(),cce=Ci(),{isClassDeclaration:pce,isExportDefaultSpecifier:fce,isExportNamespaceSpecifier:hce,isImportDefaultSpecifier:dce,isImportNamespaceSpecifier:mce,isStatement:Qd}=lce;function yce(e){if(e.importKind==="type"||e.importKind==="typeof")this.word(e.importKind),this.space();if(this.print(e.imported),e.local&&e.local.name!==e.imported.name)this.space(),this.word("as"),this.space(),this.print(e.local)}function Tce(e){this.print(e.local)}function xce(e){this.print(e.exported)}function Sce(e){if(e.exportKind==="type")this.word("type"),this.space();if(this.print(e.local),e.exported&&e.local.name!==e.exported.name)this.space(),this.word("as"),this.space(),this.print(e.exported)}function gce(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var Gd=!1;function Ni(e,t){var r;let{attributes:s}=e;var{assertions:i}=e;let{importAttributesKeyword:n}=this.format;if(s&&!n&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!Gd)Gd=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n');let a=n==="assert"||!n&&i;if(this.word(a?"assert":"with"),this.space(),!a&&(n==="with-legacy"||!n&&(r=e.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(s||i);return}let o=t?1:0;this.token("{",void 0,o),this.space(),this.printList(s||i,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,o)}function bce(e){var t,r;if(this.word("export"),this.space(),e.exportKind==="type")this.word("type"),this.space();if(this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length)this.print(e.source,!0),this.space(),Ni.call(this,e,!1);else this.print(e.source);this.semicolon()}function Zd(e,t){if(pce(t.declaration)&&cce._shouldPrintDecoratorsBeforeExport.call(e,t))e.printJoin(t.declaration.decorators)}function Ece(e){if(Zd(this,e),this.word("export"),this.space(),e.declaration){let s=e.declaration;if(this.print(s),!Qd(s))this.semicolon()}else{if(e.exportKind==="type")this.word("type"),this.space();let s=e.specifiers.slice(0),i=!1;for(;;){let a=s[0];if(fce(a)||hce(a)){if(i=!0,this.print(s.shift()),s.length)this.tokenChar(44),this.space()}else break}let n=!1;if(s.length||!s.length&&!i){if(n=!0,this.tokenChar(123),s.length)this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space();this.tokenChar(125)}if(e.source){var t,r;if(this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length)this.print(e.source,!0),this.space(),Ni.call(this,e,n);else this.print(e.source)}this.semicolon()}}function Pce(e){Zd(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=uce.TokenContext.exportDefault;let t=e.declaration;if(this.print(t),!Qd(t))this.semicolon()}function Ace(e){var t,r;this.word("import"),this.space();let s=e.importKind==="type"||e.importKind==="typeof";if(s)this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space();else if(e.module)this.noIndentInnerCommentsHere(),this.word("module"),this.space();else if(e.phase)this.noIndentInnerCommentsHere(),this.word(e.phase),this.space();let i=e.specifiers.slice(0),n=!!i.length;while(n){let o=i[0];if(dce(o)||mce(o)){if(this.print(i.shift()),i.length)this.tokenChar(44),this.space()}else break}let a=!1;if(i.length)a=!0,this.tokenChar(123),this.space(),this.printList(i,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125);else if(s&&!n)a=!0,this.tokenChar(123),this.tokenChar(125);if(n||s)this.space(),this.word("from"),this.space();if((t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length)this.print(e.source,!0),this.space(),Ni.call(this,e,a);else this.print(e.source);this.semicolon()}function vce(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function Cce(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function Ice(e){if(this.word("import"),e.phase)this.tokenChar(46),this.word(e.phase);this.tokenChar(40);let t=this.shouldPrintTrailingComma(")");if(this.print(e.source),e.options!=null)this.tokenChar(44),this.space(),this.print(e.options);if(t)this.tokenChar(44);this.rightParens(e)}});var im=A(function(VLe,sm){var tm={},Uce=tm.hasOwnProperty,rm=(e,t)=>{for(let r in e)if(Uce.call(e,r))t(r,e[r])},Kce=(e,t)=>{if(!t)return e;return rm(t,(r,s)=>{e[r]=s}),e},Vce=(e,t)=>{let r=e.length,s=-1;while(++s<r)t(e[s])},Oi=(e)=>"\\u"+("0000"+e).slice(-4),ks=(e,t)=>{let r=e.toString(16);if(t)return r;return r.toUpperCase()},Ds=tm.toString,Yce=Array.isArray,Jce=(e)=>typeof Buffer==="function"&&Buffer.isBuffer(e),Wce=(e)=>Ds.call(e)=="[object Object]",Xce=(e)=>typeof e=="string"||Ds.call(e)=="[object String]",$ce=(e)=>typeof e=="number"||Ds.call(e)=="[object Number]",io=(e)=>typeof e=="bigint",Hce=(e)=>typeof e=="function",zce=(e)=>Ds.call(e)=="[object Map]",Gce=(e)=>Ds.call(e)=="[object Set]",Qce={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},Zce=/[\\\b\f\n\r\t]/,epe=/[0-9]/,tpe=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,rpe=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,spe=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,sr=(e,t)=>{let r=()=>{u=l,++t.indentLevel,l=t.indent.repeat(t.indentLevel)},s={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},i=t&&t.json;if(i)s.quotes="double",s.wrap=!0;if(t=Kce(s,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick")t.quotes="single";let n=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,o=t.lowercaseHex,l=t.indent.repeat(t.indentLevel),u="",p=t.__inline1__,m=t.__inline2__,x=a?"":`
24
+ `,g,E=!0,I=t.numbers=="binary",b=t.numbers=="octal",C=t.numbers=="decimal",N=t.numbers=="hexadecimal";if(i&&e&&Hce(e.toJSON))e=e.toJSON();if(!Xce(e)){if(zce(e)){if(e.size==0)return"new Map()";if(!a)t.__inline1__=!0,t.__inline2__=!1;return"new Map("+sr(Array.from(e),t)+")"}if(Gce(e)){if(e.size==0)return"new Set()";return"new Set("+sr(Array.from(e),t)+")"}if(Jce(e)){if(e.length==0)return"Buffer.from([])";return"Buffer.from("+sr(Array.from(e),t)+")"}if(Yce(e)){if(g=[],t.wrap=!0,p)t.__inline1__=!1,t.__inline2__=!0;if(!m)r();if(Vce(e,(j)=>{if(E=!1,m)t.__inline2__=!1;g.push((a||m?"":l)+sr(j,t))}),E)return"[]";if(m)return"["+g.join(", ")+"]";return"["+x+g.join(","+x)+x+(a?"":u)+"]"}else if($ce(e)||io(e)){if(i)return JSON.stringify(Number(e));let j;if(C)j=String(e);else if(N){let V=e.toString(16);if(!o)V=V.toUpperCase();j="0x"+V}else if(I)j="0b"+e.toString(2);else if(b)j="0o"+e.toString(8);if(io(e))return j+"n";return j}else if(io(e)){if(i)return JSON.stringify(Number(e));return e+"n"}else if(!Wce(e)){if(i)return JSON.stringify(e)||"null";return String(e)}else{if(g=[],t.wrap=!0,r(),rm(e,(j,V)=>{E=!1,g.push((a?"":l)+sr(j,t)+":"+(a?"":" ")+sr(V,t))}),E)return"{}";return"{"+x+g.join(","+x)+x+(a?"":u)+"}"}}let z=t.escapeEverything?rpe:spe;if(g=e.replace(z,(j,V,ie,ge,ke,Fe)=>{if(V){if(t.minimal)return V;let st=V.charCodeAt(0),at=V.charCodeAt(1);if(t.es6){let it=(st-55296)*1024+at-56320+65536;return"\\u{"+ks(it,o)+"}"}return Oi(ks(st,o))+Oi(ks(at,o))}if(ie)return Oi(ks(ie.charCodeAt(0),o));if(j=="\x00"&&!i&&!epe.test(Fe.charAt(ke+1)))return"\\0";if(ge){if(ge==n||t.escapeEverything)return"\\"+ge;return ge}if(Zce.test(j))return Qce[j];if(t.minimal&&!tpe.test(j))return j;let Je=ks(j.charCodeAt(0),o);if(i||Je.length>2)return Oi(Je);return"\\x"+("00"+Je).slice(-2)}),n=="`")g=g.replace(/\$\{/g,"\\${");if(t.isScriptContext)g=g.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,i?"\\u003C!--":"\\x3C!--");if(t.wrap)g=n+g+n;return g};sr.version="3.0.2";sm.exports=sr});var ki=A(function(om){Object.defineProperty(om,"__esModule",{value:!0});om.ArgumentPlaceholder=upe;om.ArrayPattern=om.ArrayExpression=dpe;om.BigIntLiteral=gpe;om.BooleanLiteral=ype;om.Identifier=lpe;om.NullLiteral=Tpe;om.NumericLiteral=xpe;om.ObjectPattern=om.ObjectExpression=ppe;om.ObjectMethod=fpe;om.ObjectProperty=hpe;om.PipelineBareFunction=Ppe;om.PipelinePrimaryTopicReference=Ape;om.PipelineTopicExpression=Epe;om.RegExpLiteral=mpe;om.SpreadElement=om.RestElement=cpe;om.StringLiteral=Spe;om.TopicReference=bpe;om.VoidPattern=vpe;om._getRawIdentifier=ope;var ipe=ae(),am=im(),npe=Ns(),{isAssignmentPattern:ape,isIdentifier:no}=ipe,_i="";function ope(e){let{name:t}=e,r=this.tokenMap.find(e,(s)=>s.value===t);if(r)return _i=this._originalCode.slice(r.start,r.end),_i;return _i=e.name}function lpe(e){if(this._buf._map){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name)}this.word(this.tokenMap?_i:e.name)}function upe(){this.tokenChar(63)}function cpe(e){this.token("..."),this.print(e.argument)}function ppe(e){let t=e.properties;if(this.tokenChar(123),t.length){let r=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0,void 0,!0),this.space(),this._noLineTerminatorAfterNode=r}this.rightBrace(e)}function fpe(e){this.printJoin(e.decorators),npe._methodHead.call(this,e),this.space(),this.print(e.body)}function hpe(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(ape(e.value)&&no(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}if(this.print(e.key),e.shorthand&&no(e.key)&&no(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)}function dpe(e){let t=e.elements,r=t.length;this.tokenChar(91);let s=this.enterDelimited();for(let i=0;i<t.length;i++){let n=t[i];if(n){if(i>0)this.space();if(this.print(n,void 0,!0),i<r-1||this.shouldPrintTrailingComma("]"))this.tokenChar(44,i)}else this.tokenChar(44,i)}this._noLineTerminatorAfterNode=s,this.tokenChar(93)}function mpe(e){this.word(`/${e.pattern}/${e.flags}`,!1)}function ype(e){this.word(e.value?"true":"false")}function Tpe(){this.word("null")}function xpe(e){let t=this.getPossibleRaw(e),r=this.format.jsescOption,s=e.value,i=s+"";if(r.numbers)this.number(am(s,r),s);else if(t==null)this.number(i,s);else if(this.format.minified)this.number(t.length<i.length?t:i,s);else this.number(t,s)}function Spe(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let r=am(e.value,this.format.jsescOption);this.token(r)}function gpe(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"n")}var nm=new Set(["^^","@@","^","%","#"]);function bpe(){let{topicToken:e}=this.format;if(nm.has(e))this.token(e);else{let t=JSON.stringify(e),r=Array.from(nm,(s)=>JSON.stringify(s));throw Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}}function Epe(e){this.print(e.expression)}function Ppe(e){this.print(e.callee)}function Ape(){this.tokenChar(35)}function vpe(){this.word("void")}});var lo=A(function(Fi){Object.defineProperty(Fi,"__esModule",{value:!0});Fi.AnyTypeAnnotation=Hpe;Fi.ArrayTypeAnnotation=zpe;Fi.BooleanLiteralTypeAnnotation=Qpe;Fi.BooleanTypeAnnotation=Gpe;Fi.DeclareClass=efe;Fi.DeclareExportAllDeclaration=pfe;Fi.DeclareExportDeclaration=cfe;Fi.DeclareFunction=tfe;Fi.DeclareInterface=ife;Fi.DeclareModule=nfe;Fi.DeclareModuleExports=afe;Fi.DeclareOpaqueType=lfe;Fi.DeclareTypeAlias=ofe;Fi.DeclareVariable=ufe;Fi.DeclaredPredicate=sfe;Fi.EmptyTypeAnnotation=Ofe;Fi.EnumBooleanBody=hfe;Fi.EnumBooleanMember=xfe;Fi.EnumDeclaration=ffe;Fi.EnumDefaultedMember=Tfe;Fi.EnumNumberBody=dfe;Fi.EnumNumberMember=Sfe;Fi.EnumStringBody=mfe;Fi.EnumStringMember=gfe;Fi.EnumSymbolBody=yfe;Fi.ExistsTypeAnnotation=Efe;Fi.FunctionTypeAnnotation=Pfe;Fi.FunctionTypeParam=Afe;Fi.IndexedAccessType=Zfe;Fi.InferredPredicate=rfe;Fi.InterfaceDeclaration=um;Fi.GenericTypeAnnotation=Fi.ClassImplements=Fi.InterfaceExtends=vfe;Fi.InterfaceTypeAnnotation=Ife;Fi.IntersectionTypeAnnotation=wfe;Fi.MixedTypeAnnotation=Nfe;Fi.NullLiteralTypeAnnotation=Zpe;Fi.NullableTypeAnnotation=_fe;Object.defineProperty(Fi,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return lm.NumericLiteral}});Fi.NumberTypeAnnotation=kfe;Fi.ObjectTypeAnnotation=qfe;Fi.ObjectTypeCallProperty=Kfe;Fi.ObjectTypeIndexer=Vfe;Fi.ObjectTypeInternalSlot=Ufe;Fi.ObjectTypeProperty=Yfe;Fi.ObjectTypeSpreadProperty=Jfe;Fi.OpaqueType=pm;Fi.OptionalIndexedAccessType=ehe;Fi.QualifiedTypeIdentifier=Wfe;Object.defineProperty(Fi,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return lm.StringLiteral}});Fi.StringTypeAnnotation=Dfe;Fi.SymbolTypeAnnotation=Xfe;Fi.ThisTypeAnnotation=Lfe;Fi.TupleTypeAnnotation=Mfe;Fi.TypeAlias=cm;Fi.TypeAnnotation=Ffe;Fi.TypeCastExpression=zfe;Fi.TypeParameter=Rfe;Fi.TypeParameterDeclaration=Fi.TypeParameterInstantiation=jfe;Fi.TypeofTypeAnnotation=Bfe;Fi.UnionTypeAnnotation=Hfe;Fi.Variance=Gfe;Fi.VoidTypeAnnotation=Qfe;Fi._interfaceish=oo;Fi._variance=Bi;var Jpe=ae(),Wpe=so(),Xpe=rr(),lm=ki(),{isDeclareExportDeclaration:Di,isStatement:$pe}=Jpe;function Hpe(){this.word("any")}function zpe(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function Gpe(){this.word("boolean")}function Qpe(e){this.word(e.value?"true":"false")}function Zpe(){this.word("null")}function efe(e,t){if(!Di(t))this.word("declare"),this.space();this.word("class"),this.space(),oo.call(this,e)}function tfe(e,t){if(!Di(t))this.word("declare"),this.space();if(this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate)this.space(),this.print(e.predicate);this.semicolon()}function rfe(){this.tokenChar(37),this.word("checks")}function sfe(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)}function ife(e){this.word("declare"),this.space(),um.call(this,e)}function nfe(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)}function afe(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)}function ofe(e){this.word("declare"),this.space(),cm.call(this,e)}function lfe(e,t){if(!Di(t))this.word("declare"),this.space();pm.call(this,e)}function ufe(e,t){if(!Di(t))this.word("declare"),this.space();this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()}function cfe(e){if(this.word("declare"),this.space(),this.word("export"),this.space(),e.default)this.word("default"),this.space();bfe.call(this,e)}function pfe(e){this.word("declare"),this.space(),Wpe.ExportAllDeclaration.call(this,e)}function ffe(e){let{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r)}function Li(e,t,r){if(r)e.space(),e.word("of"),e.space(),e.word(t);e.space()}function Mi(e,t){let{members:r}=t;e.token("{"),e.indent(),e.newline();for(let s of r)e.print(s),e.newline();if(t.hasUnknownMembers)e.token("..."),e.newline();e.dedent(),e.token("}")}function hfe(e){let{explicitType:t}=e;Li(this,"boolean",t),Mi(this,e)}function dfe(e){let{explicitType:t}=e;Li(this,"number",t),Mi(this,e)}function mfe(e){let{explicitType:t}=e;Li(this,"string",t),Mi(this,e)}function yfe(e){Li(this,"symbol",!0),Mi(this,e)}function Tfe(e){let{id:t}=e;this.print(t),this.tokenChar(44)}function ao(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function xfe(e){ao(this,e)}function Sfe(e){ao(this,e)}function gfe(e){ao(this,e)}function bfe(e){if(e.declaration){let t=e.declaration;if(this.print(t),!$pe(t))this.semicolon()}else{if(this.tokenChar(123),e.specifiers.length)this.space(),this.printList(e.specifiers),this.space();if(this.tokenChar(125),e.source)this.space(),this.word("from"),this.space(),this.print(e.source);this.semicolon()}}function Efe(){this.tokenChar(42)}function Pfe(e,t){if(this.print(e.typeParameters),this.tokenChar(40),e.this){if(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),e.params.length||e.rest)this.tokenChar(44),this.space()}if(this.printList(e.params),e.rest){if(e.params.length)this.tokenChar(44),this.space();this.token("..."),this.print(e.rest)}this.tokenChar(41);let r=t==null?void 0:t.type;if(r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method))this.tokenChar(58);else this.space(),this.token("=>");this.space(),this.print(e.returnType)}function Afe(e){if(this.print(e.name),e.optional)this.tokenChar(63);if(e.name)this.tokenChar(58),this.space();this.print(e.typeAnnotation)}function vfe(e){this.print(e.id),this.print(e.typeParameters,!0)}function oo(e){var t;if(this.print(e.id),this.print(e.typeParameters),(t=e.extends)!=null&&t.length)this.space(),this.word("extends"),this.space(),this.printList(e.extends);if(e.type==="DeclareClass"){var r,s;if((r=e.mixins)!=null&&r.length)this.space(),this.word("mixins"),this.space(),this.printList(e.mixins);if((s=e.implements)!=null&&s.length)this.space(),this.word("implements"),this.space(),this.printList(e.implements)}this.space(),this.print(e.body)}function Bi(e){var t;let r=(t=e.variance)==null?void 0:t.kind;if(r!=null){if(r==="plus")this.tokenChar(43);else if(r==="minus")this.tokenChar(45)}}function um(e){this.word("interface"),this.space(),oo.call(this,e)}function Cfe(e){this.space(),this.token("&",!1,e),this.space()}function Ife(e){var t;if(this.word("interface"),(t=e.extends)!=null&&t.length)this.space(),this.word("extends"),this.space(),this.printList(e.extends);this.space(),this.print(e.body)}function wfe(e){this.printJoin(e.types,void 0,void 0,Cfe)}function Nfe(){this.word("mixed")}function Ofe(){this.word("empty")}function _fe(e){this.tokenChar(63),this.print(e.typeAnnotation)}function kfe(){this.word("number")}function Dfe(){this.word("string")}function Lfe(){this.word("this")}function Mfe(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)}function Bfe(e){this.word("typeof"),this.space(),this.print(e.argument)}function cm(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()}function Ffe(e,t){if(this.tokenChar(58),this.space(),t.type==="ArrowFunctionExpression")this.tokenContext|=Xpe.TokenContext.arrowFlowReturnType;else if(e.optional)this.tokenChar(63);this.print(e.typeAnnotation)}function jfe(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)}function Rfe(e){if(Bi.call(this,e),this.word(e.name),e.bound)this.print(e.bound);if(e.default)this.space(),this.tokenChar(61),this.space(),this.print(e.default)}function pm(e){if(this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype)this.tokenChar(58),this.space(),this.print(e.supertype);if(e.impltype)this.space(),this.tokenChar(61),this.space(),this.print(e.impltype);this.semicolon()}function qfe(e){if(e.exact)this.token("{|");else this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];if(t.length)this.newline(),this.space(),this.printJoin(t,!0,!0,()=>{if(t.length!==1||e.inexact)this.tokenChar(44),this.space()},!0),this.space();if(e.inexact){if(this.indent(),this.token("..."),t.length)this.newline();this.dedent()}if(e.exact)this.token("|}");else this.tokenChar(125)}function Ufe(e){if(e.static)this.word("static"),this.space();if(this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional)this.tokenChar(63);if(!e.method)this.tokenChar(58),this.space();this.print(e.value)}function Kfe(e){if(e.static)this.word("static"),this.space();this.print(e.value)}function Vfe(e){if(e.static)this.word("static"),this.space();if(Bi.call(this,e),this.tokenChar(91),e.id)this.print(e.id),this.tokenChar(58),this.space();this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)}function Yfe(e){if(e.proto)this.word("proto"),this.space();if(e.static)this.word("static"),this.space();if(e.kind==="get"||e.kind==="set")this.word(e.kind),this.space();if(Bi.call(this,e),this.print(e.key),e.optional)this.tokenChar(63);if(!e.method)this.tokenChar(58),this.space();this.print(e.value)}function Jfe(e){this.token("..."),this.print(e.argument)}function Wfe(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)}function Xfe(){this.word("symbol")}function $fe(e){this.space(),this.token("|",!1,e),this.space()}function Hfe(e){this.printJoin(e.types,void 0,void 0,$fe)}function zfe(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)}function Gfe(e){if(e.kind==="plus")this.tokenChar(43);else this.tokenChar(45)}function Qfe(){this.word("void")}function Zfe(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function ehe(e){if(this.print(e.objectType),e.optional)this.token("?.");this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}});var ro=A(function(hm){Object.defineProperty(hm,"__esModule",{value:!0});hm.ClassAccessorProperty=xde;hm.ClassBody=mde;hm.ClassExpression=hm.ClassDeclaration=dde;hm.ClassMethod=gde;hm.ClassPrivateMethod=bde;hm.ClassPrivateProperty=Sde;hm.ClassProperty=Tde;hm.StaticBlock=Ede;hm._classMethodHead=uo;var ude=ae(),cde=Ci(),ji=to(),fm=lo(),pde=Ns(),{isExportDefaultDeclaration:fde,isExportNamedDeclaration:hde}=ude;function dde(e,t){if(!(fde(t)||hde(t))||!cde._shouldPrintDecoratorsBeforeExport.call(this,t))this.printJoin(e.decorators);if(e.declare)this.word("declare"),this.space();if(e.abstract)this.word("abstract"),this.space();if(this.word("class"),e.id)this.space(),this.print(e.id);if(this.print(e.typeParameters),e.superClass)this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters);if(e.implements)this.space(),this.word("implements"),this.space(),this.printList(e.implements);this.space(),this.print(e.body)}function mde(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else{let t=yde(this,e);t==null||t(-1);let r=this.enterDelimited();if(this.printJoin(e.body,!0,!0,t,!0,!0),this._noLineTerminatorAfterNode=r,!this.endsWith(10))this.newline();this.rightBrace(e)}}function yde(e,t){if(!e.tokenMap||t.start==null||t.end==null)return null;let r=e.tokenMap.getIndexes(t);if(!r)return null;let s=1,i=0,n=0,a=()=>{while(n<t.body.length&&t.body[n].start==null)n++};return a(),(o)=>{if(n<=o)n=o+1,a();let l=n===t.body.length?t.end:t.body[n].start,u;while(s<r.length&&e.tokenMap.matchesOriginal(u=e._tokens[r[s]],";")&&u.start<l)e.tokenChar(59,i++),s++}}function Tde(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;if(r)this.catchUp(r)}if(ji._tsPrintClassMemberModifiers.call(this,e),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else fm._variance.call(this,e),this.print(e.key);if(e.optional)this.tokenChar(63);if(e.definite)this.tokenChar(33);if(this.print(e.typeAnnotation),e.value)this.space(),this.tokenChar(61),this.space(),this.print(e.value);this.semicolon()}function xde(e){var t;this.printJoin(e.decorators);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;if(r)this.catchUp(r);if(ji._tsPrintClassMemberModifiers.call(this,e),this.word("accessor",!0),this.space(),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else fm._variance.call(this,e),this.print(e.key);if(e.optional)this.tokenChar(63);if(e.definite)this.tokenChar(33);if(this.print(e.typeAnnotation),e.value)this.space(),this.tokenChar(61),this.space(),this.print(e.value);this.semicolon()}function Sde(e){if(this.printJoin(e.decorators),ji._tsPrintClassMemberModifiers.call(this,e),this.print(e.key),e.optional)this.tokenChar(63);if(e.definite)this.tokenChar(33);if(this.print(e.typeAnnotation),e.value)this.space(),this.tokenChar(61),this.space(),this.print(e.value);this.semicolon()}function gde(e){uo.call(this,e),this.space(),this.print(e.body)}function bde(e){uo.call(this,e),this.space(),this.print(e.body)}function uo(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;if(r)this.catchUp(r)}ji._tsPrintClassMemberModifiers.call(this,e),pde._methodHead.call(this,e)}function Ede(e){if(this.word("static"),this.space(),this.tokenChar(123),e.body.length===0)this.tokenChar(125);else this.newline(),this.printSequence(e.body,!0),this.rightBrace(e)}});var mm=A(function(dm){Object.defineProperty(dm,"__esModule",{value:!0});dm.BlockStatement=Lde;dm.Directive=Mde;dm.DirectiveLiteral=jde;dm.File=kde;dm.InterpreterDirective=Rde;dm.Placeholder=qde;dm.Program=Dde;function kde(e){if(e.program)this.print(e.program.interpreter);this.print(e.program)}function Dde(e){var t;this.printInnerComments(!1);let r=(t=e.directives)==null?void 0:t.length;if(r){var s;let i=e.body.length?2:1;if(this.printSequence(e.directives,void 0,void 0,i),!((s=e.directives[r-1].trailingComments)!=null&&s.length))this.newline(i)}this.printSequence(e.body)}function Lde(e){var t;this.tokenChar(123);let r=this.enterDelimited(),s=(t=e.directives)==null?void 0:t.length;if(s){var i;let n=e.body.length?2:1;if(this.printSequence(e.directives,!0,!0,n),!((i=e.directives[s-1].trailingComments)!=null&&i.length))this.newline(n)}this.printSequence(e.body,!0,!0),this._noLineTerminatorAfterNode=r,this.rightBrace(e)}function Mde(e){this.print(e.value),this.semicolon()}var Bde=/(?:^|[^\\])(?:\\\\)*'/,Fde=/(?:^|[^\\])(?:\\\\)*"/;function jde(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let{value:r}=e;if(!Fde.test(r))this.token(`"${r}"`);else if(!Bde.test(r))this.token(`'${r}'`);else throw Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function Rde(e){this.token(`#!${e.value}`),this._newline()}function qde(e){if(this.token("%%"),this.print(e.name),this.token("%%"),e.expectedNode==="Statement")this.semicolon()}});var Tm=A(function(ym){Object.defineProperty(ym,"__esModule",{value:!0});ym.JSXAttribute=$de;ym.JSXClosingElement=nme;ym.JSXClosingFragment=ume;ym.JSXElement=rme;ym.JSXEmptyExpression=ame;ym.JSXExpressionContainer=Zde;ym.JSXFragment=ome;ym.JSXIdentifier=Hde;ym.JSXMemberExpression=Gde;ym.JSXNamespacedName=zde;ym.JSXOpeningElement=ime;ym.JSXOpeningFragment=lme;ym.JSXSpreadAttribute=Qde;ym.JSXSpreadChild=eme;ym.JSXText=tme;function $de(e){if(this.print(e.name),e.value)this.tokenChar(61),this.print(e.value)}function Hde(e){this.word(e.name)}function zde(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)}function Gde(e){this.print(e.object),this.tokenChar(46),this.print(e.property)}function Qde(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)}function Zde(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)}function eme(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)}function tme(e){let t=this.getPossibleRaw(e);if(t!==void 0)this.token(t,!0);else this.token(e.value,!0)}function rme(e){let t=e.openingElement;if(this.print(t),t.selfClosing)return;this.indent();for(let r of e.children)this.print(r);this.dedent(),this.print(e.closingElement)}function sme(){this.space()}function ime(e){if(this.tokenChar(60),this.print(e.name),e.typeArguments)this.print(e.typeArguments);if(this.print(e.typeParameters),e.attributes.length>0)this.space(),this.printJoin(e.attributes,void 0,void 0,sme);if(e.selfClosing)this.space(),this.tokenChar(47);this.tokenChar(62)}function nme(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)}function ame(){this.printInnerComments()}function ome(e){this.print(e.openingFragment),this.indent();for(let t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)}function lme(){this.tokenChar(60),this.tokenChar(62)}function ume(){this.token("</"),this.tokenChar(62)}});var xm=A(function(xe){Object.defineProperty(xe,"__esModule",{value:!0});var co=Ga();Object.keys(co).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===co[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return co[e]}})});var po=Ci();Object.keys(po).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===po[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return po[e]}})});var fo=jd();Object.keys(fo).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===fo[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return fo[e]}})});var ho=ro();Object.keys(ho).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===ho[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return ho[e]}})});var mo=Ns();Object.keys(mo).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===mo[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return mo[e]}})});var yo=so();Object.keys(yo).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===yo[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return yo[e]}})});var To=ki();Object.keys(To).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===To[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return To[e]}})});var xo=lo();Object.keys(xo).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===xo[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return xo[e]}})});var So=mm();Object.keys(So).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===So[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return So[e]}})});var go=Tm();Object.keys(go).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===go[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return go[e]}})});var bo=to();Object.keys(bo).forEach(function(e){if(e==="default"||e==="__esModule")return;if(e in xe&&xe[e]===bo[e])return;Object.defineProperty(xe,e,{enumerable:!0,get:function(){return bo[e]}})})});var gm=A(function(Sm){Object.defineProperty(Sm,"__esModule",{value:!0});Sm.DecimalLiteral=Ime;Sm.Noop=vme;Sm.RecordExpression=wme;Sm.TSExpressionWithTypeArguments=Cme;Sm.TupleExpression=Nme;function vme(){}function Cme(e){this.print(e.expression),this.print(e.typeParameters)}function Ime(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"m")}function wme(e){let t=e.properties,r,s;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",s="|}";else if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);else r="#{",s="}";if(this.token(r),t.length)this.space(),this.printList(t,this.shouldPrintTrailingComma(s),!0,!0),this.space();this.token(s)}function Nme(e){let t=e.elements,r=t.length,s,i;if(this.format.recordAndTupleSyntaxType==="bar")s="[|",i="|]";else if(this.format.recordAndTupleSyntaxType==="hash")s="#[",i="]";else throw Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(s);for(let n=0;n<t.length;n++){let a=t[n];if(a){if(n>0)this.space();if(this.print(a),n<r-1||this.shouldPrintTrailingComma(i))this.token(",",!1,n)}}this.token(i)}});var Eo=A(function(vm){Object.defineProperty(vm,"__esModule",{value:!0});vm.generatorInfosMap=void 0;var bm=xm(),Em=gm(),Pm=vm.generatorInfosMap=new Map,Am=0;for(let e of Object.keys(bm).sort()){if(e.startsWith("_"))continue;Pm.set(e,[bm[e],Am++,void 0])}for(let e of Object.keys(Em))Pm.set(e,[Em[e],Am++,void 0])});var rr=A(function(Nm){Object.defineProperty(Nm,"__esModule",{value:!0});Nm.TokenContext=void 0;Nm.isLastChild=Rme;Nm.parentNeedsParens=jme;var Im=_d(),Mme=ae(),wm=Eo(),{VISITOR_KEYS:Bme}=Mme,n2e=Nm.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};for(let e of Object.keys(Im)){let t=Im[e];if(wm.generatorInfosMap.has(e))wm.generatorInfosMap.get(e)[2]=t}function Fme(e){let t=e;while(!0)switch(t.type){case"CallExpression":case"ImportExpression":case"OptionalCallExpression":case"OptionalMemberExpression":return!0;case"MemberExpression":t=t.object;break;case"TaggedTemplateExpression":t=t.tag;break;case"TSNonNullExpression":t=t.expression;break;default:return!1}}function jme(e,t,r){switch(r){case 112:if(t.callee===e)return Fme(e);break;case 42:return!Po(e)&&!(e.type==="CallExpression"&&Po(e.callee))&&e.type!=="ParenthesizedExpression"}return!1}function Po(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&Po(e.object);default:return!1}}function Rme(e,t){let r=Bme[e.type];for(let s=r.length-1;s>=0;s--){let i=e[r[s]];if(i===t)return!0;else if(Array.isArray(i)){let n=i.length-1;while(n>=0&&i[n]===null)n--;return n>=0&&i[n]===t}else if(i)return!1}return!1}});var Lm=A(function(km){Object.defineProperty(km,"__esModule",{value:!0});km.TokenMap=void 0;var Kme=ae(),{traverseFast:Vme,VISITOR_KEYS:Yme}=Kme;class _m{constructor(e,t,r){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=t,this._source=r,Vme(e,(s)=>{let i=this._getTokensIndexesOfNode(s);if(i.length>0)this._nodesToTokenIndexes.set(s,i)}),this._tokensCache.clear()}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){let r=this._nodesToTokenIndexes.get(e);if(r)for(let s=0;s<r.length;s++){let i=r[s],n=this._tokens[i];if(t(n,i))return n}return null}findLastIndex(e,t){let r=this._nodesToTokenIndexes.get(e);if(r)for(let s=r.length-1;s>=0;s--){let i=r[s],n=this._tokens[i];if(t(n,i))return i}return-1}findMatching(e,t,r=0){let s=this._nodesToTokenIndexes.get(e);if(s){if(typeof t==="number")t=String.fromCharCode(t);let i=0,n=r;if(n>1){let a=this._nodesOccurrencesCountCache.get(e);if((a==null?void 0:a.test)===t&&a.count<n)i=a.i+1,r-=a.count+1}for(;i<s.length;i++){let a=this._tokens[s[i]];if(this.matchesOriginal(a,t)){if(r===0){if(n>0)this._nodesOccurrencesCountCache.set(e,{test:t,count:n,i});return a}r--}}}return null}matchesOriginal(e,t){if(e.end-e.start!==t.length)return!1;if(e.value!=null)return e.value===t;return this._source.startsWith(t,e.start)}startMatches(e,t){let r=this._nodesToTokenIndexes.get(e);if(!r)return!1;let s=this._tokens[r[0]];if(s.start!==e.start)return!1;return this.matchesOriginal(s,t)}endMatches(e,t){let r=this._nodesToTokenIndexes.get(e);if(!r)return!1;let s=this._tokens[r[r.length-1]];if(s.end!==e.end)return!1;return this.matchesOriginal(s,t)}_getTokensIndexesOfNode(e){var t;if(e.start==null||e.end==null)return[];let{first:r,last:s}=this._findTokensOfNode(e,0,this._tokens.length-1),i=r,n=Jme(e);if((e.type==="ExportNamedDeclaration"||e.type==="ExportDefaultDeclaration")&&((t=e.declaration)==null?void 0:t.type)==="ClassDeclaration")n.next();let a=[];for(let o of n){if(o==null)continue;if(o.start==null||o.end==null)continue;let l=this._findTokensOfNode(o,i,s),u=l.first;for(let p=i;p<u;p++)a.push(p);i=l.last+1}for(let o=i;o<=s;o++)a.push(o);return a}_findTokensOfNode(e,t,r){let s=this._tokensCache.get(e);if(s)return s;let i=this._findFirstTokenOfNode(e.start,t,r),n=this._findLastTokenOfNode(e.end,i,r);return this._tokensCache.set(e,{first:i,last:n}),{first:i,last:n}}_findFirstTokenOfNode(e,t,r){while(t<=r){let s=r+t>>1;if(e<this._tokens[s].start)r=s-1;else if(e>this._tokens[s].start)t=s+1;else return s}return t}_findLastTokenOfNode(e,t,r){while(t<=r){let s=r+t>>1;if(e<this._tokens[s].end)r=s-1;else if(e>this._tokens[s].end)t=s+1;else return s}return r}}km.TokenMap=_m;function*Jme(e){if(e.type==="TemplateLiteral"){yield e.quasis[0];for(let r=1;r<e.quasis.length;r++)yield e.expressions[r-1],yield e.quasis[r];return}let t=Yme[e.type];for(let r of t){let s=e[r];if(!s)continue;if(Array.isArray(s))yield*s;else yield s}}});var qm=A(function(jm){Object.defineProperty(jm,"__esModule",{value:!0});jm.default=void 0;var Wme=Pd(),ir=rr(),Xme=Eo(),$me=ae(),Hme=Lm(),zme=ki(),{isExpression:Gme,isFunction:Qme,isStatement:Zme,isClassBody:eye,isTSInterfaceBody:tye,isTSEnumMember:rye}=$me,sye=/e/i,iye=/\.0+$/,Bm=/[\n\r\u2028\u2029]/,nye=/[\n\r\u2028\u2029]|\*\//;function Mm(e){return e.type==="CommentLine"||Bm.test(e.value)}class Fm{constructor(e,t,r=null,s=null){this.tokenContext=ir.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._currentTypeId=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._lastCommentLine=0,this._innerCommentsState=0,this._flags=0,this.tokenMap=null,this._boundGetRawIdentifier=null,this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=e,this._tokens=r,this._originalCode=s,this._indentRepeat=e.indent.style.length,this._inputMap=(t==null?void 0:t._inputMap)||null,this._buf=new Wme.default(t,e.indent.style[0]);let{preserveFormat:i,compact:n,concise:a,retainLines:o,retainFunctionParens:l}=e;if(i)this._flags|=1;if(n)this._flags|=2;if(a)this._flags|=4;if(o)this._flags|=8;if(l)this._flags|=16;if(e.auxiliaryCommentBefore||e.auxiliaryCommentAfter)this._flags|=32}enterDelimited(){let e=this._noLineTerminatorAfterNode;if(e!==null)this._noLineTerminatorAfterNode=null;return e}generate(e){if(this.format.preserveFormat)this.tokenMap=new Hme.TokenMap(e,this._tokens,this._originalCode),this._boundGetRawIdentifier=zme._getRawIdentifier.bind(this);return this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(e=this._flags){if(e&7)return;this._indent+=this._indentRepeat}dedent(e=this._flags){if(e&7)return;this._indent-=this._indentRepeat}semicolon(e=!1){let t=this._flags;if(t&32)this._maybeAddAuxComment();if(t&1){let r=this._currentNode;if(r.start!=null&&r.end!=null){if(!this.tokenMap.endMatches(r,";")){this._printSemicolonBeforeNextNode=this._buf.getCurrentLine();return}let s=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[s[s.length-1]].loc.start)}}if(e)this._appendChar(59);else this._queue(59);this._noLineTerminator=!1}rightBrace(e){if(this.format.minified)this._buf.removeLastSemicolon();this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(e=!1){if(this._flags&3)return;if(e)this._space();else{let t=this.getLastChar(!0);if(t!==0&&t!==32&&t!==10)this._space()}}word(e,t=!1){this.tokenContext&=ir.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e);let r=this._flags;if(r&32)this._maybeAddAuxComment();if(r&1)this._catchUpToCurrentToken(e);let s=this.getLastChar();if(s===-2||s===-3||s===47&&e.charCodeAt(0)===47)this._space();this._append(e,!1),this.setLastChar(-3),this._noLineTerminator=t}number(e,t){function r(s){if(s.length>2&&s.charCodeAt(0)===48){let i=s.charCodeAt(1);return i===98||i===111||i===120}return!1}if(this.word(e),Number.isInteger(t)&&!r(e)&&!sye.test(e)&&!iye.test(e)&&e.charCodeAt(e.length-1)!==46)this.setLastChar(-2)}token(e,t=!1,r=0,s=!1){this.tokenContext&=ir.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,r);let i=this._flags;if(i&32)this._maybeAddAuxComment();if(i&1)this._catchUpToCurrentToken(e,r);if(s){let n=e.charCodeAt(0);if((n===45&&e==="--"||n===61)&&this.getLastChar()===33||n===43&&this.getLastChar()===43||n===45&&this.getLastChar()===45||n===46&&this.getLastChar()===-2)this._space()}this._append(e,t),this._noLineTerminator=!1}tokenChar(e,t=0){this.tokenContext&=ir.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,t);let r=this._flags;if(r&32)this._maybeAddAuxComment();if(r&1)this._catchUpToCurrentToken(e,t);if(e===43&&this.getLastChar()===43||e===45&&this.getLastChar()===45||e===46&&this.getLastChar()===-2)this._space();this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t=this._flags){if(e<=0)return;if(t&10)return;if(t&4){this.space();return}if(e>2)e=2;e-=this._buf.getNewlineCount();for(let r=0;r<e;r++)this._newline()}endsWith(e){return this.getLastChar(!0)===e}getLastChar(e){return this._buf.getLastChar(e)}setLastChar(e){this._buf._last=e}exactSource(e,t){if(!e){t();return}this._catchUp("start",e),this._buf.exactSource(e,t)}source(e,t){if(!t)return;this._catchUp(e,t),this._buf.source(e,t)}sourceWithOffset(e,t,r){if(!t||this.format.preserveFormat)return;this._catchUp(e,t),this._buf.sourceWithOffset(e,t,r)}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;let r=this._buf._sourcePosition;r.identifierNamePos=t,r.identifierName=e}_space(){this._queue(32)}_newline(){if(this._buf._queuedChar===32)this._buf._queuedChar=0;this._appendChar(10,!0)}_catchUpToCurrentToken(e,t=0){let r=this.tokenMap.findMatching(this._currentNode,e,t);if(r)this._catchUpTo(r.loc.start);if(this._printSemicolonBeforeNextToken!==-1&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine())this._appendChar(59,!0);this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(),this._buf.append(e,t)}_appendChar(e,t){if(!t)this._maybeIndent();this._buf.appendChar(e)}_queue(e){this._buf.queue(e),this.setLastChar(-1)}_maybeIndent(){let e=this._shouldIndent();if(e>0)this._buf._appendChar(-1,e,!1)}_shouldIndent(){return this.endsWith(10)?this._indent:0}catchUp(e){if(!this.format.retainLines)return;let t=e-this._buf.getCurrentLine();for(let r=0;r<t;r++)this._newline()}_catchUp(e,t){let r=this._flags;if((r&1)===0){if(r&8&&t!=null&&t[e])this.catchUp(t[e].line);return}let s=t==null?void 0:t[e];if(s!=null)this._catchUpTo(s)}_catchUpTo({line:e,column:t,index:r}){let s=e-this._buf.getCurrentLine();if(s>0&&this._noLineTerminator)return;for(let n=0;n<s;n++)this._newline();let i=s>0?t:t-this._buf.getCurrentColumn();if(i>0){let n=this._originalCode?this._originalCode.slice(r-i,r).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(i);this._buf.append(n,!1,!0),this._buf.setSourcePosition(e,t),this.setLastChar(32)}}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,t=!1,r=!1,s){var i,n;if(!e)return;this._innerCommentsState=0;let{type:a,loc:o,extra:l}=e,u=this._flags,p=!1;if(e._compact)this._flags|=4,p=!0;let m=Xme.generatorInfosMap.get(a);if(m===void 0)throw ReferenceError(`unknown node of type ${JSON.stringify(a)} with constructor ${JSON.stringify(e.constructor.name)}`);let[x,g,E]=m,I=this._currentNode,b=this._currentTypeId;if(this._currentNode=e,this._currentTypeId=g,u&1)this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode;let C;if(u&32)C=this._insideAux,this._insideAux=o==null,this._maybeAddAuxComment(this._insideAux&&!C);let N=0;if(r)if(N=this.tokenContext,N&ir.TokenContext.forInOrInitHeadAccumulate)this.tokenContext=0;else N=0;let z=l!=null&&l.parenthesized,j=z&&u&1||z&&u&16&&g===71||I&&((0,ir.parentNeedsParens)(e,I,b)||E!=null&&E(e,I,b,this.tokenContext,u&1?this._boundGetRawIdentifier:void 0));if(!j&&z&&(i=e.leadingComments)!=null&&i.length&&e.leadingComments[0].type==="CommentBlock")switch(b){case 65:case 243:case 6:case 143:break;case 17:case 130:case 112:if(I.callee!==e)break;default:j=!0}let V=!1;if(!j&&this._noLineTerminator&&((n=e.leadingComments)!=null&&n.some(Mm)||u&8&&o&&o.start.line>this._buf.getCurrentLine()))j=!0,V=!0;let ie;if(!j){if(t||(t=!!I&&this._noLineTerminatorAfterNode===I&&(0,ir.isLastChild)(I,e)),t){var ge;if((ge=e.trailingComments)!=null&&ge.some(Mm)){if(Gme(e))j=!0}else ie=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e}}if(j){if(this.tokenChar(40),V)this.indent();if(this._innerCommentsState=0,!r)N=this.tokenContext;if(N&ir.TokenContext.forInOrInitHeadAccumulate)this.tokenContext=0;ie=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null}if(this._printLeadingComments(e,I),this.exactSource(g===139||g===66?null:o,x.bind(this,e,I)),j){if(this._printTrailingComments(e,I),V)this.dedent(),this.newline();this.tokenChar(41),this._noLineTerminator=t}else if(t&&!this._noLineTerminator)this._noLineTerminator=!0,this._printTrailingComments(e,I);else this._printTrailingComments(e,I,s);if(N)this.tokenContext=N;if(this._currentNode=I,this._currentTypeId=b,p)this._flags=u;if(u&32)this._insideAux=C;if(ie!=null)this._noLineTerminatorAfterNode=ie;this._innerCommentsState=0}_maybeAddAuxComment(e){if(e)this._printAuxBeforeComment();if(!this._insideAux)this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let e=this.format.auxiliaryCommentBefore;if(e)this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let e=this.format.auxiliaryCommentAfter;if(e)this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){let t=e.extra;if((t==null?void 0:t.raw)!=null&&t.rawValue!=null&&e.value===t.rawValue)return t.raw}printJoin(e,t,r,s,i,n,a){if(!(e!=null&&e.length))return;let o=this._flags;if(r==null&&o&8){var l;let m=(l=e[0].loc)==null?void 0:l.start.line;if(m!=null&&m!==this._buf.getCurrentLine())r=!0}if(r)this.indent(o);let u=e.length;for(let m=0;m<u;m++){let x=e[m];if(!x)continue;if(t&&m===0&&this._buf.hasContent())this.newline(1,o);if(this.print(x,!1,n,a||0),s!=null){if(m<u-1)s.call(this,m,!1);else if(i)s.call(this,m,!0)}if(t)if(m+1===u)this.newline(1,o);else{let g=this._lastCommentLine;if(g>0){var p;let E=(((p=e[m+1].loc)==null?void 0:p.start.line)||0)-g;if(E>=0){this.newline(E||1,o);continue}}this.newline(1,o)}}if(r)this.dedent(o)}printAndIndentOnComments(e){let t=e.leadingComments&&e.leadingComments.length>0;if(t)this.indent();if(this.print(e),t)this.dedent()}printBlock(e){if(e.type!=="EmptyStatement")this.space();this.print(e)}_printTrailingComments(e,t,r){let{innerComments:s,trailingComments:i}=e;if(s!=null&&s.length)this._printComments(2,s,e,t,r);if(i!=null&&i.length)this._printComments(2,i,e,t,r);else this._lastCommentLine=0}_printLeadingComments(e,t){let r=e.leadingComments;if(!(r!=null&&r.length))return;this._printComments(0,r,e,t)}_maybePrintInnerComments(e,t){var r;let s=this._innerCommentsState;switch(s&3){case 0:this._innerCommentsState=5;return;case 1:this.printInnerComments((s&4)>0,(r=this.tokenMap)==null?void 0:r.findMatching(this._currentNode,e,t))}}printInnerComments(e=!0,t){let r=this._currentNode,s=r.innerComments;if(!(s!=null&&s.length)){this._innerCommentsState=2;return}let i=this.endsWith(32);if(e)this.indent();switch(this._printComments(1,s,r,void 0,void 0,t)){case 2:this._innerCommentsState=2;case 1:if(i)this.space()}if(e)this.dedent()}noIndentInnerCommentsHere(){this._innerCommentsState&=-5}printSequence(e,t,r,s){this.printJoin(e,!0,t!=null?t:!1,void 0,void 0,r,s)}printList(e,t,r,s,i,n){this.printJoin(e,r,s,i!=null?i:aye,t,n)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;let t=this.tokenMap.findLastIndex(this._currentNode,(r)=>this.tokenMap.matchesOriginal(r,typeof e==="number"?String.fromCharCode(e):e));if(t<=0)return null;return this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_shouldPrintComment(e,t){if(e.ignore)return 0;if(this._printedComments.has(e))return 0;if(this._noLineTerminator&&nye.test(e.value))return 2;if(t&&this.tokenMap){let r=this.tokenMap.find(this._currentNode,(s)=>s.value===e.value);if(r&&r.start>t.start)return 2}if(this._printedComments.add(e),!this.format.shouldPrintComment(e.value))return 0;return 1}_printComment(e,t){let r=this._noLineTerminator,s=e.type==="CommentBlock",i=s&&t!==1&&!r;if(i&&this._buf.hasContent()&&t!==2)this.newline(1);switch(this.getLastChar(!0)){case 47:this._space();case 91:case 123:case 40:break;default:this.space()}let n;if(s){if(n=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var a;let o=(a=e.loc)==null?void 0:a.start.column;if(o){let l=new RegExp("\\n\\s{1,"+o+"}","g");n=n.replace(l,`
25
25
  `)}if(this._flags&4)n=n.replace(/\n(?!$)/g,`
26
26
  `);else{let l=this.format.retainLines?0:this._buf.getCurrentColumn();if(this._shouldIndent()||this.format.retainLines)l+=this._indent;n=n.replace(/\n(?!$)/g,`
27
- ${" ".repeat(l)}`)}}}else if(!r)n=`//${e.value}`;else n=`/*${e.value}*/`;if(this.source("start",e.loc),this._append(n,s),!s&&!r)this._newline();if(i&&t!==3)this.newline(1)}_printComments(e,t,r,s,i=0,n){let a=r.loc,o=t.length,l=!!a,u=l?a.start.line:0,p=l?a.end.line:0,m=0,x=0,{_noLineTerminator:g,_flags:E}=this;for(let I=0;I<o;I++){let b=t[I],C=this._shouldPrintComment(b,n);if(C===2)return I===0?0:1;if(l&&b.loc&&C===1){let N=b.loc.start.line,z=b.loc.end.line;if(e===0){let j=0;if(I===0){if(this._buf.hasContent()&&(b.type==="CommentLine"||N!==z))j=x=1}else j=N-m;if(m=z,j>0&&!g)this.newline(j,E);if(this._printComment(b,1),I+1===o){let V=Math.max(u-m,x);if(V>0&&!g)this.newline(V,E);m=u}}else if(e===1){let j=N-(I===0?u:m);if(m=z,j>0&&!g)this.newline(j,E);if(this._printComment(b,1),I+1===o){let V=Math.min(1,p-m);if(V>0&&!g)this.newline(V,E);m=p}}else{let j=N-(I===0?p-i:m);if(m=z,j>0&&!g)this.newline(j,E);this._printComment(b,1)}}else{if(l=!1,C!==1)continue;if(o===1){let N=b.loc?b.loc.start.line===b.loc.end.line:!Mm.test(b.value),z=N&&!Zme(r)&&!eye(s)&&!tye(s)&&!rye(r);if(e===0)this._printComment(b,z&&r.type!=="ObjectExpression"||N&&Qme(s)&&s.body===r?1:0);else if(z&&e===2)this._printComment(b,1);else this._printComment(b,0)}else if(e===1&&!(r.type==="ObjectExpression"&&r.properties.length>1)&&r.type!=="ClassBody"&&r.type!=="TSInterfaceBody")this._printComment(b,I===0?2:I===o-1?3:0);else this._printComment(b,0)}}if(e===2&&l&&m)this._lastCommentLine=m;return 2}}var l2e=Fm.default=Bm;function aye(e,t){if(this.tokenChar(44,e),!t)this.space()}});var Wm=A(function(Ym){Object.defineProperty(Ym,"__esModule",{value:!0});Ym.default=void 0;Ym.generate=Vm;var qm=Td(),Um=Rm();function Km(e,t,r){var s;if(t.experimental_preserveFormat){if(typeof e!=="string")throw Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&t.compact!=="auto")throw Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(r.tokens))throw Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}let i={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken};if(i.decoratorsBeforeExport=t.decoratorsBeforeExport,i.jsescOption.json=t.jsonCompatibleStrings,i.recordAndTupleSyntaxType=(s=t.recordAndTupleSyntaxType)!=null?s:"hash",i.importAttributesKeyword=t.importAttributesKeyword,i.minified)i.compact=!0,i.shouldPrintComment=i.shouldPrintComment||(()=>i.comments);else i.shouldPrintComment=i.shouldPrintComment||((l)=>i.comments||l.includes("@license")||l.includes("@preserve"));if(i.compact==="auto"){if(i.compact=typeof e==="string"&&e.length>500000,i.compact)console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)}if(i.compact||i.preserveFormat)i.indent.adjustMultilineComment=!1;let{auxiliaryCommentBefore:n,auxiliaryCommentAfter:a,shouldPrintComment:o}=i;if(n&&!o(n))i.auxiliaryCommentBefore=void 0;if(a&&!o(a))i.auxiliaryCommentAfter=void 0;return i}Ym.CodeGenerator=class{constructor(t,r={},s){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=Km(s,r,t),this._map=r.sourceMaps?new qm.default(r,s):null}generate(){return new Um.default(this._format,this._map).generate(this._ast)}};function Vm(e,t={},r){let s=Km(r,t,e),i=t.sourceMaps?new qm.default(t,r):null;return new Um.default(s,i,e.tokens,typeof r==="string"?r:null).generate(e)}var c2e=Ym.default=Vm});var $m=A(function(Xm){Object.defineProperty(Xm,"__esModule",{value:!0});Xm.find=fye;Xm.findParent=pye;Xm.getAncestry=Tye;Xm.getDeepestCommonAncestorFrom=yye;Xm.getEarliestCommonAncestorFrom=mye;Xm.getFunctionParent=hye;Xm.getStatementParent=dye;Xm.inType=gye;Xm.isAncestor=xye;Xm.isDescendant=Sye;var uye=ae(),{VISITOR_KEYS:cye}=uye;function pye(e){let t=this;while(t=t.parentPath)if(e(t))return t;return null}function fye(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function hye(){return this.findParent((e)=>e.isFunction())}function dye(){let e=this;do if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;else e=e.parentPath;while(e);if(e&&(e.isProgram()||e.isFile()))throw Error("File/Program node, we can't possibly find a statement parent to this");return e}function mye(e){return this.getDeepestCommonAncestorFrom(e,function(t,r,s){let i,n=cye[t.type];for(let a of s){let o=a[r+1];if(!i){i=o;continue}if(o.listKey&&i.listKey===o.listKey){if(o.key<i.key){i=o;continue}}let l=n.indexOf(i.parentKey),u=n.indexOf(o.parentKey);if(l>u)i=o}return i})}function yye(e,t){if(!e.length)return this;if(e.length===1)return e[0];let r=1/0,s,i,n=e.map((o)=>{let l=[];do l.unshift(o);while((o=o.parentPath)&&o!==this);if(l.length<r)r=l.length;return l}),a=n[0];e:for(let o=0;o<r;o++){let l=a[o];for(let u of n)if(u[o]!==l)break e;s=o,i=l}if(i)if(t)return t(i,s,n);else return i;else throw Error("Couldn't find intersection")}function Tye(){let e=this,t=[];do t.push(e);while(e=e.parentPath);return t}function xye(e){return e.isDescendant(this)}function Sye(e){return!!this.findParent((t)=>t===e)}function gye(...e){let t=this;while(t){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1}});var Ao=A(function(Gm){Object.defineProperty(Gm,"__esModule",{value:!0});Gm.createUnionType=Mye;var _ye=ae(),{createFlowUnionType:Hm,createTSUnionType:zm,createUnionTypeAnnotation:kye,isFlowType:Dye,isTSType:Lye}=_ye;function Mye(e){if(e.every((t)=>Dye(t))){if(Hm)return Hm(e);return kye(e)}else if(e.every((t)=>Lye(t))){if(zm)return zm(e)}}});var sy=A(function(ry){Object.defineProperty(ry,"__esModule",{value:!0});ry.default=Uye;var Fye=ae(),Zm=Ao(),{BOOLEAN_NUMBER_BINARY_OPERATORS:jye,createTypeAnnotationBasedOnTypeof:Rye,numberTypeAnnotation:ey,voidTypeAnnotation:qye}=Fye;function Uye(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)if(t.identifier.typeAnnotation)return t.identifier.typeAnnotation;else return Kye(t,this,e.name);if(e.name==="undefined")return qye();else if(e.name==="NaN"||e.name==="Infinity")return ey();else if(e.name==="arguments");}function Kye(e,t,r){let s=[],i=[],n=Qm(e,t,i),a=ty(e,t,r);if(a){let o=Qm(e,a.ifStatement);n=n.filter((l)=>!o.includes(l)),s.push(a.typeAnnotation)}if(n.length){n.push(...i);for(let o of n)s.push(o.getTypeAnnotation())}if(!s.length)return;return(0,Zm.createUnionType)(s)}function Qm(e,t,r){let s=e.constantViolations.slice();return s.unshift(e.path),s.filter((i)=>{i=i.resolve();let n=i._guessExecutionStatusRelativeTo(t);if(r&&n==="unknown")r.push(i);return n==="before"})}function Vye(e,t){let r=t.node.operator,s=t.get("right").resolve(),i=t.get("left").resolve(),n;if(i.isIdentifier({name:e}))n=s;else if(s.isIdentifier({name:e}))n=i;if(n){if(r==="===")return n.getTypeAnnotation();if(jye.includes(r))return ey();return}if(r!=="==="&&r!=="==")return;let a,o;if(i.isUnaryExpression({operator:"typeof"}))a=i,o=s;else if(s.isUnaryExpression({operator:"typeof"}))a=s,o=i;if(!a)return;if(!a.get("argument").isIdentifier({name:e}))return;if(o=o.resolve(),!o.isLiteral())return;let l=o.node.value;if(typeof l!=="string")return;return Rye(l)}function Yye(e,t,r){let s;while(s=t.parentPath){if(s.isIfStatement()||s.isConditionalExpression()){if(t.key==="test")return;return s}if(s.isFunction()){if(r==null||s.parentPath.scope.getBinding(r)!==e)return}t=s}}function ty(e,t,r){let s=Yye(e,t,r);if(!s)return;let n=[s.get("test")],a=[];for(let o=0;o<n.length;o++){let l=n[o];if(l.isLogicalExpression()){if(l.node.operator==="&&")n.push(l.get("left")),n.push(l.get("right"))}else if(l.isBinaryExpression()){let u=Vye(r,l);if(u)a.push(u)}}if(a.length)return{typeAnnotation:(0,Zm.createUnionType)(a),ifStatement:s};return ty(e,s,r)}});var py=A(function(Io){Object.defineProperty(Io,"__esModule",{value:!0});Io.ArrayExpression=ly;Io.AssignmentExpression=dTe;Io.BinaryExpression=uTe;Io.BooleanLiteral=xTe;Io.CallExpression=ITe;Io.ConditionalExpression=pTe;Io.ClassDeclaration=Io.ClassExpression=Io.FunctionDeclaration=Io.ArrowFunctionExpression=Io.FunctionExpression=ETe;Object.defineProperty(Io,"Identifier",{enumerable:!0,get:function(){return Xye.default}});Io.LogicalExpression=cTe;Io.NewExpression=aTe;Io.NullLiteral=STe;Io.NumericLiteral=TTe;Io.ObjectExpression=bTe;Io.ParenthesizedExpression=hTe;Io.RegExpLiteral=gTe;Io.RestElement=uy;Io.SequenceExpression=fTe;Io.StringLiteral=yTe;Io.TSAsExpression=oy;Io.TSNonNullExpression=nTe;Io.TaggedTemplateExpression=wTe;Io.TemplateLiteral=oTe;Io.TypeCastExpression=ay;Io.UnaryExpression=lTe;Io.UpdateExpression=mTe;Io.VariableDeclarator=iTe;var Wye=ae(),Xye=sy(),ny=Ao(),{BOOLEAN_BINARY_OPERATORS:$ye,BOOLEAN_UNARY_OPERATORS:Hye,NUMBER_BINARY_OPERATORS:zye,NUMBER_UNARY_OPERATORS:Gye,STRING_UNARY_OPERATORS:Qye,anyTypeAnnotation:iy,arrayTypeAnnotation:vo,booleanTypeAnnotation:Co,buildMatchMemberExpression:Ri,genericTypeAnnotation:ir,identifier:br,nullLiteralTypeAnnotation:Zye,numberTypeAnnotation:Yr,stringTypeAnnotation:Er,tupleTypeAnnotation:eTe,unionTypeAnnotation:tTe,voidTypeAnnotation:rTe,isIdentifier:sTe}=Wye;function iTe(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()}function ay(e){return e.typeAnnotation}ay.validParent=!0;function oy(e){return e.typeAnnotation}oy.validParent=!0;function nTe(){return this.get("expression").getTypeAnnotation()}function aTe(e){if(e.callee.type==="Identifier")return ir(e.callee)}function oTe(){return Er()}function lTe(e){let t=e.operator;if(t==="void")return rTe();else if(Gye.includes(t))return Yr();else if(Qye.includes(t))return Er();else if(Hye.includes(t))return Co()}function uTe(e){let t=e.operator;if(zye.includes(t))return Yr();else if($ye.includes(t))return Co();else if(t==="+"){let r=this.get("right"),s=this.get("left");if(s.isBaseType("number")&&r.isBaseType("number"))return Yr();else if(s.isBaseType("string")||r.isBaseType("string"))return Er();return tTe([Er(),Yr()])}}function cTe(){let e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,ny.createUnionType)(e)}function pTe(){let e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,ny.createUnionType)(e)}function fTe(){return this.get("expressions").pop().getTypeAnnotation()}function hTe(){return this.get("expression").getTypeAnnotation()}function dTe(){return this.get("right").getTypeAnnotation()}function mTe(e){let t=e.operator;if(t==="++"||t==="--")return Yr()}function yTe(){return Er()}function TTe(){return Yr()}function xTe(){return Co()}function STe(){return Zye()}function gTe(){return ir(br("RegExp"))}function bTe(){return ir(br("Object"))}function ly(){return ir(br("Array"))}function uy(){return ly()}uy.validParent=!0;function ETe(){return ir(br("Function"))}var PTe=Ri("Array.from"),ATe=Ri("Object.keys"),vTe=Ri("Object.values"),CTe=Ri("Object.entries");function ITe(){let{callee:e}=this.node;if(ATe(e))return vo(Er());else if(PTe(e)||vTe(e)||sTe(e,{name:"Array"}))return vo(iy());else if(CTe(e))return vo(eTe([Er(),iy()]));return cy(this.get("callee"))}function wTe(){return cy(this.get("tag"))}function cy(e){if(e=e.resolve(),e.isFunction()){let{node:t}=e;if(t.async)if(t.generator)return ir(br("AsyncIterator"));else return ir(br("Promise"));else if(t.generator)return ir(br("Iterator"));else if(e.node.returnType)return e.node.returnType}}});var Ty=A(function(yy){Object.defineProperty(yy,"__esModule",{value:!0});yy._getTypeAnnotation=my;yy.baseTypeStrictlyMatches=bxe;yy.couldBeBaseType=gxe;yy.getTypeAnnotation=xxe;yy.isBaseType=Sxe;yy.isGenericType=Exe;var fy=py(),exe=ae(),{anyTypeAnnotation:dy,isAnyTypeAnnotation:qi,isArrayTypeAnnotation:txe,isBooleanTypeAnnotation:rxe,isEmptyTypeAnnotation:sxe,isFlowBaseAnnotation:ixe,isGenericTypeAnnotation:nxe,isIdentifier:hy,isMixedTypeAnnotation:axe,isNumberTypeAnnotation:oxe,isStringTypeAnnotation:lxe,isTSArrayType:uxe,isTSTypeAnnotation:cxe,isTSTypeReference:pxe,isTupleTypeAnnotation:fxe,isTypeAnnotation:hxe,isUnionTypeAnnotation:dxe,isVoidTypeAnnotation:mxe,stringTypeAnnotation:yxe,voidTypeAnnotation:Txe}=exe;function xxe(){let e=this.getData("typeAnnotation");if(e!=null)return e;if(e=my.call(this)||dy(),hxe(e)||cxe(e))e=e.typeAnnotation;return this.setData("typeAnnotation",e),e}var wo=new WeakSet;function my(){let e=this.node;if(!e)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let r=this.parentPath.parentPath,s=r.parentPath;if(r.key==="left"&&s.isForInStatement())return yxe();if(r.key==="left"&&s.isForOfStatement())return dy();return Txe()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(wo.has(e))return;wo.add(e);try{var t;let r=fy[e.type];if(r)return r.call(this,e);if(r=fy[this.parentPath.type],(t=r)!=null&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{wo.delete(e)}}function Sxe(e,t){return No(e,this.getTypeAnnotation(),t)}function No(e,t,r){if(e==="string")return lxe(t);else if(e==="number")return oxe(t);else if(e==="boolean")return rxe(t);else if(e==="any")return qi(t);else if(e==="mixed")return axe(t);else if(e==="empty")return sxe(t);else if(e==="void")return mxe(t);else if(r)return!1;else throw Error(`Unknown base type ${e}`)}function gxe(e){let t=this.getTypeAnnotation();if(qi(t))return!0;if(dxe(t)){for(let r of t.types)if(qi(r)||No(e,r,!0))return!0;return!1}else return No(e,t,!0)}function bxe(e){let t=this.getTypeAnnotation(),r=e.getTypeAnnotation();if(!qi(t)&&ixe(t))return r.type===t.type;return!1}function Exe(e){let t=this.getTypeAnnotation();if(e==="Array"){if(uxe(t)||txe(t)||fxe(t))return!0}return nxe(t)&&hy(t.id,{name:e})||pxe(t)&&hy(t.typeName,{name:e})}});var gy=A(function(b2e,Oo){var Ki=process||{},xy=Ki.argv||[],Ui=Ki.env||{},Nxe=!(!!Ui.NO_COLOR||xy.includes("--no-color"))&&(!!Ui.FORCE_COLOR||xy.includes("--color")||Ki.platform==="win32"||(Ki.stdout||{}).isTTY&&Ui.TERM!=="dumb"||!!Ui.CI),Oxe=(e,t,r=e)=>(s)=>{let i=""+s,n=i.indexOf(t,e.length);return~n?e+_xe(i,t,r,n)+t:e+i+t},_xe=(e,t,r,s)=>{let i="",n=0;do i+=e.substring(n,s)+r,n=s+t.length,s=e.indexOf(t,n);while(~s);return i+e.substring(n)},Sy=(e=Nxe)=>{let t=e?Oxe:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};Oo.exports=Sy();Oo.exports.createColors=Sy});var Ey=A(function(by){Object.defineProperty(by,"__esModule",{value:!0});by.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;by.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};if(e[1])t.type="string",t.closed=!!(e[3]||e[4]);else if(e[5])t.type="comment";else if(e[6])t.type="comment",t.closed=!!e[7];else if(e[8])t.type="regex";else if(e[9])t.type="number";else if(e[10])t.type="name";else if(e[11])t.type="punctuator";else if(e[12])t.type="whitespace";return t}});var ko=A(function(ky){Object.defineProperty(ky,"__esModule",{value:!0});var _o=gy(),Py=Ey(),Ay=fs();function Lxe(){return typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:_o.isColorSupported}var Vi=(e,t)=>(r)=>e(t(r));function Iy(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:Vi(Vi(e.white,e.bgRed),e.bold),gutter:e.gray,marker:Vi(e.red,e.bold),message:Vi(e.red,e.bold),reset:e.reset}}var Mxe=Iy(_o.createColors(!0)),Bxe=Iy(_o.createColors(!1));function wy(e){return e?Mxe:Bxe}var Fxe=new Set(["as","async","from","get","of","set"]),jxe=/\r\n|[\n\r\u2028\u2029]/,Rxe=/^[()[\]{}]$/,Ny,qxe=/^[a-z][\w-]*$/i,Uxe=function(e,t,r){if(e.type==="name"){let s=e.value;if(Ay.isKeyword(s)||Ay.isStrictReservedWord(s,!0)||Fxe.has(s))return"keyword";if(qxe.test(s)&&(r[t-1]==="<"||r.slice(t-2,t)==="</"))return"jsxIdentifier";let i=String.fromCodePoint(s.codePointAt(0));if(i!==i.toLowerCase())return"capitalized"}if(e.type==="punctuator"&&Rxe.test(e.value))return"bracket";if(e.type==="invalid"&&(e.value==="@"||e.value==="#"))return"punctuator";return e.type};Ny=function*(e){let t;while(t=Py.default.exec(e)){let r=Py.matchToToken(t);yield{type:Uxe(r,t.index,e),value:r.value}}};function Oy(e){if(e==="")return"";let t=wy(!0),r="";for(let{type:s,value:i}of Ny(e))if(s in t)r+=i.split(jxe).map((n)=>t[s](n)).join(`
28
- `);else r+=i;return r}var vy=!1,Cy=/\r\n|[\n\r\u2028\u2029]/;function Kxe(e,t,r,s){let i=Object.assign({column:0,line:-1},e.start),n=Object.assign({},i,e.end),{linesAbove:a=2,linesBelow:o=3}=r||{},l=i.line-s,u=i.column,p=n.line-s,m=n.column,x=Math.max(l-(a+1),0),g=Math.min(t.length,p+o);if(l===-1)x=0;if(p===-1)g=t.length;let E=p-l,I={};if(E)for(let b=0;b<=E;b++){let C=b+l;if(!u)I[C]=!0;else if(b===0){let N=t[C-1].length;I[C]=[u,N-u+1]}else if(b===E)I[C]=[0,m];else{let N=t[C-b].length;I[C]=[0,N]}}else if(u===m)if(u)I[l]=[u,0];else I[l]=!0;else I[l]=[u,m-u];return{start:x,end:g,markerLines:I}}function _y(e,t,r={}){let s=r.forceColor||Lxe()&&r.highlightCode,i=(r.startLine||1)-1,n=wy(s),a=e.split(Cy),{start:o,end:l,markerLines:u}=Kxe(t,a,r,i),p=t.start&&typeof t.start.column==="number",m=String(l+i).length,g=(s?Oy(e):e).split(Cy,l).slice(o,l).map((E,I)=>{let b=o+1+I,N=` ${` ${b+i}`.slice(-m)} |`,z=u[b],j=!u[b+1];if(z){let V="";if(Array.isArray(z)){let ie=E.slice(0,Math.max(z[0]-1,0)).replace(/[^\t]/g," "),ge=z[1]||1;if(V=[`
27
+ ${" ".repeat(l)}`)}}}else if(!r)n=`//${e.value}`;else n=`/*${e.value}*/`;if(this.source("start",e.loc),this._append(n,s),!s&&!r)this._newline();if(i&&t!==3)this.newline(1)}_printComments(e,t,r,s,i=0,n){let a=r.loc,o=t.length,l=!!a,u=l?a.start.line:0,p=l?a.end.line:0,m=0,x=0,{_noLineTerminator:g,_flags:E}=this;for(let I=0;I<o;I++){let b=t[I],C=this._shouldPrintComment(b,n);if(C===2)return I===0?0:1;if(l&&b.loc&&C===1){let N=b.loc.start.line,z=b.loc.end.line;if(e===0){let j=0;if(I===0){if(this._buf.hasContent()&&(b.type==="CommentLine"||N!==z))j=x=1}else j=N-m;if(m=z,j>0&&!g)this.newline(j,E);if(this._printComment(b,1),I+1===o){let V=Math.max(u-m,x);if(V>0&&!g)this.newline(V,E);m=u}}else if(e===1){let j=N-(I===0?u:m);if(m=z,j>0&&!g)this.newline(j,E);if(this._printComment(b,1),I+1===o){let V=Math.min(1,p-m);if(V>0&&!g)this.newline(V,E);m=p}}else{let j=N-(I===0?p-i:m);if(m=z,j>0&&!g)this.newline(j,E);this._printComment(b,1)}}else{if(l=!1,C!==1)continue;if(o===1){let N=b.loc?b.loc.start.line===b.loc.end.line:!Bm.test(b.value),z=N&&!Zme(r)&&!eye(s)&&!tye(s)&&!rye(r);if(e===0)this._printComment(b,z&&r.type!=="ObjectExpression"||N&&Qme(s)&&s.body===r?1:0);else if(z&&e===2)this._printComment(b,1);else this._printComment(b,0)}else if(e===1&&!(r.type==="ObjectExpression"&&r.properties.length>1)&&r.type!=="ClassBody"&&r.type!=="TSInterfaceBody")this._printComment(b,I===0?2:I===o-1?3:0);else this._printComment(b,0)}}if(e===2&&l&&m)this._lastCommentLine=m;return 2}}var l2e=jm.default=Fm;function aye(e,t){if(this.tokenChar(44,e),!t)this.space()}});var Xm=A(function(Jm){Object.defineProperty(Jm,"__esModule",{value:!0});Jm.default=void 0;Jm.generate=Ym;var Um=xd(),Km=qm();function Vm(e,t,r){var s;if(t.experimental_preserveFormat){if(typeof e!=="string")throw Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&t.compact!=="auto")throw Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(r.tokens))throw Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}let i={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken};if(i.decoratorsBeforeExport=t.decoratorsBeforeExport,i.jsescOption.json=t.jsonCompatibleStrings,i.recordAndTupleSyntaxType=(s=t.recordAndTupleSyntaxType)!=null?s:"hash",i.importAttributesKeyword=t.importAttributesKeyword,i.minified)i.compact=!0,i.shouldPrintComment=i.shouldPrintComment||(()=>i.comments);else i.shouldPrintComment=i.shouldPrintComment||((l)=>i.comments||l.includes("@license")||l.includes("@preserve"));if(i.compact==="auto"){if(i.compact=typeof e==="string"&&e.length>500000,i.compact)console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)}if(i.compact||i.preserveFormat)i.indent.adjustMultilineComment=!1;let{auxiliaryCommentBefore:n,auxiliaryCommentAfter:a,shouldPrintComment:o}=i;if(n&&!o(n))i.auxiliaryCommentBefore=void 0;if(a&&!o(a))i.auxiliaryCommentAfter=void 0;return i}Jm.CodeGenerator=class{constructor(t,r={},s){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=Vm(s,r,t),this._map=r.sourceMaps?new Um.default(r,s):null}generate(){return new Km.default(this._format,this._map).generate(this._ast)}};function Ym(e,t={},r){let s=Vm(r,t,e),i=t.sourceMaps?new Um.default(t,r):null;return new Km.default(s,i,e.tokens,typeof r==="string"?r:null).generate(e)}var c2e=Jm.default=Ym});var Hm=A(function($m){Object.defineProperty($m,"__esModule",{value:!0});$m.find=fye;$m.findParent=pye;$m.getAncestry=Tye;$m.getDeepestCommonAncestorFrom=yye;$m.getEarliestCommonAncestorFrom=mye;$m.getFunctionParent=hye;$m.getStatementParent=dye;$m.inType=gye;$m.isAncestor=xye;$m.isDescendant=Sye;var uye=ae(),{VISITOR_KEYS:cye}=uye;function pye(e){let t=this;while(t=t.parentPath)if(e(t))return t;return null}function fye(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function hye(){return this.findParent((e)=>e.isFunction())}function dye(){let e=this;do if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;else e=e.parentPath;while(e);if(e&&(e.isProgram()||e.isFile()))throw Error("File/Program node, we can't possibly find a statement parent to this");return e}function mye(e){return this.getDeepestCommonAncestorFrom(e,function(t,r,s){let i,n=cye[t.type];for(let a of s){let o=a[r+1];if(!i){i=o;continue}if(o.listKey&&i.listKey===o.listKey){if(o.key<i.key){i=o;continue}}let l=n.indexOf(i.parentKey),u=n.indexOf(o.parentKey);if(l>u)i=o}return i})}function yye(e,t){if(!e.length)return this;if(e.length===1)return e[0];let r=1/0,s,i,n=e.map((o)=>{let l=[];do l.unshift(o);while((o=o.parentPath)&&o!==this);if(l.length<r)r=l.length;return l}),a=n[0];e:for(let o=0;o<r;o++){let l=a[o];for(let u of n)if(u[o]!==l)break e;s=o,i=l}if(i)if(t)return t(i,s,n);else return i;else throw Error("Couldn't find intersection")}function Tye(){let e=this,t=[];do t.push(e);while(e=e.parentPath);return t}function xye(e){return e.isDescendant(this)}function Sye(e){return!!this.findParent((t)=>t===e)}function gye(...e){let t=this;while(t){if(e.includes(t.node.type))return!0;t=t.parentPath}return!1}});var Ao=A(function(Qm){Object.defineProperty(Qm,"__esModule",{value:!0});Qm.createUnionType=Mye;var _ye=ae(),{createFlowUnionType:zm,createTSUnionType:Gm,createUnionTypeAnnotation:kye,isFlowType:Dye,isTSType:Lye}=_ye;function Mye(e){if(e.every((t)=>Dye(t))){if(zm)return zm(e);return kye(e)}else if(e.every((t)=>Lye(t))){if(Gm)return Gm(e)}}});var iy=A(function(sy){Object.defineProperty(sy,"__esModule",{value:!0});sy.default=Uye;var Fye=ae(),ey=Ao(),{BOOLEAN_NUMBER_BINARY_OPERATORS:jye,createTypeAnnotationBasedOnTypeof:Rye,numberTypeAnnotation:ty,voidTypeAnnotation:qye}=Fye;function Uye(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)if(t.identifier.typeAnnotation)return t.identifier.typeAnnotation;else return Kye(t,this,e.name);if(e.name==="undefined")return qye();else if(e.name==="NaN"||e.name==="Infinity")return ty();else if(e.name==="arguments");}function Kye(e,t,r){let s=[],i=[],n=Zm(e,t,i),a=ry(e,t,r);if(a){let o=Zm(e,a.ifStatement);n=n.filter((l)=>!o.includes(l)),s.push(a.typeAnnotation)}if(n.length){n.push(...i);for(let o of n)s.push(o.getTypeAnnotation())}if(!s.length)return;return(0,ey.createUnionType)(s)}function Zm(e,t,r){let s=e.constantViolations.slice();return s.unshift(e.path),s.filter((i)=>{i=i.resolve();let n=i._guessExecutionStatusRelativeTo(t);if(r&&n==="unknown")r.push(i);return n==="before"})}function Vye(e,t){let r=t.node.operator,s=t.get("right").resolve(),i=t.get("left").resolve(),n;if(i.isIdentifier({name:e}))n=s;else if(s.isIdentifier({name:e}))n=i;if(n){if(r==="===")return n.getTypeAnnotation();if(jye.includes(r))return ty();return}if(r!=="==="&&r!=="==")return;let a,o;if(i.isUnaryExpression({operator:"typeof"}))a=i,o=s;else if(s.isUnaryExpression({operator:"typeof"}))a=s,o=i;if(!a)return;if(!a.get("argument").isIdentifier({name:e}))return;if(o=o.resolve(),!o.isLiteral())return;let l=o.node.value;if(typeof l!=="string")return;return Rye(l)}function Yye(e,t,r){let s;while(s=t.parentPath){if(s.isIfStatement()||s.isConditionalExpression()){if(t.key==="test")return;return s}if(s.isFunction()){if(r==null||s.parentPath.scope.getBinding(r)!==e)return}t=s}}function ry(e,t,r){let s=Yye(e,t,r);if(!s)return;let n=[s.get("test")],a=[];for(let o=0;o<n.length;o++){let l=n[o];if(l.isLogicalExpression()){if(l.node.operator==="&&")n.push(l.get("left")),n.push(l.get("right"))}else if(l.isBinaryExpression()){let u=Vye(r,l);if(u)a.push(u)}}if(a.length)return{typeAnnotation:(0,ey.createUnionType)(a),ifStatement:s};return ry(e,s,r)}});var fy=A(function(Io){Object.defineProperty(Io,"__esModule",{value:!0});Io.ArrayExpression=uy;Io.AssignmentExpression=dTe;Io.BinaryExpression=uTe;Io.BooleanLiteral=xTe;Io.CallExpression=ITe;Io.ConditionalExpression=pTe;Io.ClassDeclaration=Io.ClassExpression=Io.FunctionDeclaration=Io.ArrowFunctionExpression=Io.FunctionExpression=ETe;Object.defineProperty(Io,"Identifier",{enumerable:!0,get:function(){return Xye.default}});Io.LogicalExpression=cTe;Io.NewExpression=aTe;Io.NullLiteral=STe;Io.NumericLiteral=TTe;Io.ObjectExpression=bTe;Io.ParenthesizedExpression=hTe;Io.RegExpLiteral=gTe;Io.RestElement=cy;Io.SequenceExpression=fTe;Io.StringLiteral=yTe;Io.TSAsExpression=ly;Io.TSNonNullExpression=nTe;Io.TaggedTemplateExpression=wTe;Io.TemplateLiteral=oTe;Io.TypeCastExpression=oy;Io.UnaryExpression=lTe;Io.UpdateExpression=mTe;Io.VariableDeclarator=iTe;var Wye=ae(),Xye=iy(),ay=Ao(),{BOOLEAN_BINARY_OPERATORS:$ye,BOOLEAN_UNARY_OPERATORS:Hye,NUMBER_BINARY_OPERATORS:zye,NUMBER_UNARY_OPERATORS:Gye,STRING_UNARY_OPERATORS:Qye,anyTypeAnnotation:ny,arrayTypeAnnotation:vo,booleanTypeAnnotation:Co,buildMatchMemberExpression:Ri,genericTypeAnnotation:nr,identifier:Er,nullLiteralTypeAnnotation:Zye,numberTypeAnnotation:Jr,stringTypeAnnotation:Pr,tupleTypeAnnotation:eTe,unionTypeAnnotation:tTe,voidTypeAnnotation:rTe,isIdentifier:sTe}=Wye;function iTe(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()}function oy(e){return e.typeAnnotation}oy.validParent=!0;function ly(e){return e.typeAnnotation}ly.validParent=!0;function nTe(){return this.get("expression").getTypeAnnotation()}function aTe(e){if(e.callee.type==="Identifier")return nr(e.callee)}function oTe(){return Pr()}function lTe(e){let t=e.operator;if(t==="void")return rTe();else if(Gye.includes(t))return Jr();else if(Qye.includes(t))return Pr();else if(Hye.includes(t))return Co()}function uTe(e){let t=e.operator;if(zye.includes(t))return Jr();else if($ye.includes(t))return Co();else if(t==="+"){let r=this.get("right"),s=this.get("left");if(s.isBaseType("number")&&r.isBaseType("number"))return Jr();else if(s.isBaseType("string")||r.isBaseType("string"))return Pr();return tTe([Pr(),Jr()])}}function cTe(){let e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,ay.createUnionType)(e)}function pTe(){let e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,ay.createUnionType)(e)}function fTe(){return this.get("expressions").pop().getTypeAnnotation()}function hTe(){return this.get("expression").getTypeAnnotation()}function dTe(){return this.get("right").getTypeAnnotation()}function mTe(e){let t=e.operator;if(t==="++"||t==="--")return Jr()}function yTe(){return Pr()}function TTe(){return Jr()}function xTe(){return Co()}function STe(){return Zye()}function gTe(){return nr(Er("RegExp"))}function bTe(){return nr(Er("Object"))}function uy(){return nr(Er("Array"))}function cy(){return uy()}cy.validParent=!0;function ETe(){return nr(Er("Function"))}var PTe=Ri("Array.from"),ATe=Ri("Object.keys"),vTe=Ri("Object.values"),CTe=Ri("Object.entries");function ITe(){let{callee:e}=this.node;if(ATe(e))return vo(Pr());else if(PTe(e)||vTe(e)||sTe(e,{name:"Array"}))return vo(ny());else if(CTe(e))return vo(eTe([Pr(),ny()]));return py(this.get("callee"))}function wTe(){return py(this.get("tag"))}function py(e){if(e=e.resolve(),e.isFunction()){let{node:t}=e;if(t.async)if(t.generator)return nr(Er("AsyncIterator"));else return nr(Er("Promise"));else if(t.generator)return nr(Er("Iterator"));else if(e.node.returnType)return e.node.returnType}}});var xy=A(function(Ty){Object.defineProperty(Ty,"__esModule",{value:!0});Ty._getTypeAnnotation=yy;Ty.baseTypeStrictlyMatches=bxe;Ty.couldBeBaseType=gxe;Ty.getTypeAnnotation=xxe;Ty.isBaseType=Sxe;Ty.isGenericType=Exe;var hy=fy(),exe=ae(),{anyTypeAnnotation:my,isAnyTypeAnnotation:qi,isArrayTypeAnnotation:txe,isBooleanTypeAnnotation:rxe,isEmptyTypeAnnotation:sxe,isFlowBaseAnnotation:ixe,isGenericTypeAnnotation:nxe,isIdentifier:dy,isMixedTypeAnnotation:axe,isNumberTypeAnnotation:oxe,isStringTypeAnnotation:lxe,isTSArrayType:uxe,isTSTypeAnnotation:cxe,isTSTypeReference:pxe,isTupleTypeAnnotation:fxe,isTypeAnnotation:hxe,isUnionTypeAnnotation:dxe,isVoidTypeAnnotation:mxe,stringTypeAnnotation:yxe,voidTypeAnnotation:Txe}=exe;function xxe(){let e=this.getData("typeAnnotation");if(e!=null)return e;if(e=yy.call(this)||my(),hxe(e)||cxe(e))e=e.typeAnnotation;return this.setData("typeAnnotation",e),e}var wo=new WeakSet;function yy(){let e=this.node;if(!e)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let r=this.parentPath.parentPath,s=r.parentPath;if(r.key==="left"&&s.isForInStatement())return yxe();if(r.key==="left"&&s.isForOfStatement())return my();return Txe()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(wo.has(e))return;wo.add(e);try{var t;let r=hy[e.type];if(r)return r.call(this,e);if(r=hy[this.parentPath.type],(t=r)!=null&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{wo.delete(e)}}function Sxe(e,t){return No(e,this.getTypeAnnotation(),t)}function No(e,t,r){if(e==="string")return lxe(t);else if(e==="number")return oxe(t);else if(e==="boolean")return rxe(t);else if(e==="any")return qi(t);else if(e==="mixed")return axe(t);else if(e==="empty")return sxe(t);else if(e==="void")return mxe(t);else if(r)return!1;else throw Error(`Unknown base type ${e}`)}function gxe(e){let t=this.getTypeAnnotation();if(qi(t))return!0;if(dxe(t)){for(let r of t.types)if(qi(r)||No(e,r,!0))return!0;return!1}else return No(e,t,!0)}function bxe(e){let t=this.getTypeAnnotation(),r=e.getTypeAnnotation();if(!qi(t)&&ixe(t))return r.type===t.type;return!1}function Exe(e){let t=this.getTypeAnnotation();if(e==="Array"){if(uxe(t)||txe(t)||fxe(t))return!0}return nxe(t)&&dy(t.id,{name:e})||pxe(t)&&dy(t.typeName,{name:e})}});var by=A(function(b2e,Oo){var Ki=process||{},Sy=Ki.argv||[],Ui=Ki.env||{},Nxe=!(!!Ui.NO_COLOR||Sy.includes("--no-color"))&&(!!Ui.FORCE_COLOR||Sy.includes("--color")||Ki.platform==="win32"||(Ki.stdout||{}).isTTY&&Ui.TERM!=="dumb"||!!Ui.CI),Oxe=(e,t,r=e)=>(s)=>{let i=""+s,n=i.indexOf(t,e.length);return~n?e+_xe(i,t,r,n)+t:e+i+t},_xe=(e,t,r,s)=>{let i="",n=0;do i+=e.substring(n,s)+r,n=s+t.length,s=e.indexOf(t,n);while(~s);return i+e.substring(n)},gy=(e=Nxe)=>{let t=e?Oxe:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};Oo.exports=gy();Oo.exports.createColors=gy});var Py=A(function(Ey){Object.defineProperty(Ey,"__esModule",{value:!0});Ey.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;Ey.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};if(e[1])t.type="string",t.closed=!!(e[3]||e[4]);else if(e[5])t.type="comment";else if(e[6])t.type="comment",t.closed=!!e[7];else if(e[8])t.type="regex";else if(e[9])t.type="number";else if(e[10])t.type="name";else if(e[11])t.type="punctuator";else if(e[12])t.type="whitespace";return t}});var ko=A(function(Dy){Object.defineProperty(Dy,"__esModule",{value:!0});var _o=by(),Ay=Py(),vy=hs();function Lxe(){return typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:_o.isColorSupported}var Vi=(e,t)=>(r)=>e(t(r));function wy(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:Vi(Vi(e.white,e.bgRed),e.bold),gutter:e.gray,marker:Vi(e.red,e.bold),message:Vi(e.red,e.bold),reset:e.reset}}var Mxe=wy(_o.createColors(!0)),Bxe=wy(_o.createColors(!1));function Ny(e){return e?Mxe:Bxe}var Fxe=new Set(["as","async","from","get","of","set"]),jxe=/\r\n|[\n\r\u2028\u2029]/,Rxe=/^[()[\]{}]$/,Oy,qxe=/^[a-z][\w-]*$/i,Uxe=function(e,t,r){if(e.type==="name"){let s=e.value;if(vy.isKeyword(s)||vy.isStrictReservedWord(s,!0)||Fxe.has(s))return"keyword";if(qxe.test(s)&&(r[t-1]==="<"||r.slice(t-2,t)==="</"))return"jsxIdentifier";let i=String.fromCodePoint(s.codePointAt(0));if(i!==i.toLowerCase())return"capitalized"}if(e.type==="punctuator"&&Rxe.test(e.value))return"bracket";if(e.type==="invalid"&&(e.value==="@"||e.value==="#"))return"punctuator";return e.type};Oy=function*(e){let t;while(t=Ay.default.exec(e)){let r=Ay.matchToToken(t);yield{type:Uxe(r,t.index,e),value:r.value}}};function _y(e){if(e==="")return"";let t=Ny(!0),r="";for(let{type:s,value:i}of Oy(e))if(s in t)r+=i.split(jxe).map((n)=>t[s](n)).join(`
28
+ `);else r+=i;return r}var Cy=!1,Iy=/\r\n|[\n\r\u2028\u2029]/;function Kxe(e,t,r,s){let i=Object.assign({column:0,line:-1},e.start),n=Object.assign({},i,e.end),{linesAbove:a=2,linesBelow:o=3}=r||{},l=i.line-s,u=i.column,p=n.line-s,m=n.column,x=Math.max(l-(a+1),0),g=Math.min(t.length,p+o);if(l===-1)x=0;if(p===-1)g=t.length;let E=p-l,I={};if(E)for(let b=0;b<=E;b++){let C=b+l;if(!u)I[C]=!0;else if(b===0){let N=t[C-1].length;I[C]=[u,N-u+1]}else if(b===E)I[C]=[0,m];else{let N=t[C-b].length;I[C]=[0,N]}}else if(u===m)if(u)I[l]=[u,0];else I[l]=!0;else I[l]=[u,m-u];return{start:x,end:g,markerLines:I}}function ky(e,t,r={}){let s=r.forceColor||Lxe()&&r.highlightCode,i=(r.startLine||1)-1,n=Ny(s),a=e.split(Iy),{start:o,end:l,markerLines:u}=Kxe(t,a,r,i),p=t.start&&typeof t.start.column==="number",m=String(l+i).length,g=(s?_y(e):e).split(Iy,l).slice(o,l).map((E,I)=>{let b=o+1+I,N=` ${` ${b+i}`.slice(-m)} |`,z=u[b],j=!u[b+1];if(z){let V="";if(Array.isArray(z)){let ie=E.slice(0,Math.max(z[0]-1,0)).replace(/[^\t]/g," "),ge=z[1]||1;if(V=[`
29
29
  `,n.gutter(N.replace(/\d/g," "))," ",ie,n.marker("^").repeat(ge)].join(""),j&&r.message)V+=" "+n.message(r.message)}return[n.marker(">"),n.gutter(N),E.length>0?` ${E}`:"",V].join("")}else return` ${n.gutter(N)}${E.length>0?` ${E}`:""}`}).join(`
30
30
  `);if(r.message&&!p)g=`${" ".repeat(m+1)}${r.message}
31
- ${g}`;if(s)return n.reset(g);else return g}function Vxe(e,t,r,s={}){if(!vy){vy=!0;let n="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(n,"DeprecationWarning");else{let a=Error(n);a.name="DeprecationWarning",console.warn(Error(n))}}return r=Math.max(r,0),_y(e,{start:{column:r,line:t}},s)}ky.codeFrameColumns=_y;ky.default=Vxe;ky.highlight=Oy});var My=A(function(Dy){Object.defineProperty(Dy,"__esModule",{value:!0});Dy.hooks=void 0;var A2e=Dy.hooks=[function(e,t){if(e.key==="test"&&(t.isWhile()||t.isSwitchCase())||e.key==="declaration"&&t.isExportDeclaration()||e.key==="body"&&t.isLabeledStatement()||e.listKey==="declarations"&&t.isVariableDeclaration()&&t.node.declarations.length===1||e.key==="expression"&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary()){if(e.key==="left")t.replaceWith(t.node.right);else t.replaceWith(t.node.left);return!0}},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]});var Yi=A(function(Uy){Object.defineProperty(Uy,"__esModule",{value:!0});Uy._assertUnremoved=qy;Uy._callRemovalHooks=jy;Uy._markRemoved=Do;Uy._remove=Ry;Uy._removeFromScope=Fy;Uy.remove=Zxe;var Xxe=My(),$xe=Tr(),Hxe=Lo(),By=Yt(),zxe=ae(),Gxe=Ji(),Qxe=pt();function Zxe(){var e;if(qy.call(this),Qxe.resync.call(this),jy.call(this)){Do.call(this);return}if(!((e=this.opts)!=null&&e.noScope))Fy.call(this);this.shareCommentsWithSiblings(),Ry.call(this),Do.call(this)}function Fy(){let e=zxe.getBindingIdentifiers(this.node,!1,!1,!0);Object.keys(e).forEach((t)=>this.scope.removeBinding(t))}function jy(){if(this.parentPath){for(let e of Xxe.hooks)if(e(this,this.parentPath))return!0}}function Ry(){if(Array.isArray(this.container))this.container.splice(this.key,1),Gxe.updateSiblingKeys.call(this,this.key,-1);else Hxe._replaceWith.call(this,null)}function Do(){if(this._traverseFlags|=By.SHOULD_SKIP|By.REMOVED,this.parent){var e;(e=(0,$xe.getCachedPaths)(this))==null||e.delete(this.node)}this.node=null}function qy(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var Wy=A(function(Yy){Object.defineProperty(Yy,"__esModule",{value:!0});Yy.default=void 0;var Ky=ae(),aSe=Ky,{react:oSe}=Ky,{cloneNode:lSe,jsxExpressionContainer:uSe,variableDeclaration:cSe,variableDeclarator:pSe}=aSe,fSe={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&oSe.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if(e.node.name==="this"){let s=e.scope;do if(s.path.isFunction()&&!s.path.isArrowFunctionExpression())break;while(s=s.parent);if(s)t.breakOnScopePaths.push(s.path)}let r=e.scope.getBinding(e.node.name);if(!r)return;for(let s of r.constantViolations)if(s.scope!==r.path.scope){t.mutableBinding=!0,e.stop();return}if(r!==t.scope.getBinding(e.node.name))return;t.bindings[e.node.name]=r}};class Vy{constructor(e,t){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(let t of Object.keys(this.bindings)){let r=this.bindings[t];if(!e.bindingIdentifierEquals(t,r.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(this.isCompatibleScope(e))this.scopes.push(e);else break;if(this.breakOnScopePaths.includes(e.path))break}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e.scope;if(t.path===e)t=e.scope.parent;if(t.path.isProgram()||t.path.isFunction())for(let r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;let s=this.bindings[r];if(s.kind==="param"||s.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(s.path).key>=e.key){this.attachAfter=!0,e=s.path;for(let n of s.constantViolations)if(this.getAttachmentParentForPath(n).key>e.key)e=n}}return e}_getAttachmentPath(){let t=this.scopes.pop();if(!t)return;if(t.path.isFunction())if(this.hasOwnParamBindings(t)){if(this.scope===t)return;let r=t.path.get("body").get("body");for(let s=0;s<r.length;s++){if(r[s].node._blockHoist)continue;return r[s]}}else return this.getNextScopeAttachmentParent();else if(t.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){let e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())return e;while(e=e.parentPath);return e}hasOwnParamBindings(e){for(let t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;let r=this.bindings[t];if(r.kind==="param"&&r.constant)return!0}return!1}run(){if(this.path.traverse(fSe,this),this.mutableBinding)return;this.getCompatibleScopes();let e=this.getAttachmentPath();if(!e)return;if(e.getFunctionParent()===this.path.getFunctionParent())return;let t=e.scope.generateUidIdentifier("ref"),r=pSe(t,this.path.node),s=this.attachAfter?"insertAfter":"insertBefore",[i]=e[s]([e.isVariableDeclarator()?r:cSe("var",[r])]),n=this.path.parentPath;if(n.isJSXElement()&&this.path.container===n.node.children)t=uSe(t);return this.path.replaceWith(lSe(t)),i.isVariableDeclarator()?i.get("init"):i.get("declarations.0.init")}}Yy.default=Vy});var Ji=A(function(Zy){Object.defineProperty(Zy,"__esModule",{value:!0});Zy._containerInsert=Ro;Zy._containerInsertAfter=Hy;Zy._containerInsertBefore=qo;Zy._verifyNodeList=Ds;Zy.insertAfter=NSe;Zy.insertBefore=ISe;Zy.pushContainer=_Se;Zy.unshiftContainer=OSe;Zy.updateSiblingKeys=Qy;var hSe=Tr(),jo=Yt(),Mo=pt(),Wi=Yi(),dSe=ae(),mSe=Wy(),{arrowFunctionExpression:ySe,assertExpression:TSe,assignmentExpression:xSe,blockStatement:Xy,callExpression:SSe,cloneNode:Bo,expressionStatement:Fo,isAssignmentExpression:gSe,isCallExpression:bSe,isExportNamedDeclaration:$y,isExpression:ESe,isIdentifier:PSe,isSequenceExpression:ASe,isSuper:vSe,thisExpression:CSe}=dSe;function ISe(e){Wi._assertUnremoved.call(this);let t=Ds.call(this,e),{parentPath:r,parent:s}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||$y(s)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);else if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&this.key==="init"){if(this.node)t.push(this.node);return this.replaceExpressionWithStatements(t)}else if(Array.isArray(this.container))return qo.call(this,t);else if(this.isStatementOrBlock()){let i=this.node,n=i&&(!this.isExpressionStatement()||i.expression!=null),[a]=this.replaceWith(Xy(n?[i]:[]));return a.unshiftContainer("body",t)}else throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function Ro(e,t){Qy.call(this,e,t.length);let r=[];this.container.splice(e,0,...t);for(let n=0;n<t.length;n++){var s;let a=e+n,o=this.getSibling(a);if(r.push(o),(s=this.context)!=null&&s.queue)Mo.pushContext.call(o,this.context)}let i=Mo._getQueueContexts.call(this);for(let n of r){Mo.setScope.call(n),n.debug("Inserted.");for(let a of i)a.maybeQueue(n,!0)}return r}function qo(e){return Ro.call(this,this.key,e)}function Hy(e){return Ro.call(this,this.key+1,e)}var zy=(e)=>e[e.length-1];function Gy(e){return ASe(e.parent)&&(zy(e.parent.expressions)!==e.node||Gy(e.parentPath))}function wSe(e,t){if(!gSe(e)||!PSe(e.left))return!1;let r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}function NSe(e){if(Wi._assertUnremoved.call(this),this.isSequenceExpression())return zy(this.get("expressions")).insertAfter(e);let t=Ds.call(this,e),{parentPath:r,parent:s}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||$y(s)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map((i)=>ESe(i)?Fo(i):i));else if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&this.key==="init"){let i=this;if(i.node){let n=i.node,{scope:a}=this;if(a.path.isPattern())return TSe(n),i.replaceWith(SSe(ySe([],n),[])),i.get("callee.body").insertAfter(t),[i];if(Gy(i))t.unshift(n);else if(bSe(n)&&vSe(n.callee))t.unshift(n),t.push(CSe());else if(wSe(n,a))t.unshift(n),t.push(Bo(n.left));else if(a.isPure(n,!0))t.push(n);else{if(r.isMethod({computed:!0,key:n}))a=a.parent;let o=a.generateDeclaredUidIdentifier();t.unshift(Fo(xSe("=",Bo(o),n))),t.push(Fo(Bo(o)))}}return this.replaceExpressionWithStatements(t)}else if(Array.isArray(this.container))return Hy.call(this,t);else if(this.isStatementOrBlock()){let i=this.node,n=i&&(!this.isExpressionStatement()||i.expression!=null),[a]=this.replaceWith(Xy(n?[i]:[]));return a.pushContainer("body",t)}else throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function Qy(e,t){if(!this.parent)return;let r=(0,hSe.getCachedPaths)(this);if(!r)return;for(let[,s]of r)if(typeof s.key==="number"&&s.container===this.container&&s.key>=e)s.key+=t}function Ds(e){if(!e)return[];if(!Array.isArray(e))e=[e];for(let t=0;t<e.length;t++){let r=e[t],s;if(!r)s="has falsy node";else if(typeof r!=="object")s="contains a non-object node";else if(!r.type)s="without a type";else if(r instanceof jo.default)s="has a NodePath when it expected a raw object";if(s){let i=Array.isArray(r)?"array":typeof r;throw Error(`Node list ${s} with the index of ${t} and type of ${i}`)}}return e}function OSe(e,t){Wi._assertUnremoved.call(this);let r=Ds.call(this,t),s=this.node[e],i=jo.default.get({parentPath:this,parent:this.node,container:s,listKey:e,key:0}).setContext(this.context);return qo.call(i,r)}function _Se(e,t){Wi._assertUnremoved.call(this);let r=Ds.call(this,t),s=this.node[e];return jo.default.get({parentPath:this,parent:this.node,container:s,listKey:e,key:s.length}).setContext(this.context).replaceWithMultiple(r)}Zy.hoist=function(t=this.scope){return new mSe.default(this,t).run()}});var Lo=A(function(lT){Object.defineProperty(lT,"__esModule",{value:!0});lT._replaceWith=oT;lT.replaceExpressionWithStatements=mge;lT.replaceInline=yge;lT.replaceWith=dge;lT.replaceWithMultiple=fge;lT.replaceWithSourceString=hge;var KSe=ko(),Ko=Kr(),VSe=Yt(),iT=Tr(),Vo=Ji(),YSe=Gs(),JSe=ae(),Jr=pt(),{FUNCTION_TYPES:eT,arrowFunctionExpression:WSe,assignmentExpression:nT,awaitExpression:XSe,blockStatement:$Se,buildUndefinedNode:Uo,callExpression:HSe,cloneNode:Yo,conditionalExpression:zSe,expressionStatement:GSe,getBindingIdentifiers:QSe,identifier:ZSe,inheritLeadingComments:ege,inheritTrailingComments:tge,inheritsComments:rge,isBlockStatement:sge,isEmptyStatement:tT,isExpression:aT,isExpressionStatement:ige,isIfStatement:nge,isProgram:age,isStatement:oge,isVariableDeclaration:lge,removeComments:uge,returnStatement:rT,sequenceExpression:cge,validate:sT,yieldExpression:pge}=JSe;function fge(e){var t;Jr.resync.call(this);let r=Vo._verifyNodeList.call(this,e);ege(r[0],this.node),tge(r[r.length-1],this.node),(t=(0,iT.getCachedPaths)(this))==null||t.delete(this.node),this.node=this.container[this.key]=null;let s=this.insertAfter(e);if(this.node)this.requeue();else this.remove();return s}function hge(e){Jr.resync.call(this);let t;try{e=`(${e})`,t=(0,YSe.parse)(e)}catch(s){let i=s.loc;if(i)s.message+=` - make sure this is an expression.
32
- `+(0,KSe.codeFrameColumns)(e,{start:{line:i.line,column:i.column+1}}),s.code="BABEL_REPLACE_SOURCE_ERROR";throw s}let r=t.program.body[0].expression;return Ko.default.removeProperties(r),this.replaceWith(r)}function dge(e){if(Jr.resync.call(this),this.removed)throw Error("You can't replace this node, we've already removed it");let t=e instanceof VSe.default?e.node:e;if(!t)throw Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!age(t))throw Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof t==="string")throw Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let r="";if(this.isNodeType("Statement")&&aT(t)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration())t=GSe(t),r="expression"}if(this.isNodeType("Expression")&&oge(t)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t])}let s=this.node;if(s)rge(t,s),uge(s);return oT.call(this,t),this.type=t.type,Jr.setScope.call(this),this.requeue(),[r?this.get(r):this]}function oT(e){var t;if(!this.container)throw ReferenceError("Container is falsy");if(this.inList)sT(this.parent,this.key,[e]);else sT(this.parent,this.key,e);this.debug(`Replace with ${e==null?void 0:e.type}`),(t=(0,iT.getCachedPaths)(this))==null||t.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e}function mge(e){Jr.resync.call(this);let t=[],r=Xi(e,t);if(r){for(let x of t)this.scope.push({id:x});return this.replaceWith(r)[0].get("expressions")}let s=this.getFunctionParent(),i=s==null?void 0:s.node.async,n=s==null?void 0:s.node.generator,a=WSe([],$Se(e));this.replaceWith(HSe(a,[]));let o=this.get("callee");o.get("body").scope.hoistVariables((x)=>this.scope.push({id:x}));let l=o.getCompletionRecords();for(let x of l){if(!x.isExpressionStatement())continue;let g=x.findParent((E)=>E.isLoop());if(g){let E=g.getData("expressionReplacementReturnUid");if(!E)E=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",rT(Yo(E))),g.setData("expressionReplacementReturnUid",E);else E=ZSe(E.name);x.get("expression").replaceWith(nT("=",Yo(E),x.node.expression))}else x.replaceWith(rT(x.node.expression))}o.arrowFunctionToExpression();let u=o,p=i&&Ko.default.hasType(u.node.body,"AwaitExpression",eT),m=n&&Ko.default.hasType(u.node.body,"YieldExpression",eT);if(p){if(u.set("async",!0),!m)this.replaceWith(XSe(this.node))}if(m)u.set("generator",!0),this.replaceWith(pge(this.node,!0));return u.get("body.body")}function Xi(e,t){let r=[],s=!0;for(let i of e){if(!tT(i))s=!1;if(aT(i))r.push(i);else if(ige(i))r.push(i.expression);else if(lge(i)){if(i.kind!=="var")return;for(let n of i.declarations){let a=QSe(n);for(let o of Object.keys(a))t.push(Yo(a[o]));if(n.init)r.push(nT("=",n.id,n.init))}s=!0}else if(nge(i)){let n=i.consequent?Xi([i.consequent],t):Uo(),a=i.alternate?Xi([i.alternate],t):Uo();if(!n||!a)return;r.push(zSe(i.test,n,a))}else if(sge(i)){let n=Xi(i.body,t);if(!n)return;r.push(n)}else if(tT(i)){if(e.indexOf(i)===0)s=!0}else return}if(s)r.push(Uo());if(r.length===1)return r[0];else return cge(r)}function yge(e){if(Jr.resync.call(this),Array.isArray(e))if(Array.isArray(this.container)){e=Vo._verifyNodeList.call(this,e);let t=Vo._containerInsertAfter.call(this,e);return this.remove(),t}else return this.replaceWithMultiple(e);else return this.replaceWith(e)}});var hT=A(function(fT){Object.defineProperty(fT,"__esModule",{value:!0});fT.evaluate=Oge;fT.evaluateTruthy=wge;var Pge=["Number","String","Math"],Age=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],vge=["random"];function uT(e){return Pge.includes(e)}function Cge(e){return Age.includes(e)}function Ige(e){return vge.includes(e)}function wge(){let e=this.evaluate();if(e.confident)return!!e.value}function ht(e,t){if(!t.confident)return;t.deoptPath=e,t.confident=!1}var cT=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function Ge(e,t){let{node:r}=e,{seen:s}=t;if(s.has(r)){let i=s.get(r);if(i.resolved)return i.value;else{ht(e,t);return}}else{let i={resolved:!1};s.set(r,i);let n=Nge(e,t);if(t.confident)i.resolved=!0,i.value=n;return n}}function Nge(e,t){if(!t.confident)return;if(e.isSequenceExpression()){let s=e.get("expressions");return Ge(s[s.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return pT(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){let s=e.get("tag.object"),{node:{name:i}}=s,n=e.get("tag.property");if(s.isIdentifier()&&i==="String"&&!e.scope.getBinding(i)&&n.isIdentifier()&&n.node.name==="raw")return pT(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){let s=Ge(e.get("test"),t);if(!t.confident)return;if(s)return Ge(e.get("consequent"),t);else return Ge(e.get("alternate"),t)}if(e.isExpressionWrapper())return Ge(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){let s=e.get("property"),i=e.get("object");if(i.isLiteral()){let n=i.node.value,a=typeof n,o=null;if(e.node.computed){if(o=Ge(s,t),!t.confident)return}else if(s.isIdentifier())o=s.node.name;if((a==="number"||a==="string")&&o!=null&&(typeof o==="number"||typeof o==="string"))return n[o]}}if(e.isReferencedIdentifier()){let s=e.scope.getBinding(e.node.name);if(s){if(s.constantViolations.length>0||e.node.start<s.path.node.end){ht(s.path,t);return}let l=s.path.scope;if(s.kind==="var"&&l!==s.scope){let u=!l.path.parentPath.isBlockStatement();for(let p=l.parent;p;p=p.parent){var r;if(p===e.scope){if(u){ht(s.path,t);return}break}if((r=p.path.parentPath)!=null&&r.isBlockStatement())u=!0}}if(s.hasValue)return s.value}let i=e.node.name;if(cT.has(i)){if(!s)return cT.get(i);ht(s.path,t);return}if(!s){ht(e,t);return}let n=s.path;if(!n.isVariableDeclarator()){ht(n,t);return}let a=n.get("init"),o=Ge(a,t);if(typeof o==="object"&&o!==null&&s.references>1){ht(a,t);return}return o}if(e.isUnaryExpression({prefix:!0})){if(e.node.operator==="void")return;let s=e.get("argument");if(e.node.operator==="typeof"&&(s.isFunction()||s.isClass()))return"function";let i=Ge(s,t);if(!t.confident)return;switch(e.node.operator){case"!":return!i;case"+":return+i;case"-":return-i;case"~":return~i;case"typeof":return typeof i}}if(e.isArrayExpression()){let s=[],i=e.get("elements");for(let n of i){let a=n.evaluate();if(a.confident)s.push(a.value);else{ht(a.deopt,t);return}}return s}if(e.isObjectExpression()){let s={},i=e.get("properties");for(let n of i){if(n.isObjectMethod()||n.isSpreadElement()){ht(n,t);return}let a=n.get("key"),o;if(n.node.computed){if(o=a.evaluate(),!o.confident){ht(o.deopt,t);return}o=o.value}else if(a.isIdentifier())o=a.node.name;else o=a.node.value;let u=n.get("value").evaluate();if(!u.confident){ht(u.deopt,t);return}u=u.value,s[o]=u}return s}if(e.isLogicalExpression()){let s=t.confident,i=Ge(e.get("left"),t),n=t.confident;t.confident=s;let a=Ge(e.get("right"),t),o=t.confident;switch(e.node.operator){case"||":if(t.confident=n&&(!!i||o),!t.confident)return;return i||a;case"&&":if(t.confident=n&&(!i||o),!t.confident)return;return i&&a;case"??":if(t.confident=n&&(i!=null||o),!t.confident)return;return i!=null?i:a}}if(e.isBinaryExpression()){let s=Ge(e.get("left"),t);if(!t.confident)return;let i=Ge(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return s-i;case"+":return s+i;case"/":return s/i;case"*":return s*i;case"%":return s%i;case"**":return Math.pow(s,i);case"<":return s<i;case">":return s>i;case"<=":return s<=i;case">=":return s>=i;case"==":return s==i;case"!=":return s!=i;case"===":return s===i;case"!==":return s!==i;case"|":return s|i;case"&":return s&i;case"^":return s^i;case"<<":return s<<i;case">>":return s>>i;case">>>":return s>>>i}}if(e.isCallExpression()){let s=e.get("callee"),i,n;if(s.isIdentifier()&&!e.scope.getBinding(s.node.name)&&(uT(s.node.name)||Cge(s.node.name)))n=global[s.node.name];if(s.isMemberExpression()){let a=s.get("object"),o=s.get("property");if(a.isIdentifier()&&o.isIdentifier()&&uT(a.node.name)&&!Ige(o.node.name)){i=global[a.node.name];let l=o.node.name;if(hasOwnProperty.call(i,l))n=i[l]}if(a.isLiteral()&&o.isIdentifier()){let l=typeof a.node.value;if(l==="string"||l==="number")i=a.node.value,n=i[o.node.name]}}if(n){let a=e.get("arguments").map((o)=>Ge(o,t));if(!t.confident)return;return n.apply(i,a)}}ht(e,t)}function pT(e,t,r,s=!1){let i="",n=0,a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(let o of t){if(!r.confident)break;i+=s?o.value.raw:o.value.cooked;let l=a[n++];if(l)i+=String(Ge(l,r))}if(!r.confident)return;return i}function Oge(){let e={confident:!0,deoptPath:null,seen:new Map},t=Ge(this,e);if(!e.confident)t=void 0;return{confident:e.confident,deopt:e.deoptPath,value:t}}});var yT=A(function(dT){Object.defineProperty(dT,"__esModule",{value:!0});dT.statements=dT.statement=dT.smart=dT.program=dT.expression=void 0;var Dge=ae(),{assertExpressionStatement:Lge}=Dge;function Jo(e){return{code:(t)=>`/* @babel/template */;
33
- ${t}`,validate:()=>{},unwrap:(t)=>e(t.program.body.slice(1))}}var _2e=dT.smart=Jo((e)=>{if(e.length>1)return e;else return e[0]}),k2e=dT.statements=Jo((e)=>e),D2e=dT.statement=Jo((e)=>{if(e.length===0)throw Error("Found nothing to return.");if(e.length>1)throw Error("Found multiple statements but wanted one");return e[0]}),Mge=dT.expression={code:(e)=>`(
31
+ ${g}`;if(s)return n.reset(g);else return g}function Vxe(e,t,r,s={}){if(!Cy){Cy=!0;let n="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(n,"DeprecationWarning");else{let a=Error(n);a.name="DeprecationWarning",console.warn(Error(n))}}return r=Math.max(r,0),ky(e,{start:{column:r,line:t}},s)}Dy.codeFrameColumns=ky;Dy.default=Vxe;Dy.highlight=_y});var By=A(function(Ly){Object.defineProperty(Ly,"__esModule",{value:!0});Ly.hooks=void 0;var A2e=Ly.hooks=[function(e,t){if(e.key==="test"&&(t.isWhile()||t.isSwitchCase())||e.key==="declaration"&&t.isExportDeclaration()||e.key==="body"&&t.isLabeledStatement()||e.listKey==="declarations"&&t.isVariableDeclaration()&&t.node.declarations.length===1||e.key==="expression"&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary()){if(e.key==="left")t.replaceWith(t.node.right);else t.replaceWith(t.node.left);return!0}},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]});var Yi=A(function(Ky){Object.defineProperty(Ky,"__esModule",{value:!0});Ky._assertUnremoved=Uy;Ky._callRemovalHooks=Ry;Ky._markRemoved=Do;Ky._remove=qy;Ky._removeFromScope=jy;Ky.remove=Zxe;var Xxe=By(),$xe=xr(),Hxe=Lo(),Fy=Yt(),zxe=ae(),Gxe=Ji(),Qxe=pt();function Zxe(){var e;if(Uy.call(this),Qxe.resync.call(this),Ry.call(this)){Do.call(this);return}if(!((e=this.opts)!=null&&e.noScope))jy.call(this);this.shareCommentsWithSiblings(),qy.call(this),Do.call(this)}function jy(){let e=zxe.getBindingIdentifiers(this.node,!1,!1,!0);Object.keys(e).forEach((t)=>this.scope.removeBinding(t))}function Ry(){if(this.parentPath){for(let e of Xxe.hooks)if(e(this,this.parentPath))return!0}}function qy(){if(Array.isArray(this.container))this.container.splice(this.key,1),Gxe.updateSiblingKeys.call(this,this.key,-1);else Hxe._replaceWith.call(this,null)}function Do(){if(this._traverseFlags|=Fy.SHOULD_SKIP|Fy.REMOVED,this.parent){var e;(e=(0,$xe.getCachedPaths)(this))==null||e.delete(this.node)}this.node=null}function Uy(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var Xy=A(function(Jy){Object.defineProperty(Jy,"__esModule",{value:!0});Jy.default=void 0;var Vy=ae(),aSe=Vy,{react:oSe}=Vy,{cloneNode:lSe,jsxExpressionContainer:uSe,variableDeclaration:cSe,variableDeclarator:pSe}=aSe,fSe={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&oSe.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if(e.node.name==="this"){let s=e.scope;do if(s.path.isFunction()&&!s.path.isArrowFunctionExpression())break;while(s=s.parent);if(s)t.breakOnScopePaths.push(s.path)}let r=e.scope.getBinding(e.node.name);if(!r)return;for(let s of r.constantViolations)if(s.scope!==r.path.scope){t.mutableBinding=!0,e.stop();return}if(r!==t.scope.getBinding(e.node.name))return;t.bindings[e.node.name]=r}};class Yy{constructor(e,t){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(let t of Object.keys(this.bindings)){let r=this.bindings[t];if(!e.bindingIdentifierEquals(t,r.identifier))return!1}return!0}getCompatibleScopes(){let e=this.path.scope;do{if(this.isCompatibleScope(e))this.scopes.push(e);else break;if(this.breakOnScopePaths.includes(e.path))break}while(e=e.parent)}getAttachmentPath(){let e=this._getAttachmentPath();if(!e)return;let t=e.scope;if(t.path===e)t=e.scope.parent;if(t.path.isProgram()||t.path.isFunction())for(let r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;let s=this.bindings[r];if(s.kind==="param"||s.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(s.path).key>=e.key){this.attachAfter=!0,e=s.path;for(let n of s.constantViolations)if(this.getAttachmentParentForPath(n).key>e.key)e=n}}return e}_getAttachmentPath(){let t=this.scopes.pop();if(!t)return;if(t.path.isFunction())if(this.hasOwnParamBindings(t)){if(this.scope===t)return;let r=t.path.get("body").get("body");for(let s=0;s<r.length;s++){if(r[s].node._blockHoist)continue;return r[s]}}else return this.getNextScopeAttachmentParent();else if(t.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){let e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())return e;while(e=e.parentPath);return e}hasOwnParamBindings(e){for(let t of Object.keys(this.bindings)){if(!e.hasOwnBinding(t))continue;let r=this.bindings[t];if(r.kind==="param"&&r.constant)return!0}return!1}run(){if(this.path.traverse(fSe,this),this.mutableBinding)return;this.getCompatibleScopes();let e=this.getAttachmentPath();if(!e)return;if(e.getFunctionParent()===this.path.getFunctionParent())return;let t=e.scope.generateUidIdentifier("ref"),r=pSe(t,this.path.node),s=this.attachAfter?"insertAfter":"insertBefore",[i]=e[s]([e.isVariableDeclarator()?r:cSe("var",[r])]),n=this.path.parentPath;if(n.isJSXElement()&&this.path.container===n.node.children)t=uSe(t);return this.path.replaceWith(lSe(t)),i.isVariableDeclarator()?i.get("init"):i.get("declarations.0.init")}}Jy.default=Yy});var Ji=A(function(eT){Object.defineProperty(eT,"__esModule",{value:!0});eT._containerInsert=Ro;eT._containerInsertAfter=zy;eT._containerInsertBefore=qo;eT._verifyNodeList=Ls;eT.insertAfter=NSe;eT.insertBefore=ISe;eT.pushContainer=_Se;eT.unshiftContainer=OSe;eT.updateSiblingKeys=Zy;var hSe=xr(),jo=Yt(),Mo=pt(),Wi=Yi(),dSe=ae(),mSe=Xy(),{arrowFunctionExpression:ySe,assertExpression:TSe,assignmentExpression:xSe,blockStatement:$y,callExpression:SSe,cloneNode:Bo,expressionStatement:Fo,isAssignmentExpression:gSe,isCallExpression:bSe,isExportNamedDeclaration:Hy,isExpression:ESe,isIdentifier:PSe,isSequenceExpression:ASe,isSuper:vSe,thisExpression:CSe}=dSe;function ISe(e){Wi._assertUnremoved.call(this);let t=Ls.call(this,e),{parentPath:r,parent:s}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||Hy(s)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);else if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&this.key==="init"){if(this.node)t.push(this.node);return this.replaceExpressionWithStatements(t)}else if(Array.isArray(this.container))return qo.call(this,t);else if(this.isStatementOrBlock()){let i=this.node,n=i&&(!this.isExpressionStatement()||i.expression!=null),[a]=this.replaceWith($y(n?[i]:[]));return a.unshiftContainer("body",t)}else throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function Ro(e,t){Zy.call(this,e,t.length);let r=[];this.container.splice(e,0,...t);for(let n=0;n<t.length;n++){var s;let a=e+n,o=this.getSibling(a);if(r.push(o),(s=this.context)!=null&&s.queue)Mo.pushContext.call(o,this.context)}let i=Mo._getQueueContexts.call(this);for(let n of r){Mo.setScope.call(n),n.debug("Inserted.");for(let a of i)a.maybeQueue(n,!0)}return r}function qo(e){return Ro.call(this,this.key,e)}function zy(e){return Ro.call(this,this.key+1,e)}var Gy=(e)=>e[e.length-1];function Qy(e){return ASe(e.parent)&&(Gy(e.parent.expressions)!==e.node||Qy(e.parentPath))}function wSe(e,t){if(!gSe(e)||!PSe(e.left))return!1;let r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}function NSe(e){if(Wi._assertUnremoved.call(this),this.isSequenceExpression())return Gy(this.get("expressions")).insertAfter(e);let t=Ls.call(this,e),{parentPath:r,parent:s}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||Hy(s)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map((i)=>ESe(i)?Fo(i):i));else if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&this.key==="init"){let i=this;if(i.node){let n=i.node,{scope:a}=this;if(a.path.isPattern())return TSe(n),i.replaceWith(SSe(ySe([],n),[])),i.get("callee.body").insertAfter(t),[i];if(Qy(i))t.unshift(n);else if(bSe(n)&&vSe(n.callee))t.unshift(n),t.push(CSe());else if(wSe(n,a))t.unshift(n),t.push(Bo(n.left));else if(a.isPure(n,!0))t.push(n);else{if(r.isMethod({computed:!0,key:n}))a=a.parent;let o=a.generateDeclaredUidIdentifier();t.unshift(Fo(xSe("=",Bo(o),n))),t.push(Fo(Bo(o)))}}return this.replaceExpressionWithStatements(t)}else if(Array.isArray(this.container))return zy.call(this,t);else if(this.isStatementOrBlock()){let i=this.node,n=i&&(!this.isExpressionStatement()||i.expression!=null),[a]=this.replaceWith($y(n?[i]:[]));return a.pushContainer("body",t)}else throw Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function Zy(e,t){if(!this.parent)return;let r=(0,hSe.getCachedPaths)(this);if(!r)return;for(let[,s]of r)if(typeof s.key==="number"&&s.container===this.container&&s.key>=e)s.key+=t}function Ls(e){if(!e)return[];if(!Array.isArray(e))e=[e];for(let t=0;t<e.length;t++){let r=e[t],s;if(!r)s="has falsy node";else if(typeof r!=="object")s="contains a non-object node";else if(!r.type)s="without a type";else if(r instanceof jo.default)s="has a NodePath when it expected a raw object";if(s){let i=Array.isArray(r)?"array":typeof r;throw Error(`Node list ${s} with the index of ${t} and type of ${i}`)}}return e}function OSe(e,t){Wi._assertUnremoved.call(this);let r=Ls.call(this,t),s=this.node[e],i=jo.default.get({parentPath:this,parent:this.node,container:s,listKey:e,key:0}).setContext(this.context);return qo.call(i,r)}function _Se(e,t){Wi._assertUnremoved.call(this);let r=Ls.call(this,t),s=this.node[e];return jo.default.get({parentPath:this,parent:this.node,container:s,listKey:e,key:s.length}).setContext(this.context).replaceWithMultiple(r)}eT.hoist=function(t=this.scope){return new mSe.default(this,t).run()}});var Lo=A(function(uT){Object.defineProperty(uT,"__esModule",{value:!0});uT._replaceWith=lT;uT.replaceExpressionWithStatements=mge;uT.replaceInline=yge;uT.replaceWith=dge;uT.replaceWithMultiple=fge;uT.replaceWithSourceString=hge;var KSe=ko(),Ko=Vr(),VSe=Yt(),nT=xr(),Vo=Ji(),YSe=Qs(),JSe=ae(),Wr=pt(),{FUNCTION_TYPES:tT,arrowFunctionExpression:WSe,assignmentExpression:aT,awaitExpression:XSe,blockStatement:$Se,buildUndefinedNode:Uo,callExpression:HSe,cloneNode:Yo,conditionalExpression:zSe,expressionStatement:GSe,getBindingIdentifiers:QSe,identifier:ZSe,inheritLeadingComments:ege,inheritTrailingComments:tge,inheritsComments:rge,isBlockStatement:sge,isEmptyStatement:rT,isExpression:oT,isExpressionStatement:ige,isIfStatement:nge,isProgram:age,isStatement:oge,isVariableDeclaration:lge,removeComments:uge,returnStatement:sT,sequenceExpression:cge,validate:iT,yieldExpression:pge}=JSe;function fge(e){var t;Wr.resync.call(this);let r=Vo._verifyNodeList.call(this,e);ege(r[0],this.node),tge(r[r.length-1],this.node),(t=(0,nT.getCachedPaths)(this))==null||t.delete(this.node),this.node=this.container[this.key]=null;let s=this.insertAfter(e);if(this.node)this.requeue();else this.remove();return s}function hge(e){Wr.resync.call(this);let t;try{e=`(${e})`,t=(0,YSe.parse)(e)}catch(s){let i=s.loc;if(i)s.message+=` - make sure this is an expression.
32
+ `+(0,KSe.codeFrameColumns)(e,{start:{line:i.line,column:i.column+1}}),s.code="BABEL_REPLACE_SOURCE_ERROR";throw s}let r=t.program.body[0].expression;return Ko.default.removeProperties(r),this.replaceWith(r)}function dge(e){if(Wr.resync.call(this),this.removed)throw Error("You can't replace this node, we've already removed it");let t=e instanceof VSe.default?e.node:e;if(!t)throw Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!age(t))throw Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof t==="string")throw Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let r="";if(this.isNodeType("Statement")&&oT(t)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration())t=GSe(t),r="expression"}if(this.isNodeType("Expression")&&oge(t)){if(!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t])}let s=this.node;if(s)rge(t,s),uge(s);return lT.call(this,t),this.type=t.type,Wr.setScope.call(this),this.requeue(),[r?this.get(r):this]}function lT(e){var t;if(!this.container)throw ReferenceError("Container is falsy");if(this.inList)iT(this.parent,this.key,[e]);else iT(this.parent,this.key,e);this.debug(`Replace with ${e==null?void 0:e.type}`),(t=(0,nT.getCachedPaths)(this))==null||t.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e}function mge(e){Wr.resync.call(this);let t=[],r=Xi(e,t);if(r){for(let x of t)this.scope.push({id:x});return this.replaceWith(r)[0].get("expressions")}let s=this.getFunctionParent(),i=s==null?void 0:s.node.async,n=s==null?void 0:s.node.generator,a=WSe([],$Se(e));this.replaceWith(HSe(a,[]));let o=this.get("callee");o.get("body").scope.hoistVariables((x)=>this.scope.push({id:x}));let l=o.getCompletionRecords();for(let x of l){if(!x.isExpressionStatement())continue;let g=x.findParent((E)=>E.isLoop());if(g){let E=g.getData("expressionReplacementReturnUid");if(!E)E=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",sT(Yo(E))),g.setData("expressionReplacementReturnUid",E);else E=ZSe(E.name);x.get("expression").replaceWith(aT("=",Yo(E),x.node.expression))}else x.replaceWith(sT(x.node.expression))}o.arrowFunctionToExpression();let u=o,p=i&&Ko.default.hasType(u.node.body,"AwaitExpression",tT),m=n&&Ko.default.hasType(u.node.body,"YieldExpression",tT);if(p){if(u.set("async",!0),!m)this.replaceWith(XSe(this.node))}if(m)u.set("generator",!0),this.replaceWith(pge(this.node,!0));return u.get("body.body")}function Xi(e,t){let r=[],s=!0;for(let i of e){if(!rT(i))s=!1;if(oT(i))r.push(i);else if(ige(i))r.push(i.expression);else if(lge(i)){if(i.kind!=="var")return;for(let n of i.declarations){let a=QSe(n);for(let o of Object.keys(a))t.push(Yo(a[o]));if(n.init)r.push(aT("=",n.id,n.init))}s=!0}else if(nge(i)){let n=i.consequent?Xi([i.consequent],t):Uo(),a=i.alternate?Xi([i.alternate],t):Uo();if(!n||!a)return;r.push(zSe(i.test,n,a))}else if(sge(i)){let n=Xi(i.body,t);if(!n)return;r.push(n)}else if(rT(i)){if(e.indexOf(i)===0)s=!0}else return}if(s)r.push(Uo());if(r.length===1)return r[0];else return cge(r)}function yge(e){if(Wr.resync.call(this),Array.isArray(e))if(Array.isArray(this.container)){e=Vo._verifyNodeList.call(this,e);let t=Vo._containerInsertAfter.call(this,e);return this.remove(),t}else return this.replaceWithMultiple(e);else return this.replaceWith(e)}});var dT=A(function(hT){Object.defineProperty(hT,"__esModule",{value:!0});hT.evaluate=Oge;hT.evaluateTruthy=wge;var Pge=["Number","String","Math"],Age=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],vge=["random"];function cT(e){return Pge.includes(e)}function Cge(e){return Age.includes(e)}function Ige(e){return vge.includes(e)}function wge(){let e=this.evaluate();if(e.confident)return!!e.value}function ht(e,t){if(!t.confident)return;t.deoptPath=e,t.confident=!1}var pT=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function Ge(e,t){let{node:r}=e,{seen:s}=t;if(s.has(r)){let i=s.get(r);if(i.resolved)return i.value;else{ht(e,t);return}}else{let i={resolved:!1};s.set(r,i);let n=Nge(e,t);if(t.confident)i.resolved=!0,i.value=n;return n}}function Nge(e,t){if(!t.confident)return;if(e.isSequenceExpression()){let s=e.get("expressions");return Ge(s[s.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return fT(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){let s=e.get("tag.object"),{node:{name:i}}=s,n=e.get("tag.property");if(s.isIdentifier()&&i==="String"&&!e.scope.getBinding(i)&&n.isIdentifier()&&n.node.name==="raw")return fT(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){let s=Ge(e.get("test"),t);if(!t.confident)return;if(s)return Ge(e.get("consequent"),t);else return Ge(e.get("alternate"),t)}if(e.isExpressionWrapper())return Ge(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){let s=e.get("property"),i=e.get("object");if(i.isLiteral()){let n=i.node.value,a=typeof n,o=null;if(e.node.computed){if(o=Ge(s,t),!t.confident)return}else if(s.isIdentifier())o=s.node.name;if((a==="number"||a==="string")&&o!=null&&(typeof o==="number"||typeof o==="string"))return n[o]}}if(e.isReferencedIdentifier()){let s=e.scope.getBinding(e.node.name);if(s){if(s.constantViolations.length>0||e.node.start<s.path.node.end){ht(s.path,t);return}let l=s.path.scope;if(s.kind==="var"&&l!==s.scope){let u=!l.path.parentPath.isBlockStatement();for(let p=l.parent;p;p=p.parent){var r;if(p===e.scope){if(u){ht(s.path,t);return}break}if((r=p.path.parentPath)!=null&&r.isBlockStatement())u=!0}}if(s.hasValue)return s.value}let i=e.node.name;if(pT.has(i)){if(!s)return pT.get(i);ht(s.path,t);return}if(!s){ht(e,t);return}let n=s.path;if(!n.isVariableDeclarator()){ht(n,t);return}let a=n.get("init"),o=Ge(a,t);if(typeof o==="object"&&o!==null&&s.references>1){ht(a,t);return}return o}if(e.isUnaryExpression({prefix:!0})){if(e.node.operator==="void")return;let s=e.get("argument");if(e.node.operator==="typeof"&&(s.isFunction()||s.isClass()))return"function";let i=Ge(s,t);if(!t.confident)return;switch(e.node.operator){case"!":return!i;case"+":return+i;case"-":return-i;case"~":return~i;case"typeof":return typeof i}}if(e.isArrayExpression()){let s=[],i=e.get("elements");for(let n of i){let a=n.evaluate();if(a.confident)s.push(a.value);else{ht(a.deopt,t);return}}return s}if(e.isObjectExpression()){let s={},i=e.get("properties");for(let n of i){if(n.isObjectMethod()||n.isSpreadElement()){ht(n,t);return}let a=n.get("key"),o;if(n.node.computed){if(o=a.evaluate(),!o.confident){ht(o.deopt,t);return}o=o.value}else if(a.isIdentifier())o=a.node.name;else o=a.node.value;let u=n.get("value").evaluate();if(!u.confident){ht(u.deopt,t);return}u=u.value,s[o]=u}return s}if(e.isLogicalExpression()){let s=t.confident,i=Ge(e.get("left"),t),n=t.confident;t.confident=s;let a=Ge(e.get("right"),t),o=t.confident;switch(e.node.operator){case"||":if(t.confident=n&&(!!i||o),!t.confident)return;return i||a;case"&&":if(t.confident=n&&(!i||o),!t.confident)return;return i&&a;case"??":if(t.confident=n&&(i!=null||o),!t.confident)return;return i!=null?i:a}}if(e.isBinaryExpression()){let s=Ge(e.get("left"),t);if(!t.confident)return;let i=Ge(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return s-i;case"+":return s+i;case"/":return s/i;case"*":return s*i;case"%":return s%i;case"**":return Math.pow(s,i);case"<":return s<i;case">":return s>i;case"<=":return s<=i;case">=":return s>=i;case"==":return s==i;case"!=":return s!=i;case"===":return s===i;case"!==":return s!==i;case"|":return s|i;case"&":return s&i;case"^":return s^i;case"<<":return s<<i;case">>":return s>>i;case">>>":return s>>>i}}if(e.isCallExpression()){let s=e.get("callee"),i,n;if(s.isIdentifier()&&!e.scope.getBinding(s.node.name)&&(cT(s.node.name)||Cge(s.node.name)))n=global[s.node.name];if(s.isMemberExpression()){let a=s.get("object"),o=s.get("property");if(a.isIdentifier()&&o.isIdentifier()&&cT(a.node.name)&&!Ige(o.node.name)){i=global[a.node.name];let l=o.node.name;if(hasOwnProperty.call(i,l))n=i[l]}if(a.isLiteral()&&o.isIdentifier()){let l=typeof a.node.value;if(l==="string"||l==="number")i=a.node.value,n=i[o.node.name]}}if(n){let a=e.get("arguments").map((o)=>Ge(o,t));if(!t.confident)return;return n.apply(i,a)}}ht(e,t)}function fT(e,t,r,s=!1){let i="",n=0,a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(let o of t){if(!r.confident)break;i+=s?o.value.raw:o.value.cooked;let l=a[n++];if(l)i+=String(Ge(l,r))}if(!r.confident)return;return i}function Oge(){let e={confident:!0,deoptPath:null,seen:new Map},t=Ge(this,e);if(!e.confident)t=void 0;return{confident:e.confident,deopt:e.deoptPath,value:t}}});var TT=A(function(mT){Object.defineProperty(mT,"__esModule",{value:!0});mT.statements=mT.statement=mT.smart=mT.program=mT.expression=void 0;var Dge=ae(),{assertExpressionStatement:Lge}=Dge;function Jo(e){return{code:(t)=>`/* @babel/template */;
33
+ ${t}`,validate:()=>{},unwrap:(t)=>e(t.program.body.slice(1))}}var _2e=mT.smart=Jo((e)=>{if(e.length>1)return e;else return e[0]}),k2e=mT.statements=Jo((e)=>e),D2e=mT.statement=Jo((e)=>{if(e.length===0)throw Error("Found nothing to return.");if(e.length>1)throw Error("Found multiple statements but wanted one");return e[0]}),Mge=mT.expression={code:(e)=>`(
34
34
  ${e}
35
- )`,validate:(e)=>{if(e.program.body.length>1)throw Error("Found multiple statements but wanted one");if(Mge.unwrap(e).start===0)throw Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return Lge(t),t.expression}},L2e=dT.program={code:(e)=>e,validate:()=>{},unwrap:(e)=>e.program}});var $i=A(function(TT){Object.defineProperty(TT,"__esModule",{value:!0});TT.merge=Kge;TT.normalizeReplacements=Yge;TT.validate=Vge;var qge=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function Uge(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}function Kge(e,t){let{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:s=e.placeholderPattern,preserveComments:i=e.preserveComments,syntacticPlaceholders:n=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:n}}function Vge(e){if(e!=null&&typeof e!=="object")throw Error("Unknown template options.");let t=e||{},{placeholderWhitelist:r,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:n}=t,a=Uge(t,qge);if(r!=null&&!(r instanceof Set))throw Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(s!=null&&!(s instanceof RegExp)&&s!==!1)throw Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(i!=null&&typeof i!=="boolean")throw Error("'.preserveComments' must be a boolean, null, or undefined");if(n!=null&&typeof n!=="boolean")throw Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(n===!0&&(r!=null||s!=null))throw Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:s==null?void 0:s,preserveComments:i==null?void 0:i,syntacticPlaceholders:n==null?void 0:n}}function Yge(e){if(Array.isArray(e))return e.reduce((t,r,s)=>(t["$"+s]=r,t),{});else if(typeof e==="object"||e==null)return e||void 0;throw Error("Template replacements must be an array, object, null, or undefined")}});var Wo=A(function(ST){Object.defineProperty(ST,"__esModule",{value:!0});ST.default=obe;var $ge=ae(),Hge=Gs(),zge=ko(),{isCallExpression:Gge,isExpressionStatement:Qge,isFunction:Zge,isIdentifier:ebe,isJSXIdentifier:tbe,isNewExpression:rbe,isPlaceholder:Hi,isStatement:sbe,isStringLiteral:xT,removePropertiesDeep:ibe,traverse:nbe}=$ge,abe=/^[_$A-Z0-9]+$/;function obe(e,t,r){let{placeholderWhitelist:s,placeholderPattern:i,preserveComments:n,syntacticPlaceholders:a}=r,o=cbe(t,r.parser,a);ibe(o,{preserveComments:n}),e.validate(o);let l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:s,placeholderPattern:i,syntacticPlaceholders:a};return nbe(o,lbe,l),Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function lbe(e,t,r){var s;let i,n=r.syntactic.placeholders.length>0;if(Hi(e)){if(r.syntacticPlaceholders===!1)throw Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");i=e.name.name,n=!0}else if(n||r.syntacticPlaceholders)return;else if(ebe(e)||tbe(e))i=e.name;else if(xT(e))i=e.value;else return;if(n&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!n&&(r.placeholderPattern===!1||!(r.placeholderPattern||abe).test(i))&&!((s=r.placeholderWhitelist)!=null&&s.has(i)))return;t=t.slice();let{node:a,key:o}=t[t.length-1],l;if(xT(e)||Hi(e,{expectedNode:"StringLiteral"}))l="string";else if(rbe(a)&&o==="arguments"||Gge(a)&&o==="arguments"||Zge(a)&&o==="params")l="param";else if(Qge(a)&&!Hi(e))l="statement",t=t.slice(0,-1);else if(sbe(e)&&Hi(e))l="statement";else l="other";let{placeholders:u,placeholderNames:p}=!n?r.legacy:r.syntactic;u.push({name:i,type:l,resolve:(m)=>ube(m,t),isDuplicate:p.has(i)}),p.add(i)}function ube(e,t){let r=e;for(let n=0;n<t.length-1;n++){let{key:a,index:o}=t[n];if(o===void 0)r=r[a];else r=r[a][o]}let{key:s,index:i}=t[t.length-1];return{parent:r,key:s,index:i}}function cbe(e,t,r){let s=(t.plugins||[]).slice();if(r!==!1)s.push("placeholders");t=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},t,{plugins:s});try{return(0,Hge.parse)(e,t)}catch(i){let n=i.loc;if(n)i.message+=`
36
- `+(0,zge.codeFrameColumns)(e,{start:n}),i.code="BABEL_TEMPLATE_PARSE_ERROR";throw i}}});var Ho=A(function(ET){Object.defineProperty(ET,"__esModule",{value:!0});ET.default=Tbe;var fbe=ae(),{blockStatement:hbe,cloneNode:$o,emptyStatement:dbe,expressionStatement:Xo,identifier:zi,isStatement:gT,isStringLiteral:mbe,stringLiteral:ybe,validate:bT}=fbe;function Tbe(e,t){let r=$o(e.ast);if(t)e.placeholders.forEach((s)=>{if(!hasOwnProperty.call(t,s.name)){let i=s.name;throw Error(`Error: No substitution given for "${i}". If this is not meant to be a
35
+ )`,validate:(e)=>{if(e.program.body.length>1)throw Error("Found multiple statements but wanted one");if(Mge.unwrap(e).start===0)throw Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return Lge(t),t.expression}},L2e=mT.program={code:(e)=>e,validate:()=>{},unwrap:(e)=>e.program}});var $i=A(function(xT){Object.defineProperty(xT,"__esModule",{value:!0});xT.merge=Kge;xT.normalizeReplacements=Yge;xT.validate=Vge;var qge=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function Uge(e,t){if(e==null)return{};var r={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;r[s]=e[s]}return r}function Kge(e,t){let{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:s=e.placeholderPattern,preserveComments:i=e.preserveComments,syntacticPlaceholders:n=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:n}}function Vge(e){if(e!=null&&typeof e!=="object")throw Error("Unknown template options.");let t=e||{},{placeholderWhitelist:r,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:n}=t,a=Uge(t,qge);if(r!=null&&!(r instanceof Set))throw Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(s!=null&&!(s instanceof RegExp)&&s!==!1)throw Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(i!=null&&typeof i!=="boolean")throw Error("'.preserveComments' must be a boolean, null, or undefined");if(n!=null&&typeof n!=="boolean")throw Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(n===!0&&(r!=null||s!=null))throw Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:s==null?void 0:s,preserveComments:i==null?void 0:i,syntacticPlaceholders:n==null?void 0:n}}function Yge(e){if(Array.isArray(e))return e.reduce((t,r,s)=>(t["$"+s]=r,t),{});else if(typeof e==="object"||e==null)return e||void 0;throw Error("Template replacements must be an array, object, null, or undefined")}});var Wo=A(function(gT){Object.defineProperty(gT,"__esModule",{value:!0});gT.default=obe;var $ge=ae(),Hge=Qs(),zge=ko(),{isCallExpression:Gge,isExpressionStatement:Qge,isFunction:Zge,isIdentifier:ebe,isJSXIdentifier:tbe,isNewExpression:rbe,isPlaceholder:Hi,isStatement:sbe,isStringLiteral:ST,removePropertiesDeep:ibe,traverse:nbe}=$ge,abe=/^[_$A-Z0-9]+$/;function obe(e,t,r){let{placeholderWhitelist:s,placeholderPattern:i,preserveComments:n,syntacticPlaceholders:a}=r,o=cbe(t,r.parser,a);ibe(o,{preserveComments:n}),e.validate(o);let l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:s,placeholderPattern:i,syntacticPlaceholders:a};return nbe(o,lbe,l),Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function lbe(e,t,r){var s;let i,n=r.syntactic.placeholders.length>0;if(Hi(e)){if(r.syntacticPlaceholders===!1)throw Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");i=e.name.name,n=!0}else if(n||r.syntacticPlaceholders)return;else if(ebe(e)||tbe(e))i=e.name;else if(ST(e))i=e.value;else return;if(n&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!n&&(r.placeholderPattern===!1||!(r.placeholderPattern||abe).test(i))&&!((s=r.placeholderWhitelist)!=null&&s.has(i)))return;t=t.slice();let{node:a,key:o}=t[t.length-1],l;if(ST(e)||Hi(e,{expectedNode:"StringLiteral"}))l="string";else if(rbe(a)&&o==="arguments"||Gge(a)&&o==="arguments"||Zge(a)&&o==="params")l="param";else if(Qge(a)&&!Hi(e))l="statement",t=t.slice(0,-1);else if(sbe(e)&&Hi(e))l="statement";else l="other";let{placeholders:u,placeholderNames:p}=!n?r.legacy:r.syntactic;u.push({name:i,type:l,resolve:(m)=>ube(m,t),isDuplicate:p.has(i)}),p.add(i)}function ube(e,t){let r=e;for(let n=0;n<t.length-1;n++){let{key:a,index:o}=t[n];if(o===void 0)r=r[a];else r=r[a][o]}let{key:s,index:i}=t[t.length-1];return{parent:r,key:s,index:i}}function cbe(e,t,r){let s=(t.plugins||[]).slice();if(r!==!1)s.push("placeholders");t=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},t,{plugins:s});try{return(0,Hge.parse)(e,t)}catch(i){let n=i.loc;if(n)i.message+=`
36
+ `+(0,zge.codeFrameColumns)(e,{start:n}),i.code="BABEL_TEMPLATE_PARSE_ERROR";throw i}}});var Ho=A(function(PT){Object.defineProperty(PT,"__esModule",{value:!0});PT.default=Tbe;var fbe=ae(),{blockStatement:hbe,cloneNode:$o,emptyStatement:dbe,expressionStatement:Xo,identifier:zi,isStatement:bT,isStringLiteral:mbe,stringLiteral:ybe,validate:ET}=fbe;function Tbe(e,t){let r=$o(e.ast);if(t)e.placeholders.forEach((s)=>{if(!hasOwnProperty.call(t,s.name)){let i=s.name;throw Error(`Error: No substitution given for "${i}". If this is not meant to be a
37
37
  placeholder you may want to consider passing one of the following options to @babel/template:
38
38
  - { placeholderPattern: false, placeholderWhitelist: new Set(['${i}'])}
39
- - { placeholderPattern: /^${i}$/ }`)}}),Object.keys(t).forEach((s)=>{if(!e.placeholderNames.has(s))throw Error(`Unknown substitution "${s}" given`)});return e.placeholders.slice().reverse().forEach((s)=>{try{var i;xbe(s,r,(i=t&&t[s.name])!=null?i:null)}catch(n){throw n.message=`@babel/template placeholder "${s.name}": ${n.message}`,n}}),r}function xbe(e,t,r){if(e.isDuplicate){if(Array.isArray(r))r=r.map((o)=>$o(o));else if(typeof r==="object")r=$o(r)}let{parent:s,key:i,index:n}=e.resolve(t);if(e.type==="string"){if(typeof r==="string")r=ybe(r);if(!r||!mbe(r))throw Error("Expected string substitution")}else if(e.type==="statement"){if(n===void 0){if(!r)r=dbe();else if(Array.isArray(r))r=hbe(r);else if(typeof r==="string")r=Xo(zi(r));else if(!gT(r))r=Xo(r)}else if(r&&!Array.isArray(r)){if(typeof r==="string")r=zi(r);if(!gT(r))r=Xo(r)}}else if(e.type==="param"){if(typeof r==="string")r=zi(r);if(n===void 0)throw Error("Assertion failure.")}else{if(typeof r==="string")r=zi(r);if(Array.isArray(r))throw Error("Cannot replace single expression with an array.")}function a(o,l,u){let p=o[l];if(o[l]=u,p.type==="Identifier"||p.type==="Placeholder"){if(p.typeAnnotation)u.typeAnnotation=p.typeAnnotation;if(p.optional)u.optional=p.optional;if(p.decorators)u.decorators=p.decorators}}if(n===void 0)bT(s,i,r),a(s,i,r);else{let o=s[i].slice();if(e.type==="statement"||e.type==="param")if(r==null)o.splice(n,1);else if(Array.isArray(r))o.splice(n,1,...r);else a(o,n,r);else a(o,n,r);bT(s,i,o),s[i]=o}}});var AT=A(function(PT){Object.defineProperty(PT,"__esModule",{value:!0});PT.default=Pbe;var gbe=$i(),bbe=Wo(),Ebe=Ho();function Pbe(e,t,r){t=e.code(t);let s;return(i)=>{let n=(0,gbe.normalizeReplacements)(i);if(!s)s=(0,bbe.default)(e,t,r);return e.unwrap((0,Ebe.default)(s,n))}}});var CT=A(function(vT){Object.defineProperty(vT,"__esModule",{value:!0});vT.default=wbe;var vbe=$i(),Cbe=Wo(),Ibe=Ho();function wbe(e,t,r){let{metadata:s,names:i}=Nbe(e,t,r);return(n)=>{let a={};return n.forEach((o,l)=>{a[i[l]]=o}),(o)=>{let l=(0,vbe.normalizeReplacements)(o);if(l)Object.keys(l).forEach((u)=>{if(hasOwnProperty.call(a,u))throw Error("Unexpected replacement overlap.")});return e.unwrap((0,Ibe.default)(s,l?Object.assign(l,a):a))}}}function Nbe(e,t,r){let s="BABEL_TPL$",i=t.join("");do s="$$"+s;while(i.includes(s));let{names:n,code:a}=Obe(t,s);return{metadata:(0,Cbe.default)(e,e.code(a),{parser:r.parser,placeholderWhitelist:new Set(n.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:n}}function Obe(e,t){let r=[],s=e[0];for(let i=1;i<e.length;i++){let n=`${t}${i-1}`;r.push(n),s+=n+e[i]}return{names:r,code:s}}});var DT=A(function(kT){Object.defineProperty(kT,"__esModule",{value:!0});kT.default=_T;var Nt=$i(),IT=AT(),wT=CT(),NT=(0,Nt.validate)({placeholderPattern:!1});function _T(e,t){let r=new WeakMap,s=new WeakMap,i=t||(0,Nt.validate)(null);return Object.assign((n,...a)=>{if(typeof n==="string"){if(a.length>1)throw Error("Unexpected extra params.");return OT((0,IT.default)(e,n,(0,Nt.merge)(i,(0,Nt.validate)(a[0]))))}else if(Array.isArray(n)){let o=r.get(n);if(!o)o=(0,wT.default)(e,n,i),r.set(n,o);return OT(o(a))}else if(typeof n==="object"&&n){if(a.length>0)throw Error("Unexpected extra params.");return _T(e,(0,Nt.merge)(i,(0,Nt.validate)(n)))}throw Error(`Unexpected template param ${typeof n}`)},{ast:(n,...a)=>{if(typeof n==="string"){if(a.length>1)throw Error("Unexpected extra params.");return(0,IT.default)(e,n,(0,Nt.merge)((0,Nt.merge)(i,(0,Nt.validate)(a[0])),NT))()}else if(Array.isArray(n)){let o=s.get(n);if(!o)o=(0,wT.default)(e,n,(0,Nt.merge)(i,NT)),s.set(n,o);return o(a)()}throw Error(`Unexpected template param ${typeof n}`)}})}function OT(e){let t="";try{throw Error()}catch(r){if(r.stack)t=r.stack.split(`
39
+ - { placeholderPattern: /^${i}$/ }`)}}),Object.keys(t).forEach((s)=>{if(!e.placeholderNames.has(s))throw Error(`Unknown substitution "${s}" given`)});return e.placeholders.slice().reverse().forEach((s)=>{try{var i;xbe(s,r,(i=t&&t[s.name])!=null?i:null)}catch(n){throw n.message=`@babel/template placeholder "${s.name}": ${n.message}`,n}}),r}function xbe(e,t,r){if(e.isDuplicate){if(Array.isArray(r))r=r.map((o)=>$o(o));else if(typeof r==="object")r=$o(r)}let{parent:s,key:i,index:n}=e.resolve(t);if(e.type==="string"){if(typeof r==="string")r=ybe(r);if(!r||!mbe(r))throw Error("Expected string substitution")}else if(e.type==="statement"){if(n===void 0){if(!r)r=dbe();else if(Array.isArray(r))r=hbe(r);else if(typeof r==="string")r=Xo(zi(r));else if(!bT(r))r=Xo(r)}else if(r&&!Array.isArray(r)){if(typeof r==="string")r=zi(r);if(!bT(r))r=Xo(r)}}else if(e.type==="param"){if(typeof r==="string")r=zi(r);if(n===void 0)throw Error("Assertion failure.")}else{if(typeof r==="string")r=zi(r);if(Array.isArray(r))throw Error("Cannot replace single expression with an array.")}function a(o,l,u){let p=o[l];if(o[l]=u,p.type==="Identifier"||p.type==="Placeholder"){if(p.typeAnnotation)u.typeAnnotation=p.typeAnnotation;if(p.optional)u.optional=p.optional;if(p.decorators)u.decorators=p.decorators}}if(n===void 0)ET(s,i,r),a(s,i,r);else{let o=s[i].slice();if(e.type==="statement"||e.type==="param")if(r==null)o.splice(n,1);else if(Array.isArray(r))o.splice(n,1,...r);else a(o,n,r);else a(o,n,r);ET(s,i,o),s[i]=o}}});var vT=A(function(AT){Object.defineProperty(AT,"__esModule",{value:!0});AT.default=Pbe;var gbe=$i(),bbe=Wo(),Ebe=Ho();function Pbe(e,t,r){t=e.code(t);let s;return(i)=>{let n=(0,gbe.normalizeReplacements)(i);if(!s)s=(0,bbe.default)(e,t,r);return e.unwrap((0,Ebe.default)(s,n))}}});var IT=A(function(CT){Object.defineProperty(CT,"__esModule",{value:!0});CT.default=wbe;var vbe=$i(),Cbe=Wo(),Ibe=Ho();function wbe(e,t,r){let{metadata:s,names:i}=Nbe(e,t,r);return(n)=>{let a={};return n.forEach((o,l)=>{a[i[l]]=o}),(o)=>{let l=(0,vbe.normalizeReplacements)(o);if(l)Object.keys(l).forEach((u)=>{if(hasOwnProperty.call(a,u))throw Error("Unexpected replacement overlap.")});return e.unwrap((0,Ibe.default)(s,l?Object.assign(l,a):a))}}}function Nbe(e,t,r){let s="BABEL_TPL$",i=t.join("");do s="$$"+s;while(i.includes(s));let{names:n,code:a}=Obe(t,s);return{metadata:(0,Cbe.default)(e,e.code(a),{parser:r.parser,placeholderWhitelist:new Set(n.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:n}}function Obe(e,t){let r=[],s=e[0];for(let i=1;i<e.length;i++){let n=`${t}${i-1}`;r.push(n),s+=n+e[i]}return{names:r,code:s}}});var LT=A(function(DT){Object.defineProperty(DT,"__esModule",{value:!0});DT.default=kT;var Nt=$i(),wT=vT(),NT=IT(),OT=(0,Nt.validate)({placeholderPattern:!1});function kT(e,t){let r=new WeakMap,s=new WeakMap,i=t||(0,Nt.validate)(null);return Object.assign((n,...a)=>{if(typeof n==="string"){if(a.length>1)throw Error("Unexpected extra params.");return _T((0,wT.default)(e,n,(0,Nt.merge)(i,(0,Nt.validate)(a[0]))))}else if(Array.isArray(n)){let o=r.get(n);if(!o)o=(0,NT.default)(e,n,i),r.set(n,o);return _T(o(a))}else if(typeof n==="object"&&n){if(a.length>0)throw Error("Unexpected extra params.");return kT(e,(0,Nt.merge)(i,(0,Nt.validate)(n)))}throw Error(`Unexpected template param ${typeof n}`)},{ast:(n,...a)=>{if(typeof n==="string"){if(a.length>1)throw Error("Unexpected extra params.");return(0,wT.default)(e,n,(0,Nt.merge)((0,Nt.merge)(i,(0,Nt.validate)(a[0])),OT))()}else if(Array.isArray(n)){let o=s.get(n);if(!o)o=(0,NT.default)(e,n,(0,Nt.merge)(i,OT)),s.set(n,o);return o(a)()}throw Error(`Unexpected template param ${typeof n}`)}})}function _T(e){let t="";try{throw Error()}catch(r){if(r.stack)t=r.stack.split(`
40
40
  `).slice(3).join(`
41
41
  `)}return(r)=>{try{return e(r)}catch(s){throw s.stack+=`
42
42
  =============
43
- ${t}`,s}}}});var BT=A(function(LT){Object.defineProperty(LT,"__esModule",{value:!0});LT.statements=LT.statement=LT.smart=LT.program=LT.expression=LT.default=void 0;var Ls=yT(),Ms=DT(),zo=LT.smart=(0,Ms.default)(Ls.smart),Dbe=LT.statement=(0,Ms.default)(Ls.statement),Lbe=LT.statements=(0,Ms.default)(Ls.statements),Mbe=LT.expression=(0,Ms.default)(Ls.expression),Bbe=LT.program=(0,Ms.default)(Ls.program),K2e=LT.default=Object.assign(zo.bind(void 0),{smart:zo,statement:Dbe,statements:Lbe,expression:Mbe,program:Bbe,ast:zo.ast})});var JT=A(function(YT){Object.defineProperty(YT,"__esModule",{value:!0});YT.arrowFunctionToExpression=T0e;YT.ensureBlock=d0e;YT.ensureFunctionName=N0e;YT.splitExportDeclaration=I0e;YT.toComputedKey=h0e;YT.unwrapFunctionEnvironment=m0e;var Kbe=ae(),Vbe=BT(),Zo=As(),Ybe=pt(),{arrowFunctionExpression:el,assignmentExpression:Pr,binaryExpression:Go,blockStatement:Jbe,callExpression:Wr,conditionalExpression:Wbe,expressionStatement:RT,identifier:Ie,isIdentifier:Xbe,jsxIdentifier:$be,logicalExpression:Hbe,LOGICAL_OPERATORS:zbe,memberExpression:bt,metaProperty:Gbe,numericLiteral:Qbe,objectExpression:Zbe,restElement:e0e,returnStatement:t0e,sequenceExpression:r0e,spreadElement:s0e,stringLiteral:qT,super:Qo,thisExpression:Bs,toExpression:UT,unaryExpression:i0e,toBindingIdentifierName:n0e,isFunction:a0e,isAssignmentPattern:o0e,isRestElement:l0e,getFunctionName:u0e,cloneNode:Ar,variableDeclaration:c0e,variableDeclarator:p0e,exportNamedDeclaration:FT,exportSpecifier:jT,inherits:f0e}=Kbe;function h0e(){let e;if(this.isMemberExpression())e=this.node.property;else if(this.isProperty()||this.isMethod())e=this.node.key;else throw ReferenceError("todo");if(!this.node.computed){if(Xbe(e))e=qT(e.name)}return e}function d0e(){let e=this.get("body"),t=e.node;if(Array.isArray(e))throw Error("Can't convert array path to a block statement");if(!t)throw Error("Can't convert node without a body");if(e.isBlockStatement())return t;let r=[],s="body",i,n;if(e.isStatement())n="body",i=0,r.push(e.node);else if(s+=".body.0",this.isFunction())i="argument",r.push(t0e(e.node));else i="expression",r.push(RT(e.node));this.node.body=Jbe(r);let a=this.get(s);return Ybe.setup.call(e,a,n?a.node[n]:a.node,n,i),this.node}YT.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()};function m0e(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");KT(this)}function y0e(e,t){e.node.type=t}function T0e({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:r=!((s)=>(s=arguments[0])==null?void 0:s.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let s=this;if(!r){var i;s=(i=s.ensureFunctionName(!1))!=null?i:s}let{thisBinding:n,fnPath:a}=KT(s,r,e,t);if(a.ensureBlock(),y0e(a,"FunctionExpression"),!r){let o=n?null:a.scope.generateUidIdentifier("arrowCheckId");if(o)a.parentPath.scope.push({id:o,init:Zbe([])});return a.get("body").unshiftContainer("body",RT(Wr(this.hub.addHelper("newArrowCheck"),[Bs(),o?Ie(o.name):Ie(n)]))),a.replaceWith(Wr(bt(a.node,Ie("bind")),[o?Ie(o.name):Bs()])),a.get("callee.object")}return a}var x0e=(0,Zo.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){if(!e.get("callee").isSuper())return;t.push(e)}});function KT(e,t=!0,r=!0,s=!0){let i,n=e.findParent((g)=>{if(g.isArrowFunctionExpression())return i!=null||(i=g),!1;return g.isFunction()||g.isProgram()||g.isClassProperty({static:!1})||g.isClassPrivateProperty({static:!1})}),a=n.isClassMethod({kind:"constructor"});if(n.isClassProperty()||n.isClassPrivateProperty())if(i)n=i;else if(r)e.replaceWith(Wr(el([],UT(e.node)),[])),n=e.get("callee"),e=n.get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:o,argumentsPaths:l,newTargetPaths:u,superProps:p,superCalls:m}=C0e(e);if(a&&m.length>0){if(!r)throw m[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!s)throw m[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let g=[];n.traverse(x0e,{allSuperCalls:g});let E=P0e(n);g.forEach((I)=>{let b=Ie(E);b.loc=I.node.callee.loc,I.get("callee").replaceWith(b)})}if(l.length>0){let g=Fs(n,"arguments",()=>{let E=()=>Ie("arguments");if(n.scope.path.isProgram())return Wbe(Go("===",i0e("typeof",E()),qT("undefined")),n.scope.buildUndefinedNode(),E());else return E()});l.forEach((E)=>{let I=Ie(g);I.loc=E.node.loc,E.replaceWith(I)})}if(u.length>0){let g=Fs(n,"newtarget",()=>Gbe(Ie("new"),Ie("target")));u.forEach((E)=>{let I=Ie(g);I.loc=E.node.loc,E.replaceWith(I)})}if(p.length>0){if(!r)throw p[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");p.reduce((E,I)=>E.concat(g0e(I)),[]).forEach((E)=>{let I=E.node.computed?"":E.get("property").node.name,b=E.parentPath,C=b.isAssignmentExpression({left:E.node}),N=b.isCallExpression({callee:E.node}),z=b.isTaggedTemplateExpression({tag:E.node}),j=A0e(n,C,I),V=[];if(E.node.computed)V.push(E.get("property").node);if(C){let ge=b.node.right;V.push(ge)}let ie=Wr(Ie(j),V);if(N)b.unshiftContainer("arguments",Bs()),E.replaceWith(bt(ie,Ie("call"))),o.push(b.get("arguments.0"));else if(C)b.replaceWith(ie);else if(z)E.replaceWith(Wr(bt(ie,Ie("bind"),!1),[Bs()])),o.push(E.get("arguments.0"));else E.replaceWith(ie)})}let x;if(o.length>0||!t){if(x=E0e(n,a),t||a&&VT(n)){if(o.forEach((g)=>{let E=g.isJSX()?$be(x):Ie(x);E.loc=g.node.loc,g.replaceWith(E)}),!t)x=null}}return{thisBinding:x,fnPath:e}}function S0e(e){return zbe.includes(e)}function g0e(e){if(e.parentPath.isAssignmentExpression()&&e.parentPath.node.operator!=="="){let r=e.parentPath,s=r.node.operator.slice(0,-1),i=r.node.right,n=S0e(s);if(e.node.computed){let a=e.scope.generateDeclaredUidIdentifier("tmp"),{object:o,property:l}=e.node;r.get("left").replaceWith(bt(o,Pr("=",a,l),!0)),r.get("right").replaceWith(t(n?"=":s,bt(o,Ie(a.name),!0),i))}else{let a=e.node.object,o=e.node.property;r.get("left").replaceWith(bt(a,o)),r.get("right").replaceWith(t(n?"=":s,bt(a,Ie(o.name)),i))}if(n)r.replaceWith(Hbe(s,r.node.left,r.node.right));else r.node.operator="=";return[r.get("left"),r.get("right").get("left")]}else if(e.parentPath.isUpdateExpression()){let r=e.parentPath,s=e.scope.generateDeclaredUidIdentifier("tmp"),i=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,n=[Pr("=",s,bt(e.node.object,i?Pr("=",i,e.node.property):e.node.property,e.node.computed)),Pr("=",bt(e.node.object,i?Ie(i.name):e.node.property,e.node.computed),Go(e.parentPath.node.operator[0],Ie(s.name),Qbe(1)))];if(!e.parentPath.node.prefix)n.push(Ie(s.name));r.replaceWith(r0e(n));let a=r.get("expressions.0.right"),o=r.get("expressions.1.left");return[a,o]}return[e];function t(r,s,i){if(r==="=")return Pr("=",s,i);else return Go(r,s,i)}}function VT(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var b0e=(0,Zo.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:r}){if(!e.get("callee").isSuper())return;if(t.has(e.node))return;t.add(e.node),e.replaceWithMultiple([e.node,Pr("=",Ie(r),Ie("this"))])}});function E0e(e,t){return Fs(e,"this",(r)=>{if(!t||!VT(e))return Bs();e.traverse(b0e,{supers:new WeakSet,thisBinding:r})})}function P0e(e){return Fs(e,"supercall",()=>{let t=e.scope.generateUidIdentifier("args");return el([e0e(t)],Wr(Qo(),[s0e(Ie(t.name))]))})}function A0e(e,t,r){return Fs(e,`superprop_${t?"set":"get"}:${r||""}`,()=>{let i=[],n;if(r)n=bt(Qo(),Ie(r));else{let a=e.scope.generateUidIdentifier("prop");i.unshift(a),n=bt(Qo(),Ie(a.name),!0)}if(t){let a=e.scope.generateUidIdentifier("value");i.push(a),n=Pr("=",n,Ie(a.name))}return el(i,n)})}function Fs(e,t,r){let s="binding:"+t,i=e.getData(s);if(!i){let n=e.scope.generateUidIdentifier(t);i=n.name,e.setData(s,i),e.scope.push({id:n,init:r(i)})}return i}var v0e=(0,Zo.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){if(e.node.name!=="this")return;if(!e.parentPath.isJSXMemberExpression({object:e.node})&&!e.parentPath.isJSXOpeningElement({name:e.node}))return;t.push(e)},CallExpression(e,{superCalls:t}){if(e.get("callee").isSuper())t.push(e)},MemberExpression(e,{superProps:t}){if(e.get("object").isSuper())t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let r=e.scope;do{if(r.hasOwnBinding("arguments")){r.rename("arguments");return}if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){if(!e.get("meta").isIdentifier({name:"new"}))return;if(!e.get("property").isIdentifier({name:"target"}))return;t.push(e)}});function C0e(e){let t=[],r=[],s=[],i=[],n=[];return e.traverse(v0e,{thisPaths:t,argumentsPaths:r,newTargetPaths:s,superProps:i,superCalls:n}),{thisPaths:t,argumentsPaths:r,newTargetPaths:s,superProps:i,superCalls:n}}function I0e(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");let e=this.get("declaration");if(this.isExportDefaultDeclaration()){let i=e.isFunctionDeclaration()||e.isClassDeclaration(),n=e.isFunctionExpression()||e.isClassExpression(),a=e.isScope()?e.scope.parent:e.scope,o=e.node.id,l=!1;if(!o){if(l=!0,o=a.generateUidIdentifier("default"),i||n)e.node.id=Ar(o)}else if(n&&a.hasBinding(o.name))l=!0,o=a.generateUidIdentifier(o.name);let u=i?e.node:c0e("var",[p0e(Ar(o),e.node)]),p=FT(null,[jT(Ar(o),Ie("default"))]);if(this.insertAfter(p),this.replaceWith(u),l)a.registerDeclaration(this);return this}else if(this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");let t=e.getOuterBindingIdentifiers(),r=Object.keys(t).map((i)=>jT(Ie(i),Ie(i))),s=FT(null,r);return this.insertAfter(s),this.replaceWith(e.node),this}var w0e={"ReferencedIdentifier|BindingIdentifier"(e,t){if(e.node.name!==t.name)return;t.needsRename=!0,e.stop()},Scope(e,t){if(e.scope.hasOwnBinding(t.name))e.skip()}};function N0e(e){if(this.node.id)return this;let t=u0e(this.node,this.parent);if(t==null)return this;let{name:r}=t;if(!e&&/[\uD800-\uDFFF]/.test(r))return null;if(r.startsWith("get ")||r.startsWith("set "))return null;r=n0e(r.replace(/[/ ]/g,"_"));let s=Ie(r);f0e(s,t.originalNode);let i={needsRename:!1,name:r},{scope:n}=this,a=n.getOwnBinding(r);if(a){if(a.kind==="param")i.needsRename=!0}else if(n.parent.hasBinding(r)||n.hasGlobal(r))this.traverse(w0e,i);if(!i.needsRename)return this.node.id=s,n.getProgramParent().references[s.name]=!0,this;if(n.hasBinding(s.name)&&!n.hasGlobal(s.name))return n.rename(s.name),this.node.id=s,n.getProgramParent().references[s.name]=!0,this;if(!a0e(this.node))return null;let o=n.generateUidIdentifier(s.name),l=[];for(let p=0,m=O0e(this.node);p<m;p++)l.push(n.generateUidIdentifier("x"));let u=Vbe.default.expression.ast`
43
+ ${t}`,s}}}});var FT=A(function(MT){Object.defineProperty(MT,"__esModule",{value:!0});MT.statements=MT.statement=MT.smart=MT.program=MT.expression=MT.default=void 0;var Ms=TT(),Bs=LT(),zo=MT.smart=(0,Bs.default)(Ms.smart),Dbe=MT.statement=(0,Bs.default)(Ms.statement),Lbe=MT.statements=(0,Bs.default)(Ms.statements),Mbe=MT.expression=(0,Bs.default)(Ms.expression),Bbe=MT.program=(0,Bs.default)(Ms.program),K2e=MT.default=Object.assign(zo.bind(void 0),{smart:zo,statement:Dbe,statements:Lbe,expression:Mbe,program:Bbe,ast:zo.ast})});var WT=A(function(JT){Object.defineProperty(JT,"__esModule",{value:!0});JT.arrowFunctionToExpression=T0e;JT.ensureBlock=d0e;JT.ensureFunctionName=N0e;JT.splitExportDeclaration=I0e;JT.toComputedKey=h0e;JT.unwrapFunctionEnvironment=m0e;var Kbe=ae(),Vbe=FT(),Zo=vs(),Ybe=pt(),{arrowFunctionExpression:el,assignmentExpression:Ar,binaryExpression:Go,blockStatement:Jbe,callExpression:Xr,conditionalExpression:Wbe,expressionStatement:qT,identifier:Ie,isIdentifier:Xbe,jsxIdentifier:$be,logicalExpression:Hbe,LOGICAL_OPERATORS:zbe,memberExpression:bt,metaProperty:Gbe,numericLiteral:Qbe,objectExpression:Zbe,restElement:e0e,returnStatement:t0e,sequenceExpression:r0e,spreadElement:s0e,stringLiteral:UT,super:Qo,thisExpression:Fs,toExpression:KT,unaryExpression:i0e,toBindingIdentifierName:n0e,isFunction:a0e,isAssignmentPattern:o0e,isRestElement:l0e,getFunctionName:u0e,cloneNode:vr,variableDeclaration:c0e,variableDeclarator:p0e,exportNamedDeclaration:jT,exportSpecifier:RT,inherits:f0e}=Kbe;function h0e(){let e;if(this.isMemberExpression())e=this.node.property;else if(this.isProperty()||this.isMethod())e=this.node.key;else throw ReferenceError("todo");if(!this.node.computed){if(Xbe(e))e=UT(e.name)}return e}function d0e(){let e=this.get("body"),t=e.node;if(Array.isArray(e))throw Error("Can't convert array path to a block statement");if(!t)throw Error("Can't convert node without a body");if(e.isBlockStatement())return t;let r=[],s="body",i,n;if(e.isStatement())n="body",i=0,r.push(e.node);else if(s+=".body.0",this.isFunction())i="argument",r.push(t0e(e.node));else i="expression",r.push(qT(e.node));this.node.body=Jbe(r);let a=this.get(s);return Ybe.setup.call(e,a,n?a.node[n]:a.node,n,i),this.node}JT.arrowFunctionToShadowed=function(){if(!this.isArrowFunctionExpression())return;this.arrowFunctionToExpression()};function m0e(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");VT(this)}function y0e(e,t){e.node.type=t}function T0e({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:r=!((s)=>(s=arguments[0])==null?void 0:s.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let s=this;if(!r){var i;s=(i=s.ensureFunctionName(!1))!=null?i:s}let{thisBinding:n,fnPath:a}=VT(s,r,e,t);if(a.ensureBlock(),y0e(a,"FunctionExpression"),!r){let o=n?null:a.scope.generateUidIdentifier("arrowCheckId");if(o)a.parentPath.scope.push({id:o,init:Zbe([])});return a.get("body").unshiftContainer("body",qT(Xr(this.hub.addHelper("newArrowCheck"),[Fs(),o?Ie(o.name):Ie(n)]))),a.replaceWith(Xr(bt(a.node,Ie("bind")),[o?Ie(o.name):Fs()])),a.get("callee.object")}return a}var x0e=(0,Zo.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){if(!e.get("callee").isSuper())return;t.push(e)}});function VT(e,t=!0,r=!0,s=!0){let i,n=e.findParent((g)=>{if(g.isArrowFunctionExpression())return i!=null||(i=g),!1;return g.isFunction()||g.isProgram()||g.isClassProperty({static:!1})||g.isClassPrivateProperty({static:!1})}),a=n.isClassMethod({kind:"constructor"});if(n.isClassProperty()||n.isClassPrivateProperty())if(i)n=i;else if(r)e.replaceWith(Xr(el([],KT(e.node)),[])),n=e.get("callee"),e=n.get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:o,argumentsPaths:l,newTargetPaths:u,superProps:p,superCalls:m}=C0e(e);if(a&&m.length>0){if(!r)throw m[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!s)throw m[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let g=[];n.traverse(x0e,{allSuperCalls:g});let E=P0e(n);g.forEach((I)=>{let b=Ie(E);b.loc=I.node.callee.loc,I.get("callee").replaceWith(b)})}if(l.length>0){let g=js(n,"arguments",()=>{let E=()=>Ie("arguments");if(n.scope.path.isProgram())return Wbe(Go("===",i0e("typeof",E()),UT("undefined")),n.scope.buildUndefinedNode(),E());else return E()});l.forEach((E)=>{let I=Ie(g);I.loc=E.node.loc,E.replaceWith(I)})}if(u.length>0){let g=js(n,"newtarget",()=>Gbe(Ie("new"),Ie("target")));u.forEach((E)=>{let I=Ie(g);I.loc=E.node.loc,E.replaceWith(I)})}if(p.length>0){if(!r)throw p[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");p.reduce((E,I)=>E.concat(g0e(I)),[]).forEach((E)=>{let I=E.node.computed?"":E.get("property").node.name,b=E.parentPath,C=b.isAssignmentExpression({left:E.node}),N=b.isCallExpression({callee:E.node}),z=b.isTaggedTemplateExpression({tag:E.node}),j=A0e(n,C,I),V=[];if(E.node.computed)V.push(E.get("property").node);if(C){let ge=b.node.right;V.push(ge)}let ie=Xr(Ie(j),V);if(N)b.unshiftContainer("arguments",Fs()),E.replaceWith(bt(ie,Ie("call"))),o.push(b.get("arguments.0"));else if(C)b.replaceWith(ie);else if(z)E.replaceWith(Xr(bt(ie,Ie("bind"),!1),[Fs()])),o.push(E.get("arguments.0"));else E.replaceWith(ie)})}let x;if(o.length>0||!t){if(x=E0e(n,a),t||a&&YT(n)){if(o.forEach((g)=>{let E=g.isJSX()?$be(x):Ie(x);E.loc=g.node.loc,g.replaceWith(E)}),!t)x=null}}return{thisBinding:x,fnPath:e}}function S0e(e){return zbe.includes(e)}function g0e(e){if(e.parentPath.isAssignmentExpression()&&e.parentPath.node.operator!=="="){let r=e.parentPath,s=r.node.operator.slice(0,-1),i=r.node.right,n=S0e(s);if(e.node.computed){let a=e.scope.generateDeclaredUidIdentifier("tmp"),{object:o,property:l}=e.node;r.get("left").replaceWith(bt(o,Ar("=",a,l),!0)),r.get("right").replaceWith(t(n?"=":s,bt(o,Ie(a.name),!0),i))}else{let a=e.node.object,o=e.node.property;r.get("left").replaceWith(bt(a,o)),r.get("right").replaceWith(t(n?"=":s,bt(a,Ie(o.name)),i))}if(n)r.replaceWith(Hbe(s,r.node.left,r.node.right));else r.node.operator="=";return[r.get("left"),r.get("right").get("left")]}else if(e.parentPath.isUpdateExpression()){let r=e.parentPath,s=e.scope.generateDeclaredUidIdentifier("tmp"),i=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,n=[Ar("=",s,bt(e.node.object,i?Ar("=",i,e.node.property):e.node.property,e.node.computed)),Ar("=",bt(e.node.object,i?Ie(i.name):e.node.property,e.node.computed),Go(e.parentPath.node.operator[0],Ie(s.name),Qbe(1)))];if(!e.parentPath.node.prefix)n.push(Ie(s.name));r.replaceWith(r0e(n));let a=r.get("expressions.0.right"),o=r.get("expressions.1.left");return[a,o]}return[e];function t(r,s,i){if(r==="=")return Ar("=",s,i);else return Go(r,s,i)}}function YT(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var b0e=(0,Zo.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:r}){if(!e.get("callee").isSuper())return;if(t.has(e.node))return;t.add(e.node),e.replaceWithMultiple([e.node,Ar("=",Ie(r),Ie("this"))])}});function E0e(e,t){return js(e,"this",(r)=>{if(!t||!YT(e))return Fs();e.traverse(b0e,{supers:new WeakSet,thisBinding:r})})}function P0e(e){return js(e,"supercall",()=>{let t=e.scope.generateUidIdentifier("args");return el([e0e(t)],Xr(Qo(),[s0e(Ie(t.name))]))})}function A0e(e,t,r){return js(e,`superprop_${t?"set":"get"}:${r||""}`,()=>{let i=[],n;if(r)n=bt(Qo(),Ie(r));else{let a=e.scope.generateUidIdentifier("prop");i.unshift(a),n=bt(Qo(),Ie(a.name),!0)}if(t){let a=e.scope.generateUidIdentifier("value");i.push(a),n=Ar("=",n,Ie(a.name))}return el(i,n)})}function js(e,t,r){let s="binding:"+t,i=e.getData(s);if(!i){let n=e.scope.generateUidIdentifier(t);i=n.name,e.setData(s,i),e.scope.push({id:n,init:r(i)})}return i}var v0e=(0,Zo.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){if(e.node.name!=="this")return;if(!e.parentPath.isJSXMemberExpression({object:e.node})&&!e.parentPath.isJSXOpeningElement({name:e.node}))return;t.push(e)},CallExpression(e,{superCalls:t}){if(e.get("callee").isSuper())t.push(e)},MemberExpression(e,{superProps:t}){if(e.get("object").isSuper())t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let r=e.scope;do{if(r.hasOwnBinding("arguments")){r.rename("arguments");return}if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){if(!e.get("meta").isIdentifier({name:"new"}))return;if(!e.get("property").isIdentifier({name:"target"}))return;t.push(e)}});function C0e(e){let t=[],r=[],s=[],i=[],n=[];return e.traverse(v0e,{thisPaths:t,argumentsPaths:r,newTargetPaths:s,superProps:i,superCalls:n}),{thisPaths:t,argumentsPaths:r,newTargetPaths:s,superProps:i,superCalls:n}}function I0e(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");let e=this.get("declaration");if(this.isExportDefaultDeclaration()){let i=e.isFunctionDeclaration()||e.isClassDeclaration(),n=e.isFunctionExpression()||e.isClassExpression(),a=e.isScope()?e.scope.parent:e.scope,o=e.node.id,l=!1;if(!o){if(l=!0,o=a.generateUidIdentifier("default"),i||n)e.node.id=vr(o)}else if(n&&a.hasBinding(o.name))l=!0,o=a.generateUidIdentifier(o.name);let u=i?e.node:c0e("var",[p0e(vr(o),e.node)]),p=jT(null,[RT(vr(o),Ie("default"))]);if(this.insertAfter(p),this.replaceWith(u),l)a.registerDeclaration(this);return this}else if(this.get("specifiers").length>0)throw Error("It doesn't make sense to split exported specifiers.");let t=e.getOuterBindingIdentifiers(),r=Object.keys(t).map((i)=>RT(Ie(i),Ie(i))),s=jT(null,r);return this.insertAfter(s),this.replaceWith(e.node),this}var w0e={"ReferencedIdentifier|BindingIdentifier"(e,t){if(e.node.name!==t.name)return;t.needsRename=!0,e.stop()},Scope(e,t){if(e.scope.hasOwnBinding(t.name))e.skip()}};function N0e(e){if(this.node.id)return this;let t=u0e(this.node,this.parent);if(t==null)return this;let{name:r}=t;if(!e&&/[\uD800-\uDFFF]/.test(r))return null;if(r.startsWith("get ")||r.startsWith("set "))return null;r=n0e(r.replace(/[/ ]/g,"_"));let s=Ie(r);f0e(s,t.originalNode);let i={needsRename:!1,name:r},{scope:n}=this,a=n.getOwnBinding(r);if(a){if(a.kind==="param")i.needsRename=!0}else if(n.parent.hasBinding(r)||n.hasGlobal(r))this.traverse(w0e,i);if(!i.needsRename)return this.node.id=s,n.getProgramParent().references[s.name]=!0,this;if(n.hasBinding(s.name)&&!n.hasGlobal(s.name))return n.rename(s.name),this.node.id=s,n.getProgramParent().references[s.name]=!0,this;if(!a0e(this.node))return null;let o=n.generateUidIdentifier(s.name),l=[];for(let p=0,m=O0e(this.node);p<m;p++)l.push(n.generateUidIdentifier("x"));let u=Vbe.default.expression.ast`
44
44
  (function (${o}) {
45
45
  function ${s}(${l}) {
46
- return ${Ar(o)}.apply(this, arguments);
46
+ return ${vr(o)}.apply(this, arguments);
47
47
  }
48
48
 
49
- ${Ar(s)}.toString = function () {
50
- return ${Ar(o)}.toString();
49
+ ${vr(s)}.toString = function () {
50
+ return ${vr(o)}.toString();
51
51
  }
52
52
 
53
- return ${Ar(s)};
54
- })(${UT(this.node)})
55
- `;return this.replaceWith(u)[0].get("arguments.0")}function O0e(e){let t=e.params.findIndex((r)=>o0e(r)||l0e(r));return t===-1?e.params.length:t}});var ZT=A(function(GT){Object.defineProperty(GT,"__esModule",{value:!0});GT._guessExecutionStatusRelativeTo=iEe;GT._resolve=zT;GT.canHaveVariableDeclarationOrExpression=z0e;GT.canSwapBetweenExpressionAndStatement=G0e;GT.getSource=tEe;GT.isCompletionRecord=Q0e;GT.isConstantExpression=lEe;GT.isInStrictMode=uEe;GT.isNodeType=H0e;GT.isStatementOrBlock=Z0e;GT.isStatic=$0e;GT.matchesPattern=X0e;GT.referencesImport=eEe;GT.resolve=oEe;GT.willIMaybeExecuteBefore=rEe;var j0e=ae(),{STATEMENT_OR_BLOCK_KEYS:R0e,VISITOR_KEYS:q0e,isBlockStatement:HT,isExpression:U0e,isIdentifier:K0e,isLiteral:V0e,isStringLiteral:Y0e,isType:J0e,matchesPattern:W0e}=j0e;function X0e(e,t){return W0e(this.node,e,t)}GT.has=function(t){var r;let s=(r=this.node)==null?void 0:r[t];if(s&&Array.isArray(s))return!!s.length;else return!!s};function $0e(){return this.scope.isStatic(this.node)}GT.is=GT.has;GT.isnt=function(t){return!this.has(t)};GT.equals=function(t,r){return this.node[t]===r};function H0e(e){return J0e(this.type,e)}function z0e(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function G0e(e){if(this.key!=="body"||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return HT(e);else if(this.isBlockStatement())return U0e(e);return!1}function Q0e(e){let t=this,r=!0;do{let{type:s,container:i}=t;if(!r&&(t.isFunction()||s==="StaticBlock"))return!!e;if(r=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0}function Z0e(){if(this.parentPath.isLabeledStatement()||HT(this.container))return!1;else return R0e.includes(this.key)}function eEe(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?Y0e(this.node.property,{value:t}):this.node.property.name===t)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(e,"*")}return!1}let r=this.scope.getBinding(this.node.name);if((r==null?void 0:r.kind)!=="module")return!1;let s=r.path,i=s.parentPath;if(!i.isImportDeclaration())return!1;if(i.node.source.value===e){if(!t)return!0}else return!1;if(s.isImportDefaultSpecifier()&&t==="default")return!0;if(s.isImportNamespaceSpecifier()&&t==="*")return!0;if(s.isImportSpecifier()&&K0e(s.node.imported,{name:t}))return!0;return!1}function tEe(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function rEe(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function WT(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function sEe(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return!1}}function XT(e,t){for(let r=0;r<t;r++){let s=e[r];if(sEe(s.parent.type,s.parentKey))return!0}return!1}var $T=Symbol();function iEe(e){return tl(this,e,new Map)}function tl(e,t,r){let s={this:WT(e),target:WT(t)};if(s.target.node!==s.this.node)return aEe(e,s.target,r);let i={target:t.getAncestry(),this:e.getAncestry()};if(i.target.includes(e))return"after";if(i.this.includes(t))return"before";let n,a={target:0,this:0};while(!n&&a.this<i.this.length){let p=i.this[a.this];if(a.target=i.target.indexOf(p),a.target>=0)n=p;else a.this++}if(!n)throw Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(XT(i.this,a.this-1)||XT(i.target,a.target-1))return"unknown";let o={this:i.this[a.this-1],target:i.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";let l=q0e[n.type],u={this:l.indexOf(o.this.parentKey),target:l.indexOf(o.target.parentKey)};return u.target>u.this?"before":"after"}function nEe(e,t,r){if(!t.isFunctionDeclaration()){if(tl(e,t,r)==="before")return"before";return"unknown"}else if(t.parentPath.isExportDeclaration())return"unknown";let s=t.scope.getBinding(t.node.id.name);if(!s.references)return"before";let i=s.referencePaths,n;for(let a of i){if(!!a.find((u)=>u.node===t.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let l=tl(e,a,r);if(n&&n!==l)return"unknown";else n=l}return n}function aEe(e,t,r){let s=r.get(e.node),i;if(!s)r.set(e.node,s=new Map);else if(i=s.get(t.node)){if(i===$T)return"unknown";return i}s.set(t.node,$T);let n=nEe(e,t,r);return s.set(t.node,n),n}function oEe(e,t){return zT.call(this,e,t)||this}function zT(e,t){var r;if((r=t)!=null&&r.includes(this))return;if(t=t||[],t.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){let s=this.scope.getBinding(this.node.name);if(!s)return;if(!s.constant)return;if(s.kind==="module")return;if(s.path!==this){let i=s.path.resolve(e,t);if(this.find((n)=>n.node===i.node))return;return i}}else if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);else if(e&&this.isMemberExpression()){let s=this.toComputedKey();if(!V0e(s))return;let i=s.value,n=this.get("object").resolve(e,t);if(n.isObjectExpression()){let a=n.get("properties");for(let o of a){if(!o.isProperty())continue;let l=o.get("key"),u=o.isnt("computed")&&l.isIdentifier({name:i});if(u=u||l.isLiteral({value:i}),u)return o.get("value").resolve(e,t)}}else if(n.isArrayExpression()&&!isNaN(+i)){let o=n.get("elements")[i];if(o)return o.resolve(e,t)}}}function lEe(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);if(!e)return!1;return e.constant}if(this.isLiteral()){if(this.isRegExpLiteral())return!1;if(this.isTemplateLiteral())return this.get("expressions").every((e)=>e.isConstantExpression());return!0}if(this.isUnaryExpression()){if(this.node.operator!=="void")return!1;return this.get("argument").isConstantExpression()}if(this.isBinaryExpression()){let{operator:e}=this.node;return e!=="in"&&e!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}if(this.isMemberExpression())return!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0});if(this.isCallExpression())return this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral();return!1}function uEe(){return!!(this.isProgram()?this:this.parentPath).find((r)=>{if(r.isProgram({sourceType:"module"}))return!0;if(r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let s;if(r.isFunction())s=r.node.body;else if(r.isProgram())s=r.node;else return!1;for(let i of s.directives)if(i.value.value==="use strict")return!0;return!1})}});var nx=A(function(ix){Object.defineProperty(ix,"__esModule",{value:!0});ix._getKey=rx;ix._getPattern=sx;ix.get=YEe;ix.getAllNextSiblings=KEe;ix.getAllPrevSiblings=VEe;ix.getAssignmentIdentifiers=JEe;ix.getBindingIdentifierPaths=$Ee;ix.getBindingIdentifiers=WEe;ix.getCompletionRecords=jEe;ix.getNextSibling=UEe;ix.getOpposite=MEe;ix.getOuterBindingIdentifierPaths=HEe;ix.getOuterBindingIdentifiers=XEe;ix.getPrevSibling=qEe;ix.getSibling=REe;var sl=Yt(),wEe=ae(),{getAssignmentIdentifiers:NEe,getBindingIdentifiers:tx,getOuterBindingIdentifiers:OEe,numericLiteral:_Ee,unaryExpression:kEe}=wEe,il=0,js=1;function DEe(e){return{type:il,path:e}}function LEe(e){return{type:js,path:e}}function MEe(){if(this.key==="left")return this.getSibling("right");else if(this.key==="right")return this.getSibling("left");return null}function Xr(e,t,r){if(e)t.push(...$r(e,r));return t}function BEe(e,t,r){let s=[];for(let i=0;i<e.length;i++){let n=e[i],a=$r(n,r),o=[],l=[];for(let u of a){if(u.type===il)o.push(u);if(u.type===js)l.push(u)}if(o.length)s=o;t.push(...l)}return t.push(...s),t}function FEe(e){e.forEach((t)=>{t.type=js})}function rl(e,t){e.forEach((r)=>{if(r.path.isBreakStatement({label:null}))if(t)r.path.replaceWith(kEe("void",_Ee(0)));else r.path.remove()})}function ex(e,t){let r=[];if(t.canHaveBreak){let s=[];for(let i=0;i<e.length;i++){let n=e[i],a=Object.assign({},t,{inCaseClause:!1});if(n.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak))a.shouldPopulateBreak=!0;else a.shouldPopulateBreak=!1;let o=$r(n,a);if(o.length>0&&o.every((l)=>l.type===js)){if(s.length>0&&o.every((l)=>l.path.isBreakStatement({label:null}))){if(FEe(s),r.push(...s),s.some((l)=>l.path.isDeclaration())){if(r.push(...o),!t.shouldPreserveBreak)rl(o,!0)}if(!t.shouldPreserveBreak)rl(o,!1)}else if(r.push(...o),!t.shouldPopulateBreak&&!t.shouldPreserveBreak)rl(o,!0);break}if(i===e.length-1)r.push(...o);else{s=[];for(let l=0;l<o.length;l++){let u=o[l];if(u.type===js)r.push(u);if(u.type===il)s.push(u)}}}}else if(e.length)for(let s=e.length-1;s>=0;s--){let i=$r(e[s],t);if(i.length>1||i.length===1&&!i[0].path.isVariableDeclaration()&&!i[0].path.isEmptyStatement()){r.push(...i);break}}return r}function $r(e,t){let r=[];if(e.isIfStatement())r=Xr(e.get("consequent"),r,t),r=Xr(e.get("alternate"),r,t);else if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return Xr(e.get("body"),r,t);else if(e.isProgram()||e.isBlockStatement())return ex(e.get("body"),t);else if(e.isFunction())return $r(e.get("body"),t);else if(e.isTryStatement())r=Xr(e.get("block"),r,t),r=Xr(e.get("handler"),r,t);else if(e.isCatchClause())return Xr(e.get("body"),r,t);else if(e.isSwitchStatement())return BEe(e.get("cases"),r,t);else if(e.isSwitchCase())return ex(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});else if(e.isBreakStatement())r.push(LEe(e));else r.push(DEe(e));return r}function jEe(e=!1){return $r(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map((r)=>r.path)}function REe(e){return sl.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)}function qEe(){return this.getSibling(this.key-1)}function UEe(){return this.getSibling(this.key+1)}function KEe(){let e=this.key,t=this.getSibling(++e),r=[];while(t.node)r.push(t),t=this.getSibling(++e);return r}function VEe(){let e=this.key,t=this.getSibling(--e),r=[];while(t.node)r.push(t),t=this.getSibling(--e);return r}function YEe(e,t=!0){if(t===!0)t=this.context;let r=e.split(".");if(r.length===1)return rx.call(this,e,t);else return sx.call(this,r,t)}function rx(e,t){let r=this.node,s=r[e];if(Array.isArray(s))return s.map((i,n)=>sl.default.get({listKey:e,parentPath:this,parent:r,container:s,key:n}).setContext(t));else return sl.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}function sx(e,t){let r=this;for(let s of e)if(s===".")r=r.parentPath;else if(Array.isArray(r))r=r[s];else r=r.get(s,t);return r}function JEe(){return NEe(this.node)}function WEe(e){return tx(this.node,e)}function XEe(e){return OEe(this.node,e)}function $Ee(e=!1,t=!1){let s=[this],i=Object.create(null);while(s.length){let n=s.shift();if(!n)continue;if(!n.node)continue;let a=tx.keys[n.node.type];if(n.isIdentifier()){if(e)(i[n.node.name]=i[n.node.name]||[]).push(n);else i[n.node.name]=n;continue}if(n.isExportDeclaration()){let o=n.get("declaration");if(o.isDeclaration())s.push(o);continue}if(t){if(n.isFunctionDeclaration()){s.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let o=0;o<a.length;o++){let l=a[o],u=n.get(l);if(Array.isArray(u))s.push(...u);else if(u.node)s.push(u)}}return i}function HEe(e=!1){return this.getBindingIdentifierPaths(e,!0)}});var lx=A(function(ox){Object.defineProperty(ox,"__esModule",{value:!0});ox.addComment=mPe;ox.addComments=yPe;ox.shareCommentsWithSiblings=dPe;var pPe=ae(),{addComment:fPe,addComments:hPe}=pPe;function dPe(){if(typeof this.key==="string")return;let e=this.node;if(!e)return;let{trailingComments:t,leadingComments:r}=e;if(!t&&!r)return;let s=this.getSibling(this.key-1),i=this.getSibling(this.key+1),n=Boolean(s.node),a=Boolean(i.node);if(n){if(r)s.addComments("trailing",ax(r,s.node.trailingComments));if(t&&!a)s.addComments("trailing",t)}if(a){if(t)i.addComments("leading",ax(t,i.node.leadingComments));if(r&&!n)i.addComments("leading",r)}}function ax(e,t){if(!(t!=null&&t.length))return e;let r=new Set(t);return e.filter((s)=>!r.has(s))}function mPe(e,t,r){fPe(this.node,e,t,r)}function yPe(e,t){hPe(this.node,e,t)}});var Yt=A(function(hx){Object.defineProperty(hx,"__esModule",{value:!0});hx.default=hx.SHOULD_STOP=hx.SHOULD_SKIP=hx.REMOVED=void 0;var gPe=Nn(),bPe=Cu(),EPe=Kr(),PPe=qa(),px=ae(),Gi=px,APe=Tr(),vPe=Wm(),Ot=$m(),Hr=Ty(),zr=Lo(),ux=hT(),vr=JT(),Be=ZT(),fx=pt(),Me=fx,Gr=Yi(),_t=Ji(),Qe=nx(),nl=lx(),CPe=Ma(),{validate:IPe}=px,cx=bPe("babel"),$2e=hx.REMOVED=1,H2e=hx.SHOULD_STOP=2,z2e=hx.SHOULD_SKIP=4,Jt=hx.default=class e{constructor(t,r){this.contexts=[],this.state=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=r,this.hub=t,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(t){if(t)this._traverseFlags|=1;else this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(t){if(t)this._traverseFlags|=2;else this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(t){if(t)this._traverseFlags|=4;else this._traverseFlags&=-5}static get({hub:t,parentPath:r,parent:s,container:i,listKey:n,key:a}){if(!t&&r)t=r.hub;if(!s)throw Error("To get a node path the parent needs to exist");let o=i[a],l=APe.getOrCreateCachedPaths(s,r),u=l.get(o);if(!u){if(u=new e(t,s),o)l.set(o,u)}return fx.setup.call(u,r,i,n,a),u}getScope(t){return this.isScope()?new PPe.default(this):t}setData(t,r){if(this.data==null)this.data=Object.create(null);return this.data[t]=r}getData(t,r){if(this.data==null)this.data=Object.create(null);let s=this.data[t];if(s===void 0&&r!==void 0)s=this.data[t]=r;return s}hasNode(){return this.node!=null}buildCodeFrameError(t,r=SyntaxError){return this.hub.buildError(this.node,t,r)}traverse(t,r){(0,EPe.default)(this.node,t,this.scope,r,this)}set(t,r){IPe(this.node,t,r),this.node[t]=r}getPathLocation(){let t=[],r=this;do{let s=r.key;if(r.inList)s=`${r.listKey}[${s}]`;t.unshift(s)}while(r=r.parentPath);return t.join(".")}debug(t){if(!cx.enabled)return;cx(`${this.getPathLocation()} ${this.type}: ${t}`)}toString(){return(0,vPe.default)(this.node).code}get inList(){return!!this.listKey}set inList(t){if(!t)this.listKey=null}get parentKey(){return this.listKey||this.key}},wPe={findParent:Ot.findParent,find:Ot.find,getFunctionParent:Ot.getFunctionParent,getStatementParent:Ot.getStatementParent,getEarliestCommonAncestorFrom:Ot.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:Ot.getDeepestCommonAncestorFrom,getAncestry:Ot.getAncestry,isAncestor:Ot.isAncestor,isDescendant:Ot.isDescendant,inType:Ot.inType,getTypeAnnotation:Hr.getTypeAnnotation,isBaseType:Hr.isBaseType,couldBeBaseType:Hr.couldBeBaseType,baseTypeStrictlyMatches:Hr.baseTypeStrictlyMatches,isGenericType:Hr.isGenericType,replaceWithMultiple:zr.replaceWithMultiple,replaceWithSourceString:zr.replaceWithSourceString,replaceWith:zr.replaceWith,replaceExpressionWithStatements:zr.replaceExpressionWithStatements,replaceInline:zr.replaceInline,evaluateTruthy:ux.evaluateTruthy,evaluate:ux.evaluate,toComputedKey:vr.toComputedKey,ensureBlock:vr.ensureBlock,unwrapFunctionEnvironment:vr.unwrapFunctionEnvironment,arrowFunctionToExpression:vr.arrowFunctionToExpression,splitExportDeclaration:vr.splitExportDeclaration,ensureFunctionName:vr.ensureFunctionName,matchesPattern:Be.matchesPattern,isStatic:Be.isStatic,isNodeType:Be.isNodeType,canHaveVariableDeclarationOrExpression:Be.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:Be.canSwapBetweenExpressionAndStatement,isCompletionRecord:Be.isCompletionRecord,isStatementOrBlock:Be.isStatementOrBlock,referencesImport:Be.referencesImport,getSource:Be.getSource,willIMaybeExecuteBefore:Be.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:Be._guessExecutionStatusRelativeTo,resolve:Be.resolve,isConstantExpression:Be.isConstantExpression,isInStrictMode:Be.isInStrictMode,isDenylisted:Me.isDenylisted,visit:Me.visit,skip:Me.skip,skipKey:Me.skipKey,stop:Me.stop,setContext:Me.setContext,requeue:Me.requeue,requeueComputedKeyAndDecorators:Me.requeueComputedKeyAndDecorators,remove:Gr.remove,insertBefore:_t.insertBefore,insertAfter:_t.insertAfter,unshiftContainer:_t.unshiftContainer,pushContainer:_t.pushContainer,getOpposite:Qe.getOpposite,getCompletionRecords:Qe.getCompletionRecords,getSibling:Qe.getSibling,getPrevSibling:Qe.getPrevSibling,getNextSibling:Qe.getNextSibling,getAllNextSiblings:Qe.getAllNextSiblings,getAllPrevSiblings:Qe.getAllPrevSiblings,get:Qe.get,getAssignmentIdentifiers:Qe.getAssignmentIdentifiers,getBindingIdentifiers:Qe.getBindingIdentifiers,getOuterBindingIdentifiers:Qe.getOuterBindingIdentifiers,getBindingIdentifierPaths:Qe.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:Qe.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:nl.shareCommentsWithSiblings,addComment:nl.addComment,addComments:nl.addComments};Object.assign(Jt.prototype,wPe);Jt.prototype.arrowFunctionToShadowed=vr[String("arrowFunctionToShadowed")];Object.assign(Jt.prototype,{has:Be[String("has")],is:Be[String("is")],isnt:Be[String("isnt")],equals:Be[String("equals")],hoist:_t[String("hoist")],updateSiblingKeys:_t.updateSiblingKeys,call:Me.call,isBlacklisted:Me[String("isBlacklisted")],setScope:Me.setScope,resync:Me.resync,popContext:Me.popContext,pushContext:Me.pushContext,setup:Me.setup,setKey:Me.setKey});Jt.prototype._guessExecutionStatusRelativeToDifferentFunctions=Be._guessExecutionStatusRelativeTo;Jt.prototype._guessExecutionStatusRelativeToDifferentFunctions=Be._guessExecutionStatusRelativeTo;Object.assign(Jt.prototype,{_getTypeAnnotation:Hr._getTypeAnnotation,_replaceWith:zr._replaceWith,_resolve:Be._resolve,_call:Me._call,_resyncParent:Me._resyncParent,_resyncKey:Me._resyncKey,_resyncList:Me._resyncList,_resyncRemoved:Me._resyncRemoved,_getQueueContexts:Me._getQueueContexts,_removeFromScope:Gr._removeFromScope,_callRemovalHooks:Gr._callRemovalHooks,_remove:Gr._remove,_markRemoved:Gr._markRemoved,_assertUnremoved:Gr._assertUnremoved,_containerInsert:_t._containerInsert,_containerInsertBefore:_t._containerInsertBefore,_containerInsertAfter:_t._containerInsertAfter,_verifyNodeList:_t._verifyNodeList,_getKey:Qe._getKey,_getPattern:Qe._getPattern});for(let e of Gi.TYPES){let t=`is${e}`,r=Gi[t];Jt.prototype[t]=function(s){return r(this.node,s)},Jt.prototype[`assert${e}`]=function(s){if(!r(this.node,s))throw TypeError(`Expected node path of type ${e}`)}}Object.assign(Jt.prototype,CPe);for(let e of Object.keys(gPe)){if(e.startsWith("_"))continue;if(!Gi.TYPES.includes(e))Gi.TYPES.push(e)}});var al=A(function(yx){Object.defineProperty(yx,"__esModule",{value:!0});yx.default=void 0;class mx{getCode(){}getScope(){}addHelper(){throw Error("Helpers are not supported by the default hub.")}buildError(e,t,r=TypeError){return new r(t)}}yx.default=mx});var bx=A(function(Sx){Object.defineProperty(Sx,"__esModule",{value:!0});Sx.default=void 0;var kPe=Yt(),DPe=ae(),ol=pt(),LPe=al(),{VISITOR_KEYS:MPe}=DPe;class xx{constructor(e,t,r,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=e,this.state=r,this.opts=t}shouldVisit(e){let t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;let r=MPe[e.type];if(!(r!=null&&r.length))return!1;for(let s of r)if(e[s])return!0;return!1}create(e,t,r,s){let{parentPath:i}=this,n=i==null?e.type==="Program"||e.type==="File"?new LPe.default:void 0:i.hub;return kPe.default.get({parentPath:i,parent:e,container:t,key:r,listKey:s,hub:n})}maybeQueue(e,t){if(this.queue)if(t)this.queue.push(e);else this.priorityQueue.push(e)}visitMultiple(e,t,r){if(e.length===0)return!1;let s=[];for(let i=0;i<e.length;i++){let n=e[i];if(n&&this.shouldVisit(n))s.push(this.create(t,e,i,r))}return this.visitQueue(s)}visitSingle(e,t){if(this.shouldVisit(e[t]))return this.visitQueue([this.create(e,e,t)]);else return!1}visitQueue(e){this.queue=e,this.priorityQueue=[];let t=new WeakSet,r=!1,s=0;for(;s<e.length;){let i=e[s];if(s++,ol.resync.call(i),i.contexts.length===0||i.contexts[i.contexts.length-1]!==this)ol.pushContext.call(i,this);if(i.key===null)continue;let{node:n}=i;if(t.has(n))continue;if(n)t.add(n);if(i.visit()){r=!0;break}if(this.priorityQueue.length){if(r=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,r)break}}for(let i=0;i<s;i++)ol.popContext.call(e[i]);return this.queue=null,r}visit(e,t){let r=e[t];if(!r)return!1;if(Array.isArray(r))return this.visitMultiple(r,e,t);else return this.visitSingle(e,t)}}Sx.default=xx});var bi=A(function(Ex){Object.defineProperty(Ex,"__esModule",{value:!0});Ex.traverseNode=RPe;var BPe=bx(),eMe=Yt(),FPe=ae(),tMe=pt(),{VISITOR_KEYS:jPe}=FPe;function RPe(e,t,r,s,i,n,a){let o=jPe[e.type];if(!o)return!1;let l=new BPe.default(r,t,s,i);if(a){if(n!=null&&n[i.parentKey])return!1;return l.visitQueue([i])}for(let u of o){if(n!=null&&n[u])continue;if(l.visit(e,u))return!0}return!1}});var pt=A(function(Ox){Object.defineProperty(Ox,"__esModule",{value:!0});Ox._call=ul;Ox._forceSetScope=$Pe;Ox._getQueueContexts=sAe;Ox._resyncKey=wx;Ox._resyncList=Nx;Ox._resyncParent=Ix;Ox._resyncRemoved=GPe;Ox.call=ll;Ox.isDenylisted=vx;Ox.popContext=QPe;Ox.pushContext=ZPe;Ox.requeue=tAe;Ox.requeueComputedKeyAndDecorators=rAe;Ox.resync=zPe;Ox.setContext=HPe;Ox.setKey=Qi;Ox.setScope=Cx;Ox.setup=eAe;Ox.skip=JPe;Ox.skipKey=WPe;Ox.stop=XPe;Ox.visit=YPe;var UPe=bi(),Px=Yt(),KPe=Yi(),VPe=ae();function ll(e){let t=this.opts;if(this.debug(e),this.node){if(ul.call(this,t[e]))return!0}if(this.node){var r;return ul.call(this,(r=t[this.node.type])==null?void 0:r[e])}return!1}function ul(e){if(!e)return!1;for(let t of e){if(!t)continue;let r=this.node;if(!r)return!0;let s=t.call(this.state,this,this.state);if(s&&typeof s==="object"&&typeof s.then==="function")throw Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(s)throw Error(`Unexpected return value from visitor method ${t}`);if(this.node!==r)return!0;if(this._traverseFlags>0)return!0}return!1}function vx(){var e;let t=(e=this.opts.denylist)!=null?e:this.opts.blacklist;return t==null?void 0:t.includes(this.node.type)}Ox.isBlacklisted=vx;function Ax(e,t){if(e.context!==t)e.context=t,e.state=t.state,e.opts=t.opts}function YPe(){var e,t;if(!this.node)return!1;if(this.isDenylisted())return!1;if((e=(t=this.opts).shouldSkip)!=null&&e.call(t,this))return!1;let r=this.context;if(this.shouldSkip||ll.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return Ax(this,r),this.debug("Recursing into..."),this.shouldStop=(0,UPe.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),Ax(this,r),ll.call(this,"exit"),this.shouldStop}function JPe(){this.shouldSkip=!0}function WPe(e){if(this.skipKeys==null)this.skipKeys={};this.skipKeys[e]=!0}function XPe(){this._traverseFlags|=Px.SHOULD_SKIP|Px.SHOULD_STOP}function $Pe(){var e;let t=this.parentPath;if((this.key==="key"||this.listKey==="decorators")&&t.isMethod()||this.key==="discriminant"&&t.isSwitchStatement())t=t.parentPath;let r;while(t&&!r)r=t.scope,t=t.parentPath;this.scope=this.getScope(r),(e=this.scope)==null||e.init()}function Cx(){var e,t;if((e=this.opts)!=null&&e.noScope)return;let r=this.parentPath;if((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement())r=r.parentPath;let s;while(r&&!s){var i;if((i=r.opts)!=null&&i.noScope)return;s=r.scope,r=r.parentPath}this.scope=this.getScope(s),(t=this.scope)==null||t.init()}function HPe(e){if(this.skipKeys!=null)this.skipKeys={};if(this._traverseFlags=0,e)this.context=e,this.state=e.state,this.opts=e.opts;return Cx.call(this),this}function zPe(){if(this.removed)return;Ix.call(this),Nx.call(this),wx.call(this)}function Ix(){if(this.parentPath)this.parent=this.parentPath.node}function wx(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node){Qi.call(this,e);return}}else for(let e of Object.keys(this.container))if(this.container[e]===this.node){Qi.call(this,e);return}this.key=null}function Nx(){if(!this.parent||!this.inList)return;let e=this.parent[this.listKey];if(this.container===e)return;this.container=e||null}function GPe(){if(this.key==null||!this.container||this.container[this.key]!==this.node)KPe._markRemoved.call(this)}function QPe(){if(this.contexts.pop(),this.contexts.length>0)this.setContext(this.contexts[this.contexts.length-1]);else this.setContext(void 0)}function ZPe(e){this.contexts.push(e),this.setContext(e)}function eAe(e,t,r,s){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,Qi.call(this,s)}function Qi(e){var t;this.key=e,this.node=this.container[this.key],this.type=(t=this.node)==null?void 0:t.type}function tAe(e=this){if(e.removed)return;let t=this.contexts;for(let r of t)r.maybeQueue(e)}function rAe(){let{context:e,node:t}=this;if(!VPe.isPrivate(t)&&t.computed)e.maybeQueue(this.get("key"));if(t.decorators)for(let r of this.get("decorators"))e.maybeQueue(r)}function sAe(){let e=this,t=this.contexts;while(!t.length){if(e=e.parentPath,!e)break;t=e.contexts}return t}});var Kr=A(function(Us){Object.defineProperty(Us,"__esModule",{value:!0});Object.defineProperty(Us,"Hub",{enumerable:!0,get:function(){return _Ae.default}});Object.defineProperty(Us,"NodePath",{enumerable:!0,get:function(){return NAe.default}});Object.defineProperty(Us,"Scope",{enumerable:!0,get:function(){return OAe.default}});Us.visitors=Us.default=void 0;pt();var qs=As();Us.visitors=qs;var IAe=ae(),wAe=Tr(),_x=bi(),NAe=Yt(),OAe=qa(),_Ae=al(),{VISITOR_KEYS:kAe,removeProperties:DAe,traverseFast:Rs}=IAe;function Et(e,t={},r,s,i,n){if(!e)return;if(!t.noScope&&!r){if(e.type!=="Program"&&e.type!=="File")throw Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`)}if(!i&&n)throw Error("visitSelf can only be used when providing a NodePath.");if(!kAe[e.type])return;qs.explode(t),(0,_x.traverseNode)(e,t,r,s,i,void 0,n)}var iMe=Us.default=Et;Et.visitors=qs;Et.verify=qs.verify;Et.explode=qs.explode;Et.cheap=function(e,t){Rs(e,t);return};Et.node=function(e,t,r,s,i,n){(0,_x.traverseNode)(e,t,r,s,i,n)};Et.clearNode=function(e,t){DAe(e,t)};Et.removeProperties=function(e,t){return Rs(e,Et.clearNode,t),e};Et.hasType=function(e,t,r){if(r!=null&&r.includes(e.type))return!1;if(e.type===t)return!0;return Rs(e,function(s){if(r!=null&&r.includes(s.type))return Rs.skip;if(s.type===t)return Rs.stop})};Et.cache=wAe});var Dx=Al(Gs(),1),cl=Al(Kr(),1);import{existsSync as MAe,readFileSync as BAe}from"fs";import{join as FAe}from"path";var jAe=cl.default.default??cl.default,RAe=["tailwind.config.ts","tailwind.config.js","tailwind.config.mjs","tailwind.config.cjs"],qAe=[{key:"colors",id:"auto-tailwind-colors",title:"Tailwind Colors (Auto)",tag:"colors"},{key:"fontFamily",id:"auto-tailwind-font-family",title:"Tailwind Font Family (Auto)",tag:"typography"},{key:"fontSize",id:"auto-tailwind-font-size",title:"Tailwind Font Size (Auto)",tag:"typography"},{key:"spacing",id:"auto-tailwind-spacing",title:"Tailwind Spacing (Auto)",tag:"spacing"}];function UAe(e){for(let t of RAe){let r=FAe(e,t);if(MAe(r))return r}return null}function Zi(e){if(!e?.key)return;if("name"in e.key&&typeof e.key.name==="string")return e.key.name;if("value"in e.key&&(typeof e.key.value==="string"||typeof e.key.value==="number"))return String(e.key.value);return}function en(e,t,r){if(!e||typeof e!=="object")return;let s=e;switch(s.type){case"StringLiteral":return typeof s.value==="string"?s.value:void 0;case"NumericLiteral":return typeof s.value==="number"?s.value:void 0;case"BooleanLiteral":return typeof s.value==="boolean"?s.value:void 0;case"NullLiteral":return null;case"TemplateLiteral":{let i=e;if((i.expressions?.length??0)>0){t.push({source:r,code:"unsupported-expression",message:`skipped TemplateLiteral with interpolation at line ${s.loc?.start?.line??"?"}`});return}return i.quasis?.[0]?.value?.cooked??""}case"ArrayExpression":{let i=[];for(let n of s.elements??[]){if(n===null||n===void 0)continue;let a=en(n,t,r);if(a!==void 0)i.push(a)}return i}case"ObjectExpression":{let i={};for(let n of s.properties??[]){let a=n;if(a.type!=="ObjectProperty"&&a.type!=="Property"){t.push({source:r,code:"unsupported-expression",message:`skipped ${a.type??"unknown"} inside ObjectExpression`});continue}let o=Zi(a);if(o===void 0)continue;let l=en(a.value,t,r);if(l!==void 0)i[o]=l}return i}default:t.push({source:r,code:"unsupported-expression",message:`skipped ${s.type??"unknown"} at line ${s.loc?.start?.line??"?"}`});return}}function KAe(e){let t=null;function r(s){if(!s?.properties)return null;for(let i of s.properties){let n=i;if(n.type!=="ObjectProperty"&&n.type!=="Property")continue;if(Zi(n)==="theme"){if(n.value?.type==="ObjectExpression")return n.value}}return null}return jAe(e,{ExportDefaultDeclaration(s){let i=s.node.declaration;if(i?.type==="ObjectExpression"){let n=r(i);if(n)t=n}},AssignmentExpression(s){let i=s.node.left,n=s.node.right;if(i?.type==="MemberExpression"&&i.object?.name==="module"&&i.property?.name==="exports"&&n?.type==="ObjectExpression"){let a=r(n);if(a)t=a}}}),t}function VAe(e,t){let r=[`## ${e}`,""];if(t===null||typeof t!=="object"||Array.isArray(t))return r.push("```json",JSON.stringify(t,null,2),"```"),r.join(`
53
+ return ${vr(s)};
54
+ })(${KT(this.node)})
55
+ `;return this.replaceWith(u)[0].get("arguments.0")}function O0e(e){let t=e.params.findIndex((r)=>o0e(r)||l0e(r));return t===-1?e.params.length:t}});var ex=A(function(QT){Object.defineProperty(QT,"__esModule",{value:!0});QT._guessExecutionStatusRelativeTo=iEe;QT._resolve=GT;QT.canHaveVariableDeclarationOrExpression=z0e;QT.canSwapBetweenExpressionAndStatement=G0e;QT.getSource=tEe;QT.isCompletionRecord=Q0e;QT.isConstantExpression=lEe;QT.isInStrictMode=uEe;QT.isNodeType=H0e;QT.isStatementOrBlock=Z0e;QT.isStatic=$0e;QT.matchesPattern=X0e;QT.referencesImport=eEe;QT.resolve=oEe;QT.willIMaybeExecuteBefore=rEe;var j0e=ae(),{STATEMENT_OR_BLOCK_KEYS:R0e,VISITOR_KEYS:q0e,isBlockStatement:zT,isExpression:U0e,isIdentifier:K0e,isLiteral:V0e,isStringLiteral:Y0e,isType:J0e,matchesPattern:W0e}=j0e;function X0e(e,t){return W0e(this.node,e,t)}QT.has=function(t){var r;let s=(r=this.node)==null?void 0:r[t];if(s&&Array.isArray(s))return!!s.length;else return!!s};function $0e(){return this.scope.isStatic(this.node)}QT.is=QT.has;QT.isnt=function(t){return!this.has(t)};QT.equals=function(t,r){return this.node[t]===r};function H0e(e){return J0e(this.type,e)}function z0e(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function G0e(e){if(this.key!=="body"||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return zT(e);else if(this.isBlockStatement())return U0e(e);return!1}function Q0e(e){let t=this,r=!0;do{let{type:s,container:i}=t;if(!r&&(t.isFunction()||s==="StaticBlock"))return!!e;if(r=!1,Array.isArray(i)&&t.key!==i.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0}function Z0e(){if(this.parentPath.isLabeledStatement()||zT(this.container))return!1;else return R0e.includes(this.key)}function eEe(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?Y0e(this.node.property,{value:t}):this.node.property.name===t)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(e,"*")}return!1}let r=this.scope.getBinding(this.node.name);if((r==null?void 0:r.kind)!=="module")return!1;let s=r.path,i=s.parentPath;if(!i.isImportDeclaration())return!1;if(i.node.source.value===e){if(!t)return!0}else return!1;if(s.isImportDefaultSpecifier()&&t==="default")return!0;if(s.isImportNamespaceSpecifier()&&t==="*")return!0;if(s.isImportSpecifier()&&K0e(s.node.imported,{name:t}))return!0;return!1}function tEe(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function rEe(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function XT(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function sEe(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return!1}}function $T(e,t){for(let r=0;r<t;r++){let s=e[r];if(sEe(s.parent.type,s.parentKey))return!0}return!1}var HT=Symbol();function iEe(e){return tl(this,e,new Map)}function tl(e,t,r){let s={this:XT(e),target:XT(t)};if(s.target.node!==s.this.node)return aEe(e,s.target,r);let i={target:t.getAncestry(),this:e.getAncestry()};if(i.target.includes(e))return"after";if(i.this.includes(t))return"before";let n,a={target:0,this:0};while(!n&&a.this<i.this.length){let p=i.this[a.this];if(a.target=i.target.indexOf(p),a.target>=0)n=p;else a.this++}if(!n)throw Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if($T(i.this,a.this-1)||$T(i.target,a.target-1))return"unknown";let o={this:i.this[a.this-1],target:i.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";let l=q0e[n.type],u={this:l.indexOf(o.this.parentKey),target:l.indexOf(o.target.parentKey)};return u.target>u.this?"before":"after"}function nEe(e,t,r){if(!t.isFunctionDeclaration()){if(tl(e,t,r)==="before")return"before";return"unknown"}else if(t.parentPath.isExportDeclaration())return"unknown";let s=t.scope.getBinding(t.node.id.name);if(!s.references)return"before";let i=s.referencePaths,n;for(let a of i){if(!!a.find((u)=>u.node===t.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let l=tl(e,a,r);if(n&&n!==l)return"unknown";else n=l}return n}function aEe(e,t,r){let s=r.get(e.node),i;if(!s)r.set(e.node,s=new Map);else if(i=s.get(t.node)){if(i===HT)return"unknown";return i}s.set(t.node,HT);let n=nEe(e,t,r);return s.set(t.node,n),n}function oEe(e,t){return GT.call(this,e,t)||this}function GT(e,t){var r;if((r=t)!=null&&r.includes(this))return;if(t=t||[],t.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){let s=this.scope.getBinding(this.node.name);if(!s)return;if(!s.constant)return;if(s.kind==="module")return;if(s.path!==this){let i=s.path.resolve(e,t);if(this.find((n)=>n.node===i.node))return;return i}}else if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);else if(e&&this.isMemberExpression()){let s=this.toComputedKey();if(!V0e(s))return;let i=s.value,n=this.get("object").resolve(e,t);if(n.isObjectExpression()){let a=n.get("properties");for(let o of a){if(!o.isProperty())continue;let l=o.get("key"),u=o.isnt("computed")&&l.isIdentifier({name:i});if(u=u||l.isLiteral({value:i}),u)return o.get("value").resolve(e,t)}}else if(n.isArrayExpression()&&!isNaN(+i)){let o=n.get("elements")[i];if(o)return o.resolve(e,t)}}}function lEe(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);if(!e)return!1;return e.constant}if(this.isLiteral()){if(this.isRegExpLiteral())return!1;if(this.isTemplateLiteral())return this.get("expressions").every((e)=>e.isConstantExpression());return!0}if(this.isUnaryExpression()){if(this.node.operator!=="void")return!1;return this.get("argument").isConstantExpression()}if(this.isBinaryExpression()){let{operator:e}=this.node;return e!=="in"&&e!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}if(this.isMemberExpression())return!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0});if(this.isCallExpression())return this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral();return!1}function uEe(){return!!(this.isProgram()?this:this.parentPath).find((r)=>{if(r.isProgram({sourceType:"module"}))return!0;if(r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let s;if(r.isFunction())s=r.node.body;else if(r.isProgram())s=r.node;else return!1;for(let i of s.directives)if(i.value.value==="use strict")return!0;return!1})}});var ax=A(function(nx){Object.defineProperty(nx,"__esModule",{value:!0});nx._getKey=sx;nx._getPattern=ix;nx.get=YEe;nx.getAllNextSiblings=KEe;nx.getAllPrevSiblings=VEe;nx.getAssignmentIdentifiers=JEe;nx.getBindingIdentifierPaths=$Ee;nx.getBindingIdentifiers=WEe;nx.getCompletionRecords=jEe;nx.getNextSibling=UEe;nx.getOpposite=MEe;nx.getOuterBindingIdentifierPaths=HEe;nx.getOuterBindingIdentifiers=XEe;nx.getPrevSibling=qEe;nx.getSibling=REe;var sl=Yt(),wEe=ae(),{getAssignmentIdentifiers:NEe,getBindingIdentifiers:rx,getOuterBindingIdentifiers:OEe,numericLiteral:_Ee,unaryExpression:kEe}=wEe,il=0,Rs=1;function DEe(e){return{type:il,path:e}}function LEe(e){return{type:Rs,path:e}}function MEe(){if(this.key==="left")return this.getSibling("right");else if(this.key==="right")return this.getSibling("left");return null}function $r(e,t,r){if(e)t.push(...Hr(e,r));return t}function BEe(e,t,r){let s=[];for(let i=0;i<e.length;i++){let n=e[i],a=Hr(n,r),o=[],l=[];for(let u of a){if(u.type===il)o.push(u);if(u.type===Rs)l.push(u)}if(o.length)s=o;t.push(...l)}return t.push(...s),t}function FEe(e){e.forEach((t)=>{t.type=Rs})}function rl(e,t){e.forEach((r)=>{if(r.path.isBreakStatement({label:null}))if(t)r.path.replaceWith(kEe("void",_Ee(0)));else r.path.remove()})}function tx(e,t){let r=[];if(t.canHaveBreak){let s=[];for(let i=0;i<e.length;i++){let n=e[i],a=Object.assign({},t,{inCaseClause:!1});if(n.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak))a.shouldPopulateBreak=!0;else a.shouldPopulateBreak=!1;let o=Hr(n,a);if(o.length>0&&o.every((l)=>l.type===Rs)){if(s.length>0&&o.every((l)=>l.path.isBreakStatement({label:null}))){if(FEe(s),r.push(...s),s.some((l)=>l.path.isDeclaration())){if(r.push(...o),!t.shouldPreserveBreak)rl(o,!0)}if(!t.shouldPreserveBreak)rl(o,!1)}else if(r.push(...o),!t.shouldPopulateBreak&&!t.shouldPreserveBreak)rl(o,!0);break}if(i===e.length-1)r.push(...o);else{s=[];for(let l=0;l<o.length;l++){let u=o[l];if(u.type===Rs)r.push(u);if(u.type===il)s.push(u)}}}}else if(e.length)for(let s=e.length-1;s>=0;s--){let i=Hr(e[s],t);if(i.length>1||i.length===1&&!i[0].path.isVariableDeclaration()&&!i[0].path.isEmptyStatement()){r.push(...i);break}}return r}function Hr(e,t){let r=[];if(e.isIfStatement())r=$r(e.get("consequent"),r,t),r=$r(e.get("alternate"),r,t);else if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return $r(e.get("body"),r,t);else if(e.isProgram()||e.isBlockStatement())return tx(e.get("body"),t);else if(e.isFunction())return Hr(e.get("body"),t);else if(e.isTryStatement())r=$r(e.get("block"),r,t),r=$r(e.get("handler"),r,t);else if(e.isCatchClause())return $r(e.get("body"),r,t);else if(e.isSwitchStatement())return BEe(e.get("cases"),r,t);else if(e.isSwitchCase())return tx(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});else if(e.isBreakStatement())r.push(LEe(e));else r.push(DEe(e));return r}function jEe(e=!1){return Hr(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map((r)=>r.path)}function REe(e){return sl.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)}function qEe(){return this.getSibling(this.key-1)}function UEe(){return this.getSibling(this.key+1)}function KEe(){let e=this.key,t=this.getSibling(++e),r=[];while(t.node)r.push(t),t=this.getSibling(++e);return r}function VEe(){let e=this.key,t=this.getSibling(--e),r=[];while(t.node)r.push(t),t=this.getSibling(--e);return r}function YEe(e,t=!0){if(t===!0)t=this.context;let r=e.split(".");if(r.length===1)return sx.call(this,e,t);else return ix.call(this,r,t)}function sx(e,t){let r=this.node,s=r[e];if(Array.isArray(s))return s.map((i,n)=>sl.default.get({listKey:e,parentPath:this,parent:r,container:s,key:n}).setContext(t));else return sl.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}function ix(e,t){let r=this;for(let s of e)if(s===".")r=r.parentPath;else if(Array.isArray(r))r=r[s];else r=r.get(s,t);return r}function JEe(){return NEe(this.node)}function WEe(e){return rx(this.node,e)}function XEe(e){return OEe(this.node,e)}function $Ee(e=!1,t=!1){let s=[this],i=Object.create(null);while(s.length){let n=s.shift();if(!n)continue;if(!n.node)continue;let a=rx.keys[n.node.type];if(n.isIdentifier()){if(e)(i[n.node.name]=i[n.node.name]||[]).push(n);else i[n.node.name]=n;continue}if(n.isExportDeclaration()){let o=n.get("declaration");if(o.isDeclaration())s.push(o);continue}if(t){if(n.isFunctionDeclaration()){s.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let o=0;o<a.length;o++){let l=a[o],u=n.get(l);if(Array.isArray(u))s.push(...u);else if(u.node)s.push(u)}}return i}function HEe(e=!1){return this.getBindingIdentifierPaths(e,!0)}});var ux=A(function(lx){Object.defineProperty(lx,"__esModule",{value:!0});lx.addComment=mPe;lx.addComments=yPe;lx.shareCommentsWithSiblings=dPe;var pPe=ae(),{addComment:fPe,addComments:hPe}=pPe;function dPe(){if(typeof this.key==="string")return;let e=this.node;if(!e)return;let{trailingComments:t,leadingComments:r}=e;if(!t&&!r)return;let s=this.getSibling(this.key-1),i=this.getSibling(this.key+1),n=Boolean(s.node),a=Boolean(i.node);if(n){if(r)s.addComments("trailing",ox(r,s.node.trailingComments));if(t&&!a)s.addComments("trailing",t)}if(a){if(t)i.addComments("leading",ox(t,i.node.leadingComments));if(r&&!n)i.addComments("leading",r)}}function ox(e,t){if(!(t!=null&&t.length))return e;let r=new Set(t);return e.filter((s)=>!r.has(s))}function mPe(e,t,r){fPe(this.node,e,t,r)}function yPe(e,t){hPe(this.node,e,t)}});var Yt=A(function(dx){Object.defineProperty(dx,"__esModule",{value:!0});dx.default=dx.SHOULD_STOP=dx.SHOULD_SKIP=dx.REMOVED=void 0;var gPe=Nn(),bPe=Iu(),EPe=Vr(),PPe=qa(),fx=ae(),Gi=fx,APe=xr(),vPe=Xm(),Ot=Hm(),zr=xy(),Gr=Lo(),cx=dT(),Cr=WT(),Be=ex(),hx=pt(),Me=hx,Qr=Yi(),_t=Ji(),Qe=ax(),nl=ux(),CPe=Ma(),{validate:IPe}=fx,px=bPe("babel"),$2e=dx.REMOVED=1,H2e=dx.SHOULD_STOP=2,z2e=dx.SHOULD_SKIP=4,Jt=dx.default=class e{constructor(t,r){this.contexts=[],this.state=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this._store=null,this.parent=r,this.hub=t,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(t){if(t)this._traverseFlags|=1;else this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(t){if(t)this._traverseFlags|=2;else this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(t){if(t)this._traverseFlags|=4;else this._traverseFlags&=-5}static get({hub:t,parentPath:r,parent:s,container:i,listKey:n,key:a}){if(!t&&r)t=r.hub;if(!s)throw Error("To get a node path the parent needs to exist");let o=i[a],l=APe.getOrCreateCachedPaths(s,r),u=l.get(o);if(!u){if(u=new e(t,s),o)l.set(o,u)}return hx.setup.call(u,r,i,n,a),u}getScope(t){return this.isScope()?new PPe.default(this):t}setData(t,r){if(this.data==null)this.data=Object.create(null);return this.data[t]=r}getData(t,r){if(this.data==null)this.data=Object.create(null);let s=this.data[t];if(s===void 0&&r!==void 0)s=this.data[t]=r;return s}hasNode(){return this.node!=null}buildCodeFrameError(t,r=SyntaxError){return this.hub.buildError(this.node,t,r)}traverse(t,r){(0,EPe.default)(this.node,t,this.scope,r,this)}set(t,r){IPe(this.node,t,r),this.node[t]=r}getPathLocation(){let t=[],r=this;do{let s=r.key;if(r.inList)s=`${r.listKey}[${s}]`;t.unshift(s)}while(r=r.parentPath);return t.join(".")}debug(t){if(!px.enabled)return;px(`${this.getPathLocation()} ${this.type}: ${t}`)}toString(){return(0,vPe.default)(this.node).code}get inList(){return!!this.listKey}set inList(t){if(!t)this.listKey=null}get parentKey(){return this.listKey||this.key}},wPe={findParent:Ot.findParent,find:Ot.find,getFunctionParent:Ot.getFunctionParent,getStatementParent:Ot.getStatementParent,getEarliestCommonAncestorFrom:Ot.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:Ot.getDeepestCommonAncestorFrom,getAncestry:Ot.getAncestry,isAncestor:Ot.isAncestor,isDescendant:Ot.isDescendant,inType:Ot.inType,getTypeAnnotation:zr.getTypeAnnotation,isBaseType:zr.isBaseType,couldBeBaseType:zr.couldBeBaseType,baseTypeStrictlyMatches:zr.baseTypeStrictlyMatches,isGenericType:zr.isGenericType,replaceWithMultiple:Gr.replaceWithMultiple,replaceWithSourceString:Gr.replaceWithSourceString,replaceWith:Gr.replaceWith,replaceExpressionWithStatements:Gr.replaceExpressionWithStatements,replaceInline:Gr.replaceInline,evaluateTruthy:cx.evaluateTruthy,evaluate:cx.evaluate,toComputedKey:Cr.toComputedKey,ensureBlock:Cr.ensureBlock,unwrapFunctionEnvironment:Cr.unwrapFunctionEnvironment,arrowFunctionToExpression:Cr.arrowFunctionToExpression,splitExportDeclaration:Cr.splitExportDeclaration,ensureFunctionName:Cr.ensureFunctionName,matchesPattern:Be.matchesPattern,isStatic:Be.isStatic,isNodeType:Be.isNodeType,canHaveVariableDeclarationOrExpression:Be.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:Be.canSwapBetweenExpressionAndStatement,isCompletionRecord:Be.isCompletionRecord,isStatementOrBlock:Be.isStatementOrBlock,referencesImport:Be.referencesImport,getSource:Be.getSource,willIMaybeExecuteBefore:Be.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:Be._guessExecutionStatusRelativeTo,resolve:Be.resolve,isConstantExpression:Be.isConstantExpression,isInStrictMode:Be.isInStrictMode,isDenylisted:Me.isDenylisted,visit:Me.visit,skip:Me.skip,skipKey:Me.skipKey,stop:Me.stop,setContext:Me.setContext,requeue:Me.requeue,requeueComputedKeyAndDecorators:Me.requeueComputedKeyAndDecorators,remove:Qr.remove,insertBefore:_t.insertBefore,insertAfter:_t.insertAfter,unshiftContainer:_t.unshiftContainer,pushContainer:_t.pushContainer,getOpposite:Qe.getOpposite,getCompletionRecords:Qe.getCompletionRecords,getSibling:Qe.getSibling,getPrevSibling:Qe.getPrevSibling,getNextSibling:Qe.getNextSibling,getAllNextSiblings:Qe.getAllNextSiblings,getAllPrevSiblings:Qe.getAllPrevSiblings,get:Qe.get,getAssignmentIdentifiers:Qe.getAssignmentIdentifiers,getBindingIdentifiers:Qe.getBindingIdentifiers,getOuterBindingIdentifiers:Qe.getOuterBindingIdentifiers,getBindingIdentifierPaths:Qe.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:Qe.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:nl.shareCommentsWithSiblings,addComment:nl.addComment,addComments:nl.addComments};Object.assign(Jt.prototype,wPe);Jt.prototype.arrowFunctionToShadowed=Cr[String("arrowFunctionToShadowed")];Object.assign(Jt.prototype,{has:Be[String("has")],is:Be[String("is")],isnt:Be[String("isnt")],equals:Be[String("equals")],hoist:_t[String("hoist")],updateSiblingKeys:_t.updateSiblingKeys,call:Me.call,isBlacklisted:Me[String("isBlacklisted")],setScope:Me.setScope,resync:Me.resync,popContext:Me.popContext,pushContext:Me.pushContext,setup:Me.setup,setKey:Me.setKey});Jt.prototype._guessExecutionStatusRelativeToDifferentFunctions=Be._guessExecutionStatusRelativeTo;Jt.prototype._guessExecutionStatusRelativeToDifferentFunctions=Be._guessExecutionStatusRelativeTo;Object.assign(Jt.prototype,{_getTypeAnnotation:zr._getTypeAnnotation,_replaceWith:Gr._replaceWith,_resolve:Be._resolve,_call:Me._call,_resyncParent:Me._resyncParent,_resyncKey:Me._resyncKey,_resyncList:Me._resyncList,_resyncRemoved:Me._resyncRemoved,_getQueueContexts:Me._getQueueContexts,_removeFromScope:Qr._removeFromScope,_callRemovalHooks:Qr._callRemovalHooks,_remove:Qr._remove,_markRemoved:Qr._markRemoved,_assertUnremoved:Qr._assertUnremoved,_containerInsert:_t._containerInsert,_containerInsertBefore:_t._containerInsertBefore,_containerInsertAfter:_t._containerInsertAfter,_verifyNodeList:_t._verifyNodeList,_getKey:Qe._getKey,_getPattern:Qe._getPattern});for(let e of Gi.TYPES){let t=`is${e}`,r=Gi[t];Jt.prototype[t]=function(s){return r(this.node,s)},Jt.prototype[`assert${e}`]=function(s){if(!r(this.node,s))throw TypeError(`Expected node path of type ${e}`)}}Object.assign(Jt.prototype,CPe);for(let e of Object.keys(gPe)){if(e.startsWith("_"))continue;if(!Gi.TYPES.includes(e))Gi.TYPES.push(e)}});var al=A(function(Tx){Object.defineProperty(Tx,"__esModule",{value:!0});Tx.default=void 0;class yx{getCode(){}getScope(){}addHelper(){throw Error("Helpers are not supported by the default hub.")}buildError(e,t,r=TypeError){return new r(t)}}Tx.default=yx});var Ex=A(function(gx){Object.defineProperty(gx,"__esModule",{value:!0});gx.default=void 0;var kPe=Yt(),DPe=ae(),ol=pt(),LPe=al(),{VISITOR_KEYS:MPe}=DPe;class Sx{constructor(e,t,r,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=e,this.state=r,this.opts=t}shouldVisit(e){let t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;let r=MPe[e.type];if(!(r!=null&&r.length))return!1;for(let s of r)if(e[s])return!0;return!1}create(e,t,r,s){let{parentPath:i}=this,n=i==null?e.type==="Program"||e.type==="File"?new LPe.default:void 0:i.hub;return kPe.default.get({parentPath:i,parent:e,container:t,key:r,listKey:s,hub:n})}maybeQueue(e,t){if(this.queue)if(t)this.queue.push(e);else this.priorityQueue.push(e)}visitMultiple(e,t,r){if(e.length===0)return!1;let s=[];for(let i=0;i<e.length;i++){let n=e[i];if(n&&this.shouldVisit(n))s.push(this.create(t,e,i,r))}return this.visitQueue(s)}visitSingle(e,t){if(this.shouldVisit(e[t]))return this.visitQueue([this.create(e,e,t)]);else return!1}visitQueue(e){this.queue=e,this.priorityQueue=[];let t=new WeakSet,r=!1,s=0;for(;s<e.length;){let i=e[s];if(s++,ol.resync.call(i),i.contexts.length===0||i.contexts[i.contexts.length-1]!==this)ol.pushContext.call(i,this);if(i.key===null)continue;let{node:n}=i;if(t.has(n))continue;if(n)t.add(n);if(i.visit()){r=!0;break}if(this.priorityQueue.length){if(r=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,r)break}}for(let i=0;i<s;i++)ol.popContext.call(e[i]);return this.queue=null,r}visit(e,t){let r=e[t];if(!r)return!1;if(Array.isArray(r))return this.visitMultiple(r,e,t);else return this.visitSingle(e,t)}}gx.default=Sx});var bi=A(function(Px){Object.defineProperty(Px,"__esModule",{value:!0});Px.traverseNode=RPe;var BPe=Ex(),eMe=Yt(),FPe=ae(),tMe=pt(),{VISITOR_KEYS:jPe}=FPe;function RPe(e,t,r,s,i,n,a){let o=jPe[e.type];if(!o)return!1;let l=new BPe.default(r,t,s,i);if(a){if(n!=null&&n[i.parentKey])return!1;return l.visitQueue([i])}for(let u of o){if(n!=null&&n[u])continue;if(l.visit(e,u))return!0}return!1}});var pt=A(function(_x){Object.defineProperty(_x,"__esModule",{value:!0});_x._call=ul;_x._forceSetScope=$Pe;_x._getQueueContexts=sAe;_x._resyncKey=Nx;_x._resyncList=Ox;_x._resyncParent=wx;_x._resyncRemoved=GPe;_x.call=ll;_x.isDenylisted=Cx;_x.popContext=QPe;_x.pushContext=ZPe;_x.requeue=tAe;_x.requeueComputedKeyAndDecorators=rAe;_x.resync=zPe;_x.setContext=HPe;_x.setKey=Qi;_x.setScope=Ix;_x.setup=eAe;_x.skip=JPe;_x.skipKey=WPe;_x.stop=XPe;_x.visit=YPe;var UPe=bi(),Ax=Yt(),KPe=Yi(),VPe=ae();function ll(e){let t=this.opts;if(this.debug(e),this.node){if(ul.call(this,t[e]))return!0}if(this.node){var r;return ul.call(this,(r=t[this.node.type])==null?void 0:r[e])}return!1}function ul(e){if(!e)return!1;for(let t of e){if(!t)continue;let r=this.node;if(!r)return!0;let s=t.call(this.state,this,this.state);if(s&&typeof s==="object"&&typeof s.then==="function")throw Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(s)throw Error(`Unexpected return value from visitor method ${t}`);if(this.node!==r)return!0;if(this._traverseFlags>0)return!0}return!1}function Cx(){var e;let t=(e=this.opts.denylist)!=null?e:this.opts.blacklist;return t==null?void 0:t.includes(this.node.type)}_x.isBlacklisted=Cx;function vx(e,t){if(e.context!==t)e.context=t,e.state=t.state,e.opts=t.opts}function YPe(){var e,t;if(!this.node)return!1;if(this.isDenylisted())return!1;if((e=(t=this.opts).shouldSkip)!=null&&e.call(t,this))return!1;let r=this.context;if(this.shouldSkip||ll.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return vx(this,r),this.debug("Recursing into..."),this.shouldStop=(0,UPe.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),vx(this,r),ll.call(this,"exit"),this.shouldStop}function JPe(){this.shouldSkip=!0}function WPe(e){if(this.skipKeys==null)this.skipKeys={};this.skipKeys[e]=!0}function XPe(){this._traverseFlags|=Ax.SHOULD_SKIP|Ax.SHOULD_STOP}function $Pe(){var e;let t=this.parentPath;if((this.key==="key"||this.listKey==="decorators")&&t.isMethod()||this.key==="discriminant"&&t.isSwitchStatement())t=t.parentPath;let r;while(t&&!r)r=t.scope,t=t.parentPath;this.scope=this.getScope(r),(e=this.scope)==null||e.init()}function Ix(){var e,t;if((e=this.opts)!=null&&e.noScope)return;let r=this.parentPath;if((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement())r=r.parentPath;let s;while(r&&!s){var i;if((i=r.opts)!=null&&i.noScope)return;s=r.scope,r=r.parentPath}this.scope=this.getScope(s),(t=this.scope)==null||t.init()}function HPe(e){if(this.skipKeys!=null)this.skipKeys={};if(this._traverseFlags=0,e)this.context=e,this.state=e.state,this.opts=e.opts;return Ix.call(this),this}function zPe(){if(this.removed)return;wx.call(this),Ox.call(this),Nx.call(this)}function wx(){if(this.parentPath)this.parent=this.parentPath.node}function Nx(){if(!this.container)return;if(this.node===this.container[this.key])return;if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node){Qi.call(this,e);return}}else for(let e of Object.keys(this.container))if(this.container[e]===this.node){Qi.call(this,e);return}this.key=null}function Ox(){if(!this.parent||!this.inList)return;let e=this.parent[this.listKey];if(this.container===e)return;this.container=e||null}function GPe(){if(this.key==null||!this.container||this.container[this.key]!==this.node)KPe._markRemoved.call(this)}function QPe(){if(this.contexts.pop(),this.contexts.length>0)this.setContext(this.contexts[this.contexts.length-1]);else this.setContext(void 0)}function ZPe(e){this.contexts.push(e),this.setContext(e)}function eAe(e,t,r,s){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,Qi.call(this,s)}function Qi(e){var t;this.key=e,this.node=this.container[this.key],this.type=(t=this.node)==null?void 0:t.type}function tAe(e=this){if(e.removed)return;let t=this.contexts;for(let r of t)r.maybeQueue(e)}function rAe(){let{context:e,node:t}=this;if(!VPe.isPrivate(t)&&t.computed)e.maybeQueue(this.get("key"));if(t.decorators)for(let r of this.get("decorators"))e.maybeQueue(r)}function sAe(){let e=this,t=this.contexts;while(!t.length){if(e=e.parentPath,!e)break;t=e.contexts}return t}});var Vr=A(function(Ks){Object.defineProperty(Ks,"__esModule",{value:!0});Object.defineProperty(Ks,"Hub",{enumerable:!0,get:function(){return _Ae.default}});Object.defineProperty(Ks,"NodePath",{enumerable:!0,get:function(){return NAe.default}});Object.defineProperty(Ks,"Scope",{enumerable:!0,get:function(){return OAe.default}});Ks.visitors=Ks.default=void 0;pt();var Us=vs();Ks.visitors=Us;var IAe=ae(),wAe=xr(),kx=bi(),NAe=Yt(),OAe=qa(),_Ae=al(),{VISITOR_KEYS:kAe,removeProperties:DAe,traverseFast:qs}=IAe;function Et(e,t={},r,s,i,n){if(!e)return;if(!t.noScope&&!r){if(e.type!=="Program"&&e.type!=="File")throw Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`)}if(!i&&n)throw Error("visitSelf can only be used when providing a NodePath.");if(!kAe[e.type])return;Us.explode(t),(0,kx.traverseNode)(e,t,r,s,i,void 0,n)}var iMe=Ks.default=Et;Et.visitors=Us;Et.verify=Us.verify;Et.explode=Us.explode;Et.cheap=function(e,t){qs(e,t);return};Et.node=function(e,t,r,s,i,n){(0,kx.traverseNode)(e,t,r,s,i,n)};Et.clearNode=function(e,t){DAe(e,t)};Et.removeProperties=function(e,t){return qs(e,Et.clearNode,t),e};Et.hasType=function(e,t,r){if(r!=null&&r.includes(e.type))return!1;if(e.type===t)return!0;return qs(e,function(s){if(r!=null&&r.includes(s.type))return qs.skip;if(s.type===t)return qs.stop})};Et.cache=wAe});var Lx=Al(Qs(),1),cl=Al(Vr(),1);import{existsSync as MAe,readFileSync as BAe}from"fs";import{join as FAe}from"path";var jAe=cl.default.default??cl.default,RAe=["tailwind.config.ts","tailwind.config.js","tailwind.config.mjs","tailwind.config.cjs"],qAe=[{key:"colors",id:"auto-tailwind-colors",title:"Tailwind Colors (Auto)",tag:"colors"},{key:"fontFamily",id:"auto-tailwind-font-family",title:"Tailwind Font Family (Auto)",tag:"typography"},{key:"fontSize",id:"auto-tailwind-font-size",title:"Tailwind Font Size (Auto)",tag:"typography"},{key:"spacing",id:"auto-tailwind-spacing",title:"Tailwind Spacing (Auto)",tag:"spacing"}];function UAe(e){for(let t of RAe){let r=FAe(e,t);if(MAe(r))return r}return null}function Zi(e){if(!e?.key)return;if("name"in e.key&&typeof e.key.name==="string")return e.key.name;if("value"in e.key&&(typeof e.key.value==="string"||typeof e.key.value==="number"))return String(e.key.value);return}function en(e,t,r){if(!e||typeof e!=="object")return;let s=e;switch(s.type){case"StringLiteral":return typeof s.value==="string"?s.value:void 0;case"NumericLiteral":return typeof s.value==="number"?s.value:void 0;case"BooleanLiteral":return typeof s.value==="boolean"?s.value:void 0;case"NullLiteral":return null;case"TemplateLiteral":{let i=e;if((i.expressions?.length??0)>0){t.push({source:r,code:"unsupported-expression",message:`skipped TemplateLiteral with interpolation at line ${s.loc?.start?.line??"?"}`});return}return i.quasis?.[0]?.value?.cooked??""}case"ArrayExpression":{let i=[];for(let n of s.elements??[]){if(n===null||n===void 0)continue;let a=en(n,t,r);if(a!==void 0)i.push(a)}return i}case"ObjectExpression":{let i={};for(let n of s.properties??[]){let a=n;if(a.type!=="ObjectProperty"&&a.type!=="Property"){t.push({source:r,code:"unsupported-expression",message:`skipped ${a.type??"unknown"} inside ObjectExpression`});continue}let o=Zi(a);if(o===void 0)continue;let l=en(a.value,t,r);if(l!==void 0)i[o]=l}return i}default:t.push({source:r,code:"unsupported-expression",message:`skipped ${s.type??"unknown"} at line ${s.loc?.start?.line??"?"}`});return}}function KAe(e){let t=null;function r(s){if(!s?.properties)return null;for(let i of s.properties){let n=i;if(n.type!=="ObjectProperty"&&n.type!=="Property")continue;if(Zi(n)==="theme"){if(n.value?.type==="ObjectExpression")return n.value}}return null}return jAe(e,{ExportDefaultDeclaration(s){let i=s.node.declaration;if(i?.type==="ObjectExpression"){let n=r(i);if(n)t=n}},AssignmentExpression(s){let i=s.node.left,n=s.node.right;if(i?.type==="MemberExpression"&&i.object?.name==="module"&&i.property?.name==="exports"&&n?.type==="ObjectExpression"){let a=r(n);if(a)t=a}}}),t}function VAe(e,t){let r=[`## ${e}`,""];if(t===null||typeof t!=="object"||Array.isArray(t))return r.push("```json",JSON.stringify(t,null,2),"```"),r.join(`
56
56
  `);for(let[s,i]of Object.entries(t))if(typeof i==="string"||typeof i==="number"||typeof i==="boolean")r.push(`- \`${s}\`: ${i}`);else if(Array.isArray(i))r.push(`- \`${s}\`: ${JSON.stringify(i)}`);else r.push(`- \`${s}\`:`),r.push(" ```json",` ${JSON.stringify(i,null,2).split(`
57
57
  `).join(`
58
58
  `)}`," ```");return r.join(`
59
- `)}function YAe(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&Object.keys(e).length===0}function pl(e){let t=[],r=[],s=UAe(e);if(!s)return{entries:r,errors:t};let i;try{i=BAe(s,"utf8")}catch(l){return t.push({source:s,code:"read-failed",message:String(l)}),{entries:r,errors:t}}let n;try{n=Dx.parse(i,{sourceType:"module",plugins:s.endsWith(".ts")?["typescript"]:[],allowImportExportEverywhere:!0,errorRecovery:!1})}catch(l){return t.push({source:s,code:"parse-failed",message:l instanceof Error?l.message:String(l)}),{entries:r,errors:t}}let a=KAe(n);if(!a?.properties)return{entries:r,errors:t};for(let l of qAe){let u=a.properties.find((m)=>{let x=m;return(x.type==="ObjectProperty"||x.type==="Property")&&Zi(x)===l.key});if(!u)continue;let p=en(u.value,t,s);if(p===void 0)continue;if(YAe(p))continue;r.push({id:l.id,title:l.title,category:"admin",tags:["tailwind",l.tag],origin:"local",body:VAe(l.title,p),filePath:s,sourcePath:s,layer:"auto"})}let o=a.properties.find((l)=>{let u=l;return(u.type==="ObjectProperty"||u.type==="Property")&&Zi(u)==="extend"});if(o)en(o.value,t,s);return{entries:r,errors:t}}import{existsSync as Lx,readFileSync as JAe,readdirSync as WAe,statSync as XAe}from"fs";import{join as fl}from"path";var $Ae={color:{id:"auto-tokens-colors",title:"Design Tokens Colors (Auto)",tag:"colors"},colors:{id:"auto-tokens-colors",title:"Design Tokens Colors (Auto)",tag:"colors"},spacing:{id:"auto-tokens-spacing",title:"Design Tokens Spacing (Auto)",tag:"spacing"},size:{id:"auto-tokens-spacing",title:"Design Tokens Spacing (Auto)",tag:"spacing"},sizes:{id:"auto-tokens-spacing",title:"Design Tokens Spacing (Auto)",tag:"spacing"},fontFamily:{id:"auto-tokens-typography",title:"Design Tokens Typography (Auto)",tag:"typography"},fontSize:{id:"auto-tokens-typography",title:"Design Tokens Typography (Auto)",tag:"typography"},fontWeight:{id:"auto-tokens-typography",title:"Design Tokens Typography (Auto)",tag:"typography"},lineHeight:{id:"auto-tokens-typography",title:"Design Tokens Typography (Auto)",tag:"typography"},letterSpacing:{id:"auto-tokens-typography",title:"Design Tokens Typography (Auto)",tag:"typography"},typography:{id:"auto-tokens-typography",title:"Design Tokens Typography (Auto)",tag:"typography"}};function HAe(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&"$value"in e&&!Array.isArray(e.$value)}function Mx(e,t,r){if(e===null||e===void 0)return;if(HAe(e)){let s=e.$value;if(s===null||s===void 0)return;r.push({name:t,value:String(s)});return}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){r.push({name:t,value:String(e)});return}if(typeof e!=="object"||Array.isArray(e))return;for(let[s,i]of Object.entries(e)){if(s.startsWith("$"))continue;let n=t?`${t}.${s}`:s;Mx(i,n,r)}}function zAe(e,t){let r=[],s=fl(e,"tokens.json");if(Lx(s))r.push(s);let i=fl(e,"design-tokens");if(Lx(i)){let n=(a)=>{let o;try{o=WAe(a)}catch(l){t.push({source:a,code:"read-failed",message:String(l)});return}for(let l of o){let u=fl(a,l),p=!1;try{p=XAe(u).isDirectory()}catch{continue}if(p)n(u);else if(l.endsWith(".json"))r.push(u)}};n(i)}return r}function GAe(e,t){let r=[`## ${e}`,""];for(let s of t)r.push(`- \`${s.name}\`: ${s.value}`);return r.join(`
60
- `)}function hl(e){let t=[],r=[],s=zAe(e,t);if(s.length===0)return{entries:r,errors:t};let i=new Map;for(let n of s){let a;try{a=JAe(n,"utf8")}catch(l){t.push({source:n,code:"read-failed",message:String(l)});continue}let o;try{o=JSON.parse(a)}catch(l){t.push({source:n,code:"parse-failed",message:l instanceof Error?l.message:String(l)});continue}if(typeof o!=="object"||o===null||Array.isArray(o))continue;for(let[l,u]of Object.entries(o)){let p=$Ae[l];if(!p)continue;let m=[];Mx(u,"",m);let x=i.get(p.id);if(!x)x={id:p.id,title:p.title,tag:p.tag,tokens:[],firstSource:n},i.set(p.id,x);let g=new Set(x.tokens.map((E)=>E.name));for(let E of m)if(!g.has(E.name))x.tokens.push(E),g.add(E.name)}}for(let n of i.values()){if(n.tokens.length===0)continue;r.push({id:n.id,title:n.title,category:"admin",tags:["tokens",n.tag],origin:"local",body:GAe(n.title,n.tokens),filePath:n.firstSource,sourcePath:n.firstSource,layer:"auto"})}return{entries:r,errors:t}}import{existsSync as QAe,readFileSync as ZAe,readdirSync as e1e,statSync as t1e}from"fs";import{join as Bx}from"path";var r1e=["src","styles","app"],s1e=[{prefixes:["color-","bg-","text-"],id:"auto-css-colors",title:"CSS Variables \u2014 Colors (Auto)",tag:"colors"},{prefixes:["spacing-","space-","gap-","size-"],id:"auto-css-spacing",title:"CSS Variables \u2014 Spacing (Auto)",tag:"spacing"},{prefixes:["font-","text-size-","leading-","tracking-"],id:"auto-css-typography",title:"CSS Variables \u2014 Typography (Auto)",tag:"typography"}],i1e={id:"auto-css-misc",title:"CSS Variables \u2014 Misc (Auto)",tag:"misc"};function n1e(e){let t=e.replace(/^--/,"");for(let r of s1e)for(let s of r.prefixes)if(t.startsWith(s))return{id:r.id,title:r.title,tag:r.tag};return i1e}function a1e(e){let t=[];if(!QAe(e))return t;let r=(s)=>{let i;try{i=e1e(s).sort()}catch{return}for(let n of i){let a=Bx(s,n),o=!1;try{o=t1e(a).isDirectory()}catch{continue}if(o)r(a);else if(n.endsWith(".css"))t.push(a)}};return r(e),t}function o1e(e){let t=[],r=e,s=/(:root|@theme)\s*\{/gi,i;while((i=s.exec(r))!==null){let n=i.index+i[0].length-1,a=0;for(let u=0;u<i.index;u+=1){let p=r[u];if(p==="{")a+=1;else if(p==="}")a-=1}if(a!==0)continue;let o=1,l=n+1;for(;l<r.length&&o>0;l+=1){let u=r[l];if(u==="{")o+=1;else if(u==="}")o-=1}if(o===0)t.push(r.slice(n+1,l-1));else t.push(r.slice(n+1))}return t}function l1e(e){let t=[],r=/--([A-Za-z0-9_-]+)\s*:\s*([^;]*?)(?=;|\n\s*--|\n\s*}|$)/g,s;while((s=r.exec(e))!==null){let i=s[1],n=s[2];if(!i||n===void 0)continue;let a=n.trim();if(!a)continue;t.push({name:`--${i}`,value:a})}return t}function u1e(e,t){let r=[`## ${e}`,""];for(let s of t)r.push(`- \`${s.name}\`: ${s.value}`);return r.join(`
61
- `)}function dl(e){let t=[],r=[],s=[];for(let n of r1e)s.push(...a1e(Bx(e,n)));if(s.length===0)return{entries:r,errors:t};let i=new Map;for(let n of s){let a;try{a=ZAe(n,"utf8")}catch(l){t.push({source:n,code:"read-failed",message:String(l)});continue}let o=o1e(a);for(let l of o){let u=l1e(l);for(let p of u){let m=n1e(p.name),x=i.get(m.id);if(!x)x={id:m.id,title:m.title,tag:m.tag,tokens:[],firstSource:n},i.set(m.id,x);if(x.tokens.some((g)=>g.name===p.name))continue;x.tokens.push(p)}}}for(let n of i.values()){if(n.tokens.length===0)continue;r.push({id:n.id,title:n.title,category:"admin",tags:["css",n.tag],origin:"local",body:u1e(n.title,n.tokens),filePath:n.firstSource,sourcePath:n.firstSource,layer:"auto"})}return{entries:r,errors:t}}import{existsSync as Fx,readFileSync as c1e,readdirSync as p1e,statSync as f1e}from"fs";import{join as jx}from"path";function ml(e){let t=[],r=[];if(!Fx(e))return{entries:t,errors:r};let s;try{s=p1e(e)}catch(i){return{entries:t,errors:[{source:e,code:"read-failed",message:String(i)}]}}for(let i of s.sort()){let n=jx(e,i),a=jx(n,"DESIGN.md");try{if(!f1e(n).isDirectory()||!Fx(a))continue;let o=c1e(a,"utf8"),l=h1e(o),u=Rx(l.meta.title)??T1e(i),p=Rx(l.meta.category)??"design-system",m=["open-design",...m1e(l.meta.tags)];t.push({id:`open-design-${y1e(i)}`,title:u,category:p,tags:m,origin:"local",body:l.body.trim()||o.trim(),filePath:a,sourcePath:a,layer:"auto"})}catch(o){r.push({source:a,code:"parse-failed",message:o instanceof Error?o.message:String(o)})}}return{entries:t,errors:r}}function h1e(e){let t=e.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/);if(!t)return{meta:{},body:e};let r={};for(let s of(t[1]??"").split(/\r?\n/)){let i=s.trim();if(!i)continue;let n=/^([A-Za-z0-9_-]+):\s*(.*)$/.exec(i);if(!n)throw Error(`invalid frontmatter line: ${i}`);let a=n[1],o=n[2].trim();r[a]=d1e(o)}return{meta:r,body:t[2]??""}}function d1e(e){if(e.startsWith("[")&&e.endsWith("]"))return e.slice(1,-1).split(",").map((t)=>t.trim().replace(/^["']|["']$/g,"")).filter(Boolean);if(e.startsWith("[")||e.endsWith("]"))throw Error(`invalid list value: ${e}`);return e.replace(/^["']|["']$/g,"")}function Rx(e){return typeof e==="string"&&e.trim()?e.trim():void 0}function m1e(e){if(Array.isArray(e))return e.filter(Boolean);return typeof e==="string"&&e.trim()?[e.trim()]:[]}function y1e(e){return e.toLowerCase().replace(/[^a-z0-9_-]+/g,"-").replace(/^-+|-+$/g,"")||"system"}function T1e(e){return e.split(/[-_]+/g).filter(Boolean).map((t)=>t[0]?.toUpperCase()+t.slice(1)).join(" ")||"Open Design System"}var x1e=["tailwind","tokens","css"],S1e={tailwind:pl,tokens:hl,css:dl,"open-design-systems":(e,t)=>ml(t.openDesignSystemsRoot??t.projectRoot)};function EMe(e){let t=e.enabled??x1e,r=[],s=[],i=new Set;for(let n of t){let a=S1e[n];if(!a)continue;let o=a(e.projectRoot,e);for(let l of o.entries){if(i.has(l.id))continue;i.add(l.id),r.push(l)}s.push(...o.errors)}return{entries:r,errors:s}}export{EMe as scanAutoDesignMd,dl as scanCssVariables,ml as scanOpenDesignSystems,pl as scanTailwindConfig,hl as scanTokensJson};
59
+ `)}function YAe(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&Object.keys(e).length===0}function pl(e){let t=[],r=[],s=UAe(e);if(!s)return{entries:r,errors:t};let i;try{i=BAe(s,"utf8")}catch(l){return t.push({source:s,code:"read-failed",message:String(l)}),{entries:r,errors:t}}let n;try{n=Lx.parse(i,{sourceType:"module",plugins:s.endsWith(".ts")?["typescript"]:[],allowImportExportEverywhere:!0,errorRecovery:!1})}catch(l){return t.push({source:s,code:"parse-failed",message:l instanceof Error?l.message:String(l)}),{entries:r,errors:t}}let a=KAe(n);if(!a?.properties)return{entries:r,errors:t};for(let l of qAe){let u=a.properties.find((m)=>{let x=m;return(x.type==="ObjectProperty"||x.type==="Property")&&Zi(x)===l.key});if(!u)continue;let p=en(u.value,t,s);if(p===void 0)continue;if(YAe(p))continue;r.push({id:l.id,title:l.title,category:"admin",tags:["tailwind",l.tag],origin:"local",body:VAe(l.title,p),filePath:s,sourcePath:s,layer:"auto"})}let o=a.properties.find((l)=>{let u=l;return(u.type==="ObjectProperty"||u.type==="Property")&&Zi(u)==="extend"});if(o)en(o.value,t,s);return{entries:r,errors:t}}import{existsSync as Mx,readFileSync as JAe,readdirSync as WAe,statSync as XAe}from"fs";import{join as fl}from"path";var $Ae={color:{id:"auto-tokens-colors",title:"Design Tokens Colors (Auto)",tag:"colors"},colors:{id:"auto-tokens-colors",title:"Design Tokens Colors (Auto)",tag:"colors"},spacing:{id:"auto-tokens-spacing",title:"Design Tokens Spacing (Auto)",tag:"spacing"},size:{id:"auto-tokens-spacing",title:"Design Tokens Spacing (Auto)",tag:"spacing"},sizes:{id:"auto-tokens-spacing",title:"Design Tokens Spacing (Auto)",tag:"spacing"},fontFamily:{id:"auto-tokens-typography",title:"Design Tokens Typography (Auto)",tag:"typography"},fontSize:{id:"auto-tokens-typography",title:"Design Tokens Typography (Auto)",tag:"typography"},fontWeight:{id:"auto-tokens-typography",title:"Design Tokens Typography (Auto)",tag:"typography"},lineHeight:{id:"auto-tokens-typography",title:"Design Tokens Typography (Auto)",tag:"typography"},letterSpacing:{id:"auto-tokens-typography",title:"Design Tokens Typography (Auto)",tag:"typography"},typography:{id:"auto-tokens-typography",title:"Design Tokens Typography (Auto)",tag:"typography"}};function HAe(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&"$value"in e&&!Array.isArray(e.$value)}function Bx(e,t,r){if(e===null||e===void 0)return;if(HAe(e)){let s=e.$value;if(s===null||s===void 0)return;r.push({name:t,value:String(s)});return}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){r.push({name:t,value:String(e)});return}if(typeof e!=="object"||Array.isArray(e))return;for(let[s,i]of Object.entries(e)){if(s.startsWith("$"))continue;let n=t?`${t}.${s}`:s;Bx(i,n,r)}}function zAe(e,t){let r=[],s=fl(e,"tokens.json");if(Mx(s))r.push(s);let i=fl(e,"design-tokens");if(Mx(i)){let n=(a)=>{let o;try{o=WAe(a)}catch(l){t.push({source:a,code:"read-failed",message:String(l)});return}for(let l of o){let u=fl(a,l),p=!1;try{p=XAe(u).isDirectory()}catch{continue}if(p)n(u);else if(l.endsWith(".json"))r.push(u)}};n(i)}return r}function GAe(e,t){let r=[`## ${e}`,""];for(let s of t)r.push(`- \`${s.name}\`: ${s.value}`);return r.join(`
60
+ `)}function hl(e){let t=[],r=[],s=zAe(e,t);if(s.length===0)return{entries:r,errors:t};let i=new Map;for(let n of s){let a;try{a=JAe(n,"utf8")}catch(l){t.push({source:n,code:"read-failed",message:String(l)});continue}let o;try{o=JSON.parse(a)}catch(l){t.push({source:n,code:"parse-failed",message:l instanceof Error?l.message:String(l)});continue}if(typeof o!=="object"||o===null||Array.isArray(o))continue;for(let[l,u]of Object.entries(o)){let p=$Ae[l];if(!p)continue;let m=[];Bx(u,"",m);let x=i.get(p.id);if(!x)x={id:p.id,title:p.title,tag:p.tag,tokens:[],firstSource:n},i.set(p.id,x);let g=new Set(x.tokens.map((E)=>E.name));for(let E of m)if(!g.has(E.name))x.tokens.push(E),g.add(E.name)}}for(let n of i.values()){if(n.tokens.length===0)continue;r.push({id:n.id,title:n.title,category:"admin",tags:["tokens",n.tag],origin:"local",body:GAe(n.title,n.tokens),filePath:n.firstSource,sourcePath:n.firstSource,layer:"auto"})}return{entries:r,errors:t}}import{existsSync as QAe,readFileSync as ZAe,readdirSync as e1e,statSync as t1e}from"fs";import{join as Fx}from"path";var r1e=["src","styles","app"],s1e=[{prefixes:["color-","bg-","text-"],id:"auto-css-colors",title:"CSS Variables \u2014 Colors (Auto)",tag:"colors"},{prefixes:["spacing-","space-","gap-","size-"],id:"auto-css-spacing",title:"CSS Variables \u2014 Spacing (Auto)",tag:"spacing"},{prefixes:["font-","text-size-","leading-","tracking-"],id:"auto-css-typography",title:"CSS Variables \u2014 Typography (Auto)",tag:"typography"}],i1e={id:"auto-css-misc",title:"CSS Variables \u2014 Misc (Auto)",tag:"misc"};function n1e(e){let t=e.replace(/^--/,"");for(let r of s1e)for(let s of r.prefixes)if(t.startsWith(s))return{id:r.id,title:r.title,tag:r.tag};return i1e}function a1e(e){let t=[];if(!QAe(e))return t;let r=(s)=>{let i;try{i=e1e(s).sort()}catch{return}for(let n of i){let a=Fx(s,n),o=!1;try{o=t1e(a).isDirectory()}catch{continue}if(o)r(a);else if(n.endsWith(".css"))t.push(a)}};return r(e),t}function o1e(e){let t=[],r=e,s=/(:root|@theme)\s*\{/gi,i;while((i=s.exec(r))!==null){let n=i.index+i[0].length-1,a=0;for(let u=0;u<i.index;u+=1){let p=r[u];if(p==="{")a+=1;else if(p==="}")a-=1}if(a!==0)continue;let o=1,l=n+1;for(;l<r.length&&o>0;l+=1){let u=r[l];if(u==="{")o+=1;else if(u==="}")o-=1}if(o===0)t.push(r.slice(n+1,l-1));else t.push(r.slice(n+1))}return t}function l1e(e){let t=[],r=/--([A-Za-z0-9_-]+)\s*:\s*([^;]*?)(?=;|\n\s*--|\n\s*}|$)/g,s;while((s=r.exec(e))!==null){let i=s[1],n=s[2];if(!i||n===void 0)continue;let a=n.trim();if(!a)continue;t.push({name:`--${i}`,value:a})}return t}function u1e(e,t){let r=[`## ${e}`,""];for(let s of t)r.push(`- \`${s.name}\`: ${s.value}`);return r.join(`
61
+ `)}function dl(e){let t=[],r=[],s=[];for(let n of r1e)s.push(...a1e(Fx(e,n)));if(s.length===0)return{entries:r,errors:t};let i=new Map;for(let n of s){let a;try{a=ZAe(n,"utf8")}catch(l){t.push({source:n,code:"read-failed",message:String(l)});continue}let o=o1e(a);for(let l of o){let u=l1e(l);for(let p of u){let m=n1e(p.name),x=i.get(m.id);if(!x)x={id:m.id,title:m.title,tag:m.tag,tokens:[],firstSource:n},i.set(m.id,x);if(x.tokens.some((g)=>g.name===p.name))continue;x.tokens.push(p)}}}for(let n of i.values()){if(n.tokens.length===0)continue;r.push({id:n.id,title:n.title,category:"admin",tags:["css",n.tag],origin:"local",body:u1e(n.title,n.tokens),filePath:n.firstSource,sourcePath:n.firstSource,layer:"auto"})}return{entries:r,errors:t}}import{existsSync as jx,readFileSync as c1e,readdirSync as p1e,statSync as f1e}from"fs";import{join as Rx}from"path";function ml(e){let t=[],r=[];if(!jx(e))return{entries:t,errors:r};let s;try{s=p1e(e)}catch(i){return{entries:t,errors:[{source:e,code:"read-failed",message:String(i)}]}}for(let i of s.sort()){let n=Rx(e,i),a=Rx(n,"DESIGN.md");try{if(!f1e(n).isDirectory()||!jx(a))continue;let o=c1e(a,"utf8"),l=h1e(o),u=qx(l.meta.title)??T1e(i),p=qx(l.meta.category)??"design-system",m=["open-design",...m1e(l.meta.tags)];t.push({id:`open-design-${y1e(i)}`,title:u,category:p,tags:m,origin:"local",body:l.body.trim()||o.trim(),filePath:a,sourcePath:a,layer:"auto"})}catch(o){r.push({source:a,code:"parse-failed",message:o instanceof Error?o.message:String(o)})}}return{entries:t,errors:r}}function h1e(e){let t=e.match(/^---\r?\n([\s\S]*?)\r?\n---\r?\n?([\s\S]*)$/);if(!t)return{meta:{},body:e};let r={};for(let s of(t[1]??"").split(/\r?\n/)){let i=s.trim();if(!i)continue;let n=/^([A-Za-z0-9_-]+):\s*(.*)$/.exec(i);if(!n)throw Error(`invalid frontmatter line: ${i}`);let a=n[1],o=n[2].trim();r[a]=d1e(o)}return{meta:r,body:t[2]??""}}function d1e(e){if(e.startsWith("[")&&e.endsWith("]"))return e.slice(1,-1).split(",").map((t)=>t.trim().replace(/^["']|["']$/g,"")).filter(Boolean);if(e.startsWith("[")||e.endsWith("]"))throw Error(`invalid list value: ${e}`);return e.replace(/^["']|["']$/g,"")}function qx(e){return typeof e==="string"&&e.trim()?e.trim():void 0}function m1e(e){if(Array.isArray(e))return e.filter(Boolean);return typeof e==="string"&&e.trim()?[e.trim()]:[]}function y1e(e){return e.toLowerCase().replace(/[^a-z0-9_-]+/g,"-").replace(/^-+|-+$/g,"")||"system"}function T1e(e){return e.split(/[-_]+/g).filter(Boolean).map((t)=>t[0]?.toUpperCase()+t.slice(1)).join(" ")||"Open Design System"}var x1e=["tailwind","tokens","css"],S1e={tailwind:pl,tokens:hl,css:dl,"open-design-systems":(e,t)=>ml(t.openDesignSystemsRoot??t.projectRoot)};function EMe(e){let t=e.enabled??x1e,r=[],s=[],i=new Set;for(let n of t){let a=S1e[n];if(!a)continue;let o=a(e.projectRoot,e);for(let l of o.entries){if(i.has(l.id))continue;i.add(l.id),r.push(l)}s.push(...o.errors)}return{entries:r,errors:s}}export{EMe as scanAutoDesignMd,dl as scanCssVariables,ml as scanOpenDesignSystems,pl as scanTailwindConfig,hl as scanTokensJson};