"use strict"; var j8 = Object.create; var Aa = Object.defineProperty; var M8 = Object.getOwnPropertyDescriptor; var R8 = Object.getOwnPropertyNames; var q8 = Object.getPrototypeOf, U8 = Object.prototype.hasOwnProperty; var i = (e, t) => Aa(e, "name", { value: t, configurable: !0 }); var dl = (e, t) => () => (e && (t = e(e = 0)), t); var w = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), hl = (e, t) => { for (var r in t) Aa(e, r, { get: t[r], enumerable: !0 }); }, Xb = (e, t, r, s) => { if (t && typeof t == "object" || typeof t == "function") for (let n of R8(t)) !U8.call(e, n) && n !== r && Aa(e, n, { get: () => t[n], enumerable: !(s = M8(t, n)) || s.enumerable }); return e; }; var Br = (e, t, r) => (r = e != null ? j8(q8(e)) : {}, Xb( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. t || !e || !e.__esModule ? Aa(r, "default", { value: e, enumerable: !0 }) : r, e )), ml = (e) => Xb(Aa({}, "__esModule", { value: !0 }), e); // ../node_modules/@babel/types/lib/utils/shallowEqual.js var yl = w((af) => { "use strict"; Object.defineProperty(af, "__esModule", { value: !0 }); af.default = $8; function $8(e, t) { let r = Object.keys(t); for (let s of r) if (e[s] !== t[s]) return !1; return !0; } i($8, "shallowEqual"); }); // ../node_modules/@babel/types/lib/utils/deprecationWarning.js var hi = w((of) => { "use strict"; Object.defineProperty(of, "__esModule", { value: !0 }); of.default = V8; var zb = /* @__PURE__ */ new Set(); function V8(e, t, r = "", s = e) { if (zb.has(s)) return; zb.add(s); let { internal: n, trace: a } = K8(1, 2); n || console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\` ${a}`); } i(V8, "deprecationWarning"); function K8(e, t) { let { stackTraceLimit: r, prepareStackTrace: s } = Error, n; if (Error.stackTraceLimit = 1 + e + t, Error.prepareStackTrace = function(o, l) { n = l; }, new Error().stack, Error.stackTraceLimit = r, Error.prepareStackTrace = s, !n) return { internal: !1, trace: "" }; let a = n.slice(1 + e, 1 + e + t); return { internal: /[\\/]@babel[\\/]/.test(a[1].getFileName()), trace: a.map((o) => ` at ${o}`).join(` `) }; } i(K8, "captureShortStackTrace"); }); // ../node_modules/@babel/types/lib/validators/generated/index.js var Xe = w((E) => { "use strict"; Object.defineProperty(E, "__esModule", { value: !0 }); E.isAccessor = lO; E.isAnyTypeAnnotation = C_; E.isArgumentPlaceholder = tI; E.isArrayExpression = W8; E.isArrayPattern = V6; E.isArrayTypeAnnotation = w_; E.isArrowFunctionExpression = K6; E.isAssignmentExpression = Y8; E.isAssignmentPattern = $6; E.isAwaitExpression = d_; E.isBigIntLiteral = m_; E.isBinary = I9; E.isBinaryExpression = H8; E.isBindExpression = rI; E.isBlock = B9; E.isBlockParent = N9; E.isBlockStatement = z8; E.isBooleanLiteral = g6; E.isBooleanLiteralTypeAnnotation = __; E.isBooleanTypeAnnotation = D_; E.isBreakStatement = Q8; E.isCallExpression = Z8; E.isCatchClause = e6; E.isClass = iO; E.isClassAccessorProperty = x_; E.isClassBody = W6; E.isClassDeclaration = H6; E.isClassExpression = Y6; E.isClassImplements = O_; E.isClassMethod = i_; E.isClassPrivateMethod = S_; E.isClassPrivateProperty = E_; E.isClassProperty = T_; E.isCompletionStatement = L9; E.isConditional = j9; E.isConditionalExpression = t6; E.isContinueStatement = r6; E.isDebuggerStatement = s6; E.isDecimalLiteral = lI; E.isDeclaration = Y9; E.isDeclareClass = N_; E.isDeclareExportAllDeclaration = U_; E.isDeclareExportDeclaration = q_; E.isDeclareFunction = B_; E.isDeclareInterface = k_; E.isDeclareModule = F_; E.isDeclareModuleExports = L_; E.isDeclareOpaqueType = M_; E.isDeclareTypeAlias = j_; E.isDeclareVariable = R_; E.isDeclaredPredicate = $_; E.isDecorator = sI; E.isDirective = G8; E.isDirectiveLiteral = X8; E.isDoExpression = nI; E.isDoWhileStatement = n6; E.isEmptyStatement = i6; E.isEmptyTypeAnnotation = Z_; E.isEnumBody = mO; E.isEnumBooleanBody = w7; E.isEnumBooleanMember = O7; E.isEnumDeclaration = C7; E.isEnumDefaultedMember = k7; E.isEnumMember = yO; E.isEnumNumberBody = D7; E.isEnumNumberMember = N7; E.isEnumStringBody = _7; E.isEnumStringMember = B7; E.isEnumSymbolBody = I7; E.isExistsTypeAnnotation = V_; E.isExportAllDeclaration = J6; E.isExportDeclaration = aO; E.isExportDefaultDeclaration = G6; E.isExportDefaultSpecifier = iI; E.isExportNamedDeclaration = X6; E.isExportNamespaceSpecifier = y_; E.isExportSpecifier = z6; E.isExpression = _9; E.isExpressionStatement = a6; E.isExpressionWrapper = q9; E.isFile = o6; E.isFlow = cO; E.isFlowBaseAnnotation = fO; E.isFlowDeclaration = dO; E.isFlowPredicate = hO; E.isFlowType = pO; E.isFor = U9; E.isForInStatement = l6; E.isForOfStatement = Q6; E.isForStatement = u6; E.isForXStatement = $9; E.isFunction = V9; E.isFunctionDeclaration = c6; E.isFunctionExpression = p6; E.isFunctionParameter = H9; E.isFunctionParent = K9; E.isFunctionTypeAnnotation = K_; E.isFunctionTypeParam = W_; E.isGenericTypeAnnotation = Y_; E.isIdentifier = f6; E.isIfStatement = d6; E.isImmutable = Q9; E.isImport = h_; E.isImportAttribute = A_; E.isImportDeclaration = Z6; E.isImportDefaultSpecifier = e_; E.isImportExpression = s_; E.isImportNamespaceSpecifier = t_; E.isImportOrExportDeclaration = Qb; E.isImportSpecifier = r_; E.isIndexedAccessType = F7; E.isInferredPredicate = H_; E.isInterfaceDeclaration = G_; E.isInterfaceExtends = J_; E.isInterfaceTypeAnnotation = X_; E.isInterpreterDirective = J8; E.isIntersectionTypeAnnotation = z_; E.isJSX = bO; E.isJSXAttribute = j7; E.isJSXClosingElement = M7; E.isJSXClosingFragment = z7; E.isJSXElement = R7; E.isJSXEmptyExpression = q7; E.isJSXExpressionContainer = U7; E.isJSXFragment = G7; E.isJSXIdentifier = V7; E.isJSXMemberExpression = K7; E.isJSXNamespacedName = W7; E.isJSXOpeningElement = Y7; E.isJSXOpeningFragment = X7; E.isJSXSpreadAttribute = H7; E.isJSXSpreadChild = $7; E.isJSXText = J7; E.isLVal = G9; E.isLabeledStatement = h6; E.isLiteral = z9; E.isLogicalExpression = x6; E.isLoop = M9; E.isMemberExpression = E6; E.isMetaProperty = n_; E.isMethod = eO; E.isMiscellaneous = gO; E.isMixedTypeAnnotation = Q_; E.isModuleDeclaration = wO; E.isModuleExpression = uI; E.isModuleSpecifier = oO; E.isNewExpression = S6; E.isNoop = Q7; E.isNullLiteral = b6; E.isNullLiteralTypeAnnotation = I_; E.isNullableTypeAnnotation = e7; E.isNumberLiteral = vO; E.isNumberLiteralTypeAnnotation = t7; E.isNumberTypeAnnotation = r7; E.isNumericLiteral = y6; E.isObjectExpression = P6; E.isObjectMember = tO; E.isObjectMethod = A6; E.isObjectPattern = a_; E.isObjectProperty = C6; E.isObjectTypeAnnotation = s7; E.isObjectTypeCallProperty = i7; E.isObjectTypeIndexer = a7; E.isObjectTypeInternalSlot = n7; E.isObjectTypeProperty = o7; E.isObjectTypeSpreadProperty = l7; E.isOpaqueType = u7; E.isOptionalCallExpression = g_; E.isOptionalIndexedAccessType = L7; E.isOptionalMemberExpression = b_; E.isParenthesizedExpression = I6; E.isPattern = nO; E.isPatternLike = J9; E.isPipelineBareFunction = fI; E.isPipelinePrimaryTopicReference = dI; E.isPipelineTopicExpression = pI; E.isPlaceholder = Z7; E.isPrivate = uO; E.isPrivateName = v_; E.isProgram = v6; E.isProperty = rO; E.isPureish = W9; E.isQualifiedTypeIdentifier = c7; E.isRecordExpression = aI; E.isRegExpLiteral = T6; E.isRegexLiteral = PO; E.isRestElement = w6; E.isRestProperty = AO; E.isReturnStatement = D6; E.isScopable = O9; E.isSequenceExpression = _6; E.isSpreadElement = o_; E.isSpreadProperty = CO; E.isStandardized = D9; E.isStatement = k9; E.isStaticBlock = P_; E.isStringLiteral = m6; E.isStringLiteralTypeAnnotation = p7; E.isStringTypeAnnotation = f7; E.isSuper = l_; E.isSwitchCase = O6; E.isSwitchStatement = N6; E.isSymbolTypeAnnotation = d7; E.isTSAnyKeyword = PI; E.isTSArrayType = KI; E.isTSAsExpression = c9; E.isTSBaseType = SO; E.isTSBigIntKeyword = CI; E.isTSBooleanKeyword = AI; E.isTSCallSignatureDeclaration = TI; E.isTSConditionalType = zI; E.isTSConstructSignatureDeclaration = xI; E.isTSConstructorType = RI; E.isTSDeclareFunction = yI; E.isTSDeclareMethod = bI; E.isTSEntityName = X9; E.isTSEnumBody = d9; E.isTSEnumDeclaration = h9; E.isTSEnumMember = m9; E.isTSExportAssignment = S9; E.isTSExpressionWithTypeArguments = i9; E.isTSExternalModuleReference = x9; E.isTSFunctionType = MI; E.isTSImportEqualsDeclaration = T9; E.isTSImportType = g9; E.isTSIndexSignature = vI; E.isTSIndexedAccessType = t9; E.isTSInferType = QI; E.isTSInstantiationExpression = u9; E.isTSInterfaceBody = o9; E.isTSInterfaceDeclaration = a9; E.isTSIntersectionType = XI; E.isTSIntrinsicKeyword = wI; E.isTSLiteralType = n9; E.isTSMappedType = r9; E.isTSMethodSignature = SI; E.isTSModuleBlock = b9; E.isTSModuleDeclaration = y9; E.isTSNamedTupleMember = JI; E.isTSNamespaceExportDeclaration = v9; E.isTSNeverKeyword = DI; E.isTSNonNullExpression = E9; E.isTSNullKeyword = _I; E.isTSNumberKeyword = II; E.isTSObjectKeyword = OI; E.isTSOptionalType = YI; E.isTSParameterProperty = mI; E.isTSParenthesizedType = ZI; E.isTSPropertySignature = EI; E.isTSQualifiedName = gI; E.isTSRestType = HI; E.isTSSatisfiesExpression = p9; E.isTSStringKeyword = NI; E.isTSSymbolKeyword = BI; E.isTSTemplateLiteralType = s9; E.isTSThisType = jI; E.isTSTupleType = WI; E.isTSType = EO; E.isTSTypeAliasDeclaration = l9; E.isTSTypeAnnotation = P9; E.isTSTypeAssertion = f9; E.isTSTypeElement = xO; E.isTSTypeLiteral = VI; E.isTSTypeOperator = e9; E.isTSTypeParameter = w9; E.isTSTypeParameterDeclaration = C9; E.isTSTypeParameterInstantiation = A9; E.isTSTypePredicate = UI; E.isTSTypeQuery = $I; E.isTSTypeReference = qI; E.isTSUndefinedKeyword = kI; E.isTSUnionType = GI; E.isTSUnknownKeyword = FI; E.isTSVoidKeyword = LI; E.isTaggedTemplateExpression = u_; E.isTemplateElement = c_; E.isTemplateLiteral = p_; E.isTerminatorless = F9; E.isThisExpression = B6; E.isThisTypeAnnotation = h7; E.isThrowStatement = k6; E.isTopicReference = cI; E.isTryStatement = F6; E.isTupleExpression = oI; E.isTupleTypeAnnotation = m7; E.isTypeAlias = b7; E.isTypeAnnotation = g7; E.isTypeCastExpression = T7; E.isTypeParameter = x7; E.isTypeParameterDeclaration = E7; E.isTypeParameterInstantiation = S7; E.isTypeScript = TO; E.isTypeofTypeAnnotation = y7; E.isUnaryExpression = L6; E.isUnaryLike = sO; E.isUnionTypeAnnotation = v7; E.isUpdateExpression = j6; E.isUserWhitespacable = Z9; E.isV8IntrinsicIdentifier = eI; E.isVariableDeclaration = M6; E.isVariableDeclarator = R6; E.isVariance = P7; E.isVoidPattern = hI; E.isVoidTypeAnnotation = A7; E.isWhile = R9; E.isWhileStatement = q6; E.isWithStatement = U6; E.isYieldExpression = f_; var P = yl(), Ca = hi(); function W8(e, t) { return !e || e.type !== "ArrayExpression" ? !1 : t == null || (0, P.default)(e, t); } i(W8, "isArrayExpression"); function Y8(e, t) { return !e || e.type !== "AssignmentExpression" ? !1 : t == null || (0, P.default)(e, t); } i(Y8, "isAssignmentExpression"); function H8(e, t) { return !e || e.type !== "BinaryExpression" ? !1 : t == null || (0, P.default)(e, t); } i(H8, "isBinaryExpression"); function J8(e, t) { return !e || e.type !== "InterpreterDirective" ? !1 : t == null || (0, P.default)(e, t); } i(J8, "isInterpreterDirective"); function G8(e, t) { return !e || e.type !== "Directive" ? !1 : t == null || (0, P.default)(e, t); } i(G8, "isDirective"); function X8(e, t) { return !e || e.type !== "DirectiveLiteral" ? !1 : t == null || (0, P.default)(e, t); } i(X8, "isDirectiveLiteral"); function z8(e, t) { return !e || e.type !== "BlockStatement" ? !1 : t == null || (0, P.default)(e, t); } i(z8, "isBlockStatement"); function Q8(e, t) { return !e || e.type !== "BreakStatement" ? !1 : t == null || (0, P.default)(e, t); } i(Q8, "isBreakStatement"); function Z8(e, t) { return !e || e.type !== "CallExpression" ? !1 : t == null || (0, P.default)(e, t); } i(Z8, "isCallExpression"); function e6(e, t) { return !e || e.type !== "CatchClause" ? !1 : t == null || (0, P.default)(e, t); } i(e6, "isCatchClause"); function t6(e, t) { return !e || e.type !== "ConditionalExpression" ? !1 : t == null || (0, P.default)(e, t); } i(t6, "isConditionalExpression"); function r6(e, t) { return !e || e.type !== "ContinueStatement" ? !1 : t == null || (0, P.default)(e, t); } i(r6, "isContinueStatement"); function s6(e, t) { return !e || e.type !== "DebuggerStatement" ? !1 : t == null || (0, P.default)(e, t); } i(s6, "isDebuggerStatement"); function n6(e, t) { return !e || e.type !== "DoWhileStatement" ? !1 : t == null || (0, P.default)(e, t); } i(n6, "isDoWhileStatement"); function i6(e, t) { return !e || e.type !== "EmptyStatement" ? !1 : t == null || (0, P.default)(e, t); } i(i6, "isEmptyStatement"); function a6(e, t) { return !e || e.type !== "ExpressionStatement" ? !1 : t == null || (0, P.default)(e, t); } i(a6, "isExpressionStatement"); function o6(e, t) { return !e || e.type !== "File" ? !1 : t == null || (0, P.default)(e, t); } i(o6, "isFile"); function l6(e, t) { return !e || e.type !== "ForInStatement" ? !1 : t == null || (0, P.default)(e, t); } i(l6, "isForInStatement"); function u6(e, t) { return !e || e.type !== "ForStatement" ? !1 : t == null || (0, P.default)(e, t); } i(u6, "isForStatement"); function c6(e, t) { return !e || e.type !== "FunctionDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(c6, "isFunctionDeclaration"); function p6(e, t) { return !e || e.type !== "FunctionExpression" ? !1 : t == null || (0, P.default)(e, t); } i(p6, "isFunctionExpression"); function f6(e, t) { return !e || e.type !== "Identifier" ? !1 : t == null || (0, P.default)(e, t); } i(f6, "isIdentifier"); function d6(e, t) { return !e || e.type !== "IfStatement" ? !1 : t == null || (0, P.default)(e, t); } i(d6, "isIfStatement"); function h6(e, t) { return !e || e.type !== "LabeledStatement" ? !1 : t == null || (0, P.default)(e, t); } i(h6, "isLabeledStatement"); function m6(e, t) { return !e || e.type !== "StringLiteral" ? !1 : t == null || (0, P.default)(e, t); } i(m6, "isStringLiteral"); function y6(e, t) { return !e || e.type !== "NumericLiteral" ? !1 : t == null || (0, P.default)(e, t); } i(y6, "isNumericLiteral"); function b6(e, t) { return !e || e.type !== "NullLiteral" ? !1 : t == null || (0, P.default)(e, t); } i(b6, "isNullLiteral"); function g6(e, t) { return !e || e.type !== "BooleanLiteral" ? !1 : t == null || (0, P.default)(e, t); } i(g6, "isBooleanLiteral"); function T6(e, t) { return !e || e.type !== "RegExpLiteral" ? !1 : t == null || (0, P.default)(e, t); } i(T6, "isRegExpLiteral"); function x6(e, t) { return !e || e.type !== "LogicalExpression" ? !1 : t == null || (0, P.default)(e, t); } i(x6, "isLogicalExpression"); function E6(e, t) { return !e || e.type !== "MemberExpression" ? !1 : t == null || (0, P.default)(e, t); } i(E6, "isMemberExpression"); function S6(e, t) { return !e || e.type !== "NewExpression" ? !1 : t == null || (0, P.default)(e, t); } i(S6, "isNewExpression"); function v6(e, t) { return !e || e.type !== "Program" ? !1 : t == null || (0, P.default)(e, t); } i(v6, "isProgram"); function P6(e, t) { return !e || e.type !== "ObjectExpression" ? !1 : t == null || (0, P.default)(e, t); } i(P6, "isObjectExpression"); function A6(e, t) { return !e || e.type !== "ObjectMethod" ? !1 : t == null || (0, P.default)(e, t); } i(A6, "isObjectMethod"); function C6(e, t) { return !e || e.type !== "ObjectProperty" ? !1 : t == null || (0, P.default)(e, t); } i(C6, "isObjectProperty"); function w6(e, t) { return !e || e.type !== "RestElement" ? !1 : t == null || (0, P.default)(e, t); } i(w6, "isRestElement"); function D6(e, t) { return !e || e.type !== "ReturnStatement" ? !1 : t == null || (0, P.default)(e, t); } i(D6, "isReturnStatement"); function _6(e, t) { return !e || e.type !== "SequenceExpression" ? !1 : t == null || (0, P.default)(e, t); } i(_6, "isSequenceExpression"); function I6(e, t) { return !e || e.type !== "ParenthesizedExpression" ? !1 : t == null || (0, P.default)(e, t); } i(I6, "isParenthesizedExpression"); function O6(e, t) { return !e || e.type !== "SwitchCase" ? !1 : t == null || (0, P.default)(e, t); } i(O6, "isSwitchCase"); function N6(e, t) { return !e || e.type !== "SwitchStatement" ? !1 : t == null || (0, P.default)(e, t); } i(N6, "isSwitchStatement"); function B6(e, t) { return !e || e.type !== "ThisExpression" ? !1 : t == null || (0, P.default)(e, t); } i(B6, "isThisExpression"); function k6(e, t) { return !e || e.type !== "ThrowStatement" ? !1 : t == null || (0, P.default)(e, t); } i(k6, "isThrowStatement"); function F6(e, t) { return !e || e.type !== "TryStatement" ? !1 : t == null || (0, P.default)(e, t); } i(F6, "isTryStatement"); function L6(e, t) { return !e || e.type !== "UnaryExpression" ? !1 : t == null || (0, P.default)(e, t); } i(L6, "isUnaryExpression"); function j6(e, t) { return !e || e.type !== "UpdateExpression" ? !1 : t == null || (0, P.default)(e, t); } i(j6, "isUpdateExpression"); function M6(e, t) { return !e || e.type !== "VariableDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(M6, "isVariableDeclaration"); function R6(e, t) { return !e || e.type !== "VariableDeclarator" ? !1 : t == null || (0, P.default)(e, t); } i(R6, "isVariableDeclarator"); function q6(e, t) { return !e || e.type !== "WhileStatement" ? !1 : t == null || (0, P.default)(e, t); } i(q6, "isWhileStatement"); function U6(e, t) { return !e || e.type !== "WithStatement" ? !1 : t == null || (0, P.default)(e, t); } i(U6, "isWithStatement"); function $6(e, t) { return !e || e.type !== "AssignmentPattern" ? !1 : t == null || (0, P.default)(e, t); } i($6, "isAssignmentPattern"); function V6(e, t) { return !e || e.type !== "ArrayPattern" ? !1 : t == null || (0, P.default)(e, t); } i(V6, "isArrayPattern"); function K6(e, t) { return !e || e.type !== "ArrowFunctionExpression" ? !1 : t == null || (0, P.default)(e, t); } i(K6, "isArrowFunctionExpression"); function W6(e, t) { return !e || e.type !== "ClassBody" ? !1 : t == null || (0, P.default)(e, t); } i(W6, "isClassBody"); function Y6(e, t) { return !e || e.type !== "ClassExpression" ? !1 : t == null || (0, P.default)(e, t); } i(Y6, "isClassExpression"); function H6(e, t) { return !e || e.type !== "ClassDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(H6, "isClassDeclaration"); function J6(e, t) { return !e || e.type !== "ExportAllDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(J6, "isExportAllDeclaration"); function G6(e, t) { return !e || e.type !== "ExportDefaultDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(G6, "isExportDefaultDeclaration"); function X6(e, t) { return !e || e.type !== "ExportNamedDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(X6, "isExportNamedDeclaration"); function z6(e, t) { return !e || e.type !== "ExportSpecifier" ? !1 : t == null || (0, P.default)(e, t); } i(z6, "isExportSpecifier"); function Q6(e, t) { return !e || e.type !== "ForOfStatement" ? !1 : t == null || (0, P.default)(e, t); } i(Q6, "isForOfStatement"); function Z6(e, t) { return !e || e.type !== "ImportDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(Z6, "isImportDeclaration"); function e_(e, t) { return !e || e.type !== "ImportDefaultSpecifier" ? !1 : t == null || (0, P.default)(e, t); } i(e_, "isImportDefaultSpecifier"); function t_(e, t) { return !e || e.type !== "ImportNamespaceSpecifier" ? !1 : t == null || (0, P.default)(e, t); } i(t_, "isImportNamespaceSpecifier"); function r_(e, t) { return !e || e.type !== "ImportSpecifier" ? !1 : t == null || (0, P.default)(e, t); } i(r_, "isImportSpecifier"); function s_(e, t) { return !e || e.type !== "ImportExpression" ? !1 : t == null || (0, P.default)(e, t); } i(s_, "isImportExpression"); function n_(e, t) { return !e || e.type !== "MetaProperty" ? !1 : t == null || (0, P.default)(e, t); } i(n_, "isMetaProperty"); function i_(e, t) { return !e || e.type !== "ClassMethod" ? !1 : t == null || (0, P.default)(e, t); } i(i_, "isClassMethod"); function a_(e, t) { return !e || e.type !== "ObjectPattern" ? !1 : t == null || (0, P.default)(e, t); } i(a_, "isObjectPattern"); function o_(e, t) { return !e || e.type !== "SpreadElement" ? !1 : t == null || (0, P.default)(e, t); } i(o_, "isSpreadElement"); function l_(e, t) { return !e || e.type !== "Super" ? !1 : t == null || (0, P.default)(e, t); } i(l_, "isSuper"); function u_(e, t) { return !e || e.type !== "TaggedTemplateExpression" ? !1 : t == null || (0, P.default)(e, t); } i(u_, "isTaggedTemplateExpression"); function c_(e, t) { return !e || e.type !== "TemplateElement" ? !1 : t == null || (0, P.default)(e, t); } i(c_, "isTemplateElement"); function p_(e, t) { return !e || e.type !== "TemplateLiteral" ? !1 : t == null || (0, P.default)(e, t); } i(p_, "isTemplateLiteral"); function f_(e, t) { return !e || e.type !== "YieldExpression" ? !1 : t == null || (0, P.default)(e, t); } i(f_, "isYieldExpression"); function d_(e, t) { return !e || e.type !== "AwaitExpression" ? !1 : t == null || (0, P.default)(e, t); } i(d_, "isAwaitExpression"); function h_(e, t) { return !e || e.type !== "Import" ? !1 : t == null || (0, P.default)(e, t); } i(h_, "isImport"); function m_(e, t) { return !e || e.type !== "BigIntLiteral" ? !1 : t == null || (0, P.default)(e, t); } i(m_, "isBigIntLiteral"); function y_(e, t) { return !e || e.type !== "ExportNamespaceSpecifier" ? !1 : t == null || (0, P.default)(e, t); } i(y_, "isExportNamespaceSpecifier"); function b_(e, t) { return !e || e.type !== "OptionalMemberExpression" ? !1 : t == null || (0, P.default)(e, t); } i(b_, "isOptionalMemberExpression"); function g_(e, t) { return !e || e.type !== "OptionalCallExpression" ? !1 : t == null || (0, P.default)(e, t); } i(g_, "isOptionalCallExpression"); function T_(e, t) { return !e || e.type !== "ClassProperty" ? !1 : t == null || (0, P.default)(e, t); } i(T_, "isClassProperty"); function x_(e, t) { return !e || e.type !== "ClassAccessorProperty" ? !1 : t == null || (0, P.default)(e, t); } i(x_, "isClassAccessorProperty"); function E_(e, t) { return !e || e.type !== "ClassPrivateProperty" ? !1 : t == null || (0, P.default)(e, t); } i(E_, "isClassPrivateProperty"); function S_(e, t) { return !e || e.type !== "ClassPrivateMethod" ? !1 : t == null || (0, P.default)(e, t); } i(S_, "isClassPrivateMethod"); function v_(e, t) { return !e || e.type !== "PrivateName" ? !1 : t == null || (0, P.default)(e, t); } i(v_, "isPrivateName"); function P_(e, t) { return !e || e.type !== "StaticBlock" ? !1 : t == null || (0, P.default)(e, t); } i(P_, "isStaticBlock"); function A_(e, t) { return !e || e.type !== "ImportAttribute" ? !1 : t == null || (0, P.default)(e, t); } i(A_, "isImportAttribute"); function C_(e, t) { return !e || e.type !== "AnyTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(C_, "isAnyTypeAnnotation"); function w_(e, t) { return !e || e.type !== "ArrayTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(w_, "isArrayTypeAnnotation"); function D_(e, t) { return !e || e.type !== "BooleanTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(D_, "isBooleanTypeAnnotation"); function __(e, t) { return !e || e.type !== "BooleanLiteralTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(__, "isBooleanLiteralTypeAnnotation"); function I_(e, t) { return !e || e.type !== "NullLiteralTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(I_, "isNullLiteralTypeAnnotation"); function O_(e, t) { return !e || e.type !== "ClassImplements" ? !1 : t == null || (0, P.default)(e, t); } i(O_, "isClassImplements"); function N_(e, t) { return !e || e.type !== "DeclareClass" ? !1 : t == null || (0, P.default)(e, t); } i(N_, "isDeclareClass"); function B_(e, t) { return !e || e.type !== "DeclareFunction" ? !1 : t == null || (0, P.default)(e, t); } i(B_, "isDeclareFunction"); function k_(e, t) { return !e || e.type !== "DeclareInterface" ? !1 : t == null || (0, P.default)(e, t); } i(k_, "isDeclareInterface"); function F_(e, t) { return !e || e.type !== "DeclareModule" ? !1 : t == null || (0, P.default)(e, t); } i(F_, "isDeclareModule"); function L_(e, t) { return !e || e.type !== "DeclareModuleExports" ? !1 : t == null || (0, P.default)(e, t); } i(L_, "isDeclareModuleExports"); function j_(e, t) { return !e || e.type !== "DeclareTypeAlias" ? !1 : t == null || (0, P.default)(e, t); } i(j_, "isDeclareTypeAlias"); function M_(e, t) { return !e || e.type !== "DeclareOpaqueType" ? !1 : t == null || (0, P.default)(e, t); } i(M_, "isDeclareOpaqueType"); function R_(e, t) { return !e || e.type !== "DeclareVariable" ? !1 : t == null || (0, P.default)(e, t); } i(R_, "isDeclareVariable"); function q_(e, t) { return !e || e.type !== "DeclareExportDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(q_, "isDeclareExportDeclaration"); function U_(e, t) { return !e || e.type !== "DeclareExportAllDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(U_, "isDeclareExportAllDeclaration"); function $_(e, t) { return !e || e.type !== "DeclaredPredicate" ? !1 : t == null || (0, P.default)(e, t); } i($_, "isDeclaredPredicate"); function V_(e, t) { return !e || e.type !== "ExistsTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(V_, "isExistsTypeAnnotation"); function K_(e, t) { return !e || e.type !== "FunctionTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(K_, "isFunctionTypeAnnotation"); function W_(e, t) { return !e || e.type !== "FunctionTypeParam" ? !1 : t == null || (0, P.default)(e, t); } i(W_, "isFunctionTypeParam"); function Y_(e, t) { return !e || e.type !== "GenericTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(Y_, "isGenericTypeAnnotation"); function H_(e, t) { return !e || e.type !== "InferredPredicate" ? !1 : t == null || (0, P.default)(e, t); } i(H_, "isInferredPredicate"); function J_(e, t) { return !e || e.type !== "InterfaceExtends" ? !1 : t == null || (0, P.default)(e, t); } i(J_, "isInterfaceExtends"); function G_(e, t) { return !e || e.type !== "InterfaceDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(G_, "isInterfaceDeclaration"); function X_(e, t) { return !e || e.type !== "InterfaceTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(X_, "isInterfaceTypeAnnotation"); function z_(e, t) { return !e || e.type !== "IntersectionTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(z_, "isIntersectionTypeAnnotation"); function Q_(e, t) { return !e || e.type !== "MixedTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(Q_, "isMixedTypeAnnotation"); function Z_(e, t) { return !e || e.type !== "EmptyTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(Z_, "isEmptyTypeAnnotation"); function e7(e, t) { return !e || e.type !== "NullableTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(e7, "isNullableTypeAnnotation"); function t7(e, t) { return !e || e.type !== "NumberLiteralTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(t7, "isNumberLiteralTypeAnnotation"); function r7(e, t) { return !e || e.type !== "NumberTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(r7, "isNumberTypeAnnotation"); function s7(e, t) { return !e || e.type !== "ObjectTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(s7, "isObjectTypeAnnotation"); function n7(e, t) { return !e || e.type !== "ObjectTypeInternalSlot" ? !1 : t == null || (0, P.default)(e, t); } i(n7, "isObjectTypeInternalSlot"); function i7(e, t) { return !e || e.type !== "ObjectTypeCallProperty" ? !1 : t == null || (0, P.default)(e, t); } i(i7, "isObjectTypeCallProperty"); function a7(e, t) { return !e || e.type !== "ObjectTypeIndexer" ? !1 : t == null || (0, P.default)(e, t); } i(a7, "isObjectTypeIndexer"); function o7(e, t) { return !e || e.type !== "ObjectTypeProperty" ? !1 : t == null || (0, P.default)(e, t); } i(o7, "isObjectTypeProperty"); function l7(e, t) { return !e || e.type !== "ObjectTypeSpreadProperty" ? !1 : t == null || (0, P.default)(e, t); } i(l7, "isObjectTypeSpreadProperty"); function u7(e, t) { return !e || e.type !== "OpaqueType" ? !1 : t == null || (0, P.default)(e, t); } i(u7, "isOpaqueType"); function c7(e, t) { return !e || e.type !== "QualifiedTypeIdentifier" ? !1 : t == null || (0, P.default)(e, t); } i(c7, "isQualifiedTypeIdentifier"); function p7(e, t) { return !e || e.type !== "StringLiteralTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(p7, "isStringLiteralTypeAnnotation"); function f7(e, t) { return !e || e.type !== "StringTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(f7, "isStringTypeAnnotation"); function d7(e, t) { return !e || e.type !== "SymbolTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(d7, "isSymbolTypeAnnotation"); function h7(e, t) { return !e || e.type !== "ThisTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(h7, "isThisTypeAnnotation"); function m7(e, t) { return !e || e.type !== "TupleTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(m7, "isTupleTypeAnnotation"); function y7(e, t) { return !e || e.type !== "TypeofTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(y7, "isTypeofTypeAnnotation"); function b7(e, t) { return !e || e.type !== "TypeAlias" ? !1 : t == null || (0, P.default)(e, t); } i(b7, "isTypeAlias"); function g7(e, t) { return !e || e.type !== "TypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(g7, "isTypeAnnotation"); function T7(e, t) { return !e || e.type !== "TypeCastExpression" ? !1 : t == null || (0, P.default)(e, t); } i(T7, "isTypeCastExpression"); function x7(e, t) { return !e || e.type !== "TypeParameter" ? !1 : t == null || (0, P.default)(e, t); } i(x7, "isTypeParameter"); function E7(e, t) { return !e || e.type !== "TypeParameterDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(E7, "isTypeParameterDeclaration"); function S7(e, t) { return !e || e.type !== "TypeParameterInstantiation" ? !1 : t == null || (0, P.default)(e, t); } i(S7, "isTypeParameterInstantiation"); function v7(e, t) { return !e || e.type !== "UnionTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(v7, "isUnionTypeAnnotation"); function P7(e, t) { return !e || e.type !== "Variance" ? !1 : t == null || (0, P.default)(e, t); } i(P7, "isVariance"); function A7(e, t) { return !e || e.type !== "VoidTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(A7, "isVoidTypeAnnotation"); function C7(e, t) { return !e || e.type !== "EnumDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(C7, "isEnumDeclaration"); function w7(e, t) { return !e || e.type !== "EnumBooleanBody" ? !1 : t == null || (0, P.default)(e, t); } i(w7, "isEnumBooleanBody"); function D7(e, t) { return !e || e.type !== "EnumNumberBody" ? !1 : t == null || (0, P.default)(e, t); } i(D7, "isEnumNumberBody"); function _7(e, t) { return !e || e.type !== "EnumStringBody" ? !1 : t == null || (0, P.default)(e, t); } i(_7, "isEnumStringBody"); function I7(e, t) { return !e || e.type !== "EnumSymbolBody" ? !1 : t == null || (0, P.default)(e, t); } i(I7, "isEnumSymbolBody"); function O7(e, t) { return !e || e.type !== "EnumBooleanMember" ? !1 : t == null || (0, P.default)(e, t); } i(O7, "isEnumBooleanMember"); function N7(e, t) { return !e || e.type !== "EnumNumberMember" ? !1 : t == null || (0, P.default)(e, t); } i(N7, "isEnumNumberMember"); function B7(e, t) { return !e || e.type !== "EnumStringMember" ? !1 : t == null || (0, P.default)(e, t); } i(B7, "isEnumStringMember"); function k7(e, t) { return !e || e.type !== "EnumDefaultedMember" ? !1 : t == null || (0, P.default)(e, t); } i(k7, "isEnumDefaultedMember"); function F7(e, t) { return !e || e.type !== "IndexedAccessType" ? !1 : t == null || (0, P.default)(e, t); } i(F7, "isIndexedAccessType"); function L7(e, t) { return !e || e.type !== "OptionalIndexedAccessType" ? !1 : t == null || (0, P.default)(e, t); } i(L7, "isOptionalIndexedAccessType"); function j7(e, t) { return !e || e.type !== "JSXAttribute" ? !1 : t == null || (0, P.default)(e, t); } i(j7, "isJSXAttribute"); function M7(e, t) { return !e || e.type !== "JSXClosingElement" ? !1 : t == null || (0, P.default)(e, t); } i(M7, "isJSXClosingElement"); function R7(e, t) { return !e || e.type !== "JSXElement" ? !1 : t == null || (0, P.default)(e, t); } i(R7, "isJSXElement"); function q7(e, t) { return !e || e.type !== "JSXEmptyExpression" ? !1 : t == null || (0, P.default)(e, t); } i(q7, "isJSXEmptyExpression"); function U7(e, t) { return !e || e.type !== "JSXExpressionContainer" ? !1 : t == null || (0, P.default)(e, t); } i(U7, "isJSXExpressionContainer"); function $7(e, t) { return !e || e.type !== "JSXSpreadChild" ? !1 : t == null || (0, P.default)(e, t); } i($7, "isJSXSpreadChild"); function V7(e, t) { return !e || e.type !== "JSXIdentifier" ? !1 : t == null || (0, P.default)(e, t); } i(V7, "isJSXIdentifier"); function K7(e, t) { return !e || e.type !== "JSXMemberExpression" ? !1 : t == null || (0, P.default)(e, t); } i(K7, "isJSXMemberExpression"); function W7(e, t) { return !e || e.type !== "JSXNamespacedName" ? !1 : t == null || (0, P.default)(e, t); } i(W7, "isJSXNamespacedName"); function Y7(e, t) { return !e || e.type !== "JSXOpeningElement" ? !1 : t == null || (0, P.default)(e, t); } i(Y7, "isJSXOpeningElement"); function H7(e, t) { return !e || e.type !== "JSXSpreadAttribute" ? !1 : t == null || (0, P.default)(e, t); } i(H7, "isJSXSpreadAttribute"); function J7(e, t) { return !e || e.type !== "JSXText" ? !1 : t == null || (0, P.default)(e, t); } i(J7, "isJSXText"); function G7(e, t) { return !e || e.type !== "JSXFragment" ? !1 : t == null || (0, P.default)(e, t); } i(G7, "isJSXFragment"); function X7(e, t) { return !e || e.type !== "JSXOpeningFragment" ? !1 : t == null || (0, P.default)(e, t); } i(X7, "isJSXOpeningFragment"); function z7(e, t) { return !e || e.type !== "JSXClosingFragment" ? !1 : t == null || (0, P.default)(e, t); } i(z7, "isJSXClosingFragment"); function Q7(e, t) { return !e || e.type !== "Noop" ? !1 : t == null || (0, P.default)(e, t); } i(Q7, "isNoop"); function Z7(e, t) { return !e || e.type !== "Placeholder" ? !1 : t == null || (0, P.default)(e, t); } i(Z7, "isPlaceholder"); function eI(e, t) { return !e || e.type !== "V8IntrinsicIdentifier" ? !1 : t == null || (0, P.default)(e, t); } i(eI, "isV8IntrinsicIdentifier"); function tI(e, t) { return !e || e.type !== "ArgumentPlaceholder" ? !1 : t == null || (0, P.default)(e, t); } i(tI, "isArgumentPlaceholder"); function rI(e, t) { return !e || e.type !== "BindExpression" ? !1 : t == null || (0, P.default)(e, t); } i(rI, "isBindExpression"); function sI(e, t) { return !e || e.type !== "Decorator" ? !1 : t == null || (0, P.default)(e, t); } i(sI, "isDecorator"); function nI(e, t) { return !e || e.type !== "DoExpression" ? !1 : t == null || (0, P.default)(e, t); } i(nI, "isDoExpression"); function iI(e, t) { return !e || e.type !== "ExportDefaultSpecifier" ? !1 : t == null || (0, P.default)(e, t); } i(iI, "isExportDefaultSpecifier"); function aI(e, t) { return !e || e.type !== "RecordExpression" ? !1 : t == null || (0, P.default)(e, t); } i(aI, "isRecordExpression"); function oI(e, t) { return !e || e.type !== "TupleExpression" ? !1 : t == null || (0, P.default)(e, t); } i(oI, "isTupleExpression"); function lI(e, t) { return !e || e.type !== "DecimalLiteral" ? !1 : t == null || (0, P.default)(e, t); } i(lI, "isDecimalLiteral"); function uI(e, t) { return !e || e.type !== "ModuleExpression" ? !1 : t == null || (0, P.default)(e, t); } i(uI, "isModuleExpression"); function cI(e, t) { return !e || e.type !== "TopicReference" ? !1 : t == null || (0, P.default)(e, t); } i(cI, "isTopicReference"); function pI(e, t) { return !e || e.type !== "PipelineTopicExpression" ? !1 : t == null || (0, P.default)(e, t); } i(pI, "isPipelineTopicExpression"); function fI(e, t) { return !e || e.type !== "PipelineBareFunction" ? !1 : t == null || (0, P.default)(e, t); } i(fI, "isPipelineBareFunction"); function dI(e, t) { return !e || e.type !== "PipelinePrimaryTopicReference" ? !1 : t == null || (0, P.default)(e, t); } i(dI, "isPipelinePrimaryTopicReference"); function hI(e, t) { return !e || e.type !== "VoidPattern" ? !1 : t == null || (0, P.default)(e, t); } i(hI, "isVoidPattern"); function mI(e, t) { return !e || e.type !== "TSParameterProperty" ? !1 : t == null || (0, P.default)(e, t); } i(mI, "isTSParameterProperty"); function yI(e, t) { return !e || e.type !== "TSDeclareFunction" ? !1 : t == null || (0, P.default)(e, t); } i(yI, "isTSDeclareFunction"); function bI(e, t) { return !e || e.type !== "TSDeclareMethod" ? !1 : t == null || (0, P.default)(e, t); } i(bI, "isTSDeclareMethod"); function gI(e, t) { return !e || e.type !== "TSQualifiedName" ? !1 : t == null || (0, P.default)(e, t); } i(gI, "isTSQualifiedName"); function TI(e, t) { return !e || e.type !== "TSCallSignatureDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(TI, "isTSCallSignatureDeclaration"); function xI(e, t) { return !e || e.type !== "TSConstructSignatureDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(xI, "isTSConstructSignatureDeclaration"); function EI(e, t) { return !e || e.type !== "TSPropertySignature" ? !1 : t == null || (0, P.default)(e, t); } i(EI, "isTSPropertySignature"); function SI(e, t) { return !e || e.type !== "TSMethodSignature" ? !1 : t == null || (0, P.default)(e, t); } i(SI, "isTSMethodSignature"); function vI(e, t) { return !e || e.type !== "TSIndexSignature" ? !1 : t == null || (0, P.default)(e, t); } i(vI, "isTSIndexSignature"); function PI(e, t) { return !e || e.type !== "TSAnyKeyword" ? !1 : t == null || (0, P.default)(e, t); } i(PI, "isTSAnyKeyword"); function AI(e, t) { return !e || e.type !== "TSBooleanKeyword" ? !1 : t == null || (0, P.default)(e, t); } i(AI, "isTSBooleanKeyword"); function CI(e, t) { return !e || e.type !== "TSBigIntKeyword" ? !1 : t == null || (0, P.default)(e, t); } i(CI, "isTSBigIntKeyword"); function wI(e, t) { return !e || e.type !== "TSIntrinsicKeyword" ? !1 : t == null || (0, P.default)(e, t); } i(wI, "isTSIntrinsicKeyword"); function DI(e, t) { return !e || e.type !== "TSNeverKeyword" ? !1 : t == null || (0, P.default)(e, t); } i(DI, "isTSNeverKeyword"); function _I(e, t) { return !e || e.type !== "TSNullKeyword" ? !1 : t == null || (0, P.default)(e, t); } i(_I, "isTSNullKeyword"); function II(e, t) { return !e || e.type !== "TSNumberKeyword" ? !1 : t == null || (0, P.default)(e, t); } i(II, "isTSNumberKeyword"); function OI(e, t) { return !e || e.type !== "TSObjectKeyword" ? !1 : t == null || (0, P.default)(e, t); } i(OI, "isTSObjectKeyword"); function NI(e, t) { return !e || e.type !== "TSStringKeyword" ? !1 : t == null || (0, P.default)(e, t); } i(NI, "isTSStringKeyword"); function BI(e, t) { return !e || e.type !== "TSSymbolKeyword" ? !1 : t == null || (0, P.default)(e, t); } i(BI, "isTSSymbolKeyword"); function kI(e, t) { return !e || e.type !== "TSUndefinedKeyword" ? !1 : t == null || (0, P.default)(e, t); } i(kI, "isTSUndefinedKeyword"); function FI(e, t) { return !e || e.type !== "TSUnknownKeyword" ? !1 : t == null || (0, P.default)(e, t); } i(FI, "isTSUnknownKeyword"); function LI(e, t) { return !e || e.type !== "TSVoidKeyword" ? !1 : t == null || (0, P.default)(e, t); } i(LI, "isTSVoidKeyword"); function jI(e, t) { return !e || e.type !== "TSThisType" ? !1 : t == null || (0, P.default)(e, t); } i(jI, "isTSThisType"); function MI(e, t) { return !e || e.type !== "TSFunctionType" ? !1 : t == null || (0, P.default)(e, t); } i(MI, "isTSFunctionType"); function RI(e, t) { return !e || e.type !== "TSConstructorType" ? !1 : t == null || (0, P.default)(e, t); } i(RI, "isTSConstructorType"); function qI(e, t) { return !e || e.type !== "TSTypeReference" ? !1 : t == null || (0, P.default)(e, t); } i(qI, "isTSTypeReference"); function UI(e, t) { return !e || e.type !== "TSTypePredicate" ? !1 : t == null || (0, P.default)(e, t); } i(UI, "isTSTypePredicate"); function $I(e, t) { return !e || e.type !== "TSTypeQuery" ? !1 : t == null || (0, P.default)(e, t); } i($I, "isTSTypeQuery"); function VI(e, t) { return !e || e.type !== "TSTypeLiteral" ? !1 : t == null || (0, P.default)(e, t); } i(VI, "isTSTypeLiteral"); function KI(e, t) { return !e || e.type !== "TSArrayType" ? !1 : t == null || (0, P.default)(e, t); } i(KI, "isTSArrayType"); function WI(e, t) { return !e || e.type !== "TSTupleType" ? !1 : t == null || (0, P.default)(e, t); } i(WI, "isTSTupleType"); function YI(e, t) { return !e || e.type !== "TSOptionalType" ? !1 : t == null || (0, P.default)(e, t); } i(YI, "isTSOptionalType"); function HI(e, t) { return !e || e.type !== "TSRestType" ? !1 : t == null || (0, P.default)(e, t); } i(HI, "isTSRestType"); function JI(e, t) { return !e || e.type !== "TSNamedTupleMember" ? !1 : t == null || (0, P.default)(e, t); } i(JI, "isTSNamedTupleMember"); function GI(e, t) { return !e || e.type !== "TSUnionType" ? !1 : t == null || (0, P.default)(e, t); } i(GI, "isTSUnionType"); function XI(e, t) { return !e || e.type !== "TSIntersectionType" ? !1 : t == null || (0, P.default)(e, t); } i(XI, "isTSIntersectionType"); function zI(e, t) { return !e || e.type !== "TSConditionalType" ? !1 : t == null || (0, P.default)(e, t); } i(zI, "isTSConditionalType"); function QI(e, t) { return !e || e.type !== "TSInferType" ? !1 : t == null || (0, P.default)(e, t); } i(QI, "isTSInferType"); function ZI(e, t) { return !e || e.type !== "TSParenthesizedType" ? !1 : t == null || (0, P.default)(e, t); } i(ZI, "isTSParenthesizedType"); function e9(e, t) { return !e || e.type !== "TSTypeOperator" ? !1 : t == null || (0, P.default)(e, t); } i(e9, "isTSTypeOperator"); function t9(e, t) { return !e || e.type !== "TSIndexedAccessType" ? !1 : t == null || (0, P.default)(e, t); } i(t9, "isTSIndexedAccessType"); function r9(e, t) { return !e || e.type !== "TSMappedType" ? !1 : t == null || (0, P.default)(e, t); } i(r9, "isTSMappedType"); function s9(e, t) { return !e || e.type !== "TSTemplateLiteralType" ? !1 : t == null || (0, P.default)(e, t); } i(s9, "isTSTemplateLiteralType"); function n9(e, t) { return !e || e.type !== "TSLiteralType" ? !1 : t == null || (0, P.default)(e, t); } i(n9, "isTSLiteralType"); function i9(e, t) { return !e || e.type !== "TSExpressionWithTypeArguments" ? !1 : t == null || (0, P.default)(e, t); } i(i9, "isTSExpressionWithTypeArguments"); function a9(e, t) { return !e || e.type !== "TSInterfaceDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(a9, "isTSInterfaceDeclaration"); function o9(e, t) { return !e || e.type !== "TSInterfaceBody" ? !1 : t == null || (0, P.default)(e, t); } i(o9, "isTSInterfaceBody"); function l9(e, t) { return !e || e.type !== "TSTypeAliasDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(l9, "isTSTypeAliasDeclaration"); function u9(e, t) { return !e || e.type !== "TSInstantiationExpression" ? !1 : t == null || (0, P.default)(e, t); } i(u9, "isTSInstantiationExpression"); function c9(e, t) { return !e || e.type !== "TSAsExpression" ? !1 : t == null || (0, P.default)(e, t); } i(c9, "isTSAsExpression"); function p9(e, t) { return !e || e.type !== "TSSatisfiesExpression" ? !1 : t == null || (0, P.default)(e, t); } i(p9, "isTSSatisfiesExpression"); function f9(e, t) { return !e || e.type !== "TSTypeAssertion" ? !1 : t == null || (0, P.default)(e, t); } i(f9, "isTSTypeAssertion"); function d9(e, t) { return !e || e.type !== "TSEnumBody" ? !1 : t == null || (0, P.default)(e, t); } i(d9, "isTSEnumBody"); function h9(e, t) { return !e || e.type !== "TSEnumDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(h9, "isTSEnumDeclaration"); function m9(e, t) { return !e || e.type !== "TSEnumMember" ? !1 : t == null || (0, P.default)(e, t); } i(m9, "isTSEnumMember"); function y9(e, t) { return !e || e.type !== "TSModuleDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(y9, "isTSModuleDeclaration"); function b9(e, t) { return !e || e.type !== "TSModuleBlock" ? !1 : t == null || (0, P.default)(e, t); } i(b9, "isTSModuleBlock"); function g9(e, t) { return !e || e.type !== "TSImportType" ? !1 : t == null || (0, P.default)(e, t); } i(g9, "isTSImportType"); function T9(e, t) { return !e || e.type !== "TSImportEqualsDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(T9, "isTSImportEqualsDeclaration"); function x9(e, t) { return !e || e.type !== "TSExternalModuleReference" ? !1 : t == null || (0, P.default)(e, t); } i(x9, "isTSExternalModuleReference"); function E9(e, t) { return !e || e.type !== "TSNonNullExpression" ? !1 : t == null || (0, P.default)(e, t); } i(E9, "isTSNonNullExpression"); function S9(e, t) { return !e || e.type !== "TSExportAssignment" ? !1 : t == null || (0, P.default)(e, t); } i(S9, "isTSExportAssignment"); function v9(e, t) { return !e || e.type !== "TSNamespaceExportDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(v9, "isTSNamespaceExportDeclaration"); function P9(e, t) { return !e || e.type !== "TSTypeAnnotation" ? !1 : t == null || (0, P.default)(e, t); } i(P9, "isTSTypeAnnotation"); function A9(e, t) { return !e || e.type !== "TSTypeParameterInstantiation" ? !1 : t == null || (0, P.default)(e, t); } i(A9, "isTSTypeParameterInstantiation"); function C9(e, t) { return !e || e.type !== "TSTypeParameterDeclaration" ? !1 : t == null || (0, P.default)(e, t); } i(C9, "isTSTypeParameterDeclaration"); function w9(e, t) { return !e || e.type !== "TSTypeParameter" ? !1 : t == null || (0, P.default)(e, t); } i(w9, "isTSTypeParameter"); function D9(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, P.default)(e, t); } i(D9, "isStandardized"); function _9(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, P.default)(e, t); } i(_9, "isExpression"); function I9(e, t) { if (!e) return !1; switch (e.type) { case "BinaryExpression": case "LogicalExpression": break; default: return !1; } return t == null || (0, P.default)(e, t); } i(I9, "isBinary"); function O9(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, P.default)(e, t); } i(O9, "isScopable"); function N9(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, P.default)(e, t); } i(N9, "isBlockParent"); function B9(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, P.default)(e, t); } i(B9, "isBlock"); function k9(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, P.default)(e, t); } i(k9, "isStatement"); function F9(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, P.default)(e, t); } i(F9, "isTerminatorless"); function L9(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, P.default)(e, t); } i(L9, "isCompletionStatement"); function j9(e, t) { if (!e) return !1; switch (e.type) { case "ConditionalExpression": case "IfStatement": break; default: return !1; } return t == null || (0, P.default)(e, t); } i(j9, "isConditional"); function M9(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, P.default)(e, t); } i(M9, "isLoop"); function R9(e, t) { if (!e) return !1; switch (e.type) { case "DoWhileStatement": case "WhileStatement": break; default: return !1; } return t == null || (0, P.default)(e, t); } i(R9, "isWhile"); function q9(e, t) { if (!e) return !1; switch (e.type) { case "ExpressionStatement": case "ParenthesizedExpression": case "TypeCastExpression": break; default: return !1; } return t == null || (0, P.default)(e, t); } i(q9, "isExpressionWrapper"); function U9(e, t) { if (!e) return !1; switch (e.type) { case "ForInStatement": case "ForStatement": case "ForOfStatement": break; default: return !1; } return t == null || (0, P.default)(e, t); } i(U9, "isFor"); function $9(e, t) { if (!e) return !1; switch (e.type) { case "ForInStatement": case "ForOfStatement": break; default: return !1; } return t == null || (0, P.default)(e, t); } i($9, "isForXStatement"); function V9(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, P.default)(e, t); } i(V9, "isFunction"); function K9(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, P.default)(e, t); } i(K9, "isFunctionParent"); function W9(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, P.default)(e, t); } i(W9, "isPureish"); function Y9(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, P.default)(e, t); } i(Y9, "isDeclaration"); function H9(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, P.default)(e, t); } i(H9, "isFunctionParameter"); function J9(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, P.default)(e, t); } i(J9, "isPatternLike"); function G9(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, P.default)(e, t); } i(G9, "isLVal"); function X9(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, P.default)(e, t); } i(X9, "isTSEntityName"); function z9(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, P.default)(e, t); } i(z9, "isLiteral"); function Q9(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, P.default)(e, t); } i(Q9, "isImmutable"); function Z9(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, P.default)(e, t); } i(Z9, "isUserWhitespacable"); function eO(e, t) { if (!e) return !1; switch (e.type) { case "ObjectMethod": case "ClassMethod": case "ClassPrivateMethod": break; default: return !1; } return t == null || (0, P.default)(e, t); } i(eO, "isMethod"); function tO(e, t) { if (!e) return !1; switch (e.type) { case "ObjectMethod": case "ObjectProperty": break; default: return !1; } return t == null || (0, P.default)(e, t); } i(tO, "isObjectMember"); function rO(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, P.default)(e, t); } i(rO, "isProperty"); function sO(e, t) { if (!e) return !1; switch (e.type) { case "UnaryExpression": case "SpreadElement": break; default: return !1; } return t == null || (0, P.default)(e, t); } i(sO, "isUnaryLike"); function nO(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, P.default)(e, t); } i(nO, "isPattern"); function iO(e, t) { if (!e) return !1; switch (e.type) { case "ClassExpression": case "ClassDeclaration": break; default: return !1; } return t == null || (0, P.default)(e, t); } i(iO, "isClass"); function Qb(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, P.default)(e, t); } i(Qb, "isImportOrExportDeclaration"); function aO(e, t) { if (!e) return !1; switch (e.type) { case "ExportAllDeclaration": case "ExportDefaultDeclaration": case "ExportNamedDeclaration": break; default: return !1; } return t == null || (0, P.default)(e, t); } i(aO, "isExportDeclaration"); function oO(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, P.default)(e, t); } i(oO, "isModuleSpecifier"); function lO(e, t) { if (!e) return !1; switch (e.type) { case "ClassAccessorProperty": break; default: return !1; } return t == null || (0, P.default)(e, t); } i(lO, "isAccessor"); function uO(e, t) { if (!e) return !1; switch (e.type) { case "ClassPrivateProperty": case "ClassPrivateMethod": case "PrivateName": break; default: return !1; } return t == null || (0, P.default)(e, t); } i(uO, "isPrivate"); function cO(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, P.default)(e, t); } i(cO, "isFlow"); function pO(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, P.default)(e, t); } i(pO, "isFlowType"); function fO(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, P.default)(e, t); } i(fO, "isFlowBaseAnnotation"); function dO(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, P.default)(e, t); } i(dO, "isFlowDeclaration"); function hO(e, t) { if (!e) return !1; switch (e.type) { case "DeclaredPredicate": case "InferredPredicate": break; default: return !1; } return t == null || (0, P.default)(e, t); } i(hO, "isFlowPredicate"); function mO(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, P.default)(e, t); } i(mO, "isEnumBody"); function yO(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, P.default)(e, t); } i(yO, "isEnumMember"); function bO(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, P.default)(e, t); } i(bO, "isJSX"); function gO(e, t) { if (!e) return !1; switch (e.type) { case "Noop": case "Placeholder": case "V8IntrinsicIdentifier": break; default: return !1; } return t == null || (0, P.default)(e, t); } i(gO, "isMiscellaneous"); function TO(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, P.default)(e, t); } i(TO, "isTypeScript"); function xO(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, P.default)(e, t); } i(xO, "isTSTypeElement"); function EO(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, P.default)(e, t); } i(EO, "isTSType"); function SO(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, P.default)(e, t); } i(SO, "isTSBaseType"); function vO(e, t) { return (0, Ca.default)("isNumberLiteral", "isNumericLiteral"), !e || e.type !== "NumberLiteral" ? !1 : t == null || (0, P.default)(e, t); } i(vO, "isNumberLiteral"); function PO(e, t) { return (0, Ca.default)("isRegexLiteral", "isRegExpLiteral"), !e || e.type !== "RegexLiteral" ? !1 : t == null || (0, P.default)(e, t); } i(PO, "isRegexLiteral"); function AO(e, t) { return (0, Ca.default)("isRestProperty", "isRestElement"), !e || e.type !== "RestProperty" ? !1 : t == null || (0, P.default)(e, t); } i(AO, "isRestProperty"); function CO(e, t) { return (0, Ca.default)("isSpreadProperty", "isSpreadElement"), !e || e.type !== "SpreadProperty" ? !1 : t == null || (0, P.default)(e, t); } i(CO, "isSpreadProperty"); function wO(e, t) { return (0, Ca.default)("isModuleDeclaration", "isImportOrExportDeclaration"), Qb(e, t); } i(wO, "isModuleDeclaration"); }); // ../node_modules/@babel/types/lib/validators/matchesPattern.js var uf = w((lf) => { "use strict"; Object.defineProperty(lf, "__esModule", { value: !0 }); lf.default = DO; var vn = Xe(); function Zb(e) { return (0, vn.isMemberExpression)(e) || (0, vn.isMetaProperty)(e); } i(Zb, "isMemberExpressionLike"); function DO(e, t, r) { if (!Zb(e)) return !1; let s = Array.isArray(t) ? t : t.split("."), n = [], a; for (a = e; Zb(a); a = (o = a.object) != null ? o : a.meta) { var o; n.push(a.property); } if (n.push(a), n.length < s.length || !r && n.length > s.length) return !1; for (let l = 0, u = n.length - 1; l < s.length; l++, u--) { let c = n[u], p; if ((0, vn.isIdentifier)(c)) p = c.name; else if ((0, vn.isStringLiteral)(c)) p = c.value; else if ((0, vn.isThisExpression)(c)) p = "this"; else if ((0, vn.isSuper)(c)) p = "super"; else if ((0, vn.isPrivateName)(c)) p = "#" + c.id.name; else return !1; if (s[l] !== p) return !1; } return !0; } i(DO, "matchesPattern"); }); // ../node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js var pf = w((cf) => { "use strict"; Object.defineProperty(cf, "__esModule", { value: !0 }); cf.default = IO; var _O = uf(); function IO(e, t) { let r = e.split("."); return (s) => (0, _O.default)(s, r, t); } i(IO, "buildMatchMemberExpression"); }); // ../node_modules/@babel/types/lib/validators/react/isReactComponent.js var eg = w((bl) => { "use strict"; Object.defineProperty(bl, "__esModule", { value: !0 }); bl.default = void 0; var OO = pf(), NO = (0, OO.default)("React.Component"), pTe = bl.default = NO; }); // ../node_modules/@babel/types/lib/validators/react/isCompatTag.js var tg = w((ff) => { "use strict"; Object.defineProperty(ff, "__esModule", { value: !0 }); ff.default = BO; function BO(e) { return !!e && /^[a-z]/.test(e); } i(BO, "isCompatTag"); }); // ../node_modules/@babel/types/lib/validators/isType.js var gl = w((df) => { "use strict"; Object.defineProperty(df, "__esModule", { value: !0 }); df.default = kO; var rg = fr(); function kO(e, t) { if (e === t) return !0; if (e == null || rg.ALIAS_KEYS[t]) return !1; let r = rg.FLIPPED_ALIAS_KEYS[t]; return !!(r != null && r.includes(e)); } i(kO, "isType"); }); // ../node_modules/@babel/types/lib/validators/isPlaceholderType.js var mf = w((hf) => { "use strict"; Object.defineProperty(hf, "__esModule", { value: !0 }); hf.default = LO; var FO = fr(); function LO(e, t) { if (e === t) return !0; let r = FO.PLACEHOLDERS_ALIAS[e]; return !!(r != null && r.includes(t)); } i(LO, "isPlaceholderType"); }); // ../node_modules/@babel/types/lib/validators/is.js var mi = w((yf) => { "use strict"; Object.defineProperty(yf, "__esModule", { value: !0 }); yf.default = UO; var jO = yl(), MO = gl(), RO = mf(), qO = fr(); function UO(e, t, r) { return t ? (0, MO.default)(t.type, e) ? r === void 0 ? !0 : (0, jO.default)(t, r) : !r && t.type === "Placeholder" && e in qO.FLIPPED_ALIAS_KEYS ? (0, RO.default)(t.expectedNode, e) : !1 : !1; } i(UO, "is"); }); // ../node_modules/@babel/helper-validator-identifier/lib/identifier.js var og = w((wa) => { "use strict"; Object.defineProperty(wa, "__esModule", { value: !0 }); wa.isIdentifierChar = ag; wa.isIdentifierName = WO; wa.isIdentifierStart = ig; var gf = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993\ -\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92\ -\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\ \u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00\ -\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\ \u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\ \uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", sg = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\ \u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\ \u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0\ -\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00\ -\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65", $O = new RegExp("[" + gf + "]"), VO = new RegExp("[" + gf + sg + "]"); gf = sg = null; var ng = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 7, 25, 39, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489], KO = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; function bf(e, t) { let r = 65536; for (let s = 0, n = t.length; s < n; s += 2) { if (r += t[s], r > e) return !1; if (r += t[s + 1], r >= e) return !0; } return !1; } i(bf, "isInAstralSet"); function ig(e) { return e < 65 ? e === 36 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && $O.test(String.fromCharCode(e)) : bf(e, ng); } i(ig, "isIdentifierStart"); function ag(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 && VO.test( String.fromCharCode(e)) : bf(e, ng) || bf(e, KO); } i(ag, "isIdentifierChar"); function WO(e) { let t = !0; for (let r = 0; r < e.length; r++) { let s = e.charCodeAt(r); if ((s & 64512) === 55296 && r + 1 < e.length) { let n = e.charCodeAt(++r); (n & 64512) === 56320 && (s = 65536 + ((s & 1023) << 10) + (n & 1023)); } if (t) { if (t = !1, !ig(s)) return !1; } else if (!ag(s)) return !1; } return !t; } i(WO, "isIdentifierName"); }); // ../node_modules/@babel/helper-validator-identifier/lib/keyword.js var pg = w((Pn) => { "use strict"; Object.defineProperty(Pn, "__esModule", { value: !0 }); Pn.isKeyword = XO; Pn.isReservedWord = lg; Pn.isStrictBindOnlyReservedWord = cg; Pn.isStrictBindReservedWord = GO; Pn.isStrictReservedWord = ug; var Tf = { keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "swit\ ch", "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"] }, YO = new Set(Tf.keyword), HO = new Set(Tf.strict), JO = new Set(Tf.strictBind); function lg(e, t) { return t && e === "await" || e === "enum"; } i(lg, "isReservedWord"); function ug(e, t) { return lg(e, t) || HO.has(e); } i(ug, "isStrictReservedWord"); function cg(e) { return JO.has(e); } i(cg, "isStrictBindOnlyReservedWord"); function GO(e, t) { return ug(e, t) || cg(e); } i(GO, "isStrictBindReservedWord"); function XO(e) { return YO.has(e); } i(XO, "isKeyword"); }); // ../node_modules/@babel/helper-validator-identifier/lib/index.js var yi = w((Zr) => { "use strict"; Object.defineProperty(Zr, "__esModule", { value: !0 }); Object.defineProperty(Zr, "isIdentifierChar", { enumerable: !0, get: /* @__PURE__ */ i(function() { return xf.isIdentifierChar; }, "get") }); Object.defineProperty(Zr, "isIdentifierName", { enumerable: !0, get: /* @__PURE__ */ i(function() { return xf.isIdentifierName; }, "get") }); Object.defineProperty(Zr, "isIdentifierStart", { enumerable: !0, get: /* @__PURE__ */ i(function() { return xf.isIdentifierStart; }, "get") }); Object.defineProperty(Zr, "isKeyword", { enumerable: !0, get: /* @__PURE__ */ i(function() { return Da.isKeyword; }, "get") }); Object.defineProperty(Zr, "isReservedWord", { enumerable: !0, get: /* @__PURE__ */ i(function() { return Da.isReservedWord; }, "get") }); Object.defineProperty(Zr, "isStrictBindOnlyReservedWord", { enumerable: !0, get: /* @__PURE__ */ i(function() { return Da.isStrictBindOnlyReservedWord; }, "get") }); Object.defineProperty(Zr, "isStrictBindReservedWord", { enumerable: !0, get: /* @__PURE__ */ i(function() { return Da.isStrictBindReservedWord; }, "get") }); Object.defineProperty(Zr, "isStrictReservedWord", { enumerable: !0, get: /* @__PURE__ */ i(function() { return Da.isStrictReservedWord; }, "get") }); var xf = og(), Da = pg(); }); // ../node_modules/@babel/types/lib/validators/isValidIdentifier.js var bi = w((Sf) => { "use strict"; Object.defineProperty(Sf, "__esModule", { value: !0 }); Sf.default = zO; var Ef = yi(); function zO(e, t = !0) { return typeof e != "string" || t && ((0, Ef.isKeyword)(e) || (0, Ef.isStrictReservedWord)(e, !0)) ? !1 : (0, Ef.isIdentifierName)(e); } i(zO, "isValidIdentifier"); }); // ../node_modules/@babel/helper-string-parser/lib/index.js var mg = w((_a) => { "use strict"; Object.defineProperty(_a, "__esModule", { value: !0 }); _a.readCodePoint = hg; _a.readInt = dg; _a.readStringContents = ZO; var QO = /* @__PURE__ */ i(function(t) { return t >= 48 && t <= 57; }, "isDigit"), fg = { decBinOct: /* @__PURE__ */ new Set([46, 66, 69, 79, 95, 98, 101, 111]), hex: /* @__PURE__ */ new Set([46, 88, 95, 120]) }, Tl = { bin: /* @__PURE__ */ i((e) => e === 48 || e === 49, "bin"), oct: /* @__PURE__ */ i((e) => e >= 48 && e <= 55, "oct"), dec: /* @__PURE__ */ i((e) => e >= 48 && e <= 57, "dec"), hex: /* @__PURE__ */ i((e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, "hex") }; function ZO(e, t, r, s, n, a) { let o = r, l = s, u = n, c = "", p = null, f = r, { length: h } = t; for (; ; ) { if (r >= h) { a.unterminated(o, l, u), c += t.slice(f, r); break; } let b = t.charCodeAt(r); if (eN(e, b, t, r)) { c += t.slice(f, r); break; } if (b === 92) { c += t.slice(f, r); let T = tN(t, r, s, n, e === "template", a); T.ch === null && !p ? p = { pos: r, lineStart: s, curLine: n } : c += T.ch, { pos: r, lineStart: s, curLine: n } = T, f = r; } else b === 8232 || b === 8233 ? (++r, ++n, s = r) : b === 10 || b === 13 ? e === "template" ? (c += t.slice(f, r) + ` `, ++r, b === 13 && t.charCodeAt(r) === 10 && ++r, ++n, f = s = r) : a.unterminated(o, l, u) : ++r; } return { pos: r, str: c, firstInvalidLoc: p, lineStart: s, curLine: n, containsInvalid: !!p }; } i(ZO, "readStringContents"); function eN(e, t, r, s) { return e === "template" ? t === 96 || t === 36 && r.charCodeAt(s + 1) === 123 : t === (e === "double" ? 34 : 39); } i(eN, "isStringEnd"); function tN(e, t, r, s, n, a) { let o = !n; t++; let l = /* @__PURE__ */ i((c) => ({ pos: t, ch: c, lineStart: r, curLine: s }), "res"), u = e.charCodeAt(t++); switch (u) { case 110: return l(` `); case 114: return l("\r"); case 120: { let c; return { code: c, pos: t } = vf(e, t, r, s, 2, !1, o, a), l(c === null ? null : String.fromCharCode(c)); } case 117: { let c; return { code: c, pos: t } = hg(e, t, r, s, o, a), l(c === null ? null : String.fromCodePoint(c)); } case 116: return l(" "); case 98: return l("\b"); case 118: return l("\v"); case 102: return l("\f"); case 13: e.charCodeAt(t) === 10 && ++t; case 10: r = t, ++s; case 8232: case 8233: return l(""); case 56: case 57: if (n) return l(null); a.strictNumericEscape(t - 1, r, s); default: if (u >= 48 && u <= 55) { let c = t - 1, f = /^[0-7]+/.exec(e.slice(c, t + 2))[0], h = parseInt(f, 8); h > 255 && (f = f.slice(0, -1), h = parseInt(f, 8)), t += f.length - 1; let b = e.charCodeAt(t); if (f !== "0" || b === 56 || b === 57) { if (n) return l(null); a.strictNumericEscape(c, r, s); } return l(String.fromCharCode(h)); } return l(String.fromCharCode(u)); } } i(tN, "readEscapedChar"); function vf(e, t, r, s, n, a, o, l) { let u = t, c; return { n: c, pos: t } = dg(e, t, r, s, 16, n, a, !1, l, !o), c === null && (o ? l.invalidEscapeSequence(u, r, s) : t = u - 1), { code: c, pos: t }; } i(vf, "readHexChar"); function dg(e, t, r, s, n, a, o, l, u, c) { let p = t, f = n === 16 ? fg.hex : fg.decBinOct, h = n === 16 ? Tl.hex : n === 10 ? Tl.dec : n === 8 ? Tl.oct : Tl.bin, b = !1, T = 0; for (let d = 0, g = a ?? 1 / 0; d < g; ++d) { let D = e.charCodeAt(t), _; if (D === 95 && l !== "bail") { let O = e.charCodeAt(t - 1), k = e.charCodeAt(t + 1); if (l) { if (Number.isNaN(k) || !h(k) || f.has(O) || f.has(k)) { if (c) return { n: null, pos: t }; u.unexpectedNumericSeparator(t, r, s); } } else { if (c) return { n: null, pos: t }; u.numericSeparatorInEscapeSequence(t, r, s); } ++t; continue; } if (D >= 97 ? _ = D - 97 + 10 : D >= 65 ? _ = D - 65 + 10 : QO(D) ? _ = D - 48 : _ = 1 / 0, _ >= n) { if (_ <= 9 && c) return { n: null, pos: t }; if (_ <= 9 && u.invalidDigit(t, r, s, n)) _ = 0; else if (o) _ = 0, b = !0; else break; } ++t, T = T * n + _; } return t === p || a != null && t - p !== a || b ? { n: null, pos: t } : { n: T, pos: t }; } i(dg, "readInt"); function hg(e, t, r, s, n, a) { let o = e.charCodeAt(t), l; if (o === 123) { if (++t, { code: l, pos: t } = vf(e, t, r, s, e.indexOf("}", t) - t, !0, n, a), ++t, l !== null && l > 1114111) if (n) a.invalidCodePoint(t, r, s); else return { code: null, pos: t }; } else ({ code: l, pos: t } = vf(e, t, r, s, 4, !1, n, a)); return { code: l, pos: t }; } i(hg, "readCodePoint"); }); // ../node_modules/@babel/types/lib/constants/index.js var gi = w((me) => { "use strict"; Object.defineProperty(me, "__esModule", { value: !0 }); me.UPDATE_OPERATORS = me.UNARY_OPERATORS = me.STRING_UNARY_OPERATORS = me.STATEMENT_OR_BLOCK_KEYS = me.NUMBER_UNARY_OPERATORS = me.NUMBER_BINARY_OPERATORS = me.LOGICAL_OPERATORS = me.INHERIT_KEYS = me.FOR_INIT_KEYS = me.FLATTENABLE_KEYS = me.EQUALITY_BINARY_OPERATORS = me.COMPARISON_BINARY_OPERATORS = me.COMMENT_KEYS = me.BOOLEAN_UNARY_OPERATORS = me.BOOLEAN_NUMBER_BINARY_OPERATORS = me.BOOLEAN_BINARY_OPERATORS = me.BINARY_OPERATORS = me. ASSIGNMENT_OPERATORS = void 0; var OTe = me.STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"], NTe = me.FLATTENABLE_KEYS = ["body", "expressions"], BTe = me. FOR_INIT_KEYS = ["left", "init"], kTe = me.COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"], rN = me.LOGICAL_OPERATORS = ["||", "&&", "??"], FTe = me.UPDATE_OPERATORS = ["++", "--"], sN = me.BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="], nN = me.EQUALITY_BINARY_OPERATORS = ["==", "===", "!=", "!=="], iN = me.COMPARISON_BINARY_OPERATORS = [...nN, "in", "instanceof"], aN = me.BOOLEAN_BINARY_OPERATORS = [...iN, ...sN], yg = me.NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"], LTe = me.BINARY_OPERATORS = ["+", ...yg, ...aN, "|>"], jTe = me.ASSIGNMENT_OPERATORS = ["=", "+=", ...yg.map((e) => e + "="), ...rN.map((e) => e + "=")], oN = me.BOOLEAN_UNARY_OPERATORS = ["delete", "!"], lN = me.NUMBER_UNARY_OPERATORS = ["+", "-", "~"], uN = me.STRING_UNARY_OPERATORS = ["typeof"], MTe = me.UNARY_OPERATORS = ["void", "throw", ...oN, ...lN, ...uN], RTe = me.INHERIT_KEYS = { optional: ["typeAnnotation", "typeParameters", "returnType"], force: ["start", "loc", "end"] }; me.BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped"), me.NOT_LOCAL_BINDING = Symbol.for("should not be considered a local bi\ nding"); }); // ../node_modules/@babel/types/lib/definitions/utils.js var es = w((xe) => { "use strict"; Object.defineProperty(xe, "__esModule", { value: !0 }); xe.allExpandedTypes = xe.VISITOR_KEYS = xe.NODE_UNION_SHAPES__PRIVATE = xe.NODE_PARENT_VALIDATIONS = xe.NODE_FIELDS = xe.FLIPPED_ALIAS_KEYS = xe.DEPRECATED_KEYS = xe.BUILDER_KEYS = xe.ALIAS_KEYS = void 0; xe.arrayOf = gg; xe.arrayOfType = Tg; xe.assertEach = xg; xe.assertNodeOrValueType = vN; xe.assertNodeType = El; xe.assertOneOf = EN; xe.assertOptionalChainStart = AN; xe.assertShape = PN; xe.assertValueType = wf; xe.chain = Eg; xe.default = Sg; xe.defineAliasedType = DN; xe.validate = Cf; xe.validateArrayOfType = xN; xe.validateOptional = gN; xe.validateOptionalType = TN; xe.validateType = bN; var bg = mi(), Ia = Sl(), cN = xe.VISITOR_KEYS = {}, pN = xe.ALIAS_KEYS = {}, Pf = xe.FLIPPED_ALIAS_KEYS = {}, fN = xe.NODE_FIELDS = {}, dN = xe. BUILDER_KEYS = {}, hN = xe.DEPRECATED_KEYS = {}, mN = xe.NODE_PARENT_VALIDATIONS = {}, yN = xe.NODE_UNION_SHAPES__PRIVATE = {}; function xl(e) { return Array.isArray(e) ? "array" : e === null ? "null" : typeof e; } i(xl, "getType"); function Cf(e) { return { validate: e }; } i(Cf, "validate"); function bN(...e) { return Cf(El(...e)); } i(bN, "validateType"); function gN(e) { return { validate: e, optional: !0 }; } i(gN, "validateOptional"); function TN(...e) { return { validate: El(...e), optional: !0 }; } i(TN, "validateOptionalType"); function gg(e) { return Eg(wf("array"), xg(e)); } i(gg, "arrayOf"); function Tg(...e) { return gg(El(...e)); } i(Tg, "arrayOfType"); function xN(...e) { return Cf(Tg(...e)); } i(xN, "validateArrayOfType"); function xg(e) { let t = process.env.BABEL_TYPES_8_BREAKING ? Ia.validateChild : () => { }; function r(s, n, a) { if (!Array.isArray(a)) return; let o = 0, l = { toString() { return `${n}[${o}]`; } }; for (; o < a.length; o++) { let u = a[o]; e(s, l, u), t(s, l, u); } } return i(r, "validator"), r.each = e, r; } i(xg, "assertEach"); function EN(...e) { function t(r, s, n) { if (!e.includes(n)) throw new TypeError(`Property ${s} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(n)}`); } return i(t, "validate"), t.oneOf = e, t; } i(EN, "assertOneOf"); var SN = xe.allExpandedTypes = []; function El(...e) { let t = /* @__PURE__ */ new Set(); SN.push({ types: e, set: t }); function r(s, n, a) { let o = a?.type; if (o != null) { if (t.has(o)) { (0, Ia.validateChild)(s, n, a); return; } if (o === "Placeholder") { for (let l of e) if ((0, bg.default)(l, a)) { (0, Ia.validateChild)(s, n, a); return; } } } throw new TypeError(`Property ${n} of ${s.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(o)}`); } return i(r, "validate"), r.oneOfNodeTypes = e, r; } i(El, "assertNodeType"); function vN(...e) { function t(r, s, n) { let a = xl(n); for (let o of e) if (a === o || (0, bg.default)(o, n)) { (0, Ia.validateChild)(r, s, n); return; } throw new TypeError(`Property ${s} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(n?. type)}`); } return i(t, "validate"), t.oneOfNodeOrValueTypes = e, t; } i(vN, "assertNodeOrValueType"); function wf(e) { function t(r, s, n) { if (xl(n) !== e) throw new TypeError(`Property ${s} expected type of ${e} but got ${xl(n)}`); } return i(t, "validate"), t.type = e, t; } i(wf, "assertValueType"); function PN(e) { let t = Object.keys(e); function r(s, n, a) { let o = []; for (let l of t) try { (0, Ia.validateField)(s, l, a[l], e[l]); } catch (u) { if (u instanceof TypeError) { o.push(u.message); continue; } throw u; } if (o.length) throw new TypeError(`Property ${n} of ${s.type} expected to have the following: ${o.join(` `)}`); } return i(r, "validate"), r.shapeOf = e, r; } i(PN, "assertShape"); function AN() { function e(t) { var r; let s = t; for (; t; ) { let { type: n } = s; if (n === "OptionalCallExpression") { if (s.optional) return; s = s.callee; continue; } if (n === "OptionalMemberExpression") { if (s.optional) return; s = s.object; continue; } break; } throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chai\ n from ${(r = s) == null ? void 0 : r.type}`); } return i(e, "validate"), e; } i(AN, "assertOptionalChainStart"); function Eg(...e) { function t(...r) { for (let s of e) s(...r); } if (i(t, "validate"), t.chainOf = e, e.length >= 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; } i(Eg, "chain"); var CN = /* @__PURE__ */ new Set(["aliases", "builder", "deprecatedAlias", "fields", "inherits", "visitor", "validate", "unionShape"]), wN = /* @__PURE__ */ new Set( ["default", "optional", "deprecated", "validate"]), Af = {}; function DN(...e) { return (t, r = {}) => { let s = r.aliases; if (!s) { var n; r.inherits && (s = (n = Af[r.inherits].aliases) == null ? void 0 : n.slice()), s ?? (s = []), r.aliases = s; } let a = e.filter((o) => !s.includes(o)); s.unshift(...a), Sg(t, r); }; } i(DN, "defineAliasedType"); function Sg(e, t = {}) { let r = t.inherits && Af[t.inherits] || {}, s = t.fields; if (!s && (s = {}, r.fields)) { let l = Object.getOwnPropertyNames(r.fields); for (let u of l) { let c = r.fields[u], p = c.default; if (Array.isArray(p) ? p.length > 0 : p && typeof p == "object") throw new Error("field defaults can only be primitives or empty arrays currently"); s[u] = { default: Array.isArray(p) ? [] : p, optional: c.optional, deprecated: c.deprecated, validate: c.validate }; } } let n = t.visitor || r.visitor || [], a = t.aliases || r.aliases || [], o = t.builder || r.builder || t.visitor || []; for (let l of Object.keys(t)) if (!CN.has(l)) throw new Error(`Unknown type option "${l}" on ${e}`); t.deprecatedAlias && (hN[t.deprecatedAlias] = e); for (let l of n.concat(o)) s[l] = s[l] || {}; for (let l of Object.keys(s)) { let u = s[l]; u.default !== void 0 && !o.includes(l) && (u.optional = !0), u.default === void 0 ? u.default = null : !u.validate && u.default != null && (u.validate = wf(xl(u.default))); for (let c of Object.keys(u)) if (!wN.has(c)) throw new Error(`Unknown field key "${c}" on ${e}.${l}`); } cN[e] = t.visitor = n, dN[e] = t.builder = o, fN[e] = t.fields = s, pN[e] = t.aliases = a, a.forEach((l) => { Pf[l] = Pf[l] || [], Pf[l].push(e); }), t.validate && (mN[e] = t.validate), t.unionShape && (yN[e] = t.unionShape), Af[e] = t; } i(Sg, "defineType"); }); // ../node_modules/@babel/types/lib/definitions/core.js var Na = w((pt) => { "use strict"; Object.defineProperty(pt, "__esModule", { value: !0 }); pt.patternLikeCommon = pt.importAttributes = pt.functionTypeAnnotationCommon = pt.functionDeclarationCommon = pt.functionCommon = pt.classMethodOrPropertyUnionShapeCommon = pt.classMethodOrPropertyCommon = pt.classMethodOrDeclareMethodCommon = void 0; var qt = mi(), _N = bi(), vg = yi(), IN = mg(), Ti = gi(), A = es(), Oa = /* @__PURE__ */ i((e = !1) => ({ unionShape: { discriminator: "computed", shapes: [{ name: "computed", value: [!0], properties: { key: { validate: (0, A.assertNodeType)("Expression") } } }, { name: "nonComputed", value: [!1], properties: { key: { validate: e ? (0, A.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName") : (0, A.assertNodeType)( "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral") } } }] } }), "classMethodOrPropertyUnionShapeCommon"); pt.classMethodOrPropertyUnionShapeCommon = Oa; var W = (0, A.defineAliasedType)("Standardized"); W("ArrayExpression", { fields: { elements: { validate: (0, A.arrayOf)((0, A.assertNodeOrValueType)("null", "Expression", "SpreadElement")), default: process.env.BABEL_TYPES_8_BREAKING ? void 0 : [] } }, visitor: ["elements"], aliases: ["Expression"] }); W("AssignmentExpression", { fields: { operator: { validate: process.env.BABEL_TYPES_8_BREAKING ? Object.assign(function() { let e = (0, A.assertOneOf)(...Ti.ASSIGNMENT_OPERATORS), t = (0, A.assertOneOf)("="); return function(r, s, n) { ((0, qt.default)("Pattern", r.left) ? t : e)(r, s, n); }; }(), { oneOf: Ti.ASSIGNMENT_OPERATORS }) : (0, A.assertValueType)("string") }, left: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, A.assertNodeType)("Identifier", "MemberExpression", "OptionalMemberExpression", "\ ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, A.assertNodeType)( "LVal", "OptionalMemberExpression") }, right: { validate: (0, A.assertNodeType)("Expression") } }, builder: ["operator", "left", "right"], visitor: ["left", "right"], aliases: ["Expression"] }); W("BinaryExpression", { builder: ["operator", "left", "right"], fields: { operator: { validate: (0, A.assertOneOf)(...Ti.BINARY_OPERATORS) }, left: { validate: function() { let e = (0, A.assertNodeType)("Expression"), t = (0, A.assertNodeType)("Expression", "PrivateName"); return Object.assign(function(s, n, a) { (s.operator === "in" ? t : e)(s, n, a); }, { oneOfNodeTypes: ["Expression", "PrivateName"] }); }() }, right: { validate: (0, A.assertNodeType)("Expression") } }, visitor: ["left", "right"], aliases: ["Binary", "Expression"] }); W("InterpreterDirective", { builder: ["value"], fields: { value: { validate: (0, A.assertValueType)("string") } } }); W("Directive", { visitor: ["value"], fields: { value: { validate: (0, A.assertNodeType)("DirectiveLiteral") } } }); W("DirectiveLiteral", { builder: ["value"], fields: { value: { validate: (0, A.assertValueType)("string") } } }); W("BlockStatement", { builder: ["body", "directives"], visitor: ["directives", "body"], fields: { directives: { validate: (0, A.arrayOfType)("Directive"), default: [] }, body: (0, A.validateArrayOfType)("Statement") }, aliases: ["Scopable", "BlockParent", "Block", "Statement"] }); W("BreakStatement", { visitor: ["label"], fields: { label: { validate: (0, A.assertNodeType)("Identifier"), optional: !0 } }, aliases: ["Statement", "Terminatorless", "CompletionStatement"] }); W("CallExpression", { visitor: ["callee", "typeParameters", "typeArguments", "arguments"], builder: ["callee", "arguments"], aliases: ["Expression"], fields: Object.assign({ callee: { validate: (0, A.assertNodeType)("Expression", "Super", "V8IntrinsicIdentifier") }, arguments: (0, A.validateArrayOfType)("Expression", "SpreadElement", "ArgumentPlaceholder"), typeArguments: { validate: (0, A.assertNodeType)("TypeParameterInstantiation"), optional: !0 } }, process.env.BABEL_TYPES_8_BREAKING ? {} : { optional: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, typeParameters: { validate: (0, A.assertNodeType)("TSTypeParameterInstantiation"), optional: !0 } }) }); W("CatchClause", { visitor: ["param", "body"], fields: { param: { validate: (0, A.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern"), optional: !0 }, body: { validate: (0, A.assertNodeType)("BlockStatement") } }, aliases: ["Scopable", "BlockParent"] }); W("ConditionalExpression", { visitor: ["test", "consequent", "alternate"], fields: { test: { validate: (0, A.assertNodeType)("Expression") }, consequent: { validate: (0, A.assertNodeType)("Expression") }, alternate: { validate: (0, A.assertNodeType)("Expression") } }, aliases: ["Expression", "Conditional"] }); W("ContinueStatement", { visitor: ["label"], fields: { label: { validate: (0, A.assertNodeType)("Identifier"), optional: !0 } }, aliases: ["Statement", "Terminatorless", "CompletionStatement"] }); W("DebuggerStatement", { aliases: ["Statement"] }); W("DoWhileStatement", { builder: ["test", "body"], visitor: ["body", "test"], fields: { test: { validate: (0, A.assertNodeType)("Expression") }, body: { validate: (0, A.assertNodeType)("Statement") } }, aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"] }); W("EmptyStatement", { aliases: ["Statement"] }); W("ExpressionStatement", { visitor: ["expression"], fields: { expression: { validate: (0, A.assertNodeType)("Expression") } }, aliases: ["Statement", "ExpressionWrapper"] }); W("File", { builder: ["program", "comments", "tokens"], visitor: ["program"], fields: { program: { validate: (0, A.assertNodeType)("Program") }, comments: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, A.assertEach)((0, A.assertNodeType)("CommentBlock", "CommentLine")) : Object.assign( () => { }, { each: { oneOfNodeTypes: ["CommentBlock", "CommentLine"] } }), optional: !0 }, tokens: { validate: (0, A.assertEach)(Object.assign(() => { }, { type: "any" })), optional: !0 } } }); W("ForInStatement", { visitor: ["left", "right", "body"], aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"], fields: { left: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, A.assertNodeType)("VariableDeclaration", "Identifier", "MemberExpression", "Array\ Pattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, A.assertNodeType)("Var\ iableDeclaration", "LVal") }, right: { validate: (0, A.assertNodeType)("Expression") }, body: { validate: (0, A.assertNodeType)("Statement") } } }); W("ForStatement", { visitor: ["init", "test", "update", "body"], aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop"], fields: { init: { validate: (0, A.assertNodeType)("VariableDeclaration", "Expression"), optional: !0 }, test: { validate: (0, A.assertNodeType)("Expression"), optional: !0 }, update: { validate: (0, A.assertNodeType)("Expression"), optional: !0 }, body: { validate: (0, A.assertNodeType)("Statement") } } }); var xi = /* @__PURE__ */ i(() => ({ params: (0, A.validateArrayOfType)("FunctionParameter"), generator: { default: !1 }, async: { default: !1 } }), "functionCommon"); pt.functionCommon = xi; var An = /* @__PURE__ */ i(() => ({ returnType: { validate: (0, A.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, typeParameters: { validate: (0, A.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), optional: !0 } }), "functionTypeAnnotationCommon"); pt.functionTypeAnnotationCommon = An; var Pg = /* @__PURE__ */ i(() => Object.assign({}, xi(), { declare: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, id: { validate: (0, A.assertNodeType)("Identifier"), optional: !0 } }), "functionDeclarationCommon"); pt.functionDeclarationCommon = Pg; W("FunctionDeclaration", { builder: ["id", "params", "body", "generator", "async"], visitor: ["id", "typeParameters", "params", "predicate", "returnType", "body"], fields: Object.assign({}, Pg(), An(), { body: { validate: (0, A.assertNodeType)("BlockStatement") }, predicate: { validate: (0, A.assertNodeType)("DeclaredPredicate", "InferredPredicate"), optional: !0 } }), aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Statement", "Pureish", "Declaration"], validate: process.env.BABEL_TYPES_8_BREAKING ? function() { let e = (0, A.assertNodeType)("Identifier"); return function(t, r, s) { (0, qt.default)("ExportDefaultDeclaration", t) || e(s, "id", s.id); }; }() : void 0 }); W("FunctionExpression", { inherits: "FunctionDeclaration", aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"], fields: Object.assign({}, xi(), An(), { id: { validate: (0, A.assertNodeType)("Identifier"), optional: !0 }, body: { validate: (0, A.assertNodeType)("BlockStatement") }, predicate: { validate: (0, A.assertNodeType)("DeclaredPredicate", "InferredPredicate"), optional: !0 } }) }); var Ei = /* @__PURE__ */ i(() => ({ typeAnnotation: { validate: (0, A.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, optional: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, decorators: { validate: (0, A.arrayOfType)("Decorator"), optional: !0 } }), "patternLikeCommon"); pt.patternLikeCommon = Ei; W("Identifier", { builder: ["name"], visitor: ["typeAnnotation", "decorators"], aliases: ["Expression", "FunctionParameter", "PatternLike", "LVal", "TSEntityName"], fields: Object.assign({}, Ei(), { name: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, A.chain)((0, A.assertValueType)("string"), Object.assign(function(e, t, r) { if (!(0, _N.default)(r, !1)) throw new TypeError(`"${r}" is not a valid identifier name`); }, { type: "string" })) : (0, A.assertValueType)("string") } }), validate: process.env.BABEL_TYPES_8_BREAKING ? function(e, t, r) { let s = /\.(\w+)$/.exec(t.toString()); if (!s) return; let [, n] = s, a = { computed: !1 }; if (n === "property") { if ((0, qt.default)("MemberExpression", e, a) || (0, qt.default)("OptionalMemberExpression", e, a)) return; } else if (n === "key") { if ((0, qt.default)("Property", e, a) || (0, qt.default)("Method", e, a)) return; } else if (n === "exported") { if ((0, qt.default)("ExportSpecifier", e)) return; } else if (n === "imported") { if ((0, qt.default)("ImportSpecifier", e, { imported: r })) return; } else if (n === "meta" && (0, qt.default)("MetaProperty", e, { meta: r })) return; if (((0, vg.isKeyword)(r.name) || (0, vg.isReservedWord)(r.name, !1)) && r.name !== "this") throw new TypeError(`"${r.name}" is not a valid identifier`); } : void 0 }); W("IfStatement", { visitor: ["test", "consequent", "alternate"], aliases: ["Statement", "Conditional"], fields: { test: { validate: (0, A.assertNodeType)("Expression") }, consequent: { validate: (0, A.assertNodeType)("Statement") }, alternate: { optional: !0, validate: (0, A.assertNodeType)("Statement") } } }); W("LabeledStatement", { visitor: ["label", "body"], aliases: ["Statement"], fields: { label: { validate: (0, A.assertNodeType)("Identifier") }, body: { validate: (0, A.assertNodeType)("Statement") } } }); W("StringLiteral", { builder: ["value"], fields: { value: { validate: (0, A.assertValueType)("string") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); W("NumericLiteral", { builder: ["value"], deprecatedAlias: "NumberLiteral", fields: { value: { validate: (0, A.chain)((0, A.assertValueType)("number"), Object.assign(function(e, t, r) { if (1 / r < 0 || !Number.isFinite(r)) { let s = new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`); } }, { type: "number" })) } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); W("NullLiteral", { aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); W("BooleanLiteral", { builder: ["value"], fields: { value: { validate: (0, A.assertValueType)("boolean") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); W("RegExpLiteral", { builder: ["pattern", "flags"], deprecatedAlias: "RegexLiteral", aliases: ["Expression", "Pureish", "Literal"], fields: { pattern: { validate: (0, A.assertValueType)("string") }, flags: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, A.chain)((0, A.assertValueType)("string"), Object.assign(function(e, t, r) { let s = /[^dgimsuvy]/.exec(r); if (s) throw new TypeError(`"${s[0]}" is not a valid RegExp flag`); }, { type: "string" })) : (0, A.assertValueType)("string"), default: "" } } }); W("LogicalExpression", { builder: ["operator", "left", "right"], visitor: ["left", "right"], aliases: ["Binary", "Expression"], fields: { operator: { validate: (0, A.assertOneOf)(...Ti.LOGICAL_OPERATORS) }, left: { validate: (0, A.assertNodeType)("Expression") }, right: { validate: (0, A.assertNodeType)("Expression") } } }); W("MemberExpression", { builder: ["object", "property", "computed", ...process.env.BABEL_TYPES_8_BREAKING ? [] : ["optional"]], visitor: ["object", "property"], aliases: ["Expression", "LVal", "PatternLike"], unionShape: { discriminator: "computed", shapes: [{ name: "computed", value: [!0], properties: { property: { validate: (0, A.assertNodeType)("Expression") } } }, { name: "nonComputed", value: [!1], properties: { property: { validate: (0, A.assertNodeType)("Identifier", "PrivateName") } } }] }, fields: Object.assign({ object: { validate: (0, A.assertNodeType)("Expression", "Super") }, property: { validate: function() { let e = (0, A.assertNodeType)("Identifier", "PrivateName"), t = (0, A.assertNodeType)("Expression"), r = /* @__PURE__ */ i(function(s, n, a) { (s.computed ? t : e)(s, n, a); }, "validator"); return r.oneOfNodeTypes = ["Expression", "Identifier", "PrivateName"], r; }() }, computed: { default: !1 } }, process.env.BABEL_TYPES_8_BREAKING ? {} : { optional: { validate: (0, A.assertValueType)("boolean"), optional: !0 } }) }); W("NewExpression", { inherits: "CallExpression" }); W("Program", { visitor: ["directives", "body"], builder: ["body", "directives", "sourceType", "interpreter"], fields: { sourceType: { validate: (0, A.assertOneOf)("script", "module"), default: "script" }, interpreter: { validate: (0, A.assertNodeType)("InterpreterDirective"), default: null, optional: !0 }, directives: { validate: (0, A.arrayOfType)("Directive"), default: [] }, body: (0, A.validateArrayOfType)("Statement") }, aliases: ["Scopable", "BlockParent", "Block"] }); W("ObjectExpression", { visitor: ["properties"], aliases: ["Expression"], fields: { properties: (0, A.validateArrayOfType)("ObjectMethod", "ObjectProperty", "SpreadElement") } }); W("ObjectMethod", Object.assign({ builder: ["kind", "key", "params", "body", "computed", "generator", "async"], visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"] }, Oa(), { fields: Object.assign({}, xi(), An(), { kind: Object.assign({ validate: (0, A.assertOneOf)("method", "get", "set") }, process.env.BABEL_TYPES_8_BREAKING ? {} : { default: "method" }), computed: { default: !1 }, key: { validate: function() { let e = (0, A.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"), t = (0, A.assertNodeType)("Expres\ sion"), r = /* @__PURE__ */ i(function(s, n, a) { (s.computed ? t : e)(s, n, a); }, "validator"); return r.oneOfNodeTypes = ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"], r; }() }, decorators: { validate: (0, A.arrayOfType)("Decorator"), optional: !0 }, body: { validate: (0, A.assertNodeType)("BlockStatement") } }), aliases: ["UserWhitespacable", "Function", "Scopable", "BlockParent", "FunctionParent", "Method", "ObjectMember"] })); W("ObjectProperty", { builder: ["key", "value", "computed", "shorthand", ...process.env.BABEL_TYPES_8_BREAKING ? [] : ["decorators"]], unionShape: { discriminator: "computed", shapes: [{ name: "computed", value: [!0], properties: { key: { validate: (0, A.assertNodeType)("Expression") } } }, { name: "nonComputed", value: [!1], properties: { key: { validate: (0, A.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName") } } }] }, fields: { computed: { default: !1 }, key: { validate: function() { let e = (0, A.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"), t = (0, A. assertNodeType)("Expression"); return Object.assign(function(s, n, a) { (s.computed ? t : e)(s, n, a); }, { oneOfNodeTypes: ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"] }); }() }, value: { validate: (0, A.assertNodeType)("Expression", "PatternLike") }, shorthand: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, A.chain)((0, A.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, qt.default)("Identifier", e.key)) throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier"); } }, { type: "boolean" })) : (0, A.assertValueType)("boolean"), default: !1 }, decorators: { validate: (0, A.arrayOfType)("Decorator"), optional: !0 } }, visitor: ["decorators", "key", "value"], aliases: ["UserWhitespacable", "Property", "ObjectMember"], validate: process.env.BABEL_TYPES_8_BREAKING ? function() { let e = (0, A.assertNodeType)("Identifier", "Pattern", "TSAsExpression", "TSSatisfiesExpression", "TSNonNullExpression", "TSTypeAssert\ ion"), t = (0, A.assertNodeType)("Expression"); return function(r, s, n) { ((0, qt.default)("ObjectPattern", r) ? e : t)(n, "value", n.value); }; }() : void 0 }); W("RestElement", { visitor: ["argument", "typeAnnotation"], builder: ["argument"], aliases: ["FunctionParameter", "PatternLike", "LVal"], deprecatedAlias: "RestProperty", fields: Object.assign({}, Ei(), { argument: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, A.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpressio\ n", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, A.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression", "RestEleme\ nt", "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 [, s, n] = r; if (e[s].length > +n + 1) throw new TypeError(`RestElement must be last element of ${s}`); } : void 0 }); W("ReturnStatement", { visitor: ["argument"], aliases: ["Statement", "Terminatorless", "CompletionStatement"], fields: { argument: { validate: (0, A.assertNodeType)("Expression"), optional: !0 } } }); W("SequenceExpression", { visitor: ["expressions"], fields: { expressions: (0, A.validateArrayOfType)("Expression") }, aliases: ["Expression"] }); W("ParenthesizedExpression", { visitor: ["expression"], aliases: ["Expression", "ExpressionWrapper"], fields: { expression: { validate: (0, A.assertNodeType)("Expression") } } }); W("SwitchCase", { visitor: ["test", "consequent"], fields: { test: { validate: (0, A.assertNodeType)("Expression"), optional: !0 }, consequent: (0, A.validateArrayOfType)("Statement") } }); W("SwitchStatement", { visitor: ["discriminant", "cases"], aliases: ["Statement", "BlockParent", "Scopable"], fields: { discriminant: { validate: (0, A.assertNodeType)("Expression") }, cases: (0, A.validateArrayOfType)("SwitchCase") } }); W("ThisExpression", { aliases: ["Expression"] }); W("ThrowStatement", { visitor: ["argument"], aliases: ["Statement", "Terminatorless", "CompletionStatement"], fields: { argument: { validate: (0, A.assertNodeType)("Expression") } } }); W("TryStatement", { visitor: ["block", "handler", "finalizer"], aliases: ["Statement"], fields: { block: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, A.chain)((0, A.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, A.assertNodeType)("BlockStatement") }, handler: { optional: !0, validate: (0, A.assertNodeType)("CatchClause") }, finalizer: { optional: !0, validate: (0, A.assertNodeType)("BlockStatement") } } }); W("UnaryExpression", { builder: ["operator", "argument", "prefix"], fields: { prefix: { default: !0 }, argument: { validate: (0, A.assertNodeType)("Expression") }, operator: { validate: (0, A.assertOneOf)(...Ti.UNARY_OPERATORS) } }, visitor: ["argument"], aliases: ["UnaryLike", "Expression"] }); W("UpdateExpression", { builder: ["operator", "argument", "prefix"], fields: { prefix: { default: !1 }, argument: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, A.assertNodeType)("Identifier", "MemberExpression") : (0, A.assertNodeType)("Expr\ ession") }, operator: { validate: (0, A.assertOneOf)(...Ti.UPDATE_OPERATORS) } }, visitor: ["argument"], aliases: ["Expression"] }); W("VariableDeclaration", { builder: ["kind", "declarations"], visitor: ["declarations"], aliases: ["Statement", "Declaration"], fields: { declare: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, kind: { validate: (0, A.assertOneOf)("var", "let", "const", "using", "await using") }, declarations: (0, A.validateArrayOfType)("VariableDeclarator") }, validate: process.env.BABEL_TYPES_8_BREAKING ? (() => { let e = (0, A.assertNodeType)("Identifier", "Placeholder"), t = (0, A.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "\ Placeholder"), r = (0, A.assertNodeType)("Identifier", "VoidPattern", "Placeholder"); return function(s, n, a) { let { kind: o, declarations: l } = a, u = (0, qt.default)("ForXStatement", s, { left: a }); if (u && l.length !== 1) throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${s.type}`); for (let c of l) o === "const" || o === "let" || o === "var" ? !u && !c.init ? e(c, "id", c.id) : t(c, "id", c.id) : r(c, "id", c.id); }; })() : void 0 }); W("VariableDeclarator", { visitor: ["id", "init"], fields: { id: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, A.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "VoidPattern") : (0, A.assertNodeType)("LVal", "VoidPattern") }, definite: { optional: !0, validate: (0, A.assertValueType)("boolean") }, init: { optional: !0, validate: (0, A.assertNodeType)("Expression") } } }); W("WhileStatement", { visitor: ["test", "body"], aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"], fields: { test: { validate: (0, A.assertNodeType)("Expression") }, body: { validate: (0, A.assertNodeType)("Statement") } } }); W("WithStatement", { visitor: ["object", "body"], aliases: ["Statement"], fields: { object: { validate: (0, A.assertNodeType)("Expression") }, body: { validate: (0, A.assertNodeType)("Statement") } } }); W("AssignmentPattern", { visitor: ["left", "right", "decorators"], builder: ["left", "right"], aliases: ["FunctionParameter", "Pattern", "PatternLike", "LVal"], fields: Object.assign({}, Ei(), { left: { validate: (0, A.assertNodeType)("Identifier", "ObjectPattern", "ArrayPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExp\ ression", "TSTypeAssertion", "TSNonNullExpression") }, right: { validate: (0, A.assertNodeType)("Expression") }, decorators: { validate: (0, A.arrayOfType)("Decorator"), optional: !0 } }) }); W("ArrayPattern", { visitor: ["elements", "typeAnnotation"], builder: ["elements"], aliases: ["FunctionParameter", "Pattern", "PatternLike", "LVal"], fields: Object.assign({}, Ei(), { elements: { validate: (0, A.chain)((0, A.assertValueType)("array"), (0, A.assertEach)((0, A.assertNodeOrValueType)("null", "PatternLike"))) } }) }); W("ArrowFunctionExpression", { builder: ["params", "body", "async"], visitor: ["typeParameters", "params", "predicate", "returnType", "body"], aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"], fields: Object.assign({}, xi(), An(), { expression: { validate: (0, A.assertValueType)("boolean") }, body: { validate: (0, A.assertNodeType)("BlockStatement", "Expression") }, predicate: { validate: (0, A.assertNodeType)("DeclaredPredicate", "InferredPredicate"), optional: !0 } }) }); W("ClassBody", { visitor: ["body"], fields: { body: (0, A.validateArrayOfType)("ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassPrivateProperty", "ClassAccessorProperty", "TSDeclareMethod", "TSIndexSignature", "StaticBlock") } }); W("ClassExpression", { builder: ["id", "superClass", "body", "decorators"], visitor: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body"], aliases: ["Scopable", "Class", "Expression"], fields: { id: { validate: (0, A.assertNodeType)("Identifier"), optional: !0 }, typeParameters: { validate: (0, A.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), optional: !0 }, body: { validate: (0, A.assertNodeType)("ClassBody") }, superClass: { optional: !0, validate: (0, A.assertNodeType)("Expression") }, superTypeParameters: { validate: (0, A.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), optional: !0 }, implements: { validate: (0, A.arrayOfType)("TSExpressionWithTypeArguments", "ClassImplements"), optional: !0 }, decorators: { validate: (0, A.arrayOfType)("Decorator"), optional: !0 }, mixins: { validate: (0, A.assertNodeType)("InterfaceExtends"), optional: !0 } } }); W("ClassDeclaration", { inherits: "ClassExpression", aliases: ["Scopable", "Class", "Statement", "Declaration"], fields: { id: { validate: (0, A.assertNodeType)("Identifier"), optional: !0 }, typeParameters: { validate: (0, A.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), optional: !0 }, body: { validate: (0, A.assertNodeType)("ClassBody") }, superClass: { optional: !0, validate: (0, A.assertNodeType)("Expression") }, superTypeParameters: { validate: (0, A.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), optional: !0 }, implements: { validate: (0, A.arrayOfType)("TSExpressionWithTypeArguments", "ClassImplements"), optional: !0 }, decorators: { validate: (0, A.arrayOfType)("Decorator"), optional: !0 }, mixins: { validate: (0, A.assertNodeType)("InterfaceExtends"), optional: !0 }, declare: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, abstract: { validate: (0, A.assertValueType)("boolean"), optional: !0 } }, validate: process.env.BABEL_TYPES_8_BREAKING ? function() { let e = (0, A.assertNodeType)("Identifier"); return function(t, r, s) { (0, qt.default)("ExportDefaultDeclaration", t) || e(s, "id", s.id); }; }() : void 0 }); var Df = pt.importAttributes = { attributes: { optional: !0, validate: (0, A.arrayOfType)("ImportAttribute") }, assertions: { deprecated: !0, optional: !0, validate: (0, A.arrayOfType)("ImportAttribute") } }; W("ExportAllDeclaration", { builder: ["source"], visitor: ["source", "attributes", "assertions"], aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"], fields: Object.assign({ source: { validate: (0, A.assertNodeType)("StringLiteral") }, exportKind: (0, A.validateOptional)((0, A.assertOneOf)("type", "value")) }, Df) }); W("ExportDefaultDeclaration", { visitor: ["declaration"], aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"], fields: { declaration: (0, A.validateType)("TSDeclareFunction", "FunctionDeclaration", "ClassDeclaration", "Expression"), exportKind: (0, A.validateOptional)((0, A.assertOneOf)("value")) } }); W("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, A.chain)((0, A.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, A.assertNodeType)("Declaration") } }, Df, { specifiers: { default: [], validate: (0, A.arrayOf)(function() { let e = (0, A.assertNodeType)("ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"), t = (0, A.assertNodeType)( "ExportSpecifier"); return process.env.BABEL_TYPES_8_BREAKING ? Object.assign(function(r, s, n) { (r.source ? e : t)(r, s, n); }, { oneOfNodeTypes: ["ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"] }) : e; }()) }, source: { validate: (0, A.assertNodeType)("StringLiteral"), optional: !0 }, exportKind: (0, A.validateOptional)((0, A.assertOneOf)("type", "value")) }) }); W("ExportSpecifier", { visitor: ["local", "exported"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, A.assertNodeType)("Identifier") }, exported: { validate: (0, A.assertNodeType)("Identifier", "StringLiteral") }, exportKind: { validate: (0, A.assertOneOf)("type", "value"), optional: !0 } } }); W("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, A.assertNodeType)("VariableDeclaration", "LVal"); let e = (0, A.assertNodeType)("VariableDeclaration"), t = (0, A.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "\ ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression"); return Object.assign(function(r, s, n) { (0, qt.default)("VariableDeclaration", n) ? e(r, s, n) : t(r, s, n); }, { oneOfNodeTypes: ["VariableDeclaration", "Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TS\ SatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression"] }); }() }, right: { validate: (0, A.assertNodeType)("Expression") }, body: { validate: (0, A.assertNodeType)("Statement") }, await: { default: !1 } } }); W("ImportDeclaration", { builder: ["specifiers", "source"], visitor: ["specifiers", "source", "attributes", "assertions"], aliases: ["Statement", "Declaration", "ImportOrExportDeclaration"], fields: Object.assign({}, Df, { module: { optional: !0, validate: (0, A.assertValueType)("boolean") }, phase: { default: null, validate: (0, A.assertOneOf)("source", "defer") }, specifiers: (0, A.validateArrayOfType)("ImportSpecifier", "ImportDefaultSpecifier", "ImportNamespaceSpecifier"), source: { validate: (0, A.assertNodeType)("StringLiteral") }, importKind: { validate: (0, A.assertOneOf)("type", "typeof", "value"), optional: !0 } }) }); W("ImportDefaultSpecifier", { visitor: ["local"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, A.assertNodeType)("Identifier") } } }); W("ImportNamespaceSpecifier", { visitor: ["local"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, A.assertNodeType)("Identifier") } } }); W("ImportSpecifier", { visitor: ["imported", "local"], builder: ["local", "imported"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, A.assertNodeType)("Identifier") }, imported: { validate: (0, A.assertNodeType)("Identifier", "StringLiteral") }, importKind: { validate: (0, A.assertOneOf)("type", "typeof", "value"), optional: !0 } } }); W("ImportExpression", { visitor: ["source", "options"], aliases: ["Expression"], fields: { phase: { default: null, validate: (0, A.assertOneOf)("source", "defer") }, source: { validate: (0, A.assertNodeType)("Expression") }, options: { validate: (0, A.assertNodeType)("Expression"), optional: !0 } } }); W("MetaProperty", { visitor: ["meta", "property"], aliases: ["Expression"], fields: { meta: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, A.chain)((0, A.assertNodeType)("Identifier"), Object.assign(function(e, t, r) { let s; switch (r.name) { case "function": s = "sent"; break; case "new": s = "target"; break; case "import": s = "meta"; break; } if (!(0, qt.default)("Identifier", e.property, { name: s })) throw new TypeError("Unrecognised MetaProperty"); }, { oneOfNodeTypes: ["Identifier"] })) : (0, A.assertNodeType)("Identifier") }, property: { validate: (0, A.assertNodeType)("Identifier") } } }); var vl = /* @__PURE__ */ i(() => ({ abstract: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, accessibility: { validate: (0, A.assertOneOf)("public", "private", "protected"), optional: !0 }, static: { default: !1 }, override: { default: !1 }, computed: { default: !1 }, optional: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, key: { validate: (0, A.chain)(function() { let e = (0, A.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"), t = (0, A.assertNodeType)("Expressi\ on"); return function(r, s, n) { (r.computed ? t : e)(r, s, n); }; }(), (0, A.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression")) } }), "classMethodOrPropertyCommon"); pt.classMethodOrPropertyCommon = vl; var _f = /* @__PURE__ */ i(() => Object.assign({}, xi(), vl(), { params: (0, A.validateArrayOfType)("FunctionParameter", "TSParameterProperty"), kind: { validate: (0, A.assertOneOf)("get", "set", "method", "constructor"), default: "method" }, access: { validate: (0, A.chain)((0, A.assertValueType)("string"), (0, A.assertOneOf)("public", "private", "protected")), optional: !0 }, decorators: { validate: (0, A.arrayOfType)("Decorator"), optional: !0 } }), "classMethodOrDeclareMethodCommon"); pt.classMethodOrDeclareMethodCommon = _f; W("ClassMethod", Object.assign({ aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method"], builder: ["kind", "key", "params", "body", "computed", "static", "generator", "async"], visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"] }, Oa(), { fields: Object.assign({}, _f(), An(), { body: { validate: (0, A.assertNodeType)("BlockStatement") } }) })); W("ObjectPattern", { visitor: ["decorators", "properties", "typeAnnotation"], builder: ["properties"], aliases: ["FunctionParameter", "Pattern", "PatternLike", "LVal"], fields: Object.assign({}, Ei(), { properties: (0, A.validateArrayOfType)("RestElement", "ObjectProperty") }) }); W("SpreadElement", { visitor: ["argument"], aliases: ["UnaryLike"], deprecatedAlias: "SpreadProperty", fields: { argument: { validate: (0, A.assertNodeType)("Expression") } } }); W("Super", { aliases: ["Expression"] }); W("TaggedTemplateExpression", { visitor: ["tag", "typeParameters", "quasi"], builder: ["tag", "quasi"], aliases: ["Expression"], fields: { tag: { validate: (0, A.assertNodeType)("Expression") }, quasi: { validate: (0, A.assertNodeType)("TemplateLiteral") }, typeParameters: { validate: (0, A.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), optional: !0 } } }); W("TemplateElement", { builder: ["value", "tail"], fields: { value: { validate: (0, A.chain)((0, A.assertShape)({ raw: { validate: (0, A.assertValueType)("string") }, cooked: { validate: (0, A.assertValueType)("string"), optional: !0 } }), /* @__PURE__ */ i(function(t) { let r = t.value.raw, s = !1, n = /* @__PURE__ */ i(() => { throw new Error("Internal @babel/types error."); }, "error"), { str: a, firstInvalidLoc: o } = (0, IN.readStringContents)("template", r, 0, 0, 0, { unterminated() { s = !0; }, strictNumericEscape: n, invalidEscapeSequence: n, numericSeparatorInEscapeSequence: n, unexpectedNumericSeparator: n, invalidDigit: n, invalidCodePoint: n }); if (!s) throw new Error("Invalid raw"); t.value.cooked = o ? null : a; }, "templateElementCookedValidator")) }, tail: { default: !1 } } }); W("TemplateLiteral", { visitor: ["quasis", "expressions"], aliases: ["Expression", "Literal"], fields: { quasis: (0, A.validateArrayOfType)("TemplateElement"), expressions: { validate: (0, A.chain)((0, A.assertValueType)("array"), (0, A.assertEach)((0, A.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}`); }) } } }); W("YieldExpression", { builder: ["argument", "delegate"], visitor: ["argument"], aliases: ["Expression", "Terminatorless"], fields: { delegate: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, A.chain)((0, A.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, A.assertValueType)("boolean"), default: !1 }, argument: { optional: !0, validate: (0, A.assertNodeType)("Expression") } } }); W("AwaitExpression", { builder: ["argument"], visitor: ["argument"], aliases: ["Expression", "Terminatorless"], fields: { argument: { validate: (0, A.assertNodeType)("Expression") } } }); W("Import", { aliases: ["Expression"] }); W("BigIntLiteral", { builder: ["value"], fields: { value: { validate: (0, A.assertValueType)("string") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); W("ExportNamespaceSpecifier", { visitor: ["exported"], aliases: ["ModuleSpecifier"], fields: { exported: { validate: (0, A.assertNodeType)("Identifier") } } }); W("OptionalMemberExpression", { builder: ["object", "property", "computed", "optional"], visitor: ["object", "property"], aliases: ["Expression"], fields: { object: { validate: (0, A.assertNodeType)("Expression") }, property: { validate: function() { let e = (0, A.assertNodeType)("Identifier"), t = (0, A.assertNodeType)("Expression"); return Object.assign(function(s, n, a) { (s.computed ? t : e)(s, n, a); }, { oneOfNodeTypes: ["Expression", "Identifier"] }); }() }, computed: { default: !1 }, optional: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, A.chain)((0, A.assertValueType)("boolean"), (0, A.assertOptionalChainStart)()) : (0, A. assertValueType)("boolean") } } }); W("OptionalCallExpression", { visitor: ["callee", "typeParameters", "typeArguments", "arguments"], builder: ["callee", "arguments", "optional"], aliases: ["Expression"], fields: Object.assign({ callee: { validate: (0, A.assertNodeType)("Expression") }, arguments: (0, A.validateArrayOfType)("Expression", "SpreadElement", "ArgumentPlaceholder"), optional: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, A.chain)((0, A.assertValueType)("boolean"), (0, A.assertOptionalChainStart)()) : (0, A. assertValueType)("boolean") }, typeArguments: { validate: (0, A.assertNodeType)("TypeParameterInstantiation"), optional: !0 } }, { typeParameters: { validate: (0, A.assertNodeType)("TSTypeParameterInstantiation"), optional: !0 } }) }); W("ClassProperty", Object.assign({ visitor: ["decorators", "variance", "key", "typeAnnotation", "value"], builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"], aliases: ["Property"] }, Oa(), { fields: Object.assign({}, vl(), { value: { validate: (0, A.assertNodeType)("Expression"), optional: !0 }, definite: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, typeAnnotation: { validate: (0, A.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, decorators: { validate: (0, A.arrayOfType)("Decorator"), optional: !0 }, readonly: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, declare: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, variance: { validate: (0, A.assertNodeType)("Variance"), optional: !0 } }) })); W("ClassAccessorProperty", Object.assign({ visitor: ["decorators", "key", "typeAnnotation", "value"], builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"], aliases: ["Property", "Accessor"] }, Oa(!0), { fields: Object.assign({}, vl(), { key: { validate: (0, A.chain)(function() { let e = (0, A.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName"), t = (0, A.assertNodeType)( "Expression"); return function(r, s, n) { (r.computed ? t : e)(r, s, n); }; }(), (0, A.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression", "PrivateName")) }, value: { validate: (0, A.assertNodeType)("Expression"), optional: !0 }, definite: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, typeAnnotation: { validate: (0, A.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, decorators: { validate: (0, A.arrayOfType)("Decorator"), optional: !0 }, readonly: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, declare: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, variance: { validate: (0, A.assertNodeType)("Variance"), optional: !0 } }) })); W("ClassPrivateProperty", { visitor: ["decorators", "variance", "key", "typeAnnotation", "value"], builder: ["key", "value", "decorators", "static"], aliases: ["Property", "Private"], fields: { key: { validate: (0, A.assertNodeType)("PrivateName") }, value: { validate: (0, A.assertNodeType)("Expression"), optional: !0 }, typeAnnotation: { validate: (0, A.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, decorators: { validate: (0, A.arrayOfType)("Decorator"), optional: !0 }, static: { validate: (0, A.assertValueType)("boolean"), default: !1 }, readonly: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, optional: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, definite: { validate: (0, A.assertValueType)("boolean"), optional: !0 }, variance: { validate: (0, A.assertNodeType)("Variance"), optional: !0 } } }); W("ClassPrivateMethod", { builder: ["kind", "key", "params", "body", "static"], visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"], aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method", "Private"], fields: Object.assign({}, _f(), An(), { kind: { validate: (0, A.assertOneOf)("get", "set", "method"), default: "method" }, key: { validate: (0, A.assertNodeType)("PrivateName") }, body: { validate: (0, A.assertNodeType)("BlockStatement") } }) }); W("PrivateName", { visitor: ["id"], aliases: ["Private"], fields: { id: { validate: (0, A.assertNodeType)("Identifier") } } }); W("StaticBlock", { visitor: ["body"], fields: { body: (0, A.validateArrayOfType)("Statement") }, aliases: ["Scopable", "BlockParent", "FunctionParent"] }); W("ImportAttribute", { visitor: ["key", "value"], fields: { key: { validate: (0, A.assertNodeType)("Identifier", "StringLiteral") }, value: { validate: (0, A.assertNodeType)("StringLiteral") } } }); }); // ../node_modules/@babel/types/lib/definitions/flow.js var Cg = w(() => { "use strict"; var Ag = Na(), L = es(), te = (0, L.defineAliasedType)("Flow"), If = /* @__PURE__ */ i((e) => { let t = e === "DeclareClass"; te(e, { builder: ["id", "typeParameters", "extends", "body"], visitor: ["id", "typeParameters", "extends", ...t ? ["mixins", "implements"] : [], "body"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: Object.assign({ id: (0, L.validateType)("Identifier"), typeParameters: (0, L.validateOptionalType)("TypeParameterDeclaration"), extends: (0, L.validateOptional)((0, L.arrayOfType)("InterfaceExtends")) }, t ? { mixins: (0, L.validateOptional)((0, L.arrayOfType)("InterfaceExtends")), implements: (0, L.validateOptional)((0, L.arrayOfType)("ClassImplements")) } : {}, { body: (0, L.validateType)("ObjectTypeAnnotation") }) }); }, "defineInterfaceishType"); te("AnyTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); te("ArrayTypeAnnotation", { visitor: ["elementType"], aliases: ["FlowType"], fields: { elementType: (0, L.validateType)("FlowType") } }); te("BooleanTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); te("BooleanLiteralTypeAnnotation", { builder: ["value"], aliases: ["FlowType"], fields: { value: (0, L.validate)((0, L.assertValueType)("boolean")) } }); te("NullLiteralTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); te("ClassImplements", { visitor: ["id", "typeParameters"], fields: { id: (0, L.validateType)("Identifier"), typeParameters: (0, L.validateOptionalType)("TypeParameterInstantiation") } }); If("DeclareClass"); te("DeclareFunction", { builder: ["id"], visitor: ["id", "predicate"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, L.validateType)("Identifier"), predicate: (0, L.validateOptionalType)("DeclaredPredicate") } }); If("DeclareInterface"); te("DeclareModule", { builder: ["id", "body", "kind"], visitor: ["id", "body"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, L.validateType)("Identifier", "StringLiteral"), body: (0, L.validateType)("BlockStatement"), kind: (0, L.validateOptional)((0, L.assertOneOf)("CommonJS", "ES")) } }); te("DeclareModuleExports", { visitor: ["typeAnnotation"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { typeAnnotation: (0, L.validateType)("TypeAnnotation") } }); te("DeclareTypeAlias", { visitor: ["id", "typeParameters", "right"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, L.validateType)("Identifier"), typeParameters: (0, L.validateOptionalType)("TypeParameterDeclaration"), right: (0, L.validateType)("FlowType") } }); te("DeclareOpaqueType", { visitor: ["id", "typeParameters", "supertype"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, L.validateType)("Identifier"), typeParameters: (0, L.validateOptionalType)("TypeParameterDeclaration"), supertype: (0, L.validateOptionalType)("FlowType"), impltype: (0, L.validateOptionalType)("FlowType") } }); te("DeclareVariable", { visitor: ["id"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, L.validateType)("Identifier") } }); te("DeclareExportDeclaration", { visitor: ["declaration", "specifiers", "source", "attributes"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: Object.assign({ declaration: (0, L.validateOptionalType)("Flow"), specifiers: (0, L.validateOptional)((0, L.arrayOfType)("ExportSpecifier", "ExportNamespaceSpecifier")), source: (0, L.validateOptionalType)("StringLiteral"), default: (0, L.validateOptional)((0, L.assertValueType)("boolean")) }, Ag.importAttributes) }); te("DeclareExportAllDeclaration", { visitor: ["source", "attributes"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: Object.assign({ source: (0, L.validateType)("StringLiteral"), exportKind: (0, L.validateOptional)((0, L.assertOneOf)("type", "value")) }, Ag.importAttributes) }); te("DeclaredPredicate", { visitor: ["value"], aliases: ["FlowPredicate"], fields: { value: (0, L.validateType)("Flow") } }); te("ExistsTypeAnnotation", { aliases: ["FlowType"] }); te("FunctionTypeAnnotation", { builder: ["typeParameters", "params", "rest", "returnType"], visitor: ["typeParameters", "this", "params", "rest", "returnType"], aliases: ["FlowType"], fields: { typeParameters: (0, L.validateOptionalType)("TypeParameterDeclaration"), params: (0, L.validateArrayOfType)("FunctionTypeParam"), rest: (0, L.validateOptionalType)("FunctionTypeParam"), this: (0, L.validateOptionalType)("FunctionTypeParam"), returnType: (0, L.validateType)("FlowType") } }); te("FunctionTypeParam", { visitor: ["name", "typeAnnotation"], fields: { name: (0, L.validateOptionalType)("Identifier"), typeAnnotation: (0, L.validateType)("FlowType"), optional: (0, L.validateOptional)((0, L.assertValueType)("boolean")) } }); te("GenericTypeAnnotation", { visitor: ["id", "typeParameters"], aliases: ["FlowType"], fields: { id: (0, L.validateType)("Identifier", "QualifiedTypeIdentifier"), typeParameters: (0, L.validateOptionalType)("TypeParameterInstantiation") } }); te("InferredPredicate", { aliases: ["FlowPredicate"] }); te("InterfaceExtends", { visitor: ["id", "typeParameters"], fields: { id: (0, L.validateType)("Identifier", "QualifiedTypeIdentifier"), typeParameters: (0, L.validateOptionalType)("TypeParameterInstantiation") } }); If("InterfaceDeclaration"); te("InterfaceTypeAnnotation", { visitor: ["extends", "body"], aliases: ["FlowType"], fields: { extends: (0, L.validateOptional)((0, L.arrayOfType)("InterfaceExtends")), body: (0, L.validateType)("ObjectTypeAnnotation") } }); te("IntersectionTypeAnnotation", { visitor: ["types"], aliases: ["FlowType"], fields: { types: (0, L.validate)((0, L.arrayOfType)("FlowType")) } }); te("MixedTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); te("EmptyTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); te("NullableTypeAnnotation", { visitor: ["typeAnnotation"], aliases: ["FlowType"], fields: { typeAnnotation: (0, L.validateType)("FlowType") } }); te("NumberLiteralTypeAnnotation", { builder: ["value"], aliases: ["FlowType"], fields: { value: (0, L.validate)((0, L.assertValueType)("number")) } }); te("NumberTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); te("ObjectTypeAnnotation", { visitor: ["properties", "indexers", "callProperties", "internalSlots"], aliases: ["FlowType"], builder: ["properties", "indexers", "callProperties", "internalSlots", "exact"], fields: { properties: (0, L.validate)((0, L.arrayOfType)("ObjectTypeProperty", "ObjectTypeSpreadProperty")), indexers: { validate: (0, L.arrayOfType)("ObjectTypeIndexer"), optional: !0, default: [] }, callProperties: { validate: (0, L.arrayOfType)("ObjectTypeCallProperty"), optional: !0, default: [] }, internalSlots: { validate: (0, L.arrayOfType)("ObjectTypeInternalSlot"), optional: !0, default: [] }, exact: { validate: (0, L.assertValueType)("boolean"), default: !1 }, inexact: (0, L.validateOptional)((0, L.assertValueType)("boolean")) } }); te("ObjectTypeInternalSlot", { visitor: ["id", "value"], builder: ["id", "value", "optional", "static", "method"], aliases: ["UserWhitespacable"], fields: { id: (0, L.validateType)("Identifier"), value: (0, L.validateType)("FlowType"), optional: (0, L.validate)((0, L.assertValueType)("boolean")), static: (0, L.validate)((0, L.assertValueType)("boolean")), method: (0, L.validate)((0, L.assertValueType)("boolean")) } }); te("ObjectTypeCallProperty", { visitor: ["value"], aliases: ["UserWhitespacable"], fields: { value: (0, L.validateType)("FlowType"), static: (0, L.validate)((0, L.assertValueType)("boolean")) } }); te("ObjectTypeIndexer", { visitor: ["variance", "id", "key", "value"], builder: ["id", "key", "value", "variance"], aliases: ["UserWhitespacable"], fields: { id: (0, L.validateOptionalType)("Identifier"), key: (0, L.validateType)("FlowType"), value: (0, L.validateType)("FlowType"), static: (0, L.validate)((0, L.assertValueType)("boolean")), variance: (0, L.validateOptionalType)("Variance") } }); te("ObjectTypeProperty", { visitor: ["key", "value", "variance"], aliases: ["UserWhitespacable"], fields: { key: (0, L.validateType)("Identifier", "StringLiteral"), value: (0, L.validateType)("FlowType"), kind: (0, L.validate)((0, L.assertOneOf)("init", "get", "set")), static: (0, L.validate)((0, L.assertValueType)("boolean")), proto: (0, L.validate)((0, L.assertValueType)("boolean")), optional: (0, L.validate)((0, L.assertValueType)("boolean")), variance: (0, L.validateOptionalType)("Variance"), method: (0, L.validate)((0, L.assertValueType)("boolean")) } }); te("ObjectTypeSpreadProperty", { visitor: ["argument"], aliases: ["UserWhitespacable"], fields: { argument: (0, L.validateType)("FlowType") } }); te("OpaqueType", { visitor: ["id", "typeParameters", "supertype", "impltype"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, L.validateType)("Identifier"), typeParameters: (0, L.validateOptionalType)("TypeParameterDeclaration"), supertype: (0, L.validateOptionalType)("FlowType"), impltype: (0, L.validateType)("FlowType") } }); te("QualifiedTypeIdentifier", { visitor: ["qualification", "id"], builder: ["id", "qualification"], fields: { id: (0, L.validateType)("Identifier"), qualification: (0, L.validateType)("Identifier", "QualifiedTypeIdentifier") } }); te("StringLiteralTypeAnnotation", { builder: ["value"], aliases: ["FlowType"], fields: { value: (0, L.validate)((0, L.assertValueType)("string")) } }); te("StringTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); te("SymbolTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); te("ThisTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); te("TupleTypeAnnotation", { visitor: ["types"], aliases: ["FlowType"], fields: { types: (0, L.validate)((0, L.arrayOfType)("FlowType")) } }); te("TypeofTypeAnnotation", { visitor: ["argument"], aliases: ["FlowType"], fields: { argument: (0, L.validateType)("FlowType") } }); te("TypeAlias", { visitor: ["id", "typeParameters", "right"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, L.validateType)("Identifier"), typeParameters: (0, L.validateOptionalType)("TypeParameterDeclaration"), right: (0, L.validateType)("FlowType") } }); te("TypeAnnotation", { visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, L.validateType)("FlowType") } }); te("TypeCastExpression", { visitor: ["expression", "typeAnnotation"], aliases: ["ExpressionWrapper", "Expression"], fields: { expression: (0, L.validateType)("Expression"), typeAnnotation: (0, L.validateType)("TypeAnnotation") } }); te("TypeParameter", { visitor: ["bound", "default", "variance"], fields: { name: (0, L.validate)((0, L.assertValueType)("string")), bound: (0, L.validateOptionalType)("TypeAnnotation"), default: (0, L.validateOptionalType)("FlowType"), variance: (0, L.validateOptionalType)("Variance") } }); te("TypeParameterDeclaration", { visitor: ["params"], fields: { params: (0, L.validate)((0, L.arrayOfType)("TypeParameter")) } }); te("TypeParameterInstantiation", { visitor: ["params"], fields: { params: (0, L.validate)((0, L.arrayOfType)("FlowType")) } }); te("UnionTypeAnnotation", { visitor: ["types"], aliases: ["FlowType"], fields: { types: (0, L.validate)((0, L.arrayOfType)("FlowType")) } }); te("Variance", { builder: ["kind"], fields: { kind: (0, L.validate)((0, L.assertOneOf)("minus", "plus")) } }); te("VoidTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); te("EnumDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "body"], fields: { id: (0, L.validateType)("Identifier"), body: (0, L.validateType)("EnumBooleanBody", "EnumNumberBody", "EnumStringBody", "EnumSymbolBody") } }); te("EnumBooleanBody", { aliases: ["EnumBody"], visitor: ["members"], fields: { explicitType: (0, L.validate)((0, L.assertValueType)("boolean")), members: (0, L.validateArrayOfType)("EnumBooleanMember"), hasUnknownMembers: (0, L.validate)((0, L.assertValueType)("boolean")) } }); te("EnumNumberBody", { aliases: ["EnumBody"], visitor: ["members"], fields: { explicitType: (0, L.validate)((0, L.assertValueType)("boolean")), members: (0, L.validateArrayOfType)("EnumNumberMember"), hasUnknownMembers: (0, L.validate)((0, L.assertValueType)("boolean")) } }); te("EnumStringBody", { aliases: ["EnumBody"], visitor: ["members"], fields: { explicitType: (0, L.validate)((0, L.assertValueType)("boolean")), members: (0, L.validateArrayOfType)("EnumStringMember", "EnumDefaultedMember"), hasUnknownMembers: (0, L.validate)((0, L.assertValueType)("boolean")) } }); te("EnumSymbolBody", { aliases: ["EnumBody"], visitor: ["members"], fields: { members: (0, L.validateArrayOfType)("EnumDefaultedMember"), hasUnknownMembers: (0, L.validate)((0, L.assertValueType)("boolean")) } }); te("EnumBooleanMember", { aliases: ["EnumMember"], builder: ["id"], visitor: ["id", "init"], fields: { id: (0, L.validateType)("Identifier"), init: (0, L.validateType)("BooleanLiteral") } }); te("EnumNumberMember", { aliases: ["EnumMember"], visitor: ["id", "init"], fields: { id: (0, L.validateType)("Identifier"), init: (0, L.validateType)("NumericLiteral") } }); te("EnumStringMember", { aliases: ["EnumMember"], visitor: ["id", "init"], fields: { id: (0, L.validateType)("Identifier"), init: (0, L.validateType)("StringLiteral") } }); te("EnumDefaultedMember", { aliases: ["EnumMember"], visitor: ["id"], fields: { id: (0, L.validateType)("Identifier") } }); te("IndexedAccessType", { visitor: ["objectType", "indexType"], aliases: ["FlowType"], fields: { objectType: (0, L.validateType)("FlowType"), indexType: (0, L.validateType)("FlowType") } }); te("OptionalIndexedAccessType", { visitor: ["objectType", "indexType"], aliases: ["FlowType"], fields: { objectType: (0, L.validateType)("FlowType"), indexType: (0, L.validateType)("FlowType"), optional: (0, L.validate)((0, L.assertValueType)("boolean")) } }); }); // ../node_modules/@babel/types/lib/definitions/jsx.js var wg = w(() => { "use strict"; var Ye = es(), Ut = (0, Ye.defineAliasedType)("JSX"); Ut("JSXAttribute", { visitor: ["name", "value"], aliases: ["Immutable"], fields: { name: { validate: (0, Ye.assertNodeType)("JSXIdentifier", "JSXNamespacedName") }, value: { optional: !0, validate: (0, Ye.assertNodeType)("JSXElement", "JSXFragment", "StringLiteral", "JSXExpressionContainer") } } }); Ut("JSXClosingElement", { visitor: ["name"], aliases: ["Immutable"], fields: { name: { validate: (0, Ye.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName") } } }); Ut("JSXElement", { builder: ["openingElement", "closingElement", "children", "selfClosing"], visitor: ["openingElement", "children", "closingElement"], aliases: ["Immutable", "Expression"], fields: Object.assign({ openingElement: { validate: (0, Ye.assertNodeType)("JSXOpeningElement") }, closingElement: { optional: !0, validate: (0, Ye.assertNodeType)("JSXClosingElement") }, children: (0, Ye.validateArrayOfType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment") }, { selfClosing: { validate: (0, Ye.assertValueType)("boolean"), optional: !0 } }) }); Ut("JSXEmptyExpression", {}); Ut("JSXExpressionContainer", { visitor: ["expression"], aliases: ["Immutable"], fields: { expression: { validate: (0, Ye.assertNodeType)("Expression", "JSXEmptyExpression") } } }); Ut("JSXSpreadChild", { visitor: ["expression"], aliases: ["Immutable"], fields: { expression: { validate: (0, Ye.assertNodeType)("Expression") } } }); Ut("JSXIdentifier", { builder: ["name"], fields: { name: { validate: (0, Ye.assertValueType)("string") } } }); Ut("JSXMemberExpression", { visitor: ["object", "property"], fields: { object: { validate: (0, Ye.assertNodeType)("JSXMemberExpression", "JSXIdentifier") }, property: { validate: (0, Ye.assertNodeType)("JSXIdentifier") } } }); Ut("JSXNamespacedName", { visitor: ["namespace", "name"], fields: { namespace: { validate: (0, Ye.assertNodeType)("JSXIdentifier") }, name: { validate: (0, Ye.assertNodeType)("JSXIdentifier") } } }); Ut("JSXOpeningElement", { builder: ["name", "attributes", "selfClosing"], visitor: ["name", "typeParameters", "typeArguments", "attributes"], aliases: ["Immutable"], fields: Object.assign({ name: { validate: (0, Ye.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName") }, selfClosing: { default: !1 }, attributes: (0, Ye.validateArrayOfType)("JSXAttribute", "JSXSpreadAttribute"), typeArguments: { validate: (0, Ye.assertNodeType)("TypeParameterInstantiation"), optional: !0 } }, { typeParameters: { validate: (0, Ye.assertNodeType)("TSTypeParameterInstantiation"), optional: !0 } }) }); Ut("JSXSpreadAttribute", { visitor: ["argument"], fields: { argument: { validate: (0, Ye.assertNodeType)("Expression") } } }); Ut("JSXText", { aliases: ["Immutable"], builder: ["value"], fields: { value: { validate: (0, Ye.assertValueType)("string") } } }); Ut("JSXFragment", { builder: ["openingFragment", "closingFragment", "children"], visitor: ["openingFragment", "children", "closingFragment"], aliases: ["Immutable", "Expression"], fields: { openingFragment: { validate: (0, Ye.assertNodeType)("JSXOpeningFragment") }, closingFragment: { validate: (0, Ye.assertNodeType)("JSXClosingFragment") }, children: (0, Ye.validateArrayOfType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment") } }); Ut("JSXOpeningFragment", { aliases: ["Immutable"] }); Ut("JSXClosingFragment", { aliases: ["Immutable"] }); }); // ../node_modules/@babel/types/lib/definitions/placeholders.js var Bf = w((Ks) => { "use strict"; Object.defineProperty(Ks, "__esModule", { value: !0 }); Ks.PLACEHOLDERS_FLIPPED_ALIAS = Ks.PLACEHOLDERS_ALIAS = Ks.PLACEHOLDERS = void 0; var ON = es(), NN = Ks.PLACEHOLDERS = ["Identifier", "StringLiteral", "Expression", "Statement", "Declaration", "BlockStatement", "ClassBo\ dy", "Pattern"], Nf = Ks.PLACEHOLDERS_ALIAS = { Declaration: ["Statement"], Pattern: ["PatternLike", "LVal"] }; for (let e of NN) { let t = ON.ALIAS_KEYS[e]; t != null && t.length && (Nf[e] = t); } var Of = Ks.PLACEHOLDERS_FLIPPED_ALIAS = {}; Object.keys(Nf).forEach((e) => { Nf[e].forEach((t) => { hasOwnProperty.call(Of, t) || (Of[t] = []), Of[t].push(e); }); }); }); // ../node_modules/@babel/types/lib/definitions/misc.js var Dg = w(() => { "use strict"; var Pl = es(), BN = Bf(), kN = Na(), kf = (0, Pl.defineAliasedType)("Miscellaneous"); kf("Noop", { visitor: [] }); kf("Placeholder", { visitor: [], builder: ["expectedNode", "name"], fields: Object.assign({ name: { validate: (0, Pl.assertNodeType)("Identifier") }, expectedNode: { validate: (0, Pl.assertOneOf)(...BN.PLACEHOLDERS) } }, (0, kN.patternLikeCommon)()) }); kf("V8IntrinsicIdentifier", { builder: ["name"], fields: { name: { validate: (0, Pl.assertValueType)("string") } } }); }); // ../node_modules/@babel/types/lib/definitions/experimental.js var _g = w(() => { "use strict"; var Re = es(); (0, Re.default)("ArgumentPlaceholder", {}); (0, Re.default)("BindExpression", { visitor: ["object", "callee"], aliases: ["Expression"], fields: process.env.BABEL_TYPES_8_BREAKING ? { object: { validate: (0, Re.assertNodeType)("Expression") }, callee: { validate: (0, Re.assertNodeType)("Expression") } } : { object: { validate: Object.assign(() => { }, { oneOfNodeTypes: ["Expression"] }) }, callee: { validate: Object.assign(() => { }, { oneOfNodeTypes: ["Expression"] }) } } }); (0, Re.default)("Decorator", { visitor: ["expression"], fields: { expression: { validate: (0, Re.assertNodeType)("Expression") } } }); (0, Re.default)("DoExpression", { visitor: ["body"], builder: ["body", "async"], aliases: ["Expression"], fields: { body: { validate: (0, Re.assertNodeType)("BlockStatement") }, async: { validate: (0, Re.assertValueType)("boolean"), default: !1 } } }); (0, Re.default)("ExportDefaultSpecifier", { visitor: ["exported"], aliases: ["ModuleSpecifier"], fields: { exported: { validate: (0, Re.assertNodeType)("Identifier") } } }); (0, Re.default)("RecordExpression", { visitor: ["properties"], aliases: ["Expression"], fields: { properties: (0, Re.validateArrayOfType)("ObjectProperty", "SpreadElement") } }); (0, Re.default)("TupleExpression", { fields: { elements: { validate: (0, Re.arrayOfType)("Expression", "SpreadElement"), default: [] } }, visitor: ["elements"], aliases: ["Expression"] }); (0, Re.default)("DecimalLiteral", { builder: ["value"], fields: { value: { validate: (0, Re.assertValueType)("string") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); (0, Re.default)("ModuleExpression", { visitor: ["body"], fields: { body: { validate: (0, Re.assertNodeType)("Program") } }, aliases: ["Expression"] }); (0, Re.default)("TopicReference", { aliases: ["Expression"] }); (0, Re.default)("PipelineTopicExpression", { builder: ["expression"], visitor: ["expression"], fields: { expression: { validate: (0, Re.assertNodeType)("Expression") } }, aliases: ["Expression"] }); (0, Re.default)("PipelineBareFunction", { builder: ["callee"], visitor: ["callee"], fields: { callee: { validate: (0, Re.assertNodeType)("Expression") } }, aliases: ["Expression"] }); (0, Re.default)("PipelinePrimaryTopicReference", { aliases: ["Expression"] }); (0, Re.default)("VoidPattern", { aliases: ["Pattern", "PatternLike", "FunctionParameter"] }); }); // ../node_modules/@babel/types/lib/definitions/typescript.js var Lg = w(() => { "use strict"; var q = es(), Ff = Na(), FN = mi(), oe = (0, q.defineAliasedType)("TypeScript"), Xt = (0, q.assertValueType)("boolean"), Ig = /* @__PURE__ */ i( () => ({ returnType: { validate: (0, q.assertNodeType)("TSTypeAnnotation", "Noop"), optional: !0 }, typeParameters: { validate: (0, q.assertNodeType)("TSTypeParameterDeclaration", "Noop"), optional: !0 } }), "tSFunctionTypeAnnotationCommon"); oe("TSParameterProperty", { aliases: ["LVal"], visitor: ["parameter"], fields: { accessibility: { validate: (0, q.assertOneOf)("public", "private", "protected"), optional: !0 }, readonly: { validate: (0, q.assertValueType)("boolean"), optional: !0 }, parameter: { validate: (0, q.assertNodeType)("Identifier", "AssignmentPattern") }, override: { validate: (0, q.assertValueType)("boolean"), optional: !0 }, decorators: { validate: (0, q.arrayOfType)("Decorator"), optional: !0 } } }); oe("TSDeclareFunction", { aliases: ["Statement", "Declaration"], visitor: ["id", "typeParameters", "params", "returnType"], fields: Object.assign({}, (0, Ff.functionDeclarationCommon)(), Ig()) }); oe("TSDeclareMethod", Object.assign({ visitor: ["decorators", "key", "typeParameters", "params", "returnType"] }, (0, Ff.classMethodOrPropertyUnionShapeCommon)(), { fields: Object.assign({}, (0, Ff.classMethodOrDeclareMethodCommon)(), Ig()) })); oe("TSQualifiedName", { aliases: ["TSEntityName"], visitor: ["left", "right"], fields: { left: (0, q.validateType)("TSEntityName"), right: (0, q.validateType)("Identifier") } }); var Al = /* @__PURE__ */ i(() => ({ typeParameters: (0, q.validateOptionalType)("TSTypeParameterDeclaration"), parameters: (0, q.validateArrayOfType)("ArrayPattern", "Identifier", "ObjectPattern", "RestElement"), typeAnnotation: (0, q.validateOptionalType)("TSTypeAnnotation") }), "signatureDeclarationCommon"), Og = { aliases: ["TSTypeElement"], visitor: ["typeParameters", "parameters", "typeAnnotation"], fields: Al() }; oe("TSCallSignatureDeclaration", Og); oe("TSConstructSignatureDeclaration", Og); var Ng = /* @__PURE__ */ i(() => ({ key: (0, q.validateType)("Expression"), computed: { default: !1 }, optional: (0, q.validateOptional)(Xt) }), "namedTypeElementCommon"); oe("TSPropertySignature", { aliases: ["TSTypeElement"], visitor: ["key", "typeAnnotation"], fields: Object.assign({}, Ng(), { readonly: (0, q.validateOptional)(Xt), typeAnnotation: (0, q.validateOptionalType)("TSTypeAnnotation"), kind: { optional: !0, validate: (0, q.assertOneOf)("get", "set") } }) }); oe("TSMethodSignature", { aliases: ["TSTypeElement"], visitor: ["key", "typeParameters", "parameters", "typeAnnotation"], fields: Object.assign({}, Al(), Ng(), { kind: { validate: (0, q.assertOneOf)("method", "get", "set") } }) }); oe("TSIndexSignature", { aliases: ["TSTypeElement"], visitor: ["parameters", "typeAnnotation"], fields: { readonly: (0, q.validateOptional)(Xt), static: (0, q.validateOptional)(Xt), parameters: (0, q.validateArrayOfType)("Identifier"), typeAnnotation: (0, q.validateOptionalType)("TSTypeAnnotation") } }); var LN = ["TSAnyKeyword", "TSBooleanKeyword", "TSBigIntKeyword", "TSIntrinsicKeyword", "TSNeverKeyword", "TSNullKeyword", "TSNumberKeyword", "TSObjectKeyword", "TSStringKeyword", "TSSymbolKeyword", "TSUndefinedKeyword", "TSUnknownKeyword", "TSVoidKeyword"]; for (let e of LN) oe(e, { aliases: ["TSType", "TSBaseType"], visitor: [], fields: {} }); oe("TSThisType", { aliases: ["TSType", "TSBaseType"], visitor: [], fields: {} }); var Bg = { aliases: ["TSType"], visitor: ["typeParameters", "parameters", "typeAnnotation"] }; oe("TSFunctionType", Object.assign({}, Bg, { fields: Al() })); oe("TSConstructorType", Object.assign({}, Bg, { fields: Object.assign({}, Al(), { abstract: (0, q.validateOptional)(Xt) }) })); oe("TSTypeReference", { aliases: ["TSType"], visitor: ["typeName", "typeParameters"], fields: { typeName: (0, q.validateType)("TSEntityName"), typeParameters: (0, q.validateOptionalType)("TSTypeParameterInstantiation") } }); oe("TSTypePredicate", { aliases: ["TSType"], visitor: ["parameterName", "typeAnnotation"], builder: ["parameterName", "typeAnnotation", "asserts"], fields: { parameterName: (0, q.validateType)("Identifier", "TSThisType"), typeAnnotation: (0, q.validateOptionalType)("TSTypeAnnotation"), asserts: (0, q.validateOptional)(Xt) } }); oe("TSTypeQuery", { aliases: ["TSType"], visitor: ["exprName", "typeParameters"], fields: { exprName: (0, q.validateType)("TSEntityName", "TSImportType"), typeParameters: (0, q.validateOptionalType)("TSTypeParameterInstantiation") } }); oe("TSTypeLiteral", { aliases: ["TSType"], visitor: ["members"], fields: { members: (0, q.validateArrayOfType)("TSTypeElement") } }); oe("TSArrayType", { aliases: ["TSType"], visitor: ["elementType"], fields: { elementType: (0, q.validateType)("TSType") } }); oe("TSTupleType", { aliases: ["TSType"], visitor: ["elementTypes"], fields: { elementTypes: (0, q.validateArrayOfType)("TSType", "TSNamedTupleMember") } }); oe("TSOptionalType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, q.validateType)("TSType") } }); oe("TSRestType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, q.validateType)("TSType") } }); oe("TSNamedTupleMember", { visitor: ["label", "elementType"], builder: ["label", "elementType", "optional"], fields: { label: (0, q.validateType)("Identifier"), optional: { validate: Xt, default: !1 }, elementType: (0, q.validateType)("TSType") } }); var kg = { aliases: ["TSType"], visitor: ["types"], fields: { types: (0, q.validateArrayOfType)("TSType") } }; oe("TSUnionType", kg); oe("TSIntersectionType", kg); oe("TSConditionalType", { aliases: ["TSType"], visitor: ["checkType", "extendsType", "trueType", "falseType"], fields: { checkType: (0, q.validateType)("TSType"), extendsType: (0, q.validateType)("TSType"), trueType: (0, q.validateType)("TSType"), falseType: (0, q.validateType)("TSType") } }); oe("TSInferType", { aliases: ["TSType"], visitor: ["typeParameter"], fields: { typeParameter: (0, q.validateType)("TSTypeParameter") } }); oe("TSParenthesizedType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, q.validateType)("TSType") } }); oe("TSTypeOperator", { aliases: ["TSType"], visitor: ["typeAnnotation"], builder: ["typeAnnotation", "operator"], fields: { operator: { validate: (0, q.assertValueType)("string"), default: "keyof" }, typeAnnotation: (0, q.validateType)("TSType") } }); oe("TSIndexedAccessType", { aliases: ["TSType"], visitor: ["objectType", "indexType"], fields: { objectType: (0, q.validateType)("TSType"), indexType: (0, q.validateType)("TSType") } }); oe("TSMappedType", { aliases: ["TSType"], visitor: ["typeParameter", "nameType", "typeAnnotation"], builder: ["typeParameter", "typeAnnotation", "nameType"], fields: Object.assign({}, { typeParameter: (0, q.validateType)("TSTypeParameter") }, { readonly: (0, q.validateOptional)((0, q.assertOneOf)(!0, !1, "+", "-")), optional: (0, q.validateOptional)((0, q.assertOneOf)(!0, !1, "+", "-")), typeAnnotation: (0, q.validateOptionalType)("TSType"), nameType: (0, q.validateOptionalType)("TSType") }) }); oe("TSTemplateLiteralType", { aliases: ["TSType", "TSBaseType"], visitor: ["quasis", "types"], fields: { quasis: (0, q.validateArrayOfType)("TemplateElement"), types: { validate: (0, q.chain)((0, q.assertValueType)("array"), (0, q.assertEach)((0, q.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, q.assertNodeType)("NumericLiteral", "BigIntLiteral"), t = (0, q.assertOneOf)("-"), r = (0, q.assertNodeType)("NumericL\ iteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral"), s = /* @__PURE__ */ i(function(a, o, l) { (0, FN.default)("UnaryExpression", l) ? (t(l, "operator", l.operator), e(l, "argument", l.argument)) : r(a, o, l); }, "validator"); return s.oneOfNodeTypes = ["NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral", "UnaryExpressi\ on"], s; }() } } }); oe("TSExpressionWithTypeArguments", { aliases: ["TSType"], visitor: ["expression", "typeParameters"], fields: { expression: (0, q.validateType)("TSEntityName"), typeParameters: (0, q.validateOptionalType)("TSTypeParameterInstantiation") } }); oe("TSInterfaceDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "typeParameters", "extends", "body"], fields: { declare: (0, q.validateOptional)(Xt), id: (0, q.validateType)("Identifier"), typeParameters: (0, q.validateOptionalType)("TSTypeParameterDeclaration"), extends: (0, q.validateOptional)((0, q.arrayOfType)("TSExpressionWithTypeArguments")), body: (0, q.validateType)("TSInterfaceBody") } }); oe("TSInterfaceBody", { visitor: ["body"], fields: { body: (0, q.validateArrayOfType)("TSTypeElement") } }); oe("TSTypeAliasDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "typeParameters", "typeAnnotation"], fields: { declare: (0, q.validateOptional)(Xt), id: (0, q.validateType)("Identifier"), typeParameters: (0, q.validateOptionalType)("TSTypeParameterDeclaration"), typeAnnotation: (0, q.validateType)("TSType") } }); oe("TSInstantiationExpression", { aliases: ["Expression"], visitor: ["expression", "typeParameters"], fields: { expression: (0, q.validateType)("Expression"), typeParameters: (0, q.validateOptionalType)("TSTypeParameterInstantiation") } }); var Fg = { aliases: ["Expression", "LVal", "PatternLike"], visitor: ["expression", "typeAnnotation"], fields: { expression: (0, q.validateType)("Expression"), typeAnnotation: (0, q.validateType)("TSType") } }; oe("TSAsExpression", Fg); oe("TSSatisfiesExpression", Fg); oe("TSTypeAssertion", { aliases: ["Expression", "LVal", "PatternLike"], visitor: ["typeAnnotation", "expression"], fields: { typeAnnotation: (0, q.validateType)("TSType"), expression: (0, q.validateType)("Expression") } }); oe("TSEnumBody", { visitor: ["members"], fields: { members: (0, q.validateArrayOfType)("TSEnumMember") } }); oe("TSEnumDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "members"], fields: { declare: (0, q.validateOptional)(Xt), const: (0, q.validateOptional)(Xt), id: (0, q.validateType)("Identifier"), members: (0, q.validateArrayOfType)("TSEnumMember"), initializer: (0, q.validateOptionalType)("Expression"), body: (0, q.validateOptionalType)("TSEnumBody") } }); oe("TSEnumMember", { visitor: ["id", "initializer"], fields: { id: (0, q.validateType)("Identifier", "StringLiteral"), initializer: (0, q.validateOptionalType)("Expression") } }); oe("TSModuleDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "body"], fields: Object.assign({ kind: { validate: (0, q.assertOneOf)("global", "module", "namespace") }, declare: (0, q.validateOptional)(Xt) }, { global: (0, q.validateOptional)(Xt) }, { id: (0, q.validateType)("Identifier", "StringLiteral"), body: (0, q.validateType)("TSModuleBlock", "TSModuleDeclaration") }) }); oe("TSModuleBlock", { aliases: ["Scopable", "Block", "BlockParent", "FunctionParent"], visitor: ["body"], fields: { body: (0, q.validateArrayOfType)("Statement") } }); oe("TSImportType", { aliases: ["TSType"], builder: ["argument", "qualifier", "typeParameters"], visitor: ["argument", "options", "qualifier", "typeParameters"], fields: { argument: (0, q.validateType)("StringLiteral"), qualifier: (0, q.validateOptionalType)("TSEntityName"), typeParameters: (0, q.validateOptionalType)("TSTypeParameterInstantiation"), options: { validate: (0, q.assertNodeType)("ObjectExpression"), optional: !0 } } }); oe("TSImportEqualsDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "moduleReference"], fields: Object.assign({}, { isExport: (0, q.validate)(Xt) }, { id: (0, q.validateType)("Identifier"), moduleReference: (0, q.validateType)("TSEntityName", "TSExternalModuleReference"), importKind: { validate: (0, q.assertOneOf)("type", "value"), optional: !0 } }) }); oe("TSExternalModuleReference", { visitor: ["expression"], fields: { expression: (0, q.validateType)("StringLiteral") } }); oe("TSNonNullExpression", { aliases: ["Expression", "LVal", "PatternLike"], visitor: ["expression"], fields: { expression: (0, q.validateType)("Expression") } }); oe("TSExportAssignment", { aliases: ["Statement"], visitor: ["expression"], fields: { expression: (0, q.validateType)("Expression") } }); oe("TSNamespaceExportDeclaration", { aliases: ["Statement"], visitor: ["id"], fields: { id: (0, q.validateType)("Identifier") } }); oe("TSTypeAnnotation", { visitor: ["typeAnnotation"], fields: { typeAnnotation: { validate: (0, q.assertNodeType)("TSType") } } }); oe("TSTypeParameterInstantiation", { visitor: ["params"], fields: { params: (0, q.validateArrayOfType)("TSType") } }); oe("TSTypeParameterDeclaration", { visitor: ["params"], fields: { params: (0, q.validateArrayOfType)("TSTypeParameter") } }); oe("TSTypeParameter", { builder: ["constraint", "default", "name"], visitor: ["constraint", "default"], fields: { name: { validate: (0, q.assertValueType)("string") }, in: { validate: (0, q.assertValueType)("boolean"), optional: !0 }, out: { validate: (0, q.assertValueType)("boolean"), optional: !0 }, const: { validate: (0, q.assertValueType)("boolean"), optional: !0 }, constraint: { validate: (0, q.assertNodeType)("TSType"), optional: !0 }, default: { validate: (0, q.assertNodeType)("TSType"), optional: !0 } } }); }); // ../node_modules/@babel/types/lib/definitions/deprecated-aliases.js var jg = w((Cl) => { "use strict"; Object.defineProperty(Cl, "__esModule", { value: !0 }); Cl.DEPRECATED_ALIASES = void 0; var nxe = Cl.DEPRECATED_ALIASES = { ModuleDeclaration: "ImportOrExportDeclaration" }; }); // ../node_modules/@babel/types/lib/definitions/index.js var fr = w((Nt) => { "use strict"; Object.defineProperty(Nt, "__esModule", { value: !0 }); Object.defineProperty(Nt, "ALIAS_KEYS", { enumerable: !0, get: /* @__PURE__ */ i(function() { return $t.ALIAS_KEYS; }, "get") }); Object.defineProperty(Nt, "BUILDER_KEYS", { enumerable: !0, get: /* @__PURE__ */ i(function() { return $t.BUILDER_KEYS; }, "get") }); Object.defineProperty(Nt, "DEPRECATED_ALIASES", { enumerable: !0, get: /* @__PURE__ */ i(function() { return Lf.DEPRECATED_ALIASES; }, "get") }); Object.defineProperty(Nt, "DEPRECATED_KEYS", { enumerable: !0, get: /* @__PURE__ */ i(function() { return $t.DEPRECATED_KEYS; }, "get") }); Object.defineProperty(Nt, "FLIPPED_ALIAS_KEYS", { enumerable: !0, get: /* @__PURE__ */ i(function() { return $t.FLIPPED_ALIAS_KEYS; }, "get") }); Object.defineProperty(Nt, "NODE_FIELDS", { enumerable: !0, get: /* @__PURE__ */ i(function() { return $t.NODE_FIELDS; }, "get") }); Object.defineProperty(Nt, "NODE_PARENT_VALIDATIONS", { enumerable: !0, get: /* @__PURE__ */ i(function() { return $t.NODE_PARENT_VALIDATIONS; }, "get") }); Object.defineProperty(Nt, "NODE_UNION_SHAPES__PRIVATE", { enumerable: !0, get: /* @__PURE__ */ i(function() { return $t.NODE_UNION_SHAPES__PRIVATE; }, "get") }); Object.defineProperty(Nt, "PLACEHOLDERS", { enumerable: !0, get: /* @__PURE__ */ i(function() { return jf.PLACEHOLDERS; }, "get") }); Object.defineProperty(Nt, "PLACEHOLDERS_ALIAS", { enumerable: !0, get: /* @__PURE__ */ i(function() { return jf.PLACEHOLDERS_ALIAS; }, "get") }); Object.defineProperty(Nt, "PLACEHOLDERS_FLIPPED_ALIAS", { enumerable: !0, get: /* @__PURE__ */ i(function() { return jf.PLACEHOLDERS_FLIPPED_ALIAS; }, "get") }); Nt.TYPES = void 0; Object.defineProperty(Nt, "VISITOR_KEYS", { enumerable: !0, get: /* @__PURE__ */ i(function() { return $t.VISITOR_KEYS; }, "get") }); Na(); Cg(); wg(); Dg(); _g(); Lg(); var $t = es(), jf = Bf(), Lf = jg(); Object.keys(Lf.DEPRECATED_ALIASES).forEach((e) => { $t.FLIPPED_ALIAS_KEYS[e] = $t.FLIPPED_ALIAS_KEYS[Lf.DEPRECATED_ALIASES[e]]; }); for (let { types: e, set: t } of $t.allExpandedTypes) for (let r of e) { let s = $t.FLIPPED_ALIAS_KEYS[r]; s ? s.forEach(t.add, t) : t.add(r); } var axe = Nt.TYPES = [].concat(Object.keys($t.VISITOR_KEYS), Object.keys($t.FLIPPED_ALIAS_KEYS), Object.keys($t.DEPRECATED_KEYS)); }); // ../node_modules/@babel/types/lib/validators/validate.js var Sl = w((Si) => { "use strict"; Object.defineProperty(Si, "__esModule", { value: !0 }); Si.default = jN; Si.validateChild = Rg; Si.validateField = Mg; Si.validateInternal = MN; var Ba = fr(); function jN(e, t, r) { if (!e) return; let s = Ba.NODE_FIELDS[e.type]; if (!s) return; let n = s[t]; Mg(e, t, r, n), Rg(e, t, r); } i(jN, "validate"); function MN(e, t, r, s, n) { if (e != null && e.validate && !(e.optional && s == null) && (e.validate(t, r, s), n)) { var a; let o = s.type; if (o == null) return; (a = Ba.NODE_PARENT_VALIDATIONS[o]) == null || a.call(Ba.NODE_PARENT_VALIDATIONS, t, r, s); } } i(MN, "validateInternal"); function Mg(e, t, r, s) { s != null && s.validate && (s.optional && r == null || s.validate(e, t, r)); } i(Mg, "validateField"); function Rg(e, t, r) { var s; let n = r?.type; n != null && ((s = Ba.NODE_PARENT_VALIDATIONS[n]) == null || s.call(Ba.NODE_PARENT_VALIDATIONS, e, t, r)); } i(Rg, "validateChild"); }); // ../node_modules/@babel/types/lib/builders/generated/lowercase.js var Mf = w((x) => { "use strict"; Object.defineProperty(x, "__esModule", { value: !0 }); x.anyTypeAnnotation = gk; x.argumentPlaceholder = HF; x.arrayExpression = $N; x.arrayPattern = jB; x.arrayTypeAnnotation = Tk; x.arrowFunctionExpression = MB; x.assignmentExpression = VN; x.assignmentPattern = LB; x.awaitExpression = ak; x.bigIntLiteral = UN; x.binaryExpression = KN; x.bindExpression = JF; x.blockStatement = JN; x.booleanLiteral = hB; x.booleanLiteralTypeAnnotation = Ek; x.booleanTypeAnnotation = xk; x.breakStatement = GN; x.callExpression = XN; x.catchClause = zN; x.classAccessorProperty = fk; x.classBody = RB; x.classDeclaration = UB; x.classExpression = qB; x.classImplements = vk; x.classMethod = ZB; x.classPrivateMethod = hk; x.classPrivateProperty = dk; x.classProperty = pk; x.conditionalExpression = QN; x.continueStatement = ZN; x.debuggerStatement = eB; x.decimalLiteral = eL; x.declareClass = Pk; x.declareExportAllDeclaration = Bk; x.declareExportDeclaration = Nk; x.declareFunction = Ak; x.declareInterface = Ck; x.declareModule = wk; x.declareModuleExports = Dk; x.declareOpaqueType = Ik; x.declareTypeAlias = _k; x.declareVariable = Ok; x.declaredPredicate = kk; x.decorator = GF; x.directive = YN; x.directiveLiteral = HN; x.doExpression = XF; x.doWhileStatement = tB; x.emptyStatement = rB; x.emptyTypeAnnotation = Wk; x.enumBooleanBody = TF; x.enumBooleanMember = vF; x.enumDeclaration = gF; x.enumDefaultedMember = CF; x.enumNumberBody = xF; x.enumNumberMember = PF; x.enumStringBody = EF; x.enumStringMember = AF; x.enumSymbolBody = SF; x.existsTypeAnnotation = Fk; x.exportAllDeclaration = $B; x.exportDefaultDeclaration = VB; x.exportDefaultSpecifier = zF; x.exportNamedDeclaration = KB; x.exportNamespaceSpecifier = lk; x.exportSpecifier = WB; x.expressionStatement = sB; x.file = nB; x.forInStatement = iB; x.forOfStatement = YB; x.forStatement = aB; x.functionDeclaration = oB; x.functionExpression = lB; x.functionTypeAnnotation = Lk; x.functionTypeParam = jk; x.genericTypeAnnotation = Mk; x.identifier = uB; x.ifStatement = cB; x.import = ok; x.importAttribute = bk; x.importDeclaration = HB; x.importDefaultSpecifier = JB; x.importExpression = zB; x.importNamespaceSpecifier = GB; x.importSpecifier = XB; x.indexedAccessType = wF; x.inferredPredicate = Rk; x.interfaceDeclaration = Uk; x.interfaceExtends = qk; x.interfaceTypeAnnotation = $k; x.interpreterDirective = WN; x.intersectionTypeAnnotation = Vk; x.jSXAttribute = x.jsxAttribute = _F; x.jSXClosingElement = x.jsxClosingElement = IF; x.jSXClosingFragment = x.jsxClosingFragment = VF; x.jSXElement = x.jsxElement = OF; x.jSXEmptyExpression = x.jsxEmptyExpression = NF; x.jSXExpressionContainer = x.jsxExpressionContainer = BF; x.jSXFragment = x.jsxFragment = UF; x.jSXIdentifier = x.jsxIdentifier = FF; x.jSXMemberExpression = x.jsxMemberExpression = LF; x.jSXNamespacedName = x.jsxNamespacedName = jF; x.jSXOpeningElement = x.jsxOpeningElement = MF; x.jSXOpeningFragment = x.jsxOpeningFragment = $F; x.jSXSpreadAttribute = x.jsxSpreadAttribute = RF; x.jSXSpreadChild = x.jsxSpreadChild = kF; x.jSXText = x.jsxText = qF; x.labeledStatement = pB; x.logicalExpression = mB; x.memberExpression = yB; x.metaProperty = QB; x.mixedTypeAnnotation = Kk; x.moduleExpression = tL; x.newExpression = bB; x.noop = KF; x.nullLiteral = dB; x.nullLiteralTypeAnnotation = Sk; x.nullableTypeAnnotation = Yk; x.numberLiteral = xj; x.numberLiteralTypeAnnotation = Hk; x.numberTypeAnnotation = Jk; x.numericLiteral = qg; x.objectExpression = TB; x.objectMethod = xB; x.objectPattern = ek; x.objectProperty = EB; x.objectTypeAnnotation = Gk; x.objectTypeCallProperty = zk; x.objectTypeIndexer = Qk; x.objectTypeInternalSlot = Xk; x.objectTypeProperty = Zk; x.objectTypeSpreadProperty = eF; x.opaqueType = tF; x.optionalCallExpression = ck; x.optionalIndexedAccessType = DF; x.optionalMemberExpression = uk; x.parenthesizedExpression = PB; x.pipelineBareFunction = nL; x.pipelinePrimaryTopicReference = iL; x.pipelineTopicExpression = sL; x.placeholder = WF; x.privateName = mk; x.program = gB; x.qualifiedTypeIdentifier = rF; x.recordExpression = QF; x.regExpLiteral = Ug; x.regexLiteral = Ej; x.restElement = $g; x.restProperty = Sj; x.returnStatement = SB; x.sequenceExpression = vB; x.spreadElement = Vg; x.spreadProperty = vj; x.staticBlock = yk; x.stringLiteral = fB; x.stringLiteralTypeAnnotation = sF; x.stringTypeAnnotation = nF; x.super = tk; x.switchCase = AB; x.switchStatement = CB; x.symbolTypeAnnotation = iF; x.taggedTemplateExpression = rk; x.templateElement = sk; x.templateLiteral = nk; x.thisExpression = wB; x.thisTypeAnnotation = aF; x.throwStatement = DB; x.topicReference = rL; x.tryStatement = _B; x.tSAnyKeyword = x.tsAnyKeyword = yL; x.tSArrayType = x.tsArrayType = LL; x.tSAsExpression = x.tsAsExpression = rj; x.tSBigIntKeyword = x.tsBigIntKeyword = gL; x.tSBooleanKeyword = x.tsBooleanKeyword = bL; x.tSCallSignatureDeclaration = x.tsCallSignatureDeclaration = pL; x.tSConditionalType = x.tsConditionalType = VL; x.tSConstructSignatureDeclaration = x.tsConstructSignatureDeclaration = fL; x.tSConstructorType = x.tsConstructorType = OL; x.tSDeclareFunction = x.tsDeclareFunction = lL; x.tSDeclareMethod = x.tsDeclareMethod = uL; x.tSEnumBody = x.tsEnumBody = ij; x.tSEnumDeclaration = x.tsEnumDeclaration = aj; x.tSEnumMember = x.tsEnumMember = oj; x.tSExportAssignment = x.tsExportAssignment = hj; x.tSExpressionWithTypeArguments = x.tsExpressionWithTypeArguments = zL; x.tSExternalModuleReference = x.tsExternalModuleReference = fj; x.tSFunctionType = x.tsFunctionType = IL; x.tSImportEqualsDeclaration = x.tsImportEqualsDeclaration = pj; x.tSImportType = x.tsImportType = cj; x.tSIndexSignature = x.tsIndexSignature = mL; x.tSIndexedAccessType = x.tsIndexedAccessType = HL; x.tSInferType = x.tsInferType = KL; x.tSInstantiationExpression = x.tsInstantiationExpression = tj; x.tSInterfaceBody = x.tsInterfaceBody = ZL; x.tSInterfaceDeclaration = x.tsInterfaceDeclaration = QL; x.tSIntersectionType = x.tsIntersectionType = $L; x.tSIntrinsicKeyword = x.tsIntrinsicKeyword = TL; x.tSLiteralType = x.tsLiteralType = XL; x.tSMappedType = x.tsMappedType = JL; x.tSMethodSignature = x.tsMethodSignature = hL; x.tSModuleBlock = x.tsModuleBlock = uj; x.tSModuleDeclaration = x.tsModuleDeclaration = lj; x.tSNamedTupleMember = x.tsNamedTupleMember = qL; x.tSNamespaceExportDeclaration = x.tsNamespaceExportDeclaration = mj; x.tSNeverKeyword = x.tsNeverKeyword = xL; x.tSNonNullExpression = x.tsNonNullExpression = dj; x.tSNullKeyword = x.tsNullKeyword = EL; x.tSNumberKeyword = x.tsNumberKeyword = SL; x.tSObjectKeyword = x.tsObjectKeyword = vL; x.tSOptionalType = x.tsOptionalType = ML; x.tSParameterProperty = x.tsParameterProperty = oL; x.tSParenthesizedType = x.tsParenthesizedType = WL; x.tSPropertySignature = x.tsPropertySignature = dL; x.tSQualifiedName = x.tsQualifiedName = cL; x.tSRestType = x.tsRestType = RL; x.tSSatisfiesExpression = x.tsSatisfiesExpression = sj; x.tSStringKeyword = x.tsStringKeyword = PL; x.tSSymbolKeyword = x.tsSymbolKeyword = AL; x.tSTemplateLiteralType = x.tsTemplateLiteralType = GL; x.tSThisType = x.tsThisType = _L; x.tSTupleType = x.tsTupleType = jL; x.tSTypeAliasDeclaration = x.tsTypeAliasDeclaration = ej; x.tSTypeAnnotation = x.tsTypeAnnotation = yj; x.tSTypeAssertion = x.tsTypeAssertion = nj; x.tSTypeLiteral = x.tsTypeLiteral = FL; x.tSTypeOperator = x.tsTypeOperator = YL; x.tSTypeParameter = x.tsTypeParameter = Tj; x.tSTypeParameterDeclaration = x.tsTypeParameterDeclaration = gj; x.tSTypeParameterInstantiation = x.tsTypeParameterInstantiation = bj; x.tSTypePredicate = x.tsTypePredicate = BL; x.tSTypeQuery = x.tsTypeQuery = kL; x.tSTypeReference = x.tsTypeReference = NL; x.tSUndefinedKeyword = x.tsUndefinedKeyword = CL; x.tSUnionType = x.tsUnionType = UL; x.tSUnknownKeyword = x.tsUnknownKeyword = wL; x.tSVoidKeyword = x.tsVoidKeyword = DL; x.tupleExpression = ZF; x.tupleTypeAnnotation = oF; x.typeAlias = uF; x.typeAnnotation = cF; x.typeCastExpression = pF; x.typeParameter = fF; x.typeParameterDeclaration = dF; x.typeParameterInstantiation = hF; x.typeofTypeAnnotation = lF; x.unaryExpression = IB; x.unionTypeAnnotation = mF; x.updateExpression = OB; x.v8IntrinsicIdentifier = YF; x.variableDeclaration = NB; x.variableDeclarator = BB; x.variance = yF; x.voidPattern = aL; x.voidTypeAnnotation = bF; x.whileStatement = kB; x.withStatement = FB; x.yieldExpression = ik; var RN = Sl(), wl = hi(), qN = es(), { validateInternal: y } = RN, { NODE_FIELDS: B } = qN; function UN(e) { typeof e == "bigint" && (e = e.toString()); let t = { type: "BigIntLiteral", value: e }, r = B.BigIntLiteral; return y(r.value, t, "value", e), t; } i(UN, "bigIntLiteral"); function $N(e = []) { let t = { type: "ArrayExpression", elements: e }, r = B.ArrayExpression; return y(r.elements, t, "elements", e, 1), t; } i($N, "arrayExpression"); function VN(e, t, r) { let s = { type: "AssignmentExpression", operator: e, left: t, right: r }, n = B.AssignmentExpression; return y(n.operator, s, "operator", e), y(n.left, s, "left", t, 1), y(n.right, s, "right", r, 1), s; } i(VN, "assignmentExpression"); function KN(e, t, r) { let s = { type: "BinaryExpression", operator: e, left: t, right: r }, n = B.BinaryExpression; return y(n.operator, s, "operator", e), y(n.left, s, "left", t, 1), y(n.right, s, "right", r, 1), s; } i(KN, "binaryExpression"); function WN(e) { let t = { type: "InterpreterDirective", value: e }, r = B.InterpreterDirective; return y(r.value, t, "value", e), t; } i(WN, "interpreterDirective"); function YN(e) { let t = { type: "Directive", value: e }, r = B.Directive; return y(r.value, t, "value", e, 1), t; } i(YN, "directive"); function HN(e) { let t = { type: "DirectiveLiteral", value: e }, r = B.DirectiveLiteral; return y(r.value, t, "value", e), t; } i(HN, "directiveLiteral"); function JN(e, t = []) { let r = { type: "BlockStatement", body: e, directives: t }, s = B.BlockStatement; return y(s.body, r, "body", e, 1), y(s.directives, r, "directives", t, 1), r; } i(JN, "blockStatement"); function GN(e = null) { let t = { type: "BreakStatement", label: e }, r = B.BreakStatement; return y(r.label, t, "label", e, 1), t; } i(GN, "breakStatement"); function XN(e, t) { let r = { type: "CallExpression", callee: e, arguments: t }, s = B.CallExpression; return y(s.callee, r, "callee", e, 1), y(s.arguments, r, "arguments", t, 1), r; } i(XN, "callExpression"); function zN(e = null, t) { let r = { type: "CatchClause", param: e, body: t }, s = B.CatchClause; return y(s.param, r, "param", e, 1), y(s.body, r, "body", t, 1), r; } i(zN, "catchClause"); function QN(e, t, r) { let s = { type: "ConditionalExpression", test: e, consequent: t, alternate: r }, n = B.ConditionalExpression; return y(n.test, s, "test", e, 1), y(n.consequent, s, "consequent", t, 1), y(n.alternate, s, "alternate", r, 1), s; } i(QN, "conditionalExpression"); function ZN(e = null) { let t = { type: "ContinueStatement", label: e }, r = B.ContinueStatement; return y(r.label, t, "label", e, 1), t; } i(ZN, "continueStatement"); function eB() { return { type: "DebuggerStatement" }; } i(eB, "debuggerStatement"); function tB(e, t) { let r = { type: "DoWhileStatement", test: e, body: t }, s = B.DoWhileStatement; return y(s.test, r, "test", e, 1), y(s.body, r, "body", t, 1), r; } i(tB, "doWhileStatement"); function rB() { return { type: "EmptyStatement" }; } i(rB, "emptyStatement"); function sB(e) { let t = { type: "ExpressionStatement", expression: e }, r = B.ExpressionStatement; return y(r.expression, t, "expression", e, 1), t; } i(sB, "expressionStatement"); function nB(e, t = null, r = null) { let s = { type: "File", program: e, comments: t, tokens: r }, n = B.File; return y(n.program, s, "program", e, 1), y(n.comments, s, "comments", t, 1), y(n.tokens, s, "tokens", r), s; } i(nB, "file"); function iB(e, t, r) { let s = { type: "ForInStatement", left: e, right: t, body: r }, n = B.ForInStatement; return y(n.left, s, "left", e, 1), y(n.right, s, "right", t, 1), y(n.body, s, "body", r, 1), s; } i(iB, "forInStatement"); function aB(e = null, t = null, r = null, s) { let n = { type: "ForStatement", init: e, test: t, update: r, body: s }, a = B.ForStatement; return y(a.init, n, "init", e, 1), y(a.test, n, "test", t, 1), y(a.update, n, "update", r, 1), y(a.body, n, "body", s, 1), n; } i(aB, "forStatement"); function oB(e = null, t, r, s = !1, n = !1) { let a = { type: "FunctionDeclaration", id: e, params: t, body: r, generator: s, async: n }, o = B.FunctionDeclaration; return y(o.id, a, "id", e, 1), y(o.params, a, "params", t, 1), y(o.body, a, "body", r, 1), y(o.generator, a, "generator", s), y(o.async, a, "async", n), a; } i(oB, "functionDeclaration"); function lB(e = null, t, r, s = !1, n = !1) { let a = { type: "FunctionExpression", id: e, params: t, body: r, generator: s, async: n }, o = B.FunctionExpression; return y(o.id, a, "id", e, 1), y(o.params, a, "params", t, 1), y(o.body, a, "body", r, 1), y(o.generator, a, "generator", s), y(o.async, a, "async", n), a; } i(lB, "functionExpression"); function uB(e) { let t = { type: "Identifier", name: e }, r = B.Identifier; return y(r.name, t, "name", e), t; } i(uB, "identifier"); function cB(e, t, r = null) { let s = { type: "IfStatement", test: e, consequent: t, alternate: r }, n = B.IfStatement; return y(n.test, s, "test", e, 1), y(n.consequent, s, "consequent", t, 1), y(n.alternate, s, "alternate", r, 1), s; } i(cB, "ifStatement"); function pB(e, t) { let r = { type: "LabeledStatement", label: e, body: t }, s = B.LabeledStatement; return y(s.label, r, "label", e, 1), y(s.body, r, "body", t, 1), r; } i(pB, "labeledStatement"); function fB(e) { let t = { type: "StringLiteral", value: e }, r = B.StringLiteral; return y(r.value, t, "value", e), t; } i(fB, "stringLiteral"); function qg(e) { let t = { type: "NumericLiteral", value: e }, r = B.NumericLiteral; return y(r.value, t, "value", e), t; } i(qg, "numericLiteral"); function dB() { return { type: "NullLiteral" }; } i(dB, "nullLiteral"); function hB(e) { let t = { type: "BooleanLiteral", value: e }, r = B.BooleanLiteral; return y(r.value, t, "value", e), t; } i(hB, "booleanLiteral"); function Ug(e, t = "") { let r = { type: "RegExpLiteral", pattern: e, flags: t }, s = B.RegExpLiteral; return y(s.pattern, r, "pattern", e), y(s.flags, r, "flags", t), r; } i(Ug, "regExpLiteral"); function mB(e, t, r) { let s = { type: "LogicalExpression", operator: e, left: t, right: r }, n = B.LogicalExpression; return y(n.operator, s, "operator", e), y(n.left, s, "left", t, 1), y(n.right, s, "right", r, 1), s; } i(mB, "logicalExpression"); function yB(e, t, r = !1, s = null) { let n = { type: "MemberExpression", object: e, property: t, computed: r, optional: s }, a = B.MemberExpression; return y(a.object, n, "object", e, 1), y(a.property, n, "property", t, 1), y(a.computed, n, "computed", r), y(a.optional, n, "optional", s), n; } i(yB, "memberExpression"); function bB(e, t) { let r = { type: "NewExpression", callee: e, arguments: t }, s = B.NewExpression; return y(s.callee, r, "callee", e, 1), y(s.arguments, r, "arguments", t, 1), r; } i(bB, "newExpression"); function gB(e, t = [], r = "script", s = null) { let n = { type: "Program", body: e, directives: t, sourceType: r, interpreter: s }, a = B.Program; return y(a.body, n, "body", e, 1), y(a.directives, n, "directives", t, 1), y(a.sourceType, n, "sourceType", r), y(a.interpreter, n, "int\ erpreter", s, 1), n; } i(gB, "program"); function TB(e) { let t = { type: "ObjectExpression", properties: e }, r = B.ObjectExpression; return y(r.properties, t, "properties", e, 1), t; } i(TB, "objectExpression"); function xB(e = "method", t, r, s, n = !1, a = !1, o = !1) { let l = { type: "ObjectMethod", kind: e, key: t, params: r, body: s, computed: n, generator: a, async: o }, u = B.ObjectMethod; 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", s, 1), y(u.computed, l, "\ computed", n), y(u.generator, l, "generator", a), y(u.async, l, "async", o), l; } i(xB, "objectMethod"); function EB(e, t, r = !1, s = !1, n = null) { let a = { type: "ObjectProperty", key: e, value: t, computed: r, shorthand: s, decorators: n }, o = B.ObjectProperty; return y(o.key, a, "key", e, 1), y(o.value, a, "value", t, 1), y(o.computed, a, "computed", r), y(o.shorthand, a, "shorthand", s), y(o.decorators, a, "decorators", n, 1), a; } i(EB, "objectProperty"); function $g(e) { let t = { type: "RestElement", argument: e }, r = B.RestElement; return y(r.argument, t, "argument", e, 1), t; } i($g, "restElement"); function SB(e = null) { let t = { type: "ReturnStatement", argument: e }, r = B.ReturnStatement; return y(r.argument, t, "argument", e, 1), t; } i(SB, "returnStatement"); function vB(e) { let t = { type: "SequenceExpression", expressions: e }, r = B.SequenceExpression; return y(r.expressions, t, "expressions", e, 1), t; } i(vB, "sequenceExpression"); function PB(e) { let t = { type: "ParenthesizedExpression", expression: e }, r = B.ParenthesizedExpression; return y(r.expression, t, "expression", e, 1), t; } i(PB, "parenthesizedExpression"); function AB(e = null, t) { let r = { type: "SwitchCase", test: e, consequent: t }, s = B.SwitchCase; return y(s.test, r, "test", e, 1), y(s.consequent, r, "consequent", t, 1), r; } i(AB, "switchCase"); function CB(e, t) { let r = { type: "SwitchStatement", discriminant: e, cases: t }, s = B.SwitchStatement; return y(s.discriminant, r, "discriminant", e, 1), y(s.cases, r, "cases", t, 1), r; } i(CB, "switchStatement"); function wB() { return { type: "ThisExpression" }; } i(wB, "thisExpression"); function DB(e) { let t = { type: "ThrowStatement", argument: e }, r = B.ThrowStatement; return y(r.argument, t, "argument", e, 1), t; } i(DB, "throwStatement"); function _B(e, t = null, r = null) { let s = { type: "TryStatement", block: e, handler: t, finalizer: r }, n = B.TryStatement; return y(n.block, s, "block", e, 1), y(n.handler, s, "handler", t, 1), y(n.finalizer, s, "finalizer", r, 1), s; } i(_B, "tryStatement"); function IB(e, t, r = !0) { let s = { type: "UnaryExpression", operator: e, argument: t, prefix: r }, n = B.UnaryExpression; return y(n.operator, s, "operator", e), y(n.argument, s, "argument", t, 1), y(n.prefix, s, "prefix", r), s; } i(IB, "unaryExpression"); function OB(e, t, r = !1) { let s = { type: "UpdateExpression", operator: e, argument: t, prefix: r }, n = B.UpdateExpression; return y(n.operator, s, "operator", e), y(n.argument, s, "argument", t, 1), y(n.prefix, s, "prefix", r), s; } i(OB, "updateExpression"); function NB(e, t) { let r = { type: "VariableDeclaration", kind: e, declarations: t }, s = B.VariableDeclaration; return y(s.kind, r, "kind", e), y(s.declarations, r, "declarations", t, 1), r; } i(NB, "variableDeclaration"); function BB(e, t = null) { let r = { type: "VariableDeclarator", id: e, init: t }, s = B.VariableDeclarator; return y(s.id, r, "id", e, 1), y(s.init, r, "init", t, 1), r; } i(BB, "variableDeclarator"); function kB(e, t) { let r = { type: "WhileStatement", test: e, body: t }, s = B.WhileStatement; return y(s.test, r, "test", e, 1), y(s.body, r, "body", t, 1), r; } i(kB, "whileStatement"); function FB(e, t) { let r = { type: "WithStatement", object: e, body: t }, s = B.WithStatement; return y(s.object, r, "object", e, 1), y(s.body, r, "body", t, 1), r; } i(FB, "withStatement"); function LB(e, t) { let r = { type: "AssignmentPattern", left: e, right: t }, s = B.AssignmentPattern; return y(s.left, r, "left", e, 1), y(s.right, r, "right", t, 1), r; } i(LB, "assignmentPattern"); function jB(e) { let t = { type: "ArrayPattern", elements: e }, r = B.ArrayPattern; return y(r.elements, t, "elements", e, 1), t; } i(jB, "arrayPattern"); function MB(e, t, r = !1) { let s = { type: "ArrowFunctionExpression", params: e, body: t, async: r, expression: null }, n = B.ArrowFunctionExpression; return y(n.params, s, "params", e, 1), y(n.body, s, "body", t, 1), y(n.async, s, "async", r), s; } i(MB, "arrowFunctionExpression"); function RB(e) { let t = { type: "ClassBody", body: e }, r = B.ClassBody; return y(r.body, t, "body", e, 1), t; } i(RB, "classBody"); function qB(e = null, t = null, r, s = null) { let n = { type: "ClassExpression", id: e, superClass: t, body: r, decorators: s }, a = B.ClassExpression; return y(a.id, n, "id", e, 1), y(a.superClass, n, "superClass", t, 1), y(a.body, n, "body", r, 1), y(a.decorators, n, "decorators", s, 1), n; } i(qB, "classExpression"); function UB(e = null, t = null, r, s = null) { let n = { type: "ClassDeclaration", id: e, superClass: t, body: r, decorators: s }, a = B.ClassDeclaration; return y(a.id, n, "id", e, 1), y(a.superClass, n, "superClass", t, 1), y(a.body, n, "body", r, 1), y(a.decorators, n, "decorators", s, 1), n; } i(UB, "classDeclaration"); function $B(e) { let t = { type: "ExportAllDeclaration", source: e }, r = B.ExportAllDeclaration; return y(r.source, t, "source", e, 1), t; } i($B, "exportAllDeclaration"); function VB(e) { let t = { type: "ExportDefaultDeclaration", declaration: e }, r = B.ExportDefaultDeclaration; return y(r.declaration, t, "declaration", e, 1), t; } i(VB, "exportDefaultDeclaration"); function KB(e = null, t = [], r = null) { let s = { type: "ExportNamedDeclaration", declaration: e, specifiers: t, source: r }, n = B.ExportNamedDeclaration; return y(n.declaration, s, "declaration", e, 1), y(n.specifiers, s, "specifiers", t, 1), y(n.source, s, "source", r, 1), s; } i(KB, "exportNamedDeclaration"); function WB(e, t) { let r = { type: "ExportSpecifier", local: e, exported: t }, s = B.ExportSpecifier; return y(s.local, r, "local", e, 1), y(s.exported, r, "exported", t, 1), r; } i(WB, "exportSpecifier"); function YB(e, t, r, s = !1) { let n = { type: "ForOfStatement", left: e, right: t, body: r, await: s }, a = B.ForOfStatement; return y(a.left, n, "left", e, 1), y(a.right, n, "right", t, 1), y(a.body, n, "body", r, 1), y(a.await, n, "await", s), n; } i(YB, "forOfStatement"); function HB(e, t) { let r = { type: "ImportDeclaration", specifiers: e, source: t }, s = B.ImportDeclaration; return y(s.specifiers, r, "specifiers", e, 1), y(s.source, r, "source", t, 1), r; } i(HB, "importDeclaration"); function JB(e) { let t = { type: "ImportDefaultSpecifier", local: e }, r = B.ImportDefaultSpecifier; return y(r.local, t, "local", e, 1), t; } i(JB, "importDefaultSpecifier"); function GB(e) { let t = { type: "ImportNamespaceSpecifier", local: e }, r = B.ImportNamespaceSpecifier; return y(r.local, t, "local", e, 1), t; } i(GB, "importNamespaceSpecifier"); function XB(e, t) { let r = { type: "ImportSpecifier", local: e, imported: t }, s = B.ImportSpecifier; return y(s.local, r, "local", e, 1), y(s.imported, r, "imported", t, 1), r; } i(XB, "importSpecifier"); function zB(e, t = null) { let r = { type: "ImportExpression", source: e, options: t }, s = B.ImportExpression; return y(s.source, r, "source", e, 1), y(s.options, r, "options", t, 1), r; } i(zB, "importExpression"); function QB(e, t) { let r = { type: "MetaProperty", meta: e, property: t }, s = B.MetaProperty; return y(s.meta, r, "meta", e, 1), y(s.property, r, "property", t, 1), r; } i(QB, "metaProperty"); function ZB(e = "method", t, r, s, n = !1, a = !1, o = !1, l = !1) { let u = { type: "ClassMethod", kind: e, key: t, params: r, body: s, computed: n, static: a, generator: o, async: l }, c = B.ClassMethod; return y(c.kind, u, "kind", e), y(c.key, u, "key", t, 1), y(c.params, u, "params", r, 1), y(c.body, u, "body", s, 1), y(c.computed, u, "\ computed", n), y(c.static, u, "static", a), y(c.generator, u, "generator", o), y(c.async, u, "async", l), u; } i(ZB, "classMethod"); function ek(e) { let t = { type: "ObjectPattern", properties: e }, r = B.ObjectPattern; return y(r.properties, t, "properties", e, 1), t; } i(ek, "objectPattern"); function Vg(e) { let t = { type: "SpreadElement", argument: e }, r = B.SpreadElement; return y(r.argument, t, "argument", e, 1), t; } i(Vg, "spreadElement"); function tk() { return { type: "Super" }; } i(tk, "_super"); function rk(e, t) { let r = { type: "TaggedTemplateExpression", tag: e, quasi: t }, s = B.TaggedTemplateExpression; return y(s.tag, r, "tag", e, 1), y(s.quasi, r, "quasi", t, 1), r; } i(rk, "taggedTemplateExpression"); function sk(e, t = !1) { let r = { type: "TemplateElement", value: e, tail: t }, s = B.TemplateElement; return y(s.value, r, "value", e), y(s.tail, r, "tail", t), r; } i(sk, "templateElement"); function nk(e, t) { let r = { type: "TemplateLiteral", quasis: e, expressions: t }, s = B.TemplateLiteral; return y(s.quasis, r, "quasis", e, 1), y(s.expressions, r, "expressions", t, 1), r; } i(nk, "templateLiteral"); function ik(e = null, t = !1) { let r = { type: "YieldExpression", argument: e, delegate: t }, s = B.YieldExpression; return y(s.argument, r, "argument", e, 1), y(s.delegate, r, "delegate", t), r; } i(ik, "yieldExpression"); function ak(e) { let t = { type: "AwaitExpression", argument: e }, r = B.AwaitExpression; return y(r.argument, t, "argument", e, 1), t; } i(ak, "awaitExpression"); function ok() { return { type: "Import" }; } i(ok, "_import"); function lk(e) { let t = { type: "ExportNamespaceSpecifier", exported: e }, r = B.ExportNamespaceSpecifier; return y(r.exported, t, "exported", e, 1), t; } i(lk, "exportNamespaceSpecifier"); function uk(e, t, r = !1, s) { let n = { type: "OptionalMemberExpression", object: e, property: t, computed: r, optional: s }, a = B.OptionalMemberExpression; return y(a.object, n, "object", e, 1), y(a.property, n, "property", t, 1), y(a.computed, n, "computed", r), y(a.optional, n, "optional", s), n; } i(uk, "optionalMemberExpression"); function ck(e, t, r) { let s = { type: "OptionalCallExpression", callee: e, arguments: t, optional: r }, n = B.OptionalCallExpression; return y(n.callee, s, "callee", e, 1), y(n.arguments, s, "arguments", t, 1), y(n.optional, s, "optional", r), s; } i(ck, "optionalCallExpression"); function pk(e, t = null, r = null, s = null, n = !1, a = !1) { let o = { type: "ClassProperty", key: e, value: t, typeAnnotation: r, decorators: s, computed: n, static: a }, l = B.ClassProperty; return y(l.key, o, "key", e, 1), y(l.value, o, "value", t, 1), y(l.typeAnnotation, o, "typeAnnotation", r, 1), y(l.decorators, o, "decor\ ators", s, 1), y(l.computed, o, "computed", n), y(l.static, o, "static", a), o; } i(pk, "classProperty"); function fk(e, t = null, r = null, s = null, n = !1, a = !1) { let o = { type: "ClassAccessorProperty", key: e, value: t, typeAnnotation: r, decorators: s, computed: n, static: a }, l = B.ClassAccessorProperty; return y(l.key, o, "key", e, 1), y(l.value, o, "value", t, 1), y(l.typeAnnotation, o, "typeAnnotation", r, 1), y(l.decorators, o, "decor\ ators", s, 1), y(l.computed, o, "computed", n), y(l.static, o, "static", a), o; } i(fk, "classAccessorProperty"); function dk(e, t = null, r = null, s = !1) { let n = { type: "ClassPrivateProperty", key: e, value: t, decorators: r, static: s }, a = B.ClassPrivateProperty; return y(a.key, n, "key", e, 1), y(a.value, n, "value", t, 1), y(a.decorators, n, "decorators", r, 1), y(a.static, n, "static", s), n; } i(dk, "classPrivateProperty"); function hk(e = "method", t, r, s, n = !1) { let a = { type: "ClassPrivateMethod", kind: e, key: t, params: r, body: s, static: n }, o = B.ClassPrivateMethod; return y(o.kind, a, "kind", e), y(o.key, a, "key", t, 1), y(o.params, a, "params", r, 1), y(o.body, a, "body", s, 1), y(o.static, a, "st\ atic", n), a; } i(hk, "classPrivateMethod"); function mk(e) { let t = { type: "PrivateName", id: e }, r = B.PrivateName; return y(r.id, t, "id", e, 1), t; } i(mk, "privateName"); function yk(e) { let t = { type: "StaticBlock", body: e }, r = B.StaticBlock; return y(r.body, t, "body", e, 1), t; } i(yk, "staticBlock"); function bk(e, t) { let r = { type: "ImportAttribute", key: e, value: t }, s = B.ImportAttribute; return y(s.key, r, "key", e, 1), y(s.value, r, "value", t, 1), r; } i(bk, "importAttribute"); function gk() { return { type: "AnyTypeAnnotation" }; } i(gk, "anyTypeAnnotation"); function Tk(e) { let t = { type: "ArrayTypeAnnotation", elementType: e }, r = B.ArrayTypeAnnotation; return y(r.elementType, t, "elementType", e, 1), t; } i(Tk, "arrayTypeAnnotation"); function xk() { return { type: "BooleanTypeAnnotation" }; } i(xk, "booleanTypeAnnotation"); function Ek(e) { let t = { type: "BooleanLiteralTypeAnnotation", value: e }, r = B.BooleanLiteralTypeAnnotation; return y(r.value, t, "value", e), t; } i(Ek, "booleanLiteralTypeAnnotation"); function Sk() { return { type: "NullLiteralTypeAnnotation" }; } i(Sk, "nullLiteralTypeAnnotation"); function vk(e, t = null) { let r = { type: "ClassImplements", id: e, typeParameters: t }, s = B.ClassImplements; return y(s.id, r, "id", e, 1), y(s.typeParameters, r, "typeParameters", t, 1), r; } i(vk, "classImplements"); function Pk(e, t = null, r = null, s) { let n = { type: "DeclareClass", id: e, typeParameters: t, extends: r, body: s }, a = B.DeclareClass; return y(a.id, n, "id", e, 1), y(a.typeParameters, n, "typeParameters", t, 1), y(a.extends, n, "extends", r, 1), y(a.body, n, "body", s, 1), n; } i(Pk, "declareClass"); function Ak(e) { let t = { type: "DeclareFunction", id: e }, r = B.DeclareFunction; return y(r.id, t, "id", e, 1), t; } i(Ak, "declareFunction"); function Ck(e, t = null, r = null, s) { let n = { type: "DeclareInterface", id: e, typeParameters: t, extends: r, body: s }, a = B.DeclareInterface; return y(a.id, n, "id", e, 1), y(a.typeParameters, n, "typeParameters", t, 1), y(a.extends, n, "extends", r, 1), y(a.body, n, "body", s, 1), n; } i(Ck, "declareInterface"); function wk(e, t, r = null) { let s = { type: "DeclareModule", id: e, body: t, kind: r }, n = B.DeclareModule; return y(n.id, s, "id", e, 1), y(n.body, s, "body", t, 1), y(n.kind, s, "kind", r), s; } i(wk, "declareModule"); function Dk(e) { let t = { type: "DeclareModuleExports", typeAnnotation: e }, r = B.DeclareModuleExports; return y(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } i(Dk, "declareModuleExports"); function _k(e, t = null, r) { let s = { type: "DeclareTypeAlias", id: e, typeParameters: t, right: r }, n = B.DeclareTypeAlias; return y(n.id, s, "id", e, 1), y(n.typeParameters, s, "typeParameters", t, 1), y(n.right, s, "right", r, 1), s; } i(_k, "declareTypeAlias"); function Ik(e, t = null, r = null) { let s = { type: "DeclareOpaqueType", id: e, typeParameters: t, supertype: r }, n = B.DeclareOpaqueType; return y(n.id, s, "id", e, 1), y(n.typeParameters, s, "typeParameters", t, 1), y(n.supertype, s, "supertype", r, 1), s; } i(Ik, "declareOpaqueType"); function Ok(e) { let t = { type: "DeclareVariable", id: e }, r = B.DeclareVariable; return y(r.id, t, "id", e, 1), t; } i(Ok, "declareVariable"); function Nk(e = null, t = null, r = null, s = null) { let n = { type: "DeclareExportDeclaration", declaration: e, specifiers: t, source: r, attributes: s }, a = B.DeclareExportDeclaration; return y(a.declaration, n, "declaration", e, 1), y(a.specifiers, n, "specifiers", t, 1), y(a.source, n, "source", r, 1), y(a.attributes, n, "attributes", s, 1), n; } i(Nk, "declareExportDeclaration"); function Bk(e, t = null) { let r = { type: "DeclareExportAllDeclaration", source: e, attributes: t }, s = B.DeclareExportAllDeclaration; return y(s.source, r, "source", e, 1), y(s.attributes, r, "attributes", t, 1), r; } i(Bk, "declareExportAllDeclaration"); function kk(e) { let t = { type: "DeclaredPredicate", value: e }, r = B.DeclaredPredicate; return y(r.value, t, "value", e, 1), t; } i(kk, "declaredPredicate"); function Fk() { return { type: "ExistsTypeAnnotation" }; } i(Fk, "existsTypeAnnotation"); function Lk(e = null, t, r = null, s) { let n = { type: "FunctionTypeAnnotation", typeParameters: e, params: t, rest: r, returnType: s }, a = B.FunctionTypeAnnotation; return y(a.typeParameters, n, "typeParameters", e, 1), y(a.params, n, "params", t, 1), y(a.rest, n, "rest", r, 1), y(a.returnType, n, "r\ eturnType", s, 1), n; } i(Lk, "functionTypeAnnotation"); function jk(e = null, t) { let r = { type: "FunctionTypeParam", name: e, typeAnnotation: t }, s = B.FunctionTypeParam; return y(s.name, r, "name", e, 1), y(s.typeAnnotation, r, "typeAnnotation", t, 1), r; } i(jk, "functionTypeParam"); function Mk(e, t = null) { let r = { type: "GenericTypeAnnotation", id: e, typeParameters: t }, s = B.GenericTypeAnnotation; return y(s.id, r, "id", e, 1), y(s.typeParameters, r, "typeParameters", t, 1), r; } i(Mk, "genericTypeAnnotation"); function Rk() { return { type: "InferredPredicate" }; } i(Rk, "inferredPredicate"); function qk(e, t = null) { let r = { type: "InterfaceExtends", id: e, typeParameters: t }, s = B.InterfaceExtends; return y(s.id, r, "id", e, 1), y(s.typeParameters, r, "typeParameters", t, 1), r; } i(qk, "interfaceExtends"); function Uk(e, t = null, r = null, s) { let n = { type: "InterfaceDeclaration", id: e, typeParameters: t, extends: r, body: s }, a = B.InterfaceDeclaration; return y(a.id, n, "id", e, 1), y(a.typeParameters, n, "typeParameters", t, 1), y(a.extends, n, "extends", r, 1), y(a.body, n, "body", s, 1), n; } i(Uk, "interfaceDeclaration"); function $k(e = null, t) { let r = { type: "InterfaceTypeAnnotation", extends: e, body: t }, s = B.InterfaceTypeAnnotation; return y(s.extends, r, "extends", e, 1), y(s.body, r, "body", t, 1), r; } i($k, "interfaceTypeAnnotation"); function Vk(e) { let t = { type: "IntersectionTypeAnnotation", types: e }, r = B.IntersectionTypeAnnotation; return y(r.types, t, "types", e, 1), t; } i(Vk, "intersectionTypeAnnotation"); function Kk() { return { type: "MixedTypeAnnotation" }; } i(Kk, "mixedTypeAnnotation"); function Wk() { return { type: "EmptyTypeAnnotation" }; } i(Wk, "emptyTypeAnnotation"); function Yk(e) { let t = { type: "NullableTypeAnnotation", typeAnnotation: e }, r = B.NullableTypeAnnotation; return y(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } i(Yk, "nullableTypeAnnotation"); function Hk(e) { let t = { type: "NumberLiteralTypeAnnotation", value: e }, r = B.NumberLiteralTypeAnnotation; return y(r.value, t, "value", e), t; } i(Hk, "numberLiteralTypeAnnotation"); function Jk() { return { type: "NumberTypeAnnotation" }; } i(Jk, "numberTypeAnnotation"); function Gk(e, t = [], r = [], s = [], n = !1) { let a = { type: "ObjectTypeAnnotation", properties: e, indexers: t, callProperties: r, internalSlots: s, exact: n }, o = B.ObjectTypeAnnotation; return y(o.properties, a, "properties", e, 1), y(o.indexers, a, "indexers", t, 1), y(o.callProperties, a, "callProperties", r, 1), y(o.internalSlots, a, "internalSlots", s, 1), y(o.exact, a, "exact", n), a; } i(Gk, "objectTypeAnnotation"); function Xk(e, t, r, s, n) { let a = { type: "ObjectTypeInternalSlot", id: e, value: t, optional: r, static: s, method: n }, o = B.ObjectTypeInternalSlot; return y(o.id, a, "id", e, 1), y(o.value, a, "value", t, 1), y(o.optional, a, "optional", r), y(o.static, a, "static", s), y(o.method, a, "method", n), a; } i(Xk, "objectTypeInternalSlot"); function zk(e) { let t = { type: "ObjectTypeCallProperty", value: e, static: null }, r = B.ObjectTypeCallProperty; return y(r.value, t, "value", e, 1), t; } i(zk, "objectTypeCallProperty"); function Qk(e = null, t, r, s = null) { let n = { type: "ObjectTypeIndexer", id: e, key: t, value: r, variance: s, static: null }, a = B.ObjectTypeIndexer; return y(a.id, n, "id", e, 1), y(a.key, n, "key", t, 1), y(a.value, n, "value", r, 1), y(a.variance, n, "variance", s, 1), n; } i(Qk, "objectTypeIndexer"); function Zk(e, t, r = null) { let s = { type: "ObjectTypeProperty", key: e, value: t, variance: r, kind: null, method: null, optional: null, proto: null, static: null }, n = B.ObjectTypeProperty; return y(n.key, s, "key", e, 1), y(n.value, s, "value", t, 1), y(n.variance, s, "variance", r, 1), s; } i(Zk, "objectTypeProperty"); function eF(e) { let t = { type: "ObjectTypeSpreadProperty", argument: e }, r = B.ObjectTypeSpreadProperty; return y(r.argument, t, "argument", e, 1), t; } i(eF, "objectTypeSpreadProperty"); function tF(e, t = null, r = null, s) { let n = { type: "OpaqueType", id: e, typeParameters: t, supertype: r, impltype: s }, a = B.OpaqueType; return y(a.id, n, "id", e, 1), y(a.typeParameters, n, "typeParameters", t, 1), y(a.supertype, n, "supertype", r, 1), y(a.impltype, n, "i\ mpltype", s, 1), n; } i(tF, "opaqueType"); function rF(e, t) { let r = { type: "QualifiedTypeIdentifier", id: e, qualification: t }, s = B.QualifiedTypeIdentifier; return y(s.id, r, "id", e, 1), y(s.qualification, r, "qualification", t, 1), r; } i(rF, "qualifiedTypeIdentifier"); function sF(e) { let t = { type: "StringLiteralTypeAnnotation", value: e }, r = B.StringLiteralTypeAnnotation; return y(r.value, t, "value", e), t; } i(sF, "stringLiteralTypeAnnotation"); function nF() { return { type: "StringTypeAnnotation" }; } i(nF, "stringTypeAnnotation"); function iF() { return { type: "SymbolTypeAnnotation" }; } i(iF, "symbolTypeAnnotation"); function aF() { return { type: "ThisTypeAnnotation" }; } i(aF, "thisTypeAnnotation"); function oF(e) { let t = { type: "TupleTypeAnnotation", types: e }, r = B.TupleTypeAnnotation; return y(r.types, t, "types", e, 1), t; } i(oF, "tupleTypeAnnotation"); function lF(e) { let t = { type: "TypeofTypeAnnotation", argument: e }, r = B.TypeofTypeAnnotation; return y(r.argument, t, "argument", e, 1), t; } i(lF, "typeofTypeAnnotation"); function uF(e, t = null, r) { let s = { type: "TypeAlias", id: e, typeParameters: t, right: r }, n = B.TypeAlias; return y(n.id, s, "id", e, 1), y(n.typeParameters, s, "typeParameters", t, 1), y(n.right, s, "right", r, 1), s; } i(uF, "typeAlias"); function cF(e) { let t = { type: "TypeAnnotation", typeAnnotation: e }, r = B.TypeAnnotation; return y(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } i(cF, "typeAnnotation"); function pF(e, t) { let r = { type: "TypeCastExpression", expression: e, typeAnnotation: t }, s = B.TypeCastExpression; return y(s.expression, r, "expression", e, 1), y(s.typeAnnotation, r, "typeAnnotation", t, 1), r; } i(pF, "typeCastExpression"); function fF(e = null, t = null, r = null) { let s = { type: "TypeParameter", bound: e, default: t, variance: r, name: null }, n = B.TypeParameter; return y(n.bound, s, "bound", e, 1), y(n.default, s, "default", t, 1), y(n.variance, s, "variance", r, 1), s; } i(fF, "typeParameter"); function dF(e) { let t = { type: "TypeParameterDeclaration", params: e }, r = B.TypeParameterDeclaration; return y(r.params, t, "params", e, 1), t; } i(dF, "typeParameterDeclaration"); function hF(e) { let t = { type: "TypeParameterInstantiation", params: e }, r = B.TypeParameterInstantiation; return y(r.params, t, "params", e, 1), t; } i(hF, "typeParameterInstantiation"); function mF(e) { let t = { type: "UnionTypeAnnotation", types: e }, r = B.UnionTypeAnnotation; return y(r.types, t, "types", e, 1), t; } i(mF, "unionTypeAnnotation"); function yF(e) { let t = { type: "Variance", kind: e }, r = B.Variance; return y(r.kind, t, "kind", e), t; } i(yF, "variance"); function bF() { return { type: "VoidTypeAnnotation" }; } i(bF, "voidTypeAnnotation"); function gF(e, t) { let r = { type: "EnumDeclaration", id: e, body: t }, s = B.EnumDeclaration; return y(s.id, r, "id", e, 1), y(s.body, r, "body", t, 1), r; } i(gF, "enumDeclaration"); function TF(e) { let t = { type: "EnumBooleanBody", members: e, explicitType: null, hasUnknownMembers: null }, r = B.EnumBooleanBody; return y(r.members, t, "members", e, 1), t; } i(TF, "enumBooleanBody"); function xF(e) { let t = { type: "EnumNumberBody", members: e, explicitType: null, hasUnknownMembers: null }, r = B.EnumNumberBody; return y(r.members, t, "members", e, 1), t; } i(xF, "enumNumberBody"); function EF(e) { let t = { type: "EnumStringBody", members: e, explicitType: null, hasUnknownMembers: null }, r = B.EnumStringBody; return y(r.members, t, "members", e, 1), t; } i(EF, "enumStringBody"); function SF(e) { let t = { type: "EnumSymbolBody", members: e, hasUnknownMembers: null }, r = B.EnumSymbolBody; return y(r.members, t, "members", e, 1), t; } i(SF, "enumSymbolBody"); function vF(e) { let t = { type: "EnumBooleanMember", id: e, init: null }, r = B.EnumBooleanMember; return y(r.id, t, "id", e, 1), t; } i(vF, "enumBooleanMember"); function PF(e, t) { let r = { type: "EnumNumberMember", id: e, init: t }, s = B.EnumNumberMember; return y(s.id, r, "id", e, 1), y(s.init, r, "init", t, 1), r; } i(PF, "enumNumberMember"); function AF(e, t) { let r = { type: "EnumStringMember", id: e, init: t }, s = B.EnumStringMember; return y(s.id, r, "id", e, 1), y(s.init, r, "init", t, 1), r; } i(AF, "enumStringMember"); function CF(e) { let t = { type: "EnumDefaultedMember", id: e }, r = B.EnumDefaultedMember; return y(r.id, t, "id", e, 1), t; } i(CF, "enumDefaultedMember"); function wF(e, t) { let r = { type: "IndexedAccessType", objectType: e, indexType: t }, s = B.IndexedAccessType; return y(s.objectType, r, "objectType", e, 1), y(s.indexType, r, "indexType", t, 1), r; } i(wF, "indexedAccessType"); function DF(e, t) { let r = { type: "OptionalIndexedAccessType", objectType: e, indexType: t, optional: null }, s = B.OptionalIndexedAccessType; return y(s.objectType, r, "objectType", e, 1), y(s.indexType, r, "indexType", t, 1), r; } i(DF, "optionalIndexedAccessType"); function _F(e, t = null) { let r = { type: "JSXAttribute", name: e, value: t }, s = B.JSXAttribute; return y(s.name, r, "name", e, 1), y(s.value, r, "value", t, 1), r; } i(_F, "jsxAttribute"); function IF(e) { let t = { type: "JSXClosingElement", name: e }, r = B.JSXClosingElement; return y(r.name, t, "name", e, 1), t; } i(IF, "jsxClosingElement"); function OF(e, t = null, r, s = null) { let n = { type: "JSXElement", openingElement: e, closingElement: t, children: r, selfClosing: s }, a = B.JSXElement; return y(a.openingElement, n, "openingElement", e, 1), y(a.closingElement, n, "closingElement", t, 1), y(a.children, n, "children", r, 1), y(a.selfClosing, n, "selfClosing", s), n; } i(OF, "jsxElement"); function NF() { return { type: "JSXEmptyExpression" }; } i(NF, "jsxEmptyExpression"); function BF(e) { let t = { type: "JSXExpressionContainer", expression: e }, r = B.JSXExpressionContainer; return y(r.expression, t, "expression", e, 1), t; } i(BF, "jsxExpressionContainer"); function kF(e) { let t = { type: "JSXSpreadChild", expression: e }, r = B.JSXSpreadChild; return y(r.expression, t, "expression", e, 1), t; } i(kF, "jsxSpreadChild"); function FF(e) { let t = { type: "JSXIdentifier", name: e }, r = B.JSXIdentifier; return y(r.name, t, "name", e), t; } i(FF, "jsxIdentifier"); function LF(e, t) { let r = { type: "JSXMemberExpression", object: e, property: t }, s = B.JSXMemberExpression; return y(s.object, r, "object", e, 1), y(s.property, r, "property", t, 1), r; } i(LF, "jsxMemberExpression"); function jF(e, t) { let r = { type: "JSXNamespacedName", namespace: e, name: t }, s = B.JSXNamespacedName; return y(s.namespace, r, "namespace", e, 1), y(s.name, r, "name", t, 1), r; } i(jF, "jsxNamespacedName"); function MF(e, t, r = !1) { let s = { type: "JSXOpeningElement", name: e, attributes: t, selfClosing: r }, n = B.JSXOpeningElement; return y(n.name, s, "name", e, 1), y(n.attributes, s, "attributes", t, 1), y(n.selfClosing, s, "selfClosing", r), s; } i(MF, "jsxOpeningElement"); function RF(e) { let t = { type: "JSXSpreadAttribute", argument: e }, r = B.JSXSpreadAttribute; return y(r.argument, t, "argument", e, 1), t; } i(RF, "jsxSpreadAttribute"); function qF(e) { let t = { type: "JSXText", value: e }, r = B.JSXText; return y(r.value, t, "value", e), t; } i(qF, "jsxText"); function UF(e, t, r) { let s = { type: "JSXFragment", openingFragment: e, closingFragment: t, children: r }, n = B.JSXFragment; return y(n.openingFragment, s, "openingFragment", e, 1), y(n.closingFragment, s, "closingFragment", t, 1), y(n.children, s, "children", r, 1), s; } i(UF, "jsxFragment"); function $F() { return { type: "JSXOpeningFragment" }; } i($F, "jsxOpeningFragment"); function VF() { return { type: "JSXClosingFragment" }; } i(VF, "jsxClosingFragment"); function KF() { return { type: "Noop" }; } i(KF, "noop"); function WF(e, t) { let r = { type: "Placeholder", expectedNode: e, name: t }, s = B.Placeholder; return y(s.expectedNode, r, "expectedNode", e), y(s.name, r, "name", t, 1), r; } i(WF, "placeholder"); function YF(e) { let t = { type: "V8IntrinsicIdentifier", name: e }, r = B.V8IntrinsicIdentifier; return y(r.name, t, "name", e), t; } i(YF, "v8IntrinsicIdentifier"); function HF() { return { type: "ArgumentPlaceholder" }; } i(HF, "argumentPlaceholder"); function JF(e, t) { let r = { type: "BindExpression", object: e, callee: t }, s = B.BindExpression; return y(s.object, r, "object", e, 1), y(s.callee, r, "callee", t, 1), r; } i(JF, "bindExpression"); function GF(e) { let t = { type: "Decorator", expression: e }, r = B.Decorator; return y(r.expression, t, "expression", e, 1), t; } i(GF, "decorator"); function XF(e, t = !1) { let r = { type: "DoExpression", body: e, async: t }, s = B.DoExpression; return y(s.body, r, "body", e, 1), y(s.async, r, "async", t), r; } i(XF, "doExpression"); function zF(e) { let t = { type: "ExportDefaultSpecifier", exported: e }, r = B.ExportDefaultSpecifier; return y(r.exported, t, "exported", e, 1), t; } i(zF, "exportDefaultSpecifier"); function QF(e) { let t = { type: "RecordExpression", properties: e }, r = B.RecordExpression; return y(r.properties, t, "properties", e, 1), t; } i(QF, "recordExpression"); function ZF(e = []) { let t = { type: "TupleExpression", elements: e }, r = B.TupleExpression; return y(r.elements, t, "elements", e, 1), t; } i(ZF, "tupleExpression"); function eL(e) { let t = { type: "DecimalLiteral", value: e }, r = B.DecimalLiteral; return y(r.value, t, "value", e), t; } i(eL, "decimalLiteral"); function tL(e) { let t = { type: "ModuleExpression", body: e }, r = B.ModuleExpression; return y(r.body, t, "body", e, 1), t; } i(tL, "moduleExpression"); function rL() { return { type: "TopicReference" }; } i(rL, "topicReference"); function sL(e) { let t = { type: "PipelineTopicExpression", expression: e }, r = B.PipelineTopicExpression; return y(r.expression, t, "expression", e, 1), t; } i(sL, "pipelineTopicExpression"); function nL(e) { let t = { type: "PipelineBareFunction", callee: e }, r = B.PipelineBareFunction; return y(r.callee, t, "callee", e, 1), t; } i(nL, "pipelineBareFunction"); function iL() { return { type: "PipelinePrimaryTopicReference" }; } i(iL, "pipelinePrimaryTopicReference"); function aL() { return { type: "VoidPattern" }; } i(aL, "voidPattern"); function oL(e) { let t = { type: "TSParameterProperty", parameter: e }, r = B.TSParameterProperty; return y(r.parameter, t, "parameter", e, 1), t; } i(oL, "tsParameterProperty"); function lL(e = null, t = null, r, s = null) { let n = { type: "TSDeclareFunction", id: e, typeParameters: t, params: r, returnType: s }, a = B.TSDeclareFunction; return y(a.id, n, "id", e, 1), y(a.typeParameters, n, "typeParameters", t, 1), y(a.params, n, "params", r, 1), y(a.returnType, n, "retur\ nType", s, 1), n; } i(lL, "tsDeclareFunction"); function uL(e = null, t, r = null, s, n = null) { let a = { type: "TSDeclareMethod", decorators: e, key: t, typeParameters: r, params: s, returnType: n }, o = B.TSDeclareMethod; return y(o.decorators, a, "decorators", e, 1), y(o.key, a, "key", t, 1), y(o.typeParameters, a, "typeParameters", r, 1), y(o.params, a, "\ params", s, 1), y(o.returnType, a, "returnType", n, 1), a; } i(uL, "tsDeclareMethod"); function cL(e, t) { let r = { type: "TSQualifiedName", left: e, right: t }, s = B.TSQualifiedName; return y(s.left, r, "left", e, 1), y(s.right, r, "right", t, 1), r; } i(cL, "tsQualifiedName"); function pL(e = null, t, r = null) { let s = { type: "TSCallSignatureDeclaration", typeParameters: e, parameters: t, typeAnnotation: r }, n = B.TSCallSignatureDeclaration; return y(n.typeParameters, s, "typeParameters", e, 1), y(n.parameters, s, "parameters", t, 1), y(n.typeAnnotation, s, "typeAnnotation", r, 1), s; } i(pL, "tsCallSignatureDeclaration"); function fL(e = null, t, r = null) { let s = { type: "TSConstructSignatureDeclaration", typeParameters: e, parameters: t, typeAnnotation: r }, n = B.TSConstructSignatureDeclaration; return y(n.typeParameters, s, "typeParameters", e, 1), y(n.parameters, s, "parameters", t, 1), y(n.typeAnnotation, s, "typeAnnotation", r, 1), s; } i(fL, "tsConstructSignatureDeclaration"); function dL(e, t = null) { let r = { type: "TSPropertySignature", key: e, typeAnnotation: t }, s = B.TSPropertySignature; return y(s.key, r, "key", e, 1), y(s.typeAnnotation, r, "typeAnnotation", t, 1), r; } i(dL, "tsPropertySignature"); function hL(e, t = null, r, s = null) { let n = { type: "TSMethodSignature", key: e, typeParameters: t, parameters: r, typeAnnotation: s, kind: null }, a = B.TSMethodSignature; return y(a.key, n, "key", e, 1), y(a.typeParameters, n, "typeParameters", t, 1), y(a.parameters, n, "parameters", r, 1), y(a.typeAnnotation, n, "typeAnnotation", s, 1), n; } i(hL, "tsMethodSignature"); function mL(e, t = null) { let r = { type: "TSIndexSignature", parameters: e, typeAnnotation: t }, s = B.TSIndexSignature; return y(s.parameters, r, "parameters", e, 1), y(s.typeAnnotation, r, "typeAnnotation", t, 1), r; } i(mL, "tsIndexSignature"); function yL() { return { type: "TSAnyKeyword" }; } i(yL, "tsAnyKeyword"); function bL() { return { type: "TSBooleanKeyword" }; } i(bL, "tsBooleanKeyword"); function gL() { return { type: "TSBigIntKeyword" }; } i(gL, "tsBigIntKeyword"); function TL() { return { type: "TSIntrinsicKeyword" }; } i(TL, "tsIntrinsicKeyword"); function xL() { return { type: "TSNeverKeyword" }; } i(xL, "tsNeverKeyword"); function EL() { return { type: "TSNullKeyword" }; } i(EL, "tsNullKeyword"); function SL() { return { type: "TSNumberKeyword" }; } i(SL, "tsNumberKeyword"); function vL() { return { type: "TSObjectKeyword" }; } i(vL, "tsObjectKeyword"); function PL() { return { type: "TSStringKeyword" }; } i(PL, "tsStringKeyword"); function AL() { return { type: "TSSymbolKeyword" }; } i(AL, "tsSymbolKeyword"); function CL() { return { type: "TSUndefinedKeyword" }; } i(CL, "tsUndefinedKeyword"); function wL() { return { type: "TSUnknownKeyword" }; } i(wL, "tsUnknownKeyword"); function DL() { return { type: "TSVoidKeyword" }; } i(DL, "tsVoidKeyword"); function _L() { return { type: "TSThisType" }; } i(_L, "tsThisType"); function IL(e = null, t, r = null) { let s = { type: "TSFunctionType", typeParameters: e, parameters: t, typeAnnotation: r }, n = B.TSFunctionType; return y(n.typeParameters, s, "typeParameters", e, 1), y(n.parameters, s, "parameters", t, 1), y(n.typeAnnotation, s, "typeAnnotation", r, 1), s; } i(IL, "tsFunctionType"); function OL(e = null, t, r = null) { let s = { type: "TSConstructorType", typeParameters: e, parameters: t, typeAnnotation: r }, n = B.TSConstructorType; return y(n.typeParameters, s, "typeParameters", e, 1), y(n.parameters, s, "parameters", t, 1), y(n.typeAnnotation, s, "typeAnnotation", r, 1), s; } i(OL, "tsConstructorType"); function NL(e, t = null) { let r = { type: "TSTypeReference", typeName: e, typeParameters: t }, s = B.TSTypeReference; return y(s.typeName, r, "typeName", e, 1), y(s.typeParameters, r, "typeParameters", t, 1), r; } i(NL, "tsTypeReference"); function BL(e, t = null, r = null) { let s = { type: "TSTypePredicate", parameterName: e, typeAnnotation: t, asserts: r }, n = B.TSTypePredicate; return y(n.parameterName, s, "parameterName", e, 1), y(n.typeAnnotation, s, "typeAnnotation", t, 1), y(n.asserts, s, "asserts", r), s; } i(BL, "tsTypePredicate"); function kL(e, t = null) { let r = { type: "TSTypeQuery", exprName: e, typeParameters: t }, s = B.TSTypeQuery; return y(s.exprName, r, "exprName", e, 1), y(s.typeParameters, r, "typeParameters", t, 1), r; } i(kL, "tsTypeQuery"); function FL(e) { let t = { type: "TSTypeLiteral", members: e }, r = B.TSTypeLiteral; return y(r.members, t, "members", e, 1), t; } i(FL, "tsTypeLiteral"); function LL(e) { let t = { type: "TSArrayType", elementType: e }, r = B.TSArrayType; return y(r.elementType, t, "elementType", e, 1), t; } i(LL, "tsArrayType"); function jL(e) { let t = { type: "TSTupleType", elementTypes: e }, r = B.TSTupleType; return y(r.elementTypes, t, "elementTypes", e, 1), t; } i(jL, "tsTupleType"); function ML(e) { let t = { type: "TSOptionalType", typeAnnotation: e }, r = B.TSOptionalType; return y(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } i(ML, "tsOptionalType"); function RL(e) { let t = { type: "TSRestType", typeAnnotation: e }, r = B.TSRestType; return y(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } i(RL, "tsRestType"); function qL(e, t, r = !1) { let s = { type: "TSNamedTupleMember", label: e, elementType: t, optional: r }, n = B.TSNamedTupleMember; return y(n.label, s, "label", e, 1), y(n.elementType, s, "elementType", t, 1), y(n.optional, s, "optional", r), s; } i(qL, "tsNamedTupleMember"); function UL(e) { let t = { type: "TSUnionType", types: e }, r = B.TSUnionType; return y(r.types, t, "types", e, 1), t; } i(UL, "tsUnionType"); function $L(e) { let t = { type: "TSIntersectionType", types: e }, r = B.TSIntersectionType; return y(r.types, t, "types", e, 1), t; } i($L, "tsIntersectionType"); function VL(e, t, r, s) { let n = { type: "TSConditionalType", checkType: e, extendsType: t, trueType: r, falseType: s }, a = B.TSConditionalType; return y(a.checkType, n, "checkType", e, 1), y(a.extendsType, n, "extendsType", t, 1), y(a.trueType, n, "trueType", r, 1), y(a.falseType, n, "falseType", s, 1), n; } i(VL, "tsConditionalType"); function KL(e) { let t = { type: "TSInferType", typeParameter: e }, r = B.TSInferType; return y(r.typeParameter, t, "typeParameter", e, 1), t; } i(KL, "tsInferType"); function WL(e) { let t = { type: "TSParenthesizedType", typeAnnotation: e }, r = B.TSParenthesizedType; return y(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } i(WL, "tsParenthesizedType"); function YL(e, t = "keyof") { let r = { type: "TSTypeOperator", typeAnnotation: e, operator: t }, s = B.TSTypeOperator; return y(s.typeAnnotation, r, "typeAnnotation", e, 1), y(s.operator, r, "operator", t), r; } i(YL, "tsTypeOperator"); function HL(e, t) { let r = { type: "TSIndexedAccessType", objectType: e, indexType: t }, s = B.TSIndexedAccessType; return y(s.objectType, r, "objectType", e, 1), y(s.indexType, r, "indexType", t, 1), r; } i(HL, "tsIndexedAccessType"); function JL(e, t = null, r = null) { let s = { type: "TSMappedType", typeParameter: e, typeAnnotation: t, nameType: r }, n = B.TSMappedType; return y(n.typeParameter, s, "typeParameter", e, 1), y(n.typeAnnotation, s, "typeAnnotation", t, 1), y(n.nameType, s, "nameType", r, 1), s; } i(JL, "tsMappedType"); function GL(e, t) { let r = { type: "TSTemplateLiteralType", quasis: e, types: t }, s = B.TSTemplateLiteralType; return y(s.quasis, r, "quasis", e, 1), y(s.types, r, "types", t, 1), r; } i(GL, "tsTemplateLiteralType"); function XL(e) { let t = { type: "TSLiteralType", literal: e }, r = B.TSLiteralType; return y(r.literal, t, "literal", e, 1), t; } i(XL, "tsLiteralType"); function zL(e, t = null) { let r = { type: "TSExpressionWithTypeArguments", expression: e, typeParameters: t }, s = B.TSExpressionWithTypeArguments; return y(s.expression, r, "expression", e, 1), y(s.typeParameters, r, "typeParameters", t, 1), r; } i(zL, "tsExpressionWithTypeArguments"); function QL(e, t = null, r = null, s) { let n = { type: "TSInterfaceDeclaration", id: e, typeParameters: t, extends: r, body: s }, a = B.TSInterfaceDeclaration; return y(a.id, n, "id", e, 1), y(a.typeParameters, n, "typeParameters", t, 1), y(a.extends, n, "extends", r, 1), y(a.body, n, "body", s, 1), n; } i(QL, "tsInterfaceDeclaration"); function ZL(e) { let t = { type: "TSInterfaceBody", body: e }, r = B.TSInterfaceBody; return y(r.body, t, "body", e, 1), t; } i(ZL, "tsInterfaceBody"); function ej(e, t = null, r) { let s = { type: "TSTypeAliasDeclaration", id: e, typeParameters: t, typeAnnotation: r }, n = B.TSTypeAliasDeclaration; return y(n.id, s, "id", e, 1), y(n.typeParameters, s, "typeParameters", t, 1), y(n.typeAnnotation, s, "typeAnnotation", r, 1), s; } i(ej, "tsTypeAliasDeclaration"); function tj(e, t = null) { let r = { type: "TSInstantiationExpression", expression: e, typeParameters: t }, s = B.TSInstantiationExpression; return y(s.expression, r, "expression", e, 1), y(s.typeParameters, r, "typeParameters", t, 1), r; } i(tj, "tsInstantiationExpression"); function rj(e, t) { let r = { type: "TSAsExpression", expression: e, typeAnnotation: t }, s = B.TSAsExpression; return y(s.expression, r, "expression", e, 1), y(s.typeAnnotation, r, "typeAnnotation", t, 1), r; } i(rj, "tsAsExpression"); function sj(e, t) { let r = { type: "TSSatisfiesExpression", expression: e, typeAnnotation: t }, s = B.TSSatisfiesExpression; return y(s.expression, r, "expression", e, 1), y(s.typeAnnotation, r, "typeAnnotation", t, 1), r; } i(sj, "tsSatisfiesExpression"); function nj(e, t) { let r = { type: "TSTypeAssertion", typeAnnotation: e, expression: t }, s = B.TSTypeAssertion; return y(s.typeAnnotation, r, "typeAnnotation", e, 1), y(s.expression, r, "expression", t, 1), r; } i(nj, "tsTypeAssertion"); function ij(e) { let t = { type: "TSEnumBody", members: e }, r = B.TSEnumBody; return y(r.members, t, "members", e, 1), t; } i(ij, "tsEnumBody"); function aj(e, t) { let r = { type: "TSEnumDeclaration", id: e, members: t }, s = B.TSEnumDeclaration; return y(s.id, r, "id", e, 1), y(s.members, r, "members", t, 1), r; } i(aj, "tsEnumDeclaration"); function oj(e, t = null) { let r = { type: "TSEnumMember", id: e, initializer: t }, s = B.TSEnumMember; return y(s.id, r, "id", e, 1), y(s.initializer, r, "initializer", t, 1), r; } i(oj, "tsEnumMember"); function lj(e, t) { let r = { type: "TSModuleDeclaration", id: e, body: t, kind: null }, s = B.TSModuleDeclaration; return y(s.id, r, "id", e, 1), y(s.body, r, "body", t, 1), r; } i(lj, "tsModuleDeclaration"); function uj(e) { let t = { type: "TSModuleBlock", body: e }, r = B.TSModuleBlock; return y(r.body, t, "body", e, 1), t; } i(uj, "tsModuleBlock"); function cj(e, t = null, r = null) { let s = { type: "TSImportType", argument: e, qualifier: t, typeParameters: r }, n = B.TSImportType; return y(n.argument, s, "argument", e, 1), y(n.qualifier, s, "qualifier", t, 1), y(n.typeParameters, s, "typeParameters", r, 1), s; } i(cj, "tsImportType"); function pj(e, t) { let r = { type: "TSImportEqualsDeclaration", id: e, moduleReference: t, isExport: null }, s = B.TSImportEqualsDeclaration; return y(s.id, r, "id", e, 1), y(s.moduleReference, r, "moduleReference", t, 1), r; } i(pj, "tsImportEqualsDeclaration"); function fj(e) { let t = { type: "TSExternalModuleReference", expression: e }, r = B.TSExternalModuleReference; return y(r.expression, t, "expression", e, 1), t; } i(fj, "tsExternalModuleReference"); function dj(e) { let t = { type: "TSNonNullExpression", expression: e }, r = B.TSNonNullExpression; return y(r.expression, t, "expression", e, 1), t; } i(dj, "tsNonNullExpression"); function hj(e) { let t = { type: "TSExportAssignment", expression: e }, r = B.TSExportAssignment; return y(r.expression, t, "expression", e, 1), t; } i(hj, "tsExportAssignment"); function mj(e) { let t = { type: "TSNamespaceExportDeclaration", id: e }, r = B.TSNamespaceExportDeclaration; return y(r.id, t, "id", e, 1), t; } i(mj, "tsNamespaceExportDeclaration"); function yj(e) { let t = { type: "TSTypeAnnotation", typeAnnotation: e }, r = B.TSTypeAnnotation; return y(r.typeAnnotation, t, "typeAnnotation", e, 1), t; } i(yj, "tsTypeAnnotation"); function bj(e) { let t = { type: "TSTypeParameterInstantiation", params: e }, r = B.TSTypeParameterInstantiation; return y(r.params, t, "params", e, 1), t; } i(bj, "tsTypeParameterInstantiation"); function gj(e) { let t = { type: "TSTypeParameterDeclaration", params: e }, r = B.TSTypeParameterDeclaration; return y(r.params, t, "params", e, 1), t; } i(gj, "tsTypeParameterDeclaration"); function Tj(e = null, t = null, r) { let s = { type: "TSTypeParameter", constraint: e, default: t, name: r }, n = B.TSTypeParameter; return y(n.constraint, s, "constraint", e, 1), y(n.default, s, "default", t, 1), y(n.name, s, "name", r), s; } i(Tj, "tsTypeParameter"); function xj(e) { return (0, wl.default)("NumberLiteral", "NumericLiteral", "The node type "), qg(e); } i(xj, "NumberLiteral"); function Ej(e, t = "") { return (0, wl.default)("RegexLiteral", "RegExpLiteral", "The node type "), Ug(e, t); } i(Ej, "RegexLiteral"); function Sj(e) { return (0, wl.default)("RestProperty", "RestElement", "The node type "), $g(e); } i(Sj, "RestProperty"); function vj(e) { return (0, wl.default)("SpreadProperty", "SpreadElement", "The node type "), Vg(e); } i(vj, "SpreadProperty"); }); // ../node_modules/@babel/types/lib/builders/generated/uppercase.js var Kg = w((m) => { "use strict"; Object.defineProperty(m, "__esModule", { value: !0 }); m.JSXIdentifier = m.JSXFragment = m.JSXExpressionContainer = m.JSXEmptyExpression = m.JSXElement = m.JSXClosingFragment = m.JSXClosingElement = m.JSXAttribute = m.IntersectionTypeAnnotation = m.InterpreterDirective = m.InterfaceTypeAnnotation = m.InterfaceExtends = m.InterfaceDeclaration = m.InferredPredicate = m.IndexedAccessType = m.ImportSpecifier = m.ImportNamespaceSpecifier = m.ImportExpression = m.ImportDefaultSpecifier = m.ImportDeclaration = m.ImportAttribute = m.Import = m.IfStatement = m.Identifier = m.GenericTypeAnnotation = m.FunctionTypeParam = m.FunctionTypeAnnotation = m.FunctionExpression = m.FunctionDeclaration = m.ForStatement = m.ForOfStatement = m.ForInStatement = m.File = m.ExpressionStatement = m.ExportSpecifier = m.ExportNamespaceSpecifier = m.ExportNamedDeclaration = m.ExportDefaultSpecifier = m.ExportDefaultDeclaration = m.ExportAllDeclaration = m. ExistsTypeAnnotation = m.EnumSymbolBody = m.EnumStringMember = m.EnumStringBody = m.EnumNumberMember = m.EnumNumberBody = m.EnumDefaultedMember = m.EnumDeclaration = m.EnumBooleanMember = m.EnumBooleanBody = m.EmptyTypeAnnotation = m.EmptyStatement = m.DoWhileStatement = m.DoExpression = m.DirectiveLiteral = m.Directive = m.Decorator = m.DeclaredPredicate = m.DeclareVariable = m.DeclareTypeAlias = m.DeclareOpaqueType = m.DeclareModuleExports = m.DeclareModule = m.DeclareInterface = m.DeclareFunction = m.DeclareExportDeclaration = m.DeclareExportAllDeclaration = m.DeclareClass = m. DecimalLiteral = m.DebuggerStatement = m.ContinueStatement = m.ConditionalExpression = m.ClassProperty = m.ClassPrivateProperty = m.ClassPrivateMethod = m.ClassMethod = m.ClassImplements = m.ClassExpression = m.ClassDeclaration = m.ClassBody = m.ClassAccessorProperty = m.CatchClause = m.CallExpression = m.BreakStatement = m.BooleanTypeAnnotation = m.BooleanLiteralTypeAnnotation = m.BooleanLiteral = m.BlockStatement = m.BindExpression = m.BinaryExpression = m.BigIntLiteral = m.AwaitExpression = m.AssignmentPattern = m.AssignmentExpression = m.ArrowFunctionExpression = m.ArrayTypeAnnotation = m. ArrayPattern = m.ArrayExpression = m.ArgumentPlaceholder = m.AnyTypeAnnotation = void 0; m.TSNumberKeyword = m.TSNullKeyword = m.TSNonNullExpression = m.TSNeverKeyword = m.TSNamespaceExportDeclaration = m.TSNamedTupleMember = m. TSModuleDeclaration = m.TSModuleBlock = m.TSMethodSignature = m.TSMappedType = m.TSLiteralType = m.TSIntrinsicKeyword = m.TSIntersectionType = m.TSInterfaceDeclaration = m.TSInterfaceBody = m.TSInstantiationExpression = m.TSInferType = m.TSIndexedAccessType = m.TSIndexSignature = m. TSImportType = m.TSImportEqualsDeclaration = m.TSFunctionType = m.TSExternalModuleReference = m.TSExpressionWithTypeArguments = m.TSExportAssignment = m.TSEnumMember = m.TSEnumDeclaration = m.TSEnumBody = m.TSDeclareMethod = m.TSDeclareFunction = m.TSConstructorType = m.TSConstructSignatureDeclaration = m.TSConditionalType = m.TSCallSignatureDeclaration = m.TSBooleanKeyword = m.TSBigIntKeyword = m.TSAsExpression = m.TSArrayType = m.TSAnyKeyword = m.SymbolTypeAnnotation = m.SwitchStatement = m.SwitchCase = m.Super = m.StringTypeAnnotation = m.StringLiteralTypeAnnotation = m.StringLiteral = m.StaticBlock = m.SpreadProperty = m.SpreadElement = m.SequenceExpression = m.ReturnStatement = m.RestProperty = m.RestElement = m.RegexLiteral = m.RegExpLiteral = m.RecordExpression = m.QualifiedTypeIdentifier = m.Program = m.PrivateName = m.Placeholder = m.PipelineTopicExpression = m.PipelinePrimaryTopicReference = m.PipelineBareFunction = m.ParenthesizedExpression = m.OptionalMemberExpression = m.OptionalIndexedAccessType = m.OptionalCallExpression = m.OpaqueType = m.ObjectTypeSpreadProperty = m.ObjectTypeProperty = m.ObjectTypeInternalSlot = m.ObjectTypeIndexer = m.ObjectTypeCallProperty = m.ObjectTypeAnnotation = m.ObjectProperty = m.ObjectPattern = m.ObjectMethod = m.ObjectExpression = m.NumericLiteral = m.NumberTypeAnnotation = m.NumberLiteralTypeAnnotation = m.NumberLiteral = m.NullableTypeAnnotation = m.NullLiteralTypeAnnotation = m.NullLiteral = m.Noop = m.NewExpression = m.ModuleExpression = m.MixedTypeAnnotation = m.MetaProperty = m.MemberExpression = m.LogicalExpression = m.LabeledStatement = m.JSXText = m.JSXSpreadChild = m.JSXSpreadAttribute = m.JSXOpeningFragment = m.JSXOpeningElement = m.JSXNamespacedName = m.JSXMemberExpression = void 0; m.YieldExpression = m.WithStatement = m.WhileStatement = m.VoidTypeAnnotation = m.VoidPattern = m.Variance = m.VariableDeclarator = m.VariableDeclaration = m.V8IntrinsicIdentifier = m.UpdateExpression = m.UnionTypeAnnotation = m.UnaryExpression = m.TypeofTypeAnnotation = m.TypeParameterInstantiation = m.TypeParameterDeclaration = m.TypeParameter = m.TypeCastExpression = m.TypeAnnotation = m.TypeAlias = m.TupleTypeAnnotation = m.TupleExpression = m.TryStatement = m.TopicReference = m.ThrowStatement = m.ThisTypeAnnotation = m.ThisExpression = m.TemplateLiteral = m.TemplateElement = m. TaggedTemplateExpression = m.TSVoidKeyword = m.TSUnknownKeyword = m.TSUnionType = m.TSUndefinedKeyword = m.TSTypeReference = m.TSTypeQuery = m.TSTypePredicate = m.TSTypeParameterInstantiation = m.TSTypeParameterDeclaration = m.TSTypeParameter = m.TSTypeOperator = m.TSTypeLiteral = m.TSTypeAssertion = m.TSTypeAnnotation = m.TSTypeAliasDeclaration = m.TSTupleType = m.TSThisType = m.TSTemplateLiteralType = m.TSSymbolKeyword = m.TSStringKeyword = m.TSSatisfiesExpression = m.TSRestType = m.TSQualifiedName = m.TSPropertySignature = m.TSParenthesizedType = m.TSParameterProperty = m.TSOptionalType = m.TSObjectKeyword = void 0; var ka = Mf(), dxe = hi(); function I(e) { return ka[e]; } i(I, "alias"); var hxe = m.ArrayExpression = I("arrayExpression"), mxe = m.AssignmentExpression = I("assignmentExpression"), yxe = m.BinaryExpression = I( "binaryExpression"), bxe = m.InterpreterDirective = I("interpreterDirective"), gxe = m.Directive = I("directive"), Txe = m.DirectiveLiteral = I("directiveLiteral"), xxe = m.BlockStatement = I("blockStatement"), Exe = m.BreakStatement = I("breakStatement"), Sxe = m.CallExpression = I("callExpression"), vxe = m.CatchClause = I("catchClause"), Pxe = m.ConditionalExpression = I("conditionalExpression"), Axe = m.ContinueStatement = I("continueStatement"), Cxe = m.DebuggerStatement = I("debuggerStatement"), wxe = m.DoWhileStatement = I("doWhileStatement"), Dxe = m.EmptyStatement = I("emptyStatement"), _xe = m.ExpressionStatement = I("expressionStatement"), Ixe = m.File = I("file"), Oxe = m.ForInStatement = I("forInSt\ atement"), Nxe = m.ForStatement = I("forStatement"), Bxe = m.FunctionDeclaration = I("functionDeclaration"), kxe = m.FunctionExpression = I( "functionExpression"), Fxe = m.Identifier = I("identifier"), Lxe = m.IfStatement = I("ifStatement"), jxe = m.LabeledStatement = I("labeled\ Statement"), Mxe = m.StringLiteral = I("stringLiteral"), Rxe = m.NumericLiteral = I("numericLiteral"), qxe = m.NullLiteral = I("nullLiteral"), Uxe = m.BooleanLiteral = I("booleanLiteral"), $xe = m.RegExpLiteral = I("regExpLiteral"), Vxe = m.LogicalExpression = I("logicalExpression"), Kxe = m.MemberExpression = I("memberExpression"), Wxe = m.NewExpression = I("newExpression"), Yxe = m.Program = I("program"), Hxe = m.ObjectExpression = I("objectExpression"), Jxe = m.ObjectMethod = I("objectMethod"), Gxe = m.ObjectProperty = I("objectProperty"), Xxe = m.RestElement = I("re\ stElement"), zxe = m.ReturnStatement = I("returnStatement"), Qxe = m.SequenceExpression = I("sequenceExpression"), Zxe = m.ParenthesizedExpression = I("parenthesizedExpression"), eEe = m.SwitchCase = I("switchCase"), tEe = m.SwitchStatement = I("switchStatement"), rEe = m.ThisExpression = I("thisExpression"), sEe = m.ThrowStatement = I("throwStatement"), nEe = m.TryStatement = I("tryStatement"), iEe = m.UnaryExpression = I("\ unaryExpression"), aEe = m.UpdateExpression = I("updateExpression"), oEe = m.VariableDeclaration = I("variableDeclaration"), lEe = m.VariableDeclarator = I("variableDeclarator"), uEe = m.WhileStatement = I("whileStatement"), cEe = m.WithStatement = I("withStatement"), pEe = m.AssignmentPattern = I("assignmentPattern"), fEe = m.ArrayPattern = I("arrayPattern"), dEe = m.ArrowFunctionExpression = I("arrowFunctionExpression"), hEe = m. ClassBody = I("classBody"), mEe = m.ClassExpression = I("classExpression"), yEe = m.ClassDeclaration = I("classDeclaration"), bEe = m.ExportAllDeclaration = I("exportAllDeclaration"), gEe = m.ExportDefaultDeclaration = I("exportDefaultDeclaration"), TEe = m.ExportNamedDeclaration = I("exportNam\ edDeclaration"), xEe = m.ExportSpecifier = I("exportSpecifier"), EEe = m.ForOfStatement = I("forOfStatement"), SEe = m.ImportDeclaration = I( "importDeclaration"), vEe = m.ImportDefaultSpecifier = I("importDefaultSpecifier"), PEe = m.ImportNamespaceSpecifier = I("importNamespaceS\ pecifier"), AEe = m.ImportSpecifier = I("importSpecifier"), CEe = m.ImportExpression = I("importExpression"), wEe = m.MetaProperty = I("meta\ Property"), DEe = m.ClassMethod = I("classMethod"), _Ee = m.ObjectPattern = I("objectPattern"), IEe = m.SpreadElement = I("spreadElement"), OEe = m. Super = I("super"), NEe = m.TaggedTemplateExpression = I("taggedTemplateExpression"), BEe = m.TemplateElement = I("templateElement"), kEe = m. TemplateLiteral = I("templateLiteral"), FEe = m.YieldExpression = I("yieldExpression"), LEe = m.AwaitExpression = I("awaitExpression"), jEe = m. Import = I("import"), MEe = m.BigIntLiteral = I("bigIntLiteral"), REe = m.ExportNamespaceSpecifier = I("exportNamespaceSpecifier"), qEe = m. OptionalMemberExpression = I("optionalMemberExpression"), UEe = m.OptionalCallExpression = I("optionalCallExpression"), $Ee = m.ClassProperty = I("classProperty"), VEe = m.ClassAccessorProperty = I("classAccessorProperty"), KEe = m.ClassPrivateProperty = I("classPrivateProperty"), WEe = m. ClassPrivateMethod = I("classPrivateMethod"), YEe = m.PrivateName = I("privateName"), HEe = m.StaticBlock = I("staticBlock"), JEe = m.ImportAttribute = I("importAttribute"), GEe = m.AnyTypeAnnotation = I("anyTypeAnnotation"), XEe = m.ArrayTypeAnnotation = I("arrayTypeAnnotation"), zEe = m. BooleanTypeAnnotation = I("booleanTypeAnnotation"), QEe = m.BooleanLiteralTypeAnnotation = I("booleanLiteralTypeAnnotation"), ZEe = m.NullLiteralTypeAnnotation = I("nullLiteralTypeAnnotation"), eSe = m.ClassImplements = I("classImplements"), tSe = m.DeclareClass = I("declareClass"), rSe = m.DeclareFunction = I("declareFunction"), sSe = m.DeclareInterface = I("declareInterface"), nSe = m.DeclareModule = I("declareModule"), iSe = m.DeclareModuleExports = I("declareModuleExports"), aSe = m.DeclareTypeAlias = I("declareTypeAlias"), oSe = m.DeclareOpaqueType = I("declareOpaqueType"), lSe = m.DeclareVariable = I("declareVariable"), uSe = m.DeclareExportDeclaration = I("declareExportDeclaration"), cSe = m.DeclareExportAllDeclaration = I("declareEx\ portAllDeclaration"), pSe = m.DeclaredPredicate = I("declaredPredicate"), fSe = m.ExistsTypeAnnotation = I("existsTypeAnnotation"), dSe = m. FunctionTypeAnnotation = I("functionTypeAnnotation"), hSe = m.FunctionTypeParam = I("functionTypeParam"), mSe = m.GenericTypeAnnotation = I( "genericTypeAnnotation"), ySe = m.InferredPredicate = I("inferredPredicate"), bSe = m.InterfaceExtends = I("interfaceExtends"), gSe = m.InterfaceDeclaration = I("interfaceDeclaration"), TSe = m.InterfaceTypeAnnotation = I("interfaceTypeAnnotation"), xSe = m.IntersectionTypeAnnotation = I("interse\ ctionTypeAnnotation"), ESe = m.MixedTypeAnnotation = I("mixedTypeAnnotation"), SSe = m.EmptyTypeAnnotation = I("emptyTypeAnnotation"), vSe = m. NullableTypeAnnotation = I("nullableTypeAnnotation"), PSe = m.NumberLiteralTypeAnnotation = I("numberLiteralTypeAnnotation"), ASe = m.NumberTypeAnnotation = I("numberTypeAnnotation"), CSe = m.ObjectTypeAnnotation = I("objectTypeAnnotation"), wSe = m.ObjectTypeInternalSlot = I("objectTypeInterna\ lSlot"), DSe = m.ObjectTypeCallProperty = I("objectTypeCallProperty"), _Se = m.ObjectTypeIndexer = I("objectTypeIndexer"), ISe = m.ObjectTypeProperty = I("objectTypeProperty"), OSe = m.ObjectTypeSpreadProperty = I("objectTypeSpreadProperty"), NSe = m.OpaqueType = I("opaqueType"), BSe = m.QualifiedTypeIdentifier = I("qualifiedTypeIdentifier"), kSe = m.StringLiteralTypeAnnotation = I("stringLiteralTypeAnnotation"), FSe = m.StringTypeAnnotation = I("st\ ringTypeAnnotation"), LSe = m.SymbolTypeAnnotation = I("symbolTypeAnnotation"), jSe = m.ThisTypeAnnotation = I("thisTypeAnnotation"), MSe = m. TupleTypeAnnotation = I("tupleTypeAnnotation"), RSe = m.TypeofTypeAnnotation = I("typeofTypeAnnotation"), qSe = m.TypeAlias = I("typeAlias"), USe = m.TypeAnnotation = I("typeAnnotation"), $Se = m.TypeCastExpression = I("typeCastExpression"), VSe = m.TypeParameter = I("typeParamet\ er"), KSe = m.TypeParameterDeclaration = I("typeParameterDeclaration"), WSe = m.TypeParameterInstantiation = I("typeParameterInstantiation"), YSe = m.UnionTypeAnnotation = I("unionTypeAnnotation"), HSe = m.Variance = I("variance"), JSe = m.VoidTypeAnnotation = I("voidTypeAnnotati\ on"), GSe = m.EnumDeclaration = I("enumDeclaration"), XSe = m.EnumBooleanBody = I("enumBooleanBody"), zSe = m.EnumNumberBody = I("enumNumber\ Body"), QSe = m.EnumStringBody = I("enumStringBody"), ZSe = m.EnumSymbolBody = I("enumSymbolBody"), eve = m.EnumBooleanMember = I("enumBoole\ anMember"), tve = m.EnumNumberMember = I("enumNumberMember"), rve = m.EnumStringMember = I("enumStringMember"), sve = m.EnumDefaultedMember = I("enumDefaultedMember"), nve = m.IndexedAccessType = I("indexedAccessType"), ive = m.OptionalIndexedAccessType = I("optionalIndexedAccess\ Type"), ave = m.JSXAttribute = I("jsxAttribute"), ove = m.JSXClosingElement = I("jsxClosingElement"), lve = m.JSXElement = I("jsxElement"), uve = m. JSXEmptyExpression = I("jsxEmptyExpression"), cve = m.JSXExpressionContainer = I("jsxExpressionContainer"), pve = m.JSXSpreadChild = I("js\ xSpreadChild"), fve = m.JSXIdentifier = I("jsxIdentifier"), dve = m.JSXMemberExpression = I("jsxMemberExpression"), hve = m.JSXNamespacedName = I("jsxNamespacedName"), mve = m.JSXOpeningElement = I("jsxOpeningElement"), yve = m.JSXSpreadAttribute = I("jsxSpreadAttribute"), bve = m. JSXText = I("jsxText"), gve = m.JSXFragment = I("jsxFragment"), Tve = m.JSXOpeningFragment = I("jsxOpeningFragment"), xve = m.JSXClosingFragment = I("jsxClosingFragment"), Eve = m.Noop = I("noop"), Sve = m.Placeholder = I("placeholder"), vve = m.V8IntrinsicIdentifier = I("v8IntrinsicI\ dentifier"), Pve = m.ArgumentPlaceholder = I("argumentPlaceholder"), Ave = m.BindExpression = I("bindExpression"), Cve = m.Decorator = I("de\ corator"), wve = m.DoExpression = I("doExpression"), Dve = m.ExportDefaultSpecifier = I("exportDefaultSpecifier"), _ve = m.RecordExpression = I("recordExpression"), Ive = m.TupleExpression = I("tupleExpression"), Ove = m.DecimalLiteral = I("decimalLiteral"), Nve = m.ModuleExpression = I("moduleExpression"), Bve = m.TopicReference = I("topicReference"), kve = m.PipelineTopicExpression = I("pipelineTopicExpression"), Fve = m. PipelineBareFunction = I("pipelineBareFunction"), Lve = m.PipelinePrimaryTopicReference = I("pipelinePrimaryTopicReference"), jve = m.VoidPattern = I("voidPattern"), Mve = m.TSParameterProperty = I("tsParameterProperty"), Rve = m.TSDeclareFunction = I("tsDeclareFunction"), qve = m.TSDeclareMethod = I("tsDeclareMethod"), Uve = m.TSQualifiedName = I("tsQualifiedName"), $ve = m.TSCallSignatureDeclaration = I("tsCallSignatureDeclaration"), Vve = m.TSConstructSignatureDeclaration = I("tsConstructSignatureDeclaration"), Kve = m.TSPropertySignature = I("tsPropertySignature"), Wve = m. TSMethodSignature = I("tsMethodSignature"), Yve = m.TSIndexSignature = I("tsIndexSignature"), Hve = m.TSAnyKeyword = I("tsAnyKeyword"), Jve = m. TSBooleanKeyword = I("tsBooleanKeyword"), Gve = m.TSBigIntKeyword = I("tsBigIntKeyword"), Xve = m.TSIntrinsicKeyword = I("tsIntrinsicKeywo\ rd"), zve = m.TSNeverKeyword = I("tsNeverKeyword"), Qve = m.TSNullKeyword = I("tsNullKeyword"), Zve = m.TSNumberKeyword = I("tsNumberKeyword"), ePe = m.TSObjectKeyword = I("tsObjectKeyword"), tPe = m.TSStringKeyword = I("tsStringKeyword"), rPe = m.TSSymbolKeyword = I("tsSymbolKeywo\ rd"), sPe = m.TSUndefinedKeyword = I("tsUndefinedKeyword"), nPe = m.TSUnknownKeyword = I("tsUnknownKeyword"), iPe = m.TSVoidKeyword = I("tsV\ oidKeyword"), aPe = m.TSThisType = I("tsThisType"), oPe = m.TSFunctionType = I("tsFunctionType"), lPe = m.TSConstructorType = I("tsConstruct\ orType"), uPe = m.TSTypeReference = I("tsTypeReference"), cPe = m.TSTypePredicate = I("tsTypePredicate"), pPe = m.TSTypeQuery = I("tsTypeQue\ ry"), fPe = m.TSTypeLiteral = I("tsTypeLiteral"), dPe = m.TSArrayType = I("tsArrayType"), hPe = m.TSTupleType = I("tsTupleType"), mPe = m.TSOptionalType = I("tsOptionalType"), yPe = m.TSRestType = I("tsRestType"), bPe = m.TSNamedTupleMember = I("tsNamedTupleMember"), gPe = m.TSUnionType = I("\ tsUnionType"), TPe = m.TSIntersectionType = I("tsIntersectionType"), xPe = m.TSConditionalType = I("tsConditionalType"), EPe = m.TSInferType = I("tsInferType"), SPe = m.TSParenthesizedType = I("tsParenthesizedType"), vPe = m.TSTypeOperator = I("tsTypeOperator"), PPe = m.TSIndexedAccessType = I("tsIndexedAccessType"), APe = m.TSMappedType = I("tsMappedType"), CPe = m.TSTemplateLiteralType = I("tsTemplateLiteralType"), wPe = m.TSLiteralType = I("tsLiteralType"), DPe = m.TSExpressionWithTypeArguments = I("tsExpressionWithTypeArguments"), _Pe = m.TSInterfaceDeclaration = I("tsInte\ rfaceDeclaration"), IPe = m.TSInterfaceBody = I("tsInterfaceBody"), OPe = m.TSTypeAliasDeclaration = I("tsTypeAliasDeclaration"), NPe = m.TSInstantiationExpression = I("tsInstantiationExpression"), BPe = m.TSAsExpression = I("tsAsExpression"), kPe = m.TSSatisfiesExpression = I("tsSatisfiesExpression"), FPe = m. TSTypeAssertion = I("tsTypeAssertion"), LPe = m.TSEnumBody = I("tsEnumBody"), jPe = m.TSEnumDeclaration = I("tsEnumDeclaration"), MPe = m. TSEnumMember = I("tsEnumMember"), RPe = m.TSModuleDeclaration = I("tsModuleDeclaration"), qPe = m.TSModuleBlock = I("tsModuleBlock"), UPe = m. TSImportType = I("tsImportType"), $Pe = m.TSImportEqualsDeclaration = I("tsImportEqualsDeclaration"), VPe = m.TSExternalModuleReference = I( "tsExternalModuleReference"), KPe = m.TSNonNullExpression = I("tsNonNullExpression"), WPe = m.TSExportAssignment = I("tsExportAssignment"), YPe = m.TSNamespaceExportDeclaration = I("tsNamespaceExportDeclaration"), HPe = m.TSTypeAnnotation = I("tsTypeAnnotation"), JPe = m.TSTypeParameterInstantiation = I("tsTypeParameterInstantiation"), GPe = m.TSTypeParameterDeclaration = I("tsTypeParameterDeclaration"), XPe = m.TSTypeParameter = I("tsTy\ peParameter"), zPe = m.NumberLiteral = ka.numberLiteral, QPe = m.RegexLiteral = ka.regexLiteral, ZPe = m.RestProperty = ka.restProperty, eAe = m. SpreadProperty = ka.spreadProperty; }); // ../node_modules/@babel/types/lib/builders/generated/index.js var zt = w((Ws) => { "use strict"; Object.defineProperty(Ws, "__esModule", { value: !0 }); var Rf = Mf(); Object.keys(Rf).forEach(function(e) { e === "default" || e === "__esModule" || e in Ws && Ws[e] === Rf[e] || Object.defineProperty(Ws, e, { enumerable: !0, get: /* @__PURE__ */ i(function() { return Rf[e]; }, "get") }); }); var qf = Kg(); Object.keys(qf).forEach(function(e) { e === "default" || e === "__esModule" || e in Ws && Ws[e] === qf[e] || Object.defineProperty(Ws, e, { enumerable: !0, get: /* @__PURE__ */ i(function() { return qf[e]; }, "get") }); }); }); // ../node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js var Wg = w((Uf) => { "use strict"; Object.defineProperty(Uf, "__esModule", { value: !0 }); Uf.default = Cj; var Pj = zt(), Aj = ue(); function Cj(e, t) { let r = e.value.split(/\r\n|\n|\r/), s = 0; for (let a = 0; a < r.length; a++) /[^ \t]/.exec(r[a]) && (s = a); let n = ""; for (let a = 0; a < r.length; a++) { let o = r[a], l = a === 0, u = a === r.length - 1, c = a === s, p = o.replace(/\t/g, " "); l || (p = p.replace(/^ +/, "")), u || (p = p.replace(/ +$/, "")), p && (c || (p += " "), n += p); } n && t.push((0, Aj.inherits)((0, Pj.stringLiteral)(n), e)); } i(Cj, "cleanJSXElementLiteralChild"); }); // ../node_modules/@babel/types/lib/builders/react/buildChildren.js var Yg = w((Vf) => { "use strict"; Object.defineProperty(Vf, "__esModule", { value: !0 }); Vf.default = Dj; var $f = Xe(), wj = Wg(); function Dj(e) { let t = []; for (let r = 0; r < e.children.length; r++) { let s = e.children[r]; if ((0, $f.isJSXText)(s)) { (0, wj.default)(s, t); continue; } (0, $f.isJSXExpressionContainer)(s) && (s = s.expression), !(0, $f.isJSXEmptyExpression)(s) && t.push(s); } return t; } i(Dj, "buildChildren"); }); // ../node_modules/@babel/types/lib/validators/isNode.js var Wf = w((Kf) => { "use strict"; Object.defineProperty(Kf, "__esModule", { value: !0 }); Kf.default = Ij; var _j = fr(); function Ij(e) { return !!(e && _j.VISITOR_KEYS[e.type]); } i(Ij, "isNode"); }); // ../node_modules/@babel/types/lib/asserts/assertNode.js var Hg = w((Yf) => { "use strict"; Object.defineProperty(Yf, "__esModule", { value: !0 }); Yf.default = Nj; var Oj = Wf(); function Nj(e) { if (!(0, Oj.default)(e)) { var t; let r = (t = e?.type) != null ? t : JSON.stringify(e); throw new TypeError(`Not a valid node of type "${r}"`); } } i(Nj, "assertNode"); }); // ../node_modules/@babel/types/lib/asserts/generated/index.js var Jg = w((S) => { "use strict"; Object.defineProperty(S, "__esModule", { value: !0 }); S.assertAccessor = Q$; S.assertAnyTypeAnnotation = mR; S.assertArgumentPlaceholder = Kq; S.assertArrayExpression = kj; S.assertArrayPattern = NM; S.assertArrayTypeAnnotation = yR; S.assertArrowFunctionExpression = BM; S.assertAssignmentExpression = Fj; S.assertAssignmentPattern = OM; S.assertAwaitExpression = rR; S.assertBigIntLiteral = nR; S.assertBinary = T$; S.assertBinaryExpression = Lj; S.assertBindExpression = Wq; S.assertBlock = S$; S.assertBlockParent = E$; S.assertBlockStatement = qj; S.assertBooleanLiteral = oM; S.assertBooleanLiteralTypeAnnotation = gR; S.assertBooleanTypeAnnotation = bR; S.assertBreakStatement = Uj; S.assertCallExpression = $j; S.assertCatchClause = Vj; S.assertClass = J$; S.assertClassAccessorProperty = uR; S.assertClassBody = kM; S.assertClassDeclaration = LM; S.assertClassExpression = FM; S.assertClassImplements = xR; S.assertClassMethod = JM; S.assertClassPrivateMethod = pR; S.assertClassPrivateProperty = cR; S.assertClassProperty = lR; S.assertCompletionStatement = A$; S.assertConditional = C$; S.assertConditionalExpression = Kj; S.assertContinueStatement = Wj; S.assertDebuggerStatement = Yj; S.assertDecimalLiteral = zq; S.assertDeclaration = F$; S.assertDeclareClass = ER; S.assertDeclareExportAllDeclaration = IR; S.assertDeclareExportDeclaration = _R; S.assertDeclareFunction = SR; S.assertDeclareInterface = vR; S.assertDeclareModule = PR; S.assertDeclareModuleExports = AR; S.assertDeclareOpaqueType = wR; S.assertDeclareTypeAlias = CR; S.assertDeclareVariable = DR; S.assertDeclaredPredicate = OR; S.assertDecorator = Yq; S.assertDirective = Mj; S.assertDirectiveLiteral = Rj; S.assertDoExpression = Hq; S.assertDoWhileStatement = Hj; S.assertEmptyStatement = Jj; S.assertEmptyTypeAnnotation = $R; S.assertEnumBody = iV; S.assertEnumBooleanBody = yq; S.assertEnumBooleanMember = xq; S.assertEnumDeclaration = mq; S.assertEnumDefaultedMember = vq; S.assertEnumMember = aV; S.assertEnumNumberBody = bq; S.assertEnumNumberMember = Eq; S.assertEnumStringBody = gq; S.assertEnumStringMember = Sq; S.assertEnumSymbolBody = Tq; S.assertExistsTypeAnnotation = NR; S.assertExportAllDeclaration = jM; S.assertExportDeclaration = X$; S.assertExportDefaultDeclaration = MM; S.assertExportDefaultSpecifier = Jq; S.assertExportNamedDeclaration = RM; S.assertExportNamespaceSpecifier = iR; S.assertExportSpecifier = qM; S.assertExpression = g$; S.assertExpressionStatement = Gj; S.assertExpressionWrapper = _$; S.assertFile = Xj; S.assertFlow = eV; S.assertFlowBaseAnnotation = rV; S.assertFlowDeclaration = sV; S.assertFlowPredicate = nV; S.assertFlowType = tV; S.assertFor = I$; S.assertForInStatement = zj; S.assertForOfStatement = UM; S.assertForStatement = Qj; S.assertForXStatement = O$; S.assertFunction = N$; S.assertFunctionDeclaration = Zj; S.assertFunctionExpression = eM; S.assertFunctionParameter = L$; S.assertFunctionParent = B$; S.assertFunctionTypeAnnotation = BR; S.assertFunctionTypeParam = kR; S.assertGenericTypeAnnotation = FR; S.assertIdentifier = tM; S.assertIfStatement = rM; S.assertImmutable = U$; S.assertImport = sR; S.assertImportAttribute = hR; S.assertImportDeclaration = $M; S.assertImportDefaultSpecifier = VM; S.assertImportExpression = YM; S.assertImportNamespaceSpecifier = KM; S.assertImportOrExportDeclaration = G$; S.assertImportSpecifier = WM; S.assertIndexedAccessType = Pq; S.assertInferredPredicate = LR; S.assertInterfaceDeclaration = MR; S.assertInterfaceExtends = jR; S.assertInterfaceTypeAnnotation = RR; S.assertInterpreterDirective = jj; S.assertIntersectionTypeAnnotation = qR; S.assertJSX = oV; S.assertJSXAttribute = Cq; S.assertJSXClosingElement = wq; S.assertJSXClosingFragment = qq; S.assertJSXElement = Dq; S.assertJSXEmptyExpression = _q; S.assertJSXExpressionContainer = Iq; S.assertJSXFragment = Mq; S.assertJSXIdentifier = Nq; S.assertJSXMemberExpression = Bq; S.assertJSXNamespacedName = kq; S.assertJSXOpeningElement = Fq; S.assertJSXOpeningFragment = Rq; S.assertJSXSpreadAttribute = Lq; S.assertJSXSpreadChild = Oq; S.assertJSXText = jq; S.assertLVal = M$; S.assertLabeledStatement = sM; S.assertLiteral = q$; S.assertLogicalExpression = uM; S.assertLoop = w$; S.assertMemberExpression = cM; S.assertMetaProperty = HM; S.assertMethod = V$; S.assertMiscellaneous = lV; S.assertMixedTypeAnnotation = UR; S.assertModuleDeclaration = bV; S.assertModuleExpression = Qq; S.assertModuleSpecifier = z$; S.assertNewExpression = pM; S.assertNoop = Uq; S.assertNullLiteral = aM; S.assertNullLiteralTypeAnnotation = TR; S.assertNullableTypeAnnotation = VR; S.assertNumberLiteral = dV; S.assertNumberLiteralTypeAnnotation = KR; S.assertNumberTypeAnnotation = WR; S.assertNumericLiteral = iM; S.assertObjectExpression = dM; S.assertObjectMember = K$; S.assertObjectMethod = hM; S.assertObjectPattern = GM; S.assertObjectProperty = mM; S.assertObjectTypeAnnotation = YR; S.assertObjectTypeCallProperty = JR; S.assertObjectTypeIndexer = GR; S.assertObjectTypeInternalSlot = HR; S.assertObjectTypeProperty = XR; S.assertObjectTypeSpreadProperty = zR; S.assertOpaqueType = QR; S.assertOptionalCallExpression = oR; S.assertOptionalIndexedAccessType = Aq; S.assertOptionalMemberExpression = aR; S.assertParenthesizedExpression = TM; S.assertPattern = H$; S.assertPatternLike = j$; S.assertPipelineBareFunction = tU; S.assertPipelinePrimaryTopicReference = rU; S.assertPipelineTopicExpression = eU; S.assertPlaceholder = $q; S.assertPrivate = Z$; S.assertPrivateName = fR; S.assertProgram = fM; S.assertProperty = W$; S.assertPureish = k$; S.assertQualifiedTypeIdentifier = ZR; S.assertRecordExpression = Gq; S.assertRegExpLiteral = lM; S.assertRegexLiteral = hV; S.assertRestElement = yM; S.assertRestProperty = mV; S.assertReturnStatement = bM; S.assertScopable = x$; S.assertSequenceExpression = gM; S.assertSpreadElement = XM; S.assertSpreadProperty = yV; S.assertStandardized = b$; S.assertStatement = v$; S.assertStaticBlock = dR; S.assertStringLiteral = nM; S.assertStringLiteralTypeAnnotation = eq; S.assertStringTypeAnnotation = tq; S.assertSuper = zM; S.assertSwitchCase = xM; S.assertSwitchStatement = EM; S.assertSymbolTypeAnnotation = rq; S.assertTSAnyKeyword = dU; S.assertTSArrayType = BU; S.assertTSAsExpression = ZU; S.assertTSBaseType = fV; S.assertTSBigIntKeyword = mU; S.assertTSBooleanKeyword = hU; S.assertTSCallSignatureDeclaration = lU; S.assertTSConditionalType = qU; S.assertTSConstructSignatureDeclaration = uU; S.assertTSConstructorType = DU; S.assertTSDeclareFunction = iU; S.assertTSDeclareMethod = aU; S.assertTSEntityName = R$; S.assertTSEnumBody = r$; S.assertTSEnumDeclaration = s$; S.assertTSEnumMember = n$; S.assertTSExportAssignment = p$; S.assertTSExpressionWithTypeArguments = JU; S.assertTSExternalModuleReference = u$; S.assertTSFunctionType = wU; S.assertTSImportEqualsDeclaration = l$; S.assertTSImportType = o$; S.assertTSIndexSignature = fU; S.assertTSIndexedAccessType = KU; S.assertTSInferType = UU; S.assertTSInstantiationExpression = QU; S.assertTSInterfaceBody = XU; S.assertTSInterfaceDeclaration = GU; S.assertTSIntersectionType = RU; S.assertTSIntrinsicKeyword = yU; S.assertTSLiteralType = HU; S.assertTSMappedType = WU; S.assertTSMethodSignature = pU; S.assertTSModuleBlock = a$; S.assertTSModuleDeclaration = i$; S.assertTSNamedTupleMember = jU; S.assertTSNamespaceExportDeclaration = f$; S.assertTSNeverKeyword = bU; S.assertTSNonNullExpression = c$; S.assertTSNullKeyword = gU; S.assertTSNumberKeyword = TU; S.assertTSObjectKeyword = xU; S.assertTSOptionalType = FU; S.assertTSParameterProperty = nU; S.assertTSParenthesizedType = $U; S.assertTSPropertySignature = cU; S.assertTSQualifiedName = oU; S.assertTSRestType = LU; S.assertTSSatisfiesExpression = e$; S.assertTSStringKeyword = EU; S.assertTSSymbolKeyword = SU; S.assertTSTemplateLiteralType = YU; S.assertTSThisType = CU; S.assertTSTupleType = kU; S.assertTSType = pV; S.assertTSTypeAliasDeclaration = zU; S.assertTSTypeAnnotation = d$; S.assertTSTypeAssertion = t$; S.assertTSTypeElement = cV; S.assertTSTypeLiteral = NU; S.assertTSTypeOperator = VU; S.assertTSTypeParameter = y$; S.assertTSTypeParameterDeclaration = m$; S.assertTSTypeParameterInstantiation = h$; S.assertTSTypePredicate = IU; S.assertTSTypeQuery = OU; S.assertTSTypeReference = _U; S.assertTSUndefinedKeyword = vU; S.assertTSUnionType = MU; S.assertTSUnknownKeyword = PU; S.assertTSVoidKeyword = AU; S.assertTaggedTemplateExpression = QM; S.assertTemplateElement = ZM; S.assertTemplateLiteral = eR; S.assertTerminatorless = P$; S.assertThisExpression = SM; S.assertThisTypeAnnotation = sq; S.assertThrowStatement = vM; S.assertTopicReference = Zq; S.assertTryStatement = PM; S.assertTupleExpression = Xq; S.assertTupleTypeAnnotation = nq; S.assertTypeAlias = aq; S.assertTypeAnnotation = oq; S.assertTypeCastExpression = lq; S.assertTypeParameter = uq; S.assertTypeParameterDeclaration = cq; S.assertTypeParameterInstantiation = pq; S.assertTypeScript = uV; S.assertTypeofTypeAnnotation = iq; S.assertUnaryExpression = AM; S.assertUnaryLike = Y$; S.assertUnionTypeAnnotation = fq; S.assertUpdateExpression = CM; S.assertUserWhitespacable = $$; S.assertV8IntrinsicIdentifier = Vq; S.assertVariableDeclaration = wM; S.assertVariableDeclarator = DM; S.assertVariance = dq; S.assertVoidPattern = sU; S.assertVoidTypeAnnotation = hq; S.assertWhile = D$; S.assertWhileStatement = _M; S.assertWithStatement = IM; S.assertYieldExpression = tR; var Bj = mi(), Fa = hi(); function v(e, t, r) { if (!(0, Bj.default)(e, t, r)) throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`); } i(v, "assert"); function kj(e, t) { v("ArrayExpression", e, t); } i(kj, "assertArrayExpression"); function Fj(e, t) { v("AssignmentExpression", e, t); } i(Fj, "assertAssignmentExpression"); function Lj(e, t) { v("BinaryExpression", e, t); } i(Lj, "assertBinaryExpression"); function jj(e, t) { v("InterpreterDirective", e, t); } i(jj, "assertInterpreterDirective"); function Mj(e, t) { v("Directive", e, t); } i(Mj, "assertDirective"); function Rj(e, t) { v("DirectiveLiteral", e, t); } i(Rj, "assertDirectiveLiteral"); function qj(e, t) { v("BlockStatement", e, t); } i(qj, "assertBlockStatement"); function Uj(e, t) { v("BreakStatement", e, t); } i(Uj, "assertBreakStatement"); function $j(e, t) { v("CallExpression", e, t); } i($j, "assertCallExpression"); function Vj(e, t) { v("CatchClause", e, t); } i(Vj, "assertCatchClause"); function Kj(e, t) { v("ConditionalExpression", e, t); } i(Kj, "assertConditionalExpression"); function Wj(e, t) { v("ContinueStatement", e, t); } i(Wj, "assertContinueStatement"); function Yj(e, t) { v("DebuggerStatement", e, t); } i(Yj, "assertDebuggerStatement"); function Hj(e, t) { v("DoWhileStatement", e, t); } i(Hj, "assertDoWhileStatement"); function Jj(e, t) { v("EmptyStatement", e, t); } i(Jj, "assertEmptyStatement"); function Gj(e, t) { v("ExpressionStatement", e, t); } i(Gj, "assertExpressionStatement"); function Xj(e, t) { v("File", e, t); } i(Xj, "assertFile"); function zj(e, t) { v("ForInStatement", e, t); } i(zj, "assertForInStatement"); function Qj(e, t) { v("ForStatement", e, t); } i(Qj, "assertForStatement"); function Zj(e, t) { v("FunctionDeclaration", e, t); } i(Zj, "assertFunctionDeclaration"); function eM(e, t) { v("FunctionExpression", e, t); } i(eM, "assertFunctionExpression"); function tM(e, t) { v("Identifier", e, t); } i(tM, "assertIdentifier"); function rM(e, t) { v("IfStatement", e, t); } i(rM, "assertIfStatement"); function sM(e, t) { v("LabeledStatement", e, t); } i(sM, "assertLabeledStatement"); function nM(e, t) { v("StringLiteral", e, t); } i(nM, "assertStringLiteral"); function iM(e, t) { v("NumericLiteral", e, t); } i(iM, "assertNumericLiteral"); function aM(e, t) { v("NullLiteral", e, t); } i(aM, "assertNullLiteral"); function oM(e, t) { v("BooleanLiteral", e, t); } i(oM, "assertBooleanLiteral"); function lM(e, t) { v("RegExpLiteral", e, t); } i(lM, "assertRegExpLiteral"); function uM(e, t) { v("LogicalExpression", e, t); } i(uM, "assertLogicalExpression"); function cM(e, t) { v("MemberExpression", e, t); } i(cM, "assertMemberExpression"); function pM(e, t) { v("NewExpression", e, t); } i(pM, "assertNewExpression"); function fM(e, t) { v("Program", e, t); } i(fM, "assertProgram"); function dM(e, t) { v("ObjectExpression", e, t); } i(dM, "assertObjectExpression"); function hM(e, t) { v("ObjectMethod", e, t); } i(hM, "assertObjectMethod"); function mM(e, t) { v("ObjectProperty", e, t); } i(mM, "assertObjectProperty"); function yM(e, t) { v("RestElement", e, t); } i(yM, "assertRestElement"); function bM(e, t) { v("ReturnStatement", e, t); } i(bM, "assertReturnStatement"); function gM(e, t) { v("SequenceExpression", e, t); } i(gM, "assertSequenceExpression"); function TM(e, t) { v("ParenthesizedExpression", e, t); } i(TM, "assertParenthesizedExpression"); function xM(e, t) { v("SwitchCase", e, t); } i(xM, "assertSwitchCase"); function EM(e, t) { v("SwitchStatement", e, t); } i(EM, "assertSwitchStatement"); function SM(e, t) { v("ThisExpression", e, t); } i(SM, "assertThisExpression"); function vM(e, t) { v("ThrowStatement", e, t); } i(vM, "assertThrowStatement"); function PM(e, t) { v("TryStatement", e, t); } i(PM, "assertTryStatement"); function AM(e, t) { v("UnaryExpression", e, t); } i(AM, "assertUnaryExpression"); function CM(e, t) { v("UpdateExpression", e, t); } i(CM, "assertUpdateExpression"); function wM(e, t) { v("VariableDeclaration", e, t); } i(wM, "assertVariableDeclaration"); function DM(e, t) { v("VariableDeclarator", e, t); } i(DM, "assertVariableDeclarator"); function _M(e, t) { v("WhileStatement", e, t); } i(_M, "assertWhileStatement"); function IM(e, t) { v("WithStatement", e, t); } i(IM, "assertWithStatement"); function OM(e, t) { v("AssignmentPattern", e, t); } i(OM, "assertAssignmentPattern"); function NM(e, t) { v("ArrayPattern", e, t); } i(NM, "assertArrayPattern"); function BM(e, t) { v("ArrowFunctionExpression", e, t); } i(BM, "assertArrowFunctionExpression"); function kM(e, t) { v("ClassBody", e, t); } i(kM, "assertClassBody"); function FM(e, t) { v("ClassExpression", e, t); } i(FM, "assertClassExpression"); function LM(e, t) { v("ClassDeclaration", e, t); } i(LM, "assertClassDeclaration"); function jM(e, t) { v("ExportAllDeclaration", e, t); } i(jM, "assertExportAllDeclaration"); function MM(e, t) { v("ExportDefaultDeclaration", e, t); } i(MM, "assertExportDefaultDeclaration"); function RM(e, t) { v("ExportNamedDeclaration", e, t); } i(RM, "assertExportNamedDeclaration"); function qM(e, t) { v("ExportSpecifier", e, t); } i(qM, "assertExportSpecifier"); function UM(e, t) { v("ForOfStatement", e, t); } i(UM, "assertForOfStatement"); function $M(e, t) { v("ImportDeclaration", e, t); } i($M, "assertImportDeclaration"); function VM(e, t) { v("ImportDefaultSpecifier", e, t); } i(VM, "assertImportDefaultSpecifier"); function KM(e, t) { v("ImportNamespaceSpecifier", e, t); } i(KM, "assertImportNamespaceSpecifier"); function WM(e, t) { v("ImportSpecifier", e, t); } i(WM, "assertImportSpecifier"); function YM(e, t) { v("ImportExpression", e, t); } i(YM, "assertImportExpression"); function HM(e, t) { v("MetaProperty", e, t); } i(HM, "assertMetaProperty"); function JM(e, t) { v("ClassMethod", e, t); } i(JM, "assertClassMethod"); function GM(e, t) { v("ObjectPattern", e, t); } i(GM, "assertObjectPattern"); function XM(e, t) { v("SpreadElement", e, t); } i(XM, "assertSpreadElement"); function zM(e, t) { v("Super", e, t); } i(zM, "assertSuper"); function QM(e, t) { v("TaggedTemplateExpression", e, t); } i(QM, "assertTaggedTemplateExpression"); function ZM(e, t) { v("TemplateElement", e, t); } i(ZM, "assertTemplateElement"); function eR(e, t) { v("TemplateLiteral", e, t); } i(eR, "assertTemplateLiteral"); function tR(e, t) { v("YieldExpression", e, t); } i(tR, "assertYieldExpression"); function rR(e, t) { v("AwaitExpression", e, t); } i(rR, "assertAwaitExpression"); function sR(e, t) { v("Import", e, t); } i(sR, "assertImport"); function nR(e, t) { v("BigIntLiteral", e, t); } i(nR, "assertBigIntLiteral"); function iR(e, t) { v("ExportNamespaceSpecifier", e, t); } i(iR, "assertExportNamespaceSpecifier"); function aR(e, t) { v("OptionalMemberExpression", e, t); } i(aR, "assertOptionalMemberExpression"); function oR(e, t) { v("OptionalCallExpression", e, t); } i(oR, "assertOptionalCallExpression"); function lR(e, t) { v("ClassProperty", e, t); } i(lR, "assertClassProperty"); function uR(e, t) { v("ClassAccessorProperty", e, t); } i(uR, "assertClassAccessorProperty"); function cR(e, t) { v("ClassPrivateProperty", e, t); } i(cR, "assertClassPrivateProperty"); function pR(e, t) { v("ClassPrivateMethod", e, t); } i(pR, "assertClassPrivateMethod"); function fR(e, t) { v("PrivateName", e, t); } i(fR, "assertPrivateName"); function dR(e, t) { v("StaticBlock", e, t); } i(dR, "assertStaticBlock"); function hR(e, t) { v("ImportAttribute", e, t); } i(hR, "assertImportAttribute"); function mR(e, t) { v("AnyTypeAnnotation", e, t); } i(mR, "assertAnyTypeAnnotation"); function yR(e, t) { v("ArrayTypeAnnotation", e, t); } i(yR, "assertArrayTypeAnnotation"); function bR(e, t) { v("BooleanTypeAnnotation", e, t); } i(bR, "assertBooleanTypeAnnotation"); function gR(e, t) { v("BooleanLiteralTypeAnnotation", e, t); } i(gR, "assertBooleanLiteralTypeAnnotation"); function TR(e, t) { v("NullLiteralTypeAnnotation", e, t); } i(TR, "assertNullLiteralTypeAnnotation"); function xR(e, t) { v("ClassImplements", e, t); } i(xR, "assertClassImplements"); function ER(e, t) { v("DeclareClass", e, t); } i(ER, "assertDeclareClass"); function SR(e, t) { v("DeclareFunction", e, t); } i(SR, "assertDeclareFunction"); function vR(e, t) { v("DeclareInterface", e, t); } i(vR, "assertDeclareInterface"); function PR(e, t) { v("DeclareModule", e, t); } i(PR, "assertDeclareModule"); function AR(e, t) { v("DeclareModuleExports", e, t); } i(AR, "assertDeclareModuleExports"); function CR(e, t) { v("DeclareTypeAlias", e, t); } i(CR, "assertDeclareTypeAlias"); function wR(e, t) { v("DeclareOpaqueType", e, t); } i(wR, "assertDeclareOpaqueType"); function DR(e, t) { v("DeclareVariable", e, t); } i(DR, "assertDeclareVariable"); function _R(e, t) { v("DeclareExportDeclaration", e, t); } i(_R, "assertDeclareExportDeclaration"); function IR(e, t) { v("DeclareExportAllDeclaration", e, t); } i(IR, "assertDeclareExportAllDeclaration"); function OR(e, t) { v("DeclaredPredicate", e, t); } i(OR, "assertDeclaredPredicate"); function NR(e, t) { v("ExistsTypeAnnotation", e, t); } i(NR, "assertExistsTypeAnnotation"); function BR(e, t) { v("FunctionTypeAnnotation", e, t); } i(BR, "assertFunctionTypeAnnotation"); function kR(e, t) { v("FunctionTypeParam", e, t); } i(kR, "assertFunctionTypeParam"); function FR(e, t) { v("GenericTypeAnnotation", e, t); } i(FR, "assertGenericTypeAnnotation"); function LR(e, t) { v("InferredPredicate", e, t); } i(LR, "assertInferredPredicate"); function jR(e, t) { v("InterfaceExtends", e, t); } i(jR, "assertInterfaceExtends"); function MR(e, t) { v("InterfaceDeclaration", e, t); } i(MR, "assertInterfaceDeclaration"); function RR(e, t) { v("InterfaceTypeAnnotation", e, t); } i(RR, "assertInterfaceTypeAnnotation"); function qR(e, t) { v("IntersectionTypeAnnotation", e, t); } i(qR, "assertIntersectionTypeAnnotation"); function UR(e, t) { v("MixedTypeAnnotation", e, t); } i(UR, "assertMixedTypeAnnotation"); function $R(e, t) { v("EmptyTypeAnnotation", e, t); } i($R, "assertEmptyTypeAnnotation"); function VR(e, t) { v("NullableTypeAnnotation", e, t); } i(VR, "assertNullableTypeAnnotation"); function KR(e, t) { v("NumberLiteralTypeAnnotation", e, t); } i(KR, "assertNumberLiteralTypeAnnotation"); function WR(e, t) { v("NumberTypeAnnotation", e, t); } i(WR, "assertNumberTypeAnnotation"); function YR(e, t) { v("ObjectTypeAnnotation", e, t); } i(YR, "assertObjectTypeAnnotation"); function HR(e, t) { v("ObjectTypeInternalSlot", e, t); } i(HR, "assertObjectTypeInternalSlot"); function JR(e, t) { v("ObjectTypeCallProperty", e, t); } i(JR, "assertObjectTypeCallProperty"); function GR(e, t) { v("ObjectTypeIndexer", e, t); } i(GR, "assertObjectTypeIndexer"); function XR(e, t) { v("ObjectTypeProperty", e, t); } i(XR, "assertObjectTypeProperty"); function zR(e, t) { v("ObjectTypeSpreadProperty", e, t); } i(zR, "assertObjectTypeSpreadProperty"); function QR(e, t) { v("OpaqueType", e, t); } i(QR, "assertOpaqueType"); function ZR(e, t) { v("QualifiedTypeIdentifier", e, t); } i(ZR, "assertQualifiedTypeIdentifier"); function eq(e, t) { v("StringLiteralTypeAnnotation", e, t); } i(eq, "assertStringLiteralTypeAnnotation"); function tq(e, t) { v("StringTypeAnnotation", e, t); } i(tq, "assertStringTypeAnnotation"); function rq(e, t) { v("SymbolTypeAnnotation", e, t); } i(rq, "assertSymbolTypeAnnotation"); function sq(e, t) { v("ThisTypeAnnotation", e, t); } i(sq, "assertThisTypeAnnotation"); function nq(e, t) { v("TupleTypeAnnotation", e, t); } i(nq, "assertTupleTypeAnnotation"); function iq(e, t) { v("TypeofTypeAnnotation", e, t); } i(iq, "assertTypeofTypeAnnotation"); function aq(e, t) { v("TypeAlias", e, t); } i(aq, "assertTypeAlias"); function oq(e, t) { v("TypeAnnotation", e, t); } i(oq, "assertTypeAnnotation"); function lq(e, t) { v("TypeCastExpression", e, t); } i(lq, "assertTypeCastExpression"); function uq(e, t) { v("TypeParameter", e, t); } i(uq, "assertTypeParameter"); function cq(e, t) { v("TypeParameterDeclaration", e, t); } i(cq, "assertTypeParameterDeclaration"); function pq(e, t) { v("TypeParameterInstantiation", e, t); } i(pq, "assertTypeParameterInstantiation"); function fq(e, t) { v("UnionTypeAnnotation", e, t); } i(fq, "assertUnionTypeAnnotation"); function dq(e, t) { v("Variance", e, t); } i(dq, "assertVariance"); function hq(e, t) { v("VoidTypeAnnotation", e, t); } i(hq, "assertVoidTypeAnnotation"); function mq(e, t) { v("EnumDeclaration", e, t); } i(mq, "assertEnumDeclaration"); function yq(e, t) { v("EnumBooleanBody", e, t); } i(yq, "assertEnumBooleanBody"); function bq(e, t) { v("EnumNumberBody", e, t); } i(bq, "assertEnumNumberBody"); function gq(e, t) { v("EnumStringBody", e, t); } i(gq, "assertEnumStringBody"); function Tq(e, t) { v("EnumSymbolBody", e, t); } i(Tq, "assertEnumSymbolBody"); function xq(e, t) { v("EnumBooleanMember", e, t); } i(xq, "assertEnumBooleanMember"); function Eq(e, t) { v("EnumNumberMember", e, t); } i(Eq, "assertEnumNumberMember"); function Sq(e, t) { v("EnumStringMember", e, t); } i(Sq, "assertEnumStringMember"); function vq(e, t) { v("EnumDefaultedMember", e, t); } i(vq, "assertEnumDefaultedMember"); function Pq(e, t) { v("IndexedAccessType", e, t); } i(Pq, "assertIndexedAccessType"); function Aq(e, t) { v("OptionalIndexedAccessType", e, t); } i(Aq, "assertOptionalIndexedAccessType"); function Cq(e, t) { v("JSXAttribute", e, t); } i(Cq, "assertJSXAttribute"); function wq(e, t) { v("JSXClosingElement", e, t); } i(wq, "assertJSXClosingElement"); function Dq(e, t) { v("JSXElement", e, t); } i(Dq, "assertJSXElement"); function _q(e, t) { v("JSXEmptyExpression", e, t); } i(_q, "assertJSXEmptyExpression"); function Iq(e, t) { v("JSXExpressionContainer", e, t); } i(Iq, "assertJSXExpressionContainer"); function Oq(e, t) { v("JSXSpreadChild", e, t); } i(Oq, "assertJSXSpreadChild"); function Nq(e, t) { v("JSXIdentifier", e, t); } i(Nq, "assertJSXIdentifier"); function Bq(e, t) { v("JSXMemberExpression", e, t); } i(Bq, "assertJSXMemberExpression"); function kq(e, t) { v("JSXNamespacedName", e, t); } i(kq, "assertJSXNamespacedName"); function Fq(e, t) { v("JSXOpeningElement", e, t); } i(Fq, "assertJSXOpeningElement"); function Lq(e, t) { v("JSXSpreadAttribute", e, t); } i(Lq, "assertJSXSpreadAttribute"); function jq(e, t) { v("JSXText", e, t); } i(jq, "assertJSXText"); function Mq(e, t) { v("JSXFragment", e, t); } i(Mq, "assertJSXFragment"); function Rq(e, t) { v("JSXOpeningFragment", e, t); } i(Rq, "assertJSXOpeningFragment"); function qq(e, t) { v("JSXClosingFragment", e, t); } i(qq, "assertJSXClosingFragment"); function Uq(e, t) { v("Noop", e, t); } i(Uq, "assertNoop"); function $q(e, t) { v("Placeholder", e, t); } i($q, "assertPlaceholder"); function Vq(e, t) { v("V8IntrinsicIdentifier", e, t); } i(Vq, "assertV8IntrinsicIdentifier"); function Kq(e, t) { v("ArgumentPlaceholder", e, t); } i(Kq, "assertArgumentPlaceholder"); function Wq(e, t) { v("BindExpression", e, t); } i(Wq, "assertBindExpression"); function Yq(e, t) { v("Decorator", e, t); } i(Yq, "assertDecorator"); function Hq(e, t) { v("DoExpression", e, t); } i(Hq, "assertDoExpression"); function Jq(e, t) { v("ExportDefaultSpecifier", e, t); } i(Jq, "assertExportDefaultSpecifier"); function Gq(e, t) { v("RecordExpression", e, t); } i(Gq, "assertRecordExpression"); function Xq(e, t) { v("TupleExpression", e, t); } i(Xq, "assertTupleExpression"); function zq(e, t) { v("DecimalLiteral", e, t); } i(zq, "assertDecimalLiteral"); function Qq(e, t) { v("ModuleExpression", e, t); } i(Qq, "assertModuleExpression"); function Zq(e, t) { v("TopicReference", e, t); } i(Zq, "assertTopicReference"); function eU(e, t) { v("PipelineTopicExpression", e, t); } i(eU, "assertPipelineTopicExpression"); function tU(e, t) { v("PipelineBareFunction", e, t); } i(tU, "assertPipelineBareFunction"); function rU(e, t) { v("PipelinePrimaryTopicReference", e, t); } i(rU, "assertPipelinePrimaryTopicReference"); function sU(e, t) { v("VoidPattern", e, t); } i(sU, "assertVoidPattern"); function nU(e, t) { v("TSParameterProperty", e, t); } i(nU, "assertTSParameterProperty"); function iU(e, t) { v("TSDeclareFunction", e, t); } i(iU, "assertTSDeclareFunction"); function aU(e, t) { v("TSDeclareMethod", e, t); } i(aU, "assertTSDeclareMethod"); function oU(e, t) { v("TSQualifiedName", e, t); } i(oU, "assertTSQualifiedName"); function lU(e, t) { v("TSCallSignatureDeclaration", e, t); } i(lU, "assertTSCallSignatureDeclaration"); function uU(e, t) { v("TSConstructSignatureDeclaration", e, t); } i(uU, "assertTSConstructSignatureDeclaration"); function cU(e, t) { v("TSPropertySignature", e, t); } i(cU, "assertTSPropertySignature"); function pU(e, t) { v("TSMethodSignature", e, t); } i(pU, "assertTSMethodSignature"); function fU(e, t) { v("TSIndexSignature", e, t); } i(fU, "assertTSIndexSignature"); function dU(e, t) { v("TSAnyKeyword", e, t); } i(dU, "assertTSAnyKeyword"); function hU(e, t) { v("TSBooleanKeyword", e, t); } i(hU, "assertTSBooleanKeyword"); function mU(e, t) { v("TSBigIntKeyword", e, t); } i(mU, "assertTSBigIntKeyword"); function yU(e, t) { v("TSIntrinsicKeyword", e, t); } i(yU, "assertTSIntrinsicKeyword"); function bU(e, t) { v("TSNeverKeyword", e, t); } i(bU, "assertTSNeverKeyword"); function gU(e, t) { v("TSNullKeyword", e, t); } i(gU, "assertTSNullKeyword"); function TU(e, t) { v("TSNumberKeyword", e, t); } i(TU, "assertTSNumberKeyword"); function xU(e, t) { v("TSObjectKeyword", e, t); } i(xU, "assertTSObjectKeyword"); function EU(e, t) { v("TSStringKeyword", e, t); } i(EU, "assertTSStringKeyword"); function SU(e, t) { v("TSSymbolKeyword", e, t); } i(SU, "assertTSSymbolKeyword"); function vU(e, t) { v("TSUndefinedKeyword", e, t); } i(vU, "assertTSUndefinedKeyword"); function PU(e, t) { v("TSUnknownKeyword", e, t); } i(PU, "assertTSUnknownKeyword"); function AU(e, t) { v("TSVoidKeyword", e, t); } i(AU, "assertTSVoidKeyword"); function CU(e, t) { v("TSThisType", e, t); } i(CU, "assertTSThisType"); function wU(e, t) { v("TSFunctionType", e, t); } i(wU, "assertTSFunctionType"); function DU(e, t) { v("TSConstructorType", e, t); } i(DU, "assertTSConstructorType"); function _U(e, t) { v("TSTypeReference", e, t); } i(_U, "assertTSTypeReference"); function IU(e, t) { v("TSTypePredicate", e, t); } i(IU, "assertTSTypePredicate"); function OU(e, t) { v("TSTypeQuery", e, t); } i(OU, "assertTSTypeQuery"); function NU(e, t) { v("TSTypeLiteral", e, t); } i(NU, "assertTSTypeLiteral"); function BU(e, t) { v("TSArrayType", e, t); } i(BU, "assertTSArrayType"); function kU(e, t) { v("TSTupleType", e, t); } i(kU, "assertTSTupleType"); function FU(e, t) { v("TSOptionalType", e, t); } i(FU, "assertTSOptionalType"); function LU(e, t) { v("TSRestType", e, t); } i(LU, "assertTSRestType"); function jU(e, t) { v("TSNamedTupleMember", e, t); } i(jU, "assertTSNamedTupleMember"); function MU(e, t) { v("TSUnionType", e, t); } i(MU, "assertTSUnionType"); function RU(e, t) { v("TSIntersectionType", e, t); } i(RU, "assertTSIntersectionType"); function qU(e, t) { v("TSConditionalType", e, t); } i(qU, "assertTSConditionalType"); function UU(e, t) { v("TSInferType", e, t); } i(UU, "assertTSInferType"); function $U(e, t) { v("TSParenthesizedType", e, t); } i($U, "assertTSParenthesizedType"); function VU(e, t) { v("TSTypeOperator", e, t); } i(VU, "assertTSTypeOperator"); function KU(e, t) { v("TSIndexedAccessType", e, t); } i(KU, "assertTSIndexedAccessType"); function WU(e, t) { v("TSMappedType", e, t); } i(WU, "assertTSMappedType"); function YU(e, t) { v("TSTemplateLiteralType", e, t); } i(YU, "assertTSTemplateLiteralType"); function HU(e, t) { v("TSLiteralType", e, t); } i(HU, "assertTSLiteralType"); function JU(e, t) { v("TSExpressionWithTypeArguments", e, t); } i(JU, "assertTSExpressionWithTypeArguments"); function GU(e, t) { v("TSInterfaceDeclaration", e, t); } i(GU, "assertTSInterfaceDeclaration"); function XU(e, t) { v("TSInterfaceBody", e, t); } i(XU, "assertTSInterfaceBody"); function zU(e, t) { v("TSTypeAliasDeclaration", e, t); } i(zU, "assertTSTypeAliasDeclaration"); function QU(e, t) { v("TSInstantiationExpression", e, t); } i(QU, "assertTSInstantiationExpression"); function ZU(e, t) { v("TSAsExpression", e, t); } i(ZU, "assertTSAsExpression"); function e$(e, t) { v("TSSatisfiesExpression", e, t); } i(e$, "assertTSSatisfiesExpression"); function t$(e, t) { v("TSTypeAssertion", e, t); } i(t$, "assertTSTypeAssertion"); function r$(e, t) { v("TSEnumBody", e, t); } i(r$, "assertTSEnumBody"); function s$(e, t) { v("TSEnumDeclaration", e, t); } i(s$, "assertTSEnumDeclaration"); function n$(e, t) { v("TSEnumMember", e, t); } i(n$, "assertTSEnumMember"); function i$(e, t) { v("TSModuleDeclaration", e, t); } i(i$, "assertTSModuleDeclaration"); function a$(e, t) { v("TSModuleBlock", e, t); } i(a$, "assertTSModuleBlock"); function o$(e, t) { v("TSImportType", e, t); } i(o$, "assertTSImportType"); function l$(e, t) { v("TSImportEqualsDeclaration", e, t); } i(l$, "assertTSImportEqualsDeclaration"); function u$(e, t) { v("TSExternalModuleReference", e, t); } i(u$, "assertTSExternalModuleReference"); function c$(e, t) { v("TSNonNullExpression", e, t); } i(c$, "assertTSNonNullExpression"); function p$(e, t) { v("TSExportAssignment", e, t); } i(p$, "assertTSExportAssignment"); function f$(e, t) { v("TSNamespaceExportDeclaration", e, t); } i(f$, "assertTSNamespaceExportDeclaration"); function d$(e, t) { v("TSTypeAnnotation", e, t); } i(d$, "assertTSTypeAnnotation"); function h$(e, t) { v("TSTypeParameterInstantiation", e, t); } i(h$, "assertTSTypeParameterInstantiation"); function m$(e, t) { v("TSTypeParameterDeclaration", e, t); } i(m$, "assertTSTypeParameterDeclaration"); function y$(e, t) { v("TSTypeParameter", e, t); } i(y$, "assertTSTypeParameter"); function b$(e, t) { v("Standardized", e, t); } i(b$, "assertStandardized"); function g$(e, t) { v("Expression", e, t); } i(g$, "assertExpression"); function T$(e, t) { v("Binary", e, t); } i(T$, "assertBinary"); function x$(e, t) { v("Scopable", e, t); } i(x$, "assertScopable"); function E$(e, t) { v("BlockParent", e, t); } i(E$, "assertBlockParent"); function S$(e, t) { v("Block", e, t); } i(S$, "assertBlock"); function v$(e, t) { v("Statement", e, t); } i(v$, "assertStatement"); function P$(e, t) { v("Terminatorless", e, t); } i(P$, "assertTerminatorless"); function A$(e, t) { v("CompletionStatement", e, t); } i(A$, "assertCompletionStatement"); function C$(e, t) { v("Conditional", e, t); } i(C$, "assertConditional"); function w$(e, t) { v("Loop", e, t); } i(w$, "assertLoop"); function D$(e, t) { v("While", e, t); } i(D$, "assertWhile"); function _$(e, t) { v("ExpressionWrapper", e, t); } i(_$, "assertExpressionWrapper"); function I$(e, t) { v("For", e, t); } i(I$, "assertFor"); function O$(e, t) { v("ForXStatement", e, t); } i(O$, "assertForXStatement"); function N$(e, t) { v("Function", e, t); } i(N$, "assertFunction"); function B$(e, t) { v("FunctionParent", e, t); } i(B$, "assertFunctionParent"); function k$(e, t) { v("Pureish", e, t); } i(k$, "assertPureish"); function F$(e, t) { v("Declaration", e, t); } i(F$, "assertDeclaration"); function L$(e, t) { v("FunctionParameter", e, t); } i(L$, "assertFunctionParameter"); function j$(e, t) { v("PatternLike", e, t); } i(j$, "assertPatternLike"); function M$(e, t) { v("LVal", e, t); } i(M$, "assertLVal"); function R$(e, t) { v("TSEntityName", e, t); } i(R$, "assertTSEntityName"); function q$(e, t) { v("Literal", e, t); } i(q$, "assertLiteral"); function U$(e, t) { v("Immutable", e, t); } i(U$, "assertImmutable"); function $$(e, t) { v("UserWhitespacable", e, t); } i($$, "assertUserWhitespacable"); function V$(e, t) { v("Method", e, t); } i(V$, "assertMethod"); function K$(e, t) { v("ObjectMember", e, t); } i(K$, "assertObjectMember"); function W$(e, t) { v("Property", e, t); } i(W$, "assertProperty"); function Y$(e, t) { v("UnaryLike", e, t); } i(Y$, "assertUnaryLike"); function H$(e, t) { v("Pattern", e, t); } i(H$, "assertPattern"); function J$(e, t) { v("Class", e, t); } i(J$, "assertClass"); function G$(e, t) { v("ImportOrExportDeclaration", e, t); } i(G$, "assertImportOrExportDeclaration"); function X$(e, t) { v("ExportDeclaration", e, t); } i(X$, "assertExportDeclaration"); function z$(e, t) { v("ModuleSpecifier", e, t); } i(z$, "assertModuleSpecifier"); function Q$(e, t) { v("Accessor", e, t); } i(Q$, "assertAccessor"); function Z$(e, t) { v("Private", e, t); } i(Z$, "assertPrivate"); function eV(e, t) { v("Flow", e, t); } i(eV, "assertFlow"); function tV(e, t) { v("FlowType", e, t); } i(tV, "assertFlowType"); function rV(e, t) { v("FlowBaseAnnotation", e, t); } i(rV, "assertFlowBaseAnnotation"); function sV(e, t) { v("FlowDeclaration", e, t); } i(sV, "assertFlowDeclaration"); function nV(e, t) { v("FlowPredicate", e, t); } i(nV, "assertFlowPredicate"); function iV(e, t) { v("EnumBody", e, t); } i(iV, "assertEnumBody"); function aV(e, t) { v("EnumMember", e, t); } i(aV, "assertEnumMember"); function oV(e, t) { v("JSX", e, t); } i(oV, "assertJSX"); function lV(e, t) { v("Miscellaneous", e, t); } i(lV, "assertMiscellaneous"); function uV(e, t) { v("TypeScript", e, t); } i(uV, "assertTypeScript"); function cV(e, t) { v("TSTypeElement", e, t); } i(cV, "assertTSTypeElement"); function pV(e, t) { v("TSType", e, t); } i(pV, "assertTSType"); function fV(e, t) { v("TSBaseType", e, t); } i(fV, "assertTSBaseType"); function dV(e, t) { (0, Fa.default)("assertNumberLiteral", "assertNumericLiteral"), v("NumberLiteral", e, t); } i(dV, "assertNumberLiteral"); function hV(e, t) { (0, Fa.default)("assertRegexLiteral", "assertRegExpLiteral"), v("RegexLiteral", e, t); } i(hV, "assertRegexLiteral"); function mV(e, t) { (0, Fa.default)("assertRestProperty", "assertRestElement"), v("RestProperty", e, t); } i(mV, "assertRestProperty"); function yV(e, t) { (0, Fa.default)("assertSpreadProperty", "assertSpreadElement"), v("SpreadProperty", e, t); } i(yV, "assertSpreadProperty"); function bV(e, t) { (0, Fa.default)("assertModuleDeclaration", "assertImportOrExportDeclaration"), v("ModuleDeclaration", e, t); } i(bV, "assertModuleDeclaration"); }); // ../node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js var Gg = w((Dl) => { "use strict"; Object.defineProperty(Dl, "__esModule", { value: !0 }); Dl.default = void 0; var kr = zt(), mAe = Dl.default = gV; function gV(e) { switch (e) { case "string": return (0, kr.stringTypeAnnotation)(); case "number": return (0, kr.numberTypeAnnotation)(); case "undefined": return (0, kr.voidTypeAnnotation)(); case "boolean": return (0, kr.booleanTypeAnnotation)(); case "function": return (0, kr.genericTypeAnnotation)((0, kr.identifier)("Function")); case "object": return (0, kr.genericTypeAnnotation)((0, kr.identifier)("Object")); case "symbol": return (0, kr.genericTypeAnnotation)((0, kr.identifier)("Symbol")); case "bigint": return (0, kr.anyTypeAnnotation)(); } throw new Error("Invalid typeof value: " + e); } i(gV, "createTypeAnnotationBasedOnTypeof"); }); // ../node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js var Jf = w((Hf) => { "use strict"; Object.defineProperty(Hf, "__esModule", { value: !0 }); Hf.default = zg; var La = Xe(); function Xg(e) { return (0, La.isIdentifier)(e) ? e.name : `${e.id.name}.${Xg(e.qualification)}`; } i(Xg, "getQualifiedName"); function zg(e) { let t = Array.from(e), r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), a = []; for (let o = 0; o < t.length; o++) { let l = t[o]; if (l && !a.includes(l)) { if ((0, La.isAnyTypeAnnotation)(l)) return [l]; if ((0, La.isFlowBaseAnnotation)(l)) { s.set(l.type, l); continue; } if ((0, La.isUnionTypeAnnotation)(l)) { n.has(l.types) || (t.push(...l.types), n.add(l.types)); continue; } if ((0, La.isGenericTypeAnnotation)(l)) { let u = Xg(l.id); if (r.has(u)) { let c = r.get(u); c.typeParameters ? l.typeParameters && (c.typeParameters.params.push(...l.typeParameters.params), c.typeParameters.params = zg(c. typeParameters.params)) : c = l.typeParameters; } else r.set(u, l); continue; } a.push(l); } } for (let [, o] of s) a.push(o); for (let [, o] of r) a.push(o); return a; } i(zg, "removeTypeDuplicates"); }); // ../node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js var Qg = w((Gf) => { "use strict"; Object.defineProperty(Gf, "__esModule", { value: !0 }); Gf.default = EV; var TV = zt(), xV = Jf(); function EV(e) { let t = (0, xV.default)(e); return t.length === 1 ? t[0] : (0, TV.unionTypeAnnotation)(t); } i(EV, "createFlowUnionType"); }); // ../node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js var tT = w((Xf) => { "use strict"; Object.defineProperty(Xf, "__esModule", { value: !0 }); Xf.default = eT; var vi = Xe(); function Zg(e) { return (0, vi.isIdentifier)(e) ? e.name : (0, vi.isThisExpression)(e) ? "this" : `${e.right.name}.${Zg(e.left)}`; } i(Zg, "getQualifiedName"); function eT(e) { let t = Array.from(e), r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), a = []; for (let o = 0; o < t.length; o++) { let l = t[o]; if (!l || a.includes(l)) continue; if ((0, vi.isTSAnyKeyword)(l)) return [l]; if ((0, vi.isTSBaseType)(l)) { s.set(l.type, l); continue; } if ((0, vi.isTSUnionType)(l)) { n.has(l.types) || (t.push(...l.types), n.add(l.types)); continue; } let u = "typeParameters"; if ((0, vi.isTSTypeReference)(l) && l[u]) { let c = l[u], p = Zg(l.typeName); if (r.has(p)) { let f = r.get(p), h = f[u]; h ? (h.params.push(...c.params), h.params = eT(h.params)) : f = c; } else r.set(p, l); continue; } a.push(l); } for (let [, o] of s) a.push(o); for (let [, o] of r) a.push(o); return a; } i(eT, "removeTypeDuplicates"); }); // ../node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js var rT = w((zf) => { "use strict"; Object.defineProperty(zf, "__esModule", { value: !0 }); zf.default = AV; var SV = zt(), vV = tT(), PV = Xe(); function AV(e) { let t = e.map((s) => (0, PV.isTSTypeAnnotation)(s) ? s.typeAnnotation : s), r = (0, vV.default)(t); return r.length === 1 ? r[0] : (0, SV.tsUnionType)(r); } i(AV, "createTSUnionType"); }); // ../node_modules/@babel/types/lib/builders/productions.js var Zf = w((Qf) => { "use strict"; Object.defineProperty(Qf, "__esModule", { value: !0 }); Qf.buildUndefinedNode = CV; var sT = zt(); function CV() { return (0, sT.unaryExpression)("void", (0, sT.numericLiteral)(0), !0); } i(CV, "buildUndefinedNode"); }); // ../node_modules/@babel/types/lib/clone/cloneNode.js var Ys = w((td) => { "use strict"; Object.defineProperty(td, "__esModule", { value: !0 }); td.default = wV; var nT = fr(), iT = Xe(), { hasOwn: ts } = { hasOwn: Function.call.bind(Object.prototype.hasOwnProperty) }; function aT(e, t, r, s) { return e && typeof e.type == "string" ? oT(e, t, r, s) : e; } i(aT, "cloneIfNode"); function ed(e, t, r, s) { return Array.isArray(e) ? e.map((n) => aT(n, t, r, s)) : aT(e, t, r, s); } i(ed, "cloneIfNodeOrArray"); function wV(e, t = !0, r = !1) { return oT(e, t, r, /* @__PURE__ */ new Map()); } i(wV, "cloneNode"); function oT(e, t = !0, r = !1, s) { if (!e) return e; let { type: n } = e, a = { type: e.type }; if ((0, iT.isIdentifier)(e)) a.name = e.name, ts(e, "optional") && typeof e.optional == "boolean" && (a.optional = e.optional), ts(e, "typeAnnotation") && (a.typeAnnotation = t ? ed(e.typeAnnotation, !0, r, s) : e.typeAnnotation), ts(e, "decorators") && (a.decorators = t ? ed(e.decorators, !0, r, s) : e.decorators); else if (ts(nT.NODE_FIELDS, n)) for (let o of Object.keys(nT.NODE_FIELDS[n])) ts(e, o) && (t ? a[o] = (0, iT.isFile)(e) && o === "comments" ? _l(e.comments, t, r, s) : ed(e[o], !0, r, s) : a[o] = e[o]); else throw new Error(`Unknown node type: "${n}"`); return ts(e, "loc") && (r ? a.loc = null : a.loc = e.loc), ts(e, "leadingComments") && (a.leadingComments = _l(e.leadingComments, t, r, s)), ts(e, "innerComments") && (a.innerComments = _l(e.innerComments, t, r, s)), ts(e, "trailingComments") && (a.trailingComments = _l(e.trailingComments, t, r, s)), ts(e, "extra") && (a.extra = Object.assign({}, e.extra)), a; } i(oT, "cloneNodeInternal"); function _l(e, t, r, s) { return !e || !t ? e : e.map((n) => { let a = s.get(n); if (a) return a; let { type: o, value: l, loc: u } = n, c = { type: o, value: l, loc: u }; return r && (c.loc = null), s.set(n, c), c; }); } i(_l, "maybeCloneComments"); }); // ../node_modules/@babel/types/lib/clone/clone.js var lT = w((rd) => { "use strict"; Object.defineProperty(rd, "__esModule", { value: !0 }); rd.default = _V; var DV = Ys(); function _V(e) { return (0, DV.default)(e, !1); } i(_V, "clone"); }); // ../node_modules/@babel/types/lib/clone/cloneDeep.js var uT = w((sd) => { "use strict"; Object.defineProperty(sd, "__esModule", { value: !0 }); sd.default = OV; var IV = Ys(); function OV(e) { return (0, IV.default)(e); } i(OV, "cloneDeep"); }); // ../node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js var cT = w((nd) => { "use strict"; Object.defineProperty(nd, "__esModule", { value: !0 }); nd.default = BV; var NV = Ys(); function BV(e) { return (0, NV.default)(e, !0, !0); } i(BV, "cloneDeepWithoutLoc"); }); // ../node_modules/@babel/types/lib/clone/cloneWithoutLoc.js var pT = w((id) => { "use strict"; Object.defineProperty(id, "__esModule", { value: !0 }); id.default = FV; var kV = Ys(); function FV(e) { return (0, kV.default)(e, !1, !0); } i(FV, "cloneWithoutLoc"); }); // ../node_modules/@babel/types/lib/comments/addComments.js var od = w((ad) => { "use strict"; Object.defineProperty(ad, "__esModule", { value: !0 }); ad.default = LV; function LV(e, t, r) { if (!r || !e) return e; let s = `${t}Comments`; return e[s] ? t === "leading" ? e[s] = r.concat(e[s]) : e[s].push(...r) : e[s] = r, e; } i(LV, "addComments"); }); // ../node_modules/@babel/types/lib/comments/addComment.js var fT = w((ld) => { "use strict"; Object.defineProperty(ld, "__esModule", { value: !0 }); ld.default = MV; var jV = od(); function MV(e, t, r, s) { return (0, jV.default)(e, t, [{ type: s ? "CommentLine" : "CommentBlock", value: r }]); } i(MV, "addComment"); }); // ../node_modules/@babel/types/lib/utils/inherit.js var Il = w((ud) => { "use strict"; Object.defineProperty(ud, "__esModule", { value: !0 }); ud.default = RV; function RV(e, t, r) { t && r && (t[e] = Array.from(new Set([].concat(t[e], r[e]).filter(Boolean)))); } i(RV, "inherit"); }); // ../node_modules/@babel/types/lib/comments/inheritInnerComments.js var pd = w((cd) => { "use strict"; Object.defineProperty(cd, "__esModule", { value: !0 }); cd.default = UV; var qV = Il(); function UV(e, t) { (0, qV.default)("innerComments", e, t); } i(UV, "inheritInnerComments"); }); // ../node_modules/@babel/types/lib/comments/inheritLeadingComments.js var dd = w((fd) => { "use strict"; Object.defineProperty(fd, "__esModule", { value: !0 }); fd.default = VV; var $V = Il(); function VV(e, t) { (0, $V.default)("leadingComments", e, t); } i(VV, "inheritLeadingComments"); }); // ../node_modules/@babel/types/lib/comments/inheritTrailingComments.js var md = w((hd) => { "use strict"; Object.defineProperty(hd, "__esModule", { value: !0 }); hd.default = WV; var KV = Il(); function WV(e, t) { (0, KV.default)("trailingComments", e, t); } i(WV, "inheritTrailingComments"); }); // ../node_modules/@babel/types/lib/comments/inheritsComments.js var bd = w((yd) => { "use strict"; Object.defineProperty(yd, "__esModule", { value: !0 }); yd.default = GV; var YV = md(), HV = dd(), JV = pd(); function GV(e, t) { return (0, YV.default)(e, t), (0, HV.default)(e, t), (0, JV.default)(e, t), e; } i(GV, "inheritsComments"); }); // ../node_modules/@babel/types/lib/comments/removeComments.js var dT = w((gd) => { "use strict"; Object.defineProperty(gd, "__esModule", { value: !0 }); gd.default = zV; var XV = gi(); function zV(e) { return XV.COMMENT_KEYS.forEach((t) => { e[t] = null; }), e; } i(zV, "removeComments"); }); // ../node_modules/@babel/types/lib/constants/generated/index.js var hT = w((K) => { "use strict"; Object.defineProperty(K, "__esModule", { value: !0 }); K.WHILE_TYPES = K.USERWHITESPACABLE_TYPES = K.UNARYLIKE_TYPES = K.TYPESCRIPT_TYPES = K.TSTYPE_TYPES = K.TSTYPEELEMENT_TYPES = K.TSENTITYNAME_TYPES = K.TSBASETYPE_TYPES = K.TERMINATORLESS_TYPES = K.STATEMENT_TYPES = K.STANDARDIZED_TYPES = K.SCOPABLE_TYPES = K.PUREISH_TYPES = K.PROPERTY_TYPES = K.PRIVATE_TYPES = K.PATTERN_TYPES = K.PATTERNLIKE_TYPES = K.OBJECTMEMBER_TYPES = K.MODULESPECIFIER_TYPES = K.MODULEDECLARATION_TYPES = K.MISCELLANEOUS_TYPES = K.METHOD_TYPES = K.LVAL_TYPES = K.LOOP_TYPES = K.LITERAL_TYPES = K.JSX_TYPES = K.IMPORTOREXPORTDECLARATION_TYPES = K.IMMUTABLE_TYPES = K.FUNCTION_TYPES = K.FUNCTIONPARENT_TYPES = K.FUNCTIONPARAMETER_TYPES = K.FOR_TYPES = K.FORXSTATEMENT_TYPES = K.FLOW_TYPES = K.FLOWTYPE_TYPES = K.FLOWPREDICATE_TYPES = K.FLOWDECLARATION_TYPES = K.FLOWBASEANNOTATION_TYPES = K.EXPRESSION_TYPES = K.EXPRESSIONWRAPPER_TYPES = K.EXPORTDECLARATION_TYPES = K.ENUMMEMBER_TYPES = K.ENUMBODY_TYPES = K.DECLARATION_TYPES = K.CONDITIONAL_TYPES = K.COMPLETIONSTATEMENT_TYPES = K.CLASS_TYPES = K.BLOCK_TYPES = K.BLOCKPARENT_TYPES = K.BINARY_TYPES = K.ACCESSOR_TYPES = void 0; var pe = fr(), e3e = K.STANDARDIZED_TYPES = pe.FLIPPED_ALIAS_KEYS.Standardized, t3e = K.EXPRESSION_TYPES = pe.FLIPPED_ALIAS_KEYS.Expression, r3e = K.BINARY_TYPES = pe.FLIPPED_ALIAS_KEYS.Binary, s3e = K.SCOPABLE_TYPES = pe.FLIPPED_ALIAS_KEYS.Scopable, n3e = K.BLOCKPARENT_TYPES = pe. FLIPPED_ALIAS_KEYS.BlockParent, i3e = K.BLOCK_TYPES = pe.FLIPPED_ALIAS_KEYS.Block, a3e = K.STATEMENT_TYPES = pe.FLIPPED_ALIAS_KEYS.Statement, o3e = K.TERMINATORLESS_TYPES = pe.FLIPPED_ALIAS_KEYS.Terminatorless, l3e = K.COMPLETIONSTATEMENT_TYPES = pe.FLIPPED_ALIAS_KEYS.CompletionStatement, u3e = K.CONDITIONAL_TYPES = pe.FLIPPED_ALIAS_KEYS.Conditional, c3e = K.LOOP_TYPES = pe.FLIPPED_ALIAS_KEYS.Loop, p3e = K.WHILE_TYPES = pe.FLIPPED_ALIAS_KEYS. While, f3e = K.EXPRESSIONWRAPPER_TYPES = pe.FLIPPED_ALIAS_KEYS.ExpressionWrapper, d3e = K.FOR_TYPES = pe.FLIPPED_ALIAS_KEYS.For, h3e = K.FORXSTATEMENT_TYPES = pe.FLIPPED_ALIAS_KEYS.ForXStatement, m3e = K.FUNCTION_TYPES = pe.FLIPPED_ALIAS_KEYS.Function, y3e = K.FUNCTIONPARENT_TYPES = pe.FLIPPED_ALIAS_KEYS. FunctionParent, b3e = K.PUREISH_TYPES = pe.FLIPPED_ALIAS_KEYS.Pureish, g3e = K.DECLARATION_TYPES = pe.FLIPPED_ALIAS_KEYS.Declaration, T3e = K. FUNCTIONPARAMETER_TYPES = pe.FLIPPED_ALIAS_KEYS.FunctionParameter, x3e = K.PATTERNLIKE_TYPES = pe.FLIPPED_ALIAS_KEYS.PatternLike, E3e = K. LVAL_TYPES = pe.FLIPPED_ALIAS_KEYS.LVal, S3e = K.TSENTITYNAME_TYPES = pe.FLIPPED_ALIAS_KEYS.TSEntityName, v3e = K.LITERAL_TYPES = pe.FLIPPED_ALIAS_KEYS. Literal, P3e = K.IMMUTABLE_TYPES = pe.FLIPPED_ALIAS_KEYS.Immutable, A3e = K.USERWHITESPACABLE_TYPES = pe.FLIPPED_ALIAS_KEYS.UserWhitespacable, C3e = K.METHOD_TYPES = pe.FLIPPED_ALIAS_KEYS.Method, w3e = K.OBJECTMEMBER_TYPES = pe.FLIPPED_ALIAS_KEYS.ObjectMember, D3e = K.PROPERTY_TYPES = pe.FLIPPED_ALIAS_KEYS.Property, _3e = K.UNARYLIKE_TYPES = pe.FLIPPED_ALIAS_KEYS.UnaryLike, I3e = K.PATTERN_TYPES = pe.FLIPPED_ALIAS_KEYS.Pattern, O3e = K.CLASS_TYPES = pe.FLIPPED_ALIAS_KEYS.Class, QV = K.IMPORTOREXPORTDECLARATION_TYPES = pe.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration, N3e = K.EXPORTDECLARATION_TYPES = pe.FLIPPED_ALIAS_KEYS.ExportDeclaration, B3e = K.MODULESPECIFIER_TYPES = pe.FLIPPED_ALIAS_KEYS.ModuleSpecifier, k3e = K.ACCESSOR_TYPES = pe.FLIPPED_ALIAS_KEYS.Accessor, F3e = K.PRIVATE_TYPES = pe.FLIPPED_ALIAS_KEYS.Private, L3e = K.FLOW_TYPES = pe.FLIPPED_ALIAS_KEYS. Flow, j3e = K.FLOWTYPE_TYPES = pe.FLIPPED_ALIAS_KEYS.FlowType, M3e = K.FLOWBASEANNOTATION_TYPES = pe.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation, R3e = K.FLOWDECLARATION_TYPES = pe.FLIPPED_ALIAS_KEYS.FlowDeclaration, q3e = K.FLOWPREDICATE_TYPES = pe.FLIPPED_ALIAS_KEYS.FlowPredicate, U3e = K. ENUMBODY_TYPES = pe.FLIPPED_ALIAS_KEYS.EnumBody, $3e = K.ENUMMEMBER_TYPES = pe.FLIPPED_ALIAS_KEYS.EnumMember, V3e = K.JSX_TYPES = pe.FLIPPED_ALIAS_KEYS. JSX, K3e = K.MISCELLANEOUS_TYPES = pe.FLIPPED_ALIAS_KEYS.Miscellaneous, W3e = K.TYPESCRIPT_TYPES = pe.FLIPPED_ALIAS_KEYS.TypeScript, Y3e = K. TSTYPEELEMENT_TYPES = pe.FLIPPED_ALIAS_KEYS.TSTypeElement, H3e = K.TSTYPE_TYPES = pe.FLIPPED_ALIAS_KEYS.TSType, J3e = K.TSBASETYPE_TYPES = pe.FLIPPED_ALIAS_KEYS.TSBaseType, G3e = K.MODULEDECLARATION_TYPES = QV; }); // ../node_modules/@babel/types/lib/converters/toBlock.js var Ed = w((xd) => { "use strict"; Object.defineProperty(xd, "__esModule", { value: !0 }); xd.default = ZV; var Ol = Xe(), Td = zt(); function ZV(e, t) { if ((0, Ol.isBlockStatement)(e)) return e; let r = []; return (0, Ol.isEmptyStatement)(e) ? r = [] : ((0, Ol.isStatement)(e) || ((0, Ol.isFunction)(t) ? e = (0, Td.returnStatement)(e) : e = (0, Td. expressionStatement)(e)), r = [e]), (0, Td.blockStatement)(r); } i(ZV, "toBlock"); }); // ../node_modules/@babel/types/lib/converters/ensureBlock.js var mT = w((Sd) => { "use strict"; Object.defineProperty(Sd, "__esModule", { value: !0 }); Sd.default = tK; var eK = Ed(); function tK(e, t = "body") { let r = (0, eK.default)(e[t], e); return e[t] = r, r; } i(tK, "ensureBlock"); }); // ../node_modules/@babel/types/lib/converters/toIdentifier.js var Pd = w((vd) => { "use strict"; Object.defineProperty(vd, "__esModule", { value: !0 }); vd.default = nK; var rK = bi(), sK = yi(); function nK(e) { e = e + ""; let t = ""; for (let r of e) t += (0, sK.isIdentifierChar)(r.codePointAt(0)) ? r : "-"; return t = t.replace(/^[-0-9]+/, ""), t = t.replace(/[-\s]+(.)?/g, function(r, s) { return s ? s.toUpperCase() : ""; }), (0, rK.default)(t) || (t = `_${t}`), t || "_"; } i(nK, "toIdentifier"); }); // ../node_modules/@babel/types/lib/converters/toBindingIdentifierName.js var yT = w((Ad) => { "use strict"; Object.defineProperty(Ad, "__esModule", { value: !0 }); Ad.default = aK; var iK = Pd(); function aK(e) { return e = (0, iK.default)(e), (e === "eval" || e === "arguments") && (e = "_" + e), e; } i(aK, "toBindingIdentifierName"); }); // ../node_modules/@babel/types/lib/converters/toComputedKey.js var bT = w((Cd) => { "use strict"; Object.defineProperty(Cd, "__esModule", { value: !0 }); Cd.default = uK; var oK = Xe(), lK = zt(); function uK(e, t = e.key || e.property) { return !e.computed && (0, oK.isIdentifier)(t) && (t = (0, lK.stringLiteral)(t.name)), t; } i(uK, "toComputedKey"); }); // ../node_modules/@babel/types/lib/converters/toExpression.js var gT = w((Nl) => { "use strict"; Object.defineProperty(Nl, "__esModule", { value: !0 }); Nl.default = void 0; var ja = Xe(), oCe = Nl.default = cK; function cK(e) { if ((0, ja.isExpressionStatement)(e) && (e = e.expression), (0, ja.isExpression)(e)) return e; if ((0, ja.isClass)(e) ? (e.type = "ClassExpression", e.abstract = !1) : (0, ja.isFunction)(e) && (e.type = "FunctionExpression"), !(0, ja. isExpression)(e)) throw new Error(`cannot turn ${e.type} to an expression`); return e; } i(cK, "toExpression"); }); // ../node_modules/@babel/types/lib/traverse/traverseFast.js var Dd = w((wd) => { "use strict"; Object.defineProperty(wd, "__esModule", { value: !0 }); wd.default = Ma; var pK = fr(), TT = Symbol(), xT = Symbol(); function Ma(e, t, r) { if (!e) return !1; let s = pK.VISITOR_KEYS[e.type]; if (!s) return !1; r = r || {}; let n = t(e, r); if (n !== void 0) switch (n) { case TT: return !1; case xT: return !0; } for (let a of s) { let o = e[a]; if (o) { if (Array.isArray(o)) { for (let l of o) if (Ma(l, t, r)) return !0; } else if (Ma(o, t, r)) return !0; } } return !1; } i(Ma, "traverseFast"); Ma.skip = TT; Ma.stop = xT; }); // ../node_modules/@babel/types/lib/modifications/removeProperties.js var Id = w((_d) => { "use strict"; Object.defineProperty(_d, "__esModule", { value: !0 }); _d.default = hK; var fK = gi(), ET = ["tokens", "start", "end", "loc", "raw", "rawValue"], dK = [...fK.COMMENT_KEYS, "comments", ...ET]; function hK(e, t = {}) { let r = t.preserveComments ? ET : dK; for (let n of r) e[n] != null && (e[n] = void 0); for (let n of Object.keys(e)) n[0] === "_" && e[n] != null && (e[n] = void 0); let s = Object.getOwnPropertySymbols(e); for (let n of s) e[n] = null; } i(hK, "removeProperties"); }); // ../node_modules/@babel/types/lib/modifications/removePropertiesDeep.js var Nd = w((Od) => { "use strict"; Object.defineProperty(Od, "__esModule", { value: !0 }); Od.default = bK; var mK = Dd(), yK = Id(); function bK(e, t) { return (0, mK.default)(e, yK.default, t), e; } i(bK, "removePropertiesDeep"); }); // ../node_modules/@babel/types/lib/converters/toKeyAlias.js var vT = w((Bd) => { "use strict"; Object.defineProperty(Bd, "__esModule", { value: !0 }); Bd.default = Cn; var ST = Xe(), gK = Ys(), TK = Nd(); function Cn(e, t = e.key) { let r; return e.kind === "method" ? Cn.increment() + "" : ((0, ST.isIdentifier)(t) ? r = t.name : (0, ST.isStringLiteral)(t) ? r = JSON.stringify( t.value) : r = JSON.stringify((0, TK.default)((0, gK.default)(t))), e.computed && (r = `[${r}]`), e.static && (r = `static:${r}`), r); } i(Cn, "toKeyAlias"); Cn.uid = 0; Cn.increment = function() { return Cn.uid >= Number.MAX_SAFE_INTEGER ? Cn.uid = 0 : Cn.uid++; }; }); // ../node_modules/@babel/types/lib/converters/toStatement.js var PT = w((kl) => { "use strict"; Object.defineProperty(kl, "__esModule", { value: !0 }); kl.default = void 0; var Bl = Xe(), xK = zt(), gCe = kl.default = EK; function EK(e, t) { if ((0, Bl.isStatement)(e)) return e; let r = !1, s; if ((0, Bl.isClass)(e)) r = !0, s = "ClassDeclaration"; else if ((0, Bl.isFunction)(e)) r = !0, s = "FunctionDeclaration"; else if ((0, Bl.isAssignmentExpression)(e)) return (0, xK.expressionStatement)(e); if (r && !e.id && (s = !1), !s) { if (t) return !1; throw new Error(`cannot turn ${e.type} to a statement`); } return e.type = s, e; } i(EK, "toStatement"); }); // ../node_modules/@babel/types/lib/converters/valueToNode.js var AT = w((Fl) => { "use strict"; Object.defineProperty(Fl, "__esModule", { value: !0 }); Fl.default = void 0; var SK = bi(), at = zt(), ECe = Fl.default = kd, vK = Function.call.bind(Object.prototype.toString); function PK(e) { return vK(e) === "[object RegExp]"; } i(PK, "isRegExp"); 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; } i(AK, "isPlainObject"); function kd(e) { if (e === void 0) return (0, at.identifier)("undefined"); if (e === !0 || e === !1) return (0, at.booleanLiteral)(e); if (e === null) return (0, at.nullLiteral)(); if (typeof e == "string") return (0, at.stringLiteral)(e); if (typeof e == "number") { let t; if (Number.isFinite(e)) t = (0, at.numericLiteral)(Math.abs(e)); else { let r; Number.isNaN(e) ? r = (0, at.numericLiteral)(0) : r = (0, at.numericLiteral)(1), t = (0, at.binaryExpression)("/", r, (0, at.numericLiteral)( 0)); } return (e < 0 || Object.is(e, -0)) && (t = (0, at.unaryExpression)("-", t)), t; } if (typeof e == "bigint") return e < 0 ? (0, at.unaryExpression)("-", (0, at.bigIntLiteral)(-e)) : (0, at.bigIntLiteral)(e); if (PK(e)) { let t = e.source, r = /\/([a-z]*)$/.exec(e.toString())[1]; return (0, at.regExpLiteral)(t, r); } if (Array.isArray(e)) return (0, at.arrayExpression)(e.map(kd)); if (AK(e)) { let t = []; for (let r of Object.keys(e)) { let s, n = !1; (0, SK.default)(r) ? r === "__proto__" ? (n = !0, s = (0, at.stringLiteral)(r)) : s = (0, at.identifier)(r) : s = (0, at.stringLiteral)( r), t.push((0, at.objectProperty)(s, kd(e[r]), n)); } return (0, at.objectExpression)(t); } throw new Error("don't know how to turn this value into a node"); } i(kd, "valueToNode"); }); // ../node_modules/@babel/types/lib/modifications/appendToMemberExpression.js var CT = w((Fd) => { "use strict"; Object.defineProperty(Fd, "__esModule", { value: !0 }); Fd.default = wK; var CK = zt(); function wK(e, t, r = !1) { return e.object = (0, CK.memberExpression)(e.object, e.property, e.computed), e.property = t, e.computed = !!r, e; } i(wK, "appendToMemberExpression"); }); // ../node_modules/@babel/types/lib/modifications/inherits.js var DT = w((Ld) => { "use strict"; Object.defineProperty(Ld, "__esModule", { value: !0 }); Ld.default = _K; var wT = gi(), DK = bd(); function _K(e, t) { if (!e || !t) return e; for (let r of wT.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 wT.INHERIT_KEYS.force) e[r] = t[r]; return (0, DK.default)(e, t), e; } i(_K, "inherits"); }); // ../node_modules/@babel/types/lib/modifications/prependToMemberExpression.js var _T = w((jd) => { "use strict"; Object.defineProperty(jd, "__esModule", { value: !0 }); jd.default = NK; var IK = zt(), OK = ue(); function NK(e, t) { if ((0, OK.isSuper)(e.object)) throw new Error("Cannot prepend node to super property access (`super.foo`)."); return e.object = (0, IK.memberExpression)(t, e.object), e; } i(NK, "prependToMemberExpression"); }); // ../node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js var IT = w((Md) => { "use strict"; Object.defineProperty(Md, "__esModule", { value: !0 }); Md.default = BK; function BK(e) { let t = [].concat(e), r = /* @__PURE__ */ Object.create(null); for (; t.length; ) { let s = t.pop(); if (s) switch (s.type) { case "ArrayPattern": t.push(...s.elements); break; case "AssignmentExpression": case "AssignmentPattern": case "ForInStatement": case "ForOfStatement": t.push(s.left); break; case "ObjectPattern": t.push(...s.properties); break; case "ObjectProperty": t.push(s.value); break; case "RestElement": case "UpdateExpression": t.push(s.argument); break; case "UnaryExpression": s.operator === "delete" && t.push(s.argument); break; case "Identifier": r[s.name] = s; break; default: break; } } return r; } i(BK, "getAssignmentIdentifiers"); }); // ../node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js var Ra = w((qd) => { "use strict"; Object.defineProperty(qd, "__esModule", { value: !0 }); qd.default = Rd; var ms = Xe(); function Rd(e, t, r, s) { let n = [].concat(e), a = /* @__PURE__ */ Object.create(null); for (; n.length; ) { let o = n.shift(); if (!o || s && ((0, ms.isAssignmentExpression)(o) || (0, ms.isUnaryExpression)(o) || (0, ms.isUpdateExpression)(o))) continue; if ((0, ms.isIdentifier)(o)) { t ? (a[o.name] = a[o.name] || []).push(o) : a[o.name] = o; continue; } if ((0, ms.isExportDeclaration)(o) && !(0, ms.isExportAllDeclaration)(o)) { (0, ms.isDeclaration)(o.declaration) && n.push(o.declaration); continue; } if (r) { if ((0, ms.isFunctionDeclaration)(o)) { n.push(o.id); continue; } if ((0, ms.isFunctionExpression)(o)) continue; } let l = Rd.keys[o.type]; if (l) for (let u = 0; u < l.length; u++) { let c = l[u], p = o[c]; p && (Array.isArray(p) ? n.push(...p) : n.push(p)); } } return a; } i(Rd, "getBindingIdentifiers"); var kK = { DeclareClass: ["id"], DeclareFunction: ["id"], DeclareModule: ["id"], DeclareVariable: ["id"], DeclareInterface: ["id"], DeclareTypeAlias: ["id"], DeclareOpaqueType: ["id"], InterfaceDeclaration: ["id"], TypeAlias: ["id"], OpaqueType: ["id"], CatchClause: ["param"], LabeledStatement: ["label"], UnaryExpression: ["argument"], AssignmentExpression: ["left"], ImportSpecifier: ["local"], ImportNamespaceSpecifier: ["local"], ImportDefaultSpecifier: ["local"], ImportDeclaration: ["specifiers"], TSImportEqualsDeclaration: ["id"], ExportSpecifier: ["exported"], ExportNamespaceSpecifier: ["exported"], ExportDefaultSpecifier: ["exported"], FunctionDeclaration: ["id", "params"], FunctionExpression: ["id", "params"], ArrowFunctionExpression: ["params"], ObjectMethod: ["params"], ClassMethod: ["params"], ClassPrivateMethod: ["params"], ForInStatement: ["left"], ForOfStatement: ["left"], ClassDeclaration: ["id"], ClassExpression: ["id"], RestElement: ["argument"], UpdateExpression: ["argument"], ObjectProperty: ["value"], AssignmentPattern: ["left"], ArrayPattern: ["elements"], ObjectPattern: ["properties"], VariableDeclaration: ["declarations"], VariableDeclarator: ["id"] }; Rd.keys = kK; }); // ../node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js var OT = w((Ll) => { "use strict"; Object.defineProperty(Ll, "__esModule", { value: !0 }); Ll.default = void 0; var FK = Ra(), kCe = Ll.default = LK; function LK(e, t) { return (0, FK.default)(e, t, !0); } i(LK, "getOuterBindingIdentifiers"); }); // ../node_modules/@babel/types/lib/retrievers/getFunctionName.js var BT = w((Ud) => { "use strict"; Object.defineProperty(Ud, "__esModule", { value: !0 }); Ud.default = MK; var dr = Xe(); function jK(e) { return (0, dr.isNullLiteral)(e) ? "null" : (0, dr.isRegExpLiteral)(e) ? `/${e.pattern}/${e.flags}` : (0, dr.isTemplateLiteral)(e) ? e.quasis. map((t) => t.value.raw).join("") : e.value !== void 0 ? String(e.value) : null; } i(jK, "getNameFromLiteralId"); function NT(e) { if (!e.computed || (0, dr.isLiteral)(e.key)) return e.key; } i(NT, "getObjectMemberKey"); function MK(e, t) { if ("id" in e && e.id) return { name: e.id.name, originalNode: e.id }; let r = "", s; if ((0, dr.isObjectProperty)(t, { value: e }) ? s = NT(t) : (0, dr.isObjectMethod)(e) || (0, dr.isClassMethod)(e) ? (s = NT(e), e.kind === "get" ? r = "get " : e.kind === "set" && (r = "set ")) : (0, dr.isVariableDeclarator)(t, { init: e }) ? s = t.id : (0, dr.isAssignmentExpression)(t, { operator: "=", right: e }) && (s = t.left), !s) return null; let n = (0, dr.isLiteral)(s) ? jK(s) : (0, dr.isIdentifier)(s) ? s.name : (0, dr.isPrivateName)(s) ? s.id.name : null; return n == null ? null : { name: r + n, originalNode: s }; } i(MK, "getFunctionName"); }); // ../node_modules/@babel/types/lib/traverse/traverse.js var kT = w((Vd) => { "use strict"; Object.defineProperty(Vd, "__esModule", { value: !0 }); Vd.default = qK; var RK = fr(); function qK(e, t, r) { typeof t == "function" && (t = { enter: t }); let { enter: s, exit: n } = t; $d(e, s, n, r, []); } i(qK, "traverse"); function $d(e, t, r, s, n) { let a = RK.VISITOR_KEYS[e.type]; if (a) { t && t(e, n, s); for (let o of a) { let l = e[o]; if (Array.isArray(l)) for (let u = 0; u < l.length; u++) { let c = l[u]; c && (n.push({ node: e, key: o, index: u }), $d(c, t, r, s, n), n.pop()); } else l && (n.push({ node: e, key: o }), $d(l, t, r, s, n), n.pop()); } r && r(e, n, s); } } i($d, "traverseSimpleImpl"); }); // ../node_modules/@babel/types/lib/validators/isBinding.js var FT = w((Kd) => { "use strict"; Object.defineProperty(Kd, "__esModule", { value: !0 }); Kd.default = $K; var UK = Ra(); function $K(e, t, r) { if (r && e.type === "Identifier" && t.type === "ObjectProperty" && r.type === "ObjectExpression") return !1; let s = UK.default.keys[t.type]; if (s) for (let n = 0; n < s.length; n++) { let a = s[n], o = t[a]; if (Array.isArray(o)) { if (o.includes(e)) return !0; } else if (o === e) return !0; } return !1; } i($K, "isBinding"); }); // ../node_modules/@babel/types/lib/validators/isLet.js var Yd = w((Wd) => { "use strict"; Object.defineProperty(Wd, "__esModule", { value: !0 }); Wd.default = KK; var VK = Xe(); LT = Symbol.for("var used to be block scoped"); var LT; function KK(e) { return (0, VK.isVariableDeclaration)(e) && (e.kind !== "var" || e[LT]); } i(KK, "isLet"); }); // ../node_modules/@babel/types/lib/validators/isBlockScoped.js var MT = w((Hd) => { "use strict"; Object.defineProperty(Hd, "__esModule", { value: !0 }); Hd.default = YK; var jT = Xe(), WK = Yd(); function YK(e) { return (0, jT.isFunctionDeclaration)(e) || (0, jT.isClassDeclaration)(e) || (0, WK.default)(e); } i(YK, "isBlockScoped"); }); // ../node_modules/@babel/types/lib/validators/isImmutable.js var RT = w((Jd) => { "use strict"; Object.defineProperty(Jd, "__esModule", { value: !0 }); Jd.default = GK; var HK = gl(), JK = Xe(); function GK(e) { return (0, HK.default)(e.type, "Immutable") ? !0 : (0, JK.isIdentifier)(e) ? e.name === "undefined" : !1; } i(GK, "isImmutable"); }); // ../node_modules/@babel/types/lib/validators/isNodesEquivalent.js var UT = w((Xd) => { "use strict"; Object.defineProperty(Xd, "__esModule", { value: !0 }); Xd.default = Gd; var qT = fr(); function Gd(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(qT.NODE_FIELDS[e.type] || e.type), s = qT.VISITOR_KEYS[e.type]; for (let n of r) { let a = e[n], o = t[n]; if (typeof a != typeof o) return !1; if (!(a == null && o == null)) { if (a == null || o == null) return !1; if (Array.isArray(a)) { if (!Array.isArray(o) || a.length !== o.length) return !1; for (let l = 0; l < a.length; l++) if (!Gd(a[l], o[l])) return !1; continue; } if (typeof a == "object" && !(s != null && s.includes(n))) { for (let l of Object.keys(a)) if (a[l] !== o[l]) return !1; continue; } if (!Gd(a, o)) return !1; } } return !0; } i(Gd, "isNodesEquivalent"); }); // ../node_modules/@babel/types/lib/validators/isReferenced.js var $T = w((zd) => { "use strict"; Object.defineProperty(zd, "__esModule", { value: !0 }); zd.default = XK; function XK(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; } i(XK, "isReferenced"); }); // ../node_modules/@babel/types/lib/validators/isScope.js var VT = w((Qd) => { "use strict"; Object.defineProperty(Qd, "__esModule", { value: !0 }); Qd.default = zK; var wn = Xe(); function zK(e, t) { return (0, wn.isBlockStatement)(e) && ((0, wn.isFunction)(t) || (0, wn.isCatchClause)(t)) ? !1 : (0, wn.isPattern)(e) && ((0, wn.isFunction)( t) || (0, wn.isCatchClause)(t)) ? !0 : (0, wn.isScopable)(e); } i(zK, "isScope"); }); // ../node_modules/@babel/types/lib/validators/isSpecifierDefault.js var WT = w((Zd) => { "use strict"; Object.defineProperty(Zd, "__esModule", { value: !0 }); Zd.default = QK; var KT = Xe(); function QK(e) { return (0, KT.isImportDefaultSpecifier)(e) || (0, KT.isIdentifier)(e.imported || e.exported, { name: "default" }); } i(QK, "isSpecifierDefault"); }); // ../node_modules/@babel/types/lib/validators/isValidES3Identifier.js var YT = w((e0) => { "use strict"; Object.defineProperty(e0, "__esModule", { value: !0 }); e0.default = tW; var ZK = bi(), eW = /* @__PURE__ */ new Set(["abstract", "boolean", "byte", "char", "double", "enum", "final", "float", "goto", "implement\ s", "int", "interface", "long", "native", "package", "private", "protected", "public", "short", "static", "synchronized", "throws", "transie\ nt", "volatile"]); function tW(e) { return (0, ZK.default)(e) && !eW.has(e); } i(tW, "isValidES3Identifier"); }); // ../node_modules/@babel/types/lib/validators/isVar.js var JT = w((t0) => { "use strict"; Object.defineProperty(t0, "__esModule", { value: !0 }); t0.default = sW; var rW = Xe(); HT = Symbol.for("var used to be block scoped"); var HT; function sW(e) { return (0, rW.isVariableDeclaration)(e, { kind: "var" }) && !e[HT]; } i(sW, "isVar"); }); // ../node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js var GT = w((n0) => { "use strict"; Object.defineProperty(n0, "__esModule", { value: !0 }); n0.default = jl; var nW = Ra(), Dn = Xe(), r0 = zt(), s0 = Zf(), iW = Ys(); function jl(e, t) { let r = [], s = !0; for (let n of e) if ((0, Dn.isEmptyStatement)(n) || (s = !1), (0, Dn.isExpression)(n)) r.push(n); else if ((0, Dn.isExpressionStatement)(n)) r.push(n.expression); else if ((0, Dn.isVariableDeclaration)(n)) { if (n.kind !== "var") return; for (let a of n.declarations) { let o = (0, nW.default)(a); for (let l of Object.keys(o)) t.push({ kind: n.kind, id: (0, iW.default)(o[l]) }); a.init && r.push((0, r0.assignmentExpression)("=", a.id, a.init)); } s = !0; } else if ((0, Dn.isIfStatement)(n)) { let a = n.consequent ? jl([n.consequent], t) : (0, s0.buildUndefinedNode)(), o = n.alternate ? jl([n.alternate], t) : (0, s0.buildUndefinedNode)(); if (!a || !o) return; r.push((0, r0.conditionalExpression)(n.test, a, o)); } else if ((0, Dn.isBlockStatement)(n)) { let a = jl(n.body, t); if (!a) return; r.push(a); } else if ((0, Dn.isEmptyStatement)(n)) e.indexOf(n) === 0 && (s = !0); else return; return s && r.push((0, s0.buildUndefinedNode)()), r.length === 1 ? r[0] : (0, r0.sequenceExpression)(r); } i(jl, "gatherSequenceExpressions"); }); // ../node_modules/@babel/types/lib/converters/toSequenceExpression.js var XT = w((i0) => { "use strict"; Object.defineProperty(i0, "__esModule", { value: !0 }); i0.default = oW; var aW = GT(); function oW(e, t) { if (!(e != null && e.length)) return; let r = [], s = (0, aW.default)(e, r); if (s) { for (let n of r) t.push(n); return s; } } i(oW, "toSequenceExpression"); }); // ../node_modules/@babel/types/lib/index.js var ue = w((Y) => { "use strict"; Object.defineProperty(Y, "__esModule", { value: !0 }); var Hs = { 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(Y, "__internal__deprecationWarning", { enumerable: !0, get: /* @__PURE__ */ i(function() { return pY.default; }, "get") }); Object.defineProperty(Y, "addComment", { enumerable: !0, get: /* @__PURE__ */ i(function() { return TW.default; }, "get") }); Object.defineProperty(Y, "addComments", { enumerable: !0, get: /* @__PURE__ */ i(function() { return xW.default; }, "get") }); Object.defineProperty(Y, "appendToMemberExpression", { enumerable: !0, get: /* @__PURE__ */ i(function() { return FW.default; }, "get") }); Object.defineProperty(Y, "assertNode", { enumerable: !0, get: /* @__PURE__ */ i(function() { return pW.default; }, "get") }); Object.defineProperty(Y, "buildMatchMemberExpression", { enumerable: !0, get: /* @__PURE__ */ i(function() { return cY.default; }, "get") }); Object.defineProperty(Y, "clone", { enumerable: !0, get: /* @__PURE__ */ i(function() { return mW.default; }, "get") }); Object.defineProperty(Y, "cloneDeep", { enumerable: !0, get: /* @__PURE__ */ i(function() { return yW.default; }, "get") }); Object.defineProperty(Y, "cloneDeepWithoutLoc", { enumerable: !0, get: /* @__PURE__ */ i(function() { return bW.default; }, "get") }); Object.defineProperty(Y, "cloneNode", { enumerable: !0, get: /* @__PURE__ */ i(function() { return hW.default; }, "get") }); Object.defineProperty(Y, "cloneWithoutLoc", { enumerable: !0, get: /* @__PURE__ */ i(function() { return gW.default; }, "get") }); Object.defineProperty(Y, "createFlowUnionType", { enumerable: !0, get: /* @__PURE__ */ i(function() { return zT.default; }, "get") }); Object.defineProperty(Y, "createTSUnionType", { enumerable: !0, get: /* @__PURE__ */ i(function() { return dW.default; }, "get") }); Object.defineProperty(Y, "createTypeAnnotationBasedOnTypeof", { enumerable: !0, get: /* @__PURE__ */ i(function() { return fW.default; }, "get") }); Object.defineProperty(Y, "createUnionTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ i(function() { return zT.default; }, "get") }); Object.defineProperty(Y, "ensureBlock", { enumerable: !0, get: /* @__PURE__ */ i(function() { return CW.default; }, "get") }); Object.defineProperty(Y, "getAssignmentIdentifiers", { enumerable: !0, get: /* @__PURE__ */ i(function() { return UW.default; }, "get") }); Object.defineProperty(Y, "getBindingIdentifiers", { enumerable: !0, get: /* @__PURE__ */ i(function() { return $W.default; }, "get") }); Object.defineProperty(Y, "getFunctionName", { enumerable: !0, get: /* @__PURE__ */ i(function() { return KW.default; }, "get") }); Object.defineProperty(Y, "getOuterBindingIdentifiers", { enumerable: !0, get: /* @__PURE__ */ i(function() { return VW.default; }, "get") }); Object.defineProperty(Y, "inheritInnerComments", { enumerable: !0, get: /* @__PURE__ */ i(function() { return EW.default; }, "get") }); Object.defineProperty(Y, "inheritLeadingComments", { enumerable: !0, get: /* @__PURE__ */ i(function() { return SW.default; }, "get") }); Object.defineProperty(Y, "inheritTrailingComments", { enumerable: !0, get: /* @__PURE__ */ i(function() { return PW.default; }, "get") }); Object.defineProperty(Y, "inherits", { enumerable: !0, get: /* @__PURE__ */ i(function() { return LW.default; }, "get") }); Object.defineProperty(Y, "inheritsComments", { enumerable: !0, get: /* @__PURE__ */ i(function() { return vW.default; }, "get") }); Object.defineProperty(Y, "is", { enumerable: !0, get: /* @__PURE__ */ i(function() { return HW.default; }, "get") }); Object.defineProperty(Y, "isBinding", { enumerable: !0, get: /* @__PURE__ */ i(function() { return JW.default; }, "get") }); Object.defineProperty(Y, "isBlockScoped", { enumerable: !0, get: /* @__PURE__ */ i(function() { return GW.default; }, "get") }); Object.defineProperty(Y, "isImmutable", { enumerable: !0, get: /* @__PURE__ */ i(function() { return XW.default; }, "get") }); Object.defineProperty(Y, "isLet", { enumerable: !0, get: /* @__PURE__ */ i(function() { return zW.default; }, "get") }); Object.defineProperty(Y, "isNode", { enumerable: !0, get: /* @__PURE__ */ i(function() { return QW.default; }, "get") }); Object.defineProperty(Y, "isNodesEquivalent", { enumerable: !0, get: /* @__PURE__ */ i(function() { return ZW.default; }, "get") }); Object.defineProperty(Y, "isPlaceholderType", { enumerable: !0, get: /* @__PURE__ */ i(function() { return eY.default; }, "get") }); Object.defineProperty(Y, "isReferenced", { enumerable: !0, get: /* @__PURE__ */ i(function() { return tY.default; }, "get") }); Object.defineProperty(Y, "isScope", { enumerable: !0, get: /* @__PURE__ */ i(function() { return rY.default; }, "get") }); Object.defineProperty(Y, "isSpecifierDefault", { enumerable: !0, get: /* @__PURE__ */ i(function() { return sY.default; }, "get") }); Object.defineProperty(Y, "isType", { enumerable: !0, get: /* @__PURE__ */ i(function() { return nY.default; }, "get") }); Object.defineProperty(Y, "isValidES3Identifier", { enumerable: !0, get: /* @__PURE__ */ i(function() { return iY.default; }, "get") }); Object.defineProperty(Y, "isValidIdentifier", { enumerable: !0, get: /* @__PURE__ */ i(function() { return aY.default; }, "get") }); Object.defineProperty(Y, "isVar", { enumerable: !0, get: /* @__PURE__ */ i(function() { return oY.default; }, "get") }); Object.defineProperty(Y, "matchesPattern", { enumerable: !0, get: /* @__PURE__ */ i(function() { return lY.default; }, "get") }); Object.defineProperty(Y, "prependToMemberExpression", { enumerable: !0, get: /* @__PURE__ */ i(function() { return jW.default; }, "get") }); Y.react = void 0; Object.defineProperty(Y, "removeComments", { enumerable: !0, get: /* @__PURE__ */ i(function() { return AW.default; }, "get") }); Object.defineProperty(Y, "removeProperties", { enumerable: !0, get: /* @__PURE__ */ i(function() { return MW.default; }, "get") }); Object.defineProperty(Y, "removePropertiesDeep", { enumerable: !0, get: /* @__PURE__ */ i(function() { return RW.default; }, "get") }); Object.defineProperty(Y, "removeTypeDuplicates", { enumerable: !0, get: /* @__PURE__ */ i(function() { return qW.default; }, "get") }); Object.defineProperty(Y, "shallowEqual", { enumerable: !0, get: /* @__PURE__ */ i(function() { return YW.default; }, "get") }); Object.defineProperty(Y, "toBindingIdentifierName", { enumerable: !0, get: /* @__PURE__ */ i(function() { return wW.default; }, "get") }); Object.defineProperty(Y, "toBlock", { enumerable: !0, get: /* @__PURE__ */ i(function() { return DW.default; }, "get") }); Object.defineProperty(Y, "toComputedKey", { enumerable: !0, get: /* @__PURE__ */ i(function() { return _W.default; }, "get") }); Object.defineProperty(Y, "toExpression", { enumerable: !0, get: /* @__PURE__ */ i(function() { return IW.default; }, "get") }); Object.defineProperty(Y, "toIdentifier", { enumerable: !0, get: /* @__PURE__ */ i(function() { return OW.default; }, "get") }); Object.defineProperty(Y, "toKeyAlias", { enumerable: !0, get: /* @__PURE__ */ i(function() { return NW.default; }, "get") }); Object.defineProperty(Y, "toStatement", { enumerable: !0, get: /* @__PURE__ */ i(function() { return BW.default; }, "get") }); Object.defineProperty(Y, "traverse", { enumerable: !0, get: /* @__PURE__ */ i(function() { return Ml.default; }, "get") }); Object.defineProperty(Y, "traverseFast", { enumerable: !0, get: /* @__PURE__ */ i(function() { return WW.default; }, "get") }); Object.defineProperty(Y, "validate", { enumerable: !0, get: /* @__PURE__ */ i(function() { return uY.default; }, "get") }); Object.defineProperty(Y, "valueToNode", { enumerable: !0, get: /* @__PURE__ */ i(function() { return kW.default; }, "get") }); var lW = eg(), uW = tg(), cW = Yg(), pW = Hg(), a0 = Jg(); Object.keys(a0).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Hs, e) || e in Y && Y[e] === a0[e] || Object.defineProperty( Y, e, { enumerable: !0, get: /* @__PURE__ */ i(function() { return a0[e]; }, "get") }); }); var fW = Gg(), zT = Qg(), dW = rT(), o0 = Zf(); Object.keys(o0).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Hs, e) || e in Y && Y[e] === o0[e] || Object.defineProperty( Y, e, { enumerable: !0, get: /* @__PURE__ */ i(function() { return o0[e]; }, "get") }); }); var l0 = zt(); Object.keys(l0).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Hs, e) || e in Y && Y[e] === l0[e] || Object.defineProperty( Y, e, { enumerable: !0, get: /* @__PURE__ */ i(function() { return l0[e]; }, "get") }); }); var hW = Ys(), mW = lT(), yW = uT(), bW = cT(), gW = pT(), TW = fT(), xW = od(), EW = pd(), SW = dd(), vW = bd(), PW = md(), AW = dT(), u0 = hT(); Object.keys(u0).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Hs, e) || e in Y && Y[e] === u0[e] || Object.defineProperty( Y, e, { enumerable: !0, get: /* @__PURE__ */ i(function() { return u0[e]; }, "get") }); }); var c0 = gi(); Object.keys(c0).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Hs, e) || e in Y && Y[e] === c0[e] || Object.defineProperty( Y, e, { enumerable: !0, get: /* @__PURE__ */ i(function() { return c0[e]; }, "get") }); }); var CW = mT(), wW = yT(), DW = Ed(), _W = bT(), IW = gT(), OW = Pd(), NW = vT(), BW = PT(), kW = AT(), p0 = fr(); Object.keys(p0).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Hs, e) || e in Y && Y[e] === p0[e] || Object.defineProperty( Y, e, { enumerable: !0, get: /* @__PURE__ */ i(function() { return p0[e]; }, "get") }); }); var FW = CT(), LW = DT(), jW = _T(), MW = Id(), RW = Nd(), qW = Jf(), UW = IT(), $W = Ra(), VW = OT(), KW = BT(), Ml = kT(); Object.keys(Ml).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Hs, e) || e in Y && Y[e] === Ml[e] || Object.defineProperty( Y, e, { enumerable: !0, get: /* @__PURE__ */ i(function() { return Ml[e]; }, "get") }); }); var WW = Dd(), YW = yl(), HW = mi(), JW = FT(), GW = MT(), XW = RT(), zW = Yd(), QW = Wf(), ZW = UT(), eY = mf(), tY = $T(), rY = VT(), sY = WT(), nY = gl(), iY = YT(), aY = bi(), oY = JT(), lY = uf(), uY = Sl(), cY = pf(), f0 = Xe(); Object.keys(f0).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Hs, e) || e in Y && Y[e] === f0[e] || Object.defineProperty( Y, e, { enumerable: !0, get: /* @__PURE__ */ i(function() { return f0[e]; }, "get") }); }); var pY = hi(), fY = XT(), p4e = Y.react = { isReactComponent: lW.default, isCompatTag: uW.default, buildChildren: cW.default }; Y.toSequenceExpression = fY.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-releas\ e instead!"); }); // ../node_modules/@babel/template/lib/formatters.js var QT = w((hr) => { "use strict"; Object.defineProperty(hr, "__esModule", { value: !0 }); hr.statements = hr.statement = hr.smart = hr.program = hr.expression = void 0; var dY = ue(), { assertExpressionStatement: hY } = dY; function d0(e) { return { code: /* @__PURE__ */ i((t) => `/* @babel/template */; ${t}`, "code"), validate: /* @__PURE__ */ i(() => { }, "validate"), unwrap: /* @__PURE__ */ i((t) => e(t.program.body.slice(1)), "unwrap") }; } i(d0, "makeStatementFormatter"); var h4e = hr.smart = d0((e) => e.length > 1 ? e : e[0]), m4e = hr.statements = d0((e) => e), y4e = hr.statement = d0((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]; }), mY = hr.expression = { code: /* @__PURE__ */ i((e) => `( ${e} )`, "code"), validate: /* @__PURE__ */ i((e) => { if (e.program.body.length > 1) throw new Error("Found multiple statements but wanted one"); if (mY.unwrap(e).start === 0) throw new Error("Parse result included parens."); }, "validate"), unwrap: /* @__PURE__ */ i(({ program: e }) => { let [t] = e.body; return hY(t), t.expression; }, "unwrap") }, b4e = hr.program = { code: /* @__PURE__ */ i((e) => e, "code"), validate: /* @__PURE__ */ i(() => { }, "validate"), unwrap: /* @__PURE__ */ i((e) => e.program, "unwrap") }; }); // ../node_modules/@babel/template/lib/options.js var Rl = w((qa) => { "use strict"; Object.defineProperty(qa, "__esModule", { value: !0 }); qa.merge = gY; qa.normalizeReplacements = xY; qa.validate = TY; var yY = ["placeholderWhitelist", "placeholderPattern", "preserveComments", "syntacticPlaceholders"]; function bY(e, t) { if (e == null) return {}; var r = {}; for (var s in e) if ({}.hasOwnProperty.call(e, s)) { if (t.indexOf(s) !== -1) continue; r[s] = e[s]; } return r; } i(bY, "_objectWithoutPropertiesLoose"); function gY(e, t) { let { placeholderWhitelist: r = e.placeholderWhitelist, placeholderPattern: s = e.placeholderPattern, preserveComments: n = e.preserveComments, syntacticPlaceholders: a = e.syntacticPlaceholders } = t; return { parser: Object.assign({}, e.parser, t.parser), placeholderWhitelist: r, placeholderPattern: s, preserveComments: n, syntacticPlaceholders: a }; } i(gY, "merge"); function TY(e) { if (e != null && typeof e != "object") throw new Error("Unknown template options."); let t = e || {}, { placeholderWhitelist: r, placeholderPattern: s, preserveComments: n, syntacticPlaceholders: a } = t, o = bY(t, yY); if (r != null && !(r instanceof Set)) throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined"); if (s != null && !(s instanceof RegExp) && s !== !1) throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined"); if (n != null && typeof n != "boolean") throw new Error("'.preserveComments' must be a boolean, null, or undefined"); if (a != null && typeof a != "boolean") throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined"); if (a === !0 && (r != null || s != null)) throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'"); return { parser: o, placeholderWhitelist: r || void 0, placeholderPattern: s ?? void 0, preserveComments: n ?? void 0, syntacticPlaceholders: a ?? void 0 }; } i(TY, "validate"); function xY(e) { if (Array.isArray(e)) return e.reduce((t, r, s) => (t["$" + s] = 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"); } i(xY, "normalizeReplacements"); }); // ../node_modules/@babel/parser/lib/index.js var Nn = w((Xa) => { "use strict"; Object.defineProperty(Xa, "__esModule", { value: !0 }); function EY(e, t) { if (e == null) return {}; var r = {}; for (var s in e) if ({}.hasOwnProperty.call(e, s)) { if (t.indexOf(s) !== -1) continue; r[s] = e[s]; } return r; } i(EY, "_objectWithoutPropertiesLoose"); var is = class { static { i(this, "Position"); } constructor(t, r, s) { this.line = void 0, this.column = void 0, this.index = void 0, this.line = t, this.column = r, this.index = s; } }, wi = class { static { i(this, "SourceLocation"); } 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 Kt(e, t) { let { line: r, column: s, index: n } = e; return new is(r, s + t, n + t); } i(Kt, "createPositionWithColumnOffset"); var ZT = "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED", SY = { ImportMetaOutsideModule: { message: `import.meta may appear only with 'sourceType: "module"'`, code: ZT }, ImportOutsideModule: { message: `'import' and 'export' may appear only with 'sourceType: "module"'`, code: ZT } }, ex = { 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" }, $l = /* @__PURE__ */ i((e) => e.type === "UpdateExpression" ? ex.UpdateExpression[`${e.prefix}`] : ex[e.type], "toNodeDescription"), vY = { AccessorIsGenerator: /* @__PURE__ */ i(({ kind: e }) => `A ${e}ter cannot be a generator.`, "AccessorIsGenerator"), 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: /* @__PURE__ */ i(({ kind: e }) => `Missing initializer in ${e} declaration.`, "DeclarationMissingInitializer"), DecoratorArgumentsOutsideParentheses: "Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(deco\ rator)(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 s\ ame 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: /* @__PURE__ */ i(({ exportName: e }) => `\`${e}\` has already been exported. Exported identifiers must be unique.`, "DuplicateExport"), DuplicateProto: "Redefinition of __proto__ property.", DuplicateRegExpFlags: "Duplicate regular expression flag.", ElementAfterRest: "Rest element must be last element.", EscapedCharNotAnIdentifier: "Invalid Unicode escape.", ExportBindingIsString: /* @__PURE__ */ i(({ 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'\`?`, "ExportBindingIsString"), ExportDefaultFromAsIdentifier: "'from' is not allowed as an identifier after 'export default'.", ForInOfLoopInitializer: /* @__PURE__ */ i(({ type: e }) => `'${e === "ForInStatement" ? "for-in" : "for-of"}' loop variable declaration may not have an initializer.`, "ForInOfLoopInitialize\ r"), 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: /* @__PURE__ */ i(({ type: e }) => `Unsyntactic ${e === "BreakStatement" ? "break" : "continue"}.`, "IllegalBreakContinue"), 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: /* @__PURE__ */ i(({ importName: e }) => `A string literal cannot be used as an imported binding. - Did you mean \`import { "${e}" as foo }\`?`, "ImportBindingIsString"), 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: /* @__PURE__ */ i(({ radix: e }) => `Expected number in radix ${e}.`, "InvalidDigit"), InvalidEscapeSequence: "Bad character escape sequence.", InvalidEscapeSequenceTemplate: "Invalid escape sequence in template.", InvalidEscapedReservedWord: /* @__PURE__ */ i(({ reservedWord: e }) => `Escape sequence in keyword ${e}.`, "InvalidEscapedReservedWord"), InvalidIdentifier: /* @__PURE__ */ i(({ identifierName: e }) => `Invalid identifier ${e}.`, "InvalidIdentifier"), InvalidLhs: /* @__PURE__ */ i(({ ancestor: e }) => `Invalid left-hand side in ${$l(e)}.`, "InvalidLhs"), InvalidLhsBinding: /* @__PURE__ */ i(({ ancestor: e }) => `Binding invalid left-hand side in ${$l(e)}.`, "InvalidLhsBinding"), InvalidLhsOptionalChaining: /* @__PURE__ */ i(({ ancestor: e }) => `Invalid optional chaining in the left-hand side of ${$l(e)}.`, "InvalidLhsOptionalChaining"), InvalidNumber: "Invalid number.", InvalidOrMissingExponent: "Floating-point numbers require a valid exponent after the 'e'.", InvalidOrUnexpectedToken: /* @__PURE__ */ i(({ unexpected: e }) => `Unexpected character '${e}'.`, "InvalidOrUnexpectedToken"), InvalidParenthesizedAssignment: "Invalid parenthesized assignment pattern.", InvalidPrivateFieldResolution: /* @__PURE__ */ i(({ identifierName: e }) => `Private name #${e} is not defined.`, "InvalidPrivateFieldResolution"), InvalidPropertyBindingPattern: "Binding member expression.", InvalidRecordProperty: "Only properties and spread elements are allowed in record definitions.", InvalidRestAssignmentPattern: "Invalid rest operator's argument.", LabelRedeclaration: /* @__PURE__ */ i(({ labelName: e }) => `Label '${e}' is already declared.`, "LabelRedeclaration"), 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: /* @__PURE__ */ i(({ missingPlugin: e }) => `This experimental syntax requires enabling the parser plugin: ${e.map((t) => JSON.stringify(t)).join(", ")}.`, "MissingPlugin"), MissingOneOfPlugins: /* @__PURE__ */ i(({ missingPlugin: e }) => `This experimental syntax requires enabling one of the following parser plugin(s): ${e.map((t) => JSON.stringify(t)).join(", ")}.`, "MissingOneOfPlugins"), 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: /* @__PURE__ */ i(({ key: e }) => `Duplicate key "${e}" is not allowed in module attributes.`, "ModuleAttributesWithDuplicateKeys"), ModuleExportNameHasLoneSurrogate: /* @__PURE__ */ i(({ surrogateCharCode: e }) => `An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`, "ModuleExportNameHasLoneSurrogate"), ModuleExportUndefined: /* @__PURE__ */ i(({ localName: e }) => `Export '${e}' is not defined.`, "ModuleExportUndefined"), 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: /* @__PURE__ */ i(({ identifierName: e }) => `Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`, "PrivateInExpe\ ctedIn"), PrivateNameRedeclaration: /* @__PURE__ */ i(({ identifierName: e }) => `Duplicate private name #${e}.`, "PrivateNameRedeclaration"), RecordExpressionBarIncorrectEndSyntaxType: "Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 're\ cordAndTuple' 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 th\ e '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 sta\ tement.", 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 n\ ot 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 'reco\ rdAndTuple' 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: /* @__PURE__ */ i(({ keyword: e }) => `Unexpected keyword '${e}'.`, "UnexpectedKeyword"), 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: /* @__PURE__ */ i(({ reservedWord: e }) => `Unexpected reserved word '${e}'.`, "UnexpectedReservedWord"), UnexpectedSuper: "'super' is only allowed in object methods and classes.", UnexpectedToken: /* @__PURE__ */ i(({ expected: e, unexpected: t }) => `Unexpected token${t ? ` '${t}'.` : ""}${e ? `, expected "${e}"` : ""}`, "UnexpectedToken"), 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: /* @__PURE__ */ i(({ target: e, onlyValidPropertyName: t }) => `The only valid meta property for ${e} is ${e}.${t}.`, "UnsupportedMetaProperty"), 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: /* @__PURE__ */ i(({ identifierName: e }) => `Identifier '${e}' has already been declared.`, "VarRedeclaration"), VoidPatternCatchClauseParam: "A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to disca\ rd 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." }, PY = { StrictDelete: "Deleting local variable in strict mode.", StrictEvalArguments: /* @__PURE__ */ i(({ referenceName: e }) => `Assigning to '${e}' in strict mode.`, "StrictEvalArguments"), StrictEvalArgumentsBinding: /* @__PURE__ */ i(({ bindingName: e }) => `Binding '${e}' in strict mode.`, "StrictEvalArgumentsBinding"), 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." }, AY = { ParseExpressionEmptyInput: "Unexpected parseExpression() input: The input is empty or contains only comments.", ParseExpressionExpectsEOF: /* @__PURE__ */ i(({ 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)}\`.`, "ParseExpressionExpectsEOF") }, CY = /* @__PURE__ */ new Set(["ArrowFunctionExpression", "AssignmentExpression", "ConditionalExpression", "YieldExpression"]), wY = 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" opt\ ion.', PipeTopicUnbound: "Topic reference is unbound; it must be inside a pipe body.", PipeTopicUnconfiguredToken: /* @__PURE__ */ i(({ token: e }) => `Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "propo\ sal": "hack", "topicToken": "${e}" }.`, "PipeTopicUnconfiguredToken"), PipeTopicUnused: "Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.", PipeUnparenthesizedBody: /* @__PURE__ */ i(({ type: e }) => `Hack-style pipe body cannot be an unparenthesized ${$l({ type: e })}; please wrap it in parentheses.`, "PipeUnparenthesizedBody") }, { 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 "sma\ rt" option.' }), DY = ["message"]; function tx(e, t, r) { Object.defineProperty(e, t, { enumerable: !1, configurable: !0, value: r }); } i(tx, "defineHidden"); function _Y({ toMessage: e, code: t, reasonCode: r, syntaxPlugin: s }) { let n = r === "MissingPlugin" || r === "MissingOneOfPlugins"; { let a = { AccessorCannotDeclareThisParameter: "AccesorCannotDeclareThisParameter", AccessorCannotHaveTypeParameters: "AccesorCannotHaveTypeParameters", ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumRefer\ ence", SetAccessorCannotHaveOptionalParameter: "SetAccesorCannotHaveOptionalParameter", SetAccessorCannotHaveRestParameter: "SetAccesorCannotHaveRestParameter", SetAccessorCannotHaveReturnType: "SetAccesorCannotHaveReturnType" }; a[r] && (r = a[r]); } return /* @__PURE__ */ i(function a(o, l) { let u = new SyntaxError(); return u.code = t, u.reasonCode = r, u.loc = o, u.pos = o.index, u.syntaxPlugin = s, n && (u.missingPlugin = l.missingPlugin), tx(u, "\ clone", /* @__PURE__ */ i(function(p = {}) { var f; let { line: h, column: b, index: T } = (f = p.loc) != null ? f : o; return a(new is(h, b, T), Object.assign({}, l, p.details)); }, "clone")), tx(u, "details", l), Object.defineProperty(u, "message", { configurable: !0, get() { let c = `${e(l)} (${o.line}:${o.column})`; return this.message = c, c; }, set(c) { Object.defineProperty(this, "message", { value: c, writable: !0 }); } }), u; }, "constructor"); } i(_Y, "toParseErrorConstructor"); function ss(e, t) { if (Array.isArray(e)) return (s) => ss(s, e[0]); let r = {}; for (let s of Object.keys(e)) { let n = e[s], a = typeof n == "string" ? { message: /* @__PURE__ */ i(() => n, "message") } : typeof n == "function" ? { message: n } : n, { message: o } = a, l = EY(a, DY), u = typeof o == "string" ? () => o : o; r[s] = _Y(Object.assign({ code: "BABEL_PARSER_SYNTAX_ERROR", reasonCode: s, toMessage: u }, t ? { syntaxPlugin: t } : {}, l)); } return r; } i(ss, "ParseErrorEnum"); var N = Object.assign({}, ss(SY), ss(vY), ss(PY), ss(AY), ss`pipelineOperator`(wY)); function IY() { return { sourceType: "script", sourceFilename: void 0, startIndex: 0, startColumn: 0, startLine: 1, allowAwaitOutsideFunction: !1, allowReturnOutsideFunction: !1, allowNewTargetOutsideFunction: !1, allowImportExportEverywhere: !1, allowSuperOutsideMethod: !1, allowUndeclaredExports: !1, allowYieldOutsideFunction: !1, plugins: [], strictMode: void 0, ranges: !1, tokens: !1, createImportExpressions: !1, createParenthesizedExpressions: !1, errorRecovery: !1, attachComment: !0, annexB: !0 }; } i(IY, "createDefaultOptions"); function OY(e) { let t = IY(); 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 `allowNewTargetOutsideFun\ ction` option or use `sourceType: 'script'`."); } return t; } i(OY, "getOptions"); var { defineProperty: NY } = Object, rx = /* @__PURE__ */ i((e, t) => { e && NY(e, t, { enumerable: !1, value: e[t] }); }, "toUnenumerable"); function Ua(e) { return rx(e.loc.start, "index"), rx(e.loc.end, "index"), e; } i(Ua, "toESTreeLocation"); var BY = /* @__PURE__ */ i((e) => class extends e { static { i(this, "ESTreeParserMixin"); } parse() { let r = Ua(super.parse()); return this.optionFlags & 256 && (r.tokens = r.tokens.map(Ua)), r; } parseRegExpLiteral({ pattern: r, flags: s }) { let n = null; try { n = new RegExp(r, s); } catch { } let a = this.estreeParseLiteral(n); return a.regex = { pattern: r, flags: s }, a; } parseBigIntLiteral(r) { let s; try { s = BigInt(r); } catch { s = null; } let n = this.estreeParseLiteral(s); return n.bigint = String(n.value || r), n; } parseDecimalLiteral(r) { let n = this.estreeParseLiteral(null); return n.decimal = String(n.value || r), n; } estreeParseLiteral(r) { return this.parseLiteral(r, "Literal"); } parseStringLiteral(r) { return this.estreeParseLiteral(r); } parseNumericLiteral(r) { return this.estreeParseLiteral(r); } parseNullLiteral() { return this.estreeParseLiteral(null); } parseBooleanLiteral(r) { return this.estreeParseLiteral(r); } estreeParseChainExpression(r, s) { let n = this.startNodeAtNode(r); return n.expression = r, this.finishNodeAt(n, "ChainExpression", s); } directiveToStmt(r) { let s = r.value; delete r.value, this.castNodeTo(s, "Literal"), s.raw = s.extra.raw, s.value = s.extra.expressionValue; let n = this.castNodeTo(r, "ExpressionStatement"); return n.expression = s, n.directive = s.extra.rawValue, delete s.extra, n; } fillOptionalPropertiesForTSESLint(r) { } cloneEstreeStringLiteral(r) { let { start: s, end: n, loc: a, range: o, raw: l, value: u } = r, c = Object.create(r.constructor.prototype); return c.type = "Literal", c.start = s, c.end = n, c.loc = a, c.range = o, c.raw = l, c.value = u, c; } initFunction(r, s) { super.initFunction(r, s), 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 s; return r.type === "ExpressionStatement" && r.expression.type === "Literal" && typeof r.expression.value == "string" && !((s = r.expression. extra) != null && s.parenthesized); } parseBlockBody(r, s, n, a, o) { super.parseBlockBody(r, s, n, a, o); let l = r.directives.map((u) => this.directiveToStmt(u)); r.body = l.concat(r.body), delete r.directives; } parsePrivateName() { let r = super.parsePrivateName(); return this.getPluginOption("estree", "classFeatures") ? this.convertPrivateNameToPrivateIdentifier(r) : r; } convertPrivateNameToPrivateIdentifier(r) { let s = super.getPrivateNameSV(r); return delete r.id, r.name = s, 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, s) { let n = super.parseLiteral(r, s); return n.raw = n.extra.raw, delete n.extra, n; } parseFunctionBody(r, s, n = !1) { super.parseFunctionBody(r, s, n), r.expression = r.body.type !== "BlockStatement"; } parseMethod(r, s, n, a, o, l, u = !1) { let c = this.startNode(); c.kind = r.kind, c = super.parseMethod(c, s, n, a, o, l, u), delete c.kind; let { typeParameters: p } = r; p && (delete r.typeParameters, c.typeParameters = p, this.resetStartLocationFromNode(c, p)); let f = this.castNodeTo(c, "FunctionExpression"); return r.value = f, l === "ClassPrivateMethod" && (r.computed = !1), l === "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 s = super.parseClassProperty(...r); return this.getPluginOption("estree", "classFeatures") && this.castNodeTo(s, "PropertyDefinition"), s; } parseClassPrivateProperty(...r) { let s = super.parseClassPrivateProperty(...r); return this.getPluginOption("estree", "classFeatures") && (this.castNodeTo(s, "PropertyDefinition"), s.computed = !1), s; } parseClassAccessorProperty(r) { let s = super.parseClassAccessorProperty(r); return this.getPluginOption("estree", "classFeatures") && (s.abstract && this.hasPlugin("typescript") ? (delete s.abstract, this.castNodeTo( s, "TSAbstractAccessorProperty")) : this.castNodeTo(s, "AccessorProperty")), s; } parseObjectProperty(r, s, n, a) { let o = super.parseObjectProperty(r, s, n, a); return o && (o.kind = "init", this.castNodeTo(o, "Property")), o; } finishObjectProperty(r) { return r.kind = "init", this.finishNode(r, "Property"); } isValidLVal(r, s, n, a) { return r === "Property" ? "value" : super.isValidLVal(r, s, n, a); } isAssignable(r, s) { return r != null && this.isObjectProperty(r) ? this.isAssignable(r.value, s) : super.isAssignable(r, s); } toAssignable(r, s = !1) { if (r != null && this.isObjectProperty(r)) { let { key: n, value: a } = r; this.isPrivateName(n) && this.classScope.usePrivateName(this.getPrivateNameSV(n), n.loc.start), this.toAssignable(a, s); } else super.toAssignable(r, s); } toAssignableObjectExpressionProp(r, s, n) { r.type === "Property" && (r.kind === "get" || r.kind === "set") ? this.raise(N.PatternHasAccessor, r.key) : r.type === "Property" && r. method ? this.raise(N.PatternHasMethod, r.key) : super.toAssignableObjectExpressionProp(r, s, n); } finishCallExpression(r, s) { let n = super.finishCallExpression(r, s); if (n.callee.type === "Import") { var a; this.castNodeTo(n, "ImportExpression"), n.source = n.arguments[0], n.options = (a = n.arguments[1]) != null ? a : null; { var o; n.attributes = (o = n.arguments[1]) != null ? o : null; } delete n.arguments, delete n.callee; } else n.type === "OptionalCallExpression" ? this.castNodeTo(n, "CallExpression") : n.optional = !1; return n; } toReferencedArguments(r) { r.type !== "ImportExpression" && super.toReferencedArguments(r); } parseExport(r, s) { let n = this.state.lastTokStartLoc, a = super.parseExport(r, s); switch (a.type) { case "ExportAllDeclaration": a.exported = null; break; case "ExportNamedDeclaration": a.specifiers.length === 1 && a.specifiers[0].type === "ExportNamespaceSpecifier" && (this.castNodeTo(a, "ExportAllDeclaration"), a. exported = a.specifiers[0].exported, delete a.specifiers); case "ExportDefaultDeclaration": { var o; let { declaration: l } = a; l?.type === "ClassDeclaration" && ((o = l.decorators) == null ? void 0 : o.length) > 0 && l.start === a.start && this.resetStartLocation( a, n); } break; } return a; } stopParseSubscript(r, s) { let n = super.stopParseSubscript(r, s); return s.optionalChainMember ? this.estreeParseChainExpression(n, r.loc.end) : n; } parseMember(r, s, n, a, o) { let l = super.parseMember(r, s, n, a, o); return l.type === "OptionalMemberExpression" ? this.castNodeTo(l, "MemberExpression") : l.optional = !1, l; } 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, s) { let n = super.castNodeTo(r, s); return this.fillOptionalPropertiesForTSESLint(n), n; } cloneIdentifier(r) { let s = super.cloneIdentifier(r); return this.fillOptionalPropertiesForTSESLint(s), s; } cloneStringLiteral(r) { return r.type === "Literal" ? this.cloneEstreeStringLiteral(r) : super.cloneStringLiteral(r); } finishNodeAt(r, s, n) { return Ua(super.finishNodeAt(r, s, n)); } finishNode(r, s) { let n = super.finishNode(r, s); return this.fillOptionalPropertiesForTSESLint(n), n; } resetStartLocation(r, s) { super.resetStartLocation(r, s), Ua(r); } resetEndLocation(r, s = this.state.lastTokEndLoc) { super.resetEndLocation(r, s), Ua(r); } }, "estree"), In = class { static { i(this, "TokContext"); } constructor(t, r) { this.token = void 0, this.preserveSpace = void 0, this.token = t, this.preserveSpace = !!r; } }, De = { brace: new In("{"), j_oTag: new In("...", !0) }; De.template = new In("`", !0); var ye = !0, J = !0, h0 = !0, $a = !0, Js = !0, kY = !0, Wl = class { static { i(this, "ExportedTokenType"); } 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; } }, U0 = /* @__PURE__ */ new Map(); function Ae(e, t = {}) { t.keyword = e; let r = ie(e, t); return U0.set(e, r), r; } i(Ae, "createKeyword"); function Vt(e, t) { return ie(e, { beforeExpr: ye, binop: t }); } i(Vt, "createBinop"); var Ya = -1, bs = [], $0 = [], V0 = [], K0 = [], W0 = [], Y0 = []; function ie(e, t = {}) { var r, s, n, a; return ++Ya, $0.push(e), V0.push((r = t.binop) != null ? r : -1), K0.push((s = t.beforeExpr) != null ? s : !1), W0.push((n = t.startsExpr) != null ? n : !1), Y0.push((a = t.prefix) != null ? a : !1), bs.push(new Wl(e, t)), Ya; } i(ie, "createToken"); function ge(e, t = {}) { var r, s, n, a; return ++Ya, U0.set(e, Ya), $0.push(e), V0.push((r = t.binop) != null ? r : -1), K0.push((s = t.beforeExpr) != null ? s : !1), W0.push((n = t.startsExpr) != null ? n : !1), Y0.push((a = t.prefix) != null ? a : !1), bs.push(new Wl("name", t)), Ya; } i(ge, "createKeywordLike"); var FY = { bracketL: ie("[", { beforeExpr: ye, startsExpr: J }), bracketHashL: ie("#[", { beforeExpr: ye, startsExpr: J }), bracketBarL: ie("[|", { beforeExpr: ye, startsExpr: J }), bracketR: ie("]"), bracketBarR: ie("|]"), braceL: ie("{", { beforeExpr: ye, startsExpr: J }), braceBarL: ie("{|", { beforeExpr: ye, startsExpr: J }), braceHashL: ie("#{", { beforeExpr: ye, startsExpr: J }), braceR: ie("}"), braceBarR: ie("|}"), parenL: ie("(", { beforeExpr: ye, startsExpr: J }), parenR: ie(")"), comma: ie(",", { beforeExpr: ye }), semi: ie(";", { beforeExpr: ye }), colon: ie(":", { beforeExpr: ye }), doubleColon: ie("::", { beforeExpr: ye }), dot: ie("."), question: ie("?", { beforeExpr: ye }), questionDot: ie("?."), arrow: ie("=>", { beforeExpr: ye }), template: ie("template"), ellipsis: ie("...", { beforeExpr: ye }), backQuote: ie("`", { startsExpr: J }), dollarBraceL: ie("${", { beforeExpr: ye, startsExpr: J }), templateTail: ie("...`", { startsExpr: J }), templateNonTail: ie("...${", { beforeExpr: ye, startsExpr: J }), at: ie("@"), hash: ie("#", { startsExpr: J }), interpreterDirective: ie("#!..."), eq: ie("=", { beforeExpr: ye, isAssign: $a }), assign: ie("_=", { beforeExpr: ye, isAssign: $a }), slashAssign: ie("_=", { beforeExpr: ye, isAssign: $a }), xorAssign: ie("_=", { beforeExpr: ye, isAssign: $a }), moduloAssign: ie("_=", { beforeExpr: ye, isAssign: $a }), incDec: ie("++/--", { prefix: Js, postfix: kY, startsExpr: J }), bang: ie("!", { beforeExpr: ye, prefix: Js, startsExpr: J }), tilde: ie("~", { beforeExpr: ye, prefix: Js, startsExpr: J }), doubleCaret: ie("^^", { startsExpr: J }), doubleAt: ie("@@", { startsExpr: J }), pipeline: Vt("|>", 0), nullishCoalescing: Vt("??", 1), logicalOR: Vt("||", 1), logicalAND: Vt("&&", 2), bitwiseOR: Vt("|", 3), bitwiseXOR: Vt("^", 4), bitwiseAND: Vt("&", 5), equality: Vt("==/!=/===/!==", 6), lt: Vt("/<=/>=", 7), gt: Vt("/<=/>=", 7), relational: Vt("/<=/>=", 7), bitShift: Vt("<>/>>>", 8), bitShiftL: Vt("<>/>>>", 8), bitShiftR: Vt("<>/>>>", 8), plusMin: ie("+/-", { beforeExpr: ye, binop: 9, prefix: Js, startsExpr: J }), modulo: ie("%", { binop: 10, startsExpr: J }), star: ie("*", { binop: 10 }), slash: Vt("/", 10), exponent: ie("**", { beforeExpr: ye, binop: 11, rightAssociative: !0 }), _in: Ae("in", { beforeExpr: ye, binop: 7 }), _instanceof: Ae("instanceof", { beforeExpr: ye, binop: 7 }), _break: Ae("break"), _case: Ae("case", { beforeExpr: ye }), _catch: Ae("catch"), _continue: Ae("continue"), _debugger: Ae("debugger"), _default: Ae("default", { beforeExpr: ye }), _else: Ae("else", { beforeExpr: ye }), _finally: Ae("finally"), _function: Ae("function", { startsExpr: J }), _if: Ae("if"), _return: Ae("return", { beforeExpr: ye }), _switch: Ae("switch"), _throw: Ae("throw", { beforeExpr: ye, prefix: Js, startsExpr: J }), _try: Ae("try"), _var: Ae("var"), _const: Ae("const"), _with: Ae("with"), _new: Ae("new", { beforeExpr: ye, startsExpr: J }), _this: Ae("this", { startsExpr: J }), _super: Ae("super", { startsExpr: J }), _class: Ae("class", { startsExpr: J }), _extends: Ae("extends", { beforeExpr: ye }), _export: Ae("export"), _import: Ae("import", { startsExpr: J }), _null: Ae("null", { startsExpr: J }), _true: Ae("true", { startsExpr: J }), _false: Ae("false", { startsExpr: J }), _typeof: Ae("typeof", { beforeExpr: ye, prefix: Js, startsExpr: J }), _void: Ae("void", { beforeExpr: ye, prefix: Js, startsExpr: J }), _delete: Ae("delete", { beforeExpr: ye, prefix: Js, startsExpr: J }), _do: Ae("do", { isLoop: h0, beforeExpr: ye }), _for: Ae("for", { isLoop: h0 }), _while: Ae("while", { isLoop: h0 }), _as: ge("as", { startsExpr: J }), _assert: ge("assert", { startsExpr: J }), _async: ge("async", { startsExpr: J }), _await: ge("await", { startsExpr: J }), _defer: ge("defer", { startsExpr: J }), _from: ge("from", { startsExpr: J }), _get: ge("get", { startsExpr: J }), _let: ge("let", { startsExpr: J }), _meta: ge("meta", { startsExpr: J }), _of: ge("of", { startsExpr: J }), _sent: ge("sent", { startsExpr: J }), _set: ge("set", { startsExpr: J }), _source: ge("source", { startsExpr: J }), _static: ge("static", { startsExpr: J }), _using: ge("using", { startsExpr: J }), _yield: ge("yield", { startsExpr: J }), _asserts: ge("asserts", { startsExpr: J }), _checks: ge("checks", { startsExpr: J }), _exports: ge("exports", { startsExpr: J }), _global: ge("global", { startsExpr: J }), _implements: ge("implements", { startsExpr: J }), _intrinsic: ge("intrinsic", { startsExpr: J }), _infer: ge("infer", { startsExpr: J }), _is: ge("is", { startsExpr: J }), _mixins: ge("mixins", { startsExpr: J }), _proto: ge("proto", { startsExpr: J }), _require: ge("require", { startsExpr: J }), _satisfies: ge("satisfies", { startsExpr: J }), _keyof: ge("keyof", { startsExpr: J }), _readonly: ge("readonly", { startsExpr: J }), _unique: ge("unique", { startsExpr: J }), _abstract: ge("abstract", { startsExpr: J }), _declare: ge("declare", { startsExpr: J }), _enum: ge("enum", { startsExpr: J }), _module: ge("module", { startsExpr: J }), _namespace: ge("namespace", { startsExpr: J }), _interface: ge("interface", { startsExpr: J }), _type: ge("type", { startsExpr: J }), _opaque: ge("opaque", { startsExpr: J }), name: ie("name", { startsExpr: J }), placeholder: ie("%%", { startsExpr: J }), string: ie("string", { startsExpr: J }), num: ie("num", { startsExpr: J }), bigint: ie("bigint", { startsExpr: J }), decimal: ie("decimal", { startsExpr: J }), regexp: ie("regexp", { startsExpr: J }), privateName: ie("#name", { startsExpr: J }), eof: ie("eof"), jsxName: ie("jsxName"), jsxText: ie("jsxText", { beforeExpr: ye }), jsxTagStart: ie("jsxTagStart", { startsExpr: J }), jsxTagEnd: ie("jsxTagEnd") }; function Be(e) { return e >= 93 && e <= 133; } i(Be, "tokenIsIdentifier"); function LY(e) { return e <= 92; } i(LY, "tokenKeywordOrIdentifierIsKeyword"); function Fr(e) { return e >= 58 && e <= 133; } i(Fr, "tokenIsKeywordOrIdentifier"); function hx(e) { return e >= 58 && e <= 137; } i(hx, "tokenIsLiteralPropertyName"); function jY(e) { return K0[e]; } i(jY, "tokenComesBeforeExpression"); function Ka(e) { return W0[e]; } i(Ka, "tokenCanStartExpression"); function MY(e) { return e >= 29 && e <= 33; } i(MY, "tokenIsAssignment"); function sx(e) { return e >= 129 && e <= 131; } i(sx, "tokenIsFlowInterfaceOrTypeOrOpaque"); function RY(e) { return e >= 90 && e <= 92; } i(RY, "tokenIsLoop"); function H0(e) { return e >= 58 && e <= 92; } i(H0, "tokenIsKeyword"); function qY(e) { return e >= 39 && e <= 59; } i(qY, "tokenIsOperator"); function UY(e) { return e === 34; } i(UY, "tokenIsPostfix"); function $Y(e) { return Y0[e]; } i($Y, "tokenIsPrefix"); function VY(e) { return e >= 121 && e <= 123; } i(VY, "tokenIsTSTypeOperator"); function KY(e) { return e >= 124 && e <= 130; } i(KY, "tokenIsTSDeclarationStart"); function zs(e) { return $0[e]; } i(zs, "tokenLabelName"); function Vl(e) { return V0[e]; } i(Vl, "tokenOperatorPrecedence"); function WY(e) { return e === 57; } i(WY, "tokenIsRightAssociative"); function Yl(e) { return e >= 24 && e <= 25; } i(Yl, "tokenIsTemplate"); function ys(e) { return bs[e]; } i(ys, "getExportedToken"); bs[8].updateContext = (e) => { e.pop(); }, bs[5].updateContext = bs[7].updateContext = bs[23].updateContext = (e) => { e.push(De.brace); }, bs[22].updateContext = (e) => { e[e.length - 1] === De.template ? e.pop() : e.push(De.template); }, bs[143].updateContext = (e) => { e.push(De.j_expr, De.j_oTag); }; var J0 = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993\ -\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92\ -\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\ \u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00\ -\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\ \u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\ \uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", mx = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\ \u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\ \u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0\ -\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00\ -\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65", YY = new RegExp("[" + J0 + "]"), HY = new RegExp("[" + J0 + mx + "]"); J0 = mx = null; var yx = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 7, 25, 39, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489], JY = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; function x0(e, t) { let r = 65536; for (let s = 0, n = t.length; s < n; s += 2) { if (r += t[s], r > e) return !1; if (r += t[s + 1], r >= e) return !0; } return !1; } i(x0, "isInAstralSet"); function ns(e) { return e < 65 ? e === 36 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && YY.test(String.fromCharCode(e)) : x0(e, yx); } i(ns, "isIdentifierStart"); function On(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 && HY.test( String.fromCharCode(e)) : x0(e, yx) || x0(e, JY); } i(On, "isIdentifierChar"); var G0 = { keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "swit\ ch", "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"] }, GY = new Set(G0.keyword), XY = new Set(G0.strict), zY = new Set(G0.strictBind); function bx(e, t) { return t && e === "await" || e === "enum"; } i(bx, "isReservedWord"); function gx(e, t) { return bx(e, t) || XY.has(e); } i(gx, "isStrictReservedWord"); function Tx(e) { return zY.has(e); } i(Tx, "isStrictBindOnlyReservedWord"); function xx(e, t) { return gx(e, t) || Tx(e); } i(xx, "isStrictBindReservedWord"); function QY(e) { return GY.has(e); } i(QY, "isKeyword"); function ZY(e, t, r) { return e === 64 && t === 64 && ns(r); } i(ZY, "isIteratorStart"); var eH = /* @__PURE__ */ 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", "protecte\ d", "public", "static", "yield", "eval", "arguments", "enum", "await"]); function tH(e) { return eH.has(e); } i(tH, "canBeReservedWord"); var Ha = class { static { i(this, "Scope"); } constructor(t) { this.flags = 0, this.names = /* @__PURE__ */ new Map(), this.firstLexicalName = "", this.flags = t; } }, Ja = class { static { i(this, "ScopeHandler"); } constructor(t, r) { this.parser = void 0, this.scopeStack = [], this.inModule = void 0, this.undefinedExports = /* @__PURE__ */ 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 Ha(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, s) { let n = this.currentScope(); if (r & 8 || r & 16) { this.checkRedeclarationInScope(n, t, r, s); let a = n.names.get(t) || 0; r & 16 ? a = a | 4 : (n.firstLexicalName || (n.firstLexicalName = t), a = a | 2), n.names.set(t, a), r & 8 && this.maybeExportDefined( n, t); } else if (r & 4) for (let a = this.scopeStack.length - 1; a >= 0 && (n = this.scopeStack[a], this.checkRedeclarationInScope(n, t, r, s), n.names.set( t, (n.names.get(t) || 0) | 1), this.maybeExportDefined(n, t), !(n.flags & 1667)); --a) ; this.parser.inModule && n.flags & 1 && this.undefinedExports.delete(t); } maybeExportDefined(t, r) { this.parser.inModule && t.flags & 1 && this.undefinedExports.delete(r); } checkRedeclarationInScope(t, r, s, n) { this.isRedeclaredInScope(t, r, s) && this.parser.raise(N.VarRedeclaration, n, { identifierName: r }); } isRedeclaredInScope(t, r, s) { if (!(s & 1)) return !1; if (s & 8) return t.names.has(r); let n = t.names.get(r) || 0; return s & 16 ? (n & 2) > 0 || !this.treatFunctionsAsVarInScope(t) && (n & 1) > 0 : (n & 2) > 0 && !(t.flags & 8 && t.firstLexicalName === r) || !this.treatFunctionsAsVarInScope(t) && (n & 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; } } }, E0 = class extends Ha { static { i(this, "FlowScope"); } constructor(...t) { super(...t), this.declareFunctions = /* @__PURE__ */ new Set(); } }, S0 = class extends Ja { static { i(this, "FlowScopeHandler"); } createScope(t) { return new E0(t); } declareName(t, r, s) { let n = this.currentScope(); if (r & 2048) { this.checkRedeclarationInScope(n, t, r, s), this.maybeExportDefined(n, t), n.declareFunctions.add(t); return; } super.declareName(t, r, s); } isRedeclaredInScope(t, r, s) { if (super.isRedeclaredInScope(t, r, s)) return !0; if (s & 2048 && !t.declareFunctions.has(r)) { let n = t.names.get(r); return (n & 4) > 0 || (n & 2) > 0; } return !1; } checkLocalExport(t) { this.scopeStack[0].declareFunctions.has(t.name) || super.checkLocalExport(t); } }, rH = /* @__PURE__ */ new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "stat\ ic", "string", "true", "typeof", "void"]), le = ss`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: /* @__PURE__ */ i(({ reservedType: e }) => `Cannot overwrite reserved type ${e}.`, "AssignReservedType"), 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: /* @__PURE__ */ i(({ memberName: e, enumName: t }) => `Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`, "EnumBooleanMem\ berNotInitialized"), EnumDuplicateMemberName: /* @__PURE__ */ i(({ memberName: e, enumName: t }) => `Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`, "EnumDuplicateMemberN\ ame"), EnumInconsistentMemberValues: /* @__PURE__ */ i(({ enumName: e }) => `Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, num\ bers, or strings) for all member initializers.`, "EnumInconsistentMemberValues"), EnumInvalidExplicitType: /* @__PURE__ */ i(({ invalidEnumType: e, enumName: t }) => `Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`, "EnumInvalidEx\ plicitType"), EnumInvalidExplicitTypeUnknownSupplied: /* @__PURE__ */ i(({ enumName: e }) => `Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`, "EnumInvalidEx\ plicitTypeUnknownSupplied"), EnumInvalidMemberInitializerPrimaryType: /* @__PURE__ */ i(({ enumName: e, memberName: t, explicitType: r }) => `Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`, "EnumInvalidMemberInitializerPrimar\ yType"), EnumInvalidMemberInitializerSymbolType: /* @__PURE__ */ i(({ enumName: e, memberName: t }) => `Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`, "EnumInvalidMemberInitializerSymbolType"), EnumInvalidMemberInitializerUnknownType: /* @__PURE__ */ i(({ enumName: e, memberName: t }) => `The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`, "EnumInv\ alidMemberInitializerUnknownType"), EnumInvalidMemberName: /* @__PURE__ */ i(({ 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}\ \`.`, "EnumInvalidMemberName"), EnumNumberMemberNotInitialized: /* @__PURE__ */ i(({ enumName: e, memberName: t }) => `Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`, "EnumNumberMemberNotInitialized"), EnumStringMemberInconsistentlyInitialized: /* @__PURE__ */ i(({ enumName: e }) => `String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`, "EnumStringMemb\ erInconsistentlyInitialized"), 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: /* @__PURE__ */ i(({ reservedType: e }) => `Unexpected reserved type ${e}.`, "UnexpectedReservedType"), 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: /* @__PURE__ */ i(({ unsupportedExportKind: e, suggestion: t }) => `\`declare export ${e}\` is not supported. Use \`${t}\` instead.`, "UnsupportedDeclareExportKind"), UnsupportedStatementInDeclareModule: "Only declares and type imports are allowed inside declare module.", UnterminatedFlowComment: "Unterminated flow-comment." }); function sH(e) { return e.type === "DeclareExportAllDeclaration" || e.type === "DeclareExportDeclaration" && (!e.declaration || e.declaration.type !== "T\ ypeAlias" && e.declaration.type !== "InterfaceDeclaration"); } i(sH, "isEsModuleType"); function nx(e) { return e.importKind === "type" || e.importKind === "typeof"; } i(nx, "hasTypeImportKind"); var nH = { const: "declare export var", let: "declare export var", type: "export type", interface: "export interface" }; function iH(e, t) { let r = [], s = []; for (let n = 0; n < e.length; n++) (t(e[n], n, e) ? r : s).push(e[n]); return [r, s]; } i(iH, "partition"); var aH = /\*?\s*@((?:no)?flow)\b/, oH = /* @__PURE__ */ i((e) => class extends e { static { i(this, "FlowParserMixin"); } constructor(...r) { super(...r), this.flowPragma = void 0; } getScopeHandler() { return S0; } shouldParseTypes() { return this.getPluginOption("flow", "all") || this.flowPragma === "flow"; } finishToken(r, s) { r !== 134 && r !== 13 && r !== 28 && this.flowPragma === void 0 && (this.flowPragma = null), super.finishToken(r, s); } addComment(r) { if (this.flowPragma === void 0) { let s = aH.exec(r.value); if (s) if (s[1] === "flow") this.flowPragma = "flow"; else if (s[1] === "noflow") this.flowPragma = "noflow"; else throw new Error("Unexpected flow pragma"); } super.addComment(r); } flowParseTypeInitialiser(r) { let s = this.state.inType; this.state.inType = !0, this.expect(r || 14); let n = this.flowParseType(); return this.state.inType = s, n; } flowParsePredicate() { let r = this.startNode(), s = this.state.startLoc; return this.next(), this.expectContextual(110), this.state.lastTokStartLoc.index > s.index + 1 && this.raise(le.UnexpectedSpaceBetweenModuloChecks, s), 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 s = null, n = null; return this.match(54) ? (this.state.inType = r, n = this.flowParsePredicate()) : (s = this.flowParseType(), this.state.inType = r, this. match(54) && (n = this.flowParsePredicate())), [s, n]; } flowParseDeclareClass(r) { return this.next(), this.flowParseInterfaceish(r, !0), this.finishNode(r, "DeclareClass"); } flowParseDeclareFunction(r) { this.next(); let s = r.id = this.parseIdentifier(), n = this.startNode(), a = this.startNode(); this.match(47) ? n.typeParameters = this.flowParseTypeParameterDeclaration() : n.typeParameters = null, this.expect(10); let o = this.flowParseFunctionTypeParams(); return n.params = o.params, n.rest = o.rest, n.this = o._this, this.expect(11), [n.returnType, r.predicate] = this.flowParseTypeAndPredicateInitialiser(), a.typeAnnotation = this.finishNode(n, "FunctionTypeAnnotation"), s.typeAnnotation = this.finishNode(a, "TypeAnnotation"), this.resetEndLocation( s), this.semicolon(), this.scope.declareName(r.id.name, 2048, r.id.loc.start), this.finishNode(r, "DeclareFunction"); } flowParseDeclare(r, s) { if (this.match(80)) return this.flowParseDeclareClass(r); 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) : (s && this.raise(le.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, s); throw 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 s = r.body = this.startNode(), n = s.body = []; for (this.expect(5); !this.match(8); ) { let l = this.startNode(); this.match(83) ? (this.next(), !this.isContextual(130) && !this.match(87) && this.raise(le.InvalidNonTypeImportInDeclareModule, this. state.lastTokStartLoc), n.push(super.parseImport(l))) : (this.expectContextual(125, le.UnsupportedStatementInDeclareModule), n.push( this.flowParseDeclare(l, !0))); } this.scope.exit(), this.expect(8), this.finishNode(s, "BlockStatement"); let a = null, o = !1; return n.forEach((l) => { sH(l) ? (a === "CommonJS" && this.raise(le.AmbiguousDeclareModuleKind, l), a = "ES") : l.type === "DeclareModuleExports" && (o && this. raise(le.DuplicateDeclareModuleExports, l), a === "ES" && this.raise(le.AmbiguousDeclareModuleKind, l), a = "CommonJS", o = !0); }), r.kind = a || "CommonJS", this.finishNode(r, "DeclareModule"); } flowParseDeclareExportDeclaration(r, s) { 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)) && !s) { let n = this.state.value; throw this.raise(le.UnsupportedDeclareExportKind, this.state.startLoc, { unsupportedExportKind: n, suggestion: nH[n] }); } 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"); throw this.unexpected(); } flowParseDeclareModuleExports(r) { return this.next(), this.expectContextual(111), r.typeAnnotation = this.flowParseTypeAnnotation(), this.semicolon(), this.finishNode(r, "DeclareModuleExports"); } flowParseDeclareTypeAlias(r) { this.next(); let s = this.flowParseTypeAlias(r); return this.castNodeTo(s, "DeclareTypeAlias"), s; } flowParseDeclareOpaqueType(r) { this.next(); let s = this.flowParseOpaqueType(r, !0); return this.castNodeTo(s, "DeclareOpaqueType"), s; } flowParseDeclareInterface(r) { return this.next(), this.flowParseInterfaceish(r, !1), this.finishNode(r, "DeclareInterface"); } flowParseInterfaceish(r, s) { if (r.id = this.flowParseRestrictedIdentifier(!s, !0), this.scope.declareName(r.id.name, s ? 17 : 8201, r.id.loc.start), this.match(47) ? r.typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.extends = [], this.eat(81)) do r.extends.push(this.flowParseInterfaceExtends()); while (!s && this.eat(12)); if (s) { if (r.implements = [], r.mixins = [], this.eatContextual(117)) do r.mixins.push(this.flowParseInterfaceExtends()); while (this.eat(12)); if (this.eatContextual(113)) do r.implements.push(this.flowParseInterfaceExtends()); while (this.eat(12)); } r.body = this.flowParseObjectType({ allowStatic: s, allowExact: !1, allowSpread: !1, allowProto: s, allowInexact: !1 }); } flowParseInterfaceExtends() { let r = this.startNode(); 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(le.UnexpectedReservedUnderscore, this.state.startLoc); } checkReservedType(r, s, n) { rH.has(r) && this.raise(n ? le.AssignReservedType : le.UnexpectedReservedType, s, { reservedType: r }); } flowParseRestrictedIdentifier(r, s) { return this.checkReservedType(this.state.value, this.state.startLoc, s), 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, s) { 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, s || (r.impltype = this.flowParseTypeInitialiser(29)), this.semicolon(), this.finishNode(r, "OpaqueType"); } flowParseTypeParameter(r = !1) { let s = this.state.startLoc, n = this.startNode(), a = this.flowParseVariance(), o = this.flowParseTypeAnnotatableIdentifier(); return n.name = o.name, n.variance = a, n.bound = o.typeAnnotation, this.match(29) ? (this.eat(29), n.default = this.flowParseType()) : r && this.raise(le.MissingTypeParamDefault, s), this.finishNode(n, "TypeParameter"); } flowParseTypeParameterDeclaration() { let r = this.state.inType, s = this.startNode(); s.params = [], this.state.inType = !0, this.match(47) || this.match(143) ? this.next() : this.unexpected(); let n = !1; do { let a = this.flowParseTypeParameter(n); s.params.push(a), a.default && (n = !0), this.match(48) || this.expect(12); } while (!this.match(48)); return this.expect(48), this.state.inType = r, this.finishNode(s, "TypeParameterDeclaration"); } flowInTopLevelContext(r) { if (this.curContext() !== De.brace) { let s = this.state.context; this.state.context = [s[0]]; try { return r(); } finally { this.state.context = s; } } else return r(); } flowParseTypeParameterInstantiationInExpression() { if (this.reScan_lt() === 47) return this.flowParseTypeParameterInstantiation(); } flowParseTypeParameterInstantiation() { let r = this.startNode(), s = this.state.inType; return this.state.inType = !0, r.params = [], this.flowInTopLevelContext(() => { this.expect(47); let n = 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 = n; }), this.state.inType = s, !this.state.inType && this.curContext() === De.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode( r, "TypeParameterInstantiation"); } flowParseTypeParameterInstantiationCallOrNew() { if (this.reScan_lt() !== 47) return null; let r = this.startNode(), s = 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 = s, this.finishNode(r, "TypeParameterInstantiation"); } flowParseInterfaceType() { let r = this.startNode(); if (this.expectContextual(129), r.extends = [], this.eat(81)) do r.extends.push(this.flowParseInterfaceExtends()); while (this.eat(12)); return r.body = this.flowParseObjectType({ allowStatic: !1, allowExact: !1, allowSpread: !1, allowProto: !1, allowInexact: !1 }), this.finishNode(r, "InterfaceTypeAnnotation"); } flowParseObjectPropertyKey() { return this.match(135) || this.match(134) ? super.parseExprAtom() : this.parseIdentifier(!0); } flowParseObjectTypeIndexer(r, s, n) { return r.static = s, 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 = n, this.finishNode( r, "ObjectTypeIndexer"); } flowParseObjectTypeInternalSlot(r, s) { return r.static = s, r.id = this.flowParseObjectPropertyKey(), this.expect(3), this.expect(3), this.match(47) || this.match(10) ? (r.method = !0, r.optional = !1, r.value = this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))) : (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, s) { let n = this.startNode(); return r.static = s, r.value = this.flowParseObjectTypeMethodish(n), this.finishNode(r, "ObjectTypeCallProperty"); } flowParseObjectType({ allowStatic: r, allowExact: s, allowSpread: n, allowProto: a, allowInexact: o }) { let l = this.state.inType; this.state.inType = !0; let u = this.startNode(); u.callProperties = [], u.properties = [], u.indexers = [], u.internalSlots = []; let c, p, f = !1; for (s && this.match(6) ? (this.expect(6), c = 9, p = !0) : (this.expect(5), c = 8, p = !1), u.exact = p; !this.match(c); ) { let b = !1, T = null, d = null, g = this.startNode(); if (a && this.isContextual(118)) { let _ = this.lookahead(); _.type !== 14 && _.type !== 17 && (this.next(), T = this.state.startLoc, r = !1); } if (r && this.isContextual(106)) { let _ = this.lookahead(); _.type !== 14 && _.type !== 17 && (this.next(), b = !0); } let D = this.flowParseVariance(); if (this.eat(0)) T != null && this.unexpected(T), this.eat(0) ? (D && this.unexpected(D.loc.start), u.internalSlots.push(this.flowParseObjectTypeInternalSlot( g, b))) : u.indexers.push(this.flowParseObjectTypeIndexer(g, b, D)); else if (this.match(10) || this.match(47)) T != null && this.unexpected(T), D && this.unexpected(D.loc.start), u.callProperties.push(this.flowParseObjectTypeCallProperty(g, b)); else { let _ = "init"; if (this.isContextual(99) || this.isContextual(104)) { let k = this.lookahead(); hx(k.type) && (_ = this.state.value, this.next()); } let O = this.flowParseObjectTypeProperty(g, b, T, D, _, n, o ?? !p); O === null ? (f = !0, d = this.state.lastTokStartLoc) : u.properties.push(O); } this.flowObjectTypeSemicolon(), d && !this.match(8) && !this.match(9) && this.raise(le.UnexpectedExplicitInexactInObject, d); } this.expect(c), n && (u.inexact = f); let h = this.finishNode(u, "ObjectTypeAnnotation"); return this.state.inType = l, h; } flowParseObjectTypeProperty(r, s, n, a, o, l, u) { if (this.eat(21)) return this.match(12) || this.match(13) || this.match(8) || this.match(9) ? (l ? u || this.raise(le.InexactInsideExact, this.state.lastTokStartLoc) : this.raise(le.InexactInsideNonObject, this.state.lastTokStartLoc), a && this.raise(le.InexactVariance, a), null) : (l || this.raise( le.UnexpectedSpreadType, this.state.lastTokStartLoc), n != null && this.unexpected(n), a && this.raise(le.SpreadVariance, a), r.argument = this.flowParseType(), this.finishNode(r, "ObjectTypeSpreadProperty")); { r.key = this.flowParseObjectPropertyKey(), r.static = s, r.proto = n != null, r.kind = o; let c = !1; return this.match(47) || this.match(10) ? (r.method = !0, n != null && this.unexpected(n), a && this.unexpected(a.loc.start), r.value = this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)), (o === "get" || o === "set") && this.flowCheckGetterSetterParams(r), !l && r.key.name === "constructor" && r.value.this && this.raise(le.ThisParamBannedInConstructor, r.value.this)) : (o !== "init" && this. unexpected(), r.method = !1, this.eat(17) && (c = !0), r.value = this.flowParseTypeInitialiser(), r.variance = a), r.optional = c, this. finishNode(r, "ObjectTypeProperty"); } } flowCheckGetterSetterParams(r) { let s = r.kind === "get" ? 0 : 1, n = r.value.params.length + (r.value.rest ? 1 : 0); r.value.this && this.raise(r.kind === "get" ? le.GetterMayNotHaveThisParam : le.SetterMayNotHaveThisParam, r.value.this), n !== s && this. raise(r.kind === "get" ? N.BadGetterArity : N.BadSetterArity, r), r.kind === "set" && r.value.rest && this.raise(N.BadSetterRestParameter, r); } flowObjectTypeSemicolon() { !this.eat(13) && !this.eat(12) && !this.match(8) && !this.match(9) && this.unexpected(); } flowParseQualifiedTypeIdentifier(r, s) { r ?? (r = this.state.startLoc); let n = s || this.flowParseRestrictedIdentifier(!0); for (; this.eat(16); ) { let a = this.startNodeAt(r); a.qualification = n, a.id = this.flowParseRestrictedIdentifier(!0), n = this.finishNode(a, "QualifiedTypeIdentifier"); } return n; } flowParseGenericType(r, s) { let n = this.startNodeAt(r); return n.typeParameters = null, n.id = this.flowParseQualifiedTypeIdentifier(r, s), this.match(47) && (n.typeParameters = this.flowParseTypeParameterInstantiation()), this.finishNode(n, "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.pos < this.length && !this.match(3) && (r.types.push(this.flowParseType()), !this.match( 3)); ) this.expect(12); return this.expect(3), this.finishNode(r, "TupleTypeAnnotation"); } flowParseFunctionTypeParam(r) { let s = null, n = !1, a = null, o = this.startNode(), l = this.lookahead(), u = this.state.type === 78; return l.type === 14 || l.type === 17 ? (u && !r && this.raise(le.ThisParamMustBeFirst, o), s = this.parseIdentifier(u), this.eat(17) && (n = !0, u && this.raise(le.ThisParamMayNotBeOptional, o)), a = this.flowParseTypeInitialiser()) : a = this.flowParseType(), o.name = s, o.optional = n, o.typeAnnotation = a, this.finishNode(o, "FunctionTypeParam"); } reinterpretTypeAsFunctionTypeParam(r) { let s = this.startNodeAt(r.loc.start); return s.name = null, s.optional = !1, s.typeAnnotation = r, this.finishNode(s, "FunctionTypeParam"); } flowParseFunctionTypeParams(r = []) { let s = null, n = null; for (this.match(78) && (n = this.flowParseFunctionTypeParam(!0), n.name = null, this.match(11) || this.expect(12)); !this.match(11) && !this.match(21); ) r.push(this.flowParseFunctionTypeParam(!1)), this.match(11) || this.expect(12); return this.eat(21) && (s = this.flowParseFunctionTypeParam(!1)), { params: r, rest: s, _this: n }; } flowIdentToTypeAnnotation(r, s, n) { switch (n.name) { case "any": return this.finishNode(s, "AnyTypeAnnotation"); case "bool": case "boolean": return this.finishNode(s, "BooleanTypeAnnotation"); case "mixed": return this.finishNode(s, "MixedTypeAnnotation"); case "empty": return this.finishNode(s, "EmptyTypeAnnotation"); case "number": return this.finishNode(s, "NumberTypeAnnotation"); case "string": return this.finishNode(s, "StringTypeAnnotation"); case "symbol": return this.finishNode(s, "SymbolTypeAnnotation"); default: return this.checkNotUnderscore(n.name), this.flowParseGenericType(r, n); } } flowParsePrimaryType() { let r = this.state.startLoc, s = this.startNode(), n, a, o = !1, l = this.state.noAnonFunctionType; switch (this.state.type) { case 5: return this.flowParseObjectType({ allowStatic: !1, allowExact: !1, allowSpread: !0, allowProto: !1, allowInexact: !0 }); case 6: return this.flowParseObjectType({ allowStatic: !1, allowExact: !0, allowSpread: !0, allowProto: !1, allowInexact: !1 }); case 0: return this.state.noAnonFunctionType = !1, a = this.flowParseTupleType(), this.state.noAnonFunctionType = l, a; case 47: { let u = this.startNode(); return u.typeParameters = this.flowParseTypeParameterDeclaration(), this.expect(10), n = this.flowParseFunctionTypeParams(), u.params = n.params, u.rest = n.rest, u.this = n._this, this.expect(11), this.expect(19), u.returnType = this.flowParseType(), this.finishNode( u, "FunctionTypeAnnotation"); } case 10: { let u = this.startNode(); if (this.next(), !this.match(11) && !this.match(21)) if (Be(this.state.type) || this.match(78)) { let c = this.lookahead().type; o = c !== 17 && c !== 14; } else o = !0; if (o) { if (this.state.noAnonFunctionType = !1, a = this.flowParseType(), this.state.noAnonFunctionType = l, this.state.noAnonFunctionType || !(this.match(12) || this.match(11) && this.lookahead().type === 19)) return this.expect(11), a; this.eat(12); } return a ? n = this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(a)]) : n = this.flowParseFunctionTypeParams(), u.params = n.params, u.rest = n.rest, u.this = n._this, this.expect(11), this.expect(19), u.returnType = this.flowParseType(), u.typeParameters = null, this.finishNode(u, "FunctionTypeAnnotation"); } case 134: return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation"); case 85: case 86: return s.value = this.match(85), this.next(), this.finishNode(s, "BooleanLiteralTypeAnnotation"); case 53: if (this.state.value === "-") { if (this.next(), this.match(135)) return this.parseLiteralAtNode(-this.state.value, "NumberLiteralTypeAnnotation", s); if (this.match(136)) return this.parseLiteralAtNode(-this.state.value, "BigIntLiteralTypeAnnotation", s); throw this.raise(le.UnexpectedSubtractionOperand, this.state.startLoc); } throw this.unexpected(); case 135: return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation"); case 136: return this.parseLiteral(this.state.value, "BigIntLiteralTypeAnnotation"); case 88: return this.next(), this.finishNode(s, "VoidTypeAnnotation"); case 84: return this.next(), this.finishNode(s, "NullLiteralTypeAnnotation"); case 78: return this.next(), this.finishNode(s, "ThisTypeAnnotation"); case 55: return this.next(), this.finishNode(s, "ExistsTypeAnnotation"); case 87: return this.flowParseTypeofType(); default: if (H0(this.state.type)) { let u = zs(this.state.type); return this.next(), super.createIdentifier(s, u); } else if (Be(this.state.type)) return this.isContextual(129) ? this.flowParseInterfaceType() : this.flowIdentToTypeAnnotation(r, s, this.parseIdentifier()); } throw this.unexpected(); } flowParsePostfixType() { let r = this.state.startLoc, s = this.flowParsePrimaryType(), n = !1; for (; (this.match(0) || this.match(18)) && !this.canInsertSemicolon(); ) { let a = this.startNodeAt(r), o = this.eat(18); n = n || o, this.expect(0), !o && this.match(3) ? (a.elementType = s, this.next(), s = this.finishNode(a, "ArrayTypeAnnotation")) : (a. objectType = s, a.indexType = this.flowParseType(), this.expect(3), n ? (a.optional = o, s = this.finishNode(a, "OptionalIndexedAcce\ ssType")) : s = this.finishNode(a, "IndexedAccessType")); } return s; } flowParsePrefixType() { let r = this.startNode(); return this.eat(17) ? (r.typeAnnotation = this.flowParsePrefixType(), this.finishNode(r, "NullableTypeAnnotation")) : this.flowParsePostfixType(); } flowParseAnonFunctionWithoutParens() { let r = this.flowParsePrefixType(); if (!this.state.noAnonFunctionType && this.eat(19)) { let s = this.startNodeAt(r.loc.start); return s.params = [this.reinterpretTypeAsFunctionTypeParam(r)], s.rest = null, s.this = null, s.returnType = this.flowParseType(), s. typeParameters = null, this.finishNode(s, "FunctionTypeAnnotation"); } return r; } flowParseIntersectionType() { let r = this.startNode(); this.eat(45); let s = this.flowParseAnonFunctionWithoutParens(); for (r.types = [s]; this.eat(45); ) r.types.push(this.flowParseAnonFunctionWithoutParens()); return r.types.length === 1 ? s : this.finishNode(r, "IntersectionTypeAnnotation"); } flowParseUnionType() { let r = this.startNode(); this.eat(43); let s = this.flowParseIntersectionType(); for (r.types = [s]; this.eat(43); ) r.types.push(this.flowParseIntersectionType()); return r.types.length === 1 ? s : this.finishNode(r, "UnionTypeAnnotation"); } flowParseType() { let r = this.state.inType; this.state.inType = !0; let s = this.flowParseUnionType(); return this.state.inType = r, s; } flowParseTypeOrImplicitInstantiation() { if (this.state.type === 132 && this.state.value === "_") { let r = this.state.startLoc, s = this.parseIdentifier(); return this.flowParseGenericType(r, s); } else return this.flowParseType(); } flowParseTypeAnnotation() { let r = this.startNode(); return r.typeAnnotation = this.flowParseTypeInitialiser(), this.finishNode(r, "TypeAnnotation"); } flowParseTypeAnnotatableIdentifier(r) { let s = r ? this.parseIdentifier() : this.flowParseRestrictedIdentifier(); return this.match(14) && (s.typeAnnotation = this.flowParseTypeAnnotation(), this.resetEndLocation(s)), s; } typeCastToParameter(r) { return r.expression.typeAnnotation = r.typeAnnotation, this.resetEndLocation(r.expression, r.typeAnnotation.loc.end), r.expression; } flowParseVariance() { let r = null; return this.match(53) ? (r = this.startNode(), this.state.value === "+" ? r.kind = "plus" : r.kind = "minus", this.next(), this.finishNode( r, "Variance")) : r; } parseFunctionBody(r, s, n = !1) { if (s) { this.forwardNoArrowParamsConversionAt(r, () => super.parseFunctionBody(r, !0, n)); return; } super.parseFunctionBody(r, !1, n); } parseFunctionBodyAndFinish(r, s, n = !1) { if (this.match(14)) { let a = this.startNode(); [a.typeAnnotation, r.predicate] = this.flowParseTypeAndPredicateInitialiser(), r.returnType = a.typeAnnotation ? this.finishNode(a, "\ TypeAnnotation") : null; } return super.parseFunctionBodyAndFinish(r, s, n); } parseStatementLike(r) { if (this.state.strict && this.isContextual(129)) { let n = this.lookahead(); if (Fr(n.type)) { let a = this.startNode(); return this.next(), this.flowParseInterface(a); } } else if (this.isContextual(126)) { let n = this.startNode(); return this.next(), this.flowParseEnumDeclaration(n); } let s = super.parseStatementLike(r); return this.flowPragma === void 0 && !this.isValidDirective(s) && (this.flowPragma = null), s; } parseExpressionStatement(r, s, n) { if (s.type === "Identifier") { if (s.name === "declare") { if (this.match(80) || Be(this.state.type) || this.match(68) || this.match(74) || this.match(82)) return this.flowParseDeclare(r); } else if (Be(this.state.type)) { if (s.name === "interface") return this.flowParseInterface(r); if (s.name === "type") return this.flowParseTypeAlias(r); if (s.name === "opaque") return this.flowParseOpaqueType(r, !1); } } return super.parseExpressionStatement(r, s, n); } shouldParseExportDeclaration() { let { type: r } = this.state; return r === 126 || sx(r) ? !this.state.containsEsc : super.shouldParseExportDeclaration(); } isExportDefaultSpecifier() { let { type: r } = this.state; return r === 126 || sx(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, s, n) { if (!this.match(17)) return r; if (this.state.maybeInArrowParameters) { let h = this.lookaheadCharCode(); if (h === 44 || h === 61 || h === 58 || h === 41) return this.setOptionalParametersError(n), r; } this.expect(17); let a = this.state.clone(), o = this.state.noArrowAt, l = this.startNodeAt(s), { consequent: u, failed: c } = this.tryParseConditionalConsequent(), [p, f] = this.getArrowLikeExpressions(u); if (c || f.length > 0) { let h = [...o]; if (f.length > 0) { this.state = a, this.state.noArrowAt = h; for (let b = 0; b < f.length; b++) h.push(f[b].start); ({ consequent: u, failed: c } = this.tryParseConditionalConsequent()), [p, f] = this.getArrowLikeExpressions(u); } c && p.length > 1 && this.raise(le.AmbiguousConditionalArrow, a.startLoc), c && p.length === 1 && (this.state = a, h.push(p[0].start), this.state.noArrowAt = h, { consequent: u, failed: c } = this.tryParseConditionalConsequent()); } return this.getArrowLikeExpressions(u, !0), this.state.noArrowAt = o, this.expect(14), l.test = r, l.consequent = u, l.alternate = this. forwardNoArrowParamsConversionAt(l, () => this.parseMaybeAssign(void 0, void 0)), this.finishNode(l, "ConditionalExpression"); } tryParseConditionalConsequent() { this.state.noArrowParamsConversionAt.push(this.state.start); let r = this.parseMaybeAssignAllowIn(), s = !this.match(14); return this.state.noArrowParamsConversionAt.pop(), { consequent: r, failed: s }; } getArrowLikeExpressions(r, s) { let n = [r], a = []; for (; n.length !== 0; ) { let o = n.pop(); o.type === "ArrowFunctionExpression" && o.body.type !== "BlockStatement" ? (o.typeParameters || !o.returnType ? this.finishArrowValidation( o) : a.push(o), n.push(o.body)) : o.type === "ConditionalExpression" && (n.push(o.consequent), n.push(o.alternate)); } return s ? (a.forEach((o) => this.finishArrowValidation(o)), [a, []]) : iH(a, (o) => o.params.every((l) => this.isAssignable(l, !0))); } finishArrowValidation(r) { var s; this.toAssignableList(r.params, (s = r.extra) == null ? void 0 : s.trailingCommaLoc, !1), this.scope.enter(518), super.checkParams(r, !1, !0), this.scope.exit(); } forwardNoArrowParamsConversionAt(r, s) { let n; return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)) ? (this.state.noArrowParamsConversionAt.push(this. state.start), n = s(), this.state.noArrowParamsConversionAt.pop()) : n = s(), n; } parseParenItem(r, s) { let n = super.parseParenItem(r, s); if (this.eat(17) && (n.optional = !0, this.resetEndLocation(r)), this.match(14)) { let a = this.startNodeAt(s); return a.expression = n, a.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(a, "TypeCastExpression"); } return n; } 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 s = this.startNode(); return this.next(), this.match(5) ? (r.specifiers = this.parseExportSpecifiers(!0), super.parseExportFrom(r), null) : this.flowParseTypeAlias( s); } else if (this.isContextual(131)) { r.exportKind = "type"; let s = this.startNode(); return this.next(), this.flowParseOpaqueType(s, !1); } else if (this.isContextual(129)) { r.exportKind = "type"; let s = this.startNode(); return this.next(), this.flowParseInterface(s); } else if (this.isContextual(126)) { r.exportKind = "value"; let s = this.startNode(); return this.next(), this.flowParseEnumDeclaration(s); } else return super.parseExportDeclaration(r); } eatExportStar(r) { 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: s } = this.state, n = super.maybeParseExportNamespaceSpecifier(r); return n && r.exportKind === "type" && this.unexpected(s), n; } parseClassId(r, s, n) { super.parseClassId(r, s, n), this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration()); } parseClassMember(r, s, n) { let { startLoc: a } = this.state; if (this.isContextual(125)) { if (super.parseClassMemberFromModifier(r, s)) return; s.declare = !0; } super.parseClassMember(r, s, n), s.declare && (s.type !== "ClassProperty" && s.type !== "ClassPrivateProperty" && s.type !== "Property\ Definition" ? this.raise(le.DeclareClassElement, a) : s.value && this.raise(le.DeclareClassFieldInitializer, s.value)); } isIterator(r) { return r === "iterator" || r === "asyncIterator"; } readIterator() { let r = super.readWord1(), s = "@@" + r; (!this.isIterator(r) || !this.state.inType) && this.raise(N.InvalidIdentifier, this.state.curPosition(), { identifierName: s }), this.finishToken(132, s); } getTokenFromCode(r) { let s = this.input.charCodeAt(this.state.pos + 1); r === 123 && s === 124 ? this.finishOp(6, 2) : this.state.inType && (r === 62 || r === 60) ? this.finishOp(r === 62 ? 48 : 47, 1) : this. state.inType && r === 63 ? s === 46 ? this.finishOp(18, 2) : this.finishOp(17, 1) : ZY(r, s, this.input.charCodeAt(this.state.pos + 2)) ? (this.state.pos += 2, this.readIterator()) : super.getTokenFromCode(r); } isAssignable(r, s) { return r.type === "TypeCastExpression" ? this.isAssignable(r.expression, s) : super.isAssignable(r, s); } toAssignable(r, s = !1) { !s && r.type === "AssignmentExpression" && r.left.type === "TypeCastExpression" && (r.left = this.typeCastToParameter(r.left)), super. toAssignable(r, s); } toAssignableList(r, s, n) { for (let a = 0; a < r.length; a++) { let o = r[a]; o?.type === "TypeCastExpression" && (r[a] = this.typeCastToParameter(o)); } super.toAssignableList(r, s, n); } toReferencedList(r, s) { for (let a = 0; a < r.length; a++) { var n; let o = r[a]; o && o.type === "TypeCastExpression" && !((n = o.extra) != null && n.parenthesized) && (r.length > 1 || !s) && this.raise(le.TypeCastInPattern, o.typeAnnotation); } return r; } parseArrayLike(r, s, n) { let a = super.parseArrayLike(r, s, n); return n != null && !this.state.maybeInArrowParameters && this.toReferencedList(a.elements), a; } isValidLVal(r, s, n, a) { return r === "TypeCastExpression" || super.isValidLVal(r, s, n, a); } 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, s, n, a, o, l) { if (s.variance && this.unexpected(s.variance.loc.start), delete s.variance, this.match(47) && (s.typeParameters = this.flowParseTypeParameterDeclaration()), super.pushClassMethod(r, s, n, a, o, l), s.params && o) { let u = s.params; u.length > 0 && this.isThisParam(u[0]) && this.raise(le.ThisParamBannedInConstructor, s); } else if (s.type === "MethodDefinition" && o && s.value.params) { let u = s.value.params; u.length > 0 && this.isThisParam(u[0]) && this.raise(le.ThisParamBannedInConstructor, s); } } pushClassPrivateMethod(r, s, n, a) { s.variance && this.unexpected(s.variance.loc.start), delete s.variance, this.match(47) && (s.typeParameters = this.flowParseTypeParameterDeclaration()), super.pushClassPrivateMethod(r, s, n, a); } parseClassSuper(r) { if (super.parseClassSuper(r), r.superClass && (this.match(47) || this.match(51)) && (r.superTypeParameters = this.flowParseTypeParameterInstantiationInExpression()), this.isContextual(113)) { this.next(); let s = r.implements = []; do { let n = this.startNode(); n.id = this.flowParseRestrictedIdentifier(!0), this.match(47) ? n.typeParameters = this.flowParseTypeParameterInstantiation() : n. typeParameters = null, s.push(this.finishNode(n, "ClassImplements")); } while (this.eat(12)); } } checkGetterSetterParams(r) { super.checkGetterSetterParams(r); let s = this.getObjectOrClassMethodParams(r); if (s.length > 0) { let n = s[0]; this.isThisParam(n) && r.kind === "get" ? this.raise(le.GetterMayNotHaveThisParam, n) : this.isThisParam(n) && this.raise(le.SetterMayNotHaveThisParam, n); } } parsePropertyNamePrefixOperator(r) { r.variance = this.flowParseVariance(); } parseObjPropValue(r, s, n, a, o, l, u) { r.variance && this.unexpected(r.variance.loc.start), delete r.variance; let c; this.match(47) && !l && (c = this.flowParseTypeParameterDeclaration(), this.match(10) || this.unexpected()); let p = super.parseObjPropValue(r, s, n, a, o, l, u); return c && ((p.value || p).typeParameters = c), p; } parseFunctionParamType(r) { return this.eat(17) && (r.type !== "Identifier" && this.raise(le.PatternIsOptional, r), this.isThisParam(r) && this.raise(le.ThisParamMayNotBeOptional, r), r.optional = !0), this.match(14) ? r.typeAnnotation = this.flowParseTypeAnnotation() : this.isThisParam(r) && this.raise(le.ThisParamAnnotationRequired, r), this.match(29) && this.isThisParam(r) && this.raise(le.ThisParamNoDefault, r), this.resetEndLocation(r), r; } parseMaybeDefault(r, s) { let n = super.parseMaybeDefault(r, s); return n.type === "AssignmentPattern" && n.typeAnnotation && n.right.start < n.typeAnnotation.start && this.raise(le.TypeBeforeInitializer, n.typeAnnotation), n; } checkImportReflection(r) { super.checkImportReflection(r), r.module && r.importKind !== "value" && this.raise(le.ImportReflectionHasImportType, r.specifiers[0].loc. start); } parseImportSpecifierLocal(r, s, n) { s.local = nx(r) ? this.flowParseRestrictedIdentifier(!0, !0) : this.parseIdentifier(), r.specifiers.push(this.finishImportSpecifier(s, n)); } isPotentialImportPhase(r) { if (super.isPotentialImportPhase(r)) return !0; if (this.isContextual(130)) { if (!r) return !0; let s = this.lookaheadCharCode(); return s === 123 || s === 42; } return !r && this.isContextual(87); } applyImportPhase(r, s, n, a) { if (super.applyImportPhase(r, s, n, a), s) { if (!n && this.match(65)) return; r.exportKind = n === "type" ? n : "value"; } else n === "type" && this.match(55) && this.unexpected(), r.importKind = n === "type" || n === "typeof" ? n : "value"; } parseImportSpecifier(r, s, n, a, o) { let l = r.imported, u = null; l.type === "Identifier" && (l.name === "type" ? u = "type" : l.name === "typeof" && (u = "typeof")); let c = !1; if (this.isContextual(93) && !this.isLookaheadContextual("as")) { let f = this.parseIdentifier(!0); u !== null && !Fr(this.state.type) ? (r.imported = f, r.importKind = u, r.local = this.cloneIdentifier(f)) : (r.imported = l, r.importKind = null, r.local = this.parseIdentifier()); } else { if (u !== null && Fr(this.state.type)) r.imported = this.parseIdentifier(!0), r.importKind = u; else { if (s) throw this.raise(N.ImportBindingIsString, r, { importName: l.value }); r.imported = l, r.importKind = null; } this.eatContextual(93) ? r.local = this.parseIdentifier() : (c = !0, r.local = this.cloneIdentifier(r.imported)); } let p = nx(r); return n && p && this.raise(le.ImportTypeShorthandOnlyInPureImport, r), (n || p) && this.checkReservedType(r.local.name, r.local.loc.start, !0), c && !n && !p && this.checkReservedWord(r.local.name, r.loc.start, !0, !0), this.finishImportSpecifier(r, "ImportSpecifier"); } parseBindingAtom() { switch (this.state.type) { case 78: return this.parseIdentifier(!0); default: return super.parseBindingAtom(); } } parseFunctionParams(r, s) { let n = r.kind; n !== "get" && n !== "set" && this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration()), super.parseFunctionParams( r, s); } parseVarId(r, s) { super.parseVarId(r, s), this.match(14) && (r.id.typeAnnotation = this.flowParseTypeAnnotation(), this.resetEndLocation(r.id)); } parseAsyncArrowFromCallExpression(r, s) { if (this.match(14)) { let n = this.state.noAnonFunctionType; this.state.noAnonFunctionType = !0, r.returnType = this.flowParseTypeAnnotation(), this.state.noAnonFunctionType = n; } return super.parseAsyncArrowFromCallExpression(r, s); } shouldParseAsyncArrow() { return this.match(14) || super.shouldParseAsyncArrow(); } parseMaybeAssign(r, s) { var n; let a = null, o; if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) { if (a = this.state.clone(), o = this.tryParse(() => super.parseMaybeAssign(r, s), a), !o.error) return o.node; let { context: c } = this.state, p = c[c.length - 1]; (p === De.j_oTag || p === De.j_expr) && c.pop(); } if ((n = o) != null && n.error || this.match(47)) { var l, u; a = a || this.state.clone(); let c, p = this.tryParse((h) => { var b; c = this.flowParseTypeParameterDeclaration(); let T = this.forwardNoArrowParamsConversionAt(c, () => { let g = super.parseMaybeAssign(r, s); return this.resetStartLocationFromNode(g, c), g; }); (b = T.extra) != null && b.parenthesized && h(); let d = this.maybeUnwrapTypeCastExpression(T); return d.type !== "ArrowFunctionExpression" && h(), d.typeParameters = c, this.resetStartLocationFromNode(d, c), T; }, a), f = null; if (p.node && this.maybeUnwrapTypeCastExpression(p.node).type === "ArrowFunctionExpression") { if (!p.error && !p.aborted) return p.node.async && this.raise(le.UnexpectedTypeParameterBeforeAsyncArrowFunction, c), p.node; f = p.node; } if ((l = o) != null && l.node) return this.state = o.failState, o.node; if (f) return this.state = p.failState, f; throw (u = o) != null && u.thrown ? o.error : p.thrown ? p.error : this.raise(le.UnexpectedTokenAfterTypeParameter, c); } return super.parseMaybeAssign(r, s); } parseArrow(r) { if (this.match(14)) { let s = this.tryParse(() => { let n = this.state.noAnonFunctionType; this.state.noAnonFunctionType = !0; let a = this.startNode(); return [a.typeAnnotation, r.predicate] = this.flowParseTypeAndPredicateInitialiser(), this.state.noAnonFunctionType = n, this.canInsertSemicolon() && this.unexpected(), this.match(19) || this.unexpected(), a; }); if (s.thrown) return null; s.error && (this.state = s.failState), r.returnType = s.node.typeAnnotation ? this.finishNode(s.node, "TypeAnnotation") : null; } return super.parseArrow(r); } shouldParseArrow(r) { return this.match(14) || super.shouldParseArrow(r); } setArrowFunctionParameters(r, s) { this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)) ? r.params = s : super.setArrowFunctionParameters(r, s); } checkParams(r, s, n, a = !0) { if (!(n && this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))) { for (let o = 0; o < r.params.length; o++) this.isThisParam(r.params[o]) && o > 0 && this.raise(le.ThisParamMustBeFirst, r.params[o]); super.checkParams(r, s, n, a); } } parseParenAndDistinguishExpression(r) { return super.parseParenAndDistinguishExpression(r && !this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start))); } parseSubscripts(r, s, n) { if (r.type === "Identifier" && r.name === "async" && this.state.noArrowAt.includes(s.index)) { this.next(); let a = this.startNodeAt(s); a.callee = r, a.arguments = super.parseCallExpressionArguments(), r = this.finishNode(a, "CallExpression"); } else if (r.type === "Identifier" && r.name === "async" && this.match(47)) { let a = this.state.clone(), o = this.tryParse((u) => this.parseAsyncArrowWithTypeParameters(s) || u(), a); if (!o.error && !o.aborted) return o.node; let l = this.tryParse(() => super.parseSubscripts(r, s, n), a); if (l.node && !l.error) return l.node; if (o.node) return this.state = o.failState, o.node; if (l.node) return this.state = l.failState, l.node; throw o.error || l.error; } return super.parseSubscripts(r, s, n); } parseSubscript(r, s, n, a) { if (this.match(18) && this.isLookaheadToken_lt()) { if (a.optionalChainMember = !0, n) return a.stop = !0, r; this.next(); let o = this.startNodeAt(s); return o.callee = r, o.typeArguments = this.flowParseTypeParameterInstantiationInExpression(), this.expect(10), o.arguments = this.parseCallExpressionArguments(), o.optional = !0, this.finishCallExpression(o, !0); } else if (!n && this.shouldParseTypes() && (this.match(47) || this.match(51))) { let o = this.startNodeAt(s); o.callee = r; let l = this.tryParse(() => (o.typeArguments = this.flowParseTypeParameterInstantiationCallOrNew(), this.expect(10), o.arguments = super. parseCallExpressionArguments(), a.optionalChainMember && (o.optional = !1), this.finishCallExpression(o, a.optionalChainMember))); if (l.node) return l.error && (this.state = l.failState), l.node; } return super.parseSubscript(r, s, n, a); } parseNewCallee(r) { super.parseNewCallee(r); let s = null; this.shouldParseTypes() && this.match(47) && (s = this.tryParse(() => this.flowParseTypeParameterInstantiationCallOrNew()).node), r.typeArguments = s; } parseAsyncArrowWithTypeParameters(r) { let s = this.startNodeAt(r); if (this.parseFunctionParams(s, !1), !!this.parseArrow(s)) return super.parseArrowExpression(s, void 0, !0); } readToken_mult_modulo(r) { let s = this.input.charCodeAt(this.state.pos + 1); if (r === 42 && s === 47 && this.state.hasFlowComment) { this.state.hasFlowComment = !1, this.state.pos += 2, this.nextToken(); return; } super.readToken_mult_modulo(r); } readToken_pipe_amp(r) { let s = this.input.charCodeAt(this.state.pos + 1); if (r === 124 && s === 125) { this.finishOp(9, 2); return; } super.readToken_pipe_amp(r); } parseTopLevel(r, s) { let n = super.parseTopLevel(r, s); return this.state.hasFlowComment && this.raise(le.UnterminatedFlowComment, this.state.curPosition()), n; } skipBlockComment() { if (this.hasPlugin("flowComments") && this.skipFlowComment()) { if (this.state.hasFlowComment) throw this.raise(le.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, s = 2; for (; [32, 9].includes(this.input.charCodeAt(r + s)); ) s++; let n = this.input.charCodeAt(s + r), a = this.input.charCodeAt(s + r + 1); return n === 58 && a === 58 ? s + 2 : this.input.slice(s + r, s + r + 12) === "flow-include" ? s + 12 : n === 58 && a !== 58 ? s : !1; } hasFlowCommentCompletion() { if (this.input.indexOf("*/", this.state.pos) === -1) throw this.raise(N.UnterminatedComment, this.state.curPosition()); } flowEnumErrorBooleanMemberNotInitialized(r, { enumName: s, memberName: n }) { this.raise(le.EnumBooleanMemberNotInitialized, r, { memberName: n, enumName: s }); } flowEnumErrorInvalidMemberInitializer(r, s) { return this.raise(s.explicitType ? s.explicitType === "symbol" ? le.EnumInvalidMemberInitializerSymbolType : le.EnumInvalidMemberInitializerPrimaryType : le.EnumInvalidMemberInitializerUnknownType, r, s); } flowEnumErrorNumberMemberNotInitialized(r, s) { this.raise(le.EnumNumberMemberNotInitialized, r, s); } flowEnumErrorStringMemberInconsistentlyInitialized(r, s) { this.raise(le.EnumStringMemberInconsistentlyInitialized, r, s); } flowEnumMemberInit() { let r = this.state.startLoc, s = /* @__PURE__ */ i(() => this.match(12) || this.match(8), "endOfInit"); switch (this.state.type) { case 135: { let n = this.parseNumericLiteral(this.state.value); return s() ? { type: "number", loc: n.loc.start, value: n } : { type: "invalid", loc: r }; } case 134: { let n = this.parseStringLiteral(this.state.value); return s() ? { type: "string", loc: n.loc.start, value: n } : { type: "invalid", loc: r }; } case 85: case 86: { let n = this.parseBooleanLiteral(this.match(85)); return s() ? { type: "boolean", loc: n.loc.start, value: n } : { type: "invalid", loc: r }; } default: return { type: "invalid", loc: r }; } } flowEnumMemberRaw() { let r = this.state.startLoc, s = this.parseIdentifier(!0), n = this.eat(29) ? this.flowEnumMemberInit() : { type: "none", loc: r }; return { id: s, init: n }; } flowEnumCheckExplicitTypeMismatch(r, s, n) { let { explicitType: a } = s; a !== null && a !== n && this.flowEnumErrorInvalidMemberInitializer(r, s); } flowEnumMembers({ enumName: r, explicitType: s }) { let n = /* @__PURE__ */ new Set(), a = { booleanMembers: [], numberMembers: [], stringMembers: [], defaultedMembers: [] }, o = !1; for (; !this.match(8); ) { if (this.eat(21)) { o = !0; break; } let l = this.startNode(), { id: u, init: c } = this.flowEnumMemberRaw(), p = u.name; if (p === "") continue; /^[a-z]/.test(p) && this.raise(le.EnumInvalidMemberName, u, { memberName: p, suggestion: p[0].toUpperCase() + p.slice(1), enumName: r }), n.has(p) && this.raise(le.EnumDuplicateMemberName, u, { memberName: p, enumName: r }), n.add(p); let f = { enumName: r, explicitType: s, memberName: p }; switch (l.id = u, c.type) { case "boolean": { this.flowEnumCheckExplicitTypeMismatch(c.loc, f, "boolean"), l.init = c.value, a.booleanMembers.push(this.finishNode(l, "EnumBoo\ leanMember")); break; } case "number": { this.flowEnumCheckExplicitTypeMismatch(c.loc, f, "number"), l.init = c.value, a.numberMembers.push(this.finishNode(l, "EnumNumbe\ rMember")); break; } case "string": { this.flowEnumCheckExplicitTypeMismatch(c.loc, f, "string"), l.init = c.value, a.stringMembers.push(this.finishNode(l, "EnumStrin\ gMember")); break; } case "invalid": throw this.flowEnumErrorInvalidMemberInitializer(c.loc, f); case "none": switch (s) { case "boolean": this.flowEnumErrorBooleanMemberNotInitialized(c.loc, f); break; case "number": this.flowEnumErrorNumberMemberNotInitialized(c.loc, f); break; default: a.defaultedMembers.push(this.finishNode(l, "EnumDefaultedMember")); } } this.match(8) || this.expect(12); } return { members: a, hasUnknownMembers: o }; } flowEnumStringMembers(r, s, { enumName: n }) { if (r.length === 0) return s; if (s.length === 0) return r; if (s.length > r.length) { for (let a of r) this.flowEnumErrorStringMemberInconsistentlyInitialized(a, { enumName: n }); return s; } else { for (let a of s) this.flowEnumErrorStringMemberInconsistentlyInitialized(a, { enumName: n }); return r; } } flowEnumParseExplicitType({ enumName: r }) { if (!this.eatContextual(102)) return null; if (!Be(this.state.type)) throw this.raise(le.EnumInvalidExplicitTypeUnknownSupplied, this.state.startLoc, { enumName: r }); let { value: s } = this.state; return this.next(), s !== "boolean" && s !== "number" && s !== "string" && s !== "symbol" && this.raise(le.EnumInvalidExplicitType, this. state.startLoc, { enumName: r, invalidEnumType: s }), s; } flowEnumBody(r, s) { let n = s.name, a = s.loc.start, o = this.flowEnumParseExplicitType({ enumName: n }); this.expect(5); let { members: l, hasUnknownMembers: u } = this.flowEnumMembers({ enumName: n, explicitType: o }); switch (r.hasUnknownMembers = u, o) { case "boolean": return r.explicitType = !0, r.members = l.booleanMembers, this.expect(8), this.finishNode(r, "EnumBooleanBody"); case "number": return r.explicitType = !0, r.members = l.numberMembers, this.expect(8), this.finishNode(r, "EnumNumberBody"); case "string": return r.explicitType = !0, r.members = this.flowEnumStringMembers(l.stringMembers, l.defaultedMembers, { enumName: n }), this.expect(8), this.finishNode(r, "EnumStringBody"); case "symbol": return r.members = l.defaultedMembers, this.expect(8), this.finishNode(r, "EnumSymbolBody"); default: { let c = /* @__PURE__ */ i(() => (r.members = [], this.expect(8), this.finishNode(r, "EnumStringBody")), "empty"); r.explicitType = !1; let p = l.booleanMembers.length, f = l.numberMembers.length, h = l.stringMembers.length, b = l.defaultedMembers.length; if (!p && !f && !h && !b) return c(); if (!p && !f) return r.members = this.flowEnumStringMembers(l.stringMembers, l.defaultedMembers, { enumName: n }), this.expect(8), this.finishNode(r, "EnumStringBody"); if (!f && !h && p >= b) { for (let T of l.defaultedMembers) this.flowEnumErrorBooleanMemberNotInitialized(T.loc.start, { enumName: n, memberName: T.id.name }); return r.members = l.booleanMembers, this.expect(8), this.finishNode(r, "EnumBooleanBody"); } else if (!p && !h && f >= b) { for (let T of l.defaultedMembers) this.flowEnumErrorNumberMemberNotInitialized(T.loc.start, { enumName: n, memberName: T.id.name }); return r.members = l.numberMembers, this.expect(8), this.finishNode(r, "EnumNumberBody"); } else return this.raise(le.EnumInconsistentMemberValues, a, { enumName: n }), c(); } } } flowParseEnumDeclaration(r) { let s = this.parseIdentifier(); return r.id = s, r.body = this.flowEnumBody(this.startNode(), s), 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 s = this.input.charCodeAt(r + 1); return s !== 60 && s !== 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; } }, "flow"), lH = { __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" }, uH = /\r\n|[\r\n\u2028\u2029]/, ql = new RegExp(uH.source, "g"); function Ai(e) { switch (e) { case 10: case 13: case 8232: case 8233: return !0; default: return !1; } } i(Ai, "isNewLine"); function ix(e, t, r) { for (let s = t; s < r; s++) if (Ai(e.charCodeAt(s))) return !0; return !1; } i(ix, "hasNewLine"); var m0 = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, y0 = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g; function cH(e) { switch (e) { case 9: case 11: case 12: case 32: case 160: case 5760: case 8192: case 8193: case 8194: case 8195: case 8196: case 8197: case 8198: case 8199: case 8200: case 8201: case 8202: case 8239: case 8287: case 12288: case 65279: return !0; default: return !1; } } i(cH, "isWhitespace"); var _n = ss`jsx`({ AttributeIsEmpty: "JSX attributes must only be assigned a non-empty expression.", MissingClosingTagElement: /* @__PURE__ */ i(({ openingTagName: e }) => `Expected corresponding JSX closing tag for <${e}>.`, "MissingClosingTagElement"), 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: /* @__PURE__ */ i(({ unexpected: e, HTMLEntity: t }) => `Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`, "UnexpectedToken"), 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 Gs(e) { return e ? e.type === "JSXOpeningFragment" || e.type === "JSXClosingFragment" : !1; } i(Gs, "isFragment"); function Pi(e) { if (e.type === "JSXIdentifier") return e.name; if (e.type === "JSXNamespacedName") return e.namespace.name + ":" + e.name.name; if (e.type === "JSXMemberExpression") return Pi(e.object) + "." + Pi(e.property); throw new Error("Node had unexpected type: " + e.type); } i(Pi, "getQualifiedJSXName"); var pH = /* @__PURE__ */ i((e) => class extends e { static { i(this, "JSXParserMixin"); } jsxReadToken() { let r = "", s = this.state.pos; for (; ; ) { if (this.state.pos >= this.length) throw this.raise(_n.UnterminatedJsxContent, this.state.startLoc); let n = this.input.charCodeAt(this.state.pos); switch (n) { case 60: case 123: if (this.state.pos === this.state.start) { n === 60 && this.state.canStartJSXElement ? (++this.state.pos, this.finishToken(143)) : super.getTokenFromCode(n); return; } r += this.input.slice(s, this.state.pos), this.finishToken(142, r); return; case 38: r += this.input.slice(s, this.state.pos), r += this.jsxReadEntity(), s = this.state.pos; break; case 62: case 125: default: Ai(n) ? (r += this.input.slice(s, this.state.pos), r += this.jsxReadNewLine(!0), s = this.state.pos) : ++this.state.pos; } } } jsxReadNewLine(r) { let s = this.input.charCodeAt(this.state.pos), n; return ++this.state.pos, s === 13 && this.input.charCodeAt(this.state.pos) === 10 ? (++this.state.pos, n = r ? ` ` : `\r `) : n = String.fromCharCode(s), ++this.state.curLine, this.state.lineStart = this.state.pos, n; } jsxReadString(r) { let s = "", n = ++this.state.pos; for (; ; ) { if (this.state.pos >= this.length) throw this.raise(N.UnterminatedString, this.state.startLoc); let a = this.input.charCodeAt(this.state.pos); if (a === r) break; a === 38 ? (s += this.input.slice(n, this.state.pos), s += this.jsxReadEntity(), n = this.state.pos) : Ai(a) ? (s += this.input.slice( n, this.state.pos), s += this.jsxReadNewLine(!1), n = this.state.pos) : ++this.state.pos; } s += this.input.slice(n, this.state.pos++), this.finishToken(134, s); } jsxReadEntity() { let r = ++this.state.pos; if (this.codePointAtPos(this.state.pos) === 35) { ++this.state.pos; let s = 10; this.codePointAtPos(this.state.pos) === 120 && (s = 16, ++this.state.pos); let n = this.readInt(s, void 0, !1, "bail"); if (n !== null && this.codePointAtPos(this.state.pos) === 59) return ++this.state.pos, String.fromCodePoint(n); } else { let s = 0, n = !1; for (; s++ < 10 && this.state.pos < this.length && !(n = this.codePointAtPos(this.state.pos) === 59); ) ++this.state.pos; if (n) { let a = this.input.slice(r, this.state.pos), o = lH[a]; if (++this.state.pos, o) return o; } } return this.state.pos = r, "&"; } jsxReadWord() { let r, s = this.state.pos; do r = this.input.charCodeAt(++this.state.pos); while (On(r) || r === 45); this.finishToken(141, this.input.slice(s, this.state.pos)); } jsxParseIdentifier() { let r = this.startNode(); return this.match(141) ? r.name = this.state.value : H0(this.state.type) ? r.name = zs(this.state.type) : this.unexpected(), this.next(), this.finishNode(r, "JSXIdentifier"); } jsxParseNamespacedName() { let r = this.state.startLoc, s = this.jsxParseIdentifier(); if (!this.eat(14)) return s; let n = this.startNodeAt(r); return n.namespace = s, n.name = this.jsxParseIdentifier(), this.finishNode(n, "JSXNamespacedName"); } jsxParseElementName() { let r = this.state.startLoc, s = this.jsxParseNamespacedName(); if (s.type === "JSXNamespacedName") return s; for (; this.eat(16); ) { let n = this.startNodeAt(r); n.object = s, n.property = this.jsxParseIdentifier(), s = this.finishNode(n, "JSXMemberExpression"); } return s; } jsxParseAttributeValue() { let r; switch (this.state.type) { case 5: return r = this.startNode(), this.setContext(De.brace), this.next(), r = this.jsxParseExpressionContainer(r, De.j_oTag), r.expression. type === "JSXEmptyExpression" && this.raise(_n.AttributeIsEmpty, r), r; case 143: case 134: return this.parseExprAtom(); default: throw this.raise(_n.UnsupportedJsxValue, this.state.startLoc); } } jsxParseEmptyExpression() { let r = this.startNodeAt(this.state.lastTokEndLoc); return this.finishNodeAt(r, "JSXEmptyExpression", this.state.startLoc); } jsxParseSpreadChild(r) { return this.next(), r.expression = this.parseExpression(), this.setContext(De.j_expr), this.state.canStartJSXElement = !0, this.expect( 8), this.finishNode(r, "JSXSpreadChild"); } jsxParseExpressionContainer(r, s) { if (this.match(8)) r.expression = this.jsxParseEmptyExpression(); else { let n = this.parseExpression(); r.expression = n; } return this.setContext(s), this.state.canStartJSXElement = !0, this.expect(8), this.finishNode(r, "JSXExpressionContainer"); } jsxParseAttribute() { let r = this.startNode(); return this.match(5) ? (this.setContext(De.brace), this.next(), this.expect(21), r.argument = this.parseMaybeAssignAllowIn(), this.setContext( De.j_oTag), this.state.canStartJSXElement = !0, this.expect(8), this.finishNode(r, "JSXSpreadAttribute")) : (r.name = this.jsxParseNamespacedName(), r.value = this.eat(29) ? this.jsxParseAttributeValue() : null, this.finishNode(r, "JSXAttribute")); } jsxParseOpeningElementAt(r) { let s = this.startNodeAt(r); return this.eat(144) ? this.finishNode(s, "JSXOpeningFragment") : (s.name = this.jsxParseElementName(), this.jsxParseOpeningElementAfterName( s)); } jsxParseOpeningElementAfterName(r) { let s = []; for (; !this.match(56) && !this.match(144); ) s.push(this.jsxParseAttribute()); return r.attributes = s, r.selfClosing = this.eat(56), this.expect(144), this.finishNode(r, "JSXOpeningElement"); } jsxParseClosingElementAt(r) { let s = this.startNodeAt(r); return this.eat(144) ? this.finishNode(s, "JSXClosingFragment") : (s.name = this.jsxParseElementName(), this.expect(144), this.finishNode( s, "JSXClosingElement")); } jsxParseElementAt(r) { let s = this.startNodeAt(r), n = [], a = this.jsxParseOpeningElementAt(r), o = null; if (!a.selfClosing) { e: for (; ; ) switch (this.state.type) { case 143: if (r = this.state.startLoc, this.next(), this.eat(56)) { o = this.jsxParseClosingElementAt(r); break e; } n.push(this.jsxParseElementAt(r)); break; case 142: n.push(this.parseLiteral(this.state.value, "JSXText")); break; case 5: { let l = this.startNode(); this.setContext(De.brace), this.next(), this.match(21) ? n.push(this.jsxParseSpreadChild(l)) : n.push(this.jsxParseExpressionContainer( l, De.j_expr)); break; } default: this.unexpected(); } Gs(a) && !Gs(o) && o !== null ? this.raise(_n.MissingClosingTagFragment, o) : !Gs(a) && Gs(o) ? this.raise(_n.MissingClosingTagElement, o, { openingTagName: Pi(a.name) }) : !Gs(a) && !Gs(o) && Pi(o.name) !== Pi(a.name) && this.raise(_n.MissingClosingTagElement, o, { openingTagName: Pi(a.name) }); } if (Gs(a) ? (s.openingFragment = a, s.closingFragment = o) : (s.openingElement = a, s.closingElement = o), s.children = n, this.match( 47)) throw this.raise(_n.UnwrappedAdjacentJSXElements, this.state.startLoc); return Gs(a) ? this.finishNode(s, "JSXFragment") : this.finishNode(s, "JSXElement"); } jsxParseElement() { let r = this.state.startLoc; return this.next(), this.jsxParseElementAt(r); } setContext(r) { let { context: s } = this.state; s[s.length - 1] = r; } parseExprAtom(r) { return this.match(143) ? this.jsxParseElement() : this.match(47) && this.input.charCodeAt(this.state.pos) !== 33 ? (this.replaceToken( 143), this.jsxParseElement()) : super.parseExprAtom(r); } skipSpace() { this.curContext().preserveSpace || super.skipSpace(); } getTokenFromCode(r) { let s = this.curContext(); if (s === De.j_expr) { this.jsxReadToken(); return; } if (s === De.j_oTag || s === De.j_cTag) { if (ns(r)) { this.jsxReadWord(); return; } if (r === 62) { ++this.state.pos, this.finishToken(144); return; } if ((r === 34 || r === 39) && s === De.j_oTag) { this.jsxReadString(r); return; } } if (r === 60 && this.state.canStartJSXElement && this.input.charCodeAt(this.state.pos + 1) !== 33) { ++this.state.pos, this.finishToken(143); return; } super.getTokenFromCode(r); } updateContext(r) { let { context: s, type: n } = this.state; if (n === 56 && r === 143) s.splice(-2, 2, De.j_cTag), this.state.canStartJSXElement = !1; else if (n === 143) s.push(De.j_oTag); else if (n === 144) { let a = s[s.length - 1]; a === De.j_oTag && r === 56 || a === De.j_cTag ? (s.pop(), this.state.canStartJSXElement = s[s.length - 1] === De.j_expr) : (this.setContext( De.j_expr), this.state.canStartJSXElement = !0); } else this.state.canStartJSXElement = jY(n); } }, "jsx"), v0 = class extends Ha { static { i(this, "TypeScriptScope"); } constructor(...t) { super(...t), this.tsNames = /* @__PURE__ */ new Map(); } }, P0 = class extends Ja { static { i(this, "TypeScriptScopeHandler"); } constructor(...t) { super(...t), this.importsStack = []; } createScope(t) { return this.importsStack.push(/* @__PURE__ */ new Set()), new v0(t); } enter(t) { t === 1024 && this.importsStack.push(/* @__PURE__ */ new Set()), super.enter(t); } exit() { let t = super.exit(); return t === 1024 && this.importsStack.pop(), t; } hasImport(t, r) { let s = this.importsStack.length; if (this.importsStack[s - 1].has(t)) return !0; if (!r && s > 1) { for (let n = 0; n < s - 1; n++) if (this.importsStack[n].has(t)) return !0; } return !1; } declareName(t, r, s) { if (r & 4096) { this.hasImport(t, !0) && this.parser.raise(N.VarRedeclaration, s, { identifierName: t }), this.importsStack[this.importsStack.length - 1].add(t); return; } let n = this.currentScope(), a = n.tsNames.get(t) || 0; if (r & 1024) { this.maybeExportDefined(n, t), n.tsNames.set(t, a | 16); return; } super.declareName(t, r, s), r & 2 && (r & 1 || (this.checkRedeclarationInScope(n, t, r, s), this.maybeExportDefined(n, t)), a = a | 1), r & 256 && (a = a | 2), r & 512 && (a = a | 4), r & 128 && (a = a | 8), a && n.tsNames.set(t, a); } isRedeclaredInScope(t, r, s) { let n = t.tsNames.get(r); if ((n & 2) > 0) { if (s & 256) { let a = !!(s & 512), o = (n & 4) > 0; return a !== o; } return !0; } return s & 128 && (n & 8) > 0 ? t.names.get(r) & 2 ? !!(s & 1) : !1 : s & 2 && (n & 1) > 0 ? !0 : super.isRedeclaredInScope(t, r, s); } checkLocalExport(t) { let { name: r } = t; if (this.hasImport(r)) return; let s = this.scopeStack.length; for (let n = s - 1; n >= 0; n--) { let o = this.scopeStack[n].tsNames.get(r); if ((o & 1) > 0 || (o & 16) > 0) return; } super.checkLocalExport(t); } }, A0 = class { static { i(this, "ProductionParameterHandler"); } 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 Kl(e, t) { return (e ? 2 : 0) | (t ? 1 : 0); } i(Kl, "functionFlags"); var C0 = class { static { i(this, "BaseParser"); } 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, s] = t; if (!this.hasPlugin(r)) return !1; let n = this.plugins.get(r); for (let a of Object.keys(s)) if (n?.[a] !== s[a]) return !1; return !0; } } getPluginOption(t, r) { var s; return (s = this.plugins.get(t)) == null ? void 0 : s[r]; } }; function Ex(e, t) { e.trailingComments === void 0 ? e.trailingComments = t : e.trailingComments.unshift(...t); } i(Ex, "setTrailingComments"); function fH(e, t) { e.leadingComments === void 0 ? e.leadingComments = t : e.leadingComments.unshift(...t); } i(fH, "setLeadingComments"); function Ga(e, t) { e.innerComments === void 0 ? e.innerComments = t : e.innerComments.unshift(...t); } i(Ga, "setInnerComments"); function Xs(e, t, r) { let s = null, n = t.length; for (; s === null && n > 0; ) s = t[--n]; s === null || s.start > r.start ? Ga(e, r.comments) : Ex(s, r.comments); } i(Xs, "adjustInnerComments"); var w0 = class extends C0 { static { i(this, "CommentsParser"); } 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, s = r.length; if (s === 0) return; let n = s - 1, a = r[n]; a.start === t.end && (a.leadingNode = t, n--); let { start: o } = t; for (; n >= 0; n--) { let l = r[n], u = l.end; if (u > o) l.containingNode = t, this.finalizeComment(l), r.splice(n, 1); else { u === o && (l.trailingNode = t); break; } } } finalizeComment(t) { var r; let { comments: s } = t; if (t.leadingNode !== null || t.trailingNode !== null) t.leadingNode !== null && Ex(t.leadingNode, s), t.trailingNode !== null && fH(t.trailingNode, s); else { let n = t.containingNode, a = t.start; if (this.input.charCodeAt(this.offsetToSourcePos(a) - 1) === 44) switch (n.type) { case "ObjectExpression": case "ObjectPattern": case "RecordExpression": Xs(n, n.properties, t); break; case "CallExpression": case "OptionalCallExpression": Xs(n, n.arguments, t); break; case "ImportExpression": Xs(n, [n.source, (r = n.options) != null ? r : null], t); break; case "FunctionDeclaration": case "FunctionExpression": case "ArrowFunctionExpression": case "ObjectMethod": case "ClassMethod": case "ClassPrivateMethod": Xs(n, n.params, t); break; case "ArrayExpression": case "ArrayPattern": case "TupleExpression": Xs(n, n.elements, t); break; case "ExportNamedDeclaration": case "ImportDeclaration": Xs(n, n.specifiers, t); break; case "TSEnumDeclaration": Xs(n, n.members, t); break; case "TSEnumBody": Xs(n, n.members, t); break; default: Ga(n, s); } else Ga(n, s); } } 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: s } = r; if (s === 0) return; let n = r[s - 1]; n.leadingNode === t && (n.leadingNode = null); } takeSurroundingComments(t, r, s) { let { commentStack: n } = this.state, a = n.length; if (a === 0) return; let o = a - 1; for (; o >= 0; o--) { let l = n[o], u = l.end; if (l.start === s) l.leadingNode = t; else if (u === r) l.trailingNode = t; else if (u < r) break; } } }, D0 = class e { static { i(this, "State"); } constructor() { this.flags = 1024, this.startIndex = void 0, this.curLine = void 0, this.lineStart = void 0, this.startLoc = void 0, this.endLoc = void 0, this.errors = [], this.potentialArrowAt = -1, this.noArrowAt = [], this.noArrowParamsConversionAt = [], this.topicContext = { maxNumOfResolvableTopics: 0, maxTopicIndex: null }, this.labels = [], this.commentsLen = 0, this.commentStack = [], this.pos = 0, this.type = 140, this.value = null, this.start = 0, this. end = 0, this.lastTokEndLoc = null, this.lastTokStartLoc = null, this.context = [De.brace], this.firstInvalidTemplateEscapePos = null, this.strictErrors = /* @__PURE__ */ new Map(), this.tokensLength = 0; } get strict() { return (this.flags & 1) > 0; } set strict(t) { t ? this.flags |= 1 : this.flags &= -2; } init({ strictMode: t, sourceType: r, startIndex: s, startLine: n, startColumn: a }) { this.strict = t === !1 ? !1 : t === !0 ? !0 : r === "module", this.startIndex = s, this.curLine = n, this.lineStart = -a, this.startLoc = this.endLoc = new is(n, a, s); } 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 is(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; } }, dH = /* @__PURE__ */ i(function(t) { return t >= 48 && t <= 57; }, "isDigit"), ax = { decBinOct: /* @__PURE__ */ new Set([46, 66, 69, 79, 95, 98, 101, 111]), hex: /* @__PURE__ */ new Set([46, 88, 95, 120]) }, Ul = { bin: /* @__PURE__ */ i((e) => e === 48 || e === 49, "bin"), oct: /* @__PURE__ */ i((e) => e >= 48 && e <= 55, "oct"), dec: /* @__PURE__ */ i((e) => e >= 48 && e <= 57, "dec"), hex: /* @__PURE__ */ i((e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, "hex") }; function ox(e, t, r, s, n, a) { let o = r, l = s, u = n, c = "", p = null, f = r, { length: h } = t; for (; ; ) { if (r >= h) { a.unterminated(o, l, u), c += t.slice(f, r); break; } let b = t.charCodeAt(r); if (hH(e, b, t, r)) { c += t.slice(f, r); break; } if (b === 92) { c += t.slice(f, r); let T = mH(t, r, s, n, e === "template", a); T.ch === null && !p ? p = { pos: r, lineStart: s, curLine: n } : c += T.ch, { pos: r, lineStart: s, curLine: n } = T, f = r; } else b === 8232 || b === 8233 ? (++r, ++n, s = r) : b === 10 || b === 13 ? e === "template" ? (c += t.slice(f, r) + ` `, ++r, b === 13 && t.charCodeAt(r) === 10 && ++r, ++n, f = s = r) : a.unterminated(o, l, u) : ++r; } return { pos: r, str: c, firstInvalidLoc: p, lineStart: s, curLine: n, containsInvalid: !!p }; } i(ox, "readStringContents"); function hH(e, t, r, s) { return e === "template" ? t === 96 || t === 36 && r.charCodeAt(s + 1) === 123 : t === (e === "double" ? 34 : 39); } i(hH, "isStringEnd"); function mH(e, t, r, s, n, a) { let o = !n; t++; let l = /* @__PURE__ */ i((c) => ({ pos: t, ch: c, lineStart: r, curLine: s }), "res"), u = e.charCodeAt(t++); switch (u) { case 110: return l(` `); case 114: return l("\r"); case 120: { let c; return { code: c, pos: t } = _0(e, t, r, s, 2, !1, o, a), l(c === null ? null : String.fromCharCode(c)); } case 117: { let c; return { code: c, pos: t } = vx(e, t, r, s, o, a), l(c === null ? null : String.fromCodePoint(c)); } case 116: return l(" "); case 98: return l("\b"); case 118: return l("\v"); case 102: return l("\f"); case 13: e.charCodeAt(t) === 10 && ++t; case 10: r = t, ++s; case 8232: case 8233: return l(""); case 56: case 57: if (n) return l(null); a.strictNumericEscape(t - 1, r, s); default: if (u >= 48 && u <= 55) { let c = t - 1, f = /^[0-7]+/.exec(e.slice(c, t + 2))[0], h = parseInt(f, 8); h > 255 && (f = f.slice(0, -1), h = parseInt(f, 8)), t += f.length - 1; let b = e.charCodeAt(t); if (f !== "0" || b === 56 || b === 57) { if (n) return l(null); a.strictNumericEscape(c, r, s); } return l(String.fromCharCode(h)); } return l(String.fromCharCode(u)); } } i(mH, "readEscapedChar"); function _0(e, t, r, s, n, a, o, l) { let u = t, c; return { n: c, pos: t } = Sx(e, t, r, s, 16, n, a, !1, l, !o), c === null && (o ? l.invalidEscapeSequence(u, r, s) : t = u - 1), { code: c, pos: t }; } i(_0, "readHexChar"); function Sx(e, t, r, s, n, a, o, l, u, c) { let p = t, f = n === 16 ? ax.hex : ax.decBinOct, h = n === 16 ? Ul.hex : n === 10 ? Ul.dec : n === 8 ? Ul.oct : Ul.bin, b = !1, T = 0; for (let d = 0, g = a ?? 1 / 0; d < g; ++d) { let D = e.charCodeAt(t), _; if (D === 95 && l !== "bail") { let O = e.charCodeAt(t - 1), k = e.charCodeAt(t + 1); if (l) { if (Number.isNaN(k) || !h(k) || f.has(O) || f.has(k)) { if (c) return { n: null, pos: t }; u.unexpectedNumericSeparator(t, r, s); } } else { if (c) return { n: null, pos: t }; u.numericSeparatorInEscapeSequence(t, r, s); } ++t; continue; } if (D >= 97 ? _ = D - 97 + 10 : D >= 65 ? _ = D - 65 + 10 : dH(D) ? _ = D - 48 : _ = 1 / 0, _ >= n) { if (_ <= 9 && c) return { n: null, pos: t }; if (_ <= 9 && u.invalidDigit(t, r, s, n)) _ = 0; else if (o) _ = 0, b = !0; else break; } ++t, T = T * n + _; } return t === p || a != null && t - p !== a || b ? { n: null, pos: t } : { n: T, pos: t }; } i(Sx, "readInt"); function vx(e, t, r, s, n, a) { let o = e.charCodeAt(t), l; if (o === 123) { if (++t, { code: l, pos: t } = _0(e, t, r, s, e.indexOf("}", t) - t, !0, n, a), ++t, l !== null && l > 1114111) if (n) a.invalidCodePoint(t, r, s); else return { code: null, pos: t }; } else ({ code: l, pos: t } = _0(e, t, r, s, 4, !1, n, a)); return { code: l, pos: t }; } i(vx, "readCodePoint"); function Va(e, t, r) { return new is(r, e - t, e); } i(Va, "buildPosition"); var yH = /* @__PURE__ */ new Set([103, 109, 115, 105, 121, 117, 100, 118]), rs = class { static { i(this, "Token"); } 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 wi(t.startLoc, t.endLoc); } }, I0 = class extends w0 { static { i(this, "Tokenizer"); } constructor(t, r) { super(), this.isLookahead = void 0, this.tokens = [], this.errorHandlers_readInt = { invalidDigit: /* @__PURE__ */ i((s, n, a, o) => this.optionFlags & 2048 ? (this.raise(N.InvalidDigit, Va(s, n, a), { radix: o }), !0) : !1, "invalidDigit"), numericSeparatorInEscapeSequence: this.errorBuilder(N.NumericSeparatorInEscapeSequence), unexpectedNumericSeparator: this.errorBuilder(N.UnexpectedNumericSeparator) }, this.errorHandlers_readCodePoint = Object.assign({}, this.errorHandlers_readInt, { invalidEscapeSequence: this.errorBuilder(N.InvalidEscapeSequence), invalidCodePoint: this.errorBuilder(N.InvalidCodePoint) }), this.errorHandlers_readStringContents_string = Object.assign({}, this.errorHandlers_readCodePoint, { strictNumericEscape: /* @__PURE__ */ i((s, n, a) => { this.recordStrictModeErrors(N.StrictNumericEscape, Va(s, n, a)); }, "strictNumericEscape"), unterminated: /* @__PURE__ */ i((s, n, a) => { throw this.raise(N.UnterminatedString, Va(s - 1, n, a)); }, "unterminated") }), this.errorHandlers_readStringContents_template = Object.assign({}, this.errorHandlers_readCodePoint, { strictNumericEscape: this.errorBuilder(N.StrictNumericEscape), unterminated: /* @__PURE__ */ i((s, n, a) => { throw this.raise(N.UnterminatedTemplate, Va(s, n, a)); }, "unterminated") }), this.state = new D0(), 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 rs(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 m0.lastIndex = t, m0.test(this.input) ? m0.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 y0.lastIndex = t, y0.test(this.input) ? y0.lastIndex : t; } lookaheadInLineCharCode() { return this.input.charCodeAt(this.nextTokenInLineStart()); } codePointAtPos(t) { let r = this.input.charCodeAt(t); if ((r & 64512) === 55296 && ++t < this.input.length) { let s = this.input.charCodeAt(t); (s & 64512) === 56320 && (r = 65536 + ((r & 1023) << 10) + (s & 1023)); } return r; } setStrict(t) { this.state.strict = t, t && (this.state.strictErrors.forEach(([r, s]) => this.raise(r, s)), 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 s = this.state.pos, n = this.input.indexOf(t, s + 2); if (n === -1) throw this.raise(N.UnterminatedComment, this.state.curPosition()); for (this.state.pos = n + t.length, ql.lastIndex = s + 2; ql.test(this.input) && ql.lastIndex <= n; ) ++this.state.curLine, this.state.lineStart = ql.lastIndex; if (this.isLookahead) return; let a = { type: "CommentBlock", value: this.input.slice(s + 2, n), start: this.sourceToOffsetPos(s), end: this.sourceToOffsetPos(n + t.length), loc: new wi(r, this.state.curPosition()) }; return this.optionFlags & 256 && this.pushToken(a), a; } skipLineComment(t) { let r = this.state.pos, s; this.isLookahead || (s = this.state.curPosition()); let n = this.input.charCodeAt(this.state.pos += t); if (this.state.pos < this.length) for (; !Ai(n) && ++this.state.pos < this.length; ) n = this.input.charCodeAt(this.state.pos); if (this.isLookahead) return; let a = this.state.pos, l = { type: "CommentLine", value: this.input.slice(r + t, a), start: this.sourceToOffsetPos(r), end: this.sourceToOffsetPos(a), loc: new wi(s, this.state.curPosition()) }; return this.optionFlags & 256 && this.pushToken(l), l; } skipSpace() { let t = this.state.pos, r = this.optionFlags & 4096 ? [] : null; e: for (; this.state.pos < this.length; ) { let s = this.input.charCodeAt(this.state.pos); switch (s) { case 32: case 160: case 9: ++this.state.pos; break; case 13: this.input.charCodeAt(this.state.pos + 1) === 10 && ++this.state.pos; case 10: case 8232: case 8233: ++this.state.pos, ++this.state.curLine, this.state.lineStart = this.state.pos; break; case 47: switch (this.input.charCodeAt(this.state.pos + 1)) { case 42: { let n = this.skipBlockComment("*/"); n !== void 0 && (this.addComment(n), r?.push(n)); break; } case 47: { let n = this.skipLineComment(2); n !== void 0 && (this.addComment(n), r?.push(n)); break; } default: break e; } break; default: if (cH(s)) ++this.state.pos; else if (s === 45 && !this.inModule && this.optionFlags & 8192) { let n = this.state.pos; if (this.input.charCodeAt(n + 1) === 45 && this.input.charCodeAt(n + 2) === 62 && (t === 0 || this.state.lineStart > t)) { let a = this.skipLineComment(3); a !== void 0 && (this.addComment(a), r?.push(a)); } else break e; } else if (s === 60 && !this.inModule && this.optionFlags & 8192) { let n = this.state.pos; if (this.input.charCodeAt(n + 1) === 33 && this.input.charCodeAt(n + 2) === 45 && this.input.charCodeAt(n + 3) === 45) { let a = this.skipLineComment(4); a !== void 0 && (this.addComment(a), r?.push(a)); } else break e; } else break e; } } if (r?.length > 0) { let s = this.state.pos, n = { start: this.sourceToOffsetPos(t), end: this.sourceToOffsetPos(s), comments: r, leadingNode: null, trailingNode: null, containingNode: null }; this.state.commentStack.push(n); } } finishToken(t, r) { this.state.end = this.state.pos, this.state.endLoc = this.state.curPosition(); let s = this.state.type; this.state.type = t, this.state.value = r, this.isLookahead || this.updateContext(s); } 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(N.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 ? N.RecordExpressionHashIncorrectStartSyntaxType : N.TupleExpressionHashIncorrectStartSyntaxType, this. state.curPosition()); this.state.pos += 2, r === 123 ? this.finishToken(7) : this.finishToken(1); } else ns(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; !Ai(t) && ++this.state.pos < this.length; ) t = this.input.charCodeAt(this.state.pos); let s = this.input.slice(r + 2, this.state.pos); return this.finishToken(28, s), !0; } readToken_mult_modulo(t) { let r = t === 42 ? 55 : 54, s = 1, n = this.input.charCodeAt(this.state.pos + 1); t === 42 && n === 42 && (s++, n = this.input.charCodeAt(this.state.pos + 2), r = 57), n === 61 && !this.state.inType && (s++, r = t === 37 ? 33 : 30), this.finishOp(r, s); } readToken_pipe_amp(t) { let r = this.input.charCodeAt(this.state.pos + 1); if (r === t) { this.input.charCodeAt(this.state.pos + 2) === 61 ? this.finishOp(30, 3) : this.finishOp(t === 124 ? 41 : 42, 2); return; } if (t === 124) { if (r === 62) { this.finishOp(39, 2); return; } if (this.hasPlugin("recordAndTuple") && r === 125) { if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") throw this.raise(N.RecordExpressionBarIncorrectEndSyntaxType, this.state.curPosition()); this.state.pos += 2, this.finishToken(9); return; } if (this.hasPlugin("recordAndTuple") && r === 93) { if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") throw this.raise(N.TupleExpressionBarIncorrectEndSyntaxType, this.state.curPosition()); this.state.pos += 2, this.finishToken(4); return; } } if (r === 61) { this.finishOp(30, 2); return; } this.finishOp(t === 124 ? 43 : 45, 1); } readToken_caret() { let t = this.input.charCodeAt(this.state.pos + 1); t === 61 && !this.state.inType ? this.finishOp(32, 2) : t === 94 && this.hasPlugin(["pipelineOperator", { proposal: "hack", topicToken: "^^" }]) ? (this.finishOp(37, 2), this.input.codePointAt(this.state.pos) === 94 && this.unexpected()) : this.finishOp(44, 1); } readToken_atSign() { this.input.charCodeAt(this.state.pos + 1) === 64 && this.hasPlugin(["pipelineOperator", { proposal: "hack", topicToken: "@@" }]) ? this.finishOp(38, 2) : this.finishOp(26, 1); } readToken_plus_min(t) { let r = this.input.charCodeAt(this.state.pos + 1); if (r === t) { this.finishOp(34, 2); return; } r === 61 ? this.finishOp(30, 2) : this.finishOp(53, 1); } readToken_lt() { let { pos: t } = this.state, r = this.input.charCodeAt(t + 1); if (r === 60) { if (this.input.charCodeAt(t + 2) === 61) { this.finishOp(30, 3); return; } this.finishOp(51, 2); return; } if (r === 61) { this.finishOp(49, 2); return; } this.finishOp(47, 1); } readToken_gt() { let { pos: t } = this.state, r = this.input.charCodeAt(t + 1); if (r === 62) { let s = this.input.charCodeAt(t + 2) === 62 ? 3 : 2; if (this.input.charCodeAt(t + s) === 61) { this.finishOp(30, s + 1); return; } this.finishOp(52, s); return; } if (r === 61) { this.finishOp(49, 2); return; } this.finishOp(48, 1); } readToken_eq_excl(t) { let r = this.input.charCodeAt(this.state.pos + 1); if (r === 61) { this.finishOp(46, this.input.charCodeAt(this.state.pos + 2) === 61 ? 3 : 2); return; } if (t === 61 && r === 62) { this.state.pos += 2, this.finishToken(19); return; } this.finishOp(t === 61 ? 29 : 35, 1); } readToken_question() { let t = this.input.charCodeAt(this.state.pos + 1), r = this.input.charCodeAt(this.state.pos + 2); t === 63 ? r === 61 ? this.finishOp(30, 3) : this.finishOp(40, 2) : t === 46 && !(r >= 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(N.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(N.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 (ns(t)) { this.readWord(t); return; } } throw this.raise(N.InvalidOrUnexpectedToken, this.state.curPosition(), { unexpected: String.fromCodePoint(t) }); } finishOp(t, r) { let s = this.input.slice(this.state.pos, this.state.pos + r); this.state.pos += r, this.finishToken(t, s); } readRegexp() { let t = this.state.startLoc, r = this.state.start + 1, s, n, { pos: a } = this.state; for (; ; ++a) { if (a >= this.length) throw this.raise(N.UnterminatedRegExp, Kt(t, 1)); let c = this.input.charCodeAt(a); if (Ai(c)) throw this.raise(N.UnterminatedRegExp, Kt(t, 1)); if (s) s = !1; else { if (c === 91) n = !0; else if (c === 93 && n) n = !1; else if (c === 47 && !n) break; s = c === 92; } } let o = this.input.slice(r, a); ++a; let l = "", u = /* @__PURE__ */ i(() => Kt(t, a + 2 - r), "nextPos"); for (; a < this.length; ) { let c = this.codePointAtPos(a), p = String.fromCharCode(c); if (yH.has(c)) c === 118 ? l.includes("u") && this.raise(N.IncompatibleRegExpUVFlags, u()) : c === 117 && l.includes("v") && this.raise(N.IncompatibleRegExpUVFlags, u()), l.includes(p) && this.raise(N.DuplicateRegExpFlags, u()); else if (On(c) || c === 92) this.raise(N.MalformedRegExpFlags, u()); else break; ++a, l += p; } this.state.pos = a, this.finishToken(138, { pattern: o, flags: l }); } readInt(t, r, s = !1, n = !0) { let { n: a, pos: o } = Sx(this.input, this.state.pos, this.state.lineStart, this.state.curLine, t, r, s, n, this.errorHandlers_readInt, !1); return this.state.pos = o, a; } readRadixNumber(t) { let r = this.state.pos, s = this.state.curPosition(), n = !1; this.state.pos += 2; let a = this.readInt(t); a == null && this.raise(N.InvalidDigit, Kt(s, 2), { radix: t }); let o = this.input.charCodeAt(this.state.pos); if (o === 110) ++this.state.pos, n = !0; else if (o === 109) throw this.raise(N.InvalidDecimal, s); if (ns(this.codePointAtPos(this.state.pos))) throw this.raise(N.NumberIdentifier, this.state.curPosition()); if (n) { let l = this.input.slice(r, this.state.pos).replace(/[_n]/g, ""); this.finishToken(136, l); return; } this.finishToken(135, a); } readNumber(t) { let r = this.state.pos, s = this.state.curPosition(), n = !1, a = !1, o = !1, l = !1; !t && this.readInt(10) === null && this.raise(N.InvalidNumber, this.state.curPosition()); let u = this.state.pos - r >= 2 && this.input.charCodeAt(r) === 48; if (u) { let b = this.input.slice(r, this.state.pos); if (this.recordStrictModeErrors(N.StrictOctalLiteral, s), !this.state.strict) { let T = b.indexOf("_"); T > 0 && this.raise(N.ZeroDigitNumericSeparator, Kt(s, T)); } l = u && !/[89]/.test(b); } let c = this.input.charCodeAt(this.state.pos); if (c === 46 && !l && (++this.state.pos, this.readInt(10), n = !0, c = this.input.charCodeAt(this.state.pos)), (c === 69 || c === 101) && !l && (c = this.input.charCodeAt(++this.state.pos), (c === 43 || c === 45) && ++this.state.pos, this.readInt(10) === null && this.raise( N.InvalidOrMissingExponent, s), n = !0, o = !0, c = this.input.charCodeAt(this.state.pos)), c === 110 && ((n || u) && this.raise(N.InvalidBigIntLiteral, s), ++this.state.pos, a = !0), c === 109) { this.expectPlugin("decimal", this.state.curPosition()), (o || u) && this.raise(N.InvalidDecimal, s), ++this.state.pos; var p = !0; } if (ns(this.codePointAtPos(this.state.pos))) throw this.raise(N.NumberIdentifier, this.state.curPosition()); let f = this.input.slice(r, this.state.pos).replace(/[_mn]/g, ""); if (a) { this.finishToken(136, f); return; } if (p) { this.finishToken(137, f); return; } let h = l ? parseInt(f, 8) : parseFloat(f); this.finishToken(135, h); } readCodePoint(t) { let { code: r, pos: s } = vx(this.input, this.state.pos, this.state.lineStart, this.state.curLine, t, this.errorHandlers_readCodePoint); return this.state.pos = s, r; } readString(t) { let { str: r, pos: s, curLine: n, lineStart: a } = ox(t === 34 ? "double" : "single", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_string); this.state.pos = s + 1, this.state.lineStart = a, this.state.curLine = n, 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: s, pos: n, curLine: a, lineStart: o } = ox("template", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_template); this.state.pos = n + 1, this.state.lineStart = o, this.state.curLine = a, s && (this.state.firstInvalidTemplateEscapePos = new is(s.curLine, s.pos - s.lineStart, this.sourceToOffsetPos(s.pos))), this.input.codePointAt(n) === 96 ? this.finishToken(24, s ? null : t + r + "`") : (this.state.pos++, this.finishToken(25, s ? null : t + r + "${")); } recordStrictModeErrors(t, r) { let s = r.index; this.state.strict && !this.state.strictErrors.has(s) ? this.raise(t, r) : this.state.strictErrors.set(s, [t, r]); } readWord1(t) { this.state.containsEsc = !1; let r = "", s = this.state.pos, n = this.state.pos; for (t !== void 0 && (this.state.pos += t <= 65535 ? 1 : 2); this.state.pos < this.length; ) { let a = this.codePointAtPos(this.state.pos); if (On(a)) this.state.pos += a <= 65535 ? 1 : 2; else if (a === 92) { this.state.containsEsc = !0, r += this.input.slice(n, this.state.pos); let o = this.state.curPosition(), l = this.state.pos === s ? ns : On; if (this.input.charCodeAt(++this.state.pos) !== 117) { this.raise(N.MissingUnicodeEscape, this.state.curPosition()), n = this.state.pos - 1; continue; } ++this.state.pos; let u = this.readCodePoint(!0); u !== null && (l(u) || this.raise(N.EscapedCharNotAnIdentifier, o), r += String.fromCodePoint(u)), n = this.state.pos; } else break; } return r + this.input.slice(n, this.state.pos); } readWord(t) { let r = this.readWord1(t), s = U0.get(r); s !== void 0 ? this.finishToken(s, zs(s)) : this.finishToken(132, r); } checkKeywordEscapes() { let { type: t } = this.state; H0(t) && this.state.containsEsc && this.raise(N.InvalidEscapedReservedWord, this.state.startLoc, { reservedWord: zs(t) }); } raise(t, r, s = {}) { let n = r instanceof is ? r : r.loc.start, a = t(n, s); if (!(this.optionFlags & 2048)) throw a; return this.isLookahead || this.state.errors.push(a), a; } raiseOverwrite(t, r, s = {}) { let n = r instanceof is ? r : r.loc.start, a = n.index, o = this.state.errors; for (let l = o.length - 1; l >= 0; l--) { let u = o[l]; if (u.loc.index === a) return o[l] = t(n, s); if (u.loc.index < a) break; } return this.raise(t, r, s); } updateContext(t) { } unexpected(t, r) { throw this.raise(N.UnexpectedToken, t ?? this.state.startLoc, { expected: r ? zs(r) : null }); } expectPlugin(t, r) { if (this.hasPlugin(t)) return !0; throw this.raise(N.MissingPlugin, r ?? this.state.startLoc, { missingPlugin: [t] }); } expectOnePlugin(t) { if (!t.some((r) => this.hasPlugin(r))) throw this.raise(N.MissingOneOfPlugins, this.state.startLoc, { missingPlugin: t }); } errorBuilder(t) { return (r, s, n) => { this.raise(t, Va(r, s, n)); }; } }, O0 = class { static { i(this, "ClassScope"); } constructor() { this.privateNames = /* @__PURE__ */ new Set(), this.loneAccessors = /* @__PURE__ */ new Map(), this.undefinedPrivateNames = /* @__PURE__ */ new Map(); } }, N0 = class { static { i(this, "ClassScopeHandler"); } constructor(t) { this.parser = void 0, this.stack = [], this.undefinedPrivateNames = /* @__PURE__ */ new Map(), this.parser = t; } current() { return this.stack[this.stack.length - 1]; } enter() { this.stack.push(new O0()); } exit() { let t = this.stack.pop(), r = this.current(); for (let [s, n] of Array.from(t.undefinedPrivateNames)) r ? r.undefinedPrivateNames.has(s) || r.undefinedPrivateNames.set(s, n) : this.parser.raise(N.InvalidPrivateFieldResolution, n, { identifierName: s }); } declarePrivateName(t, r, s) { let { privateNames: n, loneAccessors: a, undefinedPrivateNames: o } = this.current(), l = n.has(t); if (r & 3) { let u = l && a.get(t); if (u) { let c = u & 4, p = r & 4, f = u & 3, h = r & 3; l = f === h || c !== p, l || a.delete(t); } else l || a.set(t, r); } l && this.parser.raise(N.PrivateNameRedeclaration, s, { identifierName: t }), n.add(t), o.delete(t); } usePrivateName(t, r) { let s; for (s of this.stack) if (s.privateNames.has(t)) return; s ? s.undefinedPrivateNames.set(t, r) : this.parser.raise(N.InvalidPrivateFieldResolution, r, { identifierName: t }); } }, Di = class { static { i(this, "ExpressionScope"); } constructor(t = 0) { this.type = t; } canBeArrowParameterDeclaration() { return this.type === 2 || this.type === 1; } isCertainlyParameterDeclaration() { return this.type === 3; } }, Hl = class extends Di { static { i(this, "ArrowHeadParsingScope"); } constructor(t) { super(t), this.declarationErrors = /* @__PURE__ */ new Map(); } recordDeclarationError(t, r) { let s = r.index; this.declarationErrors.set(s, [t, r]); } clearDeclarationError(t) { this.declarationErrors.delete(t); } iterateErrors(t) { this.declarationErrors.forEach(t); } }, B0 = class { static { i(this, "ExpressionScopeHandler"); } constructor(t) { this.parser = void 0, this.stack = [new Di()], this.parser = t; } enter(t) { this.stack.push(t); } exit() { this.stack.pop(); } recordParameterInitializerError(t, r) { let s = r.loc.start, { stack: n } = this, a = n.length - 1, o = n[a]; for (; !o.isCertainlyParameterDeclaration(); ) { if (o.canBeArrowParameterDeclaration()) o.recordDeclarationError(t, s); else return; o = n[--a]; } this.parser.raise(t, s); } recordArrowParameterBindingError(t, r) { let { stack: s } = this, n = s[s.length - 1], a = r.loc.start; if (n.isCertainlyParameterDeclaration()) this.parser.raise(t, a); else if (n.canBeArrowParameterDeclaration()) n.recordDeclarationError(t, a); else return; } recordAsyncArrowParametersError(t) { let { stack: r } = this, s = r.length - 1, n = r[s]; for (; n.canBeArrowParameterDeclaration(); ) n.type === 2 && n.recordDeclarationError(N.AwaitBindingIdentifier, t), n = r[--s]; } validateAsPattern() { let { stack: t } = this, r = t[t.length - 1]; r.canBeArrowParameterDeclaration() && r.iterateErrors(([s, n]) => { this.parser.raise(s, n); let a = t.length - 2, o = t[a]; for (; o.canBeArrowParameterDeclaration(); ) o.clearDeclarationError(n.index), o = t[--a]; }); } }; function bH() { return new Di(3); } i(bH, "newParameterDeclarationScope"); function gH() { return new Hl(1); } i(gH, "newArrowHeadScope"); function TH() { return new Hl(2); } i(TH, "newAsyncArrowScope"); function Px() { return new Di(); } i(Px, "newExpressionScope"); var k0 = class extends I0 { static { i(this, "UtilParser"); } addExtra(t, r, s, n = !0) { if (!t) return; let { extra: a } = t; a == null && (a = {}, t.extra = a), n ? a[r] = s : Object.defineProperty(a, r, { enumerable: n, value: s }); } isContextual(t) { return this.state.type === t && !this.state.containsEsc; } isUnparsedContextual(t, r) { if (this.input.startsWith(r, t)) { let s = this.input.charCodeAt(t + r.length); return !(On(s) || (s & 64512) === 55296); } return !1; } isLookaheadContextual(t) { let r = this.nextTokenStart(); return this.isUnparsedContextual(r, t); } eatContextual(t) { return this.isContextual(t) ? (this.next(), !0) : !1; } expectContextual(t, r) { if (!this.eatContextual(t)) { if (r != null) throw this.raise(r, this.state.startLoc); this.unexpected(null, t); } } canInsertSemicolon() { return this.match(140) || this.match(8) || this.hasPrecedingLineBreak(); } hasPrecedingLineBreak() { return ix(this.input, this.offsetToSourcePos(this.state.lastTokEndLoc.index), this.state.start); } hasFollowingLineBreak() { return ix(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(N.MissingSemicolon, this.state.lastTokEndLoc); } expect(t, r) { this.eat(t) || this.unexpected(r, t); } tryParse(t, r = this.state.clone()) { let s = { node: null }; try { let n = t((a = null) => { throw s.node = a, s; }); if (this.state.errors.length > r.errors.length) { let a = this.state; return this.state = r, this.state.tokensLength = a.tokensLength, { node: n, error: a.errors[r.errors.length], thrown: !1, aborted: !1, failState: a }; } return { node: n, error: null, thrown: !1, aborted: !1, failState: null }; } catch (n) { let a = this.state; if (this.state = r, n instanceof SyntaxError) return { node: null, error: n, thrown: !0, aborted: !1, failState: a }; if (n === s) return { node: s.node, error: null, thrown: !1, aborted: !0, failState: a }; throw n; } } checkExpressionErrors(t, r) { if (!t) return !1; let { shorthandAssignLoc: s, doubleProtoLoc: n, privateKeyLoc: a, optionalParametersLoc: o, voidPatternLoc: l } = t, u = !!s || !!n || !!o || !!a || !!l; if (!r) return u; s != null && this.raise(N.InvalidCoverInitializedName, s), n != null && this.raise(N.DuplicateProto, n), a != null && this.raise(N.UnexpectedPrivateField, a), o != null && this.unexpected(o), l != null && this.raise(N.InvalidCoverDiscardElement, l); } isLiteralPropertyName() { return hx(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 s = this.exportedIdentifiers; this.exportedIdentifiers = /* @__PURE__ */ new Set(); let n = this.inModule; this.inModule = t; let a = this.scope, o = this.getScopeHandler(); this.scope = new o(this, t); let l = this.prodParam; this.prodParam = new A0(); let u = this.classScope; this.classScope = new N0(this); let c = this.expressionScope; return this.expressionScope = new B0(this), () => { this.state.labels = r, this.exportedIdentifiers = s, this.inModule = n, this.scope = a, this.prodParam = l, this.classScope = u, this. expressionScope = c; }; } 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 s = r ? 514 : 1; this.optionFlags & 4 && (s |= 512), this.scope.enter(s); } checkDestructuringPrivate(t) { let { privateKeyLoc: r } = t; r !== null && this.expectPlugin("destructuringPrivate", r); } }, Ci = class { static { i(this, "ExpressionErrors"); } constructor() { this.shorthandAssignLoc = null, this.doubleProtoLoc = null, this.privateKeyLoc = null, this.optionalParametersLoc = null, this.voidPatternLoc = null; } }, _i = class { static { i(this, "Node"); } constructor(t, r, s) { this.type = "", this.start = r, this.end = 0, this.loc = new wi(s), t?.optionFlags & 128 && (this.range = [r, 0]), t != null && t.filename && (this.loc.filename = t.filename); } }, F0 = _i.prototype; F0.__clone = function() { let e = new _i(void 0, this.start, this.loc.start), t = Object.keys(this); for (let r = 0, s = t.length; r < s; r++) { let n = t[r]; n !== "leadingComments" && n !== "trailingComments" && n !== "innerComments" && (e[n] = this[n]); } return e; }; var L0 = class extends k0 { static { i(this, "NodeUtils"); } startNode() { let t = this.state.startLoc; return new _i(this, t.index, t); } startNodeAt(t) { return new _i(this, t.index, t); } startNodeAtNode(t) { return this.startNodeAt(t.loc.start); } finishNode(t, r) { return this.finishNodeAt(t, r, this.state.lastTokEndLoc); } finishNodeAt(t, r, s) { return t.type = r, t.end = s.index, t.loc.end = s, this.optionFlags & 128 && (t.range[1] = s.index), this.optionFlags & 4096 && this.processComment( t), t; } resetStartLocation(t, r) { t.start = r.index, t.loc.start = r, this.optionFlags & 128 && (t.range[0] = r.index); } resetEndLocation(t, r = this.state.lastTokEndLoc) { t.end = r.index, t.loc.end = r, this.optionFlags & 128 && (t.range[1] = r.index); } resetStartLocationFromNode(t, r) { this.resetStartLocation(t, r.loc.start); } castNodeTo(t, r) { return t.type = r, t; } cloneIdentifier(t) { let { type: r, start: s, end: n, loc: a, range: o, name: l } = t, u = Object.create(F0); return u.type = r, u.start = s, u.end = n, u.loc = a, u.range = o, u.name = l, t.extra && (u.extra = t.extra), u; } cloneStringLiteral(t) { let { type: r, start: s, end: n, loc: a, range: o, extra: l } = t, u = Object.create(F0); return u.type = r, u.start = s, u.end = n, u.loc = a, u.range = o, u.extra = l, u.value = t.value, u; } }, j0 = /* @__PURE__ */ i((e) => e.type === "ParenthesizedExpression" ? j0(e.expression) : e, "unwrapParenthesizedExpression"), M0 = class extends L0 { static { i(this, "LValParser"); } toAssignable(t, r = !1) { var s, n; let a; switch ((t.type === "ParenthesizedExpression" || (s = t.extra) != null && s.parenthesized) && (a = j0(t), r ? a.type === "Identifier" ? this.expressionScope.recordArrowParameterBindingError(N.InvalidParenthesizedAssignment, t) : a.type !== "CallExpression" && a.type !== "MemberExpression" && !this.isOptionalMemberExpression(a) && this.raise(N.InvalidParenthesizedAssignment, t) : this.raise(N.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 l = 0, u = t.properties.length, c = u - 1; l < u; l++) { var o; let p = t.properties[l], f = l === c; this.toAssignableObjectExpressionProp(p, f, r), f && p.type === "RestElement" && (o = t.extra) != null && o.trailingCommaLoc && this. raise(N.RestTrailingComma, t.extra.trailingCommaLoc); } break; case "ObjectProperty": { let { key: l, value: u } = t; this.isPrivateName(l) && this.classScope.usePrivateName(this.getPrivateNameSV(l), l.loc.start), this.toAssignable(u, r); break; } case "SpreadElement": throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignabl\ e's caller."); case "ArrayExpression": this.castNodeTo(t, "ArrayPattern"), this.toAssignableList(t.elements, (n = t.extra) == null ? void 0 : n.trailingCommaLoc, r); break; case "AssignmentExpression": t.operator !== "=" && this.raise(N.MissingEqInAssignment, t.left.loc.end), this.castNodeTo(t, "AssignmentPattern"), delete t.operator, t.left.type === "VoidPattern" && this.raise(N.VoidPatternInitializer, t.left), this.toAssignable(t.left, r); break; case "ParenthesizedExpression": this.toAssignable(a, r); break; } } toAssignableObjectExpressionProp(t, r, s) { if (t.type === "ObjectMethod") this.raise(t.kind === "get" || t.kind === "set" ? N.PatternHasAccessor : N.PatternHasMethod, t.key); else if (t.type === "SpreadElement") { this.castNodeTo(t, "RestElement"); let n = t.argument; this.checkToRestConversion(n, !1), this.toAssignable(n, s), r || this.raise(N.RestTrailingComma, t); } else this.toAssignable(t, s); } toAssignableList(t, r, s) { let n = t.length - 1; for (let a = 0; a <= n; a++) { let o = t[a]; o && (this.toAssignableListItem(t, a, s), o.type === "RestElement" && (a < n ? this.raise(N.RestTrailingComma, o) : r && this.raise( N.RestTrailingComma, r))); } } toAssignableListItem(t, r, s) { let n = t[r]; if (n.type === "SpreadElement") { this.castNodeTo(n, "RestElement"); let a = n.argument; this.checkToRestConversion(a, !0), this.toAssignable(a, s); } else this.toAssignable(n, s); } isAssignable(t, r) { switch (t.type) { case "Identifier": case "ObjectPattern": case "ArrayPattern": case "AssignmentPattern": case "RestElement": case "VoidPattern": return !0; case "ObjectExpression": { let s = t.properties.length - 1; return t.properties.every((n, a) => n.type !== "ObjectMethod" && (a === s || n.type !== "SpreadElement") && this.isAssignable(n)); } case "ObjectProperty": return this.isAssignable(t.value); case "SpreadElement": return this.isAssignable(t.argument); case "ArrayExpression": return t.elements.every((s) => s === null || this.isAssignable(s)); 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 s of t) s?.type === "ArrayExpression" && this.toReferencedListDeep(s.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(N.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, s) { let n = s & 1, a = [], o = !0; for (; !this.eat(t); ) if (o ? o = !1 : this.expect(12), n && this.match(12)) a.push(null); else { if (this.eat(t)) break; if (this.match(21)) { let l = this.parseRestBinding(); if ((this.hasPlugin("flow") || s & 2) && (l = this.parseFunctionParamType(l)), a.push(l), !this.checkCommaAfterRest(r)) { this.expect(t); break; } } else { let l = []; if (s & 2) for (this.match(26) && this.hasPlugin("decorators") && this.raise(N.UnsupportedParameterDecorator, this.state.startLoc); this. match(26); ) l.push(this.parseDecorator()); a.push(this.parseBindingElement(s, l)); } } return a; } parseBindingRestProperty(t) { return this.next(), this.hasPlugin("discardBinding") && this.match(88) ? (t.argument = this.parseVoidPattern(null), this.raise(N.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 s = this.startNode(); return t === 139 ? (this.expectPlugin("destructuringPrivate", r), this.classScope.usePrivateName(this.state.value, r), s.key = this.parsePrivateName()) : this.parsePropertyName(s), s.method = !1, this.parseObjPropValue(s, r, !1, !1, !0, !1); } parseBindingElement(t, r) { let s = this.parseMaybeDefault(); return (this.hasPlugin("flow") || t & 2) && this.parseFunctionParamType(s), r.length && (s.decorators = r, this.resetStartLocationFromNode( s, r[0])), this.parseMaybeDefault(s.loc.start, s); } parseFunctionParamType(t) { return t; } parseMaybeDefault(t, r) { if (t ?? (t = this.state.startLoc), r = r ?? this.parseBindingAtom(), !this.eat(29)) return r; let s = this.startNodeAt(t); return r.type === "VoidPattern" && this.raise(N.VoidPatternInitializer, r), s.left = r, s.right = this.parseMaybeAssignAllowIn(), this. finishNode(s, "AssignmentPattern"); } isValidLVal(t, r, s, 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; case "CallExpression": if (!r && !this.state.strict && this.optionFlags & 8192) return !0; } return !1; } isOptionalMemberExpression(t) { return t.type === "OptionalMemberExpression"; } checkLVal(t, r, s = 64, n = !1, a = !1, o = !1, l = !1) { var u; let c = t.type; if (this.isObjectMethod(t)) return; let p = this.isOptionalMemberExpression(t); if (p || c === "MemberExpression") { p && (this.expectPlugin("optionalChainingAssign", t.loc.start), r.type !== "AssignmentExpression" && this.raise(N.InvalidLhsOptionalChaining, t, { ancestor: r })), s !== 64 && this.raise(N.InvalidPropertyBindingPattern, t); return; } if (c === "Identifier") { this.checkIdentifier(t, s, a); let { name: D } = t; n && (n.has(D) ? this.raise(N.ParamDupe, t) : n.add(D)); return; } else c === "VoidPattern" && r.type === "CatchClause" && this.raise(N.VoidPatternCatchClauseParam, t); let f = j0(t); l || (l = f.type === "CallExpression" && (f.callee.type === "Import" || f.callee.type === "Super")); let h = this.isValidLVal(c, l, !(o || (u = t.extra) != null && u.parenthesized) && r.type === "AssignmentExpression", s); if (h === !0) return; if (h === !1) { let D = s === 64 ? N.InvalidLhs : N.InvalidLhsBinding; this.raise(D, t, { ancestor: r }); return; } let b, T; typeof h == "string" ? (b = h, T = c === "ParenthesizedExpression") : [b, T] = h; let d = c === "ArrayPattern" || c === "ObjectPattern" ? { type: c } : r, g = t[b]; if (Array.isArray(g)) for (let D of g) D && this.checkLVal(D, d, s, n, a, T, !0); else g && this.checkLVal(g, d, s, n, a, T, l); } checkIdentifier(t, r, s = !1) { this.state.strict && (s ? xx(t.name, this.inModule) : Tx(t.name)) && (r === 64 ? this.raise(N.StrictEvalArguments, t, { referenceName: t.name }) : this.raise(N.StrictEvalArgumentsBinding, t, { bindingName: t.name })), r & 8192 && t.name === "let" && this.raise(N.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(N.InvalidRestAssignmentPattern, t); } } checkCommaAfterRest(t) { return this.match(12) ? (this.raise(this.lookaheadCharCode() === t ? N.RestTrailingComma : N.ElementAfterRest, this.state.startLoc), !0) : !1; } }, b0 = /in(?:stanceof)?|as|satisfies/y; function xH(e) { if (e == null) throw new Error(`Unexpected ${e} value.`); return e; } i(xH, "nonNull"); function lx(e) { if (!e) throw new Error("Assert fail"); } i(lx, "assert"); var Z = ss`typescript`({ AbstractMethodHasImplementation: /* @__PURE__ */ i(({ methodName: e }) => `Method '${e}' cannot have an implementation because it is marked abstract.`, "AbstractMethodHasImplementation"), AbstractPropertyHasInitializer: /* @__PURE__ */ i(({ propertyName: e }) => `Property '${e}' cannot have an initializer because it is marked abstract.`, "AbstractPropertyHasInitializer"), 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 num\ eric literal or literal enum reference.", ConstructorHasTypeParameters: "Type parameters cannot appear on a constructor declaration.", DeclareAccessor: /* @__PURE__ */ i(({ kind: e }) => `'declare' is not allowed in ${e}ters.`, "DeclareAccessor"), DeclareClassFieldHasInitializer: "Initializers are not allowed in ambient contexts.", DeclareFunctionHasImplementation: "An implementation cannot be declared in ambient contexts.", DuplicateAccessibilityModifier: /* @__PURE__ */ i(({ modifier: e }) => `Accessibility modifier already seen: '${e}'.`, "DuplicateAccessibilityModifier"), DuplicateModifier: /* @__PURE__ */ i(({ modifier: e }) => `Duplicate modifier: '${e}'.`, "DuplicateModifier"), EmptyHeritageClauseType: /* @__PURE__ */ i(({ token: e }) => `'${e}' list cannot be empty.`, "EmptyHeritageClauseType"), 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: /* @__PURE__ */ i(({ modifiers: e }) => `'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`, "IncompatibleModifiers"), IndexSignatureHasAbstract: "Index signatures cannot have the 'abstract' modifier.", IndexSignatureHasAccessibility: /* @__PURE__ */ i(({ modifier: e }) => `Index signatures cannot have an accessibility modifier ('${e}').`, "IndexSignatureHasAccessibility"), 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: /* @__PURE__ */ i(({ token: e }) => `'${e}' list can only include identifiers or qualified-names with optional type arguments.`, "InvalidHeritageClauseType"), InvalidModifierOnAwaitUsingDeclaration: /* @__PURE__ */ i((e) => `'${e}' modifier cannot appear on an await using declaration.`, "Invali\ dModifierOnAwaitUsingDeclaration"), InvalidModifierOnTypeMember: /* @__PURE__ */ i(({ modifier: e }) => `'${e}' modifier cannot appear on a type member.`, "InvalidModifierOnTypeMember"), InvalidModifierOnTypeParameter: /* @__PURE__ */ i(({ modifier: e }) => `'${e}' modifier cannot appear on a type parameter.`, "InvalidModifierOnTypeParameter"), InvalidModifierOnTypeParameterPositions: /* @__PURE__ */ i(({ modifier: e }) => `'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`, "InvalidModifierOnTypeParameterPositio\ ns"), InvalidModifierOnUsingDeclaration: /* @__PURE__ */ i((e) => `'${e}' modifier cannot appear on a using declaration.`, "InvalidModifierOnU\ singDeclaration"), InvalidModifiersOrder: /* @__PURE__ */ i(({ orderedModifiers: e }) => `'${e[0]}' modifier must precede '${e[1]}' modifier.`, "InvalidModifiersOrder"), InvalidPropertyAccessAfterInstantiationExpression: "Invalid property access after an instantiation expression. You can either wrap the i\ nstantiation 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: /* @__PURE__ */ i(({ modifier: e }) => `Private elements cannot have an accessibility modifier ('${e}').`, "PrivateElementHasAccessibility"), 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: /* @__PURE__ */ i(({ typeParameterName: e }) => `Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`, "SingleTypeParameterWithoutTrailingComma"), 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 (`n\ ame?: 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 statemen\ t.", TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statemen\ t.", 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: /* @__PURE__ */ i(({ type: e }) => `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`, "UnsupportedSignatureParameterKind"), UsingDeclarationInAmbientContext: /* @__PURE__ */ i((e) => `'${e}' declarations are not allowed in ambient contexts.`, "UsingDeclaration\ InAmbientContext") }); function EH(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; } } i(EH, "keywordTypeFromName"); function ux(e) { return e === "private" || e === "public" || e === "protected"; } i(ux, "tsIsAccessModifier"); function SH(e) { return e === "in" || e === "out"; } i(SH, "tsIsVarianceAnnotations"); var vH = /* @__PURE__ */ i((e) => class extends e { static { i(this, "TypeScriptParserMixin"); } constructor(...r) { super(...r), this.tsParseInOutModifiers = this.tsParseModifiers.bind(this, { allowedModifiers: ["in", "out"], disallowedModifiers: ["const", "public", "private", "protected", "readonly", "declare", "abstract", "override"], errorTemplate: Z.InvalidModifierOnTypeParameter }), this.tsParseConstModifier = this.tsParseModifiers.bind(this, { allowedModifiers: ["const"], disallowedModifiers: ["in", "out"], errorTemplate: Z.InvalidModifierOnTypeParameterPositions }), this.tsParseInOutConstModifiers = this.tsParseModifiers.bind(this, { allowedModifiers: ["in", "out", "const"], disallowedModifiers: ["public", "private", "protected", "readonly", "declare", "abstract", "override"], errorTemplate: Z.InvalidModifierOnTypeParameter }); } getScopeHandler() { return P0; } tsIsIdentifier() { return Be(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, s, n) { if (!Be(this.state.type) && this.state.type !== 58 && this.state.type !== 75) return; let a = this.state.value; if (r.includes(a)) { if (n && this.match(106) || s && this.tsIsStartOfStaticBlocks()) return; if (this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))) return a; } } tsParseModifiers({ allowedModifiers: r, disallowedModifiers: s, stopOnStartOfClassStaticBlock: n, errorTemplate: a = Z.InvalidModifierOnTypeMember }, o) { let l = /* @__PURE__ */ i((c, p, f, h) => { p === f && o[h] && this.raise(Z.InvalidModifiersOrder, c, { orderedModifiers: [f, h] }); }, "enforceOrder"), u = /* @__PURE__ */ i((c, p, f, h) => { (o[f] && p === h || o[h] && p === f) && this.raise(Z.IncompatibleModifiers, c, { modifiers: [f, h] }); }, "incompatible"); for (; ; ) { let { startLoc: c } = this.state, p = this.tsParseModifier(r.concat(s ?? []), n, o.static); if (!p) break; ux(p) ? o.accessibility ? this.raise(Z.DuplicateAccessibilityModifier, c, { modifier: p }) : (l(c, p, p, "override"), l(c, p, p, "static"), l(c, p, p, "readonly"), o.accessibility = p) : SH(p) ? (o[p] && this.raise(Z.DuplicateModifier, c, { modifier: p }), o[p] = !0, l(c, p, "in", "out")) : (hasOwnProperty.call(o, p) ? this.raise(Z.DuplicateModifier, c, { modifier: p }) : (l(c, p, "static", "readonly"), l(c, p, "static", "override"), l(c, p, "override", "readonly"), l(c, p, "abstract", "override"), u(c, p, "declare", "override"), u(c, p, "static", "abstract")), o[p] = !0), s != null && s.includes(p) && this.raise(a, c, { modifier: p }); } } tsIsListTerminator(r) { switch (r) { case "EnumMembers": case "TypeMembers": return this.match(8); case "HeritageClauseElement": return this.match(5); case "TupleElementTypes": return this.match(3); case "TypeParametersOrArguments": return this.match(48); } } tsParseList(r, s) { let n = []; for (; !this.tsIsListTerminator(r); ) n.push(s()); return n; } tsParseDelimitedList(r, s, n) { return xH(this.tsParseDelimitedListWorker(r, s, !0, n)); } tsParseDelimitedListWorker(r, s, n, a) { let o = [], l = -1; for (; !this.tsIsListTerminator(r); ) { l = -1; let u = s(); if (u == null) return; if (o.push(u), this.eat(12)) { l = this.state.lastTokStartLoc.index; continue; } if (this.tsIsListTerminator(r)) break; n && this.expect(12); return; } return a && (a.value = l), o; } tsParseBracketedList(r, s, n, a, o) { a || (n ? this.expect(0) : this.expect(47)); let l = this.tsParseDelimitedList(r, s, o); return n ? this.expect(3) : this.expect(48), l; } tsParseImportType() { let r = this.startNode(); return this.expect(83), this.expect(10), this.match(134) ? r.argument = this.parseStringLiteral(this.state.value) : (this.raise(Z.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 s = this.startNode(); return this.isContextual(76) ? (s.method = !1, s.key = this.parseIdentifier(!0), s.computed = !1, s.shorthand = !1) : this.unexpected( null, 76), this.expect(14), s.value = this.tsParseImportTypeWithPropertyValue(), r.properties = [this.finishObjectProperty(s)], this.eat( 12), this.expect(8), this.finishNode(r, "ObjectExpression"); } tsParseImportTypeWithPropertyValue() { let r = this.startNode(), s = []; for (this.expect(5); !this.match(8); ) { let n = this.state.type; Be(n) || n === 134 ? s.push(super.parsePropertyDefinition(null)) : this.unexpected(), this.eat(12); } return r.properties = s, this.next(), this.finishNode(r, "ObjectExpression"); } tsParseEntityName(r) { let s; if (r & 1 && this.match(78)) if (r & 2) s = this.parseIdentifier(!0); else { let n = this.startNode(); this.next(), s = this.finishNode(n, "ThisExpression"); } else s = this.parseIdentifier(!!(r & 1)); for (; this.eat(16); ) { let n = this.startNodeAtNode(s); n.left = s, n.right = this.parseIdentifier(!!(r & 1)), s = this.finishNode(n, "TSQualifiedName"); } return s; } 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 s = this.startNodeAtNode(r); return s.parameterName = r, s.typeAnnotation = this.tsParseTypeAnnotation(!1), s.asserts = !1, this.finishNode(s, "TSTypePredicate"); } tsParseThisTypeNode() { let r = this.startNode(); return this.next(), this.finishNode(r, "TSThisType"); } tsParseTypeQuery() { let r = this.startNode(); 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 s = this.startNode(); return r(s), s.name = this.tsParseTypeParameterName(), s.constraint = this.tsEatThenParseType(81), s.default = this.tsEatThenParseType( 29), this.finishNode(s, "TSTypeParameter"); } tsTryParseTypeParameters(r) { if (this.match(47)) return this.tsParseTypeParameters(r); } tsParseTypeParameters(r) { let s = this.startNode(); this.match(47) || this.match(143) ? this.next() : this.unexpected(); let n = { value: -1 }; return s.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, r), !1, !0, n), s.params. length === 0 && this.raise(Z.EmptyTypeParameters, s), n.value !== -1 && this.addExtra(s, "trailingComma", n.value), this.finishNode(s, "TSTypeParameterDeclaration"); } tsFillSignature(r, s) { let n = r === 19, a = "parameters", o = "typeAnnotation"; s.typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier), this.expect(10), s[a] = this.tsParseBindingListForSignature(), n ? s[o] = this.tsParseTypeOrTypePredicateAnnotation(r) : this.match(r) && (s[o] = this.tsParseTypeOrTypePredicateAnnotation(r)); } tsParseBindingListForSignature() { let r = super.parseBindingList(11, 41, 2); for (let s of r) { let { type: n } = s; (n === "AssignmentPattern" || n === "TSParameterProperty") && this.raise(Z.UnsupportedSignatureParameterKind, s, { type: n }); } return r; } tsParseTypeMemberSemicolon() { !this.eat(12) && !this.isLineTerminator() && this.expect(13); } tsParseSignatureMember(r, s) { return this.tsFillSignature(14, s), this.tsParseTypeMemberSemicolon(), this.finishNode(s, r); } tsIsUnambiguouslyIndexSignature() { return this.next(), Be(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 s = this.parseIdentifier(); s.typeAnnotation = this.tsParseTypeAnnotation(), this.resetEndLocation(s), this.expect(3), r.parameters = [s]; let n = this.tsTryParseTypeAnnotation(); return n && (r.typeAnnotation = n), this.tsParseTypeMemberSemicolon(), this.finishNode(r, "TSIndexSignature"); } tsParsePropertyOrMethodSignature(r, s) { if (this.eat(17) && (r.optional = !0), this.match(10) || this.match(47)) { s && this.raise(Z.ReadonlyForMethodSignature, r); let n = r; n.kind && this.match(47) && this.raise(Z.AccessorCannotHaveTypeParameters, this.state.curPosition()), this.tsFillSignature(14, n), this. tsParseTypeMemberSemicolon(); let a = "parameters", o = "typeAnnotation"; if (n.kind === "get") n[a].length > 0 && (this.raise(N.BadGetterArity, this.state.curPosition()), this.isThisParam(n[a][0]) && this.raise(Z.AccessorCannotDeclareThisParameter, this.state.curPosition())); else if (n.kind === "set") { if (n[a].length !== 1) this.raise(N.BadSetterArity, this.state.curPosition()); else { let l = n[a][0]; this.isThisParam(l) && this.raise(Z.AccessorCannotDeclareThisParameter, this.state.curPosition()), l.type === "Identifier" && l. optional && this.raise(Z.SetAccessorCannotHaveOptionalParameter, this.state.curPosition()), l.type === "RestElement" && this.raise( Z.SetAccessorCannotHaveRestParameter, this.state.curPosition()); } n[o] && this.raise(Z.SetAccessorCannotHaveReturnType, n[o]); } else n.kind = "method"; return this.finishNode(n, "TSMethodSignature"); } else { let n = r; s && (n.readonly = !0); let a = this.tsTryParseTypeAnnotation(); return a && (n.typeAnnotation = a), this.tsParseTypeMemberSemicolon(), this.finishNode(n, "TSPropertySignature"); } } tsParseTypeMember() { let r = this.startNode(); if (this.match(10) || this.match(47)) return this.tsParseSignatureMember("TSCallSignatureDeclaration", r); if (this.match(77)) { let n = this.startNode(); return this.next(), this.match(10) || this.match(47) ? this.tsParseSignatureMember("TSConstructSignatureDeclaration", r) : (r.key = this. createIdentifier(n, "new"), this.tsParsePropertyOrMethodSignature(r, !1)); } this.tsParseModifiers({ allowedModifiers: ["readonly"], disallowedModifiers: ["declare", "abstract", "private", "protected", "public", "static", "override"] }, r); let s = this.tsTryParseIndexSignature(r); return s || (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 s = this.startNode(); s.name = this.tsParseTypeParameterName(), s.constraint = this.tsExpectThenParseType(58), r.typeParameter = this.finishNode(s, "TSTyp\ eParameter"); } 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 s = !1; return r.elementTypes.forEach((n) => { let { type: a } = n; s && a !== "TSRestType" && a !== "TSOptionalType" && !(a === "TSNamedTupleMember" && n.optional) && this.raise(Z.OptionalTypeBeforeRequired, n), s || (s = a === "TSNamedTupleMember" && n.optional || a === "TSOptionalType"); }), this.finishNode(r, "TSTupleType"); } tsParseTupleElementType() { let r = this.state.startLoc, s = this.eat(21), { startLoc: n } = this.state, a, o, l, u, p = Fr(this.state.type) ? this.lookaheadCharCode() : null; if (p === 58) a = !0, l = !1, o = this.parseIdentifier(!0), this.expect(14), u = this.tsParseType(); else if (p === 63) { l = !0; let f = this.state.value, h = this.tsParseNonArrayType(); this.lookaheadCharCode() === 58 ? (a = !0, o = this.createIdentifier(this.startNodeAt(n), f), this.expect(17), this.expect(14), u = this. tsParseType()) : (a = !1, u = h, this.expect(17)); } else u = this.tsParseType(), l = this.eat(17), a = this.eat(14); if (a) { let f; o ? (f = this.startNodeAt(n), f.optional = l, f.label = o, f.elementType = u, this.eat(17) && (f.optional = !0, this.raise(Z.TupleOptionalAfterType, this.state.lastTokStartLoc))) : (f = this.startNodeAt(n), f.optional = l, this.raise(Z.InvalidTupleMemberLabel, u), f.label = u, f.elementType = this.tsParseType()), u = this.finishNode(f, "TSNamedTupleMember"); } else if (l) { let f = this.startNodeAt(n); f.typeAnnotation = u, u = this.finishNode(f, "TSOptionalType"); } if (s) { let f = this.startNodeAt(r); f.typeAnnotation = u, u = this.finishNode(f, "TSRestType"); } return u; } tsParseParenthesizedType() { let r = this.startNode(); return this.expect(10), r.typeAnnotation = this.tsParseType(), this.expect(11), this.finishNode(r, "TSParenthesizedType"); } tsParseFunctionOrConstructorType(r, s) { let n = this.startNode(); return r === "TSConstructorType" && (n.abstract = !!s, s && this.next(), this.next()), this.tsInAllowConditionalTypesContext(() => this. tsFillSignature(19, n)), this.finishNode(n, 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(), s = this.lookahead(); return s.type !== 135 && s.type !== 136 && this.unexpected(), r.literal = this.parseMaybeUnary(), this.finishNode(r, "TSLiteralT\ ype"); } 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 (Be(r) || r === 88 || r === 84) { let s = r === 88 ? "TSVoidKeyword" : r === 84 ? "TSNullKeyword" : EH(this.state.value); if (s !== void 0 && this.lookaheadCharCode() !== 46) { let n = this.startNode(); return this.next(), this.finishNode(n, s); } return this.tsParseTypeReference(); } } } throw this.unexpected(); } tsParseArrayTypeOrHigher() { let { startLoc: r } = this.state, s = this.tsParseNonArrayType(); for (; !this.hasPrecedingLineBreak() && this.eat(0); ) if (this.match(3)) { let n = this.startNodeAt(r); n.elementType = s, this.expect(3), s = this.finishNode(n, "TSArrayType"); } else { let n = this.startNodeAt(r); n.objectType = s, n.indexType = this.tsParseType(), this.expect(3), s = this.finishNode(n, "TSIndexedAccessType"); } return s; } tsParseTypeOperator() { let r = this.startNode(), s = this.state.value; return this.next(), r.operator = s, r.typeAnnotation = this.tsParseTypeOperatorOrHigher(), s === "readonly" && this.tsCheckTypeAnnotationForReadOnly( r), this.finishNode(r, "TSTypeOperator"); } tsCheckTypeAnnotationForReadOnly(r) { switch (r.typeAnnotation.type) { case "TSTupleType": case "TSArrayType": return; default: this.raise(Z.UnexpectedReadonly, r); } } tsParseInferType() { let r = this.startNode(); this.expectContextual(115); let s = this.startNode(); return s.name = this.tsParseTypeParameterName(), s.constraint = this.tsTryParse(() => this.tsParseConstraintForInferType()), r.typeParameter = this.finishNode(s, "TSTypeParameter"), this.finishNode(r, "TSInferType"); } tsParseConstraintForInferType() { if (this.eat(81)) { let r = this.tsInDisallowConditionalTypesContext(() => this.tsParseType()); if (this.state.inDisallowConditionalTypesContext || !this.match(17)) return r; } } tsParseTypeOperatorOrHigher() { return VY(this.state.type) && !this.state.containsEsc ? this.tsParseTypeOperator() : this.isContextual(115) ? this.tsParseInferType() : this.tsInAllowConditionalTypesContext(() => this.tsParseArrayTypeOrHigher()); } tsParseUnionOrIntersectionType(r, s, n) { let a = this.startNode(), o = this.eat(n), l = []; do l.push(s()); while (this.eat(n)); return l.length === 1 && !o ? l[0] : (a.types = l, this.finishNode(a, 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 (Be(this.state.type) || this.match(78)) return this.next(), !0; if (this.match(5)) { let { errors: r } = this.state, s = r.length; try { return this.parseObjectLike(8, !0), r.length === s; } catch { return !1; } } if (this.match(0)) { this.next(); let { errors: r } = this.state, s = r.length; try { return super.parseBindingList(3, 93, 1), r.length === s; } catch { 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 s = this.startNode(); this.expect(r); let n = this.startNode(), a = !!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this)); if (a && this.match(78)) { let u = this.tsParseThisTypeOrThisTypePredicate(); return u.type === "TSThisType" ? (n.parameterName = u, n.asserts = !0, n.typeAnnotation = null, u = this.finishNode(n, "TSTypePred\ icate")) : (this.resetStartLocationFromNode(u, n), u.asserts = !0), s.typeAnnotation = u, this.finishNode(s, "TSTypeAnnotation"); } let o = this.tsIsIdentifier() && this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this)); if (!o) return a ? (n.parameterName = this.parseIdentifier(), n.asserts = a, n.typeAnnotation = null, s.typeAnnotation = this.finishNode(n, "TSTypePredicate"), this.finishNode(s, "TSTypeAnnotation")) : this.tsParseTypeAnnotation(!1, s); let l = this.tsParseTypeAnnotation(!1); return n.parameterName = o, n.typeAnnotation = l, n.asserts = a, s.typeAnnotation = this.finishNode(n, "TSTypePredicate"), this.finishNode( s, "TSTypeAnnotation"); }); } tsTryParseTypeOrTypePredicateAnnotation() { if (this.match(14)) return this.tsParseTypeOrTypePredicateAnnotation(14); } tsTryParseTypeAnnotation() { if (this.match(14)) return this.tsParseTypeAnnotation(); } tsTryParseType() { return this.tsEatThenParseType(14); } tsParseTypePredicatePrefix() { let r = this.parseIdentifier(); if (this.isContextual(116) && !this.hasPrecedingLineBreak()) return this.next(), r; } tsParseTypePredicateAsserts() { if (this.state.type !== 109) return !1; let r = this.state.containsEsc; return this.next(), !Be(this.state.type) && !this.match(78) ? !1 : (r && this.raise(N.InvalidEscapedReservedWord, this.state.lastTokStartLoc, { reservedWord: "asserts" }), !0); } tsParseTypeAnnotation(r = !0, s = this.startNode()) { return this.tsInType(() => { r && this.expect(14), s.typeAnnotation = this.tsParseType(); }), this.finishNode(s, "TSTypeAnnotation"); } tsParseType() { lx(this.state.inType); let r = this.tsParseNonConditionalType(); if (this.state.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(81)) return r; let s = this.startNodeAtNode(r); return s.checkType = r, s.extendsType = this.tsInDisallowConditionalTypesContext(() => this.tsParseNonConditionalType()), this.expect( 17), s.trueType = this.tsInAllowConditionalTypesContext(() => this.tsParseType()), this.expect(14), s.falseType = this.tsInAllowConditionalTypesContext( () => this.tsParseType()), this.finishNode(s, "TSConditionalType"); } isAbstractConstructorSignature() { return this.isContextual(124) && this.isLookaheadContextual("new"); } tsParseNonConditionalType() { 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(Z.ReservedTypeAssertion, this.state.startLoc); let r = this.startNode(); return r.typeAnnotation = this.tsInType(() => (this.next(), this.match(75) ? this.tsParseTypeReference() : this.tsParseType())), this. expect(48), r.expression = this.parseMaybeUnary(), this.finishNode(r, "TSTypeAssertion"); } tsParseHeritageClause(r) { let s = this.state.startLoc, n = this.tsParseDelimitedList("HeritageClauseElement", () => { { let a = this.startNode(); return a.expression = this.tsParseEntityName(3), this.match(47) && (a.typeParameters = this.tsParseTypeArguments()), this.finishNode( a, "TSExpressionWithTypeArguments"); } }); return n.length || this.raise(Z.EmptyHeritageClauseType, s, { token: r }), n; } tsParseInterfaceDeclaration(r, s = {}) { if (this.hasFollowingLineBreak()) return null; this.expectContextual(129), s.declare && (r.declare = !0), Be(this.state.type) ? (r.id = this.parseIdentifier(), this.checkIdentifier( r.id, 130)) : (r.id = null, this.raise(Z.MissingInterfaceName, this.state.startLoc)), r.typeParameters = this.tsTryParseTypeParameters( this.tsParseInOutConstModifiers), this.eat(81) && (r.extends = this.tsParseHeritageClause("extends")); let n = this.startNode(); return n.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)), r.body = this.finishNode(n, "TSInterfaceBody"), this.finishNode( r, "TSInterfaceDeclaration"); } tsParseTypeAliasDeclaration(r) { return r.id = this.parseIdentifier(), this.checkIdentifier(r.id, 2), r.typeAnnotation = this.tsInType(() => { if (r.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers), this.expect(29), this.isContextual(114) && this.lookaheadCharCode() !== 46) { let s = this.startNode(); return this.next(), this.finishNode(s, "TSIntrinsicKeyword"); } return this.tsParseType(); }), this.semicolon(), this.finishNode(r, "TSTypeAliasDeclaration"); } tsInTopLevelContext(r) { if (this.curContext() !== De.brace) { let s = this.state.context; this.state.context = [s[0]]; try { return r(); } finally { this.state.context = s; } } else return r(); } tsInType(r) { let s = this.state.inType; this.state.inType = !0; try { return r(); } finally { this.state.inType = s; } } tsInDisallowConditionalTypesContext(r) { let s = this.state.inDisallowConditionalTypesContext; this.state.inDisallowConditionalTypesContext = !0; try { return r(); } finally { this.state.inDisallowConditionalTypesContext = s; } } tsInAllowConditionalTypesContext(r) { let s = this.state.inDisallowConditionalTypesContext; this.state.inDisallowConditionalTypesContext = !1; try { return r(); } finally { this.state.inDisallowConditionalTypesContext = s; } } tsEatThenParseType(r) { if (this.match(r)) return this.tsNextThenParseType(); } tsExpectThenParseType(r) { return this.tsInType(() => (this.expect(r), this.tsParseType())); } tsNextThenParseType() { return this.tsInType(() => (this.next(), this.tsParseType())); } tsParseEnumMember() { let r = this.startNode(); 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, s = {}) { return s.const && (r.const = !0), s.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, s = !1) { if (r.id = this.parseIdentifier(), s || this.checkIdentifier(r.id, 1024), this.eat(16)) { let n = this.startNode(); this.tsParseModuleOrNamespaceDeclaration(n, !0), r.body = n; } 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 = "modul\ e", 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, "TSModuleDeclarat\ ion"); } tsParseImportEqualsDeclaration(r, s, n) { r.isExport = n || !1, r.id = s || this.parseIdentifier(), this.checkIdentifier(r.id, 4096), this.expect(29); let a = this.tsParseModuleReference(); return r.importKind === "type" && a.type !== "TSExternalModuleReference" && this.raise(Z.ImportAliasHasImportType, a), r.moduleReference = a, 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 s = this.state.clone(), n = r(); return this.state = s, n; } tsTryParseAndCatch(r) { let s = this.tryParse((n) => r() || n()); if (!(s.aborted || !s.node)) return s.error && (this.state = s.failState), s.node; } tsTryParse(r) { let s = this.state.clone(), n = r(); if (n !== void 0 && n !== !1) return n; this.state = s; } tsTryParseDeclare(r) { if (this.isLineTerminator()) return; let s = this.state.type; return this.tsInAmbientContext(() => { switch (s) { case 68: return r.declare = !0, super.parseFunctionStatement(r, !1, !1); case 80: return r.declare = !0, this.parseClass(r, !0, !1); case 126: return this.tsParseEnumDeclaration(r, { declare: !0 }); case 112: return this.tsParseAmbientExternalModuleDeclaration(r); case 100: if (this.state.containsEsc) return; case 75: case 74: 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(Z.InvalidModifierOnUsingDeclaration, this.state.startLoc, "declare"), r.declare = !0, this.parseVarStatement( r, "using", !0); break; case 96: if (this.isAwaitUsing()) return this.raise(Z.InvalidModifierOnAwaitUsingDeclaration, this.state.startLoc, "declare"), r.declare = !0, this.next(), this. parseVarStatement(r, "await using", !0); break; case 129: { let n = this.tsParseInterfaceDeclaration(r, { declare: !0 }); if (n) return n; } default: if (Be(s)) return this.tsParseDeclaration(r, this.state.type, !0, null); } }); } tsTryParseExportDeclaration() { return this.tsParseDeclaration(this.startNode(), this.state.type, !0, null); } tsParseDeclaration(r, s, n, a) { switch (s) { case 124: if (this.tsCheckLineTerminator(n) && (this.match(80) || Be(this.state.type))) return this.tsParseAbstractDeclaration(r, a); break; case 127: if (this.tsCheckLineTerminator(n)) { if (this.match(134)) return this.tsParseAmbientExternalModuleDeclaration(r); if (Be(this.state.type)) return r.kind = "module", this.tsParseModuleOrNamespaceDeclaration(r); } break; case 128: if (this.tsCheckLineTerminator(n) && Be(this.state.type)) return r.kind = "namespace", this.tsParseModuleOrNamespaceDeclaration(r); break; case 130: if (this.tsCheckLineTerminator(n) && Be(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 s = this.state.maybeInArrowParameters; this.state.maybeInArrowParameters = !0; let n = this.tsTryParseAndCatch(() => { let a = this.startNodeAt(r); return a.typeParameters = this.tsParseTypeParameters(this.tsParseConstModifier), super.parseFunctionParams(a), a.returnType = this.tsTryParseTypeOrTypePredicateAnnotation(), this.expect(19), a; }); if (this.state.maybeInArrowParameters = s, !!n) return super.parseArrowExpression(n, 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("TypeParametersOrArgu\ ments", this.tsParseType.bind(this))))), r.params.length === 0 ? this.raise(Z.EmptyTypeArguments, r) : !this.state.inType && this.curContext() === De.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode(r, "TSTypeParameterInstantiation"); } tsIsDeclarationStart() { return KY(this.state.type); } isExportDefaultSpecifier() { return this.tsIsDeclarationStart() ? !1 : super.isExportDefaultSpecifier(); } parseBindingElement(r, s) { let n = s.length ? s[0].loc.start : this.state.startLoc, a = {}; this.tsParseModifiers({ allowedModifiers: ["public", "private", "protected", "override", "readonly"] }, a); let o = a.accessibility, l = a.override, u = a.readonly; !(r & 4) && (o || u || l) && this.raise(Z.UnexpectedParameterModifier, n); let c = this.parseMaybeDefault(); r & 2 && this.parseFunctionParamType(c); let p = this.parseMaybeDefault(c.loc.start, c); if (o || u || l) { let f = this.startNodeAt(n); return s.length && (f.decorators = s), o && (f.accessibility = o), u && (f.readonly = u), l && (f.override = l), p.type !== "Identif\ ier" && p.type !== "AssignmentPattern" && this.raise(Z.UnsupportedParameterPropertyKind, f), f.parameter = p, this.finishNode(f, "TSParamete\ rProperty"); } return s.length && (c.decorators = s), p; } isSimpleParameter(r) { return r.type === "TSParameterProperty" && super.isSimpleParameter(r.parameter) || super.isSimpleParameter(r); } tsDisallowOptionalPattern(r) { for (let s of r.params) s.type !== "Identifier" && s.optional && !this.state.isAmbientContext && this.raise(Z.PatternIsOptional, s); } setArrowFunctionParameters(r, s, n) { super.setArrowFunctionParameters(r, s, n), this.tsDisallowOptionalPattern(r); } parseFunctionBodyAndFinish(r, s, n = !1) { this.match(14) && (r.returnType = this.tsParseTypeOrTypePredicateAnnotation(14)); let a = s === "FunctionDeclaration" ? "TSDeclareFunction" : s === "ClassMethod" || s === "ClassPrivateMethod" ? "TSDeclareMethod" : void 0; return a && !this.match(5) && this.isLineTerminator() ? this.finishNode(r, a) : a === "TSDeclareFunction" && this.state.isAmbientContext && (this.raise(Z.DeclareFunctionHasImplementation, r), r.declare) ? super.parseFunctionBodyAndFinish(r, a, n) : (this.tsDisallowOptionalPattern( r), super.parseFunctionBodyAndFinish(r, s, n)); } registerFunctionStatementId(r) { !r.body && r.id ? this.checkIdentifier(r.id, 1024) : super.registerFunctionStatementId(r); } tsCheckForInvalidTypeCasts(r) { r.forEach((s) => { s?.type === "TSTypeCastExpression" && this.raise(Z.UnexpectedTypeAnnotation, s.typeAnnotation); }); } toReferencedList(r, s) { return this.tsCheckForInvalidTypeCasts(r), r; } parseArrayLike(r, s, n) { let a = super.parseArrayLike(r, s, n); return a.type === "ArrayExpression" && this.tsCheckForInvalidTypeCasts(a.elements), a; } parseSubscript(r, s, n, a) { if (!this.hasPrecedingLineBreak() && this.match(35)) { this.state.canStartJSXElement = !1, this.next(); let l = this.startNodeAt(s); return l.expression = r, this.finishNode(l, "TSNonNullExpression"); } let o = !1; if (this.match(18) && this.lookaheadCharCode() === 60) { if (n) return a.stop = !0, r; a.optionalChainMember = o = !0, this.next(); } if (this.match(47) || this.match(51)) { let l, u = this.tsTryParseAndCatch(() => { if (!n && this.atPossibleAsyncArrow(r)) { let h = this.tsTryParseGenericAsyncArrowFunction(s); if (h) return a.stop = !0, h; } let c = this.tsParseTypeArgumentsInExpression(); if (!c) return; if (o && !this.match(10)) { l = this.state.curPosition(); return; } if (Yl(this.state.type)) { let h = super.parseTaggedTemplateExpression(r, s, a); return h.typeParameters = c, h; } if (!n && this.eat(10)) { let h = this.startNodeAt(s); return h.callee = r, h.arguments = this.parseCallExpressionArguments(), this.tsCheckForInvalidTypeCasts(h.arguments), h.typeParameters = c, a.optionalChainMember && (h.optional = o), this.finishCallExpression(h, a.optionalChainMember); } let p = this.state.type; if (p === 48 || p === 52 || p !== 10 && Ka(p) && !this.hasPrecedingLineBreak()) return; let f = this.startNodeAt(s); return f.expression = r, f.typeParameters = c, this.finishNode(f, "TSInstantiationExpression"); }); if (l && this.unexpected(l, 10), u) return u.type === "TSInstantiationExpression" && ((this.match(16) || this.match(18) && this.lookaheadCharCode() !== 40) && this.raise( Z.InvalidPropertyAccessAfterInstantiationExpression, this.state.startLoc), !this.match(16) && !this.match(18) && (u.expression = super. stopParseSubscript(r, a))), u; } return super.parseSubscript(r, s, n, a); } parseNewCallee(r) { var s; super.parseNewCallee(r); let { callee: n } = r; n.type === "TSInstantiationExpression" && !((s = n.extra) != null && s.parenthesized) && (r.typeParameters = n.typeParameters, r.callee = n.expression); } parseExprOp(r, s, n) { let a; if (Vl(58) > n && !this.hasPrecedingLineBreak() && (this.isContextual(93) || (a = this.isContextual(120)))) { let o = this.startNodeAt(s); return o.expression = r, o.typeAnnotation = this.tsInType(() => (this.next(), this.match(75) ? (a && this.raise(N.UnexpectedKeyword, this.state.startLoc, { keyword: "const" }), this.tsParseTypeReference()) : this.tsParseType())), this.finishNode(o, a ? "TSSatisfiesExpression" : "TSAsExpression"), this.reScan_lt_gt(), this.parseExprOp(o, s, n); } return super.parseExprOp(r, s, n); } checkReservedWord(r, s, n, a) { this.state.isAmbientContext || super.checkReservedWord(r, s, n, a); } checkImportReflection(r) { super.checkImportReflection(r), r.module && r.importKind !== "value" && this.raise(Z.ImportReflectionHasImportType, r.specifiers[0].loc. start); } checkDuplicateExports() { } isPotentialImportPhase(r) { if (super.isPotentialImportPhase(r)) return !0; if (this.isContextual(130)) { let s = this.lookaheadCharCode(); return r ? s === 123 || s === 42 : s !== 61; } return !r && this.isContextual(87); } applyImportPhase(r, s, n, a) { super.applyImportPhase(r, s, n, a), s ? r.exportKind = n === "type" ? "type" : "value" : r.importKind = n === "type" || n === "typeof" ? n : "value"; } parseImport(r) { if (this.match(134)) return r.importKind = "value", super.parseImport(r); let s; if (Be(this.state.type) && this.lookaheadCharCode() === 61) return r.importKind = "value", this.tsParseImportEqualsDeclaration(r); if (this.isContextual(130)) { let n = this.parseMaybeImportPhase(r, !1); if (this.lookaheadCharCode() === 61) return this.tsParseImportEqualsDeclaration(r, n); s = super.parseImportSpecifiersAndAfter(r, n); } else s = super.parseImport(r); return s.importKind === "type" && s.specifiers.length > 1 && s.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(Z.TypeImportCannotSpecifyDefaultAndNamed, s), s; } parseExport(r, s) { if (this.match(83)) { let n = r; this.next(); let a = null; return this.isContextual(130) && this.isPotentialImportPhase(!1) ? a = this.parseMaybeImportPhase(n, !1) : n.importKind = "value", this. tsParseImportEqualsDeclaration(n, a, !0); } else if (this.eat(29)) { let n = r; return n.expression = super.parseExpression(), this.semicolon(), this.sawUnambiguousESM = !0, this.finishNode(n, "TSExportAssignment"); } else if (this.eatContextual(93)) { let n = r; return this.expectContextual(128), n.id = this.parseIdentifier(), this.semicolon(), this.finishNode(n, "TSNamespaceExportDeclaration"); } else return super.parseExport(r, s); } isAbstractClass() { return this.isContextual(124) && this.isLookaheadContextual("class"); } parseExportDefaultExpression() { if (this.isAbstractClass()) { let r = this.startNode(); return this.next(), r.abstract = !0, this.parseClass(r, !0, !0); } if (this.match(129)) { let r = this.tsParseInterfaceDeclaration(this.startNode()); if (r) return r; } return super.parseExportDefaultExpression(); } parseVarStatement(r, s, n = !1) { let { isAmbientContext: a } = this.state, o = super.parseVarStatement(r, s, n || a); if (!a) return o; if (!r.declare && (s === "using" || s === "await using")) return this.raiseOverwrite(Z.UsingDeclarationInAmbientContext, r, s), o; for (let { id: l, init: u } of o.declarations) u && (s === "var" || s === "let" || l.typeAnnotation ? this.raise(Z.InitializerNotAllowedInAmbientContext, u) : AH(u, this.hasPlugin( "estree")) || this.raise(Z.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference, u)); return o; } parseStatementContent(r, s) { if (!this.state.containsEsc) switch (this.state.type) { case 75: { if (this.isLookaheadContextual("enum")) { let n = this.startNode(); return this.expect(75), this.tsParseEnumDeclaration(n, { const: !0 }); } break; } case 124: case 125: { if (this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()) { let n = this.state.type, a = this.startNode(); this.next(); let o = n === 125 ? this.tsTryParseDeclare(a) : this.tsParseAbstractDeclaration(a, s); return o ? (n === 125 && (o.declare = !0), o) : (a.expression = this.createIdentifier(this.startNodeAt(a.loc.start), n === 125 ? "declare" : "abstract"), this.semicolon(!1), this.finishNode(a, "ExpressionStatement")); } break; } case 126: return this.tsParseEnumDeclaration(this.startNode()); case 112: { if (this.lookaheadCharCode() === 123) { let a = this.startNode(); return this.tsParseAmbientExternalModuleDeclaration(a); } break; } case 129: { let n = this.tsParseInterfaceDeclaration(this.startNode()); if (n) return n; break; } case 127: { if (this.nextTokenIsIdentifierOrStringLiteralOnSameLine()) { let n = this.startNode(); return this.next(), this.tsParseDeclaration(n, 127, !1, s); } break; } case 128: { if (this.nextTokenIsIdentifierOnSameLine()) { let n = this.startNode(); return this.next(), this.tsParseDeclaration(n, 128, !1, s); } break; } case 130: { if (this.nextTokenIsIdentifierOnSameLine()) { let n = this.startNode(); return this.next(), this.tsParseTypeAliasDeclaration(n); } break; } } return super.parseStatementContent(r, s); } parseAccessModifier() { return this.tsParseModifier(["public", "protected", "private"]); } tsHasSomeModifiers(r, s) { return s.some((n) => ux(n) ? r.accessibility === n : !!r[n]); } tsIsStartOfStaticBlocks() { return this.isContextual(106) && this.lookaheadCharCode() === 123; } parseClassMember(r, s, n) { let a = ["declare", "private", "public", "protected", "override", "abstract", "readonly", "static"]; this.tsParseModifiers({ allowedModifiers: a, disallowedModifiers: ["in", "out"], stopOnStartOfClassStaticBlock: !0, errorTemplate: Z.InvalidModifierOnTypeParameterPositions }, s); let o = /* @__PURE__ */ i(() => { this.tsIsStartOfStaticBlocks() ? (this.next(), this.next(), this.tsHasSomeModifiers(s, a) && this.raise(Z.StaticBlockCannotHaveModifier, this.state.curPosition()), super.parseClassStaticBlock(r, s)) : this.parseClassMemberWithIsStatic(r, s, n, !!s.static); }, "callParseClassMemberWithIsStatic"); s.declare ? this.tsInAmbientContext(o) : o(); } parseClassMemberWithIsStatic(r, s, n, a) { let o = this.tsTryParseIndexSignature(s); if (o) { r.body.push(o), s.abstract && this.raise(Z.IndexSignatureHasAbstract, s), s.accessibility && this.raise(Z.IndexSignatureHasAccessibility, s, { modifier: s.accessibility }), s.declare && this.raise(Z.IndexSignatureHasDeclare, s), s.override && this.raise(Z.IndexSignatureHasOverride, s); return; } !this.state.inAbstractClass && s.abstract && this.raise(Z.NonAbstractClassHasAbstractMethod, s), s.override && (n.hadSuperClass || this. raise(Z.OverrideNotInSubClass, s)), super.parseClassMemberWithIsStatic(r, s, n, a); } parsePostMemberNameModifiers(r) { this.eat(17) && (r.optional = !0), r.readonly && this.match(10) && this.raise(Z.ClassMethodHasReadonly, r), r.declare && this.match(10) && this.raise(Z.ClassMethodHasDeclare, r); } shouldParseExportDeclaration() { return this.tsIsDeclarationStart() ? !0 : super.shouldParseExportDeclaration(); } parseConditional(r, s, n) { if (!this.match(17)) return r; if (this.state.maybeInArrowParameters) { let a = this.lookaheadCharCode(); if (a === 44 || a === 61 || a === 58 || a === 41) return this.setOptionalParametersError(n), r; } return super.parseConditional(r, s, n); } parseParenItem(r, s) { let n = super.parseParenItem(r, s); if (this.eat(17) && (n.optional = !0, this.resetEndLocation(r)), this.match(14)) { let a = this.startNodeAt(s); return a.expression = r, a.typeAnnotation = this.tsParseTypeAnnotation(), this.finishNode(a, "TSTypeCastExpression"); } return r; } parseExportDeclaration(r) { if (!this.state.isAmbientContext && this.isContextual(125)) return this.tsInAmbientContext(() => this.parseExportDeclaration(r)); let s = this.state.startLoc, n = this.eatContextual(125); if (n && (this.isContextual(125) || !this.shouldParseExportDeclaration())) throw this.raise(Z.ExpectedAmbientAfterExportDeclare, this.state.startLoc); let o = Be(this.state.type) && this.tsTryParseExportDeclaration() || super.parseExportDeclaration(r); return o ? ((o.type === "TSInterfaceDeclaration" || o.type === "TSTypeAliasDeclaration" || n) && (r.exportKind = "type"), n && o.type !== "TSImportEqualsDeclaration" && (this.resetStartLocation(o, s), o.declare = !0), o) : null; } parseClassId(r, s, n, a) { if ((!s || n) && this.isContextual(113)) return; super.parseClassId(r, s, n, r.declare ? 1024 : 8331); let o = this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers); o && (r.typeParameters = o); } parseClassPropertyAnnotation(r) { r.optional || (this.eat(35) ? r.definite = !0 : this.eat(17) && (r.optional = !0)); let s = this.tsTryParseTypeAnnotation(); s && (r.typeAnnotation = s); } parseClassProperty(r) { if (this.parseClassPropertyAnnotation(r), this.state.isAmbientContext && !(r.readonly && !r.typeAnnotation) && this.match(29) && this. raise(Z.DeclareClassFieldHasInitializer, this.state.startLoc), r.abstract && this.match(29)) { let { key: s } = r; this.raise(Z.AbstractPropertyHasInitializer, this.state.startLoc, { propertyName: s.type === "Identifier" && !r.computed ? s.name : `[${this.input.slice(this.offsetToSourcePos(s.start), this.offsetToSourcePos( s.end))}]` }); } return super.parseClassProperty(r); } parseClassPrivateProperty(r) { return r.abstract && this.raise(Z.PrivateElementHasAbstract, r), r.accessibility && this.raise(Z.PrivateElementHasAccessibility, r, { modifier: r.accessibility }), this.parseClassPropertyAnnotation(r), super.parseClassPrivateProperty(r); } parseClassAccessorProperty(r) { return this.parseClassPropertyAnnotation(r), r.optional && this.raise(Z.AccessorCannotBeOptional, r), super.parseClassAccessorProperty( r); } pushClassMethod(r, s, n, a, o, l) { let u = this.tsTryParseTypeParameters(this.tsParseConstModifier); u && o && this.raise(Z.ConstructorHasTypeParameters, u); let { declare: c = !1, kind: p } = s; c && (p === "get" || p === "set") && this.raise(Z.DeclareAccessor, s, { kind: p }), u && (s.typeParameters = u), super.pushClassMethod(r, s, n, a, o, l); } pushClassPrivateMethod(r, s, n, a) { let o = this.tsTryParseTypeParameters(this.tsParseConstModifier); o && (s.typeParameters = o), super.pushClassPrivateMethod(r, s, n, a); } declareClassPrivateMethodInScope(r, s) { r.type !== "TSDeclareMethod" && (r.type === "MethodDefinition" && r.value.body == null || super.declareClassPrivateMethodInScope(r, s)); } 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, s, n, a, o, l, u) { let c = this.tsTryParseTypeParameters(this.tsParseConstModifier); return c && (r.typeParameters = c), super.parseObjPropValue(r, s, n, a, o, l, u); } parseFunctionParams(r, s) { let n = this.tsTryParseTypeParameters(this.tsParseConstModifier); n && (r.typeParameters = n), super.parseFunctionParams(r, s); } parseVarId(r, s) { super.parseVarId(r, s), r.id.type === "Identifier" && !this.hasPrecedingLineBreak() && this.eat(35) && (r.definite = !0); let n = this.tsTryParseTypeAnnotation(); n && (r.id.typeAnnotation = n, this.resetEndLocation(r.id)); } parseAsyncArrowFromCallExpression(r, s) { return this.match(14) && (r.returnType = this.tsParseTypeAnnotation()), super.parseAsyncArrowFromCallExpression(r, s); } parseMaybeAssign(r, s) { var n, a, o, l, u; let c, p, f; if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) { if (c = this.state.clone(), p = this.tryParse(() => super.parseMaybeAssign(r, s), c), !p.error) return p.node; let { context: T } = this.state, d = T[T.length - 1]; (d === De.j_oTag || d === De.j_expr) && T.pop(); } if (!((n = p) != null && n.error) && !this.match(47)) return super.parseMaybeAssign(r, s); (!c || c === this.state) && (c = this.state.clone()); let h, b = this.tryParse((T) => { var d, g; h = this.tsParseTypeParameters(this.tsParseConstModifier); let D = super.parseMaybeAssign(r, s); return (D.type !== "ArrowFunctionExpression" || (d = D.extra) != null && d.parenthesized) && T(), ((g = h) == null ? void 0 : g.params. length) !== 0 && this.resetStartLocationFromNode(D, h), D.typeParameters = h, D; }, c); if (!b.error && !b.aborted) return h && this.reportReservedArrowTypeParam(h), b.node; if (!p && (lx(!this.hasPlugin("jsx")), f = this.tryParse(() => super.parseMaybeAssign(r, s), c), !f.error)) return f.node; if ((a = p) != null && a.node) return this.state = p.failState, p.node; if (b.node) return this.state = b.failState, h && this.reportReservedArrowTypeParam(h), b.node; if ((o = f) != null && o.node) return this.state = f.failState, f.node; throw ((l = p) == null ? void 0 : l.error) || b.error || ((u = f) == null ? void 0 : u.error); } reportReservedArrowTypeParam(r) { var s; r.params.length === 1 && !r.params[0].constraint && !((s = r.extra) != null && s.trailingComma) && this.getPluginOption("typescript", "\ disallowAmbiguousJSXLike") && this.raise(Z.ReservedArrowTypeParam, r); } parseMaybeUnary(r, s) { return !this.hasPlugin("jsx") && this.match(47) ? this.tsParseTypeAssertion() : super.parseMaybeUnary(r, s); } parseArrow(r) { if (this.match(14)) { let s = this.tryParse((n) => { let a = this.tsParseTypeOrTypePredicateAnnotation(14); return (this.canInsertSemicolon() || !this.match(19)) && n(), a; }); if (s.aborted) return; s.thrown || (s.error && (this.state = s.failState), r.returnType = s.node); } return super.parseArrow(r); } parseFunctionParamType(r) { this.eat(17) && (r.optional = !0); let s = this.tsTryParseTypeAnnotation(); return s && (r.typeAnnotation = s), this.resetEndLocation(r), r; } isAssignable(r, s) { switch (r.type) { case "TSTypeCastExpression": return this.isAssignable(r.expression, s); case "TSParameterProperty": return !0; default: return super.isAssignable(r, s); } } toAssignable(r, s = !1) { switch (r.type) { case "ParenthesizedExpression": this.toAssignableParenthesizedExpression(r, s); break; case "TSAsExpression": case "TSSatisfiesExpression": case "TSNonNullExpression": case "TSTypeAssertion": s ? this.expressionScope.recordArrowParameterBindingError(Z.UnexpectedTypeCastInParameter, r) : this.raise(Z.UnexpectedTypeCastInParameter, r), this.toAssignable(r.expression, s); break; case "AssignmentExpression": !s && r.left.type === "TSTypeCastExpression" && (r.left = this.typeCastToParameter(r.left)); default: super.toAssignable(r, s); } } toAssignableParenthesizedExpression(r, s) { switch (r.expression.type) { case "TSAsExpression": case "TSSatisfiesExpression": case "TSNonNullExpression": case "TSTypeAssertion": case "ParenthesizedExpression": this.toAssignable(r.expression, s); break; default: super.toAssignable(r, s); } } checkToRestConversion(r, s) { switch (r.type) { case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSNonNullExpression": this.checkToRestConversion(r.expression, !1); break; default: super.checkToRestConversion(r, s); } } isValidLVal(r, s, n, a) { switch (r) { case "TSTypeCastExpression": return !0; case "TSParameterProperty": return "parameter"; case "TSNonNullExpression": return "expression"; case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": return (a !== 64 || !n) && ["expression", !0]; default: return super.isValidLVal(r, s, n, a); } } parseBindingAtom() { return this.state.type === 78 ? this.parseIdentifier(!0) : super.parseBindingAtom(); } parseMaybeDecoratorArguments(r, s) { if (this.match(47) || this.match(51)) { let n = this.tsParseTypeArgumentsInExpression(); if (this.match(10)) { let a = super.parseMaybeDecoratorArguments(r, s); return a.typeParameters = n, a; } this.unexpected(null, 10); } return super.parseMaybeDecoratorArguments(r, s); } 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, s) { let n = super.parseMaybeDefault(r, s); return n.type === "AssignmentPattern" && n.typeAnnotation && n.right.start < n.typeAnnotation.start && this.raise(Z.TypeAnnotationAfterAssign, n.typeAnnotation), n; } getTokenFromCode(r) { if (this.state.inType) { if (r === 62) { this.finishOp(48, 1); return; } if (r === 60) { this.finishOp(47, 1); return; } } super.getTokenFromCode(r); } reScan_lt_gt() { let { type: r } = this.state; 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; } toAssignableListItem(r, s, n) { let a = r[s]; a.type === "TSTypeCastExpression" && (r[s] = this.typeCastToParameter(a)), super.toAssignableListItem(r, s, n); } typeCastToParameter(r) { return r.expression.typeAnnotation = r.typeAnnotation, this.resetEndLocation(r.expression, r.typeAnnotation.loc.end), r.expression; } shouldParseArrow(r) { return this.match(14) ? r.every((s) => this.isAssignable(s, !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 s = this.tsTryParseAndCatch(() => this.tsParseTypeArgumentsInExpression()); s && (r.typeParameters = s); } return super.jsxParseOpeningElementAfterName(r); } getGetterSetterExpectedParamCount(r) { let s = super.getGetterSetterExpectedParamCount(r), a = this.getObjectOrClassMethodParams(r)[0]; return a && this.isThisParam(a) ? s + 1 : s; } parseCatchClauseParam() { let r = super.parseCatchClauseParam(), s = this.tsTryParseTypeAnnotation(); return s && (r.typeAnnotation = s, this.resetEndLocation(r)), r; } tsInAmbientContext(r) { let { isAmbientContext: s, strict: n } = this.state; this.state.isAmbientContext = !0, this.state.strict = !1; try { return r(); } finally { this.state.isAmbientContext = s, this.state.strict = n; } } parseClass(r, s, n) { let a = this.state.inAbstractClass; this.state.inAbstractClass = !!r.abstract; try { return super.parseClass(r, s, n); } finally { this.state.inAbstractClass = a; } } tsParseAbstractDeclaration(r, s) { if (this.match(80)) return r.abstract = !0, this.maybeTakeDecorators(s, this.parseClass(r, !0, !1)); if (this.isContextual(129)) return this.hasFollowingLineBreak() ? null : (r.abstract = !0, this.raise(Z.NonClassMethodPropertyHasAbstractModifier, r), this.tsParseInterfaceDeclaration( r)); throw this.unexpected(null, 80); } parseMethod(r, s, n, a, o, l, u) { let c = super.parseMethod(r, s, n, a, o, l, u); if ((c.abstract || c.type === "TSAbstractMethodDefinition") && (this.hasPlugin("estree") ? c.value : c).body) { let { key: h } = c; this.raise(Z.AbstractMethodHasImplementation, c, { methodName: h.type === "Identifier" && !c.computed ? h.name : `[${this.input.slice(this.offsetToSourcePos(h.start), this.offsetToSourcePos( h.end))}]` }); } return c; } 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, s, n, a) { return !s && a ? (this.parseTypeOnlyImportExportSpecifier(r, !1, n), this.finishNode(r, "ExportSpecifier")) : (r.exportKind = "value", super.parseExportSpecifier(r, s, n, a)); } parseImportSpecifier(r, s, n, a, o) { return !s && a ? (this.parseTypeOnlyImportExportSpecifier(r, !0, n), this.finishNode(r, "ImportSpecifier")) : (r.importKind = "value", super.parseImportSpecifier(r, s, n, a, n ? 4098 : 4096)); } parseTypeOnlyImportExportSpecifier(r, s, n) { let a = s ? "imported" : "local", o = s ? "local" : "exported", l = r[a], u, c = !1, p = !0, f = l.loc.start; if (this.isContextual(93)) { let b = this.parseIdentifier(); if (this.isContextual(93)) { let T = this.parseIdentifier(); Fr(this.state.type) ? (c = !0, l = b, u = s ? this.parseIdentifier() : this.parseModuleExportName(), p = !1) : (u = T, p = !1); } else Fr(this.state.type) ? (p = !1, u = s ? this.parseIdentifier() : this.parseModuleExportName()) : (c = !0, l = b); } else Fr(this.state.type) && (c = !0, s ? (l = this.parseIdentifier(!0), this.isContextual(93) || this.checkReservedWord(l.name, l.loc. start, !0, !0)) : l = this.parseModuleExportName()); c && n && this.raise(s ? Z.TypeModifierIsUsedInTypeImports : Z.TypeModifierIsUsedInTypeExports, f), r[a] = l, r[o] = u; let h = s ? "importKind" : "exportKind"; r[h] = c ? "type" : "value", p && this.eatContextual(93) && (r[o] = s ? this.parseIdentifier() : this.parseModuleExportName()), r[o] || (r[o] = this.cloneIdentifier(r[a])), s && this.checkIdentifier(r[o], c ? 4098 : 4096); } fillOptionalPropertiesForTSESLint(r) { var s, n, a, o, l, u, c, p, f, h, b, T, d, g, D, _, O, k, j, U, M, $, ee, ae, Q, we, $e, lt, er, wr, Tt, Dr, Ge, _r, ds, xt, je, Ne, Dt, _t, Ir, Sa, Sn, va, Us, $s, Vs, Pa; switch (r.type) { case "ExpressionStatement": (s = r.directive) != null || (r.directive = void 0); return; case "RestElement": r.value = void 0; case "Identifier": case "ArrayPattern": case "AssignmentPattern": case "ObjectPattern": (n = r.decorators) != null || (r.decorators = []), (a = r.optional) != null || (r.optional = !1), (o = r.typeAnnotation) != null || (r.typeAnnotation = void 0); return; case "TSParameterProperty": (l = r.accessibility) != null || (r.accessibility = void 0), (u = r.decorators) != null || (r.decorators = []), (c = r.override) != null || (r.override = !1), (p = r.readonly) != null || (r.readonly = !1), (f = r.static) != null || (r.static = !1); return; case "TSEmptyBodyFunctionExpression": r.body = null; case "TSDeclareFunction": case "FunctionDeclaration": case "FunctionExpression": case "ClassMethod": case "ClassPrivateMethod": (h = r.declare) != null || (r.declare = !1), (b = r.returnType) != null || (r.returnType = void 0), (T = r.typeParameters) != null || (r.typeParameters = void 0); return; case "Property": (d = r.optional) != null || (r.optional = !1); return; case "TSMethodSignature": case "TSPropertySignature": (g = r.optional) != null || (r.optional = !1); case "TSIndexSignature": (D = r.accessibility) != null || (r.accessibility = void 0), (_ = r.readonly) != null || (r.readonly = !1), (O = r.static) != null || (r.static = !1); return; case "TSAbstractPropertyDefinition": case "PropertyDefinition": case "TSAbstractAccessorProperty": case "AccessorProperty": (k = r.declare) != null || (r.declare = !1), (j = r.definite) != null || (r.definite = !1), (U = r.readonly) != null || (r.readonly = !1), (M = r.typeAnnotation) != null || (r.typeAnnotation = void 0); case "TSAbstractMethodDefinition": case "MethodDefinition": ($ = r.accessibility) != null || (r.accessibility = void 0), (ee = r.decorators) != null || (r.decorators = []), (ae = r.override) != null || (r.override = !1), (Q = r.optional) != null || (r.optional = !1); return; case "ClassExpression": (we = r.id) != null || (r.id = null); case "ClassDeclaration": ($e = r.abstract) != null || (r.abstract = !1), (lt = r.declare) != null || (r.declare = !1), (er = r.decorators) != null || (r.decorators = []), (wr = r.implements) != null || (r.implements = []), (Tt = r.superTypeArguments) != null || (r.superTypeArguments = void 0), (Dr = r.typeParameters) != null || (r.typeParameters = void 0); return; case "TSTypeAliasDeclaration": case "VariableDeclaration": (Ge = r.declare) != null || (r.declare = !1); return; case "VariableDeclarator": (_r = r.definite) != null || (r.definite = !1); return; case "TSEnumDeclaration": (ds = r.const) != null || (r.const = !1), (xt = r.declare) != null || (r.declare = !1); return; case "TSEnumMember": (je = r.computed) != null || (r.computed = !1); return; case "TSImportType": (Ne = r.qualifier) != null || (r.qualifier = null), (Dt = r.options) != null || (r.options = null); return; case "TSInterfaceDeclaration": (_t = r.declare) != null || (r.declare = !1), (Ir = r.extends) != null || (r.extends = []); return; case "TSMappedType": (Sa = r.optional) != null || (r.optional = !1), (Sn = r.readonly) != null || (r.readonly = void 0); return; case "TSModuleDeclaration": (va = r.declare) != null || (r.declare = !1), (Us = r.global) != null || (r.global = r.kind === "global"); return; case "TSTypeParameter": ($s = r.const) != null || (r.const = !1), (Vs = r.in) != null || (r.in = !1), (Pa = r.out) != null || (r.out = !1); return; } } chStartsBindingIdentifierAndNotRelationalOperator(r, s) { if (ns(r)) { if (b0.lastIndex = s, b0.test(this.input)) { let n = this.codePointAtPos(b0.lastIndex); if (!On(n) && n !== 92) return !1; } return !0; } else return r === 92; } nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine() { let r = this.nextTokenInLineStart(), s = this.codePointAtPos(r); return this.chStartsBindingIdentifierAndNotRelationalOperator(s, r); } nextTokenIsIdentifierOrStringLiteralOnSameLine() { let r = this.nextTokenInLineStart(), s = this.codePointAtPos(r); return this.chStartsBindingIdentifier(s, r) || s === 34 || s === 39; } }, "typescript"); function PH(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 : Cx(e.object); } i(PH, "isPossiblyLiteralEnum"); function AH(e, t) { var r; let { type: s } = e; if ((r = e.extra) != null && r.parenthesized) return !1; if (t) { if (s === "Literal") { let { value: n } = e; if (typeof n == "string" || typeof n == "boolean") return !0; } } else if (s === "StringLiteral" || s === "BooleanLiteral") return !0; return !!(Ax(e, t) || CH(e, t) || s === "TemplateLiteral" && e.expressions.length === 0 || PH(e)); } i(AH, "isValidAmbientConstInitializer"); function Ax(e, t) { return t ? e.type === "Literal" && (typeof e.value == "number" || "bigint" in e) : e.type === "NumericLiteral" || e.type === "BigIntLite\ ral"; } i(Ax, "isNumber"); function CH(e, t) { if (e.type === "UnaryExpression") { let { operator: r, argument: s } = e; if (r === "-" && Ax(s, t)) return !0; } return !1; } i(CH, "isNegativeNumber"); function Cx(e) { return e.type === "Identifier" ? !0 : e.type !== "MemberExpression" || e.computed ? !1 : Cx(e.object); } i(Cx, "isUncomputedMemberExpressionChain"); var cx = ss`placeholders`({ ClassNameIsRequired: "A class name is required.", UnexpectedSpace: "Unexpected space in placeholder." }), wH = /* @__PURE__ */ i((e) => class extends e { static { i(this, "PlaceholdersParserMixin"); } parsePlaceholder(r) { if (this.match(133)) { let s = this.startNode(); return this.next(), this.assertNoSpace(), s.name = super.parseIdentifier(!0), this.assertNoSpace(), this.expect(133), this.finishPlaceholder( s, r); } } finishPlaceholder(r, s) { let n = r; return (!n.expectedNode || !n.type) && (n = this.finishNode(n, "Placeholder")), n.expectedNode = s, n; } 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, s, n, a) { r !== void 0 && super.checkReservedWord(r, s, n, a); } cloneIdentifier(r) { let s = super.cloneIdentifier(r); return s.type === "Placeholder" && (s.expectedNode = r.expectedNode), s; } cloneStringLiteral(r) { return r.type === "Placeholder" ? this.cloneIdentifier(r) : super.cloneStringLiteral(r); } parseBindingAtom() { return this.parsePlaceholder("Pattern") || super.parseBindingAtom(); } isValidLVal(r, s, n, a) { return r === "Placeholder" || super.isValidLVal(r, s, n, a); } toAssignable(r, s) { r && r.type === "Placeholder" && r.expectedNode === "Expression" ? r.expectedNode = "Pattern" : super.toAssignable(r, s); } chStartsBindingIdentifier(r, s) { if (super.chStartsBindingIdentifier(r, s)) return !0; let n = this.nextTokenStart(); return this.input.charCodeAt(n) === 37 && this.input.charCodeAt(n + 1) === 37; } verifyBreakContinue(r, s) { r.label && r.label.type === "Placeholder" || super.verifyBreakContinue(r, s); } parseExpressionStatement(r, s) { var n; if (s.type !== "Placeholder" || (n = s.extra) != null && n.parenthesized) return super.parseExpressionStatement(r, s); if (this.match(14)) { let o = r; return o.label = this.finishPlaceholder(s, "Identifier"), this.next(), o.body = super.parseStatementOrSloppyAnnexBFunctionDeclaration(), this.finishNode(o, "LabeledStatement"); } this.semicolon(); let a = r; return a.name = s.name, this.finishPlaceholder(a, "Statement"); } parseBlock(r, s, n) { return this.parsePlaceholder("BlockStatement") || super.parseBlock(r, s, n); } parseFunctionId(r) { return this.parsePlaceholder("Identifier") || super.parseFunctionId(r); } parseClass(r, s, n) { let a = s ? "ClassDeclaration" : "ClassExpression"; this.next(); let o = this.state.strict, l = this.parsePlaceholder("Identifier"); if (l) if (this.match(81) || this.match(133) || this.match(5)) r.id = l; else { if (n || !s) return r.id = null, r.body = this.finishPlaceholder(l, "ClassBody"), this.finishNode(r, a); throw this.raise(cx.ClassNameIsRequired, this.state.startLoc); } else this.parseClassId(r, s, n); return super.parseClassSuper(r), r.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!r.superClass, o), this.finishNode( r, a); } parseExport(r, s) { let n = this.parsePlaceholder("Identifier"); if (!n) return super.parseExport(r, s); let a = r; if (!this.isContextual(98) && !this.match(12)) return a.specifiers = [], a.source = null, a.declaration = this.finishPlaceholder(n, "Declaration"), this.finishNode(a, "ExportNamed\ Declaration"); this.expectPlugin("exportDefaultFrom"); let o = this.startNode(); return o.exported = n, a.specifiers = [this.finishNode(o, "ExportDefaultSpecifier")], super.parseExport(a, s); } isExportDefaultSpecifier() { if (this.match(65)) { let r = this.nextTokenStart(); if (this.isUnparsedContextual(r, "from") && this.input.startsWith(zs(133), this.nextTokenStartSince(r + 4))) return !0; } return super.isExportDefaultSpecifier(); } maybeParseExportDefaultSpecifier(r, s) { var n; return (n = r.specifiers) != null && n.length ? !0 : super.maybeParseExportDefaultSpecifier(r, s); } checkExport(r) { let { specifiers: s } = r; s != null && s.length && (r.specifiers = s.filter((n) => n.exported.type === "Placeholder")), super.checkExport(r), r.specifiers = s; } parseImport(r) { let s = this.parsePlaceholder("Identifier"); if (!s) return super.parseImport(r); if (r.specifiers = [], !this.isContextual(98) && !this.match(12)) return r.source = this.finishPlaceholder(s, "StringLiteral"), this.semicolon(), this.finishNode(r, "ImportDeclaration"); let n = this.startNodeAtNode(s); return n.local = s, r.specifiers.push(this.finishNode(n, "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(cx.UnexpectedSpace, this.state.lastTokEndLoc); } }, "placeholders"), DH = /* @__PURE__ */ i((e) => class extends e { static { i(this, "V8IntrinsicMixin"); } parseV8Intrinsic() { if (this.match(54)) { let r = this.state.startLoc, s = this.startNode(); if (this.next(), Be(this.state.type)) { let n = this.parseIdentifierName(), a = this.createIdentifier(s, n); if (this.castNodeTo(a, "V8IntrinsicIdentifier"), this.match(10)) return a; } this.unexpected(r); } } parseExprAtom(r) { return this.parseV8Intrinsic() || super.parseExprAtom(r); } }, "v8intrinsic"), px = ["minimal", "fsharp", "hack", "smart"], fx = ["^^", "@@", "^", "%", "#"]; function _H(e) { if (e.has("decorators")) { if (e.has("decorators-legacy")) throw new Error("Cannot use the decorators and decorators-legacy plugin together"); let s = e.get("decorators").decoratorsBeforeExport; if (s != null && typeof s != "boolean") throw new Error("'decoratorsBeforeExport' must be a boolean, if specified."); let n = e.get("decorators").allowCallParenthesized; if (n != null && typeof n != "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 s = e.get("pipelineOperator").proposal; if (!px.includes(s)) { let n = px.map((a) => `"${a}"`).join(", "); throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${n}.`); } if (s === "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 n = e.get("pipelineOperator").topicToken; if (!fx.includes(n)) { let a = fx.map((o) => `"${o}"`).join(", "); throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${a}\ .`); } { var r; if (n === "#" && ((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 (s === "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 on\ ly 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("deprecat\ edImportAssert", {}), e.has("recordAndTuple")) { let s = e.get("recordAndTuple").syntaxType; if (s != null) { let n = ["hash", "bar"]; if (!n.includes(s)) throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: " + n.map((a) => `'${a}'`).join(", ")); } } if (e.has("asyncDoExpressions") && !e.has("doExpressions")) { let s = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins."); throw s.missingPlugins = "doExpressions", s; } if (e.has("optionalChainingAssign") && e.get("optionalChainingAssign").version !== "2023-07") throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, th\ e 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'."); } i(_H, "validatePlugins"); var wx = { estree: BY, jsx: pH, flow: oH, typescript: vH, v8intrinsic: DH, placeholders: wH }, IH = Object.keys(wx), R0 = class extends M0 { static { i(this, "ExpressionParser"); } checkProto(t, r, s, n) { if (t.type === "SpreadElement" || this.isObjectMethod(t) || t.computed || t.shorthand) return s; let a = t.key; return (a.type === "Identifier" ? a.name : a.value) === "__proto__" ? r ? (this.raise(N.RecordNoProto, a), !0) : (s && (n ? n.doubleProtoLoc === null && (n.doubleProtoLoc = a.loc.start) : this.raise(N.DuplicateProto, a)), !0) : s; } shouldExitDescending(t, r) { return t.type === "ArrowFunctionExpression" && this.offsetToSourcePos(t.start) === r; } getExpression() { if (this.enterInitialScopes(), this.nextToken(), this.match(140)) throw this.raise(N.ParseExpressionEmptyInput, this.state.startLoc); let t = this.parseExpression(); if (!this.match(140)) throw this.raise(N.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, s = this.parseMaybeAssign(t); if (this.match(12)) { let n = this.startNodeAt(r); for (n.expressions = [s]; this.eat(12); ) n.expressions.push(this.parseMaybeAssign(t)); return this.toReferencedList(n.expressions), this.finishNode(n, "SequenceExpression"); } return s; } 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 s = this.state.startLoc, n = this.isContextual(108); if (n && this.prodParam.hasYield) { this.next(); let u = this.parseYield(s); return r && (u = r.call(this, u, s)), u; } let a; t ? a = !1 : (t = new Ci(), a = !0); let { type: o } = this.state; (o === 10 || Be(o)) && (this.state.potentialArrowAt = this.state.start); let l = this.parseMaybeConditional(t); if (r && (l = r.call(this, l, s)), MY(this.state.type)) { let u = this.startNodeAt(s), c = this.state.value; if (u.operator = c, this.match(29)) { this.toAssignable(l, !0), u.left = l; let p = s.index; t.doubleProtoLoc != null && t.doubleProtoLoc.index >= p && (t.doubleProtoLoc = null), t.shorthandAssignLoc != null && t.shorthandAssignLoc. index >= p && (t.shorthandAssignLoc = null), t.privateKeyLoc != null && t.privateKeyLoc.index >= p && (this.checkDestructuringPrivate( t), t.privateKeyLoc = null), t.voidPatternLoc != null && t.voidPatternLoc.index >= p && (t.voidPatternLoc = null); } else u.left = l; return this.next(), u.right = this.parseMaybeAssign(), this.checkLVal(l, this.finishNode(u, "AssignmentExpression"), void 0, void 0, void 0, void 0, c === "||=" || c === "&&=" || c === "??="), u; } else a && this.checkExpressionErrors(t, !0); if (n) { let { type: u } = this.state; if ((this.hasPlugin("v8intrinsic") ? Ka(u) : Ka(u) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier()) return this.raiseOverwrite(N.YieldNotInGeneratorFunction, s), this.parseYield(s); } return l; } parseMaybeConditional(t) { let r = this.state.startLoc, s = this.state.potentialArrowAt, n = this.parseExprOps(t); return this.shouldExitDescending(n, s) ? n : this.parseConditional(n, r, t); } parseConditional(t, r, s) { if (this.eat(17)) { let n = this.startNodeAt(r); return n.test = t, n.consequent = this.parseMaybeAssignAllowIn(), this.expect(14), n.alternate = this.parseMaybeAssign(), this.finishNode( n, "ConditionalExpression"); } return t; } parseMaybeUnaryOrPrivate(t) { return this.match(139) ? this.parsePrivateName() : this.parseMaybeUnary(t); } parseExprOps(t) { let r = this.state.startLoc, s = this.state.potentialArrowAt, n = this.parseMaybeUnaryOrPrivate(t); return this.shouldExitDescending(n, s) ? n : this.parseExprOp(n, r, -1); } parseExprOp(t, r, s) { if (this.isPrivateName(t)) { let a = this.getPrivateNameSV(t); (s >= Vl(58) || !this.prodParam.hasIn || !this.match(58)) && this.raise(N.PrivateInExpectedIn, t, { identifierName: a }), this.classScope.usePrivateName(a, t.loc.start); } let n = this.state.type; if (qY(n) && (this.prodParam.hasIn || !this.match(58))) { let a = Vl(n); if (a > s) { if (n === 39) { if (this.expectPlugin("pipelineOperator"), this.state.inFSharpPipelineDirectBody) return t; this.checkPipelineAtInfixOperator(t, r); } let o = this.startNodeAt(r); o.left = t, o.operator = this.state.value; let l = n === 41 || n === 42, u = n === 40; if (u && (a = Vl(42)), this.next(), n === 39 && this.hasPlugin(["pipelineOperator", { proposal: "minimal" }]) && this.state.type === 96 && this.prodParam.hasAwait) throw this.raise(N.UnexpectedAwaitAfterPipelineBody, this.state.startLoc); o.right = this.parseExprOpRightExpr(n, a); let c = this.finishNode(o, l || u ? "LogicalExpression" : "BinaryExpression"), p = this.state.type; if (u && (p === 41 || p === 42) || l && p === 40) throw this.raise(N.MixingCoalesceWithLogical, this.state.startLoc); return this.parseExprOp(c, r, s); } } return t; } parseExprOpRightExpr(t, r) { let s = 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(N.PipeBodyIsTighter, this.state.startLoc); return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t, r), s); }); default: return this.parseExprOpBaseRightExpr(t, r); } } parseExprOpBaseRightExpr(t, r) { let s = this.state.startLoc; return this.parseExprOp(this.parseMaybeUnaryOrPrivate(), s, WY(t) ? r - 1 : r); } parseHackPipeBody() { var t; let { startLoc: r } = this.state, s = this.parseMaybeAssign(); return CY.has(s.type) && !((t = s.extra) != null && t.parenthesized) && this.raise(N.PipeUnparenthesizedBody, r, { type: s.type }), this.topicReferenceWasUsedInCurrentContext() || this.raise(N.PipeTopicUnused, r), s; } checkExponentialAfterUnary(t) { this.match(57) && this.raise(N.UnexpectedTokenUnaryExponentiation, t.argument); } parseMaybeUnary(t, r) { let s = this.state.startLoc, n = this.isContextual(96); if (n && this.recordAwaitIfAllowed()) { this.next(); let u = this.parseAwait(s); return r || this.checkExponentialAfterUnary(u), u; } let a = this.match(34), o = this.startNode(); if ($Y(this.state.type)) { o.operator = this.state.value, o.prefix = !0, this.match(72) && this.expectPlugin("throwExpressions"); let u = this.match(89); if (this.next(), o.argument = this.parseMaybeUnary(null, !0), this.checkExpressionErrors(t, !0), this.state.strict && u) { let c = o.argument; c.type === "Identifier" ? this.raise(N.StrictDelete, o) : this.hasPropertyAsPrivateName(c) && this.raise(N.DeletePrivateField, o); } if (!a) return r || this.checkExponentialAfterUnary(o), this.finishNode(o, "UnaryExpression"); } let l = this.parseUpdate(o, a, t); if (n) { let { type: u } = this.state; if ((this.hasPlugin("v8intrinsic") ? Ka(u) : Ka(u) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier()) return this.raiseOverwrite(N.AwaitNotInAsyncContext, s), this.parseAwait(s); } return l; } parseUpdate(t, r, s) { if (r) { let o = t; return this.checkLVal(o.argument, this.finishNode(o, "UpdateExpression")), t; } let n = this.state.startLoc, a = this.parseExprSubscripts(s); if (this.checkExpressionErrors(s, !1)) return a; for (; UY(this.state.type) && !this.canInsertSemicolon(); ) { let o = this.startNodeAt(n); o.operator = this.state.value, o.prefix = !1, o.argument = a, this.next(), this.checkLVal(a, a = this.finishNode(o, "UpdateExpressio\ n")); } return a; } parseExprSubscripts(t) { let r = this.state.startLoc, s = this.state.potentialArrowAt, n = this.parseExprAtom(t); return this.shouldExitDescending(n, s) ? n : this.parseSubscripts(n, r); } parseSubscripts(t, r, s) { let n = { optionalChainMember: !1, maybeAsyncArrow: this.atPossibleAsyncArrow(t), stop: !1 }; do t = this.parseSubscript(t, r, s, n), n.maybeAsyncArrow = !1; while (!n.stop); return t; } parseSubscript(t, r, s, n) { let { type: a } = this.state; if (!s && a === 15) return this.parseBind(t, r, s, n); if (Yl(a)) return this.parseTaggedTemplateExpression(t, r, n); let o = !1; if (a === 18) { if (s && (this.raise(N.OptionalChainingNoNew, this.state.startLoc), this.lookaheadCharCode() === 40)) return this.stopParseSubscript(t, n); n.optionalChainMember = o = !0, this.next(); } if (!s && this.match(10)) return this.parseCoverCallAndAsyncArrowHead(t, r, n, o); { let l = this.eat(0); return l || o || this.eat(16) ? this.parseMember(t, r, n, l, o) : this.stopParseSubscript(t, n); } } stopParseSubscript(t, r) { return r.stop = !0, t; } parseMember(t, r, s, n, a) { let o = this.startNodeAt(r); return o.object = t, o.computed = n, n ? (o.property = this.parseExpression(), this.expect(3)) : this.match(139) ? (t.type === "Super" && this.raise(N.SuperPrivateField, r), this.classScope.usePrivateName(this.state.value, this.state.startLoc), o.property = this.parsePrivateName()) : o.property = this.parseIdentifier(!0), s.optionalChainMember ? (o.optional = a, this.finishNode(o, "OptionalMemberExpression")) : this. finishNode(o, "MemberExpression"); } parseBind(t, r, s, n) { let a = this.startNodeAt(r); return a.object = t, this.next(), a.callee = this.parseNoCallExpr(), n.stop = !0, this.parseSubscripts(this.finishNode(a, "BindExpress\ ion"), r, s); } parseCoverCallAndAsyncArrowHead(t, r, s, n) { let a = this.state.maybeInArrowParameters, o = null; this.state.maybeInArrowParameters = !0, this.next(); let l = this.startNodeAt(r); l.callee = t; let { maybeAsyncArrow: u, optionalChainMember: c } = s; u && (this.expressionScope.enter(TH()), o = new Ci()), c && (l.optional = n), n ? l.arguments = this.parseCallExpressionArguments() : l. arguments = this.parseCallExpressionArguments(t.type !== "Super", l, o); let p = this.finishCallExpression(l, c); return u && this.shouldParseAsyncArrow() && !n ? (s.stop = !0, this.checkDestructuringPrivate(o), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), p = this.parseAsyncArrowFromCallExpression(this.startNodeAt(r), p)) : (u && (this.checkExpressionErrors(o, !0), this.expressionScope.exit()), this.toReferencedArguments(p)), this.state.maybeInArrowParameters = a, p; } toReferencedArguments(t, r) { this.toReferencedListDeep(t.arguments, r); } parseTaggedTemplateExpression(t, r, s) { let n = this.startNodeAt(r); return n.tag = t, n.quasi = this.parseTemplate(!0), s.optionalChainMember && this.raise(N.OptionalChainingNoTemplate, r), this.finishNode( n, "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(N.ImportCallArity, t); else for (let s of t.arguments) s.type === "SpreadElement" && this.raise(N.ImportCallSpreadArgument, s); return this.finishNode(t, r ? "OptionalCallExpression" : "CallExpression"); } parseCallExpressionArguments(t, r, s) { let n = [], a = !0, o = this.state.inFSharpPipelineDirectBody; for (this.state.inFSharpPipelineDirectBody = !1; !this.eat(11); ) { if (a) a = !1; else if (this.expect(12), this.match(11)) { r && this.addTrailingCommaExtraToNode(r), this.next(); break; } n.push(this.parseExprListItem(11, !1, s, t)); } return this.state.inFSharpPipelineDirectBody = o, n; } shouldParseAsyncArrow() { return this.match(19) && !this.canInsertSemicolon(); } parseAsyncArrowFromCallExpression(t, r) { var s; return this.resetPreviousNodeTrailingComments(r), this.expect(19), this.parseArrowExpression(t, r.arguments, !0, (s = r.extra) == null ? void 0 : s.trailingCommaLoc), r.innerComments && Ga(t, r.innerComments), r.callee.trailingComments && Ga(t, r.callee.trailingComments), t; } parseNoCallExpr() { let t = this.state.startLoc; return this.parseSubscripts(this.parseExprAtom(), t, !0); } parseExprAtom(t) { let r, s = null, { type: n } = this.state; switch (n) { 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(N.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 a = this.state.potentialArrowAt === this.state.start; return this.parseParenAndDistinguishExpression(a); } case 0: return this.parseArrayLike(3, !1, t); case 5: return this.parseObjectLike(8, !1, !1, t); case 68: return this.parseFunctionOrFunctionSent(); case 26: s = this.parseDecorators(); case 80: return this.parseClass(this.maybeTakeDecorators(s, 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 a = r.callee = this.parseNoCallExpr(); if (a.type === "MemberExpression") return this.finishNode(r, "BindExpression"); throw this.raise(N.UnsupportedBind, a); } case 139: return this.raise(N.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 a = this.getPluginOption("pipelineOperator", "proposal"); if (a) return this.parseTopicReference(a); throw this.unexpected(); } case 47: { let a = this.input.codePointAt(this.nextTokenStart()); throw ns(a) || a === 62 ? this.expectOnePlugin(["jsx", "flow", "typescript"]) : this.unexpected(); } default: { if (n === 137) return this.parseDecimalLiteral(this.state.value); if (n === 2 || n === 1) return this.parseArrayLike(this.state.type === 2 ? 4 : 3, !0); if (n === 6 || n === 7) return this.parseObjectLike(this.state.type === 6 ? 9 : 8, !1, !0); } if (Be(n)) { if (this.isContextual(127) && this.lookaheadInLineCharCode() === 123) return this.parseModuleExpression(); let a = this.state.potentialArrowAt === this.state.start, o = this.state.containsEsc, l = this.parseIdentifier(); if (!o && l.name === "async" && !this.canInsertSemicolon()) { let { type: u } = this.state; if (u === 68) return this.resetPreviousNodeTrailingComments(l), this.next(), this.parseAsyncFunctionExpression(this.startNodeAtNode(l)); if (Be(u)) return this.lookaheadCharCode() === 61 ? this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(l)) : l; if (u === 90) return this.resetPreviousNodeTrailingComments(l), this.parseDo(this.startNodeAtNode(l), !0); } return a && this.match(19) && !this.canInsertSemicolon() ? (this.next(), this.parseArrowExpression(this.startNodeAtNode(l), [l], !1)) : l; } else throw this.unexpected(); } } parseTopicReferenceThenEqualsSign(t, r) { let s = this.getPluginOption("pipelineOperator", "proposal"); if (s) return this.state.type = t, this.state.value = r, this.state.pos--, this.state.end--, this.state.endLoc = Kt(this.state.endLoc, -1), this.parseTopicReference(s); throw this.unexpected(); } parseTopicReference(t) { let r = this.startNode(), s = this.state.startLoc, n = this.state.type; return this.next(), this.finishTopicReference(r, s, t, n); } finishTopicReference(t, r, s, n) { if (this.testTopicReferenceConfiguration(s, r, n)) return s === "hack" ? (this.topicReferenceIsAllowedInCurrentContext() || this.raise(N.PipeTopicUnbound, r), this.registerTopicReference(), this.finishNode(t, "TopicReference")) : (this.topicReferenceIsAllowedInCurrentContext() || this.raise(N.PrimaryTopicNotAllowed, r), this. registerTopicReference(), this.finishNode(t, "PipelinePrimaryTopicReference")); throw this.raise(N.PipeTopicUnconfiguredToken, r, { token: zs(n) }); } testTopicReferenceConfiguration(t, r, s) { switch (t) { case "hack": return this.hasPlugin(["pipelineOperator", { topicToken: zs(s) }]); case "smart": return s === 27; default: throw this.raise(N.PipeTopicRequiresHackPipes, r); } } parseAsyncArrowUnaryFunction(t) { this.prodParam.enter(Kl(!0, this.prodParam.hasYield)); let r = [this.parseIdentifier()]; return this.prodParam.exit(), this.hasPrecedingLineBreak() && this.raise(N.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 s = 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 = s, this.finishNode(t, "DoExpression"); } parseSuper() { let t = this.startNode(); return this.next(), this.match(10) && !this.scope.allowDirectSuper ? this.optionFlags & 16 || this.raise(N.SuperNotAllowed, t) : this. scope.allowSuper || this.optionFlags & 16 || this.raise(N.UnexpectedSuper, t), !this.match(10) && !this.match(0) && !this.match(16) && this.raise(N.UnsupportedSuper, t), this.finishNode(t, "Super"); } parsePrivateName() { let t = this.startNode(), r = this.startNodeAt(Kt(this.state.startLoc, 1)), s = this.state.value; return this.next(), t.id = this.createIdentifier(r, s), 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, s) { t.meta = r; let n = this.state.containsEsc; return t.property = this.parseIdentifier(!0), (t.property.name !== s || n) && this.raise(N.UnsupportedMetaProperty, t.property, { target: r.name, onlyValidPropertyName: s }), 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(N.ImportMetaOutsideModule, r), this.sawUnambiguousESM = !0), this.parseMetaProperty( t, r, "meta"); } } parseLiteralAtNode(t, r, s) { return this.addExtra(s, "rawValue", t), this.addExtra(s, "raw", this.input.slice(this.offsetToSourcePos(s.start), this.state.end)), s. value = t, this.next(), this.finishNode(s, r); } parseLiteral(t, r) { let s = this.startNode(); return this.parseLiteralAtNode(t, r, s); } 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, s; this.next(), this.expressionScope.enter(gH()); let n = this.state.maybeInArrowParameters, a = this.state.inFSharpPipelineDirectBody; this.state.maybeInArrowParameters = !0, this.state.inFSharpPipelineDirectBody = !1; let o = this.state.startLoc, l = [], u = new Ci(), c = !0, p, f; for (; !this.match(11); ) { if (c) c = !1; else if (this.expect(12, u.optionalParametersLoc === null ? null : u.optionalParametersLoc), this.match(11)) { f = this.state.startLoc; break; } if (this.match(21)) { let T = this.state.startLoc; if (p = this.state.startLoc, l.push(this.parseParenItem(this.parseRestBinding(), T)), !this.checkCommaAfterRest(41)) break; } else l.push(this.parseMaybeAssignAllowInOrVoidPattern(11, u, this.parseParenItem)); } let h = this.state.lastTokEndLoc; this.expect(11), this.state.maybeInArrowParameters = n, this.state.inFSharpPipelineDirectBody = a; let b = this.startNodeAt(r); return t && this.shouldParseArrow(l) && (b = this.parseArrow(b)) ? (this.checkDestructuringPrivate(u), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), this.parseArrowExpression(b, l, !1), b) : (this.expressionScope.exit(), l.length || this.unexpected(this. state.lastTokStartLoc), f && this.unexpected(f), p && this.unexpected(p), this.checkExpressionErrors(u, !0), this.toReferencedListDeep( l, !0), l.length > 1 ? (s = this.startNodeAt(o), s.expressions = l, this.finishNode(s, "SequenceExpression"), this.resetEndLocation(s, h)) : s = l[0], this.wrapParenthesis(r, s)); } 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 s = this.startNodeAt(t); return s.expression = r, this.finishNode(s, "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 s = this.parseMetaProperty(t, r, "target"); return this.scope.allowNewTarget || this.raise(N.UnexpectedNewTarget, s), s; } 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), s = this.parseNoCallExpr(); t.callee = s, r && (s.type === "Import" || s.type === "ImportExpression") && this.raise(N.ImportCallNotNewExpression, s); } parseTemplateElement(t) { let { start: r, startLoc: s, end: n, value: a } = this.state, o = r + 1, l = this.startNodeAt(Kt(s, 1)); a === null && (t || this.raise(N.InvalidEscapeSequenceTemplate, Kt(this.state.firstInvalidTemplateEscapePos, 1))); let u = this.match(24), c = u ? -1 : -2, p = n + c; l.value = { raw: this.input.slice(o, p).replace(/\r\n?/g, ` `), cooked: a === null ? null : a.slice(1, c) }, l.tail = u, this.next(); let f = this.finishNode(l, "TemplateElement"); return this.resetEndLocation(f, Kt(this.state.lastTokEndLoc, c)), f; } parseTemplate(t) { let r = this.startNode(), s = this.parseTemplateElement(t), n = [s], a = []; for (; !s.tail; ) a.push(this.parseTemplateSubstitution()), this.readTemplateContinuation(), n.push(s = this.parseTemplateElement(t)); return r.expressions = a, r.quasis = n, this.finishNode(r, "TemplateLiteral"); } parseTemplateSubstitution() { return this.parseExpression(); } parseObjectLike(t, r, s, n) { s && this.expectPlugin("recordAndTuple"); let a = this.state.inFSharpPipelineDirectBody; this.state.inFSharpPipelineDirectBody = !1; let o = !1, l = !0, u = this.startNode(); for (u.properties = [], this.next(); !this.match(t); ) { if (l) l = !1; else if (this.expect(12), this.match(t)) { this.addTrailingCommaExtraToNode(u); break; } let p; r ? p = this.parseBindingProperty() : (p = this.parsePropertyDefinition(n), o = this.checkProto(p, s, o, n)), s && !this.isObjectProperty( p) && p.type !== "SpreadElement" && this.raise(N.InvalidRecordProperty, p), p.shorthand && this.addExtra(p, "shorthand", !0), u.properties. push(p); } this.next(), this.state.inFSharpPipelineDirectBody = a; let c = "ObjectExpression"; return r ? c = "ObjectPattern" : s && (c = "RecordExpression"), this.finishNode(u, c); } 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(N.UnsupportedPropertyDecorator, this.state.startLoc); this.match(26); ) r.push(this.parseDecorator()); let s = this.startNode(), n = !1, a = !1, o; if (this.match(21)) return r.length && this.unexpected(), this.parseSpread(); r.length && (s.decorators = r, r = []), s.method = !1, t && (o = this.state.startLoc); let l = this.eat(55); this.parsePropertyNamePrefixOperator(s); let u = this.state.containsEsc; if (this.parsePropertyName(s, t), !l && !u && this.maybeAsyncOrAccessorProp(s)) { let { key: c } = s, p = c.name; p === "async" && !this.hasPrecedingLineBreak() && (n = !0, this.resetPreviousNodeTrailingComments(c), l = this.eat(55), this.parsePropertyName( s)), (p === "get" || p === "set") && (a = !0, this.resetPreviousNodeTrailingComments(c), s.kind = p, this.match(55) && (l = !0, this. raise(N.AccessorIsGenerator, this.state.curPosition(), { kind: p }), this.next()), this.parsePropertyName(s)); } return this.parseObjPropValue(s, o, l, n, !1, a, t); } getGetterSetterExpectedParamCount(t) { return t.kind === "get" ? 0 : 1; } getObjectOrClassMethodParams(t) { return t.params; } checkGetterSetterParams(t) { var r; let s = this.getGetterSetterExpectedParamCount(t), n = this.getObjectOrClassMethodParams(t); n.length !== s && this.raise(t.kind === "get" ? N.BadGetterArity : N.BadSetterArity, t), t.kind === "set" && ((r = n[n.length - 1]) == null ? void 0 : r.type) === "RestElement" && this.raise(N.BadSetterRestParameter, t); } parseObjectMethod(t, r, s, n, a) { if (a) { let o = this.parseMethod(t, r, !1, !1, !1, "ObjectMethod"); return this.checkGetterSetterParams(o), o; } if (s || r || this.match(10)) return n && this.unexpected(), t.kind = "method", t.method = !0, this.parseMethod(t, r, s, !1, !1, "ObjectMethod"); } parseObjectProperty(t, r, s, n) { if (t.shorthand = !1, this.eat(14)) return t.value = s ? this.parseMaybeDefault(this.state.startLoc) : this.parseMaybeAssignAllowInOrVoidPattern(8, n), this.finishObjectProperty( t); if (!t.computed && t.key.type === "Identifier") { if (this.checkReservedWord(t.key.name, t.key.loc.start, !0, !1), s) t.value = this.parseMaybeDefault(r, this.cloneIdentifier(t.key)); else if (this.match(29)) { let a = this.state.startLoc; n != null ? n.shorthandAssignLoc === null && (n.shorthandAssignLoc = a) : this.raise(N.InvalidCoverInitializedName, a), 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, s, n, a, o, l) { let u = this.parseObjectMethod(t, s, n, a, o) || this.parseObjectProperty(t, r, a, l); return u || this.unexpected(), u; } parsePropertyName(t, r) { if (this.eat(0)) t.computed = !0, t.key = this.parseMaybeAssignAllowIn(), this.expect(3); else { let { type: s, value: n } = this.state, a; if (Fr(s)) a = this.parseIdentifier(!0); else switch (s) { case 135: a = this.parseNumericLiteral(n); break; case 134: a = this.parseStringLiteral(n); break; case 136: a = this.parseBigIntLiteral(n); break; case 139: { let o = this.state.startLoc; r != null ? r.privateKeyLoc === null && (r.privateKeyLoc = o) : this.raise(N.UnexpectedPrivateField, o), a = this.parsePrivateName(); break; } default: if (s === 137) { a = this.parseDecimalLiteral(n); break; } this.unexpected(); } t.key = a, s !== 139 && (t.computed = !1); } } initFunction(t, r) { t.id = null, t.generator = !1, t.async = r; } parseMethod(t, r, s, n, a, o, l = !1) { this.initFunction(t, s), t.generator = r, this.scope.enter(530 | (l ? 576 : 0) | (a ? 32 : 0)), this.prodParam.enter(Kl(s, t.generator)), this.parseFunctionParams(t, n); let u = this.parseFunctionBodyAndFinish(t, o, !0); return this.prodParam.exit(), this.scope.exit(), u; } parseArrayLike(t, r, s) { r && this.expectPlugin("recordAndTuple"); let n = this.state.inFSharpPipelineDirectBody; this.state.inFSharpPipelineDirectBody = !1; let a = this.startNode(); return this.next(), a.elements = this.parseExprList(t, !r, s, a), this.state.inFSharpPipelineDirectBody = n, this.finishNode(a, r ? "T\ upleExpression" : "ArrayExpression"); } parseArrowExpression(t, r, s, n) { this.scope.enter(518); let a = Kl(s, !1); !this.match(5) && this.prodParam.hasIn && (a |= 8), this.prodParam.enter(a), this.initFunction(t, s); let o = this.state.maybeInArrowParameters; return r && (this.state.maybeInArrowParameters = !0, this.setArrowFunctionParameters(t, r, n)), this.state.maybeInArrowParameters = !1, this.parseFunctionBody(t, !0), this.prodParam.exit(), this.scope.exit(), this.state.maybeInArrowParameters = o, this.finishNode(t, "Ar\ rowFunctionExpression"); } setArrowFunctionParameters(t, r, s) { this.toAssignableList(r, s, !1), t.params = r; } parseFunctionBodyAndFinish(t, r, s = !1) { return this.parseFunctionBody(t, !1, s), this.finishNode(t, r); } parseFunctionBody(t, r, s = !1) { let n = r && !this.match(5); if (this.expressionScope.enter(Px()), n) t.body = this.parseMaybeAssign(), this.checkParams(t, !1, r, !1); else { let a = this.state.strict, o = this.state.labels; this.state.labels = [], this.prodParam.enter(this.prodParam.currentFlags() | 4), t.body = this.parseBlock(!0, !1, (l) => { let u = !this.isSimpleParamList(t.params); l && u && this.raise(N.IllegalLanguageModeDirective, (t.kind === "method" || t.kind === "constructor") && t.key ? t.key.loc.end : t); let c = !a && this.state.strict; this.checkParams(t, !this.state.strict && !r && !s && !u, r, c), this.state.strict && t.id && this.checkIdentifier(t.id, 65, c); }), this.prodParam.exit(), this.state.labels = o; } this.expressionScope.exit(); } isSimpleParameter(t) { return t.type === "Identifier"; } isSimpleParamList(t) { for (let r = 0, s = t.length; r < s; r++) if (!this.isSimpleParameter(t[r])) return !1; return !0; } checkParams(t, r, s, n = !0) { let a = !r && /* @__PURE__ */ new Set(), o = { type: "FormalParameters" }; for (let l of t.params) this.checkLVal(l, o, 5, a, n); } parseExprList(t, r, s, n) { let a = [], o = !0; for (; !this.eat(t); ) { if (o) o = !1; else if (this.expect(12), this.match(t)) { n && this.addTrailingCommaExtraToNode(n), this.next(); break; } a.push(this.parseExprListItem(t, r, s)); } return a; } parseExprListItem(t, r, s, n) { let a; if (this.match(12)) r || this.raise(N.UnexpectedToken, this.state.curPosition(), { unexpected: "," }), a = null; else if (this.match(21)) { let o = this.state.startLoc; a = this.parseParenItem(this.parseSpread(s), o); } else if (this.match(17)) { this.expectPlugin("partialApplication"), n || this.raise(N.UnexpectedArgumentPlaceholder, this.state.startLoc); let o = this.startNode(); this.next(), a = this.finishNode(o, "ArgumentPlaceholder"); } else a = this.parseMaybeAssignAllowInOrVoidPattern(t, s, this.parseParenItem); return a; } parseIdentifier(t) { let r = this.startNode(), s = this.parseIdentifierName(t); return this.createIdentifier(r, s); } createIdentifier(t, r) { return t.name = r, t.loc.identifierName = r, this.finishNode(t, "Identifier"); } createIdentifierAt(t, r, s) { return t.name = r, t.loc.identifierName = r, this.finishNodeAt(t, "Identifier", s); } parseIdentifierName(t) { let r, { startLoc: s, type: n } = this.state; Fr(n) ? r = this.state.value : this.unexpected(); let a = LY(n); return t ? a && this.replaceToken(132) : this.checkReservedWord(r, s, a, !1), this.next(), r; } checkReservedWord(t, r, s, n) { if (t.length > 10 || !tH(t)) return; if (s && QY(t)) { this.raise(N.UnexpectedKeyword, r, { keyword: t }); return; } if ((this.state.strict ? n ? xx : gx : bx)(t, this.inModule)) { this.raise(N.UnexpectedReservedWord, r, { reservedWord: t }); return; } else if (t === "yield") { if (this.prodParam.hasYield) { this.raise(N.YieldBindingIdentifier, r); return; } } else if (t === "await") { if (this.prodParam.hasAwait) { this.raise(N.AwaitBindingIdentifier, r); return; } if (this.scope.inStaticBlock) { this.raise(N.AwaitBindingIdentifierInStaticBlock, r); return; } this.expressionScope.recordAsyncArrowParametersError(r); } else if (t === "arguments" && this.scope.inClassAndNotInNonArrowFunction) { this.raise(N.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(N.AwaitExpressionFormalParameter, r), this.eat(55) && this.raise(N.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, "AwaitExpressi\ on"); } isAmbiguousPrefixOrIdentifier() { if (this.hasPrecedingLineBreak()) return !0; let { type: t } = this.state; return t === 53 || t === 10 || t === 0 || Yl(t) || t === 102 && !this.state.containsEsc || t === 138 || t === 56 || this.hasPlugin("v8\ intrinsic") && t === 54; } parseYield(t) { let r = this.startNodeAt(t); this.expressionScope.recordParameterInitializerError(N.YieldInParameter, r); let s = !1, n = null; if (!this.hasPrecedingLineBreak()) switch (s = this.eat(55), this.state.type) { case 13: case 140: case 8: case 11: case 3: case 9: case 14: case 12: if (!s) break; default: n = this.parseMaybeAssign(); } return r.delegate = s, r.argument = n, 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(N.ImportCallArity, t); } } return this.expect(11), this.finishNode(t, "ImportExpression"); } checkPipelineAtInfixOperator(t, r) { this.hasPlugin(["pipelineOperator", { proposal: "smart" }]) && t.type === "SequenceExpression" && this.raise(N.PipelineHeadSequenceExpression, r); } parseSmartPipelineBodyInStyle(t, r) { if (this.isSimpleReference(t)) { let s = this.startNodeAt(r); return s.callee = t, this.finishNode(s, "PipelineBareFunction"); } else { let s = this.startNodeAt(r); return this.checkSmartPipeTopicBodyEarlyErrors(r), s.expression = t, this.finishNode(s, "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(N.PipelineBodyNoArrow, this.state.startLoc); this.topicReferenceWasUsedInCurrentContext() || this.raise(N.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 s = this.state.inFSharpPipelineDirectBody; this.state.inFSharpPipelineDirectBody = !0; let n = this.parseExprOp(this.parseMaybeUnaryOrPrivate(), r, t); return this.state.inFSharpPipelineDirectBody = s, n; } 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 s = this.initializeScopes(!0); this.enterInitialScopes(); try { t.body = this.parseProgram(r, 8, "module"); } finally { s(); } 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, s) { if (r != null && this.match(88)) { let n = this.lookaheadCharCode(); if (n === 44 || n === (t === 3 ? 93 : t === 8 ? 125 : 41) || n === 61) return this.parseMaybeDefault(this.state.startLoc, this.parseVoidPattern(r)); } return this.parseMaybeAssignAllowIn(r, s); } parsePropertyNamePrefixOperator(t) { } }, g0 = { kind: 1 }, OH = { kind: 2 }, NH = /[\uD800-\uDFFF]/u, T0 = /in(?:stanceof)?/y; function BH(e, t, r) { for (let s = 0; s < e.length; s++) { let n = e[s], { type: a } = n; if (typeof a == "number") { { if (a === 139) { let { loc: o, start: l, value: u, end: c } = n, p = l + 1, f = Kt(o.start, 1); e.splice(s, 1, new rs({ type: ys(27), value: "#", start: l, end: p, startLoc: o.start, endLoc: f }), new rs({ type: ys(132), value: u, start: p, end: c, startLoc: f, endLoc: o.end })), s++; continue; } if (Yl(a)) { let { loc: o, start: l, value: u, end: c } = n, p = l + 1, f = Kt(o.start, 1), h; t.charCodeAt(l - r) === 96 ? h = new rs({ type: ys(22), value: "`", start: l, end: p, startLoc: o.start, endLoc: f }) : h = new rs({ type: ys(8), value: "}", start: l, end: p, startLoc: o.start, endLoc: f }); let b, T, d, g; a === 24 ? (T = c - 1, d = Kt(o.end, -1), b = u === null ? null : u.slice(1, -1), g = new rs({ type: ys(22), value: "`", start: T, end: c, startLoc: d, endLoc: o.end })) : (T = c - 2, d = Kt(o.end, -2), b = u === null ? null : u.slice(1, -2), g = new rs({ type: ys(23), value: "${", start: T, end: c, startLoc: d, endLoc: o.end })), e.splice(s, 1, h, new rs({ type: ys(20), value: b, start: p, end: T, startLoc: f, endLoc: d }), g), s += 2; continue; } } n.type = ys(a); } } return e; } i(BH, "babel7CompatTokens"); var q0 = class extends R0 { static { i(this, "StatementParser"); } parseTopLevel(t, r) { return t.program = this.parseProgram(r, 140, this.options.sourceType === "module" ? "module" : "script"), t.comments = this.comments, this. optionFlags & 256 && (t.tokens = BH(this.tokens, this.input, this.startIndex)), this.finishNode(t, "File"); } parseProgram(t, r, s) { if (t.sourceType = s, t.interpreter = this.parseInterpreterDirective(), this.parseBlockBody(t, !0, !0, r), this.inModule) { if (!(this.optionFlags & 64) && this.scope.undefinedExports.size > 0) for (let [a, o] of Array.from(this.scope.undefinedExports)) this.raise(N.ModuleExportUndefined, o, { localName: a }); this.addExtra(t, "topLevelAwait", this.state.hasTopLevelAwait); } let n; return r === 140 ? n = this.finishNode(t, "Program") : n = this.finishNodeAt(t, "Program", Kt(this.state.startLoc, -1)), n; } stmtToDirective(t) { let r = this.castNodeTo(t, "Directive"), s = this.castNodeTo(t.expression, "DirectiveLiteral"), n = s.value, a = this.input.slice(this. offsetToSourcePos(s.start), this.offsetToSourcePos(s.end)), o = s.value = a.slice(1, -1); return this.addExtra(s, "raw", a), this.addExtra(s, "rawValue", o), this.addExtra(s, "expressionValue", n), r.value = s, 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() { return this.isContextual(107) ? this.nextTokenIsIdentifierOnSameLine() : !1; } isForUsing() { if (!this.isContextual(107)) return !1; let t = this.nextTokenInLineStart(), r = this.codePointAtPos(t); if (this.isUnparsedContextual(t, "of")) { let s = this.lookaheadCharCodeSince(t + 2); if (s !== 61 && s !== 58 && s !== 59) return !1; } return !!(this.chStartsBindingIdentifier(r, t) || this.isUnparsedContextual(t, "void")); } nextTokenIsIdentifierOnSameLine() { let t = this.nextTokenInLineStart(), r = this.codePointAtPos(t); return this.chStartsBindingIdentifier(r, t); } 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 (ns(t)) { if (T0.lastIndex = r, T0.test(this.input)) { let s = this.codePointAtPos(T0.lastIndex); if (!On(s) && s !== 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 s = this.state.type, n = this.startNode(), a = !!(t & 2), o = !!(t & 4), l = t & 1; switch (s) { case 60: return this.parseBreakContinueStatement(n, !0); case 63: return this.parseBreakContinueStatement(n, !1); case 64: return this.parseDebuggerStatement(n); case 90: return this.parseDoWhileStatement(n); case 91: return this.parseForStatement(n); case 68: if (this.lookaheadCharCode() === 46) break; return o || this.raise(this.state.strict ? N.StrictFunction : this.options.annexB ? N.SloppyFunctionAnnexB : N.SloppyFunction, this. state.startLoc), this.parseFunctionStatement(n, !1, !a && o); case 80: return a || this.unexpected(), this.parseClass(this.maybeTakeDecorators(r, n), !0); case 69: return this.parseIfStatement(n); case 70: return this.parseReturnStatement(n); case 71: return this.parseSwitchStatement(n); case 72: return this.parseThrowStatement(n); case 73: return this.parseTryStatement(n); case 96: if (this.isAwaitUsing()) return this.allowsUsing() ? a ? this.recordAwaitIfAllowed() || this.raise(N.AwaitUsingNotInAsyncContext, n) : this.raise(N.UnexpectedLexicalDeclaration, n) : this.raise(N.UnexpectedUsingDeclaration, n), this.next(), this.parseVarStatement(n, "await using"); break; case 107: if (this.state.containsEsc || !this.hasInLineFollowingBindingIdentifierOrBrace()) break; return this.allowsUsing() ? a || this.raise(N.UnexpectedLexicalDeclaration, this.state.startLoc) : this.raise(N.UnexpectedUsingDeclaration, this.state.startLoc), this.parseVarStatement(n, "using"); case 100: { if (this.state.containsEsc) break; let p = this.nextTokenStart(), f = this.codePointAtPos(p); if (f !== 91 && (!a && this.hasFollowingLineBreak() || !this.chStartsBindingIdentifier(f, p) && f !== 123)) break; } case 75: a || this.raise(N.UnexpectedLexicalDeclaration, this.state.startLoc); case 74: { let p = this.state.value; return this.parseVarStatement(n, p); } case 92: return this.parseWhileStatement(n); case 76: return this.parseWithStatement(n); case 5: return this.parseBlock(); case 13: return this.parseEmptyStatement(n); case 83: { let p = this.lookaheadCharCode(); if (p === 40 || p === 46) break; } case 82: { !(this.optionFlags & 8) && !l && this.raise(N.UnexpectedImportExport, this.state.startLoc), this.next(); let p; return s === 83 ? p = this.parseImport(n) : p = this.parseExport(n, r), this.assertModuleNodeAllowed(p), p; } default: if (this.isAsyncFunction()) return a || this.raise(N.AsyncFunctionInSingleStatementContext, this.state.startLoc), this.next(), this.parseFunctionStatement(n, !0, !a && o); } let u = this.state.value, c = this.parseExpression(); return Be(s) && c.type === "Identifier" && this.eat(14) ? this.parseLabeledStatement(n, u, c, t) : this.parseExpressionStatement(n, c, r); } assertModuleNodeAllowed(t) { !(this.optionFlags & 8) && !this.inModule && this.raise(N.ImportOutsideModule, t); } decoratorsEnabledBeforeExport() { return this.hasPlugin("decorators-legacy") ? !0 : this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBefore\ Export") !== !1; } maybeTakeDecorators(t, r, s) { if (t) { var n; (n = r.decorators) != null && n.length ? (typeof this.getPluginOption("decorators", "decoratorsBeforeExport") != "boolean" && this.raise( N.DecoratorsBeforeAfterExport, r.decorators[0]), r.decorators.unshift(...t)) : r.decorators = t, this.resetStartLocationFromNode(r, t[0]), s && this.resetStartLocationFromNode(s, 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(N.DecoratorExportClass, this.state.startLoc); else if (!this.canHaveLeadingDecorator()) throw this.raise(N.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, s; if (this.match(10)) { let n = this.state.startLoc; this.next(), s = this.parseExpression(), this.expect(11), s = this.wrapParenthesis(n, s); let a = this.state.startLoc; t.expression = this.parseMaybeDecoratorArguments(s, n), this.getPluginOption("decorators", "allowCallParenthesized") === !1 && t.expression !== s && this.raise(N.DecoratorArgumentsOutsideParentheses, a); } else { for (s = this.parseIdentifier(!1); this.eat(16); ) { let n = this.startNodeAt(r); n.object = s, this.match(139) ? (this.classScope.usePrivateName(this.state.value, this.state.startLoc), n.property = this.parsePrivateName()) : n.property = this.parseIdentifier(!0), n.computed = !1, s = this.finishNode(n, "MemberExpression"); } t.expression = this.parseMaybeDecoratorArguments(s, r); } } else t.expression = this.parseExprSubscripts(); return this.finishNode(t, "Decorator"); } parseMaybeDecoratorArguments(t, r) { if (this.eat(10)) { let s = this.startNodeAt(r); return s.callee = t, s.arguments = this.parseCallExpressionArguments(), this.toReferencedList(s.arguments), this.finishNode(s, "Call\ Expression"); } 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 s; for (s = 0; s < this.state.labels.length; ++s) { let n = this.state.labels[s]; if ((t.label == null || n.name === t.label.name) && (n.kind != null && (r || n.kind === 1) || t.label && r)) break; } if (s === this.state.labels.length) { let n = r ? "BreakStatement" : "ContinueStatement"; this.raise(N.IllegalBreakContinue, t, { type: n }); } } parseDebuggerStatement(t) { return this.next(), this.semicolon(), this.finishNode(t, "DebuggerStatement"); } parseHeaderExpression() { this.expect(10); let t = this.parseExpression(); return this.expect(11), t; } parseDoWhileStatement(t) { return this.next(), this.state.labels.push(g0), t.body = this.withSmartMixTopicForbiddingContext(() => this.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(g0); 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 s = this.isContextual(100); { let u = this.isAwaitUsing(), c = u || this.isForUsing(), p = s && this.hasFollowingBindingAtom() || c; if (this.match(74) || this.match(75) || p) { let f = this.startNode(), h; u ? (h = "await using", this.recordAwaitIfAllowed() || this.raise(N.AwaitUsingNotInAsyncContext, this.state.startLoc), this.next()) : h = this.state.value, this.next(), this.parseVar(f, !0, h); let b = this.finishNode(f, "VariableDeclaration"), T = this.match(58); return T && c && this.raise(N.ForInUsing, b), (T || this.isContextual(102)) && b.declarations.length === 1 ? this.parseForIn(t, b, r) : (r !== null && this.unexpected(r), this.parseFor(t, b)); } } let n = this.isContextual(95), a = new Ci(), o = this.parseExpression(!0, a), l = this.isContextual(102); if (l && (s && this.raise(N.ForOfLet, o), r === null && n && o.type === "Identifier" && this.raise(N.ForOfAsync, o)), l || this.match( 58)) { this.checkDestructuringPrivate(a), this.toAssignable(o, !0); let u = l ? "ForOfStatement" : "ForInStatement"; return this.checkLVal(o, { type: u }), this.parseForIn(t, o, r); } else this.checkExpressionErrors(a, !0); return r !== null && this.unexpected(r), this.parseFor(t, o); } parseFunctionStatement(t, r, s) { return this.next(), this.parseFunction(t, 1 | (s ? 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(N.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(OH), this.scope.enter(256); let s; for (let n; !this.match(8); ) if (this.match(61) || this.match(65)) { let a = this.match(61); s && this.finishNode(s, "SwitchCase"), r.push(s = this.startNode()), s.consequent = [], this.next(), a ? s.test = this.parseExpression() : (n && this.raise(N.MultipleDefaultsInSwitch, this.state.lastTokStartLoc), n = !0, s.test = null), this.expect(14); } else s ? s.consequent.push(this.parseStatementListItem()) : this.unexpected(); return this.scope.exit(), s && this.finishNode(s, "SwitchCase"), this.next(), this.state.labels.pop(), this.finishNode(t, "SwitchState\ ment"); } parseThrowStatement(t) { return this.next(), this.hasPrecedingLineBreak() && this.raise(N.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(N.NoCatchOrFinally, t), this.finishNode( t, "TryStatement"); } parseVarStatement(t, r, s = !1) { return this.next(), this.parseVar(t, !1, r, s), this.semicolon(), this.finishNode(t, "VariableDeclaration"); } parseWhileStatement(t) { return this.next(), t.test = this.parseHeaderExpression(), this.state.labels.push(g0), t.body = this.withSmartMixTopicForbiddingContext( () => this.parseStatement()), this.state.labels.pop(), this.finishNode(t, "WhileStatement"); } parseWithStatement(t) { return this.state.strict && this.raise(N.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, s, n) { for (let o of this.state.labels) o.name === r && this.raise(N.LabelRedeclaration, s, { labelName: r }); let a = RY(this.state.type) ? 1 : this.match(71) ? 2 : null; for (let o = this.state.labels.length - 1; o >= 0; o--) { let l = this.state.labels[o]; if (l.statementStart === t.start) l.statementStart = this.sourceToOffsetPos(this.state.start), l.kind = a; else break; } return this.state.labels.push({ name: r, kind: a, statementStart: this.sourceToOffsetPos(this.state.start) }), t.body = n & 8 ? this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0) : this.parseStatement(), this.state.labels.pop(), t.label = s, this.finishNode(t, "LabeledStatement"); } parseExpressionStatement(t, r, s) { return t.expression = r, this.semicolon(), this.finishNode(t, "ExpressionStatement"); } parseBlock(t = !1, r = !0, s) { let n = this.startNode(); return t && this.state.strictErrors.clear(), this.expect(5), r && this.scope.enter(0), this.parseBlockBody(n, t, !1, 8, s), r && this. scope.exit(), this.finishNode(n, "BlockStatement"); } isValidDirective(t) { return t.type === "ExpressionStatement" && t.expression.type === "StringLiteral" && !t.expression.extra.parenthesized; } parseBlockBody(t, r, s, n, a) { let o = t.body = [], l = t.directives = []; this.parseBlockOrModuleBlockBody(o, r ? l : void 0, s, n, a); } parseBlockOrModuleBlockBody(t, r, s, n, a) { let o = this.state.strict, l = !1, u = !1; for (; !this.match(n); ) { let c = s ? this.parseModuleItem() : this.parseStatementListItem(); if (r && !u) { if (this.isValidDirective(c)) { let p = this.stmtToDirective(c); r.push(p), !l && p.value.value === "use strict" && (l = !0, this.setStrict(!0)); continue; } u = !0, this.state.strictErrors.clear(); } t.push(c); } a?.call(this, l), o || 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, s) { let n = this.match(58); return this.next(), n ? s !== null && this.unexpected(s) : t.await = s !== null, r.type === "VariableDeclaration" && r.declarations[0]. init != null && (!n || !this.options.annexB || this.state.strict || r.kind !== "var" || r.declarations[0].id.type !== "Identifier") && this.raise(N.ForInOfLoopInitializer, r, { type: n ? "ForInStatement" : "ForOfStatement" }), r.type === "AssignmentPattern" && this.raise(N.InvalidLhs, r, { ancestor: { type: "ForStatement" } }), t.left = r, t.right = n ? this.parseExpression() : this.parseMaybeAssignAllowIn(), this.expect(11), t.body = this.withSmartMixTopicForbiddingContext( () => this.parseStatement()), this.scope.exit(), this.state.labels.pop(), this.finishNode(t, n ? "ForInStatement" : "ForOfStatement"); } parseVar(t, r, s, n = !1) { let a = t.declarations = []; for (t.kind = s; ; ) { let o = this.startNode(); if (this.parseVarId(o, s), o.init = this.eat(29) ? r ? this.parseMaybeAssignDisallowIn() : this.parseMaybeAssignAllowIn() : null, o. init === null && !n && (o.id.type !== "Identifier" && !(r && (this.match(58) || this.isContextual(102))) ? this.raise(N.DeclarationMissingInitializer, this.state.lastTokEndLoc, { kind: "destructuring" }) : (s === "const" || s === "using" || s === "await using") && !(this.match(58) || this.isContextual(102)) && this.raise(N.DeclarationMissingInitializer, this.state.lastTokEndLoc, { kind: s })), a.push(this.finishNode(o, "VariableDeclarator")), !this.eat(12)) break; } return t; } parseVarId(t, r) { let s = this.parseBindingAtom(); r === "using" || r === "await using" ? (s.type === "ArrayPattern" || s.type === "ObjectPattern") && this.raise(N.UsingDeclarationHasBindingPattern, s.loc.start) : s.type === "VoidPattern" && this.raise(N.UnexpectedVoidPattern, s.loc.start), this.checkLVal(s, { type: "VariableDeclarator" }, r === "var" ? 5 : 8201), t.id = s; } parseAsyncFunctionExpression(t) { return this.parseFunction(t, 8); } parseFunction(t, r = 0) { let s = r & 2, n = !!(r & 1), a = n && !(r & 4), o = !!(r & 8); this.initFunction(t, o), this.match(55) && (s && this.raise(N.GeneratorInSingleStatementContext, this.state.startLoc), this.next(), t. generator = !0), n && (t.id = this.parseFunctionId(a)); let l = this.state.maybeInArrowParameters; return this.state.maybeInArrowParameters = !1, this.scope.enter(514), this.prodParam.enter(Kl(o, t.generator)), n || (t.id = this.parseFunctionId()), this.parseFunctionParams(t, !1), this.withSmartMixTopicForbiddingContext(() => { this.parseFunctionBodyAndFinish(t, n ? "FunctionDeclaration" : "FunctionExpression"); }), this.prodParam.exit(), this.scope.exit(), n && !s && this.registerFunctionStatementId(t), this.state.maybeInArrowParameters = l, t; } parseFunctionId(t) { return t || Be(this.state.type) ? this.parseIdentifier() : null; } parseFunctionParams(t, r) { this.expect(10), this.expressionScope.enter(bH()), 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, s) { this.next(); let n = this.state.strict; return this.state.strict = !0, this.parseClassId(t, r, s), this.parseClassSuper(t), t.body = this.parseClassBody(!!t.superClass, n), 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 s = { hadConstructor: !1, hadSuperClass: t }, n = [], a = this.startNode(); if (a.body = [], this.expect(5), this.withSmartMixTopicForbiddingContext(() => { for (; !this.match(8); ) { if (this.eat(13)) { if (n.length > 0) throw this.raise(N.DecoratorSemicolon, this.state.lastTokEndLoc); continue; } if (this.match(26)) { n.push(this.parseDecorator()); continue; } let o = this.startNode(); n.length && (o.decorators = n, this.resetStartLocationFromNode(o, n[0]), n = []), this.parseClassMember(a, o, s), o.kind === "cons\ tructor" && o.decorators && o.decorators.length > 0 && this.raise(N.DecoratorConstructor, o); } }), this.state.strict = r, this.next(), n.length) throw this.raise(N.TrailingDecorator, this.state.startLoc); return this.classScope.exit(), this.finishNode(a, "ClassBody"); } parseClassMemberFromModifier(t, r) { let s = this.parseIdentifier(!0); if (this.isClassMethod()) { let n = r; return n.kind = "method", n.computed = !1, n.key = s, n.static = !1, this.pushClassMethod(t, n, !1, !1, !1, !1), !0; } else if (this.isClassProperty()) { let n = r; return n.computed = !1, n.key = s, n.static = !1, t.body.push(this.parseClassProperty(n)), !0; } return this.resetPreviousNodeTrailingComments(s), !1; } parseClassMember(t, r, s) { let n = this.isContextual(106); if (n) { if (this.parseClassMemberFromModifier(t, r)) return; if (this.eat(5)) { this.parseClassStaticBlock(t, r); return; } } this.parseClassMemberWithIsStatic(t, r, s, n); } parseClassMemberWithIsStatic(t, r, s, n) { let a = r, o = r, l = r, u = r, c = r, p = a, f = a; if (r.static = n, this.parsePropertyNamePrefixOperator(r), this.eat(55)) { p.kind = "method"; let D = this.match(139); if (this.parseClassElementName(p), this.parsePostMemberNameModifiers(p), D) { this.pushClassPrivateMethod(t, o, !0, !1); return; } this.isNonstaticConstructor(a) && this.raise(N.ConstructorIsGenerator, a.key), this.pushClassMethod(t, a, !0, !1, !1, !1); return; } let h = !this.state.containsEsc && Be(this.state.type), b = this.parseClassElementName(r), T = h ? b.name : null, d = this.isPrivateName( b), g = this.state.startLoc; if (this.parsePostMemberNameModifiers(f), this.isClassMethod()) { if (p.kind = "method", d) { this.pushClassPrivateMethod(t, o, !1, !1); return; } let D = this.isNonstaticConstructor(a), _ = !1; D && (a.kind = "constructor", s.hadConstructor && !this.hasPlugin("typescript") && this.raise(N.DuplicateConstructor, b), D && this. hasPlugin("typescript") && r.override && this.raise(N.OverrideOnConstructor, b), s.hadConstructor = !0, _ = s.hadSuperClass), this.pushClassMethod( t, a, !1, !1, D, _); } else if (this.isClassProperty()) d ? this.pushClassPrivateProperty(t, u) : this.pushClassProperty(t, l); else if (T === "async" && !this.isLineTerminator()) { this.resetPreviousNodeTrailingComments(b); let D = this.eat(55); f.optional && this.unexpected(g), p.kind = "method"; let _ = this.match(139); this.parseClassElementName(p), this.parsePostMemberNameModifiers(f), _ ? this.pushClassPrivateMethod(t, o, D, !0) : (this.isNonstaticConstructor( a) && this.raise(N.ConstructorIsAsync, a.key), this.pushClassMethod(t, a, D, !0, !1, !1)); } else if ((T === "get" || T === "set") && !(this.match(55) && this.isLineTerminator())) { this.resetPreviousNodeTrailingComments(b), p.kind = T; let D = this.match(139); this.parseClassElementName(a), D ? this.pushClassPrivateMethod(t, o, !1, !1) : (this.isNonstaticConstructor(a) && this.raise(N.ConstructorIsAccessor, a.key), this.pushClassMethod(t, a, !1, !1, !1, !1)), this.checkGetterSetterParams(a); } else if (T === "accessor" && !this.isLineTerminator()) { this.expectPlugin("decoratorAutoAccessors"), this.resetPreviousNodeTrailingComments(b); let D = this.match(139); this.parseClassElementName(l), this.pushClassAccessorProperty(t, c, D); } else this.isLineTerminator() ? d ? this.pushClassPrivateProperty(t, u) : this.pushClassProperty(t, l) : this.unexpected(); } parseClassElementName(t) { let { type: r, value: s } = this.state; if ((r === 132 || r === 134) && t.static && s === "prototype" && this.raise(N.StaticPrototype, this.state.startLoc), r === 139) { s === "constructor" && this.raise(N.ConstructorClassPrivateField, this.state.startLoc); let n = this.parsePrivateName(); return t.key = n, n; } return this.parsePropertyName(t), t.key; } parseClassStaticBlock(t, r) { var s; this.scope.enter(720); let n = this.state.labels; this.state.labels = [], this.prodParam.enter(0); let a = r.body = []; this.parseBlockOrModuleBlockBody(a, void 0, !1, 8), this.prodParam.exit(), this.scope.exit(), this.state.labels = n, t.body.push(this. finishNode(r, "StaticBlock")), (s = r.decorators) != null && s.length && this.raise(N.DecoratorStaticBlock, r); } pushClassProperty(t, r) { !r.computed && this.nameIsConstructor(r.key) && this.raise(N.ConstructorClassField, r.key), t.body.push(this.parseClassProperty(r)); } pushClassPrivateProperty(t, r) { let s = this.parseClassPrivateProperty(r); t.body.push(s), this.classScope.declarePrivateName(this.getPrivateNameSV(s.key), 0, s.key.loc.start); } pushClassAccessorProperty(t, r, s) { !s && !r.computed && this.nameIsConstructor(r.key) && this.raise(N.ConstructorClassField, r.key); let n = this.parseClassAccessorProperty(r); t.body.push(n), s && this.classScope.declarePrivateName(this.getPrivateNameSV(n.key), 0, n.key.loc.start); } pushClassMethod(t, r, s, n, a, o) { t.body.push(this.parseMethod(r, s, n, a, o, "ClassMethod", !0)); } pushClassPrivateMethod(t, r, s, n) { let a = this.parseMethod(r, s, n, !1, !1, "ClassPrivateMethod", !0); t.body.push(a); let o = a.kind === "get" ? a.static ? 6 : 2 : a.kind === "set" ? a.static ? 5 : 1 : 0; this.declareClassPrivateMethodInScope(a, o); } 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(Px()), this.prodParam.enter(0), t.value = this.eat(29) ? this.parseMaybeAssignAllowIn() : null, this.expressionScope.exit(), this.prodParam.exit(), this.scope.exit(); } parseClassId(t, r, s, n = 8331) { if (Be(this.state.type)) t.id = this.parseIdentifier(), r && this.declareNameFromIdentifier(t.id, n); else if (s || !r) t.id = null; else throw this.raise(N.MissingClassName, this.state.startLoc); } parseClassSuper(t) { t.superClass = this.eat(81) ? this.parseExprSubscripts() : null; } parseExport(t, r) { let s = this.parseMaybeImportPhase(t, !0), n = this.maybeParseExportDefaultSpecifier(t, s), a = !n || this.eat(12), o = a && this.eatExportStar( t), l = o && this.maybeParseExportNamespaceSpecifier(t), u = a && (!l || this.eat(12)), c = n || o; if (o && !l) { if (n && this.unexpected(), r) throw this.raise(N.UnsupportedDecoratorExport, t); return this.parseExportFrom(t, !0), this.sawUnambiguousESM = !0, this.finishNode(t, "ExportAllDeclaration"); } let p = this.maybeParseExportNamedSpecifiers(t); n && a && !o && !p && this.unexpected(null, 5), l && u && this.unexpected(null, 98); let f; if (c || p) { if (f = !1, r) throw this.raise(N.UnsupportedDecoratorExport, t); this.parseExportFrom(t, c); } else f = this.maybeParseExportDeclaration(t); if (c || p || f) { var h; let b = t; if (this.checkExport(b, !0, !1, !!b.source), ((h = b.declaration) == null ? void 0 : h.type) === "ClassDeclaration") this.maybeTakeDecorators(r, b.declaration, b); else if (r) throw this.raise(N.UnsupportedDecoratorExport, t); return this.sawUnambiguousESM = !0, this.finishNode(b, "ExportNamedDeclaration"); } if (this.eat(65)) { let b = t, T = this.parseExportDefaultExpression(); if (b.declaration = T, T.type === "ClassDeclaration") this.maybeTakeDecorators(r, T, b); else if (r) throw this.raise(N.UnsupportedDecoratorExport, t); return this.checkExport(b, !0, !0), this.sawUnambiguousESM = !0, this.finishNode(b, "ExportDefaultDeclaration"); } throw this.unexpected(null, 5); } eatExportStar(t) { return this.eat(55); } maybeParseExportDefaultSpecifier(t, r) { if (r || this.isExportDefaultSpecifier()) { this.expectPlugin("exportDefaultFrom", r?.loc.start); let s = r || this.parseIdentifier(!0), n = this.startNodeAtNode(s); return n.exported = s, t.specifiers = [this.finishNode(n, "ExportDefaultSpecifier")], !0; } return !1; } maybeParseExportNamespaceSpecifier(t) { if (this.isContextual(93)) { var r, s; (s = (r = t).specifiers) != null || (r.specifiers = []); let n = this.startNodeAt(this.state.lastTokStartLoc); return this.next(), n.exported = this.parseModuleExportName(), t.specifiers.push(this.finishNode(n, "ExportNamespaceSpecifier")), !0; } return !1; } maybeParseExportNamedSpecifiers(t) { if (this.match(5)) { let r = t; r.specifiers || (r.specifiers = []); let s = r.exportKind === "type"; return r.specifiers.push(...this.parseExportSpecifiers(s)), 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(N.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(N.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 (Be(t)) { if (t === 95 && !this.state.containsEsc || t === 100) return !1; if ((t === 130 || t === 129) && !this.state.containsEsc) { let n = this.nextTokenStart(), a = this.input.charCodeAt(n); if (a === 123 || this.chStartsBindingIdentifier(a, n) && !this.input.startsWith("from", n)) return this.expectOnePlugin(["flow", "typescript"]), !1; } } else if (!this.match(65)) return !1; let r = this.nextTokenStart(), s = this.isUnparsedContextual(r, "from"); if (this.input.charCodeAt(r) === 44 || Be(this.state.type) && s) return !0; if (this.match(65) && s) { let n = this.input.charCodeAt(this.nextTokenStartSince(r + 4)); return n === 34 || n === 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(N.DecoratorBeforeExport, this.state.startLoc), !0) : this.isUsing() ? (this.raise( N.UsingDeclarationExport, this.state.startLoc), !0) : this.isAwaitUsing() ? (this.raise(N.UsingDeclarationExport, this.state.startLoc), !0) : t === 74 || t === 75 || t === 68 || t === 80 || this.isLet() || this.isAsyncFunction(); } checkExport(t, r, s, n) { if (r) { var a; if (s) { if (this.checkDuplicateExports(t, "default"), this.hasPlugin("exportDefaultFrom")) { var o; let l = t.declaration; l.type === "Identifier" && l.name === "from" && l.end - l.start === 4 && !((o = l.extra) != null && o.parenthesized) && this.raise( N.ExportDefaultFromAsIdentifier, l); } } else if ((a = t.specifiers) != null && a.length) for (let l of t.specifiers) { let { exported: u } = l, c = u.type === "Identifier" ? u.name : u.value; if (this.checkDuplicateExports(l, c), !n && l.local) { let { local: p } = l; p.type !== "Identifier" ? this.raise(N.ExportBindingIsString, l, { localName: p.value, exportName: c }) : (this.checkReservedWord(p.name, p.loc.start, !0, !1), this.scope.checkLocalExport(p)); } } else if (t.declaration) { let l = t.declaration; if (l.type === "FunctionDeclaration" || l.type === "ClassDeclaration") { let { id: u } = l; if (!u) throw new Error("Assertion failure"); this.checkDuplicateExports(t, u.name); } else if (l.type === "VariableDeclaration") for (let u of l.declarations) this.checkDeclaration(u.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(N.DuplicateDefaultExport, t) : this.raise(N.DuplicateExport, t, { exportName: r })), this.exportedIdentifiers.add(r); } parseExportSpecifiers(t) { let r = [], s = !0; for (this.expect(5); !this.eat(8); ) { if (s) s = !1; else if (this.expect(12), this.eat(8)) break; let n = this.isContextual(130), a = this.match(134), o = this.startNode(); o.local = this.parseModuleExportName(), r.push(this.parseExportSpecifier(o, a, t, n)); } return r; } parseExportSpecifier(t, r, s, n) { 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 = NH.exec(t.value); return r && this.raise(N.ModuleExportNameHasLoneSurrogate, t, { surrogateCharCode: r[0].charCodeAt(0) }), t; } return this.parseIdentifier(!0); } isJSONModuleImport(t) { return t.assertions != null ? t.assertions.some(({ key: r, value: s }) => s.value === "json" && (r.type === "Identifier" ? r.name === "type" : r.value === "type")) : !1; } checkImportReflection(t) { let { specifiers: r } = t, s = r.length === 1 ? r[0].type : null; if (t.phase === "source") s !== "ImportDefaultSpecifier" && this.raise(N.SourcePhaseImportRequiresDefault, r[0].loc.start); else if (t.phase === "defer") s !== "ImportNamespaceSpecifier" && this.raise(N.DeferImportRequiresNamespace, r[0].loc.start); else if (t.module) { var n; s !== "ImportDefaultSpecifier" && this.raise(N.ImportReflectionNotBinding, r[0].loc.start), ((n = t.assertions) == null ? void 0 : n. length) > 0 && this.raise(N.ImportReflectionHasAssertion, r[0].loc.start); } } checkJSONModuleImport(t) { if (this.isJSONModuleImport(t) && t.type !== "ExportAllDeclaration") { let { specifiers: r } = t; if (r != null) { let s = r.find((n) => { let a; if (n.type === "ExportSpecifier" ? a = n.local : n.type === "ImportSpecifier" && (a = n.imported), a !== void 0) return a.type === "Identifier" ? a.name !== "default" : a.value !== "default"; }); s !== void 0 && this.raise(N.ImportJSONBindingNotDefault, s.loc.start); } } } isPotentialImportPhase(t) { return t ? !1 : this.isContextual(105) || this.isContextual(97) || this.isContextual(127); } applyImportPhase(t, r, s, n) { r || (s === "module" ? (this.expectPlugin("importReflection", n), t.module = !0) : this.hasPlugin("importReflection") && (t.module = !1), s === "source" ? (this.expectPlugin("sourcePhaseImports", n), t.phase = "source") : s === "defer" ? (this.expectPlugin("deferredImport\ Evaluation", n), t.phase = "defer") : this.hasPlugin("sourcePhaseImports") && (t.phase = null)); } parseMaybeImportPhase(t, r) { if (!this.isPotentialImportPhase(r)) return this.applyImportPhase(t, r, null), null; let s = this.startNode(), n = this.parseIdentifierName(!0), { type: a } = this.state; return (Fr(a) ? a !== 98 || this.lookaheadCharCode() === 102 : a !== 12) ? (this.applyImportPhase(t, r, n, s.loc.start), null) : (this. applyImportPhase(t, r, null), this.createIdentifier(s, n)); } isPrecedingIdImportPhase(t) { let { type: r } = this.state; return Be(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 n = !this.maybeParseDefaultImportSpecifier(t, r) || this.eat(12), a = n && this.maybeParseStarImportSpecifier(t); return n && !a && 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, "ImportDecl\ aration"); } parseImportSource() { return this.match(134) || this.unexpected(), this.parseExprAtom(); } parseImportSpecifierLocal(t, r, s) { r.local = this.parseIdentifier(), t.specifiers.push(this.finishImportSpecifier(r, s)); } finishImportSpecifier(t, r, s = 8201) { return this.checkLVal(t.local, { type: r }, s), this.finishNode(t, r); } parseImportAttributes() { this.expect(5); let t = [], r = /* @__PURE__ */ new Set(); do { if (this.match(8)) break; let s = this.startNode(), n = this.state.value; if (r.has(n) && this.raise(N.ModuleAttributesWithDuplicateKeys, this.state.startLoc, { key: n }), r.add(n), this.match(134) ? s.key = this.parseStringLiteral(n) : s.key = this.parseIdentifier(!0), this.expect(14), !this.match( 134)) throw this.raise(N.ModuleAttributeInvalidValue, this.state.startLoc); s.value = this.parseStringLiteral(this.state.value), t.push(this.finishNode(s, "ImportAttribute")); } while (this.eat(12)); return this.expect(8), t; } parseModuleAttributes() { let t = [], r = /* @__PURE__ */ new Set(); do { let s = this.startNode(); if (s.key = this.parseIdentifier(!0), s.key.name !== "type" && this.raise(N.ModuleAttributeDifferentFromType, s.key), r.has(s.key.name) && this.raise(N.ModuleAttributesWithDuplicateKeys, s.key, { key: s.key.name }), r.add(s.key.name), this.expect(14), !this.match(134)) throw this.raise(N.ModuleAttributeInvalidValue, this.state.startLoc); s.value = this.parseStringLiteral(this.state.value), t.push(this.finishNode(s, "ImportAttribute")); } while (this.eat(12)); return t; } maybeParseImportAttributes(t) { let r; var s = !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(), s = !0; } else this.isContextual(94) && !this.hasPrecedingLineBreak() ? (!this.hasPlugin("deprecatedImportAssert") && !this.hasPlugin("importA\ ssertions") && this.raise(N.ImportAttributesUseAssert, this.state.startLoc), this.hasPlugin("importAssertions") || this.addExtra(t, "depreca\ tedAssertSyntax", !0), this.next(), r = this.parseImportAttributes()) : r = []; !s && this.hasPlugin("importAssertions") ? t.assertions = r : t.attributes = r; } maybeParseDefaultImportSpecifier(t, r) { if (r) { let s = this.startNodeAtNode(r); return s.local = r, t.specifiers.push(this.finishImportSpecifier(s, "ImportDefaultSpecifier")), !0; } else if (Fr(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(N.DestructureNamedImport, this.state.startLoc); if (this.expect(12), this.eat(8)) break; } let s = this.startNode(), n = this.match(134), a = this.isContextual(130); s.imported = this.parseModuleExportName(); let o = this.parseImportSpecifier(s, n, t.importKind === "type" || t.importKind === "typeof", a, void 0); t.specifiers.push(o); } } parseImportSpecifier(t, r, s, n, a) { if (this.eatContextual(93)) t.local = this.parseIdentifier(); else { let { imported: o } = t; if (r) throw this.raise(N.ImportBindingIsString, t, { importName: o.value }); this.checkReservedWord(o.name, t.loc.start, !0, !0), t.local || (t.local = this.cloneIdentifier(o)); } return this.finishImportSpecifier(t, "ImportSpecifier", a); } isThisParam(t) { return t.type === "Identifier" && t.name === "this"; } }, Jl = class extends q0 { static { i(this, "Parser"); } constructor(t, r, s) { let n = OY(t); super(n, r), this.options = n, this.initializeScopes(), this.plugins = s, this.filename = n.sourceFilename, this.startIndex = n.startIndex; let a = 0; n.allowAwaitOutsideFunction && (a |= 1), n.allowReturnOutsideFunction && (a |= 2), n.allowImportExportEverywhere && (a |= 8), n.allowSuperOutsideMethod && (a |= 16), n.allowUndeclaredExports && (a |= 64), n.allowNewTargetOutsideFunction && (a |= 4), n.allowYieldOutsideFunction && (a |= 32), n.ranges && (a |= 128), n.tokens && (a |= 256), n.createImportExpressions && (a |= 512), n.createParenthesizedExpressions && (a |= 1024), n.errorRecovery && (a |= 2048), n.attachComment && (a |= 4096), n.annexB && (a |= 8192), this.optionFlags = a; } getScopeHandler() { return Ja; } parse() { this.enterInitialScopes(); let t = this.startNode(), r = this.startNode(); this.nextToken(), t.errors = null; let s = this.parseTopLevel(t, r); return s.errors = this.state.errors, s.comments.length = this.state.commentsLen, s; } }; function kH(e, t) { var r; if (((r = t) == null ? void 0 : r.sourceType) === "unambiguous") { t = Object.assign({}, t); try { t.sourceType = "module"; let s = Wa(t, e), n = s.parse(); if (s.sawUnambiguousESM) return n; if (s.ambiguousScriptDifferentAst) try { return t.sourceType = "script", Wa(t, e).parse(); } catch { } else n.program.sourceType = "script"; return n; } catch (s) { try { return t.sourceType = "script", Wa(t, e).parse(); } catch { } throw s; } } else return Wa(t, e).parse(); } i(kH, "parse"); function FH(e, t) { let r = Wa(t, e); return r.options.strictMode && (r.state.strict = !0), r.getExpression(); } i(FH, "parseExpression"); function LH(e) { let t = {}; for (let r of Object.keys(e)) t[r] = ys(e[r]); return t; } i(LH, "generateExportedTokenTypes"); var jH = LH(FY); function Wa(e, t) { let r = Jl, s = /* @__PURE__ */ new Map(); if (e != null && e.plugins) { for (let n of e.plugins) { let a, o; typeof n == "string" ? a = n : [a, o] = n, s.has(a) || s.set(a, o || {}); } _H(s), r = MH(s); } return new r(e, t, s); } i(Wa, "getParser"); var dx = /* @__PURE__ */ new Map(); function MH(e) { let t = []; for (let n of IH) e.has(n) && t.push(n); let r = t.join("|"), s = dx.get(r); if (!s) { s = Jl; for (let n of t) s = wx[n](s); dx.set(r, s); } return s; } i(MH, "getParserClass"); Xa.parse = kH; Xa.parseExpression = FH; Xa.tokTypes = jH; }); // ../node_modules/picocolors/picocolors.js var Ix = w((I4e, X0) => { var Xl = process || {}, Dx = Xl.argv || [], Gl = Xl.env || {}, RH = !(Gl.NO_COLOR || Dx.includes("--no-color")) && (!!Gl.FORCE_COLOR || Dx. includes("--color") || Xl.platform === "win32" || (Xl.stdout || {}).isTTY && Gl.TERM !== "dumb" || !!Gl.CI), qH = /* @__PURE__ */ i((e, t, r = e) => (s) => { let n = "" + s, a = n.indexOf(t, e.length); return ~a ? e + UH(n, t, r, a) + t : e + n + t; }, "formatter"), UH = /* @__PURE__ */ i((e, t, r, s) => { let n = "", a = 0; do n += e.substring(a, s) + r, a = s + t.length, s = e.indexOf(t, a); while (~s); return n + e.substring(a); }, "replaceClose"), _x = /* @__PURE__ */ i((e = RH) => { let t = e ? qH : () => 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") }; }, "createColors"); X0.exports = _x(); X0.exports.createColors = _x; }); // ../node_modules/js-tokens/index.js var Ox = w((zl) => { Object.defineProperty(zl, "__esModule", { value: !0 }); zl.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; zl.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 = "white\ space"), t; }; }); // ../node_modules/@babel/code-frame/lib/index.js var Qa = w((za) => { "use strict"; Object.defineProperty(za, "__esModule", { value: !0 }); var z0 = Ix(), Nx = Ox(), Bx = yi(); function $H() { return typeof process == "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? !1 : z0.isColorSupported; } i($H, "isColorSupported"); var Ql = /* @__PURE__ */ i((e, t) => (r) => e(t(r)), "compose"); function Lx(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: Ql(Ql(e.white, e.bgRed), e.bold), gutter: e.gray, marker: Ql(e.red, e.bold), message: Ql(e.red, e.bold), reset: e.reset }; } i(Lx, "buildDefs"); var VH = Lx(z0.createColors(!0)), KH = Lx(z0.createColors(!1)); function jx(e) { return e ? VH : KH; } i(jx, "getDefs"); var WH = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]), YH = /\r\n|[\n\r\u2028\u2029]/, HH = /^[()[\]{}]$/, Mx; { let e = /^[a-z][\w-]*$/i, t = /* @__PURE__ */ i(function(r, s, n) { if (r.type === "name") { if (Bx.isKeyword(r.value) || Bx.isStrictReservedWord(r.value, !0) || WH.has(r.value)) return "keyword"; if (e.test(r.value) && (n[s - 1] === "<" || n.slice(s - 2, s) === " t[s](a)).join(` `) : r += n; return r; } i(Rx, "highlight"); var kx = !1, Fx = /\r\n|[\n\r\u2028\u2029]/; function JH(e, t, r) { let s = Object.assign({ column: 0, line: -1 }, e.start), n = Object.assign({}, s, e.end), { linesAbove: a = 2, linesBelow: o = 3 } = r || {}, l = s.line, u = s.column, c = n.line, p = n.column, f = Math.max(l - (a + 1), 0), h = Math.min(t.length, c + o); l === -1 && (f = 0), c === -1 && (h = t.length); let b = c - l, T = {}; if (b) for (let d = 0; d <= b; d++) { let g = d + l; if (!u) T[g] = !0; else if (d === 0) { let D = t[g - 1].length; T[g] = [u, D - u + 1]; } else if (d === b) T[g] = [0, p]; else { let D = t[g - d].length; T[g] = [0, D]; } } else u === p ? u ? T[l] = [u, 0] : T[l] = !0 : T[l] = [u, p - u]; return { start: f, end: h, markerLines: T }; } i(JH, "getMarkerLines"); function qx(e, t, r = {}) { let s = r.forceColor || $H() && r.highlightCode, n = jx(s), a = e.split(Fx), { start: o, end: l, markerLines: u } = JH(t, a, r), c = t.start && typeof t.start.column == "number", p = String(l).length, h = (s ? Rx(e) : e).split(Fx, l).slice(o, l).map( (b, T) => { let d = o + 1 + T, D = ` ${` ${d}`.slice(-p)} |`, _ = u[d], O = !u[d + 1]; if (_) { let k = ""; if (Array.isArray(_)) { let j = b.slice(0, Math.max(_[0] - 1, 0)).replace(/[^\t]/g, " "), U = _[1] || 1; k = [` `, n.gutter(D.replace(/\d/g, " ")), " ", j, n.marker("^").repeat(U)].join(""), O && r.message && (k += " " + n.message(r.message)); } return [n.marker(">"), n.gutter(D), b.length > 0 ? ` ${b}` : "", k].join(""); } else return ` ${n.gutter(D)}${b.length > 0 ? ` ${b}` : ""}`; }).join(` `); return r.message && !c && (h = `${" ".repeat(p + 1)}${r.message} ${h}`), s ? n.reset(h) : h; } i(qx, "codeFrameColumns"); function GH(e, t, r, s = {}) { if (!kx) { kx = !0; let a = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`."; if (process.emitWarning) process.emitWarning(a, "DeprecationWarning"); else { let o = new Error(a); o.name = "DeprecationWarning", console.warn(new Error(a)); } } return r = Math.max(r, 0), qx(e, { start: { column: r, line: t } }, s); } i(GH, "index"); za.codeFrameColumns = qx; za.default = GH; za.highlight = Rx; }); // ../node_modules/@babel/template/lib/parse.js var Z0 = w((Q0) => { "use strict"; Object.defineProperty(Q0, "__esModule", { value: !0 }); Q0.default = uJ; var XH = ue(), zH = Nn(), QH = Qa(), { isCallExpression: ZH, isExpressionStatement: eJ, isFunction: tJ, isIdentifier: rJ, isJSXIdentifier: sJ, isNewExpression: nJ, isPlaceholder: Zl, isStatement: iJ, isStringLiteral: Ux, removePropertiesDeep: aJ, traverse: oJ } = XH, lJ = /^[_$A-Z0-9]+$/; function uJ(e, t, r) { let { placeholderWhitelist: s, placeholderPattern: n, preserveComments: a, syntacticPlaceholders: o } = r, l = fJ(t, r.parser, o); aJ(l, { preserveComments: a }), e.validate(l); let u = { syntactic: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, legacy: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, placeholderWhitelist: s, placeholderPattern: n, syntacticPlaceholders: o }; return oJ(l, cJ, u), Object.assign({ ast: l }, u.syntactic.placeholders.length ? u.syntactic : u.legacy); } i(uJ, "parseAndBuildMetadata"); function cJ(e, t, r) { var s; let n, a = r.syntactic.placeholders.length > 0; if (Zl(e)) { if (r.syntacticPlaceholders === !1) throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false."); n = e.name.name, a = !0; } else { if (a || r.syntacticPlaceholders) return; if (rJ(e) || sJ(e)) n = e.name; else if (Ux(e)) n = e.value; else return; } if (a && (r.placeholderPattern != null || r.placeholderWhitelist != null)) throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'"); if (!a && (r.placeholderPattern === !1 || !(r.placeholderPattern || lJ).test(n)) && !((s = r.placeholderWhitelist) != null && s.has(n))) return; t = t.slice(); let { node: o, key: l } = t[t.length - 1], u; Ux(e) || Zl(e, { expectedNode: "StringLiteral" }) ? u = "string" : nJ(o) && l === "arguments" || ZH(o) && l === "arguments" || tJ(o) && l === "params" ? u = "param" : eJ(o) && !Zl(e) ? (u = "statement", t = t.slice(0, -1)) : iJ(e) && Zl(e) ? u = "statement" : u = "other"; let { placeholders: c, placeholderNames: p } = a ? r.syntactic : r.legacy; c.push({ name: n, type: u, resolve: /* @__PURE__ */ i((f) => pJ(f, t), "resolve"), isDuplicate: p.has(n) }), p.add(n); } i(cJ, "placeholderVisitorHandler"); function pJ(e, t) { let r = e; for (let a = 0; a < t.length - 1; a++) { let { key: o, index: l } = t[a]; l === void 0 ? r = r[o] : r = r[o][l]; } let { key: s, index: n } = t[t.length - 1]; return { parent: r, key: s, index: n }; } i(pJ, "resolveAncestors"); function fJ(e, t, r) { let s = (t.plugins || []).slice(); r !== !1 && s.push("placeholders"), t = Object.assign({ allowAwaitOutsideFunction: !0, allowReturnOutsideFunction: !0, allowNewTargetOutsideFunction: !0, allowSuperOutsideMethod: !0, allowYieldOutsideFunction: !0, sourceType: "module" }, t, { plugins: s }); try { return (0, zH.parse)(e, t); } catch (n) { let a = n.loc; throw a && (n.message += ` ` + (0, QH.codeFrameColumns)(e, { start: a }), n.code = "BABEL_TEMPLATE_PARSE_ERROR"), n; } } i(fJ, "parseWithCodeFrame"); }); // ../node_modules/@babel/template/lib/populate.js var sh = w((rh) => { "use strict"; Object.defineProperty(rh, "__esModule", { value: !0 }); rh.default = gJ; var dJ = ue(), { blockStatement: hJ, cloneNode: th, emptyStatement: mJ, expressionStatement: eh, identifier: eu, isStatement: $x, isStringLiteral: yJ, stringLiteral: bJ, validate: Vx } = dJ; function gJ(e, t) { let r = th(e.ast); return t && (e.placeholders.forEach((s) => { if (!hasOwnProperty.call(t, s.name)) { let n = s.name; throw new Error(`Error: No substitution given for "${n}". 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(['${n}'])} - { placeholderPattern: /^${n}$/ }`); } }), Object.keys(t).forEach((s) => { if (!e.placeholderNames.has(s)) throw new Error(`Unknown substitution "${s}" given`); })), e.placeholders.slice().reverse().forEach((s) => { try { var n; TJ(s, r, (n = t && t[s.name]) != null ? n : null); } catch (a) { throw a.message = `@babel/template placeholder "${s.name}": ${a.message}`, a; } }), r; } i(gJ, "populatePlaceholders"); function TJ(e, t, r) { e.isDuplicate && (Array.isArray(r) ? r = r.map((l) => th(l)) : typeof r == "object" && (r = th(r))); let { parent: s, key: n, index: a } = e.resolve(t); if (e.type === "string") { if (typeof r == "string" && (r = bJ(r)), !r || !yJ(r)) throw new Error("Expected string substitution"); } else if (e.type === "statement") a === void 0 ? r ? Array.isArray(r) ? r = hJ(r) : typeof r == "string" ? r = eh(eu(r)) : $x(r) || (r = eh(r)) : r = mJ() : r && !Array. isArray(r) && (typeof r == "string" && (r = eu(r)), $x(r) || (r = eh(r))); else if (e.type === "param") { if (typeof r == "string" && (r = eu(r)), a === void 0) throw new Error("Assertion failure."); } else if (typeof r == "string" && (r = eu(r)), Array.isArray(r)) throw new Error("Cannot replace single expression with an array."); function o(l, u, c) { let p = l[u]; l[u] = c, (p.type === "Identifier" || p.type === "Placeholder") && (p.typeAnnotation && (c.typeAnnotation = p.typeAnnotation), p.optional && (c.optional = p.optional), p.decorators && (c.decorators = p.decorators)); } if (i(o, "set"), a === void 0) Vx(s, n, r), o(s, n, r); else { let l = s[n].slice(); e.type === "statement" || e.type === "param" ? r == null ? l.splice(a, 1) : Array.isArray(r) ? l.splice(a, 1, ...r) : o(l, a, r) : o(l, a, r), Vx(s, n, l), s[n] = l; } } i(TJ, "applyReplacement"); }); // ../node_modules/@babel/template/lib/string.js var Kx = w((nh) => { "use strict"; Object.defineProperty(nh, "__esModule", { value: !0 }); nh.default = vJ; var xJ = Rl(), EJ = Z0(), SJ = sh(); function vJ(e, t, r) { t = e.code(t); let s; return (n) => { let a = (0, xJ.normalizeReplacements)(n); return s || (s = (0, EJ.default)(e, t, r)), e.unwrap((0, SJ.default)(s, a)); }; } i(vJ, "stringTemplate"); }); // ../node_modules/@babel/template/lib/literal.js var Wx = w((ih) => { "use strict"; Object.defineProperty(ih, "__esModule", { value: !0 }); ih.default = wJ; var PJ = Rl(), AJ = Z0(), CJ = sh(); function wJ(e, t, r) { let { metadata: s, names: n } = DJ(e, t, r); return (a) => { let o = {}; return a.forEach((l, u) => { o[n[u]] = l; }), (l) => { let u = (0, PJ.normalizeReplacements)(l); return u && Object.keys(u).forEach((c) => { if (hasOwnProperty.call(o, c)) throw new Error("Unexpected replacement overlap."); }), e.unwrap((0, CJ.default)(s, u ? Object.assign(u, o) : o)); }; }; } i(wJ, "literalTemplate"); function DJ(e, t, r) { let s = "BABEL_TPL$", n = t.join(""); do s = "$$" + s; while (n.includes(s)); let { names: a, code: o } = _J(t, s); return { metadata: (0, AJ.default)(e, e.code(o), { parser: r.parser, placeholderWhitelist: new Set(a.concat(r.placeholderWhitelist ? Array.from(r.placeholderWhitelist) : [])), placeholderPattern: r.placeholderPattern, preserveComments: r.preserveComments, syntacticPlaceholders: r.syntacticPlaceholders }), names: a }; } i(DJ, "buildLiteralData"); function _J(e, t) { let r = [], s = e[0]; for (let n = 1; n < e.length; n++) { let a = `${t}${n - 1}`; r.push(a), s += a + e[n]; } return { names: r, code: s }; } i(_J, "buildTemplateCode"); }); // ../node_modules/@babel/template/lib/builder.js var zx = w((ah) => { "use strict"; Object.defineProperty(ah, "__esModule", { value: !0 }); ah.default = Xx; var as = Rl(), Yx = Kx(), Hx = Wx(), Jx = (0, as.validate)({ placeholderPattern: !1 }); function Xx(e, t) { let r = /* @__PURE__ */ new WeakMap(), s = /* @__PURE__ */ new WeakMap(), n = t || (0, as.validate)(null); return Object.assign((a, ...o) => { if (typeof a == "string") { if (o.length > 1) throw new Error("Unexpected extra params."); return Gx((0, Yx.default)(e, a, (0, as.merge)(n, (0, as.validate)(o[0])))); } else if (Array.isArray(a)) { let l = r.get(a); return l || (l = (0, Hx.default)(e, a, n), r.set(a, l)), Gx(l(o)); } else if (typeof a == "object" && a) { if (o.length > 0) throw new Error("Unexpected extra params."); return Xx(e, (0, as.merge)(n, (0, as.validate)(a))); } throw new Error(`Unexpected template param ${typeof a}`); }, { ast: /* @__PURE__ */ i((a, ...o) => { if (typeof a == "string") { if (o.length > 1) throw new Error("Unexpected extra params."); return (0, Yx.default)(e, a, (0, as.merge)((0, as.merge)(n, (0, as.validate)(o[0])), Jx))(); } else if (Array.isArray(a)) { let l = s.get(a); return l || (l = (0, Hx.default)(e, a, (0, as.merge)(n, Jx)), s.set(a, l)), l(o)(); } throw new Error(`Unexpected template param ${typeof a}`); }, "ast") }); } i(Xx, "createTemplateBuilder"); function Gx(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 (s) { throw s.stack += ` ============= ${t}`, s; } }; } i(Gx, "extendedTrace"); }); // ../node_modules/@babel/template/lib/index.js var to = w((Qt) => { "use strict"; Object.defineProperty(Qt, "__esModule", { value: !0 }); Qt.statements = Qt.statement = Qt.smart = Qt.program = Qt.expression = Qt.default = void 0; var Za = QT(), eo = zx(), oh = Qt.smart = (0, eo.default)(Za.smart), IJ = Qt.statement = (0, eo.default)(Za.statement), OJ = Qt.statements = (0, eo.default)(Za.statements), NJ = Qt.expression = (0, eo.default)(Za.expression), BJ = Qt.program = (0, eo.default)(Za.program), W4e = Qt. default = Object.assign(oh.bind(void 0), { smart: oh, statement: IJ, statements: OJ, expression: NJ, program: BJ, ast: oh.ast }); }); // ../node_modules/@babel/helpers/lib/helpers-generated.js var Qx = w((tu) => { "use strict"; Object.defineProperty(tu, "__esModule", { value: !0 }); tu.default = void 0; var kJ = to(); function R(e, t, r) { return Object.freeze({ minVersion: e, ast: /* @__PURE__ */ i(() => kJ.default.program.ast(t, { preserveComments: !0 }), "ast"), metadata: r }); } i(R, "helper"); var FJ = tu.default = { __proto__: null, OverloadYield: R("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: R("7.0.0-beta.0", 'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach(functi\ on(i){a[i]=n[i]}),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().reve\ rse().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.initializ\ er=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: R("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=Obj\ ect.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,"c\ lass 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?functi\ on(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.i\ nit,"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 atte\ mpt 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: R("7.9.0", 'function _createForOfIteratorHelperLoose(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.ite\ rator]||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 i\ terate 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: R("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.cons\ equent.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: R("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=thi\ s.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.elemen\ ts;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 runni\ ng");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.ca\ ll(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 Generator\ FunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(define(t={},n,function(){return this}),t),u=GeneratorFunctionPrototy\ pe.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionProtot\ ype):(e.__proto__=GeneratorFunctionPrototype,define(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return GeneratorFunction.protot\ ype=GeneratorFunctionPrototype,define(u,"constructor",GeneratorFunctionPrototype),define(GeneratorFunctionPrototype,"constructor",GeneratorF\ unction),GeneratorFunction.displayName="GeneratorFunction",define(GeneratorFunctionPrototype,o,"GeneratorFunction"),define(u),define(u,o,"Ge\ nerator"),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.alternat\ e.expressions.0.callee", "body.0.body.body.8.body.body.0.argument.expressions.0.alternate.expressions.1.callee", "body.0.body.body.9.argumen\ t.expressions.1.callee", "body.0.body.body.9.argument.expressions.2.callee", "body.0.body.body.9.argument.expressions.4.callee", "body.0.bod\ y.body.9.argument.expressions.5.callee", "body.0.body.body.9.argument.expressions.6.callee", "body.0.body.body.9.argument.expressions.7.call\ ee", "body.0.body.body.9.argument.expressions.8.callee"] }, internal: !1 }), regeneratorAsync: R("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: R("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: R("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 O\ verloadYield?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)},f\ unction(t){return n("throw",t,i,f)})}catch(t){f(t)}}var r;this.next||(define(AsyncIterator.prototype),define(AsyncIterator.prototype,"functi\ on"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),define(this,"_invoke",function(t,o,i){function f(){retu\ rn 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.express\ ions.0.right.expressions.1.callee", "body.0.body.body.2.expression.expressions.1.callee"] }, internal: !0 }), regeneratorDefine: R("7.27.0", 'function regeneratorDefine(e,r,n,t){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}regenerator\ Define=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,con\ figurable:!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", "bod\ y.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: R("7.27.0", "function _regeneratorKeys(e){var n=Object(e),r=[];for(var t in n)r.unshift(t);return function e(){for(;r.l\ ength;)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: R("7.18.0", 'function _regeneratorValues(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterat\ or"],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=vo\ id 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: R("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.getOw\ nPropertyDescriptor(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)}f\ unction _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: R("7.23.6", 'function setFunctionName(e,t,n){"symbol"==typeof t&&(t=(t=t.description)?"["+t+"]":"");try{Object.definePr\ operty(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: R("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: R("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: R("7.0.0-beta.0", "function _slicedToArray(r,e){return arrayWithHoles(r)||iterableToArrayLimit(r,e)||unsupportedIterableT\ oArray(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: R("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: R("7.25.0", 'function _superPropGet(t,o,e,r){var p=get(getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==type\ of 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: R("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: R("7.0.0-beta.0", "function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.definePrope\ rties(e,{raw:{value:Object.freeze(t)}}))}", { globals: ["Object"], locals: { _taggedTemplateLiteral: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_taggedTemplateLiteral", dependencies: {}, internal: !1 }), taggedTemplateLiteralLoose: R("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: R("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: R("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: R("7.0.0-beta.0", "function _temporalUndefined(){}", { globals: [], locals: { _temporalUndefined: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_temporalUndefined", dependencies: {}, internal: !1 }), toArray: R("7.0.0-beta.0", "function _toArray(r){return arrayWithHoles(r)||iterableToArray(r)||unsupportedIterableToArray(r)||nonIterabl\ eRest()}", { 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: R("7.0.0-beta.0", "function _toConsumableArray(r){return arrayWithoutHoles(r)||iterableToArray(r)||unsupportedIterabl\ eToArray(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: R("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: R("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: R("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: R("7.27.0", 'function tsRewriteRelativeImportExtensions(t,e){return"string"==typeof t&&/^\\.\\.?\\//.tes\ t(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: R("7.0.0-beta.0", 'function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symb\ ol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symb\ ol":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: R("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):"Argum\ ents"===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: R("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 d\ eclarations can only be used with objects, functions, null, or undefined.");if(r)var o=e[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispos\ e")];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)re\ turn 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}c\ atch(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: R("7.0.0-beta.0", 'function _wrapAsyncGenerator(e){return function(){return new AsyncGenerator(e.apply(this,argument\ s))}}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":"norm\ al",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){r\ eturn 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.re\ turn&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return th\ is},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.objec\ t.object", "body.2.expression.expressions.1.left.object.object", "body.2.expression.expressions.2.left.object.object", "body.2.expression.ex\ pressions.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: R("7.0.0-beta.0", 'function _wrapNativeSuper(t){var r="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=fun\ ction(t){if(null===t||!isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a f\ unction");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return construct(t,arguments,getPrototypeOf(this).c\ onstructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),setP\ rototypeOf(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: R("7.19.0", 'function _wrapRegExp(){_wrapRegExp=function(e,r){return new BabelRegExp(e,void 0,r)};var e=RegExp.prototype,r=n\ ew WeakMap;function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),setPrototypeOf(o,BabelRegExp.prototype)}function buildG\ roups(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"==type\ of 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: R("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(FJ, { AwaitValue: R("7.0.0-beta.0", "function _AwaitValue(t){this.wrapped=t}", { globals: [], locals: { _AwaitValue: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_AwaitValue", dependencies: {}, internal: !1 }), applyDecs: R("7.17.8", 'function old_createMetadataMethodsForProperty(e,t,a,r){return{getMetadata:function(o){old_assertNotFinished(r,"g\ etMetadata"),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.pri\ vate;if(void 0!==l)return l.get(a)}else if(Object.hasOwnProperty.call(i,"constructor"))return i.constructor},setMetadata:function(o,i){old_a\ ssertNotFinished(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.publ\ ic={}),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_convertMetadataMa\ pToFinal(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 current\ ly 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_pus\ hInitializers(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=Obj\ ect.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/access\ or. 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&&(assertVali\ dReturnValue(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&&(vo\ id 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)}applyMembe\ rDec(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){re\ turn 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 E\ rror("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not cu\ rrently 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.alte\ rnate.callee"] }, internal: !1 }), classApplyDescriptorDestructureSet: R("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");retu\ rn t}', { globals: ["TypeError"], locals: { _classApplyDescriptorDestructureSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classApplyDescriptorDestructureSet", dependencies: {}, internal: !1 }), classApplyDescriptorGet: R("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: R("7.13.10", 'function _classApplyDescriptorSet(e,t,l){if(t.set)t.set.call(e,l);else{if(!t.writable)throw new T\ ypeError("attempted to set read only private field");t.value=l}}', { globals: ["TypeError"], locals: { _classApplyDescriptorSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classApplyDescriptorSet", dependencies: {}, internal: !1 }), classCheckPrivateStaticAccess: R("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: R("7.13.10", 'function _classCheckPrivateStaticFieldDescriptor(t,e){if(void 0===t)throw new Type\ Error("attempted to "+e+" private static field before its declaration")}', { globals: ["TypeError"], locals: { _classCheckPrivateStaticFieldDescriptor: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classCheckPrivateStaticFieldDescriptor", dependencies: {}, internal: !1 }), classExtractFieldDescriptor: R("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: R("7.4.4", "function _classPrivateFieldDestructureSet(e,t){var r=classPrivateFieldGet2(t,e);return clas\ sApplyDescriptorDestructureSet(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: R("7.0.0-beta.0", "function _classPrivateFieldGet(e,t){var r=classPrivateFieldGet2(t,e);return classApplyDescripto\ rGet(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: R("7.0.0-beta.0", "function _classPrivateFieldSet(e,t,r){var s=classPrivateFieldGet2(t,e);return classApplyDescrip\ torSet(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: R("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: R("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: R("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: R("7.0.2", 'function _classStaticPrivateFieldSpecGet(t,s,r){return assertClassBrand(s,t),classCheckPriva\ teStaticFieldDescriptor(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: R("7.0.2", 'function _classStaticPrivateFieldSpecSet(s,t,r,e){return assertClassBrand(t,s),classCheckPri\ vateStaticFieldDescriptor(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: R("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: R("7.0.0-beta.0", 'function _defineEnumerableProperties(e,r){for(var t in r){var n=r[t];n.configurable=n.enu\ merable=!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.argumen\ t.expressions.1.callee", "body.1.body.body.1.body.body.0.argument.expressions.0.right.consequent.callee", "body.0.body.body.0.argument.expre\ ssions.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: R("7.0.0-beta.0", 'function _objectSpread(e){for(var r=1;r { "use strict"; Object.defineProperty(Lr, "__esModule", { value: !0 }); Lr.default = void 0; Lr.get = eE; Lr.getDependencies = qJ; Lr.isInternal = UJ; Lr.list = void 0; Lr.minVersion = RJ; var LJ = ue(), uh = Qx(), { cloneNode: jJ, identifier: Zx } = LJ; function ru(e, t, r) { try { let s = t.split("."), n = s.shift(); for (; s.length > 0; ) e = e[n], n = s.shift(); if (arguments.length > 2) e[n] = r; else return e[n]; } catch (s) { throw s.message += ` (when accessing ${t})`, s; } } i(ru, "deep"); function MJ(e, t, r, s, n, a) { let { locals: o, dependencies: l, exportBindingAssignments: u, exportName: c } = t, p = new Set(s || []); r && p.add(r); for (let [f, h] of (Object.entries || ((b) => Object.keys(b).map((T) => [T, b[T]])))(o)) { let b = f; if (r && f === c) b = r; else for (; p.has(b); ) b = "_" + b; if (b !== f) for (let T of h) ru(e, T, Zx(b)); } for (let [f, h] of (Object.entries || ((b) => Object.keys(b).map((T) => [T, b[T]])))(l)) { let b = typeof n == "function" && n(f) || Zx(f); for (let T of h) ru(e, T, jJ(b)); } a?.(e, c, (f) => { u.forEach((h) => ru(e, h, f(ru(e, h)))); }); } i(MJ, "permuteHelperAST"); var lh = /* @__PURE__ */ Object.create(null); function su(e) { if (!lh[e]) { let t = uh.default[e]; if (!t) throw Object.assign(new ReferenceError(`Unknown helper ${e}`), { code: "BABEL_HELPER_UNKNOWN", helper: e }); lh[e] = { minVersion: t.minVersion, build(r, s, n, a) { let o = t.ast(); return MJ(o, t.metadata, s, n, r, a), { nodes: o.body, globals: t.metadata.globals }; }, getDependencies() { return Object.keys(t.metadata.dependencies); } }; } return lh[e]; } i(su, "loadHelper"); function eE(e, t, r, s, n) { if (typeof r == "object") { let a = r; a?.type === "Identifier" ? r = a.name : r = void 0; } return su(e).build(t, r, s, n); } i(eE, "get"); function RJ(e) { return su(e).minVersion; } i(RJ, "minVersion"); function qJ(e) { return su(e).getDependencies(); } i(qJ, "getDependencies"); function UJ(e) { var t; return (t = uh.default[e]) == null ? void 0 : t.metadata.internal; } i(UJ, "isInternal"); Lr.ensure = (e) => { su(e); }; var G4e = Lr.list = Object.keys(uh.default).map((e) => e.replace(/^_/, "")), X4e = Lr.default = eE; }); // ../node_modules/@babel/traverse/lib/path/lib/virtual-types.js var ph = w((Te) => { "use strict"; Object.defineProperty(Te, "__esModule", { value: !0 }); Te.Var = Te.User = Te.Statement = Te.SpreadProperty = Te.Scope = Te.RestProperty = Te.ReferencedMemberExpression = Te.ReferencedIdentifier = Te.Referenced = Te.Pure = Te.NumericLiteralTypeAnnotation = Te.Generated = Te.ForAwaitStatement = Te.Flow = Te.Expression = Te.ExistentialTypeParam = Te.BlockScoped = Te.BindingIdentifier = void 0; var Z4e = Te.ReferencedIdentifier = ["Identifier", "JSXIdentifier"], ewe = Te.ReferencedMemberExpression = ["MemberExpression"], twe = Te. BindingIdentifier = ["Identifier"], rwe = Te.Statement = ["Statement"], swe = Te.Expression = ["Expression"], nwe = Te.Scope = ["Scopable", "Pattern"], iwe = Te.Referenced = null, awe = Te.BlockScoped = ["FunctionDeclaration", "ClassDeclaration", "VariableDeclaration"], owe = Te. Var = ["VariableDeclaration"], lwe = Te.User = null, uwe = Te.Generated = null, cwe = Te.Pure = null, pwe = Te.Flow = ["Flow", "ImportDecl\ aration", "ExportDeclaration", "ImportSpecifier"], fwe = Te.RestProperty = ["RestElement"], dwe = Te.SpreadProperty = ["RestElement"], hwe = Te. ExistentialTypeParam = ["ExistsTypeAnnotation"], mwe = Te.NumericLiteralTypeAnnotation = ["NumberLiteralTypeAnnotation"], ywe = Te.ForAwaitStatement = ["ForOfStatement"]; }); // ../node_modules/ms/index.js var rE = w((gwe, tE) => { var Ii = 1e3, Oi = Ii * 60, Ni = Oi * 60, Bn = Ni * 24, $J = Bn * 7, VJ = Bn * 365.25; tE.exports = function(e, t) { t = t || {}; var r = typeof e; if (r === "string" && e.length > 0) return KJ(e); if (r === "number" && isFinite(e)) return t.long ? YJ(e) : WJ(e); throw new Error( "val is not a non-empty string or a valid number. val=" + JSON.stringify(e) ); }; function KJ(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]), s = (t[2] || "ms").toLowerCase(); switch (s) { case "years": case "year": case "yrs": case "yr": case "y": return r * VJ; case "weeks": case "week": case "w": return r * $J; case "days": case "day": case "d": return r * Bn; case "hours": case "hour": case "hrs": case "hr": case "h": return r * Ni; case "minutes": case "minute": case "mins": case "min": case "m": return r * Oi; case "seconds": case "second": case "secs": case "sec": case "s": return r * Ii; case "milliseconds": case "millisecond": case "msecs": case "msec": case "ms": return r; default: return; } } } } i(KJ, "parse"); function WJ(e) { var t = Math.abs(e); return t >= Bn ? Math.round(e / Bn) + "d" : t >= Ni ? Math.round(e / Ni) + "h" : t >= Oi ? Math.round(e / Oi) + "m" : t >= Ii ? Math.round( e / Ii) + "s" : e + "ms"; } i(WJ, "fmtShort"); function YJ(e) { var t = Math.abs(e); return t >= Bn ? nu(e, t, Bn, "day") : t >= Ni ? nu(e, t, Ni, "hour") : t >= Oi ? nu(e, t, Oi, "minute") : t >= Ii ? nu(e, t, Ii, "secon\ d") : e + " ms"; } i(YJ, "fmtLong"); function nu(e, t, r, s) { var n = t >= r * 1.5; return Math.round(e / r) + " " + s + (n ? "s" : ""); } i(nu, "plural"); }); // ../node_modules/debug/src/common.js var fh = w((xwe, sE) => { function HJ(e) { r.debug = r, r.default = r, r.coerce = u, r.disable = o, r.enable = n, r.enabled = l, r.humanize = rE(), r.destroy = c, Object.keys(e).forEach( (p) => { r[p] = e[p]; }), r.names = [], r.skips = [], r.formatters = {}; function t(p) { let f = 0; for (let h = 0; h < p.length; h++) f = (f << 5) - f + p.charCodeAt(h), f |= 0; return r.colors[Math.abs(f) % r.colors.length]; } i(t, "selectColor"), r.selectColor = t; function r(p) { let f, h = null, b, T; function d(...g) { if (!d.enabled) return; let D = d, _ = Number(/* @__PURE__ */ new Date()), O = _ - (f || _); D.diff = O, D.prev = f, D.curr = _, f = _, g[0] = r.coerce(g[0]), typeof g[0] != "string" && g.unshift("%O"); let k = 0; g[0] = g[0].replace(/%([a-zA-Z%])/g, (U, M) => { if (U === "%%") return "%"; k++; let $ = r.formatters[M]; if (typeof $ == "function") { let ee = g[k]; U = $.call(D, ee), g.splice(k, 1), k--; } return U; }), r.formatArgs.call(D, g), (D.log || r.log).apply(D, g); } return i(d, "debug"), d.namespace = p, d.useColors = r.useColors(), d.color = r.selectColor(p), d.extend = s, d.destroy = r.destroy, Object. defineProperty(d, "enabled", { enumerable: !0, configurable: !1, get: /* @__PURE__ */ i(() => h !== null ? h : (b !== r.namespaces && (b = r.namespaces, T = r.enabled(p)), T), "get"), set: /* @__PURE__ */ i((g) => { h = g; }, "set") }), typeof r.init == "function" && r.init(d), d; } i(r, "createDebug"); function s(p, f) { let h = r(this.namespace + (typeof f > "u" ? ":" : f) + p); return h.log = this.log, h; } i(s, "extend"); function n(p) { r.save(p), r.namespaces = p, r.names = [], r.skips = []; let f = (typeof p == "string" ? p : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean); for (let h of f) h[0] === "-" ? r.skips.push(h.slice(1)) : r.names.push(h); } i(n, "enable"); function a(p, f) { let h = 0, b = 0, T = -1, d = 0; for (; h < p.length; ) if (b < f.length && (f[b] === p[h] || f[b] === "*")) f[b] === "*" ? (T = b, d = h, b++) : (h++, b++); else if (T !== -1) b = T + 1, d++, h = d; else return !1; for (; b < f.length && f[b] === "*"; ) b++; return b === f.length; } i(a, "matchesTemplate"); function o() { let p = [ ...r.names, ...r.skips.map((f) => "-" + f) ].join(","); return r.enable(""), p; } i(o, "disable"); function l(p) { for (let f of r.skips) if (a(p, f)) return !1; for (let f of r.names) if (a(p, f)) return !0; return !1; } i(l, "enabled"); function u(p) { return p instanceof Error ? p.stack || p.message : p; } i(u, "coerce"); function c() { console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major versio\ n of `debug`."); } return i(c, "destroy"), r.enable(r.load()), r; } i(HJ, "setup"); sE.exports = HJ; }); // ../node_modules/debug/src/browser.js var nE = w((Zt, iu) => { Zt.formatArgs = GJ; Zt.save = XJ; Zt.load = zJ; Zt.useColors = JJ; Zt.storage = QJ(); Zt.destroy = /* @__PURE__ */ (() => { 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 nex\ t major version of `debug`.")); }; })(); Zt.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 JJ() { if (typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return !0; if (typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return !1; let e; return typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773 typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31? // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages typeof navigator < "u" && navigator.userAgent && (e = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(e[1], 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/); } i(JJ, "useColors"); function GJ(e) { if (e[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + e[0] + (this.useColors ? "%c " : " ") + "+" + iu.exports.humanize(this.diff), !this.useColors) return; let t = "color: " + this.color; e.splice(1, 0, t, "color: inherit"); let r = 0, s = 0; e[0].replace(/%[a-zA-Z%]/g, (n) => { n !== "%%" && (r++, n === "%c" && (s = r)); }), e.splice(s, 0, t); } i(GJ, "formatArgs"); Zt.log = console.debug || console.log || (() => { }); function XJ(e) { try { e ? Zt.storage.setItem("debug", e) : Zt.storage.removeItem("debug"); } catch { } } i(XJ, "save"); function zJ() { let e; try { e = Zt.storage.getItem("debug") || Zt.storage.getItem("DEBUG"); } catch { } return !e && typeof process < "u" && "env" in process && (e = process.env.DEBUG), e; } i(zJ, "load"); function QJ() { try { return localStorage; } catch { } } i(QJ, "localstorage"); iu.exports = fh()(Zt); var { formatters: ZJ } = iu.exports; ZJ.j = function(e) { try { return JSON.stringify(e); } catch (t) { return "[UnexpectedJSONParseError]: " + t.message; } }; }); // ../node_modules/has-flag/index.js var aE = w((vwe, iE) => { "use strict"; iE.exports = (e, t = process.argv) => { let r = e.startsWith("-") ? "" : e.length === 1 ? "-" : "--", s = t.indexOf(r + e), n = t.indexOf("--"); return s !== -1 && (n === -1 || s < n); }; }); // ../node_modules/supports-color/index.js var uE = w((Pwe, lE) => { "use strict"; var eG = require("os"), oE = require("tty"), mr = aE(), { env: ft } = process, Qs; mr("no-color") || mr("no-colors") || mr("color=false") || mr("color=never") ? Qs = 0 : (mr("color") || mr("colors") || mr("color=true") || mr("color=always")) && (Qs = 1); "FORCE_COLOR" in ft && (ft.FORCE_COLOR === "true" ? Qs = 1 : ft.FORCE_COLOR === "false" ? Qs = 0 : Qs = ft.FORCE_COLOR.length === 0 ? 1 : Math. min(parseInt(ft.FORCE_COLOR, 10), 3)); function dh(e) { return e === 0 ? !1 : { level: e, hasBasic: !0, has256: e >= 2, has16m: e >= 3 }; } i(dh, "translateLevel"); function hh(e, t) { if (Qs === 0) return 0; if (mr("color=16m") || mr("color=full") || mr("color=truecolor")) return 3; if (mr("color=256")) return 2; if (e && !t && Qs === void 0) return 0; let r = Qs || 0; if (ft.TERM === "dumb") return r; if (process.platform === "win32") { let s = eG.release().split("."); return Number(s[0]) >= 10 && Number(s[2]) >= 10586 ? Number(s[2]) >= 14931 ? 3 : 2 : 1; } if ("CI" in ft) return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((s) => s in ft) || ft.CI_NAME === "codeship" ? 1 : r; if ("TEAMCITY_VERSION" in ft) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ft.TEAMCITY_VERSION) ? 1 : 0; if (ft.COLORTERM === "truecolor") return 3; if ("TERM_PROGRAM" in ft) { let s = parseInt((ft.TERM_PROGRAM_VERSION || "").split(".")[0], 10); switch (ft.TERM_PROGRAM) { case "iTerm.app": return s >= 3 ? 3 : 2; case "Apple_Terminal": return 2; } } return /-256(color)?$/i.test(ft.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ft.TERM) || "COLORTERM" in ft ? 1 : r; } i(hh, "supportsColor"); function tG(e) { let t = hh(e, e && e.isTTY); return dh(t); } i(tG, "getSupportLevel"); lE.exports = { supportsColor: tG, stdout: dh(hh(!0, oE.isatty(1))), stderr: dh(hh(!0, oE.isatty(2))) }; }); // ../node_modules/debug/src/node.js var pE = w((dt, ou) => { var rG = require("tty"), au = require("util"); dt.init = uG; dt.log = aG; dt.formatArgs = nG; dt.save = oG; dt.load = lG; dt.useColors = sG; dt.destroy = au.deprecate( () => { }, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`." ); dt.colors = [6, 2, 3, 4, 5, 1]; try { let e = uE(); e && (e.stderr || e).level >= 2 && (dt.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 { } dt.inspectOpts = Object.keys(process.env).filter((e) => /^debug_/i.test(e)).reduce((e, t) => { let r = t.substring(6).toLowerCase().replace(/_([a-z])/g, (n, a) => a.toUpperCase()), s = process.env[t]; return /^(yes|on|true|enabled)$/i.test(s) ? s = !0 : /^(no|off|false|disabled)$/i.test(s) ? s = !1 : s === "null" ? s = null : s = Number( s), e[r] = s, e; }, {}); function sG() { return "colors" in dt.inspectOpts ? !!dt.inspectOpts.colors : rG.isatty(process.stderr.fd); } i(sG, "useColors"); function nG(e) { let { namespace: t, useColors: r } = this; if (r) { let s = this.color, n = "\x1B[3" + (s < 8 ? s : "8;5;" + s), a = ` ${n};1m${t} \x1B[0m`; e[0] = a + e[0].split(` `).join(` ` + a), e.push(n + "m+" + ou.exports.humanize(this.diff) + "\x1B[0m"); } else e[0] = iG() + t + " " + e[0]; } i(nG, "formatArgs"); function iG() { return dt.inspectOpts.hideDate ? "" : (/* @__PURE__ */ new Date()).toISOString() + " "; } i(iG, "getDate"); function aG(...e) { return process.stderr.write(au.formatWithOptions(dt.inspectOpts, ...e) + ` `); } i(aG, "log"); function oG(e) { e ? process.env.DEBUG = e : delete process.env.DEBUG; } i(oG, "save"); function lG() { return process.env.DEBUG; } i(lG, "load"); function uG(e) { e.inspectOpts = {}; let t = Object.keys(dt.inspectOpts); for (let r = 0; r < t.length; r++) e.inspectOpts[t[r]] = dt.inspectOpts[t[r]]; } i(uG, "init"); ou.exports = fh()(dt); var { formatters: cE } = ou.exports; cE.o = function(e) { return this.inspectOpts.colors = this.useColors, au.inspect(e, this.inspectOpts).split(` `).map((t) => t.trim()).join(" "); }; cE.O = function(e) { return this.inspectOpts.colors = this.useColors, au.inspect(e, this.inspectOpts); }; }); // ../node_modules/debug/src/index.js var kn = w((wwe, mh) => { typeof process > "u" || process.type === "renderer" || process.browser === !0 || process.__nwjs ? mh.exports = nE() : mh.exports = pE(); }); // ../node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js var yh = w((ot) => { "use strict"; Object.defineProperty(ot, "__esModule", { value: !0 }); ot.isBindingIdentifier = NG; ot.isBlockScoped = jG; ot.isExpression = kG; ot.isFlow = $G; ot.isForAwaitStatement = WG; ot.isGenerated = qG; ot.isPure = UG; ot.isReferenced = LG; ot.isReferencedIdentifier = IG; ot.isReferencedMemberExpression = OG; ot.isRestProperty = VG; ot.isScope = FG; ot.isSpreadProperty = KG; ot.isStatement = BG; ot.isUser = RG; ot.isVar = MG; var cG = ue(), { isBinding: pG, isBlockScoped: fG, isExportDeclaration: dG, isExpression: hG, isFlow: mG, isForStatement: yG, isForXStatement: bG, isIdentifier: fE, isImportDeclaration: gG, isImportSpecifier: TG, isJSXIdentifier: xG, isJSXMemberExpression: EG, isMemberExpression: SG, isRestElement: dE, isReferenced: lu, isScope: vG, isStatement: PG, isVar: AG, isVariableDeclaration: CG, react: wG, isForOfStatement: DG } = cG, { isCompatTag: _G } = wG; function IG(e) { let { node: t, parent: r } = this; return fE(t, e) ? lu(t, r, this.parentPath.parent) : xG(t, e) ? !EG(r) && _G(t.name) ? !1 : lu(t, r, this.parentPath.parent) : !1; } i(IG, "isReferencedIdentifier"); function OG() { let { node: e, parent: t } = this; return SG(e) && lu(e, t); } i(OG, "isReferencedMemberExpression"); function NG() { let { node: e, parent: t } = this, r = this.parentPath.parent; return fE(e) && pG(e, t, r); } i(NG, "isBindingIdentifier"); function BG() { let { node: e, parent: t } = this; return PG(e) ? !(CG(e) && (bG(t, { left: e }) || yG(t, { init: e }))) : !1; } i(BG, "isStatement"); function kG() { return this.isIdentifier() ? this.isReferencedIdentifier() : hG(this.node); } i(kG, "isExpression"); function FG() { return vG(this.node, this.parent); } i(FG, "isScope"); function LG() { return lu(this.node, this.parent); } i(LG, "isReferenced"); function jG() { return fG(this.node); } i(jG, "isBlockScoped"); function MG() { return AG(this.node); } i(MG, "isVar"); function RG() { var e; return !!((e = this.node) != null && e.loc); } i(RG, "isUser"); function qG() { return !this.isUser(); } i(qG, "isGenerated"); function UG(e) { return this.scope.isPure(this.node, e); } i(UG, "isPure"); function $G() { let { node: e } = this; return mG(e) ? !0 : gG(e) ? e.importKind === "type" || e.importKind === "typeof" : dG(e) ? e.exportKind === "type" : TG(e) ? e.importKind === "type" || e.importKind === "typeof" : !1; } i($G, "isFlow"); function VG() { var e; return dE(this.node) && ((e = this.parentPath) == null ? void 0 : e.isObjectPattern()); } i(VG, "isRestProperty"); function KG() { var e; return dE(this.node) && ((e = this.parentPath) == null ? void 0 : e.isObjectExpression()); } i(KG, "isSpreadProperty"); function WG() { return DG(this.node, { await: !0 }); } i(WG, "isForAwaitStatement"); ot.isExistentialTypeParam = /* @__PURE__ */ i(function() { throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7."); }, "isExistentialTypeParam"), ot.isNumericLiteralTypeAnnotation = /* @__PURE__ */ i(function() { throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7."); }, "isNumericLiteralTypeAnnotation"); }); // ../node_modules/@babel/traverse/lib/visitors.js var so = w((Ln) => { "use strict"; Object.defineProperty(Ln, "__esModule", { value: !0 }); Ln.environmentVisitor = ZG; Ln.explode = PE; Ln.isExplodedVisitor = vE; Ln.merge = CE; Ln.verify = AE; var SE = ph(), YG = yh(), HG = ue(), hE = yr(), { DEPRECATED_KEYS: mE, DEPRECATED_ALIASES: yE, FLIPPED_ALIAS_KEYS: bE, TYPES: JG, __internal__deprecationWarning: gE } = HG; function GG(e) { return e in SE; } i(GG, "isVirtualType"); function vE(e) { return e?._exploded; } i(vE, "isExplodedVisitor"); function PE(e) { if (vE(e)) return e; e._exploded = !0; for (let r of Object.keys(e)) { if (Fn(r)) continue; let s = r.split("|"); if (s.length === 1) continue; let n = e[r]; delete e[r]; for (let a of s) e[a] = n; } AE(e), delete e.__esModule, XG(e), EE(e); for (let r of Object.keys(e)) { if (Fn(r) || !GG(r)) continue; let s = e[r]; for (let a of Object.keys(s)) s[a] = zG(r, s[a]); delete e[r]; let n = SE[r]; if (n !== null) for (let a of n) { var t; (t = e[a]) != null || (e[a] = {}), ro(e[a], s); } else ro(e, s); } for (let r of Object.keys(e)) { if (Fn(r)) continue; let s = bE[r]; if (r in mE) { let a = mE[r]; gE(r, a, "Visitor "), s = [a]; } else if (r in yE) { let a = yE[r]; gE(r, a, "Visitor "), s = bE[a]; } if (!s) continue; let n = e[r]; delete e[r]; for (let a of s) { let o = e[a]; o ? ro(o, n) : e[a] = Object.assign({}, n); } } for (let r of Object.keys(e)) Fn(r) || EE(e[r]); return e; } i(PE, "explode$1"); function AE(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: Functi\ on }`?"); for (let t of Object.keys(e)) { if ((t === "enter" || t === "exit") && TE(t, e[t]), Fn(t)) continue; if (!JG.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.5`); let r = e[t]; if (typeof r == "object") for (let s of Object.keys(r)) if (s === "enter" || s === "exit") TE(`${t}.${s}`, r[s]); else throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${s}`); } e._verified = !0; } } i(AE, "verify$1"); function TE(e, t) { let r = [].concat(t); for (let s of r) if (typeof s != "function") throw new TypeError(`Non-function found defined in ${e} with type ${typeof s}`); } i(TE, "validateVisitorMethods"); function CE(e, t = [], r) { let s = { _verified: !0, _exploded: !0 }; Object.defineProperty(s, "_exploded", { enumerable: !1 }), Object.defineProperty(s, "_verified", { enumerable: !1 }); for (let n = 0; n < e.length; n++) { let a = PE(e[n]), o = t[n], l = a; (o || r) && (l = xE(l, o, r)), ro(s, l); for (let u of Object.keys(a)) { if (Fn(u)) continue; let c = a[u]; (o || r) && (c = xE(c, o, r)); let p = s[u] || (s[u] = {}); ro(p, c); } } return s; } i(CE, "merge"); function xE(e, t, r) { let s = {}; for (let n of ["enter", "exit"]) { let a = e[n]; Array.isArray(a) && (a = a.map(function(o) { let l = o; return t && (l = /* @__PURE__ */ i(function(u) { o.call(t, u, t); }, "newFn")), r && (l = r(t?.key, n, l)), l !== o && (l.toString = () => o.toString()), l; }), s[n] = a); } return s; } i(xE, "wrapWithStateOrWrapper"); function XG(e) { for (let t of Object.keys(e)) { if (Fn(t)) continue; let r = e[t]; typeof r == "function" && (e[t] = { enter: r }); } } i(XG, "ensureEntranceObjects"); function EE(e) { e.enter && !Array.isArray(e.enter) && (e.enter = [e.enter]), e.exit && !Array.isArray(e.exit) && (e.exit = [e.exit]); } i(EE, "ensureCallbackArrays"); function zG(e, t) { let r = `is${e}`, s = YG[r], n = /* @__PURE__ */ i(function(a) { if (s.call(a)) return t.apply(this, arguments); }, "newFn"); return n.toString = () => t.toString(), n; } i(zG, "wrapCheck"); function Fn(e) { return e[0] === "_" || e === "enter" || e === "exit" || e === "shouldSkip" || e === "denylist" || e === "noScope" || e === "skipKeys" || e === "blacklist"; } i(Fn, "shouldIgnoreKey"); function ro(e, t) { for (let r of ["enter", "exit"]) t[r] && (e[r] = [].concat(e[r] || [], t[r])); } i(ro, "mergePair"); var QG = { FunctionParent(e) { e.isArrowFunctionExpression() || (e.skip(), e.isMethod() && (e.requeueComputedKeyAndDecorators ? e.requeueComputedKeyAndDecorators() : hE.requeueComputedKeyAndDecorators.call(e))); }, Property(e) { e.isObjectProperty() || (e.skip(), e.requeueComputedKeyAndDecorators ? e.requeueComputedKeyAndDecorators() : hE.requeueComputedKeyAndDecorators. call(e)); } }; function ZG(e) { return CE([QG, e]); } i(ZG, "environmentVisitor"); }); // ../node_modules/@babel/traverse/lib/scope/lib/renamer.js var wE = w((cu) => { "use strict"; Object.defineProperty(cu, "__esModule", { value: !0 }); cu.default = void 0; var uu = ue(), eX = uu, tX = pu(), rX = so(), sX = yr(), { getAssignmentIdentifiers: nX } = eX, iX = { 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() : sX.requeueComputedKeyAndDecorators.call(e))); }, ObjectProperty({ node: e, scope: t }, r) { let { name: s } = e.key; if (e.shorthand && (s === r.oldName || s === r.newName) && t.getBindingIdentifier(s) === r.binding.identifier) { e.shorthand = !1; { var n; (n = e.extra) != null && n.shorthand && (e.extra.shorthand = !1); } } }, "AssignmentExpression|Declaration|VariableDeclarator"(e, t) { if (e.isVariableDeclaration()) return; let r = e.isAssignmentExpression() ? nX(e.node) : e.getOuterBindingIdentifiers(); for (let s in r) s === t.oldName && (r[s].name = t.newName); } }, bh = class { static { i(this, "Renamer"); } constructor(t, r, s) { this.newName = s, this.oldName = r, this.binding = t; } maybeConvertFromExportDeclaration(t) { let r = t.parentPath; if (r.isExportDeclaration()) { if (r.isExportDefaultDeclaration()) { let { declaration: s } = r.node; if (uu.isDeclaration(s) && !s.id) return; } r.isExportAllDeclaration() || r.splitExportDeclaration(); } } maybeConvertFromClassFunctionDeclaration(t) { return t; } maybeConvertFromClassFunctionExpression(t) { return t; } rename() { let { binding: t, oldName: r, newName: s } = this, { scope: n, path: a } = t, o = a.find((c) => c.isDeclaration() || c.isFunctionExpression() || c.isClassExpression()); o && o.getOuterBindingIdentifiers()[r] === t.identifier && this.maybeConvertFromExportDeclaration(o); let l = arguments[0] || n.block, u = { discriminant: !0 }; uu.isMethod(l) && (l.computed && (u.key = !0), uu.isObjectMethod(l) || (u.decorators = !0)), (0, tX.traverseNode)(l, (0, rX.explode)(iX), n, this, n.path, u), arguments[0] || (n.removeOwnBinding(r), n.bindings[s] = t, this.binding.identifier.name = s), o && (this.maybeConvertFromClassFunctionDeclaration( a), this.maybeConvertFromClassFunctionExpression(a)); } }; cu.default = bh; }); // ../node_modules/@babel/traverse/lib/scope/traverseForScope.js var DE = w((gh) => { "use strict"; Object.defineProperty(gh, "__esModule", { value: !0 }); gh.default = pX; var aX = ue(), oX = st(), lX = so(), uX = yr(), { VISITOR_KEYS: cX } = aX; function pX(e, t, r) { let s = (0, lX.explode)(t); if (s.enter || s.exit) throw new Error("Should not be used with enter/exit visitors."); n(e.parentPath, e.parent, e.node, e.container, e.key, e.listKey, e.hub, e); function n(a, o, l, u, c, p, f, h) { if (!l) return; let b = h || oX.NodePath.get({ hub: f, parentPath: a, parent: o, container: u, listKey: p, key: c }); uX.setScope.call(b); let T = s[l.type]; if (T) { if (T.enter) for (let g of T.enter) g.call(r, b, r); if (T.exit) for (let g of T.exit) g.call(r, b, r); } if (b.shouldSkip) return; let d = cX[l.type]; if (d != null && d.length) for (let g of d) { let D = l[g]; if (D) if (Array.isArray(D)) for (let _ = 0; _ < D.length; _++) { let O = D[_]; n(b, l, O, D, _, g); } else n(b, l, D, l, g, null); } } i(n, "_traverse"); } i(pX, "traverseForScope"); }); // ../node_modules/@babel/traverse/lib/scope/binding.js var _E = w((fu) => { "use strict"; Object.defineProperty(fu, "__esModule", { value: !0 }); fu.default = void 0; var Th = class { static { i(this, "Binding"); } constructor({ identifier: t, scope: r, path: s, kind: n }) { 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 = s, this.kind = n, (n === "var" || n === "hoisted") && fX(s) && this.reassign(s), 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; } }; fu.default = Th; function fX(e) { let t = !e.isVariableDeclarator() || e.node.init; for (let { parentPath: r, key: s } = e; r; { parentPath: r, key: s } = r) { if (r.isFunctionParent()) return !1; if (s === "left" && r.isForXStatement() || t && s === "body" && r.isLoop()) return !0; } return !1; } i(fX, "isInitInLoop"); }); // ../node_modules/@babel/traverse/lib/cache.js var jn = w((rr) => { "use strict"; Object.defineProperty(rr, "__esModule", { value: !0 }); rr.clear = hX; rr.clearPath = IE; rr.clearScope = OE; rr.getCachedPaths = mX; rr.getOrCreateCachedPaths = yX; rr.scope = rr.path = void 0; var du = rr.path = /* @__PURE__ */ new WeakMap(), dX = rr.scope = /* @__PURE__ */ new WeakMap(); function hX() { IE(), OE(); } i(hX, "clear"); function IE() { rr.path = du = /* @__PURE__ */ new WeakMap(); } i(IE, "clearPath"); function OE() { rr.scope = dX = /* @__PURE__ */ new WeakMap(); } i(OE, "clearScope"); function mX(e) { let { parent: t, parentPath: r } = e; return du.get(t); } i(mX, "getCachedPaths"); function yX(e, t) { let r = du.get(e); return r || du.set(e, r = /* @__PURE__ */ new Map()), r; } i(yX, "getOrCreateCachedPaths"); }); // ../node_modules/@babel/helper-globals/data/builtin-lower.json var NE = w((qwe, bX) => { bX.exports = [ "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "eval", "globalThis", "isFinite", "isNaN", "parseFloat", "parseInt", "undefined", "unescape" ]; }); // ../node_modules/@babel/helper-globals/data/builtin-upper.json var BE = w((Uwe, gX) => { gX.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" ]; }); // ../node_modules/@babel/traverse/lib/scope/index.js var Ph = w((mu) => { "use strict"; Object.defineProperty(mu, "__esModule", { value: !0 }); mu.default = void 0; var TX = wE(), $E = st(), $we = DE(), xX = _E(), VE = ue(), KE = VE, kE = jn(), EX = NE(), SX = BE(), { assignmentExpression: vX, callExpression: FE, cloneNode: LE, getBindingIdentifiers: WE, identifier: Rn, isArrayExpression: YE, isBinary: PX, isCallExpression: jE, isClass: AX, isClassBody: CX, isClassDeclaration: wX, isExportAllDeclaration: HE, isExportDefaultDeclaration: DX, isExportNamedDeclaration: xh, isFunctionDeclaration: _X, isIdentifier: Mn, isImportDeclaration: Eh, isLiteral: IX, isMemberExpression: OX, isMethod: NX, isModuleSpecifier: BX, isNullLiteral: kX, isObjectExpression: FX, isProperty: LX, isPureish: jX, isRegExpLiteral: MX, isSuper: RX, isTaggedTemplateExpression: qX, isTemplateLiteral: JE, isThisExpression: ME, isUnaryExpression: UX, isVariableDeclaration: $X, expressionStatement: VX, matchesPattern: RE, memberExpression: Sh, numericLiteral: KX, toIdentifier: WX, variableDeclaration: YX, variableDeclarator: HX, isRecordExpression: JX, isTupleExpression: GX, isObjectProperty: XX, isTopicReference: qE, isMetaProperty: zX, isPrivateName: QX, isExportDeclaration: ZX, buildUndefinedNode: ez, sequenceExpression: tz } = VE; function qe(e, t) { switch (e?.type) { default: if (Eh(e) || ZX(e)) { var r; if ((HE(e) || xh(e) || Eh(e)) && e.source) qe(e.source, t); else if ((xh(e) || Eh(e)) && (r = e.specifiers) != null && r.length) for (let s of e.specifiers) qe(s, t); else (DX(e) || xh(e)) && e.declaration && qe(e.declaration, t); } else BX(e) ? qe(e.local, t) : IX(e) && !kX(e) && !MX(e) && !JE(e) && t.push(e.value); break; case "MemberExpression": case "OptionalMemberExpression": case "JSXMemberExpression": qe(e.object, t), qe(e.property, t); break; case "Identifier": case "JSXIdentifier": t.push(e.name); break; case "CallExpression": case "OptionalCallExpression": case "NewExpression": qe(e.callee, t); break; case "ObjectExpression": case "ObjectPattern": for (let s of e.properties) qe(s, t); break; case "SpreadElement": case "RestElement": qe(e.argument, t); break; case "ObjectProperty": case "ObjectMethod": case "ClassProperty": case "ClassMethod": case "ClassPrivateProperty": case "ClassPrivateMethod": qe(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"), qe(e.argument, t); break; case "AwaitExpression": t.push("await"), qe(e.argument, t); break; case "AssignmentExpression": qe(e.left, t); break; case "VariableDeclarator": qe(e.id, t); break; case "FunctionExpression": case "FunctionDeclaration": case "ClassExpression": case "ClassDeclaration": qe(e.id, t); break; case "PrivateName": qe(e.id, t); break; case "ParenthesizedExpression": qe(e.expression, t); break; case "UnaryExpression": case "UpdateExpression": qe(e.argument, t); break; case "MetaProperty": qe(e.meta, t), qe(e.property, t); break; case "JSXElement": qe(e.openingElement, t); break; case "JSXOpeningElement": qe(e.name, t); break; case "JSXFragment": qe(e.openingFragment, t); break; case "JSXOpeningFragment": t.push("Fragment"); break; case "JSXNamespacedName": qe(e.namespace, t), qe(e.name, t); break; } } i(qe, "gatherNodeParts"); function UE(e) { e.references = /* @__PURE__ */ Object.create(null), e.uids = /* @__PURE__ */ Object.create(null), e.bindings = /* @__PURE__ */ Object.create( null), e.globals = /* @__PURE__ */ Object.create(null); } i(UE, "resetScope"); function rz(e) { return e.isFunctionExpression() && !e.node.id || e.isArrowFunctionExpression(); } i(rz, "isAnonymousFunctionExpression"); vh = Symbol.for("should not be considered a local binding"); var vh, sz = { 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) { KE.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: s } = e; (s.getFunctionParent() || s.getProgramParent()).registerBinding("var", r); } }, ExportDeclaration: { exit(e) { let { node: t, scope: r } = e; if (HE(t)) return; let s = t.declaration; if (wX(s) || _X(s)) { let n = s.id; if (!n) return; let a = r.getBinding(n.name); a?.reference(e); } else if ($X(s)) for (let n of s.declarations) for (let a of Object.keys(WE(n))) { let o = r.getBinding(a); o?.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 n = e.node.id.name; e.scope.bindings[n] = e.scope.parent.getBinding(n); } }, 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[vh] && e.scope.registerBinding("local", e.get("id"), e); }, ClassExpression(e) { e.node.id && !e.node.id[vh] && e.scope.registerBinding("local", e.get("id"), e); }, TSTypeAnnotation(e) { e.skip(); } }, hu, nz = 0, jr = class e { static { i(this, "Scope"); } 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, s = kE.scope.get(r); if (s?.path === t) return s; kE.scope.set(r, this), this.uid = nz++, this.block = r, this.path = t, this.labels = /* @__PURE__ */ new Map(), this.inited = !1, Object. defineProperties(this, { references: { enumerable: !0, configurable: !0, writable: !0, value: /* @__PURE__ */ Object.create(null) }, uids: { enumerable: !0, configurable: !0, writable: !0, value: /* @__PURE__ */ Object.create(null) } }); } get parent() { var t; let r, s = this.path; do { var n; let a = s.key === "key" || s.listKey === "decorators"; s = s.parentPath, a && s.isMethod() && (s = s.parentPath), (n = s) != null && n.isScope() && (r = s); } while (s && !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 }), LE(r); } generateUidIdentifier(t) { return Rn(this.generateUid(t)); } generateUid(t = "temp") { t = WX(t).replace(/^_+/, "").replace(/\d+$/g, ""); let r, s = 0; do r = `_${t}`, s >= 11 ? r += s - 1 : s >= 9 ? r += s - 9 : s >= 1 && (r += s + 1), s++; while (this.hasLabel(r) || this.hasBinding(r) || this.hasGlobal(r) || this.hasReference(r)); let n = this.getProgramParent(); return n.references[r] = !0, n.uids[r] = !0, r; } generateUidBasedOnNode(t, r) { let s = []; qe(t, s); let n = s.join("$"); return n = n.replace(/^_/, "") || r || "ref", this.generateUid(n.slice(0, 20)); } generateUidIdentifierBasedOnNode(t, r) { return Rn(this.generateUidBasedOnNode(t, r)); } isStatic(t) { if (ME(t) || RX(t) || qE(t)) return !0; if (Mn(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 s = this.generateUidIdentifierBasedOnNode(t); return r ? s : (this.push({ id: s }), LE(s)); } } checkBlockScopedCollisions(t, r, s, n) { 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(n, `Duplicate declaration "${s}"`, TypeError); } rename(t, r) { let s = this.getBinding(t); s && (r || (r = this.generateUidIdentifier(t).name), new TX.default(s, t, r).rename(arguments[2])); } dump() { let t = "-".repeat(60); console.log(t); let r = this; do { console.log("#", r.block.type); for (let s of Object.keys(r.bindings)) { let n = r.bindings[s]; console.log(" -", s, { constant: n.constant, references: n.references, violations: n.constantViolations.length, kind: n.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: s } = t.node; for (let n of r) this.registerBinding(s === "using" || s === "await using" ? "const" : s, n); } 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", s = t.get("specifiers"); for (let n of s) { let a = r || n.isImportSpecifier() && (n.node.importKind === "type" || n.node.importKind === "typeof"); this.registerBinding(a ? "unknown" : "module", n); } } 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 ez(); } registerConstantViolation(t) { let r = t.getAssignmentIdentifiers(); for (let n of Object.keys(r)) { var s; (s = this.getBinding(n)) == null || s.reassign(t); } } registerBinding(t, r, s = r) { if (!t) throw new ReferenceError("no `kind`"); if (r.isVariableDeclaration()) { let o = r.get("declarations"); for (let l of o) this.registerBinding(t, l); return; } let n = this.getProgramParent(), a = r.getOuterBindingIdentifiers(!0); for (let o of Object.keys(a)) { n.references[o] = !0; for (let l of a[o]) { let u = this.getOwnBinding(o); if (u) { if (u.identifier === l) continue; this.checkBlockScopedCollisions(u, t, o, l); } u ? u.reassign(s) : this.bindings[o] = new xX.default({ identifier: l, scope: this, path: s, 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 (Mn(t)) { let o = this.getBinding(t.name); return o ? r ? o.constant : !0 : !1; } else { if (ME(t) || zX(t) || qE(t) || QX(t)) return !0; if (AX(t)) { var s; return t.superClass && !this.isPure(t.superClass, r) || ((s = t.decorators) == null ? void 0 : s.length) > 0 ? !1 : this.isPure(t. body, r); } else if (CX(t)) { for (let o of t.body) if (!this.isPure(o, r)) return !1; return !0; } else { if (PX(t)) return this.isPure(t.left, r) && this.isPure(t.right, r); if (YE(t) || GX(t)) { for (let o of t.elements) if (o !== null && !this.isPure(o, r)) return !1; return !0; } else if (FX(t) || JX(t)) { for (let o of t.properties) if (!this.isPure(o, r)) return !1; return !0; } else if (NX(t)) { var n; return !(t.computed && !this.isPure(t.key, r) || ((n = t.decorators) == null ? void 0 : n.length) > 0); } else if (LX(t)) { var a; return !(t.computed && !this.isPure(t.key, r) || ((a = t.decorators) == null ? void 0 : a.length) > 0 || (XX(t) || t.static) && t. value !== null && !this.isPure(t.value, r)); } else { if (UX(t)) return this.isPure(t.argument, r); if (JE(t)) { for (let o of t.expressions) if (!this.isPure(o, r)) return !1; return !0; } else return qX(t) ? RE(t.tag, "String.raw") && !this.hasBinding("String", { noGlobals: !0 }) && this.isPure(t.quasi, r) : OX(t) ? !t.computed && Mn(t.object) && t.object.name === "Symbol" && Mn(t.property) && t.property. name !== "for" && !this.hasBinding("Symbol", { noGlobals: !0 }) : jE(t) ? RE(t.callee, "Symbol.for") && !this.hasBinding("Symbol", { noGlobals: !0 }) && t.arguments.length === 1 && KE.isStringLiteral(t.arguments[0]) : jX(t); } } } } setData(t, r) { return this.data[t] = r; } getData(t) { let r = this; do { let s = r.data[t]; if (s != null) return s; } 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; UE(this), this.data = /* @__PURE__ */ Object.create(null); let r = this; do { if (r.crawling) return; if (r.path.isProgram()) break; } while (r = r.parent); let s = r, n = { references: [], constantViolations: [], assignments: [] }; if (this.crawling = !0, hu || (hu = $E.default.visitors.merge([{ Scope(a) { UE(a.scope); } }, sz])), t.type !== "Program") { let a = hu[t.type]; if (a) for (let o of a.enter) o.call(n, t, n); } t.traverse(hu, n), this.crawling = !1; for (let a of n.assignments) { let o = a.getAssignmentIdentifiers(); for (let l of Object.keys(o)) a.scope.getBinding(l) || s.addGlobal(o[l]); a.scope.registerConstantViolation(a); } for (let a of n.references) { let o = a.scope.getBinding(a.node.name); o ? o.reference(a) : s.addGlobal(a.node); } for (let a of n.constantViolations) a.scope.registerConstantViolation(a); } 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: s, unique: n, kind: a = "var", id: o } = t; if (!s && !n && (a === "var" || a === "let") && rz(r) && jE(r.parent, { callee: r.node }) && r.parent.arguments.length <= r.node.params.length && Mn(o)) { r.pushContainer("params", o), 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 l = t._blockHoist == null ? 2 : t._blockHoist, u = `declaration:${a}:${l}`, c = !n && r.getData(u); if (!c) { let h = YX(a, []); h._blockHoist = l, [c] = r.unshiftContainer("body", [h]), n || r.setData(u, c); } let p = HX(o, s), f = c.node.declarations.push(p); r.scope.registerBinding(a, c.get("declarations")[f - 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 = /* @__PURE__ */ Object.create(null), r = this; do { for (let s of Object.keys(r.bindings)) s in t || (t[s] = r.bindings[s]); r = r.parent; } while (r); return t; } bindingIdentifierEquals(t, r) { return this.getBindingIdentifier(t) === r; } getBinding(t) { let r = this, s; do { let a = r.getOwnBinding(t); if (a) { var n; if (!((n = s) != null && n.isPattern() && a.kind !== "param" && a.kind !== "local")) return a; } else if (!a && t === "arguments" && r.path.isFunction() && !r.path.isArrowFunctionExpression()) break; s = 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?.identifier; } hasOwnBinding(t) { return !!this.getOwnBinding(t); } hasBinding(t, r) { if (!t) return !1; let s, n, a; typeof r == "object" ? (s = r.noGlobals, n = r.noUids, a = r.upToScope) : typeof r == "boolean" && (s = r); let o = this; do { if (a === o) break; if (o.hasOwnBinding(t)) return !0; } while (o = o.parent); return !!(!n && this.hasUid(t) || !s && e.globals.includes(t) || !s && e.contextVariables.includes(t)); } parentHasBinding(t, r) { var s; return (s = this.parent) == null ? void 0 : s.hasBinding(t, r); } moveBindingTo(t, r) { let s = this.getBinding(t); s && (s.scope.removeOwnBinding(t), s.scope = r, r.bindings[t] = s); } removeOwnBinding(t) { delete this.bindings[t]; } removeBinding(t) { var r; (r = this.getBinding(t)) == null || r.scope.removeOwnBinding(t); { let s = this; do s.uids[t] && (s.uids[t] = !1); while (s = s.parent); } } hoistVariables(t = (r) => this.push({ id: r })) { this.crawl(); let r = /* @__PURE__ */ new Set(); for (let s of Object.keys(this.bindings)) { let n = this.bindings[s]; if (!n) continue; let { path: a } = n; if (!a.isVariableDeclarator()) continue; let { parent: o, parentPath: l } = a; if (o.kind !== "var" || r.has(o)) continue; r.add(a.parent); let u, c = []; for (let p of o.declarations) { u ?? (u = p.id), p.init && c.push(vX("=", p.id, p.init)); let f = Object.keys(WE(p, !1, !0, !0)); for (let h of f) t(Rn(h), p.init != null); } if (l.parentPath.isForXStatement({ left: o })) l.replaceWith(u); else if (c.length === 0) l.remove(); else { let p = c.length === 1 ? c[0] : tz(c); l.parentPath.isForStatement({ init: o }) ? l.replaceWith(p) : l.replaceWith(VX(p)); } } } }; mu.default = jr; jr.globals = [...EX, ...SX]; jr.contextVariables = ["arguments", "undefined", "Infinity", "NaN"]; jr.prototype._renameFromMap = /* @__PURE__ */ i(function(t, r, s, n) { t[r] && (t[s] = n, t[r] = null); }, "_renameFromMap"), jr.prototype.traverse = function(e, t, r) { (0, $E.default)(e, t, this, r, this.path); }, jr.prototype._generateUid = /* @__PURE__ */ i(function(t, r) { let s = t; return r > 1 && (s += r), `_${s}`; }, "_generateUid"), jr.prototype.toArray = /* @__PURE__ */ i(function(t, r, s) { if (Mn(t)) { let o = this.getBinding(t.name); if (o != null && o.constant && o.path.isGenericType("Array")) return t; } if (YE(t)) return t; if (Mn(t, { name: "arguments" })) return FE(Sh(Sh(Sh(Rn("Array"), Rn("prototype")), Rn("slice")), Rn("call")), [t]); let n, a = [t]; return r === !0 ? n = "toConsumableArray" : typeof r == "number" ? (a.push(KX(r)), n = "slicedToArray") : n = "toArray", s && (a.unshift( this.path.hub.addHelper(n)), n = "maybeArrayLike"), FE(this.path.hub.addHelper(n), a); }, "toArray"), jr.prototype.getAllBindingsOfKind = /* @__PURE__ */ i(function(...t) { let r = /* @__PURE__ */ Object.create(null); for (let s of t) { let n = this; do { for (let a of Object.keys(n.bindings)) { let o = n.bindings[a]; o.kind === s && (r[a] = o); } n = n.parent; } while (n); } return r; }, "getAllBindingsOfKind"), Object.defineProperties(jr.prototype, { parentBlock: { configurable: !0, enumerable: !0, get() { return this.path.parent; } }, hub: { configurable: !0, enumerable: !0, get() { return this.path.hub; } } }); }); // ../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs function no(e, t) { let r = 0, s = 0, n = 0; do { let o = e.next(); n = tS[o], r |= (n & 31) << s, s += 5; } while (n & 32); let a = r & 1; return r >>>= 1, a && (r = -2147483648 | -r), t + r; } function io(e, t, r) { let s = t - r; s = s < 0 ? -s << 1 | 1 : s << 1; do { let n = s & 31; s >>>= 5, s > 0 && (n |= 32), e.write(eS[n]); } while (s > 0); return t; } function XE(e, t) { return e.pos >= t ? !1 : e.peek() !== ZE; } function rS(e) { let { length: t } = e, r = new oz(e), s = [], n = 0, a = 0, o = 0, l = 0, u = 0; do { let c = r.indexOf(";"), p = [], f = !0, h = 0; for (n = 0; r.pos < c; ) { let b; n = no(r, n), n < h && (f = !1), h = n, XE(r, c) ? (a = no(r, a), o = no(r, o), l = no(r, l), XE(r, c) ? (u = no(r, u), b = [n, a, o, l, u]) : b = [n, a, o, l]) : b = [n], p.push(b), r.pos++; } f || lz(p), s.push(p), r.pos = c + 1; } while (r.pos <= t); return s; } function lz(e) { e.sort(uz); } function uz(e, t) { return e[0] - t[0]; } function yu(e) { let t = new az(), r = 0, s = 0, n = 0, a = 0; for (let o = 0; o < e.length; o++) { let l = e[o]; if (o > 0 && t.write(iz), l.length === 0) continue; let u = 0; for (let c = 0; c < l.length; c++) { let p = l[c]; c > 0 && t.write(ZE), u = io(t, p[0], u), p.length !== 1 && (r = io(t, p[1], r), s = io(t, p[2], s), n = io(t, p[3], n), p.length !== 4 && (a = io(t, p[4], a))); } } return t.flush(); } var ZE, iz, GE, eS, tS, zE, QE, az, oz, Ah = dl(() => { ZE = 44, iz = 59, GE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", eS = new Uint8Array(64), tS = new Uint8Array(128); for (let e = 0; e < GE.length; e++) { let t = GE.charCodeAt(e); eS[e] = t, tS[t] = e; } i(no, "decodeInteger"); i(io, "encodeInteger"); i(XE, "hasMoreVlq"); zE = 1024 * 16, QE = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? { decode(e) { return Buffer.from(e.buffer, e.byteOffset, e.byteLength).toString(); } } : { decode(e) { let t = ""; for (let r = 0; r < e.length; r++) t += String.fromCharCode(e[r]); return t; } }, az = class { static { i(this, "StringWriter"); } constructor() { this.pos = 0, this.out = "", this.buffer = new Uint8Array(zE); } write(e) { let { buffer: t } = this; t[this.pos++] = e, this.pos === zE && (this.out += QE.decode(t), this.pos = 0); } flush() { let { buffer: e, out: t, pos: r } = this; return r > 0 ? t + QE.decode(e.subarray(0, r)) : t; } }, oz = class { static { i(this, "StringReader"); } constructor(e) { this.pos = 0, this.buffer = e; } next() { return this.buffer.charCodeAt(this.pos++); } peek() { return this.buffer.charCodeAt(this.pos); } indexOf(e) { let { buffer: t, pos: r } = this, s = t.indexOf(e, r); return s === -1 ? t.length : s; } }; i(rS, "decode"); i(lz, "sort"); i(uz, "sortComparator"); i(yu, "encode"); }); // ../node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js var sS = w((Ch, wh) => { (function(e, t) { typeof Ch == "object" && typeof wh < "u" ? wh.exports = t() : typeof define == "function" && define.amd ? define(t) : (e = typeof globalThis < "u" ? globalThis : e || self, e.resolveURI = t()); })(Ch, function() { "use strict"; let e = /^[\w+.-]+:\/\//, t = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/, r = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; function s(g) { return e.test(g); } i(s, "isAbsoluteUrl"); function n(g) { return g.startsWith("//"); } i(n, "isSchemeRelativeUrl"); function a(g) { return g.startsWith("/"); } i(a, "isAbsolutePath"); function o(g) { return g.startsWith("file:"); } i(o, "isFileUrl"); function l(g) { return /^[.?#]/.test(g); } i(l, "isRelative"); function u(g) { let D = t.exec(g); return p(D[1], D[2] || "", D[3], D[4] || "", D[5] || "/", D[6] || "", D[7] || ""); } i(u, "parseAbsoluteUrl"); function c(g) { let D = r.exec(g), _ = D[2]; return p("file:", "", D[1] || "", "", a(_) ? _ : "/" + _, D[3] || "", D[4] || ""); } i(c, "parseFileUrl"); function p(g, D, _, O, k, j, U) { return { scheme: g, user: D, host: _, port: O, path: k, query: j, hash: U, type: 7 }; } i(p, "makeUrl"); function f(g) { if (n(g)) { let _ = u("http:" + g); return _.scheme = "", _.type = 6, _; } if (a(g)) { let _ = u("http://foo.com" + g); return _.scheme = "", _.host = "", _.type = 5, _; } if (o(g)) return c(g); if (s(g)) return u(g); let D = u("http://foo.com/" + g); return D.scheme = "", D.host = "", D.type = g ? g.startsWith("?") ? 3 : g.startsWith("#") ? 2 : 4 : 1, D; } i(f, "parseUrl"); function h(g) { if (g.endsWith("/..")) return g; let D = g.lastIndexOf("/"); return g.slice(0, D + 1); } i(h, "stripPathFilename"); function b(g, D) { T(D, D.type), g.path === "/" ? g.path = D.path : g.path = h(D.path) + g.path; } i(b, "mergePaths"); function T(g, D) { let _ = D <= 4, O = g.path.split("/"), k = 1, j = 0, U = !1; for (let $ = 1; $ < O.length; $++) { let ee = O[$]; if (!ee) { U = !0; continue; } if (U = !1, ee !== ".") { if (ee === "..") { j ? (U = !0, j--, k--) : _ && (O[k++] = ee); continue; } O[k++] = ee, j++; } } let M = ""; for (let $ = 1; $ < k; $++) M += "/" + O[$]; (!M || U && !M.endsWith("/..")) && (M += "/"), g.path = M; } i(T, "normalizePath"); function d(g, D) { if (!g && !D) return ""; let _ = f(g), O = _.type; if (D && O !== 7) { let j = f(D), U = j.type; switch (O) { case 1: _.hash = j.hash; // fall through case 2: _.query = j.query; // fall through case 3: case 4: b(_, j); // fall through case 5: _.user = j.user, _.host = j.host, _.port = j.port; // fall through case 6: _.scheme = j.scheme; } U > O && (O = U); } T(_, O); let k = _.query + _.hash; switch (O) { // This is impossible, because of the empty checks at the start of the function. // case UrlType.Empty: case 2: case 3: return k; case 4: { let j = _.path.slice(1); return j ? l(D || g) && !l(j) ? "./" + j + k : j + k : k || "."; } case 5: return _.path + k; default: return _.scheme + "//" + _.user + _.host + _.port + _.path + k; } } return i(d, "resolve"), d; }); }); // ../node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs var xS = {}; hl(xS, { AnyMap: () => gz, FlattenMap: () => gz, GREATEST_LOWER_BOUND: () => lo, LEAST_UPPER_BOUND: () => oo, TraceMap: () => gs, allGeneratedPositionsFor: () => vz, decodedMap: () => wz, decodedMappings: () => Rr, eachMapping: () => Pz, encodedMap: () => Dz, encodedMappings: () => yS, generatedPositionFor: () => Sz, isIgnored: () => Cz, originalPositionFor: () => Ez, presortedDecodedMap: () => gS, sourceContentFor: () => Az, traceSegment: () => Bh }); function cz(e) { if (!e) return ""; let t = e.lastIndexOf("/"); return e.slice(0, t + 1); } function pz(e, t) { let r = cz(e), s = t ? t + "/" : ""; return (n) => (0, iS.default)(s + (n || ""), r); } function fz(e, t) { let r = nS(e, 0); if (r === e.length) return e; t || (e = e.slice()); for (let s = r; s < e.length; s = nS(e, s + 1)) e[s] = hz(e[s], t); return e; } function nS(e, t) { for (let r = t; r < e.length; r++) if (!dz(e[r])) return r; return e.length; } function dz(e) { for (let t = 1; t < e.length; t++) if (e[t][Mr] < e[t - 1][Mr]) return !1; return !0; } function hz(e, t) { return t || (e = e.slice()), e.sort(uS); } function uS(e, t) { return e[Mr] - t[Mr]; } function mz(e, t) { let r = t.map(() => []); for (let s = 0; s < e.length; s++) { let n = e[s]; for (let a = 0; a < n.length; a++) { let o = n[a]; if (o.length === 1) continue; let l = o[_h], u = o[Ih], c = o[Oh], p = r[l]; (p[u] || (p[u] = [])).push([c, s, o[Mr]]); } } for (let s = 0; s < r.length; s++) { let n = r[s]; for (let a = 0; a < n.length; a++) { let o = n[a]; o && o.sort(uS); } } return r; } function yz(e, t, r, s) { for (; r <= s; ) { let n = r + (s - r >> 1), a = e[n][Mr] - t; if (a === 0) return qn = !0, n; a < 0 ? r = n + 1 : s = n - 1; } return qn = !1, r - 1; } function cS(e, t, r) { for (let s = r + 1; s < e.length && e[s][Mr] === t; r = s++) ; return r; } function pS(e, t, r) { for (let s = r - 1; s >= 0 && e[s][Mr] === t; r = s--) ; return r; } function fS() { return { lastKey: -1, lastNeedle: -1, lastIndex: -1 }; } function bz(e, t, r, s) { let { lastKey: n, lastNeedle: a, lastIndex: o } = r, l = 0, u = e.length - 1; if (s === n) { if (t === a) return qn = o !== -1 && e[o][Mr] === t, o; t >= a ? l = o === -1 ? 0 : o : u = o; } return r.lastKey = s, r.lastNeedle = t, r.lastIndex = yz(e, t, l, u); } function Nh(e) { return typeof e == "string" ? JSON.parse(e) : e; } function dS(e, t, r, s, n, a, o, l, u, c, p) { let { sections: f } = e; for (let h = 0; h < f.length; h++) { let { map: b, offset: T } = f[h], d = c, g = p; if (h + 1 < f.length) { let D = f[h + 1].offset; d = Math.min(c, l + D.line), d === c ? g = Math.min(p, u + D.column) : d < c && (g = u + D.column); } Tz( b, t, r, s, n, a, o, l + T.line, u + T.column, d, g ); } } function Tz(e, t, r, s, n, a, o, l, u, c, p) { let f = Nh(e); if ("sections" in f) return dS(...arguments); let h = new gs(f, t), b = s.length, T = a.length, d = Rr(h), { resolvedSources: g, sourcesContent: D, ignoreList: _ } = h; if (Dh(s, g), Dh(a, h.names), D) Dh(n, D); else for (let O = 0; O < g.length; O++) n.push(null); if (_) for (let O = 0; O < _.length; O++) o.push(_[O] + b); for (let O = 0; O < d.length; O++) { let k = l + O; if (k > c) return; let j = xz(r, k), U = O === 0 ? u : 0, M = d[O]; for (let $ = 0; $ < M.length; $++) { let ee = M[$], ae = U + ee[Mr]; if (k === c && ae >= p) return; if (ee.length === 1) { j.push([ae]); continue; } let Q = b + ee[_h], we = ee[Ih], $e = ee[Oh]; j.push( ee.length === 4 ? [ae, Q, we, $e] : [ae, Q, we, $e, T + ee[aS]] ); } } } function Dh(e, t) { for (let r = 0; r < t.length; r++) e.push(t[r]); } function xz(e, t) { for (let r = e.length; r <= t; r++) e[r] = []; return e[t]; } function yS(e) { var t, r; return (r = (t = e)._encoded) != null ? r : t._encoded = yu(e._decoded); } function Rr(e) { var t; return (t = e)._decoded || (t._decoded = rS(e._encoded)); } function Bh(e, t, r) { let s = Rr(e); if (t >= s.length) return null; let n = s[t], a = gu( n, e._decodedMemo, t, r, lo ); return a === -1 ? null : n[a]; } function Ez(e, t) { let { line: r, column: s, bias: n } = t; if (r--, r < 0) throw new Error(hS); if (s < 0) throw new Error(mS); let a = Rr(e); if (r >= a.length) return bu(null, null, null, null); let o = a[r], l = gu( o, e._decodedMemo, r, s, n || lo ); if (l === -1) return bu(null, null, null, null); let u = o[l]; if (u.length === 1) return bu(null, null, null, null); let { names: c, resolvedSources: p } = e; return bu( p[u[_h]], u[Ih] + 1, u[Oh], u.length === 5 ? c[u[aS]] : null ); } function Sz(e, t) { let { source: r, line: s, column: n, bias: a } = t; return TS(e, r, s, n, a || lo, !1); } function vz(e, t) { let { source: r, line: s, column: n, bias: a } = t; return TS(e, r, s, n, a || oo, !0); } function Pz(e, t) { let r = Rr(e), { names: s, resolvedSources: n } = e; for (let a = 0; a < r.length; a++) { let o = r[a]; for (let l = 0; l < o.length; l++) { let u = o[l], c = a + 1, p = u[0], f = null, h = null, b = null, T = null; u.length !== 1 && (f = n[u[1]], h = u[2] + 1, b = u[3]), u.length === 5 && (T = s[u[4]]), t({ generatedLine: c, generatedColumn: p, source: f, originalLine: h, originalColumn: b, name: T }); } } } function bS(e, t) { let { sources: r, resolvedSources: s } = e, n = r.indexOf(t); return n === -1 && (n = s.indexOf(t)), n; } function Az(e, t) { let { sourcesContent: r } = e; if (r == null) return null; let s = bS(e, t); return s === -1 ? null : r[s]; } function Cz(e, t) { let { ignoreList: r } = e; if (r == null) return !1; let s = bS(e, t); return s === -1 ? !1 : r.includes(s); } function gS(e, t) { let r = new gs(kh(e, []), t); return r._decoded = e.mappings, r; } function wz(e) { return kh(e, Rr(e)); } function Dz(e) { return kh(e, yS(e)); } function kh(e, t) { return { version: e.version, file: e.file, names: e.names, sourceRoot: e.sourceRoot, sources: e.sources, sourcesContent: e.sourcesContent, mappings: t, ignoreList: e.ignoreList || e.x_google_ignoreList }; } function bu(e, t, r, s) { return { source: e, line: t, column: r, name: s }; } function ao(e, t) { return { line: e, column: t }; } function gu(e, t, r, s, n) { let a = bz(e, s, t, r); return qn ? a = (n === oo ? cS : pS)(e, s, a) : n === oo && a++, a === -1 || a === e.length ? -1 : a; } function _z(e, t, r, s, n) { let a = gu(e, t, r, s, lo); if (!qn && n === oo && a++, a === -1 || a === e.length) return []; let o = qn ? s : e[a][Mr]; qn || (a = pS(e, o, a)); let l = cS(e, o, a), u = []; for (; a <= l; a++) { let c = e[a]; u.push(ao(c[oS] + 1, c[lS])); } return u; } function TS(e, t, r, s, n, a) { var o, l; if (r--, r < 0) throw new Error(hS); if (s < 0) throw new Error(mS); let { sources: u, resolvedSources: c } = e, p = u.indexOf(t); if (p === -1 && (p = c.indexOf(t)), p === -1) return a ? [] : ao(null, null); let f = (o = e)._bySourceMemos || (o._bySourceMemos = u.map(fS)), b = ((l = e)._bySources || (l._bySources = mz(Rr(e), f)))[p][r]; if (b == null) return a ? [] : ao(null, null); let T = f[p]; if (a) return _z(b, T, r, s, n); let d = gu(b, T, r, s, n); if (d === -1) return ao(null, null); let g = b[d]; return ao(g[oS] + 1, g[lS]); } var iS, Mr, _h, Ih, Oh, aS, oS, lS, qn, gz, hS, mS, oo, lo, gs, uo = dl(() => { Ah(); iS = Br(sS(), 1); i(cz, "stripFilename"); i(pz, "resolver"); Mr = 0, _h = 1, Ih = 2, Oh = 3, aS = 4, oS = 1, lS = 2; i(fz, "maybeSort"); i(nS, "nextUnsortedSegmentLine"); i(dz, "isSorted"); i(hz, "sortSegments"); i(uS, "sortComparator"); i(mz, "buildBySources"); qn = !1; i(yz, "binarySearch"); i(cS, "upperBound"); i(pS, "lowerBound"); i(fS, "memoizedState"); i(bz, "memoizedBinarySearch"); i(Nh, "parse"); gz = /* @__PURE__ */ i(function(e, t) { let r = Nh(e); if (!("sections" in r)) return new gs(r, t); let s = [], n = [], a = [], o = [], l = []; dS( r, t, s, n, a, o, l, 0, 0, 1 / 0, 1 / 0 ); let u = { version: 3, file: r.file, names: o, sources: n, sourcesContent: a, mappings: s, ignoreList: l }; return gS(u); }, "FlattenMap"); i(dS, "recurse"); i(Tz, "addSection"); i(Dh, "append"); i(xz, "getLine"); hS = "`line` must be greater than 0 (lines start at line 1)", mS = "`column` must be greater than or equal to 0 (columns start at column 0\ )", oo = -1, lo = 1, gs = class { static { i(this, "TraceMap"); } constructor(e, t) { let r = typeof e == "string"; if (!r && e._decodedMemo) return e; let s = Nh(e), { version: n, file: a, names: o, sourceRoot: l, sources: u, sourcesContent: c } = s; this.version = n, this.file = a, this.names = o || [], this.sourceRoot = l, this.sources = u, this.sourcesContent = c, this.ignoreList = s.ignoreList || s.x_google_ignoreList || void 0; let p = pz(t, l); this.resolvedSources = u.map(p); let { mappings: f } = s; if (typeof f == "string") this._encoded = f, this._decoded = void 0; else if (Array.isArray(f)) this._encoded = void 0, this._decoded = fz(f, r); else throw s.sections ? new Error("TraceMap passed sectioned source map, please use FlattenMap export instead") : new Error(`invalid s\ ource map: ${JSON.stringify(s)}`); this._decodedMemo = fS(), this._bySources = void 0, this._bySourceMemos = void 0; } }; i(yS, "encodedMappings"); i(Rr, "decodedMappings"); i(Bh, "traceSegment"); i(Ez, "originalPositionFor"); i(Sz, "generatedPositionFor"); i(vz, "allGeneratedPositionsFor"); i(Pz, "eachMapping"); i(bS, "sourceIndex"); i(Az, "sourceContentFor"); i(Cz, "isIgnored"); i(gS, "presortedDecodedMap"); i(wz, "decodedMap"); i(Dz, "encodedMap"); i(kh, "clone"); i(bu, "OMapping"); i(ao, "GMapping"); i(gu, "traceSegmentInternal"); i(_z, "sliceGeneratedPositions"); i(TS, "generatedPosition"); }); // ../node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs var IS = {}; hl(IS, { GenMapping: () => xu, addMapping: () => Nz, addSegment: () => Oz, allMappings: () => Fz, fromMap: () => kz, maybeAddMapping: () => Bz, maybeAddSegment: () => jh, setIgnore: () => Rh, setSourceContent: () => Mh, toDecodedMap: () => Eu, toEncodedMap: () => qh }); function SS(e, t) { return e._indexes[t]; } function Bi(e, t) { let r = SS(e, t); if (r !== void 0) return r; let { array: s, _indexes: n } = e, a = s.push(t); return n[t] = a - 1; } function Iz(e, t) { let r = SS(e, t); if (r === void 0) return; let { array: s, _indexes: n } = e; for (let a = r + 1; a < s.length; a++) { let o = s[a]; s[a - 1] = o, n[o]--; } n[t] = void 0, s.pop(); } function Oz(e, t, r, s, n, a, o, l) { return Tu( !1, e, t, r, s, n, a, o, l ); } function Nz(e, t) { return _S(!1, e, t); } function Mh(e, t, r) { let { _sources: s, _sourcesContent: n // _originalScopes: originalScopes, } = e, a = Bi(s, t); n[a] = r; } function Rh(e, t, r = !0) { let { _sources: s, _sourcesContent: n, _ignoreList: a // _originalScopes: originalScopes, } = e, o = Bi(s, t); o === n.length && (n[o] = null), r ? Bi(a, o) : Iz(a, o); } function Eu(e) { let { _mappings: t, _sources: r, _sourcesContent: s, _names: n, _ignoreList: a // _originalScopes: originalScopes, // _generatedRanges: generatedRanges, } = e; return Mz(t), { version: 3, file: e.file || void 0, names: n.array, sourceRoot: e.sourceRoot || void 0, sources: r.array, sourcesContent: s, mappings: t, // originalScopes, // generatedRanges, ignoreList: a.array }; } function qh(e) { let t = Eu(e); return Object.assign({}, t, { // originalScopes: decoded.originalScopes.map((os) => encodeOriginalScopes(os)), // generatedRanges: encodeGeneratedRanges(decoded.generatedRanges as GeneratedRange[]), mappings: yu(t.mappings) }); } function kz(e) { let t = new gs(e), r = new xu({ file: t.file, sourceRoot: t.sourceRoot }); return Lh(r._names, t.names), Lh(r._sources, t.sources), r._sourcesContent = t.sourcesContent || t.sources.map(() => null), r._mappings = Rr( t), t.ignoreList && Lh(r._ignoreList, t.ignoreList), r; } function Fz(e) { let t = [], { _mappings: r, _sources: s, _names: n } = e; for (let a = 0; a < r.length; a++) { let o = r[a]; for (let l = 0; l < o.length; l++) { let u = o[l], c = { line: a + 1, column: u[vS] }, p, f, h; u.length !== 1 && (p = s.array[u[PS]], f = { line: u[AS] + 1, column: u[CS] }, u.length === 5 && (h = n.array[u[wS]])), t.push({ generated: c, source: p, original: f, name: h }); } } return t; } function Tu(e, t, r, s, n, a, o, l, u) { let { _mappings: c, _sources: p, _sourcesContent: f, _names: h // _originalScopes: originalScopes, } = t, b = Lz(c, r), T = jz(b, s); if (!n) return e && Rz(b, T) ? void 0 : ES(b, T, [s]); let d = Bi(p, n), g = l ? Bi(h, l) : DS; if (d === f.length && (f[d] = u ?? null), !(e && qz(b, T, d, a, o, g))) return ES( b, T, l ? [s, d, a, o, g] : [s, d, a, o] ); } function Lz(e, t) { for (let r = e.length; r <= t; r++) e[r] = []; return e[t]; } function jz(e, t) { let r = e.length; for (let s = r - 1; s >= 0; r = s--) { let n = e[s]; if (t >= n[vS]) break; } return r; } function ES(e, t, r) { for (let s = e.length; s > t; s--) e[s] = e[s - 1]; e[t] = r; } function Mz(e) { let { length: t } = e, r = t; for (let s = r - 1; s >= 0 && !(e[s].length > 0); r = s, s--) ; r < t && (e.length = r); } function Lh(e, t) { for (let r = 0; r < t.length; r++) Bi(e, t[r]); } function Rz(e, t) { return t === 0 ? !0 : e[t - 1].length === 1; } function qz(e, t, r, s, n, a) { if (t === 0) return !1; let o = e[t - 1]; return o.length === 1 ? !1 : r === o[PS] && s === o[AS] && n === o[CS] && a === (o.length === 5 ? o[wS] : DS); } function _S(e, t, r) { let { generated: s, source: n, original: a, name: o, content: l } = r; return n ? Tu( e, t, s.line - 1, s.column, n, a.line - 1, a.column, o, l ) : Tu( e, t, s.line - 1, s.column, null, null, null, null, null ); } var Fh, vS, PS, AS, CS, wS, DS, xu, jh, Bz, Su = dl(() => { Ah(); uo(); Fh = class { static { i(this, "SetArray"); } constructor() { this._indexes = { __proto__: null }, this.array = []; } }; i(SS, "get"); i(Bi, "put"); i(Iz, "remove"); vS = 0, PS = 1, AS = 2, CS = 3, wS = 4, DS = -1, xu = class { static { i(this, "GenMapping"); } constructor({ file: e, sourceRoot: t } = {}) { this._names = new Fh(), this._sources = new Fh(), this._sourcesContent = [], this._mappings = [], this.file = e, this.sourceRoot = t, this. _ignoreList = new Fh(); } }; i(Oz, "addSegment"); i(Nz, "addMapping"); jh = /* @__PURE__ */ i((e, t, r, s, n, a, o, l) => Tu( !0, e, t, r, s, n, a, o, l ), "maybeAddSegment"), Bz = /* @__PURE__ */ i((e, t) => _S(!0, e, t), "maybeAddMapping"); i(Mh, "setSourceContent"); i(Rh, "setIgnore"); i(Eu, "toDecodedMap"); i(qh, "toEncodedMap"); i(kz, "fromMap"); i(Fz, "allMappings"); i(Tu, "addSegmentInternal"); i(Lz, "getIndex"); i(jz, "getColumnIndex"); i(ES, "insert"); i(Mz, "removeEmptyFinalLines"); i(Lh, "putAll"); i(Rz, "skipSourceless"); i(qz, "skipSource"); i(_S, "addMappingInternal"); }); // ../node_modules/@babel/generator/lib/source-map.js var OS = w((vu) => { "use strict"; Object.defineProperty(vu, "__esModule", { value: !0 }); vu.default = void 0; var Zs = (Su(), ml(IS)), Uh = (uo(), ml(xS)), $h = class { static { i(this, "SourceMap"); } constructor(t, r) { var s; this._map = void 0, this._rawMappings = void 0, this._sourceFileName = void 0, this._lastGenLine = 0, this._lastSourceLine = 0, this._lastSourceColumn = 0, this._inputMap = null; let n = this._map = new Zs.GenMapping({ sourceRoot: t.sourceRoot }); if (this._sourceFileName = (s = t.sourceFileName) == null ? void 0 : s.replace(/\\/g, "/"), this._rawMappings = void 0, t.inputSourceMap) { this._inputMap = new Uh.TraceMap(t.inputSourceMap); let o = this._inputMap.resolvedSources; if (o.length) for (let l = 0; l < o.length; l++) { var a; (0, Zs.setSourceContent)(n, o[l], (a = this._inputMap.sourcesContent) == null ? void 0 : a[l]); } } if (typeof r == "string" && !t.inputSourceMap) (0, Zs.setSourceContent)(n, this._sourceFileName, r); else if (typeof r == "object") for (let o of Object.keys(r)) (0, Zs.setSourceContent)(n, o.replace(/\\/g, "/"), r[o]); } get() { return (0, Zs.toEncodedMap)(this._map); } getDecoded() { return (0, Zs.toDecodedMap)(this._map); } getRawMappings() { return this._rawMappings || (this._rawMappings = (0, Zs.allMappings)(this._map)); } mark(t, r, s, n, a, o) { var l; this._rawMappings = void 0; let u; if (r != null) if (this._inputMap) { if (u = (0, Uh.originalPositionFor)(this._inputMap, { line: r, column: s }), !u.name && a) { let c = (0, Uh.originalPositionFor)(this._inputMap, a); c.name && (n = c.name); } } else u = { name: null, source: o?.replace(/\\/g, "/") || this._sourceFileName, line: r, column: s }; (0, Zs.maybeAddMapping)(this._map, { name: n, generated: t, source: (l = u) == null ? void 0 : l.source, original: u }); } }; vu.default = $h; }); // ../node_modules/@babel/generator/lib/buffer.js var NS = w((Pu) => { "use strict"; Object.defineProperty(Pu, "__esModule", { value: !0 }); Pu.default = void 0; var Vh = class { static { i(this, "Buffer"); } 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 s = 0; s < 64; s++) this._fastIndentations.push(r.repeat(s)); 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, s, n, a) { let o = this._queueCursor; o === this._queue.length && this._allocQueue(); let l = this._queue[o]; l.char = t, l.repeat = r, l.line = s, l.column = n, l.filename = a, 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?.getDecoded(), get __mergedMap() { return this.map; }, get map() { let s = t ? t.get() : null; return r.map = s, s; }, set map(s) { Object.defineProperty(r, "map", { value: s, writable: !0 }); }, get rawMappings() { let s = t?.getRawMappings(); return r.rawMappings = s, s; }, set rawMappings(s) { Object.defineProperty(r, "rawMappings", { value: s, 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 s = this._queue[this._queueCursor - 1].char; if (s !== 32 && s !== 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 s = 0; s < t; s++) { let n = r[s]; this._appendChar(n.char, n.repeat, n); } this._queueCursor = 0; } _appendChar(t, r, s) { if (this._last = t, t === -1) { let n = this._fastIndentations[r]; n !== void 0 ? this._str += n : this._str += r > 1 ? this._indentChar.repeat(r) : this._indentChar; } else this._str += r > 1 ? String.fromCharCode(t).repeat(r) : String.fromCharCode(t); t !== 10 ? (this._mark(s.line, s.column, s.identifierName, s.identifierNamePos, s.filename), this._position.column += r) : (this._position. line++, this._position.column = 0), this._canMarkIdName && (s.identifierName = void 0, s.identifierNamePos = void 0); } _append(t, r, s) { let n = t.length, a = this._position; if (this._last = t.charCodeAt(n - 1), ++this._appendCount > 4096 ? (+this._str, this._buf += this._str, this._str = t, this._appendCount = 0) : this._str += t, !s && !this._map) { a.column += n; return; } let { column: o, identifierName: l, identifierNamePos: u, filename: c } = r, p = r.line; (l != null || u != null) && this._canMarkIdName && (r.identifierName = void 0, r.identifierNamePos = void 0); let f = t.indexOf(` `), h = 0; for (f !== 0 && this._mark(p, o, l, u, c); f !== -1; ) a.line++, a.column = 0, h = f + 1, h < n && p !== void 0 && this._mark(++p, 0, void 0, void 0, c), f = t.indexOf(` `, h); a.column += n - h; } _mark(t, r, s, n, a) { var o; (o = this._map) == null || o.mark(this._position, t, r, s, n, a); } removeTrailingNewline() { let t = this._queueCursor; t !== 0 && this._queue[t - 1].char === 10 && this._queueCursor--; } removeLastSemicolon() { let t = this._queueCursor; t !== 0 && this._queue[t - 1].char === 59 && this._queueCursor--; } getLastChar() { let t = this._queueCursor; return t !== 0 ? this._queue[t - 1].char : this._last; } getNewlineCount() { let t = this._queueCursor, r = 0; if (t === 0) return this._last === 10 ? 1 : 0; for (let s = t - 1; s >= 0 && this._queue[s].char === 10; s--) 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 s = t.identifierName, n = this._sourcePosition; s && (this._canMarkIdName = !1, n.identifierName = s), r(), s && (this._canMarkIdName = !0, n.identifierName = void 0, n.identifierNamePos = void 0), this.source("end", t); } source(t, r) { this._map && this._normalizePosition(t, r, 0); } sourceWithOffset(t, r, s) { this._map && this._normalizePosition(t, r, s); } _normalizePosition(t, r, s) { let n = r[t], a = this._sourcePosition; n && (a.line = n.line, a.column = Math.max(n.column + s, 0), a.filename = r.filename); } getCurrentColumn() { let t = this._queue, r = this._queueCursor, s = -1, n = 0; for (let a = 0; a < r; a++) { let o = t[a]; o.char === 10 && (s = n), n += o.repeat; } return s === -1 ? this._position.column + n : n - 1 - s; } getCurrentLine() { let t = 0, r = this._queue; for (let s = 0; s < this._queueCursor; s++) r[s].char === 10 && t++; return this._position.line + t; } }; Pu.default = Vh; }); // ../node_modules/@babel/generator/lib/node/whitespace.js var jS = w((Cu) => { "use strict"; Object.defineProperty(Cu, "__esModule", { value: !0 }); Cu.nodes = void 0; var Uz = ue(), { FLIPPED_ALIAS_KEYS: $z, isArrayExpression: Vz, isAssignmentExpression: kS, isBinary: FS, isBlockStatement: Kz, isCallExpression: LS, isFunction: co, isIdentifier: Au, isLiteral: Wz, isMemberExpression: Kh, isObjectExpression: Yz, isOptionalCallExpression: Hz, isOptionalMemberExpression: Jz, isStringLiteral: Gz } = Uz; function ki(e, t) { return e && (Kh(e) || Jz(e) ? (ki(e.object, t), e.computed && ki(e.property, t)) : FS(e) || kS(e) ? (ki(e.left, t), ki(e.right, t)) : LS( e) || Hz(e) ? (t.hasCall = !0, ki(e.callee, t)) : co(e) ? t.hasFunction = !0 : Au(e) && (t.hasHelper = t.hasHelper || e.callee && Ts(e.callee))), t; } i(ki, "crawlInternal"); function BS(e) { return ki(e, { hasCall: !1, hasFunction: !1, hasHelper: !1 }); } i(BS, "crawl"); function Ts(e) { return e ? Kh(e) ? Ts(e.object) || Ts(e.property) : Au(e) ? e.name === "require" || e.name.charCodeAt(0) === 95 : LS(e) ? Ts(e.callee) : FS(e) || kS(e) ? Au(e.left) && Ts(e.left) || Ts(e.right) : !1 : !1; } i(Ts, "isHelper"); function Xz(e) { return Wz(e) || Yz(e) || Vz(e) || Au(e) || Kh(e); } i(Xz, "isType"); var Un = Cu.nodes = { AssignmentExpression(e) { let t = BS(e.right); return t.hasCall && t.hasHelper || t.hasFunction ? t.hasFunction ? 3 : 2 : 0; }, 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) { return co(e.left) || co(e.right) ? 2 : 0; }, Literal(e) { return Gz(e) && e.value === "use strict" ? 2 : 0; }, CallExpression(e) { return co(e.callee) || Ts(e) ? 3 : 0; }, OptionalCallExpression(e) { return co(e.callee) ? 3 : 0; }, VariableDeclaration(e) { for (let t = 0; t < e.declarations.length; t++) { let r = e.declarations[t], s = Ts(r.id) && !Xz(r.init); if (!s && r.init) { let n = BS(r.init); s = Ts(r.init) && n.hasCall || n.hasFunction; } if (s) return 3; } return 0; }, IfStatement(e) { return Kz(e.consequent) ? 3 : 0; } }; Un.ObjectProperty = Un.ObjectTypeProperty = Un.ObjectMethod = function(e, t) { return t.properties[0] === e ? 1 : 0; }; Un.ObjectTypeCallProperty = function(e, t) { var r; return t.callProperties[0] === e && !((r = t.properties) != null && r.length) ? 1 : 0; }; Un.ObjectTypeIndexer = function(e, t) { var r, s; return t.indexers[0] === e && !((r = t.properties) != null && r.length) && !((s = t.callProperties) != null && s.length) ? 1 : 0; }; Un.ObjectTypeInternalSlot = function(e, t) { var r, s, n; return t.internalSlots[0] === e && !((r = t.properties) != null && r.length) && !((s = t.callProperties) != null && s.length) && !((n = t. indexers) != null && n.length) ? 1 : 0; }; [["Function", !0], ["Class", !0], ["Loop", !0], ["LabeledStatement", !0], ["SwitchStatement", !0], ["TryStatement", !0]].forEach(function([ e, t]) { [e].concat($z[e] || []).forEach(function(r) { let s = t ? 3 : 0; Un[r] = () => s; }); }); }); // ../node_modules/@babel/generator/lib/node/parentheses.js var WS = w((Ee) => { "use strict"; Object.defineProperty(Ee, "__esModule", { value: !0 }); Ee.AssignmentExpression = DQ; Ee.Binary = $S; Ee.BinaryExpression = SQ; Ee.ClassExpression = AQ; Ee.ArrowFunctionExpression = Ee.ConditionalExpression = KS; Ee.DoExpression = pQ; Ee.FunctionExpression = CQ; Ee.FunctionTypeAnnotation = lQ; Ee.Identifier = IQ; Ee.LogicalExpression = _Q; Ee.NullableTypeAnnotation = oQ; Ee.ObjectExpression = cQ; Ee.OptionalIndexedAccessType = dQ; Ee.OptionalCallExpression = Ee.OptionalMemberExpression = wQ; Ee.SequenceExpression = vQ; Ee.TSSatisfiesExpression = Ee.TSAsExpression = hQ; Ee.TSConditionalType = mQ; Ee.TSConstructorType = Ee.TSFunctionType = EQ; Ee.TSInferType = gQ; Ee.TSInstantiationExpression = xQ; Ee.TSIntersectionType = bQ; Ee.UnaryLike = Ee.TSTypeAssertion = VS; Ee.TSTypeOperator = TQ; Ee.TSUnionType = yQ; Ee.IntersectionTypeAnnotation = Ee.UnionTypeAnnotation = fQ; Ee.UpdateExpression = uQ; Ee.AwaitExpression = Ee.YieldExpression = PQ; var zz = ue(), sr = $n(), { isArrayTypeAnnotation: Qz, isBinaryExpression: Zz, isCallExpression: eQ, isForOfStatement: tQ, isIndexedAccessType: rQ, isMemberExpression: qS, isObjectPattern: sQ, isOptionalMemberExpression: nQ, isYieldExpression: iQ, isStatement: aQ } = zz, MS = /* @__PURE__ */ 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 RS(e, t) { if (t === "BinaryExpression" || t === "LogicalExpression") return MS.get(e.operator); if (t === "TSAsExpression" || t === "TSSatisfiesExpression") return MS.get("in"); } i(RS, "getBinaryPrecedence"); function Wh(e) { return e === "TSAsExpression" || e === "TSSatisfiesExpression" || e === "TSTypeAssertion"; } i(Wh, "isTSTypeExpression"); var wu = /* @__PURE__ */ i((e, t) => { let r = t.type; return (r === "ClassDeclaration" || r === "ClassExpression") && t.superClass === e; }, "isClassExtendsClause"), Du = /* @__PURE__ */ i((e, t) => { let r = t.type; return (r === "MemberExpression" || r === "OptionalMemberExpression") && t.object === e || (r === "CallExpression" || r === "OptionalCal\ lExpression" || r === "NewExpression") && t.callee === e || r === "TaggedTemplateExpression" && t.tag === e || r === "TSNonNullExpression"; }, "hasPostfixPart"); function oQ(e, t) { return Qz(t); } i(oQ, "NullableTypeAnnotation"); function lQ(e, t, r) { let s = t.type; return s === "UnionTypeAnnotation" || s === "IntersectionTypeAnnotation" || s === "ArrayTypeAnnotation" || !!(r & sr.TokenContext.arrowFlowReturnType); } i(lQ, "FunctionTypeAnnotation"); function uQ(e, t) { return Du(e, t) || wu(e, t); } i(uQ, "UpdateExpression"); function US(e) { return !!(e & (sr.TokenContext.expressionStatement | sr.TokenContext.arrowBody)); } i(US, "needsParenBeforeExpressionBrace"); function cQ(e, t, r) { return US(r); } i(cQ, "ObjectExpression"); function pQ(e, t, r) { return !e.async && !!(r & sr.TokenContext.expressionStatement); } i(pQ, "DoExpression"); function $S(e, t) { let r = t.type; if (e.type === "BinaryExpression" && e.operator === "**" && r === "BinaryExpression" && t.operator === "**") return t.left === e; if (wu(e, t) || Du(e, t) || r === "UnaryExpression" || r === "SpreadElement" || r === "AwaitExpression") return !0; let s = RS(t, r); if (s != null) { let n = RS(e, e.type); if (s === n && r === "BinaryExpression" && t.right === e || s > n) return !0; } } i($S, "Binary"); function fQ(e, t) { let r = t.type; return r === "ArrayTypeAnnotation" || r === "NullableTypeAnnotation" || r === "IntersectionTypeAnnotation" || r === "UnionTypeAnnotation"; } i(fQ, "UnionTypeAnnotation"); function dQ(e, t) { return rQ(t) && t.objectType === e; } i(dQ, "OptionalIndexedAccessType"); function hQ(e, t) { return (t.type === "AssignmentExpression" || t.type === "AssignmentPattern") && t.left === e || t.type === "BinaryExpression" && (t.operator === "|" || t.operator === "&") && e === t.left ? !0 : $S(e, t); } i(hQ, "TSAsExpression"); function mQ(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); } i(mQ, "TSConditionalType"); function yQ(e, t) { let r = t.type; return r === "TSIntersectionType" || r === "TSTypeOperator" || r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType"; } i(yQ, "TSUnionType"); function bQ(e, t) { let r = t.type; return r === "TSTypeOperator" || r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType"; } i(bQ, "TSIntersectionType"); function gQ(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); } i(gQ, "TSInferType"); function TQ(e, t) { let r = t.type; return r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType"; } i(TQ, "TSTypeOperator"); function xQ(e, t) { let r = t.type; return (r === "CallExpression" || r === "OptionalCallExpression" || r === "NewExpression" || r === "TSInstantiationExpression") && !!t.typeParameters; } i(xQ, "TSInstantiationExpression"); function EQ(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); } i(EQ, "TSFunctionType"); function SQ(e, t, r) { return e.operator === "in" && !!(r & sr.TokenContext.forInOrInitHeadAccumulate); } i(SQ, "BinaryExpression"); function vQ(e, t) { let r = t.type; return r === "SequenceExpression" || r === "ParenthesizedExpression" || r === "MemberExpression" && t.property === e || r === "OptionalM\ emberExpression" && t.property === e || r === "TemplateLiteral" ? !1 : r === "ClassDeclaration" ? !0 : r === "ForOfStatement" ? t.right === e : r === "ExportDefaultDeclaration" ? !0 : !aQ(t); } i(vQ, "SequenceExpression"); function PQ(e, t) { let r = t.type; return r === "BinaryExpression" || r === "LogicalExpression" || r === "UnaryExpression" || r === "SpreadElement" || Du(e, t) || r === "A\ waitExpression" && iQ(e) || r === "ConditionalExpression" && e === t.test || wu(e, t) || Wh(r); } i(PQ, "YieldExpression"); function AQ(e, t, r) { return !!(r & (sr.TokenContext.expressionStatement | sr.TokenContext.exportDefault)); } i(AQ, "ClassExpression"); function VS(e, t) { return Du(e, t) || Zz(t) && t.operator === "**" && t.left === e || wu(e, t); } i(VS, "UnaryLike"); function CQ(e, t, r) { return !!(r & (sr.TokenContext.expressionStatement | sr.TokenContext.exportDefault)); } i(CQ, "FunctionExpression"); function KS(e, t) { let r = t.type; return r === "UnaryExpression" || r === "SpreadElement" || r === "BinaryExpression" || r === "LogicalExpression" || r === "ConditionalEx\ pression" && t.test === e || r === "AwaitExpression" || Wh(r) ? !0 : VS(e, t); } i(KS, "ConditionalExpression"); function wQ(e, t) { return eQ(t) && t.callee === e || qS(t) && t.object === e; } i(wQ, "OptionalMemberExpression"); function DQ(e, t, r) { return US(r) && sQ(e.left) ? !0 : KS(e, t); } i(DQ, "AssignmentExpression"); function _Q(e, t) { let r = t.type; if (Wh(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 !== "??"; } } i(_Q, "LogicalExpression"); function IQ(e, t, r, s) { var n; let a = t.type; if ((n = e.extra) != null && n.parenthesized && a === "AssignmentExpression" && t.left === e) { let o = t.right.type; if ((o === "FunctionExpression" || o === "ClassExpression") && t.right.id == null) return !0; } return s && s(e) !== e.name ? !1 : e.name === "let" ? (qS(t, { object: e, computed: !0 }) || nQ(t, { object: e, computed: !0, optional: !1 })) && r & (sr.TokenContext.expressionStatement | sr.TokenContext.forInitHead | sr.TokenContext.forInHead) ? !0 : !!(r & sr.TokenContext. forOfHead) : e.name === "async" && tQ(t, { left: e, await: !1 }); } i(IQ, "Identifier"); }); // ../node_modules/@babel/generator/lib/node/index.js var $n = w((xs) => { "use strict"; Object.defineProperty(xs, "__esModule", { value: !0 }); xs.TokenContext = void 0; xs.isLastChild = YQ; xs.needsParens = WQ; xs.needsWhitespace = Hh; xs.needsWhitespaceAfter = KQ; xs.needsWhitespaceBefore = VQ; var OQ = jS(), NQ = WS(), BQ = ue(), { FLIPPED_ALIAS_KEYS: kQ, VISITOR_KEYS: FQ, isCallExpression: YS, isDecorator: LQ, isExpressionStatement: jQ, isMemberExpression: MQ, isNewExpression: RQ, isParenthesizedExpression: qQ } = BQ, fDe = xs.TokenContext = { normal: 0, expressionStatement: 1, arrowBody: 2, exportDefault: 4, arrowFlowReturnType: 8, forInitHead: 16, forInHead: 32, forOfHead: 64, forInOrInitHeadAccumulate: 128, forInOrInitHeadAccumulatePassThroughMask: 128 }; function HS(e) { let t = /* @__PURE__ */ new Map(); function r(s, n) { let a = t.get(s); t.set(s, a ? function(o, l, u, c) { var p; return (p = a(o, l, u, c)) != null ? p : n(o, l, u, c); } : n); } i(r, "add"); for (let s of Object.keys(e)) { let n = kQ[s]; if (n) for (let a of n) r(a, e[s]); else r(s, e[s]); } return t; } i(HS, "expandAliases"); var UQ = HS(NQ), $Q = HS(OQ.nodes); function JS(e) { return YS(e) ? !0 : MQ(e) && JS(e.object); } i(JS, "isOrHasCallExpression"); function Hh(e, t, r) { var s; if (!e) return !1; jQ(e) && (e = e.expression); let n = (s = $Q.get(e.type)) == null ? void 0 : s(e, t); return typeof n == "number" ? (n & r) !== 0 : !1; } i(Hh, "needsWhitespace"); function VQ(e, t) { return Hh(e, t, 1); } i(VQ, "needsWhitespaceBefore"); function KQ(e, t) { return Hh(e, t, 2); } i(KQ, "needsWhitespaceAfter"); function WQ(e, t, r, s) { var n; return t ? RQ(t) && t.callee === e && JS(e) ? !0 : LQ(t) ? !Yh(e) && !(YS(e) && Yh(e.callee)) && !qQ(e) : ((n = UQ.get(e.type)) == null ? void 0 : n(e, t, r, s)) || !1 : !1; } i(WQ, "needsParens"); function Yh(e) { switch (e.type) { case "Identifier": return !0; case "MemberExpression": return !e.computed && e.property.type === "Identifier" && Yh(e.object); default: return !1; } } i(Yh, "isDecoratorMemberExpression"); function YQ(e, t) { let r = FQ[e.type]; for (let s = r.length - 1; s >= 0; s--) { let n = e[r[s]]; if (n === t) return !0; if (Array.isArray(n)) { let a = n.length - 1; for (; a >= 0 && n[a] === null; ) a--; return a >= 0 && n[a] === t; } else if (n) return !1; } return !1; } i(YQ, "isLastChild"); }); // ../node_modules/@babel/generator/lib/token-map.js var GS = w((_u) => { "use strict"; Object.defineProperty(_u, "__esModule", { value: !0 }); _u.TokenMap = void 0; var HQ = ue(), { traverseFast: JQ, VISITOR_KEYS: GQ } = HQ, Jh = class { static { i(this, "TokenMap"); } constructor(t, r, s) { this._tokens = void 0, this._source = void 0, this._nodesToTokenIndexes = /* @__PURE__ */ new Map(), this._nodesOccurrencesCountCache = /* @__PURE__ */ new Map(), this._tokensCache = /* @__PURE__ */ new Map(), this._tokens = r, this._source = s, JQ(t, (n) => { let a = this._getTokensIndexesOfNode(n); a.length > 0 && this._nodesToTokenIndexes.set(n, a); }), this._tokensCache.clear(); } has(t) { return this._nodesToTokenIndexes.has(t); } getIndexes(t) { return this._nodesToTokenIndexes.get(t); } find(t, r) { let s = this._nodesToTokenIndexes.get(t); if (s) for (let n = 0; n < s.length; n++) { let a = s[n], o = this._tokens[a]; if (r(o, a)) return o; } return null; } findLastIndex(t, r) { let s = this._nodesToTokenIndexes.get(t); if (s) for (let n = s.length - 1; n >= 0; n--) { let a = s[n], o = this._tokens[a]; if (r(o, a)) return a; } return -1; } findMatching(t, r, s = 0) { let n = this._nodesToTokenIndexes.get(t); if (n) { let a = 0, o = s; if (o > 1) { let l = this._nodesOccurrencesCountCache.get(t); l && l.test === r && l.count < o && (a = l.i + 1, s -= l.count + 1); } for (; a < n.length; a++) { let l = this._tokens[n[a]]; if (this.matchesOriginal(l, r)) { if (s === 0) return o > 0 && this._nodesOccurrencesCountCache.set(t, { test: r, count: o, i: a }), l; s--; } } } 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 s = this._nodesToTokenIndexes.get(t); if (!s) return !1; let n = this._tokens[s[0]]; return n.start !== t.start ? !1 : this.matchesOriginal(n, r); } endMatches(t, r) { let s = this._nodesToTokenIndexes.get(t); if (!s) return !1; let n = this._tokens[s[s.length - 1]]; return n.end !== t.end ? !1 : this.matchesOriginal(n, r); } _getTokensIndexesOfNode(t) { if (t.start == null || t.end == null) return []; let { first: r, last: s } = this._findTokensOfNode(t, 0, this._tokens.length - 1), n = r, a = XQ(t); (t.type === "ExportNamedDeclaration" || t.type === "ExportDefaultDeclaration") && t.declaration && t.declaration.type === "ClassDeclar\ ation" && a.next(); let o = []; for (let l of a) { if (l == null || l.start == null || l.end == null) continue; let u = this._findTokensOfNode(l, n, s), c = u.first; for (let p = n; p < c; p++) o.push(p); n = u.last + 1; } for (let l = n; l <= s; l++) o.push(l); return o; } _findTokensOfNode(t, r, s) { let n = this._tokensCache.get(t); if (n) return n; let a = this._findFirstTokenOfNode(t.start, r, s), o = this._findLastTokenOfNode(t.end, a, s); return this._tokensCache.set(t, { first: a, last: o }), { first: a, last: o }; } _findFirstTokenOfNode(t, r, s) { for (; r <= s; ) { let n = s + r >> 1; if (t < this._tokens[n].start) s = n - 1; else if (t > this._tokens[n].start) r = n + 1; else return n; } return r; } _findLastTokenOfNode(t, r, s) { for (; r <= s; ) { let n = s + r >> 1; if (t < this._tokens[n].end) s = n - 1; else if (t > this._tokens[n].end) r = n + 1; else return n; } return s; } }; _u.TokenMap = Jh; function* XQ(e) { if (e.type === "TemplateLiteral") { yield e.quasis[0]; for (let r = 1; r < e.quasis.length; r++) yield e.expressions[r - 1], yield e.quasis[r]; return; } let t = GQ[e.type]; for (let r of t) { let s = e[r]; s && (Array.isArray(s) ? yield* s : yield s); } } i(XQ, "childrenIterator"); }); // ../node_modules/@babel/generator/lib/generators/template-literals.js var XS = w((Fi) => { "use strict"; Object.defineProperty(Fi, "__esModule", { value: !0 }); Fi.TaggedTemplateExpression = zQ; Fi.TemplateElement = QQ; Fi.TemplateLiteral = eZ; Fi._printTemplate = ZQ; function zQ(e) { this.print(e.tag), this.print(e.typeParameters), this.print(e.quasi); } i(zQ, "TaggedTemplateExpression"); function QQ() { throw new Error("TemplateElement printing is handled in TemplateLiteral"); } i(QQ, "TemplateElement"); function ZQ(e, t) { let r = e.quasis, s = "`"; for (let n = 0; n < r.length - 1; n++) if (s += r[n].value.raw, this.token(s + "${", !0), this.print(t[n]), s = "}", this.tokenMap) { let a = this.tokenMap.findMatching(e, "}", n); a && this._catchUpTo(a.loc.start); } s += r[r.length - 1].value.raw, this.token(s + "`", !0); } i(ZQ, "_printTemplate"); function eZ(e) { this._printTemplate(e, e.expressions); } i(eZ, "TemplateLiteral"); }); // ../node_modules/@babel/generator/lib/generators/expressions.js var QS = w((ke) => { "use strict"; Object.defineProperty(ke, "__esModule", { value: !0 }); ke.LogicalExpression = ke.BinaryExpression = ke.AssignmentExpression = CZ; ke.AssignmentPattern = AZ; ke.AwaitExpression = EZ; ke.BindExpression = wZ; ke.CallExpression = TZ; ke.ConditionalExpression = cZ; ke.Decorator = yZ; ke.DoExpression = oZ; ke.EmptyStatement = vZ; ke.ExpressionStatement = PZ; ke.Import = xZ; ke.MemberExpression = DZ; ke.MetaProperty = _Z; ke.ModuleExpression = NZ; ke.NewExpression = pZ; ke.OptionalCallExpression = gZ; ke.OptionalMemberExpression = bZ; ke.ParenthesizedExpression = lZ; ke.PrivateName = IZ; ke.SequenceExpression = fZ; ke.Super = hZ; ke.ThisExpression = dZ; ke.UnaryExpression = aZ; ke.UpdateExpression = uZ; ke.V8IntrinsicIdentifier = OZ; ke.YieldExpression = SZ; ke._shouldPrintDecoratorsBeforeExport = mZ; var tZ = ue(), rZ = $n(), { isCallExpression: sZ, isLiteral: zS, isMemberExpression: Gh, isNewExpression: nZ, isPattern: iZ } = tZ; function aZ(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); } i(aZ, "UnaryExpression"); function oZ(e) { e.async && (this.word("async", !0), this.space()), this.word("do"), this.space(), this.print(e.body); } i(oZ, "DoExpression"); function lZ(e) { this.tokenChar(40); let t = this.enterDelimited(); this.print(e.expression), t(), this.rightParens(e); } i(lZ, "ParenthesizedExpression"); function uZ(e) { e.prefix ? (this.token(e.operator), this.print(e.argument)) : (this.print(e.argument, !0), this.token(e.operator)); } i(uZ, "UpdateExpression"); function cZ(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); } i(cZ, "ConditionalExpression"); function pZ(e, t) { if (this.word("new"), this.space(), this.print(e.callee), this.format.minified && e.arguments.length === 0 && !e.optional && !sZ(t, { callee: e }) && !Gh(t) && !nZ(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); } i(pZ, "NewExpression"); function fZ(e) { this.printList(e.expressions); } i(fZ, "SequenceExpression"); function dZ() { this.word("this"); } i(dZ, "ThisExpression"); function hZ() { this.word("super"); } i(hZ, "Super"); function mZ(e) { return typeof this.format.decoratorsBeforeExport == "boolean" ? this.format.decoratorsBeforeExport : typeof e.start == "number" && e.start === e.declaration.start; } i(mZ, "_shouldPrintDecoratorsBeforeExport"); function yZ(e) { this.tokenChar(64), this.print(e.expression), this.newline(); } i(yZ, "Decorator"); function bZ(e) { let { computed: t } = e, { optional: r, property: s } = e; if (this.print(e.object), !t && Gh(s)) throw new TypeError("Got a MemberExpression for MemberExpression property"); zS(s) && typeof s.value == "number" && (t = !0), r && this.token("?."), t ? (this.tokenChar(91), this.print(s), this.tokenChar(93)) : (r || this.tokenChar(46), this.print(s)); } i(bZ, "OptionalMemberExpression"); function gZ(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); } i(gZ, "OptionalCallExpression"); function TZ(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); } i(TZ, "CallExpression"); function xZ() { this.word("import"); } i(xZ, "Import"); function EZ(e) { this.word("await"), this.space(), this.print(e.argument); } i(EZ, "AwaitExpression"); function SZ(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"); } i(SZ, "YieldExpression"); function vZ() { this.semicolon(!0); } i(vZ, "EmptyStatement"); function PZ(e) { this.tokenContext |= rZ.TokenContext.expressionStatement, this.print(e.expression), this.semicolon(); } i(PZ, "ExpressionStatement"); function AZ(e) { this.print(e.left), (e.left.type === "Identifier" || iZ(e.left)) && (e.left.optional && this.tokenChar(63), this.print(e.left.typeAnnotation)), this.space(), this.tokenChar(61), this.space(), this.print(e.right); } i(AZ, "AssignmentPattern"); function CZ(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); } i(CZ, "AssignmentExpression"); function wZ(e) { this.print(e.object), this.token("::"), this.print(e.callee); } i(wZ, "BindExpression"); function DZ(e) { if (this.print(e.object), !e.computed && Gh(e.property)) throw new TypeError("Got a MemberExpression for MemberExpression property"); let t = e.computed; if (zS(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); } i(DZ, "MemberExpression"); function _Z(e) { this.print(e.meta), this.tokenChar(46), this.print(e.property); } i(_Z, "MetaProperty"); function IZ(e) { this.tokenChar(35), this.print(e.id); } i(IZ, "PrivateName"); function OZ(e) { this.tokenChar(37), this.word(e.name); } i(OZ, "V8IntrinsicIdentifier"); function NZ(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); } i(NZ, "ModuleExpression"); }); // ../node_modules/@babel/generator/lib/generators/statements.js var rv = w((Je) => { "use strict"; Object.defineProperty(Je, "__esModule", { value: !0 }); Je.BreakStatement = $Z; Je.CatchClause = JZ; Je.ContinueStatement = VZ; Je.DebuggerStatement = zZ; Je.DoWhileStatement = UZ; Je.ForOfStatement = Je.ForInStatement = void 0; Je.ForStatement = RZ; Je.IfStatement = MZ; Je.LabeledStatement = YZ; Je.ReturnStatement = KZ; Je.SwitchCase = XZ; Je.SwitchStatement = GZ; Je.ThrowStatement = WZ; Je.TryStatement = HZ; Je.VariableDeclaration = QZ; Je.VariableDeclarator = ZZ; Je.WhileStatement = qZ; Je.WithStatement = jZ; var BZ = ue(), { isFor: ZS, isForStatement: kZ, isIfStatement: FZ, isStatement: LZ } = BZ; function jZ(e) { this.word("with"), this.space(), this.tokenChar(40), this.print(e.object), this.tokenChar(41), this.printBlock(e); } i(jZ, "WithStatement"); function MZ(e) { this.word("if"), this.space(), this.tokenChar(40), this.print(e.test), this.tokenChar(41), this.space(); let t = e.alternate && FZ(ev(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)); } i(MZ, "IfStatement"); function ev(e) { let { body: t } = e; return LZ(t) === !1 ? e : ev(t); } i(ev, "getLastStatement"); function RZ(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); } i(RZ, "ForStatement"); function qZ(e) { this.word("while"), this.space(), this.tokenChar(40), this.print(e.test), this.tokenChar(41), this.printBlock(e); } i(qZ, "WhileStatement"); function tv(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?.(); } this.space(), this.word(t ? "of" : "in"), this.space(), this.print(e.right), this.tokenChar(41), this.printBlock(e); } i(tv, "ForXStatement"); var EDe = Je.ForInStatement = tv, SDe = Je.ForOfStatement = tv; function UZ(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(); } i(UZ, "DoWhileStatement"); function Iu(e, t) { t && (e.space(), e.printTerminatorless(t)), e.semicolon(); } i(Iu, "printStatementAfterKeyword"); function $Z(e) { this.word("break"), Iu(this, e.label); } i($Z, "BreakStatement"); function VZ(e) { this.word("continue"), Iu(this, e.label); } i(VZ, "ContinueStatement"); function KZ(e) { this.word("return"), Iu(this, e.argument); } i(KZ, "ReturnStatement"); function WZ(e) { this.word("throw"), Iu(this, e.argument); } i(WZ, "ThrowStatement"); function YZ(e) { this.print(e.label), this.tokenChar(58), this.space(), this.print(e.body); } i(YZ, "LabeledStatement"); function HZ(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)); } i(HZ, "TryStatement"); function JZ(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); } i(JZ, "CatchClause"); function GZ(e) { this.word("switch"), this.space(), this.tokenChar(40), this.print(e.discriminant), this.tokenChar(41), this.space(), this.tokenChar(123), this.printSequence(e.cases, !0), this.rightBrace(e); } i(GZ, "SwitchStatement"); function XZ(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)); } i(XZ, "SwitchCase"); function zZ() { this.word("debugger"), this.semicolon(); } i(zZ, "DebuggerStatement"); function QZ(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 s = !1; if (!ZS(t)) for (let n of e.declarations) n.init && (s = !0); if (this.printList(e.declarations, void 0, void 0, e.declarations.length > 1, s ? function(n) { this.token(",", !1, n), this.newline(); } : void 0), ZS(t)) { if (kZ(t)) { if (t.init === e) return; } else if (t.left === e) return; } this.semicolon(); } i(QZ, "VariableDeclaration"); function ZZ(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)); } i(ZZ, "VariableDeclarator"); }); // ../node_modules/@babel/generator/lib/generators/classes.js var sv = w((br) => { "use strict"; Object.defineProperty(br, "__esModule", { value: !0 }); br.ClassAccessorProperty = oee; br.ClassBody = nee; br.ClassExpression = br.ClassDeclaration = see; br.ClassMethod = uee; br.ClassPrivateMethod = cee; br.ClassPrivateProperty = lee; br.ClassProperty = aee; br.StaticBlock = fee; br._classMethodHead = pee; var eee = ue(), { isExportDefaultDeclaration: tee, isExportNamedDeclaration: ree } = eee; function see(e, t) { (!(tee(t) || ree(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); } i(see, "ClassDeclaration"); function nee(e) { if (this.tokenChar(123), e.body.length === 0) this.tokenChar(125); else { this.newline(); let t = iee(this, e); t?.(-1); let r = this.enterDelimited(); this.printJoin(e.body, !0, !0, t, !0), r(), this.endsWith(10) || this.newline(), this.rightBrace(e); } } i(nee, "ClassBody"); function iee(e, t) { if (!e.tokenMap || t.start == null || t.end == null) return null; let r = e.tokenMap.getIndexes(t); if (!r) return null; let s = 1, n = 0, a = 0, o = /* @__PURE__ */ i(() => { for (; a < t.body.length && t.body[a].start == null; ) a++; }, "advanceNextLocIndex"); return o(), (l) => { a <= l && (a = l + 1, o()); let u = a === t.body.length ? t.end : t.body[a].start, c; for (; s < r.length && e.tokenMap.matchesOriginal(c = e._tokens[r[s]], ";") && c.start < u; ) e.token(";", void 0, n++), s++; }; } i(iee, "classBodyEmptySemicolonsPrinter"); function aee(e) { if (this.printJoin(e.decorators), !e.static && !this.format.preserveFormat) { var t; let r = (t = e.key.loc) == null || (t = t.end) == null ? void 0 : t.line; r && this.catchUp(r); } this.tsPrintClassMemberModifiers(e), e.computed ? (this.tokenChar(91), this.print(e.key), this.tokenChar(93)) : (this._variance(e), this. print(e.key)), e.optional && this.tokenChar(63), e.definite && this.tokenChar(33), this.print(e.typeAnnotation), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value)), this.semicolon(); } i(aee, "ClassProperty"); function oee(e) { var t; this.printJoin(e.decorators); let r = (t = e.key.loc) == null || (t = t.end) == null ? void 0 : t.line; r && this.catchUp(r), this.tsPrintClassMemberModifiers(e), this.word("accessor", !0), this.space(), e.computed ? (this.tokenChar(91), this. print(e.key), this.tokenChar(93)) : (this._variance(e), this.print(e.key)), e.optional && this.tokenChar(63), e.definite && this.tokenChar( 33), this.print(e.typeAnnotation), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value)), this.semicolon(); } i(oee, "ClassAccessorProperty"); function lee(e) { this.printJoin(e.decorators), this.tsPrintClassMemberModifiers(e), this.print(e.key), e.optional && this.tokenChar(63), e.definite && this. tokenChar(33), this.print(e.typeAnnotation), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value)), this.semicolon(); } i(lee, "ClassPrivateProperty"); function uee(e) { this._classMethodHead(e), this.space(), this.print(e.body); } i(uee, "ClassMethod"); function cee(e) { this._classMethodHead(e), this.space(), this.print(e.body); } i(cee, "ClassPrivateMethod"); function pee(e) { if (this.printJoin(e.decorators), !this.format.preserveFormat) { var t; let r = (t = e.key.loc) == null || (t = t.end) == null ? void 0 : t.line; r && this.catchUp(r); } this.tsPrintClassMemberModifiers(e), this._methodHead(e); } i(pee, "_classMethodHead"); function fee(e) { this.word("static"), this.space(), this.tokenChar(123), e.body.length === 0 ? this.tokenChar(125) : (this.newline(), this.printSequence( e.body, !0), this.rightBrace(e)); } i(fee, "StaticBlock"); }); // ../node_modules/@babel/generator/lib/generators/methods.js var nv = w((gr) => { "use strict"; Object.defineProperty(gr, "__esModule", { value: !0 }); gr.ArrowFunctionExpression = vee; gr.FunctionDeclaration = gr.FunctionExpression = See; gr._functionHead = Eee; gr._methodHead = Tee; gr._param = gee; gr._parameters = bee; gr._params = yee; gr._predicate = xee; gr._shouldPrintArrowParamsParens = Pee; var dee = ue(), hee = $n(), { isIdentifier: mee } = dee; function yee(e, t, r) { this.print(e.typeParameters); let s = Aee.call(this, t, r); s && this.sourceIdentifierName(s.name, s.pos), this.tokenChar(40), this._parameters(e.params, ")"); let n = e.type === "ArrowFunctionExpression"; this.print(e.returnType, n), this._noLineTerminator = n; } i(yee, "_params"); function bee(e, t) { let r = this.enterDelimited(), s = this.shouldPrintTrailingComma(t), n = e.length; for (let a = 0; a < n; a++) this._param(e[a]), (s || a < n - 1) && (this.token(",", void 0, a), this.space()); this.token(t), r(); } i(bee, "_parameters"); function gee(e) { this.printJoin(e.decorators), this.print(e), e.optional && this.tokenChar(63), this.print(e.typeAnnotation); } i(gee, "_param"); function Tee(e) { let t = e.kind, r = e.key; (t === "get" || t === "set") && (this.word(t), this.space()), e.async && (this.word("async", !0), this.space()), (t === "method" || t === "init") && e.generator && this.tokenChar(42), e.computed ? (this.tokenChar(91), this.print(r), this.tokenChar(93)) : this.print(r), e.optional && this.tokenChar(63), this._params(e, e.computed && e.key.type !== "StringLiteral" ? void 0 : e.key); } i(Tee, "_methodHead"); function xee(e, t) { e.predicate && (e.returnType || this.tokenChar(58), this.space(), this.print(e.predicate, t)); } i(xee, "_predicate"); function Eee(e, t) { e.async && (this.word("async"), this.format.preserveFormat || (this._endsWithInnerRaw = !1), this.space()), this.word("function"), e.generator && (this.format.preserveFormat || (this._endsWithInnerRaw = !1), this.tokenChar(42)), this.space(), e.id && this.print(e.id), this._params( e, e.id, t), e.type !== "TSDeclareFunction" && this._predicate(e); } i(Eee, "_functionHead"); function See(e, t) { this._functionHead(e, t), this.space(), this.print(e.body); } i(See, "FunctionExpression"); function vee(e, t) { e.async && (this.word("async", !0), this.space()), this._shouldPrintArrowParamsParens(e) ? this._params(e, void 0, t) : this.print(e.params[0], !0), this._predicate(e, !0), this.space(), this.printInnerComments(), this.token("=>"), this.space(), this.tokenContext |= hee.TokenContext. arrowBody, this.print(e.body); } i(vee, "ArrowFunctionExpression"); function Pee(e) { var t, r; if (e.params.length !== 1 || e.typeParameters || e.returnType || e.predicate) return !0; let s = e.params[0]; if (!mee(s) || s.typeAnnotation || s.optional || (t = s.leadingComments) != null && t.length || (r = s.trailingComments) != null && r.length) return !0; if (this.tokenMap) { if (e.loc == null || this.tokenMap.findMatching(e, "(") !== null) return !0; let n = this.tokenMap.findMatching(e, "=>"); return n?.loc == null ? !0 : n.loc.start.line !== e.loc.start.line; } return !!this.format.retainLines; } i(Pee, "_shouldPrintArrowParamsParens"); function Aee(e, t) { let r = e; if (!r && t) { let u = t.type; u === "VariableDeclarator" ? r = t.id : u === "AssignmentExpression" || u === "AssignmentPattern" ? r = t.left : u === "ObjectProperty" || u === "ClassProperty" ? (!t.computed || t.key.type === "StringLiteral") && (r = t.key) : (u === "ClassPrivateProperty" || u === "Class\ AccessorProperty") && (r = t.key); } if (!r) return; let s; if (r.type === "Identifier") { var n, a; s = { pos: (n = r.loc) == null ? void 0 : n.start, name: ((a = r.loc) == null ? void 0 : a.identifierName) || r.name }; } else if (r.type === "PrivateName") { var o; s = { pos: (o = r.loc) == null ? void 0 : o.start, name: "#" + r.id.name }; } else if (r.type === "StringLiteral") { var l; s = { pos: (l = r.loc) == null ? void 0 : l.start, name: r.value }; } return s; } i(Aee, "_getFuncIdName"); }); // ../node_modules/@babel/generator/lib/generators/modules.js var Xh = w((Wt) => { "use strict"; Object.defineProperty(Wt, "__esModule", { value: !0 }); Wt.ExportAllDeclaration = Ree; Wt.ExportDefaultDeclaration = Uee; Wt.ExportDefaultSpecifier = Fee; Wt.ExportNamedDeclaration = qee; Wt.ExportNamespaceSpecifier = jee; Wt.ExportSpecifier = Lee; Wt.ImportAttribute = Vee; Wt.ImportDeclaration = $ee; Wt.ImportDefaultSpecifier = kee; Wt.ImportExpression = Wee; Wt.ImportNamespaceSpecifier = Kee; Wt.ImportSpecifier = Bee; Wt._printAttributes = Mee; var Cee = ue(), wee = $n(), { isClassDeclaration: Dee, isExportDefaultSpecifier: _ee, isExportNamespaceSpecifier: Iee, isImportDefaultSpecifier: Oee, isImportNamespaceSpecifier: Nee, isStatement: av } = Cee; function Bee(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)); } i(Bee, "ImportSpecifier"); function kee(e) { this.print(e.local); } i(kee, "ImportDefaultSpecifier"); function Fee(e) { this.print(e.exported); } i(Fee, "ExportDefaultSpecifier"); function Lee(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)); } i(Lee, "ExportSpecifier"); function jee(e) { this.tokenChar(42), this.space(), this.word("as"), this.space(), this.print(e.exported); } i(jee, "ExportNamespaceSpecifier"); var iv = !1; function Mee(e, t) { var r; let { importAttributesKeyword: s } = this.format, { attributes: n, assertions: a } = e; n && !s && e.extra && (e.extra.deprecatedAssertSyntax || e.extra.deprecatedWithLegacySyntax) && !iv && (iv = !0, console.warn('You are u\ sing import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose v\ alue can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { typ\ e: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n')); let o = s === "assert" || !s && a; if (this.word(o ? "assert" : "with"), this.space(), !o && (s === "with-legacy" || !s && (r = e.extra) != null && r.deprecatedWithLegacySyntax)) { this.printList(n || a); return; } let l = t ? 1 : 0; this.token("{", void 0, l), this.space(), this.printList(n || a, this.shouldPrintTrailingComma("}")), this.space(), this.token("}", void 0, l); } i(Mee, "_printAttributes"); function Ree(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(); } i(Ree, "ExportAllDeclaration"); function ov(e, t) { Dee(t.declaration) && e._shouldPrintDecoratorsBeforeExport(t) && e.printJoin(t.declaration.decorators); } i(ov, "maybePrintDecoratorsBeforeExport"); function qee(e) { if (ov(this, e), this.word("export"), this.space(), e.declaration) { let s = e.declaration; this.print(s), av(s) || this.semicolon(); } else { e.exportKind === "type" && (this.word("type"), this.space()); let s = e.specifiers.slice(0), n = !1; for (; ; ) { let o = s[0]; if (_ee(o) || Iee(o)) n = !0, this.print(s.shift()), s.length && (this.tokenChar(44), this.space()); else break; } let a = !1; if ((s.length || !s.length && !n) && (a = !0, this.tokenChar(123), s.length && (this.space(), this.printList(s, 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, a)) : this.print(e.source); } this.semicolon(); } } i(qee, "ExportNamedDeclaration"); function Uee(e) { ov(this, e), this.word("export"), this.noIndentInnerCommentsHere(), this.space(), this.word("default"), this.space(), this.tokenContext |= wee.TokenContext.exportDefault; let t = e.declaration; this.print(t), av(t) || this.semicolon(); } i(Uee, "ExportDefaultDeclaration"); function $ee(e) { var t, r; this.word("import"), this.space(); let s = e.importKind === "type" || e.importKind === "typeof"; s ? (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 n = e.specifiers.slice(0), a = !!n.length; for (; a; ) { let l = n[0]; if (Oee(l) || Nee(l)) this.print(n.shift()), n.length && (this.tokenChar(44), this.space()); else break; } let o = !1; n.length ? (o = !0, this.tokenChar(123), this.space(), this.printList(n, this.shouldPrintTrailingComma("}")), this.space(), this.tokenChar( 125)) : s && !a && (o = !0, this.tokenChar(123), this.tokenChar(125)), (a || s) && (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, o)) : this.print(e.source), this.semicolon(); } i($ee, "ImportDeclaration"); function Vee(e) { this.print(e.key), this.tokenChar(58), this.space(), this.print(e.value); } i(Vee, "ImportAttribute"); function Kee(e) { this.tokenChar(42), this.space(), this.word("as"), this.space(), this.print(e.local); } i(Kee, "ImportNamespaceSpecifier"); function Wee(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); } i(Wee, "ImportExpression"); }); // ../node_modules/jsesc/jsesc.js var pv = w((ODe, cv) => { "use strict"; var lv = {}, Yee = lv.hasOwnProperty, uv = /* @__PURE__ */ i((e, t) => { for (let r in e) Yee.call(e, r) && t(r, e[r]); }, "forOwn"), Hee = /* @__PURE__ */ i((e, t) => (t && uv(t, (r, s) => { e[r] = s; }), e), "extend"), Jee = /* @__PURE__ */ i((e, t) => { let r = e.length, s = -1; for (; ++s < r; ) t(e[s]); }, "forEach"), Ou = /* @__PURE__ */ i((e) => "\\u" + ("0000" + e).slice(-4), "fourHexEscape"), po = /* @__PURE__ */ i((e, t) => { let r = e.toString(16); return t ? r : r.toUpperCase(); }, "hexadecimal"), fo = lv.toString, Gee = Array.isArray, Xee = /* @__PURE__ */ i((e) => typeof Buffer == "function" && Buffer.isBuffer(e), "isBuffer"), zee = /* @__PURE__ */ i((e) => fo.call(e) == "[object Object]", "isObject"), Qee = /* @__PURE__ */ i((e) => typeof e == "stri\ ng" || fo.call(e) == "[object String]", "isString"), Zee = /* @__PURE__ */ i((e) => typeof e == "number" || fo.call(e) == "[object Number]", "isNumber"), zh = /* @__PURE__ */ i((e) => typeof e == "bigint", "isBigInt"), ete = /* @__PURE__ */ i((e) => typeof e == "function", "isFu\ nction"), tte = /* @__PURE__ */ i((e) => fo.call(e) == "[object Map]", "isMap"), rte = /* @__PURE__ */ i((e) => fo.call(e) == "[object Set]", "isSet"), ste = { "\\": "\\\\", "\b": "\\b", "\f": "\\f", "\n": "\\n", "\r": "\\r", " ": "\\t" // `\v` is omitted intentionally, because in IE < 9, '\v' == 'v'. // '\v': '\\x0B' }, nte = /[\\\b\f\n\r\t]/, ite = /[0-9]/, ate = /[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, ote = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g, lte = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g, en = /* @__PURE__ */ i((e, t) => { let r = /* @__PURE__ */ i(() => { c = u, ++t.indentLevel, u = t.indent.repeat(t.indentLevel); }, "increaseIndentation"), s = { 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 }, n = t && t.json; n && (s.quotes = "double", s.wrap = !0), t = Hee(s, t), t.quotes != "single" && t.quotes != "double" && t.quotes != "backtick" && (t.quotes = "single"); let a = t.quotes == "double" ? '"' : t.quotes == "backtick" ? "`" : "'", o = t.compact, l = t.lowercaseHex, u = t.indent.repeat(t.indentLevel), c = "", p = t.__inline1__, f = t.__inline2__, h = o ? "" : ` `, b, T = !0, d = t.numbers == "binary", g = t.numbers == "octal", D = t.numbers == "decimal", _ = t.numbers == "hexadecimal"; if (n && e && ete(e.toJSON) && (e = e.toJSON()), !Qee(e)) { if (tte(e)) return e.size == 0 ? "new Map()" : (o || (t.__inline1__ = !0, t.__inline2__ = !1), "new Map(" + en(Array.from(e), t) + ")"); if (rte(e)) return e.size == 0 ? "new Set()" : "new Set(" + en(Array.from(e), t) + ")"; if (Xee(e)) return e.length == 0 ? "Buffer.from([])" : "Buffer.from(" + en(Array.from(e), t) + ")"; if (Gee(e)) return b = [], t.wrap = !0, p && (t.__inline1__ = !1, t.__inline2__ = !0), f || r(), Jee(e, (k) => { T = !1, f && (t.__inline2__ = !1), b.push( (o || f ? "" : u) + en(k, t) ); }), T ? "[]" : f ? "[" + b.join(", ") + "]" : "[" + h + b.join("," + h) + h + (o ? "" : c) + "]"; if (Zee(e) || zh(e)) { if (n) return JSON.stringify(Number(e)); let k; if (D) k = String(e); else if (_) { let j = e.toString(16); l || (j = j.toUpperCase()), k = "0x" + j; } else d ? k = "0b" + e.toString(2) : g && (k = "0o" + e.toString(8)); return zh(e) ? k + "n" : k; } else return zh(e) ? n ? JSON.stringify(Number(e)) : e + "n" : zee(e) ? (b = [], t.wrap = !0, r(), uv(e, (k, j) => { T = !1, b.push( (o ? "" : u) + en(k, t) + ":" + (o ? "" : " ") + en(j, t) ); }), T ? "{}" : "{" + h + b.join("," + h) + h + (o ? "" : c) + "}") : n ? JSON.stringify(e) || "null" : String(e); } let O = t.escapeEverything ? ote : lte; return b = e.replace(O, (k, j, U, M, $, ee) => { if (j) { if (t.minimal) return j; let Q = j.charCodeAt(0), we = j.charCodeAt(1); if (t.es6) { let $e = (Q - 55296) * 1024 + we - 56320 + 65536; return "\\u{" + po($e, l) + "}"; } return Ou(po(Q, l)) + Ou(po(we, l)); } if (U) return Ou(po(U.charCodeAt(0), l)); if (k == "\0" && !n && !ite.test(ee.charAt($ + 1))) return "\\0"; if (M) return M == a || t.escapeEverything ? "\\" + M : M; if (nte.test(k)) return ste[k]; if (t.minimal && !ate.test(k)) return k; let ae = po(k.charCodeAt(0), l); return n || ae.length > 2 ? Ou(ae) : "\\x" + ("00" + ae).slice(-2); }), a == "`" && (b = b.replace(/\$\{/g, "\\${")), t.isScriptContext && (b = b.replace(/<\/(script|style)/gi, "<\\/$1").replace(/