"use strict";var L3=Object.create;var tu=Object.defineProperty;var j3=Object.getOwnPropertyDescriptor;var M3=Object.getOwnPropertyNames;var R3=Object.getPrototypeOf,q3=Object.prototype.hasOwnProperty;var x=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),U3=(e,t)=>{for(var r in t)tu(e,r,{get:t[r],enumerable:!0})},oT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of M3(t))!q3.call(e,s)&&s!==r&&tu(e,s,{get:()=>t[s],enumerable:!(n=j3(t,s))||n.enumerable});return e};var ci=(e,t,r)=>(r=e!=null?L3(R3(e)):{},oT(t||!e||!e.__esModule?tu(r,"default",{value:e,enumerable:!0}):r,e)),V3=e=>oT(tu({},"__esModule",{value:!0}),e);var ru=x(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.default=$3;function $3(e,t){let r=Object.keys(t);for(let n of r)if(e[n]!==t[n])return!1;return!0}});var na=x(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.default=W3;var lT=new Set;function W3(e,t,r="",n=e){if(lT.has(n))return;lT.add(n);let{internal:s,trace:i}=K3(1,2);s||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\` ${i}`)}function K3(e,t){let{stackTraceLimit:r,prepareStackTrace:n}=Error,s;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){s=o},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=n,!s)return{internal:!1,trace:""};let i=s.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(i[1].getFileName()),trace:i.map(a=>` at ${a}`).join(` `)}}});var Wt=x(S=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0});S.isAccessor=uL;S.isAnyTypeAnnotation=Dk;S.isArgumentPlaceholder=r4;S.isArrayExpression=H3;S.isArrayPattern=WB;S.isArrayTypeAnnotation=wk;S.isArrowFunctionExpression=KB;S.isAssignmentExpression=G3;S.isAssignmentPattern=$B;S.isAwaitExpression=hk;S.isBigIntLiteral=yk;S.isBinary=N8;S.isBinaryExpression=X3;S.isBindExpression=n4;S.isBlock=k8;S.isBlockParent=B8;S.isBlockStatement=Q3;S.isBooleanLiteral=EB;S.isBooleanLiteralTypeAnnotation=_k;S.isBooleanTypeAnnotation=Ik;S.isBreakStatement=Z3;S.isCallExpression=eB;S.isCatchClause=tB;S.isClass=aL;S.isClassAccessorProperty=xk;S.isClassBody=HB;S.isClassDeclaration=XB;S.isClassExpression=GB;S.isClassImplements=Ok;S.isClassMethod=ak;S.isClassPrivateMethod=vk;S.isClassPrivateProperty=Sk;S.isClassProperty=Tk;S.isCompletionStatement=j8;S.isConditional=M8;S.isConditionalExpression=rB;S.isContinueStatement=nB;S.isDebuggerStatement=sB;S.isDecimalLiteral=u4;S.isDeclaration=G8;S.isDeclareClass=Bk;S.isDeclareExportAllDeclaration=Vk;S.isDeclareExportDeclaration=Uk;S.isDeclareFunction=kk;S.isDeclareInterface=Fk;S.isDeclareModule=Lk;S.isDeclareModuleExports=jk;S.isDeclareOpaqueType=Rk;S.isDeclareTypeAlias=Mk;S.isDeclareVariable=qk;S.isDeclaredPredicate=$k;S.isDecorator=s4;S.isDirective=J3;S.isDirectiveLiteral=z3;S.isDoExpression=i4;S.isDoWhileStatement=iB;S.isEmptyStatement=aB;S.isEmptyTypeAnnotation=eF;S.isEnumBody=yL;S.isEnumBooleanBody=wF;S.isEnumBooleanMember=OF;S.isEnumDeclaration=DF;S.isEnumDefaultedMember=FF;S.isEnumMember=gL;S.isEnumNumberBody=IF;S.isEnumNumberMember=BF;S.isEnumStringBody=_F;S.isEnumStringMember=kF;S.isEnumSymbolBody=NF;S.isExistsTypeAnnotation=Wk;S.isExportAllDeclaration=YB;S.isExportDeclaration=oL;S.isExportDefaultDeclaration=JB;S.isExportDefaultSpecifier=a4;S.isExportNamedDeclaration=zB;S.isExportNamespaceSpecifier=gk;S.isExportSpecifier=QB;S.isExpression=_8;S.isExpressionStatement=oB;S.isExpressionWrapper=U8;S.isFile=lB;S.isFlow=pL;S.isFlowBaseAnnotation=dL;S.isFlowDeclaration=hL;S.isFlowPredicate=mL;S.isFlowType=fL;S.isFor=V8;S.isForInStatement=uB;S.isForOfStatement=ZB;S.isForStatement=cB;S.isForXStatement=$8;S.isFunction=W8;S.isFunctionDeclaration=pB;S.isFunctionExpression=fB;S.isFunctionParameter=X8;S.isFunctionParent=K8;S.isFunctionTypeAnnotation=Kk;S.isFunctionTypeParam=Hk;S.isGenericTypeAnnotation=Gk;S.isIdentifier=dB;S.isIfStatement=hB;S.isImmutable=Z8;S.isImport=mk;S.isImportAttribute=Ck;S.isImportDeclaration=ek;S.isImportDefaultSpecifier=tk;S.isImportExpression=sk;S.isImportNamespaceSpecifier=rk;S.isImportOrExportDeclaration=uT;S.isImportSpecifier=nk;S.isIndexedAccessType=LF;S.isInferredPredicate=Xk;S.isInterfaceDeclaration=Jk;S.isInterfaceExtends=Yk;S.isInterfaceTypeAnnotation=zk;S.isInterpreterDirective=Y3;S.isIntersectionTypeAnnotation=Qk;S.isJSX=bL;S.isJSXAttribute=MF;S.isJSXClosingElement=RF;S.isJSXClosingFragment=QF;S.isJSXElement=qF;S.isJSXEmptyExpression=UF;S.isJSXExpressionContainer=VF;S.isJSXFragment=JF;S.isJSXIdentifier=WF;S.isJSXMemberExpression=KF;S.isJSXNamespacedName=HF;S.isJSXOpeningElement=GF;S.isJSXOpeningFragment=zF;S.isJSXSpreadAttribute=XF;S.isJSXSpreadChild=$F;S.isJSXText=YF;S.isLVal=J8;S.isLabeledStatement=mB;S.isLiteral=Q8;S.isLogicalExpression=xB;S.isLoop=R8;S.isMemberExpression=SB;S.isMetaProperty=ik;S.isMethod=tL;S.isMiscellaneous=EL;S.isMixedTypeAnnotation=Zk;S.isModuleDeclaration=wL;S.isModuleExpression=c4;S.isModuleSpecifier=lL;S.isNewExpression=vB;S.isNoop=ZF;S.isNullLiteral=bB;S.isNullLiteralTypeAnnotation=Nk;S.isNullableTypeAnnotation=tF;S.isNumberLiteral=PL;S.isNumberLiteralTypeAnnotation=rF;S.isNumberTypeAnnotation=nF;S.isNumericLiteral=gB;S.isObjectExpression=AB;S.isObjectMember=rL;S.isObjectMethod=CB;S.isObjectPattern=ok;S.isObjectProperty=DB;S.isObjectTypeAnnotation=sF;S.isObjectTypeCallProperty=aF;S.isObjectTypeIndexer=oF;S.isObjectTypeInternalSlot=iF;S.isObjectTypeProperty=lF;S.isObjectTypeSpreadProperty=uF;S.isOpaqueType=cF;S.isOptionalCallExpression=Ek;S.isOptionalIndexedAccessType=jF;S.isOptionalMemberExpression=bk;S.isParenthesizedExpression=NB;S.isPattern=iL;S.isPatternLike=Y8;S.isPipelineBareFunction=d4;S.isPipelinePrimaryTopicReference=h4;S.isPipelineTopicExpression=f4;S.isPlaceholder=e4;S.isPrivate=cL;S.isPrivateName=Pk;S.isProgram=PB;S.isProperty=nL;S.isPureish=H8;S.isQualifiedTypeIdentifier=pF;S.isRecordExpression=o4;S.isRegExpLiteral=TB;S.isRegexLiteral=AL;S.isRestElement=wB;S.isRestProperty=CL;S.isReturnStatement=IB;S.isScopable=O8;S.isSequenceExpression=_B;S.isSpreadElement=lk;S.isSpreadProperty=DL;S.isStandardized=I8;S.isStatement=F8;S.isStaticBlock=Ak;S.isStringLiteral=yB;S.isStringLiteralTypeAnnotation=fF;S.isStringTypeAnnotation=dF;S.isSuper=uk;S.isSwitchCase=OB;S.isSwitchStatement=BB;S.isSymbolTypeAnnotation=hF;S.isTSAnyKeyword=A4;S.isTSArrayType=K4;S.isTSAsExpression=p8;S.isTSBaseType=vL;S.isTSBigIntKeyword=D4;S.isTSBooleanKeyword=C4;S.isTSCallSignatureDeclaration=T4;S.isTSConditionalType=Q4;S.isTSConstructSignatureDeclaration=x4;S.isTSConstructorType=q4;S.isTSDeclareFunction=g4;S.isTSDeclareMethod=b4;S.isTSEntityName=z8;S.isTSEnumBody=h8;S.isTSEnumDeclaration=m8;S.isTSEnumMember=y8;S.isTSExportAssignment=v8;S.isTSExpressionWithTypeArguments=a8;S.isTSExternalModuleReference=x8;S.isTSFunctionType=R4;S.isTSImportEqualsDeclaration=T8;S.isTSImportType=E8;S.isTSIndexSignature=P4;S.isTSIndexedAccessType=r8;S.isTSInferType=Z4;S.isTSInstantiationExpression=c8;S.isTSInterfaceBody=l8;S.isTSInterfaceDeclaration=o8;S.isTSIntersectionType=z4;S.isTSIntrinsicKeyword=w4;S.isTSLiteralType=i8;S.isTSMappedType=n8;S.isTSMethodSignature=v4;S.isTSModuleBlock=b8;S.isTSModuleDeclaration=g8;S.isTSNamedTupleMember=Y4;S.isTSNamespaceExportDeclaration=P8;S.isTSNeverKeyword=I4;S.isTSNonNullExpression=S8;S.isTSNullKeyword=_4;S.isTSNumberKeyword=N4;S.isTSObjectKeyword=O4;S.isTSOptionalType=G4;S.isTSParameterProperty=y4;S.isTSParenthesizedType=e8;S.isTSPropertySignature=S4;S.isTSQualifiedName=E4;S.isTSRestType=X4;S.isTSSatisfiesExpression=f8;S.isTSStringKeyword=B4;S.isTSSymbolKeyword=k4;S.isTSTemplateLiteralType=s8;S.isTSThisType=M4;S.isTSTupleType=H4;S.isTSType=SL;S.isTSTypeAliasDeclaration=u8;S.isTSTypeAnnotation=A8;S.isTSTypeAssertion=d8;S.isTSTypeElement=xL;S.isTSTypeLiteral=W4;S.isTSTypeOperator=t8;S.isTSTypeParameter=w8;S.isTSTypeParameterDeclaration=D8;S.isTSTypeParameterInstantiation=C8;S.isTSTypePredicate=V4;S.isTSTypeQuery=$4;S.isTSTypeReference=U4;S.isTSUndefinedKeyword=F4;S.isTSUnionType=J4;S.isTSUnknownKeyword=L4;S.isTSVoidKeyword=j4;S.isTaggedTemplateExpression=ck;S.isTemplateElement=pk;S.isTemplateLiteral=fk;S.isTerminatorless=L8;S.isThisExpression=kB;S.isThisTypeAnnotation=mF;S.isThrowStatement=FB;S.isTopicReference=p4;S.isTryStatement=LB;S.isTupleExpression=l4;S.isTupleTypeAnnotation=yF;S.isTypeAlias=bF;S.isTypeAnnotation=EF;S.isTypeCastExpression=TF;S.isTypeParameter=xF;S.isTypeParameterDeclaration=SF;S.isTypeParameterInstantiation=vF;S.isTypeScript=TL;S.isTypeofTypeAnnotation=gF;S.isUnaryExpression=jB;S.isUnaryLike=sL;S.isUnionTypeAnnotation=PF;S.isUpdateExpression=MB;S.isUserWhitespacable=eL;S.isV8IntrinsicIdentifier=t4;S.isVariableDeclaration=RB;S.isVariableDeclarator=qB;S.isVariance=AF;S.isVoidPattern=m4;S.isVoidTypeAnnotation=CF;S.isWhile=q8;S.isWhileStatement=UB;S.isWithStatement=VB;S.isYieldExpression=dk;var A=ru(),mo=na();function H3(e,t){return!e||e.type!=="ArrayExpression"?!1:t==null||(0,A.default)(e,t)}function G3(e,t){return!e||e.type!=="AssignmentExpression"?!1:t==null||(0,A.default)(e,t)}function X3(e,t){return!e||e.type!=="BinaryExpression"?!1:t==null||(0,A.default)(e,t)}function Y3(e,t){return!e||e.type!=="InterpreterDirective"?!1:t==null||(0,A.default)(e,t)}function J3(e,t){return!e||e.type!=="Directive"?!1:t==null||(0,A.default)(e,t)}function z3(e,t){return!e||e.type!=="DirectiveLiteral"?!1:t==null||(0,A.default)(e,t)}function Q3(e,t){return!e||e.type!=="BlockStatement"?!1:t==null||(0,A.default)(e,t)}function Z3(e,t){return!e||e.type!=="BreakStatement"?!1:t==null||(0,A.default)(e,t)}function eB(e,t){return!e||e.type!=="CallExpression"?!1:t==null||(0,A.default)(e,t)}function tB(e,t){return!e||e.type!=="CatchClause"?!1:t==null||(0,A.default)(e,t)}function rB(e,t){return!e||e.type!=="ConditionalExpression"?!1:t==null||(0,A.default)(e,t)}function nB(e,t){return!e||e.type!=="ContinueStatement"?!1:t==null||(0,A.default)(e,t)}function sB(e,t){return!e||e.type!=="DebuggerStatement"?!1:t==null||(0,A.default)(e,t)}function iB(e,t){return!e||e.type!=="DoWhileStatement"?!1:t==null||(0,A.default)(e,t)}function aB(e,t){return!e||e.type!=="EmptyStatement"?!1:t==null||(0,A.default)(e,t)}function oB(e,t){return!e||e.type!=="ExpressionStatement"?!1:t==null||(0,A.default)(e,t)}function lB(e,t){return!e||e.type!=="File"?!1:t==null||(0,A.default)(e,t)}function uB(e,t){return!e||e.type!=="ForInStatement"?!1:t==null||(0,A.default)(e,t)}function cB(e,t){return!e||e.type!=="ForStatement"?!1:t==null||(0,A.default)(e,t)}function pB(e,t){return!e||e.type!=="FunctionDeclaration"?!1:t==null||(0,A.default)(e,t)}function fB(e,t){return!e||e.type!=="FunctionExpression"?!1:t==null||(0,A.default)(e,t)}function dB(e,t){return!e||e.type!=="Identifier"?!1:t==null||(0,A.default)(e,t)}function hB(e,t){return!e||e.type!=="IfStatement"?!1:t==null||(0,A.default)(e,t)}function mB(e,t){return!e||e.type!=="LabeledStatement"?!1:t==null||(0,A.default)(e,t)}function yB(e,t){return!e||e.type!=="StringLiteral"?!1:t==null||(0,A.default)(e,t)}function gB(e,t){return!e||e.type!=="NumericLiteral"?!1:t==null||(0,A.default)(e,t)}function bB(e,t){return!e||e.type!=="NullLiteral"?!1:t==null||(0,A.default)(e,t)}function EB(e,t){return!e||e.type!=="BooleanLiteral"?!1:t==null||(0,A.default)(e,t)}function TB(e,t){return!e||e.type!=="RegExpLiteral"?!1:t==null||(0,A.default)(e,t)}function xB(e,t){return!e||e.type!=="LogicalExpression"?!1:t==null||(0,A.default)(e,t)}function SB(e,t){return!e||e.type!=="MemberExpression"?!1:t==null||(0,A.default)(e,t)}function vB(e,t){return!e||e.type!=="NewExpression"?!1:t==null||(0,A.default)(e,t)}function PB(e,t){return!e||e.type!=="Program"?!1:t==null||(0,A.default)(e,t)}function AB(e,t){return!e||e.type!=="ObjectExpression"?!1:t==null||(0,A.default)(e,t)}function CB(e,t){return!e||e.type!=="ObjectMethod"?!1:t==null||(0,A.default)(e,t)}function DB(e,t){return!e||e.type!=="ObjectProperty"?!1:t==null||(0,A.default)(e,t)}function wB(e,t){return!e||e.type!=="RestElement"?!1:t==null||(0,A.default)(e,t)}function IB(e,t){return!e||e.type!=="ReturnStatement"?!1:t==null||(0,A.default)(e,t)}function _B(e,t){return!e||e.type!=="SequenceExpression"?!1:t==null||(0,A.default)(e,t)}function NB(e,t){return!e||e.type!=="ParenthesizedExpression"?!1:t==null||(0,A.default)(e,t)}function OB(e,t){return!e||e.type!=="SwitchCase"?!1:t==null||(0,A.default)(e,t)}function BB(e,t){return!e||e.type!=="SwitchStatement"?!1:t==null||(0,A.default)(e,t)}function kB(e,t){return!e||e.type!=="ThisExpression"?!1:t==null||(0,A.default)(e,t)}function FB(e,t){return!e||e.type!=="ThrowStatement"?!1:t==null||(0,A.default)(e,t)}function LB(e,t){return!e||e.type!=="TryStatement"?!1:t==null||(0,A.default)(e,t)}function jB(e,t){return!e||e.type!=="UnaryExpression"?!1:t==null||(0,A.default)(e,t)}function MB(e,t){return!e||e.type!=="UpdateExpression"?!1:t==null||(0,A.default)(e,t)}function RB(e,t){return!e||e.type!=="VariableDeclaration"?!1:t==null||(0,A.default)(e,t)}function qB(e,t){return!e||e.type!=="VariableDeclarator"?!1:t==null||(0,A.default)(e,t)}function UB(e,t){return!e||e.type!=="WhileStatement"?!1:t==null||(0,A.default)(e,t)}function VB(e,t){return!e||e.type!=="WithStatement"?!1:t==null||(0,A.default)(e,t)}function $B(e,t){return!e||e.type!=="AssignmentPattern"?!1:t==null||(0,A.default)(e,t)}function WB(e,t){return!e||e.type!=="ArrayPattern"?!1:t==null||(0,A.default)(e,t)}function KB(e,t){return!e||e.type!=="ArrowFunctionExpression"?!1:t==null||(0,A.default)(e,t)}function HB(e,t){return!e||e.type!=="ClassBody"?!1:t==null||(0,A.default)(e,t)}function GB(e,t){return!e||e.type!=="ClassExpression"?!1:t==null||(0,A.default)(e,t)}function XB(e,t){return!e||e.type!=="ClassDeclaration"?!1:t==null||(0,A.default)(e,t)}function YB(e,t){return!e||e.type!=="ExportAllDeclaration"?!1:t==null||(0,A.default)(e,t)}function JB(e,t){return!e||e.type!=="ExportDefaultDeclaration"?!1:t==null||(0,A.default)(e,t)}function zB(e,t){return!e||e.type!=="ExportNamedDeclaration"?!1:t==null||(0,A.default)(e,t)}function QB(e,t){return!e||e.type!=="ExportSpecifier"?!1:t==null||(0,A.default)(e,t)}function ZB(e,t){return!e||e.type!=="ForOfStatement"?!1:t==null||(0,A.default)(e,t)}function ek(e,t){return!e||e.type!=="ImportDeclaration"?!1:t==null||(0,A.default)(e,t)}function tk(e,t){return!e||e.type!=="ImportDefaultSpecifier"?!1:t==null||(0,A.default)(e,t)}function rk(e,t){return!e||e.type!=="ImportNamespaceSpecifier"?!1:t==null||(0,A.default)(e,t)}function nk(e,t){return!e||e.type!=="ImportSpecifier"?!1:t==null||(0,A.default)(e,t)}function sk(e,t){return!e||e.type!=="ImportExpression"?!1:t==null||(0,A.default)(e,t)}function ik(e,t){return!e||e.type!=="MetaProperty"?!1:t==null||(0,A.default)(e,t)}function ak(e,t){return!e||e.type!=="ClassMethod"?!1:t==null||(0,A.default)(e,t)}function ok(e,t){return!e||e.type!=="ObjectPattern"?!1:t==null||(0,A.default)(e,t)}function lk(e,t){return!e||e.type!=="SpreadElement"?!1:t==null||(0,A.default)(e,t)}function uk(e,t){return!e||e.type!=="Super"?!1:t==null||(0,A.default)(e,t)}function ck(e,t){return!e||e.type!=="TaggedTemplateExpression"?!1:t==null||(0,A.default)(e,t)}function pk(e,t){return!e||e.type!=="TemplateElement"?!1:t==null||(0,A.default)(e,t)}function fk(e,t){return!e||e.type!=="TemplateLiteral"?!1:t==null||(0,A.default)(e,t)}function dk(e,t){return!e||e.type!=="YieldExpression"?!1:t==null||(0,A.default)(e,t)}function hk(e,t){return!e||e.type!=="AwaitExpression"?!1:t==null||(0,A.default)(e,t)}function mk(e,t){return!e||e.type!=="Import"?!1:t==null||(0,A.default)(e,t)}function yk(e,t){return!e||e.type!=="BigIntLiteral"?!1:t==null||(0,A.default)(e,t)}function gk(e,t){return!e||e.type!=="ExportNamespaceSpecifier"?!1:t==null||(0,A.default)(e,t)}function bk(e,t){return!e||e.type!=="OptionalMemberExpression"?!1:t==null||(0,A.default)(e,t)}function Ek(e,t){return!e||e.type!=="OptionalCallExpression"?!1:t==null||(0,A.default)(e,t)}function Tk(e,t){return!e||e.type!=="ClassProperty"?!1:t==null||(0,A.default)(e,t)}function xk(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,A.default)(e,t)}function Sk(e,t){return!e||e.type!=="ClassPrivateProperty"?!1:t==null||(0,A.default)(e,t)}function vk(e,t){return!e||e.type!=="ClassPrivateMethod"?!1:t==null||(0,A.default)(e,t)}function Pk(e,t){return!e||e.type!=="PrivateName"?!1:t==null||(0,A.default)(e,t)}function Ak(e,t){return!e||e.type!=="StaticBlock"?!1:t==null||(0,A.default)(e,t)}function Ck(e,t){return!e||e.type!=="ImportAttribute"?!1:t==null||(0,A.default)(e,t)}function Dk(e,t){return!e||e.type!=="AnyTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function wk(e,t){return!e||e.type!=="ArrayTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function Ik(e,t){return!e||e.type!=="BooleanTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function _k(e,t){return!e||e.type!=="BooleanLiteralTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function Nk(e,t){return!e||e.type!=="NullLiteralTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function Ok(e,t){return!e||e.type!=="ClassImplements"?!1:t==null||(0,A.default)(e,t)}function Bk(e,t){return!e||e.type!=="DeclareClass"?!1:t==null||(0,A.default)(e,t)}function kk(e,t){return!e||e.type!=="DeclareFunction"?!1:t==null||(0,A.default)(e,t)}function Fk(e,t){return!e||e.type!=="DeclareInterface"?!1:t==null||(0,A.default)(e,t)}function Lk(e,t){return!e||e.type!=="DeclareModule"?!1:t==null||(0,A.default)(e,t)}function jk(e,t){return!e||e.type!=="DeclareModuleExports"?!1:t==null||(0,A.default)(e,t)}function Mk(e,t){return!e||e.type!=="DeclareTypeAlias"?!1:t==null||(0,A.default)(e,t)}function Rk(e,t){return!e||e.type!=="DeclareOpaqueType"?!1:t==null||(0,A.default)(e,t)}function qk(e,t){return!e||e.type!=="DeclareVariable"?!1:t==null||(0,A.default)(e,t)}function Uk(e,t){return!e||e.type!=="DeclareExportDeclaration"?!1:t==null||(0,A.default)(e,t)}function Vk(e,t){return!e||e.type!=="DeclareExportAllDeclaration"?!1:t==null||(0,A.default)(e,t)}function $k(e,t){return!e||e.type!=="DeclaredPredicate"?!1:t==null||(0,A.default)(e,t)}function Wk(e,t){return!e||e.type!=="ExistsTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function Kk(e,t){return!e||e.type!=="FunctionTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function Hk(e,t){return!e||e.type!=="FunctionTypeParam"?!1:t==null||(0,A.default)(e,t)}function Gk(e,t){return!e||e.type!=="GenericTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function Xk(e,t){return!e||e.type!=="InferredPredicate"?!1:t==null||(0,A.default)(e,t)}function Yk(e,t){return!e||e.type!=="InterfaceExtends"?!1:t==null||(0,A.default)(e,t)}function Jk(e,t){return!e||e.type!=="InterfaceDeclaration"?!1:t==null||(0,A.default)(e,t)}function zk(e,t){return!e||e.type!=="InterfaceTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function Qk(e,t){return!e||e.type!=="IntersectionTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function Zk(e,t){return!e||e.type!=="MixedTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function eF(e,t){return!e||e.type!=="EmptyTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function tF(e,t){return!e||e.type!=="NullableTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function rF(e,t){return!e||e.type!=="NumberLiteralTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function nF(e,t){return!e||e.type!=="NumberTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function sF(e,t){return!e||e.type!=="ObjectTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function iF(e,t){return!e||e.type!=="ObjectTypeInternalSlot"?!1:t==null||(0,A.default)(e,t)}function aF(e,t){return!e||e.type!=="ObjectTypeCallProperty"?!1:t==null||(0,A.default)(e,t)}function oF(e,t){return!e||e.type!=="ObjectTypeIndexer"?!1:t==null||(0,A.default)(e,t)}function lF(e,t){return!e||e.type!=="ObjectTypeProperty"?!1:t==null||(0,A.default)(e,t)}function uF(e,t){return!e||e.type!=="ObjectTypeSpreadProperty"?!1:t==null||(0,A.default)(e,t)}function cF(e,t){return!e||e.type!=="OpaqueType"?!1:t==null||(0,A.default)(e,t)}function pF(e,t){return!e||e.type!=="QualifiedTypeIdentifier"?!1:t==null||(0,A.default)(e,t)}function fF(e,t){return!e||e.type!=="StringLiteralTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function dF(e,t){return!e||e.type!=="StringTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function hF(e,t){return!e||e.type!=="SymbolTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function mF(e,t){return!e||e.type!=="ThisTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function yF(e,t){return!e||e.type!=="TupleTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function gF(e,t){return!e||e.type!=="TypeofTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function bF(e,t){return!e||e.type!=="TypeAlias"?!1:t==null||(0,A.default)(e,t)}function EF(e,t){return!e||e.type!=="TypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function TF(e,t){return!e||e.type!=="TypeCastExpression"?!1:t==null||(0,A.default)(e,t)}function xF(e,t){return!e||e.type!=="TypeParameter"?!1:t==null||(0,A.default)(e,t)}function SF(e,t){return!e||e.type!=="TypeParameterDeclaration"?!1:t==null||(0,A.default)(e,t)}function vF(e,t){return!e||e.type!=="TypeParameterInstantiation"?!1:t==null||(0,A.default)(e,t)}function PF(e,t){return!e||e.type!=="UnionTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function AF(e,t){return!e||e.type!=="Variance"?!1:t==null||(0,A.default)(e,t)}function CF(e,t){return!e||e.type!=="VoidTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function DF(e,t){return!e||e.type!=="EnumDeclaration"?!1:t==null||(0,A.default)(e,t)}function wF(e,t){return!e||e.type!=="EnumBooleanBody"?!1:t==null||(0,A.default)(e,t)}function IF(e,t){return!e||e.type!=="EnumNumberBody"?!1:t==null||(0,A.default)(e,t)}function _F(e,t){return!e||e.type!=="EnumStringBody"?!1:t==null||(0,A.default)(e,t)}function NF(e,t){return!e||e.type!=="EnumSymbolBody"?!1:t==null||(0,A.default)(e,t)}function OF(e,t){return!e||e.type!=="EnumBooleanMember"?!1:t==null||(0,A.default)(e,t)}function BF(e,t){return!e||e.type!=="EnumNumberMember"?!1:t==null||(0,A.default)(e,t)}function kF(e,t){return!e||e.type!=="EnumStringMember"?!1:t==null||(0,A.default)(e,t)}function FF(e,t){return!e||e.type!=="EnumDefaultedMember"?!1:t==null||(0,A.default)(e,t)}function LF(e,t){return!e||e.type!=="IndexedAccessType"?!1:t==null||(0,A.default)(e,t)}function jF(e,t){return!e||e.type!=="OptionalIndexedAccessType"?!1:t==null||(0,A.default)(e,t)}function MF(e,t){return!e||e.type!=="JSXAttribute"?!1:t==null||(0,A.default)(e,t)}function RF(e,t){return!e||e.type!=="JSXClosingElement"?!1:t==null||(0,A.default)(e,t)}function qF(e,t){return!e||e.type!=="JSXElement"?!1:t==null||(0,A.default)(e,t)}function UF(e,t){return!e||e.type!=="JSXEmptyExpression"?!1:t==null||(0,A.default)(e,t)}function VF(e,t){return!e||e.type!=="JSXExpressionContainer"?!1:t==null||(0,A.default)(e,t)}function $F(e,t){return!e||e.type!=="JSXSpreadChild"?!1:t==null||(0,A.default)(e,t)}function WF(e,t){return!e||e.type!=="JSXIdentifier"?!1:t==null||(0,A.default)(e,t)}function KF(e,t){return!e||e.type!=="JSXMemberExpression"?!1:t==null||(0,A.default)(e,t)}function HF(e,t){return!e||e.type!=="JSXNamespacedName"?!1:t==null||(0,A.default)(e,t)}function GF(e,t){return!e||e.type!=="JSXOpeningElement"?!1:t==null||(0,A.default)(e,t)}function XF(e,t){return!e||e.type!=="JSXSpreadAttribute"?!1:t==null||(0,A.default)(e,t)}function YF(e,t){return!e||e.type!=="JSXText"?!1:t==null||(0,A.default)(e,t)}function JF(e,t){return!e||e.type!=="JSXFragment"?!1:t==null||(0,A.default)(e,t)}function zF(e,t){return!e||e.type!=="JSXOpeningFragment"?!1:t==null||(0,A.default)(e,t)}function QF(e,t){return!e||e.type!=="JSXClosingFragment"?!1:t==null||(0,A.default)(e,t)}function ZF(e,t){return!e||e.type!=="Noop"?!1:t==null||(0,A.default)(e,t)}function e4(e,t){return!e||e.type!=="Placeholder"?!1:t==null||(0,A.default)(e,t)}function t4(e,t){return!e||e.type!=="V8IntrinsicIdentifier"?!1:t==null||(0,A.default)(e,t)}function r4(e,t){return!e||e.type!=="ArgumentPlaceholder"?!1:t==null||(0,A.default)(e,t)}function n4(e,t){return!e||e.type!=="BindExpression"?!1:t==null||(0,A.default)(e,t)}function s4(e,t){return!e||e.type!=="Decorator"?!1:t==null||(0,A.default)(e,t)}function i4(e,t){return!e||e.type!=="DoExpression"?!1:t==null||(0,A.default)(e,t)}function a4(e,t){return!e||e.type!=="ExportDefaultSpecifier"?!1:t==null||(0,A.default)(e,t)}function o4(e,t){return!e||e.type!=="RecordExpression"?!1:t==null||(0,A.default)(e,t)}function l4(e,t){return!e||e.type!=="TupleExpression"?!1:t==null||(0,A.default)(e,t)}function u4(e,t){return!e||e.type!=="DecimalLiteral"?!1:t==null||(0,A.default)(e,t)}function c4(e,t){return!e||e.type!=="ModuleExpression"?!1:t==null||(0,A.default)(e,t)}function p4(e,t){return!e||e.type!=="TopicReference"?!1:t==null||(0,A.default)(e,t)}function f4(e,t){return!e||e.type!=="PipelineTopicExpression"?!1:t==null||(0,A.default)(e,t)}function d4(e,t){return!e||e.type!=="PipelineBareFunction"?!1:t==null||(0,A.default)(e,t)}function h4(e,t){return!e||e.type!=="PipelinePrimaryTopicReference"?!1:t==null||(0,A.default)(e,t)}function m4(e,t){return!e||e.type!=="VoidPattern"?!1:t==null||(0,A.default)(e,t)}function y4(e,t){return!e||e.type!=="TSParameterProperty"?!1:t==null||(0,A.default)(e,t)}function g4(e,t){return!e||e.type!=="TSDeclareFunction"?!1:t==null||(0,A.default)(e,t)}function b4(e,t){return!e||e.type!=="TSDeclareMethod"?!1:t==null||(0,A.default)(e,t)}function E4(e,t){return!e||e.type!=="TSQualifiedName"?!1:t==null||(0,A.default)(e,t)}function T4(e,t){return!e||e.type!=="TSCallSignatureDeclaration"?!1:t==null||(0,A.default)(e,t)}function x4(e,t){return!e||e.type!=="TSConstructSignatureDeclaration"?!1:t==null||(0,A.default)(e,t)}function S4(e,t){return!e||e.type!=="TSPropertySignature"?!1:t==null||(0,A.default)(e,t)}function v4(e,t){return!e||e.type!=="TSMethodSignature"?!1:t==null||(0,A.default)(e,t)}function P4(e,t){return!e||e.type!=="TSIndexSignature"?!1:t==null||(0,A.default)(e,t)}function A4(e,t){return!e||e.type!=="TSAnyKeyword"?!1:t==null||(0,A.default)(e,t)}function C4(e,t){return!e||e.type!=="TSBooleanKeyword"?!1:t==null||(0,A.default)(e,t)}function D4(e,t){return!e||e.type!=="TSBigIntKeyword"?!1:t==null||(0,A.default)(e,t)}function w4(e,t){return!e||e.type!=="TSIntrinsicKeyword"?!1:t==null||(0,A.default)(e,t)}function I4(e,t){return!e||e.type!=="TSNeverKeyword"?!1:t==null||(0,A.default)(e,t)}function _4(e,t){return!e||e.type!=="TSNullKeyword"?!1:t==null||(0,A.default)(e,t)}function N4(e,t){return!e||e.type!=="TSNumberKeyword"?!1:t==null||(0,A.default)(e,t)}function O4(e,t){return!e||e.type!=="TSObjectKeyword"?!1:t==null||(0,A.default)(e,t)}function B4(e,t){return!e||e.type!=="TSStringKeyword"?!1:t==null||(0,A.default)(e,t)}function k4(e,t){return!e||e.type!=="TSSymbolKeyword"?!1:t==null||(0,A.default)(e,t)}function F4(e,t){return!e||e.type!=="TSUndefinedKeyword"?!1:t==null||(0,A.default)(e,t)}function L4(e,t){return!e||e.type!=="TSUnknownKeyword"?!1:t==null||(0,A.default)(e,t)}function j4(e,t){return!e||e.type!=="TSVoidKeyword"?!1:t==null||(0,A.default)(e,t)}function M4(e,t){return!e||e.type!=="TSThisType"?!1:t==null||(0,A.default)(e,t)}function R4(e,t){return!e||e.type!=="TSFunctionType"?!1:t==null||(0,A.default)(e,t)}function q4(e,t){return!e||e.type!=="TSConstructorType"?!1:t==null||(0,A.default)(e,t)}function U4(e,t){return!e||e.type!=="TSTypeReference"?!1:t==null||(0,A.default)(e,t)}function V4(e,t){return!e||e.type!=="TSTypePredicate"?!1:t==null||(0,A.default)(e,t)}function $4(e,t){return!e||e.type!=="TSTypeQuery"?!1:t==null||(0,A.default)(e,t)}function W4(e,t){return!e||e.type!=="TSTypeLiteral"?!1:t==null||(0,A.default)(e,t)}function K4(e,t){return!e||e.type!=="TSArrayType"?!1:t==null||(0,A.default)(e,t)}function H4(e,t){return!e||e.type!=="TSTupleType"?!1:t==null||(0,A.default)(e,t)}function G4(e,t){return!e||e.type!=="TSOptionalType"?!1:t==null||(0,A.default)(e,t)}function X4(e,t){return!e||e.type!=="TSRestType"?!1:t==null||(0,A.default)(e,t)}function Y4(e,t){return!e||e.type!=="TSNamedTupleMember"?!1:t==null||(0,A.default)(e,t)}function J4(e,t){return!e||e.type!=="TSUnionType"?!1:t==null||(0,A.default)(e,t)}function z4(e,t){return!e||e.type!=="TSIntersectionType"?!1:t==null||(0,A.default)(e,t)}function Q4(e,t){return!e||e.type!=="TSConditionalType"?!1:t==null||(0,A.default)(e,t)}function Z4(e,t){return!e||e.type!=="TSInferType"?!1:t==null||(0,A.default)(e,t)}function e8(e,t){return!e||e.type!=="TSParenthesizedType"?!1:t==null||(0,A.default)(e,t)}function t8(e,t){return!e||e.type!=="TSTypeOperator"?!1:t==null||(0,A.default)(e,t)}function r8(e,t){return!e||e.type!=="TSIndexedAccessType"?!1:t==null||(0,A.default)(e,t)}function n8(e,t){return!e||e.type!=="TSMappedType"?!1:t==null||(0,A.default)(e,t)}function s8(e,t){return!e||e.type!=="TSTemplateLiteralType"?!1:t==null||(0,A.default)(e,t)}function i8(e,t){return!e||e.type!=="TSLiteralType"?!1:t==null||(0,A.default)(e,t)}function a8(e,t){return!e||e.type!=="TSExpressionWithTypeArguments"?!1:t==null||(0,A.default)(e,t)}function o8(e,t){return!e||e.type!=="TSInterfaceDeclaration"?!1:t==null||(0,A.default)(e,t)}function l8(e,t){return!e||e.type!=="TSInterfaceBody"?!1:t==null||(0,A.default)(e,t)}function u8(e,t){return!e||e.type!=="TSTypeAliasDeclaration"?!1:t==null||(0,A.default)(e,t)}function c8(e,t){return!e||e.type!=="TSInstantiationExpression"?!1:t==null||(0,A.default)(e,t)}function p8(e,t){return!e||e.type!=="TSAsExpression"?!1:t==null||(0,A.default)(e,t)}function f8(e,t){return!e||e.type!=="TSSatisfiesExpression"?!1:t==null||(0,A.default)(e,t)}function d8(e,t){return!e||e.type!=="TSTypeAssertion"?!1:t==null||(0,A.default)(e,t)}function h8(e,t){return!e||e.type!=="TSEnumBody"?!1:t==null||(0,A.default)(e,t)}function m8(e,t){return!e||e.type!=="TSEnumDeclaration"?!1:t==null||(0,A.default)(e,t)}function y8(e,t){return!e||e.type!=="TSEnumMember"?!1:t==null||(0,A.default)(e,t)}function g8(e,t){return!e||e.type!=="TSModuleDeclaration"?!1:t==null||(0,A.default)(e,t)}function b8(e,t){return!e||e.type!=="TSModuleBlock"?!1:t==null||(0,A.default)(e,t)}function E8(e,t){return!e||e.type!=="TSImportType"?!1:t==null||(0,A.default)(e,t)}function T8(e,t){return!e||e.type!=="TSImportEqualsDeclaration"?!1:t==null||(0,A.default)(e,t)}function x8(e,t){return!e||e.type!=="TSExternalModuleReference"?!1:t==null||(0,A.default)(e,t)}function S8(e,t){return!e||e.type!=="TSNonNullExpression"?!1:t==null||(0,A.default)(e,t)}function v8(e,t){return!e||e.type!=="TSExportAssignment"?!1:t==null||(0,A.default)(e,t)}function P8(e,t){return!e||e.type!=="TSNamespaceExportDeclaration"?!1:t==null||(0,A.default)(e,t)}function A8(e,t){return!e||e.type!=="TSTypeAnnotation"?!1:t==null||(0,A.default)(e,t)}function C8(e,t){return!e||e.type!=="TSTypeParameterInstantiation"?!1:t==null||(0,A.default)(e,t)}function D8(e,t){return!e||e.type!=="TSTypeParameterDeclaration"?!1:t==null||(0,A.default)(e,t)}function w8(e,t){return!e||e.type!=="TSTypeParameter"?!1:t==null||(0,A.default)(e,t)}function I8(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return t==null||(0,A.default)(e,t)}function _8(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return t==null||(0,A.default)(e,t)}function N8(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return t==null||(0,A.default)(e,t)}function O8(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,A.default)(e,t)}function B8(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,A.default)(e,t)}function k8(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,A.default)(e,t)}function F8(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return t==null||(0,A.default)(e,t)}function L8(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return t==null||(0,A.default)(e,t)}function j8(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return t==null||(0,A.default)(e,t)}function M8(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return t==null||(0,A.default)(e,t)}function R8(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,A.default)(e,t)}function q8(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return t==null||(0,A.default)(e,t)}function U8(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return t==null||(0,A.default)(e,t)}function V8(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,A.default)(e,t)}function $8(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,A.default)(e,t)}function W8(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,A.default)(e,t)}function K8(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return t==null||(0,A.default)(e,t)}function H8(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,A.default)(e,t)}function G8(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return!1}return t==null||(0,A.default)(e,t)}function X8(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,A.default)(e,t)}function Y8(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,A.default)(e,t)}function J8(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,A.default)(e,t)}function z8(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,A.default)(e,t)}function Q8(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,A.default)(e,t)}function Z8(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,A.default)(e,t)}function eL(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return t==null||(0,A.default)(e,t)}function tL(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,A.default)(e,t)}function rL(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return t==null||(0,A.default)(e,t)}function nL(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return t==null||(0,A.default)(e,t)}function sL(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return t==null||(0,A.default)(e,t)}function iL(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return!1}return t==null||(0,A.default)(e,t)}function aL(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return t==null||(0,A.default)(e,t)}function uT(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return t==null||(0,A.default)(e,t)}function oL(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return t==null||(0,A.default)(e,t)}function lL(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return t==null||(0,A.default)(e,t)}function uL(e,t){if(!e)return!1;switch(e.type){case"ClassAccessorProperty":break;default:return!1}return t==null||(0,A.default)(e,t)}function cL(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return t==null||(0,A.default)(e,t)}function pL(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,A.default)(e,t)}function fL(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,A.default)(e,t)}function dL(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return t==null||(0,A.default)(e,t)}function hL(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return t==null||(0,A.default)(e,t)}function mL(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return t==null||(0,A.default)(e,t)}function yL(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return t==null||(0,A.default)(e,t)}function gL(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return t==null||(0,A.default)(e,t)}function bL(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return t==null||(0,A.default)(e,t)}function EL(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return t==null||(0,A.default)(e,t)}function TL(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return t==null||(0,A.default)(e,t)}function xL(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return t==null||(0,A.default)(e,t)}function SL(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return t==null||(0,A.default)(e,t)}function vL(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return t==null||(0,A.default)(e,t)}function PL(e,t){return(0,mo.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?!1:t==null||(0,A.default)(e,t)}function AL(e,t){return(0,mo.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?!1:t==null||(0,A.default)(e,t)}function CL(e,t){return(0,mo.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?!1:t==null||(0,A.default)(e,t)}function DL(e,t){return(0,mo.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?!1:t==null||(0,A.default)(e,t)}function wL(e,t){return(0,mo.default)("isModuleDeclaration","isImportOrExportDeclaration"),uT(e,t)}});var pd=x(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.default=IL;var pi=Wt();function cT(e){return(0,pi.isMemberExpression)(e)||(0,pi.isMetaProperty)(e)}function IL(e,t,r){if(!cT(e))return!1;let n=Array.isArray(t)?t:t.split("."),s=[],i;for(i=e;cT(i);i=(a=i.object)!=null?a:i.meta){var a;s.push(i.property)}if(s.push(i),s.lengthn.length)return!1;for(let o=0,l=s.length-1;o{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.default=NL;var _L=pd();function NL(e,t){let r=e.split(".");return n=>(0,_L.default)(n,r,t)}});var pT=x(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.default=void 0;var OL=dd(),BL=(0,OL.default)("React.Component"),kxe=nu.default=BL});var fT=x(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.default=kL;function kL(e){return!!e&&/^[a-z]/.test(e)}});var su=x(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.default=FL;var dT=an();function FL(e,t){if(e===t)return!0;if(e==null||dT.ALIAS_KEYS[t])return!1;let r=dT.FLIPPED_ALIAS_KEYS[t];return!!(r!=null&&r.includes(e))}});var gd=x(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.default=jL;var LL=an();function jL(e,t){if(e===t)return!0;let r=LL.PLACEHOLDERS_ALIAS[e];return!!(r!=null&&r.includes(t))}});var sa=x(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.default=VL;var ML=ru(),RL=su(),qL=gd(),UL=an();function VL(e,t,r){return t?(0,RL.default)(t.type,e)?r===void 0?!0:(0,ML.default)(t,r):!r&&t.type==="Placeholder"&&e in UL.FLIPPED_ALIAS_KEYS?(0,qL.default)(t.expectedNode,e):!1:!1}});var bT=x(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.isIdentifierChar=gT;yo.isIdentifierName=HL;yo.isIdentifierStart=yT;var Td="\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-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\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",hT="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\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",$L=new RegExp("["+Td+"]"),WL=new RegExp("["+Td+hT+"]");Td=hT=null;var mT=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,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,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,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,229,29,3,0,496,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],KL=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function Ed(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 yT(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&$L.test(String.fromCharCode(e)):Ed(e,mT)}function gT(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&&WL.test(String.fromCharCode(e)):Ed(e,mT)||Ed(e,KL)}function HL(e){let t=!0;for(let r=0;r{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.isKeyword=zL;fi.isReservedWord=ET;fi.isStrictBindOnlyReservedWord=xT;fi.isStrictBindReservedWord=JL;fi.isStrictReservedWord=TT;var xd={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"]},GL=new Set(xd.keyword),XL=new Set(xd.strict),YL=new Set(xd.strictBind);function ET(e,t){return t&&e==="await"||e==="enum"}function TT(e,t){return ET(e,t)||XL.has(e)}function xT(e){return YL.has(e)}function JL(e,t){return TT(e,t)||xT(e)}function zL(e){return GL.has(e)}});var ia=x(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Object.defineProperty(Rn,"isIdentifierChar",{enumerable:!0,get:function(){return Sd.isIdentifierChar}});Object.defineProperty(Rn,"isIdentifierName",{enumerable:!0,get:function(){return Sd.isIdentifierName}});Object.defineProperty(Rn,"isIdentifierStart",{enumerable:!0,get:function(){return Sd.isIdentifierStart}});Object.defineProperty(Rn,"isKeyword",{enumerable:!0,get:function(){return go.isKeyword}});Object.defineProperty(Rn,"isReservedWord",{enumerable:!0,get:function(){return go.isReservedWord}});Object.defineProperty(Rn,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return go.isStrictBindOnlyReservedWord}});Object.defineProperty(Rn,"isStrictBindReservedWord",{enumerable:!0,get:function(){return go.isStrictBindReservedWord}});Object.defineProperty(Rn,"isStrictReservedWord",{enumerable:!0,get:function(){return go.isStrictReservedWord}});var Sd=bT(),go=ST()});var aa=x(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.default=QL;var vd=ia();function QL(e,t=!0){return typeof e!="string"||t&&((0,vd.isKeyword)(e)||(0,vd.isStrictReservedWord)(e,!0))?!1:(0,vd.isIdentifierName)(e)}});var CT=x(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.readCodePoint=AT;bo.readInt=PT;bo.readStringContents=e6;var ZL=function(t){return t>=48&&t<=57},vT={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},iu={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 e6(e,t,r,n,s,i){let a=r,o=n,l=s,u="",c=null,p=r,{length:d}=t;for(;;){if(r>=d){i.unterminated(a,o,l),u+=t.slice(p,r);break}let m=t.charCodeAt(r);if(t6(e,m,t,r)){u+=t.slice(p,r);break}if(m===92){u+=t.slice(p,r);let g=r6(t,r,n,s,e==="template",i);g.ch===null&&!c?c={pos:r,lineStart:n,curLine:s}:u+=g.ch,{pos:r,lineStart:n,curLine:s}=g,p=r}else m===8232||m===8233?(++r,++s,n=r):m===10||m===13?e==="template"?(u+=t.slice(p,r)+` `,++r,m===13&&t.charCodeAt(r)===10&&++r,++s,p=n=r):i.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:n,curLine:s,containsInvalid:!!c}}function t6(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function r6(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}=Ad(e,t,r,n,2,!1,a,i),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=AT(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,p=/^[0-7]+/.exec(e.slice(u,t+2))[0],d=parseInt(p,8);d>255&&(p=p.slice(0,-1),d=parseInt(p,8)),t+=p.length-1;let m=e.charCodeAt(t);if(p!=="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 Ad(e,t,r,n,s,i,a,o){let l=t,u;return{n:u,pos:t}=PT(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 PT(e,t,r,n,s,i,a,o,l,u){let c=t,p=s===16?vT.hex:vT.decBinOct,d=s===16?iu.hex:s===10?iu.dec:s===8?iu.oct:iu.bin,m=!1,g=0;for(let f=0,b=i==null?1/0:i;f=97?w=T-97+10:T>=65?w=T-65+10:ZL(T)?w=T-48:w=1/0,w>=s){if(w<=9&&u)return{n:null,pos:t};if(w<=9&&l.invalidDigit(t,r,n,s))w=0;else if(a)w=0,m=!0;else break}++t,g=g*s+w}return t===c||i!=null&&t-c!==i||m?{n:null,pos:t}:{n:g,pos:t}}function AT(e,t,r,n,s,i){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Ad(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}=Ad(e,t,r,n,4,!1,s,i));return{code:o,pos:t}}});var oa=x(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.UPDATE_OPERATORS=He.UNARY_OPERATORS=He.STRING_UNARY_OPERATORS=He.STATEMENT_OR_BLOCK_KEYS=He.NUMBER_UNARY_OPERATORS=He.NUMBER_BINARY_OPERATORS=He.LOGICAL_OPERATORS=He.INHERIT_KEYS=He.FOR_INIT_KEYS=He.FLATTENABLE_KEYS=He.EQUALITY_BINARY_OPERATORS=He.COMPARISON_BINARY_OPERATORS=He.COMMENT_KEYS=He.BOOLEAN_UNARY_OPERATORS=He.BOOLEAN_NUMBER_BINARY_OPERATORS=He.BOOLEAN_BINARY_OPERATORS=He.BINARY_OPERATORS=He.ASSIGNMENT_OPERATORS=void 0;var Kxe=He.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],Hxe=He.FLATTENABLE_KEYS=["body","expressions"],Gxe=He.FOR_INIT_KEYS=["left","init"],Xxe=He.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],n6=He.LOGICAL_OPERATORS=["||","&&","??"],Yxe=He.UPDATE_OPERATORS=["++","--"],s6=He.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],i6=He.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],a6=He.COMPARISON_BINARY_OPERATORS=[...i6,"in","instanceof"],o6=He.BOOLEAN_BINARY_OPERATORS=[...a6,...s6],DT=He.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],Jxe=He.BINARY_OPERATORS=["+",...DT,...o6,"|>"],zxe=He.ASSIGNMENT_OPERATORS=["=","+=",...DT.map(e=>e+"="),...n6.map(e=>e+"=")],l6=He.BOOLEAN_UNARY_OPERATORS=["delete","!"],u6=He.NUMBER_UNARY_OPERATORS=["+","-","~"],c6=He.STRING_UNARY_OPERATORS=["typeof"],Qxe=He.UNARY_OPERATORS=["void","throw",...l6,...u6,...c6],Zxe=He.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]};He.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),He.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var qn=x(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.allExpandedTypes=at.VISITOR_KEYS=at.NODE_PARENT_VALIDATIONS=at.NODE_FIELDS=at.FLIPPED_ALIAS_KEYS=at.DEPRECATED_KEYS=at.BUILDER_KEYS=at.ALIAS_KEYS=void 0;at.arrayOf=IT;at.arrayOfType=_T;at.assertEach=NT;at.assertNodeOrValueType=v6;at.assertNodeType=ou;at.assertOneOf=x6;at.assertOptionalChainStart=A6;at.assertShape=P6;at.assertValueType=Id;at.chain=OT;at.default=BT;at.defineAliasedType=w6;at.validate=wd;at.validateArrayOfType=T6;at.validateOptional=b6;at.validateOptionalType=E6;at.validateType=g6;var wT=sa(),Eo=lu(),p6=at.VISITOR_KEYS={},f6=at.ALIAS_KEYS={},Cd=at.FLIPPED_ALIAS_KEYS={},d6=at.NODE_FIELDS={},h6=at.BUILDER_KEYS={},m6=at.DEPRECATED_KEYS={},y6=at.NODE_PARENT_VALIDATIONS={};function au(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function wd(e){return{validate:e}}function g6(...e){return wd(ou(...e))}function b6(e){return{validate:e,optional:!0}}function E6(...e){return{validate:ou(...e),optional:!0}}function IT(e){return OT(Id("array"),NT(e))}function _T(...e){return IT(ou(...e))}function T6(...e){return wd(_T(...e))}function NT(e){let t=process.env.BABEL_TYPES_8_BREAKING?Eo.validateChild:()=>{};function r(n,s,i){if(!Array.isArray(i))return;let a=0,o={toString(){return`${s}[${a}]`}};for(;a=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var C6=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),D6=new Set(["default","optional","deprecated","validate"]),Dd={};function w6(...e){return(t,r={})=>{let n=r.aliases;if(!n){var s;r.inherits&&(n=(s=Dd[r.inherits].aliases)==null?void 0:s.slice()),n!=null||(n=[]),r.aliases=n}let i=e.filter(a=>!n.includes(a));n.unshift(...i),BT(t,r)}}function BT(e,t={}){let r=t.inherits&&Dd[t.inherits]||{},n=t.fields;if(!n&&(n={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let u=r.fields[l],c=u.default;if(Array.isArray(c)?c.length>0:c&&typeof c=="object")throw new Error("field defaults can only be primitives or empty arrays currently");n[l]={default:Array.isArray(c)?[]:c,optional:u.optional,deprecated:u.deprecated,validate:u.validate}}}let s=t.visitor||r.visitor||[],i=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(!C6.has(o))throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(m6[t.deprecatedAlias]=e);for(let o of s.concat(a))n[o]=n[o]||{};for(let o of Object.keys(n)){let l=n[o];l.default!==void 0&&!a.includes(o)&&(l.optional=!0),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=Id(au(l.default)));for(let u of Object.keys(l))if(!D6.has(u))throw new Error(`Unknown field key "${u}" on ${e}.${o}`)}p6[e]=t.visitor=s,h6[e]=t.builder=a,d6[e]=t.fields=n,f6[e]=t.aliases=i,i.forEach(o=>{Cd[o]=Cd[o]||[],Cd[o].push(e)}),t.validate&&(y6[e]=t.validate),Dd[e]=t}});var To=x(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.patternLikeCommon=vr.importAttributes=vr.functionTypeAnnotationCommon=vr.functionDeclarationCommon=vr.functionCommon=vr.classMethodOrPropertyCommon=vr.classMethodOrDeclareMethodCommon=void 0;var Nr=sa(),I6=aa(),kT=ia(),_6=CT(),la=oa(),D=qn(),oe=(0,D.defineAliasedType)("Standardized");oe("ArrayExpression",{fields:{elements:{validate:(0,D.arrayOf)((0,D.assertNodeOrValueType)("null","Expression","SpreadElement")),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});oe("AssignmentExpression",{fields:{operator:{validate:process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(){let e=(0,D.assertOneOf)(...la.ASSIGNMENT_OPERATORS),t=(0,D.assertOneOf)("=");return function(r,n,s){((0,Nr.default)("Pattern",r.left)?t:e)(r,n,s)}}(),{oneOf:la.ASSIGNMENT_OPERATORS}):(0,D.assertValueType)("string")},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,D.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,D.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});oe("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,D.assertOneOf)(...la.BINARY_OPERATORS)},left:{validate:function(){let e=(0,D.assertNodeType)("Expression"),t=(0,D.assertNodeType)("Expression","PrivateName");return Object.assign(function(n,s,i){(n.operator==="in"?t:e)(n,s,i)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,D.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});oe("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,D.assertValueType)("string")}}});oe("Directive",{visitor:["value"],fields:{value:{validate:(0,D.assertNodeType)("DirectiveLiteral")}}});oe("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,D.assertValueType)("string")}}});oe("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,D.arrayOfType)("Directive"),default:[]},body:(0,D.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]});oe("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,D.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});oe("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,D.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,D.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,D.assertNodeType)("TypeParameterInstantiation"),optional:!0}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,D.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,D.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});oe("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,D.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,D.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});oe("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,D.assertNodeType)("Expression")},consequent:{validate:(0,D.assertNodeType)("Expression")},alternate:{validate:(0,D.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});oe("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,D.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});oe("DebuggerStatement",{aliases:["Statement"]});oe("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,D.assertNodeType)("Expression")},body:{validate:(0,D.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});oe("EmptyStatement",{aliases:["Statement"]});oe("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,D.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});oe("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,D.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.assertEach)((0,D.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,D.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});oe("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,D.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,D.assertNodeType)("Expression")},body:{validate:(0,D.assertNodeType)("Statement")}}});oe("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,D.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,D.assertNodeType)("Expression"),optional:!0},update:{validate:(0,D.assertNodeType)("Expression"),optional:!0},body:{validate:(0,D.assertNodeType)("Statement")}}});var ua=()=>({params:(0,D.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});vr.functionCommon=ua;var di=()=>({returnType:{validate:(0,D.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,D.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});vr.functionTypeAnnotationCommon=di;var FT=()=>Object.assign({},ua(),{declare:{validate:(0,D.assertValueType)("boolean"),optional:!0},id:{validate:(0,D.assertNodeType)("Identifier"),optional:!0}});vr.functionDeclarationCommon=FT;oe("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},FT(),di(),{body:{validate:(0,D.assertNodeType)("BlockStatement")},predicate:{validate:(0,D.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){let e=(0,D.assertNodeType)("Identifier");return function(t,r,n){(0,Nr.default)("ExportDefaultDeclaration",t)||e(n,"id",n.id)}}():void 0});oe("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},ua(),di(),{id:{validate:(0,D.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,D.assertNodeType)("BlockStatement")},predicate:{validate:(0,D.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var ca=()=>({typeAnnotation:{validate:(0,D.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,D.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,D.arrayOfType)("Decorator"),optional:!0}});vr.patternLikeCommon=ca;oe("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},ca(),{name:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.chain)((0,D.assertValueType)("string"),Object.assign(function(e,t,r){if(!(0,I6.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"})):(0,D.assertValueType)("string")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t,r){let n=/\.(\w+)$/.exec(t.toString());if(!n)return;let[,s]=n,i={computed:!1};if(s==="property"){if((0,Nr.default)("MemberExpression",e,i)||(0,Nr.default)("OptionalMemberExpression",e,i))return}else if(s==="key"){if((0,Nr.default)("Property",e,i)||(0,Nr.default)("Method",e,i))return}else if(s==="exported"){if((0,Nr.default)("ExportSpecifier",e))return}else if(s==="imported"){if((0,Nr.default)("ImportSpecifier",e,{imported:r}))return}else if(s==="meta"&&(0,Nr.default)("MetaProperty",e,{meta:r}))return;if(((0,kT.isKeyword)(r.name)||(0,kT.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}:void 0});oe("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,D.assertNodeType)("Expression")},consequent:{validate:(0,D.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,D.assertNodeType)("Statement")}}});oe("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,D.assertNodeType)("Identifier")},body:{validate:(0,D.assertNodeType)("Statement")}}});oe("StringLiteral",{builder:["value"],fields:{value:{validate:(0,D.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});oe("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,D.chain)((0,D.assertValueType)("number"),Object.assign(function(e,t,r){if(1/r<0||!Number.isFinite(r)){let n=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});oe("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});oe("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,D.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});oe("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,D.assertValueType)("string")},flags:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.chain)((0,D.assertValueType)("string"),Object.assign(function(e,t,r){let n=/[^gimsuy]/.exec(r);if(n)throw new TypeError(`"${n[0]}" is not a valid RegExp flag`)},{type:"string"})):(0,D.assertValueType)("string"),default:""}}});oe("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,D.assertOneOf)(...la.LOGICAL_OPERATORS)},left:{validate:(0,D.assertNodeType)("Expression")},right:{validate:(0,D.assertNodeType)("Expression")}}});oe("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],fields:Object.assign({object:{validate:(0,D.assertNodeType)("Expression","Super")},property:{validate:function(){let e=(0,D.assertNodeType)("Identifier","PrivateName"),t=(0,D.assertNodeType)("Expression"),r=function(n,s,i){(n.computed?t:e)(n,s,i)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,D.assertValueType)("boolean"),optional:!0}})});oe("NewExpression",{inherits:"CallExpression"});oe("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,D.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,D.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,D.arrayOfType)("Directive"),default:[]},body:(0,D.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]});oe("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,D.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}});oe("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},ua(),di(),{kind:Object.assign({validate:(0,D.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){let e=(0,D.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,D.assertNodeType)("Expression"),r=function(n,s,i){(n.computed?t:e)(n,s,i)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0,D.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,D.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});oe("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){let e=(0,D.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,D.assertNodeType)("Expression");return Object.assign(function(n,s,i){(n.computed?t:e)(n,s,i)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,D.assertNodeType)("Expression","PatternLike")},shorthand:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.chain)((0,D.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r){if(e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,Nr.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}},{type:"boolean"})):(0,D.assertValueType)("boolean"),default:!1},decorators:{validate:(0,D.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:process.env.BABEL_TYPES_8_BREAKING?function(){let e=(0,D.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,D.assertNodeType)("Expression");return function(r,n,s){((0,Nr.default)("ObjectPattern",r)?e:t)(s,"value",s.value)}}():void 0});oe("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},ca(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,D.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:process.env.BABEL_TYPES_8_BREAKING?function(e,t){let r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw new Error("Internal Babel error: malformed key.");let[,n,s]=r;if(e[n].length>+s+1)throw new TypeError(`RestElement must be last element of ${n}`)}:void 0});oe("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,D.assertNodeType)("Expression"),optional:!0}}});oe("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,D.validateArrayOfType)("Expression")},aliases:["Expression"]});oe("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,D.assertNodeType)("Expression")}}});oe("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,D.assertNodeType)("Expression"),optional:!0},consequent:(0,D.validateArrayOfType)("Statement")}});oe("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,D.assertNodeType)("Expression")},cases:(0,D.validateArrayOfType)("SwitchCase")}});oe("ThisExpression",{aliases:["Expression"]});oe("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,D.assertNodeType)("Expression")}}});oe("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.chain)((0,D.assertNodeType)("BlockStatement"),Object.assign(function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]})):(0,D.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,D.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,D.assertNodeType)("BlockStatement")}}});oe("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,D.assertNodeType)("Expression")},operator:{validate:(0,D.assertOneOf)(...la.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});oe("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.assertNodeType)("Identifier","MemberExpression"):(0,D.assertNodeType)("Expression")},operator:{validate:(0,D.assertOneOf)(...la.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});oe("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,D.assertValueType)("boolean"),optional:!0},kind:{validate:(0,D.assertOneOf)("var","let","const","using","await using")},declarations:(0,D.validateArrayOfType)("VariableDeclarator")},validate:process.env.BABEL_TYPES_8_BREAKING?(()=>{let e=(0,D.assertNodeType)("Identifier","Placeholder"),t=(0,D.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),r=(0,D.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(n,s,i){let{kind:a,declarations:o}=i,l=(0,Nr.default)("ForXStatement",n,{left:i});if(l&&o.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${n.type}`);for(let u of o)a==="const"||a==="let"||a==="var"?!l&&!u.init?e(u,"id",u.id):t(u,"id",u.id):r(u,"id",u.id)}})():void 0});oe("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,D.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,D.assertValueType)("boolean")},init:{optional:!0,validate:(0,D.assertNodeType)("Expression")}}});oe("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,D.assertNodeType)("Expression")},body:{validate:(0,D.assertNodeType)("Statement")}}});oe("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,D.assertNodeType)("Expression")},body:{validate:(0,D.assertNodeType)("Statement")}}});oe("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},ca(),{left:{validate:(0,D.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,D.assertNodeType)("Expression")},decorators:{validate:(0,D.arrayOfType)("Decorator"),optional:!0}})});oe("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},ca(),{elements:{validate:(0,D.chain)((0,D.assertValueType)("array"),(0,D.assertEach)((0,D.assertNodeOrValueType)("null","PatternLike")))}})});oe("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},ua(),di(),{expression:{validate:(0,D.assertValueType)("boolean")},body:{validate:(0,D.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,D.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});oe("ClassBody",{visitor:["body"],fields:{body:(0,D.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}});oe("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,D.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,D.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,D.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,D.assertNodeType)("Expression")},superTypeParameters:{validate:(0,D.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,D.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,D.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,D.assertNodeType)("InterfaceExtends"),optional:!0}}});oe("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,D.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,D.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,D.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,D.assertNodeType)("Expression")},superTypeParameters:{validate:(0,D.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,D.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,D.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,D.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,D.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,D.assertValueType)("boolean"),optional:!0}},validate:process.env.BABEL_TYPES_8_BREAKING?function(){let e=(0,D.assertNodeType)("Identifier");return function(t,r,n){(0,Nr.default)("ExportDefaultDeclaration",t)||e(n,"id",n.id)}}():void 0});var _d=vr.importAttributes={attributes:{optional:!0,validate:(0,D.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,D.arrayOfType)("ImportAttribute")}};oe("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,D.assertNodeType)("StringLiteral")},exportKind:(0,D.validateOptional)((0,D.assertOneOf)("type","value"))},_d)});oe("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,D.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,D.validateOptional)((0,D.assertOneOf)("value"))}});oe("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.chain)((0,D.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw new TypeError("Cannot export a declaration from a source")},{oneOfNodeTypes:["Declaration"]})):(0,D.assertNodeType)("Declaration")}},_d,{specifiers:{default:[],validate:(0,D.arrayOf)(function(){let e=(0,D.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,D.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?Object.assign(function(r,n,s){(r.source?e:t)(r,n,s)},{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e}())},source:{validate:(0,D.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,D.validateOptional)((0,D.assertOneOf)("type","value"))})});oe("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,D.assertNodeType)("Identifier")},exported:{validate:(0,D.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,D.assertOneOf)("type","value"),optional:!0}}});oe("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,D.assertNodeType)("VariableDeclaration","LVal");let e=(0,D.assertNodeType)("VariableDeclaration"),t=(0,D.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign(function(r,n,s){(0,Nr.default)("VariableDeclaration",s)?e(r,n,s):t(r,n,s)},{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,D.assertNodeType)("Expression")},body:{validate:(0,D.assertNodeType)("Statement")},await:{default:!1}}});oe("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},_d,{module:{optional:!0,validate:(0,D.assertValueType)("boolean")},phase:{default:null,validate:(0,D.assertOneOf)("source","defer")},specifiers:(0,D.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,D.assertNodeType)("StringLiteral")},importKind:{validate:(0,D.assertOneOf)("type","typeof","value"),optional:!0}})});oe("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,D.assertNodeType)("Identifier")}}});oe("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,D.assertNodeType)("Identifier")}}});oe("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,D.assertNodeType)("Identifier")},imported:{validate:(0,D.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,D.assertOneOf)("type","typeof","value"),optional:!0}}});oe("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,D.assertOneOf)("source","defer")},source:{validate:(0,D.assertNodeType)("Expression")},options:{validate:(0,D.assertNodeType)("Expression"),optional:!0}}});oe("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.chain)((0,D.assertNodeType)("Identifier"),Object.assign(function(e,t,r){let n;switch(r.name){case"function":n="sent";break;case"new":n="target";break;case"import":n="meta";break}if(!(0,Nr.default)("Identifier",e.property,{name:n}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]})):(0,D.assertNodeType)("Identifier")},property:{validate:(0,D.assertNodeType)("Identifier")}}});var uu=()=>({abstract:{validate:(0,D.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,D.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,D.assertValueType)("boolean"),optional:!0},key:{validate:(0,D.chain)(function(){let e=(0,D.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,D.assertNodeType)("Expression");return function(r,n,s){(r.computed?t:e)(r,n,s)}}(),(0,D.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});vr.classMethodOrPropertyCommon=uu;var Nd=()=>Object.assign({},ua(),uu(),{params:(0,D.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,D.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,D.chain)((0,D.assertValueType)("string"),(0,D.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,D.arrayOfType)("Decorator"),optional:!0}});vr.classMethodOrDeclareMethodCommon=Nd;oe("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},Nd(),di(),{body:{validate:(0,D.assertNodeType)("BlockStatement")}})});oe("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},ca(),{properties:(0,D.validateArrayOfType)("RestElement","ObjectProperty")})});oe("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,D.assertNodeType)("Expression")}}});oe("Super",{aliases:["Expression"]});oe("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,D.assertNodeType)("Expression")},quasi:{validate:(0,D.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,D.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});oe("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,D.chain)((0,D.assertShape)({raw:{validate:(0,D.assertValueType)("string")},cooked:{validate:(0,D.assertValueType)("string"),optional:!0}}),function(t){let r=t.value.raw,n=!1,s=()=>{throw new Error("Internal @babel/types error.")},{str:i,firstInvalidLoc:a}=(0,_6.readStringContents)("template",r,0,0,0,{unterminated(){n=!0},strictNumericEscape:s,invalidEscapeSequence:s,numericSeparatorInEscapeSequence:s,unexpectedNumericSeparator:s,invalidDigit:s,invalidCodePoint:s});if(!n)throw new Error("Invalid raw");t.value.cooked=a?null:i})},tail:{default:!1}}});oe("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,D.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,D.chain)((0,D.assertValueType)("array"),(0,D.assertEach)((0,D.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions. Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});oe("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.chain)((0,D.assertValueType)("boolean"),Object.assign(function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})):(0,D.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,D.assertNodeType)("Expression")}}});oe("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,D.assertNodeType)("Expression")}}});oe("Import",{aliases:["Expression"]});oe("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,D.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});oe("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,D.assertNodeType)("Identifier")}}});oe("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,D.assertNodeType)("Expression")},property:{validate:function(){let e=(0,D.assertNodeType)("Identifier"),t=(0,D.assertNodeType)("Expression");return Object.assign(function(n,s,i){(n.computed?t:e)(n,s,i)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.chain)((0,D.assertValueType)("boolean"),(0,D.assertOptionalChainStart)()):(0,D.assertValueType)("boolean")}}});oe("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,D.assertNodeType)("Expression")},arguments:(0,D.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,D.chain)((0,D.assertValueType)("boolean"),(0,D.assertOptionalChainStart)()):(0,D.assertValueType)("boolean")},typeArguments:{validate:(0,D.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,D.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});oe("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},uu(),{value:{validate:(0,D.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,D.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,D.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,D.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,D.assertValueType)("boolean"),optional:!0},declare:{validate:(0,D.assertValueType)("boolean"),optional:!0},variance:{validate:(0,D.assertNodeType)("Variance"),optional:!0}})});oe("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},uu(),{key:{validate:(0,D.chain)(function(){let e=(0,D.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,D.assertNodeType)("Expression");return function(r,n,s){(r.computed?t:e)(r,n,s)}}(),(0,D.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,D.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,D.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,D.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,D.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,D.assertValueType)("boolean"),optional:!0},declare:{validate:(0,D.assertValueType)("boolean"),optional:!0},variance:{validate:(0,D.assertNodeType)("Variance"),optional:!0}})});oe("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,D.assertNodeType)("PrivateName")},value:{validate:(0,D.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,D.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,D.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,D.assertValueType)("boolean"),default:!1},readonly:{validate:(0,D.assertValueType)("boolean"),optional:!0},optional:{validate:(0,D.assertValueType)("boolean"),optional:!0},definite:{validate:(0,D.assertValueType)("boolean"),optional:!0},variance:{validate:(0,D.assertNodeType)("Variance"),optional:!0}}});oe("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},Nd(),di(),{kind:{validate:(0,D.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,D.assertNodeType)("PrivateName")},body:{validate:(0,D.assertNodeType)("BlockStatement")}})});oe("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,D.assertNodeType)("Identifier")}}});oe("StaticBlock",{visitor:["body"],fields:{body:(0,D.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]});oe("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,D.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,D.assertNodeType)("StringLiteral")}}})});var jT=x(()=>{"use strict";var LT=To(),M=qn(),Pe=(0,M.defineAliasedType)("Flow"),Od=e=>{let t=e==="DeclareClass";Pe(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,M.validateType)("Identifier"),typeParameters:(0,M.validateOptionalType)("TypeParameterDeclaration"),extends:(0,M.validateOptional)((0,M.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,M.validateOptional)((0,M.arrayOfType)("InterfaceExtends")),implements:(0,M.validateOptional)((0,M.arrayOfType)("ClassImplements"))}:{},{body:(0,M.validateType)("ObjectTypeAnnotation")})})};Pe("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Pe("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,M.validateType)("FlowType")}});Pe("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Pe("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,M.validate)((0,M.assertValueType)("boolean"))}});Pe("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Pe("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,M.validateType)("Identifier"),typeParameters:(0,M.validateOptionalType)("TypeParameterInstantiation")}});Od("DeclareClass");Pe("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,M.validateType)("Identifier"),predicate:(0,M.validateOptionalType)("DeclaredPredicate")}});Od("DeclareInterface");Pe("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,M.validateType)("Identifier","StringLiteral"),body:(0,M.validateType)("BlockStatement"),kind:(0,M.validateOptional)((0,M.assertOneOf)("CommonJS","ES"))}});Pe("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,M.validateType)("TypeAnnotation")}});Pe("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,M.validateType)("Identifier"),typeParameters:(0,M.validateOptionalType)("TypeParameterDeclaration"),right:(0,M.validateType)("FlowType")}});Pe("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,M.validateType)("Identifier"),typeParameters:(0,M.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,M.validateOptionalType)("FlowType"),impltype:(0,M.validateOptionalType)("FlowType")}});Pe("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,M.validateType)("Identifier")}});Pe("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,M.validateOptionalType)("Flow"),specifiers:(0,M.validateOptional)((0,M.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,M.validateOptionalType)("StringLiteral"),default:(0,M.validateOptional)((0,M.assertValueType)("boolean"))},LT.importAttributes)});Pe("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,M.validateType)("StringLiteral"),exportKind:(0,M.validateOptional)((0,M.assertOneOf)("type","value"))},LT.importAttributes)});Pe("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,M.validateType)("Flow")}});Pe("ExistsTypeAnnotation",{aliases:["FlowType"]});Pe("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,M.validateOptionalType)("TypeParameterDeclaration"),params:(0,M.validateArrayOfType)("FunctionTypeParam"),rest:(0,M.validateOptionalType)("FunctionTypeParam"),this:(0,M.validateOptionalType)("FunctionTypeParam"),returnType:(0,M.validateType)("FlowType")}});Pe("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,M.validateOptionalType)("Identifier"),typeAnnotation:(0,M.validateType)("FlowType"),optional:(0,M.validateOptional)((0,M.assertValueType)("boolean"))}});Pe("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,M.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,M.validateOptionalType)("TypeParameterInstantiation")}});Pe("InferredPredicate",{aliases:["FlowPredicate"]});Pe("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,M.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,M.validateOptionalType)("TypeParameterInstantiation")}});Od("InterfaceDeclaration");Pe("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,M.validateOptional)((0,M.arrayOfType)("InterfaceExtends")),body:(0,M.validateType)("ObjectTypeAnnotation")}});Pe("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,M.validate)((0,M.arrayOfType)("FlowType"))}});Pe("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Pe("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Pe("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,M.validateType)("FlowType")}});Pe("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,M.validate)((0,M.assertValueType)("number"))}});Pe("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Pe("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,M.validate)((0,M.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,M.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,M.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,M.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,M.assertValueType)("boolean"),default:!1},inexact:(0,M.validateOptional)((0,M.assertValueType)("boolean"))}});Pe("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,M.validateType)("Identifier"),value:(0,M.validateType)("FlowType"),optional:(0,M.validate)((0,M.assertValueType)("boolean")),static:(0,M.validate)((0,M.assertValueType)("boolean")),method:(0,M.validate)((0,M.assertValueType)("boolean"))}});Pe("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,M.validateType)("FlowType"),static:(0,M.validate)((0,M.assertValueType)("boolean"))}});Pe("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,M.validateOptionalType)("Identifier"),key:(0,M.validateType)("FlowType"),value:(0,M.validateType)("FlowType"),static:(0,M.validate)((0,M.assertValueType)("boolean")),variance:(0,M.validateOptionalType)("Variance")}});Pe("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,M.validateType)("Identifier","StringLiteral"),value:(0,M.validateType)("FlowType"),kind:(0,M.validate)((0,M.assertOneOf)("init","get","set")),static:(0,M.validate)((0,M.assertValueType)("boolean")),proto:(0,M.validate)((0,M.assertValueType)("boolean")),optional:(0,M.validate)((0,M.assertValueType)("boolean")),variance:(0,M.validateOptionalType)("Variance"),method:(0,M.validate)((0,M.assertValueType)("boolean"))}});Pe("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,M.validateType)("FlowType")}});Pe("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,M.validateType)("Identifier"),typeParameters:(0,M.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,M.validateOptionalType)("FlowType"),impltype:(0,M.validateType)("FlowType")}});Pe("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,M.validateType)("Identifier"),qualification:(0,M.validateType)("Identifier","QualifiedTypeIdentifier")}});Pe("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,M.validate)((0,M.assertValueType)("string"))}});Pe("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Pe("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Pe("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Pe("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,M.validate)((0,M.arrayOfType)("FlowType"))}});Pe("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,M.validateType)("FlowType")}});Pe("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,M.validateType)("Identifier"),typeParameters:(0,M.validateOptionalType)("TypeParameterDeclaration"),right:(0,M.validateType)("FlowType")}});Pe("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,M.validateType)("FlowType")}});Pe("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,M.validateType)("Expression"),typeAnnotation:(0,M.validateType)("TypeAnnotation")}});Pe("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,M.validate)((0,M.assertValueType)("string")),bound:(0,M.validateOptionalType)("TypeAnnotation"),default:(0,M.validateOptionalType)("FlowType"),variance:(0,M.validateOptionalType)("Variance")}});Pe("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,M.validate)((0,M.arrayOfType)("TypeParameter"))}});Pe("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,M.validate)((0,M.arrayOfType)("FlowType"))}});Pe("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,M.validate)((0,M.arrayOfType)("FlowType"))}});Pe("Variance",{builder:["kind"],fields:{kind:(0,M.validate)((0,M.assertOneOf)("minus","plus"))}});Pe("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});Pe("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,M.validateType)("Identifier"),body:(0,M.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}});Pe("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,M.validate)((0,M.assertValueType)("boolean")),members:(0,M.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,M.validate)((0,M.assertValueType)("boolean"))}});Pe("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,M.validate)((0,M.assertValueType)("boolean")),members:(0,M.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,M.validate)((0,M.assertValueType)("boolean"))}});Pe("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,M.validate)((0,M.assertValueType)("boolean")),members:(0,M.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,M.validate)((0,M.assertValueType)("boolean"))}});Pe("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,M.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,M.validate)((0,M.assertValueType)("boolean"))}});Pe("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,M.validateType)("Identifier"),init:(0,M.validateType)("BooleanLiteral")}});Pe("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,M.validateType)("Identifier"),init:(0,M.validateType)("NumericLiteral")}});Pe("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,M.validateType)("Identifier"),init:(0,M.validateType)("StringLiteral")}});Pe("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,M.validateType)("Identifier")}});Pe("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,M.validateType)("FlowType"),indexType:(0,M.validateType)("FlowType")}});Pe("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,M.validateType)("FlowType"),indexType:(0,M.validateType)("FlowType"),optional:(0,M.validate)((0,M.assertValueType)("boolean"))}})});var MT=x(()=>{"use strict";var Mt=qn(),Or=(0,Mt.defineAliasedType)("JSX");Or("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,Mt.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,Mt.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});Or("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,Mt.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});Or("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,Mt.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,Mt.assertNodeType)("JSXClosingElement")},children:(0,Mt.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,Mt.assertValueType)("boolean"),optional:!0}})});Or("JSXEmptyExpression",{});Or("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,Mt.assertNodeType)("Expression","JSXEmptyExpression")}}});Or("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,Mt.assertNodeType)("Expression")}}});Or("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,Mt.assertValueType)("string")}}});Or("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,Mt.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,Mt.assertNodeType)("JSXIdentifier")}}});Or("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,Mt.assertNodeType)("JSXIdentifier")},name:{validate:(0,Mt.assertNodeType)("JSXIdentifier")}}});Or("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,Mt.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,Mt.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,Mt.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,Mt.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});Or("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,Mt.assertNodeType)("Expression")}}});Or("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,Mt.assertValueType)("string")}}});Or("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,Mt.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,Mt.assertNodeType)("JSXClosingFragment")},children:(0,Mt.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}});Or("JSXOpeningFragment",{aliases:["Immutable"]});Or("JSXClosingFragment",{aliases:["Immutable"]})});var Fd=x(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.PLACEHOLDERS_FLIPPED_ALIAS=Ns.PLACEHOLDERS_ALIAS=Ns.PLACEHOLDERS=void 0;var N6=qn(),O6=Ns.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],kd=Ns.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of O6){let t=N6.ALIAS_KEYS[e];t!=null&&t.length&&(kd[e]=t)}var Bd=Ns.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(kd).forEach(e=>{kd[e].forEach(t=>{hasOwnProperty.call(Bd,t)||(Bd[t]=[]),Bd[t].push(e)})})});var RT=x(()=>{"use strict";var cu=qn(),B6=Fd(),k6=To(),Ld=(0,cu.defineAliasedType)("Miscellaneous");Ld("Noop",{visitor:[]});Ld("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,cu.assertNodeType)("Identifier")},expectedNode:{validate:(0,cu.assertOneOf)(...B6.PLACEHOLDERS)}},(0,k6.patternLikeCommon)())});Ld("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,cu.assertValueType)("string")}}})});var qT=x(()=>{"use strict";var It=qn();(0,It.default)("ArgumentPlaceholder",{});(0,It.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,It.assertNodeType)("Expression")},callee:{validate:(0,It.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0,It.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,It.assertNodeType)("Expression")}}});(0,It.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,It.assertNodeType)("BlockStatement")},async:{validate:(0,It.assertValueType)("boolean"),default:!1}}});(0,It.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,It.assertNodeType)("Identifier")}}});(0,It.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,It.validateArrayOfType)("ObjectProperty","SpreadElement")}});(0,It.default)("TupleExpression",{fields:{elements:{validate:(0,It.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,It.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,It.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,It.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,It.assertNodeType)("Program")}},aliases:["Expression"]});(0,It.default)("TopicReference",{aliases:["Expression"]});(0,It.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,It.assertNodeType)("Expression")}},aliases:["Expression"]});(0,It.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,It.assertNodeType)("Expression")}},aliases:["Expression"]});(0,It.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]});(0,It.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})});var XT=x(()=>{"use strict";var Y=qn(),UT=To(),F6=sa(),Oe=(0,Y.defineAliasedType)("TypeScript"),$r=(0,Y.assertValueType)("boolean"),VT=()=>({returnType:{validate:(0,Y.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,Y.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});Oe("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,Y.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,Y.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,Y.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,Y.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,Y.arrayOfType)("Decorator"),optional:!0}}});Oe("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,UT.functionDeclarationCommon)(),VT())});Oe("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,UT.classMethodOrDeclareMethodCommon)(),VT())});Oe("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,Y.validateType)("TSEntityName"),right:(0,Y.validateType)("Identifier")}});var pu=()=>({typeParameters:(0,Y.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,Y.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,Y.validateOptionalType)("TSTypeAnnotation")}),$T={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:pu()};Oe("TSCallSignatureDeclaration",$T);Oe("TSConstructSignatureDeclaration",$T);var WT=()=>({key:(0,Y.validateType)("Expression"),computed:{default:!1},optional:(0,Y.validateOptional)($r)});Oe("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},WT(),{readonly:(0,Y.validateOptional)($r),typeAnnotation:(0,Y.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,Y.assertOneOf)("get","set")}})});Oe("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},pu(),WT(),{kind:{validate:(0,Y.assertOneOf)("method","get","set")}})});Oe("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,Y.validateOptional)($r),static:(0,Y.validateOptional)($r),parameters:(0,Y.validateArrayOfType)("Identifier"),typeAnnotation:(0,Y.validateOptionalType)("TSTypeAnnotation")}});var L6=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of L6)Oe(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});Oe("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var KT={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};Oe("TSFunctionType",Object.assign({},KT,{fields:pu()}));Oe("TSConstructorType",Object.assign({},KT,{fields:Object.assign({},pu(),{abstract:(0,Y.validateOptional)($r)})}));Oe("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,Y.validateType)("TSEntityName"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterInstantiation")}});Oe("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,Y.validateType)("Identifier","TSThisType"),typeAnnotation:(0,Y.validateOptionalType)("TSTypeAnnotation"),asserts:(0,Y.validateOptional)($r)}});Oe("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,Y.validateType)("TSEntityName","TSImportType"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterInstantiation")}});Oe("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,Y.validateArrayOfType)("TSTypeElement")}});Oe("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,Y.validateType)("TSType")}});Oe("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,Y.validateArrayOfType)("TSType","TSNamedTupleMember")}});Oe("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,Y.validateType)("TSType")}});Oe("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,Y.validateType)("TSType")}});Oe("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,Y.validateType)("Identifier"),optional:{validate:$r,default:!1},elementType:(0,Y.validateType)("TSType")}});var HT={aliases:["TSType"],visitor:["types"],fields:{types:(0,Y.validateArrayOfType)("TSType")}};Oe("TSUnionType",HT);Oe("TSIntersectionType",HT);Oe("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,Y.validateType)("TSType"),extendsType:(0,Y.validateType)("TSType"),trueType:(0,Y.validateType)("TSType"),falseType:(0,Y.validateType)("TSType")}});Oe("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,Y.validateType)("TSTypeParameter")}});Oe("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,Y.validateType)("TSType")}});Oe("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,Y.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,Y.validateType)("TSType")}});Oe("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,Y.validateType)("TSType"),indexType:(0,Y.validateType)("TSType")}});Oe("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,Y.validateType)("TSTypeParameter")},{readonly:(0,Y.validateOptional)((0,Y.assertOneOf)(!0,!1,"+","-")),optional:(0,Y.validateOptional)((0,Y.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,Y.validateOptionalType)("TSType"),nameType:(0,Y.validateOptionalType)("TSType")})});Oe("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,Y.validateArrayOfType)("TemplateElement"),types:{validate:(0,Y.chain)((0,Y.assertValueType)("array"),(0,Y.assertEach)((0,Y.assertNodeType)("TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types. Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});Oe("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let e=(0,Y.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,Y.assertOneOf)("-"),r=(0,Y.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function n(s,i,a){(0,F6.default)("UnaryExpression",a)?(t(a,"operator",a.operator),e(a,"argument",a.argument)):r(s,i,a)}return n.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],n}()}}});Oe("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,Y.validateType)("TSEntityName"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterInstantiation")}});Oe("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,Y.validateOptional)($r),id:(0,Y.validateType)("Identifier"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,Y.validateOptional)((0,Y.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,Y.validateType)("TSInterfaceBody")}});Oe("TSInterfaceBody",{visitor:["body"],fields:{body:(0,Y.validateArrayOfType)("TSTypeElement")}});Oe("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,Y.validateOptional)($r),id:(0,Y.validateType)("Identifier"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,Y.validateType)("TSType")}});Oe("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,Y.validateType)("Expression"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterInstantiation")}});var GT={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,Y.validateType)("Expression"),typeAnnotation:(0,Y.validateType)("TSType")}};Oe("TSAsExpression",GT);Oe("TSSatisfiesExpression",GT);Oe("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,Y.validateType)("TSType"),expression:(0,Y.validateType)("Expression")}});Oe("TSEnumBody",{visitor:["members"],fields:{members:(0,Y.validateArrayOfType)("TSEnumMember")}});Oe("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,Y.validateOptional)($r),const:(0,Y.validateOptional)($r),id:(0,Y.validateType)("Identifier"),members:(0,Y.validateArrayOfType)("TSEnumMember"),initializer:(0,Y.validateOptionalType)("Expression"),body:(0,Y.validateOptionalType)("TSEnumBody")}});Oe("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,Y.validateType)("Identifier","StringLiteral"),initializer:(0,Y.validateOptionalType)("Expression")}});Oe("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,Y.assertOneOf)("global","module","namespace")},declare:(0,Y.validateOptional)($r)},{global:(0,Y.validateOptional)($r)},{id:(0,Y.validateType)("Identifier","StringLiteral"),body:(0,Y.validateType)("TSModuleBlock","TSModuleDeclaration")})});Oe("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,Y.validateArrayOfType)("Statement")}});Oe("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,Y.validateType)("StringLiteral"),qualifier:(0,Y.validateOptionalType)("TSEntityName"),typeParameters:(0,Y.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,Y.assertNodeType)("ObjectExpression"),optional:!0}}});Oe("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,Y.validate)($r)},{id:(0,Y.validateType)("Identifier"),moduleReference:(0,Y.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,Y.assertOneOf)("type","value"),optional:!0}})});Oe("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,Y.validateType)("StringLiteral")}});Oe("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,Y.validateType)("Expression")}});Oe("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,Y.validateType)("Expression")}});Oe("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,Y.validateType)("Identifier")}});Oe("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,Y.assertNodeType)("TSType")}}});Oe("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,Y.validateArrayOfType)("TSType")}});Oe("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,Y.validateArrayOfType)("TSTypeParameter")}});Oe("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,Y.assertValueType)("string")},in:{validate:(0,Y.assertValueType)("boolean"),optional:!0},out:{validate:(0,Y.assertValueType)("boolean"),optional:!0},const:{validate:(0,Y.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,Y.assertNodeType)("TSType"),optional:!0},default:{validate:(0,Y.assertNodeType)("TSType"),optional:!0}}})});var YT=x(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.DEPRECATED_ALIASES=void 0;var hSe=fu.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var an=x(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Object.defineProperty(Br,"ALIAS_KEYS",{enumerable:!0,get:function(){return Wr.ALIAS_KEYS}});Object.defineProperty(Br,"BUILDER_KEYS",{enumerable:!0,get:function(){return Wr.BUILDER_KEYS}});Object.defineProperty(Br,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return jd.DEPRECATED_ALIASES}});Object.defineProperty(Br,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return Wr.DEPRECATED_KEYS}});Object.defineProperty(Br,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return Wr.FLIPPED_ALIAS_KEYS}});Object.defineProperty(Br,"NODE_FIELDS",{enumerable:!0,get:function(){return Wr.NODE_FIELDS}});Object.defineProperty(Br,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return Wr.NODE_PARENT_VALIDATIONS}});Object.defineProperty(Br,"PLACEHOLDERS",{enumerable:!0,get:function(){return Md.PLACEHOLDERS}});Object.defineProperty(Br,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return Md.PLACEHOLDERS_ALIAS}});Object.defineProperty(Br,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return Md.PLACEHOLDERS_FLIPPED_ALIAS}});Br.TYPES=void 0;Object.defineProperty(Br,"VISITOR_KEYS",{enumerable:!0,get:function(){return Wr.VISITOR_KEYS}});To();jT();MT();RT();qT();XT();var Wr=qn(),Md=Fd(),jd=YT();Object.keys(jd.DEPRECATED_ALIASES).forEach(e=>{Wr.FLIPPED_ALIAS_KEYS[e]=Wr.FLIPPED_ALIAS_KEYS[jd.DEPRECATED_ALIASES[e]]});for(let{types:e,set:t}of Wr.allExpandedTypes)for(let r of e){let n=Wr.FLIPPED_ALIAS_KEYS[r];n?n.forEach(t.add,t):t.add(r)}var ySe=Br.TYPES=[].concat(Object.keys(Wr.VISITOR_KEYS),Object.keys(Wr.FLIPPED_ALIAS_KEYS),Object.keys(Wr.DEPRECATED_KEYS))});var lu=x(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.default=j6;pa.validateChild=zT;pa.validateField=JT;pa.validateInternal=M6;var xo=an();function j6(e,t,r){if(!e)return;let n=xo.NODE_FIELDS[e.type];if(!n)return;let s=n[t];JT(e,t,r,s),zT(e,t,r)}function M6(e,t,r,n,s){if(e!=null&&e.validate&&!(e.optional&&n==null)&&(e.validate(t,r,n),s)){var i;let a=n.type;if(a==null)return;(i=xo.NODE_PARENT_VALIDATIONS[a])==null||i.call(xo.NODE_PARENT_VALIDATIONS,t,r,n)}}function JT(e,t,r,n){n!=null&&n.validate&&(n.optional&&r==null||n.validate(e,t,r))}function zT(e,t,r){var n;let s=r==null?void 0:r.type;s!=null&&((n=xo.NODE_PARENT_VALIDATIONS[s])==null||n.call(xo.NODE_PARENT_VALIDATIONS,e,t,r))}});var Rd=x(E=>{"use strict";Object.defineProperty(E,"__esModule",{value:!0});E.anyTypeAnnotation=bM;E.argumentPlaceholder=GR;E.arrayExpression=V6;E.arrayPattern=jj;E.arrayTypeAnnotation=EM;E.arrowFunctionExpression=Mj;E.assignmentExpression=$6;E.assignmentPattern=Lj;E.awaitExpression=aM;E.bigIntLiteral=U6;E.binaryExpression=W6;E.bindExpression=XR;E.blockStatement=X6;E.booleanLiteral=hj;E.booleanLiteralTypeAnnotation=xM;E.booleanTypeAnnotation=TM;E.breakStatement=Y6;E.callExpression=J6;E.catchClause=z6;E.classAccessorProperty=fM;E.classBody=Rj;E.classDeclaration=Uj;E.classExpression=qj;E.classImplements=vM;E.classMethod=Zj;E.classPrivateMethod=hM;E.classPrivateProperty=dM;E.classProperty=pM;E.conditionalExpression=Q6;E.continueStatement=Z6;E.debuggerStatement=ej;E.decimalLiteral=e5;E.declareClass=PM;E.declareExportAllDeclaration=BM;E.declareExportDeclaration=OM;E.declareFunction=AM;E.declareInterface=CM;E.declareModule=DM;E.declareModuleExports=wM;E.declareOpaqueType=_M;E.declareTypeAlias=IM;E.declareVariable=NM;E.declaredPredicate=kM;E.decorator=YR;E.directive=H6;E.directiveLiteral=G6;E.doExpression=JR;E.doWhileStatement=tj;E.emptyStatement=rj;E.emptyTypeAnnotation=KM;E.enumBooleanBody=ER;E.enumBooleanMember=vR;E.enumDeclaration=bR;E.enumDefaultedMember=CR;E.enumNumberBody=TR;E.enumNumberMember=PR;E.enumStringBody=xR;E.enumStringMember=AR;E.enumSymbolBody=SR;E.existsTypeAnnotation=FM;E.exportAllDeclaration=Vj;E.exportDefaultDeclaration=$j;E.exportDefaultSpecifier=zR;E.exportNamedDeclaration=Wj;E.exportNamespaceSpecifier=lM;E.exportSpecifier=Kj;E.expressionStatement=nj;E.file=sj;E.forInStatement=ij;E.forOfStatement=Hj;E.forStatement=aj;E.functionDeclaration=oj;E.functionExpression=lj;E.functionTypeAnnotation=LM;E.functionTypeParam=jM;E.genericTypeAnnotation=MM;E.identifier=uj;E.ifStatement=cj;E.import=oM;E.importAttribute=gM;E.importDeclaration=Gj;E.importDefaultSpecifier=Xj;E.importExpression=zj;E.importNamespaceSpecifier=Yj;E.importSpecifier=Jj;E.indexedAccessType=DR;E.inferredPredicate=RM;E.interfaceDeclaration=UM;E.interfaceExtends=qM;E.interfaceTypeAnnotation=VM;E.interpreterDirective=K6;E.intersectionTypeAnnotation=$M;E.jSXAttribute=E.jsxAttribute=IR;E.jSXClosingElement=E.jsxClosingElement=_R;E.jSXClosingFragment=E.jsxClosingFragment=$R;E.jSXElement=E.jsxElement=NR;E.jSXEmptyExpression=E.jsxEmptyExpression=OR;E.jSXExpressionContainer=E.jsxExpressionContainer=BR;E.jSXFragment=E.jsxFragment=UR;E.jSXIdentifier=E.jsxIdentifier=FR;E.jSXMemberExpression=E.jsxMemberExpression=LR;E.jSXNamespacedName=E.jsxNamespacedName=jR;E.jSXOpeningElement=E.jsxOpeningElement=MR;E.jSXOpeningFragment=E.jsxOpeningFragment=VR;E.jSXSpreadAttribute=E.jsxSpreadAttribute=RR;E.jSXSpreadChild=E.jsxSpreadChild=kR;E.jSXText=E.jsxText=qR;E.labeledStatement=pj;E.logicalExpression=mj;E.memberExpression=yj;E.metaProperty=Qj;E.mixedTypeAnnotation=WM;E.moduleExpression=t5;E.newExpression=gj;E.noop=WR;E.nullLiteral=dj;E.nullLiteralTypeAnnotation=SM;E.nullableTypeAnnotation=HM;E.numberLiteral=T7;E.numberLiteralTypeAnnotation=GM;E.numberTypeAnnotation=XM;E.numericLiteral=QT;E.objectExpression=Ej;E.objectMethod=Tj;E.objectPattern=eM;E.objectProperty=xj;E.objectTypeAnnotation=YM;E.objectTypeCallProperty=zM;E.objectTypeIndexer=QM;E.objectTypeInternalSlot=JM;E.objectTypeProperty=ZM;E.objectTypeSpreadProperty=eR;E.opaqueType=tR;E.optionalCallExpression=cM;E.optionalIndexedAccessType=wR;E.optionalMemberExpression=uM;E.parenthesizedExpression=Pj;E.pipelineBareFunction=s5;E.pipelinePrimaryTopicReference=i5;E.pipelineTopicExpression=n5;E.placeholder=KR;E.privateName=mM;E.program=bj;E.qualifiedTypeIdentifier=rR;E.recordExpression=QR;E.regExpLiteral=ZT;E.regexLiteral=x7;E.restElement=ex;E.restProperty=S7;E.returnStatement=Sj;E.sequenceExpression=vj;E.spreadElement=tx;E.spreadProperty=v7;E.staticBlock=yM;E.stringLiteral=fj;E.stringLiteralTypeAnnotation=nR;E.stringTypeAnnotation=sR;E.super=tM;E.switchCase=Aj;E.switchStatement=Cj;E.symbolTypeAnnotation=iR;E.taggedTemplateExpression=rM;E.templateElement=nM;E.templateLiteral=sM;E.thisExpression=Dj;E.thisTypeAnnotation=aR;E.throwStatement=wj;E.topicReference=r5;E.tryStatement=Ij;E.tSAnyKeyword=E.tsAnyKeyword=y5;E.tSArrayType=E.tsArrayType=L5;E.tSAsExpression=E.tsAsExpression=r7;E.tSBigIntKeyword=E.tsBigIntKeyword=b5;E.tSBooleanKeyword=E.tsBooleanKeyword=g5;E.tSCallSignatureDeclaration=E.tsCallSignatureDeclaration=p5;E.tSConditionalType=E.tsConditionalType=$5;E.tSConstructSignatureDeclaration=E.tsConstructSignatureDeclaration=f5;E.tSConstructorType=E.tsConstructorType=N5;E.tSDeclareFunction=E.tsDeclareFunction=l5;E.tSDeclareMethod=E.tsDeclareMethod=u5;E.tSEnumBody=E.tsEnumBody=i7;E.tSEnumDeclaration=E.tsEnumDeclaration=a7;E.tSEnumMember=E.tsEnumMember=o7;E.tSExportAssignment=E.tsExportAssignment=h7;E.tSExpressionWithTypeArguments=E.tsExpressionWithTypeArguments=z5;E.tSExternalModuleReference=E.tsExternalModuleReference=f7;E.tSFunctionType=E.tsFunctionType=_5;E.tSImportEqualsDeclaration=E.tsImportEqualsDeclaration=p7;E.tSImportType=E.tsImportType=c7;E.tSIndexSignature=E.tsIndexSignature=m5;E.tSIndexedAccessType=E.tsIndexedAccessType=G5;E.tSInferType=E.tsInferType=W5;E.tSInstantiationExpression=E.tsInstantiationExpression=t7;E.tSInterfaceBody=E.tsInterfaceBody=Z5;E.tSInterfaceDeclaration=E.tsInterfaceDeclaration=Q5;E.tSIntersectionType=E.tsIntersectionType=V5;E.tSIntrinsicKeyword=E.tsIntrinsicKeyword=E5;E.tSLiteralType=E.tsLiteralType=J5;E.tSMappedType=E.tsMappedType=X5;E.tSMethodSignature=E.tsMethodSignature=h5;E.tSModuleBlock=E.tsModuleBlock=u7;E.tSModuleDeclaration=E.tsModuleDeclaration=l7;E.tSNamedTupleMember=E.tsNamedTupleMember=q5;E.tSNamespaceExportDeclaration=E.tsNamespaceExportDeclaration=m7;E.tSNeverKeyword=E.tsNeverKeyword=T5;E.tSNonNullExpression=E.tsNonNullExpression=d7;E.tSNullKeyword=E.tsNullKeyword=x5;E.tSNumberKeyword=E.tsNumberKeyword=S5;E.tSObjectKeyword=E.tsObjectKeyword=v5;E.tSOptionalType=E.tsOptionalType=M5;E.tSParameterProperty=E.tsParameterProperty=o5;E.tSParenthesizedType=E.tsParenthesizedType=K5;E.tSPropertySignature=E.tsPropertySignature=d5;E.tSQualifiedName=E.tsQualifiedName=c5;E.tSRestType=E.tsRestType=R5;E.tSSatisfiesExpression=E.tsSatisfiesExpression=n7;E.tSStringKeyword=E.tsStringKeyword=P5;E.tSSymbolKeyword=E.tsSymbolKeyword=A5;E.tSTemplateLiteralType=E.tsTemplateLiteralType=Y5;E.tSThisType=E.tsThisType=I5;E.tSTupleType=E.tsTupleType=j5;E.tSTypeAliasDeclaration=E.tsTypeAliasDeclaration=e7;E.tSTypeAnnotation=E.tsTypeAnnotation=y7;E.tSTypeAssertion=E.tsTypeAssertion=s7;E.tSTypeLiteral=E.tsTypeLiteral=F5;E.tSTypeOperator=E.tsTypeOperator=H5;E.tSTypeParameter=E.tsTypeParameter=E7;E.tSTypeParameterDeclaration=E.tsTypeParameterDeclaration=b7;E.tSTypeParameterInstantiation=E.tsTypeParameterInstantiation=g7;E.tSTypePredicate=E.tsTypePredicate=B5;E.tSTypeQuery=E.tsTypeQuery=k5;E.tSTypeReference=E.tsTypeReference=O5;E.tSUndefinedKeyword=E.tsUndefinedKeyword=C5;E.tSUnionType=E.tsUnionType=U5;E.tSUnknownKeyword=E.tsUnknownKeyword=D5;E.tSVoidKeyword=E.tsVoidKeyword=w5;E.tupleExpression=ZR;E.tupleTypeAnnotation=oR;E.typeAlias=uR;E.typeAnnotation=cR;E.typeCastExpression=pR;E.typeParameter=fR;E.typeParameterDeclaration=dR;E.typeParameterInstantiation=hR;E.typeofTypeAnnotation=lR;E.unaryExpression=_j;E.unionTypeAnnotation=mR;E.updateExpression=Nj;E.v8IntrinsicIdentifier=HR;E.variableDeclaration=Oj;E.variableDeclarator=Bj;E.variance=yR;E.voidPattern=a5;E.voidTypeAnnotation=gR;E.whileStatement=kj;E.withStatement=Fj;E.yieldExpression=iM;var R6=lu(),du=na(),q6=qn(),{validateInternal:y}=R6,{NODE_FIELDS:B}=q6;function U6(e){typeof e=="bigint"&&(e=e.toString());let t={type:"BigIntLiteral",value:e},r=B.BigIntLiteral;return y(r.value,t,"value",e),t}function V6(e=[]){let t={type:"ArrayExpression",elements:e},r=B.ArrayExpression;return y(r.elements,t,"elements",e,1),t}function $6(e,t,r){let n={type:"AssignmentExpression",operator:e,left:t,right:r},s=B.AssignmentExpression;return y(s.operator,n,"operator",e),y(s.left,n,"left",t,1),y(s.right,n,"right",r,1),n}function W6(e,t,r){let n={type:"BinaryExpression",operator:e,left:t,right:r},s=B.BinaryExpression;return y(s.operator,n,"operator",e),y(s.left,n,"left",t,1),y(s.right,n,"right",r,1),n}function K6(e){let t={type:"InterpreterDirective",value:e},r=B.InterpreterDirective;return y(r.value,t,"value",e),t}function H6(e){let t={type:"Directive",value:e},r=B.Directive;return y(r.value,t,"value",e,1),t}function G6(e){let t={type:"DirectiveLiteral",value:e},r=B.DirectiveLiteral;return y(r.value,t,"value",e),t}function X6(e,t=[]){let r={type:"BlockStatement",body:e,directives:t},n=B.BlockStatement;return y(n.body,r,"body",e,1),y(n.directives,r,"directives",t,1),r}function Y6(e=null){let t={type:"BreakStatement",label:e},r=B.BreakStatement;return y(r.label,t,"label",e,1),t}function J6(e,t){let r={type:"CallExpression",callee:e,arguments:t},n=B.CallExpression;return y(n.callee,r,"callee",e,1),y(n.arguments,r,"arguments",t,1),r}function z6(e=null,t){let r={type:"CatchClause",param:e,body:t},n=B.CatchClause;return y(n.param,r,"param",e,1),y(n.body,r,"body",t,1),r}function Q6(e,t,r){let n={type:"ConditionalExpression",test:e,consequent:t,alternate:r},s=B.ConditionalExpression;return y(s.test,n,"test",e,1),y(s.consequent,n,"consequent",t,1),y(s.alternate,n,"alternate",r,1),n}function Z6(e=null){let t={type:"ContinueStatement",label:e},r=B.ContinueStatement;return y(r.label,t,"label",e,1),t}function ej(){return{type:"DebuggerStatement"}}function tj(e,t){let r={type:"DoWhileStatement",test:e,body:t},n=B.DoWhileStatement;return y(n.test,r,"test",e,1),y(n.body,r,"body",t,1),r}function rj(){return{type:"EmptyStatement"}}function nj(e){let t={type:"ExpressionStatement",expression:e},r=B.ExpressionStatement;return y(r.expression,t,"expression",e,1),t}function sj(e,t=null,r=null){let n={type:"File",program:e,comments:t,tokens:r},s=B.File;return y(s.program,n,"program",e,1),y(s.comments,n,"comments",t,1),y(s.tokens,n,"tokens",r),n}function ij(e,t,r){let n={type:"ForInStatement",left:e,right:t,body:r},s=B.ForInStatement;return y(s.left,n,"left",e,1),y(s.right,n,"right",t,1),y(s.body,n,"body",r,1),n}function aj(e=null,t=null,r=null,n){let s={type:"ForStatement",init:e,test:t,update:r,body:n},i=B.ForStatement;return y(i.init,s,"init",e,1),y(i.test,s,"test",t,1),y(i.update,s,"update",r,1),y(i.body,s,"body",n,1),s}function oj(e=null,t,r,n=!1,s=!1){let i={type:"FunctionDeclaration",id:e,params:t,body:r,generator:n,async:s},a=B.FunctionDeclaration;return y(a.id,i,"id",e,1),y(a.params,i,"params",t,1),y(a.body,i,"body",r,1),y(a.generator,i,"generator",n),y(a.async,i,"async",s),i}function lj(e=null,t,r,n=!1,s=!1){let i={type:"FunctionExpression",id:e,params:t,body:r,generator:n,async:s},a=B.FunctionExpression;return y(a.id,i,"id",e,1),y(a.params,i,"params",t,1),y(a.body,i,"body",r,1),y(a.generator,i,"generator",n),y(a.async,i,"async",s),i}function uj(e){let t={type:"Identifier",name:e},r=B.Identifier;return y(r.name,t,"name",e),t}function cj(e,t,r=null){let n={type:"IfStatement",test:e,consequent:t,alternate:r},s=B.IfStatement;return y(s.test,n,"test",e,1),y(s.consequent,n,"consequent",t,1),y(s.alternate,n,"alternate",r,1),n}function pj(e,t){let r={type:"LabeledStatement",label:e,body:t},n=B.LabeledStatement;return y(n.label,r,"label",e,1),y(n.body,r,"body",t,1),r}function fj(e){let t={type:"StringLiteral",value:e},r=B.StringLiteral;return y(r.value,t,"value",e),t}function QT(e){let t={type:"NumericLiteral",value:e},r=B.NumericLiteral;return y(r.value,t,"value",e),t}function dj(){return{type:"NullLiteral"}}function hj(e){let t={type:"BooleanLiteral",value:e},r=B.BooleanLiteral;return y(r.value,t,"value",e),t}function ZT(e,t=""){let r={type:"RegExpLiteral",pattern:e,flags:t},n=B.RegExpLiteral;return y(n.pattern,r,"pattern",e),y(n.flags,r,"flags",t),r}function mj(e,t,r){let n={type:"LogicalExpression",operator:e,left:t,right:r},s=B.LogicalExpression;return y(s.operator,n,"operator",e),y(s.left,n,"left",t,1),y(s.right,n,"right",r,1),n}function yj(e,t,r=!1,n=null){let s={type:"MemberExpression",object:e,property:t,computed:r,optional:n},i=B.MemberExpression;return y(i.object,s,"object",e,1),y(i.property,s,"property",t,1),y(i.computed,s,"computed",r),y(i.optional,s,"optional",n),s}function gj(e,t){let r={type:"NewExpression",callee:e,arguments:t},n=B.NewExpression;return y(n.callee,r,"callee",e,1),y(n.arguments,r,"arguments",t,1),r}function bj(e,t=[],r="script",n=null){let s={type:"Program",body:e,directives:t,sourceType:r,interpreter:n},i=B.Program;return y(i.body,s,"body",e,1),y(i.directives,s,"directives",t,1),y(i.sourceType,s,"sourceType",r),y(i.interpreter,s,"interpreter",n,1),s}function Ej(e){let t={type:"ObjectExpression",properties:e},r=B.ObjectExpression;return y(r.properties,t,"properties",e,1),t}function Tj(e="method",t,r,n,s=!1,i=!1,a=!1){let o={type:"ObjectMethod",kind:e,key:t,params:r,body:n,computed:s,generator:i,async:a},l=B.ObjectMethod;return y(l.kind,o,"kind",e),y(l.key,o,"key",t,1),y(l.params,o,"params",r,1),y(l.body,o,"body",n,1),y(l.computed,o,"computed",s),y(l.generator,o,"generator",i),y(l.async,o,"async",a),o}function xj(e,t,r=!1,n=!1,s=null){let i={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:n,decorators:s},a=B.ObjectProperty;return y(a.key,i,"key",e,1),y(a.value,i,"value",t,1),y(a.computed,i,"computed",r),y(a.shorthand,i,"shorthand",n),y(a.decorators,i,"decorators",s,1),i}function ex(e){let t={type:"RestElement",argument:e},r=B.RestElement;return y(r.argument,t,"argument",e,1),t}function Sj(e=null){let t={type:"ReturnStatement",argument:e},r=B.ReturnStatement;return y(r.argument,t,"argument",e,1),t}function vj(e){let t={type:"SequenceExpression",expressions:e},r=B.SequenceExpression;return y(r.expressions,t,"expressions",e,1),t}function Pj(e){let t={type:"ParenthesizedExpression",expression:e},r=B.ParenthesizedExpression;return y(r.expression,t,"expression",e,1),t}function Aj(e=null,t){let r={type:"SwitchCase",test:e,consequent:t},n=B.SwitchCase;return y(n.test,r,"test",e,1),y(n.consequent,r,"consequent",t,1),r}function Cj(e,t){let r={type:"SwitchStatement",discriminant:e,cases:t},n=B.SwitchStatement;return y(n.discriminant,r,"discriminant",e,1),y(n.cases,r,"cases",t,1),r}function Dj(){return{type:"ThisExpression"}}function wj(e){let t={type:"ThrowStatement",argument:e},r=B.ThrowStatement;return y(r.argument,t,"argument",e,1),t}function Ij(e,t=null,r=null){let n={type:"TryStatement",block:e,handler:t,finalizer:r},s=B.TryStatement;return y(s.block,n,"block",e,1),y(s.handler,n,"handler",t,1),y(s.finalizer,n,"finalizer",r,1),n}function _j(e,t,r=!0){let n={type:"UnaryExpression",operator:e,argument:t,prefix:r},s=B.UnaryExpression;return y(s.operator,n,"operator",e),y(s.argument,n,"argument",t,1),y(s.prefix,n,"prefix",r),n}function Nj(e,t,r=!1){let n={type:"UpdateExpression",operator:e,argument:t,prefix:r},s=B.UpdateExpression;return y(s.operator,n,"operator",e),y(s.argument,n,"argument",t,1),y(s.prefix,n,"prefix",r),n}function Oj(e,t){let r={type:"VariableDeclaration",kind:e,declarations:t},n=B.VariableDeclaration;return y(n.kind,r,"kind",e),y(n.declarations,r,"declarations",t,1),r}function Bj(e,t=null){let r={type:"VariableDeclarator",id:e,init:t},n=B.VariableDeclarator;return y(n.id,r,"id",e,1),y(n.init,r,"init",t,1),r}function kj(e,t){let r={type:"WhileStatement",test:e,body:t},n=B.WhileStatement;return y(n.test,r,"test",e,1),y(n.body,r,"body",t,1),r}function Fj(e,t){let r={type:"WithStatement",object:e,body:t},n=B.WithStatement;return y(n.object,r,"object",e,1),y(n.body,r,"body",t,1),r}function Lj(e,t){let r={type:"AssignmentPattern",left:e,right:t},n=B.AssignmentPattern;return y(n.left,r,"left",e,1),y(n.right,r,"right",t,1),r}function jj(e){let t={type:"ArrayPattern",elements:e},r=B.ArrayPattern;return y(r.elements,t,"elements",e,1),t}function Mj(e,t,r=!1){let n={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},s=B.ArrowFunctionExpression;return y(s.params,n,"params",e,1),y(s.body,n,"body",t,1),y(s.async,n,"async",r),n}function Rj(e){let t={type:"ClassBody",body:e},r=B.ClassBody;return y(r.body,t,"body",e,1),t}function qj(e=null,t=null,r,n=null){let s={type:"ClassExpression",id:e,superClass:t,body:r,decorators:n},i=B.ClassExpression;return y(i.id,s,"id",e,1),y(i.superClass,s,"superClass",t,1),y(i.body,s,"body",r,1),y(i.decorators,s,"decorators",n,1),s}function Uj(e=null,t=null,r,n=null){let s={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:n},i=B.ClassDeclaration;return y(i.id,s,"id",e,1),y(i.superClass,s,"superClass",t,1),y(i.body,s,"body",r,1),y(i.decorators,s,"decorators",n,1),s}function Vj(e){let t={type:"ExportAllDeclaration",source:e},r=B.ExportAllDeclaration;return y(r.source,t,"source",e,1),t}function $j(e){let t={type:"ExportDefaultDeclaration",declaration:e},r=B.ExportDefaultDeclaration;return y(r.declaration,t,"declaration",e,1),t}function Wj(e=null,t=[],r=null){let n={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r},s=B.ExportNamedDeclaration;return y(s.declaration,n,"declaration",e,1),y(s.specifiers,n,"specifiers",t,1),y(s.source,n,"source",r,1),n}function Kj(e,t){let r={type:"ExportSpecifier",local:e,exported:t},n=B.ExportSpecifier;return y(n.local,r,"local",e,1),y(n.exported,r,"exported",t,1),r}function Hj(e,t,r,n=!1){let s={type:"ForOfStatement",left:e,right:t,body:r,await:n},i=B.ForOfStatement;return y(i.left,s,"left",e,1),y(i.right,s,"right",t,1),y(i.body,s,"body",r,1),y(i.await,s,"await",n),s}function Gj(e,t){let r={type:"ImportDeclaration",specifiers:e,source:t},n=B.ImportDeclaration;return y(n.specifiers,r,"specifiers",e,1),y(n.source,r,"source",t,1),r}function Xj(e){let t={type:"ImportDefaultSpecifier",local:e},r=B.ImportDefaultSpecifier;return y(r.local,t,"local",e,1),t}function Yj(e){let t={type:"ImportNamespaceSpecifier",local:e},r=B.ImportNamespaceSpecifier;return y(r.local,t,"local",e,1),t}function Jj(e,t){let r={type:"ImportSpecifier",local:e,imported:t},n=B.ImportSpecifier;return y(n.local,r,"local",e,1),y(n.imported,r,"imported",t,1),r}function zj(e,t=null){let r={type:"ImportExpression",source:e,options:t},n=B.ImportExpression;return y(n.source,r,"source",e,1),y(n.options,r,"options",t,1),r}function Qj(e,t){let r={type:"MetaProperty",meta:e,property:t},n=B.MetaProperty;return y(n.meta,r,"meta",e,1),y(n.property,r,"property",t,1),r}function Zj(e="method",t,r,n,s=!1,i=!1,a=!1,o=!1){let l={type:"ClassMethod",kind:e,key:t,params:r,body:n,computed:s,static:i,generator:a,async:o},u=B.ClassMethod;return y(u.kind,l,"kind",e),y(u.key,l,"key",t,1),y(u.params,l,"params",r,1),y(u.body,l,"body",n,1),y(u.computed,l,"computed",s),y(u.static,l,"static",i),y(u.generator,l,"generator",a),y(u.async,l,"async",o),l}function eM(e){let t={type:"ObjectPattern",properties:e},r=B.ObjectPattern;return y(r.properties,t,"properties",e,1),t}function tx(e){let t={type:"SpreadElement",argument:e},r=B.SpreadElement;return y(r.argument,t,"argument",e,1),t}function tM(){return{type:"Super"}}function rM(e,t){let r={type:"TaggedTemplateExpression",tag:e,quasi:t},n=B.TaggedTemplateExpression;return y(n.tag,r,"tag",e,1),y(n.quasi,r,"quasi",t,1),r}function nM(e,t=!1){let r={type:"TemplateElement",value:e,tail:t},n=B.TemplateElement;return y(n.value,r,"value",e),y(n.tail,r,"tail",t),r}function sM(e,t){let r={type:"TemplateLiteral",quasis:e,expressions:t},n=B.TemplateLiteral;return y(n.quasis,r,"quasis",e,1),y(n.expressions,r,"expressions",t,1),r}function iM(e=null,t=!1){let r={type:"YieldExpression",argument:e,delegate:t},n=B.YieldExpression;return y(n.argument,r,"argument",e,1),y(n.delegate,r,"delegate",t),r}function aM(e){let t={type:"AwaitExpression",argument:e},r=B.AwaitExpression;return y(r.argument,t,"argument",e,1),t}function oM(){return{type:"Import"}}function lM(e){let t={type:"ExportNamespaceSpecifier",exported:e},r=B.ExportNamespaceSpecifier;return y(r.exported,t,"exported",e,1),t}function uM(e,t,r=!1,n){let s={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:n},i=B.OptionalMemberExpression;return y(i.object,s,"object",e,1),y(i.property,s,"property",t,1),y(i.computed,s,"computed",r),y(i.optional,s,"optional",n),s}function cM(e,t,r){let n={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},s=B.OptionalCallExpression;return y(s.callee,n,"callee",e,1),y(s.arguments,n,"arguments",t,1),y(s.optional,n,"optional",r),n}function pM(e,t=null,r=null,n=null,s=!1,i=!1){let a={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:s,static:i},o=B.ClassProperty;return y(o.key,a,"key",e,1),y(o.value,a,"value",t,1),y(o.typeAnnotation,a,"typeAnnotation",r,1),y(o.decorators,a,"decorators",n,1),y(o.computed,a,"computed",s),y(o.static,a,"static",i),a}function fM(e,t=null,r=null,n=null,s=!1,i=!1){let a={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:n,computed:s,static:i},o=B.ClassAccessorProperty;return y(o.key,a,"key",e,1),y(o.value,a,"value",t,1),y(o.typeAnnotation,a,"typeAnnotation",r,1),y(o.decorators,a,"decorators",n,1),y(o.computed,a,"computed",s),y(o.static,a,"static",i),a}function dM(e,t=null,r=null,n=!1){let s={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:n},i=B.ClassPrivateProperty;return y(i.key,s,"key",e,1),y(i.value,s,"value",t,1),y(i.decorators,s,"decorators",r,1),y(i.static,s,"static",n),s}function hM(e="method",t,r,n,s=!1){let i={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:n,static:s},a=B.ClassPrivateMethod;return y(a.kind,i,"kind",e),y(a.key,i,"key",t,1),y(a.params,i,"params",r,1),y(a.body,i,"body",n,1),y(a.static,i,"static",s),i}function mM(e){let t={type:"PrivateName",id:e},r=B.PrivateName;return y(r.id,t,"id",e,1),t}function yM(e){let t={type:"StaticBlock",body:e},r=B.StaticBlock;return y(r.body,t,"body",e,1),t}function gM(e,t){let r={type:"ImportAttribute",key:e,value:t},n=B.ImportAttribute;return y(n.key,r,"key",e,1),y(n.value,r,"value",t,1),r}function bM(){return{type:"AnyTypeAnnotation"}}function EM(e){let t={type:"ArrayTypeAnnotation",elementType:e},r=B.ArrayTypeAnnotation;return y(r.elementType,t,"elementType",e,1),t}function TM(){return{type:"BooleanTypeAnnotation"}}function xM(e){let t={type:"BooleanLiteralTypeAnnotation",value:e},r=B.BooleanLiteralTypeAnnotation;return y(r.value,t,"value",e),t}function SM(){return{type:"NullLiteralTypeAnnotation"}}function vM(e,t=null){let r={type:"ClassImplements",id:e,typeParameters:t},n=B.ClassImplements;return y(n.id,r,"id",e,1),y(n.typeParameters,r,"typeParameters",t,1),r}function PM(e,t=null,r=null,n){let s={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:n},i=B.DeclareClass;return y(i.id,s,"id",e,1),y(i.typeParameters,s,"typeParameters",t,1),y(i.extends,s,"extends",r,1),y(i.body,s,"body",n,1),s}function AM(e){let t={type:"DeclareFunction",id:e},r=B.DeclareFunction;return y(r.id,t,"id",e,1),t}function CM(e,t=null,r=null,n){let s={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:n},i=B.DeclareInterface;return y(i.id,s,"id",e,1),y(i.typeParameters,s,"typeParameters",t,1),y(i.extends,s,"extends",r,1),y(i.body,s,"body",n,1),s}function DM(e,t,r=null){let n={type:"DeclareModule",id:e,body:t,kind:r},s=B.DeclareModule;return y(s.id,n,"id",e,1),y(s.body,n,"body",t,1),y(s.kind,n,"kind",r),n}function wM(e){let t={type:"DeclareModuleExports",typeAnnotation:e},r=B.DeclareModuleExports;return y(r.typeAnnotation,t,"typeAnnotation",e,1),t}function IM(e,t=null,r){let n={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},s=B.DeclareTypeAlias;return y(s.id,n,"id",e,1),y(s.typeParameters,n,"typeParameters",t,1),y(s.right,n,"right",r,1),n}function _M(e,t=null,r=null){let n={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},s=B.DeclareOpaqueType;return y(s.id,n,"id",e,1),y(s.typeParameters,n,"typeParameters",t,1),y(s.supertype,n,"supertype",r,1),n}function NM(e){let t={type:"DeclareVariable",id:e},r=B.DeclareVariable;return y(r.id,t,"id",e,1),t}function OM(e=null,t=null,r=null,n=null){let s={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:n},i=B.DeclareExportDeclaration;return y(i.declaration,s,"declaration",e,1),y(i.specifiers,s,"specifiers",t,1),y(i.source,s,"source",r,1),y(i.attributes,s,"attributes",n,1),s}function BM(e,t=null){let r={type:"DeclareExportAllDeclaration",source:e,attributes:t},n=B.DeclareExportAllDeclaration;return y(n.source,r,"source",e,1),y(n.attributes,r,"attributes",t,1),r}function kM(e){let t={type:"DeclaredPredicate",value:e},r=B.DeclaredPredicate;return y(r.value,t,"value",e,1),t}function FM(){return{type:"ExistsTypeAnnotation"}}function LM(e=null,t,r=null,n){let s={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:n},i=B.FunctionTypeAnnotation;return y(i.typeParameters,s,"typeParameters",e,1),y(i.params,s,"params",t,1),y(i.rest,s,"rest",r,1),y(i.returnType,s,"returnType",n,1),s}function jM(e=null,t){let r={type:"FunctionTypeParam",name:e,typeAnnotation:t},n=B.FunctionTypeParam;return y(n.name,r,"name",e,1),y(n.typeAnnotation,r,"typeAnnotation",t,1),r}function MM(e,t=null){let r={type:"GenericTypeAnnotation",id:e,typeParameters:t},n=B.GenericTypeAnnotation;return y(n.id,r,"id",e,1),y(n.typeParameters,r,"typeParameters",t,1),r}function RM(){return{type:"InferredPredicate"}}function qM(e,t=null){let r={type:"InterfaceExtends",id:e,typeParameters:t},n=B.InterfaceExtends;return y(n.id,r,"id",e,1),y(n.typeParameters,r,"typeParameters",t,1),r}function UM(e,t=null,r=null,n){let s={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n},i=B.InterfaceDeclaration;return y(i.id,s,"id",e,1),y(i.typeParameters,s,"typeParameters",t,1),y(i.extends,s,"extends",r,1),y(i.body,s,"body",n,1),s}function VM(e=null,t){let r={type:"InterfaceTypeAnnotation",extends:e,body:t},n=B.InterfaceTypeAnnotation;return y(n.extends,r,"extends",e,1),y(n.body,r,"body",t,1),r}function $M(e){let t={type:"IntersectionTypeAnnotation",types:e},r=B.IntersectionTypeAnnotation;return y(r.types,t,"types",e,1),t}function WM(){return{type:"MixedTypeAnnotation"}}function KM(){return{type:"EmptyTypeAnnotation"}}function HM(e){let t={type:"NullableTypeAnnotation",typeAnnotation:e},r=B.NullableTypeAnnotation;return y(r.typeAnnotation,t,"typeAnnotation",e,1),t}function GM(e){let t={type:"NumberLiteralTypeAnnotation",value:e},r=B.NumberLiteralTypeAnnotation;return y(r.value,t,"value",e),t}function XM(){return{type:"NumberTypeAnnotation"}}function YM(e,t=[],r=[],n=[],s=!1){let i={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:n,exact:s},a=B.ObjectTypeAnnotation;return y(a.properties,i,"properties",e,1),y(a.indexers,i,"indexers",t,1),y(a.callProperties,i,"callProperties",r,1),y(a.internalSlots,i,"internalSlots",n,1),y(a.exact,i,"exact",s),i}function JM(e,t,r,n,s){let i={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:n,method:s},a=B.ObjectTypeInternalSlot;return y(a.id,i,"id",e,1),y(a.value,i,"value",t,1),y(a.optional,i,"optional",r),y(a.static,i,"static",n),y(a.method,i,"method",s),i}function zM(e){let t={type:"ObjectTypeCallProperty",value:e,static:null},r=B.ObjectTypeCallProperty;return y(r.value,t,"value",e,1),t}function QM(e=null,t,r,n=null){let s={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:n,static:null},i=B.ObjectTypeIndexer;return y(i.id,s,"id",e,1),y(i.key,s,"key",t,1),y(i.value,s,"value",r,1),y(i.variance,s,"variance",n,1),s}function ZM(e,t,r=null){let n={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},s=B.ObjectTypeProperty;return y(s.key,n,"key",e,1),y(s.value,n,"value",t,1),y(s.variance,n,"variance",r,1),n}function eR(e){let t={type:"ObjectTypeSpreadProperty",argument:e},r=B.ObjectTypeSpreadProperty;return y(r.argument,t,"argument",e,1),t}function tR(e,t=null,r=null,n){let s={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:n},i=B.OpaqueType;return y(i.id,s,"id",e,1),y(i.typeParameters,s,"typeParameters",t,1),y(i.supertype,s,"supertype",r,1),y(i.impltype,s,"impltype",n,1),s}function rR(e,t){let r={type:"QualifiedTypeIdentifier",id:e,qualification:t},n=B.QualifiedTypeIdentifier;return y(n.id,r,"id",e,1),y(n.qualification,r,"qualification",t,1),r}function nR(e){let t={type:"StringLiteralTypeAnnotation",value:e},r=B.StringLiteralTypeAnnotation;return y(r.value,t,"value",e),t}function sR(){return{type:"StringTypeAnnotation"}}function iR(){return{type:"SymbolTypeAnnotation"}}function aR(){return{type:"ThisTypeAnnotation"}}function oR(e){let t={type:"TupleTypeAnnotation",types:e},r=B.TupleTypeAnnotation;return y(r.types,t,"types",e,1),t}function lR(e){let t={type:"TypeofTypeAnnotation",argument:e},r=B.TypeofTypeAnnotation;return y(r.argument,t,"argument",e,1),t}function uR(e,t=null,r){let n={type:"TypeAlias",id:e,typeParameters:t,right:r},s=B.TypeAlias;return y(s.id,n,"id",e,1),y(s.typeParameters,n,"typeParameters",t,1),y(s.right,n,"right",r,1),n}function cR(e){let t={type:"TypeAnnotation",typeAnnotation:e},r=B.TypeAnnotation;return y(r.typeAnnotation,t,"typeAnnotation",e,1),t}function pR(e,t){let r={type:"TypeCastExpression",expression:e,typeAnnotation:t},n=B.TypeCastExpression;return y(n.expression,r,"expression",e,1),y(n.typeAnnotation,r,"typeAnnotation",t,1),r}function fR(e=null,t=null,r=null){let n={type:"TypeParameter",bound:e,default:t,variance:r,name:null},s=B.TypeParameter;return y(s.bound,n,"bound",e,1),y(s.default,n,"default",t,1),y(s.variance,n,"variance",r,1),n}function dR(e){let t={type:"TypeParameterDeclaration",params:e},r=B.TypeParameterDeclaration;return y(r.params,t,"params",e,1),t}function hR(e){let t={type:"TypeParameterInstantiation",params:e},r=B.TypeParameterInstantiation;return y(r.params,t,"params",e,1),t}function mR(e){let t={type:"UnionTypeAnnotation",types:e},r=B.UnionTypeAnnotation;return y(r.types,t,"types",e,1),t}function yR(e){let t={type:"Variance",kind:e},r=B.Variance;return y(r.kind,t,"kind",e),t}function gR(){return{type:"VoidTypeAnnotation"}}function bR(e,t){let r={type:"EnumDeclaration",id:e,body:t},n=B.EnumDeclaration;return y(n.id,r,"id",e,1),y(n.body,r,"body",t,1),r}function ER(e){let t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=B.EnumBooleanBody;return y(r.members,t,"members",e,1),t}function TR(e){let t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=B.EnumNumberBody;return y(r.members,t,"members",e,1),t}function xR(e){let t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=B.EnumStringBody;return y(r.members,t,"members",e,1),t}function SR(e){let t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=B.EnumSymbolBody;return y(r.members,t,"members",e,1),t}function vR(e){let t={type:"EnumBooleanMember",id:e,init:null},r=B.EnumBooleanMember;return y(r.id,t,"id",e,1),t}function PR(e,t){let r={type:"EnumNumberMember",id:e,init:t},n=B.EnumNumberMember;return y(n.id,r,"id",e,1),y(n.init,r,"init",t,1),r}function AR(e,t){let r={type:"EnumStringMember",id:e,init:t},n=B.EnumStringMember;return y(n.id,r,"id",e,1),y(n.init,r,"init",t,1),r}function CR(e){let t={type:"EnumDefaultedMember",id:e},r=B.EnumDefaultedMember;return y(r.id,t,"id",e,1),t}function DR(e,t){let r={type:"IndexedAccessType",objectType:e,indexType:t},n=B.IndexedAccessType;return y(n.objectType,r,"objectType",e,1),y(n.indexType,r,"indexType",t,1),r}function wR(e,t){let r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},n=B.OptionalIndexedAccessType;return y(n.objectType,r,"objectType",e,1),y(n.indexType,r,"indexType",t,1),r}function IR(e,t=null){let r={type:"JSXAttribute",name:e,value:t},n=B.JSXAttribute;return y(n.name,r,"name",e,1),y(n.value,r,"value",t,1),r}function _R(e){let t={type:"JSXClosingElement",name:e},r=B.JSXClosingElement;return y(r.name,t,"name",e,1),t}function NR(e,t=null,r,n=null){let s={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:n},i=B.JSXElement;return y(i.openingElement,s,"openingElement",e,1),y(i.closingElement,s,"closingElement",t,1),y(i.children,s,"children",r,1),y(i.selfClosing,s,"selfClosing",n),s}function OR(){return{type:"JSXEmptyExpression"}}function BR(e){let t={type:"JSXExpressionContainer",expression:e},r=B.JSXExpressionContainer;return y(r.expression,t,"expression",e,1),t}function kR(e){let t={type:"JSXSpreadChild",expression:e},r=B.JSXSpreadChild;return y(r.expression,t,"expression",e,1),t}function FR(e){let t={type:"JSXIdentifier",name:e},r=B.JSXIdentifier;return y(r.name,t,"name",e),t}function LR(e,t){let r={type:"JSXMemberExpression",object:e,property:t},n=B.JSXMemberExpression;return y(n.object,r,"object",e,1),y(n.property,r,"property",t,1),r}function jR(e,t){let r={type:"JSXNamespacedName",namespace:e,name:t},n=B.JSXNamespacedName;return y(n.namespace,r,"namespace",e,1),y(n.name,r,"name",t,1),r}function MR(e,t,r=!1){let n={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},s=B.JSXOpeningElement;return y(s.name,n,"name",e,1),y(s.attributes,n,"attributes",t,1),y(s.selfClosing,n,"selfClosing",r),n}function RR(e){let t={type:"JSXSpreadAttribute",argument:e},r=B.JSXSpreadAttribute;return y(r.argument,t,"argument",e,1),t}function qR(e){let t={type:"JSXText",value:e},r=B.JSXText;return y(r.value,t,"value",e),t}function UR(e,t,r){let n={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},s=B.JSXFragment;return y(s.openingFragment,n,"openingFragment",e,1),y(s.closingFragment,n,"closingFragment",t,1),y(s.children,n,"children",r,1),n}function VR(){return{type:"JSXOpeningFragment"}}function $R(){return{type:"JSXClosingFragment"}}function WR(){return{type:"Noop"}}function KR(e,t){let r={type:"Placeholder",expectedNode:e,name:t},n=B.Placeholder;return y(n.expectedNode,r,"expectedNode",e),y(n.name,r,"name",t,1),r}function HR(e){let t={type:"V8IntrinsicIdentifier",name:e},r=B.V8IntrinsicIdentifier;return y(r.name,t,"name",e),t}function GR(){return{type:"ArgumentPlaceholder"}}function XR(e,t){let r={type:"BindExpression",object:e,callee:t},n=B.BindExpression;return y(n.object,r,"object",e,1),y(n.callee,r,"callee",t,1),r}function YR(e){let t={type:"Decorator",expression:e},r=B.Decorator;return y(r.expression,t,"expression",e,1),t}function JR(e,t=!1){let r={type:"DoExpression",body:e,async:t},n=B.DoExpression;return y(n.body,r,"body",e,1),y(n.async,r,"async",t),r}function zR(e){let t={type:"ExportDefaultSpecifier",exported:e},r=B.ExportDefaultSpecifier;return y(r.exported,t,"exported",e,1),t}function QR(e){let t={type:"RecordExpression",properties:e},r=B.RecordExpression;return y(r.properties,t,"properties",e,1),t}function ZR(e=[]){let t={type:"TupleExpression",elements:e},r=B.TupleExpression;return y(r.elements,t,"elements",e,1),t}function e5(e){let t={type:"DecimalLiteral",value:e},r=B.DecimalLiteral;return y(r.value,t,"value",e),t}function t5(e){let t={type:"ModuleExpression",body:e},r=B.ModuleExpression;return y(r.body,t,"body",e,1),t}function r5(){return{type:"TopicReference"}}function n5(e){let t={type:"PipelineTopicExpression",expression:e},r=B.PipelineTopicExpression;return y(r.expression,t,"expression",e,1),t}function s5(e){let t={type:"PipelineBareFunction",callee:e},r=B.PipelineBareFunction;return y(r.callee,t,"callee",e,1),t}function i5(){return{type:"PipelinePrimaryTopicReference"}}function a5(){return{type:"VoidPattern"}}function o5(e){let t={type:"TSParameterProperty",parameter:e},r=B.TSParameterProperty;return y(r.parameter,t,"parameter",e,1),t}function l5(e=null,t=null,r,n=null){let s={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:n},i=B.TSDeclareFunction;return y(i.id,s,"id",e,1),y(i.typeParameters,s,"typeParameters",t,1),y(i.params,s,"params",r,1),y(i.returnType,s,"returnType",n,1),s}function u5(e=null,t,r=null,n,s=null){let i={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:n,returnType:s},a=B.TSDeclareMethod;return y(a.decorators,i,"decorators",e,1),y(a.key,i,"key",t,1),y(a.typeParameters,i,"typeParameters",r,1),y(a.params,i,"params",n,1),y(a.returnType,i,"returnType",s,1),i}function c5(e,t){let r={type:"TSQualifiedName",left:e,right:t},n=B.TSQualifiedName;return y(n.left,r,"left",e,1),y(n.right,r,"right",t,1),r}function p5(e=null,t,r=null){let n={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=B.TSCallSignatureDeclaration;return y(s.typeParameters,n,"typeParameters",e,1),y(s.parameters,n,"parameters",t,1),y(s.typeAnnotation,n,"typeAnnotation",r,1),n}function f5(e=null,t,r=null){let n={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=B.TSConstructSignatureDeclaration;return y(s.typeParameters,n,"typeParameters",e,1),y(s.parameters,n,"parameters",t,1),y(s.typeAnnotation,n,"typeAnnotation",r,1),n}function d5(e,t=null){let r={type:"TSPropertySignature",key:e,typeAnnotation:t},n=B.TSPropertySignature;return y(n.key,r,"key",e,1),y(n.typeAnnotation,r,"typeAnnotation",t,1),r}function h5(e,t=null,r,n=null){let s={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:n,kind:null},i=B.TSMethodSignature;return y(i.key,s,"key",e,1),y(i.typeParameters,s,"typeParameters",t,1),y(i.parameters,s,"parameters",r,1),y(i.typeAnnotation,s,"typeAnnotation",n,1),s}function m5(e,t=null){let r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},n=B.TSIndexSignature;return y(n.parameters,r,"parameters",e,1),y(n.typeAnnotation,r,"typeAnnotation",t,1),r}function y5(){return{type:"TSAnyKeyword"}}function g5(){return{type:"TSBooleanKeyword"}}function b5(){return{type:"TSBigIntKeyword"}}function E5(){return{type:"TSIntrinsicKeyword"}}function T5(){return{type:"TSNeverKeyword"}}function x5(){return{type:"TSNullKeyword"}}function S5(){return{type:"TSNumberKeyword"}}function v5(){return{type:"TSObjectKeyword"}}function P5(){return{type:"TSStringKeyword"}}function A5(){return{type:"TSSymbolKeyword"}}function C5(){return{type:"TSUndefinedKeyword"}}function D5(){return{type:"TSUnknownKeyword"}}function w5(){return{type:"TSVoidKeyword"}}function I5(){return{type:"TSThisType"}}function _5(e=null,t,r=null){let n={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r},s=B.TSFunctionType;return y(s.typeParameters,n,"typeParameters",e,1),y(s.parameters,n,"parameters",t,1),y(s.typeAnnotation,n,"typeAnnotation",r,1),n}function N5(e=null,t,r=null){let n={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r},s=B.TSConstructorType;return y(s.typeParameters,n,"typeParameters",e,1),y(s.parameters,n,"parameters",t,1),y(s.typeAnnotation,n,"typeAnnotation",r,1),n}function O5(e,t=null){let r={type:"TSTypeReference",typeName:e,typeParameters:t},n=B.TSTypeReference;return y(n.typeName,r,"typeName",e,1),y(n.typeParameters,r,"typeParameters",t,1),r}function B5(e,t=null,r=null){let n={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},s=B.TSTypePredicate;return y(s.parameterName,n,"parameterName",e,1),y(s.typeAnnotation,n,"typeAnnotation",t,1),y(s.asserts,n,"asserts",r),n}function k5(e,t=null){let r={type:"TSTypeQuery",exprName:e,typeParameters:t},n=B.TSTypeQuery;return y(n.exprName,r,"exprName",e,1),y(n.typeParameters,r,"typeParameters",t,1),r}function F5(e){let t={type:"TSTypeLiteral",members:e},r=B.TSTypeLiteral;return y(r.members,t,"members",e,1),t}function L5(e){let t={type:"TSArrayType",elementType:e},r=B.TSArrayType;return y(r.elementType,t,"elementType",e,1),t}function j5(e){let t={type:"TSTupleType",elementTypes:e},r=B.TSTupleType;return y(r.elementTypes,t,"elementTypes",e,1),t}function M5(e){let t={type:"TSOptionalType",typeAnnotation:e},r=B.TSOptionalType;return y(r.typeAnnotation,t,"typeAnnotation",e,1),t}function R5(e){let t={type:"TSRestType",typeAnnotation:e},r=B.TSRestType;return y(r.typeAnnotation,t,"typeAnnotation",e,1),t}function q5(e,t,r=!1){let n={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},s=B.TSNamedTupleMember;return y(s.label,n,"label",e,1),y(s.elementType,n,"elementType",t,1),y(s.optional,n,"optional",r),n}function U5(e){let t={type:"TSUnionType",types:e},r=B.TSUnionType;return y(r.types,t,"types",e,1),t}function V5(e){let t={type:"TSIntersectionType",types:e},r=B.TSIntersectionType;return y(r.types,t,"types",e,1),t}function $5(e,t,r,n){let s={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:n},i=B.TSConditionalType;return y(i.checkType,s,"checkType",e,1),y(i.extendsType,s,"extendsType",t,1),y(i.trueType,s,"trueType",r,1),y(i.falseType,s,"falseType",n,1),s}function W5(e){let t={type:"TSInferType",typeParameter:e},r=B.TSInferType;return y(r.typeParameter,t,"typeParameter",e,1),t}function K5(e){let t={type:"TSParenthesizedType",typeAnnotation:e},r=B.TSParenthesizedType;return y(r.typeAnnotation,t,"typeAnnotation",e,1),t}function H5(e,t="keyof"){let r={type:"TSTypeOperator",typeAnnotation:e,operator:t},n=B.TSTypeOperator;return y(n.typeAnnotation,r,"typeAnnotation",e,1),y(n.operator,r,"operator",t),r}function G5(e,t){let r={type:"TSIndexedAccessType",objectType:e,indexType:t},n=B.TSIndexedAccessType;return y(n.objectType,r,"objectType",e,1),y(n.indexType,r,"indexType",t,1),r}function X5(e,t=null,r=null){let n={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r},s=B.TSMappedType;return y(s.typeParameter,n,"typeParameter",e,1),y(s.typeAnnotation,n,"typeAnnotation",t,1),y(s.nameType,n,"nameType",r,1),n}function Y5(e,t){let r={type:"TSTemplateLiteralType",quasis:e,types:t},n=B.TSTemplateLiteralType;return y(n.quasis,r,"quasis",e,1),y(n.types,r,"types",t,1),r}function J5(e){let t={type:"TSLiteralType",literal:e},r=B.TSLiteralType;return y(r.literal,t,"literal",e,1),t}function z5(e,t=null){let r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},n=B.TSExpressionWithTypeArguments;return y(n.expression,r,"expression",e,1),y(n.typeParameters,r,"typeParameters",t,1),r}function Q5(e,t=null,r=null,n){let s={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:n},i=B.TSInterfaceDeclaration;return y(i.id,s,"id",e,1),y(i.typeParameters,s,"typeParameters",t,1),y(i.extends,s,"extends",r,1),y(i.body,s,"body",n,1),s}function Z5(e){let t={type:"TSInterfaceBody",body:e},r=B.TSInterfaceBody;return y(r.body,t,"body",e,1),t}function e7(e,t=null,r){let n={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},s=B.TSTypeAliasDeclaration;return y(s.id,n,"id",e,1),y(s.typeParameters,n,"typeParameters",t,1),y(s.typeAnnotation,n,"typeAnnotation",r,1),n}function t7(e,t=null){let r={type:"TSInstantiationExpression",expression:e,typeParameters:t},n=B.TSInstantiationExpression;return y(n.expression,r,"expression",e,1),y(n.typeParameters,r,"typeParameters",t,1),r}function r7(e,t){let r={type:"TSAsExpression",expression:e,typeAnnotation:t},n=B.TSAsExpression;return y(n.expression,r,"expression",e,1),y(n.typeAnnotation,r,"typeAnnotation",t,1),r}function n7(e,t){let r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},n=B.TSSatisfiesExpression;return y(n.expression,r,"expression",e,1),y(n.typeAnnotation,r,"typeAnnotation",t,1),r}function s7(e,t){let r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},n=B.TSTypeAssertion;return y(n.typeAnnotation,r,"typeAnnotation",e,1),y(n.expression,r,"expression",t,1),r}function i7(e){let t={type:"TSEnumBody",members:e},r=B.TSEnumBody;return y(r.members,t,"members",e,1),t}function a7(e,t){let r={type:"TSEnumDeclaration",id:e,members:t},n=B.TSEnumDeclaration;return y(n.id,r,"id",e,1),y(n.members,r,"members",t,1),r}function o7(e,t=null){let r={type:"TSEnumMember",id:e,initializer:t},n=B.TSEnumMember;return y(n.id,r,"id",e,1),y(n.initializer,r,"initializer",t,1),r}function l7(e,t){let r={type:"TSModuleDeclaration",id:e,body:t,kind:null},n=B.TSModuleDeclaration;return y(n.id,r,"id",e,1),y(n.body,r,"body",t,1),r}function u7(e){let t={type:"TSModuleBlock",body:e},r=B.TSModuleBlock;return y(r.body,t,"body",e,1),t}function c7(e,t=null,r=null){let n={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},s=B.TSImportType;return y(s.argument,n,"argument",e,1),y(s.qualifier,n,"qualifier",t,1),y(s.typeParameters,n,"typeParameters",r,1),n}function p7(e,t){let r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},n=B.TSImportEqualsDeclaration;return y(n.id,r,"id",e,1),y(n.moduleReference,r,"moduleReference",t,1),r}function f7(e){let t={type:"TSExternalModuleReference",expression:e},r=B.TSExternalModuleReference;return y(r.expression,t,"expression",e,1),t}function d7(e){let t={type:"TSNonNullExpression",expression:e},r=B.TSNonNullExpression;return y(r.expression,t,"expression",e,1),t}function h7(e){let t={type:"TSExportAssignment",expression:e},r=B.TSExportAssignment;return y(r.expression,t,"expression",e,1),t}function m7(e){let t={type:"TSNamespaceExportDeclaration",id:e},r=B.TSNamespaceExportDeclaration;return y(r.id,t,"id",e,1),t}function y7(e){let t={type:"TSTypeAnnotation",typeAnnotation:e},r=B.TSTypeAnnotation;return y(r.typeAnnotation,t,"typeAnnotation",e,1),t}function g7(e){let t={type:"TSTypeParameterInstantiation",params:e},r=B.TSTypeParameterInstantiation;return y(r.params,t,"params",e,1),t}function b7(e){let t={type:"TSTypeParameterDeclaration",params:e},r=B.TSTypeParameterDeclaration;return y(r.params,t,"params",e,1),t}function E7(e=null,t=null,r){let n={type:"TSTypeParameter",constraint:e,default:t,name:r},s=B.TSTypeParameter;return y(s.constraint,n,"constraint",e,1),y(s.default,n,"default",t,1),y(s.name,n,"name",r),n}function T7(e){return(0,du.default)("NumberLiteral","NumericLiteral","The node type "),QT(e)}function x7(e,t=""){return(0,du.default)("RegexLiteral","RegExpLiteral","The node type "),ZT(e,t)}function S7(e){return(0,du.default)("RestProperty","RestElement","The node type "),ex(e)}function v7(e){return(0,du.default)("SpreadProperty","SpreadElement","The node type "),tx(e)}});var rx=x(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});h.JSXIdentifier=h.JSXFragment=h.JSXExpressionContainer=h.JSXEmptyExpression=h.JSXElement=h.JSXClosingFragment=h.JSXClosingElement=h.JSXAttribute=h.IntersectionTypeAnnotation=h.InterpreterDirective=h.InterfaceTypeAnnotation=h.InterfaceExtends=h.InterfaceDeclaration=h.InferredPredicate=h.IndexedAccessType=h.ImportSpecifier=h.ImportNamespaceSpecifier=h.ImportExpression=h.ImportDefaultSpecifier=h.ImportDeclaration=h.ImportAttribute=h.Import=h.IfStatement=h.Identifier=h.GenericTypeAnnotation=h.FunctionTypeParam=h.FunctionTypeAnnotation=h.FunctionExpression=h.FunctionDeclaration=h.ForStatement=h.ForOfStatement=h.ForInStatement=h.File=h.ExpressionStatement=h.ExportSpecifier=h.ExportNamespaceSpecifier=h.ExportNamedDeclaration=h.ExportDefaultSpecifier=h.ExportDefaultDeclaration=h.ExportAllDeclaration=h.ExistsTypeAnnotation=h.EnumSymbolBody=h.EnumStringMember=h.EnumStringBody=h.EnumNumberMember=h.EnumNumberBody=h.EnumDefaultedMember=h.EnumDeclaration=h.EnumBooleanMember=h.EnumBooleanBody=h.EmptyTypeAnnotation=h.EmptyStatement=h.DoWhileStatement=h.DoExpression=h.DirectiveLiteral=h.Directive=h.Decorator=h.DeclaredPredicate=h.DeclareVariable=h.DeclareTypeAlias=h.DeclareOpaqueType=h.DeclareModuleExports=h.DeclareModule=h.DeclareInterface=h.DeclareFunction=h.DeclareExportDeclaration=h.DeclareExportAllDeclaration=h.DeclareClass=h.DecimalLiteral=h.DebuggerStatement=h.ContinueStatement=h.ConditionalExpression=h.ClassProperty=h.ClassPrivateProperty=h.ClassPrivateMethod=h.ClassMethod=h.ClassImplements=h.ClassExpression=h.ClassDeclaration=h.ClassBody=h.ClassAccessorProperty=h.CatchClause=h.CallExpression=h.BreakStatement=h.BooleanTypeAnnotation=h.BooleanLiteralTypeAnnotation=h.BooleanLiteral=h.BlockStatement=h.BindExpression=h.BinaryExpression=h.BigIntLiteral=h.AwaitExpression=h.AssignmentPattern=h.AssignmentExpression=h.ArrowFunctionExpression=h.ArrayTypeAnnotation=h.ArrayPattern=h.ArrayExpression=h.ArgumentPlaceholder=h.AnyTypeAnnotation=void 0;h.TSNumberKeyword=h.TSNullKeyword=h.TSNonNullExpression=h.TSNeverKeyword=h.TSNamespaceExportDeclaration=h.TSNamedTupleMember=h.TSModuleDeclaration=h.TSModuleBlock=h.TSMethodSignature=h.TSMappedType=h.TSLiteralType=h.TSIntrinsicKeyword=h.TSIntersectionType=h.TSInterfaceDeclaration=h.TSInterfaceBody=h.TSInstantiationExpression=h.TSInferType=h.TSIndexedAccessType=h.TSIndexSignature=h.TSImportType=h.TSImportEqualsDeclaration=h.TSFunctionType=h.TSExternalModuleReference=h.TSExpressionWithTypeArguments=h.TSExportAssignment=h.TSEnumMember=h.TSEnumDeclaration=h.TSEnumBody=h.TSDeclareMethod=h.TSDeclareFunction=h.TSConstructorType=h.TSConstructSignatureDeclaration=h.TSConditionalType=h.TSCallSignatureDeclaration=h.TSBooleanKeyword=h.TSBigIntKeyword=h.TSAsExpression=h.TSArrayType=h.TSAnyKeyword=h.SymbolTypeAnnotation=h.SwitchStatement=h.SwitchCase=h.Super=h.StringTypeAnnotation=h.StringLiteralTypeAnnotation=h.StringLiteral=h.StaticBlock=h.SpreadProperty=h.SpreadElement=h.SequenceExpression=h.ReturnStatement=h.RestProperty=h.RestElement=h.RegexLiteral=h.RegExpLiteral=h.RecordExpression=h.QualifiedTypeIdentifier=h.Program=h.PrivateName=h.Placeholder=h.PipelineTopicExpression=h.PipelinePrimaryTopicReference=h.PipelineBareFunction=h.ParenthesizedExpression=h.OptionalMemberExpression=h.OptionalIndexedAccessType=h.OptionalCallExpression=h.OpaqueType=h.ObjectTypeSpreadProperty=h.ObjectTypeProperty=h.ObjectTypeInternalSlot=h.ObjectTypeIndexer=h.ObjectTypeCallProperty=h.ObjectTypeAnnotation=h.ObjectProperty=h.ObjectPattern=h.ObjectMethod=h.ObjectExpression=h.NumericLiteral=h.NumberTypeAnnotation=h.NumberLiteralTypeAnnotation=h.NumberLiteral=h.NullableTypeAnnotation=h.NullLiteralTypeAnnotation=h.NullLiteral=h.Noop=h.NewExpression=h.ModuleExpression=h.MixedTypeAnnotation=h.MetaProperty=h.MemberExpression=h.LogicalExpression=h.LabeledStatement=h.JSXText=h.JSXSpreadChild=h.JSXSpreadAttribute=h.JSXOpeningFragment=h.JSXOpeningElement=h.JSXNamespacedName=h.JSXMemberExpression=void 0;h.YieldExpression=h.WithStatement=h.WhileStatement=h.VoidTypeAnnotation=h.VoidPattern=h.Variance=h.VariableDeclarator=h.VariableDeclaration=h.V8IntrinsicIdentifier=h.UpdateExpression=h.UnionTypeAnnotation=h.UnaryExpression=h.TypeofTypeAnnotation=h.TypeParameterInstantiation=h.TypeParameterDeclaration=h.TypeParameter=h.TypeCastExpression=h.TypeAnnotation=h.TypeAlias=h.TupleTypeAnnotation=h.TupleExpression=h.TryStatement=h.TopicReference=h.ThrowStatement=h.ThisTypeAnnotation=h.ThisExpression=h.TemplateLiteral=h.TemplateElement=h.TaggedTemplateExpression=h.TSVoidKeyword=h.TSUnknownKeyword=h.TSUnionType=h.TSUndefinedKeyword=h.TSTypeReference=h.TSTypeQuery=h.TSTypePredicate=h.TSTypeParameterInstantiation=h.TSTypeParameterDeclaration=h.TSTypeParameter=h.TSTypeOperator=h.TSTypeLiteral=h.TSTypeAssertion=h.TSTypeAnnotation=h.TSTypeAliasDeclaration=h.TSTupleType=h.TSThisType=h.TSTemplateLiteralType=h.TSSymbolKeyword=h.TSStringKeyword=h.TSSatisfiesExpression=h.TSRestType=h.TSQualifiedName=h.TSPropertySignature=h.TSParenthesizedType=h.TSParameterProperty=h.TSOptionalType=h.TSObjectKeyword=void 0;var So=Rd(),TSe=na();function _(e){return So[e]}var xSe=h.ArrayExpression=_("arrayExpression"),SSe=h.AssignmentExpression=_("assignmentExpression"),vSe=h.BinaryExpression=_("binaryExpression"),PSe=h.InterpreterDirective=_("interpreterDirective"),ASe=h.Directive=_("directive"),CSe=h.DirectiveLiteral=_("directiveLiteral"),DSe=h.BlockStatement=_("blockStatement"),wSe=h.BreakStatement=_("breakStatement"),ISe=h.CallExpression=_("callExpression"),_Se=h.CatchClause=_("catchClause"),NSe=h.ConditionalExpression=_("conditionalExpression"),OSe=h.ContinueStatement=_("continueStatement"),BSe=h.DebuggerStatement=_("debuggerStatement"),kSe=h.DoWhileStatement=_("doWhileStatement"),FSe=h.EmptyStatement=_("emptyStatement"),LSe=h.ExpressionStatement=_("expressionStatement"),jSe=h.File=_("file"),MSe=h.ForInStatement=_("forInStatement"),RSe=h.ForStatement=_("forStatement"),qSe=h.FunctionDeclaration=_("functionDeclaration"),USe=h.FunctionExpression=_("functionExpression"),VSe=h.Identifier=_("identifier"),$Se=h.IfStatement=_("ifStatement"),WSe=h.LabeledStatement=_("labeledStatement"),KSe=h.StringLiteral=_("stringLiteral"),HSe=h.NumericLiteral=_("numericLiteral"),GSe=h.NullLiteral=_("nullLiteral"),XSe=h.BooleanLiteral=_("booleanLiteral"),YSe=h.RegExpLiteral=_("regExpLiteral"),JSe=h.LogicalExpression=_("logicalExpression"),zSe=h.MemberExpression=_("memberExpression"),QSe=h.NewExpression=_("newExpression"),ZSe=h.Program=_("program"),eve=h.ObjectExpression=_("objectExpression"),tve=h.ObjectMethod=_("objectMethod"),rve=h.ObjectProperty=_("objectProperty"),nve=h.RestElement=_("restElement"),sve=h.ReturnStatement=_("returnStatement"),ive=h.SequenceExpression=_("sequenceExpression"),ave=h.ParenthesizedExpression=_("parenthesizedExpression"),ove=h.SwitchCase=_("switchCase"),lve=h.SwitchStatement=_("switchStatement"),uve=h.ThisExpression=_("thisExpression"),cve=h.ThrowStatement=_("throwStatement"),pve=h.TryStatement=_("tryStatement"),fve=h.UnaryExpression=_("unaryExpression"),dve=h.UpdateExpression=_("updateExpression"),hve=h.VariableDeclaration=_("variableDeclaration"),mve=h.VariableDeclarator=_("variableDeclarator"),yve=h.WhileStatement=_("whileStatement"),gve=h.WithStatement=_("withStatement"),bve=h.AssignmentPattern=_("assignmentPattern"),Eve=h.ArrayPattern=_("arrayPattern"),Tve=h.ArrowFunctionExpression=_("arrowFunctionExpression"),xve=h.ClassBody=_("classBody"),Sve=h.ClassExpression=_("classExpression"),vve=h.ClassDeclaration=_("classDeclaration"),Pve=h.ExportAllDeclaration=_("exportAllDeclaration"),Ave=h.ExportDefaultDeclaration=_("exportDefaultDeclaration"),Cve=h.ExportNamedDeclaration=_("exportNamedDeclaration"),Dve=h.ExportSpecifier=_("exportSpecifier"),wve=h.ForOfStatement=_("forOfStatement"),Ive=h.ImportDeclaration=_("importDeclaration"),_ve=h.ImportDefaultSpecifier=_("importDefaultSpecifier"),Nve=h.ImportNamespaceSpecifier=_("importNamespaceSpecifier"),Ove=h.ImportSpecifier=_("importSpecifier"),Bve=h.ImportExpression=_("importExpression"),kve=h.MetaProperty=_("metaProperty"),Fve=h.ClassMethod=_("classMethod"),Lve=h.ObjectPattern=_("objectPattern"),jve=h.SpreadElement=_("spreadElement"),Mve=h.Super=_("super"),Rve=h.TaggedTemplateExpression=_("taggedTemplateExpression"),qve=h.TemplateElement=_("templateElement"),Uve=h.TemplateLiteral=_("templateLiteral"),Vve=h.YieldExpression=_("yieldExpression"),$ve=h.AwaitExpression=_("awaitExpression"),Wve=h.Import=_("import"),Kve=h.BigIntLiteral=_("bigIntLiteral"),Hve=h.ExportNamespaceSpecifier=_("exportNamespaceSpecifier"),Gve=h.OptionalMemberExpression=_("optionalMemberExpression"),Xve=h.OptionalCallExpression=_("optionalCallExpression"),Yve=h.ClassProperty=_("classProperty"),Jve=h.ClassAccessorProperty=_("classAccessorProperty"),zve=h.ClassPrivateProperty=_("classPrivateProperty"),Qve=h.ClassPrivateMethod=_("classPrivateMethod"),Zve=h.PrivateName=_("privateName"),ePe=h.StaticBlock=_("staticBlock"),tPe=h.ImportAttribute=_("importAttribute"),rPe=h.AnyTypeAnnotation=_("anyTypeAnnotation"),nPe=h.ArrayTypeAnnotation=_("arrayTypeAnnotation"),sPe=h.BooleanTypeAnnotation=_("booleanTypeAnnotation"),iPe=h.BooleanLiteralTypeAnnotation=_("booleanLiteralTypeAnnotation"),aPe=h.NullLiteralTypeAnnotation=_("nullLiteralTypeAnnotation"),oPe=h.ClassImplements=_("classImplements"),lPe=h.DeclareClass=_("declareClass"),uPe=h.DeclareFunction=_("declareFunction"),cPe=h.DeclareInterface=_("declareInterface"),pPe=h.DeclareModule=_("declareModule"),fPe=h.DeclareModuleExports=_("declareModuleExports"),dPe=h.DeclareTypeAlias=_("declareTypeAlias"),hPe=h.DeclareOpaqueType=_("declareOpaqueType"),mPe=h.DeclareVariable=_("declareVariable"),yPe=h.DeclareExportDeclaration=_("declareExportDeclaration"),gPe=h.DeclareExportAllDeclaration=_("declareExportAllDeclaration"),bPe=h.DeclaredPredicate=_("declaredPredicate"),EPe=h.ExistsTypeAnnotation=_("existsTypeAnnotation"),TPe=h.FunctionTypeAnnotation=_("functionTypeAnnotation"),xPe=h.FunctionTypeParam=_("functionTypeParam"),SPe=h.GenericTypeAnnotation=_("genericTypeAnnotation"),vPe=h.InferredPredicate=_("inferredPredicate"),PPe=h.InterfaceExtends=_("interfaceExtends"),APe=h.InterfaceDeclaration=_("interfaceDeclaration"),CPe=h.InterfaceTypeAnnotation=_("interfaceTypeAnnotation"),DPe=h.IntersectionTypeAnnotation=_("intersectionTypeAnnotation"),wPe=h.MixedTypeAnnotation=_("mixedTypeAnnotation"),IPe=h.EmptyTypeAnnotation=_("emptyTypeAnnotation"),_Pe=h.NullableTypeAnnotation=_("nullableTypeAnnotation"),NPe=h.NumberLiteralTypeAnnotation=_("numberLiteralTypeAnnotation"),OPe=h.NumberTypeAnnotation=_("numberTypeAnnotation"),BPe=h.ObjectTypeAnnotation=_("objectTypeAnnotation"),kPe=h.ObjectTypeInternalSlot=_("objectTypeInternalSlot"),FPe=h.ObjectTypeCallProperty=_("objectTypeCallProperty"),LPe=h.ObjectTypeIndexer=_("objectTypeIndexer"),jPe=h.ObjectTypeProperty=_("objectTypeProperty"),MPe=h.ObjectTypeSpreadProperty=_("objectTypeSpreadProperty"),RPe=h.OpaqueType=_("opaqueType"),qPe=h.QualifiedTypeIdentifier=_("qualifiedTypeIdentifier"),UPe=h.StringLiteralTypeAnnotation=_("stringLiteralTypeAnnotation"),VPe=h.StringTypeAnnotation=_("stringTypeAnnotation"),$Pe=h.SymbolTypeAnnotation=_("symbolTypeAnnotation"),WPe=h.ThisTypeAnnotation=_("thisTypeAnnotation"),KPe=h.TupleTypeAnnotation=_("tupleTypeAnnotation"),HPe=h.TypeofTypeAnnotation=_("typeofTypeAnnotation"),GPe=h.TypeAlias=_("typeAlias"),XPe=h.TypeAnnotation=_("typeAnnotation"),YPe=h.TypeCastExpression=_("typeCastExpression"),JPe=h.TypeParameter=_("typeParameter"),zPe=h.TypeParameterDeclaration=_("typeParameterDeclaration"),QPe=h.TypeParameterInstantiation=_("typeParameterInstantiation"),ZPe=h.UnionTypeAnnotation=_("unionTypeAnnotation"),eAe=h.Variance=_("variance"),tAe=h.VoidTypeAnnotation=_("voidTypeAnnotation"),rAe=h.EnumDeclaration=_("enumDeclaration"),nAe=h.EnumBooleanBody=_("enumBooleanBody"),sAe=h.EnumNumberBody=_("enumNumberBody"),iAe=h.EnumStringBody=_("enumStringBody"),aAe=h.EnumSymbolBody=_("enumSymbolBody"),oAe=h.EnumBooleanMember=_("enumBooleanMember"),lAe=h.EnumNumberMember=_("enumNumberMember"),uAe=h.EnumStringMember=_("enumStringMember"),cAe=h.EnumDefaultedMember=_("enumDefaultedMember"),pAe=h.IndexedAccessType=_("indexedAccessType"),fAe=h.OptionalIndexedAccessType=_("optionalIndexedAccessType"),dAe=h.JSXAttribute=_("jsxAttribute"),hAe=h.JSXClosingElement=_("jsxClosingElement"),mAe=h.JSXElement=_("jsxElement"),yAe=h.JSXEmptyExpression=_("jsxEmptyExpression"),gAe=h.JSXExpressionContainer=_("jsxExpressionContainer"),bAe=h.JSXSpreadChild=_("jsxSpreadChild"),EAe=h.JSXIdentifier=_("jsxIdentifier"),TAe=h.JSXMemberExpression=_("jsxMemberExpression"),xAe=h.JSXNamespacedName=_("jsxNamespacedName"),SAe=h.JSXOpeningElement=_("jsxOpeningElement"),vAe=h.JSXSpreadAttribute=_("jsxSpreadAttribute"),PAe=h.JSXText=_("jsxText"),AAe=h.JSXFragment=_("jsxFragment"),CAe=h.JSXOpeningFragment=_("jsxOpeningFragment"),DAe=h.JSXClosingFragment=_("jsxClosingFragment"),wAe=h.Noop=_("noop"),IAe=h.Placeholder=_("placeholder"),_Ae=h.V8IntrinsicIdentifier=_("v8IntrinsicIdentifier"),NAe=h.ArgumentPlaceholder=_("argumentPlaceholder"),OAe=h.BindExpression=_("bindExpression"),BAe=h.Decorator=_("decorator"),kAe=h.DoExpression=_("doExpression"),FAe=h.ExportDefaultSpecifier=_("exportDefaultSpecifier"),LAe=h.RecordExpression=_("recordExpression"),jAe=h.TupleExpression=_("tupleExpression"),MAe=h.DecimalLiteral=_("decimalLiteral"),RAe=h.ModuleExpression=_("moduleExpression"),qAe=h.TopicReference=_("topicReference"),UAe=h.PipelineTopicExpression=_("pipelineTopicExpression"),VAe=h.PipelineBareFunction=_("pipelineBareFunction"),$Ae=h.PipelinePrimaryTopicReference=_("pipelinePrimaryTopicReference"),WAe=h.VoidPattern=_("voidPattern"),KAe=h.TSParameterProperty=_("tsParameterProperty"),HAe=h.TSDeclareFunction=_("tsDeclareFunction"),GAe=h.TSDeclareMethod=_("tsDeclareMethod"),XAe=h.TSQualifiedName=_("tsQualifiedName"),YAe=h.TSCallSignatureDeclaration=_("tsCallSignatureDeclaration"),JAe=h.TSConstructSignatureDeclaration=_("tsConstructSignatureDeclaration"),zAe=h.TSPropertySignature=_("tsPropertySignature"),QAe=h.TSMethodSignature=_("tsMethodSignature"),ZAe=h.TSIndexSignature=_("tsIndexSignature"),eCe=h.TSAnyKeyword=_("tsAnyKeyword"),tCe=h.TSBooleanKeyword=_("tsBooleanKeyword"),rCe=h.TSBigIntKeyword=_("tsBigIntKeyword"),nCe=h.TSIntrinsicKeyword=_("tsIntrinsicKeyword"),sCe=h.TSNeverKeyword=_("tsNeverKeyword"),iCe=h.TSNullKeyword=_("tsNullKeyword"),aCe=h.TSNumberKeyword=_("tsNumberKeyword"),oCe=h.TSObjectKeyword=_("tsObjectKeyword"),lCe=h.TSStringKeyword=_("tsStringKeyword"),uCe=h.TSSymbolKeyword=_("tsSymbolKeyword"),cCe=h.TSUndefinedKeyword=_("tsUndefinedKeyword"),pCe=h.TSUnknownKeyword=_("tsUnknownKeyword"),fCe=h.TSVoidKeyword=_("tsVoidKeyword"),dCe=h.TSThisType=_("tsThisType"),hCe=h.TSFunctionType=_("tsFunctionType"),mCe=h.TSConstructorType=_("tsConstructorType"),yCe=h.TSTypeReference=_("tsTypeReference"),gCe=h.TSTypePredicate=_("tsTypePredicate"),bCe=h.TSTypeQuery=_("tsTypeQuery"),ECe=h.TSTypeLiteral=_("tsTypeLiteral"),TCe=h.TSArrayType=_("tsArrayType"),xCe=h.TSTupleType=_("tsTupleType"),SCe=h.TSOptionalType=_("tsOptionalType"),vCe=h.TSRestType=_("tsRestType"),PCe=h.TSNamedTupleMember=_("tsNamedTupleMember"),ACe=h.TSUnionType=_("tsUnionType"),CCe=h.TSIntersectionType=_("tsIntersectionType"),DCe=h.TSConditionalType=_("tsConditionalType"),wCe=h.TSInferType=_("tsInferType"),ICe=h.TSParenthesizedType=_("tsParenthesizedType"),_Ce=h.TSTypeOperator=_("tsTypeOperator"),NCe=h.TSIndexedAccessType=_("tsIndexedAccessType"),OCe=h.TSMappedType=_("tsMappedType"),BCe=h.TSTemplateLiteralType=_("tsTemplateLiteralType"),kCe=h.TSLiteralType=_("tsLiteralType"),FCe=h.TSExpressionWithTypeArguments=_("tsExpressionWithTypeArguments"),LCe=h.TSInterfaceDeclaration=_("tsInterfaceDeclaration"),jCe=h.TSInterfaceBody=_("tsInterfaceBody"),MCe=h.TSTypeAliasDeclaration=_("tsTypeAliasDeclaration"),RCe=h.TSInstantiationExpression=_("tsInstantiationExpression"),qCe=h.TSAsExpression=_("tsAsExpression"),UCe=h.TSSatisfiesExpression=_("tsSatisfiesExpression"),VCe=h.TSTypeAssertion=_("tsTypeAssertion"),$Ce=h.TSEnumBody=_("tsEnumBody"),WCe=h.TSEnumDeclaration=_("tsEnumDeclaration"),KCe=h.TSEnumMember=_("tsEnumMember"),HCe=h.TSModuleDeclaration=_("tsModuleDeclaration"),GCe=h.TSModuleBlock=_("tsModuleBlock"),XCe=h.TSImportType=_("tsImportType"),YCe=h.TSImportEqualsDeclaration=_("tsImportEqualsDeclaration"),JCe=h.TSExternalModuleReference=_("tsExternalModuleReference"),zCe=h.TSNonNullExpression=_("tsNonNullExpression"),QCe=h.TSExportAssignment=_("tsExportAssignment"),ZCe=h.TSNamespaceExportDeclaration=_("tsNamespaceExportDeclaration"),e2e=h.TSTypeAnnotation=_("tsTypeAnnotation"),t2e=h.TSTypeParameterInstantiation=_("tsTypeParameterInstantiation"),r2e=h.TSTypeParameterDeclaration=_("tsTypeParameterDeclaration"),n2e=h.TSTypeParameter=_("tsTypeParameter"),s2e=h.NumberLiteral=So.numberLiteral,i2e=h.RegexLiteral=So.regexLiteral,a2e=h.RestProperty=So.restProperty,o2e=h.SpreadProperty=So.spreadProperty});var Kr=x(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var qd=Rd();Object.keys(qd).forEach(function(e){e==="default"||e==="__esModule"||e in Os&&Os[e]===qd[e]||Object.defineProperty(Os,e,{enumerable:!0,get:function(){return qd[e]}})});var Ud=rx();Object.keys(Ud).forEach(function(e){e==="default"||e==="__esModule"||e in Os&&Os[e]===Ud[e]||Object.defineProperty(Os,e,{enumerable:!0,get:function(){return Ud[e]}})})});var nx=x(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.default=C7;var P7=Kr(),A7=Fe();function C7(e,t){let r=e.value.split(/\r\n|\n|\r/),n=0;for(let i=0;i{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.default=w7;var $d=Wt(),D7=nx();function w7(e){let t=[];for(let r=0;r{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.default=_7;var I7=an();function _7(e){return!!(e&&I7.VISITOR_KEYS[e.type])}});var ix=x(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.default=O7;var N7=Hd();function O7(e){if(!(0,N7.default)(e)){var t;let r=(t=e==null?void 0:e.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}});var ax=x(v=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});v.assertAccessor=Q$;v.assertAnyTypeAnnotation=mq;v.assertArgumentPlaceholder=WU;v.assertArrayExpression=k7;v.assertArrayPattern=O9;v.assertArrayTypeAnnotation=yq;v.assertArrowFunctionExpression=B9;v.assertAssignmentExpression=F7;v.assertAssignmentPattern=N9;v.assertAwaitExpression=rq;v.assertBigIntLiteral=sq;v.assertBinary=E$;v.assertBinaryExpression=L7;v.assertBindExpression=KU;v.assertBlock=S$;v.assertBlockParent=x$;v.assertBlockStatement=q7;v.assertBooleanLiteral=o9;v.assertBooleanLiteralTypeAnnotation=bq;v.assertBooleanTypeAnnotation=gq;v.assertBreakStatement=U7;v.assertCallExpression=V7;v.assertCatchClause=$7;v.assertClass=X$;v.assertClassAccessorProperty=uq;v.assertClassBody=k9;v.assertClassDeclaration=L9;v.assertClassExpression=F9;v.assertClassImplements=Tq;v.assertClassMethod=X9;v.assertClassPrivateMethod=pq;v.assertClassPrivateProperty=cq;v.assertClassProperty=lq;v.assertCompletionStatement=A$;v.assertConditional=C$;v.assertConditionalExpression=W7;v.assertContinueStatement=K7;v.assertDebuggerStatement=H7;v.assertDecimalLiteral=zU;v.assertDeclaration=F$;v.assertDeclareClass=xq;v.assertDeclareExportAllDeclaration=_q;v.assertDeclareExportDeclaration=Iq;v.assertDeclareFunction=Sq;v.assertDeclareInterface=vq;v.assertDeclareModule=Pq;v.assertDeclareModuleExports=Aq;v.assertDeclareOpaqueType=Dq;v.assertDeclareTypeAlias=Cq;v.assertDeclareVariable=wq;v.assertDeclaredPredicate=Nq;v.assertDecorator=HU;v.assertDirective=M7;v.assertDirectiveLiteral=R7;v.assertDoExpression=GU;v.assertDoWhileStatement=G7;v.assertEmptyStatement=X7;v.assertEmptyTypeAnnotation=Vq;v.assertEnumBody=iW;v.assertEnumBooleanBody=yU;v.assertEnumBooleanMember=TU;v.assertEnumDeclaration=mU;v.assertEnumDefaultedMember=vU;v.assertEnumMember=aW;v.assertEnumNumberBody=gU;v.assertEnumNumberMember=xU;v.assertEnumStringBody=bU;v.assertEnumStringMember=SU;v.assertEnumSymbolBody=EU;v.assertExistsTypeAnnotation=Oq;v.assertExportAllDeclaration=j9;v.assertExportDeclaration=J$;v.assertExportDefaultDeclaration=M9;v.assertExportDefaultSpecifier=XU;v.assertExportNamedDeclaration=R9;v.assertExportNamespaceSpecifier=iq;v.assertExportSpecifier=q9;v.assertExpression=b$;v.assertExpressionStatement=Y7;v.assertExpressionWrapper=I$;v.assertFile=J7;v.assertFlow=eW;v.assertFlowBaseAnnotation=rW;v.assertFlowDeclaration=nW;v.assertFlowPredicate=sW;v.assertFlowType=tW;v.assertFor=_$;v.assertForInStatement=z7;v.assertForOfStatement=U9;v.assertForStatement=Q7;v.assertForXStatement=N$;v.assertFunction=O$;v.assertFunctionDeclaration=Z7;v.assertFunctionExpression=e9;v.assertFunctionParameter=L$;v.assertFunctionParent=B$;v.assertFunctionTypeAnnotation=Bq;v.assertFunctionTypeParam=kq;v.assertGenericTypeAnnotation=Fq;v.assertIdentifier=t9;v.assertIfStatement=r9;v.assertImmutable=U$;v.assertImport=nq;v.assertImportAttribute=hq;v.assertImportDeclaration=V9;v.assertImportDefaultSpecifier=$9;v.assertImportExpression=H9;v.assertImportNamespaceSpecifier=W9;v.assertImportOrExportDeclaration=Y$;v.assertImportSpecifier=K9;v.assertIndexedAccessType=PU;v.assertInferredPredicate=Lq;v.assertInterfaceDeclaration=Mq;v.assertInterfaceExtends=jq;v.assertInterfaceTypeAnnotation=Rq;v.assertInterpreterDirective=j7;v.assertIntersectionTypeAnnotation=qq;v.assertJSX=oW;v.assertJSXAttribute=CU;v.assertJSXClosingElement=DU;v.assertJSXClosingFragment=qU;v.assertJSXElement=wU;v.assertJSXEmptyExpression=IU;v.assertJSXExpressionContainer=_U;v.assertJSXFragment=MU;v.assertJSXIdentifier=OU;v.assertJSXMemberExpression=BU;v.assertJSXNamespacedName=kU;v.assertJSXOpeningElement=FU;v.assertJSXOpeningFragment=RU;v.assertJSXSpreadAttribute=LU;v.assertJSXSpreadChild=NU;v.assertJSXText=jU;v.assertLVal=M$;v.assertLabeledStatement=n9;v.assertLiteral=q$;v.assertLogicalExpression=u9;v.assertLoop=D$;v.assertMemberExpression=c9;v.assertMetaProperty=G9;v.assertMethod=$$;v.assertMiscellaneous=lW;v.assertMixedTypeAnnotation=Uq;v.assertModuleDeclaration=gW;v.assertModuleExpression=QU;v.assertModuleSpecifier=z$;v.assertNewExpression=p9;v.assertNoop=UU;v.assertNullLiteral=a9;v.assertNullLiteralTypeAnnotation=Eq;v.assertNullableTypeAnnotation=$q;v.assertNumberLiteral=dW;v.assertNumberLiteralTypeAnnotation=Wq;v.assertNumberTypeAnnotation=Kq;v.assertNumericLiteral=i9;v.assertObjectExpression=d9;v.assertObjectMember=W$;v.assertObjectMethod=h9;v.assertObjectPattern=Y9;v.assertObjectProperty=m9;v.assertObjectTypeAnnotation=Hq;v.assertObjectTypeCallProperty=Xq;v.assertObjectTypeIndexer=Yq;v.assertObjectTypeInternalSlot=Gq;v.assertObjectTypeProperty=Jq;v.assertObjectTypeSpreadProperty=zq;v.assertOpaqueType=Qq;v.assertOptionalCallExpression=oq;v.assertOptionalIndexedAccessType=AU;v.assertOptionalMemberExpression=aq;v.assertParenthesizedExpression=E9;v.assertPattern=G$;v.assertPatternLike=j$;v.assertPipelineBareFunction=tV;v.assertPipelinePrimaryTopicReference=rV;v.assertPipelineTopicExpression=eV;v.assertPlaceholder=VU;v.assertPrivate=Z$;v.assertPrivateName=fq;v.assertProgram=f9;v.assertProperty=K$;v.assertPureish=k$;v.assertQualifiedTypeIdentifier=Zq;v.assertRecordExpression=YU;v.assertRegExpLiteral=l9;v.assertRegexLiteral=hW;v.assertRestElement=y9;v.assertRestProperty=mW;v.assertReturnStatement=g9;v.assertScopable=T$;v.assertSequenceExpression=b9;v.assertSpreadElement=J9;v.assertSpreadProperty=yW;v.assertStandardized=g$;v.assertStatement=v$;v.assertStaticBlock=dq;v.assertStringLiteral=s9;v.assertStringLiteralTypeAnnotation=eU;v.assertStringTypeAnnotation=tU;v.assertSuper=z9;v.assertSwitchCase=T9;v.assertSwitchStatement=x9;v.assertSymbolTypeAnnotation=rU;v.assertTSAnyKeyword=dV;v.assertTSArrayType=BV;v.assertTSAsExpression=ZV;v.assertTSBaseType=fW;v.assertTSBigIntKeyword=mV;v.assertTSBooleanKeyword=hV;v.assertTSCallSignatureDeclaration=lV;v.assertTSConditionalType=qV;v.assertTSConstructSignatureDeclaration=uV;v.assertTSConstructorType=wV;v.assertTSDeclareFunction=iV;v.assertTSDeclareMethod=aV;v.assertTSEntityName=R$;v.assertTSEnumBody=r$;v.assertTSEnumDeclaration=n$;v.assertTSEnumMember=s$;v.assertTSExportAssignment=p$;v.assertTSExpressionWithTypeArguments=XV;v.assertTSExternalModuleReference=u$;v.assertTSFunctionType=DV;v.assertTSImportEqualsDeclaration=l$;v.assertTSImportType=o$;v.assertTSIndexSignature=fV;v.assertTSIndexedAccessType=WV;v.assertTSInferType=UV;v.assertTSInstantiationExpression=QV;v.assertTSInterfaceBody=JV;v.assertTSInterfaceDeclaration=YV;v.assertTSIntersectionType=RV;v.assertTSIntrinsicKeyword=yV;v.assertTSLiteralType=GV;v.assertTSMappedType=KV;v.assertTSMethodSignature=pV;v.assertTSModuleBlock=a$;v.assertTSModuleDeclaration=i$;v.assertTSNamedTupleMember=jV;v.assertTSNamespaceExportDeclaration=f$;v.assertTSNeverKeyword=gV;v.assertTSNonNullExpression=c$;v.assertTSNullKeyword=bV;v.assertTSNumberKeyword=EV;v.assertTSObjectKeyword=TV;v.assertTSOptionalType=FV;v.assertTSParameterProperty=sV;v.assertTSParenthesizedType=VV;v.assertTSPropertySignature=cV;v.assertTSQualifiedName=oV;v.assertTSRestType=LV;v.assertTSSatisfiesExpression=e$;v.assertTSStringKeyword=xV;v.assertTSSymbolKeyword=SV;v.assertTSTemplateLiteralType=HV;v.assertTSThisType=CV;v.assertTSTupleType=kV;v.assertTSType=pW;v.assertTSTypeAliasDeclaration=zV;v.assertTSTypeAnnotation=d$;v.assertTSTypeAssertion=t$;v.assertTSTypeElement=cW;v.assertTSTypeLiteral=OV;v.assertTSTypeOperator=$V;v.assertTSTypeParameter=y$;v.assertTSTypeParameterDeclaration=m$;v.assertTSTypeParameterInstantiation=h$;v.assertTSTypePredicate=_V;v.assertTSTypeQuery=NV;v.assertTSTypeReference=IV;v.assertTSUndefinedKeyword=vV;v.assertTSUnionType=MV;v.assertTSUnknownKeyword=PV;v.assertTSVoidKeyword=AV;v.assertTaggedTemplateExpression=Q9;v.assertTemplateElement=Z9;v.assertTemplateLiteral=eq;v.assertTerminatorless=P$;v.assertThisExpression=S9;v.assertThisTypeAnnotation=nU;v.assertThrowStatement=v9;v.assertTopicReference=ZU;v.assertTryStatement=P9;v.assertTupleExpression=JU;v.assertTupleTypeAnnotation=sU;v.assertTypeAlias=aU;v.assertTypeAnnotation=oU;v.assertTypeCastExpression=lU;v.assertTypeParameter=uU;v.assertTypeParameterDeclaration=cU;v.assertTypeParameterInstantiation=pU;v.assertTypeScript=uW;v.assertTypeofTypeAnnotation=iU;v.assertUnaryExpression=A9;v.assertUnaryLike=H$;v.assertUnionTypeAnnotation=fU;v.assertUpdateExpression=C9;v.assertUserWhitespacable=V$;v.assertV8IntrinsicIdentifier=$U;v.assertVariableDeclaration=D9;v.assertVariableDeclarator=w9;v.assertVariance=dU;v.assertVoidPattern=nV;v.assertVoidTypeAnnotation=hU;v.assertWhile=w$;v.assertWhileStatement=I9;v.assertWithStatement=_9;v.assertYieldExpression=tq;var B7=sa(),vo=na();function P(e,t,r){if(!(0,B7.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function k7(e,t){P("ArrayExpression",e,t)}function F7(e,t){P("AssignmentExpression",e,t)}function L7(e,t){P("BinaryExpression",e,t)}function j7(e,t){P("InterpreterDirective",e,t)}function M7(e,t){P("Directive",e,t)}function R7(e,t){P("DirectiveLiteral",e,t)}function q7(e,t){P("BlockStatement",e,t)}function U7(e,t){P("BreakStatement",e,t)}function V7(e,t){P("CallExpression",e,t)}function $7(e,t){P("CatchClause",e,t)}function W7(e,t){P("ConditionalExpression",e,t)}function K7(e,t){P("ContinueStatement",e,t)}function H7(e,t){P("DebuggerStatement",e,t)}function G7(e,t){P("DoWhileStatement",e,t)}function X7(e,t){P("EmptyStatement",e,t)}function Y7(e,t){P("ExpressionStatement",e,t)}function J7(e,t){P("File",e,t)}function z7(e,t){P("ForInStatement",e,t)}function Q7(e,t){P("ForStatement",e,t)}function Z7(e,t){P("FunctionDeclaration",e,t)}function e9(e,t){P("FunctionExpression",e,t)}function t9(e,t){P("Identifier",e,t)}function r9(e,t){P("IfStatement",e,t)}function n9(e,t){P("LabeledStatement",e,t)}function s9(e,t){P("StringLiteral",e,t)}function i9(e,t){P("NumericLiteral",e,t)}function a9(e,t){P("NullLiteral",e,t)}function o9(e,t){P("BooleanLiteral",e,t)}function l9(e,t){P("RegExpLiteral",e,t)}function u9(e,t){P("LogicalExpression",e,t)}function c9(e,t){P("MemberExpression",e,t)}function p9(e,t){P("NewExpression",e,t)}function f9(e,t){P("Program",e,t)}function d9(e,t){P("ObjectExpression",e,t)}function h9(e,t){P("ObjectMethod",e,t)}function m9(e,t){P("ObjectProperty",e,t)}function y9(e,t){P("RestElement",e,t)}function g9(e,t){P("ReturnStatement",e,t)}function b9(e,t){P("SequenceExpression",e,t)}function E9(e,t){P("ParenthesizedExpression",e,t)}function T9(e,t){P("SwitchCase",e,t)}function x9(e,t){P("SwitchStatement",e,t)}function S9(e,t){P("ThisExpression",e,t)}function v9(e,t){P("ThrowStatement",e,t)}function P9(e,t){P("TryStatement",e,t)}function A9(e,t){P("UnaryExpression",e,t)}function C9(e,t){P("UpdateExpression",e,t)}function D9(e,t){P("VariableDeclaration",e,t)}function w9(e,t){P("VariableDeclarator",e,t)}function I9(e,t){P("WhileStatement",e,t)}function _9(e,t){P("WithStatement",e,t)}function N9(e,t){P("AssignmentPattern",e,t)}function O9(e,t){P("ArrayPattern",e,t)}function B9(e,t){P("ArrowFunctionExpression",e,t)}function k9(e,t){P("ClassBody",e,t)}function F9(e,t){P("ClassExpression",e,t)}function L9(e,t){P("ClassDeclaration",e,t)}function j9(e,t){P("ExportAllDeclaration",e,t)}function M9(e,t){P("ExportDefaultDeclaration",e,t)}function R9(e,t){P("ExportNamedDeclaration",e,t)}function q9(e,t){P("ExportSpecifier",e,t)}function U9(e,t){P("ForOfStatement",e,t)}function V9(e,t){P("ImportDeclaration",e,t)}function $9(e,t){P("ImportDefaultSpecifier",e,t)}function W9(e,t){P("ImportNamespaceSpecifier",e,t)}function K9(e,t){P("ImportSpecifier",e,t)}function H9(e,t){P("ImportExpression",e,t)}function G9(e,t){P("MetaProperty",e,t)}function X9(e,t){P("ClassMethod",e,t)}function Y9(e,t){P("ObjectPattern",e,t)}function J9(e,t){P("SpreadElement",e,t)}function z9(e,t){P("Super",e,t)}function Q9(e,t){P("TaggedTemplateExpression",e,t)}function Z9(e,t){P("TemplateElement",e,t)}function eq(e,t){P("TemplateLiteral",e,t)}function tq(e,t){P("YieldExpression",e,t)}function rq(e,t){P("AwaitExpression",e,t)}function nq(e,t){P("Import",e,t)}function sq(e,t){P("BigIntLiteral",e,t)}function iq(e,t){P("ExportNamespaceSpecifier",e,t)}function aq(e,t){P("OptionalMemberExpression",e,t)}function oq(e,t){P("OptionalCallExpression",e,t)}function lq(e,t){P("ClassProperty",e,t)}function uq(e,t){P("ClassAccessorProperty",e,t)}function cq(e,t){P("ClassPrivateProperty",e,t)}function pq(e,t){P("ClassPrivateMethod",e,t)}function fq(e,t){P("PrivateName",e,t)}function dq(e,t){P("StaticBlock",e,t)}function hq(e,t){P("ImportAttribute",e,t)}function mq(e,t){P("AnyTypeAnnotation",e,t)}function yq(e,t){P("ArrayTypeAnnotation",e,t)}function gq(e,t){P("BooleanTypeAnnotation",e,t)}function bq(e,t){P("BooleanLiteralTypeAnnotation",e,t)}function Eq(e,t){P("NullLiteralTypeAnnotation",e,t)}function Tq(e,t){P("ClassImplements",e,t)}function xq(e,t){P("DeclareClass",e,t)}function Sq(e,t){P("DeclareFunction",e,t)}function vq(e,t){P("DeclareInterface",e,t)}function Pq(e,t){P("DeclareModule",e,t)}function Aq(e,t){P("DeclareModuleExports",e,t)}function Cq(e,t){P("DeclareTypeAlias",e,t)}function Dq(e,t){P("DeclareOpaqueType",e,t)}function wq(e,t){P("DeclareVariable",e,t)}function Iq(e,t){P("DeclareExportDeclaration",e,t)}function _q(e,t){P("DeclareExportAllDeclaration",e,t)}function Nq(e,t){P("DeclaredPredicate",e,t)}function Oq(e,t){P("ExistsTypeAnnotation",e,t)}function Bq(e,t){P("FunctionTypeAnnotation",e,t)}function kq(e,t){P("FunctionTypeParam",e,t)}function Fq(e,t){P("GenericTypeAnnotation",e,t)}function Lq(e,t){P("InferredPredicate",e,t)}function jq(e,t){P("InterfaceExtends",e,t)}function Mq(e,t){P("InterfaceDeclaration",e,t)}function Rq(e,t){P("InterfaceTypeAnnotation",e,t)}function qq(e,t){P("IntersectionTypeAnnotation",e,t)}function Uq(e,t){P("MixedTypeAnnotation",e,t)}function Vq(e,t){P("EmptyTypeAnnotation",e,t)}function $q(e,t){P("NullableTypeAnnotation",e,t)}function Wq(e,t){P("NumberLiteralTypeAnnotation",e,t)}function Kq(e,t){P("NumberTypeAnnotation",e,t)}function Hq(e,t){P("ObjectTypeAnnotation",e,t)}function Gq(e,t){P("ObjectTypeInternalSlot",e,t)}function Xq(e,t){P("ObjectTypeCallProperty",e,t)}function Yq(e,t){P("ObjectTypeIndexer",e,t)}function Jq(e,t){P("ObjectTypeProperty",e,t)}function zq(e,t){P("ObjectTypeSpreadProperty",e,t)}function Qq(e,t){P("OpaqueType",e,t)}function Zq(e,t){P("QualifiedTypeIdentifier",e,t)}function eU(e,t){P("StringLiteralTypeAnnotation",e,t)}function tU(e,t){P("StringTypeAnnotation",e,t)}function rU(e,t){P("SymbolTypeAnnotation",e,t)}function nU(e,t){P("ThisTypeAnnotation",e,t)}function sU(e,t){P("TupleTypeAnnotation",e,t)}function iU(e,t){P("TypeofTypeAnnotation",e,t)}function aU(e,t){P("TypeAlias",e,t)}function oU(e,t){P("TypeAnnotation",e,t)}function lU(e,t){P("TypeCastExpression",e,t)}function uU(e,t){P("TypeParameter",e,t)}function cU(e,t){P("TypeParameterDeclaration",e,t)}function pU(e,t){P("TypeParameterInstantiation",e,t)}function fU(e,t){P("UnionTypeAnnotation",e,t)}function dU(e,t){P("Variance",e,t)}function hU(e,t){P("VoidTypeAnnotation",e,t)}function mU(e,t){P("EnumDeclaration",e,t)}function yU(e,t){P("EnumBooleanBody",e,t)}function gU(e,t){P("EnumNumberBody",e,t)}function bU(e,t){P("EnumStringBody",e,t)}function EU(e,t){P("EnumSymbolBody",e,t)}function TU(e,t){P("EnumBooleanMember",e,t)}function xU(e,t){P("EnumNumberMember",e,t)}function SU(e,t){P("EnumStringMember",e,t)}function vU(e,t){P("EnumDefaultedMember",e,t)}function PU(e,t){P("IndexedAccessType",e,t)}function AU(e,t){P("OptionalIndexedAccessType",e,t)}function CU(e,t){P("JSXAttribute",e,t)}function DU(e,t){P("JSXClosingElement",e,t)}function wU(e,t){P("JSXElement",e,t)}function IU(e,t){P("JSXEmptyExpression",e,t)}function _U(e,t){P("JSXExpressionContainer",e,t)}function NU(e,t){P("JSXSpreadChild",e,t)}function OU(e,t){P("JSXIdentifier",e,t)}function BU(e,t){P("JSXMemberExpression",e,t)}function kU(e,t){P("JSXNamespacedName",e,t)}function FU(e,t){P("JSXOpeningElement",e,t)}function LU(e,t){P("JSXSpreadAttribute",e,t)}function jU(e,t){P("JSXText",e,t)}function MU(e,t){P("JSXFragment",e,t)}function RU(e,t){P("JSXOpeningFragment",e,t)}function qU(e,t){P("JSXClosingFragment",e,t)}function UU(e,t){P("Noop",e,t)}function VU(e,t){P("Placeholder",e,t)}function $U(e,t){P("V8IntrinsicIdentifier",e,t)}function WU(e,t){P("ArgumentPlaceholder",e,t)}function KU(e,t){P("BindExpression",e,t)}function HU(e,t){P("Decorator",e,t)}function GU(e,t){P("DoExpression",e,t)}function XU(e,t){P("ExportDefaultSpecifier",e,t)}function YU(e,t){P("RecordExpression",e,t)}function JU(e,t){P("TupleExpression",e,t)}function zU(e,t){P("DecimalLiteral",e,t)}function QU(e,t){P("ModuleExpression",e,t)}function ZU(e,t){P("TopicReference",e,t)}function eV(e,t){P("PipelineTopicExpression",e,t)}function tV(e,t){P("PipelineBareFunction",e,t)}function rV(e,t){P("PipelinePrimaryTopicReference",e,t)}function nV(e,t){P("VoidPattern",e,t)}function sV(e,t){P("TSParameterProperty",e,t)}function iV(e,t){P("TSDeclareFunction",e,t)}function aV(e,t){P("TSDeclareMethod",e,t)}function oV(e,t){P("TSQualifiedName",e,t)}function lV(e,t){P("TSCallSignatureDeclaration",e,t)}function uV(e,t){P("TSConstructSignatureDeclaration",e,t)}function cV(e,t){P("TSPropertySignature",e,t)}function pV(e,t){P("TSMethodSignature",e,t)}function fV(e,t){P("TSIndexSignature",e,t)}function dV(e,t){P("TSAnyKeyword",e,t)}function hV(e,t){P("TSBooleanKeyword",e,t)}function mV(e,t){P("TSBigIntKeyword",e,t)}function yV(e,t){P("TSIntrinsicKeyword",e,t)}function gV(e,t){P("TSNeverKeyword",e,t)}function bV(e,t){P("TSNullKeyword",e,t)}function EV(e,t){P("TSNumberKeyword",e,t)}function TV(e,t){P("TSObjectKeyword",e,t)}function xV(e,t){P("TSStringKeyword",e,t)}function SV(e,t){P("TSSymbolKeyword",e,t)}function vV(e,t){P("TSUndefinedKeyword",e,t)}function PV(e,t){P("TSUnknownKeyword",e,t)}function AV(e,t){P("TSVoidKeyword",e,t)}function CV(e,t){P("TSThisType",e,t)}function DV(e,t){P("TSFunctionType",e,t)}function wV(e,t){P("TSConstructorType",e,t)}function IV(e,t){P("TSTypeReference",e,t)}function _V(e,t){P("TSTypePredicate",e,t)}function NV(e,t){P("TSTypeQuery",e,t)}function OV(e,t){P("TSTypeLiteral",e,t)}function BV(e,t){P("TSArrayType",e,t)}function kV(e,t){P("TSTupleType",e,t)}function FV(e,t){P("TSOptionalType",e,t)}function LV(e,t){P("TSRestType",e,t)}function jV(e,t){P("TSNamedTupleMember",e,t)}function MV(e,t){P("TSUnionType",e,t)}function RV(e,t){P("TSIntersectionType",e,t)}function qV(e,t){P("TSConditionalType",e,t)}function UV(e,t){P("TSInferType",e,t)}function VV(e,t){P("TSParenthesizedType",e,t)}function $V(e,t){P("TSTypeOperator",e,t)}function WV(e,t){P("TSIndexedAccessType",e,t)}function KV(e,t){P("TSMappedType",e,t)}function HV(e,t){P("TSTemplateLiteralType",e,t)}function GV(e,t){P("TSLiteralType",e,t)}function XV(e,t){P("TSExpressionWithTypeArguments",e,t)}function YV(e,t){P("TSInterfaceDeclaration",e,t)}function JV(e,t){P("TSInterfaceBody",e,t)}function zV(e,t){P("TSTypeAliasDeclaration",e,t)}function QV(e,t){P("TSInstantiationExpression",e,t)}function ZV(e,t){P("TSAsExpression",e,t)}function e$(e,t){P("TSSatisfiesExpression",e,t)}function t$(e,t){P("TSTypeAssertion",e,t)}function r$(e,t){P("TSEnumBody",e,t)}function n$(e,t){P("TSEnumDeclaration",e,t)}function s$(e,t){P("TSEnumMember",e,t)}function i$(e,t){P("TSModuleDeclaration",e,t)}function a$(e,t){P("TSModuleBlock",e,t)}function o$(e,t){P("TSImportType",e,t)}function l$(e,t){P("TSImportEqualsDeclaration",e,t)}function u$(e,t){P("TSExternalModuleReference",e,t)}function c$(e,t){P("TSNonNullExpression",e,t)}function p$(e,t){P("TSExportAssignment",e,t)}function f$(e,t){P("TSNamespaceExportDeclaration",e,t)}function d$(e,t){P("TSTypeAnnotation",e,t)}function h$(e,t){P("TSTypeParameterInstantiation",e,t)}function m$(e,t){P("TSTypeParameterDeclaration",e,t)}function y$(e,t){P("TSTypeParameter",e,t)}function g$(e,t){P("Standardized",e,t)}function b$(e,t){P("Expression",e,t)}function E$(e,t){P("Binary",e,t)}function T$(e,t){P("Scopable",e,t)}function x$(e,t){P("BlockParent",e,t)}function S$(e,t){P("Block",e,t)}function v$(e,t){P("Statement",e,t)}function P$(e,t){P("Terminatorless",e,t)}function A$(e,t){P("CompletionStatement",e,t)}function C$(e,t){P("Conditional",e,t)}function D$(e,t){P("Loop",e,t)}function w$(e,t){P("While",e,t)}function I$(e,t){P("ExpressionWrapper",e,t)}function _$(e,t){P("For",e,t)}function N$(e,t){P("ForXStatement",e,t)}function O$(e,t){P("Function",e,t)}function B$(e,t){P("FunctionParent",e,t)}function k$(e,t){P("Pureish",e,t)}function F$(e,t){P("Declaration",e,t)}function L$(e,t){P("FunctionParameter",e,t)}function j$(e,t){P("PatternLike",e,t)}function M$(e,t){P("LVal",e,t)}function R$(e,t){P("TSEntityName",e,t)}function q$(e,t){P("Literal",e,t)}function U$(e,t){P("Immutable",e,t)}function V$(e,t){P("UserWhitespacable",e,t)}function $$(e,t){P("Method",e,t)}function W$(e,t){P("ObjectMember",e,t)}function K$(e,t){P("Property",e,t)}function H$(e,t){P("UnaryLike",e,t)}function G$(e,t){P("Pattern",e,t)}function X$(e,t){P("Class",e,t)}function Y$(e,t){P("ImportOrExportDeclaration",e,t)}function J$(e,t){P("ExportDeclaration",e,t)}function z$(e,t){P("ModuleSpecifier",e,t)}function Q$(e,t){P("Accessor",e,t)}function Z$(e,t){P("Private",e,t)}function eW(e,t){P("Flow",e,t)}function tW(e,t){P("FlowType",e,t)}function rW(e,t){P("FlowBaseAnnotation",e,t)}function nW(e,t){P("FlowDeclaration",e,t)}function sW(e,t){P("FlowPredicate",e,t)}function iW(e,t){P("EnumBody",e,t)}function aW(e,t){P("EnumMember",e,t)}function oW(e,t){P("JSX",e,t)}function lW(e,t){P("Miscellaneous",e,t)}function uW(e,t){P("TypeScript",e,t)}function cW(e,t){P("TSTypeElement",e,t)}function pW(e,t){P("TSType",e,t)}function fW(e,t){P("TSBaseType",e,t)}function dW(e,t){(0,vo.default)("assertNumberLiteral","assertNumericLiteral"),P("NumberLiteral",e,t)}function hW(e,t){(0,vo.default)("assertRegexLiteral","assertRegExpLiteral"),P("RegexLiteral",e,t)}function mW(e,t){(0,vo.default)("assertRestProperty","assertRestElement"),P("RestProperty",e,t)}function yW(e,t){(0,vo.default)("assertSpreadProperty","assertSpreadElement"),P("SpreadProperty",e,t)}function gW(e,t){(0,vo.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),P("ModuleDeclaration",e,t)}});var ox=x(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.default=void 0;var xn=Kr(),m2e=hu.default=bW;function bW(e){switch(e){case"string":return(0,xn.stringTypeAnnotation)();case"number":return(0,xn.numberTypeAnnotation)();case"undefined":return(0,xn.voidTypeAnnotation)();case"boolean":return(0,xn.booleanTypeAnnotation)();case"function":return(0,xn.genericTypeAnnotation)((0,xn.identifier)("Function"));case"object":return(0,xn.genericTypeAnnotation)((0,xn.identifier)("Object"));case"symbol":return(0,xn.genericTypeAnnotation)((0,xn.identifier)("Symbol"));case"bigint":return(0,xn.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}});var Yd=x(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.default=ux;var Po=Wt();function lx(e){return(0,Po.isIdentifier)(e)?e.name:`${e.id.name}.${lx(e.qualification)}`}function ux(e){let t=Array.from(e),r=new Map,n=new Map,s=new Set,i=[];for(let a=0;a{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.default=xW;var EW=Kr(),TW=Yd();function xW(e){let t=(0,TW.default)(e);return t.length===1?t[0]:(0,EW.unionTypeAnnotation)(t)}});var dx=x(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.default=fx;var fa=Wt();function px(e){return(0,fa.isIdentifier)(e)?e.name:(0,fa.isThisExpression)(e)?"this":`${e.right.name}.${px(e.left)}`}function fx(e){let t=Array.from(e),r=new Map,n=new Map,s=new Set,i=[];for(let a=0;a{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.default=AW;var SW=Kr(),vW=dx(),PW=Wt();function AW(e){let t=e.map(n=>(0,PW.isTSTypeAnnotation)(n)?n.typeAnnotation:n),r=(0,vW.default)(t);return r.length===1?r[0]:(0,SW.tsUnionType)(r)}});var eh=x(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.buildUndefinedNode=CW;var mx=Kr();function CW(){return(0,mx.unaryExpression)("void",(0,mx.numericLiteral)(0),!0)}});var Bs=x(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.default=DW;var yx=an(),gx=Wt(),{hasOwn:Un}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function bx(e,t,r,n){return e&&typeof e.type=="string"?Ex(e,t,r,n):e}function th(e,t,r,n){return Array.isArray(e)?e.map(s=>bx(s,t,r,n)):bx(e,t,r,n)}function DW(e,t=!0,r=!1){return Ex(e,t,r,new Map)}function Ex(e,t=!0,r=!1,n){if(!e)return e;let{type:s}=e,i={type:e.type};if((0,gx.isIdentifier)(e))i.name=e.name,Un(e,"optional")&&typeof e.optional=="boolean"&&(i.optional=e.optional),Un(e,"typeAnnotation")&&(i.typeAnnotation=t?th(e.typeAnnotation,!0,r,n):e.typeAnnotation),Un(e,"decorators")&&(i.decorators=t?th(e.decorators,!0,r,n):e.decorators);else if(Un(yx.NODE_FIELDS,s))for(let a of Object.keys(yx.NODE_FIELDS[s]))Un(e,a)&&(t?i[a]=(0,gx.isFile)(e)&&a==="comments"?mu(e.comments,t,r,n):th(e[a],!0,r,n):i[a]=e[a]);else throw new Error(`Unknown node type: "${s}"`);return Un(e,"loc")&&(r?i.loc=null:i.loc=e.loc),Un(e,"leadingComments")&&(i.leadingComments=mu(e.leadingComments,t,r,n)),Un(e,"innerComments")&&(i.innerComments=mu(e.innerComments,t,r,n)),Un(e,"trailingComments")&&(i.trailingComments=mu(e.trailingComments,t,r,n)),Un(e,"extra")&&(i.extra=Object.assign({},e.extra)),i}function mu(e,t,r,n){return!e||!t?e:e.map(s=>{let i=n.get(s);if(i)return i;let{type:a,value:o,loc:l}=s,u={type:a,value:o,loc:l};return r&&(u.loc=null),n.set(s,u),u})}});var Tx=x(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.default=IW;var wW=Bs();function IW(e){return(0,wW.default)(e,!1)}});var xx=x(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.default=NW;var _W=Bs();function NW(e){return(0,_W.default)(e)}});var Sx=x(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.default=BW;var OW=Bs();function BW(e){return(0,OW.default)(e,!0,!0)}});var vx=x(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.default=FW;var kW=Bs();function FW(e){return(0,kW.default)(e,!1,!0)}});var lh=x(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.default=LW;function LW(e,t,r){if(!r||!e)return e;let n=`${t}Comments`;return e[n]?t==="leading"?e[n]=r.concat(e[n]):e[n].push(...r):e[n]=r,e}});var Px=x(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.default=MW;var jW=lh();function MW(e,t,r,n){return(0,jW.default)(e,t,[{type:n?"CommentLine":"CommentBlock",value:r}])}});var yu=x(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.default=RW;function RW(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}});var fh=x(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.default=UW;var qW=yu();function UW(e,t){(0,qW.default)("innerComments",e,t)}});var hh=x(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.default=$W;var VW=yu();function $W(e,t){(0,VW.default)("leadingComments",e,t)}});var yh=x(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});mh.default=KW;var WW=yu();function KW(e,t){(0,WW.default)("trailingComments",e,t)}});var bh=x(gh=>{"use strict";Object.defineProperty(gh,"__esModule",{value:!0});gh.default=YW;var HW=yh(),GW=hh(),XW=fh();function YW(e,t){return(0,HW.default)(e,t),(0,GW.default)(e,t),(0,XW.default)(e,t),e}});var Ax=x(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});Eh.default=zW;var JW=oa();function zW(e){return JW.COMMENT_KEYS.forEach(t=>{e[t]=null}),e}});var Cx=x(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.WHILE_TYPES=ne.USERWHITESPACABLE_TYPES=ne.UNARYLIKE_TYPES=ne.TYPESCRIPT_TYPES=ne.TSTYPE_TYPES=ne.TSTYPEELEMENT_TYPES=ne.TSENTITYNAME_TYPES=ne.TSBASETYPE_TYPES=ne.TERMINATORLESS_TYPES=ne.STATEMENT_TYPES=ne.STANDARDIZED_TYPES=ne.SCOPABLE_TYPES=ne.PUREISH_TYPES=ne.PROPERTY_TYPES=ne.PRIVATE_TYPES=ne.PATTERN_TYPES=ne.PATTERNLIKE_TYPES=ne.OBJECTMEMBER_TYPES=ne.MODULESPECIFIER_TYPES=ne.MODULEDECLARATION_TYPES=ne.MISCELLANEOUS_TYPES=ne.METHOD_TYPES=ne.LVAL_TYPES=ne.LOOP_TYPES=ne.LITERAL_TYPES=ne.JSX_TYPES=ne.IMPORTOREXPORTDECLARATION_TYPES=ne.IMMUTABLE_TYPES=ne.FUNCTION_TYPES=ne.FUNCTIONPARENT_TYPES=ne.FUNCTIONPARAMETER_TYPES=ne.FOR_TYPES=ne.FORXSTATEMENT_TYPES=ne.FLOW_TYPES=ne.FLOWTYPE_TYPES=ne.FLOWPREDICATE_TYPES=ne.FLOWDECLARATION_TYPES=ne.FLOWBASEANNOTATION_TYPES=ne.EXPRESSION_TYPES=ne.EXPRESSIONWRAPPER_TYPES=ne.EXPORTDECLARATION_TYPES=ne.ENUMMEMBER_TYPES=ne.ENUMBODY_TYPES=ne.DECLARATION_TYPES=ne.CONDITIONAL_TYPES=ne.COMPLETIONSTATEMENT_TYPES=ne.CLASS_TYPES=ne.BLOCK_TYPES=ne.BLOCKPARENT_TYPES=ne.BINARY_TYPES=ne.ACCESSOR_TYPES=void 0;var Me=an(),F2e=ne.STANDARDIZED_TYPES=Me.FLIPPED_ALIAS_KEYS.Standardized,L2e=ne.EXPRESSION_TYPES=Me.FLIPPED_ALIAS_KEYS.Expression,j2e=ne.BINARY_TYPES=Me.FLIPPED_ALIAS_KEYS.Binary,M2e=ne.SCOPABLE_TYPES=Me.FLIPPED_ALIAS_KEYS.Scopable,R2e=ne.BLOCKPARENT_TYPES=Me.FLIPPED_ALIAS_KEYS.BlockParent,q2e=ne.BLOCK_TYPES=Me.FLIPPED_ALIAS_KEYS.Block,U2e=ne.STATEMENT_TYPES=Me.FLIPPED_ALIAS_KEYS.Statement,V2e=ne.TERMINATORLESS_TYPES=Me.FLIPPED_ALIAS_KEYS.Terminatorless,$2e=ne.COMPLETIONSTATEMENT_TYPES=Me.FLIPPED_ALIAS_KEYS.CompletionStatement,W2e=ne.CONDITIONAL_TYPES=Me.FLIPPED_ALIAS_KEYS.Conditional,K2e=ne.LOOP_TYPES=Me.FLIPPED_ALIAS_KEYS.Loop,H2e=ne.WHILE_TYPES=Me.FLIPPED_ALIAS_KEYS.While,G2e=ne.EXPRESSIONWRAPPER_TYPES=Me.FLIPPED_ALIAS_KEYS.ExpressionWrapper,X2e=ne.FOR_TYPES=Me.FLIPPED_ALIAS_KEYS.For,Y2e=ne.FORXSTATEMENT_TYPES=Me.FLIPPED_ALIAS_KEYS.ForXStatement,J2e=ne.FUNCTION_TYPES=Me.FLIPPED_ALIAS_KEYS.Function,z2e=ne.FUNCTIONPARENT_TYPES=Me.FLIPPED_ALIAS_KEYS.FunctionParent,Q2e=ne.PUREISH_TYPES=Me.FLIPPED_ALIAS_KEYS.Pureish,Z2e=ne.DECLARATION_TYPES=Me.FLIPPED_ALIAS_KEYS.Declaration,eDe=ne.FUNCTIONPARAMETER_TYPES=Me.FLIPPED_ALIAS_KEYS.FunctionParameter,tDe=ne.PATTERNLIKE_TYPES=Me.FLIPPED_ALIAS_KEYS.PatternLike,rDe=ne.LVAL_TYPES=Me.FLIPPED_ALIAS_KEYS.LVal,nDe=ne.TSENTITYNAME_TYPES=Me.FLIPPED_ALIAS_KEYS.TSEntityName,sDe=ne.LITERAL_TYPES=Me.FLIPPED_ALIAS_KEYS.Literal,iDe=ne.IMMUTABLE_TYPES=Me.FLIPPED_ALIAS_KEYS.Immutable,aDe=ne.USERWHITESPACABLE_TYPES=Me.FLIPPED_ALIAS_KEYS.UserWhitespacable,oDe=ne.METHOD_TYPES=Me.FLIPPED_ALIAS_KEYS.Method,lDe=ne.OBJECTMEMBER_TYPES=Me.FLIPPED_ALIAS_KEYS.ObjectMember,uDe=ne.PROPERTY_TYPES=Me.FLIPPED_ALIAS_KEYS.Property,cDe=ne.UNARYLIKE_TYPES=Me.FLIPPED_ALIAS_KEYS.UnaryLike,pDe=ne.PATTERN_TYPES=Me.FLIPPED_ALIAS_KEYS.Pattern,fDe=ne.CLASS_TYPES=Me.FLIPPED_ALIAS_KEYS.Class,QW=ne.IMPORTOREXPORTDECLARATION_TYPES=Me.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,dDe=ne.EXPORTDECLARATION_TYPES=Me.FLIPPED_ALIAS_KEYS.ExportDeclaration,hDe=ne.MODULESPECIFIER_TYPES=Me.FLIPPED_ALIAS_KEYS.ModuleSpecifier,mDe=ne.ACCESSOR_TYPES=Me.FLIPPED_ALIAS_KEYS.Accessor,yDe=ne.PRIVATE_TYPES=Me.FLIPPED_ALIAS_KEYS.Private,gDe=ne.FLOW_TYPES=Me.FLIPPED_ALIAS_KEYS.Flow,bDe=ne.FLOWTYPE_TYPES=Me.FLIPPED_ALIAS_KEYS.FlowType,EDe=ne.FLOWBASEANNOTATION_TYPES=Me.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,TDe=ne.FLOWDECLARATION_TYPES=Me.FLIPPED_ALIAS_KEYS.FlowDeclaration,xDe=ne.FLOWPREDICATE_TYPES=Me.FLIPPED_ALIAS_KEYS.FlowPredicate,SDe=ne.ENUMBODY_TYPES=Me.FLIPPED_ALIAS_KEYS.EnumBody,vDe=ne.ENUMMEMBER_TYPES=Me.FLIPPED_ALIAS_KEYS.EnumMember,PDe=ne.JSX_TYPES=Me.FLIPPED_ALIAS_KEYS.JSX,ADe=ne.MISCELLANEOUS_TYPES=Me.FLIPPED_ALIAS_KEYS.Miscellaneous,CDe=ne.TYPESCRIPT_TYPES=Me.FLIPPED_ALIAS_KEYS.TypeScript,DDe=ne.TSTYPEELEMENT_TYPES=Me.FLIPPED_ALIAS_KEYS.TSTypeElement,wDe=ne.TSTYPE_TYPES=Me.FLIPPED_ALIAS_KEYS.TSType,IDe=ne.TSBASETYPE_TYPES=Me.FLIPPED_ALIAS_KEYS.TSBaseType,_De=ne.MODULEDECLARATION_TYPES=QW});var Sh=x(xh=>{"use strict";Object.defineProperty(xh,"__esModule",{value:!0});xh.default=ZW;var gu=Wt(),Th=Kr();function ZW(e,t){if((0,gu.isBlockStatement)(e))return e;let r=[];return(0,gu.isEmptyStatement)(e)?r=[]:((0,gu.isStatement)(e)||((0,gu.isFunction)(t)?e=(0,Th.returnStatement)(e):e=(0,Th.expressionStatement)(e)),r=[e]),(0,Th.blockStatement)(r)}});var Dx=x(vh=>{"use strict";Object.defineProperty(vh,"__esModule",{value:!0});vh.default=tK;var eK=Sh();function tK(e,t="body"){let r=(0,eK.default)(e[t],e);return e[t]=r,r}});var Ah=x(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});Ph.default=sK;var rK=aa(),nK=ia();function sK(e){e=e+"";let t="";for(let r of e)t+=(0,nK.isIdentifierChar)(r.codePointAt(0))?r:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,n){return n?n.toUpperCase():""}),(0,rK.default)(t)||(t=`_${t}`),t||"_"}});var wx=x(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.default=aK;var iK=Ah();function aK(e){return e=(0,iK.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}});var Ix=x(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});Dh.default=uK;var oK=Wt(),lK=Kr();function uK(e,t=e.key||e.property){return!e.computed&&(0,oK.isIdentifier)(t)&&(t=(0,lK.stringLiteral)(t.name)),t}});var _x=x(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.default=void 0;var Ao=Wt(),jDe=bu.default=cK;function cK(e){if((0,Ao.isExpressionStatement)(e)&&(e=e.expression),(0,Ao.isExpression)(e))return e;if((0,Ao.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,Ao.isFunction)(e)&&(e.type="FunctionExpression"),!(0,Ao.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}});var Ih=x(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});wh.default=Co;var pK=an(),Nx=Symbol(),Ox=Symbol();function Co(e,t,r){if(!e)return!1;let n=pK.VISITOR_KEYS[e.type];if(!n)return!1;r=r||{};let s=t(e,r);if(s!==void 0)switch(s){case Nx:return!1;case Ox:return!0}for(let i of n){let a=e[i];if(a){if(Array.isArray(a)){for(let o of a)if(Co(o,t,r))return!0}else if(Co(a,t,r))return!0}}return!1}Co.skip=Nx;Co.stop=Ox});var Nh=x(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.default=hK;var fK=oa(),Bx=["tokens","start","end","loc","raw","rawValue"],dK=[...fK.COMMENT_KEYS,"comments",...Bx];function hK(e,t={}){let r=t.preserveComments?Bx:dK;for(let s of r)e[s]!=null&&(e[s]=void 0);for(let s of Object.keys(e))s[0]==="_"&&e[s]!=null&&(e[s]=void 0);let n=Object.getOwnPropertySymbols(e);for(let s of n)e[s]=null}});var Bh=x(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.default=gK;var mK=Ih(),yK=Nh();function gK(e,t){return(0,mK.default)(e,yK.default,t),e}});var Fx=x(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});kh.default=hi;var kx=Wt(),bK=Bs(),EK=Bh();function hi(e,t=e.key){let r;return e.kind==="method"?hi.increment()+"":((0,kx.isIdentifier)(t)?r=t.name:(0,kx.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0,EK.default)((0,bK.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}hi.uid=0;hi.increment=function(){return hi.uid>=Number.MAX_SAFE_INTEGER?hi.uid=0:hi.uid++}});var Lx=x(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.default=void 0;var Eu=Wt(),TK=Kr(),$De=Tu.default=xK;function xK(e,t){if((0,Eu.isStatement)(e))return e;let r=!1,n;if((0,Eu.isClass)(e))r=!0,n="ClassDeclaration";else if((0,Eu.isFunction)(e))r=!0,n="FunctionDeclaration";else if((0,Eu.isAssignmentExpression)(e))return(0,TK.expressionStatement)(e);if(r&&!e.id&&(n=!1),!n){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=n,e}});var jx=x(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.default=void 0;var SK=aa(),tr=Kr(),KDe=xu.default=Fh,vK=Function.call.bind(Object.prototype.toString);function PK(e){return vK(e)==="[object RegExp]"}function AK(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Fh(e){if(e===void 0)return(0,tr.identifier)("undefined");if(e===!0||e===!1)return(0,tr.booleanLiteral)(e);if(e===null)return(0,tr.nullLiteral)();if(typeof e=="string")return(0,tr.stringLiteral)(e);if(typeof e=="number"){let t;if(Number.isFinite(e))t=(0,tr.numericLiteral)(Math.abs(e));else{let r;Number.isNaN(e)?r=(0,tr.numericLiteral)(0):r=(0,tr.numericLiteral)(1),t=(0,tr.binaryExpression)("/",r,(0,tr.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,tr.unaryExpression)("-",t)),t}if(typeof e=="bigint")return e<0?(0,tr.unaryExpression)("-",(0,tr.bigIntLiteral)(-e)):(0,tr.bigIntLiteral)(e);if(PK(e)){let t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,tr.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,tr.arrayExpression)(e.map(Fh));if(AK(e)){let t=[];for(let r of Object.keys(e)){let n,s=!1;(0,SK.default)(r)?r==="__proto__"?(s=!0,n=(0,tr.stringLiteral)(r)):n=(0,tr.identifier)(r):n=(0,tr.stringLiteral)(r),t.push((0,tr.objectProperty)(n,Fh(e[r]),s))}return(0,tr.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}});var Mx=x(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});Lh.default=DK;var CK=Kr();function DK(e,t,r=!1){return e.object=(0,CK.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var qx=x(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});jh.default=IK;var Rx=oa(),wK=bh();function IK(e,t){if(!e||!t)return e;for(let r of Rx.INHERIT_KEYS.optional)e[r]==null&&(e[r]=t[r]);for(let r of Object.keys(t))r[0]==="_"&&r!=="__clone"&&(e[r]=t[r]);for(let r of Rx.INHERIT_KEYS.force)e[r]=t[r];return(0,wK.default)(e,t),e}});var Ux=x(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});Mh.default=OK;var _K=Kr(),NK=Fe();function OK(e,t){if((0,NK.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,_K.memberExpression)(t,e.object),e}});var Vx=x(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});Rh.default=BK;function BK(e){let t=[].concat(e),r=Object.create(null);for(;t.length;){let n=t.pop();if(n)switch(n.type){case"ArrayPattern":t.push(...n.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(n.left);break;case"ObjectPattern":t.push(...n.properties);break;case"ObjectProperty":t.push(n.value);break;case"RestElement":case"UpdateExpression":t.push(n.argument);break;case"UnaryExpression":n.operator==="delete"&&t.push(n.argument);break;case"Identifier":r[n.name]=n;break;default:break}}return r}});var Do=x(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.default=qh;var Zn=Wt();function qh(e,t,r,n){let s=[].concat(e),i=Object.create(null);for(;s.length;){let a=s.shift();if(!a||n&&((0,Zn.isAssignmentExpression)(a)||(0,Zn.isUnaryExpression)(a)||(0,Zn.isUpdateExpression)(a)))continue;if((0,Zn.isIdentifier)(a)){t?(i[a.name]=i[a.name]||[]).push(a):i[a.name]=a;continue}if((0,Zn.isExportDeclaration)(a)&&!(0,Zn.isExportAllDeclaration)(a)){(0,Zn.isDeclaration)(a.declaration)&&s.push(a.declaration);continue}if(r){if((0,Zn.isFunctionDeclaration)(a)){s.push(a.id);continue}if((0,Zn.isFunctionExpression)(a))continue}let o=qh.keys[a.type];if(o)for(let l=0;l{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.default=void 0;var FK=Do(),QDe=Su.default=LK;function LK(e,t){return(0,FK.default)(e,t,!0)}});var Kx=x(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});Vh.default=MK;var on=Wt();function jK(e){return(0,on.isNullLiteral)(e)?"null":(0,on.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,on.isTemplateLiteral)(e)?e.quasis.map(t=>t.value.raw).join(""):e.value!==void 0?String(e.value):null}function Wx(e){if(!e.computed||(0,on.isLiteral)(e.key))return e.key}function MK(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let r="",n;if((0,on.isObjectProperty)(t,{value:e})?n=Wx(t):(0,on.isObjectMethod)(e)||(0,on.isClassMethod)(e)?(n=Wx(e),e.kind==="get"?r="get ":e.kind==="set"&&(r="set ")):(0,on.isVariableDeclarator)(t,{init:e})?n=t.id:(0,on.isAssignmentExpression)(t,{operator:"=",right:e})&&(n=t.left),!n)return null;let s=(0,on.isLiteral)(n)?jK(n):(0,on.isIdentifier)(n)?n.name:(0,on.isPrivateName)(n)?n.id.name:null;return s==null?null:{name:r+s,originalNode:n}}});var Hx=x(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});Wh.default=qK;var RK=an();function qK(e,t,r){typeof t=="function"&&(t={enter:t});let{enter:n,exit:s}=t;$h(e,n,s,r,[])}function $h(e,t,r,n,s){let i=RK.VISITOR_KEYS[e.type];if(i){t&&t(e,s,n);for(let a of i){let o=e[a];if(Array.isArray(o))for(let l=0;l{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});Kh.default=VK;var UK=Do();function VK(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let n=UK.default.keys[t.type];if(n)for(let s=0;s{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});Hh.default=WK;var $K=Wt();Xx=Symbol.for("var used to be block scoped");var Xx;function WK(e){return(0,$K.isVariableDeclaration)(e)&&(e.kind!=="var"||e[Xx])}});var Jx=x(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});Xh.default=HK;var Yx=Wt(),KK=Gh();function HK(e){return(0,Yx.isFunctionDeclaration)(e)||(0,Yx.isClassDeclaration)(e)||(0,KK.default)(e)}});var zx=x(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});Yh.default=YK;var GK=su(),XK=Wt();function YK(e){return(0,GK.default)(e.type,"Immutable")?!0:(0,XK.isIdentifier)(e)?e.name==="undefined":!1}});var Zx=x(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});zh.default=Jh;var Qx=an();function Jh(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return!1;let r=Object.keys(Qx.NODE_FIELDS[e.type]||e.type),n=Qx.VISITOR_KEYS[e.type];for(let s of r){let i=e[s],a=t[s];if(typeof i!=typeof a)return!1;if(!(i==null&&a==null)){if(i==null||a==null)return!1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(let o=0;o{"use strict";Object.defineProperty(Qh,"__esModule",{value:!0});Qh.default=JK;function JK(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e?!!t.computed:!1;case"ObjectProperty":return t.key===e?!!t.computed:!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return t.key===e?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return r!=null&&r.source?!1:t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key===e?!!t.computed:!0}return!0}});var tS=x(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});Zh.default=zK;var mi=Wt();function zK(e,t){return(0,mi.isBlockStatement)(e)&&((0,mi.isFunction)(t)||(0,mi.isCatchClause)(t))?!1:(0,mi.isPattern)(e)&&((0,mi.isFunction)(t)||(0,mi.isCatchClause)(t))?!0:(0,mi.isScopable)(e)}});var nS=x(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});em.default=QK;var rS=Wt();function QK(e){return(0,rS.isImportDefaultSpecifier)(e)||(0,rS.isIdentifier)(e.imported||e.exported,{name:"default"})}});var sS=x(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});tm.default=tH;var ZK=aa(),eH=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function tH(e){return(0,ZK.default)(e)&&!eH.has(e)}});var aS=x(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.default=nH;var rH=Wt();iS=Symbol.for("var used to be block scoped");var iS;function nH(e){return(0,rH.isVariableDeclaration)(e,{kind:"var"})&&!e[iS]}});var oS=x(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.default=vu;var sH=Do(),yi=Wt(),nm=Kr(),sm=eh(),iH=Bs();function vu(e,t){let r=[],n=!0;for(let s of e)if((0,yi.isEmptyStatement)(s)||(n=!1),(0,yi.isExpression)(s))r.push(s);else if((0,yi.isExpressionStatement)(s))r.push(s.expression);else if((0,yi.isVariableDeclaration)(s)){if(s.kind!=="var")return;for(let i of s.declarations){let a=(0,sH.default)(i);for(let o of Object.keys(a))t.push({kind:s.kind,id:(0,iH.default)(a[o])});i.init&&r.push((0,nm.assignmentExpression)("=",i.id,i.init))}n=!0}else if((0,yi.isIfStatement)(s)){let i=s.consequent?vu([s.consequent],t):(0,sm.buildUndefinedNode)(),a=s.alternate?vu([s.alternate],t):(0,sm.buildUndefinedNode)();if(!i||!a)return;r.push((0,nm.conditionalExpression)(s.test,i,a))}else if((0,yi.isBlockStatement)(s)){let i=vu(s.body,t);if(!i)return;r.push(i)}else if((0,yi.isEmptyStatement)(s))e.indexOf(s)===0&&(n=!0);else return;return n&&r.push((0,sm.buildUndefinedNode)()),r.length===1?r[0]:(0,nm.sequenceExpression)(r)}});var lS=x(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.default=oH;var aH=oS();function oH(e,t){if(!(e!=null&&e.length))return;let r=[],n=(0,aH.default)(e,r);if(n){for(let s of r)t.push(s);return n}}});var Fe=x(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});var ks={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(le,"__internal__deprecationWarning",{enumerable:!0,get:function(){return pG.default}});Object.defineProperty(le,"addComment",{enumerable:!0,get:function(){return EH.default}});Object.defineProperty(le,"addComments",{enumerable:!0,get:function(){return TH.default}});Object.defineProperty(le,"appendToMemberExpression",{enumerable:!0,get:function(){return FH.default}});Object.defineProperty(le,"assertNode",{enumerable:!0,get:function(){return pH.default}});Object.defineProperty(le,"buildMatchMemberExpression",{enumerable:!0,get:function(){return cG.default}});Object.defineProperty(le,"clone",{enumerable:!0,get:function(){return mH.default}});Object.defineProperty(le,"cloneDeep",{enumerable:!0,get:function(){return yH.default}});Object.defineProperty(le,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return gH.default}});Object.defineProperty(le,"cloneNode",{enumerable:!0,get:function(){return hH.default}});Object.defineProperty(le,"cloneWithoutLoc",{enumerable:!0,get:function(){return bH.default}});Object.defineProperty(le,"createFlowUnionType",{enumerable:!0,get:function(){return uS.default}});Object.defineProperty(le,"createTSUnionType",{enumerable:!0,get:function(){return dH.default}});Object.defineProperty(le,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return fH.default}});Object.defineProperty(le,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return uS.default}});Object.defineProperty(le,"ensureBlock",{enumerable:!0,get:function(){return CH.default}});Object.defineProperty(le,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return UH.default}});Object.defineProperty(le,"getBindingIdentifiers",{enumerable:!0,get:function(){return VH.default}});Object.defineProperty(le,"getFunctionName",{enumerable:!0,get:function(){return WH.default}});Object.defineProperty(le,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return $H.default}});Object.defineProperty(le,"inheritInnerComments",{enumerable:!0,get:function(){return xH.default}});Object.defineProperty(le,"inheritLeadingComments",{enumerable:!0,get:function(){return SH.default}});Object.defineProperty(le,"inheritTrailingComments",{enumerable:!0,get:function(){return PH.default}});Object.defineProperty(le,"inherits",{enumerable:!0,get:function(){return LH.default}});Object.defineProperty(le,"inheritsComments",{enumerable:!0,get:function(){return vH.default}});Object.defineProperty(le,"is",{enumerable:!0,get:function(){return GH.default}});Object.defineProperty(le,"isBinding",{enumerable:!0,get:function(){return XH.default}});Object.defineProperty(le,"isBlockScoped",{enumerable:!0,get:function(){return YH.default}});Object.defineProperty(le,"isImmutable",{enumerable:!0,get:function(){return JH.default}});Object.defineProperty(le,"isLet",{enumerable:!0,get:function(){return zH.default}});Object.defineProperty(le,"isNode",{enumerable:!0,get:function(){return QH.default}});Object.defineProperty(le,"isNodesEquivalent",{enumerable:!0,get:function(){return ZH.default}});Object.defineProperty(le,"isPlaceholderType",{enumerable:!0,get:function(){return eG.default}});Object.defineProperty(le,"isReferenced",{enumerable:!0,get:function(){return tG.default}});Object.defineProperty(le,"isScope",{enumerable:!0,get:function(){return rG.default}});Object.defineProperty(le,"isSpecifierDefault",{enumerable:!0,get:function(){return nG.default}});Object.defineProperty(le,"isType",{enumerable:!0,get:function(){return sG.default}});Object.defineProperty(le,"isValidES3Identifier",{enumerable:!0,get:function(){return iG.default}});Object.defineProperty(le,"isValidIdentifier",{enumerable:!0,get:function(){return aG.default}});Object.defineProperty(le,"isVar",{enumerable:!0,get:function(){return oG.default}});Object.defineProperty(le,"matchesPattern",{enumerable:!0,get:function(){return lG.default}});Object.defineProperty(le,"prependToMemberExpression",{enumerable:!0,get:function(){return jH.default}});le.react=void 0;Object.defineProperty(le,"removeComments",{enumerable:!0,get:function(){return AH.default}});Object.defineProperty(le,"removeProperties",{enumerable:!0,get:function(){return MH.default}});Object.defineProperty(le,"removePropertiesDeep",{enumerable:!0,get:function(){return RH.default}});Object.defineProperty(le,"removeTypeDuplicates",{enumerable:!0,get:function(){return qH.default}});Object.defineProperty(le,"shallowEqual",{enumerable:!0,get:function(){return HH.default}});Object.defineProperty(le,"toBindingIdentifierName",{enumerable:!0,get:function(){return DH.default}});Object.defineProperty(le,"toBlock",{enumerable:!0,get:function(){return wH.default}});Object.defineProperty(le,"toComputedKey",{enumerable:!0,get:function(){return IH.default}});Object.defineProperty(le,"toExpression",{enumerable:!0,get:function(){return _H.default}});Object.defineProperty(le,"toIdentifier",{enumerable:!0,get:function(){return NH.default}});Object.defineProperty(le,"toKeyAlias",{enumerable:!0,get:function(){return OH.default}});Object.defineProperty(le,"toStatement",{enumerable:!0,get:function(){return BH.default}});Object.defineProperty(le,"traverse",{enumerable:!0,get:function(){return Pu.default}});Object.defineProperty(le,"traverseFast",{enumerable:!0,get:function(){return KH.default}});Object.defineProperty(le,"validate",{enumerable:!0,get:function(){return uG.default}});Object.defineProperty(le,"valueToNode",{enumerable:!0,get:function(){return kH.default}});var lH=pT(),uH=fT(),cH=sx(),pH=ix(),om=ax();Object.keys(om).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(ks,e)||e in le&&le[e]===om[e]||Object.defineProperty(le,e,{enumerable:!0,get:function(){return om[e]}})});var fH=ox(),uS=cx(),dH=hx(),lm=eh();Object.keys(lm).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(ks,e)||e in le&&le[e]===lm[e]||Object.defineProperty(le,e,{enumerable:!0,get:function(){return lm[e]}})});var um=Kr();Object.keys(um).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(ks,e)||e in le&&le[e]===um[e]||Object.defineProperty(le,e,{enumerable:!0,get:function(){return um[e]}})});var hH=Bs(),mH=Tx(),yH=xx(),gH=Sx(),bH=vx(),EH=Px(),TH=lh(),xH=fh(),SH=hh(),vH=bh(),PH=yh(),AH=Ax(),cm=Cx();Object.keys(cm).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(ks,e)||e in le&&le[e]===cm[e]||Object.defineProperty(le,e,{enumerable:!0,get:function(){return cm[e]}})});var pm=oa();Object.keys(pm).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(ks,e)||e in le&&le[e]===pm[e]||Object.defineProperty(le,e,{enumerable:!0,get:function(){return pm[e]}})});var CH=Dx(),DH=wx(),wH=Sh(),IH=Ix(),_H=_x(),NH=Ah(),OH=Fx(),BH=Lx(),kH=jx(),fm=an();Object.keys(fm).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(ks,e)||e in le&&le[e]===fm[e]||Object.defineProperty(le,e,{enumerable:!0,get:function(){return fm[e]}})});var FH=Mx(),LH=qx(),jH=Ux(),MH=Nh(),RH=Bh(),qH=Yd(),UH=Vx(),VH=Do(),$H=$x(),WH=Kx(),Pu=Hx();Object.keys(Pu).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(ks,e)||e in le&&le[e]===Pu[e]||Object.defineProperty(le,e,{enumerable:!0,get:function(){return Pu[e]}})});var KH=Ih(),HH=ru(),GH=sa(),XH=Gx(),YH=Jx(),JH=zx(),zH=Gh(),QH=Hd(),ZH=Zx(),eG=gd(),tG=eS(),rG=tS(),nG=nS(),sG=su(),iG=sS(),aG=aa(),oG=aS(),lG=pd(),uG=lu(),cG=dd(),dm=Wt();Object.keys(dm).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(ks,e)||e in le&&le[e]===dm[e]||Object.defineProperty(le,e,{enumerable:!0,get:function(){return dm[e]}})});var pG=na(),fG=lS(),hwe=le.react={isReactComponent:lH.default,isCompatTag:uH.default,buildChildren:cH.default};le.toSequenceExpression=fG.default;process.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")});var cS=x(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.statements=ln.statement=ln.smart=ln.program=ln.expression=void 0;var dG=Fe(),{assertExpressionStatement:hG}=dG;function hm(e){return{code:t=>`/* @babel/template */; ${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}var ywe=ln.smart=hm(e=>e.length>1?e:e[0]),gwe=ln.statements=hm(e=>e),bwe=ln.statement=hm(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]}),mG=ln.expression={code:e=>`( ${e} )`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(mG.unwrap(e).start===0)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return hG(t),t.expression}},Ewe=ln.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}});var Au=x(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.merge=bG;wo.normalizeReplacements=TG;wo.validate=EG;var yG=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function gG(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function bG(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 EG(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=gG(t,yG);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 TG(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 Ro=x(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});function xG(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Wn=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}},ga=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 Fr(e,t){let{line:r,column:n,index:s}=e;return new Wn(r,n+t,s+t)}var pS="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",SG={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:pS},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:pS}},fS={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"},wu=e=>e.type==="UpdateExpression"?fS.UpdateExpression[`${e.prefix}`]:fS[e.type],vG={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`. - Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding. - Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${wu(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${wu(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${wu(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` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",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.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},PG={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."},AG={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},CG=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),DG=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${wu({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.'}),wG=["message"];function dS(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function IG({toMessage:e,code:t,reasonCode:r,syntaxPlugin:n}){let s=r==="MissingPlugin"||r==="MissingOneOfPlugins";{let i={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};i[r]&&(r=i[r])}return function i(a,o){let l=new SyntaxError;return l.code=t,l.reasonCode=r,l.loc=a,l.pos=a.index,l.syntaxPlugin=n,s&&(l.missingPlugin=o.missingPlugin),dS(l,"clone",function(c={}){var p;let{line:d,column:m,index:g}=(p=c.loc)!=null?p:a;return i(new Wn(d,m,g),Object.assign({},o,c.details))}),dS(l,"details",o),Object.defineProperty(l,"message",{configurable:!0,get(){let u=`${e(o)} (${a.line}:${a.column})`;return this.message=u,u},set(u){Object.defineProperty(this,"message",{value:u,writable:!0})}}),l}}function $n(e,t){if(Array.isArray(e))return n=>$n(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=xG(i,wG),l=typeof a=="string"?()=>a:a;r[n]=IG(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}var O=Object.assign({},$n(SG),$n(vG),$n(PG),$n(AG),$n`pipelineOperator`(DG));function _G(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function NG(e){let t=_G();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((e.startColumn==null||e.startIndex==null)&&e.startIndex!=null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:OG}=Object,hS=(e,t)=>{e&&OG(e,t,{enumerable:!1,value:e[t]})};function Io(e){return hS(e.loc.start,"index"),hS(e.loc.end,"index"),e}var BG=e=>class extends e{parse(){let r=Io(super.parse());return this.optionFlags&256&&(r.tokens=r.tokens.map(Io)),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)}estreeParseChainExpression(r,n){let s=this.startNodeAtNode(r);return s.expression=r,this.finishNodeAt(s,"ChainExpression",n)}directiveToStmt(r){let n=r.value;delete r.value,this.castNodeTo(n,"Literal"),n.raw=n.extra.raw,n.value=n.extra.expressionValue;let s=this.castNodeTo(r,"ExpressionStatement");return s.expression=n,s.directive=n.extra.rawValue,delete n.extra,s}fillOptionalPropertiesForTSESLint(r){}cloneEstreeStringLiteral(r){let{start:n,end:s,loc:i,range:a,raw:o,value:l}=r,u=Object.create(r.constructor.prototype);return u.type="Literal",u.start=n,u.end=s,u.loc=i,u.range=a,u.raw=o,u.value=l,u}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}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,this.castNodeTo(r,"PrivateIdentifier")}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();u.kind=r.kind,u=super.parseMethod(u,n,s,i,a,o,l),delete u.kind;let{typeParameters:c}=r;c&&(delete r.typeParameters,u.typeParameters=c,this.resetStartLocationFromNode(u,c));let p=this.castNodeTo(u,"FunctionExpression");return r.value=p,o==="ClassPrivateMethod"&&(r.computed=!1),o==="ObjectMethod"?(r.kind==="method"&&(r.kind="init"),r.shorthand=!1,this.finishNode(r,"Property")):this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let n=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&this.castNodeTo(n,"PropertyDefinition"),n}parseClassPrivateProperty(...r){let n=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(this.castNodeTo(n,"PropertyDefinition"),n.computed=!1),n}parseClassAccessorProperty(r){let n=super.parseClassAccessorProperty(r);return this.getPluginOption("estree","classFeatures")&&(n.abstract&&this.hasPlugin("typescript")?(delete n.abstract,this.castNodeTo(n,"TSAbstractAccessorProperty")):this.castNodeTo(n,"AccessorProperty")),n}parseObjectProperty(r,n,s,i){let a=super.parseObjectProperty(r,n,s,i);return a&&(a.kind="init",this.castNodeTo(a,"Property")),a}finishObjectProperty(r){return r.kind="init",this.finishNode(r,"Property")}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.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(O.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(O.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,n,s)}finishCallExpression(r,n){let s=super.finishCallExpression(r,n);if(s.callee.type==="Import"){var i,a;this.castNodeTo(s,"ImportExpression"),s.source=s.arguments[0],s.options=(i=s.arguments[1])!=null?i:null,s.attributes=(a=s.arguments[1])!=null?a:null,delete s.arguments,delete s.callee}else s.type==="OptionalCallExpression"?this.castNodeTo(s,"CallExpression"):s.optional=!1;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"&&(this.castNodeTo(i,"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}stopParseSubscript(r,n){let s=super.stopParseSubscript(r,n);return n.optionalChainMember?this.estreeParseChainExpression(s,r.loc.end):s}parseMember(r,n,s,i,a){let o=super.parseMember(r,n,s,i,a);return o.type==="OptionalMemberExpression"?this.castNodeTo(o,"MemberExpression"):o.optional=!1,o}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.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}castNodeTo(r,n){let s=super.castNodeTo(r,n);return this.fillOptionalPropertiesForTSESLint(s),s}cloneIdentifier(r){let n=super.cloneIdentifier(r);return this.fillOptionalPropertiesForTSESLint(n),n}cloneStringLiteral(r){return r.type==="Literal"?this.cloneEstreeStringLiteral(r):super.cloneStringLiteral(r)}finishNodeAt(r,n,s){return Io(super.finishNodeAt(r,n,s))}finishNode(r,n){let s=super.finishNode(r,n);return this.fillOptionalPropertiesForTSESLint(s),s}resetStartLocation(r,n){super.resetStartLocation(r,n),Io(r)}resetEndLocation(r,n=this.state.lastTokEndLoc){super.resetEndLocation(r,n),Io(r)}},bi=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}},dt={brace:new bi("{"),j_oTag:new bi("...",!0)};dt.template=new bi("`",!0);var Ge=!0,fe=!0,mm=!0,_o=!0,Fs=!0,kG=!0,Nu=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}},qm=new Map;function ot(e,t={}){t.keyword=e;let r=_e(e,t);return qm.set(e,r),r}function kr(e,t){return _e(e,{beforeExpr:Ge,binop:t})}var ko=-1,ts=[],Um=[],Vm=[],$m=[],Wm=[],Km=[];function _e(e,t={}){var r,n,s,i;return++ko,Um.push(e),Vm.push((r=t.binop)!=null?r:-1),$m.push((n=t.beforeExpr)!=null?n:!1),Wm.push((s=t.startsExpr)!=null?s:!1),Km.push((i=t.prefix)!=null?i:!1),ts.push(new Nu(e,t)),ko}function Je(e,t={}){var r,n,s,i;return++ko,qm.set(e,ko),Um.push(e),Vm.push((r=t.binop)!=null?r:-1),$m.push((n=t.beforeExpr)!=null?n:!1),Wm.push((s=t.startsExpr)!=null?s:!1),Km.push((i=t.prefix)!=null?i:!1),ts.push(new Nu("name",t)),ko}var FG={bracketL:_e("[",{beforeExpr:Ge,startsExpr:fe}),bracketHashL:_e("#[",{beforeExpr:Ge,startsExpr:fe}),bracketBarL:_e("[|",{beforeExpr:Ge,startsExpr:fe}),bracketR:_e("]"),bracketBarR:_e("|]"),braceL:_e("{",{beforeExpr:Ge,startsExpr:fe}),braceBarL:_e("{|",{beforeExpr:Ge,startsExpr:fe}),braceHashL:_e("#{",{beforeExpr:Ge,startsExpr:fe}),braceR:_e("}"),braceBarR:_e("|}"),parenL:_e("(",{beforeExpr:Ge,startsExpr:fe}),parenR:_e(")"),comma:_e(",",{beforeExpr:Ge}),semi:_e(";",{beforeExpr:Ge}),colon:_e(":",{beforeExpr:Ge}),doubleColon:_e("::",{beforeExpr:Ge}),dot:_e("."),question:_e("?",{beforeExpr:Ge}),questionDot:_e("?."),arrow:_e("=>",{beforeExpr:Ge}),template:_e("template"),ellipsis:_e("...",{beforeExpr:Ge}),backQuote:_e("`",{startsExpr:fe}),dollarBraceL:_e("${",{beforeExpr:Ge,startsExpr:fe}),templateTail:_e("...`",{startsExpr:fe}),templateNonTail:_e("...${",{beforeExpr:Ge,startsExpr:fe}),at:_e("@"),hash:_e("#",{startsExpr:fe}),interpreterDirective:_e("#!..."),eq:_e("=",{beforeExpr:Ge,isAssign:_o}),assign:_e("_=",{beforeExpr:Ge,isAssign:_o}),slashAssign:_e("_=",{beforeExpr:Ge,isAssign:_o}),xorAssign:_e("_=",{beforeExpr:Ge,isAssign:_o}),moduloAssign:_e("_=",{beforeExpr:Ge,isAssign:_o}),incDec:_e("++/--",{prefix:Fs,postfix:kG,startsExpr:fe}),bang:_e("!",{beforeExpr:Ge,prefix:Fs,startsExpr:fe}),tilde:_e("~",{beforeExpr:Ge,prefix:Fs,startsExpr:fe}),doubleCaret:_e("^^",{startsExpr:fe}),doubleAt:_e("@@",{startsExpr:fe}),pipeline:kr("|>",0),nullishCoalescing:kr("??",1),logicalOR:kr("||",1),logicalAND:kr("&&",2),bitwiseOR:kr("|",3),bitwiseXOR:kr("^",4),bitwiseAND:kr("&",5),equality:kr("==/!=/===/!==",6),lt:kr("/<=/>=",7),gt:kr("/<=/>=",7),relational:kr("/<=/>=",7),bitShift:kr("<>/>>>",8),bitShiftL:kr("<>/>>>",8),bitShiftR:kr("<>/>>>",8),plusMin:_e("+/-",{beforeExpr:Ge,binop:9,prefix:Fs,startsExpr:fe}),modulo:_e("%",{binop:10,startsExpr:fe}),star:_e("*",{binop:10}),slash:kr("/",10),exponent:_e("**",{beforeExpr:Ge,binop:11,rightAssociative:!0}),_in:ot("in",{beforeExpr:Ge,binop:7}),_instanceof:ot("instanceof",{beforeExpr:Ge,binop:7}),_break:ot("break"),_case:ot("case",{beforeExpr:Ge}),_catch:ot("catch"),_continue:ot("continue"),_debugger:ot("debugger"),_default:ot("default",{beforeExpr:Ge}),_else:ot("else",{beforeExpr:Ge}),_finally:ot("finally"),_function:ot("function",{startsExpr:fe}),_if:ot("if"),_return:ot("return",{beforeExpr:Ge}),_switch:ot("switch"),_throw:ot("throw",{beforeExpr:Ge,prefix:Fs,startsExpr:fe}),_try:ot("try"),_var:ot("var"),_const:ot("const"),_with:ot("with"),_new:ot("new",{beforeExpr:Ge,startsExpr:fe}),_this:ot("this",{startsExpr:fe}),_super:ot("super",{startsExpr:fe}),_class:ot("class",{startsExpr:fe}),_extends:ot("extends",{beforeExpr:Ge}),_export:ot("export"),_import:ot("import",{startsExpr:fe}),_null:ot("null",{startsExpr:fe}),_true:ot("true",{startsExpr:fe}),_false:ot("false",{startsExpr:fe}),_typeof:ot("typeof",{beforeExpr:Ge,prefix:Fs,startsExpr:fe}),_void:ot("void",{beforeExpr:Ge,prefix:Fs,startsExpr:fe}),_delete:ot("delete",{beforeExpr:Ge,prefix:Fs,startsExpr:fe}),_do:ot("do",{isLoop:mm,beforeExpr:Ge}),_for:ot("for",{isLoop:mm}),_while:ot("while",{isLoop:mm}),_as:Je("as",{startsExpr:fe}),_assert:Je("assert",{startsExpr:fe}),_async:Je("async",{startsExpr:fe}),_await:Je("await",{startsExpr:fe}),_defer:Je("defer",{startsExpr:fe}),_from:Je("from",{startsExpr:fe}),_get:Je("get",{startsExpr:fe}),_let:Je("let",{startsExpr:fe}),_meta:Je("meta",{startsExpr:fe}),_of:Je("of",{startsExpr:fe}),_sent:Je("sent",{startsExpr:fe}),_set:Je("set",{startsExpr:fe}),_source:Je("source",{startsExpr:fe}),_static:Je("static",{startsExpr:fe}),_using:Je("using",{startsExpr:fe}),_yield:Je("yield",{startsExpr:fe}),_asserts:Je("asserts",{startsExpr:fe}),_checks:Je("checks",{startsExpr:fe}),_exports:Je("exports",{startsExpr:fe}),_global:Je("global",{startsExpr:fe}),_implements:Je("implements",{startsExpr:fe}),_intrinsic:Je("intrinsic",{startsExpr:fe}),_infer:Je("infer",{startsExpr:fe}),_is:Je("is",{startsExpr:fe}),_mixins:Je("mixins",{startsExpr:fe}),_proto:Je("proto",{startsExpr:fe}),_require:Je("require",{startsExpr:fe}),_satisfies:Je("satisfies",{startsExpr:fe}),_keyof:Je("keyof",{startsExpr:fe}),_readonly:Je("readonly",{startsExpr:fe}),_unique:Je("unique",{startsExpr:fe}),_abstract:Je("abstract",{startsExpr:fe}),_declare:Je("declare",{startsExpr:fe}),_enum:Je("enum",{startsExpr:fe}),_module:Je("module",{startsExpr:fe}),_namespace:Je("namespace",{startsExpr:fe}),_interface:Je("interface",{startsExpr:fe}),_type:Je("type",{startsExpr:fe}),_opaque:Je("opaque",{startsExpr:fe}),name:_e("name",{startsExpr:fe}),placeholder:_e("%%",{startsExpr:fe}),string:_e("string",{startsExpr:fe}),num:_e("num",{startsExpr:fe}),bigint:_e("bigint",{startsExpr:fe}),decimal:_e("decimal",{startsExpr:fe}),regexp:_e("regexp",{startsExpr:fe}),privateName:_e("#name",{startsExpr:fe}),eof:_e("eof"),jsxName:_e("jsxName"),jsxText:_e("jsxText",{beforeExpr:Ge}),jsxTagStart:_e("jsxTagStart",{startsExpr:fe}),jsxTagEnd:_e("jsxTagEnd")};function bt(e){return e>=93&&e<=133}function LG(e){return e<=92}function Sn(e){return e>=58&&e<=133}function CS(e){return e>=58&&e<=137}function jG(e){return $m[e]}function Oo(e){return Wm[e]}function MG(e){return e>=29&&e<=33}function mS(e){return e>=129&&e<=131}function RG(e){return e>=90&&e<=92}function Hm(e){return e>=58&&e<=92}function qG(e){return e>=39&&e<=59}function UG(e){return e===34}function VG(e){return Km[e]}function $G(e){return e>=121&&e<=123}function WG(e){return e>=124&&e<=130}function Ms(e){return Um[e]}function Iu(e){return Vm[e]}function KG(e){return e===57}function Ou(e){return e>=24&&e<=25}function es(e){return ts[e]}ts[8].updateContext=e=>{e.pop()},ts[5].updateContext=ts[7].updateContext=ts[23].updateContext=e=>{e.push(dt.brace)},ts[22].updateContext=e=>{e[e.length-1]===dt.template?e.pop():e.push(dt.template)},ts[143].updateContext=e=>{e.push(dt.j_expr,dt.j_oTag)};var Gm="\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-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\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",DS="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\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",HG=new RegExp("["+Gm+"]"),GG=new RegExp("["+Gm+DS+"]");Gm=DS=null;var wS=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,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,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,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,229,29,3,0,496,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],XG=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function Tm(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 rs(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&HG.test(String.fromCharCode(e)):Tm(e,wS)}function ha(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&&GG.test(String.fromCharCode(e)):Tm(e,wS)||Tm(e,XG)}var Xm={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"]},YG=new Set(Xm.keyword),JG=new Set(Xm.strict),zG=new Set(Xm.strictBind);function IS(e,t){return t&&e==="await"||e==="enum"}function _S(e,t){return IS(e,t)||JG.has(e)}function NS(e){return zG.has(e)}function OS(e,t){return _S(e,t)||NS(e)}function QG(e){return YG.has(e)}function ZG(e,t,r){return e===64&&t===64&&rs(r)}var eX=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 tX(e){return eX.has(e)}var Fo=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},Lo=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 allowNewTarget(){return(this.currentThisScopeFlags()&512)>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&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new Fo(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);let i=s.names.get(t)||0;r&16?i=i|4:(s.firstLexicalName||(s.firstLexicalName=t),i=i|2),s.names.set(t,i),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.names.set(t,(s.names.get(t)||0)|1),this.maybeExportDefined(s,t),!(s.flags&1667));--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(O.VarRedeclaration,s,{identifierName:r})}isRedeclaredInScope(t,r,n){if(!(n&1))return!1;if(n&8)return t.names.has(r);let s=t.names.get(r);return n&16?(s&2)>0||!this.treatFunctionsAsVarInScope(t)&&(s&1)>0:(s&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(s&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.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&1667)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1731&&!(r&4))return r}}},xm=class extends Fo{constructor(...t){super(...t),this.declareFunctions=new Set}},Sm=class extends Lo{createScope(t){return new xm(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){if(super.isRedeclaredInScope(t,r,n))return!0;if(n&2048&&!t.declareFunctions.has(r)){let s=t.names.get(r);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},rX=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),Be=$n`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` 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 nX(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function yS(e){return e.importKind==="type"||e.importKind==="typeof"}var sX={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function iX(e,t){let r=[],n=[];for(let s=0;sclass extends e{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return Sm}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(r,n){r!==134&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,n)}addComment(r){if(this.flowPragma===void 0){let n=aX.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.lastTokStartLoc.index>n.index+1&&this.raise(Be.UnexpectedSpaceBetweenModuloChecks,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(Be.NestedDeclareModule,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(134)?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(Be.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(o)):(this.expectContextual(125,Be.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=>{nX(o)?(i==="CommonJS"&&this.raise(Be.AmbiguousDeclareModuleKind,o),i="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(Be.DuplicateDeclareModuleExports,o),i==="ES"&&this.raise(Be.AmbiguousDeclareModuleKind,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(Be.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:sX[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.default=!1,delete r.exportKind,this.castNodeTo(r,"DeclareExportDeclaration")):this.castNodeTo(r,"DeclareExportAllDeclaration");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 this.castNodeTo(n,"DeclareTypeAlias"),n}flowParseDeclareOpaqueType(r){this.next();let n=this.flowParseOpaqueType(r,!0);return this.castNodeTo(n,"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(Be.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,n,s){rX.has(r)&&this.raise(s?Be.AssignReservedType:Be.UnexpectedReservedType,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(Be.MissingTypeParamDefault,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(143)?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")}flowInTopLevelContext(r){if(this.curContext()!==dt.brace){let n=this.state.context;this.state.context=[n[0]];try{return r()}finally{this.state.context=n}}else return r()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let r=this.startNode(),n=this.state.inType;return this.state.inType=!0,r.params=[],this.flowInTopLevelContext(()=>{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);this.state.noAnonFunctionType=s}),this.state.inType=n,!this.state.inType&&this.curContext()===dt.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return;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(135)||this.match(134)?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,p=!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,g=null,f=null,b=this.startNode();if(i&&this.isContextual(118)){let w=this.lookahead();w.type!==14&&w.type!==17&&(this.next(),g=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let w=this.lookahead();w.type!==14&&w.type!==17&&(this.next(),m=!0)}let T=this.flowParseVariance();if(this.eat(0))g!=null&&this.unexpected(g),this.eat(0)?(T&&this.unexpected(T.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(b,m))):l.indexers.push(this.flowParseObjectTypeIndexer(b,m,T));else if(this.match(10)||this.match(47))g!=null&&this.unexpected(g),T&&this.unexpected(T.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(b,m));else{let w="init";if(this.isContextual(99)||this.isContextual(104)){let N=this.lookahead();CS(N.type)&&(w=this.state.value,this.next())}let I=this.flowParseObjectTypeProperty(b,m,g,T,w,s,a!=null?a:!c);I===null?(p=!0,f=this.state.lastTokStartLoc):l.properties.push(I)}this.flowObjectTypeSemicolon(),f&&!this.match(8)&&!this.match(9)&&this.raise(Be.UnexpectedExplicitInexactInObject,f)}this.expect(u),s&&(l.inexact=p);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(Be.InexactInsideExact,this.state.lastTokStartLoc):this.raise(Be.InexactInsideNonObject,this.state.lastTokStartLoc),i&&this.raise(Be.InexactVariance,i),null):(o||this.raise(Be.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),i&&this.raise(Be.SpreadVariance,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(Be.ThisParamBannedInConstructor,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"?Be.GetterMayNotHaveThisParam:Be.SetterMayNotHaveThisParam,r.value.this),s!==n&&this.raise(r.kind==="get"?O.BadGetterArity:O.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(O.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,n){r!=null||(r=this.state.startLoc);let s=n||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let i=this.startNodeAt(r);i.qualification=s,i.id=this.flowParseRestrictedIdentifier(!0),s=this.finishNode(i,"QualifiedTypeIdentifier")}return s}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(Sn(s.type)){let i=this.startNode();return this.next(),this.flowParseInterface(i)}}else if(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)||bt(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(bt(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 r===126||mS(r)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return r===126||mS(r)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(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,p]=this.getArrowLikeExpressions(l);if(u||p.length>0){let d=[...a];if(p.length>0){this.state=i,this.state.noArrowAt=d;for(let m=0;m1&&this.raise(Be.AmbiguousConditionalArrow,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.body.type!=="BlockStatement"?(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,[]]):iX(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(518),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,n){let s;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),s=n(),this.state.noArrowParamsConversionAt.pop()):s=n(),s}parseParenItem(r,n){let s=super.parseParenItem(r,n);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let i=this.startNodeAt(n);return i.expression=s,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return s}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.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(Be.DeclareClassElement,i):n.value&&this.raise(Be.DeclareClassFieldInitializer,n.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),n="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(O.InvalidIdentifier,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):ZG(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(Be.TypeCastInPattern,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(Be.ThisParamBannedInConstructor,n)}else if(n.type==="MethodDefinition"&&a&&n.value.params){let l=n.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(Be.ThisParamBannedInConstructor,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)||this.match(51))&&(r.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),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(Be.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(Be.SetterMayNotHaveThisParam,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}parseFunctionParamType(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(Be.PatternIsOptional,r),this.isThisParam(r)&&this.raise(Be.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(Be.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(Be.ThisParamNoDefault,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===dt.j_oTag||c===dt.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 g=this.forwardNoArrowParamsConversionAt(u,()=>{let b=super.parseMaybeAssign(r,n);return this.resetStartLocationFromNode(b,u),b});(m=g.extra)!=null&&m.parenthesized&&d();let f=this.maybeUnwrapTypeCastExpression(g);return f.type!=="ArrowFunctionExpression"&&d(),f.typeParameters=u,this.resetStartLocationFromNode(f,u),g},i),p=null;if(c.node&&this.maybeUnwrapTypeCastExpression(c.node).type==="ArrowFunctionExpression"){if(!c.error&&!c.aborted)return c.node.async&&this.raise(Be.UnexpectedTypeParameterBeforeAsyncArrowFunction,u),c.node;p=c.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(p)return this.state=c.failState,p;throw(l=a)!=null&&l.thrown?a.error:c.thrown?c.error:this.raise(Be.UnexpectedTokenAfterTypeParameter,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.includes(this.offsetToSourcePos(r.start))?r.params=n:super.setArrowFunctionParameters(r,n)}checkParams(r,n,s,i=!0){if(!(s&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))){for(let a=0;a0&&this.raise(Be.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,n,s,i)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(r,n,s){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(n.index)){this.next();let i=this.startNodeAt(n);i.callee=r,i.arguments=super.parseCallExpressionArguments(),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.flowParseTypeParameterInstantiationInExpression(),this.expect(10),a.arguments=this.parseCallExpressionArguments(),a.optional=!0,this.finishCallExpression(a,!0)}else if(!s&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let a=this.startNodeAt(n);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),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(Be.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(Be.NestedFlowComment,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(O.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:n,memberName:s}){this.raise(Be.EnumBooleanMemberNotInitialized,r,{memberName:s,enumName:n})}flowEnumErrorInvalidMemberInitializer(r,n){return this.raise(n.explicitType?n.explicitType==="symbol"?Be.EnumInvalidMemberInitializerSymbolType:Be.EnumInvalidMemberInitializerPrimaryType:Be.EnumInvalidMemberInitializerUnknownType,r,n)}flowEnumErrorNumberMemberNotInitialized(r,n){this.raise(Be.EnumNumberMemberNotInitialized,r,n)}flowEnumErrorStringMemberInconsistentlyInitialized(r,n){this.raise(Be.EnumStringMemberInconsistentlyInitialized,r,n)}flowEnumMemberInit(){let r=this.state.startLoc,n=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let s=this.parseNumericLiteral(this.state.value);return n()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 134:{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(Be.EnumInvalidMemberName,l,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:r}),s.has(c)&&this.raise(Be.EnumDuplicateMemberName,l,{memberName:c,enumName:r}),s.add(c);let p={enumName:r,explicitType:n,memberName:c};switch(o.id=l,u.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(u.loc,p,"boolean"),o.init=u.value,i.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(u.loc,p,"number"),o.init=u.value,i.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(u.loc,p,"string"),o.init=u.value,i.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,p);case"none":switch(n){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,p);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(!bt(this.state.type))throw this.raise(Be.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:n}=this.state;return this.next(),n!=="boolean"&&n!=="number"&&n!=="string"&&n!=="symbol"&&this.raise(Be.EnumInvalidExplicitType,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,p=o.numberMembers.length,d=o.stringMembers.length,m=o.defaultedMembers.length;if(!c&&!p&&!d&&!m)return u();if(!c&&!p)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!p&&!d&&c>=m){for(let g of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(g.loc.start,{enumName:s,memberName:g.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!c&&!d&&p>=m){for(let g of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(g.loc.start,{enumName:s,memberName:g.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(Be.EnumInconsistentMemberValues,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")}jsxParseOpeningElementAfterName(r){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(r.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(r)}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}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},lX={__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"},uX=/\r\n|[\r\n\u2028\u2029]/,Cu=new RegExp(uX.source,"g");function ma(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function gS(e,t,r){for(let n=t;n`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 Ls(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function da(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return da(e.object)+"."+da(e.property);throw new Error("Node had unexpected type: "+e.type)}var pX=e=>class extends e{jsxReadToken(){let r="",n=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(gi.UnterminatedJsxContent,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(143)):super.getTokenFromCode(s);return}r+=this.input.slice(n,this.state.pos),this.finishToken(142,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:ma(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(O.UnterminatedString,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):ma(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(134,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;s0){if(n&256){let i=!!(n&512),a=(s&4)>0;return i!==a}return!0}return n&128&&(s&8)>0?t.names.get(r)&2?!!(n&1):!1:n&2&&(s&1)>0?!0:super.isRedeclaredInScope(t,r,n)}checkLocalExport(t){let{name:r}=t;if(this.hasImport(r))return;let n=this.scopeStack.length;for(let s=n-1;s>=0;s--){let a=this.scopeStack[s].tsNames.get(r);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(t)}},Am=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 _u(e,t){return(e?2:0)|(t?1:0)}var Cm=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}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 BS(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function fX(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function jo(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function js(e,t,r){let n=null,s=t.length;for(;n===null&&s>0;)n=t[--s];n===null||n.start>r.start?jo(e,r.comments):BS(n,r.comments)}var Dm=class extends Cm{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}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){var r;let{comments:n}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&BS(t.leadingNode,n),t.trailingNode!==null&&fX(t.trailingNode,n);else{let{containingNode:s,start:i}=t;if(this.input.charCodeAt(this.offsetToSourcePos(i)-1)===44)switch(s.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":js(s,s.properties,t);break;case"CallExpression":case"OptionalCallExpression":js(s,s.arguments,t);break;case"ImportExpression":js(s,[s.source,(r=s.options)!=null?r:null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":js(s,s.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":js(s,s.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":js(s,s.specifiers,t);break;case"TSEnumDeclaration":js(s,s.members,t);break;case"TSEnumBody":js(s,s.members,t);break;default:jo(s,n)}else jo(s,n)}}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)}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(l0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startIndex:n,startLine:s,startColumn:i}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=n,this.curLine=s,this.lineStart=-i,this.startLoc=this.endLoc=new Wn(s,i,n)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new Wn(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new e;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},dX=function(t){return t>=48&&t<=57},bS={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Du={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 ES(e,t,r,n,s,i){let a=r,o=n,l=s,u="",c=null,p=r,{length:d}=t;for(;;){if(r>=d){i.unterminated(a,o,l),u+=t.slice(p,r);break}let m=t.charCodeAt(r);if(hX(e,m,t,r)){u+=t.slice(p,r);break}if(m===92){u+=t.slice(p,r);let g=mX(t,r,n,s,e==="template",i);g.ch===null&&!c?c={pos:r,lineStart:n,curLine:s}:u+=g.ch,{pos:r,lineStart:n,curLine:s}=g,p=r}else m===8232||m===8233?(++r,++s,n=r):m===10||m===13?e==="template"?(u+=t.slice(p,r)+` `,++r,m===13&&t.charCodeAt(r)===10&&++r,++s,p=n=r):i.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:n,curLine:s,containsInvalid:!!c}}function hX(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function mX(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}=Im(e,t,r,n,2,!1,a,i),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=FS(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,p=/^[0-7]+/.exec(e.slice(u,t+2))[0],d=parseInt(p,8);d>255&&(p=p.slice(0,-1),d=parseInt(p,8)),t+=p.length-1;let m=e.charCodeAt(t);if(p!=="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 Im(e,t,r,n,s,i,a,o){let l=t,u;return{n:u,pos:t}=kS(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 kS(e,t,r,n,s,i,a,o,l,u){let c=t,p=s===16?bS.hex:bS.decBinOct,d=s===16?Du.hex:s===10?Du.dec:s===8?Du.oct:Du.bin,m=!1,g=0;for(let f=0,b=i==null?1/0:i;f=97?w=T-97+10:T>=65?w=T-65+10:dX(T)?w=T-48:w=1/0,w>=s){if(w<=9&&u)return{n:null,pos:t};if(w<=9&&l.invalidDigit(t,r,n,s))w=0;else if(a)w=0,m=!0;else break}++t,g=g*s+w}return t===c||i!=null&&t-c!==i||m?{n:null,pos:t}:{n:g,pos:t}}function FS(e,t,r,n,s,i){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Im(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}=Im(e,t,r,n,4,!1,s,i));return{code:o,pos:t}}function No(e,t,r){return new Wn(r,e-t,e)}var yX=new Set([103,109,115,105,121,117,100,118]),Vn=class{constructor(t){let r=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=r+t.start,this.end=r+t.end,this.loc=new ga(t.startLoc,t.endLoc)}},_m=class extends Dm{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(n,s,i,a)=>this.optionFlags&2048?(this.raise(O.InvalidDigit,No(n,s,i),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(O.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(O.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(O.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(O.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(n,s,i)=>{this.recordStrictModeErrors(O.StrictNumericEscape,No(n,s,i))},unterminated:(n,s,i)=>{throw this.raise(O.UnterminatedString,No(n-1,s,i))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(O.StrictNumericEscape),unterminated:(n,s,i)=>{throw this.raise(O.UnterminatedTemplate,No(n,s,i))}}),this.state=new wm,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new Vn(this.state)),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 ym.lastIndex=t,ym.test(this.input)?ym.lastIndex:t}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(t){return this.input.charCodeAt(this.nextTokenStartSince(t))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return gm.lastIndex=t,gm.test(this.input)?gm.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++tthis.raise(r,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(140);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(O.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+t.length,Cu.lastIndex=n+2;Cu.test(this.input)&&Cu.lastIndex<=s;)++this.state.curLine,this.state.lineStart=Cu.lastIndex;if(this.isLookahead)return;let i={type:"CommentBlock",value:this.input.slice(n+2,s),start:this.sourceToOffsetPos(n),end:this.sourceToOffsetPos(s+t.length),loc:new ga(r,this.state.curPosition())};return this.optionFlags&256&&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),r==null||r.push(i))}else break e}else if(n===60&&!this.inModule&&this.optionFlags&8192){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let i=this.skipLineComment(4);i!==void 0&&(this.addComment(i),r==null||r.push(i))}else break e}else break e}}if((r==null?void 0:r.length)>0){let n=this.state.pos,s={start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(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(O.UnexpectedDigitAfterHash,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?O.RecordExpressionHashIncorrectStartSyntaxType:O.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else rs(r)?(++this.state.pos,this.finishToken(139,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(139,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;!ma(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(O.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(O.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58: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(rs(t)){this.readWord(t);return}}throw this.raise(O.InvalidOrUnexpectedToken,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(O.UnterminatedRegExp,Fr(t,1));let u=this.input.charCodeAt(i);if(ma(u))throw this.raise(O.UnterminatedRegExp,Fr(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=()=>Fr(t,i+2-r);for(;i=2&&this.input.charCodeAt(r)===48;if(l){let m=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(O.StrictOctalLiteral,n),!this.state.strict){let g=m.indexOf("_");g>0&&this.raise(O.ZeroDigitNumericSeparator,Fr(n,g))}o=l&&!/[89]/.test(m)}let u=this.input.charCodeAt(this.state.pos);if(u===46&&!o&&(++this.state.pos,this.readInt(10),s=!0,u=this.input.charCodeAt(this.state.pos)),(u===69||u===101)&&!o&&(u=this.input.charCodeAt(++this.state.pos),(u===43||u===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(O.InvalidOrMissingExponent,n),s=!0,a=!0,u=this.input.charCodeAt(this.state.pos)),u===110&&((s||l)&&this.raise(O.InvalidBigIntLiteral,n),++this.state.pos,i=!0),u===109){this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(O.InvalidDecimal,n),++this.state.pos;var c=!0}if(rs(this.codePointAtPos(this.state.pos)))throw this.raise(O.NumberIdentifier,this.state.curPosition());let p=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(i){this.finishToken(136,p);return}if(c){this.finishToken(137,p);return}let d=o?parseInt(p,8):parseFloat(p);this.finishToken(135,d)}readCodePoint(t){let{code:r,pos:n}=FS(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}=ES(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(134,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}=ES("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 Wn(n.curLine,n.pos-n.lineStart,this.sourceToOffsetPos(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,r){let n=r.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(t,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;o--){let l=a[o];if(l.loc.index===i)return a[o]=t(s,n);if(l.loc.indexthis.hasPlugin(r)))throw this.raise(O.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(r,n,s)=>{this.raise(t,No(r,n,s))}}},Nm=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Om=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 Nm)}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(O.InvalidPrivateFieldResolution,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,p=l&3,d=r&3;o=p===d||u!==c,o||i.delete(t)}else o||i.set(t,r)}o&&this.parser.raise(O.PrivateNameRedeclaration,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(O.InvalidPrivateFieldResolution,r,{identifierName:t})}},ba=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Bu=class extends ba{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,r){let n=r.index;this.declarationErrors.set(n,[t,r])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},Bm=class{constructor(t){this.parser=void 0,this.stack=[new ba],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,r){let n=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,r){let{stack:n}=this,s=n[n.length-1],i=r.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(t,i);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(t,i);else return}recordAsyncArrowParametersError(t){let{stack:r}=this,n=r.length-1,s=r[n];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(O.AwaitBindingIdentifier,t),s=r[--n]}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([n,s])=>{this.parser.raise(n,s);let i=t.length-2,a=t[i];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(s.index),a=t[--i]})}};function gX(){return new ba(3)}function bX(){return new Bu(1)}function EX(){return new Bu(2)}function LS(){return new ba}var km=class extends _m{addExtra(t,r,n,s=!0){if(!t)return;let{extra:i}=t;i==null&&(i={},t.extra=i),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){if(this.input.startsWith(r,t)){let n=this.input.charCodeAt(t+r.length);return!(ha(n)||(n&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,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return gS(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return gS(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(O.MissingSemicolon,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,voidPatternLoc:o}=t,l=!!n||!!s||!!a||!!i||!!o;if(!r)return l;n!=null&&this.raise(O.InvalidCoverInitializedName,n),s!=null&&this.raise(O.DuplicateProto,s),i!=null&&this.raise(O.UnexpectedPrivateField,i),a!=null&&this.unexpected(a),o!=null&&this.raise(O.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return CS(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 Am;let l=this.classScope;this.classScope=new Om(this);let u=this.expressionScope;return this.expressionScope=new Bm(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||this.optionFlags&1)&&(t|=2),this.optionFlags&32&&(t|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(t|=4),this.prodParam.enter(t);let n=r?514:1;this.optionFlags&4&&(n|=512),this.scope.enter(n)}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}},ya=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}},Ea=class{constructor(t,r,n){this.type="",this.start=r,this.end=0,this.loc=new ga(n),(t==null?void 0:t.optionFlags)&128&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},Fm=Ea.prototype;Fm.__clone=function(){let e=new Ea(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,n=t.length;re.type==="ParenthesizedExpression"?jS(e.expression):e,jm=class extends Lm{toAssignable(t,r=!1){var n,s;let i;switch((t.type==="ParenthesizedExpression"||(n=t.extra)!=null&&n.parenthesized)&&(i=jS(t),r?i.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(O.InvalidParenthesizedAssignment,t):i.type!=="MemberExpression"&&!this.isOptionalMemberExpression(i)&&this.raise(O.InvalidParenthesizedAssignment,t):this.raise(O.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(t,"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();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(O.UnexpectedVoidPattern,r),t.argument=r,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);case 88:return this.parseVoidPattern(null)}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)){let o=this.parseRestBinding();if((this.hasPlugin("flow")||n&2)&&(o=this.parseFunctionParamType(o)),i.push(o),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{let o=[];if(n&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(O.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());i.push(this.parseBindingElement(n,o))}}return i}parseBindingRestProperty(t){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(t.argument=this.parseVoidPattern(null),this.raise(O.UnexpectedVoidPattern,t.argument)):t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,r,!1,!1,!0,!1)}parseBindingElement(t,r){let n=this.parseMaybeDefault();return(this.hasPlugin("flow")||t&2)&&this.parseFunctionParamType(n),r.length&&(n.decorators=r,this.resetStartLocationFromNode(n,r[0])),this.parseMaybeDefault(n.loc.start,n)}parseFunctionParamType(t){return t}parseMaybeDefault(t,r){if(t!=null||(t=this.state.startLoc),r=r!=null?r:this.parseBindingAtom(),!this.eat(29))return r;let n=this.startNodeAt(t);return r.type==="VoidPattern"&&this.raise(O.VoidPatternInitializer,r),n.left=r,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(t,r,n){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,n=64,s=!1,i=!1,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(O.InvalidLhsOptionalChaining,t,{ancestor:r})),n!==64&&this.raise(O.InvalidPropertyBindingPattern,t);return}if(l==="Identifier"){this.checkIdentifier(t,n,i);let{name:f}=t;s&&(s.has(f)?this.raise(O.ParamDupe,t):s.add(f));return}else l==="VoidPattern"&&r.type==="CatchClause"&&this.raise(O.VoidPatternCatchClauseParam,t);let c=this.isValidLVal(l,!(a||(o=t.extra)!=null&&o.parenthesized)&&r.type==="AssignmentExpression",n);if(c===!0)return;if(c===!1){let f=n===64?O.InvalidLhs:O.InvalidLhsBinding;this.raise(f,t,{ancestor:r});return}let p,d;typeof c=="string"?(p=c,d=l==="ParenthesizedExpression"):[p,d]=c;let m=l==="ArrayPattern"||l==="ObjectPattern"?{type:l}:r,g=t[p];if(Array.isArray(g))for(let f of g)f&&this.checkLVal(f,m,n,s,i,d);else g&&this.checkLVal(g,m,n,s,i,d)}checkIdentifier(t,r,n=!1){this.state.strict&&(n?OS(t.name,this.inModule):NS(t.name))&&(r===64?this.raise(O.StrictEvalArguments,t,{referenceName:t.name}):this.raise(O.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(O.LetInLexicalBinding,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(O.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?O.RestTrailingComma:O.ElementAfterRest,this.state.startLoc),!0):!1}};function TX(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function TS(e){if(!e)throw new Error("Assert fail")}var xe=$n`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function xX(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 xS(e){return e==="private"||e==="public"||e==="protected"}function SX(e){return e==="in"||e==="out"}var vX=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:xe.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:xe.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:xe.InvalidModifierOnTypeParameter})}getScopeHandler(){return Pm}tsIsIdentifier(){return bt(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,n,s){if(!bt(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let i=this.state.value;if(r.includes(i)){if(s&&this.match(106)||n&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:n,stopOnStartOfClassStaticBlock:s,errorTemplate:i=xe.InvalidModifierOnTypeMember},a){let o=(u,c,p,d)=>{c===p&&a[d]&&this.raise(xe.InvalidModifiersOrder,u,{orderedModifiers:[p,d]})},l=(u,c,p,d)=>{(a[p]&&c===d||a[d]&&c===p)&&this.raise(xe.IncompatibleModifiers,u,{modifiers:[p,d]})};for(;;){let{startLoc:u}=this.state,c=this.tsParseModifier(r.concat(n!=null?n:[]),s,a.static);if(!c)break;xS(c)?a.accessibility?this.raise(xe.DuplicateAccessibilityModifier,u,{modifier:c}):(o(u,c,c,"override"),o(u,c,c,"static"),o(u,c,c,"readonly"),a.accessibility=c):SX(c)?(a[c]&&this.raise(xe.DuplicateModifier,u,{modifier:c}),a[c]=!0,o(u,c,"in","out")):(hasOwnProperty.call(a,c)?this.raise(xe.DuplicateModifier,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,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 TX(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.lastTokStartLoc.index;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(134)?r.argument=this.parseStringLiteral(this.state.value):(this.raise(xe.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom()),this.eat(12)?r.options=this.tsParseImportTypeOptions():r.options=null,this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName(3)),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseImportTypeOptions(){let r=this.startNode();this.expect(5);let n=this.startNode();return this.isContextual(76)?(n.method=!1,n.key=this.parseIdentifier(!0),n.computed=!1,n.shorthand=!1):this.unexpected(null,76),this.expect(14),n.value=this.tsParseImportTypeWithPropertyValue(),r.properties=[this.finishObjectProperty(n)],this.expect(8),this.finishNode(r,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let r=this.startNode(),n=[];for(this.expect(5);!this.match(8);){let s=this.state.type;bt(s)||s===134?n.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return r.properties=n,this.next(),this.finishNode(r,"ObjectExpression")}tsParseEntityName(r){let n;if(r&1&&this.match(78))if(r&2)n=this.parseIdentifier(!0);else{let s=this.startNode();this.next(),n=this.finishNode(s,"ThisExpression")}else n=this.parseIdentifier(!!(r&1));for(;this.eat(16);){let s=this.startNodeAtNode(n);s.left=n,s.right=this.parseIdentifier(!!(r&1)),n=this.finishNode(s,"TSQualifiedName")}return n}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(1),!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(3),!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(143)?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(xe.EmptyTypeParameters,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(xe.UnsupportedSignatureParameterKind,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(),bt(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){if(this.eat(17)&&(r.optional=!0),this.match(10)||this.match(47)){n&&this.raise(xe.ReadonlyForMethodSignature,r);let s=r;s.kind&&this.match(47)&&this.raise(xe.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,s),this.tsParseTypeMemberSemicolon();let i="parameters",a="typeAnnotation";if(s.kind==="get")s[i].length>0&&(this.raise(O.BadGetterArity,this.state.curPosition()),this.isThisParam(s[i][0])&&this.raise(xe.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(s.kind==="set"){if(s[i].length!==1)this.raise(O.BadSetterArity,this.state.curPosition());else{let o=s[i][0];this.isThisParam(o)&&this.raise(xe.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(xe.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(xe.SetAccessorCannotHaveRestParameter,this.state.curPosition())}s[a]&&this.raise(xe.SetAccessorCannotHaveReturnType,s[a])}else s.kind="method";return this.finishNode(s,"TSMethodSignature")}else{let s=r;n&&(s.readonly=!0);let i=this.tsTryParseTypeAnnotation();return i&&(s.typeAnnotation=i),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"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.match(10)&&!this.match(47)&&this.unexpected(null,10)),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)))}tsParseMappedType(){let r=this.startNode();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);{let n=this.startNode();n.name=this.tsParseTypeParameterName(),n.constraint=this.tsExpectThenParseType(58),r.typeParameter=this.finishNode(n,"TSTypeParameter")}return 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(xe.OptionalTypeBeforeRequired,s),n||(n=i==="TSNamedTupleMember"&&s.optional||i==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let r=this.state.startLoc,n=this.eat(21),{startLoc:s}=this.state,i,a,o,l,c=Sn(this.state.type)?this.lookaheadCharCode():null;if(c===58)i=!0,o=!1,a=this.parseIdentifier(!0),this.expect(14),l=this.tsParseType();else if(c===63){o=!0;let p=this.state.value,d=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(i=!0,a=this.createIdentifier(this.startNodeAt(s),p),this.expect(17),this.expect(14),l=this.tsParseType()):(i=!1,l=d,this.expect(17))}else l=this.tsParseType(),o=this.eat(17),i=this.eat(14);if(i){let p;a?(p=this.startNodeAt(s),p.optional=o,p.label=a,p.elementType=l,this.eat(17)&&(p.optional=!0,this.raise(xe.TupleOptionalAfterType,this.state.lastTokStartLoc))):(p=this.startNodeAt(s),p.optional=o,this.raise(xe.InvalidTupleMemberLabel,l),p.label=l,p.elementType=this.tsParseType()),l=this.finishNode(p,"TSNamedTupleMember")}else if(o){let p=this.startNodeAt(s);p.typeAnnotation=l,l=this.finishNode(p,"TSOptionalType")}if(n){let p=this.startNodeAt(r);p.typeAnnotation=l,l=this.finishNode(p,"TSRestType")}return l}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,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 135:case 136:case 134:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){{let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}}parseTemplateSubstitution(){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 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),n=this.lookahead();return n.type!==135&&n.type!==136&&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(bt(r)||r===88||r===84){let n=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":xX(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{startLoc:r}=this.state,n=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let s=this.startNodeAt(r);s.elementType=n,this.expect(3),n=this.finishNode(s,"TSArrayType")}else{let s=this.startNodeAt(r);s.objectType=n,s.indexType=this.tsParseType(),this.expect(3),n=this.finishNode(s,"TSIndexedAccessType")}return n}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(xe.UnexpectedReadonly,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 $G(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(bt(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(),!bt(this.state.type)&&!this.match(78)?!1:(r&&this.raise(O.InvalidEscapedReservedWord,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(){TS(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.isLookaheadContextual("new")}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(xe.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let n=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let i=this.startNode();return i.expression=this.tsParseEntityName(3),this.match(47)&&(i.typeParameters=this.tsParseTypeArguments()),this.finishNode(i,"TSExpressionWithTypeArguments")}});return s.length||this.raise(xe.EmptyHeritageClauseType,n,{token:r}),s}tsParseInterfaceDeclaration(r,n={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),n.declare&&(r.declare=!0),bt(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(xe.MissingInterfaceName,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.lookaheadCharCode()!==46){let n=this.startNode();return this.next(),this.finishNode(n,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInTopLevelContext(r){if(this.curContext()!==dt.brace){let n=this.state.context;this.state.context=[n[0]];try{return r()}finally{this.state.context=n}}else return r()}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(134)?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")}tsParseEnumBody(){let r=this.startNode();return this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumBody")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,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(1024),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.kind="global",r.global=!0,r.id=this.parseIdentifier()):this.match(134)?(r.kind="module",r.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),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(xe.ImportAliasHasImportType,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(0)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||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;return 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 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(xe.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.parseVarStatement(r,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(xe.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),r.declare=!0,this.next(),this.parseVarStatement(r,"await using",!0);break;case 129:{let s=this.tsParseInterfaceDeclaration(r,{declare:!0});if(s)return s}default:if(bt(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(1024),this.prodParam.enter(0);let i=r;return i.kind="global",r.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)||bt(this.state.type)))return this.tsParseAbstractDeclaration(r,i);break;case"module":if(this.tsCheckLineTerminator(s)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(r);if(bt(this.state.type))return r.kind="module",this.tsParseModuleOrNamespaceDeclaration(r)}break;case"namespace":if(this.tsCheckLineTerminator(s)&&bt(this.state.type))return r.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(r);break;case"type":if(this.tsCheckLineTerminator(s)&&bt(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.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(xe.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===dt.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return WG(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(r,n){let s=n.length?n[0].loc.start: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(xe.UnexpectedParameterModifier,s);let u=this.parseMaybeDefault();r&2&&this.parseFunctionParamType(u);let c=this.parseMaybeDefault(u.loc.start,u);if(a||l||o){let p=this.startNodeAt(s);return n.length&&(p.decorators=n),a&&(p.accessibility=a),l&&(p.readonly=l),o&&(p.override=o),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(xe.UnsupportedParameterPropertyKind,p),p.parameter=c,this.finishNode(p,"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(xe.PatternIsOptional,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(xe.DeclareFunctionHasImplementation,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(xe.UnexpectedTypeAnnotation,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(Ou(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(),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&&Oo(c)&&!this.hasPrecedingLineBreak())return;let p=this.startNodeAt(n);return p.expression=r,p.typeParameters=u,this.finishNode(p,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(xe.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(l.expression=super.stopParseSubscript(r,i))),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(Iu(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(O.UnexpectedKeyword,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(xe.ImportReflectionHasImportType,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(134))return r.importKind="value",super.parseImport(r);let n;if(bt(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(xe.TypeImportCannotSpecifyDefaultAndNamed,n),n}parseExport(r,n){if(this.match(83)){let s=r;this.next();let i=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?i=this.parseMaybeImportPhase(s,!1):s.importKind="value",this.tsParseImportEqualsDeclaration(s,i,!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.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,n,s=!1){let{isAmbientContext:i}=this.state,a=super.parseVarStatement(r,n,s||i);if(!i)return a;if(!r.declare&&(n==="using"||n==="await using"))return this.raiseOverwrite(xe.UsingDeclarationInAmbientContext,r,n),a;for(let{id:o,init:l}of a.declarations)l&&(n==="var"||n==="let"||o.typeAnnotation?this.raise(xe.InitializerNotAllowedInAmbientContext,l):AX(l,this.hasPlugin("estree"))||this.raise(xe.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,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=>xS(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:xe.InvalidModifierOnTypeParameterPositions},n);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(n,i)&&this.raise(xe.StaticBlockCannotHaveModifier,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(xe.IndexSignatureHasAbstract,n),n.accessibility&&this.raise(xe.IndexSignatureHasAccessibility,n,{modifier:n.accessibility}),n.declare&&this.raise(xe.IndexSignatureHasDeclare,n),n.override&&this.raise(xe.IndexSignatureHasOverride,n);return}!this.state.inAbstractClass&&n.abstract&&this.raise(xe.NonAbstractClassHasAbstractMethod,n),n.override&&(s.hadSuperClass||this.raise(xe.OverrideNotInSubClass,n)),super.parseClassMemberWithIsStatic(r,n,s,i)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(xe.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(xe.ClassMethodHasDeclare,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.match(17))return r;if(this.state.maybeInArrowParameters){let i=this.lookaheadCharCode();if(i===44||i===61||i===58||i===41)return this.setOptionalParametersError(s),r}return super.parseConditional(r,n,s)}parseParenItem(r,n){let s=super.parseParenItem(r,n);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let i=this.startNodeAt(n);return i.expression=r,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"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(xe.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=bt(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||s)&&(r.exportKind="type"),s&&a.type!=="TSImportEqualsDeclaration"&&(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(xe.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:n}=r;this.raise(xe.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:n.type==="Identifier"&&!r.computed?n.name:`[${this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end))}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(xe.PrivateElementHasAbstract,r),r.accessibility&&this.raise(xe.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(xe.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,n,s,i,a,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&a&&this.raise(xe.ConstructorHasTypeParameters,l);let{declare:u=!1,kind:c}=n;u&&(c==="get"||c==="set")&&this.raise(xe.DeclareAccessor,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==null||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,p;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(u=this.state.clone(),c=this.tryParse(()=>super.parseMaybeAssign(r,n),u),!c.error)return c.node;let{context:g}=this.state,f=g[g.length-1];(f===dt.j_oTag||f===dt.j_expr)&&g.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(g=>{var f,b;d=this.tsParseTypeParameters(this.tsParseConstModifier);let T=super.parseMaybeAssign(r,n);return(T.type!=="ArrowFunctionExpression"||(f=T.extra)!=null&&f.parenthesized)&&g(),((b=d)==null?void 0:b.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&&(TS(!this.hasPlugin("jsx")),p=this.tryParse(()=>super.parseMaybeAssign(r,n),u),!p.error))return p.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=p)!=null&&a.node)return this.state=p.failState,p.node;throw((o=c)==null?void 0:o.error)||m.error||((l=p)==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(xe.ReservedArrowTypeParam,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)}parseFunctionParamType(r){this.eat(17)&&(r.optional=!0);let n=this.tsTryParseTypeAnnotation();return n&&(r.typeAnnotation=n),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(xe.UnexpectedTypeCastInParameter,r):this.raise(xe.UnexpectedTypeCastInParameter,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){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(s!==64||!n)&&["expression",!0];default:return super.isValidLVal(r,n,s)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r,n){if(this.match(47)||this.match(51)){let s=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let i=super.parseMaybeDecoratorArguments(r,n);return i.typeParameters=s,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r,n)}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{isAmbientContext:n,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=n,this.state.strict=s}}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(xe.NonClassMethodPropertyHasAbstractModifier,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||u.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?u.value:u).body){let{key:d}=u;this.raise(xe.AbstractMethodHasImplementation,u,{methodName:d.type==="Identifier"&&!u.computed?d.name:`[${this.input.slice(this.offsetToSourcePos(d.start),this.offsetToSourcePos(d.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,p=o.loc.start;if(this.isContextual(93)){let m=this.parseIdentifier();if(this.isContextual(93)){let g=this.parseIdentifier();Sn(this.state.type)?(u=!0,o=m,l=n?this.parseIdentifier():this.parseModuleExportName(),c=!1):(l=g,c=!1)}else Sn(this.state.type)?(c=!1,l=n?this.parseIdentifier():this.parseModuleExportName()):(u=!0,o=m)}else Sn(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?xe.TypeModifierIsUsedInTypeImports:xe.TypeModifierIsUsedInTypeExports,p),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]=this.cloneIdentifier(r[i])),n&&this.checkIdentifier(r[a],u?4098:4096)}fillOptionalPropertiesForTSESLint(r){var n,s,i,a,o,l,u,c,p,d,m,g,f,b,T,w,I,N,L,W,U,H,pe,Ee,ce,qe,ze,Ot,J,se,V,G,j,re,de,ye,Te,he,De,we,Ve,pt,ut,Ke,gt,Dt;switch(r.type){case"ExpressionStatement":(n=r.directive)!=null||(r.directive=void 0);return;case"RestElement":r.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":(s=r.decorators)!=null||(r.decorators=[]),(i=r.optional)!=null||(r.optional=!1),(a=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);return;case"TSParameterProperty":(o=r.accessibility)!=null||(r.accessibility=void 0),(l=r.decorators)!=null||(r.decorators=[]),(u=r.override)!=null||(r.override=!1),(c=r.readonly)!=null||(r.readonly=!1),(p=r.static)!=null||(r.static=!1);return;case"TSEmptyBodyFunctionExpression":r.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":(d=r.declare)!=null||(r.declare=!1),(m=r.returnType)!=null||(r.returnType=void 0),(g=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"Property":(f=r.optional)!=null||(r.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":(b=r.optional)!=null||(r.optional=!1);case"TSIndexSignature":(T=r.accessibility)!=null||(r.accessibility=void 0),(w=r.readonly)!=null||(r.readonly=!1),(I=r.static)!=null||(r.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":(N=r.declare)!=null||(r.declare=!1),(L=r.definite)!=null||(r.definite=!1),(W=r.readonly)!=null||(r.readonly=!1),(U=r.typeAnnotation)!=null||(r.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":(H=r.accessibility)!=null||(r.accessibility=void 0),(pe=r.decorators)!=null||(r.decorators=[]),(Ee=r.override)!=null||(r.override=!1),(ce=r.optional)!=null||(r.optional=!1);return;case"ClassExpression":(qe=r.id)!=null||(r.id=null);case"ClassDeclaration":(ze=r.abstract)!=null||(r.abstract=!1),(Ot=r.declare)!=null||(r.declare=!1),(J=r.decorators)!=null||(r.decorators=[]),(se=r.implements)!=null||(r.implements=[]),(V=r.superTypeArguments)!=null||(r.superTypeArguments=void 0),(G=r.typeParameters)!=null||(r.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":(j=r.declare)!=null||(r.declare=!1);return;case"VariableDeclarator":(re=r.definite)!=null||(r.definite=!1);return;case"TSEnumDeclaration":(de=r.const)!=null||(r.const=!1),(ye=r.declare)!=null||(r.declare=!1);return;case"TSEnumMember":(Te=r.computed)!=null||(r.computed=!1);return;case"TSImportType":(he=r.qualifier)!=null||(r.qualifier=null),(De=r.options)!=null||(r.options=null);return;case"TSInterfaceDeclaration":(we=r.declare)!=null||(r.declare=!1),(Ve=r.extends)!=null||(r.extends=[]);return;case"TSModuleDeclaration":(pt=r.declare)!=null||(r.declare=!1),(ut=r.global)!=null||(r.global=r.kind==="global");return;case"TSTypeParameter":(Ke=r.const)!=null||(r.const=!1),(gt=r.in)!=null||(r.in=!1),(Dt=r.out)!=null||(r.out=!1);return}}};function PX(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:RS(e.object)}function AX(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!!(MS(e,t)||CX(e,t)||n==="TemplateLiteral"&&e.expressions.length===0||PX(e))}function MS(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function CX(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:n}=e;if(r==="-"&&MS(n,t))return!0}return!1}function RS(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:RS(e.object)}var SS=$n`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),DX=e=>class extends e{parsePlaceholder(r){if(this.match(133)){let n=this.startNode();return this.next(),this.assertNoSpace(),n.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(n,r)}}finishPlaceholder(r,n){let s=r;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=n,s}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,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)}cloneIdentifier(r){let n=super.cloneIdentifier(r);return n.type==="Placeholder"&&(n.expectedNode=r.expectedNode),n}cloneStringLiteral(r){return r.type==="Placeholder"?this.cloneIdentifier(r):super.cloneStringLiteral(r)}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){if(super.chStartsBindingIdentifier(r,n))return!0;let s=this.nextTokenStart();return this.input.charCodeAt(s)===37&&this.input.charCodeAt(s+1)===37}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 a=r;return a.label=this.finishPlaceholder(n,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();let i=r;return i.name=n.name,this.finishPlaceholder(i,"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(133)||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(SS.ClassNameIsRequired,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);let i=r;if(!this.isContextual(98)&&!this.match(12))return i.specifiers=[],i.source=null,i.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(i,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let a=this.startNode();return a.exported=s,i.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(i,n)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(Ms(133),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.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(SS.UnexpectedSpace,this.state.lastTokEndLoc)}},wX=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,n=this.startNode();if(this.next(),bt(this.state.type)){let s=this.parseIdentifierName(),i=this.createIdentifier(n,s);if(this.castNodeTo(i,"V8IntrinsicIdentifier"),this.match(10))return i}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}},vS=["minimal","fsharp","hack","smart"],PS=["^^","@@","^","%","#"];function IX(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let n=e.get("decorators").decoratorsBeforeExport;if(n!=null&&typeof n!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let s=e.get("decorators").allowCallParenthesized;if(s!=null&&typeof s!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;let n=e.get("pipelineOperator").proposal;if(!vS.includes(n)){let s=vS.map(i=>`"${i}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}if(n==="hack"){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=e.get("pipelineOperator").topicToken;if(!PS.includes(s)){let i=PS.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${i}.`)}{var r;if(s==="#"&&((r=e.get("recordAndTuple"))==null?void 0:r.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}}else if(n==="smart"&&((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash")throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if(e.get("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(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){let n=e.get("recordAndTuple").syntaxType;if(n!=null){let s=["hash","bar"];if(!s.includes(n))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+s.map(i=>`'${i}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let n=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw n.missingPlugins="doExpressions",n}if(e.has("optionalChainingAssign")&&e.get("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'.");if(e.has("discardBinding")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}var qS={estree:BG,jsx:pX,flow:oX,typescript:vX,v8intrinsic:wX,placeholders:DX},_X=Object.keys(qS),Mm=class extends jm{checkProto(t,r,n,s){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return n;let i=t.key;return(i.type==="Identifier"?i.name:i.value)==="__proto__"?r?(this.raise(O.RecordNoProto,i),!0):(n&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=i.loc.start):this.raise(O.DuplicateProto,i)),!0):n}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(O.ParseExpressionEmptyInput,this.state.startLoc);let t=this.parseExpression();if(!this.match(140))throw this.raise(O.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.optionFlags&256&&(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){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,r){let n=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let l=this.parseYield(n);return r&&(l=r.call(this,l,n)),l}let i;t?i=!1:(t=new ya,i=!0);let{type:a}=this.state;(a===10||bt(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(t);if(r&&(o=r.call(this,o,n)),MG(this.state.type)){let l=this.startNodeAt(n),u=this.state.value;if(l.operator=u,this.match(29)){this.toAssignable(o,!0),l.left=o;let c=n.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=c&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=c&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=c&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null),t.voidPatternLoc!=null&&t.voidPatternLoc.index>=c&&(t.voidPatternLoc=null)}else l.left=o;return this.next(),l.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(l,"AssignmentExpression")),l}else i&&this.checkExpressionErrors(t,!0);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?Oo(l):Oo(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(O.YieldNotInGeneratorFunction,n),this.parseYield(n)}return o}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(139)?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>=Iu(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(O.PrivateInExpectedIn,t,{identifierName:i}),this.classScope.usePrivateName(i,t.loc.start)}let s=this.state.type;if(qG(s)&&(this.prodParam.hasIn||!this.match(58))){let i=Iu(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=Iu(42)),this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(O.UnexpectedAwaitAfterPipelineBody,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(O.MixingCoalesceWithLogical,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"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}if(this.getPluginOption("pipelineOperator","proposal")==="smart")return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(O.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,r),n)});default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,KG(t)?r-1:r)}parseHackPipeBody(){var t;let{startLoc:r}=this.state,n=this.parseMaybeAssign();return CG.has(n.type)&&!((t=n.extra)!=null&&t.parenthesized)&&this.raise(O.PipeUnparenthesizedBody,r,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(O.PipeTopicUnused,r),n}checkExponentialAfterUnary(t){this.match(57)&&this.raise(O.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,r){let n=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let l=this.parseAwait(n);return r||this.checkExponentialAfterUnary(l),l}let i=this.match(34),a=this.startNode();if(VG(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(O.StrictDelete,a):this.hasPropertyAsPrivateName(u)&&this.raise(O.DeletePrivateField,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")?Oo(l):Oo(l)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(O.AwaitNotInAsyncContext,n),this.parseAwait(n)}return o}parseUpdate(t,r,n){if(r){let a=t;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),t}let s=this.state.startLoc,i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;UG(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,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(Ou(i))return this.parseTaggedTemplateExpression(t,r,s);let a=!1;if(i===18){if(n&&(this.raise(O.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(t,s);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):this.stopParseSubscript(t,s)}}stopParseSubscript(t,r){return r.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(139)?(t.type==="Super"&&this.raise(O.SuperPrivateField,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(EX()),a=new ya),u&&(o.optional=s),s?o.arguments=this.parseCallExpressionArguments():o.arguments=this.parseCallExpressionArguments(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(O.OptionalChainingNoTemplate,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&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise(O.ImportCallArity,t);else for(let n of t.arguments)n.type==="SpreadElement"&&this.raise(O.ImportCallSpreadArgument,n);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,n){let s=[],i=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(i)i=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}s.push(this.parseExprListItem(11,!1,n,t))}return this.state.inFSharpPipelineDirectBody=a,s}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&&jo(t,r.innerComments),r.callee.trailingComments&&jo(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.parseImportMetaPropertyOrPhaseCall(r):this.match(10)?this.optionFlags&512?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(O.UnsupportedImport,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 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let i=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(i)}case 0:return this.parseArrayLike(3,!0,!1,t);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(O.UnsupportedBind,i)}case 139:return this.raise(O.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.parseTopicReference(i);this.unexpected();break}case 47:{let i=this.input.codePointAt(this.nextTokenStart());rs(i)||i===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:{if(s===137)return this.parseDecimalLiteral(this.state.value);if(s===2||s===1)return this.parseArrayLike(this.state.type===2?4:3,!1,!0);if(s===6||s===7)return this.parseObjectLike(this.state.type===6?9:8,!1,!0)}if(bt(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(bt(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=Fr(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))return n==="hack"?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(O.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(O.PrimaryTopicNotAllowed,r),this.registerTopicReference(),this.finishNode(t,"PipelinePrimaryTopicReference"));throw this.raise(O.PipeTopicUnconfiguredToken,r,{token:Ms(s)})}testTopicReferenceConfiguration(t,r,n){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Ms(n)}]);case"smart":return n===27;default:throw this.raise(O.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(_u(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(O.LineTerminatorBeforeArrow,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.optionFlags&16)?this.raise(O.SuperNotAllowed,t):!this.scope.allowSuper&&!(this.optionFlags&16)&&this.raise(O.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(O.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(Fr(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(O.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:n}),this.finishNode(t,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(t){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),t.phase=r?"source":"defer",this.parseImportCall(t)}else{let r=this.createIdentifierAt(this.startNodeAtNode(t),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(O.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,r,"meta")}}parseLiteralAtNode(t,r,n){return this.addExtra(n,"rawValue",t),this.addExtra(n,"raw",this.input.slice(this.offsetToSourcePos(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.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}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(bX());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 ya,u=!0,c,p;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,l.optionalParametersLoc===null?null:l.optionalParametersLoc),this.match(11)){p=this.state.startLoc;break}if(this.match(21)){let g=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),g)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,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),p&&this.unexpected(p),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.optionFlags&1024))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.allowNewTarget||this.raise(O.UnexpectedNewTarget,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(O.ImportCallNotNewExpression,n)}parseTemplateElement(t){let{start:r,startLoc:n,end:s,value:i}=this.state,a=r+1,o=this.startNodeAt(Fr(n,1));i===null&&(t||this.raise(O.InvalidEscapeSequenceTemplate,Fr(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 p=this.finishNode(o,"TemplateElement");return this.resetEndLocation(p,Fr(this.state.lastTokEndLoc,u)),p}parseTemplate(t){let r=this.startNode(),n=this.parseTemplateElement(t),s=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(n=this.parseTemplateElement(t));return r.expressions=i,r.quasis=s,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=!1,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),a=this.checkProto(c,n,a,s)),n&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(O.InvalidRecordProperty,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.lastTokStartLoc.index),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(O.UnsupportedPropertyDecorator,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;if(this.parsePropertyName(n,t),!o&&!l&&this.maybeAsyncOrAccessorProp(n)){let{key:u}=n,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(O.AccessorIsGenerator,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"?O.BadGetterArity:O.BadSetterArity,t),t.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(O.BadSetterRestParameter,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.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(t);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,this.cloneIdentifier(t.key));else if(this.match(29)){let i=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=i):this.raise(O.InvalidCoverInitializedName,i),t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return 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(Sn(n))i=this.parseIdentifier(!0);else switch(n){case 135:i=this.parseNumericLiteral(s);break;case 134:i=this.parseStringLiteral(s);break;case 136:i=this.parseBigIntLiteral(s);break;case 139:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(O.UnexpectedPrivateField,a),i=this.parsePrivateName();break}default:if(n===137){i=this.parseDecimalLiteral(s);break}this.unexpected()}t.key=i,n!==139&&(t.computed=!1)}}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(530|(o?576:0)|(i?32:0)),this.prodParam.enter(_u(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(518);let i=_u(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(LS()),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(O.IllegalLanguageModeDirective,(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||!tX(t))return;if(n&&QG(t)){this.raise(O.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?s?OS:_S:IS)(t,this.inModule)){this.raise(O.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(O.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(O.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(O.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(O.ArgumentsInClass,r);return}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(O.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(O.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||Ou(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(t){let r=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError(O.YieldInParameter,r);let n=!1,s=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!n)break;default:s=this.parseMaybeAssign()}return r.delegate=n,r.argument=s,this.finishNode(r,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(t.source);else if(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(t.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(O.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(O.PipelineHeadSequenceExpression,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(O.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(O.PipelineTopicUnused,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")}parseVoidPattern(t){this.expectPlugin("discardBinding");let r=this.startNode();return t!=null&&(t.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(t,r,n){if(r!=null&&this.match(88)){let s=this.lookaheadCharCode();if(s===44||s===(t===3?93:t===8?125:41)||s===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,n)}parsePropertyNamePrefixOperator(t){}},bm={kind:1},NX={kind:2},OX=/[\uD800-\uDFFF]/u,Em=/in(?:stanceof)?/y;function BX(e,t,r){for(let n=0;n0)for(let[i,a]of Array.from(this.scope.undefinedExports))this.raise(O.ModuleExportUndefined,a,{localName:i});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return r===140?s=this.finishNode(t,"Program"):s=this.finishNodeAt(t,"Program",Fr(this.state.startLoc,-1)),s}stmtToDirective(t){let r=this.castNodeTo(t,"Directive"),n=this.castNodeTo(t.expression,"DirectiveLiteral"),s=n.value,i=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(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),r.value=n,delete t.expression,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}isUsing(){if(!this.isContextual(107))return!1;let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)}isForUsing(){if(!this.isContextual(107))return!1;let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);if(this.isUnparsedContextual(t,"of")){let n=this.lookaheadCharCodeSince(t+2);if(n!==61&&n!==58&&n!==59)return!1}return!!(this.chStartsBindingIdentifier(r,t)||this.isUnparsedContextual(t,"void"))}isAwaitUsing(){if(!this.isContextual(96))return!1;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!0}return!1}chStartsBindingIdentifier(t,r){if(rs(t)){if(Em.lastIndex=r,Em.test(this.input)){let n=this.codePointAtPos(Em.lastIndex);if(!ha(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)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(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?O.StrictFunction:this.options.annexB?O.SloppyFunctionAnnexB:O.SloppyFunction,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.isAwaitUsing())return this.allowsUsing()?i?this.recordAwaitIfAllowed()||this.raise(O.AwaitUsingNotInAsyncContext,s):this.raise(O.UnexpectedLexicalDeclaration,s):this.raise(O.UnexpectedUsingDeclaration,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?i||this.raise(O.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(O.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let c=this.nextTokenStart(),p=this.codePointAtPos(c);if(p!==91&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(p,c)&&p!==123))break}case 75:i||this.raise(O.UnexpectedLexicalDeclaration,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.optionFlags&8)&&!o&&this.raise(O.UnexpectedImportExport,this.state.startLoc),this.next();let c;return n===83?c=this.parseImport(s):c=this.parseExport(s,r),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return i||this.raise(O.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!i&&a)}let l=this.state.value,u=this.parseExpression();return bt(n)&&u.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,l,u,t):this.parseExpressionStatement(s,u,r)}assertModuleNodeAllowed(t){!(this.optionFlags&8)&&!this.inModule&&this.raise(O.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,n){if(t){var s;(s=r.decorators)!=null&&s.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(O.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),n&&this.resetStartLocationFromNode(n,r)}return 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(O.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(O.UnexpectedLeadingDecorator,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,s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==n&&this.raise(O.DecoratorArgumentsOutsideParentheses,i)}else{for(n=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=n,this.match(139)?(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,r)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,r){if(this.eat(10)){let n=this.startNodeAt(r);return n.callee=t,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,"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(bm);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),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.isAwaitUsing(),u=l||this.isForUsing(),c=n&&this.hasFollowingBindingAtom()||u;if(this.match(74)||this.match(75)||c){let p=this.startNode(),d;l?(d="await using",this.recordAwaitIfAllowed()||this.raise(O.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):d=this.state.value,this.next(),this.parseVar(p,!0,d);let m=this.finishNode(p,"VariableDeclaration"),g=this.match(58);return g&&u&&this.raise(O.ForInUsing,m),(g||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 ya,a=this.parseExpression(!0,i),o=this.isContextual(102);if(o&&(n&&this.raise(O.ForOfLet,a),r===null&&s&&a.type==="Identifier"&&this.raise(O.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(a,!0);let l=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{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.raise(O.IllegalReturn,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(NX),this.scope.enter(256);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(O.MultipleDefaultsInSwitch,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(O.NewlineAfterThrow,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,{type:"CatchClause"},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(O.NoCatchOrFinally,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(bm),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(O.StrictWith,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(O.LabelRedeclaration,n,{labelName:r});let i=RG(this.state.type)?1:this.match(71)?2: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.sourceToOffsetPos(this.state.start),o.kind=i;else break}return this.state.labels.push({name:r,kind:i,statementStart:this.sourceToOffsetPos(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(O.ForInOfLoopInitializer,r,{type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(O.InvalidLhs,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(O.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(n==="const"||n==="using"||n==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(O.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),i.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let n=this.parseBindingAtom();r==="using"||r==="await using"?(n.type==="ArrayPattern"||n.type==="ObjectPattern")&&this.raise(O.UsingDeclarationHasBindingPattern,n.loc.start):n.type==="VoidPattern"&&this.raise(O.UnexpectedVoidPattern,n.loc.start),this.checkLVal(n,{type:"VariableDeclarator"},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(O.GeneratorInSingleStatementContext,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(514),this.prodParam.enter(_u(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||bt(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(gX()),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)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}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(O.DecoratorSemicolon,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(O.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),s.length)throw this.raise(O.TrailingDecorator,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,p=i;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){c.kind="method";let T=this.match(139);if(this.parseClassElementName(c),this.parsePostMemberNameModifiers(c),T){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(i)&&this.raise(O.ConstructorIsGenerator,i.key),this.pushClassMethod(t,i,!0,!1,!1,!1);return}let d=!this.state.containsEsc&&bt(this.state.type),m=this.parseClassElementName(r),g=d?m.name:null,f=this.isPrivateName(m),b=this.state.startLoc;if(this.parsePostMemberNameModifiers(p),this.isClassMethod()){if(c.kind="method",f){this.pushClassPrivateMethod(t,a,!1,!1);return}let T=this.isNonstaticConstructor(i),w=!1;T&&(i.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(O.DuplicateConstructor,m),T&&this.hasPlugin("typescript")&&r.override&&this.raise(O.OverrideOnConstructor,m),n.hadConstructor=!0,w=n.hadSuperClass),this.pushClassMethod(t,i,!1,!1,T,w)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o);else if(g==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(m);let T=this.eat(55);p.optional&&this.unexpected(b),c.kind="method";let w=this.match(139);this.parseClassElementName(c),this.parsePostMemberNameModifiers(p),w?this.pushClassPrivateMethod(t,a,T,!0):(this.isNonstaticConstructor(i)&&this.raise(O.ConstructorIsAsync,i.key),this.pushClassMethod(t,i,T,!0,!1,!1))}else if((g==="get"||g==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(m),c.kind=g;let T=this.match(139);this.parseClassElementName(i),T?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(O.ConstructorIsAccessor,i.key),this.pushClassMethod(t,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else if(g==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(m);let T=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(t,u,T)}else this.isLineTerminator()?f?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:r,value:n}=this.state;if((r===132||r===134)&&t.static&&n==="prototype"&&this.raise(O.StaticPrototype,this.state.startLoc),r===139){n==="constructor"&&this.raise(O.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return t.key=s,s}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var n;this.scope.enter(720);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(O.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(O.ConstructorClassField,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){!n&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(O.ConstructorClassField,r.key);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(592),this.expressionScope.enter(LS()),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(bt(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,s);else if(n||!r)t.id=null;else throw this.raise(O.MissingClassName,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(O.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!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 p;if(u||c){if(p=!1,r)throw this.raise(O.UnsupportedDecoratorExport,t);this.parseExportFrom(t,u)}else p=this.maybeParseExportDeclaration(t);if(u||c||p){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(O.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(m,"ExportNamedDeclaration")}if(this.eat(65)){let m=t,g=this.parseExportDefaultExpression();if(m.declaration=g,g.type==="ClassDeclaration")this.maybeTakeDecorators(r,g,m);else if(r)throw this.raise(O.UnsupportedDecoratorExport,t);return this.checkExport(m,!0,!0),this.sawUnambiguousESM=!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)){var r,n;(n=(r=t).specifiers)!=null||(r.specifiers=[]);let s=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),s.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let r=t;r.specifiers||(r.specifiers=[]);let n=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(n)),r.source=null,this.hasPlugin("importAssertions")?r.assertions=[]:r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],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(O.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(O.UnsupportedDefaultExport,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(bt(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let s=this.nextTokenStart(),i=this.input.charCodeAt(s);if(i===123||this.chStartsBindingIdentifier(i,s)&&!this.input.startsWith("from",s))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),n=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||bt(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(O.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(O.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(O.UsingDeclarationExport,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(O.ExportDefaultFromAsIdentifier,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(O.ExportBindingIsString,o,{localName:c.value,exportName:u}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:l}=o;if(!l)throw new Error("Assertion failure");this.checkDuplicateExports(t,l.name)}else if(o.type==="VariableDeclaration")for(let l of o.declarations)this.checkDeclaration(l.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(O.DuplicateDefaultExport,t):this.raise(O.DuplicateExport,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(134),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=this.cloneStringLiteral(t.local):t.exported||(t.exported=this.cloneIdentifier(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),r=OX.exec(t.value);return r&&this.raise(O.ModuleExportNameHasLoneSurrogate,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(O.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(t.phase==="defer")n!=="ImportNamespaceSpecifier"&&this.raise(O.DeferImportRequiresNamespace,r[0].loc.start);else if(t.module){var s;n!=="ImportDefaultSpecifier"&&this.raise(O.ImportReflectionNotBinding,r[0].loc.start),((s=t.assertions)==null?void 0:s.length)>0&&this.raise(O.ImportReflectionHasAssertion,r[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(O.ImportJSONBindingNotDefault,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.startNode(),s=this.parseIdentifierName(!0),{type:i}=this.state;return(Sn(i)?i!==98||this.lookaheadCharCode()===102:i!==12)?(this.applyImportPhase(t,r,s,n.loc.start),null):(this.applyImportPhase(t,r,null),this.createIdentifier(n,s))}isPrecedingIdImportPhase(t){let{type:r}=this.state;return bt(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(134)?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.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||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,{type:r},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(O.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),r.add(s),this.match(134)?n.key=this.parseStringLiteral(s):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(O.ModuleAttributeInvalidValue,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(O.ModuleAttributeDifferentFromType,n.key),r.has(n.key.name)&&this.raise(O.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),r.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(O.ModuleAttributeInvalidValue,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;var n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?(r=this.parseModuleAttributes(),this.addExtra(t,"deprecatedWithLegacySyntax",!0)):r=this.parseImportAttributes(),n=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(!this.hasPlugin("deprecatedImportAssert")&&!this.hasPlugin("importAssertions")&&this.raise(O.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];!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(Sn(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(O.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),s=this.match(134),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(O.ImportBindingIsString,t,{importName:a.value});this.checkReservedWord(a.name,t.loc.start,!0,!0),t.local||(t.local=this.cloneIdentifier(a))}return this.finishImportSpecifier(t,"ImportSpecifier",i)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},ku=class extends Rm{constructor(t,r,n){t=NG(t),super(t,r),this.options=t,this.initializeScopes(),this.plugins=n,this.filename=t.sourceFilename,this.startIndex=t.startIndex;let s=0;t.allowAwaitOutsideFunction&&(s|=1),t.allowReturnOutsideFunction&&(s|=2),t.allowImportExportEverywhere&&(s|=8),t.allowSuperOutsideMethod&&(s|=16),t.allowUndeclaredExports&&(s|=64),t.allowNewTargetOutsideFunction&&(s|=4),t.allowYieldOutsideFunction&&(s|=32),t.ranges&&(s|=128),t.tokens&&(s|=256),t.createImportExpressions&&(s|=512),t.createParenthesizedExpressions&&(s|=1024),t.errorRecovery&&(s|=2048),t.attachComment&&(s|=4096),t.annexB&&(s|=8192),this.optionFlags=s}getScopeHandler(){return Lo}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.comments.length=this.state.commentsLen,t}};function kX(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let n=Bo(t,e),s=n.parse();if(n.sawUnambiguousESM)return s;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",Bo(t,e).parse()}catch{}else s.program.sourceType="script";return s}catch(n){try{return t.sourceType="script",Bo(t,e).parse()}catch{}throw n}}else return Bo(t,e).parse()}function FX(e,t){let r=Bo(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function LX(e){let t={};for(let r of Object.keys(e))t[r]=es(e[r]);return t}var jX=LX(FG);function Bo(e,t){let r=ku,n=new Map;if(e!=null&&e.plugins){for(let s of e.plugins){let i,a;typeof s=="string"?i=s:[i,a]=s,n.has(i)||n.set(i,a||{})}IX(n),r=MX(n)}return new r(e,t,n)}var AS=new Map;function MX(e){let t=[];for(let s of _X)e.has(s)&&t.push(s);let r=t.join("|"),n=AS.get(r);if(!n){n=ku;for(let s of t)n=qS[s](n);AS.set(r,n)}return n}Mo.parse=kX;Mo.parseExpression=FX;Mo.tokTypes=jX});var $S=x((Iwe,Ym)=>{var Lu=process||{},US=Lu.argv||[],Fu=Lu.env||{},RX=!(Fu.NO_COLOR||US.includes("--no-color"))&&(!!Fu.FORCE_COLOR||US.includes("--color")||Lu.platform==="win32"||(Lu.stdout||{}).isTTY&&Fu.TERM!=="dumb"||!!Fu.CI),qX=(e,t,r=e)=>n=>{let s=""+n,i=s.indexOf(t,e.length);return~i?e+UX(s,t,r,i)+t:e+s+t},UX=(e,t,r,n)=>{let s="",i=0;do s+=e.substring(i,n)+r,i=n+t.length,n=e.indexOf(t,i);while(~n);return s+e.substring(i)},VS=(e=RX)=>{let t=e?qX:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};Ym.exports=VS();Ym.exports.createColors=VS});var WS=x(ju=>{Object.defineProperty(ju,"__esModule",{value:!0});ju.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;ju.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}});var Ta=x(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});var Jm=$S(),KS=WS(),HS=ia();function VX(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:Jm.isColorSupported}var Mu=(e,t)=>r=>e(t(r));function YS(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:Mu(Mu(e.white,e.bgRed),e.bold),gutter:e.gray,marker:Mu(e.red,e.bold),message:Mu(e.red,e.bold),reset:e.reset}}var $X=YS(Jm.createColors(!0)),WX=YS(Jm.createColors(!1));function JS(e){return e?$X:WX}var KX=new Set(["as","async","from","get","of","set"]),HX=/\r\n|[\n\r\u2028\u2029]/,GX=/^[()[\]{}]$/,zS;{let e=/^[a-z][\w-]*$/i,t=function(r,n,s){if(r.type==="name"){if(HS.isKeyword(r.value)||HS.isStrictReservedWord(r.value,!0)||KX.has(r.value))return"keyword";if(e.test(r.value)&&(s[n-1]==="<"||s.slice(n-2,n)==="t[n](i)).join(` `):r+=s;return r}var GS=!1,XS=/\r\n|[\n\r\u2028\u2029]/;function XX(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,p=Math.max(o-(i+1),0),d=Math.min(t.length,u+a);o===-1&&(p=0),u===-1&&(d=t.length);let m=u-o,g={};if(m)for(let f=0;f<=m;f++){let b=f+o;if(!l)g[b]=!0;else if(f===0){let T=t[b-1].length;g[b]=[l,T-l+1]}else if(f===m)g[b]=[0,c];else{let T=t[b-f].length;g[b]=[0,T]}}else l===c?l?g[o]=[l,0]:g[o]=!0:g[o]=[l,c-l];return{start:p,end:d,markerLines:g}}function ZS(e,t,r={}){let n=r.forceColor||VX()&&r.highlightCode,s=JS(n),i=e.split(XS),{start:a,end:o,markerLines:l}=XX(t,i,r),u=t.start&&typeof t.start.column=="number",c=String(o).length,d=(n?QS(e):e).split(XS,o).slice(a,o).map((m,g)=>{let f=a+1+g,T=` ${` ${f}`.slice(-c)} |`,w=l[f],I=!l[f+1];if(w){let N="";if(Array.isArray(w)){let L=m.slice(0,Math.max(w[0]-1,0)).replace(/[^\t]/g," "),W=w[1]||1;N=[` `,s.gutter(T.replace(/\d/g," "))," ",L,s.marker("^").repeat(W)].join(""),I&&r.message&&(N+=" "+s.message(r.message))}return[s.marker(">"),s.gutter(T),m.length>0?` ${m}`:"",N].join("")}else return` ${s.gutter(T)}${m.length>0?` ${m}`:""}`}).join(` `);return r.message&&!u&&(d=`${" ".repeat(c+1)}${r.message} ${d}`),n?s.reset(d):d}function YX(e,t,r,n={}){if(!GS){GS=!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),ZS(e,{start:{column:r,line:t}},n)}qo.codeFrameColumns=ZS;qo.default=YX;qo.highlight=QS});var Qm=x(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.default=uY;var JX=Fe(),zX=Ro(),QX=Ta(),{isCallExpression:ZX,isExpressionStatement:eY,isFunction:tY,isIdentifier:rY,isJSXIdentifier:nY,isNewExpression:sY,isPlaceholder:Ru,isStatement:iY,isStringLiteral:ev,removePropertiesDeep:aY,traverse:oY}=JX,lY=/^[_$A-Z0-9]+$/;function uY(e,t,r){let{placeholderWhitelist:n,placeholderPattern:s,preserveComments:i,syntacticPlaceholders:a}=r,o=fY(t,r.parser,a);aY(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 oY(o,cY,l),Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function cY(e,t,r){var n;let s,i=r.syntactic.placeholders.length>0;if(Ru(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(rY(e)||nY(e))s=e.name;else if(ev(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||lY).test(s))&&!((n=r.placeholderWhitelist)!=null&&n.has(s)))return;t=t.slice();let{node:a,key:o}=t[t.length-1],l;ev(e)||Ru(e,{expectedNode:"StringLiteral"})?l="string":sY(a)&&o==="arguments"||ZX(a)&&o==="arguments"||tY(a)&&o==="params"?l="param":eY(a)&&!Ru(e)?(l="statement",t=t.slice(0,-1)):iY(e)&&Ru(e)?l="statement":l="other";let{placeholders:u,placeholderNames:c}=i?r.syntactic:r.legacy;u.push({name:s,type:l,resolve:p=>pY(p,t),isDuplicate:c.has(s)}),c.add(s)}function pY(e,t){let r=e;for(let i=0;i{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.default=bY;var dY=Fe(),{blockStatement:hY,cloneNode:ey,emptyStatement:mY,expressionStatement:Zm,identifier:qu,isStatement:tv,isStringLiteral:yY,stringLiteral:gY,validate:rv}=dY;function bY(e,t){let r=ey(e.ast);return t&&(e.placeholders.forEach(n=>{if(!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{var s;EY(n,r,(s=t&&t[n.name])!=null?s:null)}catch(i){throw i.message=`@babel/template placeholder "${n.name}": ${i.message}`,i}}),r}function EY(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(o=>ey(o)):typeof r=="object"&&(r=ey(r)));let{parent:n,key:s,index:i}=e.resolve(t);if(e.type==="string"){if(typeof r=="string"&&(r=gY(r)),!r||!yY(r))throw new Error("Expected string substitution")}else if(e.type==="statement")i===void 0?r?Array.isArray(r)?r=hY(r):typeof r=="string"?r=Zm(qu(r)):tv(r)||(r=Zm(r)):r=mY():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=qu(r)),tv(r)||(r=Zm(r)));else if(e.type==="param"){if(typeof r=="string"&&(r=qu(r)),i===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=qu(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");function a(o,l,u){let c=o[l];o[l]=u,(c.type==="Identifier"||c.type==="Placeholder")&&(c.typeAnnotation&&(u.typeAnnotation=c.typeAnnotation),c.optional&&(u.optional=c.optional),c.decorators&&(u.decorators=c.decorators))}if(i===void 0)rv(n,s,r),a(n,s,r);else{let o=n[s].slice();e.type==="statement"||e.type==="param"?r==null?o.splice(i,1):Array.isArray(r)?o.splice(i,1,...r):a(o,i,r):a(o,i,r),rv(n,s,o),n[s]=o}}});var nv=x(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});ny.default=vY;var TY=Au(),xY=Qm(),SY=ry();function vY(e,t,r){t=e.code(t);let n;return s=>{let i=(0,TY.normalizeReplacements)(s);return n||(n=(0,xY.default)(e,t,r)),e.unwrap((0,SY.default)(n,i))}}});var sv=x(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});sy.default=DY;var PY=Au(),AY=Qm(),CY=ry();function DY(e,t,r){let{metadata:n,names:s}=wY(e,t,r);return i=>{let a={};return i.forEach((o,l)=>{a[s[l]]=o}),o=>{let l=(0,PY.normalizeReplacements)(o);return l&&Object.keys(l).forEach(u=>{if(hasOwnProperty.call(a,u))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,CY.default)(n,l?Object.assign(l,a):a))}}}function wY(e,t,r){let n="BABEL_TPL$",s=t.join("");do n="$$"+n;while(s.includes(n));let{names:i,code:a}=IY(t,n);return{metadata:(0,AY.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 IY(e,t){let r=[],n=e[0];for(let s=1;s{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});iy.default=uv;var Kn=Au(),iv=nv(),av=sv(),ov=(0,Kn.validate)({placeholderPattern:!1});function uv(e,t){let r=new WeakMap,n=new WeakMap,s=t||(0,Kn.validate)(null);return Object.assign((i,...a)=>{if(typeof i=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return lv((0,iv.default)(e,i,(0,Kn.merge)(s,(0,Kn.validate)(a[0]))))}else if(Array.isArray(i)){let o=r.get(i);return o||(o=(0,av.default)(e,i,s),r.set(i,o)),lv(o(a))}else if(typeof i=="object"&&i){if(a.length>0)throw new Error("Unexpected extra params.");return uv(e,(0,Kn.merge)(s,(0,Kn.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,iv.default)(e,i,(0,Kn.merge)((0,Kn.merge)(s,(0,Kn.validate)(a[0])),ov))()}else if(Array.isArray(i)){let o=n.get(i);return o||(o=(0,av.default)(e,i,(0,Kn.merge)(s,ov)),n.set(i,o)),o(a)()}throw new Error(`Unexpected template param ${typeof i}`)}})}function lv(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 $o=x(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.statements=Hr.statement=Hr.smart=Hr.program=Hr.expression=Hr.default=void 0;var Uo=cS(),Vo=cv(),ay=Hr.smart=(0,Vo.default)(Uo.smart),_Y=Hr.statement=(0,Vo.default)(Uo.statement),NY=Hr.statements=(0,Vo.default)(Uo.statements),OY=Hr.expression=(0,Vo.default)(Uo.expression),BY=Hr.program=(0,Vo.default)(Uo.program),jwe=Hr.default=Object.assign(ay.bind(void 0),{smart:ay,statement:_Y,statements:NY,expression:OY,program:BY,ast:ay.ast})});var pv=x(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.default=void 0;var kY=$o();function X(e,t,r){return Object.freeze({minVersion:e,ast:()=>kY.default.program.ast(t,{preserveComments:!0}),metadata:r})}var FY=Uu.default={__proto__:null,OverloadYield:X("7.18.14","function _OverloadYield(e,d){this.v=e,this.k=d}",{globals:[],locals:{_OverloadYield:["body.0.id"]},exportBindingAssignments:[],exportName:"_OverloadYield",dependencies:{},internal:!1}),applyDecoratedDescriptor:X("7.0.0-beta.0",'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach((function(i){a[i]=n[i]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reverse().reduce((function(r,n){return n(i,e,r)||r}),a),l&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(l):void 0,a.initializer=void 0),void 0===a.initializer?(Object.defineProperty(i,e,a),null):a}',{globals:["Object"],locals:{_applyDecoratedDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_applyDecoratedDescriptor",dependencies:{},internal:!1}),applyDecs2311:X("7.24.0",'function applyDecs2311(e,t,n,r,o,i){var a,c,u,s,f,l,p,d=Symbol.metadata||Symbol.for("Symbol.metadata"),m=Object.defineProperty,h=Object.create,y=[h(null),h(null)],v=t.length;function g(t,n,r){return function(o,i){n&&(i=o,o=e);for(var a=0;a=0;O-=n?2:1){var T=b(h[O],"A decorator","be",!0),z=n?h[O-1]:void 0,A={},H={kind:["field","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,"class decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?function(e){return d(e),P.value}:I("get",0,d):function(e){return e[r]}),E||S||(c.set=f?I("set",0,d):function(e,t){e[r]=t}),N=T.call(z,D?{get:P.get,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N.init,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or init properties or undefined")}else b(N,(l?"field":"method")+" decorators","return")&&(l?k.unshift(N):P[F]=N)}return o<2&&u.push(g(k,s,1),g(i,s,0)),l||w||(f?D?u.splice(-1,0,I("get",s),I("set",s)):u.push(E?P[F]:b.call.bind(P[F])):m(e,r,P)),N}function w(e){return m(e,d,{configurable:!0,enumerable:!0,value:a})}return void 0!==i&&(a=i[d]),a=h(null==a?null:a),f=[],l=function(e){e&&f.push(g(e))},p=function(t,r){for(var i=0;ir.length)&&(a=r.length);for(var e=0,n=Array(a);e=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},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 o,a=!0,u=!1;return{s:function(){t=t.call(r)},n:function(){var r=t.next();return a=r.done,r},e:function(r){u=!0,o=r},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelper",dependencies:{unsupportedIterableToArray:["body.0.body.body.1.consequent.body.0.test.left.right.right.callee"]},internal:!1}),createForOfIteratorHelperLoose:X("7.9.0",'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(t)return(t=t.call(r)).next.bind(t);if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var o=0;return function(){return o>=r.length?{done:!0}:{done:!1,value:r[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}',{globals:["Symbol","Array","TypeError"],locals:{_createForOfIteratorHelperLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_createForOfIteratorHelperLoose",dependencies:{unsupportedIterableToArray:["body.0.body.body.2.test.left.right.right.callee"]},internal:!1}),createSuper:X("7.9.0","function _createSuper(t){var r=isNativeReflectConstruct();return function(){var e,o=getPrototypeOf(t);if(r){var s=getPrototypeOf(this).constructor;e=Reflect.construct(o,arguments,s)}else e=o.apply(this,arguments);return possibleConstructorReturn(this,e)}}",{globals:["Reflect"],locals:{_createSuper:["body.0.id"]},exportBindingAssignments:[],exportName:"_createSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.body.body.0.declarations.1.init.callee","body.0.body.body.1.argument.body.body.1.consequent.body.0.declarations.0.init.object.callee"],isNativeReflectConstruct:["body.0.body.body.0.declarations.0.init.callee"],possibleConstructorReturn:["body.0.body.body.1.argument.body.body.2.argument.callee"]},internal:!1}),decorate:X("7.1.5",`function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n=0;n--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||a);e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p=0;i--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.elements){e=n.elements;for(var s=0;s1){for(var t=Array(n),f=0;f3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&dn||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0))}if(o||r>1)return a;throw y=!0,n}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0)}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break}catch(t){i=e,c=1,u=t}finally{f=1}}return{value:t,done:y}}}(r,o,i),!0),u}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(define(t={},n,(function(){return this})),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,define(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return GeneratorFunction.prototype=GeneratorFunctionPrototype,define(u,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",define(GeneratorFunctionPrototype,o,"GeneratorFunction"),define(u),define(u,o,"Generator"),define(u,n,(function(){return this})),define(u,"toString",(function(){return"[object Generator]"})),(_regenerator=function(){return{w:i,m:f}})()}`,{globals:["Symbol","Object","TypeError"],locals:{_regenerator:["body.0.id","body.0.body.body.9.argument.expressions.9.callee.left"]},exportBindingAssignments:["body.0.body.body.9.argument.expressions.9.callee"],exportName:"_regenerator",dependencies:{regeneratorDefine:["body.0.body.body.1.body.body.1.argument.expressions.0.callee","body.0.body.body.7.declarations.0.init.alternate.expressions.0.callee","body.0.body.body.8.body.body.0.argument.expressions.0.alternate.expressions.1.callee","body.0.body.body.9.argument.expressions.1.callee","body.0.body.body.9.argument.expressions.2.callee","body.0.body.body.9.argument.expressions.4.callee","body.0.body.body.9.argument.expressions.5.callee","body.0.body.body.9.argument.expressions.6.callee","body.0.body.body.9.argument.expressions.7.callee","body.0.body.body.9.argument.expressions.8.callee"]},internal:!1}),regeneratorAsync:X("7.27.0","function _regeneratorAsync(n,e,r,t,o){var a=asyncGen(n,e,r,t,o);return a.next().then((function(n){return n.done?n.value:a.next()}))}",{globals:[],locals:{_regeneratorAsync:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorAsync",dependencies:{regeneratorAsyncGen:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),regeneratorAsyncGen:X("7.27.0","function _regeneratorAsyncGen(r,e,t,o,n){return new regeneratorAsyncIterator(regenerator().w(r,e,t,o),n||Promise)}",{globals:["Promise"],locals:{_regeneratorAsyncGen:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorAsyncGen",dependencies:{regenerator:["body.0.body.body.0.argument.arguments.0.callee.object.callee"],regeneratorAsyncIterator:["body.0.body.body.0.argument.callee"]},internal:!1}),regeneratorAsyncIterator:X("7.27.0",'function AsyncIterator(t,e){function n(r,o,i,f){try{var c=t[r](o),u=c.value;return u instanceof OverloadYield?e.resolve(u.v).then((function(t){n("next",t,i,f)}),(function(t){n("throw",t,i,f)})):e.resolve(u).then((function(t){c.value=t,i(c)}),(function(t){return n("throw",t,i,f)}))}catch(t){f(t)}}var r;this.next||(define(AsyncIterator.prototype),define(AsyncIterator.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",(function(){return this}))),define(this,"_invoke",(function(t,o,i){function f(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(f,f):f()}),!0)}',{globals:["Symbol"],locals:{AsyncIterator:["body.0.id","body.0.body.body.2.expression.expressions.0.right.expressions.0.arguments.0.object","body.0.body.body.2.expression.expressions.0.right.expressions.1.arguments.0.object"]},exportBindingAssignments:[],exportName:"AsyncIterator",dependencies:{OverloadYield:["body.0.body.body.0.body.body.0.block.body.1.argument.test.right"],regeneratorDefine:["body.0.body.body.2.expression.expressions.0.right.expressions.0.callee","body.0.body.body.2.expression.expressions.0.right.expressions.1.callee","body.0.body.body.2.expression.expressions.1.callee"]},internal:!0}),regeneratorDefine:X("7.27.0",'function regeneratorDefine(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}regeneratorDefine=function(e,r,n,t){function o(r,n){regeneratorDefine(e,r,(function(e){return this._invoke(r,n,e)}))}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2))},regeneratorDefine(e,r,n,t)}',{globals:["Object"],locals:{regeneratorDefine:["body.0.id","body.0.body.body.2.expression.expressions.0.right.body.body.0.body.body.0.expression.callee","body.0.body.body.2.expression.expressions.1.callee","body.0.body.body.2.expression.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.2.expression.expressions.0"],exportName:"regeneratorDefine",dependencies:{},internal:!0}),regeneratorKeys:X("7.27.0","function _regeneratorKeys(e){var n=Object(e),r=[];for(var t in n)r.unshift(t);return function e(){for(;r.length;)if((t=r.pop())in n)return e.value=t,e.done=!1,e;return e.done=!0,e}}",{globals:["Object"],locals:{_regeneratorKeys:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorKeys",dependencies:{},internal:!1}),regeneratorValues:X("7.18.0",'function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(typeof e+" is not iterable")}',{globals:["Symbol","isNaN","TypeError"],locals:{_regeneratorValues:["body.0.id"]},exportBindingAssignments:[],exportName:"_regeneratorValues",dependencies:{},internal:!1}),set:X("7.0.0-beta.0",'function set(e,r,t,o){return set="undefined"!=typeof Reflect&&Reflect.set?Reflect.set:function(e,r,t,o){var f,i=superPropBase(e,r);if(i){if((f=Object.getOwnPropertyDescriptor(i,r)).set)return f.set.call(o,t),!0;if(!f.writable)return!1}if(f=Object.getOwnPropertyDescriptor(o,r)){if(!f.writable)return!1;f.value=t,Object.defineProperty(o,r,f)}else defineProperty(o,r,t);return!0},set(e,r,t,o)}function _set(e,r,t,o,f){if(!set(e,r,t,o||e)&&f)throw new TypeError("failed to set property");return t}',{globals:["Reflect","Object","TypeError"],locals:{set:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.0.test.left.argument.callee","body.0.body.body.0.argument.expressions.0.left"],_set:["body.1.id"]},exportBindingAssignments:[],exportName:"_set",dependencies:{superPropBase:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.1.init.callee"],defineProperty:["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.2.alternate.expression.callee"]},internal:!1}),setFunctionName:X("7.23.6",'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}',{globals:["Object"],locals:{setFunctionName:["body.0.id"]},exportBindingAssignments:[],exportName:"setFunctionName",dependencies:{},internal:!1}),setPrototypeOf:X("7.0.0-beta.0","function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_setPrototypeOf(t,e)}",{globals:["Object"],locals:{_setPrototypeOf:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_setPrototypeOf",dependencies:{},internal:!1}),skipFirstGeneratorNext:X("7.0.0-beta.0","function _skipFirstGeneratorNext(t){return function(){var r=t.apply(this,arguments);return r.next(),r}}",{globals:[],locals:{_skipFirstGeneratorNext:["body.0.id"]},exportBindingAssignments:[],exportName:"_skipFirstGeneratorNext",dependencies:{},internal:!1}),slicedToArray:X("7.0.0-beta.0","function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableToArray(r,e)||nonIterableRest()}",{globals:[],locals:{_slicedToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_slicedToArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArrayLimit:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]},internal:!1}),superPropBase:X("7.0.0-beta.0","function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=getPrototypeOf(t)););return t}",{globals:[],locals:{_superPropBase:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropBase",dependencies:{getPrototypeOf:["body.0.body.body.0.test.right.right.right.callee"]},internal:!1}),superPropGet:X("7.25.0",'function _superPropGet(t,o,e,r){var p=get(getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t)}:p}',{globals:[],locals:{_superPropGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropGet",dependencies:{get:["body.0.body.body.0.declarations.0.init.callee"],getPrototypeOf:["body.0.body.body.0.declarations.0.init.arguments.0.callee"]},internal:!1}),superPropSet:X("7.25.0","function _superPropSet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}",{globals:[],locals:{_superPropSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_superPropSet",dependencies:{set:["body.0.body.body.0.argument.callee"],getPrototypeOf:["body.0.body.body.0.argument.arguments.0.callee"]},internal:!1}),taggedTemplateLiteral:X("7.0.0-beta.0","function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}",{globals:["Object"],locals:{_taggedTemplateLiteral:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteral",dependencies:{},internal:!1}),taggedTemplateLiteralLoose:X("7.0.0-beta.0","function _taggedTemplateLiteralLoose(e,t){return t||(t=e.slice(0)),e.raw=t,e}",{globals:[],locals:{_taggedTemplateLiteralLoose:["body.0.id"]},exportBindingAssignments:[],exportName:"_taggedTemplateLiteralLoose",dependencies:{},internal:!1}),tdz:X("7.5.5",'function _tdzError(e){throw new ReferenceError(e+" is not defined - temporal dead zone")}',{globals:["ReferenceError"],locals:{_tdzError:["body.0.id"]},exportBindingAssignments:[],exportName:"_tdzError",dependencies:{},internal:!1}),temporalRef:X("7.0.0-beta.0","function _temporalRef(r,e){return r===undef?err(e):r}",{globals:[],locals:{_temporalRef:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalRef",dependencies:{temporalUndefined:["body.0.body.body.0.argument.test.right"],tdz:["body.0.body.body.0.argument.consequent.callee"]},internal:!1}),temporalUndefined:X("7.0.0-beta.0","function _temporalUndefined(){}",{globals:[],locals:{_temporalUndefined:["body.0.id"]},exportBindingAssignments:[],exportName:"_temporalUndefined",dependencies:{},internal:!1}),toArray:X("7.0.0-beta.0","function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableRest()}",{globals:[],locals:{_toArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toArray",dependencies:{arrayWithHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableRest:["body.0.body.body.0.argument.right.callee"]},internal:!1}),toConsumableArray:X("7.0.0-beta.0","function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterableSpread()}",{globals:[],locals:{_toConsumableArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_toConsumableArray",dependencies:{arrayWithoutHoles:["body.0.body.body.0.argument.left.left.left.callee"],iterableToArray:["body.0.body.body.0.argument.left.left.right.callee"],unsupportedIterableToArray:["body.0.body.body.0.argument.left.right.callee"],nonIterableSpread:["body.0.body.body.0.argument.right.callee"]},internal:!1}),toPrimitive:X("7.1.5",'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)}',{globals:["Symbol","TypeError","String","Number"],locals:{toPrimitive:["body.0.id"]},exportBindingAssignments:[],exportName:"toPrimitive",dependencies:{},internal:!1}),toPropertyKey:X("7.1.5",'function toPropertyKey(t){var i=toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}',{globals:[],locals:{toPropertyKey:["body.0.id"]},exportBindingAssignments:[],exportName:"toPropertyKey",dependencies:{toPrimitive:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),toSetter:X("7.24.0",'function _toSetter(t,e,n){e||(e=[]);var r=e.length++;return Object.defineProperty({},"_",{set:function(o){e[r]=o,t.apply(n,e)}})}',{globals:["Object"],locals:{_toSetter:["body.0.id"]},exportBindingAssignments:[],exportName:"_toSetter",dependencies:{},internal:!1}),tsRewriteRelativeImportExtensions:X("7.27.0",'function tsRewriteRelativeImportExtensions(t,e){return"string"==typeof t&&/^\\.\\.?\\//.test(t)?t.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+)?)\\.([cm]?)ts$/i,(function(t,s,r,n,o){return s?e?".jsx":".js":!r||n&&o?r+n+"."+o.toLowerCase()+"js":t})):t}',{globals:[],locals:{tsRewriteRelativeImportExtensions:["body.0.id"]},exportBindingAssignments:[],exportName:"tsRewriteRelativeImportExtensions",dependencies:{},internal:!1}),typeof:X("7.0.0-beta.0",'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)}',{globals:["Symbol"],locals:{_typeof:["body.0.id","body.0.body.body.0.argument.expressions.1.callee","body.0.body.body.0.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.0.argument.expressions.0"],exportName:"_typeof",dependencies:{},internal:!1}),unsupportedIterableToArray:X("7.9.0",'function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?arrayLikeToArray(r,a):void 0}}',{globals:["Array"],locals:{_unsupportedIterableToArray:["body.0.id"]},exportBindingAssignments:[],exportName:"_unsupportedIterableToArray",dependencies:{arrayLikeToArray:["body.0.body.body.0.consequent.body.0.consequent.argument.callee","body.0.body.body.0.consequent.body.2.argument.expressions.1.alternate.consequent.callee"]},internal:!1}),usingCtx:X("7.23.9",'function _usingCtx(){var r="function"==typeof SuppressedError?SuppressedError:function(r,e){var n=Error();return n.name="SuppressedError",n.error=r,n.suppressed=e,n},e={},n=[];function using(r,e){if(null!=e){if(Object(e)!==e)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(void 0===o&&(o=e[Symbol.dispose||Symbol.for("Symbol.dispose")],r))var t=o;if("function"!=typeof o)throw new TypeError("Object is not disposable.");t&&(o=function(){try{t.call(e)}catch(r){return Promise.reject(r)}}),n.push({v:e,d:o,a:r})}else r&&n.push({d:e,a:r});return e}return{e:e,u:using.bind(null,!1),a:using.bind(null,!0),d:function(){var o,t=this.e,s=0;function next(){for(;o=n.pop();)try{if(!o.a&&1===s)return s=0,n.push(o),Promise.resolve().then(next);if(o.d){var r=o.d.call(o.v);if(o.a)return s|=2,Promise.resolve(r).then(next,err)}else s|=1}catch(r){return err(r)}if(1===s)return t!==e?Promise.reject(t):Promise.resolve();if(t!==e)throw t}function err(n){return t=t!==e?new r(n,t):n,next()}return next()}}}',{globals:["SuppressedError","Error","Object","TypeError","Symbol","Promise"],locals:{_usingCtx:["body.0.id"]},exportBindingAssignments:[],exportName:"_usingCtx",dependencies:{},internal:!1}),wrapAsyncGenerator:X("7.0.0-beta.0",'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,arguments))}}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)};',{globals:["Promise","Symbol"],locals:{_wrapAsyncGenerator:["body.0.id"],AsyncGenerator:["body.1.id","body.0.body.body.0.argument.body.body.0.argument.callee","body.2.expression.expressions.0.left.object.object","body.2.expression.expressions.1.left.object.object","body.2.expression.expressions.2.left.object.object","body.2.expression.expressions.3.left.object.object"]},exportBindingAssignments:[],exportName:"_wrapAsyncGenerator",dependencies:{OverloadYield:["body.1.body.body.1.body.body.0.block.body.0.declarations.2.init.right"]},internal:!1}),wrapNativeSuper:X("7.0.0-beta.0",'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setPrototypeOf(Wrapper,t)},_wrapNativeSuper(t)}',{globals:["Map","TypeError","Object"],locals:{_wrapNativeSuper:["body.0.id","body.0.body.body.1.argument.expressions.1.callee","body.0.body.body.1.argument.expressions.0.left"]},exportBindingAssignments:["body.0.body.body.1.argument.expressions.0"],exportName:"_wrapNativeSuper",dependencies:{getPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.arguments.2.object.callee"],setPrototypeOf:["body.0.body.body.1.argument.expressions.0.right.body.body.4.argument.expressions.1.callee"],isNativeFunction:["body.0.body.body.1.argument.expressions.0.right.body.body.0.test.right.argument.callee"],construct:["body.0.body.body.1.argument.expressions.0.right.body.body.3.body.body.0.argument.callee"]},internal:!1}),wrapRegExp:X("7.19.0",'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=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,t){if(""===t)return e;var p=o[r];return Array.isArray(p)?"$"+p.join("$"):"number"==typeof p?"$"+p:""})))}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)}',{globals:["RegExp","WeakMap","Object","Symbol","Array"],locals:{_wrapRegExp:["body.0.id","body.0.body.body.4.argument.expressions.3.callee.object","body.0.body.body.0.expression.left"]},exportBindingAssignments:["body.0.body.body.0.expression"],exportName:"_wrapRegExp",dependencies:{setPrototypeOf:["body.0.body.body.2.body.body.1.argument.expressions.1.callee"],inherits:["body.0.body.body.4.argument.expressions.0.callee"]},internal:!1}),writeOnlyError:X("7.12.13",`function _writeOnlyError(r){throw new TypeError('"'+r+'" is write-only')}`,{globals:["TypeError"],locals:{_writeOnlyError:["body.0.id"]},exportBindingAssignments:[],exportName:"_writeOnlyError",dependencies:{},internal:!1})};Object.assign(FY,{AwaitValue:X("7.0.0-beta.0","function _AwaitValue(t){this.wrapped=t}",{globals:[],locals:{_AwaitValue:["body.0.id"]},exportBindingAssignments:[],exportName:"_AwaitValue",dependencies:{},internal:!1}),applyDecs:X("7.17.8",'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 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 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 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 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 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 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)]}}}',{globals:["TypeError","Array","Object","Error","Symbol","Map"],locals:{applyDecs2305:["body.0.id"]},exportBindingAssignments:[],exportName:"applyDecs2305",dependencies:{checkInRHS:["body.0.body.body.6.declarations.1.init.callee.body.body.0.declarations.3.init.body.body.0.argument.left.callee"],setFunctionName:["body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.0.consequent.right.properties.0.value.callee","body.0.body.body.3.body.body.2.consequent.body.2.expression.consequent.expressions.1.right.callee"],toPropertyKey:["body.0.body.body.6.declarations.1.init.callee.body.body.2.body.body.1.consequent.body.2.expression.arguments.3.alternate.callee"]},internal:!1}),classApplyDescriptorDestructureSet:X("7.13.10",'function _classApplyDescriptorDestructureSet(e,t){if(t.set)return"__destrObj"in t||(t.__destrObj={set value(r){t.set.call(e,r)}}),t.__destrObj;if(!t.writable)throw new TypeError("attempted to set read only private field");return t}',{globals:["TypeError"],locals:{_classApplyDescriptorDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorDestructureSet",dependencies:{},internal:!1}),classApplyDescriptorGet:X("7.13.10","function _classApplyDescriptorGet(e,t){return t.get?t.get.call(e):t.value}",{globals:[],locals:{_classApplyDescriptorGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorGet",dependencies:{},internal:!1}),classApplyDescriptorSet:X("7.13.10",'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=l}}',{globals:["TypeError"],locals:{_classApplyDescriptorSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classApplyDescriptorSet",dependencies:{},internal:!1}),classCheckPrivateStaticAccess:X("7.13.10","function _classCheckPrivateStaticAccess(s,a,r){return assertClassBrand(a,s,r)}",{globals:[],locals:{_classCheckPrivateStaticAccess:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticAccess",dependencies:{assertClassBrand:["body.0.body.body.0.argument.callee"]},internal:!1}),classCheckPrivateStaticFieldDescriptor:X("7.13.10",'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new TypeError("attempted to "+e+" private static field before its declaration")}',{globals:["TypeError"],locals:{_classCheckPrivateStaticFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classCheckPrivateStaticFieldDescriptor",dependencies:{},internal:!1}),classExtractFieldDescriptor:X("7.13.10","function _classExtractFieldDescriptor(e,t){return classPrivateFieldGet2(t,e)}",{globals:[],locals:{_classExtractFieldDescriptor:["body.0.id"]},exportBindingAssignments:[],exportName:"_classExtractFieldDescriptor",dependencies:{classPrivateFieldGet2:["body.0.body.body.0.argument.callee"]},internal:!1}),classPrivateFieldDestructureSet:X("7.4.4","function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorDestructureSet(e,r)}",{globals:[],locals:{_classPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),classPrivateFieldGet:X("7.0.0-beta.0","function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescriptorGet(e,r)}",{globals:[],locals:{_classPrivateFieldGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.1.argument.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),classPrivateFieldSet:X("7.0.0-beta.0","function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescriptorSet(e,s,r),r}",{globals:[],locals:{_classPrivateFieldSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateFieldSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.1.argument.expressions.0.callee"],classPrivateFieldGet2:["body.0.body.body.0.declarations.0.init.callee"]},internal:!1}),classPrivateMethodGet:X("7.1.6","function _classPrivateMethodGet(s,a,r){return assertClassBrand(a,s),r}",{globals:[],locals:{_classPrivateMethodGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodGet",dependencies:{assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"]},internal:!1}),classPrivateMethodSet:X("7.1.6",'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}',{globals:["TypeError"],locals:{_classPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classPrivateMethodSet",dependencies:{},internal:!1}),classStaticPrivateFieldDestructureSet:X("7.13.10",'function _classStaticPrivateFieldDestructureSet(t,r,s){return assertClassBrand(r,t),classCheckPrivateStaticFieldDescriptor(s,"set"),classApplyDescriptorDestructureSet(t,s)}',{globals:[],locals:{_classStaticPrivateFieldDestructureSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldDestructureSet",dependencies:{classApplyDescriptorDestructureSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:!1}),classStaticPrivateFieldSpecGet:X("7.0.2",'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPrivateStaticFieldDescriptor(r,"get"),classApplyDescriptorGet(t,r)}',{globals:[],locals:{_classStaticPrivateFieldSpecGet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecGet",dependencies:{classApplyDescriptorGet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:!1}),classStaticPrivateFieldSpecSet:X("7.0.2",'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPrivateStaticFieldDescriptor(r,"set"),classApplyDescriptorSet(s,r,e),e}',{globals:[],locals:{_classStaticPrivateFieldSpecSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateFieldSpecSet",dependencies:{classApplyDescriptorSet:["body.0.body.body.0.argument.expressions.2.callee"],assertClassBrand:["body.0.body.body.0.argument.expressions.0.callee"],classCheckPrivateStaticFieldDescriptor:["body.0.body.body.0.argument.expressions.1.callee"]},internal:!1}),classStaticPrivateMethodSet:X("7.3.2",'function _classStaticPrivateMethodSet(){throw new TypeError("attempted to set read only static private field")}',{globals:["TypeError"],locals:{_classStaticPrivateMethodSet:["body.0.id"]},exportBindingAssignments:[],exportName:"_classStaticPrivateMethodSet",dependencies:{},internal:!1}),defineEnumerableProperties:X("7.0.0-beta.0",'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t,n)}if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(r),b=0;b0;)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(e,r):r,s=!0,next()}return next()}',{globals:["SuppressedError","Error","Object","Promise"],locals:{dispose_SuppressedError:["body.0.id","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.left.object","body.0.body.body.0.argument.expressions.0.alternate.expressions.1.right.arguments.1.properties.0.value.properties.0.value","body.0.body.body.0.argument.expressions.1.callee","body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee","body.0.body.body.0.argument.expressions.0.consequent.left","body.0.body.body.0.argument.expressions.0.alternate.expressions.0.left"],_dispose:["body.1.id"]},exportBindingAssignments:[],exportName:"_dispose",dependencies:{},internal:!1}),objectSpread:X("7.0.0-beta.0",'function _objectSpread(e){for(var r=1;r{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.default=void 0;vn.get=dv;vn.getDependencies=qY;vn.isInternal=UY;vn.list=void 0;vn.minVersion=RY;var LY=Fe(),ly=pv(),{cloneNode:jY,identifier:fv}=LY;function Vu(e,t,r){try{let n=t.split("."),s=n.shift();for(;n.length>0;)e=e[s],s=n.shift();if(arguments.length>2)e[s]=r;else return e[s]}catch(n){throw n.message+=` (when accessing ${t})`,n}}function MY(e,t,r,n,s,i){let{locals:a,dependencies:o,exportBindingAssignments:l,exportName:u}=t,c=new Set(n||[]);r&&c.add(r);for(let[p,d]of(Object.entries||(m=>Object.keys(m).map(g=>[g,m[g]])))(a)){let m=p;if(r&&p===u)m=r;else for(;c.has(m);)m="_"+m;if(m!==p)for(let g of d)Vu(e,g,fv(m))}for(let[p,d]of(Object.entries||(m=>Object.keys(m).map(g=>[g,m[g]])))(o)){let m=typeof s=="function"&&s(p)||fv(p);for(let g of d)Vu(e,g,jY(m))}i==null||i(e,u,p=>{l.forEach(d=>Vu(e,d,p(Vu(e,d))))})}var oy=Object.create(null);function $u(e){if(!oy[e]){let t=ly.default[e];if(!t)throw Object.assign(new ReferenceError(`Unknown helper ${e}`),{code:"BABEL_HELPER_UNKNOWN",helper:e});oy[e]={minVersion:t.minVersion,build(r,n,s,i){let a=t.ast();return MY(a,t.metadata,n,s,r,i),{nodes:a.body,globals:t.metadata.globals}},getDependencies(){return Object.keys(t.metadata.dependencies)}}}return oy[e]}function dv(e,t,r,n,s){if(typeof r=="object"){let i=r;(i==null?void 0:i.type)==="Identifier"?r=i.name:r=void 0}return $u(e).build(t,r,n,s)}function RY(e){return $u(e).minVersion}function qY(e){return $u(e).getDependencies()}function UY(e){var t;return(t=ly.default[e])==null?void 0:t.metadata.internal}vn.ensure=e=>{$u(e)};var qwe=vn.list=Object.keys(ly.default).map(e=>e.replace(/^_/,"")),Uwe=vn.default=dv});var cy=x(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.Var=Qe.User=Qe.Statement=Qe.SpreadProperty=Qe.Scope=Qe.RestProperty=Qe.ReferencedMemberExpression=Qe.ReferencedIdentifier=Qe.Referenced=Qe.Pure=Qe.NumericLiteralTypeAnnotation=Qe.Generated=Qe.ForAwaitStatement=Qe.Flow=Qe.Expression=Qe.ExistentialTypeParam=Qe.BlockScoped=Qe.BindingIdentifier=void 0;var $we=Qe.ReferencedIdentifier=["Identifier","JSXIdentifier"],Wwe=Qe.ReferencedMemberExpression=["MemberExpression"],Kwe=Qe.BindingIdentifier=["Identifier"],Hwe=Qe.Statement=["Statement"],Gwe=Qe.Expression=["Expression"],Xwe=Qe.Scope=["Scopable","Pattern"],Ywe=Qe.Referenced=null,Jwe=Qe.BlockScoped=null,zwe=Qe.Var=["VariableDeclaration"],Qwe=Qe.User=null,Zwe=Qe.Generated=null,eIe=Qe.Pure=null,tIe=Qe.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],rIe=Qe.RestProperty=["RestElement"],nIe=Qe.SpreadProperty=["RestElement"],sIe=Qe.ExistentialTypeParam=["ExistsTypeAnnotation"],iIe=Qe.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],aIe=Qe.ForAwaitStatement=["ForOfStatement"]});var mv=x((lIe,hv)=>{var xa=1e3,Sa=xa*60,va=Sa*60,Ei=va*24,VY=Ei*7,$Y=Ei*365.25;hv.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return WY(e);if(r==="number"&&isFinite(e))return t.long?HY(e):KY(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function WY(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*$Y;case"weeks":case"week":case"w":return r*VY;case"days":case"day":case"d":return r*Ei;case"hours":case"hour":case"hrs":case"hr":case"h":return r*va;case"minutes":case"minute":case"mins":case"min":case"m":return r*Sa;case"seconds":case"second":case"secs":case"sec":case"s":return r*xa;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function KY(e){var t=Math.abs(e);return t>=Ei?Math.round(e/Ei)+"d":t>=va?Math.round(e/va)+"h":t>=Sa?Math.round(e/Sa)+"m":t>=xa?Math.round(e/xa)+"s":e+"ms"}function HY(e){var t=Math.abs(e);return t>=Ei?Wu(e,t,Ei,"day"):t>=va?Wu(e,t,va,"hour"):t>=Sa?Wu(e,t,Sa,"minute"):t>=xa?Wu(e,t,xa,"second"):e+" ms"}function Wu(e,t,r,n){var s=t>=r*1.5;return Math.round(e/r)+" "+n+(s?"s":"")}});var py=x((uIe,yv)=>{function GY(e){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=s,r.enabled=o,r.humanize=mv(),r.destroy=u,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let p=0;for(let d=0;d{if(W==="%%")return"%";N++;let H=r.formatters[U];if(typeof H=="function"){let pe=b[N];W=H.call(T,pe),b.splice(N,1),N--}return W}),r.formatArgs.call(T,b),(T.log||r.log).apply(T,b)}return f.namespace=c,f.useColors=r.useColors(),f.color=r.selectColor(c),f.extend=n,f.destroy=r.destroy,Object.defineProperty(f,"enabled",{enumerable:!0,configurable:!1,get:()=>d!==null?d:(m!==r.namespaces&&(m=r.namespaces,g=r.enabled(c)),g),set:b=>{d=b}}),typeof r.init=="function"&&r.init(f),f}function n(c,p){let d=r(this.namespace+(typeof p=="undefined"?":":p)+c);return d.log=this.log,d}function s(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let p=(typeof c=="string"?c:"").trim().replace(" ",",").split(",").filter(Boolean);for(let d of p)d[0]==="-"?r.skips.push(d.slice(1)):r.names.push(d)}function i(c,p){let d=0,m=0,g=-1,f=0;for(;d"-"+p)].join(",");return r.enable(""),c}function o(c){for(let p of r.skips)if(i(c,p))return!1;for(let p of r.names)if(i(c,p))return!0;return!1}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}yv.exports=GY});var gv=x((Yr,Ku)=>{Yr.formatArgs=YY;Yr.save=JY;Yr.load=zY;Yr.useColors=XY;Yr.storage=QY();Yr.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Yr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function XY(){if(typeof window!="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function YY(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+Ku.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(n=r))}),e.splice(n,0,t)}Yr.log=console.debug||console.log||(()=>{});function JY(e){try{e?Yr.storage.setItem("debug",e):Yr.storage.removeItem("debug")}catch{}}function zY(){let e;try{e=Yr.storage.getItem("debug")}catch{}return!e&&typeof process!="undefined"&&"env"in process&&(e=process.env.DEBUG),e}function QY(){try{return localStorage}catch{}}Ku.exports=py()(Yr);var{formatters:ZY}=Ku.exports;ZY.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Ev=x((cIe,bv)=>{"use strict";bv.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),s=t.indexOf("--");return n!==-1&&(s===-1||n{"use strict";var eJ=require("os"),Tv=require("tty"),un=Ev(),{env:or}=process,Hu;un("no-color")||un("no-colors")||un("color=false")||un("color=never")?Hu=0:(un("color")||un("colors")||un("color=true")||un("color=always"))&&(Hu=1);function tJ(){if("FORCE_COLOR"in or)return or.FORCE_COLOR==="true"?1:or.FORCE_COLOR==="false"?0:or.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(or.FORCE_COLOR,10),3)}function rJ(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function nJ(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=tJ();n!==void 0&&(Hu=n);let s=r?Hu:n;if(s===0)return 0;if(r){if(un("color=16m")||un("color=full")||un("color=truecolor"))return 3;if(un("color=256"))return 2}if(e&&!t&&s===void 0)return 0;let i=s||0;if(or.TERM==="dumb")return i;if(process.platform==="win32"){let a=eJ.release().split(".");return Number(a[0])>=10&&Number(a[2])>=10586?Number(a[2])>=14931?3:2:1}if("CI"in or)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(a=>a in or)||or.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in or)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(or.TEAMCITY_VERSION)?1:0;if(or.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in or){let a=Number.parseInt((or.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(or.TERM_PROGRAM){case"iTerm.app":return a>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(or.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(or.TERM)||"COLORTERM"in or?1:i}function fy(e,t={}){let r=nJ(e,{streamIsTTY:e&&e.isTTY,...t});return rJ(r)}xv.exports={supportsColor:fy,stdout:fy({isTTY:Tv.isatty(1)}),stderr:fy({isTTY:Tv.isatty(2)})}});var Pv=x((lr,Xu)=>{var sJ=require("tty"),Gu=require("util");lr.init=pJ;lr.log=lJ;lr.formatArgs=aJ;lr.save=uJ;lr.load=cJ;lr.useColors=iJ;lr.destroy=Gu.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");lr.colors=[6,2,3,4,5,1];try{let e=Sv();e&&(e.stderr||e).level>=2&&(lr.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}lr.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(s,i)=>i.toUpperCase()),n=process.env[t];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),e[r]=n,e},{});function iJ(){return"colors"in lr.inspectOpts?!!lr.inspectOpts.colors:sJ.isatty(process.stderr.fd)}function aJ(e){let{namespace:t,useColors:r}=this;if(r){let n=this.color,s="\x1B[3"+(n<8?n:"8;5;"+n),i=` ${s};1m${t} \x1B[0m`;e[0]=i+e[0].split(` `).join(` `+i),e.push(s+"m+"+Xu.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=oJ()+t+" "+e[0]}function oJ(){return lr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function lJ(...e){return process.stderr.write(Gu.formatWithOptions(lr.inspectOpts,...e)+` `)}function uJ(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function cJ(){return process.env.DEBUG}function pJ(e){e.inspectOpts={};let t=Object.keys(lr.inspectOpts);for(let r=0;rt.trim()).join(" ")};vv.O=function(e){return this.inspectOpts.colors=this.useColors,Gu.inspect(e,this.inspectOpts)}});var Ti=x((fIe,dy)=>{typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?dy.exports=gv():dy.exports=Pv()});var my=x(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.isBindingIdentifier=kJ;rr.isBlockScoped=RJ;rr.isExpression=LJ;rr.isFlow=WJ;rr.isForAwaitStatement=GJ;rr.isGenerated=VJ;rr.isPure=$J;rr.isReferenced=MJ;rr.isReferencedIdentifier=OJ;rr.isReferencedMemberExpression=BJ;rr.isRestProperty=KJ;rr.isScope=jJ;rr.isSpreadProperty=HJ;rr.isStatement=FJ;rr.isUser=UJ;rr.isVar=qJ;var fJ=Fe(),{isBinding:dJ,isBlockScoped:hJ,isExportDeclaration:mJ,isExpression:yJ,isFlow:gJ,isForStatement:bJ,isForXStatement:EJ,isIdentifier:Av,isImportDeclaration:TJ,isImportSpecifier:xJ,isJSXIdentifier:SJ,isJSXMemberExpression:vJ,isMemberExpression:PJ,isRestElement:Cv,isReferenced:hy,isScope:AJ,isStatement:CJ,isVar:DJ,isVariableDeclaration:wJ,react:IJ,isForOfStatement:_J}=fJ,{isCompatTag:NJ}=IJ;function OJ(e){let{node:t,parent:r}=this;if(!Av(t,e)&&!vJ(r,e))if(SJ(t,e)){if(NJ(t.name))return!1}else return!1;return hy(t,r,this.parentPath.parent)}function BJ(){let{node:e,parent:t}=this;return PJ(e)&&hy(e,t)}function kJ(){let{node:e,parent:t}=this,r=this.parentPath.parent;return Av(e)&&dJ(e,t,r)}function FJ(){let{node:e,parent:t}=this;return CJ(e)?!(wJ(e)&&(EJ(t,{left:e})||bJ(t,{init:e}))):!1}function LJ(){return this.isIdentifier()?this.isReferencedIdentifier():yJ(this.node)}function jJ(){return AJ(this.node,this.parent)}function MJ(){return hy(this.node,this.parent)}function RJ(){return hJ(this.node)}function qJ(){return DJ(this.node)}function UJ(){return this.node&&!!this.node.loc}function VJ(){return!this.isUser()}function $J(e){return this.scope.isPure(this.node,e)}function WJ(){let{node:e}=this;return gJ(e)?!0:TJ(e)?e.importKind==="type"||e.importKind==="typeof":mJ(e)?e.exportKind==="type":xJ(e)?e.importKind==="type"||e.importKind==="typeof":!1}function KJ(){var e;return Cv(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function HJ(){var e;return Cv(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function GJ(){return _J(this.node,{await:!0})}rr.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},rr.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var Yu=x(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.environmentVisitor=tz;Si.explode=jv;Si.isExplodedVisitor=Lv;Si.merge=Rv;Si.verify=Mv;var Fv=cy(),XJ=my(),YJ=Fe(),Dv=Pn(),{DEPRECATED_KEYS:wv,DEPRECATED_ALIASES:Iv,FLIPPED_ALIAS_KEYS:_v,TYPES:JJ,__internal__deprecationWarning:Nv}=YJ;function zJ(e){return e in Fv}function Lv(e){return e==null?void 0:e._exploded}function jv(e){if(Lv(e))return e;e._exploded=!0;for(let t of Object.keys(e)){if(xi(t))continue;let r=t.split("|");if(r.length===1)continue;let n=e[t];delete e[t];for(let s of r)e[s]=n}Mv(e),delete e.__esModule,QJ(e),kv(e);for(let t of Object.keys(e)){if(xi(t)||!zJ(t))continue;let r=e[t];for(let s of Object.keys(r))r[s]=ZJ(t,r[s]);delete e[t];let n=Fv[t];if(n!==null)for(let s of n)e[s]?Wo(e[s],r):e[s]=r;else Wo(e,r)}for(let t of Object.keys(e)){if(xi(t))continue;let r=_v[t];if(t in wv){let s=wv[t];Nv(t,s,"Visitor "),r=[s]}else if(t in Iv){let s=Iv[t];Nv(t,s,"Visitor "),r=_v[s]}if(!r)continue;let n=e[t];delete e[t];for(let s of r){let i=e[s];i?Wo(i,n):e[s]=Object.assign({},n)}}for(let t of Object.keys(e))xi(t)||kv(e[t]);return e}function Mv(e){if(!e._verified){if(typeof e=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if((t==="enter"||t==="exit")&&Ov(t,e[t]),xi(t))continue;if(!JJ.includes(t))throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.28.0`);let r=e[t];if(typeof r=="object")for(let n of Object.keys(r))if(n==="enter"||n==="exit")Ov(`${t}.${n}`,r[n]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${n}`)}e._verified=!0}}function Ov(e,t){let r=[].concat(t);for(let n of r)if(typeof n!="function")throw new TypeError(`Non-function found defined in ${e} with type ${typeof n}`)}function Rv(e,t=[],r){let n={_verified:!0,_exploded:!0};Object.defineProperty(n,"_exploded",{enumerable:!1}),Object.defineProperty(n,"_verified",{enumerable:!1});for(let s=0;sa.toString()),o}),n[s]=i)}return n}function QJ(e){for(let t of Object.keys(e)){if(xi(t))continue;let r=e[t];typeof r=="function"&&(e[t]={enter:r})}}function kv(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function ZJ(e,t){let r=`is${e}`,n=XJ[r],s=function(i){if(n.call(i))return t.apply(this,arguments)};return s.toString=()=>t.toString(),s}function xi(e){return e[0]==="_"||e==="enter"||e==="exit"||e==="shouldSkip"||e==="denylist"||e==="noScope"||e==="skipKeys"||e==="blacklist"}function Wo(e,t){for(let r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}var ez={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():Dv.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():Dv.requeueComputedKeyAndDecorators.call(e))}};function tz(e){return Rv([ez,e])}});var qv=x(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.default=void 0;var Ju=Fe(),rz=Ju,nz=Qu(),sz=Yu(),iz=Pn(),{getAssignmentIdentifiers:az}=rz,oz={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():iz.requeueComputedKeyAndDecorators.call(e)))},ObjectProperty({node:e,scope:t},r){let{name:n}=e.key;if(e.shorthand&&(n===r.oldName||n===r.newName)&&t.getBindingIdentifier(n)===r.binding.identifier){e.shorthand=!1;{var s;(s=e.extra)!=null&&s.shorthand&&(e.extra.shorthand=!1)}}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.isAssignmentExpression()?az(e.node):e.getOuterBindingIdentifiers();for(let n in r)n===t.oldName&&(r[n].name=t.newName)}},yy=class{constructor(t,r,n){this.newName=n,this.oldName=r,this.binding=t}maybeConvertFromExportDeclaration(t){let r=t.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){let{declaration:n}=r.node;if(Ju.isDeclaration(n)&&!n.id)return}r.isExportAllDeclaration()||r.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(t){return t}maybeConvertFromClassFunctionExpression(t){return t}rename(){let{binding:t,oldName:r,newName:n}=this,{scope:s,path:i}=t,a=i.find(u=>u.isDeclaration()||u.isFunctionExpression()||u.isClassExpression());a&&a.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(a);let o=arguments[0]||s.block,l={discriminant:!0};Ju.isMethod(o)&&(o.computed&&(l.key=!0),Ju.isObjectMethod(o)||(l.decorators=!0)),(0,nz.traverseNode)(o,(0,sz.explode)(oz),s,this,s.path,l),arguments[0]||(s.removeOwnBinding(r),s.bindings[n]=t,this.binding.identifier.name=n),a&&(this.maybeConvertFromClassFunctionDeclaration(i),this.maybeConvertFromClassFunctionExpression(i))}};zu.default=yy});var Uv=x(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.default=void 0;var gy=class{constructor({identifier:t,scope:r,path:n,kind:s}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=t,this.scope=r,this.path=n,this.kind=s,(s==="var"||s==="hoisted")&&lz(n)&&this.reassign(n),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(t){this.hasDeoptedValue||(this.hasValue=!0,this.value=t)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(t){this.constant=!1,!this.constantViolations.includes(t)&&this.constantViolations.push(t)}reference(t){this.referencePaths.includes(t)||(this.referenced=!0,this.references++,this.referencePaths.push(t))}dereference(){this.references--,this.referenced=!!this.references}};Zu.default=gy;function lz(e){let t=!e.isVariableDeclarator()||e.node.init;for(let{parentPath:r,key:n}=e;r;{parentPath:r,key:n}=r){if(r.isFunctionParent())return!1;if(n==="left"&&r.isForXStatement()||t&&n==="body"&&r.isLoop())return!0}return!1}});var vi=x(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.clear=cz;Jr.clearPath=Vv;Jr.clearScope=$v;Jr.getCachedPaths=pz;Jr.getOrCreateCachedPaths=fz;Jr.scope=Jr.path=void 0;var ec=Jr.path=new WeakMap,uz=Jr.scope=new WeakMap;function cz(){Vv(),$v()}function Vv(){Jr.path=ec=new WeakMap}function $v(){Jr.scope=uz=new WeakMap}function pz(e){let{parent:t,parentPath:r}=e;return ec.get(t)}function fz(e,t){let r=ec.get(e);return r||ec.set(e,r=new Map),r}});var Wv=x((bIe,dz)=>{dz.exports=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"]});var Kv=x((EIe,hz)=>{hz.exports=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"]});var Sy=x(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.default=void 0;var mz=qv(),eP=zt(),yz=Uv(),tP=Fe(),rP=tP,Hv=vi(),gz=Wv(),bz=Kv(),{assignmentExpression:Ez,callExpression:Gv,cloneNode:Xv,getBindingIdentifiers:nP,identifier:Ai,isArrayExpression:sP,isBinary:Tz,isCallExpression:Yv,isClass:xz,isClassBody:Sz,isClassDeclaration:vz,isExportAllDeclaration:iP,isExportDefaultDeclaration:Pz,isExportNamedDeclaration:by,isFunctionDeclaration:Az,isIdentifier:Pi,isImportDeclaration:Ey,isLiteral:Cz,isMemberExpression:Dz,isMethod:wz,isModuleSpecifier:Iz,isNullLiteral:_z,isObjectExpression:Nz,isProperty:Oz,isPureish:Bz,isRegExpLiteral:kz,isSuper:Fz,isTaggedTemplateExpression:Lz,isTemplateLiteral:aP,isThisExpression:Jv,isUnaryExpression:jz,isVariableDeclaration:Mz,expressionStatement:Rz,matchesPattern:zv,memberExpression:Ty,numericLiteral:qz,toIdentifier:Uz,variableDeclaration:Vz,variableDeclarator:$z,isRecordExpression:Wz,isTupleExpression:Kz,isObjectProperty:Hz,isTopicReference:Qv,isMetaProperty:Gz,isPrivateName:Xz,isExportDeclaration:Yz,buildUndefinedNode:Jz,sequenceExpression:zz}=tP;function _t(e,t){switch(e==null?void 0:e.type){default:if(Ey(e)||Yz(e)){var r;if((iP(e)||by(e)||Ey(e))&&e.source)_t(e.source,t);else if((by(e)||Ey(e))&&(r=e.specifiers)!=null&&r.length)for(let n of e.specifiers)_t(n,t);else(Pz(e)||by(e))&&e.declaration&&_t(e.declaration,t)}else Iz(e)?_t(e.local,t):Cz(e)&&!_z(e)&&!kz(e)&&!aP(e)&&t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":_t(e.object,t),_t(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":_t(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(let n of e.properties)_t(n,t);break;case"SpreadElement":case"RestElement":_t(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":_t(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":case"ImportExpression":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),_t(e.argument,t);break;case"AwaitExpression":t.push("await"),_t(e.argument,t);break;case"AssignmentExpression":_t(e.left,t);break;case"VariableDeclarator":_t(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":_t(e.id,t);break;case"PrivateName":_t(e.id,t);break;case"ParenthesizedExpression":_t(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":_t(e.argument,t);break;case"MetaProperty":_t(e.meta,t),_t(e.property,t);break;case"JSXElement":_t(e.openingElement,t);break;case"JSXOpeningElement":_t(e.name,t);break;case"JSXFragment":_t(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":_t(e.namespace,t),_t(e.name,t);break}}function Zv(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}xy=Symbol.for("should not be considered a local binding");var xy,Qz={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){rP.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){let r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){let{scope:n}=e;(n.getFunctionParent()||n.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){let{node:t,scope:r}=e;if(iP(t))return;let n=t.declaration;if(vz(n)||Az(n)){let s=n.id;if(!s)return;let i=r.getBinding(s.name);i==null||i.reference(e)}else if(Mz(n))for(let s of n.declarations)for(let i of Object.keys(nP(s))){let a=r.getBinding(i);a==null||a.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){e.node.operator==="delete"&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let s=e.node.id.name;e.scope.bindings[s]=e.scope.parent.getBinding(s)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){let t=e.get("params");for(let r of t)e.scope.registerBinding("param",r);e.isFunctionExpression()&&e.node.id&&!e.node.id[xy]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[xy]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},Ko,Zz=0,An=class e{constructor(t){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;let{node:r}=t,n=Hv.scope.get(r);if((n==null?void 0:n.path)===t)return n;Hv.scope.set(r,this),this.uid=Zz++,this.block=r,this.path=t,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var t;let r,n=this.path;do{var s;let i=n.key==="key"||n.listKey==="decorators";n=n.parentPath,i&&n.isMethod()&&(n=n.parentPath),(s=n)!=null&&s.isScope()&&(r=n)}while(n&&!r);return(t=r)==null?void 0:t.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(t){let r=this.generateUidIdentifier(t);return this.push({id:r}),Xv(r)}generateUidIdentifier(t){return Ai(this.generateUid(t))}generateUid(t="temp"){t=Uz(t).replace(/^_+/,"").replace(/\d+$/g,"");let r,n=0;do r=`_${t}`,n>=11?r+=n-1:n>=9?r+=n-9:n>=1&&(r+=n+1),n++;while(this.hasLabel(r)||this.hasBinding(r)||this.hasGlobal(r)||this.hasReference(r));let s=this.getProgramParent();return s.references[r]=!0,s.uids[r]=!0,r}generateUidBasedOnNode(t,r){let n=[];_t(t,n);let s=n.join("$");return s=s.replace(/^_/,"")||r||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(t,r){return Ai(this.generateUidBasedOnNode(t,r))}isStatic(t){if(Jv(t)||Fz(t)||Qv(t))return!0;if(Pi(t)){let r=this.getBinding(t.name);return r?r.constant:this.hasBinding(t.name)}return!1}maybeGenerateMemoised(t,r){if(this.isStatic(t))return null;{let n=this.generateUidIdentifierBasedOnNode(t);return r?n:(this.push({id:n}),Xv(n))}}checkBlockScopedCollisions(t,r,n,s){if(r==="param"||t.kind==="local")return;if(r==="let"||t.kind==="let"||t.kind==="const"||t.kind==="module"||t.kind==="param"&&r==="const")throw this.path.hub.buildError(s,`Duplicate declaration "${n}"`,TypeError)}rename(t,r){let n=this.getBinding(t);n&&(r||(r=this.generateUidIdentifier(t).name),new mz.default(n,t,r).rename(arguments[2]))}dump(){let t="-".repeat(60);console.log(t);let r=this;do{console.log("#",r.block.type);for(let n of Object.keys(r.bindings)){let s=r.bindings[n];console.log(" -",n,{constant:s.constant,references:s.references,violations:s.constantViolations.length,kind:s.kind})}}while(r=r.parent);console.log(t)}hasLabel(t){return!!this.getLabel(t)}getLabel(t){return this.labels.get(t)}registerLabel(t){this.labels.set(t.node.label.name,t)}registerDeclaration(t){if(t.isLabeledStatement())this.registerLabel(t);else if(t.isFunctionDeclaration())this.registerBinding("hoisted",t.get("id"),t);else if(t.isVariableDeclaration()){let r=t.get("declarations"),{kind:n}=t.node;for(let s of r)this.registerBinding(n==="using"||n==="await using"?"const":n,s)}else if(t.isClassDeclaration()){if(t.node.declare)return;this.registerBinding("let",t)}else if(t.isImportDeclaration()){let r=t.node.importKind==="type"||t.node.importKind==="typeof",n=t.get("specifiers");for(let s of n){let i=r||s.isImportSpecifier()&&(s.node.importKind==="type"||s.node.importKind==="typeof");this.registerBinding(i?"unknown":"module",s)}}else if(t.isExportDeclaration()){let r=t.get("declaration");(r.isClassDeclaration()||r.isFunctionDeclaration()||r.isVariableDeclaration())&&this.registerDeclaration(r)}else this.registerBinding("unknown",t)}buildUndefinedNode(){return Jz()}registerConstantViolation(t){let r=t.getAssignmentIdentifiers();for(let s of Object.keys(r)){var n;(n=this.getBinding(s))==null||n.reassign(t)}}registerBinding(t,r,n=r){if(!t)throw new ReferenceError("no `kind`");if(r.isVariableDeclaration()){let a=r.get("declarations");for(let o of a)this.registerBinding(t,o);return}let s=this.getProgramParent(),i=r.getOuterBindingIdentifiers(!0);for(let a of Object.keys(i)){s.references[a]=!0;for(let o of i[a]){let l=this.getOwnBinding(a);if(l){if(l.identifier===o)continue;this.checkBlockScopedCollisions(l,t,a,o)}l?l.reassign(n):this.bindings[a]=new yz.default({identifier:o,scope:this,path:n,kind:t})}}}addGlobal(t){this.globals[t.name]=t}hasUid(t){{let r=this;do if(r.uids[t])return!0;while(r=r.parent);return!1}}hasGlobal(t){let r=this;do if(r.globals[t])return!0;while(r=r.parent);return!1}hasReference(t){return!!this.getProgramParent().references[t]}isPure(t,r){if(Pi(t)){let a=this.getBinding(t.name);return a?r?a.constant:!0:!1}else{if(Jv(t)||Gz(t)||Qv(t)||Xz(t))return!0;if(xz(t)){var n;return t.superClass&&!this.isPure(t.superClass,r)||((n=t.decorators)==null?void 0:n.length)>0?!1:this.isPure(t.body,r)}else if(Sz(t)){for(let a of t.body)if(!this.isPure(a,r))return!1;return!0}else{if(Tz(t))return this.isPure(t.left,r)&&this.isPure(t.right,r);if(sP(t)||Kz(t)){for(let a of t.elements)if(a!==null&&!this.isPure(a,r))return!1;return!0}else if(Nz(t)||Wz(t)){for(let a of t.properties)if(!this.isPure(a,r))return!1;return!0}else if(wz(t)){var s;return!(t.computed&&!this.isPure(t.key,r)||((s=t.decorators)==null?void 0:s.length)>0)}else if(Oz(t)){var i;return!(t.computed&&!this.isPure(t.key,r)||((i=t.decorators)==null?void 0:i.length)>0||(Hz(t)||t.static)&&t.value!==null&&!this.isPure(t.value,r))}else{if(jz(t))return this.isPure(t.argument,r);if(aP(t)){for(let a of t.expressions)if(!this.isPure(a,r))return!1;return!0}else return Lz(t)?zv(t.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(t.quasi,r):Dz(t)?!t.computed&&Pi(t.object)&&t.object.name==="Symbol"&&Pi(t.property)&&t.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):Yv(t)?zv(t.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&t.arguments.length===1&&rP.isStringLiteral(t.arguments[0]):Bz(t)}}}}setData(t,r){return this.data[t]=r}getData(t){let r=this;do{let n=r.data[t];if(n!=null)return n}while(r=r.parent)}removeData(t){let r=this;do r.data[t]!=null&&(r.data[t]=null);while(r=r.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let t=this.path;Zv(this),this.data=Object.create(null);let r=this;do{if(r.crawling)return;if(r.path.isProgram())break}while(r=r.parent);let n=r,s={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,Ko||(Ko=eP.default.visitors.merge([{Scope(i){Zv(i.scope)}},Qz])),t.type!=="Program"){for(let a of Ko.enter)a.call(s,t,s);let i=Ko[t.type];if(i)for(let a of i.enter)a.call(s,t,s)}t.traverse(Ko,s),this.crawling=!1;for(let i of s.assignments){let a=i.getAssignmentIdentifiers();for(let o of Object.keys(a))i.scope.getBinding(o)||n.addGlobal(a[o]);i.scope.registerConstantViolation(i)}for(let i of s.references){let a=i.scope.getBinding(i.node.name);a?a.reference(i):n.addGlobal(i.node)}for(let i of s.constantViolations)i.scope.registerConstantViolation(i)}push(t){let r=this.path;r.isPattern()?r=this.getPatternParent().path:!r.isBlockStatement()&&!r.isProgram()&&(r=this.getBlockParent().path),r.isSwitchStatement()&&(r=(this.getFunctionParent()||this.getProgramParent()).path);let{init:n,unique:s,kind:i="var",id:a}=t;if(!n&&!s&&(i==="var"||i==="let")&&r.isFunction()&&!r.node.name&&Yv(r.parent,{callee:r.node})&&r.parent.arguments.length<=r.node.params.length&&Pi(a)){r.pushContainer("params",a),r.scope.registerBinding("param",r.get("params")[r.node.params.length-1]);return}(r.isLoop()||r.isCatchClause()||r.isFunction())&&(r.ensureBlock(),r=r.get("body"));let o=t._blockHoist==null?2:t._blockHoist,l=`declaration:${i}:${o}`,u=!s&&r.getData(l);if(!u){let d=Vz(i,[]);d._blockHoist=o,[u]=r.unshiftContainer("body",[d]),s||r.setData(l,u)}let c=$z(a,n),p=u.node.declarations.push(c);r.scope.registerBinding(i,u.get("declarations")[p-1])}getProgramParent(){let t=this;do if(t.path.isProgram())return t;while(t=t.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let t=this;do if(t.path.isFunctionParent())return t;while(t=t.parent);return null}getBlockParent(){let t=this;do if(t.path.isBlockParent())return t;while(t=t.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let t=this;do if(!t.path.isPattern())return t.getBlockParent();while(t=t.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let t=Object.create(null),r=this;do{for(let n of Object.keys(r.bindings))n in t||(t[n]=r.bindings[n]);r=r.parent}while(r);return t}bindingIdentifierEquals(t,r){return this.getBindingIdentifier(t)===r}getBinding(t){let r=this,n;do{let i=r.getOwnBinding(t);if(i){var s;if(!((s=n)!=null&&s.isPattern()&&i.kind!=="param"&&i.kind!=="local"))return i}else if(!i&&t==="arguments"&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;n=r.path}while(r=r.parent)}getOwnBinding(t){return this.bindings[t]}getBindingIdentifier(t){var r;return(r=this.getBinding(t))==null?void 0:r.identifier}getOwnBindingIdentifier(t){let r=this.bindings[t];return r==null?void 0:r.identifier}hasOwnBinding(t){return!!this.getOwnBinding(t)}hasBinding(t,r){if(!t)return!1;let n,s,i;typeof r=="object"?(n=r.noGlobals,s=r.noUids,i=r.upToScope):typeof r=="boolean"&&(n=r);let a=this;do{if(i===a)break;if(a.hasOwnBinding(t))return!0}while(a=a.parent);return!!(!s&&this.hasUid(t)||!n&&e.globals.includes(t)||!n&&e.contextVariables.includes(t))}parentHasBinding(t,r){var n;return(n=this.parent)==null?void 0:n.hasBinding(t,r)}moveBindingTo(t,r){let n=this.getBinding(t);n&&(n.scope.removeOwnBinding(t),n.scope=r,r.bindings[t]=n)}removeOwnBinding(t){delete this.bindings[t]}removeBinding(t){var r;(r=this.getBinding(t))==null||r.scope.removeOwnBinding(t);{let n=this;do n.uids[t]&&(n.uids[t]=!1);while(n=n.parent)}}hoistVariables(t=r=>this.push({id:r})){this.crawl();let r=new Set;for(let n of Object.keys(this.bindings)){let s=this.bindings[n];if(!s)continue;let{path:i}=s;if(!i.isVariableDeclarator())continue;let{parent:a,parentPath:o}=i;if(a.kind!=="var"||r.has(a))continue;r.add(i.parent);let l,u=[];for(let c of a.declarations){l!=null||(l=c.id),c.init&&u.push(Ez("=",c.id,c.init));let p=Object.keys(nP(c,!1,!0,!0));for(let d of p)t(Ai(d),c.init!=null)}if(o.parentPath.isFor({left:a}))o.replaceWith(l);else if(u.length===0)o.remove();else{let c=u.length===1?u[0]:zz(u);o.parentPath.isForStatement({init:a})?o.replaceWith(c):o.replaceWith(Rz(c))}}}};tc.default=An;An.globals=[...gz,...bz];An.contextVariables=["arguments","undefined","Infinity","NaN"];An.prototype._renameFromMap=function(t,r,n,s){t[r]&&(t[n]=s,t[r]=null)},An.prototype.traverse=function(e,t,r){(0,eP.default)(e,t,this,r,this.path)},An.prototype._generateUid=function(t,r){let n=t;return r>1&&(n+=r),`_${n}`},An.prototype.toArray=function(t,r,n){if(Pi(t)){let a=this.getBinding(t.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return t}if(sP(t))return t;if(Pi(t,{name:"arguments"}))return Gv(Ty(Ty(Ty(Ai("Array"),Ai("prototype")),Ai("slice")),Ai("call")),[t]);let s,i=[t];return r===!0?s="toConsumableArray":typeof r=="number"?(i.push(qz(r)),s="slicedToArray"):s="toArray",n&&(i.unshift(this.path.hub.addHelper(s)),s="maybeArrayLike"),Gv(this.path.hub.addHelper(s),i)},An.prototype.getAllBindingsOfKind=function(...t){let r=Object.create(null);for(let n of t){let s=this;do{for(let i of Object.keys(s.bindings)){let a=s.bindings[i];a.kind===n&&(r[i]=a)}s=s.parent}while(s)}return r},Object.defineProperties(An.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}})});var Ay=x((vy,Py)=>{(function(e,t,r){typeof vy=="object"&&typeof Py!="undefined"?t(Py):typeof define=="function"&&define.amd?define(["module"],t):(e=typeof globalThis!="undefined"?globalThis:e||self,t(r={exports:{}}),e.sourcemapCodec="default"in r.exports?r.exports.default:r.exports)})(vy,function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,i=(V,G)=>{for(var j in G)t(V,j,{get:G[j],enumerable:!0})},a=(V,G,j,re)=>{if(G&&typeof G=="object"||typeof G=="function")for(let de of n(G))!s.call(V,de)&&de!==j&&t(V,de,{get:()=>G[de],enumerable:!(re=r(G,de))||re.enumerable});return V},o=V=>a(t({},"__esModule",{value:!0}),V),l={};i(l,{decode:()=>ze,decodeGeneratedRanges:()=>pe,decodeOriginalScopes:()=>W,encode:()=>se,encodeGeneratedRanges:()=>Ee,encodeOriginalScopes:()=>U}),e.exports=o(l);var u=44,c=59,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=new Uint8Array(64),m=new Uint8Array(128);for(let V=0;V>>=1,ye&&(j=-2147483648|-j),G+j}function f(V,G,j){let re=G-j;re=re<0?-re<<1|1:re<<1;do{let de=re&31;re>>>=5,re>0&&(de|=32),V.write(d[de])}while(re>0);return G}function b(V,G){return V.pos>=G?!1:V.peek()!==u}var T=1024*16,w=typeof TextDecoder!="undefined"?new TextDecoder:typeof Buffer!="undefined"?{decode(V){return Buffer.from(V.buffer,V.byteOffset,V.byteLength).toString()}}:{decode(V){let G="";for(let j=0;j0?G+w.decode(V.subarray(0,j)):G}},N=class{constructor(V){this.pos=0,this.buffer=V}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(V){let{buffer:G,pos:j}=this,re=G.indexOf(V,j);return re===-1?G.length:re}},L=[];function W(V){let{length:G}=V,j=new N(V),re=[],de=[],ye=0;for(;j.pos0&&j.write(u),re[0]=f(j,ye,re[0]),f(j,Te,0),f(j,we,0);let pt=de.length===6?1:0;f(j,pt,0),de.length===6&&f(j,de[5],0);for(let ut of Ve)f(j,ut,0);for(G++;Ghe||Ke===he&>>=De)break;G=H(V,G,j,re)}return j.write(u),re[0]=f(j,he,re[0]),f(j,De,0),G}function pe(V){let{length:G}=V,j=new N(V),re=[],de=[],ye=0,Te=0,he=0,De=0,we=0,Ve=0,pt=0,ut=0;do{let Ke=j.indexOf(";"),gt=0;for(;j.posie;Se--){let Le=pt;pt=g(j,pt),ut=g(j,pt===Le?ut:0);let At=g(j,0);ve.push([At,pt,ut])}}else ve=[[ie]];F.push(ve)}while(b(j,Ke))}Q.bindings=F,re.push(Q),de.push(Q)}ye++,j.pos=Ke+1}while(j.pos0&&j.write(u),re[1]=f(j,de[1],re[1]);let ut=(de.length===6?1:0)|(Ve?2:0)|(we?4:0);if(f(j,ut,0),de.length===6){let{4:Ke,5:gt}=de;Ke!==re[2]&&(re[3]=0),re[2]=f(j,Ke,re[2]),re[3]=f(j,gt,re[3])}if(Ve){let{0:Ke,1:gt,2:Dt}=de.callsite;Ke!==re[4]?(re[5]=0,re[6]=0):gt!==re[5]&&(re[6]=0),re[4]=f(j,Ke,re[4]),re[5]=f(j,gt,re[5]),re[6]=f(j,Dt,re[6])}if(pt)for(let Ke of pt){Ke.length>1&&f(j,-Ke.length,0);let gt=Ke[0][0];f(j,gt,0);let Dt=ye,_r=Te;for(let xr=1;xrhe||gt===he&&Dt>=De)break;G=ce(V,G,j,re)}return re[0]0&&G.write(c),he.length===0)continue;let De=0;for(let we=0;we0&&G.write(u),De=f(G,Ve[0],De),Ve.length!==1&&(j=f(G,Ve[1],j),re=f(G,Ve[2],re),de=f(G,Ve[3],de),Ve.length!==4&&(ye=f(G,Ve[4],ye)))}}return G.flush()}})});var oP=x((Cy,Dy)=>{(function(e,t){typeof Cy=="object"&&typeof Dy!="undefined"?Dy.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self,e.resolveURI=t())})(Cy,function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var n;(function(T){T[T.Empty=1]="Empty",T[T.Hash=2]="Hash",T[T.Query=3]="Query",T[T.RelativePath=4]="RelativePath",T[T.AbsolutePath=5]="AbsolutePath",T[T.SchemeRelative=6]="SchemeRelative",T[T.Absolute=7]="Absolute"})(n||(n={}));function s(T){return e.test(T)}function i(T){return T.startsWith("//")}function a(T){return T.startsWith("/")}function o(T){return T.startsWith("file:")}function l(T){return/^[.?#]/.test(T)}function u(T){let w=t.exec(T);return p(w[1],w[2]||"",w[3],w[4]||"",w[5]||"/",w[6]||"",w[7]||"")}function c(T){let w=r.exec(T),I=w[2];return p("file:","",w[1]||"","",a(I)?I:"/"+I,w[3]||"",w[4]||"")}function p(T,w,I,N,L,W,U){return{scheme:T,user:w,host:I,port:N,path:L,query:W,hash:U,type:n.Absolute}}function d(T){if(i(T)){let I=u("http:"+T);return I.scheme="",I.type=n.SchemeRelative,I}if(a(T)){let I=u("http://foo.com"+T);return I.scheme="",I.host="",I.type=n.AbsolutePath,I}if(o(T))return c(T);if(s(T))return u(T);let w=u("http://foo.com/"+T);return w.scheme="",w.host="",w.type=T?T.startsWith("?")?n.Query:T.startsWith("#")?n.Hash:n.RelativePath:n.Empty,w}function m(T){if(T.endsWith("/.."))return T;let w=T.lastIndexOf("/");return T.slice(0,w+1)}function g(T,w){f(w,w.type),T.path==="/"?T.path=w.path:T.path=m(w.path)+T.path}function f(T,w){let I=w<=n.RelativePath,N=T.path.split("/"),L=1,W=0,U=!1;for(let pe=1;peN&&(N=U)}f(I,N);let L=I.query+I.hash;switch(N){case n.Hash:case n.Query:return L;case n.RelativePath:{let W=I.path.slice(1);return W?l(w||T)&&!l(W)?"./"+W+L:W+L:L||"."}case n.AbsolutePath:return I.path+L;default:return I.scheme+"//"+I.user+I.host+I.port+I.path+L}}return b})});var rc=x((wy,Iy)=>{(function(e,t,r){typeof wy=="object"&&typeof Iy!="undefined"?t(Iy,oP(),Ay()):typeof define=="function"&&define.amd?define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],t):(e=typeof globalThis!="undefined"?globalThis:e||self,t(r={exports:{}},e.resolveURI,e.sourcemapCodec),e.traceMapping="default"in r.exports?r.exports.default:r.exports)})(wy,function(e,t,r){"use strict";var n=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(q,z)=>function(){return z||(0,q[a(q)[0]])((z={exports:{}}).exports,z),z.exports},c=(q,z)=>{for(var te in z)s(q,te,{get:z[te],enumerable:!0})},p=(q,z,te,ue)=>{if(z&&typeof z=="object"||typeof z=="function")for(let je of a(z))!l.call(q,je)&&je!==te&&s(q,je,{get:()=>z[je],enumerable:!(ue=i(z,je))||ue.enumerable});return q},d=(q,z,te)=>(te=q!=null?n(o(q)):{},p(z||!q||!q.__esModule?s(te,"default",{value:q,enumerable:!0}):te,q)),m=q=>p(s({},"__esModule",{value:!0}),q),g=u({"umd:@jridgewell/sourcemap-codec"(q,z){z.exports=r}}),f=u({"umd:@jridgewell/resolve-uri"(q,z){z.exports=t}}),b={};c(b,{AnyMap:()=>Ve,FlattenMap:()=>Ve,GREATEST_LOWER_BOUND:()=>nr,LEAST_UPPER_BOUND:()=>xr,TraceMap:()=>R,allGeneratedPositionsFor:()=>At,decodedMap:()=>er,decodedMappings:()=>ie,eachMapping:()=>ft,encodedMap:()=>$t,encodedMappings:()=>Q,generatedPositionFor:()=>Le,isIgnored:()=>Lt,originalPositionFor:()=>Se,presortedDecodedMap:()=>Ur,sourceContentFor:()=>Zt,traceSegment:()=>ve}),e.exports=m(b);var T=d(g()),w=d(f());function I(q){if(!q)return"";let z=q.lastIndexOf("/");return q.slice(0,z+1)}function N(q,z){let te=I(q),ue=z?z+"/":"";return je=>(0,w.default)(ue+(je||""),te)}var L=0,W=1,U=2,H=3,pe=4,Ee=1,ce=2;function qe(q,z){let te=ze(q,0);if(te===q.length)return q;z||(q=q.slice());for(let ue=te;ue>1),Ne=q[je][L]-z;if(Ne===0)return V=!0,je;Ne<0?te=je+1:ue=je-1}return V=!1,te-1}function j(q,z,te){for(let ue=te+1;ue=0&&q[ue][L]===z;te=ue--);return te}function de(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function ye(q,z,te,ue){let{lastKey:je,lastNeedle:Ne,lastIndex:ct}=te,Pt=0,tt=q.length-1;if(ue===je){if(z===Ne)return V=ct!==-1&&q[ct][L]===z,ct;z>=Ne?Pt=ct===-1?0:ct:tt=ct}return te.lastKey=ue,te.lastNeedle=z,te.lastIndex=G(q,z,Pt,tt)}function Te(q,z){let te=z.map(De);for(let ue=0;uez;ue--)q[ue]=q[ue-1];q[z]=te}function De(){return{__proto__:null}}function we(q){return typeof q=="string"?JSON.parse(q):q}var Ve=function(q,z){let te=we(q);if(!("sections"in te))return new R(te,z);let ue=[],je=[],Ne=[],ct=[],Pt=[];pt(te,z,ue,je,Ne,ct,Pt,0,0,1/0,1/0);let tt={version:3,file:te.file,names:ct,sources:je,sourcesContent:Ne,mappings:ue,ignoreList:Pt};return Ur(tt)};function pt(q,z,te,ue,je,Ne,ct,Pt,tt,wt,Vr){let{sections:jt}=q;for(let ar=0;arwt)return;let rT=gt(te,ad),F3=sn===0?tt:0,nT=li[sn];for(let od=0;od=Vr)return;if(ui.length===1){rT.push([eu]);continue}let sT=Xr+ui[W],iT=ui[U],aT=ui[H];rT.push(ui.length===4?[eu,sT,iT,aT]:[eu,sT,iT,aT,Mn+ui[pe]])}}}function Ke(q,z){for(let te=0;te=ue.length)return null;let je=ue[z],Ne=_s(je,q._decodedMemo,z,te,nr);return Ne===-1?null:je[Ne]}function Se(q,z){let{line:te,column:ue,bias:je}=z;if(te--,te<0)throw new Error(Dt);if(ue<0)throw new Error(_r);let Ne=ie(q);if(te>=Ne.length)return sr(null,null,null,null);let ct=Ne[te],Pt=_s(ct,q._decodedMemo,te,ue,je||nr);if(Pt===-1)return sr(null,null,null,null);let tt=ct[Pt];if(tt.length===1)return sr(null,null,null,null);let{names:wt,resolvedSources:Vr}=q;return sr(Vr[tt[W]],tt[U]+1,tt[H],tt.length===5?wt[tt[pe]]:null)}function Le(q,z){let{source:te,line:ue,column:je,bias:Ne}=z;return Zl(q,te,ue,je,Ne||nr,!1)}function At(q,z){let{source:te,line:ue,column:je,bias:Ne}=z;return Zl(q,te,ue,je,Ne||xr,!0)}function ft(q,z){let te=ie(q),{names:ue,resolvedSources:je}=q;for(let Ne=0;Ne{(function(e,t,r){typeof _y=="object"&&typeof Ny!="undefined"?t(Ny,Ay(),rc()):typeof define=="function"&&define.amd?define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],t):(e=typeof globalThis!="undefined"?globalThis:e||self,t(r={exports:{}},e.sourcemapCodec,e.traceMapping),e.genMapping="default"in r.exports?r.exports.default:r.exports)})(_y,function(e,t,r){"use strict";var n=Object.create,s=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(R,F)=>function(){return F||(0,R[a(R)[0]])((F={exports:{}}).exports,F),F.exports},c=(R,F)=>{for(var Q in F)s(R,Q,{get:F[Q],enumerable:!0})},p=(R,F,Q,ie)=>{if(F&&typeof F=="object"||typeof F=="function")for(let ve of a(F))!l.call(R,ve)&&ve!==Q&&s(R,ve,{get:()=>F[ve],enumerable:!(ie=i(F,ve))||ie.enumerable});return R},d=(R,F,Q)=>(Q=R!=null?n(o(R)):{},p(F||!R||!R.__esModule?s(Q,"default",{value:R,enumerable:!0}):Q,R)),m=R=>p(s({},"__esModule",{value:!0}),R),g=u({"umd:@jridgewell/sourcemap-codec"(R,F){F.exports=t}}),f=u({"umd:@jridgewell/trace-mapping"(R,F){F.exports=r}}),b={};c(b,{GenMapping:()=>Ot,addMapping:()=>V,addSegment:()=>se,allMappings:()=>De,fromMap:()=>he,maybeAddMapping:()=>j,maybeAddSegment:()=>G,setIgnore:()=>de,setSourceContent:()=>re,toDecodedMap:()=>ye,toEncodedMap:()=>Te}),e.exports=m(b);var T=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function w(R){return R}function I(R,F){return R._indexes[F]}function N(R,F){let Q=I(R,F);if(Q!==void 0)return Q;let{array:ie,_indexes:ve}=R,Se=ie.push(F);return ve[F]=Se-1}function L(R,F){let Q=I(R,F);if(Q===void 0)return;let{array:ie,_indexes:ve}=R;for(let Se=Q+1;Sewe(!0,R,F,Q,ie,ve,Se,Le,At),j=(R,F)=>nr(!0,R,F);function re(R,F,Q){let{_sources:ie,_sourcesContent:ve}=R,Se=N(ie,F);ve[Se]=Q}function de(R,F,Q=!0){let{_sources:ie,_sourcesContent:ve,_ignoreList:Se}=R,Le=N(ie,F);Le===ve.length&&(ve[Le]=null),Q?N(Se,Le):L(Se,Le)}function ye(R){let{_mappings:F,_sources:Q,_sourcesContent:ie,_names:ve,_ignoreList:Se}=R;return gt(F),{version:3,file:R.file||void 0,names:ve.array,sourceRoot:R.sourceRoot||void 0,sources:Q.array,sourcesContent:ie,mappings:F,ignoreList:Se.array}}function Te(R){let F=ye(R);return Object.assign({},F,{mappings:(0,W.encode)(F.mappings)})}function he(R){let F=new U.TraceMap(R),Q=new Ot({file:F.file,sourceRoot:F.sourceRoot});return Dt(Q._names,F.names),Dt(Q._sources,F.sources),Q._sourcesContent=F.sourcesContent||F.sources.map(()=>null),Q._mappings=(0,U.decodedMappings)(F),F.ignoreList&&Dt(Q._ignoreList,F.ignoreList),Q}function De(R){let F=[],{_mappings:Q,_sources:ie,_names:ve}=R;for(let Se=0;Se=0;Q=ie--){let ve=R[ie];if(F>=ve[H])break}return Q}function Ke(R,F,Q){for(let ie=R.length;ie>F;ie--)R[ie]=R[ie-1];R[F]=Q}function gt(R){let{length:F}=R,Q=F;for(let ie=Q-1;ie>=0&&!(R[ie].length>0);Q=ie,ie--);Q{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.default=void 0;var Rs=Oy(),By=rc(),ky=class{constructor(t,r){var n;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;let s=this._map=new Rs.GenMapping({sourceRoot:t.sourceRoot});if(this._sourceFileName=(n=t.sourceFileName)==null?void 0:n.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new By.TraceMap(t.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});sc.default=void 0;var Fy=class{constructor(t,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=t,this._indentChar=r;for(let n=0;n<64;n++)this._fastIndentations.push(r.repeat(n));this._allocQueue()}_allocQueue(){let t=this._queue;for(let r=0;r<16;r++)t.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(t,r,n,s,i){let a=this._queueCursor;a===this._queue.length&&this._allocQueue();let o=this._queue[a];o.char=t,o.repeat=r,o.line=n,o.column=s,o.filename=i,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let t=this._map,r={code:(this._buf+this._str).trimRight(),decodedMap:t==null?void 0:t.getDecoded(),get __mergedMap(){return this.map},get map(){let n=t?t.get():null;return r.map=n,n},set map(n){Object.defineProperty(r,"map",{value:n,writable:!0})},get rawMappings(){let n=t==null?void 0:t.getRawMappings();return r.rawMappings=n,n},set rawMappings(n){Object.defineProperty(r,"rawMappings",{value:n,writable:!0})}};return r}append(t,r){this._flush(),this._append(t,this._sourcePosition,r)}appendChar(t){this._flush(),this._appendChar(t,1,this._sourcePosition)}queue(t){if(t===10)for(;this._queueCursor!==0;){let n=this._queue[this._queueCursor-1].char;if(n!==32&&n!==9)break;this._queueCursor--}let r=this._sourcePosition;this._pushQueue(t,1,r.line,r.column,r.filename)}queueIndentation(t){t!==0&&this._pushQueue(-1,t,void 0,void 0,void 0)}_flush(){let t=this._queueCursor,r=this._queue;for(let n=0;n1?this._indentChar.repeat(r):this._indentChar}else this._str+=r>1?String.fromCharCode(t).repeat(r):String.fromCharCode(t);t!==10?(this._mark(n.line,n.column,n.identifierName,n.identifierNamePos,n.filename),this._position.column+=r):(this._position.line++,this._position.column=0),this._canMarkIdName&&(n.identifierName=void 0,n.identifierNamePos=void 0)}_append(t,r,n){let s=t.length,i=this._position;if(this._last=t.charCodeAt(s-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t,!n&&!this._map){i.column+=s;return}let{column:a,identifierName:o,identifierNamePos:l,filename:u}=r,c=r.line;(o!=null||l!=null)&&this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0);let p=t.indexOf(` `),d=0;for(p!==0&&this._mark(c,a,o,l,u);p!==-1;)i.line++,i.column=0,d=p+1,d=0&&this._queue[n].char===10;n--)r++;return r===t&&this._last===10?r+1:r}endsWithCharAndNewline(){let t=this._queue,r=this._queueCursor;if(r!==0)return t[r-1].char!==10?void 0:r>1?t[r-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(t,r){if(!this._map){r();return}this.source("start",t);let n=t.identifierName,s=this._sourcePosition;n&&(this._canMarkIdName=!1,s.identifierName=n),r(),n&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",t)}source(t,r){this._map&&this._normalizePosition(t,r,0)}sourceWithOffset(t,r,n){this._map&&this._normalizePosition(t,r,n)}_normalizePosition(t,r,n){let s=r[t],i=this._sourcePosition;s&&(i.line=s.line,i.column=Math.max(s.column+n,0),i.filename=r.filename)}getCurrentColumn(){let t=this._queue,r=this._queueCursor,n=-1,s=0;for(let i=0;i{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.nodes=void 0;var eQ=Fe(),{FLIPPED_ALIAS_KEYS:tQ,isArrayExpression:rQ,isAssignmentExpression:pP,isBinary:fP,isBlockStatement:nQ,isCallExpression:dP,isFunction:Ho,isIdentifier:ic,isLiteral:sQ,isMemberExpression:Ly,isObjectExpression:iQ,isOptionalCallExpression:aQ,isOptionalMemberExpression:oQ,isStringLiteral:lQ}=eQ;function Pa(e,t){return e&&(Ly(e)||oQ(e)?(Pa(e.object,t),e.computed&&Pa(e.property,t)):fP(e)||pP(e)?(Pa(e.left,t),Pa(e.right,t)):dP(e)||aQ(e)?(t.hasCall=!0,Pa(e.callee,t)):Ho(e)?t.hasFunction=!0:ic(e)&&(t.hasHelper=t.hasHelper||e.callee&&ns(e.callee))),t}function cP(e){return Pa(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function ns(e){return e?Ly(e)?ns(e.object)||ns(e.property):ic(e)?e.name==="require"||e.name.charCodeAt(0)===95:dP(e)?ns(e.callee):fP(e)||pP(e)?ic(e.left)&&ns(e.left)||ns(e.right):!1:!1}function uQ(e){return sQ(e)||iQ(e)||rQ(e)||ic(e)||Ly(e)}var Ci=ac.nodes={AssignmentExpression(e){let t=cP(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},SwitchCase(e,t){return(e.consequent.length||t.cases[0]===e?1:0)|(!e.consequent.length&&t.cases[t.cases.length-1]===e?2:0)},LogicalExpression(e){if(Ho(e.left)||Ho(e.right))return 2},Literal(e){if(lQ(e)&&e.value==="use strict")return 2},CallExpression(e){if(Ho(e.callee)||ns(e))return 3},OptionalCallExpression(e){if(Ho(e.callee))return 3},VariableDeclaration(e){for(let t=0;tn})})});var SP=x(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.AssignmentExpression=UQ;rt.Binary=EP;rt.BinaryExpression=FQ;rt.ClassExpression=MQ;rt.ArrowFunctionExpression=rt.ConditionalExpression=xP;rt.DoExpression=PQ;rt.FunctionExpression=RQ;rt.FunctionTypeAnnotation=xQ;rt.Identifier=$Q;rt.LogicalExpression=VQ;rt.NullableTypeAnnotation=TQ;rt.ObjectExpression=vQ;rt.OptionalIndexedAccessType=CQ;rt.OptionalCallExpression=rt.OptionalMemberExpression=qQ;rt.SequenceExpression=LQ;rt.TSSatisfiesExpression=rt.TSAsExpression=DQ;rt.TSConditionalType=wQ;rt.TSConstructorType=rt.TSFunctionType=kQ;rt.TSInferType=NQ;rt.TSInstantiationExpression=BQ;rt.TSIntersectionType=_Q;rt.UnaryLike=rt.TSTypeAssertion=TP;rt.TSTypeOperator=OQ;rt.TSUnionType=IQ;rt.IntersectionTypeAnnotation=rt.UnionTypeAnnotation=AQ;rt.UpdateExpression=SQ;rt.AwaitExpression=rt.YieldExpression=jQ;var cQ=Fe(),zr=Di(),{isArrayTypeAnnotation:pQ,isBinaryExpression:fQ,isCallExpression:dQ,isForOfStatement:hQ,isIndexedAccessType:mQ,isMemberExpression:gP,isObjectPattern:yQ,isOptionalMemberExpression:gQ,isYieldExpression:bQ,isStatement:EQ}=cQ,mP=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function yP(e,t){if(t==="BinaryExpression"||t==="LogicalExpression")return mP.get(e.operator);if(t==="TSAsExpression"||t==="TSSatisfiesExpression")return mP.get("in")}function jy(e){return e==="TSAsExpression"||e==="TSSatisfiesExpression"||e==="TSTypeAssertion"}var oc=(e,t)=>{let r=t.type;return(r==="ClassDeclaration"||r==="ClassExpression")&&t.superClass===e},lc=(e,t)=>{let r=t.type;return(r==="MemberExpression"||r==="OptionalMemberExpression")&&t.object===e||(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression")&&t.callee===e||r==="TaggedTemplateExpression"&&t.tag===e||r==="TSNonNullExpression"};function TQ(e,t){return pQ(t)}function xQ(e,t,r){let n=t.type;return n==="UnionTypeAnnotation"||n==="IntersectionTypeAnnotation"||n==="ArrayTypeAnnotation"||!!(r&zr.TokenContext.arrowFlowReturnType)}function SQ(e,t){return lc(e,t)||oc(e,t)}function bP(e){return!!(e&(zr.TokenContext.expressionStatement|zr.TokenContext.arrowBody))}function vQ(e,t,r){return bP(r)}function PQ(e,t,r){return!e.async&&!!(r&zr.TokenContext.expressionStatement)}function EP(e,t){let r=t.type;if(e.type==="BinaryExpression"&&e.operator==="**"&&r==="BinaryExpression"&&t.operator==="**")return t.left===e;if(oc(e,t)||lc(e,t)||r==="UnaryExpression"||r==="SpreadElement"||r==="AwaitExpression")return!0;let n=yP(t,r);if(n!=null){let s=yP(e,e.type);if(n===s&&r==="BinaryExpression"&&t.right===e||n>s)return!0}}function AQ(e,t){let r=t.type;return r==="ArrayTypeAnnotation"||r==="NullableTypeAnnotation"||r==="IntersectionTypeAnnotation"||r==="UnionTypeAnnotation"}function CQ(e,t){return mQ(t)&&t.objectType===e}function DQ(e,t){return(t.type==="AssignmentExpression"||t.type==="AssignmentPattern")&&t.left===e||t.type==="BinaryExpression"&&(t.operator==="|"||t.operator==="&")&&e===t.left?!0:EP(e,t)}function wQ(e,t){let r=t.type;return r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"||r==="TSTypeOperator"||r==="TSTypeParameter"||(r==="TSIntersectionType"||r==="TSUnionType")&&t.types[0]===e||r==="TSConditionalType"&&(t.checkType===e||t.extendsType===e)}function IQ(e,t){let r=t.type;return r==="TSIntersectionType"||r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function _Q(e,t){let r=t.type;return r==="TSTypeOperator"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function NQ(e,t){let r=t.type;return!!(r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"||e.typeParameter.constraint&&(r==="TSIntersectionType"||r==="TSUnionType")&&t.types[0]===e)}function OQ(e,t){let r=t.type;return r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSOptionalType"}function BQ(e,t){let r=t.type;return(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression"||r==="TSInstantiationExpression")&&!!t.typeParameters}function kQ(e,t){let r=t.type;return r==="TSIntersectionType"||r==="TSUnionType"||r==="TSTypeOperator"||r==="TSOptionalType"||r==="TSArrayType"||r==="TSIndexedAccessType"&&t.objectType===e||r==="TSConditionalType"&&(t.checkType===e||t.extendsType===e)}function FQ(e,t,r){return e.operator==="in"&&!!(r&zr.TokenContext.forInOrInitHeadAccumulate)}function LQ(e,t){let r=t.type;return r==="SequenceExpression"||r==="ParenthesizedExpression"||r==="MemberExpression"&&t.property===e||r==="OptionalMemberExpression"&&t.property===e||r==="TemplateLiteral"?!1:r==="ClassDeclaration"?!0:r==="ForOfStatement"?t.right===e:r==="ExportDefaultDeclaration"?!0:!EQ(t)}function jQ(e,t){let r=t.type;return r==="BinaryExpression"||r==="LogicalExpression"||r==="UnaryExpression"||r==="SpreadElement"||lc(e,t)||r==="AwaitExpression"&&bQ(e)||r==="ConditionalExpression"&&e===t.test||oc(e,t)||jy(r)}function MQ(e,t,r){return!!(r&(zr.TokenContext.expressionStatement|zr.TokenContext.exportDefault))}function TP(e,t){return lc(e,t)||fQ(t)&&t.operator==="**"&&t.left===e||oc(e,t)}function RQ(e,t,r){return!!(r&(zr.TokenContext.expressionStatement|zr.TokenContext.exportDefault))}function xP(e,t){let r=t.type;return r==="UnaryExpression"||r==="SpreadElement"||r==="BinaryExpression"||r==="LogicalExpression"||r==="ConditionalExpression"&&t.test===e||r==="AwaitExpression"||jy(r)?!0:TP(e,t)}function qQ(e,t){return dQ(t)&&t.callee===e||gP(t)&&t.object===e}function UQ(e,t,r){return bP(r)&&yQ(e.left)?!0:xP(e,t)}function VQ(e,t){let r=t.type;if(jy(r))return!0;if(r!=="LogicalExpression")return!1;switch(e.operator){case"||":return t.operator==="??"||t.operator==="&&";case"&&":return t.operator==="??";case"??":return t.operator!=="??"}}function $Q(e,t,r,n){var s;let i=t.type;if((s=e.extra)!=null&&s.parenthesized&&i==="AssignmentExpression"&&t.left===e){let a=t.right.type;if((a==="FunctionExpression"||a==="ClassExpression")&&t.right.id==null)return!0}return n&&n(e)!==e.name?!1:e.name==="let"?(gP(t,{object:e,computed:!0})||gQ(t,{object:e,computed:!0,optional:!1}))&&r&(zr.TokenContext.expressionStatement|zr.TokenContext.forInitHead|zr.TokenContext.forInHead)?!0:!!(r&zr.TokenContext.forOfHead):e.name==="async"&&hQ(t,{left:e,await:!1})}});var Di=x(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.TokenContext=void 0;ss.isLastChild=iZ;ss.needsParens=sZ;ss.needsWhitespace=Ry;ss.needsWhitespaceAfter=nZ;ss.needsWhitespaceBefore=rZ;var WQ=hP(),KQ=SP(),HQ=Fe(),{FLIPPED_ALIAS_KEYS:GQ,VISITOR_KEYS:XQ,isCallExpression:vP,isDecorator:YQ,isExpressionStatement:JQ,isMemberExpression:zQ,isNewExpression:QQ,isParenthesizedExpression:ZQ}=HQ,_Ie=ss.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};function PP(e){let t=new Map;function r(n,s){let i=t.get(n);t.set(n,i?function(a,o,l,u){var c;return(c=i(a,o,l,u))!=null?c:s(a,o,l,u)}:s)}for(let n of Object.keys(e)){let s=GQ[n];if(s)for(let i of s)r(i,e[n]);else r(n,e[n])}return t}var eZ=PP(KQ),tZ=PP(WQ.nodes);function AP(e){return vP(e)?!0:zQ(e)&&AP(e.object)}function Ry(e,t,r){var n;if(!e)return!1;JQ(e)&&(e=e.expression);let s=(n=tZ.get(e.type))==null?void 0:n(e,t);return typeof s=="number"?(s&r)!==0:!1}function rZ(e,t){return Ry(e,t,1)}function nZ(e,t){return Ry(e,t,2)}function sZ(e,t,r,n){var s;return t?QQ(t)&&t.callee===e&&AP(e)?!0:YQ(t)?!My(e)&&!(vP(e)&&My(e.callee))&&!ZQ(e):(s=eZ.get(e.type))==null?void 0:s(e,t,r,n):!1}function My(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&My(e.object);default:return!1}}function iZ(e,t){let r=XQ[e.type];for(let n=r.length-1;n>=0;n--){let s=e[r[n]];if(s===t)return!0;if(Array.isArray(s)){let i=s.length-1;for(;i>=0&&s[i]===null;)i--;return i>=0&&s[i]===t}else if(s)return!1}return!1}});var CP=x(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.TokenMap=void 0;var aZ=Fe(),{traverseFast:oZ,VISITOR_KEYS:lZ}=aZ,qy=class{constructor(t,r,n){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=r,this._source=n,oZ(t,s=>{let i=this._getTokensIndexesOfNode(s);i.length>0&&this._nodesToTokenIndexes.set(s,i)}),this._tokensCache=null}has(t){return this._nodesToTokenIndexes.has(t)}getIndexes(t){return this._nodesToTokenIndexes.get(t)}find(t,r){let n=this._nodesToTokenIndexes.get(t);if(n)for(let s=0;s=0;s--){let i=n[s],a=this._tokens[i];if(r(a,i))return i}return-1}findMatching(t,r,n=0){let s=this._nodesToTokenIndexes.get(t);if(s){let i=0,a=n;if(a>1){let o=this._nodesOccurrencesCountCache.get(t);o&&o.test===r&&o.count0&&this._nodesOccurrencesCountCache.set(t,{test:r,count:a,i}),o;n--}}}return null}matchesOriginal(t,r){return t.end-t.start!==r.length?!1:t.value!=null?t.value===r:this._source.startsWith(r,t.start)}startMatches(t,r){let n=this._nodesToTokenIndexes.get(t);if(!n)return!1;let s=this._tokens[n[0]];return s.start!==t.start?!1:this.matchesOriginal(s,r)}endMatches(t,r){let n=this._nodesToTokenIndexes.get(t);if(!n)return!1;let s=this._tokens[n[n.length-1]];return s.end!==t.end?!1:this.matchesOriginal(s,r)}_getTokensIndexesOfNode(t){if(t.start==null||t.end==null)return[];let{first:r,last:n}=this._findTokensOfNode(t,0,this._tokens.length-1),s=r,i=uZ(t);(t.type==="ExportNamedDeclaration"||t.type==="ExportDefaultDeclaration")&&t.declaration&&t.declaration.type==="ClassDeclaration"&&i.next();let a=[];for(let o of i){if(o==null||o.start==null||o.end==null)continue;let l=this._findTokensOfNode(o,s,n),u=l.first;for(let c=s;c>1;if(tthis._tokens[s].start)r=s+1;else return s}return r}_findLastTokenOfNode(t,r,n){for(;r<=n;){let s=n+r>>1;if(tthis._tokens[s].end)r=s+1;else return s}return n}};uc.TokenMap=qy;function*uZ(e){if(e.type==="TemplateLiteral"){yield e.quasis[0];for(let r=1;r{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.TaggedTemplateExpression=cZ;Aa.TemplateElement=pZ;Aa.TemplateLiteral=dZ;Aa._printTemplate=fZ;function cZ(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)}function pZ(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function fZ(e,t){let r=e.quasis,n="`";for(let s=0;s{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.LogicalExpression=Et.BinaryExpression=Et.AssignmentExpression=RZ;Et.AssignmentPattern=MZ;Et.AwaitExpression=kZ;Et.BindExpression=qZ;Et.CallExpression=OZ;Et.ConditionalExpression=vZ;Et.Decorator=IZ;Et.DoExpression=TZ;Et.EmptyStatement=LZ;Et.ExpressionStatement=jZ;Et.Import=BZ;Et.MemberExpression=UZ;Et.MetaProperty=VZ;Et.ModuleExpression=KZ;Et.NewExpression=PZ;Et.OptionalCallExpression=NZ;Et.OptionalMemberExpression=_Z;Et.ParenthesizedExpression=xZ;Et.PrivateName=$Z;Et.SequenceExpression=AZ;Et.Super=DZ;Et.ThisExpression=CZ;Et.UnaryExpression=EZ;Et.UpdateExpression=SZ;Et.V8IntrinsicIdentifier=WZ;Et.YieldExpression=FZ;Et._shouldPrintDecoratorsBeforeExport=wZ;var hZ=Fe(),mZ=Di(),{isCallExpression:yZ,isLiteral:wP,isMemberExpression:Uy,isNewExpression:gZ,isPattern:bZ}=hZ;function EZ(e){let{operator:t}=e;t==="void"||t==="delete"||t==="typeof"||t==="throw"?(this.word(t),this.space()):this.token(t),this.print(e.argument)}function TZ(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)}function xZ(e){this.tokenChar(40);let t=this.enterDelimited();this.print(e.expression),t(),this.rightParens(e)}function SZ(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator))}function vZ(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)}function PZ(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&e.arguments.length===0&&!e.optional&&!yZ(t,{callee:e})&&!Uy(t)&&!gZ(t)||(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),e.arguments.length===0&&this.tokenMap&&!this.tokenMap.endMatches(e,")")))return;this.tokenChar(40);let r=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),r(),this.rightParens(e)}function AZ(e){this.printList(e.expressions)}function CZ(){this.word("this")}function DZ(){this.word("super")}function wZ(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function IZ(e){this.tokenChar(64),this.print(e.expression),this.newline()}function _Z(e){let{computed:t}=e,{optional:r,property:n}=e;if(this.print(e.object),!t&&Uy(n))throw new TypeError("Got a MemberExpression for MemberExpression property");wP(n)&&typeof n.value=="number"&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(n),this.tokenChar(93)):(r||this.tokenChar(46),this.print(n))}function NZ(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments),t(),this.rightParens(e)}function OZ(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);let t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),t(),this.rightParens(e)}function BZ(){this.word("import")}function kZ(e){this.word("await"),this.space(),this.print(e.argument)}function FZ(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")}function LZ(){this.semicolon(!0)}function jZ(e){this.tokenContext|=mZ.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()}function MZ(e){this.print(e.left),(e.left.type==="Identifier"||bZ(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)}function RZ(e){this.print(e.left),this.space(),e.operator==="in"||e.operator==="instanceof"?this.word(e.operator):(this.token(e.operator),this._endsWithDiv=e.operator==="/"),this.space(),this.print(e.right)}function qZ(e){this.print(e.object),this.token("::"),this.print(e.callee)}function UZ(e){if(this.print(e.object),!e.computed&&Uy(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(wP(e.property)&&typeof e.property.value=="number"&&(t=!0),t){let r=this.enterDelimited();this.tokenChar(91),this.print(e.property),this.tokenChar(93),r()}else this.tokenChar(46),this.print(e.property)}function VZ(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)}function $Z(e){this.tokenChar(35),this.print(e.id)}function WZ(e){this.tokenChar(37),this.word(e.name)}function KZ(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)}});var BP=x(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.BreakStatement=tee;Ut.CatchClause=oee;Ut.ContinueStatement=ree;Ut.DebuggerStatement=cee;Ut.DoWhileStatement=eee;Ut.ForOfStatement=Ut.ForInStatement=void 0;Ut.ForStatement=QZ;Ut.IfStatement=zZ;Ut.LabeledStatement=iee;Ut.ReturnStatement=nee;Ut.SwitchCase=uee;Ut.SwitchStatement=lee;Ut.ThrowStatement=see;Ut.TryStatement=aee;Ut.VariableDeclaration=pee;Ut.VariableDeclarator=fee;Ut.WhileStatement=ZZ;Ut.WithStatement=JZ;var HZ=Fe(),{isFor:_P,isForStatement:GZ,isIfStatement:XZ,isStatement:YZ}=HZ;function JZ(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)}function zZ(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&XZ(NP(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))}function NP(e){let{body:t}=e;return YZ(t)===!1?e:NP(t)}function QZ(e){this.word("for"),this.space(),this.tokenChar(40);{let t=this.enterForStatementInit();this.print(e.init),t()}this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.token(";",!1,1),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e)}function ZZ(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)}function OP(e){this.word("for"),this.space();let t=e.type==="ForOfStatement";t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{let r=this.enterForXStatementInit(t);this.print(e.left),r==null||r()}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}var FIe=Ut.ForInStatement=OP,LIe=Ut.ForOfStatement=OP;function eee(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()}function cc(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}function tee(e){this.word("break"),cc(this,e.label)}function ree(e){this.word("continue"),cc(this,e.label)}function nee(e){this.word("return"),cc(this,e.argument)}function see(e){this.word("throw"),cc(this,e.argument)}function iee(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)}function aee(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))}function oee(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)}function lee(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,!0,void 0,function(r,n){if(!r&&e.cases[e.cases.length-1]===n)return-1}),this.rightBrace(e)}function uee(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,!0))}function cee(){this.word("debugger"),this.semicolon()}function pee(e,t){e.declare&&(this.word("declare"),this.space());let{kind:r}=e;r==="await using"?(this.word("await"),this.space(),this.word("using",!0)):this.word(r,r==="using"),this.space();let n=!1;if(!_P(t))for(let s of e.declarations)s.init&&(n=!0);if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,n?function(s){this.token(",",!1,s),this.newline()}:void 0),_P(t)){if(GZ(t)){if(t.init===e)return}else if(t.left===e)return}this.semicolon()}function fee(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))}});var kP=x(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});cn.ClassAccessorProperty=Tee;cn.ClassBody=gee;cn.ClassExpression=cn.ClassDeclaration=yee;cn.ClassMethod=See;cn.ClassPrivateMethod=vee;cn.ClassPrivateProperty=xee;cn.ClassProperty=Eee;cn.StaticBlock=Aee;cn._classMethodHead=Pee;var dee=Fe(),{isExportDefaultDeclaration:hee,isExportNamedDeclaration:mee}=dee;function yee(e,t){(!(hee(t)||mee(t))||!this._shouldPrintDecoratorsBeforeExport(t))&&this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}function gee(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else{this.newline();let t=bee(this,e);t==null||t(-1);let r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0),r(),this.endsWith(10)||this.newline(),this.rightBrace(e)}}function bee(e,t){if(!e.tokenMap||t.start==null||t.end==null)return null;let r=e.tokenMap.getIndexes(t);if(!r)return null;let n=1,s=0,i=0,a=()=>{for(;i{i<=o&&(i=o+1,a());let l=i===t.body.length?t.end:t.body[i].start,u;for(;n{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.ArrowFunctionExpression=Lee;pn.FunctionDeclaration=pn.FunctionExpression=Fee;pn._functionHead=kee;pn._methodHead=Oee;pn._param=Nee;pn._parameters=_ee;pn._params=Iee;pn._predicate=Bee;pn._shouldPrintArrowParamsParens=jee;var Cee=Fe(),Dee=Di(),{isIdentifier:wee}=Cee;function Iee(e,t,r){this.print(e.typeParameters);let n=Mee.call(this,t,r);n&&this.sourceIdentifierName(n.name,n.pos),this.tokenChar(40),this._parameters(e.params,")");let s=e.type==="ArrowFunctionExpression";this.print(e.returnType,s),this._noLineTerminator=s}function _ee(e,t){let r=this.enterDelimited(),n=this.shouldPrintTrailingComma(t),s=e.length;for(let i=0;i"),this.space(),this.tokenContext|=Dee.TokenContext.arrowBody,this.print(e.body)}function jee(e){var t,r;if(e.params.length!==1||e.typeParameters||e.returnType||e.predicate)return!0;let n=e.params[0];if(!wee(n)||n.typeAnnotation||n.optional||(t=n.leadingComments)!=null&&t.length||(r=n.trailingComments)!=null&&r.length)return!0;if(this.tokenMap){if(e.loc==null||this.tokenMap.findMatching(e,"(")!==null)return!0;let s=this.tokenMap.findMatching(e,"=>");return(s==null?void 0:s.loc)==null?!0:s.loc.start.line!==e.loc.start.line}return!!this.format.retainLines}function Mee(e,t){let r=e;if(!r&&t){let l=t.type;l==="VariableDeclarator"?r=t.id:l==="AssignmentExpression"||l==="AssignmentPattern"?r=t.left:l==="ObjectProperty"||l==="ClassProperty"?(!t.computed||t.key.type==="StringLiteral")&&(r=t.key):(l==="ClassPrivateProperty"||l==="ClassAccessorProperty")&&(r=t.key)}if(!r)return;let n;if(r.type==="Identifier"){var s,i;n={pos:(s=r.loc)==null?void 0:s.start,name:((i=r.loc)==null?void 0:i.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;n={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;n={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return n}});var Vy=x(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.ExportAllDeclaration=Qee;Lr.ExportDefaultDeclaration=ete;Lr.ExportDefaultSpecifier=Xee;Lr.ExportNamedDeclaration=Zee;Lr.ExportNamespaceSpecifier=Jee;Lr.ExportSpecifier=Yee;Lr.ImportAttribute=rte;Lr.ImportDeclaration=tte;Lr.ImportDefaultSpecifier=Gee;Lr.ImportExpression=ste;Lr.ImportNamespaceSpecifier=nte;Lr.ImportSpecifier=Hee;Lr._printAttributes=zee;var Ree=Fe(),qee=Di(),{isClassDeclaration:Uee,isExportDefaultSpecifier:Vee,isExportNamespaceSpecifier:$ee,isImportDefaultSpecifier:Wee,isImportNamespaceSpecifier:Kee,isStatement:jP}=Ree;function Hee(e){(e.importKind==="type"||e.importKind==="typeof")&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))}function Gee(e){this.print(e.local)}function Xee(e){this.print(e.exported)}function Yee(e){e.exportKind==="type"&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))}function Jee(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var LP=!1;function zee(e,t){var r;let{importAttributesKeyword:n}=this.format,{attributes:s,assertions:i}=e;s&&!n&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!LP&&(LP=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let a=n==="assert"||!n&&i;if(this.word(a?"assert":"with"),this.space(),!a&&(n==="with-legacy"||!n&&(r=e.extra)!=null&&r.deprecatedWithLegacySyntax)){this.printList(s||i);return}let o=t?1:0;this.token("{",null,o),this.space(),this.printList(s||i,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",null,o)}function Qee(e){var t,r;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source),this.semicolon()}function MP(e,t){Uee(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}function Zee(e){if(MP(this,e),this.word("export"),this.space(),e.declaration){let n=e.declaration;this.print(n),jP(n)||this.semicolon()}else{e.exportKind==="type"&&(this.word("type"),this.space());let n=e.specifiers.slice(0),s=!1;for(;;){let a=n[0];if(Vee(a)||$ee(a))s=!0,this.print(n.shift()),n.length&&(this.tokenChar(44),this.space());else break}let i=!1;if((n.length||!n.length&&!s)&&(i=!0,this.tokenChar(123),n.length&&(this.space(),this.printList(n,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source){var t,r;this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,i)):this.print(e.source)}this.semicolon()}}function ete(e){MP(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=qee.TokenContext.exportDefault;let t=e.declaration;this.print(t),jP(t)||this.semicolon()}function tte(e){var t,r;this.word("import"),this.space();let n=e.importKind==="type"||e.importKind==="typeof";n?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let s=e.specifiers.slice(0),i=!!s.length;for(;i;){let o=s[0];if(Wee(o)||Kee(o))this.print(s.shift()),s.length&&(this.tokenChar(44),this.space());else break}let a=!1;s.length?(a=!0,this.tokenChar(123),this.space(),this.printList(s,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):n&&!i&&(a=!0,this.tokenChar(123),this.tokenChar(125)),(i||n)&&(this.space(),this.word("from"),this.space()),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,a)):this.print(e.source),this.semicolon()}function rte(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function nte(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function ste(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);let t=this.shouldPrintTrailingComma(")");this.print(e.source),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options)),t&&this.tokenChar(44),this.rightParens(e)}});var VP=x((UIe,UP)=>{"use strict";var RP={},ite=RP.hasOwnProperty,qP=(e,t)=>{for(let r in e)ite.call(e,r)&&t(r,e[r])},ate=(e,t)=>(t&&qP(t,(r,n)=>{e[r]=n}),e),ote=(e,t)=>{let r=e.length,n=-1;for(;++n"\\u"+("0000"+e).slice(-4),Go=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},Xo=RP.toString,lte=Array.isArray,ute=e=>typeof Buffer=="function"&&Buffer.isBuffer(e),cte=e=>Xo.call(e)=="[object Object]",pte=e=>typeof e=="string"||Xo.call(e)=="[object String]",fte=e=>typeof e=="number"||Xo.call(e)=="[object Number]",$y=e=>typeof e=="bigint",dte=e=>typeof e=="function",hte=e=>Xo.call(e)=="[object Map]",mte=e=>Xo.call(e)=="[object Set]",yte={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},gte=/[\\\b\f\n\r\t]/,bte=/[0-9]/,Ete=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Tte=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,xte=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,qs=(e,t)=>{let r=()=>{u=l,++t.indentLevel,l=t.indent.repeat(t.indentLevel)},n={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},s=t&&t.json;s&&(n.quotes="double",n.wrap=!0),t=ate(n,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");let i=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,o=t.lowercaseHex,l=t.indent.repeat(t.indentLevel),u="",c=t.__inline1__,p=t.__inline2__,d=a?"":` `,m,g=!0,f=t.numbers=="binary",b=t.numbers=="octal",T=t.numbers=="decimal",w=t.numbers=="hexadecimal";if(s&&e&&dte(e.toJSON)&&(e=e.toJSON()),!pte(e)){if(hte(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+qs(Array.from(e),t)+")");if(mte(e))return e.size==0?"new Set()":"new Set("+qs(Array.from(e),t)+")";if(ute(e))return e.length==0?"Buffer.from([])":"Buffer.from("+qs(Array.from(e),t)+")";if(lte(e))return m=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),p||r(),ote(e,N=>{g=!1,p&&(t.__inline2__=!1),m.push((a||p?"":l)+qs(N,t))}),g?"[]":p?"["+m.join(", ")+"]":"["+d+m.join(","+d)+d+(a?"":u)+"]";if(fte(e)||$y(e)){if(s)return JSON.stringify(Number(e));let N;if(T)N=String(e);else if(w){let L=e.toString(16);o||(L=L.toUpperCase()),N="0x"+L}else f?N="0b"+e.toString(2):b&&(N="0o"+e.toString(8));return $y(e)?N+"n":N}else return $y(e)?s?JSON.stringify(Number(e)):e+"n":cte(e)?(m=[],t.wrap=!0,r(),qP(e,(N,L)=>{g=!1,m.push((a?"":l)+qs(N,t)+":"+(a?"":" ")+qs(L,t))}),g?"{}":"{"+d+m.join(","+d)+d+(a?"":u)+"}"):s?JSON.stringify(e)||"null":String(e)}let I=t.escapeEverything?Tte:xte;return m=e.replace(I,(N,L,W,U,H,pe)=>{if(L){if(t.minimal)return L;let ce=L.charCodeAt(0),qe=L.charCodeAt(1);if(t.es6){let ze=(ce-55296)*1024+qe-56320+65536;return"\\u{"+Go(ze,o)+"}"}return pc(Go(ce,o))+pc(Go(qe,o))}if(W)return pc(Go(W.charCodeAt(0),o));if(N=="\0"&&!s&&!bte.test(pe.charAt(H+1)))return"\\0";if(U)return U==i||t.escapeEverything?"\\"+U:U;if(gte.test(N))return yte[N];if(t.minimal&&!Ete.test(N))return N;let Ee=Go(N.charCodeAt(0),o);return s||Ee.length>2?pc(Ee):"\\x"+("00"+Ee).slice(-2)}),i=="`"&&(m=m.replace(/\$\{/g,"\\${")),t.isScriptContext&&(m=m.replace(/<\/(script|style)/gi,"<\\/$1").replace(/