/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,yne=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,gne=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,bne=new Map([["n",` `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Rx(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):bne.get(e)||e}function Ene(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),s;for(let i of n)if(!isNaN(i))r.push(Number(i));else if(s=i.match(yne))r.push(s[2].replace(gne,(a,o,l)=>o?Rx(o):l));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`);return r}function vne(e){Lx.lastIndex=0;let t=[],r;for(;(r=Lx.exec(e))!==null;){let n=r[1];if(r[2]){let s=Ene(n,r[2]);t.push([n].concat(s))}else t.push([n])}return t}function Mx(e,t){let r={};for(let s of t)for(let i of s.styles)r[i[0]]=s.inverse?null:i.slice(1);let n=e;for(let s of Object.keys(r))if(Array.isArray(r[s])){if(!(s in n))throw new Error(`Unknown Chalk style: ${s}`);r[s].length>0?n=n[s].apply(n,r[s]):n=n[s]}return n}qx.exports=(e,t)=>{let r=[],n=[],s=[];if(t.replace(mne,(i,a,o,l,u,c)=>{if(a)s.push(Rx(a));else if(l){let f=s.join("");s=[],n.push(r.length===0?f:Mx(e,r)(f)),r.push({inverse:o,styles:vne(l)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(Mx(e,r)(s.join(""))),s=[],r.pop()}else s.push(c)}),n.push(s.join("")),r.length>0){let i=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return n.join("")}});var Lm=b((p2e,Ka)=>{"use strict";var jm=Px(),Ft=jx(),Fm=qh().stdout,Tne=Ux(),$x=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Wx=["ansi","ansi","ansi256","ansi16m"],Kx=new Set(["gray"]),Pi=Object.create(null);function Vx(e,t){t=t||{};let r=Fm?Fm.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function Wa(e){if(!this||!(this instanceof Wa)||this.template){let t={};return Vx(t,e),t.template=function(){let r=[].slice.call(arguments);return Pne.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,Wa.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=Wa,t.template}Vx(this,e)}$x&&(Ft.blue.open="\x1B[94m");for(let e of Object.keys(Ft))Ft[e].closeRe=new RegExp(jm(Ft[e].close),"g"),Pi[e]={get(){let t=Ft[e];return gu.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};Pi.visible={get(){return gu.call(this,this._styles||[],!0,"visible")}};Ft.color.closeRe=new RegExp(jm(Ft.color.close),"g");for(let e of Object.keys(Ft.color.ansi))Kx.has(e)||(Pi[e]={get(){let t=this.level;return function(){let n={open:Ft.color[Wx[t]][e].apply(null,arguments),close:Ft.color.close,closeRe:Ft.color.closeRe};return gu.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});Ft.bgColor.closeRe=new RegExp(jm(Ft.bgColor.close),"g");for(let e of Object.keys(Ft.bgColor.ansi)){if(Kx.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);Pi[t]={get(){let r=this.level;return function(){let s={open:Ft.bgColor[Wx[r]][e].apply(null,arguments),close:Ft.bgColor.close,closeRe:Ft.bgColor.closeRe};return gu.call(this,this._styles?this._styles.concat(s):[s],this._empty,e)}}}}var Sne=Object.defineProperties(()=>{},Pi);function gu(e,t,r){let n=function(){return xne.apply(n,arguments)};n._styles=e,n._empty=t;let s=this;return Object.defineProperty(n,"level",{enumerable:!0,get(){return s.level},set(i){s.level=i}}),Object.defineProperty(n,"enabled",{enumerable:!0,get(){return s.enabled},set(i){s.enabled=i}}),n.hasGrey=this.hasGrey||r==="gray"||r==="grey",n.__proto__=Sne,n}function xne(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let s=1;s{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.default=_ne;Ga.shouldHighlight=Jx;var Gx=Sx(),Hx=oi(),Rm=Ane(Lm(),!0);function Yx(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Yx=function(n){return n?r:t})(e)}function Ane(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Yx(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=s?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var Cne=new Set(["as","async","from","get","of","set"]);function wne(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.grey,invalid:e.white.bgRed.bold}}var Dne=/\r\n|[\n\r\u2028\u2029]/,Ine=/^[()[\]{}]$/,Xx;{let e=/^[a-z][\w-]*$/i,t=function(r,n,s){if(r.type==="name"){if((0,Hx.isKeyword)(r.value)||(0,Hx.isStrictReservedWord)(r.value,!0)||Cne.has(r.value))return"keyword";if(e.test(r.value)&&(s[n-1]==="<"||s.slice(n-2,n)=="i(a)).join(` `):r+=s}return r}function Jx(e){return Rm.default.level>0||e.forceColor}var Mm;function zx(e){if(e){var t;return(t=Mm)!=null||(Mm=new Rm.default.constructor({enabled:!0,level:1})),Mm}return Rm.default}Ga.getChalk=e=>zx(e.forceColor);function _ne(e,t={}){if(e!==""&&Jx(t)){let r=wne(zx(t.forceColor));return One(r,e)}else return e}});var Ai=b(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.codeFrameColumns=sP;bu.default=jne;var Zx=Qx(),eP=Nne(Lm(),!0);function nP(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(nP=function(n){return n?r:t})(e)}function Nne(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=nP(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=s?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var qm;function kne(e){if(e){var t;return(t=qm)!=null||(qm=new eP.default.constructor({enabled:!0,level:1})),qm}return eP.default}var tP=!1;function Bne(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}var rP=/\r\n|[\n\r\u2028\u2029]/;function Fne(e,t,r){let n=Object.assign({column:0,line:-1},e.start),s=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:a=3}=r||{},o=n.line,l=n.column,u=s.line,c=s.column,f=Math.max(o-(i+1),0),d=Math.min(t.length,u+a);o===-1&&(f=0),u===-1&&(d=t.length);let m=u-o,y={};if(m)for(let p=0;p<=m;p++){let E=p+o;if(!l)y[E]=!0;else if(p===0){let T=t[E-1].length;y[E]=[l,T-l+1]}else if(p===m)y[E]=[0,c];else{let T=t[E-p].length;y[E]=[0,T]}}else l===c?l?y[o]=[l,0]:y[o]=!0:y[o]=[l,c-l];return{start:f,end:d,markerLines:y}}function sP(e,t,r={}){let n=(r.highlightCode||r.forceColor)&&(0,Zx.shouldHighlight)(r),s=kne(r.forceColor),i=Bne(s),a=(p,E)=>n?p(E):E,o=e.split(rP),{start:l,end:u,markerLines:c}=Fne(t,o,r),f=t.start&&typeof t.start.column=="number",d=String(u).length,y=(n?(0,Zx.default)(e,r):e).split(rP,u).slice(l,u).map((p,E)=>{let T=l+1+E,C=` ${` ${T}`.slice(-d)} |`,v=c[T],I=!c[T+1];if(v){let k="";if(Array.isArray(v)){let B=p.slice(0,Math.max(v[0]-1,0)).replace(/[^\t]/g," "),M=v[1]||1;k=[` `,a(i.gutter,C.replace(/\d/g," "))," ",B,a(i.marker,"^").repeat(M)].join(""),I&&r.message&&(k+=" "+a(i.message,r.message))}return[a(i.marker,">"),a(i.gutter,C),p.length>0?` ${p}`:"",k].join("")}else return` ${a(i.gutter,C)}${p.length>0?` ${p}`:""}`}).join(` `);return r.message&&!f&&(y=`${" ".repeat(d+1)}${r.message} ${y}`),n?s.reset(y):y}function jne(e,t,r,n={}){if(!tP){tP=!0;let i="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(i,"DeprecationWarning");else{let a=new Error(i);a.name="DeprecationWarning",console.warn(new Error(i))}}return r=Math.max(r,0),sP(e,{start:{column:r,line:t}},n)}});var Ni=b(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});function Au(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,i;for(i=0;i=0)&&(r[s]=e[s]);return r}var sn=class{constructor(t,r,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=n}},Ii=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}};function ur(e,t){let{line:r,column:n,index:s}=e;return new sn(r,n+t,s+t)}var iP="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Lne={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:iP},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:iP}},aP={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"},Tu=({type:e,prefix:t})=>e==="UpdateExpression"?aP.UpdateExpression[String(t)]:aP[e],Mne={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.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",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.",DynamicImportPhaseRequiresImportExpressions:({phase:e})=>`'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`,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\`. - 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 `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding. - Did you mean \`import { "${e}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:e})=>`\`import()\` requires exactly ${e===1?"one argument":"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.",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 ${Tu(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${Tu(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${Tu(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.",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`.",UnsupportedBind:"Binding should be performed on object property.",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.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},Rne={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."},qne=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),Une={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 ${Tu({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.'},Vne=["toMessage"],$ne=["message"];function oP(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function Wne(e){let{toMessage:t}=e,r=Au(e,Vne);return function n({loc:s,details:i}){let a=new SyntaxError;return Object.assign(a,r,{loc:s,pos:s.index}),"missingPlugin"in i&&Object.assign(a,{missingPlugin:i.missingPlugin}),oP(a,"clone",function(l={}){var u;let{line:c,column:f,index:d}=(u=l.loc)!=null?u:s;return n({loc:new sn(c,f,d),details:Object.assign({},i,l.details)})}),oP(a,"details",i),Object.defineProperty(a,"message",{configurable:!0,get(){let o=`${t(i)} (${s.line}:${s.column})`;return this.message=o,o},set(o){Object.defineProperty(this,"message",{value:o,writable:!0})}}),a}}function Sn(e,t){if(Array.isArray(e))return n=>Sn(n,e[0]);let r={};for(let n of Object.keys(e)){let s=e[n],i=typeof s=="string"?{message:()=>s}:typeof s=="function"?{message:s}:s,{message:a}=i,o=Au(i,$ne),l=typeof a=="string"?()=>a:a;r[n]=Wne(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}var _=Object.assign({},Sn(Lne),Sn(Mne),Sn(Rne),Sn`pipelineOperator`(Une)),{defineProperty:Kne}=Object,lP=(e,t)=>Kne(e,t,{enumerable:!1,value:e[t]});function Ha(e){return e.loc.start&&lP(e.loc.start,"index"),e.loc.end&&lP(e.loc.end,"index"),e}var Gne=e=>class extends e{parse(){let r=Ha(super.parse());return this.options.tokens&&(r.tokens=r.tokens.map(Ha)),r}parseRegExpLiteral({pattern:r,flags:n}){let s=null;try{s=new RegExp(r,n)}catch{}let i=this.estreeParseLiteral(s);return i.regex={pattern:r,flags:n},i}parseBigIntLiteral(r){let n;try{n=BigInt(r)}catch{n=null}let s=this.estreeParseLiteral(n);return s.bigint=String(s.value||r),s}parseDecimalLiteral(r){let s=this.estreeParseLiteral(null);return s.decimal=String(s.value||r),s}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)}directiveToStmt(r){let n=r.value;delete r.value,n.type="Literal",n.raw=n.extra.raw,n.value=n.extra.expressionValue;let s=r;return s.type="ExpressionStatement",s.expression=n,s.directive=n.extra.rawValue,delete n.extra,s}initFunction(r,n){super.initFunction(r,n),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var n;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((n=r.expression.extra)!=null&&n.parenthesized)}parseBlockBody(r,n,s,i,a){super.parseBlockBody(r,n,s,i,a);let o=r.directives.map(l=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives}pushClassMethod(r,n,s,i,a,o){this.parseMethod(n,s,i,a,o,"ClassMethod",!0),n.typeParameters&&(n.value.typeParameters=n.typeParameters,delete n.typeParameters),r.body.push(n)}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let n=super.getPrivateNameSV(r);return r=r,delete r.id,r.name=n,r.type="PrivateIdentifier",r}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,n){let s=super.parseLiteral(r,n);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(r,n,s=!1){super.parseFunctionBody(r,n,s),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,n,s,i,a,o,l=!1){let u=this.startNode();return u.kind=r.kind,u=super.parseMethod(u,n,s,i,a,o,l),u.type="FunctionExpression",delete u.kind,r.value=u,o==="ClassPrivateMethod"&&(r.computed=!1),this.finishNode(r,"MethodDefinition")}parseClassProperty(...r){let n=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition"),n}parseClassPrivateProperty(...r){let n=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition",n.computed=!1),n}parseObjectMethod(r,n,s,i,a){let o=super.parseObjectMethod(r,n,s,i,a);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(r,n,s,i){let a=super.parseObjectProperty(r,n,s,i);return a&&(a.kind="init",a.type="Property"),a}isValidLVal(r,n,s){return r==="Property"?"value":super.isValidLVal(r,n,s)}isAssignable(r,n){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,n):super.isAssignable(r,n)}toAssignable(r,n=!1){if(r!=null&&this.isObjectProperty(r)){let{key:s,value:i}=r;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(i,n)}else super.toAssignable(r,n)}toAssignableObjectExpressionProp(r,n,s){r.kind==="get"||r.kind==="set"?this.raise(_.PatternHasAccessor,{at:r.key}):r.method?this.raise(_.PatternHasMethod,{at:r.key}):super.toAssignableObjectExpressionProp(r,n,s)}finishCallExpression(r,n){let s=super.finishCallExpression(r,n);if(s.callee.type==="Import"){if(s.type="ImportExpression",s.source=s.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var i,a;s.options=(i=s.arguments[1])!=null?i:null,s.attributes=(a=s.arguments[1])!=null?a:null}delete s.arguments,delete s.callee}return s}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,n){let s=this.state.lastTokStartLoc,i=super.parseExport(r,n);switch(i.type){case"ExportAllDeclaration":i.exported=null;break;case"ExportNamedDeclaration":i.specifiers.length===1&&i.specifiers[0].type==="ExportNamespaceSpecifier"&&(i.type="ExportAllDeclaration",i.exported=i.specifiers[0].exported,delete i.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:o}=i;(o==null?void 0:o.type)==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===i.start&&this.resetStartLocation(i,s)}break}return i}parseSubscript(r,n,s,i){let a=super.parseSubscript(r,n,s,i);if(i.optionalChainMember){if((a.type==="OptionalMemberExpression"||a.type==="OptionalCallExpression")&&(a.type=a.type.substring(8)),i.stop){let o=this.startNodeAtNode(a);return o.expression=a,this.finishNode(o,"ChainExpression")}}else(a.type==="MemberExpression"||a.type==="CallExpression")&&(a.optional=!1);return a}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.method||r.kind==="get"||r.kind==="set"}finishNodeAt(r,n,s){return Ha(super.finishNodeAt(r,n,s))}resetStartLocation(r,n){super.resetStartLocation(r,n),Ha(r)}resetEndLocation(r,n=this.state.lastTokEndLoc){super.resetEndLocation(r,n),Ha(r)}},js=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}},mt={brace:new js("{"),j_oTag:new js("...",!0)};mt.template=new js("`",!0);var $e=!0,ue=!0,Um=!0,Ya=!0,ts=!0,Hne=!0,Cu=class{constructor(t,r={}){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=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}},py=new Map;function Qe(e,t={}){t.keyword=e;let r=we(e,t);return py.set(e,r),r}function lr(e,t){return we(e,{beforeExpr:$e,binop:t})}var Qa=-1,vn=[],dy=[],hy=[],my=[],yy=[],gy=[];function we(e,t={}){var r,n,s,i;return++Qa,dy.push(e),hy.push((r=t.binop)!=null?r:-1),my.push((n=t.beforeExpr)!=null?n:!1),yy.push((s=t.startsExpr)!=null?s:!1),gy.push((i=t.prefix)!=null?i:!1),vn.push(new Cu(e,t)),Qa}function Ve(e,t={}){var r,n,s,i;return++Qa,py.set(e,Qa),dy.push(e),hy.push((r=t.binop)!=null?r:-1),my.push((n=t.beforeExpr)!=null?n:!1),yy.push((s=t.startsExpr)!=null?s:!1),gy.push((i=t.prefix)!=null?i:!1),vn.push(new Cu("name",t)),Qa}var Yne={bracketL:we("[",{beforeExpr:$e,startsExpr:ue}),bracketHashL:we("#[",{beforeExpr:$e,startsExpr:ue}),bracketBarL:we("[|",{beforeExpr:$e,startsExpr:ue}),bracketR:we("]"),bracketBarR:we("|]"),braceL:we("{",{beforeExpr:$e,startsExpr:ue}),braceBarL:we("{|",{beforeExpr:$e,startsExpr:ue}),braceHashL:we("#{",{beforeExpr:$e,startsExpr:ue}),braceR:we("}"),braceBarR:we("|}"),parenL:we("(",{beforeExpr:$e,startsExpr:ue}),parenR:we(")"),comma:we(",",{beforeExpr:$e}),semi:we(";",{beforeExpr:$e}),colon:we(":",{beforeExpr:$e}),doubleColon:we("::",{beforeExpr:$e}),dot:we("."),question:we("?",{beforeExpr:$e}),questionDot:we("?."),arrow:we("=>",{beforeExpr:$e}),template:we("template"),ellipsis:we("...",{beforeExpr:$e}),backQuote:we("`",{startsExpr:ue}),dollarBraceL:we("${",{beforeExpr:$e,startsExpr:ue}),templateTail:we("...`",{startsExpr:ue}),templateNonTail:we("...${",{beforeExpr:$e,startsExpr:ue}),at:we("@"),hash:we("#",{startsExpr:ue}),interpreterDirective:we("#!..."),eq:we("=",{beforeExpr:$e,isAssign:Ya}),assign:we("_=",{beforeExpr:$e,isAssign:Ya}),slashAssign:we("_=",{beforeExpr:$e,isAssign:Ya}),xorAssign:we("_=",{beforeExpr:$e,isAssign:Ya}),moduloAssign:we("_=",{beforeExpr:$e,isAssign:Ya}),incDec:we("++/--",{prefix:ts,postfix:Hne,startsExpr:ue}),bang:we("!",{beforeExpr:$e,prefix:ts,startsExpr:ue}),tilde:we("~",{beforeExpr:$e,prefix:ts,startsExpr:ue}),doubleCaret:we("^^",{startsExpr:ue}),doubleAt:we("@@",{startsExpr:ue}),pipeline:lr("|>",0),nullishCoalescing:lr("??",1),logicalOR:lr("||",1),logicalAND:lr("&&",2),bitwiseOR:lr("|",3),bitwiseXOR:lr("^",4),bitwiseAND:lr("&",5),equality:lr("==/!=/===/!==",6),lt:lr("/<=/>=",7),gt:lr("/<=/>=",7),relational:lr("/<=/>=",7),bitShift:lr("<>/>>>",8),bitShiftL:lr("<>/>>>",8),bitShiftR:lr("<>/>>>",8),plusMin:we("+/-",{beforeExpr:$e,binop:9,prefix:ts,startsExpr:ue}),modulo:we("%",{binop:10,startsExpr:ue}),star:we("*",{binop:10}),slash:lr("/",10),exponent:we("**",{beforeExpr:$e,binop:11,rightAssociative:!0}),_in:Qe("in",{beforeExpr:$e,binop:7}),_instanceof:Qe("instanceof",{beforeExpr:$e,binop:7}),_break:Qe("break"),_case:Qe("case",{beforeExpr:$e}),_catch:Qe("catch"),_continue:Qe("continue"),_debugger:Qe("debugger"),_default:Qe("default",{beforeExpr:$e}),_else:Qe("else",{beforeExpr:$e}),_finally:Qe("finally"),_function:Qe("function",{startsExpr:ue}),_if:Qe("if"),_return:Qe("return",{beforeExpr:$e}),_switch:Qe("switch"),_throw:Qe("throw",{beforeExpr:$e,prefix:ts,startsExpr:ue}),_try:Qe("try"),_var:Qe("var"),_const:Qe("const"),_with:Qe("with"),_new:Qe("new",{beforeExpr:$e,startsExpr:ue}),_this:Qe("this",{startsExpr:ue}),_super:Qe("super",{startsExpr:ue}),_class:Qe("class",{startsExpr:ue}),_extends:Qe("extends",{beforeExpr:$e}),_export:Qe("export"),_import:Qe("import",{startsExpr:ue}),_null:Qe("null",{startsExpr:ue}),_true:Qe("true",{startsExpr:ue}),_false:Qe("false",{startsExpr:ue}),_typeof:Qe("typeof",{beforeExpr:$e,prefix:ts,startsExpr:ue}),_void:Qe("void",{beforeExpr:$e,prefix:ts,startsExpr:ue}),_delete:Qe("delete",{beforeExpr:$e,prefix:ts,startsExpr:ue}),_do:Qe("do",{isLoop:Um,beforeExpr:$e}),_for:Qe("for",{isLoop:Um}),_while:Qe("while",{isLoop:Um}),_as:Ve("as",{startsExpr:ue}),_assert:Ve("assert",{startsExpr:ue}),_async:Ve("async",{startsExpr:ue}),_await:Ve("await",{startsExpr:ue}),_defer:Ve("defer",{startsExpr:ue}),_from:Ve("from",{startsExpr:ue}),_get:Ve("get",{startsExpr:ue}),_let:Ve("let",{startsExpr:ue}),_meta:Ve("meta",{startsExpr:ue}),_of:Ve("of",{startsExpr:ue}),_sent:Ve("sent",{startsExpr:ue}),_set:Ve("set",{startsExpr:ue}),_source:Ve("source",{startsExpr:ue}),_static:Ve("static",{startsExpr:ue}),_using:Ve("using",{startsExpr:ue}),_yield:Ve("yield",{startsExpr:ue}),_asserts:Ve("asserts",{startsExpr:ue}),_checks:Ve("checks",{startsExpr:ue}),_exports:Ve("exports",{startsExpr:ue}),_global:Ve("global",{startsExpr:ue}),_implements:Ve("implements",{startsExpr:ue}),_intrinsic:Ve("intrinsic",{startsExpr:ue}),_infer:Ve("infer",{startsExpr:ue}),_is:Ve("is",{startsExpr:ue}),_mixins:Ve("mixins",{startsExpr:ue}),_proto:Ve("proto",{startsExpr:ue}),_require:Ve("require",{startsExpr:ue}),_satisfies:Ve("satisfies",{startsExpr:ue}),_keyof:Ve("keyof",{startsExpr:ue}),_readonly:Ve("readonly",{startsExpr:ue}),_unique:Ve("unique",{startsExpr:ue}),_abstract:Ve("abstract",{startsExpr:ue}),_declare:Ve("declare",{startsExpr:ue}),_enum:Ve("enum",{startsExpr:ue}),_module:Ve("module",{startsExpr:ue}),_namespace:Ve("namespace",{startsExpr:ue}),_interface:Ve("interface",{startsExpr:ue}),_type:Ve("type",{startsExpr:ue}),_opaque:Ve("opaque",{startsExpr:ue}),name:we("name",{startsExpr:ue}),string:we("string",{startsExpr:ue}),num:we("num",{startsExpr:ue}),bigint:we("bigint",{startsExpr:ue}),decimal:we("decimal",{startsExpr:ue}),regexp:we("regexp",{startsExpr:ue}),privateName:we("#name",{startsExpr:ue}),eof:we("eof"),jsxName:we("jsxName"),jsxText:we("jsxText",{beforeExpr:!0}),jsxTagStart:we("jsxTagStart",{startsExpr:!0}),jsxTagEnd:we("jsxTagEnd"),placeholder:we("%%",{startsExpr:!0})};function ot(e){return e>=93&&e<=132}function Xne(e){return e<=92}function Wr(e){return e>=58&&e<=132}function TP(e){return e>=58&&e<=136}function Jne(e){return my[e]}function Gm(e){return yy[e]}function zne(e){return e>=29&&e<=33}function uP(e){return e>=129&&e<=131}function Qne(e){return e>=90&&e<=92}function by(e){return e>=58&&e<=92}function Zne(e){return e>=39&&e<=59}function ese(e){return e===34}function tse(e){return gy[e]}function rse(e){return e>=121&&e<=123}function nse(e){return e>=124&&e<=130}function ss(e){return dy[e]}function Su(e){return hy[e]}function sse(e){return e===57}function wu(e){return e>=24&&e<=25}function En(e){return vn[e]}vn[8].updateContext=e=>{e.pop()},vn[5].updateContext=vn[7].updateContext=vn[23].updateContext=e=>{e.push(mt.brace)},vn[22].updateContext=e=>{e[e.length-1]===mt.template?e.pop():e.push(mt.template)},vn[142].updateContext=e=>{e.push(mt.j_expr,mt.j_oTag)};var Ey="\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-\u088E\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\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\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-\u1C88\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-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\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",SP="\u200C\u200D\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\u0898-\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-\u1ACE\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",ise=new RegExp("["+Ey+"]"),ase=new RegExp("["+Ey+SP+"]");Ey=SP=null;var xP=[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,68,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,71,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,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,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,757,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,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],ose=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,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,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function Hm(e,t){let r=65536;for(let n=0,s=t.length;ne)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Tn(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&ise.test(String.fromCharCode(e)):Hm(e,xP)}function wi(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&ase.test(String.fromCharCode(e)):Hm(e,xP)||Hm(e,ose)}var vy={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"]},lse=new Set(vy.keyword),use=new Set(vy.strict),cse=new Set(vy.strictBind);function PP(e,t){return t&&e==="await"||e==="enum"}function AP(e,t){return PP(e,t)||use.has(e)}function CP(e){return cse.has(e)}function wP(e,t){return AP(e,t)||CP(e)}function fse(e){return lse.has(e)}function pse(e,t,r){return e===64&&t===64&&Tn(r)}var dse=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 hse(e){return dse.has(e)}var eo=class{constructor(t){this.var=new Set,this.lexical=new Set,this.functions=new Set,this.flags=t}},to=class{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=r}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 inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new eo(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,n){let s=this.currentScope();if(r&8||r&16)this.checkRedeclarationInScope(s,t,r,n),r&16?s.functions.add(t):s.lexical.add(t),r&8&&this.maybeExportDefined(s,t);else if(r&4)for(let i=this.scopeStack.length-1;i>=0&&(s=this.scopeStack[i],this.checkRedeclarationInScope(s,t,r,n),s.var.add(t),this.maybeExportDefined(s,t),!(s.flags&387));--i);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,n,s){this.isRedeclaredInScope(t,r,n)&&this.parser.raise(_.VarRedeclaration,{at:s,identifierName:r})}isRedeclaredInScope(t,r,n){return n&1?n&8?t.lexical.has(r)||t.functions.has(r)||t.var.has(r):n&16?t.lexical.has(r)||!this.treatFunctionsAsVarInScope(t)&&t.var.has(r):t.lexical.has(r)&&!(t.flags&8&&t.lexical.values().next().value===r)||!this.treatFunctionsAsVarInScope(t)&&t.functions.has(r):!1}checkLocalExport(t){let{name:r}=t,n=this.scopeStack[0];!n.lexical.has(r)&&!n.var.has(r)&&!n.functions.has(r)&&this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&387)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&451&&!(r&4))return r}}},Ym=class extends eo{constructor(...t){super(...t),this.declareFunctions=new Set}},Xm=class extends to{createScope(t){return new Ym(t)}declareName(t,r,n){let s=this.currentScope();if(r&2048){this.checkRedeclarationInScope(s,t,r,n),this.maybeExportDefined(s,t),s.declareFunctions.add(t);return}super.declareName(t,r,n)}isRedeclaredInScope(t,r,n){return super.isRedeclaredInScope(t,r,n)?!0:n&2048?!t.declareFunctions.has(r)&&(t.lexical.has(r)||t.functions.has(r)):!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},Jm=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,n]=t;if(!this.hasPlugin(r))return!1;let s=this.plugins.get(r);for(let i of Object.keys(n))if((s==null?void 0:s[i])!==n[i])return!1;return!0}}getPluginOption(t,r){var n;return(n=this.plugins.get(t))==null?void 0:n[r]}};function DP(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function mse(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function ro(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function Xa(e,t,r){let n=null,s=t.length;for(;n===null&&s>0;)n=t[--s];n===null||n.start>r.start?ro(e,r.comments):DP(n,r.comments)}var zm=class extends Jm{addComment(t){this.filename&&(t.loc.filename=this.filename),this.state.comments.push(t)}processComment(t){let{commentStack:r}=this.state,n=r.length;if(n===0)return;let s=n-1,i=r[s];i.start===t.end&&(i.leadingNode=t,s--);let{start:a}=t;for(;s>=0;s--){let o=r[s],l=o.end;if(l>a)o.containingNode=t,this.finalizeComment(o),r.splice(s,1);else{l===a&&(o.trailingNode=t);break}}}finalizeComment(t){let{comments:r}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&DP(t.leadingNode,r),t.trailingNode!==null&&mse(t.trailingNode,r);else{let{containingNode:n,start:s}=t;if(this.input.charCodeAt(s-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Xa(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":Xa(n,n.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Xa(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Xa(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Xa(n,n.specifiers,t);break;default:ro(n,r)}else ro(n,r)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:n}=r;if(n===0)return;let s=r[n-1];s.leadingNode===t&&(s.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){let{commentStack:r}=this.state,{length:n}=r;n!==0&&(r[n-1].trailingNode===t?r[n-1].trailingNode=null:n>=2&&r[n-2].trailingNode===t&&(r[n-2].trailingNode=null))}takeSurroundingComments(t,r,n){let{commentStack:s}=this.state,i=s.length;if(i===0)return;let a=i-1;for(;a>=0;a--){let o=s[a],l=o.end;if(o.start===n)o.leadingNode=t;else if(l===r)o.trailingNode=t;else if(l=48&&t<=57},fP={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},vu={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 pP(e,t,r,n,s,i){let a=r,o=n,l=s,u="",c=null,f=r,{length:d}=t;for(;;){if(r>=d){i.unterminated(a,o,l),u+=t.slice(f,r);break}let m=t.charCodeAt(r);if(bse(e,m,t,r)){u+=t.slice(f,r);break}if(m===92){u+=t.slice(f,r);let y=Ese(t,r,n,s,e==="template",i);y.ch===null&&!c?c={pos:r,lineStart:n,curLine:s}:u+=y.ch,{pos:r,lineStart:n,curLine:s}=y,f=r}else m===8232||m===8233?(++r,++s,n=r):m===10||m===13?e==="template"?(u+=t.slice(f,r)+` `,++r,m===13&&t.charCodeAt(r)===10&&++r,++s,f=n=r):i.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:n,curLine:s,containsInvalid:!!c}}function bse(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function Ese(e,t,r,n,s,i){let a=!s;t++;let o=u=>({pos:t,ch:u,lineStart:r,curLine:n}),l=e.charCodeAt(t++);switch(l){case 110:return o(` `);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=Zm(e,t,r,n,2,!1,a,i),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=_P(e,t,r,n,a,i),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);i.strictNumericEscape(t-1,r,n);default:if(l>=48&&l<=55){let u=t-1,f=e.slice(u,t+2).match(/^[0-7]+/)[0],d=parseInt(f,8);d>255&&(f=f.slice(0,-1),d=parseInt(f,8)),t+=f.length-1;let m=e.charCodeAt(t);if(f!=="0"||m===56||m===57){if(s)return o(null);i.strictNumericEscape(u,r,n)}return o(String.fromCharCode(d))}return o(String.fromCharCode(l))}}function Zm(e,t,r,n,s,i,a,o){let l=t,u;return{n:u,pos:t}=OP(e,t,r,n,16,s,i,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,n):t=l-1),{code:u,pos:t}}function OP(e,t,r,n,s,i,a,o,l,u){let c=t,f=s===16?fP.hex:fP.decBinOct,d=s===16?vu.hex:s===10?vu.dec:s===8?vu.oct:vu.bin,m=!1,y=0;for(let p=0,E=i==null?1/0:i;p=97?O=T-97+10:T>=65?O=T-65+10:gse(T)?O=T-48:O=1/0,O>=s){if(O<=9&&u)return{n:null,pos:t};if(O<=9&&l.invalidDigit(t,r,n,s))O=0;else if(a)O=0,m=!0;else break}++t,y=y*s+O}return t===c||i!=null&&t-c!==i||m?{n:null,pos:t}:{n:y,pos:t}}function _P(e,t,r,n,s,i){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Zm(e,t,r,n,e.indexOf("}",t)-t,!0,s,i),++t,o!==null&&o>1114111)if(s)i.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:o,pos:t}=Zm(e,t,r,n,4,!1,s,i));return{code:o,pos:t}}var vse=["at"],Tse=["at"];function Ja(e,t,r){return new sn(r,e-t,e)}var Sse=new Set([103,109,115,105,121,117,100,118]),nn=class{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new Ii(t.startLoc,t.endLoc)}},ey=class extends zm{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(n,s,i,a)=>this.options.errorRecovery?(this.raise(_.InvalidDigit,{at:Ja(n,s,i),radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(_.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(_.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(_.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(_.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(n,s,i)=>{this.recordStrictModeErrors(_.StrictNumericEscape,{at:Ja(n,s,i)})},unterminated:(n,s,i)=>{throw this.raise(_.UnterminatedString,{at:Ja(n-1,s,i)})}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(_.StrictNumericEscape),unterminated:(n,s,i)=>{throw this.raise(_.UnterminatedTemplate,{at:Ja(n,s,i)})}}),this.state=new Qm,this.state.init(t),this.input=r,this.length=r.length,this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new nn(this.state)),this.state.lastTokStart=this.state.start,this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return Vm.lastIndex=t,Vm.test(this.input)?Vm.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return xu.lastIndex=t,xu.test(this.input)?xu.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++tthis.raise(r,{at:n})),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()),this.state.pos>=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let r;this.isLookahead||(r=this.state.curPosition());let n=this.state.pos,s=this.input.indexOf(t,n+2);if(s===-1)throw this.raise(_.UnterminatedComment,{at:this.state.curPosition()});for(this.state.pos=s+t.length,Eu.lastIndex=n+2;Eu.test(this.input)&&Eu.lastIndex<=s;)++this.state.curLine,this.state.lineStart=Eu.lastIndex;if(this.isLookahead)return;let i={type:"CommentBlock",value:this.input.slice(n+2,s),start:n,end:s+t.length,loc:new Ii(r,this.state.curPosition())};return this.options.tokens&&this.pushToken(i),i}skipLineComment(t){let r=this.state.pos,n;this.isLookahead||(n=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=t);if(this.state.post)){let i=this.skipLineComment(3);i!==void 0&&(this.addComment(i),this.options.attachComment&&r.push(i))}else break e}else if(n===60&&!this.inModule&&this.options.annexB){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);i!==void 0&&(this.addComment(i),this.options.attachComment&&r.push(i))}else break e}else break e}}if(r.length>0){let n=this.state.pos,s={start:t,end:n,comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(t,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let n=this.state.type;this.state.type=t,this.state.value=r,this.isLookahead||this.updateContext(n)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,r=this.codePointAtPos(t);if(r>=48&&r<=57)throw this.raise(_.UnexpectedDigitAfterHash,{at:this.state.curPosition()});if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?_.RecordExpressionHashIncorrectStartSyntaxType:_.TupleExpressionHashIncorrectStartSyntaxType,{at:this.state.curPosition()});this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else Tn(r)?(++this.state.pos,this.finishToken(138,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!Za(t)&&++this.state.pos=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){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(_.TupleExpressionBarIncorrectStartSyntaxType,{at: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(_.RecordExpressionBarIncorrectStartSyntaxType,{at: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:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===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(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);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(Tn(t)){this.readWord(t);return}}throw this.raise(_.InvalidOrUnexpectedToken,{at:this.state.curPosition(),unexpected:String.fromCodePoint(t)})}finishOp(t,r){let n=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(t,n)}readRegexp(){let t=this.state.startLoc,r=this.state.start+1,n,s,{pos:i}=this.state;for(;;++i){if(i>=this.length)throw this.raise(_.UnterminatedRegExp,{at:ur(t,1)});let u=this.input.charCodeAt(i);if(Za(u))throw this.raise(_.UnterminatedRegExp,{at:ur(t,1)});if(n)n=!1;else{if(u===91)s=!0;else if(u===93&&s)s=!1;else if(u===47&&!s)break;n=u===92}}let a=this.input.slice(r,i);++i;let o="",l=()=>ur(t,i+2-r);for(;i=2&&this.input.charCodeAt(r)===48;if(u){let m=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(_.StrictOctalLiteral,{at:n}),!this.state.strict){let y=m.indexOf("_");y>0&&this.raise(_.ZeroDigitNumericSeparator,{at:ur(n,y)})}l=u&&!/[89]/.test(m)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!l&&(++this.state.pos,this.readInt(10),s=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!l&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(_.InvalidOrMissingExponent,{at:n}),s=!0,o=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((s||u)&&this.raise(_.InvalidBigIntLiteral,{at:n}),++this.state.pos,i=!0),c===109&&(this.expectPlugin("decimal",this.state.curPosition()),(o||u)&&this.raise(_.InvalidDecimal,{at:n}),++this.state.pos,a=!0),Tn(this.codePointAtPos(this.state.pos)))throw this.raise(_.NumberIdentifier,{at:this.state.curPosition()});let f=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(i){this.finishToken(135,f);return}if(a){this.finishToken(136,f);return}let d=l?parseInt(f,8):parseFloat(f);this.finishToken(134,d)}readCodePoint(t){let{code:r,pos:n}=_P(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=n,r}readString(t){let{str:r,pos:n,curLine:s,lineStart:i}=pP(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=s,this.finishToken(133,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:r,firstInvalidLoc:n,pos:s,curLine:i,lineStart:a}=pP("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=a,this.state.curLine=i,n&&(this.state.firstInvalidTemplateEscapePos=new sn(n.curLine,n.pos-n.lineStart,n.pos)),this.input.codePointAt(s)===96?this.finishToken(24,n?null:t+r+"`"):(this.state.pos++,this.finishToken(25,n?null:t+r+"${"))}recordStrictModeErrors(t,{at:r}){let n=r.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(t,{at:r}):this.state.strictErrors.set(n,[t,r])}readWord1(t){this.state.containsEsc=!1;let r="",n=this.state.pos,s=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos=0;l--){let u=o[l];if(u.loc.index===a)return o[l]=t({loc:i,details:s});if(u.loc.indexthis.hasPlugin(r)))throw this.raise(_.MissingOneOfPlugins,{at:this.state.startLoc,missingPlugin:t})}errorBuilder(t){return(r,n,s)=>{this.raise(t,{at:Ja(r,n,s)})}}},ty=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},ry=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ty)}exit(){let t=this.stack.pop(),r=this.current();for(let[n,s]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(n)||r.undefinedPrivateNames.set(n,s):this.parser.raise(_.InvalidPrivateFieldResolution,{at:s,identifierName:n})}declarePrivateName(t,r,n){let{privateNames:s,loneAccessors:i,undefinedPrivateNames:a}=this.current(),o=s.has(t);if(r&3){let l=o&&i.get(t);if(l){let u=l&4,c=r&4,f=l&3,d=r&3;o=f===d||u!==c,o||i.delete(t)}else o||i.set(t,r)}o&&this.parser.raise(_.PrivateNameRedeclaration,{at:n,identifierName:t}),s.add(t),a.delete(t)}usePrivateName(t,r){let n;for(n of this.stack)if(n.privateNames.has(t))return;n?n.undefinedPrivateNames.set(t,r):this.parser.raise(_.InvalidPrivateFieldResolution,{at:r,identifierName:t})}},Oi=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Du=class extends Oi{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,{at:r}){let n=r.index;this.declarationErrors.set(n,[t,r])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},ny=class{constructor(t){this.parser=void 0,this.stack=[new Oi],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,{at:r}){let n={at:r.loc.start},{stack:s}=this,i=s.length-1,a=s[i];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,n);else return;a=s[--i]}this.parser.raise(t,n)}recordArrowParameterBindingError(t,{at:r}){let{stack:n}=this,s=n[n.length-1],i={at:r.loc.start};if(s.isCertainlyParameterDeclaration())this.parser.raise(t,i);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(t,i);else return}recordAsyncArrowParametersError({at:t}){let{stack:r}=this,n=r.length-1,s=r[n];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(_.AwaitBindingIdentifier,{at:t}),s=r[--n]}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([n,s])=>{this.parser.raise(n,{at:s});let i=t.length-2,a=t[i];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(s.index),a=t[--i]})}};function xse(){return new Oi(3)}function Pse(){return new Du(1)}function Ase(){return new Du(2)}function NP(){return new Oi}var sy=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}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 Pu(e,t){return(e?2:0)|(t?1:0)}var iy=class extends ey{addExtra(t,r,n,s=!0){if(!t)return;let i=t.extra=t.extra||{};s?i[r]=n:Object.defineProperty(i,r,{enumerable:s,value:n})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){let n=t+r.length;if(this.input.slice(t,n)===r){let s=this.input.charCodeAt(n);return!(wi(s)||(s&64512)===55296)}return!1}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,{at:this.state.startLoc});this.unexpected(null,t)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return IP.test(this.input.slice(this.state.lastTokEndLoc.index,this.state.start))}hasFollowingLineBreak(){return cP.lastIndex=this.state.end,cP.test(this.input)}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(_.MissingSemicolon,{at:this.state.lastTokEndLoc})}expect(t,r){this.eat(t)||this.unexpected(r,t)}tryParse(t,r=this.state.clone()){let n={node:null};try{let s=t((i=null)=>{throw n.node=i,n});if(this.state.errors.length>r.errors.length){let i=this.state;return this.state=r,this.state.tokensLength=i.tokensLength,{node:s,error:i.errors[r.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=r,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:i};if(s===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:i};throw s}}checkExpressionErrors(t,r){if(!t)return!1;let{shorthandAssignLoc:n,doubleProtoLoc:s,privateKeyLoc:i,optionalParametersLoc:a}=t,o=!!n||!!s||!!a||!!i;if(!r)return o;n!=null&&this.raise(_.InvalidCoverInitializedName,{at:n}),s!=null&&this.raise(_.DuplicateProto,{at:s}),i!=null&&this.raise(_.UnexpectedPrivateField,{at:i}),a!=null&&this.unexpected(a)}isLiteralPropertyName(){return TP(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=t;let i=this.scope,a=this.getScopeHandler();this.scope=new a(this,t);let o=this.prodParam;this.prodParam=new sy;let l=this.classScope;this.classScope=new ry(this);let u=this.expressionScope;return this.expressionScope=new ny(this),()=>{this.state.labels=r,this.exportedIdentifiers=n,this.inModule=s,this.scope=i,this.prodParam=o,this.classScope=l,this.expressionScope=u}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t)}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}},Di=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},_i=class{constructor(t,r,n){this.type="",this.start=r,this.end=0,this.loc=new Ii(n),t!=null&&t.options.ranges&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},Ty=_i.prototype;Ty.__clone=function(){let e=new _i(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;r`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 ` async () => {}`, use `async () => {}`.",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 Ise(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function dP(e){return e.importKind==="type"||e.importKind==="typeof"}var Ose={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function _se(e,t){let r=[],n=[];for(let s=0;sclass extends e{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return Xm}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(r,n){r!==133&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,n)}addComment(r){if(this.flowPragma===void 0){let n=Nse.exec(r.value);if(n)if(n[1]==="flow")this.flowPragma="flow";else if(n[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let n=this.state.inType;this.state.inType=!0,this.expect(r||14);let s=this.flowParseType();return this.state.inType=n,s}flowParsePredicate(){let r=this.startNode(),n=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStart>n.index+1&&this.raise(Ie.UnexpectedSpaceBetweenModuloChecks,{at:n}),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let n=null,s=null;return this.match(54)?(this.state.inType=r,s=this.flowParsePredicate()):(n=this.flowParseType(),this.state.inType=r,this.match(54)&&(s=this.flowParsePredicate())),[n,s]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let n=r.id=this.parseIdentifier(),s=this.startNode(),i=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return s.params=a.params,s.rest=a.rest,s.this=a._this,this.expect(11),[s.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),n.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.resetEndLocation(n),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,n){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(n&&this.raise(Ie.NestedDeclareModule,{at:this.state.lastTokStartLoc}),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,n);this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(133)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let n=r.body=this.startNode(),s=n.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(Ie.InvalidNonTypeImportInDeclareModule,{at:this.state.lastTokStartLoc}),super.parseImport(o)):(this.expectContextual(125,Ie.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),s.push(o)}this.scope.exit(),this.expect(8),this.finishNode(n,"BlockStatement");let i=null,a=!1;return s.forEach(o=>{Ise(o)?(i==="CommonJS"&&this.raise(Ie.AmbiguousDeclareModuleKind,{at:o}),i="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(Ie.DuplicateDeclareModuleExports,{at:o}),i==="ES"&&this.raise(Ie.AmbiguousDeclareModuleKind,{at:o}),i="CommonJS",a=!0)}),r.kind=i||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,n){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!n){let s=this.state.value;throw this.raise(Ie.UnsupportedDeclareExportKind,{at:this.state.startLoc,unsupportedExportKind:s,suggestion:Ose[s]})}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");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"&&(r.type="ExportDeclaration",r.default=!1,delete r.exportKind),r.type="Declare"+r.type,r;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 n=this.flowParseTypeAlias(r);return n.type="DeclareTypeAlias",n}flowParseDeclareOpaqueType(r){this.next();let n=this.flowParseOpaqueType(r,!0);return n.type="DeclareOpaqueType",n}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,n){if(r.id=this.flowParseRestrictedIdentifier(!n,!0),this.scope.declareName(r.id.name,n?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!n&&this.eat(12));if(n){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:n,allowExact:!1,allowSpread:!1,allowProto:n,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(Ie.UnexpectedReservedUnderscore,{at:this.state.startLoc})}checkReservedType(r,n,s){Dse.has(r)&&this.raise(s?Ie.AssignReservedType:Ie.UnexpectedReservedType,{at:n,reservedType:r})}flowParseRestrictedIdentifier(r,n){return this.checkReservedType(this.state.value,this.state.startLoc,n),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,n){return 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():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,n||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){let n=this.state.startLoc,s=this.startNode(),i=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return s.name=a.name,s.variance=i,s.bound=a.typeAnnotation,this.match(29)?(this.eat(29),s.default=this.flowParseType()):r&&this.raise(Ie.MissingTypeParamDefault,{at:n}),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,n=this.startNode();n.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let s=!1;do{let i=this.flowParseTypeParameter(s);n.params.push(i),i.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(n,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let r=this.startNode(),n=this.state.inType;r.params=[],this.state.inType=!0,this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=s,this.expect(48),this.state.inType=n,this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let r=this.startNode(),n=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=n,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(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,n,s){return r.static=n,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=s,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,n){return r.static=n,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))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,n){let s=this.startNode();return r.static=n,r.value=this.flowParseObjectTypeMethodish(s),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:n,allowSpread:s,allowProto:i,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,c,f=!1;for(n&&this.match(6)?(this.expect(6),u=9,c=!0):(this.expect(5),u=8,c=!1),l.exact=c;!this.match(u);){let m=!1,y=null,p=null,E=this.startNode();if(i&&this.isContextual(118)){let O=this.lookahead();O.type!==14&&O.type!==17&&(this.next(),y=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let O=this.lookahead();O.type!==14&&O.type!==17&&(this.next(),m=!0)}let T=this.flowParseVariance();if(this.eat(0))y!=null&&this.unexpected(y),this.eat(0)?(T&&this.unexpected(T.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(E,m))):l.indexers.push(this.flowParseObjectTypeIndexer(E,m,T));else if(this.match(10)||this.match(47))y!=null&&this.unexpected(y),T&&this.unexpected(T.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(E,m));else{let O="init";if(this.isContextual(99)||this.isContextual(104)){let v=this.lookahead();TP(v.type)&&(O=this.state.value,this.next())}let C=this.flowParseObjectTypeProperty(E,m,y,T,O,s,a!=null?a:!c);C===null?(f=!0,p=this.state.lastTokStartLoc):l.properties.push(C)}this.flowObjectTypeSemicolon(),p&&!this.match(8)&&!this.match(9)&&this.raise(Ie.UnexpectedExplicitInexactInObject,{at:p})}this.expect(u),s&&(l.inexact=f);let d=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,d}flowParseObjectTypeProperty(r,n,s,i,a,o,l){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?l||this.raise(Ie.InexactInsideExact,{at:this.state.lastTokStartLoc}):this.raise(Ie.InexactInsideNonObject,{at:this.state.lastTokStartLoc}),i&&this.raise(Ie.InexactVariance,{at:i}),null):(o||this.raise(Ie.UnexpectedSpreadType,{at:this.state.lastTokStartLoc}),s!=null&&this.unexpected(s),i&&this.raise(Ie.SpreadVariance,{at:i}),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=n,r.proto=s!=null,r.kind=a;let u=!1;return this.match(47)||this.match(10)?(r.method=!0,s!=null&&this.unexpected(s),i&&this.unexpected(i.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(Ie.ThisParamBannedInConstructor,{at:r.value.this})):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(u=!0),r.value=this.flowParseTypeInitialiser(),r.variance=i),r.optional=u,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let n=r.kind==="get"?0:1,s=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?Ie.GetterMayNotHaveThisParam:Ie.SetterMayNotHaveThisParam,{at:r.value.this}),s!==n&&this.raise(r.kind==="get"?_.BadGetterArity:_.BadSetterArity,{at:r}),r.kind==="set"&&r.value.rest&&this.raise(_.BadSetterRestParameter,{at:r})}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,n){var s;(s=r)!=null||(r=this.state.startLoc);let i=n||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let a=this.startNodeAt(r);a.qualification=i,a.id=this.flowParseRestrictedIdentifier(!0),i=this.finishNode(a,"QualifiedTypeIdentifier")}return i}flowParseGenericType(r,n){let s=this.startNodeAt(r);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(r,n),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.possuper.parseFunctionBody(r,!0,s));return}super.parseFunctionBody(r,!1,s)}parseFunctionBodyAndFinish(r,n,s=!1){if(this.match(14)){let i=this.startNode();[i.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=i.typeAnnotation?this.finishNode(i,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,n,s)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if(Wr(s.type)){let i=this.startNode();return this.next(),this.flowParseInterface(i)}}else if(this.shouldParseEnums()&&this.isContextual(126)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}let n=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(n)&&(this.flowPragma=null),n}parseExpressionStatement(r,n,s){if(n.type==="Identifier"){if(n.name==="declare"){if(this.match(80)||ot(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(ot(this.state.type)){if(n.name==="interface")return this.flowParseInterface(r);if(n.name==="type")return this.flowParseTypeAlias(r);if(n.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,n,s)}shouldParseExportDeclaration(){let{type:r}=this.state;return uP(r)||this.shouldParseEnums()&&r===126?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return uP(r)||this.shouldParseEnums()&&r===126?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,n,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let d=this.lookaheadCharCode();if(d===44||d===61||d===58||d===41)return this.setOptionalParametersError(s),r}this.expect(17);let i=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(n),{consequent:l,failed:u}=this.tryParseConditionalConsequent(),[c,f]=this.getArrowLikeExpressions(l);if(u||f.length>0){let d=[...a];if(f.length>0){this.state=i,this.state.noArrowAt=d;for(let m=0;m1&&this.raise(Ie.AmbiguousConditionalArrow,{at:i.startLoc}),u&&c.length===1&&(this.state=i,d.push(c[0].start),this.state.noArrowAt=d,{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(),n=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:n}}getArrowLikeExpressions(r,n){let s=[r],i=[];for(;s.length!==0;){let a=s.pop();a.type==="ArrowFunctionExpression"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):i.push(a),s.push(a.body)):a.type==="ConditionalExpression"&&(s.push(a.consequent),s.push(a.alternate))}return n?(i.forEach(a=>this.finishArrowValidation(a)),[i,[]]):_se(i,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var n;this.toAssignableList(r.params,(n=r.extra)==null?void 0:n.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,n){let s;return this.state.noArrowParamsConversionAt.indexOf(r.start)!==-1?(this.state.noArrowParamsConversionAt.push(this.state.start),s=n(),this.state.noArrowParamsConversionAt.pop()):s=n(),s}parseParenItem(r,n){if(r=super.parseParenItem(r,n),this.eat(17)&&(r.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(n);return s.expression=r,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return r}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let n=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(n)}else if(this.isContextual(131)){r.exportKind="type";let n=this.startNode();return this.next(),this.flowParseOpaqueType(n,!1)}else if(this.isContextual(129)){r.exportKind="type";let n=this.startNode();return this.next(),this.flowParseInterface(n)}else if(this.shouldParseEnums()&&this.isContextual(126)){r.exportKind="value";let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:n}=this.state,s=super.maybeParseExportNamespaceSpecifier(r);return s&&r.exportKind==="type"&&this.unexpected(n),s}parseClassId(r,n,s){super.parseClassId(r,n,s),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,n,s){let{startLoc:i}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,n))return;n.declare=!0}super.parseClassMember(r,n,s),n.declare&&(n.type!=="ClassProperty"&&n.type!=="ClassPrivateProperty"&&n.type!=="PropertyDefinition"?this.raise(Ie.DeclareClassElement,{at:i}):n.value&&this.raise(Ie.DeclareClassFieldInitializer,{at:n.value}))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),n="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(_.InvalidIdentifier,{at:this.state.curPosition(),identifierName:n}),this.finishToken(132,n)}getTokenFromCode(r){let n=this.input.charCodeAt(this.state.pos+1);r===123&&n===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?n===46?this.finishOp(18,2):this.finishOp(17,1):pse(r,n,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,n){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,n):super.isAssignable(r,n)}toAssignable(r,n=!1){!n&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,n)}toAssignableList(r,n,s){for(let i=0;i1||!n)&&this.raise(Ie.TypeCastInPattern,{at:a.typeAnnotation})}return r}parseArrayLike(r,n,s,i){let a=super.parseArrayLike(r,n,s,i);return n&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}isValidLVal(r,n,s){return r==="TypeCastExpression"||super.isValidLVal(r,n,s)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),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,n,s,i,a,o){if(n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,n,s,i,a,o),n.params&&a){let l=n.params;l.length>0&&this.isThisParam(l[0])&&this.raise(Ie.ThisParamBannedInConstructor,{at:n})}else if(n.type==="MethodDefinition"&&a&&n.value.params){let l=n.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(Ie.ThisParamBannedInConstructor,{at:n})}}pushClassPrivateMethod(r,n,s,i){n.variance&&this.unexpected(n.variance.loc.start),delete n.variance,this.match(47)&&(n.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,n,s,i)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&this.match(47)&&(r.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();let n=r.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,n.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let n=this.getObjectOrClassMethodParams(r);if(n.length>0){let s=n[0];this.isThisParam(s)&&r.kind==="get"?this.raise(Ie.GetterMayNotHaveThisParam,{at:s}):this.isThisParam(s)&&this.raise(Ie.SetterMayNotHaveThisParam,{at:s})}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,n,s,i,a,o,l){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let u;this.match(47)&&!o&&(u=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(r,n,s,i,a,o,l);return u&&((c.value||c).typeParameters=u),c}parseAssignableListItemTypes(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(Ie.PatternIsOptional,{at:r}),this.isThisParam(r)&&this.raise(Ie.ThisParamMayNotBeOptional,{at:r}),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(Ie.ThisParamAnnotationRequired,{at:r}),this.match(29)&&this.isThisParam(r)&&this.raise(Ie.ThisParamNoDefault,{at:r}),this.resetEndLocation(r),r}parseMaybeDefault(r,n){let s=super.parseMaybeDefault(r,n);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.startsuper.parseMaybeAssign(r,n),i),!a.error)return a.node;let{context:u}=this.state,c=u[u.length-1];(c===mt.j_oTag||c===mt.j_expr)&&u.pop()}if((s=a)!=null&&s.error||this.match(47)){var o,l;i=i||this.state.clone();let u,c=this.tryParse(d=>{var m;u=this.flowParseTypeParameterDeclaration();let y=this.forwardNoArrowParamsConversionAt(u,()=>{let E=super.parseMaybeAssign(r,n);return this.resetStartLocationFromNode(E,u),E});(m=y.extra)!=null&&m.parenthesized&&d();let p=this.maybeUnwrapTypeCastExpression(y);return p.type!=="ArrowFunctionExpression"&&d(),p.typeParameters=u,this.resetStartLocationFromNode(p,u),y},i),f=null;if(c.node&&this.maybeUnwrapTypeCastExpression(c.node).type==="ArrowFunctionExpression"){if(!c.error&&!c.aborted)return c.node.async&&this.raise(Ie.UnexpectedTypeParameterBeforeAsyncArrowFunction,{at:u}),c.node;f=c.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(f)return this.state=c.failState,f;throw(l=a)!=null&&l.thrown?a.error:c.thrown?c.error:this.raise(Ie.UnexpectedTokenAfterTypeParameter,{at:u})}return super.parseMaybeAssign(r,n)}parseArrow(r){if(this.match(14)){let n=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let i=this.startNode();return[i.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),i});if(n.thrown)return null;n.error&&(this.state=n.failState),r.returnType=n.node.typeAnnotation?this.finishNode(n.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,n){this.state.noArrowParamsConversionAt.indexOf(r.start)!==-1?r.params=n:super.setArrowFunctionParameters(r,n)}checkParams(r,n,s,i=!0){if(!(s&&this.state.noArrowParamsConversionAt.indexOf(r.start)!==-1)){for(let a=0;a0&&this.raise(Ie.ThisParamMustBeFirst,{at:r.params[a]});super.checkParams(r,n,s,i)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&this.state.noArrowAt.indexOf(this.state.start)===-1)}parseSubscripts(r,n,s){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.indexOf(n.index)!==-1){this.next();let i=this.startNodeAt(n);i.callee=r,i.arguments=super.parseCallExpressionArguments(11,!1),r=this.finishNode(i,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let i=this.state.clone(),a=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(n)||l(),i);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,n,s),i);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,n,s)}parseSubscript(r,n,s,i){if(this.match(18)&&this.isLookaheadToken_lt()){if(i.optionalChainMember=!0,s)return i.stop=!0,r;this.next();let a=this.startNodeAt(n);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),a.arguments=this.parseCallExpressionArguments(11,!1),a.optional=!0,this.finishCallExpression(a,!0)}else if(!s&&this.shouldParseTypes()&&this.match(47)){let a=this.startNodeAt(n);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(11,!1),i.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,i.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,n,s,i)}parseNewCallee(r){super.parseNewCallee(r);let n=null;this.shouldParseTypes()&&this.match(47)&&(n=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=n}parseAsyncArrowWithTypeParameters(r){let n=this.startNodeAt(r);if(this.parseFunctionParams(n,!1),!!this.parseArrow(n))return super.parseArrowExpression(n,void 0,!0)}readToken_mult_modulo(r){let n=this.input.charCodeAt(this.state.pos+1);if(r===42&&n===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 n=this.input.charCodeAt(this.state.pos+1);if(r===124&&n===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,n){let s=super.parseTopLevel(r,n);return this.state.hasFlowComment&&this.raise(Ie.UnterminatedFlowComment,{at:this.state.curPosition()}),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Ie.NestedFlowComment,{at:this.state.startLoc});this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,n=2;for(;[32,9].includes(this.input.charCodeAt(r+n));)n++;let s=this.input.charCodeAt(n+r),i=this.input.charCodeAt(n+r+1);return s===58&&i===58?n+2:this.input.slice(n+r,n+r+12)==="flow-include"?n+12:s===58&&i!==58?n:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(_.UnterminatedComment,{at:this.state.curPosition()})}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:n,memberName:s}){this.raise(Ie.EnumBooleanMemberNotInitialized,{at:r,memberName:s,enumName:n})}flowEnumErrorInvalidMemberInitializer(r,n){return this.raise(n.explicitType?n.explicitType==="symbol"?Ie.EnumInvalidMemberInitializerSymbolType:Ie.EnumInvalidMemberInitializerPrimaryType:Ie.EnumInvalidMemberInitializerUnknownType,Object.assign({at:r},n))}flowEnumErrorNumberMemberNotInitialized(r,{enumName:n,memberName:s}){this.raise(Ie.EnumNumberMemberNotInitialized,{at:r,enumName:n,memberName:s})}flowEnumErrorStringMemberInconsistentlyInitialized(r,{enumName:n}){this.raise(Ie.EnumStringMemberInconsistentlyInitialized,{at:r,enumName:n})}flowEnumMemberInit(){let r=this.state.startLoc,n=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{let s=this.parseNumericLiteral(this.state.value);return n()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 133:{let s=this.parseStringLiteral(this.state.value);return n()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return n()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,n=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:n,init:s}}flowEnumCheckExplicitTypeMismatch(r,n,s){let{explicitType:i}=n;i!==null&&i!==s&&this.flowEnumErrorInvalidMemberInitializer(r,n)}flowEnumMembers({enumName:r,explicitType:n}){let s=new Set,i={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:l,init:u}=this.flowEnumMemberRaw(),c=l.name;if(c==="")continue;/^[a-z]/.test(c)&&this.raise(Ie.EnumInvalidMemberName,{at:l,memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:r}),s.has(c)&&this.raise(Ie.EnumDuplicateMemberName,{at:l,memberName:c,enumName:r}),s.add(c);let f={enumName:r,explicitType:n,memberName:c};switch(o.id=l,u.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(u.loc,f,"boolean"),o.init=u.value,i.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(u.loc,f,"number"),o.init=u.value,i.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(u.loc,f,"string"),o.init=u.value,i.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,f);case"none":switch(n){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,f);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,f);break;default:i.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:i,hasUnknownMembers:a}}flowEnumStringMembers(r,n,{enumName:s}){if(r.length===0)return n;if(n.length===0)return r;if(n.length>r.length){for(let i of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(i,{enumName:s});return n}else{for(let i of n)this.flowEnumErrorStringMemberInconsistentlyInitialized(i,{enumName:s});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!ot(this.state.type))throw this.raise(Ie.EnumInvalidExplicitTypeUnknownSupplied,{at:this.state.startLoc,enumName:r});let{value:n}=this.state;return this.next(),n!=="boolean"&&n!=="number"&&n!=="string"&&n!=="symbol"&&this.raise(Ie.EnumInvalidExplicitType,{at:this.state.startLoc,enumName:r,invalidEnumType:n}),n}flowEnumBody(r,n){let s=n.name,i=n.loc.start,a=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:s,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:s}),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 c=o.booleanMembers.length,f=o.numberMembers.length,d=o.stringMembers.length,m=o.defaultedMembers.length;if(!c&&!f&&!d&&!m)return u();if(!c&&!f)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!f&&!d&&c>=m){for(let y of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(y.loc.start,{enumName:s,memberName:y.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!c&&!d&&f>=m){for(let y of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(y.loc.start,{enumName:s,memberName:y.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(Ie.EnumInconsistentMemberValues,{at:i,enumName:s}),u()}}}flowParseEnumDeclaration(r){let n=this.parseIdentifier();return r.id=n,r.body=this.flowEnumBody(this.startNode(),n),this.finishNode(r,"EnumDeclaration")}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let n=this.input.charCodeAt(r+1);return n!==60&&n!==61}return!1}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},Bse={__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=Sn`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 rs(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function Ci(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return Ci(e.object)+"."+Ci(e.property);throw new Error("Node had unexpected type: "+e.type)}var Fse=e=>class extends e{jsxReadToken(){let r="",n=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Fs.UnterminatedJsxContent,{at:this.state.startLoc});let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(s);return}r+=this.input.slice(n,this.state.pos),this.finishToken(141,r);return;case 38:r+=this.input.slice(n,this.state.pos),r+=this.jsxReadEntity(),n=this.state.pos;break;case 62:case 125:default:Za(s)?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadNewLine(!0),n=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let n=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,n===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=r?` `:`\r `):s=String.fromCharCode(n),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(r){let n="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(_.UnterminatedString,{at:this.state.startLoc});let i=this.input.charCodeAt(this.state.pos);if(i===r)break;i===38?(n+=this.input.slice(s,this.state.pos),n+=this.jsxReadEntity(),s=this.state.pos):Za(i)?(n+=this.input.slice(s,this.state.pos),n+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}n+=this.input.slice(s,this.state.pos++),this.finishToken(133,n)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let n=10;this.codePointAtPos(this.state.pos)===120&&(n=16,++this.state.pos);let s=this.readInt(n,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let n=0,s=!1;for(;n++<10&&this.state.pos1){for(let s=0;s=0;s--){let i=this.scopeStack[s];if(i.types.has(r)||i.exportOnlyBindings.has(r))return}super.checkLocalExport(t)}},jse=(e,t)=>Object.hasOwnProperty.call(e,t)&&e[t],kP=e=>e.type==="ParenthesizedExpression"?kP(e.expression):e,uy=class extends ay{toAssignable(t,r=!1){var n,s;let i;switch((t.type==="ParenthesizedExpression"||(n=t.extra)!=null&&n.parenthesized)&&(i=kP(t),r?i.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(_.InvalidParenthesizedAssignment,{at:t}):i.type!=="MemberExpression"&&!this.isOptionalMemberExpression(i)&&this.raise(_.InvalidParenthesizedAssignment,{at:t}):this.raise(_.InvalidParenthesizedAssignment,{at:t})),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let o=0,l=t.properties.length,u=l-1;os.type!=="ObjectMethod"&&(i===n||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(n=>n===null||this.isAssignable(n));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(let n of t)(n==null?void 0:n.type)==="ArrayExpression"&&this.toReferencedListDeep(n.elements)}parseSpread(t){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,r,n){let s=n&1,i=[],a=!0;for(;!this.eat(t);)if(a?a=!1:this.expect(12),s&&this.match(12))i.push(null);else{if(this.eat(t))break;if(this.match(21)){if(i.push(this.parseAssignableListItemTypes(this.parseRestBinding(),n)),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{let o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(_.UnsupportedParameterDecorator,{at:this.state.startLoc});this.match(26);)o.push(this.parseDecorator());i.push(this.parseAssignableListItem(n,o))}}return i}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let t=this.startNode(),{type:r,startLoc:n}=this.state;return r===21?this.parseBindingRestProperty(t):(r===138?(this.expectPlugin("destructuringPrivate",n),this.classScope.usePrivateName(this.state.value,n),t.key=this.parsePrivateName()):this.parsePropertyName(t),t.method=!1,this.parseObjPropValue(t,n,!1,!1,!0,!1))}parseAssignableListItem(t,r){let n=this.parseMaybeDefault();this.parseAssignableListItemTypes(n,t);let s=this.parseMaybeDefault(n.loc.start,n);return r.length&&(n.decorators=r),s}parseAssignableListItemTypes(t,r){return t}parseMaybeDefault(t,r){var n,s;if((n=t)!=null||(t=this.state.startLoc),r=(s=r)!=null?s:this.parseBindingAtom(),!this.eat(29))return r;let i=this.startNodeAt(t);return i.left=r,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(t,r,n){return jse({AssignmentPattern:"left",RestElement:"argument",ObjectProperty:"value",ParenthesizedExpression:"expression",ArrayPattern:"elements",ObjectPattern:"properties"},t)}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,{in:r,binding:n=64,checkClashes:s=!1,strictModeChanged:i=!1,hasParenthesizedAncestor:a=!1}){var o;let l=t.type;if(this.isObjectMethod(t))return;let u=this.isOptionalMemberExpression(t);if(u||l==="MemberExpression"){u&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(_.InvalidLhsOptionalChaining,{at:t,ancestor:r})),n!==64&&this.raise(_.InvalidPropertyBindingPattern,{at:t});return}if(l==="Identifier"){this.checkIdentifier(t,n,i);let{name:y}=t;s&&(s.has(y)?this.raise(_.ParamDupe,{at:t}):s.add(y));return}let c=this.isValidLVal(l,!(a||(o=t.extra)!=null&&o.parenthesized)&&r.type==="AssignmentExpression",n);if(c===!0)return;if(c===!1){let y=n===64?_.InvalidLhs:_.InvalidLhsBinding;this.raise(y,{at:t,ancestor:r});return}let[f,d]=Array.isArray(c)?c:[c,l==="ParenthesizedExpression"],m=l==="ArrayPattern"||l==="ObjectPattern"?{type:l}:r;for(let y of[].concat(t[f]))y&&this.checkLVal(y,{in:m,binding:n,checkClashes:s,strictModeChanged:i,hasParenthesizedAncestor:d})}checkIdentifier(t,r,n=!1){this.state.strict&&(n?wP(t.name,this.inModule):CP(t.name))&&(r===64?this.raise(_.StrictEvalArguments,{at:t,referenceName:t.name}):this.raise(_.StrictEvalArgumentsBinding,{at:t,bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(_.LetInLexicalBinding,{at:t}),r&64||this.declareNameFromIdentifier(t,r)}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start)}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(_.InvalidRestAssignmentPattern,{at:t})}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?_.RestTrailingComma:_.ElementAfterRest,{at:this.state.startLoc}),!0):!1}},Lse=(e,t)=>Object.hasOwnProperty.call(e,t)&&e[t];function Mse(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function hP(e){if(!e)throw new Error("Assert fail")}var Ee=Sn`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.`,AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"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.",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.",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.`,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.",NonClassMethodPropertyHasAbstractModifer:"'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 `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"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}.`});function Rse(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 mP(e){return e==="private"||e==="public"||e==="protected"}function qse(e){return e==="in"||e==="out"}var Use=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:Ee.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:Ee.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:Ee.InvalidModifierOnTypeParameter})}getScopeHandler(){return ly}tsIsIdentifier(){return ot(this.state.type)}tsTokenCanFollowModifier(){return(this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()}tsNextTokenCanFollowModifier(){return this.next(),this.tsTokenCanFollowModifier()}tsParseModifier(r,n){if(!ot(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let s=this.state.value;if(r.indexOf(s)!==-1){if(n&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:n,stopOnStartOfClassStaticBlock:s,errorTemplate:i=Ee.InvalidModifierOnTypeMember},a){let o=(u,c,f,d)=>{c===f&&a[d]&&this.raise(Ee.InvalidModifiersOrder,{at:u,orderedModifiers:[f,d]})},l=(u,c,f,d)=>{(a[f]&&c===d||a[d]&&c===f)&&this.raise(Ee.IncompatibleModifiers,{at:u,modifiers:[f,d]})};for(;;){let{startLoc:u}=this.state,c=this.tsParseModifier(r.concat(n!=null?n:[]),s);if(!c)break;mP(c)?a.accessibility?this.raise(Ee.DuplicateAccessibilityModifier,{at:u,modifier:c}):(o(u,c,c,"override"),o(u,c,c,"static"),o(u,c,c,"readonly"),a.accessibility=c):qse(c)?(a[c]&&this.raise(Ee.DuplicateModifier,{at:u,modifier:c}),a[c]=!0,o(u,c,"in","out")):(Object.hasOwnProperty.call(a,c)?this.raise(Ee.DuplicateModifier,{at:u,modifier:c}):(o(u,c,"static","readonly"),o(u,c,"static","override"),o(u,c,"override","readonly"),o(u,c,"abstract","override"),l(u,c,"declare","override"),l(u,c,"static","abstract")),a[c]=!0),n!=null&&n.includes(c)&&this.raise(i,{at:u,modifier:c})}}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,n){let s=[];for(;!this.tsIsListTerminator(r);)s.push(n());return s}tsParseDelimitedList(r,n,s){return Mse(this.tsParseDelimitedListWorker(r,n,!0,s))}tsParseDelimitedListWorker(r,n,s,i){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let l=n();if(l==null)return;if(a.push(l),this.eat(12)){o=this.state.lastTokStart;continue}if(this.tsIsListTerminator(r))break;s&&this.expect(12);return}return i&&(i.value=o),a}tsParseBracketedList(r,n,s,i,a){i||(s?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,n,a);return s?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(Ee.UnsupportedImportTypeArgument,{at:this.state.startLoc}),r.argument=super.parseExprAtom(),this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName()),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseEntityName(r=!0){let n=this.parseIdentifier(r);for(;this.eat(16);){let s=this.startNodeAtNode(n);s.left=n,s.right=this.parseIdentifier(r),n=this.finishNode(s,"TSQualifiedName")}return n}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let n=this.startNodeAtNode(r);return n.parameterName=r,n.typeAnnotation=this.tsParseTypeAnnotation(!1),n.asserts=!1,this.finishNode(n,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let n=this.startNode();return r(n),n.name=this.tsParseTypeParameterName(),n.constraint=this.tsEatThenParseType(81),n.default=this.tsEatThenParseType(29),this.finishNode(n,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let n=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();let s={value:-1};return n.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,s),n.params.length===0&&this.raise(Ee.EmptyTypeParameters,{at:n}),s.value!==-1&&this.addExtra(n,"trailingComma",s.value),this.finishNode(n,"TSTypeParameterDeclaration")}tsFillSignature(r,n){let s=r===19,i="parameters",a="typeAnnotation";n.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),n[i]=this.tsParseBindingListForSignature(),s?n[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(n[a]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let n of r){let{type:s}=n;(s==="AssignmentPattern"||s==="TSParameterProperty")&&this.raise(Ee.UnsupportedSignatureParameterKind,{at:n,type:s})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,n){return this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon(),this.finishNode(n,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),ot(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let n=this.parseIdentifier();n.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(n),this.expect(3),r.parameters=[n];let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,n){this.eat(17)&&(r.optional=!0);let s=r;if(this.match(10)||this.match(47)){n&&this.raise(Ee.ReadonlyForMethodSignature,{at:r});let i=s;i.kind&&this.match(47)&&this.raise(Ee.AccesorCannotHaveTypeParameters,{at:this.state.curPosition()}),this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon();let a="parameters",o="typeAnnotation";if(i.kind==="get")i[a].length>0&&(this.raise(_.BadGetterArity,{at:this.state.curPosition()}),this.isThisParam(i[a][0])&&this.raise(Ee.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}));else if(i.kind==="set"){if(i[a].length!==1)this.raise(_.BadSetterArity,{at:this.state.curPosition()});else{let l=i[a][0];this.isThisParam(l)&&this.raise(Ee.AccesorCannotDeclareThisParameter,{at:this.state.curPosition()}),l.type==="Identifier"&&l.optional&&this.raise(Ee.SetAccesorCannotHaveOptionalParameter,{at:this.state.curPosition()}),l.type==="RestElement"&&this.raise(Ee.SetAccesorCannotHaveRestParameter,{at:this.state.curPosition()})}i[o]&&this.raise(Ee.SetAccesorCannotHaveReturnType,{at:i[o]})}else i.kind="method";return this.finishNode(i,"TSMethodSignature")}else{let i=s;n&&(i.readonly=!0);let a=this.tsTryParseTypeAnnotation();return a&&(i.typeAnnotation=a),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 s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let n=this.tsTryParseIndexSignature(r);return n||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r)),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(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedTypeParameter(){let r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(58),this.finishNode(r,"TSTypeParameter")}tsParseMappedType(){let r=this.startNode();return this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0),r.typeParameter=this.tsParseMappedTypeParameter(),r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),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 n=!1;return r.elementTypes.forEach(s=>{let{type:i}=s;n&&i!=="TSRestType"&&i!=="TSOptionalType"&&!(i==="TSNamedTupleMember"&&s.optional)&&this.raise(Ee.OptionalTypeBeforeRequired,{at:s}),n||(n=i==="TSNamedTupleMember"&&s.optional||i==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let{startLoc:r}=this.state,n=this.eat(21),s,i,a,o,u=Wr(this.state.type)?this.lookaheadCharCode():null;if(u===58)s=!0,a=!1,i=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(u===63){a=!0;let c=this.state.startLoc,f=this.state.value,d=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(s=!0,i=this.createIdentifier(this.startNodeAt(c),f),this.expect(17),this.expect(14),o=this.tsParseType()):(s=!1,o=d,this.expect(17))}else o=this.tsParseType(),a=this.eat(17),s=this.eat(14);if(s){let c;i?(c=this.startNodeAtNode(i),c.optional=a,c.label=i,c.elementType=o,this.eat(17)&&(c.optional=!0,this.raise(Ee.TupleOptionalAfterType,{at:this.state.lastTokStartLoc}))):(c=this.startNodeAtNode(o),c.optional=a,this.raise(Ee.InvalidTupleMemberLabel,{at:o}),c.label=o,c.elementType=this.tsParseType()),o=this.finishNode(c,"TSNamedTupleMember")}else if(a){let c=this.startNodeAtNode(o);c.typeAnnotation=o,o=this.finishNode(c,"TSOptionalType")}if(n){let c=this.startNodeAt(r);c.typeAnnotation=o,o=this.finishNode(c,"TSRestType")}return o}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,n){let s=this.startNode();return r==="TSConstructorType"&&(s.abstract=!!n,n&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 134:case 135:case 133: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(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),n=this.lookahead();return n.type!==134&&n.type!==135&&this.unexpected(),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(ot(r)||r===88||r===84){let n=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":Rse(this.state.value);if(n!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,n)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let n=this.startNodeAtNode(r);n.elementType=r,this.expect(3),r=this.finishNode(n,"TSArrayType")}else{let n=this.startNodeAtNode(r);n.objectType=r,n.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(n,"TSIndexedAccessType")}return r}tsParseTypeOperator(){let r=this.startNode(),n=this.state.value;return this.next(),r.operator=n,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),n==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(Ee.UnexpectedReadonly,{at:r})}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let n=this.startNode();return n.name=this.tsParseTypeParameterName(),n.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(n,"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 rse(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,n,s){let i=this.startNode(),a=this.eat(s),o=[];do o.push(n());while(this.eat(s));return o.length===1&&!a?o[0]:(i.types=o,this.finishNode(i,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(ot(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,n=r.length;try{return this.parseObjectLike(8,!0),r.length===n}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,n=r.length;try{return super.parseBindingList(3,93,1),r.length===n}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let n=this.startNode();this.expect(r);let s=this.startNode(),i=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(i&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();return l.type==="TSThisType"?(s.parameterName=l,s.asserts=!0,s.typeAnnotation=null,l=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(l,s),l.asserts=!0),n.typeAnnotation=l,this.finishNode(n,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return i?(s.parameterName=this.parseIdentifier(),s.asserts=i,s.typeAnnotation=null,n.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(n,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,n);let o=this.tsParseTypeAnnotation(!1);return s.parameterName=a,s.typeAnnotation=o,s.asserts=i,n.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(n,"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;return this.next(),!ot(this.state.type)&&!this.match(78)?!1:(r&&this.raise(_.InvalidEscapedReservedWord,{at:this.state.lastTokStartLoc,reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,n=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),n.typeAnnotation=this.tsParseType()}),this.finishNode(n,"TSTypeAnnotation")}tsParseType(){hP(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let n=this.startNodeAtNode(r);return n.checkType=r,n.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),n.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),n.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(n,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Ee.ReservedTypeAssertion,{at: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 n=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{let i=this.startNode();return i.expression=this.tsParseEntityName(),this.match(47)&&(i.typeParameters=this.tsParseTypeArguments()),this.finishNode(i,"TSExpressionWithTypeArguments")});return s.length||this.raise(Ee.EmptyHeritageClauseType,{at:n,token:r}),s}tsParseInterfaceDeclaration(r,n={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),n.declare&&(r.declare=!0),ot(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(Ee.MissingInterfaceName,{at:this.state.startLoc})),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(s,"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.lookahead().type!==16){let n=this.startNode();return this.next(),this.finishNode(n,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInNoContext(r){let n=this.state.context;this.state.context=[n[0]];try{return r()}finally{this.state.context=n}}tsInType(r){let n=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=n}}tsInDisallowConditionalTypesContext(r){let n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n}}tsInAllowConditionalTypesContext(r){let n=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=n}}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();return r.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,n={}){return n.const&&(r.const=!0),n.declare&&(r.declare=!0),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")}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,n=!1){if(r.id=this.parseIdentifier(),n||this.checkIdentifier(r.id,1024),this.eat(16)){let s=this.startNode();this.tsParseModuleOrNamespaceDeclaration(s,!0),r.body=s}else this.scope.enter(256),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.global=!0,r.id=this.parseIdentifier()):this.match(133)?r.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,n,s){r.isExport=s||!1,r.id=n||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let i=this.tsParseModuleReference();return r.importKind==="type"&&i.type!=="TSExternalModuleReference"&&this.raise(Ee.ImportAliasHasImportType,{at:i}),r.moduleReference=i,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let n=this.state.clone(),s=r();return this.state=n,s}tsTryParseAndCatch(r){let n=this.tryParse(s=>r()||s());if(!(n.aborted||!n.node))return n.error&&(this.state=n.failState),n.node}tsTryParse(r){let n=this.state.clone(),s=r();if(s!==void 0&&s!==!1)return s;this.state=n}tsTryParseDeclare(r){if(this.isLineTerminator())return;let n=this.state.type,s;return this.isContextual(100)&&(n=74,s="let"),this.tsInAmbientContext(()=>{switch(n){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 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,s||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 129:{let i=this.tsParseInterfaceDeclaration(r,{declare:!0});if(i)return i}default:if(ot(n))return this.tsParseDeclaration(r,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(r,n,s){switch(n.name){case"declare":{let i=this.tsTryParseDeclare(r);return i&&(i.declare=!0),i}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let i=r;return i.global=!0,i.id=n,i.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(i,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(r,n.name,!1,s)}}tsParseDeclaration(r,n,s,i){switch(n){case"abstract":if(this.tsCheckLineTerminator(s)&&(this.match(80)||ot(this.state.type)))return this.tsParseAbstractDeclaration(r,i);break;case"module":if(this.tsCheckLineTerminator(s)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(r);if(ot(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r)}break;case"namespace":if(this.tsCheckLineTerminator(s)&&ot(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r);break;case"type":if(this.tsCheckLineTerminator(s)&&ot(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let n=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let i=this.startNodeAt(r);return i.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(i),i.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),i});if(this.state.maybeInArrowParameters=n,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(Ee.EmptyTypeArguments,{at:r}):!this.state.inType&&this.curContext()===mt.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return nse(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(r,n){let s=this.state.startLoc,i={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},i);let a=i.accessibility,o=i.override,l=i.readonly;!(r&4)&&(a||l||o)&&this.raise(Ee.UnexpectedParameterModifier,{at:s});let u=this.parseMaybeDefault();this.parseAssignableListItemTypes(u,r);let c=this.parseMaybeDefault(u.loc.start,u);if(a||l||o){let f=this.startNodeAt(s);return n.length&&(f.decorators=n),a&&(f.accessibility=a),l&&(f.readonly=l),o&&(f.override=o),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(Ee.UnsupportedParameterPropertyKind,{at:f}),f.parameter=c,this.finishNode(f,"TSParameterProperty")}return n.length&&(u.decorators=n),c}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let n of r.params)n.type!=="Identifier"&&n.optional&&!this.state.isAmbientContext&&this.raise(Ee.PatternIsOptional,{at:n})}setArrowFunctionParameters(r,n,s){super.setArrowFunctionParameters(r,n,s),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,n,s=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let i=n==="FunctionDeclaration"?"TSDeclareFunction":n==="ClassMethod"||n==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return i&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,i):i==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(Ee.DeclareFunctionHasImplementation,{at:r}),r.declare)?super.parseFunctionBodyAndFinish(r,i,s):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,n,s))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(n=>{(n==null?void 0:n.type)==="TSTypeCastExpression"&&this.raise(Ee.UnexpectedTypeAnnotation,{at:n.typeAnnotation})})}toReferencedList(r,n){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,n,s,i){let a=super.parseArrayLike(r,n,s,i);return a.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(a.elements),a}parseSubscript(r,n,s,i){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(n);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return i.stop=!0,r;i.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(r)){let d=this.tsTryParseGenericAsyncArrowFunction(n);if(d)return d}let u=this.tsParseTypeArgumentsInExpression();if(!u)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(wu(this.state.type)){let d=super.parseTaggedTemplateExpression(r,n,i);return d.typeParameters=u,d}if(!s&&this.eat(10)){let d=this.startNodeAt(n);return d.callee=r,d.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(d.arguments),d.typeParameters=u,i.optionalChainMember&&(d.optional=a),this.finishCallExpression(d,i.optionalChainMember)}let c=this.state.type;if(c===48||c===52||c!==10&&Gm(c)&&!this.hasPrecedingLineBreak())return;let f=this.startNodeAt(n);return f.expression=r,f.typeParameters=u,this.finishNode(f,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(Ee.InvalidPropertyAccessAfterInstantiationExpression,{at:this.state.startLoc}),l}return super.parseSubscript(r,n,s,i)}parseNewCallee(r){var n;super.parseNewCallee(r);let{callee:s}=r;s.type==="TSInstantiationExpression"&&!((n=s.extra)!=null&&n.parenthesized)&&(r.typeParameters=s.typeParameters,r.callee=s.expression)}parseExprOp(r,n,s){let i;if(Su(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(i=this.isContextual(120)))){let a=this.startNodeAt(n);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(i&&this.raise(_.UnexpectedKeyword,{at:this.state.startLoc,keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,i?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,n,s)}return super.parseExprOp(r,n,s)}checkReservedWord(r,n,s,i){this.state.isAmbientContext||super.checkReservedWord(r,n,s,i)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(Ee.ImportReflectionHasImportType,{at:r.specifiers[0].loc.start})}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let n=this.lookaheadCharCode();return r?n===123||n===42:n!==61}return!r&&this.isContextual(87)}applyImportPhase(r,n,s,i){super.applyImportPhase(r,n,s,i),n?r.exportKind=s==="type"?"type":"value":r.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(r){if(this.match(133))return r.importKind="value",super.parseImport(r);let n;if(ot(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,s);n=super.parseImportSpecifiersAndAfter(r,s)}else n=super.parseImport(r);return n.importKind==="type"&&n.specifiers.length>1&&n.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(Ee.TypeImportCannotSpecifyDefaultAndNamed,{at:n}),n}parseExport(r,n){if(this.match(83)){this.next();let s=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?s=this.parseMaybeImportPhase(r,!1):r.importKind="value",this.tsParseImportEqualsDeclaration(r,s,!0)}else if(this.eat(29)){let s=r;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=r;return this.expectContextual(128),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(r,n)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}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,n,s=!1){let{isAmbientContext:i}=this.state,a=super.parseVarStatement(r,n,s||i);if(!i)return a;for(let{id:o,init:l}of a.declarations)l&&(n!=="const"||o.typeAnnotation?this.raise(Ee.InitializerNotAllowedInAmbientContext,{at:l}):$se(l,this.hasPlugin("estree"))||this.raise(Ee.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference,{at:l}));return a}parseStatementContent(r,n){if(this.match(75)&&this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s}return super.parseStatementContent(r,n)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,n){return n.some(s=>mP(s)?r.accessibility===s:!!r[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,n,s){let i=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:i,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:Ee.InvalidModifierOnTypeParameterPositions},n);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(n,i)&&this.raise(Ee.StaticBlockCannotHaveModifier,{at:this.state.curPosition()}),super.parseClassStaticBlock(r,n)):this.parseClassMemberWithIsStatic(r,n,s,!!n.static)};n.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(r,n,s,i){let a=this.tsTryParseIndexSignature(n);if(a){r.body.push(a),n.abstract&&this.raise(Ee.IndexSignatureHasAbstract,{at:n}),n.accessibility&&this.raise(Ee.IndexSignatureHasAccessibility,{at:n,modifier:n.accessibility}),n.declare&&this.raise(Ee.IndexSignatureHasDeclare,{at:n}),n.override&&this.raise(Ee.IndexSignatureHasOverride,{at:n});return}!this.state.inAbstractClass&&n.abstract&&this.raise(Ee.NonAbstractClassHasAbstractMethod,{at:n}),n.override&&(s.hadSuperClass||this.raise(Ee.OverrideNotInSubClass,{at:n})),super.parseClassMemberWithIsStatic(r,n,s,i)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(Ee.ClassMethodHasReadonly,{at:r}),r.declare&&this.match(10)&&this.raise(Ee.ClassMethodHasDeclare,{at:r})}parseExpressionStatement(r,n,s){return(n.type==="Identifier"?this.tsParseExpressionStatement(r,n,s):void 0)||super.parseExpressionStatement(r,n,s)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,n,s){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(r,n,s);let i=this.tryParse(()=>super.parseConditional(r,n));return i.node?(i.error&&(this.state=i.failState),i.node):(i.error&&super.setOptionalParametersError(s,i.error),r)}parseParenItem(r,n){if(r=super.parseParenItem(r,n),this.eat(17)&&(r.optional=!0,this.resetEndLocation(r)),this.match(14)){let s=this.startNodeAt(n);return s.expression=r,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let n=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(Ee.ExpectedAmbientAfterExportDeclare,{at:this.state.startLoc});let a=ot(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||s)&&(r.exportKind="type"),s&&(this.resetStartLocation(a,n),a.declare=!0),a):null}parseClassId(r,n,s,i){if((!n||s)&&this.isContextual(113))return;super.parseClassId(r,n,s,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let n=this.tsTryParseTypeAnnotation();n&&(r.typeAnnotation=n)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(Ee.DeclareClassFieldHasInitializer,{at:this.state.startLoc}),r.abstract&&this.match(29)){let{key:n}=r;this.raise(Ee.AbstractPropertyHasInitializer,{at:this.state.startLoc,propertyName:n.type==="Identifier"&&!r.computed?n.name:`[${this.input.slice(n.start,n.end)}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(Ee.PrivateElementHasAbstract,{at:r}),r.accessibility&&this.raise(Ee.PrivateElementHasAccessibility,{at:r,modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(Ee.AccessorCannotBeOptional,{at:r}),super.parseClassAccessorProperty(r)}pushClassMethod(r,n,s,i,a,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&a&&this.raise(Ee.ConstructorHasTypeParameters,{at:l});let{declare:u=!1,kind:c}=n;u&&(c==="get"||c==="set")&&this.raise(Ee.DeclareAccessor,{at:n,kind:c}),l&&(n.typeParameters=l),super.pushClassMethod(r,n,s,i,a,o)}pushClassPrivateMethod(r,n,s,i){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(n.typeParameters=a),super.pushClassPrivateMethod(r,n,s,i)}declareClassPrivateMethodInScope(r,n){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&!r.value.body||super.declareClassPrivateMethodInScope(r,n))}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,n,s,i,a,o,l){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);return u&&(r.typeParameters=u),super.parseObjPropValue(r,n,s,i,a,o,l)}parseFunctionParams(r,n){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(r.typeParameters=s),super.parseFunctionParams(r,n)}parseVarId(r,n){super.parseVarId(r,n),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let s=this.tsTryParseTypeAnnotation();s&&(r.id.typeAnnotation=s,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,n){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,n)}parseMaybeAssign(r,n){var s,i,a,o,l;let u,c,f;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(u=this.state.clone(),c=this.tryParse(()=>super.parseMaybeAssign(r,n),u),!c.error)return c.node;let{context:y}=this.state,p=y[y.length-1];(p===mt.j_oTag||p===mt.j_expr)&&y.pop()}if(!((s=c)!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(r,n);(!u||u===this.state)&&(u=this.state.clone());let d,m=this.tryParse(y=>{var p,E;d=this.tsParseTypeParameters(this.tsParseConstModifier);let T=super.parseMaybeAssign(r,n);return(T.type!=="ArrowFunctionExpression"||(p=T.extra)!=null&&p.parenthesized)&&y(),((E=d)==null?void 0:E.params.length)!==0&&this.resetStartLocationFromNode(T,d),T.typeParameters=d,T},u);if(!m.error&&!m.aborted)return d&&this.reportReservedArrowTypeParam(d),m.node;if(!c&&(hP(!this.hasPlugin("jsx")),f=this.tryParse(()=>super.parseMaybeAssign(r,n),u),!f.error))return f.node;if((i=c)!=null&&i.node)return this.state=c.failState,c.node;if(m.node)return this.state=m.failState,d&&this.reportReservedArrowTypeParam(d),m.node;if((a=f)!=null&&a.node)return this.state=f.failState,f.node;throw((o=c)==null?void 0:o.error)||m.error||((l=f)==null?void 0:l.error)}reportReservedArrowTypeParam(r){var n;r.params.length===1&&!r.params[0].constraint&&!((n=r.extra)!=null&&n.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(Ee.ReservedArrowTypeParam,{at:r})}parseMaybeUnary(r,n){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,n)}parseArrow(r){if(this.match(14)){let n=this.tryParse(s=>{let i=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),i});if(n.aborted)return;n.thrown||(n.error&&(this.state=n.failState),r.returnType=n.node)}return super.parseArrow(r)}parseAssignableListItemTypes(r,n){if(!(n&2))return r;this.eat(17)&&(r.optional=!0);let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.resetEndLocation(r),r}isAssignable(r,n){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,n);case"TSParameterProperty":return!0;default:return super.isAssignable(r,n)}}toAssignable(r,n=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,n);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":n?this.expressionScope.recordArrowParameterBindingError(Ee.UnexpectedTypeCastInParameter,{at:r}):this.raise(Ee.UnexpectedTypeCastInParameter,{at:r}),this.toAssignable(r.expression,n);break;case"AssignmentExpression":!n&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,n)}}toAssignableParenthesizedExpression(r,n){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,n);break;default:super.toAssignable(r,n)}}checkToRestConversion(r,n){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,n)}}isValidLVal(r,n,s){return Lse({TSTypeCastExpression:!0,TSParameterProperty:"parameter",TSNonNullExpression:"expression",TSAsExpression:(s!==64||!n)&&["expression",!0],TSSatisfiesExpression:(s!==64||!n)&&["expression",!0],TSTypeAssertion:(s!==64||!n)&&["expression",!0]},r)||super.isValidLVal(r,n,s)}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r){if(this.match(47)||this.match(51)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let s=super.parseMaybeDecoratorArguments(r);return s.typeParameters=n,s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,n){let s=super.parseMaybeDefault(r,n);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.startthis.isAssignable(n,!0)):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 n=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());n&&(r.typeParameters=n)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let n=super.getGetterSetterExpectedParamCount(r),i=this.getObjectOrClassMethodParams(r)[0];return i&&this.isThisParam(i)?n+1:n}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n,this.resetEndLocation(r)),r}tsInAmbientContext(r){let n=this.state.isAmbientContext;this.state.isAmbientContext=!0;try{return r()}finally{this.state.isAmbientContext=n}}parseClass(r,n,s){let i=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,n,s)}finally{this.state.inAbstractClass=i}}tsParseAbstractDeclaration(r,n){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(n,this.parseClass(r,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return r.abstract=!0,this.raise(Ee.NonClassMethodPropertyHasAbstractModifer,{at:r}),this.tsParseInterfaceDeclaration(r)}else this.unexpected(null,80)}parseMethod(r,n,s,i,a,o,l){let u=super.parseMethod(r,n,s,i,a,o,l);if(u.abstract&&(this.hasPlugin("estree")?!!u.value.body:!!u.body)){let{key:f}=u;this.raise(Ee.AbstractMethodHasImplementation,{at:u,methodName:f.type==="Identifier"&&!u.computed?f.name:`[${this.input.slice(f.start,f.end)}]`})}return u}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,n,s,i){return!n&&i?(this.parseTypeOnlyImportExportSpecifier(r,!1,s),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,n,s,i))}parseImportSpecifier(r,n,s,i,a){return!n&&i?(this.parseTypeOnlyImportExportSpecifier(r,!0,s),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,n,s,i,s?4098:4096))}parseTypeOnlyImportExportSpecifier(r,n,s){let i=n?"imported":"local",a=n?"local":"exported",o=r[i],l,u=!1,c=!0,f=o.loc.start;if(this.isContextual(93)){let m=this.parseIdentifier();if(this.isContextual(93)){let y=this.parseIdentifier();Wr(this.state.type)?(u=!0,o=m,l=n?this.parseIdentifier():this.parseModuleExportName(),c=!1):(l=y,c=!1)}else Wr(this.state.type)?(c=!1,l=n?this.parseIdentifier():this.parseModuleExportName()):(u=!0,o=m)}else Wr(this.state.type)&&(u=!0,n?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());u&&s&&this.raise(n?Ee.TypeModifierIsUsedInTypeImports:Ee.TypeModifierIsUsedInTypeExports,{at:f}),r[i]=o,r[a]=l;let d=n?"importKind":"exportKind";r[d]=u?"type":"value",c&&this.eatContextual(93)&&(r[a]=n?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=xn(r[i])),n&&this.checkIdentifier(r[a],u?4098:4096)}};function Vse(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:FP(e.object)}function $se(e,t){var r;let{type:n}=e;if((r=e.extra)!=null&&r.parenthesized)return!1;if(t){if(n==="Literal"){let{value:s}=e;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(n==="StringLiteral"||n==="BooleanLiteral")return!0;return!!(BP(e,t)||Wse(e,t)||n==="TemplateLiteral"&&e.expressions.length===0||Vse(e))}function BP(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function Wse(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:n}=e;if(r==="-"&&BP(n,t))return!0}return!1}function FP(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:FP(e.object)}var yP=Sn`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),Kse=e=>class extends e{parsePlaceholder(r){if(this.match(144)){let n=this.startNode();return this.next(),this.assertNoSpace(),n.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(n,r)}}finishPlaceholder(r,n){let s=!!(r.expectedNode&&r.type==="Placeholder");return r.expectedNode=n,s?r:this.finishNode(r,"Placeholder")}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(144,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,n,s,i){r!==void 0&&super.checkReservedWord(r,n,s,i)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,n,s){return r==="Placeholder"||super.isValidLVal(r,n,s)}toAssignable(r,n){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,n)}chStartsBindingIdentifier(r,n){return!!(super.chStartsBindingIdentifier(r,n)||this.lookahead().type===144)}verifyBreakContinue(r,n){r.label&&r.label.type==="Placeholder"||super.verifyBreakContinue(r,n)}parseExpressionStatement(r,n){var s;if(n.type!=="Placeholder"||(s=n.extra)!=null&&s.parenthesized)return super.parseExpressionStatement(r,n);if(this.match(14)){let i=r;return i.label=this.finishPlaceholder(n,"Identifier"),this.next(),i.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(i,"LabeledStatement")}return this.semicolon(),r.name=n.name,this.finishPlaceholder(r,"Statement")}parseBlock(r,n,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,n,s)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,n,s){let i=n?"ClassDeclaration":"ClassExpression";this.next();let a=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(144)||this.match(5))r.id=o;else{if(s||!n)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,i);throw this.raise(yP.ClassNameIsRequired,{at:this.state.startLoc})}else this.parseClassId(r,n,s);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,a),this.finishNode(r,i)}parseExport(r,n){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(r,n);if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(r,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let i=this.startNode();return i.exported=s,r.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(r,n)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(ss(144),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,n){var s;return(s=r.specifiers)!=null&&s.length?!0:super.maybeParseExportDefaultSpecifier(r,n)}checkExport(r){let{specifiers:n}=r;n!=null&&n.length&&(r.specifiers=n.filter(s=>s.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=n}parseImport(r){let n=this.parsePlaceholder("Identifier");if(!n)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(n,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let s=this.startNodeAtNode(n);return s.local=n,r.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(yP.UnexpectedSpace,{at:this.state.lastTokEndLoc})}},Gse=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,n=this.startNode();if(this.next(),ot(this.state.type)){let s=this.parseIdentifierName(),i=this.createIdentifier(n,s);if(i.type="V8IntrinsicIdentifier",this.match(10))return i}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}};function jt(e,t){let[r,n]=typeof t=="string"?[t,{}]:t,s=Object.keys(n),i=s.length===0;return e.some(a=>{if(typeof a=="string")return i&&a===r;{let[o,l]=a;if(o!==r)return!1;for(let u of s)if(l[u]!==n[u])return!1;return!0}})}function ns(e,t,r){let n=e.find(s=>Array.isArray(s)?s[0]===t:s===t);return n&&Array.isArray(n)&&n.length>1?n[1][r]:null}var gP=["minimal","fsharp","hack","smart"],bP=["^^","@@","^","%","#"],EP=["hash","bar"];function Hse(e){if(jt(e,"decorators")){if(jt(e,"decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=ns(e,"decorators","decoratorsBeforeExport");if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=ns(e,"decorators","allowCallParenthesized");if(r!=null&&typeof r!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(jt(e,"flow")&&jt(e,"typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(jt(e,"placeholders")&&jt(e,"v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(jt(e,"pipelineOperator")){let t=ns(e,"pipelineOperator","proposal");if(!gP.includes(t)){let n=gP.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${n}.`)}let r=jt(e,["recordAndTuple",{syntaxType:"hash"}]);if(t==="hack"){if(jt(e,"placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(jt(e,"v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let n=ns(e,"pipelineOperator","topicToken");if(!bP.includes(n)){let s=bP.map(i=>`"${i}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${s}.`)}if(n==="#"&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}else if(t==="smart"&&r)throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `["recordAndtuple", { syntaxType: "hash"}]`.')}if(jt(e,"moduleAttributes")){if(jt(e,"importAssertions")||jt(e,"importAttributes"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(ns(e,"moduleAttributes","version")!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(jt(e,"importAssertions")&&jt(e,"importAttributes"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(jt(e,"recordAndTuple")&&ns(e,"recordAndTuple","syntaxType")!=null&&!EP.includes(ns(e,"recordAndTuple","syntaxType")))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+EP.map(t=>`'${t}'`).join(", "));if(jt(e,"asyncDoExpressions")&&!jt(e,"doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(jt(e,"optionalChainingAssign")&&ns(e,"optionalChainingAssign","version")!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var jP={estree:Gne,jsx:Fse,flow:kse,typescript:Use,v8intrinsic:Gse,placeholders:Kse},Yse=Object.keys(jP),$m={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function Xse(e){if(e==null)return Object.assign({},$m);if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let t={};for(let n of Object.keys($m)){var r;t[n]=(r=e[n])!=null?r:$m[n]}return t}var cy=class extends uy{checkProto(t,r,n,s){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return;let i=t.key;if((i.type==="Identifier"?i.name:i.value)==="__proto__"){if(r){this.raise(_.RecordNoProto,{at:i});return}n.used&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=i.loc.start):this.raise(_.DuplicateProto,{at:i})),n.used=!0}}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&t.start===r}getExpression(){this.enterInitialScopes(),this.nextToken();let t=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.state.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){let r=this.state.startLoc,n=this.parseMaybeAssign(t);if(this.match(12)){let s=this.startNodeAt(r);for(s.expressions=[n];this.eat(12);)s.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t,r){var n;t.optionalParametersLoc=(n=r==null?void 0:r.loc)!=null?n:this.state.startLoc}parseMaybeAssign(t,r){let n=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let o=this.parseYield();return r&&(o=r.call(this,o,n)),o}let s;t?s=!1:(t=new Di,s=!0);let{type:i}=this.state;(i===10||ot(i))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(t);if(r&&(a=r.call(this,a,n)),zne(this.state.type)){let o=this.startNodeAt(n),l=this.state.value;if(o.operator=l,this.match(29)){this.toAssignable(a,!0),o.left=a;let u=n.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=u&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=u&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=u&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else o.left=a;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(a,{in:this.finishNode(o,"AssignmentExpression")}),o}else s&&this.checkExpressionErrors(t,!0);return a}parseMaybeConditional(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseExprOps(t);return this.shouldExitDescending(s,n)?s:this.parseConditional(s,r,t)}parseConditional(t,r,n){if(this.eat(17)){let s=this.startNodeAt(r);return s.test=t,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(s,n)?s:this.parseExprOp(s,r,-1)}parseExprOp(t,r,n){if(this.isPrivateName(t)){let i=this.getPrivateNameSV(t);(n>=Su(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(_.PrivateInExpectedIn,{at:t,identifierName:i}),this.classScope.usePrivateName(i,t.loc.start)}let s=this.state.type;if(Zne(s)&&(this.prodParam.hasIn||!this.match(58))){let i=Su(s);if(i>n){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r)}let a=this.startNodeAt(r);a.left=t,a.operator=this.state.value;let o=s===41||s===42,l=s===40;if(l&&(i=Su(42)),this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(_.UnexpectedAwaitAfterPipelineBody,{at:this.state.startLoc});a.right=this.parseExprOpRightExpr(s,i);let u=this.finishNode(a,o||l?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(l&&(c===41||c===42)||o&&c===40)throw this.raise(_.MixingCoalesceWithLogical,{at:this.state.startLoc});return this.parseExprOp(u,r,n)}}return t}parseExprOpRightExpr(t,r){let n=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(_.PipeBodyIsTighter,{at:this.state.startLoc});return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,r),n)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,sse(t)?r-1:r)}parseHackPipeBody(){var t;let{startLoc:r}=this.state,n=this.parseMaybeAssign();return qne.has(n.type)&&!((t=n.extra)!=null&&t.parenthesized)&&this.raise(_.PipeUnparenthesizedBody,{at:r,type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(_.PipeTopicUnused,{at:r}),n}checkExponentialAfterUnary(t){this.match(57)&&this.raise(_.UnexpectedTokenUnaryExponentiation,{at:t.argument})}parseMaybeUnary(t,r){let n=this.state.startLoc,s=this.isContextual(96);if(s&&this.isAwaitAllowed()){this.next();let l=this.parseAwait(n);return r||this.checkExponentialAfterUnary(l),l}let i=this.match(34),a=this.startNode();if(tse(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let l=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&l){let u=a.argument;u.type==="Identifier"?this.raise(_.StrictDelete,{at:a}):this.hasPropertyAsPrivateName(u)&&this.raise(_.DeletePrivateField,{at:a})}if(!i)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,i,t);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?Gm(l):Gm(l)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(_.AwaitNotInAsyncContext,{at:n}),this.parseAwait(n)}return o}parseUpdate(t,r,n){if(r){let a=t;return this.checkLVal(a.argument,{in:this.finishNode(a,"UpdateExpression")}),t}let s=this.state.startLoc,i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;ese(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(s);a.operator=this.state.value,a.prefix=!1,a.argument=i,this.next(),this.checkLVal(i,{in:i=this.finishNode(a,"UpdateExpression")})}return i}parseExprSubscripts(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseExprAtom(t);return this.shouldExitDescending(s,n)?s:this.parseSubscripts(s,r)}parseSubscripts(t,r,n){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,n,s),s.maybeAsyncArrow=!1;while(!s.stop);return t}parseSubscript(t,r,n,s){let{type:i}=this.state;if(!n&&i===15)return this.parseBind(t,r,n,s);if(wu(i))return this.parseTaggedTemplateExpression(t,r,s);let a=!1;if(i===18){if(n&&(this.raise(_.OptionalChainingNoNew,{at:this.state.startLoc}),this.lookaheadCharCode()===40))return s.stop=!0,t;s.optionalChainMember=a=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,s,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(t,r,s,o,a):(s.stop=!0,t)}}parseMember(t,r,n,s,i){let a=this.startNodeAt(r);return a.object=t,a.computed=s,s?(a.property=this.parseExpression(),this.expect(3)):this.match(138)?(t.type==="Super"&&this.raise(_.SuperPrivateField,{at:r}),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=i,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,r,n,s){let i=this.startNodeAt(r);return i.object=t,this.next(),i.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),r,n)}parseCoverCallAndAsyncArrowHead(t,r,n,s){let i=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=t;let{maybeAsyncArrow:l,optionalChainMember:u}=n;l&&(this.expressionScope.enter(Ase()),a=new Di),u&&(o.optional=s),s?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,t.type==="Import",t.type!=="Super",o,a);let c=this.finishCallExpression(o,u);return l&&this.shouldParseAsyncArrow()&&!s?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),c)):(l&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=i,c}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r)}parseTaggedTemplateExpression(t,r,n){let s=this.startNodeAt(r);return s.tag=t,s.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(_.OptionalChainingNoTemplate,{at:r}),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&t.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),t.arguments.length===0||t.arguments.length>2)this.raise(_.ImportCallArity,{at:t,maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let n of t.arguments)n.type==="SpreadElement"&&this.raise(_.ImportCallSpreadArgument,{at:n});return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,n,s,i){let a=[],o=!0,l=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){r&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(_.ImportCallArgumentTrailingComma,{at:this.state.lastTokStartLoc}),s&&this.addTrailingCommaExtraToNode(s),this.next();break}a.push(this.parseExprListItem(!1,i,n))}return this.state.inFSharpPipelineDirectBody=l,a}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var n;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(n=r.extra)==null?void 0:n.trailingCommaLoc),r.innerComments&&ro(t,r.innerComments),r.callee.trailingComments&&ro(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,n=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(r):this.match(10)?this.options.createImportExpressions?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(_.UnsupportedImport,{at:this.state.lastTokStartLoc}),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133: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 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let i=r.callee=this.parseNoCallExpr();if(i.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(_.UnsupportedBind,{at:i})}case 138:return this.raise(_.PrivateInExpectedIn,{at: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);this.unexpected();break}case 47:{let i=this.input.codePointAt(this.nextTokenStart());Tn(i)||i===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(ot(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let i=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){let{type:l}=this.state;if(l===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(ot(l))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(l===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return i&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(t,r){let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=ur(this.state.endLoc,-1),this.parseTopicReference(n);this.unexpected()}parseTopicReference(t){let r=this.startNode(),n=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(r,n,t,s)}finishTopicReference(t,r,n,s){if(this.testTopicReferenceConfiguration(n,r,s)){let i=n==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(n==="smart"?_.PrimaryTopicNotAllowed:_.PipeTopicUnbound,{at:r}),this.registerTopicReference(),this.finishNode(t,i)}else throw this.raise(_.PipeTopicUnconfiguredToken,{at:r,token:ss(s)})}testTopicReferenceConfiguration(t,r,n){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:ss(n)}]);case"smart":return n===27;default:throw this.raise(_.PipeTopicRequiresHackPipes,{at:r})}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Pu(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(_.LineTerminatorBeforeArrow,{at:this.state.curPosition()}),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();let n=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=n,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(_.SuperNotAllowed,{at:t}):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(_.UnexpectedSuper,{at:t}),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(_.UnsupportedSuper,{at:t}),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(ur(this.state.startLoc,1)),n=this.state.value;return this.next(),t.id=this.createIdentifier(r,n),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,n){t.meta=r;let s=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==n||s)&&this.raise(_.UnsupportedMetaProperty,{at:t.property,target:r.name,onlyValidPropertyName:n}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){let r=this.createIdentifier(this.startNodeAtNode(t),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(_.ImportMetaOutsideModule,{at:r}),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let n=this.isContextual(105);if(n||this.unexpected(),this.expectPlugin(n?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(_.DynamicImportPhaseRequiresImportExpressions,{at:this.state.startLoc,phase:this.state.value});return this.next(),t.phase=n?"source":"defer",this.parseImportCall(t)}return this.parseMetaProperty(t,r,"meta")}parseLiteralAtNode(t,r,n){return this.addExtra(n,"rawValue",t),this.addExtra(n,"raw",this.input.slice(n.start,this.state.end)),n.value=t,this.next(),this.finishNode(n,r)}parseLiteral(t,r){let n=this.startNode();return this.parseLiteralAtNode(t,r,n)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let r=this.parseLiteral(t.value,"RegExpLiteral");return r.pattern=t.pattern,r.flags=t.flags,r}parseBooleanLiteral(t){let r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let r=this.state.startLoc,n;this.next(),this.expressionScope.enter(Pse());let s=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],l=new Di,u=!0,c,f;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,l.optionalParametersLoc===null?null:l.optionalParametersLoc),this.match(11)){f=this.state.startLoc;break}if(this.match(21)){let y=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),y)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(l,this.parseParenItem))}let d=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=i;let m=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(m=this.parseArrow(m))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(m,o,!1),m):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),f&&this.unexpected(f),c&&this.unexpected(c),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,d)):n=o[0],this.wrapParenthesis(r,n))}wrapParenthesis(t,r){if(!this.options.createParenthesizedExpressions)return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;let n=this.startNodeAt(t);return n.expression=r,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let n=this.parseMetaProperty(t,r,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(_.UnexpectedNewTarget,{at:n}),n}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let r=this.match(83),n=this.parseNoCallExpr();t.callee=n,r&&(n.type==="Import"||n.type==="ImportExpression")&&this.raise(_.ImportCallNotNewExpression,{at:n})}parseTemplateElement(t){let{start:r,startLoc:n,end:s,value:i}=this.state,a=r+1,o=this.startNodeAt(ur(n,1));i===null&&(t||this.raise(_.InvalidEscapeSequenceTemplate,{at:ur(this.state.firstInvalidTemplateEscapePos,1)}));let l=this.match(24),u=l?-1:-2,c=s+u;o.value={raw:this.input.slice(a,c).replace(/\r\n?/g,` `),cooked:i===null?null:i.slice(1,u)},o.tail=l,this.next();let f=this.finishNode(o,"TemplateElement");return this.resetEndLocation(f,ur(this.state.lastTokEndLoc,u)),f}parseTemplate(t){let r=this.startNode();r.expressions=[];let n=this.parseTemplateElement(t);for(r.quasis=[n];!n.tail;)r.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.quasis.push(n=this.parseTemplateElement(t));return this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,n,s){n&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=Object.create(null),o=!0,l=this.startNode();for(l.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(l);break}let c;r?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(s),this.checkProto(c,n,a,s)),n&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(_.InvalidRecordProperty,{at:c}),c.shorthand&&this.addExtra(c,"shorthand",!0),l.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=i;let u="ObjectExpression";return r?u="ObjectPattern":n&&(u="RecordExpression"),this.finishNode(l,u)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStart),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(_.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)r.push(this.parseDecorator());let n=this.startNode(),s=!1,i=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(n.decorators=r,r=[]),n.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);let l=this.state.containsEsc,u=this.parsePropertyName(n,t);if(!o&&!l&&this.maybeAsyncOrAccessorProp(n)){let c=u.name;c==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(u),o=this.eat(55),this.parsePropertyName(n)),(c==="get"||c==="set")&&(i=!0,this.resetPreviousNodeTrailingComments(u),n.kind=c,this.match(55)&&(o=!0,this.raise(_.AccessorIsGenerator,{at:this.state.curPosition(),kind:c}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,a,o,s,!1,i,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;let n=this.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t);s.length!==n&&this.raise(t.kind==="get"?_.BadGetterArity:_.BadSetterArity,{at:t}),t.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(_.BadSetterRestParameter,{at:t})}parseObjectMethod(t,r,n,s,i){if(i){let a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(n||r||this.match(10))return s&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,n,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,n,s){if(t.shorthand=!1,this.eat(14))return t.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(s),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),n)t.value=this.parseMaybeDefault(r,xn(t.key));else if(this.match(29)){let i=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=i):this.raise(_.InvalidCoverInitializedName,{at:i}),t.value=this.parseMaybeDefault(r,xn(t.key))}else t.value=xn(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,r,n,s,i,a,o){let l=this.parseObjectMethod(t,n,s,i,a)||this.parseObjectProperty(t,r,i,o);return l||this.unexpected(),l}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:s}=this.state,i;if(Wr(n))i=this.parseIdentifier(!0);else switch(n){case 134:i=this.parseNumericLiteral(s);break;case 133:i=this.parseStringLiteral(s);break;case 135:i=this.parseBigIntLiteral(s);break;case 136:i=this.parseDecimalLiteral(s);break;case 138:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(_.UnexpectedPrivateField,{at:a}),i=this.parsePrivateName();break}default:this.unexpected()}t.key=i,n!==138&&(t.computed=!1)}return t.key}initFunction(t,r){t.id=null,t.generator=!1,t.async=r}parseMethod(t,r,n,s,i,a,o=!1){this.initFunction(t,n),t.generator=r,this.scope.enter(18|(o?64:0)|(i?32:0)),this.prodParam.enter(Pu(n,t.generator)),this.parseFunctionParams(t,s);let l=this.parseFunctionBodyAndFinish(t,a,!0);return this.prodParam.exit(),this.scope.exit(),l}parseArrayLike(t,r,n,s){n&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(t,!n,s,a),this.state.inFSharpPipelineDirectBody=i,this.finishNode(a,n?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,n,s){this.scope.enter(6);let i=Pu(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(t,n);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,n){this.toAssignableList(r,n,!1),t.params=r}parseFunctionBodyAndFinish(t,r,n=!1){return this.parseFunctionBody(t,!1,n),this.finishNode(t,r)}parseFunctionBody(t,r,n=!1){let s=r&&!this.match(5);if(this.expressionScope.enter(NP()),s)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else{let i=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let l=!this.isSimpleParamList(t.params);o&&l&&this.raise(_.IllegalLanguageModeDirective,{at:(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t});let u=!i&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!n&&!l,r,u),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,u)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,n=t.length;r10||!hse(t))return;if(n&&fse(t)){this.raise(_.UnexpectedKeyword,{at:r,keyword:t});return}if((this.state.strict?s?wP:AP:PP)(t,this.inModule)){this.raise(_.UnexpectedReservedWord,{at:r,reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(_.YieldBindingIdentifier,{at:r});return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(_.AwaitBindingIdentifier,{at:r});return}if(this.scope.inStaticBlock){this.raise(_.AwaitBindingIdentifierInStaticBlock,{at:r});return}this.expressionScope.recordAsyncArrowParametersError({at:r})}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(_.ArgumentsInClass,{at:r});return}}isAwaitAllowed(){return!!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(_.AwaitExpressionFormalParameter,{at:r}),this.eat(55)&&this.raise(_.ObsoleteAwaitStar,{at:r}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||wu(t)||t===102&&!this.state.containsEsc||t===137||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){let t=this.startNode();this.expressionScope.recordParameterInitializerError(_.YieldInParameter,{at:t}),this.next();let r=!1,n=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:n=this.parseMaybeAssign()}return t.delegate=r,t.argument=n,this.finishNode(t,"YieldExpression")}parseImportCall(t){return this.next(),t.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(t.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(t.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(_.PipelineHeadSequenceExpression,{at:r})}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){let n=this.startNodeAt(r);return n.callee=t,this.finishNode(n,"PipelineBareFunction")}else{let n=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),n.expression=t,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(_.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(_.PipelineTopicUnused,{at:t})}withTopicBindingContext(t){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}else return t()}withSoloAwaitPermittingContext(t){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r}}allowInAnd(t){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit()}}return t()}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(t){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=n,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module")}finally{n()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}},Wm={kind:"loop"},Jse={kind:"switch"},zse=/[\uD800-\uDFFF]/u,Km=/in(?:stanceof)?/y;function Qse(e,t){for(let r=0;r0)for(let[i,a]of Array.from(this.scope.undefinedExports))this.raise(_.ModuleExportUndefined,{at:a,localName:i});let s;return r===139?s=this.finishNode(t,"Program"):s=this.finishNodeAt(t,"Program",ur(this.state.startLoc,-1)),s}stmtToDirective(t){let r=t;r.type="Directive",r.value=r.expression,delete r.expression;let n=r.value,s=n.value,i=this.input.slice(n.start,n.end),a=n.value=i.slice(1,-1);return this.addExtra(n,"raw",i),this.addExtra(n,"rawValue",a),this.addExtra(n,"expressionValue",s),n.type="DirectiveLiteral",r}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(t,r){if(Tn(t)){if(Km.lastIndex=r,Km.test(this.input)){let n=this.codePointAtPos(Km.lastIndex);if(!wi(n)&&n!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifier(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)}startsUsingForOf(){let{type:t,containsEsc:r}=this.lookahead();if(t===102&&!r)return!1;if(ot(t)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){let n=this.state.type,s=this.startNode(),i=!!(t&2),a=!!(t&4),o=t&1;switch(n){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;return a||this.raise(this.state.strict?_.StrictFunction:this.options.annexB?_.SloppyFunctionAnnexB:_.SloppyFunction,{at:this.state.startLoc}),this.parseFunctionStatement(s,!1,!i&&a);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,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.state.containsEsc&&this.startsAwaitUsing())return this.isAwaitAllowed()?i||this.raise(_.UnexpectedLexicalDeclaration,{at:s}):this.raise(_.AwaitUsingNotInAsyncContext,{at:s}),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifier())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(_.UnexpectedUsingDeclaration,{at:this.state.startLoc}):i||this.raise(_.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let c=this.nextTokenStart(),f=this.codePointAtPos(c);if(f!==91&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(f,c)&&f!==123))break}case 75:i||this.raise(_.UnexpectedLexicalDeclaration,{at:this.state.startLoc});case 74:{let c=this.state.value;return this.parseVarStatement(s,c)}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 c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(_.UnexpectedImportExport,{at:this.state.startLoc}),this.next();let c;return n===83?(c=this.parseImport(s),c.type==="ImportDeclaration"&&(!c.importKind||c.importKind==="value")&&(this.sawUnambiguousESM=!0)):(c=this.parseExport(s,r),(c.type==="ExportNamedDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportAllDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return i||this.raise(_.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(s,!0,!i&&a)}let l=this.state.value,u=this.parseExpression();return ot(n)&&u.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,l,u,t):this.parseExpressionStatement(s,u,r)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(_.ImportOutsideModule,{at:t})}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,n){return t&&(r.decorators&&r.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(_.DecoratorsBeforeAfterExport,{at:r.decorators[0]}),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),n&&this.resetStartLocationFromNode(n,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(_.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(_.UnexpectedLeadingDecorator,{at:this.state.startLoc});return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,n;if(this.match(10)){let s=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(s,n);let i=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(n),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==n&&this.raise(_.DecoratorArgumentsOutsideParentheses,{at:i})}else{for(n=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=n,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,n=this.finishNode(s,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(n)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){let r=this.startNodeAtNode(t);return r.callee=t,r.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let n;for(n=0;nthis.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(Wm);let r=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(r=this.state.lastTokStartLoc),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);let n=this.isContextual(100);{let l=this.isContextual(96)&&this.startsAwaitUsing(),u=l||this.isContextual(107)&&this.startsUsingForOf(),c=n&&this.hasFollowingBindingAtom()||u;if(this.match(74)||this.match(75)||c){let f=this.startNode(),d;l?(d="await using",this.isAwaitAllowed()||this.raise(_.AwaitUsingNotInAsyncContext,{at:this.state.startLoc}),this.next()):d=this.state.value,this.next(),this.parseVar(f,!0,d);let m=this.finishNode(f,"VariableDeclaration"),y=this.match(58);return y&&u&&this.raise(_.ForInUsing,{at:m}),(y||this.isContextual(102))&&m.declarations.length===1?this.parseForIn(t,m,r):(r!==null&&this.unexpected(r),this.parseFor(t,m))}}let s=this.isContextual(95),i=new Di,a=this.parseExpression(!0,i),o=this.isContextual(102);if(o&&(n&&this.raise(_.ForOfLet,{at:a}),r===null&&s&&a.type==="Identifier"&&this.raise(_.ForOfAsync,{at:a})),o||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(a,!0);let l=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{in:{type:l}}),this.parseForIn(t,a,r)}else this.checkExpressionErrors(i,!0);return r!==null&&this.unexpected(r),this.parseFor(t,a)}parseFunctionStatement(t,r,n){return this.next(),this.parseFunction(t,1|(n?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(_.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let r=t.cases=[];this.expect(5),this.state.labels.push(Jse),this.scope.enter(0);let n;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let i=this.match(61);n&&this.finishNode(n,"SwitchCase"),r.push(n=this.startNode()),n.consequent=[],this.next(),i?n.test=this.parseExpression():(s&&this.raise(_.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),s=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(_.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{in:{type:"CatchClause"},binding:9}),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(_.NoCatchOrFinally,{at:t}),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,n=!1){return this.next(),this.parseVar(t,!1,r,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(Wm),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(_.StrictWith,{at:this.state.startLoc}),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,n,s){for(let a of this.state.labels)a.name===r&&this.raise(_.LabelRedeclaration,{at:n,labelName:r});let i=Qne(this.state.type)?"loop":this.match(71)?"switch":null;for(let a=this.state.labels.length-1;a>=0;a--){let o=this.state.labels[a];if(o.statementStart===t.start)o.statementStart=this.state.start,o.kind=i;else break}return this.state.labels.push({name:r,kind:i,statementStart:this.state.start}),t.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,n){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,n){let s=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(s,t,!1,8,n),r&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,n,s,i){let a=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,n,s,i)}parseBlockOrModuleBlockBody(t,r,n,s,i){let a=this.state.strict,o=!1,l=!1;for(;!this.match(s);){let u=n?this.parseModuleItem():this.parseStatementListItem();if(r&&!l){if(this.isValidDirective(u)){let c=this.stmtToDirective(u);r.push(c),!o&&c.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}l=!0,this.state.strictErrors.clear()}t.push(u)}i==null||i.call(this,o),a||this.setStrict(!1),this.next()}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,n){let s=this.match(58);return this.next(),s?n!==null&&this.unexpected(n):t.await=n!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(_.ForInOfLoopInitializer,{at:r,type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(_.InvalidLhs,{at:r,ancestor:{type:"ForStatement"}}),t.left=r,t.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")}parseVar(t,r,n,s=!1){let i=t.declarations=[];for(t.kind=n;;){let a=this.startNode();if(this.parseVarId(a,n),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!s&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(_.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"}):n==="const"&&!(this.match(58)||this.isContextual(102))&&this.raise(_.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"})),i.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let n=this.parseBindingAtom();this.checkLVal(n,{in:{type:"VariableDeclarator"},binding:r==="var"?5:8201}),t.id=n}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){let n=r&2,s=!!(r&1),i=s&&!(r&4),a=!!(r&8);this.initFunction(t,a),this.match(55)&&(n&&this.raise(_.GeneratorInSingleStatementContext,{at:this.state.startLoc}),this.next(),t.generator=!0),s&&(t.id=this.parseFunctionId(i));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Pu(a,t.generator)),s||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!n&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||ot(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(xse()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,r,n){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,n),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,s),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(t){return!t.computed&&!t.static&&(t.key.name==="constructor"||t.key.value==="constructor")}parseClassBody(t,r){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:t},s=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(_.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){s.push(this.parseDecorator());continue}let a=this.startNode();s.length&&(a.decorators=s,this.resetStartLocationFromNode(a,s[0]),s=[]),this.parseClassMember(i,a,n),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(_.DecoratorConstructor,{at:a})}}),this.state.strict=r,this.next(),s.length)throw this.raise(_.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(t,r){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let s=r;return s.kind="method",s.computed=!1,s.key=n,s.static=!1,this.pushClassMethod(t,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=r;return s.computed=!1,s.key=n,s.static=!1,t.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(t,r,n){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,n,s)}parseClassMemberWithIsStatic(t,r,n,s){let i=r,a=r,o=r,l=r,u=r,c=i,f=i;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){c.kind="method";let E=this.match(138);if(this.parseClassElementName(c),E){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsGenerator,{at:i.key}),this.pushClassMethod(t,i,!0,!1,!1,!1);return}let d=ot(this.state.type)&&!this.state.containsEsc,m=this.match(138),y=this.parseClassElementName(r),p=this.state.startLoc;if(this.parsePostMemberNameModifiers(f),this.isClassMethod()){if(c.kind="method",m){this.pushClassPrivateMethod(t,a,!1,!1);return}let E=this.isNonstaticConstructor(i),T=!1;E&&(i.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(_.DuplicateConstructor,{at:y}),E&&this.hasPlugin("typescript")&&r.override&&this.raise(_.OverrideOnConstructor,{at:y}),n.hadConstructor=!0,T=n.hadSuperClass),this.pushClassMethod(t,i,!1,!1,E,T)}else if(this.isClassProperty())m?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o);else if(d&&y.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(y);let E=this.eat(55);f.optional&&this.unexpected(p),c.kind="method";let T=this.match(138);this.parseClassElementName(c),this.parsePostMemberNameModifiers(f),T?this.pushClassPrivateMethod(t,a,E,!0):(this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsAsync,{at:i.key}),this.pushClassMethod(t,i,E,!0,!1,!1))}else if(d&&(y.name==="get"||y.name==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(y),c.kind=y.name;let E=this.match(138);this.parseClassElementName(i),E?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(_.ConstructorIsAccessor,{at:i.key}),this.pushClassMethod(t,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else if(d&&y.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(y);let E=this.match(138);this.parseClassElementName(o),this.pushClassAccessorProperty(t,u,E)}else this.isLineTerminator()?m?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:r,value:n}=this.state;if((r===132||r===133)&&t.static&&n==="prototype"&&this.raise(_.StaticPrototype,{at:this.state.startLoc}),r===138){n==="constructor"&&this.raise(_.ConstructorClassPrivateField,{at:this.state.startLoc});let s=this.parsePrivateName();return t.key=s,s}return this.parsePropertyName(t)}parseClassStaticBlock(t,r){var n;this.scope.enter(208);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let i=r.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,t.body.push(this.finishNode(r,"StaticBlock")),(n=r.decorators)!=null&&n.length&&this.raise(_.DecoratorStaticBlock,{at:r})}pushClassProperty(t,r){!r.computed&&(r.key.name==="constructor"||r.key.value==="constructor")&&this.raise(_.ConstructorClassField,{at:r.key}),t.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(t,r){let n=this.parseClassPrivateProperty(r);t.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(t,r,n){if(!n&&!r.computed){let i=r.key;(i.name==="constructor"||i.value==="constructor")&&this.raise(_.ConstructorClassField,{at:i})}let s=this.parseClassAccessorProperty(r);t.body.push(s),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(t,r,n,s,i,a){t.body.push(this.parseMethod(r,n,s,i,a,"ClassMethod",!0))}pushClassPrivateMethod(t,r,n,s){let i=this.parseMethod(r,n,s,!1,!1,"ClassPrivateMethod",!0);t.body.push(i);let a=i.kind==="get"?i.static?6:2:i.kind==="set"?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,a)}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(NP()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,r,n,s=8331){if(ot(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,s);else if(n||!r)t.id=null;else throw this.raise(_.MissingClassName,{at:this.state.startLoc})}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,r){let n=this.parseMaybeImportPhase(t,!0),s=this.maybeParseExportDefaultSpecifier(t,n),i=!s||this.eat(12),a=i&&this.eatExportStar(t),o=a&&this.maybeParseExportNamespaceSpecifier(t),l=i&&(!o||this.eat(12)),u=s||a;if(a&&!o){if(s&&this.unexpected(),r)throw this.raise(_.UnsupportedDecoratorExport,{at:t});return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(t);s&&i&&!a&&!c&&this.unexpected(null,5),o&&l&&this.unexpected(null,98);let f;if(u||c){if(f=!1,r)throw this.raise(_.UnsupportedDecoratorExport,{at:t});this.parseExportFrom(t,u)}else f=this.maybeParseExportDeclaration(t);if(u||c||f){var d;let m=t;if(this.checkExport(m,!0,!1,!!m.source),((d=m.declaration)==null?void 0:d.type)==="ClassDeclaration")this.maybeTakeDecorators(r,m.declaration,m);else if(r)throw this.raise(_.UnsupportedDecoratorExport,{at:t});return this.finishNode(m,"ExportNamedDeclaration")}if(this.eat(65)){let m=t,y=this.parseExportDefaultExpression();if(m.declaration=y,y.type==="ClassDeclaration")this.maybeTakeDecorators(r,y,m);else if(r)throw this.raise(_.UnsupportedDecoratorExport,{at:t});return this.checkExport(m,!0,!0),this.finishNode(m,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r==null?void 0:r.loc.start);let n=r||this.parseIdentifier(!0),s=this.startNodeAtNode(n);return s.exported=n,t.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){t.specifiers||(t.specifiers=[]);let r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){t.specifiers||(t.specifiers=[]);let r=t.exportKind==="type";return t.specifiers.push(...this.parseExportSpecifiers(r)),t.source=null,t.declaration=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(_.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(_.UnsupportedDefaultExport,{at:this.state.startLoc});let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(ot(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let{type:s}=this.lookahead();if(ot(s)&&s!==98||s===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),n=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||ot(this.state.type)&&n)return!0;if(this.match(65)&&n){let s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return s===34||s===39}return!1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(_.DecoratorBeforeExport,{at:this.state.startLoc}),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,n,s){if(r){var i;if(n){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var a;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((a=o.extra)!=null&&a.parenthesized)&&this.raise(_.ExportDefaultFromAsIdentifier,{at:o})}}else if((i=t.specifiers)!=null&&i.length)for(let o of t.specifiers){let{exported:l}=o,u=l.type==="Identifier"?l.name:l.value;if(this.checkDuplicateExports(o,u),!s&&o.local){let{local:c}=o;c.type!=="Identifier"?this.raise(_.ExportBindingIsString,{at:o,localName:c.value,exportName:u}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c))}}else if(t.declaration){if(t.declaration.type==="FunctionDeclaration"||t.declaration.type==="ClassDeclaration"){let o=t.declaration.id;if(!o)throw new Error("Assertion failure");this.checkDuplicateExports(t,o.name)}else if(t.declaration.type==="VariableDeclaration")for(let o of t.declaration.declarations)this.checkDeclaration(o.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(let r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(_.DuplicateDefaultExport,{at:t}):this.raise(_.DuplicateExport,{at:t,exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(t){let r=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),i=this.match(133),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,i,t,s))}return r}parseExportSpecifier(t,r,n,s){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=wse(t.local):t.exported||(t.exported=xn(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){let t=this.parseStringLiteral(this.state.value),r=t.value.match(zse);return r&&this.raise(_.ModuleExportNameHasLoneSurrogate,{at:t,surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:n})=>n.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){let{specifiers:r}=t,n=r.length===1?r[0].type:null;if(t.phase==="source")n!=="ImportDefaultSpecifier"&&this.raise(_.SourcePhaseImportRequiresDefault,{at:r[0].loc.start});else if(t.phase==="defer")n!=="ImportNamespaceSpecifier"&&this.raise(_.DeferImportRequiresNamespace,{at:r[0].loc.start});else if(t.module){var s;n!=="ImportDefaultSpecifier"&&this.raise(_.ImportReflectionNotBinding,{at:r[0].loc.start}),((s=t.assertions)==null?void 0:s.length)>0&&this.raise(_.ImportReflectionHasAssertion,{at:t.specifiers[0].loc.start})}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:r}=t;if(r!=null){let n=r.find(s=>{let i;if(s.type==="ExportSpecifier"?i=s.local:s.type==="ImportSpecifier"&&(i=s.imported),i!==void 0)return i.type==="Identifier"?i.name!=="default":i.value!=="default"});n!==void 0&&this.raise(_.ImportJSONBindingNotDefault,{at:n.loc.start})}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,r,n,s){r||(n==="module"?(this.expectPlugin("importReflection",s),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),n==="source"?(this.expectPlugin("sourcePhaseImports",s),t.phase="source"):n==="defer"?(this.expectPlugin("deferredImportEvaluation",s),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;let n=this.parseIdentifier(!0),{type:s}=this.state;return(Wr(s)?s!==98||this.lookaheadCharCode()===102:s!==12)?(this.resetPreviousIdentifierLeadingComments(n),this.applyImportPhase(t,r,n.name,n.loc.start),null):(this.applyImportPhase(t,r,null),n)}isPrecedingIdImportPhase(t){let{type:r}=this.state;return ot(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(133)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),i=s&&this.maybeParseStarImportSpecifier(t);return s&&!i&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var r;return(r=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,n){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,n))}finishImportSpecifier(t,r,n=8201){return this.checkLVal(t.local,{in:{type:r},binding:n}),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);let t=[],r=new Set;do{if(this.match(8))break;let n=this.startNode(),s=this.state.value;if(r.has(s)&&this.raise(_.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:s}),r.add(s),this.match(133)?n.key=this.parseStringLiteral(s):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(_.ModuleAttributeInvalidValue,{at:this.state.startLoc});n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],r=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!=="type"&&this.raise(_.ModuleAttributeDifferentFromType,{at:n.key}),r.has(n.key.name)&&this.raise(_.ModuleAttributesWithDuplicateKeys,{at:n.key,key:n.key.name}),r.add(n.key.name),this.expect(14),!this.match(133))throw this.raise(_.ModuleAttributeInvalidValue,{at:this.state.startLoc});n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let r,n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?r=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),r=this.parseImportAttributes()),n=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(_.ImportAttributesUseAssert,{at:this.state.startLoc}),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),r=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))r=[];else if(this.hasPlugin("moduleAttributes"))r=[];else return;!n&&this.hasPlugin("importAssertions")?t.assertions=r:t.attributes=r}maybeParseDefaultImportSpecifier(t,r){if(r){let n=this.startNodeAtNode(r);return n.local=r,t.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}else if(Wr(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(_.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let n=this.startNode(),s=this.match(133),i=this.isContextual(130);n.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(n,s,t.importKind==="type"||t.importKind==="typeof",i,void 0);t.specifiers.push(a)}}parseImportSpecifier(t,r,n,s,i){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:a}=t;if(r)throw this.raise(_.ImportBindingIsString,{at:t,importName:a.value});this.checkReservedWord(a.name,t.loc.start,!0,!0),t.local||(t.local=xn(a))}return this.finishImportSpecifier(t,"ImportSpecifier",i)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},Iu=class extends fy{constructor(t,r){t=Xse(t),super(t,r),this.options=t,this.initializeScopes(),this.plugins=Zse(this.options.plugins),this.filename=t.sourceFilename}getScopeHandler(){return to}parse(){this.enterInitialScopes();let t=this.startNode(),r=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,r),t.errors=this.state.errors,t}};function Zse(e){let t=new Map;for(let r of e){let[n,s]=Array.isArray(r)?r:[r,{}];t.has(n)||t.set(n,s||{})}return t}function eie(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let n=za(t,e),s=n.parse();if(n.sawUnambiguousESM)return s;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",za(t,e).parse()}catch{}else s.program.sourceType="script";return s}catch(n){try{return t.sourceType="script",za(t,e).parse()}catch{}throw n}}else return za(t,e).parse()}function tie(e,t){let r=za(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function rie(e){let t={};for(let r of Object.keys(e))t[r]=En(e[r]);return t}var nie=rie(Yne);function za(e,t){let r=Iu;return e!=null&&e.plugins&&(Hse(e.plugins),r=sie(e.plugins)),new r(e,t)}var vP={};function sie(e){let t=Yse.filter(s=>jt(e,s)),r=t.join("/"),n=vP[r];if(!n){n=Iu;for(let s of t)n=jP[s](n);vP[r]=n}return n}no.parse=eie;no.parseExpression=tie;no.tokTypes=nie});var LP=b(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});Sy.default=cie;var iie=Oe(),{assignmentExpression:aie,expressionStatement:oie,identifier:lie}=iie,uie={Scope(e,t){t.kind==="let"&&e.skip()},FunctionParent(e){e.skip()},VariableDeclaration(e,t){if(t.kind&&e.node.kind!==t.kind)return;let r=[],n=e.get("declarations"),s;for(let i of n){s=i.node.id,i.node.init&&r.push(oie(aie("=",i.node.id,i.node.init)));for(let a of Object.keys(i.getBindingIdentifiers()))t.emit(lie(a),a,i.node.init!==null)}e.parentPath.isFor({left:e.node})?e.replaceWith(s):e.replaceWithMultiple(r)}};function cie(e,t,r="var"){e.traverse(uie,{kind:r,emit:t})}});var KP=b(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is._replaceWith=Rie;is.replaceExpressionWithStatements=qie;is.replaceInline=Uie;is.replaceWith=Mie;is.replaceWithMultiple=jie;is.replaceWithSourceString=Lie;var fie=Ai(),Py=Vr(),pie=as(),VP=Ds(),die=Ni(),hie=Oe(),mie=LP(),{FUNCTION_TYPES:MP,arrowFunctionExpression:yie,assignmentExpression:$P,awaitExpression:gie,blockStatement:bie,buildUndefinedNode:xy,callExpression:Eie,cloneNode:Ay,conditionalExpression:vie,expressionStatement:Tie,getBindingIdentifiers:Sie,identifier:xie,inheritLeadingComments:Pie,inheritTrailingComments:Aie,inheritsComments:Cie,isBlockStatement:wie,isEmptyStatement:RP,isExpression:WP,isExpressionStatement:Die,isIfStatement:Iie,isProgram:Oie,isStatement:_ie,isVariableDeclaration:Nie,removeComments:kie,returnStatement:qP,sequenceExpression:Bie,validate:UP,yieldExpression:Fie}=hie;function jie(e){var t;this.resync(),e=this._verifyNodeList(e),Pie(e[0],this.node),Aie(e[e.length-1],this.node),(t=(0,VP.getCachedPaths)(this.hub,this.parent))==null||t.delete(this.node),this.node=this.container[this.key]=null;let r=this.insertAfter(e);return this.node?this.requeue():this.remove(),r}function Lie(e){this.resync();let t;try{e=`(${e})`,t=(0,die.parse)(e)}catch(n){let s=n.loc;throw s&&(n.message+=` - make sure this is an expression. `+(0,fie.codeFrameColumns)(e,{start:{line:s.line,column:s.column+1}}),n.code="BABEL_REPLACE_SOURCE_ERROR"),n}let r=t.program.body[0].expression;return Py.default.removeProperties(r),this.replaceWith(r)}function Mie(e){if(this.resync(),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof pie.default?e.node:e;if(!t)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!Oie(t))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof t=="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let r="";if(this.isNodeType("Statement")&&WP(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=Tie(t),r="expression"),this.isNodeType("Expression")&&_ie(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let n=this.node;return n&&(Cie(t,n),kie(n)),this._replaceWith(t),this.type=t.type,this.setScope(),this.requeue(),[r?this.get(r):this]}function Rie(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?UP(this.parent,this.key,[e]):UP(this.parent,this.key,e),this.debug(`Replace with ${e==null?void 0:e.type}`),(t=(0,VP.getCachedPaths)(this.hub,this.parent))==null||t.set(e,this).delete(this.node),this.node=this.container[this.key]=e}function qie(e){this.resync();let t=[],r=Ou(e,t);if(r){for(let d of t)this.scope.push({id:d});return this.replaceWith(r)[0].get("expressions")}let n=this.getFunctionParent(),s=n==null?void 0:n.is("async"),i=n==null?void 0:n.is("generator"),a=yie([],bie(e));this.replaceWith(Eie(a,[]));let o=this.get("callee");(0,mie.default)(o.get("body"),d=>{this.scope.push({id:d})},"var");let l=this.get("callee").getCompletionRecords();for(let d of l){if(!d.isExpressionStatement())continue;let m=d.findParent(y=>y.isLoop());if(m){let y=m.getData("expressionReplacementReturnUid");y?y=xie(y.name):(y=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",qP(Ay(y))),m.setData("expressionReplacementReturnUid",y)),d.get("expression").replaceWith($P("=",Ay(y),d.node.expression))}else d.replaceWith(qP(d.node.expression))}o.arrowFunctionToExpression();let u=o,c=s&&Py.default.hasType(this.get("callee.body").node,"AwaitExpression",MP),f=i&&Py.default.hasType(this.get("callee.body").node,"YieldExpression",MP);return c&&(u.set("async",!0),f||this.replaceWith(gie(this.node))),f&&(u.set("generator",!0),this.replaceWith(Fie(this.node,!0))),u.get("body.body")}function Ou(e,t){let r=[],n=!0;for(let s of e)if(RP(s)||(n=!1),WP(s))r.push(s);else if(Die(s))r.push(s.expression);else if(Nie(s)){if(s.kind!=="var")return;for(let i of s.declarations){let a=Sie(i);for(let o of Object.keys(a))t.push(Ay(a[o]));i.init&&r.push($P("=",i.id,i.init))}n=!0}else if(Iie(s)){let i=s.consequent?Ou([s.consequent],t):xy(),a=s.alternate?Ou([s.alternate],t):xy();if(!i||!a)return;r.push(vie(s.test,i,a))}else if(wie(s)){let i=Ou(s.body,t);if(!i)return;r.push(i)}else if(RP(s))e.indexOf(s)===0&&(n=!0);else return;return n&&r.push(xy()),r.length===1?r[0]:Bie(r)}function Uie(e){if(this.resync(),Array.isArray(e))if(Array.isArray(this.container)){e=this._verifyNodeList(e);let t=this._containerInsertAfter(e);return this.remove(),t}else return this.replaceWithMultiple(e);else return this.replaceWith(e)}});var XP=b(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.evaluate=Xie;_u.evaluateTruthy=Hie;var Vie=["Number","String","Math"],$ie=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],Wie=["random"];function GP(e){return Vie.includes(e)}function Kie(e){return $ie.includes(e)}function Gie(e){return Wie.includes(e)}function Hie(){let e=this.evaluate();if(e.confident)return!!e.value}function Pn(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}var HP=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function cr(e,t){let{node:r}=e,{seen:n}=t;if(n.has(r)){let s=n.get(r);if(s.resolved)return s.value;Pn(e,t);return}else{let s={resolved:!1};n.set(r,s);let i=Yie(e,t);return t.confident&&(s.resolved=!0,s.value=i),i}}function Yie(e,t){if(t.confident){if(e.isSequenceExpression()){let r=e.get("expressions");return cr(r[r.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return YP(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){let r=e.get("tag.object"),{node:{name:n}}=r,s=e.get("tag.property");if(r.isIdentifier()&&n==="String"&&!e.scope.getBinding(n)&&s.isIdentifier()&&s.node.name==="raw")return YP(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){let r=cr(e.get("test"),t);return t.confident?cr(r?e.get("consequent"):e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return cr(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){let r=e.get("property"),n=e.get("object");if(n.isLiteral()){let s=n.node.value,i=typeof s,a=null;if(e.node.computed){if(a=cr(r,t),!t.confident)return}else r.isIdentifier()&&(a=r.node.name);if((i==="number"||i==="string")&&a!=null&&(typeof a=="number"||typeof a=="string"))return s[a]}}if(e.isReferencedIdentifier()){let r=e.scope.getBinding(e.node.name);if(r){if(r.constantViolations.length>0||e.node.start":return r>n;case"<=":return r<=n;case">=":return r>=n;case"==":return r==n;case"!=":return r!=n;case"===":return r===n;case"!==":return r!==n;case"|":return r|n;case"&":return r&n;case"^":return r^n;case"<<":return r<>":return r>>n;case">>>":return r>>>n}}if(e.isCallExpression()){let r=e.get("callee"),n,s;if(r.isIdentifier()&&!e.scope.getBinding(r.node.name)&&(GP(r.node.name)||Kie(r.node.name))&&(s=global[r.node.name]),r.isMemberExpression()){let i=r.get("object"),a=r.get("property");if(i.isIdentifier()&&a.isIdentifier()&&GP(i.node.name)&&!Gie(a.node.name)){n=global[i.node.name];let o=a.node.name;Object.hasOwnProperty.call(n,o)&&(s=n[o])}if(i.isLiteral()&&a.isIdentifier()){let o=typeof i.node.value;(o==="string"||o==="number")&&(n=i.node.value,s=n[a.node.name])}}if(s){let i=e.get("arguments").map(a=>cr(a,t));return t.confident?s.apply(n,i):void 0}}Pn(e,t)}}function YP(e,t,r,n=!1){let s="",i=0,a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(let o of t){if(!r.confident)break;s+=n?o.value.raw:o.value.cooked;let l=a[i++];l&&(s+=String(cr(l,r)))}if(r.confident)return s}function Xie(){let e={confident:!0,deoptPath:null,seen:new Map},t=cr(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}}});var zP=b(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.statements=Or.statement=Or.smart=Or.program=Or.expression=void 0;var Jie=Oe(),{assertExpressionStatement:zie}=Jie;function Cy(e){return{code:t=>`/* @babel/template */; ${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}var Qie=Cy(e=>e.length>1?e:e[0]);Or.smart=Qie;var Zie=Cy(e=>e);Or.statements=Zie;var eae=Cy(e=>{if(e.length===0)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]});Or.statement=eae;var JP={code:e=>`( ${e} )`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(JP.unwrap(e).start===0)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return zie(t),t.expression}};Or.expression=JP;var tae={code:e=>e,validate:()=>{},unwrap:e=>e.program};Or.program=tae});var Nu=b(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.merge=sae;so.normalizeReplacements=aae;so.validate=iae;var rae=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function nae(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,i;for(i=0;i=0)&&(r[s]=e[s]);return r}function sae(e,t){let{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:n=e.placeholderPattern,preserveComments:s=e.preserveComments,syntacticPlaceholders:i=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:n,preserveComments:s,syntacticPlaceholders:i}}function iae(e){if(e!=null&&typeof e!="object")throw new Error("Unknown template options.");let t=e||{},{placeholderWhitelist:r,placeholderPattern:n,preserveComments:s,syntacticPlaceholders:i}=t,a=nae(t,rae);if(r!=null&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(n!=null&&!(n instanceof RegExp)&&n!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(s!=null&&typeof s!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(i!=null&&typeof i!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(i===!0&&(r!=null||n!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:n==null?void 0:n,preserveComments:s==null?void 0:s,syntacticPlaceholders:i==null?void 0:i}}function aae(e){if(Array.isArray(e))return e.reduce((t,r,n)=>(t["$"+n]=r,t),{});if(typeof e=="object"||e==null)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}});var Dy=b(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});wy.default=vae;var oae=Oe(),lae=Ni(),uae=Ai(),{isCallExpression:cae,isExpressionStatement:fae,isFunction:pae,isIdentifier:dae,isJSXIdentifier:hae,isNewExpression:mae,isPlaceholder:ku,isStatement:yae,isStringLiteral:QP,removePropertiesDeep:gae,traverse:bae}=oae,Eae=/^[_$A-Z0-9]+$/;function vae(e,t,r){let{placeholderWhitelist:n,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:a}=r,o=xae(t,r.parser,a);gae(o,{preserveComments:i}),e.validate(o);let l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:n,placeholderPattern:s,syntacticPlaceholders:a};return bae(o,Tae,l),Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function Tae(e,t,r){var n;let s,i=r.syntactic.placeholders.length>0;if(ku(e)){if(r.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");s=e.name.name,i=!0}else{if(i||r.syntacticPlaceholders)return;if(dae(e)||hae(e))s=e.name;else if(QP(e))s=e.value;else return}if(i&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!i&&(r.placeholderPattern===!1||!(r.placeholderPattern||Eae).test(s))&&!((n=r.placeholderWhitelist)!=null&&n.has(s)))return;t=t.slice();let{node:a,key:o}=t[t.length-1],l;QP(e)||ku(e,{expectedNode:"StringLiteral"})?l="string":mae(a)&&o==="arguments"||cae(a)&&o==="arguments"||pae(a)&&o==="params"?l="param":fae(a)&&!ku(e)?(l="statement",t=t.slice(0,-1)):yae(e)&&ku(e)?l="statement":l="other";let{placeholders:u,placeholderNames:c}=i?r.syntactic:r.legacy;u.push({name:s,type:l,resolve:f=>Sae(f,t),isDuplicate:c.has(s)}),c.add(s)}function Sae(e,t){let r=e;for(let i=0;i{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});_y.default=Iae;var Pae=Oe(),{blockStatement:Aae,cloneNode:Oy,emptyStatement:Cae,expressionStatement:Iy,identifier:Bu,isStatement:ZP,isStringLiteral:wae,stringLiteral:Dae,validate:eA}=Pae;function Iae(e,t){let r=Oy(e.ast);return t&&(e.placeholders.forEach(n=>{if(!Object.prototype.hasOwnProperty.call(t,n.name)){let s=n.name;throw new Error(`Error: No substitution given for "${s}". If this is not meant to be a placeholder you may want to consider passing one of the following options to @babel/template: - { placeholderPattern: false, placeholderWhitelist: new Set(['${s}'])} - { placeholderPattern: /^${s}$/ }`)}}),Object.keys(t).forEach(n=>{if(!e.placeholderNames.has(n))throw new Error(`Unknown substitution "${n}" given`)})),e.placeholders.slice().reverse().forEach(n=>{try{Oae(n,r,t&&t[n.name]||null)}catch(s){throw s.message=`@babel/template placeholder "${n.name}": ${s.message}`,s}}),r}function Oae(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(a=>Oy(a)):typeof r=="object"&&(r=Oy(r)));let{parent:n,key:s,index:i}=e.resolve(t);if(e.type==="string"){if(typeof r=="string"&&(r=Dae(r)),!r||!wae(r))throw new Error("Expected string substitution")}else if(e.type==="statement")i===void 0?r?Array.isArray(r)?r=Aae(r):typeof r=="string"?r=Iy(Bu(r)):ZP(r)||(r=Iy(r)):r=Cae():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=Bu(r)),ZP(r)||(r=Iy(r)));else if(e.type==="param"){if(typeof r=="string"&&(r=Bu(r)),i===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=Bu(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");if(i===void 0)eA(n,s,r),n[s]=r;else{let a=n[s].slice();e.type==="statement"||e.type==="param"?r==null?a.splice(i,1):Array.isArray(r)?a.splice(i,1,...r):a[i]=r:a[i]=r,eA(n,s,a),n[s]=a}}});var tA=b(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});ky.default=Bae;var _ae=Nu(),Nae=Dy(),kae=Ny();function Bae(e,t,r){t=e.code(t);let n;return s=>{let i=(0,_ae.normalizeReplacements)(s);return n||(n=(0,Nae.default)(e,t,r)),e.unwrap((0,kae.default)(n,i))}}});var rA=b(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});By.default=Mae;var Fae=Nu(),jae=Dy(),Lae=Ny();function Mae(e,t,r){let{metadata:n,names:s}=Rae(e,t,r);return i=>{let a={};return i.forEach((o,l)=>{a[s[l]]=o}),o=>{let l=(0,Fae.normalizeReplacements)(o);return l&&Object.keys(l).forEach(u=>{if(Object.prototype.hasOwnProperty.call(a,u))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,Lae.default)(n,l?Object.assign(l,a):a))}}}function Rae(e,t,r){let n="BABEL_TPL$",s=t.join("");do n="$$"+n;while(s.includes(n));let{names:i,code:a}=qae(t,n);return{metadata:(0,jae.default)(e,e.code(a),{parser:r.parser,placeholderWhitelist:new Set(i.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:i}}function qae(e,t){let r=[],n=e[0];for(let s=1;s{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});Fy.default=oA;var an=Nu(),nA=tA(),sA=rA(),iA=(0,an.validate)({placeholderPattern:!1});function oA(e,t){let r=new WeakMap,n=new WeakMap,s=t||(0,an.validate)(null);return Object.assign((i,...a)=>{if(typeof i=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return aA((0,nA.default)(e,i,(0,an.merge)(s,(0,an.validate)(a[0]))))}else if(Array.isArray(i)){let o=r.get(i);return o||(o=(0,sA.default)(e,i,s),r.set(i,o)),aA(o(a))}else if(typeof i=="object"&&i){if(a.length>0)throw new Error("Unexpected extra params.");return oA(e,(0,an.merge)(s,(0,an.validate)(i)))}throw new Error(`Unexpected template param ${typeof i}`)},{ast:(i,...a)=>{if(typeof i=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return(0,nA.default)(e,i,(0,an.merge)((0,an.merge)(s,(0,an.validate)(a[0])),iA))()}else if(Array.isArray(i)){let o=n.get(i);return o||(o=(0,sA.default)(e,i,(0,an.merge)(s,iA)),n.set(i,o)),o(a)()}throw new Error(`Unexpected template param ${typeof i}`)}})}function aA(e){let t="";try{throw new Error}catch(r){r.stack&&(t=r.stack.split(` `).slice(3).join(` `))}return r=>{try{return e(r)}catch(n){throw n.stack+=` ============= ${t}`,n}}}});var ki=b(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.statements=mr.statement=mr.smart=mr.program=mr.expression=mr.default=void 0;var io=zP(),ao=lA(),Fu=(0,ao.default)(io.smart);mr.smart=Fu;var uA=(0,ao.default)(io.statement);mr.statement=uA;var cA=(0,ao.default)(io.statements);mr.statements=cA;var fA=(0,ao.default)(io.expression);mr.expression=fA;var pA=(0,ao.default)(io.program);mr.program=pA;var Uae=Object.assign(Fu.bind(void 0),{smart:Fu,statement:uA,statements:cA,expression:fA,program:pA,ast:Fu.ast});mr.default=Uae});var ju=b(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});jy.default=loe;var yA=ki(),Vae=Oe(),{NOT_LOCAL_BINDING:dA,cloneNode:$ae,identifier:Wae,isAssignmentExpression:Kae,isAssignmentPattern:Gae,isFunction:gA,isIdentifier:hA,isLiteral:mA,isNullLiteral:Hae,isObjectMethod:Yae,isObjectProperty:Xae,isRegExpLiteral:Jae,isRestElement:zae,isTemplateLiteral:Qae,isVariableDeclarator:Zae,toBindingIdentifierName:eoe}=Vae;function toe(e){let t=e.params.findIndex(r=>Gae(r)||zae(r));return t===-1?e.params.length:t}var roe=yA.default.statement(` (function (FUNCTION_KEY) { function FUNCTION_ID() { return FUNCTION_KEY.apply(this, arguments); } FUNCTION_ID.toString = function () { return FUNCTION_KEY.toString(); } return FUNCTION_ID; })(FUNCTION) `),noe=yA.default.statement(` (function (FUNCTION_KEY) { function* FUNCTION_ID() { return yield* FUNCTION_KEY.apply(this, arguments); } FUNCTION_ID.toString = function () { return FUNCTION_KEY.toString(); }; return FUNCTION_ID; })(FUNCTION) `),soe={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name!==t.name||e.scope.getBindingIdentifier(t.name)!==t.outerDeclar||(t.selfReference=!0,e.stop())}};function ioe(e){return Hae(e)?"null":Jae(e)?`_${e.pattern}_${e.flags}`:Qae(e)?e.quasis.map(t=>t.value.raw).join(""):e.value!==void 0?e.value+"":""}function aoe(e,t,r,n){if(e.selfReference)if(n.hasBinding(r.name)&&!n.hasGlobal(r.name))n.rename(r.name);else{if(!gA(t))return;let s=roe;t.generator&&(s=noe);let i=s({FUNCTION:t,FUNCTION_ID:r,FUNCTION_KEY:n.generateUidIdentifier(r.name)}).expression,a=i.callee.body.body[0].params;for(let o=0,l=toe(t);o(n=arguments[0])==null?void 0:n.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let{thisBinding:n,fnPath:s}=vA(this,r,e,t);if(s.ensureBlock(),Ioe(s,"FunctionExpression"),!r){let i=n?null:s.scope.generateUidIdentifier("arrowCheckId");return i&&s.parentPath.scope.push({id:i,init:Eoe([])}),s.get("body").unshiftContainer("body",bA(Bi(this.hub.addHelper("newArrowCheck"),[oo(),Tt(i?i.name:n)]))),s.replaceWith(Bi(Kr((0,coe.default)(this,!0)||s.node,Tt("bind")),[i?Tt(i.name):oo()])),s.get("callee.object")}return s}var _oe=(0,qy.merge)([{CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}},Ry.default]);function vA(e,t=!0,r=!0,n=!0){let s,i=e.findParent(m=>{if(m.isArrowFunctionExpression()){var y;return(y=s)!=null||(s=m),!1}return m.isFunction()||m.isProgram()||m.isClassProperty({static:!1})||m.isClassPrivateProperty({static:!1})}),a=i.isClassMethod({kind:"constructor"});if(i.isClassProperty()||i.isClassPrivateProperty())if(s)i=s;else if(r)e.replaceWith(Bi(Uy([],Poe(e.node)),[])),i=e.get("callee"),e=i.get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:o,argumentsPaths:l,newTargetPaths:u,superProps:c,superCalls:f}=Roe(e);if(a&&f.length>0){if(!r)throw f[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(!n)throw f[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 m=[];i.traverse(_oe,{allSuperCalls:m});let y=joe(i);m.forEach(p=>{let E=Tt(y);E.loc=p.node.callee.loc,p.get("callee").replaceWith(E)})}if(l.length>0){let m=lo(i,"arguments",()=>{let y=()=>Tt("arguments");return i.scope.path.isProgram()?poe(Ly("===",Aoe("typeof",y()),EA("undefined")),i.scope.buildUndefinedNode(),y()):y()});l.forEach(y=>{let p=Tt(m);p.loc=y.node.loc,y.replaceWith(p)})}if(u.length>0){let m=lo(i,"newtarget",()=>goe(Tt("new"),Tt("target")));u.forEach(y=>{let p=Tt(m);p.loc=y.node.loc,y.replaceWith(p)})}if(c.length>0){if(!r)throw c[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.");c.reduce((y,p)=>y.concat(koe(p)),[]).forEach(y=>{let p=y.node.computed?"":y.get("property").node.name,E=y.parentPath,T=E.isAssignmentExpression({left:y.node}),O=E.isCallExpression({callee:y.node}),C=E.isTaggedTemplateExpression({tag:y.node}),v=Loe(i,T,p),I=[];if(y.node.computed&&I.push(y.get("property").node),T){let B=E.node.right;I.push(B)}let k=Bi(Tt(v),I);O?(E.unshiftContainer("arguments",oo()),y.replaceWith(Kr(k,Tt("call"))),o.push(E.get("arguments.0"))):T?E.replaceWith(k):C?(y.replaceWith(Bi(Kr(k,Tt("bind"),!1),[oo()])),o.push(y.get("arguments.0"))):y.replaceWith(k)})}let d;return(o.length>0||!t)&&(d=Foe(i,a),(t||a&&TA(i))&&(o.forEach(m=>{let y=m.isJSX()?hoe(d):Tt(d);y.loc=m.node.loc,m.replaceWith(y)}),t||(d=null))),{thisBinding:d,fnPath:e}}function Noe(e){return yoe.includes(e)}function koe(e){if(e.parentPath.isAssignmentExpression()&&e.parentPath.node.operator!=="="){let r=e.parentPath,n=r.node.operator.slice(0,-1),s=r.node.right,i=Noe(n);if(e.node.computed){let a=e.scope.generateDeclaredUidIdentifier("tmp"),o=e.node.object,l=e.node.property;r.get("left").replaceWith(Kr(o,Ls("=",a,l),!0)),r.get("right").replaceWith(t(i?"=":n,Kr(o,Tt(a.name),!0),s))}else{let a=e.node.object,o=e.node.property;r.get("left").replaceWith(Kr(a,o)),r.get("right").replaceWith(t(i?"=":n,Kr(a,Tt(o.name)),s))}return i?r.replaceWith(moe(n,r.node.left,r.node.right)):r.node.operator="=",[r.get("left"),r.get("right").get("left")]}else if(e.parentPath.isUpdateExpression()){let r=e.parentPath,n=e.scope.generateDeclaredUidIdentifier("tmp"),s=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,i=[Ls("=",n,Kr(e.node.object,s?Ls("=",s,e.node.property):e.node.property,e.node.computed)),Ls("=",Kr(e.node.object,s?Tt(s.name):e.node.property,e.node.computed),Ly(e.parentPath.node.operator[0],Tt(n.name),boe(1)))];e.parentPath.node.prefix||i.push(Tt(n.name)),r.replaceWith(Soe(i));let a=r.get("expressions.0.right"),o=r.get("expressions.1.left");return[a,o]}return[e];function t(r,n,s){return r==="="?Ls("=",n,s):Ly(r,n,s)}}function TA(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var Boe=(0,qy.merge)([{CallExpression(e,{supers:t,thisBinding:r}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,Ls("=",Tt(r),Tt("this"))])))}},Ry.default]);function Foe(e,t){return lo(e,"this",r=>{if(!t||!TA(e))return oo();e.traverse(Boe,{supers:new WeakSet,thisBinding:r})})}function joe(e){return lo(e,"supercall",()=>{let t=e.scope.generateUidIdentifier("args");return Uy([voe(t)],Bi(My(),[xoe(Tt(t.name))]))})}function Loe(e,t,r){return lo(e,`superprop_${t?"set":"get"}:${r||""}`,()=>{let s=[],i;if(r)i=Kr(My(),Tt(r));else{let a=e.scope.generateUidIdentifier("prop");s.unshift(a),i=Kr(My(),Tt(a.name),!0)}if(t){let a=e.scope.generateUidIdentifier("value");s.push(a),i=Ls("=",i,Tt(a.name))}return Uy(s,i)})}function lo(e,t,r){let n="binding:"+t,s=e.getData(n);if(!s){let i=e.scope.generateUidIdentifier(t);s=i.name,e.setData(n,s),e.scope.push({id:i,init:r(s)})}return s}var Moe=(0,qy.merge)([{ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){e.node.name==="this"&&(!e.parentPath.isJSXMemberExpression({object:e.node})&&!e.parentPath.isJSXOpeningElement({name:e.node})||t.push(e))},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){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}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}},Ry.default]);function Roe(e){let t=[],r=[],n=[],s=[],i=[];return e.traverse(Moe,{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:s,superCalls:i}),{thisPaths:t,argumentsPaths:r,newTargetPaths:n,superProps:s,superCalls:i}}});var DA=b(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt._guessExecutionStatusRelativeTo=lle;Dt._resolve=ple;Dt.canHaveVariableDeclarationOrExpression=ele;Dt.canSwapBetweenExpressionAndStatement=tle;Dt.equals=Qoe;Dt.getSource=ile;Dt.has=wA;Dt.is=void 0;Dt.isCompletionRecord=rle;Dt.isConstantExpression=dle;Dt.isInStrictMode=hle;Dt.isNodeType=Zoe;Dt.isStatementOrBlock=nle;Dt.isStatic=Joe;Dt.isnt=zoe;Dt.matchesPattern=Xoe;Dt.referencesImport=sle;Dt.resolve=fle;Dt.willIMaybeExecuteBefore=ale;var qoe=Oe(),{STATEMENT_OR_BLOCK_KEYS:Uoe,VISITOR_KEYS:Voe,isBlockStatement:CA,isExpression:$oe,isIdentifier:Woe,isLiteral:Koe,isStringLiteral:Goe,isType:Hoe,matchesPattern:Yoe}=qoe;function Xoe(e,t){return Yoe(this.node,e,t)}function wA(e){let t=this.node&&this.node[e];return t&&Array.isArray(t)?!!t.length:!!t}function Joe(){return this.scope.isStatic(this.node)}var F2e=Dt.is=wA;function zoe(e){return!this.has(e)}function Qoe(e,t){return this.node[e]===t}function Zoe(e){return Hoe(this.type,e)}function ele(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function tle(e){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?CA(e):this.isBlockStatement()?$oe(e):!1}function rle(e){let t=this,r=!0;do{let{type:n,container:s}=t;if(!r&&(t.isFunction()||n==="StaticBlock"))return!!e;if(r=!1,Array.isArray(s)&&t.key!==s.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0}function nle(){return this.parentPath.isLabeledStatement()||CA(this.container)?!1:Uoe.includes(this.key)}function sle(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?Goe(this.node.property,{value:t}):this.node.property.name===t)){let i=this.get("object");return i.isReferencedIdentifier()&&i.referencesImport(e,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(!r||r.kind!=="module")return!1;let n=r.path,s=n.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===e){if(!t)return!0}else return!1;return!!(n.isImportDefaultSpecifier()&&t==="default"||n.isImportNamespaceSpecifier()&&t==="*"||n.isImportSpecifier()&&Woe(n.node.imported,{name:t}))}function ile(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function ale(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function xA(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function ole(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 PA(e,t){for(let r=0;r=0)return"after";if(s.this.indexOf(t)>=0)return"before";let i,a={target:0,this:0};for(;!i&&a.this=0?i=c:a.this++}if(!i)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(PA(s.this,a.this-1)||PA(s.target,a.target-1))return"unknown";let o={this:s.this[a.this-1],target:s.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=Voe[i.type],u={this:l.indexOf(o.this.parentKey),target:l.indexOf(o.target.parentKey)};return u.target>u.this?"before":"after"}function ule(e,t,r){if(t.isFunctionDeclaration()){if(t.parentPath.isExportDeclaration())return"unknown"}else return Vy(e,t,r)==="before"?"before":"unknown";let n=t.scope.getBinding(t.node.id.name);if(!n.references)return"before";let s=n.referencePaths,i;for(let a of s){if(!!a.find(u=>u.node===t.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let l=Vy(e,a,r);if(i&&i!==l)return"unknown";i=l}return i}function cle(e,t,r){let n=r.get(e.node),s;if(!n)r.set(e.node,n=new Map);else if(s=n.get(t.node))return s===AA?"unknown":s;n.set(t.node,AA);let i=ule(e,t,r);return n.set(t.node,i),i}function fle(e,t){return this._resolve(e,t)||this}function ple(e,t){if(!(t&&t.indexOf(this)>=0))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 r=this.scope.getBinding(this.node.name);if(!r||!r.constant||r.kind==="module")return;if(r.path!==this){let n=r.path.resolve(e,t);return this.find(s=>s.node===n.node)?void 0:n}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){let r=this.toComputedKey();if(!Koe(r))return;let n=r.value,s=this.get("object").resolve(e,t);if(s.isObjectExpression()){let i=s.get("properties");for(let a of i){if(!a.isProperty())continue;let o=a.get("key"),l=a.isnt("computed")&&o.isIdentifier({name:n});if(l=l||o.isLiteral({value:n}),l)return a.get("value").resolve(e,t)}}else if(s.isArrayExpression()&&!isNaN(+n)){let a=s.get("elements")[n];if(a)return a.resolve(e,t)}}}}function dle(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);return e?e.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(e=>e.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1: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()}return!1}function hle(){return!!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let n;if(r.isFunction())n=r.node.body;else if(r.isProgram())n=r.node;else return!1;for(let s of n.directives)if(s.value.value==="use strict")return!0})}});var _A=b(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At._call=gle;At._getQueueContexts=Fle;At._resyncKey=wle;At._resyncList=Dle;At._resyncParent=Cle;At._resyncRemoved=Ile;At.call=yle;At.isBlacklisted=At.isDenylisted=ble;At.popContext=Ole;At.pushContext=_le;At.requeue=Ble;At.resync=Ale;At.setContext=Ple;At.setKey=kle;At.setScope=xle;At.setup=Nle;At.skip=vle;At.skipKey=Tle;At.stop=Sle;At.visit=Ele;var mle=Ul(),IA=as();function yle(e){let t=this.opts;if(this.debug(e),this.node&&this._call(t[e]))return!0;if(this.node){var r;return this._call((r=t[this.node.type])==null?void 0:r[e])}return!1}function gle(e){if(!e)return!1;for(let t of e){if(!t)continue;let r=this.node;if(!r)return!0;let n=t.call(this.state,this,this.state);if(n&&typeof n=="object"&&typeof n.then=="function")throw new 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(n)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==r||this._traverseFlags>0)return!0}return!1}function ble(){var e;let t=(e=this.opts.denylist)!=null?e:this.opts.blacklist;return t&&t.indexOf(this.node.type)>-1}function OA(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function Ele(){var e,t;if(!this.node||this.isDenylisted()||(e=(t=this.opts).shouldSkip)!=null&&e.call(t,this))return!1;let r=this.context;return this.shouldSkip||this.call("enter")?(this.debug("Skip..."),this.shouldStop):(OA(this,r),this.debug("Recursing into..."),this.shouldStop=(0,mle.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),OA(this,r),this.call("exit"),this.shouldStop)}function vle(){this.shouldSkip=!0}function Tle(e){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[e]=!0}function Sle(){this._traverseFlags|=IA.SHOULD_SKIP|IA.SHOULD_STOP}function xle(){var e,t;if((e=this.opts)!=null&&e.noScope)return;let r=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement())&&(r=r.parentPath);let n;for(;r&&!n;){var s;if((s=r.opts)!=null&&s.noScope)return;n=r.scope,r=r.parentPath}this.scope=this.getScope(n),(t=this.scope)==null||t.init()}function Ple(e){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),this.setScope(),this}function Ale(){this.removed||(this._resyncParent(),this._resyncList(),this._resyncKey())}function Cle(){this.parentPath&&(this.parent=this.parentPath.node)}function wle(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function _le(e){this.contexts.push(e),this.setContext(e)}function Nle(e,t,r,n){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,this.setKey(n)}function kle(e){var t;this.key=e,this.node=this.container[this.key],this.type=(t=this.node)==null?void 0:t.type}function Ble(e=this){if(e.removed)return;let t=this.contexts;for(let r of t)r.maybeQueue(e)}function Fle(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,!!e);)t=e.contexts;return t}});var NA=b(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.hooks=void 0;var M2e=Lu.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())return e.key==="left"?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}]});var BA=b(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os._assertUnremoved=Kle;os._callRemovalHooks=Vle;os._markRemoved=Wle;os._remove=$le;os._removeFromScope=Ule;os.remove=qle;var jle=NA(),Lle=Ds(),kA=as(),Mle=Oe(),{getBindingIdentifiers:Rle}=Mle;function qle(){var e;if(this._assertUnremoved(),this.resync(),(e=this.opts)!=null&&e.noScope||this._removeFromScope(),this._callRemovalHooks()){this._markRemoved();return}this.shareCommentsWithSiblings(),this._remove(),this._markRemoved()}function Ule(){let e=Rle(this.node,!1,!1,!0);Object.keys(e).forEach(t=>this.scope.removeBinding(t))}function Vle(){if(this.parentPath){for(let e of jle.hooks)if(e(this,this.parentPath))return!0}}function $le(){Array.isArray(this.container)?(this.container.splice(this.key,1),this.updateSiblingKeys(this.key,-1)):this._replaceWith(null)}function Wle(){this._traverseFlags|=kA.SHOULD_SKIP|kA.REMOVED,this.parent&&(0,Lle.getCachedPaths)(this.hub,this.parent).delete(this.node),this.node=null}function Kle(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var jA=b(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.default=void 0;var FA=Oe(),Gle=FA,{react:Hle}=FA,{cloneNode:Yle,jsxExpressionContainer:Xle,variableDeclaration:Jle,variableDeclarator:zle}=Gle,Qle={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&Hle.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if(e.node.name==="this"){let n=e.scope;do if(n.path.isFunction()&&!n.path.isArrowFunctionExpression())break;while(n=n.parent);n&&t.breakOnScopePaths.push(n.path)}let r=e.scope.getBinding(e.node.name);if(r){for(let n of r.constantViolations)if(n.scope!==r.path.scope){t.mutableBinding=!0,e.stop();return}r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r)}}},$y=class{constructor(t,r){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=r,this.path=t,this.attachAfter=!1}isCompatibleScope(t){for(let r of Object.keys(this.bindings)){let n=this.bindings[r];if(!t.bindingIdentifierEquals(r,n.identifier))return!1}return!0}getCompatibleScopes(){let t=this.path.scope;do{if(this.isCompatibleScope(t))this.scopes.push(t);else break;if(this.breakOnScopePaths.indexOf(t.path)>=0)break}while(t=t.parent)}getAttachmentPath(){let t=this._getAttachmentPath();if(!t)return;let r=t.scope;if(r.path===t&&(r=t.scope.parent),r.path.isProgram()||r.path.isFunction())for(let n of Object.keys(this.bindings)){if(!r.hasOwnBinding(n))continue;let s=this.bindings[n];if(s.kind==="param"||s.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(s.path).key>=t.key){this.attachAfter=!0,t=s.path;for(let a of s.constantViolations)this.getAttachmentParentForPath(a).key>t.key&&(t=a)}}return t}_getAttachmentPath(){let r=this.scopes.pop();if(r){if(r.path.isFunction())if(this.hasOwnParamBindings(r)){if(this.scope===r)return;let n=r.path.get("body").get("body");for(let s=0;s{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r._containerInsert=hue;_r._containerInsertAfter=yue;_r._containerInsertBefore=mue;_r._verifyNodeList=vue;_r.hoist=xue;_r.insertAfter=bue;_r.insertBefore=due;_r.pushContainer=Sue;_r.unshiftContainer=Tue;_r.updateSiblingKeys=Eue;var Zle=Ds(),eue=jA(),Gy=as(),tue=Oe(),{arrowFunctionExpression:rue,assertExpression:nue,assignmentExpression:sue,blockStatement:LA,callExpression:iue,cloneNode:Wy,expressionStatement:Ky,isAssignmentExpression:aue,isCallExpression:oue,isExportNamedDeclaration:MA,isExpression:lue,isIdentifier:uue,isSequenceExpression:cue,isSuper:fue,thisExpression:pue}=tue;function due(e){this._assertUnremoved();let t=this._verifyNodeList(e),{parentPath:r,parent:n}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||MA(n)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&this.key==="init")return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return this._containerInsertBefore(t);if(this.isStatementOrBlock()){let s=this.node,i=s&&(!this.isExpressionStatement()||s.expression!=null);return this.replaceWith(LA(i?[s]:[])),this.unshiftContainer("body",t)}else throw new 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 hue(e,t){this.updateSiblingKeys(e,t.length);let r=[];this.container.splice(e,0,...t);for(let i=0;ie[e.length-1];function qA(e){return cue(e.parent)&&(RA(e.parent.expressions)!==e.node||qA(e.parentPath))}function gue(e,t){if(!aue(e)||!uue(e.left))return!1;let r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}function bue(e){if(this._assertUnremoved(),this.isSequenceExpression())return RA(this.get("expressions")).insertAfter(e);let t=this._verifyNodeList(e),{parentPath:r,parent:n}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||MA(n)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map(s=>lue(s)?Ky(s):s));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&this.key==="init"){if(this.node){let s=this.node,{scope:i}=this;if(i.path.isPattern())return nue(s),this.replaceWith(iue(rue([],s),[])),this.get("callee.body").insertAfter(t),[this];if(qA(this))t.unshift(s);else if(oue(s)&&fue(s.callee))t.unshift(s),t.push(pue());else if(gue(s,i))t.unshift(s),t.push(Wy(s.left));else if(i.isPure(s,!0))t.push(s);else{r.isMethod({computed:!0,key:s})&&(i=i.parent);let a=i.generateDeclaredUidIdentifier();t.unshift(Ky(sue("=",Wy(a),s))),t.push(Ky(Wy(a)))}}return this.replaceExpressionWithStatements(t)}else{if(Array.isArray(this.container))return this._containerInsertAfter(t);if(this.isStatementOrBlock()){let s=this.node,i=s&&(!this.isExpressionStatement()||s.expression!=null);return this.replaceWith(LA(i?[s]:[])),this.pushContainer("body",t)}else throw new 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 Eue(e,t){if(!this.parent)return;let r=(0,Zle.getCachedPaths)(this.hub,this.parent)||[];for(let[,n]of r)typeof n.key=="number"&&n.key>=e&&(n.key+=t)}function vue(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt._getKey=Uue;Xt._getPattern=Vue;Xt.get=que;Xt.getAllNextSiblings=Mue;Xt.getAllPrevSiblings=Rue;Xt.getBindingIdentifierPaths=Kue;Xt.getBindingIdentifiers=$ue;Xt.getCompletionRecords=Bue;Xt.getNextSibling=Lue;Xt.getOpposite=_ue;Xt.getOuterBindingIdentifierPaths=Gue;Xt.getOuterBindingIdentifiers=Wue;Xt.getPrevSibling=jue;Xt.getSibling=Fue;var Yy=as(),Pue=Oe(),{getBindingIdentifiers:$A,getOuterBindingIdentifiers:Aue,isDeclaration:Cue,numericLiteral:wue,unaryExpression:Due}=Pue,Xy=0,uo=1;function Iue(e){return{type:Xy,path:e}}function Oue(e){return{type:uo,path:e}}function _ue(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function Fi(e,t,r){return e&&t.push(...ji(e,r)),t}function Nue(e,t,r){let n=[];for(let s=0;s{t.type=uo})}function Hy(e,t){e.forEach(r=>{r.path.isBreakStatement({label:null})&&(t?r.path.replaceWith(Due("void",wue(0))):r.path.remove())})}function VA(e,t){let r=[];if(t.canHaveBreak){let n=[];for(let s=0;s0&&o.every(l=>l.type===uo)){n.length>0&&o.every(l=>l.path.isBreakStatement({label:null}))?(kue(n),r.push(...n),n.some(l=>l.path.isDeclaration())&&(r.push(...o),Hy(o,!0)),Hy(o,!1)):(r.push(...o),t.shouldPopulateBreak||Hy(o,!0));break}if(s===e.length-1)r.push(...o);else{n=[];for(let l=0;l=0;n--){let s=ji(e[n],t);if(s.length>1||s.length===1&&!s[0].path.isVariableDeclaration()){r.push(...s);break}}return r}function ji(e,t){let r=[];if(e.isIfStatement())r=Fi(e.get("consequent"),r,t),r=Fi(e.get("alternate"),r,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return Fi(e.get("body"),r,t);if(e.isProgram()||e.isBlockStatement())return VA(e.get("body"),t);if(e.isFunction())return ji(e.get("body"),t);if(e.isTryStatement())r=Fi(e.get("block"),r,t),r=Fi(e.get("handler"),r,t);else{if(e.isCatchClause())return Fi(e.get("body"),r,t);if(e.isSwitchStatement())return Nue(e.get("cases"),r,t);if(e.isSwitchCase())return VA(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});e.isBreakStatement()?r.push(Oue(e)):r.push(Iue(e))}}return r}function Bue(){return ji(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map(t=>t.path)}function Fue(e){return Yy.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)}function jue(){return this.getSibling(this.key-1)}function Lue(){return this.getSibling(this.key+1)}function Mue(){let e=this.key,t=this.getSibling(++e),r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r}function Rue(){let e=this.key,t=this.getSibling(--e),r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r}function que(e,t=!0){t===!0&&(t=this.context);let r=e.split(".");return r.length===1?this._getKey(e,t):this._getPattern(r,t)}function Uue(e,t){let r=this.node,n=r[e];return Array.isArray(n)?n.map((s,i)=>Yy.default.get({listKey:e,parentPath:this,parent:r,container:n,key:i}).setContext(t)):Yy.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}function Vue(e,t){let r=this;for(let n of e)n==="."?r=r.parentPath:Array.isArray(r)?r=r[n]:r=r.get(n,t);return r}function $ue(e){return $A(this.node,e)}function Wue(e){return Aue(this.node,e)}function Kue(e=!1,t=!1){let n=[this],s=Object.create(null);for(;n.length;){let i=n.shift();if(!i||!i.node)continue;let a=$A.keys[i.node.type];if(i.isIdentifier()){e?(s[i.node.name]=s[i.node.name]||[]).push(i):s[i.node.name]=i;continue}if(i.isExportDeclaration()){let o=i.get("declaration");Cue(o)&&n.push(o);continue}if(t){if(i.isFunctionDeclaration()){n.push(i.get("id"));continue}if(i.isFunctionExpression())continue}if(a)for(let o=0;o{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.addComment=zue;co.addComments=Que;co.shareCommentsWithSiblings=Jue;var Hue=Oe(),{addComment:Yue,addComments:Xue}=Hue;function Jue(){if(typeof this.key=="string")return;let e=this.node;if(!e)return;let t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;let n=this.getSibling(this.key-1),s=this.getSibling(this.key+1),i=!!n.node,a=!!s.node;i&&(r&&n.addComments("trailing",KA(r,n.node.trailingComments)),t&&!a&&n.addComments("trailing",t)),a&&(t&&s.addComments("leading",KA(t,s.node.leadingComments)),r&&!i&&s.addComments("leading",r))}function KA(e,t){if(!(t!=null&&t.length))return e;let r=new Set(t);return e.filter(n=>!r.has(n))}function zue(e,t,r){Yue(this.node,e,t,r)}function Que(e,t){Xue(this.node,e,t)}});var as=b(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.default=on.SHOULD_STOP=on.SHOULD_SKIP=on.REMOVED=void 0;var Zue=kp(),ece=Os(),tce=Vr(),rce=zh(),YA=Oe(),Ru=YA,nce=Ds(),sce=lu(),ice=rx(),ace=Tx(),oce=KP(),lce=XP(),uce=SA(),XA=DA(),cce=_A(),fce=BA(),pce=UA(),dce=WA(),hce=GA(),mce=jh(),{validate:yce}=YA,HA=ece("babel"),Jy=on.REMOVED=1,zy=on.SHOULD_STOP=2,Qy=on.SHOULD_SKIP=4,ls=class e{constructor(t,r){this.contexts=[],this.state=null,this.opts=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.parent=r,this.hub=t,this.data=null,this.context=null,this.scope=null}static get({hub:t,parentPath:r,parent:n,container:s,listKey:i,key:a}){if(!t&&r&&(t=r.hub),!n)throw new Error("To get a node path the parent needs to exist");let o=s[a],l=nce.getOrCreateCachedPaths(t,n),u=l.get(o);return u||(u=new e(t,n),o&&l.set(o,u)),u.setup(r,s,i,a),u}getScope(t){return this.isScope()?new rce.default(this):t}setData(t,r){return this.data==null&&(this.data=Object.create(null)),this.data[t]=r}getData(t,r){this.data==null&&(this.data=Object.create(null));let n=this.data[t];return n===void 0&&r!==void 0&&(n=this.data[t]=r),n}hasNode(){return this.node!=null}buildCodeFrameError(t,r=SyntaxError){return this.hub.buildError(this.node,t,r)}traverse(t,r){(0,tce.default)(this.node,t,this.scope,r,this)}set(t,r){yce(this.node,t,r),this.node[t]=r}getPathLocation(){let t=[],r=this;do{let n=r.key;r.inList&&(n=`${r.listKey}[${n}]`),t.unshift(n)}while(r=r.parentPath);return t.join(".")}debug(t){HA.enabled&&HA(`${this.getPathLocation()} ${this.type}: ${t}`)}toString(){return(0,sce.default)(this.node).code}get inList(){return!!this.listKey}set inList(t){t||(this.listKey=null)}get parentKey(){return this.listKey||this.key}get shouldSkip(){return!!(this._traverseFlags&Qy)}set shouldSkip(t){t?this._traverseFlags|=Qy:this._traverseFlags&=~Qy}get shouldStop(){return!!(this._traverseFlags&zy)}set shouldStop(t){t?this._traverseFlags|=zy:this._traverseFlags&=~zy}get removed(){return!!(this._traverseFlags&Jy)}set removed(t){t?this._traverseFlags|=Jy:this._traverseFlags&=~Jy}};Object.assign(ls.prototype,ice,ace,oce,lce,uce,XA,cce,fce,pce,dce,hce);ls.prototype._guessExecutionStatusRelativeToDifferentFunctions=XA._guessExecutionStatusRelativeTo;for(let e of Ru.TYPES){let t=`is${e}`,r=Ru[t];ls.prototype[t]=function(n){return r(this.node,n)},ls.prototype[`assert${e}`]=function(n){if(!r(this.node,n))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(ls.prototype,mce);for(let e of Object.keys(Zue))e[0]!=="_"&&(Ru.TYPES.includes(e)||Ru.TYPES.push(e));var K2e=on.default=ls});var JA=b(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.default=void 0;var gce=as(),bce=Oe(),{VISITOR_KEYS:Ece}=bce,Zy=class{constructor(t,r,n,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=t,this.state=n,this.opts=r}shouldVisit(t){let r=this.opts;if(r.enter||r.exit||r[t.type])return!0;let n=Ece[t.type];if(!(n!=null&&n.length))return!1;for(let s of n)if(t[s])return!0;return!1}create(t,r,n,s){return gce.default.get({parentPath:this.parentPath,parent:t,container:r,key:n,listKey:s})}maybeQueue(t,r){this.queue&&(r?this.queue.push(t):this.priorityQueue.push(t))}visitMultiple(t,r,n){if(t.length===0)return!1;let s=[];for(let i=0;i{"use strict";Object.defineProperty(e0,"__esModule",{value:!0});e0.traverseNode=xce;var vce=JA(),Tce=Oe(),{VISITOR_KEYS:Sce}=Tce;function xce(e,t,r,n,s,i,a){let o=Sce[e.type];if(!o)return!1;let l=new vce.default(r,t,n,s);if(a)return i!=null&&i[s.parentKey]?!1:l.visitQueue([s]);for(let u of o)if(!(i!=null&&i[u])&&l.visit(e,u))return!0;return!1}});var zA=b(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.default=void 0;var t0=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(t,r,n=TypeError){return new n(r)}};Uu.default=t0});var Vr=b(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});Object.defineProperty(An,"Hub",{enumerable:!0,get:function(){return Dce.default}});Object.defineProperty(An,"NodePath",{enumerable:!0,get:function(){return Cce.default}});Object.defineProperty(An,"Scope",{enumerable:!0,get:function(){return wce.default}});An.visitors=An.default=void 0;var fo=ja();An.visitors=fo;var Pce=Oe(),Ace=Ds(),QA=Ul(),Cce=as(),wce=zh(),Dce=zA(),{VISITOR_KEYS:Ice,removeProperties:Oce,traverseFast:ZA}=Pce;function Nr(e,t={},r,n,s,i){if(e){if(!t.noScope&&!r&&e.type!=="Program"&&e.type!=="File")throw new 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(!s&&i)throw new Error("visitSelf can only be used when providing a NodePath.");Ice[e.type]&&(fo.explode(t),(0,QA.traverseNode)(e,t,r,n,s,null,i))}}var J2e=An.default=Nr;Nr.visitors=fo;Nr.verify=fo.verify;Nr.explode=fo.explode;Nr.cheap=function(e,t){ZA(e,t)};Nr.node=function(e,t,r,n,s,i){(0,QA.traverseNode)(e,t,r,n,s,i)};Nr.clearNode=function(e,t){Oce(e,t)};Nr.removeProperties=function(e,t){return ZA(e,Nr.clearNode,t),e};function _ce(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}Nr.hasType=function(e,t,r){if(r!=null&&r.includes(e.type))return!1;if(e.type===t)return!0;let n={has:!1,type:t};return Nr(e,{noScope:!0,denylist:r,enter:_ce},null,n),n.has};Nr.cache=Ace});var eC=b(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.default=void 0;var Nce=ki();function yt(e,t){return Object.freeze({minVersion:e,ast:()=>Nce.default.program.ast(t,{preserveComments:!0})})}var Q2e=Vu.default=Object.freeze({AsyncGenerator:yt("7.0.0-beta.0",'import OverloadYield from"OverloadYield";export default function AsyncGenerator(e){var r,t;function resume(r,t){try{var n=e[r](t),o=n.value,u=o instanceof OverloadYield;Promise.resolve(u?o.v:o).then((function(t){if(u){var i="return"===r?"return":"next";if(!o.k||t.done)return resume(i,t);t=e[i](t).value}settle(n.done?"return":"normal",t)}),(function(e){resume("throw",e)}))}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:!0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e,n){return new Promise((function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))}))},"function"!=typeof e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._invoke("throw",e)},AsyncGenerator.prototype.return=function(e){return this._invoke("return",e)};'),OverloadYield:yt("7.18.14","export default function _OverloadYield(t,e){this.v=t,this.k=e}"),applyDecs:yt("7.17.8",'import setFunctionName from"setFunctionName";import toPropertyKey from"toPropertyKey";function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"getMetadata"),old_assertMetadataKey(o);var i=e[o];if(void 0!==i)if(1===t){var n=i.public;if(void 0!==n)return n[a]}else if(2===t){var l=i.private;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_assertNotFinished(r,"setMetadata"),old_assertMetadataKey(o);var n=e[o];if(void 0===n&&(n=e[o]={}),1===t){var l=n.public;void 0===l&&(l=n.public={}),l[a]=i}else if(2===t){var s=n.priv;void 0===s&&(s=n.private=new Map),s.set(a,i)}else n.constructor=i}}}function old_convertMetadataMapToFinal(e,t){var a=e[Symbol.metadata||Symbol.for("Symbol.metadata")],r=Object.getOwnPropertySymbols(t);if(0!==r.length){for(var o=0;o=0;m--){var b;void 0!==(p=old_memberDec(h[m],r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?b=p:1===o?(b=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f=p,void 0!==b&&(void 0===d?d=b:"function"==typeof d?d=[d,b]:d.push(b)))}if(0===o||1===o){if(void 0===d)d=function(e,t){return t};else if("function"!=typeof d){var g=d;d=function(e,t){for(var a=t,r=0;r3,m=v>=5;if(m?(u=t,f=r,0!=(v-=5)&&(p=n=n||[])):(u=t.prototype,f=a,0!==v&&(p=i=i||[])),0!==v&&!h){var b=m?s:l,g=b.get(y)||0;if(!0===g||3===g&&4!==v||4===g&&3!==v)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+y);!g&&v>2?b.set(y,v):b.set(y,!0)}old_applyMemberDec(e,u,d,y,v,m,h,f,p)}}old_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push((function(e){for(var a=0;a0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{var c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d=r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,(function(){for(var e=0;e=0;v--){var g;void 0!==(f=memberDec(h[v],a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),0===n?g=f:1===n?(g=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f,void 0!==g&&(void 0===l?l=g:"function"==typeof l?l=[l,g]:l.push(g)))}if(0===n||1===n){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var y=l;l=function(e,t){for(var r=t,a=0;a3,h=f>=5;if(h?(l=t,0!=(f-=5)&&(u=n=n||[])):(l=t.prototype,0!==f&&(u=a=a||[])),0!==f&&!d){var v=h?s:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(assertValidReturnValue(10,c),n=c)}e.push(n,(function(){for(var e=0;e=0;g--){var y;void 0!==(p=memberDec(v[g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var m=l;l=function(e,t){for(var r=t,n=0;n3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0===g||3===g&&4!==f||4===g&&3!==f)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}applyMemberDec(a,l,c,p,f,h,d,u)}}return pushInitializers(a,r),pushInitializers(a,n),a}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var o={v:!1};try{var s=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,o)})}finally{o.v=!0}void 0!==s&&(assertValidReturnValue(10,s),n=s)}return[n,function(){for(var e=0;e=0;m--){var b;void 0!==(h=memberDec(g[m],n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?b=h:1===a?(b=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h,void 0!==b&&(void 0===l?l=b:"function"==typeof l?l=[l,b]:l.push(b)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof l){var I=l;l=function(e,t){for(var r=t,n=0;n3,y=d>=5,g=r;if(y?(f=e,0!=(d-=5)&&(p=a=a||[]),v&&!i&&(i=function(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b&&3!==d)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}finally{s.v=!0}void 0!==o&&(assertValidReturnValue(10,o),n=o)}return[n,function(){for(var e=0;e=0;j-=r?2:1){var D=v[j],E=r?v[j-1]:void 0,I={},O={kind:["field","accessor","method","getter","setter","class"][o],name:n,metadata:a,addInitializer:function(e,t){if(e.v)throw new Error("attempted to call addInitializer after decoration was finished");s(t,"An initializer","be",!0),c.push(t)}.bind(null,I)};try{if(b)(y=s(D.call(E,P,O),"class decorators","return"))&&(P=y);else{var k,F;O.static=l,O.private=f,f?2===o?k=function(e){return m(e),w.value}:(o<4&&(k=i(w,"get",m)),3!==o&&(F=i(w,"set",m))):(k=function(e){return e[n]},(o<2||4===o)&&(F=function(e,t){e[n]=t}));var N=O.access={has:f?h.bind():function(e){return n in e}};if(k&&(N.get=k),F&&(N.set=F),P=D.call(E,d?{get:w.get,set:w.set}:w[A],O),d){if("object"==typeof P&&P)(y=s(P.get,"accessor.get"))&&(w.get=y),(y=s(P.set,"accessor.set"))&&(w.set=y),(y=s(P.init,"accessor.init"))&&S.push(y);else if(void 0!==P)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0")}else s(P,(p?"field":"method")+" decorators","return")&&(p?S.push(P):w[A]=P)}}finally{I.v=!0}}return(p||d)&&u.push((function(e,t){for(var r=S.length-1;r>=0;r--)t=S[r].call(e,t);return t})),p||b||(f?d?u.push(i(w,"get"),i(w,"set")):u.push(2===o?w[A]:i.call.bind(w[A])):Object.defineProperty(e,n,w)),P}function u(e,t){return Object.defineProperty(e,Symbol.metadata||Symbol.for("Symbol.metadata"),{configurable:!0,enumerable:!0,value:t})}if(arguments.length>=6)var l=a[Symbol.metadata||Symbol.for("Symbol.metadata")];var f=Object.create(null==l?null:l),p=function(e,t,r,n){var o,a,i=[],s=function(t){return checkInRHS(t)===e},u=new Map;function l(e){e&&i.push(c.bind(null,e))}for(var f=0;f3,y=16&d,v=!!(8&d),g=0==(d&=7),b=h+"/"+v;if(!g&&!m){var w=u.get(b);if(!0===w||3===w&&4!==d||4===w&&3!==d)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKey(h),d,n,v?a=a||[]:o=o||[],i,v,m,g,1===d,v&&m?s:r)}}return l(o),l(a),i}(e,t,o,f);return r.length||u(e,f),{e:p,get c(){var t=[];return r.length&&[u(applyDec(e,[r],n,e.name,5,f,t),f),c.bind(null,t,e)]}}}'),asyncGeneratorDelegate:yt("7.0.0-beta.0",'import OverloadYield from"OverloadYield";export default function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promise((function(n){n(t[e](r))})),{done:!1,value:new OverloadYield(r,1)}}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(t){return n?(n=!1,t):pump("next",t)},"function"==typeof t.throw&&(e.throw=function(t){if(n)throw n=!1,t;return pump("throw",t)}),"function"==typeof t.return&&(e.return=function(t){return n?(n=!1,t):pump("return",t)}),e}'),asyncIterator:yt("7.15.9",'export default function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.iterator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then((function(r){return{value:r,done:n}}))}return AsyncFromSyncIterator=function(r){this.s=r,this.n=r.next},AsyncFromSyncIterator.prototype={s:null,n:null,next:function(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments))},return:function(r){var n=this.s.return;return void 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))},throw:function(r){var n=this.s.return;return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))}},new AsyncFromSyncIterator(r)}'),awaitAsyncGenerator:yt("7.0.0-beta.0",'import OverloadYield from"OverloadYield";export default function _awaitAsyncGenerator(e){return new OverloadYield(e,0)}'),callSuper:yt("7.23.8",'import getPrototypeOf from"getPrototypeOf";import isNativeReflectConstruct from"isNativeReflectConstruct";import possibleConstructorReturn from"possibleConstructorReturn";export default function _callSuper(t,o,e){return o=getPrototypeOf(o),possibleConstructorReturn(t,isNativeReflectConstruct()?Reflect.construct(o,e||[],getPrototypeOf(t).constructor):o.apply(t,e))}'),checkInRHS:yt("7.20.5",`export default function _checkInRHS(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(null!==e?typeof e:"null"));return e}`),construct:yt("7.0.0-beta.0",'import setPrototypeOf from"setPrototypeOf";import isNativeReflectConstruct from"isNativeReflectConstruct";export default function _construct(t,e,r){if(isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&setPrototypeOf(p,r.prototype),p}'),defineAccessor:yt("7.20.7","export default function _defineAccessor(e,r,n,t){var c={configurable:!0,enumerable:!0};return c[e]=t,Object.defineProperty(r,n,c)}"),dispose:yt("7.22.0",'function dispose_SuppressedError(r,e){return"undefined"!=typeof SuppressedError?dispose_SuppressedError=SuppressedError:(dispose_SuppressedError=function(r,e){this.suppressed=r,this.error=e,this.stack=(new Error).stack},dispose_SuppressedError.prototype=Object.create(Error.prototype,{constructor:{value:dispose_SuppressedError,writable:!0,configurable:!0}})),new dispose_SuppressedError(r,e)}export default function _dispose(r,e,s){function next(){for(;r.length>0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(r,e):r,s=!0,next()}return next()}'),importDeferProxy:yt("7.23.0","export default function _importDeferProxy(e){var t=null,constValue=function(e){return function(){return e}},proxy=function(r){return function(n,o,f){return null===t&&(t=e()),r(t,o,f)}};return new Proxy({},{defineProperty:constValue(!1),deleteProperty:constValue(!1),get:proxy(Reflect.get),getOwnPropertyDescriptor:proxy(Reflect.getOwnPropertyDescriptor),getPrototypeOf:constValue(null),isExtensible:constValue(!1),has:proxy(Reflect.has),ownKeys:proxy(Reflect.ownKeys),preventExtensions:constValue(!0),set:constValue(!1),setPrototypeOf:constValue(!1)})}"),interopRequireWildcard:yt("7.14.0",'function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}export default function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,n),n}'),isNativeReflectConstruct:yt("7.9.0","export default function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}"),iterableToArrayLimit:yt("7.0.0-beta.0",'export default function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return}finally{if(o)throw n}}return a}}'),iterableToArrayLimitLoose:yt("7.0.0-beta.0",'export default function _iterableToArrayLimitLoose(e,r){var t=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null!=t){var o,l=[];for(t=t.call(e);e.length1){for(var t=new Array(n),f=0;f=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}`),setFunctionName:yt("7.23.6",'export default function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.defineProperty(e,"name",{configurable:!0,value:n?n+" "+t:t})}catch(e){}return e}'),toPrimitive:yt("7.1.5",'export default function toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}'),toPropertyKey:yt("7.1.5",'import toPrimitive from"toPrimitive";export default function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:String(i)}'),typeof:yt("7.0.0-beta.0",'export default function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}'),using:yt("7.22.0",'export default function _using(o,n,e){if(null==n)return n;if(Object(n)!==n)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(e)var r=n[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(null==r&&(r=n[Symbol.dispose||Symbol.for("Symbol.dispose")]),"function"!=typeof r)throw new TypeError("Property [Symbol.dispose] is not a function.");return o.push({v:n,d:r,a:e}),n}'),wrapRegExp:yt("7.19.0",'import setPrototypeOf from"setPrototypeOf";import inherits from"inherits";export default function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=new WeakMap;function BabelRegExp(e,t,p){var o=new RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce((function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1]+)>/g,(function(e,r){var t=o[r];return"$"+(Array.isArray(t)?t.join("$"):t)})))}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e)}))}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}')})});var tC=b($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.default=void 0;var kce=ki(),Bce=eC(),le=Object.assign({__proto__:null},Bce.default),ewe=$u.default=le,ce=e=>t=>({minVersion:e,ast:()=>kce.default.program.ast(t)});le.AwaitValue=ce("7.0.0-beta.0")` export default function _AwaitValue(value) { this.wrapped = value; } `;le.wrapAsyncGenerator=ce("7.0.0-beta.0")` import AsyncGenerator from "AsyncGenerator"; export default function _wrapAsyncGenerator(fn) { return function () { return new AsyncGenerator(fn.apply(this, arguments)); }; } `;le.asyncToGenerator=ce("7.0.0-beta.0")` function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } export default function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } `;le.classCallCheck=ce("7.0.0-beta.0")` export default function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } `;le.createClass=ce("7.0.0-beta.0")` import toPropertyKey from "toPropertyKey"; function _defineProperties(target, props) { for (var i = 0; i < props.length; i ++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); } } export default function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } `;le.defineEnumerableProperties=ce("7.0.0-beta.0")` export default function _defineEnumerableProperties(obj, descs) { for (var key in descs) { var desc = descs[key]; desc.configurable = desc.enumerable = true; if ("value" in desc) desc.writable = true; Object.defineProperty(obj, key, desc); } // Symbols are not enumerated over by for-in loops. If native // Symbols are available, fetch all of the descs object's own // symbol properties and define them on our target object too. if (Object.getOwnPropertySymbols) { var objectSymbols = Object.getOwnPropertySymbols(descs); for (var i = 0; i < objectSymbols.length; i++) { var sym = objectSymbols[i]; var desc = descs[sym]; desc.configurable = desc.enumerable = true; if ("value" in desc) desc.writable = true; Object.defineProperty(obj, sym, desc); } } return obj; } `;le.defaults=ce("7.0.0-beta.0")` export default function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; } `;le.defineProperty=ce("7.0.0-beta.0")` import toPropertyKey from "toPropertyKey"; export default function _defineProperty(obj, key, value) { key = toPropertyKey(key); // Shortcircuit the slow defineProperty path when possible. // We are trying to avoid issues where setters defined on the // prototype cause side effects under the fast path of simple // assignment. By checking for existence of the property with // the in operator, we can optimize most of this overhead away. if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } `;le.extends=ce("7.0.0-beta.0")` export default function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } `;le.objectSpread=ce("7.0.0-beta.0")` import defineProperty from "defineProperty"; export default function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = (arguments[i] != null) ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function(sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function(key) { defineProperty(target, key, source[key]); }); } return target; } `;le.inherits=ce("7.0.0-beta.0")` import setPrototypeOf from "setPrototypeOf"; export default function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } // We can't use defineProperty to set the prototype in a single step because it // doesn't work in Chrome <= 36. https://github.com/babel/babel/issues/14056 // V8 bug: https://bugs.chromium.org/p/v8/issues/detail?id=3334 subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) setPrototypeOf(subClass, superClass); } `;le.inheritsLoose=ce("7.0.0-beta.0")` import setPrototypeOf from "setPrototypeOf"; export default function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; setPrototypeOf(subClass, superClass); } `;le.getPrototypeOf=ce("7.0.0-beta.0")` export default function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } `;le.setPrototypeOf=ce("7.0.0-beta.0")` export default function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } `;le.isNativeFunction=ce("7.0.0-beta.0")` export default function _isNativeFunction(fn) { // Note: This function returns "true" for core-js functions. try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (e) { // Firefox 31 throws when "toString" is applied to an HTMLElement return typeof fn === "function"; } } `;le.wrapNativeSuper=ce("7.0.0-beta.0")` import getPrototypeOf from "getPrototypeOf"; import setPrototypeOf from "setPrototypeOf"; import isNativeFunction from "isNativeFunction"; import construct from "construct"; export default function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return construct(Class, arguments, getPrototypeOf(this).constructor) } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true, } }); return setPrototypeOf(Wrapper, Class); } return _wrapNativeSuper(Class) } `;le.instanceof=ce("7.0.0-beta.0")` export default function _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return !!right[Symbol.hasInstance](left); } else { return left instanceof right; } } `;le.interopRequireDefault=ce("7.0.0-beta.0")` export default function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } `;le.newArrowCheck=ce("7.0.0-beta.0")` export default function _newArrowCheck(innerThis, boundThis) { if (innerThis !== boundThis) { throw new TypeError("Cannot instantiate an arrow function"); } } `;le.objectDestructuringEmpty=ce("7.0.0-beta.0")` export default function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); } `;le.objectWithoutPropertiesLoose=ce("7.0.0-beta.0")` export default function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } `;le.objectWithoutProperties=ce("7.0.0-beta.0")` import objectWithoutPropertiesLoose from "objectWithoutPropertiesLoose"; export default function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } `;le.assertThisInitialized=ce("7.0.0-beta.0")` export default function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } `;le.possibleConstructorReturn=ce("7.0.0-beta.0")` import assertThisInitialized from "assertThisInitialized"; export default function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return assertThisInitialized(self); } `;le.createSuper=ce("7.9.0")` import getPrototypeOf from "getPrototypeOf"; import isNativeReflectConstruct from "isNativeReflectConstruct"; import possibleConstructorReturn from "possibleConstructorReturn"; export default function _createSuper(Derived) { var hasNativeReflectConstruct = isNativeReflectConstruct(); return function _createSuperInternal() { var Super = getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { // NOTE: This doesn't work if this.__proto__.constructor has been modified. var NewTarget = getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return possibleConstructorReturn(this, result); } } `;le.superPropBase=ce("7.0.0-beta.0")` import getPrototypeOf from "getPrototypeOf"; export default function _superPropBase(object, property) { // Yes, this throws if object is null to being with, that's on purpose. while (!Object.prototype.hasOwnProperty.call(object, property)) { object = getPrototypeOf(object); if (object === null) break; } return object; } `;le.get=ce("7.0.0-beta.0")` import superPropBase from "superPropBase"; export default function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { // STEP 3. If receiver is not present, then set receiver to target. return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); } `;le.set=ce("7.0.0-beta.0")` import superPropBase from "superPropBase"; import defineProperty from "defineProperty"; function set(target, property, value, receiver) { if (typeof Reflect !== "undefined" && Reflect.set) { set = Reflect.set; } else { set = function set(target, property, value, receiver) { var base = superPropBase(target, property); var desc; if (base) { desc = Object.getOwnPropertyDescriptor(base, property); if (desc.set) { desc.set.call(receiver, value); return true; } else if (!desc.writable) { // Both getter and non-writable fall into this. return false; } } // Without a super that defines the property, spec boils down to // "define on receiver" for some reason. desc = Object.getOwnPropertyDescriptor(receiver, property); if (desc) { if (!desc.writable) { // Setter, getter, and non-writable fall into this. return false; } desc.value = value; Object.defineProperty(receiver, property, desc); } else { // Avoid setters that may be defined on Sub's prototype, but not on // the instance. defineProperty(receiver, property, value); } return true; }; } return set(target, property, value, receiver); } export default function _set(target, property, value, receiver, isStrict) { var s = set(target, property, value, receiver || target); if (!s && isStrict) { throw new TypeError('failed to set property'); } return value; } `;le.taggedTemplateLiteral=ce("7.0.0-beta.0")` export default function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } `;le.taggedTemplateLiteralLoose=ce("7.0.0-beta.0")` export default function _taggedTemplateLiteralLoose(strings, raw) { if (!raw) { raw = strings.slice(0); } strings.raw = raw; return strings; } `;le.readOnlyError=ce("7.0.0-beta.0")` export default function _readOnlyError(name) { throw new TypeError("\\"" + name + "\\" is read-only"); } `;le.writeOnlyError=ce("7.12.13")` export default function _writeOnlyError(name) { throw new TypeError("\\"" + name + "\\" is write-only"); } `;le.classNameTDZError=ce("7.0.0-beta.0")` export default function _classNameTDZError(name) { throw new ReferenceError("Class \\"" + name + "\\" cannot be referenced in computed property keys."); } `;le.temporalUndefined=ce("7.0.0-beta.0")` // This function isn't mean to be called, but to be used as a reference. // We can't use a normal object because it isn't hoisted. export default function _temporalUndefined() {} `;le.tdz=ce("7.5.5")` export default function _tdzError(name) { throw new ReferenceError(name + " is not defined - temporal dead zone"); } `;le.temporalRef=ce("7.0.0-beta.0")` import undef from "temporalUndefined"; import err from "tdz"; export default function _temporalRef(val, name) { return val === undef ? err(name) : val; } `;le.slicedToArray=ce("7.0.0-beta.0")` import arrayWithHoles from "arrayWithHoles"; import iterableToArrayLimit from "iterableToArrayLimit"; import unsupportedIterableToArray from "unsupportedIterableToArray"; import nonIterableRest from "nonIterableRest"; export default function _slicedToArray(arr, i) { return ( arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest() ); } `;le.slicedToArrayLoose=ce("7.0.0-beta.0")` import arrayWithHoles from "arrayWithHoles"; import iterableToArrayLimitLoose from "iterableToArrayLimitLoose"; import unsupportedIterableToArray from "unsupportedIterableToArray"; import nonIterableRest from "nonIterableRest"; export default function _slicedToArrayLoose(arr, i) { return ( arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest() ); } `;le.toArray=ce("7.0.0-beta.0")` import arrayWithHoles from "arrayWithHoles"; import iterableToArray from "iterableToArray"; import unsupportedIterableToArray from "unsupportedIterableToArray"; import nonIterableRest from "nonIterableRest"; export default function _toArray(arr) { return ( arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest() ); } `;le.toConsumableArray=ce("7.0.0-beta.0")` import arrayWithoutHoles from "arrayWithoutHoles"; import iterableToArray from "iterableToArray"; import unsupportedIterableToArray from "unsupportedIterableToArray"; import nonIterableSpread from "nonIterableSpread"; export default function _toConsumableArray(arr) { return ( arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread() ); } `;le.arrayWithoutHoles=ce("7.0.0-beta.0")` import arrayLikeToArray from "arrayLikeToArray"; export default function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return arrayLikeToArray(arr); } `;le.arrayWithHoles=ce("7.0.0-beta.0")` export default function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } `;le.maybeArrayLike=ce("7.9.0")` import arrayLikeToArray from "arrayLikeToArray"; export default function _maybeArrayLike(next, arr, i) { if (arr && !Array.isArray(arr) && typeof arr.length === "number") { var len = arr.length; return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len); } return next(arr, i); } `;le.iterableToArray=ce("7.0.0-beta.0")` export default function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); } `;le.unsupportedIterableToArray=ce("7.9.0")` import arrayLikeToArray from "arrayLikeToArray"; export default function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); } `;le.arrayLikeToArray=ce("7.9.0")` export default function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } `;le.nonIterableSpread=ce("7.0.0-beta.0")` export default function _nonIterableSpread() { throw new TypeError( "Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ); } `;le.nonIterableRest=ce("7.0.0-beta.0")` export default function _nonIterableRest() { throw new TypeError( "Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ); } `;le.createForOfIteratorHelper=ce("7.9.0")` import unsupportedIterableToArray from "unsupportedIterableToArray"; // s: start (create the iterator) // n: next // e: error (called whenever something throws) // f: finish (always called at the end) export default function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { // Fallback for engines without symbol support if ( Array.isArray(o) || (it = unsupportedIterableToArray(o)) || (allowArrayLike && o && typeof o.length === "number") ) { if (it) o = it; var i = 0; var F = function(){}; return { s: F, n: function() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function(e) { throw e; }, f: F, }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function() { it = it.call(o); }, n: function() { var step = it.next(); normalCompletion = step.done; return step; }, e: function(e) { didErr = true; err = e; }, f: function() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; } `;le.createForOfIteratorHelperLoose=ce("7.9.0")` import unsupportedIterableToArray from "unsupportedIterableToArray"; export default function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); // Fallback for engines without symbol support if ( Array.isArray(o) || (it = unsupportedIterableToArray(o)) || (allowArrayLike && o && typeof o.length === "number") ) { if (it) o = it; var i = 0; return function() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; } } throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } `;le.skipFirstGeneratorNext=ce("7.0.0-beta.0")` export default function _skipFirstGeneratorNext(fn) { return function () { var it = fn.apply(this, arguments); it.next(); return it; } } `;le.initializerWarningHelper=ce("7.0.0-beta.0")` export default function _initializerWarningHelper(descriptor, context){ throw new Error( 'Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.' ); } `;le.initializerDefineProperty=ce("7.0.0-beta.0")` export default function _initializerDefineProperty(target, property, descriptor, context){ if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0, }); } `;le.applyDecoratedDescriptor=ce("7.0.0-beta.0")` export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context){ var desc = {}; Object.keys(descriptor).forEach(function(key){ desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer){ desc.writable = true; } desc = decorators.slice().reverse().reduce(function(desc, decorator){ return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0){ desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0){ Object.defineProperty(target, property, desc); desc = null; } return desc; } `;le.classPrivateFieldLooseKey=ce("7.0.0-beta.0")` var id = 0; export default function _classPrivateFieldKey(name) { return "__private_" + (id++) + "_" + name; } `;le.classPrivateFieldLooseBase=ce("7.0.0-beta.0")` export default function _classPrivateFieldBase(receiver, privateKey) { if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { throw new TypeError("attempted to use private field on non-instance"); } return receiver; } `;le.classPrivateFieldGet=ce("7.0.0-beta.0")` import classApplyDescriptorGet from "classApplyDescriptorGet"; import classExtractFieldDescriptor from "classExtractFieldDescriptor"; export default function _classPrivateFieldGet(receiver, privateMap) { var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get"); return classApplyDescriptorGet(receiver, descriptor); } `;le.classPrivateFieldSet=ce("7.0.0-beta.0")` import classApplyDescriptorSet from "classApplyDescriptorSet"; import classExtractFieldDescriptor from "classExtractFieldDescriptor"; export default function _classPrivateFieldSet(receiver, privateMap, value) { var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); classApplyDescriptorSet(receiver, descriptor, value); return value; } `;le.classPrivateFieldDestructureSet=ce("7.4.4")` import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet"; import classExtractFieldDescriptor from "classExtractFieldDescriptor"; export default function _classPrivateFieldDestructureSet(receiver, privateMap) { var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); return classApplyDescriptorDestructureSet(receiver, descriptor); } `;le.classExtractFieldDescriptor=ce("7.13.10")` export default function _classExtractFieldDescriptor(receiver, privateMap, action) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to " + action + " private field on non-instance"); } return privateMap.get(receiver); } `;le.classStaticPrivateFieldSpecGet=ce("7.0.2")` import classApplyDescriptorGet from "classApplyDescriptorGet"; import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor"; export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { classCheckPrivateStaticAccess(receiver, classConstructor); classCheckPrivateStaticFieldDescriptor(descriptor, "get"); return classApplyDescriptorGet(receiver, descriptor); } `;le.classStaticPrivateFieldSpecSet=ce("7.0.2")` import classApplyDescriptorSet from "classApplyDescriptorSet"; import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor"; export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { classCheckPrivateStaticAccess(receiver, classConstructor); classCheckPrivateStaticFieldDescriptor(descriptor, "set"); classApplyDescriptorSet(receiver, descriptor, value); return value; } `;le.classStaticPrivateMethodGet=ce("7.3.2")` import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) { classCheckPrivateStaticAccess(receiver, classConstructor); return method; } `;le.classStaticPrivateMethodSet=ce("7.3.2")` export default function _classStaticPrivateMethodSet() { throw new TypeError("attempted to set read only static private field"); } `;le.classApplyDescriptorGet=ce("7.13.10")` export default function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; } `;le.classApplyDescriptorSet=ce("7.13.10")` export default function _classApplyDescriptorSet(receiver, descriptor, value) { if (descriptor.set) { descriptor.set.call(receiver, value); } else { if (!descriptor.writable) { // This should only throw in strict mode, but class bodies are // always strict and private fields can only be used inside // class bodies. throw new TypeError("attempted to set read only private field"); } descriptor.value = value; } } `;le.classApplyDescriptorDestructureSet=ce("7.13.10")` export default function _classApplyDescriptorDestructureSet(receiver, descriptor) { if (descriptor.set) { if (!("__destrObj" in descriptor)) { descriptor.__destrObj = { set value(v) { descriptor.set.call(receiver, v) }, }; } return descriptor.__destrObj; } else { if (!descriptor.writable) { // This should only throw in strict mode, but class bodies are // always strict and private fields can only be used inside // class bodies. throw new TypeError("attempted to set read only private field"); } return descriptor; } } `;le.classStaticPrivateFieldDestructureSet=ce("7.13.10")` import classApplyDescriptorDestructureSet from "classApplyDescriptorDestructureSet"; import classCheckPrivateStaticAccess from "classCheckPrivateStaticAccess"; import classCheckPrivateStaticFieldDescriptor from "classCheckPrivateStaticFieldDescriptor"; export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) { classCheckPrivateStaticAccess(receiver, classConstructor); classCheckPrivateStaticFieldDescriptor(descriptor, "set"); return classApplyDescriptorDestructureSet(receiver, descriptor); } `;le.classCheckPrivateStaticAccess=ce("7.13.10")` export default function _classCheckPrivateStaticAccess(receiver, classConstructor) { if (receiver !== classConstructor) { throw new TypeError("Private static access of wrong provenance"); } } `;le.classCheckPrivateStaticFieldDescriptor=ce("7.13.10")` export default function _classCheckPrivateStaticFieldDescriptor(descriptor, action) { if (descriptor === undefined) { throw new TypeError("attempted to " + action + " private static field before its declaration"); } } `;le.decorate=ce("7.1.5")` import toArray from "toArray"; import toPropertyKey from "toPropertyKey"; // These comments are stripped by @babel/template /*:: type PropertyDescriptor = | { value: any, writable: boolean, configurable: boolean, enumerable: boolean, } | { get?: () => any, set?: (v: any) => void, configurable: boolean, enumerable: boolean, }; type FieldDescriptor ={ writable: boolean, configurable: boolean, enumerable: boolean, }; type Placement = "static" | "prototype" | "own"; type Key = string | symbol; // PrivateName is not supported yet. type ElementDescriptor = | { kind: "method", key: Key, placement: Placement, descriptor: PropertyDescriptor } | { kind: "field", key: Key, placement: Placement, descriptor: FieldDescriptor, initializer?: () => any, }; // This is exposed to the user code type ElementObjectInput = ElementDescriptor & { [@@toStringTag]?: "Descriptor" }; // This is exposed to the user code type ElementObjectOutput = ElementDescriptor & { [@@toStringTag]?: "Descriptor" extras?: ElementDescriptor[], finisher?: ClassFinisher, }; // This is exposed to the user code type ClassObject = { [@@toStringTag]?: "Descriptor", kind: "class", elements: ElementDescriptor[], }; type ElementDecorator = (descriptor: ElementObjectInput) => ?ElementObjectOutput; type ClassDecorator = (descriptor: ClassObject) => ?ClassObject; type ClassFinisher = (cl: Class) => Class; // Only used by Babel in the transform output, not part of the spec. type ElementDefinition = | { kind: "method", value: any, key: Key, static?: boolean, decorators?: ElementDecorator[], } | { kind: "field", value: () => any, key: Key, static?: boolean, decorators?: ElementDecorator[], }; declare function ClassFactory(initialize: (instance: C) => void): { F: Class, d: ElementDefinition[] } */ /*:: // Various combinations with/without extras and with one or many finishers type ElementFinisherExtras = { element: ElementDescriptor, finisher?: ClassFinisher, extras?: ElementDescriptor[], }; type ElementFinishersExtras = { element: ElementDescriptor, finishers: ClassFinisher[], extras: ElementDescriptor[], }; type ElementsFinisher = { elements: ElementDescriptor[], finisher?: ClassFinisher, }; type ElementsFinishers = { elements: ElementDescriptor[], finishers: ClassFinisher[], }; */ /*:: type Placements = { static: Key[], prototype: Key[], own: Key[], }; */ // ClassDefinitionEvaluation (Steps 26-*) export default function _decorate( decorators /*: ClassDecorator[] */, factory /*: ClassFactory */, superClass /*: ?Class<*> */, mixins /*: ?Array */, ) /*: Class<*> */ { var api = _getDecoratorsApi(); if (mixins) { for (var i = 0; i < mixins.length; i++) { api = mixins[i](api); } } var r = factory(function initialize(O) { api.initializeInstanceElements(O, decorated.elements); }, superClass); var decorated = api.decorateClass( _coalesceClassElements(r.d.map(_createElementDescriptor)), decorators, ); api.initializeClassElements(r.F, decorated.elements); return api.runClassFinishers(r.F, decorated.finishers); } function _getDecoratorsApi() { _getDecoratorsApi = function() { return api; }; var api = { elementsDefinitionOrder: [["method"], ["field"]], // InitializeInstanceElements initializeInstanceElements: function( /*::*/ O /*: C */, elements /*: ElementDescriptor[] */, ) { ["method", "field"].forEach(function(kind) { elements.forEach(function(element /*: ElementDescriptor */) { if (element.kind === kind && element.placement === "own") { this.defineClassElement(O, element); } }, this); }, this); }, // InitializeClassElements initializeClassElements: function( /*::*/ F /*: Class */, elements /*: ElementDescriptor[] */, ) { var proto = F.prototype; ["method", "field"].forEach(function(kind) { elements.forEach(function(element /*: ElementDescriptor */) { var placement = element.placement; if ( element.kind === kind && (placement === "static" || placement === "prototype") ) { var receiver = placement === "static" ? F : proto; this.defineClassElement(receiver, element); } }, this); }, this); }, // DefineClassElement defineClassElement: function( /*::*/ receiver /*: C | Class */, element /*: ElementDescriptor */, ) { var descriptor /*: PropertyDescriptor */ = element.descriptor; if (element.kind === "field") { var initializer = element.initializer; descriptor = { enumerable: descriptor.enumerable, writable: descriptor.writable, configurable: descriptor.configurable, value: initializer === void 0 ? void 0 : initializer.call(receiver), }; } Object.defineProperty(receiver, element.key, descriptor); }, // DecorateClass decorateClass: function( elements /*: ElementDescriptor[] */, decorators /*: ClassDecorator[] */, ) /*: ElementsFinishers */ { var newElements /*: ElementDescriptor[] */ = []; var finishers /*: ClassFinisher[] */ = []; var placements /*: Placements */ = { static: [], prototype: [], own: [], }; elements.forEach(function(element /*: ElementDescriptor */) { this.addElementPlacement(element, placements); }, this); elements.forEach(function(element /*: ElementDescriptor */) { if (!_hasDecorators(element)) return newElements.push(element); var elementFinishersExtras /*: ElementFinishersExtras */ = this.decorateElement( element, placements, ); newElements.push(elementFinishersExtras.element); newElements.push.apply(newElements, elementFinishersExtras.extras); finishers.push.apply(finishers, elementFinishersExtras.finishers); }, this); if (!decorators) { return { elements: newElements, finishers: finishers }; } var result /*: ElementsFinishers */ = this.decorateConstructor( newElements, decorators, ); finishers.push.apply(finishers, result.finishers); result.finishers = finishers; return result; }, // AddElementPlacement addElementPlacement: function( element /*: ElementDescriptor */, placements /*: Placements */, silent /*: boolean */, ) { var keys = placements[element.placement]; if (!silent && keys.indexOf(element.key) !== -1) { throw new TypeError("Duplicated element (" + element.key + ")"); } keys.push(element.key); }, // DecorateElement decorateElement: function( element /*: ElementDescriptor */, placements /*: Placements */, ) /*: ElementFinishersExtras */ { var extras /*: ElementDescriptor[] */ = []; var finishers /*: ClassFinisher[] */ = []; for ( var decorators = element.decorators, i = decorators.length - 1; i >= 0; i-- ) { // (inlined) RemoveElementPlacement var keys = placements[element.placement]; keys.splice(keys.indexOf(element.key), 1); var elementObject /*: ElementObjectInput */ = this.fromElementDescriptor( element, ); var elementFinisherExtras /*: ElementFinisherExtras */ = this.toElementFinisherExtras( (0, decorators[i])(elementObject) /*: ElementObjectOutput */ || elementObject, ); element = elementFinisherExtras.element; this.addElementPlacement(element, placements); if (elementFinisherExtras.finisher) { finishers.push(elementFinisherExtras.finisher); } var newExtras /*: ElementDescriptor[] | void */ = elementFinisherExtras.extras; if (newExtras) { for (var j = 0; j < newExtras.length; j++) { this.addElementPlacement(newExtras[j], placements); } extras.push.apply(extras, newExtras); } } return { element: element, finishers: finishers, extras: extras }; }, // DecorateConstructor decorateConstructor: function( elements /*: ElementDescriptor[] */, decorators /*: ClassDecorator[] */, ) /*: ElementsFinishers */ { var finishers /*: ClassFinisher[] */ = []; for (var i = decorators.length - 1; i >= 0; i--) { var obj /*: ClassObject */ = this.fromClassDescriptor(elements); var elementsAndFinisher /*: ElementsFinisher */ = this.toClassDescriptor( (0, decorators[i])(obj) /*: ClassObject */ || obj, ); if (elementsAndFinisher.finisher !== undefined) { finishers.push(elementsAndFinisher.finisher); } if (elementsAndFinisher.elements !== undefined) { elements = elementsAndFinisher.elements; for (var j = 0; j < elements.length - 1; j++) { for (var k = j + 1; k < elements.length; k++) { if ( elements[j].key === elements[k].key && elements[j].placement === elements[k].placement ) { throw new TypeError( "Duplicated element (" + elements[j].key + ")", ); } } } } } return { elements: elements, finishers: finishers }; }, // FromElementDescriptor fromElementDescriptor: function( element /*: ElementDescriptor */, ) /*: ElementObject */ { var obj /*: ElementObject */ = { kind: element.kind, key: element.key, placement: element.placement, descriptor: element.descriptor, }; var desc = { value: "Descriptor", configurable: true, }; Object.defineProperty(obj, Symbol.toStringTag, desc); if (element.kind === "field") obj.initializer = element.initializer; return obj; }, // ToElementDescriptors toElementDescriptors: function( elementObjects /*: ElementObject[] */, ) /*: ElementDescriptor[] */ { if (elementObjects === undefined) return; return toArray(elementObjects).map(function(elementObject) { var element = this.toElementDescriptor(elementObject); this.disallowProperty(elementObject, "finisher", "An element descriptor"); this.disallowProperty(elementObject, "extras", "An element descriptor"); return element; }, this); }, // ToElementDescriptor toElementDescriptor: function( elementObject /*: ElementObject */, ) /*: ElementDescriptor */ { var kind = String(elementObject.kind); if (kind !== "method" && kind !== "field") { throw new TypeError( 'An element descriptor\\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"', ); } var key = toPropertyKey(elementObject.key); var placement = String(elementObject.placement); if ( placement !== "static" && placement !== "prototype" && placement !== "own" ) { throw new TypeError( 'An element descriptor\\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"', ); } var descriptor /*: PropertyDescriptor */ = elementObject.descriptor; this.disallowProperty(elementObject, "elements", "An element descriptor"); var element /*: ElementDescriptor */ = { kind: kind, key: key, placement: placement, descriptor: Object.assign({}, descriptor), }; if (kind !== "field") { this.disallowProperty(elementObject, "initializer", "A method descriptor"); } else { this.disallowProperty( descriptor, "get", "The property descriptor of a field descriptor", ); this.disallowProperty( descriptor, "set", "The property descriptor of a field descriptor", ); this.disallowProperty( descriptor, "value", "The property descriptor of a field descriptor", ); element.initializer = elementObject.initializer; } return element; }, toElementFinisherExtras: function( elementObject /*: ElementObject */, ) /*: ElementFinisherExtras */ { var element /*: ElementDescriptor */ = this.toElementDescriptor( elementObject, ); var finisher /*: ClassFinisher */ = _optionalCallableProperty( elementObject, "finisher", ); var extras /*: ElementDescriptors[] */ = this.toElementDescriptors( elementObject.extras, ); return { element: element, finisher: finisher, extras: extras }; }, // FromClassDescriptor fromClassDescriptor: function( elements /*: ElementDescriptor[] */, ) /*: ClassObject */ { var obj = { kind: "class", elements: elements.map(this.fromElementDescriptor, this), }; var desc = { value: "Descriptor", configurable: true }; Object.defineProperty(obj, Symbol.toStringTag, desc); return obj; }, // ToClassDescriptor toClassDescriptor: function( obj /*: ClassObject */, ) /*: ElementsFinisher */ { var kind = String(obj.kind); if (kind !== "class") { throw new TypeError( 'A class descriptor\\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"', ); } this.disallowProperty(obj, "key", "A class descriptor"); this.disallowProperty(obj, "placement", "A class descriptor"); this.disallowProperty(obj, "descriptor", "A class descriptor"); this.disallowProperty(obj, "initializer", "A class descriptor"); this.disallowProperty(obj, "extras", "A class descriptor"); var finisher = _optionalCallableProperty(obj, "finisher"); var elements = this.toElementDescriptors(obj.elements); return { elements: elements, finisher: finisher }; }, // RunClassFinishers runClassFinishers: function( constructor /*: Class<*> */, finishers /*: ClassFinisher[] */, ) /*: Class<*> */ { for (var i = 0; i < finishers.length; i++) { var newConstructor /*: ?Class<*> */ = (0, finishers[i])(constructor); if (newConstructor !== undefined) { // NOTE: This should check if IsConstructor(newConstructor) is false. if (typeof newConstructor !== "function") { throw new TypeError("Finishers must return a constructor."); } constructor = newConstructor; } } return constructor; }, disallowProperty: function(obj, name, objectType) { if (obj[name] !== undefined) { throw new TypeError(objectType + " can't have a ." + name + " property."); } } }; return api; } // ClassElementEvaluation function _createElementDescriptor( def /*: ElementDefinition */, ) /*: ElementDescriptor */ { var key = toPropertyKey(def.key); var descriptor /*: PropertyDescriptor */; if (def.kind === "method") { descriptor = { value: def.value, writable: true, configurable: true, enumerable: false, }; } else if (def.kind === "get") { descriptor = { get: def.value, configurable: true, enumerable: false }; } else if (def.kind === "set") { descriptor = { set: def.value, configurable: true, enumerable: false }; } else if (def.kind === "field") { descriptor = { configurable: true, writable: true, enumerable: true }; } var element /*: ElementDescriptor */ = { kind: def.kind === "field" ? "field" : "method", key: key, placement: def.static ? "static" : def.kind === "field" ? "own" : "prototype", descriptor: descriptor, }; if (def.decorators) element.decorators = def.decorators; if (def.kind === "field") element.initializer = def.value; return element; } // CoalesceGetterSetter function _coalesceGetterSetter( element /*: ElementDescriptor */, other /*: ElementDescriptor */, ) { if (element.descriptor.get !== undefined) { other.descriptor.get = element.descriptor.get; } else { other.descriptor.set = element.descriptor.set; } } // CoalesceClassElements function _coalesceClassElements( elements /*: ElementDescriptor[] */, ) /*: ElementDescriptor[] */ { var newElements /*: ElementDescriptor[] */ = []; var isSameElement = function( other /*: ElementDescriptor */, ) /*: boolean */ { return ( other.kind === "method" && other.key === element.key && other.placement === element.placement ); }; for (var i = 0; i < elements.length; i++) { var element /*: ElementDescriptor */ = elements[i]; var other /*: ElementDescriptor */; if ( element.kind === "method" && (other = newElements.find(isSameElement)) ) { if ( _isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor) ) { if (_hasDecorators(element) || _hasDecorators(other)) { throw new ReferenceError( "Duplicated methods (" + element.key + ") can't be decorated.", ); } other.descriptor = element.descriptor; } else { if (_hasDecorators(element)) { if (_hasDecorators(other)) { throw new ReferenceError( "Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ").", ); } other.decorators = element.decorators; } _coalesceGetterSetter(element, other); } } else { newElements.push(element); } } return newElements; } function _hasDecorators(element /*: ElementDescriptor */) /*: boolean */ { return element.decorators && element.decorators.length; } function _isDataDescriptor(desc /*: PropertyDescriptor */) /*: boolean */ { return ( desc !== undefined && !(desc.value === undefined && desc.writable === undefined) ); } function _optionalCallableProperty /*::*/( obj /*: T */, name /*: $Keys */, ) /*: ?Function */ { var value = obj[name]; if (value !== undefined && typeof value !== "function") { throw new TypeError("Expected '" + name + "' to be a function"); } return value; } `;le.classPrivateMethodGet=ce("7.1.6")` export default function _classPrivateMethodGet(receiver, privateSet, fn) { if (!privateSet.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return fn; } `;le.checkPrivateRedeclaration=ce("7.14.1")` export default function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } } `;le.classPrivateFieldInitSpec=ce("7.14.1")` import checkPrivateRedeclaration from "checkPrivateRedeclaration"; export default function _classPrivateFieldInitSpec(obj, privateMap, value) { checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); } `;le.classPrivateMethodInitSpec=ce("7.14.1")` import checkPrivateRedeclaration from "checkPrivateRedeclaration"; export default function _classPrivateMethodInitSpec(obj, privateSet) { checkPrivateRedeclaration(obj, privateSet); privateSet.add(obj); } `;le.classPrivateMethodSet=ce("7.1.6")` export default function _classPrivateMethodSet() { throw new TypeError("attempted to reassign private method"); } `;le.identity=ce("7.17.0")` export default function _identity(x) { return x; } `;le.nullishReceiverError=ce("7.22.6")` export default function _nullishReceiverError(r) { throw new TypeError("Cannot set property of null or undefined."); } `});var i0=b(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.default=void 0;ln.ensure=Vce;ln.get=iC;ln.getDependencies=Uce;ln.list=void 0;ln.minVersion=qce;var n0=Vr(),Fce=Oe(),s0=tC(),{assignmentExpression:rC,cloneNode:jce,expressionStatement:Lce,file:nC,identifier:Mce}=Fce;function Wu(e){let t=[];for(;e.parentPath;e=e.parentPath)t.push(e.key),e.inList&&t.push(e.listKey);return t.reverse().join(".")}var Ku;function sC(e){let t=new Set,r=new Set,n=new Map,s,i,a=[],o=[],l=[],u={ImportDeclaration(f){let d=f.node.source.value;if(!s0.default[d])throw f.buildCodeFrameError(`Unknown helper ${d}`);if(f.get("specifiers").length!==1||!f.get("specifiers.0").isImportDefaultSpecifier())throw f.buildCodeFrameError("Helpers can only import a default value");let m=f.node.specifiers[0].local;n.set(m,d),o.push(Wu(f))},ExportDefaultDeclaration(f){let d=f.get("declaration");if(!d.isFunctionDeclaration()||!d.node.id)throw d.buildCodeFrameError("Helpers can only export named function declarations");s=d.node.id.name,i=Wu(f)},ExportAllDeclaration(f){throw f.buildCodeFrameError("Helpers can only export default")},ExportNamedDeclaration(f){throw f.buildCodeFrameError("Helpers can only export default")},Statement(f){f.isImportDeclaration()||f.isExportDeclaration()||f.skip()}},c={Program(f){let d=f.scope.getAllBindings();Object.keys(d).forEach(m=>{m!==s&&(n.has(d[m].identifier)||r.add(m))})},ReferencedIdentifier(f){let d=f.node.name,m=f.scope.getBinding(d);m?n.has(m.identifier)&&l.push(Wu(f)):t.add(d)},AssignmentExpression(f){let d=f.get("left");if(!(s in d.getBindingIdentifiers()))return;if(!d.isIdentifier())throw d.buildCodeFrameError("Only simple assignments to exports are allowed in helpers");let m=f.scope.getBinding(s);m!=null&&m.scope.path.isProgram()&&a.push(Wu(f))}};if((0,n0.default)(e.ast,u,e.scope),(0,n0.default)(e.ast,c,e.scope),!i)throw new Error("Helpers must have a default export.");return a.reverse(),{globals:Array.from(t),localBindingNames:Array.from(r),dependencies:n,exportBindingAssignments:a,exportPath:i,exportName:s,importBindingsReferences:l,importPaths:o}}function Rce(e,t,r,n,s){if(n&&!r)throw new Error("Unexpected local bindings for module-based helpers.");if(!r)return;let{localBindingNames:i,dependencies:a,exportBindingAssignments:o,exportPath:l,exportName:u,importBindingsReferences:c,importPaths:f}=t,d={};a.forEach((v,I)=>{d[I.name]=typeof s=="function"&&s(v)||I});let m={},y=new Set(n||[]);r.type==="Identifier"&&y.add(r.name),i.forEach(v=>{let I=v;for(;y.has(I);)I="_"+I;I!==v&&(m[v]=I)}),r.type==="Identifier"&&u!==r.name&&(m[u]=r.name);let{path:p}=e,E=p.get(l),T=f.map(v=>p.get(v)),O=c.map(v=>p.get(v)),C=E.get("declaration");if(r.type==="Identifier")E.replaceWith(C);else if(r.type==="MemberExpression")o.forEach(v=>{let I=p.get(v);I.replaceWith(rC("=",r,I.node))}),E.replaceWith(C),p.pushContainer("body",Lce(rC("=",r,Mce(u))));else throw new Error("Unexpected helper format.");Object.keys(m).forEach(v=>{p.scope.rename(v,m[v])});for(let v of T)v.remove();for(let v of O){let I=jce(d[v.node.name]);v.replaceWith(I)}}var r0=Object.create(null);function Gu(e){if(!r0[e]){let t=s0.default[e];if(!t)throw Object.assign(new ReferenceError(`Unknown helper ${e}`),{code:"BABEL_HELPER_UNKNOWN",helper:e});let r=()=>{if(!Ku){let s={ast:nC(t.ast()),path:null};return(0,n0.default)(s.ast,{Program:i=>(s.path=i).stop()}),s}return new Ku({filename:`babel-helper://${e}`},{ast:nC(t.ast()),code:"[internal Babel helper code]",inputMap:null})},n=null;r0[e]={minVersion:t.minVersion,build(s,i,a){let o=r();return n||(n=sC(o)),Rce(o,n,i,a,s),{nodes:o.ast.program.body,globals:n.globals}},getDependencies(){return n||(n=sC(r())),Array.from(n.dependencies.values())}}}return r0[e]}function iC(e,t,r,n){return Gu(e).build(t,r,n)}function qce(e){return Gu(e).minVersion}function Uce(e){return Gu(e).getDependencies()}function Vce(e,t){Ku||(Ku=t),Gu(e)}var rwe=ln.list=Object.keys(s0.default).map(e=>e.replace(/^_/,"")),nwe=ln.default=iC});var lC=b(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.default=void 0;var Gr=require("assert"),$ce=Oe(),{callExpression:a0,cloneNode:Hu,expressionStatement:aC,identifier:po,importDeclaration:Wce,importDefaultSpecifier:Kce,importNamespaceSpecifier:Gce,importSpecifier:Hce,memberExpression:o0,stringLiteral:oC,variableDeclaration:Yce,variableDeclarator:Xce}=$ce,l0=class{constructor(t,r,n){this._statements=[],this._resultName=null,this._importedSource=void 0,this._scope=r,this._hub=n,this._importedSource=t}done(){return{statements:this._statements,resultName:this._resultName}}import(){return this._statements.push(Wce([],oC(this._importedSource))),this}require(){return this._statements.push(aC(a0(po("require"),[oC(this._importedSource)]))),this}namespace(t="namespace"){let r=this._scope.generateUidIdentifier(t),n=this._statements[this._statements.length-1];return Gr(n.type==="ImportDeclaration"),Gr(n.specifiers.length===0),n.specifiers=[Gce(r)],this._resultName=Hu(r),this}default(t){let r=this._scope.generateUidIdentifier(t),n=this._statements[this._statements.length-1];return Gr(n.type==="ImportDeclaration"),Gr(n.specifiers.length===0),n.specifiers=[Kce(r)],this._resultName=Hu(r),this}named(t,r){if(r==="default")return this.default(t);let n=this._scope.generateUidIdentifier(t),s=this._statements[this._statements.length-1];return Gr(s.type==="ImportDeclaration"),Gr(s.specifiers.length===0),s.specifiers=[Hce(n,po(r))],this._resultName=Hu(n),this}var(t){let r=this._scope.generateUidIdentifier(t),n=this._statements[this._statements.length-1];return n.type!=="ExpressionStatement"&&(Gr(this._resultName),n=aC(this._resultName),this._statements.push(n)),this._statements[this._statements.length-1]=Yce("var",[Xce(r,n.expression)]),this._resultName=Hu(r),this}defaultInterop(){return this._interop(this._hub.addHelper("interopRequireDefault"))}wildcardInterop(){return this._interop(this._hub.addHelper("interopRequireWildcard"))}_interop(t){let r=this._statements[this._statements.length-1];return r.type==="ExpressionStatement"?r.expression=a0(t,[r.expression]):r.type==="VariableDeclaration"?(Gr(r.declarations.length===1),r.declarations[0].init=a0(t,[r.declarations[0].init])):Gr.fail("Unexpected type."),this}prop(t){let r=this._statements[this._statements.length-1];return r.type==="ExpressionStatement"?r.expression=o0(r.expression,po(t)):r.type==="VariableDeclaration"?(Gr(r.declarations.length===1),r.declarations[0].init=o0(r.declarations[0].init,po(t))):Gr.fail("Unexpected type:"+r.type),this}read(t){this._resultName=o0(this._resultName,po(t))}};Yu.default=l0});var c0=b(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.default=Jce;function Jce(e){return e.node.sourceType==="module"}});var cC=b(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.default=void 0;var uC=require("assert"),zce=Oe(),Qce=lC(),Zce=c0(),{numericLiteral:efe,sequenceExpression:tfe}=zce,f0=class{constructor(t,r,n){this._defaultOpts={importedSource:null,importedType:"commonjs",importedInterop:"babel",importingInterop:"babel",ensureLiveReference:!1,ensureNoContext:!1,importPosition:"before"};let s=t.find(i=>i.isProgram());this._programPath=s,this._programScope=s.scope,this._hub=s.hub,this._defaultOpts=this._applyDefaults(r,n,!0)}addDefault(t,r){return this.addNamed("default",t,r)}addNamed(t,r,n){return uC(typeof t=="string"),this._generateImport(this._applyDefaults(r,n),t)}addNamespace(t,r){return this._generateImport(this._applyDefaults(t,r),null)}addSideEffect(t,r){return this._generateImport(this._applyDefaults(t,r),void 0)}_applyDefaults(t,r,n=!1){let s;return typeof t=="string"?s=Object.assign({},this._defaultOpts,{importedSource:t},r):(uC(!r,"Unexpected secondary arguments."),s=Object.assign({},this._defaultOpts,t)),!n&&r&&(r.nameHint!==void 0&&(s.nameHint=r.nameHint),r.blockHoist!==void 0&&(s.blockHoist=r.blockHoist)),s}_generateImport(t,r){let n=r==="default",s=!!r&&!n,i=r===null,{importedSource:a,importedType:o,importedInterop:l,importingInterop:u,ensureLiveReference:c,ensureNoContext:f,nameHint:d,importPosition:m,blockHoist:y}=t,p=d||r,E=(0,Zce.default)(this._programPath),T=E&&u==="node",O=E&&u==="babel";if(m==="after"&&!E)throw new Error('"importPosition": "after" is only supported in modules');let C=new Qce.default(a,this._programScope,this._hub);if(o==="es6"){if(!T&&!O)throw new Error("Cannot import an ES6 module from CommonJS");C.import(),i?C.namespace(d||a):(n||s)&&C.named(p,r)}else{if(o!=="commonjs")throw new Error(`Unexpected interopType "${o}"`);if(l==="babel")if(T){p=p!=="default"?p:a;let k=`${a}$es6Default`;C.import(),i?C.default(k).var(p||a).wildcardInterop():n?c?C.default(k).var(p||a).defaultInterop().read("default"):C.default(k).var(p).defaultInterop().prop(r):s&&C.default(k).read(r)}else O?(C.import(),i?C.namespace(p||a):(n||s)&&C.named(p,r)):(C.require(),i?C.var(p||a).wildcardInterop():(n||s)&&c?n?(p=p!=="default"?p:a,C.var(p).read(r),C.defaultInterop()):C.var(a).read(r):n?C.var(p).defaultInterop().prop(r):s&&C.var(p).prop(r));else if(l==="compiled")T?(C.import(),i?C.default(p||a):(n||s)&&C.default(a).read(p)):O?(C.import(),i?C.namespace(p||a):(n||s)&&C.named(p,r)):(C.require(),i?C.var(p||a):(n||s)&&(c?C.var(a).read(p):C.prop(r).var(p)));else if(l==="uncompiled"){if(n&&c)throw new Error("No live reference for commonjs default");T?(C.import(),i?C.default(p||a):n?C.default(p):s&&C.default(a).read(p)):O?(C.import(),i?C.default(p||a):n?C.default(p):s&&C.named(p,r)):(C.require(),i?C.var(p||a):n?C.var(p):s&&(c?C.var(a).read(p):C.var(p).prop(r)))}else throw new Error(`Unknown importedInterop "${l}".`)}let{statements:v,resultName:I}=C.done();return this._insertStatements(v,m,y),(n||s)&&f&&I.type!=="Identifier"?tfe([efe(0),I]):I}_insertStatements(t,r="before",n=3){let s=this._programPath.get("body");if(r==="after"){for(let i=s.length-1;i>=0;i--)if(s[i].isImportDeclaration()){s[i].insertAfter(t);return}}else{t.forEach(a=>{a._blockHoist=n});let i=s.find(a=>{let o=a.node._blockHoist;return Number.isFinite(o)&&o<4});if(i){i.insertBefore(t);return}}this._programPath.unshiftContainer("body",t)}};Xu.default=f0});var p0=b(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});Object.defineProperty(us,"ImportInjector",{enumerable:!0,get:function(){return ho.default}});us.addDefault=nfe;us.addNamed=sfe;us.addNamespace=ife;us.addSideEffect=afe;Object.defineProperty(us,"isModule",{enumerable:!0,get:function(){return rfe.default}});var ho=cC(),rfe=c0();function nfe(e,t,r){return new ho.default(e).addDefault(t,r)}function sfe(e,t,r,n){return new ho.default(e).addNamed(t,r,n)}function ife(e,t,r){return new ho.default(e).addNamespace(t,r)}function afe(e,t,r){return new ho.default(e).addSideEffect(t,r)}});var fC=b(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0});h0.default=ffe;var ofe=Jn(),d0=ft(),{numericLiteral:lfe,unaryExpression:ufe}=d0.types,cfe=d0.traverse.visitors.merge([ofe.default,{ThisExpression(e){e.replaceWith(ufe("void",lfe(0),!0))}}]);function ffe(e){(0,d0.traverse)(e.node,Object.assign({},cfe,{noScope:!0}))}});var E0=b(b0=>{"use strict";Object.defineProperty(b0,"__esModule",{value:!0});b0.default=yfe;var pfe=Oe(),{LOGICAL_OPERATORS:dfe,assignmentExpression:mo,binaryExpression:y0,cloneNode:g0,identifier:Ju,logicalExpression:hfe,numericLiteral:m0,sequenceExpression:mfe,unaryExpression:pC}=pfe,dC={AssignmentExpression:{exit(e){let{scope:t,seen:r,bindingNames:n}=this;if(e.node.operator==="="||r.has(e.node))return;r.add(e.node);let s=e.get("left");if(!s.isIdentifier())return;let i=s.node.name;if(!n.has(i)||t.getBinding(i)!==e.scope.getBinding(i))return;let a=e.node.operator.slice(0,-1);dfe.includes(a)?e.replaceWith(hfe(a,e.node.left,mo("=",g0(e.node.left),e.node.right))):(e.node.right=y0(a,g0(e.node.left),e.node.right),e.node.operator="=")}}};dC.UpdateExpression={exit(e){if(!this.includeUpdateExpression)return;let{scope:t,bindingNames:r}=this,n=e.get("argument");if(!n.isIdentifier())return;let s=n.node.name;if(r.has(s)&&t.getBinding(s)===e.scope.getBinding(s))if(e.parentPath.isExpressionStatement()&&!e.isCompletionRecord()){let i=e.node.operator=="++"?"+=":"-=";e.replaceWith(mo(i,n.node,m0(1)))}else if(e.node.prefix)e.replaceWith(mo("=",Ju(s),y0(e.node.operator[0],pC("+",n.node),m0(1))));else{let i=e.scope.generateUidIdentifierBasedOnNode(n.node,"old"),a=i.name;e.scope.push({id:i});let o=y0(e.node.operator[0],Ju(a),m0(1));e.replaceWith(mfe([mo("=",Ju(a),pC("+",n.node)),mo("=",g0(n.node),o),Ju(a)]))}}};function yfe(e,t){{var r;e.traverse(dC,{scope:e.scope,bindingNames:t,seen:new WeakSet,includeUpdateExpression:(r=arguments[2])!=null?r:!0})}}});var EC=b(v0=>{"use strict";Object.defineProperty(v0,"__esModule",{value:!0});v0.default=Ofe;var gfe=require("assert"),yC=ft(),bfe=E0(),{assignmentExpression:Qu,cloneNode:yo,expressionStatement:bo,getOuterBindingIdentifiers:Efe,identifier:cs,isArrowFunctionExpression:vfe,isClassExpression:Tfe,isFunctionExpression:Sfe,isIdentifier:xfe,isMemberExpression:hC,isVariableDeclaration:Pfe,jsxIdentifier:mC,jsxMemberExpression:Afe,memberExpression:gC,numericLiteral:Cfe,sequenceExpression:go,stringLiteral:bC,variableDeclaration:wfe,variableDeclarator:Dfe}=yC.types;function Ife(e){do switch(e.parent.type){case"TSTypeAnnotation":case"TSTypeAliasDeclaration":case"TSTypeReference":case"TypeAnnotation":case"TypeAlias":return!0;case"ExportSpecifier":return e.parentPath.parent.exportKind==="type";default:if(e.parentPath.isStatement()||e.parentPath.isExpression())return!1}while(e=e.parentPath)}function Ofe(e,t,r){let n=new Map,s=new Map,i=u=>{e.requeue(u)};for(let[u,c]of t.source){for(let[f,d]of c.imports)n.set(f,[u,d,null]);for(let f of c.importsNamespace)n.set(f,[u,null,f])}for(let[u,c]of t.local){let f=s.get(u);f||(f=[],s.set(u,f)),f.push(...c.names)}let a={metadata:t,requeueInParent:i,scope:e.scope,exported:s};e.traverse(_fe,a);let o=new Set([...Array.from(n.keys()),...Array.from(s.keys())]);(0,bfe.default)(e,o,!1);let l={seen:new WeakSet,metadata:t,requeueInParent:i,scope:e.scope,imported:n,exported:s,buildImportReference([u,c,f],d){let m=t.source.get(u);if(m.referenced=!0,f){if(m.wrap){var y;d=(y=r(d,m.wrap))!=null?y:d}return d}let p=cs(m.name);if(m.wrap){var E;p=(E=r(p,m.wrap))!=null?E:p}if(c==="default"&&m.interop==="node-default")return p;let T=t.stringSpecifiers.has(c);return gC(p,T?bC(c):cs(c),T)}};e.traverse(Nfe,l)}var _fe={Scope(e){e.skip()},ClassDeclaration(e){let{requeueInParent:t,exported:r,metadata:n}=this,{id:s}=e.node;if(!s)throw new Error("Expected class to have a name");let i=s.name,a=r.get(i)||[];if(a.length>0){let o=bo(Rs(n,a,cs(i),e.scope));o._blockHoist=e.node._blockHoist,t(e.insertAfter(o)[0])}},VariableDeclaration(e){let{requeueInParent:t,exported:r,metadata:n}=this,s=e.node.kind==="var";for(let i of e.get("declarations")){let{id:a}=i.node,{init:o}=i.node;if(xfe(a)&&r.has(a.name)&&!vfe(o)&&(!Sfe(o)||o.id)&&(!Tfe(o)||o.id)){if(!o){if(s)continue;o=e.scope.buildUndefinedNode()}i.node.init=Rs(n,r.get(a.name),o,e.scope),t(i.get("init"))}else for(let l of Object.keys(i.getOuterBindingIdentifiers()))if(r.has(l)){let u=bo(Rs(n,r.get(l),cs(l),e.scope));u._blockHoist=e.node._blockHoist,t(e.insertAfter(u)[0])}}}},Rs=(e,t,r,n)=>{let s=e.exportName;for(let i=n;i!=null;i=i.parent)i.hasOwnBinding(s)&&i.rename(s);return(t||[]).reduce((i,a)=>{let{stringSpecifiers:o}=e,l=o.has(a);return Qu("=",gC(cs(s),l?bC(a):cs(a),l),i)},r)},zu=e=>yC.template.expression.ast` (function() { throw new Error('"' + '${e}' + '" is read-only.'); })() `,Nfe={ReferencedIdentifier(e){let{seen:t,buildImportReference:r,scope:n,imported:s,requeueInParent:i}=this;if(t.has(e.node))return;t.add(e.node);let a=e.node.name,o=s.get(a);if(o){if(Ife(e))throw e.buildCodeFrameError(`Cannot transform the imported binding "${a}" since it's also used in a type annotation. Please strip type annotations using @babel/preset-typescript or @babel/preset-flow.`);let l=e.scope.getBinding(a);if(n.getBinding(a)!==l)return;let c=r(o,e.node);if(c.loc=e.node.loc,(e.parentPath.isCallExpression({callee:e.node})||e.parentPath.isOptionalCallExpression({callee:e.node})||e.parentPath.isTaggedTemplateExpression({tag:e.node}))&&hC(c))e.replaceWith(go([Cfe(0),c]));else if(e.isJSXIdentifier()&&hC(c)){let{object:f,property:d}=c;e.replaceWith(Afe(mC(f.name),mC(d.name)))}else e.replaceWith(c);i(e),e.skip()}},UpdateExpression(e){let{scope:t,seen:r,imported:n,exported:s,requeueInParent:i,buildImportReference:a}=this;if(r.has(e.node))return;r.add(e.node);let o=e.get("argument");if(o.isMemberExpression())return;let l=e.node;if(o.isIdentifier()){let u=o.node.name;if(t.getBinding(u)!==e.scope.getBinding(u))return;let c=s.get(u),f=n.get(u);if((c==null?void 0:c.length)>0||f)if(f)e.replaceWith(Qu(l.operator[0]+"=",a(f,o.node),zu(u)));else if(l.prefix)e.replaceWith(Rs(this.metadata,c,yo(l),e.scope));else{let d=t.generateDeclaredUidIdentifier(u);e.replaceWith(go([Qu("=",yo(d),yo(l)),Rs(this.metadata,c,cs(u),e.scope),yo(d)]))}}i(e),e.skip()},AssignmentExpression:{exit(e){let{scope:t,seen:r,imported:n,exported:s,requeueInParent:i,buildImportReference:a}=this;if(r.has(e.node))return;r.add(e.node);let o=e.get("left");if(!o.isMemberExpression())if(o.isIdentifier()){let l=o.node.name;if(t.getBinding(l)!==e.scope.getBinding(l))return;let u=s.get(l),c=n.get(l);if((u==null?void 0:u.length)>0||c){gfe(e.node.operator==="=","Path was not simplified");let f=e.node;c&&(f.left=a(c,o.node),f.right=go([f.right,zu(l)])),e.replaceWith(Rs(this.metadata,u,f,e.scope)),i(e)}}else{let l=o.getOuterBindingIdentifiers(),u=Object.keys(l).filter(d=>t.getBinding(d)===e.scope.getBinding(d)),c=u.find(d=>n.has(d));c&&(e.node.right=go([e.node.right,zu(c)]));let f=[];if(u.forEach(d=>{let m=s.get(d)||[];m.length>0&&f.push(Rs(this.metadata,m,cs(d),e.scope))}),f.length>0){let d=go(f);e.parentPath.isExpressionStatement()&&(d=bo(d),d._blockHoist=e.parentPath.node._blockHoist);let m=e.insertAfter(d)[0];i(m)}}}},"ForOfStatement|ForInStatement"(e){let{scope:t,node:r}=e,{left:n}=r,{exported:s,imported:i,scope:a}=this;if(!Pfe(n)){let o=!1,l,u=e.get("body").scope;for(let d of Object.keys(Efe(n)))a.getBinding(d)===t.getBinding(d)&&(s.has(d)&&(o=!0,u.hasOwnBinding(d)&&u.rename(d)),i.has(d)&&!l&&(l=d));if(!o&&!l)return;e.ensureBlock();let c=e.get("body"),f=t.generateUidIdentifierBasedOnNode(n);e.get("left").replaceWith(wfe("let",[Dfe(yo(f))])),t.registerDeclaration(e.get("left")),o&&c.unshiftContainer("body",bo(Qu("=",n,f))),l&&c.unshiftContainer("body",bo(zu(l)))}}}});var T0=b(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.default=Mfe;Li.hasExports=Ffe;Li.isSideEffectImport=jfe;Li.validateImportInteropOption=TC;var vC=require("path"),kfe=oi(),Bfe=yi();function Ffe(e){return e.hasExports}function jfe(e){return e.imports.size===0&&e.importsNamespace.size===0&&e.reexports.size===0&&e.reexportNamespace.size===0&&!e.reexportAll}function TC(e){if(typeof e!="function"&&e!=="none"&&e!=="babel"&&e!=="node")throw new Error(`.importInterop must be one of "none", "babel", "node", or a function returning one of those values (received ${e}).`);return e}function Lfe(e,t,r){return typeof e=="function"?TC(e(t,r)):e}function Mfe(e,t,{importInterop:r,initializeReexports:n=!1,getWrapperPayload:s,esNamespaceOnly:i=!1,filename:a}){t||(t=e.scope.generateUidIdentifier("exports").name);let o=new Set;Ufe(e);let{local:l,sources:u,hasExports:c}=Rfe(e,{initializeReexports:n,getWrapperPayload:s},o);Vfe(e);for(let[f,d]of u){let{importsNamespace:m,imports:y}=d;if(m.size>0&&y.size===0){let[E]=m;d.name=E}let p=Lfe(r,f,a);p==="none"?d.interop="none":p==="node"&&d.interop==="namespace"?d.interop="node-namespace":p==="node"&&d.interop==="default"?d.interop="node-default":i&&d.interop==="namespace"&&(d.interop="default")}return{exportName:t,exportNameListName:null,hasExports:c,local:l,source:u,stringSpecifiers:o}}function Zu(e,t){if(e.isIdentifier())return e.node.name;if(e.isStringLiteral()){let r=e.node.value;return(0,kfe.isIdentifierName)(r)||t.add(r),r}else throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${e.node.type}`)}function SC(e){if(!e.isExportSpecifier())throw e.isExportNamespaceSpecifier()?e.buildCodeFrameError("Export namespace should be first transformed by `@babel/plugin-transform-export-namespace-from`."):e.buildCodeFrameError("Unexpected export specifier type")}function Rfe(e,{getWrapperPayload:t,initializeReexports:r},n){let s=qfe(e,r,n),i=new Map,a=new Map,o=(u,c)=>{let f=u.value,d=a.get(f);return d?i.get(f).push(c):(d={name:e.scope.generateUidIdentifier((0,vC.basename)(f,(0,vC.extname)(f))).name,interop:"none",loc:null,imports:new Map,importsNamespace:new Set,reexports:new Map,reexportNamespace:new Set,reexportAll:null,wrap:null,get lazy(){return this.wrap==="lazy"},referenced:!1},a.set(f,d),i.set(f,[c])),d},l=!1;e.get("body").forEach(u=>{if(u.isImportDeclaration()){let c=o(u.node.source,u.node);c.loc||(c.loc=u.node.loc),u.get("specifiers").forEach(f=>{if(f.isImportDefaultSpecifier()){let d=f.get("local").node.name;c.imports.set(d,"default");let m=s.get(d);m&&(s.delete(d),m.names.forEach(y=>{c.reexports.set(y,"default")}),c.referenced=!0)}else if(f.isImportNamespaceSpecifier()){let d=f.get("local").node.name;c.importsNamespace.add(d);let m=s.get(d);m&&(s.delete(d),m.names.forEach(y=>{c.reexportNamespace.add(y)}),c.referenced=!0)}else if(f.isImportSpecifier()){let d=Zu(f.get("imported"),n),m=f.get("local").node.name;c.imports.set(m,d);let y=s.get(m);y&&(s.delete(m),y.names.forEach(p=>{c.reexports.set(p,d)}),c.referenced=!0)}})}else if(u.isExportAllDeclaration()){l=!0;let c=o(u.node.source,u.node);c.loc||(c.loc=u.node.loc),c.reexportAll={loc:u.node.loc},c.referenced=!0}else if(u.isExportNamedDeclaration()&&u.node.source){l=!0;let c=o(u.node.source,u.node);c.loc||(c.loc=u.node.loc),u.get("specifiers").forEach(f=>{SC(f);let d=Zu(f.get("local"),n),m=Zu(f.get("exported"),n);if(c.reexports.set(m,d),c.referenced=!0,m==="__esModule")throw f.get("exported").buildCodeFrameError('Illegal export "__esModule".')})}else(u.isExportNamedDeclaration()||u.isExportDefaultDeclaration())&&(l=!0)});for(let u of a.values()){let c=!1,f=!1;u.importsNamespace.size>0&&(c=!0,f=!0),u.reexportAll&&(f=!0);for(let d of u.imports.values())d==="default"?c=!0:f=!0;for(let d of u.reexports.values())d==="default"?c=!0:f=!0;c&&f?u.interop="namespace":c&&(u.interop="default")}if(t)for(let[u,c]of a)c.wrap=t(u,c,i.get(u));return{hasExports:l,local:s,sources:a}}function qfe(e,t,r){let n=new Map;e.get("body").forEach(a=>{let o;if(a.isImportDeclaration())o="import";else{if(a.isExportDefaultDeclaration()&&(a=a.get("declaration")),a.isExportNamedDeclaration()){if(a.node.declaration)a=a.get("declaration");else if(t&&a.node.source&&a.get("source").isStringLiteral()){a.get("specifiers").forEach(l=>{SC(l),n.set(l.get("local").node.name,"block")});return}}if(a.isFunctionDeclaration())o="hoisted";else if(a.isClassDeclaration())o="block";else if(a.isVariableDeclaration({kind:"var"}))o="var";else if(a.isVariableDeclaration())o="block";else return}Object.keys(a.getOuterBindingIdentifiers()).forEach(l=>{n.set(l,o)})});let s=new Map,i=a=>{let o=a.node.name,l=s.get(o);if(!l){let u=n.get(o);if(u===void 0)throw a.buildCodeFrameError(`Exporting local "${o}", which is not declared.`);l={names:[],kind:u},s.set(o,l)}return l};return e.get("body").forEach(a=>{if(a.isExportNamedDeclaration()&&(t||!a.node.source))if(a.node.declaration){let o=a.get("declaration"),l=o.getOuterBindingIdentifierPaths();Object.keys(l).forEach(u=>{if(u==="__esModule")throw o.buildCodeFrameError('Illegal export "__esModule".');i(l[u]).names.push(u)})}else a.get("specifiers").forEach(o=>{let l=o.get("local"),u=o.get("exported"),c=i(l),f=Zu(u,r);if(f==="__esModule")throw u.buildCodeFrameError('Illegal export "__esModule".');c.names.push(f)});else if(a.isExportDefaultDeclaration()){let o=a.get("declaration");if(o.isFunctionDeclaration()||o.isClassDeclaration())i(o.get("id")).names.push("default");else throw o.buildCodeFrameError("Unexpected default expression export.")}}),s}function Ufe(e){e.get("body").forEach(t=>{t.isExportDefaultDeclaration()&&(0,Bfe.default)(t)})}function Vfe(e){e.get("body").forEach(t=>{if(t.isImportDeclaration())t.remove();else if(t.isExportNamedDeclaration())t.node.declaration?(t.node.declaration._blockHoist=t.node._blockHoist,t.replaceWith(t.node.declaration)):t.remove();else if(t.isExportDefaultDeclaration()){let r=t.get("declaration");if(r.isFunctionDeclaration()||r.isClassDeclaration())r._blockHoist=t.node._blockHoist,t.replaceWith(r);else throw r.buildCodeFrameError("Unexpected default expression export.")}else t.isExportAllDeclaration()&&t.remove()})}});var xC=b(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.toGetWrapperPayload=Kfe;ec.wrapReference=Gfe;var $fe=ft(),Wfe=T0();function Kfe(e){return(t,r)=>{if(e===!1||(0,Wfe.isSideEffectImport)(r)||r.reexportAll)return null;if(e===!0)return/\./.test(t)?null:"lazy";if(Array.isArray(e))return e.indexOf(t)===-1?null:"lazy";if(typeof e=="function")return e(t)?"lazy":null;throw new Error(".lazy must be a boolean, string array, or function")}}function Gfe(e,t){return t==="lazy"?$fe.types.callExpression(e,[]):null}});var S0=b(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.buildDynamicImport=Hfe;var Wt=ft();tc.getDynamicImportSource=function(t){let[r]=t.arguments;return Wt.types.isStringLiteral(r)||Wt.types.isTemplateLiteral(r)?r:Wt.template.expression.ast`\`\${${r}}\``};function Hfe(e,t,r,n){let s=Wt.types.isCallExpression(e)?e.arguments[0]:e.source;if(Wt.types.isStringLiteral(s)||Wt.types.isTemplateLiteral(s)&&s.quasis.length===0)return t?Wt.template.expression.ast` Promise.resolve().then(() => ${n(s)}) `:n(s);let i=Wt.types.isTemplateLiteral(s)?Wt.types.identifier("specifier"):Wt.types.templateLiteral([Wt.types.templateElement({raw:""}),Wt.types.templateElement({raw:""})],[Wt.types.identifier("specifier")]);return t?Wt.template.expression.ast` (specifier => new Promise(r => r(${i})) .then(s => ${n(Wt.types.identifier("s"))}) )(${s}) `:r?Wt.template.expression.ast` (specifier => new Promise(r => r(${n(i)})) )(${s}) `:Wt.template.expression.ast` (specifier => ${n(i)})(${s}) `}});var PC=b(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.default=x0;{let e=x0;rc.default=x0=function(r,n){var s,i,a,o;return e(r,{moduleId:(s=n.moduleId)!=null?s:r.moduleId,moduleIds:(i=n.moduleIds)!=null?i:r.moduleIds,getModuleId:(a=n.getModuleId)!=null?a:r.getModuleId,moduleRoot:(o=n.moduleRoot)!=null?o:r.moduleRoot})}}function x0(e,t){let{filename:r,filenameRelative:n=r,sourceRoot:s=t.moduleRoot}=e,{moduleId:i,moduleIds:a=!!i,getModuleId:o,moduleRoot:l=s}=t;if(!a)return null;if(i!=null&&!o)return i;let u=l!=null?l+"/":"";if(n){let c=s!=null?new RegExp("^"+s+"/?"):"";u+=n.replace(c,"").replace(/\.(\w*?)$/,"")}return u=u.replace(/\\/g,"/"),o&&o(u)||u}});var vo=b(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Object.defineProperty(Er,"buildDynamicImport",{enumerable:!0,get:function(){return Jfe.buildDynamicImport}});Er.buildNamespaceInitStatements=cpe;Er.ensureStatementsHoisted=lpe;Object.defineProperty(Er,"getModuleName",{enumerable:!0,get:function(){return zfe.default}});Object.defineProperty(Er,"hasExports",{enumerable:!0,get:function(){return Eo.hasExports}});Object.defineProperty(Er,"isModule",{enumerable:!0,get:function(){return wC.isModule}});Object.defineProperty(Er,"isSideEffectImport",{enumerable:!0,get:function(){return Eo.isSideEffectImport}});Er.rewriteModuleStatementsAndPrepareHeader=ope;Object.defineProperty(Er,"rewriteThis",{enumerable:!0,get:function(){return DC.default}});Er.wrapInterop=upe;var Yfe=require("assert"),Jt=ft(),wC=p0(),DC=fC(),Xfe=EC(),Eo=T0(),w0=xC(),Jfe=S0(),zfe=PC(),{booleanLiteral:Qfe,callExpression:AC,cloneNode:nc,directive:Zfe,directiveLiteral:epe,expressionStatement:tpe,identifier:sc,isIdentifier:rpe,memberExpression:CC,stringLiteral:npe,valueToNode:spe,variableDeclaration:ipe,variableDeclarator:ape}=Jt.types;Er.getDynamicImportSource=S0().getDynamicImportSource;function ope(e,{exportName:t,strict:r,allowTopLevelThis:n,strictMode:s,noInterop:i,importInterop:a=i?"none":"babel",lazy:o,getWrapperPayload:l=w0.toGetWrapperPayload(o!=null?o:!1),wrapReference:u=w0.wrapReference,esNamespaceOnly:c,filename:f,constantReexports:d=arguments[1].loose,enumerableModuleMeta:m=arguments[1].loose,noIncompleteNsImportDetection:y}){(0,Eo.validateImportInteropOption)(a),Yfe((0,wC.isModule)(e),"Cannot process module statements in a script"),e.node.sourceType="script";let p=(0,Eo.default)(e,t,{importInterop:a,initializeReexports:d,getWrapperPayload:l,esNamespaceOnly:c,filename:f});n||(0,DC.default)(e),(0,Xfe.default)(e,p,u),s!==!1&&(e.node.directives.some(C=>C.value.value==="use strict")||e.unshiftContainer("directives",Zfe(epe("use strict"))));let E=[];(0,Eo.hasExports)(p)&&!r&&E.push(fpe(p,m));let T=dpe(e,p);return T&&(p.exportNameListName=T.name,E.push(T.statement)),E.push(...hpe(e,p,u,d,y)),{meta:p,headers:E}}function lpe(e){e.forEach(t=>{t._blockHoist=3})}function upe(e,t,r){if(r==="none")return null;if(r==="node-namespace")return AC(e.hub.addHelper("interopRequireWildcard"),[t,Qfe(!0)]);if(r==="node-default")return null;let n;if(r==="default")n="interopRequireDefault";else if(r==="namespace")n="interopRequireWildcard";else throw new Error(`Unknown interop: ${r}`);return AC(e.hub.addHelper(n),[t])}function cpe(e,t,r=!1,n=w0.wrapReference){var s;let i=[],a=sc(t.name);for(let l of t.importsNamespace)l!==t.name&&i.push(Jt.template.statement`var NAME = SOURCE;`({NAME:l,SOURCE:nc(a)}));let o=(s=n(a,t.wrap))!=null?s:a;r&&i.push(...IC(e,t,!0,n));for(let l of t.reexportNamespace)i.push((Jt.types.isIdentifier(o)?Jt.template.statement`EXPORTS.NAME = NAMESPACE;`:Jt.template.statement` Object.defineProperty(EXPORTS, "NAME", { enumerable: true, get: function() { return NAMESPACE; } }); `)({EXPORTS:e.exportName,NAME:l,NAMESPACE:nc(o)}));if(t.reexportAll){let l=ppe(e,nc(o),r);l.loc=t.reexportAll.loc,i.push(l)}return i}var P0={constant:Jt.template.statement`EXPORTS.EXPORT_NAME = NAMESPACE_IMPORT;`,constantComputed:Jt.template.statement`EXPORTS["EXPORT_NAME"] = NAMESPACE_IMPORT;`,spec:Jt.template.statement` Object.defineProperty(EXPORTS, "EXPORT_NAME", { enumerable: true, get: function() { return NAMESPACE_IMPORT; }, }); `};function IC(e,t,r,n){var s;let i=sc(t.name);i=(s=n(i,t.wrap))!=null?s:i;let{stringSpecifiers:a}=e;return Array.from(t.reexports,([o,l])=>{let u=nc(i);l==="default"&&t.interop==="node-default"||(a.has(l)?u=CC(u,npe(l),!0):u=CC(u,sc(l)));let c={EXPORTS:e.exportName,EXPORT_NAME:o,NAMESPACE_IMPORT:u};return r||rpe(u)?a.has(o)?P0.constantComputed(c):P0.constant(c):P0.spec(c)})}function fpe(e,t=!1){return(t?Jt.template.statement` EXPORTS.__esModule = true; `:Jt.template.statement` Object.defineProperty(EXPORTS, "__esModule", { value: true, }); `)({EXPORTS:e.exportName})}function ppe(e,t,r){return(r?Jt.template.statement` Object.keys(NAMESPACE).forEach(function(key) { if (key === "default" || key === "__esModule") return; VERIFY_NAME_LIST; if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return; EXPORTS[key] = NAMESPACE[key]; }); `:Jt.template.statement` Object.keys(NAMESPACE).forEach(function(key) { if (key === "default" || key === "__esModule") return; VERIFY_NAME_LIST; if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return; Object.defineProperty(EXPORTS, key, { enumerable: true, get: function() { return NAMESPACE[key]; }, }); }); `)({NAMESPACE:t,EXPORTS:e.exportName,VERIFY_NAME_LIST:e.exportNameListName?(0,Jt.template)` if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return; `({EXPORTS_LIST:e.exportNameListName}):null})}function dpe(e,t){let r=Object.create(null);for(let i of t.local.values())for(let a of i.names)r[a]=!0;let n=!1;for(let i of t.source.values()){for(let a of i.reexports.keys())r[a]=!0;for(let a of i.reexportNamespace)r[a]=!0;n=n||!!i.reexportAll}if(!n||Object.keys(r).length===0)return null;let s=e.scope.generateUidIdentifier("exportNames");return delete r.default,{name:s.name,statement:ipe("var",[ape(s,spe(r))])}}function hpe(e,t,r,n=!1,s=!1){let i=[];for(let[o,l]of t.local)if(l.kind!=="import"){if(l.kind==="hoisted")i.push([l.names[0],C0(t,l.names,sc(o))]);else if(!s)for(let u of l.names)i.push([u,null])}for(let o of t.source.values()){if(!n){let l=IC(t,o,!1,r),u=[...o.reexports.keys()];for(let c=0;co0&&(a.push(C0(t,u,e.scope.buildUndefinedNode())),u=[]),a.push(d)):u.push(f)}u.length>0&&a.push(C0(t,u,e.scope.buildUndefinedNode()))}return a}var A0={computed:Jt.template.expression`EXPORTS["NAME"] = VALUE`,default:Jt.template.expression`EXPORTS.NAME = VALUE`,define:Jt.template.expression`Object.defineProperty(EXPORTS, "NAME", { enumerable:true, value: void 0, writable: true })["NAME"] = VALUE`};function C0(e,t,r){let{stringSpecifiers:n,exportName:s}=e;return tpe(t.reduce((i,a)=>{let o={EXPORTS:s,NAME:a,VALUE:i};return a==="__proto__"?A0.define(o):n.has(a)?A0.computed(o):A0.default(o)},r))}});var wn=b((ke,BC)=>{ke=BC.exports=qe;var dt;typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?dt=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:dt=function(){};ke.SEMVER_SPEC_VERSION="2.0.0";var To=256,ic=Number.MAX_SAFE_INTEGER||9007199254740991,D0=16,mpe=To-6,Mi=ke.re=[],pt=ke.safeRe=[],Y=ke.src=[],R=ke.tokens={},NC=0;function Ge(e){R[e]=NC++}var O0="[a-zA-Z0-9-]",I0=[["\\s",1],["\\d",To],[O0,mpe]];function xo(e){for(var t=0;t)?=?)";Ge("XRANGEIDENTIFIERLOOSE");Y[R.XRANGEIDENTIFIERLOOSE]=Y[R.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";Ge("XRANGEIDENTIFIER");Y[R.XRANGEIDENTIFIER]=Y[R.NUMERICIDENTIFIER]+"|x|X|\\*";Ge("XRANGEPLAIN");Y[R.XRANGEPLAIN]="[v=\\s]*("+Y[R.XRANGEIDENTIFIER]+")(?:\\.("+Y[R.XRANGEIDENTIFIER]+")(?:\\.("+Y[R.XRANGEIDENTIFIER]+")(?:"+Y[R.PRERELEASE]+")?"+Y[R.BUILD]+"?)?)?";Ge("XRANGEPLAINLOOSE");Y[R.XRANGEPLAINLOOSE]="[v=\\s]*("+Y[R.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+Y[R.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+Y[R.XRANGEIDENTIFIERLOOSE]+")(?:"+Y[R.PRERELEASELOOSE]+")?"+Y[R.BUILD]+"?)?)?";Ge("XRANGE");Y[R.XRANGE]="^"+Y[R.GTLT]+"\\s*"+Y[R.XRANGEPLAIN]+"$";Ge("XRANGELOOSE");Y[R.XRANGELOOSE]="^"+Y[R.GTLT]+"\\s*"+Y[R.XRANGEPLAINLOOSE]+"$";Ge("COERCE");Y[R.COERCE]="(^|[^\\d])(\\d{1,"+D0+"})(?:\\.(\\d{1,"+D0+"}))?(?:\\.(\\d{1,"+D0+"}))?(?:$|[^\\d])";Ge("COERCERTL");Mi[R.COERCERTL]=new RegExp(Y[R.COERCE],"g");pt[R.COERCERTL]=new RegExp(xo(Y[R.COERCE]),"g");Ge("LONETILDE");Y[R.LONETILDE]="(?:~>?)";Ge("TILDETRIM");Y[R.TILDETRIM]="(\\s*)"+Y[R.LONETILDE]+"\\s+";Mi[R.TILDETRIM]=new RegExp(Y[R.TILDETRIM],"g");pt[R.TILDETRIM]=new RegExp(xo(Y[R.TILDETRIM]),"g");var ype="$1~";Ge("TILDE");Y[R.TILDE]="^"+Y[R.LONETILDE]+Y[R.XRANGEPLAIN]+"$";Ge("TILDELOOSE");Y[R.TILDELOOSE]="^"+Y[R.LONETILDE]+Y[R.XRANGEPLAINLOOSE]+"$";Ge("LONECARET");Y[R.LONECARET]="(?:\\^)";Ge("CARETTRIM");Y[R.CARETTRIM]="(\\s*)"+Y[R.LONECARET]+"\\s+";Mi[R.CARETTRIM]=new RegExp(Y[R.CARETTRIM],"g");pt[R.CARETTRIM]=new RegExp(xo(Y[R.CARETTRIM]),"g");var gpe="$1^";Ge("CARET");Y[R.CARET]="^"+Y[R.LONECARET]+Y[R.XRANGEPLAIN]+"$";Ge("CARETLOOSE");Y[R.CARETLOOSE]="^"+Y[R.LONECARET]+Y[R.XRANGEPLAINLOOSE]+"$";Ge("COMPARATORLOOSE");Y[R.COMPARATORLOOSE]="^"+Y[R.GTLT]+"\\s*("+Y[R.LOOSEPLAIN]+")$|^$";Ge("COMPARATOR");Y[R.COMPARATOR]="^"+Y[R.GTLT]+"\\s*("+Y[R.FULLPLAIN]+")$|^$";Ge("COMPARATORTRIM");Y[R.COMPARATORTRIM]="(\\s*)"+Y[R.GTLT]+"\\s*("+Y[R.LOOSEPLAIN]+"|"+Y[R.XRANGEPLAIN]+")";Mi[R.COMPARATORTRIM]=new RegExp(Y[R.COMPARATORTRIM],"g");pt[R.COMPARATORTRIM]=new RegExp(xo(Y[R.COMPARATORTRIM]),"g");var bpe="$1$2$3";Ge("HYPHENRANGE");Y[R.HYPHENRANGE]="^\\s*("+Y[R.XRANGEPLAIN]+")\\s+-\\s+("+Y[R.XRANGEPLAIN]+")\\s*$";Ge("HYPHENRANGELOOSE");Y[R.HYPHENRANGELOOSE]="^\\s*("+Y[R.XRANGEPLAINLOOSE]+")\\s+-\\s+("+Y[R.XRANGEPLAINLOOSE]+")\\s*$";Ge("STAR");Y[R.STAR]="(<|>)?=?\\s*\\*";for(un=0;unTo)return null;var r=t.loose?pt[R.LOOSE]:pt[R.FULL];if(!r.test(e))return null;try{return new qe(e,t)}catch{return null}}ke.valid=Epe;function Epe(e,t){var r=Us(e,t);return r?r.version:null}ke.clean=vpe;function vpe(e,t){var r=Us(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}ke.SemVer=qe;function qe(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof qe){if(e.loose===t.loose)return e;e=e.version}else if(typeof e!="string")throw new TypeError("Invalid Version: "+e);if(e.length>To)throw new TypeError("version is longer than "+To+" characters");if(!(this instanceof qe))return new qe(e,t);dt("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?pt[R.LOOSE]:pt[R.FULL]);if(!r)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>ic||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ic||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ic||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(n){if(/^[0-9]+$/.test(n)){var s=+n;if(s>=0&&s=0;)typeof this.prerelease[r]=="number"&&(this.prerelease[r]++,r=-2);r===-1&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this};ke.inc=Tpe;function Tpe(e,t,r,n){typeof r=="string"&&(n=r,r=void 0);try{return new qe(e,r).inc(t,n).version}catch{return null}}ke.diff=Spe;function Spe(e,t){if(_0(e,t))return null;var r=Us(e),n=Us(t),s="";if(r.prerelease.length||n.prerelease.length){s="pre";var i="prerelease"}for(var a in r)if((a==="major"||a==="minor"||a==="patch")&&r[a]!==n[a])return s+a;return i}ke.compareIdentifiers=qs;var OC=/^[0-9]+$/;function qs(e,t){var r=OC.test(e),n=OC.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e0}ke.lt=ac;function ac(e,t,r){return Cn(e,t,r)<0}ke.eq=_0;function _0(e,t,r){return Cn(e,t,r)===0}ke.neq=kC;function kC(e,t,r){return Cn(e,t,r)!==0}ke.gte=N0;function N0(e,t,r){return Cn(e,t,r)>=0}ke.lte=k0;function k0(e,t,r){return Cn(e,t,r)<=0}ke.cmp=oc;function oc(e,t,r,n){switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return _0(e,r,n);case"!=":return kC(e,r,n);case">":return So(e,r,n);case">=":return N0(e,r,n);case"<":return ac(e,r,n);case"<=":return k0(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}ke.Comparator=kr;function kr(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof kr){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof kr))return new kr(e,t);e=e.trim().split(/\s+/).join(" "),dt("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===Ri?this.value="":this.value=this.operator+this.semver.version,dt("comp",this)}var Ri={};kr.prototype.parse=function(e){var t=this.options.loose?pt[R.COMPARATORLOOSE]:pt[R.COMPARATOR],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1]!==void 0?r[1]:"",this.operator==="="&&(this.operator=""),r[2]?this.semver=new qe(r[2],this.options.loose):this.semver=Ri};kr.prototype.toString=function(){return this.value};kr.prototype.test=function(e){if(dt("Comparator.test",e,this.options.loose),this.semver===Ri||e===Ri)return!0;if(typeof e=="string")try{e=new qe(e,this.options)}catch{return!1}return oc(e,this.operator,this.semver,this.options)};kr.prototype.intersects=function(e,t){if(!(e instanceof kr))throw new TypeError("a Comparator is required");(!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1});var r;if(this.operator==="")return this.value===""?!0:(r=new Ct(e.value,t),lc(this.value,r,t));if(e.operator==="")return e.value===""?!0:(r=new Ct(this.value,t),lc(e.semver,r,t));var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">"),s=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<"),i=this.semver.version===e.semver.version,a=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<="),o=oc(this.semver,"<",e.semver,t)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"),l=oc(this.semver,">",e.semver,t)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||s||i&&a||o||l};ke.Range=Ct;function Ct(e,t){if((!t||typeof t!="object")&&(t={loose:!!t,includePrerelease:!1}),e instanceof Ct)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new Ct(e.raw,t);if(e instanceof kr)return new Ct(e.value,t);if(!(this instanceof Ct))return new Ct(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(r){return this.parseRange(r.trim())},this).filter(function(r){return r.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}Ct.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range};Ct.prototype.toString=function(){return this.range};Ct.prototype.parseRange=function(e){var t=this.options.loose,r=t?pt[R.HYPHENRANGELOOSE]:pt[R.HYPHENRANGE];e=e.replace(r,Upe),dt("hyphen replace",e),e=e.replace(pt[R.COMPARATORTRIM],bpe),dt("comparator trim",e,pt[R.COMPARATORTRIM]),e=e.replace(pt[R.TILDETRIM],ype),e=e.replace(pt[R.CARETTRIM],gpe),e=e.split(/\s+/).join(" ");var n=t?pt[R.COMPARATORLOOSE]:pt[R.COMPARATOR],s=e.split(" ").map(function(i){return kpe(i,this.options)},this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter(function(i){return!!i.match(n)})),s=s.map(function(i){return new kr(i,this.options)},this),s};Ct.prototype.intersects=function(e,t){if(!(e instanceof Ct))throw new TypeError("a Range is required");return this.set.some(function(r){return _C(r,t)&&e.set.some(function(n){return _C(n,t)&&r.every(function(s){return n.every(function(i){return s.intersects(i,t)})})})})};function _C(e,t){for(var r=!0,n=e.slice(),s=n.pop();r&&n.length;)r=n.every(function(i){return s.intersects(i,t)}),s=n.pop();return r}ke.toComparators=Npe;function Npe(e,t){return new Ct(e,t).set.map(function(r){return r.map(function(n){return n.value}).join(" ").trim().split(" ")})}function kpe(e,t){return dt("comp",e,t),e=jpe(e,t),dt("caret",e),e=Bpe(e,t),dt("tildes",e),e=Mpe(e,t),dt("xrange",e),e=qpe(e,t),dt("stars",e),e}function fr(e){return!e||e.toLowerCase()==="x"||e==="*"}function Bpe(e,t){return e.trim().split(/\s+/).map(function(r){return Fpe(r,t)}).join(" ")}function Fpe(e,t){var r=t.loose?pt[R.TILDELOOSE]:pt[R.TILDE];return e.replace(r,function(n,s,i,a,o){dt("tilde",e,n,s,i,a,o);var l;return fr(s)?l="":fr(i)?l=">="+s+".0.0 <"+(+s+1)+".0.0":fr(a)?l=">="+s+"."+i+".0 <"+s+"."+(+i+1)+".0":o?(dt("replaceTilde pr",o),l=">="+s+"."+i+"."+a+"-"+o+" <"+s+"."+(+i+1)+".0"):l=">="+s+"."+i+"."+a+" <"+s+"."+(+i+1)+".0",dt("tilde return",l),l})}function jpe(e,t){return e.trim().split(/\s+/).map(function(r){return Lpe(r,t)}).join(" ")}function Lpe(e,t){dt("caret",e,t);var r=t.loose?pt[R.CARETLOOSE]:pt[R.CARET];return e.replace(r,function(n,s,i,a,o){dt("caret",e,n,s,i,a,o);var l;return fr(s)?l="":fr(i)?l=">="+s+".0.0 <"+(+s+1)+".0.0":fr(a)?s==="0"?l=">="+s+"."+i+".0 <"+s+"."+(+i+1)+".0":l=">="+s+"."+i+".0 <"+(+s+1)+".0.0":o?(dt("replaceCaret pr",o),s==="0"?i==="0"?l=">="+s+"."+i+"."+a+"-"+o+" <"+s+"."+i+"."+(+a+1):l=">="+s+"."+i+"."+a+"-"+o+" <"+s+"."+(+i+1)+".0":l=">="+s+"."+i+"."+a+"-"+o+" <"+(+s+1)+".0.0"):(dt("no pr"),s==="0"?i==="0"?l=">="+s+"."+i+"."+a+" <"+s+"."+i+"."+(+a+1):l=">="+s+"."+i+"."+a+" <"+s+"."+(+i+1)+".0":l=">="+s+"."+i+"."+a+" <"+(+s+1)+".0.0"),dt("caret return",l),l})}function Mpe(e,t){return dt("replaceXRanges",e,t),e.split(/\s+/).map(function(r){return Rpe(r,t)}).join(" ")}function Rpe(e,t){e=e.trim();var r=t.loose?pt[R.XRANGELOOSE]:pt[R.XRANGE];return e.replace(r,function(n,s,i,a,o,l){dt("xRange",e,n,s,i,a,o,l);var u=fr(i),c=u||fr(a),f=c||fr(o),d=f;return s==="="&&d&&(s=""),l=t.includePrerelease?"-0":"",u?s===">"||s==="<"?n="<0.0.0-0":n="*":s&&d?(c&&(a=0),o=0,s===">"?(s=">=",c?(i=+i+1,a=0,o=0):(a=+a+1,o=0)):s==="<="&&(s="<",c?i=+i+1:a=+a+1),n=s+i+"."+a+"."+o+l):c?n=">="+i+".0.0"+l+" <"+(+i+1)+".0.0"+l:f&&(n=">="+i+"."+a+".0"+l+" <"+i+"."+(+a+1)+".0"+l),dt("xRange return",n),n})}function qpe(e,t){return dt("replaceStars",e,t),e.trim().replace(pt[R.STAR],"")}function Upe(e,t,r,n,s,i,a,o,l,u,c,f,d){return fr(r)?t="":fr(n)?t=">="+r+".0.0":fr(s)?t=">="+r+"."+n+".0":t=">="+t,fr(l)?o="":fr(u)?o="<"+(+l+1)+".0.0":fr(c)?o="<"+l+"."+(+u+1)+".0":f?o="<="+l+"."+u+"."+c+"-"+f:o="<="+o,(t+" "+o).trim()}Ct.prototype.test=function(e){if(!e)return!1;if(typeof e=="string")try{e=new qe(e,this.options)}catch{return!1}for(var t=0;t0){var s=e[n].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch)return!0}return!1}return!0}ke.satisfies=lc;function lc(e,t,r){try{t=new Ct(t,r)}catch{return!1}return t.test(e)}ke.maxSatisfying=$pe;function $pe(e,t,r){var n=null,s=null;try{var i=new Ct(t,r)}catch{return null}return e.forEach(function(a){i.test(a)&&(!n||s.compare(a)===-1)&&(n=a,s=new qe(n,r))}),n}ke.minSatisfying=Wpe;function Wpe(e,t,r){var n=null,s=null;try{var i=new Ct(t,r)}catch{return null}return e.forEach(function(a){i.test(a)&&(!n||s.compare(a)===1)&&(n=a,s=new qe(n,r))}),n}ke.minVersion=Kpe;function Kpe(e,t){e=new Ct(e,t);var r=new qe("0.0.0");if(e.test(r)||(r=new qe("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!r||So(r,a))&&(r=a);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+i.operator)}})}return r&&e.test(r)?r:null}ke.validRange=Gpe;function Gpe(e,t){try{return new Ct(e,t).range||"*"}catch{return null}}ke.ltr=Hpe;function Hpe(e,t,r){return B0(e,t,"<",r)}ke.gtr=Ype;function Ype(e,t,r){return B0(e,t,">",r)}ke.outside=B0;function B0(e,t,r,n){e=new qe(e,n),t=new Ct(t,n);var s,i,a,o,l;switch(r){case">":s=So,i=k0,a=ac,o=">",l=">=";break;case"<":s=ac,i=N0,a=So,o="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(lc(e,t,n))return!1;for(var u=0;u=0.0.0")),f=f||m,d=d||m,s(m.semver,f.semver,n)?f=m:a(m.semver,d.semver,n)&&(d=m)}),f.operator===o||f.operator===l||(!d.operator||d.operator===o)&&i(e,d.semver))return!1;if(d.operator===l&&a(e,d.semver))return!1}return!0}ke.prerelease=Xpe;function Xpe(e,t){var r=Us(e,t);return r&&r.prerelease.length?r.prerelease:null}ke.intersects=Jpe;function Jpe(e,t,r){return e=new Ct(e,r),t=new Ct(t,r),e.intersects(t)}ke.coerce=zpe;function zpe(e,t){if(e instanceof qe)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};var r=null;if(!t.rtl)r=e.match(pt[R.COERCE]);else{for(var n;(n=pt[R.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||n.index+n[0].length!==r.index+r[0].length)&&(r=n),pt[R.COERCERTL].lastIndex=n.index+n[1].length+n[2].length;pt[R.COERCERTL].lastIndex=-1}return r===null?null:Us(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),t)}});var fc=b(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.default=void 0;function Po(){let e=i0();return Po=function(){return e},e}function F0(){let e=Vr();return F0=function(){return e},e}function FC(){let e=Ai();return FC=function(){return e},e}function jC(){let e=Oe();return jC=function(){return e},e}function LC(){let e=vo();return LC=function(){return e},e}function uc(){let e=wn();return uc=function(){return e},e}var{cloneNode:Qpe,interpreterDirective:Zpe}=jC(),ede={enter(e,t){let r=e.node.loc;r&&(t.loc=r,e.stop())}},j0=class e{constructor(t,{code:r,ast:n,inputMap:s}){this._map=new Map,this.opts=void 0,this.declarations={},this.path=void 0,this.ast=void 0,this.scope=void 0,this.metadata={},this.code="",this.inputMap=void 0,this.hub={file:this,getCode:()=>this.code,getScope:()=>this.scope,addHelper:this.addHelper.bind(this),buildError:this.buildCodeFrameError.bind(this)},this.opts=t,this.code=r,this.ast=n,this.inputMap=s,this.path=F0().NodePath.get({hub:this.hub,parentPath:null,parent:this.ast,container:this.ast,key:"program"}).setContext(),this.scope=this.path.scope}get shebang(){let{interpreter:t}=this.path.node;return t?t.value:""}set shebang(t){t?this.path.get("interpreter").replaceWith(Zpe(t)):this.path.get("interpreter").remove()}set(t,r){if(t==="helpersNamespace")throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility.If you are using @babel/plugin-external-helpers you will need to use a newer version than the one you currently have installed. If you have your own implementation, you'll want to explore using 'helperGenerator' alongside 'file.availableHelper()'.");this._map.set(t,r)}get(t){return this._map.get(t)}has(t){return this._map.has(t)}getModuleName(){return(0,LC().getModuleName)(this.opts,this.opts)}addImport(){throw new Error("This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-module-imports' module and use the functions exposed from that module, such as 'addNamed' or 'addDefault'.")}availableHelper(t,r){let n;try{n=Po().minVersion(t)}catch(s){if(s.code!=="BABEL_HELPER_UNKNOWN")throw s;return!1}return typeof r!="string"?!0:(uc().valid(r)&&(r=`^${r}`),!uc().intersects(`<${n}`,r)&&!uc().intersects(">=8.0.0",r))}addHelper(t){let r=this.declarations[t];if(r)return Qpe(r);let n=this.get("helperGenerator");if(n){let l=n(t);if(l)return l}Po().ensure(t,e);let s=this.declarations[t]=this.scope.generateUidIdentifier(t),i={};for(let l of Po().getDependencies(t))i[l]=this.addHelper(l);let{nodes:a,globals:o}=Po().get(t,l=>i[l],s,Object.keys(this.scope.getAllBindings()));return o.forEach(l=>{this.path.scope.hasBinding(l,!0)&&this.path.scope.rename(l)}),a.forEach(l=>{l._compact=!0}),this.path.unshiftContainer("body",a),this.path.get("body").forEach(l=>{a.indexOf(l.node)!==-1&&l.isVariableDeclaration()&&this.scope.registerDeclaration(l)}),s}addTemplateObject(){throw new Error("This function has been moved into the template literal transform itself.")}buildCodeFrameError(t,r,n=SyntaxError){let s=t&&(t.loc||t._loc);if(!s&&t){let i={loc:null};(0,F0().default)(t,ede,this.scope,i),s=i.loc;let a="This is an error on an internal node. Probably an internal error.";s&&(a+=" Location has been estimated."),r+=` (${a})`}if(s){let{highlightCode:i=!0}=this.opts;r+=` `+(0,FC().codeFrameColumns)(this.code,{start:{line:s.start.line,column:s.start.column+1},end:s.end&&s.start.line===s.end.line?{line:s.end.line,column:s.end.column+1}:void 0},{highlightCode:i})}return new n(r)}};cc.default=j0});var WC=b(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0});U0.default=gde;function pc(){let e=i0();return pc=function(){return e},e}function MC(){let e=lu();return MC=function(){return e},e}function RC(){let e=ki();return RC=function(){return e},e}function qC(){let e=Oe();return qC=function(){return e},e}var tde=fc(),{arrayExpression:rde,assignmentExpression:UC,binaryExpression:nde,blockStatement:sde,callExpression:ide,cloneNode:ade,conditionalExpression:ode,exportNamedDeclaration:lde,exportSpecifier:ude,expressionStatement:VC,functionExpression:cde,identifier:zt,memberExpression:L0,objectExpression:M0,program:dc,stringLiteral:$C,unaryExpression:fde,variableDeclaration:R0,variableDeclarator:q0}=qC(),pde=e=>RC().default.statement` (function (root, factory) { if (typeof define === "function" && define.amd) { define(AMD_ARGUMENTS, factory); } else if (typeof exports === "object") { factory(COMMON_ARGUMENTS); } else { factory(BROWSER_ARGUMENTS); } })(UMD_ROOT, function (FACTORY_PARAMETERS) { FACTORY_BODY }); `(e);function dde(e){let t=zt("babelHelpers"),r=[],n=cde(null,[zt("global")],sde(r)),s=dc([VC(ide(n,[ode(nde("===",fde("typeof",zt("global")),$C("undefined")),zt("self"),zt("global"))]))]);return r.push(R0("var",[q0(t,UC("=",L0(zt("global"),t),M0([])))])),hc(r,t,e),s}function hde(e){let t=[],r=hc(t,null,e);return t.unshift(lde(null,Object.keys(r).map(n=>ude(ade(r[n]),zt(n))))),dc(t,[],"module")}function mde(e){let t=zt("babelHelpers"),r=[];return r.push(R0("var",[q0(t,zt("global"))])),hc(r,t,e),dc([pde({FACTORY_PARAMETERS:zt("global"),BROWSER_ARGUMENTS:UC("=",L0(zt("root"),t),M0([])),COMMON_ARGUMENTS:zt("exports"),AMD_ARGUMENTS:rde([$C("exports")]),FACTORY_BODY:r,UMD_ROOT:zt("this")})])}function yde(e){let t=zt("babelHelpers"),r=[];r.push(R0("var",[q0(t,M0([]))]));let n=dc(r);return hc(r,t,e),r.push(VC(t)),n}function hc(e,t,r){let n=i=>t?L0(t,zt(i)):zt(`_${i}`),s={};return pc().list.forEach(function(i){if(r&&r.indexOf(i)<0)return;let a=s[i]=n(i);pc().ensure(i,tde.default);let{nodes:o}=pc().get(i,n,a);e.push(...o)}),s}function gde(e,t="global"){let r,n={global:dde,module:hde,umd:mde,var:yde}[t];if(n)r=n(e);else throw new Error(`Unsupported output type ${t}`);return(0,MC().default)(r).code}});var vr=b((Ewe,QC)=>{"use strict";var GC=Symbol.for("gensync:v1:start"),HC=Symbol.for("gensync:v1:suspend"),bde="GENSYNC_EXPECTED_START",Ede="GENSYNC_EXPECTED_SUSPEND",YC="GENSYNC_OPTIONS_ERROR",KC="GENSYNC_RACE_NONEMPTY",vde="GENSYNC_ERRBACK_NO_CALLBACK";QC.exports=Object.assign(function(t){let r=t;return typeof t!="function"?r=Sde(t):r=xde(t),Object.assign(r,Tde(r))},{all:V0({name:"all",arity:1,sync:function(e){return Array.from(e[0]).map(r=>$0(r))},async:function(e,t,r){let n=Array.from(e[0]);if(n.length===0){Promise.resolve().then(()=>t([]));return}let s=0,i=n.map(()=>{});n.forEach((a,o)=>{mc(a,l=>{i[o]=l,s+=1,s===i.length&&t(i)},r)})}}),race:V0({name:"race",arity:1,sync:function(e){let t=Array.from(e[0]);if(t.length===0)throw Vs("Must race at least 1 item",KC);return $0(t[0])},async:function(e,t,r){let n=Array.from(e[0]);if(n.length===0)throw Vs("Must race at least 1 item",KC);for(let s of n)mc(s,t,r)}})});function Tde(e){return{sync:function(...r){return $0(e.apply(this,r))},async:function(...r){return new Promise((n,s)=>{mc(e.apply(this,r),n,s)})},errback:function(...r){let n=r.pop();if(typeof n!="function")throw Vs("Asynchronous function called without callback",vde);let s;try{s=e.apply(this,r)}catch(i){n(i);return}mc(s,i=>n(void 0,i),i=>n(i))}}}function Ao(e,t,r,n){if(typeof r===e||n&&typeof r=="undefined")return;let s;throw n?s=`Expected opts.${t} to be either a ${e}, or undefined.`:s=`Expected opts.${t} to be a ${e}.`,Vs(s,YC)}function Vs(e,t){return Object.assign(new Error(e),{code:t})}function Sde({name:e,arity:t,sync:r,async:n,errback:s}){if(Ao("string","name",e,!0),Ao("number","arity",t,!0),Ao("function","sync",r),Ao("function","async",n,!0),Ao("function","errback",s,!0),n&&s)throw Vs("Expected one of either opts.async or opts.errback, but got _both_.",YC);if(typeof e!="string"){let i;s&&s.name&&s.name!=="errback"&&(i=s.name),n&&n.name&&n.name!=="async"&&(i=n.name.replace(/Async$/,"")),r&&r.name&&r.name!=="sync"&&(i=r.name.replace(/Sync$/,"")),typeof i=="string"&&(e=i)}return typeof t!="number"&&(t=r.length),V0({name:e,arity:t,sync:function(i){return r.apply(this,i)},async:function(i,a,o){n?n.apply(this,i).then(a,o):s?s.call(this,...i,(l,u)=>{l==null?a(u):o(l)}):a(r.apply(this,i))}})}function xde(e){return zC(e.name,e.length,function(...t){return e.apply(this,t)})}function V0({name:e,arity:t,sync:r,async:n}){return zC(e,t,function*(...s){let i=yield GC;if(!i)return r.call(this,s);let a;try{n.call(this,s,o=>{a||(a={value:o},i())},o=>{a||(a={err:o},i())})}catch(o){a={err:o},i()}if(yield HC,a.hasOwnProperty("err"))throw a.err;return a.value})}function $0(e){let t;for(;!({value:t}=e.next()).done;)XC(t,e);return t}function mc(e,t,r){(function n(){try{let s;for(;!({value:s}=e.next()).done;){XC(s,e);let i=!0,a=!1,o=e.next(()=>{i?a=!0:n()});if(i=!1,Pde(o,e),!a)return}return t(s)}catch(s){return r(s)}})()}function XC(e,t){e!==GC&&JC(t,Vs(`Got unexpected yielded value in gensync generator: ${JSON.stringify(e)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,bde))}function Pde({value:e,done:t},r){!t&&e===HC||JC(r,Vs(t?"Unexpected generator completion. If you get this, it is probably a gensync bug.":`Expected GENSYNC_SUSPEND, got ${JSON.stringify(e)}. If you get this, it is probably a gensync bug.`,Ede))}function JC(e,t){throw e.throw&&e.throw(t),t}function zC(e,t,r){if(typeof e=="string"){let n=Object.getOwnPropertyDescriptor(r,"name");(!n||n.configurable)&&Object.defineProperty(r,"name",Object.assign(n||{},{configurable:!0,value:e}))}if(typeof t=="number"){let n=Object.getOwnPropertyDescriptor(r,"length");(!n||n.configurable)&&Object.defineProperty(r,"length",Object.assign(n||{},{configurable:!0,value:t}))}return r}});var qi=b(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.forwardAsync=wde;Hr.isAsync=void 0;Hr.isThenable=r2;Hr.maybeAsync=Ade;Hr.waitFor=Hr.onFirstPause=void 0;function fs(){let e=vr();return fs=function(){return e},e}function ZC(e,t,r,n,s,i,a){try{var o=e[i](a),l=o.value}catch(u){r(u);return}o.done?t(l):Promise.resolve(l).then(n,s)}function t2(e){return function(){var t=this,r=arguments;return new Promise(function(n,s){var i=e.apply(t,r);function a(l){ZC(i,n,s,a,o,"next",l)}function o(l){ZC(i,n,s,a,o,"throw",l)}a(void 0)})}}var e2=fs()(function*(e){return yield*e}),vwe=Hr.isAsync=fs()({sync:()=>!1,errback:e=>e(null,!0)});function Ade(e,t){return fs()({sync(...r){let n=e.apply(this,r);if(r2(n))throw new Error(t);return n},async(...r){return Promise.resolve(e.apply(this,r))}})}var Cde=fs()({sync:e=>e("sync"),async:function(){var e=t2(function*(t){return t("async")});return function(r){return e.apply(this,arguments)}}()});function wde(e,t){let r=fs()(e);return Cde(n=>{let s=r[n];return t(s)})}var Twe=Hr.onFirstPause=fs()({name:"onFirstPause",arity:2,sync:function(e){return e2.sync(e)},errback:function(e,t,r){let n=!1;e2.errback(e,(s,i)=>{n=!0,r(s,i)}),n||t()}}),Swe=Hr.waitFor=fs()({sync:e=>e,async:function(){var e=t2(function*(t){return t});return function(r){return e.apply(this,arguments)}}()});function r2(e){return!!e&&(typeof e=="object"||typeof e=="function")&&!!e.then&&typeof e.then=="function"}});var gc=b(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.isIterableIterator=Ode;yc.mergeOptions=Dde;function Dde(e,t){for(let r of Object.keys(t))if((r==="parserOpts"||r==="generatorOpts"||r==="assumptions")&&t[r]){let n=t[r],s=e[r]||(e[r]={});Ide(s,n)}else{let n=t[r];n!==void 0&&(e[r]=n)}}function Ide(e,t){for(let r of Object.keys(t)){let n=t[r];n!==void 0&&(e[r]=n)}}function Ode(e){return!!e&&typeof e.next=="function"&&typeof e[Symbol.iterator]=="function"}});var Ws=b($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.assertSimpleType=bc;$s.makeStrongCache=o2;$s.makeStrongCacheSync=Bde;$s.makeWeakCache=a2;$s.makeWeakCacheSync=kde;function s2(){let e=vr();return s2=function(){return e},e}var Ui=qi(),_de=gc(),i2=e=>s2()(e).sync;function*Nde(){return!0}function a2(e){return l2(WeakMap,e)}function kde(e){return i2(a2(e))}function o2(e){return l2(Map,e)}function Bde(e){return i2(o2(e))}function l2(e,t){let r=new e,n=new e,s=new e;return function*(a,o){let l=yield*(0,Ui.isAsync)(),u=l?n:r,c=yield*Fde(l,u,s,a,o);if(c.valid)return c.value;let f=new W0(o),d=t(a,f),m,y;return(0,_de.isIterableIterator)(d)?y=yield*(0,Ui.onFirstPause)(d,()=>{m=jde(f,s,a)}):y=d,u2(u,f,a,y),m&&(s.delete(a),m.release(y)),y}}function*n2(e,t,r){let n=e.get(t);if(n){for(let{value:s,valid:i}of n)if(yield*i(r))return{valid:!0,value:s}}return{valid:!1,value:null}}function*Fde(e,t,r,n,s){let i=yield*n2(t,n,s);if(i.valid)return i;if(e){let a=yield*n2(r,n,s);if(a.valid)return{valid:!0,value:yield*(0,Ui.waitFor)(a.value.promise)}}return{valid:!1,value:null}}function jde(e,t,r){let n=new K0;return u2(t,e,r,n),n}function u2(e,t,r,n){t.configured()||t.forever();let s=e.get(r);switch(t.deactivate(),t.mode()){case"forever":s=[{value:n,valid:Nde}],e.set(r,s);break;case"invalidate":s=[{value:n,valid:t.validator()}],e.set(r,s);break;case"valid":s?s.push({value:n,valid:t.validator()}):(s=[{value:n,valid:t.validator()}],e.set(r,s))}}var W0=class{constructor(t){this._active=!0,this._never=!1,this._forever=!1,this._invalidate=!1,this._configured=!1,this._pairs=[],this._data=void 0,this._data=t}simple(){return Lde(this)}mode(){return this._never?"never":this._forever?"forever":this._invalidate?"invalidate":"valid"}forever(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never)throw new Error("Caching has already been configured with .never()");this._forever=!0,this._configured=!0}never(){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._forever)throw new Error("Caching has already been configured with .forever()");this._never=!0,this._configured=!0}using(t){if(!this._active)throw new Error("Cannot change caching after evaluation has completed.");if(this._never||this._forever)throw new Error("Caching has already been configured with .never or .forever()");this._configured=!0;let r=t(this._data),n=(0,Ui.maybeAsync)(t,"You appear to be using an async cache handler, but Babel has been called synchronously");return(0,Ui.isThenable)(r)?r.then(s=>(this._pairs.push([s,n]),s)):(this._pairs.push([r,n]),r)}invalidate(t){return this._invalidate=!0,this.using(t)}validator(){let t=this._pairs;return function*(r){for(let[n,s]of t)if(n!==(yield*s(r)))return!1;return!0}}deactivate(){this._active=!1}configured(){return this._configured}};function Lde(e){function t(r){if(typeof r=="boolean"){r?e.forever():e.never();return}return e.using(()=>bc(r()))}return t.forever=()=>e.forever(),t.never=()=>e.never(),t.using=r=>e.using(()=>bc(r())),t.invalidate=r=>e.invalidate(()=>bc(r())),t}function bc(e){if((0,Ui.isThenable)(e))throw new Error("You appear to be using an async cache handler, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously handle your caching logic.");if(e!=null&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number")throw new Error("Cache keys must be either string, boolean, number, null, or undefined.");return e}var K0=class{constructor(){this.released=!1,this.promise=void 0,this._resolve=void 0,this.promise=new Promise(t=>{this._resolve=t})}release(t){this.released=!0,this._resolve(t)}}});var Ec=b(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.stat=Vi.readFile=void 0;function Co(){let e=require("fs");return Co=function(){return e},e}function G0(){let e=vr();return G0=function(){return e},e}var Cwe=Vi.readFile=G0()({sync:Co().readFileSync,errback:Co().readFile}),wwe=Vi.stat=G0()({sync:Co().statSync,errback:Co().stat})});var X0=b(Y0=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0});Y0.makeStaticFileCache=qde;var Mde=Ws(),Rde=Ec();function H0(){let e=require("fs");return H0=function(){return e},e}function qde(e){return(0,Mde.makeStrongCache)(function*(t,r){return r.invalidate(()=>Ude(t))===null?null:e(t,yield*Rde.readFile(t,"utf8"))})}function Ude(e){if(!H0().existsSync(e))return null;try{return+H0().statSync(e).mtime}catch(t){if(t.code!=="ENOENT"&&t.code!=="ENOTDIR")throw t}return null}});var Dn=b($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.beginHiddenCallStack=Kde;$i.endHiddenCallStack=Gde;$i.expectedError=Wde;$i.injectVirtualStackFrame=$de;var c2,f2=Function.call.bind(Error.prototype.toString),Tc=!!Error.captureStackTrace&&((c2=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit"))==null?void 0:c2.writable)===!0,p2="startHiding - secret - don't use this - v1",d2="stopHiding - secret - don't use this - v1",h2=new WeakSet,vc=new WeakMap;function Vde(e){return Object.create({isNative:()=>!1,isConstructor:()=>!1,isToplevel:()=>!0,getFileName:()=>e,getLineNumber:()=>{},getColumnNumber:()=>{},getFunctionName:()=>{},getMethodName:()=>{},getTypeName:()=>{},toString:()=>e})}function $de(e,t){if(!Tc)return;let r=vc.get(e);return r||vc.set(e,r=[]),r.push(Vde(t)),e}function Wde(e){if(Tc)return h2.add(e),e}function Kde(e){return Tc?Object.defineProperty(function(...t){return m2(),e(...t)},"name",{value:d2}):e}function Gde(e){return Tc?Object.defineProperty(function(...t){return e(...t)},"name",{value:p2}):e}function m2(){m2=()=>{};let{prepareStackTrace:e=Hde}=Error,t=50;Error.stackTraceLimit&&(Error.stackTraceLimit=Math.max(Error.stackTraceLimit,t)),Error.prepareStackTrace=function(n,s){let i=[],o=h2.has(n)?"hiding":"unknown";for(let l=0;l{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.default=void 0;var y2=Dn(),J0=class extends Error{constructor(t,r){super(t),(0,y2.expectedError)(this),r&&(0,y2.injectVirtualStackFrame)(this,r)}};Sc.default=J0});var g2=b(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});Q0.findPackageData=zde;function Wi(){let e=require("path");return Wi=function(){return e},e}var Yde=X0(),z0=Ks(),Xde="package.json",Jde=(0,Yde.makeStaticFileCache)((e,t)=>{let r;try{r=JSON.parse(t)}catch(n){throw new z0.default(`Error while parsing JSON - ${n.message}`,e)}if(!r)throw new Error(`${e}: No config detected`);if(typeof r!="object")throw new z0.default(`Config returned typeof ${typeof r}`,e);if(Array.isArray(r))throw new z0.default("Expected config object but found array",e);return{filepath:e,dirname:Wi().dirname(e),options:r}});function*zde(e){let t=null,r=[],n=!0,s=Wi().dirname(e);for(;!t&&Wi().basename(s)!=="node_modules";){r.push(s),t=yield*Jde(Wi().join(s,Xde));let i=Wi().dirname(s);if(s===i){n=!1;break}s=i}return{filepath:e,directories:r,pkg:t,isPackage:n}}});var b2=b((kwe,xc)=>{xc.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;xc.exports.ID_Start=/[\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\u0561-\u0587\u05D0-\u05EA\u05F0-\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\u08A0-\u08B4\u08B6-\u08BD\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\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\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\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\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-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\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\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\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\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\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-\uAB65\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]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;xc.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\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\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\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\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/});var eg=b((Bwe,E2)=>{var Z0=b2();E2.exports={isSpaceSeparator(e){return typeof e=="string"&&Z0.Space_Separator.test(e)},isIdStartChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="$"||e==="_"||Z0.ID_Start.test(e))},isIdContinueChar(e){return typeof e=="string"&&(e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="$"||e==="_"||e==="\u200C"||e==="\u200D"||Z0.ID_Continue.test(e))},isDigit(e){return typeof e=="string"&&/[0-9]/.test(e)},isHexDigit(e){return typeof e=="string"&&/[0-9A-Fa-f]/.test(e)}}});var P2=b((Fwe,x2)=>{var Rt=eg(),rg,pr,On,Ac,ps,Yr,qt,ig,Do;x2.exports=function(t,r){rg=String(t),pr="start",On=[],Ac=0,ps=1,Yr=0,qt=void 0,ig=void 0,Do=void 0;do qt=Qde(),the[pr]();while(qt.type!=="eof");return typeof r=="function"?ng({"":Do},"",r):Do};function ng(e,t,r){let n=e[t];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let s=0;s0;){let r=_n();if(!Rt.isHexDigit(r))throw xt(G());e+=G()}return String.fromCodePoint(parseInt(e,16))}var the={start(){if(qt.type==="eof")throw Hs();tg()},beforePropertyName(){switch(qt.type){case"identifier":case"string":ig=qt.value,pr="afterPropertyName";return;case"punctuator":Pc();return;case"eof":throw Hs()}},afterPropertyName(){if(qt.type==="eof")throw Hs();pr="beforePropertyValue"},beforePropertyValue(){if(qt.type==="eof")throw Hs();tg()},beforeArrayValue(){if(qt.type==="eof")throw Hs();if(qt.type==="punctuator"&&qt.value==="]"){Pc();return}tg()},afterPropertyValue(){if(qt.type==="eof")throw Hs();switch(qt.value){case",":pr="beforePropertyName";return;case"}":Pc()}},afterArrayValue(){if(qt.type==="eof")throw Hs();switch(qt.value){case",":pr="beforeArrayValue";return;case"]":Pc()}},end(){}};function tg(){let e;switch(qt.type){case"punctuator":switch(qt.value){case"{":e={};break;case"[":e=[];break}break;case"null":case"boolean":case"numeric":case"string":e=qt.value;break}if(Do===void 0)Do=e;else{let t=On[On.length-1];Array.isArray(t)?t.push(e):Object.defineProperty(t,ig,{value:e,writable:!0,enumerable:!0,configurable:!0})}if(e!==null&&typeof e=="object")On.push(e),Array.isArray(e)?pr="beforeArrayValue":pr="beforePropertyName";else{let t=On[On.length-1];t==null?pr="end":Array.isArray(t)?pr="afterArrayValue":pr="afterPropertyValue"}}function Pc(){On.pop();let e=On[On.length-1];e==null?pr="end":Array.isArray(e)?pr="afterArrayValue":pr="afterPropertyValue"}function xt(e){return Cc(e===void 0?`JSON5: invalid end of input at ${ps}:${Yr}`:`JSON5: invalid character '${S2(e)}' at ${ps}:${Yr}`)}function Hs(){return Cc(`JSON5: invalid end of input at ${ps}:${Yr}`)}function v2(){return Yr-=5,Cc(`JSON5: invalid identifier character at ${ps}:${Yr}`)}function rhe(e){console.warn(`JSON5: '${S2(e)}' in strings is not valid ECMAScript; consider escaping`)}function S2(e){let t={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(t[e])return t[e];if(e<" "){let r=e.charCodeAt(0).toString(16);return"\\x"+("00"+r).substring(r.length)}return e}function Cc(e){let t=new SyntaxError(e);return t.lineNumber=ps,t.columnNumber=Yr,t}});var C2=b((jwe,A2)=>{var ag=eg();A2.exports=function(t,r,n){let s=[],i="",a,o,l="",u;if(r!=null&&typeof r=="object"&&!Array.isArray(r)&&(n=r.space,u=r.quote,r=r.replacer),typeof r=="function")o=r;else if(Array.isArray(r)){a=[];for(let p of r){let E;typeof p=="string"?E=p:(typeof p=="number"||p instanceof String||p instanceof Number)&&(E=String(p)),E!==void 0&&a.indexOf(E)<0&&a.push(E)}}return n instanceof Number?n=Number(n):n instanceof String&&(n=String(n)),typeof n=="number"?n>0&&(n=Math.min(10,Math.floor(n)),l=" ".substr(0,n)):typeof n=="string"&&(l=n.substr(0,10)),c("",{"":t});function c(p,E){let T=E[p];switch(T!=null&&(typeof T.toJSON5=="function"?T=T.toJSON5(p):typeof T.toJSON=="function"&&(T=T.toJSON(p))),o&&(T=o.call(E,p,T)),T instanceof Number?T=Number(T):T instanceof String?T=String(T):T instanceof Boolean&&(T=T.valueOf()),T){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof T=="string")return f(T,!1);if(typeof T=="number")return String(T);if(typeof T=="object")return Array.isArray(T)?y(T):d(T)}function f(p){let E={"'":.1,'"':.2},T={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"},O="";for(let v=0;vE[v]=0)throw TypeError("Converting circular structure to JSON5");s.push(p);let E=i;i=i+l;let T=a||Object.keys(p),O=[];for(let v of T){let I=c(v,p);if(I!==void 0){let k=m(v)+":";l!==""&&(k+=" "),k+=I,O.push(k)}}let C;if(O.length===0)C="{}";else{let v;if(l==="")v=O.join(","),C="{"+v+"}";else{let I=`, `+i;v=O.join(I),C=`{ `+i+v+`, `+E+"}"}}return s.pop(),i=E,C}function m(p){if(p.length===0)return f(p,!0);let E=String.fromCodePoint(p.codePointAt(0));if(!ag.isIdStartChar(E))return f(p,!0);for(let T=E.length;T=0)throw TypeError("Converting circular structure to JSON5");s.push(p);let E=i;i=i+l;let T=[];for(let C=0;C{var nhe=P2(),she=C2(),ihe={parse:nhe,stringify:she};w2.exports=ihe});var og=b(Io=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.makeConfigAPI=_2;Io.makePluginAPI=ahe;Io.makePresetAPI=N2;function O2(){let e=wn();return O2=function(){return e},e}var wc=ft(),I2=Ws();function _2(e){let t=n=>e.using(s=>typeof n=="undefined"?s.envName:typeof n=="function"?(0,I2.assertSimpleType)(n(s.envName)):(Array.isArray(n)?n:[n]).some(i=>{if(typeof i!="string")throw new Error("Unexpected non-string value");return i===s.envName})),r=n=>e.using(s=>(0,I2.assertSimpleType)(n(s.caller)));return{version:wc.version,cache:e.simple(),env:t,async:()=>!1,caller:r,assertVersion:ohe}}function N2(e,t){let r=()=>JSON.parse(e.using(s=>JSON.stringify(s.targets))),n=s=>{t.push(s)};return Object.assign({},_2(e),{targets:r,addExternalDependency:n})}function ahe(e,t){let r=n=>e.using(s=>s.assumptions[n]);return Object.assign({},N2(e,t),{assumption:r})}function ohe(e){if(typeof e=="number"){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if(typeof e!="string")throw new Error("Expected string or integer value.");if(O2().satisfies(wc.version,e))return;let t=Error.stackTraceLimit;typeof t=="number"&&t<25&&(Error.stackTraceLimit=25);let r=new Error(`Requires Babel "${e}", but was loaded with "${wc.version}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);throw typeof t=="number"&&(Error.stackTraceLimit=t),Object.assign(r,{code:"BABEL_VERSION_UNSUPPORTED",version:wc.version,range:e})}});var Ic=b(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.finalize=lhe;Dc.flattenToSet=uhe;function lhe(e){return Object.freeze(e)}function uhe(e){let t=new Set,r=[e];for(;r.length>0;)for(let n of r.pop())Array.isArray(n)?r.push(n):t.add(n);return t}});var _c=b(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.default=void 0;var che=Ic(),lg=class{constructor(t,r,n,s=(0,che.finalize)([])){this.key=void 0,this.manipulateOptions=void 0,this.post=void 0,this.pre=void 0,this.visitor=void 0,this.parserOverride=void 0,this.generatorOverride=void 0,this.options=void 0,this.externalDependencies=void 0,this.key=t.name||n,this.manipulateOptions=t.manipulateOptions,this.post=t.post,this.pre=t.pre,this.visitor=t.visitor||{},this.parserOverride=t.parserOverride,this.generatorOverride=t.generatorOverride,this.options=r,this.externalDependencies=s}};Oc.default=lg});var B2=b(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});ug.once=fhe;var k2=qi();function fhe(e){let t,r,n=!1;return function*(){if(!t){if(r)return n=!0,yield*(0,k2.waitFor)(r);if(yield*(0,k2.isAsync)()){let s,i;r=new Promise((a,o)=>{s=a,i=o});try{t={ok:!0,value:yield*e()},r=null,n&&s(t.value)}catch(a){t={ok:!1,value:a},r=null,n&&i(a)}}else try{t={ok:!0,value:yield*e()}}catch(s){t={ok:!1,value:s}}}if(t.ok)return t.value;throw t.value}}});var F2=b((Vwe,phe)=>{phe.exports=[{name:"nodejs",version:"0.2.0",date:"2011-08-26",lts:!1,security:!1,v8:"2.3.8.0"},{name:"nodejs",version:"0.3.0",date:"2011-08-26",lts:!1,security:!1,v8:"2.5.1.0"},{name:"nodejs",version:"0.4.0",date:"2011-08-26",lts:!1,security:!1,v8:"3.1.2.0"},{name:"nodejs",version:"0.5.0",date:"2011-08-26",lts:!1,security:!1,v8:"3.1.8.25"},{name:"nodejs",version:"0.6.0",date:"2011-11-04",lts:!1,security:!1,v8:"3.6.6.6"},{name:"nodejs",version:"0.7.0",date:"2012-01-17",lts:!1,security:!1,v8:"3.8.6.0"},{name:"nodejs",version:"0.8.0",date:"2012-06-22",lts:!1,security:!1,v8:"3.11.10.10"},{name:"nodejs",version:"0.9.0",date:"2012-07-20",lts:!1,security:!1,v8:"3.11.10.15"},{name:"nodejs",version:"0.10.0",date:"2013-03-11",lts:!1,security:!1,v8:"3.14.5.8"},{name:"nodejs",version:"0.11.0",date:"2013-03-28",lts:!1,security:!1,v8:"3.17.13.0"},{name:"nodejs",version:"0.12.0",date:"2015-02-06",lts:!1,security:!1,v8:"3.28.73.0"},{name:"nodejs",version:"4.0.0",date:"2015-09-08",lts:!1,security:!1,v8:"4.5.103.30"},{name:"nodejs",version:"4.1.0",date:"2015-09-17",lts:!1,security:!1,v8:"4.5.103.33"},{name:"nodejs",version:"4.2.0",date:"2015-10-12",lts:"Argon",security:!1,v8:"4.5.103.35"},{name:"nodejs",version:"4.3.0",date:"2016-02-09",lts:"Argon",security:!1,v8:"4.5.103.35"},{name:"nodejs",version:"4.4.0",date:"2016-03-08",lts:"Argon",security:!1,v8:"4.5.103.35"},{name:"nodejs",version:"4.5.0",date:"2016-08-16",lts:"Argon",security:!1,v8:"4.5.103.37"},{name:"nodejs",version:"4.6.0",date:"2016-09-27",lts:"Argon",security:!0,v8:"4.5.103.37"},{name:"nodejs",version:"4.7.0",date:"2016-12-06",lts:"Argon",security:!1,v8:"4.5.103.43"},{name:"nodejs",version:"4.8.0",date:"2017-02-21",lts:"Argon",security:!1,v8:"4.5.103.45"},{name:"nodejs",version:"4.9.0",date:"2018-03-28",lts:"Argon",security:!0,v8:"4.5.103.53"},{name:"nodejs",version:"5.0.0",date:"2015-10-29",lts:!1,security:!1,v8:"4.6.85.28"},{name:"nodejs",version:"5.1.0",date:"2015-11-17",lts:!1,security:!1,v8:"4.6.85.31"},{name:"nodejs",version:"5.2.0",date:"2015-12-09",lts:!1,security:!1,v8:"4.6.85.31"},{name:"nodejs",version:"5.3.0",date:"2015-12-15",lts:!1,security:!1,v8:"4.6.85.31"},{name:"nodejs",version:"5.4.0",date:"2016-01-06",lts:!1,security:!1,v8:"4.6.85.31"},{name:"nodejs",version:"5.5.0",date:"2016-01-21",lts:!1,security:!1,v8:"4.6.85.31"},{name:"nodejs",version:"5.6.0",date:"2016-02-09",lts:!1,security:!1,v8:"4.6.85.31"},{name:"nodejs",version:"5.7.0",date:"2016-02-23",lts:!1,security:!1,v8:"4.6.85.31"},{name:"nodejs",version:"5.8.0",date:"2016-03-09",lts:!1,security:!1,v8:"4.6.85.31"},{name:"nodejs",version:"5.9.0",date:"2016-03-16",lts:!1,security:!1,v8:"4.6.85.31"},{name:"nodejs",version:"5.10.0",date:"2016-04-01",lts:!1,security:!1,v8:"4.6.85.31"},{name:"nodejs",version:"5.11.0",date:"2016-04-21",lts:!1,security:!1,v8:"4.6.85.31"},{name:"nodejs",version:"5.12.0",date:"2016-06-23",lts:!1,security:!1,v8:"4.6.85.32"},{name:"nodejs",version:"6.0.0",date:"2016-04-26",lts:!1,security:!1,v8:"5.0.71.35"},{name:"nodejs",version:"6.1.0",date:"2016-05-05",lts:!1,security:!1,v8:"5.0.71.35"},{name:"nodejs",version:"6.2.0",date:"2016-05-17",lts:!1,security:!1,v8:"5.0.71.47"},{name:"nodejs",version:"6.3.0",date:"2016-07-06",lts:!1,security:!1,v8:"5.0.71.52"},{name:"nodejs",version:"6.4.0",date:"2016-08-12",lts:!1,security:!1,v8:"5.0.71.60"},{name:"nodejs",version:"6.5.0",date:"2016-08-26",lts:!1,security:!1,v8:"5.1.281.81"},{name:"nodejs",version:"6.6.0",date:"2016-09-14",lts:!1,security:!1,v8:"5.1.281.83"},{name:"nodejs",version:"6.7.0",date:"2016-09-27",lts:!1,security:!0,v8:"5.1.281.83"},{name:"nodejs",version:"6.8.0",date:"2016-10-12",lts:!1,security:!1,v8:"5.1.281.84"},{name:"nodejs",version:"6.9.0",date:"2016-10-18",lts:"Boron",security:!1,v8:"5.1.281.84"},{name:"nodejs",version:"6.10.0",date:"2017-02-21",lts:"Boron",security:!1,v8:"5.1.281.93"},{name:"nodejs",version:"6.11.0",date:"2017-06-06",lts:"Boron",security:!1,v8:"5.1.281.102"},{name:"nodejs",version:"6.12.0",date:"2017-11-06",lts:"Boron",security:!1,v8:"5.1.281.108"},{name:"nodejs",version:"6.13.0",date:"2018-02-10",lts:"Boron",security:!1,v8:"5.1.281.111"},{name:"nodejs",version:"6.14.0",date:"2018-03-28",lts:"Boron",security:!0,v8:"5.1.281.111"},{name:"nodejs",version:"6.15.0",date:"2018-11-27",lts:"Boron",security:!0,v8:"5.1.281.111"},{name:"nodejs",version:"6.16.0",date:"2018-12-26",lts:"Boron",security:!1,v8:"5.1.281.111"},{name:"nodejs",version:"6.17.0",date:"2019-02-28",lts:"Boron",security:!0,v8:"5.1.281.111"},{name:"nodejs",version:"7.0.0",date:"2016-10-25",lts:!1,security:!1,v8:"5.4.500.36"},{name:"nodejs",version:"7.1.0",date:"2016-11-08",lts:!1,security:!1,v8:"5.4.500.36"},{name:"nodejs",version:"7.2.0",date:"2016-11-22",lts:!1,security:!1,v8:"5.4.500.43"},{name:"nodejs",version:"7.3.0",date:"2016-12-20",lts:!1,security:!1,v8:"5.4.500.45"},{name:"nodejs",version:"7.4.0",date:"2017-01-04",lts:!1,security:!1,v8:"5.4.500.45"},{name:"nodejs",version:"7.5.0",date:"2017-01-31",lts:!1,security:!1,v8:"5.4.500.48"},{name:"nodejs",version:"7.6.0",date:"2017-02-21",lts:!1,security:!1,v8:"5.5.372.40"},{name:"nodejs",version:"7.7.0",date:"2017-02-28",lts:!1,security:!1,v8:"5.5.372.41"},{name:"nodejs",version:"7.8.0",date:"2017-03-29",lts:!1,security:!1,v8:"5.5.372.43"},{name:"nodejs",version:"7.9.0",date:"2017-04-11",lts:!1,security:!1,v8:"5.5.372.43"},{name:"nodejs",version:"7.10.0",date:"2017-05-02",lts:!1,security:!1,v8:"5.5.372.43"},{name:"nodejs",version:"8.0.0",date:"2017-05-30",lts:!1,security:!1,v8:"5.8.283.41"},{name:"nodejs",version:"8.1.0",date:"2017-06-08",lts:!1,security:!1,v8:"5.8.283.41"},{name:"nodejs",version:"8.2.0",date:"2017-07-19",lts:!1,security:!1,v8:"5.8.283.41"},{name:"nodejs",version:"8.3.0",date:"2017-08-08",lts:!1,security:!1,v8:"6.0.286.52"},{name:"nodejs",version:"8.4.0",date:"2017-08-15",lts:!1,security:!1,v8:"6.0.286.52"},{name:"nodejs",version:"8.5.0",date:"2017-09-12",lts:!1,security:!1,v8:"6.0.287.53"},{name:"nodejs",version:"8.6.0",date:"2017-09-26",lts:!1,security:!1,v8:"6.0.287.53"},{name:"nodejs",version:"8.7.0",date:"2017-10-11",lts:!1,security:!1,v8:"6.1.534.42"},{name:"nodejs",version:"8.8.0",date:"2017-10-24",lts:!1,security:!1,v8:"6.1.534.42"},{name:"nodejs",version:"8.9.0",date:"2017-10-31",lts:"Carbon",security:!1,v8:"6.1.534.46"},{name:"nodejs",version:"8.10.0",date:"2018-03-06",lts:"Carbon",security:!1,v8:"6.2.414.50"},{name:"nodejs",version:"8.11.0",date:"2018-03-28",lts:"Carbon",security:!0,v8:"6.2.414.50"},{name:"nodejs",version:"8.12.0",date:"2018-09-10",lts:"Carbon",security:!1,v8:"6.2.414.66"},{name:"nodejs",version:"8.13.0",date:"2018-11-20",lts:"Carbon",security:!1,v8:"6.2.414.72"},{name:"nodejs",version:"8.14.0",date:"2018-11-27",lts:"Carbon",security:!0,v8:"6.2.414.72"},{name:"nodejs",version:"8.15.0",date:"2018-12-26",lts:"Carbon",security:!1,v8:"6.2.414.75"},{name:"nodejs",version:"8.16.0",date:"2019-04-16",lts:"Carbon",security:!1,v8:"6.2.414.77"},{name:"nodejs",version:"8.17.0",date:"2019-12-17",lts:"Carbon",security:!0,v8:"6.2.414.78"},{name:"nodejs",version:"9.0.0",date:"2017-10-31",lts:!1,security:!1,v8:"6.2.414.32"},{name:"nodejs",version:"9.1.0",date:"2017-11-07",lts:!1,security:!1,v8:"6.2.414.32"},{name:"nodejs",version:"9.2.0",date:"2017-11-14",lts:!1,security:!1,v8:"6.2.414.44"},{name:"nodejs",version:"9.3.0",date:"2017-12-12",lts:!1,security:!1,v8:"6.2.414.46"},{name:"nodejs",version:"9.4.0",date:"2018-01-10",lts:!1,security:!1,v8:"6.2.414.46"},{name:"nodejs",version:"9.5.0",date:"2018-01-31",lts:!1,security:!1,v8:"6.2.414.46"},{name:"nodejs",version:"9.6.0",date:"2018-02-21",lts:!1,security:!1,v8:"6.2.414.46"},{name:"nodejs",version:"9.7.0",date:"2018-03-01",lts:!1,security:!1,v8:"6.2.414.46"},{name:"nodejs",version:"9.8.0",date:"2018-03-07",lts:!1,security:!1,v8:"6.2.414.46"},{name:"nodejs",version:"9.9.0",date:"2018-03-21",lts:!1,security:!1,v8:"6.2.414.46"},{name:"nodejs",version:"9.10.0",date:"2018-03-28",lts:!1,security:!0,v8:"6.2.414.46"},{name:"nodejs",version:"9.11.0",date:"2018-04-04",lts:!1,security:!1,v8:"6.2.414.46"},{name:"nodejs",version:"10.0.0",date:"2018-04-24",lts:!1,security:!1,v8:"6.6.346.24"},{name:"nodejs",version:"10.1.0",date:"2018-05-08",lts:!1,security:!1,v8:"6.6.346.27"},{name:"nodejs",version:"10.2.0",date:"2018-05-23",lts:!1,security:!1,v8:"6.6.346.32"},{name:"nodejs",version:"10.3.0",date:"2018-05-29",lts:!1,security:!1,v8:"6.6.346.32"},{name:"nodejs",version:"10.4.0",date:"2018-06-06",lts:!1,security:!1,v8:"6.7.288.43"},{name:"nodejs",version:"10.5.0",date:"2018-06-20",lts:!1,security:!1,v8:"6.7.288.46"},{name:"nodejs",version:"10.6.0",date:"2018-07-04",lts:!1,security:!1,v8:"6.7.288.46"},{name:"nodejs",version:"10.7.0",date:"2018-07-18",lts:!1,security:!1,v8:"6.7.288.49"},{name:"nodejs",version:"10.8.0",date:"2018-08-01",lts:!1,security:!1,v8:"6.7.288.49"},{name:"nodejs",version:"10.9.0",date:"2018-08-15",lts:!1,security:!1,v8:"6.8.275.24"},{name:"nodejs",version:"10.10.0",date:"2018-09-06",lts:!1,security:!1,v8:"6.8.275.30"},{name:"nodejs",version:"10.11.0",date:"2018-09-19",lts:!1,security:!1,v8:"6.8.275.32"},{name:"nodejs",version:"10.12.0",date:"2018-10-10",lts:!1,security:!1,v8:"6.8.275.32"},{name:"nodejs",version:"10.13.0",date:"2018-10-30",lts:"Dubnium",security:!1,v8:"6.8.275.32"},{name:"nodejs",version:"10.14.0",date:"2018-11-27",lts:"Dubnium",security:!0,v8:"6.8.275.32"},{name:"nodejs",version:"10.15.0",date:"2018-12-26",lts:"Dubnium",security:!1,v8:"6.8.275.32"},{name:"nodejs",version:"10.16.0",date:"2019-05-28",lts:"Dubnium",security:!1,v8:"6.8.275.32"},{name:"nodejs",version:"10.17.0",date:"2019-10-22",lts:"Dubnium",security:!1,v8:"6.8.275.32"},{name:"nodejs",version:"10.18.0",date:"2019-12-17",lts:"Dubnium",security:!0,v8:"6.8.275.32"},{name:"nodejs",version:"10.19.0",date:"2020-02-05",lts:"Dubnium",security:!0,v8:"6.8.275.32"},{name:"nodejs",version:"10.20.0",date:"2020-03-26",lts:"Dubnium",security:!1,v8:"6.8.275.32"},{name:"nodejs",version:"10.21.0",date:"2020-06-02",lts:"Dubnium",security:!0,v8:"6.8.275.32"},{name:"nodejs",version:"10.22.0",date:"2020-07-21",lts:"Dubnium",security:!1,v8:"6.8.275.32"},{name:"nodejs",version:"10.23.0",date:"2020-10-27",lts:"Dubnium",security:!1,v8:"6.8.275.32"},{name:"nodejs",version:"10.24.0",date:"2021-02-23",lts:"Dubnium",security:!0,v8:"6.8.275.32"},{name:"nodejs",version:"11.0.0",date:"2018-10-23",lts:!1,security:!1,v8:"7.0.276.28"},{name:"nodejs",version:"11.1.0",date:"2018-10-30",lts:!1,security:!1,v8:"7.0.276.32"},{name:"nodejs",version:"11.2.0",date:"2018-11-15",lts:!1,security:!1,v8:"7.0.276.38"},{name:"nodejs",version:"11.3.0",date:"2018-11-27",lts:!1,security:!0,v8:"7.0.276.38"},{name:"nodejs",version:"11.4.0",date:"2018-12-07",lts:!1,security:!1,v8:"7.0.276.38"},{name:"nodejs",version:"11.5.0",date:"2018-12-18",lts:!1,security:!1,v8:"7.0.276.38"},{name:"nodejs",version:"11.6.0",date:"2018-12-26",lts:!1,security:!1,v8:"7.0.276.38"},{name:"nodejs",version:"11.7.0",date:"2019-01-17",lts:!1,security:!1,v8:"7.0.276.38"},{name:"nodejs",version:"11.8.0",date:"2019-01-24",lts:!1,security:!1,v8:"7.0.276.38"},{name:"nodejs",version:"11.9.0",date:"2019-01-30",lts:!1,security:!1,v8:"7.0.276.38"},{name:"nodejs",version:"11.10.0",date:"2019-02-14",lts:!1,security:!1,v8:"7.0.276.38"},{name:"nodejs",version:"11.11.0",date:"2019-03-05",lts:!1,security:!1,v8:"7.0.276.38"},{name:"nodejs",version:"11.12.0",date:"2019-03-14",lts:!1,security:!1,v8:"7.0.276.38"},{name:"nodejs",version:"11.13.0",date:"2019-03-28",lts:!1,security:!1,v8:"7.0.276.38"},{name:"nodejs",version:"11.14.0",date:"2019-04-10",lts:!1,security:!1,v8:"7.0.276.38"},{name:"nodejs",version:"11.15.0",date:"2019-04-30",lts:!1,security:!1,v8:"7.0.276.38"},{name:"nodejs",version:"12.0.0",date:"2019-04-23",lts:!1,security:!1,v8:"7.4.288.21"},{name:"nodejs",version:"12.1.0",date:"2019-04-29",lts:!1,security:!1,v8:"7.4.288.21"},{name:"nodejs",version:"12.2.0",date:"2019-05-07",lts:!1,security:!1,v8:"7.4.288.21"},{name:"nodejs",version:"12.3.0",date:"2019-05-21",lts:!1,security:!1,v8:"7.4.288.27"},{name:"nodejs",version:"12.4.0",date:"2019-06-04",lts:!1,security:!1,v8:"7.4.288.27"},{name:"nodejs",version:"12.5.0",date:"2019-06-26",lts:!1,security:!1,v8:"7.5.288.22"},{name:"nodejs",version:"12.6.0",date:"2019-07-03",lts:!1,security:!1,v8:"7.5.288.22"},{name:"nodejs",version:"12.7.0",date:"2019-07-23",lts:!1,security:!1,v8:"7.5.288.22"},{name:"nodejs",version:"12.8.0",date:"2019-08-06",lts:!1,security:!1,v8:"7.5.288.22"},{name:"nodejs",version:"12.9.0",date:"2019-08-20",lts:!1,security:!1,v8:"7.6.303.29"},{name:"nodejs",version:"12.10.0",date:"2019-09-04",lts:!1,security:!1,v8:"7.6.303.29"},{name:"nodejs",version:"12.11.0",date:"2019-09-25",lts:!1,security:!1,v8:"7.7.299.11"},{name:"nodejs",version:"12.12.0",date:"2019-10-11",lts:!1,security:!1,v8:"7.7.299.13"},{name:"nodejs",version:"12.13.0",date:"2019-10-21",lts:"Erbium",security:!1,v8:"7.7.299.13"},{name:"nodejs",version:"12.14.0",date:"2019-12-17",lts:"Erbium",security:!0,v8:"7.7.299.13"},{name:"nodejs",version:"12.15.0",date:"2020-02-05",lts:"Erbium",security:!0,v8:"7.7.299.13"},{name:"nodejs",version:"12.16.0",date:"2020-02-11",lts:"Erbium",security:!1,v8:"7.8.279.23"},{name:"nodejs",version:"12.17.0",date:"2020-05-26",lts:"Erbium",security:!1,v8:"7.8.279.23"},{name:"nodejs",version:"12.18.0",date:"2020-06-02",lts:"Erbium",security:!0,v8:"7.8.279.23"},{name:"nodejs",version:"12.19.0",date:"2020-10-06",lts:"Erbium",security:!1,v8:"7.8.279.23"},{name:"nodejs",version:"12.20.0",date:"2020-11-24",lts:"Erbium",security:!1,v8:"7.8.279.23"},{name:"nodejs",version:"12.21.0",date:"2021-02-23",lts:"Erbium",security:!0,v8:"7.8.279.23"},{name:"nodejs",version:"12.22.0",date:"2021-03-30",lts:"Erbium",security:!1,v8:"7.8.279.23"},{name:"nodejs",version:"13.0.0",date:"2019-10-22",lts:!1,security:!1,v8:"7.8.279.17"},{name:"nodejs",version:"13.1.0",date:"2019-11-05",lts:!1,security:!1,v8:"7.8.279.17"},{name:"nodejs",version:"13.2.0",date:"2019-11-21",lts:!1,security:!1,v8:"7.9.317.23"},{name:"nodejs",version:"13.3.0",date:"2019-12-03",lts:!1,security:!1,v8:"7.9.317.25"},{name:"nodejs",version:"13.4.0",date:"2019-12-17",lts:!1,security:!0,v8:"7.9.317.25"},{name:"nodejs",version:"13.5.0",date:"2019-12-18",lts:!1,security:!1,v8:"7.9.317.25"},{name:"nodejs",version:"13.6.0",date:"2020-01-07",lts:!1,security:!1,v8:"7.9.317.25"},{name:"nodejs",version:"13.7.0",date:"2020-01-21",lts:!1,security:!1,v8:"7.9.317.25"},{name:"nodejs",version:"13.8.0",date:"2020-02-05",lts:!1,security:!0,v8:"7.9.317.25"},{name:"nodejs",version:"13.9.0",date:"2020-02-18",lts:!1,security:!1,v8:"7.9.317.25"},{name:"nodejs",version:"13.10.0",date:"2020-03-04",lts:!1,security:!1,v8:"7.9.317.25"},{name:"nodejs",version:"13.11.0",date:"2020-03-12",lts:!1,security:!1,v8:"7.9.317.25"},{name:"nodejs",version:"13.12.0",date:"2020-03-26",lts:!1,security:!1,v8:"7.9.317.25"},{name:"nodejs",version:"13.13.0",date:"2020-04-14",lts:!1,security:!1,v8:"7.9.317.25"},{name:"nodejs",version:"13.14.0",date:"2020-04-29",lts:!1,security:!1,v8:"7.9.317.25"},{name:"nodejs",version:"14.0.0",date:"2020-04-21",lts:!1,security:!1,v8:"8.1.307.30"},{name:"nodejs",version:"14.1.0",date:"2020-04-29",lts:!1,security:!1,v8:"8.1.307.31"},{name:"nodejs",version:"14.2.0",date:"2020-05-05",lts:!1,security:!1,v8:"8.1.307.31"},{name:"nodejs",version:"14.3.0",date:"2020-05-19",lts:!1,security:!1,v8:"8.1.307.31"},{name:"nodejs",version:"14.4.0",date:"2020-06-02",lts:!1,security:!0,v8:"8.1.307.31"},{name:"nodejs",version:"14.5.0",date:"2020-06-30",lts:!1,security:!1,v8:"8.3.110.9"},{name:"nodejs",version:"14.6.0",date:"2020-07-20",lts:!1,security:!1,v8:"8.4.371.19"},{name:"nodejs",version:"14.7.0",date:"2020-07-29",lts:!1,security:!1,v8:"8.4.371.19"},{name:"nodejs",version:"14.8.0",date:"2020-08-11",lts:!1,security:!1,v8:"8.4.371.19"},{name:"nodejs",version:"14.9.0",date:"2020-08-27",lts:!1,security:!1,v8:"8.4.371.19"},{name:"nodejs",version:"14.10.0",date:"2020-09-08",lts:!1,security:!1,v8:"8.4.371.19"},{name:"nodejs",version:"14.11.0",date:"2020-09-15",lts:!1,security:!0,v8:"8.4.371.19"},{name:"nodejs",version:"14.12.0",date:"2020-09-22",lts:!1,security:!1,v8:"8.4.371.19"},{name:"nodejs",version:"14.13.0",date:"2020-09-29",lts:!1,security:!1,v8:"8.4.371.19"},{name:"nodejs",version:"14.14.0",date:"2020-10-15",lts:!1,security:!1,v8:"8.4.371.19"},{name:"nodejs",version:"14.15.0",date:"2020-10-27",lts:"Fermium",security:!1,v8:"8.4.371.19"},{name:"nodejs",version:"14.16.0",date:"2021-02-23",lts:"Fermium",security:!0,v8:"8.4.371.19"},{name:"nodejs",version:"14.17.0",date:"2021-05-11",lts:"Fermium",security:!1,v8:"8.4.371.23"},{name:"nodejs",version:"14.18.0",date:"2021-09-28",lts:"Fermium",security:!1,v8:"8.4.371.23"},{name:"nodejs",version:"14.19.0",date:"2022-02-01",lts:"Fermium",security:!1,v8:"8.4.371.23"},{name:"nodejs",version:"14.20.0",date:"2022-07-07",lts:"Fermium",security:!0,v8:"8.4.371.23"},{name:"nodejs",version:"14.21.0",date:"2022-11-01",lts:"Fermium",security:!1,v8:"8.4.371.23"},{name:"nodejs",version:"15.0.0",date:"2020-10-20",lts:!1,security:!1,v8:"8.6.395.16"},{name:"nodejs",version:"15.1.0",date:"2020-11-04",lts:!1,security:!1,v8:"8.6.395.17"},{name:"nodejs",version:"15.2.0",date:"2020-11-10",lts:!1,security:!1,v8:"8.6.395.17"},{name:"nodejs",version:"15.3.0",date:"2020-11-24",lts:!1,security:!1,v8:"8.6.395.17"},{name:"nodejs",version:"15.4.0",date:"2020-12-09",lts:!1,security:!1,v8:"8.6.395.17"},{name:"nodejs",version:"15.5.0",date:"2020-12-22",lts:!1,security:!1,v8:"8.6.395.17"},{name:"nodejs",version:"15.6.0",date:"2021-01-14",lts:!1,security:!1,v8:"8.6.395.17"},{name:"nodejs",version:"15.7.0",date:"2021-01-25",lts:!1,security:!1,v8:"8.6.395.17"},{name:"nodejs",version:"15.8.0",date:"2021-02-02",lts:!1,security:!1,v8:"8.6.395.17"},{name:"nodejs",version:"15.9.0",date:"2021-02-18",lts:!1,security:!1,v8:"8.6.395.17"},{name:"nodejs",version:"15.10.0",date:"2021-02-23",lts:!1,security:!0,v8:"8.6.395.17"},{name:"nodejs",version:"15.11.0",date:"2021-03-03",lts:!1,security:!1,v8:"8.6.395.17"},{name:"nodejs",version:"15.12.0",date:"2021-03-17",lts:!1,security:!1,v8:"8.6.395.17"},{name:"nodejs",version:"15.13.0",date:"2021-03-31",lts:!1,security:!1,v8:"8.6.395.17"},{name:"nodejs",version:"15.14.0",date:"2021-04-06",lts:!1,security:!1,v8:"8.6.395.17"},{name:"nodejs",version:"16.0.0",date:"2021-04-20",lts:!1,security:!1,v8:"9.0.257.17"},{name:"nodejs",version:"16.1.0",date:"2021-05-04",lts:!1,security:!1,v8:"9.0.257.24"},{name:"nodejs",version:"16.2.0",date:"2021-05-19",lts:!1,security:!1,v8:"9.0.257.25"},{name:"nodejs",version:"16.3.0",date:"2021-06-03",lts:!1,security:!1,v8:"9.0.257.25"},{name:"nodejs",version:"16.4.0",date:"2021-06-23",lts:!1,security:!1,v8:"9.1.269.36"},{name:"nodejs",version:"16.5.0",date:"2021-07-14",lts:!1,security:!1,v8:"9.1.269.38"},{name:"nodejs",version:"16.6.0",date:"2021-07-29",lts:!1,security:!0,v8:"9.2.230.21"},{name:"nodejs",version:"16.7.0",date:"2021-08-18",lts:!1,security:!1,v8:"9.2.230.21"},{name:"nodejs",version:"16.8.0",date:"2021-08-25",lts:!1,security:!1,v8:"9.2.230.21"},{name:"nodejs",version:"16.9.0",date:"2021-09-07",lts:!1,security:!1,v8:"9.3.345.16"},{name:"nodejs",version:"16.10.0",date:"2021-09-22",lts:!1,security:!1,v8:"9.3.345.19"},{name:"nodejs",version:"16.11.0",date:"2021-10-08",lts:!1,security:!1,v8:"9.4.146.19"},{name:"nodejs",version:"16.12.0",date:"2021-10-20",lts:!1,security:!1,v8:"9.4.146.19"},{name:"nodejs",version:"16.13.0",date:"2021-10-26",lts:"Gallium",security:!1,v8:"9.4.146.19"},{name:"nodejs",version:"16.14.0",date:"2022-02-08",lts:"Gallium",security:!1,v8:"9.4.146.24"},{name:"nodejs",version:"16.15.0",date:"2022-04-26",lts:"Gallium",security:!1,v8:"9.4.146.24"},{name:"nodejs",version:"16.16.0",date:"2022-07-07",lts:"Gallium",security:!0,v8:"9.4.146.24"},{name:"nodejs",version:"16.17.0",date:"2022-08-16",lts:"Gallium",security:!1,v8:"9.4.146.26"},{name:"nodejs",version:"16.18.0",date:"2022-10-12",lts:"Gallium",security:!1,v8:"9.4.146.26"},{name:"nodejs",version:"16.19.0",date:"2022-12-13",lts:"Gallium",security:!1,v8:"9.4.146.26"},{name:"nodejs",version:"16.20.0",date:"2023-03-28",lts:"Gallium",security:!1,v8:"9.4.146.26"},{name:"nodejs",version:"17.0.0",date:"2021-10-19",lts:!1,security:!1,v8:"9.5.172.21"},{name:"nodejs",version:"17.1.0",date:"2021-11-09",lts:!1,security:!1,v8:"9.5.172.25"},{name:"nodejs",version:"17.2.0",date:"2021-11-30",lts:!1,security:!1,v8:"9.6.180.14"},{name:"nodejs",version:"17.3.0",date:"2021-12-17",lts:!1,security:!1,v8:"9.6.180.15"},{name:"nodejs",version:"17.4.0",date:"2022-01-18",lts:!1,security:!1,v8:"9.6.180.15"},{name:"nodejs",version:"17.5.0",date:"2022-02-10",lts:!1,security:!1,v8:"9.6.180.15"},{name:"nodejs",version:"17.6.0",date:"2022-02-22",lts:!1,security:!1,v8:"9.6.180.15"},{name:"nodejs",version:"17.7.0",date:"2022-03-09",lts:!1,security:!1,v8:"9.6.180.15"},{name:"nodejs",version:"17.8.0",date:"2022-03-22",lts:!1,security:!1,v8:"9.6.180.15"},{name:"nodejs",version:"17.9.0",date:"2022-04-07",lts:!1,security:!1,v8:"9.6.180.15"},{name:"nodejs",version:"18.0.0",date:"2022-04-18",lts:!1,security:!1,v8:"10.1.124.8"},{name:"nodejs",version:"18.1.0",date:"2022-05-03",lts:!1,security:!1,v8:"10.1.124.8"},{name:"nodejs",version:"18.2.0",date:"2022-05-17",lts:!1,security:!1,v8:"10.1.124.8"},{name:"nodejs",version:"18.3.0",date:"2022-06-02",lts:!1,security:!1,v8:"10.2.154.4"},{name:"nodejs",version:"18.4.0",date:"2022-06-16",lts:!1,security:!1,v8:"10.2.154.4"},{name:"nodejs",version:"18.5.0",date:"2022-07-06",lts:!1,security:!0,v8:"10.2.154.4"},{name:"nodejs",version:"18.6.0",date:"2022-07-13",lts:!1,security:!1,v8:"10.2.154.13"},{name:"nodejs",version:"18.7.0",date:"2022-07-26",lts:!1,security:!1,v8:"10.2.154.13"},{name:"nodejs",version:"18.8.0",date:"2022-08-24",lts:!1,security:!1,v8:"10.2.154.13"},{name:"nodejs",version:"18.9.0",date:"2022-09-07",lts:!1,security:!1,v8:"10.2.154.15"},{name:"nodejs",version:"18.10.0",date:"2022-09-28",lts:!1,security:!1,v8:"10.2.154.15"},{name:"nodejs",version:"18.11.0",date:"2022-10-13",lts:!1,security:!1,v8:"10.2.154.15"},{name:"nodejs",version:"18.12.0",date:"2022-10-25",lts:"Hydrogen",security:!1,v8:"10.2.154.15"},{name:"nodejs",version:"18.13.0",date:"2023-01-05",lts:"Hydrogen",security:!1,v8:"10.2.154.23"},{name:"nodejs",version:"18.14.0",date:"2023-02-01",lts:"Hydrogen",security:!1,v8:"10.2.154.23"},{name:"nodejs",version:"18.15.0",date:"2023-03-05",lts:"Hydrogen",security:!1,v8:"10.2.154.26"},{name:"nodejs",version:"18.16.0",date:"2023-04-12",lts:"Hydrogen",security:!1,v8:"10.2.154.26"},{name:"nodejs",version:"18.17.0",date:"2023-07-18",lts:"Hydrogen",security:!1,v8:"10.2.154.26"},{name:"nodejs",version:"18.18.0",date:"2023-09-18",lts:"Hydrogen",security:!1,v8:"10.2.154.26"},{name:"nodejs",version:"18.19.0",date:"2023-11-29",lts:"Hydrogen",security:!1,v8:"10.2.154.26"},{name:"nodejs",version:"19.0.0",date:"2022-10-17",lts:!1,security:!1,v8:"10.7.193.13"},{name:"nodejs",version:"19.1.0",date:"2022-11-14",lts:!1,security:!1,v8:"10.7.193.20"},{name:"nodejs",version:"19.2.0",date:"2022-11-29",lts:!1,security:!1,v8:"10.8.168.20"},{name:"nodejs",version:"19.3.0",date:"2022-12-14",lts:!1,security:!1,v8:"10.8.168.21"},{name:"nodejs",version:"19.4.0",date:"2023-01-05",lts:!1,security:!1,v8:"10.8.168.25"},{name:"nodejs",version:"19.5.0",date:"2023-01-24",lts:!1,security:!1,v8:"10.8.168.25"},{name:"nodejs",version:"19.6.0",date:"2023-02-01",lts:!1,security:!1,v8:"10.8.168.25"},{name:"nodejs",version:"19.7.0",date:"2023-02-21",lts:!1,security:!1,v8:"10.8.168.25"},{name:"nodejs",version:"19.8.0",date:"2023-03-14",lts:!1,security:!1,v8:"10.8.168.25"},{name:"nodejs",version:"19.9.0",date:"2023-04-10",lts:!1,security:!1,v8:"10.8.168.25"},{name:"nodejs",version:"20.0.0",date:"2023-04-17",lts:!1,security:!1,v8:"11.3.244.4"},{name:"nodejs",version:"20.1.0",date:"2023-05-03",lts:!1,security:!1,v8:"11.3.244.8"},{name:"nodejs",version:"20.2.0",date:"2023-05-16",lts:!1,security:!1,v8:"11.3.244.8"},{name:"nodejs",version:"20.3.0",date:"2023-06-08",lts:!1,security:!1,v8:"11.3.244.8"},{name:"nodejs",version:"20.4.0",date:"2023-07-04",lts:!1,security:!1,v8:"11.3.244.8"},{name:"nodejs",version:"20.5.0",date:"2023-07-19",lts:!1,security:!1,v8:"11.3.244.8"},{name:"nodejs",version:"20.6.0",date:"2023-08-23",lts:!1,security:!1,v8:"11.3.244.8"},{name:"nodejs",version:"20.7.0",date:"2023-09-18",lts:!1,security:!1,v8:"11.3.244.8"},{name:"nodejs",version:"20.8.0",date:"2023-09-28",lts:!1,security:!1,v8:"11.3.244.8"},{name:"nodejs",version:"20.9.0",date:"2023-10-24",lts:"Iron",security:!1,v8:"11.3.244.8"},{name:"nodejs",version:"20.10.0",date:"2023-11-22",lts:"Iron",security:!1,v8:"11.3.244.8"},{name:"nodejs",version:"21.0.0",date:"2023-10-17",lts:!1,security:!1,v8:"11.8.172.13"},{name:"nodejs",version:"21.1.0",date:"2023-10-24",lts:!1,security:!1,v8:"11.8.172.15"},{name:"nodejs",version:"21.2.0",date:"2023-11-14",lts:!1,security:!1,v8:"11.8.172.17"},{name:"nodejs",version:"21.3.0",date:"2023-11-30",lts:!1,security:!1,v8:"11.8.172.17"}]});var L2=b(($we,j2)=>{j2.exports={A:"ie",B:"edge",C:"firefox",D:"chrome",E:"safari",F:"opera",G:"ios_saf",H:"op_mini",I:"android",J:"bb",K:"op_mob",L:"and_chr",M:"and_ff",N:"ie_mob",O:"and_uc",P:"samsung",Q:"and_qq",R:"baidu",S:"kaios"}});var Nc=b((Wwe,M2)=>{M2.exports.browsers=L2()});var q2=b((Kwe,R2)=>{R2.exports={0:"111",1:"112",2:"113",3:"114",4:"115",5:"116",6:"117",7:"118",8:"121",9:"5",A:"10",B:"11",C:"12",D:"7",E:"8",F:"9",G:"15",H:"120",I:"4",J:"6",K:"13",L:"14",M:"16",N:"17",O:"18",P:"79",Q:"80",R:"81",S:"83",T:"84",U:"85",V:"86",W:"87",X:"88",Y:"89",Z:"90",a:"91",b:"92",c:"93",d:"94",e:"95",f:"96",g:"97",h:"98",i:"99",j:"100",k:"101",l:"102",m:"103",n:"104",o:"105",p:"106",q:"119",r:"20",s:"21",t:"22",u:"23",v:"73",w:"107",x:"108",y:"109",z:"110",AB:"19",BB:"24",CB:"25",DB:"26",EB:"27",FB:"28",GB:"29",HB:"30",IB:"31",JB:"32",KB:"33",LB:"34",MB:"35",NB:"36",OB:"37",PB:"38",QB:"39",RB:"40",SB:"41",TB:"42",UB:"43",VB:"44",WB:"45",XB:"46",YB:"47",ZB:"48",aB:"49",bB:"50",cB:"51",dB:"52",eB:"53",fB:"54",gB:"55",hB:"56",iB:"57",jB:"58",kB:"60",lB:"62",mB:"63",nB:"64",oB:"65",pB:"66",qB:"67",rB:"68",sB:"69",tB:"70",uB:"71",vB:"72",wB:"74",xB:"75",yB:"76",zB:"77","0B":"78","1B":"11.1","2B":"12.1","3B":"15.5","4B":"16.0","5B":"17.0","6B":"3","7B":"59","8B":"61","9B":"82",AC:"122",BC:"123",CC:"3.2",DC:"10.1",EC:"13.1",FC:"15.2-15.3",GC:"15.4",HC:"16.1",IC:"16.2",JC:"16.3",KC:"16.4",LC:"16.5",MC:"17.1",NC:"17.2",OC:"17.3",PC:"11.5",QC:"4.2-4.3",RC:"5.5",SC:"2",TC:"124",UC:"3.5",VC:"3.6",WC:"3.1",XC:"5.1",YC:"6.1",ZC:"7.1",aC:"9.1",bC:"14.1",cC:"15.1",dC:"15.6",eC:"16.6",fC:"TP",gC:"9.5-9.6",hC:"10.0-10.1",iC:"10.5",jC:"10.6",kC:"11.6",lC:"4.0-4.1",mC:"5.0-5.1",nC:"6.0-6.1",oC:"7.0-7.1",pC:"8.1-8.4",qC:"9.0-9.2",rC:"9.3",sC:"10.0-10.2",tC:"10.3",uC:"11.0-11.2",vC:"11.3-11.4",wC:"12.0-12.1",xC:"12.2-12.5",yC:"13.0-13.1",zC:"13.2","0C":"13.3","1C":"13.4-13.7","2C":"14.0-14.4","3C":"14.5-14.8","4C":"15.0-15.1","5C":"15.6-15.8","6C":"16.6-16.7","7C":"all","8C":"2.1","9C":"2.2",AD:"2.3",BD:"4.1",CD:"4.4",DD:"4.4.3-4.4.4",ED:"5.0-5.4",FD:"6.2-6.4",GD:"7.2-7.4",HD:"8.2",ID:"9.2",JD:"11.1-11.2",KD:"12.0",LD:"13.0",MD:"14.0",ND:"15.0",OD:"18.0",PD:"19.0",QD:"13.18",RD:"2.5",SD:"3.0-3.1"}});var cg=b((Gwe,U2)=>{U2.exports.browserVersions=q2()});var $2=b((Hwe,V2)=>{V2.exports={A:{A:{J:0,D:0,E:.0223482,F:.0446964,A:0,B:.424615,RC:0},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","RC","J","D","E","F","A","B","","",""],E:"IE",F:{RC:962323200,J:998870400,D:1161129600,E:1237420800,F:1300060800,A:1346716800,B:1381968e3}},B:{A:{0:.01209,1:.00806,2:.01209,3:.02015,4:.01209,5:.02015,6:.02821,7:.05239,8:0,C:.00403,K:.00403,L:.00403,G:.00403,M:0,N:.00806,O:.01209,P:0,Q:0,R:0,S:0,T:0,U:0,V:0,W:.31434,X:0,Y:0,Z:0,a:0,b:.01209,c:0,d:0,e:0,f:0,g:0,h:0,i:.02015,j:0,k:0,l:0,m:0,n:0,o:0,p:.00806,w:.01612,x:.01612,y:.07657,z:.01612,q:1.56364,H:2.5389},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","C","K","L","G","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","w","x","y","z","0","1","2","3","4","5","6","7","q","H","8","",""],E:"Edge",F:{0:1678665600,1:1680825600,2:1683158400,3:1685664e3,4:1689897600,5:1692576e3,6:1694649600,7:1697155200,8:null,C:1438128e3,K:1447286400,L:1470096e3,G:1491868800,M:1508198400,N:1525046400,O:1542067200,P:1579046400,Q:1581033600,R:1586736e3,S:1590019200,T:1594857600,U:1598486400,V:1602201600,W:1605830400,X:161136e4,Y:1614816e3,Z:1618358400,a:1622073600,b:1626912e3,c:1630627200,d:1632441600,e:1634774400,f:1637539200,g:1641427200,h:1643932800,i:1646265600,j:1649635200,k:1651190400,l:1653955200,m:1655942400,n:1659657600,o:1661990400,p:1664755200,w:1666915200,x:1670198400,y:1673481600,z:1675900800,q:1698969600,H:1701993600},D:{C:"ms",K:"ms",L:"ms",G:"ms",M:"ms",N:"ms",O:"ms"}},C:{A:{0:.00806,1:.00403,2:.01209,3:.01612,4:.43927,5:.00806,6:.01209,7:.10881,8:.41912,9:0,SC:0,"6B":0,I:.00403,J:0,D:0,E:0,F:0,A:0,B:.0403,C:.0403,K:0,L:0,G:0,M:0,N:0,O:0,AB:0,r:0,s:0,t:0,u:0,BB:0,CB:0,DB:0,EB:0,FB:0,GB:0,HB:0,IB:0,JB:0,KB:0,LB:0,MB:0,NB:0,OB:0,PB:0,QB:0,RB:0,SB:0,TB:0,UB:.00806,VB:.00806,WB:0,XB:0,YB:0,ZB:.00806,aB:0,bB:.00806,cB:0,dB:.06448,eB:.00806,fB:.00806,gB:.00806,hB:.01612,iB:0,jB:0,"7B":.00403,kB:0,"8B":0,lB:0,mB:0,nB:0,oB:0,pB:0,qB:0,rB:0,sB:0,tB:0,uB:0,vB:.00403,v:0,wB:0,xB:0,yB:0,zB:0,"0B":.02015,P:0,Q:0,R:0,"9B":0,S:0,T:0,U:0,V:0,W:0,X:.00806,Y:0,Z:0,a:.01612,b:0,c:0,d:.00806,e:0,f:0,g:0,h:0,i:0,j:0,k:.01209,l:.03224,m:.02418,n:.01209,o:.00806,p:.00403,w:.00806,x:.00806,y:.01209,z:.00806,q:.27807,H:1.24124,AC:0,BC:0,TC:0,UC:0,VC:0},B:"moz",C:["SC","6B","UC","VC","I","9","J","D","E","F","A","B","C","K","L","G","M","N","O","AB","r","s","t","u","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","7B","kB","8B","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","vB","v","wB","xB","yB","zB","0B","P","Q","R","9B","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","w","x","y","z","0","1","2","3","4","5","6","7","q","H","8","AC","BC","TC"],E:"Firefox",F:{0:1678752e3,1:1681171200,2:1683590400,3:1686009600,4:1688428800,5:1690848e3,6:1693267200,7:1695686400,8:1702944e3,9:1308614400,SC:1161648e3,"6B":1213660800,UC:124632e4,VC:1264032e3,I:1300752e3,J:1313452800,D:1317081600,E:1317081600,F:1320710400,A:1324339200,B:1327968e3,C:1331596800,K:1335225600,L:1338854400,G:1342483200,M:1346112e3,N:1349740800,O:1353628800,AB:1357603200,r:1361232e3,s:1364860800,t:1368489600,u:1372118400,BB:1375747200,CB:1379376e3,DB:1386633600,EB:1391472e3,FB:1395100800,GB:1398729600,HB:1402358400,IB:1405987200,JB:1409616e3,KB:1413244800,LB:1417392e3,MB:1421107200,NB:1424736e3,OB:1428278400,PB:1431475200,QB:1435881600,RB:1439251200,SB:144288e4,TB:1446508800,UB:1450137600,VB:1453852800,WB:1457395200,XB:1461628800,YB:1465257600,ZB:1470096e3,aB:1474329600,bB:1479168e3,cB:1485216e3,dB:1488844800,eB:149256e4,fB:1497312e3,gB:1502150400,hB:1506556800,iB:1510617600,jB:1516665600,"7B":1520985600,kB:1525824e3,"8B":1529971200,lB:1536105600,mB:1540252800,nB:1544486400,oB:154872e4,pB:1552953600,qB:1558396800,rB:1562630400,sB:1567468800,tB:1571788800,uB:1575331200,vB:1578355200,v:1581379200,wB:1583798400,xB:1586304e3,yB:1588636800,zB:1591056e3,"0B":1593475200,P:1595894400,Q:1598313600,R:1600732800,"9B":1603152e3,S:1605571200,T:1607990400,U:1611619200,V:1614038400,W:1616457600,X:1618790400,Y:1622505600,Z:1626134400,a:1628553600,b:1630972800,c:1633392e3,d:1635811200,e:1638835200,f:1641859200,g:1644364800,h:1646697600,i:1649116800,j:1651536e3,k:1653955200,l:1656374400,m:1658793600,n:1661212800,o:1663632e3,p:1666051200,w:1668470400,x:1670889600,y:1673913600,z:1676332800,q:1698105600,H:1700524800,AC:null,BC:null,TC:null}},D:{A:{0:.10478,1:.12896,2:.21359,3:.14508,4:.10075,5:.2821,6:.26598,7:.82615,8:.01612,9:0,I:0,J:0,D:0,E:0,F:0,A:0,B:0,C:0,K:0,L:0,G:0,M:0,N:0,O:0,AB:0,r:0,s:0,t:0,u:0,BB:0,CB:0,DB:0,EB:0,FB:0,GB:0,HB:0,IB:0,JB:0,KB:0,LB:.00806,MB:0,NB:0,OB:0,PB:.01612,QB:0,RB:0,SB:.00403,TB:0,UB:0,VB:0,WB:.00806,XB:0,YB:.00806,ZB:.03627,aB:.02821,bB:.01209,cB:0,dB:0,eB:.00806,fB:.00806,gB:.00403,hB:.01612,iB:.00806,jB:.00403,"7B":0,kB:.03224,"8B":.00403,lB:0,mB:.00403,nB:0,oB:.00403,pB:.03224,qB:.00403,rB:.00403,sB:.04836,tB:.0806,uB:.00806,vB:.00806,v:.01209,wB:.01209,xB:.01209,yB:.02015,zB:.01209,"0B":.01612,P:.13299,Q:.02821,R:.02821,S:.04433,T:.01209,U:.03627,V:.04433,W:.06851,X:.01612,Y:.01612,Z:.01612,a:.06448,b:.03627,c:.09672,d:.04836,e:.02418,f:.01612,g:.02015,h:.07254,i:.0403,j:.03224,k:.04433,l:.03627,m:.26598,n:.06851,o:.08463,p:.0806,w:.0806,x:.12896,y:1.7732,z:.10075,q:8.53554,H:10.1596,AC:.01209,BC:0},B:"webkit",C:["","","","","","","I","9","J","D","E","F","A","B","C","K","L","G","M","N","O","AB","r","s","t","u","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","7B","kB","8B","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","vB","v","wB","xB","yB","zB","0B","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","w","x","y","z","0","1","2","3","4","5","6","7","q","H","8","AC","BC"],E:"Chrome",F:{0:1678147200,1:1680566400,2:1682985600,3:1685404800,4:1689724800,5:1692057600,6:1694476800,7:1696896e3,8:null,9:1274745600,I:1264377600,J:1283385600,D:1287619200,E:1291248e3,F:1296777600,A:1299542400,B:1303862400,C:1307404800,K:1312243200,L:1316131200,G:1316131200,M:1319500800,N:1323734400,O:1328659200,AB:1332892800,r:133704e4,s:1340668800,t:1343692800,u:1348531200,BB:1352246400,CB:1357862400,DB:1361404800,EB:1364428800,FB:1369094400,GB:1374105600,HB:1376956800,IB:1384214400,JB:1389657600,KB:1392940800,LB:1397001600,MB:1400544e3,NB:1405468800,OB:1409011200,PB:141264e4,QB:1416268800,RB:1421798400,SB:1425513600,TB:1429401600,UB:143208e4,VB:1437523200,WB:1441152e3,XB:1444780800,YB:1449014400,ZB:1453248e3,aB:1456963200,bB:1460592e3,cB:1464134400,dB:1469059200,eB:1472601600,fB:1476230400,gB:1480550400,hB:1485302400,iB:1489017600,jB:149256e4,"7B":1496707200,kB:1500940800,"8B":1504569600,lB:1508198400,mB:1512518400,nB:1516752e3,oB:1520294400,pB:1523923200,qB:1527552e3,rB:1532390400,sB:1536019200,tB:1539648e3,uB:1543968e3,vB:154872e4,v:1552348800,wB:1555977600,xB:1559606400,yB:1564444800,zB:1568073600,"0B":1571702400,P:1575936e3,Q:1580860800,R:1586304e3,S:1589846400,T:1594684800,U:1598313600,V:1601942400,W:1605571200,X:1611014400,Y:1614556800,Z:1618272e3,a:1621987200,b:1626739200,c:1630368e3,d:1632268800,e:1634601600,f:1637020800,g:1641340800,h:1643673600,i:1646092800,j:1648512e3,k:1650931200,l:1653350400,m:1655769600,n:1659398400,o:1661817600,p:1664236800,w:1666656e3,x:166968e4,y:1673308800,z:1675728e3,q:1698710400,H:1701993600,AC:null,BC:null}},E:{A:{9:0,I:0,J:0,D:.00806,E:.00403,F:.00403,A:0,B:0,C:0,K:.00806,L:.05239,G:.00806,WC:0,CC:0,XC:.00806,YC:0,ZC:0,aC:.01209,DC:0,"1B":.01612,"2B":.02015,EC:.0806,bC:.12493,cC:.02821,FC:.01612,GC:.03224,"3B":.04836,dC:.3224,"4B":.03224,HC:.0806,IC:.06448,JC:.1612,KC:.07254,LC:.12493,eC:.59241,"5B":.14911,MC:1.26139,NC:.1612,OC:.00403,fC:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","WC","CC","I","9","XC","J","YC","D","ZC","E","F","aC","A","DC","B","1B","C","2B","K","EC","L","bC","G","cC","FC","GC","3B","dC","4B","HC","IC","JC","KC","LC","eC","5B","MC","NC","OC","fC",""],E:"Safari",F:{9:1275868800,WC:1205798400,CC:1226534400,I:1244419200,XC:131112e4,J:1343174400,YC:13824e5,D:13824e5,ZC:1410998400,E:1413417600,F:1443657600,aC:1458518400,A:1474329600,DC:1490572800,B:1505779200,"1B":1522281600,C:1537142400,"2B":1553472e3,K:1568851200,EC:1585008e3,L:1600214400,bC:1619395200,G:1632096e3,cC:1635292800,FC:1639353600,GC:1647216e3,"3B":1652745600,dC:1658275200,"4B":1662940800,HC:1666569600,IC:1670889600,JC:1674432e3,KC:1679875200,LC:1684368e3,eC:1690156800,"5B":1695686400,MC:1698192e3,NC:1702252800,OC:null,fC:null}},F:{A:{F:0,B:0,C:0,G:0,M:0,N:0,O:0,AB:0,r:0,s:0,t:0,u:0,BB:0,CB:0,DB:0,EB:0,FB:0,GB:0,HB:0,IB:0,JB:0,KB:0,LB:0,MB:0,NB:0,OB:0,PB:0,QB:0,RB:0,SB:0,TB:0,UB:0,VB:0,WB:0,XB:.01612,YB:0,ZB:0,aB:0,bB:0,cB:0,dB:0,eB:0,fB:0,gB:0,hB:0,iB:0,jB:0,kB:0,lB:0,mB:0,nB:0,oB:0,pB:0,qB:0,rB:0,sB:0,tB:0,uB:0,vB:0,v:0,wB:0,xB:0,yB:0,zB:0,"0B":0,P:0,Q:0,R:0,"9B":0,S:0,T:0,U:0,V:0,W:0,X:0,Y:0,Z:0,a:0,b:0,c:0,d:.00403,e:.05642,f:0,g:0,h:0,i:0,j:0,k:0,l:.02015,m:0,n:.50778,o:.78585,p:.01612,gC:0,hC:0,iC:0,jC:0,"1B":0,PC:0,kC:0,"2B":0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","F","gC","hC","iC","jC","B","1B","PC","kC","C","2B","G","M","N","O","AB","r","s","t","u","BB","CB","DB","EB","FB","GB","HB","IB","JB","KB","LB","MB","NB","OB","PB","QB","RB","SB","TB","UB","VB","WB","XB","YB","ZB","aB","bB","cB","dB","eB","fB","gB","hB","iB","jB","kB","lB","mB","nB","oB","pB","qB","rB","sB","tB","uB","vB","v","wB","xB","yB","zB","0B","P","Q","R","9B","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","","",""],E:"Opera",F:{F:1150761600,gC:1223424e3,hC:1251763200,iC:1267488e3,jC:1277942400,B:1292457600,"1B":1302566400,PC:1309219200,kC:1323129600,C:1323129600,"2B":1352073600,G:1372723200,M:1377561600,N:1381104e3,O:1386288e3,AB:1390867200,r:1393891200,s:1399334400,t:1401753600,u:1405987200,BB:1409616e3,CB:1413331200,DB:1417132800,EB:1422316800,FB:1425945600,GB:1430179200,HB:1433808e3,IB:1438646400,JB:1442448e3,KB:1445904e3,LB:1449100800,MB:1454371200,NB:1457308800,OB:146232e4,PB:1465344e3,QB:1470096e3,RB:1474329600,SB:1477267200,TB:1481587200,UB:1486425600,VB:1490054400,WB:1494374400,XB:1498003200,YB:1502236800,ZB:1506470400,aB:1510099200,bB:1515024e3,cB:1517961600,dB:1521676800,eB:1525910400,fB:1530144e3,gB:1534982400,hB:1537833600,iB:1543363200,jB:1548201600,kB:1554768e3,lB:1561593600,mB:1566259200,nB:1570406400,oB:1573689600,pB:1578441600,qB:1583971200,rB:1587513600,sB:1592956800,tB:1595894400,uB:1600128e3,vB:1603238400,v:161352e4,wB:1612224e3,xB:1616544e3,yB:1619568e3,zB:1623715200,"0B":1627948800,P:1631577600,Q:1633392e3,R:1635984e3,"9B":1638403200,S:1642550400,T:1644969600,U:1647993600,V:1650412800,W:1652745600,X:1654646400,Y:1657152e3,Z:1660780800,a:1663113600,b:1668816e3,c:1668643200,d:1671062400,e:1675209600,f:1677024e3,g:1679529600,h:1681948800,i:1684195200,j:1687219200,k:1690329600,l:1692748800,m:1696204800,n:169992e4,o:169992e4,p:1702944e3},D:{F:"o",B:"o",C:"o",gC:"o",hC:"o",iC:"o",jC:"o","1B":"o",PC:"o",kC:"o","2B":"o"}},G:{A:{E:0,CC:0,lC:0,QC:.00294848,mC:.00294848,nC:.00589696,oC:.0103197,pC:.00294848,qC:.0103197,rC:.0353818,sC:.00294848,tC:.0545469,uC:.0221136,vC:.0250621,wC:.0132682,xC:.27126,yC:.00589696,zC:.042753,"0C":.0147424,"1C":.0530726,"2C":.106145,"3C":.165115,"4C":.0707635,FC:.0810832,GC:.0987741,"3B":.126785,"5C":.971524,"4B":.308116,HC:.661934,IC:.293374,JC:.551366,KC:.110568,LC:.263889,"6C":2.32635,"5B":.412787,MC:6.85816,NC:.717955,OC:.0353818},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","CC","lC","QC","mC","nC","oC","E","pC","qC","rC","sC","tC","uC","vC","wC","xC","yC","zC","0C","1C","2C","3C","4C","FC","GC","3B","5C","4B","HC","IC","JC","KC","LC","6C","5B","MC","NC","OC","",""],E:"Safari on iOS",F:{CC:1270252800,lC:1283904e3,QC:1299628800,mC:1331078400,nC:1359331200,oC:1394409600,E:1410912e3,pC:1413763200,qC:1442361600,rC:1458518400,sC:1473724800,tC:1490572800,uC:1505779200,vC:1522281600,wC:1537142400,xC:1553472e3,yC:1568851200,zC:1572220800,"0C":1580169600,"1C":1585008e3,"2C":1600214400,"3C":1619395200,"4C":1632096e3,FC:1639353600,GC:1647216e3,"3B":1652659200,"5C":1658275200,"4B":1662940800,HC:1666569600,IC:1670889600,JC:1674432e3,KC:1679875200,LC:1684368e3,"6C":1690156800,"5B":1694995200,MC:1698192e3,NC:1702252800,OC:null}},H:{A:{"7C":.07},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","7C","","",""],E:"Opera Mini",F:{"7C":1426464e3}},I:{A:{"6B":0,I:489622e-10,H:.24366,"8C":0,"9C":244811e-10,AD:0,BD:489622e-10,QC:171368e-9,CD:0,DD:709952e-9},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","8C","9C","AD","6B","I","BD","QC","CD","DD","H","","",""],E:"Android Browser",F:{"8C":1256515200,"9C":1274313600,AD:1291593600,"6B":1298332800,I:1318896e3,BD:1341792e3,QC:1374624e3,CD:1386547200,DD:1401667200,H:1701734400}},J:{A:{D:0,A:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","D","A","","",""],E:"Blackberry Browser",F:{D:1325376e3,A:1359504e3}},K:{A:{A:0,B:0,C:0,v:1.27348,"1B":0,PC:0,"2B":0},B:"o",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","1B","PC","C","2B","v","","",""],E:"Opera Mobile",F:{A:1287100800,B:1300752e3,"1B":1314835200,PC:1318291200,C:1330300800,"2B":1349740800,v:1673827200},D:{v:"webkit"}},L:{A:{H:40.1948},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","H","","",""],E:"Chrome for Android",F:{H:1701734400}},M:{A:{q:.310492},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","q","","",""],E:"Firefox for Android",F:{q:1698105600}},N:{A:{A:0,B:0},B:"ms",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A","B","","",""],E:"IE Mobile",F:{A:1340150400,B:1353456e3}},O:{A:{"3B":.883708},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","3B","","",""],E:"UC Browser for Android",F:{"3B":1687132800},D:{"3B":"webkit"}},P:{A:{I:.1284,r:.0428001,s:.0856003,t:.1605,u:2.04371,ED:.0107,FD:0,GD:.0535002,HD:0,ID:0,DC:0,JD:.0107,KD:0,LD:.0214001,MD:0,ND:0,"4B":.0214001,"5B":.0321001,OD:.0214001,PD:.0428001},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","I","ED","FD","GD","HD","ID","DC","JD","KD","LD","MD","ND","4B","5B","OD","PD","r","s","t","u","","",""],E:"Samsung Internet",F:{I:1461024e3,ED:1481846400,FD:1509408e3,GD:1528329600,HD:1546128e3,ID:1554163200,DC:1567900800,JD:1582588800,KD:1593475200,LD:1605657600,MD:1618531200,ND:1629072e3,"4B":1640736e3,"5B":1651708800,OD:1659657600,PD:1667260800,r:1677369600,s:1684454400,t:1689292800,u:1697587200}},Q:{A:{EC:.167188},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","EC","","",""],E:"QQ Browser",F:{EC:1663718400}},R:{A:{QD:0},B:"webkit",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","QD","","",""],E:"Baidu Browser",F:{QD:1663027200}},S:{A:{RD:.083594,SD:0},B:"moz",C:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","RD","SD","","",""],E:"KaiOS Browser",F:{RD:1527811200,SD:1631664e3}}}});var H2=b((Ywe,G2)=>{"use strict";var dhe=Nc().browsers,fg=cg().browserVersions,W2=$2();function K2(e){return Object.keys(e).reduce((t,r)=>(t[fg[r]]=e[r],t),{})}G2.exports.agents=Object.keys(W2).reduce((e,t)=>{let r=W2[t];return e[dhe[t]]=Object.keys(r).reduce((n,s)=>(s==="A"?n.usage_global=K2(r[s]):s==="C"?n.versions=r[s].reduce((i,a)=>(a===""?i.push(null):i.push(fg[a]),i),[]):s==="D"?n.prefix_exceptions=K2(r[s]):s==="E"?n.browser=r[s]:s==="F"?n.release_date=Object.keys(r[s]).reduce((i,a)=>(i[fg[a]]=r[s][a],i),{}):n.prefix=r[s],n),{}),e},{})});var Y2=b((Xwe,hhe)=>{hhe.exports={"v0.8":{start:"2012-06-25",end:"2014-07-31"},"v0.10":{start:"2013-03-11",end:"2016-10-31"},"v0.12":{start:"2015-02-06",end:"2016-12-31"},v4:{start:"2015-09-08",lts:"2015-10-12",maintenance:"2017-04-01",end:"2018-04-30",codename:"Argon"},v5:{start:"2015-10-29",maintenance:"2016-04-30",end:"2016-06-30"},v6:{start:"2016-04-26",lts:"2016-10-18",maintenance:"2018-04-30",end:"2019-04-30",codename:"Boron"},v7:{start:"2016-10-25",maintenance:"2017-04-30",end:"2017-06-30"},v8:{start:"2017-05-30",lts:"2017-10-31",maintenance:"2019-01-01",end:"2019-12-31",codename:"Carbon"},v9:{start:"2017-10-01",maintenance:"2018-04-01",end:"2018-06-30"},v10:{start:"2018-04-24",lts:"2018-10-30",maintenance:"2020-05-19",end:"2021-04-30",codename:"Dubnium"},v11:{start:"2018-10-23",maintenance:"2019-04-22",end:"2019-06-01"},v12:{start:"2019-04-23",lts:"2019-10-21",maintenance:"2020-11-30",end:"2022-04-30",codename:"Erbium"},v13:{start:"2019-10-22",maintenance:"2020-04-01",end:"2020-06-01"},v14:{start:"2020-04-21",lts:"2020-10-27",maintenance:"2021-10-19",end:"2023-04-30",codename:"Fermium"},v15:{start:"2020-10-20",maintenance:"2021-04-01",end:"2021-06-01"},v16:{start:"2021-04-20",lts:"2021-10-26",maintenance:"2022-10-18",end:"2023-09-11",codename:"Gallium"},v17:{start:"2021-10-19",maintenance:"2022-04-01",end:"2022-06-01"},v18:{start:"2022-04-19",lts:"2022-10-25",maintenance:"2023-10-18",end:"2025-04-30",codename:"Hydrogen"},v19:{start:"2022-10-18",maintenance:"2023-04-01",end:"2023-06-01"},v20:{start:"2023-04-18",lts:"2023-10-24",maintenance:"2024-10-22",end:"2026-04-30",codename:"Iron"},v21:{start:"2023-10-17",maintenance:"2024-04-01",end:"2024-06-01"},v22:{start:"2024-04-23",lts:"2024-10-29",maintenance:"2025-10-21",end:"2027-04-30",codename:""},v23:{start:"2024-10-15",maintenance:"2025-04-01",end:"2025-06-01"},v24:{start:"2025-04-22",lts:"2025-10-28",maintenance:"2026-10-20",end:"2028-04-30",codename:""}}});var J2=b((Jwe,X2)=>{X2.exports={"0.20":"39","0.21":"41","0.22":"41","0.23":"41","0.24":"41","0.25":"42","0.26":"42","0.27":"43","0.28":"43","0.29":"43","0.30":"44","0.31":"45","0.32":"45","0.33":"45","0.34":"45","0.35":"45","0.36":"47","0.37":"49","1.0":"49","1.1":"50","1.2":"51","1.3":"52","1.4":"53","1.5":"54","1.6":"56","1.7":"58","1.8":"59","2.0":"61","2.1":"61","3.0":"66","3.1":"66","4.0":"69","4.1":"69","4.2":"69","5.0":"73","6.0":"76","6.1":"76","7.0":"78","7.1":"78","7.2":"78","7.3":"78","8.0":"80","8.1":"80","8.2":"80","8.3":"80","8.4":"80","8.5":"80","9.0":"83","9.1":"83","9.2":"83","9.3":"83","9.4":"83","10.0":"85","10.1":"85","10.2":"85","10.3":"85","10.4":"85","11.0":"87","11.1":"87","11.2":"87","11.3":"87","11.4":"87","11.5":"87","12.0":"89","12.1":"89","12.2":"89","13.0":"91","13.1":"91","13.2":"91","13.3":"91","13.4":"91","13.5":"91","13.6":"91","14.0":"93","14.1":"93","14.2":"93","15.0":"94","15.1":"94","15.2":"94","15.3":"94","15.4":"94","15.5":"94","16.0":"96","16.1":"96","16.2":"96","17.0":"98","17.1":"98","17.2":"98","17.3":"98","17.4":"98","18.0":"100","18.1":"100","18.2":"100","18.3":"100","19.0":"102","19.1":"102","20.0":"104","20.1":"104","20.2":"104","20.3":"104","21.0":"106","21.1":"106","21.2":"106","21.3":"106","21.4":"106","22.0":"108","22.1":"108","22.2":"108","22.3":"108","23.0":"110","23.1":"110","23.2":"110","23.3":"110","24.0":"112","24.1":"112","24.2":"112","24.3":"112","24.4":"112","24.5":"112","24.6":"112","24.7":"112","24.8":"112","25.0":"114","25.1":"114","25.2":"114","25.3":"114","25.4":"114","25.5":"114","25.6":"114","25.7":"114","25.8":"114","25.9":"114","26.0":"116","26.1":"116","26.2":"116","26.3":"116","26.4":"116","26.5":"116","26.6":"116","27.0":"118","27.1":"118","27.2":"118","28.0":"120","28.1":"120","29.0":"122"}});var dg=b((zwe,z2)=>{function pg(e){this.name="BrowserslistError",this.message=e,this.browserslist=!0,Error.captureStackTrace&&Error.captureStackTrace(this,pg)}pg.prototype=Error.prototype;z2.exports=pg});var rw=b((Qwe,tw)=>{var Q2=/^\s+and\s+(.*)/i,Z2=/^(?:,\s*|\s+or\s+)(.*)/i;function ew(e){return Array.isArray(e)?e.reduce(function(t,r){return t.concat(ew(r))},[]):[e]}function mhe(e,t){for(var r=1,n=e.length;r<=n;r++){var s=e.substr(-r,r);if(t(s,r,n))return e.slice(0,-r)}return""}function hg(e,t){var r={query:t};t.indexOf("not ")===0&&(r.not=!0,t=t.slice(4));for(var n in e){var s=e[n],i=t.match(s.regexp);if(i){r.type=n;for(var a=0;a{nw.exports={1:"ls",2:"rec",3:"pr",4:"cr",5:"wd",6:"other",7:"unoff"}});var aw=b((eDe,iw)=>{iw.exports={y:1,n:2,a:4,p:8,u:16,x:32,d:64}});var uw=b((tDe,mg)=>{"use strict";var ghe=sw(),ow=aw(),bhe=Nc().browsers,Ehe=cg().browserVersions,vhe=Math.log(2);function The(e){let t=Object.keys(ow).reduce((s,i)=>(e&ow[i]&&s.push(i),s),[]),r=e>>7,n=[];for(;r;){let s=Math.floor(Math.log(r)/vhe)+1;n.unshift(`#${s}`),r-=Math.pow(2,s-1)}return t.concat(n).join(" ")}function lw(e){let t={status:ghe[e.B],title:e.C,shown:e.D};return t.stats=Object.keys(e.A).reduce((r,n)=>{let s=e.A[n];return r[bhe[n]]=Object.keys(s).reduce((i,a)=>{let o=s[a].split(" "),l=The(a);return o.forEach(u=>i[Ehe[u]]=l),i},{}),r},{}),t}mg.exports=lw;mg.exports.default=lw});var fw=b((rDe,yg)=>{"use strict";var She=Nc().browsers;function cw(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return t[She[r]]=Object.keys(n).reduce((s,i)=>{let a=n[i];return i==="_"?a.split(" ").forEach(o=>s[o]=null):s[i]=a,s},{}),t},{})}yg.exports=cw;yg.exports.default=cw});var bw=b((nDe,Ys)=>{var xhe=uw().default,Phe=fw().default,Xr=require("path"),Ki=require("fs"),Qt=dg(),pw=/^\s*\[(.+)]\s*$/,Ahe=/^browserslist-config-/,Che=/@[^/]+\/browserslist-config(-|$|\/)/,whe=6*30*24*60*60*1e3,dw="Browserslist config should be a string or an array of strings with browser queries",gg=!1,Fc={},kc={};function hw(e){var t=" Use `dangerousExtend` option to disable.";if(!Ahe.test(e)&&!Che.test(e))throw new Qt("Browserslist config needs `browserslist-config-` prefix. "+t);if(e.replace(/^@[^/]+\//,"").indexOf(".")!==-1)throw new Qt("`.` not allowed in Browserslist config name. "+t);if(e.indexOf("node_modules")!==-1)throw new Qt("`node_modules` not allowed in Browserslist config."+t)}function cn(e){if(e in Fc)return Fc[e];var t=Ki.existsSync(e)&&Ki.statSync(e).isFile();return process.env.BROWSERSLIST_DISABLE_CACHE||(Fc[e]=t),t}function mw(e,t){var r=cn(e)?Xr.dirname(e):e,n=Xr.resolve(r);do{var s=t(n);if(typeof s!="undefined")return s}while(n!==(n=Xr.dirname(n)))}function Dhe(e){if(Array.isArray(e)){for(var t=0;t{var _he=F2(),Nn=H2().agents,bg=Y2(),Uc=require("path"),Jr=J2(),yr=dg(),ww=rw(),Zt=bw(),Nhe=365.259641*24*60*60*1e3,Dw="37",khe=14;function Iw(e,t){return(e+".").indexOf(t+".")===0}function Bhe(e){var t=e.slice(1);return Pe.nodeVersions.some(function(r){return Iw(r,t)})}function Ew(e){return e.filter(function(t){return typeof t=="string"})}function jc(e){var t=e;return e.split(".").length===3&&(t=e.split(".").slice(0,-1).join(".")),t}function ds(e){return function(r){return e+" "+r}}function Sg(e){return parseInt(e.split(".")[0])}function Lc(e,t){if(e.length===0)return[];var r=Ow(e.map(Sg)),n=r[r.length-t];if(!n)return e;for(var s=[],i=e.length-1;i>=0&&!(n>Sg(e[i]));i--)s.unshift(e[i]);return s}function Ow(e){for(var t=[],r=0;r"?function(r){return parseFloat(r)>t}:e===">="?function(r){return parseFloat(r)>=t}:e==="<"?function(r){return parseFloat(r)"?function(r){return r=r.split(".").map(hs),Oo(r,t)>0}:e===">="?function(r){return r=r.split(".").map(hs),Oo(r,t)>=0}:e==="<"?function(r){return r=r.split(".").map(hs),Oo(t,r)>0}:function(r){return r=r.split(".").map(hs),Oo(t,r)>=0}}function hs(e){return parseInt(e)}function qc(e,t){return et?1:0}function Oo(e,t){return qc(parseInt(e[0]),parseInt(t[0]))||qc(parseInt(e[1]||"0"),parseInt(t[1]||"0"))||qc(parseInt(e[2]||"0"),parseInt(t[2]||"0"))}function Tw(e,t){switch(t=t.split(".").map(hs),typeof t[1]=="undefined"&&(t[1]="x"),e){case"<=":return function(r){return r=r.split(".").map(hs),Sw(r,t)<=0};case">=":default:return function(r){return r=r.split(".").map(hs),Sw(r,t)>=0}}}function Sw(e,t){return e[0]!==t[0]?e[0]=e});return r.concat(i.map(ds(s.name)))},[])}function xw(e){return{name:e.name,versions:e.versions,released:e.released,releaseDate:e.releaseDate}}function ms(e,t){if(e=e.toLowerCase(),e=Pe.aliases[e]||e,t.mobileToDesktop&&Pe.desktopNames[e]){var r=Pe.data[Pe.desktopNames[e]];if(e==="android")return Mhe(xw(Pe.data[e]),r);var n=xw(r);return n.name=e,n}return Pe.data[e]}function Pw(e,t){var r=t.indexOf(Dw);return e.filter(function(n){return/^(?:[2-4]\.|[34]$)/.test(n)}).concat(t.slice(r))}function Lhe(e){var t={};for(var r in e)t[r]=e[r];return t}function Mhe(e,t){return e.released=Pw(e.released,t.released),e.versions=Pw(e.versions,t.versions),e.releaseDate=Lhe(e.releaseDate),e.released.forEach(function(r){e.releaseDate[r]===void 0&&(e.releaseDate[r]=t.releaseDate[r])}),e}function Gi(e,t){var r=ms(e,t);if(!r)throw new yr("Unknown browser "+e);return r}function Rhe(e){return new yr("Unknown browser query `"+e+"`. Maybe you are using old Browserslist or made typo in query.")}function Rc(e,t,r,n){var s=1;switch(t){case"android":if(n.mobileToDesktop)return e;var i=Pe.data.chrome.released;s=i.length-i.indexOf(Dw);break;case"op_mob":var a=Pe.data.op_mob.released.slice(-1)[0];s=Sg(a)-khe+1;break;default:return e}return r<=s?e.slice(-1):e.slice(s-1-r)}function Aw(e,t){return typeof e=="string"&&(e.indexOf("y")>=0||t&&e.indexOf("a")>=0)}function Hi(e,t){return ww(xg,e).reduce(function(r,n,s){if(n.not&&s===0)throw new yr("Write any browsers query (for instance, `defaults`) before `"+n.query+"`");var i=xg[n.type],a=i.select.call(Pe,t,n).map(function(l){var u=l.split(" ");return u[1]==="0"?u[0]+" "+ms(u[0],t).versions[0]:l});if(n.compose==="and")return n.not?r.filter(function(l){return a.indexOf(l)===-1}):r.filter(function(l){return a.indexOf(l)!==-1});if(n.not){var o={};return a.forEach(function(l){o[l]=!0}),r.filter(function(l){return!o[l]})}return r.concat(a)},[])}function Nw(e){return typeof e=="undefined"&&(e={}),typeof e.path=="undefined"&&(e.path=Uc.resolve?Uc.resolve("."):"."),e}function kw(e,t){if(typeof e=="undefined"||e===null){var r=Pe.loadConfig(t);r?e=r:e=Pe.defaults}return e}function Bw(e){if(!(typeof e=="string"||Array.isArray(e)))throw new yr("Browser queries must be an array or string. Got "+typeof e+".")}var Eg={};function Pe(e,t){t=Nw(t),e=kw(e,t),Bw(e);var r={ignoreUnknownVersions:t.ignoreUnknownVersions,dangerousExtend:t.dangerousExtend,mobileToDesktop:t.mobileToDesktop,path:t.path,env:t.env};Zt.oldDataWarning(Pe.data);var n=Zt.getStat(t,Pe.data);if(n){r.customUsage={};for(var s in n)Vc(r.customUsage,s,n[s])}var i=JSON.stringify([e,r]);if(Eg[i])return Eg[i];var a=Ow(Hi(e,r)).sort(function(o,l){if(o=o.split(" "),l=l.split(" "),o[0]===l[0]){var u=o[1].split("-")[0],c=l[1].split("-")[0];return Oo(c.split("."),u.split("."))}else return qc(o[0],l[0])});return Zt.env.BROWSERSLIST_DISABLE_CACHE||(Eg[i]=a),a}Pe.parse=function(e,t){return t=Nw(t),e=kw(e,t),Bw(e),ww(xg,e)};Pe.cache={};Pe.data={};Pe.usage={global:{},custom:null};Pe.defaults=["> 0.5%","last 2 versions","Firefox ESR","not dead"];Pe.aliases={fx:"firefox",ff:"firefox",ios:"ios_saf",explorer:"ie",blackberry:"bb",explorermobile:"ie_mob",operamini:"op_mini",operamobile:"op_mob",chromeandroid:"and_chr",firefoxandroid:"and_ff",ucandroid:"and_uc",qqandroid:"and_qq"};Pe.desktopNames={and_chr:"chrome",and_ff:"firefox",ie_mob:"ie",android:"chrome"};Pe.versionAliases={};Pe.clearCaches=Zt.clearCaches;Pe.parseConfig=Zt.parseConfig;Pe.readConfig=Zt.readConfig;Pe.findConfig=Zt.findConfig;Pe.loadConfig=Zt.loadConfig;Pe.coverage=function(e,t){var r;if(typeof t=="undefined")r=Pe.usage.global;else if(t==="my stats"){var n={};n.path=Uc.resolve?Uc.resolve("."):".";var s=Zt.getStat(n);if(!s)throw new yr("Custom usage statistics was not provided");r={};for(var i in s)Vc(r,i,s[i])}else if(typeof t=="string")t.length>2?t=t.toLowerCase():t=t.toUpperCase(),Zt.loadCountry(Pe.usage,t,Pe.data),r=Pe.usage[t];else{"dataByBrowser"in t&&(t=t.dataByBrowser),r={};for(var a in t)for(var o in t[a])r[a+" "+o]=t[a][o]}return e.reduce(function(l,u){var c=r[u];return c===void 0&&(c=r[u.replace(/ \S+$/," 0")]),l+(c||0)},0)};function vg(e,t){var r=Pe.nodeVersions.filter(function(n){return Iw(n,t.version)});if(r.length===0){if(e.ignoreUnknownVersions)return[];throw new yr("Unknown version "+t.version+" of Node.js")}return["node "+r[r.length-1]]}function Tg(e,t){var r=parseInt(t.year),n=parseInt(t.month||"01")-1,s=parseInt(t.day||"01");return _w(Date.UTC(r,n,s,0,0,0),e)}function Cw(e,t){var r=parseFloat(t.coverage),n=Pe.usage.global;if(t.place)if(t.place.match(/^my\s+stats$/i)){if(!e.customUsage)throw new yr("Custom usage statistics was not provided");n=e.customUsage}else{var s;t.place.length===2?s=t.place.toUpperCase():s=t.place.toLowerCase(),Zt.loadCountry(Pe.usage,s,Pe.data),n=Pe.usage[s]}for(var i=Object.keys(n).sort(function(c,f){return n[f]-n[c]}),a=0,o=[],l,u=0;u=r)));u++);return o}var xg={last_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+major\s+versions?$/i,select:function(e,t){return Object.keys(Nn).reduce(function(r,n){var s=ms(n,e);if(!s)return r;var i=Lc(s.released,t.versions);return i=i.map(ds(s.name)),i=Rc(i,s.name,t.versions,e),r.concat(i)},[])}},last_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+versions?$/i,select:function(e,t){return Object.keys(Nn).reduce(function(r,n){var s=ms(n,e);if(!s)return r;var i=s.released.slice(-t.versions);return i=i.map(ds(s.name)),i=Rc(i,s.name,t.versions,e),r.concat(i)},[])}},last_electron_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+electron\s+major\s+versions?$/i,select:function(e,t){var r=Lc(Object.keys(Jr),t.versions);return r.map(function(n){return"chrome "+Jr[n]})}},last_node_major_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+node\s+major\s+versions?$/i,select:function(e,t){return Lc(Pe.nodeVersions,t.versions).map(function(r){return"node "+r})}},last_browser_major_versions:{matches:["versions","browser"],regexp:/^last\s+(\d+)\s+(\w+)\s+major\s+versions?$/i,select:function(e,t){var r=Gi(t.browser,e),n=Lc(r.released,t.versions),s=n.map(ds(r.name));return s=Rc(s,r.name,t.versions,e),s}},last_electron_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+electron\s+versions?$/i,select:function(e,t){return Object.keys(Jr).slice(-t.versions).map(function(r){return"chrome "+Jr[r]})}},last_node_versions:{matches:["versions"],regexp:/^last\s+(\d+)\s+node\s+versions?$/i,select:function(e,t){return Pe.nodeVersions.slice(-t.versions).map(function(r){return"node "+r})}},last_browser_versions:{matches:["versions","browser"],regexp:/^last\s+(\d+)\s+(\w+)\s+versions?$/i,select:function(e,t){var r=Gi(t.browser,e),n=r.released.slice(-t.versions).map(ds(r.name));return n=Rc(n,r.name,t.versions,e),n}},unreleased_versions:{matches:[],regexp:/^unreleased\s+versions$/i,select:function(e){return Object.keys(Nn).reduce(function(t,r){var n=ms(r,e);if(!n)return t;var s=n.versions.filter(function(i){return n.released.indexOf(i)===-1});return s=s.map(ds(n.name)),t.concat(s)},[])}},unreleased_electron_versions:{matches:[],regexp:/^unreleased\s+electron\s+versions?$/i,select:function(){return[]}},unreleased_browser_versions:{matches:["browser"],regexp:/^unreleased\s+(\w+)\s+versions?$/i,select:function(e,t){var r=Gi(t.browser,e);return r.versions.filter(function(n){return r.released.indexOf(n)===-1}).map(ds(r.name))}},last_years:{matches:["years"],regexp:/^last\s+(\d*.?\d+)\s+years?$/i,select:function(e,t){return _w(Date.now()-Nhe*t.years,e)}},since_y:{matches:["year"],regexp:/^since (\d+)$/i,select:Tg},since_y_m:{matches:["year","month"],regexp:/^since (\d+)-(\d+)$/i,select:Tg},since_y_m_d:{matches:["year","month","day"],regexp:/^since (\d+)-(\d+)-(\d+)$/i,select:Tg},popularity:{matches:["sign","popularity"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%$/,select:function(e,t){var r=parseFloat(t.popularity),n=Pe.usage.global;return Object.keys(n).reduce(function(s,i){return t.sign===">"?n[i]>r&&s.push(i):t.sign==="<"?n[i]=r&&s.push(i),s},[])}},popularity_in_my_stats:{matches:["sign","popularity"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+my\s+stats$/,select:function(e,t){var r=parseFloat(t.popularity);if(!e.customUsage)throw new yr("Custom usage statistics was not provided");var n=e.customUsage;return Object.keys(n).reduce(function(s,i){var a=n[i];return a==null||(t.sign===">"?a>r&&s.push(i):t.sign==="<"?a=r&&s.push(i)),s},[])}},popularity_in_config_stats:{matches:["sign","popularity","config"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/,select:function(e,t){var r=parseFloat(t.popularity),n=Zt.loadStat(e,t.config,Pe.data);if(n){e.customUsage={};for(var s in n)Vc(e.customUsage,s,n[s])}if(!e.customUsage)throw new yr("Custom usage statistics was not provided");var i=e.customUsage;return Object.keys(i).reduce(function(a,o){var l=i[o];return l==null||(t.sign===">"?l>r&&a.push(o):t.sign==="<"?l=r&&a.push(o)),a},[])}},popularity_in_place:{matches:["sign","popularity","place"],regexp:/^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+((alt-)?\w\w)$/,select:function(e,t){var r=parseFloat(t.popularity),n=t.place;n.length===2?n=n.toUpperCase():n=n.toLowerCase(),Zt.loadCountry(Pe.usage,n,Pe.data);var s=Pe.usage[n];return Object.keys(s).reduce(function(i,a){var o=s[a];return o==null||(t.sign===">"?o>r&&i.push(a):t.sign==="<"?o=r&&i.push(a)),i},[])}},cover:{matches:["coverage"],regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%$/i,select:Cw},cover_in:{matches:["coverage","place"],regexp:/^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(my\s+stats|(alt-)?\w\w)$/i,select:Cw},supports:{matches:["supportType","feature"],regexp:/^(?:(fully|partially) )?supports\s+([\w-]+)$/,select:function(e,t){Zt.loadFeature(Pe.cache,t.feature);var r=t.supportType!=="fully",n=Pe.cache[t.feature],s=[];for(var i in n){var a=ms(i,e),o=e.mobileToDesktop&&i in Pe.desktopNames&&Aw(n[i][a.released.slice(-1)[0]],r);a.versions.forEach(function(l){var u=n[i][l];u===void 0&&o&&(u=n[Pe.desktopNames[i]][l]),Aw(u,r)&&s.push(i+" "+l)})}return s}},electron_range:{matches:["from","to"],regexp:/^electron\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,t){var r=jc(t.from),n=jc(t.to),s=parseFloat(t.from),i=parseFloat(t.to);if(!Jr[r])throw new yr("Unknown version "+s+" of electron");if(!Jr[n])throw new yr("Unknown version "+i+" of electron");return Object.keys(Jr).filter(function(a){var o=parseFloat(a);return o>=s&&o<=i}).map(function(a){return"chrome "+Jr[a]})}},node_range:{matches:["from","to"],regexp:/^node\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,t){return Pe.nodeVersions.filter(Tw(">=",t.from)).filter(Tw("<=",t.to)).map(function(r){return"node "+r})}},browser_range:{matches:["browser","from","to"],regexp:/^(\w+)\s+([\d.]+)\s*-\s*([\d.]+)$/i,select:function(e,t){var r=Gi(t.browser,e),n=parseFloat(Mc(r,t.from)||t.from),s=parseFloat(Mc(r,t.to)||t.to);function i(a){var o=parseFloat(a);return o>=n&&o<=s}return r.released.filter(i).map(ds(r.name))}},electron_ray:{matches:["sign","version"],regexp:/^electron\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(e,t){var r=jc(t.version);return Object.keys(Jr).filter(vw(t.sign,r)).map(function(n){return"chrome "+Jr[n]})}},node_ray:{matches:["sign","version"],regexp:/^node\s*(>=?|<=?)\s*([\d.]+)$/i,select:function(e,t){return Pe.nodeVersions.filter(Fhe(t.sign,t.version)).map(function(r){return"node "+r})}},browser_ray:{matches:["browser","sign","version"],regexp:/^(\w+)\s*(>=?|<=?)\s*([\d.]+)$/,select:function(e,t){var r=t.version,n=Gi(t.browser,e),s=Pe.versionAliases[n.name][r];return s&&(r=s),n.released.filter(vw(t.sign,r)).map(function(i){return n.name+" "+i})}},firefox_esr:{matches:[],regexp:/^(firefox|ff|fx)\s+esr$/i,select:function(){return["firefox 115"]}},opera_mini_all:{matches:[],regexp:/(operamini|op_mini)\s+all/i,select:function(){return["op_mini all"]}},electron_version:{matches:["version"],regexp:/^electron\s+([\d.]+)$/i,select:function(e,t){var r=jc(t.version),n=Jr[r];if(!n)throw new yr("Unknown version "+t.version+" of electron");return["chrome "+n]}},node_major_version:{matches:["version"],regexp:/^node\s+(\d+)$/i,select:vg},node_minor_version:{matches:["version"],regexp:/^node\s+(\d+\.\d+)$/i,select:vg},node_patch_version:{matches:["version"],regexp:/^node\s+(\d+\.\d+\.\d+)$/i,select:vg},current_node:{matches:[],regexp:/^current\s+node$/i,select:function(e){return[Zt.currentNode(Hi,e)]}},maintained_node:{matches:[],regexp:/^maintained\s+node\s+versions$/i,select:function(e){var t=Date.now(),r=Object.keys(bg).filter(function(n){return tDate.parse(bg[n].start)&&Bhe(n)}).map(function(n){return"node "+n.slice(1)});return Hi(r,e)}},phantomjs_1_9:{matches:[],regexp:/^phantomjs\s+1.9$/i,select:function(){return["safari 5"]}},phantomjs_2_1:{matches:[],regexp:/^phantomjs\s+2.1$/i,select:function(){return["safari 6"]}},browser_version:{matches:["browser","version"],regexp:/^(\w+)\s+(tp|[\d.]+)$/i,select:function(e,t){var r=t.version;/^tp$/i.test(r)&&(r="TP");var n=Gi(t.browser,e),s=Mc(n,r);if(s)r=s;else if(r.indexOf(".")===-1?s=r+".0":s=r.replace(/\.0$/,""),s=Mc(n,s),s)r=s;else{if(e.ignoreUnknownVersions)return[];throw new yr("Unknown version "+r+" of "+t.browser)}return[n.name+" "+r]}},browserslist_config:{matches:[],regexp:/^browserslist config$/i,select:function(e){return Pe(void 0,e)}},extends:{matches:["config"],regexp:/^extends (.+)$/i,select:function(e,t){return Hi(Zt.loadQueries(e,t.config),e)}},defaults:{matches:[],regexp:/^defaults$/i,select:function(e){return Hi(Pe.defaults,e)}},dead:{matches:[],regexp:/^dead$/i,select:function(e){var t=["Baidu >= 0","ie <= 11","ie_mob <= 11","bb <= 10","op_mob <= 12.1","samsung 4"];return Hi(t,e)}},unknown:{matches:[],regexp:/^(\w+)$/i,select:function(e,t){throw ms(t.query,e)?new yr("Specify versions in Browserslist query for browser "+t.query):Rhe(t.query)}}};(function(){for(var e in Nn){var t=Nn[e];Pe.data[e]={name:e,versions:Ew(Nn[e].versions),released:Ew(Nn[e].versions.slice(0,-3)),releaseDate:Nn[e].release_date},Vc(Pe.usage.global,e,t.usage_global),Pe.versionAliases[e]={};for(var r=0;r{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});Pg.findSuggestion=Uhe;var{min:Lw}=Math;function qhe(e,t){let r=[],n=[],s,i,a=e.length,o=t.length;if(!a)return o;if(!o)return a;for(i=0;i<=o;i++)r[i]=i;for(s=1;s<=a;s++){for(n=[s],i=1;i<=o;i++)n[i]=e[s-1]===t[i-1]?r[i-1]:Lw(r[i-1],r[i],n[i-1])+1;r=n}return n[o]}function Uhe(e,t){let r=t.map(n=>qhe(n,e));return t[r.indexOf(Lw(...r))]}});var Mw=b($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.OptionValidator=void 0;var Vhe=Ag(),Cg=class{constructor(t){this.descriptor=t}validateTopLevelOptions(t,r){let n=Object.keys(r);for(let s of Object.keys(t))if(!n.includes(s))throw new Error(this.formatMessage(`'${s}' is not a valid top-level option. - Did you mean '${(0,Vhe.findSuggestion)(s,n)}'?`))}validateBooleanOption(t,r,n){return r===void 0?n:(this.invariant(typeof r=="boolean",`'${t}' option must be a boolean.`),r)}validateStringOption(t,r,n){return r===void 0?n:(this.invariant(typeof r=="string",`'${t}' option must be a string.`),r)}invariant(t,r){if(!t)throw new Error(this.formatMessage(r))}formatMessage(t){return`${this.descriptor}: ${t}`}};$c.OptionValidator=Cg});var Kc=b(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Object.defineProperty(Wc,"OptionValidator",{enumerable:!0,get:function(){return $he.OptionValidator}});Object.defineProperty(Wc,"findSuggestion",{enumerable:!0,get:function(){return Whe.findSuggestion}});var $he=Mw(),Whe=Ag()});var Rw=b((lDe,Khe)=>{Khe.exports={"es6.module":{chrome:"61",and_chr:"61",edge:"16",firefox:"60",and_ff:"60",node:"13.2.0",opera:"48",op_mob:"45",safari:"10.1",ios:"10.3",samsung:"8.2",android:"61",electron:"2.0",ios_saf:"10.3"}}});var Uw=b((uDe,qw)=>{qw.exports=Rw()});var $w=b((cDe,Vw)=>{"use strict";Vw.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var Kw=b((fDe,Ww)=>{"use strict";Ww.exports=lt;lt.Node=Xs;lt.create=lt;function lt(e){var t=this;if(t instanceof lt||(t=new lt),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(s){t.push(s)});else if(arguments.length>0)for(var r=0,n=arguments.length;r1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=0;n!==null;s++)r=e(r,n.value,s),n=n.next;return r};lt.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var s=this.length-1;n!==null;s--)r=e(r,n.value,s),n=n.prev;return r};lt.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};lt.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};lt.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new lt;if(tthis.length&&(t=this.length);for(var n=0,s=this.head;s!==null&&nthis.length&&(t=this.length);for(var n=this.length,s=this.tail;s!==null&&n>t;n--)s=s.prev;for(;s!==null&&n>e;n--,s=s.prev)r.push(s.value);return r};lt.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,n=this.head;n!==null&&r{"use strict";var Xhe=Kw(),Js=Symbol("max"),Bn=Symbol("length"),Yi=Symbol("lengthCalculator"),No=Symbol("allowStale"),zs=Symbol("maxAge"),kn=Symbol("dispose"),Gw=Symbol("noDisposeOnSet"),Ut=Symbol("lruList"),zr=Symbol("cache"),Yw=Symbol("updateAgeOnGet"),wg=()=>1,Ig=class{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");let r=this[Js]=t.max||1/0,n=t.length||wg;if(this[Yi]=typeof n!="function"?wg:n,this[No]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[zs]=t.maxAge||0,this[kn]=t.dispose,this[Gw]=t.noDisposeOnSet||!1,this[Yw]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Js]=t||1/0,_o(this)}get max(){return this[Js]}set allowStale(t){this[No]=!!t}get allowStale(){return this[No]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[zs]=t,_o(this)}get maxAge(){return this[zs]}set lengthCalculator(t){typeof t!="function"&&(t=wg),t!==this[Yi]&&(this[Yi]=t,this[Bn]=0,this[Ut].forEach(r=>{r.length=this[Yi](r.value,r.key),this[Bn]+=r.length})),_o(this)}get lengthCalculator(){return this[Yi]}get length(){return this[Bn]}get itemCount(){return this[Ut].length}rforEach(t,r){r=r||this;for(let n=this[Ut].tail;n!==null;){let s=n.prev;Hw(this,t,n,r),n=s}}forEach(t,r){r=r||this;for(let n=this[Ut].head;n!==null;){let s=n.next;Hw(this,t,n,r),n=s}}keys(){return this[Ut].toArray().map(t=>t.key)}values(){return this[Ut].toArray().map(t=>t.value)}reset(){this[kn]&&this[Ut]&&this[Ut].length&&this[Ut].forEach(t=>this[kn](t.key,t.value)),this[zr]=new Map,this[Ut]=new Xhe,this[Bn]=0}dump(){return this[Ut].map(t=>Gc(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[Ut]}set(t,r,n){if(n=n||this[zs],n&&typeof n!="number")throw new TypeError("maxAge must be a number");let s=n?Date.now():0,i=this[Yi](r,t);if(this[zr].has(t)){if(i>this[Js])return Xi(this,this[zr].get(t)),!1;let l=this[zr].get(t).value;return this[kn]&&(this[Gw]||this[kn](t,l.value)),l.now=s,l.maxAge=n,l.value=r,this[Bn]+=i-l.length,l.length=i,this.get(t),_o(this),!0}let a=new Og(t,r,i,s,n);return a.length>this[Js]?(this[kn]&&this[kn](t,r),!1):(this[Bn]+=a.length,this[Ut].unshift(a),this[zr].set(t,this[Ut].head),_o(this),!0)}has(t){if(!this[zr].has(t))return!1;let r=this[zr].get(t).value;return!Gc(this,r)}get(t){return Dg(this,t,!0)}peek(t){return Dg(this,t,!1)}pop(){let t=this[Ut].tail;return t?(Xi(this,t),t.value):null}del(t){Xi(this,this[zr].get(t))}load(t){this.reset();let r=Date.now();for(let n=t.length-1;n>=0;n--){let s=t[n],i=s.e||0;if(i===0)this.set(s.k,s.v);else{let a=i-r;a>0&&this.set(s.k,s.v,a)}}}prune(){this[zr].forEach((t,r)=>Dg(this,r,!1))}},Dg=(e,t,r)=>{let n=e[zr].get(t);if(n){let s=n.value;if(Gc(e,s)){if(Xi(e,n),!e[No])return}else r&&(e[Yw]&&(n.value.now=Date.now()),e[Ut].unshiftNode(n));return s.value}},Gc=(e,t)=>{if(!t||!t.maxAge&&!e[zs])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[zs]&&r>e[zs]},_o=e=>{if(e[Bn]>e[Js])for(let t=e[Ut].tail;e[Bn]>e[Js]&&t!==null;){let r=t.prev;Xi(e,t),t=r}},Xi=(e,t)=>{if(t){let r=t.value;e[kn]&&e[kn](r.key,r.value),e[Bn]-=r.length,e[zr].delete(r.key),e[Ut].removeNode(t)}},Og=class{constructor(t,r,n,s,i){this.key=t,this.value=r,this.length=n,this.now=s,this.maxAge=i||0}},Hw=(e,t,r,n)=>{let s=r.value;Gc(e,s)&&(Xi(e,r),e[No]||(s=void 0)),s&&t.call(n,s.value,s.key,e)};Xw.exports=Ig});var Hc=b(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.unreleasedLabels=Ji.browserNameMap=void 0;var dDe=Ji.unreleasedLabels={safari:"tp"},hDe=Ji.browserNameMap={and_chr:"chrome",and_ff:"firefox",android:"android",chrome:"chrome",edge:"edge",firefox:"firefox",ie:"ie",ie_mob:"ie",ios_saf:"ios",node:"node",deno:"deno",op_mob:"opera_mobile",opera:"opera",safari:"safari",samsung:"samsung"}});var Yc=b(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.getHighestUnreleased=tme;ys.getLowestImplementedVersion=rme;ys.getLowestUnreleased=eD;ys.isUnreleasedVersion=eme;ys.semverMin=Zw;ys.semverify=Zhe;var zw=wn(),Jhe=Kc(),Qw=Hc(),zhe=/^(\d+|\d+.\d+)$/,Qhe=new Jhe.OptionValidator("@babel/helper-compilation-targets");function Zw(e,t){return e&&zw.lt(e,t)?e:t}function Zhe(e){if(typeof e=="string"&&zw.valid(e))return e;Qhe.invariant(typeof e=="number"||typeof e=="string"&&zhe.test(e),`'${e}' is not a valid version`),e=e.toString();let t=0,r=0;for(;(t=e.indexOf(".",t+1))>0;)r++;return e+".0".repeat(2-r)}function eme(e,t){let r=Qw.unreleasedLabels[t];return!!r&&r===e.toString().toLowerCase()}function eD(e,t,r){let n=Qw.unreleasedLabels[r];return e===n?t:t===n?e:Zw(e,t)}function tme(e,t,r){return eD(e,t,r)===e?t:e}function rme(e,t){let r=e[t];return!r&&t==="android"?e.chrome:r}});var tD=b(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.TargetNames=void 0;var gDe=Xc.TargetNames={node:"node",deno:"deno",chrome:"chrome",opera:"opera",edge:"edge",firefox:"firefox",safari:"safari",ie:"ie",ios:"ios",android:"android",electron:"electron",samsung:"samsung",rhino:"rhino",opera_mobile:"opera_mobile"}});var _g=b(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.prettifyTargets=ime;Jc.prettifyVersion=rD;var nme=wn(),sme=Hc();function rD(e){if(typeof e!="string")return e;let{major:t,minor:r,patch:n}=nme.parse(e),s=[t];return(r||n)&&s.push(r),n&&s.push(n),s.join(".")}function ime(e){return Object.keys(e).reduce((t,r)=>{let n=e[r],s=sme.unreleasedLabels[r];return typeof n=="string"&&s!==n&&(n=rD(n)),t[r]=n,t},{})}});var sD=b(Ng=>{"use strict";Object.defineProperty(Ng,"__esModule",{value:!0});Ng.getInclusionReasons=ome;var ame=wn(),nD=_g(),zc=Yc();function ome(e,t,r){let n=r[e]||{};return Object.keys(t).reduce((s,i)=>{let a=(0,zc.getLowestImplementedVersion)(n,i),o=t[i];if(!a)s[i]=(0,nD.prettifyVersion)(o);else{let l=(0,zc.isUnreleasedVersion)(a,i);!(0,zc.isUnreleasedVersion)(o,i)&&(l||ame.lt(o.toString(),(0,zc.semverify)(a)))&&(s[i]=(0,nD.prettifyVersion)(o))}return s},{})}});var iD=b((TDe,lme)=>{lme.exports={"transform-unicode-sets-regex":{chrome:"112",opera:"98",edge:"112",firefox:"116",safari:"tp",node:"20",deno:"1.32",opera_mobile:"75",electron:"24.0"},"bugfix/transform-v8-static-class-fields-redefine-readonly":{chrome:"98",opera:"84",edge:"98",firefox:"95",safari:"15",node:"12",deno:"1.18",ios:"15",samsung:"11",opera_mobile:"52",electron:"17.0"},"transform-class-static-block":{chrome:"94",opera:"80",edge:"94",firefox:"93",safari:"16.4",node:"16.11",deno:"1.14",ios:"16.4",samsung:"17",opera_mobile:"66",electron:"15.0"},"proposal-class-static-block":{chrome:"94",opera:"80",edge:"94",firefox:"93",safari:"16.4",node:"16.11",deno:"1.14",ios:"16.4",samsung:"17",opera_mobile:"66",electron:"15.0"},"transform-private-property-in-object":{chrome:"91",opera:"77",edge:"91",firefox:"90",safari:"15",node:"16.9",deno:"1.9",ios:"15",samsung:"16",opera_mobile:"64",electron:"13.0"},"proposal-private-property-in-object":{chrome:"91",opera:"77",edge:"91",firefox:"90",safari:"15",node:"16.9",deno:"1.9",ios:"15",samsung:"16",opera_mobile:"64",electron:"13.0"},"transform-class-properties":{chrome:"74",opera:"62",edge:"79",firefox:"90",safari:"14.1",node:"12",deno:"1",ios:"14.5",samsung:"11",opera_mobile:"53",electron:"6.0"},"proposal-class-properties":{chrome:"74",opera:"62",edge:"79",firefox:"90",safari:"14.1",node:"12",deno:"1",ios:"14.5",samsung:"11",opera_mobile:"53",electron:"6.0"},"transform-private-methods":{chrome:"84",opera:"70",edge:"84",firefox:"90",safari:"15",node:"14.6",deno:"1",ios:"15",samsung:"14",opera_mobile:"60",electron:"10.0"},"proposal-private-methods":{chrome:"84",opera:"70",edge:"84",firefox:"90",safari:"15",node:"14.6",deno:"1",ios:"15",samsung:"14",opera_mobile:"60",electron:"10.0"},"transform-numeric-separator":{chrome:"75",opera:"62",edge:"79",firefox:"70",safari:"13",node:"12.5",deno:"1",ios:"13",samsung:"11",rhino:"1.7.14",opera_mobile:"54",electron:"6.0"},"proposal-numeric-separator":{chrome:"75",opera:"62",edge:"79",firefox:"70",safari:"13",node:"12.5",deno:"1",ios:"13",samsung:"11",rhino:"1.7.14",opera_mobile:"54",electron:"6.0"},"transform-logical-assignment-operators":{chrome:"85",opera:"71",edge:"85",firefox:"79",safari:"14",node:"15",deno:"1.2",ios:"14",samsung:"14",opera_mobile:"60",electron:"10.0"},"proposal-logical-assignment-operators":{chrome:"85",opera:"71",edge:"85",firefox:"79",safari:"14",node:"15",deno:"1.2",ios:"14",samsung:"14",opera_mobile:"60",electron:"10.0"},"transform-nullish-coalescing-operator":{chrome:"80",opera:"67",edge:"80",firefox:"72",safari:"13.1",node:"14",deno:"1",ios:"13.4",samsung:"13",opera_mobile:"57",electron:"8.0"},"proposal-nullish-coalescing-operator":{chrome:"80",opera:"67",edge:"80",firefox:"72",safari:"13.1",node:"14",deno:"1",ios:"13.4",samsung:"13",opera_mobile:"57",electron:"8.0"},"transform-optional-chaining":{chrome:"91",opera:"77",edge:"91",firefox:"74",safari:"13.1",node:"16.9",deno:"1.9",ios:"13.4",samsung:"16",opera_mobile:"64",electron:"13.0"},"proposal-optional-chaining":{chrome:"91",opera:"77",edge:"91",firefox:"74",safari:"13.1",node:"16.9",deno:"1.9",ios:"13.4",samsung:"16",opera_mobile:"64",electron:"13.0"},"transform-json-strings":{chrome:"66",opera:"53",edge:"79",firefox:"62",safari:"12",node:"10",deno:"1",ios:"12",samsung:"9",rhino:"1.7.14",opera_mobile:"47",electron:"3.0"},"proposal-json-strings":{chrome:"66",opera:"53",edge:"79",firefox:"62",safari:"12",node:"10",deno:"1",ios:"12",samsung:"9",rhino:"1.7.14",opera_mobile:"47",electron:"3.0"},"transform-optional-catch-binding":{chrome:"66",opera:"53",edge:"79",firefox:"58",safari:"11.1",node:"10",deno:"1",ios:"11.3",samsung:"9",opera_mobile:"47",electron:"3.0"},"proposal-optional-catch-binding":{chrome:"66",opera:"53",edge:"79",firefox:"58",safari:"11.1",node:"10",deno:"1",ios:"11.3",samsung:"9",opera_mobile:"47",electron:"3.0"},"transform-parameters":{chrome:"49",opera:"36",edge:"18",firefox:"53",safari:"16.3",node:"6",deno:"1",ios:"16.3",samsung:"5",opera_mobile:"36",electron:"0.37"},"transform-async-generator-functions":{chrome:"63",opera:"50",edge:"79",firefox:"57",safari:"12",node:"10",deno:"1",ios:"12",samsung:"8",opera_mobile:"46",electron:"3.0"},"proposal-async-generator-functions":{chrome:"63",opera:"50",edge:"79",firefox:"57",safari:"12",node:"10",deno:"1",ios:"12",samsung:"8",opera_mobile:"46",electron:"3.0"},"transform-object-rest-spread":{chrome:"60",opera:"47",edge:"79",firefox:"55",safari:"11.1",node:"8.3",deno:"1",ios:"11.3",samsung:"8",opera_mobile:"44",electron:"2.0"},"proposal-object-rest-spread":{chrome:"60",opera:"47",edge:"79",firefox:"55",safari:"11.1",node:"8.3",deno:"1",ios:"11.3",samsung:"8",opera_mobile:"44",electron:"2.0"},"transform-dotall-regex":{chrome:"62",opera:"49",edge:"79",firefox:"78",safari:"11.1",node:"8.10",deno:"1",ios:"11.3",samsung:"8",opera_mobile:"46",electron:"3.0"},"transform-unicode-property-regex":{chrome:"64",opera:"51",edge:"79",firefox:"78",safari:"11.1",node:"10",deno:"1",ios:"11.3",samsung:"9",opera_mobile:"47",electron:"3.0"},"proposal-unicode-property-regex":{chrome:"64",opera:"51",edge:"79",firefox:"78",safari:"11.1",node:"10",deno:"1",ios:"11.3",samsung:"9",opera_mobile:"47",electron:"3.0"},"transform-named-capturing-groups-regex":{chrome:"64",opera:"51",edge:"79",firefox:"78",safari:"11.1",node:"10",deno:"1",ios:"11.3",samsung:"9",opera_mobile:"47",electron:"3.0"},"transform-async-to-generator":{chrome:"55",opera:"42",edge:"15",firefox:"52",safari:"11",node:"7.6",deno:"1",ios:"11",samsung:"6",opera_mobile:"42",electron:"1.6"},"transform-exponentiation-operator":{chrome:"52",opera:"39",edge:"14",firefox:"52",safari:"10.1",node:"7",deno:"1",ios:"10.3",samsung:"6",rhino:"1.7.14",opera_mobile:"41",electron:"1.3"},"transform-template-literals":{chrome:"41",opera:"28",edge:"13",firefox:"34",safari:"13",node:"4",deno:"1",ios:"13",samsung:"3.4",opera_mobile:"28",electron:"0.21"},"transform-literals":{chrome:"44",opera:"31",edge:"12",firefox:"53",safari:"9",node:"4",deno:"1",ios:"9",samsung:"4",opera_mobile:"32",electron:"0.30"},"transform-function-name":{chrome:"51",opera:"38",edge:"79",firefox:"53",safari:"10",node:"6.5",deno:"1",ios:"10",samsung:"5",opera_mobile:"41",electron:"1.2"},"transform-arrow-functions":{chrome:"47",opera:"34",edge:"13",firefox:"43",safari:"10",node:"6",deno:"1",ios:"10",samsung:"5",rhino:"1.7.13",opera_mobile:"34",electron:"0.36"},"transform-block-scoped-functions":{chrome:"41",opera:"28",edge:"12",firefox:"46",safari:"10",node:"4",deno:"1",ie:"11",ios:"10",samsung:"3.4",opera_mobile:"28",electron:"0.21"},"transform-classes":{chrome:"46",opera:"33",edge:"13",firefox:"45",safari:"10",node:"5",deno:"1",ios:"10",samsung:"5",opera_mobile:"33",electron:"0.36"},"transform-object-super":{chrome:"46",opera:"33",edge:"13",firefox:"45",safari:"10",node:"5",deno:"1",ios:"10",samsung:"5",opera_mobile:"33",electron:"0.36"},"transform-shorthand-properties":{chrome:"43",opera:"30",edge:"12",firefox:"33",safari:"9",node:"4",deno:"1",ios:"9",samsung:"4",rhino:"1.7.14",opera_mobile:"30",electron:"0.27"},"transform-duplicate-keys":{chrome:"42",opera:"29",edge:"12",firefox:"34",safari:"9",node:"4",deno:"1",ios:"9",samsung:"3.4",opera_mobile:"29",electron:"0.25"},"transform-computed-properties":{chrome:"44",opera:"31",edge:"12",firefox:"34",safari:"7.1",node:"4",deno:"1",ios:"8",samsung:"4",opera_mobile:"32",electron:"0.30"},"transform-for-of":{chrome:"51",opera:"38",edge:"15",firefox:"53",safari:"10",node:"6.5",deno:"1",ios:"10",samsung:"5",opera_mobile:"41",electron:"1.2"},"transform-sticky-regex":{chrome:"49",opera:"36",edge:"13",firefox:"3",safari:"10",node:"6",deno:"1",ios:"10",samsung:"5",opera_mobile:"36",electron:"0.37"},"transform-unicode-escapes":{chrome:"44",opera:"31",edge:"12",firefox:"53",safari:"9",node:"4",deno:"1",ios:"9",samsung:"4",opera_mobile:"32",electron:"0.30"},"transform-unicode-regex":{chrome:"50",opera:"37",edge:"13",firefox:"46",safari:"12",node:"6",deno:"1",ios:"12",samsung:"5",opera_mobile:"37",electron:"1.1"},"transform-spread":{chrome:"46",opera:"33",edge:"13",firefox:"45",safari:"10",node:"5",deno:"1",ios:"10",samsung:"5",opera_mobile:"33",electron:"0.36"},"transform-destructuring":{chrome:"51",opera:"38",edge:"15",firefox:"53",safari:"10",node:"6.5",deno:"1",ios:"10",samsung:"5",opera_mobile:"41",electron:"1.2"},"transform-block-scoping":{chrome:"50",opera:"37",edge:"14",firefox:"53",safari:"11",node:"6",deno:"1",ios:"11",samsung:"5",opera_mobile:"37",electron:"1.1"},"transform-typeof-symbol":{chrome:"38",opera:"25",edge:"12",firefox:"36",safari:"9",node:"0.12",deno:"1",ios:"9",samsung:"3",rhino:"1.7.13",opera_mobile:"25",electron:"0.20"},"transform-new-target":{chrome:"46",opera:"33",edge:"14",firefox:"41",safari:"10",node:"5",deno:"1",ios:"10",samsung:"5",opera_mobile:"33",electron:"0.36"},"transform-regenerator":{chrome:"50",opera:"37",edge:"13",firefox:"53",safari:"10",node:"6",deno:"1",ios:"10",samsung:"5",opera_mobile:"37",electron:"1.1"},"transform-member-expression-literals":{chrome:"7",opera:"12",edge:"12",firefox:"2",safari:"5.1",node:"0.4",deno:"1",ie:"9",android:"4",ios:"6",phantom:"1.9",samsung:"1",rhino:"1.7.13",opera_mobile:"12",electron:"0.20"},"transform-property-literals":{chrome:"7",opera:"12",edge:"12",firefox:"2",safari:"5.1",node:"0.4",deno:"1",ie:"9",android:"4",ios:"6",phantom:"1.9",samsung:"1",rhino:"1.7.13",opera_mobile:"12",electron:"0.20"},"transform-reserved-words":{chrome:"13",opera:"10.50",edge:"12",firefox:"2",safari:"3.1",node:"0.6",deno:"1",ie:"9",android:"4.4",ios:"6",phantom:"1.9",samsung:"1",rhino:"1.7.13",opera_mobile:"10.1",electron:"0.20"},"transform-export-namespace-from":{chrome:"72",deno:"1.0",edge:"79",firefox:"80",node:"13.2",opera:"60",opera_mobile:"51",safari:"14.1",ios:"14.5",samsung:"11.0",android:"72",electron:"5.0"},"proposal-export-namespace-from":{chrome:"72",deno:"1.0",edge:"79",firefox:"80",node:"13.2",opera:"60",opera_mobile:"51",safari:"14.1",ios:"14.5",samsung:"11.0",android:"72",electron:"5.0"}}});var oD=b((SDe,aD)=>{aD.exports=iD()});var fD=b(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.default=cme;ko.isRequired=cD;ko.targetsSupported=uD;var lD=wn(),ume=oD(),Qc=Yc();function uD(e,t){let r=Object.keys(e);return r.length===0?!1:r.filter(s=>{let i=(0,Qc.getLowestImplementedVersion)(t,s);if(!i)return!0;let a=e[s];if((0,Qc.isUnreleasedVersion)(a,s))return!1;if((0,Qc.isUnreleasedVersion)(i,s))return!0;if(!lD.valid(a.toString()))throw new Error(`Invalid version passed for target "${s}": "${a}". Versions must be in semver format (major.minor.patch)`);return lD.gt((0,Qc.semverify)(i),a.toString())}).length===0}function cD(e,t,{compatData:r=ume,includes:n,excludes:s}={}){return s!=null&&s.has(e)?!1:n!=null&&n.has(e)?!0:!uD(t,r[e])}function cme(e,t,r,n,s,i,a){let o=new Set,l={compatData:e,includes:t,excludes:r};for(let u in e)if(cD(u,n,l))o.add(u);else if(a){let c=a.get(u);c&&o.add(c)}return s==null||s.forEach(u=>!r.has(u)&&o.add(u)),i==null||i.forEach(u=>!t.has(u)&&o.delete(u)),o}});var jg=b(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});Object.defineProperty(fn,"TargetNames",{enumerable:!0,get:function(){return Bg.TargetNames}});fn.default=Pme;Object.defineProperty(fn,"filterItems",{enumerable:!0,get:function(){return yD.default}});Object.defineProperty(fn,"getInclusionReasons",{enumerable:!0,get:function(){return hme.getInclusionReasons}});fn.isBrowsersQueryValid=gD;Object.defineProperty(fn,"isRequired",{enumerable:!0,get:function(){return yD.isRequired}});Object.defineProperty(fn,"prettifyTargets",{enumerable:!0,get:function(){return dme.prettifyTargets}});Object.defineProperty(fn,"unreleasedLabels",{enumerable:!0,get:function(){return mD.unreleasedLabels}});var dD=jw(),hD=Kc(),fme=Uw(),pme=Jw(),Qr=Yc(),mD=Hc(),Bg=tD(),dme=_g(),hme=sD(),yD=fD(),kg=fme["es6.module"],Fg=new hD.OptionValidator("@babel/helper-compilation-targets");function mme(e){let t=Object.keys(Bg.TargetNames);for(let r of Object.keys(e))if(!(r in Bg.TargetNames))throw new Error(Fg.formatMessage(`'${r}' is not a valid target - Did you mean '${(0,hD.findSuggestion)(r,t)}'?`));return e}function gD(e){return typeof e=="string"||Array.isArray(e)&&e.every(t=>typeof t=="string")}function yme(e){return Fg.invariant(e===void 0||gD(e),`'${String(e)}' is not a valid browserslist query`),e}function gme(e){return e.reduce((t,r)=>{let[n,s]=r.split(" "),i=mD.browserNameMap[n];if(!i)return t;try{let a=s.split("-")[0].toLowerCase(),o=(0,Qr.isUnreleasedVersion)(a,i);if(!t[i])return t[i]=o?a:(0,Qr.semverify)(a),t;let l=t[i],u=(0,Qr.isUnreleasedVersion)(l,i);if(u&&o)t[i]=(0,Qr.getLowestUnreleased)(l,a,i);else if(u)t[i]=(0,Qr.semverify)(a);else if(!u&&!o){let c=(0,Qr.semverify)(a);t[i]=(0,Qr.semverMin)(l,c)}}catch{}return t},{})}function bme(e){e.length&&(console.warn(`Warning, the following targets are using a decimal version: `),e.forEach(({target:t,value:r})=>console.warn(` ${t}: ${r}`)),console.warn(` We recommend using a string for minor/patch versions to avoid numbers like 6.10 getting parsed as 6.1, which can lead to unexpected behavior. `))}function bD(e,t){try{return(0,Qr.semverify)(t)}catch{throw new Error(Fg.formatMessage(`'${t}' is not a valid value for 'targets.${e}'.`))}}function Eme(e){return["node",e===!0||e==="current"?process.versions.node:bD("node",e)]}function vme(e,t){let r=(0,Qr.isUnreleasedVersion)(t,e)?t.toLowerCase():bD(e,t);return[e,r]}function Tme(e){let t=Object.assign({},e);return delete t.esmodules,delete t.browsers,t}function Sme(e,t){let r=dD(e,{mobileToDesktop:!0,env:t});return gme(r)}var pD=new pme({max:64});function xme(e,t){let r=typeof e=="string"?e:e.join()+t,n=pD.get(r);return n||(n=Sme(e,t),pD.set(r,n)),Object.assign({},n)}function Pme(e={},t={}){var r,n;let{browsers:s,esmodules:i}=e,{configPath:a="."}=t;yme(s);let o=Tme(e),l=mme(o),c=!!s||Object.keys(l).length>0,f=!t.ignoreBrowserslistConfig&&!c;if(!s&&f&&(s=dD.loadConfig({config:t.configFile,path:a,env:t.browserslistEnv}),s==null&&(s=[])),i&&(i!=="intersect"||!((r=s)!=null&&r.length))&&(s=Object.keys(kg).map(y=>`${y} >= ${kg[y]}`).join(", "),i=!1),(n=s)!=null&&n.length){let y=xme(s,t.browserslistEnv);if(i==="intersect")for(let p of Object.keys(y))if(p!=="deno"&&p!=="ie"){let E=kg[p==="opera_mobile"?"op_mob":p];if(E){let T=y[p];y[p]=(0,Qr.getHighestUnreleased)(T,(0,Qr.semverify)(E),p)}else delete y[p]}else delete y[p];l=Object.assign(y,l)}let d={},m=[];for(let y of Object.keys(l).sort()){let p=l[y];typeof p=="number"&&p%1!==0&&m.push({target:y,value:p});let[E,T]=y==="node"?Eme(p):vme(y,p);T&&(d[E]=T)}return bme(m),d}});var Lg=b(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.resolveBrowserslistConfigFile=Ame;Zc.resolveTargets=Cme;function ED(){let e=require("path");return ED=function(){return e},e}function vD(){let e=jg();return vD=function(){return e},e}function Ame(e,t){return ED().resolve(t,e)}function Cme(e,t){let r=e.targets,n;typeof r=="string"||Array.isArray(r)?n={browsers:r}:r&&("esmodules"in r?n=Object.assign({},r,{esmodules:"intersect"}):n=r);let{browserslistConfigFile:s}=e,i,a=!1;return typeof s=="string"?i=s:a=s===!1,(0,vD().default)(n,{ignoreBrowserslistConfig:a,configFile:i,configPath:t,browserslistEnv:e.browserslistEnv})}});var Mg=b(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.createCachedDescriptors=Ome;Fo.createDescriptor=OD;Fo.createUncachedDescriptors=_me;function PD(){let e=vr();return PD=function(){return e},e}var TD=B2(),SD=Lo(),wme=jo(),Bo=Ws(),Dme=Lg();function Ime(e,t){var r,n,s,i;return e.name===t.name&&e.value===t.value&&e.options===t.options&&e.dirname===t.dirname&&e.alias===t.alias&&e.ownPass===t.ownPass&&((r=e.file)==null?void 0:r.request)===((n=t.file)==null?void 0:n.request)&&((s=e.file)==null?void 0:s.resolved)===((i=t.file)==null?void 0:i.resolved)}function*xD(e){return e}function AD(e,t){return typeof e.browserslistConfigFile=="string"&&(e.browserslistConfigFile=(0,Dme.resolveBrowserslistConfigFile)(e.browserslistConfigFile,t)),e}function Ome(e,t,r){let{plugins:n,presets:s,passPerPreset:i}=t;return{options:AD(t,e),plugins:n?()=>Fme(n,e)(r):()=>xD([]),presets:s?()=>kme(s,e)(r)(!!i):()=>xD([])}}function _me(e,t,r){return{options:AD(t,e),plugins:(0,TD.once)(()=>DD(t.plugins||[],e,r)),presets:(0,TD.once)(()=>wD(t.presets||[],e,r,!!t.passPerPreset))}}var Nme=new WeakMap,kme=(0,Bo.makeWeakCacheSync)((e,t)=>{let r=t.using(n=>n);return(0,Bo.makeStrongCacheSync)(n=>(0,Bo.makeStrongCache)(function*(s){return(yield*wD(e,r,n,s)).map(a=>CD(Nme,a))}))}),Bme=new WeakMap,Fme=(0,Bo.makeWeakCacheSync)((e,t)=>{let r=t.using(n=>n);return(0,Bo.makeStrongCache)(function*(n){return(yield*DD(e,r,n)).map(i=>CD(Bme,i))})}),jme={};function CD(e,t){let{value:r,options:n=jme}=t;if(n===!1)return t;let s=e.get(r);s||(s=new WeakMap,e.set(r,s));let i=s.get(n);if(i||(i=[],s.set(n,i)),i.indexOf(t)===-1){let a=i.filter(o=>Ime(o,t));if(a.length>0)return a[0];i.push(t)}return t}function*wD(e,t,r,n){return yield*ID("preset",e,t,r,n)}function*DD(e,t,r){return yield*ID("plugin",e,t,r)}function*ID(e,t,r,n,s){let i=yield*PD().all(t.map((a,o)=>OD(a,r,{type:e,alias:`${n}$${o}`,ownPass:!!s})));return Lme(i),i}function*OD(e,t,{type:r,alias:n,ownPass:s}){let i=(0,wme.getItemDescriptor)(e);if(i)return i;let a,o,l=e;Array.isArray(l)&&(l.length===3?[l,o,a]=l:[l,o]=l);let u,c=null;if(typeof l=="string"){if(typeof r!="string")throw new Error("To resolve a string-based item, the type of item must be given");let f=r==="plugin"?SD.loadPlugin:SD.loadPreset,d=l;({filepath:c,value:l}=yield*f(l,t)),u={request:d,resolved:c}}if(!l)throw new Error(`Unexpected falsy value: ${String(l)}`);if(typeof l=="object"&&l.__esModule)if(l.default)l=l.default;else throw new Error("Must export a default export when using ES6 modules.");if(typeof l!="object"&&typeof l!="function")throw new Error(`Unsupported format: ${typeof l}. Expected an object or a function.`);if(c!==null&&typeof l=="object"&&l)throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${c}`);return{name:a,alias:c||n,value:l,options:o,dirname:t,ownPass:s,file:u}}function Lme(e){let t=new Map;for(let r of e){if(typeof r.value!="function")continue;let n=t.get(r.value);if(n||(n=new Set,t.set(r.value,n)),n.has(r.name)){let s=e.filter(i=>i.value===r.value);throw new Error(["Duplicate plugin/preset detected.","If you'd like to use two separate instances of a plugin,","they need separate names, e.g.",""," plugins: ["," ['some-plugin', {}],"," ['some-plugin', {}, 'some unique name'],"," ]","","Duplicates detected are:",`${JSON.stringify(s,null,2)}`].join(` `))}n.add(r.name)}}});var jo=b(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.createConfigItem=Rme;Mo.createItemFromDescriptor=ND;Mo.getItemDescriptor=qme;function _D(){let e=require("path");return _D=function(){return e},e}var Mme=Mg();function ND(e){return new ef(e)}function*Rme(e,{dirname:t=".",type:r}={}){let n=yield*(0,Mme.createDescriptor)(e,_D().resolve(t),{type:r,alias:"programmatic item"});return ND(n)}var Rg=Symbol.for("@babel/core@7 - ConfigItem");function qme(e){if(e!=null&&e[Rg])return e._descriptor}var ef=class{constructor(t){this._descriptor=void 0,this[Rg]=!0,this.value=void 0,this.options=void 0,this.dirname=void 0,this.name=void 0,this.file=void 0,this._descriptor=t,Object.defineProperty(this,"_descriptor",{enumerable:!1}),Object.defineProperty(this,Rg,{enumerable:!1}),this.value=this._descriptor.value,this.options=this._descriptor.options,this.dirname=this._descriptor.dirname,this.name=this._descriptor.name,this.file=this._descriptor.file?{request:this._descriptor.file.request,resolved:this._descriptor.file.resolved}:void 0,Object.freeze(this)}};Object.freeze(ef.prototype)});var kD=b(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.default=void 0;var DDe=tf.default={auxiliaryComment:{message:"Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"},blacklist:{message:"Put the specific transforms you want in the `plugins` option"},breakConfig:{message:"This is not a necessary option in Babel 6"},experimental:{message:"Put the specific transforms you want in the `plugins` option"},externalHelpers:{message:"Use the `external-helpers` plugin instead. Check out http://babeljs.io/docs/plugins/external-helpers/"},extra:{message:""},jsxPragma:{message:"use the `pragma` option in the `react-jsx` plugin. Check out http://babeljs.io/docs/plugins/transform-react-jsx/"},loose:{message:"Specify the `loose` option for the relevant plugin you are using or use a preset that sets the option."},metadataUsedHelpers:{message:"Not required anymore as this is enabled by default"},modules:{message:"Use the corresponding module transform plugin in the `plugins` option. Check out http://babeljs.io/docs/plugins/#modules"},nonStandard:{message:"Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. Also check out the react preset http://babeljs.io/docs/plugins/preset-react/"},optional:{message:"Put the specific transforms you want in the `plugins` option"},sourceMapName:{message:"The `sourceMapName` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."},stage:{message:"Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"},whitelist:{message:"Put the specific transforms you want in the `plugins` option"},resolveModuleSource:{version:6,message:"Use `babel-plugin-module-resolver@3`'s 'resolvePath' options"},metadata:{version:6,message:"Generated plugin metadata is always included in the output result"},sourceMapTarget:{version:6,message:"The `sourceMapTarget` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file` themselves."}}});var Vg=b(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.access=Tr;It.assertArray=Ug;It.assertAssumptions=iye;It.assertBabelrcSearch=eye;It.assertBoolean=qg;It.assertCallerMetadata=Gme;It.assertCompact=Wme;It.assertConfigApplicableTest=Qme;It.assertConfigFileSearch=Zme;It.assertFunction=Xme;It.assertIgnoreList=Jme;It.assertInputSourceMap=Hme;It.assertObject=jD;It.assertPluginList=tye;It.assertRootMode=Vme;It.assertSourceMaps=$me;It.assertSourceType=Kme;It.assertString=Yme;It.assertTargets=nye;It.msg=Je;function Ro(){let e=jg();return Ro=function(){return e},e}var Ume=qo();function Je(e){switch(e.type){case"root":return"";case"env":return`${Je(e.parent)}.env["${e.name}"]`;case"overrides":return`${Je(e.parent)}.overrides[${e.index}]`;case"option":return`${Je(e.parent)}.${e.name}`;case"access":return`${Je(e.parent)}[${JSON.stringify(e.name)}]`;default:throw new Error(`Assertion failure: Unknown type ${e.type}`)}}function Tr(e,t){return{type:"access",name:t,parent:e}}function Vme(e,t){if(t!==void 0&&t!=="root"&&t!=="upward"&&t!=="upward-optional")throw new Error(`${Je(e)} must be a "root", "upward", "upward-optional" or undefined`);return t}function $me(e,t){if(t!==void 0&&typeof t!="boolean"&&t!=="inline"&&t!=="both")throw new Error(`${Je(e)} must be a boolean, "inline", "both", or undefined`);return t}function Wme(e,t){if(t!==void 0&&typeof t!="boolean"&&t!=="auto")throw new Error(`${Je(e)} must be a boolean, "auto", or undefined`);return t}function Kme(e,t){if(t!==void 0&&t!=="module"&&t!=="script"&&t!=="unambiguous")throw new Error(`${Je(e)} must be "module", "script", "unambiguous", or undefined`);return t}function Gme(e,t){let r=jD(e,t);if(r){if(typeof r.name!="string")throw new Error(`${Je(e)} set but does not contain "name" property string`);for(let n of Object.keys(r)){let s=Tr(e,n),i=r[n];if(i!=null&&typeof i!="boolean"&&typeof i!="string"&&typeof i!="number")throw new Error(`${Je(s)} must be null, undefined, a boolean, a string, or a number.`)}}return t}function Hme(e,t){if(t!==void 0&&typeof t!="boolean"&&(typeof t!="object"||!t))throw new Error(`${Je(e)} must be a boolean, object, or undefined`);return t}function Yme(e,t){if(t!==void 0&&typeof t!="string")throw new Error(`${Je(e)} must be a string, or undefined`);return t}function Xme(e,t){if(t!==void 0&&typeof t!="function")throw new Error(`${Je(e)} must be a function, or undefined`);return t}function qg(e,t){if(t!==void 0&&typeof t!="boolean")throw new Error(`${Je(e)} must be a boolean, or undefined`);return t}function jD(e,t){if(t!==void 0&&(typeof t!="object"||Array.isArray(t)||!t))throw new Error(`${Je(e)} must be an object, or undefined`);return t}function Ug(e,t){if(t!=null&&!Array.isArray(t))throw new Error(`${Je(e)} must be an array, or undefined`);return t}function Jme(e,t){let r=Ug(e,t);return r==null||r.forEach((n,s)=>zme(Tr(e,s),n)),r}function zme(e,t){if(typeof t!="string"&&typeof t!="function"&&!(t instanceof RegExp))throw new Error(`${Je(e)} must be an array of string/Function/RegExp values, or undefined`);return t}function Qme(e,t){if(t===void 0)return t;if(Array.isArray(t))t.forEach((r,n)=>{if(!rf(r))throw new Error(`${Je(Tr(e,n))} must be a string/Function/RegExp.`)});else if(!rf(t))throw new Error(`${Je(e)} must be a string/Function/RegExp, or an array of those`);return t}function rf(e){return typeof e=="string"||typeof e=="function"||e instanceof RegExp}function Zme(e,t){if(t!==void 0&&typeof t!="boolean"&&typeof t!="string")throw new Error(`${Je(e)} must be a undefined, a boolean, a string, got ${JSON.stringify(t)}`);return t}function eye(e,t){if(t===void 0||typeof t=="boolean")return t;if(Array.isArray(t))t.forEach((r,n)=>{if(!rf(r))throw new Error(`${Je(Tr(e,n))} must be a string/Function/RegExp.`)});else if(!rf(t))throw new Error(`${Je(e)} must be a undefined, a boolean, a string/Function/RegExp or an array of those, got ${JSON.stringify(t)}`);return t}function tye(e,t){let r=Ug(e,t);return r&&r.forEach((n,s)=>rye(Tr(e,s),n)),r}function rye(e,t){if(Array.isArray(t)){if(t.length===0)throw new Error(`${Je(e)} must include an object`);if(t.length>3)throw new Error(`${Je(e)} may only be a two-tuple or three-tuple`);if(BD(Tr(e,0),t[0]),t.length>1){let r=t[1];if(r!==void 0&&r!==!1&&(typeof r!="object"||Array.isArray(r)||r===null))throw new Error(`${Je(Tr(e,1))} must be an object, false, or undefined`)}if(t.length===3){let r=t[2];if(r!==void 0&&typeof r!="string")throw new Error(`${Je(Tr(e,2))} must be a string, or undefined`)}}else BD(e,t);return t}function BD(e,t){if((typeof t!="object"||!t)&&typeof t!="string"&&typeof t!="function")throw new Error(`${Je(e)} must be a string, object, function`);return t}function nye(e,t){if((0,Ro().isBrowsersQueryValid)(t))return t;if(typeof t!="object"||!t||Array.isArray(t))throw new Error(`${Je(e)} must be a string, an array of strings or an object`);let r=Tr(e,"browsers"),n=Tr(e,"esmodules");FD(r,t.browsers),qg(n,t.esmodules);for(let s of Object.keys(t)){let i=t[s],a=Tr(e,s);if(s==="esmodules")qg(a,i);else if(s==="browsers")FD(a,i);else if(Object.hasOwnProperty.call(Ro().TargetNames,s))sye(a,i);else{let o=Object.keys(Ro().TargetNames).join(", ");throw new Error(`${Je(a)} is not a valid target. Supported targets are ${o}`)}}return t}function FD(e,t){if(t!==void 0&&!(0,Ro().isBrowsersQueryValid)(t))throw new Error(`${Je(e)} must be undefined, a string or an array of strings`)}function sye(e,t){if(!(typeof t=="number"&&Math.round(t)===t)&&typeof t!="string")throw new Error(`${Je(e)} must be a string or an integer number`)}function iye(e,t){if(t===void 0)return;if(typeof t!="object"||t===null)throw new Error(`${Je(e)} must be an object or undefined.`);let r=e;do r=r.parent;while(r.type!=="root");let n=r.source==="preset";for(let s of Object.keys(t)){let i=Tr(e,s);if(!Ume.assumptionsNames.has(s))throw new Error(`${Je(i)} is not a supported assumption.`);if(typeof t[s]!="boolean")throw new Error(`${Je(i)} must be a boolean.`);if(n&&t[s]===!1)throw new Error(`${Je(i)} cannot be set to 'false' inside presets.`)}return t}});var qo=b(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.assumptionsNames=void 0;zi.checkNoUnwrappedItemOptionPairs=dye;zi.validate=lye;var LD=kD(),Se=Vg(),aye=Ks(),MD={cwd:Se.assertString,root:Se.assertString,rootMode:Se.assertRootMode,configFile:Se.assertConfigFileSearch,caller:Se.assertCallerMetadata,filename:Se.assertString,filenameRelative:Se.assertString,code:Se.assertBoolean,ast:Se.assertBoolean,cloneInputAst:Se.assertBoolean,envName:Se.assertString},RD={babelrc:Se.assertBoolean,babelrcRoots:Se.assertBabelrcSearch},qD={extends:Se.assertString,ignore:Se.assertIgnoreList,only:Se.assertIgnoreList,targets:Se.assertTargets,browserslistConfigFile:Se.assertConfigFileSearch,browserslistEnv:Se.assertString},VD={inputSourceMap:Se.assertInputSourceMap,presets:Se.assertPluginList,plugins:Se.assertPluginList,passPerPreset:Se.assertBoolean,assumptions:Se.assertAssumptions,env:fye,overrides:pye,test:Se.assertConfigApplicableTest,include:Se.assertConfigApplicableTest,exclude:Se.assertConfigApplicableTest,retainLines:Se.assertBoolean,comments:Se.assertBoolean,shouldPrintComment:Se.assertFunction,compact:Se.assertCompact,minified:Se.assertBoolean,auxiliaryCommentBefore:Se.assertString,auxiliaryCommentAfter:Se.assertString,sourceType:Se.assertSourceType,wrapPluginVisitorMethod:Se.assertFunction,highlightCode:Se.assertBoolean,sourceMaps:Se.assertSourceMaps,sourceMap:Se.assertSourceMaps,sourceFileName:Se.assertString,sourceRoot:Se.assertString,parserOpts:Se.assertObject,generatorOpts:Se.assertObject};Object.assign(VD,{getModuleId:Se.assertFunction,moduleRoot:Se.assertString,moduleIds:Se.assertBoolean,moduleId:Se.assertString});var oye=["arrayLikeIsIterable","constantReexports","constantSuper","enumerableModuleMeta","ignoreFunctionLength","ignoreToPrimitiveHint","iterableIsArray","mutableTemplateObject","noClassCalls","noDocumentAll","noIncompleteNsImportDetection","noNewArrows","objectRestNoSymbols","privateFieldsAsSymbols","privateFieldsAsProperties","pureGetters","setClassMethods","setComputedProperties","setPublicClassFields","setSpreadProperties","skipForOfIteratorClosing","superIsCallableConstructor"],_De=zi.assumptionsNames=new Set(oye);function $D(e){return e.type==="root"?e.source:$D(e.parent)}function lye(e,t,r){try{return $g({type:"root",source:e},t)}catch(n){let s=new aye.default(n.message,r);throw n.code&&(s.code=n.code),s}}function $g(e,t){let r=$D(e);return cye(t),Object.keys(t).forEach(n=>{let s={type:"option",name:n,parent:e};if(r==="preset"&&qD[n])throw new Error(`${(0,Se.msg)(s)} is not allowed in preset options`);if(r!=="arguments"&&MD[n])throw new Error(`${(0,Se.msg)(s)} is only allowed in root programmatic options`);if(r!=="arguments"&&r!=="configfile"&&RD[n])throw r==="babelrcfile"||r==="extendsfile"?new Error(`${(0,Se.msg)(s)} is not allowed in .babelrc or "extends"ed files, only in root programmatic options, or babel.config.js/config file options`):new Error(`${(0,Se.msg)(s)} is only allowed in root programmatic options, or babel.config.js/config file options`);(VD[n]||qD[n]||RD[n]||MD[n]||uye)(s,t[n])}),t}function uye(e){let t=e.name;if(LD.default[t]){let{message:r,version:n=5}=LD.default[t];throw new Error(`Using removed Babel ${n} option: ${(0,Se.msg)(e)} - ${r}`)}else{let r=new Error(`Unknown option: ${(0,Se.msg)(e)}. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.`);throw r.code="BABEL_UNKNOWN_OPTION",r}}function UD(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function cye(e){if(UD(e,"sourceMap")&&UD(e,"sourceMaps"))throw new Error(".sourceMap is an alias for .sourceMaps, cannot use both")}function fye(e,t){if(e.parent.type==="env")throw new Error(`${(0,Se.msg)(e)} is not allowed inside of another .env block`);let r=e.parent,n=(0,Se.assertObject)(e,t);if(n)for(let s of Object.keys(n)){let i=(0,Se.assertObject)((0,Se.access)(e,s),n[s]);if(!i)continue;$g({type:"env",name:s,parent:r},i)}return n}function pye(e,t){if(e.parent.type==="env")throw new Error(`${(0,Se.msg)(e)} is not allowed inside an .env block`);if(e.parent.type==="overrides")throw new Error(`${(0,Se.msg)(e)} is not allowed inside an .overrides block`);let r=e.parent,n=(0,Se.assertArray)(e,t);if(n)for(let[s,i]of n.entries()){let a=(0,Se.access)(e,s),o=(0,Se.assertObject)(a,i);if(!o)throw new Error(`${(0,Se.msg)(a)} must be an object`);$g({type:"overrides",index:s,parent:r},o)}return n}function dye(e,t,r,n){if(t===0)return;let s=e[t-1],i=e[t];s.file&&s.options===void 0&&typeof i.value=="object"&&(n.message+=` - Maybe you meant to use "${r}s": [ ["${s.file.request}", ${JSON.stringify(i.value,void 0,2)}] ] To be a valid ${r}, its name and options should be wrapped in a pair of brackets`)}});var Yg=b(Hg=>{"use strict";Object.defineProperty(Hg,"__esModule",{value:!0});Hg.default=yye;function nf(){let e=require("path");return nf=function(){return e},e}var Uo=`\\${nf().sep}`,Wg=`(?:${Uo}|$)`,Kg=`[^${Uo}]+`,Gg=`(?:${Kg}${Uo})`,KD=`(?:${Kg}${Wg})`,hye=`${Gg}*?`,mye=`${Gg}*?${KD}?`;function WD(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}function yye(e,t){let r=nf().resolve(t,e).split(nf().sep);return new RegExp(["^",...r.map((n,s)=>{let i=s===r.length-1;return n==="**"?i?mye:hye:n==="*"?i?KD:Gg:n.indexOf("*.")===0?Kg+WD(n.slice(1))+(i?Wg:Uo):WD(n)+(i?Wg:Uo)})].join(""))}});var YD=b(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.ConfigPrinter=Qi.ChainFormatter=void 0;function HD(){let e=vr();return HD=function(){return e},e}var gye=Qi.ChainFormatter={Programmatic:0,Config:1},Xg={title(e,t,r){let n="";return e===gye.Programmatic?(n="programmatic options",t&&(n+=" from "+t)):n="config "+r,n},loc(e,t){let r="";return e!=null&&(r+=`.overrides[${e}]`),t!=null&&(r+=`.env["${t}"]`),r},*optionsAndDescriptors(e){let t=Object.assign({},e.options);delete t.overrides,delete t.env;let r=[...yield*e.plugins()];r.length&&(t.plugins=r.map(s=>GD(s)));let n=[...yield*e.presets()];return n.length&&(t.presets=[...n].map(s=>GD(s))),JSON.stringify(t,void 0,2)}};function GD(e){var t;let r=(t=e.file)==null?void 0:t.request;return r==null&&(typeof e.value=="object"?r=e.value:typeof e.value=="function"&&(r=`[Function: ${e.value.toString().slice(0,50)} ... ]`)),r==null&&(r="[Unknown]"),e.options===void 0?r:e.name==null?[r,e.options]:[r,e.options,e.name]}var Jg=class e{constructor(){this._stack=[]}configure(t,r,{callerName:n,filepath:s}){return t?(i,a,o)=>{this._stack.push({type:r,callerName:n,filepath:s,content:i,index:a,envName:o})}:()=>{}}static*format(t){let r=Xg.title(t.type,t.callerName,t.filepath),n=Xg.loc(t.index,t.envName);n&&(r+=` ${n}`);let s=yield*Xg.optionsAndDescriptors(t.content);return`${r} ${s}`}*output(){return this._stack.length===0?"":(yield*HD().all(this._stack.map(r=>e.format(r)))).join(` `)}};Qi.ConfigPrinter=Jg});var ab=b(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.buildPresetChain=vye;ea.buildPresetChainWalker=void 0;ea.buildRootChain=Cye;function zD(){let e=require("path");return zD=function(){return e},e}function QD(){let e=Os();return QD=function(){return e},e}var eb=qo(),ZD=Yg(),$o=YD(),bye=Dn(),Eye=Ks(),Vo=Lo(),Lt=Ws(),Br=Mg(),XD=QD()("babel:config:config-chain");function*vye(e,t){let r=yield*Tye(e,t);return r?{plugins:of(r.plugins),presets:of(r.presets),options:r.options.map(n=>eI(n)),files:new Set}:null}var Tye=ea.buildPresetChainWalker=ib({root:e=>Sye(e),env:(e,t)=>xye(e)(t),overrides:(e,t)=>Pye(e)(t),overridesEnv:(e,t,r)=>Aye(e)(t)(r),createLogger:()=>()=>{}}),Sye=(0,Lt.makeWeakCacheSync)(e=>tb(e,e.alias,Br.createUncachedDescriptors)),xye=(0,Lt.makeWeakCacheSync)(e=>(0,Lt.makeStrongCacheSync)(t=>rb(e,e.alias,Br.createUncachedDescriptors,t))),Pye=(0,Lt.makeWeakCacheSync)(e=>(0,Lt.makeStrongCacheSync)(t=>nb(e,e.alias,Br.createUncachedDescriptors,t))),Aye=(0,Lt.makeWeakCacheSync)(e=>(0,Lt.makeStrongCacheSync)(t=>(0,Lt.makeStrongCacheSync)(r=>sb(e,e.alias,Br.createUncachedDescriptors,t,r))));function*Cye(e,t){let r,n,s=new $o.ConfigPrinter,i=yield*_ye({options:e,dirname:t.cwd},t,void 0,s);if(!i)return null;let a=yield*s.output(),o;typeof e.configFile=="string"?o=yield*(0,Vo.loadConfig)(e.configFile,t.cwd,t.envName,t.caller):e.configFile!==!1&&(o=yield*(0,Vo.findRootConfig)(t.root,t.envName,t.caller));let{babelrc:l,babelrcRoots:u}=e,c=t.cwd,f=af(),d=new $o.ConfigPrinter;if(o){let O=Dye(o),C=yield*Qg(O,t,void 0,d);if(!C)return null;r=yield*d.output(),l===void 0&&(l=O.options.babelrc),u===void 0&&(c=O.dirname,u=O.options.babelrcRoots),Zi(f,C)}let m,y,p=!1,E=af();if((l===!0||l===void 0)&&typeof t.filename=="string"){let O=yield*(0,Vo.findPackageData)(t.filename);if(O&&wye(t,O,u,c)){if({ignore:m,config:y}=yield*(0,Vo.findRelativeConfig)(O,t.envName,t.caller),m&&E.files.add(m.filepath),m&&tI(t,m.ignore,null,m.dirname)&&(p=!0),y&&!p){let C=Iye(y),v=new $o.ConfigPrinter,I=yield*Qg(C,t,void 0,v);I?(n=yield*v.output(),Zi(E,I)):p=!0}y&&p&&E.files.add(y.filepath)}}t.showConfig&&console.log(`Babel configs on "${t.filename}" (ascending priority): `+[r,n,a].filter(O=>!!O).join(` `)+` -----End Babel configs-----`);let T=Zi(Zi(Zi(af(),f),E),i);return{plugins:p?[]:of(T.plugins),presets:p?[]:of(T.presets),options:p?[]:T.options.map(O=>eI(O)),fileHandling:p?"ignored":"transpile",ignore:m||void 0,babelrc:y||void 0,config:o||void 0,files:T.files}}function wye(e,t,r,n){if(typeof r=="boolean")return r;let s=e.root;if(r===void 0)return t.directories.indexOf(s)!==-1;let i=r;return Array.isArray(i)||(i=[i]),i=i.map(a=>typeof a=="string"?zD().resolve(n,a):a),i.length===1&&i[0]===s?t.directories.indexOf(s)!==-1:i.some(a=>(typeof a=="string"&&(a=(0,ZD.default)(a,n)),t.directories.some(o=>rI(a,n,o,e))))}var Dye=(0,Lt.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,eb.validate)("configfile",e.options,e.filepath)})),Iye=(0,Lt.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,eb.validate)("babelrcfile",e.options,e.filepath)})),Oye=(0,Lt.makeWeakCacheSync)(e=>({filepath:e.filepath,dirname:e.dirname,options:(0,eb.validate)("extendsfile",e.options,e.filepath)})),_ye=ib({root:e=>tb(e,"base",Br.createCachedDescriptors),env:(e,t)=>rb(e,"base",Br.createCachedDescriptors,t),overrides:(e,t)=>nb(e,"base",Br.createCachedDescriptors,t),overridesEnv:(e,t,r)=>sb(e,"base",Br.createCachedDescriptors,t,r),createLogger:(e,t,r)=>Mye(e,t,r)}),Nye=ib({root:e=>kye(e),env:(e,t)=>Bye(e)(t),overrides:(e,t)=>Fye(e)(t),overridesEnv:(e,t,r)=>jye(e)(t)(r),createLogger:(e,t,r)=>Lye(e.filepath,t,r)});function*Qg(e,t,r,n){let s=yield*Nye(e,t,r,n);return s==null||s.files.add(e.filepath),s}var kye=(0,Lt.makeWeakCacheSync)(e=>tb(e,e.filepath,Br.createUncachedDescriptors)),Bye=(0,Lt.makeWeakCacheSync)(e=>(0,Lt.makeStrongCacheSync)(t=>rb(e,e.filepath,Br.createUncachedDescriptors,t))),Fye=(0,Lt.makeWeakCacheSync)(e=>(0,Lt.makeStrongCacheSync)(t=>nb(e,e.filepath,Br.createUncachedDescriptors,t))),jye=(0,Lt.makeWeakCacheSync)(e=>(0,Lt.makeStrongCacheSync)(t=>(0,Lt.makeStrongCacheSync)(r=>sb(e,e.filepath,Br.createUncachedDescriptors,t,r))));function Lye(e,t,r){return r?r.configure(t.showConfig,$o.ChainFormatter.Config,{filepath:e}):()=>{}}function tb({dirname:e,options:t},r,n){return n(e,t,r)}function Mye(e,t,r){var n;return r?r.configure(t.showConfig,$o.ChainFormatter.Programmatic,{callerName:(n=t.caller)==null?void 0:n.name}):()=>{}}function rb({dirname:e,options:t},r,n,s){var i;let a=(i=t.env)==null?void 0:i[s];return a?n(e,a,`${r}.env["${s}"]`):null}function nb({dirname:e,options:t},r,n,s){var i;let a=(i=t.overrides)==null?void 0:i[s];if(!a)throw new Error("Assertion failure - missing override");return n(e,a,`${r}.overrides[${s}]`)}function sb({dirname:e,options:t},r,n,s,i){var a,o;let l=(a=t.overrides)==null?void 0:a[s];if(!l)throw new Error("Assertion failure - missing override");let u=(o=l.env)==null?void 0:o[i];return u?n(e,u,`${r}.overrides[${s}].env["${i}"]`):null}function ib({root:e,env:t,overrides:r,overridesEnv:n,createLogger:s}){return function*(a,o,l=new Set,u){let{dirname:c}=a,f=[],d=e(a);if(sf(d,c,o,a.filepath)){f.push({config:d,envName:void 0,index:void 0});let p=t(a,o.envName);p&&sf(p,c,o,a.filepath)&&f.push({config:p,envName:o.envName,index:void 0}),(d.options.overrides||[]).forEach((E,T)=>{let O=r(a,T);if(sf(O,c,o,a.filepath)){f.push({config:O,index:T,envName:void 0});let C=n(a,T,o.envName);C&&sf(C,c,o,a.filepath)&&f.push({config:C,index:T,envName:o.envName})}})}if(f.some(({config:{options:{ignore:p,only:E}}})=>tI(o,p,E,c)))return null;let m=af(),y=s(a,o,u);for(let{config:p,index:E,envName:T}of f){if(!(yield*Rye(m,p.options,c,o,l,u)))return null;y(p,E,T),yield*qye(m,p)}return m}}function*Rye(e,t,r,n,s,i){if(t.extends===void 0)return!0;let a=yield*(0,Vo.loadConfig)(t.extends,r,n.envName,n.caller);if(s.has(a))throw new Error(`Configuration cycle detected loading ${a.filepath}. File already loaded following the config chain: `+Array.from(s,l=>` - ${l.filepath}`).join(` `));s.add(a);let o=yield*Qg(Oye(a),n,s,i);return s.delete(a),o?(Zi(e,o),!0):!1}function Zi(e,t){e.options.push(...t.options),e.plugins.push(...t.plugins),e.presets.push(...t.presets);for(let r of t.files)e.files.add(r);return e}function*qye(e,{options:t,plugins:r,presets:n}){return e.options.push(t),e.plugins.push(...yield*r()),e.presets.push(...yield*n()),e}function af(){return{options:[],presets:[],plugins:[],files:new Set}}function eI(e){let t=Object.assign({},e);return delete t.extends,delete t.env,delete t.overrides,delete t.plugins,delete t.presets,delete t.passPerPreset,delete t.ignore,delete t.only,delete t.test,delete t.include,delete t.exclude,Object.prototype.hasOwnProperty.call(t,"sourceMap")&&(t.sourceMaps=t.sourceMap,delete t.sourceMap),t}function of(e){let t=new Map,r=[];for(let n of e)if(typeof n.value=="function"){let s=n.value,i=t.get(s);i||(i=new Map,t.set(s,i));let a=i.get(n.name);a?a.value=n:(a={value:n},r.push(a),n.ownPass||i.set(n.name,a))}else r.push({value:n});return r.reduce((n,s)=>(n.push(s.value),n),[])}function sf({options:e},t,r,n){return(e.test===void 0||zg(r,e.test,t,n))&&(e.include===void 0||zg(r,e.include,t,n))&&(e.exclude===void 0||!zg(r,e.exclude,t,n))}function zg(e,t,r,n){let s=Array.isArray(t)?t:[t];return Zg(e,s,r,n)}function JD(e,t){return t instanceof RegExp?String(t):t}function tI(e,t,r,n){if(t&&Zg(e,t,n)){var s;let a=`No config is applied to "${(s=e.filename)!=null?s:"(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(t,JD)}\` from "${n}"`;return XD(a),e.showConfig&&console.log(a),!0}if(r&&!Zg(e,r,n)){var i;let a=`No config is applied to "${(i=e.filename)!=null?i:"(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(r,JD)}\` from "${n}"`;return XD(a),e.showConfig&&console.log(a),!0}return!1}function Zg(e,t,r,n){return t.some(s=>rI(s,r,e.filename,e,n))}function rI(e,t,r,n,s){if(typeof e=="function")return!!(0,bye.endHiddenCallStack)(e)(r,{dirname:t,envName:n.envName,caller:n.caller});if(typeof r!="string")throw new Eye.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel",s);return typeof e=="string"&&(e=(0,ZD.default)(e,t)),e.test(r)}});var nI=b(ob=>{"use strict";Object.defineProperty(ob,"__esModule",{value:!0});ob.validatePluginObject=Wye;var Fn=Vg(),Uye={name:Fn.assertString,manipulateOptions:Fn.assertFunction,pre:Fn.assertFunction,post:Fn.assertFunction,inherits:Fn.assertFunction,visitor:Vye,parserOverride:Fn.assertFunction,generatorOverride:Fn.assertFunction};function Vye(e,t){let r=(0,Fn.assertObject)(e,t);if(r&&(Object.keys(r).forEach(n=>{n!=="_exploded"&&n!=="_verified"&&$ye(n,r[n])}),r.enter||r.exit))throw new Error(`${(0,Fn.msg)(e)} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`);return r}function $ye(e,t){if(t&&typeof t=="object")Object.keys(t).forEach(r=>{if(r!=="enter"&&r!=="exit")throw new Error(`.visitor["${e}"] may only have .enter and/or .exit handlers.`)});else if(typeof t!="function")throw new Error(`.visitor["${e}"] must be a function`)}function Wye(e){let t={type:"root",source:"plugin"};return Object.keys(e).forEach(r=>{let n=Uye[r];if(n)n({type:"option",name:r,parent:t},e[r]);else{let s=new Error(`.${r} is not a valid Plugin property`);throw s.code="BABEL_UNKNOWN_PLUGIN_PROPERTY",s}}),e}});var ub=b(lb=>{"use strict";Object.defineProperty(lb,"__esModule",{value:!0});lb.getEnv=Kye;function Kye(e="development"){return process.env.BABEL_ENV||process.env.NODE_ENV||e}});var cb=b(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.default=iI;ff.loadPartialConfig=t0e;function lf(){let e=require("path");return lf=function(){return e},e}var Gye=_c(),Hye=gc(),sI=jo(),Yye=ab(),Xye=ub(),Jye=qo(),uf=Lo(),zye=Lg(),Qye=["showIgnoredFiles"];function Zye(e,t){if(e==null)return{};var r={},n=Object.keys(e),s,i;for(i=0;i=0)&&(r[s]=e[s]);return r}function e0e(e,t){switch(t){case"root":return e;case"upward-optional":{let r=(0,uf.findConfigUpwards)(e);return r===null?e:r}case"upward":{let r=(0,uf.findConfigUpwards)(e);if(r!==null)return r;throw Object.assign(new Error(`Babel was run with rootMode:"upward" but a root could not be found when searching upward from "${e}". One of the following config files must be in the directory tree: "${uf.ROOT_CONFIG_FILENAMES.join(", ")}".`),{code:"BABEL_ROOT_NOT_FOUND",dirname:e})}default:throw new Error("Assertion failure - unknown rootMode value.")}}function*iI(e){if(e!=null&&(typeof e!="object"||Array.isArray(e)))throw new Error("Babel options must be an object, null, or undefined");let t=e?(0,Jye.validate)("arguments",e):{},{envName:r=(0,Xye.getEnv)(),cwd:n=".",root:s=".",rootMode:i="root",caller:a,cloneInputAst:o=!0}=t,l=lf().resolve(n),u=e0e(lf().resolve(l,s),i),c=typeof t.filename=="string"?lf().resolve(n,t.filename):void 0,f=yield*(0,uf.resolveShowConfigPath)(l),d={filename:c,cwd:l,root:u,envName:r,caller:a,showConfig:f===c},m=yield*(0,Yye.buildRootChain)(t,d);if(!m)return null;let y={assumptions:{}};return m.options.forEach(E=>{(0,Hye.mergeOptions)(y,E)}),{options:Object.assign({},y,{targets:(0,zye.resolveTargets)(y,u),cloneInputAst:o,babelrc:!1,configFile:!1,browserslistConfigFile:!1,passPerPreset:!1,envName:d.envName,cwd:d.cwd,root:d.root,rootMode:"root",filename:typeof d.filename=="string"?d.filename:void 0,plugins:m.plugins.map(E=>(0,sI.createItemFromDescriptor)(E)),presets:m.presets.map(E=>(0,sI.createItemFromDescriptor)(E))}),context:d,fileHandling:m.fileHandling,ignore:m.ignore,babelrc:m.babelrc,config:m.config,files:m.files}}function*t0e(e){let t=!1;if(typeof e=="object"&&e!==null&&!Array.isArray(e)){var r=e;({showIgnoredFiles:t}=r),e=Zye(r,Qye)}let n=yield*iI(e);if(!n)return null;let{options:s,babelrc:i,ignore:a,config:o,fileHandling:l,files:u}=n;return l==="ignored"&&!t?null:((s.plugins||[]).forEach(c=>{if(c.value instanceof Gye.default)throw new Error("Passing cached plugin instances is not supported in babel.loadPartialConfig()")}),new cf(s,i?i.filepath:void 0,a?a.filepath:void 0,o?o.filepath:void 0,l,u))}var cf=class{constructor(t,r,n,s,i,a){this.options=void 0,this.babelrc=void 0,this.babelignore=void 0,this.config=void 0,this.fileHandling=void 0,this.files=void 0,this.options=t,this.babelignore=n,this.babelrc=r,this.config=s,this.fileHandling=i,this.files=a,Object.freeze(this)}hasFilesystemConfig(){return this.babelrc!==void 0||this.config!==void 0}};Object.freeze(cf.prototype)});var hI=b(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.default=void 0;function uI(){let e=vr();return uI=function(){return e},e}var db=qi(),aI=gc(),r0e=ft(),cI=_c(),n0e=jo(),s0e=ab(),yb=Ic();function hb(){let e=Vr();return hb=function(){return e},e}var gb=Ws(),mb=qo(),i0e=nI(),fI=og(),a0e=cb(),o0e=Ks(),RDe=pf.default=uI()(function*(t){var r;let n=yield*(0,a0e.default)(t);if(!n)return null;let{options:s,context:i,fileHandling:a}=n;if(a==="ignored")return null;let o={},{plugins:l,presets:u}=s;if(!l||!u)throw new Error("Assertion failure - plugins and presets exist");let c=Object.assign({},i,{targets:s.targets}),f=v=>{let I=(0,n0e.getItemDescriptor)(v);if(!I)throw new Error("Assertion failure - must be config item");return I},d=u.map(f),m=l.map(f),y=[[]],p=[],E=[];if(yield*oI(i,function*v(I,k){let B=[];for(let X=0;X0){y.splice(1,0,...B.map(X=>X.pass).filter(X=>X!==k));for(let{preset:X,pass:oe}of B){if(!X||(oe.push(...X.plugins),yield*v(X.presets,oe)))return!0;X.options.forEach(be=>{(0,aI.mergeOptions)(o,be)})}}})(d,y[0]))return null;let O=o;(0,aI.mergeOptions)(O,s);let C=Object.assign({},c,{assumptions:(r=O.assumptions)!=null?r:{}});return yield*oI(i,function*(){y[0].unshift(...m);for(let k of y){let B=[];p.push(B);for(let M=0;Mv.length>0).map(v=>({plugins:v})),O.passPerPreset=O.presets.length>0,{options:O,passes:p,externalDependencies:(0,yb.finalize)(E)}});function oI(e,t){return function*(r,n){try{return yield*t(r,n)}catch(i){if(!/^\[BABEL\]/.test(i.message)){var s;i.message=`[BABEL] ${(s=e.filename)!=null?s:"unknown file"}: ${i.message}`}throw i}}}var pI=e=>(0,gb.makeWeakCache)(function*({value:t,options:r,dirname:n,alias:s},i){if(r===!1)throw new Error("Assertion failure");r=r||{};let a=[],o=t;if(typeof t=="function"){let l=(0,db.maybeAsync)(t,"You appear to be using an async plugin/preset, but Babel has been called synchronously"),u=Object.assign({},r0e,e(i,a));try{o=yield*l(u,r,n)}catch(c){throw s&&(c.message+=` (While processing: ${JSON.stringify(s)})`),c}}if(!o||typeof o!="object")throw new Error("Plugin/Preset did not return an object.");if((0,db.isThenable)(o))throw yield*[],new Error(`You appear to be using a promise as a plugin, 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. As an alternative, you can prefix the promise with "await". (While processing: ${JSON.stringify(s)})`);if(a.length>0&&(!i.configured()||i.mode()==="forever")){let l=`A plugin/preset has external untracked dependencies (${a[0]}), but the cache `;throw i.configured()?l+=" has been configured to never be invalidated. ":l+="has not been configured to be invalidated when the external dependencies change. ",l+=`Plugins/presets should configure their cache to be invalidated when the external dependencies change, for example using \`api.cache.invalidate(() => statSync(filepath).mtimeMs)\` or \`api.cache.never()\` (While processing: ${JSON.stringify(s)})`,new Error(l)}return{value:o,options:r,dirname:n,alias:s,externalDependencies:(0,yb.finalize)(a)}}),l0e=pI(fI.makePluginAPI),u0e=pI(fI.makePresetAPI),c0e=(0,gb.makeWeakCache)(function*({value:e,options:t,dirname:r,alias:n,externalDependencies:s},i){let a=(0,i0e.validatePluginObject)(e),o=Object.assign({},a);if(o.visitor&&(o.visitor=hb().default.explode(Object.assign({},o.visitor))),o.inherits){let l={name:void 0,alias:`${n}$inherits`,value:o.inherits,options:t,dirname:r},u=yield*(0,db.forwardAsync)(dI,c=>i.invalidate(f=>c(l,f)));o.pre=pb(u.pre,o.pre),o.post=pb(u.post,o.post),o.manipulateOptions=pb(u.manipulateOptions,o.manipulateOptions),o.visitor=hb().default.visitors.merge([u.visitor||{},o.visitor||{}]),u.externalDependencies.length>0&&(s.length===0?s=u.externalDependencies:s=(0,yb.finalize)([s,u.externalDependencies]))}return new cI.default(o,t,n,s)});function*dI(e,t){if(e.value instanceof cI.default){if(e.options)throw new Error("Passed options to an existing Plugin instance will not work.");return e.value}return yield*c0e(yield*l0e(e,t),t)}var fb=e=>e&&typeof e!="function",lI=(e,t)=>{if(fb(e.test)||fb(e.include)||fb(e.exclude)){let r=t.name?`"${t.name}"`:"/* your preset */";throw new o0e.default([`Preset ${r} requires a filename to be set when babel is called directly,`,"```",`babel.transformSync(code, { filename: 'file.ts', presets: [${r}] });`,"```","See https://babeljs.io/docs/en/options#filename for more information."].join(` `))}},f0e=(e,t,r)=>{if(!t.filename){var n;let{options:s}=e;lI(s,r),(n=s.overrides)==null||n.forEach(i=>lI(i,r))}},p0e=(0,gb.makeWeakCacheSync)(({value:e,dirname:t,alias:r,externalDependencies:n})=>({options:(0,mb.validate)("preset",e),alias:r,dirname:t,externalDependencies:n}));function*d0e(e,t){let r=p0e(yield*u0e(e,t));return f0e(r,t,e),{chain:yield*(0,s0e.buildPresetChain)(r,t),externalDependencies:r.externalDependencies}}function pb(e,t){let r=[e,t].filter(Boolean);return r.length<=1?r[0]:function(...n){for(let s of r)s.apply(this,n)}}});var ta=b(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.createConfigItem=S0e;jr.createConfigItemAsync=T0e;jr.createConfigItemSync=bI;Object.defineProperty(jr,"default",{enumerable:!0,get:function(){return mI.default}});jr.loadOptions=v0e;jr.loadOptionsAsync=E0e;jr.loadOptionsSync=gI;jr.loadPartialConfig=g0e;jr.loadPartialConfigAsync=y0e;jr.loadPartialConfigSync=yI;function yf(){let e=vr();return yf=function(){return e},e}var mI=hI(),h0e=cb(),m0e=jo(),Fr=Dn(),df=yf()(h0e.loadPartialConfig);function y0e(...e){return(0,Fr.beginHiddenCallStack)(df.async)(...e)}function yI(...e){return(0,Fr.beginHiddenCallStack)(df.sync)(...e)}function g0e(e,t){if(t!==void 0)(0,Fr.beginHiddenCallStack)(df.errback)(e,t);else if(typeof e=="function")(0,Fr.beginHiddenCallStack)(df.errback)(void 0,e);else return yI(e)}function*b0e(e){var t;let r=yield*(0,mI.default)(e);return(t=r==null?void 0:r.options)!=null?t:null}var hf=yf()(b0e);function E0e(...e){return(0,Fr.beginHiddenCallStack)(hf.async)(...e)}function gI(...e){return(0,Fr.beginHiddenCallStack)(hf.sync)(...e)}function v0e(e,t){if(t!==void 0)(0,Fr.beginHiddenCallStack)(hf.errback)(e,t);else if(typeof e=="function")(0,Fr.beginHiddenCallStack)(hf.errback)(void 0,e);else return gI(e)}var mf=yf()(m0e.createConfigItem);function T0e(...e){return(0,Fr.beginHiddenCallStack)(mf.async)(...e)}function bI(...e){return(0,Fr.beginHiddenCallStack)(mf.sync)(...e)}function S0e(e,t,r){if(r!==void 0)(0,Fr.beginHiddenCallStack)(mf.errback)(e,t,r);else if(typeof t=="function")(0,Fr.beginHiddenCallStack)(mf.errback)(e,void 0,r);else return bI(e,t)}});var EI=b(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.default=void 0;var Wo=class{constructor(t,r,n){this._map=new Map,this.key=void 0,this.file=void 0,this.opts=void 0,this.cwd=void 0,this.filename=void 0,this.key=r,this.file=t,this.opts=n||{},this.cwd=t.opts.cwd,this.filename=t.opts.filename}set(t,r){this._map.set(t,r)}get(t){return this._map.get(t)}availableHelper(t,r){return this.file.availableHelper(t,r)}addHelper(t){return this.file.addHelper(t)}buildCodeFrameError(t,r,n){return this.file.buildCodeFrameError(t,r,n)}};gf.default=Wo;Wo.prototype.getModuleName=function(){return this.file.getModuleName()},Wo.prototype.addImport=function(){this.file.addImport()}});var xI=b(Eb=>{"use strict";Object.defineProperty(Eb,"__esModule",{value:!0});Eb.default=P0e;function TI(){let e=Vr();return TI=function(){return e},e}var x0e=_c(),bb,vI={name:"internal.blockHoist",visitor:{Block:{exit({node:e}){let{body:t}=e,r=Math.pow(2,30)-1,n=!1;for(let s=0;sr){n=!0;break}r=a}n&&(e.body=A0e(t.slice()))}}}};function P0e(){return bb||(bb=new x0e.default(Object.assign({},vI,{visitor:TI().default.explode(vI.visitor)}),{})),bb}function SI(e){let t=e==null?void 0:e._blockHoist;return t==null?1:t===!0?2:t}function A0e(e){let t=Object.create(null);for(let s=0;s+s).sort((s,i)=>i-s),n=0;for(let s of r){let i=t[s];for(let a of i)e[n++]=a}return e}});var Tb=b(vb=>{"use strict";Object.defineProperty(vb,"__esModule",{value:!0});vb.default=C0e;function bf(){let e=require("path");return bf=function(){return e},e}function C0e(e){let{filename:t,cwd:r,filenameRelative:n=typeof t=="string"?bf().relative(r,t):"unknown",sourceType:s="module",inputSourceMap:i,sourceMaps:a=!!i,sourceRoot:o=e.options.moduleRoot,sourceFileName:l=bf().basename(n),comments:u=!0,compact:c="auto"}=e.options,f=e.options,d=Object.assign({},f,{parserOpts:Object.assign({sourceType:bf().extname(n)===".mjs"?"module":s,sourceFileName:t,plugins:[]},f.parserOpts),generatorOpts:Object.assign({filename:t,auxiliaryCommentBefore:f.auxiliaryCommentBefore,auxiliaryCommentAfter:f.auxiliaryCommentAfter,retainLines:f.retainLines,comments:u,shouldPrintComment:f.shouldPrintComment,compact:c,minified:f.minified,sourceMaps:a,sourceRoot:o,sourceFileName:l},f.generatorOpts)});for(let m of e.passes)for(let y of m)y.manipulateOptions&&y.manipulateOptions(d,d.parserOpts);return d}});var Sb=b(Ot=>{"use strict";Object.defineProperty(Ot,"commentRegex",{get:function(){return/^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/mg}});Object.defineProperty(Ot,"mapFileCommentRegex",{get:function(){return/(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/mg}});var Ef;typeof Buffer!="undefined"?typeof Buffer.from=="function"?Ef=w0e:Ef=D0e:Ef=I0e;function w0e(e){return Buffer.from(e,"base64").toString()}function D0e(e){if(typeof value=="number")throw new TypeError("The value to decode must not be of type number.");return new Buffer(e,"base64").toString()}function I0e(e){return decodeURIComponent(escape(atob(e)))}function O0e(e){return e.split(",").pop()}function _0e(e,t){var r=Ot.mapFileCommentRegex.exec(e),n=r[1]||r[2];try{var e=t(n);return e!=null&&typeof e.catch=="function"?e.catch(s):e}catch(i){s(i)}function s(i){throw new Error("An error occurred while trying to read the map file at "+n+` `+i.stack)}}function er(e,t){t=t||{},t.hasComment&&(e=O0e(e)),t.encoding==="base64"?e=Ef(e):t.encoding==="uri"&&(e=decodeURIComponent(e)),(t.isJSON||t.encoding)&&(e=JSON.parse(e)),this.sourcemap=e}er.prototype.toJSON=function(e){return JSON.stringify(this.sourcemap,null,e)};typeof Buffer!="undefined"?typeof Buffer.from=="function"?er.prototype.toBase64=N0e:er.prototype.toBase64=k0e:er.prototype.toBase64=B0e;function N0e(){var e=this.toJSON();return Buffer.from(e,"utf8").toString("base64")}function k0e(){var e=this.toJSON();if(typeof e=="number")throw new TypeError("The json to encode must not be of type number.");return new Buffer(e,"utf8").toString("base64")}function B0e(){var e=this.toJSON();return btoa(unescape(encodeURIComponent(e)))}er.prototype.toURI=function(){var e=this.toJSON();return encodeURIComponent(e)};er.prototype.toComment=function(e){var t,r,n;return e!=null&&e.encoding==="uri"?(t="",r=this.toURI()):(t=";base64",r=this.toBase64()),n="sourceMappingURL=data:application/json;charset=utf-8"+t+","+r,e!=null&&e.multiline?"/*# "+n+" */":"//# "+n};er.prototype.toObject=function(){return JSON.parse(this.toJSON())};er.prototype.addProperty=function(e,t){if(this.sourcemap.hasOwnProperty(e))throw new Error('property "'+e+'" already exists on the sourcemap, use set property instead');return this.setProperty(e,t)};er.prototype.setProperty=function(e,t){return this.sourcemap[e]=t,this};er.prototype.getProperty=function(e){return this.sourcemap[e]};Ot.fromObject=function(e){return new er(e)};Ot.fromJSON=function(e){return new er(e,{isJSON:!0})};Ot.fromURI=function(e){return new er(e,{encoding:"uri"})};Ot.fromBase64=function(e){return new er(e,{encoding:"base64"})};Ot.fromComment=function(e){var t,r;return e=e.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),t=Ot.commentRegex.exec(e),r=t&&t[4]||"uri",new er(e,{encoding:r,hasComment:!0})};function PI(e){return new er(e,{isJSON:!0})}Ot.fromMapFileComment=function(e,t){if(typeof t=="string")throw new Error("String directory paths are no longer supported with `fromMapFileComment`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var r=_0e(e,t);return r!=null&&typeof r.then=="function"?r.then(PI):PI(r)};Ot.fromSource=function(e){var t=e.match(Ot.commentRegex);return t?Ot.fromComment(t.pop()):null};Ot.fromMapFileSource=function(e,t){if(typeof t=="string")throw new Error("String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var r=e.match(Ot.mapFileCommentRegex);return r?Ot.fromMapFileComment(r.pop(),t):null};Ot.removeComments=function(e){return e.replace(Ot.commentRegex,"")};Ot.removeMapFileComments=function(e){return e.replace(Ot.mapFileCommentRegex,"")};Ot.generateMapFileComment=function(e,t){var r="sourceMappingURL="+e;return t&&t.multiline?"/*# "+r+" */":"//# "+r}});var wI=b(xb=>{"use strict";Object.defineProperty(xb,"__esModule",{value:!0});xb.default=F0e;var CI={asyncDoExpressions:{syntax:{name:"@babel/plugin-syntax-async-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-do-expressions"}},decimal:{syntax:{name:"@babel/plugin-syntax-decimal",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decimal"}},decorators:{syntax:{name:"@babel/plugin-syntax-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decorators"},transform:{name:"@babel/plugin-proposal-decorators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators"}},doExpressions:{syntax:{name:"@babel/plugin-syntax-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-do-expressions"},transform:{name:"@babel/plugin-proposal-do-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-do-expressions"}},exportDefaultFrom:{syntax:{name:"@babel/plugin-syntax-export-default-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-default-from"},transform:{name:"@babel/plugin-proposal-export-default-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-export-default-from"}},flow:{syntax:{name:"@babel/plugin-syntax-flow",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-flow"},transform:{name:"@babel/preset-flow",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-flow"}},functionBind:{syntax:{name:"@babel/plugin-syntax-function-bind",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-bind"},transform:{name:"@babel/plugin-proposal-function-bind",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-bind"}},functionSent:{syntax:{name:"@babel/plugin-syntax-function-sent",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-sent"},transform:{name:"@babel/plugin-proposal-function-sent",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-sent"}},jsx:{syntax:{name:"@babel/plugin-syntax-jsx",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx"},transform:{name:"@babel/preset-react",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-react"}},importAttributes:{syntax:{name:"@babel/plugin-syntax-import-attributes",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes"}},pipelineOperator:{syntax:{name:"@babel/plugin-syntax-pipeline-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-pipeline-operator"},transform:{name:"@babel/plugin-proposal-pipeline-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-pipeline-operator"}},recordAndTuple:{syntax:{name:"@babel/plugin-syntax-record-and-tuple",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-record-and-tuple"}},throwExpressions:{syntax:{name:"@babel/plugin-syntax-throw-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-throw-expressions"},transform:{name:"@babel/plugin-proposal-throw-expressions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-throw-expressions"}},typescript:{syntax:{name:"@babel/plugin-syntax-typescript",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-typescript"},transform:{name:"@babel/preset-typescript",url:"https://github.com/babel/babel/tree/main/packages/babel-preset-typescript"}}};Object.assign(CI,{asyncGenerators:{syntax:{name:"@babel/plugin-syntax-async-generators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-generators"},transform:{name:"@babel/plugin-transform-async-generator-functions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-async-generator-functions"}},classProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"},transform:{name:"@babel/plugin-transform-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties"}},classPrivateProperties:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"},transform:{name:"@babel/plugin-transform-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties"}},classPrivateMethods:{syntax:{name:"@babel/plugin-syntax-class-properties",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"},transform:{name:"@babel/plugin-transform-private-methods",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-methods"}},classStaticBlock:{syntax:{name:"@babel/plugin-syntax-class-static-block",url:"https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-class-static-block"},transform:{name:"@babel/plugin-transform-class-static-block",url:"https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-static-block"}},dynamicImport:{syntax:{name:"@babel/plugin-syntax-dynamic-import",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-dynamic-import"}},exportNamespaceFrom:{syntax:{name:"@babel/plugin-syntax-export-namespace-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-namespace-from"},transform:{name:"@babel/plugin-transform-export-namespace-from",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-export-namespace-from"}},importAssertions:{syntax:{name:"@babel/plugin-syntax-import-assertions",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-assertions"}},importMeta:{syntax:{name:"@babel/plugin-syntax-import-meta",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-meta"}},logicalAssignment:{syntax:{name:"@babel/plugin-syntax-logical-assignment-operators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-logical-assignment-operators"},transform:{name:"@babel/plugin-transform-logical-assignment-operators",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-logical-assignment-operators"}},moduleStringNames:{syntax:{name:"@babel/plugin-syntax-module-string-names",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-module-string-names"}},numericSeparator:{syntax:{name:"@babel/plugin-syntax-numeric-separator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-numeric-separator"},transform:{name:"@babel/plugin-transform-numeric-separator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-numeric-separator"}},nullishCoalescingOperator:{syntax:{name:"@babel/plugin-syntax-nullish-coalescing-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-nullish-coalescing-operator"},transform:{name:"@babel/plugin-transform-nullish-coalescing-operator",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-nullish-coalescing-opearator"}},objectRestSpread:{syntax:{name:"@babel/plugin-syntax-object-rest-spread",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-object-rest-spread"},transform:{name:"@babel/plugin-transform-object-rest-spread",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-object-rest-spread"}},optionalCatchBinding:{syntax:{name:"@babel/plugin-syntax-optional-catch-binding",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-catch-binding"},transform:{name:"@babel/plugin-transform-optional-catch-binding",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-catch-binding"}},optionalChaining:{syntax:{name:"@babel/plugin-syntax-optional-chaining",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-chaining"},transform:{name:"@babel/plugin-transform-optional-chaining",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-chaining"}},privateIn:{syntax:{name:"@babel/plugin-syntax-private-property-in-object",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-private-property-in-object"},transform:{name:"@babel/plugin-transform-private-property-in-object",url:"https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-property-in-object"}},regexpUnicodeSets:{syntax:{name:"@babel/plugin-syntax-unicode-sets-regex",url:"https://github.com/babel/babel/blob/main/packages/babel-plugin-syntax-unicode-sets-regex/README.md"},transform:{name:"@babel/plugin-transform-unicode-sets-regex",url:"https://github.com/babel/babel/blob/main/packages/babel-plugin-proposalunicode-sets-regex/README.md"}}});var AI=({name:e,url:t})=>`${e} (${t})`;function F0e(e,t,r){let n=`Support for the experimental syntax '${e}' isn't currently enabled (${t.line}:${t.column+1}): `+r,s=CI[e];if(s){let{syntax:i,transform:a}=s;if(i){let o=AI(i);if(a){let l=AI(a),u=a.name.startsWith("@babel/plugin")?"plugins":"presets";n+=` Add ${l} to the '${u}' section of your Babel config to enable transformation. If you want to leave it as-is, add ${o} to the 'plugins' section to enable parsing.`}else n+=` Add ${o} to the 'plugins' section of your Babel config to enable parsing.`}}return n}});var Cb=b(Ab=>{"use strict";Object.defineProperty(Ab,"__esModule",{value:!0});Ab.default=L0e;function Pb(){let e=Ni();return Pb=function(){return e},e}function DI(){let e=Ai();return DI=function(){return e},e}var j0e=wI();function*L0e(e,{parserOpts:t,highlightCode:r=!0,filename:n="unknown"},s){try{let i=[];for(let a of e)for(let o of a){let{parserOverride:l}=o;if(l){let u=l(s,t,Pb().parse);u!==void 0&&i.push(u)}}if(i.length===0)return(0,Pb().parse)(s,t);if(i.length===1){if(yield*[],typeof i[0].then=="function")throw new Error("You appear to be using an async parser plugin, 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.");return i[0]}throw new Error("More than one plugin attempted to override parsing.")}catch(i){i.code==="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"&&(i.message+=` Consider renaming the file to '.mjs', or setting sourceType:module or sourceType:unambiguous in your Babel config for this file.`);let{loc:a,missingPlugin:o}=i;if(a){let l=(0,DI().codeFrameColumns)(s,{start:{line:a.line,column:a.column+1}},{highlightCode:r});o?i.message=`${n}: `+(0,j0e.default)(o[0],a,l):i.message=`${n}: ${i.message} `+l,i.code="BABEL_PARSE_ERROR"}throw i}}});var II=b(Db=>{"use strict";Object.defineProperty(Db,"__esModule",{value:!0});Db.default=M0e;function wb(e,t){if(e!==null){if(t.has(e))return t.get(e);let r;if(Array.isArray(e)){r=new Array(e.length),t.set(e,r);for(let n=0;n{"use strict";Object.defineProperty(Nb,"__esModule",{value:!0});Nb.default=K0e;function NI(){let e=require("fs");return NI=function(){return e},e}function _b(){let e=require("path");return _b=function(){return e},e}function kI(){let e=Os();return kI=function(){return e},e}function BI(){let e=Oe();return BI=function(){return e},e}function vf(){let e=Sb();return vf=function(){return e},e}var R0e=fc(),q0e=Cb(),U0e=II(),{file:V0e,traverseFast:$0e}=BI(),Ib=kI()("babel:transform:file"),W0e=/^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,(?:.*)$/,OI=/^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;function*K0e(e,t,r,n){if(r=`${r||""}`,n){if(n.type==="Program")n=V0e(n,[],[]);else if(n.type!=="File")throw new Error("AST root must be a Program or File node");t.cloneInputAst&&(n=(0,U0e.default)(n))}else n=yield*(0,q0e.default)(e,t,r);let s=null;if(t.inputSourceMap!==!1){if(typeof t.inputSourceMap=="object"&&(s=vf().fromObject(t.inputSourceMap)),!s){let i=_I(W0e,n);if(i)try{s=vf().fromComment("//"+i)}catch{Ib("discarding unknown inline input sourcemap")}}if(!s){let i=_I(OI,n);if(typeof t.filename=="string"&&i)try{let a=OI.exec(i),o=NI().readFileSync(_b().resolve(_b().dirname(t.filename),a[1]),"utf8");s=vf().fromJSON(o)}catch(a){Ib("discarding unknown file input sourcemap",a)}else i&&Ib("discarding un-loadable file input sourcemap")}}return new R0e.default(t,{code:r,ast:n,inputMap:s})}function Ob(e,t,r){return t&&(t=t.filter(({value:n})=>e.test(n)?(r=n,!1):!0)),[t,r]}function _I(e,t){let r=null;return $0e(t,n=>{[n.leadingComments,r]=Ob(e,n.leadingComments,r),[n.innerComments,r]=Ob(e,n.innerComments,r),[n.trailingComments,r]=Ob(e,n.trailingComments,r)}),r}});var jI=b((kb,Bb)=>{(function(e,t){typeof kb=="object"&&typeof Bb!="undefined"?Bb.exports=t(Xl(),tm()):typeof define=="function"&&define.amd?define(["@jridgewell/trace-mapping","@jridgewell/gen-mapping"],t):(e=typeof globalThis!="undefined"?globalThis:e||self,e.remapping=t(e.traceMapping,e.genMapping))})(kb,function(e,t){"use strict";let r=s("",-1,-1,"",null),n=[];function s(p,E,T,O,C){return{source:p,line:E,column:T,name:O,content:C}}function i(p,E,T,O){return{map:p,sources:E,source:T,content:O}}function a(p,E){return i(p,E,"",null)}function o(p,E){return i(null,n,p,E)}function l(p){let E=new t.GenMapping({file:p.map.file}),{sources:T,map:O}=p,C=O.names,v=e.decodedMappings(O);for(let I=0;Inew e.TraceMap(v,"")),O=T.pop();for(let v=0;v1)throw new Error(`Transformation map ${v} must have exactly one source file. Did you specify these with the most recent transformation maps first?`);let C=d(O,E,"",0);for(let v=T.length-1;v>=0;v--)C=a(T[v],[C]);return C}function d(p,E,T,O){let{resolvedSources:C,sourcesContent:v}=p,I=O+1,k=C.map((B,M)=>{let X={importer:T,depth:I,source:B||"",content:void 0},oe=E(X.source,X),{source:he,content:be}=X;if(oe)return d(new e.TraceMap(oe,he),E,he,I);let nt=be!==void 0?be:v?v[M]:null;return o(he,nt)});return a(p,k)}class m{constructor(E,T){let O=T.decodedMappings?t.toDecodedMap(E):t.toEncodedMap(E);this.version=O.version,this.file=O.file,this.mappings=O.mappings,this.names=O.names,this.sourceRoot=O.sourceRoot,this.sources=O.sources,T.excludeContent||(this.sourcesContent=O.sourcesContent)}toString(){return JSON.stringify(this)}}function y(p,E,T){let O=typeof T=="object"?T:{excludeContent:!!T,decodedMappings:!1},C=f(p,E);return new m(l(C),O)}return y})});var RI=b(Fb=>{"use strict";Object.defineProperty(Fb,"__esModule",{value:!0});Fb.default=G0e;function MI(){let e=jI();return MI=function(){return e},e}function G0e(e,t,r){let n=r.replace(/\\/g,"/"),s=!1,i=MI()(LI(t),(a,o)=>a===n&&!s?(s=!0,o.source="",LI(e)):null);return typeof e.sourceRoot=="string"&&(i.sourceRoot=e.sourceRoot),Object.assign({},i)}function LI(e){return Object.assign({},e,{sourceRoot:null})}});var UI=b(Lb=>{"use strict";Object.defineProperty(Lb,"__esModule",{value:!0});Lb.default=Y0e;function qI(){let e=Sb();return qI=function(){return e},e}function jb(){let e=lu();return jb=function(){return e},e}var H0e=RI();function Y0e(e,t){let{opts:r,ast:n,code:s,inputMap:i}=t,{generatorOpts:a}=r;a.inputSourceMap=i==null?void 0:i.toObject();let o=[];for(let f of e)for(let d of f){let{generatorOverride:m}=d;if(m){let y=m(n,a,s,jb().default);y!==void 0&&o.push(y)}}let l;if(o.length===0)l=(0,jb().default)(n,a,s);else if(o.length===1){if(l=o[0],typeof l.then=="function")throw new Error("You appear to be using an async codegen plugin, 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.")}else throw new Error("More than one plugin attempted to override codegen.");let{code:u,decodedMap:c=l.map}=l;return l.__mergedMap?c=Object.assign({},l.map):c&&(i?c=(0,H0e.default)(i.toObject(),c,a.sourceFileName):c=l.map),(r.sourceMaps==="inline"||r.sourceMaps==="both")&&(u+=` `+qI().fromObject(c).toComment()),r.sourceMaps==="inline"&&(c=null),{outputCode:u,outputMap:c}}});var Tf=b(Rb=>{"use strict";Object.defineProperty(Rb,"__esModule",{value:!0});Rb.run=tge;function Mb(){let e=Vr();return Mb=function(){return e},e}var X0e=EI(),J0e=xI(),z0e=Tb(),Q0e=FI(),Z0e=UI(),ege=Ic();function*tge(e,t,r){let n=yield*(0,Q0e.default)(e.passes,(0,z0e.default)(e),t,r),s=n.opts;try{yield*rge(n,e.passes)}catch(u){var i;throw u.message=`${(i=s.filename)!=null?i:"unknown file"}: ${u.message}`,u.code||(u.code="BABEL_TRANSFORM_ERROR"),u}let a,o;try{s.code!==!1&&({outputCode:a,outputMap:o}=(0,Z0e.default)(e.passes,n))}catch(u){var l;throw u.message=`${(l=s.filename)!=null?l:"unknown file"}: ${u.message}`,u.code||(u.code="BABEL_GENERATE_ERROR"),u}return{metadata:n.metadata,options:s,ast:s.ast===!0?n.ast:null,code:a===void 0?null:a,map:o===void 0?null:o,sourceType:n.ast.program.sourceType,externalDependencies:(0,ege.flattenToSet)(e.externalDependencies)}}function*rge(e,t){for(let r of t){let n=[],s=[],i=[];for(let o of r.concat([(0,J0e.default)()])){let l=new X0e.default(e,o.key,o.options);n.push([o,l]),s.push(l),i.push(o.visitor)}for(let[o,l]of n){let u=o.pre;if(u){let c=u.call(l,e);if(yield*[],VI(c))throw new Error("You appear to be using an plugin with an async .pre, 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.")}}let a=Mb().default.visitors.merge(i,s,e.opts.wrapPluginVisitorMethod);(0,Mb().default)(e.ast,a,e.scope);for(let[o,l]of n){let u=o.post;if(u){let c=u.call(l,e);if(yield*[],VI(c))throw new Error("You appear to be using an plugin with an async .post, 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.")}}}}function VI(e){return!!e&&(typeof e=="object"||typeof e=="function")&&!!e.then&&typeof e.then=="function"}});var Ub=b(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.transformFile=age;Ko.transformFileAsync=lge;Ko.transformFileSync=oge;function $I(){let e=vr();return $I=function(){return e},e}var nge=ta(),sge=Tf(),ige=Ec(),qb=$I()(function*(e,t){let r=Object.assign({},t,{filename:e}),n=yield*(0,nge.default)(r);if(n===null)return null;let s=yield*ige.readFile(e,"utf8");return yield*(0,sge.run)(n,s)});function age(...e){qb.errback(...e)}function oge(...e){return qb.sync(...e)}function lge(...e){return qb.async(...e)}});var KI=b((eIe,WI)=>{WI.exports=function(t){return import(t)}});var GI=b((tIe,uge)=>{uge.exports={name:"@babel/preset-typescript",version:"7.23.3",description:"Babel preset for TypeScript.",repository:{type:"git",url:"https://github.com/babel/babel.git",directory:"packages/babel-preset-typescript"},license:"MIT",publishConfig:{access:"public"},main:"./lib/index.js",keywords:["babel-preset","typescript"],dependencies:{"@babel/helper-plugin-utils":"^7.22.5","@babel/helper-validator-option":"^7.22.15","@babel/plugin-syntax-jsx":"^7.23.3","@babel/plugin-transform-modules-commonjs":"^7.23.3","@babel/plugin-transform-typescript":"^7.23.3"},peerDependencies:{"@babel/core":"^7.0.0-0"},devDependencies:{"@babel/core":"^7.23.3","@babel/helper-plugin-test-runner":"^7.22.5"},homepage:"https://babel.dev/docs/en/next/babel-preset-typescript",bugs:"https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20typescript%22+is%3Aopen",engines:{node:">=6.9.0"},author:"The Babel Team (https://babel.dev/team)",type:"commonjs"}});var tt=b(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.declare=HI;Go.declarePreset=void 0;var Vb={assertVersion:e=>t=>{pge(t,e.version)}};Object.assign(Vb,{targets:()=>()=>({}),assumption:()=>()=>{}});function HI(e){return(t,r,n)=>{var s;let i;for(let o of Object.keys(Vb)){var a;t[o]||((a=i)!=null||(i=fge(t)),i[o]=Vb[o](i))}return e((s=i)!=null?s:t,r||{},n)}}var cge=HI;Go.declarePreset=cge;function fge(e){let t=null;return typeof e.version=="string"&&/^7\./.test(e.version)&&(t=Object.getPrototypeOf(e),t&&(!Sf(t,"version")||!Sf(t,"transform")||!Sf(t,"template")||!Sf(t,"types"))&&(t=null)),Object.assign({},t,e)}function Sf(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function pge(e,t){if(typeof e=="number"){if(!Number.isInteger(e))throw new Error("Expected string or integer value.");e=`^${e}.0.0-0`}if(typeof e!="string")throw new Error("Expected string or integer value.");let r=Error.stackTraceLimit;typeof r=="number"&&r<25&&(Error.stackTraceLimit=25);let n;throw t.slice(0,2)==="7."?n=new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". You'll need to update your @babel/core version.`):n=new Error(`Requires Babel "${e}", but was loaded with "${t}". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`),typeof r=="number"&&(Error.stackTraceLimit=r),Object.assign(n,{code:"BABEL_VERSION_UNSUPPORTED",version:t,range:e})}});var YI=b(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.default=void 0;var dge=tt();$b=function(e,t){let r=[];e.forEach((n,s)=>{(Array.isArray(n)?n[0]:n)===t&&r.unshift(s)});for(let n of r)e.splice(n,1)};var $b,nIe=xf.default=(0,dge.declare)((e,t)=>{e.assertVersion(7);let{disallowAmbiguousJSXLike:r,dts:n}=t;var{isTSX:s}=t;return{name:"syntax-typescript",manipulateOptions(i,a){{let{plugins:o}=a;$b(o,"flow"),$b(o,"jsx"),o.push("objectRestSpread","classProperties"),s&&o.push("jsx")}a.plugins.push(["typescript",{disallowAmbiguousJSXLike:r,dts:n}])}}})});var Yb=b(Hb=>{"use strict";Object.defineProperty(Hb,"__esModule",{value:!0});var hge=Oe();function mge(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var yge=mge(hge);function Kb(e){let t=e,{node:r,parentPath:n}=t;if(n.isLogicalExpression()){let{operator:s,right:i}=n.node;if(s==="&&"||s==="||"||s==="??"&&r===i)return Kb(n)}if(n.isSequenceExpression()){let{expressions:s}=n.node;return s[s.length-1]===r?Kb(n):!0}return n.isConditional({test:r})||n.isUnaryExpression({operator:"!"})||n.isLoop({test:r})}var{LOGICAL_OPERATORS:gge,arrowFunctionExpression:XI,assignmentExpression:ra,binaryExpression:Qs,booleanLiteral:bge,callExpression:Cf,cloneNode:Lr,conditionalExpression:Ege,identifier:eO,isMemberExpression:vge,isOptionalCallExpression:Tge,isOptionalMemberExpression:tO,isUpdateExpression:Sge,logicalExpression:Af,memberExpression:JI,nullLiteral:Pf,optionalCallExpression:xge,optionalMemberExpression:Pge,sequenceExpression:Wb,updateExpression:zI}=yge,Gb=class{constructor(){this._map=void 0,this._map=new WeakMap}has(t){return this._map.has(t)}get(t){if(!this.has(t))return;let r=this._map.get(t),{value:n}=r;return r.count--,r.count===0?ra("=",n,t):n}set(t,r,n){return this._map.set(t,{count:n,value:r})}};function QI(e,t){let{node:r}=e;if(tO(r))return JI(t,r.property,r.computed);if(e.isOptionalCallExpression()){let n=e.get("callee");if(e.node.optional&&n.isOptionalMemberExpression()){let s=n.node.object,i=e.scope.maybeGenerateMemoised(s);return n.get("object").replaceWith(ra("=",i,s)),Cf(JI(t,eO("call")),[i,...e.node.arguments])}return Cf(t,e.node.arguments)}return e.node}function Age(e){for(;e&&!e.isProgram();){let{parentPath:t,container:r,listKey:n}=e,s=t.node;if(n){if(r!==s[n])return!0}else if(r!==s)return!0;e=t}return!1}var Cge={memoise(){},handle(e,t){let{node:r,parent:n,parentPath:s,scope:i}=e;if(e.isOptionalMemberExpression()){if(Age(e))return;let a=e.find(({node:B,parent:M})=>tO(M)?M.optional||M.object!==B:Tge(M)?B!==e.node&&M.optional||M.callee!==B:!0);if(i.path.isPattern()){a.replaceWith(Cf(XI([],a.node),[]));return}let o=Kb(a),l=a.parentPath;if(l.isUpdateExpression({argument:r}))throw e.buildCodeFrameError("can't handle update expression");let u=l.isAssignmentExpression({left:a.node}),c=l.isUnaryExpression({operator:"delete"});if(c&&a.isOptionalMemberExpression()&&a.get("property").isPrivateName())throw e.buildCodeFrameError("can't delete a private class element");let f=e;for(;;){if(f.isOptionalMemberExpression()){if(f.node.optional)break;f=f.get("object");continue}else if(f.isOptionalCallExpression()){if(f.node.optional)break;f=f.get("callee");continue}throw new Error(`Internal error: unexpected ${f.node.type}`)}let d=f.isOptionalMemberExpression()?f.node.object:f.node.callee,m=i.maybeGenerateMemoised(d),y=m!=null?m:d,p=s.isOptionalCallExpression({callee:r}),E=B=>p,T=s.isCallExpression({callee:r});f.replaceWith(QI(f,y)),E()?n.optional?s.replaceWith(this.optionalCall(e,n.arguments)):s.replaceWith(this.call(e,n.arguments)):T?e.replaceWith(this.boundGet(e)):this.delete&&s.isUnaryExpression({operator:"delete"})?s.replaceWith(this.delete(e)):s.isAssignmentExpression()?ZI(this,e,s):e.replaceWith(this.get(e));let O=e.node;for(let B=e;B!==a;){let M=B.parentPath;if(M===a&&E()&&n.optional){O=M.node;break}O=QI(M,O),B=M}let C,v=a.parentPath;if(vge(O)&&v.isOptionalCallExpression({callee:a.node,optional:!0})){let{object:B}=O;C=e.scope.maybeGenerateMemoised(B),C&&(O.object=ra("=",C,B))}let I=a;(c||u)&&(I=v,O=v.node);let k=m?ra("=",Lr(y),Lr(d)):Lr(y);if(o){let B;t?B=Qs("!=",k,Pf()):B=Af("&&",Qs("!==",k,Pf()),Qs("!==",Lr(y),i.buildUndefinedNode())),I.replaceWith(Af("&&",B,O))}else{let B;t?B=Qs("==",k,Pf()):B=Af("||",Qs("===",k,Pf()),Qs("===",Lr(y),i.buildUndefinedNode())),I.replaceWith(Ege(B,c?bge(!0):i.buildUndefinedNode(),O))}if(C){let B=v.node;v.replaceWith(xge(Pge(B.callee,eO("call"),!1,!0),[Lr(C),...B.arguments],!1))}return}if(Sge(n,{argument:r})){if(this.simpleSet){e.replaceWith(this.simpleSet(e));return}let{operator:a,prefix:o}=n;this.memoise(e,2);let l=i.generateUidIdentifierBasedOnNode(r);i.push({id:l});let u=[ra("=",Lr(l),this.get(e))];if(o){u.push(zI(a,Lr(l),o));let c=Wb(u);s.replaceWith(this.set(e,c));return}else{let c=i.generateUidIdentifierBasedOnNode(r);i.push({id:c}),u.push(ra("=",Lr(c),zI(a,Lr(l),o)),Lr(l));let f=Wb(u);s.replaceWith(Wb([this.set(e,f),Lr(c)]));return}}if(s.isAssignmentExpression({left:r})){ZI(this,e,s);return}if(s.isCallExpression({callee:r})){s.replaceWith(this.call(e,s.node.arguments));return}if(s.isOptionalCallExpression({callee:r})){if(i.path.isPattern()){s.replaceWith(Cf(XI([],s.node),[]));return}s.replaceWith(this.optionalCall(e,s.node.arguments));return}if(this.delete&&s.isUnaryExpression({operator:"delete"})){s.replaceWith(this.delete(e));return}if(s.isForXStatement({left:r})||s.isObjectProperty({value:r})&&s.parentPath.isObjectPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isObjectProperty({value:n})&&s.parentPath.parentPath.isObjectPattern()||s.isArrayPattern()||s.isAssignmentPattern({left:r})&&s.parentPath.isArrayPattern()||s.isRestElement()){e.replaceWith(this.destructureSet(e));return}s.isTaggedTemplateExpression()?e.replaceWith(this.boundGet(e)):e.replaceWith(this.get(e))}};function ZI(e,t,r){if(e.simpleSet){t.replaceWith(e.simpleSet(t));return}let{operator:n,right:s}=r.node;if(n==="=")r.replaceWith(e.set(t,s));else{let i=n.slice(0,-1);gge.includes(i)?(e.memoise(t,1),r.replaceWith(Af(i,e.get(t),e.set(t,s)))):(e.memoise(t,2),r.replaceWith(e.set(t,Qs(i,e.get(t),s))))}}function wge(e,t,r){e.traverse(t,Object.assign({},Cge,r,{memoiser:new Gb}))}Hb.default=wge});var Jb=b(Xb=>{"use strict";Object.defineProperty(Xb,"__esModule",{value:!0});Xb.default=_ge;var Dge=Oe(),{callExpression:rO,identifier:wf,isIdentifier:Ige,isSpreadElement:Oge,memberExpression:nO,optionalCallExpression:sO,optionalMemberExpression:iO}=Dge;function _ge(e,t,r,n){return r.length===1&&Oge(r[0])&&Ige(r[0].argument,{name:"arguments"})?n?sO(iO(e,wf("apply"),!1,!0),[t,r[0].argument],!1):rO(nO(e,wf("apply")),[t,r[0].argument]):n?sO(iO(e,wf("call"),!1,!0),[t,...r],!1):rO(nO(e,wf("call")),[t,...r])}});var Xo=b(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.default=void 0;var oO=Jn(),Nge=Yb(),If=Jb(),Yo=ft(),{assignmentExpression:lO,booleanLiteral:kge,callExpression:Df,cloneNode:Mr,identifier:Ho,memberExpression:na,sequenceExpression:zb,stringLiteral:Bge,thisExpression:sa}=Yo.types;{let e=Jn();ia.environmentVisitor=e.default,ia.skipAllButComputedKey=e.skipAllButComputedKey}function aO(e,t,r,n){e=Mr(e);let s=t||n?e:na(e,Ho("prototype"));return Df(r.addHelper("getPrototypeOf"),[s])}var Fge=Yo.traverse.visitors.merge([oO.default,{Super(e,t){let{node:r,parentPath:n}=e;n.isMemberExpression({object:r})&&t.handle(n)}}]),jge=Yo.traverse.visitors.merge([oO.default,{Scopable(e,{refName:t}){let r=e.scope.getOwnBinding(t);r&&r.identifier.name===t&&e.scope.rename(t)}}]),uO={memoise(e,t){let{scope:r,node:n}=e,{computed:s,property:i}=n;if(!s)return;let a=r.maybeGenerateMemoised(i);a&&this.memoiser.set(i,a,t)},prop(e){let{computed:t,property:r}=e.node;return this.memoiser.has(r)?Mr(this.memoiser.get(r)):t?Mr(r):Bge(r.name)},get(e){return this._get(e,this._getThisRefs())},_get(e,t){let r=aO(this.getObjectRef(),this.isStatic,this.file,this.isPrivateMethod);return Df(this.file.addHelper("get"),[t.memo?zb([t.memo,r]):r,this.prop(e),t.this])},_getThisRefs(){if(!this.isDerivedConstructor)return{this:sa()};let e=this.scope.generateDeclaredUidIdentifier("thisSuper");return{memo:lO("=",e,sa()),this:Mr(e)}},set(e,t){let r=this._getThisRefs(),n=aO(this.getObjectRef(),this.isStatic,this.file,this.isPrivateMethod);return Df(this.file.addHelper("set"),[r.memo?zb([r.memo,n]):n,this.prop(e),t,r.this,kge(e.isInStrictMode())])},destructureSet(e){throw e.buildCodeFrameError("Destructuring to a super field is not supported yet.")},call(e,t){let r=this._getThisRefs();return(0,If.default)(this._get(e,r),Mr(r.this),t,!1)},optionalCall(e,t){let r=this._getThisRefs();return(0,If.default)(this._get(e,r),Mr(r.this),t,!0)},delete(e){return e.node.computed?zb([Df(this.file.addHelper("toPropertyKey"),[Mr(e.node.property)]),Yo.template.expression.ast` function () { throw new ReferenceError("'delete super[expr]' is invalid"); }() `]):Yo.template.expression.ast` function () { throw new ReferenceError("'delete super.prop' is invalid"); }() `}},Lge=Object.assign({},uO,{prop(e){let{property:t}=e.node;return this.memoiser.has(t)?Mr(this.memoiser.get(t)):Mr(t)},get(e){let{isStatic:t,getSuperRef:r}=this,{computed:n}=e.node,s=this.prop(e),i;if(t){var a;i=(a=r())!=null?a:na(Ho("Function"),Ho("prototype"))}else{var o;i=na((o=r())!=null?o:Ho("Object"),Ho("prototype"))}return na(i,s,n)},set(e,t){let{computed:r}=e.node,n=this.prop(e);return lO("=",na(sa(),n,r),t)},destructureSet(e){let{computed:t}=e.node,r=this.prop(e);return na(sa(),r,t)},call(e,t){return(0,If.default)(this.get(e),sa(),t,!1)},optionalCall(e,t){return(0,If.default)(this.get(e),sa(),t,!0)}}),Qb=class{constructor(t){var r;let n=t.methodPath;this.methodPath=n,this.isDerivedConstructor=n.isClassMethod({kind:"constructor"})&&!!t.superRef,this.isStatic=n.isObjectMethod()||n.node.static||(n.isStaticBlock==null?void 0:n.isStaticBlock()),this.isPrivateMethod=n.isPrivate()&&n.isMethod(),this.file=t.file,this.constantSuper=(r=t.constantSuper)!=null?r:t.isLoose,this.opts=t}getObjectRef(){return Mr(this.opts.objectRef||this.opts.getObjectRef())}getSuperRef(){if(this.opts.superRef)return Mr(this.opts.superRef);if(this.opts.getSuperRef)return Mr(this.opts.getSuperRef())}replace(){this.opts.refToPreserve&&this.methodPath.traverse(jge,{refName:this.opts.refToPreserve.name});let t=this.constantSuper?Lge:uO;(0,Nge.default)(this.methodPath,Fge,Object.assign({file:this.file,scope:this.methodPath.scope,isDerivedConstructor:this.isDerivedConstructor,isStatic:this.isStatic,isPrivateMethod:this.isPrivateMethod,getObjectRef:this.getObjectRef.bind(this),getSuperRef:this.getSuperRef.bind(this),boundGet:t.get},t))}};ia.default=Qb});var Of=b(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.isTransparentExprWrapper=Zb;Jo.skipTransparentExprWrapperNodes=Gge;Jo.skipTransparentExprWrappers=Kge;var Mge=Oe(),{isParenthesizedExpression:Rge,isTSAsExpression:qge,isTSNonNullExpression:Uge,isTSSatisfiesExpression:Vge,isTSTypeAssertion:$ge,isTypeCastExpression:Wge}=Mge;function Zb(e){return qge(e)||Vge(e)||$ge(e)||Uge(e)||Wge(e)||Rge(e)}function Kge(e){for(;Zb(e.node);)e=e.get("expression");return e}function Gge(e){for(;Zb(e);)e=e.expression;return e}});var vO=b(tE=>{"use strict";Object.defineProperty(tE,"__esModule",{value:!0});tE.default=gbe;var F=ft(),Hge=Xo(),cO=yi(),Zs=Of();function yO(e,t=e.length-1){if(t===-1){e.unshift(65);return}let r=e[t];r===90?e[t]=97:r===122?(e[t]=65,yO(e,t-1)):e[t]=r+1}function Yge(e){let t=[],r=new Set;return e.traverse({PrivateName(n){r.add(n.node.id.name)}}),()=>{let n;do yO(t),n=String.fromCharCode(...t);while(r.has(n));return F.types.privateName(F.types.identifier(n))}}function Xge(e){let t;return()=>(t||(t=Yge(e)),t())}function Jge(e,t){if(e.type==="ClassDeclaration"){let r=e.node.id,n=r.name,s=e.scope.generateUidIdentifierBasedOnNode(r),i=F.types.identifier(n);return e.scope.rename(n,s.name),e.get("id").replaceWith(i),{id:F.types.cloneNode(s),path:e}}else{let r;e.node.id?(t=e.node.id.name,r=e.scope.parent.generateDeclaredUidIdentifier(t),e.scope.rename(t,r.name)):r=e.scope.parent.generateDeclaredUidIdentifier(typeof t=="string"?t:"decorated_class");let n=F.types.classExpression(typeof t=="string"?F.types.identifier(t):null,e.node.superClass,e.node.body),[s]=e.replaceWith(F.types.sequenceExpression([n,r]));return{id:F.types.cloneNode(r),path:s.get("expressions.0")}}}function fO(e,t,r){return e.type==="PrivateName"?F.types.classPrivateProperty(e,t,void 0,r):F.types.classProperty(e,t,void 0,void 0,r)}function pO(e,t,r,n,s,i=!1){let{static:a}=t.node,o=s==="2023-05"&&a?e:F.types.thisExpression(),l=F.types.blockStatement([F.types.returnStatement(F.types.memberExpression(F.types.cloneNode(o),F.types.cloneNode(n)))]),u=F.types.blockStatement([F.types.expressionStatement(F.types.assignmentExpression("=",F.types.memberExpression(F.types.cloneNode(o),F.types.cloneNode(n)),F.types.identifier("v")))]),c,f;r.type==="PrivateName"?(c=F.types.classPrivateMethod("get",F.types.cloneNode(r),[],l,a),f=F.types.classPrivateMethod("set",F.types.cloneNode(r),[F.types.identifier("v")],u,a)):(c=F.types.classMethod("get",F.types.cloneNode(r),[],l,i,a),f=F.types.classMethod("set",F.types.cloneNode(r),[F.types.identifier("v")],u,i,a)),t.insertAfter(f),t.insertAfter(c)}function dO(e,t){return t!=="2023-05"&&t!=="2023-01"?[F.template.expression.ast` function () { return this.${F.types.cloneNode(e)}; } `,F.template.expression.ast` function (value) { this.${F.types.cloneNode(e)} = value; } `]:[F.template.expression.ast` o => o.${F.types.cloneNode(e)} `,F.template.expression.ast` (o, v) => o.${F.types.cloneNode(e)} = v `]}var aa=0,zo=1,zge=2,gO=3,_f=4,Qge=5,Zge=8,ebe=16;function tbe(e){switch(e.node.type){case"ClassProperty":case"ClassPrivateProperty":return aa;case"ClassAccessorProperty":return zo;case"ClassMethod":case"ClassPrivateMethod":return e.node.kind==="get"?gO:e.node.kind==="set"?_f:zge}}function rbe(e){return"decorators"in e}function bO(e){let t=e.filter(rbe);return[...t.filter(r=>r.isStatic&&r.kind>=zo&&r.kind<=_f),...t.filter(r=>!r.isStatic&&r.kind>=zo&&r.kind<=_f),...t.filter(r=>r.isStatic&&r.kind===aa),...t.filter(r=>!r.isStatic&&r.kind===aa)]}function EO(e,t,r){let n=e.length,s=t.some(Boolean),i=[];for(let a=0;a{let{decs:n,hasThis:s}=EO(r.decorators,r.decoratorsThis,t),i=r.kind;return r.isStatic&&(i+=t==="2023-05"?Zge:Qge),s&&(i+=ebe),F.types.arrayExpression([n.length===1?n[0]:F.types.arrayExpression(n),F.types.numericLiteral(i),r.name,...r.privateMethods||[]])}))}function sbe(e){let t=[];for(let r of bO(e)){let{locals:n}=r;Array.isArray(n)?t.push(...n):n!==void 0&&t.push(n)}return t}function ibe(e,t,r,n){e.insertAfter(F.types.classPrivateMethod("get",F.types.cloneNode(t),[],F.types.blockStatement([F.types.returnStatement(F.types.callExpression(F.types.cloneNode(r),[F.types.thisExpression()]))]))),e.insertAfter(F.types.classPrivateMethod("set",F.types.cloneNode(t),[F.types.identifier("v")],F.types.blockStatement([F.types.expressionStatement(F.types.callExpression(F.types.cloneNode(n),[F.types.thisExpression(),F.types.identifier("v")]))])))}function abe(e){return e.type!=="TSParameterProperty"}function obe(e,t,r,n){let s,i;e.node.kind==="set"?(s=[F.types.identifier("v")],i=[F.types.expressionStatement(F.types.callExpression(r,[F.types.thisExpression(),F.types.identifier("v")]))]):(s=[],i=[F.types.returnStatement(F.types.callExpression(r,[F.types.thisExpression()]))]),e.replaceWith(F.types.classPrivateMethod(e.node.kind,F.types.cloneNode(t),s,F.types.blockStatement(i),n))}function hO(e){let{type:t}=e;return t!=="TSDeclareMethod"&&t!=="TSIndexSignature"&&t!=="StaticBlock"}function mO(e){return F.types.callExpression(F.types.arrowFunctionExpression([],F.types.blockStatement(e.body)),[])}function lbe(e){return e.length===0?F.types.unaryExpression("void",F.types.numericLiteral(0)):e.length===1?e[0]:F.types.sequenceExpression(e)}function ube(e,t){return F.types.callExpression(e.addHelper("setFunctionName"),[F.types.thisExpression(),t])}function eE(e,t){return F.types.callExpression(e.addHelper("toPropertyKey"),[t])}function cbe(e,t,r,n,s,i){let a=e.get("body.body"),o=e.node.decorators,l=!1,u=Xge(e),c=[],f=e.scope.parent,d=(K,re)=>{let H=f.generateDeclaredUidIdentifier(re);return c.push(F.types.assignmentExpression("=",H,K)),F.types.cloneNode(H)};for(let K of a)if(hO(K)){if(K.node.decorators&&K.node.decorators.length>0){switch(K.node.type){case"ClassProperty":i.ClassProperty(K,t);break;case"ClassPrivateProperty":i.ClassPrivateProperty(K,t);break;case"ClassAccessorProperty":i.ClassAccessorProperty(K,t);break}l=!0}else if(K.node.type==="ClassAccessorProperty"){i.ClassAccessorProperty(K,t);let{key:re,value:H,static:me,computed:De}=K.node,Le=u(),U=fO(Le,H,me),V=K.get("key"),[Z]=K.replaceWith(U);pO(e.node.id,Z,De&&!V.isConstantExpression()?d(eE(t,re),"computedKey"):re,Le,n,De)}}if(!o&&!l){c.length>0&&(e.insertBefore(c.map(K=>F.types.expressionStatement(K))),e.scope.crawl());return}let m=[],y,p,E=!1,T=!1,O=new Set,C,v,I,k,B=new Map,M=K=>{let{expression:re}=K;if(n==="2023-05"&&F.types.isMemberExpression(re)){let H;F.types.isSuper(re.object)||F.types.isThisExpression(re.object)?H=d(F.types.thisExpression(),"obj"):f.isStatic(re.object)?H=re.object:(H=d(re.object,"obj"),re.object=H),B.set(K,F.types.cloneNode(H))}f.isStatic(re)||(K.expression=d(re,"dec"))},X=!1;if(o){I=f.generateDeclaredUidIdentifier("initClass"),X=e.isClassDeclaration(),{id:k,path:e}=Jge(e,s),e.node.decorators=null;for(let K of o)M(K)}else e.node.id||(e.node.id=e.scope.generateUidIdentifier("Class")),k=F.types.cloneNode(e.node.id);let oe,he=!1;if(l)for(let K of a){if(!hO(K))continue;let{node:re}=K,H=K.get("decorators"),me=Array.isArray(H)&&H.length>0;if(me)for(let ve of H)M(ve.node);let De="computed"in K.node&&K.node.computed===!0;De&&(K.get("key").isConstantExpression()||(re.key=d(eE(t,re.key),"computedKey")));let Le=tbe(K),{key:U}=re,V=U.type==="PrivateName",Z=!!K.node.static,ae="computedKey";if(V?ae=U.id.name:!De&&U.type==="Identifier"&&(ae=U.name),V&&!Z&&(me&&(he=!0),(F.types.isClassPrivateProperty(re)||!oe)&&(oe=U)),K.isClassMethod({kind:"constructor"})&&(p=K),me){let ve,ge;if(Le===zo){let{value:Fe}=K.node,Be=[F.types.thisExpression()];Fe&&Be.push(F.types.cloneNode(Fe));let Re=u(),ht=K.scope.parent.generateDeclaredUidIdentifier(`init_${ae}`),bt=F.types.callExpression(F.types.cloneNode(ht),Be),_t=fO(Re,bt,Z),[kt]=K.replaceWith(_t);if(V){ge=dO(Re,n);let Gt=kt.scope.parent.generateDeclaredUidIdentifier(`get_${ae}`),Ar=kt.scope.parent.generateDeclaredUidIdentifier(`set_${ae}`);ibe(kt,U,Gt,Ar),ve=[ht,Gt,Ar]}else pO(e.node.id,kt,U,Re,n,De),ve=ht}else if(Le===aa){let Fe=K.scope.parent.generateDeclaredUidIdentifier(`init_${ae}`),Be=K.get("value");Be.replaceWith(F.types.callExpression(F.types.cloneNode(Fe),[F.types.thisExpression(),Be.node].filter(Re=>Re))),ve=Fe,V&&(ge=dO(U,n))}else if(V){ve=K.scope.parent.generateDeclaredUidIdentifier(`call_${ae}`),new Hge.default({constantSuper:r,methodPath:K,objectRef:k,superRef:e.node.superClass,file:t.file,refToPreserve:k}).replace();let{params:Be,body:Re,async:ht}=K.node;if(ge=[F.types.functionExpression(void 0,Be.filter(abe),Re,ht)],Le===gO||Le===_f)obe(K,F.types.cloneNode(U),F.types.cloneNode(ve),Z);else{let bt=K.node;e.node.body.body.unshift(F.types.classPrivateProperty(U,F.types.cloneNode(ve),[],bt.static)),O.add(U.id.name),K.remove()}}let Ce;De?Ce=F.types.cloneNode(U):U.type==="PrivateName"?Ce=F.types.stringLiteral(U.id.name):U.type==="Identifier"?Ce=F.types.stringLiteral(U.name):Ce=F.types.cloneNode(U),m.push({kind:Le,decorators:H.map(Fe=>Fe.node.expression),decoratorsThis:H.map(Fe=>B.get(Fe.node)),name:Ce,isStatic:Z,privateMethods:ge,locals:ve}),Le!==aa&&(Z?T=!0:E=!0),K.node&&(K.node.decorators=null),!y&&!Z&&(Le===aa||Le===zo)&&(y=K)}}let be=nbe(m,n),nt=0,ct=[];if(o){let{hasThis:K,decs:re}=EO(o.map(H=>H.expression),o.map(H=>B.get(H)),n);nt=K?1:0,ct=re}let $=sbe(m);if(E){C=f.generateDeclaredUidIdentifier("initProto"),$.push(C);let K=F.types.callExpression(F.types.cloneNode(C),[F.types.thisExpression()]);if(y){let re=y.get("value"),H=[K];re.node&&H.push(re.node),re.replaceWith(F.types.sequenceExpression(H))}else if(p)e.node.superClass?p.traverse({CallExpression:{exit(re){re.get("callee").isSuper()&&(re.replaceWith(F.types.callExpression(F.types.cloneNode(C),[re.node])),re.skip())}},ClassMethod(re){re.node.kind==="constructor"&&re.skip()}}):p.node.body.body.unshift(F.types.expressionStatement(K));else{let re=[F.types.expressionStatement(K)];e.node.superClass&&re.unshift(F.types.expressionStatement(F.types.callExpression(F.types.super(),[F.types.spreadElement(F.types.identifier("args"))]))),e.node.body.body.unshift(F.types.classMethod("constructor",F.types.identifier("constructor"),[F.types.restElement(F.types.identifier("args"))],F.types.blockStatement(re)))}}T&&(v=f.generateDeclaredUidIdentifier("initStatic"),$.push(v)),O.size>0&&e.traverse({PrivateName(K){if(!O.has(K.node.id.name))return;let re=K.parentPath,H=re.parentPath;if(H.node.type==="AssignmentExpression"&&H.node.left===re.node||H.node.type==="UpdateExpression"||H.node.type==="RestElement"||H.node.type==="ArrayPattern"||H.node.type==="ObjectProperty"&&H.node.value===re.node&&H.parentPath.type==="ObjectPattern"||H.node.type==="ForOfStatement"&&H.node.left===re.node)throw K.buildCodeFrameError(`Decorated private methods are not updatable, but "#${K.node.id.name}" is updated via this expression.`)}});let z=[],de=!1,J=I&&F.types.callExpression(F.types.cloneNode(I),[]),ee=e.node;if(o){z.push(k,I);let K=[],re=[];if(e.get("body.body").forEach(H=>{if(H.isStaticBlock()){re.push(H.node),H.remove();return}let me=H.isClassProperty()||H.isClassPrivateProperty();if((me||H.isClassPrivateMethod())&&H.node.static){if(me&&re.length>0){let De=re.map(mO);H.node.value&&De.push(H.node.value),H.node.value=lbe(De),re=[]}H.node.static=!1,K.push(H.node),H.remove()}}),K.length>0||re.length>0){let H=F.template.expression.ast` class extends ${t.addHelper("identity")} {} `;H.body.body=[F.types.staticBlock([F.types.toStatement(ee,!0)||F.types.expressionStatement(ee)]),...K];let me=[],De=F.types.newExpression(H,[]);re.length>0&&me.push(...re.map(mO)),J&&(de=!0,me.push(J)),me.length>0?(me.unshift(F.types.callExpression(F.types.super(),[F.types.cloneNode(k)])),H.body.body.push(F.types.classMethod("constructor",F.types.identifier("constructor"),[],F.types.blockStatement([F.types.expressionStatement(F.types.sequenceExpression(me))])))):De.arguments.push(F.types.cloneNode(k)),e.replaceWith(De)}}!de&&J&&e.node.body.body.push(F.types.staticBlock([F.types.expressionStatement(J)]));let{superClass:te}=ee;if(te&&n==="2023-05"){let K=e.scope.maybeGenerateMemoised(te);K&&(ee.superClass=F.types.assignmentExpression("=",K,te),te=K)}return ee.body.body.unshift(F.types.staticBlock([F.types.expressionStatement(fbe($,z,be,F.types.arrayExpression(ct),F.types.numericLiteral(nt),he?oe:null,typeof s=="object"?s:void 0,F.types.cloneNode(te),t,n)),T&&F.types.expressionStatement(F.types.callExpression(F.types.cloneNode(v),[F.types.thisExpression()]))].filter(Boolean))),e.insertBefore(c.map(K=>F.types.expressionStatement(K))),X&&e.insertBefore(F.types.variableDeclaration("let",[F.types.variableDeclarator(F.types.cloneNode(k))])),e.scope.crawl(),e}function fbe(e,t,r,n,s,i,a,o,l,u){let c,f,d=[a?ube(l,a):F.types.thisExpression(),r,n];if(u==="2021-12"||u==="2022-03"&&!l.availableHelper("applyDecs2203R")){let m=F.types.arrayPattern([...e,...t]),y=F.types.callExpression(l.addHelper(u==="2021-12"?"applyDecs":"applyDecs2203"),d);return F.types.assignmentExpression("=",m,y)}return u==="2023-05"?((i||o||s.value!==0)&&d.push(s),i?d.push(F.template.expression.ast` _ => ${F.types.cloneNode(i)} in _ `):o&&d.push(F.types.unaryExpression("void",F.types.numericLiteral(0))),o&&d.push(o),f=F.types.callExpression(l.addHelper("applyDecs2305"),d)):u==="2023-01"?(i&&d.push(F.template.expression.ast` _ => ${F.types.cloneNode(i)} in _ `),f=F.types.callExpression(l.addHelper("applyDecs2301"),d)):f=F.types.callExpression(l.addHelper("applyDecs2203R"),d),e.length>0?t.length>0?c=F.types.objectPattern([F.types.objectProperty(F.types.identifier("e"),F.types.arrayPattern(e)),F.types.objectProperty(F.types.identifier("c"),F.types.arrayPattern(t))]):(c=F.types.arrayPattern(e),f=F.types.memberExpression(f,F.types.identifier("e"),!1,!1)):(c=F.types.arrayPattern(t),f=F.types.memberExpression(f,F.types.identifier("c"),!1,!1)),F.types.assignmentExpression("=",c,f)}function pbe(e){return e.type==="Identifier"?e.name==="__proto__":e.value==="__proto__"}function Nf(e){return e.decorators&&e.decorators.length>0}function dbe(e){switch(e.type){case"ClassAccessorProperty":return!0;case"ClassMethod":case"ClassProperty":case"ClassPrivateMethod":case"ClassPrivateProperty":return Nf(e);default:return!1}}function hbe(e){return Nf(e)||e.body.body.some(dbe)}function mbe(e,t){function r(n,s,i){switch(s.type){case"StringLiteral":return F.types.stringLiteral(s.value);case"NumericLiteral":case"BigIntLiteral":{let a=s.value+"";return n.get("key").replaceWith(F.types.stringLiteral(a)),F.types.stringLiteral(a)}default:{let a=n.scope.maybeGenerateMemoised(s);return n.get("key").replaceWith(F.types.assignmentExpression("=",a,eE(i,s))),F.types.cloneNode(a)}}}return{VariableDeclarator(n,s){let i=n.node.id;if(i.type==="Identifier"){let a=(0,Zs.skipTransparentExprWrappers)(n.get("init"));if(e(a)){let o=i.name;t(a,s,o)}}},AssignmentExpression(n,s){let i=n.node.left;if(i.type==="Identifier"){let a=(0,Zs.skipTransparentExprWrappers)(n.get("right"));if(e(a))switch(n.node.operator){case"=":case"&&=":case"||=":case"??=":t(a,s,i.name)}}},AssignmentPattern(n,s){let i=n.node.left;if(i.type==="Identifier"){let a=(0,Zs.skipTransparentExprWrappers)(n.get("right"));if(e(a)){let o=i.name;t(a,s,o)}}},ObjectExpression(n,s){for(let i of n.get("properties")){let{node:a}=i;if(a.type!=="ObjectProperty")continue;let o=a.key,l=(0,Zs.skipTransparentExprWrappers)(i.get("value"));if(e(l)){if(a.computed){let u=r(i,o,s);t(l,s,u)}else if(!pbe(o))if(o.type==="Identifier")t(l,s,o.name);else{let u=F.types.stringLiteral(o.value+"");t(l,s,u)}}}},ClassPrivateProperty(n,s){let{node:i}=n,a=(0,Zs.skipTransparentExprWrappers)(n.get("value"));if(e(a)){let o=F.types.stringLiteral("#"+i.key.id.name);t(a,s,o)}},ClassAccessorProperty(n,s){let{node:i}=n,a=i.key,o=(0,Zs.skipTransparentExprWrappers)(n.get("value"));if(e(o))if(i.computed){let l=r(n,a,s);t(o,s,l)}else if(a.type==="Identifier")t(o,s,a.name);else if(a.type==="PrivateName"){let l=F.types.stringLiteral("#"+a.id.name);t(o,s,l)}else{let l=F.types.stringLiteral(a.value+"");t(o,s,l)}},ClassProperty(n,s){let{node:i}=n,a=i.key,o=(0,Zs.skipTransparentExprWrappers)(n.get("value"));if(e(o))if(i.computed){let l=r(n,a,s);t(o,s,l)}else if(a.type==="Identifier")t(o,s,a.name);else{let l=F.types.stringLiteral(a.value+"");t(o,s,l)}}}}function ybe(e){return e.isClassExpression({id:null})&&hbe(e.node)}function gbe({assertVersion:e,assumption:t},{loose:r},n,s){var i;e(n==="2023-05"||n==="2023-01"?"^7.21.0":n==="2021-12"?"^7.16.0":"^7.19.0");let a=new WeakSet,o=(i=t("constantSuper"))!=null?i:r,l=mbe(ybe,u);function u(c,f,d){var m,y;if(a.has(c))return;let{node:p}=c;(m=d)!=null||(d=(y=p.id)==null?void 0:y.name);let E=cbe(c,f,o,n,d,l);if(E){a.add(E);return}a.add(c)}return{name:"proposal-decorators",inherits:s,visitor:Object.assign({ExportDefaultDeclaration(c,f){let{declaration:d}=c.node;if((d==null?void 0:d.type)==="ClassDeclaration"&&Nf(d)){let m=!d.id,y=(0,cO.default)(c);m&&u(y,f,F.types.stringLiteral("default"))}},ExportNamedDeclaration(c){let{declaration:f}=c.node;(f==null?void 0:f.type)==="ClassDeclaration"&&Nf(f)&&(0,cO.default)(c)},Class(c,f){u(c,f,void 0)}},l)}}});var kf=b(rE=>{"use strict";Object.defineProperty(rE,"__esModule",{value:!0});rE.default=Sbe;var bbe=Oe(),{addComment:Ebe}=bbe,vbe="#__PURE__",Tbe=({leadingComments:e})=>!!e&&e.some(t=>/[@#]__PURE__/.test(t.value));function Sbe(e){let t=e.node||e;Tbe(t)||Ebe(t,"leading",vbe)}});var sE=b(nE=>{"use strict";Object.defineProperty(nE,"__esModule",{value:!0});nE.assertFieldTransformed=xbe;function xbe(e){if(e.node.declare)throw e.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by @babel/plugin-transform-typescript. If you have already enabled that plugin (or '@babel/preset-typescript'), make sure that it runs before any plugin related to additional class features: - @babel/plugin-transform-class-properties - @babel/plugin-transform-private-methods - @babel/plugin-proposal-decorators`)}});var IO=b(ei=>{"use strict";Object.defineProperty(ei,"__esModule",{value:!0});ei.buildCheckInRHS=Ff;ei.buildFieldsInitNodes=Gbe;ei.buildPrivateNamesMap=Ibe;ei.buildPrivateNamesNodes=Obe;ei.transformPrivateNamesUsage=Fbe;var q=ft(),Pbe=Xo(),CO=Jn(),Abe=Yb(),TO=Jb(),Cbe=kf(),wbe=Of(),Dbe=sE();function Ibe(e){let t=new Map;for(let r of e)if(r.isPrivate()){let{name:n}=r.node.key.id,s=t.has(n)?t.get(n):{id:r.scope.generateUidIdentifier(n),static:r.node.static,method:!r.isProperty()};r.isClassPrivateMethod()&&(r.node.kind==="get"?s.getId=r.scope.generateUidIdentifier(`get_${n}`):r.node.kind==="set"?s.setId=r.scope.generateUidIdentifier(`set_${n}`):r.node.kind==="method"&&(s.methodId=r.scope.generateUidIdentifier(n))),t.set(n,s)}return t}function Obe(e,t,r,n){let s=[];for(let[i,a]of e){let{static:o,method:l,getId:u,setId:c}=a,f=u||c,d=q.types.cloneNode(a.id),m;t?m=q.types.callExpression(n.addHelper("classPrivateFieldLooseKey"),[q.types.stringLiteral(i)]):r?m=q.types.callExpression(q.types.identifier("Symbol"),[q.types.stringLiteral(i)]):o||(m=q.types.newExpression(q.types.identifier(!l||f?"WeakMap":"WeakSet"),[])),m&&((0,Cbe.default)(m),s.push(q.template.statement.ast`var ${d} = ${m}`))}return s}function wO(e){let t=q.traverse.visitors.merge([Object.assign({},e),CO.default]),r=Object.assign({},e,{Class(n){let{privateNamesMap:s}=this,i=n.get("body.body"),a=new Map(s),o=[];for(let l of i){if(!l.isPrivate())continue;let{name:u}=l.node.key.id;a.delete(u),o.push(u)}o.length&&(n.get("body").traverse(t,Object.assign({},this,{redeclared:o})),n.traverse(r,Object.assign({},this,{privateNamesMap:a})),n.skipKey("body"))}});return r}var _be=wO({PrivateName(e,{noDocumentAll:t}){let{privateNamesMap:r,redeclared:n}=this,{node:s,parentPath:i}=e;if(!i.isMemberExpression({property:s})&&!i.isOptionalMemberExpression({property:s}))return;let{name:a}=s.id;r.has(a)&&(n&&n.includes(a)||this.handle(i,t))}});function DO(e,t,r){for(;(n=t)!=null&&n.hasBinding(e)&&!t.bindingIdentifierEquals(e,r);){var n;t.rename(e),t=t.parent}}function Ff(e,t,r){return r||!(t.availableHelper!=null&&t.availableHelper("checkInRHS"))?e:q.types.callExpression(t.addHelper("checkInRHS"),[e])}var Nbe=wO({BinaryExpression(e,{file:t}){let{operator:r,left:n,right:s}=e.node;if(r!=="in"||!q.types.isPrivateName(n))return;let{privateFieldsAsProperties:i,privateNamesMap:a,redeclared:o}=this,{name:l}=n.id;if(!a.has(l)||o&&o.includes(l))return;if(DO(this.classRef.name,e.scope,this.innerBinding),i){let{id:f}=a.get(l);e.replaceWith(q.template.expression.ast` Object.prototype.hasOwnProperty.call(${Ff(s,t)}, ${q.types.cloneNode(f)}) `);return}let{id:u,static:c}=a.get(l);if(c){e.replaceWith(q.template.expression.ast`${Ff(s,t)} === ${q.types.cloneNode(this.classRef)}`);return}e.replaceWith(q.template.expression.ast`${q.types.cloneNode(u)}.has(${Ff(s,t)})`)}}),kbe={memoise(e,t){let{scope:r}=e,{object:n}=e.node,s=r.maybeGenerateMemoised(n);s&&this.memoiser.set(n,s,t)},receiver(e){let{object:t}=e.node;return this.memoiser.has(t)?q.types.cloneNode(this.memoiser.get(t)):q.types.cloneNode(t)},get(e){let{classRef:t,privateNamesMap:r,file:n,innerBinding:s}=this,{name:i}=e.node.property.id,{id:a,static:o,method:l,methodId:u,getId:c,setId:f}=r.get(i),d=c||f;if(o){let m=l&&!d?"classStaticPrivateMethodGet":"classStaticPrivateFieldSpecGet";return DO(t.name,e.scope,s),q.types.callExpression(n.addHelper(m),[this.receiver(e),q.types.cloneNode(t),q.types.cloneNode(a)])}if(l){if(d){if(!c&&f){if(n.availableHelper("writeOnlyError"))return q.types.sequenceExpression([this.receiver(e),q.types.callExpression(n.addHelper("writeOnlyError"),[q.types.stringLiteral(`#${i}`)])]);console.warn("@babel/helpers is outdated, update it to silence this warning.")}return q.types.callExpression(n.addHelper("classPrivateFieldGet"),[this.receiver(e),q.types.cloneNode(a)])}return q.types.callExpression(n.addHelper("classPrivateMethodGet"),[this.receiver(e),q.types.cloneNode(a),q.types.cloneNode(u)])}return q.types.callExpression(n.addHelper("classPrivateFieldGet"),[this.receiver(e),q.types.cloneNode(a)])},boundGet(e){return this.memoise(e,1),q.types.callExpression(q.types.memberExpression(this.get(e),q.types.identifier("bind")),[this.receiver(e)])},set(e,t){let{classRef:r,privateNamesMap:n,file:s}=this,{name:i}=e.node.property.id,{id:a,static:o,method:l,setId:u,getId:c}=n.get(i),f=c||u;if(o){let d=l&&!f?"classStaticPrivateMethodSet":"classStaticPrivateFieldSpecSet";return q.types.callExpression(s.addHelper(d),[this.receiver(e),q.types.cloneNode(r),q.types.cloneNode(a),t])}return l?u?q.types.callExpression(s.addHelper("classPrivateFieldSet"),[this.receiver(e),q.types.cloneNode(a),t]):q.types.sequenceExpression([this.receiver(e),t,q.types.callExpression(s.addHelper("readOnlyError"),[q.types.stringLiteral(`#${i}`)])]):q.types.callExpression(s.addHelper("classPrivateFieldSet"),[this.receiver(e),q.types.cloneNode(a),t])},destructureSet(e){let{classRef:t,privateNamesMap:r,file:n}=this,{name:s}=e.node.property.id,{id:i,static:a}=r.get(s);if(a){try{var o=n.addHelper("classStaticPrivateFieldDestructureSet")}catch{throw new Error("Babel can not transpile `[C.#p] = [0]` with @babel/helpers < 7.13.10, \nplease update @babel/helpers to the latest version.")}return q.types.memberExpression(q.types.callExpression(o,[this.receiver(e),q.types.cloneNode(t),q.types.cloneNode(i)]),q.types.identifier("value"))}return q.types.memberExpression(q.types.callExpression(n.addHelper("classPrivateFieldDestructureSet"),[this.receiver(e),q.types.cloneNode(i)]),q.types.identifier("value"))},call(e,t){return this.memoise(e,1),(0,TO.default)(this.get(e),this.receiver(e),t,!1)},optionalCall(e,t){return this.memoise(e,1),(0,TO.default)(this.get(e),this.receiver(e),t,!0)},delete(){throw new Error("Internal Babel error: deleting private elements is a parsing error.")}},Bbe={get(e){let{privateNamesMap:t,file:r}=this,{object:n}=e.node,{name:s}=e.node.property.id;return q.template.expression`BASE(REF, PROP)[PROP]`({BASE:r.addHelper("classPrivateFieldLooseBase"),REF:q.types.cloneNode(n),PROP:q.types.cloneNode(t.get(s).id)})},set(){throw new Error("private name handler with loose = true don't need set()")},boundGet(e){return q.types.callExpression(q.types.memberExpression(this.get(e),q.types.identifier("bind")),[q.types.cloneNode(e.node.object)])},simpleSet(e){return this.get(e)},destructureSet(e){return this.get(e)},call(e,t){return q.types.callExpression(this.get(e),t)},optionalCall(e,t){return q.types.optionalCallExpression(this.get(e),t,!0)},delete(){throw new Error("Internal Babel error: deleting private elements is a parsing error.")}};function Fbe(e,t,r,{privateFieldsAsProperties:n,noDocumentAll:s,innerBinding:i},a){if(!r.size)return;let o=t.get("body"),l=n?Bbe:kbe;(0,Abe.default)(o,_be,Object.assign({privateNamesMap:r,classRef:e,file:a},l,{noDocumentAll:s,innerBinding:i})),o.traverse(Nbe,{privateNamesMap:r,classRef:e,file:a,privateFieldsAsProperties:n,innerBinding:i})}function SO(e,t,r){let{id:n}=r.get(t.node.key.id.name),s=t.node.value||t.scope.buildUndefinedNode();return Kt(q.template.statement.ast` Object.defineProperty(${e}, ${q.types.cloneNode(n)}, { // configurable is false by default // enumerable is false by default writable: true, value: ${s} }); `,t)}function jbe(e,t,r,n){let{id:s}=r.get(t.node.key.id.name),i=t.node.value||t.scope.buildUndefinedNode();if(!n.availableHelper("classPrivateFieldInitSpec"))return Kt(q.template.statement.ast`${q.types.cloneNode(s)}.set(${e}, { // configurable is always false for private elements // enumerable is always false for private elements writable: true, value: ${i}, })`,t);let a=n.addHelper("classPrivateFieldInitSpec");return Kt(q.template.statement.ast`${a}( ${q.types.thisExpression()}, ${q.types.cloneNode(s)}, { writable: true, value: ${i} }, )`,t)}function xO(e,t){let r=t.get(e.node.key.id.name),{id:n,getId:s,setId:i,initAdded:a}=r,o=s||i;if(!e.isProperty()&&(a||!o))return;if(o)return t.set(e.node.key.id.name,Object.assign({},r,{initAdded:!0})),Kt(q.template.statement.ast` var ${q.types.cloneNode(n)} = { // configurable is false by default // enumerable is false by default // writable is false by default get: ${s?s.name:e.scope.buildUndefinedNode()}, set: ${i?i.name:e.scope.buildUndefinedNode()} } `,e);let l=e.node.value||e.scope.buildUndefinedNode();return Kt(q.template.statement.ast` var ${q.types.cloneNode(n)} = { // configurable is false by default // enumerable is false by default writable: true, value: ${l} }; `,e)}function Lbe(e,t,r){let n=r.get(t.node.key.id.name),{methodId:s,id:i,getId:a,setId:o,initAdded:l}=n;if(l)return;if(s)return Kt(q.template.statement.ast` Object.defineProperty(${e}, ${i}, { // configurable is false by default // enumerable is false by default // writable is false by default value: ${s.name} }); `,t);if(a||o)return r.set(t.node.key.id.name,Object.assign({},n,{initAdded:!0})),Kt(q.template.statement.ast` Object.defineProperty(${e}, ${i}, { // configurable is false by default // enumerable is false by default // writable is false by default get: ${a?a.name:t.scope.buildUndefinedNode()}, set: ${o?o.name:t.scope.buildUndefinedNode()} }); `,t)}function Mbe(e,t,r,n){let s=r.get(t.node.key.id.name),{getId:i,setId:a,initAdded:o}=s;return o?void 0:i||a?Rbe(e,t,r,n):qbe(e,t,r,n)}function Rbe(e,t,r,n){let s=r.get(t.node.key.id.name),{id:i,getId:a,setId:o}=s;if(r.set(t.node.key.id.name,Object.assign({},s,{initAdded:!0})),!n.availableHelper("classPrivateFieldInitSpec"))return Kt(q.template.statement.ast` ${i}.set(${e}, { get: ${a?a.name:t.scope.buildUndefinedNode()}, set: ${o?o.name:t.scope.buildUndefinedNode()} }); `,t);let l=n.addHelper("classPrivateFieldInitSpec");return Kt(q.template.statement.ast`${l}( ${q.types.thisExpression()}, ${q.types.cloneNode(i)}, { get: ${a?a.name:t.scope.buildUndefinedNode()}, set: ${o?o.name:t.scope.buildUndefinedNode()} }, )`,t)}function qbe(e,t,r,n){let s=r.get(t.node.key.id.name),{id:i}=s;if(!n.availableHelper("classPrivateMethodInitSpec"))return Kt(q.template.statement.ast`${i}.add(${e})`,t);let a=n.addHelper("classPrivateMethodInitSpec");return Kt(q.template.statement.ast`${a}( ${q.types.thisExpression()}, ${q.types.cloneNode(i)} )`,t)}function PO(e,t){let{key:r,computed:n}=t.node,s=t.node.value||t.scope.buildUndefinedNode();return Kt(q.types.expressionStatement(q.types.assignmentExpression("=",q.types.memberExpression(e,r,n||q.types.isLiteral(r)),s)),t)}function AO(e,t,r){let{key:n,computed:s}=t.node,i=t.node.value||t.scope.buildUndefinedNode();return Kt(q.types.expressionStatement(q.types.callExpression(r.addHelper("defineProperty"),[e,s||q.types.isLiteral(n)?n:q.types.stringLiteral(n.name),i])),t)}function Ube(e,t,r,n){let s=n.get(t.node.key.id.name),{id:i,methodId:a,getId:o,setId:l,initAdded:u}=s;return u?void 0:o||l?(n.set(t.node.key.id.name,Object.assign({},s,{initAdded:!0})),Kt(q.template.statement.ast` Object.defineProperty(${e}, ${i}, { // configurable is false by default // enumerable is false by default // writable is false by default get: ${o?o.name:t.scope.buildUndefinedNode()}, set: ${l?l.name:t.scope.buildUndefinedNode()} }) `,t)):Kt(q.template.statement.ast` Object.defineProperty(${e}, ${i}, { // configurable is false by default // enumerable is false by default // writable is false by default value: ${a.name} }); `,t)}function Bf(e,t,r=!1){let n=t.get(e.node.key.id.name),{id:s,methodId:i,getId:a,setId:o,getterDeclared:l,setterDeclared:u,static:c}=n,{params:f,body:d,generator:m,async:y}=e.node,p=a&&!l&&f.length===0,E=o&&!u&&f.length>0,T=i;return p?(t.set(e.node.key.id.name,Object.assign({},n,{getterDeclared:!0})),T=a):E?(t.set(e.node.key.id.name,Object.assign({},n,{setterDeclared:!0})),T=o):c&&!r&&(T=s),Kt(q.types.functionDeclaration(q.types.cloneNode(T),f,d,m,y),e)}var Vbe=q.traverse.visitors.merge([{UnaryExpression(e){let{node:t}=e;if(t.operator==="delete"){let r=(0,wbe.skipTransparentExprWrapperNodes)(t.argument);q.types.isThisExpression(r)&&e.replaceWith(q.types.booleanLiteral(!0))}},ThisExpression(e,t){t.needsClassRef=!0,e.replaceWith(q.types.cloneNode(t.classRef))},MetaProperty(e){let{node:t,scope:r}=e;t.meta.name==="new"&&t.property.name==="target"&&e.replaceWith(r.buildUndefinedNode())}},CO.default]),$be={ReferencedIdentifier(e,t){e.scope.bindingIdentifierEquals(e.node.name,t.innerBinding)&&(t.needsClassRef=!0,e.node.name=t.classRef.name)}};function Wbe(e,t,r){var n;let s={classRef:t,needsClassRef:!1,innerBinding:r};return e.isMethod()||e.traverse(Vbe,s),r!=null&&(n=s.classRef)!=null&&n.name&&s.classRef.name!==r.name&&e.traverse($be,s),s.needsClassRef}function Kbe({key:e,computed:t}){return e.type==="Identifier"?!t&&(e.name==="name"||e.name==="length"):e.type==="StringLiteral"?e.value==="name"||e.value==="length":!1}function Kt(e,t){return q.types.inheritLeadingComments(e,t.node),q.types.inheritInnerComments(e,t.node),e}function Gbe(e,t,r,n,s,i,a,o,l){var u,c;let f=0,d,m=[],y=[],p=!1,E=[],T=null,O=q.types.isIdentifier(t)?()=>t:()=>{var v;return(v=d)!=null||(d=r[0].scope.generateUidIdentifierBasedOnNode(t)),d},C=(u=e)!=null?u:r[0].scope.generateUidIdentifier("class");(c=e)!=null||(e=q.types.cloneNode(l));for(let v of r){v.isClassProperty()&&Dbe.assertFieldTransformed(v);let I=!(q.types.isStaticBlock!=null&&q.types.isStaticBlock(v.node))&&v.node.static,k=!I,B=v.isPrivate(),M=!B,X=v.isProperty(),oe=!X,he=v.isStaticBlock==null?void 0:v.isStaticBlock();switch(I&&(f|=1),(I||oe&&B||he)&&(new Pbe.default({methodPath:v,constantSuper:o,file:s,refToPreserve:l,getSuperRef:O,getObjectRef(){return f|=2,I||he?C:q.types.memberExpression(C,q.types.identifier("prototype"))}}).replace(),Wbe(v,C,l)&&(f|=2)),p=!1,!0){case he:{let be=v.node.body;be.length===1&&q.types.isExpressionStatement(be[0])?m.push(Kt(be[0],v)):m.push(q.types.inheritsComments(q.template.statement.ast`(() => { ${be} })()`,v.node));break}case(I&&B&&X&&a):m.push(SO(q.types.cloneNode(e),v,n));break;case(I&&B&&X&&!a):m.push(xO(v,n));break;case(I&&M&&X&&i):if(!Kbe(v.node)){m.push(PO(q.types.cloneNode(e),v));break}case(I&&M&&X&&!i):m.push(AO(q.types.cloneNode(e),v,s));break;case(k&&B&&X&&a):y.push(SO(q.types.thisExpression(),v,n));break;case(k&&B&&X&&!a):y.push(jbe(q.types.thisExpression(),v,n,s));break;case(k&&B&&oe&&a):y.unshift(Lbe(q.types.thisExpression(),v,n)),E.push(Bf(v,n,a));break;case(k&&B&&oe&&!a):y.unshift(Mbe(q.types.thisExpression(),v,n,s)),E.push(Bf(v,n,a));break;case(I&&B&&oe&&!a):m.unshift(xO(v,n)),E.push(Bf(v,n,a));break;case(I&&B&&oe&&a):m.unshift(Ube(q.types.cloneNode(e),v,s,n)),E.push(Bf(v,n,a));break;case(k&&M&&X&&i):y.push(PO(q.types.thisExpression(),v));break;case(k&&M&&X&&!i):p=!0,y.push(AO(q.types.thisExpression(),v,s));break;default:throw new Error("Unreachable.")}}return f&2&&l!=null&&(T=q.types.expressionStatement(q.types.assignmentExpression("=",q.types.cloneNode(C),q.types.cloneNode(l)))),{staticNodes:m.filter(Boolean),instanceNodes:y.filter(Boolean),lastInstanceNodeReturnsThis:p,pureStaticNodes:E.filter(Boolean),classBindingNode:T,wrapClass(v){for(let I of r)I.node.leadingComments=null,I.remove();return d&&(v.scope.push({id:q.types.cloneNode(d)}),v.set("superClass",q.types.assignmentExpression("=",d,v.node.superClass))),f!==0&&(v.isClassExpression()?(v.scope.push({id:e}),v.replaceWith(q.types.assignmentExpression("=",q.types.cloneNode(e),v.node))):(l==null&&(v.node.id=e),T!=null&&v.scope.push({id:C}))),v}}}});var aE=b(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.buildDecoratedClass=eEe;Qo.hasDecorators=Xbe;Qo.hasOwnDecorators=iE;var gt=ft(),Hbe=Xo(),Ybe=ju();function iE(e){var t;return!!((t=e.decorators)!=null&&t.length)}function Xbe(e){return iE(e)||e.body.body.some(iE)}function oa(e,t){return t?gt.types.objectProperty(gt.types.identifier(e),t):null}function Jbe(e,t){return gt.types.objectMethod("method",gt.types.identifier(e),[],gt.types.blockStatement(t))}function OO(e){let t;return e.decorators&&e.decorators.length>0&&(t=gt.types.arrayExpression(e.decorators.map(r=>r.expression))),e.decorators=void 0,t}function zbe(e){return e.computed?e.key:gt.types.isIdentifier(e.key)?gt.types.stringLiteral(e.key.name):gt.types.stringLiteral(String(e.key.value))}function Qbe(e,t,r,n){let s=n.isClassMethod();if(n.isPrivate())throw n.buildCodeFrameError(`Private ${s?"methods":"fields"} in decorated classes are not supported yet.`);if(n.node.type==="ClassAccessorProperty")throw n.buildCodeFrameError('Accessor properties are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.');if(n.node.type==="StaticBlock")throw n.buildCodeFrameError('Static blocks are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } instead.');let{node:i,scope:a}=n;n.isTSDeclareMethod()||new Hbe.default({methodPath:n,objectRef:t,superRef:r,file:e,refToPreserve:t}).replace();let o=[oa("kind",gt.types.stringLiteral(gt.types.isClassMethod(i)?i.kind:"field")),oa("decorators",OO(i)),oa("static",i.static&>.types.booleanLiteral(!0)),oa("key",zbe(i))].filter(Boolean);if(gt.types.isClassMethod(i)){let l=i.computed?null:i.key,u=gt.types.toExpression(i);o.push(oa("value",(0,Ybe.default)({node:u,id:l,scope:a})||u))}else gt.types.isClassProperty(i)&&i.value?o.push(Jbe("value",gt.template.statements.ast`return ${i.value}`)):o.push(oa("value",a.buildUndefinedNode()));return n.remove(),gt.types.objectExpression(o)}function Zbe(e){return e.addHelper("decorate")}function eEe(e,t,r,n){let{node:s,scope:i}=t,a=i.generateUidIdentifier("initialize"),o=s.id&&t.isDeclaration(),l=t.isInStrictMode(),{superClass:u}=s;s.type="ClassDeclaration",s.id||(s.id=gt.types.cloneNode(e));let c;u&&(c=i.generateUidIdentifierBasedOnNode(s.superClass,"super"),s.superClass=c);let f=OO(s),d=gt.types.arrayExpression(r.filter(E=>!E.node.abstract&&E.node.type!=="TSIndexSignature").map(E=>Qbe(n,s.id,c,E))),m=gt.template.expression.ast` ${Zbe(n)}( ${f||gt.types.nullLiteral()}, function (${a}, ${u?gt.types.cloneNode(c):null}) { ${s} return { F: ${gt.types.cloneNode(s.id)}, d: ${d} }; }, ${u} ) `;l||m.arguments[1].body.directives.push(gt.types.directive(gt.types.directiveLiteral("use strict")));let y=m,p="arguments.1.body.body.0";return o&&(y=gt.template.statement.ast`let ${e} = ${m}`,p="declarations.0.init."+p),{instanceNodes:[gt.template.statement.ast` ${gt.types.cloneNode(a)}(this) `],wrapClass(E){return E.replaceWith(y),E.get(p)}}}});var NO=b(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.extractComputedKeys=aEe;jf.injectInitialization=iEe;var wt=ft(),tEe=Jn(),rEe=wt.traverse.visitors.merge([{Super(e){let{node:t,parentPath:r}=e;r.isCallExpression({callee:t})&&this.push(r)}},tEe.default]),nEe={"TSTypeAnnotation|TypeAnnotation"(e){e.skip()},ReferencedIdentifier(e,{scope:t}){t.hasOwnBinding(e.node.name)&&(t.rename(e.node.name),e.skip())}};function _O(e,t){if(t.classBinding&&t.classBinding===e.scope.getBinding(e.node.name)){let r=t.file.addHelper("classNameTDZError"),n=wt.types.callExpression(r,[wt.types.stringLiteral(e.node.name)]);e.replaceWith(wt.types.sequenceExpression([n,e.node])),e.skip()}}var sEe={ReferencedIdentifier:_O};function iEe(e,t,r,n,s){if(!r.length)return;let i=!!e.node.superClass;if(!t){let a=wt.types.classMethod("constructor",wt.types.identifier("constructor"),[],wt.types.blockStatement([]));i&&(a.params=[wt.types.restElement(wt.types.identifier("args"))],a.body.body.push(wt.template.statement.ast`super(...args)`)),[t]=e.get("body").unshiftContainer("body",a)}if(n&&n(nEe,{scope:t.scope}),i){let a=[];t.traverse(rEe,a);let o=!0;for(let l of a)if(o?o=!1:r=r.map(u=>wt.types.cloneNode(u)),l.parentPath.isExpressionStatement())l.insertAfter(r);else{let u=[l.node,...r.map(c=>wt.types.toExpression(c))];s||u.push(wt.types.thisExpression()),l.replaceWith(wt.types.sequenceExpression(u))}}else t.get("body").unshiftContainer("body",r)}function aEe(e,t,r){let n=[],s={classBinding:e.node.id&&e.scope.getBinding(e.node.id.name),file:r};for(let i of t){let a=i.get("key");a.isReferencedIdentifier()?_O(a,s):a.traverse(sEe,s);let o=i.node;if(!a.isConstantExpression()){let l=e.scope,u=wt.types.isIdentifier(a.node)&&l.hasUid(a.node.name),c=a.isAssignmentExpression({operator:"="})&&wt.types.isIdentifier(a.node.left)&&l.hasUid(a.node.left.name);if(u)continue;if(c)n.push(wt.types.expressionStatement(wt.types.cloneNode(o.key))),o.key=wt.types.cloneNode(o.key.left);else{let f=e.scope.generateUidIdentifierBasedOnNode(o.key);l.push({id:f,kind:"let"}),n.push(wt.types.expressionStatement(wt.types.assignmentExpression("=",wt.types.cloneNode(f),o.key))),o.key=wt.types.cloneNode(f)}}}return n}});var FO=b(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});ti.FEATURES=void 0;ti.enableFeature=oEe;ti.isLoose=uE;ti.shouldTransform=lEe;var kO=aE(),jn=ti.FEATURES=Object.freeze({fields:2,privateMethods:4,decorators:8,privateIn:16,staticBlocks:32}),BO=new Map([[jn.fields,"@babel/plugin-transform-class-properties"],[jn.privateMethods,"@babel/plugin-transform-private-methods"],[jn.privateIn,"@babel/plugin-transform-private-property-in-object"]]),oE="@babel/plugin-class-features/featuresKey",Zo="@babel/plugin-class-features/looseKey";gs="@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing";var gs;lE=function(e,t){return!!(e.get(gs)&t)};var lE;function oEe(e,t,r){(!Ln(e,t)||lE(e,t))&&(e.set(oE,e.get(oE)|t),r==="#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-an-error"?(Lf(e,t,!0),e.set(gs,e.get(gs)|t)):r==="#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-error"?(Lf(e,t,!1),e.set(gs,e.get(gs)|t)):Lf(e,t,r));let n;for(let[i,a]of BO){if(!Ln(e,i)||lE(e,i))continue;let o=uE(e,i);if(n===!o)throw new Error("'loose' mode configuration must be the same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods and @babel/plugin-transform-private-property-in-object (when they are enabled).");n=o;var s=a}if(n!==void 0)for(let[i,a]of BO)Ln(e,i)&&uE(e,i)!==n&&(Lf(e,i,n),console.warn(`Though the "loose" option was set to "${!n}" in your @babel/preset-env config, it will not be used for ${a} since the "loose" mode option was set to "${n}" for ${s}. The "loose" option must be the same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods and @babel/plugin-transform-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding ["${a}", { "loose": ${n} }] to the "plugins" section of your Babel config.`))}function Ln(e,t){return!!(e.get(oE)&t)}function uE(e,t){return!!(e.get(Zo)&t)}function Lf(e,t,r){r?e.set(Zo,e.get(Zo)|t):e.set(Zo,e.get(Zo)&~t),e.set(gs,e.get(gs)&~t)}function lEe(e,t){let r=null,n=null,s=null,i=null,a=null;(0,kO.hasOwnDecorators)(e.node)&&(r=e.get("decorators.0"));for(let o of e.get("body.body"))!r&&(0,kO.hasOwnDecorators)(o.node)&&(r=o.get("decorators.0")),!n&&o.isClassProperty()&&(n=o),!s&&o.isClassPrivateProperty()&&(s=o),!i&&o.isClassPrivateMethod!=null&&o.isClassPrivateMethod()&&(i=o),!a&&o.isStaticBlock!=null&&o.isStaticBlock()&&(a=o);if(r&&s)throw s.buildCodeFrameError("Private fields in decorated classes are not supported yet.");if(r&&i)throw i.buildCodeFrameError("Private methods in decorated classes are not supported yet.");if(r&&!Ln(t,jn.decorators))throw e.buildCodeFrameError(`Decorators are not enabled. If you are using ["@babel/plugin-proposal-decorators", { "version": "legacy" }], make sure it comes *before* "@babel/plugin-transform-class-properties" and enable loose mode, like so: ["@babel/plugin-proposal-decorators", { "version": "legacy" }] ["@babel/plugin-transform-class-properties", { "loose": true }]`);if(i&&!Ln(t,jn.privateMethods))throw i.buildCodeFrameError("Class private methods are not enabled. Please add `@babel/plugin-transform-private-methods` to your configuration.");if((n||s)&&!Ln(t,jn.fields)&&!Ln(t,jn.privateMethods))throw e.buildCodeFrameError("Class fields are not enabled. Please add `@babel/plugin-transform-class-properties` to your configuration.");if(a&&!Ln(t,jn.staticBlocks))throw e.buildCodeFrameError("Static class blocks are not enabled. Please add `@babel/plugin-transform-class-static-block` to your configuration.");return!!(r||i||a||(n||s)&&Ln(t,jn.fields))}});var ua=b(ni=>{"use strict";Object.defineProperty(ni,"__esModule",{value:!0});Object.defineProperty(ni,"FEATURES",{enumerable:!0,get:function(){return la.FEATURES}});Object.defineProperty(ni,"buildCheckInRHS",{enumerable:!0,get:function(){return el.buildCheckInRHS}});ni.createClassFeaturePlugin=hEe;Object.defineProperty(ni,"enableFeature",{enumerable:!0,get:function(){return la.enableFeature}});Object.defineProperty(ni,"injectInitialization",{enumerable:!0,get:function(){return pE.injectInitialization}});var cE=ft(),uEe=ju(),cEe=yi(),fEe=vO(),pEe=wn(),el=IO(),fE=aE(),pE=NO(),la=FO(),dEe=sE(),ri="@babel/plugin-class-features/version";function hEe({name:e,feature:t,loose:r,manipulateOptions:n,api:s,inherits:i,decoratorVersion:a}){if(t&la.FEATURES.decorators&&(a==="2021-12"||a==="2022-03"||a==="2023-01"||a==="2023-05"))return(0,fEe.default)(s,{loose:r},a,i);{var o;(o=s)!=null||(s={assumption:()=>{}})}let l=s.assumption("setPublicClassFields"),u=s.assumption("privateFieldsAsSymbols"),c=s.assumption("privateFieldsAsProperties"),f=s.assumption("constantSuper"),d=s.assumption("noDocumentAll");if(c&&u)throw new Error('Cannot enable both the "privateFieldsAsProperties" and "privateFieldsAsSymbols" assumptions as the same time.');let m=c||u;if(r===!0){let y=[];l!==void 0&&y.push('"setPublicClassFields"'),c!==void 0&&y.push('"privateFieldsAsProperties"'),u!==void 0&&y.push('"privateFieldsAsSymbols"'),y.length!==0&&console.warn(`[${e}]: You are using the "loose: true" option and you are explicitly setting a value for the ${y.join(" and ")} assumption${y.length>1?"s":""}. The "loose" option can cause incompatibilities with the other class features plugins, so it's recommended that you replace it with the following top-level option: "assumptions": { "setPublicClassFields": true, "privateFieldsAsSymbols": true }`)}return{name:e,manipulateOptions:n,inherits:i,pre(y){if((0,la.enableFeature)(y,t,r),typeof y.get(ri)=="number"){y.set(ri,"7.23.7");return}(!y.get(ri)||pEe.lt(y.get(ri),"7.23.7"))&&y.set(ri,"7.23.7")},visitor:{Class(y,{file:p}){var E;if(p.get(ri)!=="7.23.7"||!(0,la.shouldTransform)(y,p))return;let T=y.isClassDeclaration();T&&(0,dEe.assertFieldTransformed)(y);let O=(0,la.isLoose)(p,t),C,v=(0,fE.hasDecorators)(y.node),I=[],k=[],B=[],M=new Set,X=y.get("body");for(let H of X.get("body")){if((H.isClassProperty()||H.isClassMethod())&&H.node.computed&&B.push(H),H.isPrivate()){let{name:me}=H.node.key.id,De=`get ${me}`,Le=`set ${me}`;if(H.isClassPrivateMethod()){if(H.node.kind==="get"){if(M.has(De)||M.has(me)&&!M.has(Le))throw H.buildCodeFrameError("Duplicate private field");M.add(De).add(me)}else if(H.node.kind==="set"){if(M.has(Le)||M.has(me)&&!M.has(De))throw H.buildCodeFrameError("Duplicate private field");M.add(Le).add(me)}}else{if(M.has(me)&&!M.has(De)&&!M.has(Le)||M.has(me)&&(M.has(De)||M.has(Le)))throw H.buildCodeFrameError("Duplicate private field");M.add(me)}}H.isClassMethod({kind:"constructor"})?C=H:(k.push(H),(H.isProperty()||H.isPrivate()||H.isStaticBlock!=null&&H.isStaticBlock())&&I.push(H))}if(!I.length&&!v)return;let oe=y.node.id,he;(!oe||!T)&&((0,uEe.default)(y),he=y.scope.generateUidIdentifier("class"));let be=(E=he)!=null?E:cE.types.cloneNode(oe),nt=(0,el.buildPrivateNamesMap)(I),ct=(0,el.buildPrivateNamesNodes)(nt,c!=null?c:O,u!=null?u:!1,p);(0,el.transformPrivateNamesUsage)(be,y,nt,{privateFieldsAsProperties:m!=null?m:O,noDocumentAll:d,innerBinding:oe},p);let $,z,de,J,ee,te,K;v?(z=ee=$=[],{instanceNodes:de,wrapClass:K}=(0,fE.buildDecoratedClass)(be,y,k,p)):($=(0,pE.extractComputedKeys)(y,B,p),{staticNodes:z,pureStaticNodes:ee,instanceNodes:de,lastInstanceNodeReturnsThis:J,classBindingNode:te,wrapClass:K}=(0,el.buildFieldsInitNodes)(he,y.node.superClass,I,nt,p,l!=null?l:O,m!=null?m:O,f!=null?f:O,oe)),de.length>0&&(0,pE.injectInitialization)(y,C,de,(H,me)=>{if(!v)for(let De of I)cE.types.isStaticBlock!=null&&cE.types.isStaticBlock(De.node)||De.node.static||De.traverse(H,me)},J);let re=K(y);re.insertBefore([...ct,...$]),z.length>0&&re.insertAfter(z),ee.length>0&&re.find(H=>H.isStatement()||H.isDeclaration()).insertAfter(ee),te!=null&&T&&re.insertAfter(te)},ExportDefaultDeclaration(y,{file:p}){{if(p.get(ri)!=="7.23.7")return;let E=y.get("declaration");E.isClassDeclaration()&&(0,fE.hasDecorators)(E.node)&&(E.node.id?(0,cEe.default)(y):E.node.type="ClassExpression")}}}}}});var hE=b(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.default=bEe;Mf.translateEnumValues=LO;var ca=ft(),mEe=require("assert"),yEe=kf(),dE=new WeakMap,gEe=ca.template.expression(` (function (ID) { ASSIGNMENTS; return ID; })(INIT) `);function bEe(e,t){let{node:r,parentPath:n}=e;if(r.declare){e.remove();return}let s=r.id.name,{fill:i,data:a,isPure:o}=SEe(e,t,r.id);switch(n.type){case"BlockStatement":case"ExportNamedDeclaration":case"Program":{let u=t.isProgram(e.parent),c=l(n),f=t.objectExpression([]);(c||u)&&(f=t.logicalExpression("||",t.cloneNode(i.ID),f));let d=gEe(Object.assign({},i,{INIT:f}));o&&(0,yEe.default)(d),c?(n.isExportDeclaration()?n:e).replaceWith(t.expressionStatement(t.assignmentExpression("=",t.cloneNode(r.id),d))):e.scope.registerDeclaration(e.replaceWith(t.variableDeclaration(u?"var":"let",[t.variableDeclarator(r.id,d)]))[0]),dE.set(e.scope.getBindingIdentifier(s),a);break}default:throw new Error(`Unexpected enum parent '${e.parent.type}`)}function l(u){return u.isExportDeclaration()?l(u.parentPath):u.getData(s)?!0:(u.setData(s,!0),!1)}}var EEe=(0,ca.template)(` ENUM["NAME"] = VALUE; `),vEe=(0,ca.template)(` ENUM[ENUM["NAME"] = VALUE] = "NAME"; `),TEe=(e,t)=>(e?EEe:vEe)(t);function SEe(e,t,r){let{enumValues:n,data:s,isPure:i}=LO(e,t),a=n.map(([o,l])=>TEe(t.isStringLiteral(l),{ENUM:t.cloneNode(r),NAME:o,VALUE:l}));return{fill:{ID:t.cloneNode(r),ASSIGNMENTS:a},data:s,isPure:i}}function jO(e,t){let{seen:r,path:n,t:s}=t,i=e.node.name;r.has(i)&&!e.scope.hasOwnBinding(i)&&(e.replaceWith(s.memberExpression(s.cloneNode(n.node.id),s.cloneNode(e.node))),e.skip())}var xEe={ReferencedIdentifier:jO};function LO(e,t){var r;let n=e.scope.getBindingIdentifier(e.node.id.name),s=(r=dE.get(n))!=null?r:new Map,i=-1,a,o=!0,l=e.get("members").map(u=>{let c=u.node,f=t.isIdentifier(c.id)?c.id.name:c.id.value,d=u.get("initializer"),m=c.initializer,y;if(m)i=MO(d,s),i!==void 0?(s.set(f,i),mEe(typeof i=="number"||typeof i=="string"),i===1/0||Number.isNaN(i)?y=t.identifier(String(i)):i===-1/0?y=t.unaryExpression("-",t.identifier("Infinity")):y=t.valueToNode(i)):(o&&(o=d.isPure()),d.isReferencedIdentifier()?jO(d,{t,seen:s,path:e}):d.traverse(xEe,{t,seen:s,path:e}),y=d.node,s.set(f,void 0));else if(typeof i=="number")i+=1,y=t.numericLiteral(i),s.set(f,i);else{if(typeof i=="string")throw e.buildCodeFrameError("Enum member must have initializer.");{let p=t.memberExpression(t.cloneNode(e.node.id),t.stringLiteral(a),!0);y=t.binaryExpression("+",t.numericLiteral(1),p),s.set(f,void 0)}}return a=f,[f,y]});return{isPure:o,data:s,enumValues:l}}function MO(e,t,r=new Set){return n(e);function n(o){let l=o.node;switch(l.type){case"MemberExpression":return s(o,t,r);case"StringLiteral":return l.value;case"UnaryExpression":return i(o);case"BinaryExpression":return a(o);case"NumericLiteral":return l.value;case"ParenthesizedExpression":return n(o.get("expression"));case"Identifier":return s(o,t,r);case"TemplateLiteral":{if(l.quasis.length===1)return l.quasis[0].value.cooked;let u=o.get("expressions"),c=l.quasis,f="";for(let d=0;d>":return l>>u;case">>>":return l>>>u;case"<<":return l<{"use strict";Object.defineProperty(mE,"__esModule",{value:!0});mE.default=AEe;var PEe=hE();function AEe(e,t){let{name:r}=e.node.id,n=e.parentPath.isExportNamedDeclaration(),s=n;!s&&t.isProgram(e.parent)&&(s=e.parent.body.some(o=>t.isExportNamedDeclaration(o)&&o.exportKind!=="type"&&!o.source&&o.specifiers.some(l=>t.isExportSpecifier(l)&&l.exportKind!=="type"&&l.local.name===r)));let{enumValues:i}=(0,PEe.translateEnumValues)(e,t);if(s){let o=t.objectExpression(i.map(([l,u])=>t.objectProperty(t.isValidIdentifier(l)?t.identifier(l):t.stringLiteral(l),u)));e.scope.hasOwnBinding(r)?(n?e.parentPath:e).replaceWith(t.expressionStatement(t.callExpression(t.memberExpression(t.identifier("Object"),t.identifier("assign")),[e.node.id,o]))):(e.replaceWith(t.variableDeclaration("var",[t.variableDeclarator(e.node.id,o)])),e.scope.registerDeclaration(e));return}let a=new Map(i);e.scope.path.traverse({Scope(o){o.scope.hasOwnBinding(r)&&o.skip()},MemberExpression(o){if(!t.isIdentifier(o.node.object,{name:r}))return;let l;if(o.node.computed)if(t.isStringLiteral(o.node.property))l=o.node.property.value;else return;else if(t.isIdentifier(o.node.property))l=o.node.property.name;else return;a.has(l)&&o.replaceWith(t.cloneNode(a.get(l)))}}),e.remove()}});var yE=b(fa=>{"use strict";Object.defineProperty(fa,"__esModule",{value:!0});fa.GLOBAL_TYPES=void 0;fa.isGlobalType=CEe;fa.registerGlobalType=wEe;var qO=fa.GLOBAL_TYPES=new WeakMap;function CEe({scope:e},t){return e.hasBinding(t)?!1:qO.get(e).has(t)?!0:(console.warn(`The exported identifier "${t}" is not declared in Babel's scope tracker as a JavaScript value binding, and "@babel/plugin-transform-typescript" never encountered it as a TypeScript type declaration. It will be treated as a JavaScript value. This problem is likely caused by another plugin injecting "${t}" without registering it in the scope tracker. If you are the author of that plugin, please use "scope.registerDeclaration(declarationPath)".`),!1)}function wEe(e,t){qO.get(e).add(t)}});var VO=b(vE=>{"use strict";Object.defineProperty(vE,"__esModule",{value:!0});vE.default=IEe;var rt=ft(),DEe=yE();function IEe(e,t){if(e.node.declare||e.node.id.type==="StringLiteral"){e.remove();return}if(!t)throw e.get("id").buildCodeFrameError("Namespace not marked type-only declare. Non-declarative namespaces are only supported experimentally in Babel. To enable and review caveats see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");let r=e.node.id.name,n=EE(e,rt.types.cloneNode(e.node,!0));if(n===null){let s=e.findParent(i=>i.isProgram());(0,DEe.registerGlobalType)(s.scope,r),e.remove()}else e.scope.hasOwnBinding(r)?e.replaceWith(n):e.scope.registerDeclaration(e.replaceWithMultiple([gE(r),n])[0])}function gE(e){return rt.types.variableDeclaration("let",[rt.types.variableDeclarator(rt.types.identifier(e))])}function bE(e,t){return rt.types.memberExpression(rt.types.identifier(e),rt.types.identifier(t))}function OEe(e,t,r){if(e.kind!=="const")throw r.file.buildCodeFrameError(e,"Namespaces exporting non-const are not supported by Babel. Change to const or see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");let{declarations:n}=e;if(n.every(a=>rt.types.isIdentifier(a.id))){for(let a of n)a.init=rt.types.assignmentExpression("=",bE(t,a.id.name),a.init);return[e]}let s=rt.types.getBindingIdentifiers(e),i=[];for(let a in s)i.push(rt.types.assignmentExpression("=",bE(t,a),rt.types.cloneNode(s[a])));return[e,rt.types.expressionStatement(rt.types.sequenceExpression(i))]}function UO(e,t){return e.hub.buildError(t,"Ambient modules cannot be nested in other modules or namespaces.",Error)}function EE(e,t,r){let n=new Set,s=t.id;rt.types.assertIdentifier(s);let i=e.scope.generateUid(s.name),a=rt.types.isTSModuleBlock(t.body)?t.body.body:[rt.types.exportNamedDeclaration(t.body)],o=!0;for(let u=0;u{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.default=void 0;var _Ee=tt(),NEe=YI(),kEe=ua(),BEe=RO(),FEe=hE(),Mn=yE(),jEe=VO();function LEe(e){switch(e.parent.type){case"TSTypeReference":case"TSExpressionWithTypeArguments":case"TSTypeQuery":return!0;case"TSQualifiedName":return e.parentPath.findParent(t=>t.type!=="TSQualifiedName").type!=="TSImportEqualsDeclaration";case"ExportSpecifier":return e.parent.exportKind==="type"||e.parentPath.parent.exportKind==="type";default:return!1}}var Rr=new WeakMap,$O=new WeakSet;function Rf(e){let t=e.getBindingIdentifiers();for(let r of Object.keys(t)){let n=e.scope.getBinding(r);n&&n.identifier===t[r]&&n.scope.removeBinding(r)}e.opts.noScope=!0,e.remove(),e.opts.noScope=!1}function WO(e,t,r,n,s=""){if(t.file.get("@babel/plugin-transform-modules-*")!=="commonjs")throw e.buildCodeFrameError(`\`${r}\` is only supported when compiling modules to CommonJS. Please consider using \`${n}\`${s}, or add @babel/plugin-transform-modules-commonjs to your Babel config.`)}var TIe=qf.default=(0,_Ee.declare)((e,t)=>{let{types:r,template:n}=e;e.assertVersion(7);let s=/\*?\s*@jsx((?:Frag)?)\s+([^\s]+)/,{allowNamespaces:i=!0,jsxPragma:a="React.createElement",jsxPragmaFrag:o="React.Fragment",onlyRemoveTypeImports:l=!1,optimizeConstEnums:u=!1}=t;var{allowDeclareFields:c=!1}=t;let f={field(p){let{node:E}=p;if(!c&&E.declare)throw p.buildCodeFrameError("The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transform-typescript or @babel/preset-typescript is enabled.");if(E.declare){if(E.value)throw p.buildCodeFrameError("Fields with the 'declare' modifier cannot be initialized here, but only in the constructor");E.decorators||p.remove()}else if(E.definite){if(E.value)throw p.buildCodeFrameError("Definitely assigned fields cannot be initialized here, but only in the constructor");!c&&!E.decorators&&!r.isClassPrivateProperty(E)&&p.remove()}else(E.abstract||!c&&!E.value&&!E.decorators&&!r.isClassPrivateProperty(E))&&p.remove();E.accessibility&&(E.accessibility=null),E.abstract&&(E.abstract=null),E.readonly&&(E.readonly=null),E.optional&&(E.optional=null),E.typeAnnotation&&(E.typeAnnotation=null),E.definite&&(E.definite=null),E.declare&&(E.declare=null),E.override&&(E.override=null)},method({node:p}){p.accessibility&&(p.accessibility=null),p.abstract&&(p.abstract=null),p.optional&&(p.optional=null),p.override&&(p.override=null)},constructor(p,E){p.node.accessibility&&(p.node.accessibility=null);let T=[],{scope:O}=p;for(let C of p.get("params")){let v=C.node;if(v.type==="TSParameterProperty"){let I=v.parameter;if($O.has(I))continue;$O.add(I);let k;if(r.isIdentifier(I))k=I;else if(r.isAssignmentPattern(I)&&r.isIdentifier(I.left))k=I.left;else throw C.buildCodeFrameError("Parameter properties can not be destructuring patterns.");T.push(n.statement.ast` this.${r.cloneNode(k)} = ${r.cloneNode(k)} `),C.replaceWith(C.get("parameter")),O.registerBinding("param",C)}}(0,kEe.injectInitialization)(E,p,T)}};return{name:"transform-typescript",inherits:NEe.default,visitor:{Pattern:m,Identifier:m,RestElement:m,Program:{enter(p,E){let{file:T}=E,O=null,C=null,v=p.scope;if(Mn.GLOBAL_TYPES.has(v)||Mn.GLOBAL_TYPES.set(v,new Set),T.ast.comments)for(let B of T.ast.comments){let M=s.exec(B.value);M&&(M[1]?C=M[2]:O=M[2])}let I=O||a;I&&([I]=I.split("."));let k=C||o;k&&([k]=k.split("."));for(let B of p.get("body")){if(B.isImportDeclaration()){if(Rr.has(E.file.ast.program)||Rr.set(E.file.ast.program,!0),B.node.importKind==="type"){for(let he of B.node.specifiers)(0,Mn.registerGlobalType)(v,he.local.name);B.remove();continue}let M=new Set,X=B.node.specifiers.length,oe=()=>X>0&&X===M.size;for(let he of B.node.specifiers)if(he.type==="ImportSpecifier"&&he.importKind==="type"){(0,Mn.registerGlobalType)(v,he.local.name);let be=B.scope.getBinding(he.local.name);be&&M.add(be.path)}if(l)Rr.set(p.node,!1);else{if(B.node.specifiers.length===0){Rr.set(p.node,!1);continue}for(let he of B.node.specifiers){let be=B.scope.getBinding(he.local.name);be&&!M.has(be.path)&&(y({binding:be,programPath:p,pragmaImportName:I,pragmaFragImportName:k})?M.add(be.path):Rr.set(p.node,!1))}}if(oe()&&!l)B.remove();else for(let he of M)he.remove();continue}if(B.isExportDeclaration()&&(B=B.get("declaration")),B.isVariableDeclaration({declare:!0}))for(let M of Object.keys(B.getBindingIdentifiers()))(0,Mn.registerGlobalType)(v,M);else(B.isTSTypeAliasDeclaration()||B.isTSDeclareFunction()&&B.get("id").isIdentifier()||B.isTSInterfaceDeclaration()||B.isClassDeclaration({declare:!0})||B.isTSEnumDeclaration({declare:!0})||B.isTSModuleDeclaration({declare:!0})&&B.get("id").isIdentifier())&&(0,Mn.registerGlobalType)(v,B.node.id.name)}},exit(p){p.node.sourceType==="module"&&Rr.get(p.node)&&p.pushContainer("body",r.exportNamedDeclaration())}},ExportNamedDeclaration(p,E){if(Rr.has(E.file.ast.program)||Rr.set(E.file.ast.program,!0),p.node.exportKind==="type"){p.remove();return}if(p.node.source&&p.node.specifiers.length>0&&p.node.specifiers.every(T=>T.type==="ExportSpecifier"&&T.exportKind==="type")){p.remove();return}if(!p.node.source&&p.node.specifiers.length>0&&p.node.specifiers.every(T=>r.isExportSpecifier(T)&&(0,Mn.isGlobalType)(p,T.local.name))){p.remove();return}if(r.isTSModuleDeclaration(p.node.declaration)){let T=p.node.declaration,{id:O}=T;if(r.isIdentifier(O))if(p.scope.hasOwnBinding(O.name))p.replaceWith(T);else{let[C]=p.replaceWithMultiple([r.exportNamedDeclaration(r.variableDeclaration("let",[r.variableDeclarator(r.cloneNode(O))])),T]);p.scope.registerDeclaration(C)}}Rr.set(E.file.ast.program,!1)},ExportAllDeclaration(p){p.node.exportKind==="type"&&p.remove()},ExportSpecifier(p){(!p.parent.source&&(0,Mn.isGlobalType)(p,p.node.local.name)||p.node.exportKind==="type")&&p.remove()},ExportDefaultDeclaration(p,E){if(Rr.has(E.file.ast.program)||Rr.set(E.file.ast.program,!0),r.isIdentifier(p.node.declaration)&&(0,Mn.isGlobalType)(p,p.node.declaration.name)){p.remove();return}Rr.set(E.file.ast.program,!1)},TSDeclareFunction(p){Rf(p)},TSDeclareMethod(p){Rf(p)},VariableDeclaration(p){p.node.declare&&Rf(p)},VariableDeclarator({node:p}){p.definite&&(p.definite=null)},TSIndexSignature(p){p.remove()},ClassDeclaration(p){let{node:E}=p;E.declare&&Rf(p)},Class(p){let{node:E}=p;E.typeParameters&&(E.typeParameters=null),E.superTypeParameters&&(E.superTypeParameters=null),E.implements&&(E.implements=null),E.abstract&&(E.abstract=null),p.get("body.body").forEach(T=>{T.isClassMethod()||T.isClassPrivateMethod()?T.node.kind==="constructor"?f.constructor(T,p):f.method(T):(T.isClassProperty()||T.isClassPrivateProperty()||T.isClassAccessorProperty())&&f.field(T)})},Function(p){let{node:E}=p;E.typeParameters&&(E.typeParameters=null),E.returnType&&(E.returnType=null);let T=E.params;T.length>0&&r.isIdentifier(T[0],{name:"this"})&&T.shift()},TSModuleDeclaration(p){(0,jEe.default)(p,i)},TSInterfaceDeclaration(p){p.remove()},TSTypeAliasDeclaration(p){p.remove()},TSEnumDeclaration(p){u&&p.node.const?(0,BEe.default)(p,r):(0,FEe.default)(p,r)},TSImportEqualsDeclaration(p,E){let{id:T,moduleReference:O}=p.node,C,v;r.isTSExternalModuleReference(O)?(WO(p,E,`import ${T.name} = require(...);`,`import ${T.name} from '...';`," alongside Typescript's --allowSyntheticDefaultImports option"),C=r.callExpression(r.identifier("require"),[O.expression]),v="const"):(C=d(O),v="var"),p.replaceWith(r.variableDeclaration(v,[r.variableDeclarator(T,C)])),p.scope.registerDeclaration(p)},TSExportAssignment(p,E){WO(p,E,"export = ;","export default ;"),p.replaceWith(n.statement.ast`module.exports = ${p.node.expression}`)},TSTypeAssertion(p){p.replaceWith(p.node.expression)},[`TSAsExpression${r.tsSatisfiesExpression?"|TSSatisfiesExpression":""}`](p){let{node:E}=p;do E=E.expression;while(r.isTSAsExpression(E)||r.isTSSatisfiesExpression!=null&&r.isTSSatisfiesExpression(E));p.replaceWith(E)},[e.types.tsInstantiationExpression?"TSNonNullExpression|TSInstantiationExpression":"TSNonNullExpression"](p){p.replaceWith(p.node.expression)},CallExpression(p){p.node.typeParameters=null},OptionalCallExpression(p){p.node.typeParameters=null},NewExpression(p){p.node.typeParameters=null},JSXOpeningElement(p){p.node.typeParameters=null},TaggedTemplateExpression(p){p.node.typeParameters=null}}};function d(p){return r.isTSQualifiedName(p)?r.memberExpression(d(p.left),p.right):p}function m({node:p}){p.typeAnnotation&&(p.typeAnnotation=null),r.isIdentifier(p)&&p.optional&&(p.optional=null)}function y({binding:p,programPath:E,pragmaImportName:T,pragmaFragImportName:O}){for(let v of p.referencePaths)if(!LEe(v))return!1;if(p.identifier.name!==T&&p.identifier.name!==O)return!0;let C=!1;return E.traverse({"JSXElement|JSXFragment"(v){C=!0,v.stop()}}),!C}})});var TE=b(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.default=void 0;var MEe=tt(),xIe=Uf.default=(0,MEe.declare)(e=>(e.assertVersion(7),{name:"syntax-jsx",manipulateOptions(t,r){r.plugins.some(n=>(Array.isArray(n)?n[0]:n)==="typescript")||r.plugins.push("jsx")}}))});var YO=b(SE=>{"use strict";Object.defineProperty(SE,"__esModule",{value:!0});SE.transformDynamicImport=UEe;var GO=ft(),REe=vo(),HO=e=>GO.template.expression.ast`require(${e})`,qEe=(e,t)=>GO.types.callExpression(t.addHelper("interopRequireWildcard"),[HO(e)]);function UEe(e,t,r){let n=t?HO:qEe;e.replaceWith((0,REe.buildDynamicImport)(e.node,!0,!1,s=>n(s,r)))}});var JO=b(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.lazyImportsHook=void 0;var XO=ft(),VEe=vo(),$Ee=e=>({name:"@babel/plugin-transform-modules-commonjs/lazy",version:"7.23.3",getWrapperPayload(t,r){if((0,VEe.isSideEffectImport)(r)||r.reexportAll)return null;if(e===!0)return/\./.test(t)?null:"lazy/function";if(Array.isArray(e))return e.indexOf(t)===-1?null:"lazy/function";if(typeof e=="function")return e(t)?"lazy/function":null},buildRequireWrapper(t,r,n,s){if(n==="lazy/function")return s?XO.template.statement.ast` function ${t}() { const data = ${r}; ${t} = function(){ return data; }; return data; } `:!1},wrapReference(t,r){if(r==="lazy/function")return XO.types.callExpression(t,[])}});Vf.lazyImportsHook=$Ee});var zO=b($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.defineCommonJSHook=WEe;$f.makeInvokers=KEe;var PE="@babel/plugin-transform-modules-commonjs/customWrapperPlugin";function WEe(e,t){let r=e.get(PE);r||e.set(PE,r=[]),r.push(t)}function xE(e,t){if(e)for(let r of e){let n=t(r);if(n!=null)return n}}function KEe(e){let t=e.get(PE);return{getWrapperPayload(...r){return xE(t,n=>n.getWrapperPayload==null?void 0:n.getWrapperPayload(...r))},wrapReference(...r){return xE(t,n=>n.wrapReference==null?void 0:n.wrapReference(...r))},buildRequireWrapper(...r){return xE(t,n=>n.buildRequireWrapper==null?void 0:n.buildRequireWrapper(...r))}}}});var CE=b(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.default=void 0;Object.defineProperty(tl,"defineCommonJSHook",{enumerable:!0,get:function(){return AE.defineCommonJSHook}});var GEe=tt(),si=vo(),HEe=E0(),Zr=ft(),YEe=YO(),XEe=JO(),AE=zO(),DIe=tl.default=(0,GEe.declare)((e,t)=>{var r,n,s;e.assertVersion(7);let{strictNamespace:i=!1,mjsStrictNamespace:a=i,allowTopLevelThis:o,strict:l,strictMode:u,noInterop:c,importInterop:f,lazy:d=!1,allowCommonJSExports:m=!0,loose:y=!1}=t,p=(r=e.assumption("constantReexports"))!=null?r:y,E=(n=e.assumption("enumerableModuleMeta"))!=null?n:y,T=(s=e.assumption("noIncompleteNsImportDetection"))!=null?s:!1;if(typeof d!="boolean"&&typeof d!="function"&&(!Array.isArray(d)||!d.every(v=>typeof v=="string")))throw new Error(".lazy must be a boolean, array of strings, or a function");if(typeof i!="boolean")throw new Error(".strictNamespace must be a boolean, or undefined");if(typeof a!="boolean")throw new Error(".mjsStrictNamespace must be a boolean, or undefined");let O=v=>Zr.template.expression.ast` (function(){ throw new Error( "The CommonJS '" + "${v}" + "' variable is not available in ES6 modules." + "Consider setting setting sourceType:script or sourceType:unambiguous in your " + "Babel config for this file."); })() `,C={ReferencedIdentifier(v){let I=v.node.name;if(I!=="module"&&I!=="exports")return;let k=v.scope.getBinding(I);this.scope.getBinding(I)!==k||v.parentPath.isObjectProperty({value:v.node})&&v.parentPath.parentPath.isObjectPattern()||v.parentPath.isAssignmentExpression({left:v.node})||v.isAssignmentExpression({left:v.node})||v.replaceWith(O(I))},UpdateExpression(v){let I=v.get("argument");if(!I.isIdentifier())return;let k=I.node.name;if(k!=="module"&&k!=="exports")return;let B=v.scope.getBinding(k);this.scope.getBinding(k)===B&&v.replaceWith(Zr.types.assignmentExpression(v.node.operator[0]+"=",I.node,O(k)))},AssignmentExpression(v){let I=v.get("left");if(I.isIdentifier()){let k=I.node.name;if(k!=="module"&&k!=="exports")return;let B=v.scope.getBinding(k);if(this.scope.getBinding(k)!==B)return;let X=v.get("right");X.replaceWith(Zr.types.sequenceExpression([X.node,O(k)]))}else if(I.isPattern()){let k=I.getOuterBindingIdentifiers(),B=Object.keys(k).filter(M=>M!=="module"&&M!=="exports"?!1:this.scope.getBinding(M)===v.scope.getBinding(M))[0];if(B){let M=v.get("right");M.replaceWith(Zr.types.sequenceExpression([M.node,O(B)]))}}}};return{name:"transform-modules-commonjs",pre(){this.file.set("@babel/plugin-transform-modules-*","commonjs"),d&&(0,AE.defineCommonJSHook)(this.file,(0,XEe.lazyImportsHook)(d))},visitor:{["CallExpression"+(e.types.importExpression?"|ImportExpression":"")](v){if(!this.file.has("@babel/plugin-proposal-dynamic-import")||v.isCallExpression()&&!Zr.types.isImport(v.node.callee))return;let{scope:I}=v;do I.rename("require");while(I=I.parent);(0,YEe.transformDynamicImport)(v,c,this.file)},Program:{exit(v,I){if(!(0,si.isModule)(v))return;v.scope.rename("exports"),v.scope.rename("module"),v.scope.rename("require"),v.scope.rename("__filename"),v.scope.rename("__dirname"),m||((0,HEe.default)(v,new Set(["module","exports"]),!1),v.traverse(C,{scope:v.scope}));let k=(0,si.getModuleName)(this.file.opts,t);k&&(k=Zr.types.stringLiteral(k));let B=(0,AE.makeInvokers)(this.file),{meta:M,headers:X}=(0,si.rewriteModuleStatementsAndPrepareHeader)(v,{exportName:"exports",constantReexports:p,enumerableModuleMeta:E,strict:l,strictMode:u,allowTopLevelThis:o,noInterop:c,importInterop:f,wrapReference:B.wrapReference,getWrapperPayload:B.getWrapperPayload,esNamespaceOnly:typeof I.filename=="string"&&/\.mjs$/.test(I.filename)?a:i,noIncompleteNsImportDetection:T,filename:this.file.opts.filename});for(let[he,be]of M.source){let nt=Zr.types.callExpression(Zr.types.identifier("require"),[Zr.types.stringLiteral(he)]),ct;if((0,si.isSideEffectImport)(be)){if(d&&be.wrap==="function")throw new Error("Assertion failure");ct=Zr.types.expressionStatement(nt)}else{var oe;let $=(0,si.wrapInterop)(v,nt,be.interop)||nt;if(be.wrap){let z=B.buildRequireWrapper(be.name,$,be.wrap,be.referenced);if(z===!1)continue;ct=z}(oe=ct)!=null||(ct=Zr.template.statement.ast` var ${be.name} = ${$}; `)}ct.loc=be.loc,X.push(ct),X.push(...(0,si.buildNamespaceInitStatements)(M,be,p,B.wrapReference))}(0,si.ensureStatementsHoisted)(X),v.unshiftContainer("body",X),v.get("body").forEach(he=>{X.indexOf(he.node)!==-1&&he.isVariableDeclaration()&&he.scope.registerDeclaration(he)})}}}}})});var DE=b(wE=>{"use strict";Object.defineProperty(wE,"__esModule",{value:!0});var ZO=tt(),JEe=KO();TE();var zEe=CE(),QEe=Kc();function e_(e){return e&&e.__esModule?e:{default:e}}var QO=e_(JEe),ZEe=e_(zEe),Rn=new QEe.OptionValidator("@babel/preset-typescript");function e1e(e={}){let{allowNamespaces:t=!0,jsxPragma:r,onlyRemoveTypeImports:n}=e,s={ignoreExtensions:"ignoreExtensions",allowNamespaces:"allowNamespaces",disallowAmbiguousJSXLike:"disallowAmbiguousJSXLike",jsxPragma:"jsxPragma",jsxPragmaFrag:"jsxPragmaFrag",onlyRemoveTypeImports:"onlyRemoveTypeImports",optimizeConstEnums:"optimizeConstEnums",rewriteImportExtensions:"rewriteImportExtensions",allExtensions:"allExtensions",isTSX:"isTSX"},i=Rn.validateStringOption(s.jsxPragmaFrag,e.jsxPragmaFrag,"React.Fragment");{var a=Rn.validateBooleanOption(s.allExtensions,e.allExtensions,!1),o=Rn.validateBooleanOption(s.isTSX,e.isTSX,!1);o&&Rn.invariant(a,"isTSX:true requires allExtensions:true")}let l=Rn.validateBooleanOption(s.ignoreExtensions,e.ignoreExtensions,!1),u=Rn.validateBooleanOption(s.disallowAmbiguousJSXLike,e.disallowAmbiguousJSXLike,!1);u&&Rn.invariant(a,"disallowAmbiguousJSXLike:true requires allExtensions:true");let c=Rn.validateBooleanOption(s.optimizeConstEnums,e.optimizeConstEnums,!1),f=Rn.validateBooleanOption(s.rewriteImportExtensions,e.rewriteImportExtensions,!1),d={ignoreExtensions:l,allowNamespaces:t,disallowAmbiguousJSXLike:u,jsxPragma:r,jsxPragmaFrag:i,onlyRemoveTypeImports:n,optimizeConstEnums:c,rewriteImportExtensions:f};return d.allExtensions=a,d.isTSX=o,d}var t1e=ZO.declare(function({types:e}){return{name:"preset-typescript/plugin-rewrite-ts-imports",visitor:{"ImportDeclaration|ExportAllDeclaration|ExportNamedDeclaration"({node:t}){let{source:r}=t;(e.isImportDeclaration(t)?t.importKind:t.exportKind)==="value"&&r&&/[\\/]/.test(r.value)&&(r.value=r.value.replace(/(\.[mc]?)ts$/,"$1js").replace(/\.tsx$/,".js"))}}}}),r1e=ZO.declarePreset((e,t)=>{e.assertVersion(7);let{allExtensions:r,ignoreExtensions:n,allowNamespaces:s,disallowAmbiguousJSXLike:i,isTSX:a,jsxPragma:o,jsxPragmaFrag:l,onlyRemoveTypeImports:u,optimizeConstEnums:c,rewriteImportExtensions:f}=e1e(t),d=p=>({allowDeclareFields:t.allowDeclareFields,allowNamespaces:s,disallowAmbiguousJSXLike:p,jsxPragma:o,jsxPragmaFrag:l,onlyRemoveTypeImports:u,optimizeConstEnums:c}),m=(p,E)=>[[QO.default,Object.assign({isTSX:p},d(E))]];return{plugins:f?[t1e]:[],overrides:r||n?[{plugins:m(a,i)}]:[{test:/\.ts$/,plugins:m(!1,!1)},{test:/\.mts$/,sourceType:"module",plugins:m(!1,!0)},{test:/\.cts$/,sourceType:"unambiguous",plugins:[[ZEe.default,{allowTopLevelThis:!0}],[QO.default,d(!0)]]},{test:/\.tsx$/,plugins:m(!0,!1)}]}});wE.default=r1e});var jE=b(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.default=a1e;rl.supportsESM=void 0;var t_=qi();function kE(){let e=require("path");return kE=function(){return e},e}function n_(){let e=require("url");return n_=function(){return e},e}function BE(){let e=wn();return BE=function(){return e},e}function s_(){let e=Os();return s_=function(){return e},e}var i_=Dn(),FE=Ks(),n1e=Ub();function r_(e,t,r,n,s,i,a){try{var o=e[i](a),l=o.value}catch(u){r(u);return}o.done?t(l):Promise.resolve(l).then(n,s)}function s1e(e){return function(){var t=this,r=arguments;return new Promise(function(n,s){var i=e.apply(t,r);function a(l){r_(i,n,s,a,o,"next",l)}function o(l){r_(i,n,s,a,o,"throw",l)}a(void 0)})}}var i1e=s_()("babel:config:loading:files:module-types"),OE;try{OE=KI()}catch{}var _Ie=rl.supportsESM=BE().satisfies(process.versions.node,"^12.17 || >=13.2");function*a1e(e,t){switch(kE().extname(e)){case".cjs":return _E(e,arguments[2]);case".mjs":break;case".cts":return o1e(e);default:try{return _E(e,arguments[2])}catch(r){if(r.code!=="ERR_REQUIRE_ESM")throw r}}if(yield*(0,t_.isAsync)())return yield*(0,t_.waitFor)(l1e(e));throw new FE.default(t,e)}function o1e(e){let t=".cts",r=!!(require.extensions[".ts"]||require.extensions[".cts"]||require.extensions[".mts"]),n;if(!r){let s={babelrc:!1,configFile:!1,sourceType:"unambiguous",sourceMaps:"inline",sourceFileName:kE().basename(e),presets:[[u1e(e),Object.assign({onlyRemoveTypeImports:!0,optimizeConstEnums:!0},{allowDeclareFields:!0})]]};n=function(i,a){if(n&&a.endsWith(t))try{return i._compile((0,n1e.transformFileSync)(a,Object.assign({},s,{filename:a})).code,a)}catch(o){if(!r){let l=GI();BE().lt(l.version,"7.21.4")&&console.error("`.cts` configuration file failed to load, please try to update `@babel/preset-typescript`.")}throw o}return require.extensions[".js"](i,a)},require.extensions[t]=n}try{return _E(e)}finally{r||(require.extensions[t]===n&&delete require.extensions[t],n=void 0)}}var IE=new Set;function _E(e){if(IE.has(e))return i1e("Auto-ignoring usage of config %o.",e),{};let t;try{IE.add(e),t=(0,i_.endHiddenCallStack)(require)(e)}finally{IE.delete(e)}{var r;return(r=t)!=null&&r.__esModule?t.default||(arguments[1]?t:void 0):t}}function l1e(e){return NE.apply(this,arguments)}function NE(){return NE=s1e(function*(e){if(!OE)throw new FE.default(`Internal error: Native ECMAScript modules aren't supported by this platform. `,e);return(yield(0,i_.endHiddenCallStack)(OE)((0,n_().pathToFileURL)(e))).default}),NE.apply(this,arguments)}function u1e(e){try{return DE()}catch(t){if(t.code!=="MODULE_NOT_FOUND")throw t;let r="You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please install it!";throw process.versions.pnp&&(r+=` If you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file: packageExtensions: "@babel/core@*": peerDependencies: "@babel/preset-typescript": "*" `),new FE.default(r,e)}}});var m_=b(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.ROOT_CONFIG_FILENAMES=void 0;qn.findConfigUpwards=x1e;qn.findRelativeConfig=P1e;qn.findRootConfig=A1e;qn.loadConfig=C1e;qn.resolveShowConfigPath=w1e;function o_(){let e=Os();return o_=function(){return e},e}function LE(){let e=require("fs");return LE=function(){return e},e}function Sr(){let e=require("path");return Sr=function(){return e},e}function l_(){let e=D2();return l_=function(){return e},e}function u_(){let e=vr();return u_=function(){return e},e}var c_=Ws(),c1e=og(),f_=X0(),f1e=jE(),p1e=Yg(),en=Ks(),d1e=Ec(),h1e=Dn(),ME=o_()("babel:config:loading:files:configuration"),p_=qn.ROOT_CONFIG_FILENAMES=["babel.config.js","babel.config.cjs","babel.config.mjs","babel.config.json","babel.config.cts"],m1e=[".babelrc",".babelrc.js",".babelrc.cjs",".babelrc.mjs",".babelrc.json",".babelrc.cts"],y1e=".babelignore",g1e=(0,c_.makeWeakCache)(function*(t,r){return yield*[],{options:(0,h1e.endHiddenCallStack)(t)((0,c1e.makeConfigAPI)(r)),cacheNeedsConfiguration:!r.configured()}});function*b1e(e,t){if(!LE().existsSync(e))return null;let r=yield*(0,f1e.default)(e,"You appear to be using a native ECMAScript module configuration file, which is only supported when running Babel asynchronously."),n=!1;if(typeof r=="function"&&({options:r,cacheNeedsConfiguration:n}=yield*g1e(r,t)),!r||typeof r!="object"||Array.isArray(r))throw new en.default("Configuration should be an exported JavaScript object.",e);if(typeof r.then=="function")throw r.catch==null||r.catch(()=>{}),new en.default("You appear to be using an async configuration, which your current version of Babel does not support. We may add support for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchronously return your config.",e);return n&&D1e(e),E1e(r,e)}var a_=new WeakMap;function E1e(e,t){let r=a_.get(e);r||a_.set(e,r=new Map);let n=r.get(t);return n||(n={filepath:t,dirname:Sr().dirname(t),options:e},r.set(t,n)),n}var v1e=(0,c_.makeWeakCacheSync)(e=>{let t=e.options.babel;if(typeof t=="undefined")return null;if(typeof t!="object"||Array.isArray(t)||t===null)throw new en.default(".babel property must be an object",e.filepath);return{filepath:e.filepath,dirname:e.dirname,options:t}}),T1e=(0,f_.makeStaticFileCache)((e,t)=>{let r;try{r=l_().parse(t)}catch(n){throw new en.default(`Error while parsing config - ${n.message}`,e)}if(!r)throw new en.default("No config detected",e);if(typeof r!="object")throw new en.default(`Config returned typeof ${typeof r}`,e);if(Array.isArray(r))throw new en.default("Expected config object but found array",e);return delete r.$schema,{filepath:e,dirname:Sr().dirname(e),options:r}}),S1e=(0,f_.makeStaticFileCache)((e,t)=>{let r=Sr().dirname(e),n=t.split(` `).map(s=>s.replace(/#(.*?)$/,"").trim()).filter(s=>!!s);for(let s of n)if(s[0]==="!")throw new en.default("Negation of file paths is not supported.",e);return{filepath:e,dirname:Sr().dirname(e),ignore:n.map(s=>(0,p1e.default)(s,r))}});function x1e(e){let t=e;for(;;){for(let n of p_)if(LE().existsSync(Sr().join(t,n)))return t;let r=Sr().dirname(t);if(t===r)break;t=r}return null}function*P1e(e,t,r){let n=null,s=null,i=Sr().dirname(e.filepath);for(let o of e.directories){if(!n){var a;n=yield*d_(m1e,o,t,r,((a=e.pkg)==null?void 0:a.dirname)===o?v1e(e.pkg):null)}if(!s){let l=Sr().join(o,y1e);s=yield*S1e(l),s&&ME("Found ignore %o from %o.",s.filepath,i)}}return{config:n,ignore:s}}function A1e(e,t,r){return d_(p_,e,t,r)}function*d_(e,t,r,n,s=null){let a=(yield*u_().all(e.map(o=>h_(Sr().join(t,o),r,n)))).reduce((o,l)=>{if(l&&o)throw new en.default(`Multiple configuration files found. Please remove one: - ${Sr().basename(o.filepath)} - ${l.filepath} from ${t}`);return l||o},s);return a&&ME("Found configuration %o from %o.",a.filepath,t),a}function*C1e(e,t,r,n){let s=(((a,o)=>(a=a.split("."),o=o.split("."),+a[0]>+o[0]||a[0]==o[0]&&+a[1]>=+o[1]))(process.versions.node,"8.9")?require.resolve:(a,{paths:[o]},l=require("module"))=>{let u=l._findPath(a,l._nodeModulePaths(o).concat(o));if(u)return u;throw u=new Error(`Cannot resolve module '${a}'`),u.code="MODULE_NOT_FOUND",u})(e,{paths:[t]}),i=yield*h_(s,r,n);if(!i)throw new en.default("Config file contains no configuration data",s);return ME("Loaded config %o from %o.",e,t),i}function h_(e,t,r){switch(Sr().extname(e)){case".js":case".cjs":case".mjs":case".cts":return b1e(e,{envName:t,caller:r});default:return T1e(e)}}function*w1e(e){let t=process.env.BABEL_SHOW_CONFIG_FOR;if(t!=null){let r=Sr().resolve(e,t);if(!(yield*d1e.stat(r)).isFile())throw new Error(`${r}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);return r}return null}function D1e(e){throw new en.default(`Caching was left unconfigured. Babel's plugins, presets, and .babelrc.js files can be configured for various types of caching, using the first param of their handler functions: module.exports = function(api) { // The API exposes the following: // Cache the returned value forever and don't call this function again. api.cache(true); // Don't cache at all. Not recommended because it will be very slow. api.cache(false); // Cached based on the value of some function. If this function returns a value different from // a previously-encountered value, the plugins will re-evaluate. var env = api.cache(() => process.env.NODE_ENV); // If testing for a specific env, we recommend specifics to avoid instantiating a plugin for // any possible NODE_ENV value that might come up during plugin execution. var isProd = api.cache(() => process.env.NODE_ENV === "production"); // .cache(fn) will perform a linear search though instances to find the matching plugin based // based on previous instantiated plugins. If you want to recreate the plugin and discard the // previous instance whenever something changes, you may use: var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production"); // Note, we also expose the following more-verbose versions of the above examples: api.cache.forever(); // api.cache(true) api.cache.never(); // api.cache(false) api.cache.using(fn); // api.cache(fn) // Return the value that will be cached. return { }; };`,e)}});var R_=b(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.moduleResolve=M_;Yf.resolve=Sve;function pn(){let e=require("assert");return pn=function(){return e},e}function pa(){let e=I1e(require("fs"),!0);return pa=function(){return e},e}function bs(){let e=require("process");return bs=function(){return e},e}function Ae(){let e=require("url");return Ae=function(){return e},e}function Gf(){let e=require("path");return Gf=function(){return e},e}function WE(){let e=require("module");return WE=function(){return e},e}function w_(){let e=require("v8");return w_=function(){return e},e}function il(){let e=require("util");return il=function(){return e},e}function D_(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(D_=function(n){return n?r:t})(e)}function I1e(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=D_(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=s?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}var O1e={}.hasOwnProperty,_1e=/^([A-Z][a-z\d]*)+$/,N1e=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),tr={};function RE(e,t="and"){return e.length<3?e.join(` ${t} `):`${e.slice(0,-1).join(", ")}, ${t} ${e[e.length-1]}`}var I_=new Map,k1e="__node_internal_",y_;tr.ERR_INVALID_ARG_TYPE=tn("ERR_INVALID_ARG_TYPE",(e,t,r)=>{pn()(typeof e=="string","'name' must be a string"),Array.isArray(t)||(t=[t]);let n="The ";if(e.endsWith(" argument"))n+=`${e} `;else{let o=e.includes(".")?"property":"argument";n+=`"${e}" ${o} `}n+="must be ";let s=[],i=[],a=[];for(let o of t)pn()(typeof o=="string","All expected entries have to be of type string"),N1e.has(o)?s.push(o.toLowerCase()):_1e.exec(o)===null?(pn()(o!=="object",'The value "object" should be written as "Object"'),a.push(o)):i.push(o);if(i.length>0){let o=s.indexOf("object");o!==-1&&(s.slice(o,1),i.push("Object"))}return s.length>0&&(n+=`${s.length>1?"one of type":"of type"} ${RE(s,"or")}`,(i.length>0||a.length>0)&&(n+=" or ")),i.length>0&&(n+=`an instance of ${RE(i,"or")}`,a.length>0&&(n+=" or ")),a.length>0&&(a.length>1?n+=`one of ${RE(a,"or")}`:(a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`)),n+=`. Received ${M1e(r)}`,n},TypeError);tr.ERR_INVALID_MODULE_SPECIFIER=tn("ERR_INVALID_MODULE_SPECIFIER",(e,t,r=void 0)=>`Invalid module "${e}" ${t}${r?` imported from ${r}`:""}`,TypeError);tr.ERR_INVALID_PACKAGE_CONFIG=tn("ERR_INVALID_PACKAGE_CONFIG",(e,t,r)=>`Invalid package config ${e}${t?` while importing ${t}`:""}${r?`. ${r}`:""}`,Error);tr.ERR_INVALID_PACKAGE_TARGET=tn("ERR_INVALID_PACKAGE_TARGET",(e,t,r,n=!1,s=void 0)=>{let i=typeof r=="string"&&!n&&r.length>0&&!r.startsWith("./");return t==="."?(pn()(n===!1),`Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`):`Invalid "${n?"imports":"exports"}" target ${JSON.stringify(r)} defined for '${t}' in the package config ${e}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`},Error);tr.ERR_MODULE_NOT_FOUND=tn("ERR_MODULE_NOT_FOUND",(e,t,r=!1)=>`Cannot find ${r?"module":"package"} '${e}' imported from ${t}`,Error);tr.ERR_NETWORK_IMPORT_DISALLOWED=tn("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);tr.ERR_PACKAGE_IMPORT_NOT_DEFINED=tn("ERR_PACKAGE_IMPORT_NOT_DEFINED",(e,t,r)=>`Package import specifier "${e}" is not defined${t?` in package ${t}package.json`:""} imported from ${r}`,TypeError);tr.ERR_PACKAGE_PATH_NOT_EXPORTED=tn("ERR_PACKAGE_PATH_NOT_EXPORTED",(e,t,r=void 0)=>t==="."?`No "exports" main defined in ${e}package.json${r?` imported from ${r}`:""}`:`Package subpath '${t}' is not defined by "exports" in ${e}package.json${r?` imported from ${r}`:""}`,Error);tr.ERR_UNSUPPORTED_DIR_IMPORT=tn("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);tr.ERR_UNKNOWN_FILE_EXTENSION=tn("ERR_UNKNOWN_FILE_EXTENSION",(e,t)=>`Unknown file extension "${e}" for ${t}`,TypeError);tr.ERR_INVALID_ARG_VALUE=tn("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=(0,il().inspect)(t);return n.length>128&&(n=`${n.slice(0,128)}...`),`The ${e.includes(".")?"property":"argument"} '${e}' ${r}. Received ${n}`},TypeError);function tn(e,t,r){return I_.set(e,t),B1e(r,e)}function B1e(e,t){return r;function r(...n){let s=Error.stackTraceLimit;$E()&&(Error.stackTraceLimit=0);let i=new e;$E()&&(Error.stackTraceLimit=s);let a=L1e(t,n,i);return Object.defineProperties(i,{message:{value:a,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),j1e(i),i.code=t,i}}function $E(){try{if(w_().startupSnapshot.isBuildingSnapshot())return!1}catch{}let e=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return e===void 0?Object.isExtensible(Error):O1e.call(e,"writable")&&e.writable!==void 0?e.writable:e.set!==void 0}function F1e(e){let t=k1e+e.name;return Object.defineProperty(e,"name",{value:t}),e}var j1e=F1e(function(e){let t=$E();return t&&(y_=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(e),t&&(Error.stackTraceLimit=y_),e});function L1e(e,t,r){let n=I_.get(e);if(pn()(n!==void 0,"expected `message` to be found"),typeof n=="function")return pn()(n.length<=t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n.length}).`),Reflect.apply(n,r,t);let s=/%[dfijoOs]/g,i=0;for(;s.exec(n)!==null;)i++;return pn()(i===t.length,`Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${i}).`),t.length===0?n:(t.unshift(n),Reflect.apply(il().format,null,t))}function M1e(e){if(e==null)return String(e);if(typeof e=="function"&&e.name)return`function ${e.name}`;if(typeof e=="object")return e.constructor&&e.constructor.name?`an instance of ${e.constructor.name}`:`${(0,il().inspect)(e,{depth:-1})}`;let t=(0,il().inspect)(e,{colors:!1});return t.length>28&&(t=`${t.slice(0,25)}...`),`type ${typeof e} (${t})`}var nl={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:R1e}=tr,g_=new Map,q1e={read:U1e},O_=q1e;function U1e(e,{base:t,specifier:r}){let n=g_.get(e);if(n)return n;let s;try{s=pa().default.readFileSync(Gf().toNamespacedPath(e),"utf8")}catch(a){let o=a;if(o.code!=="ENOENT")throw o}let i={exists:!1,pjsonPath:e,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(s!==void 0){let a;try{a=JSON.parse(s)}catch(o){let l=o,u=new R1e(e,(t?`"${r}" from `:"")+(0,Ae().fileURLToPath)(t||r),l.message);throw u.cause=l,u}i.exists=!0,nl.call(a,"name")&&typeof a.name=="string"&&(i.name=a.name),nl.call(a,"main")&&typeof a.main=="string"&&(i.main=a.main),nl.call(a,"exports")&&(i.exports=a.exports),nl.call(a,"imports")&&(i.imports=a.imports),nl.call(a,"type")&&(a.type==="commonjs"||a.type==="module")&&(i.type=a.type)}return g_.set(e,i),i}function KE(e){let t=new(Ae()).URL("package.json",e);for(;!t.pathname.endsWith("node_modules/package.json");){let s=O_.read((0,Ae().fileURLToPath)(t),{specifier:e});if(s.exists)return s;let i=t;if(t=new(Ae()).URL("../package.json",t),t.pathname===i.pathname)break}return{pjsonPath:(0,Ae().fileURLToPath)(t),exists:!1,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0}}function b_(e){return KE(e).type}var{ERR_UNKNOWN_FILE_EXTENSION:V1e}=tr,$1e={}.hasOwnProperty,W1e={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function K1e(e){return e&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e)?"module":e==="application/json"?"json":null}var E_={__proto__:null,"data:":G1e,"file:":Y1e,"http:":v_,"https:":v_,"node:"(){return"builtin"}};function G1e(e){let{1:t}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname)||[null,null,null];return K1e(t)}function H1e(e){let t=e.pathname,r=t.length;for(;r--;){let n=t.codePointAt(r);if(n===47)return"";if(n===46)return t.codePointAt(r-1)===47?"":t.slice(r)}return""}function Y1e(e,t,r){let n=H1e(e);if(n===".js"){let a=b_(e);return a!=="none"?a:"commonjs"}if(n===""){let a=b_(e);return a==="none"||a==="commonjs"?"commonjs":"module"}let s=W1e[n];if(s)return s;if(r)return;let i=(0,Ae().fileURLToPath)(e);throw new V1e(n,i)}function v_(){}function __(e,t){let r=e.protocol;return $1e.call(E_,r)&&E_[r](e,t,!0)||null}var{ERR_INVALID_ARG_VALUE:X1e}=tr,N_=Object.freeze(["node","import"]),J1e=new Set(N_);function z1e(){return N_}function Q1e(){return J1e}function Z1e(e){if(e!==void 0&&e!==z1e()){if(!Array.isArray(e))throw new X1e("conditions",e,"expected an array");return new Set(e)}return Q1e()}var Wf=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:qE,ERR_INVALID_MODULE_SPECIFIER:Hf,ERR_INVALID_PACKAGE_CONFIG:k_,ERR_INVALID_PACKAGE_TARGET:eve,ERR_MODULE_NOT_FOUND:GE,ERR_PACKAGE_IMPORT_NOT_DEFINED:tve,ERR_PACKAGE_PATH_NOT_EXPORTED:rve,ERR_UNSUPPORTED_DIR_IMPORT:nve}=tr,B_={}.hasOwnProperty,T_=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,S_=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,sve=/^\.|%|\\/,Kf=/\*/g,ive=/%2f|%5c/i,x_=new Set,ave=/[/\\]{2}/;function P_(e,t,r,n,s,i,a){if(bs().noDeprecation)return;let o=(0,Ae().fileURLToPath)(n),l=ave.exec(a?e:t)!==null;bs().emitWarning(`Use of deprecated ${l?"double slash":"leading or trailing slash matching"} resolving "${e}" for module request "${t}" ${t===r?"":`matched to "${r}" `}in the "${s?"imports":"exports"}" field module resolution of the package at ${o}${i?` imported from ${(0,Ae().fileURLToPath)(i)}`:""}.`,"DeprecationWarning","DEP0166")}function A_(e,t,r,n){if(bs().noDeprecation||__(e,{parentURL:r.href})!=="module")return;let i=(0,Ae().fileURLToPath)(e.href),a=(0,Ae().fileURLToPath)(new(Ae()).URL(".",t)),o=(0,Ae().fileURLToPath)(r);n?Gf().resolve(a,n)!==i&&bs().emitWarning(`Package ${a} has a "main" field set to "${n}", excluding the full filename and extension to the resolved file at "${i.slice(a.length)}", imported from ${o}. Automatic extension resolution of the "main" field is deprecated for ES modules.`,"DeprecationWarning","DEP0151"):bs().emitWarning(`No "main" or "exports" field defined in the package.json for ${a} resolving the main entry point "${i.slice(a.length)}", imported from ${o}. Default "index" lookups for the main are deprecated for ES modules.`,"DeprecationWarning","DEP0151")}function F_(e){try{return(0,pa().statSync)(e)}catch{return new(pa()).Stats}}function UE(e){let t=(0,pa().statSync)(e,{throwIfNoEntry:!1}),r=t?t.isFile():void 0;return r==null?!1:r}function ove(e,t,r){let n;if(t.main!==void 0){if(n=new(Ae()).URL(t.main,e),UE(n))return n;let a=[`./${t.main}.js`,`./${t.main}.json`,`./${t.main}.node`,`./${t.main}/index.js`,`./${t.main}/index.json`,`./${t.main}/index.node`],o=-1;for(;++ot):e+t;return L_(m,n,l)}}throw sl(r,e,n,a,s)}if(T_.exec(e.slice(2))!==null)if(S_.exec(e.slice(2))===null){if(!o){let d=i?r.replace("*",()=>t):r+t,m=i?Wf.call(Kf,e,()=>t):e;P_(m,d,r,n,a,s,!0)}}else throw sl(r,e,n,a,s);let u=new(Ae()).URL(e,n),c=u.pathname,f=new(Ae()).URL(".",n).pathname;if(!c.startsWith(f))throw sl(r,e,n,a,s);if(t==="")return u;if(T_.exec(t)!==null){let d=i?r.replace("*",()=>t):r+t;if(S_.exec(t)===null){if(!o){let m=i?Wf.call(Kf,e,()=>t):e;P_(m,d,r,n,a,s,!1)}}else cve(d,r,n,a,s)}return i?new(Ae()).URL(Wf.call(Kf,u.href,()=>t)):new(Ae()).URL(t,u)}function pve(e){let t=Number(e);return`${t}`!==e?!1:t>=0&&t<4294967295}function da(e,t,r,n,s,i,a,o,l){if(typeof t=="string")return fve(t,r,n,e,s,i,a,o,l);if(Array.isArray(t)){let u=t;if(u.length===0)return null;let c,f=-1;for(;++f=c.length&&t.endsWith(d)&&j_(a,c)===1&&c.lastIndexOf("*")===f&&(a=c,o=t.slice(f,t.length-d.length))}}if(a){let c=i[a],f=da(e,c,o,a,n,!0,!1,t.endsWith("/"),s);if(f==null)throw VE(t,e,n);return f}throw VE(t,e,n)}function j_(e,t){let r=e.indexOf("*"),n=t.indexOf("*"),s=r===-1?e.length:r+1,i=n===-1?t.length:n+1;return s>i?-1:i>s||r===-1?1:n===-1||e.length>t.length?-1:t.length>e.length?1:0}function mve(e,t,r){if(e==="#"||e.startsWith("#/")||e.endsWith("/")){let i="is not a valid internal imports specifier name";throw new Hf(e,i,(0,Ae().fileURLToPath)(t))}let n,s=KE(t);if(s.exists){n=(0,Ae().pathToFileURL)(s.pjsonPath);let i=s.imports;if(i)if(B_.call(i,e)&&!e.includes("*")){let a=da(n,i[e],"",e,t,!1,!0,!1,r);if(a!=null)return a}else{let a="",o="",l=Object.getOwnPropertyNames(i),u=-1;for(;++u=c.length&&e.endsWith(d)&&j_(a,c)===1&&c.lastIndexOf("*")===f&&(a=c,o=e.slice(f,e.length-d.length))}}if(a){let c=i[a],f=da(n,c,o,a,t,!0,!0,!1,r);if(f!=null)return f}}}throw uve(e,n,t)}function yve(e,t){let r=e.indexOf("/"),n=!0,s=!1;e[0]==="@"&&(s=!0,r===-1||e.length===0?n=!1:r=e.indexOf("/",r+1));let i=r===-1?e:e.slice(0,r);if(sve.exec(i)!==null&&(n=!1),!n)throw new Hf(e,"is not a valid package name",(0,Ae().fileURLToPath)(t));let a="."+(r===-1?"":e.slice(r));return{packageName:i,packageSubpath:a,isScoped:s}}function L_(e,t,r){if(WE().builtinModules.includes(e))return new(Ae()).URL("node:"+e);let{packageName:n,packageSubpath:s,isScoped:i}=yve(e,t),a=KE(t);if(a.exists){let c=(0,Ae().pathToFileURL)(a.pjsonPath);if(a.name===n&&a.exports!==void 0&&a.exports!==null)return C_(c,s,a,t,r)}let o=new(Ae()).URL("./node_modules/"+n+"/package.json",t),l=(0,Ae().fileURLToPath)(o),u;do{if(!F_(l.slice(0,-13)).isDirectory()){u=l,o=new(Ae()).URL((i?"../../../../node_modules/":"../../../node_modules/")+n+"/package.json",o),l=(0,Ae().fileURLToPath)(o);continue}let f=O_.read(l,{base:t,specifier:e});return f.exports!==void 0&&f.exports!==null?C_(o,s,f,t,r):s==="."?ove(o,f,t):new(Ae()).URL(s,o)}while(l.length!==u.length);throw new GE(n,(0,Ae().fileURLToPath)(t),!1)}function gve(e){return e[0]==="."&&(e.length===1||e[1]==="/"||e[1]==="."&&(e.length===2||e[2]==="/"))}function HE(e){return e===""?!1:e[0]==="/"?!0:gve(e)}function M_(e,t,r,n){let s=t.protocol,i=s==="http:"||s==="https:",a;if(HE(e))a=new(Ae()).URL(e,t);else if(!i&&e[0]==="#")a=mve(e,t,r);else try{a=new(Ae()).URL(e)}catch{i||(a=L_(e,t,r))}return pn()(a!==void 0,"expected to be defined"),a.protocol!=="file:"?a:lve(a,t,n)}function bve(e,t,r){if(r){let n=r.protocol;if(n==="http:"||n==="https:"){if(HE(e)){let s=t==null?void 0:t.protocol;if(s&&s!=="https:"&&s!=="http:")throw new qE(e,r,"remote imports cannot import from a local location.");return{url:(t==null?void 0:t.href)||""}}throw WE().builtinModules.includes(e)?new qE(e,r,"remote imports cannot import from a local location."):new qE(e,r,"only relative and absolute specifiers are supported.")}}}function Eve(e){return!!(e&&typeof e=="object"&&"href"in e&&typeof e.href=="string"&&"protocol"in e&&typeof e.protocol=="string"&&e.href&&e.protocol)}function vve(e){if(e!==void 0&&typeof e!="string"&&!Eve(e))throw new tr.ERR_INVALID_ARG_TYPE("parentURL",["string","URL"],e)}function Tve(e,t={}){let{parentURL:r}=t;pn()(r!==void 0,"expected `parentURL` to be defined"),vve(r);let n;if(r)try{n=new(Ae()).URL(r)}catch{}let s;try{if(s=HE(e)?new(Ae()).URL(e,n):new(Ae()).URL(e),s.protocol==="data:")return{url:s.href,format:null}}catch{}let i=bve(e,s,n);if(i)return i;if(s&&s.protocol==="node:")return{url:e};let a=Z1e(t.conditions),o=M_(e,new(Ae()).URL(r),a,!1);return{url:o.href,format:__(o,{parentURL:r})}}function Sve(e,t){if(!t)throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that");try{return Tve(e,{parentURL:t}).url}catch(r){let n=r;if((n.code==="ERR_UNSUPPORTED_DIR_IMPORT"||n.code==="ERR_MODULE_NOT_FOUND")&&typeof n.url=="string")return n.url;throw r}}});var Y_=b(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.loadPlugin=Bve;Es.loadPreset=Fve;Es.resolvePreset=Es.resolvePlugin=void 0;function U_(){let e=Os();return U_=function(){return e},e}function JE(){let e=require("path");return JE=function(){return e},e}var zE=qi(),V_=jE();function XE(){let e=require("url");return XE=function(){return e},e}var xve=R_();function $_(){let e=require("fs");return $_=function(){return e},e}var W_=U_()("babel:config:loading:files:plugins"),Pve=/^module:/,Ave=/^(?!@|module:|[^/]+\/|babel-plugin-)/,Cve=/^(?!@|module:|[^/]+\/|babel-preset-)/,wve=/^(@babel\/)(?!plugin-|[^/]+\/)/,Dve=/^(@babel\/)(?!preset-|[^/]+\/)/,Ive=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/,Ove=/^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/,_ve=/^(@(?!babel$)[^/]+)$/,Nve=Es.resolvePlugin=G_.bind(null,"plugin"),kve=Es.resolvePreset=G_.bind(null,"preset");function*Bve(e,t){let r=Nve(e,t,yield*(0,zE.isAsync)()),n=yield*H_("plugin",r);return W_("Loaded plugin %o from %o.",e,t),{filepath:r,value:n}}function*Fve(e,t){let r=kve(e,t,yield*(0,zE.isAsync)()),n=yield*H_("preset",r);return W_("Loaded preset %o from %o.",e,t),{filepath:r,value:n}}function YE(e,t){if(JE().isAbsolute(t))return t;let r=e==="preset";return t.replace(r?Cve:Ave,`babel-${e}-`).replace(r?Dve:wve,`$1${e}-`).replace(r?Ove:Ive,`$1babel-${e}-`).replace(_ve,`$1/babel-${e}`).replace(Pve,"")}function*K_(e,t){let r=YE(e,t),{error:n,value:s}=yield r;if(!n)return s;if(n.code!=="MODULE_NOT_FOUND")throw n;r!==t&&!(yield t).error&&(n.message+=` - If you want to resolve "${t}", use "module:${t}"`),(yield YE(e,"@babel/"+t)).error||(n.message+=` - Did you mean "@babel/${t}"?`);let i=e==="preset"?"plugin":"preset";if((yield YE(i,t)).error||(n.message+=` - Did you accidentally pass a ${i} as a ${e}?`),e==="plugin"){let a=r.replace("-proposal-","-transform-");a!==r&&!(yield a).error&&(n.message+=` - Did you mean "${a}"?`)}throw n.message+=` Make sure that all the Babel plugins and presets you are using are defined as dependencies or devDependencies in your package.json file. It's possible that the missing plugin is loaded by a preset you are using that forgot to add the plugin to its dependencies: you can workaround this problem by explicitly adding the missing package to your top-level package.json. `,n}function jve(e,t){try{return t?{error:null,value:(((r,n)=>(r=r.split("."),n=n.split("."),+r[0]>+n[0]||r[0]==n[0]&&+r[1]>=+n[1]))(process.versions.node,"8.9")?require.resolve:(r,{paths:[n]},s=require("module"))=>{let i=s._findPath(r,s._nodeModulePaths(n).concat(n));if(i)return i;throw i=new Error(`Cannot resolve module '${r}'`),i.code="MODULE_NOT_FOUND",i})(e,{paths:[t]})}:{error:null,value:require.resolve(e)}}catch(r){return{error:r,value:null}}}function Lve(e,t){try{return{error:null,value:(0,xve.resolve)(e,t)}}catch(r){return{error:r,value:null}}}function q_(e,t,r){let n=K_(e,t),s=n.next();for(;!s.done;)s=n.next(jve(s.value,r));return s.value}function Mve(e,t,r){let n=(0,XE().pathToFileURL)(JE().join(r,"./babel-virtual-resolve-base.js")).href,s=K_(e,t),i=s.next();for(;!i.done;)i=s.next(Lve(i.value,n));return(0,XE().fileURLToPath)(i.value)}function G_(e,t,r,n){if(!V_.supportsESM||!n)return q_(e,t,r);try{let s=Mve(e,t,r);if(!(0,$_().existsSync)(s))throw Object.assign(new Error(`Could not resolve "${t}" in file ${r}.`),{type:"MODULE_NOT_FOUND"});return s}catch(s){try{return q_(e,t,r)}catch(i){throw s.type==="MODULE_NOT_FOUND"?s:i.type==="MODULE_NOT_FOUND"?i:s}}}Xf=new Set;var Xf;function*H_(e,t){if(!(yield*(0,zE.isAsync)())&&Xf.has(t))throw new Error(`Reentrant ${e} detected trying to load "${t}". This module is not ignored and is trying to load itself while compiling itself, leading to a dependency cycle. We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.`);try{return Xf.add(t),yield*(0,V_.default)(t,`You appear to be using a native ECMAScript module ${e}, which is only supported when running Babel asynchronously.`,!0)}catch(r){throw r.message=`[BABEL]: ${r.message} (While processing: ${t})`,r}finally{Xf.delete(t)}}});var Lo=b(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});Object.defineProperty(xr,"ROOT_CONFIG_FILENAMES",{enumerable:!0,get:function(){return ha.ROOT_CONFIG_FILENAMES}});Object.defineProperty(xr,"findConfigUpwards",{enumerable:!0,get:function(){return ha.findConfigUpwards}});Object.defineProperty(xr,"findPackageData",{enumerable:!0,get:function(){return Rve.findPackageData}});Object.defineProperty(xr,"findRelativeConfig",{enumerable:!0,get:function(){return ha.findRelativeConfig}});Object.defineProperty(xr,"findRootConfig",{enumerable:!0,get:function(){return ha.findRootConfig}});Object.defineProperty(xr,"loadConfig",{enumerable:!0,get:function(){return ha.loadConfig}});Object.defineProperty(xr,"loadPlugin",{enumerable:!0,get:function(){return Jf.loadPlugin}});Object.defineProperty(xr,"loadPreset",{enumerable:!0,get:function(){return Jf.loadPreset}});Object.defineProperty(xr,"resolvePlugin",{enumerable:!0,get:function(){return Jf.resolvePlugin}});Object.defineProperty(xr,"resolvePreset",{enumerable:!0,get:function(){return Jf.resolvePreset}});Object.defineProperty(xr,"resolveShowConfigPath",{enumerable:!0,get:function(){return ha.resolveShowConfigPath}});var Rve=g2(),ha=m_(),Jf=Y_()});var J_=b(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.transform=void 0;ma.transformAsync=$ve;ma.transformSync=Vve;function X_(){let e=vr();return X_=function(){return e},e}var qve=ta(),Uve=Tf(),zf=Dn(),Qf=X_()(function*(t,r){let n=yield*(0,qve.default)(r);return n===null?null:yield*(0,Uve.run)(n,t)}),LIe=ma.transform=function(t,r,n){let s,i;if(typeof r=="function"?(i=r,s=void 0):(s=r,i=n),i===void 0)return(0,zf.beginHiddenCallStack)(Qf.sync)(t,s);(0,zf.beginHiddenCallStack)(Qf.errback)(t,s,i)};function Vve(...e){return(0,zf.beginHiddenCallStack)(Qf.sync)(...e)}function $ve(...e){return(0,zf.beginHiddenCallStack)(Qf.async)(...e)}});var Q_=b(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});ya.transformFromAst=void 0;ya.transformFromAstAsync=Hve;ya.transformFromAstSync=Gve;function z_(){let e=vr();return z_=function(){return e},e}var Wve=ta(),Kve=Tf(),Zf=Dn(),ep=z_()(function*(e,t,r){let n=yield*(0,Wve.default)(r);if(n===null)return null;if(!e)throw new Error("No AST given");return yield*(0,Kve.run)(n,t,e)}),RIe=ya.transformFromAst=function(t,r,n,s){let i,a;if(typeof n=="function"?(a=n,i=void 0):(i=n,a=s),a===void 0)return(0,Zf.beginHiddenCallStack)(ep.sync)(t,r,i);(0,Zf.beginHiddenCallStack)(ep.errback)(t,r,i,a)};function Gve(...e){return(0,Zf.beginHiddenCallStack)(ep.sync)(...e)}function Hve(...e){return(0,Zf.beginHiddenCallStack)(ep.async)(...e)}});var eN=b(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.parse=void 0;ga.parseAsync=Qve;ga.parseSync=zve;function Z_(){let e=vr();return Z_=function(){return e},e}var Yve=ta(),Xve=Cb(),Jve=Tb(),tp=Dn(),rp=Z_()(function*(t,r){let n=yield*(0,Yve.default)(r);return n===null?null:yield*(0,Xve.default)(n.passes,(0,Jve.default)(n),t)}),UIe=ga.parse=function(t,r,n){if(typeof r=="function"&&(n=r,r=void 0),n===void 0)return(0,tp.beginHiddenCallStack)(rp.sync)(t,r);(0,tp.beginHiddenCallStack)(rp.errback)(t,r,n)};function zve(...e){return(0,tp.beginHiddenCallStack)(rp.sync)(...e)}function Qve(...e){return(0,tp.beginHiddenCallStack)(rp.async)(...e)}});var ft=b(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.DEFAULT_EXTENSIONS=void 0;Object.defineProperty(We,"File",{enumerable:!0,get:function(){return Zve.default}});Object.defineProperty(We,"buildExternalHelpers",{enumerable:!0,get:function(){return eTe.default}});Object.defineProperty(We,"createConfigItem",{enumerable:!0,get:function(){return dn.createConfigItem}});Object.defineProperty(We,"createConfigItemAsync",{enumerable:!0,get:function(){return dn.createConfigItemAsync}});Object.defineProperty(We,"createConfigItemSync",{enumerable:!0,get:function(){return dn.createConfigItemSync}});Object.defineProperty(We,"getEnv",{enumerable:!0,get:function(){return tTe.getEnv}});Object.defineProperty(We,"loadOptions",{enumerable:!0,get:function(){return dn.loadOptions}});Object.defineProperty(We,"loadOptionsAsync",{enumerable:!0,get:function(){return dn.loadOptionsAsync}});Object.defineProperty(We,"loadOptionsSync",{enumerable:!0,get:function(){return dn.loadOptionsSync}});Object.defineProperty(We,"loadPartialConfig",{enumerable:!0,get:function(){return dn.loadPartialConfig}});Object.defineProperty(We,"loadPartialConfigAsync",{enumerable:!0,get:function(){return dn.loadPartialConfigAsync}});Object.defineProperty(We,"loadPartialConfigSync",{enumerable:!0,get:function(){return dn.loadPartialConfigSync}});Object.defineProperty(We,"parse",{enumerable:!0,get:function(){return t1.parse}});Object.defineProperty(We,"parseAsync",{enumerable:!0,get:function(){return t1.parseAsync}});Object.defineProperty(We,"parseSync",{enumerable:!0,get:function(){return t1.parseSync}});Object.defineProperty(We,"resolvePlugin",{enumerable:!0,get:function(){return tN.resolvePlugin}});Object.defineProperty(We,"resolvePreset",{enumerable:!0,get:function(){return tN.resolvePreset}});Object.defineProperty(We,"template",{enumerable:!0,get:function(){return iN().default}});Object.defineProperty(We,"tokTypes",{enumerable:!0,get:function(){return nN().tokTypes}});Object.defineProperty(We,"transform",{enumerable:!0,get:function(){return QE.transform}});Object.defineProperty(We,"transformAsync",{enumerable:!0,get:function(){return QE.transformAsync}});Object.defineProperty(We,"transformFile",{enumerable:!0,get:function(){return ZE.transformFile}});Object.defineProperty(We,"transformFileAsync",{enumerable:!0,get:function(){return ZE.transformFileAsync}});Object.defineProperty(We,"transformFileSync",{enumerable:!0,get:function(){return ZE.transformFileSync}});Object.defineProperty(We,"transformFromAst",{enumerable:!0,get:function(){return e1.transformFromAst}});Object.defineProperty(We,"transformFromAstAsync",{enumerable:!0,get:function(){return e1.transformFromAstAsync}});Object.defineProperty(We,"transformFromAstSync",{enumerable:!0,get:function(){return e1.transformFromAstSync}});Object.defineProperty(We,"transformSync",{enumerable:!0,get:function(){return QE.transformSync}});Object.defineProperty(We,"traverse",{enumerable:!0,get:function(){return sN().default}});We.version=We.types=void 0;var Zve=fc(),eTe=WC(),tN=Lo(),tTe=ub();function rN(){let e=Oe();return rN=function(){return e},e}Object.defineProperty(We,"types",{enumerable:!0,get:function(){return rN()}});function nN(){let e=Ni();return nN=function(){return e},e}function sN(){let e=Vr();return sN=function(){return e},e}function iN(){let e=ki();return iN=function(){return e},e}var dn=ta(),QE=J_(),ZE=Ub(),e1=Q_(),t1=eN(),$Ie=ft(),WIe=We.version="7.23.7",KIe=We.DEFAULT_EXTENSIONS=Object.freeze([".js",".jsx",".es6",".es",".mjs",".cjs"]);We.OptionManager=class{init(t){return(0,dn.loadOptionsSync)(t)}},We.Plugin=function(t){throw new Error(`The (${t}) Babel 5 plugin is being run with an unsupported Babel version.`)}});var r1=b(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.default=void 0;var rTe=tt(),nTe=(0,rTe.declare)((e,t)=>{e.assertVersion(7);let{version:r}=t;{let{legacy:s}=t;if(s!==void 0){if(typeof s!="boolean")throw new Error(".legacy must be a boolean.");if(r!==void 0)throw new Error("You can either use the .legacy or the .version option, not both.")}if(r===void 0)r=s?"legacy":"2018-09";else if(r!=="2023-05"&&r!=="2023-01"&&r!=="2022-03"&&r!=="2021-12"&&r!=="2018-09"&&r!=="legacy")throw new Error("Unsupported decorators version: "+r);var{decoratorsBeforeExport:n}=t;if(n===void 0){if(r==="2021-12"||r==="2022-03")n=!1;else if(r==="2018-09")throw new Error("The decorators plugin, when .version is '2018-09' or not specified, requires a 'decoratorsBeforeExport' option, whose value must be a boolean.")}else{if(r==="legacy"||r==="2022-03"||r==="2023-01")throw new Error(`'decoratorsBeforeExport' can't be used with ${r} decorators.`);if(typeof n!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean.")}}return{name:"syntax-decorators",manipulateOptions({generatorOpts:s},i){r==="legacy"?i.plugins.push("decorators-legacy"):r==="2023-01"||r==="2023-05"?i.plugins.push(["decorators",{allowCallParenthesized:!1}],"decoratorAutoAccessors"):r==="2022-03"?i.plugins.push(["decorators",{decoratorsBeforeExport:!1,allowCallParenthesized:!1}],"decoratorAutoAccessors"):r==="2021-12"?(i.plugins.push(["decorators",{decoratorsBeforeExport:n}],"decoratorAutoAccessors"),s.decoratorsBeforeExport=n):r==="2018-09"&&(i.plugins.push(["decorators",{decoratorsBeforeExport:n}]),s.decoratorsBeforeExport=n)}}});np.default=nTe});var cN=b(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.default=void 0;var pe=ft(),sTe=pe.template.statement(` DECORATOR(CLASS_REF = INNER) || CLASS_REF; `),iTe=(0,pe.template)(` CLASS_REF.prototype; `),aTe=(0,pe.template)(` Object.getOwnPropertyDescriptor(TARGET, PROPERTY); `),oTe=(0,pe.template)(` (TEMP = Object.getOwnPropertyDescriptor(TARGET, PROPERTY), (TEMP = TEMP ? TEMP.value : undefined), { enumerable: true, configurable: true, writable: true, initializer: function(){ return TEMP; } }) `),n1=new WeakSet;function aN(e){let r=(e.isClass()?[e,...e.get("body.body")]:e.get("properties")).reduce((n,s)=>n.concat(s.node.decorators||[]),[]).filter(n=>!pe.types.isIdentifier(n.expression));if(r.length!==0)return pe.types.sequenceExpression(r.map(n=>{let s=n.expression,i=n.expression=e.scope.generateDeclaredUidIdentifier("dec");return pe.types.assignmentExpression("=",i,s)}).concat([e.node]))}function lTe(e){if(!lN(e.node))return;let t=e.node.decorators||[];e.node.decorators=null;let r=e.scope.generateDeclaredUidIdentifier("class");return t.map(n=>n.expression).reverse().reduce(function(n,s){return sTe({CLASS_REF:pe.types.cloneNode(r),DECORATOR:pe.types.cloneNode(s),INNER:n}).expression},e.node)}function lN(e){var t;return!!((t=e.decorators)!=null&&t.length)}function uTe(e,t){if(s1(e.node.body.body))return uN(e,t,e.node.body.body)}function s1(e){return e.some(t=>{var r;return(r=t.decorators)==null?void 0:r.length})}function cTe(e,t){if(s1(e.node.properties))return uN(e,t,e.node.properties.filter(r=>r.type!=="SpreadElement"))}function uN(e,t,r){let n=e.scope.generateDeclaredUidIdentifier(e.isClass()?"class":"obj"),s=r.reduce(function(i,a){let o=[];if(a.decorators!=null&&(o=a.decorators,a.decorators=null),o.length===0)return i;if(a.computed)throw e.buildCodeFrameError("Computed method/property decorators are not yet supported.");let l=pe.types.isLiteral(a.key)?a.key:pe.types.stringLiteral(a.key.name),u=e.isClass()&&!a.static?iTe({CLASS_REF:n}).expression:n;if(pe.types.isClassProperty(a,{static:!1})){let c=e.scope.generateDeclaredUidIdentifier("descriptor"),f=a.value?pe.types.functionExpression(null,[],pe.types.blockStatement([pe.types.returnStatement(a.value)])):pe.types.nullLiteral();a.value=pe.types.callExpression(t.addHelper("initializerWarningHelper"),[c,pe.types.thisExpression()]),n1.add(a.value),i.push(pe.types.assignmentExpression("=",pe.types.cloneNode(c),pe.types.callExpression(t.addHelper("applyDecoratedDescriptor"),[pe.types.cloneNode(u),pe.types.cloneNode(l),pe.types.arrayExpression(o.map(d=>pe.types.cloneNode(d.expression))),pe.types.objectExpression([pe.types.objectProperty(pe.types.identifier("configurable"),pe.types.booleanLiteral(!0)),pe.types.objectProperty(pe.types.identifier("enumerable"),pe.types.booleanLiteral(!0)),pe.types.objectProperty(pe.types.identifier("writable"),pe.types.booleanLiteral(!0)),pe.types.objectProperty(pe.types.identifier("initializer"),f)])])))}else i.push(pe.types.callExpression(t.addHelper("applyDecoratedDescriptor"),[pe.types.cloneNode(u),pe.types.cloneNode(l),pe.types.arrayExpression(o.map(c=>pe.types.cloneNode(c.expression))),pe.types.isObjectProperty(a)||pe.types.isClassProperty(a,{static:!0})?oTe({TEMP:e.scope.generateDeclaredUidIdentifier("init"),TARGET:pe.types.cloneNode(u),PROPERTY:pe.types.cloneNode(l)}).expression:aTe({TARGET:pe.types.cloneNode(u),PROPERTY:pe.types.cloneNode(l)}).expression,pe.types.cloneNode(u)]));return i},[]);return pe.types.sequenceExpression([pe.types.assignmentExpression("=",pe.types.cloneNode(n),e.node),pe.types.sequenceExpression(s),pe.types.cloneNode(n)])}function oN({node:e,scope:t}){if(!lN(e)&&!s1(e.body.body))return;let r=e.id?pe.types.cloneNode(e.id):t.generateUidIdentifier("class");return pe.types.variableDeclaration("let",[pe.types.variableDeclarator(r,pe.types.toExpression(e))])}var fTe={ExportDefaultDeclaration(e){let t=e.get("declaration");if(!t.isClassDeclaration())return;let r=oN(t);if(r){let[n]=e.replaceWithMultiple([r,pe.types.exportNamedDeclaration(null,[pe.types.exportSpecifier(pe.types.cloneNode(r.declarations[0].id),pe.types.identifier("default"))])]);t.node.id||e.scope.registerDeclaration(n)}},ClassDeclaration(e){let t=oN(e);if(t){let[r]=e.replaceWith(t),n=r.get("declarations.0"),s=n.node.id,i=e.scope.getOwnBinding(s.name);i.identifier=s,i.path=n}},ClassExpression(e,t){let r=aN(e)||lTe(e)||uTe(e,t);r&&e.replaceWith(r)},ObjectExpression(e,t){let r=aN(e)||cTe(e,t);r&&e.replaceWith(r)},AssignmentExpression(e,t){n1.has(e.node.right)&&e.replaceWith(pe.types.callExpression(t.addHelper("initializerDefineProperty"),[pe.types.cloneNode(e.get("left.object").node),pe.types.stringLiteral(e.get("left.property").node.name||e.get("left.property").node.value),pe.types.cloneNode(e.get("right.arguments")[0].node),pe.types.cloneNode(e.get("right.arguments")[1].node)]))},CallExpression(e,t){e.node.arguments.length===3&&n1.has(e.node.arguments[2])&&e.node.callee.name===t.addHelper("defineProperty").name&&e.replaceWith(pe.types.callExpression(t.addHelper("initializerDefineProperty"),[pe.types.cloneNode(e.get("arguments")[0].node),pe.types.cloneNode(e.get("arguments")[1].node),pe.types.cloneNode(e.get("arguments.2.arguments")[0].node),pe.types.cloneNode(e.get("arguments.2.arguments")[1].node)]))}},pTe=fTe;sp.default=pTe});var vN=b(i1=>{"use strict";Object.defineProperty(i1,"__esModule",{value:!0});i1.default=kTe;var j=ft(),dTe=r1(),hTe=Xo(),mTe=yi();function yN(e,t=e.length-1){if(t===-1){e.unshift(65);return}let r=e[t];r===90?e[t]=97:r===122?(e[t]=65,yN(e,t-1)):e[t]=r+1}function yTe(e){let t=[],r=new Set;return e.traverse({PrivateName(n){r.add(n.node.id.name)}}),()=>{let n;do yN(t),n=String.fromCharCode(...t);while(r.has(n));return j.types.privateName(j.types.identifier(n))}}function gTe(e){let t;return()=>(t||(t=yTe(e)),t())}function bTe(e){if(e.type==="ClassDeclaration"){let t=e.scope.generateUidIdentifierBasedOnNode(e.node.id),r=j.types.identifier(e.node.id.name);return e.scope.rename(r.name,t.name),e.insertBefore(j.types.variableDeclaration("let",[j.types.variableDeclarator(t)])),e.get("id").replaceWith(r),[j.types.cloneNode(t),e]}else{let t,r;e.node.id?(t=e.node.id.name,r=e.scope.parent.generateDeclaredUidIdentifier(t),e.scope.rename(t,r.name)):e.parentPath.node.type==="VariableDeclarator"&&e.parentPath.node.id.type==="Identifier"?(t=e.parentPath.node.id.name,r=e.scope.parent.generateDeclaredUidIdentifier(t)):r=e.scope.parent.generateDeclaredUidIdentifier("decorated_class");let n=j.types.classExpression(t&&j.types.identifier(t),e.node.superClass,e.node.body),[s]=e.replaceWith(j.types.sequenceExpression([n,r]));return[j.types.cloneNode(r),s.get("expressions.0")]}}function fN(e,t,r){return e.type==="PrivateName"?j.types.classPrivateProperty(e,t,void 0,r):j.types.classProperty(e,t,void 0,void 0,r)}function pN(e,t,r,n,s,i=!1){let{static:a}=t.node,o=s==="2023-05"&&a?e:j.types.thisExpression(),l=j.types.blockStatement([j.types.returnStatement(j.types.memberExpression(j.types.cloneNode(o),j.types.cloneNode(n)))]),u=j.types.blockStatement([j.types.expressionStatement(j.types.assignmentExpression("=",j.types.memberExpression(j.types.cloneNode(o),j.types.cloneNode(n)),j.types.identifier("v")))]),c,f;r.type==="PrivateName"?(c=j.types.classPrivateMethod("get",j.types.cloneNode(r),[],l,a),f=j.types.classPrivateMethod("set",j.types.cloneNode(r),[j.types.identifier("v")],u,a)):(c=j.types.classMethod("get",j.types.cloneNode(r),[],l,i,a),f=j.types.classMethod("set",j.types.cloneNode(r),[j.types.identifier("v")],u,i,a)),t.insertAfter(f),t.insertAfter(c)}function dN(e,t){return t!=="2023-05"&&t!=="2023-01"?[j.template.expression.ast` function () { return this.${j.types.cloneNode(e)}; } `,j.template.expression.ast` function (value) { this.${j.types.cloneNode(e)} = value; } `]:[j.template.expression.ast` o => o.${j.types.cloneNode(e)} `,j.template.expression.ast` (o, v) => o.${j.types.cloneNode(e)} = v `]}var ba=0,al=1,ETe=2,gN=3,ip=4,vTe=5,TTe=8,STe=16;function xTe(e){switch(e.node.type){case"ClassProperty":case"ClassPrivateProperty":return ba;case"ClassAccessorProperty":return al;case"ClassMethod":case"ClassPrivateMethod":return e.node.kind==="get"?gN:e.node.kind==="set"?ip:ETe}}function PTe(e){return"decorators"in e}function bN(e){let t=e.filter(PTe);return[...t.filter(r=>r.isStatic&&r.kind>=al&&r.kind<=ip),...t.filter(r=>!r.isStatic&&r.kind>=al&&r.kind<=ip),...t.filter(r=>r.isStatic&&r.kind===ba),...t.filter(r=>!r.isStatic&&r.kind===ba)]}function EN(e,t,r){let n=e.length,s=t.some(Boolean),i=[];for(let a=0;a{let{decs:n,hasThis:s}=EN(r.decorators,r.decoratorsThis,t),i=r.kind;return r.isStatic&&(i+=t==="2023-05"?TTe:vTe),s&&(i+=STe),j.types.arrayExpression([n.length===1?n[0]:j.types.arrayExpression(n),j.types.numericLiteral(i),r.name,...r.privateMethods||[]])}))}function CTe(e){let t=[];for(let r of bN(e)){let{locals:n}=r;Array.isArray(n)?t.push(...n):n!==void 0&&t.push(n)}return t}function wTe(e,t,r,n){e.insertAfter(j.types.classPrivateMethod("get",j.types.cloneNode(t),[],j.types.blockStatement([j.types.returnStatement(j.types.callExpression(j.types.cloneNode(r),[j.types.thisExpression()]))]))),e.insertAfter(j.types.classPrivateMethod("set",j.types.cloneNode(t),[j.types.identifier("v")],j.types.blockStatement([j.types.expressionStatement(j.types.callExpression(j.types.cloneNode(n),[j.types.thisExpression(),j.types.identifier("v")]))])))}function DTe(e){return e.type!=="TSParameterProperty"}function ITe(e,t,r,n){let s,i;e.node.kind==="set"?(s=[j.types.identifier("v")],i=[j.types.expressionStatement(j.types.callExpression(r,[j.types.thisExpression(),j.types.identifier("v")]))]):(s=[],i=[j.types.returnStatement(j.types.callExpression(r,[j.types.thisExpression()]))]),e.replaceWith(j.types.classPrivateMethod(e.node.kind,j.types.cloneNode(t),s,j.types.blockStatement(i),n))}function hN(e){let{type:t}=e;return t!=="TSDeclareMethod"&&t!=="TSIndexSignature"&&t!=="StaticBlock"}function mN(e){return j.types.callExpression(j.types.arrowFunctionExpression([],j.types.blockStatement(e.body)),[])}function OTe(e){return e.length===0?j.types.unaryExpression("void",j.types.numericLiteral(0)):e.length===1?e[0]:j.types.sequenceExpression(e)}function _Te(e,t,r,n){let s=e.get("body.body"),i=e.node.decorators,a=!1,o=gTe(e);for(let J of s)if(hN(J)){if(J.node.decorators&&J.node.decorators.length>0)a=!0;else if(J.node.type==="ClassAccessorProperty"){let{key:ee,value:te,static:K,computed:re}=J.node,H=o(),me=te?j.types.cloneNode(te):void 0,De=fN(H,me,K),[Le]=J.replaceWith(De);pN(e.node.id,Le,ee,H,n,re)}}if(!i&&!a)return;let l=[],u,c,f=!1,d=!1,m=new Set,y,p,E,T,O=[],C=e.scope.parent,v=(J,ee)=>{let te=C.generateDeclaredUidIdentifier(ee);return O.push(j.types.assignmentExpression("=",te,J)),j.types.cloneNode(te)},I=new Map,k=J=>{let{expression:ee}=J;if(n==="2023-05"&&j.types.isMemberExpression(ee)){let te;j.types.isSuper(ee.object)||j.types.isThisExpression(ee.object)?te=v(j.types.thisExpression(),"obj"):C.isStatic(ee.object)?te=ee.object:(te=v(ee.object,"obj"),ee.object=te),I.set(J,j.types.cloneNode(te))}C.isStatic(ee)||(J.expression=v(ee,"dec"))};if(i){E=C.generateDeclaredUidIdentifier("initClass");let[J,ee]=bTe(e);e=ee,T=J,e.node.decorators=null;for(let te of i)k(te)}else e.node.id||(e.node.id=e.scope.generateUidIdentifier("Class")),T=j.types.cloneNode(e.node.id);let B,M=!1;if(a)for(let J of s){if(!hN(J))continue;let{node:ee}=J,te=J.get("decorators"),K=Array.isArray(te)&&te.length>0;if(K)for(let V of te)k(V.node);let re="computed"in J.node&&J.node.computed===!0;re&&(C.isStatic(ee.key)||(ee.key=v(ee.key,"computedKey")));let H=xTe(J),{key:me}=ee,De=me.type==="PrivateName",Le=!!J.node.static,U="computedKey";if(De?U=me.id.name:!re&&me.type==="Identifier"&&(U=me.name),De&&!Le&&(K&&(M=!0),(j.types.isClassPrivateProperty(ee)||!B)&&(B=me)),J.isClassMethod({kind:"constructor"})&&(c=J),K){let V,Z;if(H===al){let{value:ve}=J.node,ge=[j.types.thisExpression()];ve&&ge.push(j.types.cloneNode(ve));let Ce=o(),Fe=J.scope.parent.generateDeclaredUidIdentifier(`init_${U}`),Be=j.types.callExpression(j.types.cloneNode(Fe),ge),Re=fN(Ce,Be,Le),[ht]=J.replaceWith(Re);if(De){Z=dN(Ce,n);let bt=ht.scope.parent.generateDeclaredUidIdentifier(`get_${U}`),_t=ht.scope.parent.generateDeclaredUidIdentifier(`set_${U}`);wTe(ht,me,bt,_t),V=[Fe,bt,_t]}else pN(e.node.id,ht,me,Ce,n,re),V=Fe}else if(H===ba){let ve=J.scope.parent.generateDeclaredUidIdentifier(`init_${U}`),ge=J.get("value");ge.replaceWith(j.types.callExpression(j.types.cloneNode(ve),[j.types.thisExpression(),ge.node].filter(Ce=>Ce))),V=ve,De&&(Z=dN(me,n))}else if(De){V=J.scope.parent.generateDeclaredUidIdentifier(`call_${U}`),new hTe.default({constantSuper:r,methodPath:J,objectRef:T,superRef:e.node.superClass,file:t.file,refToPreserve:T}).replace();let{params:ge,body:Ce,async:Fe}=J.node;if(Z=[j.types.functionExpression(void 0,ge.filter(DTe),Ce,Fe)],H===gN||H===ip)ITe(J,j.types.cloneNode(me),j.types.cloneNode(V),Le);else{let Be=J.node;e.node.body.body.unshift(j.types.classPrivateProperty(me,j.types.cloneNode(V),[],Be.static)),m.add(me.id.name),J.remove()}}let ae;re?ae=j.types.cloneNode(me):me.type==="PrivateName"?ae=j.types.stringLiteral(me.id.name):me.type==="Identifier"?ae=j.types.stringLiteral(me.name):ae=j.types.cloneNode(me),l.push({kind:H,decorators:te.map(ve=>ve.node.expression),decoratorsThis:te.map(ve=>I.get(ve.node)),name:ae,isStatic:Le,privateMethods:Z,locals:V}),H!==ba&&(Le?d=!0:f=!0),J.node&&(J.node.decorators=null),!u&&!Le&&(H===ba||H===al)&&(u=J)}}let X=ATe(l,n),oe=0,he=[];if(i){let{hasThis:J,decs:ee}=EN(i.map(te=>te.expression),i.map(te=>I.get(te)),n);oe=J?1:0,he=ee}let be=CTe(l);if(f){y=C.generateDeclaredUidIdentifier("initProto"),be.push(y);let J=j.types.callExpression(j.types.cloneNode(y),[j.types.thisExpression()]);if(u){let ee=u.get("value"),te=[J];ee.node&&te.push(ee.node),ee.replaceWith(j.types.sequenceExpression(te))}else if(c)e.node.superClass?e.traverse({CallExpression:{exit(ee){ee.get("callee").isSuper()&&(ee.replaceWith(j.types.callExpression(j.types.cloneNode(y),[ee.node])),ee.skip())}}}):c.node.body.body.unshift(j.types.expressionStatement(J));else{let ee=[j.types.expressionStatement(J)];e.node.superClass&&ee.unshift(j.types.expressionStatement(j.types.callExpression(j.types.super(),[j.types.spreadElement(j.types.identifier("args"))]))),e.node.body.body.unshift(j.types.classMethod("constructor",j.types.identifier("constructor"),[j.types.restElement(j.types.identifier("args"))],j.types.blockStatement(ee)))}}d&&(p=C.generateDeclaredUidIdentifier("initStatic"),be.push(p)),m.size>0&&e.traverse({PrivateName(J){if(!m.has(J.node.id.name))return;let ee=J.parentPath,te=ee.parentPath;if(te.node.type==="AssignmentExpression"&&te.node.left===ee.node||te.node.type==="UpdateExpression"||te.node.type==="RestElement"||te.node.type==="ArrayPattern"||te.node.type==="ObjectProperty"&&te.node.value===ee.node&&te.parentPath.type==="ObjectPattern"||te.node.type==="ForOfStatement"&&te.node.left===ee.node)throw J.buildCodeFrameError(`Decorated private methods are not updatable, but "#${J.node.id.name}" is updated via this expression.`)}});let nt=[],ct=!1,$=E&&j.types.callExpression(j.types.cloneNode(E),[]),z=e.node;if(i){nt.push(T,E);let J=[],ee=[];if(e.get("body.body").forEach(te=>{if(te.isStaticBlock()){ee.push(te.node),te.remove();return}let K=te.isClassProperty()||te.isClassPrivateProperty();if((K||te.isClassPrivateMethod())&&te.node.static){if(K&&ee.length>0){let re=ee.map(mN);te.node.value&&re.push(te.node.value),te.node.value=OTe(re),ee=[]}te.node.static=!1,J.push(te.node),te.remove()}}),J.length>0||ee.length>0){let te=j.template.expression.ast` class extends ${t.addHelper("identity")} {} `;te.body.body=[j.types.staticBlock([j.types.toStatement(z,!0)||j.types.expressionStatement(z)]),...J];let K=[],re=j.types.newExpression(te,[]);ee.length>0&&K.push(...ee.map(mN)),$&&(ct=!0,K.push($)),K.length>0?(K.unshift(j.types.callExpression(j.types.super(),[j.types.cloneNode(T)])),te.body.body.push(j.types.classMethod("constructor",j.types.identifier("constructor"),[],j.types.blockStatement([j.types.expressionStatement(j.types.sequenceExpression(K))])))):re.arguments.push(j.types.cloneNode(T)),e.replaceWith(re)}}!ct&&$&&e.node.body.body.push(j.types.staticBlock([j.types.expressionStatement($)]));let{superClass:de}=z;if(de&&n==="2023-05"){let J=e.scope.maybeGenerateMemoised(de);J&&(z.superClass=j.types.assignmentExpression("=",J,de),de=J)}return z.body.body.unshift(j.types.staticBlock([j.types.expressionStatement(NTe(be,nt,X,j.types.arrayExpression(he),j.types.numericLiteral(oe),M?B:null,j.types.cloneNode(de),t,n)),d&&j.types.expressionStatement(j.types.callExpression(j.types.cloneNode(p),[j.types.thisExpression()]))].filter(Boolean))),e.insertBefore(O.map(J=>j.types.expressionStatement(J))),e.scope.crawl(),e}function NTe(e,t,r,n,s,i,a,o,l){let u,c,f=[j.types.thisExpression(),r,n];if(l==="2021-12"||l==="2022-03"&&!o.availableHelper("applyDecs2203R")){let d=j.types.arrayPattern([...e,...t]),m=j.types.callExpression(o.addHelper(l==="2021-12"?"applyDecs":"applyDecs2203"),f);return j.types.assignmentExpression("=",d,m)}return l==="2023-05"?((i||a||s.value!==0)&&f.push(s),i?f.push(j.template.expression.ast` _ => ${j.types.cloneNode(i)} in _ `):a&&f.push(j.types.unaryExpression("void",j.types.numericLiteral(0))),a&&f.push(a),c=j.types.callExpression(o.addHelper("applyDecs2305"),f)):l==="2023-01"?(i&&f.push(j.template.expression.ast` _ => ${j.types.cloneNode(i)} in _ `),c=j.types.callExpression(o.addHelper("applyDecs2301"),f)):c=j.types.callExpression(o.addHelper("applyDecs2203R"),f),e.length>0?t.length>0?u=j.types.objectPattern([j.types.objectProperty(j.types.identifier("e"),j.types.arrayPattern(e)),j.types.objectProperty(j.types.identifier("c"),j.types.arrayPattern(t))]):(u=j.types.arrayPattern(e),c=j.types.memberExpression(c,j.types.identifier("e"),!1,!1)):(u=j.types.arrayPattern(t),c=j.types.memberExpression(c,j.types.identifier("c"),!1,!1)),j.types.assignmentExpression("=",u,c)}function kTe({assertVersion:e,assumption:t},{loose:r},n){var s;e(n==="2023-05"||n==="2023-01"?"^7.21.0":n==="2021-12"?"^7.16.0":"^7.19.0");let i=new WeakSet,a=(s=t("constantSuper"))!=null?s:r;return{name:"proposal-decorators",inherits:dTe.default,visitor:{"ExportNamedDeclaration|ExportDefaultDeclaration"(o){var l;let{declaration:u}=o.node;(u==null?void 0:u.type)==="ClassDeclaration"&&((l=u.decorators)==null?void 0:l.length)>0&&(0,mTe.default)(o)},Class(o,l){if(i.has(o))return;let u=_Te(o,l,a,n);u&&i.add(u)}}}}});var xN=b(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.default=void 0;var BTe=tt(),TN=r1(),SN=ua(),FTe=cN(),jTe=vN(),LTe=(0,BTe.declare)((e,t)=>{e.assertVersion(7);var{legacy:r}=t;let{version:n}=t;return r||n==="legacy"?{name:"proposal-decorators",inherits:TN.default,visitor:FTe.default}:n==="2021-12"||n==="2022-03"||n==="2023-01"||n==="2023-05"?(0,jTe.default)(e,t,n):(e.assertVersion("^7.0.2"),(0,SN.createClassFeaturePlugin)({name:"proposal-decorators",api:e,feature:SN.FEATURES.decorators,inherits:TN.default}))});ap.default=LTe});var PN=b(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.default=void 0;var MTe=tt(),RTe=(0,MTe.declare)(e=>(e.assertVersion(7),{name:"syntax-explicit-resource-management",manipulateOptions(t,r){r.plugins.push("explicitResourceManagement")}}));op.default=RTe});var AN=b(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.default=void 0;var qTe=tt(),UTe=PN(),He=ft(),VTe=(0,qTe.declare)(e=>{e.assertVersion("^7.22.0");let t=new Map;function r(i){return He.types.isVariableDeclaration(i)?i.kind==="using"||i.kind==="await using"||t.has(i):!1}let n={ForOfStatement(i){let{left:a}=i.node;if(!r(a))return;let{id:o}=a.declarations[0],l=i.scope.generateUidIdentifierBasedOnNode(o);a.declarations[0].id=l,a.kind="const",i.ensureBlock(),i.node.body.body.unshift(He.types.variableDeclaration("using",[He.types.variableDeclarator(o,He.types.cloneNode(l))]))},"BlockStatement|StaticBlock"(i,a){let o=null,l=!1;for(let p of i.node.body){var u;if(!r(p))continue;(u=o)!=null||(o=i.scope.generateUidIdentifier("stack"));let E=p.kind==="await using"||t.get(p)===1;l||(l=E),t.delete(p)||(p.kind="const"),p.declarations.forEach(T=>{let O=[He.types.cloneNode(o),T.init];E&&O.push(He.types.booleanLiteral(!0)),T.init=He.types.callExpression(a.addHelper("using"),O)})}if(!o)return;let c=i.scope.generateUidIdentifier("error"),f=i.scope.generateUidIdentifier("hasError"),d=He.types.callExpression(a.addHelper("dispose"),[He.types.cloneNode(o),He.types.cloneNode(c),He.types.cloneNode(f)]);l&&(d=He.types.awaitExpression(d));let m=He.template.statement.ast` try { var ${o} = []; ${i.node.body} } catch (_) { var ${c} = _; var ${f} = true; } finally { ${d} } `;He.types.inherits(m.block,i.node);let{parentPath:y}=i;y.isFunction()||y.isTryStatement()||y.isCatchClause()?i.replaceWith(He.types.blockStatement([m])):i.isStaticBlock()?i.node.body=[m]:i.replaceWith(m)}},s=He.traverse.visitors.merge([n,{Function(i){i.skip()}}]);return{name:"proposal-explicit-resource-management",inherits:UTe.default,visitor:He.traverse.visitors.merge([n,{Program(i){if(t.clear(),i.node.sourceType!=="module"||!i.node.body.some(r))return;let a=[];for(let l of i.get("body")){if(l.isFunctionDeclaration()||l.isImportDeclaration())continue;let{node:u}=l,c=!0;if(l.isExportDefaultDeclaration()){var o;let{declaration:f}=l.node,d;if(He.types.isClassDeclaration(f))d=f.id,f.id=null,f=He.types.toExpression(f);else if(!He.types.isExpression(f))continue;(o=d)!=null||(d=i.scope.generateUidIdentifier("_default")),a.push(He.types.variableDeclaration("var",[He.types.variableDeclarator(d,f)])),l.replaceWith(He.types.exportNamedDeclaration(null,[He.types.exportSpecifier(He.types.cloneNode(d),He.types.identifier("default"))]));continue}if(l.isExportNamedDeclaration()){if(u=l.node.declaration,!u||He.types.isFunction(u))continue;l.replaceWith(He.types.exportNamedDeclaration(null,Object.keys(He.types.getOuterBindingIdentifiers(u,!1)).map(f=>He.types.exportSpecifier(He.types.identifier(f),He.types.identifier(f))))),c=!1}else if(l.isExportDeclaration())continue;if(He.types.isClassDeclaration(u)){let{id:f}=u;u.id=null,a.push(He.types.variableDeclaration("var",[He.types.variableDeclarator(f,He.types.toExpression(u))]))}else He.types.isVariableDeclaration(u)?(u.kind==="using"?t.set(l.node,0):u.kind==="await using"&&t.set(l.node,1),u.kind="var",a.push(u)):a.push(l.node);c&&l.remove()}i.pushContainer("body",He.types.blockStatement(a))},Function(i,a){i.node.async&&i.traverse(s,a)}}])}});lp.default=VTe});var wN=b(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.default=void 0;var $Te=tt(),CN=ua(),eOe=up.default=(0,$Te.declare)((e,t)=>(e.assertVersion(7),(0,CN.createClassFeaturePlugin)({name:"transform-class-properties",api:e,feature:CN.FEATURES.fields,loose:t.loose,manipulateOptions(r,n){n.plugins.push("classProperties","classPrivateProperties")}})))});var DN=b(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.default=void 0;var WTe=tt(),KTe=(0,WTe.declare)(e=>(e.assertVersion(7),{name:"syntax-class-static-block",manipulateOptions(t,r){r.plugins.push("classStaticBlock")}}));cp.default=KTe});var ON=b(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.default=void 0;var GTe=tt(),IN=ua();function HTe(e,t){let r="",n,s=1;do n=e._generateUid(r,s),s++;while(t.has(n));return n}var nOe=fp.default=(0,GTe.declare)(({types:e,template:t,assertVersion:r})=>(r("^7.12.0"),{name:"transform-class-static-block",inherits:DN().default,pre(){(0,IN.enableFeature)(this.file,IN.FEATURES.staticBlocks,!1)},visitor:{ClassBody(n){let{scope:s}=n,i=new Set,a=n.get("body");for(let o of a)o.isPrivate()&&i.add(o.get("key.id").node.name);for(let o of a){if(!o.isStaticBlock())continue;let l=HTe(s,i);i.add(l);let u=e.privateName(e.identifier(l)),c,f=o.node.body;f.length===1&&e.isExpressionStatement(f[0])?c=e.inheritsComments(f[0].expression,f[0]):c=t.expression.ast`(() => { ${f} })()`,o.replaceWith(e.classPrivateProperty(u,c,[],!0))}}}}))});var _N=b(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.default=void 0;var YTe=tt(),XTe=(0,YTe.declare)(e=>(e.assertVersion(7),{name:"syntax-numeric-separator",manipulateOptions(t,r){r.plugins.push("numericSeparator")}}));pp.default=XTe});var kN=b(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.default=void 0;var JTe=tt();function NN({node:e}){var t;let{extra:r}=e;r!=null&&(t=r.raw)!=null&&t.includes("_")&&(r.raw=r.raw.replace(/_/g,""))}var aOe=dp.default=(0,JTe.declare)(e=>(e.assertVersion(7),{name:"transform-numeric-separator",inherits:_N().default,visitor:{NumericLiteral:NN,BigIntLiteral:NN}}))});var BN=b(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.default=void 0;var zTe=tt(),QTe=(0,zTe.declare)(e=>(e.assertVersion(7),{name:"syntax-logical-assignment-operators",manipulateOptions(t,r){r.plugins.push("logicalAssignment")}}));hp.default=QTe});var FN=b(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.default=void 0;var ZTe=tt(),Un=ft(),uOe=mp.default=(0,ZTe.declare)(e=>(e.assertVersion(7),{name:"transform-logical-assignment-operators",inherits:BN().default,visitor:{AssignmentExpression(t){let{node:r,scope:n}=t,{operator:s,left:i,right:a}=r,o=s.slice(0,-1);if(!Un.types.LOGICAL_OPERATORS.includes(o))return;let l=Un.types.cloneNode(i);if(Un.types.isMemberExpression(i)){let{object:u,property:c,computed:f}=i,d=n.maybeGenerateMemoised(u);if(d&&(i.object=d,l.object=Un.types.assignmentExpression("=",Un.types.cloneNode(d),u)),f){let m=n.maybeGenerateMemoised(c);m&&(i.property=m,l.property=Un.types.assignmentExpression("=",Un.types.cloneNode(m),c))}}t.replaceWith(Un.types.logicalExpression(o,l,Un.types.assignmentExpression("=",i,a)))}}}))});var jN=b(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.default=void 0;var eSe=tt(),tSe=(0,eSe.declare)(e=>(e.assertVersion(7),{name:"syntax-nullish-coalescing-operator",manipulateOptions(t,r){r.plugins.push("nullishCoalescingOperator")}}));yp.default=tSe});var LN=b(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.default=void 0;var rSe=tt(),Pr=ft(),pOe=gp.default=(0,rSe.declare)((e,{loose:t=!1})=>{var r;e.assertVersion(7);let n=(r=e.assumption("noDocumentAll"))!=null?r:t;return{name:"transform-nullish-coalescing-operator",inherits:jN().default,visitor:{LogicalExpression(s){let{node:i,scope:a}=s;if(i.operator!=="??")return;let o,l;if(a.isStatic(i.left))o=i.left,l=Pr.types.cloneNode(i.left);else if(a.path.isPattern()){s.replaceWith(Pr.template.statement.ast`(() => ${s.node})()`);return}else o=a.generateUidIdentifierBasedOnNode(i.left),a.push({id:Pr.types.cloneNode(o)}),l=Pr.types.assignmentExpression("=",o,i.left);s.replaceWith(Pr.types.conditionalExpression(n?Pr.types.binaryExpression("!=",l,Pr.types.nullLiteral()):Pr.types.logicalExpression("&&",Pr.types.binaryExpression("!==",l,Pr.types.nullLiteral()),Pr.types.binaryExpression("!==",Pr.types.cloneNode(o),a.buildUndefinedNode())),Pr.types.cloneNode(o),i.right))}}}})});var MN=b(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.default=void 0;var nSe=tt(),sSe=(0,nSe.declare)(e=>(e.assertVersion(7),{name:"syntax-optional-chaining",manipulateOptions(t,r){r.plugins.push("optionalChaining")}}));bp.default=sSe});var UN=b(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var iSe=tt(),Ye=ft(),ii=Of();function a1(e){let t=RN(e),{node:r,parentPath:n}=t;if(n.isLogicalExpression()){let{operator:s,right:i}=n.node;if(s==="&&"||s==="||"||s==="??"&&r===i)return a1(n)}if(n.isSequenceExpression()){let{expressions:s}=n.node;return s[s.length-1]===r?a1(n):!0}return n.isConditional({test:r})||n.isUnaryExpression({operator:"!"})||n.isLoop({test:r})}function RN(e){let t=e;return e.findParent(r=>{if(!ii.isTransparentExprWrapper(r.node))return!0;t=r}),t}var aSe=e=>e[e.length-1];function Ep(e){return e=ii.skipTransparentExprWrapperNodes(e),Ye.types.isIdentifier(e)||Ye.types.isSuper(e)||Ye.types.isMemberExpression(e)&&!e.computed&&Ep(e.object)}function oSe(e){let t=e,{scope:r}=e;for(;t.isOptionalMemberExpression()||t.isOptionalCallExpression();){let{node:n}=t,s=ii.skipTransparentExprWrappers(t.isOptionalMemberExpression()?t.get("object"):t.get("callee"));if(n.optional)return!r.isStatic(s.node);t=s}}var lSe=Ye.template.expression("%%check%% === null || %%ref%% === void 0"),uSe=Ye.template.expression("%%check%% == null"),cSe=Ye.template.expression("%%check%% !== null && %%ref%% !== void 0"),fSe=Ye.template.expression("%%check%% != null");function o1(e,{pureGetters:t,noDocumentAll:r},n,s,i){let{scope:a}=e;if(a.path.isPattern()&&oSe(e)){n.replaceWith(Ye.template.expression.ast`(() => ${n.node})()`);return}let o=[],l=e;for(;l.isOptionalMemberExpression()||l.isOptionalCallExpression();){let{node:C}=l;C.optional&&o.push(C),l.isOptionalMemberExpression()?(l.node.type="MemberExpression",l=ii.skipTransparentExprWrappers(l.get("object"))):l.isOptionalCallExpression()&&(l.node.type="CallExpression",l=ii.skipTransparentExprWrappers(l.get("callee")))}if(o.length===0)return;let u=[],c;for(let C=o.length-1;C>=0;C--){let v=o[C],I=Ye.types.isCallExpression(v),k=I?v.callee:v.object,B=ii.skipTransparentExprWrapperNodes(k),M,X;if(I&&Ye.types.isIdentifier(B,{name:"eval"})?(X=M=B,v.callee=Ye.types.sequenceExpression([Ye.types.numericLiteral(0),M])):t&&I&&Ep(B)?X=M=v.callee:a.isStatic(B)?X=M=k:((!c||I)&&(c=a.generateUidIdentifierBasedOnNode(B),a.push({id:Ye.types.cloneNode(c)})),M=c,X=Ye.types.assignmentExpression("=",Ye.types.cloneNode(c),k),I?v.callee=M:v.object=M),I&&Ye.types.isMemberExpression(B))if(t&&Ep(B))v.callee=k;else{let{object:he}=B,be;if(Ye.types.isSuper(he))be=Ye.types.thisExpression();else{let nt=a.maybeGenerateMemoised(he);nt?(be=nt,B.object=Ye.types.assignmentExpression("=",nt,he)):be=he}v.arguments.unshift(Ye.types.cloneNode(be)),v.callee=Ye.types.memberExpression(v.callee,Ye.types.identifier("call"))}let oe={check:Ye.types.cloneNode(X),ref:Ye.types.cloneNode(M)};Object.defineProperty(oe,"ref",{enumerable:!1}),u.push(oe)}let f=n.node;i&&(f=i(f));let d=Ye.types.isBooleanLiteral(s),m=d&&s.value===!1,y=!d&&Ye.types.isUnaryExpression(s,{operator:"void"}),p=Ye.types.isExpressionStatement(n.parent)&&!n.isCompletionRecord()||Ye.types.isSequenceExpression(n.parent)&&aSe(n.parent.expressions)!==n.node,E=m?r?fSe:cSe:r?uSe:lSe,T=m?"&&":"||",O=u.map(E).reduce((C,v)=>Ye.types.logicalExpression(T,C,v));n.replaceWith(d||y&&p?Ye.types.logicalExpression(T,O,f):Ye.types.conditionalExpression(O,s,f))}function qN(e,t){let{scope:r}=e,n=RN(e),{parentPath:s}=n;if(s.isUnaryExpression({operator:"delete"}))o1(e,t,s,Ye.types.booleanLiteral(!0));else{let i;s.isCallExpression({callee:n.node})&&e.isOptionalMemberExpression()&&(i=a=>{var o;let l=ii.skipTransparentExprWrapperNodes(a.object),u;return(!t.pureGetters||!Ep(l))&&(u=r.maybeGenerateMemoised(l),u&&(a.object=Ye.types.assignmentExpression("=",u,l))),Ye.types.callExpression(Ye.types.memberExpression(a,Ye.types.identifier("bind")),[Ye.types.cloneNode((o=u)!=null?o:l)])}),o1(e,t,e,a1(n)?Ye.types.booleanLiteral(!1):r.buildUndefinedNode(),i)}}var pSe=iSe.declare((e,t)=>{var r,n;e.assertVersion(7);let{loose:s=!1}=t,i=(r=e.assumption("noDocumentAll"))!=null?r:s,a=(n=e.assumption("pureGetters"))!=null?n:s;return{name:"transform-optional-chaining",inherits:MN().default,visitor:{"OptionalCallExpression|OptionalMemberExpression"(o){qN(o,{noDocumentAll:i,pureGetters:a})}}}});ol.default=pSe;ol.transform=qN;ol.transformOptionalChain=o1});var $N=b(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.default=void 0;var dSe=tt(),VN=ua(),yOe=vp.default=(0,dSe.declare)((e,t)=>(e.assertVersion(7),(0,VN.createClassFeaturePlugin)({name:"transform-private-methods",api:e,feature:VN.FEATURES.privateMethods,loose:t.loose,manipulateOptions(r,n){n.plugins.push("classPrivateMethods")}})))});var WN=b(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.default=void 0;var hSe=tt(),mSe=(0,hSe.declare)(e=>(e.assertVersion(7),{name:"syntax-json-strings",manipulateOptions(t,r){r.plugins.push("jsonStrings")}}));Tp.default=mSe});var KN=b(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.default=void 0;var ySe=tt(),gSe=(0,ySe.declare)(e=>(e.assertVersion(7),{name:"syntax-optional-catch-binding",manipulateOptions(t,r){r.plugins.push("optionalCatchBinding")}}));Sp.default=gSe});var GN=b(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.default=void 0;var bSe=tt(),ESe=(0,bSe.declare)(e=>(e.assertVersion(7),{name:"syntax-async-generators",manipulateOptions(t,r){r.plugins.push("asyncGenerators")}}));xp.default=ESe});var HN=b(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.default=void 0;var vSe=tt(),TSe=(0,vSe.declare)(e=>(e.assertVersion(7),{name:"syntax-object-rest-spread",manipulateOptions(t,r){r.plugins.push("objectRestSpread")}}));Pp.default=TSe});var YN=b(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.default=void 0;var SSe=tt(),xSe=(0,SSe.declare)(e=>(e.assertVersion(7),{name:"syntax-export-namespace-from",manipulateOptions(t,r){r.plugins.push("exportNamespaceFrom")}}));Ap.default=xSe});var XN=b(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.default=void 0;var PSe=tt(),Vn=ft(),xOe=Cp.default=(0,PSe.declare)(e=>(e.assertVersion(7),{name:"transform-export-namespace-from",inherits:YN().default,visitor:{ExportNamedDeclaration(t){var r;let{node:n,scope:s}=t,{specifiers:i}=n,a=Vn.types.isExportDefaultSpecifier(i[0])?1:0;if(!Vn.types.isExportNamespaceSpecifier(i[a]))return;let o=[];a===1&&o.push(Vn.types.exportNamedDeclaration(null,[i.shift()],n.source));let l=i.shift(),{exported:u}=l,c=s.generateUidIdentifier((r=u.name)!=null?r:u.value);o.push(Vn.types.importDeclaration([Vn.types.importNamespaceSpecifier(c)],Vn.types.cloneNode(n.source)),Vn.types.exportNamedDeclaration(null,[Vn.types.exportSpecifier(Vn.types.cloneNode(c),u)])),n.specifiers.length>=1&&o.push(n);let[f]=t.replaceWithMultiple(o);t.scope.registerDeclaration(f)}}}))});var QN=b(u1=>{"use strict";Object.defineProperty(u1,"__esModule",{value:!0});u1.default=kSe;var ASe=TE(),CSe=tt(),ne=ft(),l1=p0(),wSe=kf(),ll={importSource:"react",runtime:"automatic",pragma:"React.createElement",pragmaFrag:"React.Fragment"},DSe=/^\s*\*?\s*@jsxImportSource\s+([^\s]+)\s*$/m,ISe=/^\s*\*?\s*@jsxRuntime\s+([^\s]+)\s*$/m,OSe=/^\s*\*?\s*@jsx\s+([^\s]+)\s*$/m,_Se=/^\s*\*?\s*@jsxFrag\s+([^\s]+)\s*$/m,$n=(e,t)=>e.get(`@babel/plugin-react-jsx/${t}`),vs=(e,t,r)=>e.set(`@babel/plugin-react-jsx/${t}`,r);function NSe(e){return e.properties.some(t=>ne.types.isObjectProperty(t,{computed:!1,shorthand:!1})&&(ne.types.isIdentifier(t.key,{name:"__proto__"})||ne.types.isStringLiteral(t.key,{value:"__proto__"})))}function kSe({name:e,development:t}){return(0,CSe.declare)((s,i)=>{let{pure:a,throwIfNamespace:o=!0,filter:l,runtime:u=t?"automatic":"classic",importSource:c=ll.importSource,pragma:f=ll.pragma,pragmaFrag:d=ll.pragmaFrag}=i;{var{useSpread:m=!1,useBuiltIns:y=!1}=i;if(u==="classic"){if(typeof m!="boolean")throw new Error("transform-react-jsx currently only accepts a boolean option for useSpread (defaults to false)");if(typeof y!="boolean")throw new Error("transform-react-jsx currently only accepts a boolean option for useBuiltIns (defaults to false)");if(m&&y)throw new Error("transform-react-jsx currently only accepts useBuiltIns or useSpread but not both")}}let p={JSXOpeningElement($,z){let de=[];T($.scope)&&de.push(ne.types.jsxAttribute(ne.types.jsxIdentifier("__self"),ne.types.jsxExpressionContainer(ne.types.thisExpression()))),de.push(ne.types.jsxAttribute(ne.types.jsxIdentifier("__source"),ne.types.jsxExpressionContainer(BSe($,z)))),$.pushContainer("attributes",de)}};return{name:e,inherits:ASe.default,visitor:{JSXNamespacedName($){if(o)throw $.buildCodeFrameError("Namespace tags are not supported by default. React's JSX doesn't support namespace tags. You can set `throwIfNamespace: false` to bypass this warning.")},JSXSpreadChild($){throw $.buildCodeFrameError("Spread children are not supported in React.")},Program:{enter($,z){let{file:de}=z,J=u,ee=c,te=f,K=d,re=!!i.importSource,H=!!i.pragma,me=!!i.pragmaFrag;if(de.ast.comments)for(let De of de.ast.comments){let Le=DSe.exec(De.value);Le&&(ee=Le[1],re=!0);let U=ISe.exec(De.value);U&&(J=U[1]);let V=OSe.exec(De.value);V&&(te=V[1],H=!0);let Z=_Se.exec(De.value);Z&&(K=Z[1],me=!0)}if(vs(z,"runtime",J),J==="classic"){if(re)throw $.buildCodeFrameError("importSource cannot be set when runtime is classic.");let De=JN(te),Le=JN(K);vs(z,"id/createElement",()=>ne.types.cloneNode(De)),vs(z,"id/fragment",()=>ne.types.cloneNode(Le)),vs(z,"defaultPure",te===ll.pragma)}else if(J==="automatic"){if(H||me)throw $.buildCodeFrameError("pragma and pragmaFrag cannot be set when runtime is automatic.");let De=(Le,U)=>vs(z,Le,n(z,$,U,ee));De("id/jsx",t?"jsxDEV":"jsx"),De("id/jsxs",t?"jsxDEV":"jsxs"),De("id/createElement","createElement"),De("id/fragment","Fragment"),vs(z,"defaultPure",ee===ll.importSource)}else throw $.buildCodeFrameError('Runtime must be either "classic" or "automatic".');t&&$.traverse(p,z)}},JSXFragment:{exit($,z){let de;$n(z,"runtime")==="classic"?de=he($,z):de=oe($,z),$.replaceWith(ne.types.inherits(de,$.node))}},JSXElement:{exit($,z){let de;$n(z,"runtime")==="classic"||C($)?de=be($,z):de=M($,z),$.replaceWith(ne.types.inherits(de,$.node))}},JSXAttribute($){ne.types.isJSXElement($.node.value)&&($.node.value=ne.types.jsxExpressionContainer($.node.value))}}};function E($){return $.node.superClass!==null}function T($){do{let{path:z}=$;if(z.isFunctionParent()&&!z.isArrowFunctionExpression())return!z.isMethod()||z.node.kind!=="constructor"?!0:!E(z.parentPath.parentPath);if(z.isTSModuleBlock())return!1}while($=$.parent);return!0}function O($,z,de){let J=ne.types.callExpression($n($,`id/${z}`)(),de);return(a!=null?a:$n($,"defaultPure"))&&(0,wSe.default)(J),J}function C($){let de=$.get("openingElement").node.attributes,J=!1;for(let ee=0;ee1)z=ne.types.arrayExpression($);else return;return ne.types.objectProperty(ne.types.identifier("children"),z)}function M($,z){let de=$.get("openingElement"),J=[nt(de)],ee=[],te=Object.create(null);for(let me of de.get("attributes"))if(me.isJSXAttribute()&&ne.types.isJSXIdentifier(me.node.name)){let{name:De}=me.node.name;switch(De){case"__source":case"__self":if(te[De])throw zN($,De);case"key":{let Le=I(me.node.value);if(Le===null)throw me.buildCodeFrameError('Please provide an explicit key value. Using "key" as a shorthand for "key={true}" is not allowed.');te[De]=Le;break}default:ee.push(me)}}else ee.push(me);let K=ne.types.react.buildChildren($.node),re;if(ee.length||K.length?re=X(ee,K):re=ne.types.objectExpression([]),J.push(re),t){var H;J.push((H=te.key)!=null?H:$.scope.buildUndefinedNode(),ne.types.booleanLiteral(K.length>1)),te.__source?(J.push(te.__source),te.__self&&J.push(te.__self)):te.__self&&J.push($.scope.buildUndefinedNode(),te.__self)}else te.key!==void 0&&J.push(te.key);return O(z,K.length>1?"jsxs":"jsx",J)}function X($,z){let de=$.reduce(k,[]);return(z==null?void 0:z.length)>0&&de.push(B(z)),ne.types.objectExpression(de)}function oe($,z){let de=[$n(z,"id/fragment")()],J=ne.types.react.buildChildren($.node);return de.push(ne.types.objectExpression(J.length>0?[B(J)]:[])),t&&de.push($.scope.buildUndefinedNode(),ne.types.booleanLiteral(J.length>1)),O(z,J.length>1?"jsxs":"jsx",de)}function he($,z){if(!(l&&!l($.node,z)))return O(z,"createElement",[$n(z,"id/fragment")(),ne.types.nullLiteral(),...ne.types.react.buildChildren($.node)])}function be($,z){let de=$.get("openingElement");return O(z,"createElement",[nt(de),ct(z,$,de.get("attributes")),...ne.types.react.buildChildren($.node)])}function nt($){let z=v($.node.name,$.node),de;return ne.types.isIdentifier(z)?de=z.name:ne.types.isStringLiteral(z)&&(de=z.value),ne.types.react.isCompatTag(de)?ne.types.stringLiteral(de):z}function ct($,z,de){let J=$n($,"runtime");if(J!=="automatic"){let K=[],re=de.reduce(k,[]);if(m)re.length&&K.push(ne.types.objectExpression(re));else{let me=0;re.forEach((De,Le)=>{ne.types.isSpreadElement(De)&&(Le>me&&K.push(ne.types.objectExpression(re.slice(me,Le))),K.push(De.argument),me=Le+1)}),re.length>me&&K.push(ne.types.objectExpression(re.slice(me)))}if(!K.length)return ne.types.nullLiteral();if(K.length===1&&!(ne.types.isSpreadElement(re[0])&&ne.types.isObjectExpression(re[0].argument)))return K[0];ne.types.isObjectExpression(K[0])||K.unshift(ne.types.objectExpression([]));let H=y?ne.types.memberExpression(ne.types.identifier("Object"),ne.types.identifier("assign")):$.addHelper("extends");return ne.types.callExpression(H,K)}let ee=[],te=Object.create(null);for(let K of de){let{node:re}=K,H=ne.types.isJSXAttribute(re)&&ne.types.isJSXIdentifier(re.name)&&re.name.name;if(J==="automatic"&&(H==="__source"||H==="__self")){if(te[H])throw zN(z,H);te[H]=!0}k(ee,K)}return ee.length===1&&ne.types.isSpreadElement(ee[0])&&!ne.types.isObjectExpression(ee[0].argument)?ee[0].argument:ee.length>0?ne.types.objectExpression(ee):ne.types.nullLiteral()}});function r(s,i){switch(i){case"Fragment":return`${s}/${t?"jsx-dev-runtime":"jsx-runtime"}`;case"jsxDEV":return`${s}/jsx-dev-runtime`;case"jsx":case"jsxs":return`${s}/jsx-runtime`;case"createElement":return s}}function n(s,i,a,o){return()=>{let l=r(o,a);if((0,l1.isModule)(i)){let u=$n(s,`imports/${a}`);return u?ne.types.cloneNode(u):(u=(0,l1.addNamed)(i,a,l,{importedInterop:"uncompiled",importPosition:"after"}),vs(s,`imports/${a}`,u),u)}else{let u=$n(s,`requires/${l}`);return u?u=ne.types.cloneNode(u):(u=(0,l1.addNamespace)(i,l,{importedInterop:"uncompiled"}),vs(s,`requires/${l}`,u)),ne.types.memberExpression(u,ne.types.identifier(a))}}}}function JN(e){return e.split(".").map(t=>ne.types.identifier(t)).reduce((t,r)=>ne.types.memberExpression(t,r))}function BSe(e,t){let r=e.node.loc;if(!r)return e.scope.buildUndefinedNode();if(!t.fileNameIdentifier){let{filename:n=""}=t,s=e.scope.generateUidIdentifier("_jsxFileName");e.scope.getProgramParent().push({id:s,init:ne.types.stringLiteral(n)}),t.fileNameIdentifier=s}return FSe(ne.types.cloneNode(t.fileNameIdentifier),r.start.line,r.start.column)}function FSe(e,t,r){let n=t!=null?ne.types.numericLiteral(t):ne.types.nullLiteral(),s=r!=null?ne.types.numericLiteral(r+1):ne.types.nullLiteral();return ne.template.expression.ast`{ fileName: ${e}, lineNumber: ${n}, columnNumber: ${s}, }`}function zN(e,t){let r=`transform-react-jsx-${t.slice(2)}`;return e.buildCodeFrameError(`Duplicate ${t} prop found. You are most likely using the deprecated ${r} Babel plugin. Both __source and __self are automatically set when using the automatic runtime. Please remove transform-react-jsx-source and transform-react-jsx-self from your Babel config.`)}});var ZN=b(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.default=void 0;var jSe=QN(),COe=wp.default=(0,jSe.default)({name:"transform-react-jsx",development:!1})});var e3=b(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.default=void 0;var LSe=tt(),MSe=(0,LSe.declare)(e=>(e.assertVersion(7),{name:"syntax-dynamic-import",manipulateOptions(t,r){r.plugins.push("dynamicImport")}}));Dp.default=MSe});var t3=b(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.default=void 0;var RSe=tt(),qSe=["commonjs","amd","systemjs"],USe=`@babel/plugin-transform-dynamic-import depends on a modules transform plugin. Supported plugins are: - @babel/plugin-transform-modules-commonjs ^7.4.0 - @babel/plugin-transform-modules-amd ^7.4.0 - @babel/plugin-transform-modules-systemjs ^7.4.0 If you are using Webpack or Rollup and thus don't want Babel to transpile your imports and exports, you can use the @babel/plugin-syntax-dynamic-import plugin and let your bundler handle dynamic imports. `,IOe=Ip.default=(0,RSe.declare)(e=>(e.assertVersion(7),{name:"transform-dynamic-import",inherits:e3().default,pre(){this.file.set("@babel/plugin-proposal-dynamic-import","7.23.4")},visitor:{Program(){let t=this.file.get("@babel/plugin-transform-modules-*");if(!qSe.includes(t))throw new Error(USe)}}}))});var r3=b(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.default=void 0;var VSe=tt(),$Se=(0,VSe.declare)(e=>(e.assertVersion(7),{name:"syntax-import-assertions",manipulateOptions(t,r){r.plugins.push("importAssertions")}}));Op.default=$Se});var HSe={};y3(HSe,{babelTransform:()=>GSe,codeFrameColumns:()=>a3.codeFrameColumns,declare:()=>o3.declare,parse:()=>u3.parse,traverse:()=>WSe,types:()=>l3.types});module.exports=g3(HSe);var n3=Wn(require("path")),s3=Wn(ft()),a3=Wn(Ai()),o3=Wn(tt()),l3=Wn(ft()),u3=Wn(Ni()),i3=Wn(Vr()),WSe=i3.default;function KSe(e,t,r,n){let s=[];return e&&s.push([xN(),{version:"2023-05"}],[AN()],[wN()],[ON()],[kN()],[FN()],[LN()],[UN()],[$N()],[WN()],[KN()],[GN()],[HN()],[XN()],[({template:i})=>({name:"replace-ts-export-assignment",visitor:{TSExportAssignment(a){a.replaceWith(i("module.exports = ASSIGNMENT;")({ASSIGNMENT:a.node.expression}))}}})]),s.push([ZN(),{throwIfNamespace:!1,runtime:"automatic",importSource:n3.default.dirname(require.resolve("playwright"))}]),t?s.push([r3()]):(s.push([CE()]),s.push([t3()]),s.push([()=>({name:"css-to-identity-obj-proxy",visitor:{ImportDeclaration(i){i.node.source.value.match(/\.(css|less|scss)$/)&&i.remove()}}})])),{browserslistConfigFile:!1,babelrc:!1,configFile:!1,assumptions:{setPublicClassFields:!0},presets:e?[[DE(),{onlyRemoveTypeImports:!1}]]:[],plugins:[...r.map(([i,a])=>[require(i),a]),...s,...n.map(([i,a])=>[require(i),a])],compact:!1,sourceMaps:"both"}}var c1=!1;function GSe(e,t,r,n,s,i){if(c1)return{};c1=!0;try{let a=KSe(r,n,s,i);return s3.transform(e,{filename:t,...a})}finally{c1=!1}}0&&(module.exports={babelTransform,codeFrameColumns,declare,parse,traverse,types});