import ESM_COMPAT_Module from "node:module"; import { fileURLToPath as ESM_COMPAT_fileURLToPath } from 'node:url'; import { dirname as ESM_COMPAT_dirname } from 'node:path'; const __filename = ESM_COMPAT_fileURLToPath(import.meta.url); const __dirname = ESM_COMPAT_dirname(__filename); const require = ESM_COMPAT_Module.createRequire(import.meta.url); var nN = Object.create; var zf = Object.defineProperty; var sN = Object.getOwnPropertyDescriptor; var iN = Object.getOwnPropertyNames; var aN = Object.getPrototypeOf, oN = Object.prototype.hasOwnProperty; var s = (e, t) => zf(e, "name", { value: t, configurable: !0 }), ie = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (t, r) => (typeof require < "u" ? require : t)[r] }) : e)(function(e) { if (typeof require < "u") return require.apply(this, arguments); throw Error('Dynamic require of "' + e + '" is not supported'); }); var T = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports); var lN = (e, t, r, n) => { if (t && typeof t == "object" || typeof t == "function") for (let i of iN(t)) !oN.call(e, i) && i !== r && zf(e, i, { get: () => t[i], enumerable: !(n = sN(t, i)) || n.enumerable }); return e; }; var Jn = (e, t, r) => (r = e != null ? nN(aN(e)) : {}, lN( // 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 ? zf(r, "default", { value: e, enumerable: !0 }) : r, e )); // ../node_modules/@babel/types/lib/utils/shallowEqual.js var fl = T((Jf) => { "use strict"; Object.defineProperty(Jf, "__esModule", { value: !0 }); Jf.default = uN; function uN(e, t) { let r = Object.keys(t); for (let n of r) if (e[n] !== t[n]) return !1; return !0; } s(uN, "shallowEqual"); }); // ../node_modules/@babel/types/lib/utils/deprecationWarning.js var Aa = T((Xf) => { "use strict"; Object.defineProperty(Xf, "__esModule", { value: !0 }); Xf.default = cN; var U1 = /* @__PURE__ */ new Set(); function cN(e, t, r = "") { if (U1.has(e)) return; U1.add(e); let { internal: n, trace: i } = fN(1, 2); n || console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\` ${i}`); } s(cN, "deprecationWarning"); function fN(e, t) { let { stackTraceLimit: r, prepareStackTrace: n } = Error, i; if (Error.stackTraceLimit = 1 + e + t, Error.prepareStackTrace = function(o, l) { i = l; }, new Error().stack, Error.stackTraceLimit = r, Error.prepareStackTrace = n, !i) return { internal: !1, trace: "" }; let a = i.slice(1 + e, 1 + e + t); return { internal: /[\\/]@babel[\\/]/.test(a[1].getFileName()), trace: a.map((o) => ` at ${o}`).join(` `) }; } s(fN, "captureShortStackTrace"); }); // ../node_modules/@babel/types/lib/validators/generated/index.js var Tt = T((x) => { "use strict"; Object.defineProperty(x, "__esModule", { value: !0 }); x.isAccessor = A4; x.isAnyTypeAnnotation = G3; x.isArgumentPlaceholder = Tk; x.isArrayExpression = pN; x.isArrayPattern = c3; x.isArrayTypeAnnotation = H3; x.isArrowFunctionExpression = f3; x.isAssignmentExpression = dN; x.isAssignmentPattern = u3; x.isAwaitExpression = k3; x.isBigIntLiteral = j3; x.isBinary = YF; x.isBinaryExpression = hN; x.isBindExpression = xk; x.isBlock = XF; x.isBlockParent = JF; x.isBlockStatement = bN; x.isBooleanLiteral = RN; x.isBooleanLiteralTypeAnnotation = z3; x.isBooleanTypeAnnotation = Y3; x.isBreakStatement = EN; x.isCallExpression = vN; x.isCatchClause = TN; x.isClass = x4; x.isClassAccessorProperty = U3; x.isClassBody = p3; x.isClassDeclaration = h3; x.isClassExpression = d3; x.isClassImplements = X3; x.isClassMethod = C3; x.isClassPrivateMethod = $3; x.isClassPrivateProperty = V3; x.isClassProperty = q3; x.isCompletionStatement = e4; x.isConditional = t4; x.isConditionalExpression = xN; x.isContinueStatement = SN; x.isDebuggerStatement = PN; x.isDecimalLiteral = Ik; x.isDeclaration = c4; x.isDeclareClass = Q3; x.isDeclareExportAllDeclaration = oB; x.isDeclareExportDeclaration = aB; x.isDeclareFunction = Z3; x.isDeclareInterface = eB; x.isDeclareModule = tB; x.isDeclareModuleExports = rB; x.isDeclareOpaqueType = sB; x.isDeclareTypeAlias = nB; x.isDeclareVariable = iB; x.isDeclaredPredicate = lB; x.isDecorator = Pk; x.isDirective = yN; x.isDirectiveLiteral = gN; x.isDoExpression = Ak; x.isDoWhileStatement = AN; x.isEmptyStatement = CN; x.isEmptyTypeAnnotation = EB; x.isEnumBody = N4; x.isEnumBooleanBody = HB; x.isEnumBooleanMember = XB; x.isEnumDeclaration = GB; x.isEnumDefaultedMember = ek; x.isEnumMember = B4; x.isEnumNumberBody = YB; x.isEnumNumberMember = QB; x.isEnumStringBody = zB; x.isEnumStringMember = ZB; x.isEnumSymbolBody = JB; x.isExistsTypeAnnotation = uB; x.isExportAllDeclaration = m3; x.isExportDeclaration = S4; x.isExportDefaultDeclaration = y3; x.isExportDefaultSpecifier = Ck; x.isExportNamedDeclaration = g3; x.isExportNamespaceSpecifier = L3; x.isExportSpecifier = b3; x.isExpression = HF; x.isExpressionStatement = wN; x.isExpressionWrapper = s4; x.isFile = DN; x.isFlow = w4; x.isFlowBaseAnnotation = I4; x.isFlowDeclaration = _4; x.isFlowPredicate = O4; x.isFlowType = D4; x.isFor = i4; x.isForInStatement = IN; x.isForOfStatement = E3; x.isForStatement = _N; x.isForXStatement = a4; x.isFunction = o4; x.isFunctionDeclaration = ON; x.isFunctionExpression = NN; x.isFunctionParent = l4; x.isFunctionTypeAnnotation = cB; x.isFunctionTypeParam = fB; x.isGenericTypeAnnotation = pB; x.isIdentifier = BN; x.isIfStatement = kN; x.isImmutable = m4; x.isImport = F3; x.isImportAttribute = Sk; x.isImportDeclaration = v3; x.isImportDefaultSpecifier = T3; x.isImportExpression = P3; x.isImportNamespaceSpecifier = x3; x.isImportOrExportDeclaration = V1; x.isImportSpecifier = S3; x.isIndexedAccessType = tk; x.isInferredPredicate = dB; x.isInterfaceDeclaration = mB; x.isInterfaceExtends = hB; x.isInterfaceTypeAnnotation = yB; x.isInterpreterDirective = mN; x.isIntersectionTypeAnnotation = gB; x.isJSX = k4; x.isJSXAttribute = nk; x.isJSXClosingElement = sk; x.isJSXClosingFragment = gk; x.isJSXElement = ik; x.isJSXEmptyExpression = ak; x.isJSXExpressionContainer = ok; x.isJSXFragment = mk; x.isJSXIdentifier = uk; x.isJSXMemberExpression = ck; x.isJSXNamespacedName = fk; x.isJSXOpeningElement = pk; x.isJSXOpeningFragment = yk; x.isJSXSpreadAttribute = dk; x.isJSXSpreadChild = lk; x.isJSXText = hk; x.isLVal = p4; x.isLabeledStatement = FN; x.isLiteral = h4; x.isLogicalExpression = UN; x.isLoop = r4; x.isMemberExpression = VN; x.isMetaProperty = A3; x.isMethod = g4; x.isMiscellaneous = F4; x.isMixedTypeAnnotation = bB; x.isModuleDeclaration = W4; x.isModuleExpression = _k; x.isModuleSpecifier = P4; x.isNewExpression = $N; x.isNoop = bk; x.isNullLiteral = MN; x.isNullLiteralTypeAnnotation = J3; x.isNullableTypeAnnotation = vB; x.isNumberLiteral = q4; x.isNumberLiteralTypeAnnotation = TB; x.isNumberTypeAnnotation = xB; x.isNumericLiteral = LN; x.isObjectExpression = KN; x.isObjectMember = b4; x.isObjectMethod = GN; x.isObjectPattern = w3; x.isObjectProperty = HN; x.isObjectTypeAnnotation = SB; x.isObjectTypeCallProperty = AB; x.isObjectTypeIndexer = CB; x.isObjectTypeInternalSlot = PB; x.isObjectTypeProperty = wB; x.isObjectTypeSpreadProperty = DB; x.isOpaqueType = IB; x.isOptionalCallExpression = R3; x.isOptionalIndexedAccessType = rk; x.isOptionalMemberExpression = M3; x.isParenthesizedExpression = XN; x.isPattern = T4; x.isPatternLike = f4; x.isPipelineBareFunction = Bk; x.isPipelinePrimaryTopicReference = kk; x.isPipelineTopicExpression = Nk; x.isPlaceholder = Ek; x.isPrivate = C4; x.isPrivateName = W3; x.isProgram = WN; x.isProperty = E4; x.isPureish = u4; x.isQualifiedTypeIdentifier = _B; x.isRecordExpression = wk; x.isRegExpLiteral = qN; x.isRegexLiteral = U4; x.isRestElement = YN; x.isRestProperty = V4; x.isReturnStatement = zN; x.isScopable = zF; x.isSequenceExpression = JN; x.isSpreadElement = D3; x.isSpreadProperty = $4; x.isStandardized = GF; x.isStatement = QF; x.isStaticBlock = K3; x.isStringLiteral = jN; x.isStringLiteralTypeAnnotation = OB; x.isStringTypeAnnotation = NB; x.isSuper = I3; x.isSwitchCase = QN; x.isSwitchStatement = ZN; x.isSymbolTypeAnnotation = BB; x.isTSAnyKeyword = Wk; x.isTSArrayType = cF; x.isTSAsExpression = IF; x.isTSBaseType = R4; x.isTSBigIntKeyword = Gk; x.isTSBooleanKeyword = Kk; x.isTSCallSignatureDeclaration = Rk; x.isTSConditionalType = gF; x.isTSConstructSignatureDeclaration = qk; x.isTSConstructorType = iF; x.isTSDeclareFunction = jk; x.isTSDeclareMethod = Lk; x.isTSEntityName = d4; x.isTSEnumDeclaration = NF; x.isTSEnumMember = BF; x.isTSExportAssignment = qF; x.isTSExpressionWithTypeArguments = PF; x.isTSExternalModuleReference = MF; x.isTSFunctionType = sF; x.isTSImportEqualsDeclaration = LF; x.isTSImportType = jF; x.isTSIndexSignature = $k; x.isTSIndexedAccessType = TF; x.isTSInferType = bF; x.isTSInstantiationExpression = DF; x.isTSInterfaceBody = CF; x.isTSInterfaceDeclaration = AF; x.isTSIntersectionType = yF; x.isTSIntrinsicKeyword = Hk; x.isTSLiteralType = SF; x.isTSMappedType = xF; x.isTSMethodSignature = Vk; x.isTSModuleBlock = FF; x.isTSModuleDeclaration = kF; x.isTSNamedTupleMember = hF; x.isTSNamespaceExportDeclaration = UF; x.isTSNeverKeyword = Yk; x.isTSNonNullExpression = RF; x.isTSNullKeyword = zk; x.isTSNumberKeyword = Jk; x.isTSObjectKeyword = Xk; x.isTSOptionalType = pF; x.isTSParameterProperty = Fk; x.isTSParenthesizedType = EF; x.isTSPropertySignature = Uk; x.isTSQualifiedName = Mk; x.isTSRestType = dF; x.isTSSatisfiesExpression = _F; x.isTSStringKeyword = Qk; x.isTSSymbolKeyword = Zk; x.isTSThisType = nF; x.isTSTupleType = fF; x.isTSType = M4; x.isTSTypeAliasDeclaration = wF; x.isTSTypeAnnotation = VF; x.isTSTypeAssertion = OF; x.isTSTypeElement = L4; x.isTSTypeLiteral = uF; x.isTSTypeOperator = vF; x.isTSTypeParameter = KF; x.isTSTypeParameterDeclaration = WF; x.isTSTypeParameterInstantiation = $F; x.isTSTypePredicate = oF; x.isTSTypeQuery = lF; x.isTSTypeReference = aF; x.isTSUndefinedKeyword = eF; x.isTSUnionType = mF; x.isTSUnknownKeyword = tF; x.isTSVoidKeyword = rF; x.isTaggedTemplateExpression = _3; x.isTemplateElement = O3; x.isTemplateLiteral = N3; x.isTerminatorless = ZF; x.isThisExpression = e3; x.isThisTypeAnnotation = kB; x.isThrowStatement = t3; x.isTopicReference = Ok; x.isTryStatement = r3; x.isTupleExpression = Dk; x.isTupleTypeAnnotation = FB; x.isTypeAlias = LB; x.isTypeAnnotation = MB; x.isTypeCastExpression = RB; x.isTypeParameter = qB; x.isTypeParameterDeclaration = UB; x.isTypeParameterInstantiation = VB; x.isTypeScript = j4; x.isTypeofTypeAnnotation = jB; x.isUnaryExpression = n3; x.isUnaryLike = v4; x.isUnionTypeAnnotation = $B; x.isUpdateExpression = s3; x.isUserWhitespacable = y4; x.isV8IntrinsicIdentifier = vk; x.isVariableDeclaration = i3; x.isVariableDeclarator = a3; x.isVariance = WB; x.isVoidTypeAnnotation = KB; x.isWhile = n4; x.isWhileStatement = o3; x.isWithStatement = l3; x.isYieldExpression = B3; var A = fl(), Ca = Aa(); function pN(e, t) { return !e || e.type !== "ArrayExpression" ? !1 : t == null || (0, A.default)(e, t); } s(pN, "isArrayExpression"); function dN(e, t) { return !e || e.type !== "AssignmentExpression" ? !1 : t == null || (0, A.default)(e, t); } s(dN, "isAssignmentExpression"); function hN(e, t) { return !e || e.type !== "BinaryExpression" ? !1 : t == null || (0, A.default)(e, t); } s(hN, "isBinaryExpression"); function mN(e, t) { return !e || e.type !== "InterpreterDirective" ? !1 : t == null || (0, A.default)(e, t); } s(mN, "isInterpreterDirective"); function yN(e, t) { return !e || e.type !== "Directive" ? !1 : t == null || (0, A.default)(e, t); } s(yN, "isDirective"); function gN(e, t) { return !e || e.type !== "DirectiveLiteral" ? !1 : t == null || (0, A.default)(e, t); } s(gN, "isDirectiveLiteral"); function bN(e, t) { return !e || e.type !== "BlockStatement" ? !1 : t == null || (0, A.default)(e, t); } s(bN, "isBlockStatement"); function EN(e, t) { return !e || e.type !== "BreakStatement" ? !1 : t == null || (0, A.default)(e, t); } s(EN, "isBreakStatement"); function vN(e, t) { return !e || e.type !== "CallExpression" ? !1 : t == null || (0, A.default)(e, t); } s(vN, "isCallExpression"); function TN(e, t) { return !e || e.type !== "CatchClause" ? !1 : t == null || (0, A.default)(e, t); } s(TN, "isCatchClause"); function xN(e, t) { return !e || e.type !== "ConditionalExpression" ? !1 : t == null || (0, A.default)(e, t); } s(xN, "isConditionalExpression"); function SN(e, t) { return !e || e.type !== "ContinueStatement" ? !1 : t == null || (0, A.default)(e, t); } s(SN, "isContinueStatement"); function PN(e, t) { return !e || e.type !== "DebuggerStatement" ? !1 : t == null || (0, A.default)(e, t); } s(PN, "isDebuggerStatement"); function AN(e, t) { return !e || e.type !== "DoWhileStatement" ? !1 : t == null || (0, A.default)(e, t); } s(AN, "isDoWhileStatement"); function CN(e, t) { return !e || e.type !== "EmptyStatement" ? !1 : t == null || (0, A.default)(e, t); } s(CN, "isEmptyStatement"); function wN(e, t) { return !e || e.type !== "ExpressionStatement" ? !1 : t == null || (0, A.default)(e, t); } s(wN, "isExpressionStatement"); function DN(e, t) { return !e || e.type !== "File" ? !1 : t == null || (0, A.default)(e, t); } s(DN, "isFile"); function IN(e, t) { return !e || e.type !== "ForInStatement" ? !1 : t == null || (0, A.default)(e, t); } s(IN, "isForInStatement"); function _N(e, t) { return !e || e.type !== "ForStatement" ? !1 : t == null || (0, A.default)(e, t); } s(_N, "isForStatement"); function ON(e, t) { return !e || e.type !== "FunctionDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(ON, "isFunctionDeclaration"); function NN(e, t) { return !e || e.type !== "FunctionExpression" ? !1 : t == null || (0, A.default)(e, t); } s(NN, "isFunctionExpression"); function BN(e, t) { return !e || e.type !== "Identifier" ? !1 : t == null || (0, A.default)(e, t); } s(BN, "isIdentifier"); function kN(e, t) { return !e || e.type !== "IfStatement" ? !1 : t == null || (0, A.default)(e, t); } s(kN, "isIfStatement"); function FN(e, t) { return !e || e.type !== "LabeledStatement" ? !1 : t == null || (0, A.default)(e, t); } s(FN, "isLabeledStatement"); function jN(e, t) { return !e || e.type !== "StringLiteral" ? !1 : t == null || (0, A.default)(e, t); } s(jN, "isStringLiteral"); function LN(e, t) { return !e || e.type !== "NumericLiteral" ? !1 : t == null || (0, A.default)(e, t); } s(LN, "isNumericLiteral"); function MN(e, t) { return !e || e.type !== "NullLiteral" ? !1 : t == null || (0, A.default)(e, t); } s(MN, "isNullLiteral"); function RN(e, t) { return !e || e.type !== "BooleanLiteral" ? !1 : t == null || (0, A.default)(e, t); } s(RN, "isBooleanLiteral"); function qN(e, t) { return !e || e.type !== "RegExpLiteral" ? !1 : t == null || (0, A.default)(e, t); } s(qN, "isRegExpLiteral"); function UN(e, t) { return !e || e.type !== "LogicalExpression" ? !1 : t == null || (0, A.default)(e, t); } s(UN, "isLogicalExpression"); function VN(e, t) { return !e || e.type !== "MemberExpression" ? !1 : t == null || (0, A.default)(e, t); } s(VN, "isMemberExpression"); function $N(e, t) { return !e || e.type !== "NewExpression" ? !1 : t == null || (0, A.default)(e, t); } s($N, "isNewExpression"); function WN(e, t) { return !e || e.type !== "Program" ? !1 : t == null || (0, A.default)(e, t); } s(WN, "isProgram"); function KN(e, t) { return !e || e.type !== "ObjectExpression" ? !1 : t == null || (0, A.default)(e, t); } s(KN, "isObjectExpression"); function GN(e, t) { return !e || e.type !== "ObjectMethod" ? !1 : t == null || (0, A.default)(e, t); } s(GN, "isObjectMethod"); function HN(e, t) { return !e || e.type !== "ObjectProperty" ? !1 : t == null || (0, A.default)(e, t); } s(HN, "isObjectProperty"); function YN(e, t) { return !e || e.type !== "RestElement" ? !1 : t == null || (0, A.default)(e, t); } s(YN, "isRestElement"); function zN(e, t) { return !e || e.type !== "ReturnStatement" ? !1 : t == null || (0, A.default)(e, t); } s(zN, "isReturnStatement"); function JN(e, t) { return !e || e.type !== "SequenceExpression" ? !1 : t == null || (0, A.default)(e, t); } s(JN, "isSequenceExpression"); function XN(e, t) { return !e || e.type !== "ParenthesizedExpression" ? !1 : t == null || (0, A.default)(e, t); } s(XN, "isParenthesizedExpression"); function QN(e, t) { return !e || e.type !== "SwitchCase" ? !1 : t == null || (0, A.default)(e, t); } s(QN, "isSwitchCase"); function ZN(e, t) { return !e || e.type !== "SwitchStatement" ? !1 : t == null || (0, A.default)(e, t); } s(ZN, "isSwitchStatement"); function e3(e, t) { return !e || e.type !== "ThisExpression" ? !1 : t == null || (0, A.default)(e, t); } s(e3, "isThisExpression"); function t3(e, t) { return !e || e.type !== "ThrowStatement" ? !1 : t == null || (0, A.default)(e, t); } s(t3, "isThrowStatement"); function r3(e, t) { return !e || e.type !== "TryStatement" ? !1 : t == null || (0, A.default)(e, t); } s(r3, "isTryStatement"); function n3(e, t) { return !e || e.type !== "UnaryExpression" ? !1 : t == null || (0, A.default)(e, t); } s(n3, "isUnaryExpression"); function s3(e, t) { return !e || e.type !== "UpdateExpression" ? !1 : t == null || (0, A.default)(e, t); } s(s3, "isUpdateExpression"); function i3(e, t) { return !e || e.type !== "VariableDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(i3, "isVariableDeclaration"); function a3(e, t) { return !e || e.type !== "VariableDeclarator" ? !1 : t == null || (0, A.default)(e, t); } s(a3, "isVariableDeclarator"); function o3(e, t) { return !e || e.type !== "WhileStatement" ? !1 : t == null || (0, A.default)(e, t); } s(o3, "isWhileStatement"); function l3(e, t) { return !e || e.type !== "WithStatement" ? !1 : t == null || (0, A.default)(e, t); } s(l3, "isWithStatement"); function u3(e, t) { return !e || e.type !== "AssignmentPattern" ? !1 : t == null || (0, A.default)(e, t); } s(u3, "isAssignmentPattern"); function c3(e, t) { return !e || e.type !== "ArrayPattern" ? !1 : t == null || (0, A.default)(e, t); } s(c3, "isArrayPattern"); function f3(e, t) { return !e || e.type !== "ArrowFunctionExpression" ? !1 : t == null || (0, A.default)(e, t); } s(f3, "isArrowFunctionExpression"); function p3(e, t) { return !e || e.type !== "ClassBody" ? !1 : t == null || (0, A.default)(e, t); } s(p3, "isClassBody"); function d3(e, t) { return !e || e.type !== "ClassExpression" ? !1 : t == null || (0, A.default)(e, t); } s(d3, "isClassExpression"); function h3(e, t) { return !e || e.type !== "ClassDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(h3, "isClassDeclaration"); function m3(e, t) { return !e || e.type !== "ExportAllDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(m3, "isExportAllDeclaration"); function y3(e, t) { return !e || e.type !== "ExportDefaultDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(y3, "isExportDefaultDeclaration"); function g3(e, t) { return !e || e.type !== "ExportNamedDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(g3, "isExportNamedDeclaration"); function b3(e, t) { return !e || e.type !== "ExportSpecifier" ? !1 : t == null || (0, A.default)(e, t); } s(b3, "isExportSpecifier"); function E3(e, t) { return !e || e.type !== "ForOfStatement" ? !1 : t == null || (0, A.default)(e, t); } s(E3, "isForOfStatement"); function v3(e, t) { return !e || e.type !== "ImportDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(v3, "isImportDeclaration"); function T3(e, t) { return !e || e.type !== "ImportDefaultSpecifier" ? !1 : t == null || (0, A.default)(e, t); } s(T3, "isImportDefaultSpecifier"); function x3(e, t) { return !e || e.type !== "ImportNamespaceSpecifier" ? !1 : t == null || (0, A.default)(e, t); } s(x3, "isImportNamespaceSpecifier"); function S3(e, t) { return !e || e.type !== "ImportSpecifier" ? !1 : t == null || (0, A.default)(e, t); } s(S3, "isImportSpecifier"); function P3(e, t) { return !e || e.type !== "ImportExpression" ? !1 : t == null || (0, A.default)(e, t); } s(P3, "isImportExpression"); function A3(e, t) { return !e || e.type !== "MetaProperty" ? !1 : t == null || (0, A.default)(e, t); } s(A3, "isMetaProperty"); function C3(e, t) { return !e || e.type !== "ClassMethod" ? !1 : t == null || (0, A.default)(e, t); } s(C3, "isClassMethod"); function w3(e, t) { return !e || e.type !== "ObjectPattern" ? !1 : t == null || (0, A.default)(e, t); } s(w3, "isObjectPattern"); function D3(e, t) { return !e || e.type !== "SpreadElement" ? !1 : t == null || (0, A.default)(e, t); } s(D3, "isSpreadElement"); function I3(e, t) { return !e || e.type !== "Super" ? !1 : t == null || (0, A.default)(e, t); } s(I3, "isSuper"); function _3(e, t) { return !e || e.type !== "TaggedTemplateExpression" ? !1 : t == null || (0, A.default)(e, t); } s(_3, "isTaggedTemplateExpression"); function O3(e, t) { return !e || e.type !== "TemplateElement" ? !1 : t == null || (0, A.default)(e, t); } s(O3, "isTemplateElement"); function N3(e, t) { return !e || e.type !== "TemplateLiteral" ? !1 : t == null || (0, A.default)(e, t); } s(N3, "isTemplateLiteral"); function B3(e, t) { return !e || e.type !== "YieldExpression" ? !1 : t == null || (0, A.default)(e, t); } s(B3, "isYieldExpression"); function k3(e, t) { return !e || e.type !== "AwaitExpression" ? !1 : t == null || (0, A.default)(e, t); } s(k3, "isAwaitExpression"); function F3(e, t) { return !e || e.type !== "Import" ? !1 : t == null || (0, A.default)(e, t); } s(F3, "isImport"); function j3(e, t) { return !e || e.type !== "BigIntLiteral" ? !1 : t == null || (0, A.default)(e, t); } s(j3, "isBigIntLiteral"); function L3(e, t) { return !e || e.type !== "ExportNamespaceSpecifier" ? !1 : t == null || (0, A.default)(e, t); } s(L3, "isExportNamespaceSpecifier"); function M3(e, t) { return !e || e.type !== "OptionalMemberExpression" ? !1 : t == null || (0, A.default)(e, t); } s(M3, "isOptionalMemberExpression"); function R3(e, t) { return !e || e.type !== "OptionalCallExpression" ? !1 : t == null || (0, A.default)(e, t); } s(R3, "isOptionalCallExpression"); function q3(e, t) { return !e || e.type !== "ClassProperty" ? !1 : t == null || (0, A.default)(e, t); } s(q3, "isClassProperty"); function U3(e, t) { return !e || e.type !== "ClassAccessorProperty" ? !1 : t == null || (0, A.default)(e, t); } s(U3, "isClassAccessorProperty"); function V3(e, t) { return !e || e.type !== "ClassPrivateProperty" ? !1 : t == null || (0, A.default)(e, t); } s(V3, "isClassPrivateProperty"); function $3(e, t) { return !e || e.type !== "ClassPrivateMethod" ? !1 : t == null || (0, A.default)(e, t); } s($3, "isClassPrivateMethod"); function W3(e, t) { return !e || e.type !== "PrivateName" ? !1 : t == null || (0, A.default)(e, t); } s(W3, "isPrivateName"); function K3(e, t) { return !e || e.type !== "StaticBlock" ? !1 : t == null || (0, A.default)(e, t); } s(K3, "isStaticBlock"); function G3(e, t) { return !e || e.type !== "AnyTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(G3, "isAnyTypeAnnotation"); function H3(e, t) { return !e || e.type !== "ArrayTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(H3, "isArrayTypeAnnotation"); function Y3(e, t) { return !e || e.type !== "BooleanTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(Y3, "isBooleanTypeAnnotation"); function z3(e, t) { return !e || e.type !== "BooleanLiteralTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(z3, "isBooleanLiteralTypeAnnotation"); function J3(e, t) { return !e || e.type !== "NullLiteralTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(J3, "isNullLiteralTypeAnnotation"); function X3(e, t) { return !e || e.type !== "ClassImplements" ? !1 : t == null || (0, A.default)(e, t); } s(X3, "isClassImplements"); function Q3(e, t) { return !e || e.type !== "DeclareClass" ? !1 : t == null || (0, A.default)(e, t); } s(Q3, "isDeclareClass"); function Z3(e, t) { return !e || e.type !== "DeclareFunction" ? !1 : t == null || (0, A.default)(e, t); } s(Z3, "isDeclareFunction"); function eB(e, t) { return !e || e.type !== "DeclareInterface" ? !1 : t == null || (0, A.default)(e, t); } s(eB, "isDeclareInterface"); function tB(e, t) { return !e || e.type !== "DeclareModule" ? !1 : t == null || (0, A.default)(e, t); } s(tB, "isDeclareModule"); function rB(e, t) { return !e || e.type !== "DeclareModuleExports" ? !1 : t == null || (0, A.default)(e, t); } s(rB, "isDeclareModuleExports"); function nB(e, t) { return !e || e.type !== "DeclareTypeAlias" ? !1 : t == null || (0, A.default)(e, t); } s(nB, "isDeclareTypeAlias"); function sB(e, t) { return !e || e.type !== "DeclareOpaqueType" ? !1 : t == null || (0, A.default)(e, t); } s(sB, "isDeclareOpaqueType"); function iB(e, t) { return !e || e.type !== "DeclareVariable" ? !1 : t == null || (0, A.default)(e, t); } s(iB, "isDeclareVariable"); function aB(e, t) { return !e || e.type !== "DeclareExportDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(aB, "isDeclareExportDeclaration"); function oB(e, t) { return !e || e.type !== "DeclareExportAllDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(oB, "isDeclareExportAllDeclaration"); function lB(e, t) { return !e || e.type !== "DeclaredPredicate" ? !1 : t == null || (0, A.default)(e, t); } s(lB, "isDeclaredPredicate"); function uB(e, t) { return !e || e.type !== "ExistsTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(uB, "isExistsTypeAnnotation"); function cB(e, t) { return !e || e.type !== "FunctionTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(cB, "isFunctionTypeAnnotation"); function fB(e, t) { return !e || e.type !== "FunctionTypeParam" ? !1 : t == null || (0, A.default)(e, t); } s(fB, "isFunctionTypeParam"); function pB(e, t) { return !e || e.type !== "GenericTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(pB, "isGenericTypeAnnotation"); function dB(e, t) { return !e || e.type !== "InferredPredicate" ? !1 : t == null || (0, A.default)(e, t); } s(dB, "isInferredPredicate"); function hB(e, t) { return !e || e.type !== "InterfaceExtends" ? !1 : t == null || (0, A.default)(e, t); } s(hB, "isInterfaceExtends"); function mB(e, t) { return !e || e.type !== "InterfaceDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(mB, "isInterfaceDeclaration"); function yB(e, t) { return !e || e.type !== "InterfaceTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(yB, "isInterfaceTypeAnnotation"); function gB(e, t) { return !e || e.type !== "IntersectionTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(gB, "isIntersectionTypeAnnotation"); function bB(e, t) { return !e || e.type !== "MixedTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(bB, "isMixedTypeAnnotation"); function EB(e, t) { return !e || e.type !== "EmptyTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(EB, "isEmptyTypeAnnotation"); function vB(e, t) { return !e || e.type !== "NullableTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(vB, "isNullableTypeAnnotation"); function TB(e, t) { return !e || e.type !== "NumberLiteralTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(TB, "isNumberLiteralTypeAnnotation"); function xB(e, t) { return !e || e.type !== "NumberTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(xB, "isNumberTypeAnnotation"); function SB(e, t) { return !e || e.type !== "ObjectTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(SB, "isObjectTypeAnnotation"); function PB(e, t) { return !e || e.type !== "ObjectTypeInternalSlot" ? !1 : t == null || (0, A.default)(e, t); } s(PB, "isObjectTypeInternalSlot"); function AB(e, t) { return !e || e.type !== "ObjectTypeCallProperty" ? !1 : t == null || (0, A.default)(e, t); } s(AB, "isObjectTypeCallProperty"); function CB(e, t) { return !e || e.type !== "ObjectTypeIndexer" ? !1 : t == null || (0, A.default)(e, t); } s(CB, "isObjectTypeIndexer"); function wB(e, t) { return !e || e.type !== "ObjectTypeProperty" ? !1 : t == null || (0, A.default)(e, t); } s(wB, "isObjectTypeProperty"); function DB(e, t) { return !e || e.type !== "ObjectTypeSpreadProperty" ? !1 : t == null || (0, A.default)(e, t); } s(DB, "isObjectTypeSpreadProperty"); function IB(e, t) { return !e || e.type !== "OpaqueType" ? !1 : t == null || (0, A.default)(e, t); } s(IB, "isOpaqueType"); function _B(e, t) { return !e || e.type !== "QualifiedTypeIdentifier" ? !1 : t == null || (0, A.default)(e, t); } s(_B, "isQualifiedTypeIdentifier"); function OB(e, t) { return !e || e.type !== "StringLiteralTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(OB, "isStringLiteralTypeAnnotation"); function NB(e, t) { return !e || e.type !== "StringTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(NB, "isStringTypeAnnotation"); function BB(e, t) { return !e || e.type !== "SymbolTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(BB, "isSymbolTypeAnnotation"); function kB(e, t) { return !e || e.type !== "ThisTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(kB, "isThisTypeAnnotation"); function FB(e, t) { return !e || e.type !== "TupleTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(FB, "isTupleTypeAnnotation"); function jB(e, t) { return !e || e.type !== "TypeofTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(jB, "isTypeofTypeAnnotation"); function LB(e, t) { return !e || e.type !== "TypeAlias" ? !1 : t == null || (0, A.default)(e, t); } s(LB, "isTypeAlias"); function MB(e, t) { return !e || e.type !== "TypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(MB, "isTypeAnnotation"); function RB(e, t) { return !e || e.type !== "TypeCastExpression" ? !1 : t == null || (0, A.default)(e, t); } s(RB, "isTypeCastExpression"); function qB(e, t) { return !e || e.type !== "TypeParameter" ? !1 : t == null || (0, A.default)(e, t); } s(qB, "isTypeParameter"); function UB(e, t) { return !e || e.type !== "TypeParameterDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(UB, "isTypeParameterDeclaration"); function VB(e, t) { return !e || e.type !== "TypeParameterInstantiation" ? !1 : t == null || (0, A.default)(e, t); } s(VB, "isTypeParameterInstantiation"); function $B(e, t) { return !e || e.type !== "UnionTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s($B, "isUnionTypeAnnotation"); function WB(e, t) { return !e || e.type !== "Variance" ? !1 : t == null || (0, A.default)(e, t); } s(WB, "isVariance"); function KB(e, t) { return !e || e.type !== "VoidTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(KB, "isVoidTypeAnnotation"); function GB(e, t) { return !e || e.type !== "EnumDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(GB, "isEnumDeclaration"); function HB(e, t) { return !e || e.type !== "EnumBooleanBody" ? !1 : t == null || (0, A.default)(e, t); } s(HB, "isEnumBooleanBody"); function YB(e, t) { return !e || e.type !== "EnumNumberBody" ? !1 : t == null || (0, A.default)(e, t); } s(YB, "isEnumNumberBody"); function zB(e, t) { return !e || e.type !== "EnumStringBody" ? !1 : t == null || (0, A.default)(e, t); } s(zB, "isEnumStringBody"); function JB(e, t) { return !e || e.type !== "EnumSymbolBody" ? !1 : t == null || (0, A.default)(e, t); } s(JB, "isEnumSymbolBody"); function XB(e, t) { return !e || e.type !== "EnumBooleanMember" ? !1 : t == null || (0, A.default)(e, t); } s(XB, "isEnumBooleanMember"); function QB(e, t) { return !e || e.type !== "EnumNumberMember" ? !1 : t == null || (0, A.default)(e, t); } s(QB, "isEnumNumberMember"); function ZB(e, t) { return !e || e.type !== "EnumStringMember" ? !1 : t == null || (0, A.default)(e, t); } s(ZB, "isEnumStringMember"); function ek(e, t) { return !e || e.type !== "EnumDefaultedMember" ? !1 : t == null || (0, A.default)(e, t); } s(ek, "isEnumDefaultedMember"); function tk(e, t) { return !e || e.type !== "IndexedAccessType" ? !1 : t == null || (0, A.default)(e, t); } s(tk, "isIndexedAccessType"); function rk(e, t) { return !e || e.type !== "OptionalIndexedAccessType" ? !1 : t == null || (0, A.default)(e, t); } s(rk, "isOptionalIndexedAccessType"); function nk(e, t) { return !e || e.type !== "JSXAttribute" ? !1 : t == null || (0, A.default)(e, t); } s(nk, "isJSXAttribute"); function sk(e, t) { return !e || e.type !== "JSXClosingElement" ? !1 : t == null || (0, A.default)(e, t); } s(sk, "isJSXClosingElement"); function ik(e, t) { return !e || e.type !== "JSXElement" ? !1 : t == null || (0, A.default)(e, t); } s(ik, "isJSXElement"); function ak(e, t) { return !e || e.type !== "JSXEmptyExpression" ? !1 : t == null || (0, A.default)(e, t); } s(ak, "isJSXEmptyExpression"); function ok(e, t) { return !e || e.type !== "JSXExpressionContainer" ? !1 : t == null || (0, A.default)(e, t); } s(ok, "isJSXExpressionContainer"); function lk(e, t) { return !e || e.type !== "JSXSpreadChild" ? !1 : t == null || (0, A.default)(e, t); } s(lk, "isJSXSpreadChild"); function uk(e, t) { return !e || e.type !== "JSXIdentifier" ? !1 : t == null || (0, A.default)(e, t); } s(uk, "isJSXIdentifier"); function ck(e, t) { return !e || e.type !== "JSXMemberExpression" ? !1 : t == null || (0, A.default)(e, t); } s(ck, "isJSXMemberExpression"); function fk(e, t) { return !e || e.type !== "JSXNamespacedName" ? !1 : t == null || (0, A.default)(e, t); } s(fk, "isJSXNamespacedName"); function pk(e, t) { return !e || e.type !== "JSXOpeningElement" ? !1 : t == null || (0, A.default)(e, t); } s(pk, "isJSXOpeningElement"); function dk(e, t) { return !e || e.type !== "JSXSpreadAttribute" ? !1 : t == null || (0, A.default)(e, t); } s(dk, "isJSXSpreadAttribute"); function hk(e, t) { return !e || e.type !== "JSXText" ? !1 : t == null || (0, A.default)(e, t); } s(hk, "isJSXText"); function mk(e, t) { return !e || e.type !== "JSXFragment" ? !1 : t == null || (0, A.default)(e, t); } s(mk, "isJSXFragment"); function yk(e, t) { return !e || e.type !== "JSXOpeningFragment" ? !1 : t == null || (0, A.default)(e, t); } s(yk, "isJSXOpeningFragment"); function gk(e, t) { return !e || e.type !== "JSXClosingFragment" ? !1 : t == null || (0, A.default)(e, t); } s(gk, "isJSXClosingFragment"); function bk(e, t) { return !e || e.type !== "Noop" ? !1 : t == null || (0, A.default)(e, t); } s(bk, "isNoop"); function Ek(e, t) { return !e || e.type !== "Placeholder" ? !1 : t == null || (0, A.default)(e, t); } s(Ek, "isPlaceholder"); function vk(e, t) { return !e || e.type !== "V8IntrinsicIdentifier" ? !1 : t == null || (0, A.default)(e, t); } s(vk, "isV8IntrinsicIdentifier"); function Tk(e, t) { return !e || e.type !== "ArgumentPlaceholder" ? !1 : t == null || (0, A.default)(e, t); } s(Tk, "isArgumentPlaceholder"); function xk(e, t) { return !e || e.type !== "BindExpression" ? !1 : t == null || (0, A.default)(e, t); } s(xk, "isBindExpression"); function Sk(e, t) { return !e || e.type !== "ImportAttribute" ? !1 : t == null || (0, A.default)(e, t); } s(Sk, "isImportAttribute"); function Pk(e, t) { return !e || e.type !== "Decorator" ? !1 : t == null || (0, A.default)(e, t); } s(Pk, "isDecorator"); function Ak(e, t) { return !e || e.type !== "DoExpression" ? !1 : t == null || (0, A.default)(e, t); } s(Ak, "isDoExpression"); function Ck(e, t) { return !e || e.type !== "ExportDefaultSpecifier" ? !1 : t == null || (0, A.default)(e, t); } s(Ck, "isExportDefaultSpecifier"); function wk(e, t) { return !e || e.type !== "RecordExpression" ? !1 : t == null || (0, A.default)(e, t); } s(wk, "isRecordExpression"); function Dk(e, t) { return !e || e.type !== "TupleExpression" ? !1 : t == null || (0, A.default)(e, t); } s(Dk, "isTupleExpression"); function Ik(e, t) { return !e || e.type !== "DecimalLiteral" ? !1 : t == null || (0, A.default)(e, t); } s(Ik, "isDecimalLiteral"); function _k(e, t) { return !e || e.type !== "ModuleExpression" ? !1 : t == null || (0, A.default)(e, t); } s(_k, "isModuleExpression"); function Ok(e, t) { return !e || e.type !== "TopicReference" ? !1 : t == null || (0, A.default)(e, t); } s(Ok, "isTopicReference"); function Nk(e, t) { return !e || e.type !== "PipelineTopicExpression" ? !1 : t == null || (0, A.default)(e, t); } s(Nk, "isPipelineTopicExpression"); function Bk(e, t) { return !e || e.type !== "PipelineBareFunction" ? !1 : t == null || (0, A.default)(e, t); } s(Bk, "isPipelineBareFunction"); function kk(e, t) { return !e || e.type !== "PipelinePrimaryTopicReference" ? !1 : t == null || (0, A.default)(e, t); } s(kk, "isPipelinePrimaryTopicReference"); function Fk(e, t) { return !e || e.type !== "TSParameterProperty" ? !1 : t == null || (0, A.default)(e, t); } s(Fk, "isTSParameterProperty"); function jk(e, t) { return !e || e.type !== "TSDeclareFunction" ? !1 : t == null || (0, A.default)(e, t); } s(jk, "isTSDeclareFunction"); function Lk(e, t) { return !e || e.type !== "TSDeclareMethod" ? !1 : t == null || (0, A.default)(e, t); } s(Lk, "isTSDeclareMethod"); function Mk(e, t) { return !e || e.type !== "TSQualifiedName" ? !1 : t == null || (0, A.default)(e, t); } s(Mk, "isTSQualifiedName"); function Rk(e, t) { return !e || e.type !== "TSCallSignatureDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(Rk, "isTSCallSignatureDeclaration"); function qk(e, t) { return !e || e.type !== "TSConstructSignatureDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(qk, "isTSConstructSignatureDeclaration"); function Uk(e, t) { return !e || e.type !== "TSPropertySignature" ? !1 : t == null || (0, A.default)(e, t); } s(Uk, "isTSPropertySignature"); function Vk(e, t) { return !e || e.type !== "TSMethodSignature" ? !1 : t == null || (0, A.default)(e, t); } s(Vk, "isTSMethodSignature"); function $k(e, t) { return !e || e.type !== "TSIndexSignature" ? !1 : t == null || (0, A.default)(e, t); } s($k, "isTSIndexSignature"); function Wk(e, t) { return !e || e.type !== "TSAnyKeyword" ? !1 : t == null || (0, A.default)(e, t); } s(Wk, "isTSAnyKeyword"); function Kk(e, t) { return !e || e.type !== "TSBooleanKeyword" ? !1 : t == null || (0, A.default)(e, t); } s(Kk, "isTSBooleanKeyword"); function Gk(e, t) { return !e || e.type !== "TSBigIntKeyword" ? !1 : t == null || (0, A.default)(e, t); } s(Gk, "isTSBigIntKeyword"); function Hk(e, t) { return !e || e.type !== "TSIntrinsicKeyword" ? !1 : t == null || (0, A.default)(e, t); } s(Hk, "isTSIntrinsicKeyword"); function Yk(e, t) { return !e || e.type !== "TSNeverKeyword" ? !1 : t == null || (0, A.default)(e, t); } s(Yk, "isTSNeverKeyword"); function zk(e, t) { return !e || e.type !== "TSNullKeyword" ? !1 : t == null || (0, A.default)(e, t); } s(zk, "isTSNullKeyword"); function Jk(e, t) { return !e || e.type !== "TSNumberKeyword" ? !1 : t == null || (0, A.default)(e, t); } s(Jk, "isTSNumberKeyword"); function Xk(e, t) { return !e || e.type !== "TSObjectKeyword" ? !1 : t == null || (0, A.default)(e, t); } s(Xk, "isTSObjectKeyword"); function Qk(e, t) { return !e || e.type !== "TSStringKeyword" ? !1 : t == null || (0, A.default)(e, t); } s(Qk, "isTSStringKeyword"); function Zk(e, t) { return !e || e.type !== "TSSymbolKeyword" ? !1 : t == null || (0, A.default)(e, t); } s(Zk, "isTSSymbolKeyword"); function eF(e, t) { return !e || e.type !== "TSUndefinedKeyword" ? !1 : t == null || (0, A.default)(e, t); } s(eF, "isTSUndefinedKeyword"); function tF(e, t) { return !e || e.type !== "TSUnknownKeyword" ? !1 : t == null || (0, A.default)(e, t); } s(tF, "isTSUnknownKeyword"); function rF(e, t) { return !e || e.type !== "TSVoidKeyword" ? !1 : t == null || (0, A.default)(e, t); } s(rF, "isTSVoidKeyword"); function nF(e, t) { return !e || e.type !== "TSThisType" ? !1 : t == null || (0, A.default)(e, t); } s(nF, "isTSThisType"); function sF(e, t) { return !e || e.type !== "TSFunctionType" ? !1 : t == null || (0, A.default)(e, t); } s(sF, "isTSFunctionType"); function iF(e, t) { return !e || e.type !== "TSConstructorType" ? !1 : t == null || (0, A.default)(e, t); } s(iF, "isTSConstructorType"); function aF(e, t) { return !e || e.type !== "TSTypeReference" ? !1 : t == null || (0, A.default)(e, t); } s(aF, "isTSTypeReference"); function oF(e, t) { return !e || e.type !== "TSTypePredicate" ? !1 : t == null || (0, A.default)(e, t); } s(oF, "isTSTypePredicate"); function lF(e, t) { return !e || e.type !== "TSTypeQuery" ? !1 : t == null || (0, A.default)(e, t); } s(lF, "isTSTypeQuery"); function uF(e, t) { return !e || e.type !== "TSTypeLiteral" ? !1 : t == null || (0, A.default)(e, t); } s(uF, "isTSTypeLiteral"); function cF(e, t) { return !e || e.type !== "TSArrayType" ? !1 : t == null || (0, A.default)(e, t); } s(cF, "isTSArrayType"); function fF(e, t) { return !e || e.type !== "TSTupleType" ? !1 : t == null || (0, A.default)(e, t); } s(fF, "isTSTupleType"); function pF(e, t) { return !e || e.type !== "TSOptionalType" ? !1 : t == null || (0, A.default)(e, t); } s(pF, "isTSOptionalType"); function dF(e, t) { return !e || e.type !== "TSRestType" ? !1 : t == null || (0, A.default)(e, t); } s(dF, "isTSRestType"); function hF(e, t) { return !e || e.type !== "TSNamedTupleMember" ? !1 : t == null || (0, A.default)(e, t); } s(hF, "isTSNamedTupleMember"); function mF(e, t) { return !e || e.type !== "TSUnionType" ? !1 : t == null || (0, A.default)(e, t); } s(mF, "isTSUnionType"); function yF(e, t) { return !e || e.type !== "TSIntersectionType" ? !1 : t == null || (0, A.default)(e, t); } s(yF, "isTSIntersectionType"); function gF(e, t) { return !e || e.type !== "TSConditionalType" ? !1 : t == null || (0, A.default)(e, t); } s(gF, "isTSConditionalType"); function bF(e, t) { return !e || e.type !== "TSInferType" ? !1 : t == null || (0, A.default)(e, t); } s(bF, "isTSInferType"); function EF(e, t) { return !e || e.type !== "TSParenthesizedType" ? !1 : t == null || (0, A.default)(e, t); } s(EF, "isTSParenthesizedType"); function vF(e, t) { return !e || e.type !== "TSTypeOperator" ? !1 : t == null || (0, A.default)(e, t); } s(vF, "isTSTypeOperator"); function TF(e, t) { return !e || e.type !== "TSIndexedAccessType" ? !1 : t == null || (0, A.default)(e, t); } s(TF, "isTSIndexedAccessType"); function xF(e, t) { return !e || e.type !== "TSMappedType" ? !1 : t == null || (0, A.default)(e, t); } s(xF, "isTSMappedType"); function SF(e, t) { return !e || e.type !== "TSLiteralType" ? !1 : t == null || (0, A.default)(e, t); } s(SF, "isTSLiteralType"); function PF(e, t) { return !e || e.type !== "TSExpressionWithTypeArguments" ? !1 : t == null || (0, A.default)(e, t); } s(PF, "isTSExpressionWithTypeArguments"); function AF(e, t) { return !e || e.type !== "TSInterfaceDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(AF, "isTSInterfaceDeclaration"); function CF(e, t) { return !e || e.type !== "TSInterfaceBody" ? !1 : t == null || (0, A.default)(e, t); } s(CF, "isTSInterfaceBody"); function wF(e, t) { return !e || e.type !== "TSTypeAliasDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(wF, "isTSTypeAliasDeclaration"); function DF(e, t) { return !e || e.type !== "TSInstantiationExpression" ? !1 : t == null || (0, A.default)(e, t); } s(DF, "isTSInstantiationExpression"); function IF(e, t) { return !e || e.type !== "TSAsExpression" ? !1 : t == null || (0, A.default)(e, t); } s(IF, "isTSAsExpression"); function _F(e, t) { return !e || e.type !== "TSSatisfiesExpression" ? !1 : t == null || (0, A.default)(e, t); } s(_F, "isTSSatisfiesExpression"); function OF(e, t) { return !e || e.type !== "TSTypeAssertion" ? !1 : t == null || (0, A.default)(e, t); } s(OF, "isTSTypeAssertion"); function NF(e, t) { return !e || e.type !== "TSEnumDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(NF, "isTSEnumDeclaration"); function BF(e, t) { return !e || e.type !== "TSEnumMember" ? !1 : t == null || (0, A.default)(e, t); } s(BF, "isTSEnumMember"); function kF(e, t) { return !e || e.type !== "TSModuleDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(kF, "isTSModuleDeclaration"); function FF(e, t) { return !e || e.type !== "TSModuleBlock" ? !1 : t == null || (0, A.default)(e, t); } s(FF, "isTSModuleBlock"); function jF(e, t) { return !e || e.type !== "TSImportType" ? !1 : t == null || (0, A.default)(e, t); } s(jF, "isTSImportType"); function LF(e, t) { return !e || e.type !== "TSImportEqualsDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(LF, "isTSImportEqualsDeclaration"); function MF(e, t) { return !e || e.type !== "TSExternalModuleReference" ? !1 : t == null || (0, A.default)(e, t); } s(MF, "isTSExternalModuleReference"); function RF(e, t) { return !e || e.type !== "TSNonNullExpression" ? !1 : t == null || (0, A.default)(e, t); } s(RF, "isTSNonNullExpression"); function qF(e, t) { return !e || e.type !== "TSExportAssignment" ? !1 : t == null || (0, A.default)(e, t); } s(qF, "isTSExportAssignment"); function UF(e, t) { return !e || e.type !== "TSNamespaceExportDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(UF, "isTSNamespaceExportDeclaration"); function VF(e, t) { return !e || e.type !== "TSTypeAnnotation" ? !1 : t == null || (0, A.default)(e, t); } s(VF, "isTSTypeAnnotation"); function $F(e, t) { return !e || e.type !== "TSTypeParameterInstantiation" ? !1 : t == null || (0, A.default)(e, t); } s($F, "isTSTypeParameterInstantiation"); function WF(e, t) { return !e || e.type !== "TSTypeParameterDeclaration" ? !1 : t == null || (0, A.default)(e, t); } s(WF, "isTSTypeParameterDeclaration"); function KF(e, t) { return !e || e.type !== "TSTypeParameter" ? !1 : t == null || (0, A.default)(e, t); } s(KF, "isTSTypeParameter"); function GF(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": break; case "Placeholder": switch (e.expectedNode) { case "Identifier": case "StringLiteral": case "BlockStatement": case "ClassBody": break; default: return !1; } break; default: return !1; } return t == null || (0, A.default)(e, t); } s(GF, "isStandardized"); function HF(e, t) { if (!e) return !1; switch (e.type) { case "ArrayExpression": case "AssignmentExpression": case "BinaryExpression": case "CallExpression": case "ConditionalExpression": case "FunctionExpression": case "Identifier": case "StringLiteral": case "NumericLiteral": case "NullLiteral": case "BooleanLiteral": case "RegExpLiteral": case "LogicalExpression": case "MemberExpression": case "NewExpression": case "ObjectExpression": case "SequenceExpression": case "ParenthesizedExpression": case "ThisExpression": case "UnaryExpression": case "UpdateExpression": case "ArrowFunctionExpression": case "ClassExpression": case "ImportExpression": case "MetaProperty": case "Super": case "TaggedTemplateExpression": case "TemplateLiteral": case "YieldExpression": case "AwaitExpression": case "Import": case "BigIntLiteral": case "OptionalMemberExpression": case "OptionalCallExpression": case "TypeCastExpression": case "JSXElement": case "JSXFragment": case "BindExpression": case "DoExpression": case "RecordExpression": case "TupleExpression": case "DecimalLiteral": case "ModuleExpression": case "TopicReference": case "PipelineTopicExpression": case "PipelineBareFunction": case "PipelinePrimaryTopicReference": case "TSInstantiationExpression": case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSNonNullExpression": break; case "Placeholder": switch (e.expectedNode) { case "Expression": case "Identifier": case "StringLiteral": break; default: return !1; } break; default: return !1; } return t == null || (0, A.default)(e, t); } s(HF, "isExpression"); function YF(e, t) { if (!e) return !1; switch (e.type) { case "BinaryExpression": case "LogicalExpression": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(YF, "isBinary"); function zF(e, t) { if (!e) return !1; switch (e.type) { case "BlockStatement": case "CatchClause": case "DoWhileStatement": case "ForInStatement": case "ForStatement": case "FunctionDeclaration": case "FunctionExpression": case "Program": case "ObjectMethod": case "SwitchStatement": case "WhileStatement": case "ArrowFunctionExpression": case "ClassExpression": case "ClassDeclaration": case "ForOfStatement": case "ClassMethod": case "ClassPrivateMethod": case "StaticBlock": case "TSModuleBlock": break; case "Placeholder": if (e.expectedNode === "BlockStatement") break; default: return !1; } return t == null || (0, A.default)(e, t); } s(zF, "isScopable"); function JF(e, t) { if (!e) return !1; switch (e.type) { case "BlockStatement": case "CatchClause": case "DoWhileStatement": case "ForInStatement": case "ForStatement": case "FunctionDeclaration": case "FunctionExpression": case "Program": case "ObjectMethod": case "SwitchStatement": case "WhileStatement": case "ArrowFunctionExpression": case "ForOfStatement": case "ClassMethod": case "ClassPrivateMethod": case "StaticBlock": case "TSModuleBlock": break; case "Placeholder": if (e.expectedNode === "BlockStatement") break; default: return !1; } return t == null || (0, A.default)(e, t); } s(JF, "isBlockParent"); function XF(e, t) { if (!e) return !1; switch (e.type) { case "BlockStatement": case "Program": case "TSModuleBlock": break; case "Placeholder": if (e.expectedNode === "BlockStatement") break; default: return !1; } return t == null || (0, A.default)(e, t); } s(XF, "isBlock"); function QF(e, t) { if (!e) return !1; switch (e.type) { case "BlockStatement": case "BreakStatement": case "ContinueStatement": case "DebuggerStatement": case "DoWhileStatement": case "EmptyStatement": case "ExpressionStatement": case "ForInStatement": case "ForStatement": case "FunctionDeclaration": case "IfStatement": case "LabeledStatement": case "ReturnStatement": case "SwitchStatement": case "ThrowStatement": case "TryStatement": case "VariableDeclaration": case "WhileStatement": case "WithStatement": case "ClassDeclaration": case "ExportAllDeclaration": case "ExportDefaultDeclaration": case "ExportNamedDeclaration": case "ForOfStatement": case "ImportDeclaration": case "DeclareClass": case "DeclareFunction": case "DeclareInterface": case "DeclareModule": case "DeclareModuleExports": case "DeclareTypeAlias": case "DeclareOpaqueType": case "DeclareVariable": case "DeclareExportDeclaration": case "DeclareExportAllDeclaration": case "InterfaceDeclaration": case "OpaqueType": case "TypeAlias": case "EnumDeclaration": case "TSDeclareFunction": case "TSInterfaceDeclaration": case "TSTypeAliasDeclaration": case "TSEnumDeclaration": case "TSModuleDeclaration": case "TSImportEqualsDeclaration": case "TSExportAssignment": case "TSNamespaceExportDeclaration": break; case "Placeholder": switch (e.expectedNode) { case "Statement": case "Declaration": case "BlockStatement": break; default: return !1; } break; default: return !1; } return t == null || (0, A.default)(e, t); } s(QF, "isStatement"); function ZF(e, t) { if (!e) return !1; switch (e.type) { case "BreakStatement": case "ContinueStatement": case "ReturnStatement": case "ThrowStatement": case "YieldExpression": case "AwaitExpression": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(ZF, "isTerminatorless"); function e4(e, t) { if (!e) return !1; switch (e.type) { case "BreakStatement": case "ContinueStatement": case "ReturnStatement": case "ThrowStatement": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(e4, "isCompletionStatement"); function t4(e, t) { if (!e) return !1; switch (e.type) { case "ConditionalExpression": case "IfStatement": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(t4, "isConditional"); function r4(e, t) { if (!e) return !1; switch (e.type) { case "DoWhileStatement": case "ForInStatement": case "ForStatement": case "WhileStatement": case "ForOfStatement": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(r4, "isLoop"); function n4(e, t) { if (!e) return !1; switch (e.type) { case "DoWhileStatement": case "WhileStatement": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(n4, "isWhile"); function s4(e, t) { if (!e) return !1; switch (e.type) { case "ExpressionStatement": case "ParenthesizedExpression": case "TypeCastExpression": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(s4, "isExpressionWrapper"); function i4(e, t) { if (!e) return !1; switch (e.type) { case "ForInStatement": case "ForStatement": case "ForOfStatement": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(i4, "isFor"); function a4(e, t) { if (!e) return !1; switch (e.type) { case "ForInStatement": case "ForOfStatement": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(a4, "isForXStatement"); function o4(e, t) { if (!e) return !1; switch (e.type) { case "FunctionDeclaration": case "FunctionExpression": case "ObjectMethod": case "ArrowFunctionExpression": case "ClassMethod": case "ClassPrivateMethod": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(o4, "isFunction"); function l4(e, t) { if (!e) return !1; switch (e.type) { case "FunctionDeclaration": case "FunctionExpression": case "ObjectMethod": case "ArrowFunctionExpression": case "ClassMethod": case "ClassPrivateMethod": case "StaticBlock": case "TSModuleBlock": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(l4, "isFunctionParent"); function u4(e, t) { if (!e) return !1; switch (e.type) { case "FunctionDeclaration": case "FunctionExpression": case "StringLiteral": case "NumericLiteral": case "NullLiteral": case "BooleanLiteral": case "RegExpLiteral": case "ArrowFunctionExpression": case "BigIntLiteral": case "DecimalLiteral": break; case "Placeholder": if (e.expectedNode === "StringLiteral") break; default: return !1; } return t == null || (0, A.default)(e, t); } s(u4, "isPureish"); function c4(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": break; case "Placeholder": if (e.expectedNode === "Declaration") break; default: return !1; } return t == null || (0, A.default)(e, t); } s(c4, "isDeclaration"); function f4(e, t) { if (!e) return !1; switch (e.type) { case "Identifier": case "RestElement": case "AssignmentPattern": case "ArrayPattern": case "ObjectPattern": case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSNonNullExpression": break; case "Placeholder": switch (e.expectedNode) { case "Pattern": case "Identifier": break; default: return !1; } break; default: return !1; } return t == null || (0, A.default)(e, t); } s(f4, "isPatternLike"); function p4(e, t) { if (!e) return !1; switch (e.type) { case "Identifier": case "MemberExpression": case "RestElement": case "AssignmentPattern": case "ArrayPattern": case "ObjectPattern": case "TSParameterProperty": case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSNonNullExpression": break; case "Placeholder": switch (e.expectedNode) { case "Pattern": case "Identifier": break; default: return !1; } break; default: return !1; } return t == null || (0, A.default)(e, t); } s(p4, "isLVal"); function d4(e, t) { if (!e) return !1; switch (e.type) { case "Identifier": case "TSQualifiedName": break; case "Placeholder": if (e.expectedNode === "Identifier") break; default: return !1; } return t == null || (0, A.default)(e, t); } s(d4, "isTSEntityName"); function h4(e, t) { if (!e) return !1; switch (e.type) { case "StringLiteral": case "NumericLiteral": case "NullLiteral": case "BooleanLiteral": case "RegExpLiteral": case "TemplateLiteral": case "BigIntLiteral": case "DecimalLiteral": break; case "Placeholder": if (e.expectedNode === "StringLiteral") break; default: return !1; } return t == null || (0, A.default)(e, t); } s(h4, "isLiteral"); function m4(e, t) { if (!e) return !1; switch (e.type) { case "StringLiteral": case "NumericLiteral": case "NullLiteral": case "BooleanLiteral": case "BigIntLiteral": case "JSXAttribute": case "JSXClosingElement": case "JSXElement": case "JSXExpressionContainer": case "JSXSpreadChild": case "JSXOpeningElement": case "JSXText": case "JSXFragment": case "JSXOpeningFragment": case "JSXClosingFragment": case "DecimalLiteral": break; case "Placeholder": if (e.expectedNode === "StringLiteral") break; default: return !1; } return t == null || (0, A.default)(e, t); } s(m4, "isImmutable"); function y4(e, t) { if (!e) return !1; switch (e.type) { case "ObjectMethod": case "ObjectProperty": case "ObjectTypeInternalSlot": case "ObjectTypeCallProperty": case "ObjectTypeIndexer": case "ObjectTypeProperty": case "ObjectTypeSpreadProperty": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(y4, "isUserWhitespacable"); function g4(e, t) { if (!e) return !1; switch (e.type) { case "ObjectMethod": case "ClassMethod": case "ClassPrivateMethod": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(g4, "isMethod"); function b4(e, t) { if (!e) return !1; switch (e.type) { case "ObjectMethod": case "ObjectProperty": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(b4, "isObjectMember"); function E4(e, t) { if (!e) return !1; switch (e.type) { case "ObjectProperty": case "ClassProperty": case "ClassAccessorProperty": case "ClassPrivateProperty": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(E4, "isProperty"); function v4(e, t) { if (!e) return !1; switch (e.type) { case "UnaryExpression": case "SpreadElement": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(v4, "isUnaryLike"); function T4(e, t) { if (!e) return !1; switch (e.type) { case "AssignmentPattern": case "ArrayPattern": case "ObjectPattern": break; case "Placeholder": if (e.expectedNode === "Pattern") break; default: return !1; } return t == null || (0, A.default)(e, t); } s(T4, "isPattern"); function x4(e, t) { if (!e) return !1; switch (e.type) { case "ClassExpression": case "ClassDeclaration": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(x4, "isClass"); function V1(e, t) { if (!e) return !1; switch (e.type) { case "ExportAllDeclaration": case "ExportDefaultDeclaration": case "ExportNamedDeclaration": case "ImportDeclaration": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(V1, "isImportOrExportDeclaration"); function S4(e, t) { if (!e) return !1; switch (e.type) { case "ExportAllDeclaration": case "ExportDefaultDeclaration": case "ExportNamedDeclaration": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(S4, "isExportDeclaration"); function P4(e, t) { if (!e) return !1; switch (e.type) { case "ExportSpecifier": case "ImportDefaultSpecifier": case "ImportNamespaceSpecifier": case "ImportSpecifier": case "ExportNamespaceSpecifier": case "ExportDefaultSpecifier": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(P4, "isModuleSpecifier"); function A4(e, t) { if (!e) return !1; switch (e.type) { case "ClassAccessorProperty": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(A4, "isAccessor"); function C4(e, t) { if (!e) return !1; switch (e.type) { case "ClassPrivateProperty": case "ClassPrivateMethod": case "PrivateName": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(C4, "isPrivate"); function w4(e, t) { if (!e) return !1; switch (e.type) { case "AnyTypeAnnotation": case "ArrayTypeAnnotation": case "BooleanTypeAnnotation": case "BooleanLiteralTypeAnnotation": case "NullLiteralTypeAnnotation": case "ClassImplements": case "DeclareClass": case "DeclareFunction": case "DeclareInterface": case "DeclareModule": case "DeclareModuleExports": case "DeclareTypeAlias": case "DeclareOpaqueType": case "DeclareVariable": case "DeclareExportDeclaration": case "DeclareExportAllDeclaration": case "DeclaredPredicate": case "ExistsTypeAnnotation": case "FunctionTypeAnnotation": case "FunctionTypeParam": case "GenericTypeAnnotation": case "InferredPredicate": case "InterfaceExtends": case "InterfaceDeclaration": case "InterfaceTypeAnnotation": case "IntersectionTypeAnnotation": case "MixedTypeAnnotation": case "EmptyTypeAnnotation": case "NullableTypeAnnotation": case "NumberLiteralTypeAnnotation": case "NumberTypeAnnotation": case "ObjectTypeAnnotation": case "ObjectTypeInternalSlot": case "ObjectTypeCallProperty": case "ObjectTypeIndexer": case "ObjectTypeProperty": case "ObjectTypeSpreadProperty": case "OpaqueType": case "QualifiedTypeIdentifier": case "StringLiteralTypeAnnotation": case "StringTypeAnnotation": case "SymbolTypeAnnotation": case "ThisTypeAnnotation": case "TupleTypeAnnotation": case "TypeofTypeAnnotation": case "TypeAlias": case "TypeAnnotation": case "TypeCastExpression": case "TypeParameter": case "TypeParameterDeclaration": case "TypeParameterInstantiation": case "UnionTypeAnnotation": case "Variance": case "VoidTypeAnnotation": case "EnumDeclaration": case "EnumBooleanBody": case "EnumNumberBody": case "EnumStringBody": case "EnumSymbolBody": case "EnumBooleanMember": case "EnumNumberMember": case "EnumStringMember": case "EnumDefaultedMember": case "IndexedAccessType": case "OptionalIndexedAccessType": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(w4, "isFlow"); function D4(e, t) { if (!e) return !1; switch (e.type) { case "AnyTypeAnnotation": case "ArrayTypeAnnotation": case "BooleanTypeAnnotation": case "BooleanLiteralTypeAnnotation": case "NullLiteralTypeAnnotation": case "ExistsTypeAnnotation": case "FunctionTypeAnnotation": case "GenericTypeAnnotation": case "InterfaceTypeAnnotation": case "IntersectionTypeAnnotation": case "MixedTypeAnnotation": case "EmptyTypeAnnotation": case "NullableTypeAnnotation": case "NumberLiteralTypeAnnotation": case "NumberTypeAnnotation": case "ObjectTypeAnnotation": case "StringLiteralTypeAnnotation": case "StringTypeAnnotation": case "SymbolTypeAnnotation": case "ThisTypeAnnotation": case "TupleTypeAnnotation": case "TypeofTypeAnnotation": case "UnionTypeAnnotation": case "VoidTypeAnnotation": case "IndexedAccessType": case "OptionalIndexedAccessType": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(D4, "isFlowType"); function I4(e, t) { if (!e) return !1; switch (e.type) { case "AnyTypeAnnotation": case "BooleanTypeAnnotation": case "NullLiteralTypeAnnotation": case "MixedTypeAnnotation": case "EmptyTypeAnnotation": case "NumberTypeAnnotation": case "StringTypeAnnotation": case "SymbolTypeAnnotation": case "ThisTypeAnnotation": case "VoidTypeAnnotation": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(I4, "isFlowBaseAnnotation"); function _4(e, t) { if (!e) return !1; switch (e.type) { case "DeclareClass": case "DeclareFunction": case "DeclareInterface": case "DeclareModule": case "DeclareModuleExports": case "DeclareTypeAlias": case "DeclareOpaqueType": case "DeclareVariable": case "DeclareExportDeclaration": case "DeclareExportAllDeclaration": case "InterfaceDeclaration": case "OpaqueType": case "TypeAlias": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(_4, "isFlowDeclaration"); function O4(e, t) { if (!e) return !1; switch (e.type) { case "DeclaredPredicate": case "InferredPredicate": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(O4, "isFlowPredicate"); function N4(e, t) { if (!e) return !1; switch (e.type) { case "EnumBooleanBody": case "EnumNumberBody": case "EnumStringBody": case "EnumSymbolBody": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(N4, "isEnumBody"); function B4(e, t) { if (!e) return !1; switch (e.type) { case "EnumBooleanMember": case "EnumNumberMember": case "EnumStringMember": case "EnumDefaultedMember": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(B4, "isEnumMember"); function k4(e, t) { if (!e) return !1; switch (e.type) { case "JSXAttribute": case "JSXClosingElement": case "JSXElement": case "JSXEmptyExpression": case "JSXExpressionContainer": case "JSXSpreadChild": case "JSXIdentifier": case "JSXMemberExpression": case "JSXNamespacedName": case "JSXOpeningElement": case "JSXSpreadAttribute": case "JSXText": case "JSXFragment": case "JSXOpeningFragment": case "JSXClosingFragment": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(k4, "isJSX"); function F4(e, t) { if (!e) return !1; switch (e.type) { case "Noop": case "Placeholder": case "V8IntrinsicIdentifier": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(F4, "isMiscellaneous"); function j4(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 "TSLiteralType": case "TSExpressionWithTypeArguments": case "TSInterfaceDeclaration": case "TSInterfaceBody": case "TSTypeAliasDeclaration": case "TSInstantiationExpression": case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSEnumDeclaration": case "TSEnumMember": case "TSModuleDeclaration": case "TSModuleBlock": case "TSImportType": case "TSImportEqualsDeclaration": case "TSExternalModuleReference": case "TSNonNullExpression": case "TSExportAssignment": case "TSNamespaceExportDeclaration": case "TSTypeAnnotation": case "TSTypeParameterInstantiation": case "TSTypeParameterDeclaration": case "TSTypeParameter": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(j4, "isTypeScript"); function L4(e, t) { if (!e) return !1; switch (e.type) { case "TSCallSignatureDeclaration": case "TSConstructSignatureDeclaration": case "TSPropertySignature": case "TSMethodSignature": case "TSIndexSignature": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(L4, "isTSTypeElement"); function M4(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 "TSLiteralType": case "TSExpressionWithTypeArguments": case "TSImportType": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(M4, "isTSType"); function R4(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 "TSLiteralType": break; default: return !1; } return t == null || (0, A.default)(e, t); } s(R4, "isTSBaseType"); function q4(e, t) { return (0, Ca.default)("isNumberLiteral", "isNumericLiteral"), !e || e.type !== "NumberLiteral" ? !1 : t == null || (0, A.default)(e, t); } s(q4, "isNumberLiteral"); function U4(e, t) { return (0, Ca.default)("isRegexLiteral", "isRegExpLiteral"), !e || e.type !== "RegexLiteral" ? !1 : t == null || (0, A.default)(e, t); } s(U4, "isRegexLiteral"); function V4(e, t) { return (0, Ca.default)("isRestProperty", "isRestElement"), !e || e.type !== "RestProperty" ? !1 : t == null || (0, A.default)(e, t); } s(V4, "isRestProperty"); function $4(e, t) { return (0, Ca.default)("isSpreadProperty", "isSpreadElement"), !e || e.type !== "SpreadProperty" ? !1 : t == null || (0, A.default)(e, t); } s($4, "isSpreadProperty"); function W4(e, t) { return (0, Ca.default)("isModuleDeclaration", "isImportOrExportDeclaration"), V1(e, t); } s(W4, "isModuleDeclaration"); }); // ../node_modules/@babel/types/lib/validators/matchesPattern.js var Zf = T((Qf) => { "use strict"; Object.defineProperty(Qf, "__esModule", { value: !0 }); Qf.default = K4; var wa = Tt(); function K4(e, t, r) { if (!(0, wa.isMemberExpression)(e)) return !1; let n = Array.isArray(t) ? t : t.split("."), i = [], a; for (a = e; (0, wa.isMemberExpression)(a); a = a.object) i.push(a.property); if (i.push(a), i.length < n.length || !r && i.length > n.length) return !1; for (let o = 0, l = i.length - 1; o < n.length; o++, l--) { let u = i[l], c; if ((0, wa.isIdentifier)(u)) c = u.name; else if ((0, wa.isStringLiteral)(u)) c = u.value; else if ((0, wa.isThisExpression)(u)) c = "this"; else return !1; if (n[o] !== c) return !1; } return !0; } s(K4, "matchesPattern"); }); // ../node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js var tp = T((ep) => { "use strict"; Object.defineProperty(ep, "__esModule", { value: !0 }); ep.default = H4; var G4 = Zf(); function H4(e, t) { let r = e.split("."); return (n) => (0, G4.default)(n, r, t); } s(H4, "buildMatchMemberExpression"); }); // ../node_modules/@babel/types/lib/validators/react/isReactComponent.js var $1 = T((pl) => { "use strict"; Object.defineProperty(pl, "__esModule", { value: !0 }); pl.default = void 0; var Y4 = tp(), z4 = (0, Y4.default)("React.Component"), tEe = pl.default = z4; }); // ../node_modules/@babel/types/lib/validators/react/isCompatTag.js var W1 = T((rp) => { "use strict"; Object.defineProperty(rp, "__esModule", { value: !0 }); rp.default = J4; function J4(e) { return !!e && /^[a-z]/.test(e); } s(J4, "isCompatTag"); }); // ../node_modules/to-fast-properties/index.js var G1 = T((iEe, K1) => { "use strict"; var Da = null; function Ia(e) { if (Da !== null && typeof Da.property) { let t = Da; return Da = Ia.prototype = null, t; } return Da = Ia.prototype = e ?? /* @__PURE__ */ Object.create(null), new Ia(); } s(Ia, "FastObject"); Ia(); K1.exports = /* @__PURE__ */ s(function(t) { return Ia(t); }, "toFastproperties"); }); // ../node_modules/@babel/types/lib/validators/isType.js var dl = T((np) => { "use strict"; Object.defineProperty(np, "__esModule", { value: !0 }); np.default = X4; var H1 = Cr(); function X4(e, t) { if (e === t) return !0; if (e == null || H1.ALIAS_KEYS[t]) return !1; let r = H1.FLIPPED_ALIAS_KEYS[t]; if (r) { if (r[0] === e) return !0; for (let n of r) if (e === n) return !0; } return !1; } s(X4, "isType"); }); // ../node_modules/@babel/types/lib/validators/isPlaceholderType.js var ip = T((sp) => { "use strict"; Object.defineProperty(sp, "__esModule", { value: !0 }); sp.default = Z4; var Q4 = Cr(); function Z4(e, t) { if (e === t) return !0; let r = Q4.PLACEHOLDERS_ALIAS[e]; if (r) { for (let n of r) if (t === n) return !0; } return !1; } s(Z4, "isPlaceholderType"); }); // ../node_modules/@babel/types/lib/validators/is.js var yi = T((ap) => { "use strict"; Object.defineProperty(ap, "__esModule", { value: !0 }); ap.default = s8; var e8 = fl(), t8 = dl(), r8 = ip(), n8 = Cr(); function s8(e, t, r) { return t ? (0, t8.default)(t.type, e) ? typeof r > "u" ? !0 : (0, e8.default)(t, r) : !r && t.type === "Placeholder" && e in n8.FLIPPED_ALIAS_KEYS ? (0, r8.default)(t.expectedNode, e) : !1 : !1; } s(s8, "is"); }); // ../node_modules/@babel/helper-validator-identifier/lib/identifier.js var Q1 = T((_a) => { "use strict"; Object.defineProperty(_a, "__esModule", { value: !0 }); _a.isIdentifierChar = X1; _a.isIdentifierName = l8; _a.isIdentifierStart = J1; var lp = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993\ -\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\ \u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\ \u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\ \u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\ \u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01\ -\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", Y1 = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\ \u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4\ -\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\ \u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\ \uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65", i8 = new RegExp("[" + lp + "]"), a8 = new RegExp("[" + lp + Y1 + "]"); lp = Y1 = null; var z1 = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], o8 = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; function op(e, t) { let r = 65536; for (let n = 0, i = t.length; n < i; n += 2) { if (r += t[n], r > e) return !1; if (r += t[n + 1], r >= e) return !0; } return !1; } s(op, "isInAstralSet"); function J1(e) { return e < 65 ? e === 36 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && i8.test(String.fromCharCode(e)) : op(e, z1); } s(J1, "isIdentifierStart"); function X1(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 && a8.test( String.fromCharCode(e)) : op(e, z1) || op(e, o8); } s(X1, "isIdentifierChar"); function l8(e) { let t = !0; for (let r = 0; r < e.length; r++) { let n = e.charCodeAt(r); if ((n & 64512) === 55296 && r + 1 < e.length) { let i = e.charCodeAt(++r); (i & 64512) === 56320 && (n = 65536 + ((n & 1023) << 10) + (i & 1023)); } if (t) { if (t = !1, !J1(n)) return !1; } else if (!X1(n)) return !1; } return !t; } s(l8, "isIdentifierName"); }); // ../node_modules/@babel/helper-validator-identifier/lib/keyword.js var rE = T((_s) => { "use strict"; Object.defineProperty(_s, "__esModule", { value: !0 }); _s.isKeyword = d8; _s.isReservedWord = Z1; _s.isStrictBindOnlyReservedWord = tE; _s.isStrictBindReservedWord = p8; _s.isStrictReservedWord = eE; var up = { 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"] }, u8 = new Set(up.keyword), c8 = new Set(up.strict), f8 = new Set(up.strictBind); function Z1(e, t) { return t && e === "await" || e === "enum"; } s(Z1, "isReservedWord"); function eE(e, t) { return Z1(e, t) || c8.has(e); } s(eE, "isStrictReservedWord"); function tE(e) { return f8.has(e); } s(tE, "isStrictBindOnlyReservedWord"); function p8(e, t) { return eE(e, t) || tE(e); } s(p8, "isStrictBindReservedWord"); function d8(e) { return u8.has(e); } s(d8, "isKeyword"); }); // ../node_modules/@babel/helper-validator-identifier/lib/index.js var gi = T((on) => { "use strict"; Object.defineProperty(on, "__esModule", { value: !0 }); Object.defineProperty(on, "isIdentifierChar", { enumerable: !0, get: /* @__PURE__ */ s(function() { return cp.isIdentifierChar; }, "get") }); Object.defineProperty(on, "isIdentifierName", { enumerable: !0, get: /* @__PURE__ */ s(function() { return cp.isIdentifierName; }, "get") }); Object.defineProperty(on, "isIdentifierStart", { enumerable: !0, get: /* @__PURE__ */ s(function() { return cp.isIdentifierStart; }, "get") }); Object.defineProperty(on, "isKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Oa.isKeyword; }, "get") }); Object.defineProperty(on, "isReservedWord", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Oa.isReservedWord; }, "get") }); Object.defineProperty(on, "isStrictBindOnlyReservedWord", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Oa.isStrictBindOnlyReservedWord; }, "get") }); Object.defineProperty(on, "isStrictBindReservedWord", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Oa.isStrictBindReservedWord; }, "get") }); Object.defineProperty(on, "isStrictReservedWord", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Oa.isStrictReservedWord; }, "get") }); var cp = Q1(), Oa = rE(); }); // ../node_modules/@babel/types/lib/validators/isValidIdentifier.js var bi = T((pp) => { "use strict"; Object.defineProperty(pp, "__esModule", { value: !0 }); pp.default = h8; var fp = gi(); function h8(e, t = !0) { return typeof e != "string" || t && ((0, fp.isKeyword)(e) || (0, fp.isStrictReservedWord)(e, !0)) ? !1 : (0, fp.isIdentifierName)(e); } s(h8, "isValidIdentifier"); }); // ../node_modules/@babel/helper-string-parser/lib/index.js var aE = T((Na) => { "use strict"; Object.defineProperty(Na, "__esModule", { value: !0 }); Na.readCodePoint = iE; Na.readInt = sE; Na.readStringContents = y8; var m8 = /* @__PURE__ */ s(function(t) { return t >= 48 && t <= 57; }, "isDigit"), nE = { decBinOct: /* @__PURE__ */ new Set([46, 66, 69, 79, 95, 98, 101, 111]), hex: /* @__PURE__ */ new Set([46, 88, 95, 120]) }, hl = { bin: /* @__PURE__ */ s((e) => e === 48 || e === 49, "bin"), oct: /* @__PURE__ */ s((e) => e >= 48 && e <= 55, "oct"), dec: /* @__PURE__ */ s((e) => e >= 48 && e <= 57, "dec"), hex: /* @__PURE__ */ s((e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, "hex") }; function y8(e, t, r, n, i, a) { let o = r, l = n, u = i, c = "", f = null, p = r, { length: h } = t; for (; ; ) { if (r >= h) { a.unterminated(o, l, u), c += t.slice(p, r); break; } let y = t.charCodeAt(r); if (g8(e, y, t, r)) { c += t.slice(p, r); break; } if (y === 92) { c += t.slice(p, r); let v = b8(t, r, n, i, e === "template", a); v.ch === null && !f ? f = { pos: r, lineStart: n, curLine: i } : c += v.ch, { pos: r, lineStart: n, curLine: i } = v, p = r; } else y === 8232 || y === 8233 ? (++r, ++i, n = r) : y === 10 || y === 13 ? e === "template" ? (c += t.slice(p, r) + ` `, ++r, y === 13 && t.charCodeAt(r) === 10 && ++r, ++i, p = n = r) : a.unterminated(o, l, u) : ++r; } return { pos: r, str: c, firstInvalidLoc: f, lineStart: n, curLine: i, containsInvalid: !!f }; } s(y8, "readStringContents"); function g8(e, t, r, n) { return e === "template" ? t === 96 || t === 36 && r.charCodeAt(n + 1) === 123 : t === (e === "double" ? 34 : 39); } s(g8, "isStringEnd"); function b8(e, t, r, n, i, a) { let o = !i; t++; let l = /* @__PURE__ */ s((c) => ({ pos: t, ch: c, lineStart: r, curLine: n }), "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 } = dp(e, t, r, n, 2, !1, o, a), l(c === null ? null : String.fromCharCode(c)); } case 117: { let c; return { code: c, pos: t } = iE(e, t, r, n, 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, ++n; case 8232: case 8233: return l(""); case 56: case 57: if (i) return l(null); a.strictNumericEscape(t - 1, r, n); default: if (u >= 48 && u <= 55) { let c = t - 1, p = /^[0-7]+/.exec(e.slice(c, t + 2))[0], h = parseInt(p, 8); h > 255 && (p = p.slice(0, -1), h = parseInt(p, 8)), t += p.length - 1; let y = e.charCodeAt(t); if (p !== "0" || y === 56 || y === 57) { if (i) return l(null); a.strictNumericEscape(c, r, n); } return l(String.fromCharCode(h)); } return l(String.fromCharCode(u)); } } s(b8, "readEscapedChar"); function dp(e, t, r, n, i, a, o, l) { let u = t, c; return { n: c, pos: t } = sE(e, t, r, n, 16, i, a, !1, l, !o), c === null && (o ? l.invalidEscapeSequence(u, r, n) : t = u - 1), { code: c, pos: t }; } s(dp, "readHexChar"); function sE(e, t, r, n, i, a, o, l, u, c) { let f = t, p = i === 16 ? nE.hex : nE.decBinOct, h = i === 16 ? hl.hex : i === 10 ? hl.dec : i === 8 ? hl.oct : hl.bin, y = !1, v = 0; for (let d = 0, b = a ?? 1 / 0; d < b; ++d) { let E = e.charCodeAt(t), I; if (E === 95 && l !== "bail") { let O = e.charCodeAt(t - 1), k = e.charCodeAt(t + 1); if (l) { if (Number.isNaN(k) || !h(k) || p.has(O) || p.has(k)) { if (c) return { n: null, pos: t }; u.unexpectedNumericSeparator(t, r, n); } } else { if (c) return { n: null, pos: t }; u.numericSeparatorInEscapeSequence(t, r, n); } ++t; continue; } if (E >= 97 ? I = E - 97 + 10 : E >= 65 ? I = E - 65 + 10 : m8(E) ? I = E - 48 : I = 1 / 0, I >= i) { if (I <= 9 && c) return { n: null, pos: t }; if (I <= 9 && u.invalidDigit(t, r, n, i)) I = 0; else if (o) I = 0, y = !0; else break; } ++t, v = v * i + I; } return t === f || a != null && t - f !== a || y ? { n: null, pos: t } : { n: v, pos: t }; } s(sE, "readInt"); function iE(e, t, r, n, i, a) { let o = e.charCodeAt(t), l; if (o === 123) { if (++t, { code: l, pos: t } = dp(e, t, r, n, e.indexOf("}", t) - t, !0, i, a), ++t, l !== null && l > 1114111) if (i) a.invalidCodePoint(t, r, n); else return { code: null, pos: t }; } else ({ code: l, pos: t } = dp(e, t, r, n, 4, !1, i, a)); return { code: l, pos: t }; } s(iE, "readCodePoint"); }); // ../node_modules/@babel/types/lib/constants/index.js var Xn = T((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.NOT_LOCAL_BINDING = 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.BLOCK_SCOPED_SYMBOL = Me.BINARY_OPERATORS = Me.ASSIGNMENT_OPERATORS = void 0; var SEe = Me.STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"], PEe = Me.FLATTENABLE_KEYS = ["body", "expressions"], AEe = Me. FOR_INIT_KEYS = ["left", "init"], CEe = Me.COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"], E8 = Me.LOGICAL_OPERATORS = ["||", "&&", "??"], wEe = Me.UPDATE_OPERATORS = ["++", "--"], v8 = Me.BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="], T8 = Me.EQUALITY_BINARY_OPERATORS = ["==", "===", "!=", "!=="], x8 = Me.COMPARISON_BINARY_OPERATORS = [...T8, "in", "instanceof"], S8 = Me.BOOLEAN_BINARY_OPERATORS = [...x8, ...v8], oE = Me.NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"], DEe = Me.BINARY_OPERATORS = ["+", ...oE, ...S8, "|>"], IEe = Me.ASSIGNMENT_OPERATORS = ["=", "+=", ...oE.map((e) => e + "="), ...E8.map((e) => e + "=")], P8 = Me.BOOLEAN_UNARY_OPERATORS = ["delete", "!"], A8 = Me.NUMBER_UNARY_OPERATORS = ["+", "-", "~"], C8 = Me.STRING_UNARY_OPERATORS = ["typeof"], _Ee = Me.UNARY_OPERATORS = ["void", "throw", ...P8, ...A8, ...C8], OEe = Me.INHERIT_KEYS = { optional: ["typeAnnotation", "typeParameters", "returnType"], force: ["start", "loc", "end"] }, NEe = Me.BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped"), BEe = Me.NOT_LOCAL_BINDING = Symbol.for("should not be consid\ ered a local binding"); }); // ../node_modules/@babel/types/lib/definitions/utils.js var xn = T((Xe) => { "use strict"; Object.defineProperty(Xe, "__esModule", { value: !0 }); Xe.VISITOR_KEYS = Xe.NODE_PARENT_VALIDATIONS = Xe.NODE_FIELDS = Xe.FLIPPED_ALIAS_KEYS = Xe.DEPRECATED_KEYS = Xe.BUILDER_KEYS = Xe.ALIAS_KEYS = void 0; Xe.arrayOf = uE; Xe.arrayOfType = cE; Xe.assertEach = fE; Xe.assertNodeOrValueType = M8; Xe.assertNodeType = mp; Xe.assertOneOf = L8; Xe.assertOptionalChainStart = q8; Xe.assertShape = R8; Xe.assertValueType = bp; Xe.chain = pE; Xe.default = dE; Xe.defineAliasedType = $8; Xe.typeIs = gl; Xe.validate = gp; Xe.validateArrayOfType = j8; Xe.validateOptional = k8; Xe.validateOptionalType = F8; Xe.validateType = B8; var lE = yi(), yl = bl(), w8 = Xe.VISITOR_KEYS = {}, D8 = Xe.ALIAS_KEYS = {}, hp = Xe.FLIPPED_ALIAS_KEYS = {}, I8 = Xe.NODE_FIELDS = {}, _8 = Xe. BUILDER_KEYS = {}, O8 = Xe.DEPRECATED_KEYS = {}, N8 = Xe.NODE_PARENT_VALIDATIONS = {}; function ml(e) { return Array.isArray(e) ? "array" : e === null ? "null" : typeof e; } s(ml, "getType"); function gp(e) { return { validate: e }; } s(gp, "validate"); function gl(e) { return typeof e == "string" ? mp(e) : mp(...e); } s(gl, "typeIs"); function B8(e) { return gp(gl(e)); } s(B8, "validateType"); function k8(e) { return { validate: e, optional: !0 }; } s(k8, "validateOptional"); function F8(e) { return { validate: gl(e), optional: !0 }; } s(F8, "validateOptionalType"); function uE(e) { return pE(bp("array"), fE(e)); } s(uE, "arrayOf"); function cE(e) { return uE(gl(e)); } s(cE, "arrayOfType"); function j8(e) { return gp(cE(e)); } s(j8, "validateArrayOfType"); function fE(e) { function t(r, n, i) { if (Array.isArray(i)) for (let a = 0; a < i.length; a++) { let o = `${n}[${a}]`, l = i[a]; e(r, o, l), process.env.BABEL_TYPES_8_BREAKING && (0, yl.validateChild)(r, o, l); } } return s(t, "validator"), t.each = e, t; } s(fE, "assertEach"); function L8(...e) { function t(r, n, i) { if (!e.includes(i)) throw new TypeError(`Property ${n} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(i)}`); } return s(t, "validate"), t.oneOf = e, t; } s(L8, "assertOneOf"); function mp(...e) { function t(r, n, i) { for (let a of e) if ((0, lE.default)(a, i)) { (0, yl.validateChild)(r, n, i); return; } throw new TypeError(`Property ${n} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(i?. type)}`); } return s(t, "validate"), t.oneOfNodeTypes = e, t; } s(mp, "assertNodeType"); function M8(...e) { function t(r, n, i) { for (let a of e) if (ml(i) === a || (0, lE.default)(a, i)) { (0, yl.validateChild)(r, n, i); return; } throw new TypeError(`Property ${n} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(i?. type)}`); } return s(t, "validate"), t.oneOfNodeOrValueTypes = e, t; } s(M8, "assertNodeOrValueType"); function bp(e) { function t(r, n, i) { if (!(ml(i) === e)) throw new TypeError(`Property ${n} expected type of ${e} but got ${ml(i)}`); } return s(t, "validate"), t.type = e, t; } s(bp, "assertValueType"); function R8(e) { function t(r, n, i) { let a = []; for (let o of Object.keys(e)) try { (0, yl.validateField)(r, o, i[o], e[o]); } catch (l) { if (l instanceof TypeError) { a.push(l.message); continue; } throw l; } if (a.length) throw new TypeError(`Property ${n} of ${r.type} expected to have the following: ${a.join(` `)}`); } return s(t, "validate"), t.shapeOf = e, t; } s(R8, "assertShape"); function q8() { function e(t) { var r; let n = t; for (; t; ) { let { type: i } = n; if (i === "OptionalCallExpression") { if (n.optional) return; n = n.callee; continue; } if (i === "OptionalMemberExpression") { if (n.optional) return; n = n.object; continue; } break; } throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chai\ n from ${(r = n) == null ? void 0 : r.type}`); } return s(e, "validate"), e; } s(q8, "assertOptionalChainStart"); function pE(...e) { function t(...r) { for (let n of e) n(...r); } if (s(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; } s(pE, "chain"); var U8 = ["aliases", "builder", "deprecatedAlias", "fields", "inherits", "visitor", "validate"], V8 = ["default", "optional", "deprecated", "validate"], yp = {}; function $8(...e) { return (t, r = {}) => { let n = r.aliases; if (!n) { var i, a; r.inherits && (n = (i = yp[r.inherits].aliases) == null ? void 0 : i.slice()), (a = n) != null || (n = []), r.aliases = n; } let o = e.filter((l) => !n.includes(l)); n.unshift(...o), dE(t, r); }; } s($8, "defineAliasedType"); function dE(e, t = {}) { let r = t.inherits && yp[t.inherits] || {}, n = t.fields; if (!n && (n = {}, r.fields)) { let l = Object.getOwnPropertyNames(r.fields); for (let u of l) { let c = r.fields[u], f = c.default; if (Array.isArray(f) ? f.length > 0 : f && typeof f == "object") throw new Error("field defaults can only be primitives or empty arrays currently"); n[u] = { default: Array.isArray(f) ? [] : f, optional: c.optional, deprecated: c.deprecated, validate: c.validate }; } } let i = t.visitor || r.visitor || [], a = t.aliases || r.aliases || [], o = t.builder || r.builder || t.visitor || []; for (let l of Object.keys(t)) if (!U8.includes(l)) throw new Error(`Unknown type option "${l}" on ${e}`); t.deprecatedAlias && (O8[t.deprecatedAlias] = e); for (let l of i.concat(o)) n[l] = n[l] || {}; for (let l of Object.keys(n)) { let u = n[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 = bp(ml(u.default))); for (let c of Object.keys(u)) if (!V8.includes(c)) throw new Error(`Unknown field key "${c}" on ${e}.${l}`); } w8[e] = t.visitor = i, _8[e] = t.builder = o, I8[e] = t.fields = n, D8[e] = t.aliases = a, a.forEach((l) => { hp[l] = hp[l] || [], hp[l].push(e); }), t.validate && (N8[e] = t.validate), yp[e] = t; } s(dE, "defineType"); }); // ../node_modules/@babel/types/lib/definitions/core.js var vp = T((dr) => { "use strict"; Object.defineProperty(dr, "__esModule", { value: !0 }); dr.patternLikeCommon = dr.functionTypeAnnotationCommon = dr.functionDeclarationCommon = dr.functionCommon = dr.classMethodOrPropertyCommon = dr.classMethodOrDeclareMethodCommon = void 0; var tr = yi(), W8 = bi(), hE = gi(), K8 = aE(), Ba = Xn(), m = xn(), te = (0, m.defineAliasedType)("Standardized"); te("ArrayExpression", { fields: { elements: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeOrValueType)("null", "Expression", "Spread\ Element"))), default: process.env.BABEL_TYPES_8_BREAKING ? void 0 : [] } }, visitor: ["elements"], aliases: ["Expression"] }); te("AssignmentExpression", { fields: { operator: { validate: function() { if (!process.env.BABEL_TYPES_8_BREAKING) return (0, m.assertValueType)("string"); let e = (0, m.assertOneOf)(...Ba.ASSIGNMENT_OPERATORS), t = (0, m.assertOneOf)("="); return function(r, n, i) { ((0, tr.default)("Pattern", r.left) ? t : e)(r, n, i); }; }() }, left: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, m.assertNodeType)("Identifier", "MemberExpression", "OptionalMemberExpression", "\ ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, m.assertNodeType)( "LVal", "OptionalMemberExpression") }, right: { validate: (0, m.assertNodeType)("Expression") } }, builder: ["operator", "left", "right"], visitor: ["left", "right"], aliases: ["Expression"] }); te("BinaryExpression", { builder: ["operator", "left", "right"], fields: { operator: { validate: (0, m.assertOneOf)(...Ba.BINARY_OPERATORS) }, left: { validate: function() { let e = (0, m.assertNodeType)("Expression"), t = (0, m.assertNodeType)("Expression", "PrivateName"); return Object.assign(function(n, i, a) { (n.operator === "in" ? t : e)(n, i, a); }, { oneOfNodeTypes: ["Expression", "PrivateName"] }); }() }, right: { validate: (0, m.assertNodeType)("Expression") } }, visitor: ["left", "right"], aliases: ["Binary", "Expression"] }); te("InterpreterDirective", { builder: ["value"], fields: { value: { validate: (0, m.assertValueType)("string") } } }); te("Directive", { visitor: ["value"], fields: { value: { validate: (0, m.assertNodeType)("DirectiveLiteral") } } }); te("DirectiveLiteral", { builder: ["value"], fields: { value: { validate: (0, m.assertValueType)("string") } } }); te("BlockStatement", { builder: ["body", "directives"], visitor: ["directives", "body"], fields: { directives: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Directive"))), default: [] }, body: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Statement"))) } }, aliases: ["Scopable", "BlockParent", "Block", "Statement"] }); te("BreakStatement", { visitor: ["label"], fields: { label: { validate: (0, m.assertNodeType)("Identifier"), optional: !0 } }, aliases: ["Statement", "Terminatorless", "CompletionStatement"] }); te("CallExpression", { visitor: ["callee", "arguments", "typeParameters", "typeArguments"], builder: ["callee", "arguments"], aliases: ["Expression"], fields: Object.assign({ callee: { validate: (0, m.assertNodeType)("Expression", "Super", "V8IntrinsicIdentifier") }, arguments: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Expression", "SpreadElement", "Argu\ mentPlaceholder"))) } }, process.env.BABEL_TYPES_8_BREAKING ? {} : { optional: { validate: (0, m.assertOneOf)(!0, !1), optional: !0 } }, { typeArguments: { validate: (0, m.assertNodeType)("TypeParameterInstantiation"), optional: !0 }, typeParameters: { validate: (0, m.assertNodeType)("TSTypeParameterInstantiation"), optional: !0 } }) }); te("CatchClause", { visitor: ["param", "body"], fields: { param: { validate: (0, m.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern"), optional: !0 }, body: { validate: (0, m.assertNodeType)("BlockStatement") } }, aliases: ["Scopable", "BlockParent"] }); te("ConditionalExpression", { visitor: ["test", "consequent", "alternate"], fields: { test: { validate: (0, m.assertNodeType)("Expression") }, consequent: { validate: (0, m.assertNodeType)("Expression") }, alternate: { validate: (0, m.assertNodeType)("Expression") } }, aliases: ["Expression", "Conditional"] }); te("ContinueStatement", { visitor: ["label"], fields: { label: { validate: (0, m.assertNodeType)("Identifier"), optional: !0 } }, aliases: ["Statement", "Terminatorless", "CompletionStatement"] }); te("DebuggerStatement", { aliases: ["Statement"] }); te("DoWhileStatement", { visitor: ["test", "body"], fields: { test: { validate: (0, m.assertNodeType)("Expression") }, body: { validate: (0, m.assertNodeType)("Statement") } }, aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"] }); te("EmptyStatement", { aliases: ["Statement"] }); te("ExpressionStatement", { visitor: ["expression"], fields: { expression: { validate: (0, m.assertNodeType)("Expression") } }, aliases: ["Statement", "ExpressionWrapper"] }); te("File", { builder: ["program", "comments", "tokens"], visitor: ["program"], fields: { program: { validate: (0, m.assertNodeType)("Program") }, comments: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, m.assertEach)((0, m.assertNodeType)("CommentBlock", "CommentLine")) : Object.assign( () => { }, { each: { oneOfNodeTypes: ["CommentBlock", "CommentLine"] } }), optional: !0 }, tokens: { validate: (0, m.assertEach)(Object.assign(() => { }, { type: "any" })), optional: !0 } } }); te("ForInStatement", { visitor: ["left", "right", "body"], aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"], fields: { left: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, m.assertNodeType)("VariableDeclaration", "Identifier", "MemberExpression", "Array\ Pattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, m.assertNodeType)("Var\ iableDeclaration", "LVal") }, right: { validate: (0, m.assertNodeType)("Expression") }, body: { validate: (0, m.assertNodeType)("Statement") } } }); te("ForStatement", { visitor: ["init", "test", "update", "body"], aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop"], fields: { init: { validate: (0, m.assertNodeType)("VariableDeclaration", "Expression"), optional: !0 }, test: { validate: (0, m.assertNodeType)("Expression"), optional: !0 }, update: { validate: (0, m.assertNodeType)("Expression"), optional: !0 }, body: { validate: (0, m.assertNodeType)("Statement") } } }); var Ei = /* @__PURE__ */ s(() => ({ params: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Identifier", "Pattern", "RestElement"))) }, generator: { default: !1 }, async: { default: !1 } }), "functionCommon"); dr.functionCommon = Ei; var Os = /* @__PURE__ */ s(() => ({ returnType: { validate: (0, m.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, typeParameters: { validate: (0, m.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), optional: !0 } }), "functionTypeAnnotationCommon"); dr.functionTypeAnnotationCommon = Os; var mE = /* @__PURE__ */ s(() => Object.assign({}, Ei(), { declare: { validate: (0, m.assertValueType)("boolean"), optional: !0 }, id: { validate: (0, m.assertNodeType)("Identifier"), optional: !0 } }), "functionDeclarationCommon"); dr.functionDeclarationCommon = mE; te("FunctionDeclaration", { builder: ["id", "params", "body", "generator", "async"], visitor: ["id", "params", "body", "returnType", "typeParameters"], fields: Object.assign({}, mE(), Os(), { body: { validate: (0, m.assertNodeType)("BlockStatement") }, predicate: { validate: (0, m.assertNodeType)("DeclaredPredicate", "InferredPredicate"), optional: !0 } }), aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Statement", "Pureish", "Declaration"], validate: function() { if (!process.env.BABEL_TYPES_8_BREAKING) return () => { }; let e = (0, m.assertNodeType)("Identifier"); return function(t, r, n) { (0, tr.default)("ExportDefaultDeclaration", t) || e(n, "id", n.id); }; }() }); te("FunctionExpression", { inherits: "FunctionDeclaration", aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"], fields: Object.assign({}, Ei(), Os(), { id: { validate: (0, m.assertNodeType)("Identifier"), optional: !0 }, body: { validate: (0, m.assertNodeType)("BlockStatement") }, predicate: { validate: (0, m.assertNodeType)("DeclaredPredicate", "InferredPredicate"), optional: !0 } }) }); var vi = /* @__PURE__ */ s(() => ({ typeAnnotation: { validate: (0, m.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, optional: { validate: (0, m.assertValueType)("boolean"), optional: !0 }, decorators: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Decorator"))), optional: !0 } }), "patternLikeCommon"); dr.patternLikeCommon = vi; te("Identifier", { builder: ["name"], visitor: ["typeAnnotation", "decorators"], aliases: ["Expression", "PatternLike", "LVal", "TSEntityName"], fields: Object.assign({}, vi(), { name: { validate: (0, m.chain)((0, m.assertValueType)("string"), Object.assign(function(e, t, r) { if (process.env.BABEL_TYPES_8_BREAKING && !(0, W8.default)(r, !1)) throw new TypeError(`"${r}" is not a valid identifier name`); }, { type: "string" })) } }), validate(e, t, r) { if (!process.env.BABEL_TYPES_8_BREAKING) return; let n = /\.(\w+)$/.exec(t); if (!n) return; let [, i] = n, a = { computed: !1 }; if (i === "property") { if ((0, tr.default)("MemberExpression", e, a) || (0, tr.default)("OptionalMemberExpression", e, a)) return; } else if (i === "key") { if ((0, tr.default)("Property", e, a) || (0, tr.default)("Method", e, a)) return; } else if (i === "exported") { if ((0, tr.default)("ExportSpecifier", e)) return; } else if (i === "imported") { if ((0, tr.default)("ImportSpecifier", e, { imported: r })) return; } else if (i === "meta" && (0, tr.default)("MetaProperty", e, { meta: r })) return; if (((0, hE.isKeyword)(r.name) || (0, hE.isReservedWord)(r.name, !1)) && r.name !== "this") throw new TypeError(`"${r.name}" is not a valid identifier`); } }); te("IfStatement", { visitor: ["test", "consequent", "alternate"], aliases: ["Statement", "Conditional"], fields: { test: { validate: (0, m.assertNodeType)("Expression") }, consequent: { validate: (0, m.assertNodeType)("Statement") }, alternate: { optional: !0, validate: (0, m.assertNodeType)("Statement") } } }); te("LabeledStatement", { visitor: ["label", "body"], aliases: ["Statement"], fields: { label: { validate: (0, m.assertNodeType)("Identifier") }, body: { validate: (0, m.assertNodeType)("Statement") } } }); te("StringLiteral", { builder: ["value"], fields: { value: { validate: (0, m.assertValueType)("string") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); te("NumericLiteral", { builder: ["value"], deprecatedAlias: "NumberLiteral", fields: { value: { validate: (0, m.chain)((0, m.assertValueType)("number"), Object.assign(function(e, t, r) { if (1 / r < 0 || !Number.isFinite(r)) { let n = new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`); } }, { type: "number" })) } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); te("NullLiteral", { aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); te("BooleanLiteral", { builder: ["value"], fields: { value: { validate: (0, m.assertValueType)("boolean") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); te("RegExpLiteral", { builder: ["pattern", "flags"], deprecatedAlias: "RegexLiteral", aliases: ["Expression", "Pureish", "Literal"], fields: { pattern: { validate: (0, m.assertValueType)("string") }, flags: { validate: (0, m.chain)((0, m.assertValueType)("string"), Object.assign(function(e, t, r) { if (!process.env.BABEL_TYPES_8_BREAKING) return; let n = /[^gimsuy]/.exec(r); if (n) throw new TypeError(`"${n[0]}" is not a valid RegExp flag`); }, { type: "string" })), default: "" } } }); te("LogicalExpression", { builder: ["operator", "left", "right"], visitor: ["left", "right"], aliases: ["Binary", "Expression"], fields: { operator: { validate: (0, m.assertOneOf)(...Ba.LOGICAL_OPERATORS) }, left: { validate: (0, m.assertNodeType)("Expression") }, right: { validate: (0, m.assertNodeType)("Expression") } } }); te("MemberExpression", { builder: ["object", "property", "computed", ...process.env.BABEL_TYPES_8_BREAKING ? [] : ["optional"]], visitor: ["object", "property"], aliases: ["Expression", "LVal"], fields: Object.assign({ object: { validate: (0, m.assertNodeType)("Expression", "Super") }, property: { validate: function() { let e = (0, m.assertNodeType)("Identifier", "PrivateName"), t = (0, m.assertNodeType)("Expression"), r = /* @__PURE__ */ s(function(n, i, a) { (n.computed ? t : e)(n, i, a); }, "validator"); return r.oneOfNodeTypes = ["Expression", "Identifier", "PrivateName"], r; }() }, computed: { default: !1 } }, process.env.BABEL_TYPES_8_BREAKING ? {} : { optional: { validate: (0, m.assertOneOf)(!0, !1), optional: !0 } }) }); te("NewExpression", { inherits: "CallExpression" }); te("Program", { visitor: ["directives", "body"], builder: ["body", "directives", "sourceType", "interpreter"], fields: { sourceType: { validate: (0, m.assertOneOf)("script", "module"), default: "script" }, interpreter: { validate: (0, m.assertNodeType)("InterpreterDirective"), default: null, optional: !0 }, directives: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Directive"))), default: [] }, body: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Statement"))) } }, aliases: ["Scopable", "BlockParent", "Block"] }); te("ObjectExpression", { visitor: ["properties"], aliases: ["Expression"], fields: { properties: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("ObjectMethod", "ObjectProperty", "S\ preadElement"))) } } }); te("ObjectMethod", { builder: ["kind", "key", "params", "body", "computed", "generator", "async"], fields: Object.assign({}, Ei(), Os(), { kind: Object.assign({ validate: (0, m.assertOneOf)("method", "get", "set") }, process.env.BABEL_TYPES_8_BREAKING ? {} : { default: "method" }), computed: { default: !1 }, key: { validate: function() { let e = (0, m.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"), t = (0, m.assertNodeType)("Expres\ sion"), r = /* @__PURE__ */ s(function(n, i, a) { (n.computed ? t : e)(n, i, a); }, "validator"); return r.oneOfNodeTypes = ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"], r; }() }, decorators: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Decorator"))), optional: !0 }, body: { validate: (0, m.assertNodeType)("BlockStatement") } }), visitor: ["key", "params", "body", "decorators", "returnType", "typeParameters"], aliases: ["UserWhitespacable", "Function", "Scopable", "BlockParent", "FunctionParent", "Method", "ObjectMember"] }); te("ObjectProperty", { builder: ["key", "value", "computed", "shorthand", ...process.env.BABEL_TYPES_8_BREAKING ? [] : ["decorators"]], fields: { computed: { default: !1 }, key: { validate: function() { let e = (0, m.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"), t = (0, m. assertNodeType)("Expression"); return Object.assign(function(n, i, a) { (n.computed ? t : e)(n, i, a); }, { oneOfNodeTypes: ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"] }); }() }, value: { validate: (0, m.assertNodeType)("Expression", "PatternLike") }, shorthand: { validate: (0, m.chain)((0, m.assertValueType)("boolean"), Object.assign(function(e, t, r) { if (process.env.BABEL_TYPES_8_BREAKING && r && e.computed) throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true"); }, { type: "boolean" }), function(e, t, r) { if (process.env.BABEL_TYPES_8_BREAKING && r && !(0, tr.default)("Identifier", e.key)) throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier"); }), default: !1 }, decorators: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Decorator"))), optional: !0 } }, visitor: ["key", "value", "decorators"], aliases: ["UserWhitespacable", "Property", "ObjectMember"], validate: function() { let e = (0, m.assertNodeType)("Identifier", "Pattern", "TSAsExpression", "TSSatisfiesExpression", "TSNonNullExpression", "TSTypeAssert\ ion"), t = (0, m.assertNodeType)("Expression"); return function(r, n, i) { if (!process.env.BABEL_TYPES_8_BREAKING) return; ((0, tr.default)("ObjectPattern", r) ? e : t)(i, "value", i.value); }; }() }); te("RestElement", { visitor: ["argument", "typeAnnotation"], builder: ["argument"], aliases: ["LVal", "PatternLike"], deprecatedAlias: "RestProperty", fields: Object.assign({}, vi(), { argument: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, m.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpressio\ n", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, m.assertNodeType)("LVal") } }), validate(e, t) { if (!process.env.BABEL_TYPES_8_BREAKING) return; let r = /(\w+)\[(\d+)\]/.exec(t); if (!r) throw new Error("Internal Babel error: malformed key."); let [, n, i] = r; if (e[n].length > +i + 1) throw new TypeError(`RestElement must be last element of ${n}`); } }); te("ReturnStatement", { visitor: ["argument"], aliases: ["Statement", "Terminatorless", "CompletionStatement"], fields: { argument: { validate: (0, m.assertNodeType)("Expression"), optional: !0 } } }); te("SequenceExpression", { visitor: ["expressions"], fields: { expressions: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Expression"))) } }, aliases: ["Expression"] }); te("ParenthesizedExpression", { visitor: ["expression"], aliases: ["Expression", "ExpressionWrapper"], fields: { expression: { validate: (0, m.assertNodeType)("Expression") } } }); te("SwitchCase", { visitor: ["test", "consequent"], fields: { test: { validate: (0, m.assertNodeType)("Expression"), optional: !0 }, consequent: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Statement"))) } } }); te("SwitchStatement", { visitor: ["discriminant", "cases"], aliases: ["Statement", "BlockParent", "Scopable"], fields: { discriminant: { validate: (0, m.assertNodeType)("Expression") }, cases: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("SwitchCase"))) } } }); te("ThisExpression", { aliases: ["Expression"] }); te("ThrowStatement", { visitor: ["argument"], aliases: ["Statement", "Terminatorless", "CompletionStatement"], fields: { argument: { validate: (0, m.assertNodeType)("Expression") } } }); te("TryStatement", { visitor: ["block", "handler", "finalizer"], aliases: ["Statement"], fields: { block: { validate: (0, m.chain)((0, m.assertNodeType)("BlockStatement"), Object.assign(function(e) { if (process.env.BABEL_TYPES_8_BREAKING && !e.handler && !e.finalizer) throw new TypeError("TryStatement expects either a handler or finalizer, or both"); }, { oneOfNodeTypes: ["BlockStatement"] })) }, handler: { optional: !0, validate: (0, m.assertNodeType)("CatchClause") }, finalizer: { optional: !0, validate: (0, m.assertNodeType)("BlockStatement") } } }); te("UnaryExpression", { builder: ["operator", "argument", "prefix"], fields: { prefix: { default: !0 }, argument: { validate: (0, m.assertNodeType)("Expression") }, operator: { validate: (0, m.assertOneOf)(...Ba.UNARY_OPERATORS) } }, visitor: ["argument"], aliases: ["UnaryLike", "Expression"] }); te("UpdateExpression", { builder: ["operator", "argument", "prefix"], fields: { prefix: { default: !1 }, argument: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, m.assertNodeType)("Identifier", "MemberExpression") : (0, m.assertNodeType)("Expr\ ession") }, operator: { validate: (0, m.assertOneOf)(...Ba.UPDATE_OPERATORS) } }, visitor: ["argument"], aliases: ["Expression"] }); te("VariableDeclaration", { builder: ["kind", "declarations"], visitor: ["declarations"], aliases: ["Statement", "Declaration"], fields: { declare: { validate: (0, m.assertValueType)("boolean"), optional: !0 }, kind: { validate: (0, m.assertOneOf)("var", "let", "const", "using", "await using") }, declarations: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("VariableDeclarator"))) } }, validate(e, t, r) { if (process.env.BABEL_TYPES_8_BREAKING && (0, tr.default)("ForXStatement", e, { left: r }) && r.declarations.length !== 1) throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${e.type}`); } }); te("VariableDeclarator", { visitor: ["id", "init"], fields: { id: { validate: function() { if (!process.env.BABEL_TYPES_8_BREAKING) return (0, m.assertNodeType)("LVal"); let e = (0, m.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern"), t = (0, m.assertNodeType)("Identifier"); return function(r, n, i) { (r.init ? e : t)(r, n, i); }; }() }, definite: { optional: !0, validate: (0, m.assertValueType)("boolean") }, init: { optional: !0, validate: (0, m.assertNodeType)("Expression") } } }); te("WhileStatement", { visitor: ["test", "body"], aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"], fields: { test: { validate: (0, m.assertNodeType)("Expression") }, body: { validate: (0, m.assertNodeType)("Statement") } } }); te("WithStatement", { visitor: ["object", "body"], aliases: ["Statement"], fields: { object: { validate: (0, m.assertNodeType)("Expression") }, body: { validate: (0, m.assertNodeType)("Statement") } } }); te("AssignmentPattern", { visitor: ["left", "right", "decorators"], builder: ["left", "right"], aliases: ["Pattern", "PatternLike", "LVal"], fields: Object.assign({}, vi(), { left: { validate: (0, m.assertNodeType)("Identifier", "ObjectPattern", "ArrayPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExp\ ression", "TSTypeAssertion", "TSNonNullExpression") }, right: { validate: (0, m.assertNodeType)("Expression") }, decorators: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Decorator"))), optional: !0 } }) }); te("ArrayPattern", { visitor: ["elements", "typeAnnotation"], builder: ["elements"], aliases: ["Pattern", "PatternLike", "LVal"], fields: Object.assign({}, vi(), { elements: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeOrValueType)("null", "PatternLike", "LVal"))) } }) }); te("ArrowFunctionExpression", { builder: ["params", "body", "async"], visitor: ["params", "body", "returnType", "typeParameters"], aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"], fields: Object.assign({}, Ei(), Os(), { expression: { validate: (0, m.assertValueType)("boolean") }, body: { validate: (0, m.assertNodeType)("BlockStatement", "Expression") }, predicate: { validate: (0, m.assertNodeType)("DeclaredPredicate", "InferredPredicate"), optional: !0 } }) }); te("ClassBody", { visitor: ["body"], fields: { body: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassPrivateProperty", "ClassAccessorProperty", "TSDeclareMethod", "TSIndexSignature", "StaticBlock"))) } } }); te("ClassExpression", { builder: ["id", "superClass", "body", "decorators"], visitor: ["id", "body", "superClass", "mixins", "typeParameters", "superTypeParameters", "implements", "decorators"], aliases: ["Scopable", "Class", "Expression"], fields: { id: { validate: (0, m.assertNodeType)("Identifier"), optional: !0 }, typeParameters: { validate: (0, m.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), optional: !0 }, body: { validate: (0, m.assertNodeType)("ClassBody") }, superClass: { optional: !0, validate: (0, m.assertNodeType)("Expression") }, superTypeParameters: { validate: (0, m.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), optional: !0 }, implements: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("TSExpressionWithTypeArguments", "Cl\ assImplements"))), optional: !0 }, decorators: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Decorator"))), optional: !0 }, mixins: { validate: (0, m.assertNodeType)("InterfaceExtends"), optional: !0 } } }); te("ClassDeclaration", { inherits: "ClassExpression", aliases: ["Scopable", "Class", "Statement", "Declaration"], fields: { id: { validate: (0, m.assertNodeType)("Identifier"), optional: !0 }, typeParameters: { validate: (0, m.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), optional: !0 }, body: { validate: (0, m.assertNodeType)("ClassBody") }, superClass: { optional: !0, validate: (0, m.assertNodeType)("Expression") }, superTypeParameters: { validate: (0, m.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), optional: !0 }, implements: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("TSExpressionWithTypeArguments", "Cl\ assImplements"))), optional: !0 }, decorators: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Decorator"))), optional: !0 }, mixins: { validate: (0, m.assertNodeType)("InterfaceExtends"), optional: !0 }, declare: { validate: (0, m.assertValueType)("boolean"), optional: !0 }, abstract: { validate: (0, m.assertValueType)("boolean"), optional: !0 } }, validate: function() { let e = (0, m.assertNodeType)("Identifier"); return function(t, r, n) { process.env.BABEL_TYPES_8_BREAKING && ((0, tr.default)("ExportDefaultDeclaration", t) || e(n, "id", n.id)); }; }() }); te("ExportAllDeclaration", { builder: ["source"], visitor: ["source", "attributes", "assertions"], aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"], fields: { source: { validate: (0, m.assertNodeType)("StringLiteral") }, exportKind: (0, m.validateOptional)((0, m.assertOneOf)("type", "value")), attributes: { optional: !0, validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("ImportAttribute"))) }, assertions: { optional: !0, validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("ImportAttribute"))) } } }); te("ExportDefaultDeclaration", { visitor: ["declaration"], aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"], fields: { declaration: { validate: (0, m.assertNodeType)("TSDeclareFunction", "FunctionDeclaration", "ClassDeclaration", "Expression") }, exportKind: (0, m.validateOptional)((0, m.assertOneOf)("value")) } }); te("ExportNamedDeclaration", { builder: ["declaration", "specifiers", "source"], visitor: ["declaration", "specifiers", "source", "attributes", "assertions"], aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"], fields: { declaration: { optional: !0, validate: (0, m.chain)((0, m.assertNodeType)("Declaration"), Object.assign(function(e, t, r) { if (process.env.BABEL_TYPES_8_BREAKING && r && e.specifiers.length) throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration"); }, { oneOfNodeTypes: ["Declaration"] }), function(e, t, r) { if (process.env.BABEL_TYPES_8_BREAKING && r && e.source) throw new TypeError("Cannot export a declaration from a source"); }) }, attributes: { optional: !0, validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("ImportAttribute"))) }, assertions: { optional: !0, validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("ImportAttribute"))) }, specifiers: { default: [], validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)(function() { let e = (0, m.assertNodeType)("ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"), t = (0, m.assertNodeType)( "ExportSpecifier"); return process.env.BABEL_TYPES_8_BREAKING ? function(r, n, i) { (r.source ? e : t)(r, n, i); } : e; }())) }, source: { validate: (0, m.assertNodeType)("StringLiteral"), optional: !0 }, exportKind: (0, m.validateOptional)((0, m.assertOneOf)("type", "value")) } }); te("ExportSpecifier", { visitor: ["local", "exported"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, m.assertNodeType)("Identifier") }, exported: { validate: (0, m.assertNodeType)("Identifier", "StringLiteral") }, exportKind: { validate: (0, m.assertOneOf)("type", "value"), optional: !0 } } }); te("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, m.assertNodeType)("VariableDeclaration", "LVal"); let e = (0, m.assertNodeType)("VariableDeclaration"), t = (0, m.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "\ ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression"); return function(r, n, i) { (0, tr.default)("VariableDeclaration", i) ? e(r, n, i) : t(r, n, i); }; }() }, right: { validate: (0, m.assertNodeType)("Expression") }, body: { validate: (0, m.assertNodeType)("Statement") }, await: { default: !1 } } }); te("ImportDeclaration", { builder: ["specifiers", "source"], visitor: ["specifiers", "source", "attributes", "assertions"], aliases: ["Statement", "Declaration", "ImportOrExportDeclaration"], fields: { attributes: { optional: !0, validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("ImportAttribute"))) }, assertions: { optional: !0, validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("ImportAttribute"))) }, module: { optional: !0, validate: (0, m.assertValueType)("boolean") }, phase: { default: null, validate: (0, m.assertOneOf)("source", "defer") }, specifiers: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("ImportSpecifier", "ImportDefaultSpe\ cifier", "ImportNamespaceSpecifier"))) }, source: { validate: (0, m.assertNodeType)("StringLiteral") }, importKind: { validate: (0, m.assertOneOf)("type", "typeof", "value"), optional: !0 } } }); te("ImportDefaultSpecifier", { visitor: ["local"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, m.assertNodeType)("Identifier") } } }); te("ImportNamespaceSpecifier", { visitor: ["local"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, m.assertNodeType)("Identifier") } } }); te("ImportSpecifier", { visitor: ["local", "imported"], aliases: ["ModuleSpecifier"], fields: { local: { validate: (0, m.assertNodeType)("Identifier") }, imported: { validate: (0, m.assertNodeType)("Identifier", "StringLiteral") }, importKind: { validate: (0, m.assertOneOf)("type", "typeof", "value"), optional: !0 } } }); te("ImportExpression", { visitor: ["source", "options"], aliases: ["Expression"], fields: { phase: { default: null, validate: (0, m.assertOneOf)("source", "defer") }, source: { validate: (0, m.assertNodeType)("Expression") }, options: { validate: (0, m.assertNodeType)("Expression"), optional: !0 } } }); te("MetaProperty", { visitor: ["meta", "property"], aliases: ["Expression"], fields: { meta: { validate: (0, m.chain)((0, m.assertNodeType)("Identifier"), Object.assign(function(e, t, r) { if (!process.env.BABEL_TYPES_8_BREAKING) return; let n; switch (r.name) { case "function": n = "sent"; break; case "new": n = "target"; break; case "import": n = "meta"; break; } if (!(0, tr.default)("Identifier", e.property, { name: n })) throw new TypeError("Unrecognised MetaProperty"); }, { oneOfNodeTypes: ["Identifier"] })) }, property: { validate: (0, m.assertNodeType)("Identifier") } } }); var El = /* @__PURE__ */ s(() => ({ abstract: { validate: (0, m.assertValueType)("boolean"), optional: !0 }, accessibility: { validate: (0, m.assertOneOf)("public", "private", "protected"), optional: !0 }, static: { default: !1 }, override: { default: !1 }, computed: { default: !1 }, optional: { validate: (0, m.assertValueType)("boolean"), optional: !0 }, key: { validate: (0, m.chain)(function() { let e = (0, m.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"), t = (0, m.assertNodeType)("Expressi\ on"); return function(r, n, i) { (r.computed ? t : e)(r, n, i); }; }(), (0, m.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression")) } }), "classMethodOrPropertyCommon"); dr.classMethodOrPropertyCommon = El; var Ep = /* @__PURE__ */ s(() => Object.assign({}, Ei(), El(), { params: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Identifier", "Pattern", "RestElement", "TSParameterProperty"))) }, kind: { validate: (0, m.assertOneOf)("get", "set", "method", "constructor"), default: "method" }, access: { validate: (0, m.chain)((0, m.assertValueType)("string"), (0, m.assertOneOf)("public", "private", "protected")), optional: !0 }, decorators: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Decorator"))), optional: !0 } }), "classMethodOrDeclareMethodCommon"); dr.classMethodOrDeclareMethodCommon = Ep; te("ClassMethod", { aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method"], builder: ["kind", "key", "params", "body", "computed", "static", "generator", "async"], visitor: ["key", "params", "body", "decorators", "returnType", "typeParameters"], fields: Object.assign({}, Ep(), Os(), { body: { validate: (0, m.assertNodeType)("BlockStatement") } }) }); te("ObjectPattern", { visitor: ["properties", "typeAnnotation", "decorators"], builder: ["properties"], aliases: ["Pattern", "PatternLike", "LVal"], fields: Object.assign({}, vi(), { properties: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("RestElement", "ObjectProperty"))) } }) }); te("SpreadElement", { visitor: ["argument"], aliases: ["UnaryLike"], deprecatedAlias: "SpreadProperty", fields: { argument: { validate: (0, m.assertNodeType)("Expression") } } }); te("Super", { aliases: ["Expression"] }); te("TaggedTemplateExpression", { visitor: ["tag", "quasi", "typeParameters"], builder: ["tag", "quasi"], aliases: ["Expression"], fields: { tag: { validate: (0, m.assertNodeType)("Expression") }, quasi: { validate: (0, m.assertNodeType)("TemplateLiteral") }, typeParameters: { validate: (0, m.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), optional: !0 } } }); te("TemplateElement", { builder: ["value", "tail"], fields: { value: { validate: (0, m.chain)((0, m.assertShape)({ raw: { validate: (0, m.assertValueType)("string") }, cooked: { validate: (0, m.assertValueType)("string"), optional: !0 } }), /* @__PURE__ */ s(function(t) { let r = t.value.raw, n = !1, i = /* @__PURE__ */ s(() => { throw new Error("Internal @babel/types error."); }, "error"), { str: a, firstInvalidLoc: o } = (0, K8.readStringContents)("template", r, 0, 0, 0, { unterminated() { n = !0; }, strictNumericEscape: i, invalidEscapeSequence: i, numericSeparatorInEscapeSequence: i, unexpectedNumericSeparator: i, invalidDigit: i, invalidCodePoint: i }); if (!n) throw new Error("Invalid raw"); t.value.cooked = o ? null : a; }, "templateElementCookedValidator")) }, tail: { default: !1 } } }); te("TemplateLiteral", { visitor: ["quasis", "expressions"], aliases: ["Expression", "Literal"], fields: { quasis: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("TemplateElement"))) }, expressions: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.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}`); }) } } }); te("YieldExpression", { builder: ["argument", "delegate"], visitor: ["argument"], aliases: ["Expression", "Terminatorless"], fields: { delegate: { validate: (0, m.chain)((0, m.assertValueType)("boolean"), Object.assign(function(e, t, r) { if (process.env.BABEL_TYPES_8_BREAKING && r && !e.argument) throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument"); }, { type: "boolean" })), default: !1 }, argument: { optional: !0, validate: (0, m.assertNodeType)("Expression") } } }); te("AwaitExpression", { builder: ["argument"], visitor: ["argument"], aliases: ["Expression", "Terminatorless"], fields: { argument: { validate: (0, m.assertNodeType)("Expression") } } }); te("Import", { aliases: ["Expression"] }); te("BigIntLiteral", { builder: ["value"], fields: { value: { validate: (0, m.assertValueType)("string") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); te("ExportNamespaceSpecifier", { visitor: ["exported"], aliases: ["ModuleSpecifier"], fields: { exported: { validate: (0, m.assertNodeType)("Identifier") } } }); te("OptionalMemberExpression", { builder: ["object", "property", "computed", "optional"], visitor: ["object", "property"], aliases: ["Expression"], fields: { object: { validate: (0, m.assertNodeType)("Expression") }, property: { validate: function() { let e = (0, m.assertNodeType)("Identifier"), t = (0, m.assertNodeType)("Expression"); return Object.assign(function(n, i, a) { (n.computed ? t : e)(n, i, a); }, { oneOfNodeTypes: ["Expression", "Identifier"] }); }() }, computed: { default: !1 }, optional: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, m.chain)((0, m.assertValueType)("boolean"), (0, m.assertOptionalChainStart)()) : (0, m. assertValueType)("boolean") } } }); te("OptionalCallExpression", { visitor: ["callee", "arguments", "typeParameters", "typeArguments"], builder: ["callee", "arguments", "optional"], aliases: ["Expression"], fields: { callee: { validate: (0, m.assertNodeType)("Expression") }, arguments: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Expression", "SpreadElement", "Argu\ mentPlaceholder"))) }, optional: { validate: process.env.BABEL_TYPES_8_BREAKING ? (0, m.chain)((0, m.assertValueType)("boolean"), (0, m.assertOptionalChainStart)()) : (0, m. assertValueType)("boolean") }, typeArguments: { validate: (0, m.assertNodeType)("TypeParameterInstantiation"), optional: !0 }, typeParameters: { validate: (0, m.assertNodeType)("TSTypeParameterInstantiation"), optional: !0 } } }); te("ClassProperty", { visitor: ["key", "value", "typeAnnotation", "decorators"], builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"], aliases: ["Property"], fields: Object.assign({}, El(), { value: { validate: (0, m.assertNodeType)("Expression"), optional: !0 }, definite: { validate: (0, m.assertValueType)("boolean"), optional: !0 }, typeAnnotation: { validate: (0, m.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, decorators: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Decorator"))), optional: !0 }, readonly: { validate: (0, m.assertValueType)("boolean"), optional: !0 }, declare: { validate: (0, m.assertValueType)("boolean"), optional: !0 }, variance: { validate: (0, m.assertNodeType)("Variance"), optional: !0 } }) }); te("ClassAccessorProperty", { visitor: ["key", "value", "typeAnnotation", "decorators"], builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"], aliases: ["Property", "Accessor"], fields: Object.assign({}, El(), { key: { validate: (0, m.chain)(function() { let e = (0, m.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName"), t = (0, m.assertNodeType)( "Expression"); return function(r, n, i) { (r.computed ? t : e)(r, n, i); }; }(), (0, m.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression", "PrivateName")) }, value: { validate: (0, m.assertNodeType)("Expression"), optional: !0 }, definite: { validate: (0, m.assertValueType)("boolean"), optional: !0 }, typeAnnotation: { validate: (0, m.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, decorators: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Decorator"))), optional: !0 }, readonly: { validate: (0, m.assertValueType)("boolean"), optional: !0 }, declare: { validate: (0, m.assertValueType)("boolean"), optional: !0 }, variance: { validate: (0, m.assertNodeType)("Variance"), optional: !0 } }) }); te("ClassPrivateProperty", { visitor: ["key", "value", "decorators", "typeAnnotation"], builder: ["key", "value", "decorators", "static"], aliases: ["Property", "Private"], fields: { key: { validate: (0, m.assertNodeType)("PrivateName") }, value: { validate: (0, m.assertNodeType)("Expression"), optional: !0 }, typeAnnotation: { validate: (0, m.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), optional: !0 }, decorators: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Decorator"))), optional: !0 }, static: { validate: (0, m.assertValueType)("boolean"), default: !1 }, readonly: { validate: (0, m.assertValueType)("boolean"), optional: !0 }, definite: { validate: (0, m.assertValueType)("boolean"), optional: !0 }, variance: { validate: (0, m.assertNodeType)("Variance"), optional: !0 } } }); te("ClassPrivateMethod", { builder: ["kind", "key", "params", "body", "static"], visitor: ["key", "params", "body", "decorators", "returnType", "typeParameters"], aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method", "Private"], fields: Object.assign({}, Ep(), Os(), { kind: { validate: (0, m.assertOneOf)("get", "set", "method"), default: "method" }, key: { validate: (0, m.assertNodeType)("PrivateName") }, body: { validate: (0, m.assertNodeType)("BlockStatement") } }) }); te("PrivateName", { visitor: ["id"], aliases: ["Private"], fields: { id: { validate: (0, m.assertNodeType)("Identifier") } } }); te("StaticBlock", { visitor: ["body"], fields: { body: { validate: (0, m.chain)((0, m.assertValueType)("array"), (0, m.assertEach)((0, m.assertNodeType)("Statement"))) } }, aliases: ["Scopable", "BlockParent", "FunctionParent"] }); }); // ../node_modules/@babel/types/lib/definitions/flow.js var yE = T(() => { "use strict"; var L = xn(), ye = (0, L.defineAliasedType)("Flow"), Tp = /* @__PURE__ */ s((e) => { let t = e === "DeclareClass"; ye(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"); ye("AnyTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ye("ArrayTypeAnnotation", { visitor: ["elementType"], aliases: ["FlowType"], fields: { elementType: (0, L.validateType)("FlowType") } }); ye("BooleanTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ye("BooleanLiteralTypeAnnotation", { builder: ["value"], aliases: ["FlowType"], fields: { value: (0, L.validate)((0, L.assertValueType)("boolean")) } }); ye("NullLiteralTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ye("ClassImplements", { visitor: ["id", "typeParameters"], fields: { id: (0, L.validateType)("Identifier"), typeParameters: (0, L.validateOptionalType)("TypeParameterInstantiation") } }); Tp("DeclareClass"); ye("DeclareFunction", { visitor: ["id"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, L.validateType)("Identifier"), predicate: (0, L.validateOptionalType)("DeclaredPredicate") } }); Tp("DeclareInterface"); ye("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")) } }); ye("DeclareModuleExports", { visitor: ["typeAnnotation"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { typeAnnotation: (0, L.validateType)("TypeAnnotation") } }); ye("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") } }); ye("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") } }); ye("DeclareVariable", { visitor: ["id"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { id: (0, L.validateType)("Identifier") } }); ye("DeclareExportDeclaration", { visitor: ["declaration", "specifiers", "source"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { 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")) } }); ye("DeclareExportAllDeclaration", { visitor: ["source"], aliases: ["FlowDeclaration", "Statement", "Declaration"], fields: { source: (0, L.validateType)("StringLiteral"), exportKind: (0, L.validateOptional)((0, L.assertOneOf)("type", "value")) } }); ye("DeclaredPredicate", { visitor: ["value"], aliases: ["FlowPredicate"], fields: { value: (0, L.validateType)("Flow") } }); ye("ExistsTypeAnnotation", { aliases: ["FlowType"] }); ye("FunctionTypeAnnotation", { visitor: ["typeParameters", "params", "rest", "returnType"], aliases: ["FlowType"], fields: { typeParameters: (0, L.validateOptionalType)("TypeParameterDeclaration"), params: (0, L.validate)((0, L.arrayOfType)("FunctionTypeParam")), rest: (0, L.validateOptionalType)("FunctionTypeParam"), this: (0, L.validateOptionalType)("FunctionTypeParam"), returnType: (0, L.validateType)("FlowType") } }); ye("FunctionTypeParam", { visitor: ["name", "typeAnnotation"], fields: { name: (0, L.validateOptionalType)("Identifier"), typeAnnotation: (0, L.validateType)("FlowType"), optional: (0, L.validateOptional)((0, L.assertValueType)("boolean")) } }); ye("GenericTypeAnnotation", { visitor: ["id", "typeParameters"], aliases: ["FlowType"], fields: { id: (0, L.validateType)(["Identifier", "QualifiedTypeIdentifier"]), typeParameters: (0, L.validateOptionalType)("TypeParameterInstantiation") } }); ye("InferredPredicate", { aliases: ["FlowPredicate"] }); ye("InterfaceExtends", { visitor: ["id", "typeParameters"], fields: { id: (0, L.validateType)(["Identifier", "QualifiedTypeIdentifier"]), typeParameters: (0, L.validateOptionalType)("TypeParameterInstantiation") } }); Tp("InterfaceDeclaration"); ye("InterfaceTypeAnnotation", { visitor: ["extends", "body"], aliases: ["FlowType"], fields: { extends: (0, L.validateOptional)((0, L.arrayOfType)("InterfaceExtends")), body: (0, L.validateType)("ObjectTypeAnnotation") } }); ye("IntersectionTypeAnnotation", { visitor: ["types"], aliases: ["FlowType"], fields: { types: (0, L.validate)((0, L.arrayOfType)("FlowType")) } }); ye("MixedTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ye("EmptyTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ye("NullableTypeAnnotation", { visitor: ["typeAnnotation"], aliases: ["FlowType"], fields: { typeAnnotation: (0, L.validateType)("FlowType") } }); ye("NumberLiteralTypeAnnotation", { builder: ["value"], aliases: ["FlowType"], fields: { value: (0, L.validate)((0, L.assertValueType)("number")) } }); ye("NumberTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ye("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")) } }); ye("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")) } }); ye("ObjectTypeCallProperty", { visitor: ["value"], aliases: ["UserWhitespacable"], fields: { value: (0, L.validateType)("FlowType"), static: (0, L.validate)((0, L.assertValueType)("boolean")) } }); ye("ObjectTypeIndexer", { visitor: ["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") } }); ye("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")) } }); ye("ObjectTypeSpreadProperty", { visitor: ["argument"], aliases: ["UserWhitespacable"], fields: { argument: (0, L.validateType)("FlowType") } }); ye("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") } }); ye("QualifiedTypeIdentifier", { visitor: ["id", "qualification"], fields: { id: (0, L.validateType)("Identifier"), qualification: (0, L.validateType)(["Identifier", "QualifiedTypeIdentifier"]) } }); ye("StringLiteralTypeAnnotation", { builder: ["value"], aliases: ["FlowType"], fields: { value: (0, L.validate)((0, L.assertValueType)("string")) } }); ye("StringTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ye("SymbolTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ye("ThisTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ye("TupleTypeAnnotation", { visitor: ["types"], aliases: ["FlowType"], fields: { types: (0, L.validate)((0, L.arrayOfType)("FlowType")) } }); ye("TypeofTypeAnnotation", { visitor: ["argument"], aliases: ["FlowType"], fields: { argument: (0, L.validateType)("FlowType") } }); ye("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") } }); ye("TypeAnnotation", { visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, L.validateType)("FlowType") } }); ye("TypeCastExpression", { visitor: ["expression", "typeAnnotation"], aliases: ["ExpressionWrapper", "Expression"], fields: { expression: (0, L.validateType)("Expression"), typeAnnotation: (0, L.validateType)("TypeAnnotation") } }); ye("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") } }); ye("TypeParameterDeclaration", { visitor: ["params"], fields: { params: (0, L.validate)((0, L.arrayOfType)("TypeParameter")) } }); ye("TypeParameterInstantiation", { visitor: ["params"], fields: { params: (0, L.validate)((0, L.arrayOfType)("FlowType")) } }); ye("UnionTypeAnnotation", { visitor: ["types"], aliases: ["FlowType"], fields: { types: (0, L.validate)((0, L.arrayOfType)("FlowType")) } }); ye("Variance", { builder: ["kind"], fields: { kind: (0, L.validate)((0, L.assertOneOf)("minus", "plus")) } }); ye("VoidTypeAnnotation", { aliases: ["FlowType", "FlowBaseAnnotation"] }); ye("EnumDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "body"], fields: { id: (0, L.validateType)("Identifier"), body: (0, L.validateType)(["EnumBooleanBody", "EnumNumberBody", "EnumStringBody", "EnumSymbolBody"]) } }); ye("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")) } }); ye("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")) } }); ye("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")) } }); ye("EnumSymbolBody", { aliases: ["EnumBody"], visitor: ["members"], fields: { members: (0, L.validateArrayOfType)("EnumDefaultedMember"), hasUnknownMembers: (0, L.validate)((0, L.assertValueType)("boolean")) } }); ye("EnumBooleanMember", { aliases: ["EnumMember"], visitor: ["id"], fields: { id: (0, L.validateType)("Identifier"), init: (0, L.validateType)("BooleanLiteral") } }); ye("EnumNumberMember", { aliases: ["EnumMember"], visitor: ["id", "init"], fields: { id: (0, L.validateType)("Identifier"), init: (0, L.validateType)("NumericLiteral") } }); ye("EnumStringMember", { aliases: ["EnumMember"], visitor: ["id", "init"], fields: { id: (0, L.validateType)("Identifier"), init: (0, L.validateType)("StringLiteral") } }); ye("EnumDefaultedMember", { aliases: ["EnumMember"], visitor: ["id"], fields: { id: (0, L.validateType)("Identifier") } }); ye("IndexedAccessType", { visitor: ["objectType", "indexType"], aliases: ["FlowType"], fields: { objectType: (0, L.validateType)("FlowType"), indexType: (0, L.validateType)("FlowType") } }); ye("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 gE = T(() => { "use strict"; var et = xn(), rr = (0, et.defineAliasedType)("JSX"); rr("JSXAttribute", { visitor: ["name", "value"], aliases: ["Immutable"], fields: { name: { validate: (0, et.assertNodeType)("JSXIdentifier", "JSXNamespacedName") }, value: { optional: !0, validate: (0, et.assertNodeType)("JSXElement", "JSXFragment", "StringLiteral", "JSXExpressionContainer") } } }); rr("JSXClosingElement", { visitor: ["name"], aliases: ["Immutable"], fields: { name: { validate: (0, et.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName") } } }); rr("JSXElement", { builder: ["openingElement", "closingElement", "children", "selfClosing"], visitor: ["openingElement", "children", "closingElement"], aliases: ["Immutable", "Expression"], fields: Object.assign({ openingElement: { validate: (0, et.assertNodeType)("JSXOpeningElement") }, closingElement: { optional: !0, validate: (0, et.assertNodeType)("JSXClosingElement") }, children: { validate: (0, et.chain)((0, et.assertValueType)("array"), (0, et.assertEach)((0, et.assertNodeType)("JSXText", "JSXExpressionContain\ er", "JSXSpreadChild", "JSXElement", "JSXFragment"))) } }, { selfClosing: { validate: (0, et.assertValueType)("boolean"), optional: !0 } }) }); rr("JSXEmptyExpression", {}); rr("JSXExpressionContainer", { visitor: ["expression"], aliases: ["Immutable"], fields: { expression: { validate: (0, et.assertNodeType)("Expression", "JSXEmptyExpression") } } }); rr("JSXSpreadChild", { visitor: ["expression"], aliases: ["Immutable"], fields: { expression: { validate: (0, et.assertNodeType)("Expression") } } }); rr("JSXIdentifier", { builder: ["name"], fields: { name: { validate: (0, et.assertValueType)("string") } } }); rr("JSXMemberExpression", { visitor: ["object", "property"], fields: { object: { validate: (0, et.assertNodeType)("JSXMemberExpression", "JSXIdentifier") }, property: { validate: (0, et.assertNodeType)("JSXIdentifier") } } }); rr("JSXNamespacedName", { visitor: ["namespace", "name"], fields: { namespace: { validate: (0, et.assertNodeType)("JSXIdentifier") }, name: { validate: (0, et.assertNodeType)("JSXIdentifier") } } }); rr("JSXOpeningElement", { builder: ["name", "attributes", "selfClosing"], visitor: ["name", "attributes"], aliases: ["Immutable"], fields: { name: { validate: (0, et.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName") }, selfClosing: { default: !1 }, attributes: { validate: (0, et.chain)((0, et.assertValueType)("array"), (0, et.assertEach)((0, et.assertNodeType)("JSXAttribute", "JSXSpreadAttrib\ ute"))) }, typeParameters: { validate: (0, et.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), optional: !0 } } }); rr("JSXSpreadAttribute", { visitor: ["argument"], fields: { argument: { validate: (0, et.assertNodeType)("Expression") } } }); rr("JSXText", { aliases: ["Immutable"], builder: ["value"], fields: { value: { validate: (0, et.assertValueType)("string") } } }); rr("JSXFragment", { builder: ["openingFragment", "closingFragment", "children"], visitor: ["openingFragment", "children", "closingFragment"], aliases: ["Immutable", "Expression"], fields: { openingFragment: { validate: (0, et.assertNodeType)("JSXOpeningFragment") }, closingFragment: { validate: (0, et.assertNodeType)("JSXClosingFragment") }, children: { validate: (0, et.chain)((0, et.assertValueType)("array"), (0, et.assertEach)((0, et.assertNodeType)("JSXText", "JSXExpressionContain\ er", "JSXSpreadChild", "JSXElement", "JSXFragment"))) } } }); rr("JSXOpeningFragment", { aliases: ["Immutable"] }); rr("JSXClosingFragment", { aliases: ["Immutable"] }); }); // ../node_modules/@babel/types/lib/definitions/placeholders.js var Pp = T((Qn) => { "use strict"; Object.defineProperty(Qn, "__esModule", { value: !0 }); Qn.PLACEHOLDERS_FLIPPED_ALIAS = Qn.PLACEHOLDERS_ALIAS = Qn.PLACEHOLDERS = void 0; var G8 = xn(), H8 = Qn.PLACEHOLDERS = ["Identifier", "StringLiteral", "Expression", "Statement", "Declaration", "BlockStatement", "ClassBo\ dy", "Pattern"], Sp = Qn.PLACEHOLDERS_ALIAS = { Declaration: ["Statement"], Pattern: ["PatternLike", "LVal"] }; for (let e of H8) { let t = G8.ALIAS_KEYS[e]; t != null && t.length && (Sp[e] = t); } var xp = Qn.PLACEHOLDERS_FLIPPED_ALIAS = {}; Object.keys(Sp).forEach((e) => { Sp[e].forEach((t) => { hasOwnProperty.call(xp, t) || (xp[t] = []), xp[t].push(e); }); }); }); // ../node_modules/@babel/types/lib/definitions/misc.js var bE = T(() => { "use strict"; var vl = xn(), Y8 = Pp(), Ap = (0, vl.defineAliasedType)("Miscellaneous"); Ap("Noop", { visitor: [] }); Ap("Placeholder", { visitor: [], builder: ["expectedNode", "name"], fields: { name: { validate: (0, vl.assertNodeType)("Identifier") }, expectedNode: { validate: (0, vl.assertOneOf)(...Y8.PLACEHOLDERS) } } }); Ap("V8IntrinsicIdentifier", { builder: ["name"], fields: { name: { validate: (0, vl.assertValueType)("string") } } }); }); // ../node_modules/@babel/types/lib/definitions/experimental.js var EE = T(() => { "use strict"; var Qe = xn(); (0, Qe.default)("ArgumentPlaceholder", {}); (0, Qe.default)("BindExpression", { visitor: ["object", "callee"], aliases: ["Expression"], fields: process.env.BABEL_TYPES_8_BREAKING ? { object: { validate: (0, Qe.assertNodeType)("Expression") }, callee: { validate: (0, Qe.assertNodeType)("Expression") } } : { object: { validate: Object.assign(() => { }, { oneOfNodeTypes: ["Expression"] }) }, callee: { validate: Object.assign(() => { }, { oneOfNodeTypes: ["Expression"] }) } } }); (0, Qe.default)("ImportAttribute", { visitor: ["key", "value"], fields: { key: { validate: (0, Qe.assertNodeType)("Identifier", "StringLiteral") }, value: { validate: (0, Qe.assertNodeType)("StringLiteral") } } }); (0, Qe.default)("Decorator", { visitor: ["expression"], fields: { expression: { validate: (0, Qe.assertNodeType)("Expression") } } }); (0, Qe.default)("DoExpression", { visitor: ["body"], builder: ["body", "async"], aliases: ["Expression"], fields: { body: { validate: (0, Qe.assertNodeType)("BlockStatement") }, async: { validate: (0, Qe.assertValueType)("boolean"), default: !1 } } }); (0, Qe.default)("ExportDefaultSpecifier", { visitor: ["exported"], aliases: ["ModuleSpecifier"], fields: { exported: { validate: (0, Qe.assertNodeType)("Identifier") } } }); (0, Qe.default)("RecordExpression", { visitor: ["properties"], aliases: ["Expression"], fields: { properties: { validate: (0, Qe.chain)((0, Qe.assertValueType)("array"), (0, Qe.assertEach)((0, Qe.assertNodeType)("ObjectProperty", "SpreadElement"))) } } }); (0, Qe.default)("TupleExpression", { fields: { elements: { validate: (0, Qe.chain)((0, Qe.assertValueType)("array"), (0, Qe.assertEach)((0, Qe.assertNodeType)("Expression", "SpreadElement"))), default: [] } }, visitor: ["elements"], aliases: ["Expression"] }); (0, Qe.default)("DecimalLiteral", { builder: ["value"], fields: { value: { validate: (0, Qe.assertValueType)("string") } }, aliases: ["Expression", "Pureish", "Literal", "Immutable"] }); (0, Qe.default)("ModuleExpression", { visitor: ["body"], fields: { body: { validate: (0, Qe.assertNodeType)("Program") } }, aliases: ["Expression"] }); (0, Qe.default)("TopicReference", { aliases: ["Expression"] }); (0, Qe.default)("PipelineTopicExpression", { builder: ["expression"], visitor: ["expression"], fields: { expression: { validate: (0, Qe.assertNodeType)("Expression") } }, aliases: ["Expression"] }); (0, Qe.default)("PipelineBareFunction", { builder: ["callee"], visitor: ["callee"], fields: { callee: { validate: (0, Qe.assertNodeType)("Expression") } }, aliases: ["Expression"] }); (0, Qe.default)("PipelinePrimaryTopicReference", { aliases: ["Expression"] }); }); // ../node_modules/@babel/types/lib/definitions/typescript.js var wE = T(() => { "use strict"; var $ = xn(), vE = vp(), z8 = yi(), we = (0, $.defineAliasedType)("TypeScript"), hr = (0, $.assertValueType)("boolean"), TE = /* @__PURE__ */ s( () => ({ returnType: { validate: (0, $.assertNodeType)("TSTypeAnnotation", "Noop"), optional: !0 }, typeParameters: { validate: (0, $.assertNodeType)("TSTypeParameterDeclaration", "Noop"), optional: !0 } }), "tSFunctionTypeAnnotationCommon"); we("TSParameterProperty", { aliases: ["LVal"], visitor: ["parameter"], fields: { accessibility: { validate: (0, $.assertOneOf)("public", "private", "protected"), optional: !0 }, readonly: { validate: (0, $.assertValueType)("boolean"), optional: !0 }, parameter: { validate: (0, $.assertNodeType)("Identifier", "AssignmentPattern") }, override: { validate: (0, $.assertValueType)("boolean"), optional: !0 }, decorators: { validate: (0, $.chain)((0, $.assertValueType)("array"), (0, $.assertEach)((0, $.assertNodeType)("Decorator"))), optional: !0 } } }); we("TSDeclareFunction", { aliases: ["Statement", "Declaration"], visitor: ["id", "typeParameters", "params", "returnType"], fields: Object.assign({}, (0, vE.functionDeclarationCommon)(), TE()) }); we("TSDeclareMethod", { visitor: ["decorators", "key", "typeParameters", "params", "returnType"], fields: Object.assign({}, (0, vE.classMethodOrDeclareMethodCommon)(), TE()) }); we("TSQualifiedName", { aliases: ["TSEntityName"], visitor: ["left", "right"], fields: { left: (0, $.validateType)("TSEntityName"), right: (0, $.validateType)("Identifier") } }); var Tl = /* @__PURE__ */ s(() => ({ typeParameters: (0, $.validateOptionalType)("TSTypeParameterDeclaration"), parameters: (0, $.validateArrayOfType)(["ArrayPattern", "Identifier", "ObjectPattern", "RestElement"]), typeAnnotation: (0, $.validateOptionalType)("TSTypeAnnotation") }), "signatureDeclarationCommon"), xE = { aliases: ["TSTypeElement"], visitor: ["typeParameters", "parameters", "typeAnnotation"], fields: Tl() }; we("TSCallSignatureDeclaration", xE); we("TSConstructSignatureDeclaration", xE); var SE = /* @__PURE__ */ s(() => ({ key: (0, $.validateType)("Expression"), computed: { default: !1 }, optional: (0, $.validateOptional)(hr) }), "namedTypeElementCommon"); we("TSPropertySignature", { aliases: ["TSTypeElement"], visitor: ["key", "typeAnnotation"], fields: Object.assign({}, SE(), { readonly: (0, $.validateOptional)(hr), typeAnnotation: (0, $.validateOptionalType)("TSTypeAnnotation"), kind: { validate: (0, $.assertOneOf)("get", "set") } }) }); we("TSMethodSignature", { aliases: ["TSTypeElement"], visitor: ["key", "typeParameters", "parameters", "typeAnnotation"], fields: Object.assign({}, Tl(), SE(), { kind: { validate: (0, $.assertOneOf)("method", "get", "set") } }) }); we("TSIndexSignature", { aliases: ["TSTypeElement"], visitor: ["parameters", "typeAnnotation"], fields: { readonly: (0, $.validateOptional)(hr), static: (0, $.validateOptional)(hr), parameters: (0, $.validateArrayOfType)("Identifier"), typeAnnotation: (0, $.validateOptionalType)("TSTypeAnnotation") } }); var J8 = ["TSAnyKeyword", "TSBooleanKeyword", "TSBigIntKeyword", "TSIntrinsicKeyword", "TSNeverKeyword", "TSNullKeyword", "TSNumberKeyword", "TSObjectKeyword", "TSStringKeyword", "TSSymbolKeyword", "TSUndefinedKeyword", "TSUnknownKeyword", "TSVoidKeyword"]; for (let e of J8) we(e, { aliases: ["TSType", "TSBaseType"], visitor: [], fields: {} }); we("TSThisType", { aliases: ["TSType", "TSBaseType"], visitor: [], fields: {} }); var PE = { aliases: ["TSType"], visitor: ["typeParameters", "parameters", "typeAnnotation"] }; we("TSFunctionType", Object.assign({}, PE, { fields: Tl() })); we("TSConstructorType", Object.assign({}, PE, { fields: Object.assign({}, Tl(), { abstract: (0, $.validateOptional)(hr) }) })); we("TSTypeReference", { aliases: ["TSType"], visitor: ["typeName", "typeParameters"], fields: { typeName: (0, $.validateType)("TSEntityName"), typeParameters: (0, $.validateOptionalType)("TSTypeParameterInstantiation") } }); we("TSTypePredicate", { aliases: ["TSType"], visitor: ["parameterName", "typeAnnotation"], builder: ["parameterName", "typeAnnotation", "asserts"], fields: { parameterName: (0, $.validateType)(["Identifier", "TSThisType"]), typeAnnotation: (0, $.validateOptionalType)("TSTypeAnnotation"), asserts: (0, $.validateOptional)(hr) } }); we("TSTypeQuery", { aliases: ["TSType"], visitor: ["exprName", "typeParameters"], fields: { exprName: (0, $.validateType)(["TSEntityName", "TSImportType"]), typeParameters: (0, $.validateOptionalType)("TSTypeParameterInstantiation") } }); we("TSTypeLiteral", { aliases: ["TSType"], visitor: ["members"], fields: { members: (0, $.validateArrayOfType)("TSTypeElement") } }); we("TSArrayType", { aliases: ["TSType"], visitor: ["elementType"], fields: { elementType: (0, $.validateType)("TSType") } }); we("TSTupleType", { aliases: ["TSType"], visitor: ["elementTypes"], fields: { elementTypes: (0, $.validateArrayOfType)(["TSType", "TSNamedTupleMember"]) } }); we("TSOptionalType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, $.validateType)("TSType") } }); we("TSRestType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, $.validateType)("TSType") } }); we("TSNamedTupleMember", { visitor: ["label", "elementType"], builder: ["label", "elementType", "optional"], fields: { label: (0, $.validateType)("Identifier"), optional: { validate: hr, default: !1 }, elementType: (0, $.validateType)("TSType") } }); var AE = { aliases: ["TSType"], visitor: ["types"], fields: { types: (0, $.validateArrayOfType)("TSType") } }; we("TSUnionType", AE); we("TSIntersectionType", AE); we("TSConditionalType", { aliases: ["TSType"], visitor: ["checkType", "extendsType", "trueType", "falseType"], fields: { checkType: (0, $.validateType)("TSType"), extendsType: (0, $.validateType)("TSType"), trueType: (0, $.validateType)("TSType"), falseType: (0, $.validateType)("TSType") } }); we("TSInferType", { aliases: ["TSType"], visitor: ["typeParameter"], fields: { typeParameter: (0, $.validateType)("TSTypeParameter") } }); we("TSParenthesizedType", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { typeAnnotation: (0, $.validateType)("TSType") } }); we("TSTypeOperator", { aliases: ["TSType"], visitor: ["typeAnnotation"], fields: { operator: (0, $.validate)((0, $.assertValueType)("string")), typeAnnotation: (0, $.validateType)("TSType") } }); we("TSIndexedAccessType", { aliases: ["TSType"], visitor: ["objectType", "indexType"], fields: { objectType: (0, $.validateType)("TSType"), indexType: (0, $.validateType)("TSType") } }); we("TSMappedType", { aliases: ["TSType"], visitor: ["typeParameter", "typeAnnotation", "nameType"], fields: { readonly: (0, $.validateOptional)((0, $.assertOneOf)(!0, !1, "+", "-")), typeParameter: (0, $.validateType)("TSTypeParameter"), optional: (0, $.validateOptional)((0, $.assertOneOf)(!0, !1, "+", "-")), typeAnnotation: (0, $.validateOptionalType)("TSType"), nameType: (0, $.validateOptionalType)("TSType") } }); we("TSLiteralType", { aliases: ["TSType", "TSBaseType"], visitor: ["literal"], fields: { literal: { validate: function() { let e = (0, $.assertNodeType)("NumericLiteral", "BigIntLiteral"), t = (0, $.assertOneOf)("-"), r = (0, $.assertNodeType)("NumericL\ iteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral"); function n(i, a, o) { (0, z8.default)("UnaryExpression", o) ? (t(o, "operator", o.operator), e(o, "argument", o.argument)) : r(i, a, o); } return s(n, "validator"), n.oneOfNodeTypes = ["NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiter\ al", "UnaryExpression"], n; }() } } }); we("TSExpressionWithTypeArguments", { aliases: ["TSType"], visitor: ["expression", "typeParameters"], fields: { expression: (0, $.validateType)("TSEntityName"), typeParameters: (0, $.validateOptionalType)("TSTypeParameterInstantiation") } }); we("TSInterfaceDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "typeParameters", "extends", "body"], fields: { declare: (0, $.validateOptional)(hr), id: (0, $.validateType)("Identifier"), typeParameters: (0, $.validateOptionalType)("TSTypeParameterDeclaration"), extends: (0, $.validateOptional)((0, $.arrayOfType)("TSExpressionWithTypeArguments")), body: (0, $.validateType)("TSInterfaceBody") } }); we("TSInterfaceBody", { visitor: ["body"], fields: { body: (0, $.validateArrayOfType)("TSTypeElement") } }); we("TSTypeAliasDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "typeParameters", "typeAnnotation"], fields: { declare: (0, $.validateOptional)(hr), id: (0, $.validateType)("Identifier"), typeParameters: (0, $.validateOptionalType)("TSTypeParameterDeclaration"), typeAnnotation: (0, $.validateType)("TSType") } }); we("TSInstantiationExpression", { aliases: ["Expression"], visitor: ["expression", "typeParameters"], fields: { expression: (0, $.validateType)("Expression"), typeParameters: (0, $.validateOptionalType)("TSTypeParameterInstantiation") } }); var CE = { aliases: ["Expression", "LVal", "PatternLike"], visitor: ["expression", "typeAnnotation"], fields: { expression: (0, $.validateType)("Expression"), typeAnnotation: (0, $.validateType)("TSType") } }; we("TSAsExpression", CE); we("TSSatisfiesExpression", CE); we("TSTypeAssertion", { aliases: ["Expression", "LVal", "PatternLike"], visitor: ["typeAnnotation", "expression"], fields: { typeAnnotation: (0, $.validateType)("TSType"), expression: (0, $.validateType)("Expression") } }); we("TSEnumDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "members"], fields: { declare: (0, $.validateOptional)(hr), const: (0, $.validateOptional)(hr), id: (0, $.validateType)("Identifier"), members: (0, $.validateArrayOfType)("TSEnumMember"), initializer: (0, $.validateOptionalType)("Expression") } }); we("TSEnumMember", { visitor: ["id", "initializer"], fields: { id: (0, $.validateType)(["Identifier", "StringLiteral"]), initializer: (0, $.validateOptionalType)("Expression") } }); we("TSModuleDeclaration", { aliases: ["Statement", "Declaration"], visitor: ["id", "body"], fields: { declare: (0, $.validateOptional)(hr), global: (0, $.validateOptional)(hr), id: (0, $.validateType)(["Identifier", "StringLiteral"]), body: (0, $.validateType)(["TSModuleBlock", "TSModuleDeclaration"]) } }); we("TSModuleBlock", { aliases: ["Scopable", "Block", "BlockParent", "FunctionParent"], visitor: ["body"], fields: { body: (0, $.validateArrayOfType)("Statement") } }); we("TSImportType", { aliases: ["TSType"], visitor: ["argument", "qualifier", "typeParameters"], fields: { argument: (0, $.validateType)("StringLiteral"), qualifier: (0, $.validateOptionalType)("TSEntityName"), typeParameters: (0, $.validateOptionalType)("TSTypeParameterInstantiation"), options: { validate: (0, $.assertNodeType)("Expression"), optional: !0 } } }); we("TSImportEqualsDeclaration", { aliases: ["Statement"], visitor: ["id", "moduleReference"], fields: { isExport: (0, $.validate)(hr), id: (0, $.validateType)("Identifier"), moduleReference: (0, $.validateType)(["TSEntityName", "TSExternalModuleReference"]), importKind: { validate: (0, $.assertOneOf)("type", "value"), optional: !0 } } }); we("TSExternalModuleReference", { visitor: ["expression"], fields: { expression: (0, $.validateType)("StringLiteral") } }); we("TSNonNullExpression", { aliases: ["Expression", "LVal", "PatternLike"], visitor: ["expression"], fields: { expression: (0, $.validateType)("Expression") } }); we("TSExportAssignment", { aliases: ["Statement"], visitor: ["expression"], fields: { expression: (0, $.validateType)("Expression") } }); we("TSNamespaceExportDeclaration", { aliases: ["Statement"], visitor: ["id"], fields: { id: (0, $.validateType)("Identifier") } }); we("TSTypeAnnotation", { visitor: ["typeAnnotation"], fields: { typeAnnotation: { validate: (0, $.assertNodeType)("TSType") } } }); we("TSTypeParameterInstantiation", { visitor: ["params"], fields: { params: { validate: (0, $.chain)((0, $.assertValueType)("array"), (0, $.assertEach)((0, $.assertNodeType)("TSType"))) } } }); we("TSTypeParameterDeclaration", { visitor: ["params"], fields: { params: { validate: (0, $.chain)((0, $.assertValueType)("array"), (0, $.assertEach)((0, $.assertNodeType)("TSTypeParameter"))) } } }); we("TSTypeParameter", { builder: ["constraint", "default", "name"], visitor: ["constraint", "default"], fields: { name: { validate: (0, $.assertValueType)("string") }, in: { validate: (0, $.assertValueType)("boolean"), optional: !0 }, out: { validate: (0, $.assertValueType)("boolean"), optional: !0 }, const: { validate: (0, $.assertValueType)("boolean"), optional: !0 }, constraint: { validate: (0, $.assertNodeType)("TSType"), optional: !0 }, default: { validate: (0, $.assertNodeType)("TSType"), optional: !0 } } }); }); // ../node_modules/@babel/types/lib/definitions/deprecated-aliases.js var DE = T((xl) => { "use strict"; Object.defineProperty(xl, "__esModule", { value: !0 }); xl.DEPRECATED_ALIASES = void 0; var QEe = xl.DEPRECATED_ALIASES = { ModuleDeclaration: "ImportOrExportDeclaration" }; }); // ../node_modules/@babel/types/lib/definitions/index.js var Cr = T((nr) => { "use strict"; Object.defineProperty(nr, "__esModule", { value: !0 }); Object.defineProperty(nr, "ALIAS_KEYS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Ft.ALIAS_KEYS; }, "get") }); Object.defineProperty(nr, "BUILDER_KEYS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Ft.BUILDER_KEYS; }, "get") }); Object.defineProperty(nr, "DEPRECATED_ALIASES", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Cp.DEPRECATED_ALIASES; }, "get") }); Object.defineProperty(nr, "DEPRECATED_KEYS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Ft.DEPRECATED_KEYS; }, "get") }); Object.defineProperty(nr, "FLIPPED_ALIAS_KEYS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Ft.FLIPPED_ALIAS_KEYS; }, "get") }); Object.defineProperty(nr, "NODE_FIELDS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Ft.NODE_FIELDS; }, "get") }); Object.defineProperty(nr, "NODE_PARENT_VALIDATIONS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Ft.NODE_PARENT_VALIDATIONS; }, "get") }); Object.defineProperty(nr, "PLACEHOLDERS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return ka.PLACEHOLDERS; }, "get") }); Object.defineProperty(nr, "PLACEHOLDERS_ALIAS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return ka.PLACEHOLDERS_ALIAS; }, "get") }); Object.defineProperty(nr, "PLACEHOLDERS_FLIPPED_ALIAS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return ka.PLACEHOLDERS_FLIPPED_ALIAS; }, "get") }); nr.TYPES = void 0; Object.defineProperty(nr, "VISITOR_KEYS", { enumerable: !0, get: /* @__PURE__ */ s(function() { return Ft.VISITOR_KEYS; }, "get") }); var Zn = G1(); vp(); yE(); gE(); bE(); EE(); wE(); var Ft = xn(), ka = Pp(), Cp = DE(); Object.keys(Cp.DEPRECATED_ALIASES).forEach((e) => { Ft.FLIPPED_ALIAS_KEYS[e] = Ft.FLIPPED_ALIAS_KEYS[Cp.DEPRECATED_ALIASES[e]]; }); Zn(Ft.VISITOR_KEYS); Zn(Ft.ALIAS_KEYS); Zn(Ft.FLIPPED_ALIAS_KEYS); Zn(Ft.NODE_FIELDS); Zn(Ft.BUILDER_KEYS); Zn(Ft.DEPRECATED_KEYS); Zn(ka.PLACEHOLDERS_ALIAS); Zn(ka.PLACEHOLDERS_FLIPPED_ALIAS); var eve = nr.TYPES = [].concat(Object.keys(Ft.VISITOR_KEYS), Object.keys(Ft.FLIPPED_ALIAS_KEYS), Object.keys(Ft.DEPRECATED_KEYS)); }); // ../node_modules/@babel/types/lib/validators/validate.js var bl = T((Fa) => { "use strict"; Object.defineProperty(Fa, "__esModule", { value: !0 }); Fa.default = X8; Fa.validateChild = OE; Fa.validateField = _E; var IE = Cr(); function X8(e, t, r) { if (!e) return; let n = IE.NODE_FIELDS[e.type]; if (!n) return; let i = n[t]; _E(e, t, r, i), OE(e, t, r); } s(X8, "validate"); function _E(e, t, r, n) { n != null && n.validate && (n.optional && r == null || n.validate(e, t, r)); } s(_E, "validateField"); function OE(e, t, r) { if (r == null) return; let n = IE.NODE_PARENT_VALIDATIONS[r.type]; n && n(e, t, r); } s(OE, "validateChild"); }); // ../node_modules/@babel/types/lib/builders/validateNode.js var NE = T((wp) => { "use strict"; Object.defineProperty(wp, "__esModule", { value: !0 }); wp.default = e6; var Q8 = bl(), Z8 = Pe(); function e6(e) { let t = Z8.BUILDER_KEYS[e.type]; for (let r of t) (0, Q8.default)(e, r, e[r]); return e; } s(e6, "validateNode"); }); // ../node_modules/@babel/types/lib/builders/generated/index.js var sr = T((g) => { "use strict"; Object.defineProperty(g, "__esModule", { value: !0 }); g.anyTypeAnnotation = O5; g.argumentPlaceholder = aL; g.arrayExpression = t6; g.arrayPattern = J6; g.arrayTypeAnnotation = N5; g.arrowFunctionExpression = X6; g.assignmentExpression = r6; g.assignmentPattern = z6; g.awaitExpression = E5; g.bigIntLiteral = T5; g.binaryExpression = n6; g.bindExpression = oL; g.blockStatement = o6; g.booleanLiteral = w6; g.booleanLiteralTypeAnnotation = k5; g.booleanTypeAnnotation = B5; g.breakStatement = l6; g.callExpression = u6; g.catchClause = c6; g.classAccessorProperty = C5; g.classBody = Q6; g.classDeclaration = e5; g.classExpression = Z6; g.classImplements = j5; g.classMethod = p5; g.classPrivateMethod = D5; g.classPrivateProperty = w5; g.classProperty = A5; g.conditionalExpression = f6; g.continueStatement = p6; g.debuggerStatement = d6; g.decimalLiteral = hL; g.declareClass = L5; g.declareExportAllDeclaration = G5; g.declareExportDeclaration = K5; g.declareFunction = M5; g.declareInterface = R5; g.declareModule = q5; g.declareModuleExports = U5; g.declareOpaqueType = $5; g.declareTypeAlias = V5; g.declareVariable = W5; g.declaredPredicate = H5; g.decorator = uL; g.directive = i6; g.directiveLiteral = a6; g.doExpression = cL; g.doWhileStatement = h6; g.emptyStatement = m6; g.emptyTypeAnnotation = sj; g.enumBooleanBody = Nj; g.enumBooleanMember = jj; g.enumDeclaration = Oj; g.enumDefaultedMember = Rj; g.enumNumberBody = Bj; g.enumNumberMember = Lj; g.enumStringBody = kj; g.enumStringMember = Mj; g.enumSymbolBody = Fj; g.existsTypeAnnotation = Y5; g.exportAllDeclaration = t5; g.exportDefaultDeclaration = r5; g.exportDefaultSpecifier = fL; g.exportNamedDeclaration = n5; g.exportNamespaceSpecifier = x5; g.exportSpecifier = s5; g.expressionStatement = y6; g.file = g6; g.forInStatement = b6; g.forOfStatement = i5; g.forStatement = E6; g.functionDeclaration = v6; g.functionExpression = T6; g.functionTypeAnnotation = z5; g.functionTypeParam = J5; g.genericTypeAnnotation = X5; g.identifier = x6; g.ifStatement = S6; g.import = v5; g.importAttribute = lL; g.importDeclaration = a5; g.importDefaultSpecifier = o5; g.importExpression = c5; g.importNamespaceSpecifier = l5; g.importSpecifier = u5; g.indexedAccessType = qj; g.inferredPredicate = Q5; g.interfaceDeclaration = ej; g.interfaceExtends = Z5; g.interfaceTypeAnnotation = tj; g.interpreterDirective = s6; g.intersectionTypeAnnotation = rj; g.jSXAttribute = g.jsxAttribute = Vj; g.jSXClosingElement = g.jsxClosingElement = $j; g.jSXClosingFragment = g.jsxClosingFragment = rL; g.jSXElement = g.jsxElement = Wj; g.jSXEmptyExpression = g.jsxEmptyExpression = Kj; g.jSXExpressionContainer = g.jsxExpressionContainer = Gj; g.jSXFragment = g.jsxFragment = eL; g.jSXIdentifier = g.jsxIdentifier = Yj; g.jSXMemberExpression = g.jsxMemberExpression = zj; g.jSXNamespacedName = g.jsxNamespacedName = Jj; g.jSXOpeningElement = g.jsxOpeningElement = Xj; g.jSXOpeningFragment = g.jsxOpeningFragment = tL; g.jSXSpreadAttribute = g.jsxSpreadAttribute = Qj; g.jSXSpreadChild = g.jsxSpreadChild = Hj; g.jSXText = g.jsxText = Zj; g.labeledStatement = P6; g.logicalExpression = D6; g.memberExpression = I6; g.metaProperty = f5; g.mixedTypeAnnotation = nj; g.moduleExpression = mL; g.newExpression = _6; g.noop = nL; g.nullLiteral = C6; g.nullLiteralTypeAnnotation = F5; g.nullableTypeAnnotation = ij; g.numberLiteral = OM; g.numberLiteralTypeAnnotation = aj; g.numberTypeAnnotation = oj; g.numericLiteral = BE; g.objectExpression = N6; g.objectMethod = B6; g.objectPattern = d5; g.objectProperty = k6; g.objectTypeAnnotation = lj; g.objectTypeCallProperty = cj; g.objectTypeIndexer = fj; g.objectTypeInternalSlot = uj; g.objectTypeProperty = pj; g.objectTypeSpreadProperty = dj; g.opaqueType = hj; g.optionalCallExpression = P5; g.optionalIndexedAccessType = Uj; g.optionalMemberExpression = S5; g.parenthesizedExpression = L6; g.pipelineBareFunction = bL; g.pipelinePrimaryTopicReference = EL; g.pipelineTopicExpression = gL; g.placeholder = sL; g.privateName = I5; g.program = O6; g.qualifiedTypeIdentifier = mj; g.recordExpression = pL; g.regExpLiteral = kE; g.regexLiteral = NM; g.restElement = FE; g.restProperty = BM; g.returnStatement = F6; g.sequenceExpression = j6; g.spreadElement = jE; g.spreadProperty = kM; g.staticBlock = _5; g.stringLiteral = A6; g.stringLiteralTypeAnnotation = yj; g.stringTypeAnnotation = gj; g.super = h5; g.switchCase = M6; g.switchStatement = R6; g.symbolTypeAnnotation = bj; g.taggedTemplateExpression = m5; g.templateElement = y5; g.templateLiteral = g5; g.thisExpression = q6; g.thisTypeAnnotation = Ej; g.throwStatement = U6; g.topicReference = yL; g.tryStatement = V6; g.tSAnyKeyword = g.tsAnyKeyword = IL; g.tSArrayType = g.tsArrayType = zL; g.tSAsExpression = g.tsAsExpression = hM; g.tSBigIntKeyword = g.tsBigIntKeyword = OL; g.tSBooleanKeyword = g.tsBooleanKeyword = _L; g.tSCallSignatureDeclaration = g.tsCallSignatureDeclaration = PL; g.tSConditionalType = g.tsConditionalType = rM; g.tSConstructSignatureDeclaration = g.tsConstructSignatureDeclaration = AL; g.tSConstructorType = g.tsConstructorType = WL; g.tSDeclareFunction = g.tsDeclareFunction = TL; g.tSDeclareMethod = g.tsDeclareMethod = xL; g.tSEnumDeclaration = g.tsEnumDeclaration = gM; g.tSEnumMember = g.tsEnumMember = bM; g.tSExportAssignment = g.tsExportAssignment = AM; g.tSExpressionWithTypeArguments = g.tsExpressionWithTypeArguments = uM; g.tSExternalModuleReference = g.tsExternalModuleReference = SM; g.tSFunctionType = g.tsFunctionType = $L; g.tSImportEqualsDeclaration = g.tsImportEqualsDeclaration = xM; g.tSImportType = g.tsImportType = TM; g.tSIndexSignature = g.tsIndexSignature = DL; g.tSIndexedAccessType = g.tsIndexedAccessType = aM; g.tSInferType = g.tsInferType = nM; g.tSInstantiationExpression = g.tsInstantiationExpression = dM; g.tSInterfaceBody = g.tsInterfaceBody = fM; g.tSInterfaceDeclaration = g.tsInterfaceDeclaration = cM; g.tSIntersectionType = g.tsIntersectionType = tM; g.tSIntrinsicKeyword = g.tsIntrinsicKeyword = NL; g.tSLiteralType = g.tsLiteralType = lM; g.tSMappedType = g.tsMappedType = oM; g.tSMethodSignature = g.tsMethodSignature = wL; g.tSModuleBlock = g.tsModuleBlock = vM; g.tSModuleDeclaration = g.tsModuleDeclaration = EM; g.tSNamedTupleMember = g.tsNamedTupleMember = ZL; g.tSNamespaceExportDeclaration = g.tsNamespaceExportDeclaration = CM; g.tSNeverKeyword = g.tsNeverKeyword = BL; g.tSNonNullExpression = g.tsNonNullExpression = PM; g.tSNullKeyword = g.tsNullKeyword = kL; g.tSNumberKeyword = g.tsNumberKeyword = FL; g.tSObjectKeyword = g.tsObjectKeyword = jL; g.tSOptionalType = g.tsOptionalType = XL; g.tSParameterProperty = g.tsParameterProperty = vL; g.tSParenthesizedType = g.tsParenthesizedType = sM; g.tSPropertySignature = g.tsPropertySignature = CL; g.tSQualifiedName = g.tsQualifiedName = SL; g.tSRestType = g.tsRestType = QL; g.tSSatisfiesExpression = g.tsSatisfiesExpression = mM; g.tSStringKeyword = g.tsStringKeyword = LL; g.tSSymbolKeyword = g.tsSymbolKeyword = ML; g.tSThisType = g.tsThisType = VL; g.tSTupleType = g.tsTupleType = JL; g.tSTypeAliasDeclaration = g.tsTypeAliasDeclaration = pM; g.tSTypeAnnotation = g.tsTypeAnnotation = wM; g.tSTypeAssertion = g.tsTypeAssertion = yM; g.tSTypeLiteral = g.tsTypeLiteral = YL; g.tSTypeOperator = g.tsTypeOperator = iM; g.tSTypeParameter = g.tsTypeParameter = _M; g.tSTypeParameterDeclaration = g.tsTypeParameterDeclaration = IM; g.tSTypeParameterInstantiation = g.tsTypeParameterInstantiation = DM; g.tSTypePredicate = g.tsTypePredicate = GL; g.tSTypeQuery = g.tsTypeQuery = HL; g.tSTypeReference = g.tsTypeReference = KL; g.tSUndefinedKeyword = g.tsUndefinedKeyword = RL; g.tSUnionType = g.tsUnionType = eM; g.tSUnknownKeyword = g.tsUnknownKeyword = qL; g.tSVoidKeyword = g.tsVoidKeyword = UL; g.tupleExpression = dL; g.tupleTypeAnnotation = vj; g.typeAlias = xj; g.typeAnnotation = Sj; g.typeCastExpression = Pj; g.typeParameter = Aj; g.typeParameterDeclaration = Cj; g.typeParameterInstantiation = wj; g.typeofTypeAnnotation = Tj; g.unaryExpression = $6; g.unionTypeAnnotation = Dj; g.updateExpression = W6; g.v8IntrinsicIdentifier = iL; g.variableDeclaration = K6; g.variableDeclarator = G6; g.variance = Ij; g.voidTypeAnnotation = _j; g.whileStatement = H6; g.withStatement = Y6; g.yieldExpression = b5; var N = NE(), Sl = Aa(); function t6(e = []) { return (0, N.default)({ type: "ArrayExpression", elements: e }); } s(t6, "arrayExpression"); function r6(e, t, r) { return (0, N.default)({ type: "AssignmentExpression", operator: e, left: t, right: r }); } s(r6, "assignmentExpression"); function n6(e, t, r) { return (0, N.default)({ type: "BinaryExpression", operator: e, left: t, right: r }); } s(n6, "binaryExpression"); function s6(e) { return (0, N.default)({ type: "InterpreterDirective", value: e }); } s(s6, "interpreterDirective"); function i6(e) { return (0, N.default)({ type: "Directive", value: e }); } s(i6, "directive"); function a6(e) { return (0, N.default)({ type: "DirectiveLiteral", value: e }); } s(a6, "directiveLiteral"); function o6(e, t = []) { return (0, N.default)({ type: "BlockStatement", body: e, directives: t }); } s(o6, "blockStatement"); function l6(e = null) { return (0, N.default)({ type: "BreakStatement", label: e }); } s(l6, "breakStatement"); function u6(e, t) { return (0, N.default)({ type: "CallExpression", callee: e, arguments: t }); } s(u6, "callExpression"); function c6(e = null, t) { return (0, N.default)({ type: "CatchClause", param: e, body: t }); } s(c6, "catchClause"); function f6(e, t, r) { return (0, N.default)({ type: "ConditionalExpression", test: e, consequent: t, alternate: r }); } s(f6, "conditionalExpression"); function p6(e = null) { return (0, N.default)({ type: "ContinueStatement", label: e }); } s(p6, "continueStatement"); function d6() { return { type: "DebuggerStatement" }; } s(d6, "debuggerStatement"); function h6(e, t) { return (0, N.default)({ type: "DoWhileStatement", test: e, body: t }); } s(h6, "doWhileStatement"); function m6() { return { type: "EmptyStatement" }; } s(m6, "emptyStatement"); function y6(e) { return (0, N.default)({ type: "ExpressionStatement", expression: e }); } s(y6, "expressionStatement"); function g6(e, t = null, r = null) { return (0, N.default)({ type: "File", program: e, comments: t, tokens: r }); } s(g6, "file"); function b6(e, t, r) { return (0, N.default)({ type: "ForInStatement", left: e, right: t, body: r }); } s(b6, "forInStatement"); function E6(e = null, t = null, r = null, n) { return (0, N.default)({ type: "ForStatement", init: e, test: t, update: r, body: n }); } s(E6, "forStatement"); function v6(e = null, t, r, n = !1, i = !1) { return (0, N.default)({ type: "FunctionDeclaration", id: e, params: t, body: r, generator: n, async: i }); } s(v6, "functionDeclaration"); function T6(e = null, t, r, n = !1, i = !1) { return (0, N.default)({ type: "FunctionExpression", id: e, params: t, body: r, generator: n, async: i }); } s(T6, "functionExpression"); function x6(e) { return (0, N.default)({ type: "Identifier", name: e }); } s(x6, "identifier"); function S6(e, t, r = null) { return (0, N.default)({ type: "IfStatement", test: e, consequent: t, alternate: r }); } s(S6, "ifStatement"); function P6(e, t) { return (0, N.default)({ type: "LabeledStatement", label: e, body: t }); } s(P6, "labeledStatement"); function A6(e) { return (0, N.default)({ type: "StringLiteral", value: e }); } s(A6, "stringLiteral"); function BE(e) { return (0, N.default)({ type: "NumericLiteral", value: e }); } s(BE, "numericLiteral"); function C6() { return { type: "NullLiteral" }; } s(C6, "nullLiteral"); function w6(e) { return (0, N.default)({ type: "BooleanLiteral", value: e }); } s(w6, "booleanLiteral"); function kE(e, t = "") { return (0, N.default)({ type: "RegExpLiteral", pattern: e, flags: t }); } s(kE, "regExpLiteral"); function D6(e, t, r) { return (0, N.default)({ type: "LogicalExpression", operator: e, left: t, right: r }); } s(D6, "logicalExpression"); function I6(e, t, r = !1, n = null) { return (0, N.default)({ type: "MemberExpression", object: e, property: t, computed: r, optional: n }); } s(I6, "memberExpression"); function _6(e, t) { return (0, N.default)({ type: "NewExpression", callee: e, arguments: t }); } s(_6, "newExpression"); function O6(e, t = [], r = "script", n = null) { return (0, N.default)({ type: "Program", body: e, directives: t, sourceType: r, interpreter: n }); } s(O6, "program"); function N6(e) { return (0, N.default)({ type: "ObjectExpression", properties: e }); } s(N6, "objectExpression"); function B6(e = "method", t, r, n, i = !1, a = !1, o = !1) { return (0, N.default)({ type: "ObjectMethod", kind: e, key: t, params: r, body: n, computed: i, generator: a, async: o }); } s(B6, "objectMethod"); function k6(e, t, r = !1, n = !1, i = null) { return (0, N.default)({ type: "ObjectProperty", key: e, value: t, computed: r, shorthand: n, decorators: i }); } s(k6, "objectProperty"); function FE(e) { return (0, N.default)({ type: "RestElement", argument: e }); } s(FE, "restElement"); function F6(e = null) { return (0, N.default)({ type: "ReturnStatement", argument: e }); } s(F6, "returnStatement"); function j6(e) { return (0, N.default)({ type: "SequenceExpression", expressions: e }); } s(j6, "sequenceExpression"); function L6(e) { return (0, N.default)({ type: "ParenthesizedExpression", expression: e }); } s(L6, "parenthesizedExpression"); function M6(e = null, t) { return (0, N.default)({ type: "SwitchCase", test: e, consequent: t }); } s(M6, "switchCase"); function R6(e, t) { return (0, N.default)({ type: "SwitchStatement", discriminant: e, cases: t }); } s(R6, "switchStatement"); function q6() { return { type: "ThisExpression" }; } s(q6, "thisExpression"); function U6(e) { return (0, N.default)({ type: "ThrowStatement", argument: e }); } s(U6, "throwStatement"); function V6(e, t = null, r = null) { return (0, N.default)({ type: "TryStatement", block: e, handler: t, finalizer: r }); } s(V6, "tryStatement"); function $6(e, t, r = !0) { return (0, N.default)({ type: "UnaryExpression", operator: e, argument: t, prefix: r }); } s($6, "unaryExpression"); function W6(e, t, r = !1) { return (0, N.default)({ type: "UpdateExpression", operator: e, argument: t, prefix: r }); } s(W6, "updateExpression"); function K6(e, t) { return (0, N.default)({ type: "VariableDeclaration", kind: e, declarations: t }); } s(K6, "variableDeclaration"); function G6(e, t = null) { return (0, N.default)({ type: "VariableDeclarator", id: e, init: t }); } s(G6, "variableDeclarator"); function H6(e, t) { return (0, N.default)({ type: "WhileStatement", test: e, body: t }); } s(H6, "whileStatement"); function Y6(e, t) { return (0, N.default)({ type: "WithStatement", object: e, body: t }); } s(Y6, "withStatement"); function z6(e, t) { return (0, N.default)({ type: "AssignmentPattern", left: e, right: t }); } s(z6, "assignmentPattern"); function J6(e) { return (0, N.default)({ type: "ArrayPattern", elements: e }); } s(J6, "arrayPattern"); function X6(e, t, r = !1) { return (0, N.default)({ type: "ArrowFunctionExpression", params: e, body: t, async: r, expression: null }); } s(X6, "arrowFunctionExpression"); function Q6(e) { return (0, N.default)({ type: "ClassBody", body: e }); } s(Q6, "classBody"); function Z6(e = null, t = null, r, n = null) { return (0, N.default)({ type: "ClassExpression", id: e, superClass: t, body: r, decorators: n }); } s(Z6, "classExpression"); function e5(e = null, t = null, r, n = null) { return (0, N.default)({ type: "ClassDeclaration", id: e, superClass: t, body: r, decorators: n }); } s(e5, "classDeclaration"); function t5(e) { return (0, N.default)({ type: "ExportAllDeclaration", source: e }); } s(t5, "exportAllDeclaration"); function r5(e) { return (0, N.default)({ type: "ExportDefaultDeclaration", declaration: e }); } s(r5, "exportDefaultDeclaration"); function n5(e = null, t = [], r = null) { return (0, N.default)({ type: "ExportNamedDeclaration", declaration: e, specifiers: t, source: r }); } s(n5, "exportNamedDeclaration"); function s5(e, t) { return (0, N.default)({ type: "ExportSpecifier", local: e, exported: t }); } s(s5, "exportSpecifier"); function i5(e, t, r, n = !1) { return (0, N.default)({ type: "ForOfStatement", left: e, right: t, body: r, await: n }); } s(i5, "forOfStatement"); function a5(e, t) { return (0, N.default)({ type: "ImportDeclaration", specifiers: e, source: t }); } s(a5, "importDeclaration"); function o5(e) { return (0, N.default)({ type: "ImportDefaultSpecifier", local: e }); } s(o5, "importDefaultSpecifier"); function l5(e) { return (0, N.default)({ type: "ImportNamespaceSpecifier", local: e }); } s(l5, "importNamespaceSpecifier"); function u5(e, t) { return (0, N.default)({ type: "ImportSpecifier", local: e, imported: t }); } s(u5, "importSpecifier"); function c5(e, t = null) { return (0, N.default)({ type: "ImportExpression", source: e, options: t }); } s(c5, "importExpression"); function f5(e, t) { return (0, N.default)({ type: "MetaProperty", meta: e, property: t }); } s(f5, "metaProperty"); function p5(e = "method", t, r, n, i = !1, a = !1, o = !1, l = !1) { return (0, N.default)({ type: "ClassMethod", kind: e, key: t, params: r, body: n, computed: i, static: a, generator: o, async: l }); } s(p5, "classMethod"); function d5(e) { return (0, N.default)({ type: "ObjectPattern", properties: e }); } s(d5, "objectPattern"); function jE(e) { return (0, N.default)({ type: "SpreadElement", argument: e }); } s(jE, "spreadElement"); function h5() { return { type: "Super" }; } s(h5, "_super"); function m5(e, t) { return (0, N.default)({ type: "TaggedTemplateExpression", tag: e, quasi: t }); } s(m5, "taggedTemplateExpression"); function y5(e, t = !1) { return (0, N.default)({ type: "TemplateElement", value: e, tail: t }); } s(y5, "templateElement"); function g5(e, t) { return (0, N.default)({ type: "TemplateLiteral", quasis: e, expressions: t }); } s(g5, "templateLiteral"); function b5(e = null, t = !1) { return (0, N.default)({ type: "YieldExpression", argument: e, delegate: t }); } s(b5, "yieldExpression"); function E5(e) { return (0, N.default)({ type: "AwaitExpression", argument: e }); } s(E5, "awaitExpression"); function v5() { return { type: "Import" }; } s(v5, "_import"); function T5(e) { return (0, N.default)({ type: "BigIntLiteral", value: e }); } s(T5, "bigIntLiteral"); function x5(e) { return (0, N.default)({ type: "ExportNamespaceSpecifier", exported: e }); } s(x5, "exportNamespaceSpecifier"); function S5(e, t, r = !1, n) { return (0, N.default)({ type: "OptionalMemberExpression", object: e, property: t, computed: r, optional: n }); } s(S5, "optionalMemberExpression"); function P5(e, t, r) { return (0, N.default)({ type: "OptionalCallExpression", callee: e, arguments: t, optional: r }); } s(P5, "optionalCallExpression"); function A5(e, t = null, r = null, n = null, i = !1, a = !1) { return (0, N.default)({ type: "ClassProperty", key: e, value: t, typeAnnotation: r, decorators: n, computed: i, static: a }); } s(A5, "classProperty"); function C5(e, t = null, r = null, n = null, i = !1, a = !1) { return (0, N.default)({ type: "ClassAccessorProperty", key: e, value: t, typeAnnotation: r, decorators: n, computed: i, static: a }); } s(C5, "classAccessorProperty"); function w5(e, t = null, r = null, n = !1) { return (0, N.default)({ type: "ClassPrivateProperty", key: e, value: t, decorators: r, static: n }); } s(w5, "classPrivateProperty"); function D5(e = "method", t, r, n, i = !1) { return (0, N.default)({ type: "ClassPrivateMethod", kind: e, key: t, params: r, body: n, static: i }); } s(D5, "classPrivateMethod"); function I5(e) { return (0, N.default)({ type: "PrivateName", id: e }); } s(I5, "privateName"); function _5(e) { return (0, N.default)({ type: "StaticBlock", body: e }); } s(_5, "staticBlock"); function O5() { return { type: "AnyTypeAnnotation" }; } s(O5, "anyTypeAnnotation"); function N5(e) { return (0, N.default)({ type: "ArrayTypeAnnotation", elementType: e }); } s(N5, "arrayTypeAnnotation"); function B5() { return { type: "BooleanTypeAnnotation" }; } s(B5, "booleanTypeAnnotation"); function k5(e) { return (0, N.default)({ type: "BooleanLiteralTypeAnnotation", value: e }); } s(k5, "booleanLiteralTypeAnnotation"); function F5() { return { type: "NullLiteralTypeAnnotation" }; } s(F5, "nullLiteralTypeAnnotation"); function j5(e, t = null) { return (0, N.default)({ type: "ClassImplements", id: e, typeParameters: t }); } s(j5, "classImplements"); function L5(e, t = null, r = null, n) { return (0, N.default)({ type: "DeclareClass", id: e, typeParameters: t, extends: r, body: n }); } s(L5, "declareClass"); function M5(e) { return (0, N.default)({ type: "DeclareFunction", id: e }); } s(M5, "declareFunction"); function R5(e, t = null, r = null, n) { return (0, N.default)({ type: "DeclareInterface", id: e, typeParameters: t, extends: r, body: n }); } s(R5, "declareInterface"); function q5(e, t, r = null) { return (0, N.default)({ type: "DeclareModule", id: e, body: t, kind: r }); } s(q5, "declareModule"); function U5(e) { return (0, N.default)({ type: "DeclareModuleExports", typeAnnotation: e }); } s(U5, "declareModuleExports"); function V5(e, t = null, r) { return (0, N.default)({ type: "DeclareTypeAlias", id: e, typeParameters: t, right: r }); } s(V5, "declareTypeAlias"); function $5(e, t = null, r = null) { return (0, N.default)({ type: "DeclareOpaqueType", id: e, typeParameters: t, supertype: r }); } s($5, "declareOpaqueType"); function W5(e) { return (0, N.default)({ type: "DeclareVariable", id: e }); } s(W5, "declareVariable"); function K5(e = null, t = null, r = null) { return (0, N.default)({ type: "DeclareExportDeclaration", declaration: e, specifiers: t, source: r }); } s(K5, "declareExportDeclaration"); function G5(e) { return (0, N.default)({ type: "DeclareExportAllDeclaration", source: e }); } s(G5, "declareExportAllDeclaration"); function H5(e) { return (0, N.default)({ type: "DeclaredPredicate", value: e }); } s(H5, "declaredPredicate"); function Y5() { return { type: "ExistsTypeAnnotation" }; } s(Y5, "existsTypeAnnotation"); function z5(e = null, t, r = null, n) { return (0, N.default)({ type: "FunctionTypeAnnotation", typeParameters: e, params: t, rest: r, returnType: n }); } s(z5, "functionTypeAnnotation"); function J5(e = null, t) { return (0, N.default)({ type: "FunctionTypeParam", name: e, typeAnnotation: t }); } s(J5, "functionTypeParam"); function X5(e, t = null) { return (0, N.default)({ type: "GenericTypeAnnotation", id: e, typeParameters: t }); } s(X5, "genericTypeAnnotation"); function Q5() { return { type: "InferredPredicate" }; } s(Q5, "inferredPredicate"); function Z5(e, t = null) { return (0, N.default)({ type: "InterfaceExtends", id: e, typeParameters: t }); } s(Z5, "interfaceExtends"); function ej(e, t = null, r = null, n) { return (0, N.default)({ type: "InterfaceDeclaration", id: e, typeParameters: t, extends: r, body: n }); } s(ej, "interfaceDeclaration"); function tj(e = null, t) { return (0, N.default)({ type: "InterfaceTypeAnnotation", extends: e, body: t }); } s(tj, "interfaceTypeAnnotation"); function rj(e) { return (0, N.default)({ type: "IntersectionTypeAnnotation", types: e }); } s(rj, "intersectionTypeAnnotation"); function nj() { return { type: "MixedTypeAnnotation" }; } s(nj, "mixedTypeAnnotation"); function sj() { return { type: "EmptyTypeAnnotation" }; } s(sj, "emptyTypeAnnotation"); function ij(e) { return (0, N.default)({ type: "NullableTypeAnnotation", typeAnnotation: e }); } s(ij, "nullableTypeAnnotation"); function aj(e) { return (0, N.default)({ type: "NumberLiteralTypeAnnotation", value: e }); } s(aj, "numberLiteralTypeAnnotation"); function oj() { return { type: "NumberTypeAnnotation" }; } s(oj, "numberTypeAnnotation"); function lj(e, t = [], r = [], n = [], i = !1) { return (0, N.default)({ type: "ObjectTypeAnnotation", properties: e, indexers: t, callProperties: r, internalSlots: n, exact: i }); } s(lj, "objectTypeAnnotation"); function uj(e, t, r, n, i) { return (0, N.default)({ type: "ObjectTypeInternalSlot", id: e, value: t, optional: r, static: n, method: i }); } s(uj, "objectTypeInternalSlot"); function cj(e) { return (0, N.default)({ type: "ObjectTypeCallProperty", value: e, static: null }); } s(cj, "objectTypeCallProperty"); function fj(e = null, t, r, n = null) { return (0, N.default)({ type: "ObjectTypeIndexer", id: e, key: t, value: r, variance: n, static: null }); } s(fj, "objectTypeIndexer"); function pj(e, t, r = null) { return (0, N.default)({ type: "ObjectTypeProperty", key: e, value: t, variance: r, kind: null, method: null, optional: null, proto: null, static: null }); } s(pj, "objectTypeProperty"); function dj(e) { return (0, N.default)({ type: "ObjectTypeSpreadProperty", argument: e }); } s(dj, "objectTypeSpreadProperty"); function hj(e, t = null, r = null, n) { return (0, N.default)({ type: "OpaqueType", id: e, typeParameters: t, supertype: r, impltype: n }); } s(hj, "opaqueType"); function mj(e, t) { return (0, N.default)({ type: "QualifiedTypeIdentifier", id: e, qualification: t }); } s(mj, "qualifiedTypeIdentifier"); function yj(e) { return (0, N.default)({ type: "StringLiteralTypeAnnotation", value: e }); } s(yj, "stringLiteralTypeAnnotation"); function gj() { return { type: "StringTypeAnnotation" }; } s(gj, "stringTypeAnnotation"); function bj() { return { type: "SymbolTypeAnnotation" }; } s(bj, "symbolTypeAnnotation"); function Ej() { return { type: "ThisTypeAnnotation" }; } s(Ej, "thisTypeAnnotation"); function vj(e) { return (0, N.default)({ type: "TupleTypeAnnotation", types: e }); } s(vj, "tupleTypeAnnotation"); function Tj(e) { return (0, N.default)({ type: "TypeofTypeAnnotation", argument: e }); } s(Tj, "typeofTypeAnnotation"); function xj(e, t = null, r) { return (0, N.default)({ type: "TypeAlias", id: e, typeParameters: t, right: r }); } s(xj, "typeAlias"); function Sj(e) { return (0, N.default)({ type: "TypeAnnotation", typeAnnotation: e }); } s(Sj, "typeAnnotation"); function Pj(e, t) { return (0, N.default)({ type: "TypeCastExpression", expression: e, typeAnnotation: t }); } s(Pj, "typeCastExpression"); function Aj(e = null, t = null, r = null) { return (0, N.default)({ type: "TypeParameter", bound: e, default: t, variance: r, name: null }); } s(Aj, "typeParameter"); function Cj(e) { return (0, N.default)({ type: "TypeParameterDeclaration", params: e }); } s(Cj, "typeParameterDeclaration"); function wj(e) { return (0, N.default)({ type: "TypeParameterInstantiation", params: e }); } s(wj, "typeParameterInstantiation"); function Dj(e) { return (0, N.default)({ type: "UnionTypeAnnotation", types: e }); } s(Dj, "unionTypeAnnotation"); function Ij(e) { return (0, N.default)({ type: "Variance", kind: e }); } s(Ij, "variance"); function _j() { return { type: "VoidTypeAnnotation" }; } s(_j, "voidTypeAnnotation"); function Oj(e, t) { return (0, N.default)({ type: "EnumDeclaration", id: e, body: t }); } s(Oj, "enumDeclaration"); function Nj(e) { return (0, N.default)({ type: "EnumBooleanBody", members: e, explicitType: null, hasUnknownMembers: null }); } s(Nj, "enumBooleanBody"); function Bj(e) { return (0, N.default)({ type: "EnumNumberBody", members: e, explicitType: null, hasUnknownMembers: null }); } s(Bj, "enumNumberBody"); function kj(e) { return (0, N.default)({ type: "EnumStringBody", members: e, explicitType: null, hasUnknownMembers: null }); } s(kj, "enumStringBody"); function Fj(e) { return (0, N.default)({ type: "EnumSymbolBody", members: e, hasUnknownMembers: null }); } s(Fj, "enumSymbolBody"); function jj(e) { return (0, N.default)({ type: "EnumBooleanMember", id: e, init: null }); } s(jj, "enumBooleanMember"); function Lj(e, t) { return (0, N.default)({ type: "EnumNumberMember", id: e, init: t }); } s(Lj, "enumNumberMember"); function Mj(e, t) { return (0, N.default)({ type: "EnumStringMember", id: e, init: t }); } s(Mj, "enumStringMember"); function Rj(e) { return (0, N.default)({ type: "EnumDefaultedMember", id: e }); } s(Rj, "enumDefaultedMember"); function qj(e, t) { return (0, N.default)({ type: "IndexedAccessType", objectType: e, indexType: t }); } s(qj, "indexedAccessType"); function Uj(e, t) { return (0, N.default)({ type: "OptionalIndexedAccessType", objectType: e, indexType: t, optional: null }); } s(Uj, "optionalIndexedAccessType"); function Vj(e, t = null) { return (0, N.default)({ type: "JSXAttribute", name: e, value: t }); } s(Vj, "jsxAttribute"); function $j(e) { return (0, N.default)({ type: "JSXClosingElement", name: e }); } s($j, "jsxClosingElement"); function Wj(e, t = null, r, n = null) { return (0, N.default)({ type: "JSXElement", openingElement: e, closingElement: t, children: r, selfClosing: n }); } s(Wj, "jsxElement"); function Kj() { return { type: "JSXEmptyExpression" }; } s(Kj, "jsxEmptyExpression"); function Gj(e) { return (0, N.default)({ type: "JSXExpressionContainer", expression: e }); } s(Gj, "jsxExpressionContainer"); function Hj(e) { return (0, N.default)({ type: "JSXSpreadChild", expression: e }); } s(Hj, "jsxSpreadChild"); function Yj(e) { return (0, N.default)({ type: "JSXIdentifier", name: e }); } s(Yj, "jsxIdentifier"); function zj(e, t) { return (0, N.default)({ type: "JSXMemberExpression", object: e, property: t }); } s(zj, "jsxMemberExpression"); function Jj(e, t) { return (0, N.default)({ type: "JSXNamespacedName", namespace: e, name: t }); } s(Jj, "jsxNamespacedName"); function Xj(e, t, r = !1) { return (0, N.default)({ type: "JSXOpeningElement", name: e, attributes: t, selfClosing: r }); } s(Xj, "jsxOpeningElement"); function Qj(e) { return (0, N.default)({ type: "JSXSpreadAttribute", argument: e }); } s(Qj, "jsxSpreadAttribute"); function Zj(e) { return (0, N.default)({ type: "JSXText", value: e }); } s(Zj, "jsxText"); function eL(e, t, r) { return (0, N.default)({ type: "JSXFragment", openingFragment: e, closingFragment: t, children: r }); } s(eL, "jsxFragment"); function tL() { return { type: "JSXOpeningFragment" }; } s(tL, "jsxOpeningFragment"); function rL() { return { type: "JSXClosingFragment" }; } s(rL, "jsxClosingFragment"); function nL() { return { type: "Noop" }; } s(nL, "noop"); function sL(e, t) { return (0, N.default)({ type: "Placeholder", expectedNode: e, name: t }); } s(sL, "placeholder"); function iL(e) { return (0, N.default)({ type: "V8IntrinsicIdentifier", name: e }); } s(iL, "v8IntrinsicIdentifier"); function aL() { return { type: "ArgumentPlaceholder" }; } s(aL, "argumentPlaceholder"); function oL(e, t) { return (0, N.default)({ type: "BindExpression", object: e, callee: t }); } s(oL, "bindExpression"); function lL(e, t) { return (0, N.default)({ type: "ImportAttribute", key: e, value: t }); } s(lL, "importAttribute"); function uL(e) { return (0, N.default)({ type: "Decorator", expression: e }); } s(uL, "decorator"); function cL(e, t = !1) { return (0, N.default)({ type: "DoExpression", body: e, async: t }); } s(cL, "doExpression"); function fL(e) { return (0, N.default)({ type: "ExportDefaultSpecifier", exported: e }); } s(fL, "exportDefaultSpecifier"); function pL(e) { return (0, N.default)({ type: "RecordExpression", properties: e }); } s(pL, "recordExpression"); function dL(e = []) { return (0, N.default)({ type: "TupleExpression", elements: e }); } s(dL, "tupleExpression"); function hL(e) { return (0, N.default)({ type: "DecimalLiteral", value: e }); } s(hL, "decimalLiteral"); function mL(e) { return (0, N.default)({ type: "ModuleExpression", body: e }); } s(mL, "moduleExpression"); function yL() { return { type: "TopicReference" }; } s(yL, "topicReference"); function gL(e) { return (0, N.default)({ type: "PipelineTopicExpression", expression: e }); } s(gL, "pipelineTopicExpression"); function bL(e) { return (0, N.default)({ type: "PipelineBareFunction", callee: e }); } s(bL, "pipelineBareFunction"); function EL() { return { type: "PipelinePrimaryTopicReference" }; } s(EL, "pipelinePrimaryTopicReference"); function vL(e) { return (0, N.default)({ type: "TSParameterProperty", parameter: e }); } s(vL, "tsParameterProperty"); function TL(e = null, t = null, r, n = null) { return (0, N.default)({ type: "TSDeclareFunction", id: e, typeParameters: t, params: r, returnType: n }); } s(TL, "tsDeclareFunction"); function xL(e = null, t, r = null, n, i = null) { return (0, N.default)({ type: "TSDeclareMethod", decorators: e, key: t, typeParameters: r, params: n, returnType: i }); } s(xL, "tsDeclareMethod"); function SL(e, t) { return (0, N.default)({ type: "TSQualifiedName", left: e, right: t }); } s(SL, "tsQualifiedName"); function PL(e = null, t, r = null) { return (0, N.default)({ type: "TSCallSignatureDeclaration", typeParameters: e, parameters: t, typeAnnotation: r }); } s(PL, "tsCallSignatureDeclaration"); function AL(e = null, t, r = null) { return (0, N.default)({ type: "TSConstructSignatureDeclaration", typeParameters: e, parameters: t, typeAnnotation: r }); } s(AL, "tsConstructSignatureDeclaration"); function CL(e, t = null) { return (0, N.default)({ type: "TSPropertySignature", key: e, typeAnnotation: t, kind: null }); } s(CL, "tsPropertySignature"); function wL(e, t = null, r, n = null) { return (0, N.default)({ type: "TSMethodSignature", key: e, typeParameters: t, parameters: r, typeAnnotation: n, kind: null }); } s(wL, "tsMethodSignature"); function DL(e, t = null) { return (0, N.default)({ type: "TSIndexSignature", parameters: e, typeAnnotation: t }); } s(DL, "tsIndexSignature"); function IL() { return { type: "TSAnyKeyword" }; } s(IL, "tsAnyKeyword"); function _L() { return { type: "TSBooleanKeyword" }; } s(_L, "tsBooleanKeyword"); function OL() { return { type: "TSBigIntKeyword" }; } s(OL, "tsBigIntKeyword"); function NL() { return { type: "TSIntrinsicKeyword" }; } s(NL, "tsIntrinsicKeyword"); function BL() { return { type: "TSNeverKeyword" }; } s(BL, "tsNeverKeyword"); function kL() { return { type: "TSNullKeyword" }; } s(kL, "tsNullKeyword"); function FL() { return { type: "TSNumberKeyword" }; } s(FL, "tsNumberKeyword"); function jL() { return { type: "TSObjectKeyword" }; } s(jL, "tsObjectKeyword"); function LL() { return { type: "TSStringKeyword" }; } s(LL, "tsStringKeyword"); function ML() { return { type: "TSSymbolKeyword" }; } s(ML, "tsSymbolKeyword"); function RL() { return { type: "TSUndefinedKeyword" }; } s(RL, "tsUndefinedKeyword"); function qL() { return { type: "TSUnknownKeyword" }; } s(qL, "tsUnknownKeyword"); function UL() { return { type: "TSVoidKeyword" }; } s(UL, "tsVoidKeyword"); function VL() { return { type: "TSThisType" }; } s(VL, "tsThisType"); function $L(e = null, t, r = null) { return (0, N.default)({ type: "TSFunctionType", typeParameters: e, parameters: t, typeAnnotation: r }); } s($L, "tsFunctionType"); function WL(e = null, t, r = null) { return (0, N.default)({ type: "TSConstructorType", typeParameters: e, parameters: t, typeAnnotation: r }); } s(WL, "tsConstructorType"); function KL(e, t = null) { return (0, N.default)({ type: "TSTypeReference", typeName: e, typeParameters: t }); } s(KL, "tsTypeReference"); function GL(e, t = null, r = null) { return (0, N.default)({ type: "TSTypePredicate", parameterName: e, typeAnnotation: t, asserts: r }); } s(GL, "tsTypePredicate"); function HL(e, t = null) { return (0, N.default)({ type: "TSTypeQuery", exprName: e, typeParameters: t }); } s(HL, "tsTypeQuery"); function YL(e) { return (0, N.default)({ type: "TSTypeLiteral", members: e }); } s(YL, "tsTypeLiteral"); function zL(e) { return (0, N.default)({ type: "TSArrayType", elementType: e }); } s(zL, "tsArrayType"); function JL(e) { return (0, N.default)({ type: "TSTupleType", elementTypes: e }); } s(JL, "tsTupleType"); function XL(e) { return (0, N.default)({ type: "TSOptionalType", typeAnnotation: e }); } s(XL, "tsOptionalType"); function QL(e) { return (0, N.default)({ type: "TSRestType", typeAnnotation: e }); } s(QL, "tsRestType"); function ZL(e, t, r = !1) { return (0, N.default)({ type: "TSNamedTupleMember", label: e, elementType: t, optional: r }); } s(ZL, "tsNamedTupleMember"); function eM(e) { return (0, N.default)({ type: "TSUnionType", types: e }); } s(eM, "tsUnionType"); function tM(e) { return (0, N.default)({ type: "TSIntersectionType", types: e }); } s(tM, "tsIntersectionType"); function rM(e, t, r, n) { return (0, N.default)({ type: "TSConditionalType", checkType: e, extendsType: t, trueType: r, falseType: n }); } s(rM, "tsConditionalType"); function nM(e) { return (0, N.default)({ type: "TSInferType", typeParameter: e }); } s(nM, "tsInferType"); function sM(e) { return (0, N.default)({ type: "TSParenthesizedType", typeAnnotation: e }); } s(sM, "tsParenthesizedType"); function iM(e) { return (0, N.default)({ type: "TSTypeOperator", typeAnnotation: e, operator: null }); } s(iM, "tsTypeOperator"); function aM(e, t) { return (0, N.default)({ type: "TSIndexedAccessType", objectType: e, indexType: t }); } s(aM, "tsIndexedAccessType"); function oM(e, t = null, r = null) { return (0, N.default)({ type: "TSMappedType", typeParameter: e, typeAnnotation: t, nameType: r }); } s(oM, "tsMappedType"); function lM(e) { return (0, N.default)({ type: "TSLiteralType", literal: e }); } s(lM, "tsLiteralType"); function uM(e, t = null) { return (0, N.default)({ type: "TSExpressionWithTypeArguments", expression: e, typeParameters: t }); } s(uM, "tsExpressionWithTypeArguments"); function cM(e, t = null, r = null, n) { return (0, N.default)({ type: "TSInterfaceDeclaration", id: e, typeParameters: t, extends: r, body: n }); } s(cM, "tsInterfaceDeclaration"); function fM(e) { return (0, N.default)({ type: "TSInterfaceBody", body: e }); } s(fM, "tsInterfaceBody"); function pM(e, t = null, r) { return (0, N.default)({ type: "TSTypeAliasDeclaration", id: e, typeParameters: t, typeAnnotation: r }); } s(pM, "tsTypeAliasDeclaration"); function dM(e, t = null) { return (0, N.default)({ type: "TSInstantiationExpression", expression: e, typeParameters: t }); } s(dM, "tsInstantiationExpression"); function hM(e, t) { return (0, N.default)({ type: "TSAsExpression", expression: e, typeAnnotation: t }); } s(hM, "tsAsExpression"); function mM(e, t) { return (0, N.default)({ type: "TSSatisfiesExpression", expression: e, typeAnnotation: t }); } s(mM, "tsSatisfiesExpression"); function yM(e, t) { return (0, N.default)({ type: "TSTypeAssertion", typeAnnotation: e, expression: t }); } s(yM, "tsTypeAssertion"); function gM(e, t) { return (0, N.default)({ type: "TSEnumDeclaration", id: e, members: t }); } s(gM, "tsEnumDeclaration"); function bM(e, t = null) { return (0, N.default)({ type: "TSEnumMember", id: e, initializer: t }); } s(bM, "tsEnumMember"); function EM(e, t) { return (0, N.default)({ type: "TSModuleDeclaration", id: e, body: t }); } s(EM, "tsModuleDeclaration"); function vM(e) { return (0, N.default)({ type: "TSModuleBlock", body: e }); } s(vM, "tsModuleBlock"); function TM(e, t = null, r = null) { return (0, N.default)({ type: "TSImportType", argument: e, qualifier: t, typeParameters: r }); } s(TM, "tsImportType"); function xM(e, t) { return (0, N.default)({ type: "TSImportEqualsDeclaration", id: e, moduleReference: t, isExport: null }); } s(xM, "tsImportEqualsDeclaration"); function SM(e) { return (0, N.default)({ type: "TSExternalModuleReference", expression: e }); } s(SM, "tsExternalModuleReference"); function PM(e) { return (0, N.default)({ type: "TSNonNullExpression", expression: e }); } s(PM, "tsNonNullExpression"); function AM(e) { return (0, N.default)({ type: "TSExportAssignment", expression: e }); } s(AM, "tsExportAssignment"); function CM(e) { return (0, N.default)({ type: "TSNamespaceExportDeclaration", id: e }); } s(CM, "tsNamespaceExportDeclaration"); function wM(e) { return (0, N.default)({ type: "TSTypeAnnotation", typeAnnotation: e }); } s(wM, "tsTypeAnnotation"); function DM(e) { return (0, N.default)({ type: "TSTypeParameterInstantiation", params: e }); } s(DM, "tsTypeParameterInstantiation"); function IM(e) { return (0, N.default)({ type: "TSTypeParameterDeclaration", params: e }); } s(IM, "tsTypeParameterDeclaration"); function _M(e = null, t = null, r) { return (0, N.default)({ type: "TSTypeParameter", constraint: e, default: t, name: r }); } s(_M, "tsTypeParameter"); function OM(e) { return (0, Sl.default)("NumberLiteral", "NumericLiteral", "The node type "), BE(e); } s(OM, "NumberLiteral"); function NM(e, t = "") { return (0, Sl.default)("RegexLiteral", "RegExpLiteral", "The node type "), kE(e, t); } s(NM, "RegexLiteral"); function BM(e) { return (0, Sl.default)("RestProperty", "RestElement", "The node type "), FE(e); } s(BM, "RestProperty"); function kM(e) { return (0, Sl.default)("SpreadProperty", "SpreadElement", "The node type "), jE(e); } s(kM, "SpreadProperty"); }); // ../node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js var LE = T((Dp) => { "use strict"; Object.defineProperty(Dp, "__esModule", { value: !0 }); Dp.default = LM; var FM = sr(), jM = Pe(); function LM(e, t) { let r = e.value.split(/\r\n|\n|\r/), n = 0; for (let a = 0; a < r.length; a++) /[^ \t]/.exec(r[a]) && (n = a); let i = ""; for (let a = 0; a < r.length; a++) { let o = r[a], l = a === 0, u = a === r.length - 1, c = a === n, f = o.replace(/\t/g, " "); l || (f = f.replace(/^ +/, "")), u || (f = f.replace(/ +$/, "")), f && (c || (f += " "), i += f); } i && t.push((0, jM.inherits)((0, FM.stringLiteral)(i), e)); } s(LM, "cleanJSXElementLiteralChild"); }); // ../node_modules/@babel/types/lib/builders/react/buildChildren.js var ME = T((_p) => { "use strict"; Object.defineProperty(_p, "__esModule", { value: !0 }); _p.default = RM; var Ip = Tt(), MM = LE(); function RM(e) { let t = []; for (let r = 0; r < e.children.length; r++) { let n = e.children[r]; if ((0, Ip.isJSXText)(n)) { (0, MM.default)(n, t); continue; } (0, Ip.isJSXExpressionContainer)(n) && (n = n.expression), !(0, Ip.isJSXEmptyExpression)(n) && t.push(n); } return t; } s(RM, "buildChildren"); }); // ../node_modules/@babel/types/lib/validators/isNode.js var Np = T((Op) => { "use strict"; Object.defineProperty(Op, "__esModule", { value: !0 }); Op.default = UM; var qM = Cr(); function UM(e) { return !!(e && qM.VISITOR_KEYS[e.type]); } s(UM, "isNode"); }); // ../node_modules/@babel/types/lib/asserts/assertNode.js var RE = T((Bp) => { "use strict"; Object.defineProperty(Bp, "__esModule", { value: !0 }); Bp.default = $M; var VM = Np(); function $M(e) { if (!(0, VM.default)(e)) { var t; let r = (t = e?.type) != null ? t : JSON.stringify(e); throw new TypeError(`Not a valid node of type "${r}"`); } } s($M, "assertNode"); }); // ../node_modules/@babel/types/lib/asserts/generated/index.js var qE = T((S) => { "use strict"; Object.defineProperty(S, "__esModule", { value: !0 }); S.assertAccessor = iV; S.assertAnyTypeAnnotation = AR; S.assertArgumentPlaceholder = eq; S.assertArrayExpression = KM; S.assertArrayPattern = $9; S.assertArrayTypeAnnotation = CR; S.assertArrowFunctionExpression = W9; S.assertAssignmentExpression = GM; S.assertAssignmentPattern = V9; S.assertAwaitExpression = dR; S.assertBigIntLiteral = mR; S.assertBinary = wU; S.assertBinaryExpression = HM; S.assertBindExpression = tq; S.assertBlock = _U; S.assertBlockParent = IU; S.assertBlockStatement = XM; S.assertBooleanLiteral = b9; S.assertBooleanLiteralTypeAnnotation = DR; S.assertBooleanTypeAnnotation = wR; S.assertBreakStatement = QM; S.assertCallExpression = ZM; S.assertCatchClause = e9; S.assertClass = tV; S.assertClassAccessorProperty = vR; S.assertClassBody = K9; S.assertClassDeclaration = H9; S.assertClassExpression = G9; S.assertClassImplements = _R; S.assertClassMethod = iR; S.assertClassPrivateMethod = xR; S.assertClassPrivateProperty = TR; S.assertClassProperty = ER; S.assertCompletionStatement = BU; S.assertConditional = kU; S.assertConditionalExpression = t9; S.assertContinueStatement = r9; S.assertDebuggerStatement = n9; S.assertDecimalLiteral = lq; S.assertDeclaration = $U; S.assertDeclareClass = OR; S.assertDeclareExportAllDeclaration = qR; S.assertDeclareExportDeclaration = RR; S.assertDeclareFunction = NR; S.assertDeclareInterface = BR; S.assertDeclareModule = kR; S.assertDeclareModuleExports = FR; S.assertDeclareOpaqueType = LR; S.assertDeclareTypeAlias = jR; S.assertDeclareVariable = MR; S.assertDeclaredPredicate = UR; S.assertDecorator = nq; S.assertDirective = zM; S.assertDirectiveLiteral = JM; S.assertDoExpression = sq; S.assertDoWhileStatement = s9; S.assertEmptyStatement = i9; S.assertEmptyTypeAnnotation = QR; S.assertEnumBody = pV; S.assertEnumBooleanBody = C7; S.assertEnumBooleanMember = _7; S.assertEnumDeclaration = A7; S.assertEnumDefaultedMember = B7; S.assertEnumMember = dV; S.assertEnumNumberBody = w7; S.assertEnumNumberMember = O7; S.assertEnumStringBody = D7; S.assertEnumStringMember = N7; S.assertEnumSymbolBody = I7; S.assertExistsTypeAnnotation = VR; S.assertExportAllDeclaration = Y9; S.assertExportDeclaration = nV; S.assertExportDefaultDeclaration = z9; S.assertExportDefaultSpecifier = iq; S.assertExportNamedDeclaration = J9; S.assertExportNamespaceSpecifier = yR; S.assertExportSpecifier = X9; S.assertExpression = CU; S.assertExpressionStatement = a9; S.assertExpressionWrapper = LU; S.assertFile = o9; S.assertFlow = oV; S.assertFlowBaseAnnotation = uV; S.assertFlowDeclaration = cV; S.assertFlowPredicate = fV; S.assertFlowType = lV; S.assertFor = MU; S.assertForInStatement = l9; S.assertForOfStatement = Q9; S.assertForStatement = u9; S.assertForXStatement = RU; S.assertFunction = qU; S.assertFunctionDeclaration = c9; S.assertFunctionExpression = f9; S.assertFunctionParent = UU; S.assertFunctionTypeAnnotation = $R; S.assertFunctionTypeParam = WR; S.assertGenericTypeAnnotation = KR; S.assertIdentifier = p9; S.assertIfStatement = d9; S.assertImmutable = YU; S.assertImport = hR; S.assertImportAttribute = rq; S.assertImportDeclaration = Z9; S.assertImportDefaultSpecifier = eR; S.assertImportExpression = nR; S.assertImportNamespaceSpecifier = tR; S.assertImportOrExportDeclaration = rV; S.assertImportSpecifier = rR; S.assertIndexedAccessType = k7; S.assertInferredPredicate = GR; S.assertInterfaceDeclaration = YR; S.assertInterfaceExtends = HR; S.assertInterfaceTypeAnnotation = zR; S.assertInterpreterDirective = YM; S.assertIntersectionTypeAnnotation = JR; S.assertJSX = hV; S.assertJSXAttribute = j7; S.assertJSXClosingElement = L7; S.assertJSXClosingFragment = J7; S.assertJSXElement = M7; S.assertJSXEmptyExpression = R7; S.assertJSXExpressionContainer = q7; S.assertJSXFragment = Y7; S.assertJSXIdentifier = V7; S.assertJSXMemberExpression = $7; S.assertJSXNamespacedName = W7; S.assertJSXOpeningElement = K7; S.assertJSXOpeningFragment = z7; S.assertJSXSpreadAttribute = G7; S.assertJSXSpreadChild = U7; S.assertJSXText = H7; S.assertLVal = KU; S.assertLabeledStatement = h9; S.assertLiteral = HU; S.assertLogicalExpression = v9; S.assertLoop = FU; S.assertMemberExpression = T9; S.assertMetaProperty = sR; S.assertMethod = JU; S.assertMiscellaneous = mV; S.assertMixedTypeAnnotation = XR; S.assertModuleDeclaration = PV; S.assertModuleExpression = uq; S.assertModuleSpecifier = sV; S.assertNewExpression = x9; S.assertNoop = X7; S.assertNullLiteral = g9; S.assertNullLiteralTypeAnnotation = IR; S.assertNullableTypeAnnotation = ZR; S.assertNumberLiteral = vV; S.assertNumberLiteralTypeAnnotation = e7; S.assertNumberTypeAnnotation = t7; S.assertNumericLiteral = y9; S.assertObjectExpression = P9; S.assertObjectMember = XU; S.assertObjectMethod = A9; S.assertObjectPattern = aR; S.assertObjectProperty = C9; S.assertObjectTypeAnnotation = r7; S.assertObjectTypeCallProperty = s7; S.assertObjectTypeIndexer = i7; S.assertObjectTypeInternalSlot = n7; S.assertObjectTypeProperty = a7; S.assertObjectTypeSpreadProperty = o7; S.assertOpaqueType = l7; S.assertOptionalCallExpression = bR; S.assertOptionalIndexedAccessType = F7; S.assertOptionalMemberExpression = gR; S.assertParenthesizedExpression = _9; S.assertPattern = eV; S.assertPatternLike = WU; S.assertPipelineBareFunction = pq; S.assertPipelinePrimaryTopicReference = dq; S.assertPipelineTopicExpression = fq; S.assertPlaceholder = Q7; S.assertPrivate = aV; S.assertPrivateName = SR; S.assertProgram = S9; S.assertProperty = QU; S.assertPureish = VU; S.assertQualifiedTypeIdentifier = u7; S.assertRecordExpression = aq; S.assertRegExpLiteral = E9; S.assertRegexLiteral = TV; S.assertRestElement = w9; S.assertRestProperty = xV; S.assertReturnStatement = D9; S.assertScopable = DU; S.assertSequenceExpression = I9; S.assertSpreadElement = oR; S.assertSpreadProperty = SV; S.assertStandardized = AU; S.assertStatement = OU; S.assertStaticBlock = PR; S.assertStringLiteral = m9; S.assertStringLiteralTypeAnnotation = c7; S.assertStringTypeAnnotation = f7; S.assertSuper = lR; S.assertSwitchCase = O9; S.assertSwitchStatement = N9; S.assertSymbolTypeAnnotation = p7; S.assertTSAnyKeyword = Sq; S.assertTSArrayType = $q; S.assertTSAsExpression = lU; S.assertTSBaseType = EV; S.assertTSBigIntKeyword = Aq; S.assertTSBooleanKeyword = Pq; S.assertTSCallSignatureDeclaration = bq; S.assertTSConditionalType = Jq; S.assertTSConstructSignatureDeclaration = Eq; S.assertTSConstructorType = Mq; S.assertTSDeclareFunction = mq; S.assertTSDeclareMethod = yq; S.assertTSEntityName = GU; S.assertTSEnumDeclaration = fU; S.assertTSEnumMember = pU; S.assertTSExportAssignment = EU; S.assertTSExpressionWithTypeArguments = nU; S.assertTSExternalModuleReference = gU; S.assertTSFunctionType = Lq; S.assertTSImportEqualsDeclaration = yU; S.assertTSImportType = mU; S.assertTSIndexSignature = xq; S.assertTSIndexedAccessType = eU; S.assertTSInferType = Xq; S.assertTSInstantiationExpression = oU; S.assertTSInterfaceBody = iU; S.assertTSInterfaceDeclaration = sU; S.assertTSIntersectionType = zq; S.assertTSIntrinsicKeyword = Cq; S.assertTSLiteralType = rU; S.assertTSMappedType = tU; S.assertTSMethodSignature = Tq; S.assertTSModuleBlock = hU; S.assertTSModuleDeclaration = dU; S.assertTSNamedTupleMember = Hq; S.assertTSNamespaceExportDeclaration = vU; S.assertTSNeverKeyword = wq; S.assertTSNonNullExpression = bU; S.assertTSNullKeyword = Dq; S.assertTSNumberKeyword = Iq; S.assertTSObjectKeyword = _q; S.assertTSOptionalType = Kq; S.assertTSParameterProperty = hq; S.assertTSParenthesizedType = Qq; S.assertTSPropertySignature = vq; S.assertTSQualifiedName = gq; S.assertTSRestType = Gq; S.assertTSSatisfiesExpression = uU; S.assertTSStringKeyword = Oq; S.assertTSSymbolKeyword = Nq; S.assertTSThisType = jq; S.assertTSTupleType = Wq; S.assertTSType = bV; S.assertTSTypeAliasDeclaration = aU; S.assertTSTypeAnnotation = TU; S.assertTSTypeAssertion = cU; S.assertTSTypeElement = gV; S.assertTSTypeLiteral = Vq; S.assertTSTypeOperator = Zq; S.assertTSTypeParameter = PU; S.assertTSTypeParameterDeclaration = SU; S.assertTSTypeParameterInstantiation = xU; S.assertTSTypePredicate = qq; S.assertTSTypeQuery = Uq; S.assertTSTypeReference = Rq; S.assertTSUndefinedKeyword = Bq; S.assertTSUnionType = Yq; S.assertTSUnknownKeyword = kq; S.assertTSVoidKeyword = Fq; S.assertTaggedTemplateExpression = uR; S.assertTemplateElement = cR; S.assertTemplateLiteral = fR; S.assertTerminatorless = NU; S.assertThisExpression = B9; S.assertThisTypeAnnotation = d7; S.assertThrowStatement = k9; S.assertTopicReference = cq; S.assertTryStatement = F9; S.assertTupleExpression = oq; S.assertTupleTypeAnnotation = h7; S.assertTypeAlias = y7; S.assertTypeAnnotation = g7; S.assertTypeCastExpression = b7; S.assertTypeParameter = E7; S.assertTypeParameterDeclaration = v7; S.assertTypeParameterInstantiation = T7; S.assertTypeScript = yV; S.assertTypeofTypeAnnotation = m7; S.assertUnaryExpression = j9; S.assertUnaryLike = ZU; S.assertUnionTypeAnnotation = x7; S.assertUpdateExpression = L9; S.assertUserWhitespacable = zU; S.assertV8IntrinsicIdentifier = Z7; S.assertVariableDeclaration = M9; S.assertVariableDeclarator = R9; S.assertVariance = S7; S.assertVoidTypeAnnotation = P7; S.assertWhile = jU; S.assertWhileStatement = q9; S.assertWithStatement = U9; S.assertYieldExpression = pR; var WM = yi(), ja = Aa(); function P(e, t, r) { if (!(0, WM.default)(e, t, r)) throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`); } s(P, "assert"); function KM(e, t) { P("ArrayExpression", e, t); } s(KM, "assertArrayExpression"); function GM(e, t) { P("AssignmentExpression", e, t); } s(GM, "assertAssignmentExpression"); function HM(e, t) { P("BinaryExpression", e, t); } s(HM, "assertBinaryExpression"); function YM(e, t) { P("InterpreterDirective", e, t); } s(YM, "assertInterpreterDirective"); function zM(e, t) { P("Directive", e, t); } s(zM, "assertDirective"); function JM(e, t) { P("DirectiveLiteral", e, t); } s(JM, "assertDirectiveLiteral"); function XM(e, t) { P("BlockStatement", e, t); } s(XM, "assertBlockStatement"); function QM(e, t) { P("BreakStatement", e, t); } s(QM, "assertBreakStatement"); function ZM(e, t) { P("CallExpression", e, t); } s(ZM, "assertCallExpression"); function e9(e, t) { P("CatchClause", e, t); } s(e9, "assertCatchClause"); function t9(e, t) { P("ConditionalExpression", e, t); } s(t9, "assertConditionalExpression"); function r9(e, t) { P("ContinueStatement", e, t); } s(r9, "assertContinueStatement"); function n9(e, t) { P("DebuggerStatement", e, t); } s(n9, "assertDebuggerStatement"); function s9(e, t) { P("DoWhileStatement", e, t); } s(s9, "assertDoWhileStatement"); function i9(e, t) { P("EmptyStatement", e, t); } s(i9, "assertEmptyStatement"); function a9(e, t) { P("ExpressionStatement", e, t); } s(a9, "assertExpressionStatement"); function o9(e, t) { P("File", e, t); } s(o9, "assertFile"); function l9(e, t) { P("ForInStatement", e, t); } s(l9, "assertForInStatement"); function u9(e, t) { P("ForStatement", e, t); } s(u9, "assertForStatement"); function c9(e, t) { P("FunctionDeclaration", e, t); } s(c9, "assertFunctionDeclaration"); function f9(e, t) { P("FunctionExpression", e, t); } s(f9, "assertFunctionExpression"); function p9(e, t) { P("Identifier", e, t); } s(p9, "assertIdentifier"); function d9(e, t) { P("IfStatement", e, t); } s(d9, "assertIfStatement"); function h9(e, t) { P("LabeledStatement", e, t); } s(h9, "assertLabeledStatement"); function m9(e, t) { P("StringLiteral", e, t); } s(m9, "assertStringLiteral"); function y9(e, t) { P("NumericLiteral", e, t); } s(y9, "assertNumericLiteral"); function g9(e, t) { P("NullLiteral", e, t); } s(g9, "assertNullLiteral"); function b9(e, t) { P("BooleanLiteral", e, t); } s(b9, "assertBooleanLiteral"); function E9(e, t) { P("RegExpLiteral", e, t); } s(E9, "assertRegExpLiteral"); function v9(e, t) { P("LogicalExpression", e, t); } s(v9, "assertLogicalExpression"); function T9(e, t) { P("MemberExpression", e, t); } s(T9, "assertMemberExpression"); function x9(e, t) { P("NewExpression", e, t); } s(x9, "assertNewExpression"); function S9(e, t) { P("Program", e, t); } s(S9, "assertProgram"); function P9(e, t) { P("ObjectExpression", e, t); } s(P9, "assertObjectExpression"); function A9(e, t) { P("ObjectMethod", e, t); } s(A9, "assertObjectMethod"); function C9(e, t) { P("ObjectProperty", e, t); } s(C9, "assertObjectProperty"); function w9(e, t) { P("RestElement", e, t); } s(w9, "assertRestElement"); function D9(e, t) { P("ReturnStatement", e, t); } s(D9, "assertReturnStatement"); function I9(e, t) { P("SequenceExpression", e, t); } s(I9, "assertSequenceExpression"); function _9(e, t) { P("ParenthesizedExpression", e, t); } s(_9, "assertParenthesizedExpression"); function O9(e, t) { P("SwitchCase", e, t); } s(O9, "assertSwitchCase"); function N9(e, t) { P("SwitchStatement", e, t); } s(N9, "assertSwitchStatement"); function B9(e, t) { P("ThisExpression", e, t); } s(B9, "assertThisExpression"); function k9(e, t) { P("ThrowStatement", e, t); } s(k9, "assertThrowStatement"); function F9(e, t) { P("TryStatement", e, t); } s(F9, "assertTryStatement"); function j9(e, t) { P("UnaryExpression", e, t); } s(j9, "assertUnaryExpression"); function L9(e, t) { P("UpdateExpression", e, t); } s(L9, "assertUpdateExpression"); function M9(e, t) { P("VariableDeclaration", e, t); } s(M9, "assertVariableDeclaration"); function R9(e, t) { P("VariableDeclarator", e, t); } s(R9, "assertVariableDeclarator"); function q9(e, t) { P("WhileStatement", e, t); } s(q9, "assertWhileStatement"); function U9(e, t) { P("WithStatement", e, t); } s(U9, "assertWithStatement"); function V9(e, t) { P("AssignmentPattern", e, t); } s(V9, "assertAssignmentPattern"); function $9(e, t) { P("ArrayPattern", e, t); } s($9, "assertArrayPattern"); function W9(e, t) { P("ArrowFunctionExpression", e, t); } s(W9, "assertArrowFunctionExpression"); function K9(e, t) { P("ClassBody", e, t); } s(K9, "assertClassBody"); function G9(e, t) { P("ClassExpression", e, t); } s(G9, "assertClassExpression"); function H9(e, t) { P("ClassDeclaration", e, t); } s(H9, "assertClassDeclaration"); function Y9(e, t) { P("ExportAllDeclaration", e, t); } s(Y9, "assertExportAllDeclaration"); function z9(e, t) { P("ExportDefaultDeclaration", e, t); } s(z9, "assertExportDefaultDeclaration"); function J9(e, t) { P("ExportNamedDeclaration", e, t); } s(J9, "assertExportNamedDeclaration"); function X9(e, t) { P("ExportSpecifier", e, t); } s(X9, "assertExportSpecifier"); function Q9(e, t) { P("ForOfStatement", e, t); } s(Q9, "assertForOfStatement"); function Z9(e, t) { P("ImportDeclaration", e, t); } s(Z9, "assertImportDeclaration"); function eR(e, t) { P("ImportDefaultSpecifier", e, t); } s(eR, "assertImportDefaultSpecifier"); function tR(e, t) { P("ImportNamespaceSpecifier", e, t); } s(tR, "assertImportNamespaceSpecifier"); function rR(e, t) { P("ImportSpecifier", e, t); } s(rR, "assertImportSpecifier"); function nR(e, t) { P("ImportExpression", e, t); } s(nR, "assertImportExpression"); function sR(e, t) { P("MetaProperty", e, t); } s(sR, "assertMetaProperty"); function iR(e, t) { P("ClassMethod", e, t); } s(iR, "assertClassMethod"); function aR(e, t) { P("ObjectPattern", e, t); } s(aR, "assertObjectPattern"); function oR(e, t) { P("SpreadElement", e, t); } s(oR, "assertSpreadElement"); function lR(e, t) { P("Super", e, t); } s(lR, "assertSuper"); function uR(e, t) { P("TaggedTemplateExpression", e, t); } s(uR, "assertTaggedTemplateExpression"); function cR(e, t) { P("TemplateElement", e, t); } s(cR, "assertTemplateElement"); function fR(e, t) { P("TemplateLiteral", e, t); } s(fR, "assertTemplateLiteral"); function pR(e, t) { P("YieldExpression", e, t); } s(pR, "assertYieldExpression"); function dR(e, t) { P("AwaitExpression", e, t); } s(dR, "assertAwaitExpression"); function hR(e, t) { P("Import", e, t); } s(hR, "assertImport"); function mR(e, t) { P("BigIntLiteral", e, t); } s(mR, "assertBigIntLiteral"); function yR(e, t) { P("ExportNamespaceSpecifier", e, t); } s(yR, "assertExportNamespaceSpecifier"); function gR(e, t) { P("OptionalMemberExpression", e, t); } s(gR, "assertOptionalMemberExpression"); function bR(e, t) { P("OptionalCallExpression", e, t); } s(bR, "assertOptionalCallExpression"); function ER(e, t) { P("ClassProperty", e, t); } s(ER, "assertClassProperty"); function vR(e, t) { P("ClassAccessorProperty", e, t); } s(vR, "assertClassAccessorProperty"); function TR(e, t) { P("ClassPrivateProperty", e, t); } s(TR, "assertClassPrivateProperty"); function xR(e, t) { P("ClassPrivateMethod", e, t); } s(xR, "assertClassPrivateMethod"); function SR(e, t) { P("PrivateName", e, t); } s(SR, "assertPrivateName"); function PR(e, t) { P("StaticBlock", e, t); } s(PR, "assertStaticBlock"); function AR(e, t) { P("AnyTypeAnnotation", e, t); } s(AR, "assertAnyTypeAnnotation"); function CR(e, t) { P("ArrayTypeAnnotation", e, t); } s(CR, "assertArrayTypeAnnotation"); function wR(e, t) { P("BooleanTypeAnnotation", e, t); } s(wR, "assertBooleanTypeAnnotation"); function DR(e, t) { P("BooleanLiteralTypeAnnotation", e, t); } s(DR, "assertBooleanLiteralTypeAnnotation"); function IR(e, t) { P("NullLiteralTypeAnnotation", e, t); } s(IR, "assertNullLiteralTypeAnnotation"); function _R(e, t) { P("ClassImplements", e, t); } s(_R, "assertClassImplements"); function OR(e, t) { P("DeclareClass", e, t); } s(OR, "assertDeclareClass"); function NR(e, t) { P("DeclareFunction", e, t); } s(NR, "assertDeclareFunction"); function BR(e, t) { P("DeclareInterface", e, t); } s(BR, "assertDeclareInterface"); function kR(e, t) { P("DeclareModule", e, t); } s(kR, "assertDeclareModule"); function FR(e, t) { P("DeclareModuleExports", e, t); } s(FR, "assertDeclareModuleExports"); function jR(e, t) { P("DeclareTypeAlias", e, t); } s(jR, "assertDeclareTypeAlias"); function LR(e, t) { P("DeclareOpaqueType", e, t); } s(LR, "assertDeclareOpaqueType"); function MR(e, t) { P("DeclareVariable", e, t); } s(MR, "assertDeclareVariable"); function RR(e, t) { P("DeclareExportDeclaration", e, t); } s(RR, "assertDeclareExportDeclaration"); function qR(e, t) { P("DeclareExportAllDeclaration", e, t); } s(qR, "assertDeclareExportAllDeclaration"); function UR(e, t) { P("DeclaredPredicate", e, t); } s(UR, "assertDeclaredPredicate"); function VR(e, t) { P("ExistsTypeAnnotation", e, t); } s(VR, "assertExistsTypeAnnotation"); function $R(e, t) { P("FunctionTypeAnnotation", e, t); } s($R, "assertFunctionTypeAnnotation"); function WR(e, t) { P("FunctionTypeParam", e, t); } s(WR, "assertFunctionTypeParam"); function KR(e, t) { P("GenericTypeAnnotation", e, t); } s(KR, "assertGenericTypeAnnotation"); function GR(e, t) { P("InferredPredicate", e, t); } s(GR, "assertInferredPredicate"); function HR(e, t) { P("InterfaceExtends", e, t); } s(HR, "assertInterfaceExtends"); function YR(e, t) { P("InterfaceDeclaration", e, t); } s(YR, "assertInterfaceDeclaration"); function zR(e, t) { P("InterfaceTypeAnnotation", e, t); } s(zR, "assertInterfaceTypeAnnotation"); function JR(e, t) { P("IntersectionTypeAnnotation", e, t); } s(JR, "assertIntersectionTypeAnnotation"); function XR(e, t) { P("MixedTypeAnnotation", e, t); } s(XR, "assertMixedTypeAnnotation"); function QR(e, t) { P("EmptyTypeAnnotation", e, t); } s(QR, "assertEmptyTypeAnnotation"); function ZR(e, t) { P("NullableTypeAnnotation", e, t); } s(ZR, "assertNullableTypeAnnotation"); function e7(e, t) { P("NumberLiteralTypeAnnotation", e, t); } s(e7, "assertNumberLiteralTypeAnnotation"); function t7(e, t) { P("NumberTypeAnnotation", e, t); } s(t7, "assertNumberTypeAnnotation"); function r7(e, t) { P("ObjectTypeAnnotation", e, t); } s(r7, "assertObjectTypeAnnotation"); function n7(e, t) { P("ObjectTypeInternalSlot", e, t); } s(n7, "assertObjectTypeInternalSlot"); function s7(e, t) { P("ObjectTypeCallProperty", e, t); } s(s7, "assertObjectTypeCallProperty"); function i7(e, t) { P("ObjectTypeIndexer", e, t); } s(i7, "assertObjectTypeIndexer"); function a7(e, t) { P("ObjectTypeProperty", e, t); } s(a7, "assertObjectTypeProperty"); function o7(e, t) { P("ObjectTypeSpreadProperty", e, t); } s(o7, "assertObjectTypeSpreadProperty"); function l7(e, t) { P("OpaqueType", e, t); } s(l7, "assertOpaqueType"); function u7(e, t) { P("QualifiedTypeIdentifier", e, t); } s(u7, "assertQualifiedTypeIdentifier"); function c7(e, t) { P("StringLiteralTypeAnnotation", e, t); } s(c7, "assertStringLiteralTypeAnnotation"); function f7(e, t) { P("StringTypeAnnotation", e, t); } s(f7, "assertStringTypeAnnotation"); function p7(e, t) { P("SymbolTypeAnnotation", e, t); } s(p7, "assertSymbolTypeAnnotation"); function d7(e, t) { P("ThisTypeAnnotation", e, t); } s(d7, "assertThisTypeAnnotation"); function h7(e, t) { P("TupleTypeAnnotation", e, t); } s(h7, "assertTupleTypeAnnotation"); function m7(e, t) { P("TypeofTypeAnnotation", e, t); } s(m7, "assertTypeofTypeAnnotation"); function y7(e, t) { P("TypeAlias", e, t); } s(y7, "assertTypeAlias"); function g7(e, t) { P("TypeAnnotation", e, t); } s(g7, "assertTypeAnnotation"); function b7(e, t) { P("TypeCastExpression", e, t); } s(b7, "assertTypeCastExpression"); function E7(e, t) { P("TypeParameter", e, t); } s(E7, "assertTypeParameter"); function v7(e, t) { P("TypeParameterDeclaration", e, t); } s(v7, "assertTypeParameterDeclaration"); function T7(e, t) { P("TypeParameterInstantiation", e, t); } s(T7, "assertTypeParameterInstantiation"); function x7(e, t) { P("UnionTypeAnnotation", e, t); } s(x7, "assertUnionTypeAnnotation"); function S7(e, t) { P("Variance", e, t); } s(S7, "assertVariance"); function P7(e, t) { P("VoidTypeAnnotation", e, t); } s(P7, "assertVoidTypeAnnotation"); function A7(e, t) { P("EnumDeclaration", e, t); } s(A7, "assertEnumDeclaration"); function C7(e, t) { P("EnumBooleanBody", e, t); } s(C7, "assertEnumBooleanBody"); function w7(e, t) { P("EnumNumberBody", e, t); } s(w7, "assertEnumNumberBody"); function D7(e, t) { P("EnumStringBody", e, t); } s(D7, "assertEnumStringBody"); function I7(e, t) { P("EnumSymbolBody", e, t); } s(I7, "assertEnumSymbolBody"); function _7(e, t) { P("EnumBooleanMember", e, t); } s(_7, "assertEnumBooleanMember"); function O7(e, t) { P("EnumNumberMember", e, t); } s(O7, "assertEnumNumberMember"); function N7(e, t) { P("EnumStringMember", e, t); } s(N7, "assertEnumStringMember"); function B7(e, t) { P("EnumDefaultedMember", e, t); } s(B7, "assertEnumDefaultedMember"); function k7(e, t) { P("IndexedAccessType", e, t); } s(k7, "assertIndexedAccessType"); function F7(e, t) { P("OptionalIndexedAccessType", e, t); } s(F7, "assertOptionalIndexedAccessType"); function j7(e, t) { P("JSXAttribute", e, t); } s(j7, "assertJSXAttribute"); function L7(e, t) { P("JSXClosingElement", e, t); } s(L7, "assertJSXClosingElement"); function M7(e, t) { P("JSXElement", e, t); } s(M7, "assertJSXElement"); function R7(e, t) { P("JSXEmptyExpression", e, t); } s(R7, "assertJSXEmptyExpression"); function q7(e, t) { P("JSXExpressionContainer", e, t); } s(q7, "assertJSXExpressionContainer"); function U7(e, t) { P("JSXSpreadChild", e, t); } s(U7, "assertJSXSpreadChild"); function V7(e, t) { P("JSXIdentifier", e, t); } s(V7, "assertJSXIdentifier"); function $7(e, t) { P("JSXMemberExpression", e, t); } s($7, "assertJSXMemberExpression"); function W7(e, t) { P("JSXNamespacedName", e, t); } s(W7, "assertJSXNamespacedName"); function K7(e, t) { P("JSXOpeningElement", e, t); } s(K7, "assertJSXOpeningElement"); function G7(e, t) { P("JSXSpreadAttribute", e, t); } s(G7, "assertJSXSpreadAttribute"); function H7(e, t) { P("JSXText", e, t); } s(H7, "assertJSXText"); function Y7(e, t) { P("JSXFragment", e, t); } s(Y7, "assertJSXFragment"); function z7(e, t) { P("JSXOpeningFragment", e, t); } s(z7, "assertJSXOpeningFragment"); function J7(e, t) { P("JSXClosingFragment", e, t); } s(J7, "assertJSXClosingFragment"); function X7(e, t) { P("Noop", e, t); } s(X7, "assertNoop"); function Q7(e, t) { P("Placeholder", e, t); } s(Q7, "assertPlaceholder"); function Z7(e, t) { P("V8IntrinsicIdentifier", e, t); } s(Z7, "assertV8IntrinsicIdentifier"); function eq(e, t) { P("ArgumentPlaceholder", e, t); } s(eq, "assertArgumentPlaceholder"); function tq(e, t) { P("BindExpression", e, t); } s(tq, "assertBindExpression"); function rq(e, t) { P("ImportAttribute", e, t); } s(rq, "assertImportAttribute"); function nq(e, t) { P("Decorator", e, t); } s(nq, "assertDecorator"); function sq(e, t) { P("DoExpression", e, t); } s(sq, "assertDoExpression"); function iq(e, t) { P("ExportDefaultSpecifier", e, t); } s(iq, "assertExportDefaultSpecifier"); function aq(e, t) { P("RecordExpression", e, t); } s(aq, "assertRecordExpression"); function oq(e, t) { P("TupleExpression", e, t); } s(oq, "assertTupleExpression"); function lq(e, t) { P("DecimalLiteral", e, t); } s(lq, "assertDecimalLiteral"); function uq(e, t) { P("ModuleExpression", e, t); } s(uq, "assertModuleExpression"); function cq(e, t) { P("TopicReference", e, t); } s(cq, "assertTopicReference"); function fq(e, t) { P("PipelineTopicExpression", e, t); } s(fq, "assertPipelineTopicExpression"); function pq(e, t) { P("PipelineBareFunction", e, t); } s(pq, "assertPipelineBareFunction"); function dq(e, t) { P("PipelinePrimaryTopicReference", e, t); } s(dq, "assertPipelinePrimaryTopicReference"); function hq(e, t) { P("TSParameterProperty", e, t); } s(hq, "assertTSParameterProperty"); function mq(e, t) { P("TSDeclareFunction", e, t); } s(mq, "assertTSDeclareFunction"); function yq(e, t) { P("TSDeclareMethod", e, t); } s(yq, "assertTSDeclareMethod"); function gq(e, t) { P("TSQualifiedName", e, t); } s(gq, "assertTSQualifiedName"); function bq(e, t) { P("TSCallSignatureDeclaration", e, t); } s(bq, "assertTSCallSignatureDeclaration"); function Eq(e, t) { P("TSConstructSignatureDeclaration", e, t); } s(Eq, "assertTSConstructSignatureDeclaration"); function vq(e, t) { P("TSPropertySignature", e, t); } s(vq, "assertTSPropertySignature"); function Tq(e, t) { P("TSMethodSignature", e, t); } s(Tq, "assertTSMethodSignature"); function xq(e, t) { P("TSIndexSignature", e, t); } s(xq, "assertTSIndexSignature"); function Sq(e, t) { P("TSAnyKeyword", e, t); } s(Sq, "assertTSAnyKeyword"); function Pq(e, t) { P("TSBooleanKeyword", e, t); } s(Pq, "assertTSBooleanKeyword"); function Aq(e, t) { P("TSBigIntKeyword", e, t); } s(Aq, "assertTSBigIntKeyword"); function Cq(e, t) { P("TSIntrinsicKeyword", e, t); } s(Cq, "assertTSIntrinsicKeyword"); function wq(e, t) { P("TSNeverKeyword", e, t); } s(wq, "assertTSNeverKeyword"); function Dq(e, t) { P("TSNullKeyword", e, t); } s(Dq, "assertTSNullKeyword"); function Iq(e, t) { P("TSNumberKeyword", e, t); } s(Iq, "assertTSNumberKeyword"); function _q(e, t) { P("TSObjectKeyword", e, t); } s(_q, "assertTSObjectKeyword"); function Oq(e, t) { P("TSStringKeyword", e, t); } s(Oq, "assertTSStringKeyword"); function Nq(e, t) { P("TSSymbolKeyword", e, t); } s(Nq, "assertTSSymbolKeyword"); function Bq(e, t) { P("TSUndefinedKeyword", e, t); } s(Bq, "assertTSUndefinedKeyword"); function kq(e, t) { P("TSUnknownKeyword", e, t); } s(kq, "assertTSUnknownKeyword"); function Fq(e, t) { P("TSVoidKeyword", e, t); } s(Fq, "assertTSVoidKeyword"); function jq(e, t) { P("TSThisType", e, t); } s(jq, "assertTSThisType"); function Lq(e, t) { P("TSFunctionType", e, t); } s(Lq, "assertTSFunctionType"); function Mq(e, t) { P("TSConstructorType", e, t); } s(Mq, "assertTSConstructorType"); function Rq(e, t) { P("TSTypeReference", e, t); } s(Rq, "assertTSTypeReference"); function qq(e, t) { P("TSTypePredicate", e, t); } s(qq, "assertTSTypePredicate"); function Uq(e, t) { P("TSTypeQuery", e, t); } s(Uq, "assertTSTypeQuery"); function Vq(e, t) { P("TSTypeLiteral", e, t); } s(Vq, "assertTSTypeLiteral"); function $q(e, t) { P("TSArrayType", e, t); } s($q, "assertTSArrayType"); function Wq(e, t) { P("TSTupleType", e, t); } s(Wq, "assertTSTupleType"); function Kq(e, t) { P("TSOptionalType", e, t); } s(Kq, "assertTSOptionalType"); function Gq(e, t) { P("TSRestType", e, t); } s(Gq, "assertTSRestType"); function Hq(e, t) { P("TSNamedTupleMember", e, t); } s(Hq, "assertTSNamedTupleMember"); function Yq(e, t) { P("TSUnionType", e, t); } s(Yq, "assertTSUnionType"); function zq(e, t) { P("TSIntersectionType", e, t); } s(zq, "assertTSIntersectionType"); function Jq(e, t) { P("TSConditionalType", e, t); } s(Jq, "assertTSConditionalType"); function Xq(e, t) { P("TSInferType", e, t); } s(Xq, "assertTSInferType"); function Qq(e, t) { P("TSParenthesizedType", e, t); } s(Qq, "assertTSParenthesizedType"); function Zq(e, t) { P("TSTypeOperator", e, t); } s(Zq, "assertTSTypeOperator"); function eU(e, t) { P("TSIndexedAccessType", e, t); } s(eU, "assertTSIndexedAccessType"); function tU(e, t) { P("TSMappedType", e, t); } s(tU, "assertTSMappedType"); function rU(e, t) { P("TSLiteralType", e, t); } s(rU, "assertTSLiteralType"); function nU(e, t) { P("TSExpressionWithTypeArguments", e, t); } s(nU, "assertTSExpressionWithTypeArguments"); function sU(e, t) { P("TSInterfaceDeclaration", e, t); } s(sU, "assertTSInterfaceDeclaration"); function iU(e, t) { P("TSInterfaceBody", e, t); } s(iU, "assertTSInterfaceBody"); function aU(e, t) { P("TSTypeAliasDeclaration", e, t); } s(aU, "assertTSTypeAliasDeclaration"); function oU(e, t) { P("TSInstantiationExpression", e, t); } s(oU, "assertTSInstantiationExpression"); function lU(e, t) { P("TSAsExpression", e, t); } s(lU, "assertTSAsExpression"); function uU(e, t) { P("TSSatisfiesExpression", e, t); } s(uU, "assertTSSatisfiesExpression"); function cU(e, t) { P("TSTypeAssertion", e, t); } s(cU, "assertTSTypeAssertion"); function fU(e, t) { P("TSEnumDeclaration", e, t); } s(fU, "assertTSEnumDeclaration"); function pU(e, t) { P("TSEnumMember", e, t); } s(pU, "assertTSEnumMember"); function dU(e, t) { P("TSModuleDeclaration", e, t); } s(dU, "assertTSModuleDeclaration"); function hU(e, t) { P("TSModuleBlock", e, t); } s(hU, "assertTSModuleBlock"); function mU(e, t) { P("TSImportType", e, t); } s(mU, "assertTSImportType"); function yU(e, t) { P("TSImportEqualsDeclaration", e, t); } s(yU, "assertTSImportEqualsDeclaration"); function gU(e, t) { P("TSExternalModuleReference", e, t); } s(gU, "assertTSExternalModuleReference"); function bU(e, t) { P("TSNonNullExpression", e, t); } s(bU, "assertTSNonNullExpression"); function EU(e, t) { P("TSExportAssignment", e, t); } s(EU, "assertTSExportAssignment"); function vU(e, t) { P("TSNamespaceExportDeclaration", e, t); } s(vU, "assertTSNamespaceExportDeclaration"); function TU(e, t) { P("TSTypeAnnotation", e, t); } s(TU, "assertTSTypeAnnotation"); function xU(e, t) { P("TSTypeParameterInstantiation", e, t); } s(xU, "assertTSTypeParameterInstantiation"); function SU(e, t) { P("TSTypeParameterDeclaration", e, t); } s(SU, "assertTSTypeParameterDeclaration"); function PU(e, t) { P("TSTypeParameter", e, t); } s(PU, "assertTSTypeParameter"); function AU(e, t) { P("Standardized", e, t); } s(AU, "assertStandardized"); function CU(e, t) { P("Expression", e, t); } s(CU, "assertExpression"); function wU(e, t) { P("Binary", e, t); } s(wU, "assertBinary"); function DU(e, t) { P("Scopable", e, t); } s(DU, "assertScopable"); function IU(e, t) { P("BlockParent", e, t); } s(IU, "assertBlockParent"); function _U(e, t) { P("Block", e, t); } s(_U, "assertBlock"); function OU(e, t) { P("Statement", e, t); } s(OU, "assertStatement"); function NU(e, t) { P("Terminatorless", e, t); } s(NU, "assertTerminatorless"); function BU(e, t) { P("CompletionStatement", e, t); } s(BU, "assertCompletionStatement"); function kU(e, t) { P("Conditional", e, t); } s(kU, "assertConditional"); function FU(e, t) { P("Loop", e, t); } s(FU, "assertLoop"); function jU(e, t) { P("While", e, t); } s(jU, "assertWhile"); function LU(e, t) { P("ExpressionWrapper", e, t); } s(LU, "assertExpressionWrapper"); function MU(e, t) { P("For", e, t); } s(MU, "assertFor"); function RU(e, t) { P("ForXStatement", e, t); } s(RU, "assertForXStatement"); function qU(e, t) { P("Function", e, t); } s(qU, "assertFunction"); function UU(e, t) { P("FunctionParent", e, t); } s(UU, "assertFunctionParent"); function VU(e, t) { P("Pureish", e, t); } s(VU, "assertPureish"); function $U(e, t) { P("Declaration", e, t); } s($U, "assertDeclaration"); function WU(e, t) { P("PatternLike", e, t); } s(WU, "assertPatternLike"); function KU(e, t) { P("LVal", e, t); } s(KU, "assertLVal"); function GU(e, t) { P("TSEntityName", e, t); } s(GU, "assertTSEntityName"); function HU(e, t) { P("Literal", e, t); } s(HU, "assertLiteral"); function YU(e, t) { P("Immutable", e, t); } s(YU, "assertImmutable"); function zU(e, t) { P("UserWhitespacable", e, t); } s(zU, "assertUserWhitespacable"); function JU(e, t) { P("Method", e, t); } s(JU, "assertMethod"); function XU(e, t) { P("ObjectMember", e, t); } s(XU, "assertObjectMember"); function QU(e, t) { P("Property", e, t); } s(QU, "assertProperty"); function ZU(e, t) { P("UnaryLike", e, t); } s(ZU, "assertUnaryLike"); function eV(e, t) { P("Pattern", e, t); } s(eV, "assertPattern"); function tV(e, t) { P("Class", e, t); } s(tV, "assertClass"); function rV(e, t) { P("ImportOrExportDeclaration", e, t); } s(rV, "assertImportOrExportDeclaration"); function nV(e, t) { P("ExportDeclaration", e, t); } s(nV, "assertExportDeclaration"); function sV(e, t) { P("ModuleSpecifier", e, t); } s(sV, "assertModuleSpecifier"); function iV(e, t) { P("Accessor", e, t); } s(iV, "assertAccessor"); function aV(e, t) { P("Private", e, t); } s(aV, "assertPrivate"); function oV(e, t) { P("Flow", e, t); } s(oV, "assertFlow"); function lV(e, t) { P("FlowType", e, t); } s(lV, "assertFlowType"); function uV(e, t) { P("FlowBaseAnnotation", e, t); } s(uV, "assertFlowBaseAnnotation"); function cV(e, t) { P("FlowDeclaration", e, t); } s(cV, "assertFlowDeclaration"); function fV(e, t) { P("FlowPredicate", e, t); } s(fV, "assertFlowPredicate"); function pV(e, t) { P("EnumBody", e, t); } s(pV, "assertEnumBody"); function dV(e, t) { P("EnumMember", e, t); } s(dV, "assertEnumMember"); function hV(e, t) { P("JSX", e, t); } s(hV, "assertJSX"); function mV(e, t) { P("Miscellaneous", e, t); } s(mV, "assertMiscellaneous"); function yV(e, t) { P("TypeScript", e, t); } s(yV, "assertTypeScript"); function gV(e, t) { P("TSTypeElement", e, t); } s(gV, "assertTSTypeElement"); function bV(e, t) { P("TSType", e, t); } s(bV, "assertTSType"); function EV(e, t) { P("TSBaseType", e, t); } s(EV, "assertTSBaseType"); function vV(e, t) { (0, ja.default)("assertNumberLiteral", "assertNumericLiteral"), P("NumberLiteral", e, t); } s(vV, "assertNumberLiteral"); function TV(e, t) { (0, ja.default)("assertRegexLiteral", "assertRegExpLiteral"), P("RegexLiteral", e, t); } s(TV, "assertRegexLiteral"); function xV(e, t) { (0, ja.default)("assertRestProperty", "assertRestElement"), P("RestProperty", e, t); } s(xV, "assertRestProperty"); function SV(e, t) { (0, ja.default)("assertSpreadProperty", "assertSpreadElement"), P("SpreadProperty", e, t); } s(SV, "assertSpreadProperty"); function PV(e, t) { (0, ja.default)("assertModuleDeclaration", "assertImportOrExportDeclaration"), P("ModuleDeclaration", e, t); } s(PV, "assertModuleDeclaration"); }); // ../node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js var UE = T((Pl) => { "use strict"; Object.defineProperty(Pl, "__esModule", { value: !0 }); Pl.default = void 0; var $r = sr(), Eve = Pl.default = AV; function AV(e) { switch (e) { case "string": return (0, $r.stringTypeAnnotation)(); case "number": return (0, $r.numberTypeAnnotation)(); case "undefined": return (0, $r.voidTypeAnnotation)(); case "boolean": return (0, $r.booleanTypeAnnotation)(); case "function": return (0, $r.genericTypeAnnotation)((0, $r.identifier)("Function")); case "object": return (0, $r.genericTypeAnnotation)((0, $r.identifier)("Object")); case "symbol": return (0, $r.genericTypeAnnotation)((0, $r.identifier)("Symbol")); case "bigint": return (0, $r.anyTypeAnnotation)(); } throw new Error("Invalid typeof value: " + e); } s(AV, "createTypeAnnotationBasedOnTypeof"); }); // ../node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js var Fp = T((kp) => { "use strict"; Object.defineProperty(kp, "__esModule", { value: !0 }); kp.default = $E; var La = Tt(); function VE(e) { return (0, La.isIdentifier)(e) ? e.name : `${e.id.name}.${VE(e.qualification)}`; } s(VE, "getQualifiedName"); function $E(e) { let t = Array.from(e), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), i = /* @__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)) { n.set(l.type, l); continue; } if ((0, La.isUnionTypeAnnotation)(l)) { i.has(l.types) || (t.push(...l.types), i.add(l.types)); continue; } if ((0, La.isGenericTypeAnnotation)(l)) { let u = VE(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 = $E(c. typeParameters.params)) : c = l.typeParameters; } else r.set(u, l); continue; } a.push(l); } } for (let [, o] of n) a.push(o); for (let [, o] of r) a.push(o); return a; } s($E, "removeTypeDuplicates"); }); // ../node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js var WE = T((jp) => { "use strict"; Object.defineProperty(jp, "__esModule", { value: !0 }); jp.default = DV; var CV = sr(), wV = Fp(); function DV(e) { let t = (0, wV.default)(e); return t.length === 1 ? t[0] : (0, CV.unionTypeAnnotation)(t); } s(DV, "createFlowUnionType"); }); // ../node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js var HE = T((Lp) => { "use strict"; Object.defineProperty(Lp, "__esModule", { value: !0 }); Lp.default = GE; var Ma = Tt(); function KE(e) { return (0, Ma.isIdentifier)(e) ? e.name : `${e.right.name}.${KE(e.left)}`; } s(KE, "getQualifiedName"); function GE(e) { let t = Array.from(e), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set(), a = []; for (let o = 0; o < t.length; o++) { let l = t[o]; if (l && !a.includes(l)) { if ((0, Ma.isTSAnyKeyword)(l)) return [l]; if ((0, Ma.isTSBaseType)(l)) { n.set(l.type, l); continue; } if ((0, Ma.isTSUnionType)(l)) { i.has(l.types) || (t.push(...l.types), i.add(l.types)); continue; } if ((0, Ma.isTSTypeReference)(l) && l.typeParameters) { let u = KE(l.typeName); if (r.has(u)) { let c = r.get(u); c.typeParameters ? l.typeParameters && (c.typeParameters.params.push(...l.typeParameters.params), c.typeParameters.params = GE(c. typeParameters.params)) : c = l.typeParameters; } else r.set(u, l); continue; } a.push(l); } } for (let [, o] of n) a.push(o); for (let [, o] of r) a.push(o); return a; } s(GE, "removeTypeDuplicates"); }); // ../node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js var YE = T((Mp) => { "use strict"; Object.defineProperty(Mp, "__esModule", { value: !0 }); Mp.default = NV; var IV = sr(), _V = HE(), OV = Tt(); function NV(e) { let t = e.map((n) => (0, OV.isTSTypeAnnotation)(n) ? n.typeAnnotation : n), r = (0, _V.default)(t); return r.length === 1 ? r[0] : (0, IV.tsUnionType)(r); } s(NV, "createTSUnionType"); }); // ../node_modules/@babel/types/lib/builders/generated/uppercase.js var zE = T((w) => { "use strict"; Object.defineProperty(w, "__esModule", { value: !0 }); Object.defineProperty(w, "AnyTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.anyTypeAnnotation; }, "get") }); Object.defineProperty(w, "ArgumentPlaceholder", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.argumentPlaceholder; }, "get") }); Object.defineProperty(w, "ArrayExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.arrayExpression; }, "get") }); Object.defineProperty(w, "ArrayPattern", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.arrayPattern; }, "get") }); Object.defineProperty(w, "ArrayTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.arrayTypeAnnotation; }, "get") }); Object.defineProperty(w, "ArrowFunctionExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.arrowFunctionExpression; }, "get") }); Object.defineProperty(w, "AssignmentExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.assignmentExpression; }, "get") }); Object.defineProperty(w, "AssignmentPattern", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.assignmentPattern; }, "get") }); Object.defineProperty(w, "AwaitExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.awaitExpression; }, "get") }); Object.defineProperty(w, "BigIntLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.bigIntLiteral; }, "get") }); Object.defineProperty(w, "BinaryExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.binaryExpression; }, "get") }); Object.defineProperty(w, "BindExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.bindExpression; }, "get") }); Object.defineProperty(w, "BlockStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.blockStatement; }, "get") }); Object.defineProperty(w, "BooleanLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.booleanLiteral; }, "get") }); Object.defineProperty(w, "BooleanLiteralTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.booleanLiteralTypeAnnotation; }, "get") }); Object.defineProperty(w, "BooleanTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.booleanTypeAnnotation; }, "get") }); Object.defineProperty(w, "BreakStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.breakStatement; }, "get") }); Object.defineProperty(w, "CallExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.callExpression; }, "get") }); Object.defineProperty(w, "CatchClause", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.catchClause; }, "get") }); Object.defineProperty(w, "ClassAccessorProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.classAccessorProperty; }, "get") }); Object.defineProperty(w, "ClassBody", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.classBody; }, "get") }); Object.defineProperty(w, "ClassDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.classDeclaration; }, "get") }); Object.defineProperty(w, "ClassExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.classExpression; }, "get") }); Object.defineProperty(w, "ClassImplements", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.classImplements; }, "get") }); Object.defineProperty(w, "ClassMethod", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.classMethod; }, "get") }); Object.defineProperty(w, "ClassPrivateMethod", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.classPrivateMethod; }, "get") }); Object.defineProperty(w, "ClassPrivateProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.classPrivateProperty; }, "get") }); Object.defineProperty(w, "ClassProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.classProperty; }, "get") }); Object.defineProperty(w, "ConditionalExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.conditionalExpression; }, "get") }); Object.defineProperty(w, "ContinueStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.continueStatement; }, "get") }); Object.defineProperty(w, "DebuggerStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.debuggerStatement; }, "get") }); Object.defineProperty(w, "DecimalLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.decimalLiteral; }, "get") }); Object.defineProperty(w, "DeclareClass", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.declareClass; }, "get") }); Object.defineProperty(w, "DeclareExportAllDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.declareExportAllDeclaration; }, "get") }); Object.defineProperty(w, "DeclareExportDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.declareExportDeclaration; }, "get") }); Object.defineProperty(w, "DeclareFunction", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.declareFunction; }, "get") }); Object.defineProperty(w, "DeclareInterface", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.declareInterface; }, "get") }); Object.defineProperty(w, "DeclareModule", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.declareModule; }, "get") }); Object.defineProperty(w, "DeclareModuleExports", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.declareModuleExports; }, "get") }); Object.defineProperty(w, "DeclareOpaqueType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.declareOpaqueType; }, "get") }); Object.defineProperty(w, "DeclareTypeAlias", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.declareTypeAlias; }, "get") }); Object.defineProperty(w, "DeclareVariable", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.declareVariable; }, "get") }); Object.defineProperty(w, "DeclaredPredicate", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.declaredPredicate; }, "get") }); Object.defineProperty(w, "Decorator", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.decorator; }, "get") }); Object.defineProperty(w, "Directive", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.directive; }, "get") }); Object.defineProperty(w, "DirectiveLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.directiveLiteral; }, "get") }); Object.defineProperty(w, "DoExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.doExpression; }, "get") }); Object.defineProperty(w, "DoWhileStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.doWhileStatement; }, "get") }); Object.defineProperty(w, "EmptyStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.emptyStatement; }, "get") }); Object.defineProperty(w, "EmptyTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.emptyTypeAnnotation; }, "get") }); Object.defineProperty(w, "EnumBooleanBody", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.enumBooleanBody; }, "get") }); Object.defineProperty(w, "EnumBooleanMember", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.enumBooleanMember; }, "get") }); Object.defineProperty(w, "EnumDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.enumDeclaration; }, "get") }); Object.defineProperty(w, "EnumDefaultedMember", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.enumDefaultedMember; }, "get") }); Object.defineProperty(w, "EnumNumberBody", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.enumNumberBody; }, "get") }); Object.defineProperty(w, "EnumNumberMember", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.enumNumberMember; }, "get") }); Object.defineProperty(w, "EnumStringBody", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.enumStringBody; }, "get") }); Object.defineProperty(w, "EnumStringMember", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.enumStringMember; }, "get") }); Object.defineProperty(w, "EnumSymbolBody", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.enumSymbolBody; }, "get") }); Object.defineProperty(w, "ExistsTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.existsTypeAnnotation; }, "get") }); Object.defineProperty(w, "ExportAllDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.exportAllDeclaration; }, "get") }); Object.defineProperty(w, "ExportDefaultDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.exportDefaultDeclaration; }, "get") }); Object.defineProperty(w, "ExportDefaultSpecifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.exportDefaultSpecifier; }, "get") }); Object.defineProperty(w, "ExportNamedDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.exportNamedDeclaration; }, "get") }); Object.defineProperty(w, "ExportNamespaceSpecifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.exportNamespaceSpecifier; }, "get") }); Object.defineProperty(w, "ExportSpecifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.exportSpecifier; }, "get") }); Object.defineProperty(w, "ExpressionStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.expressionStatement; }, "get") }); Object.defineProperty(w, "File", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.file; }, "get") }); Object.defineProperty(w, "ForInStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.forInStatement; }, "get") }); Object.defineProperty(w, "ForOfStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.forOfStatement; }, "get") }); Object.defineProperty(w, "ForStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.forStatement; }, "get") }); Object.defineProperty(w, "FunctionDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.functionDeclaration; }, "get") }); Object.defineProperty(w, "FunctionExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.functionExpression; }, "get") }); Object.defineProperty(w, "FunctionTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.functionTypeAnnotation; }, "get") }); Object.defineProperty(w, "FunctionTypeParam", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.functionTypeParam; }, "get") }); Object.defineProperty(w, "GenericTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.genericTypeAnnotation; }, "get") }); Object.defineProperty(w, "Identifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.identifier; }, "get") }); Object.defineProperty(w, "IfStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.ifStatement; }, "get") }); Object.defineProperty(w, "Import", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.import; }, "get") }); Object.defineProperty(w, "ImportAttribute", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.importAttribute; }, "get") }); Object.defineProperty(w, "ImportDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.importDeclaration; }, "get") }); Object.defineProperty(w, "ImportDefaultSpecifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.importDefaultSpecifier; }, "get") }); Object.defineProperty(w, "ImportExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.importExpression; }, "get") }); Object.defineProperty(w, "ImportNamespaceSpecifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.importNamespaceSpecifier; }, "get") }); Object.defineProperty(w, "ImportSpecifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.importSpecifier; }, "get") }); Object.defineProperty(w, "IndexedAccessType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.indexedAccessType; }, "get") }); Object.defineProperty(w, "InferredPredicate", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.inferredPredicate; }, "get") }); Object.defineProperty(w, "InterfaceDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.interfaceDeclaration; }, "get") }); Object.defineProperty(w, "InterfaceExtends", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.interfaceExtends; }, "get") }); Object.defineProperty(w, "InterfaceTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.interfaceTypeAnnotation; }, "get") }); Object.defineProperty(w, "InterpreterDirective", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.interpreterDirective; }, "get") }); Object.defineProperty(w, "IntersectionTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.intersectionTypeAnnotation; }, "get") }); Object.defineProperty(w, "JSXAttribute", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.jsxAttribute; }, "get") }); Object.defineProperty(w, "JSXClosingElement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.jsxClosingElement; }, "get") }); Object.defineProperty(w, "JSXClosingFragment", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.jsxClosingFragment; }, "get") }); Object.defineProperty(w, "JSXElement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.jsxElement; }, "get") }); Object.defineProperty(w, "JSXEmptyExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.jsxEmptyExpression; }, "get") }); Object.defineProperty(w, "JSXExpressionContainer", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.jsxExpressionContainer; }, "get") }); Object.defineProperty(w, "JSXFragment", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.jsxFragment; }, "get") }); Object.defineProperty(w, "JSXIdentifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.jsxIdentifier; }, "get") }); Object.defineProperty(w, "JSXMemberExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.jsxMemberExpression; }, "get") }); Object.defineProperty(w, "JSXNamespacedName", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.jsxNamespacedName; }, "get") }); Object.defineProperty(w, "JSXOpeningElement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.jsxOpeningElement; }, "get") }); Object.defineProperty(w, "JSXOpeningFragment", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.jsxOpeningFragment; }, "get") }); Object.defineProperty(w, "JSXSpreadAttribute", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.jsxSpreadAttribute; }, "get") }); Object.defineProperty(w, "JSXSpreadChild", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.jsxSpreadChild; }, "get") }); Object.defineProperty(w, "JSXText", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.jsxText; }, "get") }); Object.defineProperty(w, "LabeledStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.labeledStatement; }, "get") }); Object.defineProperty(w, "LogicalExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.logicalExpression; }, "get") }); Object.defineProperty(w, "MemberExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.memberExpression; }, "get") }); Object.defineProperty(w, "MetaProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.metaProperty; }, "get") }); Object.defineProperty(w, "MixedTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.mixedTypeAnnotation; }, "get") }); Object.defineProperty(w, "ModuleExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.moduleExpression; }, "get") }); Object.defineProperty(w, "NewExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.newExpression; }, "get") }); Object.defineProperty(w, "Noop", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.noop; }, "get") }); Object.defineProperty(w, "NullLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.nullLiteral; }, "get") }); Object.defineProperty(w, "NullLiteralTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.nullLiteralTypeAnnotation; }, "get") }); Object.defineProperty(w, "NullableTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.nullableTypeAnnotation; }, "get") }); Object.defineProperty(w, "NumberLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.numberLiteral; }, "get") }); Object.defineProperty(w, "NumberLiteralTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.numberLiteralTypeAnnotation; }, "get") }); Object.defineProperty(w, "NumberTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.numberTypeAnnotation; }, "get") }); Object.defineProperty(w, "NumericLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.numericLiteral; }, "get") }); Object.defineProperty(w, "ObjectExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.objectExpression; }, "get") }); Object.defineProperty(w, "ObjectMethod", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.objectMethod; }, "get") }); Object.defineProperty(w, "ObjectPattern", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.objectPattern; }, "get") }); Object.defineProperty(w, "ObjectProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.objectProperty; }, "get") }); Object.defineProperty(w, "ObjectTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.objectTypeAnnotation; }, "get") }); Object.defineProperty(w, "ObjectTypeCallProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.objectTypeCallProperty; }, "get") }); Object.defineProperty(w, "ObjectTypeIndexer", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.objectTypeIndexer; }, "get") }); Object.defineProperty(w, "ObjectTypeInternalSlot", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.objectTypeInternalSlot; }, "get") }); Object.defineProperty(w, "ObjectTypeProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.objectTypeProperty; }, "get") }); Object.defineProperty(w, "ObjectTypeSpreadProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.objectTypeSpreadProperty; }, "get") }); Object.defineProperty(w, "OpaqueType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.opaqueType; }, "get") }); Object.defineProperty(w, "OptionalCallExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.optionalCallExpression; }, "get") }); Object.defineProperty(w, "OptionalIndexedAccessType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.optionalIndexedAccessType; }, "get") }); Object.defineProperty(w, "OptionalMemberExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.optionalMemberExpression; }, "get") }); Object.defineProperty(w, "ParenthesizedExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.parenthesizedExpression; }, "get") }); Object.defineProperty(w, "PipelineBareFunction", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.pipelineBareFunction; }, "get") }); Object.defineProperty(w, "PipelinePrimaryTopicReference", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.pipelinePrimaryTopicReference; }, "get") }); Object.defineProperty(w, "PipelineTopicExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.pipelineTopicExpression; }, "get") }); Object.defineProperty(w, "Placeholder", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.placeholder; }, "get") }); Object.defineProperty(w, "PrivateName", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.privateName; }, "get") }); Object.defineProperty(w, "Program", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.program; }, "get") }); Object.defineProperty(w, "QualifiedTypeIdentifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.qualifiedTypeIdentifier; }, "get") }); Object.defineProperty(w, "RecordExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.recordExpression; }, "get") }); Object.defineProperty(w, "RegExpLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.regExpLiteral; }, "get") }); Object.defineProperty(w, "RegexLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.regexLiteral; }, "get") }); Object.defineProperty(w, "RestElement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.restElement; }, "get") }); Object.defineProperty(w, "RestProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.restProperty; }, "get") }); Object.defineProperty(w, "ReturnStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.returnStatement; }, "get") }); Object.defineProperty(w, "SequenceExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.sequenceExpression; }, "get") }); Object.defineProperty(w, "SpreadElement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.spreadElement; }, "get") }); Object.defineProperty(w, "SpreadProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.spreadProperty; }, "get") }); Object.defineProperty(w, "StaticBlock", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.staticBlock; }, "get") }); Object.defineProperty(w, "StringLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.stringLiteral; }, "get") }); Object.defineProperty(w, "StringLiteralTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.stringLiteralTypeAnnotation; }, "get") }); Object.defineProperty(w, "StringTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.stringTypeAnnotation; }, "get") }); Object.defineProperty(w, "Super", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.super; }, "get") }); Object.defineProperty(w, "SwitchCase", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.switchCase; }, "get") }); Object.defineProperty(w, "SwitchStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.switchStatement; }, "get") }); Object.defineProperty(w, "SymbolTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.symbolTypeAnnotation; }, "get") }); Object.defineProperty(w, "TSAnyKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsAnyKeyword; }, "get") }); Object.defineProperty(w, "TSArrayType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsArrayType; }, "get") }); Object.defineProperty(w, "TSAsExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsAsExpression; }, "get") }); Object.defineProperty(w, "TSBigIntKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsBigIntKeyword; }, "get") }); Object.defineProperty(w, "TSBooleanKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsBooleanKeyword; }, "get") }); Object.defineProperty(w, "TSCallSignatureDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsCallSignatureDeclaration; }, "get") }); Object.defineProperty(w, "TSConditionalType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsConditionalType; }, "get") }); Object.defineProperty(w, "TSConstructSignatureDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsConstructSignatureDeclaration; }, "get") }); Object.defineProperty(w, "TSConstructorType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsConstructorType; }, "get") }); Object.defineProperty(w, "TSDeclareFunction", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsDeclareFunction; }, "get") }); Object.defineProperty(w, "TSDeclareMethod", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsDeclareMethod; }, "get") }); Object.defineProperty(w, "TSEnumDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsEnumDeclaration; }, "get") }); Object.defineProperty(w, "TSEnumMember", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsEnumMember; }, "get") }); Object.defineProperty(w, "TSExportAssignment", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsExportAssignment; }, "get") }); Object.defineProperty(w, "TSExpressionWithTypeArguments", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsExpressionWithTypeArguments; }, "get") }); Object.defineProperty(w, "TSExternalModuleReference", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsExternalModuleReference; }, "get") }); Object.defineProperty(w, "TSFunctionType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsFunctionType; }, "get") }); Object.defineProperty(w, "TSImportEqualsDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsImportEqualsDeclaration; }, "get") }); Object.defineProperty(w, "TSImportType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsImportType; }, "get") }); Object.defineProperty(w, "TSIndexSignature", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsIndexSignature; }, "get") }); Object.defineProperty(w, "TSIndexedAccessType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsIndexedAccessType; }, "get") }); Object.defineProperty(w, "TSInferType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsInferType; }, "get") }); Object.defineProperty(w, "TSInstantiationExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsInstantiationExpression; }, "get") }); Object.defineProperty(w, "TSInterfaceBody", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsInterfaceBody; }, "get") }); Object.defineProperty(w, "TSInterfaceDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsInterfaceDeclaration; }, "get") }); Object.defineProperty(w, "TSIntersectionType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsIntersectionType; }, "get") }); Object.defineProperty(w, "TSIntrinsicKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsIntrinsicKeyword; }, "get") }); Object.defineProperty(w, "TSLiteralType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsLiteralType; }, "get") }); Object.defineProperty(w, "TSMappedType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsMappedType; }, "get") }); Object.defineProperty(w, "TSMethodSignature", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsMethodSignature; }, "get") }); Object.defineProperty(w, "TSModuleBlock", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsModuleBlock; }, "get") }); Object.defineProperty(w, "TSModuleDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsModuleDeclaration; }, "get") }); Object.defineProperty(w, "TSNamedTupleMember", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsNamedTupleMember; }, "get") }); Object.defineProperty(w, "TSNamespaceExportDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsNamespaceExportDeclaration; }, "get") }); Object.defineProperty(w, "TSNeverKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsNeverKeyword; }, "get") }); Object.defineProperty(w, "TSNonNullExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsNonNullExpression; }, "get") }); Object.defineProperty(w, "TSNullKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsNullKeyword; }, "get") }); Object.defineProperty(w, "TSNumberKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsNumberKeyword; }, "get") }); Object.defineProperty(w, "TSObjectKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsObjectKeyword; }, "get") }); Object.defineProperty(w, "TSOptionalType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsOptionalType; }, "get") }); Object.defineProperty(w, "TSParameterProperty", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsParameterProperty; }, "get") }); Object.defineProperty(w, "TSParenthesizedType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsParenthesizedType; }, "get") }); Object.defineProperty(w, "TSPropertySignature", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsPropertySignature; }, "get") }); Object.defineProperty(w, "TSQualifiedName", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsQualifiedName; }, "get") }); Object.defineProperty(w, "TSRestType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsRestType; }, "get") }); Object.defineProperty(w, "TSSatisfiesExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsSatisfiesExpression; }, "get") }); Object.defineProperty(w, "TSStringKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsStringKeyword; }, "get") }); Object.defineProperty(w, "TSSymbolKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsSymbolKeyword; }, "get") }); Object.defineProperty(w, "TSThisType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsThisType; }, "get") }); Object.defineProperty(w, "TSTupleType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsTupleType; }, "get") }); Object.defineProperty(w, "TSTypeAliasDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsTypeAliasDeclaration; }, "get") }); Object.defineProperty(w, "TSTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsTypeAnnotation; }, "get") }); Object.defineProperty(w, "TSTypeAssertion", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsTypeAssertion; }, "get") }); Object.defineProperty(w, "TSTypeLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsTypeLiteral; }, "get") }); Object.defineProperty(w, "TSTypeOperator", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsTypeOperator; }, "get") }); Object.defineProperty(w, "TSTypeParameter", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsTypeParameter; }, "get") }); Object.defineProperty(w, "TSTypeParameterDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsTypeParameterDeclaration; }, "get") }); Object.defineProperty(w, "TSTypeParameterInstantiation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsTypeParameterInstantiation; }, "get") }); Object.defineProperty(w, "TSTypePredicate", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsTypePredicate; }, "get") }); Object.defineProperty(w, "TSTypeQuery", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsTypeQuery; }, "get") }); Object.defineProperty(w, "TSTypeReference", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsTypeReference; }, "get") }); Object.defineProperty(w, "TSUndefinedKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsUndefinedKeyword; }, "get") }); Object.defineProperty(w, "TSUnionType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsUnionType; }, "get") }); Object.defineProperty(w, "TSUnknownKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsUnknownKeyword; }, "get") }); Object.defineProperty(w, "TSVoidKeyword", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tsVoidKeyword; }, "get") }); Object.defineProperty(w, "TaggedTemplateExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.taggedTemplateExpression; }, "get") }); Object.defineProperty(w, "TemplateElement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.templateElement; }, "get") }); Object.defineProperty(w, "TemplateLiteral", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.templateLiteral; }, "get") }); Object.defineProperty(w, "ThisExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.thisExpression; }, "get") }); Object.defineProperty(w, "ThisTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.thisTypeAnnotation; }, "get") }); Object.defineProperty(w, "ThrowStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.throwStatement; }, "get") }); Object.defineProperty(w, "TopicReference", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.topicReference; }, "get") }); Object.defineProperty(w, "TryStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tryStatement; }, "get") }); Object.defineProperty(w, "TupleExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tupleExpression; }, "get") }); Object.defineProperty(w, "TupleTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.tupleTypeAnnotation; }, "get") }); Object.defineProperty(w, "TypeAlias", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.typeAlias; }, "get") }); Object.defineProperty(w, "TypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.typeAnnotation; }, "get") }); Object.defineProperty(w, "TypeCastExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.typeCastExpression; }, "get") }); Object.defineProperty(w, "TypeParameter", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.typeParameter; }, "get") }); Object.defineProperty(w, "TypeParameterDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.typeParameterDeclaration; }, "get") }); Object.defineProperty(w, "TypeParameterInstantiation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.typeParameterInstantiation; }, "get") }); Object.defineProperty(w, "TypeofTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.typeofTypeAnnotation; }, "get") }); Object.defineProperty(w, "UnaryExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.unaryExpression; }, "get") }); Object.defineProperty(w, "UnionTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.unionTypeAnnotation; }, "get") }); Object.defineProperty(w, "UpdateExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.updateExpression; }, "get") }); Object.defineProperty(w, "V8IntrinsicIdentifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.v8IntrinsicIdentifier; }, "get") }); Object.defineProperty(w, "VariableDeclaration", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.variableDeclaration; }, "get") }); Object.defineProperty(w, "VariableDeclarator", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.variableDeclarator; }, "get") }); Object.defineProperty(w, "Variance", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.variance; }, "get") }); Object.defineProperty(w, "VoidTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.voidTypeAnnotation; }, "get") }); Object.defineProperty(w, "WhileStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.whileStatement; }, "get") }); Object.defineProperty(w, "WithStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.withStatement; }, "get") }); Object.defineProperty(w, "YieldExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return D.yieldExpression; }, "get") }); var D = sr(); }); // ../node_modules/@babel/types/lib/builders/productions.js var qp = T((Rp) => { "use strict"; Object.defineProperty(Rp, "__esModule", { value: !0 }); Rp.buildUndefinedNode = BV; var JE = sr(); function BV() { return (0, JE.unaryExpression)("void", (0, JE.numericLiteral)(0), !0); } s(BV, "buildUndefinedNode"); }); // ../node_modules/@babel/types/lib/clone/cloneNode.js var es = T((Vp) => { "use strict"; Object.defineProperty(Vp, "__esModule", { value: !0 }); Vp.default = kV; var XE = Cr(), QE = Tt(), { hasOwn: ln } = { hasOwn: Function.call.bind(Object.prototype.hasOwnProperty) }; function ZE(e, t, r, n) { return e && typeof e.type == "string" ? ev(e, t, r, n) : e; } s(ZE, "cloneIfNode"); function Up(e, t, r, n) { return Array.isArray(e) ? e.map((i) => ZE(i, t, r, n)) : ZE(e, t, r, n); } s(Up, "cloneIfNodeOrArray"); function kV(e, t = !0, r = !1) { return ev(e, t, r, /* @__PURE__ */ new Map()); } s(kV, "cloneNode"); function ev(e, t = !0, r = !1, n) { if (!e) return e; let { type: i } = e, a = { type: e.type }; if ((0, QE.isIdentifier)(e)) a.name = e.name, ln(e, "optional") && typeof e.optional == "boolean" && (a.optional = e.optional), ln(e, "typeAnnotation") && (a.typeAnnotation = t ? Up(e.typeAnnotation, !0, r, n) : e.typeAnnotation), ln(e, "decorators") && (a.decorators = t ? Up(e.decorators, !0, r, n) : e.decorators); else if (ln(XE.NODE_FIELDS, i)) for (let o of Object.keys(XE.NODE_FIELDS[i])) ln(e, o) && (t ? a[o] = (0, QE.isFile)(e) && o === "comments" ? Al(e.comments, t, r, n) : Up(e[o], !0, r, n) : a[o] = e[o]); else throw new Error(`Unknown node type: "${i}"`); return ln(e, "loc") && (r ? a.loc = null : a.loc = e.loc), ln(e, "leadingComments") && (a.leadingComments = Al(e.leadingComments, t, r, n)), ln(e, "innerComments") && (a.innerComments = Al(e.innerComments, t, r, n)), ln(e, "trailingComments") && (a.trailingComments = Al(e.trailingComments, t, r, n)), ln(e, "extra") && (a.extra = Object.assign({}, e.extra)), a; } s(ev, "cloneNodeInternal"); function Al(e, t, r, n) { return !e || !t ? e : e.map((i) => { let a = n.get(i); if (a) return a; let { type: o, value: l, loc: u } = i, c = { type: o, value: l, loc: u }; return r && (c.loc = null), n.set(i, c), c; }); } s(Al, "maybeCloneComments"); }); // ../node_modules/@babel/types/lib/clone/clone.js var tv = T(($p) => { "use strict"; Object.defineProperty($p, "__esModule", { value: !0 }); $p.default = jV; var FV = es(); function jV(e) { return (0, FV.default)(e, !1); } s(jV, "clone"); }); // ../node_modules/@babel/types/lib/clone/cloneDeep.js var rv = T((Wp) => { "use strict"; Object.defineProperty(Wp, "__esModule", { value: !0 }); Wp.default = MV; var LV = es(); function MV(e) { return (0, LV.default)(e); } s(MV, "cloneDeep"); }); // ../node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js var nv = T((Kp) => { "use strict"; Object.defineProperty(Kp, "__esModule", { value: !0 }); Kp.default = qV; var RV = es(); function qV(e) { return (0, RV.default)(e, !0, !0); } s(qV, "cloneDeepWithoutLoc"); }); // ../node_modules/@babel/types/lib/clone/cloneWithoutLoc.js var sv = T((Gp) => { "use strict"; Object.defineProperty(Gp, "__esModule", { value: !0 }); Gp.default = VV; var UV = es(); function VV(e) { return (0, UV.default)(e, !1, !0); } s(VV, "cloneWithoutLoc"); }); // ../node_modules/@babel/types/lib/comments/addComments.js var Yp = T((Hp) => { "use strict"; Object.defineProperty(Hp, "__esModule", { value: !0 }); Hp.default = $V; function $V(e, t, r) { if (!r || !e) return e; let n = `${t}Comments`; return e[n] ? t === "leading" ? e[n] = r.concat(e[n]) : e[n].push(...r) : e[n] = r, e; } s($V, "addComments"); }); // ../node_modules/@babel/types/lib/comments/addComment.js var iv = T((zp) => { "use strict"; Object.defineProperty(zp, "__esModule", { value: !0 }); zp.default = KV; var WV = Yp(); function KV(e, t, r, n) { return (0, WV.default)(e, t, [{ type: n ? "CommentLine" : "CommentBlock", value: r }]); } s(KV, "addComment"); }); // ../node_modules/@babel/types/lib/utils/inherit.js var Cl = T((Jp) => { "use strict"; Object.defineProperty(Jp, "__esModule", { value: !0 }); Jp.default = GV; function GV(e, t, r) { t && r && (t[e] = Array.from(new Set([].concat(t[e], r[e]).filter(Boolean)))); } s(GV, "inherit"); }); // ../node_modules/@babel/types/lib/comments/inheritInnerComments.js var Qp = T((Xp) => { "use strict"; Object.defineProperty(Xp, "__esModule", { value: !0 }); Xp.default = YV; var HV = Cl(); function YV(e, t) { (0, HV.default)("innerComments", e, t); } s(YV, "inheritInnerComments"); }); // ../node_modules/@babel/types/lib/comments/inheritLeadingComments.js var ed = T((Zp) => { "use strict"; Object.defineProperty(Zp, "__esModule", { value: !0 }); Zp.default = JV; var zV = Cl(); function JV(e, t) { (0, zV.default)("leadingComments", e, t); } s(JV, "inheritLeadingComments"); }); // ../node_modules/@babel/types/lib/comments/inheritTrailingComments.js var rd = T((td) => { "use strict"; Object.defineProperty(td, "__esModule", { value: !0 }); td.default = QV; var XV = Cl(); function QV(e, t) { (0, XV.default)("trailingComments", e, t); } s(QV, "inheritTrailingComments"); }); // ../node_modules/@babel/types/lib/comments/inheritsComments.js var sd = T((nd) => { "use strict"; Object.defineProperty(nd, "__esModule", { value: !0 }); nd.default = r$; var ZV = rd(), e$ = ed(), t$ = Qp(); function r$(e, t) { return (0, ZV.default)(e, t), (0, e$.default)(e, t), (0, t$.default)(e, t), e; } s(r$, "inheritsComments"); }); // ../node_modules/@babel/types/lib/comments/removeComments.js var av = T((id) => { "use strict"; Object.defineProperty(id, "__esModule", { value: !0 }); id.default = s$; var n$ = Xn(); function s$(e) { return n$.COMMENT_KEYS.forEach((t) => { e[t] = null; }), e; } s(s$, "removeComments"); }); // ../node_modules/@babel/types/lib/constants/generated/index.js var ov = T((z) => { "use strict"; Object.defineProperty(z, "__esModule", { value: !0 }); z.WHILE_TYPES = z.USERWHITESPACABLE_TYPES = z.UNARYLIKE_TYPES = z.TYPESCRIPT_TYPES = z.TSTYPE_TYPES = z.TSTYPEELEMENT_TYPES = z.TSENTITYNAME_TYPES = z.TSBASETYPE_TYPES = z.TERMINATORLESS_TYPES = z.STATEMENT_TYPES = z.STANDARDIZED_TYPES = z.SCOPABLE_TYPES = z.PUREISH_TYPES = z.PROPERTY_TYPES = z.PRIVATE_TYPES = z.PATTERN_TYPES = z.PATTERNLIKE_TYPES = z.OBJECTMEMBER_TYPES = z.MODULESPECIFIER_TYPES = z.MODULEDECLARATION_TYPES = z.MISCELLANEOUS_TYPES = z.METHOD_TYPES = z.LVAL_TYPES = z.LOOP_TYPES = z.LITERAL_TYPES = z.JSX_TYPES = z.IMPORTOREXPORTDECLARATION_TYPES = z.IMMUTABLE_TYPES = z.FUNCTION_TYPES = z.FUNCTIONPARENT_TYPES = z.FOR_TYPES = z.FORXSTATEMENT_TYPES = z.FLOW_TYPES = z.FLOWTYPE_TYPES = z.FLOWPREDICATE_TYPES = z.FLOWDECLARATION_TYPES = z.FLOWBASEANNOTATION_TYPES = z.EXPRESSION_TYPES = z.EXPRESSIONWRAPPER_TYPES = z.EXPORTDECLARATION_TYPES = z.ENUMMEMBER_TYPES = z.ENUMBODY_TYPES = z.DECLARATION_TYPES = z.CONDITIONAL_TYPES = z.COMPLETIONSTATEMENT_TYPES = z.CLASS_TYPES = z.BLOCK_TYPES = z.BLOCKPARENT_TYPES = z.BINARY_TYPES = z.ACCESSOR_TYPES = void 0; var _e = Cr(), aTe = z.STANDARDIZED_TYPES = _e.FLIPPED_ALIAS_KEYS.Standardized, oTe = z.EXPRESSION_TYPES = _e.FLIPPED_ALIAS_KEYS.Expression, lTe = z.BINARY_TYPES = _e.FLIPPED_ALIAS_KEYS.Binary, uTe = z.SCOPABLE_TYPES = _e.FLIPPED_ALIAS_KEYS.Scopable, cTe = z.BLOCKPARENT_TYPES = _e. FLIPPED_ALIAS_KEYS.BlockParent, fTe = z.BLOCK_TYPES = _e.FLIPPED_ALIAS_KEYS.Block, pTe = z.STATEMENT_TYPES = _e.FLIPPED_ALIAS_KEYS.Statement, dTe = z.TERMINATORLESS_TYPES = _e.FLIPPED_ALIAS_KEYS.Terminatorless, hTe = z.COMPLETIONSTATEMENT_TYPES = _e.FLIPPED_ALIAS_KEYS.CompletionStatement, mTe = z.CONDITIONAL_TYPES = _e.FLIPPED_ALIAS_KEYS.Conditional, yTe = z.LOOP_TYPES = _e.FLIPPED_ALIAS_KEYS.Loop, gTe = z.WHILE_TYPES = _e.FLIPPED_ALIAS_KEYS. While, bTe = z.EXPRESSIONWRAPPER_TYPES = _e.FLIPPED_ALIAS_KEYS.ExpressionWrapper, ETe = z.FOR_TYPES = _e.FLIPPED_ALIAS_KEYS.For, vTe = z.FORXSTATEMENT_TYPES = _e.FLIPPED_ALIAS_KEYS.ForXStatement, TTe = z.FUNCTION_TYPES = _e.FLIPPED_ALIAS_KEYS.Function, xTe = z.FUNCTIONPARENT_TYPES = _e.FLIPPED_ALIAS_KEYS. FunctionParent, STe = z.PUREISH_TYPES = _e.FLIPPED_ALIAS_KEYS.Pureish, PTe = z.DECLARATION_TYPES = _e.FLIPPED_ALIAS_KEYS.Declaration, ATe = z. PATTERNLIKE_TYPES = _e.FLIPPED_ALIAS_KEYS.PatternLike, CTe = z.LVAL_TYPES = _e.FLIPPED_ALIAS_KEYS.LVal, wTe = z.TSENTITYNAME_TYPES = _e.FLIPPED_ALIAS_KEYS. TSEntityName, DTe = z.LITERAL_TYPES = _e.FLIPPED_ALIAS_KEYS.Literal, ITe = z.IMMUTABLE_TYPES = _e.FLIPPED_ALIAS_KEYS.Immutable, _Te = z.USERWHITESPACABLE_TYPES = _e.FLIPPED_ALIAS_KEYS.UserWhitespacable, OTe = z.METHOD_TYPES = _e.FLIPPED_ALIAS_KEYS.Method, NTe = z.OBJECTMEMBER_TYPES = _e.FLIPPED_ALIAS_KEYS. ObjectMember, BTe = z.PROPERTY_TYPES = _e.FLIPPED_ALIAS_KEYS.Property, kTe = z.UNARYLIKE_TYPES = _e.FLIPPED_ALIAS_KEYS.UnaryLike, FTe = z. PATTERN_TYPES = _e.FLIPPED_ALIAS_KEYS.Pattern, jTe = z.CLASS_TYPES = _e.FLIPPED_ALIAS_KEYS.Class, i$ = z.IMPORTOREXPORTDECLARATION_TYPES = _e.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration, LTe = z.EXPORTDECLARATION_TYPES = _e.FLIPPED_ALIAS_KEYS.ExportDeclaration, MTe = z.MODULESPECIFIER_TYPES = _e.FLIPPED_ALIAS_KEYS.ModuleSpecifier, RTe = z.ACCESSOR_TYPES = _e.FLIPPED_ALIAS_KEYS.Accessor, qTe = z.PRIVATE_TYPES = _e.FLIPPED_ALIAS_KEYS. Private, UTe = z.FLOW_TYPES = _e.FLIPPED_ALIAS_KEYS.Flow, VTe = z.FLOWTYPE_TYPES = _e.FLIPPED_ALIAS_KEYS.FlowType, $Te = z.FLOWBASEANNOTATION_TYPES = _e.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation, WTe = z.FLOWDECLARATION_TYPES = _e.FLIPPED_ALIAS_KEYS.FlowDeclaration, KTe = z.FLOWPREDICATE_TYPES = _e.FLIPPED_ALIAS_KEYS.FlowPredicate, GTe = z.ENUMBODY_TYPES = _e.FLIPPED_ALIAS_KEYS.EnumBody, HTe = z.ENUMMEMBER_TYPES = _e.FLIPPED_ALIAS_KEYS. EnumMember, YTe = z.JSX_TYPES = _e.FLIPPED_ALIAS_KEYS.JSX, zTe = z.MISCELLANEOUS_TYPES = _e.FLIPPED_ALIAS_KEYS.Miscellaneous, JTe = z.TYPESCRIPT_TYPES = _e.FLIPPED_ALIAS_KEYS.TypeScript, XTe = z.TSTYPEELEMENT_TYPES = _e.FLIPPED_ALIAS_KEYS.TSTypeElement, QTe = z.TSTYPE_TYPES = _e.FLIPPED_ALIAS_KEYS. TSType, ZTe = z.TSBASETYPE_TYPES = _e.FLIPPED_ALIAS_KEYS.TSBaseType, exe = z.MODULEDECLARATION_TYPES = i$; }); // ../node_modules/@babel/types/lib/converters/toBlock.js var ld = T((od) => { "use strict"; Object.defineProperty(od, "__esModule", { value: !0 }); od.default = a$; var wl = Tt(), ad = sr(); function a$(e, t) { if ((0, wl.isBlockStatement)(e)) return e; let r = []; return (0, wl.isEmptyStatement)(e) ? r = [] : ((0, wl.isStatement)(e) || ((0, wl.isFunction)(t) ? e = (0, ad.returnStatement)(e) : e = (0, ad. expressionStatement)(e)), r = [e]), (0, ad.blockStatement)(r); } s(a$, "toBlock"); }); // ../node_modules/@babel/types/lib/converters/ensureBlock.js var lv = T((ud) => { "use strict"; Object.defineProperty(ud, "__esModule", { value: !0 }); ud.default = l$; var o$ = ld(); function l$(e, t = "body") { let r = (0, o$.default)(e[t], e); return e[t] = r, r; } s(l$, "ensureBlock"); }); // ../node_modules/@babel/types/lib/converters/toIdentifier.js var fd = T((cd) => { "use strict"; Object.defineProperty(cd, "__esModule", { value: !0 }); cd.default = f$; var u$ = bi(), c$ = gi(); function f$(e) { e = e + ""; let t = ""; for (let r of e) t += (0, c$.isIdentifierChar)(r.codePointAt(0)) ? r : "-"; return t = t.replace(/^[-0-9]+/, ""), t = t.replace(/[-\s]+(.)?/g, function(r, n) { return n ? n.toUpperCase() : ""; }), (0, u$.default)(t) || (t = `_${t}`), t || "_"; } s(f$, "toIdentifier"); }); // ../node_modules/@babel/types/lib/converters/toBindingIdentifierName.js var uv = T((pd) => { "use strict"; Object.defineProperty(pd, "__esModule", { value: !0 }); pd.default = d$; var p$ = fd(); function d$(e) { return e = (0, p$.default)(e), (e === "eval" || e === "arguments") && (e = "_" + e), e; } s(d$, "toBindingIdentifierName"); }); // ../node_modules/@babel/types/lib/converters/toComputedKey.js var cv = T((dd) => { "use strict"; Object.defineProperty(dd, "__esModule", { value: !0 }); dd.default = y$; var h$ = Tt(), m$ = sr(); function y$(e, t = e.key || e.property) { return !e.computed && (0, h$.isIdentifier)(t) && (t = (0, m$.stringLiteral)(t.name)), t; } s(y$, "toComputedKey"); }); // ../node_modules/@babel/types/lib/converters/toExpression.js var fv = T((Dl) => { "use strict"; Object.defineProperty(Dl, "__esModule", { value: !0 }); Dl.default = void 0; var Ra = Tt(), pxe = Dl.default = g$; function g$(e) { if ((0, Ra.isExpressionStatement)(e) && (e = e.expression), (0, Ra.isExpression)(e)) return e; if ((0, Ra.isClass)(e) ? e.type = "ClassExpression" : (0, Ra.isFunction)(e) && (e.type = "FunctionExpression"), !(0, Ra.isExpression)(e)) throw new Error(`cannot turn ${e.type} to an expression`); return e; } s(g$, "toExpression"); }); // ../node_modules/@babel/types/lib/traverse/traverseFast.js var yd = T((md) => { "use strict"; Object.defineProperty(md, "__esModule", { value: !0 }); md.default = hd; var b$ = Cr(); function hd(e, t, r) { if (!e) return; let n = b$.VISITOR_KEYS[e.type]; if (n) { r = r || {}, t(e, r); for (let i of n) { let a = e[i]; if (Array.isArray(a)) for (let o of a) hd(o, t, r); else hd(a, t, r); } } } s(hd, "traverseFast"); }); // ../node_modules/@babel/types/lib/modifications/removeProperties.js var bd = T((gd) => { "use strict"; Object.defineProperty(gd, "__esModule", { value: !0 }); gd.default = T$; var E$ = Xn(), pv = ["tokens", "start", "end", "loc", "raw", "rawValue"], v$ = [...E$.COMMENT_KEYS, "comments", ...pv]; function T$(e, t = {}) { let r = t.preserveComments ? pv : v$; for (let i of r) e[i] != null && (e[i] = void 0); for (let i of Object.keys(e)) i[0] === "_" && e[i] != null && (e[i] = void 0); let n = Object.getOwnPropertySymbols(e); for (let i of n) e[i] = null; } s(T$, "removeProperties"); }); // ../node_modules/@babel/types/lib/modifications/removePropertiesDeep.js var vd = T((Ed) => { "use strict"; Object.defineProperty(Ed, "__esModule", { value: !0 }); Ed.default = P$; var x$ = yd(), S$ = bd(); function P$(e, t) { return (0, x$.default)(e, S$.default, t), e; } s(P$, "removePropertiesDeep"); }); // ../node_modules/@babel/types/lib/converters/toKeyAlias.js var hv = T((Td) => { "use strict"; Object.defineProperty(Td, "__esModule", { value: !0 }); Td.default = Ns; var dv = Tt(), A$ = es(), C$ = vd(); function Ns(e, t = e.key) { let r; return e.kind === "method" ? Ns.increment() + "" : ((0, dv.isIdentifier)(t) ? r = t.name : (0, dv.isStringLiteral)(t) ? r = JSON.stringify( t.value) : r = JSON.stringify((0, C$.default)((0, A$.default)(t))), e.computed && (r = `[${r}]`), e.static && (r = `static:${r}`), r); } s(Ns, "toKeyAlias"); Ns.uid = 0; Ns.increment = function() { return Ns.uid >= Number.MAX_SAFE_INTEGER ? Ns.uid = 0 : Ns.uid++; }; }); // ../node_modules/@babel/types/lib/converters/toStatement.js var mv = T((_l) => { "use strict"; Object.defineProperty(_l, "__esModule", { value: !0 }); _l.default = void 0; var Il = Tt(), w$ = sr(), Sxe = _l.default = D$; function D$(e, t) { if ((0, Il.isStatement)(e)) return e; let r = !1, n; if ((0, Il.isClass)(e)) r = !0, n = "ClassDeclaration"; else if ((0, Il.isFunction)(e)) r = !0, n = "FunctionDeclaration"; else if ((0, Il.isAssignmentExpression)(e)) return (0, w$.expressionStatement)(e); if (r && !e.id && (n = !1), !n) { if (t) return !1; throw new Error(`cannot turn ${e.type} to a statement`); } return e.type = n, e; } s(D$, "toStatement"); }); // ../node_modules/@babel/types/lib/converters/valueToNode.js var yv = T((Ol) => { "use strict"; Object.defineProperty(Ol, "__esModule", { value: !0 }); Ol.default = void 0; var I$ = bi(), Ht = sr(), Cxe = Ol.default = xd, _$ = Function.call.bind(Object.prototype.toString); function O$(e) { return _$(e) === "[object RegExp]"; } s(O$, "isRegExp"); function N$(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; } s(N$, "isPlainObject"); function xd(e) { if (e === void 0) return (0, Ht.identifier)("undefined"); if (e === !0 || e === !1) return (0, Ht.booleanLiteral)(e); if (e === null) return (0, Ht.nullLiteral)(); if (typeof e == "string") return (0, Ht.stringLiteral)(e); if (typeof e == "number") { let t; if (Number.isFinite(e)) t = (0, Ht.numericLiteral)(Math.abs(e)); else { let r; Number.isNaN(e) ? r = (0, Ht.numericLiteral)(0) : r = (0, Ht.numericLiteral)(1), t = (0, Ht.binaryExpression)("/", r, (0, Ht.numericLiteral)( 0)); } return (e < 0 || Object.is(e, -0)) && (t = (0, Ht.unaryExpression)("-", t)), t; } if (O$(e)) { let t = e.source, r = /\/([a-z]*)$/.exec(e.toString())[1]; return (0, Ht.regExpLiteral)(t, r); } if (Array.isArray(e)) return (0, Ht.arrayExpression)(e.map(xd)); if (N$(e)) { let t = []; for (let r of Object.keys(e)) { let n; (0, I$.default)(r) ? n = (0, Ht.identifier)(r) : n = (0, Ht.stringLiteral)(r), t.push((0, Ht.objectProperty)(n, xd(e[r]))); } return (0, Ht.objectExpression)(t); } throw new Error("don't know how to turn this value into a node"); } s(xd, "valueToNode"); }); // ../node_modules/@babel/types/lib/modifications/appendToMemberExpression.js var gv = T((Sd) => { "use strict"; Object.defineProperty(Sd, "__esModule", { value: !0 }); Sd.default = k$; var B$ = sr(); function k$(e, t, r = !1) { return e.object = (0, B$.memberExpression)(e.object, e.property, e.computed), e.property = t, e.computed = !!r, e; } s(k$, "appendToMemberExpression"); }); // ../node_modules/@babel/types/lib/modifications/inherits.js var Ev = T((Pd) => { "use strict"; Object.defineProperty(Pd, "__esModule", { value: !0 }); Pd.default = j$; var bv = Xn(), F$ = sd(); function j$(e, t) { if (!e || !t) return e; for (let r of bv.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 bv.INHERIT_KEYS.force) e[r] = t[r]; return (0, F$.default)(e, t), e; } s(j$, "inherits"); }); // ../node_modules/@babel/types/lib/modifications/prependToMemberExpression.js var vv = T((Ad) => { "use strict"; Object.defineProperty(Ad, "__esModule", { value: !0 }); Ad.default = R$; var L$ = sr(), M$ = Pe(); function R$(e, t) { if ((0, M$.isSuper)(e.object)) throw new Error("Cannot prepend node to super property access (`super.foo`)."); return e.object = (0, L$.memberExpression)(t, e.object), e; } s(R$, "prependToMemberExpression"); }); // ../node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js var Tv = T((Cd) => { "use strict"; Object.defineProperty(Cd, "__esModule", { value: !0 }); Cd.default = q$; function q$(e) { let t = [].concat(e), r = /* @__PURE__ */ Object.create(null); for (; t.length; ) { let n = t.pop(); if (n) switch (n.type) { case "ArrayPattern": t.push(...n.elements); break; case "AssignmentExpression": case "AssignmentPattern": case "ForInStatement": case "ForOfStatement": t.push(n.left); break; case "ObjectPattern": t.push(...n.properties); break; case "ObjectProperty": t.push(n.value); break; case "RestElement": case "UpdateExpression": t.push(n.argument); break; case "UnaryExpression": n.operator === "delete" && t.push(n.argument); break; case "Identifier": r[n.name] = n; break; default: break; } } return r; } s(q$, "getAssignmentIdentifiers"); }); // ../node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js var qa = T((Dd) => { "use strict"; Object.defineProperty(Dd, "__esModule", { value: !0 }); Dd.default = wd; var Sn = Tt(); function wd(e, t, r, n) { let i = [].concat(e), a = /* @__PURE__ */ Object.create(null); for (; i.length; ) { let o = i.shift(); if (!o || n && ((0, Sn.isAssignmentExpression)(o) || (0, Sn.isUnaryExpression)(o) || (0, Sn.isUpdateExpression)(o))) continue; if ((0, Sn.isIdentifier)(o)) { t ? (a[o.name] = a[o.name] || []).push(o) : a[o.name] = o; continue; } if ((0, Sn.isExportDeclaration)(o) && !(0, Sn.isExportAllDeclaration)(o)) { (0, Sn.isDeclaration)(o.declaration) && i.push(o.declaration); continue; } if (r) { if ((0, Sn.isFunctionDeclaration)(o)) { i.push(o.id); continue; } if ((0, Sn.isFunctionExpression)(o)) continue; } let l = wd.keys[o.type]; if (l) for (let u = 0; u < l.length; u++) { let c = l[u], f = o[c]; f && (Array.isArray(f) ? i.push(...f) : i.push(f)); } } return a; } s(wd, "getBindingIdentifiers"); var U$ = { 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"], 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"] }; wd.keys = U$; }); // ../node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js var xv = T((Nl) => { "use strict"; Object.defineProperty(Nl, "__esModule", { value: !0 }); Nl.default = void 0; var V$ = qa(), Rxe = Nl.default = $$; function $$(e, t) { return (0, V$.default)(e, t, !0); } s($$, "getOuterBindingIdentifiers"); }); // ../node_modules/@babel/types/lib/retrievers/getFunctionName.js var Pv = T((Id) => { "use strict"; Object.defineProperty(Id, "__esModule", { value: !0 }); Id.default = K$; var wr = Tt(); function W$(e) { return (0, wr.isNullLiteral)(e) ? "null" : (0, wr.isRegExpLiteral)(e) ? `/${e.pattern}/${e.flags}` : (0, wr.isTemplateLiteral)(e) ? e.quasis. map((t) => t.value.raw).join("") : e.value !== void 0 ? String(e.value) : null; } s(W$, "getNameFromLiteralId"); function Sv(e) { if (!e.computed || (0, wr.isLiteral)(e.key)) return e.key; } s(Sv, "getObjectMemberKey"); function K$(e, t) { if ("id" in e && e.id) return { name: e.id.name, originalNode: e.id }; let r = "", n; if ((0, wr.isObjectProperty)(t, { value: e }) ? n = Sv(t) : (0, wr.isObjectMethod)(e) || (0, wr.isClassMethod)(e) ? (n = Sv(e), e.kind === "get" ? r = "get " : e.kind === "set" && (r = "set ")) : (0, wr.isVariableDeclarator)(t, { init: e }) ? n = t.id : (0, wr.isAssignmentExpression)(t, { operator: "=", right: e }) && (n = t.left), !n) return null; let i = (0, wr.isLiteral)(n) ? W$(n) : (0, wr.isIdentifier)(n) ? n.name : (0, wr.isPrivateName)(n) ? n.id.name : null; return i == null ? null : { name: r + i, originalNode: n }; } s(K$, "getFunctionName"); }); // ../node_modules/@babel/types/lib/traverse/traverse.js var Av = T((Od) => { "use strict"; Object.defineProperty(Od, "__esModule", { value: !0 }); Od.default = H$; var G$ = Cr(); function H$(e, t, r) { typeof t == "function" && (t = { enter: t }); let { enter: n, exit: i } = t; _d(e, n, i, r, []); } s(H$, "traverse"); function _d(e, t, r, n, i) { let a = G$.VISITOR_KEYS[e.type]; if (a) { t && t(e, i, n); 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 && (i.push({ node: e, key: o, index: u }), _d(c, t, r, n, i), i.pop()); } else l && (i.push({ node: e, key: o }), _d(l, t, r, n, i), i.pop()); } r && r(e, i, n); } } s(_d, "traverseSimpleImpl"); }); // ../node_modules/@babel/types/lib/validators/isBinding.js var Cv = T((Nd) => { "use strict"; Object.defineProperty(Nd, "__esModule", { value: !0 }); Nd.default = z$; var Y$ = qa(); function z$(e, t, r) { if (r && e.type === "Identifier" && t.type === "ObjectProperty" && r.type === "ObjectExpression") return !1; let n = Y$.default.keys[t.type]; if (n) for (let i = 0; i < n.length; i++) { let a = n[i], o = t[a]; if (Array.isArray(o)) { if (o.includes(e)) return !0; } else if (o === e) return !0; } return !1; } s(z$, "isBinding"); }); // ../node_modules/@babel/types/lib/validators/isLet.js var kd = T((Bd) => { "use strict"; Object.defineProperty(Bd, "__esModule", { value: !0 }); Bd.default = Q$; var J$ = Tt(), X$ = Xn(); function Q$(e) { return (0, J$.isVariableDeclaration)(e) && (e.kind !== "var" || e[X$.BLOCK_SCOPED_SYMBOL]); } s(Q$, "isLet"); }); // ../node_modules/@babel/types/lib/validators/isBlockScoped.js var Dv = T((Fd) => { "use strict"; Object.defineProperty(Fd, "__esModule", { value: !0 }); Fd.default = eW; var wv = Tt(), Z$ = kd(); function eW(e) { return (0, wv.isFunctionDeclaration)(e) || (0, wv.isClassDeclaration)(e) || (0, Z$.default)(e); } s(eW, "isBlockScoped"); }); // ../node_modules/@babel/types/lib/validators/isImmutable.js var Iv = T((jd) => { "use strict"; Object.defineProperty(jd, "__esModule", { value: !0 }); jd.default = nW; var tW = dl(), rW = Tt(); function nW(e) { return (0, tW.default)(e.type, "Immutable") ? !0 : (0, rW.isIdentifier)(e) ? e.name === "undefined" : !1; } s(nW, "isImmutable"); }); // ../node_modules/@babel/types/lib/validators/isNodesEquivalent.js var Ov = T((Md) => { "use strict"; Object.defineProperty(Md, "__esModule", { value: !0 }); Md.default = Ld; var _v = Cr(); function Ld(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(_v.NODE_FIELDS[e.type] || e.type), n = _v.VISITOR_KEYS[e.type]; for (let i of r) { let a = e[i], o = t[i]; 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 (!Ld(a[l], o[l])) return !1; continue; } if (typeof a == "object" && !(n != null && n.includes(i))) { for (let l of Object.keys(a)) if (a[l] !== o[l]) return !1; continue; } if (!Ld(a, o)) return !1; } } return !0; } s(Ld, "isNodesEquivalent"); }); // ../node_modules/@babel/types/lib/validators/isReferenced.js var Nv = T((Rd) => { "use strict"; Object.defineProperty(Rd, "__esModule", { value: !0 }); Rd.default = sW; function sW(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; } s(sW, "isReferenced"); }); // ../node_modules/@babel/types/lib/validators/isScope.js var Bv = T((qd) => { "use strict"; Object.defineProperty(qd, "__esModule", { value: !0 }); qd.default = iW; var Bs = Tt(); function iW(e, t) { return (0, Bs.isBlockStatement)(e) && ((0, Bs.isFunction)(t) || (0, Bs.isCatchClause)(t)) ? !1 : (0, Bs.isPattern)(e) && ((0, Bs.isFunction)( t) || (0, Bs.isCatchClause)(t)) ? !0 : (0, Bs.isScopable)(e); } s(iW, "isScope"); }); // ../node_modules/@babel/types/lib/validators/isSpecifierDefault.js var Fv = T((Ud) => { "use strict"; Object.defineProperty(Ud, "__esModule", { value: !0 }); Ud.default = aW; var kv = Tt(); function aW(e) { return (0, kv.isImportDefaultSpecifier)(e) || (0, kv.isIdentifier)(e.imported || e.exported, { name: "default" }); } s(aW, "isSpecifierDefault"); }); // ../node_modules/@babel/types/lib/validators/isValidES3Identifier.js var jv = T((Vd) => { "use strict"; Object.defineProperty(Vd, "__esModule", { value: !0 }); Vd.default = uW; var oW = bi(), lW = /* @__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 uW(e) { return (0, oW.default)(e) && !lW.has(e); } s(uW, "isValidES3Identifier"); }); // ../node_modules/@babel/types/lib/validators/isVar.js var Lv = T(($d) => { "use strict"; Object.defineProperty($d, "__esModule", { value: !0 }); $d.default = pW; var cW = Tt(), fW = Xn(); function pW(e) { return (0, cW.isVariableDeclaration)(e, { kind: "var" }) && !e[fW.BLOCK_SCOPED_SYMBOL]; } s(pW, "isVar"); }); // ../node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js var Mv = T((Gd) => { "use strict"; Object.defineProperty(Gd, "__esModule", { value: !0 }); Gd.default = Bl; var dW = qa(), ks = Tt(), Wd = sr(), Kd = qp(), hW = es(); function Bl(e, t) { let r = [], n = !0; for (let i of e) if ((0, ks.isEmptyStatement)(i) || (n = !1), (0, ks.isExpression)(i)) r.push(i); else if ((0, ks.isExpressionStatement)(i)) r.push(i.expression); else if ((0, ks.isVariableDeclaration)(i)) { if (i.kind !== "var") return; for (let a of i.declarations) { let o = (0, dW.default)(a); for (let l of Object.keys(o)) t.push({ kind: i.kind, id: (0, hW.default)(o[l]) }); a.init && r.push((0, Wd.assignmentExpression)("=", a.id, a.init)); } n = !0; } else if ((0, ks.isIfStatement)(i)) { let a = i.consequent ? Bl([i.consequent], t) : (0, Kd.buildUndefinedNode)(), o = i.alternate ? Bl([i.alternate], t) : (0, Kd.buildUndefinedNode)(); if (!a || !o) return; r.push((0, Wd.conditionalExpression)(i.test, a, o)); } else if ((0, ks.isBlockStatement)(i)) { let a = Bl(i.body, t); if (!a) return; r.push(a); } else if ((0, ks.isEmptyStatement)(i)) e.indexOf(i) === 0 && (n = !0); else return; return n && r.push((0, Kd.buildUndefinedNode)()), r.length === 1 ? r[0] : (0, Wd.sequenceExpression)(r); } s(Bl, "gatherSequenceExpressions"); }); // ../node_modules/@babel/types/lib/converters/toSequenceExpression.js var Rv = T((Hd) => { "use strict"; Object.defineProperty(Hd, "__esModule", { value: !0 }); Hd.default = yW; var mW = Mv(); function yW(e, t) { if (!(e != null && e.length)) return; let r = [], n = (0, mW.default)(e, r); if (n) { for (let i of r) t.push(i); return n; } } s(yW, "toSequenceExpression"); }); // ../node_modules/@babel/types/lib/index.js var Pe = T((ee) => { "use strict"; Object.defineProperty(ee, "__esModule", { value: !0 }); var Pn = { 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(ee, "__internal__deprecationWarning", { enumerable: !0, get: /* @__PURE__ */ s(function() { return vK.default; }, "get") }); Object.defineProperty(ee, "addComment", { enumerable: !0, get: /* @__PURE__ */ s(function() { return DW.default; }, "get") }); Object.defineProperty(ee, "addComments", { enumerable: !0, get: /* @__PURE__ */ s(function() { return IW.default; }, "get") }); Object.defineProperty(ee, "appendToMemberExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return WW.default; }, "get") }); Object.defineProperty(ee, "assertNode", { enumerable: !0, get: /* @__PURE__ */ s(function() { return vW.default; }, "get") }); Object.defineProperty(ee, "buildMatchMemberExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return EK.default; }, "get") }); Object.defineProperty(ee, "clone", { enumerable: !0, get: /* @__PURE__ */ s(function() { return PW.default; }, "get") }); Object.defineProperty(ee, "cloneDeep", { enumerable: !0, get: /* @__PURE__ */ s(function() { return AW.default; }, "get") }); Object.defineProperty(ee, "cloneDeepWithoutLoc", { enumerable: !0, get: /* @__PURE__ */ s(function() { return CW.default; }, "get") }); Object.defineProperty(ee, "cloneNode", { enumerable: !0, get: /* @__PURE__ */ s(function() { return SW.default; }, "get") }); Object.defineProperty(ee, "cloneWithoutLoc", { enumerable: !0, get: /* @__PURE__ */ s(function() { return wW.default; }, "get") }); Object.defineProperty(ee, "createFlowUnionType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return qv.default; }, "get") }); Object.defineProperty(ee, "createTSUnionType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return xW.default; }, "get") }); Object.defineProperty(ee, "createTypeAnnotationBasedOnTypeof", { enumerable: !0, get: /* @__PURE__ */ s(function() { return TW.default; }, "get") }); Object.defineProperty(ee, "createUnionTypeAnnotation", { enumerable: !0, get: /* @__PURE__ */ s(function() { return qv.default; }, "get") }); Object.defineProperty(ee, "ensureBlock", { enumerable: !0, get: /* @__PURE__ */ s(function() { return FW.default; }, "get") }); Object.defineProperty(ee, "getAssignmentIdentifiers", { enumerable: !0, get: /* @__PURE__ */ s(function() { return JW.default; }, "get") }); Object.defineProperty(ee, "getBindingIdentifiers", { enumerable: !0, get: /* @__PURE__ */ s(function() { return XW.default; }, "get") }); Object.defineProperty(ee, "getFunctionName", { enumerable: !0, get: /* @__PURE__ */ s(function() { return ZW.default; }, "get") }); Object.defineProperty(ee, "getOuterBindingIdentifiers", { enumerable: !0, get: /* @__PURE__ */ s(function() { return QW.default; }, "get") }); Object.defineProperty(ee, "inheritInnerComments", { enumerable: !0, get: /* @__PURE__ */ s(function() { return _W.default; }, "get") }); Object.defineProperty(ee, "inheritLeadingComments", { enumerable: !0, get: /* @__PURE__ */ s(function() { return OW.default; }, "get") }); Object.defineProperty(ee, "inheritTrailingComments", { enumerable: !0, get: /* @__PURE__ */ s(function() { return BW.default; }, "get") }); Object.defineProperty(ee, "inherits", { enumerable: !0, get: /* @__PURE__ */ s(function() { return KW.default; }, "get") }); Object.defineProperty(ee, "inheritsComments", { enumerable: !0, get: /* @__PURE__ */ s(function() { return NW.default; }, "get") }); Object.defineProperty(ee, "is", { enumerable: !0, get: /* @__PURE__ */ s(function() { return rK.default; }, "get") }); Object.defineProperty(ee, "isBinding", { enumerable: !0, get: /* @__PURE__ */ s(function() { return nK.default; }, "get") }); Object.defineProperty(ee, "isBlockScoped", { enumerable: !0, get: /* @__PURE__ */ s(function() { return sK.default; }, "get") }); Object.defineProperty(ee, "isImmutable", { enumerable: !0, get: /* @__PURE__ */ s(function() { return iK.default; }, "get") }); Object.defineProperty(ee, "isLet", { enumerable: !0, get: /* @__PURE__ */ s(function() { return aK.default; }, "get") }); Object.defineProperty(ee, "isNode", { enumerable: !0, get: /* @__PURE__ */ s(function() { return oK.default; }, "get") }); Object.defineProperty(ee, "isNodesEquivalent", { enumerable: !0, get: /* @__PURE__ */ s(function() { return lK.default; }, "get") }); Object.defineProperty(ee, "isPlaceholderType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return uK.default; }, "get") }); Object.defineProperty(ee, "isReferenced", { enumerable: !0, get: /* @__PURE__ */ s(function() { return cK.default; }, "get") }); Object.defineProperty(ee, "isScope", { enumerable: !0, get: /* @__PURE__ */ s(function() { return fK.default; }, "get") }); Object.defineProperty(ee, "isSpecifierDefault", { enumerable: !0, get: /* @__PURE__ */ s(function() { return pK.default; }, "get") }); Object.defineProperty(ee, "isType", { enumerable: !0, get: /* @__PURE__ */ s(function() { return dK.default; }, "get") }); Object.defineProperty(ee, "isValidES3Identifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return hK.default; }, "get") }); Object.defineProperty(ee, "isValidIdentifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return mK.default; }, "get") }); Object.defineProperty(ee, "isVar", { enumerable: !0, get: /* @__PURE__ */ s(function() { return yK.default; }, "get") }); Object.defineProperty(ee, "matchesPattern", { enumerable: !0, get: /* @__PURE__ */ s(function() { return gK.default; }, "get") }); Object.defineProperty(ee, "prependToMemberExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return GW.default; }, "get") }); ee.react = void 0; Object.defineProperty(ee, "removeComments", { enumerable: !0, get: /* @__PURE__ */ s(function() { return kW.default; }, "get") }); Object.defineProperty(ee, "removeProperties", { enumerable: !0, get: /* @__PURE__ */ s(function() { return HW.default; }, "get") }); Object.defineProperty(ee, "removePropertiesDeep", { enumerable: !0, get: /* @__PURE__ */ s(function() { return YW.default; }, "get") }); Object.defineProperty(ee, "removeTypeDuplicates", { enumerable: !0, get: /* @__PURE__ */ s(function() { return zW.default; }, "get") }); Object.defineProperty(ee, "shallowEqual", { enumerable: !0, get: /* @__PURE__ */ s(function() { return tK.default; }, "get") }); Object.defineProperty(ee, "toBindingIdentifierName", { enumerable: !0, get: /* @__PURE__ */ s(function() { return jW.default; }, "get") }); Object.defineProperty(ee, "toBlock", { enumerable: !0, get: /* @__PURE__ */ s(function() { return LW.default; }, "get") }); Object.defineProperty(ee, "toComputedKey", { enumerable: !0, get: /* @__PURE__ */ s(function() { return MW.default; }, "get") }); Object.defineProperty(ee, "toExpression", { enumerable: !0, get: /* @__PURE__ */ s(function() { return RW.default; }, "get") }); Object.defineProperty(ee, "toIdentifier", { enumerable: !0, get: /* @__PURE__ */ s(function() { return qW.default; }, "get") }); Object.defineProperty(ee, "toKeyAlias", { enumerable: !0, get: /* @__PURE__ */ s(function() { return UW.default; }, "get") }); Object.defineProperty(ee, "toStatement", { enumerable: !0, get: /* @__PURE__ */ s(function() { return VW.default; }, "get") }); Object.defineProperty(ee, "traverse", { enumerable: !0, get: /* @__PURE__ */ s(function() { return kl.default; }, "get") }); Object.defineProperty(ee, "traverseFast", { enumerable: !0, get: /* @__PURE__ */ s(function() { return eK.default; }, "get") }); Object.defineProperty(ee, "validate", { enumerable: !0, get: /* @__PURE__ */ s(function() { return bK.default; }, "get") }); Object.defineProperty(ee, "valueToNode", { enumerable: !0, get: /* @__PURE__ */ s(function() { return $W.default; }, "get") }); var gW = $1(), bW = W1(), EW = ME(), vW = RE(), Yd = qE(); Object.keys(Yd).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Pn, e) || e in ee && ee[e] === Yd[e] || Object.defineProperty( ee, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return Yd[e]; }, "get") }); }); var TW = UE(), qv = WE(), xW = YE(), zd = sr(); Object.keys(zd).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Pn, e) || e in ee && ee[e] === zd[e] || Object.defineProperty( ee, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return zd[e]; }, "get") }); }); var Jd = zE(); Object.keys(Jd).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Pn, e) || e in ee && ee[e] === Jd[e] || Object.defineProperty( ee, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return Jd[e]; }, "get") }); }); var Xd = qp(); Object.keys(Xd).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Pn, e) || e in ee && ee[e] === Xd[e] || Object.defineProperty( ee, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return Xd[e]; }, "get") }); }); var SW = es(), PW = tv(), AW = rv(), CW = nv(), wW = sv(), DW = iv(), IW = Yp(), _W = Qp(), OW = ed(), NW = sd(), BW = rd(), kW = av(), Qd = ov(); Object.keys(Qd).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Pn, e) || e in ee && ee[e] === Qd[e] || Object.defineProperty( ee, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return Qd[e]; }, "get") }); }); var Zd = Xn(); Object.keys(Zd).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Pn, e) || e in ee && ee[e] === Zd[e] || Object.defineProperty( ee, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return Zd[e]; }, "get") }); }); var FW = lv(), jW = uv(), LW = ld(), MW = cv(), RW = fv(), qW = fd(), UW = hv(), VW = mv(), $W = yv(), eh = Cr(); Object.keys(eh).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Pn, e) || e in ee && ee[e] === eh[e] || Object.defineProperty( ee, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return eh[e]; }, "get") }); }); var WW = gv(), KW = Ev(), GW = vv(), HW = bd(), YW = vd(), zW = Fp(), JW = Tv(), XW = qa(), QW = xv(), ZW = Pv(), kl = Av(); Object.keys(kl).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Pn, e) || e in ee && ee[e] === kl[e] || Object.defineProperty( ee, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return kl[e]; }, "get") }); }); var eK = yd(), tK = fl(), rK = yi(), nK = Cv(), sK = Dv(), iK = Iv(), aK = kd(), oK = Np(), lK = Ov(), uK = ip(), cK = Nv(), fK = Bv(), pK = Fv(), dK = dl(), hK = jv(), mK = bi(), yK = Lv(), gK = Zf(), bK = bl(), EK = tp(), th = Tt(); Object.keys(th).forEach(function(e) { e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(Pn, e) || e in ee && ee[e] === th[e] || Object.defineProperty( ee, e, { enumerable: !0, get: /* @__PURE__ */ s(function() { return th[e]; }, "get") }); }); var vK = Aa(), ySe = ee.react = { isReactComponent: gW.default, isCompatTag: bW.default, buildChildren: EW.default }; ee.toSequenceExpression = Rv().default; }); // ../node_modules/@babel/template/lib/formatters.js var Uv = T((Dr) => { "use strict"; Object.defineProperty(Dr, "__esModule", { value: !0 }); Dr.statements = Dr.statement = Dr.smart = Dr.program = Dr.expression = void 0; var TK = Pe(), { assertExpressionStatement: xK } = TK; function rh(e) { return { code: /* @__PURE__ */ s((t) => `/* @babel/template */; ${t}`, "code"), validate: /* @__PURE__ */ s(() => { }, "validate"), unwrap: /* @__PURE__ */ s((t) => e(t.program.body.slice(1)), "unwrap") }; } s(rh, "makeStatementFormatter"); var ESe = Dr.smart = rh((e) => e.length > 1 ? e : e[0]), vSe = Dr.statements = rh((e) => e), TSe = Dr.statement = rh((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]; }), SK = Dr.expression = { code: /* @__PURE__ */ s((e) => `( ${e} )`, "code"), validate: /* @__PURE__ */ s((e) => { if (e.program.body.length > 1) throw new Error("Found multiple statements but wanted one"); if (SK.unwrap(e).start === 0) throw new Error("Parse result included parens."); }, "validate"), unwrap: /* @__PURE__ */ s(({ program: e }) => { let [t] = e.body; return xK(t), t.expression; }, "unwrap") }, xSe = Dr.program = { code: /* @__PURE__ */ s((e) => e, "code"), validate: /* @__PURE__ */ s(() => { }, "validate"), unwrap: /* @__PURE__ */ s((e) => e.program, "unwrap") }; }); // ../node_modules/@babel/template/lib/options.js var Fl = T((Ua) => { "use strict"; Object.defineProperty(Ua, "__esModule", { value: !0 }); Ua.merge = CK; Ua.normalizeReplacements = DK; Ua.validate = wK; var PK = ["placeholderWhitelist", "placeholderPattern", "preserveComments", "syntacticPlaceholders"]; function AK(e, t) { if (e == null) return {}; var r = {}, n = Object.keys(e), i, a; for (a = 0; a < n.length; a++) i = n[a], !(t.indexOf(i) >= 0) && (r[i] = e[i]); return r; } s(AK, "_objectWithoutPropertiesLoose"); function CK(e, t) { let { placeholderWhitelist: r = e.placeholderWhitelist, placeholderPattern: n = e.placeholderPattern, preserveComments: i = e.preserveComments, syntacticPlaceholders: a = e.syntacticPlaceholders } = t; return { parser: Object.assign({}, e.parser, t.parser), placeholderWhitelist: r, placeholderPattern: n, preserveComments: i, syntacticPlaceholders: a }; } s(CK, "merge"); function wK(e) { if (e != null && typeof e != "object") throw new Error("Unknown template options."); let t = e || {}, { placeholderWhitelist: r, placeholderPattern: n, preserveComments: i, syntacticPlaceholders: a } = t, o = AK(t, PK); if (r != null && !(r instanceof Set)) throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined"); if (n != null && !(n instanceof RegExp) && n !== !1) throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined"); if (i != null && typeof i != "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 || n != null)) throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'"); return { parser: o, placeholderWhitelist: r || void 0, placeholderPattern: n ?? void 0, preserveComments: i ?? void 0, syntacticPlaceholders: a ?? void 0 }; } s(wK, "validate"); function DK(e) { if (Array.isArray(e)) return e.reduce((t, r, n) => (t["$" + n] = r, t), {}); if (typeof e == "object" || e == null) return e || void 0; throw new Error("Template replacements must be an array, object, null, or undefined"); } s(DK, "normalizeReplacements"); }); // ../node_modules/@babel/parser/lib/index.js var Ls = T((Xa) => { "use strict"; Object.defineProperty(Xa, "__esModule", { value: !0 }); function IK(e, t) { if (e == null) return {}; var r = {}; for (var n in e) if ({}.hasOwnProperty.call(e, n)) { if (t.includes(n)) continue; r[n] = e[n]; } return r; } s(IK, "_objectWithoutPropertiesLoose"); var cn = class { static { s(this, "Position"); } constructor(t, r, n) { this.line = void 0, this.column = void 0, this.index = void 0, this.line = t, this.column = r, this.index = n; } }, Ai = class { static { s(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 ar(e, t) { let { line: r, column: n, index: i } = e; return new cn(r, n + t, i + t); } s(ar, "createPositionWithColumnOffset"); var Vv = "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED", _K = { ImportMetaOutsideModule: { message: `import.meta may appear only with 'sourceType: "module"'`, code: Vv }, ImportOutsideModule: { message: `'import' and 'export' may appear only with 'sourceType: "module"'`, code: Vv } }, $v = { 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" }, Ml = /* @__PURE__ */ s((e) => e.type === "UpdateExpression" ? $v.UpdateExpression[`${e.prefix}`] : $v[e.type], "toNodeDescription"), OK = { AccessorIsGenerator: /* @__PURE__ */ s(({ 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.", AwaitNotInAsyncFunction: "'await' is only allowed within async functions.", BadGetterArity: "A 'get' accessor must not have any formal parameters.", BadSetterArity: "A 'set' accessor must have exactly one formal parameter.", BadSetterRestParameter: "A 'set' accessor function argument must not be a rest parameter.", ConstructorClassField: "Classes may not have a field named 'constructor'.", ConstructorClassPrivateField: "Classes may not have a private field named '#constructor'.", ConstructorIsAccessor: "Class constructor may not be an accessor.", ConstructorIsAsync: "Constructor can't be an async function.", ConstructorIsGenerator: "Constructor can't be a generator.", DeclarationMissingInitializer: /* @__PURE__ */ s(({ 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__ */ s(({ exportName: e }) => `\`${e}\` has already been exported. Exported identifiers must be unique.`, "DuplicateExport"), DuplicateProto: "Redefinition of __proto__ property.", DuplicateRegExpFlags: "Duplicate regular expression flag.", DynamicImportPhaseRequiresImportExpressions: /* @__PURE__ */ s(({ phase: e }) => `'import.${e}(...)' can only be parsed when using the 'createImportExpressions' option.`, "DynamicImportPhaseRequiresImportExpress\ ions"), ElementAfterRest: "Rest element must be last element.", EscapedCharNotAnIdentifier: "Invalid Unicode escape.", ExportBindingIsString: /* @__PURE__ */ s(({ 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__ */ s(({ 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__ */ s(({ 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 `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.", ImportBindingIsString: /* @__PURE__ */ s(({ importName: e }) => `A string literal cannot be used as an imported binding. - Did you mean \`import { "${e}" as foo }\`?`, "ImportBindingIsString"), ImportCallArgumentTrailingComma: "Trailing comma is disallowed inside import(...) arguments.", ImportCallArity: /* @__PURE__ */ s(({ maxArgumentCount: e }) => `\`import()\` requires exactly ${e === 1 ? "one argument" : "one or two arguments"}.`, "ImportCallArity"), ImportCallNotNewExpression: "Cannot use new with import(...).", ImportCallSpreadArgument: "`...` is not allowed in `import()`.", ImportJSONBindingNotDefault: "A JSON module can only be imported with `default`.", ImportReflectionHasAssertion: "`import module x` cannot have assertions.", ImportReflectionNotBinding: 'Only `import module x from "./module"` is valid.', IncompatibleRegExpUVFlags: "The 'u' and 'v' regular expression flags cannot be enabled at the same time.", InvalidBigIntLiteral: "Invalid BigIntLiteral.", InvalidCodePoint: "Code point out of bounds.", InvalidCoverInitializedName: "Invalid shorthand property initializer.", InvalidDecimal: "Invalid decimal.", InvalidDigit: /* @__PURE__ */ s(({ radix: e }) => `Expected number in radix ${e}.`, "InvalidDigit"), InvalidEscapeSequence: "Bad character escape sequence.", InvalidEscapeSequenceTemplate: "Invalid escape sequence in template.", InvalidEscapedReservedWord: /* @__PURE__ */ s(({ reservedWord: e }) => `Escape sequence in keyword ${e}.`, "InvalidEscapedReservedWord"), InvalidIdentifier: /* @__PURE__ */ s(({ identifierName: e }) => `Invalid identifier ${e}.`, "InvalidIdentifier"), InvalidLhs: /* @__PURE__ */ s(({ ancestor: e }) => `Invalid left-hand side in ${Ml(e)}.`, "InvalidLhs"), InvalidLhsBinding: /* @__PURE__ */ s(({ ancestor: e }) => `Binding invalid left-hand side in ${Ml(e)}.`, "InvalidLhsBinding"), InvalidLhsOptionalChaining: /* @__PURE__ */ s(({ ancestor: e }) => `Invalid optional chaining in the left-hand side of ${Ml(e)}.`, "InvalidLhsOptionalChaining"), InvalidNumber: "Invalid number.", InvalidOrMissingExponent: "Floating-point numbers require a valid exponent after the 'e'.", InvalidOrUnexpectedToken: /* @__PURE__ */ s(({ unexpected: e }) => `Unexpected character '${e}'.`, "InvalidOrUnexpectedToken"), InvalidParenthesizedAssignment: "Invalid parenthesized assignment pattern.", InvalidPrivateFieldResolution: /* @__PURE__ */ s(({ 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__ */ s(({ 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__ */ s(({ missingPlugin: e }) => `This experimental syntax requires enabling the parser plugin: ${e.map((t) => JSON.stringify(t)).join(", ")}.`, "MissingPlugin"), MissingOneOfPlugins: /* @__PURE__ */ s(({ 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__ */ s(({ key: e }) => `Duplicate key "${e}" is not allowed in module attributes.`, "ModuleAttributesWithDuplicateKeys"), ModuleExportNameHasLoneSurrogate: /* @__PURE__ */ s(({ surrogateCharCode: e }) => `An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`, "ModuleExportNameHasLoneSurrogate"), ModuleExportUndefined: /* @__PURE__ */ s(({ 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__ */ s(({ identifierName: e }) => `Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`, "PrivateInExpe\ ctedIn"), PrivateNameRedeclaration: /* @__PURE__ */ s(({ 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__ */ s(({ 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__ */ s(({ reservedWord: e }) => `Unexpected reserved word '${e}'.`, "UnexpectedReservedWord"), UnexpectedSuper: "'super' is only allowed in object methods and classes.", UnexpectedToken: /* @__PURE__ */ s(({ 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`.", 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__ */ s(({ 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__ */ s(({ identifierName: e }) => `Identifier '${e}' has already been declared.`, "VarRedeclaration"), YieldBindingIdentifier: "Can not use 'yield' as identifier inside a generator.", YieldInParameter: "Yield expression is not allowed in formal parameters.", ZeroDigitNumericSeparator: "Numeric separator can not be used after leading 0." }, NK = { StrictDelete: "Deleting local variable in strict mode.", StrictEvalArguments: /* @__PURE__ */ s(({ referenceName: e }) => `Assigning to '${e}' in strict mode.`, "StrictEvalArguments"), StrictEvalArgumentsBinding: /* @__PURE__ */ s(({ 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." }, BK = /* @__PURE__ */ new Set(["ArrowFunctionExpression", "AssignmentExpression", "ConditionalExpression", "YieldExpression"]), kK = { 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__ */ s(({ 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__ */ s(({ type: e }) => `Hack-style pipe body cannot be an unparenthesized ${Ml({ 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.' }, FK = ["message"]; function Wv(e, t, r) { Object.defineProperty(e, t, { enumerable: !1, configurable: !0, value: r }); } s(Wv, "defineHidden"); function jK({ toMessage: e, code: t, reasonCode: r, syntaxPlugin: n }) { let i = r === "MissingPlugin" || r === "MissingOneOfPlugins"; return /* @__PURE__ */ s(function a(o, l) { let u = new SyntaxError(); return u.code = t, u.reasonCode = r, u.loc = o, u.pos = o.index, u.syntaxPlugin = n, i && (u.missingPlugin = l.missingPlugin), Wv(u, "\ clone", /* @__PURE__ */ s(function(f = {}) { var p; let { line: h, column: y, index: v } = (p = f.loc) != null ? p : o; return a(new cn(h, y, v), Object.assign({}, l, f.details)); }, "clone")), Wv(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"); } s(jK, "toParseErrorConstructor"); function Dn(e, t) { if (Array.isArray(e)) return (n) => Dn(n, e[0]); let r = {}; for (let n of Object.keys(e)) { let i = e[n], a = typeof i == "string" ? { message: /* @__PURE__ */ s(() => i, "message") } : typeof i == "function" ? { message: i } : i, { message: o } = a, l = IK(a, FK), u = typeof o == "string" ? () => o : o; r[n] = jK(Object.assign({ code: "BABEL_PARSER_SYNTAX_ERROR", reasonCode: n, toMessage: u }, t ? { syntaxPlugin: t } : {}, l)); } return r; } s(Dn, "ParseErrorEnum"); var _ = Object.assign({}, Dn(_K), Dn(OK), Dn(NK), Dn`pipelineOperator`(kK)), { defineProperty: LK } = Object, Kv = /* @__PURE__ */ s((e, t) => { e && LK(e, t, { enumerable: !1, value: e[t] }); }, "toUnenumerable"); function Va(e) { return Kv(e.loc.start, "index"), Kv(e.loc.end, "index"), e; } s(Va, "toESTreeLocation"); var MK = /* @__PURE__ */ s((e) => class extends e { static { s(this, "ESTreeParserMixin"); } parse() { let r = Va(super.parse()); return this.options.tokens && (r.tokens = r.tokens.map(Va)), r; } parseRegExpLiteral({ pattern: r, flags: n }) { let i = null; try { i = new RegExp(r, n); } catch { } let a = this.estreeParseLiteral(i); return a.regex = { pattern: r, flags: n }, a; } parseBigIntLiteral(r) { let n; try { n = BigInt(r); } catch { n = null; } let i = this.estreeParseLiteral(n); return i.bigint = String(i.value || r), i; } parseDecimalLiteral(r) { let i = this.estreeParseLiteral(null); return i.decimal = String(i.value || r), i; } estreeParseLiteral(r) { return this.parseLiteral(r, "Literal"); } parseStringLiteral(r) { return this.estreeParseLiteral(r); } parseNumericLiteral(r) { return this.estreeParseLiteral(r); } parseNullLiteral() { return this.estreeParseLiteral(null); } parseBooleanLiteral(r) { return this.estreeParseLiteral(r); } directiveToStmt(r) { let n = r.value; delete r.value, n.type = "Literal", n.raw = n.extra.raw, n.value = n.extra.expressionValue; let i = r; return i.type = "ExpressionStatement", i.expression = n, i.directive = n.extra.rawValue, delete n.extra, i; } initFunction(r, n) { super.initFunction(r, n), r.expression = !1; } checkDeclaration(r) { r != null && this.isObjectProperty(r) ? this.checkDeclaration(r.value) : super.checkDeclaration(r); } getObjectOrClassMethodParams(r) { return r.value.params; } isValidDirective(r) { var n; return r.type === "ExpressionStatement" && r.expression.type === "Literal" && typeof r.expression.value == "string" && !((n = r.expression. extra) != null && n.parenthesized); } parseBlockBody(r, n, i, a, o) { super.parseBlockBody(r, n, i, a, o); let l = r.directives.map((u) => this.directiveToStmt(u)); r.body = l.concat(r.body), delete r.directives; } pushClassMethod(r, n, i, a, o, l) { this.parseMethod(n, i, a, o, l, "ClassMethod", !0), n.typeParameters && (n.value.typeParameters = n.typeParameters, delete n.typeParameters), r.body.push(n); } parsePrivateName() { let r = super.parsePrivateName(); return this.getPluginOption("estree", "classFeatures") ? this.convertPrivateNameToPrivateIdentifier(r) : r; } convertPrivateNameToPrivateIdentifier(r) { let n = super.getPrivateNameSV(r); return r = r, delete r.id, r.name = n, r.type = "PrivateIdentifier", r; } isPrivateName(r) { return this.getPluginOption("estree", "classFeatures") ? r.type === "PrivateIdentifier" : super.isPrivateName(r); } getPrivateNameSV(r) { return this.getPluginOption("estree", "classFeatures") ? r.name : super.getPrivateNameSV(r); } parseLiteral(r, n) { let i = super.parseLiteral(r, n); return i.raw = i.extra.raw, delete i.extra, i; } parseFunctionBody(r, n, i = !1) { super.parseFunctionBody(r, n, i), r.expression = r.body.type !== "BlockStatement"; } parseMethod(r, n, i, a, o, l, u = !1) { let c = this.startNode(); return c.kind = r.kind, c = super.parseMethod(c, n, i, a, o, l, u), c.type = "FunctionExpression", delete c.kind, r.value = c, l === "\ ClassPrivateMethod" && (r.computed = !1), this.finishNode(r, "MethodDefinition"); } nameIsConstructor(r) { return r.type === "Literal" ? r.value === "constructor" : super.nameIsConstructor(r); } parseClassProperty(...r) { let n = super.parseClassProperty(...r); return this.getPluginOption("estree", "classFeatures") && (n.type = "PropertyDefinition"), n; } parseClassPrivateProperty(...r) { let n = super.parseClassPrivateProperty(...r); return this.getPluginOption("estree", "classFeatures") && (n.type = "PropertyDefinition", n.computed = !1), n; } parseObjectMethod(r, n, i, a, o) { let l = super.parseObjectMethod(r, n, i, a, o); return l && (l.type = "Property", l.kind === "method" && (l.kind = "init"), l.shorthand = !1), l; } parseObjectProperty(r, n, i, a) { let o = super.parseObjectProperty(r, n, i, a); return o && (o.kind = "init", o.type = "Property"), o; } isValidLVal(r, n, i) { return r === "Property" ? "value" : super.isValidLVal(r, n, i); } isAssignable(r, n) { return r != null && this.isObjectProperty(r) ? this.isAssignable(r.value, n) : super.isAssignable(r, n); } toAssignable(r, n = !1) { if (r != null && this.isObjectProperty(r)) { let { key: i, value: a } = r; this.isPrivateName(i) && this.classScope.usePrivateName(this.getPrivateNameSV(i), i.loc.start), this.toAssignable(a, n); } else super.toAssignable(r, n); } toAssignableObjectExpressionProp(r, n, i) { r.type === "Property" && (r.kind === "get" || r.kind === "set") ? this.raise(_.PatternHasAccessor, r.key) : r.type === "Property" && r. method ? this.raise(_.PatternHasMethod, r.key) : super.toAssignableObjectExpressionProp(r, n, i); } finishCallExpression(r, n) { let i = super.finishCallExpression(r, n); if (i.callee.type === "Import") { if (i.type = "ImportExpression", i.source = i.arguments[0], this.hasPlugin("importAttributes") || this.hasPlugin("importAssertions")) { var a, o; i.options = (a = i.arguments[1]) != null ? a : null, i.attributes = (o = i.arguments[1]) != null ? o : null; } delete i.arguments, delete i.callee; } return i; } toReferencedArguments(r) { r.type !== "ImportExpression" && super.toReferencedArguments(r); } parseExport(r, n) { let i = this.state.lastTokStartLoc, a = super.parseExport(r, n); switch (a.type) { case "ExportAllDeclaration": a.exported = null; break; case "ExportNamedDeclaration": a.specifiers.length === 1 && a.specifiers[0].type === "ExportNamespaceSpecifier" && (a.type = "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, i); } break; } return a; } parseSubscript(r, n, i, a) { let o = super.parseSubscript(r, n, i, a); if (a.optionalChainMember) { if ((o.type === "OptionalMemberExpression" || o.type === "OptionalCallExpression") && (o.type = o.type.substring(8)), a.stop) { let l = this.startNodeAtNode(o); return l.expression = o, this.finishNode(l, "ChainExpression"); } } else (o.type === "MemberExpression" || o.type === "CallExpression") && (o.optional = !1); return o; } isOptionalMemberExpression(r) { return r.type === "ChainExpression" ? r.expression.type === "MemberExpression" : super.isOptionalMemberExpression(r); } hasPropertyAsPrivateName(r) { return r.type === "ChainExpression" && (r = r.expression), super.hasPropertyAsPrivateName(r); } isObjectProperty(r) { return r.type === "Property" && r.kind === "init" && !r.method; } isObjectMethod(r) { return r.type === "Property" && (r.method || r.kind === "get" || r.kind === "set"); } finishNodeAt(r, n, i) { return Va(super.finishNodeAt(r, n, i)); } resetStartLocation(r, n) { super.resetStartLocation(r, n), Va(r); } resetEndLocation(r, n = this.state.lastTokEndLoc) { super.resetEndLocation(r, n), Va(r); } }, "estree"), js = class { static { s(this, "TokContext"); } constructor(t, r) { this.token = void 0, this.preserveSpace = void 0, this.token = t, this.preserveSpace = !!r; } }, at = { brace: new js("{"), j_oTag: new js("...", !0) }; at.template = new js("`", !0); var Ue = !0, se = !0, nh = !0, $a = !0, ts = !0, RK = !0, Ul = class { static { s(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; } }, Ih = /* @__PURE__ */ new Map(); function Ye(e, t = {}) { t.keyword = e; let r = xe(e, t); return Ih.set(e, r), r; } s(Ye, "createKeyword"); function ir(e, t) { return xe(e, { beforeExpr: Ue, binop: t }); } s(ir, "createBinop"); var Ha = -1, Cn = [], _h = [], Oh = [], Nh = [], Bh = [], kh = []; function xe(e, t = {}) { var r, n, i, a; return ++Ha, _h.push(e), Oh.push((r = t.binop) != null ? r : -1), Nh.push((n = t.beforeExpr) != null ? n : !1), Bh.push((i = t.startsExpr) != null ? i : !1), kh.push((a = t.prefix) != null ? a : !1), Cn.push(new Ul(e, t)), Ha; } s(xe, "createToken"); function qe(e, t = {}) { var r, n, i, a; return ++Ha, Ih.set(e, Ha), _h.push(e), Oh.push((r = t.binop) != null ? r : -1), Nh.push((n = t.beforeExpr) != null ? n : !1), Bh.push((i = t.startsExpr) != null ? i : !1), kh.push((a = t.prefix) != null ? a : !1), Cn.push(new Ul("name", t)), Ha; } s(qe, "createKeywordLike"); var qK = { bracketL: xe("[", { beforeExpr: Ue, startsExpr: se }), bracketHashL: xe("#[", { beforeExpr: Ue, startsExpr: se }), bracketBarL: xe("[|", { beforeExpr: Ue, startsExpr: se }), bracketR: xe("]"), bracketBarR: xe("|]"), braceL: xe("{", { beforeExpr: Ue, startsExpr: se }), braceBarL: xe("{|", { beforeExpr: Ue, startsExpr: se }), braceHashL: xe("#{", { beforeExpr: Ue, startsExpr: se }), braceR: xe("}"), braceBarR: xe("|}"), parenL: xe("(", { beforeExpr: Ue, startsExpr: se }), parenR: xe(")"), comma: xe(",", { beforeExpr: Ue }), semi: xe(";", { beforeExpr: Ue }), colon: xe(":", { beforeExpr: Ue }), doubleColon: xe("::", { beforeExpr: Ue }), dot: xe("."), question: xe("?", { beforeExpr: Ue }), questionDot: xe("?."), arrow: xe("=>", { beforeExpr: Ue }), template: xe("template"), ellipsis: xe("...", { beforeExpr: Ue }), backQuote: xe("`", { startsExpr: se }), dollarBraceL: xe("${", { beforeExpr: Ue, startsExpr: se }), templateTail: xe("...`", { startsExpr: se }), templateNonTail: xe("...${", { beforeExpr: Ue, startsExpr: se }), at: xe("@"), hash: xe("#", { startsExpr: se }), interpreterDirective: xe("#!..."), eq: xe("=", { beforeExpr: Ue, isAssign: $a }), assign: xe("_=", { beforeExpr: Ue, isAssign: $a }), slashAssign: xe("_=", { beforeExpr: Ue, isAssign: $a }), xorAssign: xe("_=", { beforeExpr: Ue, isAssign: $a }), moduloAssign: xe("_=", { beforeExpr: Ue, isAssign: $a }), incDec: xe("++/--", { prefix: ts, postfix: RK, startsExpr: se }), bang: xe("!", { beforeExpr: Ue, prefix: ts, startsExpr: se }), tilde: xe("~", { beforeExpr: Ue, prefix: ts, startsExpr: se }), doubleCaret: xe("^^", { startsExpr: se }), doubleAt: xe("@@", { startsExpr: se }), pipeline: ir("|>", 0), nullishCoalescing: ir("??", 1), logicalOR: ir("||", 1), logicalAND: ir("&&", 2), bitwiseOR: ir("|", 3), bitwiseXOR: ir("^", 4), bitwiseAND: ir("&", 5), equality: ir("==/!=/===/!==", 6), lt: ir("/<=/>=", 7), gt: ir("/<=/>=", 7), relational: ir("/<=/>=", 7), bitShift: ir("<>/>>>", 8), bitShiftL: ir("<>/>>>", 8), bitShiftR: ir("<>/>>>", 8), plusMin: xe("+/-", { beforeExpr: Ue, binop: 9, prefix: ts, startsExpr: se }), modulo: xe("%", { binop: 10, startsExpr: se }), star: xe("*", { binop: 10 }), slash: ir("/", 10), exponent: xe("**", { beforeExpr: Ue, binop: 11, rightAssociative: !0 }), _in: Ye("in", { beforeExpr: Ue, binop: 7 }), _instanceof: Ye("instanceof", { beforeExpr: Ue, binop: 7 }), _break: Ye("break"), _case: Ye("case", { beforeExpr: Ue }), _catch: Ye("catch"), _continue: Ye("continue"), _debugger: Ye("debugger"), _default: Ye("default", { beforeExpr: Ue }), _else: Ye("else", { beforeExpr: Ue }), _finally: Ye("finally"), _function: Ye("function", { startsExpr: se }), _if: Ye("if"), _return: Ye("return", { beforeExpr: Ue }), _switch: Ye("switch"), _throw: Ye("throw", { beforeExpr: Ue, prefix: ts, startsExpr: se }), _try: Ye("try"), _var: Ye("var"), _const: Ye("const"), _with: Ye("with"), _new: Ye("new", { beforeExpr: Ue, startsExpr: se }), _this: Ye("this", { startsExpr: se }), _super: Ye("super", { startsExpr: se }), _class: Ye("class", { startsExpr: se }), _extends: Ye("extends", { beforeExpr: Ue }), _export: Ye("export"), _import: Ye("import", { startsExpr: se }), _null: Ye("null", { startsExpr: se }), _true: Ye("true", { startsExpr: se }), _false: Ye("false", { startsExpr: se }), _typeof: Ye("typeof", { beforeExpr: Ue, prefix: ts, startsExpr: se }), _void: Ye("void", { beforeExpr: Ue, prefix: ts, startsExpr: se }), _delete: Ye("delete", { beforeExpr: Ue, prefix: ts, startsExpr: se }), _do: Ye("do", { isLoop: nh, beforeExpr: Ue }), _for: Ye("for", { isLoop: nh }), _while: Ye("while", { isLoop: nh }), _as: qe("as", { startsExpr: se }), _assert: qe("assert", { startsExpr: se }), _async: qe("async", { startsExpr: se }), _await: qe("await", { startsExpr: se }), _defer: qe("defer", { startsExpr: se }), _from: qe("from", { startsExpr: se }), _get: qe("get", { startsExpr: se }), _let: qe("let", { startsExpr: se }), _meta: qe("meta", { startsExpr: se }), _of: qe("of", { startsExpr: se }), _sent: qe("sent", { startsExpr: se }), _set: qe("set", { startsExpr: se }), _source: qe("source", { startsExpr: se }), _static: qe("static", { startsExpr: se }), _using: qe("using", { startsExpr: se }), _yield: qe("yield", { startsExpr: se }), _asserts: qe("asserts", { startsExpr: se }), _checks: qe("checks", { startsExpr: se }), _exports: qe("exports", { startsExpr: se }), _global: qe("global", { startsExpr: se }), _implements: qe("implements", { startsExpr: se }), _intrinsic: qe("intrinsic", { startsExpr: se }), _infer: qe("infer", { startsExpr: se }), _is: qe("is", { startsExpr: se }), _mixins: qe("mixins", { startsExpr: se }), _proto: qe("proto", { startsExpr: se }), _require: qe("require", { startsExpr: se }), _satisfies: qe("satisfies", { startsExpr: se }), _keyof: qe("keyof", { startsExpr: se }), _readonly: qe("readonly", { startsExpr: se }), _unique: qe("unique", { startsExpr: se }), _abstract: qe("abstract", { startsExpr: se }), _declare: qe("declare", { startsExpr: se }), _enum: qe("enum", { startsExpr: se }), _module: qe("module", { startsExpr: se }), _namespace: qe("namespace", { startsExpr: se }), _interface: qe("interface", { startsExpr: se }), _type: qe("type", { startsExpr: se }), _opaque: qe("opaque", { startsExpr: se }), name: xe("name", { startsExpr: se }), string: xe("string", { startsExpr: se }), num: xe("num", { startsExpr: se }), bigint: xe("bigint", { startsExpr: se }), decimal: xe("decimal", { startsExpr: se }), regexp: xe("regexp", { startsExpr: se }), privateName: xe("#name", { startsExpr: se }), eof: xe("eof"), jsxName: xe("jsxName"), jsxText: xe("jsxText", { beforeExpr: !0 }), jsxTagStart: xe("jsxTagStart", { startsExpr: !0 }), jsxTagEnd: xe("jsxTagEnd"), placeholder: xe("%%", { startsExpr: !0 }) }; function tt(e) { return e >= 93 && e <= 132; } s(tt, "tokenIsIdentifier"); function UK(e) { return e <= 92; } s(UK, "tokenKeywordOrIdentifierIsKeyword"); function Wr(e) { return e >= 58 && e <= 132; } s(Wr, "tokenIsKeywordOrIdentifier"); function nT(e) { return e >= 58 && e <= 136; } s(nT, "tokenIsLiteralPropertyName"); function VK(e) { return Nh[e]; } s(VK, "tokenComesBeforeExpression"); function uh(e) { return Bh[e]; } s(uh, "tokenCanStartExpression"); function $K(e) { return e >= 29 && e <= 33; } s($K, "tokenIsAssignment"); function Gv(e) { return e >= 129 && e <= 131; } s(Gv, "tokenIsFlowInterfaceOrTypeOrOpaque"); function WK(e) { return e >= 90 && e <= 92; } s(WK, "tokenIsLoop"); function Fh(e) { return e >= 58 && e <= 92; } s(Fh, "tokenIsKeyword"); function KK(e) { return e >= 39 && e <= 59; } s(KK, "tokenIsOperator"); function GK(e) { return e === 34; } s(GK, "tokenIsPostfix"); function HK(e) { return kh[e]; } s(HK, "tokenIsPrefix"); function YK(e) { return e >= 121 && e <= 123; } s(YK, "tokenIsTSTypeOperator"); function zK(e) { return e >= 124 && e <= 130; } s(zK, "tokenIsTSDeclarationStart"); function ns(e) { return _h[e]; } s(ns, "tokenLabelName"); function Rl(e) { return Oh[e]; } s(Rl, "tokenOperatorPrecedence"); function JK(e) { return e === 57; } s(JK, "tokenIsRightAssociative"); function Vl(e) { return e >= 24 && e <= 25; } s(Vl, "tokenIsTemplate"); function An(e) { return Cn[e]; } s(An, "getExportedToken"); Cn[8].updateContext = (e) => { e.pop(); }, Cn[5].updateContext = Cn[7].updateContext = Cn[23].updateContext = (e) => { e.push(at.brace); }, Cn[22].updateContext = (e) => { e[e.length - 1] === at.template ? e.pop() : e.push(at.template); }, Cn[142].updateContext = (e) => { e.push(at.j_expr, at.j_oTag); }; var jh = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993\ -\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\ \u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\ \u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\ \u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\ \u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01\ -\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC", sT = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\ \u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4\ -\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\ \u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\ \uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65", XK = new RegExp("[" + jh + "]"), QK = new RegExp("[" + jh + sT + "]"); jh = sT = null; var iT = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], ZK = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239]; function ch(e, t) { let r = 65536; for (let n = 0, i = t.length; n < i; n += 2) { if (r += t[n], r > e) return !1; if (r += t[n + 1], r >= e) return !0; } return !1; } s(ch, "isInAstralSet"); function wn(e) { return e < 65 ? e === 36 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && XK.test(String.fromCharCode(e)) : ch(e, iT); } s(wn, "isIdentifierStart"); function xi(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 && QK.test( String.fromCharCode(e)) : ch(e, iT) || ch(e, ZK); } s(xi, "isIdentifierChar"); var Lh = { 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"] }, eG = new Set(Lh.keyword), tG = new Set(Lh.strict), rG = new Set(Lh.strictBind); function aT(e, t) { return t && e === "await" || e === "enum"; } s(aT, "isReservedWord"); function oT(e, t) { return aT(e, t) || tG.has(e); } s(oT, "isStrictReservedWord"); function lT(e) { return rG.has(e); } s(lT, "isStrictBindOnlyReservedWord"); function uT(e, t) { return oT(e, t) || lT(e); } s(uT, "isStrictBindReservedWord"); function nG(e) { return eG.has(e); } s(nG, "isKeyword"); function sG(e, t, r) { return e === 64 && t === 64 && wn(r); } s(sG, "isIteratorStart"); var iG = /* @__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 aG(e) { return iG.has(e); } s(aG, "canBeReservedWord"); var Ya = class { static { s(this, "Scope"); } constructor(t) { this.flags = 0, this.names = /* @__PURE__ */ new Map(), this.firstLexicalName = "", this.flags = t; } }, za = class { static { s(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 inClass() { return (this.currentThisScopeFlags() & 64) > 0; } get inClassAndNotInNonArrowFunction() { let t = this.currentThisScopeFlags(); return (t & 64) > 0 && (t & 2) === 0; } get inStaticBlock() { for (let t = this.scopeStack.length - 1; ; t--) { let { flags: r } = this.scopeStack[t]; if (r & 128) return !0; if (r & 451) return !1; } } get inNonArrowFunction() { return (this.currentThisScopeFlags() & 2) > 0; } get treatFunctionsAsVar() { return this.treatFunctionsAsVarInScope(this.currentScope()); } createScope(t) { return new Ya(t); } enter(t) { this.scopeStack.push(this.createScope(t)); } exit() { return this.scopeStack.pop().flags; } treatFunctionsAsVarInScope(t) { return !!(t.flags & 130 || !this.parser.inModule && t.flags & 1); } declareName(t, r, n) { let i = this.currentScope(); if (r & 8 || r & 16) { this.checkRedeclarationInScope(i, t, r, n); let a = i.names.get(t) || 0; r & 16 ? a = a | 4 : (i.firstLexicalName || (i.firstLexicalName = t), a = a | 2), i.names.set(t, a), r & 8 && this.maybeExportDefined( i, t); } else if (r & 4) for (let a = this.scopeStack.length - 1; a >= 0 && (i = this.scopeStack[a], this.checkRedeclarationInScope(i, t, r, n), i.names.set( t, (i.names.get(t) || 0) | 1), this.maybeExportDefined(i, t), !(i.flags & 387)); --a) ; this.parser.inModule && i.flags & 1 && this.undefinedExports.delete(t); } maybeExportDefined(t, r) { this.parser.inModule && t.flags & 1 && this.undefinedExports.delete(r); } checkRedeclarationInScope(t, r, n, i) { this.isRedeclaredInScope(t, r, n) && this.parser.raise(_.VarRedeclaration, i, { identifierName: r }); } isRedeclaredInScope(t, r, n) { if (!(n & 1)) return !1; if (n & 8) return t.names.has(r); let i = t.names.get(r); return n & 16 ? (i & 2) > 0 || !this.treatFunctionsAsVarInScope(t) && (i & 1) > 0 : (i & 2) > 0 && !(t.flags & 8 && t.firstLexicalName === r) || !this.treatFunctionsAsVarInScope(t) && (i & 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 & 387) return r; } } currentThisScopeFlags() { for (let t = this.scopeStack.length - 1; ; t--) { let { flags: r } = this.scopeStack[t]; if (r & 451 && !(r & 4)) return r; } } }, fh = class extends Ya { static { s(this, "FlowScope"); } constructor(...t) { super(...t), this.declareFunctions = /* @__PURE__ */ new Set(); } }, ph = class extends za { static { s(this, "FlowScopeHandler"); } createScope(t) { return new fh(t); } declareName(t, r, n) { let i = this.currentScope(); if (r & 2048) { this.checkRedeclarationInScope(i, t, r, n), this.maybeExportDefined(i, t), i.declareFunctions.add(t); return; } super.declareName(t, r, n); } isRedeclaredInScope(t, r, n) { if (super.isRedeclaredInScope(t, r, n)) return !0; if (n & 2048 && !t.declareFunctions.has(r)) { let i = t.names.get(r); return (i & 4) > 0 || (i & 2) > 0; } return !1; } checkLocalExport(t) { this.scopeStack[0].declareFunctions.has(t.name) || super.checkLocalExport(t); } }, dh = class { static { s(this, "BaseParser"); } constructor() { this.sawUnambiguousESM = !1, this.ambiguousScriptDifferentAst = !1; } hasPlugin(t) { if (typeof t == "string") return this.plugins.has(t); { let [r, n] = t; if (!this.hasPlugin(r)) return !1; let i = this.plugins.get(r); for (let a of Object.keys(n)) if (i?.[a] !== n[a]) return !1; return !0; } } getPluginOption(t, r) { var n; return (n = this.plugins.get(t)) == null ? void 0 : n[r]; } }; function cT(e, t) { e.trailingComments === void 0 ? e.trailingComments = t : e.trailingComments.unshift(...t); } s(cT, "setTrailingComments"); function oG(e, t) { e.leadingComments === void 0 ? e.leadingComments = t : e.leadingComments.unshift(...t); } s(oG, "setLeadingComments"); function Ja(e, t) { e.innerComments === void 0 ? e.innerComments = t : e.innerComments.unshift(...t); } s(Ja, "setInnerComments"); function Wa(e, t, r) { let n = null, i = t.length; for (; n === null && i > 0; ) n = t[--i]; n === null || n.start > r.start ? Ja(e, r.comments) : cT(n, r.comments); } s(Wa, "adjustInnerComments"); var hh = class extends dh { static { s(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, n = r.length; if (n === 0) return; let i = n - 1, a = r[i]; a.start === t.end && (a.leadingNode = t, i--); let { start: o } = t; for (; i >= 0; i--) { let l = r[i], u = l.end; if (u > o) l.containingNode = t, this.finalizeComment(l), r.splice(i, 1); else { u === o && (l.trailingNode = t); break; } } } finalizeComment(t) { let { comments: r } = t; if (t.leadingNode !== null || t.trailingNode !== null) t.leadingNode !== null && cT(t.leadingNode, r), t.trailingNode !== null && oG(t.trailingNode, r); else { let { containingNode: n, start: i } = t; if (this.input.charCodeAt(i - 1) === 44) switch (n.type) { case "ObjectExpression": case "ObjectPattern": case "RecordExpression": Wa(n, n.properties, t); break; case "CallExpression": case "OptionalCallExpression": Wa(n, n.arguments, t); break; case "FunctionDeclaration": case "FunctionExpression": case "ArrowFunctionExpression": case "ObjectMethod": case "ClassMethod": case "ClassPrivateMethod": Wa(n, n.params, t); break; case "ArrayExpression": case "ArrayPattern": case "TupleExpression": Wa(n, n.elements, t); break; case "ExportNamedDeclaration": case "ImportDeclaration": Wa(n, n.specifiers, t); break; default: Ja(n, r); } else Ja(n, r); } } finalizeRemainingComments() { let { commentStack: t } = this.state; for (let r = t.length - 1; r >= 0; r--) this.finalizeComment(t[r]); this.state.commentStack = []; } resetPreviousNodeTrailingComments(t) { let { commentStack: r } = this.state, { length: n } = r; if (n === 0) return; let i = r[n - 1]; i.leadingNode === t && (i.leadingNode = null); } resetPreviousIdentifierLeadingComments(t) { let { commentStack: r } = this.state, { length: n } = r; n !== 0 && (r[n - 1].trailingNode === t ? r[n - 1].trailingNode = null : n >= 2 && r[n - 2].trailingNode === t && (r[n - 2].trailingNode = null)); } takeSurroundingComments(t, r, n) { let { commentStack: i } = this.state, a = i.length; if (a === 0) return; let o = a - 1; for (; o >= 0; o--) { let l = i[o], u = l.end; if (l.start === n) l.leadingNode = t; else if (u === r) l.trailingNode = t; else if (u < r) break; } } }, lG = /\r\n|[\r\n\u2028\u2029]/, jl = new RegExp(lG.source, "g"); function Si(e) { switch (e) { case 10: case 13: case 8232: case 8233: return !0; default: return !1; } } s(Si, "isNewLine"); function Hv(e, t, r) { for (let n = t; n < r; n++) if (Si(e.charCodeAt(n))) return !0; return !1; } s(Hv, "hasNewLine"); var sh = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, ih = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g; function uG(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; } } s(uG, "isWhitespace"); var mh = class e { static { s(this, "State"); } constructor() { this.flags = 1024, 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 = 139, this.value = null, this.start = 0, this. end = 0, this.lastTokEndLoc = null, this.lastTokStartLoc = null, this.context = [at.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, startLine: n, startColumn: i }) { this.strict = t === !1 ? !1 : t === !0 ? !0 : r === "module", this.curLine = n, this.lineStart = -i, this.startLoc = this.endLoc = new cn( n, i, 0); } 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 cn(this.curLine, this.pos - this.lineStart, this.pos); } clone() { let t = new e(); return t.flags = this.flags, 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; } }, cG = /* @__PURE__ */ s(function(t) { return t >= 48 && t <= 57; }, "isDigit"), Yv = { decBinOct: /* @__PURE__ */ new Set([46, 66, 69, 79, 95, 98, 101, 111]), hex: /* @__PURE__ */ new Set([46, 88, 95, 120]) }, Ll = { bin: /* @__PURE__ */ s((e) => e === 48 || e === 49, "bin"), oct: /* @__PURE__ */ s((e) => e >= 48 && e <= 55, "oct"), dec: /* @__PURE__ */ s((e) => e >= 48 && e <= 57, "dec"), hex: /* @__PURE__ */ s((e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, "hex") }; function zv(e, t, r, n, i, a) { let o = r, l = n, u = i, c = "", f = null, p = r, { length: h } = t; for (; ; ) { if (r >= h) { a.unterminated(o, l, u), c += t.slice(p, r); break; } let y = t.charCodeAt(r); if (fG(e, y, t, r)) { c += t.slice(p, r); break; } if (y === 92) { c += t.slice(p, r); let v = pG(t, r, n, i, e === "template", a); v.ch === null && !f ? f = { pos: r, lineStart: n, curLine: i } : c += v.ch, { pos: r, lineStart: n, curLine: i } = v, p = r; } else y === 8232 || y === 8233 ? (++r, ++i, n = r) : y === 10 || y === 13 ? e === "template" ? (c += t.slice(p, r) + ` `, ++r, y === 13 && t.charCodeAt(r) === 10 && ++r, ++i, p = n = r) : a.unterminated(o, l, u) : ++r; } return { pos: r, str: c, firstInvalidLoc: f, lineStart: n, curLine: i, containsInvalid: !!f }; } s(zv, "readStringContents"); function fG(e, t, r, n) { return e === "template" ? t === 96 || t === 36 && r.charCodeAt(n + 1) === 123 : t === (e === "double" ? 34 : 39); } s(fG, "isStringEnd"); function pG(e, t, r, n, i, a) { let o = !i; t++; let l = /* @__PURE__ */ s((c) => ({ pos: t, ch: c, lineStart: r, curLine: n }), "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 } = yh(e, t, r, n, 2, !1, o, a), l(c === null ? null : String.fromCharCode(c)); } case 117: { let c; return { code: c, pos: t } = pT(e, t, r, n, 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, ++n; case 8232: case 8233: return l(""); case 56: case 57: if (i) return l(null); a.strictNumericEscape(t - 1, r, n); default: if (u >= 48 && u <= 55) { let c = t - 1, p = /^[0-7]+/.exec(e.slice(c, t + 2))[0], h = parseInt(p, 8); h > 255 && (p = p.slice(0, -1), h = parseInt(p, 8)), t += p.length - 1; let y = e.charCodeAt(t); if (p !== "0" || y === 56 || y === 57) { if (i) return l(null); a.strictNumericEscape(c, r, n); } return l(String.fromCharCode(h)); } return l(String.fromCharCode(u)); } } s(pG, "readEscapedChar"); function yh(e, t, r, n, i, a, o, l) { let u = t, c; return { n: c, pos: t } = fT(e, t, r, n, 16, i, a, !1, l, !o), c === null && (o ? l.invalidEscapeSequence(u, r, n) : t = u - 1), { code: c, pos: t }; } s(yh, "readHexChar"); function fT(e, t, r, n, i, a, o, l, u, c) { let f = t, p = i === 16 ? Yv.hex : Yv.decBinOct, h = i === 16 ? Ll.hex : i === 10 ? Ll.dec : i === 8 ? Ll.oct : Ll.bin, y = !1, v = 0; for (let d = 0, b = a ?? 1 / 0; d < b; ++d) { let E = e.charCodeAt(t), I; if (E === 95 && l !== "bail") { let O = e.charCodeAt(t - 1), k = e.charCodeAt(t + 1); if (l) { if (Number.isNaN(k) || !h(k) || p.has(O) || p.has(k)) { if (c) return { n: null, pos: t }; u.unexpectedNumericSeparator(t, r, n); } } else { if (c) return { n: null, pos: t }; u.numericSeparatorInEscapeSequence(t, r, n); } ++t; continue; } if (E >= 97 ? I = E - 97 + 10 : E >= 65 ? I = E - 65 + 10 : cG(E) ? I = E - 48 : I = 1 / 0, I >= i) { if (I <= 9 && c) return { n: null, pos: t }; if (I <= 9 && u.invalidDigit(t, r, n, i)) I = 0; else if (o) I = 0, y = !0; else break; } ++t, v = v * i + I; } return t === f || a != null && t - f !== a || y ? { n: null, pos: t } : { n: v, pos: t }; } s(fT, "readInt"); function pT(e, t, r, n, i, a) { let o = e.charCodeAt(t), l; if (o === 123) { if (++t, { code: l, pos: t } = yh(e, t, r, n, e.indexOf("}", t) - t, !0, i, a), ++t, l !== null && l > 1114111) if (i) a.invalidCodePoint(t, r, n); else return { code: null, pos: t }; } else ({ code: l, pos: t } = yh(e, t, r, n, 4, !1, i, a)); return { code: l, pos: t }; } s(pT, "readCodePoint"); function Ka(e, t, r) { return new cn(r, e - t, e); } s(Ka, "buildPosition"); var dG = /* @__PURE__ */ new Set([103, 109, 115, 105, 121, 117, 100, 118]), un = class { static { s(this, "Token"); } constructor(t) { this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, this.loc = new Ai(t.startLoc, t.endLoc); } }, gh = class extends hh { static { s(this, "Tokenizer"); } constructor(t, r) { super(), this.isLookahead = void 0, this.tokens = [], this.errorHandlers_readInt = { invalidDigit: /* @__PURE__ */ s((n, i, a, o) => this.options.errorRecovery ? (this.raise(_.InvalidDigit, Ka(n, i, a), { radix: o }), !0) : !1, "invalidDigit"), numericSeparatorInEscapeSequence: this.errorBuilder(_.NumericSeparatorInEscapeSequence), unexpectedNumericSeparator: this.errorBuilder(_.UnexpectedNumericSeparator) }, this.errorHandlers_readCodePoint = Object.assign({}, this.errorHandlers_readInt, { invalidEscapeSequence: this.errorBuilder(_.InvalidEscapeSequence), invalidCodePoint: this.errorBuilder(_.InvalidCodePoint) }), this.errorHandlers_readStringContents_string = Object.assign({}, this.errorHandlers_readCodePoint, { strictNumericEscape: /* @__PURE__ */ s((n, i, a) => { this.recordStrictModeErrors(_.StrictNumericEscape, Ka(n, i, a)); }, "strictNumericEscape"), unterminated: /* @__PURE__ */ s((n, i, a) => { throw this.raise(_.UnterminatedString, Ka(n - 1, i, a)); }, "unterminated") }), this.errorHandlers_readStringContents_template = Object.assign({}, this.errorHandlers_readCodePoint, { strictNumericEscape: this.errorBuilder(_.StrictNumericEscape), unterminated: /* @__PURE__ */ s((n, i, a) => { throw this.raise(_.UnterminatedTemplate, Ka(n, i, a)); }, "unterminated") }), this.state = new mh(), 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.options.tokens && this.pushToken(new un(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 sh.lastIndex = t, sh.test(this.input) ? sh.lastIndex : t; } lookaheadCharCode() { return this.input.charCodeAt(this.nextTokenStart()); } nextTokenInLineStart() { return this.nextTokenInLineStartSince(this.state.pos); } nextTokenInLineStartSince(t) { return ih.lastIndex = t, ih.test(this.input) ? ih.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 n = this.input.charCodeAt(t); (n & 64512) === 56320 && (r = 65536 + ((r & 1023) << 10) + (n & 1023)); } return r; } setStrict(t) { this.state.strict = t, t && (this.state.strictErrors.forEach(([r, n]) => this.raise(r, n)), this.state.strictErrors.clear()); } curContext() { return this.state.context[this.state.context.length - 1]; } nextToken() { if (this.skipSpace(), this.state.start = this.state.pos, this.isLookahead || (this.state.startLoc = this.state.curPosition()), this.state. pos >= this.length) { this.finishToken(139); return; } this.getTokenFromCode(this.codePointAtPos(this.state.pos)); } skipBlockComment(t) { let r; this.isLookahead || (r = this.state.curPosition()); let n = this.state.pos, i = this.input.indexOf(t, n + 2); if (i === -1) throw this.raise(_.UnterminatedComment, this.state.curPosition()); for (this.state.pos = i + t.length, jl.lastIndex = n + 2; jl.test(this.input) && jl.lastIndex <= i; ) ++this.state.curLine, this.state.lineStart = jl.lastIndex; if (this.isLookahead) return; let a = { type: "CommentBlock", value: this.input.slice(n + 2, i), start: n, end: i + t.length, loc: new Ai(r, this.state.curPosition()) }; return this.options.tokens && this.pushToken(a), a; } skipLineComment(t) { let r = this.state.pos, n; this.isLookahead || (n = this.state.curPosition()); let i = this.input.charCodeAt(this.state.pos += t); if (this.state.pos < this.length) for (; !Si(i) && ++this.state.pos < this.length; ) i = 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: r, end: a, loc: new Ai(n, this.state.curPosition()) }; return this.options.tokens && this.pushToken(l), l; } skipSpace() { let t = this.state.pos, r = []; e: for (; this.state.pos < this.length; ) { let n = this.input.charCodeAt(this.state.pos); switch (n) { 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 i = this.skipBlockComment("*/"); i !== void 0 && (this.addComment(i), this.options.attachComment && r.push(i)); break; } case 47: { let i = this.skipLineComment(2); i !== void 0 && (this.addComment(i), this.options.attachComment && r.push(i)); break; } default: break e; } break; default: if (uG(n)) ++this.state.pos; else if (n === 45 && !this.inModule && this.options.annexB) { let i = this.state.pos; if (this.input.charCodeAt(i + 1) === 45 && this.input.charCodeAt(i + 2) === 62 && (t === 0 || this.state.lineStart > t)) { let a = this.skipLineComment(3); a !== void 0 && (this.addComment(a), this.options.attachComment && r.push(a)); } else break e; } else if (n === 60 && !this.inModule && this.options.annexB) { let i = this.state.pos; if (this.input.charCodeAt(i + 1) === 33 && this.input.charCodeAt(i + 2) === 45 && this.input.charCodeAt(i + 3) === 45) { let a = this.skipLineComment(4); a !== void 0 && (this.addComment(a), this.options.attachComment && r.push(a)); } else break e; } else break e; } } if (r.length > 0) { let n = this.state.pos, i = { start: t, end: n, comments: r, leadingNode: null, trailingNode: null, containingNode: null }; this.state.commentStack.push(i); } } finishToken(t, r) { this.state.end = this.state.pos, this.state.endLoc = this.state.curPosition(); let n = this.state.type; this.state.type = t, this.state.value = r, this.isLookahead || this.updateContext(n); } replaceToken(t) { this.state.type = t, this.updateContext(); } readToken_numberSign() { if (this.state.pos === 0 && this.readToken_interpreter()) return; let t = this.state.pos + 1, r = this.codePointAtPos(t); if (r >= 48 && r <= 57) throw this.raise(_.UnexpectedDigitAfterHash, this.state.curPosition()); if (r === 123 || r === 91 && this.hasPlugin("recordAndTuple")) { if (this.expectPlugin("recordAndTuple"), this.getPluginOption("recordAndTuple", "syntaxType") === "bar") throw this.raise(r === 123 ? _.RecordExpressionHashIncorrectStartSyntaxType : _.TupleExpressionHashIncorrectStartSyntaxType, this. state.curPosition()); this.state.pos += 2, r === 123 ? this.finishToken(7) : this.finishToken(1); } else wn(r) ? (++this.state.pos, this.finishToken(138, this.readWord1(r))) : r === 92 ? (++this.state.pos, this.finishToken(138, this. readWord1())) : this.finishOp(27, 1); } readToken_dot() { let t = this.input.charCodeAt(this.state.pos + 1); if (t >= 48 && t <= 57) { this.readNumber(!0); return; } t === 46 && this.input.charCodeAt(this.state.pos + 2) === 46 ? (this.state.pos += 3, this.finishToken(21)) : (++this.state.pos, this.finishToken( 16)); } readToken_slash() { this.input.charCodeAt(this.state.pos + 1) === 61 ? this.finishOp(31, 2) : this.finishOp(56, 1); } readToken_interpreter() { if (this.state.pos !== 0 || this.length < 2) return !1; let t = this.input.charCodeAt(this.state.pos + 1); if (t !== 33) return !1; let r = this.state.pos; for (this.state.pos += 1; !Si(t) && ++this.state.pos < this.length; ) t = this.input.charCodeAt(this.state.pos); let n = this.input.slice(r + 2, this.state.pos); return this.finishToken(28, n), !0; } readToken_mult_modulo(t) { let r = t === 42 ? 55 : 54, n = 1, i = this.input.charCodeAt(this.state.pos + 1); t === 42 && i === 42 && (n++, i = this.input.charCodeAt(this.state.pos + 2), r = 57), i === 61 && !this.state.inType && (n++, r = t === 37 ? 33 : 30), this.finishOp(r, n); } 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(_.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(_.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 n = this.input.charCodeAt(t + 2) === 62 ? 3 : 2; if (this.input.charCodeAt(t + n) === 61) { this.finishOp(30, n + 1); return; } this.finishOp(52, n); 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(_.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(_.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 (wn(t)) { this.readWord(t); return; } } throw this.raise(_.InvalidOrUnexpectedToken, this.state.curPosition(), { unexpected: String.fromCodePoint(t) }); } finishOp(t, r) { let n = this.input.slice(this.state.pos, this.state.pos + r); this.state.pos += r, this.finishToken(t, n); } readRegexp() { let t = this.state.startLoc, r = this.state.start + 1, n, i, { pos: a } = this.state; for (; ; ++a) { if (a >= this.length) throw this.raise(_.UnterminatedRegExp, ar(t, 1)); let c = this.input.charCodeAt(a); if (Si(c)) throw this.raise(_.UnterminatedRegExp, ar(t, 1)); if (n) n = !1; else { if (c === 91) i = !0; else if (c === 93 && i) i = !1; else if (c === 47 && !i) break; n = c === 92; } } let o = this.input.slice(r, a); ++a; let l = "", u = /* @__PURE__ */ s(() => ar(t, a + 2 - r), "nextPos"); for (; a < this.length; ) { let c = this.codePointAtPos(a), f = String.fromCharCode(c); if (dG.has(c)) c === 118 ? l.includes("u") && this.raise(_.IncompatibleRegExpUVFlags, u()) : c === 117 && l.includes("v") && this.raise(_.IncompatibleRegExpUVFlags, u()), l.includes(f) && this.raise(_.DuplicateRegExpFlags, u()); else if (xi(c) || c === 92) this.raise(_.MalformedRegExpFlags, u()); else break; ++a, l += f; } this.state.pos = a, this.finishToken(137, { pattern: o, flags: l }); } readInt(t, r, n = !1, i = !0) { let { n: a, pos: o } = fT(this.input, this.state.pos, this.state.lineStart, this.state.curLine, t, r, n, i, this.errorHandlers_readInt, !1); return this.state.pos = o, a; } readRadixNumber(t) { let r = this.state.curPosition(), n = !1; this.state.pos += 2; let i = this.readInt(t); i == null && this.raise(_.InvalidDigit, ar(r, 2), { radix: t }); let a = this.input.charCodeAt(this.state.pos); if (a === 110) ++this.state.pos, n = !0; else if (a === 109) throw this.raise(_.InvalidDecimal, r); if (wn(this.codePointAtPos(this.state.pos))) throw this.raise(_.NumberIdentifier, this.state.curPosition()); if (n) { let o = this.input.slice(r.index, this.state.pos).replace(/[_n]/g, ""); this.finishToken(135, o); return; } this.finishToken(134, i); } readNumber(t) { let r = this.state.pos, n = this.state.curPosition(), i = !1, a = !1, o = !1, l = !1, u = !1; !t && this.readInt(10) === null && this.raise(_.InvalidNumber, this.state.curPosition()); let c = this.state.pos - r >= 2 && this.input.charCodeAt(r) === 48; if (c) { let y = this.input.slice(r, this.state.pos); if (this.recordStrictModeErrors(_.StrictOctalLiteral, n), !this.state.strict) { let v = y.indexOf("_"); v > 0 && this.raise(_.ZeroDigitNumericSeparator, ar(n, v)); } u = c && !/[89]/.test(y); } let f = this.input.charCodeAt(this.state.pos); if (f === 46 && !u && (++this.state.pos, this.readInt(10), i = !0, f = this.input.charCodeAt(this.state.pos)), (f === 69 || f === 101) && !u && (f = this.input.charCodeAt(++this.state.pos), (f === 43 || f === 45) && ++this.state.pos, this.readInt(10) === null && this.raise( _.InvalidOrMissingExponent, n), i = !0, l = !0, f = this.input.charCodeAt(this.state.pos)), f === 110 && ((i || c) && this.raise(_.InvalidBigIntLiteral, n), ++this.state.pos, a = !0), f === 109 && (this.expectPlugin("decimal", this.state.curPosition()), (l || c) && this.raise(_.InvalidDecimal, n), ++this.state.pos, o = !0), wn(this.codePointAtPos(this.state.pos))) throw this.raise(_.NumberIdentifier, this.state.curPosition()); let p = this.input.slice(r, this.state.pos).replace(/[_mn]/g, ""); if (a) { this.finishToken(135, p); return; } if (o) { this.finishToken(136, p); return; } let h = u ? parseInt(p, 8) : parseFloat(p); this.finishToken(134, h); } readCodePoint(t) { let { code: r, pos: n } = pT(this.input, this.state.pos, this.state.lineStart, this.state.curLine, t, this.errorHandlers_readCodePoint); return this.state.pos = n, r; } readString(t) { let { str: r, pos: n, curLine: i, lineStart: a } = zv(t === 34 ? "double" : "single", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_string); this.state.pos = n + 1, this.state.lineStart = a, this.state.curLine = i, this.finishToken(133, r); } readTemplateContinuation() { this.match(8) || this.unexpected(null, 8), this.state.pos--, this.readTemplateToken(); } readTemplateToken() { let t = this.input[this.state.pos], { str: r, firstInvalidLoc: n, pos: i, curLine: a, lineStart: o } = zv("template", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_template); this.state.pos = i + 1, this.state.lineStart = o, this.state.curLine = a, n && (this.state.firstInvalidTemplateEscapePos = new cn(n.curLine, n.pos - n.lineStart, n.pos)), this.input.codePointAt(i) === 96 ? this.finishToken(24, n ? null : t + r + "`") : (this.state.pos++, this. finishToken(25, n ? null : t + r + "${")); } recordStrictModeErrors(t, r) { let n = r.index; this.state.strict && !this.state.strictErrors.has(n) ? this.raise(t, r) : this.state.strictErrors.set(n, [t, r]); } readWord1(t) { this.state.containsEsc = !1; let r = "", n = this.state.pos, i = 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 (xi(a)) this.state.pos += a <= 65535 ? 1 : 2; else if (a === 92) { this.state.containsEsc = !0, r += this.input.slice(i, this.state.pos); let o = this.state.curPosition(), l = this.state.pos === n ? wn : xi; if (this.input.charCodeAt(++this.state.pos) !== 117) { this.raise(_.MissingUnicodeEscape, this.state.curPosition()), i = this.state.pos - 1; continue; } ++this.state.pos; let u = this.readCodePoint(!0); u !== null && (l(u) || this.raise(_.EscapedCharNotAnIdentifier, o), r += String.fromCodePoint(u)), i = this.state.pos; } else break; } return r + this.input.slice(i, this.state.pos); } readWord(t) { let r = this.readWord1(t), n = Ih.get(r); n !== void 0 ? this.finishToken(n, ns(n)) : this.finishToken(132, r); } checkKeywordEscapes() { let { type: t } = this.state; Fh(t) && this.state.containsEsc && this.raise(_.InvalidEscapedReservedWord, this.state.startLoc, { reservedWord: ns(t) }); } raise(t, r, n = {}) { let i = r instanceof cn ? r : r.loc.start, a = t(i, n); if (!this.options.errorRecovery) throw a; return this.isLookahead || this.state.errors.push(a), a; } raiseOverwrite(t, r, n = {}) { let i = r instanceof cn ? r : r.loc.start, a = i.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(i, n); if (u.loc.index < a) break; } return this.raise(t, r, n); } updateContext(t) { } unexpected(t, r) { throw this.raise(_.UnexpectedToken, t ?? this.state.startLoc, { expected: r ? ns(r) : null }); } expectPlugin(t, r) { if (this.hasPlugin(t)) return !0; throw this.raise(_.MissingPlugin, r ?? this.state.startLoc, { missingPlugin: [t] }); } expectOnePlugin(t) { if (!t.some((r) => this.hasPlugin(r))) throw this.raise(_.MissingOneOfPlugins, this.state.startLoc, { missingPlugin: t }); } errorBuilder(t) { return (r, n, i) => { this.raise(t, Ka(r, n, i)); }; } }, bh = class { static { s(this, "ClassScope"); } constructor() { this.privateNames = /* @__PURE__ */ new Set(), this.loneAccessors = /* @__PURE__ */ new Map(), this.undefinedPrivateNames = /* @__PURE__ */ new Map(); } }, Eh = class { static { s(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 bh()); } exit() { let t = this.stack.pop(), r = this.current(); for (let [n, i] of Array.from(t.undefinedPrivateNames)) r ? r.undefinedPrivateNames.has(n) || r.undefinedPrivateNames.set(n, i) : this.parser.raise(_.InvalidPrivateFieldResolution, i, { identifierName: n }); } declarePrivateName(t, r, n) { let { privateNames: i, loneAccessors: a, undefinedPrivateNames: o } = this.current(), l = i.has(t); if (r & 3) { let u = l && a.get(t); if (u) { let c = u & 4, f = r & 4, p = u & 3, h = r & 3; l = p === h || c !== f, l || a.delete(t); } else l || a.set(t, r); } l && this.parser.raise(_.PrivateNameRedeclaration, n, { identifierName: t }), i.add(t), o.delete(t); } usePrivateName(t, r) { let n; for (n of this.stack) if (n.privateNames.has(t)) return; n ? n.undefinedPrivateNames.set(t, r) : this.parser.raise(_.InvalidPrivateFieldResolution, r, { identifierName: t }); } }, Ci = class { static { s(this, "ExpressionScope"); } constructor(t = 0) { this.type = t; } canBeArrowParameterDeclaration() { return this.type === 2 || this.type === 1; } isCertainlyParameterDeclaration() { return this.type === 3; } }, $l = class extends Ci { static { s(this, "ArrowHeadParsingScope"); } constructor(t) { super(t), this.declarationErrors = /* @__PURE__ */ new Map(); } recordDeclarationError(t, r) { let n = r.index; this.declarationErrors.set(n, [t, r]); } clearDeclarationError(t) { this.declarationErrors.delete(t); } iterateErrors(t) { this.declarationErrors.forEach(t); } }, vh = class { static { s(this, "ExpressionScopeHandler"); } constructor(t) { this.parser = void 0, this.stack = [new Ci()], this.parser = t; } enter(t) { this.stack.push(t); } exit() { this.stack.pop(); } recordParameterInitializerError(t, r) { let n = r.loc.start, { stack: i } = this, a = i.length - 1, o = i[a]; for (; !o.isCertainlyParameterDeclaration(); ) { if (o.canBeArrowParameterDeclaration()) o.recordDeclarationError(t, n); else return; o = i[--a]; } this.parser.raise(t, n); } recordArrowParameterBindingError(t, r) { let { stack: n } = this, i = n[n.length - 1], a = r.loc.start; if (i.isCertainlyParameterDeclaration()) this.parser.raise(t, a); else if (i.canBeArrowParameterDeclaration()) i.recordDeclarationError(t, a); else return; } recordAsyncArrowParametersError(t) { let { stack: r } = this, n = r.length - 1, i = r[n]; for (; i.canBeArrowParameterDeclaration(); ) i.type === 2 && i.recordDeclarationError(_.AwaitBindingIdentifier, t), i = r[--n]; } validateAsPattern() { let { stack: t } = this, r = t[t.length - 1]; r.canBeArrowParameterDeclaration() && r.iterateErrors(([n, i]) => { this.parser.raise(n, i); let a = t.length - 2, o = t[a]; for (; o.canBeArrowParameterDeclaration(); ) o.clearDeclarationError(i.index), o = t[--a]; }); } }; function hG() { return new Ci(3); } s(hG, "newParameterDeclarationScope"); function mG() { return new $l(1); } s(mG, "newArrowHeadScope"); function yG() { return new $l(2); } s(yG, "newAsyncArrowScope"); function dT() { return new Ci(); } s(dT, "newExpressionScope"); var Th = class { static { s(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 ql(e, t) { return (e ? 2 : 0) | (t ? 1 : 0); } s(ql, "functionFlags"); var xh = class extends gh { static { s(this, "UtilParser"); } addExtra(t, r, n, i = !0) { if (!t) return; let { extra: a } = t; a == null && (a = {}, t.extra = a), i ? a[r] = n : Object.defineProperty(a, r, { enumerable: i, value: n }); } isContextual(t) { return this.state.type === t && !this.state.containsEsc; } isUnparsedContextual(t, r) { let n = t + r.length; if (this.input.slice(t, n) === r) { let i = this.input.charCodeAt(n); return !(xi(i) || (i & 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(139) || this.match(8) || this.hasPrecedingLineBreak(); } hasPrecedingLineBreak() { return Hv(this.input, this.state.lastTokEndLoc.index, this.state.start); } hasFollowingLineBreak() { return Hv(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(_.MissingSemicolon, this.state.lastTokEndLoc); } expect(t, r) { this.eat(t) || this.unexpected(r, t); } tryParse(t, r = this.state.clone()) { let n = { node: null }; try { let i = t((a = null) => { throw n.node = a, n; }); if (this.state.errors.length > r.errors.length) { let a = this.state; return this.state = r, this.state.tokensLength = a.tokensLength, { node: i, error: a.errors[r.errors.length], thrown: !1, aborted: !1, failState: a }; } return { node: i, error: null, thrown: !1, aborted: !1, failState: null }; } catch (i) { let a = this.state; if (this.state = r, i instanceof SyntaxError) return { node: null, error: i, thrown: !0, aborted: !1, failState: a }; if (i === n) return { node: n.node, error: null, thrown: !1, aborted: !0, failState: a }; throw i; } } checkExpressionErrors(t, r) { if (!t) return !1; let { shorthandAssignLoc: n, doubleProtoLoc: i, privateKeyLoc: a, optionalParametersLoc: o } = t, l = !!n || !!i || !!o || !!a; if (!r) return l; n != null && this.raise(_.InvalidCoverInitializedName, n), i != null && this.raise(_.DuplicateProto, i), a != null && this.raise(_.UnexpectedPrivateField, a), o != null && this.unexpected(o); } isLiteralPropertyName() { return nT(this.state.type); } isPrivateName(t) { return t.type === "PrivateName"; } getPrivateNameSV(t) { return t.id.name; } hasPropertyAsPrivateName(t) { return (t.type === "MemberExpression" || t.type === "OptionalMemberExpression") && this.isPrivateName(t.property); } isObjectProperty(t) { return t.type === "ObjectProperty"; } isObjectMethod(t) { return t.type === "ObjectMethod"; } initializeScopes(t = this.options.sourceType === "module") { let r = this.state.labels; this.state.labels = []; let n = this.exportedIdentifiers; this.exportedIdentifiers = /* @__PURE__ */ new Set(); let i = 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 Th(); let u = this.classScope; this.classScope = new Eh(this); let c = this.expressionScope; return this.expressionScope = new vh(this), () => { this.state.labels = r, this.exportedIdentifiers = n, this.inModule = i, this.scope = a, this.prodParam = l, this.classScope = u, this. expressionScope = c; }; } enterInitialScopes() { let t = 0; this.inModule && (t |= 2), this.scope.enter(1), this.prodParam.enter(t); } checkDestructuringPrivate(t) { let { privateKeyLoc: r } = t; r !== null && this.expectPlugin("destructuringPrivate", r); } }, Pi = class { static { s(this, "ExpressionErrors"); } constructor() { this.shorthandAssignLoc = null, this.doubleProtoLoc = null, this.privateKeyLoc = null, this.optionalParametersLoc = null; } }, wi = class { static { s(this, "Node"); } constructor(t, r, n) { this.type = "", this.start = r, this.end = 0, this.loc = new Ai(n), t != null && t.options.ranges && (this.range = [r, 0]), t != null && t.filename && (this.loc.filename = t.filename); } }, Mh = wi.prototype; Mh.__clone = function() { let e = new wi(void 0, this.start, this.loc.start), t = Object.keys(this); for (let r = 0, n = t.length; r < n; r++) { let i = t[r]; i !== "leadingComments" && i !== "trailingComments" && i !== "innerComments" && (e[i] = this[i]); } return e; }; function gG(e) { return In(e); } s(gG, "clonePlaceholder"); function In(e) { let { type: t, start: r, end: n, loc: i, range: a, extra: o, name: l } = e, u = Object.create(Mh); return u.type = t, u.start = r, u.end = n, u.loc = i, u.range = a, u.extra = o, u.name = l, t === "Placeholder" && (u.expectedNode = e.expectedNode), u; } s(In, "cloneIdentifier"); function bG(e) { let { type: t, start: r, end: n, loc: i, range: a, extra: o } = e; if (t === "Placeholder") return gG(e); let l = Object.create(Mh); return l.type = t, l.start = r, l.end = n, l.loc = i, l.range = a, e.raw !== void 0 ? l.raw = e.raw : l.extra = o, l.value = e.value, l; } s(bG, "cloneStringLiteral"); var Sh = class extends xh { static { s(this, "NodeUtils"); } startNode() { let t = this.state.startLoc; return new wi(this, t.index, t); } startNodeAt(t) { return new wi(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, n) { return t.type = r, t.end = n.index, t.loc.end = n, this.options.ranges && (t.range[1] = n.index), this.options.attachComment && this.processComment( t), t; } resetStartLocation(t, r) { t.start = r.index, t.loc.start = r, this.options.ranges && (t.range[0] = r.index); } resetEndLocation(t, r = this.state.lastTokEndLoc) { t.end = r.index, t.loc.end = r, this.options.ranges && (t.range[1] = r.index); } resetStartLocationFromNode(t, r) { this.resetStartLocation(t, r.loc.start); } }, EG = /* @__PURE__ */ new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "stat\ ic", "string", "true", "typeof", "void"]), Ae = Dn`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__ */ s(({ 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__ */ s(({ 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__ */ s(({ 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__ */ s(({ 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__ */ s(({ 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__ */ s(({ enumName: e }) => `Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`, "EnumInvalidEx\ plicitTypeUnknownSupplied"), EnumInvalidMemberInitializerPrimaryType: /* @__PURE__ */ s(({ 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__ */ s(({ enumName: e, memberName: t }) => `Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`, "EnumInvalidMemberInitializerSymbolType"), EnumInvalidMemberInitializerUnknownType: /* @__PURE__ */ s(({ 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__ */ s(({ 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__ */ s(({ enumName: e, memberName: t }) => `Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`, "EnumNumberMemberNotInitialized"), EnumStringMemberInconsistentlyInitialized: /* @__PURE__ */ s(({ 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__ */ s(({ 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__ */ s(({ 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 vG(e) { return e.type === "DeclareExportAllDeclaration" || e.type === "DeclareExportDeclaration" && (!e.declaration || e.declaration.type !== "T\ ypeAlias" && e.declaration.type !== "InterfaceDeclaration"); } s(vG, "isEsModuleType"); function Jv(e) { return e.importKind === "type" || e.importKind === "typeof"; } s(Jv, "hasTypeImportKind"); var TG = { const: "declare export var", let: "declare export var", type: "export type", interface: "export interface" }; function xG(e, t) { let r = [], n = []; for (let i = 0; i < e.length; i++) (t(e[i], i, e) ? r : n).push(e[i]); return [r, n]; } s(xG, "partition"); var SG = /\*?\s*@((?:no)?flow)\b/, PG = /* @__PURE__ */ s((e) => class extends e { static { s(this, "FlowParserMixin"); } constructor(...r) { super(...r), this.flowPragma = void 0; } getScopeHandler() { return ph; } shouldParseTypes() { return this.getPluginOption("flow", "all") || this.flowPragma === "flow"; } shouldParseEnums() { return !!this.getPluginOption("flow", "enums"); } finishToken(r, n) { r !== 133 && r !== 13 && r !== 28 && this.flowPragma === void 0 && (this.flowPragma = null), super.finishToken(r, n); } addComment(r) { if (this.flowPragma === void 0) { let n = SG.exec(r.value); if (n) if (n[1] === "flow") this.flowPragma = "flow"; else if (n[1] === "noflow") this.flowPragma = "noflow"; else throw new Error("Unexpected flow pragma"); } super.addComment(r); } flowParseTypeInitialiser(r) { let n = this.state.inType; this.state.inType = !0, this.expect(r || 14); let i = this.flowParseType(); return this.state.inType = n, i; } flowParsePredicate() { let r = this.startNode(), n = this.state.startLoc; return this.next(), this.expectContextual(110), this.state.lastTokStartLoc.index > n.index + 1 && this.raise(Ae.UnexpectedSpaceBetweenModuloChecks, n), this.eat(10) ? (r.value = super.parseExpression(), this.expect(11), this.finishNode(r, "DeclaredPredicate")) : this.finishNode(r, "\ InferredPredicate"); } flowParseTypeAndPredicateInitialiser() { let r = this.state.inType; this.state.inType = !0, this.expect(14); let n = null, i = null; return this.match(54) ? (this.state.inType = r, i = this.flowParsePredicate()) : (n = this.flowParseType(), this.state.inType = r, this. match(54) && (i = this.flowParsePredicate())), [n, i]; } flowParseDeclareClass(r) { return this.next(), this.flowParseInterfaceish(r, !0), this.finishNode(r, "DeclareClass"); } flowParseDeclareFunction(r) { this.next(); let n = r.id = this.parseIdentifier(), i = this.startNode(), a = this.startNode(); this.match(47) ? i.typeParameters = this.flowParseTypeParameterDeclaration() : i.typeParameters = null, this.expect(10); let o = this.flowParseFunctionTypeParams(); return i.params = o.params, i.rest = o.rest, i.this = o._this, this.expect(11), [i.returnType, r.predicate] = this.flowParseTypeAndPredicateInitialiser(), a.typeAnnotation = this.finishNode(i, "FunctionTypeAnnotation"), n.typeAnnotation = this.finishNode(a, "TypeAnnotation"), this.resetEndLocation( n), this.semicolon(), this.scope.declareName(r.id.name, 2048, r.id.loc.start), this.finishNode(r, "DeclareFunction"); } flowParseDeclare(r, n) { if (this.match(80)) return this.flowParseDeclareClass(r); if (this.match(68)) return this.flowParseDeclareFunction(r); if (this.match(74)) return this.flowParseDeclareVariable(r); if (this.eatContextual(127)) return this.match(16) ? this.flowParseDeclareModuleExports(r) : (n && this.raise(Ae.NestedDeclareModule, this.state.lastTokStartLoc), this.flowParseDeclareModule(r)); if (this.isContextual(130)) return this.flowParseDeclareTypeAlias(r); if (this.isContextual(131)) return this.flowParseDeclareOpaqueType(r); if (this.isContextual(129)) return this.flowParseDeclareInterface(r); if (this.match(82)) return this.flowParseDeclareExportDeclaration(r, n); this.unexpected(); } flowParseDeclareVariable(r) { return this.next(), r.id = this.flowParseTypeAnnotatableIdentifier(!0), this.scope.declareName(r.id.name, 5, r.id.loc.start), this.semicolon(), this.finishNode(r, "DeclareVariable"); } flowParseDeclareModule(r) { this.scope.enter(0), this.match(133) ? r.id = super.parseExprAtom() : r.id = this.parseIdentifier(); let n = r.body = this.startNode(), i = n.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(Ae.InvalidNonTypeImportInDeclareModule, this. state.lastTokStartLoc), super.parseImport(l)) : (this.expectContextual(125, Ae.UnsupportedStatementInDeclareModule), l = this.flowParseDeclare( l, !0)), i.push(l); } this.scope.exit(), this.expect(8), this.finishNode(n, "BlockStatement"); let a = null, o = !1; return i.forEach((l) => { vG(l) ? (a === "CommonJS" && this.raise(Ae.AmbiguousDeclareModuleKind, l), a = "ES") : l.type === "DeclareModuleExports" && (o && this. raise(Ae.DuplicateDeclareModuleExports, l), a === "ES" && this.raise(Ae.AmbiguousDeclareModuleKind, l), a = "CommonJS", o = !0); }), r.kind = a || "CommonJS", this.finishNode(r, "DeclareModule"); } flowParseDeclareExportDeclaration(r, n) { if (this.expect(82), this.eat(65)) return this.match(68) || this.match(80) ? r.declaration = this.flowParseDeclare(this.startNode()) : (r.declaration = this.flowParseType(), this.semicolon()), r.default = !0, this.finishNode(r, "DeclareExportDeclaration"); if (this.match(75) || this.isLet() || (this.isContextual(130) || this.isContextual(129)) && !n) { let i = this.state.value; throw this.raise(Ae.UnsupportedDeclareExportKind, this.state.startLoc, { unsupportedExportKind: i, suggestion: TG[i] }); } if (this.match(74) || this.match(68) || this.match(80) || this.isContextual(131)) return r.declaration = this.flowParseDeclare(this.startNode()), r.default = !1, this.finishNode(r, "DeclareExportDeclaration"); if (this.match(55) || this.match(5) || this.isContextual(129) || this.isContextual(130) || this.isContextual(131)) return r = this.parseExport(r, null), r.type === "ExportNamedDeclaration" && (r.type = "ExportDeclaration", r.default = !1, delete r. exportKind), r.type = "Declare" + r.type, r; this.unexpected(); } flowParseDeclareModuleExports(r) { return this.next(), this.expectContextual(111), r.typeAnnotation = this.flowParseTypeAnnotation(), this.semicolon(), this.finishNode(r, "DeclareModuleExports"); } flowParseDeclareTypeAlias(r) { this.next(); let n = this.flowParseTypeAlias(r); return n.type = "DeclareTypeAlias", n; } flowParseDeclareOpaqueType(r) { this.next(); let n = this.flowParseOpaqueType(r, !0); return n.type = "DeclareOpaqueType", n; } flowParseDeclareInterface(r) { return this.next(), this.flowParseInterfaceish(r, !1), this.finishNode(r, "DeclareInterface"); } flowParseInterfaceish(r, n) { if (r.id = this.flowParseRestrictedIdentifier(!n, !0), this.scope.declareName(r.id.name, n ? 17 : 8201, r.id.loc.start), this.match(47) ? r.typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.extends = [], this.eat(81)) do r.extends.push(this.flowParseInterfaceExtends()); while (!n && this.eat(12)); if (n) { if (r.implements = [], r.mixins = [], this.eatContextual(117)) do r.mixins.push(this.flowParseInterfaceExtends()); while (this.eat(12)); if (this.eatContextual(113)) do r.implements.push(this.flowParseInterfaceExtends()); while (this.eat(12)); } r.body = this.flowParseObjectType({ allowStatic: n, allowExact: !1, allowSpread: !1, allowProto: n, allowInexact: !1 }); } flowParseInterfaceExtends() { let r = this.startNode(); return r.id = this.flowParseQualifiedTypeIdentifier(), this.match(47) ? r.typeParameters = this.flowParseTypeParameterInstantiation() : r.typeParameters = null, this.finishNode(r, "InterfaceExtends"); } flowParseInterface(r) { return this.flowParseInterfaceish(r, !1), this.finishNode(r, "InterfaceDeclaration"); } checkNotUnderscore(r) { r === "_" && this.raise(Ae.UnexpectedReservedUnderscore, this.state.startLoc); } checkReservedType(r, n, i) { EG.has(r) && this.raise(i ? Ae.AssignReservedType : Ae.UnexpectedReservedType, n, { reservedType: r }); } flowParseRestrictedIdentifier(r, n) { return this.checkReservedType(this.state.value, this.state.startLoc, n), this.parseIdentifier(r); } flowParseTypeAlias(r) { return r.id = this.flowParseRestrictedIdentifier(!1, !0), this.scope.declareName(r.id.name, 8201, r.id.loc.start), this.match(47) ? r. typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.right = this.flowParseTypeInitialiser(29), this. semicolon(), this.finishNode(r, "TypeAlias"); } flowParseOpaqueType(r, n) { return this.expectContextual(130), r.id = this.flowParseRestrictedIdentifier(!0, !0), this.scope.declareName(r.id.name, 8201, r.id.loc. start), this.match(47) ? r.typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.supertype = null, this. match(14) && (r.supertype = this.flowParseTypeInitialiser(14)), r.impltype = null, n || (r.impltype = this.flowParseTypeInitialiser(29)), this.semicolon(), this.finishNode(r, "OpaqueType"); } flowParseTypeParameter(r = !1) { let n = this.state.startLoc, i = this.startNode(), a = this.flowParseVariance(), o = this.flowParseTypeAnnotatableIdentifier(); return i.name = o.name, i.variance = a, i.bound = o.typeAnnotation, this.match(29) ? (this.eat(29), i.default = this.flowParseType()) : r && this.raise(Ae.MissingTypeParamDefault, n), this.finishNode(i, "TypeParameter"); } flowParseTypeParameterDeclaration() { let r = this.state.inType, n = this.startNode(); n.params = [], this.state.inType = !0, this.match(47) || this.match(142) ? this.next() : this.unexpected(); let i = !1; do { let a = this.flowParseTypeParameter(i); n.params.push(a), a.default && (i = !0), this.match(48) || this.expect(12); } while (!this.match(48)); return this.expect(48), this.state.inType = r, this.finishNode(n, "TypeParameterDeclaration"); } flowParseTypeParameterInstantiation() { let r = this.startNode(), n = this.state.inType; r.params = [], this.state.inType = !0, this.expect(47); let i = this.state.noAnonFunctionType; for (this.state.noAnonFunctionType = !1; !this.match(48); ) r.params.push(this.flowParseType()), this.match(48) || this.expect(12); return this.state.noAnonFunctionType = i, this.expect(48), this.state.inType = n, this.finishNode(r, "TypeParameterInstantiation"); } flowParseTypeParameterInstantiationCallOrNew() { let r = this.startNode(), n = this.state.inType; for (r.params = [], this.state.inType = !0, this.expect(47); !this.match(48); ) r.params.push(this.flowParseTypeOrImplicitInstantiation()), this.match(48) || this.expect(12); return this.expect(48), this.state.inType = n, this.finishNode(r, "TypeParameterInstantiation"); } flowParseInterfaceType() { let r = this.startNode(); if (this.expectContextual(129), r.extends = [], this.eat(81)) do r.extends.push(this.flowParseInterfaceExtends()); while (this.eat(12)); return r.body = this.flowParseObjectType({ allowStatic: !1, allowExact: !1, allowSpread: !1, allowProto: !1, allowInexact: !1 }), this.finishNode(r, "InterfaceTypeAnnotation"); } flowParseObjectPropertyKey() { return this.match(134) || this.match(133) ? super.parseExprAtom() : this.parseIdentifier(!0); } flowParseObjectTypeIndexer(r, n, i) { return r.static = n, this.lookahead().type === 14 ? (r.id = this.flowParseObjectPropertyKey(), r.key = this.flowParseTypeInitialiser()) : (r.id = null, r.key = this.flowParseType()), this.expect(3), r.value = this.flowParseTypeInitialiser(), r.variance = i, this.finishNode( r, "ObjectTypeIndexer"); } flowParseObjectTypeInternalSlot(r, n) { return r.static = n, r.id = this.flowParseObjectPropertyKey(), this.expect(3), this.expect(3), this.match(47) || this.match(10) ? (r.method = !0, r.optional = !1, r.value = this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))) : (r.method = !1, this.eat(17) && (r. optional = !0), r.value = this.flowParseTypeInitialiser()), this.finishNode(r, "ObjectTypeInternalSlot"); } flowParseObjectTypeMethodish(r) { for (r.params = [], r.rest = null, r.typeParameters = null, r.this = null, this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration()), this.expect(10), this.match(78) && (r.this = this.flowParseFunctionTypeParam(!0), r.this.name = null, this.match(11) || this.expect(12)); !this. match(11) && !this.match(21); ) r.params.push(this.flowParseFunctionTypeParam(!1)), this.match(11) || this.expect(12); return this.eat(21) && (r.rest = this.flowParseFunctionTypeParam(!1)), this.expect(11), r.returnType = this.flowParseTypeInitialiser(), this.finishNode(r, "FunctionTypeAnnotation"); } flowParseObjectTypeCallProperty(r, n) { let i = this.startNode(); return r.static = n, r.value = this.flowParseObjectTypeMethodish(i), this.finishNode(r, "ObjectTypeCallProperty"); } flowParseObjectType({ allowStatic: r, allowExact: n, allowSpread: i, 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, f, p = !1; for (n && this.match(6) ? (this.expect(6), c = 9, f = !0) : (this.expect(5), c = 8, f = !1), u.exact = f; !this.match(c); ) { let y = !1, v = null, d = null, b = this.startNode(); if (a && this.isContextual(118)) { let I = this.lookahead(); I.type !== 14 && I.type !== 17 && (this.next(), v = this.state.startLoc, r = !1); } if (r && this.isContextual(106)) { let I = this.lookahead(); I.type !== 14 && I.type !== 17 && (this.next(), y = !0); } let E = this.flowParseVariance(); if (this.eat(0)) v != null && this.unexpected(v), this.eat(0) ? (E && this.unexpected(E.loc.start), u.internalSlots.push(this.flowParseObjectTypeInternalSlot( b, y))) : u.indexers.push(this.flowParseObjectTypeIndexer(b, y, E)); else if (this.match(10) || this.match(47)) v != null && this.unexpected(v), E && this.unexpected(E.loc.start), u.callProperties.push(this.flowParseObjectTypeCallProperty(b, y)); else { let I = "init"; if (this.isContextual(99) || this.isContextual(104)) { let k = this.lookahead(); nT(k.type) && (I = this.state.value, this.next()); } let O = this.flowParseObjectTypeProperty(b, y, v, E, I, i, o ?? !f); O === null ? (p = !0, d = this.state.lastTokStartLoc) : u.properties.push(O); } this.flowObjectTypeSemicolon(), d && !this.match(8) && !this.match(9) && this.raise(Ae.UnexpectedExplicitInexactInObject, d); } this.expect(c), i && (u.inexact = p); let h = this.finishNode(u, "ObjectTypeAnnotation"); return this.state.inType = l, h; } flowParseObjectTypeProperty(r, n, i, 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(Ae.InexactInsideExact, this.state.lastTokStartLoc) : this.raise(Ae.InexactInsideNonObject, this.state.lastTokStartLoc), a && this.raise(Ae.InexactVariance, a), null) : (l || this.raise( Ae.UnexpectedSpreadType, this.state.lastTokStartLoc), i != null && this.unexpected(i), a && this.raise(Ae.SpreadVariance, a), r.argument = this.flowParseType(), this.finishNode(r, "ObjectTypeSpreadProperty")); { r.key = this.flowParseObjectPropertyKey(), r.static = n, r.proto = i != null, r.kind = o; let c = !1; return this.match(47) || this.match(10) ? (r.method = !0, i != null && this.unexpected(i), 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(Ae.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 n = r.kind === "get" ? 0 : 1, i = r.value.params.length + (r.value.rest ? 1 : 0); r.value.this && this.raise(r.kind === "get" ? Ae.GetterMayNotHaveThisParam : Ae.SetterMayNotHaveThisParam, r.value.this), i !== n && this. raise(r.kind === "get" ? _.BadGetterArity : _.BadSetterArity, r), r.kind === "set" && r.value.rest && this.raise(_.BadSetterRestParameter, r); } flowObjectTypeSemicolon() { !this.eat(13) && !this.eat(12) && !this.match(8) && !this.match(9) && this.unexpected(); } flowParseQualifiedTypeIdentifier(r, n) { var i; (i = r) != null || (r = this.state.startLoc); let a = n || this.flowParseRestrictedIdentifier(!0); for (; this.eat(16); ) { let o = this.startNodeAt(r); o.qualification = a, o.id = this.flowParseRestrictedIdentifier(!0), a = this.finishNode(o, "QualifiedTypeIdentifier"); } return a; } flowParseGenericType(r, n) { let i = this.startNodeAt(r); return i.typeParameters = null, i.id = this.flowParseQualifiedTypeIdentifier(r, n), this.match(47) && (i.typeParameters = this.flowParseTypeParameterInstantiation()), this.finishNode(i, "GenericTypeAnnotation"); } flowParseTypeofType() { let r = this.startNode(); return this.expect(87), r.argument = this.flowParsePrimaryType(), this.finishNode(r, "TypeofTypeAnnotation"); } flowParseTupleType() { let r = this.startNode(); 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 n = null, i = !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(Ae.ThisParamMustBeFirst, o), n = this.parseIdentifier(u), this.eat(17) && (i = !0, u && this.raise(Ae.ThisParamMayNotBeOptional, o)), a = this.flowParseTypeInitialiser()) : a = this.flowParseType(), o.name = n, o.optional = i, o.typeAnnotation = a, this.finishNode(o, "FunctionTypeParam"); } reinterpretTypeAsFunctionTypeParam(r) { let n = this.startNodeAt(r.loc.start); return n.name = null, n.optional = !1, n.typeAnnotation = r, this.finishNode(n, "FunctionTypeParam"); } flowParseFunctionTypeParams(r = []) { let n = null, i = null; for (this.match(78) && (i = this.flowParseFunctionTypeParam(!0), i.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) && (n = this.flowParseFunctionTypeParam(!1)), { params: r, rest: n, _this: i }; } flowIdentToTypeAnnotation(r, n, i) { switch (i.name) { case "any": return this.finishNode(n, "AnyTypeAnnotation"); case "bool": case "boolean": return this.finishNode(n, "BooleanTypeAnnotation"); case "mixed": return this.finishNode(n, "MixedTypeAnnotation"); case "empty": return this.finishNode(n, "EmptyTypeAnnotation"); case "number": return this.finishNode(n, "NumberTypeAnnotation"); case "string": return this.finishNode(n, "StringTypeAnnotation"); case "symbol": return this.finishNode(n, "SymbolTypeAnnotation"); default: return this.checkNotUnderscore(i.name), this.flowParseGenericType(r, i); } } flowParsePrimaryType() { let r = this.state.startLoc, n = this.startNode(), i, 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), i = this.flowParseFunctionTypeParams(), u.params = i.params, u.rest = i.rest, u.this = i._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 (tt(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 ? i = this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(a)]) : i = this.flowParseFunctionTypeParams(), u.params = i.params, u.rest = i.rest, u.this = i._this, this.expect(11), this.expect(19), u.returnType = this.flowParseType(), u.typeParameters = null, this.finishNode(u, "FunctionTypeAnnotation"); } case 133: return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation"); case 85: case 86: return n.value = this.match(85), this.next(), this.finishNode(n, "BooleanLiteralTypeAnnotation"); case 53: if (this.state.value === "-") { if (this.next(), this.match(134)) return this.parseLiteralAtNode(-this.state.value, "NumberLiteralTypeAnnotation", n); if (this.match(135)) return this.parseLiteralAtNode(-this.state.value, "BigIntLiteralTypeAnnotation", n); throw this.raise(Ae.UnexpectedSubtractionOperand, this.state.startLoc); } this.unexpected(); return; case 134: return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation"); case 135: return this.parseLiteral(this.state.value, "BigIntLiteralTypeAnnotation"); case 88: return this.next(), this.finishNode(n, "VoidTypeAnnotation"); case 84: return this.next(), this.finishNode(n, "NullLiteralTypeAnnotation"); case 78: return this.next(), this.finishNode(n, "ThisTypeAnnotation"); case 55: return this.next(), this.finishNode(n, "ExistsTypeAnnotation"); case 87: return this.flowParseTypeofType(); default: if (Fh(this.state.type)) { let u = ns(this.state.type); return this.next(), super.createIdentifier(n, u); } else if (tt(this.state.type)) return this.isContextual(129) ? this.flowParseInterfaceType() : this.flowIdentToTypeAnnotation(r, n, this.parseIdentifier()); } this.unexpected(); } flowParsePostfixType() { let r = this.state.startLoc, n = this.flowParsePrimaryType(), i = !1; for (; (this.match(0) || this.match(18)) && !this.canInsertSemicolon(); ) { let a = this.startNodeAt(r), o = this.eat(18); i = i || o, this.expect(0), !o && this.match(3) ? (a.elementType = n, this.next(), n = this.finishNode(a, "ArrayTypeAnnotation")) : (a. objectType = n, a.indexType = this.flowParseType(), this.expect(3), i ? (a.optional = o, n = this.finishNode(a, "OptionalIndexedAcce\ ssType")) : n = this.finishNode(a, "IndexedAccessType")); } return n; } 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 n = this.startNodeAt(r.loc.start); return n.params = [this.reinterpretTypeAsFunctionTypeParam(r)], n.rest = null, n.this = null, n.returnType = this.flowParseType(), n. typeParameters = null, this.finishNode(n, "FunctionTypeAnnotation"); } return r; } flowParseIntersectionType() { let r = this.startNode(); this.eat(45); let n = this.flowParseAnonFunctionWithoutParens(); for (r.types = [n]; this.eat(45); ) r.types.push(this.flowParseAnonFunctionWithoutParens()); return r.types.length === 1 ? n : this.finishNode(r, "IntersectionTypeAnnotation"); } flowParseUnionType() { let r = this.startNode(); this.eat(43); let n = this.flowParseIntersectionType(); for (r.types = [n]; this.eat(43); ) r.types.push(this.flowParseIntersectionType()); return r.types.length === 1 ? n : this.finishNode(r, "UnionTypeAnnotation"); } flowParseType() { let r = this.state.inType; this.state.inType = !0; let n = this.flowParseUnionType(); return this.state.inType = r, n; } flowParseTypeOrImplicitInstantiation() { if (this.state.type === 132 && this.state.value === "_") { let r = this.state.startLoc, n = this.parseIdentifier(); return this.flowParseGenericType(r, n); } else return this.flowParseType(); } flowParseTypeAnnotation() { let r = this.startNode(); return r.typeAnnotation = this.flowParseTypeInitialiser(), this.finishNode(r, "TypeAnnotation"); } flowParseTypeAnnotatableIdentifier(r) { let n = r ? this.parseIdentifier() : this.flowParseRestrictedIdentifier(); return this.match(14) && (n.typeAnnotation = this.flowParseTypeAnnotation(), this.resetEndLocation(n)), n; } 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, n, i = !1) { if (n) { this.forwardNoArrowParamsConversionAt(r, () => super.parseFunctionBody(r, !0, i)); return; } super.parseFunctionBody(r, !1, i); } parseFunctionBodyAndFinish(r, n, i = !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, n, i); } parseStatementLike(r) { if (this.state.strict && this.isContextual(129)) { let i = this.lookahead(); if (Wr(i.type)) { let a = this.startNode(); return this.next(), this.flowParseInterface(a); } } else if (this.shouldParseEnums() && this.isContextual(126)) { let i = this.startNode(); return this.next(), this.flowParseEnumDeclaration(i); } let n = super.parseStatementLike(r); return this.flowPragma === void 0 && !this.isValidDirective(n) && (this.flowPragma = null), n; } parseExpressionStatement(r, n, i) { if (n.type === "Identifier") { if (n.name === "declare") { if (this.match(80) || tt(this.state.type) || this.match(68) || this.match(74) || this.match(82)) return this.flowParseDeclare(r); } else if (tt(this.state.type)) { if (n.name === "interface") return this.flowParseInterface(r); if (n.name === "type") return this.flowParseTypeAlias(r); if (n.name === "opaque") return this.flowParseOpaqueType(r, !1); } } return super.parseExpressionStatement(r, n, i); } shouldParseExportDeclaration() { let { type: r } = this.state; return Gv(r) || this.shouldParseEnums() && r === 126 ? !this.state.containsEsc : super.shouldParseExportDeclaration(); } isExportDefaultSpecifier() { let { type: r } = this.state; return Gv(r) || this.shouldParseEnums() && r === 126 ? this.state.containsEsc : super.isExportDefaultSpecifier(); } parseExportDefaultExpression() { if (this.shouldParseEnums() && this.isContextual(126)) { let r = this.startNode(); return this.next(), this.flowParseEnumDeclaration(r); } return super.parseExportDefaultExpression(); } parseConditional(r, n, i) { 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(i), r; } this.expect(17); let a = this.state.clone(), o = this.state.noArrowAt, l = this.startNodeAt(n), { consequent: u, failed: c } = this.tryParseConditionalConsequent(), [f, p] = this.getArrowLikeExpressions(u); if (c || p.length > 0) { let h = [...o]; if (p.length > 0) { this.state = a, this.state.noArrowAt = h; for (let y = 0; y < p.length; y++) h.push(p[y].start); ({ consequent: u, failed: c } = this.tryParseConditionalConsequent()), [f, p] = this.getArrowLikeExpressions(u); } c && f.length > 1 && this.raise(Ae.AmbiguousConditionalArrow, a.startLoc), c && f.length === 1 && (this.state = a, h.push(f[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(), n = !this.match(14); return this.state.noArrowParamsConversionAt.pop(), { consequent: r, failed: n }; } getArrowLikeExpressions(r, n) { let i = [r], a = []; for (; i.length !== 0; ) { let o = i.pop(); o.type === "ArrowFunctionExpression" && o.body.type !== "BlockStatement" ? (o.typeParameters || !o.returnType ? this.finishArrowValidation( o) : a.push(o), i.push(o.body)) : o.type === "ConditionalExpression" && (i.push(o.consequent), i.push(o.alternate)); } return n ? (a.forEach((o) => this.finishArrowValidation(o)), [a, []]) : xG(a, (o) => o.params.every((l) => this.isAssignable(l, !0))); } finishArrowValidation(r) { var n; this.toAssignableList(r.params, (n = r.extra) == null ? void 0 : n.trailingCommaLoc, !1), this.scope.enter(6), super.checkParams(r, !1, !0), this.scope.exit(); } forwardNoArrowParamsConversionAt(r, n) { let i; return this.state.noArrowParamsConversionAt.includes(r.start) ? (this.state.noArrowParamsConversionAt.push(this.state.start), i = n(), this.state.noArrowParamsConversionAt.pop()) : i = n(), i; } parseParenItem(r, n) { let i = super.parseParenItem(r, n); if (this.eat(17) && (i.optional = !0, this.resetEndLocation(r)), this.match(14)) { let a = this.startNodeAt(n); return a.expression = i, a.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(a, "TypeCastExpression"); } return i; } assertModuleNodeAllowed(r) { r.type === "ImportDeclaration" && (r.importKind === "type" || r.importKind === "typeof") || r.type === "ExportNamedDeclaration" && r.exportKind === "type" || r.type === "ExportAllDeclaration" && r.exportKind === "type" || super.assertModuleNodeAllowed(r); } parseExportDeclaration(r) { if (this.isContextual(130)) { r.exportKind = "type"; let n = this.startNode(); return this.next(), this.match(5) ? (r.specifiers = this.parseExportSpecifiers(!0), super.parseExportFrom(r), null) : this.flowParseTypeAlias( n); } else if (this.isContextual(131)) { r.exportKind = "type"; let n = this.startNode(); return this.next(), this.flowParseOpaqueType(n, !1); } else if (this.isContextual(129)) { r.exportKind = "type"; let n = this.startNode(); return this.next(), this.flowParseInterface(n); } else if (this.shouldParseEnums() && this.isContextual(126)) { r.exportKind = "value"; let n = this.startNode(); return this.next(), this.flowParseEnumDeclaration(n); } else return super.parseExportDeclaration(r); } eatExportStar(r) { return super.eatExportStar(r) ? !0 : this.isContextual(130) && this.lookahead().type === 55 ? (r.exportKind = "type", this.next(), this. next(), !0) : !1; } maybeParseExportNamespaceSpecifier(r) { let { startLoc: n } = this.state, i = super.maybeParseExportNamespaceSpecifier(r); return i && r.exportKind === "type" && this.unexpected(n), i; } parseClassId(r, n, i) { super.parseClassId(r, n, i), this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration()); } parseClassMember(r, n, i) { let { startLoc: a } = this.state; if (this.isContextual(125)) { if (super.parseClassMemberFromModifier(r, n)) return; n.declare = !0; } super.parseClassMember(r, n, i), n.declare && (n.type !== "ClassProperty" && n.type !== "ClassPrivateProperty" && n.type !== "Property\ Definition" ? this.raise(Ae.DeclareClassElement, a) : n.value && this.raise(Ae.DeclareClassFieldInitializer, n.value)); } isIterator(r) { return r === "iterator" || r === "asyncIterator"; } readIterator() { let r = super.readWord1(), n = "@@" + r; (!this.isIterator(r) || !this.state.inType) && this.raise(_.InvalidIdentifier, this.state.curPosition(), { identifierName: n }), this.finishToken(132, n); } getTokenFromCode(r) { let n = this.input.charCodeAt(this.state.pos + 1); r === 123 && n === 124 ? this.finishOp(6, 2) : this.state.inType && (r === 62 || r === 60) ? this.finishOp(r === 62 ? 48 : 47, 1) : this. state.inType && r === 63 ? n === 46 ? this.finishOp(18, 2) : this.finishOp(17, 1) : sG(r, n, this.input.charCodeAt(this.state.pos + 2)) ? (this.state.pos += 2, this.readIterator()) : super.getTokenFromCode(r); } isAssignable(r, n) { return r.type === "TypeCastExpression" ? this.isAssignable(r.expression, n) : super.isAssignable(r, n); } toAssignable(r, n = !1) { !n && r.type === "AssignmentExpression" && r.left.type === "TypeCastExpression" && (r.left = this.typeCastToParameter(r.left)), super. toAssignable(r, n); } toAssignableList(r, n, i) { for (let a = 0; a < r.length; a++) { let o = r[a]; o?.type === "TypeCastExpression" && (r[a] = this.typeCastToParameter(o)); } super.toAssignableList(r, n, i); } toReferencedList(r, n) { for (let a = 0; a < r.length; a++) { var i; let o = r[a]; o && o.type === "TypeCastExpression" && !((i = o.extra) != null && i.parenthesized) && (r.length > 1 || !n) && this.raise(Ae.TypeCastInPattern, o.typeAnnotation); } return r; } parseArrayLike(r, n, i, a) { let o = super.parseArrayLike(r, n, i, a); return n && !this.state.maybeInArrowParameters && this.toReferencedList(o.elements), o; } isValidLVal(r, n, i) { return r === "TypeCastExpression" || super.isValidLVal(r, n, i); } parseClassProperty(r) { return this.match(14) && (r.typeAnnotation = this.flowParseTypeAnnotation()), super.parseClassProperty(r); } parseClassPrivateProperty(r) { return this.match(14) && (r.typeAnnotation = this.flowParseTypeAnnotation()), super.parseClassPrivateProperty(r); } isClassMethod() { return this.match(47) || super.isClassMethod(); } isClassProperty() { return this.match(14) || super.isClassProperty(); } isNonstaticConstructor(r) { return !this.match(14) && super.isNonstaticConstructor(r); } pushClassMethod(r, n, i, a, o, l) { if (n.variance && this.unexpected(n.variance.loc.start), delete n.variance, this.match(47) && (n.typeParameters = this.flowParseTypeParameterDeclaration()), super.pushClassMethod(r, n, i, a, o, l), n.params && o) { let u = n.params; u.length > 0 && this.isThisParam(u[0]) && this.raise(Ae.ThisParamBannedInConstructor, n); } else if (n.type === "MethodDefinition" && o && n.value.params) { let u = n.value.params; u.length > 0 && this.isThisParam(u[0]) && this.raise(Ae.ThisParamBannedInConstructor, n); } } pushClassPrivateMethod(r, n, i, a) { n.variance && this.unexpected(n.variance.loc.start), delete n.variance, this.match(47) && (n.typeParameters = this.flowParseTypeParameterDeclaration()), super.pushClassPrivateMethod(r, n, i, a); } parseClassSuper(r) { if (super.parseClassSuper(r), r.superClass && this.match(47) && (r.superTypeParameters = this.flowParseTypeParameterInstantiation()), this. isContextual(113)) { this.next(); let n = r.implements = []; do { let i = this.startNode(); i.id = this.flowParseRestrictedIdentifier(!0), this.match(47) ? i.typeParameters = this.flowParseTypeParameterInstantiation() : i. typeParameters = null, n.push(this.finishNode(i, "ClassImplements")); } while (this.eat(12)); } } checkGetterSetterParams(r) { super.checkGetterSetterParams(r); let n = this.getObjectOrClassMethodParams(r); if (n.length > 0) { let i = n[0]; this.isThisParam(i) && r.kind === "get" ? this.raise(Ae.GetterMayNotHaveThisParam, i) : this.isThisParam(i) && this.raise(Ae.SetterMayNotHaveThisParam, i); } } parsePropertyNamePrefixOperator(r) { r.variance = this.flowParseVariance(); } parseObjPropValue(r, n, i, 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 f = super.parseObjPropValue(r, n, i, a, o, l, u); return c && ((f.value || f).typeParameters = c), f; } parseAssignableListItemTypes(r) { return this.eat(17) && (r.type !== "Identifier" && this.raise(Ae.PatternIsOptional, r), this.isThisParam(r) && this.raise(Ae.ThisParamMayNotBeOptional, r), r.optional = !0), this.match(14) ? r.typeAnnotation = this.flowParseTypeAnnotation() : this.isThisParam(r) && this.raise(Ae.ThisParamAnnotationRequired, r), this.match(29) && this.isThisParam(r) && this.raise(Ae.ThisParamNoDefault, r), this.resetEndLocation(r), r; } parseMaybeDefault(r, n) { let i = super.parseMaybeDefault(r, n); return i.type === "AssignmentPattern" && i.typeAnnotation && i.right.start < i.typeAnnotation.start && this.raise(Ae.TypeBeforeInitializer, i.typeAnnotation), i; } checkImportReflection(r) { super.checkImportReflection(r), r.module && r.importKind !== "value" && this.raise(Ae.ImportReflectionHasImportType, r.specifiers[0].loc. start); } parseImportSpecifierLocal(r, n, i) { n.local = Jv(r) ? this.flowParseRestrictedIdentifier(!0, !0) : this.parseIdentifier(), r.specifiers.push(this.finishImportSpecifier(n, i)); } isPotentialImportPhase(r) { if (super.isPotentialImportPhase(r)) return !0; if (this.isContextual(130)) { if (!r) return !0; let n = this.lookaheadCharCode(); return n === 123 || n === 42; } return !r && this.isContextual(87); } applyImportPhase(r, n, i, a) { if (super.applyImportPhase(r, n, i, a), n) { if (!i && this.match(65)) return; r.exportKind = i === "type" ? i : "value"; } else i === "type" && this.match(55) && this.unexpected(), r.importKind = i === "type" || i === "typeof" ? i : "value"; } parseImportSpecifier(r, n, i, 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 p = this.parseIdentifier(!0); u !== null && !Wr(this.state.type) ? (r.imported = p, r.importKind = u, r.local = In(p)) : (r.imported = l, r.importKind = null, r.local = this.parseIdentifier()); } else { if (u !== null && Wr(this.state.type)) r.imported = this.parseIdentifier(!0), r.importKind = u; else { if (n) throw this.raise(_.ImportBindingIsString, r, { importName: l.value }); r.imported = l, r.importKind = null; } this.eatContextual(93) ? r.local = this.parseIdentifier() : (c = !0, r.local = In(r.imported)); } let f = Jv(r); return i && f && this.raise(Ae.ImportTypeShorthandOnlyInPureImport, r), (i || f) && this.checkReservedType(r.local.name, r.local.loc.start, !0), c && !i && !f && 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, n) { let i = r.kind; i !== "get" && i !== "set" && this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration()), super.parseFunctionParams( r, n); } parseVarId(r, n) { super.parseVarId(r, n), this.match(14) && (r.id.typeAnnotation = this.flowParseTypeAnnotation(), this.resetEndLocation(r.id)); } parseAsyncArrowFromCallExpression(r, n) { if (this.match(14)) { let i = this.state.noAnonFunctionType; this.state.noAnonFunctionType = !0, r.returnType = this.flowParseTypeAnnotation(), this.state.noAnonFunctionType = i; } return super.parseAsyncArrowFromCallExpression(r, n); } shouldParseAsyncArrow() { return this.match(14) || super.shouldParseAsyncArrow(); } parseMaybeAssign(r, n) { var i; let a = null, o; if (this.hasPlugin("jsx") && (this.match(142) || this.match(47))) { if (a = this.state.clone(), o = this.tryParse(() => super.parseMaybeAssign(r, n), a), !o.error) return o.node; let { context: c } = this.state, f = c[c.length - 1]; (f === at.j_oTag || f === at.j_expr) && c.pop(); } if ((i = o) != null && i.error || this.match(47)) { var l, u; a = a || this.state.clone(); let c, f = this.tryParse((h) => { var y; c = this.flowParseTypeParameterDeclaration(); let v = this.forwardNoArrowParamsConversionAt(c, () => { let b = super.parseMaybeAssign(r, n); return this.resetStartLocationFromNode(b, c), b; }); (y = v.extra) != null && y.parenthesized && h(); let d = this.maybeUnwrapTypeCastExpression(v); return d.type !== "ArrowFunctionExpression" && h(), d.typeParameters = c, this.resetStartLocationFromNode(d, c), v; }, a), p = null; if (f.node && this.maybeUnwrapTypeCastExpression(f.node).type === "ArrowFunctionExpression") { if (!f.error && !f.aborted) return f.node.async && this.raise(Ae.UnexpectedTypeParameterBeforeAsyncArrowFunction, c), f.node; p = f.node; } if ((l = o) != null && l.node) return this.state = o.failState, o.node; if (p) return this.state = f.failState, p; throw (u = o) != null && u.thrown ? o.error : f.thrown ? f.error : this.raise(Ae.UnexpectedTokenAfterTypeParameter, c); } return super.parseMaybeAssign(r, n); } parseArrow(r) { if (this.match(14)) { let n = this.tryParse(() => { let i = this.state.noAnonFunctionType; this.state.noAnonFunctionType = !0; let a = this.startNode(); return [a.typeAnnotation, r.predicate] = this.flowParseTypeAndPredicateInitialiser(), this.state.noAnonFunctionType = i, this.canInsertSemicolon() && this.unexpected(), this.match(19) || this.unexpected(), a; }); if (n.thrown) return null; n.error && (this.state = n.failState), r.returnType = n.node.typeAnnotation ? this.finishNode(n.node, "TypeAnnotation") : null; } return super.parseArrow(r); } shouldParseArrow(r) { return this.match(14) || super.shouldParseArrow(r); } setArrowFunctionParameters(r, n) { this.state.noArrowParamsConversionAt.includes(r.start) ? r.params = n : super.setArrowFunctionParameters(r, n); } checkParams(r, n, i, a = !0) { if (!(i && this.state.noArrowParamsConversionAt.includes(r.start))) { for (let o = 0; o < r.params.length; o++) this.isThisParam(r.params[o]) && o > 0 && this.raise(Ae.ThisParamMustBeFirst, r.params[o]); super.checkParams(r, n, i, a); } } parseParenAndDistinguishExpression(r) { return super.parseParenAndDistinguishExpression(r && !this.state.noArrowAt.includes(this.state.start)); } parseSubscripts(r, n, i) { if (r.type === "Identifier" && r.name === "async" && this.state.noArrowAt.includes(n.index)) { this.next(); let a = this.startNodeAt(n); a.callee = r, a.arguments = super.parseCallExpressionArguments(11, !1), 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(n) || u(), a); if (!o.error && !o.aborted) return o.node; let l = this.tryParse(() => super.parseSubscripts(r, n, i), 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, n, i); } parseSubscript(r, n, i, a) { if (this.match(18) && this.isLookaheadToken_lt()) { if (a.optionalChainMember = !0, i) return a.stop = !0, r; this.next(); let o = this.startNodeAt(n); return o.callee = r, o.typeArguments = this.flowParseTypeParameterInstantiation(), this.expect(10), o.arguments = this.parseCallExpressionArguments( 11, !1), o.optional = !0, this.finishCallExpression(o, !0); } else if (!i && this.shouldParseTypes() && this.match(47)) { let o = this.startNodeAt(n); o.callee = r; let l = this.tryParse(() => (o.typeArguments = this.flowParseTypeParameterInstantiationCallOrNew(), this.expect(10), o.arguments = super. parseCallExpressionArguments(11, !1), 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, n, i, a); } parseNewCallee(r) { super.parseNewCallee(r); let n = null; this.shouldParseTypes() && this.match(47) && (n = this.tryParse(() => this.flowParseTypeParameterInstantiationCallOrNew()).node), r.typeArguments = n; } parseAsyncArrowWithTypeParameters(r) { let n = this.startNodeAt(r); if (this.parseFunctionParams(n, !1), !!this.parseArrow(n)) return super.parseArrowExpression(n, void 0, !0); } readToken_mult_modulo(r) { let n = this.input.charCodeAt(this.state.pos + 1); if (r === 42 && n === 47 && this.state.hasFlowComment) { this.state.hasFlowComment = !1, this.state.pos += 2, this.nextToken(); return; } super.readToken_mult_modulo(r); } readToken_pipe_amp(r) { let n = this.input.charCodeAt(this.state.pos + 1); if (r === 124 && n === 125) { this.finishOp(9, 2); return; } super.readToken_pipe_amp(r); } parseTopLevel(r, n) { let i = super.parseTopLevel(r, n); return this.state.hasFlowComment && this.raise(Ae.UnterminatedFlowComment, this.state.curPosition()), i; } skipBlockComment() { if (this.hasPlugin("flowComments") && this.skipFlowComment()) { if (this.state.hasFlowComment) throw this.raise(Ae.NestedFlowComment, this.state.startLoc); this.hasFlowCommentCompletion(); let r = this.skipFlowComment(); r && (this.state.pos += r, this.state.hasFlowComment = !0); return; } return super.skipBlockComment(this.state.hasFlowComment ? "*-/" : "*/"); } skipFlowComment() { let { pos: r } = this.state, n = 2; for (; [32, 9].includes(this.input.charCodeAt(r + n)); ) n++; let i = this.input.charCodeAt(n + r), a = this.input.charCodeAt(n + r + 1); return i === 58 && a === 58 ? n + 2 : this.input.slice(n + r, n + r + 12) === "flow-include" ? n + 12 : i === 58 && a !== 58 ? n : !1; } hasFlowCommentCompletion() { if (this.input.indexOf("*/", this.state.pos) === -1) throw this.raise(_.UnterminatedComment, this.state.curPosition()); } flowEnumErrorBooleanMemberNotInitialized(r, { enumName: n, memberName: i }) { this.raise(Ae.EnumBooleanMemberNotInitialized, r, { memberName: i, enumName: n }); } flowEnumErrorInvalidMemberInitializer(r, n) { return this.raise(n.explicitType ? n.explicitType === "symbol" ? Ae.EnumInvalidMemberInitializerSymbolType : Ae.EnumInvalidMemberInitializerPrimaryType : Ae.EnumInvalidMemberInitializerUnknownType, r, n); } flowEnumErrorNumberMemberNotInitialized(r, n) { this.raise(Ae.EnumNumberMemberNotInitialized, r, n); } flowEnumErrorStringMemberInconsistentlyInitialized(r, n) { this.raise(Ae.EnumStringMemberInconsistentlyInitialized, r, n); } flowEnumMemberInit() { let r = this.state.startLoc, n = /* @__PURE__ */ s(() => this.match(12) || this.match(8), "endOfInit"); switch (this.state.type) { case 134: { let i = this.parseNumericLiteral(this.state.value); return n() ? { type: "number", loc: i.loc.start, value: i } : { type: "invalid", loc: r }; } case 133: { let i = this.parseStringLiteral(this.state.value); return n() ? { type: "string", loc: i.loc.start, value: i } : { type: "invalid", loc: r }; } case 85: case 86: { let i = this.parseBooleanLiteral(this.match(85)); return n() ? { type: "boolean", loc: i.loc.start, value: i } : { type: "invalid", loc: r }; } default: return { type: "invalid", loc: r }; } } flowEnumMemberRaw() { let r = this.state.startLoc, n = this.parseIdentifier(!0), i = this.eat(29) ? this.flowEnumMemberInit() : { type: "none", loc: r }; return { id: n, init: i }; } flowEnumCheckExplicitTypeMismatch(r, n, i) { let { explicitType: a } = n; a !== null && a !== i && this.flowEnumErrorInvalidMemberInitializer(r, n); } flowEnumMembers({ enumName: r, explicitType: n }) { let i = /* @__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(), f = u.name; if (f === "") continue; /^[a-z]/.test(f) && this.raise(Ae.EnumInvalidMemberName, u, { memberName: f, suggestion: f[0].toUpperCase() + f.slice(1), enumName: r }), i.has(f) && this.raise(Ae.EnumDuplicateMemberName, u, { memberName: f, enumName: r }), i.add(f); let p = { enumName: r, explicitType: n, memberName: f }; switch (l.id = u, c.type) { case "boolean": { this.flowEnumCheckExplicitTypeMismatch(c.loc, p, "boolean"), l.init = c.value, a.booleanMembers.push(this.finishNode(l, "EnumBoo\ leanMember")); break; } case "number": { this.flowEnumCheckExplicitTypeMismatch(c.loc, p, "number"), l.init = c.value, a.numberMembers.push(this.finishNode(l, "EnumNumbe\ rMember")); break; } case "string": { this.flowEnumCheckExplicitTypeMismatch(c.loc, p, "string"), l.init = c.value, a.stringMembers.push(this.finishNode(l, "EnumStrin\ gMember")); break; } case "invalid": throw this.flowEnumErrorInvalidMemberInitializer(c.loc, p); case "none": switch (n) { case "boolean": this.flowEnumErrorBooleanMemberNotInitialized(c.loc, p); break; case "number": this.flowEnumErrorNumberMemberNotInitialized(c.loc, p); break; default: a.defaultedMembers.push(this.finishNode(l, "EnumDefaultedMember")); } } this.match(8) || this.expect(12); } return { members: a, hasUnknownMembers: o }; } flowEnumStringMembers(r, n, { enumName: i }) { if (r.length === 0) return n; if (n.length === 0) return r; if (n.length > r.length) { for (let a of r) this.flowEnumErrorStringMemberInconsistentlyInitialized(a, { enumName: i }); return n; } else { for (let a of n) this.flowEnumErrorStringMemberInconsistentlyInitialized(a, { enumName: i }); return r; } } flowEnumParseExplicitType({ enumName: r }) { if (!this.eatContextual(102)) return null; if (!tt(this.state.type)) throw this.raise(Ae.EnumInvalidExplicitTypeUnknownSupplied, this.state.startLoc, { enumName: r }); let { value: n } = this.state; return this.next(), n !== "boolean" && n !== "number" && n !== "string" && n !== "symbol" && this.raise(Ae.EnumInvalidExplicitType, this. state.startLoc, { enumName: r, invalidEnumType: n }), n; } flowEnumBody(r, n) { let i = n.name, a = n.loc.start, o = this.flowEnumParseExplicitType({ enumName: i }); this.expect(5); let { members: l, hasUnknownMembers: u } = this.flowEnumMembers({ enumName: i, 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: i }), 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__ */ s(() => (r.members = [], this.expect(8), this.finishNode(r, "EnumStringBody")), "empty"); r.explicitType = !1; let f = l.booleanMembers.length, p = l.numberMembers.length, h = l.stringMembers.length, y = l.defaultedMembers.length; if (!f && !p && !h && !y) return c(); if (!f && !p) return r.members = this.flowEnumStringMembers(l.stringMembers, l.defaultedMembers, { enumName: i }), this.expect(8), this.finishNode(r, "EnumStringBody"); if (!p && !h && f >= y) { for (let v of l.defaultedMembers) this.flowEnumErrorBooleanMemberNotInitialized(v.loc.start, { enumName: i, memberName: v.id.name }); return r.members = l.booleanMembers, this.expect(8), this.finishNode(r, "EnumBooleanBody"); } else if (!f && !h && p >= y) { for (let v of l.defaultedMembers) this.flowEnumErrorNumberMemberNotInitialized(v.loc.start, { enumName: i, memberName: v.id.name }); return r.members = l.numberMembers, this.expect(8), this.finishNode(r, "EnumNumberBody"); } else return this.raise(Ae.EnumInconsistentMemberValues, a, { enumName: i }), c(); } } } flowParseEnumDeclaration(r) { let n = this.parseIdentifier(); return r.id = n, r.body = this.flowEnumBody(this.startNode(), n), this.finishNode(r, "EnumDeclaration"); } isLookaheadToken_lt() { let r = this.nextTokenStart(); if (this.input.charCodeAt(r) === 60) { let n = this.input.charCodeAt(r + 1); return n !== 60 && n !== 61; } return !1; } maybeUnwrapTypeCastExpression(r) { return r.type === "TypeCastExpression" ? r.expression : r; } }, "flow"), AG = { __proto__: null, quot: '"', amp: "&", apos: "'", lt: "<", gt: ">", nbsp: "\xA0", iexcl: "\xA1", cent: "\xA2", pound: "\xA3", curren: "\xA4", yen: "\xA5", brvbar: "\xA6", sect: "\xA7", uml: "\xA8", copy: "\xA9", ordf: "\xAA", laquo: "\xAB", not: "\xAC", shy: "\xAD", reg: "\xAE", macr: "\xAF", deg: "\xB0", plusmn: "\xB1", sup2: "\xB2", sup3: "\xB3", acute: "\xB4", micro: "\xB5", para: "\xB6", middot: "\xB7", cedil: "\xB8", sup1: "\xB9", ordm: "\xBA", raquo: "\xBB", frac14: "\xBC", frac12: "\xBD", frac34: "\xBE", iquest: "\xBF", Agrave: "\xC0", Aacute: "\xC1", Acirc: "\xC2", Atilde: "\xC3", Auml: "\xC4", Aring: "\xC5", AElig: "\xC6", Ccedil: "\xC7", Egrave: "\xC8", Eacute: "\xC9", Ecirc: "\xCA", Euml: "\xCB", Igrave: "\xCC", Iacute: "\xCD", Icirc: "\xCE", Iuml: "\xCF", ETH: "\xD0", Ntilde: "\xD1", Ograve: "\xD2", Oacute: "\xD3", Ocirc: "\xD4", Otilde: "\xD5", Ouml: "\xD6", times: "\xD7", Oslash: "\xD8", Ugrave: "\xD9", Uacute: "\xDA", Ucirc: "\xDB", Uuml: "\xDC", Yacute: "\xDD", THORN: "\xDE", szlig: "\xDF", agrave: "\xE0", aacute: "\xE1", acirc: "\xE2", atilde: "\xE3", auml: "\xE4", aring: "\xE5", aelig: "\xE6", ccedil: "\xE7", egrave: "\xE8", eacute: "\xE9", ecirc: "\xEA", euml: "\xEB", igrave: "\xEC", iacute: "\xED", icirc: "\xEE", iuml: "\xEF", eth: "\xF0", ntilde: "\xF1", ograve: "\xF2", oacute: "\xF3", ocirc: "\xF4", otilde: "\xF5", ouml: "\xF6", divide: "\xF7", oslash: "\xF8", ugrave: "\xF9", uacute: "\xFA", ucirc: "\xFB", uuml: "\xFC", yacute: "\xFD", thorn: "\xFE", yuml: "\xFF", OElig: "\u0152", oelig: "\u0153", Scaron: "\u0160", scaron: "\u0161", Yuml: "\u0178", fnof: "\u0192", circ: "\u02C6", tilde: "\u02DC", Alpha: "\u0391", Beta: "\u0392", Gamma: "\u0393", Delta: "\u0394", Epsilon: "\u0395", Zeta: "\u0396", Eta: "\u0397", Theta: "\u0398", Iota: "\u0399", Kappa: "\u039A", Lambda: "\u039B", Mu: "\u039C", Nu: "\u039D", Xi: "\u039E", Omicron: "\u039F", Pi: "\u03A0", Rho: "\u03A1", Sigma: "\u03A3", Tau: "\u03A4", Upsilon: "\u03A5", Phi: "\u03A6", Chi: "\u03A7", Psi: "\u03A8", Omega: "\u03A9", alpha: "\u03B1", beta: "\u03B2", gamma: "\u03B3", delta: "\u03B4", epsilon: "\u03B5", zeta: "\u03B6", eta: "\u03B7", theta: "\u03B8", iota: "\u03B9", kappa: "\u03BA", lambda: "\u03BB", mu: "\u03BC", nu: "\u03BD", xi: "\u03BE", omicron: "\u03BF", pi: "\u03C0", rho: "\u03C1", sigmaf: "\u03C2", sigma: "\u03C3", tau: "\u03C4", upsilon: "\u03C5", phi: "\u03C6", chi: "\u03C7", psi: "\u03C8", omega: "\u03C9", thetasym: "\u03D1", upsih: "\u03D2", piv: "\u03D6", ensp: "\u2002", emsp: "\u2003", thinsp: "\u2009", zwnj: "\u200C", zwj: "\u200D", lrm: "\u200E", rlm: "\u200F", ndash: "\u2013", mdash: "\u2014", lsquo: "\u2018", rsquo: "\u2019", sbquo: "\u201A", ldquo: "\u201C", rdquo: "\u201D", bdquo: "\u201E", dagger: "\u2020", Dagger: "\u2021", bull: "\u2022", hellip: "\u2026", permil: "\u2030", prime: "\u2032", Prime: "\u2033", lsaquo: "\u2039", rsaquo: "\u203A", oline: "\u203E", frasl: "\u2044", euro: "\u20AC", image: "\u2111", weierp: "\u2118", real: "\u211C", trade: "\u2122", alefsym: "\u2135", larr: "\u2190", uarr: "\u2191", rarr: "\u2192", darr: "\u2193", harr: "\u2194", crarr: "\u21B5", lArr: "\u21D0", uArr: "\u21D1", rArr: "\u21D2", dArr: "\u21D3", hArr: "\u21D4", forall: "\u2200", part: "\u2202", exist: "\u2203", empty: "\u2205", nabla: "\u2207", isin: "\u2208", notin: "\u2209", ni: "\u220B", prod: "\u220F", sum: "\u2211", minus: "\u2212", lowast: "\u2217", radic: "\u221A", prop: "\u221D", infin: "\u221E", ang: "\u2220", and: "\u2227", or: "\u2228", cap: "\u2229", cup: "\u222A", int: "\u222B", there4: "\u2234", sim: "\u223C", cong: "\u2245", asymp: "\u2248", ne: "\u2260", equiv: "\u2261", le: "\u2264", ge: "\u2265", sub: "\u2282", sup: "\u2283", nsub: "\u2284", sube: "\u2286", supe: "\u2287", oplus: "\u2295", otimes: "\u2297", perp: "\u22A5", sdot: "\u22C5", lceil: "\u2308", rceil: "\u2309", lfloor: "\u230A", rfloor: "\u230B", lang: "\u2329", rang: "\u232A", loz: "\u25CA", spades: "\u2660", clubs: "\u2663", hearts: "\u2665", diams: "\u2666" }, Fs = Dn`jsx`({ AttributeIsEmpty: "JSX attributes must only be assigned a non-empty expression.", MissingClosingTagElement: /* @__PURE__ */ s(({ 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__ */ s(({ 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 rs(e) { return e ? e.type === "JSXOpeningFragment" || e.type === "JSXClosingFragment" : !1; } s(rs, "isFragment"); function Ti(e) { if (e.type === "JSXIdentifier") return e.name; if (e.type === "JSXNamespacedName") return e.namespace.name + ":" + e.name.name; if (e.type === "JSXMemberExpression") return Ti(e.object) + "." + Ti(e.property); throw new Error("Node had unexpected type: " + e.type); } s(Ti, "getQualifiedJSXName"); var CG = /* @__PURE__ */ s((e) => class extends e { static { s(this, "JSXParserMixin"); } jsxReadToken() { let r = "", n = this.state.pos; for (; ; ) { if (this.state.pos >= this.length) throw this.raise(Fs.UnterminatedJsxContent, this.state.startLoc); let i = this.input.charCodeAt(this.state.pos); switch (i) { case 60: case 123: if (this.state.pos === this.state.start) { i === 60 && this.state.canStartJSXElement ? (++this.state.pos, this.finishToken(142)) : super.getTokenFromCode(i); return; } r += this.input.slice(n, this.state.pos), this.finishToken(141, r); return; case 38: r += this.input.slice(n, this.state.pos), r += this.jsxReadEntity(), n = this.state.pos; break; case 62: case 125: default: Si(i) ? (r += this.input.slice(n, this.state.pos), r += this.jsxReadNewLine(!0), n = this.state.pos) : ++this.state.pos; } } } jsxReadNewLine(r) { let n = this.input.charCodeAt(this.state.pos), i; return ++this.state.pos, n === 13 && this.input.charCodeAt(this.state.pos) === 10 ? (++this.state.pos, i = r ? ` ` : `\r `) : i = String.fromCharCode(n), ++this.state.curLine, this.state.lineStart = this.state.pos, i; } jsxReadString(r) { let n = "", i = ++this.state.pos; for (; ; ) { if (this.state.pos >= this.length) throw this.raise(_.UnterminatedString, this.state.startLoc); let a = this.input.charCodeAt(this.state.pos); if (a === r) break; a === 38 ? (n += this.input.slice(i, this.state.pos), n += this.jsxReadEntity(), i = this.state.pos) : Si(a) ? (n += this.input.slice( i, this.state.pos), n += this.jsxReadNewLine(!1), i = this.state.pos) : ++this.state.pos; } n += this.input.slice(i, this.state.pos++), this.finishToken(133, n); } jsxReadEntity() { let r = ++this.state.pos; if (this.codePointAtPos(this.state.pos) === 35) { ++this.state.pos; let n = 10; this.codePointAtPos(this.state.pos) === 120 && (n = 16, ++this.state.pos); let i = this.readInt(n, void 0, !1, "bail"); if (i !== null && this.codePointAtPos(this.state.pos) === 59) return ++this.state.pos, String.fromCodePoint(i); } else { let n = 0, i = !1; for (; n++ < 10 && this.state.pos < this.length && !(i = this.codePointAtPos(this.state.pos) === 59); ) ++this.state.pos; if (i) { let a = this.input.slice(r, this.state.pos), o = AG[a]; if (++this.state.pos, o) return o; } } return this.state.pos = r, "&"; } jsxReadWord() { let r, n = this.state.pos; do r = this.input.charCodeAt(++this.state.pos); while (xi(r) || r === 45); this.finishToken(140, this.input.slice(n, this.state.pos)); } jsxParseIdentifier() { let r = this.startNode(); return this.match(140) ? r.name = this.state.value : Fh(this.state.type) ? r.name = ns(this.state.type) : this.unexpected(), this.next(), this.finishNode(r, "JSXIdentifier"); } jsxParseNamespacedName() { let r = this.state.startLoc, n = this.jsxParseIdentifier(); if (!this.eat(14)) return n; let i = this.startNodeAt(r); return i.namespace = n, i.name = this.jsxParseIdentifier(), this.finishNode(i, "JSXNamespacedName"); } jsxParseElementName() { let r = this.state.startLoc, n = this.jsxParseNamespacedName(); if (n.type === "JSXNamespacedName") return n; for (; this.eat(16); ) { let i = this.startNodeAt(r); i.object = n, i.property = this.jsxParseIdentifier(), n = this.finishNode(i, "JSXMemberExpression"); } return n; } jsxParseAttributeValue() { let r; switch (this.state.type) { case 5: return r = this.startNode(), this.setContext(at.brace), this.next(), r = this.jsxParseExpressionContainer(r, at.j_oTag), r.expression. type === "JSXEmptyExpression" && this.raise(Fs.AttributeIsEmpty, r), r; case 142: case 133: return this.parseExprAtom(); default: throw this.raise(Fs.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(at.j_expr), this.state.canStartJSXElement = !0, this.expect( 8), this.finishNode(r, "JSXSpreadChild"); } jsxParseExpressionContainer(r, n) { if (this.match(8)) r.expression = this.jsxParseEmptyExpression(); else { let i = this.parseExpression(); r.expression = i; } return this.setContext(n), this.state.canStartJSXElement = !0, this.expect(8), this.finishNode(r, "JSXExpressionContainer"); } jsxParseAttribute() { let r = this.startNode(); return this.match(5) ? (this.setContext(at.brace), this.next(), this.expect(21), r.argument = this.parseMaybeAssignAllowIn(), this.setContext( at.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 n = this.startNodeAt(r); return this.eat(143) ? this.finishNode(n, "JSXOpeningFragment") : (n.name = this.jsxParseElementName(), this.jsxParseOpeningElementAfterName( n)); } jsxParseOpeningElementAfterName(r) { let n = []; for (; !this.match(56) && !this.match(143); ) n.push(this.jsxParseAttribute()); return r.attributes = n, r.selfClosing = this.eat(56), this.expect(143), this.finishNode(r, "JSXOpeningElement"); } jsxParseClosingElementAt(r) { let n = this.startNodeAt(r); return this.eat(143) ? this.finishNode(n, "JSXClosingFragment") : (n.name = this.jsxParseElementName(), this.expect(143), this.finishNode( n, "JSXClosingElement")); } jsxParseElementAt(r) { let n = this.startNodeAt(r), i = [], a = this.jsxParseOpeningElementAt(r), o = null; if (!a.selfClosing) { e: for (; ; ) switch (this.state.type) { case 142: if (r = this.state.startLoc, this.next(), this.eat(56)) { o = this.jsxParseClosingElementAt(r); break e; } i.push(this.jsxParseElementAt(r)); break; case 141: i.push(this.parseLiteral(this.state.value, "JSXText")); break; case 5: { let l = this.startNode(); this.setContext(at.brace), this.next(), this.match(21) ? i.push(this.jsxParseSpreadChild(l)) : i.push(this.jsxParseExpressionContainer( l, at.j_expr)); break; } default: this.unexpected(); } rs(a) && !rs(o) && o !== null ? this.raise(Fs.MissingClosingTagFragment, o) : !rs(a) && rs(o) ? this.raise(Fs.MissingClosingTagElement, o, { openingTagName: Ti(a.name) }) : !rs(a) && !rs(o) && Ti(o.name) !== Ti(a.name) && this.raise(Fs.MissingClosingTagElement, o, { openingTagName: Ti(a.name) }); } if (rs(a) ? (n.openingFragment = a, n.closingFragment = o) : (n.openingElement = a, n.closingElement = o), n.children = i, this.match( 47)) throw this.raise(Fs.UnwrappedAdjacentJSXElements, this.state.startLoc); return rs(a) ? this.finishNode(n, "JSXFragment") : this.finishNode(n, "JSXElement"); } jsxParseElement() { let r = this.state.startLoc; return this.next(), this.jsxParseElementAt(r); } setContext(r) { let { context: n } = this.state; n[n.length - 1] = r; } parseExprAtom(r) { return this.match(142) ? this.jsxParseElement() : this.match(47) && this.input.charCodeAt(this.state.pos) !== 33 ? (this.replaceToken( 142), this.jsxParseElement()) : super.parseExprAtom(r); } skipSpace() { this.curContext().preserveSpace || super.skipSpace(); } getTokenFromCode(r) { let n = this.curContext(); if (n === at.j_expr) { this.jsxReadToken(); return; } if (n === at.j_oTag || n === at.j_cTag) { if (wn(r)) { this.jsxReadWord(); return; } if (r === 62) { ++this.state.pos, this.finishToken(143); return; } if ((r === 34 || r === 39) && n === at.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(142); return; } super.getTokenFromCode(r); } updateContext(r) { let { context: n, type: i } = this.state; if (i === 56 && r === 142) n.splice(-2, 2, at.j_cTag), this.state.canStartJSXElement = !1; else if (i === 142) n.push(at.j_oTag); else if (i === 143) { let a = n[n.length - 1]; a === at.j_oTag && r === 56 || a === at.j_cTag ? (n.pop(), this.state.canStartJSXElement = n[n.length - 1] === at.j_expr) : (this.setContext( at.j_expr), this.state.canStartJSXElement = !0); } else this.state.canStartJSXElement = VK(i); } }, "jsx"), Ph = class extends Ya { static { s(this, "TypeScriptScope"); } constructor(...t) { super(...t), this.tsNames = /* @__PURE__ */ new Map(); } }, Ah = class extends za { static { s(this, "TypeScriptScopeHandler"); } constructor(...t) { super(...t), this.importsStack = []; } createScope(t) { return this.importsStack.push(/* @__PURE__ */ new Set()), new Ph(t); } enter(t) { t === 256 && this.importsStack.push(/* @__PURE__ */ new Set()), super.enter(t); } exit() { let t = super.exit(); return t === 256 && this.importsStack.pop(), t; } hasImport(t, r) { let n = this.importsStack.length; if (this.importsStack[n - 1].has(t)) return !0; if (!r && n > 1) { for (let i = 0; i < n - 1; i++) if (this.importsStack[i].has(t)) return !0; } return !1; } declareName(t, r, n) { if (r & 4096) { this.hasImport(t, !0) && this.parser.raise(_.VarRedeclaration, n, { identifierName: t }), this.importsStack[this.importsStack.length - 1].add(t); return; } let i = this.currentScope(), a = i.tsNames.get(t) || 0; if (r & 1024) { this.maybeExportDefined(i, t), i.tsNames.set(t, a | 16); return; } super.declareName(t, r, n), r & 2 && (r & 1 || (this.checkRedeclarationInScope(i, t, r, n), this.maybeExportDefined(i, t)), a = a | 1), r & 256 && (a = a | 2), r & 512 && (a = a | 4), r & 128 && (a = a | 8), a && i.tsNames.set(t, a); } isRedeclaredInScope(t, r, n) { let i = t.tsNames.get(r); if ((i & 2) > 0) { if (n & 256) { let a = !!(n & 512), o = (i & 4) > 0; return a !== o; } return !0; } return n & 128 && (i & 8) > 0 ? t.names.get(r) & 2 ? !!(n & 1) : !1 : n & 2 && (i & 1) > 0 ? !0 : super.isRedeclaredInScope(t, r, n); } checkLocalExport(t) { let { name: r } = t; if (this.hasImport(r)) return; let n = this.scopeStack.length; for (let i = n - 1; i >= 0; i--) { let o = this.scopeStack[i].tsNames.get(r); if ((o & 1) > 0 || (o & 16) > 0) return; } super.checkLocalExport(t); } }, hT = /* @__PURE__ */ s((e) => e.type === "ParenthesizedExpression" ? hT(e.expression) : e, "unwrapParenthesizedExpression"), Ch = class extends Sh { static { s(this, "LValParser"); } toAssignable(t, r = !1) { var n, i; let a; switch ((t.type === "ParenthesizedExpression" || (n = t.extra) != null && n.parenthesized) && (a = hT(t), r ? a.type === "Identifier" ? this.expressionScope.recordArrowParameterBindingError(_.InvalidParenthesizedAssignment, t) : a.type !== "MemberExpression" && !this.isOptionalMemberExpression( a) && this.raise(_.InvalidParenthesizedAssignment, t) : this.raise(_.InvalidParenthesizedAssignment, t)), t.type) { case "Identifier": case "ObjectPattern": case "ArrayPattern": case "AssignmentPattern": case "RestElement": break; case "ObjectExpression": t.type = "ObjectPattern"; for (let l = 0, u = t.properties.length, c = u - 1; l < u; l++) { var o; let f = t.properties[l], p = l === c; this.toAssignableObjectExpressionProp(f, p, r), p && f.type === "RestElement" && (o = t.extra) != null && o.trailingCommaLoc && this. raise(_.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": t.type = "ArrayPattern", this.toAssignableList(t.elements, (i = t.extra) == null ? void 0 : i.trailingCommaLoc, r); break; case "AssignmentExpression": t.operator !== "=" && this.raise(_.MissingEqInAssignment, t.left.loc.end), t.type = "AssignmentPattern", delete t.operator, this.toAssignable( t.left, r); break; case "ParenthesizedExpression": this.toAssignable(a, r); break; } } toAssignableObjectExpressionProp(t, r, n) { if (t.type === "ObjectMethod") this.raise(t.kind === "get" || t.kind === "set" ? _.PatternHasAccessor : _.PatternHasMethod, t.key); else if (t.type === "SpreadElement") { t.type = "RestElement"; let i = t.argument; this.checkToRestConversion(i, !1), this.toAssignable(i, n), r || this.raise(_.RestTrailingComma, t); } else this.toAssignable(t, n); } toAssignableList(t, r, n) { let i = t.length - 1; for (let a = 0; a <= i; a++) { let o = t[a]; if (o) { if (o.type === "SpreadElement") { o.type = "RestElement"; let l = o.argument; this.checkToRestConversion(l, !0), this.toAssignable(l, n); } else this.toAssignable(o, n); o.type === "RestElement" && (a < i ? this.raise(_.RestTrailingComma, o) : r && this.raise(_.RestTrailingComma, r)); } } } isAssignable(t, r) { switch (t.type) { case "Identifier": case "ObjectPattern": case "ArrayPattern": case "AssignmentPattern": case "RestElement": return !0; case "ObjectExpression": { let n = t.properties.length - 1; return t.properties.every((i, a) => i.type !== "ObjectMethod" && (a === n || i.type !== "SpreadElement") && this.isAssignable(i)); } case "ObjectProperty": return this.isAssignable(t.value); case "SpreadElement": return this.isAssignable(t.argument); case "ArrayExpression": return t.elements.every((n) => n === null || this.isAssignable(n)); case "AssignmentExpression": return t.operator === "="; case "ParenthesizedExpression": return this.isAssignable(t.expression); case "MemberExpression": case "OptionalMemberExpression": return !r; default: return !1; } } toReferencedList(t, r) { return t; } toReferencedListDeep(t, r) { this.toReferencedList(t, r); for (let n of t) n?.type === "ArrayExpression" && this.toReferencedListDeep(n.elements); } parseSpread(t) { let r = this.startNode(); return this.next(), r.argument = this.parseMaybeAssignAllowIn(t, void 0), this.finishNode(r, "SpreadElement"); } parseRestBinding() { let t = this.startNode(); return this.next(), t.argument = this.parseBindingAtom(), this.finishNode(t, "RestElement"); } parseBindingAtom() { switch (this.state.type) { case 0: { let t = this.startNode(); return this.next(), t.elements = this.parseBindingList(3, 93, 1), this.finishNode(t, "ArrayPattern"); } case 5: return this.parseObjectLike(8, !0); } return this.parseIdentifier(); } parseBindingList(t, r, n) { let i = n & 1, a = [], o = !0; for (; !this.eat(t); ) if (o ? o = !1 : this.expect(12), i && this.match(12)) a.push(null); else { if (this.eat(t)) break; if (this.match(21)) { if (a.push(this.parseAssignableListItemTypes(this.parseRestBinding(), n)), !this.checkCommaAfterRest(r)) { this.expect(t); break; } } else { let l = []; for (this.match(26) && this.hasPlugin("decorators") && this.raise(_.UnsupportedParameterDecorator, this.state.startLoc); this.match( 26); ) l.push(this.parseDecorator()); a.push(this.parseAssignableListItem(n, l)); } } return a; } parseBindingRestProperty(t) { return this.next(), t.argument = this.parseIdentifier(), this.checkCommaAfterRest(125), this.finishNode(t, "RestElement"); } parseBindingProperty() { let { type: t, startLoc: r } = this.state; if (t === 21) return this.parseBindingRestProperty(this.startNode()); let n = this.startNode(); return t === 138 ? (this.expectPlugin("destructuringPrivate", r), this.classScope.usePrivateName(this.state.value, r), n.key = this.parsePrivateName()) : this.parsePropertyName(n), n.method = !1, this.parseObjPropValue(n, r, !1, !1, !0, !1); } parseAssignableListItem(t, r) { let n = this.parseMaybeDefault(); this.parseAssignableListItemTypes(n, t); let i = this.parseMaybeDefault(n.loc.start, n); return r.length && (n.decorators = r), i; } parseAssignableListItemTypes(t, r) { return t; } parseMaybeDefault(t, r) { var n, i; if ((n = t) != null || (t = this.state.startLoc), r = (i = r) != null ? i : this.parseBindingAtom(), !this.eat(29)) return r; let a = this.startNodeAt(t); return a.left = r, a.right = this.parseMaybeAssignAllowIn(), this.finishNode(a, "AssignmentPattern"); } isValidLVal(t, r, n) { switch (t) { case "AssignmentPattern": return "left"; case "RestElement": return "argument"; case "ObjectProperty": return "value"; case "ParenthesizedExpression": return "expression"; case "ArrayPattern": return "elements"; case "ObjectPattern": return "properties"; } return !1; } isOptionalMemberExpression(t) { return t.type === "OptionalMemberExpression"; } checkLVal(t, r, n = 64, i = !1, a = !1, o = !1) { var l; let u = t.type; if (this.isObjectMethod(t)) return; let c = this.isOptionalMemberExpression(t); if (c || u === "MemberExpression") { c && (this.expectPlugin("optionalChainingAssign", t.loc.start), r.type !== "AssignmentExpression" && this.raise(_.InvalidLhsOptionalChaining, t, { ancestor: r })), n !== 64 && this.raise(_.InvalidPropertyBindingPattern, t); return; } if (u === "Identifier") { this.checkIdentifier(t, n, a); let { name: d } = t; i && (i.has(d) ? this.raise(_.ParamDupe, t) : i.add(d)); return; } let f = this.isValidLVal(u, !(o || (l = t.extra) != null && l.parenthesized) && r.type === "AssignmentExpression", n); if (f === !0) return; if (f === !1) { let d = n === 64 ? _.InvalidLhs : _.InvalidLhsBinding; this.raise(d, t, { ancestor: r }); return; } let p, h; typeof f == "string" ? (p = f, h = u === "ParenthesizedExpression") : [p, h] = f; let y = u === "ArrayPattern" || u === "ObjectPattern" ? { type: u } : r, v = t[p]; if (Array.isArray(v)) for (let d of v) d && this.checkLVal(d, y, n, i, a, h); else v && this.checkLVal(v, y, n, i, a, h); } checkIdentifier(t, r, n = !1) { this.state.strict && (n ? uT(t.name, this.inModule) : lT(t.name)) && (r === 64 ? this.raise(_.StrictEvalArguments, t, { referenceName: t.name }) : this.raise(_.StrictEvalArgumentsBinding, t, { bindingName: t.name })), r & 8192 && t.name === "let" && this.raise(_.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(_.InvalidRestAssignmentPattern, t); } } checkCommaAfterRest(t) { return this.match(12) ? (this.raise(this.lookaheadCharCode() === t ? _.RestTrailingComma : _.ElementAfterRest, this.state.startLoc), !0) : !1; } }; function wG(e) { if (e == null) throw new Error(`Unexpected ${e} value.`); return e; } s(wG, "nonNull"); function Xv(e) { if (!e) throw new Error("Assert fail"); } s(Xv, "assert"); var me = Dn`typescript`({ AbstractMethodHasImplementation: /* @__PURE__ */ s(({ methodName: e }) => `Method '${e}' cannot have an implementation because it is marked abstract.`, "AbstractMethodHasImplementation"), AbstractPropertyHasInitializer: /* @__PURE__ */ s(({ propertyName: e }) => `Property '${e}' cannot have an initializer because it is marked abstract.`, "AbstractPropertyHasInitializer"), AccesorCannotDeclareThisParameter: "'get' and 'set' accessors cannot declare 'this' parameters.", AccesorCannotHaveTypeParameters: "An accessor cannot have type parameters.", AccessorCannotBeOptional: "An 'accessor' property cannot be declared optional.", ClassMethodHasDeclare: "Class methods cannot have the 'declare' modifier.", ClassMethodHasReadonly: "Class methods cannot have the 'readonly' modifier.", ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference: "A 'const' initializer in an ambient context must be a string or nu\ meric literal or literal enum reference.", ConstructorHasTypeParameters: "Type parameters cannot appear on a constructor declaration.", DeclareAccessor: /* @__PURE__ */ s(({ 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__ */ s(({ modifier: e }) => "Accessibility modifier already seen.", "DuplicateAccessibilityModifier"), DuplicateModifier: /* @__PURE__ */ s(({ modifier: e }) => `Duplicate modifier: '${e}'.`, "DuplicateModifier"), EmptyHeritageClauseType: /* @__PURE__ */ s(({ 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__ */ s(({ modifiers: e }) => `'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`, "IncompatibleModifiers"), IndexSignatureHasAbstract: "Index signatures cannot have the 'abstract' modifier.", IndexSignatureHasAccessibility: /* @__PURE__ */ s(({ 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.", InvalidModifierOnTypeMember: /* @__PURE__ */ s(({ modifier: e }) => `'${e}' modifier cannot appear on a type member.`, "InvalidModifierOnTypeMember"), InvalidModifierOnTypeParameter: /* @__PURE__ */ s(({ modifier: e }) => `'${e}' modifier cannot appear on a type parameter.`, "InvalidModifierOnTypeParameter"), InvalidModifierOnTypeParameterPositions: /* @__PURE__ */ s(({ modifier: e }) => `'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`, "InvalidModifierOnTypeParameterPositio\ ns"), InvalidModifiersOrder: /* @__PURE__ */ s(({ 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.", NonClassMethodPropertyHasAbstractModifer: "'abstract' modifier can only appear on a class, method, or property declaration.", OptionalTypeBeforeRequired: "A required element cannot follow an optional element.", OverrideNotInSubClass: "This member cannot have an 'override' modifier because its containing class does not extend another class.", PatternIsOptional: "A binding pattern parameter cannot be optional in an implementation signature.", PrivateElementHasAbstract: "Private elements cannot have the 'abstract' modifier.", PrivateElementHasAccessibility: /* @__PURE__ */ s(({ 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.", SetAccesorCannotHaveOptionalParameter: "A 'set' accessor cannot have an optional parameter.", SetAccesorCannotHaveRestParameter: "A 'set' accessor cannot have rest parameter.", SetAccesorCannotHaveReturnType: "A 'set' accessor cannot have a return type annotation.", SingleTypeParameterWithoutTrailingComma: /* @__PURE__ */ s(({ 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__ */ s(({ type: e }) => `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`, "UnsupportedSignatureParameterKind") }); function DG(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; } } s(DG, "keywordTypeFromName"); function Qv(e) { return e === "private" || e === "public" || e === "protected"; } s(Qv, "tsIsAccessModifier"); function IG(e) { return e === "in" || e === "out"; } s(IG, "tsIsVarianceAnnotations"); var _G = /* @__PURE__ */ s((e) => class extends e { static { s(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: me.InvalidModifierOnTypeParameter }), this.tsParseConstModifier = this.tsParseModifiers.bind(this, { allowedModifiers: ["const"], disallowedModifiers: ["in", "out"], errorTemplate: me.InvalidModifierOnTypeParameterPositions }), this.tsParseInOutConstModifiers = this.tsParseModifiers.bind(this, { allowedModifiers: ["in", "out", "const"], disallowedModifiers: ["public", "private", "protected", "readonly", "declare", "abstract", "override"], errorTemplate: me.InvalidModifierOnTypeParameter }); } getScopeHandler() { return Ah; } tsIsIdentifier() { return tt(this.state.type); } tsTokenCanFollowModifier() { return (this.match(0) || this.match(5) || this.match(55) || this.match(21) || this.match(138) || this.isLiteralPropertyName()) && !this. hasPrecedingLineBreak(); } tsNextTokenCanFollowModifier() { return this.next(), this.tsTokenCanFollowModifier(); } tsParseModifier(r, n) { if (!tt(this.state.type) && this.state.type !== 58 && this.state.type !== 75) return; let i = this.state.value; if (r.includes(i)) { if (n && this.tsIsStartOfStaticBlocks()) return; if (this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this))) return i; } } tsParseModifiers({ allowedModifiers: r, disallowedModifiers: n, stopOnStartOfClassStaticBlock: i, errorTemplate: a = me.InvalidModifierOnTypeMember }, o) { let l = /* @__PURE__ */ s((c, f, p, h) => { f === p && o[h] && this.raise(me.InvalidModifiersOrder, c, { orderedModifiers: [p, h] }); }, "enforceOrder"), u = /* @__PURE__ */ s((c, f, p, h) => { (o[p] && f === h || o[h] && f === p) && this.raise(me.IncompatibleModifiers, c, { modifiers: [p, h] }); }, "incompatible"); for (; ; ) { let { startLoc: c } = this.state, f = this.tsParseModifier(r.concat(n ?? []), i); if (!f) break; Qv(f) ? o.accessibility ? this.raise(me.DuplicateAccessibilityModifier, c, { modifier: f }) : (l(c, f, f, "override"), l(c, f, f, "static"), l(c, f, f, "readonly"), o.accessibility = f) : IG(f) ? (o[f] && this.raise(me.DuplicateModifier, c, { modifier: f }), o[f] = !0, l(c, f, "in", "out")) : (hasOwnProperty.call(o, f) ? this.raise(me.DuplicateModifier, c, { modifier: f }) : (l(c, f, "static", "readonly"), l(c, f, "static", "override"), l(c, f, "override", "readonly"), l(c, f, "abstract", "override"), u(c, f, "declare", "override"), u(c, f, "static", "abstract")), o[f] = !0), n != null && n.includes(f) && this.raise(a, c, { modifier: f }); } } tsIsListTerminator(r) { switch (r) { case "EnumMembers": case "TypeMembers": return this.match(8); case "HeritageClauseElement": return this.match(5); case "TupleElementTypes": return this.match(3); case "TypeParametersOrArguments": return this.match(48); } } tsParseList(r, n) { let i = []; for (; !this.tsIsListTerminator(r); ) i.push(n()); return i; } tsParseDelimitedList(r, n, i) { return wG(this.tsParseDelimitedListWorker(r, n, !0, i)); } tsParseDelimitedListWorker(r, n, i, a) { let o = [], l = -1; for (; !this.tsIsListTerminator(r); ) { l = -1; let u = n(); if (u == null) return; if (o.push(u), this.eat(12)) { l = this.state.lastTokStartLoc.index; continue; } if (this.tsIsListTerminator(r)) break; i && this.expect(12); return; } return a && (a.value = l), o; } tsParseBracketedList(r, n, i, a, o) { a || (i ? this.expect(0) : this.expect(47)); let l = this.tsParseDelimitedList(r, n, o); return i ? this.expect(3) : this.expect(48), l; } tsParseImportType() { let r = this.startNode(); return this.expect(83), this.expect(10), this.match(133) || this.raise(me.UnsupportedImportTypeArgument, this.state.startLoc), r.argument = super.parseExprAtom(), (this.hasPlugin("importAttributes") || this.hasPlugin("importAssertions")) && (r.options = null), this.eat(12) && (this.expectImportAttributesPlugin(), this.match(11) || (r.options = super.parseMaybeAssignAllowIn(), this.eat(12))), this.expect(11), this.eat(16) && (r.qualifier = this.tsParseEntityName()), this.match(47) && (r.typeParameters = this.tsParseTypeArguments()), this.finishNode( r, "TSImportType"); } tsParseEntityName(r = !0) { let n = this.parseIdentifier(r); for (; this.eat(16); ) { let i = this.startNodeAtNode(n); i.left = n, i.right = this.parseIdentifier(r), n = this.finishNode(i, "TSQualifiedName"); } return n; } tsParseTypeReference() { let r = this.startNode(); return r.typeName = this.tsParseEntityName(), !this.hasPrecedingLineBreak() && this.match(47) && (r.typeParameters = this.tsParseTypeArguments()), this.finishNode(r, "TSTypeReference"); } tsParseThisTypePredicate(r) { this.next(); let n = this.startNodeAtNode(r); return n.parameterName = r, n.typeAnnotation = this.tsParseTypeAnnotation(!1), n.asserts = !1, this.finishNode(n, "TSTypePredicate"); } tsParseThisTypeNode() { let r = this.startNode(); return this.next(), this.finishNode(r, "TSThisType"); } tsParseTypeQuery() { let r = this.startNode(); return this.expect(87), this.match(83) ? r.exprName = this.tsParseImportType() : r.exprName = this.tsParseEntityName(), !this.hasPrecedingLineBreak() && this.match(47) && (r.typeParameters = this.tsParseTypeArguments()), this.finishNode(r, "TSTypeQuery"); } tsParseTypeParameter(r) { let n = this.startNode(); return r(n), n.name = this.tsParseTypeParameterName(), n.constraint = this.tsEatThenParseType(81), n.default = this.tsEatThenParseType( 29), this.finishNode(n, "TSTypeParameter"); } tsTryParseTypeParameters(r) { if (this.match(47)) return this.tsParseTypeParameters(r); } tsParseTypeParameters(r) { let n = this.startNode(); this.match(47) || this.match(142) ? this.next() : this.unexpected(); let i = { value: -1 }; return n.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, r), !1, !0, i), n.params. length === 0 && this.raise(me.EmptyTypeParameters, n), i.value !== -1 && this.addExtra(n, "trailingComma", i.value), this.finishNode(n, "TSTypeParameterDeclaration"); } tsFillSignature(r, n) { let i = r === 19, a = "parameters", o = "typeAnnotation"; n.typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier), this.expect(10), n[a] = this.tsParseBindingListForSignature(), i ? n[o] = this.tsParseTypeOrTypePredicateAnnotation(r) : this.match(r) && (n[o] = this.tsParseTypeOrTypePredicateAnnotation(r)); } tsParseBindingListForSignature() { let r = super.parseBindingList(11, 41, 2); for (let n of r) { let { type: i } = n; (i === "AssignmentPattern" || i === "TSParameterProperty") && this.raise(me.UnsupportedSignatureParameterKind, n, { type: i }); } return r; } tsParseTypeMemberSemicolon() { !this.eat(12) && !this.isLineTerminator() && this.expect(13); } tsParseSignatureMember(r, n) { return this.tsFillSignature(14, n), this.tsParseTypeMemberSemicolon(), this.finishNode(n, r); } tsIsUnambiguouslyIndexSignature() { return this.next(), tt(this.state.type) ? (this.next(), this.match(14)) : !1; } tsTryParseIndexSignature(r) { if (!(this.match(0) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))) return; this.expect(0); let n = this.parseIdentifier(); n.typeAnnotation = this.tsParseTypeAnnotation(), this.resetEndLocation(n), this.expect(3), r.parameters = [n]; let i = this.tsTryParseTypeAnnotation(); return i && (r.typeAnnotation = i), this.tsParseTypeMemberSemicolon(), this.finishNode(r, "TSIndexSignature"); } tsParsePropertyOrMethodSignature(r, n) { this.eat(17) && (r.optional = !0); let i = r; if (this.match(10) || this.match(47)) { n && this.raise(me.ReadonlyForMethodSignature, r); let a = i; a.kind && this.match(47) && this.raise(me.AccesorCannotHaveTypeParameters, this.state.curPosition()), this.tsFillSignature(14, a), this. tsParseTypeMemberSemicolon(); let o = "parameters", l = "typeAnnotation"; if (a.kind === "get") a[o].length > 0 && (this.raise(_.BadGetterArity, this.state.curPosition()), this.isThisParam(a[o][0]) && this.raise(me.AccesorCannotDeclareThisParameter, this.state.curPosition())); else if (a.kind === "set") { if (a[o].length !== 1) this.raise(_.BadSetterArity, this.state.curPosition()); else { let u = a[o][0]; this.isThisParam(u) && this.raise(me.AccesorCannotDeclareThisParameter, this.state.curPosition()), u.type === "Identifier" && u. optional && this.raise(me.SetAccesorCannotHaveOptionalParameter, this.state.curPosition()), u.type === "RestElement" && this.raise( me.SetAccesorCannotHaveRestParameter, this.state.curPosition()); } a[l] && this.raise(me.SetAccesorCannotHaveReturnType, a[l]); } else a.kind = "method"; return this.finishNode(a, "TSMethodSignature"); } else { let a = i; n && (a.readonly = !0); let o = this.tsTryParseTypeAnnotation(); return o && (a.typeAnnotation = o), this.tsParseTypeMemberSemicolon(), this.finishNode(a, "TSPropertySignature"); } } tsParseTypeMember() { let r = this.startNode(); if (this.match(10) || this.match(47)) return this.tsParseSignatureMember("TSCallSignatureDeclaration", r); if (this.match(77)) { let i = this.startNode(); return this.next(), this.match(10) || this.match(47) ? this.tsParseSignatureMember("TSConstructSignatureDeclaration", r) : (r.key = this. createIdentifier(i, "new"), this.tsParsePropertyOrMethodSignature(r, !1)); } this.tsParseModifiers({ allowedModifiers: ["readonly"], disallowedModifiers: ["declare", "abstract", "private", "protected", "public", "static", "override"] }, r); let n = this.tsTryParseIndexSignature(r); return n || (super.parsePropertyName(r), !r.computed && r.key.type === "Identifier" && (r.key.name === "get" || r.key.name === "set") && this.tsTokenCanFollowModifier() && (r.kind = r.key.name, super.parsePropertyName(r)), this.tsParsePropertyOrMethodSignature(r, !!r.readonly)); } tsParseTypeLiteral() { let r = this.startNode(); return r.members = this.tsParseObjectTypeMembers(), this.finishNode(r, "TSTypeLiteral"); } tsParseObjectTypeMembers() { this.expect(5); let r = this.tsParseList("TypeMembers", this.tsParseTypeMember.bind(this)); return this.expect(8), r; } tsIsStartOfMappedType() { return this.next(), this.eat(53) ? this.isContextual(122) : (this.isContextual(122) && this.next(), !this.match(0) || (this.next(), !this. tsIsIdentifier()) ? !1 : (this.next(), this.match(58))); } tsParseMappedTypeParameter() { let r = this.startNode(); return r.name = this.tsParseTypeParameterName(), r.constraint = this.tsExpectThenParseType(58), this.finishNode(r, "TSTypeParameter"); } tsParseMappedType() { let r = this.startNode(); return this.expect(5), this.match(53) ? (r.readonly = this.state.value, this.next(), this.expectContextual(122)) : this.eatContextual( 122) && (r.readonly = !0), this.expect(0), r.typeParameter = this.tsParseMappedTypeParameter(), r.nameType = this.eatContextual(93) ? this. tsParseType() : null, this.expect(3), this.match(53) ? (r.optional = this.state.value, this.next(), this.expect(17)) : this.eat(17) && (r.optional = !0), r.typeAnnotation = this.tsTryParseType(), this.semicolon(), this.expect(8), this.finishNode(r, "TSMappedType"); } tsParseTupleType() { let r = this.startNode(); r.elementTypes = this.tsParseBracketedList("TupleElementTypes", this.tsParseTupleElementType.bind(this), !0, !1); let n = !1; return r.elementTypes.forEach((i) => { let { type: a } = i; n && a !== "TSRestType" && a !== "TSOptionalType" && !(a === "TSNamedTupleMember" && i.optional) && this.raise(me.OptionalTypeBeforeRequired, i), n || (n = a === "TSNamedTupleMember" && i.optional || a === "TSOptionalType"); }), this.finishNode(r, "TSTupleType"); } tsParseTupleElementType() { let { startLoc: r } = this.state, n = this.eat(21), i, a, o, l, c = Wr(this.state.type) ? this.lookaheadCharCode() : null; if (c === 58) i = !0, o = !1, a = this.parseIdentifier(!0), this.expect(14), l = this.tsParseType(); else if (c === 63) { o = !0; let f = this.state.startLoc, p = this.state.value, h = this.tsParseNonArrayType(); this.lookaheadCharCode() === 58 ? (i = !0, a = this.createIdentifier(this.startNodeAt(f), p), this.expect(17), this.expect(14), l = this. tsParseType()) : (i = !1, l = h, this.expect(17)); } else l = this.tsParseType(), o = this.eat(17), i = this.eat(14); if (i) { let f; a ? (f = this.startNodeAtNode(a), f.optional = o, f.label = a, f.elementType = l, this.eat(17) && (f.optional = !0, this.raise(me.TupleOptionalAfterType, this.state.lastTokStartLoc))) : (f = this.startNodeAtNode(l), f.optional = o, this.raise(me.InvalidTupleMemberLabel, l), f.label = l, f.elementType = this.tsParseType()), l = this.finishNode(f, "TSNamedTupleMember"); } else if (o) { let f = this.startNodeAtNode(l); f.typeAnnotation = l, l = this.finishNode(f, "TSOptionalType"); } if (n) { let f = this.startNodeAt(r); f.typeAnnotation = l, l = this.finishNode(f, "TSRestType"); } return l; } tsParseParenthesizedType() { let r = this.startNode(); return this.expect(10), r.typeAnnotation = this.tsParseType(), this.expect(11), this.finishNode(r, "TSParenthesizedType"); } tsParseFunctionOrConstructorType(r, n) { let i = this.startNode(); return r === "TSConstructorType" && (i.abstract = !!n, n && this.next(), this.next()), this.tsInAllowConditionalTypesContext(() => this. tsFillSignature(19, i)), this.finishNode(i, r); } tsParseLiteralTypeNode() { let r = this.startNode(); switch (this.state.type) { case 134: case 135: case 133: case 85: case 86: r.literal = super.parseExprAtom(); break; default: this.unexpected(); } return this.finishNode(r, "TSLiteralType"); } tsParseTemplateLiteralType() { let r = this.startNode(); return r.literal = super.parseTemplate(!1), this.finishNode(r, "TSLiteralType"); } parseTemplateSubstitution() { return this.state.inType ? this.tsParseType() : super.parseTemplateSubstitution(); } tsParseThisTypeOrThisTypePredicate() { let r = this.tsParseThisTypeNode(); return this.isContextual(116) && !this.hasPrecedingLineBreak() ? this.tsParseThisTypePredicate(r) : r; } tsParseNonArrayType() { switch (this.state.type) { case 133: case 134: case 135: case 85: case 86: return this.tsParseLiteralTypeNode(); case 53: if (this.state.value === "-") { let r = this.startNode(), n = this.lookahead(); return n.type !== 134 && n.type !== 135 && this.unexpected(), r.literal = this.parseMaybeUnary(), this.finishNode(r, "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 (tt(r) || r === 88 || r === 84) { let n = r === 88 ? "TSVoidKeyword" : r === 84 ? "TSNullKeyword" : DG(this.state.value); if (n !== void 0 && this.lookaheadCharCode() !== 46) { let i = this.startNode(); return this.next(), this.finishNode(i, n); } return this.tsParseTypeReference(); } } } this.unexpected(); } tsParseArrayTypeOrHigher() { let r = this.tsParseNonArrayType(); for (; !this.hasPrecedingLineBreak() && this.eat(0); ) if (this.match(3)) { let n = this.startNodeAtNode(r); n.elementType = r, this.expect(3), r = this.finishNode(n, "TSArrayType"); } else { let n = this.startNodeAtNode(r); n.objectType = r, n.indexType = this.tsParseType(), this.expect(3), r = this.finishNode(n, "TSIndexedAccessType"); } return r; } tsParseTypeOperator() { let r = this.startNode(), n = this.state.value; return this.next(), r.operator = n, r.typeAnnotation = this.tsParseTypeOperatorOrHigher(), n === "readonly" && this.tsCheckTypeAnnotationForReadOnly( r), this.finishNode(r, "TSTypeOperator"); } tsCheckTypeAnnotationForReadOnly(r) { switch (r.typeAnnotation.type) { case "TSTupleType": case "TSArrayType": return; default: this.raise(me.UnexpectedReadonly, r); } } tsParseInferType() { let r = this.startNode(); this.expectContextual(115); let n = this.startNode(); return n.name = this.tsParseTypeParameterName(), n.constraint = this.tsTryParse(() => this.tsParseConstraintForInferType()), r.typeParameter = this.finishNode(n, "TSTypeParameter"), this.finishNode(r, "TSInferType"); } tsParseConstraintForInferType() { if (this.eat(81)) { let r = this.tsInDisallowConditionalTypesContext(() => this.tsParseType()); if (this.state.inDisallowConditionalTypesContext || !this.match(17)) return r; } } tsParseTypeOperatorOrHigher() { return YK(this.state.type) && !this.state.containsEsc ? this.tsParseTypeOperator() : this.isContextual(115) ? this.tsParseInferType() : this.tsInAllowConditionalTypesContext(() => this.tsParseArrayTypeOrHigher()); } tsParseUnionOrIntersectionType(r, n, i) { let a = this.startNode(), o = this.eat(i), l = []; do l.push(n()); while (this.eat(i)); 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 (tt(this.state.type) || this.match(78)) return this.next(), !0; if (this.match(5)) { let { errors: r } = this.state, n = r.length; try { return this.parseObjectLike(8, !0), r.length === n; } catch { return !1; } } if (this.match(0)) { this.next(); let { errors: r } = this.state, n = r.length; try { return super.parseBindingList(3, 93, 1), r.length === n; } catch { return !1; } } return !1; } tsIsUnambiguouslyStartOfFunctionType() { return this.next(), !!(this.match(11) || this.match(21) || this.tsSkipParameterStart() && (this.match(14) || this.match(12) || this.match( 17) || this.match(29) || this.match(11) && (this.next(), this.match(19)))); } tsParseTypeOrTypePredicateAnnotation(r) { return this.tsInType(() => { let n = this.startNode(); this.expect(r); let i = this.startNode(), a = !!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this)); if (a && this.match(78)) { let u = this.tsParseThisTypeOrThisTypePredicate(); return u.type === "TSThisType" ? (i.parameterName = u, i.asserts = !0, i.typeAnnotation = null, u = this.finishNode(i, "TSTypePred\ icate")) : (this.resetStartLocationFromNode(u, i), u.asserts = !0), n.typeAnnotation = u, this.finishNode(n, "TSTypeAnnotation"); } let o = this.tsIsIdentifier() && this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this)); if (!o) return a ? (i.parameterName = this.parseIdentifier(), i.asserts = a, i.typeAnnotation = null, n.typeAnnotation = this.finishNode(i, "TSTypePredicate"), this.finishNode(n, "TSTypeAnnotation")) : this.tsParseTypeAnnotation(!1, n); let l = this.tsParseTypeAnnotation(!1); return i.parameterName = o, i.typeAnnotation = l, i.asserts = a, n.typeAnnotation = this.finishNode(i, "TSTypePredicate"), this.finishNode( n, "TSTypeAnnotation"); }); } tsTryParseTypeOrTypePredicateAnnotation() { if (this.match(14)) return this.tsParseTypeOrTypePredicateAnnotation(14); } tsTryParseTypeAnnotation() { if (this.match(14)) return this.tsParseTypeAnnotation(); } tsTryParseType() { return this.tsEatThenParseType(14); } tsParseTypePredicatePrefix() { let r = this.parseIdentifier(); if (this.isContextual(116) && !this.hasPrecedingLineBreak()) return this.next(), r; } tsParseTypePredicateAsserts() { if (this.state.type !== 109) return !1; let r = this.state.containsEsc; return this.next(), !tt(this.state.type) && !this.match(78) ? !1 : (r && this.raise(_.InvalidEscapedReservedWord, this.state.lastTokStartLoc, { reservedWord: "asserts" }), !0); } tsParseTypeAnnotation(r = !0, n = this.startNode()) { return this.tsInType(() => { r && this.expect(14), n.typeAnnotation = this.tsParseType(); }), this.finishNode(n, "TSTypeAnnotation"); } tsParseType() { Xv(this.state.inType); let r = this.tsParseNonConditionalType(); if (this.state.inDisallowConditionalTypesContext || this.hasPrecedingLineBreak() || !this.eat(81)) return r; let n = this.startNodeAtNode(r); return n.checkType = r, n.extendsType = this.tsInDisallowConditionalTypesContext(() => this.tsParseNonConditionalType()), this.expect( 17), n.trueType = this.tsInAllowConditionalTypesContext(() => this.tsParseType()), this.expect(14), n.falseType = this.tsInAllowConditionalTypesContext( () => this.tsParseType()), this.finishNode(n, "TSConditionalType"); } isAbstractConstructorSignature() { return this.isContextual(124) && this.lookahead().type === 77; } tsParseNonConditionalType() { return this.tsIsStartOfFunctionType() ? this.tsParseFunctionOrConstructorType("TSFunctionType") : this.match(77) ? this.tsParseFunctionOrConstructorType( "TSConstructorType") : this.isAbstractConstructorSignature() ? this.tsParseFunctionOrConstructorType("TSConstructorType", !0) : this.tsParseUnionTypeOrHigher(); } tsParseTypeAssertion() { this.getPluginOption("typescript", "disallowAmbiguousJSXLike") && this.raise(me.ReservedTypeAssertion, this.state.startLoc); let r = this.startNode(); return r.typeAnnotation = this.tsInType(() => (this.next(), this.match(75) ? this.tsParseTypeReference() : this.tsParseType())), this. expect(48), r.expression = this.parseMaybeUnary(), this.finishNode(r, "TSTypeAssertion"); } tsParseHeritageClause(r) { let n = this.state.startLoc, i = this.tsParseDelimitedList("HeritageClauseElement", () => { let a = this.startNode(); return a.expression = this.tsParseEntityName(), this.match(47) && (a.typeParameters = this.tsParseTypeArguments()), this.finishNode( a, "TSExpressionWithTypeArguments"); }); return i.length || this.raise(me.EmptyHeritageClauseType, n, { token: r }), i; } tsParseInterfaceDeclaration(r, n = {}) { if (this.hasFollowingLineBreak()) return null; this.expectContextual(129), n.declare && (r.declare = !0), tt(this.state.type) ? (r.id = this.parseIdentifier(), this.checkIdentifier( r.id, 130)) : (r.id = null, this.raise(me.MissingInterfaceName, this.state.startLoc)), r.typeParameters = this.tsTryParseTypeParameters( this.tsParseInOutConstModifiers), this.eat(81) && (r.extends = this.tsParseHeritageClause("extends")); let i = this.startNode(); return i.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)), r.body = this.finishNode(i, "TSInterfaceBody"), this.finishNode( r, "TSInterfaceDeclaration"); } tsParseTypeAliasDeclaration(r) { return r.id = this.parseIdentifier(), this.checkIdentifier(r.id, 2), r.typeAnnotation = this.tsInType(() => { if (r.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers), this.expect(29), this.isContextual(114) && this.lookahead(). type !== 16) { let n = this.startNode(); return this.next(), this.finishNode(n, "TSIntrinsicKeyword"); } return this.tsParseType(); }), this.semicolon(), this.finishNode(r, "TSTypeAliasDeclaration"); } tsInNoContext(r) { let n = this.state.context; this.state.context = [n[0]]; try { return r(); } finally { this.state.context = n; } } tsInType(r) { let n = this.state.inType; this.state.inType = !0; try { return r(); } finally { this.state.inType = n; } } tsInDisallowConditionalTypesContext(r) { let n = this.state.inDisallowConditionalTypesContext; this.state.inDisallowConditionalTypesContext = !0; try { return r(); } finally { this.state.inDisallowConditionalTypesContext = n; } } tsInAllowConditionalTypesContext(r) { let n = this.state.inDisallowConditionalTypesContext; this.state.inDisallowConditionalTypesContext = !1; try { return r(); } finally { this.state.inDisallowConditionalTypesContext = n; } } tsEatThenParseType(r) { if (this.match(r)) return this.tsNextThenParseType(); } tsExpectThenParseType(r) { return this.tsInType(() => (this.expect(r), this.tsParseType())); } tsNextThenParseType() { return this.tsInType(() => (this.next(), this.tsParseType())); } tsParseEnumMember() { let r = this.startNode(); return r.id = this.match(133) ? super.parseStringLiteral(this.state.value) : this.parseIdentifier(!0), this.eat(29) && (r.initializer = super.parseMaybeAssignAllowIn()), this.finishNode(r, "TSEnumMember"); } tsParseEnumDeclaration(r, n = {}) { return n.const && (r.const = !0), n.declare && (r.declare = !0), this.expectContextual(126), r.id = this.parseIdentifier(), this.checkIdentifier( r.id, r.const ? 8971 : 8459), this.expect(5), r.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)), this.expect(8), this.finishNode(r, "TSEnumDeclaration"); } tsParseModuleBlock() { let r = this.startNode(); return this.scope.enter(0), this.expect(5), super.parseBlockOrModuleBlockBody(r.body = [], void 0, !0, 8), this.scope.exit(), this.finishNode( r, "TSModuleBlock"); } tsParseModuleOrNamespaceDeclaration(r, n = !1) { if (r.id = this.parseIdentifier(), n || this.checkIdentifier(r.id, 1024), this.eat(16)) { let i = this.startNode(); this.tsParseModuleOrNamespaceDeclaration(i, !0), r.body = i; } else this.scope.enter(256), this.prodParam.enter(0), r.body = this.tsParseModuleBlock(), this.prodParam.exit(), this.scope.exit(); return this.finishNode(r, "TSModuleDeclaration"); } tsParseAmbientExternalModuleDeclaration(r) { return this.isContextual(112) ? (r.global = !0, r.id = this.parseIdentifier()) : this.match(133) ? r.id = super.parseStringLiteral(this. state.value) : this.unexpected(), this.match(5) ? (this.scope.enter(256), this.prodParam.enter(0), r.body = this.tsParseModuleBlock(), this.prodParam.exit(), this.scope.exit()) : this.semicolon(), this.finishNode(r, "TSModuleDeclaration"); } tsParseImportEqualsDeclaration(r, n, i) { r.isExport = i || !1, r.id = n || this.parseIdentifier(), this.checkIdentifier(r.id, 4096), this.expect(29); let a = this.tsParseModuleReference(); return r.importKind === "type" && a.type !== "TSExternalModuleReference" && this.raise(me.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(!1); } tsParseExternalModuleReference() { let r = this.startNode(); return this.expectContextual(119), this.expect(10), this.match(133) || this.unexpected(), r.expression = super.parseExprAtom(), this.expect( 11), this.sawUnambiguousESM = !0, this.finishNode(r, "TSExternalModuleReference"); } tsLookAhead(r) { let n = this.state.clone(), i = r(); return this.state = n, i; } tsTryParseAndCatch(r) { let n = this.tryParse((i) => r() || i()); if (!(n.aborted || !n.node)) return n.error && (this.state = n.failState), n.node; } tsTryParse(r) { let n = this.state.clone(), i = r(); if (i !== void 0 && i !== !1) return i; this.state = n; } tsTryParseDeclare(r) { if (this.isLineTerminator()) return; let n = this.state.type, i; return this.isContextual(100) && (n = 74, i = "let"), this.tsInAmbientContext(() => { switch (n) { case 68: return r.declare = !0, super.parseFunctionStatement(r, !1, !1); case 80: return r.declare = !0, this.parseClass(r, !0, !1); case 126: return this.tsParseEnumDeclaration(r, { declare: !0 }); case 112: return this.tsParseAmbientExternalModuleDeclaration(r); case 75: case 74: return !this.match(75) || !this.isLookaheadContextual("enum") ? (r.declare = !0, this.parseVarStatement(r, i || this.state.value, !0)) : (this.expect(75), this.tsParseEnumDeclaration(r, { const: !0, declare: !0 })); case 129: { let a = this.tsParseInterfaceDeclaration(r, { declare: !0 }); if (a) return a; } default: if (tt(n)) return this.tsParseDeclaration(r, this.state.value, !0, null); } }); } tsTryParseExportDeclaration() { return this.tsParseDeclaration(this.startNode(), this.state.value, !0, null); } tsParseExpressionStatement(r, n, i) { switch (n.name) { case "declare": { let a = this.tsTryParseDeclare(r); return a && (a.declare = !0), a; } case "global": if (this.match(5)) { this.scope.enter(256), this.prodParam.enter(0); let a = r; return a.global = !0, a.id = n, a.body = this.tsParseModuleBlock(), this.scope.exit(), this.prodParam.exit(), this.finishNode(a, "TSModuleDeclaration"); } break; default: return this.tsParseDeclaration(r, n.name, !1, i); } } tsParseDeclaration(r, n, i, a) { switch (n) { case "abstract": if (this.tsCheckLineTerminator(i) && (this.match(80) || tt(this.state.type))) return this.tsParseAbstractDeclaration(r, a); break; case "module": if (this.tsCheckLineTerminator(i)) { if (this.match(133)) return this.tsParseAmbientExternalModuleDeclaration(r); if (tt(this.state.type)) return this.tsParseModuleOrNamespaceDeclaration(r); } break; case "namespace": if (this.tsCheckLineTerminator(i) && tt(this.state.type)) return this.tsParseModuleOrNamespaceDeclaration(r); break; case "type": if (this.tsCheckLineTerminator(i) && tt(this.state.type)) return this.tsParseTypeAliasDeclaration(r); break; } } tsCheckLineTerminator(r) { return r ? this.hasFollowingLineBreak() ? !1 : (this.next(), !0) : !this.isLineTerminator(); } tsTryParseGenericAsyncArrowFunction(r) { if (!this.match(47)) return; let n = this.state.maybeInArrowParameters; this.state.maybeInArrowParameters = !0; let i = 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 = n, !!i) return super.parseArrowExpression(i, null, !0); } tsParseTypeArgumentsInExpression() { if (this.reScan_lt() === 47) return this.tsParseTypeArguments(); } tsParseTypeArguments() { let r = this.startNode(); return r.params = this.tsInType(() => this.tsInNoContext(() => (this.expect(47), this.tsParseDelimitedList("TypeParametersOrArguments", this.tsParseType.bind(this))))), r.params.length === 0 ? this.raise(me.EmptyTypeArguments, r) : !this.state.inType && this.curContext() === at.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode(r, "TSTypeParameterInstantiation"); } tsIsDeclarationStart() { return zK(this.state.type); } isExportDefaultSpecifier() { return this.tsIsDeclarationStart() ? !1 : super.isExportDefaultSpecifier(); } parseAssignableListItem(r, n) { let i = 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(me.UnexpectedParameterModifier, i); let c = this.parseMaybeDefault(); this.parseAssignableListItemTypes(c, r); let f = this.parseMaybeDefault(c.loc.start, c); if (o || u || l) { let p = this.startNodeAt(i); return n.length && (p.decorators = n), o && (p.accessibility = o), u && (p.readonly = u), l && (p.override = l), f.type !== "Identif\ ier" && f.type !== "AssignmentPattern" && this.raise(me.UnsupportedParameterPropertyKind, p), p.parameter = f, this.finishNode(p, "TSParamet\ erProperty"); } return n.length && (c.decorators = n), f; } isSimpleParameter(r) { return r.type === "TSParameterProperty" && super.isSimpleParameter(r.parameter) || super.isSimpleParameter(r); } tsDisallowOptionalPattern(r) { for (let n of r.params) n.type !== "Identifier" && n.optional && !this.state.isAmbientContext && this.raise(me.PatternIsOptional, n); } setArrowFunctionParameters(r, n, i) { super.setArrowFunctionParameters(r, n, i), this.tsDisallowOptionalPattern(r); } parseFunctionBodyAndFinish(r, n, i = !1) { this.match(14) && (r.returnType = this.tsParseTypeOrTypePredicateAnnotation(14)); let a = n === "FunctionDeclaration" ? "TSDeclareFunction" : n === "ClassMethod" || n === "ClassPrivateMethod" ? "TSDeclareMethod" : void 0; return a && !this.match(5) && this.isLineTerminator() ? this.finishNode(r, a) : a === "TSDeclareFunction" && this.state.isAmbientContext && (this.raise(me.DeclareFunctionHasImplementation, r), r.declare) ? super.parseFunctionBodyAndFinish(r, a, i) : (this.tsDisallowOptionalPattern( r), super.parseFunctionBodyAndFinish(r, n, i)); } registerFunctionStatementId(r) { !r.body && r.id ? this.checkIdentifier(r.id, 1024) : super.registerFunctionStatementId(r); } tsCheckForInvalidTypeCasts(r) { r.forEach((n) => { n?.type === "TSTypeCastExpression" && this.raise(me.UnexpectedTypeAnnotation, n.typeAnnotation); }); } toReferencedList(r, n) { return this.tsCheckForInvalidTypeCasts(r), r; } parseArrayLike(r, n, i, a) { let o = super.parseArrayLike(r, n, i, a); return o.type === "ArrayExpression" && this.tsCheckForInvalidTypeCasts(o.elements), o; } parseSubscript(r, n, i, a) { if (!this.hasPrecedingLineBreak() && this.match(35)) { this.state.canStartJSXElement = !1, this.next(); let l = this.startNodeAt(n); return l.expression = r, this.finishNode(l, "TSNonNullExpression"); } let o = !1; if (this.match(18) && this.lookaheadCharCode() === 60) { if (i) return a.stop = !0, r; a.optionalChainMember = o = !0, this.next(); } if (this.match(47) || this.match(51)) { let l, u = this.tsTryParseAndCatch(() => { if (!i && this.atPossibleAsyncArrow(r)) { let h = this.tsTryParseGenericAsyncArrowFunction(n); if (h) return h; } let c = this.tsParseTypeArgumentsInExpression(); if (!c) return; if (o && !this.match(10)) { l = this.state.curPosition(); return; } if (Vl(this.state.type)) { let h = super.parseTaggedTemplateExpression(r, n, a); return h.typeParameters = c, h; } if (!i && this.eat(10)) { let h = this.startNodeAt(n); return h.callee = r, h.arguments = this.parseCallExpressionArguments(11, !1), this.tsCheckForInvalidTypeCasts(h.arguments), h.typeParameters = c, a.optionalChainMember && (h.optional = o), this.finishCallExpression(h, a.optionalChainMember); } let f = this.state.type; if (f === 48 || f === 52 || f !== 10 && uh(f) && !this.hasPrecedingLineBreak()) return; let p = this.startNodeAt(n); return p.expression = r, p.typeParameters = c, this.finishNode(p, "TSInstantiationExpression"); }); if (l && this.unexpected(l, 10), u) return u.type === "TSInstantiationExpression" && (this.match(16) || this.match(18) && this.lookaheadCharCode() !== 40) && this.raise( me.InvalidPropertyAccessAfterInstantiationExpression, this.state.startLoc), u; } return super.parseSubscript(r, n, i, a); } parseNewCallee(r) { var n; super.parseNewCallee(r); let { callee: i } = r; i.type === "TSInstantiationExpression" && !((n = i.extra) != null && n.parenthesized) && (r.typeParameters = i.typeParameters, r.callee = i.expression); } parseExprOp(r, n, i) { let a; if (Rl(58) > i && !this.hasPrecedingLineBreak() && (this.isContextual(93) || (a = this.isContextual(120)))) { let o = this.startNodeAt(n); return o.expression = r, o.typeAnnotation = this.tsInType(() => (this.next(), this.match(75) ? (a && this.raise(_.UnexpectedKeyword, this.state.startLoc, { keyword: "const" }), this.tsParseTypeReference()) : this.tsParseType())), this.finishNode(o, a ? "TSSatisfiesExpression" : "TSAsExpression"), this.reScan_lt_gt(), this.parseExprOp(o, n, i); } return super.parseExprOp(r, n, i); } checkReservedWord(r, n, i, a) { this.state.isAmbientContext || super.checkReservedWord(r, n, i, a); } checkImportReflection(r) { super.checkImportReflection(r), r.module && r.importKind !== "value" && this.raise(me.ImportReflectionHasImportType, r.specifiers[0].loc. start); } checkDuplicateExports() { } isPotentialImportPhase(r) { if (super.isPotentialImportPhase(r)) return !0; if (this.isContextual(130)) { let n = this.lookaheadCharCode(); return r ? n === 123 || n === 42 : n !== 61; } return !r && this.isContextual(87); } applyImportPhase(r, n, i, a) { super.applyImportPhase(r, n, i, a), n ? r.exportKind = i === "type" ? "type" : "value" : r.importKind = i === "type" || i === "typeof" ? i : "value"; } parseImport(r) { if (this.match(133)) return r.importKind = "value", super.parseImport(r); let n; if (tt(this.state.type) && this.lookaheadCharCode() === 61) return r.importKind = "value", this.tsParseImportEqualsDeclaration(r); if (this.isContextual(130)) { let i = this.parseMaybeImportPhase(r, !1); if (this.lookaheadCharCode() === 61) return this.tsParseImportEqualsDeclaration(r, i); n = super.parseImportSpecifiersAndAfter(r, i); } else n = super.parseImport(r); return n.importKind === "type" && n.specifiers.length > 1 && n.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(me.TypeImportCannotSpecifyDefaultAndNamed, n), n; } parseExport(r, n) { if (this.match(83)) { this.next(); let i = r, a = null; return this.isContextual(130) && this.isPotentialImportPhase(!1) ? a = this.parseMaybeImportPhase(i, !1) : i.importKind = "value", this. tsParseImportEqualsDeclaration(i, a, !0); } else if (this.eat(29)) { let i = r; return i.expression = super.parseExpression(), this.semicolon(), this.sawUnambiguousESM = !0, this.finishNode(i, "TSExportAssignment"); } else if (this.eatContextual(93)) { let i = r; return this.expectContextual(128), i.id = this.parseIdentifier(), this.semicolon(), this.finishNode(i, "TSNamespaceExportDeclaration"); } else return super.parseExport(r, n); } isAbstractClass() { return this.isContextual(124) && this.lookahead().type === 80; } parseExportDefaultExpression() { if (this.isAbstractClass()) { let r = this.startNode(); return this.next(), r.abstract = !0, this.parseClass(r, !0, !0); } if (this.match(129)) { let r = this.tsParseInterfaceDeclaration(this.startNode()); if (r) return r; } return super.parseExportDefaultExpression(); } parseVarStatement(r, n, i = !1) { let { isAmbientContext: a } = this.state, o = super.parseVarStatement(r, n, i || a); if (!a) return o; for (let { id: l, init: u } of o.declarations) u && (n !== "const" || l.typeAnnotation ? this.raise(me.InitializerNotAllowedInAmbientContext, u) : NG(u, this.hasPlugin("estree")) || this.raise(me.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference, u)); return o; } parseStatementContent(r, n) { if (this.match(75) && this.isLookaheadContextual("enum")) { let i = this.startNode(); return this.expect(75), this.tsParseEnumDeclaration(i, { const: !0 }); } if (this.isContextual(126)) return this.tsParseEnumDeclaration(this.startNode()); if (this.isContextual(129)) { let i = this.tsParseInterfaceDeclaration(this.startNode()); if (i) return i; } return super.parseStatementContent(r, n); } parseAccessModifier() { return this.tsParseModifier(["public", "protected", "private"]); } tsHasSomeModifiers(r, n) { return n.some((i) => Qv(i) ? r.accessibility === i : !!r[i]); } tsIsStartOfStaticBlocks() { return this.isContextual(106) && this.lookaheadCharCode() === 123; } parseClassMember(r, n, i) { let a = ["declare", "private", "public", "protected", "override", "abstract", "readonly", "static"]; this.tsParseModifiers({ allowedModifiers: a, disallowedModifiers: ["in", "out"], stopOnStartOfClassStaticBlock: !0, errorTemplate: me.InvalidModifierOnTypeParameterPositions }, n); let o = /* @__PURE__ */ s(() => { this.tsIsStartOfStaticBlocks() ? (this.next(), this.next(), this.tsHasSomeModifiers(n, a) && this.raise(me.StaticBlockCannotHaveModifier, this.state.curPosition()), super.parseClassStaticBlock(r, n)) : this.parseClassMemberWithIsStatic(r, n, i, !!n.static); }, "callParseClassMemberWithIsStatic"); n.declare ? this.tsInAmbientContext(o) : o(); } parseClassMemberWithIsStatic(r, n, i, a) { let o = this.tsTryParseIndexSignature(n); if (o) { r.body.push(o), n.abstract && this.raise(me.IndexSignatureHasAbstract, n), n.accessibility && this.raise(me.IndexSignatureHasAccessibility, n, { modifier: n.accessibility }), n.declare && this.raise(me.IndexSignatureHasDeclare, n), n.override && this.raise(me.IndexSignatureHasOverride, n); return; } !this.state.inAbstractClass && n.abstract && this.raise(me.NonAbstractClassHasAbstractMethod, n), n.override && (i.hadSuperClass || this. raise(me.OverrideNotInSubClass, n)), super.parseClassMemberWithIsStatic(r, n, i, a); } parsePostMemberNameModifiers(r) { this.eat(17) && (r.optional = !0), r.readonly && this.match(10) && this.raise(me.ClassMethodHasReadonly, r), r.declare && this.match(10) && this.raise(me.ClassMethodHasDeclare, r); } parseExpressionStatement(r, n, i) { return (n.type === "Identifier" ? this.tsParseExpressionStatement(r, n, i) : void 0) || super.parseExpressionStatement(r, n, i); } shouldParseExportDeclaration() { return this.tsIsDeclarationStart() ? !0 : super.shouldParseExportDeclaration(); } parseConditional(r, n, i) { if (!this.state.maybeInArrowParameters || !this.match(17)) return super.parseConditional(r, n, i); let a = this.tryParse(() => super.parseConditional(r, n)); return a.node ? (a.error && (this.state = a.failState), a.node) : (a.error && super.setOptionalParametersError(i, a.error), r); } parseParenItem(r, n) { let i = super.parseParenItem(r, n); if (this.eat(17) && (i.optional = !0, this.resetEndLocation(r)), this.match(14)) { let a = this.startNodeAt(n); 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 n = this.state.startLoc, i = this.eatContextual(125); if (i && (this.isContextual(125) || !this.shouldParseExportDeclaration())) throw this.raise(me.ExpectedAmbientAfterExportDeclare, this.state.startLoc); let o = tt(this.state.type) && this.tsTryParseExportDeclaration() || super.parseExportDeclaration(r); return o ? ((o.type === "TSInterfaceDeclaration" || o.type === "TSTypeAliasDeclaration" || i) && (r.exportKind = "type"), i && (this.resetStartLocation( o, n), o.declare = !0), o) : null; } parseClassId(r, n, i, a) { if ((!n || i) && this.isContextual(113)) return; super.parseClassId(r, n, i, 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 n = this.tsTryParseTypeAnnotation(); n && (r.typeAnnotation = n); } parseClassProperty(r) { if (this.parseClassPropertyAnnotation(r), this.state.isAmbientContext && !(r.readonly && !r.typeAnnotation) && this.match(29) && this. raise(me.DeclareClassFieldHasInitializer, this.state.startLoc), r.abstract && this.match(29)) { let { key: n } = r; this.raise(me.AbstractPropertyHasInitializer, this.state.startLoc, { propertyName: n.type === "Identifier" && !r.computed ? n.name : `[${this.input.slice(n.start, n.end)}]` }); } return super.parseClassProperty(r); } parseClassPrivateProperty(r) { return r.abstract && this.raise(me.PrivateElementHasAbstract, r), r.accessibility && this.raise(me.PrivateElementHasAccessibility, r, { modifier: r.accessibility }), this.parseClassPropertyAnnotation(r), super.parseClassPrivateProperty(r); } parseClassAccessorProperty(r) { return this.parseClassPropertyAnnotation(r), r.optional && this.raise(me.AccessorCannotBeOptional, r), super.parseClassAccessorProperty( r); } pushClassMethod(r, n, i, a, o, l) { let u = this.tsTryParseTypeParameters(this.tsParseConstModifier); u && o && this.raise(me.ConstructorHasTypeParameters, u); let { declare: c = !1, kind: f } = n; c && (f === "get" || f === "set") && this.raise(me.DeclareAccessor, n, { kind: f }), u && (n.typeParameters = u), super.pushClassMethod(r, n, i, a, o, l); } pushClassPrivateMethod(r, n, i, a) { let o = this.tsTryParseTypeParameters(this.tsParseConstModifier); o && (n.typeParameters = o), super.pushClassPrivateMethod(r, n, i, a); } declareClassPrivateMethodInScope(r, n) { r.type !== "TSDeclareMethod" && (r.type === "MethodDefinition" && !hasOwnProperty.call(r.value, "body") || super.declareClassPrivateMethodInScope( r, n)); } parseClassSuper(r) { super.parseClassSuper(r), r.superClass && (this.match(47) || this.match(51)) && (r.superTypeParameters = this.tsParseTypeArgumentsInExpression()), this.eatContextual(113) && (r.implements = this.tsParseHeritageClause("implements")); } parseObjPropValue(r, n, i, a, o, l, u) { let c = this.tsTryParseTypeParameters(this.tsParseConstModifier); return c && (r.typeParameters = c), super.parseObjPropValue(r, n, i, a, o, l, u); } parseFunctionParams(r, n) { let i = this.tsTryParseTypeParameters(this.tsParseConstModifier); i && (r.typeParameters = i), super.parseFunctionParams(r, n); } parseVarId(r, n) { super.parseVarId(r, n), r.id.type === "Identifier" && !this.hasPrecedingLineBreak() && this.eat(35) && (r.definite = !0); let i = this.tsTryParseTypeAnnotation(); i && (r.id.typeAnnotation = i, this.resetEndLocation(r.id)); } parseAsyncArrowFromCallExpression(r, n) { return this.match(14) && (r.returnType = this.tsParseTypeAnnotation()), super.parseAsyncArrowFromCallExpression(r, n); } parseMaybeAssign(r, n) { var i, a, o, l, u; let c, f, p; if (this.hasPlugin("jsx") && (this.match(142) || this.match(47))) { if (c = this.state.clone(), f = this.tryParse(() => super.parseMaybeAssign(r, n), c), !f.error) return f.node; let { context: v } = this.state, d = v[v.length - 1]; (d === at.j_oTag || d === at.j_expr) && v.pop(); } if (!((i = f) != null && i.error) && !this.match(47)) return super.parseMaybeAssign(r, n); (!c || c === this.state) && (c = this.state.clone()); let h, y = this.tryParse((v) => { var d, b; h = this.tsParseTypeParameters(this.tsParseConstModifier); let E = super.parseMaybeAssign(r, n); return (E.type !== "ArrowFunctionExpression" || (d = E.extra) != null && d.parenthesized) && v(), ((b = h) == null ? void 0 : b.params. length) !== 0 && this.resetStartLocationFromNode(E, h), E.typeParameters = h, E; }, c); if (!y.error && !y.aborted) return h && this.reportReservedArrowTypeParam(h), y.node; if (!f && (Xv(!this.hasPlugin("jsx")), p = this.tryParse(() => super.parseMaybeAssign(r, n), c), !p.error)) return p.node; if ((a = f) != null && a.node) return this.state = f.failState, f.node; if (y.node) return this.state = y.failState, h && this.reportReservedArrowTypeParam(h), y.node; if ((o = p) != null && o.node) return this.state = p.failState, p.node; throw ((l = f) == null ? void 0 : l.error) || y.error || ((u = p) == null ? void 0 : u.error); } reportReservedArrowTypeParam(r) { var n; r.params.length === 1 && !r.params[0].constraint && !((n = r.extra) != null && n.trailingComma) && this.getPluginOption("typescript", "\ disallowAmbiguousJSXLike") && this.raise(me.ReservedArrowTypeParam, r); } parseMaybeUnary(r, n) { return !this.hasPlugin("jsx") && this.match(47) ? this.tsParseTypeAssertion() : super.parseMaybeUnary(r, n); } parseArrow(r) { if (this.match(14)) { let n = this.tryParse((i) => { let a = this.tsParseTypeOrTypePredicateAnnotation(14); return (this.canInsertSemicolon() || !this.match(19)) && i(), a; }); if (n.aborted) return; n.thrown || (n.error && (this.state = n.failState), r.returnType = n.node); } return super.parseArrow(r); } parseAssignableListItemTypes(r, n) { if (!(n & 2)) return r; this.eat(17) && (r.optional = !0); let i = this.tsTryParseTypeAnnotation(); return i && (r.typeAnnotation = i), this.resetEndLocation(r), r; } isAssignable(r, n) { switch (r.type) { case "TSTypeCastExpression": return this.isAssignable(r.expression, n); case "TSParameterProperty": return !0; default: return super.isAssignable(r, n); } } toAssignable(r, n = !1) { switch (r.type) { case "ParenthesizedExpression": this.toAssignableParenthesizedExpression(r, n); break; case "TSAsExpression": case "TSSatisfiesExpression": case "TSNonNullExpression": case "TSTypeAssertion": n ? this.expressionScope.recordArrowParameterBindingError(me.UnexpectedTypeCastInParameter, r) : this.raise(me.UnexpectedTypeCastInParameter, r), this.toAssignable(r.expression, n); break; case "AssignmentExpression": !n && r.left.type === "TSTypeCastExpression" && (r.left = this.typeCastToParameter(r.left)); default: super.toAssignable(r, n); } } toAssignableParenthesizedExpression(r, n) { switch (r.expression.type) { case "TSAsExpression": case "TSSatisfiesExpression": case "TSNonNullExpression": case "TSTypeAssertion": case "ParenthesizedExpression": this.toAssignable(r.expression, n); break; default: super.toAssignable(r, n); } } checkToRestConversion(r, n) { switch (r.type) { case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": case "TSNonNullExpression": this.checkToRestConversion(r.expression, !1); break; default: super.checkToRestConversion(r, n); } } isValidLVal(r, n, i) { switch (r) { case "TSTypeCastExpression": return !0; case "TSParameterProperty": return "parameter"; case "TSNonNullExpression": case "TSInstantiationExpression": return "expression"; case "TSAsExpression": case "TSSatisfiesExpression": case "TSTypeAssertion": return (i !== 64 || !n) && ["expression", !0]; default: return super.isValidLVal(r, n, i); } } parseBindingAtom() { return this.state.type === 78 ? this.parseIdentifier(!0) : super.parseBindingAtom(); } parseMaybeDecoratorArguments(r) { if (this.match(47) || this.match(51)) { let n = this.tsParseTypeArgumentsInExpression(); if (this.match(10)) { let i = super.parseMaybeDecoratorArguments(r); return i.typeParameters = n, i; } this.unexpected(null, 10); } return super.parseMaybeDecoratorArguments(r); } checkCommaAfterRest(r) { return this.state.isAmbientContext && this.match(12) && this.lookaheadCharCode() === r ? (this.next(), !1) : super.checkCommaAfterRest( r); } isClassMethod() { return this.match(47) || super.isClassMethod(); } isClassProperty() { return this.match(35) || this.match(14) || super.isClassProperty(); } parseMaybeDefault(r, n) { let i = super.parseMaybeDefault(r, n); return i.type === "AssignmentPattern" && i.typeAnnotation && i.right.start < i.typeAnnotation.start && this.raise(me.TypeAnnotationAfterAssign, i.typeAnnotation), i; } getTokenFromCode(r) { if (this.state.inType) { if (r === 62) { this.finishOp(48, 1); return; } if (r === 60) { this.finishOp(47, 1); return; } } super.getTokenFromCode(r); } reScan_lt_gt() { let { type: r } = this.state; 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; } toAssignableList(r, n, i) { for (let a = 0; a < r.length; a++) { let o = r[a]; o?.type === "TSTypeCastExpression" && (r[a] = this.typeCastToParameter(o)); } super.toAssignableList(r, n, i); } 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((n) => this.isAssignable(n, !0)) : super.shouldParseArrow(r); } shouldParseAsyncArrow() { return this.match(14) || super.shouldParseAsyncArrow(); } canHaveLeadingDecorator() { return super.canHaveLeadingDecorator() || this.isAbstractClass(); } jsxParseOpeningElementAfterName(r) { if (this.match(47) || this.match(51)) { let n = this.tsTryParseAndCatch(() => this.tsParseTypeArgumentsInExpression()); n && (r.typeParameters = n); } return super.jsxParseOpeningElementAfterName(r); } getGetterSetterExpectedParamCount(r) { let n = super.getGetterSetterExpectedParamCount(r), a = this.getObjectOrClassMethodParams(r)[0]; return a && this.isThisParam(a) ? n + 1 : n; } parseCatchClauseParam() { let r = super.parseCatchClauseParam(), n = this.tsTryParseTypeAnnotation(); return n && (r.typeAnnotation = n, this.resetEndLocation(r)), r; } tsInAmbientContext(r) { let { isAmbientContext: n, strict: i } = this.state; this.state.isAmbientContext = !0, this.state.strict = !1; try { return r(); } finally { this.state.isAmbientContext = n, this.state.strict = i; } } parseClass(r, n, i) { let a = this.state.inAbstractClass; this.state.inAbstractClass = !!r.abstract; try { return super.parseClass(r, n, i); } finally { this.state.inAbstractClass = a; } } tsParseAbstractDeclaration(r, n) { if (this.match(80)) return r.abstract = !0, this.maybeTakeDecorators(n, this.parseClass(r, !0, !1)); if (this.isContextual(129)) { if (!this.hasFollowingLineBreak()) return r.abstract = !0, this.raise(me.NonClassMethodPropertyHasAbstractModifer, r), this.tsParseInterfaceDeclaration(r); } else this.unexpected(null, 80); } parseMethod(r, n, i, a, o, l, u) { let c = super.parseMethod(r, n, i, a, o, l, u); if (c.abstract && (this.hasPlugin("estree") ? !!c.value.body : !!c.body)) { let { key: p } = c; this.raise(me.AbstractMethodHasImplementation, c, { methodName: p.type === "Identifier" && !c.computed ? p.name : `[${this.input.slice(p.start, p.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, n, i, a) { return !n && a ? (this.parseTypeOnlyImportExportSpecifier(r, !1, i), this.finishNode(r, "ExportSpecifier")) : (r.exportKind = "value", super.parseExportSpecifier(r, n, i, a)); } parseImportSpecifier(r, n, i, a, o) { return !n && a ? (this.parseTypeOnlyImportExportSpecifier(r, !0, i), this.finishNode(r, "ImportSpecifier")) : (r.importKind = "value", super.parseImportSpecifier(r, n, i, a, i ? 4098 : 4096)); } parseTypeOnlyImportExportSpecifier(r, n, i) { let a = n ? "imported" : "local", o = n ? "local" : "exported", l = r[a], u, c = !1, f = !0, p = l.loc.start; if (this.isContextual(93)) { let y = this.parseIdentifier(); if (this.isContextual(93)) { let v = this.parseIdentifier(); Wr(this.state.type) ? (c = !0, l = y, u = n ? this.parseIdentifier() : this.parseModuleExportName(), f = !1) : (u = v, f = !1); } else Wr(this.state.type) ? (f = !1, u = n ? this.parseIdentifier() : this.parseModuleExportName()) : (c = !0, l = y); } else Wr(this.state.type) && (c = !0, n ? (l = this.parseIdentifier(!0), this.isContextual(93) || this.checkReservedWord(l.name, l.loc. start, !0, !0)) : l = this.parseModuleExportName()); c && i && this.raise(n ? me.TypeModifierIsUsedInTypeImports : me.TypeModifierIsUsedInTypeExports, p), r[a] = l, r[o] = u; let h = n ? "importKind" : "exportKind"; r[h] = c ? "type" : "value", f && this.eatContextual(93) && (r[o] = n ? this.parseIdentifier() : this.parseModuleExportName()), r[o] || (r[o] = In(r[a])), n && this.checkIdentifier(r[o], c ? 4098 : 4096); } }, "typescript"); function OG(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 : yT(e.object); } s(OG, "isPossiblyLiteralEnum"); function NG(e, t) { var r; let { type: n } = e; if ((r = e.extra) != null && r.parenthesized) return !1; if (t) { if (n === "Literal") { let { value: i } = e; if (typeof i == "string" || typeof i == "boolean") return !0; } } else if (n === "StringLiteral" || n === "BooleanLiteral") return !0; return !!(mT(e, t) || BG(e, t) || n === "TemplateLiteral" && e.expressions.length === 0 || OG(e)); } s(NG, "isValidAmbientConstInitializer"); function mT(e, t) { return t ? e.type === "Literal" && (typeof e.value == "number" || "bigint" in e) : e.type === "NumericLiteral" || e.type === "BigIntLite\ ral"; } s(mT, "isNumber"); function BG(e, t) { if (e.type === "UnaryExpression") { let { operator: r, argument: n } = e; if (r === "-" && mT(n, t)) return !0; } return !1; } s(BG, "isNegativeNumber"); function yT(e) { return e.type === "Identifier" ? !0 : e.type !== "MemberExpression" || e.computed ? !1 : yT(e.object); } s(yT, "isUncomputedMemberExpressionChain"); var Zv = Dn`placeholders`({ ClassNameIsRequired: "A class name is required.", UnexpectedSpace: "Unexpected space in placeholder." }), kG = /* @__PURE__ */ s((e) => class extends e { static { s(this, "PlaceholdersParserMixin"); } parsePlaceholder(r) { if (this.match(144)) { let n = this.startNode(); return this.next(), this.assertNoSpace(), n.name = super.parseIdentifier(!0), this.assertNoSpace(), this.expect(144), this.finishPlaceholder( n, r); } } finishPlaceholder(r, n) { let i = r; return (!i.expectedNode || !i.type) && (i = this.finishNode(i, "Placeholder")), i.expectedNode = n, i; } getTokenFromCode(r) { r === 37 && this.input.charCodeAt(this.state.pos + 1) === 37 ? this.finishOp(144, 2) : super.getTokenFromCode(r); } parseExprAtom(r) { return this.parsePlaceholder("Expression") || super.parseExprAtom(r); } parseIdentifier(r) { return this.parsePlaceholder("Identifier") || super.parseIdentifier(r); } checkReservedWord(r, n, i, a) { r !== void 0 && super.checkReservedWord(r, n, i, a); } parseBindingAtom() { return this.parsePlaceholder("Pattern") || super.parseBindingAtom(); } isValidLVal(r, n, i) { return r === "Placeholder" || super.isValidLVal(r, n, i); } toAssignable(r, n) { r && r.type === "Placeholder" && r.expectedNode === "Expression" ? r.expectedNode = "Pattern" : super.toAssignable(r, n); } chStartsBindingIdentifier(r, n) { return !!(super.chStartsBindingIdentifier(r, n) || this.lookahead().type === 144); } verifyBreakContinue(r, n) { r.label && r.label.type === "Placeholder" || super.verifyBreakContinue(r, n); } parseExpressionStatement(r, n) { var i; if (n.type !== "Placeholder" || (i = n.extra) != null && i.parenthesized) return super.parseExpressionStatement(r, n); if (this.match(14)) { let o = r; return o.label = this.finishPlaceholder(n, "Identifier"), this.next(), o.body = super.parseStatementOrSloppyAnnexBFunctionDeclaration(), this.finishNode(o, "LabeledStatement"); } this.semicolon(); let a = r; return a.name = n.name, this.finishPlaceholder(a, "Statement"); } parseBlock(r, n, i) { return this.parsePlaceholder("BlockStatement") || super.parseBlock(r, n, i); } parseFunctionId(r) { return this.parsePlaceholder("Identifier") || super.parseFunctionId(r); } parseClass(r, n, i) { let a = n ? "ClassDeclaration" : "ClassExpression"; this.next(); let o = this.state.strict, l = this.parsePlaceholder("Identifier"); if (l) if (this.match(81) || this.match(144) || this.match(5)) r.id = l; else { if (i || !n) return r.id = null, r.body = this.finishPlaceholder(l, "ClassBody"), this.finishNode(r, a); throw this.raise(Zv.ClassNameIsRequired, this.state.startLoc); } else this.parseClassId(r, n, i); return super.parseClassSuper(r), r.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!r.superClass, o), this.finishNode( r, a); } parseExport(r, n) { let i = this.parsePlaceholder("Identifier"); if (!i) return super.parseExport(r, n); let a = r; if (!this.isContextual(98) && !this.match(12)) return a.specifiers = [], a.source = null, a.declaration = this.finishPlaceholder(i, "Declaration"), this.finishNode(a, "ExportNamed\ Declaration"); this.expectPlugin("exportDefaultFrom"); let o = this.startNode(); return o.exported = i, a.specifiers = [this.finishNode(o, "ExportDefaultSpecifier")], super.parseExport(a, n); } isExportDefaultSpecifier() { if (this.match(65)) { let r = this.nextTokenStart(); if (this.isUnparsedContextual(r, "from") && this.input.startsWith(ns(144), this.nextTokenStartSince(r + 4))) return !0; } return super.isExportDefaultSpecifier(); } maybeParseExportDefaultSpecifier(r, n) { var i; return (i = r.specifiers) != null && i.length ? !0 : super.maybeParseExportDefaultSpecifier(r, n); } checkExport(r) { let { specifiers: n } = r; n != null && n.length && (r.specifiers = n.filter((i) => i.exported.type === "Placeholder")), super.checkExport(r), r.specifiers = n; } parseImport(r) { let n = this.parsePlaceholder("Identifier"); if (!n) return super.parseImport(r); if (r.specifiers = [], !this.isContextual(98) && !this.match(12)) return r.source = this.finishPlaceholder(n, "StringLiteral"), this.semicolon(), this.finishNode(r, "ImportDeclaration"); let i = this.startNodeAtNode(n); return i.local = n, r.specifiers.push(this.finishNode(i, "ImportDefaultSpecifier")), this.eat(12) && (this.maybeParseStarImportSpecifier( r) || this.parseNamedImportSpecifiers(r)), this.expectContextual(98), r.source = this.parseImportSource(), this.semicolon(), this.finishNode( r, "ImportDeclaration"); } parseImportSource() { return this.parsePlaceholder("StringLiteral") || super.parseImportSource(); } assertNoSpace() { this.state.start > this.state.lastTokEndLoc.index && this.raise(Zv.UnexpectedSpace, this.state.lastTokEndLoc); } }, "placeholders"), FG = /* @__PURE__ */ s((e) => class extends e { static { s(this, "V8IntrinsicMixin"); } parseV8Intrinsic() { if (this.match(54)) { let r = this.state.startLoc, n = this.startNode(); if (this.next(), tt(this.state.type)) { let i = this.parseIdentifierName(), a = this.createIdentifier(n, i); if (a.type = "V8IntrinsicIdentifier", this.match(10)) return a; } this.unexpected(r); } } parseExprAtom(r) { return this.parseV8Intrinsic() || super.parseExprAtom(r); } }, "v8intrinsic"), eT = ["minimal", "fsharp", "hack", "smart"], tT = ["^^", "@@", "^", "%", "#"]; function jG(e) { if (e.has("decorators")) { if (e.has("decorators-legacy")) throw new Error("Cannot use the decorators and decorators-legacy plugin together"); let r = e.get("decorators").decoratorsBeforeExport; if (r != null && typeof r != "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 r = e.get("pipelineOperator").proposal; if (!eT.includes(r)) { let i = eT.map((a) => `"${a}"`).join(", "); throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${i}.`); } let n = ((t = e.get("recordAndTuple")) == null ? void 0 : t.syntaxType) === "hash"; if (r === "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 i = e.get("pipelineOperator").topicToken; if (!tT.includes(i)) { let a = tT.map((o) => `"${o}"`).join(", "); throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${a}\ .`); } if (i === "#" && n) throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["\ recordAndTuple", e.get("recordAndTuple")])}\`.`); } else if (r === "smart" && n) throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple", e. get("recordAndTuple")])}\`.`); } if (e.has("moduleAttributes")) { if (e.has("importAttributes") || e.has("importAssertions")) throw new Error("Cannot combine importAssertions, importAttributes 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("importAttributes") && e.has("importAssertions")) throw new Error("Cannot combine importAssertions and importAttributes plugins."); if (e.has("recordAndTuple")) { let r = e.get("recordAndTuple").syntaxType; if (r != null) { let n = ["hash", "bar"]; if (!n.includes(r)) throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: " + n.map((i) => `'${i}'`).join(", ")); } } if (e.has("asyncDoExpressions") && !e.has("doExpressions")) { let r = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins."); throw r.missingPlugins = "doExpressions", r; } 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'."); } s(jG, "validatePlugins"); var gT = { estree: MK, jsx: CG, flow: PG, typescript: _G, v8intrinsic: FG, placeholders: kG }, LG = Object.keys(gT), ah = { sourceType: "script", sourceFilename: void 0, startColumn: 0, startLine: 1, allowAwaitOutsideFunction: !1, allowReturnOutsideFunction: !1, allowNewTargetOutsideFunction: !1, allowImportExportEverywhere: !1, allowSuperOutsideMethod: !1, allowUndeclaredExports: !1, plugins: [], strictMode: null, ranges: !1, tokens: !1, createImportExpressions: !1, createParenthesizedExpressions: !1, errorRecovery: !1, attachComment: !0, annexB: !0 }; function MG(e) { if (e == null) return Object.assign({}, ah); if (e.annexB != null && e.annexB !== !1) throw new Error("The `annexB` option can only be set to `false`."); let t = {}; for (let n of Object.keys(ah)) { var r; t[n] = (r = e[n]) != null ? r : ah[n]; } return t; } s(MG, "getOptions"); var wh = class extends Ch { static { s(this, "ExpressionParser"); } checkProto(t, r, n, i) { if (t.type === "SpreadElement" || this.isObjectMethod(t) || t.computed || t.shorthand) return; let a = t.key; if ((a.type === "Identifier" ? a.name : a.value) === "__proto__") { if (r) { this.raise(_.RecordNoProto, a); return; } n.used && (i ? i.doubleProtoLoc === null && (i.doubleProtoLoc = a.loc.start) : this.raise(_.DuplicateProto, a)), n.used = !0; } } shouldExitDescending(t, r) { return t.type === "ArrowFunctionExpression" && t.start === r; } getExpression() { this.enterInitialScopes(), this.nextToken(); let t = this.parseExpression(); return this.match(139) || this.unexpected(), this.finalizeRemainingComments(), t.comments = this.comments, t.errors = this.state.errors, this.options.tokens && (t.tokens = this.tokens), t; } parseExpression(t, r) { return t ? this.disallowInAnd(() => this.parseExpressionBase(r)) : this.allowInAnd(() => this.parseExpressionBase(r)); } parseExpressionBase(t) { let r = this.state.startLoc, n = this.parseMaybeAssign(t); if (this.match(12)) { let i = this.startNodeAt(r); for (i.expressions = [n]; this.eat(12); ) i.expressions.push(this.parseMaybeAssign(t)); return this.toReferencedList(i.expressions), this.finishNode(i, "SequenceExpression"); } return n; } parseMaybeAssignDisallowIn(t, r) { return this.disallowInAnd(() => this.parseMaybeAssign(t, r)); } parseMaybeAssignAllowIn(t, r) { return this.allowInAnd(() => this.parseMaybeAssign(t, r)); } setOptionalParametersError(t, r) { var n; t.optionalParametersLoc = (n = r?.loc) != null ? n : this.state.startLoc; } parseMaybeAssign(t, r) { let n = this.state.startLoc; if (this.isContextual(108) && this.prodParam.hasYield) { let l = this.parseYield(); return r && (l = r.call(this, l, n)), l; } let i; t ? i = !1 : (t = new Pi(), i = !0); let { type: a } = this.state; (a === 10 || tt(a)) && (this.state.potentialArrowAt = this.state.start); let o = this.parseMaybeConditional(t); if (r && (o = r.call(this, o, n)), $K(this.state.type)) { let l = this.startNodeAt(n), u = this.state.value; if (l.operator = u, this.match(29)) { this.toAssignable(o, !0), l.left = o; let c = n.index; t.doubleProtoLoc != null && t.doubleProtoLoc.index >= c && (t.doubleProtoLoc = null), t.shorthandAssignLoc != null && t.shorthandAssignLoc. index >= c && (t.shorthandAssignLoc = null), t.privateKeyLoc != null && t.privateKeyLoc.index >= c && (this.checkDestructuringPrivate( t), t.privateKeyLoc = null); } else l.left = o; return this.next(), l.right = this.parseMaybeAssign(), this.checkLVal(o, this.finishNode(l, "AssignmentExpression")), l; } else i && this.checkExpressionErrors(t, !0); return o; } parseMaybeConditional(t) { let r = this.state.startLoc, n = this.state.potentialArrowAt, i = this.parseExprOps(t); return this.shouldExitDescending(i, n) ? i : this.parseConditional(i, r, t); } parseConditional(t, r, n) { if (this.eat(17)) { let i = this.startNodeAt(r); return i.test = t, i.consequent = this.parseMaybeAssignAllowIn(), this.expect(14), i.alternate = this.parseMaybeAssign(), this.finishNode( i, "ConditionalExpression"); } return t; } parseMaybeUnaryOrPrivate(t) { return this.match(138) ? this.parsePrivateName() : this.parseMaybeUnary(t); } parseExprOps(t) { let r = this.state.startLoc, n = this.state.potentialArrowAt, i = this.parseMaybeUnaryOrPrivate(t); return this.shouldExitDescending(i, n) ? i : this.parseExprOp(i, r, -1); } parseExprOp(t, r, n) { if (this.isPrivateName(t)) { let a = this.getPrivateNameSV(t); (n >= Rl(58) || !this.prodParam.hasIn || !this.match(58)) && this.raise(_.PrivateInExpectedIn, t, { identifierName: a }), this.classScope.usePrivateName(a, t.loc.start); } let i = this.state.type; if (KK(i) && (this.prodParam.hasIn || !this.match(58))) { let a = Rl(i); if (a > n) { if (i === 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 = i === 41 || i === 42, u = i === 40; if (u && (a = Rl(42)), this.next(), i === 39 && this.hasPlugin(["pipelineOperator", { proposal: "minimal" }]) && this.state.type === 96 && this.prodParam.hasAwait) throw this.raise(_.UnexpectedAwaitAfterPipelineBody, this.state.startLoc); o.right = this.parseExprOpRightExpr(i, a); let c = this.finishNode(o, l || u ? "LogicalExpression" : "BinaryExpression"), f = this.state.type; if (u && (f === 41 || f === 42) || l && f === 40) throw this.raise(_.MixingCoalesceWithLogical, this.state.startLoc); return this.parseExprOp(c, r, n); } } return t; } parseExprOpRightExpr(t, r) { let n = this.state.startLoc; switch (t) { case 39: switch (this.getPluginOption("pipelineOperator", "proposal")) { case "hack": return this.withTopicBindingContext(() => this.parseHackPipeBody()); case "smart": return this.withTopicBindingContext(() => { if (this.prodParam.hasYield && this.isContextual(108)) throw this.raise(_.PipeBodyIsTighter, this.state.startLoc); return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t, r), n); }); case "fsharp": return this.withSoloAwaitPermittingContext(() => this.parseFSharpPipelineBody(r)); } default: return this.parseExprOpBaseRightExpr(t, r); } } parseExprOpBaseRightExpr(t, r) { let n = this.state.startLoc; return this.parseExprOp(this.parseMaybeUnaryOrPrivate(), n, JK(t) ? r - 1 : r); } parseHackPipeBody() { var t; let { startLoc: r } = this.state, n = this.parseMaybeAssign(); return BK.has(n.type) && !((t = n.extra) != null && t.parenthesized) && this.raise(_.PipeUnparenthesizedBody, r, { type: n.type }), this.topicReferenceWasUsedInCurrentContext() || this.raise(_.PipeTopicUnused, r), n; } checkExponentialAfterUnary(t) { this.match(57) && this.raise(_.UnexpectedTokenUnaryExponentiation, t.argument); } parseMaybeUnary(t, r) { let n = this.state.startLoc, i = this.isContextual(96); if (i && this.recordAwaitIfAllowed()) { this.next(); let u = this.parseAwait(n); return r || this.checkExponentialAfterUnary(u), u; } let a = this.match(34), o = this.startNode(); if (HK(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(_.StrictDelete, o) : this.hasPropertyAsPrivateName(c) && this.raise(_.DeletePrivateField, o); } if (!a) return r || this.checkExponentialAfterUnary(o), this.finishNode(o, "UnaryExpression"); } let l = this.parseUpdate(o, a, t); if (i) { let { type: u } = this.state; if ((this.hasPlugin("v8intrinsic") ? uh(u) : uh(u) && !this.match(54)) && !this.isAmbiguousAwait()) return this.raiseOverwrite(_.AwaitNotInAsyncContext, n), this.parseAwait(n); } return l; } parseUpdate(t, r, n) { if (r) { let o = t; return this.checkLVal(o.argument, this.finishNode(o, "UpdateExpression")), t; } let i = this.state.startLoc, a = this.parseExprSubscripts(n); if (this.checkExpressionErrors(n, !1)) return a; for (; GK(this.state.type) && !this.canInsertSemicolon(); ) { let o = this.startNodeAt(i); 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, n = this.state.potentialArrowAt, i = this.parseExprAtom(t); return this.shouldExitDescending(i, n) ? i : this.parseSubscripts(i, r); } parseSubscripts(t, r, n) { let i = { optionalChainMember: !1, maybeAsyncArrow: this.atPossibleAsyncArrow(t), stop: !1 }; do t = this.parseSubscript(t, r, n, i), i.maybeAsyncArrow = !1; while (!i.stop); return t; } parseSubscript(t, r, n, i) { let { type: a } = this.state; if (!n && a === 15) return this.parseBind(t, r, n, i); if (Vl(a)) return this.parseTaggedTemplateExpression(t, r, i); let o = !1; if (a === 18) { if (n && (this.raise(_.OptionalChainingNoNew, this.state.startLoc), this.lookaheadCharCode() === 40)) return i.stop = !0, t; i.optionalChainMember = o = !0, this.next(); } if (!n && this.match(10)) return this.parseCoverCallAndAsyncArrowHead(t, r, i, o); { let l = this.eat(0); return l || o || this.eat(16) ? this.parseMember(t, r, i, l, o) : (i.stop = !0, t); } } parseMember(t, r, n, i, a) { let o = this.startNodeAt(r); return o.object = t, o.computed = i, i ? (o.property = this.parseExpression(), this.expect(3)) : this.match(138) ? (t.type === "Super" && this.raise(_.SuperPrivateField, r), this.classScope.usePrivateName(this.state.value, this.state.startLoc), o.property = this.parsePrivateName()) : o.property = this.parseIdentifier(!0), n.optionalChainMember ? (o.optional = a, this.finishNode(o, "OptionalMemberExpression")) : this. finishNode(o, "MemberExpression"); } parseBind(t, r, n, i) { let a = this.startNodeAt(r); return a.object = t, this.next(), a.callee = this.parseNoCallExpr(), i.stop = !0, this.parseSubscripts(this.finishNode(a, "BindExpress\ ion"), r, n); } parseCoverCallAndAsyncArrowHead(t, r, n, i) { 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 } = n; u && (this.expressionScope.enter(yG()), o = new Pi()), c && (l.optional = i), i ? l.arguments = this.parseCallExpressionArguments(11) : l.arguments = this.parseCallExpressionArguments(11, t.type === "Import", t.type !== "Super", l, o); let f = this.finishCallExpression(l, c); return u && this.shouldParseAsyncArrow() && !i ? (n.stop = !0, this.checkDestructuringPrivate(o), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), f = this.parseAsyncArrowFromCallExpression(this.startNodeAt(r), f)) : (u && (this.checkExpressionErrors(o, !0), this.expressionScope.exit()), this.toReferencedArguments(f)), this.state.maybeInArrowParameters = a, f; } toReferencedArguments(t, r) { this.toReferencedListDeep(t.arguments, r); } parseTaggedTemplateExpression(t, r, n) { let i = this.startNodeAt(r); return i.tag = t, i.quasi = this.parseTemplate(!0), n.optionalChainMember && this.raise(_.OptionalChainingNoTemplate, r), this.finishNode( i, "TaggedTemplateExpression"); } atPossibleAsyncArrow(t) { return t.type === "Identifier" && t.name === "async" && this.state.lastTokEndLoc.index === t.end && !this.canInsertSemicolon() && t.end - t.start === 5 && t.start === this.state.potentialArrowAt; } expectImportAttributesPlugin() { this.hasPlugin("importAssertions") || this.expectPlugin("importAttributes"); } finishCallExpression(t, r) { if (t.callee.type === "Import") if (t.arguments.length === 2 && (this.hasPlugin("moduleAttributes") || this.expectImportAttributesPlugin()), t.arguments.length === 0 || t.arguments.length > 2) this.raise(_.ImportCallArity, t, { maxArgumentCount: this.hasPlugin("importAttributes") || this.hasPlugin("importAssertions") || this.hasPlugin("moduleAttributes") ? 2 : 1 }); else for (let n of t.arguments) n.type === "SpreadElement" && this.raise(_.ImportCallSpreadArgument, n); return this.finishNode(t, r ? "OptionalCallExpression" : "CallExpression"); } parseCallExpressionArguments(t, r, n, i, a) { let o = [], l = !0, u = this.state.inFSharpPipelineDirectBody; for (this.state.inFSharpPipelineDirectBody = !1; !this.eat(t); ) { if (l) l = !1; else if (this.expect(12), this.match(t)) { r && !this.hasPlugin("importAttributes") && !this.hasPlugin("importAssertions") && !this.hasPlugin("moduleAttributes") && this.raise( _.ImportCallArgumentTrailingComma, this.state.lastTokStartLoc), i && this.addTrailingCommaExtraToNode(i), this.next(); break; } o.push(this.parseExprListItem(!1, a, n)); } return this.state.inFSharpPipelineDirectBody = u, o; } shouldParseAsyncArrow() { return this.match(19) && !this.canInsertSemicolon(); } parseAsyncArrowFromCallExpression(t, r) { var n; return this.resetPreviousNodeTrailingComments(r), this.expect(19), this.parseArrowExpression(t, r.arguments, !0, (n = r.extra) == null ? void 0 : n.trailingCommaLoc), r.innerComments && Ja(t, r.innerComments), r.callee.trailingComments && Ja(t, r.callee.trailingComments), t; } parseNoCallExpr() { let t = this.state.startLoc; return this.parseSubscripts(this.parseExprAtom(), t, !0); } parseExprAtom(t) { let r, n = null, { type: i } = this.state; switch (i) { case 79: return this.parseSuper(); case 83: return r = this.startNode(), this.next(), this.match(16) ? this.parseImportMetaProperty(r) : this.match(10) ? this.options.createImportExpressions ? this.parseImportCall(r) : this.finishNode(r, "Import") : (this.raise(_.UnsupportedImport, this.state.lastTokStartLoc), this.finishNode( r, "Import")); case 78: return r = this.startNode(), this.next(), this.finishNode(r, "ThisExpression"); case 90: return this.parseDo(this.startNode(), !1); case 56: case 31: return this.readRegexp(), this.parseRegExpLiteral(this.state.value); case 134: return this.parseNumericLiteral(this.state.value); case 135: return this.parseBigIntLiteral(this.state.value); case 136: return this.parseDecimalLiteral(this.state.value); case 133: return this.parseStringLiteral(this.state.value); case 84: return this.parseNullLiteral(); case 85: return this.parseBooleanLiteral(!0); case 86: return this.parseBooleanLiteral(!1); case 10: { let a = this.state.potentialArrowAt === this.state.start; return this.parseParenAndDistinguishExpression(a); } case 2: case 1: return this.parseArrayLike(this.state.type === 2 ? 4 : 3, !1, !0); case 0: return this.parseArrayLike(3, !0, !1, t); case 6: case 7: return this.parseObjectLike(this.state.type === 6 ? 9 : 8, !1, !0); case 5: return this.parseObjectLike(8, !1, !1, t); case 68: return this.parseFunctionOrFunctionSent(); case 26: n = this.parseDecorators(); case 80: return this.parseClass(this.maybeTakeDecorators(n, this.startNode()), !1); case 77: return this.parseNewOrNewTarget(); case 25: case 24: return this.parseTemplate(!1); case 15: { r = this.startNode(), this.next(), r.object = null; let a = r.callee = this.parseNoCallExpr(); if (a.type === "MemberExpression") return this.finishNode(r, "BindExpression"); throw this.raise(_.UnsupportedBind, a); } case 138: return this.raise(_.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); this.unexpected(); break; } case 47: { let a = this.input.codePointAt(this.nextTokenStart()); wn(a) || a === 62 ? this.expectOnePlugin(["jsx", "flow", "typescript"]) : this.unexpected(); break; } default: if (tt(i)) { 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 (tt(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 this.unexpected(); } } parseTopicReferenceThenEqualsSign(t, r) { let n = this.getPluginOption("pipelineOperator", "proposal"); if (n) return this.state.type = t, this.state.value = r, this.state.pos--, this.state.end--, this.state.endLoc = ar(this.state.endLoc, -1), this.parseTopicReference(n); this.unexpected(); } parseTopicReference(t) { let r = this.startNode(), n = this.state.startLoc, i = this.state.type; return this.next(), this.finishTopicReference(r, n, t, i); } finishTopicReference(t, r, n, i) { if (this.testTopicReferenceConfiguration(n, r, i)) { let a = n === "smart" ? "PipelinePrimaryTopicReference" : "TopicReference"; return this.topicReferenceIsAllowedInCurrentContext() || this.raise(n === "smart" ? _.PrimaryTopicNotAllowed : _.PipeTopicUnbound, r), this.registerTopicReference(), this.finishNode(t, a); } else throw this.raise(_.PipeTopicUnconfiguredToken, r, { token: ns(i) }); } testTopicReferenceConfiguration(t, r, n) { switch (t) { case "hack": return this.hasPlugin(["pipelineOperator", { topicToken: ns(n) }]); case "smart": return n === 27; default: throw this.raise(_.PipeTopicRequiresHackPipes, r); } } parseAsyncArrowUnaryFunction(t) { this.prodParam.enter(ql(!0, this.prodParam.hasYield)); let r = [this.parseIdentifier()]; return this.prodParam.exit(), this.hasPrecedingLineBreak() && this.raise(_.LineTerminatorBeforeArrow, this.state.curPosition()), this. expect(19), this.parseArrowExpression(t, r, !0); } parseDo(t, r) { this.expectPlugin("doExpressions"), r && this.expectPlugin("asyncDoExpressions"), t.async = r, this.next(); let n = this.state.labels; return this.state.labels = [], r ? (this.prodParam.enter(2), t.body = this.parseBlock(), this.prodParam.exit()) : t.body = this.parseBlock(), this.state.labels = n, this.finishNode(t, "DoExpression"); } parseSuper() { let t = this.startNode(); return this.next(), this.match(10) && !this.scope.allowDirectSuper && !this.options.allowSuperOutsideMethod ? this.raise(_.SuperNotAllowed, t) : !this.scope.allowSuper && !this.options.allowSuperOutsideMethod && this.raise(_.UnexpectedSuper, t), !this.match(10) && !this.match( 0) && !this.match(16) && this.raise(_.UnsupportedSuper, t), this.finishNode(t, "Super"); } parsePrivateName() { let t = this.startNode(), r = this.startNodeAt(ar(this.state.startLoc, 1)), n = this.state.value; return this.next(), t.id = this.createIdentifier(r, n), this.finishNode(t, "PrivateName"); } parseFunctionOrFunctionSent() { let t = this.startNode(); if (this.next(), this.prodParam.hasYield && this.match(16)) { let r = this.createIdentifier(this.startNodeAtNode(t), "function"); return this.next(), this.match(103) ? this.expectPlugin("functionSent") : this.hasPlugin("functionSent") || this.unexpected(), this. parseMetaProperty(t, r, "sent"); } return this.parseFunction(t); } parseMetaProperty(t, r, n) { t.meta = r; let i = this.state.containsEsc; return t.property = this.parseIdentifier(!0), (t.property.name !== n || i) && this.raise(_.UnsupportedMetaProperty, t.property, { target: r.name, onlyValidPropertyName: n }), this.finishNode(t, "MetaProperty"); } parseImportMetaProperty(t) { let r = this.createIdentifier(this.startNodeAtNode(t), "import"); if (this.next(), this.isContextual(101)) this.inModule || this.raise(_.ImportMetaOutsideModule, r), this.sawUnambiguousESM = !0; else if (this.isContextual(105) || this.isContextual(97)) { let n = this.isContextual(105); if (n || this.unexpected(), this.expectPlugin(n ? "sourcePhaseImports" : "deferredImportEvaluation"), !this.options.createImportExpressions) throw this.raise(_.DynamicImportPhaseRequiresImportExpressions, this.state.startLoc, { phase: this.state.value }); return this.next(), t.phase = n ? "source" : "defer", this.parseImportCall(t); } return this.parseMetaProperty(t, r, "meta"); } parseLiteralAtNode(t, r, n) { return this.addExtra(n, "rawValue", t), this.addExtra(n, "raw", this.input.slice(n.start, this.state.end)), n.value = t, this.next(), this. finishNode(n, r); } parseLiteral(t, r) { let n = this.startNode(); return this.parseLiteralAtNode(t, r, n); } parseStringLiteral(t) { return this.parseLiteral(t, "StringLiteral"); } parseNumericLiteral(t) { return this.parseLiteral(t, "NumericLiteral"); } parseBigIntLiteral(t) { return this.parseLiteral(t, "BigIntLiteral"); } parseDecimalLiteral(t) { return this.parseLiteral(t, "DecimalLiteral"); } parseRegExpLiteral(t) { let r = this.startNode(); return this.addExtra(r, "raw", this.input.slice(r.start, this.state.end)), r.pattern = t.pattern, r.flags = t.flags, this.next(), this. finishNode(r, "RegExpLiteral"); } parseBooleanLiteral(t) { let r = this.startNode(); return r.value = t, this.next(), this.finishNode(r, "BooleanLiteral"); } parseNullLiteral() { let t = this.startNode(); return this.next(), this.finishNode(t, "NullLiteral"); } parseParenAndDistinguishExpression(t) { let r = this.state.startLoc, n; this.next(), this.expressionScope.enter(mG()); let i = this.state.maybeInArrowParameters, a = this.state.inFSharpPipelineDirectBody; this.state.maybeInArrowParameters = !0, this.state.inFSharpPipelineDirectBody = !1; let o = this.state.startLoc, l = [], u = new Pi(), c = !0, f, p; for (; !this.match(11); ) { if (c) c = !1; else if (this.expect(12, u.optionalParametersLoc === null ? null : u.optionalParametersLoc), this.match(11)) { p = this.state.startLoc; break; } if (this.match(21)) { let v = this.state.startLoc; if (f = this.state.startLoc, l.push(this.parseParenItem(this.parseRestBinding(), v)), !this.checkCommaAfterRest(41)) break; } else l.push(this.parseMaybeAssignAllowIn(u, this.parseParenItem)); } let h = this.state.lastTokEndLoc; this.expect(11), this.state.maybeInArrowParameters = i, this.state.inFSharpPipelineDirectBody = a; let y = this.startNodeAt(r); return t && this.shouldParseArrow(l) && (y = this.parseArrow(y)) ? (this.checkDestructuringPrivate(u), this.expressionScope.validateAsPattern(), this.expressionScope.exit(), this.parseArrowExpression(y, l, !1), y) : (this.expressionScope.exit(), l.length || this.unexpected(this. state.lastTokStartLoc), p && this.unexpected(p), f && this.unexpected(f), this.checkExpressionErrors(u, !0), this.toReferencedListDeep( l, !0), l.length > 1 ? (n = this.startNodeAt(o), n.expressions = l, this.finishNode(n, "SequenceExpression"), this.resetEndLocation(n, h)) : n = l[0], this.wrapParenthesis(r, n)); } wrapParenthesis(t, r) { if (!this.options.createParenthesizedExpressions) return this.addExtra(r, "parenthesized", !0), this.addExtra(r, "parenStart", t.index), this.takeSurroundingComments(r, t.index, this. state.lastTokEndLoc.index), r; let n = this.startNodeAt(t); return n.expression = r, this.finishNode(n, "ParenthesizedExpression"); } shouldParseArrow(t) { return !this.canInsertSemicolon(); } parseArrow(t) { if (this.eat(19)) return t; } parseParenItem(t, r) { return t; } parseNewOrNewTarget() { let t = this.startNode(); if (this.next(), this.match(16)) { let r = this.createIdentifier(this.startNodeAtNode(t), "new"); this.next(); let n = this.parseMetaProperty(t, r, "target"); return !this.scope.inNonArrowFunction && !this.scope.inClass && !this.options.allowNewTargetOutsideFunction && this.raise(_.UnexpectedNewTarget, n), n; } return this.parseNew(t); } parseNew(t) { if (this.parseNewCallee(t), this.eat(10)) { let r = this.parseExprList(11); this.toReferencedList(r), t.arguments = r; } else t.arguments = []; return this.finishNode(t, "NewExpression"); } parseNewCallee(t) { let r = this.match(83), n = this.parseNoCallExpr(); t.callee = n, r && (n.type === "Import" || n.type === "ImportExpression") && this.raise(_.ImportCallNotNewExpression, n); } parseTemplateElement(t) { let { start: r, startLoc: n, end: i, value: a } = this.state, o = r + 1, l = this.startNodeAt(ar(n, 1)); a === null && (t || this.raise(_.InvalidEscapeSequenceTemplate, ar(this.state.firstInvalidTemplateEscapePos, 1))); let u = this.match(24), c = u ? -1 : -2, f = i + c; l.value = { raw: this.input.slice(o, f).replace(/\r\n?/g, ` `), cooked: a === null ? null : a.slice(1, c) }, l.tail = u, this.next(); let p = this.finishNode(l, "TemplateElement"); return this.resetEndLocation(p, ar(this.state.lastTokEndLoc, c)), p; } parseTemplate(t) { let r = this.startNode(), n = this.parseTemplateElement(t), i = [n], a = []; for (; !n.tail; ) a.push(this.parseTemplateSubstitution()), this.readTemplateContinuation(), i.push(n = this.parseTemplateElement(t)); return r.expressions = a, r.quasis = i, this.finishNode(r, "TemplateLiteral"); } parseTemplateSubstitution() { return this.parseExpression(); } parseObjectLike(t, r, n, i) { n && this.expectPlugin("recordAndTuple"); let a = this.state.inFSharpPipelineDirectBody; this.state.inFSharpPipelineDirectBody = !1; let o = /* @__PURE__ */ Object.create(null), 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 f; r ? f = this.parseBindingProperty() : (f = this.parsePropertyDefinition(i), this.checkProto(f, n, o, i)), n && !this.isObjectProperty( f) && f.type !== "SpreadElement" && this.raise(_.InvalidRecordProperty, f), f.shorthand && this.addExtra(f, "shorthand", !0), u.properties. push(f); } this.next(), this.state.inFSharpPipelineDirectBody = a; let c = "ObjectExpression"; return r ? c = "ObjectPattern" : n && (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(_.UnsupportedPropertyDecorator, this.state.startLoc); this.match(26); ) r.push(this.parseDecorator()); let n = this.startNode(), i = !1, a = !1, o; if (this.match(21)) return r.length && this.unexpected(), this.parseSpread(); r.length && (n.decorators = r, r = []), n.method = !1, t && (o = this.state.startLoc); let l = this.eat(55); this.parsePropertyNamePrefixOperator(n); let u = this.state.containsEsc; if (this.parsePropertyName(n, t), !l && !u && this.maybeAsyncOrAccessorProp(n)) { let { key: c } = n, f = c.name; f === "async" && !this.hasPrecedingLineBreak() && (i = !0, this.resetPreviousNodeTrailingComments(c), l = this.eat(55), this.parsePropertyName( n)), (f === "get" || f === "set") && (a = !0, this.resetPreviousNodeTrailingComments(c), n.kind = f, this.match(55) && (l = !0, this. raise(_.AccessorIsGenerator, this.state.curPosition(), { kind: f }), this.next()), this.parsePropertyName(n)); } return this.parseObjPropValue(n, o, l, i, !1, a, t); } getGetterSetterExpectedParamCount(t) { return t.kind === "get" ? 0 : 1; } getObjectOrClassMethodParams(t) { return t.params; } checkGetterSetterParams(t) { var r; let n = this.getGetterSetterExpectedParamCount(t), i = this.getObjectOrClassMethodParams(t); i.length !== n && this.raise(t.kind === "get" ? _.BadGetterArity : _.BadSetterArity, t), t.kind === "set" && ((r = i[i.length - 1]) == null ? void 0 : r.type) === "RestElement" && this.raise(_.BadSetterRestParameter, t); } parseObjectMethod(t, r, n, i, a) { if (a) { let o = this.parseMethod(t, r, !1, !1, !1, "ObjectMethod"); return this.checkGetterSetterParams(o), o; } if (n || r || this.match(10)) return i && this.unexpected(), t.kind = "method", t.method = !0, this.parseMethod(t, r, n, !1, !1, "ObjectMethod"); } parseObjectProperty(t, r, n, i) { if (t.shorthand = !1, this.eat(14)) return t.value = n ? this.parseMaybeDefault(this.state.startLoc) : this.parseMaybeAssignAllowIn(i), this.finishNode(t, "ObjectProper\ ty"); if (!t.computed && t.key.type === "Identifier") { if (this.checkReservedWord(t.key.name, t.key.loc.start, !0, !1), n) t.value = this.parseMaybeDefault(r, In(t.key)); else if (this.match(29)) { let a = this.state.startLoc; i != null ? i.shorthandAssignLoc === null && (i.shorthandAssignLoc = a) : this.raise(_.InvalidCoverInitializedName, a), t.value = this. parseMaybeDefault(r, In(t.key)); } else t.value = In(t.key); return t.shorthand = !0, this.finishNode(t, "ObjectProperty"); } } parseObjPropValue(t, r, n, i, a, o, l) { let u = this.parseObjectMethod(t, n, i, 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: n, value: i } = this.state, a; if (Wr(n)) a = this.parseIdentifier(!0); else switch (n) { case 134: a = this.parseNumericLiteral(i); break; case 133: a = this.parseStringLiteral(i); break; case 135: a = this.parseBigIntLiteral(i); break; case 136: a = this.parseDecimalLiteral(i); break; case 138: { let o = this.state.startLoc; r != null ? r.privateKeyLoc === null && (r.privateKeyLoc = o) : this.raise(_.UnexpectedPrivateField, o), a = this.parsePrivateName(); break; } default: this.unexpected(); } t.key = a, n !== 138 && (t.computed = !1); } } initFunction(t, r) { t.id = null, t.generator = !1, t.async = r; } parseMethod(t, r, n, i, a, o, l = !1) { this.initFunction(t, n), t.generator = r, this.scope.enter(18 | (l ? 64 : 0) | (a ? 32 : 0)), this.prodParam.enter(ql(n, t.generator)), this.parseFunctionParams(t, i); let u = this.parseFunctionBodyAndFinish(t, o, !0); return this.prodParam.exit(), this.scope.exit(), u; } parseArrayLike(t, r, n, i) { n && this.expectPlugin("recordAndTuple"); let a = this.state.inFSharpPipelineDirectBody; this.state.inFSharpPipelineDirectBody = !1; let o = this.startNode(); return this.next(), o.elements = this.parseExprList(t, !n, i, o), this.state.inFSharpPipelineDirectBody = a, this.finishNode(o, n ? "T\ upleExpression" : "ArrayExpression"); } parseArrowExpression(t, r, n, i) { this.scope.enter(6); let a = ql(n, !1); !this.match(5) && this.prodParam.hasIn && (a |= 8), this.prodParam.enter(a), this.initFunction(t, n); let o = this.state.maybeInArrowParameters; return r && (this.state.maybeInArrowParameters = !0, this.setArrowFunctionParameters(t, r, i)), 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, n) { this.toAssignableList(r, n, !1), t.params = r; } parseFunctionBodyAndFinish(t, r, n = !1) { return this.parseFunctionBody(t, !1, n), this.finishNode(t, r); } parseFunctionBody(t, r, n = !1) { let i = r && !this.match(5); if (this.expressionScope.enter(dT()), i) 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(_.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 && !n && !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, n = t.length; r < n; r++) if (!this.isSimpleParameter(t[r])) return !1; return !0; } checkParams(t, r, n, i = !0) { let a = !r && /* @__PURE__ */ new Set(), o = { type: "FormalParameters" }; for (let l of t.params) this.checkLVal(l, o, 5, a, i); } parseExprList(t, r, n, i) { let a = [], o = !0; for (; !this.eat(t); ) { if (o) o = !1; else if (this.expect(12), this.match(t)) { i && this.addTrailingCommaExtraToNode(i), this.next(); break; } a.push(this.parseExprListItem(r, n)); } return a; } parseExprListItem(t, r, n) { let i; if (this.match(12)) t || this.raise(_.UnexpectedToken, this.state.curPosition(), { unexpected: "," }), i = null; else if (this.match(21)) { let a = this.state.startLoc; i = this.parseParenItem(this.parseSpread(r), a); } else if (this.match(17)) { this.expectPlugin("partialApplication"), n || this.raise(_.UnexpectedArgumentPlaceholder, this.state.startLoc); let a = this.startNode(); this.next(), i = this.finishNode(a, "ArgumentPlaceholder"); } else i = this.parseMaybeAssignAllowIn(r, this.parseParenItem); return i; } parseIdentifier(t) { let r = this.startNode(), n = this.parseIdentifierName(t); return this.createIdentifier(r, n); } createIdentifier(t, r) { return t.name = r, t.loc.identifierName = r, this.finishNode(t, "Identifier"); } parseIdentifierName(t) { let r, { startLoc: n, type: i } = this.state; Wr(i) ? r = this.state.value : this.unexpected(); let a = UK(i); return t ? a && this.replaceToken(132) : this.checkReservedWord(r, n, a, !1), this.next(), r; } checkReservedWord(t, r, n, i) { if (t.length > 10 || !aG(t)) return; if (n && nG(t)) { this.raise(_.UnexpectedKeyword, r, { keyword: t }); return; } if ((this.state.strict ? i ? uT : oT : aT)(t, this.inModule)) { this.raise(_.UnexpectedReservedWord, r, { reservedWord: t }); return; } else if (t === "yield") { if (this.prodParam.hasYield) { this.raise(_.YieldBindingIdentifier, r); return; } } else if (t === "await") { if (this.prodParam.hasAwait) { this.raise(_.AwaitBindingIdentifier, r); return; } if (this.scope.inStaticBlock) { this.raise(_.AwaitBindingIdentifierInStaticBlock, r); return; } this.expressionScope.recordAsyncArrowParametersError(r); } else if (t === "arguments" && this.scope.inClassAndNotInNonArrowFunction) { this.raise(_.ArgumentsInClass, r); return; } } recordAwaitIfAllowed() { let t = this.prodParam.hasAwait || this.options.allowAwaitOutsideFunction && !this.scope.inFunction; return t && !this.scope.inFunction && (this.state.hasTopLevelAwait = !0), t; } parseAwait(t) { let r = this.startNodeAt(t); return this.expressionScope.recordParameterInitializerError(_.AwaitExpressionFormalParameter, r), this.eat(55) && this.raise(_.ObsoleteAwaitStar, r), !this.scope.inFunction && !this.options.allowAwaitOutsideFunction && (this.isAmbiguousAwait() ? this.ambiguousScriptDifferentAst = !0 : this.sawUnambiguousESM = !0), this.state.soloAwait || (r.argument = this.parseMaybeUnary(null, !0)), this.finishNode(r, "AwaitExp\ ression"); } isAmbiguousAwait() { if (this.hasPrecedingLineBreak()) return !0; let { type: t } = this.state; return t === 53 || t === 10 || t === 0 || Vl(t) || t === 102 && !this.state.containsEsc || t === 137 || t === 56 || this.hasPlugin("v8\ intrinsic") && t === 54; } parseYield() { let t = this.startNode(); this.expressionScope.recordParameterInitializerError(_.YieldInParameter, t), this.next(); let r = !1, n = null; if (!this.hasPrecedingLineBreak()) switch (r = this.eat(55), this.state.type) { case 13: case 139: case 8: case 11: case 3: case 9: case 14: case 12: if (!r) break; default: n = this.parseMaybeAssign(); } return t.delegate = r, t.argument = n, this.finishNode(t, "YieldExpression"); } parseImportCall(t) { return this.next(), t.source = this.parseMaybeAssignAllowIn(), (this.hasPlugin("importAttributes") || this.hasPlugin("importAssertions")) && (t.options = null), this.eat(12) && (this.expectImportAttributesPlugin(), this.match(11) || (t.options = this.parseMaybeAssignAllowIn(), this.eat(12))), this.expect(11), this.finishNode(t, "ImportExpression"); } checkPipelineAtInfixOperator(t, r) { this.hasPlugin(["pipelineOperator", { proposal: "smart" }]) && t.type === "SequenceExpression" && this.raise(_.PipelineHeadSequenceExpression, r); } parseSmartPipelineBodyInStyle(t, r) { if (this.isSimpleReference(t)) { let n = this.startNodeAt(r); return n.callee = t, this.finishNode(n, "PipelineBareFunction"); } else { let n = this.startNodeAt(r); return this.checkSmartPipeTopicBodyEarlyErrors(r), n.expression = t, this.finishNode(n, "PipelineTopicExpression"); } } isSimpleReference(t) { switch (t.type) { case "MemberExpression": return !t.computed && this.isSimpleReference(t.object); case "Identifier": return !0; default: return !1; } } checkSmartPipeTopicBodyEarlyErrors(t) { if (this.match(19)) throw this.raise(_.PipelineBodyNoArrow, this.state.startLoc); this.topicReferenceWasUsedInCurrentContext() || this.raise(_.PipelineTopicUnused, t); } withTopicBindingContext(t) { let r = this.state.topicContext; this.state.topicContext = { maxNumOfResolvableTopics: 1, maxTopicIndex: null }; try { return t(); } finally { this.state.topicContext = r; } } withSmartMixTopicForbiddingContext(t) { if (this.hasPlugin(["pipelineOperator", { proposal: "smart" }])) { let r = this.state.topicContext; this.state.topicContext = { maxNumOfResolvableTopics: 0, maxTopicIndex: null }; try { return t(); } finally { this.state.topicContext = r; } } else return t(); } withSoloAwaitPermittingContext(t) { let r = this.state.soloAwait; this.state.soloAwait = !0; try { return t(); } finally { this.state.soloAwait = r; } } allowInAnd(t) { let r = this.prodParam.currentFlags(); if (8 & ~r) { this.prodParam.enter(r | 8); try { return t(); } finally { this.prodParam.exit(); } } return t(); } disallowInAnd(t) { let r = this.prodParam.currentFlags(); if (8 & r) { this.prodParam.enter(r & -9); try { return t(); } finally { this.prodParam.exit(); } } return t(); } registerTopicReference() { this.state.topicContext.maxTopicIndex = 0; } topicReferenceIsAllowedInCurrentContext() { return this.state.topicContext.maxNumOfResolvableTopics >= 1; } topicReferenceWasUsedInCurrentContext() { return this.state.topicContext.maxTopicIndex != null && this.state.topicContext.maxTopicIndex >= 0; } parseFSharpPipelineBody(t) { let r = this.state.startLoc; this.state.potentialArrowAt = this.state.start; let n = this.state.inFSharpPipelineDirectBody; this.state.inFSharpPipelineDirectBody = !0; let i = this.parseExprOp(this.parseMaybeUnaryOrPrivate(), r, t); return this.state.inFSharpPipelineDirectBody = n, i; } parseModuleExpression() { this.expectPlugin("moduleBlocks"); let t = this.startNode(); this.next(), this.match(5) || this.unexpected(null, 5); let r = this.startNodeAt(this.state.endLoc); this.next(); let n = this.initializeScopes(!0); this.enterInitialScopes(); try { t.body = this.parseProgram(r, 8, "module"); } finally { n(); } return this.finishNode(t, "ModuleExpression"); } parsePropertyNamePrefixOperator(t) { } }, oh = { kind: 1 }, RG = { kind: 2 }, qG = /[\uD800-\uDFFF]/u, lh = /in(?:stanceof)?/y; function UG(e, t) { for (let r = 0; r < e.length; r++) { let n = e[r], { type: i } = n; if (typeof i == "number") { { if (i === 138) { let { loc: a, start: o, value: l, end: u } = n, c = o + 1, f = ar(a.start, 1); e.splice(r, 1, new un({ type: An(27), value: "#", start: o, end: c, startLoc: a.start, endLoc: f }), new un({ type: An(132), value: l, start: c, end: u, startLoc: f, endLoc: a.end })), r++; continue; } if (Vl(i)) { let { loc: a, start: o, value: l, end: u } = n, c = o + 1, f = ar(a.start, 1), p; t.charCodeAt(o) === 96 ? p = new un({ type: An(22), value: "`", start: o, end: c, startLoc: a.start, endLoc: f }) : p = new un({ type: An(8), value: "}", start: o, end: c, startLoc: a.start, endLoc: f }); let h, y, v, d; i === 24 ? (y = u - 1, v = ar(a.end, -1), h = l === null ? null : l.slice(1, -1), d = new un({ type: An(22), value: "`", start: y, end: u, startLoc: v, endLoc: a.end })) : (y = u - 2, v = ar(a.end, -2), h = l === null ? null : l.slice(1, -2), d = new un({ type: An(23), value: "${", start: y, end: u, startLoc: v, endLoc: a.end })), e.splice(r, 1, p, new un({ type: An(20), value: h, start: c, end: y, startLoc: f, endLoc: v }), d), r += 2; continue; } } n.type = An(i); } } return e; } s(UG, "babel7CompatTokens"); var Dh = class extends wh { static { s(this, "StatementParser"); } parseTopLevel(t, r) { return t.program = this.parseProgram(r), t.comments = this.comments, this.options.tokens && (t.tokens = UG(this.tokens, this.input)), this. finishNode(t, "File"); } parseProgram(t, r = 139, n = this.options.sourceType) { if (t.sourceType = n, t.interpreter = this.parseInterpreterDirective(), this.parseBlockBody(t, !0, !0, r), this.inModule) { if (!this.options.allowUndeclaredExports && this.scope.undefinedExports.size > 0) for (let [a, o] of Array.from(this.scope.undefinedExports)) this.raise(_.ModuleExportUndefined, o, { localName: a }); this.addExtra(t, "topLevelAwait", this.state.hasTopLevelAwait); } let i; return r === 139 ? i = this.finishNode(t, "Program") : i = this.finishNodeAt(t, "Program", ar(this.state.startLoc, -1)), i; } stmtToDirective(t) { let r = t; r.type = "Directive", r.value = r.expression, delete r.expression; let n = r.value, i = n.value, a = this.input.slice(n.start, n.end), o = n.value = a.slice(1, -1); return this.addExtra(n, "raw", a), this.addExtra(n, "rawValue", o), this.addExtra(n, "expressionValue", i), n.type = "DirectiveLiteral", r; } parseInterpreterDirective() { if (!this.match(28)) return null; let t = this.startNode(); return t.value = this.state.value, this.next(), this.finishNode(t, "InterpreterDirective"); } isLet() { return this.isContextual(100) ? this.hasFollowingBindingAtom() : !1; } chStartsBindingIdentifier(t, r) { if (wn(t)) { if (lh.lastIndex = r, lh.test(this.input)) { let n = this.codePointAtPos(lh.lastIndex); if (!xi(n) && n !== 92) return !1; } return !0; } else return t === 92; } chStartsBindingPattern(t) { return t === 91 || t === 123; } hasFollowingBindingAtom() { let t = this.nextTokenStart(), r = this.codePointAtPos(t); return this.chStartsBindingPattern(r) || this.chStartsBindingIdentifier(r, t); } hasInLineFollowingBindingIdentifierOrBrace() { let t = this.nextTokenInLineStart(), r = this.codePointAtPos(t); return r === 123 || this.chStartsBindingIdentifier(r, t); } startsUsingForOf() { let { type: t, containsEsc: r } = this.lookahead(); if (t === 102 && !r) return !1; if (tt(t) && !this.hasFollowingLineBreak()) return this.expectPlugin("explicitResourceManagement"), !0; } startsAwaitUsing() { let t = this.nextTokenInLineStart(); if (this.isUnparsedContextual(t, "using")) { t = this.nextTokenInLineStartSince(t + 5); let r = this.codePointAtPos(t); if (this.chStartsBindingIdentifier(r, t)) return this.expectPlugin("explicitResourceManagement"), !0; } return !1; } parseModuleItem() { return this.parseStatementLike(15); } parseStatementListItem() { return this.parseStatementLike(6 | (!this.options.annexB || this.state.strict ? 0 : 8)); } parseStatementOrSloppyAnnexBFunctionDeclaration(t = !1) { let r = 0; return this.options.annexB && !this.state.strict && (r |= 4, t && (r |= 8)), this.parseStatementLike(r); } parseStatement() { return this.parseStatementLike(0); } parseStatementLike(t) { let r = null; return this.match(26) && (r = this.parseDecorators(!0)), this.parseStatementContent(t, r); } parseStatementContent(t, r) { let n = this.state.type, i = this.startNode(), a = !!(t & 2), o = !!(t & 4), l = t & 1; switch (n) { case 60: return this.parseBreakContinueStatement(i, !0); case 63: return this.parseBreakContinueStatement(i, !1); case 64: return this.parseDebuggerStatement(i); case 90: return this.parseDoWhileStatement(i); case 91: return this.parseForStatement(i); case 68: if (this.lookaheadCharCode() === 46) break; return o || this.raise(this.state.strict ? _.StrictFunction : this.options.annexB ? _.SloppyFunctionAnnexB : _.SloppyFunction, this. state.startLoc), this.parseFunctionStatement(i, !1, !a && o); case 80: return a || this.unexpected(), this.parseClass(this.maybeTakeDecorators(r, i), !0); case 69: return this.parseIfStatement(i); case 70: return this.parseReturnStatement(i); case 71: return this.parseSwitchStatement(i); case 72: return this.parseThrowStatement(i); case 73: return this.parseTryStatement(i); case 96: if (!this.state.containsEsc && this.startsAwaitUsing()) return this.recordAwaitIfAllowed() ? a || this.raise(_.UnexpectedLexicalDeclaration, i) : this.raise(_.AwaitUsingNotInAsyncContext, i), this.next(), this.parseVarStatement(i, "await using"); break; case 107: if (this.state.containsEsc || !this.hasInLineFollowingBindingIdentifierOrBrace()) break; return this.expectPlugin("explicitResourceManagement"), !this.scope.inModule && this.scope.inTopLevel ? this.raise(_.UnexpectedUsingDeclaration, this.state.startLoc) : a || this.raise(_.UnexpectedLexicalDeclaration, this.state.startLoc), this.parseVarStatement(i, "using"); case 100: { if (this.state.containsEsc) break; let f = this.nextTokenStart(), p = this.codePointAtPos(f); if (p !== 91 && (!a && this.hasFollowingLineBreak() || !this.chStartsBindingIdentifier(p, f) && p !== 123)) break; } case 75: a || this.raise(_.UnexpectedLexicalDeclaration, this.state.startLoc); case 74: { let f = this.state.value; return this.parseVarStatement(i, f); } case 92: return this.parseWhileStatement(i); case 76: return this.parseWithStatement(i); case 5: return this.parseBlock(); case 13: return this.parseEmptyStatement(i); case 83: { let f = this.lookaheadCharCode(); if (f === 40 || f === 46) break; } case 82: { !this.options.allowImportExportEverywhere && !l && this.raise(_.UnexpectedImportExport, this.state.startLoc), this.next(); let f; return n === 83 ? (f = this.parseImport(i), f.type === "ImportDeclaration" && (!f.importKind || f.importKind === "value") && (this. sawUnambiguousESM = !0)) : (f = this.parseExport(i, r), (f.type === "ExportNamedDeclaration" && (!f.exportKind || f.exportKind === "value") || f.type === "ExportAllDeclaration" && (!f.exportKind || f.exportKind === "value") || f.type === "ExportDefaultDeclarati\ on") && (this.sawUnambiguousESM = !0)), this.assertModuleNodeAllowed(f), f; } default: if (this.isAsyncFunction()) return a || this.raise(_.AsyncFunctionInSingleStatementContext, this.state.startLoc), this.next(), this.parseFunctionStatement(i, !0, !a && o); } let u = this.state.value, c = this.parseExpression(); return tt(n) && c.type === "Identifier" && this.eat(14) ? this.parseLabeledStatement(i, u, c, t) : this.parseExpressionStatement(i, c, r); } assertModuleNodeAllowed(t) { !this.options.allowImportExportEverywhere && !this.inModule && this.raise(_.ImportOutsideModule, t); } decoratorsEnabledBeforeExport() { return this.hasPlugin("decorators-legacy") ? !0 : this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBefore\ Export") !== !1; } maybeTakeDecorators(t, r, n) { return t && (r.decorators && r.decorators.length > 0 ? (typeof this.getPluginOption("decorators", "decoratorsBeforeExport") != "boolea\ n" && this.raise(_.DecoratorsBeforeAfterExport, r.decorators[0]), r.decorators.unshift(...t)) : r.decorators = t, this.resetStartLocationFromNode( r, t[0]), n && this.resetStartLocationFromNode(n, r)), r; } canHaveLeadingDecorator() { return this.match(80); } parseDecorators(t) { let r = []; do r.push(this.parseDecorator()); while (this.match(26)); if (this.match(82)) t || this.unexpected(), this.decoratorsEnabledBeforeExport() || this.raise(_.DecoratorExportClass, this.state.startLoc); else if (!this.canHaveLeadingDecorator()) throw this.raise(_.UnexpectedLeadingDecorator, this.state.startLoc); return r; } parseDecorator() { this.expectOnePlugin(["decorators", "decorators-legacy"]); let t = this.startNode(); if (this.next(), this.hasPlugin("decorators")) { let r = this.state.startLoc, n; if (this.match(10)) { let i = this.state.startLoc; this.next(), n = this.parseExpression(), this.expect(11), n = this.wrapParenthesis(i, n); let a = this.state.startLoc; t.expression = this.parseMaybeDecoratorArguments(n), this.getPluginOption("decorators", "allowCallParenthesized") === !1 && t.expression !== n && this.raise(_.DecoratorArgumentsOutsideParentheses, a); } else { for (n = this.parseIdentifier(!1); this.eat(16); ) { let i = this.startNodeAt(r); i.object = n, this.match(138) ? (this.classScope.usePrivateName(this.state.value, this.state.startLoc), i.property = this.parsePrivateName()) : i.property = this.parseIdentifier(!0), i.computed = !1, n = this.finishNode(i, "MemberExpression"); } t.expression = this.parseMaybeDecoratorArguments(n); } } else t.expression = this.parseExprSubscripts(); return this.finishNode(t, "Decorator"); } parseMaybeDecoratorArguments(t) { if (this.eat(10)) { let r = this.startNodeAtNode(t); return r.callee = t, r.arguments = this.parseCallExpressionArguments(11, !1), this.toReferencedList(r.arguments), this.finishNode(r, "CallExpression"); } return t; } parseBreakContinueStatement(t, r) { return this.next(), this.isLineTerminator() ? t.label = null : (t.label = this.parseIdentifier(), this.semicolon()), this.verifyBreakContinue( t, r), this.finishNode(t, r ? "BreakStatement" : "ContinueStatement"); } verifyBreakContinue(t, r) { let n; for (n = 0; n < this.state.labels.length; ++n) { let i = this.state.labels[n]; if ((t.label == null || i.name === t.label.name) && (i.kind != null && (r || i.kind === 1) || t.label && r)) break; } if (n === this.state.labels.length) { let i = r ? "BreakStatement" : "ContinueStatement"; this.raise(_.IllegalBreakContinue, t, { type: i }); } } 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(oh), 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(oh); let r = null; if (this.isContextual(96) && this.recordAwaitIfAllowed() && (r = this.state.startLoc, this.next()), this.scope.enter(0), this.expect(10), this.match(13)) return r !== null && this.unexpected(r), this.parseFor(t, null); let n = this.isContextual(100); { let u = this.isContextual(96) && this.startsAwaitUsing(), c = u || this.isContextual(107) && this.startsUsingForOf(), f = n && this. hasFollowingBindingAtom() || c; if (this.match(74) || this.match(75) || f) { let p = this.startNode(), h; u ? (h = "await using", this.recordAwaitIfAllowed() || this.raise(_.AwaitUsingNotInAsyncContext, this.state.startLoc), this.next()) : h = this.state.value, this.next(), this.parseVar(p, !0, h); let y = this.finishNode(p, "VariableDeclaration"), v = this.match(58); return v && c && this.raise(_.ForInUsing, y), (v || this.isContextual(102)) && y.declarations.length === 1 ? this.parseForIn(t, y, r) : (r !== null && this.unexpected(r), this.parseFor(t, y)); } } let i = this.isContextual(95), a = new Pi(), o = this.parseExpression(!0, a), l = this.isContextual(102); if (l && (n && this.raise(_.ForOfLet, o), r === null && i && o.type === "Identifier" && this.raise(_.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, n) { return this.next(), this.parseFunction(t, 1 | (n ? 2 : 0) | (r ? 8 : 0)); } parseIfStatement(t) { return this.next(), t.test = this.parseHeaderExpression(), t.consequent = this.parseStatementOrSloppyAnnexBFunctionDeclaration(), t.alternate = this.eat(66) ? this.parseStatementOrSloppyAnnexBFunctionDeclaration() : null, this.finishNode(t, "IfStatement"); } parseReturnStatement(t) { return !this.prodParam.hasReturn && !this.options.allowReturnOutsideFunction && this.raise(_.IllegalReturn, this.state.startLoc), this. next(), this.isLineTerminator() ? t.argument = null : (t.argument = this.parseExpression(), this.semicolon()), this.finishNode(t, "Ret\ urnStatement"); } parseSwitchStatement(t) { this.next(), t.discriminant = this.parseHeaderExpression(); let r = t.cases = []; this.expect(5), this.state.labels.push(RG), this.scope.enter(0); let n; for (let i; !this.match(8); ) if (this.match(61) || this.match(65)) { let a = this.match(61); n && this.finishNode(n, "SwitchCase"), r.push(n = this.startNode()), n.consequent = [], this.next(), a ? n.test = this.parseExpression() : (i && this.raise(_.MultipleDefaultsInSwitch, this.state.lastTokStartLoc), i = !0, n.test = null), this.expect(14); } else n ? n.consequent.push(this.parseStatementListItem()) : this.unexpected(); return this.scope.exit(), n && this.finishNode(n, "SwitchCase"), this.next(), this.state.labels.pop(), this.finishNode(t, "SwitchState\ ment"); } parseThrowStatement(t) { return this.next(), this.hasPrecedingLineBreak() && this.raise(_.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(_.NoCatchOrFinally, t), this.finishNode( t, "TryStatement"); } parseVarStatement(t, r, n = !1) { return this.next(), this.parseVar(t, !1, r, n), this.semicolon(), this.finishNode(t, "VariableDeclaration"); } parseWhileStatement(t) { return this.next(), t.test = this.parseHeaderExpression(), this.state.labels.push(oh), t.body = this.withSmartMixTopicForbiddingContext( () => this.parseStatement()), this.state.labels.pop(), this.finishNode(t, "WhileStatement"); } parseWithStatement(t) { return this.state.strict && this.raise(_.StrictWith, this.state.startLoc), this.next(), t.object = this.parseHeaderExpression(), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.finishNode(t, "WithStatement"); } parseEmptyStatement(t) { return this.next(), this.finishNode(t, "EmptyStatement"); } parseLabeledStatement(t, r, n, i) { for (let o of this.state.labels) o.name === r && this.raise(_.LabelRedeclaration, n, { labelName: r }); let a = WK(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.state.start, l.kind = a; else break; } return this.state.labels.push({ name: r, kind: a, statementStart: this.state.start }), t.body = i & 8 ? this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0) : this.parseStatement(), this.state.labels.pop(), t.label = n, this.finishNode(t, "LabeledStatement"); } parseExpressionStatement(t, r, n) { return t.expression = r, this.semicolon(), this.finishNode(t, "ExpressionStatement"); } parseBlock(t = !1, r = !0, n) { let i = this.startNode(); return t && this.state.strictErrors.clear(), this.expect(5), r && this.scope.enter(0), this.parseBlockBody(i, t, !1, 8, n), r && this. scope.exit(), this.finishNode(i, "BlockStatement"); } isValidDirective(t) { return t.type === "ExpressionStatement" && t.expression.type === "StringLiteral" && !t.expression.extra.parenthesized; } parseBlockBody(t, r, n, i, a) { let o = t.body = [], l = t.directives = []; this.parseBlockOrModuleBlockBody(o, r ? l : void 0, n, i, a); } parseBlockOrModuleBlockBody(t, r, n, i, a) { let o = this.state.strict, l = !1, u = !1; for (; !this.match(i); ) { let c = n ? this.parseModuleItem() : this.parseStatementListItem(); if (r && !u) { if (this.isValidDirective(c)) { let f = this.stmtToDirective(c); r.push(f), !l && f.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, n) { let i = this.match(58); return this.next(), i ? n !== null && this.unexpected(n) : t.await = n !== null, r.type === "VariableDeclaration" && r.declarations[0]. init != null && (!i || !this.options.annexB || this.state.strict || r.kind !== "var" || r.declarations[0].id.type !== "Identifier") && this.raise(_.ForInOfLoopInitializer, r, { type: i ? "ForInStatement" : "ForOfStatement" }), r.type === "AssignmentPattern" && this.raise(_.InvalidLhs, r, { ancestor: { type: "ForStatement" } }), t.left = r, t.right = i ? this.parseExpression() : this.parseMaybeAssignAllowIn(), this.expect(11), t.body = this.withSmartMixTopicForbiddingContext( () => this.parseStatement()), this.scope.exit(), this.state.labels.pop(), this.finishNode(t, i ? "ForInStatement" : "ForOfStatement"); } parseVar(t, r, n, i = !1) { let a = t.declarations = []; for (t.kind = n; ; ) { let o = this.startNode(); if (this.parseVarId(o, n), o.init = this.eat(29) ? r ? this.parseMaybeAssignDisallowIn() : this.parseMaybeAssignAllowIn() : null, o. init === null && !i && (o.id.type !== "Identifier" && !(r && (this.match(58) || this.isContextual(102))) ? this.raise(_.DeclarationMissingInitializer, this.state.lastTokEndLoc, { kind: "destructuring" }) : (n === "const" || n === "using" || n === "await using") && !(this.match(58) || this.isContextual(102)) && this.raise(_.DeclarationMissingInitializer, this.state.lastTokEndLoc, { kind: n })), a.push(this.finishNode(o, "VariableDeclarator")), !this.eat(12)) break; } return t; } parseVarId(t, r) { let n = this.parseBindingAtom(); (r === "using" || r === "await using") && (n.type === "ArrayPattern" || n.type === "ObjectPattern") && this.raise(_.UsingDeclarationHasBindingPattern, n.loc.start), this.checkLVal(n, { type: "VariableDeclarator" }, r === "var" ? 5 : 8201), t.id = n; } parseAsyncFunctionExpression(t) { return this.parseFunction(t, 8); } parseFunction(t, r = 0) { let n = r & 2, i = !!(r & 1), a = i && !(r & 4), o = !!(r & 8); this.initFunction(t, o), this.match(55) && (n && this.raise(_.GeneratorInSingleStatementContext, this.state.startLoc), this.next(), t. generator = !0), i && (t.id = this.parseFunctionId(a)); let l = this.state.maybeInArrowParameters; return this.state.maybeInArrowParameters = !1, this.scope.enter(2), this.prodParam.enter(ql(o, t.generator)), i || (t.id = this.parseFunctionId()), this.parseFunctionParams(t, !1), this.withSmartMixTopicForbiddingContext(() => { this.parseFunctionBodyAndFinish(t, i ? "FunctionDeclaration" : "FunctionExpression"); }), this.prodParam.exit(), this.scope.exit(), i && !n && this.registerFunctionStatementId(t), this.state.maybeInArrowParameters = l, t; } parseFunctionId(t) { return t || tt(this.state.type) ? this.parseIdentifier() : null; } parseFunctionParams(t, r) { this.expect(10), this.expressionScope.enter(hG()), t.params = this.parseBindingList(11, 41, 2 | (r ? 4 : 0)), this.expressionScope.exit(); } registerFunctionStatementId(t) { t.id && this.scope.declareName(t.id.name, !this.options.annexB || this.state.strict || t.generator || t.async ? this.scope.treatFunctionsAsVar ? 5 : 8201 : 17, t.id.loc.start); } parseClass(t, r, n) { this.next(); let i = this.state.strict; return this.state.strict = !0, this.parseClassId(t, r, n), this.parseClassSuper(t), t.body = this.parseClassBody(!!t.superClass, i), this. finishNode(t, r ? "ClassDeclaration" : "ClassExpression"); } isClassProperty() { return this.match(29) || this.match(13) || this.match(8); } isClassMethod() { return this.match(10); } nameIsConstructor(t) { return t.type === "Identifier" && t.name === "constructor" || t.type === "StringLiteral" && t.value === "constructor"; } isNonstaticConstructor(t) { return !t.computed && !t.static && this.nameIsConstructor(t.key); } parseClassBody(t, r) { this.classScope.enter(); let n = { hadConstructor: !1, hadSuperClass: t }, i = [], a = this.startNode(); if (a.body = [], this.expect(5), this.withSmartMixTopicForbiddingContext(() => { for (; !this.match(8); ) { if (this.eat(13)) { if (i.length > 0) throw this.raise(_.DecoratorSemicolon, this.state.lastTokEndLoc); continue; } if (this.match(26)) { i.push(this.parseDecorator()); continue; } let o = this.startNode(); i.length && (o.decorators = i, this.resetStartLocationFromNode(o, i[0]), i = []), this.parseClassMember(a, o, n), o.kind === "cons\ tructor" && o.decorators && o.decorators.length > 0 && this.raise(_.DecoratorConstructor, o); } }), this.state.strict = r, this.next(), i.length) throw this.raise(_.TrailingDecorator, this.state.startLoc); return this.classScope.exit(), this.finishNode(a, "ClassBody"); } parseClassMemberFromModifier(t, r) { let n = this.parseIdentifier(!0); if (this.isClassMethod()) { let i = r; return i.kind = "method", i.computed = !1, i.key = n, i.static = !1, this.pushClassMethod(t, i, !1, !1, !1, !1), !0; } else if (this.isClassProperty()) { let i = r; return i.computed = !1, i.key = n, i.static = !1, t.body.push(this.parseClassProperty(i)), !0; } return this.resetPreviousNodeTrailingComments(n), !1; } parseClassMember(t, r, n) { let i = this.isContextual(106); if (i) { if (this.parseClassMemberFromModifier(t, r)) return; if (this.eat(5)) { this.parseClassStaticBlock(t, r); return; } } this.parseClassMemberWithIsStatic(t, r, n, i); } parseClassMemberWithIsStatic(t, r, n, i) { let a = r, o = r, l = r, u = r, c = r, f = a, p = a; if (r.static = i, this.parsePropertyNamePrefixOperator(r), this.eat(55)) { f.kind = "method"; let E = this.match(138); if (this.parseClassElementName(f), E) { this.pushClassPrivateMethod(t, o, !0, !1); return; } this.isNonstaticConstructor(a) && this.raise(_.ConstructorIsGenerator, a.key), this.pushClassMethod(t, a, !0, !1, !1, !1); return; } let h = !this.state.containsEsc && tt(this.state.type), y = this.parseClassElementName(r), v = h ? y.name : null, d = this.isPrivateName( y), b = this.state.startLoc; if (this.parsePostMemberNameModifiers(p), this.isClassMethod()) { if (f.kind = "method", d) { this.pushClassPrivateMethod(t, o, !1, !1); return; } let E = this.isNonstaticConstructor(a), I = !1; E && (a.kind = "constructor", n.hadConstructor && !this.hasPlugin("typescript") && this.raise(_.DuplicateConstructor, y), E && this. hasPlugin("typescript") && r.override && this.raise(_.OverrideOnConstructor, y), n.hadConstructor = !0, I = n.hadSuperClass), this.pushClassMethod( t, a, !1, !1, E, I); } else if (this.isClassProperty()) d ? this.pushClassPrivateProperty(t, u) : this.pushClassProperty(t, l); else if (v === "async" && !this.isLineTerminator()) { this.resetPreviousNodeTrailingComments(y); let E = this.eat(55); p.optional && this.unexpected(b), f.kind = "method"; let I = this.match(138); this.parseClassElementName(f), this.parsePostMemberNameModifiers(p), I ? this.pushClassPrivateMethod(t, o, E, !0) : (this.isNonstaticConstructor( a) && this.raise(_.ConstructorIsAsync, a.key), this.pushClassMethod(t, a, E, !0, !1, !1)); } else if ((v === "get" || v === "set") && !(this.match(55) && this.isLineTerminator())) { this.resetPreviousNodeTrailingComments(y), f.kind = v; let E = this.match(138); this.parseClassElementName(a), E ? this.pushClassPrivateMethod(t, o, !1, !1) : (this.isNonstaticConstructor(a) && this.raise(_.ConstructorIsAccessor, a.key), this.pushClassMethod(t, a, !1, !1, !1, !1)), this.checkGetterSetterParams(a); } else if (v === "accessor" && !this.isLineTerminator()) { this.expectPlugin("decoratorAutoAccessors"), this.resetPreviousNodeTrailingComments(y); let E = this.match(138); this.parseClassElementName(l), this.pushClassAccessorProperty(t, c, E); } else this.isLineTerminator() ? d ? this.pushClassPrivateProperty(t, u) : this.pushClassProperty(t, l) : this.unexpected(); } parseClassElementName(t) { let { type: r, value: n } = this.state; if ((r === 132 || r === 133) && t.static && n === "prototype" && this.raise(_.StaticPrototype, this.state.startLoc), r === 138) { n === "constructor" && this.raise(_.ConstructorClassPrivateField, this.state.startLoc); let i = this.parsePrivateName(); return t.key = i, i; } return this.parsePropertyName(t), t.key; } parseClassStaticBlock(t, r) { var n; this.scope.enter(208); let i = 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 = i, t.body.push(this. finishNode(r, "StaticBlock")), (n = r.decorators) != null && n.length && this.raise(_.DecoratorStaticBlock, r); } pushClassProperty(t, r) { !r.computed && this.nameIsConstructor(r.key) && this.raise(_.ConstructorClassField, r.key), t.body.push(this.parseClassProperty(r)); } pushClassPrivateProperty(t, r) { let n = this.parseClassPrivateProperty(r); t.body.push(n), this.classScope.declarePrivateName(this.getPrivateNameSV(n.key), 0, n.key.loc.start); } pushClassAccessorProperty(t, r, n) { !n && !r.computed && this.nameIsConstructor(r.key) && this.raise(_.ConstructorClassField, r.key); let i = this.parseClassAccessorProperty(r); t.body.push(i), n && this.classScope.declarePrivateName(this.getPrivateNameSV(i.key), 0, i.key.loc.start); } pushClassMethod(t, r, n, i, a, o) { t.body.push(this.parseMethod(r, n, i, a, o, "ClassMethod", !0)); } pushClassPrivateMethod(t, r, n, i) { let a = this.parseMethod(r, n, i, !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(80), this.expressionScope.enter(dT()), this.prodParam.enter(0), t.value = this.eat(29) ? this.parseMaybeAssignAllowIn() : null, this.expressionScope.exit(), this.prodParam.exit(), this.scope.exit(); } parseClassId(t, r, n, i = 8331) { if (tt(this.state.type)) t.id = this.parseIdentifier(), r && this.declareNameFromIdentifier(t.id, i); else if (n || !r) t.id = null; else throw this.raise(_.MissingClassName, this.state.startLoc); } parseClassSuper(t) { t.superClass = this.eat(81) ? this.parseExprSubscripts() : null; } parseExport(t, r) { let n = this.parseMaybeImportPhase(t, !0), i = this.maybeParseExportDefaultSpecifier(t, n), a = !i || this.eat(12), o = a && this.eatExportStar( t), l = o && this.maybeParseExportNamespaceSpecifier(t), u = a && (!l || this.eat(12)), c = i || o; if (o && !l) { if (i && this.unexpected(), r) throw this.raise(_.UnsupportedDecoratorExport, t); return this.parseExportFrom(t, !0), this.finishNode(t, "ExportAllDeclaration"); } let f = this.maybeParseExportNamedSpecifiers(t); i && a && !o && !f && this.unexpected(null, 5), l && u && this.unexpected(null, 98); let p; if (c || f) { if (p = !1, r) throw this.raise(_.UnsupportedDecoratorExport, t); this.parseExportFrom(t, c); } else p = this.maybeParseExportDeclaration(t); if (c || f || p) { var h; let y = t; if (this.checkExport(y, !0, !1, !!y.source), ((h = y.declaration) == null ? void 0 : h.type) === "ClassDeclaration") this.maybeTakeDecorators(r, y.declaration, y); else if (r) throw this.raise(_.UnsupportedDecoratorExport, t); return this.finishNode(y, "ExportNamedDeclaration"); } if (this.eat(65)) { let y = t, v = this.parseExportDefaultExpression(); if (y.declaration = v, v.type === "ClassDeclaration") this.maybeTakeDecorators(r, v, y); else if (r) throw this.raise(_.UnsupportedDecoratorExport, t); return this.checkExport(y, !0, !0), this.finishNode(y, "ExportDefaultDeclaration"); } this.unexpected(null, 5); } eatExportStar(t) { return this.eat(55); } maybeParseExportDefaultSpecifier(t, r) { if (r || this.isExportDefaultSpecifier()) { this.expectPlugin("exportDefaultFrom", r?.loc.start); let n = r || this.parseIdentifier(!0), i = this.startNodeAtNode(n); return i.exported = n, t.specifiers = [this.finishNode(i, "ExportDefaultSpecifier")], !0; } return !1; } maybeParseExportNamespaceSpecifier(t) { if (this.isContextual(93)) { var r, n; (n = (r = t).specifiers) != null || (r.specifiers = []); let i = this.startNodeAt(this.state.lastTokStartLoc); return this.next(), i.exported = this.parseModuleExportName(), t.specifiers.push(this.finishNode(i, "ExportNamespaceSpecifier")), !0; } return !1; } maybeParseExportNamedSpecifiers(t) { if (this.match(5)) { let r = t; r.specifiers || (r.specifiers = []); let n = r.exportKind === "type"; return r.specifiers.push(...this.parseExportSpecifiers(n)), r.source = null, r.declaration = null, this.hasPlugin("importAssertions") && (r.assertions = []), !0; } return !1; } maybeParseExportDeclaration(t) { return this.shouldParseExportDeclaration() ? (t.specifiers = [], t.source = null, this.hasPlugin("importAssertions") && (t.assertions = []), t.declaration = this.parseExportDeclaration(t), !0) : !1; } isAsyncFunction() { if (!this.isContextual(95)) return !1; let t = this.nextTokenInLineStart(); return this.isUnparsedContextual(t, "function"); } parseExportDefaultExpression() { let t = this.startNode(); if (this.match(68)) return this.next(), this.parseFunction(t, 5); if (this.isAsyncFunction()) return this.next(), this.next(), this.parseFunction(t, 13); if (this.match(80)) return this.parseClass(t, !0, !0); if (this.match(26)) return this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport") === !0 && this.raise(_.DecoratorBeforeExport, this.state.startLoc), this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1), this.startNode()), !0, !0); if (this.match(75) || this.match(74) || this.isLet()) throw this.raise(_.UnsupportedDefaultExport, 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 (tt(t)) { if (t === 95 && !this.state.containsEsc || t === 100) return !1; if ((t === 130 || t === 129) && !this.state.containsEsc) { let { type: i } = this.lookahead(); if (tt(i) && i !== 98 || i === 5) return this.expectOnePlugin(["flow", "typescript"]), !1; } } else if (!this.match(65)) return !1; let r = this.nextTokenStart(), n = this.isUnparsedContextual(r, "from"); if (this.input.charCodeAt(r) === 44 || tt(this.state.type) && n) return !0; if (this.match(65) && n) { let i = this.input.charCodeAt(this.nextTokenStartSince(r + 4)); return i === 34 || i === 39; } return !1; } parseExportFrom(t, r) { this.eatContextual(98) ? (t.source = this.parseImportSource(), this.checkExport(t), this.maybeParseImportAttributes(t), this.checkJSONModuleImport( t)) : r && this.unexpected(), this.semicolon(); } shouldParseExportDeclaration() { let { type: t } = this.state; return t === 26 && (this.expectOnePlugin(["decorators", "decorators-legacy"]), this.hasPlugin("decorators")) ? (this.getPluginOption("\ decorators", "decoratorsBeforeExport") === !0 && this.raise(_.DecoratorBeforeExport, this.state.startLoc), !0) : this.isContextual(107) ? (this. raise(_.UsingDeclarationExport, this.state.startLoc), !0) : this.isContextual(96) && this.startsAwaitUsing() ? (this.raise(_.UsingDeclarationExport, this.state.startLoc), !0) : t === 74 || t === 75 || t === 68 || t === 80 || this.isLet() || this.isAsyncFunction(); } checkExport(t, r, n, i) { if (r) { var a; if (n) { 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( _.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), !i && l.local) { let { local: f } = l; f.type !== "Identifier" ? this.raise(_.ExportBindingIsString, l, { localName: f.value, exportName: c }) : (this.checkReservedWord(f.name, f.loc.start, !0, !1), this.scope.checkLocalExport(f)); } } 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(_.DuplicateDefaultExport, t) : this.raise(_.DuplicateExport, t, { exportName: r })), this.exportedIdentifiers.add(r); } parseExportSpecifiers(t) { let r = [], n = !0; for (this.expect(5); !this.eat(8); ) { if (n) n = !1; else if (this.expect(12), this.eat(8)) break; let i = this.isContextual(130), a = this.match(133), o = this.startNode(); o.local = this.parseModuleExportName(), r.push(this.parseExportSpecifier(o, a, t, i)); } return r; } parseExportSpecifier(t, r, n, i) { return this.eatContextual(93) ? t.exported = this.parseModuleExportName() : r ? t.exported = bG(t.local) : t.exported || (t.exported = In(t.local)), this.finishNode(t, "ExportSpecifier"); } parseModuleExportName() { if (this.match(133)) { let t = this.parseStringLiteral(this.state.value), r = qG.exec(t.value); return r && this.raise(_.ModuleExportNameHasLoneSurrogate, t, { surrogateCharCode: r[0].charCodeAt(0) }), t; } return this.parseIdentifier(!0); } isJSONModuleImport(t) { return t.assertions != null ? t.assertions.some(({ key: r, value: n }) => n.value === "json" && (r.type === "Identifier" ? r.name === "type" : r.value === "type")) : !1; } checkImportReflection(t) { let { specifiers: r } = t, n = r.length === 1 ? r[0].type : null; if (t.phase === "source") n !== "ImportDefaultSpecifier" && this.raise(_.SourcePhaseImportRequiresDefault, r[0].loc.start); else if (t.phase === "defer") n !== "ImportNamespaceSpecifier" && this.raise(_.DeferImportRequiresNamespace, r[0].loc.start); else if (t.module) { var i; n !== "ImportDefaultSpecifier" && this.raise(_.ImportReflectionNotBinding, r[0].loc.start), ((i = t.assertions) == null ? void 0 : i. length) > 0 && this.raise(_.ImportReflectionHasAssertion, r[0].loc.start); } } checkJSONModuleImport(t) { if (this.isJSONModuleImport(t) && t.type !== "ExportAllDeclaration") { let { specifiers: r } = t; if (r != null) { let n = r.find((i) => { let a; if (i.type === "ExportSpecifier" ? a = i.local : i.type === "ImportSpecifier" && (a = i.imported), a !== void 0) return a.type === "Identifier" ? a.name !== "default" : a.value !== "default"; }); n !== void 0 && this.raise(_.ImportJSONBindingNotDefault, n.loc.start); } } } isPotentialImportPhase(t) { return t ? !1 : this.isContextual(105) || this.isContextual(97) || this.isContextual(127); } applyImportPhase(t, r, n, i) { r || (n === "module" ? (this.expectPlugin("importReflection", i), t.module = !0) : this.hasPlugin("importReflection") && (t.module = !1), n === "source" ? (this.expectPlugin("sourcePhaseImports", i), t.phase = "source") : n === "defer" ? (this.expectPlugin("deferredImport\ Evaluation", i), t.phase = "defer") : this.hasPlugin("sourcePhaseImports") && (t.phase = null)); } parseMaybeImportPhase(t, r) { if (!this.isPotentialImportPhase(r)) return this.applyImportPhase(t, r, null), null; let n = this.parseIdentifier(!0), { type: i } = this.state; return (Wr(i) ? i !== 98 || this.lookaheadCharCode() === 102 : i !== 12) ? (this.resetPreviousIdentifierLeadingComments(n), this.applyImportPhase( t, r, n.name, n.loc.start), null) : (this.applyImportPhase(t, r, null), n); } isPrecedingIdImportPhase(t) { let { type: r } = this.state; return tt(r) ? r !== 98 || this.lookaheadCharCode() === 102 : r !== 12; } parseImport(t) { return this.match(133) ? this.parseImportSourceAndAttributes(t) : this.parseImportSpecifiersAndAfter(t, this.parseMaybeImportPhase(t, !1)); } parseImportSpecifiersAndAfter(t, r) { t.specifiers = []; let i = !this.maybeParseDefaultImportSpecifier(t, r) || this.eat(12), a = i && this.maybeParseStarImportSpecifier(t); return i && !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.finishNode(t, "ImportDeclaration"); } parseImportSource() { return this.match(133) || this.unexpected(), this.parseExprAtom(); } parseImportSpecifierLocal(t, r, n) { r.local = this.parseIdentifier(), t.specifiers.push(this.finishImportSpecifier(r, n)); } finishImportSpecifier(t, r, n = 8201) { return this.checkLVal(t.local, { type: r }, n), this.finishNode(t, r); } parseImportAttributes() { this.expect(5); let t = [], r = /* @__PURE__ */ new Set(); do { if (this.match(8)) break; let n = this.startNode(), i = this.state.value; if (r.has(i) && this.raise(_.ModuleAttributesWithDuplicateKeys, this.state.startLoc, { key: i }), r.add(i), this.match(133) ? n.key = this.parseStringLiteral(i) : n.key = this.parseIdentifier(!0), this.expect(14), !this.match( 133)) throw this.raise(_.ModuleAttributeInvalidValue, this.state.startLoc); n.value = this.parseStringLiteral(this.state.value), t.push(this.finishNode(n, "ImportAttribute")); } while (this.eat(12)); return this.expect(8), t; } parseModuleAttributes() { let t = [], r = /* @__PURE__ */ new Set(); do { let n = this.startNode(); if (n.key = this.parseIdentifier(!0), n.key.name !== "type" && this.raise(_.ModuleAttributeDifferentFromType, n.key), r.has(n.key.name) && this.raise(_.ModuleAttributesWithDuplicateKeys, n.key, { key: n.key.name }), r.add(n.key.name), this.expect(14), !this.match(133)) throw this.raise(_.ModuleAttributeInvalidValue, this.state.startLoc); n.value = this.parseStringLiteral(this.state.value), t.push(this.finishNode(n, "ImportAttribute")); } while (this.eat(12)); return t; } maybeParseImportAttributes(t) { let r, n = !1; if (this.match(76)) { if (this.hasPrecedingLineBreak() && this.lookaheadCharCode() === 40) return; this.next(), this.hasPlugin("moduleAttributes") ? r = this.parseModuleAttributes() : (this.expectImportAttributesPlugin(), r = this. parseImportAttributes()), n = !0; } else if (this.isContextual(94) && !this.hasPrecedingLineBreak()) this.hasPlugin("importAttributes") ? (this.getPluginOption("importAttributes", "deprecatedAssertSyntax") !== !0 && this.raise(_.ImportAttributesUseAssert, this.state.startLoc), this.addExtra(t, "deprecatedAssertSyntax", !0)) : this.expectOnePlugin(["importAttributes", "importAssertions"]), this.next(), r = this.parseImportAttributes(); else if (this.hasPlugin("importAttributes") || this.hasPlugin("importAssertions")) r = []; else if (this.hasPlugin("moduleAttributes")) r = []; else return; !n && this.hasPlugin("importAssertions") ? t.assertions = r : t.attributes = r; } maybeParseDefaultImportSpecifier(t, r) { if (r) { let n = this.startNodeAtNode(r); return n.local = r, t.specifiers.push(this.finishImportSpecifier(n, "ImportDefaultSpecifier")), !0; } else if (Wr(this.state.type)) return this.parseImportSpecifierLocal(t, this.startNode(), "ImportDefaultSpecifier"), !0; return !1; } maybeParseStarImportSpecifier(t) { if (this.match(55)) { let r = this.startNode(); return this.next(), this.expectContextual(93), this.parseImportSpecifierLocal(t, r, "ImportNamespaceSpecifier"), !0; } return !1; } parseNamedImportSpecifiers(t) { let r = !0; for (this.expect(5); !this.eat(8); ) { if (r) r = !1; else { if (this.eat(14)) throw this.raise(_.DestructureNamedImport, this.state.startLoc); if (this.expect(12), this.eat(8)) break; } let n = this.startNode(), i = this.match(133), a = this.isContextual(130); n.imported = this.parseModuleExportName(); let o = this.parseImportSpecifier(n, i, t.importKind === "type" || t.importKind === "typeof", a, void 0); t.specifiers.push(o); } } parseImportSpecifier(t, r, n, i, a) { if (this.eatContextual(93)) t.local = this.parseIdentifier(); else { let { imported: o } = t; if (r) throw this.raise(_.ImportBindingIsString, t, { importName: o.value }); this.checkReservedWord(o.name, t.loc.start, !0, !0), t.local || (t.local = In(o)); } return this.finishImportSpecifier(t, "ImportSpecifier", a); } isThisParam(t) { return t.type === "Identifier" && t.name === "this"; } }, Wl = class extends Dh { static { s(this, "Parser"); } constructor(t, r, n) { t = MG(t), super(t, r), this.options = t, this.initializeScopes(), this.plugins = n, this.filename = t.sourceFilename; } getScopeHandler() { return za; } parse() { this.enterInitialScopes(); let t = this.startNode(), r = this.startNode(); return this.nextToken(), t.errors = null, this.parseTopLevel(t, r), t.errors = this.state.errors, t.comments.length = this.state.commentsLen, t; } }; function VG(e, t) { var r; if (((r = t) == null ? void 0 : r.sourceType) === "unambiguous") { t = Object.assign({}, t); try { t.sourceType = "module"; let n = Ga(t, e), i = n.parse(); if (n.sawUnambiguousESM) return i; if (n.ambiguousScriptDifferentAst) try { return t.sourceType = "script", Ga(t, e).parse(); } catch { } else i.program.sourceType = "script"; return i; } catch (n) { try { return t.sourceType = "script", Ga(t, e).parse(); } catch { } throw n; } } else return Ga(t, e).parse(); } s(VG, "parse"); function $G(e, t) { let r = Ga(t, e); return r.options.strictMode && (r.state.strict = !0), r.getExpression(); } s($G, "parseExpression"); function WG(e) { let t = {}; for (let r of Object.keys(e)) t[r] = An(e[r]); return t; } s(WG, "generateExportedTokenTypes"); var KG = WG(qK); function Ga(e, t) { let r = Wl, n = /* @__PURE__ */ new Map(); if (e != null && e.plugins) { for (let i of e.plugins) { let a, o; typeof i == "string" ? a = i : [a, o] = i, n.has(a) || n.set(a, o || {}); } jG(n), r = GG(n); } return new r(e, t, n); } s(Ga, "getParser"); var rT = /* @__PURE__ */ new Map(); function GG(e) { let t = []; for (let i of LG) e.has(i) && t.push(i); let r = t.join("|"), n = rT.get(r); if (!n) { n = Wl; for (let i of t) n = gT[i](n); rT.set(r, n); } return n; } s(GG, "getParserClass"); Xa.parse = VG; Xa.parseExpression = $G; Xa.tokTypes = KG; }); // ../node_modules/js-tokens/index.js var bT = T((Kl) => { Object.defineProperty(Kl, "__esModule", { value: !0 }); Kl.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; Kl.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/picocolors/picocolors.js var qh = T((jSe, Rh) => { var ET = process.argv || [], Gl = process.env, HG = !("NO_COLOR" in Gl || ET.includes("--no-color")) && ("FORCE_COLOR" in Gl || ET.includes( "--color") || process.platform === "win32" || ie != null && ie("tty").isatty(1) && Gl.TERM !== "dumb" || "CI" in Gl), YG = /* @__PURE__ */ s( (e, t, r = e) => (n) => { let i = "" + n, a = i.indexOf(t, e.length); return ~a ? e + zG(i, t, r, a) + t : e + i + t; }, "formatter"), zG = /* @__PURE__ */ s((e, t, r, n) => { let i = "", a = 0; do i += e.substring(a, n) + r, a = n + t.length, n = e.indexOf(t, a); while (~n); return i + e.substring(a); }, "replaceClose"), vT = /* @__PURE__ */ s((e = HG) => { let t = e ? YG : () => 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"); Rh.exports = vT(); Rh.exports.createColors = vT; }); // ../node_modules/escape-string-regexp/index.js var xT = T((MSe, TT) => { "use strict"; var JG = /[|\\{}()[\]^$+*?.]/g; TT.exports = function(e) { if (typeof e != "string") throw new TypeError("Expected a string"); return e.replace(JG, "\\$&"); }; }); // ../node_modules/@babel/highlight/node_modules/color-name/index.js var PT = T((RSe, ST) => { "use strict"; ST.exports = { aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], aqua: [0, 255, 255], aquamarine: [127, 255, 212], azure: [240, 255, 255], beige: [245, 245, 220], bisque: [255, 228, 196], black: [0, 0, 0], blanchedalmond: [255, 235, 205], blue: [0, 0, 255], blueviolet: [138, 43, 226], brown: [165, 42, 42], burlywood: [222, 184, 135], cadetblue: [95, 158, 160], chartreuse: [127, 255, 0], chocolate: [210, 105, 30], coral: [255, 127, 80], cornflowerblue: [100, 149, 237], cornsilk: [255, 248, 220], crimson: [220, 20, 60], cyan: [0, 255, 255], darkblue: [0, 0, 139], darkcyan: [0, 139, 139], darkgoldenrod: [184, 134, 11], darkgray: [169, 169, 169], darkgreen: [0, 100, 0], darkgrey: [169, 169, 169], darkkhaki: [189, 183, 107], darkmagenta: [139, 0, 139], darkolivegreen: [85, 107, 47], darkorange: [255, 140, 0], darkorchid: [153, 50, 204], darkred: [139, 0, 0], darksalmon: [233, 150, 122], darkseagreen: [143, 188, 143], darkslateblue: [72, 61, 139], darkslategray: [47, 79, 79], darkslategrey: [47, 79, 79], darkturquoise: [0, 206, 209], darkviolet: [148, 0, 211], deeppink: [255, 20, 147], deepskyblue: [0, 191, 255], dimgray: [105, 105, 105], dimgrey: [105, 105, 105], dodgerblue: [30, 144, 255], firebrick: [178, 34, 34], floralwhite: [255, 250, 240], forestgreen: [34, 139, 34], fuchsia: [255, 0, 255], gainsboro: [220, 220, 220], ghostwhite: [248, 248, 255], gold: [255, 215, 0], goldenrod: [218, 165, 32], gray: [128, 128, 128], green: [0, 128, 0], greenyellow: [173, 255, 47], grey: [128, 128, 128], honeydew: [240, 255, 240], hotpink: [255, 105, 180], indianred: [205, 92, 92], indigo: [75, 0, 130], ivory: [255, 255, 240], khaki: [240, 230, 140], lavender: [230, 230, 250], lavenderblush: [255, 240, 245], lawngreen: [124, 252, 0], lemonchiffon: [255, 250, 205], lightblue: [173, 216, 230], lightcoral: [240, 128, 128], lightcyan: [224, 255, 255], lightgoldenrodyellow: [250, 250, 210], lightgray: [211, 211, 211], lightgreen: [144, 238, 144], lightgrey: [211, 211, 211], lightpink: [255, 182, 193], lightsalmon: [255, 160, 122], lightseagreen: [32, 178, 170], lightskyblue: [135, 206, 250], lightslategray: [119, 136, 153], lightslategrey: [119, 136, 153], lightsteelblue: [176, 196, 222], lightyellow: [255, 255, 224], lime: [0, 255, 0], limegreen: [50, 205, 50], linen: [250, 240, 230], magenta: [255, 0, 255], maroon: [128, 0, 0], mediumaquamarine: [102, 205, 170], mediumblue: [0, 0, 205], mediumorchid: [186, 85, 211], mediumpurple: [147, 112, 219], mediumseagreen: [60, 179, 113], mediumslateblue: [123, 104, 238], mediumspringgreen: [0, 250, 154], mediumturquoise: [72, 209, 204], mediumvioletred: [199, 21, 133], midnightblue: [25, 25, 112], mintcream: [245, 255, 250], mistyrose: [255, 228, 225], moccasin: [255, 228, 181], navajowhite: [255, 222, 173], navy: [0, 0, 128], oldlace: [253, 245, 230], olive: [128, 128, 0], olivedrab: [107, 142, 35], orange: [255, 165, 0], orangered: [255, 69, 0], orchid: [218, 112, 214], palegoldenrod: [238, 232, 170], palegreen: [152, 251, 152], paleturquoise: [175, 238, 238], palevioletred: [219, 112, 147], papayawhip: [255, 239, 213], peachpuff: [255, 218, 185], peru: [205, 133, 63], pink: [255, 192, 203], plum: [221, 160, 221], powderblue: [176, 224, 230], purple: [128, 0, 128], rebeccapurple: [102, 51, 153], red: [255, 0, 0], rosybrown: [188, 143, 143], royalblue: [65, 105, 225], saddlebrown: [139, 69, 19], salmon: [250, 128, 114], sandybrown: [244, 164, 96], seagreen: [46, 139, 87], seashell: [255, 245, 238], sienna: [160, 82, 45], silver: [192, 192, 192], skyblue: [135, 206, 235], slateblue: [106, 90, 205], slategray: [112, 128, 144], slategrey: [112, 128, 144], snow: [255, 250, 250], springgreen: [0, 255, 127], steelblue: [70, 130, 180], tan: [210, 180, 140], teal: [0, 128, 128], thistle: [216, 191, 216], tomato: [255, 99, 71], turquoise: [64, 224, 208], violet: [238, 130, 238], wheat: [245, 222, 179], white: [255, 255, 255], whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50] }; }); // ../node_modules/@babel/highlight/node_modules/color-convert/conversions.js var Uh = T((qSe, DT) => { var Ms = PT(), wT = {}; for (Hl in Ms) Ms.hasOwnProperty(Hl) && (wT[Ms[Hl]] = Hl); var Hl, Ee = DT.exports = { rgb: { channels: 3, labels: "rgb" }, hsl: { channels: 3, labels: "hsl" }, hsv: { channels: 3, labels: "hsv" }, hwb: { channels: 3, labels: "hwb" }, cmyk: { channels: 4, labels: "cmyk" }, xyz: { channels: 3, labels: "xyz" }, lab: { channels: 3, labels: "lab" }, lch: { channels: 3, labels: "lch" }, hex: { channels: 1, labels: ["hex"] }, keyword: { channels: 1, labels: ["keyword"] }, ansi16: { channels: 1, labels: ["ansi16"] }, ansi256: { channels: 1, labels: ["ansi256"] }, hcg: { channels: 3, labels: ["h", "c", "g"] }, apple: { channels: 3, labels: ["r16", "g16", "b16"] }, gray: { channels: 1, labels: ["gray"] } }; for (or in Ee) if (Ee.hasOwnProperty(or)) { if (!("channels" in Ee[or])) throw new Error("missing channels property: " + or); if (!("labels" in Ee[or])) throw new Error("missing channel labels property: " + or); if (Ee[or].labels.length !== Ee[or].channels) throw new Error("channel and label counts mismatch: " + or); AT = Ee[or].channels, CT = Ee[or].labels, delete Ee[or].channels, delete Ee[or].labels, Object.defineProperty(Ee[or], "channels", { value: AT }), Object.defineProperty(Ee[or], "labels", { value: CT }); } var AT, CT, or; Ee.rgb.hsl = function(e) { var t = e[0] / 255, r = e[1] / 255, n = e[2] / 255, i = Math.min(t, r, n), a = Math.max(t, r, n), o = a - i, l, u, c; return a === i ? l = 0 : t === a ? l = (r - n) / o : r === a ? l = 2 + (n - t) / o : n === a && (l = 4 + (t - r) / o), l = Math.min(l * 60, 360), l < 0 && (l += 360), c = (i + a) / 2, a === i ? u = 0 : c <= 0.5 ? u = o / (a + i) : u = o / (2 - a - i), [l, u * 100, c * 100]; }; Ee.rgb.hsv = function(e) { var t, r, n, i, a, o = e[0] / 255, l = e[1] / 255, u = e[2] / 255, c = Math.max(o, l, u), f = c - Math.min(o, l, u), p = /* @__PURE__ */ s( function(h) { return (c - h) / 6 / f + 1 / 2; }, "diffc"); return f === 0 ? i = a = 0 : (a = f / c, t = p(o), r = p(l), n = p(u), o === c ? i = n - r : l === c ? i = 1 / 3 + t - n : u === c && (i = 2 / 3 + r - t), i < 0 ? i += 1 : i > 1 && (i -= 1)), [ i * 360, a * 100, c * 100 ]; }; Ee.rgb.hwb = function(e) { var t = e[0], r = e[1], n = e[2], i = Ee.rgb.hsl(e)[0], a = 1 / 255 * Math.min(t, Math.min(r, n)); return n = 1 - 1 / 255 * Math.max(t, Math.max(r, n)), [i, a * 100, n * 100]; }; Ee.rgb.cmyk = function(e) { var t = e[0] / 255, r = e[1] / 255, n = e[2] / 255, i, a, o, l; return l = Math.min(1 - t, 1 - r, 1 - n), i = (1 - t - l) / (1 - l) || 0, a = (1 - r - l) / (1 - l) || 0, o = (1 - n - l) / (1 - l) || 0, [i * 100, a * 100, o * 100, l * 100]; }; function XG(e, t) { return Math.pow(e[0] - t[0], 2) + Math.pow(e[1] - t[1], 2) + Math.pow(e[2] - t[2], 2); } s(XG, "comparativeDistance"); Ee.rgb.keyword = function(e) { var t = wT[e]; if (t) return t; var r = 1 / 0, n; for (var i in Ms) if (Ms.hasOwnProperty(i)) { var a = Ms[i], o = XG(e, a); o < r && (r = o, n = i); } return n; }; Ee.keyword.rgb = function(e) { return Ms[e]; }; Ee.rgb.xyz = function(e) { var t = e[0] / 255, r = e[1] / 255, n = e[2] / 255; t = t > 0.04045 ? Math.pow((t + 0.055) / 1.055, 2.4) : t / 12.92, r = r > 0.04045 ? Math.pow((r + 0.055) / 1.055, 2.4) : r / 12.92, n = n > 0.04045 ? Math.pow((n + 0.055) / 1.055, 2.4) : n / 12.92; var i = t * 0.4124 + r * 0.3576 + n * 0.1805, a = t * 0.2126 + r * 0.7152 + n * 0.0722, o = t * 0.0193 + r * 0.1192 + n * 0.9505; return [i * 100, a * 100, o * 100]; }; Ee.rgb.lab = function(e) { var t = Ee.rgb.xyz(e), r = t[0], n = t[1], i = t[2], a, o, l; return r /= 95.047, n /= 100, i /= 108.883, r = r > 8856e-6 ? Math.pow(r, 1 / 3) : 7.787 * r + 16 / 116, n = n > 8856e-6 ? Math.pow(n, 1 / 3) : 7.787 * n + 16 / 116, i = i > 8856e-6 ? Math.pow(i, 1 / 3) : 7.787 * i + 16 / 116, a = 116 * n - 16, o = 500 * (r - n), l = 200 * (n - i), [a, o, l]; }; Ee.hsl.rgb = function(e) { var t = e[0] / 360, r = e[1] / 100, n = e[2] / 100, i, a, o, l, u; if (r === 0) return u = n * 255, [u, u, u]; n < 0.5 ? a = n * (1 + r) : a = n + r - n * r, i = 2 * n - a, l = [0, 0, 0]; for (var c = 0; c < 3; c++) o = t + 1 / 3 * -(c - 1), o < 0 && o++, o > 1 && o--, 6 * o < 1 ? u = i + (a - i) * 6 * o : 2 * o < 1 ? u = a : 3 * o < 2 ? u = i + (a - i) * (2 / 3 - o) * 6 : u = i, l[c] = u * 255; return l; }; Ee.hsl.hsv = function(e) { var t = e[0], r = e[1] / 100, n = e[2] / 100, i = r, a = Math.max(n, 0.01), o, l; return n *= 2, r *= n <= 1 ? n : 2 - n, i *= a <= 1 ? a : 2 - a, l = (n + r) / 2, o = n === 0 ? 2 * i / (a + i) : 2 * r / (n + r), [t, o * 100, l * 100]; }; Ee.hsv.rgb = function(e) { var t = e[0] / 60, r = e[1] / 100, n = e[2] / 100, i = Math.floor(t) % 6, a = t - Math.floor(t), o = 255 * n * (1 - r), l = 255 * n * (1 - r * a), u = 255 * n * (1 - r * (1 - a)); switch (n *= 255, i) { case 0: return [n, u, o]; case 1: return [l, n, o]; case 2: return [o, n, u]; case 3: return [o, l, n]; case 4: return [u, o, n]; case 5: return [n, o, l]; } }; Ee.hsv.hsl = function(e) { var t = e[0], r = e[1] / 100, n = e[2] / 100, i = Math.max(n, 0.01), a, o, l; return l = (2 - r) * n, a = (2 - r) * i, o = r * i, o /= a <= 1 ? a : 2 - a, o = o || 0, l /= 2, [t, o * 100, l * 100]; }; Ee.hwb.rgb = function(e) { var t = e[0] / 360, r = e[1] / 100, n = e[2] / 100, i = r + n, a, o, l, u; i > 1 && (r /= i, n /= i), a = Math.floor(6 * t), o = 1 - n, l = 6 * t - a, a & 1 && (l = 1 - l), u = r + l * (o - r); var c, f, p; switch (a) { default: case 6: case 0: c = o, f = u, p = r; break; case 1: c = u, f = o, p = r; break; case 2: c = r, f = o, p = u; break; case 3: c = r, f = u, p = o; break; case 4: c = u, f = r, p = o; break; case 5: c = o, f = r, p = u; break; } return [c * 255, f * 255, p * 255]; }; Ee.cmyk.rgb = function(e) { var t = e[0] / 100, r = e[1] / 100, n = e[2] / 100, i = e[3] / 100, a, o, l; return a = 1 - Math.min(1, t * (1 - i) + i), o = 1 - Math.min(1, r * (1 - i) + i), l = 1 - Math.min(1, n * (1 - i) + i), [a * 255, o * 255, l * 255]; }; Ee.xyz.rgb = function(e) { var t = e[0] / 100, r = e[1] / 100, n = e[2] / 100, i, a, o; return i = t * 3.2406 + r * -1.5372 + n * -0.4986, a = t * -0.9689 + r * 1.8758 + n * 0.0415, o = t * 0.0557 + r * -0.204 + n * 1.057, i = i > 31308e-7 ? 1.055 * Math.pow(i, 1 / 2.4) - 0.055 : i * 12.92, a = a > 31308e-7 ? 1.055 * Math.pow(a, 1 / 2.4) - 0.055 : a * 12.92, o = o > 31308e-7 ? 1.055 * Math.pow(o, 1 / 2.4) - 0.055 : o * 12.92, i = Math.min(Math.max(0, i), 1), a = Math.min(Math.max(0, a), 1), o = Math. min(Math.max(0, o), 1), [i * 255, a * 255, o * 255]; }; Ee.xyz.lab = function(e) { var t = e[0], r = e[1], n = e[2], i, a, o; return t /= 95.047, r /= 100, n /= 108.883, t = t > 8856e-6 ? Math.pow(t, 1 / 3) : 7.787 * t + 16 / 116, r = r > 8856e-6 ? Math.pow(r, 1 / 3) : 7.787 * r + 16 / 116, n = n > 8856e-6 ? Math.pow(n, 1 / 3) : 7.787 * n + 16 / 116, i = 116 * r - 16, a = 500 * (t - r), o = 200 * (r - n), [i, a, o]; }; Ee.lab.xyz = function(e) { var t = e[0], r = e[1], n = e[2], i, a, o; a = (t + 16) / 116, i = r / 500 + a, o = a - n / 200; var l = Math.pow(a, 3), u = Math.pow(i, 3), c = Math.pow(o, 3); return a = l > 8856e-6 ? l : (a - 16 / 116) / 7.787, i = u > 8856e-6 ? u : (i - 16 / 116) / 7.787, o = c > 8856e-6 ? c : (o - 16 / 116) / 7.787, i *= 95.047, a *= 100, o *= 108.883, [i, a, o]; }; Ee.lab.lch = function(e) { var t = e[0], r = e[1], n = e[2], i, a, o; return i = Math.atan2(n, r), a = i * 360 / 2 / Math.PI, a < 0 && (a += 360), o = Math.sqrt(r * r + n * n), [t, o, a]; }; Ee.lch.lab = function(e) { var t = e[0], r = e[1], n = e[2], i, a, o; return o = n / 360 * 2 * Math.PI, i = r * Math.cos(o), a = r * Math.sin(o), [t, i, a]; }; Ee.rgb.ansi16 = function(e) { var t = e[0], r = e[1], n = e[2], i = 1 in arguments ? arguments[1] : Ee.rgb.hsv(e)[2]; if (i = Math.round(i / 50), i === 0) return 30; var a = 30 + (Math.round(n / 255) << 2 | Math.round(r / 255) << 1 | Math.round(t / 255)); return i === 2 && (a += 60), a; }; Ee.hsv.ansi16 = function(e) { return Ee.rgb.ansi16(Ee.hsv.rgb(e), e[2]); }; Ee.rgb.ansi256 = function(e) { var t = e[0], r = e[1], n = e[2]; if (t === r && r === n) return t < 8 ? 16 : t > 248 ? 231 : Math.round((t - 8) / 247 * 24) + 232; var i = 16 + 36 * Math.round(t / 255 * 5) + 6 * Math.round(r / 255 * 5) + Math.round(n / 255 * 5); return i; }; Ee.ansi16.rgb = function(e) { var t = e % 10; if (t === 0 || t === 7) return e > 50 && (t += 3.5), t = t / 10.5 * 255, [t, t, t]; var r = (~~(e > 50) + 1) * 0.5, n = (t & 1) * r * 255, i = (t >> 1 & 1) * r * 255, a = (t >> 2 & 1) * r * 255; return [n, i, a]; }; Ee.ansi256.rgb = function(e) { if (e >= 232) { var t = (e - 232) * 10 + 8; return [t, t, t]; } e -= 16; var r, n = Math.floor(e / 36) / 5 * 255, i = Math.floor((r = e % 36) / 6) / 5 * 255, a = r % 6 / 5 * 255; return [n, i, a]; }; Ee.rgb.hex = function(e) { var t = ((Math.round(e[0]) & 255) << 16) + ((Math.round(e[1]) & 255) << 8) + (Math.round(e[2]) & 255), r = t.toString(16).toUpperCase(); return "000000".substring(r.length) + r; }; Ee.hex.rgb = function(e) { var t = e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); if (!t) return [0, 0, 0]; var r = t[0]; t[0].length === 3 && (r = r.split("").map(function(l) { return l + l; }).join("")); var n = parseInt(r, 16), i = n >> 16 & 255, a = n >> 8 & 255, o = n & 255; return [i, a, o]; }; Ee.rgb.hcg = function(e) { var t = e[0] / 255, r = e[1] / 255, n = e[2] / 255, i = Math.max(Math.max(t, r), n), a = Math.min(Math.min(t, r), n), o = i - a, l, u; return o < 1 ? l = a / (1 - o) : l = 0, o <= 0 ? u = 0 : i === t ? u = (r - n) / o % 6 : i === r ? u = 2 + (n - t) / o : u = 4 + (t - r) / o + 4, u /= 6, u %= 1, [u * 360, o * 100, l * 100]; }; Ee.hsl.hcg = function(e) { var t = e[1] / 100, r = e[2] / 100, n = 1, i = 0; return r < 0.5 ? n = 2 * t * r : n = 2 * t * (1 - r), n < 1 && (i = (r - 0.5 * n) / (1 - n)), [e[0], n * 100, i * 100]; }; Ee.hsv.hcg = function(e) { var t = e[1] / 100, r = e[2] / 100, n = t * r, i = 0; return n < 1 && (i = (r - n) / (1 - n)), [e[0], n * 100, i * 100]; }; Ee.hcg.rgb = function(e) { var t = e[0] / 360, r = e[1] / 100, n = e[2] / 100; if (r === 0) return [n * 255, n * 255, n * 255]; var i = [0, 0, 0], a = t % 1 * 6, o = a % 1, l = 1 - o, u = 0; switch (Math.floor(a)) { case 0: i[0] = 1, i[1] = o, i[2] = 0; break; case 1: i[0] = l, i[1] = 1, i[2] = 0; break; case 2: i[0] = 0, i[1] = 1, i[2] = o; break; case 3: i[0] = 0, i[1] = l, i[2] = 1; break; case 4: i[0] = o, i[1] = 0, i[2] = 1; break; default: i[0] = 1, i[1] = 0, i[2] = l; } return u = (1 - r) * n, [ (r * i[0] + u) * 255, (r * i[1] + u) * 255, (r * i[2] + u) * 255 ]; }; Ee.hcg.hsv = function(e) { var t = e[1] / 100, r = e[2] / 100, n = t + r * (1 - t), i = 0; return n > 0 && (i = t / n), [e[0], i * 100, n * 100]; }; Ee.hcg.hsl = function(e) { var t = e[1] / 100, r = e[2] / 100, n = r * (1 - t) + 0.5 * t, i = 0; return n > 0 && n < 0.5 ? i = t / (2 * n) : n >= 0.5 && n < 1 && (i = t / (2 * (1 - n))), [e[0], i * 100, n * 100]; }; Ee.hcg.hwb = function(e) { var t = e[1] / 100, r = e[2] / 100, n = t + r * (1 - t); return [e[0], (n - t) * 100, (1 - n) * 100]; }; Ee.hwb.hcg = function(e) { var t = e[1] / 100, r = e[2] / 100, n = 1 - r, i = n - t, a = 0; return i < 1 && (a = (n - i) / (1 - i)), [e[0], i * 100, a * 100]; }; Ee.apple.rgb = function(e) { return [e[0] / 65535 * 255, e[1] / 65535 * 255, e[2] / 65535 * 255]; }; Ee.rgb.apple = function(e) { return [e[0] / 255 * 65535, e[1] / 255 * 65535, e[2] / 255 * 65535]; }; Ee.gray.rgb = function(e) { return [e[0] / 100 * 255, e[0] / 100 * 255, e[0] / 100 * 255]; }; Ee.gray.hsl = Ee.gray.hsv = function(e) { return [0, 0, e[0]]; }; Ee.gray.hwb = function(e) { return [0, 100, e[0]]; }; Ee.gray.cmyk = function(e) { return [0, 0, 0, e[0]]; }; Ee.gray.lab = function(e) { return [e[0], 0, 0]; }; Ee.gray.hex = function(e) { var t = Math.round(e[0] / 100 * 255) & 255, r = (t << 16) + (t << 8) + t, n = r.toString(16).toUpperCase(); return "000000".substring(n.length) + n; }; Ee.rgb.gray = function(e) { var t = (e[0] + e[1] + e[2]) / 3; return [t / 255 * 100]; }; }); // ../node_modules/@babel/highlight/node_modules/color-convert/route.js var _T = T((VSe, IT) => { var Yl = Uh(); function QG() { for (var e = {}, t = Object.keys(Yl), r = t.length, n = 0; n < r; n++) e[t[n]] = { // http://jsperf.com/1-vs-infinity // micro-opt, but this is simple. distance: -1, parent: null }; return e; } s(QG, "buildGraph"); function ZG(e) { var t = QG(), r = [e]; for (t[e].distance = 0; r.length; ) for (var n = r.pop(), i = Object.keys(Yl[n]), a = i.length, o = 0; o < a; o++) { var l = i[o], u = t[l]; u.distance === -1 && (u.distance = t[n].distance + 1, u.parent = n, r.unshift(l)); } return t; } s(ZG, "deriveBFS"); function eH(e, t) { return function(r) { return t(e(r)); }; } s(eH, "link"); function tH(e, t) { for (var r = [t[e].parent, e], n = Yl[t[e].parent][e], i = t[e].parent; t[i].parent; ) r.unshift(t[i].parent), n = eH(Yl[t[i].parent][i], n), i = t[i].parent; return n.conversion = r, n; } s(tH, "wrapConversion"); IT.exports = function(e) { for (var t = ZG(e), r = {}, n = Object.keys(t), i = n.length, a = 0; a < i; a++) { var o = n[a], l = t[o]; l.parent !== null && (r[o] = tH(o, t)); } return r; }; }); // ../node_modules/@babel/highlight/node_modules/color-convert/index.js var NT = T((WSe, OT) => { var Vh = Uh(), rH = _T(), Di = {}, nH = Object.keys(Vh); function sH(e) { var t = /* @__PURE__ */ s(function(r) { return r == null ? r : (arguments.length > 1 && (r = Array.prototype.slice.call(arguments)), e(r)); }, "wrappedFn"); return "conversion" in e && (t.conversion = e.conversion), t; } s(sH, "wrapRaw"); function iH(e) { var t = /* @__PURE__ */ s(function(r) { if (r == null) return r; arguments.length > 1 && (r = Array.prototype.slice.call(arguments)); var n = e(r); if (typeof n == "object") for (var i = n.length, a = 0; a < i; a++) n[a] = Math.round(n[a]); return n; }, "wrappedFn"); return "conversion" in e && (t.conversion = e.conversion), t; } s(iH, "wrapRounded"); nH.forEach(function(e) { Di[e] = {}, Object.defineProperty(Di[e], "channels", { value: Vh[e].channels }), Object.defineProperty(Di[e], "labels", { value: Vh[e].labels }); var t = rH(e), r = Object.keys(t); r.forEach(function(n) { var i = t[n]; Di[e][n] = iH(i), Di[e][n].raw = sH(i); }); }); OT.exports = Di; }); // ../node_modules/@babel/highlight/node_modules/ansi-styles/index.js var kT = T((GSe, BT) => { "use strict"; var Ii = NT(), zl = /* @__PURE__ */ s((e, t) => function() { return `\x1B[${e.apply(Ii, arguments) + t}m`; }, "wrapAnsi16"), Jl = /* @__PURE__ */ s((e, t) => function() { let r = e.apply(Ii, arguments); return `\x1B[${38 + t};5;${r}m`; }, "wrapAnsi256"), Xl = /* @__PURE__ */ s((e, t) => function() { let r = e.apply(Ii, arguments); return `\x1B[${38 + t};2;${r[0]};${r[1]};${r[2]}m`; }, "wrapAnsi16m"); function aH() { let e = /* @__PURE__ */ new Map(), t = { modifier: { reset: [0, 0], // 21 isn't widely supported and 22 does the same thing bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29] }, color: { black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], gray: [90, 39], // Bright color redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39] }, bgColor: { bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], // Bright color bgBlackBright: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49] } }; t.color.grey = t.color.gray; for (let i of Object.keys(t)) { let a = t[i]; for (let o of Object.keys(a)) { let l = a[o]; t[o] = { open: `\x1B[${l[0]}m`, close: `\x1B[${l[1]}m` }, a[o] = t[o], e.set(l[0], l[1]); } Object.defineProperty(t, i, { value: a, enumerable: !1 }), Object.defineProperty(t, "codes", { value: e, enumerable: !1 }); } let r = /* @__PURE__ */ s((i) => i, "ansi2ansi"), n = /* @__PURE__ */ s((i, a, o) => [i, a, o], "rgb2rgb"); t.color.close = "\x1B[39m", t.bgColor.close = "\x1B[49m", t.color.ansi = { ansi: zl(r, 0) }, t.color.ansi256 = { ansi256: Jl(r, 0) }, t.color.ansi16m = { rgb: Xl(n, 0) }, t.bgColor.ansi = { ansi: zl(r, 10) }, t.bgColor.ansi256 = { ansi256: Jl(r, 10) }, t.bgColor.ansi16m = { rgb: Xl(n, 10) }; for (let i of Object.keys(Ii)) { if (typeof Ii[i] != "object") continue; let a = Ii[i]; i === "ansi16" && (i = "ansi"), "ansi16" in a && (t.color.ansi[i] = zl(a.ansi16, 0), t.bgColor.ansi[i] = zl(a.ansi16, 10)), "ansi256" in a && (t.color.ansi256[i] = Jl(a.ansi256, 0), t.bgColor.ansi256[i] = Jl(a.ansi256, 10)), "rgb" in a && (t.color.ansi16m[i] = Xl(a.rgb, 0), t.bgColor.ansi16m[i] = Xl(a.rgb, 10)); } return t; } s(aH, "assembleStyles"); Object.defineProperty(BT, "exports", { enumerable: !0, get: aH }); }); // ../node_modules/@babel/highlight/node_modules/has-flag/index.js var jT = T((YSe, FT) => { "use strict"; FT.exports = (e, t) => { t = t || process.argv; let r = e.startsWith("-") ? "" : e.length === 1 ? "-" : "--", n = t.indexOf(r + e), i = t.indexOf("--"); return n !== -1 && (i === -1 ? !0 : n < i); }; }); // ../node_modules/@babel/highlight/node_modules/supports-color/index.js var MT = T((zSe, LT) => { "use strict"; var oH = ie("os"), Kr = jT(), Yt = process.env, _i; Kr("no-color") || Kr("no-colors") || Kr("color=false") ? _i = !1 : (Kr("color") || Kr("colors") || Kr("color=true") || Kr("color=always")) && (_i = !0); "FORCE_COLOR" in Yt && (_i = Yt.FORCE_COLOR.length === 0 || parseInt(Yt.FORCE_COLOR, 10) !== 0); function lH(e) { return e === 0 ? !1 : { level: e, hasBasic: !0, has256: e >= 2, has16m: e >= 3 }; } s(lH, "translateLevel"); function uH(e) { if (_i === !1) return 0; if (Kr("color=16m") || Kr("color=full") || Kr("color=truecolor")) return 3; if (Kr("color=256")) return 2; if (e && !e.isTTY && _i !== !0) return 0; let t = _i ? 1 : 0; if (process.platform === "win32") { let r = oH.release().split("."); return Number(process.versions.node.split(".")[0]) >= 8 && Number(r[0]) >= 10 && Number(r[2]) >= 10586 ? Number(r[2]) >= 14931 ? 3 : 2 : 1; } if ("CI" in Yt) return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((r) => r in Yt) || Yt.CI_NAME === "codeship" ? 1 : t; if ("TEAMCITY_VERSION" in Yt) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Yt.TEAMCITY_VERSION) ? 1 : 0; if (Yt.COLORTERM === "truecolor") return 3; if ("TERM_PROGRAM" in Yt) { let r = parseInt((Yt.TERM_PROGRAM_VERSION || "").split(".")[0], 10); switch (Yt.TERM_PROGRAM) { case "iTerm.app": return r >= 3 ? 3 : 2; case "Apple_Terminal": return 2; } } return /-256(color)?$/i.test(Yt.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Yt.TERM) || "COLORTERM" in Yt ? 1 : (Yt.TERM === "dumb", t); } s(uH, "supportsColor"); function $h(e) { let t = uH(e); return lH(t); } s($h, "getSupportLevel"); LT.exports = { supportsColor: $h, stdout: $h(process.stdout), stderr: $h(process.stderr) }; }); // ../node_modules/@babel/highlight/node_modules/chalk/templates.js var $T = T((XSe, VT) => { "use strict"; var cH = /(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi, RT = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g, fH = /^(['"])((?:\\.|(?!\1)[^\\])*)\1$/, pH = /\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi, dH = /* @__PURE__ */ new Map( [ ["n", ` `], ["r", "\r"], ["t", " "], ["b", "\b"], ["f", "\f"], ["v", "\v"], ["0", "\0"], ["\\", "\\"], ["e", "\x1B"], ["a", "\x07"] ]); function UT(e) { return e[0] === "u" && e.length === 5 || e[0] === "x" && e.length === 3 ? String.fromCharCode(parseInt(e.slice(1), 16)) : dH.get(e) || e; } s(UT, "unescape"); function hH(e, t) { let r = [], n = t.trim().split(/\s*,\s*/g), i; for (let a of n) if (!isNaN(a)) r.push(Number(a)); else if (i = a.match(fH)) r.push(i[2].replace(pH, (o, l, u) => l ? UT(l) : u)); else throw new Error(`Invalid Chalk template style argument: ${a} (in style '${e}')`); return r; } s(hH, "parseArguments"); function mH(e) { RT.lastIndex = 0; let t = [], r; for (; (r = RT.exec(e)) !== null; ) { let n = r[1]; if (r[2]) { let i = hH(n, r[2]); t.push([n].concat(i)); } else t.push([n]); } return t; } s(mH, "parseStyle"); function qT(e, t) { let r = {}; for (let i of t) for (let a of i.styles) r[a[0]] = i.inverse ? null : a.slice(1); let n = e; for (let i of Object.keys(r)) if (Array.isArray(r[i])) { if (!(i in n)) throw new Error(`Unknown Chalk style: ${i}`); r[i].length > 0 ? n = n[i].apply(n, r[i]) : n = n[i]; } return n; } s(qT, "buildStyle"); VT.exports = (e, t) => { let r = [], n = [], i = []; if (t.replace(cH, (a, o, l, u, c, f) => { if (o) i.push(UT(o)); else if (u) { let p = i.join(""); i = [], n.push(r.length === 0 ? p : qT(e, r)(p)), r.push({ inverse: l, styles: mH(u) }); } else if (c) { if (r.length === 0) throw new Error("Found extraneous } in Chalk template literal"); n.push(qT(e, r)(i.join(""))), i = [], r.pop(); } else i.push(f); }), n.push(i.join("")), r.length > 0) { let a = `Chalk template literal is missing ${r.length} closing bracket${r.length === 1 ? "" : "s"} (\`}\`)`; throw new Error(a); } return n.join(""); }; }); // ../node_modules/@babel/highlight/node_modules/chalk/index.js var YT = T((ZSe, Za) => { "use strict"; var Kh = xT(), It = kT(), Wh = MT().stdout, yH = $T(), KT = process.platform === "win32" && !(process.env.TERM || "").toLowerCase().startsWith( "xterm"), GT = ["ansi", "ansi", "ansi256", "ansi16m"], HT = /* @__PURE__ */ new Set(["gray"]), Oi = /* @__PURE__ */ Object.create(null); function WT(e, t) { t = t || {}; let r = Wh ? Wh.level : 0; e.level = t.level === void 0 ? r : t.level, e.enabled = "enabled" in t ? t.enabled : e.level > 0; } s(WT, "applyOptions"); function Qa(e) { if (!this || !(this instanceof Qa) || this.template) { let t = {}; return WT(t, e), t.template = function() { let r = [].slice.call(arguments); return EH.apply(null, [t.template].concat(r)); }, Object.setPrototypeOf(t, Qa.prototype), Object.setPrototypeOf(t.template, t), t.template.constructor = Qa, t.template; } WT(this, e); } s(Qa, "Chalk"); KT && (It.blue.open = "\x1B[94m"); for (let e of Object.keys(It)) It[e].closeRe = new RegExp(Kh(It[e].close), "g"), Oi[e] = { get() { let t = It[e]; return Ql.call(this, this._styles ? this._styles.concat(t) : [t], this._empty, e); } }; Oi.visible = { get() { return Ql.call(this, this._styles || [], !0, "visible"); } }; It.color.closeRe = new RegExp(Kh(It.color.close), "g"); for (let e of Object.keys(It.color.ansi)) HT.has(e) || (Oi[e] = { get() { let t = this.level; return function() { let n = { open: It.color[GT[t]][e].apply(null, arguments), close: It.color.close, closeRe: It.color.closeRe }; return Ql.call(this, this._styles ? this._styles.concat(n) : [n], this._empty, e); }; } }); It.bgColor.closeRe = new RegExp(Kh(It.bgColor.close), "g"); for (let e of Object.keys(It.bgColor.ansi)) { if (HT.has(e)) continue; let t = "bg" + e[0].toUpperCase() + e.slice(1); Oi[t] = { get() { let r = this.level; return function() { let i = { open: It.bgColor[GT[r]][e].apply(null, arguments), close: It.bgColor.close, closeRe: It.bgColor.closeRe }; return Ql.call(this, this._styles ? this._styles.concat(i) : [i], this._empty, e); }; } }; } var gH = Object.defineProperties(() => { }, Oi); function Ql(e, t, r) { let n = /* @__PURE__ */ s(function() { return bH.apply(n, arguments); }, "builder"); n._styles = e, n._empty = t; let i = this; return Object.defineProperty(n, "level", { enumerable: !0, get() { return i.level; }, set(a) { i.level = a; } }), Object.defineProperty(n, "enabled", { enumerable: !0, get() { return i.enabled; }, set(a) { i.enabled = a; } }), n.hasGrey = this.hasGrey || r === "gray" || r === "grey", n.__proto__ = gH, n; } s(Ql, "build"); function bH() { let e = arguments, t = e.length, r = String(arguments[0]); if (t === 0) return ""; if (t > 1) for (let i = 1; i < t; i++) r += " " + e[i]; if (!this.enabled || this.level <= 0 || !r) return this._empty ? "" : r; let n = It.dim.open; KT && this.hasGrey && (It.dim.open = ""); for (let i of this._styles.slice().reverse()) r = i.open + r.replace(i.closeRe, i.open) + i.close, r = r.replace(/\r?\n/g, `${i.close}$&${i.open}`); return It.dim.open = n, r; } s(bH, "applyStyle"); function EH(e, t) { if (!Array.isArray(t)) return [].slice.call(arguments, 1).join(" "); let r = [].slice.call(arguments, 2), n = [t.raw[0]]; for (let i = 1; i < t.length; i++) n.push(String(r[i - 1]).replace(/[{}\\]/g, "\\$&")), n.push(String(t.raw[i])); return yH(e, n.join("")); } s(EH, "chalkTag"); Object.defineProperties(Qa.prototype, Oi); Za.exports = Qa(); Za.exports.supportsColor = Wh; Za.exports.default = Za.exports; }); // ../node_modules/@babel/highlight/lib/index.js var rx = T((eo) => { "use strict"; Object.defineProperty(eo, "__esModule", { value: !0 }); eo.default = wH; eo.shouldHighlight = tx; var zT = bT(), JT = gi(), Hh = vH(qh(), !0); function QT(e) { if (typeof WeakMap != "function") return null; var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(); return (QT = /* @__PURE__ */ s(function(n) { return n ? r : t; }, "_getRequireWildcardCache"))(e); } s(QT, "_getRequireWildcardCache"); function vH(e, t) { if (!t && e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; var r = QT(t); if (r && r.has(e)) return r.get(e); var n = { __proto__: null }, i = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var a in e) if (a !== "default" && {}.hasOwnProperty.call(e, a)) { var o = i ? Object.getOwnPropertyDescriptor(e, a) : null; o && (o.get || o.set) ? Object.defineProperty(n, a, o) : n[a] = e[a]; } return n.default = e, r && r.set(e, n), n; } s(vH, "_interopRequireWildcard"); var ZT = typeof process == "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, Hh.createColors)(!1) : Hh.default, XT = /* @__PURE__ */ s((e, t) => (r) => e(t(r)), "compose"), TH = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]); function xH(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: XT(XT(e.white, e.bgRed), e.bold) }; } s(xH, "getDefs"); var SH = /\r\n|[\n\r\u2028\u2029]/, PH = /^[()[\]{}]$/, ex; { let e = /^[a-z][\w-]*$/i, t = /* @__PURE__ */ s(function(r, n, i) { if (r.type === "name") { if ((0, JT.isKeyword)(r.value) || (0, JT.isStrictReservedWord)(r.value, !0) || TH.has(r.value)) return "keyword"; if (e.test(r.value) && (i[n - 1] === "<" || i.slice(n - 2, n) === " a(o)).join(` `) : r += i; } return r; } s(AH, "highlightTokens"); function tx(e) { return ZT.isColorSupported || e.forceColor; } s(tx, "shouldHighlight"); var Gh; function CH(e) { if (e) { var t; return (t = Gh) != null || (Gh = (0, Hh.createColors)(!0)), Gh; } return ZT; } s(CH, "getColors"); function wH(e, t = {}) { if (e !== "" && tx(t)) { let r = xH(CH(t.forceColor)); return AH(r, e); } else return e; } s(wH, "highlight"); { let e, t; eo.getChalk = ({ forceColor: r }) => { var n; if ((n = e) != null || (e = YT()), r) { var i; return (i = t) != null || (t = new e.constructor({ enabled: !0, level: 1 })), t; } return e; }; } }); // ../node_modules/@babel/code-frame/lib/index.js var to = T((Zl) => { "use strict"; Object.defineProperty(Zl, "__esModule", { value: !0 }); Zl.codeFrameColumns = lx; Zl.default = BH; var nx = rx(), zh = DH(qh(), !0); function ox(e) { if (typeof WeakMap != "function") return null; var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap(); return (ox = /* @__PURE__ */ s(function(n) { return n ? r : t; }, "_getRequireWildcardCache"))(e); } s(ox, "_getRequireWildcardCache"); function DH(e, t) { if (!t && e && e.__esModule) return e; if (e === null || typeof e != "object" && typeof e != "function") return { default: e }; var r = ox(t); if (r && r.has(e)) return r.get(e); var n = { __proto__: null }, i = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var a in e) if (a !== "default" && {}.hasOwnProperty.call(e, a)) { var o = i ? Object.getOwnPropertyDescriptor(e, a) : null; o && (o.get || o.set) ? Object.defineProperty(n, a, o) : n[a] = e[a]; } return n.default = e, r && r.set(e, n), n; } s(DH, "_interopRequireWildcard"); var IH = typeof process == "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, zh.createColors)(!1) : zh.default, sx = /* @__PURE__ */ s((e, t) => (r) => e(t(r)), "compose"), Yh; function _H(e) { if (e) { var t; return (t = Yh) != null || (Yh = (0, zh.createColors)(!0)), Yh; } return IH; } s(_H, "getColors"); var ix = !1; function OH(e) { return { gutter: e.gray, marker: sx(e.red, e.bold), message: sx(e.red, e.bold) }; } s(OH, "getDefs"); var ax = /\r\n|[\n\r\u2028\u2029]/; function NH(e, t, r) { let n = Object.assign({ column: 0, line: -1 }, e.start), i = Object.assign({}, n, e.end), { linesAbove: a = 2, linesBelow: o = 3 } = r || {}, l = n.line, u = n.column, c = i.line, f = i.column, p = Math.max(l - (a + 1), 0), h = Math.min(t.length, c + o); l === -1 && (p = 0), c === -1 && (h = t.length); let y = c - l, v = {}; if (y) for (let d = 0; d <= y; d++) { let b = d + l; if (!u) v[b] = !0; else if (d === 0) { let E = t[b - 1].length; v[b] = [u, E - u + 1]; } else if (d === y) v[b] = [0, f]; else { let E = t[b - d].length; v[b] = [0, E]; } } else u === f ? u ? v[l] = [u, 0] : v[l] = !0 : v[l] = [u, f - u]; return { start: p, end: h, markerLines: v }; } s(NH, "getMarkerLines"); function lx(e, t, r = {}) { let n = (r.highlightCode || r.forceColor) && (0, nx.shouldHighlight)(r), i = _H(r.forceColor), a = OH(i), o = /* @__PURE__ */ s((d, b) => n ? d(b) : b, "maybeHighlight"), l = e.split(ax), { start: u, end: c, markerLines: f } = NH(t, l, r), p = t.start && typeof t.start.column == "number", h = String(c).length, v = (n ? (0, nx.default)(e, r) : e).split(ax, c). slice(u, c).map((d, b) => { let E = u + 1 + b, O = ` ${` ${E}`.slice(-h)} |`, k = f[E], j = !f[E + 1]; if (k) { let R = ""; if (Array.isArray(k)) { let U = d.slice(0, Math.max(k[0] - 1, 0)).replace(/[^\t]/g, " "), Q = k[1] || 1; R = [` `, o(a.gutter, O.replace(/\d/g, " ")), " ", U, o(a.marker, "^").repeat(Q)].join(""), j && r.message && (R += " " + o(a.message, r.message)); } return [o(a.marker, ">"), o(a.gutter, O), d.length > 0 ? ` ${d}` : "", R].join(""); } else return ` ${o(a.gutter, O)}${d.length > 0 ? ` ${d}` : ""}`; }).join(` `); return r.message && !p && (v = `${" ".repeat(h + 1)}${r.message} ${v}`), n ? i.reset(v) : v; } s(lx, "codeFrameColumns"); function BH(e, t, r, n = {}) { if (!ix) { ix = !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), lx(e, { start: { column: r, line: t } }, n); } s(BH, "_default"); }); // ../node_modules/@babel/template/lib/parse.js var Xh = T((Jh) => { "use strict"; Object.defineProperty(Jh, "__esModule", { value: !0 }); Jh.default = HH; var kH = Pe(), FH = Ls(), jH = to(), { isCallExpression: LH, isExpressionStatement: MH, isFunction: RH, isIdentifier: qH, isJSXIdentifier: UH, isNewExpression: VH, isPlaceholder: eu, isStatement: $H, isStringLiteral: ux, removePropertiesDeep: WH, traverse: KH } = kH, GH = /^[_$A-Z0-9]+$/; function HH(e, t, r) { let { placeholderWhitelist: n, placeholderPattern: i, preserveComments: a, syntacticPlaceholders: o } = r, l = JH(t, r.parser, o); WH(l, { preserveComments: a }), e.validate(l); let u = { syntactic: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, legacy: { placeholders: [], placeholderNames: /* @__PURE__ */ new Set() }, placeholderWhitelist: n, placeholderPattern: i, syntacticPlaceholders: o }; return KH(l, YH, u), Object.assign({ ast: l }, u.syntactic.placeholders.length ? u.syntactic : u.legacy); } s(HH, "parseAndBuildMetadata"); function YH(e, t, r) { var n; let i, a = r.syntactic.placeholders.length > 0; if (eu(e)) { if (r.syntacticPlaceholders === !1) throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false."); i = e.name.name, a = !0; } else { if (a || r.syntacticPlaceholders) return; if (qH(e) || UH(e)) i = e.name; else if (ux(e)) i = 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 || GH).test(i)) && !((n = r.placeholderWhitelist) != null && n.has(i))) return; t = t.slice(); let { node: o, key: l } = t[t.length - 1], u; ux(e) || eu(e, { expectedNode: "StringLiteral" }) ? u = "string" : VH(o) && l === "arguments" || LH(o) && l === "arguments" || RH(o) && l === "params" ? u = "param" : MH(o) && !eu(e) ? (u = "statement", t = t.slice(0, -1)) : $H(e) && eu(e) ? u = "statement" : u = "other"; let { placeholders: c, placeholderNames: f } = a ? r.syntactic : r.legacy; c.push({ name: i, type: u, resolve: /* @__PURE__ */ s((p) => zH(p, t), "resolve"), isDuplicate: f.has(i) }), f.add(i); } s(YH, "placeholderVisitorHandler"); function zH(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: n, index: i } = t[t.length - 1]; return { parent: r, key: n, index: i }; } s(zH, "resolveAncestors"); function JH(e, t, r) { let n = (t.plugins || []).slice(); r !== !1 && n.push("placeholders"), t = Object.assign({ allowReturnOutsideFunction: !0, allowSuperOutsideMethod: !0, sourceType: "module" }, t, { plugins: n }); try { return (0, FH.parse)(e, t); } catch (i) { let a = i.loc; throw a && (i.message += ` ` + (0, jH.codeFrameColumns)(e, { start: a }), i.code = "BABEL_TEMPLATE_PARSE_ERROR"), i; } } s(JH, "parseWithCodeFrame"); }); // ../node_modules/@babel/template/lib/populate.js var tm = T((em) => { "use strict"; Object.defineProperty(em, "__esModule", { value: !0 }); em.default = rY; var XH = Pe(), { blockStatement: QH, cloneNode: Zh, emptyStatement: ZH, expressionStatement: Qh, identifier: tu, isStatement: cx, isStringLiteral: eY, stringLiteral: tY, validate: fx } = XH; function rY(e, t) { let r = Zh(e.ast); return t && (e.placeholders.forEach((n) => { if (!hasOwnProperty.call(t, n.name)) { let i = n.name; throw new Error(`Error: No substitution given for "${i}". 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(['${i}'])} - { placeholderPattern: /^${i}$/ }`); } }), Object.keys(t).forEach((n) => { if (!e.placeholderNames.has(n)) throw new Error(`Unknown substitution "${n}" given`); })), e.placeholders.slice().reverse().forEach((n) => { try { nY(n, r, t && t[n.name] || null); } catch (i) { throw i.message = `@babel/template placeholder "${n.name}": ${i.message}`, i; } }), r; } s(rY, "populatePlaceholders"); function nY(e, t, r) { e.isDuplicate && (Array.isArray(r) ? r = r.map((l) => Zh(l)) : typeof r == "object" && (r = Zh(r))); let { parent: n, key: i, index: a } = e.resolve(t); if (e.type === "string") { if (typeof r == "string" && (r = tY(r)), !r || !eY(r)) throw new Error("Expected string substitution"); } else if (e.type === "statement") a === void 0 ? r ? Array.isArray(r) ? r = QH(r) : typeof r == "string" ? r = Qh(tu(r)) : cx(r) || (r = Qh(r)) : r = ZH() : r && !Array. isArray(r) && (typeof r == "string" && (r = tu(r)), cx(r) || (r = Qh(r))); else if (e.type === "param") { if (typeof r == "string" && (r = tu(r)), a === void 0) throw new Error("Assertion failure."); } else if (typeof r == "string" && (r = tu(r)), Array.isArray(r)) throw new Error("Cannot replace single expression with an array."); function o(l, u, c) { let f = l[u]; l[u] = c, f.type === "Identifier" && (f.typeAnnotation && (c.typeAnnotation = f.typeAnnotation), f.optional && (c.optional = f.optional), f.decorators && (c.decorators = f.decorators)); } if (s(o, "set"), a === void 0) fx(n, i, r), o(n, i, r); else { let l = n[i].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), fx(n, i, l), n[i] = l; } } s(nY, "applyReplacement"); }); // ../node_modules/@babel/template/lib/string.js var px = T((rm) => { "use strict"; Object.defineProperty(rm, "__esModule", { value: !0 }); rm.default = oY; var sY = Fl(), iY = Xh(), aY = tm(); function oY(e, t, r) { t = e.code(t); let n; return (i) => { let a = (0, sY.normalizeReplacements)(i); return n || (n = (0, iY.default)(e, t, r)), e.unwrap((0, aY.default)(n, a)); }; } s(oY, "stringTemplate"); }); // ../node_modules/@babel/template/lib/literal.js var dx = T((nm) => { "use strict"; Object.defineProperty(nm, "__esModule", { value: !0 }); nm.default = fY; var lY = Fl(), uY = Xh(), cY = tm(); function fY(e, t, r) { let { metadata: n, names: i } = pY(e, t, r); return (a) => { let o = {}; return a.forEach((l, u) => { o[i[u]] = l; }), (l) => { let u = (0, lY.normalizeReplacements)(l); return u && Object.keys(u).forEach((c) => { if (hasOwnProperty.call(o, c)) throw new Error("Unexpected replacement overlap."); }), e.unwrap((0, cY.default)(n, u ? Object.assign(u, o) : o)); }; }; } s(fY, "literalTemplate"); function pY(e, t, r) { let n = "BABEL_TPL$", i = t.join(""); do n = "$$" + n; while (i.includes(n)); let { names: a, code: o } = dY(t, n); return { metadata: (0, uY.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 }; } s(pY, "buildLiteralData"); function dY(e, t) { let r = [], n = e[0]; for (let i = 1; i < e.length; i++) { let a = `${t}${i - 1}`; r.push(a), n += a + e[i]; } return { names: r, code: n }; } s(dY, "buildTemplateCode"); }); // ../node_modules/@babel/template/lib/builder.js var Ex = T((sm) => { "use strict"; Object.defineProperty(sm, "__esModule", { value: !0 }); sm.default = bx; var fn = Fl(), hx = px(), mx = dx(), yx = (0, fn.validate)({ placeholderPattern: !1 }); function bx(e, t) { let r = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), i = t || (0, fn.validate)(null); return Object.assign((a, ...o) => { if (typeof a == "string") { if (o.length > 1) throw new Error("Unexpected extra params."); return gx((0, hx.default)(e, a, (0, fn.merge)(i, (0, fn.validate)(o[0])))); } else if (Array.isArray(a)) { let l = r.get(a); return l || (l = (0, mx.default)(e, a, i), r.set(a, l)), gx(l(o)); } else if (typeof a == "object" && a) { if (o.length > 0) throw new Error("Unexpected extra params."); return bx(e, (0, fn.merge)(i, (0, fn.validate)(a))); } throw new Error(`Unexpected template param ${typeof a}`); }, { ast: /* @__PURE__ */ s((a, ...o) => { if (typeof a == "string") { if (o.length > 1) throw new Error("Unexpected extra params."); return (0, hx.default)(e, a, (0, fn.merge)((0, fn.merge)(i, (0, fn.validate)(o[0])), yx))(); } else if (Array.isArray(a)) { let l = n.get(a); return l || (l = (0, mx.default)(e, a, (0, fn.merge)(i, yx)), n.set(a, l)), l(o)(); } throw new Error(`Unexpected template param ${typeof a}`); }, "ast") }); } s(bx, "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 (n) { throw n.stack += ` ============= ${t}`, n; } }; } s(gx, "extendedTrace"); }); // ../node_modules/@babel/template/lib/index.js var Ni = T((mr) => { "use strict"; Object.defineProperty(mr, "__esModule", { value: !0 }); mr.statements = mr.statement = mr.smart = mr.program = mr.expression = mr.default = void 0; var ro = Uv(), no = Ex(), im = mr.smart = (0, no.default)(ro.smart), hY = mr.statement = (0, no.default)(ro.statement), mY = mr.statements = (0, no.default)(ro.statements), yY = mr.expression = (0, no.default)(ro.expression), gY = mr.program = (0, no.default)(ro.program), mPe = mr. default = Object.assign(im.bind(void 0), { smart: im, statement: hY, statements: mY, expression: yY, program: gY, ast: im.ast }); }); // ../node_modules/@babel/helpers/lib/helpers-generated.js var vx = T((ru) => { "use strict"; Object.defineProperty(ru, "__esModule", { value: !0 }); ru.default = void 0; var bY = Ni(); function G(e, t, r) { return Object.freeze({ minVersion: e, ast: /* @__PURE__ */ s(() => bY.default.program.ast(t, { preserveComments: !0 }), "ast"), metadata: r }); } s(G, "helper"); var EY = ru.default = { __proto__: null, OverloadYield: G("7.18.14", "function _OverloadYield(e,d){this.v=e,this.k=d}", { globals: [], locals: { _OverloadYield: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_OverloadYield", dependencies: {} }), applyDecoratedDescriptor: G("7.0.0-beta.0", 'function _applyDecoratedDescriptor(i,e,r,n,l){var a={};return Object.keys(n).forEach((funct\ ion(i){a[i]=n[i]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=r.slice().re\ verse().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.initi\ alizer=void 0),void 0===a.initializer?(Object.defineProperty(i,e,a),null):a}', { globals: ["Object"], locals: { _applyDecoratedDescriptor: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_applyDecoratedDescriptor", dependencies: {} }), applyDecs2311: G("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:["fiel\ d","accessor","method","getter","setter","class"][o],name:r,metadata:a,addInitializer:function(e,t){if(e.v)throw new TypeError("attempted to\ call addInitializer after decoration was finished");b(t,"An initializer","be",!0),i.push(t)}.bind(null,A)};if(w)c=T.call(z,N,H),A.v=1,b(c,"\ class decorators","return")&&(N=c);else if(H.static=s,H.private=f,c=H.access={has:f?p.bind():function(e){return r in e}},j||(c.get=f?E?funct\ ion(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.ge\ t,set:P.set}:P[F],H),A.v=1,D){if("object"==typeof N&&N)(c=b(N.get,"accessor.get"))&&(P.get=c),(c=b(N.set,"accessor.set"))&&(P.set=c),(c=b(N.\ init,"accessor.init"))&&k.unshift(c);else if(void 0!==N)throw new TypeError("accessor decorators must return an object with get, set, or ini\ t 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;i<\ n.length;i++){var a=n[i],c=a[1],l=7&c;if((8&c)==t&&!l==r){var p=a[2],d=!!a[3],m=16&c;applyDec(t?e:e.prototype,a,m,d?"#"+p:toPropertyKey(p),l\ ,l<2?[]:t?s=s||[]:u=u||[],f,!!t,d,r,t&&d?function(t){return checkInRHS(t)===e}:o)}}},p(8,0),p(0,0),p(8,1),p(0,1),l(u),l(s),c=f,v||w(e),{e:c,\ get c(){var n=[];return v&&[w(e=applyDec(e,[t],r,e.name,5,n)),g(n,1)]}}}', { globals: ["Symbol", "Object", "TypeError", "Error"], locals: { applyDecs2311: ["body.0.id"] }, exportBindingAssignments: [], exportName: "applyDecs2311", dependencies: { checkInRHS: ["body.0.body.body.5.argument.expressions.4.right.body.body.0.body.body.1.consequent.body.1.expression.arguments.10.cons\ equent.body.body.0.argument.left.callee"], setFunctionName: ["body.0.body.body.3.body.body.3.consequent.body.1.test.expressions.0.consequent.expressions.0.consequent.right.pro\ perties.0.value.callee", "body.0.body.body.3.body.body.3.consequent.body.1.test.expressions.0.consequent.expressions.1.right.callee"], toPropertyKey: ["body.0.body.body.5.argument.expressions.4.right.body.body.0.body.body.1.consequent.body.1.expression.arguments.3.al\ ternate.callee"] } }), arrayLikeToArray: G("7.9.0", "function _arrayLikeToArray(r,a){(null==a||a>r.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"] } }), createForOfIteratorHelperLoose: G("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"] } }), createSuper: G("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"] } }), decorate: G("7.1.5", `function _decorate(e,r,t,i){var o=_getDecoratorsApi();if(i)for(var n=0;n=0;n--){var s=r[e.placement];s.splice(s.indexOf(e.key),1);var a=this.fromElementDescriptor(e),l=this.toElementFinisherExtras((0,o[n])(a)||a\ );e=l.element,this.addElementPlacement(e,r),l.finisher&&i.push(l.finisher);var c=l.extras;if(c){for(var p=0;p=0;\ i--){var o=this.fromClassDescriptor(e),n=this.toClassDescriptor((0,r[i])(o)||o);if(void 0!==n.finisher&&t.push(n.finisher),void 0!==n.elemen\ ts){e=n.elements;for(var s=0;s1){for(var t=Array(n),f=0;f=0;--o){var i=this.tryEntries[o],a=i.completion;if("r\ oot"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.\ prev=0;--e){var r=this.tryEntries[e];if(r.finallyLo\ c===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var \ r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r)}return o}}throw Error("illegal ca\ tch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.ar\ g=t),y}},e}`, { globals: ["Object", "Symbol", "Error", "TypeError", "isNaN", "Promise"], locals: { _regeneratorRuntime: ["body.0.id", "body.0.body.body.0.expression.left"] }, exportBindingAssignments: ["body.0.body.body.0.expression"], exportName: "_regeneratorRuntime", dependencies: {} }), set: G("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"] } }), setFunctionName: G("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: {} }), setPrototypeOf: G("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: {} }), skipFirstGeneratorNext: G("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: {} }), slicedToArray: G("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"] } }), superPropBase: G("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"] } }), superPropGet: G("7.25.0", "function _superPropertyGet(t,e,r,o){var p=get(getPrototypeOf(1&o?t.prototype:t),e,r);return 2&o?function(t){r\ eturn p.apply(r,t)}:p}", { globals: [], locals: { _superPropertyGet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_superPropertyGet", dependencies: { get: ["body.0.body.body.0.declarations.0.init.callee"], getPrototypeOf: ["body.0.body.body.0.declarations.0.init.arguments.0.callee"] } }), superPropSet: G("7.25.0", "function _superPropertySet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}", { globals: [], locals: { _superPropertySet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_superPropertySet", dependencies: { set: ["body.0.body.body.0.argument.callee"], getPrototypeOf: ["body.0.body.body.0.argument.arguments.0.callee"] } }), taggedTemplateLiteral: G("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: {} }), taggedTemplateLiteralLoose: G("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: {} }), tdz: G("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: {} }), temporalRef: G("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"] } }), temporalUndefined: G("7.0.0-beta.0", "function _temporalUndefined(){}", { globals: [], locals: { _temporalUndefined: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_temporalUndefined", dependencies: {} }), toArray: G("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"] } }), toConsumableArray: G("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"] } }), toPrimitive: G("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: {} }), toPropertyKey: G("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"] } }), toSetter: G("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: {} }), typeof: G("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: {} }), unsupportedIterableToArray: G("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"] } }), usingCtx: G("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: {} }), wrapAsyncGenerator: G("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":"nor\ mal",t)}),(function(e){resume("throw",e)}))}catch(e){settle("throw",e)}}function settle(e,n){switch(e){case"return":r.resolve({value:n,done:\ !0});break;case"throw":r.reject(n);break;default:r.resolve({value:n,done:!1})}(r=r.next)?resume(r.key,r.arg):t=null}this._invoke=function(e,\ n){return new Promise((function(o,u){var i={key:e,arg:n,resolve:o,reject:u,next:null};t?t=t.next=i:(r=t=i,resume(e,n))}))},"function"!=typeo\ f e.return&&(this.return=void 0)}AsyncGenerator.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){ret\ urn this},AsyncGenerator.prototype.next=function(e){return this._invoke("next",e)},AsyncGenerator.prototype.throw=function(e){return this._i\ nvoke("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"] } }), wrapNativeSuper: G("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"] } }), wrapRegExp: G("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){var t=o[r];return"$"+(Array.isArray(t)?t.join("$"):t)})))}if("function"==typeof p){var i=this;return e[Symbol.replace].call\ (this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e)}))}ret\ urn 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"] } }), writeOnlyError: G("7.12.13", `function _writeOnlyError(r){throw new TypeError('"'+r+'" is write-only')}`, { globals: ["TypeError"], locals: { _writeOnlyError: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_writeOnlyError", dependencies: {} }) }; Object.assign(EY, { AwaitValue: G("7.0.0-beta.0", "function _AwaitValue(t){this.wrapped=t}", { globals: [], locals: { _AwaitValue: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_AwaitValue", dependencies: {} }), applyDecs: G("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 c\ urrently 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)}}o\ ld_pushInitializers(e,i),old_pushInitializers(e,n)}function old_pushInitializers(e,t){t&&e.push((function(e){for(var a=0;a0){for(var o=[],i=t,n=t.name,l=r.length-1;l>=0;l--){var s={v:!1};try{v\ ar c=Object.assign({kind:"class",name:n,addInitializer:old_createAddInitializerMethod(o,s)},old_createMetadataMethodsForProperty(a,0,n,s)),d\ =r[l](i,c)}finally{s.v=!0}void 0!==d&&(old_assertValidReturnValue(10,d),i=d)}e.push(i,(function(){for(var e=0;e=0;v--){var g;void 0!==(f=memberDe\ c(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"!=type\ of 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 met\ hod/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)}applyMemberDe\ c(e,l,c,p,f,h,d,u)}}pushInitializers(e,a),pushInitializers(e,n)}(a,e,t),function(e,t,r){if(r.length>0){for(var a=[],n=t,i=t.name,s=r.length-\ 1;s>=0;s--){var o={v:!1};try{var c=r[s](n,{kind:"class",name:i,addInitializer:createAddInitializerMethod(a,o)})}finally{o.v=!0}void 0!==c&&(\ assertValidReturnValue(10,c),n=c)}e.push(n,(function(){for(var e=0;e=0;g--){var y;void 0!==(p=memberDec(v\ [g],n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0===a?y=p:1===a?(y=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p,void 0!==y&&(\ void 0===l?l=y:"function"==typeof l?l=[l,y]:l.push(y)))}if(0===a||1===a){if(void 0===l)l=function(e,t){return t};else if("function"!=typeof \ l){var m=l;l=function(e,t){for(var r=t,n=0;n3,h=f>=5;if(h?(l=e,0!=(f-=5)&&(u=n=n||[])):(l=e.prototype,0!==f&&(u=r=r||[])),0!==f&&!d){var v=h?o:i,g=v.get(p)||0;if(!0=\ ==g||3===g&&4!==f||4===g&&3!==f)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated\ public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+p);!g&&f>2?v.set(p,f):v.set(p,!0)}ap\ plyMemberDec(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){fo\ r(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:createAddInitializ\ erMethod(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=functi\ on(t){return checkInRHS(t)===e}),g=i):(f=e.prototype,0!==d&&(p=n=n||[])),0!==d&&!v){var m=y?c:o,b=m.get(h)||0;if(!0===b||3===b&&4!==d||4===b\ &&3!==d)throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor.\ This is not currently supported by the decorators plugin. Property name was: "+h);!b&&d>2?m.set(h,d):m.set(h,!0)}applyMemberDec(s,f,l,h,d,y\ ,v,p,g)}}return pushInitializers(s,n),pushInitializers(s,a),s}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r0){for(var r=[\ ],n=e,a=e.name,i=t.length-1;i>=0;i--){var s={v:!1};try{var o=t[i](n,{kind:"class",name:a,addInitializer:createAddInitializerMethod(r,s)})}fi\ nally{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].ca\ ll(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.le\ ngth>=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=funct\ ion(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)thr\ ow Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is no\ t currently supported by the decorators plugin. Property name was: "+h);u.set(b,!(d>2)||d)}applyDec(v?e:e.prototype,p,y,m?"#"+h:toPropertyKe\ y(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.leng\ th&&[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"] } }), classApplyDescriptorDestructureSet: G("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: {} }), classApplyDescriptorGet: G("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: {} }), classApplyDescriptorSet: G("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: {} }), classCheckPrivateStaticAccess: G("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"] } }), classCheckPrivateStaticFieldDescriptor: G("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: {} }), classExtractFieldDescriptor: G("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"] } }), classPrivateFieldDestructureSet: G("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"] } }), classPrivateFieldGet: G("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"] } }), classPrivateFieldSet: G("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"] } }), classPrivateMethodGet: G("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"] } }), classPrivateMethodSet: G("7.1.6", 'function _classPrivateMethodSet(){throw new TypeError("attempted to reassign private method")}', { globals: ["TypeError"], locals: { _classPrivateMethodSet: ["body.0.id"] }, exportBindingAssignments: [], exportName: "_classPrivateMethodSet", dependencies: {} }), classStaticPrivateFieldDestructureSet: G("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"] } }), classStaticPrivateFieldSpecGet: G("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"] } }), classStaticPrivateFieldSpecSet: G("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"] } }), classStaticPrivateMethodSet: G("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: {} }), defineEnumerableProperties: G("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: {} }), objectSpread: G("7.0.0-beta.0", 'function _objectSpread(e){for(var r=1;r { "use strict"; Object.defineProperty(pn, "__esModule", { value: !0 }); pn.default = void 0; pn.get = Sx; pn.getDependencies = PY; pn.list = void 0; pn.minVersion = SY; var vY = Pe(), xx = vx(), { cloneNode: TY, identifier: Tx } = vY; function nu(e, t, r) { try { let n = t.split("."), i = n.shift(); for (; n.length > 0; ) e = e[i], i = n.shift(); if (arguments.length > 2) e[i] = r; else return e[i]; } catch (n) { throw n.message += ` (when accessing ${t})`, n; } } s(nu, "deep"); function xY(e, t, r, n, i, a) { let { locals: o, dependencies: l, exportBindingAssignments: u, exportName: c } = t, f = new Set(n || []); r && f.add(r); for (let [p, h] of (Object.entries || ((y) => Object.keys(y).map((v) => [v, y[v]])))(o)) { let y = p; if (r && p === c) y = r; else for (; f.has(y); ) y = "_" + y; if (y !== p) for (let v of h) nu(e, v, Tx(y)); } for (let [p, h] of (Object.entries || ((y) => Object.keys(y).map((v) => [v, y[v]])))(l)) { let y = typeof i == "function" && i(p) || Tx(p); for (let v of h) nu(e, v, TY(y)); } a?.(e, c, (p) => { u.forEach((h) => nu(e, h, p(nu(e, h)))); }); } s(xY, "permuteHelperAST"); var am = /* @__PURE__ */ Object.create(null); function su(e) { if (!am[e]) { let t = xx.default[e]; if (!t) throw Object.assign(new ReferenceError(`Unknown helper ${e}`), { code: "BABEL_HELPER_UNKNOWN", helper: e }); am[e] = { minVersion: t.minVersion, build(r, n, i, a) { let o = t.ast(); return xY(o, t.metadata, n, i, r, a), { nodes: o.body, globals: t.metadata.globals }; }, getDependencies() { return Object.keys(t.metadata.dependencies); } }; } return am[e]; } s(su, "loadHelper"); function Sx(e, t, r, n, i) { if (typeof r == "object") { let a = r; a?.type === "Identifier" ? r = a.name : r = void 0; } return su(e).build(t, r, n, i); } s(Sx, "get"); function SY(e) { return su(e).minVersion; } s(SY, "minVersion"); function PY(e) { return su(e).getDependencies(); } s(PY, "getDependencies"); pn.ensure = (e) => { su(e); }; var EPe = pn.list = Object.keys(xx.default).map((e) => e.replace(/^_/, "")), vPe = pn.default = Sx; }); // ../node_modules/@babel/traverse/lib/path/lib/virtual-types.js var lm = T((We) => { "use strict"; Object.defineProperty(We, "__esModule", { value: !0 }); We.Var = We.User = We.Statement = We.SpreadProperty = We.Scope = We.RestProperty = We.ReferencedMemberExpression = We.ReferencedIdentifier = We.Referenced = We.Pure = We.NumericLiteralTypeAnnotation = We.Generated = We.ForAwaitStatement = We.Flow = We.Expression = We.ExistentialTypeParam = We.BlockScoped = We.BindingIdentifier = void 0; var SPe = We.ReferencedIdentifier = ["Identifier", "JSXIdentifier"], PPe = We.ReferencedMemberExpression = ["MemberExpression"], APe = We. BindingIdentifier = ["Identifier"], CPe = We.Statement = ["Statement"], wPe = We.Expression = ["Expression"], DPe = We.Scope = ["Scopable", "Pattern"], IPe = We.Referenced = null, _Pe = We.BlockScoped = null, OPe = We.Var = ["VariableDeclaration"], NPe = We.User = null, BPe = We. Generated = null, kPe = We.Pure = null, FPe = We.Flow = ["Flow", "ImportDeclaration", "ExportDeclaration", "ImportSpecifier"], jPe = We.RestProperty = ["RestElement"], LPe = We.SpreadProperty = ["RestElement"], MPe = We.ExistentialTypeParam = ["ExistsTypeAnnotation"], RPe = We.NumericLiteralTypeAnnotation = ["NumberLiteralTypeAnnotation"], qPe = We.ForAwaitStatement = ["ForOfStatement"]; }); // ../node_modules/debug/node_modules/ms/index.js var Ax = T((VPe, Px) => { var Bi = 1e3, ki = Bi * 60, Fi = ki * 60, Rs = Fi * 24, AY = Rs * 7, CY = Rs * 365.25; Px.exports = function(e, t) { t = t || {}; var r = typeof e; if (r === "string" && e.length > 0) return wY(e); if (r === "number" && isFinite(e)) return t.long ? IY(e) : DY(e); throw new Error( "val is not a non-empty string or a valid number. val=" + JSON.stringify(e) ); }; function wY(e) { if (e = String(e), !(e.length > 100)) { var t = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i. exec( e ); if (t) { var r = parseFloat(t[1]), n = (t[2] || "ms").toLowerCase(); switch (n) { case "years": case "year": case "yrs": case "yr": case "y": return r * CY; case "weeks": case "week": case "w": return r * AY; case "days": case "day": case "d": return r * Rs; case "hours": case "hour": case "hrs": case "hr": case "h": return r * Fi; case "minutes": case "minute": case "mins": case "min": case "m": return r * ki; case "seconds": case "second": case "secs": case "sec": case "s": return r * Bi; case "milliseconds": case "millisecond": case "msecs": case "msec": case "ms": return r; default: return; } } } } s(wY, "parse"); function DY(e) { var t = Math.abs(e); return t >= Rs ? Math.round(e / Rs) + "d" : t >= Fi ? Math.round(e / Fi) + "h" : t >= ki ? Math.round(e / ki) + "m" : t >= Bi ? Math.round( e / Bi) + "s" : e + "ms"; } s(DY, "fmtShort"); function IY(e) { var t = Math.abs(e); return t >= Rs ? iu(e, t, Rs, "day") : t >= Fi ? iu(e, t, Fi, "hour") : t >= ki ? iu(e, t, ki, "minute") : t >= Bi ? iu(e, t, Bi, "secon\ d") : e + " ms"; } s(IY, "fmtLong"); function iu(e, t, r, n) { var i = t >= r * 1.5; return Math.round(e / r) + " " + n + (i ? "s" : ""); } s(iu, "plural"); }); // ../node_modules/debug/src/common.js var um = T((WPe, Cx) => { function _Y(e) { r.debug = r, r.default = r, r.coerce = u, r.disable = a, r.enable = i, r.enabled = o, r.humanize = Ax(), r.destroy = c, Object.keys(e).forEach( (f) => { r[f] = e[f]; }), r.names = [], r.skips = [], r.formatters = {}; function t(f) { let p = 0; for (let h = 0; h < f.length; h++) p = (p << 5) - p + f.charCodeAt(h), p |= 0; return r.colors[Math.abs(p) % r.colors.length]; } s(t, "selectColor"), r.selectColor = t; function r(f) { let p, h = null, y, v; function d(...b) { if (!d.enabled) return; let E = d, I = Number(/* @__PURE__ */ new Date()), O = I - (p || I); E.diff = O, E.prev = p, E.curr = I, p = I, b[0] = r.coerce(b[0]), typeof b[0] != "string" && b.unshift("%O"); let k = 0; b[0] = b[0].replace(/%([a-zA-Z%])/g, (R, U) => { if (R === "%%") return "%"; k++; let Q = r.formatters[U]; if (typeof Q == "function") { let W = b[k]; R = Q.call(E, W), b.splice(k, 1), k--; } return R; }), r.formatArgs.call(E, b), (E.log || r.log).apply(E, b); } return s(d, "debug"), d.namespace = f, d.useColors = r.useColors(), d.color = r.selectColor(f), d.extend = n, d.destroy = r.destroy, Object. defineProperty(d, "enabled", { enumerable: !0, configurable: !1, get: /* @__PURE__ */ s(() => h !== null ? h : (y !== r.namespaces && (y = r.namespaces, v = r.enabled(f)), v), "get"), set: /* @__PURE__ */ s((b) => { h = b; }, "set") }), typeof r.init == "function" && r.init(d), d; } s(r, "createDebug"); function n(f, p) { let h = r(this.namespace + (typeof p > "u" ? ":" : p) + f); return h.log = this.log, h; } s(n, "extend"); function i(f) { r.save(f), r.namespaces = f, r.names = [], r.skips = []; let p, h = (typeof f == "string" ? f : "").split(/[\s,]+/), y = h.length; for (p = 0; p < y; p++) h[p] && (f = h[p].replace(/\*/g, ".*?"), f[0] === "-" ? r.skips.push(new RegExp("^" + f.slice(1) + "$")) : r.names.push(new RegExp("\ ^" + f + "$"))); } s(i, "enable"); function a() { let f = [ ...r.names.map(l), ...r.skips.map(l).map((p) => "-" + p) ].join(","); return r.enable(""), f; } s(a, "disable"); function o(f) { if (f[f.length - 1] === "*") return !0; let p, h; for (p = 0, h = r.skips.length; p < h; p++) if (r.skips[p].test(f)) return !1; for (p = 0, h = r.names.length; p < h; p++) if (r.names[p].test(f)) return !0; return !1; } s(o, "enabled"); function l(f) { return f.toString().substring(2, f.toString().length - 2).replace(/\.\*\?$/, "*"); } s(l, "toNamespace"); function u(f) { return f instanceof Error ? f.stack || f.message : f; } s(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 s(c, "destroy"), r.enable(r.load()), r; } s(_Y, "setup"); Cx.exports = _Y; }); // ../node_modules/debug/src/browser.js var wx = T((gr, au) => { gr.formatArgs = NY; gr.save = BY; gr.load = kY; gr.useColors = OY; gr.storage = FY(); gr.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`.")); }; })(); gr.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 OY() { 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+)/); } s(OY, "useColors"); function NY(e) { if (e[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + e[0] + (this.useColors ? "%c " : " ") + "+" + au.exports.humanize(this.diff), !this.useColors) return; let t = "color: " + this.color; e.splice(1, 0, t, "color: inherit"); let r = 0, n = 0; e[0].replace(/%[a-zA-Z%]/g, (i) => { i !== "%%" && (r++, i === "%c" && (n = r)); }), e.splice(n, 0, t); } s(NY, "formatArgs"); gr.log = console.debug || console.log || (() => { }); function BY(e) { try { e ? gr.storage.setItem("debug", e) : gr.storage.removeItem("debug"); } catch { } } s(BY, "save"); function kY() { let e; try { e = gr.storage.getItem("debug"); } catch { } return !e && typeof process < "u" && "env" in process && (e = process.env.DEBUG), e; } s(kY, "load"); function FY() { try { return localStorage; } catch { } } s(FY, "localstorage"); au.exports = um()(gr); var { formatters: jY } = au.exports; jY.j = function(e) { try { return JSON.stringify(e); } catch (t) { return "[UnexpectedJSONParseError]: " + t.message; } }; }); // ../node_modules/has-flag/index.js var Ix = T((HPe, Dx) => { "use strict"; Dx.exports = (e, t = process.argv) => { let r = e.startsWith("-") ? "" : e.length === 1 ? "-" : "--", n = t.indexOf(r + e), i = t.indexOf("--"); return n !== -1 && (i === -1 || n < i); }; }); // ../node_modules/supports-color/index.js var Nx = T((YPe, Ox) => { "use strict"; var LY = ie("os"), _x = ie("tty"), Ir = Ix(), { env: jt } = process, ss; Ir("no-color") || Ir("no-colors") || Ir("color=false") || Ir("color=never") ? ss = 0 : (Ir("color") || Ir("colors") || Ir("color=true") || Ir("color=always")) && (ss = 1); "FORCE_COLOR" in jt && (jt.FORCE_COLOR === "true" ? ss = 1 : jt.FORCE_COLOR === "false" ? ss = 0 : ss = jt.FORCE_COLOR.length === 0 ? 1 : Math. min(parseInt(jt.FORCE_COLOR, 10), 3)); function cm(e) { return e === 0 ? !1 : { level: e, hasBasic: !0, has256: e >= 2, has16m: e >= 3 }; } s(cm, "translateLevel"); function fm(e, t) { if (ss === 0) return 0; if (Ir("color=16m") || Ir("color=full") || Ir("color=truecolor")) return 3; if (Ir("color=256")) return 2; if (e && !t && ss === void 0) return 0; let r = ss || 0; if (jt.TERM === "dumb") return r; if (process.platform === "win32") { let n = LY.release().split("."); return Number(n[0]) >= 10 && Number(n[2]) >= 10586 ? Number(n[2]) >= 14931 ? 3 : 2 : 1; } if ("CI" in jt) return ["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((n) => n in jt) || jt.CI_NAME === "codeship" ? 1 : r; if ("TEAMCITY_VERSION" in jt) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(jt.TEAMCITY_VERSION) ? 1 : 0; if (jt.COLORTERM === "truecolor") return 3; if ("TERM_PROGRAM" in jt) { let n = parseInt((jt.TERM_PROGRAM_VERSION || "").split(".")[0], 10); switch (jt.TERM_PROGRAM) { case "iTerm.app": return n >= 3 ? 3 : 2; case "Apple_Terminal": return 2; } } return /-256(color)?$/i.test(jt.TERM) ? 2 : /^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(jt.TERM) || "COLORTERM" in jt ? 1 : r; } s(fm, "supportsColor"); function MY(e) { let t = fm(e, e && e.isTTY); return cm(t); } s(MY, "getSupportLevel"); Ox.exports = { supportsColor: MY, stdout: cm(fm(!0, _x.isatty(1))), stderr: cm(fm(!0, _x.isatty(2))) }; }); // ../node_modules/debug/src/node.js var kx = T((Lt, lu) => { var RY = ie("tty"), ou = ie("util"); Lt.init = GY; Lt.log = $Y; Lt.formatArgs = UY; Lt.save = WY; Lt.load = KY; Lt.useColors = qY; Lt.destroy = ou.deprecate( () => { }, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`." ); Lt.colors = [6, 2, 3, 4, 5, 1]; try { let e = Nx(); e && (e.stderr || e).level >= 2 && (Lt.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 { } Lt.inspectOpts = Object.keys(process.env).filter((e) => /^debug_/i.test(e)).reduce((e, t) => { let r = t.substring(6).toLowerCase().replace(/_([a-z])/g, (i, a) => a.toUpperCase()), n = process.env[t]; return /^(yes|on|true|enabled)$/i.test(n) ? n = !0 : /^(no|off|false|disabled)$/i.test(n) ? n = !1 : n === "null" ? n = null : n = Number( n), e[r] = n, e; }, {}); function qY() { return "colors" in Lt.inspectOpts ? !!Lt.inspectOpts.colors : RY.isatty(process.stderr.fd); } s(qY, "useColors"); function UY(e) { let { namespace: t, useColors: r } = this; if (r) { let n = this.color, i = "\x1B[3" + (n < 8 ? n : "8;5;" + n), a = ` ${i};1m${t} \x1B[0m`; e[0] = a + e[0].split(` `).join(` ` + a), e.push(i + "m+" + lu.exports.humanize(this.diff) + "\x1B[0m"); } else e[0] = VY() + t + " " + e[0]; } s(UY, "formatArgs"); function VY() { return Lt.inspectOpts.hideDate ? "" : (/* @__PURE__ */ new Date()).toISOString() + " "; } s(VY, "getDate"); function $Y(...e) { return process.stderr.write(ou.formatWithOptions(Lt.inspectOpts, ...e) + ` `); } s($Y, "log"); function WY(e) { e ? process.env.DEBUG = e : delete process.env.DEBUG; } s(WY, "save"); function KY() { return process.env.DEBUG; } s(KY, "load"); function GY(e) { e.inspectOpts = {}; let t = Object.keys(Lt.inspectOpts); for (let r = 0; r < t.length; r++) e.inspectOpts[t[r]] = Lt.inspectOpts[t[r]]; } s(GY, "init"); lu.exports = um()(Lt); var { formatters: Bx } = lu.exports; Bx.o = function(e) { return this.inspectOpts.colors = this.useColors, ou.inspect(e, this.inspectOpts).split(` `).map((t) => t.trim()).join(" "); }; Bx.O = function(e) { return this.inspectOpts.colors = this.useColors, ou.inspect(e, this.inspectOpts); }; }); // ../node_modules/debug/src/index.js var qs = T((XPe, pm) => { typeof process > "u" || process.type === "renderer" || process.browser === !0 || process.__nwjs ? pm.exports = wx() : pm.exports = kx(); }); // ../node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js var hm = T((_t) => { "use strict"; Object.defineProperty(_t, "__esModule", { value: !0 }); _t.isBindingIdentifier = mz; _t.isBlockScoped = vz; _t.isExpression = gz; _t.isFlow = Az; _t.isForAwaitStatement = Dz; _t.isGenerated = Sz; _t.isPure = Pz; _t.isReferenced = Ez; _t.isReferencedIdentifier = dz; _t.isReferencedMemberExpression = hz; _t.isRestProperty = Cz; _t.isScope = bz; _t.isSpreadProperty = wz; _t.isStatement = yz; _t.isUser = xz; _t.isVar = Tz; var HY = Pe(), { isBinding: YY, isBlockScoped: zY, isExportDeclaration: JY, isExpression: XY, isFlow: QY, isForStatement: ZY, isForXStatement: ez, isIdentifier: Fx, isImportDeclaration: tz, isImportSpecifier: rz, isJSXIdentifier: nz, isJSXMemberExpression: sz, isMemberExpression: iz, isRestElement: jx, isReferenced: dm, isScope: az, isStatement: oz, isVar: lz, isVariableDeclaration: uz, react: cz, isForOfStatement: fz } = HY, { isCompatTag: pz } = cz; function dz(e) { let { node: t, parent: r } = this; if (!Fx(t, e) && !sz(r, e)) if (nz(t, e)) { if (pz(t.name)) return !1; } else return !1; return dm(t, r, this.parentPath.parent); } s(dz, "isReferencedIdentifier"); function hz() { let { node: e, parent: t } = this; return iz(e) && dm(e, t); } s(hz, "isReferencedMemberExpression"); function mz() { let { node: e, parent: t } = this, r = this.parentPath.parent; return Fx(e) && YY(e, t, r); } s(mz, "isBindingIdentifier"); function yz() { let { node: e, parent: t } = this; return oz(e) ? !(uz(e) && (ez(t, { left: e }) || ZY(t, { init: e }))) : !1; } s(yz, "isStatement"); function gz() { return this.isIdentifier() ? this.isReferencedIdentifier() : XY(this.node); } s(gz, "isExpression"); function bz() { return az(this.node, this.parent); } s(bz, "isScope"); function Ez() { return dm(this.node, this.parent); } s(Ez, "isReferenced"); function vz() { return zY(this.node); } s(vz, "isBlockScoped"); function Tz() { return lz(this.node); } s(Tz, "isVar"); function xz() { return this.node && !!this.node.loc; } s(xz, "isUser"); function Sz() { return !this.isUser(); } s(Sz, "isGenerated"); function Pz(e) { return this.scope.isPure(this.node, e); } s(Pz, "isPure"); function Az() { let { node: e } = this; return QY(e) ? !0 : tz(e) ? e.importKind === "type" || e.importKind === "typeof" : JY(e) ? e.exportKind === "type" : rz(e) ? e.importKind === "type" || e.importKind === "typeof" : !1; } s(Az, "isFlow"); function Cz() { var e; return jx(this.node) && ((e = this.parentPath) == null ? void 0 : e.isObjectPattern()); } s(Cz, "isRestProperty"); function wz() { var e; return jx(this.node) && ((e = this.parentPath) == null ? void 0 : e.isObjectExpression()); } s(wz, "isSpreadProperty"); function Dz() { return fz(this.node, { await: !0 }); } s(Dz, "isForAwaitStatement"); _t.isExistentialTypeParam = /* @__PURE__ */ s(function() { throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7."); }, "isExistentialTypeParam"), _t.isNumericLiteralTypeAnnotation = /* @__PURE__ */ s(function() { throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7."); }, "isNumericLiteralTypeAnnotation"); }); // ../node_modules/@babel/traverse/lib/visitors.js var io = T((Vs) => { "use strict"; Object.defineProperty(Vs, "__esModule", { value: !0 }); Vs.environmentVisitor = jz; Vs.explode = Hx; Vs.isExplodedVisitor = Gx; Vs.merge = zx; Vs.verify = Yx; var Kx = lm(), Iz = hm(), _z = Pe(), Lx = ji(), { DEPRECATED_KEYS: Mx, DEPRECATED_ALIASES: Rx, FLIPPED_ALIAS_KEYS: qx, TYPES: Oz, __internal__deprecationWarning: Ux } = _z; function Nz(e) { return e in Kx; } s(Nz, "isVirtualType"); function Gx(e) { return e?._exploded; } s(Gx, "isExplodedVisitor"); function Hx(e) { if (Gx(e)) return e; e._exploded = !0; for (let t of Object.keys(e)) { if (Us(t)) continue; let r = t.split("|"); if (r.length === 1) continue; let n = e[t]; delete e[t]; for (let i of r) e[i] = n; } Yx(e), delete e.__esModule, Bz(e), Wx(e); for (let t of Object.keys(e)) { if (Us(t) || !Nz(t)) continue; let r = e[t]; for (let i of Object.keys(r)) r[i] = kz(t, r[i]); delete e[t]; let n = Kx[t]; if (n !== null) for (let i of n) e[i] ? so(e[i], r) : e[i] = r; else so(e, r); } for (let t of Object.keys(e)) { if (Us(t)) continue; let r = qx[t]; if (t in Mx) { let i = Mx[t]; Ux(t, i, "Visitor "), r = [i]; } else if (t in Rx) { let i = Rx[t]; Ux(t, i, "Visitor "), r = qx[i]; } if (!r) continue; let n = e[t]; delete e[t]; for (let i of r) { let a = e[i]; a ? so(a, n) : e[i] = Object.assign({}, n); } } for (let t of Object.keys(e)) Us(t) || Wx(e[t]); return e; } s(Hx, "explode$1"); function Yx(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") && Vx(t, e[t]), Us(t)) continue; if (!Oz.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.25.3`); let r = e[t]; if (typeof r == "object") for (let n of Object.keys(r)) if (n === "enter" || n === "exit") Vx(`${t}.${n}`, r[n]); else throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${n}`); } e._verified = !0; } } s(Yx, "verify$1"); function Vx(e, t) { let r = [].concat(t); for (let n of r) if (typeof n != "function") throw new TypeError(`Non-function found defined in ${e} with type ${typeof n}`); } s(Vx, "validateVisitorMethods"); function zx(e, t = [], r) { let n = { _verified: !0, _exploded: !0 }; Object.defineProperty(n, "_exploded", { enumerable: !1 }), Object.defineProperty(n, "_verified", { enumerable: !1 }); for (let i = 0; i < e.length; i++) { let a = Hx(e[i]), o = t[i], l = a; (o || r) && (l = $x(l, o, r)), so(n, l); for (let u of Object.keys(a)) { if (Us(u)) continue; let c = a[u]; (o || r) && (c = $x(c, o, r)); let f = n[u] || (n[u] = {}); so(f, c); } } return n; } s(zx, "merge"); function $x(e, t, r) { let n = {}; for (let i of ["enter", "exit"]) { let a = e[i]; Array.isArray(a) && (a = a.map(function(o) { let l = o; return t && (l = /* @__PURE__ */ s(function(u) { o.call(t, u, t); }, "newFn")), r && (l = r(t?.key, i, l)), l !== o && (l.toString = () => o.toString()), l; }), n[i] = a); } return n; } s($x, "wrapWithStateOrWrapper"); function Bz(e) { for (let t of Object.keys(e)) { if (Us(t)) continue; let r = e[t]; typeof r == "function" && (e[t] = { enter: r }); } } s(Bz, "ensureEntranceObjects"); function Wx(e) { e.enter && !Array.isArray(e.enter) && (e.enter = [e.enter]), e.exit && !Array.isArray(e.exit) && (e.exit = [e.exit]); } s(Wx, "ensureCallbackArrays"); function kz(e, t) { let r = `is${e}`, n = Iz[r], i = /* @__PURE__ */ s(function(a) { if (n.call(a)) return t.apply(this, arguments); }, "newFn"); return i.toString = () => t.toString(), i; } s(kz, "wrapCheck"); function Us(e) { return e[0] === "_" || e === "enter" || e === "exit" || e === "shouldSkip" || e === "denylist" || e === "noScope" || e === "skipKeys" || e === "blacklist"; } s(Us, "shouldIgnoreKey"); function so(e, t) { for (let r of ["enter", "exit"]) t[r] && (e[r] = [].concat(e[r] || [], t[r])); } s(so, "mergePair"); var Fz = { FunctionParent(e) { e.isArrowFunctionExpression() || (e.skip(), e.isMethod() && (e.requeueComputedKeyAndDecorators ? e.requeueComputedKeyAndDecorators() : Lx.requeueComputedKeyAndDecorators.call(e))); }, Property(e) { e.isObjectProperty() || (e.skip(), e.requeueComputedKeyAndDecorators ? e.requeueComputedKeyAndDecorators() : Lx.requeueComputedKeyAndDecorators. call(e)); } }; function jz(e) { return zx([Fz, e]); } s(jz, "environmentVisitor"); }); // ../node_modules/@babel/traverse/lib/scope/lib/renamer.js var Jx = T((uu) => { "use strict"; Object.defineProperty(uu, "__esModule", { value: !0 }); uu.default = void 0; var Lz = Pe(), Mz = cu(), Rz = io(), qz = ji(), Uz = { 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() : qz.requeueComputedKeyAndDecorators.call(e))); }, ObjectProperty({ node: e, scope: t }, r) { let { name: n } = e.key; if (e.shorthand && (n === r.oldName || n === r.newName) && t.getBindingIdentifier(n) === r.binding.identifier) { e.shorthand = !1; { var i; (i = e.extra) != null && i.shorthand && (e.extra.shorthand = !1); } } }, "AssignmentExpression|Declaration|VariableDeclarator"(e, t) { if (e.isVariableDeclaration()) return; let r = e.isAssignmentExpression() ? e.getAssignmentIdentifiers() : e.getOuterBindingIdentifiers(); for (let n in r) n === t.oldName && (r[n].name = t.newName); } }, mm = class { static { s(this, "Renamer"); } constructor(t, r, n) { this.newName = n, this.oldName = r, this.binding = t; } maybeConvertFromExportDeclaration(t) { let r = t.parentPath; if (r.isExportDeclaration()) { if (r.isExportDefaultDeclaration()) { let { declaration: n } = r.node; if (Lz.isDeclaration(n) && !n.id) return; } r.isExportAllDeclaration() || r.splitExportDeclaration(); } } maybeConvertFromClassFunctionDeclaration(t) { return t; } maybeConvertFromClassFunctionExpression(t) { return t; } rename() { let { binding: t, oldName: r, newName: n } = this, { scope: i, path: a } = t, o = a.find((u) => u.isDeclaration() || u.isFunctionExpression() || u.isClassExpression()); o && o.getOuterBindingIdentifiers()[r] === t.identifier && this.maybeConvertFromExportDeclaration(o); let l = arguments[0] || i.block; (0, Mz.traverseNode)(l, (0, Rz.explode)(Uz), i, this, i.path, { discriminant: !0 }), arguments[0] || (i.removeOwnBinding(r), i.bindings[n] = t, this.binding.identifier.name = n), o && (this.maybeConvertFromClassFunctionDeclaration( a), this.maybeConvertFromClassFunctionExpression(a)); } }; uu.default = mm; }); // ../node_modules/@babel/traverse/lib/scope/binding.js var Xx = T((fu) => { "use strict"; Object.defineProperty(fu, "__esModule", { value: !0 }); fu.default = void 0; var ym = class { static { s(this, "Binding"); } constructor({ identifier: t, scope: r, path: n, kind: i }) { this.identifier = void 0, this.scope = void 0, this.path = void 0, this.kind = void 0, this.constantViolations = [], this.constant = !0, this.referencePaths = [], this.referenced = !1, this.references = 0, this.identifier = t, this.scope = r, this.path = n, this.kind = i, (i === "var" || i === "hoisted") && Vz(n) && this.reassign(n), this.clearValue(); } deoptValue() { this.clearValue(), this.hasDeoptedValue = !0; } setValue(t) { this.hasDeoptedValue || (this.hasValue = !0, this.value = t); } clearValue() { this.hasDeoptedValue = !1, this.hasValue = !1, this.value = null; } reassign(t) { this.constant = !1, !this.constantViolations.includes(t) && this.constantViolations.push(t); } reference(t) { this.referencePaths.includes(t) || (this.referenced = !0, this.references++, this.referencePaths.push(t)); } dereference() { this.references--, this.referenced = !!this.references; } }; fu.default = ym; function Vz(e) { for (let { parentPath: t, key: r } = e; t; { parentPath: t, key: r } = t) { if (t.isFunctionParent()) return !1; if (t.isWhile() || t.isForXStatement() || t.isForStatement() && r === "body") return !0; } return !1; } s(Vz, "isDeclaredInLoop"); }); // ../node_modules/@babel/traverse/node_modules/globals/globals.json var Qx = T((aAe, $z) => { $z.exports = { builtin: { Array: !1, ArrayBuffer: !1, Atomics: !1, BigInt: !1, BigInt64Array: !1, BigUint64Array: !1, Boolean: !1, constructor: !1, DataView: !1, Date: !1, decodeURI: !1, decodeURIComponent: !1, encodeURI: !1, encodeURIComponent: !1, Error: !1, escape: !1, eval: !1, EvalError: !1, Float32Array: !1, Float64Array: !1, Function: !1, globalThis: !1, hasOwnProperty: !1, Infinity: !1, Int16Array: !1, Int32Array: !1, Int8Array: !1, isFinite: !1, isNaN: !1, isPrototypeOf: !1, JSON: !1, Map: !1, Math: !1, NaN: !1, Number: !1, Object: !1, parseFloat: !1, parseInt: !1, Promise: !1, propertyIsEnumerable: !1, Proxy: !1, RangeError: !1, ReferenceError: !1, Reflect: !1, RegExp: !1, Set: !1, SharedArrayBuffer: !1, String: !1, Symbol: !1, SyntaxError: !1, toLocaleString: !1, toString: !1, TypeError: !1, Uint16Array: !1, Uint32Array: !1, Uint8Array: !1, Uint8ClampedArray: !1, undefined: !1, unescape: !1, URIError: !1, valueOf: !1, WeakMap: !1, WeakSet: !1 }, es5: { Array: !1, Boolean: !1, constructor: !1, Date: !1, decodeURI: !1, decodeURIComponent: !1, encodeURI: !1, encodeURIComponent: !1, Error: !1, escape: !1, eval: !1, EvalError: !1, Function: !1, hasOwnProperty: !1, Infinity: !1, isFinite: !1, isNaN: !1, isPrototypeOf: !1, JSON: !1, Math: !1, NaN: !1, Number: !1, Object: !1, parseFloat: !1, parseInt: !1, propertyIsEnumerable: !1, RangeError: !1, ReferenceError: !1, RegExp: !1, String: !1, SyntaxError: !1, toLocaleString: !1, toString: !1, TypeError: !1, undefined: !1, unescape: !1, URIError: !1, valueOf: !1 }, es2015: { Array: !1, ArrayBuffer: !1, Boolean: !1, constructor: !1, DataView: !1, Date: !1, decodeURI: !1, decodeURIComponent: !1, encodeURI: !1, encodeURIComponent: !1, Error: !1, escape: !1, eval: !1, EvalError: !1, Float32Array: !1, Float64Array: !1, Function: !1, hasOwnProperty: !1, Infinity: !1, Int16Array: !1, Int32Array: !1, Int8Array: !1, isFinite: !1, isNaN: !1, isPrototypeOf: !1, JSON: !1, Map: !1, Math: !1, NaN: !1, Number: !1, Object: !1, parseFloat: !1, parseInt: !1, Promise: !1, propertyIsEnumerable: !1, Proxy: !1, RangeError: !1, ReferenceError: !1, Reflect: !1, RegExp: !1, Set: !1, String: !1, Symbol: !1, SyntaxError: !1, toLocaleString: !1, toString: !1, TypeError: !1, Uint16Array: !1, Uint32Array: !1, Uint8Array: !1, Uint8ClampedArray: !1, undefined: !1, unescape: !1, URIError: !1, valueOf: !1, WeakMap: !1, WeakSet: !1 }, es2017: { Array: !1, ArrayBuffer: !1, Atomics: !1, Boolean: !1, constructor: !1, DataView: !1, Date: !1, decodeURI: !1, decodeURIComponent: !1, encodeURI: !1, encodeURIComponent: !1, Error: !1, escape: !1, eval: !1, EvalError: !1, Float32Array: !1, Float64Array: !1, Function: !1, hasOwnProperty: !1, Infinity: !1, Int16Array: !1, Int32Array: !1, Int8Array: !1, isFinite: !1, isNaN: !1, isPrototypeOf: !1, JSON: !1, Map: !1, Math: !1, NaN: !1, Number: !1, Object: !1, parseFloat: !1, parseInt: !1, Promise: !1, propertyIsEnumerable: !1, Proxy: !1, RangeError: !1, ReferenceError: !1, Reflect: !1, RegExp: !1, Set: !1, SharedArrayBuffer: !1, String: !1, Symbol: !1, SyntaxError: !1, toLocaleString: !1, toString: !1, TypeError: !1, Uint16Array: !1, Uint32Array: !1, Uint8Array: !1, Uint8ClampedArray: !1, undefined: !1, unescape: !1, URIError: !1, valueOf: !1, WeakMap: !1, WeakSet: !1 }, browser: { AbortController: !1, AbortSignal: !1, addEventListener: !1, alert: !1, AnalyserNode: !1, Animation: !1, AnimationEffectReadOnly: !1, AnimationEffectTiming: !1, AnimationEffectTimingReadOnly: !1, AnimationEvent: !1, AnimationPlaybackEvent: !1, AnimationTimeline: !1, applicationCache: !1, ApplicationCache: !1, ApplicationCacheErrorEvent: !1, atob: !1, Attr: !1, Audio: !1, AudioBuffer: !1, AudioBufferSourceNode: !1, AudioContext: !1, AudioDestinationNode: !1, AudioListener: !1, AudioNode: !1, AudioParam: !1, AudioProcessingEvent: !1, AudioScheduledSourceNode: !1, "AudioWorkletGlobalScope ": !1, AudioWorkletNode: !1, AudioWorkletProcessor: !1, BarProp: !1, BaseAudioContext: !1, BatteryManager: !1, BeforeUnloadEvent: !1, BiquadFilterNode: !1, Blob: !1, BlobEvent: !1, blur: !1, BroadcastChannel: !1, btoa: !1, BudgetService: !1, ByteLengthQueuingStrategy: !1, Cache: !1, caches: !1, CacheStorage: !1, cancelAnimationFrame: !1, cancelIdleCallback: !1, CanvasCaptureMediaStreamTrack: !1, CanvasGradient: !1, CanvasPattern: !1, CanvasRenderingContext2D: !1, ChannelMergerNode: !1, ChannelSplitterNode: !1, CharacterData: !1, clearInterval: !1, clearTimeout: !1, clientInformation: !1, ClipboardEvent: !1, close: !1, closed: !1, CloseEvent: !1, Comment: !1, CompositionEvent: !1, confirm: !1, console: !1, ConstantSourceNode: !1, ConvolverNode: !1, CountQueuingStrategy: !1, createImageBitmap: !1, Credential: !1, CredentialsContainer: !1, crypto: !1, Crypto: !1, CryptoKey: !1, CSS: !1, CSSConditionRule: !1, CSSFontFaceRule: !1, CSSGroupingRule: !1, CSSImportRule: !1, CSSKeyframeRule: !1, CSSKeyframesRule: !1, CSSMediaRule: !1, CSSNamespaceRule: !1, CSSPageRule: !1, CSSRule: !1, CSSRuleList: !1, CSSStyleDeclaration: !1, CSSStyleRule: !1, CSSStyleSheet: !1, CSSSupportsRule: !1, CustomElementRegistry: !1, customElements: !1, CustomEvent: !1, DataTransfer: !1, DataTransferItem: !1, DataTransferItemList: !1, defaultstatus: !1, defaultStatus: !1, DelayNode: !1, DeviceMotionEvent: !1, DeviceOrientationEvent: !1, devicePixelRatio: !1, dispatchEvent: !1, document: !1, Document: !1, DocumentFragment: !1, DocumentType: !1, DOMError: !1, DOMException: !1, DOMImplementation: !1, DOMMatrix: !1, DOMMatrixReadOnly: !1, DOMParser: !1, DOMPoint: !1, DOMPointReadOnly: !1, DOMQuad: !1, DOMRect: !1, DOMRectReadOnly: !1, DOMStringList: !1, DOMStringMap: !1, DOMTokenList: !1, DragEvent: !1, DynamicsCompressorNode: !1, Element: !1, ErrorEvent: !1, event: !1, Event: !1, EventSource: !1, EventTarget: !1, external: !1, fetch: !1, File: !1, FileList: !1, FileReader: !1, find: !1, focus: !1, FocusEvent: !1, FontFace: !1, FontFaceSetLoadEvent: !1, FormData: !1, frameElement: !1, frames: !1, GainNode: !1, Gamepad: !1, GamepadButton: !1, GamepadEvent: !1, getComputedStyle: !1, getSelection: !1, HashChangeEvent: !1, Headers: !1, history: !1, History: !1, HTMLAllCollection: !1, HTMLAnchorElement: !1, HTMLAreaElement: !1, HTMLAudioElement: !1, HTMLBaseElement: !1, HTMLBodyElement: !1, HTMLBRElement: !1, HTMLButtonElement: !1, HTMLCanvasElement: !1, HTMLCollection: !1, HTMLContentElement: !1, HTMLDataElement: !1, HTMLDataListElement: !1, HTMLDetailsElement: !1, HTMLDialogElement: !1, HTMLDirectoryElement: !1, HTMLDivElement: !1, HTMLDListElement: !1, HTMLDocument: !1, HTMLElement: !1, HTMLEmbedElement: !1, HTMLFieldSetElement: !1, HTMLFontElement: !1, HTMLFormControlsCollection: !1, HTMLFormElement: !1, HTMLFrameElement: !1, HTMLFrameSetElement: !1, HTMLHeadElement: !1, HTMLHeadingElement: !1, HTMLHRElement: !1, HTMLHtmlElement: !1, HTMLIFrameElement: !1, HTMLImageElement: !1, HTMLInputElement: !1, HTMLLabelElement: !1, HTMLLegendElement: !1, HTMLLIElement: !1, HTMLLinkElement: !1, HTMLMapElement: !1, HTMLMarqueeElement: !1, HTMLMediaElement: !1, HTMLMenuElement: !1, HTMLMetaElement: !1, HTMLMeterElement: !1, HTMLModElement: !1, HTMLObjectElement: !1, HTMLOListElement: !1, HTMLOptGroupElement: !1, HTMLOptionElement: !1, HTMLOptionsCollection: !1, HTMLOutputElement: !1, HTMLParagraphElement: !1, HTMLParamElement: !1, HTMLPictureElement: !1, HTMLPreElement: !1, HTMLProgressElement: !1, HTMLQuoteElement: !1, HTMLScriptElement: !1, HTMLSelectElement: !1, HTMLShadowElement: !1, HTMLSlotElement: !1, HTMLSourceElement: !1, HTMLSpanElement: !1, HTMLStyleElement: !1, HTMLTableCaptionElement: !1, HTMLTableCellElement: !1, HTMLTableColElement: !1, HTMLTableElement: !1, HTMLTableRowElement: !1, HTMLTableSectionElement: !1, HTMLTemplateElement: !1, HTMLTextAreaElement: !1, HTMLTimeElement: !1, HTMLTitleElement: !1, HTMLTrackElement: !1, HTMLUListElement: !1, HTMLUnknownElement: !1, HTMLVideoElement: !1, IDBCursor: !1, IDBCursorWithValue: !1, IDBDatabase: !1, IDBFactory: !1, IDBIndex: !1, IDBKeyRange: !1, IDBObjectStore: !1, IDBOpenDBRequest: !1, IDBRequest: !1, IDBTransaction: !1, IDBVersionChangeEvent: !1, IdleDeadline: !1, IIRFilterNode: !1, Image: !1, ImageBitmap: !1, ImageBitmapRenderingContext: !1, ImageCapture: !1, ImageData: !1, indexedDB: !1, innerHeight: !1, innerWidth: !1, InputEvent: !1, IntersectionObserver: !1, IntersectionObserverEntry: !1, Intl: !1, isSecureContext: !1, KeyboardEvent: !1, KeyframeEffect: !1, KeyframeEffectReadOnly: !1, length: !1, localStorage: !1, location: !0, Location: !1, locationbar: !1, matchMedia: !1, MediaDeviceInfo: !1, MediaDevices: !1, MediaElementAudioSourceNode: !1, MediaEncryptedEvent: !1, MediaError: !1, MediaKeyMessageEvent: !1, MediaKeySession: !1, MediaKeyStatusMap: !1, MediaKeySystemAccess: !1, MediaList: !1, MediaQueryList: !1, MediaQueryListEvent: !1, MediaRecorder: !1, MediaSettingsRange: !1, MediaSource: !1, MediaStream: !1, MediaStreamAudioDestinationNode: !1, MediaStreamAudioSourceNode: !1, MediaStreamEvent: !1, MediaStreamTrack: !1, MediaStreamTrackEvent: !1, menubar: !1, MessageChannel: !1, MessageEvent: !1, MessagePort: !1, MIDIAccess: !1, MIDIConnectionEvent: !1, MIDIInput: !1, MIDIInputMap: !1, MIDIMessageEvent: !1, MIDIOutput: !1, MIDIOutputMap: !1, MIDIPort: !1, MimeType: !1, MimeTypeArray: !1, MouseEvent: !1, moveBy: !1, moveTo: !1, MutationEvent: !1, MutationObserver: !1, MutationRecord: !1, name: !1, NamedNodeMap: !1, NavigationPreloadManager: !1, navigator: !1, Navigator: !1, NetworkInformation: !1, Node: !1, NodeFilter: !1, NodeIterator: !1, NodeList: !1, Notification: !1, OfflineAudioCompletionEvent: !1, OfflineAudioContext: !1, offscreenBuffering: !1, OffscreenCanvas: !0, onabort: !0, onafterprint: !0, onanimationend: !0, onanimationiteration: !0, onanimationstart: !0, onappinstalled: !0, onauxclick: !0, onbeforeinstallprompt: !0, onbeforeprint: !0, onbeforeunload: !0, onblur: !0, oncancel: !0, oncanplay: !0, oncanplaythrough: !0, onchange: !0, onclick: !0, onclose: !0, oncontextmenu: !0, oncuechange: !0, ondblclick: !0, ondevicemotion: !0, ondeviceorientation: !0, ondeviceorientationabsolute: !0, ondrag: !0, ondragend: !0, ondragenter: !0, ondragleave: !0, ondragover: !0, ondragstart: !0, ondrop: !0, ondurationchange: !0, onemptied: !0, onended: !0, onerror: !0, onfocus: !0, ongotpointercapture: !0, onhashchange: !0, oninput: !0, oninvalid: !0, onkeydown: !0, onkeypress: !0, onkeyup: !0, onlanguagechange: !0, onload: !0, onloadeddata: !0, onloadedmetadata: !0, onloadstart: !0, onlostpointercapture: !0, onmessage: !0, onmessageerror: !0, onmousedown: !0, onmouseenter: !0, onmouseleave: !0, onmousemove: !0, onmouseout: !0, onmouseover: !0, onmouseup: !0, onmousewheel: !0, onoffline: !0, ononline: !0, onpagehide: !0, onpageshow: !0, onpause: !0, onplay: !0, onplaying: !0, onpointercancel: !0, onpointerdown: !0, onpointerenter: !0, onpointerleave: !0, onpointermove: !0, onpointerout: !0, onpointerover: !0, onpointerup: !0, onpopstate: !0, onprogress: !0, onratechange: !0, onrejectionhandled: !0, onreset: !0, onresize: !0, onscroll: !0, onsearch: !0, onseeked: !0, onseeking: !0, onselect: !0, onstalled: !0, onstorage: !0, onsubmit: !0, onsuspend: !0, ontimeupdate: !0, ontoggle: !0, ontransitionend: !0, onunhandledrejection: !0, onunload: !0, onvolumechange: !0, onwaiting: !0, onwheel: !0, open: !1, openDatabase: !1, opener: !1, Option: !1, origin: !1, OscillatorNode: !1, outerHeight: !1, outerWidth: !1, PageTransitionEvent: !1, pageXOffset: !1, pageYOffset: !1, PannerNode: !1, parent: !1, Path2D: !1, PaymentAddress: !1, PaymentRequest: !1, PaymentRequestUpdateEvent: !1, PaymentResponse: !1, performance: !1, Performance: !1, PerformanceEntry: !1, PerformanceLongTaskTiming: !1, PerformanceMark: !1, PerformanceMeasure: !1, PerformanceNavigation: !1, PerformanceNavigationTiming: !1, PerformanceObserver: !1, PerformanceObserverEntryList: !1, PerformancePaintTiming: !1, PerformanceResourceTiming: !1, PerformanceTiming: !1, PeriodicWave: !1, Permissions: !1, PermissionStatus: !1, personalbar: !1, PhotoCapabilities: !1, Plugin: !1, PluginArray: !1, PointerEvent: !1, PopStateEvent: !1, postMessage: !1, Presentation: !1, PresentationAvailability: !1, PresentationConnection: !1, PresentationConnectionAvailableEvent: !1, PresentationConnectionCloseEvent: !1, PresentationConnectionList: !1, PresentationReceiver: !1, PresentationRequest: !1, print: !1, ProcessingInstruction: !1, ProgressEvent: !1, PromiseRejectionEvent: !1, prompt: !1, PushManager: !1, PushSubscription: !1, PushSubscriptionOptions: !1, queueMicrotask: !1, RadioNodeList: !1, Range: !1, ReadableStream: !1, registerProcessor: !1, RemotePlayback: !1, removeEventListener: !1, Request: !1, requestAnimationFrame: !1, requestIdleCallback: !1, resizeBy: !1, ResizeObserver: !1, ResizeObserverEntry: !1, resizeTo: !1, Response: !1, RTCCertificate: !1, RTCDataChannel: !1, RTCDataChannelEvent: !1, RTCDtlsTransport: !1, RTCIceCandidate: !1, RTCIceGatherer: !1, RTCIceTransport: !1, RTCPeerConnection: !1, RTCPeerConnectionIceEvent: !1, RTCRtpContributingSource: !1, RTCRtpReceiver: !1, RTCRtpSender: !1, RTCSctpTransport: !1, RTCSessionDescription: !1, RTCStatsReport: !1, RTCTrackEvent: !1, screen: !1, Screen: !1, screenLeft: !1, ScreenOrientation: !1, screenTop: !1, screenX: !1, screenY: !1, ScriptProcessorNode: !1, scroll: !1, scrollbars: !1, scrollBy: !1, scrollTo: !1, scrollX: !1, scrollY: !1, SecurityPolicyViolationEvent: !1, Selection: !1, self: !1, ServiceWorker: !1, ServiceWorkerContainer: !1, ServiceWorkerRegistration: !1, sessionStorage: !1, setInterval: !1, setTimeout: !1, ShadowRoot: !1, SharedWorker: !1, SourceBuffer: !1, SourceBufferList: !1, speechSynthesis: !1, SpeechSynthesisEvent: !1, SpeechSynthesisUtterance: !1, StaticRange: !1, status: !1, statusbar: !1, StereoPannerNode: !1, stop: !1, Storage: !1, StorageEvent: !1, StorageManager: !1, styleMedia: !1, StyleSheet: !1, StyleSheetList: !1, SubtleCrypto: !1, SVGAElement: !1, SVGAngle: !1, SVGAnimatedAngle: !1, SVGAnimatedBoolean: !1, SVGAnimatedEnumeration: !1, SVGAnimatedInteger: !1, SVGAnimatedLength: !1, SVGAnimatedLengthList: !1, SVGAnimatedNumber: !1, SVGAnimatedNumberList: !1, SVGAnimatedPreserveAspectRatio: !1, SVGAnimatedRect: !1, SVGAnimatedString: !1, SVGAnimatedTransformList: !1, SVGAnimateElement: !1, SVGAnimateMotionElement: !1, SVGAnimateTransformElement: !1, SVGAnimationElement: !1, SVGCircleElement: !1, SVGClipPathElement: !1, SVGComponentTransferFunctionElement: !1, SVGDefsElement: !1, SVGDescElement: !1, SVGDiscardElement: !1, SVGElement: !1, SVGEllipseElement: !1, SVGFEBlendElement: !1, SVGFEColorMatrixElement: !1, SVGFEComponentTransferElement: !1, SVGFECompositeElement: !1, SVGFEConvolveMatrixElement: !1, SVGFEDiffuseLightingElement: !1, SVGFEDisplacementMapElement: !1, SVGFEDistantLightElement: !1, SVGFEDropShadowElement: !1, SVGFEFloodElement: !1, SVGFEFuncAElement: !1, SVGFEFuncBElement: !1, SVGFEFuncGElement: !1, SVGFEFuncRElement: !1, SVGFEGaussianBlurElement: !1, SVGFEImageElement: !1, SVGFEMergeElement: !1, SVGFEMergeNodeElement: !1, SVGFEMorphologyElement: !1, SVGFEOffsetElement: !1, SVGFEPointLightElement: !1, SVGFESpecularLightingElement: !1, SVGFESpotLightElement: !1, SVGFETileElement: !1, SVGFETurbulenceElement: !1, SVGFilterElement: !1, SVGForeignObjectElement: !1, SVGGElement: !1, SVGGeometryElement: !1, SVGGradientElement: !1, SVGGraphicsElement: !1, SVGImageElement: !1, SVGLength: !1, SVGLengthList: !1, SVGLinearGradientElement: !1, SVGLineElement: !1, SVGMarkerElement: !1, SVGMaskElement: !1, SVGMatrix: !1, SVGMetadataElement: !1, SVGMPathElement: !1, SVGNumber: !1, SVGNumberList: !1, SVGPathElement: !1, SVGPatternElement: !1, SVGPoint: !1, SVGPointList: !1, SVGPolygonElement: !1, SVGPolylineElement: !1, SVGPreserveAspectRatio: !1, SVGRadialGradientElement: !1, SVGRect: !1, SVGRectElement: !1, SVGScriptElement: !1, SVGSetElement: !1, SVGStopElement: !1, SVGStringList: !1, SVGStyleElement: !1, SVGSVGElement: !1, SVGSwitchElement: !1, SVGSymbolElement: !1, SVGTextContentElement: !1, SVGTextElement: !1, SVGTextPathElement: !1, SVGTextPositioningElement: !1, SVGTitleElement: !1, SVGTransform: !1, SVGTransformList: !1, SVGTSpanElement: !1, SVGUnitTypes: !1, SVGUseElement: !1, SVGViewElement: !1, TaskAttributionTiming: !1, Text: !1, TextDecoder: !1, TextEncoder: !1, TextEvent: !1, TextMetrics: !1, TextTrack: !1, TextTrackCue: !1, TextTrackCueList: !1, TextTrackList: !1, TimeRanges: !1, toolbar: !1, top: !1, Touch: !1, TouchEvent: !1, TouchList: !1, TrackEvent: !1, TransitionEvent: !1, TreeWalker: !1, UIEvent: !1, URL: !1, URLSearchParams: !1, ValidityState: !1, visualViewport: !1, VisualViewport: !1, VTTCue: !1, WaveShaperNode: !1, WebAssembly: !1, WebGL2RenderingContext: !1, WebGLActiveInfo: !1, WebGLBuffer: !1, WebGLContextEvent: !1, WebGLFramebuffer: !1, WebGLProgram: !1, WebGLQuery: !1, WebGLRenderbuffer: !1, WebGLRenderingContext: !1, WebGLSampler: !1, WebGLShader: !1, WebGLShaderPrecisionFormat: !1, WebGLSync: !1, WebGLTexture: !1, WebGLTransformFeedback: !1, WebGLUniformLocation: !1, WebGLVertexArrayObject: !1, WebSocket: !1, WheelEvent: !1, window: !1, Window: !1, Worker: !1, WritableStream: !1, XMLDocument: !1, XMLHttpRequest: !1, XMLHttpRequestEventTarget: !1, XMLHttpRequestUpload: !1, XMLSerializer: !1, XPathEvaluator: !1, XPathExpression: !1, XPathResult: !1, XSLTProcessor: !1 }, worker: { addEventListener: !1, applicationCache: !1, atob: !1, Blob: !1, BroadcastChannel: !1, btoa: !1, Cache: !1, caches: !1, clearInterval: !1, clearTimeout: !1, close: !0, console: !1, fetch: !1, FileReaderSync: !1, FormData: !1, Headers: !1, IDBCursor: !1, IDBCursorWithValue: !1, IDBDatabase: !1, IDBFactory: !1, IDBIndex: !1, IDBKeyRange: !1, IDBObjectStore: !1, IDBOpenDBRequest: !1, IDBRequest: !1, IDBTransaction: !1, IDBVersionChangeEvent: !1, ImageData: !1, importScripts: !0, indexedDB: !1, location: !1, MessageChannel: !1, MessagePort: !1, name: !1, navigator: !1, Notification: !1, onclose: !0, onconnect: !0, onerror: !0, onlanguagechange: !0, onmessage: !0, onoffline: !0, ononline: !0, onrejectionhandled: !0, onunhandledrejection: !0, performance: !1, Performance: !1, PerformanceEntry: !1, PerformanceMark: !1, PerformanceMeasure: !1, PerformanceNavigation: !1, PerformanceResourceTiming: !1, PerformanceTiming: !1, postMessage: !0, Promise: !1, queueMicrotask: !1, removeEventListener: !1, Request: !1, Response: !1, self: !0, ServiceWorkerRegistration: !1, setInterval: !1, setTimeout: !1, TextDecoder: !1, TextEncoder: !1, URL: !1, URLSearchParams: !1, WebSocket: !1, Worker: !1, WorkerGlobalScope: !1, XMLHttpRequest: !1 }, node: { __dirname: !1, __filename: !1, Buffer: !1, clearImmediate: !1, clearInterval: !1, clearTimeout: !1, console: !1, exports: !0, global: !1, Intl: !1, module: !1, process: !1, queueMicrotask: !1, require: !1, setImmediate: !1, setInterval: !1, setTimeout: !1, TextDecoder: !1, TextEncoder: !1, URL: !1, URLSearchParams: !1 }, commonjs: { exports: !0, global: !1, module: !1, require: !1 }, amd: { define: !1, require: !1 }, mocha: { after: !1, afterEach: !1, before: !1, beforeEach: !1, context: !1, describe: !1, it: !1, mocha: !1, run: !1, setup: !1, specify: !1, suite: !1, suiteSetup: !1, suiteTeardown: !1, teardown: !1, test: !1, xcontext: !1, xdescribe: !1, xit: !1, xspecify: !1 }, jasmine: { afterAll: !1, afterEach: !1, beforeAll: !1, beforeEach: !1, describe: !1, expect: !1, fail: !1, fdescribe: !1, fit: !1, it: !1, jasmine: !1, pending: !1, runs: !1, spyOn: !1, spyOnProperty: !1, waits: !1, waitsFor: !1, xdescribe: !1, xit: !1 }, jest: { afterAll: !1, afterEach: !1, beforeAll: !1, beforeEach: !1, describe: !1, expect: !1, fdescribe: !1, fit: !1, it: !1, jest: !1, pit: !1, require: !1, test: !1, xdescribe: !1, xit: !1, xtest: !1 }, qunit: { asyncTest: !1, deepEqual: !1, equal: !1, expect: !1, module: !1, notDeepEqual: !1, notEqual: !1, notOk: !1, notPropEqual: !1, notStrictEqual: !1, ok: !1, propEqual: !1, QUnit: !1, raises: !1, start: !1, stop: !1, strictEqual: !1, test: !1, throws: !1 }, phantomjs: { console: !0, exports: !0, phantom: !0, require: !0, WebPage: !0 }, couch: { emit: !1, exports: !1, getRow: !1, log: !1, module: !1, provides: !1, require: !1, respond: !1, send: !1, start: !1, sum: !1 }, rhino: { defineClass: !1, deserialize: !1, gc: !1, help: !1, importClass: !1, importPackage: !1, java: !1, load: !1, loadClass: !1, Packages: !1, print: !1, quit: !1, readFile: !1, readUrl: !1, runCommand: !1, seal: !1, serialize: !1, spawn: !1, sync: !1, toint32: !1, version: !1 }, nashorn: { __DIR__: !1, __FILE__: !1, __LINE__: !1, com: !1, edu: !1, exit: !1, java: !1, Java: !1, javafx: !1, JavaImporter: !1, javax: !1, JSAdapter: !1, load: !1, loadWithNewGlobal: !1, org: !1, Packages: !1, print: !1, quit: !1 }, wsh: { ActiveXObject: !0, Enumerator: !0, GetObject: !0, ScriptEngine: !0, ScriptEngineBuildVersion: !0, ScriptEngineMajorVersion: !0, ScriptEngineMinorVersion: !0, VBArray: !0, WScript: !0, WSH: !0, XDomainRequest: !0 }, jquery: { $: !1, jQuery: !1 }, yui: { YAHOO: !1, YAHOO_config: !1, YUI: !1, YUI_config: !1 }, shelljs: { cat: !1, cd: !1, chmod: !1, config: !1, cp: !1, dirs: !1, echo: !1, env: !1, error: !1, exec: !1, exit: !1, find: !1, grep: !1, ln: !1, ls: !1, mkdir: !1, mv: !1, popd: !1, pushd: !1, pwd: !1, rm: !1, sed: !1, set: !1, target: !1, tempdir: !1, test: !1, touch: !1, which: !1 }, prototypejs: { $: !1, $$: !1, $A: !1, $break: !1, $continue: !1, $F: !1, $H: !1, $R: !1, $w: !1, Abstract: !1, Ajax: !1, Autocompleter: !1, Builder: !1, Class: !1, Control: !1, Draggable: !1, Draggables: !1, Droppables: !1, Effect: !1, Element: !1, Enumerable: !1, Event: !1, Field: !1, Form: !1, Hash: !1, Insertion: !1, ObjectRange: !1, PeriodicalExecuter: !1, Position: !1, Prototype: !1, Scriptaculous: !1, Selector: !1, Sortable: !1, SortableObserver: !1, Sound: !1, Template: !1, Toggle: !1, Try: !1 }, meteor: { _: !1, $: !1, Accounts: !1, AccountsClient: !1, AccountsCommon: !1, AccountsServer: !1, App: !1, Assets: !1, Blaze: !1, check: !1, Cordova: !1, DDP: !1, DDPRateLimiter: !1, DDPServer: !1, Deps: !1, EJSON: !1, Email: !1, HTTP: !1, Log: !1, Match: !1, Meteor: !1, Mongo: !1, MongoInternals: !1, Npm: !1, Package: !1, Plugin: !1, process: !1, Random: !1, ReactiveDict: !1, ReactiveVar: !1, Router: !1, ServiceConfiguration: !1, Session: !1, share: !1, Spacebars: !1, Template: !1, Tinytest: !1, Tracker: !1, UI: !1, Utils: !1, WebApp: !1, WebAppInternals: !1 }, mongo: { _isWindows: !1, _rand: !1, BulkWriteResult: !1, cat: !1, cd: !1, connect: !1, db: !1, getHostName: !1, getMemInfo: !1, hostname: !1, ISODate: !1, listFiles: !1, load: !1, ls: !1, md5sumFile: !1, mkdir: !1, Mongo: !1, NumberInt: !1, NumberLong: !1, ObjectId: !1, PlanCache: !1, print: !1, printjson: !1, pwd: !1, quit: !1, removeFile: !1, rs: !1, sh: !1, UUID: !1, version: !1, WriteResult: !1 }, applescript: { $: !1, Application: !1, Automation: !1, console: !1, delay: !1, Library: !1, ObjC: !1, ObjectSpecifier: !1, Path: !1, Progress: !1, Ref: !1 }, serviceworker: { addEventListener: !1, applicationCache: !1, atob: !1, Blob: !1, BroadcastChannel: !1, btoa: !1, Cache: !1, caches: !1, CacheStorage: !1, clearInterval: !1, clearTimeout: !1, Client: !1, clients: !1, Clients: !1, close: !0, console: !1, ExtendableEvent: !1, ExtendableMessageEvent: !1, fetch: !1, FetchEvent: !1, FileReaderSync: !1, FormData: !1, Headers: !1, IDBCursor: !1, IDBCursorWithValue: !1, IDBDatabase: !1, IDBFactory: !1, IDBIndex: !1, IDBKeyRange: !1, IDBObjectStore: !1, IDBOpenDBRequest: !1, IDBRequest: !1, IDBTransaction: !1, IDBVersionChangeEvent: !1, ImageData: !1, importScripts: !1, indexedDB: !1, location: !1, MessageChannel: !1, MessagePort: !1, name: !1, navigator: !1, Notification: !1, onclose: !0, onconnect: !0, onerror: !0, onfetch: !0, oninstall: !0, onlanguagechange: !0, onmessage: !0, onmessageerror: !0, onnotificationclick: !0, onnotificationclose: !0, onoffline: !0, ononline: !0, onpush: !0, onpushsubscriptionchange: !0, onrejectionhandled: !0, onsync: !0, onunhandledrejection: !0, performance: !1, Performance: !1, PerformanceEntry: !1, PerformanceMark: !1, PerformanceMeasure: !1, PerformanceNavigation: !1, PerformanceResourceTiming: !1, PerformanceTiming: !1, postMessage: !0, Promise: !1, queueMicrotask: !1, registration: !1, removeEventListener: !1, Request: !1, Response: !1, self: !1, ServiceWorker: !1, ServiceWorkerContainer: !1, ServiceWorkerGlobalScope: !1, ServiceWorkerMessageEvent: !1, ServiceWorkerRegistration: !1, setInterval: !1, setTimeout: !1, skipWaiting: !1, TextDecoder: !1, TextEncoder: !1, URL: !1, URLSearchParams: !1, WebSocket: !1, WindowClient: !1, Worker: !1, WorkerGlobalScope: !1, XMLHttpRequest: !1 }, atomtest: { advanceClock: !1, fakeClearInterval: !1, fakeClearTimeout: !1, fakeSetInterval: !1, fakeSetTimeout: !1, resetTimeouts: !1, waitsForPromise: !1 }, embertest: { andThen: !1, click: !1, currentPath: !1, currentRouteName: !1, currentURL: !1, fillIn: !1, find: !1, findAll: !1, findWithAssert: !1, keyEvent: !1, pauseTest: !1, resumeTest: !1, triggerEvent: !1, visit: !1, wait: !1 }, protractor: { $: !1, $$: !1, browser: !1, by: !1, By: !1, DartObject: !1, element: !1, protractor: !1 }, "shared-node-browser": { clearInterval: !1, clearTimeout: !1, console: !1, setInterval: !1, setTimeout: !1, URL: !1, URLSearchParams: !1 }, webextensions: { browser: !1, chrome: !1, opr: !1 }, greasemonkey: { cloneInto: !1, createObjectIn: !1, exportFunction: !1, GM: !1, GM_addStyle: !1, GM_deleteValue: !1, GM_getResourceText: !1, GM_getResourceURL: !1, GM_getValue: !1, GM_info: !1, GM_listValues: !1, GM_log: !1, GM_openInTab: !1, GM_registerMenuCommand: !1, GM_setClipboard: !1, GM_setValue: !1, GM_xmlhttpRequest: !1, unsafeWindow: !1 }, devtools: { $: !1, $_: !1, $$: !1, $0: !1, $1: !1, $2: !1, $3: !1, $4: !1, $x: !1, chrome: !1, clear: !1, copy: !1, debug: !1, dir: !1, dirxml: !1, getEventListeners: !1, inspect: !1, keys: !1, monitor: !1, monitorEvents: !1, profile: !1, profileEnd: !1, queryObjects: !1, table: !1, undebug: !1, unmonitor: !1, unmonitorEvents: !1, values: !1 } }; }); // ../node_modules/@babel/traverse/node_modules/globals/index.js var eS = T((oAe, Zx) => { "use strict"; Zx.exports = Qx(); }); // ../node_modules/@babel/traverse/lib/cache.js var $s = T((br) => { "use strict"; Object.defineProperty(br, "__esModule", { value: !0 }); br.clear = Kz; br.clearPath = tS; br.clearScope = rS; br.getCachedPaths = Gz; br.getOrCreateCachedPaths = Hz; br.scope = br.path = void 0; var pu = br.path = /* @__PURE__ */ new WeakMap(), Wz = br.scope = /* @__PURE__ */ new WeakMap(); function Kz() { tS(), rS(); } s(Kz, "clear"); function tS() { br.path = pu = /* @__PURE__ */ new WeakMap(); } s(tS, "clearPath"); function rS() { br.scope = Wz = /* @__PURE__ */ new WeakMap(); } s(rS, "clearScope"); var gm = Object.freeze({}); function Gz(e, t) { var r, n; return e = null, (r = pu.get((n = e) != null ? n : gm)) == null ? void 0 : r.get(t); } s(Gz, "getCachedPaths"); function Hz(e, t) { var r, n; e = null; let i = pu.get((r = e) != null ? r : gm); i || pu.set((n = e) != null ? n : gm, i = /* @__PURE__ */ new WeakMap()); let a = i.get(t); return a || i.set(t, a = /* @__PURE__ */ new Map()), a; } s(Hz, "getOrCreateCachedPaths"); }); // ../node_modules/@babel/traverse/lib/scope/index.js var Tm = T((hu) => { "use strict"; Object.defineProperty(hu, "__esModule", { value: !0 }); hu.default = void 0; var Yz = Jx(), zz = _r(), Jz = Xx(), Xz = eS(), pS = Pe(), Qz = pS, nS = $s(), Zz = io(), { NOT_LOCAL_BINDING: sS, assignmentExpression: eJ, callExpression: iS, cloneNode: aS, getBindingIdentifiers: dS, identifier: Ws, isArrayExpression: oS, isBinary: tJ, isCallExpression: lS, isClass: rJ, isClassBody: nJ, isClassDeclaration: sJ, isExportAllDeclaration: hS, isExportDefaultDeclaration: iJ, isExportNamedDeclaration: bm, isFunctionDeclaration: aJ, isIdentifier: Ks, isImportDeclaration: Em, isLiteral: oJ, isMemberExpression: lJ, isMethod: uJ, isModuleSpecifier: cJ, isNullLiteral: fJ, isObjectExpression: pJ, isProperty: dJ, isPureish: hJ, isRegExpLiteral: mJ, isSuper: yJ, isTaggedTemplateExpression: gJ, isTemplateLiteral: mS, isThisExpression: uS, isUnaryExpression: bJ, isVariableDeclaration: EJ, expressionStatement: vJ, matchesPattern: cS, memberExpression: vm, numericLiteral: TJ, toIdentifier: xJ, variableDeclaration: SJ, variableDeclarator: PJ, isRecordExpression: AJ, isTupleExpression: CJ, isObjectProperty: wJ, isTopicReference: fS, isMetaProperty: DJ, isPrivateName: IJ, isExportDeclaration: _J, buildUndefinedNode: OJ, sequenceExpression: NJ } = pS; function ct(e, t) { switch (e?.type) { default: if (Em(e) || _J(e)) { var r; if ((hS(e) || bm(e) || Em(e)) && e.source) ct(e.source, t); else if ((bm(e) || Em(e)) && (r = e.specifiers) != null && r.length) for (let n of e.specifiers) ct(n, t); else (iJ(e) || bm(e)) && e.declaration && ct(e.declaration, t); } else cJ(e) ? ct(e.local, t) : oJ(e) && !fJ(e) && !mJ(e) && !mS(e) && t.push(e.value); break; case "MemberExpression": case "OptionalMemberExpression": case "JSXMemberExpression": ct(e.object, t), ct(e.property, t); break; case "Identifier": case "JSXIdentifier": t.push(e.name); break; case "CallExpression": case "OptionalCallExpression": case "NewExpression": ct(e.callee, t); break; case "ObjectExpression": case "ObjectPattern": for (let n of e.properties) ct(n, t); break; case "SpreadElement": case "RestElement": ct(e.argument, t); break; case "ObjectProperty": case "ObjectMethod": case "ClassProperty": case "ClassMethod": case "ClassPrivateProperty": case "ClassPrivateMethod": ct(e.key, t); break; case "ThisExpression": t.push("this"); break; case "Super": t.push("super"); break; case "Import": t.push("import"); break; case "DoExpression": t.push("do"); break; case "YieldExpression": t.push("yield"), ct(e.argument, t); break; case "AwaitExpression": t.push("await"), ct(e.argument, t); break; case "AssignmentExpression": ct(e.left, t); break; case "VariableDeclarator": ct(e.id, t); break; case "FunctionExpression": case "FunctionDeclaration": case "ClassExpression": case "ClassDeclaration": ct(e.id, t); break; case "PrivateName": ct(e.id, t); break; case "ParenthesizedExpression": ct(e.expression, t); break; case "UnaryExpression": case "UpdateExpression": ct(e.argument, t); break; case "MetaProperty": ct(e.meta, t), ct(e.property, t); break; case "JSXElement": ct(e.openingElement, t); break; case "JSXOpeningElement": ct(e.name, t); break; case "JSXFragment": ct(e.openingFragment, t); break; case "JSXOpeningFragment": t.push("Fragment"); break; case "JSXNamespacedName": ct(e.namespace, t), ct(e.name, t); break; } } s(ct, "gatherNodeParts"); var du = { 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); }, ReferencedIdentifier(e, t) { t.references.push(e); }, ForXStatement(e, t) { let r = e.get("left"); if (r.isPattern() || r.isIdentifier()) t.constantViolations.push(e); else if (r.isVar()) { let { scope: n } = e; (n.getFunctionParent() || n.getProgramParent()).registerBinding("var", r); } }, ExportDeclaration: { exit(e) { let { node: t, scope: r } = e; if (hS(t)) return; let n = t.declaration; if (sJ(n) || aJ(n)) { let i = n.id; if (!i) return; let a = r.getBinding(i.name); a?.reference(e); } else if (EJ(n)) for (let i of n.declarations) for (let a of Object.keys(dS(i))) { 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 i = e.node.id.name; e.scope.bindings[i] = e.scope.parent.getBinding(i); } }, CatchClause(e) { e.scope.registerBinding("let", e); }, Function(e) { let t = e.get("params"); for (let r of t) e.scope.registerBinding("param", r); e.isFunctionExpression() && e.has("id") && !e.get("id").node[sS] && e.scope.registerBinding("local", e.get("id"), e); }, ClassExpression(e) { e.has("id") && !e.get("id").node[sS] && e.scope.registerBinding("local", e.get("id"), e); }, TSTypeAnnotation(e) { e.skip(); } }, BJ = 0, ao = class e { static { s(this, "Scope"); } constructor(t) { this.uid = void 0, this.path = void 0, this.block = void 0, this.labels = void 0, this.inited = void 0, this.bindings = void 0, this.references = void 0, this.globals = void 0, this.uids = void 0, this.data = void 0, this.crawling = void 0; let { node: r } = t, n = nS.scope.get(r); if (n?.path === t) return n; nS.scope.set(r, this), this.uid = BJ++, this.block = r, this.path = t, this.labels = /* @__PURE__ */ new Map(), this.inited = !1; } get parent() { var t; let r, n = this.path; do { var i; let a = n.key === "key" || n.listKey === "decorators"; n = n.parentPath, a && n.isMethod() && (n = n.parentPath), (i = n) != null && i.isScope() && (r = n); } while (n && !r); return (t = r) == null ? void 0 : t.scope; } get parentBlock() { return this.path.parent; } get hub() { return this.path.hub; } traverse(t, r, n) { (0, zz.default)(t, r, this, n, this.path); } generateDeclaredUidIdentifier(t) { let r = this.generateUidIdentifier(t); return this.push({ id: r }), aS(r); } generateUidIdentifier(t) { return Ws(this.generateUid(t)); } generateUid(t = "temp") { t = xJ(t).replace(/^_+/, "").replace(/\d+$/g, ""); let r, n = 1; do r = this._generateUid(t, n), n++; while (this.hasLabel(r) || this.hasBinding(r) || this.hasGlobal(r) || this.hasReference(r)); let i = this.getProgramParent(); return i.references[r] = !0, i.uids[r] = !0, r; } _generateUid(t, r) { let n = t; return r > 1 && (n += r), `_${n}`; } generateUidBasedOnNode(t, r) { let n = []; ct(t, n); let i = n.join("$"); return i = i.replace(/^_/, "") || r || "ref", this.generateUid(i.slice(0, 20)); } generateUidIdentifierBasedOnNode(t, r) { return Ws(this.generateUidBasedOnNode(t, r)); } isStatic(t) { if (uS(t) || yJ(t) || fS(t)) return !0; if (Ks(t)) { let r = this.getBinding(t.name); return r ? r.constant : this.hasBinding(t.name); } return !1; } maybeGenerateMemoised(t, r) { if (this.isStatic(t)) return null; { let n = this.generateUidIdentifierBasedOnNode(t); return r ? n : (this.push({ id: n }), aS(n)); } } checkBlockScopedCollisions(t, r, n, i) { 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.hub.buildError(i, `Duplicate declaration "${n}"`, TypeError); } rename(t, r) { let n = this.getBinding(t); n && (r || (r = this.generateUidIdentifier(t).name), new Yz.default(n, t, r).rename(arguments[2])); } _renameFromMap(t, r, n, i) { t[r] && (t[n] = i, t[r] = null); } dump() { let t = "-".repeat(60); console.log(t); let r = this; do { console.log("#", r.block.type); for (let n of Object.keys(r.bindings)) { let i = r.bindings[n]; console.log(" -", n, { constant: i.constant, references: i.references, violations: i.constantViolations.length, kind: i.kind }); } } while (r = r.parent); console.log(t); } toArray(t, r, n) { if (Ks(t)) { let o = this.getBinding(t.name); if (o != null && o.constant && o.path.isGenericType("Array")) return t; } if (oS(t)) return t; if (Ks(t, { name: "arguments" })) return iS(vm(vm(vm(Ws("Array"), Ws("prototype")), Ws("slice")), Ws("call")), [t]); let i, a = [t]; return r === !0 ? i = "toConsumableArray" : typeof r == "number" ? (a.push(TJ(r)), i = "slicedToArray") : i = "toArray", n && (a.unshift( this.hub.addHelper(i)), i = "maybeArrayLike"), iS(this.hub.addHelper(i), a); } hasLabel(t) { return !!this.getLabel(t); } getLabel(t) { return this.labels.get(t); } registerLabel(t) { this.labels.set(t.node.label.name, t); } registerDeclaration(t) { if (t.isLabeledStatement()) this.registerLabel(t); else if (t.isFunctionDeclaration()) this.registerBinding("hoisted", t.get("id"), t); else if (t.isVariableDeclaration()) { let r = t.get("declarations"), { kind: n } = t.node; for (let i of r) this.registerBinding(n === "using" || n === "await using" ? "const" : n, i); } else if (t.isClassDeclaration()) { if (t.node.declare) return; this.registerBinding("let", t); } else if (t.isImportDeclaration()) { let r = t.node.importKind === "type" || t.node.importKind === "typeof", n = t.get("specifiers"); for (let i of n) { let a = r || i.isImportSpecifier() && (i.node.importKind === "type" || i.node.importKind === "typeof"); this.registerBinding(a ? "unknown" : "module", i); } } 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 OJ(); } registerConstantViolation(t) { let r = t.getAssignmentIdentifiers(); for (let i of Object.keys(r)) { var n; (n = this.getBinding(i)) == null || n.reassign(t); } } registerBinding(t, r, n = 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 i = this.getProgramParent(), a = r.getOuterBindingIdentifiers(!0); for (let o of Object.keys(a)) { i.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(n) : this.bindings[o] = new Jz.default({ identifier: l, scope: this, path: n, kind: t }); } } } addGlobal(t) { this.globals[t.name] = t; } hasUid(t) { let r = this; do if (r.uids[t]) return !0; while (r = r.parent); return !1; } hasGlobal(t) { let r = this; do if (r.globals[t]) return !0; while (r = r.parent); return !1; } hasReference(t) { return !!this.getProgramParent().references[t]; } isPure(t, r) { if (Ks(t)) { let o = this.getBinding(t.name); return o ? r ? o.constant : !0 : !1; } else { if (uS(t) || DJ(t) || fS(t) || IJ(t)) return !0; if (rJ(t)) { var n; return t.superClass && !this.isPure(t.superClass, r) || ((n = t.decorators) == null ? void 0 : n.length) > 0 ? !1 : this.isPure(t. body, r); } else if (nJ(t)) { for (let o of t.body) if (!this.isPure(o, r)) return !1; return !0; } else { if (tJ(t)) return this.isPure(t.left, r) && this.isPure(t.right, r); if (oS(t) || CJ(t)) { for (let o of t.elements) if (o !== null && !this.isPure(o, r)) return !1; return !0; } else if (pJ(t) || AJ(t)) { for (let o of t.properties) if (!this.isPure(o, r)) return !1; return !0; } else if (uJ(t)) { var i; return !(t.computed && !this.isPure(t.key, r) || ((i = t.decorators) == null ? void 0 : i.length) > 0); } else if (dJ(t)) { var a; return !(t.computed && !this.isPure(t.key, r) || ((a = t.decorators) == null ? void 0 : a.length) > 0 || (wJ(t) || t.static) && t. value !== null && !this.isPure(t.value, r)); } else { if (bJ(t)) return this.isPure(t.argument, r); if (mS(t)) { for (let o of t.expressions) if (!this.isPure(o, r)) return !1; return !0; } else return gJ(t) ? cS(t.tag, "String.raw") && !this.hasBinding("String", { noGlobals: !0 }) && this.isPure(t.quasi, r) : lJ(t) ? !t.computed && Ks(t.object) && t.object.name === "Symbol" && Ks(t.property) && t.property. name !== "for" && !this.hasBinding("Symbol", { noGlobals: !0 }) : lS(t) ? cS(t.callee, "Symbol.for") && !this.hasBinding("Symbol", { noGlobals: !0 }) && t.arguments.length === 1 && Qz.isStringLiteral(t.arguments[0]) : hJ(t); } } } } setData(t, r) { return this.data[t] = r; } getData(t) { let r = this; do { let n = r.data[t]; if (n != null) return n; } while (r = r.parent); } removeData(t) { let r = this; do r.data[t] != null && (r.data[t] = null); while (r = r.parent); } init() { this.inited || (this.inited = !0, this.crawl()); } crawl() { let t = this.path; this.references = /* @__PURE__ */ Object.create(null), this.bindings = /* @__PURE__ */ Object.create(null), this.globals = /* @__PURE__ */ Object. create(null), this.uids = /* @__PURE__ */ Object.create(null), this.data = /* @__PURE__ */ Object.create(null); let r = this.getProgramParent(); if (r.crawling) return; let n = { references: [], constantViolations: [], assignments: [] }; if (this.crawling = !0, t.type !== "Program" && (0, Zz.isExplodedVisitor)(du)) { for (let a of du.enter) a.call(n, t, n); let i = du[t.type]; if (i) for (let a of i.enter) a.call(n, t, n); } t.traverse(du, n), this.crawling = !1; for (let i of n.assignments) { let a = i.getAssignmentIdentifiers(); for (let o of Object.keys(a)) i.scope.getBinding(o) || r.addGlobal(a[o]); i.scope.registerConstantViolation(i); } for (let i of n.references) { let a = i.scope.getBinding(i.node.name); a ? a.reference(i) : r.addGlobal(i.node); } for (let i of n.constantViolations) i.scope.registerConstantViolation(i); } push(t) { let r = this.path; r.isPattern() ? r = this.getPatternParent().path : !r.isBlockStatement() && !r.isProgram() && (r = this.getBlockParent().path), r.isSwitchStatement() && (r = (this.getFunctionParent() || this.getProgramParent()).path); let { init: n, unique: i, kind: a = "var", id: o } = t; if (!n && !i && (a === "var" || a === "let") && r.isFunction() && !r.node.name && lS(r.parent, { callee: r.node }) && r.parent.arguments.length <= r.node.params.length && Ks(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 = !i && r.getData(u); if (!c) { let h = SJ(a, []); h._blockHoist = l, [c] = r.unshiftContainer("body", [h]), i || r.setData(u, c); } let f = PJ(o, n), p = c.node.declarations.push(f); r.scope.registerBinding(a, c.get("declarations")[p - 1]); } getProgramParent() { let t = this; do if (t.path.isProgram()) return t; while (t = t.parent); throw new Error("Couldn't find a Program"); } getFunctionParent() { let t = this; do if (t.path.isFunctionParent()) return t; while (t = t.parent); return null; } getBlockParent() { let t = this; do if (t.path.isBlockParent()) return t; while (t = t.parent); throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program..."); } getPatternParent() { let t = this; do if (!t.path.isPattern()) return t.getBlockParent(); while (t = t.parent.parent); throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program..."); } getAllBindings() { let t = /* @__PURE__ */ Object.create(null), r = this; do { for (let n of Object.keys(r.bindings)) n in t || (t[n] = r.bindings[n]); r = r.parent; } while (r); return t; } getAllBindingsOfKind(...t) { let r = /* @__PURE__ */ Object.create(null); for (let n of t) { let i = this; do { for (let a of Object.keys(i.bindings)) { let o = i.bindings[a]; o.kind === n && (r[a] = o); } i = i.parent; } while (i); } return r; } bindingIdentifierEquals(t, r) { return this.getBindingIdentifier(t) === r; } getBinding(t) { let r = this, n; do { let a = r.getOwnBinding(t); if (a) { var i; if (!((i = n) != null && i.isPattern() && a.kind !== "param" && a.kind !== "local")) return a; } else if (!a && t === "arguments" && r.path.isFunction() && !r.path.isArrowFunctionExpression()) break; n = r.path; } while (r = r.parent); } getOwnBinding(t) { return this.bindings[t]; } getBindingIdentifier(t) { var r; return (r = this.getBinding(t)) == null ? void 0 : r.identifier; } getOwnBindingIdentifier(t) { let r = this.bindings[t]; return r?.identifier; } hasOwnBinding(t) { return !!this.getOwnBinding(t); } hasBinding(t, r) { if (!t) return !1; let n = this; do if (n.hasOwnBinding(t)) return !0; while (n = n.parent); let i, a; return typeof r == "object" ? (i = r.noGlobals, a = r.noUids) : typeof r == "boolean" && (i = r), !!(!a && this.hasUid(t) || !i && e.globals. includes(t) || !i && e.contextVariables.includes(t)); } parentHasBinding(t, r) { var n; return (n = this.parent) == null ? void 0 : n.hasBinding(t, r); } moveBindingTo(t, r) { let n = this.getBinding(t); n && (n.scope.removeOwnBinding(t), n.scope = r, r.bindings[t] = n); } removeOwnBinding(t) { delete this.bindings[t]; } removeBinding(t) { var r; (r = this.getBinding(t)) == null || r.scope.removeOwnBinding(t); let n = this; do n.uids[t] && (n.uids[t] = !1); while (n = n.parent); } hoistVariables(t = (r) => this.push({ id: r })) { this.crawl(); let r = /* @__PURE__ */ new Set(); for (let i of Object.keys(this.bindings)) { let a = this.bindings[i]; if (!a) continue; let { path: o } = a; if (!o.isVariableDeclarator()) continue; let { parent: l, parentPath: u } = o; if (l.kind !== "var" || r.has(l)) continue; r.add(o.parent); let c, f = []; for (let p of l.declarations) { var n; (n = c) != null || (c = p.id), p.init && f.push(eJ("=", p.id, p.init)); let h = Object.keys(dS(p, !1, !0, !0)); for (let y of h) t(Ws(y), p.init != null); } if (u.parentPath.isFor({ left: l })) u.replaceWith(c); else if (f.length === 0) u.remove(); else { let p = f.length === 1 ? f[0] : NJ(f); u.parentPath.isForStatement({ init: l }) ? u.replaceWith(p) : u.replaceWith(vJ(p)); } } } }; hu.default = ao; ao.globals = Object.keys(Xz.builtin); ao.contextVariables = ["arguments", "undefined", "Infinity", "NaN"]; }); // ../node_modules/@jridgewell/set-array/dist/set-array.umd.js var gS = T((mu, yS) => { (function(e, t) { typeof mu == "object" && typeof yS < "u" ? t(mu) : typeof define == "function" && define.amd ? define(["exports"], t) : (e = typeof globalThis < "u" ? globalThis : e || self, t(e.setArray = {})); })(mu, function(e) { "use strict"; class t { static { s(this, "SetArray"); } constructor() { this._indexes = { __proto__: null }, this.array = []; } } function r(l) { return l; } s(r, "cast"); function n(l, u) { return l._indexes[u]; } s(n, "get"); function i(l, u) { let c = n(l, u); if (c !== void 0) return c; let { array: f, _indexes: p } = l, h = f.push(u); return p[u] = h - 1; } s(i, "put"); function a(l) { let { array: u, _indexes: c } = l; if (u.length === 0) return; let f = u.pop(); c[f] = void 0; } s(a, "pop"); function o(l, u) { let c = n(l, u); if (c === void 0) return; let { array: f, _indexes: p } = l; for (let h = c + 1; h < f.length; h++) { let y = f[h]; f[h - 1] = y, p[y]--; } p[u] = void 0, f.pop(); } s(o, "remove"), e.SetArray = t, e.get = n, e.pop = a, e.put = i, e.remove = o, Object.defineProperty(e, "__esModule", { value: !0 }); }); }); // ../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js var xm = T((yu, bS) => { (function(e, t) { typeof yu == "object" && typeof bS < "u" ? t(yu) : typeof define == "function" && define.amd ? define(["exports"], t) : (e = typeof globalThis < "u" ? globalThis : e || self, t(e.sourcemapCodec = {})); })(yu, function(e) { "use strict"; let n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", i = new Uint8Array(64), a = new Uint8Array(128); for (let W = 0; W < n.length; W++) { let q = n.charCodeAt(W); i[W] = q, a[q] = W; } function o(W, q) { let M = 0, K = 0, pe = 0; do { let X = W.next(); pe = a[X], M |= (pe & 31) << K, K += 5; } while (pe & 32); let ae = M & 1; return M >>>= 1, ae && (M = -2147483648 | -M), q + M; } s(o, "decodeInteger"); function l(W, q, M) { let K = q - M; K = K < 0 ? -K << 1 | 1 : K << 1; do { let pe = K & 31; K >>>= 5, K > 0 && (pe |= 32), W.write(i[pe]); } while (K > 0); return q; } s(l, "encodeInteger"); function u(W, q) { return W.pos >= q ? !1 : W.peek() !== 44; } s(u, "hasMoreVlq"); let c = 1024 * 16, f = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? { decode(W) { return Buffer.from(W.buffer, W.byteOffset, W.byteLength).toString(); } } : { decode(W) { let q = ""; for (let M = 0; M < W.length; M++) q += String.fromCharCode(W[M]); return q; } }; class p { static { s(this, "StringWriter"); } constructor() { this.pos = 0, this.out = "", this.buffer = new Uint8Array(c); } write(q) { let { buffer: M } = this; M[this.pos++] = q, this.pos === c && (this.out += f.decode(M), this.pos = 0); } flush() { let { buffer: q, out: M, pos: K } = this; return K > 0 ? M + f.decode(q.subarray(0, K)) : M; } } class h { static { s(this, "StringReader"); } constructor(q) { this.pos = 0, this.buffer = q; } next() { return this.buffer.charCodeAt(this.pos++); } peek() { return this.buffer.charCodeAt(this.pos); } indexOf(q) { let { buffer: M, pos: K } = this, pe = M.indexOf(q, K); return pe === -1 ? M.length : pe; } } let y = []; function v(W) { let { length: q } = W, M = new h(W), K = [], pe = [], ae = 0; for (; M.pos < q; M.pos++) { ae = o(M, ae); let X = o(M, 0); if (!u(M, q)) { let De = pe.pop(); De[2] = ae, De[3] = X; continue; } let J = o(M, 0), be = o(M, 0) & 1 ? [ae, X, 0, 0, J, o(M, 0)] : [ae, X, 0, 0, J], Se = y; if (u(M, q)) { Se = []; do { let De = o(M, 0); Se.push(De); } while (u(M, q)); } be.vars = Se, K.push(be), pe.push(be); } return K; } s(v, "decodeOriginalScopes"); function d(W) { let q = new p(); for (let M = 0; M < W.length; ) M = b(W, M, q, [0]); return q.flush(); } s(d, "encodeOriginalScopes"); function b(W, q, M, K) { let pe = W[q], { 0: ae, 1: X, 2: J, 3: ne, 4: oe, vars: be } = pe; q > 0 && M.write(44), K[0] = l(M, ae, K[0]), l(M, X, 0), l(M, oe, 0); let Se = pe.length === 6 ? 1 : 0; l(M, Se, 0), pe.length === 6 && l(M, pe[5], 0); for (let De of be) l(M, De, 0); for (q++; q < W.length; ) { let De = W[q], { 0: he, 1: Ne } = De; if (he > J || he === J && Ne >= ne) break; q = b(W, q, M, K); } return M.write(44), K[0] = l(M, J, K[0]), l(M, ne, 0), q; } s(b, "_encodeOriginalScopes"); function E(W) { let { length: q } = W, M = new h(W), K = [], pe = [], ae = 0, X = 0, J = 0, ne = 0, oe = 0, be = 0, Se = 0, De = 0; do { let he = M.indexOf(";"), Ne = 0; for (; M.pos < he; M.pos++) { if (Ne = o(M, Ne), !u(M, he)) { let Dt = pe.pop(); Dt[2] = ae, Dt[3] = Ne; continue; } let mt = o(M, 0), Oe = mt & 1, ke = mt & 2, ft = mt & 4, Nt = null, Zt = y, Bt; if (Oe) { let Dt = o(M, X); J = o(M, X === Dt ? J : 0), X = Dt, Bt = [ae, Ne, 0, 0, Dt, J]; } else Bt = [ae, Ne, 0, 0]; if (Bt.isScope = !!ft, ke) { let Dt = ne, pr = oe; ne = o(M, ne); let nn = Dt === ne; oe = o(M, nn ? oe : 0), be = o(M, nn && pr === oe ? be : 0), Nt = [ne, oe, be]; } if (Bt.callsite = Nt, u(M, he)) { Zt = []; do { Se = ae, De = Ne; let Dt = o(M, 0), pr; if (Dt < -1) { pr = [[o(M, 0)]]; for (let nn = -1; nn > Dt; nn--) { let vn = Se; Se = o(M, Se), De = o(M, Se === vn ? De : 0); let Vr = o(M, 0); pr.push([Vr, Se, De]); } } else pr = [[Dt]]; Zt.push(pr); } while (u(M, he)); } Bt.bindings = Zt, K.push(Bt), pe.push(Bt); } ae++, M.pos = he + 1; } while (M.pos < q); return K; } s(E, "decodeGeneratedRanges"); function I(W) { if (W.length === 0) return ""; let q = new p(); for (let M = 0; M < W.length; ) M = O(W, M, q, [0, 0, 0, 0, 0, 0, 0]); return q.flush(); } s(I, "encodeGeneratedRanges"); function O(W, q, M, K) { let pe = W[q], { 0: ae, 1: X, 2: J, 3: ne, isScope: oe, callsite: be, bindings: Se } = pe; K[0] < ae ? (k(M, K[0], ae), K[0] = ae, K[1] = 0) : q > 0 && M.write(44), K[1] = l(M, pe[1], K[1]); let De = (pe.length === 6 ? 1 : 0) | (be ? 2 : 0) | (oe ? 4 : 0); if (l(M, De, 0), pe.length === 6) { let { 4: he, 5: Ne } = pe; he !== K[2] && (K[3] = 0), K[2] = l(M, he, K[2]), K[3] = l(M, Ne, K[3]); } if (be) { let { 0: he, 1: Ne, 2: mt } = pe.callsite; he !== K[4] ? (K[5] = 0, K[6] = 0) : Ne !== K[5] && (K[6] = 0), K[4] = l(M, he, K[4]), K[5] = l(M, Ne, K[5]), K[6] = l(M, mt, K[6]); } if (Se) for (let he of Se) { he.length > 1 && l(M, -he.length, 0); let Ne = he[0][0]; l(M, Ne, 0); let mt = ae, Oe = X; for (let ke = 1; ke < he.length; ke++) { let ft = he[ke]; mt = l(M, ft[1], mt), Oe = l(M, ft[2], Oe), l(M, ft[0], 0); } } for (q++; q < W.length; ) { let he = W[q], { 0: Ne, 1: mt } = he; if (Ne > J || Ne === J && mt >= ne) break; q = O(W, q, M, K); } return K[0] < J ? (k(M, K[0], J), K[0] = J, K[1] = 0) : M.write(44), K[1] = l(M, ne, K[1]), q; } s(O, "_encodeGeneratedRanges"); function k(W, q, M) { do W.write(59); while (++q < M); } s(k, "catchupLine"); function j(W) { let { length: q } = W, M = new h(W), K = [], pe = 0, ae = 0, X = 0, J = 0, ne = 0; do { let oe = M.indexOf(";"), be = [], Se = !0, De = 0; for (pe = 0; M.pos < oe; ) { let he; pe = o(M, pe), pe < De && (Se = !1), De = pe, u(M, oe) ? (ae = o(M, ae), X = o(M, X), J = o(M, J), u(M, oe) ? (ne = o(M, ne), he = [pe, ae, X, J, ne]) : he = [pe, ae, X, J]) : he = [pe], be.push(he), M.pos++; } Se || R(be), K.push(be), M.pos = oe + 1; } while (M.pos <= q); return K; } s(j, "decode"); function R(W) { W.sort(U); } s(R, "sort"); function U(W, q) { return W[0] - q[0]; } s(U, "sortComparator"); function Q(W) { let q = new p(), M = 0, K = 0, pe = 0, ae = 0; for (let X = 0; X < W.length; X++) { let J = W[X]; if (X > 0 && q.write(59), J.length === 0) continue; let ne = 0; for (let oe = 0; oe < J.length; oe++) { let be = J[oe]; oe > 0 && q.write(44), ne = l(q, be[0], ne), be.length !== 1 && (M = l(q, be[1], M), K = l(q, be[2], K), pe = l(q, be[3], pe), be. length !== 4 && (ae = l(q, be[4], ae))); } } return q.flush(); } s(Q, "encode"), e.decode = j, e.decodeGeneratedRanges = E, e.decodeOriginalScopes = v, e.encode = Q, e.encodeGeneratedRanges = I, e.encodeOriginalScopes = d, Object.defineProperty(e, "__esModule", { value: !0 }); }); }); // ../node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js var ES = T((Sm, Pm) => { (function(e, t) { typeof Sm == "object" && typeof Pm < "u" ? Pm.exports = t() : typeof define == "function" && define.amd ? define(t) : (e = typeof globalThis < "u" ? globalThis : e || self, e.resolveURI = t()); })(Sm, function() { "use strict"; let e = /^[\w+.-]+:\/\//, t = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/, r = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i; var n; (function(E) { E[E.Empty = 1] = "Empty", E[E.Hash = 2] = "Hash", E[E.Query = 3] = "Query", E[E.RelativePath = 4] = "RelativePath", E[E.AbsolutePath = 5] = "AbsolutePath", E[E.SchemeRelative = 6] = "SchemeRelative", E[E.Absolute = 7] = "Absolute"; })(n || (n = {})); function i(E) { return e.test(E); } s(i, "isAbsoluteUrl"); function a(E) { return E.startsWith("//"); } s(a, "isSchemeRelativeUrl"); function o(E) { return E.startsWith("/"); } s(o, "isAbsolutePath"); function l(E) { return E.startsWith("file:"); } s(l, "isFileUrl"); function u(E) { return /^[.?#]/.test(E); } s(u, "isRelative"); function c(E) { let I = t.exec(E); return p(I[1], I[2] || "", I[3], I[4] || "", I[5] || "/", I[6] || "", I[7] || ""); } s(c, "parseAbsoluteUrl"); function f(E) { let I = r.exec(E), O = I[2]; return p("file:", "", I[1] || "", "", o(O) ? O : "/" + O, I[3] || "", I[4] || ""); } s(f, "parseFileUrl"); function p(E, I, O, k, j, R, U) { return { scheme: E, user: I, host: O, port: k, path: j, query: R, hash: U, type: n.Absolute }; } s(p, "makeUrl"); function h(E) { if (a(E)) { let O = c("http:" + E); return O.scheme = "", O.type = n.SchemeRelative, O; } if (o(E)) { let O = c("http://foo.com" + E); return O.scheme = "", O.host = "", O.type = n.AbsolutePath, O; } if (l(E)) return f(E); if (i(E)) return c(E); let I = c("http://foo.com/" + E); return I.scheme = "", I.host = "", I.type = E ? E.startsWith("?") ? n.Query : E.startsWith("#") ? n.Hash : n.RelativePath : n.Empty, I; } s(h, "parseUrl"); function y(E) { if (E.endsWith("/..")) return E; let I = E.lastIndexOf("/"); return E.slice(0, I + 1); } s(y, "stripPathFilename"); function v(E, I) { d(I, I.type), E.path === "/" ? E.path = I.path : E.path = y(I.path) + E.path; } s(v, "mergePaths"); function d(E, I) { let O = I <= n.RelativePath, k = E.path.split("/"), j = 1, R = 0, U = !1; for (let W = 1; W < k.length; W++) { let q = k[W]; if (!q) { U = !0; continue; } if (U = !1, q !== ".") { if (q === "..") { R ? (U = !0, R--, j--) : O && (k[j++] = q); continue; } k[j++] = q, R++; } } let Q = ""; for (let W = 1; W < j; W++) Q += "/" + k[W]; (!Q || U && !Q.endsWith("/..")) && (Q += "/"), E.path = Q; } s(d, "normalizePath"); function b(E, I) { if (!E && !I) return ""; let O = h(E), k = O.type; if (I && k !== n.Absolute) { let R = h(I), U = R.type; switch (k) { case n.Empty: O.hash = R.hash; // fall through case n.Hash: O.query = R.query; // fall through case n.Query: case n.RelativePath: v(O, R); // fall through case n.AbsolutePath: O.user = R.user, O.host = R.host, O.port = R.port; // fall through case n.SchemeRelative: O.scheme = R.scheme; } U > k && (k = U); } d(O, k); let j = O.query + O.hash; switch (k) { // This is impossible, because of the empty checks at the start of the function. // case UrlType.Empty: case n.Hash: case n.Query: return j; case n.RelativePath: { let R = O.path.slice(1); return R ? u(I || E) && !u(R) ? "./" + R + j : R + j : j || "."; } case n.AbsolutePath: return O.path + j; default: return O.scheme + "//" + O.user + O.host + O.port + O.path + j; } } return s(b, "resolve"), b; }); }); // ../node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js var bu = T((gu, vS) => { (function(e, t) { typeof gu == "object" && typeof vS < "u" ? t(gu, xm(), ES()) : typeof define == "function" && define.amd ? define(["exports", "@jridgewe\ ll/sourcemap-codec", "@jridgewell/resolve-uri"], t) : (e = typeof globalThis < "u" ? globalThis : e || self, t(e.traceMapping = {}, e.sourcemapCodec, e.resolveURI)); })(gu, function(e, t, r) { "use strict"; function n(F, V) { return V && !V.endsWith("/") && (V += "/"), r(F, V); } s(n, "resolve"); function i(F) { if (!F) return ""; let V = F.lastIndexOf("/"); return F.slice(0, V + 1); } s(i, "stripFilename"); let a = 0, o = 1, l = 2, u = 3, c = 4, f = 1, p = 2; function h(F, V) { let H = y(F, 0); if (H === F.length) return F; V || (F = F.slice()); for (let Z = H; Z < F.length; Z = y(F, Z + 1)) F[Z] = d(F[Z], V); return F; } s(h, "maybeSort"); function y(F, V) { for (let H = V; H < F.length; H++) if (!v(F[H])) return H; return F.length; } s(y, "nextUnsortedSegmentLine"); function v(F) { for (let V = 1; V < F.length; V++) if (F[V][a] < F[V - 1][a]) return !1; return !0; } s(v, "isSorted"); function d(F, V) { return V || (F = F.slice()), F.sort(b); } s(d, "sortSegments"); function b(F, V) { return F[a] - V[a]; } s(b, "sortComparator"); let E = !1; function I(F, V, H, Z) { for (; H <= Z; ) { let de = H + (Z - H >> 1), ce = F[de][a] - V; if (ce === 0) return E = !0, de; ce < 0 ? H = de + 1 : Z = de - 1; } return E = !1, H - 1; } s(I, "binarySearch"); function O(F, V, H) { for (let Z = H + 1; Z < F.length && F[Z][a] === V; H = Z++) ; return H; } s(O, "upperBound"); function k(F, V, H) { for (let Z = H - 1; Z >= 0 && F[Z][a] === V; H = Z--) ; return H; } s(k, "lowerBound"); function j() { return { lastKey: -1, lastNeedle: -1, lastIndex: -1 }; } s(j, "memoizedState"); function R(F, V, H, Z) { let { lastKey: de, lastNeedle: ce, lastIndex: Ce } = H, Fe = 0, Ie = F.length - 1; if (Z === de) { if (V === ce) return E = Ce !== -1 && F[Ce][a] === V, Ce; V >= ce ? Fe = Ce === -1 ? 0 : Ce : Ie = Ce; } return H.lastKey = Z, H.lastNeedle = V, H.lastIndex = I(F, V, Fe, Ie); } s(R, "memoizedBinarySearch"); function U(F, V) { let H = V.map(W); for (let Z = 0; Z < F.length; Z++) { let de = F[Z]; for (let ce = 0; ce < de.length; ce++) { let Ce = de[ce]; if (Ce.length === 1) continue; let Fe = Ce[o], Ie = Ce[l], je = Ce[u], Ct = H[Fe], Je = Ct[Ie] || (Ct[Ie] = []), $e = V[Fe], ut = O(Je, je, R(Je, je, $e, Ie)); $e.lastIndex = ++ut, Q(Je, ut, [je, Z, Ce[a]]); } } return H; } s(U, "buildBySources"); function Q(F, V, H) { for (let Z = F.length; Z > V; Z--) F[Z] = F[Z - 1]; F[V] = H; } s(Q, "insert"); function W() { return { __proto__: null }; } s(W, "buildNullArray"); let q = /* @__PURE__ */ s(function(F, V) { let H = M(F); if (!("sections" in H)) return new Se(H, V); let Z = [], de = [], ce = [], Ce = [], Fe = []; K(H, V, Z, de, ce, Ce, Fe, 0, 0, 1 / 0, 1 / 0); let Ie = { version: 3, file: H.file, names: Ce, sources: de, sourcesContent: ce, mappings: Z, ignoreList: Fe }; return pr(Ie); }, "AnyMap"); function M(F) { return typeof F == "string" ? JSON.parse(F) : F; } s(M, "parse"); function K(F, V, H, Z, de, ce, Ce, Fe, Ie, je, Ct) { let { sections: Je } = F; for (let $e = 0; $e < Je.length; $e++) { let { map: ut, offset: vt } = Je[$e], kt = je, an = Ct; if ($e + 1 < Je.length) { let zn = Je[$e + 1].offset; kt = Math.min(je, Fe + zn.line), kt === je ? an = Math.min(Ct, Ie + zn.column) : kt < je && (an = Ie + zn.column); } pe(ut, V, H, Z, de, ce, Ce, Fe + vt.line, Ie + vt.column, kt, an); } } s(K, "recurse"); function pe(F, V, H, Z, de, ce, Ce, Fe, Ie, je, Ct) { let Je = M(F); if ("sections" in Je) return K(...arguments); let $e = new Se(Je, V), ut = Z.length, vt = ce.length, kt = Ne($e), { resolvedSources: an, sourcesContent: zn, ignoreList: Sa } = $e; if (ae(Z, an), ae(ce, $e.names), zn) ae(de, zn); else for (let er = 0; er < an.length; er++) de.push(null); if (Sa) for (let er = 0; er < Sa.length; er++) Ce.push(Sa[er] + ut); for (let er = 0; er < kt.length; er++) { let mi = Fe + er; if (mi > je) return; let Pa = X(H, mi), rN = er === 0 ? Ie : 0, L1 = kt[er]; for (let Yf = 0; Yf < L1.length; Yf++) { let Is = L1[Yf], cl = rN + Is[a]; if (mi === je && cl >= Ct) return; if (Is.length === 1) { Pa.push([cl]); continue; } let M1 = ut + Is[o], R1 = Is[l], q1 = Is[u]; Pa.push(Is.length === 4 ? [cl, M1, R1, q1] : [cl, M1, R1, q1, vt + Is[c]]); } } } s(pe, "addSection"); function ae(F, V) { for (let H = 0; H < V.length; H++) F.push(V[H]); } s(ae, "append"); function X(F, V) { for (let H = F.length; H <= V; H++) F[H] = []; return F[V]; } s(X, "getLine"); let J = "`line` must be greater than 0 (lines start at line 1)", ne = "`column` must be greater than or equal to 0 (columns start at col\ umn 0)", oe = -1, be = 1; class Se { static { s(this, "TraceMap"); } constructor(V, H) { let Z = typeof V == "string"; if (!Z && V._decodedMemo) return V; let de = Z ? JSON.parse(V) : V, { version: ce, file: Ce, names: Fe, sourceRoot: Ie, sources: je, sourcesContent: Ct } = de; this.version = ce, this.file = Ce, this.names = Fe || [], this.sourceRoot = Ie, this.sources = je, this.sourcesContent = Ct, this.ignoreList = de.ignoreList || de.x_google_ignoreList || void 0; let Je = n(Ie || "", i(H)); this.resolvedSources = je.map((ut) => n(ut || "", Je)); let { mappings: $e } = de; typeof $e == "string" ? (this._encoded = $e, this._decoded = void 0) : (this._encoded = void 0, this._decoded = h($e, Z)), this._decodedMemo = j(), this._bySources = void 0, this._bySourceMemos = void 0; } } function De(F) { return F; } s(De, "cast"); function he(F) { var V, H; return (V = (H = F)._encoded) !== null && V !== void 0 ? V : H._encoded = t.encode(F._decoded); } s(he, "encodedMappings"); function Ne(F) { var V; return (V = F)._decoded || (V._decoded = t.decode(F._encoded)); } s(Ne, "decodedMappings"); function mt(F, V, H) { let Z = Ne(F); if (V >= Z.length) return null; let de = Z[V], ce = Tn(de, F._decodedMemo, V, H, be); return ce === -1 ? null : de[ce]; } s(mt, "traceSegment"); function Oe(F, V) { let { line: H, column: Z, bias: de } = V; if (H--, H < 0) throw new Error(J); if (Z < 0) throw new Error(ne); let ce = Ne(F); if (H >= ce.length) return sn(null, null, null, null); let Ce = ce[H], Fe = Tn(Ce, F._decodedMemo, H, Z, de || be); if (Fe === -1) return sn(null, null, null, null); let Ie = Ce[Fe]; if (Ie.length === 1) return sn(null, null, null, null); let { names: je, resolvedSources: Ct } = F; return sn(Ct[Ie[o]], Ie[l] + 1, Ie[u], Ie.length === 5 ? je[Ie[c]] : null); } s(Oe, "originalPositionFor"); function ke(F, V) { let { source: H, line: Z, column: de, bias: ce } = V; return re(F, H, Z, de, ce || be, !1); } s(ke, "generatedPositionFor"); function ft(F, V) { let { source: H, line: Z, column: de, bias: ce } = V; return re(F, H, Z, de, ce || oe, !0); } s(ft, "allGeneratedPositionsFor"); function Nt(F, V) { let H = Ne(F), { names: Z, resolvedSources: de } = F; for (let ce = 0; ce < H.length; ce++) { let Ce = H[ce]; for (let Fe = 0; Fe < Ce.length; Fe++) { let Ie = Ce[Fe], je = ce + 1, Ct = Ie[0], Je = null, $e = null, ut = null, vt = null; Ie.length !== 1 && (Je = de[Ie[1]], $e = Ie[2] + 1, ut = Ie[3]), Ie.length === 5 && (vt = Z[Ie[4]]), V({ generatedLine: je, generatedColumn: Ct, source: Je, originalLine: $e, originalColumn: ut, name: vt }); } } } s(Nt, "eachMapping"); function Zt(F, V) { let { sources: H, resolvedSources: Z } = F, de = H.indexOf(V); return de === -1 && (de = Z.indexOf(V)), de; } s(Zt, "sourceIndex"); function Bt(F, V) { let { sourcesContent: H } = F; if (H == null) return null; let Z = Zt(F, V); return Z === -1 ? null : H[Z]; } s(Bt, "sourceContentFor"); function Dt(F, V) { let { ignoreList: H } = F; if (H == null) return !1; let Z = Zt(F, V); return Z === -1 ? !1 : H.includes(Z); } s(Dt, "isIgnored"); function pr(F, V) { let H = new Se(Vr(F, []), V); return H._decoded = F.mappings, H; } s(pr, "presortedDecodedMap"); function nn(F) { return Vr(F, Ne(F)); } s(nn, "decodedMap"); function vn(F) { return Vr(F, he(F)); } s(vn, "encodedMap"); function Vr(F, V) { return { version: F.version, file: F.file, names: F.names, sourceRoot: F.sourceRoot, sources: F.sources, sourcesContent: F.sourcesContent, mappings: V, ignoreList: F.ignoreList || F.x_google_ignoreList }; } s(Vr, "clone"); function sn(F, V, H, Z) { return { source: F, line: V, column: H, name: Z }; } s(sn, "OMapping"); function Yn(F, V) { return { line: F, column: V }; } s(Yn, "GMapping"); function Tn(F, V, H, Z, de) { let ce = R(F, Z, V, H); return E ? ce = (de === oe ? O : k)(F, Z, ce) : de === oe && ce++, ce === -1 || ce === F.length ? -1 : ce; } s(Tn, "traceSegmentInternal"); function ue(F, V, H, Z, de) { let ce = Tn(F, V, H, Z, be); if (!E && de === oe && ce++, ce === -1 || ce === F.length) return []; let Ce = E ? Z : F[ce][a]; E || (ce = k(F, Ce, ce)); let Fe = O(F, Ce, ce), Ie = []; for (; ce <= Fe; ce++) { let je = F[ce]; Ie.push(Yn(je[f] + 1, je[p])); } return Ie; } s(ue, "sliceGeneratedPositions"); function re(F, V, H, Z, de, ce) { var Ce; if (H--, H < 0) throw new Error(J); if (Z < 0) throw new Error(ne); let { sources: Fe, resolvedSources: Ie } = F, je = Fe.indexOf(V); if (je === -1 && (je = Ie.indexOf(V)), je === -1) return ce ? [] : Yn(null, null); let Je = ((Ce = F)._bySources || (Ce._bySources = U(Ne(F), F._bySourceMemos = Fe.map(j))))[je][H]; if (Je == null) return ce ? [] : Yn(null, null); let $e = F._bySourceMemos[je]; if (ce) return ue(Je, $e, H, Z, de); let ut = Tn(Je, $e, H, Z, de); if (ut === -1) return Yn(null, null); let vt = Je[ut]; return Yn(vt[f] + 1, vt[p]); } s(re, "generatedPosition"), e.AnyMap = q, e.GREATEST_LOWER_BOUND = be, e.LEAST_UPPER_BOUND = oe, e.TraceMap = Se, e.allGeneratedPositionsFor = ft, e.decodedMap = nn, e.decodedMappings = Ne, e.eachMapping = Nt, e.encodedMap = vn, e.encodedMappings = he, e.generatedPositionFor = ke, e.isIgnored = Dt, e.originalPositionFor = Oe, e.presortedDecodedMap = pr, e.sourceContentFor = Bt, e.traceSegment = mt; }); }); // ../node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js var Am = T((Eu, TS) => { (function(e, t) { typeof Eu == "object" && typeof TS < "u" ? t(Eu, gS(), xm(), bu()) : typeof define == "function" && define.amd ? define(["exports", "@jr\ idgewell/set-array", "@jridgewell/sourcemap-codec", "@jridgewell/trace-mapping"], t) : (e = typeof globalThis < "u" ? globalThis : e || self, t(e.genMapping = {}, e.setArray, e.sourcemapCodec, e.traceMapping)); })(Eu, function(e, t, r, n) { "use strict"; class f { static { s(this, "GenMapping"); } constructor({ file: J, sourceRoot: ne } = {}) { this._names = new t.SetArray(), this._sources = new t.SetArray(), this._sourcesContent = [], this._mappings = [], this.file = J, this. sourceRoot = ne, this._ignoreList = new t.SetArray(); } } function p(X) { return X; } s(p, "cast"); function h(X, J, ne, oe, be, Se, De, he) { return R(!1, X, J, ne, oe, be, Se, De, he); } s(h, "addSegment"); function y(X, J) { return ae(!1, X, J); } s(y, "addMapping"); let v = /* @__PURE__ */ s((X, J, ne, oe, be, Se, De, he) => R(!0, X, J, ne, oe, be, Se, De, he), "maybeAddSegment"), d = /* @__PURE__ */ s( (X, J) => ae(!0, X, J), "maybeAddMapping"); function b(X, J, ne) { let { _sources: oe, _sourcesContent: be } = X, Se = t.put(oe, J); be[Se] = ne; } s(b, "setSourceContent"); function E(X, J, ne = !0) { let { _sources: oe, _sourcesContent: be, _ignoreList: Se } = X, De = t.put(oe, J); De === be.length && (be[De] = null), ne ? t.put(Se, De) : t.remove(Se, De); } s(E, "setIgnore"); function I(X) { let { _mappings: J, _sources: ne, _sourcesContent: oe, _names: be, _ignoreList: Se } = X; return q(J), { version: 3, file: X.file || void 0, names: be.array, sourceRoot: X.sourceRoot || void 0, sources: ne.array, sourcesContent: oe, mappings: J, ignoreList: Se.array }; } s(I, "toDecodedMap"); function O(X) { let J = I(X); return Object.assign(Object.assign({}, J), { mappings: r.encode(J.mappings) }); } s(O, "toEncodedMap"); function k(X) { let J = new n.TraceMap(X), ne = new f({ file: J.file, sourceRoot: J.sourceRoot }); return M(ne._names, J.names), M(ne._sources, J.sources), ne._sourcesContent = J.sourcesContent || J.sources.map(() => null), ne._mappings = n.decodedMappings(J), J.ignoreList && M(ne._ignoreList, J.ignoreList), ne; } s(k, "fromMap"); function j(X) { let J = [], { _mappings: ne, _sources: oe, _names: be } = X; for (let Se = 0; Se < ne.length; Se++) { let De = ne[Se]; for (let he = 0; he < De.length; he++) { let Ne = De[he], mt = { line: Se + 1, column: Ne[0] }, Oe, ke, ft; Ne.length !== 1 && (Oe = oe.array[Ne[1]], ke = { line: Ne[2] + 1, column: Ne[3] }, Ne.length === 5 && (ft = be.array[Ne[4]])), J.push( { generated: mt, source: Oe, original: ke, name: ft }); } } return J; } s(j, "allMappings"); function R(X, J, ne, oe, be, Se, De, he, Ne) { let { _mappings: mt, _sources: Oe, _sourcesContent: ke, _names: ft } = J, Nt = U(mt, ne), Zt = Q(Nt, oe); if (!be) return X && K(Nt, Zt) ? void 0 : W(Nt, Zt, [oe]); let Bt = t.put(Oe, be), Dt = he ? t.put(ft, he) : -1; if (Bt === ke.length && (ke[Bt] = Ne ?? null), !(X && pe(Nt, Zt, Bt, Se, De, Dt))) return W(Nt, Zt, he ? [oe, Bt, Se, De, Dt] : [oe, Bt, Se, De]); } s(R, "addSegmentInternal"); function U(X, J) { for (let ne = X.length; ne <= J; ne++) X[ne] = []; return X[J]; } s(U, "getLine"); function Q(X, J) { let ne = X.length; for (let oe = ne - 1; oe >= 0; ne = oe--) { let be = X[oe]; if (J >= be[0]) break; } return ne; } s(Q, "getColumnIndex"); function W(X, J, ne) { for (let oe = X.length; oe > J; oe--) X[oe] = X[oe - 1]; X[J] = ne; } s(W, "insert"); function q(X) { let { length: J } = X, ne = J; for (let oe = ne - 1; oe >= 0 && !(X[oe].length > 0); ne = oe, oe--) ; ne < J && (X.length = ne); } s(q, "removeEmptyFinalLines"); function M(X, J) { for (let ne = 0; ne < J.length; ne++) t.put(X, J[ne]); } s(M, "putAll"); function K(X, J) { return J === 0 ? !0 : X[J - 1].length === 1; } s(K, "skipSourceless"); function pe(X, J, ne, oe, be, Se) { if (J === 0) return !1; let De = X[J - 1]; return De.length === 1 ? !1 : ne === De[1] && oe === De[2] && be === De[3] && Se === (De.length === 5 ? De[4] : -1); } s(pe, "skipSource"); function ae(X, J, ne) { let { generated: oe, source: be, original: Se, name: De, content: he } = ne; return be ? R(X, J, oe.line - 1, oe.column, be, Se.line - 1, Se.column, De, he) : R(X, J, oe.line - 1, oe.column, null, null, null, null, null); } s(ae, "addMappingInternal"), e.GenMapping = f, e.addMapping = y, e.addSegment = h, e.allMappings = j, e.fromMap = k, e.maybeAddMapping = d, e.maybeAddSegment = v, e.setIgnore = E, e.setSourceContent = b, e.toDecodedMap = I, e.toEncodedMap = O, Object.defineProperty(e, "__e\ sModule", { value: !0 }); }); }); // ../node_modules/@babel/generator/lib/source-map.js var xS = T((vu) => { "use strict"; Object.defineProperty(vu, "__esModule", { value: !0 }); vu.default = void 0; var is = Am(), Cm = bu(), wm = class { static { s(this, "SourceMap"); } constructor(t, r) { var n; this._map = void 0, this._rawMappings = void 0, this._sourceFileName = void 0, this._lastGenLine = 0, this._lastSourceLine = 0, this._lastSourceColumn = 0, this._inputMap = void 0; let i = this._map = new is.GenMapping({ sourceRoot: t.sourceRoot }); if (this._sourceFileName = (n = t.sourceFileName) == null ? void 0 : n.replace(/\\/g, "/"), this._rawMappings = void 0, t.inputSourceMap) { this._inputMap = new Cm.TraceMap(t.inputSourceMap); let o = this._inputMap.resolvedSources; if (o.length) for (let l = 0; l < o.length; l++) { var a; (0, is.setSourceContent)(i, o[l], (a = this._inputMap.sourcesContent) == null ? void 0 : a[l]); } } if (typeof r == "string" && !t.inputSourceMap) (0, is.setSourceContent)(i, this._sourceFileName, r); else if (typeof r == "object") for (let o of Object.keys(r)) (0, is.setSourceContent)(i, o.replace(/\\/g, "/"), r[o]); } get() { return (0, is.toEncodedMap)(this._map); } getDecoded() { return (0, is.toDecodedMap)(this._map); } getRawMappings() { return this._rawMappings || (this._rawMappings = (0, is.allMappings)(this._map)); } mark(t, r, n, i, a, o) { var l; this._rawMappings = void 0; let u; if (r != null) if (this._inputMap) { if (u = (0, Cm.originalPositionFor)(this._inputMap, { line: r, column: n }), !u.name && a) { let c = (0, Cm.originalPositionFor)(this._inputMap, a); c.name && (i = c.name); } } else u = { source: o?.replace(/\\/g, "/") || this._sourceFileName, line: r, column: n }; (0, is.maybeAddMapping)(this._map, { name: i, generated: t, source: (l = u) == null ? void 0 : l.source, original: u }); } }; vu.default = wm; }); // ../node_modules/@babel/generator/lib/buffer.js var SS = T((Tu) => { "use strict"; Object.defineProperty(Tu, "__esModule", { value: !0 }); Tu.default = void 0; var Dm = class { static { s(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 n = 0; n < 64; n++) this._fastIndentations.push(r.repeat(n)); this._allocQueue(); } _allocQueue() { let t = this._queue; for (let r = 0; r < 16; r++) t.push({ char: 0, repeat: 1, line: void 0, column: void 0, identifierName: void 0, identifierNamePos: void 0, filename: "" }); } _pushQueue(t, r, n, i, a) { let o = this._queueCursor; o === this._queue.length && this._allocQueue(); let l = this._queue[o]; l.char = t, l.repeat = r, l.line = n, l.column = i, 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 n = t ? t.get() : null; return r.map = n, n; }, set map(n) { Object.defineProperty(r, "map", { value: n, writable: !0 }); }, get rawMappings() { let n = t?.getRawMappings(); return r.rawMappings = n, n; }, set rawMappings(n) { Object.defineProperty(r, "rawMappings", { value: n, writable: !0 }); } }; return r; } append(t, r) { this._flush(), this._append(t, this._sourcePosition, r); } appendChar(t) { this._flush(), this._appendChar(t, 1, this._sourcePosition); } queue(t) { if (t === 10) for (; this._queueCursor !== 0; ) { let n = this._queue[this._queueCursor - 1].char; if (n !== 32 && n !== 9) break; this._queueCursor--; } let r = this._sourcePosition; this._pushQueue(t, 1, r.line, r.column, r.filename); } queueIndentation(t) { t !== 0 && this._pushQueue(-1, t, void 0, void 0, void 0); } _flush() { let t = this._queueCursor, r = this._queue; for (let n = 0; n < t; n++) { let i = r[n]; this._appendChar(i.char, i.repeat, i); } this._queueCursor = 0; } _appendChar(t, r, n) { if (this._last = t, t === -1) { let i = this._fastIndentations[r]; i !== void 0 ? this._str += i : 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(n.line, n.column, n.identifierName, n.identifierNamePos, n.filename), this._position.column += r) : (this._position. line++, this._position.column = 0), this._canMarkIdName && (n.identifierName = void 0, n.identifierNamePos = void 0); } _append(t, r, n) { let i = t.length, a = this._position; if (this._last = t.charCodeAt(i - 1), ++this._appendCount > 4096 ? (+this._str, this._buf += this._str, this._str = t, this._appendCount = 0) : this._str += t, !n && !this._map) { a.column += i; return; } let { column: o, identifierName: l, identifierNamePos: u, filename: c } = r, f = r.line; (l != null || u != null) && this._canMarkIdName && (r.identifierName = void 0, r.identifierNamePos = void 0); let p = t.indexOf(` `), h = 0; for (p !== 0 && this._mark(f, o, l, u, c); p !== -1; ) a.line++, a.column = 0, h = p + 1, h < i && f !== void 0 && this._mark(++f, 0, null, null, c), p = t.indexOf(` `, h); a.column += i - h; } _mark(t, r, n, i, a) { var o; (o = this._map) == null || o.mark(this._position, t, r, n, i, 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 n = t - 1; n >= 0 && this._queue[n].char === 10; n--) r++; return r === t && this._last === 10 ? r + 1 : r; } endsWithCharAndNewline() { let t = this._queue, r = this._queueCursor; if (r !== 0) return t[r - 1].char !== 10 ? void 0 : r > 1 ? t[r - 2].char : this._last; } hasContent() { return this._queueCursor !== 0 || !!this._last; } exactSource(t, r) { if (!this._map) { r(); return; } this.source("start", t); let n = t.identifierName, i = this._sourcePosition; n && (this._canMarkIdName = !1, i.identifierName = n), r(), n && (this._canMarkIdName = !0, i.identifierName = void 0, i.identifierNamePos = void 0), this.source("end", t); } source(t, r) { this._map && this._normalizePosition(t, r, 0); } sourceWithOffset(t, r, n) { this._map && this._normalizePosition(t, r, n); } _normalizePosition(t, r, n) { let i = r[t], a = this._sourcePosition; i && (a.line = i.line, a.column = Math.max(i.column + n, 0), a.filename = r.filename); } getCurrentColumn() { let t = this._queue, r = this._queueCursor, n = -1, i = 0; for (let a = 0; a < r; a++) { let o = t[a]; o.char === 10 && (n = i), i += o.repeat; } return n === -1 ? this._position.column + i : i - 1 - n; } getCurrentLine() { let t = 0, r = this._queue; for (let n = 0; n < this._queueCursor; n++) r[n].char === 10 && t++; return this._position.line + t; } }; Tu.default = Dm; }); // ../node_modules/@babel/generator/lib/node/whitespace.js var DS = T((Su) => { "use strict"; Object.defineProperty(Su, "__esModule", { value: !0 }); Su.nodes = void 0; var kJ = Pe(), { FLIPPED_ALIAS_KEYS: FJ, isArrayExpression: jJ, isAssignmentExpression: AS, isBinary: CS, isBlockStatement: LJ, isCallExpression: wS, isFunction: oo, isIdentifier: xu, isLiteral: MJ, isMemberExpression: Im, isObjectExpression: RJ, isOptionalCallExpression: qJ, isOptionalMemberExpression: UJ, isStringLiteral: VJ } = kJ; function Li(e, t) { return e && (Im(e) || UJ(e) ? (Li(e.object, t), e.computed && Li(e.property, t)) : CS(e) || AS(e) ? (Li(e.left, t), Li(e.right, t)) : wS( e) || qJ(e) ? (t.hasCall = !0, Li(e.callee, t)) : oo(e) ? t.hasFunction = !0 : xu(e) && (t.hasHelper = t.hasHelper || e.callee && _n(e.callee))), t; } s(Li, "crawlInternal"); function PS(e) { return Li(e, { hasCall: !1, hasFunction: !1, hasHelper: !1 }); } s(PS, "crawl"); function _n(e) { return e ? Im(e) ? _n(e.object) || _n(e.property) : xu(e) ? e.name === "require" || e.name.charCodeAt(0) === 95 : wS(e) ? _n(e.callee) : CS(e) || AS(e) ? xu(e.left) && _n(e.left) || _n(e.right) : !1 : !1; } s(_n, "isHelper"); function $J(e) { return MJ(e) || RJ(e) || jJ(e) || xu(e) || Im(e); } s($J, "isType"); var Gs = Su.nodes = { AssignmentExpression(e) { let t = PS(e.right); if (t.hasCall && t.hasHelper || t.hasFunction) return t.hasFunction ? 3 : 2; }, SwitchCase(e, t) { return (e.consequent.length || t.cases[0] === e ? 1 : 0) | (!e.consequent.length && t.cases[t.cases.length - 1] === e ? 2 : 0); }, LogicalExpression(e) { if (oo(e.left) || oo(e.right)) return 2; }, Literal(e) { if (VJ(e) && e.value === "use strict") return 2; }, CallExpression(e) { if (oo(e.callee) || _n(e)) return 3; }, OptionalCallExpression(e) { if (oo(e.callee)) return 3; }, VariableDeclaration(e) { for (let t = 0; t < e.declarations.length; t++) { let r = e.declarations[t], n = _n(r.id) && !$J(r.init); if (!n && r.init) { let i = PS(r.init); n = _n(r.init) && i.hasCall || i.hasFunction; } if (n) return 3; } }, IfStatement(e) { if (LJ(e.consequent)) return 3; } }; Gs.ObjectProperty = Gs.ObjectTypeProperty = Gs.ObjectMethod = function(e, t) { if (t.properties[0] === e) return 1; }; Gs.ObjectTypeCallProperty = function(e, t) { var r; if (t.callProperties[0] === e && !((r = t.properties) != null && r.length)) return 1; }; Gs.ObjectTypeIndexer = function(e, t) { var r, n; if (t.indexers[0] === e && !((r = t.properties) != null && r.length) && !((n = t.callProperties) != null && n.length)) return 1; }; Gs.ObjectTypeInternalSlot = function(e, t) { var r, n, i; if (t.internalSlots[0] === e && !((r = t.properties) != null && r.length) && !((n = t.callProperties) != null && n.length) && !((i = t.indexers) != null && i.length)) return 1; }; [["Function", !0], ["Class", !0], ["Loop", !0], ["LabeledStatement", !0], ["SwitchStatement", !0], ["TryStatement", !0]].forEach(function([ e, t]) { [e].concat(FJ[e] || []).forEach(function(r) { let n = t ? 3 : 0; Gs[r] = () => n; }); }); }); // ../node_modules/@babel/generator/lib/node/parentheses.js var kS = T((rt) => { "use strict"; Object.defineProperty(rt, "__esModule", { value: !0 }); rt.ArrowFunctionExpression = yX; rt.AssignmentExpression = bX; rt.Binary = NS; rt.BinaryExpression = fX; rt.ClassExpression = hX; rt.ConditionalExpression = Om; rt.DoExpression = sX; rt.FunctionExpression = mX; rt.FunctionTypeAnnotation = tX; rt.Identifier = vX; rt.LogicalExpression = EX; rt.NullableTypeAnnotation = eX; rt.ObjectExpression = nX; rt.OptionalIndexedAccessType = aX; rt.OptionalCallExpression = rt.OptionalMemberExpression = gX; rt.SequenceExpression = pX; rt.TSSatisfiesExpression = rt.TSAsExpression = oX; rt.TSInferType = uX; rt.TSInstantiationExpression = cX; rt.UnaryLike = rt.TSTypeAssertion = BS; rt.TSIntersectionType = rt.TSUnionType = lX; rt.IntersectionTypeAnnotation = rt.UnionTypeAnnotation = iX; rt.UpdateExpression = rX; rt.AwaitExpression = rt.YieldExpression = dX; var WJ = Pe(), Or = as(), { isArrayTypeAnnotation: KJ, isBinaryExpression: GJ, isCallExpression: HJ, isExportDeclaration: YJ, isForOfStatement: zJ, isIndexedAccessType: JJ, isMemberExpression: OS, isObjectPattern: XJ, isOptionalMemberExpression: QJ, isYieldExpression: ZJ } = WJ, IS = /* @__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 _S(e, t) { if (t === "BinaryExpression" || t === "LogicalExpression") return IS.get(e.operator); if (t === "TSAsExpression" || t === "TSSatisfiesExpression") return IS.get("in"); } s(_S, "getBinaryPrecedence"); function _m(e) { return e === "TSAsExpression" || e === "TSSatisfiesExpression" || e === "TSTypeAssertion"; } s(_m, "isTSTypeExpression"); var Pu = /* @__PURE__ */ s((e, t) => { let r = t.type; return (r === "ClassDeclaration" || r === "ClassExpression") && t.superClass === e; }, "isClassExtendsClause"), Au = /* @__PURE__ */ s((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 eX(e, t) { return KJ(t); } s(eX, "NullableTypeAnnotation"); function tX(e, t, r) { let n = t.type; return n === "UnionTypeAnnotation" || n === "IntersectionTypeAnnotation" || n === "ArrayTypeAnnotation" || !!(r & Or.TokenContext.arrowFlowReturnType); } s(tX, "FunctionTypeAnnotation"); function rX(e, t) { return Au(e, t) || Pu(e, t); } s(rX, "UpdateExpression"); function nX(e, t, r) { return !!(r & (Or.TokenContext.expressionStatement | Or.TokenContext.arrowBody)); } s(nX, "ObjectExpression"); function sX(e, t, r) { return !e.async && !!(r & Or.TokenContext.expressionStatement); } s(sX, "DoExpression"); function NS(e, t) { let r = t.type; if (e.type === "BinaryExpression" && e.operator === "**" && r === "BinaryExpression" && t.operator === "**") return t.left === e; if (Pu(e, t) || Au(e, t) || r === "UnaryExpression" || r === "SpreadElement" || r === "AwaitExpression") return !0; let n = _S(t, r); if (n != null) { let i = _S(e, e.type); if (n === i && r === "BinaryExpression" && t.right === e || n > i) return !0; } } s(NS, "Binary"); function iX(e, t) { let r = t.type; return r === "ArrayTypeAnnotation" || r === "NullableTypeAnnotation" || r === "IntersectionTypeAnnotation" || r === "UnionTypeAnnotation"; } s(iX, "UnionTypeAnnotation"); function aX(e, t) { return JJ(t) && t.objectType === e; } s(aX, "OptionalIndexedAccessType"); function oX(e, t) { return (t.type === "AssignmentExpression" || t.type === "AssignmentPattern") && t.left === e || t.type === "BinaryExpression" && (t.operator === "|" || t.operator === "&") && e === t.left ? !0 : NS(e, t); } s(oX, "TSAsExpression"); function lX(e, t) { let r = t.type; return r === "TSArrayType" || r === "TSOptionalType" || r === "TSIntersectionType" || r === "TSUnionType" || r === "TSRestType"; } s(lX, "TSUnionType"); function uX(e, t) { let r = t.type; return r === "TSArrayType" || r === "TSOptionalType"; } s(uX, "TSInferType"); function cX(e, t) { let r = t.type; return (r === "CallExpression" || r === "OptionalCallExpression" || r === "NewExpression" || r === "TSInstantiationExpression") && !!t.typeParameters; } s(cX, "TSInstantiationExpression"); function fX(e, t, r, n) { return e.operator === "in" && n; } s(fX, "BinaryExpression"); function pX(e, t) { let r = t.type; return !(r === "ForStatement" || r === "ThrowStatement" || r === "ReturnStatement" || r === "IfStatement" && t.test === e || r === "Whil\ eStatement" && t.test === e || r === "ForInStatement" && t.right === e || r === "SwitchStatement" && t.discriminant === e || r === "Expressi\ onStatement" && t.expression === e); } s(pX, "SequenceExpression"); function dX(e, t) { let r = t.type; return r === "BinaryExpression" || r === "LogicalExpression" || r === "UnaryExpression" || r === "SpreadElement" || Au(e, t) || r === "A\ waitExpression" && ZJ(e) || r === "ConditionalExpression" && e === t.test || Pu(e, t) || _m(r); } s(dX, "YieldExpression"); function hX(e, t, r) { return !!(r & (Or.TokenContext.expressionStatement | Or.TokenContext.exportDefault)); } s(hX, "ClassExpression"); function BS(e, t) { return Au(e, t) || GJ(t) && t.operator === "**" && t.left === e || Pu(e, t); } s(BS, "UnaryLike"); function mX(e, t, r) { return !!(r & (Or.TokenContext.expressionStatement | Or.TokenContext.exportDefault)); } s(mX, "FunctionExpression"); function yX(e, t) { return YJ(t) || Om(e, t); } s(yX, "ArrowFunctionExpression"); function Om(e, t) { let r = t.type; return r === "UnaryExpression" || r === "SpreadElement" || r === "BinaryExpression" || r === "LogicalExpression" || r === "ConditionalEx\ pression" && t.test === e || r === "AwaitExpression" || _m(r) ? !0 : BS(e, t); } s(Om, "ConditionalExpression"); function gX(e, t) { return HJ(t) && t.callee === e || OS(t) && t.object === e; } s(gX, "OptionalMemberExpression"); function bX(e, t) { return XJ(e.left) ? !0 : Om(e, t); } s(bX, "AssignmentExpression"); function EX(e, t) { let r = t.type; if (_m(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 !== "??"; } } s(EX, "LogicalExpression"); function vX(e, t, r) { var n; let i = t.type; if ((n = e.extra) != null && n.parenthesized && i === "AssignmentExpression" && t.left === e) { let a = t.right.type; if ((a === "FunctionExpression" || a === "ClassExpression") && t.right.id == null) return !0; } return e.name === "let" ? (OS(t, { object: e, computed: !0 }) || QJ(t, { object: e, computed: !0, optional: !1 })) && r & (Or.TokenContext.expressionStatement | Or.TokenContext.forHead | Or.TokenContext.forInHead) ? !0 : !!(r & Or.TokenContext.forOfHead) : e.name === "async" && zJ(t, { left: e, await: !1 }); } s(vX, "Identifier"); }); // ../node_modules/@babel/generator/lib/node/index.js var as = T((os) => { "use strict"; Object.defineProperty(os, "__esModule", { value: !0 }); os.TokenContext = void 0; os.needsParens = kX; os.needsWhitespace = Bm; os.needsWhitespaceAfter = BX; os.needsWhitespaceBefore = NX; var TX = DS(), xX = kS(), SX = Pe(), { FLIPPED_ALIAS_KEYS: PX, isCallExpression: FS, isDecorator: AX, isExpressionStatement: CX, isMemberExpression: wX, isNewExpression: DX, isParenthesizedExpression: IX } = SX, AAe = os.TokenContext = { expressionStatement: 1, arrowBody: 2, exportDefault: 4, forHead: 8, forInHead: 16, forOfHead: 32, arrowFlowReturnType: 64 }; function jS(e) { let t = /* @__PURE__ */ new Map(); function r(n, i) { let a = t.get(n); t.set(n, a ? function(o, l, u, c) { var f; return (f = a(o, l, u, c)) != null ? f : i(o, l, u, c); } : i); } s(r, "add"); for (let n of Object.keys(e)) { let i = PX[n]; if (i) for (let a of i) r(a, e[n]); else r(n, e[n]); } return t; } s(jS, "expandAliases"); var _X = jS(xX), OX = jS(TX.nodes); function LS(e) { return FS(e) ? !0 : wX(e) && LS(e.object); } s(LS, "isOrHasCallExpression"); function Bm(e, t, r) { var n; if (!e) return !1; CX(e) && (e = e.expression); let i = (n = OX.get(e.type)) == null ? void 0 : n(e, t); return typeof i == "number" ? (i & r) !== 0 : !1; } s(Bm, "needsWhitespace"); function NX(e, t) { return Bm(e, t, 1); } s(NX, "needsWhitespaceBefore"); function BX(e, t) { return Bm(e, t, 2); } s(BX, "needsWhitespaceAfter"); function kX(e, t, r, n) { var i; return t ? DX(t) && t.callee === e && LS(e) ? !0 : AX(t) ? !Nm(e) && !(FS(e) && Nm(e.callee)) && !IX(e) : (i = _X.get(e.type)) == null ? void 0 : i(e, t, r, n) : !1; } s(kX, "needsParens"); function Nm(e) { switch (e.type) { case "Identifier": return !0; case "MemberExpression": return !e.computed && e.property.type === "Identifier" && Nm(e.object); default: return !1; } } s(Nm, "isDecoratorMemberExpression"); }); // ../node_modules/@babel/generator/lib/generators/template-literals.js var MS = T((lo) => { "use strict"; Object.defineProperty(lo, "__esModule", { value: !0 }); lo.TaggedTemplateExpression = FX; lo.TemplateElement = jX; lo.TemplateLiteral = LX; function FX(e) { this.print(e.tag, e), this.print(e.typeParameters, e), this.print(e.quasi, e); } s(FX, "TaggedTemplateExpression"); function jX() { throw new Error("TemplateElement printing is handled in TemplateLiteral"); } s(jX, "TemplateElement"); function LX(e) { let t = e.quasis, r = "`"; for (let n = 0; n < t.length; n++) r += t[n].value.raw, n + 1 < t.length && (this.token(r + "${", !0), this.print(e.expressions[n], e), r = "}"); this.token(r + "`", !0); } s(LX, "TemplateLiteral"); }); // ../node_modules/@babel/generator/lib/generators/expressions.js var qS = T((it) => { "use strict"; Object.defineProperty(it, "__esModule", { value: !0 }); it.LogicalExpression = it.BinaryExpression = it.AssignmentExpression = lQ; it.AssignmentPattern = oQ; it.AwaitExpression = nQ; it.BindExpression = uQ; it.CallExpression = tQ; it.ConditionalExpression = GX; it.Decorator = QX; it.DoExpression = $X; it.EmptyStatement = iQ; it.ExpressionStatement = aQ; it.Import = rQ; it.MemberExpression = cQ; it.MetaProperty = fQ; it.ModuleExpression = hQ; it.NewExpression = HX; it.OptionalCallExpression = eQ; it.OptionalMemberExpression = ZX; it.ParenthesizedExpression = WX; it.PrivateName = pQ; it.SequenceExpression = YX; it.Super = JX; it.ThisExpression = zX; it.UnaryExpression = VX; it.UpdateExpression = KX; it.V8IntrinsicIdentifier = dQ; it.YieldExpression = sQ; it._shouldPrintDecoratorsBeforeExport = XX; var MX = Pe(), RX = as(), { isCallExpression: qX, isLiteral: RS, isMemberExpression: km, isNewExpression: UX } = MX; function VX(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, e); } s(VX, "UnaryExpression"); function $X(e) { e.async && (this.word("async", !0), this.space()), this.word("do"), this.space(), this.print(e.body, e); } s($X, "DoExpression"); function WX(e) { this.tokenChar(40), this.print(e.expression, e), this.rightParens(e); } s(WX, "ParenthesizedExpression"); function KX(e) { e.prefix ? (this.token(e.operator), this.print(e.argument, e)) : (this.printTerminatorless(e.argument, e, !0), this.token(e.operator)); } s(KX, "UpdateExpression"); function GX(e) { this.print(e.test, e), this.space(), this.tokenChar(63), this.space(), this.print(e.consequent, e), this.space(), this.tokenChar(58), this. space(), this.print(e.alternate, e); } s(GX, "ConditionalExpression"); function HX(e, t) { if (this.word("new"), this.space(), this.print(e.callee, e), this.format.minified && e.arguments.length === 0 && !e.optional && !qX(t, { callee: e }) && !km(t) && !UX(t)) return; this.print(e.typeArguments, e), this.print(e.typeParameters, e), e.optional && this.token("?."), this.tokenChar(40); let r = this.enterForStatementInit(!1); this.printList(e.arguments, e), r(), this.rightParens(e); } s(HX, "NewExpression"); function YX(e) { this.printList(e.expressions, e); } s(YX, "SequenceExpression"); function zX() { this.word("this"); } s(zX, "ThisExpression"); function JX() { this.word("super"); } s(JX, "Super"); function XX(e) { return typeof this.format.decoratorsBeforeExport == "boolean" ? this.format.decoratorsBeforeExport : typeof e.start == "number" && e.start === e.declaration.start; } s(XX, "_shouldPrintDecoratorsBeforeExport"); function QX(e) { this.tokenChar(64), this.print(e.expression, e), this.newline(); } s(QX, "Decorator"); function ZX(e) { let { computed: t } = e, { optional: r, property: n } = e; if (this.print(e.object, e), !t && km(n)) throw new TypeError("Got a MemberExpression for MemberExpression property"); RS(n) && typeof n.value == "number" && (t = !0), r && this.token("?."), t ? (this.tokenChar(91), this.print(n, e), this.tokenChar(93)) : (r || this.tokenChar(46), this.print(n, e)); } s(ZX, "OptionalMemberExpression"); function eQ(e) { this.print(e.callee, e), this.print(e.typeParameters, e), e.optional && this.token("?."), this.print(e.typeArguments, e), this.tokenChar( 40); let t = this.enterForStatementInit(!1); this.printList(e.arguments, e), t(), this.rightParens(e); } s(eQ, "OptionalCallExpression"); function tQ(e) { this.print(e.callee, e), this.print(e.typeArguments, e), this.print(e.typeParameters, e), this.tokenChar(40); let t = this.enterForStatementInit(!1); this.printList(e.arguments, e), t(), this.rightParens(e); } s(tQ, "CallExpression"); function rQ() { this.word("import"); } s(rQ, "Import"); function nQ(e) { this.word("await"), e.argument && (this.space(), this.printTerminatorless(e.argument, e, !1)); } s(nQ, "AwaitExpression"); function sQ(e) { this.word("yield", !0), e.delegate ? (this.tokenChar(42), e.argument && (this.space(), this.print(e.argument, e))) : e.argument && (this. space(), this.printTerminatorless(e.argument, e, !1)); } s(sQ, "YieldExpression"); function iQ() { this.semicolon(!0); } s(iQ, "EmptyStatement"); function aQ(e) { this.tokenContext |= RX.TokenContext.expressionStatement, this.print(e.expression, e), this.semicolon(); } s(aQ, "ExpressionStatement"); function oQ(e) { this.print(e.left, e), e.left.type === "Identifier" && (e.left.optional && this.tokenChar(63), this.print(e.left.typeAnnotation, e)), this. space(), this.tokenChar(61), this.space(), this.print(e.right, e); } s(oQ, "AssignmentPattern"); function lQ(e) { this.print(e.left, e), this.space(), e.operator === "in" || e.operator === "instanceof" ? this.word(e.operator) : this.token(e.operator), this.space(), this.print(e.right, e); } s(lQ, "AssignmentExpression"); function uQ(e) { this.print(e.object, e), this.token("::"), this.print(e.callee, e); } s(uQ, "BindExpression"); function cQ(e) { if (this.print(e.object, e), !e.computed && km(e.property)) throw new TypeError("Got a MemberExpression for MemberExpression property"); let t = e.computed; if (RS(e.property) && typeof e.property.value == "number" && (t = !0), t) { let r = this.enterForStatementInit(!1); this.tokenChar(91), this.print(e.property, e), this.tokenChar(93), r(); } else this.tokenChar(46), this.print(e.property, e); } s(cQ, "MemberExpression"); function fQ(e) { this.print(e.meta, e), this.tokenChar(46), this.print(e.property, e); } s(fQ, "MetaProperty"); function pQ(e) { this.tokenChar(35), this.print(e.id, e); } s(pQ, "PrivateName"); function dQ(e) { this.tokenChar(37), this.word(e.name); } s(dQ, "V8IntrinsicIdentifier"); function hQ(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, e), this.dedent(), this.rightBrace(e); } s(hQ, "ModuleExpression"); }); // ../node_modules/@babel/generator/lib/generators/statements.js var WS = T((gt) => { "use strict"; Object.defineProperty(gt, "__esModule", { value: !0 }); gt.BreakStatement = PQ; gt.CatchClause = _Q; gt.ContinueStatement = AQ; gt.DebuggerStatement = BQ; gt.DoWhileStatement = SQ; gt.ForOfStatement = gt.ForInStatement = void 0; gt.ForStatement = TQ; gt.IfStatement = vQ; gt.LabeledStatement = DQ; gt.ReturnStatement = CQ; gt.SwitchCase = NQ; gt.SwitchStatement = OQ; gt.ThrowStatement = wQ; gt.TryStatement = IQ; gt.VariableDeclaration = kQ; gt.VariableDeclarator = FQ; gt.WhileStatement = xQ; gt.WithStatement = EQ; var mQ = Pe(), Fm = as(), { isFor: US, isForStatement: yQ, isIfStatement: gQ, isStatement: bQ } = mQ; function EQ(e) { this.word("with"), this.space(), this.tokenChar(40), this.print(e.object, e), this.tokenChar(41), this.printBlock(e); } s(EQ, "WithStatement"); function vQ(e) { this.word("if"), this.space(), this.tokenChar(40), this.print(e.test, e), this.tokenChar(41), this.space(); let t = e.alternate && gQ(VS(e.consequent)); t && (this.tokenChar(123), this.newline(), this.indent()), this.printAndIndentOnComments(e.consequent, e), t && (this.dedent(), this.newline(), this.tokenChar(125)), e.alternate && (this.endsWith(125) && this.space(), this.word("else"), this.space(), this.printAndIndentOnComments( e.alternate, e)); } s(vQ, "IfStatement"); function VS(e) { let { body: t } = e; return bQ(t) === !1 ? e : VS(t); } s(VS, "getLastStatement"); function TQ(e) { this.word("for"), this.space(), this.tokenChar(40); { let t = this.enterForStatementInit(!0); this.tokenContext |= Fm.TokenContext.forHead, this.print(e.init, e), t(); } this.tokenChar(59), e.test && (this.space(), this.print(e.test, e)), this.tokenChar(59), e.update && (this.space(), this.print(e.update, e)), this.tokenChar(41), this.printBlock(e); } s(TQ, "ForStatement"); function xQ(e) { this.word("while"), this.space(), this.tokenChar(40), this.print(e.test, e), this.tokenChar(41), this.printBlock(e); } s(xQ, "WhileStatement"); function $S(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 = t ? null : this.enterForStatementInit(!0); this.tokenContext |= t ? Fm.TokenContext.forOfHead : Fm.TokenContext.forInHead, this.print(e.left, e), r?.(); } this.space(), this.word(t ? "of" : "in"), this.space(), this.print(e.right, e), this.tokenChar(41), this.printBlock(e); } s($S, "ForXStatement"); var NAe = gt.ForInStatement = $S, BAe = gt.ForOfStatement = $S; function SQ(e) { this.word("do"), this.space(), this.print(e.body, e), this.space(), this.word("while"), this.space(), this.tokenChar(40), this.print(e.test, e), this.tokenChar(41), this.semicolon(); } s(SQ, "DoWhileStatement"); function Cu(e, t, r, n) { t && (e.space(), e.printTerminatorless(t, r, n)), e.semicolon(); } s(Cu, "printStatementAfterKeyword"); function PQ(e) { this.word("break"), Cu(this, e.label, e, !0); } s(PQ, "BreakStatement"); function AQ(e) { this.word("continue"), Cu(this, e.label, e, !0); } s(AQ, "ContinueStatement"); function CQ(e) { this.word("return"), Cu(this, e.argument, e, !1); } s(CQ, "ReturnStatement"); function wQ(e) { this.word("throw"), Cu(this, e.argument, e, !1); } s(wQ, "ThrowStatement"); function DQ(e) { this.print(e.label, e), this.tokenChar(58), this.space(), this.print(e.body, e); } s(DQ, "LabeledStatement"); function IQ(e) { this.word("try"), this.space(), this.print(e.block, e), this.space(), e.handlers ? this.print(e.handlers[0], e) : this.print(e.handler, e), e.finalizer && (this.space(), this.word("finally"), this.space(), this.print(e.finalizer, e)); } s(IQ, "TryStatement"); function _Q(e) { this.word("catch"), this.space(), e.param && (this.tokenChar(40), this.print(e.param, e), this.print(e.param.typeAnnotation, e), this.tokenChar( 41), this.space()), this.print(e.body, e); } s(_Q, "CatchClause"); function OQ(e) { this.word("switch"), this.space(), this.tokenChar(40), this.print(e.discriminant, e), this.tokenChar(41), this.space(), this.tokenChar(123), this.printSequence(e.cases, e, { indent: !0, addNewlines(t, r) { if (!t && e.cases[e.cases.length - 1] === r) return -1; } }), this.rightBrace(e); } s(OQ, "SwitchStatement"); function NQ(e) { e.test ? (this.word("case"), this.space(), this.print(e.test, e), this.tokenChar(58)) : (this.word("default"), this.tokenChar(58)), e.consequent. length && (this.newline(), this.printSequence(e.consequent, e, { indent: !0 })); } s(NQ, "SwitchCase"); function BQ() { this.word("debugger"), this.semicolon(); } s(BQ, "DebuggerStatement"); function kQ(e, t) { e.declare && (this.word("declare"), this.space()); let { kind: r } = e; r === "await using" ? (this.word("await"), this.space(), this.word("using", !0)) : this.word(r, r === "using"), this.space(); let n = !1; if (!US(t)) for (let i of e.declarations) i.init && (n = !0); if (this.printList(e.declarations, e, { separator: n ? function() { this.tokenChar(44), this.newline(); } : void 0, indent: e.declarations.length > 1 }), US(t)) { if (yQ(t)) { if (t.init === e) return; } else if (t.left === e) return; } this.semicolon(); } s(kQ, "VariableDeclaration"); function FQ(e) { this.print(e.id, e), e.definite && this.tokenChar(33), this.print(e.id.typeAnnotation, e), e.init && (this.space(), this.tokenChar(61), this. space(), this.print(e.init, e)); } s(FQ, "VariableDeclarator"); }); // ../node_modules/@babel/generator/lib/generators/classes.js var KS = T((Nr) => { "use strict"; Object.defineProperty(Nr, "__esModule", { value: !0 }); Nr.ClassAccessorProperty = VQ; Nr.ClassBody = qQ; Nr.ClassExpression = Nr.ClassDeclaration = RQ; Nr.ClassMethod = WQ; Nr.ClassPrivateMethod = KQ; Nr.ClassPrivateProperty = $Q; Nr.ClassProperty = UQ; Nr.StaticBlock = HQ; Nr._classMethodHead = GQ; var jQ = Pe(), { isExportDefaultDeclaration: LQ, isExportNamedDeclaration: MQ } = jQ; function RQ(e, t) { (!(LQ(t) || MQ(t)) || !this._shouldPrintDecoratorsBeforeExport(t)) && this.printJoin(e.decorators, e), 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, e)), this. print(e.typeParameters, e), e.superClass && (this.space(), this.word("extends"), this.space(), this.print(e.superClass, e), this.print(e. superTypeParameters, e)), e.implements && (this.space(), this.word("implements"), this.space(), this.printList(e.implements, e)), this.space(), this.print(e.body, e); } s(RQ, "ClassDeclaration"); function qQ(e) { if (this.tokenChar(123), e.body.length === 0) this.tokenChar(125); else { this.newline(); let t = this.enterForStatementInit(!1); this.printSequence(e.body, e, { indent: !0 }), t(), this.endsWith(10) || this.newline(), this.rightBrace(e); } } s(qQ, "ClassBody"); function UQ(e) { var t; this.printJoin(e.decorators, e); 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, e), this.tokenChar(93)) : (this._variance(e), this.print(e.key, e)), e.optional && this.tokenChar(63), e.definite && this.tokenChar(33), this.print(e.typeAnnotation, e), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value, e)), this.semicolon(); } s(UQ, "ClassProperty"); function VQ(e) { var t; this.printJoin(e.decorators, e); 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, e), this.tokenChar(93)) : (this._variance(e), this.print(e.key, e)), e.optional && this.tokenChar(63), e.definite && this.tokenChar( 33), this.print(e.typeAnnotation, e), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value, e)), this.semicolon(); } s(VQ, "ClassAccessorProperty"); function $Q(e) { this.printJoin(e.decorators, e), e.static && (this.word("static"), this.space()), this.print(e.key, e), this.print(e.typeAnnotation, e), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value, e)), this.semicolon(); } s($Q, "ClassPrivateProperty"); function WQ(e) { this._classMethodHead(e), this.space(), this.print(e.body, e); } s(WQ, "ClassMethod"); function KQ(e) { this._classMethodHead(e), this.space(), this.print(e.body, e); } s(KQ, "ClassPrivateMethod"); function GQ(e) { var t; this.printJoin(e.decorators, e); 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); } s(GQ, "_classMethodHead"); function HQ(e) { this.word("static"), this.space(), this.tokenChar(123), e.body.length === 0 ? this.tokenChar(125) : (this.newline(), this.printSequence( e.body, e, { indent: !0 }), this.rightBrace(e)); } s(HQ, "StaticBlock"); }); // ../node_modules/@babel/generator/lib/generators/methods.js var GS = T((Gr) => { "use strict"; Object.defineProperty(Gr, "__esModule", { value: !0 }); Gr.ArrowFunctionExpression = sZ; Gr.FunctionDeclaration = Gr.FunctionExpression = nZ; Gr._functionHead = rZ; Gr._methodHead = eZ; Gr._param = ZQ; Gr._parameters = QQ; Gr._params = XQ; Gr._predicate = tZ; var YQ = Pe(), zQ = as(), { isIdentifier: JQ } = YQ; function XQ(e, t, r) { this.print(e.typeParameters, e); let n = aZ.call(this, t, r); n && this.sourceIdentifierName(n.name, n.pos), this.tokenChar(40), this._parameters(e.params, e), this.tokenChar(41); let i = e.type === "ArrowFunctionExpression"; this.print(e.returnType, e, i), this._noLineTerminator = i; } s(XQ, "_params"); function QQ(e, t) { let r = this.enterForStatementInit(!1), n = e.length; for (let i = 0; i < n; i++) this._param(e[i], t), i < e.length - 1 && (this.tokenChar(44), this.space()); r(); } s(QQ, "_parameters"); function ZQ(e, t) { this.printJoin(e.decorators, e), this.print(e, t), e.optional && this.tokenChar(63), this.print(e.typeAnnotation, e); } s(ZQ, "_param"); function eZ(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, e), this.tokenChar(93)) : this.print(r, e), e.optional && this.tokenChar(63), this._params(e, e.computed && e.key.type !== "StringLiteral" ? void 0 : e.key, void 0); } s(eZ, "_methodHead"); function tZ(e, t) { e.predicate && (e.returnType || this.tokenChar(58), this.space(), this.print(e.predicate, e, t)); } s(tZ, "_predicate"); function rZ(e, t) { e.async && (this.word("async"), this._endsWithInnerRaw = !1, this.space()), this.word("function"), e.generator && (this._endsWithInnerRaw = !1, this.tokenChar(42)), this.space(), e.id && this.print(e.id, e), this._params(e, e.id, t), e.type !== "TSDeclareFunction" && this._predicate( e); } s(rZ, "_functionHead"); function nZ(e, t) { this._functionHead(e, t), this.space(), this.print(e.body, e); } s(nZ, "FunctionExpression"); function sZ(e, t) { e.async && (this.word("async", !0), this.space()); let r; !this.format.retainLines && e.params.length === 1 && JQ(r = e.params[0]) && !iZ(e, r) ? this.print(r, e, !0) : this._params(e, void 0, t), this._predicate(e, !0), this.space(), this.printInnerComments(), this.token("=>"), this.space(), this.tokenContext |= zQ.TokenContext.arrowBody, this.print(e.body, e); } s(sZ, "ArrowFunctionExpression"); function iZ(e, t) { var r, n; return !!(e.typeParameters || e.returnType || e.predicate || t.typeAnnotation || t.optional || (r = t.leadingComments) != null && r.length || (n = t.trailingComments) != null && n.length); } s(iZ, "hasTypesOrComments"); function aZ(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 n; if (r.type === "Identifier") { var i, a; n = { pos: (i = r.loc) == null ? void 0 : i.start, name: ((a = r.loc) == null ? void 0 : a.identifierName) || r.name }; } else if (r.type === "PrivateName") { var o; n = { pos: (o = r.loc) == null ? void 0 : o.start, name: "#" + r.id.name }; } else if (r.type === "StringLiteral") { var l; n = { pos: (l = r.loc) == null ? void 0 : l.start, name: r.value }; } return n; } s(aZ, "_getFuncIdName"); }); // ../node_modules/@babel/generator/lib/generators/modules.js var jm = T((lr) => { "use strict"; Object.defineProperty(lr, "__esModule", { value: !0 }); lr.ExportAllDeclaration = vZ; lr.ExportDefaultDeclaration = xZ; lr.ExportDefaultSpecifier = yZ; lr.ExportNamedDeclaration = TZ; lr.ExportNamespaceSpecifier = bZ; lr.ExportSpecifier = gZ; lr.ImportAttribute = PZ; lr.ImportDeclaration = SZ; lr.ImportDefaultSpecifier = mZ; lr.ImportExpression = CZ; lr.ImportNamespaceSpecifier = AZ; lr.ImportSpecifier = hZ; lr._printAttributes = EZ; var oZ = Pe(), lZ = as(), { isClassDeclaration: uZ, isExportDefaultSpecifier: cZ, isExportNamespaceSpecifier: fZ, isImportDefaultSpecifier: pZ, isImportNamespaceSpecifier: dZ, isStatement: YS } = oZ; function hZ(e) { (e.importKind === "type" || e.importKind === "typeof") && (this.word(e.importKind), this.space()), this.print(e.imported, e), e.local && e.local.name !== e.imported.name && (this.space(), this.word("as"), this.space(), this.print(e.local, e)); } s(hZ, "ImportSpecifier"); function mZ(e) { this.print(e.local, e); } s(mZ, "ImportDefaultSpecifier"); function yZ(e) { this.print(e.exported, e); } s(yZ, "ExportDefaultSpecifier"); function gZ(e) { e.exportKind === "type" && (this.word("type"), this.space()), this.print(e.local, e), e.exported && e.local.name !== e.exported.name && (this. space(), this.word("as"), this.space(), this.print(e.exported, e)); } s(gZ, "ExportSpecifier"); function bZ(e) { this.tokenChar(42), this.space(), this.word("as"), this.space(), this.print(e.exported, e); } s(bZ, "ExportNamespaceSpecifier"); var HS = !1; function EZ(e) { let { importAttributesKeyword: t } = this.format, { attributes: r, assertions: n } = e; r && !t && !HS && (HS = !0, console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify \ the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\ \n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n')); let i = t === "assert" || !t && n; if (this.word(i ? "assert" : "with"), this.space(), !i && t !== "with") { this.printList(r || n, e); return; } this.tokenChar(123), this.space(), this.printList(r || n, e), this.space(), this.tokenChar(125); } s(EZ, "_printAttributes"); function vZ(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, e, !0), this.space(), this._printAttributes(e)) : this.print(e.source, e), this.semicolon(); } s(vZ, "ExportAllDeclaration"); function zS(e, t) { uZ(t.declaration) && e._shouldPrintDecoratorsBeforeExport(t) && e.printJoin(t.declaration.decorators, t); } s(zS, "maybePrintDecoratorsBeforeExport"); function TZ(e) { if (zS(this, e), this.word("export"), this.space(), e.declaration) { let n = e.declaration; this.print(n, e), YS(n) || this.semicolon(); } else { e.exportKind === "type" && (this.word("type"), this.space()); let n = e.specifiers.slice(0), i = !1; for (; ; ) { let a = n[0]; if (cZ(a) || fZ(a)) i = !0, this.print(n.shift(), e), n.length && (this.tokenChar(44), this.space()); else break; } if ((n.length || !n.length && !i) && (this.tokenChar(123), n.length && (this.space(), this.printList(n, e), 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, e, !0), this.space(), this._printAttributes(e)) : this.print(e.source, e); } this.semicolon(); } } s(TZ, "ExportNamedDeclaration"); function xZ(e) { zS(this, e), this.word("export"), this.noIndentInnerCommentsHere(), this.space(), this.word("default"), this.space(), this.tokenContext |= lZ.TokenContext.exportDefault; let t = e.declaration; this.print(t, e), YS(t) || this.semicolon(); } s(xZ, "ExportDefaultDeclaration"); function SZ(e) { var t, r; this.word("import"), this.space(); let n = e.importKind === "type" || e.importKind === "typeof"; n ? (this.noIndentInnerCommentsHere(), this.word(e.importKind), this.space()) : e.module ? (this.noIndentInnerCommentsHere(), this.word( "module"), this.space()) : e.phase && (this.noIndentInnerCommentsHere(), this.word(e.phase), this.space()); let i = e.specifiers.slice(0), a = !!i.length; for (; a; ) { let o = i[0]; if (pZ(o) || dZ(o)) this.print(i.shift(), e), i.length && (this.tokenChar(44), this.space()); else break; } i.length ? (this.tokenChar(123), this.space(), this.printList(i, e), this.space(), this.tokenChar(125)) : n && !a && (this.tokenChar(123), this.tokenChar(125)), (a || n) && (this.space(), this.word("from"), this.space()), (t = e.attributes) != null && t.length || (r = e.assertions) != null && r.length ? (this.print(e.source, e, !0), this.space(), this._printAttributes(e)) : this.print(e.source, e), this.semicolon(); } s(SZ, "ImportDeclaration"); function PZ(e) { this.print(e.key), this.tokenChar(58), this.space(), this.print(e.value); } s(PZ, "ImportAttribute"); function AZ(e) { this.tokenChar(42), this.space(), this.word("as"), this.space(), this.print(e.local, e); } s(AZ, "ImportNamespaceSpecifier"); function CZ(e) { this.word("import"), e.phase && (this.tokenChar(46), this.word(e.phase)), this.tokenChar(40), this.print(e.source, e), e.options != null && (this.tokenChar(44), this.space(), this.print(e.options, e)), this.tokenChar(41); } s(CZ, "ImportExpression"); }); // ../node_modules/jsesc/jsesc.js var ZS = T((VAe, QS) => { "use strict"; var JS = {}, wZ = JS.hasOwnProperty, XS = /* @__PURE__ */ s((e, t) => { for (let r in e) wZ.call(e, r) && t(r, e[r]); }, "forOwn"), DZ = /* @__PURE__ */ s((e, t) => (t && XS(t, (r, n) => { e[r] = n; }), e), "extend"), IZ = /* @__PURE__ */ s((e, t) => { let r = e.length, n = -1; for (; ++n < r; ) t(e[n]); }, "forEach"), uo = JS.toString, _Z = Array.isArray, OZ = Buffer.isBuffer, NZ = /* @__PURE__ */ s((e) => uo.call(e) == "[object Object]", "\ isObject"), BZ = /* @__PURE__ */ s((e) => typeof e == "string" || uo.call(e) == "[object String]", "isString"), kZ = /* @__PURE__ */ s((e) => typeof e == "number" || uo.call(e) == "[object Number]", "isNumber"), FZ = /* @__PURE__ */ s((e) => typeof e == "function", "isFunction"), jZ = /* @__PURE__ */ s( (e) => uo.call(e) == "[object Map]", "isMap"), LZ = /* @__PURE__ */ s((e) => uo.call(e) == "[object Set]", "isSet"), MZ = { '"': '\\"', "'": "\\'", "\\": "\\\\", "\b": "\\b", "\f": "\\f", "\n": "\\n", "\r": "\\r", " ": "\\t" // `\v` is omitted intentionally, because in IE < 9, '\v' == 'v'. // '\v': '\\x0B' }, RZ = /["'\\\b\f\n\r\t]/, qZ = /[0-9]/, UZ = /[ !#-&\(-\[\]-_a-~]/, ls = /* @__PURE__ */ s((e, t) => { let r = /* @__PURE__ */ s(() => { c = u, ++t.indentLevel, u = t.indent.repeat(t.indentLevel); }, "increaseIndentation"), n = { escapeEverything: !1, minimal: !1, isScriptContext: !1, quotes: "single", wrap: !1, es6: !1, json: !1, compact: !0, lowercaseHex: !1, numbers: "decimal", indent: " ", indentLevel: 0, __inline1__: !1, __inline2__: !1 }, i = t && t.json; i && (n.quotes = "double", n.wrap = !0), t = DZ(n, 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 = "", f = t.__inline1__, p = t.__inline2__, h = o ? "" : ` `, y, v = !0, d = t.numbers == "binary", b = t.numbers == "octal", E = t.numbers == "decimal", I = t.numbers == "hexadecimal"; if (i && e && FZ(e.toJSON) && (e = e.toJSON()), !BZ(e)) { if (jZ(e)) return e.size == 0 ? "new Map()" : (o || (t.__inline1__ = !0, t.__inline2__ = !1), "new Map(" + ls(Array.from(e), t) + ")"); if (LZ(e)) return e.size == 0 ? "new Set()" : "new Set(" + ls(Array.from(e), t) + ")"; if (OZ(e)) return e.length == 0 ? "Buffer.from([])" : "Buffer.from(" + ls(Array.from(e), t) + ")"; if (_Z(e)) return y = [], t.wrap = !0, f && (t.__inline1__ = !1, t.__inline2__ = !0), p || r(), IZ(e, (R) => { v = !1, p && (t.__inline2__ = !1), y.push( (o || p ? "" : u) + ls(R, t) ); }), v ? "[]" : p ? "[" + y.join(", ") + "]" : "[" + h + y.join("," + h) + h + (o ? "" : c) + "]"; if (kZ(e)) { if (i) return JSON.stringify(e); if (E) return String(e); if (I) { let R = e.toString(16); return l || (R = R.toUpperCase()), "0x" + R; } if (d) return "0b" + e.toString(2); if (b) return "0o" + e.toString(8); } else return NZ(e) ? (y = [], t.wrap = !0, r(), XS(e, (R, U) => { v = !1, y.push( (o ? "" : u) + ls(R, t) + ":" + (o ? "" : " ") + ls(U, t) ); }), v ? "{}" : "{" + h + y.join("," + h) + h + (o ? "" : c) + "}") : i ? JSON.stringify(e) || "null" : String(e); } let O = e, k = -1, j = O.length; for (y = ""; ++k < j; ) { let R = O.charAt(k); if (t.es6) { let M = O.charCodeAt(k); if ( // check if it’s the start of a surrogate pair M >= 55296 && M <= 56319 && // high surrogate j > k + 1 ) { let K = O.charCodeAt(k + 1); if (K >= 56320 && K <= 57343) { let ae = ((M - 55296) * 1024 + K - 56320 + 65536).toString(16); l || (ae = ae.toUpperCase()), y += "\\u{" + ae + "}", ++k; continue; } } } if (!t.escapeEverything) { if (UZ.test(R)) { y += R; continue; } if (R == '"') { y += a == R ? '\\"' : R; continue; } if (R == "`") { y += a == R ? "\\`" : R; continue; } if (R == "'") { y += a == R ? "\\'" : R; continue; } } if (R == "\0" && !i && !qZ.test(O.charAt(k + 1))) { y += "\\0"; continue; } if (RZ.test(R)) { y += MZ[R]; continue; } let U = R.charCodeAt(0); if (t.minimal && U != 8232 && U != 8233) { y += R; continue; } let Q = U.toString(16); l || (Q = Q.toUpperCase()); let W = Q.length > 2 || i, q = "\\" + (W ? "u" : "x") + ("0000" + Q).slice(W ? -4 : -2); y += q; } return t.wrap && (y = a + y + a), a == "`" && (y = y.replace(/\$\{/g, "\\${")), t.isScriptContext ? y.replace(/<\/(script|style)/gi, "<\\\ /$1").replace(/