nge[1]+=_),f.loc&&(f.loc.start.column+=-1,f.loc.end.column+=_)}),l}parseTopLevel(h){return this[re].impliedStrict&&(this.strict=!0),super.parseTopLevel(h)}raise(h,l){let f=a.acorn.getLineInfo(this.input,h),y=new SyntaxError(l);throw y.index=h,y.lineNumber=f.line,y.column=f.column+1,y}raiseRecoverable(h,l){this.raise(h,l)}unexpected(h){let l="Unexpected token";if(h!=null){if(this.pos=h,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf(`
`,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(l+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,l)}jsx_readString(h){let l=super.jsx_readString(h);return this.type===u.string&&(this[re].jsxAttrValueToken=!0),l}[ut](h){return h.type==="TemplateElement"&&this[re].templateElements.push(h),h.type.includes("Function")&&!h.generator&&(h.generator=!1),h}}},Ys={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=yi.Parser.extend(gi())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=yi.Parser.extend(Js.default(),gi())),this._jsx},get(a){return!!(a&&a.ecmaFeatures&&a.ecmaFeatures.jsx)?this.jsx:this.regular}};function $s(a,u){let c=Ys.get(u);return new c(u,a).parse()}var Zs="espree";Ke.name=Zs;Ke.parse=$s});var rr={};ss(rr,{parsers:()=>sr});function ns(a,u){let c=new SyntaxError(a+" ("+u.loc.start.line+":"+u.loc.start.column+")");return Object.assign(c,u)}var Oe=ns;function os(a){let u=[];for(let c of a)try{return c()}catch(h){u.push(h)}throw Object.assign(new Error("All combinations failed"),{errors:u})}var Be=os;var ce=rs(ii(),1);function ys(a){if(!a.startsWith("#!"))return"";let u=a.indexOf(`
`);return u===-1?a:a.slice(0,u)}var si=ys;function gs(a){let u=si(a);u&&(a=a.slice(u.length+1));let c=(0,ce.extract)(a),{pragmas:h,comments:l}=(0,ce.parseWithComments)(c);return{shebang:u,text:a,pragmas:h,comments:l}}function ri(a){let{pragmas:u}=gs(a);return Object.prototype.hasOwnProperty.call(u,"prettier")||Object.prototype.hasOwnProperty.call(u,"format")}function vs(a){return Array.isArray(a)&&a.length>0}var De=vs;function M(a){var h;let u=a.range?a.range[0]:a.start,c=((h=a.declaration)==null?void 0:h.decorators)??a.decorators;return De(c)?Math.min(M(c[0]),u):u}function z(a){return a.range?a.range[1]:a.end}function bs(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:ri,locStart:M,locEnd:z,...a}}var Fe=bs;var Ss=(a,u,c)=>{if(!(a&&u==null))return Array.isArray(u)||typeof u=="string"?u[c<0?u.length+c:c]:u.at(c)},et=Ss;function _s(a){return a=new Set(a),u=>a.has(u==null?void 0:u.type)}var ai=_s;var Cs=ai(["Block","CommentBlock","MultiLine"]),Se=Cs;function ks(a){return Se(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/.test(a.value)}var ni=ks;function Ts(a){let u=`*${a.value}*`.split(`
`);return u.length>1&&u.every(c=>c.trimStart()[0]==="*")}var tt=Ts;var _e=null;function Ce(a){if(_e!==null&&typeof _e.property){let u=_e;return _e=Ce.prototype=null,u}return _e=Ce.prototype=a??Object.create(null),new Ce}var ws=10;for(let a=0;a<=ws;a++)Ce();function it(a){return Ce(a)}function Es(a,u="type"){it(a);function c(h){let l=h[u],f=a[l];if(!Array.isArray(f))throw Object.assign(new Error(`Missing visitor keys for '${l}'.`),{node:h});return f}return c}var oi=Es;var ui={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["test","body"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body","returnType","typeParameters","predicate"],FunctionExpression:["id","params","body","returnType","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["params","body","returnType","typeParameters","predicate"],ClassBody:["body"],ClassExpression:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ClassDeclaration:["id","body","superClass","mixins","typeParameters","superTypeParameters","implements","decorators","superTypeArguments"],ExportAllDeclaration:["source","attributes","assertions","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes","assertions"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes","assertions"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["local","imported"],MetaProperty:["meta","property"],ClassMethod:["key","params","body","decorators","returnType","typeParameters"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","quasi","typeParameters","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],Import:[],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["key","value","typeAnnotation","decorators","variance"],ClassAccessorProperty:["key","value","typeAnnotation","decorators"],ClassPrivateProperty:["key","value","decorators","typeAnnotation","variance"],ClassPrivateMethod:["key","params","body","decorators","returnType","typeParameters"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source"],DeclareExportAllDeclaration:["source"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[],FunctionTypeAnnotation:["typeParameters","params","rest","returnType","this"],FunctionTypeParam:["name","typeAnnotation"],GenericTypeAnnotation:["id","typeParameters"],InferredPredicate:[],InterfaceExtends:["id","typeParameters"],InterfaceDeclaration:["id","typeParameters","extends","body"],InterfaceTypeAnnotation:["extends","body"],IntersectionTypeAnnotation:["types"],MixedTypeAnnotation:[],EmptyTypeAnnotation:[],NullableTypeAnnotation:["typeAnnotation"],NumberLiteralTypeAnnotation:[],NumberTypeAnnotation:[],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeInternalSlot:["id","value","optional","static","method"],ObjectTypeCallProperty:["value"],ObjectTypeIndexer:["id","key","value","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:["argument"],OpaqueType:["id","typeParameters","supertype","impltype"],QualifiedTypeIdentifier:["id","qualification"],StringLiteralTypeAnnotation:[],StringTypeAnnotation:[],SymbolTypeAnnotation:[],ThisTypeAnnotation:[],TupleTypeAnnotation:["types","elementTypes"],TypeofTypeAnnotation:["argument"],TypeAlias:["id","typeParameters","right"],TypeAnnotation:["typeAnnotation"],TypeCastExpression:["expression","typeAnnotation"],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:["params"],TypeParameterInstantiation:["params"],UnionTypeAnnotation:["types"],Variance:[],VoidTypeAnnotation:[],EnumDeclaration:["id","body"],EnumBooleanBody:["members"],EnumNumberBody:["members"],EnumStringBody:["members"],EnumSymbolBody:["members"],EnumBooleanMember:["id","init"],EnumNumberMember:["id","init"],EnumStringMember:["id","init"],EnumDefaultedMember:["id"],IndexedAccessType:["objectType","indexType"],OptionalIndexedAccessType:["objectType","indexType"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXSpreadChild:["expression"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes","typeArguments","typeParameters"],JSXSpreadAttribute:["argument"],JSXText:[],JSXFragment:["openingFragment","children","closingFragment"],JSXOpeningFragment:[],JSXClosingFragment:[],Noop:[],Placeholder:[],V8IntrinsicIdentifier:[],ArgumentPlaceholder:[],BindExpression:["object","callee"],ImportAttribute:["key","value"],Decorator:["expression"],DoExpression:["body"],ExportDefaultSpecifier:["exported"],RecordExpression:["properties"],TupleExpression:["elements"],DecimalLiteral:[],ModuleExpression:["body"],TopicReference:[],PipelineTopicExpression:["expression"],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:[],TSParameterProperty:["parameter","decorators"],TSDeclareFunction:["id","typeParameters","params","returnType","body"],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSQualifiedName:["left","right"],TSCallSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructSignatureDeclaration:["typeParameters","parameters","typeAnnotation","params","returnType"],TSPropertySignature:["key","typeAnnotation"],TSMethodSignature:["key","typeParameters","parameters","typeAnnotation","params","returnType"],TSIndexSignature:["parameters","typeAnnotation"],TSAnyKeyword:[],TSBooleanKeyword:[],TSBigIntKeyword:[],TSIntrinsicKeyword:[],TSNeverKeyword:[],TSNullKeyword:[],TSNumberKeyword:[],TSObjectKeyword:[],TSStringKeyword:[],TSSymbolKeyword:[],TSUndefinedKeyword:[],TSUnknownKeyword:[],TSVoidKeyword:[],TSThisType:[],TSFunctionType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSConstructorType:["typeParameters","parameters","typeAnnotation","params","returnType"],TSTypeReference:["typeName","typeParameters","typeArguments"],TSTypePredicate:["parameterName","typeAnnotation"],TSTypeQuery:["exprName","typeParameters","typeArguments"],TSTypeLiteral:["members"],TSArrayType:["elementType"],TSTupleType:["elementTypes"],TSOptionalType:["typeAnnotation"],TSRestType:["typeAnnotation"],TSNamedTupleMember:["label","elementType"],TSUnionType:["types"],TSIntersectionType:["types"],TSConditionalType:["checkType","extendsType","trueType","falseType"],TSInferType:["typeParameter"],TSParenthesizedType:["typeAnnotation"],TSTypeOperator:["typeAnnotation"],TSIndexedAccessType:["objectType","indexType"],TSMappedType:["typeParameter","typeAnnotation","nameType"],TSLiteralType:["literal"],TSExpressionWithTypeArguments:["expression","typeParameters"],TSInterfaceDeclaration:["id","typeParameters","extends","body"],TSInterfaceBody:["body"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSInstantiationExpression:["expression","typeParameters","typeArguments"],TSAsExpression:["expression","typeAnnotation"],TSSatisfiesExpression:["expression","typeAnnotation"],TSTypeAssertion:["typeAnnotation","expression"],TSEnumDeclaration:["id","members"],TSEnumMember:["id","initializer"],TSModuleDeclaration:["id","body"],TSModuleBlock:["body"],TSImportType:["argument","qualifier","typeParameters","typeArguments"],TSImportEqualsDeclaration:["id","moduleReference"],TSExternalModuleReference:["expression"],TSNonNullExpression:["expression"],TSExportAssignment:["expression"],TSNamespaceExportDeclaration:["id"],TSTypeAnnotation:["typeAnnotation"],TSTypeParameterInstantiation:["params"],TSTypeParameterDeclaration:["params"],TSTypeParameter:["constraint","default","name"],ChainExpression:["expression"],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ImportExpression:["source","attributes"],Literal:[],MethodDefinition:["decorators","key","value"],PrivateIdentifier:[],Property:["key","value"],PropertyDefinition:["decorators","key","typeAnnotation","value","variance"],AccessorProperty:["decorators","key","typeAnnotation","value"],TSAbstractAccessorProperty:["decorators","key","typeAnnotation"],TSAbstractKeyword:[],TSAbstractMethodDefinition:["key","value"],TSAbstractPropertyDefinition:["decorators","key","typeAnnotation"],TSAsyncKeyword:[],TSClassImplements:["expression","typeArguments","typeParameters"],TSDeclareKeyword:[],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSExportKeyword:[],TSInterfaceHeritage:["expression","typeArguments","typeParameters"],TSPrivateKeyword:[],TSProtectedKeyword:[],TSPublicKeyword:[],TSReadonlyKeyword:[],TSStaticKeyword:[],TSTemplateLiteralType:["quasis","types"],BigIntLiteralTypeAnnotation:[],BigIntTypeAnnotation:[],ConditionalTypeAnnotation:["checkType","extendsType","trueType","falseType"],DeclareEnum:["id","body"],InferTypeAnnotation:["typeParameter"],KeyofTypeAnnotation:["argument"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],QualifiedTypeofIdentifier:["qualification","id"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypePredicate:["parameterName","typeAnnotation","asserts"],NGRoot:["node"],NGPipeExpression:["left","right","arguments"],NGChainedExpression:["expressions"],NGEmptyExpression:[],NGMicrosyntax:["body"],NGMicrosyntaxKey:[],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:["key","value"],NGMicrosyntaxAs:["key","alias"],JsExpressionRoot:["node"],JsonRoot:["node"],TSJSDocAllType:[],TSJSDocUnknownType:[],TSJSDocNullableType:["typeAnnotation"],TSJSDocNonNullableType:["typeAnnotation"],NeverTypeAnnotation:[],UndefinedTypeAnnotation:[],UnknownTypeAnnotation:[]};var As=oi(ui),hi=As;function st(a,u){if(!(a!==null&&typeof a=="object"))return a;if(Array.isArray(a)){for(let h=0;h<a.length;h++)a[h]=st(a[h],u);return a}let c=hi(a);for(let h=0;h<c.length;h++)a[c[h]]=st(a[c[h]],u);return u(a)||a}var je=st;function Ps(a,u){let{parser:c,text:h}=u;if(a.type==="File"&&a.program.interpreter){let{program:{interpreter:f},comments:y}=a;delete a.program.interpreter,y.unshift(f)}if(c==="babel"){let f=new Set;a=je(a,y=>{var _;(_=y.leadingComments)!=null&&_.some(ni)&&f.add(M(y))}),a=je(a,y=>{if(y.type==="ParenthesizedExpression"){let{expression:_}=y;if(_.type==="TypeCastExpression")return _.range=y.range,_;let L=M(y);if(!f.has(L))return _.extra={..._.extra,parenthesized:!0},_}})}if(a=je(a,f=>{switch(f.type){case"LogicalExpression":if(pi(f))return rt(f);break;case"VariableDeclaration":{let y=et(!1,f.declarations,-1);y!=null&&y.init&&l(f,y);break}case"TSParenthesizedType":return f.typeAnnotation;case"TSTypeParameter":if(typeof f.name=="string"){let y=M(f);f.name={type:"Identifier",name:f.name,range:[y,y+f.name.length]}}break;case"TopicReference":a.extra={...a.extra,__isUsingHackPipeline:!0};break;case"ExportAllDeclaration":{let{exported:y}=f;if(c==="meriyah"&&(y==null?void 0:y.type)==="Identifier"){let _=h.slice(M(y),z(y));(_.startsWith('"')||_.startsWith("'"))&&(f.exported={...f.exported,type:"Literal",value:f.exported.name,raw:_})}break}case"TSUnionType":case"TSIntersectionType":if(f.types.length===1)return f.types[0];break}}),De(a.comments)){let f=et(!1,a.comments,-1);for(let y=a.comments.length-2;y>=0;y--){let _=a.comments[y];z(_)===M(f)&&Se(_)&&Se(f)&&tt(_)&&tt(f)&&(a.comments.splice(y+1,1),_.value+="*//*"+f.value,_.range=[M(_),z(f)]),f=_}}return a.type==="Program"&&(a.range=[0,h.length]),a;function l(f,y){h[z(y)]!==";"&&(f.range=[M(f),z(y)])}}function pi(a){return a.type==="LogicalExpression"&&a.right.type==="LogicalExpression"&&a.operator===a.right.operator}function rt(a){return pi(a)?rt({type:"LogicalExpression",operator:a.operator,left:rt({type:"LogicalExpression",operator:a.operator,left:a.left,right:a.right.left,range:[M(a.left),z(a.right.left)]}),right:a.right.right,range:[M(a),z(a)]}):a}var Me=Ps;function Is(a){let{filepath:u}=a;if(u){if(u=u.toLowerCase(),u.endsWith(".cjs"))return"script";if(u.endsWith(".mjs"))return"module"}}var Ue=Is;var Os={ecmaVersion:"latest",allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,locations:!0,ranges:!0};function Bs(a){let{message:u,loc:c}=a;if(!c)return a;let{line:h,column:l}=c;return Oe(u.replace(/ \(\d+:\d+\)$/,""),{loc:{start:{line:h,column:l+1}},cause:a})}var ot,Ds=()=>{if(!ot){let{Parser:a}=ke(),u=nt();ot=a.extend(u())}return ot};function Fs(a,u){let c=Ds(),h=[],l=[],f=c.parse(a,{...Os,sourceType:u,allowImportExportEverywhere:u==="module",onComment:h,onToken:l});return f.comments=h,f.tokens=l,f}function js(a,u={}){let c=Ue(u),h=(c?[c]:["module","script"]).map(f=>()=>Fs(a,f)),l;try{l=Be(h)}catch({errors:[f]}){throw Bs(f)}return Me(l,{text:a})}var xi=Fe(js);var er={ecmaVersion:"latest",range:!0,loc:!0,comment:!0,tokens:!0,sourceType:"module",ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};function tr(a){let{message:u,lineNumber:c,column:h}=a;return typeof c!="number"?a:Oe(u,{loc:{start:{line:c,column:h}},cause:a})}function ir(a,u={}){let{parse:c}=vi(),h=Ue(u),l=(h?[h]:["module","script"]).map(y=>()=>c(a,{...er,sourceType:y})),f;try{f=Be(l)}catch({errors:[y]}){throw tr(y)}return Me(f,{text:a})}var bi=Fe(ir);var sr={acorn:xi,espree:bi};return as(rr);});