Files
hive/frontend/node_modules/storybook/dist/babel/index.js
anthonyrawlins e89f2f4b7b Add comprehensive development roadmap via GitHub Issues
Created 10 detailed GitHub issues covering:
- Project activation and management UI (#1-2)
- Worker node coordination and visualization (#3-4)
- Automated GitHub repository scanning (#5)
- Intelligent model-to-issue matching (#6)
- Multi-model task execution system (#7)
- N8N workflow integration (#8)
- Hive-Bzzz P2P bridge (#9)
- Peer assistance protocol (#10)

Each issue includes detailed specifications, acceptance criteria,
technical implementation notes, and dependency mapping.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-12 19:41:01 +10:00

54137 lines
1.8 MiB

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 hO = Object.create;
var Kp = Object.defineProperty;
var mO = Object.getOwnPropertyDescriptor;
var yO = Object.getOwnPropertyNames;
var gO = Object.getPrototypeOf, bO = Object.prototype.hasOwnProperty;
var i = (e, t) => Kp(e, "name", { value: t, configurable: !0 }), ce = /* @__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 P = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
var EO = (e, t, r, n) => {
if (t && typeof t == "object" || typeof t == "function")
for (let s of yO(t))
!bO.call(e, s) && s !== r && Kp(e, s, { get: () => t[s], enumerable: !(n = mO(t, s)) || n.enumerable });
return e;
};
var zn = (e, t, r) => (r = e != null ? hO(gO(e)) : {}, EO(
// 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 ? Kp(r, "default", { value: e, enumerable: !0 }) : r,
e
));
// ../node_modules/@babel/types/lib/utils/shallowEqual.js
var ol = P((Gp) => {
"use strict";
Object.defineProperty(Gp, "__esModule", {
value: !0
});
Gp.default = TO;
function TO(e, t) {
let r = Object.keys(t);
for (let n of r)
if (e[n] !== t[n])
return !1;
return !0;
}
i(TO, "shallowEqual");
});
// ../node_modules/@babel/types/lib/utils/deprecationWarning.js
var va = P((Hp) => {
"use strict";
Object.defineProperty(Hp, "__esModule", {
value: !0
});
Hp.default = SO;
var A1 = /* @__PURE__ */ new Set();
function SO(e, t, r = "") {
if (A1.has(e)) return;
A1.add(e);
let {
internal: n,
trace: s
} = xO(1, 2);
n || console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
${s}`);
}
i(SO, "deprecationWarning");
function xO(e, t) {
let {
stackTraceLimit: r,
prepareStackTrace: n
} = Error, s;
if (Error.stackTraceLimit = 1 + e + t, Error.prepareStackTrace = function(o, l) {
s = l;
}, new Error().stack, Error.stackTraceLimit = r, Error.prepareStackTrace = n, !s) return {
internal: !1,
trace: ""
};
let a = s.slice(1 + e, 1 + e + t);
return {
internal: /[\\/]@babel[\\/]/.test(a[1].getFileName()),
trace: a.map((o) => ` at ${o}`).join(`
`)
};
}
i(xO, "captureShortStackTrace");
});
// ../node_modules/@babel/types/lib/validators/generated/index.js
var St = P((T) => {
"use strict";
Object.defineProperty(T, "__esModule", {
value: !0
});
T.isAccessor = MF;
T.isAnyTypeAnnotation = s3;
T.isArgumentPlaceholder = BB;
T.isArrayExpression = vO;
T.isArrayPattern = SN;
T.isArrayTypeAnnotation = i3;
T.isArrowFunctionExpression = xN;
T.isAssignmentExpression = PO;
T.isAssignmentPattern = TN;
T.isAwaitExpression = KN;
T.isBigIntLiteral = HN;
T.isBinary = oF;
T.isBinaryExpression = AO;
T.isBindExpression = kB;
T.isBlock = cF;
T.isBlockParent = uF;
T.isBlockStatement = IO;
T.isBooleanLiteral = XO;
T.isBooleanLiteralTypeAnnotation = o3;
T.isBooleanTypeAnnotation = a3;
T.isBreakStatement = _O;
T.isCallExpression = OO;
T.isCatchClause = NO;
T.isClass = FF;
T.isClassAccessorProperty = QN;
T.isClassBody = vN;
T.isClassDeclaration = AN;
T.isClassExpression = PN;
T.isClassImplements = u3;
T.isClassMethod = LN;
T.isClassPrivateMethod = e3;
T.isClassPrivateProperty = ZN;
T.isClassProperty = zN;
T.isCompletionStatement = dF;
T.isConditional = hF;
T.isConditionalExpression = BO;
T.isContinueStatement = kO;
T.isDebuggerStatement = FO;
T.isDecimalLiteral = qB;
T.isDeclaration = vF;
T.isDeclareClass = c3;
T.isDeclareExportAllDeclaration = E3;
T.isDeclareExportDeclaration = b3;
T.isDeclareFunction = p3;
T.isDeclareInterface = f3;
T.isDeclareModule = d3;
T.isDeclareModuleExports = h3;
T.isDeclareOpaqueType = y3;
T.isDeclareTypeAlias = m3;
T.isDeclareVariable = g3;
T.isDeclaredPredicate = T3;
T.isDecorator = FB;
T.isDirective = DO;
T.isDirectiveLiteral = wO;
T.isDoExpression = jB;
T.isDoWhileStatement = jO;
T.isEmptyStatement = LO;
T.isEmptyTypeAnnotation = O3;
T.isEnumBody = KF;
T.isEnumBooleanBody = iB;
T.isEnumBooleanMember = uB;
T.isEnumDeclaration = sB;
T.isEnumDefaultedMember = fB;
T.isEnumMember = GF;
T.isEnumNumberBody = aB;
T.isEnumNumberMember = cB;
T.isEnumStringBody = oB;
T.isEnumStringMember = pB;
T.isEnumSymbolBody = lB;
T.isExistsTypeAnnotation = S3;
T.isExportAllDeclaration = CN;
T.isExportDeclaration = jF;
T.isExportDefaultDeclaration = DN;
T.isExportDefaultSpecifier = LB;
T.isExportNamedDeclaration = wN;
T.isExportNamespaceSpecifier = YN;
T.isExportSpecifier = IN;
T.isExpression = aF;
T.isExpressionStatement = MO;
T.isExpressionWrapper = gF;
T.isFile = RO;
T.isFlow = qF;
T.isFlowBaseAnnotation = VF;
T.isFlowDeclaration = $F;
T.isFlowPredicate = WF;
T.isFlowType = UF;
T.isFor = bF;
T.isForInStatement = qO;
T.isForOfStatement = _N;
T.isForStatement = UO;
T.isForXStatement = EF;
T.isFunction = TF;
T.isFunctionDeclaration = VO;
T.isFunctionExpression = $O;
T.isFunctionParent = SF;
T.isFunctionTypeAnnotation = x3;
T.isFunctionTypeParam = v3;
T.isGenericTypeAnnotation = P3;
T.isIdentifier = WO;
T.isIfStatement = KO;
T.isImmutable = wF;
T.isImport = GN;
T.isImportAttribute = n3;
T.isImportDeclaration = ON;
T.isImportDefaultSpecifier = NN;
T.isImportExpression = FN;
T.isImportNamespaceSpecifier = BN;
T.isImportOrExportDeclaration = C1;
T.isImportSpecifier = kN;
T.isIndexedAccessType = dB;
T.isInferredPredicate = A3;
T.isInterfaceDeclaration = D3;
T.isInterfaceExtends = C3;
T.isInterfaceTypeAnnotation = w3;
T.isInterpreterDirective = CO;
T.isIntersectionTypeAnnotation = I3;
T.isJSX = HF;
T.isJSXAttribute = mB;
T.isJSXClosingElement = yB;
T.isJSXClosingFragment = IB;
T.isJSXElement = gB;
T.isJSXEmptyExpression = bB;
T.isJSXExpressionContainer = EB;
T.isJSXFragment = DB;
T.isJSXIdentifier = SB;
T.isJSXMemberExpression = xB;
T.isJSXNamespacedName = vB;
T.isJSXOpeningElement = PB;
T.isJSXOpeningFragment = wB;
T.isJSXSpreadAttribute = AB;
T.isJSXSpreadChild = TB;
T.isJSXText = CB;
T.isLVal = AF;
T.isLabeledStatement = GO;
T.isLiteral = DF;
T.isLogicalExpression = QO;
T.isLoop = mF;
T.isMemberExpression = ZO;
T.isMetaProperty = jN;
T.isMethod = _F;
T.isMiscellaneous = YF;
T.isMixedTypeAnnotation = _3;
T.isModuleDeclaration = n4;
T.isModuleExpression = UB;
T.isModuleSpecifier = LF;
T.isNewExpression = eN;
T.isNoop = _B;
T.isNullLiteral = JO;
T.isNullLiteralTypeAnnotation = l3;
T.isNullableTypeAnnotation = N3;
T.isNumberLiteral = ZF;
T.isNumberLiteralTypeAnnotation = B3;
T.isNumberTypeAnnotation = k3;
T.isNumericLiteral = YO;
T.isObjectExpression = rN;
T.isObjectMember = OF;
T.isObjectMethod = nN;
T.isObjectPattern = MN;
T.isObjectProperty = sN;
T.isObjectTypeAnnotation = F3;
T.isObjectTypeCallProperty = L3;
T.isObjectTypeIndexer = M3;
T.isObjectTypeInternalSlot = j3;
T.isObjectTypeProperty = R3;
T.isObjectTypeSpreadProperty = q3;
T.isOpaqueType = U3;
T.isOptionalCallExpression = XN;
T.isOptionalIndexedAccessType = hB;
T.isOptionalMemberExpression = JN;
T.isParenthesizedExpression = lN;
T.isPattern = kF;
T.isPatternLike = PF;
T.isPipelineBareFunction = WB;
T.isPipelinePrimaryTopicReference = KB;
T.isPipelineTopicExpression = $B;
T.isPlaceholder = OB;
T.isPrivate = RF;
T.isPrivateName = t3;
T.isProgram = tN;
T.isProperty = NF;
T.isPureish = xF;
T.isQualifiedTypeIdentifier = V3;
T.isRecordExpression = MB;
T.isRegExpLiteral = zO;
T.isRegexLiteral = e4;
T.isRestElement = iN;
T.isRestProperty = t4;
T.isReturnStatement = aN;
T.isScopable = lF;
T.isSequenceExpression = oN;
T.isSpreadElement = RN;
T.isSpreadProperty = r4;
T.isStandardized = iF;
T.isStatement = pF;
T.isStaticBlock = r3;
T.isStringLiteral = HO;
T.isStringLiteralTypeAnnotation = $3;
T.isStringTypeAnnotation = W3;
T.isSuper = qN;
T.isSwitchCase = uN;
T.isSwitchStatement = cN;
T.isSymbolTypeAnnotation = K3;
T.isTSAnyKeyword = tk;
T.isTSArrayType = Sk;
T.isTSAsExpression = Uk;
T.isTSBaseType = QF;
T.isTSBigIntKeyword = nk;
T.isTSBooleanKeyword = rk;
T.isTSCallSignatureDeclaration = XB;
T.isTSConditionalType = wk;
T.isTSConstructSignatureDeclaration = zB;
T.isTSConstructorType = yk;
T.isTSDeclareFunction = HB;
T.isTSDeclareMethod = YB;
T.isTSEntityName = CF;
T.isTSEnumBody = Wk;
T.isTSEnumDeclaration = Kk;
T.isTSEnumMember = Gk;
T.isTSExportAssignment = Zk;
T.isTSExpressionWithTypeArguments = jk;
T.isTSExternalModuleReference = zk;
T.isTSFunctionType = mk;
T.isTSImportEqualsDeclaration = Xk;
T.isTSImportType = Jk;
T.isTSIndexSignature = ek;
T.isTSIndexedAccessType = Nk;
T.isTSInferType = Ik;
T.isTSInstantiationExpression = qk;
T.isTSInterfaceBody = Mk;
T.isTSInterfaceDeclaration = Lk;
T.isTSIntersectionType = Dk;
T.isTSIntrinsicKeyword = sk;
T.isTSLiteralType = Fk;
T.isTSMappedType = Bk;
T.isTSMethodSignature = ZB;
T.isTSModuleBlock = Yk;
T.isTSModuleDeclaration = Hk;
T.isTSNamedTupleMember = Ak;
T.isTSNamespaceExportDeclaration = eF;
T.isTSNeverKeyword = ik;
T.isTSNonNullExpression = Qk;
T.isTSNullKeyword = ak;
T.isTSNumberKeyword = ok;
T.isTSObjectKeyword = lk;
T.isTSOptionalType = vk;
T.isTSParameterProperty = GB;
T.isTSParenthesizedType = _k;
T.isTSPropertySignature = QB;
T.isTSQualifiedName = JB;
T.isTSRestType = Pk;
T.isTSSatisfiesExpression = Vk;
T.isTSStringKeyword = uk;
T.isTSSymbolKeyword = ck;
T.isTSTemplateLiteralType = kk;
T.isTSThisType = hk;
T.isTSTupleType = xk;
T.isTSType = zF;
T.isTSTypeAliasDeclaration = Rk;
T.isTSTypeAnnotation = tF;
T.isTSTypeAssertion = $k;
T.isTSTypeElement = XF;
T.isTSTypeLiteral = Tk;
T.isTSTypeOperator = Ok;
T.isTSTypeParameter = sF;
T.isTSTypeParameterDeclaration = nF;
T.isTSTypeParameterInstantiation = rF;
T.isTSTypePredicate = bk;
T.isTSTypeQuery = Ek;
T.isTSTypeReference = gk;
T.isTSUndefinedKeyword = pk;
T.isTSUnionType = Ck;
T.isTSUnknownKeyword = fk;
T.isTSVoidKeyword = dk;
T.isTaggedTemplateExpression = UN;
T.isTemplateElement = VN;
T.isTemplateLiteral = $N;
T.isTerminatorless = fF;
T.isThisExpression = pN;
T.isThisTypeAnnotation = G3;
T.isThrowStatement = fN;
T.isTopicReference = VB;
T.isTryStatement = dN;
T.isTupleExpression = RB;
T.isTupleTypeAnnotation = H3;
T.isTypeAlias = J3;
T.isTypeAnnotation = X3;
T.isTypeCastExpression = z3;
T.isTypeParameter = Q3;
T.isTypeParameterDeclaration = Z3;
T.isTypeParameterInstantiation = eB;
T.isTypeScript = JF;
T.isTypeofTypeAnnotation = Y3;
T.isUnaryExpression = hN;
T.isUnaryLike = BF;
T.isUnionTypeAnnotation = tB;
T.isUpdateExpression = mN;
T.isUserWhitespacable = IF;
T.isV8IntrinsicIdentifier = NB;
T.isVariableDeclaration = yN;
T.isVariableDeclarator = gN;
T.isVariance = rB;
T.isVoidTypeAnnotation = nB;
T.isWhile = yF;
T.isWhileStatement = bN;
T.isWithStatement = EN;
T.isYieldExpression = WN;
var v = ol(), Pa = va();
function vO(e, t) {
return !e || e.type !== "ArrayExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(vO, "isArrayExpression");
function PO(e, t) {
return !e || e.type !== "AssignmentExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(PO, "isAssignmentExpression");
function AO(e, t) {
return !e || e.type !== "BinaryExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(AO, "isBinaryExpression");
function CO(e, t) {
return !e || e.type !== "InterpreterDirective" ? !1 : t == null || (0, v.default)(e, t);
}
i(CO, "isInterpreterDirective");
function DO(e, t) {
return !e || e.type !== "Directive" ? !1 : t == null || (0, v.default)(e, t);
}
i(DO, "isDirective");
function wO(e, t) {
return !e || e.type !== "DirectiveLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(wO, "isDirectiveLiteral");
function IO(e, t) {
return !e || e.type !== "BlockStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(IO, "isBlockStatement");
function _O(e, t) {
return !e || e.type !== "BreakStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(_O, "isBreakStatement");
function OO(e, t) {
return !e || e.type !== "CallExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(OO, "isCallExpression");
function NO(e, t) {
return !e || e.type !== "CatchClause" ? !1 : t == null || (0, v.default)(e, t);
}
i(NO, "isCatchClause");
function BO(e, t) {
return !e || e.type !== "ConditionalExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(BO, "isConditionalExpression");
function kO(e, t) {
return !e || e.type !== "ContinueStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(kO, "isContinueStatement");
function FO(e, t) {
return !e || e.type !== "DebuggerStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(FO, "isDebuggerStatement");
function jO(e, t) {
return !e || e.type !== "DoWhileStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(jO, "isDoWhileStatement");
function LO(e, t) {
return !e || e.type !== "EmptyStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(LO, "isEmptyStatement");
function MO(e, t) {
return !e || e.type !== "ExpressionStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(MO, "isExpressionStatement");
function RO(e, t) {
return !e || e.type !== "File" ? !1 : t == null || (0, v.default)(e, t);
}
i(RO, "isFile");
function qO(e, t) {
return !e || e.type !== "ForInStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(qO, "isForInStatement");
function UO(e, t) {
return !e || e.type !== "ForStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(UO, "isForStatement");
function VO(e, t) {
return !e || e.type !== "FunctionDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(VO, "isFunctionDeclaration");
function $O(e, t) {
return !e || e.type !== "FunctionExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i($O, "isFunctionExpression");
function WO(e, t) {
return !e || e.type !== "Identifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(WO, "isIdentifier");
function KO(e, t) {
return !e || e.type !== "IfStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(KO, "isIfStatement");
function GO(e, t) {
return !e || e.type !== "LabeledStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(GO, "isLabeledStatement");
function HO(e, t) {
return !e || e.type !== "StringLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(HO, "isStringLiteral");
function YO(e, t) {
return !e || e.type !== "NumericLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(YO, "isNumericLiteral");
function JO(e, t) {
return !e || e.type !== "NullLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(JO, "isNullLiteral");
function XO(e, t) {
return !e || e.type !== "BooleanLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(XO, "isBooleanLiteral");
function zO(e, t) {
return !e || e.type !== "RegExpLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(zO, "isRegExpLiteral");
function QO(e, t) {
return !e || e.type !== "LogicalExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(QO, "isLogicalExpression");
function ZO(e, t) {
return !e || e.type !== "MemberExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(ZO, "isMemberExpression");
function eN(e, t) {
return !e || e.type !== "NewExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(eN, "isNewExpression");
function tN(e, t) {
return !e || e.type !== "Program" ? !1 : t == null || (0, v.default)(e, t);
}
i(tN, "isProgram");
function rN(e, t) {
return !e || e.type !== "ObjectExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(rN, "isObjectExpression");
function nN(e, t) {
return !e || e.type !== "ObjectMethod" ? !1 : t == null || (0, v.default)(e, t);
}
i(nN, "isObjectMethod");
function sN(e, t) {
return !e || e.type !== "ObjectProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(sN, "isObjectProperty");
function iN(e, t) {
return !e || e.type !== "RestElement" ? !1 : t == null || (0, v.default)(e, t);
}
i(iN, "isRestElement");
function aN(e, t) {
return !e || e.type !== "ReturnStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(aN, "isReturnStatement");
function oN(e, t) {
return !e || e.type !== "SequenceExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(oN, "isSequenceExpression");
function lN(e, t) {
return !e || e.type !== "ParenthesizedExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(lN, "isParenthesizedExpression");
function uN(e, t) {
return !e || e.type !== "SwitchCase" ? !1 : t == null || (0, v.default)(e, t);
}
i(uN, "isSwitchCase");
function cN(e, t) {
return !e || e.type !== "SwitchStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(cN, "isSwitchStatement");
function pN(e, t) {
return !e || e.type !== "ThisExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(pN, "isThisExpression");
function fN(e, t) {
return !e || e.type !== "ThrowStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(fN, "isThrowStatement");
function dN(e, t) {
return !e || e.type !== "TryStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(dN, "isTryStatement");
function hN(e, t) {
return !e || e.type !== "UnaryExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(hN, "isUnaryExpression");
function mN(e, t) {
return !e || e.type !== "UpdateExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(mN, "isUpdateExpression");
function yN(e, t) {
return !e || e.type !== "VariableDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(yN, "isVariableDeclaration");
function gN(e, t) {
return !e || e.type !== "VariableDeclarator" ? !1 : t == null || (0, v.default)(e, t);
}
i(gN, "isVariableDeclarator");
function bN(e, t) {
return !e || e.type !== "WhileStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(bN, "isWhileStatement");
function EN(e, t) {
return !e || e.type !== "WithStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(EN, "isWithStatement");
function TN(e, t) {
return !e || e.type !== "AssignmentPattern" ? !1 : t == null || (0, v.default)(e, t);
}
i(TN, "isAssignmentPattern");
function SN(e, t) {
return !e || e.type !== "ArrayPattern" ? !1 : t == null || (0, v.default)(e, t);
}
i(SN, "isArrayPattern");
function xN(e, t) {
return !e || e.type !== "ArrowFunctionExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(xN, "isArrowFunctionExpression");
function vN(e, t) {
return !e || e.type !== "ClassBody" ? !1 : t == null || (0, v.default)(e, t);
}
i(vN, "isClassBody");
function PN(e, t) {
return !e || e.type !== "ClassExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(PN, "isClassExpression");
function AN(e, t) {
return !e || e.type !== "ClassDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(AN, "isClassDeclaration");
function CN(e, t) {
return !e || e.type !== "ExportAllDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(CN, "isExportAllDeclaration");
function DN(e, t) {
return !e || e.type !== "ExportDefaultDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(DN, "isExportDefaultDeclaration");
function wN(e, t) {
return !e || e.type !== "ExportNamedDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(wN, "isExportNamedDeclaration");
function IN(e, t) {
return !e || e.type !== "ExportSpecifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(IN, "isExportSpecifier");
function _N(e, t) {
return !e || e.type !== "ForOfStatement" ? !1 : t == null || (0, v.default)(e, t);
}
i(_N, "isForOfStatement");
function ON(e, t) {
return !e || e.type !== "ImportDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(ON, "isImportDeclaration");
function NN(e, t) {
return !e || e.type !== "ImportDefaultSpecifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(NN, "isImportDefaultSpecifier");
function BN(e, t) {
return !e || e.type !== "ImportNamespaceSpecifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(BN, "isImportNamespaceSpecifier");
function kN(e, t) {
return !e || e.type !== "ImportSpecifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(kN, "isImportSpecifier");
function FN(e, t) {
return !e || e.type !== "ImportExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(FN, "isImportExpression");
function jN(e, t) {
return !e || e.type !== "MetaProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(jN, "isMetaProperty");
function LN(e, t) {
return !e || e.type !== "ClassMethod" ? !1 : t == null || (0, v.default)(e, t);
}
i(LN, "isClassMethod");
function MN(e, t) {
return !e || e.type !== "ObjectPattern" ? !1 : t == null || (0, v.default)(e, t);
}
i(MN, "isObjectPattern");
function RN(e, t) {
return !e || e.type !== "SpreadElement" ? !1 : t == null || (0, v.default)(e, t);
}
i(RN, "isSpreadElement");
function qN(e, t) {
return !e || e.type !== "Super" ? !1 : t == null || (0, v.default)(e, t);
}
i(qN, "isSuper");
function UN(e, t) {
return !e || e.type !== "TaggedTemplateExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(UN, "isTaggedTemplateExpression");
function VN(e, t) {
return !e || e.type !== "TemplateElement" ? !1 : t == null || (0, v.default)(e, t);
}
i(VN, "isTemplateElement");
function $N(e, t) {
return !e || e.type !== "TemplateLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i($N, "isTemplateLiteral");
function WN(e, t) {
return !e || e.type !== "YieldExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(WN, "isYieldExpression");
function KN(e, t) {
return !e || e.type !== "AwaitExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(KN, "isAwaitExpression");
function GN(e, t) {
return !e || e.type !== "Import" ? !1 : t == null || (0, v.default)(e, t);
}
i(GN, "isImport");
function HN(e, t) {
return !e || e.type !== "BigIntLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(HN, "isBigIntLiteral");
function YN(e, t) {
return !e || e.type !== "ExportNamespaceSpecifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(YN, "isExportNamespaceSpecifier");
function JN(e, t) {
return !e || e.type !== "OptionalMemberExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(JN, "isOptionalMemberExpression");
function XN(e, t) {
return !e || e.type !== "OptionalCallExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(XN, "isOptionalCallExpression");
function zN(e, t) {
return !e || e.type !== "ClassProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(zN, "isClassProperty");
function QN(e, t) {
return !e || e.type !== "ClassAccessorProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(QN, "isClassAccessorProperty");
function ZN(e, t) {
return !e || e.type !== "ClassPrivateProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(ZN, "isClassPrivateProperty");
function e3(e, t) {
return !e || e.type !== "ClassPrivateMethod" ? !1 : t == null || (0, v.default)(e, t);
}
i(e3, "isClassPrivateMethod");
function t3(e, t) {
return !e || e.type !== "PrivateName" ? !1 : t == null || (0, v.default)(e, t);
}
i(t3, "isPrivateName");
function r3(e, t) {
return !e || e.type !== "StaticBlock" ? !1 : t == null || (0, v.default)(e, t);
}
i(r3, "isStaticBlock");
function n3(e, t) {
return !e || e.type !== "ImportAttribute" ? !1 : t == null || (0, v.default)(e, t);
}
i(n3, "isImportAttribute");
function s3(e, t) {
return !e || e.type !== "AnyTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(s3, "isAnyTypeAnnotation");
function i3(e, t) {
return !e || e.type !== "ArrayTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(i3, "isArrayTypeAnnotation");
function a3(e, t) {
return !e || e.type !== "BooleanTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(a3, "isBooleanTypeAnnotation");
function o3(e, t) {
return !e || e.type !== "BooleanLiteralTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(o3, "isBooleanLiteralTypeAnnotation");
function l3(e, t) {
return !e || e.type !== "NullLiteralTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(l3, "isNullLiteralTypeAnnotation");
function u3(e, t) {
return !e || e.type !== "ClassImplements" ? !1 : t == null || (0, v.default)(e, t);
}
i(u3, "isClassImplements");
function c3(e, t) {
return !e || e.type !== "DeclareClass" ? !1 : t == null || (0, v.default)(e, t);
}
i(c3, "isDeclareClass");
function p3(e, t) {
return !e || e.type !== "DeclareFunction" ? !1 : t == null || (0, v.default)(e, t);
}
i(p3, "isDeclareFunction");
function f3(e, t) {
return !e || e.type !== "DeclareInterface" ? !1 : t == null || (0, v.default)(e, t);
}
i(f3, "isDeclareInterface");
function d3(e, t) {
return !e || e.type !== "DeclareModule" ? !1 : t == null || (0, v.default)(e, t);
}
i(d3, "isDeclareModule");
function h3(e, t) {
return !e || e.type !== "DeclareModuleExports" ? !1 : t == null || (0, v.default)(e, t);
}
i(h3, "isDeclareModuleExports");
function m3(e, t) {
return !e || e.type !== "DeclareTypeAlias" ? !1 : t == null || (0, v.default)(e, t);
}
i(m3, "isDeclareTypeAlias");
function y3(e, t) {
return !e || e.type !== "DeclareOpaqueType" ? !1 : t == null || (0, v.default)(e, t);
}
i(y3, "isDeclareOpaqueType");
function g3(e, t) {
return !e || e.type !== "DeclareVariable" ? !1 : t == null || (0, v.default)(e, t);
}
i(g3, "isDeclareVariable");
function b3(e, t) {
return !e || e.type !== "DeclareExportDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(b3, "isDeclareExportDeclaration");
function E3(e, t) {
return !e || e.type !== "DeclareExportAllDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(E3, "isDeclareExportAllDeclaration");
function T3(e, t) {
return !e || e.type !== "DeclaredPredicate" ? !1 : t == null || (0, v.default)(e, t);
}
i(T3, "isDeclaredPredicate");
function S3(e, t) {
return !e || e.type !== "ExistsTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(S3, "isExistsTypeAnnotation");
function x3(e, t) {
return !e || e.type !== "FunctionTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(x3, "isFunctionTypeAnnotation");
function v3(e, t) {
return !e || e.type !== "FunctionTypeParam" ? !1 : t == null || (0, v.default)(e, t);
}
i(v3, "isFunctionTypeParam");
function P3(e, t) {
return !e || e.type !== "GenericTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(P3, "isGenericTypeAnnotation");
function A3(e, t) {
return !e || e.type !== "InferredPredicate" ? !1 : t == null || (0, v.default)(e, t);
}
i(A3, "isInferredPredicate");
function C3(e, t) {
return !e || e.type !== "InterfaceExtends" ? !1 : t == null || (0, v.default)(e, t);
}
i(C3, "isInterfaceExtends");
function D3(e, t) {
return !e || e.type !== "InterfaceDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(D3, "isInterfaceDeclaration");
function w3(e, t) {
return !e || e.type !== "InterfaceTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(w3, "isInterfaceTypeAnnotation");
function I3(e, t) {
return !e || e.type !== "IntersectionTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(I3, "isIntersectionTypeAnnotation");
function _3(e, t) {
return !e || e.type !== "MixedTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(_3, "isMixedTypeAnnotation");
function O3(e, t) {
return !e || e.type !== "EmptyTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(O3, "isEmptyTypeAnnotation");
function N3(e, t) {
return !e || e.type !== "NullableTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(N3, "isNullableTypeAnnotation");
function B3(e, t) {
return !e || e.type !== "NumberLiteralTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(B3, "isNumberLiteralTypeAnnotation");
function k3(e, t) {
return !e || e.type !== "NumberTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(k3, "isNumberTypeAnnotation");
function F3(e, t) {
return !e || e.type !== "ObjectTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(F3, "isObjectTypeAnnotation");
function j3(e, t) {
return !e || e.type !== "ObjectTypeInternalSlot" ? !1 : t == null || (0, v.default)(e, t);
}
i(j3, "isObjectTypeInternalSlot");
function L3(e, t) {
return !e || e.type !== "ObjectTypeCallProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(L3, "isObjectTypeCallProperty");
function M3(e, t) {
return !e || e.type !== "ObjectTypeIndexer" ? !1 : t == null || (0, v.default)(e, t);
}
i(M3, "isObjectTypeIndexer");
function R3(e, t) {
return !e || e.type !== "ObjectTypeProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(R3, "isObjectTypeProperty");
function q3(e, t) {
return !e || e.type !== "ObjectTypeSpreadProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(q3, "isObjectTypeSpreadProperty");
function U3(e, t) {
return !e || e.type !== "OpaqueType" ? !1 : t == null || (0, v.default)(e, t);
}
i(U3, "isOpaqueType");
function V3(e, t) {
return !e || e.type !== "QualifiedTypeIdentifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(V3, "isQualifiedTypeIdentifier");
function $3(e, t) {
return !e || e.type !== "StringLiteralTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i($3, "isStringLiteralTypeAnnotation");
function W3(e, t) {
return !e || e.type !== "StringTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(W3, "isStringTypeAnnotation");
function K3(e, t) {
return !e || e.type !== "SymbolTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(K3, "isSymbolTypeAnnotation");
function G3(e, t) {
return !e || e.type !== "ThisTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(G3, "isThisTypeAnnotation");
function H3(e, t) {
return !e || e.type !== "TupleTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(H3, "isTupleTypeAnnotation");
function Y3(e, t) {
return !e || e.type !== "TypeofTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(Y3, "isTypeofTypeAnnotation");
function J3(e, t) {
return !e || e.type !== "TypeAlias" ? !1 : t == null || (0, v.default)(e, t);
}
i(J3, "isTypeAlias");
function X3(e, t) {
return !e || e.type !== "TypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(X3, "isTypeAnnotation");
function z3(e, t) {
return !e || e.type !== "TypeCastExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(z3, "isTypeCastExpression");
function Q3(e, t) {
return !e || e.type !== "TypeParameter" ? !1 : t == null || (0, v.default)(e, t);
}
i(Q3, "isTypeParameter");
function Z3(e, t) {
return !e || e.type !== "TypeParameterDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(Z3, "isTypeParameterDeclaration");
function eB(e, t) {
return !e || e.type !== "TypeParameterInstantiation" ? !1 : t == null || (0, v.default)(e, t);
}
i(eB, "isTypeParameterInstantiation");
function tB(e, t) {
return !e || e.type !== "UnionTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(tB, "isUnionTypeAnnotation");
function rB(e, t) {
return !e || e.type !== "Variance" ? !1 : t == null || (0, v.default)(e, t);
}
i(rB, "isVariance");
function nB(e, t) {
return !e || e.type !== "VoidTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(nB, "isVoidTypeAnnotation");
function sB(e, t) {
return !e || e.type !== "EnumDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(sB, "isEnumDeclaration");
function iB(e, t) {
return !e || e.type !== "EnumBooleanBody" ? !1 : t == null || (0, v.default)(e, t);
}
i(iB, "isEnumBooleanBody");
function aB(e, t) {
return !e || e.type !== "EnumNumberBody" ? !1 : t == null || (0, v.default)(e, t);
}
i(aB, "isEnumNumberBody");
function oB(e, t) {
return !e || e.type !== "EnumStringBody" ? !1 : t == null || (0, v.default)(e, t);
}
i(oB, "isEnumStringBody");
function lB(e, t) {
return !e || e.type !== "EnumSymbolBody" ? !1 : t == null || (0, v.default)(e, t);
}
i(lB, "isEnumSymbolBody");
function uB(e, t) {
return !e || e.type !== "EnumBooleanMember" ? !1 : t == null || (0, v.default)(e, t);
}
i(uB, "isEnumBooleanMember");
function cB(e, t) {
return !e || e.type !== "EnumNumberMember" ? !1 : t == null || (0, v.default)(e, t);
}
i(cB, "isEnumNumberMember");
function pB(e, t) {
return !e || e.type !== "EnumStringMember" ? !1 : t == null || (0, v.default)(e, t);
}
i(pB, "isEnumStringMember");
function fB(e, t) {
return !e || e.type !== "EnumDefaultedMember" ? !1 : t == null || (0, v.default)(e, t);
}
i(fB, "isEnumDefaultedMember");
function dB(e, t) {
return !e || e.type !== "IndexedAccessType" ? !1 : t == null || (0, v.default)(e, t);
}
i(dB, "isIndexedAccessType");
function hB(e, t) {
return !e || e.type !== "OptionalIndexedAccessType" ? !1 : t == null || (0, v.default)(e, t);
}
i(hB, "isOptionalIndexedAccessType");
function mB(e, t) {
return !e || e.type !== "JSXAttribute" ? !1 : t == null || (0, v.default)(e, t);
}
i(mB, "isJSXAttribute");
function yB(e, t) {
return !e || e.type !== "JSXClosingElement" ? !1 : t == null || (0, v.default)(e, t);
}
i(yB, "isJSXClosingElement");
function gB(e, t) {
return !e || e.type !== "JSXElement" ? !1 : t == null || (0, v.default)(e, t);
}
i(gB, "isJSXElement");
function bB(e, t) {
return !e || e.type !== "JSXEmptyExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(bB, "isJSXEmptyExpression");
function EB(e, t) {
return !e || e.type !== "JSXExpressionContainer" ? !1 : t == null || (0, v.default)(e, t);
}
i(EB, "isJSXExpressionContainer");
function TB(e, t) {
return !e || e.type !== "JSXSpreadChild" ? !1 : t == null || (0, v.default)(e, t);
}
i(TB, "isJSXSpreadChild");
function SB(e, t) {
return !e || e.type !== "JSXIdentifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(SB, "isJSXIdentifier");
function xB(e, t) {
return !e || e.type !== "JSXMemberExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(xB, "isJSXMemberExpression");
function vB(e, t) {
return !e || e.type !== "JSXNamespacedName" ? !1 : t == null || (0, v.default)(e, t);
}
i(vB, "isJSXNamespacedName");
function PB(e, t) {
return !e || e.type !== "JSXOpeningElement" ? !1 : t == null || (0, v.default)(e, t);
}
i(PB, "isJSXOpeningElement");
function AB(e, t) {
return !e || e.type !== "JSXSpreadAttribute" ? !1 : t == null || (0, v.default)(e, t);
}
i(AB, "isJSXSpreadAttribute");
function CB(e, t) {
return !e || e.type !== "JSXText" ? !1 : t == null || (0, v.default)(e, t);
}
i(CB, "isJSXText");
function DB(e, t) {
return !e || e.type !== "JSXFragment" ? !1 : t == null || (0, v.default)(e, t);
}
i(DB, "isJSXFragment");
function wB(e, t) {
return !e || e.type !== "JSXOpeningFragment" ? !1 : t == null || (0, v.default)(e, t);
}
i(wB, "isJSXOpeningFragment");
function IB(e, t) {
return !e || e.type !== "JSXClosingFragment" ? !1 : t == null || (0, v.default)(e, t);
}
i(IB, "isJSXClosingFragment");
function _B(e, t) {
return !e || e.type !== "Noop" ? !1 : t == null || (0, v.default)(e, t);
}
i(_B, "isNoop");
function OB(e, t) {
return !e || e.type !== "Placeholder" ? !1 : t == null || (0, v.default)(e, t);
}
i(OB, "isPlaceholder");
function NB(e, t) {
return !e || e.type !== "V8IntrinsicIdentifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(NB, "isV8IntrinsicIdentifier");
function BB(e, t) {
return !e || e.type !== "ArgumentPlaceholder" ? !1 : t == null || (0, v.default)(e, t);
}
i(BB, "isArgumentPlaceholder");
function kB(e, t) {
return !e || e.type !== "BindExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(kB, "isBindExpression");
function FB(e, t) {
return !e || e.type !== "Decorator" ? !1 : t == null || (0, v.default)(e, t);
}
i(FB, "isDecorator");
function jB(e, t) {
return !e || e.type !== "DoExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(jB, "isDoExpression");
function LB(e, t) {
return !e || e.type !== "ExportDefaultSpecifier" ? !1 : t == null || (0, v.default)(e, t);
}
i(LB, "isExportDefaultSpecifier");
function MB(e, t) {
return !e || e.type !== "RecordExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(MB, "isRecordExpression");
function RB(e, t) {
return !e || e.type !== "TupleExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(RB, "isTupleExpression");
function qB(e, t) {
return !e || e.type !== "DecimalLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(qB, "isDecimalLiteral");
function UB(e, t) {
return !e || e.type !== "ModuleExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(UB, "isModuleExpression");
function VB(e, t) {
return !e || e.type !== "TopicReference" ? !1 : t == null || (0, v.default)(e, t);
}
i(VB, "isTopicReference");
function $B(e, t) {
return !e || e.type !== "PipelineTopicExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i($B, "isPipelineTopicExpression");
function WB(e, t) {
return !e || e.type !== "PipelineBareFunction" ? !1 : t == null || (0, v.default)(e, t);
}
i(WB, "isPipelineBareFunction");
function KB(e, t) {
return !e || e.type !== "PipelinePrimaryTopicReference" ? !1 : t == null || (0, v.default)(e, t);
}
i(KB, "isPipelinePrimaryTopicReference");
function GB(e, t) {
return !e || e.type !== "TSParameterProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(GB, "isTSParameterProperty");
function HB(e, t) {
return !e || e.type !== "TSDeclareFunction" ? !1 : t == null || (0, v.default)(e, t);
}
i(HB, "isTSDeclareFunction");
function YB(e, t) {
return !e || e.type !== "TSDeclareMethod" ? !1 : t == null || (0, v.default)(e, t);
}
i(YB, "isTSDeclareMethod");
function JB(e, t) {
return !e || e.type !== "TSQualifiedName" ? !1 : t == null || (0, v.default)(e, t);
}
i(JB, "isTSQualifiedName");
function XB(e, t) {
return !e || e.type !== "TSCallSignatureDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(XB, "isTSCallSignatureDeclaration");
function zB(e, t) {
return !e || e.type !== "TSConstructSignatureDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(zB, "isTSConstructSignatureDeclaration");
function QB(e, t) {
return !e || e.type !== "TSPropertySignature" ? !1 : t == null || (0, v.default)(e, t);
}
i(QB, "isTSPropertySignature");
function ZB(e, t) {
return !e || e.type !== "TSMethodSignature" ? !1 : t == null || (0, v.default)(e, t);
}
i(ZB, "isTSMethodSignature");
function ek(e, t) {
return !e || e.type !== "TSIndexSignature" ? !1 : t == null || (0, v.default)(e, t);
}
i(ek, "isTSIndexSignature");
function tk(e, t) {
return !e || e.type !== "TSAnyKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(tk, "isTSAnyKeyword");
function rk(e, t) {
return !e || e.type !== "TSBooleanKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(rk, "isTSBooleanKeyword");
function nk(e, t) {
return !e || e.type !== "TSBigIntKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(nk, "isTSBigIntKeyword");
function sk(e, t) {
return !e || e.type !== "TSIntrinsicKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(sk, "isTSIntrinsicKeyword");
function ik(e, t) {
return !e || e.type !== "TSNeverKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(ik, "isTSNeverKeyword");
function ak(e, t) {
return !e || e.type !== "TSNullKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(ak, "isTSNullKeyword");
function ok(e, t) {
return !e || e.type !== "TSNumberKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(ok, "isTSNumberKeyword");
function lk(e, t) {
return !e || e.type !== "TSObjectKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(lk, "isTSObjectKeyword");
function uk(e, t) {
return !e || e.type !== "TSStringKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(uk, "isTSStringKeyword");
function ck(e, t) {
return !e || e.type !== "TSSymbolKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(ck, "isTSSymbolKeyword");
function pk(e, t) {
return !e || e.type !== "TSUndefinedKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(pk, "isTSUndefinedKeyword");
function fk(e, t) {
return !e || e.type !== "TSUnknownKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(fk, "isTSUnknownKeyword");
function dk(e, t) {
return !e || e.type !== "TSVoidKeyword" ? !1 : t == null || (0, v.default)(e, t);
}
i(dk, "isTSVoidKeyword");
function hk(e, t) {
return !e || e.type !== "TSThisType" ? !1 : t == null || (0, v.default)(e, t);
}
i(hk, "isTSThisType");
function mk(e, t) {
return !e || e.type !== "TSFunctionType" ? !1 : t == null || (0, v.default)(e, t);
}
i(mk, "isTSFunctionType");
function yk(e, t) {
return !e || e.type !== "TSConstructorType" ? !1 : t == null || (0, v.default)(e, t);
}
i(yk, "isTSConstructorType");
function gk(e, t) {
return !e || e.type !== "TSTypeReference" ? !1 : t == null || (0, v.default)(e, t);
}
i(gk, "isTSTypeReference");
function bk(e, t) {
return !e || e.type !== "TSTypePredicate" ? !1 : t == null || (0, v.default)(e, t);
}
i(bk, "isTSTypePredicate");
function Ek(e, t) {
return !e || e.type !== "TSTypeQuery" ? !1 : t == null || (0, v.default)(e, t);
}
i(Ek, "isTSTypeQuery");
function Tk(e, t) {
return !e || e.type !== "TSTypeLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(Tk, "isTSTypeLiteral");
function Sk(e, t) {
return !e || e.type !== "TSArrayType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Sk, "isTSArrayType");
function xk(e, t) {
return !e || e.type !== "TSTupleType" ? !1 : t == null || (0, v.default)(e, t);
}
i(xk, "isTSTupleType");
function vk(e, t) {
return !e || e.type !== "TSOptionalType" ? !1 : t == null || (0, v.default)(e, t);
}
i(vk, "isTSOptionalType");
function Pk(e, t) {
return !e || e.type !== "TSRestType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Pk, "isTSRestType");
function Ak(e, t) {
return !e || e.type !== "TSNamedTupleMember" ? !1 : t == null || (0, v.default)(e, t);
}
i(Ak, "isTSNamedTupleMember");
function Ck(e, t) {
return !e || e.type !== "TSUnionType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Ck, "isTSUnionType");
function Dk(e, t) {
return !e || e.type !== "TSIntersectionType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Dk, "isTSIntersectionType");
function wk(e, t) {
return !e || e.type !== "TSConditionalType" ? !1 : t == null || (0, v.default)(e, t);
}
i(wk, "isTSConditionalType");
function Ik(e, t) {
return !e || e.type !== "TSInferType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Ik, "isTSInferType");
function _k(e, t) {
return !e || e.type !== "TSParenthesizedType" ? !1 : t == null || (0, v.default)(e, t);
}
i(_k, "isTSParenthesizedType");
function Ok(e, t) {
return !e || e.type !== "TSTypeOperator" ? !1 : t == null || (0, v.default)(e, t);
}
i(Ok, "isTSTypeOperator");
function Nk(e, t) {
return !e || e.type !== "TSIndexedAccessType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Nk, "isTSIndexedAccessType");
function Bk(e, t) {
return !e || e.type !== "TSMappedType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Bk, "isTSMappedType");
function kk(e, t) {
return !e || e.type !== "TSTemplateLiteralType" ? !1 : t == null || (0, v.default)(e, t);
}
i(kk, "isTSTemplateLiteralType");
function Fk(e, t) {
return !e || e.type !== "TSLiteralType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Fk, "isTSLiteralType");
function jk(e, t) {
return !e || e.type !== "TSExpressionWithTypeArguments" ? !1 : t == null || (0, v.default)(e, t);
}
i(jk, "isTSExpressionWithTypeArguments");
function Lk(e, t) {
return !e || e.type !== "TSInterfaceDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(Lk, "isTSInterfaceDeclaration");
function Mk(e, t) {
return !e || e.type !== "TSInterfaceBody" ? !1 : t == null || (0, v.default)(e, t);
}
i(Mk, "isTSInterfaceBody");
function Rk(e, t) {
return !e || e.type !== "TSTypeAliasDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(Rk, "isTSTypeAliasDeclaration");
function qk(e, t) {
return !e || e.type !== "TSInstantiationExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(qk, "isTSInstantiationExpression");
function Uk(e, t) {
return !e || e.type !== "TSAsExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(Uk, "isTSAsExpression");
function Vk(e, t) {
return !e || e.type !== "TSSatisfiesExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(Vk, "isTSSatisfiesExpression");
function $k(e, t) {
return !e || e.type !== "TSTypeAssertion" ? !1 : t == null || (0, v.default)(e, t);
}
i($k, "isTSTypeAssertion");
function Wk(e, t) {
return !e || e.type !== "TSEnumBody" ? !1 : t == null || (0, v.default)(e, t);
}
i(Wk, "isTSEnumBody");
function Kk(e, t) {
return !e || e.type !== "TSEnumDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(Kk, "isTSEnumDeclaration");
function Gk(e, t) {
return !e || e.type !== "TSEnumMember" ? !1 : t == null || (0, v.default)(e, t);
}
i(Gk, "isTSEnumMember");
function Hk(e, t) {
return !e || e.type !== "TSModuleDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(Hk, "isTSModuleDeclaration");
function Yk(e, t) {
return !e || e.type !== "TSModuleBlock" ? !1 : t == null || (0, v.default)(e, t);
}
i(Yk, "isTSModuleBlock");
function Jk(e, t) {
return !e || e.type !== "TSImportType" ? !1 : t == null || (0, v.default)(e, t);
}
i(Jk, "isTSImportType");
function Xk(e, t) {
return !e || e.type !== "TSImportEqualsDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(Xk, "isTSImportEqualsDeclaration");
function zk(e, t) {
return !e || e.type !== "TSExternalModuleReference" ? !1 : t == null || (0, v.default)(e, t);
}
i(zk, "isTSExternalModuleReference");
function Qk(e, t) {
return !e || e.type !== "TSNonNullExpression" ? !1 : t == null || (0, v.default)(e, t);
}
i(Qk, "isTSNonNullExpression");
function Zk(e, t) {
return !e || e.type !== "TSExportAssignment" ? !1 : t == null || (0, v.default)(e, t);
}
i(Zk, "isTSExportAssignment");
function eF(e, t) {
return !e || e.type !== "TSNamespaceExportDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(eF, "isTSNamespaceExportDeclaration");
function tF(e, t) {
return !e || e.type !== "TSTypeAnnotation" ? !1 : t == null || (0, v.default)(e, t);
}
i(tF, "isTSTypeAnnotation");
function rF(e, t) {
return !e || e.type !== "TSTypeParameterInstantiation" ? !1 : t == null || (0, v.default)(e, t);
}
i(rF, "isTSTypeParameterInstantiation");
function nF(e, t) {
return !e || e.type !== "TSTypeParameterDeclaration" ? !1 : t == null || (0, v.default)(e, t);
}
i(nF, "isTSTypeParameterDeclaration");
function sF(e, t) {
return !e || e.type !== "TSTypeParameter" ? !1 : t == null || (0, v.default)(e, t);
}
i(sF, "isTSTypeParameter");
function iF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ArrayExpression":
case "AssignmentExpression":
case "BinaryExpression":
case "InterpreterDirective":
case "Directive":
case "DirectiveLiteral":
case "BlockStatement":
case "BreakStatement":
case "CallExpression":
case "CatchClause":
case "ConditionalExpression":
case "ContinueStatement":
case "DebuggerStatement":
case "DoWhileStatement":
case "EmptyStatement":
case "ExpressionStatement":
case "File":
case "ForInStatement":
case "ForStatement":
case "FunctionDeclaration":
case "FunctionExpression":
case "Identifier":
case "IfStatement":
case "LabeledStatement":
case "StringLiteral":
case "NumericLiteral":
case "NullLiteral":
case "BooleanLiteral":
case "RegExpLiteral":
case "LogicalExpression":
case "MemberExpression":
case "NewExpression":
case "Program":
case "ObjectExpression":
case "ObjectMethod":
case "ObjectProperty":
case "RestElement":
case "ReturnStatement":
case "SequenceExpression":
case "ParenthesizedExpression":
case "SwitchCase":
case "SwitchStatement":
case "ThisExpression":
case "ThrowStatement":
case "TryStatement":
case "UnaryExpression":
case "UpdateExpression":
case "VariableDeclaration":
case "VariableDeclarator":
case "WhileStatement":
case "WithStatement":
case "AssignmentPattern":
case "ArrayPattern":
case "ArrowFunctionExpression":
case "ClassBody":
case "ClassExpression":
case "ClassDeclaration":
case "ExportAllDeclaration":
case "ExportDefaultDeclaration":
case "ExportNamedDeclaration":
case "ExportSpecifier":
case "ForOfStatement":
case "ImportDeclaration":
case "ImportDefaultSpecifier":
case "ImportNamespaceSpecifier":
case "ImportSpecifier":
case "ImportExpression":
case "MetaProperty":
case "ClassMethod":
case "ObjectPattern":
case "SpreadElement":
case "Super":
case "TaggedTemplateExpression":
case "TemplateElement":
case "TemplateLiteral":
case "YieldExpression":
case "AwaitExpression":
case "Import":
case "BigIntLiteral":
case "ExportNamespaceSpecifier":
case "OptionalMemberExpression":
case "OptionalCallExpression":
case "ClassProperty":
case "ClassAccessorProperty":
case "ClassPrivateProperty":
case "ClassPrivateMethod":
case "PrivateName":
case "StaticBlock":
case "ImportAttribute":
break;
case "Placeholder":
switch (e.expectedNode) {
case "Identifier":
case "StringLiteral":
case "BlockStatement":
case "ClassBody":
break;
default:
return !1;
}
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(iF, "isStandardized");
function aF(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, v.default)(e, t);
}
i(aF, "isExpression");
function oF(e, t) {
if (!e) return !1;
switch (e.type) {
case "BinaryExpression":
case "LogicalExpression":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(oF, "isBinary");
function lF(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, v.default)(e, t);
}
i(lF, "isScopable");
function uF(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, v.default)(e, t);
}
i(uF, "isBlockParent");
function cF(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, v.default)(e, t);
}
i(cF, "isBlock");
function pF(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, v.default)(e, t);
}
i(pF, "isStatement");
function fF(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, v.default)(e, t);
}
i(fF, "isTerminatorless");
function dF(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, v.default)(e, t);
}
i(dF, "isCompletionStatement");
function hF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ConditionalExpression":
case "IfStatement":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(hF, "isConditional");
function mF(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, v.default)(e, t);
}
i(mF, "isLoop");
function yF(e, t) {
if (!e) return !1;
switch (e.type) {
case "DoWhileStatement":
case "WhileStatement":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(yF, "isWhile");
function gF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ExpressionStatement":
case "ParenthesizedExpression":
case "TypeCastExpression":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(gF, "isExpressionWrapper");
function bF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ForInStatement":
case "ForStatement":
case "ForOfStatement":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(bF, "isFor");
function EF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ForInStatement":
case "ForOfStatement":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(EF, "isForXStatement");
function TF(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, v.default)(e, t);
}
i(TF, "isFunction");
function SF(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, v.default)(e, t);
}
i(SF, "isFunctionParent");
function xF(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, v.default)(e, t);
}
i(xF, "isPureish");
function vF(e, t) {
if (!e) return !1;
switch (e.type) {
case "FunctionDeclaration":
case "VariableDeclaration":
case "ClassDeclaration":
case "ExportAllDeclaration":
case "ExportDefaultDeclaration":
case "ExportNamedDeclaration":
case "ImportDeclaration":
case "DeclareClass":
case "DeclareFunction":
case "DeclareInterface":
case "DeclareModule":
case "DeclareModuleExports":
case "DeclareTypeAlias":
case "DeclareOpaqueType":
case "DeclareVariable":
case "DeclareExportDeclaration":
case "DeclareExportAllDeclaration":
case "InterfaceDeclaration":
case "OpaqueType":
case "TypeAlias":
case "EnumDeclaration":
case "TSDeclareFunction":
case "TSInterfaceDeclaration":
case "TSTypeAliasDeclaration":
case "TSEnumDeclaration":
case "TSModuleDeclaration":
case "TSImportEqualsDeclaration":
break;
case "Placeholder":
if (e.expectedNode === "Declaration") break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(vF, "isDeclaration");
function PF(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, v.default)(e, t);
}
i(PF, "isPatternLike");
function AF(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, v.default)(e, t);
}
i(AF, "isLVal");
function CF(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, v.default)(e, t);
}
i(CF, "isTSEntityName");
function DF(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, v.default)(e, t);
}
i(DF, "isLiteral");
function wF(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, v.default)(e, t);
}
i(wF, "isImmutable");
function IF(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, v.default)(e, t);
}
i(IF, "isUserWhitespacable");
function _F(e, t) {
if (!e) return !1;
switch (e.type) {
case "ObjectMethod":
case "ClassMethod":
case "ClassPrivateMethod":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(_F, "isMethod");
function OF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ObjectMethod":
case "ObjectProperty":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(OF, "isObjectMember");
function NF(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, v.default)(e, t);
}
i(NF, "isProperty");
function BF(e, t) {
if (!e) return !1;
switch (e.type) {
case "UnaryExpression":
case "SpreadElement":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(BF, "isUnaryLike");
function kF(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, v.default)(e, t);
}
i(kF, "isPattern");
function FF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ClassExpression":
case "ClassDeclaration":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(FF, "isClass");
function C1(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, v.default)(e, t);
}
i(C1, "isImportOrExportDeclaration");
function jF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ExportAllDeclaration":
case "ExportDefaultDeclaration":
case "ExportNamedDeclaration":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(jF, "isExportDeclaration");
function LF(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, v.default)(e, t);
}
i(LF, "isModuleSpecifier");
function MF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ClassAccessorProperty":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(MF, "isAccessor");
function RF(e, t) {
if (!e) return !1;
switch (e.type) {
case "ClassPrivateProperty":
case "ClassPrivateMethod":
case "PrivateName":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(RF, "isPrivate");
function qF(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, v.default)(e, t);
}
i(qF, "isFlow");
function UF(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, v.default)(e, t);
}
i(UF, "isFlowType");
function VF(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, v.default)(e, t);
}
i(VF, "isFlowBaseAnnotation");
function $F(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, v.default)(e, t);
}
i($F, "isFlowDeclaration");
function WF(e, t) {
if (!e) return !1;
switch (e.type) {
case "DeclaredPredicate":
case "InferredPredicate":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(WF, "isFlowPredicate");
function KF(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, v.default)(e, t);
}
i(KF, "isEnumBody");
function GF(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, v.default)(e, t);
}
i(GF, "isEnumMember");
function HF(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, v.default)(e, t);
}
i(HF, "isJSX");
function YF(e, t) {
if (!e) return !1;
switch (e.type) {
case "Noop":
case "Placeholder":
case "V8IntrinsicIdentifier":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(YF, "isMiscellaneous");
function JF(e, t) {
if (!e) return !1;
switch (e.type) {
case "TSParameterProperty":
case "TSDeclareFunction":
case "TSDeclareMethod":
case "TSQualifiedName":
case "TSCallSignatureDeclaration":
case "TSConstructSignatureDeclaration":
case "TSPropertySignature":
case "TSMethodSignature":
case "TSIndexSignature":
case "TSAnyKeyword":
case "TSBooleanKeyword":
case "TSBigIntKeyword":
case "TSIntrinsicKeyword":
case "TSNeverKeyword":
case "TSNullKeyword":
case "TSNumberKeyword":
case "TSObjectKeyword":
case "TSStringKeyword":
case "TSSymbolKeyword":
case "TSUndefinedKeyword":
case "TSUnknownKeyword":
case "TSVoidKeyword":
case "TSThisType":
case "TSFunctionType":
case "TSConstructorType":
case "TSTypeReference":
case "TSTypePredicate":
case "TSTypeQuery":
case "TSTypeLiteral":
case "TSArrayType":
case "TSTupleType":
case "TSOptionalType":
case "TSRestType":
case "TSNamedTupleMember":
case "TSUnionType":
case "TSIntersectionType":
case "TSConditionalType":
case "TSInferType":
case "TSParenthesizedType":
case "TSTypeOperator":
case "TSIndexedAccessType":
case "TSMappedType":
case "TSTemplateLiteralType":
case "TSLiteralType":
case "TSExpressionWithTypeArguments":
case "TSInterfaceDeclaration":
case "TSInterfaceBody":
case "TSTypeAliasDeclaration":
case "TSInstantiationExpression":
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSTypeAssertion":
case "TSEnumBody":
case "TSEnumDeclaration":
case "TSEnumMember":
case "TSModuleDeclaration":
case "TSModuleBlock":
case "TSImportType":
case "TSImportEqualsDeclaration":
case "TSExternalModuleReference":
case "TSNonNullExpression":
case "TSExportAssignment":
case "TSNamespaceExportDeclaration":
case "TSTypeAnnotation":
case "TSTypeParameterInstantiation":
case "TSTypeParameterDeclaration":
case "TSTypeParameter":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(JF, "isTypeScript");
function XF(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, v.default)(e, t);
}
i(XF, "isTSTypeElement");
function zF(e, t) {
if (!e) return !1;
switch (e.type) {
case "TSAnyKeyword":
case "TSBooleanKeyword":
case "TSBigIntKeyword":
case "TSIntrinsicKeyword":
case "TSNeverKeyword":
case "TSNullKeyword":
case "TSNumberKeyword":
case "TSObjectKeyword":
case "TSStringKeyword":
case "TSSymbolKeyword":
case "TSUndefinedKeyword":
case "TSUnknownKeyword":
case "TSVoidKeyword":
case "TSThisType":
case "TSFunctionType":
case "TSConstructorType":
case "TSTypeReference":
case "TSTypePredicate":
case "TSTypeQuery":
case "TSTypeLiteral":
case "TSArrayType":
case "TSTupleType":
case "TSOptionalType":
case "TSRestType":
case "TSUnionType":
case "TSIntersectionType":
case "TSConditionalType":
case "TSInferType":
case "TSParenthesizedType":
case "TSTypeOperator":
case "TSIndexedAccessType":
case "TSMappedType":
case "TSTemplateLiteralType":
case "TSLiteralType":
case "TSExpressionWithTypeArguments":
case "TSImportType":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(zF, "isTSType");
function QF(e, t) {
if (!e) return !1;
switch (e.type) {
case "TSAnyKeyword":
case "TSBooleanKeyword":
case "TSBigIntKeyword":
case "TSIntrinsicKeyword":
case "TSNeverKeyword":
case "TSNullKeyword":
case "TSNumberKeyword":
case "TSObjectKeyword":
case "TSStringKeyword":
case "TSSymbolKeyword":
case "TSUndefinedKeyword":
case "TSUnknownKeyword":
case "TSVoidKeyword":
case "TSThisType":
case "TSTemplateLiteralType":
case "TSLiteralType":
break;
default:
return !1;
}
return t == null || (0, v.default)(e, t);
}
i(QF, "isTSBaseType");
function ZF(e, t) {
return (0, Pa.default)("isNumberLiteral", "isNumericLiteral"), !e || e.type !== "NumberLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(ZF, "isNumberLiteral");
function e4(e, t) {
return (0, Pa.default)("isRegexLiteral", "isRegExpLiteral"), !e || e.type !== "RegexLiteral" ? !1 : t == null || (0, v.default)(e, t);
}
i(e4, "isRegexLiteral");
function t4(e, t) {
return (0, Pa.default)("isRestProperty", "isRestElement"), !e || e.type !== "RestProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(t4, "isRestProperty");
function r4(e, t) {
return (0, Pa.default)("isSpreadProperty", "isSpreadElement"), !e || e.type !== "SpreadProperty" ? !1 : t == null || (0, v.default)(e, t);
}
i(r4, "isSpreadProperty");
function n4(e, t) {
return (0, Pa.default)("isModuleDeclaration", "isImportOrExportDeclaration"), C1(e, t);
}
i(n4, "isModuleDeclaration");
});
// ../node_modules/@babel/types/lib/validators/matchesPattern.js
var Jp = P((Yp) => {
"use strict";
Object.defineProperty(Yp, "__esModule", {
value: !0
});
Yp.default = s4;
var Aa = St();
function s4(e, t, r) {
if (!(0, Aa.isMemberExpression)(e)) return !1;
let n = Array.isArray(t) ? t : t.split("."), s = [], a;
for (a = e; (0, Aa.isMemberExpression)(a); a = a.object)
s.push(a.property);
if (s.push(a), s.length < n.length || !r && s.length > n.length) return !1;
for (let o = 0, l = s.length - 1; o < n.length; o++, l--) {
let u = s[l], c;
if ((0, Aa.isIdentifier)(u))
c = u.name;
else if ((0, Aa.isStringLiteral)(u))
c = u.value;
else if ((0, Aa.isThisExpression)(u))
c = "this";
else
return !1;
if (n[o] !== c) return !1;
}
return !0;
}
i(s4, "matchesPattern");
});
// ../node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js
var zp = P((Xp) => {
"use strict";
Object.defineProperty(Xp, "__esModule", {
value: !0
});
Xp.default = a4;
var i4 = Jp();
function a4(e, t) {
let r = e.split(".");
return (n) => (0, i4.default)(n, r, t);
}
i(a4, "buildMatchMemberExpression");
});
// ../node_modules/@babel/types/lib/validators/react/isReactComponent.js
var D1 = P((ll) => {
"use strict";
Object.defineProperty(ll, "__esModule", {
value: !0
});
ll.default = void 0;
var o4 = zp(), l4 = (0, o4.default)("React.Component"), bbe = ll.default = l4;
});
// ../node_modules/@babel/types/lib/validators/react/isCompatTag.js
var w1 = P((Qp) => {
"use strict";
Object.defineProperty(Qp, "__esModule", {
value: !0
});
Qp.default = u4;
function u4(e) {
return !!e && /^[a-z]/.test(e);
}
i(u4, "isCompatTag");
});
// ../node_modules/@babel/types/lib/validators/isType.js
var ul = P((Zp) => {
"use strict";
Object.defineProperty(Zp, "__esModule", {
value: !0
});
Zp.default = c4;
var I1 = Ir();
function c4(e, t) {
if (e === t) return !0;
if (e == null || I1.ALIAS_KEYS[t]) return !1;
let r = I1.FLIPPED_ALIAS_KEYS[t];
return !!(r != null && r.includes(e));
}
i(c4, "isType");
});
// ../node_modules/@babel/types/lib/validators/isPlaceholderType.js
var tf = P((ef) => {
"use strict";
Object.defineProperty(ef, "__esModule", {
value: !0
});
ef.default = f4;
var p4 = Ir();
function f4(e, t) {
if (e === t) return !0;
let r = p4.PLACEHOLDERS_ALIAS[e];
return !!(r != null && r.includes(t));
}
i(f4, "isPlaceholderType");
});
// ../node_modules/@babel/types/lib/validators/is.js
var Ei = P((rf) => {
"use strict";
Object.defineProperty(rf, "__esModule", {
value: !0
});
rf.default = g4;
var d4 = ol(), h4 = ul(), m4 = tf(), y4 = Ir();
function g4(e, t, r) {
return t ? (0, h4.default)(t.type, e) ? r === void 0 ? !0 : (0, d4.default)(t, r) : !r && t.type === "Placeholder" && e in y4.FLIPPED_ALIAS_KEYS ?
(0, m4.default)(t.expectedNode, e) : !1 : !1;
}
i(g4, "is");
});
// ../node_modules/@babel/helper-validator-identifier/lib/identifier.js
var k1 = P((Ca) => {
"use strict";
Object.defineProperty(Ca, "__esModule", {
value: !0
});
Ca.isIdentifierChar = B1;
Ca.isIdentifierName = S4;
Ca.isIdentifierStart = N1;
var sf = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993\
-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\
\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\
\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\
\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\
\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01\
-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",
_1 = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\
\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\
\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6\
-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20\
-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65", b4 = new RegExp("[" + sf + "]"), E4 = new RegExp("[" + sf + _1 + "]");
sf = _1 = null;
var O1 = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157,
19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5,
3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7,
2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17,
47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64,
6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45,
52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2,
1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29,
113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071,
18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12,
65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991,
84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30,
2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3,
0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2,
2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153,
7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], T4 = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0,
166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2,
9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68,
8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14,
5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2,
7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0,
7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4,
4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10,
9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
function nf(e, t) {
let r = 65536;
for (let n = 0, s = t.length; n < s; n += 2) {
if (r += t[n], r > e) return !1;
if (r += t[n + 1], r >= e) return !0;
}
return !1;
}
i(nf, "isInAstralSet");
function N1(e) {
return e < 65 ? e === 36 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && b4.test(String.fromCharCode(e)) :
nf(e, O1);
}
i(N1, "isIdentifierStart");
function B1(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 && E4.test(
String.fromCharCode(e)) : nf(e, O1) || nf(e, T4);
}
i(B1, "isIdentifierChar");
function S4(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 s = e.charCodeAt(++r);
(s & 64512) === 56320 && (n = 65536 + ((n & 1023) << 10) + (s & 1023));
}
if (t) {
if (t = !1, !N1(n))
return !1;
} else if (!B1(n))
return !1;
}
return !t;
}
i(S4, "isIdentifierName");
});
// ../node_modules/@babel/helper-validator-identifier/lib/keyword.js
var M1 = P((Os) => {
"use strict";
Object.defineProperty(Os, "__esModule", {
value: !0
});
Os.isKeyword = C4;
Os.isReservedWord = F1;
Os.isStrictBindOnlyReservedWord = L1;
Os.isStrictBindReservedWord = A4;
Os.isStrictReservedWord = j1;
var af = {
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"]
}, x4 = new Set(af.keyword), v4 = new Set(af.strict), P4 = new Set(af.strictBind);
function F1(e, t) {
return t && e === "await" || e === "enum";
}
i(F1, "isReservedWord");
function j1(e, t) {
return F1(e, t) || v4.has(e);
}
i(j1, "isStrictReservedWord");
function L1(e) {
return P4.has(e);
}
i(L1, "isStrictBindOnlyReservedWord");
function A4(e, t) {
return j1(e, t) || L1(e);
}
i(A4, "isStrictBindReservedWord");
function C4(e) {
return x4.has(e);
}
i(C4, "isKeyword");
});
// ../node_modules/@babel/helper-validator-identifier/lib/index.js
var Ti = P((an) => {
"use strict";
Object.defineProperty(an, "__esModule", {
value: !0
});
Object.defineProperty(an, "isIdentifierChar", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return of.isIdentifierChar;
}, "get")
});
Object.defineProperty(an, "isIdentifierName", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return of.isIdentifierName;
}, "get")
});
Object.defineProperty(an, "isIdentifierStart", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return of.isIdentifierStart;
}, "get")
});
Object.defineProperty(an, "isKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Da.isKeyword;
}, "get")
});
Object.defineProperty(an, "isReservedWord", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Da.isReservedWord;
}, "get")
});
Object.defineProperty(an, "isStrictBindOnlyReservedWord", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Da.isStrictBindOnlyReservedWord;
}, "get")
});
Object.defineProperty(an, "isStrictBindReservedWord", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Da.isStrictBindReservedWord;
}, "get")
});
Object.defineProperty(an, "isStrictReservedWord", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Da.isStrictReservedWord;
}, "get")
});
var of = k1(), Da = M1();
});
// ../node_modules/@babel/types/lib/validators/isValidIdentifier.js
var Si = P((uf) => {
"use strict";
Object.defineProperty(uf, "__esModule", {
value: !0
});
uf.default = D4;
var lf = Ti();
function D4(e, t = !0) {
return typeof e != "string" || t && ((0, lf.isKeyword)(e) || (0, lf.isStrictReservedWord)(e, !0)) ? !1 : (0, lf.isIdentifierName)(e);
}
i(D4, "isValidIdentifier");
});
// ../node_modules/@babel/helper-string-parser/lib/index.js
var V1 = P((wa) => {
"use strict";
Object.defineProperty(wa, "__esModule", {
value: !0
});
wa.readCodePoint = U1;
wa.readInt = q1;
wa.readStringContents = I4;
var w4 = /* @__PURE__ */ i(function(t) {
return t >= 48 && t <= 57;
}, "isDigit"), R1 = {
decBinOct: /* @__PURE__ */ new Set([46, 66, 69, 79, 95, 98, 101, 111]),
hex: /* @__PURE__ */ new Set([46, 88, 95, 120])
}, cl = {
bin: /* @__PURE__ */ i((e) => e === 48 || e === 49, "bin"),
oct: /* @__PURE__ */ i((e) => e >= 48 && e <= 55, "oct"),
dec: /* @__PURE__ */ i((e) => e >= 48 && e <= 57, "dec"),
hex: /* @__PURE__ */ i((e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, "hex")
};
function I4(e, t, r, n, s, a) {
let o = r, l = n, u = s, c = "", p = null, f = r, {
length: h
} = t;
for (; ; ) {
if (r >= h) {
a.unterminated(o, l, u), c += t.slice(f, r);
break;
}
let y = t.charCodeAt(r);
if (_4(e, y, t, r)) {
c += t.slice(f, r);
break;
}
if (y === 92) {
c += t.slice(f, r);
let E = O4(t, r, n, s, e === "template", a);
E.ch === null && !p ? p = {
pos: r,
lineStart: n,
curLine: s
} : c += E.ch, {
pos: r,
lineStart: n,
curLine: s
} = E, f = r;
} else y === 8232 || y === 8233 ? (++r, ++s, n = r) : y === 10 || y === 13 ? e === "template" ? (c += t.slice(f, r) + `
`, ++r, y === 13 && t.charCodeAt(r) === 10 && ++r, ++s, f = n = r) : a.unterminated(o, l, u) : ++r;
}
return {
pos: r,
str: c,
firstInvalidLoc: p,
lineStart: n,
curLine: s,
containsInvalid: !!p
};
}
i(I4, "readStringContents");
function _4(e, t, r, n) {
return e === "template" ? t === 96 || t === 36 && r.charCodeAt(n + 1) === 123 : t === (e === "double" ? 34 : 39);
}
i(_4, "isStringEnd");
function O4(e, t, r, n, s, a) {
let o = !s;
t++;
let l = /* @__PURE__ */ i((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
} = cf(e, t, r, n, 2, !1, o, a), l(c === null ? null : String.fromCharCode(c));
}
case 117: {
let c;
return {
code: c,
pos: t
} = U1(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 (s)
return l(null);
a.strictNumericEscape(t - 1, r, n);
default:
if (u >= 48 && u <= 55) {
let c = t - 1, f = /^[0-7]+/.exec(e.slice(c, t + 2))[0], h = parseInt(f, 8);
h > 255 && (f = f.slice(0, -1), h = parseInt(f, 8)), t += f.length - 1;
let y = e.charCodeAt(t);
if (f !== "0" || y === 56 || y === 57) {
if (s)
return l(null);
a.strictNumericEscape(c, r, n);
}
return l(String.fromCharCode(h));
}
return l(String.fromCharCode(u));
}
}
i(O4, "readEscapedChar");
function cf(e, t, r, n, s, a, o, l) {
let u = t, c;
return {
n: c,
pos: t
} = q1(e, t, r, n, 16, s, a, !1, l, !o), c === null && (o ? l.invalidEscapeSequence(u, r, n) : t = u - 1), {
code: c,
pos: t
};
}
i(cf, "readHexChar");
function q1(e, t, r, n, s, a, o, l, u, c) {
let p = t, f = s === 16 ? R1.hex : R1.decBinOct, h = s === 16 ? cl.hex : s === 10 ? cl.dec : s === 8 ? cl.oct : cl.bin, y = !1, E = 0;
for (let d = 0, g = a ?? 1 / 0; d < g; ++d) {
let C = e.charCodeAt(t), _;
if (C === 95 && l !== "bail") {
let O = e.charCodeAt(t - 1), B = e.charCodeAt(t + 1);
if (l) {
if (Number.isNaN(B) || !h(B) || f.has(O) || f.has(B)) {
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 (C >= 97 ? _ = C - 97 + 10 : C >= 65 ? _ = C - 65 + 10 : w4(C) ? _ = C - 48 : _ = 1 / 0, _ >= s) {
if (_ <= 9 && c)
return {
n: null,
pos: t
};
if (_ <= 9 && u.invalidDigit(t, r, n, s))
_ = 0;
else if (o)
_ = 0, y = !0;
else
break;
}
++t, E = E * s + _;
}
return t === p || a != null && t - p !== a || y ? {
n: null,
pos: t
} : {
n: E,
pos: t
};
}
i(q1, "readInt");
function U1(e, t, r, n, s, a) {
let o = e.charCodeAt(t), l;
if (o === 123) {
if (++t, {
code: l,
pos: t
} = cf(e, t, r, n, e.indexOf("}", t) - t, !0, s, a), ++t, l !== null && l > 1114111)
if (s)
a.invalidCodePoint(t, r, n);
else
return {
code: null,
pos: t
};
} else
({
code: l,
pos: t
} = cf(e, t, r, n, 4, !1, s, a));
return {
code: l,
pos: t
};
}
i(U1, "readCodePoint");
});
// ../node_modules/@babel/types/lib/constants/index.js
var xi = P((Me) => {
"use strict";
Object.defineProperty(Me, "__esModule", {
value: !0
});
Me.UPDATE_OPERATORS = Me.UNARY_OPERATORS = Me.STRING_UNARY_OPERATORS = Me.STATEMENT_OR_BLOCK_KEYS = Me.NUMBER_UNARY_OPERATORS = Me.NUMBER_BINARY_OPERATORS =
Me.LOGICAL_OPERATORS = Me.INHERIT_KEYS = Me.FOR_INIT_KEYS = Me.FLATTENABLE_KEYS = Me.EQUALITY_BINARY_OPERATORS = Me.COMPARISON_BINARY_OPERATORS =
Me.COMMENT_KEYS = Me.BOOLEAN_UNARY_OPERATORS = Me.BOOLEAN_NUMBER_BINARY_OPERATORS = Me.BOOLEAN_BINARY_OPERATORS = Me.BINARY_OPERATORS = Me.
ASSIGNMENT_OPERATORS = void 0;
var Mbe = Me.STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"], Rbe = Me.FLATTENABLE_KEYS = ["body", "expressions"], qbe = Me.
FOR_INIT_KEYS = ["left", "init"], Ube = Me.COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"], N4 = Me.LOGICAL_OPERATORS =
["||", "&&", "??"], Vbe = Me.UPDATE_OPERATORS = ["++", "--"], B4 = Me.BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="], k4 = Me.EQUALITY_BINARY_OPERATORS =
["==", "===", "!=", "!=="], F4 = Me.COMPARISON_BINARY_OPERATORS = [...k4, "in", "instanceof"], j4 = Me.BOOLEAN_BINARY_OPERATORS = [...F4, ...B4],
$1 = Me.NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"], $be = Me.BINARY_OPERATORS = ["+", ...$1, ...j4,
"|>"], Wbe = Me.ASSIGNMENT_OPERATORS = ["=", "+=", ...$1.map((e) => e + "="), ...N4.map((e) => e + "=")], L4 = Me.BOOLEAN_UNARY_OPERATORS =
["delete", "!"], M4 = Me.NUMBER_UNARY_OPERATORS = ["+", "-", "~"], R4 = Me.STRING_UNARY_OPERATORS = ["typeof"], Kbe = Me.UNARY_OPERATORS =
["void", "throw", ...L4, ...M4, ...R4], Gbe = Me.INHERIT_KEYS = {
optional: ["typeAnnotation", "typeParameters", "returnType"],
force: ["start", "loc", "end"]
};
Me.BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped"), Me.NOT_LOCAL_BINDING = Symbol.for("should not be considered a local bi\
nding");
});
// ../node_modules/@babel/types/lib/definitions/utils.js
var on = P((He) => {
"use strict";
Object.defineProperty(He, "__esModule", {
value: !0
});
He.allExpandedTypes = He.VISITOR_KEYS = He.NODE_PARENT_VALIDATIONS = He.NODE_FIELDS = He.FLIPPED_ALIAS_KEYS = He.DEPRECATED_KEYS = He.BUILDER_KEYS =
He.ALIAS_KEYS = void 0;
He.arrayOf = K1;
He.arrayOfType = G1;
He.assertEach = H1;
He.assertNodeOrValueType = Q4;
He.assertNodeType = fl;
He.assertOneOf = X4;
He.assertOptionalChainStart = e8;
He.assertShape = Z4;
He.assertValueType = hf;
He.chain = Y1;
He.default = J1;
He.defineAliasedType = n8;
He.validate = df;
He.validateArrayOfType = J4;
He.validateOptional = H4;
He.validateOptionalType = Y4;
He.validateType = G4;
var W1 = Ei(), Ia = dl(), q4 = He.VISITOR_KEYS = {}, U4 = He.ALIAS_KEYS = {}, pf = He.FLIPPED_ALIAS_KEYS = {}, V4 = He.NODE_FIELDS = {}, $4 = He.
BUILDER_KEYS = {}, W4 = He.DEPRECATED_KEYS = {}, K4 = He.NODE_PARENT_VALIDATIONS = {};
function pl(e) {
return Array.isArray(e) ? "array" : e === null ? "null" : typeof e;
}
i(pl, "getType");
function df(e) {
return {
validate: e
};
}
i(df, "validate");
function G4(...e) {
return df(fl(...e));
}
i(G4, "validateType");
function H4(e) {
return {
validate: e,
optional: !0
};
}
i(H4, "validateOptional");
function Y4(...e) {
return {
validate: fl(...e),
optional: !0
};
}
i(Y4, "validateOptionalType");
function K1(e) {
return Y1(hf("array"), H1(e));
}
i(K1, "arrayOf");
function G1(...e) {
return K1(fl(...e));
}
i(G1, "arrayOfType");
function J4(...e) {
return df(G1(...e));
}
i(J4, "validateArrayOfType");
function H1(e) {
let t = process.env.BABEL_TYPES_8_BREAKING ? Ia.validateChild : () => {
};
function r(n, s, a) {
if (!Array.isArray(a)) return;
let o = 0, l = {
toString() {
return `${s}[${o}]`;
}
};
for (; o < a.length; o++) {
let u = a[o];
e(n, l, u), t(n, l, u);
}
}
return i(r, "validator"), r.each = e, r;
}
i(H1, "assertEach");
function X4(...e) {
function t(r, n, s) {
if (!e.includes(s))
throw new TypeError(`Property ${n} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(s)}`);
}
return i(t, "validate"), t.oneOf = e, t;
}
i(X4, "assertOneOf");
var z4 = He.allExpandedTypes = [];
function fl(...e) {
let t = /* @__PURE__ */ new Set();
z4.push({
types: e,
set: t
});
function r(n, s, a) {
let o = a?.type;
if (o != null) {
if (t.has(o)) {
(0, Ia.validateChild)(n, s, a);
return;
}
if (o === "Placeholder") {
for (let l of e)
if ((0, W1.default)(l, a)) {
(0, Ia.validateChild)(n, s, a);
return;
}
}
}
throw new TypeError(`Property ${s} of ${n.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(o)}`);
}
return i(r, "validate"), r.oneOfNodeTypes = e, r;
}
i(fl, "assertNodeType");
function Q4(...e) {
function t(r, n, s) {
let a = pl(s);
for (let o of e)
if (a === o || (0, W1.default)(o, s)) {
(0, Ia.validateChild)(r, n, s);
return;
}
throw new TypeError(`Property ${n} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(s?.
type)}`);
}
return i(t, "validate"), t.oneOfNodeOrValueTypes = e, t;
}
i(Q4, "assertNodeOrValueType");
function hf(e) {
function t(r, n, s) {
if (pl(s) !== e)
throw new TypeError(`Property ${n} expected type of ${e} but got ${pl(s)}`);
}
return i(t, "validate"), t.type = e, t;
}
i(hf, "assertValueType");
function Z4(e) {
let t = Object.keys(e);
function r(n, s, a) {
let o = [];
for (let l of t)
try {
(0, Ia.validateField)(n, l, a[l], e[l]);
} catch (u) {
if (u instanceof TypeError) {
o.push(u.message);
continue;
}
throw u;
}
if (o.length)
throw new TypeError(`Property ${s} of ${n.type} expected to have the following:
${o.join(`
`)}`);
}
return i(r, "validate"), r.shapeOf = e, r;
}
i(Z4, "assertShape");
function e8() {
function e(t) {
var r;
let n = t;
for (; t; ) {
let {
type: s
} = n;
if (s === "OptionalCallExpression") {
if (n.optional) return;
n = n.callee;
continue;
}
if (s === "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 i(e, "validate"), e;
}
i(e8, "assertOptionalChainStart");
function Y1(...e) {
function t(...r) {
for (let n of e)
n(...r);
}
if (i(t, "validate"), t.chainOf = e, e.length >= 2 && "type" in e[0] && e[0].type === "array" && !("each" in e[1]))
throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');
return t;
}
i(Y1, "chain");
var t8 = /* @__PURE__ */ new Set(["aliases", "builder", "deprecatedAlias", "fields", "inherits", "visitor", "validate"]), r8 = /* @__PURE__ */ new Set(
["default", "optional", "deprecated", "validate"]), ff = {};
function n8(...e) {
return (t, r = {}) => {
let n = r.aliases;
if (!n) {
var s;
r.inherits && (n = (s = ff[r.inherits].aliases) == null ? void 0 : s.slice()), n ?? (n = []), r.aliases = n;
}
let a = e.filter((o) => !n.includes(o));
n.unshift(...a), J1(t, r);
};
}
i(n8, "defineAliasedType");
function J1(e, t = {}) {
let r = t.inherits && ff[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], p = c.default;
if (Array.isArray(p) ? p.length > 0 : p && typeof p == "object")
throw new Error("field defaults can only be primitives or empty arrays currently");
n[u] = {
default: Array.isArray(p) ? [] : p,
optional: c.optional,
deprecated: c.deprecated,
validate: c.validate
};
}
}
let s = t.visitor || r.visitor || [], a = t.aliases || r.aliases || [], o = t.builder || r.builder || t.visitor || [];
for (let l of Object.keys(t))
if (!t8.has(l))
throw new Error(`Unknown type option "${l}" on ${e}`);
t.deprecatedAlias && (W4[t.deprecatedAlias] = e);
for (let l of s.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 = hf(pl(u.default)));
for (let c of Object.keys(u))
if (!r8.has(c))
throw new Error(`Unknown field key "${c}" on ${e}.${l}`);
}
q4[e] = t.visitor = s, $4[e] = t.builder = o, V4[e] = t.fields = n, U4[e] = t.aliases = a, a.forEach((l) => {
pf[l] = pf[l] || [], pf[l].push(e);
}), t.validate && (K4[e] = t.validate), ff[e] = t;
}
i(J1, "defineType");
});
// ../node_modules/@babel/types/lib/definitions/core.js
var Oa = P((Xt) => {
"use strict";
Object.defineProperty(Xt, "__esModule", {
value: !0
});
Xt.patternLikeCommon = Xt.importAttributes = Xt.functionTypeAnnotationCommon = Xt.functionDeclarationCommon = Xt.functionCommon = Xt.classMethodOrPropertyCommon =
Xt.classMethodOrDeclareMethodCommon = void 0;
var nr = Ei(), s8 = Si(), X1 = Ti(), i8 = V1(), _a = xi(), D = on(), re = (0, D.defineAliasedType)("Standardized");
re("ArrayExpression", {
fields: {
elements: {
validate: (0, D.arrayOf)((0, D.assertNodeOrValueType)("null", "Expression", "SpreadElement")),
default: process.env.BABEL_TYPES_8_BREAKING ? void 0 : []
}
},
visitor: ["elements"],
aliases: ["Expression"]
});
re("AssignmentExpression", {
fields: {
operator: {
validate: process.env.BABEL_TYPES_8_BREAKING ? Object.assign(function() {
let e = (0, D.assertOneOf)(..._a.ASSIGNMENT_OPERATORS), t = (0, D.assertOneOf)("=");
return function(r, n, s) {
((0, nr.default)("Pattern", r.left) ? t : e)(r, n, s);
};
}(), {
type: "string"
}) : (0, D.assertValueType)("string")
},
left: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.assertNodeType)("Identifier", "MemberExpression", "OptionalMemberExpression", "\
ArrayPattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, D.assertNodeType)(
"LVal", "OptionalMemberExpression")
},
right: {
validate: (0, D.assertNodeType)("Expression")
}
},
builder: ["operator", "left", "right"],
visitor: ["left", "right"],
aliases: ["Expression"]
});
re("BinaryExpression", {
builder: ["operator", "left", "right"],
fields: {
operator: {
validate: (0, D.assertOneOf)(..._a.BINARY_OPERATORS)
},
left: {
validate: function() {
let e = (0, D.assertNodeType)("Expression"), t = (0, D.assertNodeType)("Expression", "PrivateName");
return Object.assign(function(n, s, a) {
(n.operator === "in" ? t : e)(n, s, a);
}, {
oneOfNodeTypes: ["Expression", "PrivateName"]
});
}()
},
right: {
validate: (0, D.assertNodeType)("Expression")
}
},
visitor: ["left", "right"],
aliases: ["Binary", "Expression"]
});
re("InterpreterDirective", {
builder: ["value"],
fields: {
value: {
validate: (0, D.assertValueType)("string")
}
}
});
re("Directive", {
visitor: ["value"],
fields: {
value: {
validate: (0, D.assertNodeType)("DirectiveLiteral")
}
}
});
re("DirectiveLiteral", {
builder: ["value"],
fields: {
value: {
validate: (0, D.assertValueType)("string")
}
}
});
re("BlockStatement", {
builder: ["body", "directives"],
visitor: ["directives", "body"],
fields: {
directives: {
validate: (0, D.arrayOfType)("Directive"),
default: []
},
body: (0, D.validateArrayOfType)("Statement")
},
aliases: ["Scopable", "BlockParent", "Block", "Statement"]
});
re("BreakStatement", {
visitor: ["label"],
fields: {
label: {
validate: (0, D.assertNodeType)("Identifier"),
optional: !0
}
},
aliases: ["Statement", "Terminatorless", "CompletionStatement"]
});
re("CallExpression", {
visitor: ["callee", "arguments", "typeParameters", "typeArguments"],
builder: ["callee", "arguments"],
aliases: ["Expression"],
fields: Object.assign({
callee: {
validate: (0, D.assertNodeType)("Expression", "Super", "V8IntrinsicIdentifier")
},
arguments: (0, D.validateArrayOfType)("Expression", "SpreadElement", "ArgumentPlaceholder"),
typeArguments: {
validate: (0, D.assertNodeType)("TypeParameterInstantiation"),
optional: !0
}
}, {
optional: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
typeParameters: {
validate: (0, D.assertNodeType)("TSTypeParameterInstantiation"),
optional: !0
}
}, process.env.BABEL_TYPES_8_BREAKING ? {} : {
optional: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
}
})
});
re("CatchClause", {
visitor: ["param", "body"],
fields: {
param: {
validate: (0, D.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern"),
optional: !0
},
body: {
validate: (0, D.assertNodeType)("BlockStatement")
}
},
aliases: ["Scopable", "BlockParent"]
});
re("ConditionalExpression", {
visitor: ["test", "consequent", "alternate"],
fields: {
test: {
validate: (0, D.assertNodeType)("Expression")
},
consequent: {
validate: (0, D.assertNodeType)("Expression")
},
alternate: {
validate: (0, D.assertNodeType)("Expression")
}
},
aliases: ["Expression", "Conditional"]
});
re("ContinueStatement", {
visitor: ["label"],
fields: {
label: {
validate: (0, D.assertNodeType)("Identifier"),
optional: !0
}
},
aliases: ["Statement", "Terminatorless", "CompletionStatement"]
});
re("DebuggerStatement", {
aliases: ["Statement"]
});
re("DoWhileStatement", {
builder: ["test", "body"],
visitor: ["body", "test"],
fields: {
test: {
validate: (0, D.assertNodeType)("Expression")
},
body: {
validate: (0, D.assertNodeType)("Statement")
}
},
aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"]
});
re("EmptyStatement", {
aliases: ["Statement"]
});
re("ExpressionStatement", {
visitor: ["expression"],
fields: {
expression: {
validate: (0, D.assertNodeType)("Expression")
}
},
aliases: ["Statement", "ExpressionWrapper"]
});
re("File", {
builder: ["program", "comments", "tokens"],
visitor: ["program"],
fields: {
program: {
validate: (0, D.assertNodeType)("Program")
},
comments: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.assertEach)((0, D.assertNodeType)("CommentBlock", "CommentLine")) : Object.assign(
() => {
}, {
each: {
oneOfNodeTypes: ["CommentBlock", "CommentLine"]
}
}),
optional: !0
},
tokens: {
validate: (0, D.assertEach)(Object.assign(() => {
}, {
type: "any"
})),
optional: !0
}
}
});
re("ForInStatement", {
visitor: ["left", "right", "body"],
aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],
fields: {
left: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.assertNodeType)("VariableDeclaration", "Identifier", "MemberExpression", "Array\
Pattern", "ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, D.assertNodeType)("Var\
iableDeclaration", "LVal")
},
right: {
validate: (0, D.assertNodeType)("Expression")
},
body: {
validate: (0, D.assertNodeType)("Statement")
}
}
});
re("ForStatement", {
visitor: ["init", "test", "update", "body"],
aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop"],
fields: {
init: {
validate: (0, D.assertNodeType)("VariableDeclaration", "Expression"),
optional: !0
},
test: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
},
update: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
},
body: {
validate: (0, D.assertNodeType)("Statement")
}
}
});
var vi = /* @__PURE__ */ i(() => ({
params: (0, D.validateArrayOfType)("Identifier", "Pattern", "RestElement"),
generator: {
default: !1
},
async: {
default: !1
}
}), "functionCommon");
Xt.functionCommon = vi;
var Ns = /* @__PURE__ */ i(() => ({
returnType: {
validate: (0, D.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
optional: !0
},
typeParameters: {
validate: (0, D.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
optional: !0
}
}), "functionTypeAnnotationCommon");
Xt.functionTypeAnnotationCommon = Ns;
var z1 = /* @__PURE__ */ i(() => Object.assign({}, vi(), {
declare: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
id: {
validate: (0, D.assertNodeType)("Identifier"),
optional: !0
}
}), "functionDeclarationCommon");
Xt.functionDeclarationCommon = z1;
re("FunctionDeclaration", {
builder: ["id", "params", "body", "generator", "async"],
visitor: ["id", "typeParameters", "params", "predicate", "returnType", "body"],
fields: Object.assign({}, z1(), Ns(), {
body: {
validate: (0, D.assertNodeType)("BlockStatement")
},
predicate: {
validate: (0, D.assertNodeType)("DeclaredPredicate", "InferredPredicate"),
optional: !0
}
}),
aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Statement", "Pureish", "Declaration"],
validate: process.env.BABEL_TYPES_8_BREAKING ? function() {
let e = (0, D.assertNodeType)("Identifier");
return function(t, r, n) {
(0, nr.default)("ExportDefaultDeclaration", t) || e(n, "id", n.id);
};
}() : void 0
});
re("FunctionExpression", {
inherits: "FunctionDeclaration",
aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"],
fields: Object.assign({}, vi(), Ns(), {
id: {
validate: (0, D.assertNodeType)("Identifier"),
optional: !0
},
body: {
validate: (0, D.assertNodeType)("BlockStatement")
},
predicate: {
validate: (0, D.assertNodeType)("DeclaredPredicate", "InferredPredicate"),
optional: !0
}
})
});
var Pi = /* @__PURE__ */ i(() => ({
typeAnnotation: {
validate: (0, D.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
optional: !0
},
optional: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
}
}), "patternLikeCommon");
Xt.patternLikeCommon = Pi;
re("Identifier", {
builder: ["name"],
visitor: ["typeAnnotation", "decorators"],
aliases: ["Expression", "PatternLike", "LVal", "TSEntityName"],
fields: Object.assign({}, Pi(), {
name: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertValueType)("string"), Object.assign(function(e, t, r) {
if (!(0, s8.default)(r, !1))
throw new TypeError(`"${r}" is not a valid identifier name`);
}, {
type: "string"
})) : (0, D.assertValueType)("string")
}
}),
validate: process.env.BABEL_TYPES_8_BREAKING ? function(e, t, r) {
let n = /\.(\w+)$/.exec(t.toString());
if (!n) return;
let [, s] = n, a = {
computed: !1
};
if (s === "property") {
if ((0, nr.default)("MemberExpression", e, a) || (0, nr.default)("OptionalMemberExpression", e, a)) return;
} else if (s === "key") {
if ((0, nr.default)("Property", e, a) || (0, nr.default)("Method", e, a)) return;
} else if (s === "exported") {
if ((0, nr.default)("ExportSpecifier", e)) return;
} else if (s === "imported") {
if ((0, nr.default)("ImportSpecifier", e, {
imported: r
})) return;
} else if (s === "meta" && (0, nr.default)("MetaProperty", e, {
meta: r
}))
return;
if (((0, X1.isKeyword)(r.name) || (0, X1.isReservedWord)(r.name, !1)) && r.name !== "this")
throw new TypeError(`"${r.name}" is not a valid identifier`);
} : void 0
});
re("IfStatement", {
visitor: ["test", "consequent", "alternate"],
aliases: ["Statement", "Conditional"],
fields: {
test: {
validate: (0, D.assertNodeType)("Expression")
},
consequent: {
validate: (0, D.assertNodeType)("Statement")
},
alternate: {
optional: !0,
validate: (0, D.assertNodeType)("Statement")
}
}
});
re("LabeledStatement", {
visitor: ["label", "body"],
aliases: ["Statement"],
fields: {
label: {
validate: (0, D.assertNodeType)("Identifier")
},
body: {
validate: (0, D.assertNodeType)("Statement")
}
}
});
re("StringLiteral", {
builder: ["value"],
fields: {
value: {
validate: (0, D.assertValueType)("string")
}
},
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
});
re("NumericLiteral", {
builder: ["value"],
deprecatedAlias: "NumberLiteral",
fields: {
value: {
validate: (0, D.chain)((0, D.assertValueType)("number"), Object.assign(function(e, t, r) {
if (1 / r < 0 || !Number.isFinite(r)) {
let n = new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`);
}
}, {
type: "number"
}))
}
},
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
});
re("NullLiteral", {
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
});
re("BooleanLiteral", {
builder: ["value"],
fields: {
value: {
validate: (0, D.assertValueType)("boolean")
}
},
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
});
re("RegExpLiteral", {
builder: ["pattern", "flags"],
deprecatedAlias: "RegexLiteral",
aliases: ["Expression", "Pureish", "Literal"],
fields: {
pattern: {
validate: (0, D.assertValueType)("string")
},
flags: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertValueType)("string"), Object.assign(function(e, t, r) {
let n = /[^gimsuy]/.exec(r);
if (n)
throw new TypeError(`"${n[0]}" is not a valid RegExp flag`);
}, {
type: "string"
})) : (0, D.assertValueType)("string"),
default: ""
}
}
});
re("LogicalExpression", {
builder: ["operator", "left", "right"],
visitor: ["left", "right"],
aliases: ["Binary", "Expression"],
fields: {
operator: {
validate: (0, D.assertOneOf)(..._a.LOGICAL_OPERATORS)
},
left: {
validate: (0, D.assertNodeType)("Expression")
},
right: {
validate: (0, D.assertNodeType)("Expression")
}
}
});
re("MemberExpression", {
builder: ["object", "property", "computed", ...process.env.BABEL_TYPES_8_BREAKING ? [] : ["optional"]],
visitor: ["object", "property"],
aliases: ["Expression", "LVal"],
fields: Object.assign({
object: {
validate: (0, D.assertNodeType)("Expression", "Super")
},
property: {
validate: function() {
let e = (0, D.assertNodeType)("Identifier", "PrivateName"), t = (0, D.assertNodeType)("Expression"), r = /* @__PURE__ */ i(function(n, s, a) {
(n.computed ? t : e)(n, s, a);
}, "validator");
return r.oneOfNodeTypes = ["Expression", "Identifier", "PrivateName"], r;
}()
},
computed: {
default: !1
}
}, process.env.BABEL_TYPES_8_BREAKING ? {} : {
optional: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
}
})
});
re("NewExpression", {
inherits: "CallExpression"
});
re("Program", {
visitor: ["directives", "body"],
builder: ["body", "directives", "sourceType", "interpreter"],
fields: {
sourceType: {
validate: (0, D.assertOneOf)("script", "module"),
default: "script"
},
interpreter: {
validate: (0, D.assertNodeType)("InterpreterDirective"),
default: null,
optional: !0
},
directives: {
validate: (0, D.arrayOfType)("Directive"),
default: []
},
body: (0, D.validateArrayOfType)("Statement")
},
aliases: ["Scopable", "BlockParent", "Block"]
});
re("ObjectExpression", {
visitor: ["properties"],
aliases: ["Expression"],
fields: {
properties: (0, D.validateArrayOfType)("ObjectMethod", "ObjectProperty", "SpreadElement")
}
});
re("ObjectMethod", {
builder: ["kind", "key", "params", "body", "computed", "generator", "async"],
visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"],
fields: Object.assign({}, vi(), Ns(), {
kind: Object.assign({
validate: (0, D.assertOneOf)("method", "get", "set")
}, process.env.BABEL_TYPES_8_BREAKING ? {} : {
default: "method"
}),
computed: {
default: !1
},
key: {
validate: function() {
let e = (0, D.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"), t = (0, D.assertNodeType)("Expres\
sion"), r = /* @__PURE__ */ i(function(n, s, a) {
(n.computed ? t : e)(n, s, a);
}, "validator");
return r.oneOfNodeTypes = ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"], r;
}()
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
},
body: {
validate: (0, D.assertNodeType)("BlockStatement")
}
}),
aliases: ["UserWhitespacable", "Function", "Scopable", "BlockParent", "FunctionParent", "Method", "ObjectMember"]
});
re("ObjectProperty", {
builder: ["key", "value", "computed", "shorthand", ...process.env.BABEL_TYPES_8_BREAKING ? [] : ["decorators"]],
fields: {
computed: {
default: !1
},
key: {
validate: function() {
let e = (0, D.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"), t = (0, D.
assertNodeType)("Expression");
return Object.assign(function(n, s, a) {
(n.computed ? t : e)(n, s, a);
}, {
oneOfNodeTypes: ["Expression", "Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "DecimalLiteral", "PrivateName"]
});
}()
},
value: {
validate: (0, D.assertNodeType)("Expression", "PatternLike")
},
shorthand: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertValueType)("boolean"), Object.assign(function(e, t, r) {
if (r) {
if (e.computed)
throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");
if (!(0, nr.default)("Identifier", e.key))
throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier");
}
}, {
type: "boolean"
})) : (0, D.assertValueType)("boolean"),
default: !1
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
}
},
visitor: ["key", "value", "decorators"],
aliases: ["UserWhitespacable", "Property", "ObjectMember"],
validate: process.env.BABEL_TYPES_8_BREAKING ? function() {
let e = (0, D.assertNodeType)("Identifier", "Pattern", "TSAsExpression", "TSSatisfiesExpression", "TSNonNullExpression", "TSTypeAssert\
ion"), t = (0, D.assertNodeType)("Expression");
return function(r, n, s) {
((0, nr.default)("ObjectPattern", r) ? e : t)(s, "value", s.value);
};
}() : void 0
});
re("RestElement", {
visitor: ["argument", "typeAnnotation"],
builder: ["argument"],
aliases: ["LVal", "PatternLike"],
deprecatedAlias: "RestProperty",
fields: Object.assign({}, Pi(), {
argument: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpressio\
n", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression") : (0, D.assertNodeType)("LVal")
}
}),
validate: process.env.BABEL_TYPES_8_BREAKING ? function(e, t) {
let r = /(\w+)\[(\d+)\]/.exec(t.toString());
if (!r) throw new Error("Internal Babel error: malformed key.");
let [, n, s] = r;
if (e[n].length > +s + 1)
throw new TypeError(`RestElement must be last element of ${n}`);
} : void 0
});
re("ReturnStatement", {
visitor: ["argument"],
aliases: ["Statement", "Terminatorless", "CompletionStatement"],
fields: {
argument: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
}
}
});
re("SequenceExpression", {
visitor: ["expressions"],
fields: {
expressions: (0, D.validateArrayOfType)("Expression")
},
aliases: ["Expression"]
});
re("ParenthesizedExpression", {
visitor: ["expression"],
aliases: ["Expression", "ExpressionWrapper"],
fields: {
expression: {
validate: (0, D.assertNodeType)("Expression")
}
}
});
re("SwitchCase", {
visitor: ["test", "consequent"],
fields: {
test: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
},
consequent: (0, D.validateArrayOfType)("Statement")
}
});
re("SwitchStatement", {
visitor: ["discriminant", "cases"],
aliases: ["Statement", "BlockParent", "Scopable"],
fields: {
discriminant: {
validate: (0, D.assertNodeType)("Expression")
},
cases: (0, D.validateArrayOfType)("SwitchCase")
}
});
re("ThisExpression", {
aliases: ["Expression"]
});
re("ThrowStatement", {
visitor: ["argument"],
aliases: ["Statement", "Terminatorless", "CompletionStatement"],
fields: {
argument: {
validate: (0, D.assertNodeType)("Expression")
}
}
});
re("TryStatement", {
visitor: ["block", "handler", "finalizer"],
aliases: ["Statement"],
fields: {
block: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertNodeType)("BlockStatement"), Object.assign(function(e) {
if (!e.handler && !e.finalizer)
throw new TypeError("TryStatement expects either a handler or finalizer, or both");
}, {
oneOfNodeTypes: ["BlockStatement"]
})) : (0, D.assertNodeType)("BlockStatement")
},
handler: {
optional: !0,
validate: (0, D.assertNodeType)("CatchClause")
},
finalizer: {
optional: !0,
validate: (0, D.assertNodeType)("BlockStatement")
}
}
});
re("UnaryExpression", {
builder: ["operator", "argument", "prefix"],
fields: {
prefix: {
default: !0
},
argument: {
validate: (0, D.assertNodeType)("Expression")
},
operator: {
validate: (0, D.assertOneOf)(..._a.UNARY_OPERATORS)
}
},
visitor: ["argument"],
aliases: ["UnaryLike", "Expression"]
});
re("UpdateExpression", {
builder: ["operator", "argument", "prefix"],
fields: {
prefix: {
default: !1
},
argument: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.assertNodeType)("Identifier", "MemberExpression") : (0, D.assertNodeType)("Expr\
ession")
},
operator: {
validate: (0, D.assertOneOf)(..._a.UPDATE_OPERATORS)
}
},
visitor: ["argument"],
aliases: ["Expression"]
});
re("VariableDeclaration", {
builder: ["kind", "declarations"],
visitor: ["declarations"],
aliases: ["Statement", "Declaration"],
fields: {
declare: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
kind: {
validate: (0, D.assertOneOf)("var", "let", "const", "using", "await using")
},
declarations: (0, D.validateArrayOfType)("VariableDeclarator")
},
validate: process.env.BABEL_TYPES_8_BREAKING ? (() => {
let e = (0, D.assertNodeType)("Identifier");
return function(t, r, n) {
if ((0, nr.default)("ForXStatement", t, {
left: n
})) {
if (n.declarations.length !== 1)
throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${t.type}`);
} else
n.declarations.forEach((s) => {
s.init || e(s, "id", s.id);
});
};
})() : void 0
});
re("VariableDeclarator", {
visitor: ["id", "init"],
fields: {
id: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern") : (0, D.assertNodeType)(
"LVal")
},
definite: {
optional: !0,
validate: (0, D.assertValueType)("boolean")
},
init: {
optional: !0,
validate: (0, D.assertNodeType)("Expression")
}
}
});
re("WhileStatement", {
visitor: ["test", "body"],
aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"],
fields: {
test: {
validate: (0, D.assertNodeType)("Expression")
},
body: {
validate: (0, D.assertNodeType)("Statement")
}
}
});
re("WithStatement", {
visitor: ["object", "body"],
aliases: ["Statement"],
fields: {
object: {
validate: (0, D.assertNodeType)("Expression")
},
body: {
validate: (0, D.assertNodeType)("Statement")
}
}
});
re("AssignmentPattern", {
visitor: ["left", "right", "decorators"],
builder: ["left", "right"],
aliases: ["Pattern", "PatternLike", "LVal"],
fields: Object.assign({}, Pi(), {
left: {
validate: (0, D.assertNodeType)("Identifier", "ObjectPattern", "ArrayPattern", "MemberExpression", "TSAsExpression", "TSSatisfiesExp\
ression", "TSTypeAssertion", "TSNonNullExpression")
},
right: {
validate: (0, D.assertNodeType)("Expression")
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
}
})
});
re("ArrayPattern", {
visitor: ["elements", "typeAnnotation"],
builder: ["elements"],
aliases: ["Pattern", "PatternLike", "LVal"],
fields: Object.assign({}, Pi(), {
elements: {
validate: (0, D.chain)((0, D.assertValueType)("array"), (0, D.assertEach)((0, D.assertNodeOrValueType)("null", "PatternLike", "LVal")))
}
})
});
re("ArrowFunctionExpression", {
builder: ["params", "body", "async"],
visitor: ["typeParameters", "params", "predicate", "returnType", "body"],
aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"],
fields: Object.assign({}, vi(), Ns(), {
expression: {
validate: (0, D.assertValueType)("boolean")
},
body: {
validate: (0, D.assertNodeType)("BlockStatement", "Expression")
},
predicate: {
validate: (0, D.assertNodeType)("DeclaredPredicate", "InferredPredicate"),
optional: !0
}
})
});
re("ClassBody", {
visitor: ["body"],
fields: {
body: (0, D.validateArrayOfType)("ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassPrivateProperty", "ClassAccessorProperty",
"TSDeclareMethod", "TSIndexSignature", "StaticBlock")
}
});
re("ClassExpression", {
builder: ["id", "superClass", "body", "decorators"],
visitor: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body"],
aliases: ["Scopable", "Class", "Expression"],
fields: {
id: {
validate: (0, D.assertNodeType)("Identifier"),
optional: !0
},
typeParameters: {
validate: (0, D.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
optional: !0
},
body: {
validate: (0, D.assertNodeType)("ClassBody")
},
superClass: {
optional: !0,
validate: (0, D.assertNodeType)("Expression")
},
superTypeParameters: {
validate: (0, D.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
optional: !0
},
implements: {
validate: (0, D.arrayOfType)("TSExpressionWithTypeArguments", "ClassImplements"),
optional: !0
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
},
mixins: {
validate: (0, D.assertNodeType)("InterfaceExtends"),
optional: !0
}
}
});
re("ClassDeclaration", {
inherits: "ClassExpression",
aliases: ["Scopable", "Class", "Statement", "Declaration"],
fields: {
id: {
validate: (0, D.assertNodeType)("Identifier"),
optional: !0
},
typeParameters: {
validate: (0, D.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"),
optional: !0
},
body: {
validate: (0, D.assertNodeType)("ClassBody")
},
superClass: {
optional: !0,
validate: (0, D.assertNodeType)("Expression")
},
superTypeParameters: {
validate: (0, D.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
optional: !0
},
implements: {
validate: (0, D.arrayOfType)("TSExpressionWithTypeArguments", "ClassImplements"),
optional: !0
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
},
mixins: {
validate: (0, D.assertNodeType)("InterfaceExtends"),
optional: !0
},
declare: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
abstract: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
}
},
validate: process.env.BABEL_TYPES_8_BREAKING ? function() {
let e = (0, D.assertNodeType)("Identifier");
return function(t, r, n) {
(0, nr.default)("ExportDefaultDeclaration", t) || e(n, "id", n.id);
};
}() : void 0
});
var mf = Xt.importAttributes = {
attributes: {
optional: !0,
validate: (0, D.arrayOfType)("ImportAttribute")
},
assertions: {
deprecated: !0,
optional: !0,
validate: (0, D.arrayOfType)("ImportAttribute")
}
};
re("ExportAllDeclaration", {
builder: ["source"],
visitor: ["source", "attributes", "assertions"],
aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"],
fields: Object.assign({
source: {
validate: (0, D.assertNodeType)("StringLiteral")
},
exportKind: (0, D.validateOptional)((0, D.assertOneOf)("type", "value"))
}, mf)
});
re("ExportDefaultDeclaration", {
visitor: ["declaration"],
aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"],
fields: {
declaration: (0, D.validateType)("TSDeclareFunction", "FunctionDeclaration", "ClassDeclaration", "Expression"),
exportKind: (0, D.validateOptional)((0, D.assertOneOf)("value"))
}
});
re("ExportNamedDeclaration", {
builder: ["declaration", "specifiers", "source"],
visitor: process.env ? ["declaration", "specifiers", "source", "attributes"] : ["declaration", "specifiers", "source", "attributes", "as\
sertions"],
aliases: ["Statement", "Declaration", "ImportOrExportDeclaration", "ExportDeclaration"],
fields: Object.assign({
declaration: {
optional: !0,
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertNodeType)("Declaration"), Object.assign(function(e, t, r) {
if (r && e.specifiers.length)
throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");
if (r && e.source)
throw new TypeError("Cannot export a declaration from a source");
}, {
oneOfNodeTypes: ["Declaration"]
})) : (0, D.assertNodeType)("Declaration")
}
}, mf, {
specifiers: {
default: [],
validate: (0, D.arrayOf)(function() {
let e = (0, D.assertNodeType)("ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"), t = (0, D.assertNodeType)(
"ExportSpecifier");
return process.env.BABEL_TYPES_8_BREAKING ? Object.assign(function(r, n, s) {
(r.source ? e : t)(r, n, s);
}, {
oneOfNodeTypes: ["ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"]
}) : e;
}())
},
source: {
validate: (0, D.assertNodeType)("StringLiteral"),
optional: !0
},
exportKind: (0, D.validateOptional)((0, D.assertOneOf)("type", "value"))
})
});
re("ExportSpecifier", {
visitor: ["local", "exported"],
aliases: ["ModuleSpecifier"],
fields: {
local: {
validate: (0, D.assertNodeType)("Identifier")
},
exported: {
validate: (0, D.assertNodeType)("Identifier", "StringLiteral")
},
exportKind: {
validate: (0, D.assertOneOf)("type", "value"),
optional: !0
}
}
});
re("ForOfStatement", {
visitor: ["left", "right", "body"],
builder: ["left", "right", "body", "await"],
aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"],
fields: {
left: {
validate: function() {
if (!process.env.BABEL_TYPES_8_BREAKING)
return (0, D.assertNodeType)("VariableDeclaration", "LVal");
let e = (0, D.assertNodeType)("VariableDeclaration"), t = (0, D.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "\
ObjectPattern", "TSAsExpression", "TSSatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression");
return Object.assign(function(r, n, s) {
(0, nr.default)("VariableDeclaration", s) ? e(r, n, s) : t(r, n, s);
}, {
oneOfNodeTypes: ["VariableDeclaration", "Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern", "TSAsExpression", "TS\
SatisfiesExpression", "TSTypeAssertion", "TSNonNullExpression"]
});
}()
},
right: {
validate: (0, D.assertNodeType)("Expression")
},
body: {
validate: (0, D.assertNodeType)("Statement")
},
await: {
default: !1
}
}
});
re("ImportDeclaration", {
builder: ["specifiers", "source"],
visitor: ["specifiers", "source", "attributes", "assertions"],
aliases: ["Statement", "Declaration", "ImportOrExportDeclaration"],
fields: Object.assign({}, mf, {
module: {
optional: !0,
validate: (0, D.assertValueType)("boolean")
},
phase: {
default: null,
validate: (0, D.assertOneOf)("source", "defer")
},
specifiers: (0, D.validateArrayOfType)("ImportSpecifier", "ImportDefaultSpecifier", "ImportNamespaceSpecifier"),
source: {
validate: (0, D.assertNodeType)("StringLiteral")
},
importKind: {
validate: (0, D.assertOneOf)("type", "typeof", "value"),
optional: !0
}
})
});
re("ImportDefaultSpecifier", {
visitor: ["local"],
aliases: ["ModuleSpecifier"],
fields: {
local: {
validate: (0, D.assertNodeType)("Identifier")
}
}
});
re("ImportNamespaceSpecifier", {
visitor: ["local"],
aliases: ["ModuleSpecifier"],
fields: {
local: {
validate: (0, D.assertNodeType)("Identifier")
}
}
});
re("ImportSpecifier", {
visitor: ["imported", "local"],
builder: ["local", "imported"],
aliases: ["ModuleSpecifier"],
fields: {
local: {
validate: (0, D.assertNodeType)("Identifier")
},
imported: {
validate: (0, D.assertNodeType)("Identifier", "StringLiteral")
},
importKind: {
validate: (0, D.assertOneOf)("type", "typeof", "value"),
optional: !0
}
}
});
re("ImportExpression", {
visitor: ["source", "options"],
aliases: ["Expression"],
fields: {
phase: {
default: null,
validate: (0, D.assertOneOf)("source", "defer")
},
source: {
validate: (0, D.assertNodeType)("Expression")
},
options: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
}
}
});
re("MetaProperty", {
visitor: ["meta", "property"],
aliases: ["Expression"],
fields: {
meta: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertNodeType)("Identifier"), Object.assign(function(e, t, r) {
let n;
switch (r.name) {
case "function":
n = "sent";
break;
case "new":
n = "target";
break;
case "import":
n = "meta";
break;
}
if (!(0, nr.default)("Identifier", e.property, {
name: n
}))
throw new TypeError("Unrecognised MetaProperty");
}, {
oneOfNodeTypes: ["Identifier"]
})) : (0, D.assertNodeType)("Identifier")
},
property: {
validate: (0, D.assertNodeType)("Identifier")
}
}
});
var hl = /* @__PURE__ */ i(() => ({
abstract: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
accessibility: {
validate: (0, D.assertOneOf)("public", "private", "protected"),
optional: !0
},
static: {
default: !1
},
override: {
default: !1
},
computed: {
default: !1
},
optional: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
key: {
validate: (0, D.chain)(function() {
let e = (0, D.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral"), t = (0, D.assertNodeType)("Expressi\
on");
return function(r, n, s) {
(r.computed ? t : e)(r, n, s);
};
}(), (0, D.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression"))
}
}), "classMethodOrPropertyCommon");
Xt.classMethodOrPropertyCommon = hl;
var yf = /* @__PURE__ */ i(() => Object.assign({}, vi(), hl(), {
params: (0, D.validateArrayOfType)("Identifier", "Pattern", "RestElement", "TSParameterProperty"),
kind: {
validate: (0, D.assertOneOf)("get", "set", "method", "constructor"),
default: "method"
},
access: {
validate: (0, D.chain)((0, D.assertValueType)("string"), (0, D.assertOneOf)("public", "private", "protected")),
optional: !0
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
}
}), "classMethodOrDeclareMethodCommon");
Xt.classMethodOrDeclareMethodCommon = yf;
re("ClassMethod", {
aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method"],
builder: ["kind", "key", "params", "body", "computed", "static", "generator", "async"],
visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"],
fields: Object.assign({}, yf(), Ns(), {
body: {
validate: (0, D.assertNodeType)("BlockStatement")
}
})
});
re("ObjectPattern", {
visitor: ["properties", "typeAnnotation", "decorators"],
builder: ["properties"],
aliases: ["Pattern", "PatternLike", "LVal"],
fields: Object.assign({}, Pi(), {
properties: (0, D.validateArrayOfType)("RestElement", "ObjectProperty")
})
});
re("SpreadElement", {
visitor: ["argument"],
aliases: ["UnaryLike"],
deprecatedAlias: "SpreadProperty",
fields: {
argument: {
validate: (0, D.assertNodeType)("Expression")
}
}
});
re("Super", {
aliases: ["Expression"]
});
re("TaggedTemplateExpression", {
visitor: ["tag", "typeParameters", "quasi"],
builder: ["tag", "quasi"],
aliases: ["Expression"],
fields: {
tag: {
validate: (0, D.assertNodeType)("Expression")
},
quasi: {
validate: (0, D.assertNodeType)("TemplateLiteral")
},
typeParameters: {
validate: (0, D.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"),
optional: !0
}
}
});
re("TemplateElement", {
builder: ["value", "tail"],
fields: {
value: {
validate: (0, D.chain)((0, D.assertShape)({
raw: {
validate: (0, D.assertValueType)("string")
},
cooked: {
validate: (0, D.assertValueType)("string"),
optional: !0
}
}), /* @__PURE__ */ i(function(t) {
let r = t.value.raw, n = !1, s = /* @__PURE__ */ i(() => {
throw new Error("Internal @babel/types error.");
}, "error"), {
str: a,
firstInvalidLoc: o
} = (0, i8.readStringContents)("template", r, 0, 0, 0, {
unterminated() {
n = !0;
},
strictNumericEscape: s,
invalidEscapeSequence: s,
numericSeparatorInEscapeSequence: s,
unexpectedNumericSeparator: s,
invalidDigit: s,
invalidCodePoint: s
});
if (!n) throw new Error("Invalid raw");
t.value.cooked = o ? null : a;
}, "templateElementCookedValidator"))
},
tail: {
default: !1
}
}
});
re("TemplateLiteral", {
visitor: ["quasis", "expressions"],
aliases: ["Expression", "Literal"],
fields: {
quasis: (0, D.validateArrayOfType)("TemplateElement"),
expressions: {
validate: (0, D.chain)((0, D.assertValueType)("array"), (0, D.assertEach)((0, D.assertNodeType)("Expression", "TSType")), function(e, t, r) {
if (e.quasis.length !== r.length + 1)
throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
Expected ${r.length + 1} quasis but got ${e.quasis.length}`);
})
}
}
});
re("YieldExpression", {
builder: ["argument", "delegate"],
visitor: ["argument"],
aliases: ["Expression", "Terminatorless"],
fields: {
delegate: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertValueType)("boolean"), Object.assign(function(e, t, r) {
if (r && !e.argument)
throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument");
}, {
type: "boolean"
})) : (0, D.assertValueType)("boolean"),
default: !1
},
argument: {
optional: !0,
validate: (0, D.assertNodeType)("Expression")
}
}
});
re("AwaitExpression", {
builder: ["argument"],
visitor: ["argument"],
aliases: ["Expression", "Terminatorless"],
fields: {
argument: {
validate: (0, D.assertNodeType)("Expression")
}
}
});
re("Import", {
aliases: ["Expression"]
});
re("BigIntLiteral", {
builder: ["value"],
fields: {
value: {
validate: (0, D.assertValueType)("string")
}
},
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
});
re("ExportNamespaceSpecifier", {
visitor: ["exported"],
aliases: ["ModuleSpecifier"],
fields: {
exported: {
validate: (0, D.assertNodeType)("Identifier")
}
}
});
re("OptionalMemberExpression", {
builder: ["object", "property", "computed", "optional"],
visitor: ["object", "property"],
aliases: ["Expression"],
fields: {
object: {
validate: (0, D.assertNodeType)("Expression")
},
property: {
validate: function() {
let e = (0, D.assertNodeType)("Identifier"), t = (0, D.assertNodeType)("Expression");
return Object.assign(function(n, s, a) {
(n.computed ? t : e)(n, s, a);
}, {
oneOfNodeTypes: ["Expression", "Identifier"]
});
}()
},
computed: {
default: !1
},
optional: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertValueType)("boolean"), (0, D.assertOptionalChainStart)()) : (0, D.
assertValueType)("boolean")
}
}
});
re("OptionalCallExpression", {
visitor: ["callee", "arguments", "typeParameters", "typeArguments"],
builder: ["callee", "arguments", "optional"],
aliases: ["Expression"],
fields: Object.assign({
callee: {
validate: (0, D.assertNodeType)("Expression")
},
arguments: (0, D.validateArrayOfType)("Expression", "SpreadElement", "ArgumentPlaceholder"),
optional: {
validate: process.env.BABEL_TYPES_8_BREAKING ? (0, D.chain)((0, D.assertValueType)("boolean"), (0, D.assertOptionalChainStart)()) : (0, D.
assertValueType)("boolean")
},
typeArguments: {
validate: (0, D.assertNodeType)("TypeParameterInstantiation"),
optional: !0
}
}, {
typeParameters: {
validate: (0, D.assertNodeType)("TSTypeParameterInstantiation"),
optional: !0
}
})
});
re("ClassProperty", {
visitor: ["decorators", "variance", "key", "typeAnnotation", "value"],
builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"],
aliases: ["Property"],
fields: Object.assign({}, hl(), {
value: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
},
definite: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
typeAnnotation: {
validate: (0, D.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
optional: !0
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
},
readonly: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
declare: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
variance: {
validate: (0, D.assertNodeType)("Variance"),
optional: !0
}
})
});
re("ClassAccessorProperty", {
visitor: ["decorators", "key", "typeAnnotation", "value"],
builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"],
aliases: ["Property", "Accessor"],
fields: Object.assign({}, hl(), {
key: {
validate: (0, D.chain)(function() {
let e = (0, D.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName"), t = (0, D.assertNodeType)(
"Expression");
return function(r, n, s) {
(r.computed ? t : e)(r, n, s);
};
}(), (0, D.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "Expression", "PrivateName"))
},
value: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
},
definite: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
typeAnnotation: {
validate: (0, D.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
optional: !0
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
},
readonly: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
declare: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
variance: {
validate: (0, D.assertNodeType)("Variance"),
optional: !0
}
})
});
re("ClassPrivateProperty", {
visitor: ["decorators", "variance", "key", "typeAnnotation", "value"],
builder: ["key", "value", "decorators", "static"],
aliases: ["Property", "Private"],
fields: {
key: {
validate: (0, D.assertNodeType)("PrivateName")
},
value: {
validate: (0, D.assertNodeType)("Expression"),
optional: !0
},
typeAnnotation: {
validate: (0, D.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"),
optional: !0
},
decorators: {
validate: (0, D.arrayOfType)("Decorator"),
optional: !0
},
static: {
validate: (0, D.assertValueType)("boolean"),
default: !1
},
readonly: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
optional: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
definite: {
validate: (0, D.assertValueType)("boolean"),
optional: !0
},
variance: {
validate: (0, D.assertNodeType)("Variance"),
optional: !0
}
}
});
re("ClassPrivateMethod", {
builder: ["kind", "key", "params", "body", "static"],
visitor: ["decorators", "key", "typeParameters", "params", "returnType", "body"],
aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method", "Private"],
fields: Object.assign({}, yf(), Ns(), {
kind: {
validate: (0, D.assertOneOf)("get", "set", "method"),
default: "method"
},
key: {
validate: (0, D.assertNodeType)("PrivateName")
},
body: {
validate: (0, D.assertNodeType)("BlockStatement")
}
})
});
re("PrivateName", {
visitor: ["id"],
aliases: ["Private"],
fields: {
id: {
validate: (0, D.assertNodeType)("Identifier")
}
}
});
re("StaticBlock", {
visitor: ["body"],
fields: {
body: (0, D.validateArrayOfType)("Statement")
},
aliases: ["Scopable", "BlockParent", "FunctionParent"]
});
re("ImportAttribute", {
visitor: ["key", "value"],
fields: {
key: {
validate: (0, D.assertNodeType)("Identifier", "StringLiteral")
},
value: {
validate: (0, D.assertNodeType)("StringLiteral")
}
}
});
});
// ../node_modules/@babel/types/lib/definitions/flow.js
var Z1 = P(() => {
"use strict";
var Q1 = Oa(), L = on(), he = (0, L.defineAliasedType)("Flow"), gf = /* @__PURE__ */ i((e) => {
let t = e === "DeclareClass";
he(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");
he("AnyTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
he("ArrayTypeAnnotation", {
visitor: ["elementType"],
aliases: ["FlowType"],
fields: {
elementType: (0, L.validateType)("FlowType")
}
});
he("BooleanTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
he("BooleanLiteralTypeAnnotation", {
builder: ["value"],
aliases: ["FlowType"],
fields: {
value: (0, L.validate)((0, L.assertValueType)("boolean"))
}
});
he("NullLiteralTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
he("ClassImplements", {
visitor: ["id", "typeParameters"],
fields: {
id: (0, L.validateType)("Identifier"),
typeParameters: (0, L.validateOptionalType)("TypeParameterInstantiation")
}
});
gf("DeclareClass");
he("DeclareFunction", {
builder: ["id"],
visitor: ["id", "predicate"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: {
id: (0, L.validateType)("Identifier"),
predicate: (0, L.validateOptionalType)("DeclaredPredicate")
}
});
gf("DeclareInterface");
he("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"))
}
});
he("DeclareModuleExports", {
visitor: ["typeAnnotation"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: {
typeAnnotation: (0, L.validateType)("TypeAnnotation")
}
});
he("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")
}
});
he("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")
}
});
he("DeclareVariable", {
visitor: ["id"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: {
id: (0, L.validateType)("Identifier")
}
});
he("DeclareExportDeclaration", {
visitor: ["declaration", "specifiers", "source", "attributes"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: Object.assign({
declaration: (0, L.validateOptionalType)("Flow"),
specifiers: (0, L.validateOptional)((0, L.arrayOfType)("ExportSpecifier", "ExportNamespaceSpecifier")),
source: (0, L.validateOptionalType)("StringLiteral"),
default: (0, L.validateOptional)((0, L.assertValueType)("boolean"))
}, Q1.importAttributes)
});
he("DeclareExportAllDeclaration", {
visitor: ["source", "attributes"],
aliases: ["FlowDeclaration", "Statement", "Declaration"],
fields: Object.assign({
source: (0, L.validateType)("StringLiteral"),
exportKind: (0, L.validateOptional)((0, L.assertOneOf)("type", "value"))
}, Q1.importAttributes)
});
he("DeclaredPredicate", {
visitor: ["value"],
aliases: ["FlowPredicate"],
fields: {
value: (0, L.validateType)("Flow")
}
});
he("ExistsTypeAnnotation", {
aliases: ["FlowType"]
});
he("FunctionTypeAnnotation", {
builder: ["typeParameters", "params", "rest", "returnType"],
visitor: ["typeParameters", "this", "params", "rest", "returnType"],
aliases: ["FlowType"],
fields: {
typeParameters: (0, L.validateOptionalType)("TypeParameterDeclaration"),
params: (0, L.validateArrayOfType)("FunctionTypeParam"),
rest: (0, L.validateOptionalType)("FunctionTypeParam"),
this: (0, L.validateOptionalType)("FunctionTypeParam"),
returnType: (0, L.validateType)("FlowType")
}
});
he("FunctionTypeParam", {
visitor: ["name", "typeAnnotation"],
fields: {
name: (0, L.validateOptionalType)("Identifier"),
typeAnnotation: (0, L.validateType)("FlowType"),
optional: (0, L.validateOptional)((0, L.assertValueType)("boolean"))
}
});
he("GenericTypeAnnotation", {
visitor: ["id", "typeParameters"],
aliases: ["FlowType"],
fields: {
id: (0, L.validateType)("Identifier", "QualifiedTypeIdentifier"),
typeParameters: (0, L.validateOptionalType)("TypeParameterInstantiation")
}
});
he("InferredPredicate", {
aliases: ["FlowPredicate"]
});
he("InterfaceExtends", {
visitor: ["id", "typeParameters"],
fields: {
id: (0, L.validateType)("Identifier", "QualifiedTypeIdentifier"),
typeParameters: (0, L.validateOptionalType)("TypeParameterInstantiation")
}
});
gf("InterfaceDeclaration");
he("InterfaceTypeAnnotation", {
visitor: ["extends", "body"],
aliases: ["FlowType"],
fields: {
extends: (0, L.validateOptional)((0, L.arrayOfType)("InterfaceExtends")),
body: (0, L.validateType)("ObjectTypeAnnotation")
}
});
he("IntersectionTypeAnnotation", {
visitor: ["types"],
aliases: ["FlowType"],
fields: {
types: (0, L.validate)((0, L.arrayOfType)("FlowType"))
}
});
he("MixedTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
he("EmptyTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
he("NullableTypeAnnotation", {
visitor: ["typeAnnotation"],
aliases: ["FlowType"],
fields: {
typeAnnotation: (0, L.validateType)("FlowType")
}
});
he("NumberLiteralTypeAnnotation", {
builder: ["value"],
aliases: ["FlowType"],
fields: {
value: (0, L.validate)((0, L.assertValueType)("number"))
}
});
he("NumberTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
he("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"))
}
});
he("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"))
}
});
he("ObjectTypeCallProperty", {
visitor: ["value"],
aliases: ["UserWhitespacable"],
fields: {
value: (0, L.validateType)("FlowType"),
static: (0, L.validate)((0, L.assertValueType)("boolean"))
}
});
he("ObjectTypeIndexer", {
visitor: ["variance", "id", "key", "value"],
builder: ["id", "key", "value", "variance"],
aliases: ["UserWhitespacable"],
fields: {
id: (0, L.validateOptionalType)("Identifier"),
key: (0, L.validateType)("FlowType"),
value: (0, L.validateType)("FlowType"),
static: (0, L.validate)((0, L.assertValueType)("boolean")),
variance: (0, L.validateOptionalType)("Variance")
}
});
he("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"))
}
});
he("ObjectTypeSpreadProperty", {
visitor: ["argument"],
aliases: ["UserWhitespacable"],
fields: {
argument: (0, L.validateType)("FlowType")
}
});
he("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")
}
});
he("QualifiedTypeIdentifier", {
visitor: ["qualification", "id"],
builder: ["id", "qualification"],
fields: {
id: (0, L.validateType)("Identifier"),
qualification: (0, L.validateType)("Identifier", "QualifiedTypeIdentifier")
}
});
he("StringLiteralTypeAnnotation", {
builder: ["value"],
aliases: ["FlowType"],
fields: {
value: (0, L.validate)((0, L.assertValueType)("string"))
}
});
he("StringTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
he("SymbolTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
he("ThisTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
he("TupleTypeAnnotation", {
visitor: ["types"],
aliases: ["FlowType"],
fields: {
types: (0, L.validate)((0, L.arrayOfType)("FlowType"))
}
});
he("TypeofTypeAnnotation", {
visitor: ["argument"],
aliases: ["FlowType"],
fields: {
argument: (0, L.validateType)("FlowType")
}
});
he("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")
}
});
he("TypeAnnotation", {
visitor: ["typeAnnotation"],
fields: {
typeAnnotation: (0, L.validateType)("FlowType")
}
});
he("TypeCastExpression", {
visitor: ["expression", "typeAnnotation"],
aliases: ["ExpressionWrapper", "Expression"],
fields: {
expression: (0, L.validateType)("Expression"),
typeAnnotation: (0, L.validateType)("TypeAnnotation")
}
});
he("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")
}
});
he("TypeParameterDeclaration", {
visitor: ["params"],
fields: {
params: (0, L.validate)((0, L.arrayOfType)("TypeParameter"))
}
});
he("TypeParameterInstantiation", {
visitor: ["params"],
fields: {
params: (0, L.validate)((0, L.arrayOfType)("FlowType"))
}
});
he("UnionTypeAnnotation", {
visitor: ["types"],
aliases: ["FlowType"],
fields: {
types: (0, L.validate)((0, L.arrayOfType)("FlowType"))
}
});
he("Variance", {
builder: ["kind"],
fields: {
kind: (0, L.validate)((0, L.assertOneOf)("minus", "plus"))
}
});
he("VoidTypeAnnotation", {
aliases: ["FlowType", "FlowBaseAnnotation"]
});
he("EnumDeclaration", {
aliases: ["Statement", "Declaration"],
visitor: ["id", "body"],
fields: {
id: (0, L.validateType)("Identifier"),
body: (0, L.validateType)("EnumBooleanBody", "EnumNumberBody", "EnumStringBody", "EnumSymbolBody")
}
});
he("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"))
}
});
he("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"))
}
});
he("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"))
}
});
he("EnumSymbolBody", {
aliases: ["EnumBody"],
visitor: ["members"],
fields: {
members: (0, L.validateArrayOfType)("EnumDefaultedMember"),
hasUnknownMembers: (0, L.validate)((0, L.assertValueType)("boolean"))
}
});
he("EnumBooleanMember", {
aliases: ["EnumMember"],
builder: ["id"],
visitor: ["id", "init"],
fields: {
id: (0, L.validateType)("Identifier"),
init: (0, L.validateType)("BooleanLiteral")
}
});
he("EnumNumberMember", {
aliases: ["EnumMember"],
visitor: ["id", "init"],
fields: {
id: (0, L.validateType)("Identifier"),
init: (0, L.validateType)("NumericLiteral")
}
});
he("EnumStringMember", {
aliases: ["EnumMember"],
visitor: ["id", "init"],
fields: {
id: (0, L.validateType)("Identifier"),
init: (0, L.validateType)("StringLiteral")
}
});
he("EnumDefaultedMember", {
aliases: ["EnumMember"],
visitor: ["id"],
fields: {
id: (0, L.validateType)("Identifier")
}
});
he("IndexedAccessType", {
visitor: ["objectType", "indexType"],
aliases: ["FlowType"],
fields: {
objectType: (0, L.validateType)("FlowType"),
indexType: (0, L.validateType)("FlowType")
}
});
he("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 eE = P(() => {
"use strict";
var yt = on(), sr = (0, yt.defineAliasedType)("JSX");
sr("JSXAttribute", {
visitor: ["name", "value"],
aliases: ["Immutable"],
fields: {
name: {
validate: (0, yt.assertNodeType)("JSXIdentifier", "JSXNamespacedName")
},
value: {
optional: !0,
validate: (0, yt.assertNodeType)("JSXElement", "JSXFragment", "StringLiteral", "JSXExpressionContainer")
}
}
});
sr("JSXClosingElement", {
visitor: ["name"],
aliases: ["Immutable"],
fields: {
name: {
validate: (0, yt.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName")
}
}
});
sr("JSXElement", {
builder: ["openingElement", "closingElement", "children", "selfClosing"],
visitor: ["openingElement", "children", "closingElement"],
aliases: ["Immutable", "Expression"],
fields: Object.assign({
openingElement: {
validate: (0, yt.assertNodeType)("JSXOpeningElement")
},
closingElement: {
optional: !0,
validate: (0, yt.assertNodeType)("JSXClosingElement")
},
children: (0, yt.validateArrayOfType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment")
}, {
selfClosing: {
validate: (0, yt.assertValueType)("boolean"),
optional: !0
}
})
});
sr("JSXEmptyExpression", {});
sr("JSXExpressionContainer", {
visitor: ["expression"],
aliases: ["Immutable"],
fields: {
expression: {
validate: (0, yt.assertNodeType)("Expression", "JSXEmptyExpression")
}
}
});
sr("JSXSpreadChild", {
visitor: ["expression"],
aliases: ["Immutable"],
fields: {
expression: {
validate: (0, yt.assertNodeType)("Expression")
}
}
});
sr("JSXIdentifier", {
builder: ["name"],
fields: {
name: {
validate: (0, yt.assertValueType)("string")
}
}
});
sr("JSXMemberExpression", {
visitor: ["object", "property"],
fields: {
object: {
validate: (0, yt.assertNodeType)("JSXMemberExpression", "JSXIdentifier")
},
property: {
validate: (0, yt.assertNodeType)("JSXIdentifier")
}
}
});
sr("JSXNamespacedName", {
visitor: ["namespace", "name"],
fields: {
namespace: {
validate: (0, yt.assertNodeType)("JSXIdentifier")
},
name: {
validate: (0, yt.assertNodeType)("JSXIdentifier")
}
}
});
sr("JSXOpeningElement", {
builder: ["name", "attributes", "selfClosing"],
visitor: ["name", "typeParameters", "typeArguments", "attributes"],
aliases: ["Immutable"],
fields: Object.assign({
name: {
validate: (0, yt.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName")
},
selfClosing: {
default: !1
},
attributes: (0, yt.validateArrayOfType)("JSXAttribute", "JSXSpreadAttribute"),
typeArguments: {
validate: (0, yt.assertNodeType)("TypeParameterInstantiation"),
optional: !0
}
}, {
typeParameters: {
validate: (0, yt.assertNodeType)("TSTypeParameterInstantiation"),
optional: !0
}
})
});
sr("JSXSpreadAttribute", {
visitor: ["argument"],
fields: {
argument: {
validate: (0, yt.assertNodeType)("Expression")
}
}
});
sr("JSXText", {
aliases: ["Immutable"],
builder: ["value"],
fields: {
value: {
validate: (0, yt.assertValueType)("string")
}
}
});
sr("JSXFragment", {
builder: ["openingFragment", "closingFragment", "children"],
visitor: ["openingFragment", "children", "closingFragment"],
aliases: ["Immutable", "Expression"],
fields: {
openingFragment: {
validate: (0, yt.assertNodeType)("JSXOpeningFragment")
},
closingFragment: {
validate: (0, yt.assertNodeType)("JSXClosingFragment")
},
children: (0, yt.validateArrayOfType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment")
}
});
sr("JSXOpeningFragment", {
aliases: ["Immutable"]
});
sr("JSXClosingFragment", {
aliases: ["Immutable"]
});
});
// ../node_modules/@babel/types/lib/definitions/placeholders.js
var Tf = P((Qn) => {
"use strict";
Object.defineProperty(Qn, "__esModule", {
value: !0
});
Qn.PLACEHOLDERS_FLIPPED_ALIAS = Qn.PLACEHOLDERS_ALIAS = Qn.PLACEHOLDERS = void 0;
var a8 = on(), o8 = Qn.PLACEHOLDERS = ["Identifier", "StringLiteral", "Expression", "Statement", "Declaration", "BlockStatement", "ClassBo\
dy", "Pattern"], Ef = Qn.PLACEHOLDERS_ALIAS = {
Declaration: ["Statement"],
Pattern: ["PatternLike", "LVal"]
};
for (let e of o8) {
let t = a8.ALIAS_KEYS[e];
t != null && t.length && (Ef[e] = t);
}
var bf = Qn.PLACEHOLDERS_FLIPPED_ALIAS = {};
Object.keys(Ef).forEach((e) => {
Ef[e].forEach((t) => {
hasOwnProperty.call(bf, t) || (bf[t] = []), bf[t].push(e);
});
});
});
// ../node_modules/@babel/types/lib/definitions/misc.js
var tE = P(() => {
"use strict";
var ml = on(), l8 = Tf(), u8 = Oa(), Sf = (0, ml.defineAliasedType)("Miscellaneous");
Sf("Noop", {
visitor: []
});
Sf("Placeholder", {
visitor: [],
builder: ["expectedNode", "name"],
fields: Object.assign({
name: {
validate: (0, ml.assertNodeType)("Identifier")
},
expectedNode: {
validate: (0, ml.assertOneOf)(...l8.PLACEHOLDERS)
}
}, (0, u8.patternLikeCommon)())
});
Sf("V8IntrinsicIdentifier", {
builder: ["name"],
fields: {
name: {
validate: (0, ml.assertValueType)("string")
}
}
});
});
// ../node_modules/@babel/types/lib/definitions/experimental.js
var rE = P(() => {
"use strict";
var ft = on();
(0, ft.default)("ArgumentPlaceholder", {});
(0, ft.default)("BindExpression", {
visitor: ["object", "callee"],
aliases: ["Expression"],
fields: process.env.BABEL_TYPES_8_BREAKING ? {
object: {
validate: (0, ft.assertNodeType)("Expression")
},
callee: {
validate: (0, ft.assertNodeType)("Expression")
}
} : {
object: {
validate: Object.assign(() => {
}, {
oneOfNodeTypes: ["Expression"]
})
},
callee: {
validate: Object.assign(() => {
}, {
oneOfNodeTypes: ["Expression"]
})
}
}
});
(0, ft.default)("Decorator", {
visitor: ["expression"],
fields: {
expression: {
validate: (0, ft.assertNodeType)("Expression")
}
}
});
(0, ft.default)("DoExpression", {
visitor: ["body"],
builder: ["body", "async"],
aliases: ["Expression"],
fields: {
body: {
validate: (0, ft.assertNodeType)("BlockStatement")
},
async: {
validate: (0, ft.assertValueType)("boolean"),
default: !1
}
}
});
(0, ft.default)("ExportDefaultSpecifier", {
visitor: ["exported"],
aliases: ["ModuleSpecifier"],
fields: {
exported: {
validate: (0, ft.assertNodeType)("Identifier")
}
}
});
(0, ft.default)("RecordExpression", {
visitor: ["properties"],
aliases: ["Expression"],
fields: {
properties: (0, ft.validateArrayOfType)("ObjectProperty", "SpreadElement")
}
});
(0, ft.default)("TupleExpression", {
fields: {
elements: {
validate: (0, ft.arrayOfType)("Expression", "SpreadElement"),
default: []
}
},
visitor: ["elements"],
aliases: ["Expression"]
});
(0, ft.default)("DecimalLiteral", {
builder: ["value"],
fields: {
value: {
validate: (0, ft.assertValueType)("string")
}
},
aliases: ["Expression", "Pureish", "Literal", "Immutable"]
});
(0, ft.default)("ModuleExpression", {
visitor: ["body"],
fields: {
body: {
validate: (0, ft.assertNodeType)("Program")
}
},
aliases: ["Expression"]
});
(0, ft.default)("TopicReference", {
aliases: ["Expression"]
});
(0, ft.default)("PipelineTopicExpression", {
builder: ["expression"],
visitor: ["expression"],
fields: {
expression: {
validate: (0, ft.assertNodeType)("Expression")
}
},
aliases: ["Expression"]
});
(0, ft.default)("PipelineBareFunction", {
builder: ["callee"],
visitor: ["callee"],
fields: {
callee: {
validate: (0, ft.assertNodeType)("Expression")
}
},
aliases: ["Expression"]
});
(0, ft.default)("PipelinePrimaryTopicReference", {
aliases: ["Expression"]
});
});
// ../node_modules/@babel/types/lib/definitions/typescript.js
var cE = P(() => {
"use strict";
var q = on(), nE = Oa(), c8 = Ei(), Ae = (0, q.defineAliasedType)("TypeScript"), fr = (0, q.assertValueType)("boolean"), sE = /* @__PURE__ */ i(
() => ({
returnType: {
validate: (0, q.assertNodeType)("TSTypeAnnotation", "Noop"),
optional: !0
},
typeParameters: {
validate: (0, q.assertNodeType)("TSTypeParameterDeclaration", "Noop"),
optional: !0
}
}), "tSFunctionTypeAnnotationCommon");
Ae("TSParameterProperty", {
aliases: ["LVal"],
visitor: ["parameter"],
fields: {
accessibility: {
validate: (0, q.assertOneOf)("public", "private", "protected"),
optional: !0
},
readonly: {
validate: (0, q.assertValueType)("boolean"),
optional: !0
},
parameter: {
validate: (0, q.assertNodeType)("Identifier", "AssignmentPattern")
},
override: {
validate: (0, q.assertValueType)("boolean"),
optional: !0
},
decorators: {
validate: (0, q.arrayOfType)("Decorator"),
optional: !0
}
}
});
Ae("TSDeclareFunction", {
aliases: ["Statement", "Declaration"],
visitor: ["id", "typeParameters", "params", "returnType"],
fields: Object.assign({}, (0, nE.functionDeclarationCommon)(), sE())
});
Ae("TSDeclareMethod", {
visitor: ["decorators", "key", "typeParameters", "params", "returnType"],
fields: Object.assign({}, (0, nE.classMethodOrDeclareMethodCommon)(), sE())
});
Ae("TSQualifiedName", {
aliases: ["TSEntityName"],
visitor: ["left", "right"],
fields: {
left: (0, q.validateType)("TSEntityName"),
right: (0, q.validateType)("Identifier")
}
});
var yl = /* @__PURE__ */ i(() => ({
typeParameters: (0, q.validateOptionalType)("TSTypeParameterDeclaration"),
parameters: (0, q.validateArrayOfType)("ArrayPattern", "Identifier", "ObjectPattern", "RestElement"),
typeAnnotation: (0, q.validateOptionalType)("TSTypeAnnotation")
}), "signatureDeclarationCommon"), iE = {
aliases: ["TSTypeElement"],
visitor: ["typeParameters", "parameters", "typeAnnotation"],
fields: yl()
};
Ae("TSCallSignatureDeclaration", iE);
Ae("TSConstructSignatureDeclaration", iE);
var aE = /* @__PURE__ */ i(() => ({
key: (0, q.validateType)("Expression"),
computed: {
default: !1
},
optional: (0, q.validateOptional)(fr)
}), "namedTypeElementCommon");
Ae("TSPropertySignature", {
aliases: ["TSTypeElement"],
visitor: ["key", "typeAnnotation"],
fields: Object.assign({}, aE(), {
readonly: (0, q.validateOptional)(fr),
typeAnnotation: (0, q.validateOptionalType)("TSTypeAnnotation"),
kind: {
optional: !0,
validate: (0, q.assertOneOf)("get", "set")
}
})
});
Ae("TSMethodSignature", {
aliases: ["TSTypeElement"],
visitor: ["key", "typeParameters", "parameters", "typeAnnotation"],
fields: Object.assign({}, yl(), aE(), {
kind: {
validate: (0, q.assertOneOf)("method", "get", "set")
}
})
});
Ae("TSIndexSignature", {
aliases: ["TSTypeElement"],
visitor: ["parameters", "typeAnnotation"],
fields: {
readonly: (0, q.validateOptional)(fr),
static: (0, q.validateOptional)(fr),
parameters: (0, q.validateArrayOfType)("Identifier"),
typeAnnotation: (0, q.validateOptionalType)("TSTypeAnnotation")
}
});
var p8 = ["TSAnyKeyword", "TSBooleanKeyword", "TSBigIntKeyword", "TSIntrinsicKeyword", "TSNeverKeyword", "TSNullKeyword", "TSNumberKeyword",
"TSObjectKeyword", "TSStringKeyword", "TSSymbolKeyword", "TSUndefinedKeyword", "TSUnknownKeyword", "TSVoidKeyword"];
for (let e of p8)
Ae(e, {
aliases: ["TSType", "TSBaseType"],
visitor: [],
fields: {}
});
Ae("TSThisType", {
aliases: ["TSType", "TSBaseType"],
visitor: [],
fields: {}
});
var oE = {
aliases: ["TSType"],
visitor: ["typeParameters", "parameters", "typeAnnotation"]
};
Ae("TSFunctionType", Object.assign({}, oE, {
fields: yl()
}));
Ae("TSConstructorType", Object.assign({}, oE, {
fields: Object.assign({}, yl(), {
abstract: (0, q.validateOptional)(fr)
})
}));
Ae("TSTypeReference", {
aliases: ["TSType"],
visitor: ["typeName", "typeParameters"],
fields: {
typeName: (0, q.validateType)("TSEntityName"),
typeParameters: (0, q.validateOptionalType)("TSTypeParameterInstantiation")
}
});
Ae("TSTypePredicate", {
aliases: ["TSType"],
visitor: ["parameterName", "typeAnnotation"],
builder: ["parameterName", "typeAnnotation", "asserts"],
fields: {
parameterName: (0, q.validateType)("Identifier", "TSThisType"),
typeAnnotation: (0, q.validateOptionalType)("TSTypeAnnotation"),
asserts: (0, q.validateOptional)(fr)
}
});
Ae("TSTypeQuery", {
aliases: ["TSType"],
visitor: ["exprName", "typeParameters"],
fields: {
exprName: (0, q.validateType)("TSEntityName", "TSImportType"),
typeParameters: (0, q.validateOptionalType)("TSTypeParameterInstantiation")
}
});
Ae("TSTypeLiteral", {
aliases: ["TSType"],
visitor: ["members"],
fields: {
members: (0, q.validateArrayOfType)("TSTypeElement")
}
});
Ae("TSArrayType", {
aliases: ["TSType"],
visitor: ["elementType"],
fields: {
elementType: (0, q.validateType)("TSType")
}
});
Ae("TSTupleType", {
aliases: ["TSType"],
visitor: ["elementTypes"],
fields: {
elementTypes: (0, q.validateArrayOfType)("TSType", "TSNamedTupleMember")
}
});
Ae("TSOptionalType", {
aliases: ["TSType"],
visitor: ["typeAnnotation"],
fields: {
typeAnnotation: (0, q.validateType)("TSType")
}
});
Ae("TSRestType", {
aliases: ["TSType"],
visitor: ["typeAnnotation"],
fields: {
typeAnnotation: (0, q.validateType)("TSType")
}
});
Ae("TSNamedTupleMember", {
visitor: ["label", "elementType"],
builder: ["label", "elementType", "optional"],
fields: {
label: (0, q.validateType)("Identifier"),
optional: {
validate: fr,
default: !1
},
elementType: (0, q.validateType)("TSType")
}
});
var lE = {
aliases: ["TSType"],
visitor: ["types"],
fields: {
types: (0, q.validateArrayOfType)("TSType")
}
};
Ae("TSUnionType", lE);
Ae("TSIntersectionType", lE);
Ae("TSConditionalType", {
aliases: ["TSType"],
visitor: ["checkType", "extendsType", "trueType", "falseType"],
fields: {
checkType: (0, q.validateType)("TSType"),
extendsType: (0, q.validateType)("TSType"),
trueType: (0, q.validateType)("TSType"),
falseType: (0, q.validateType)("TSType")
}
});
Ae("TSInferType", {
aliases: ["TSType"],
visitor: ["typeParameter"],
fields: {
typeParameter: (0, q.validateType)("TSTypeParameter")
}
});
Ae("TSParenthesizedType", {
aliases: ["TSType"],
visitor: ["typeAnnotation"],
fields: {
typeAnnotation: (0, q.validateType)("TSType")
}
});
Ae("TSTypeOperator", {
aliases: ["TSType"],
visitor: ["typeAnnotation"],
fields: {
operator: (0, q.validate)((0, q.assertValueType)("string")),
typeAnnotation: (0, q.validateType)("TSType")
}
});
Ae("TSIndexedAccessType", {
aliases: ["TSType"],
visitor: ["objectType", "indexType"],
fields: {
objectType: (0, q.validateType)("TSType"),
indexType: (0, q.validateType)("TSType")
}
});
Ae("TSMappedType", {
aliases: ["TSType"],
visitor: ["typeParameter", "nameType", "typeAnnotation"],
builder: ["typeParameter", "typeAnnotation", "nameType"],
fields: Object.assign({}, {
typeParameter: (0, q.validateType)("TSTypeParameter")
}, {
readonly: (0, q.validateOptional)((0, q.assertOneOf)(!0, !1, "+", "-")),
optional: (0, q.validateOptional)((0, q.assertOneOf)(!0, !1, "+", "-")),
typeAnnotation: (0, q.validateOptionalType)("TSType"),
nameType: (0, q.validateOptionalType)("TSType")
})
});
Ae("TSTemplateLiteralType", {
aliases: ["TSType", "TSBaseType"],
visitor: ["quasis", "types"],
fields: {
quasis: (0, q.validateArrayOfType)("TemplateElement"),
types: {
validate: (0, q.chain)((0, q.assertValueType)("array"), (0, q.assertEach)((0, q.assertNodeType)("TSType")), function(e, t, r) {
if (e.quasis.length !== r.length + 1)
throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.
Expected ${r.length + 1} quasis but got ${e.quasis.length}`);
})
}
}
});
Ae("TSLiteralType", {
aliases: ["TSType", "TSBaseType"],
visitor: ["literal"],
fields: {
literal: {
validate: function() {
let e = (0, q.assertNodeType)("NumericLiteral", "BigIntLiteral"), t = (0, q.assertOneOf)("-"), r = (0, q.assertNodeType)("NumericL\
iteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiteral");
function n(s, a, o) {
(0, c8.default)("UnaryExpression", o) ? (t(o, "operator", o.operator), e(o, "argument", o.argument)) : r(s, a, o);
}
return i(n, "validator"), n.oneOfNodeTypes = ["NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "TemplateLiter\
al", "UnaryExpression"], n;
}()
}
}
});
Ae("TSExpressionWithTypeArguments", {
aliases: ["TSType"],
visitor: ["expression", "typeParameters"],
fields: {
expression: (0, q.validateType)("TSEntityName"),
typeParameters: (0, q.validateOptionalType)("TSTypeParameterInstantiation")
}
});
Ae("TSInterfaceDeclaration", {
aliases: ["Statement", "Declaration"],
visitor: ["id", "typeParameters", "extends", "body"],
fields: {
declare: (0, q.validateOptional)(fr),
id: (0, q.validateType)("Identifier"),
typeParameters: (0, q.validateOptionalType)("TSTypeParameterDeclaration"),
extends: (0, q.validateOptional)((0, q.arrayOfType)("TSExpressionWithTypeArguments")),
body: (0, q.validateType)("TSInterfaceBody")
}
});
Ae("TSInterfaceBody", {
visitor: ["body"],
fields: {
body: (0, q.validateArrayOfType)("TSTypeElement")
}
});
Ae("TSTypeAliasDeclaration", {
aliases: ["Statement", "Declaration"],
visitor: ["id", "typeParameters", "typeAnnotation"],
fields: {
declare: (0, q.validateOptional)(fr),
id: (0, q.validateType)("Identifier"),
typeParameters: (0, q.validateOptionalType)("TSTypeParameterDeclaration"),
typeAnnotation: (0, q.validateType)("TSType")
}
});
Ae("TSInstantiationExpression", {
aliases: ["Expression"],
visitor: ["expression", "typeParameters"],
fields: {
expression: (0, q.validateType)("Expression"),
typeParameters: (0, q.validateOptionalType)("TSTypeParameterInstantiation")
}
});
var uE = {
aliases: ["Expression", "LVal", "PatternLike"],
visitor: ["expression", "typeAnnotation"],
fields: {
expression: (0, q.validateType)("Expression"),
typeAnnotation: (0, q.validateType)("TSType")
}
};
Ae("TSAsExpression", uE);
Ae("TSSatisfiesExpression", uE);
Ae("TSTypeAssertion", {
aliases: ["Expression", "LVal", "PatternLike"],
visitor: ["typeAnnotation", "expression"],
fields: {
typeAnnotation: (0, q.validateType)("TSType"),
expression: (0, q.validateType)("Expression")
}
});
Ae("TSEnumBody", {
visitor: ["members"],
fields: {
members: (0, q.validateArrayOfType)("TSEnumMember")
}
});
Ae("TSEnumDeclaration", {
aliases: ["Statement", "Declaration"],
visitor: ["id", "members"],
fields: {
declare: (0, q.validateOptional)(fr),
const: (0, q.validateOptional)(fr),
id: (0, q.validateType)("Identifier"),
members: (0, q.validateArrayOfType)("TSEnumMember"),
initializer: (0, q.validateOptionalType)("Expression"),
body: (0, q.validateOptionalType)("TSEnumBody")
}
});
Ae("TSEnumMember", {
visitor: ["id", "initializer"],
fields: {
id: (0, q.validateType)("Identifier", "StringLiteral"),
initializer: (0, q.validateOptionalType)("Expression")
}
});
Ae("TSModuleDeclaration", {
aliases: ["Statement", "Declaration"],
visitor: ["id", "body"],
fields: Object.assign({
kind: {
validate: (0, q.assertOneOf)("global", "module", "namespace")
},
declare: (0, q.validateOptional)(fr)
}, {
global: (0, q.validateOptional)(fr)
}, {
id: (0, q.validateType)("Identifier", "StringLiteral"),
body: (0, q.validateType)("TSModuleBlock", "TSModuleDeclaration")
})
});
Ae("TSModuleBlock", {
aliases: ["Scopable", "Block", "BlockParent", "FunctionParent"],
visitor: ["body"],
fields: {
body: (0, q.validateArrayOfType)("Statement")
}
});
Ae("TSImportType", {
aliases: ["TSType"],
builder: ["argument", "qualifier", "typeParameters"],
visitor: ["argument", "options", "qualifier", "typeParameters"],
fields: {
argument: (0, q.validateType)("StringLiteral"),
qualifier: (0, q.validateOptionalType)("TSEntityName"),
typeParameters: (0, q.validateOptionalType)("TSTypeParameterInstantiation"),
options: {
validate: (0, q.assertNodeType)("Expression"),
optional: !0
}
}
});
Ae("TSImportEqualsDeclaration", {
aliases: ["Statement", "Declaration"],
visitor: ["id", "moduleReference"],
fields: Object.assign({}, {
isExport: (0, q.validate)(fr)
}, {
id: (0, q.validateType)("Identifier"),
moduleReference: (0, q.validateType)("TSEntityName", "TSExternalModuleReference"),
importKind: {
validate: (0, q.assertOneOf)("type", "value"),
optional: !0
}
})
});
Ae("TSExternalModuleReference", {
visitor: ["expression"],
fields: {
expression: (0, q.validateType)("StringLiteral")
}
});
Ae("TSNonNullExpression", {
aliases: ["Expression", "LVal", "PatternLike"],
visitor: ["expression"],
fields: {
expression: (0, q.validateType)("Expression")
}
});
Ae("TSExportAssignment", {
aliases: ["Statement"],
visitor: ["expression"],
fields: {
expression: (0, q.validateType)("Expression")
}
});
Ae("TSNamespaceExportDeclaration", {
aliases: ["Statement"],
visitor: ["id"],
fields: {
id: (0, q.validateType)("Identifier")
}
});
Ae("TSTypeAnnotation", {
visitor: ["typeAnnotation"],
fields: {
typeAnnotation: {
validate: (0, q.assertNodeType)("TSType")
}
}
});
Ae("TSTypeParameterInstantiation", {
visitor: ["params"],
fields: {
params: (0, q.validateArrayOfType)("TSType")
}
});
Ae("TSTypeParameterDeclaration", {
visitor: ["params"],
fields: {
params: (0, q.validateArrayOfType)("TSTypeParameter")
}
});
Ae("TSTypeParameter", {
builder: ["constraint", "default", "name"],
visitor: ["constraint", "default"],
fields: {
name: {
validate: (0, q.assertValueType)("string")
},
in: {
validate: (0, q.assertValueType)("boolean"),
optional: !0
},
out: {
validate: (0, q.assertValueType)("boolean"),
optional: !0
},
const: {
validate: (0, q.assertValueType)("boolean"),
optional: !0
},
constraint: {
validate: (0, q.assertNodeType)("TSType"),
optional: !0
},
default: {
validate: (0, q.assertNodeType)("TSType"),
optional: !0
}
}
});
});
// ../node_modules/@babel/types/lib/definitions/deprecated-aliases.js
var pE = P((gl) => {
"use strict";
Object.defineProperty(gl, "__esModule", {
value: !0
});
gl.DEPRECATED_ALIASES = void 0;
var p1e = gl.DEPRECATED_ALIASES = {
ModuleDeclaration: "ImportOrExportDeclaration"
};
});
// ../node_modules/@babel/types/lib/definitions/index.js
var Ir = P((ir) => {
"use strict";
Object.defineProperty(ir, "__esModule", {
value: !0
});
Object.defineProperty(ir, "ALIAS_KEYS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return dr.ALIAS_KEYS;
}, "get")
});
Object.defineProperty(ir, "BUILDER_KEYS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return dr.BUILDER_KEYS;
}, "get")
});
Object.defineProperty(ir, "DEPRECATED_ALIASES", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return xf.DEPRECATED_ALIASES;
}, "get")
});
Object.defineProperty(ir, "DEPRECATED_KEYS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return dr.DEPRECATED_KEYS;
}, "get")
});
Object.defineProperty(ir, "FLIPPED_ALIAS_KEYS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return dr.FLIPPED_ALIAS_KEYS;
}, "get")
});
Object.defineProperty(ir, "NODE_FIELDS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return dr.NODE_FIELDS;
}, "get")
});
Object.defineProperty(ir, "NODE_PARENT_VALIDATIONS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return dr.NODE_PARENT_VALIDATIONS;
}, "get")
});
Object.defineProperty(ir, "PLACEHOLDERS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return vf.PLACEHOLDERS;
}, "get")
});
Object.defineProperty(ir, "PLACEHOLDERS_ALIAS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return vf.PLACEHOLDERS_ALIAS;
}, "get")
});
Object.defineProperty(ir, "PLACEHOLDERS_FLIPPED_ALIAS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return vf.PLACEHOLDERS_FLIPPED_ALIAS;
}, "get")
});
ir.TYPES = void 0;
Object.defineProperty(ir, "VISITOR_KEYS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return dr.VISITOR_KEYS;
}, "get")
});
Oa();
Z1();
eE();
tE();
rE();
cE();
var dr = on(), vf = Tf(), xf = pE();
Object.keys(xf.DEPRECATED_ALIASES).forEach((e) => {
dr.FLIPPED_ALIAS_KEYS[e] = dr.FLIPPED_ALIAS_KEYS[xf.DEPRECATED_ALIASES[e]];
});
for (let {
types: e,
set: t
} of dr.allExpandedTypes)
for (let r of e) {
let n = dr.FLIPPED_ALIAS_KEYS[r];
n ? n.forEach(t.add, t) : t.add(r);
}
var d1e = ir.TYPES = [].concat(Object.keys(dr.VISITOR_KEYS), Object.keys(dr.FLIPPED_ALIAS_KEYS), Object.keys(dr.DEPRECATED_KEYS));
});
// ../node_modules/@babel/types/lib/validators/validate.js
var dl = P((Ai) => {
"use strict";
Object.defineProperty(Ai, "__esModule", {
value: !0
});
Ai.default = f8;
Ai.validateChild = dE;
Ai.validateField = fE;
Ai.validateInternal = d8;
var Na = Ir();
function f8(e, t, r) {
if (!e) return;
let n = Na.NODE_FIELDS[e.type];
if (!n) return;
let s = n[t];
fE(e, t, r, s), dE(e, t, r);
}
i(f8, "validate");
function d8(e, t, r, n, s) {
if (e != null && e.validate && !(e.optional && n == null) && (e.validate(t, r, n), s)) {
var a;
let o = n.type;
if (o == null) return;
(a = Na.NODE_PARENT_VALIDATIONS[o]) == null || a.call(Na.NODE_PARENT_VALIDATIONS, t, r, n);
}
}
i(d8, "validateInternal");
function fE(e, t, r, n) {
n != null && n.validate && (n.optional && r == null || n.validate(e, t, r));
}
i(fE, "validateField");
function dE(e, t, r) {
var n;
let s = r?.type;
s != null && ((n = Na.NODE_PARENT_VALIDATIONS[s]) == null || n.call(Na.NODE_PARENT_VALIDATIONS, e, t, r));
}
i(dE, "validateChild");
});
// ../node_modules/@babel/types/lib/builders/generated/lowercase.js
var Pf = P((b) => {
"use strict";
Object.defineProperty(b, "__esModule", {
value: !0
});
b.anyTypeAnnotation = H6;
b.argumentPlaceholder = xL;
b.arrayExpression = y8;
b.arrayPattern = p6;
b.arrayTypeAnnotation = Y6;
b.arrowFunctionExpression = f6;
b.assignmentExpression = g8;
b.assignmentPattern = c6;
b.awaitExpression = k6;
b.bigIntLiteral = j6;
b.binaryExpression = b8;
b.bindExpression = vL;
b.blockStatement = x8;
b.booleanLiteral = V8;
b.booleanLiteralTypeAnnotation = X6;
b.booleanTypeAnnotation = J6;
b.breakStatement = v8;
b.callExpression = P8;
b.catchClause = A8;
b.classAccessorProperty = U6;
b.classBody = d6;
b.classDeclaration = m6;
b.classExpression = h6;
b.classImplements = Q6;
b.classMethod = D6;
b.classPrivateMethod = $6;
b.classPrivateProperty = V6;
b.classProperty = q6;
b.conditionalExpression = C8;
b.continueStatement = D8;
b.debuggerStatement = w8;
b.decimalLiteral = IL;
b.declareClass = Z6;
b.declareExportAllDeclaration = lj;
b.declareExportDeclaration = oj;
b.declareFunction = ej;
b.declareInterface = tj;
b.declareModule = rj;
b.declareModuleExports = nj;
b.declareOpaqueType = ij;
b.declareTypeAlias = sj;
b.declareVariable = aj;
b.declaredPredicate = uj;
b.decorator = PL;
b.directive = T8;
b.directiveLiteral = S8;
b.doExpression = AL;
b.doWhileStatement = I8;
b.emptyStatement = _8;
b.emptyTypeAnnotation = Tj;
b.enumBooleanBody = Yj;
b.enumBooleanMember = Qj;
b.enumDeclaration = Hj;
b.enumDefaultedMember = tL;
b.enumNumberBody = Jj;
b.enumNumberMember = Zj;
b.enumStringBody = Xj;
b.enumStringMember = eL;
b.enumSymbolBody = zj;
b.existsTypeAnnotation = cj;
b.exportAllDeclaration = y6;
b.exportDefaultDeclaration = g6;
b.exportDefaultSpecifier = CL;
b.exportNamedDeclaration = b6;
b.exportNamespaceSpecifier = L6;
b.exportSpecifier = E6;
b.expressionStatement = O8;
b.file = N8;
b.forInStatement = B8;
b.forOfStatement = T6;
b.forStatement = k8;
b.functionDeclaration = F8;
b.functionExpression = j8;
b.functionTypeAnnotation = pj;
b.functionTypeParam = fj;
b.genericTypeAnnotation = dj;
b.identifier = L8;
b.ifStatement = M8;
b.import = F6;
b.importAttribute = G6;
b.importDeclaration = S6;
b.importDefaultSpecifier = x6;
b.importExpression = A6;
b.importNamespaceSpecifier = v6;
b.importSpecifier = P6;
b.indexedAccessType = rL;
b.inferredPredicate = hj;
b.interfaceDeclaration = yj;
b.interfaceExtends = mj;
b.interfaceTypeAnnotation = gj;
b.interpreterDirective = E8;
b.intersectionTypeAnnotation = bj;
b.jSXAttribute = b.jsxAttribute = sL;
b.jSXClosingElement = b.jsxClosingElement = iL;
b.jSXClosingFragment = b.jsxClosingFragment = bL;
b.jSXElement = b.jsxElement = aL;
b.jSXEmptyExpression = b.jsxEmptyExpression = oL;
b.jSXExpressionContainer = b.jsxExpressionContainer = lL;
b.jSXFragment = b.jsxFragment = yL;
b.jSXIdentifier = b.jsxIdentifier = cL;
b.jSXMemberExpression = b.jsxMemberExpression = pL;
b.jSXNamespacedName = b.jsxNamespacedName = fL;
b.jSXOpeningElement = b.jsxOpeningElement = dL;
b.jSXOpeningFragment = b.jsxOpeningFragment = gL;
b.jSXSpreadAttribute = b.jsxSpreadAttribute = hL;
b.jSXSpreadChild = b.jsxSpreadChild = uL;
b.jSXText = b.jsxText = mL;
b.labeledStatement = R8;
b.logicalExpression = $8;
b.memberExpression = W8;
b.metaProperty = C6;
b.mixedTypeAnnotation = Ej;
b.moduleExpression = _L;
b.newExpression = K8;
b.noop = EL;
b.nullLiteral = U8;
b.nullLiteralTypeAnnotation = z6;
b.nullableTypeAnnotation = Sj;
b.numberLiteral = YM;
b.numberLiteralTypeAnnotation = xj;
b.numberTypeAnnotation = vj;
b.numericLiteral = hE;
b.objectExpression = H8;
b.objectMethod = Y8;
b.objectPattern = w6;
b.objectProperty = J8;
b.objectTypeAnnotation = Pj;
b.objectTypeCallProperty = Cj;
b.objectTypeIndexer = Dj;
b.objectTypeInternalSlot = Aj;
b.objectTypeProperty = wj;
b.objectTypeSpreadProperty = Ij;
b.opaqueType = _j;
b.optionalCallExpression = R6;
b.optionalIndexedAccessType = nL;
b.optionalMemberExpression = M6;
b.parenthesizedExpression = Q8;
b.pipelineBareFunction = BL;
b.pipelinePrimaryTopicReference = kL;
b.pipelineTopicExpression = NL;
b.placeholder = TL;
b.privateName = W6;
b.program = G8;
b.qualifiedTypeIdentifier = Oj;
b.recordExpression = DL;
b.regExpLiteral = mE;
b.regexLiteral = JM;
b.restElement = yE;
b.restProperty = XM;
b.returnStatement = X8;
b.sequenceExpression = z8;
b.spreadElement = gE;
b.spreadProperty = zM;
b.staticBlock = K6;
b.stringLiteral = q8;
b.stringLiteralTypeAnnotation = Nj;
b.stringTypeAnnotation = Bj;
b.super = I6;
b.switchCase = Z8;
b.switchStatement = e6;
b.symbolTypeAnnotation = kj;
b.taggedTemplateExpression = _6;
b.templateElement = O6;
b.templateLiteral = N6;
b.thisExpression = t6;
b.thisTypeAnnotation = Fj;
b.throwStatement = r6;
b.topicReference = OL;
b.tryStatement = n6;
b.tSAnyKeyword = b.tsAnyKeyword = WL;
b.tSArrayType = b.tsArrayType = cM;
b.tSAsExpression = b.tsAsExpression = _M;
b.tSBigIntKeyword = b.tsBigIntKeyword = GL;
b.tSBooleanKeyword = b.tsBooleanKeyword = KL;
b.tSCallSignatureDeclaration = b.tsCallSignatureDeclaration = RL;
b.tSConditionalType = b.tsConditionalType = gM;
b.tSConstructSignatureDeclaration = b.tsConstructSignatureDeclaration = qL;
b.tSConstructorType = b.tsConstructorType = iM;
b.tSDeclareFunction = b.tsDeclareFunction = jL;
b.tSDeclareMethod = b.tsDeclareMethod = LL;
b.tSEnumBody = b.tsEnumBody = BM;
b.tSEnumDeclaration = b.tsEnumDeclaration = kM;
b.tSEnumMember = b.tsEnumMember = FM;
b.tSExportAssignment = b.tsExportAssignment = VM;
b.tSExpressionWithTypeArguments = b.tsExpressionWithTypeArguments = AM;
b.tSExternalModuleReference = b.tsExternalModuleReference = qM;
b.tSFunctionType = b.tsFunctionType = sM;
b.tSImportEqualsDeclaration = b.tsImportEqualsDeclaration = RM;
b.tSImportType = b.tsImportType = MM;
b.tSIndexSignature = b.tsIndexSignature = $L;
b.tSIndexedAccessType = b.tsIndexedAccessType = SM;
b.tSInferType = b.tsInferType = bM;
b.tSInstantiationExpression = b.tsInstantiationExpression = IM;
b.tSInterfaceBody = b.tsInterfaceBody = DM;
b.tSInterfaceDeclaration = b.tsInterfaceDeclaration = CM;
b.tSIntersectionType = b.tsIntersectionType = yM;
b.tSIntrinsicKeyword = b.tsIntrinsicKeyword = HL;
b.tSLiteralType = b.tsLiteralType = PM;
b.tSMappedType = b.tsMappedType = xM;
b.tSMethodSignature = b.tsMethodSignature = VL;
b.tSModuleBlock = b.tsModuleBlock = LM;
b.tSModuleDeclaration = b.tsModuleDeclaration = jM;
b.tSNamedTupleMember = b.tsNamedTupleMember = hM;
b.tSNamespaceExportDeclaration = b.tsNamespaceExportDeclaration = $M;
b.tSNeverKeyword = b.tsNeverKeyword = YL;
b.tSNonNullExpression = b.tsNonNullExpression = UM;
b.tSNullKeyword = b.tsNullKeyword = JL;
b.tSNumberKeyword = b.tsNumberKeyword = XL;
b.tSObjectKeyword = b.tsObjectKeyword = zL;
b.tSOptionalType = b.tsOptionalType = fM;
b.tSParameterProperty = b.tsParameterProperty = FL;
b.tSParenthesizedType = b.tsParenthesizedType = EM;
b.tSPropertySignature = b.tsPropertySignature = UL;
b.tSQualifiedName = b.tsQualifiedName = ML;
b.tSRestType = b.tsRestType = dM;
b.tSSatisfiesExpression = b.tsSatisfiesExpression = OM;
b.tSStringKeyword = b.tsStringKeyword = QL;
b.tSSymbolKeyword = b.tsSymbolKeyword = ZL;
b.tSTemplateLiteralType = b.tsTemplateLiteralType = vM;
b.tSThisType = b.tsThisType = nM;
b.tSTupleType = b.tsTupleType = pM;
b.tSTypeAliasDeclaration = b.tsTypeAliasDeclaration = wM;
b.tSTypeAnnotation = b.tsTypeAnnotation = WM;
b.tSTypeAssertion = b.tsTypeAssertion = NM;
b.tSTypeLiteral = b.tsTypeLiteral = uM;
b.tSTypeOperator = b.tsTypeOperator = TM;
b.tSTypeParameter = b.tsTypeParameter = HM;
b.tSTypeParameterDeclaration = b.tsTypeParameterDeclaration = GM;
b.tSTypeParameterInstantiation = b.tsTypeParameterInstantiation = KM;
b.tSTypePredicate = b.tsTypePredicate = oM;
b.tSTypeQuery = b.tsTypeQuery = lM;
b.tSTypeReference = b.tsTypeReference = aM;
b.tSUndefinedKeyword = b.tsUndefinedKeyword = eM;
b.tSUnionType = b.tsUnionType = mM;
b.tSUnknownKeyword = b.tsUnknownKeyword = tM;
b.tSVoidKeyword = b.tsVoidKeyword = rM;
b.tupleExpression = wL;
b.tupleTypeAnnotation = jj;
b.typeAlias = Mj;
b.typeAnnotation = Rj;
b.typeCastExpression = qj;
b.typeParameter = Uj;
b.typeParameterDeclaration = Vj;
b.typeParameterInstantiation = $j;
b.typeofTypeAnnotation = Lj;
b.unaryExpression = s6;
b.unionTypeAnnotation = Wj;
b.updateExpression = i6;
b.v8IntrinsicIdentifier = SL;
b.variableDeclaration = a6;
b.variableDeclarator = o6;
b.variance = Kj;
b.voidTypeAnnotation = Gj;
b.whileStatement = l6;
b.withStatement = u6;
b.yieldExpression = B6;
var h8 = dl(), bl = va(), m8 = on(), {
validateInternal: m
} = h8, {
NODE_FIELDS: k
} = m8;
function y8(e = []) {
let t = {
type: "ArrayExpression",
elements: e
}, r = k.ArrayExpression;
return m(r.elements, t, "elements", e, 1), t;
}
i(y8, "arrayExpression");
function g8(e, t, r) {
let n = {
type: "AssignmentExpression",
operator: e,
left: t,
right: r
}, s = k.AssignmentExpression;
return m(s.operator, n, "operator", e), m(s.left, n, "left", t, 1), m(s.right, n, "right", r, 1), n;
}
i(g8, "assignmentExpression");
function b8(e, t, r) {
let n = {
type: "BinaryExpression",
operator: e,
left: t,
right: r
}, s = k.BinaryExpression;
return m(s.operator, n, "operator", e), m(s.left, n, "left", t, 1), m(s.right, n, "right", r, 1), n;
}
i(b8, "binaryExpression");
function E8(e) {
let t = {
type: "InterpreterDirective",
value: e
}, r = k.InterpreterDirective;
return m(r.value, t, "value", e), t;
}
i(E8, "interpreterDirective");
function T8(e) {
let t = {
type: "Directive",
value: e
}, r = k.Directive;
return m(r.value, t, "value", e, 1), t;
}
i(T8, "directive");
function S8(e) {
let t = {
type: "DirectiveLiteral",
value: e
}, r = k.DirectiveLiteral;
return m(r.value, t, "value", e), t;
}
i(S8, "directiveLiteral");
function x8(e, t = []) {
let r = {
type: "BlockStatement",
body: e,
directives: t
}, n = k.BlockStatement;
return m(n.body, r, "body", e, 1), m(n.directives, r, "directives", t, 1), r;
}
i(x8, "blockStatement");
function v8(e = null) {
let t = {
type: "BreakStatement",
label: e
}, r = k.BreakStatement;
return m(r.label, t, "label", e, 1), t;
}
i(v8, "breakStatement");
function P8(e, t) {
let r = {
type: "CallExpression",
callee: e,
arguments: t
}, n = k.CallExpression;
return m(n.callee, r, "callee", e, 1), m(n.arguments, r, "arguments", t, 1), r;
}
i(P8, "callExpression");
function A8(e = null, t) {
let r = {
type: "CatchClause",
param: e,
body: t
}, n = k.CatchClause;
return m(n.param, r, "param", e, 1), m(n.body, r, "body", t, 1), r;
}
i(A8, "catchClause");
function C8(e, t, r) {
let n = {
type: "ConditionalExpression",
test: e,
consequent: t,
alternate: r
}, s = k.ConditionalExpression;
return m(s.test, n, "test", e, 1), m(s.consequent, n, "consequent", t, 1), m(s.alternate, n, "alternate", r, 1), n;
}
i(C8, "conditionalExpression");
function D8(e = null) {
let t = {
type: "ContinueStatement",
label: e
}, r = k.ContinueStatement;
return m(r.label, t, "label", e, 1), t;
}
i(D8, "continueStatement");
function w8() {
return {
type: "DebuggerStatement"
};
}
i(w8, "debuggerStatement");
function I8(e, t) {
let r = {
type: "DoWhileStatement",
test: e,
body: t
}, n = k.DoWhileStatement;
return m(n.test, r, "test", e, 1), m(n.body, r, "body", t, 1), r;
}
i(I8, "doWhileStatement");
function _8() {
return {
type: "EmptyStatement"
};
}
i(_8, "emptyStatement");
function O8(e) {
let t = {
type: "ExpressionStatement",
expression: e
}, r = k.ExpressionStatement;
return m(r.expression, t, "expression", e, 1), t;
}
i(O8, "expressionStatement");
function N8(e, t = null, r = null) {
let n = {
type: "File",
program: e,
comments: t,
tokens: r
}, s = k.File;
return m(s.program, n, "program", e, 1), m(s.comments, n, "comments", t, 1), m(s.tokens, n, "tokens", r), n;
}
i(N8, "file");
function B8(e, t, r) {
let n = {
type: "ForInStatement",
left: e,
right: t,
body: r
}, s = k.ForInStatement;
return m(s.left, n, "left", e, 1), m(s.right, n, "right", t, 1), m(s.body, n, "body", r, 1), n;
}
i(B8, "forInStatement");
function k8(e = null, t = null, r = null, n) {
let s = {
type: "ForStatement",
init: e,
test: t,
update: r,
body: n
}, a = k.ForStatement;
return m(a.init, s, "init", e, 1), m(a.test, s, "test", t, 1), m(a.update, s, "update", r, 1), m(a.body, s, "body", n, 1), s;
}
i(k8, "forStatement");
function F8(e = null, t, r, n = !1, s = !1) {
let a = {
type: "FunctionDeclaration",
id: e,
params: t,
body: r,
generator: n,
async: s
}, o = k.FunctionDeclaration;
return m(o.id, a, "id", e, 1), m(o.params, a, "params", t, 1), m(o.body, a, "body", r, 1), m(o.generator, a, "generator", n), m(o.async,
a, "async", s), a;
}
i(F8, "functionDeclaration");
function j8(e = null, t, r, n = !1, s = !1) {
let a = {
type: "FunctionExpression",
id: e,
params: t,
body: r,
generator: n,
async: s
}, o = k.FunctionExpression;
return m(o.id, a, "id", e, 1), m(o.params, a, "params", t, 1), m(o.body, a, "body", r, 1), m(o.generator, a, "generator", n), m(o.async,
a, "async", s), a;
}
i(j8, "functionExpression");
function L8(e) {
let t = {
type: "Identifier",
name: e
}, r = k.Identifier;
return m(r.name, t, "name", e), t;
}
i(L8, "identifier");
function M8(e, t, r = null) {
let n = {
type: "IfStatement",
test: e,
consequent: t,
alternate: r
}, s = k.IfStatement;
return m(s.test, n, "test", e, 1), m(s.consequent, n, "consequent", t, 1), m(s.alternate, n, "alternate", r, 1), n;
}
i(M8, "ifStatement");
function R8(e, t) {
let r = {
type: "LabeledStatement",
label: e,
body: t
}, n = k.LabeledStatement;
return m(n.label, r, "label", e, 1), m(n.body, r, "body", t, 1), r;
}
i(R8, "labeledStatement");
function q8(e) {
let t = {
type: "StringLiteral",
value: e
}, r = k.StringLiteral;
return m(r.value, t, "value", e), t;
}
i(q8, "stringLiteral");
function hE(e) {
let t = {
type: "NumericLiteral",
value: e
}, r = k.NumericLiteral;
return m(r.value, t, "value", e), t;
}
i(hE, "numericLiteral");
function U8() {
return {
type: "NullLiteral"
};
}
i(U8, "nullLiteral");
function V8(e) {
let t = {
type: "BooleanLiteral",
value: e
}, r = k.BooleanLiteral;
return m(r.value, t, "value", e), t;
}
i(V8, "booleanLiteral");
function mE(e, t = "") {
let r = {
type: "RegExpLiteral",
pattern: e,
flags: t
}, n = k.RegExpLiteral;
return m(n.pattern, r, "pattern", e), m(n.flags, r, "flags", t), r;
}
i(mE, "regExpLiteral");
function $8(e, t, r) {
let n = {
type: "LogicalExpression",
operator: e,
left: t,
right: r
}, s = k.LogicalExpression;
return m(s.operator, n, "operator", e), m(s.left, n, "left", t, 1), m(s.right, n, "right", r, 1), n;
}
i($8, "logicalExpression");
function W8(e, t, r = !1, n = null) {
let s = {
type: "MemberExpression",
object: e,
property: t,
computed: r,
optional: n
}, a = k.MemberExpression;
return m(a.object, s, "object", e, 1), m(a.property, s, "property", t, 1), m(a.computed, s, "computed", r), m(a.optional, s, "optional",
n), s;
}
i(W8, "memberExpression");
function K8(e, t) {
let r = {
type: "NewExpression",
callee: e,
arguments: t
}, n = k.NewExpression;
return m(n.callee, r, "callee", e, 1), m(n.arguments, r, "arguments", t, 1), r;
}
i(K8, "newExpression");
function G8(e, t = [], r = "script", n = null) {
let s = {
type: "Program",
body: e,
directives: t,
sourceType: r,
interpreter: n
}, a = k.Program;
return m(a.body, s, "body", e, 1), m(a.directives, s, "directives", t, 1), m(a.sourceType, s, "sourceType", r), m(a.interpreter, s, "int\
erpreter", n, 1), s;
}
i(G8, "program");
function H8(e) {
let t = {
type: "ObjectExpression",
properties: e
}, r = k.ObjectExpression;
return m(r.properties, t, "properties", e, 1), t;
}
i(H8, "objectExpression");
function Y8(e = "method", t, r, n, s = !1, a = !1, o = !1) {
let l = {
type: "ObjectMethod",
kind: e,
key: t,
params: r,
body: n,
computed: s,
generator: a,
async: o
}, u = k.ObjectMethod;
return m(u.kind, l, "kind", e), m(u.key, l, "key", t, 1), m(u.params, l, "params", r, 1), m(u.body, l, "body", n, 1), m(u.computed, l, "\
computed", s), m(u.generator, l, "generator", a), m(u.async, l, "async", o), l;
}
i(Y8, "objectMethod");
function J8(e, t, r = !1, n = !1, s = null) {
let a = {
type: "ObjectProperty",
key: e,
value: t,
computed: r,
shorthand: n,
decorators: s
}, o = k.ObjectProperty;
return m(o.key, a, "key", e, 1), m(o.value, a, "value", t, 1), m(o.computed, a, "computed", r), m(o.shorthand, a, "shorthand", n), m(o.decorators,
a, "decorators", s, 1), a;
}
i(J8, "objectProperty");
function yE(e) {
let t = {
type: "RestElement",
argument: e
}, r = k.RestElement;
return m(r.argument, t, "argument", e, 1), t;
}
i(yE, "restElement");
function X8(e = null) {
let t = {
type: "ReturnStatement",
argument: e
}, r = k.ReturnStatement;
return m(r.argument, t, "argument", e, 1), t;
}
i(X8, "returnStatement");
function z8(e) {
let t = {
type: "SequenceExpression",
expressions: e
}, r = k.SequenceExpression;
return m(r.expressions, t, "expressions", e, 1), t;
}
i(z8, "sequenceExpression");
function Q8(e) {
let t = {
type: "ParenthesizedExpression",
expression: e
}, r = k.ParenthesizedExpression;
return m(r.expression, t, "expression", e, 1), t;
}
i(Q8, "parenthesizedExpression");
function Z8(e = null, t) {
let r = {
type: "SwitchCase",
test: e,
consequent: t
}, n = k.SwitchCase;
return m(n.test, r, "test", e, 1), m(n.consequent, r, "consequent", t, 1), r;
}
i(Z8, "switchCase");
function e6(e, t) {
let r = {
type: "SwitchStatement",
discriminant: e,
cases: t
}, n = k.SwitchStatement;
return m(n.discriminant, r, "discriminant", e, 1), m(n.cases, r, "cases", t, 1), r;
}
i(e6, "switchStatement");
function t6() {
return {
type: "ThisExpression"
};
}
i(t6, "thisExpression");
function r6(e) {
let t = {
type: "ThrowStatement",
argument: e
}, r = k.ThrowStatement;
return m(r.argument, t, "argument", e, 1), t;
}
i(r6, "throwStatement");
function n6(e, t = null, r = null) {
let n = {
type: "TryStatement",
block: e,
handler: t,
finalizer: r
}, s = k.TryStatement;
return m(s.block, n, "block", e, 1), m(s.handler, n, "handler", t, 1), m(s.finalizer, n, "finalizer", r, 1), n;
}
i(n6, "tryStatement");
function s6(e, t, r = !0) {
let n = {
type: "UnaryExpression",
operator: e,
argument: t,
prefix: r
}, s = k.UnaryExpression;
return m(s.operator, n, "operator", e), m(s.argument, n, "argument", t, 1), m(s.prefix, n, "prefix", r), n;
}
i(s6, "unaryExpression");
function i6(e, t, r = !1) {
let n = {
type: "UpdateExpression",
operator: e,
argument: t,
prefix: r
}, s = k.UpdateExpression;
return m(s.operator, n, "operator", e), m(s.argument, n, "argument", t, 1), m(s.prefix, n, "prefix", r), n;
}
i(i6, "updateExpression");
function a6(e, t) {
let r = {
type: "VariableDeclaration",
kind: e,
declarations: t
}, n = k.VariableDeclaration;
return m(n.kind, r, "kind", e), m(n.declarations, r, "declarations", t, 1), r;
}
i(a6, "variableDeclaration");
function o6(e, t = null) {
let r = {
type: "VariableDeclarator",
id: e,
init: t
}, n = k.VariableDeclarator;
return m(n.id, r, "id", e, 1), m(n.init, r, "init", t, 1), r;
}
i(o6, "variableDeclarator");
function l6(e, t) {
let r = {
type: "WhileStatement",
test: e,
body: t
}, n = k.WhileStatement;
return m(n.test, r, "test", e, 1), m(n.body, r, "body", t, 1), r;
}
i(l6, "whileStatement");
function u6(e, t) {
let r = {
type: "WithStatement",
object: e,
body: t
}, n = k.WithStatement;
return m(n.object, r, "object", e, 1), m(n.body, r, "body", t, 1), r;
}
i(u6, "withStatement");
function c6(e, t) {
let r = {
type: "AssignmentPattern",
left: e,
right: t
}, n = k.AssignmentPattern;
return m(n.left, r, "left", e, 1), m(n.right, r, "right", t, 1), r;
}
i(c6, "assignmentPattern");
function p6(e) {
let t = {
type: "ArrayPattern",
elements: e
}, r = k.ArrayPattern;
return m(r.elements, t, "elements", e, 1), t;
}
i(p6, "arrayPattern");
function f6(e, t, r = !1) {
let n = {
type: "ArrowFunctionExpression",
params: e,
body: t,
async: r,
expression: null
}, s = k.ArrowFunctionExpression;
return m(s.params, n, "params", e, 1), m(s.body, n, "body", t, 1), m(s.async, n, "async", r), n;
}
i(f6, "arrowFunctionExpression");
function d6(e) {
let t = {
type: "ClassBody",
body: e
}, r = k.ClassBody;
return m(r.body, t, "body", e, 1), t;
}
i(d6, "classBody");
function h6(e = null, t = null, r, n = null) {
let s = {
type: "ClassExpression",
id: e,
superClass: t,
body: r,
decorators: n
}, a = k.ClassExpression;
return m(a.id, s, "id", e, 1), m(a.superClass, s, "superClass", t, 1), m(a.body, s, "body", r, 1), m(a.decorators, s, "decorators", n, 1),
s;
}
i(h6, "classExpression");
function m6(e = null, t = null, r, n = null) {
let s = {
type: "ClassDeclaration",
id: e,
superClass: t,
body: r,
decorators: n
}, a = k.ClassDeclaration;
return m(a.id, s, "id", e, 1), m(a.superClass, s, "superClass", t, 1), m(a.body, s, "body", r, 1), m(a.decorators, s, "decorators", n, 1),
s;
}
i(m6, "classDeclaration");
function y6(e) {
let t = {
type: "ExportAllDeclaration",
source: e
}, r = k.ExportAllDeclaration;
return m(r.source, t, "source", e, 1), t;
}
i(y6, "exportAllDeclaration");
function g6(e) {
let t = {
type: "ExportDefaultDeclaration",
declaration: e
}, r = k.ExportDefaultDeclaration;
return m(r.declaration, t, "declaration", e, 1), t;
}
i(g6, "exportDefaultDeclaration");
function b6(e = null, t = [], r = null) {
let n = {
type: "ExportNamedDeclaration",
declaration: e,
specifiers: t,
source: r
}, s = k.ExportNamedDeclaration;
return m(s.declaration, n, "declaration", e, 1), m(s.specifiers, n, "specifiers", t, 1), m(s.source, n, "source", r, 1), n;
}
i(b6, "exportNamedDeclaration");
function E6(e, t) {
let r = {
type: "ExportSpecifier",
local: e,
exported: t
}, n = k.ExportSpecifier;
return m(n.local, r, "local", e, 1), m(n.exported, r, "exported", t, 1), r;
}
i(E6, "exportSpecifier");
function T6(e, t, r, n = !1) {
let s = {
type: "ForOfStatement",
left: e,
right: t,
body: r,
await: n
}, a = k.ForOfStatement;
return m(a.left, s, "left", e, 1), m(a.right, s, "right", t, 1), m(a.body, s, "body", r, 1), m(a.await, s, "await", n), s;
}
i(T6, "forOfStatement");
function S6(e, t) {
let r = {
type: "ImportDeclaration",
specifiers: e,
source: t
}, n = k.ImportDeclaration;
return m(n.specifiers, r, "specifiers", e, 1), m(n.source, r, "source", t, 1), r;
}
i(S6, "importDeclaration");
function x6(e) {
let t = {
type: "ImportDefaultSpecifier",
local: e
}, r = k.ImportDefaultSpecifier;
return m(r.local, t, "local", e, 1), t;
}
i(x6, "importDefaultSpecifier");
function v6(e) {
let t = {
type: "ImportNamespaceSpecifier",
local: e
}, r = k.ImportNamespaceSpecifier;
return m(r.local, t, "local", e, 1), t;
}
i(v6, "importNamespaceSpecifier");
function P6(e, t) {
let r = {
type: "ImportSpecifier",
local: e,
imported: t
}, n = k.ImportSpecifier;
return m(n.local, r, "local", e, 1), m(n.imported, r, "imported", t, 1), r;
}
i(P6, "importSpecifier");
function A6(e, t = null) {
let r = {
type: "ImportExpression",
source: e,
options: t
}, n = k.ImportExpression;
return m(n.source, r, "source", e, 1), m(n.options, r, "options", t, 1), r;
}
i(A6, "importExpression");
function C6(e, t) {
let r = {
type: "MetaProperty",
meta: e,
property: t
}, n = k.MetaProperty;
return m(n.meta, r, "meta", e, 1), m(n.property, r, "property", t, 1), r;
}
i(C6, "metaProperty");
function D6(e = "method", t, r, n, s = !1, a = !1, o = !1, l = !1) {
let u = {
type: "ClassMethod",
kind: e,
key: t,
params: r,
body: n,
computed: s,
static: a,
generator: o,
async: l
}, c = k.ClassMethod;
return m(c.kind, u, "kind", e), m(c.key, u, "key", t, 1), m(c.params, u, "params", r, 1), m(c.body, u, "body", n, 1), m(c.computed, u, "\
computed", s), m(c.static, u, "static", a), m(c.generator, u, "generator", o), m(c.async, u, "async", l), u;
}
i(D6, "classMethod");
function w6(e) {
let t = {
type: "ObjectPattern",
properties: e
}, r = k.ObjectPattern;
return m(r.properties, t, "properties", e, 1), t;
}
i(w6, "objectPattern");
function gE(e) {
let t = {
type: "SpreadElement",
argument: e
}, r = k.SpreadElement;
return m(r.argument, t, "argument", e, 1), t;
}
i(gE, "spreadElement");
function I6() {
return {
type: "Super"
};
}
i(I6, "_super");
function _6(e, t) {
let r = {
type: "TaggedTemplateExpression",
tag: e,
quasi: t
}, n = k.TaggedTemplateExpression;
return m(n.tag, r, "tag", e, 1), m(n.quasi, r, "quasi", t, 1), r;
}
i(_6, "taggedTemplateExpression");
function O6(e, t = !1) {
let r = {
type: "TemplateElement",
value: e,
tail: t
}, n = k.TemplateElement;
return m(n.value, r, "value", e), m(n.tail, r, "tail", t), r;
}
i(O6, "templateElement");
function N6(e, t) {
let r = {
type: "TemplateLiteral",
quasis: e,
expressions: t
}, n = k.TemplateLiteral;
return m(n.quasis, r, "quasis", e, 1), m(n.expressions, r, "expressions", t, 1), r;
}
i(N6, "templateLiteral");
function B6(e = null, t = !1) {
let r = {
type: "YieldExpression",
argument: e,
delegate: t
}, n = k.YieldExpression;
return m(n.argument, r, "argument", e, 1), m(n.delegate, r, "delegate", t), r;
}
i(B6, "yieldExpression");
function k6(e) {
let t = {
type: "AwaitExpression",
argument: e
}, r = k.AwaitExpression;
return m(r.argument, t, "argument", e, 1), t;
}
i(k6, "awaitExpression");
function F6() {
return {
type: "Import"
};
}
i(F6, "_import");
function j6(e) {
let t = {
type: "BigIntLiteral",
value: e
}, r = k.BigIntLiteral;
return m(r.value, t, "value", e), t;
}
i(j6, "bigIntLiteral");
function L6(e) {
let t = {
type: "ExportNamespaceSpecifier",
exported: e
}, r = k.ExportNamespaceSpecifier;
return m(r.exported, t, "exported", e, 1), t;
}
i(L6, "exportNamespaceSpecifier");
function M6(e, t, r = !1, n) {
let s = {
type: "OptionalMemberExpression",
object: e,
property: t,
computed: r,
optional: n
}, a = k.OptionalMemberExpression;
return m(a.object, s, "object", e, 1), m(a.property, s, "property", t, 1), m(a.computed, s, "computed", r), m(a.optional, s, "optional",
n), s;
}
i(M6, "optionalMemberExpression");
function R6(e, t, r) {
let n = {
type: "OptionalCallExpression",
callee: e,
arguments: t,
optional: r
}, s = k.OptionalCallExpression;
return m(s.callee, n, "callee", e, 1), m(s.arguments, n, "arguments", t, 1), m(s.optional, n, "optional", r), n;
}
i(R6, "optionalCallExpression");
function q6(e, t = null, r = null, n = null, s = !1, a = !1) {
let o = {
type: "ClassProperty",
key: e,
value: t,
typeAnnotation: r,
decorators: n,
computed: s,
static: a
}, l = k.ClassProperty;
return m(l.key, o, "key", e, 1), m(l.value, o, "value", t, 1), m(l.typeAnnotation, o, "typeAnnotation", r, 1), m(l.decorators, o, "decor\
ators", n, 1), m(l.computed, o, "computed", s), m(l.static, o, "static", a), o;
}
i(q6, "classProperty");
function U6(e, t = null, r = null, n = null, s = !1, a = !1) {
let o = {
type: "ClassAccessorProperty",
key: e,
value: t,
typeAnnotation: r,
decorators: n,
computed: s,
static: a
}, l = k.ClassAccessorProperty;
return m(l.key, o, "key", e, 1), m(l.value, o, "value", t, 1), m(l.typeAnnotation, o, "typeAnnotation", r, 1), m(l.decorators, o, "decor\
ators", n, 1), m(l.computed, o, "computed", s), m(l.static, o, "static", a), o;
}
i(U6, "classAccessorProperty");
function V6(e, t = null, r = null, n = !1) {
let s = {
type: "ClassPrivateProperty",
key: e,
value: t,
decorators: r,
static: n
}, a = k.ClassPrivateProperty;
return m(a.key, s, "key", e, 1), m(a.value, s, "value", t, 1), m(a.decorators, s, "decorators", r, 1), m(a.static, s, "static", n), s;
}
i(V6, "classPrivateProperty");
function $6(e = "method", t, r, n, s = !1) {
let a = {
type: "ClassPrivateMethod",
kind: e,
key: t,
params: r,
body: n,
static: s
}, o = k.ClassPrivateMethod;
return m(o.kind, a, "kind", e), m(o.key, a, "key", t, 1), m(o.params, a, "params", r, 1), m(o.body, a, "body", n, 1), m(o.static, a, "st\
atic", s), a;
}
i($6, "classPrivateMethod");
function W6(e) {
let t = {
type: "PrivateName",
id: e
}, r = k.PrivateName;
return m(r.id, t, "id", e, 1), t;
}
i(W6, "privateName");
function K6(e) {
let t = {
type: "StaticBlock",
body: e
}, r = k.StaticBlock;
return m(r.body, t, "body", e, 1), t;
}
i(K6, "staticBlock");
function G6(e, t) {
let r = {
type: "ImportAttribute",
key: e,
value: t
}, n = k.ImportAttribute;
return m(n.key, r, "key", e, 1), m(n.value, r, "value", t, 1), r;
}
i(G6, "importAttribute");
function H6() {
return {
type: "AnyTypeAnnotation"
};
}
i(H6, "anyTypeAnnotation");
function Y6(e) {
let t = {
type: "ArrayTypeAnnotation",
elementType: e
}, r = k.ArrayTypeAnnotation;
return m(r.elementType, t, "elementType", e, 1), t;
}
i(Y6, "arrayTypeAnnotation");
function J6() {
return {
type: "BooleanTypeAnnotation"
};
}
i(J6, "booleanTypeAnnotation");
function X6(e) {
let t = {
type: "BooleanLiteralTypeAnnotation",
value: e
}, r = k.BooleanLiteralTypeAnnotation;
return m(r.value, t, "value", e), t;
}
i(X6, "booleanLiteralTypeAnnotation");
function z6() {
return {
type: "NullLiteralTypeAnnotation"
};
}
i(z6, "nullLiteralTypeAnnotation");
function Q6(e, t = null) {
let r = {
type: "ClassImplements",
id: e,
typeParameters: t
}, n = k.ClassImplements;
return m(n.id, r, "id", e, 1), m(n.typeParameters, r, "typeParameters", t, 1), r;
}
i(Q6, "classImplements");
function Z6(e, t = null, r = null, n) {
let s = {
type: "DeclareClass",
id: e,
typeParameters: t,
extends: r,
body: n
}, a = k.DeclareClass;
return m(a.id, s, "id", e, 1), m(a.typeParameters, s, "typeParameters", t, 1), m(a.extends, s, "extends", r, 1), m(a.body, s, "body", n,
1), s;
}
i(Z6, "declareClass");
function ej(e) {
let t = {
type: "DeclareFunction",
id: e
}, r = k.DeclareFunction;
return m(r.id, t, "id", e, 1), t;
}
i(ej, "declareFunction");
function tj(e, t = null, r = null, n) {
let s = {
type: "DeclareInterface",
id: e,
typeParameters: t,
extends: r,
body: n
}, a = k.DeclareInterface;
return m(a.id, s, "id", e, 1), m(a.typeParameters, s, "typeParameters", t, 1), m(a.extends, s, "extends", r, 1), m(a.body, s, "body", n,
1), s;
}
i(tj, "declareInterface");
function rj(e, t, r = null) {
let n = {
type: "DeclareModule",
id: e,
body: t,
kind: r
}, s = k.DeclareModule;
return m(s.id, n, "id", e, 1), m(s.body, n, "body", t, 1), m(s.kind, n, "kind", r), n;
}
i(rj, "declareModule");
function nj(e) {
let t = {
type: "DeclareModuleExports",
typeAnnotation: e
}, r = k.DeclareModuleExports;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(nj, "declareModuleExports");
function sj(e, t = null, r) {
let n = {
type: "DeclareTypeAlias",
id: e,
typeParameters: t,
right: r
}, s = k.DeclareTypeAlias;
return m(s.id, n, "id", e, 1), m(s.typeParameters, n, "typeParameters", t, 1), m(s.right, n, "right", r, 1), n;
}
i(sj, "declareTypeAlias");
function ij(e, t = null, r = null) {
let n = {
type: "DeclareOpaqueType",
id: e,
typeParameters: t,
supertype: r
}, s = k.DeclareOpaqueType;
return m(s.id, n, "id", e, 1), m(s.typeParameters, n, "typeParameters", t, 1), m(s.supertype, n, "supertype", r, 1), n;
}
i(ij, "declareOpaqueType");
function aj(e) {
let t = {
type: "DeclareVariable",
id: e
}, r = k.DeclareVariable;
return m(r.id, t, "id", e, 1), t;
}
i(aj, "declareVariable");
function oj(e = null, t = null, r = null, n = null) {
let s = {
type: "DeclareExportDeclaration",
declaration: e,
specifiers: t,
source: r,
attributes: n
}, a = k.DeclareExportDeclaration;
return m(a.declaration, s, "declaration", e, 1), m(a.specifiers, s, "specifiers", t, 1), m(a.source, s, "source", r, 1), m(a.attributes,
s, "attributes", n, 1), s;
}
i(oj, "declareExportDeclaration");
function lj(e, t = null) {
let r = {
type: "DeclareExportAllDeclaration",
source: e,
attributes: t
}, n = k.DeclareExportAllDeclaration;
return m(n.source, r, "source", e, 1), m(n.attributes, r, "attributes", t, 1), r;
}
i(lj, "declareExportAllDeclaration");
function uj(e) {
let t = {
type: "DeclaredPredicate",
value: e
}, r = k.DeclaredPredicate;
return m(r.value, t, "value", e, 1), t;
}
i(uj, "declaredPredicate");
function cj() {
return {
type: "ExistsTypeAnnotation"
};
}
i(cj, "existsTypeAnnotation");
function pj(e = null, t, r = null, n) {
let s = {
type: "FunctionTypeAnnotation",
typeParameters: e,
params: t,
rest: r,
returnType: n
}, a = k.FunctionTypeAnnotation;
return m(a.typeParameters, s, "typeParameters", e, 1), m(a.params, s, "params", t, 1), m(a.rest, s, "rest", r, 1), m(a.returnType, s, "r\
eturnType", n, 1), s;
}
i(pj, "functionTypeAnnotation");
function fj(e = null, t) {
let r = {
type: "FunctionTypeParam",
name: e,
typeAnnotation: t
}, n = k.FunctionTypeParam;
return m(n.name, r, "name", e, 1), m(n.typeAnnotation, r, "typeAnnotation", t, 1), r;
}
i(fj, "functionTypeParam");
function dj(e, t = null) {
let r = {
type: "GenericTypeAnnotation",
id: e,
typeParameters: t
}, n = k.GenericTypeAnnotation;
return m(n.id, r, "id", e, 1), m(n.typeParameters, r, "typeParameters", t, 1), r;
}
i(dj, "genericTypeAnnotation");
function hj() {
return {
type: "InferredPredicate"
};
}
i(hj, "inferredPredicate");
function mj(e, t = null) {
let r = {
type: "InterfaceExtends",
id: e,
typeParameters: t
}, n = k.InterfaceExtends;
return m(n.id, r, "id", e, 1), m(n.typeParameters, r, "typeParameters", t, 1), r;
}
i(mj, "interfaceExtends");
function yj(e, t = null, r = null, n) {
let s = {
type: "InterfaceDeclaration",
id: e,
typeParameters: t,
extends: r,
body: n
}, a = k.InterfaceDeclaration;
return m(a.id, s, "id", e, 1), m(a.typeParameters, s, "typeParameters", t, 1), m(a.extends, s, "extends", r, 1), m(a.body, s, "body", n,
1), s;
}
i(yj, "interfaceDeclaration");
function gj(e = null, t) {
let r = {
type: "InterfaceTypeAnnotation",
extends: e,
body: t
}, n = k.InterfaceTypeAnnotation;
return m(n.extends, r, "extends", e, 1), m(n.body, r, "body", t, 1), r;
}
i(gj, "interfaceTypeAnnotation");
function bj(e) {
let t = {
type: "IntersectionTypeAnnotation",
types: e
}, r = k.IntersectionTypeAnnotation;
return m(r.types, t, "types", e, 1), t;
}
i(bj, "intersectionTypeAnnotation");
function Ej() {
return {
type: "MixedTypeAnnotation"
};
}
i(Ej, "mixedTypeAnnotation");
function Tj() {
return {
type: "EmptyTypeAnnotation"
};
}
i(Tj, "emptyTypeAnnotation");
function Sj(e) {
let t = {
type: "NullableTypeAnnotation",
typeAnnotation: e
}, r = k.NullableTypeAnnotation;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(Sj, "nullableTypeAnnotation");
function xj(e) {
let t = {
type: "NumberLiteralTypeAnnotation",
value: e
}, r = k.NumberLiteralTypeAnnotation;
return m(r.value, t, "value", e), t;
}
i(xj, "numberLiteralTypeAnnotation");
function vj() {
return {
type: "NumberTypeAnnotation"
};
}
i(vj, "numberTypeAnnotation");
function Pj(e, t = [], r = [], n = [], s = !1) {
let a = {
type: "ObjectTypeAnnotation",
properties: e,
indexers: t,
callProperties: r,
internalSlots: n,
exact: s
}, o = k.ObjectTypeAnnotation;
return m(o.properties, a, "properties", e, 1), m(o.indexers, a, "indexers", t, 1), m(o.callProperties, a, "callProperties", r, 1), m(o.internalSlots,
a, "internalSlots", n, 1), m(o.exact, a, "exact", s), a;
}
i(Pj, "objectTypeAnnotation");
function Aj(e, t, r, n, s) {
let a = {
type: "ObjectTypeInternalSlot",
id: e,
value: t,
optional: r,
static: n,
method: s
}, o = k.ObjectTypeInternalSlot;
return m(o.id, a, "id", e, 1), m(o.value, a, "value", t, 1), m(o.optional, a, "optional", r), m(o.static, a, "static", n), m(o.method, a,
"method", s), a;
}
i(Aj, "objectTypeInternalSlot");
function Cj(e) {
let t = {
type: "ObjectTypeCallProperty",
value: e,
static: null
}, r = k.ObjectTypeCallProperty;
return m(r.value, t, "value", e, 1), t;
}
i(Cj, "objectTypeCallProperty");
function Dj(e = null, t, r, n = null) {
let s = {
type: "ObjectTypeIndexer",
id: e,
key: t,
value: r,
variance: n,
static: null
}, a = k.ObjectTypeIndexer;
return m(a.id, s, "id", e, 1), m(a.key, s, "key", t, 1), m(a.value, s, "value", r, 1), m(a.variance, s, "variance", n, 1), s;
}
i(Dj, "objectTypeIndexer");
function wj(e, t, r = null) {
let n = {
type: "ObjectTypeProperty",
key: e,
value: t,
variance: r,
kind: null,
method: null,
optional: null,
proto: null,
static: null
}, s = k.ObjectTypeProperty;
return m(s.key, n, "key", e, 1), m(s.value, n, "value", t, 1), m(s.variance, n, "variance", r, 1), n;
}
i(wj, "objectTypeProperty");
function Ij(e) {
let t = {
type: "ObjectTypeSpreadProperty",
argument: e
}, r = k.ObjectTypeSpreadProperty;
return m(r.argument, t, "argument", e, 1), t;
}
i(Ij, "objectTypeSpreadProperty");
function _j(e, t = null, r = null, n) {
let s = {
type: "OpaqueType",
id: e,
typeParameters: t,
supertype: r,
impltype: n
}, a = k.OpaqueType;
return m(a.id, s, "id", e, 1), m(a.typeParameters, s, "typeParameters", t, 1), m(a.supertype, s, "supertype", r, 1), m(a.impltype, s, "i\
mpltype", n, 1), s;
}
i(_j, "opaqueType");
function Oj(e, t) {
let r = {
type: "QualifiedTypeIdentifier",
id: e,
qualification: t
}, n = k.QualifiedTypeIdentifier;
return m(n.id, r, "id", e, 1), m(n.qualification, r, "qualification", t, 1), r;
}
i(Oj, "qualifiedTypeIdentifier");
function Nj(e) {
let t = {
type: "StringLiteralTypeAnnotation",
value: e
}, r = k.StringLiteralTypeAnnotation;
return m(r.value, t, "value", e), t;
}
i(Nj, "stringLiteralTypeAnnotation");
function Bj() {
return {
type: "StringTypeAnnotation"
};
}
i(Bj, "stringTypeAnnotation");
function kj() {
return {
type: "SymbolTypeAnnotation"
};
}
i(kj, "symbolTypeAnnotation");
function Fj() {
return {
type: "ThisTypeAnnotation"
};
}
i(Fj, "thisTypeAnnotation");
function jj(e) {
let t = {
type: "TupleTypeAnnotation",
types: e
}, r = k.TupleTypeAnnotation;
return m(r.types, t, "types", e, 1), t;
}
i(jj, "tupleTypeAnnotation");
function Lj(e) {
let t = {
type: "TypeofTypeAnnotation",
argument: e
}, r = k.TypeofTypeAnnotation;
return m(r.argument, t, "argument", e, 1), t;
}
i(Lj, "typeofTypeAnnotation");
function Mj(e, t = null, r) {
let n = {
type: "TypeAlias",
id: e,
typeParameters: t,
right: r
}, s = k.TypeAlias;
return m(s.id, n, "id", e, 1), m(s.typeParameters, n, "typeParameters", t, 1), m(s.right, n, "right", r, 1), n;
}
i(Mj, "typeAlias");
function Rj(e) {
let t = {
type: "TypeAnnotation",
typeAnnotation: e
}, r = k.TypeAnnotation;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(Rj, "typeAnnotation");
function qj(e, t) {
let r = {
type: "TypeCastExpression",
expression: e,
typeAnnotation: t
}, n = k.TypeCastExpression;
return m(n.expression, r, "expression", e, 1), m(n.typeAnnotation, r, "typeAnnotation", t, 1), r;
}
i(qj, "typeCastExpression");
function Uj(e = null, t = null, r = null) {
let n = {
type: "TypeParameter",
bound: e,
default: t,
variance: r,
name: null
}, s = k.TypeParameter;
return m(s.bound, n, "bound", e, 1), m(s.default, n, "default", t, 1), m(s.variance, n, "variance", r, 1), n;
}
i(Uj, "typeParameter");
function Vj(e) {
let t = {
type: "TypeParameterDeclaration",
params: e
}, r = k.TypeParameterDeclaration;
return m(r.params, t, "params", e, 1), t;
}
i(Vj, "typeParameterDeclaration");
function $j(e) {
let t = {
type: "TypeParameterInstantiation",
params: e
}, r = k.TypeParameterInstantiation;
return m(r.params, t, "params", e, 1), t;
}
i($j, "typeParameterInstantiation");
function Wj(e) {
let t = {
type: "UnionTypeAnnotation",
types: e
}, r = k.UnionTypeAnnotation;
return m(r.types, t, "types", e, 1), t;
}
i(Wj, "unionTypeAnnotation");
function Kj(e) {
let t = {
type: "Variance",
kind: e
}, r = k.Variance;
return m(r.kind, t, "kind", e), t;
}
i(Kj, "variance");
function Gj() {
return {
type: "VoidTypeAnnotation"
};
}
i(Gj, "voidTypeAnnotation");
function Hj(e, t) {
let r = {
type: "EnumDeclaration",
id: e,
body: t
}, n = k.EnumDeclaration;
return m(n.id, r, "id", e, 1), m(n.body, r, "body", t, 1), r;
}
i(Hj, "enumDeclaration");
function Yj(e) {
let t = {
type: "EnumBooleanBody",
members: e,
explicitType: null,
hasUnknownMembers: null
}, r = k.EnumBooleanBody;
return m(r.members, t, "members", e, 1), t;
}
i(Yj, "enumBooleanBody");
function Jj(e) {
let t = {
type: "EnumNumberBody",
members: e,
explicitType: null,
hasUnknownMembers: null
}, r = k.EnumNumberBody;
return m(r.members, t, "members", e, 1), t;
}
i(Jj, "enumNumberBody");
function Xj(e) {
let t = {
type: "EnumStringBody",
members: e,
explicitType: null,
hasUnknownMembers: null
}, r = k.EnumStringBody;
return m(r.members, t, "members", e, 1), t;
}
i(Xj, "enumStringBody");
function zj(e) {
let t = {
type: "EnumSymbolBody",
members: e,
hasUnknownMembers: null
}, r = k.EnumSymbolBody;
return m(r.members, t, "members", e, 1), t;
}
i(zj, "enumSymbolBody");
function Qj(e) {
let t = {
type: "EnumBooleanMember",
id: e,
init: null
}, r = k.EnumBooleanMember;
return m(r.id, t, "id", e, 1), t;
}
i(Qj, "enumBooleanMember");
function Zj(e, t) {
let r = {
type: "EnumNumberMember",
id: e,
init: t
}, n = k.EnumNumberMember;
return m(n.id, r, "id", e, 1), m(n.init, r, "init", t, 1), r;
}
i(Zj, "enumNumberMember");
function eL(e, t) {
let r = {
type: "EnumStringMember",
id: e,
init: t
}, n = k.EnumStringMember;
return m(n.id, r, "id", e, 1), m(n.init, r, "init", t, 1), r;
}
i(eL, "enumStringMember");
function tL(e) {
let t = {
type: "EnumDefaultedMember",
id: e
}, r = k.EnumDefaultedMember;
return m(r.id, t, "id", e, 1), t;
}
i(tL, "enumDefaultedMember");
function rL(e, t) {
let r = {
type: "IndexedAccessType",
objectType: e,
indexType: t
}, n = k.IndexedAccessType;
return m(n.objectType, r, "objectType", e, 1), m(n.indexType, r, "indexType", t, 1), r;
}
i(rL, "indexedAccessType");
function nL(e, t) {
let r = {
type: "OptionalIndexedAccessType",
objectType: e,
indexType: t,
optional: null
}, n = k.OptionalIndexedAccessType;
return m(n.objectType, r, "objectType", e, 1), m(n.indexType, r, "indexType", t, 1), r;
}
i(nL, "optionalIndexedAccessType");
function sL(e, t = null) {
let r = {
type: "JSXAttribute",
name: e,
value: t
}, n = k.JSXAttribute;
return m(n.name, r, "name", e, 1), m(n.value, r, "value", t, 1), r;
}
i(sL, "jsxAttribute");
function iL(e) {
let t = {
type: "JSXClosingElement",
name: e
}, r = k.JSXClosingElement;
return m(r.name, t, "name", e, 1), t;
}
i(iL, "jsxClosingElement");
function aL(e, t = null, r, n = null) {
let s = {
type: "JSXElement",
openingElement: e,
closingElement: t,
children: r,
selfClosing: n
}, a = k.JSXElement;
return m(a.openingElement, s, "openingElement", e, 1), m(a.closingElement, s, "closingElement", t, 1), m(a.children, s, "children", r, 1),
m(a.selfClosing, s, "selfClosing", n), s;
}
i(aL, "jsxElement");
function oL() {
return {
type: "JSXEmptyExpression"
};
}
i(oL, "jsxEmptyExpression");
function lL(e) {
let t = {
type: "JSXExpressionContainer",
expression: e
}, r = k.JSXExpressionContainer;
return m(r.expression, t, "expression", e, 1), t;
}
i(lL, "jsxExpressionContainer");
function uL(e) {
let t = {
type: "JSXSpreadChild",
expression: e
}, r = k.JSXSpreadChild;
return m(r.expression, t, "expression", e, 1), t;
}
i(uL, "jsxSpreadChild");
function cL(e) {
let t = {
type: "JSXIdentifier",
name: e
}, r = k.JSXIdentifier;
return m(r.name, t, "name", e), t;
}
i(cL, "jsxIdentifier");
function pL(e, t) {
let r = {
type: "JSXMemberExpression",
object: e,
property: t
}, n = k.JSXMemberExpression;
return m(n.object, r, "object", e, 1), m(n.property, r, "property", t, 1), r;
}
i(pL, "jsxMemberExpression");
function fL(e, t) {
let r = {
type: "JSXNamespacedName",
namespace: e,
name: t
}, n = k.JSXNamespacedName;
return m(n.namespace, r, "namespace", e, 1), m(n.name, r, "name", t, 1), r;
}
i(fL, "jsxNamespacedName");
function dL(e, t, r = !1) {
let n = {
type: "JSXOpeningElement",
name: e,
attributes: t,
selfClosing: r
}, s = k.JSXOpeningElement;
return m(s.name, n, "name", e, 1), m(s.attributes, n, "attributes", t, 1), m(s.selfClosing, n, "selfClosing", r), n;
}
i(dL, "jsxOpeningElement");
function hL(e) {
let t = {
type: "JSXSpreadAttribute",
argument: e
}, r = k.JSXSpreadAttribute;
return m(r.argument, t, "argument", e, 1), t;
}
i(hL, "jsxSpreadAttribute");
function mL(e) {
let t = {
type: "JSXText",
value: e
}, r = k.JSXText;
return m(r.value, t, "value", e), t;
}
i(mL, "jsxText");
function yL(e, t, r) {
let n = {
type: "JSXFragment",
openingFragment: e,
closingFragment: t,
children: r
}, s = k.JSXFragment;
return m(s.openingFragment, n, "openingFragment", e, 1), m(s.closingFragment, n, "closingFragment", t, 1), m(s.children, n, "children", r,
1), n;
}
i(yL, "jsxFragment");
function gL() {
return {
type: "JSXOpeningFragment"
};
}
i(gL, "jsxOpeningFragment");
function bL() {
return {
type: "JSXClosingFragment"
};
}
i(bL, "jsxClosingFragment");
function EL() {
return {
type: "Noop"
};
}
i(EL, "noop");
function TL(e, t) {
let r = {
type: "Placeholder",
expectedNode: e,
name: t
}, n = k.Placeholder;
return m(n.expectedNode, r, "expectedNode", e), m(n.name, r, "name", t, 1), r;
}
i(TL, "placeholder");
function SL(e) {
let t = {
type: "V8IntrinsicIdentifier",
name: e
}, r = k.V8IntrinsicIdentifier;
return m(r.name, t, "name", e), t;
}
i(SL, "v8IntrinsicIdentifier");
function xL() {
return {
type: "ArgumentPlaceholder"
};
}
i(xL, "argumentPlaceholder");
function vL(e, t) {
let r = {
type: "BindExpression",
object: e,
callee: t
}, n = k.BindExpression;
return m(n.object, r, "object", e, 1), m(n.callee, r, "callee", t, 1), r;
}
i(vL, "bindExpression");
function PL(e) {
let t = {
type: "Decorator",
expression: e
}, r = k.Decorator;
return m(r.expression, t, "expression", e, 1), t;
}
i(PL, "decorator");
function AL(e, t = !1) {
let r = {
type: "DoExpression",
body: e,
async: t
}, n = k.DoExpression;
return m(n.body, r, "body", e, 1), m(n.async, r, "async", t), r;
}
i(AL, "doExpression");
function CL(e) {
let t = {
type: "ExportDefaultSpecifier",
exported: e
}, r = k.ExportDefaultSpecifier;
return m(r.exported, t, "exported", e, 1), t;
}
i(CL, "exportDefaultSpecifier");
function DL(e) {
let t = {
type: "RecordExpression",
properties: e
}, r = k.RecordExpression;
return m(r.properties, t, "properties", e, 1), t;
}
i(DL, "recordExpression");
function wL(e = []) {
let t = {
type: "TupleExpression",
elements: e
}, r = k.TupleExpression;
return m(r.elements, t, "elements", e, 1), t;
}
i(wL, "tupleExpression");
function IL(e) {
let t = {
type: "DecimalLiteral",
value: e
}, r = k.DecimalLiteral;
return m(r.value, t, "value", e), t;
}
i(IL, "decimalLiteral");
function _L(e) {
let t = {
type: "ModuleExpression",
body: e
}, r = k.ModuleExpression;
return m(r.body, t, "body", e, 1), t;
}
i(_L, "moduleExpression");
function OL() {
return {
type: "TopicReference"
};
}
i(OL, "topicReference");
function NL(e) {
let t = {
type: "PipelineTopicExpression",
expression: e
}, r = k.PipelineTopicExpression;
return m(r.expression, t, "expression", e, 1), t;
}
i(NL, "pipelineTopicExpression");
function BL(e) {
let t = {
type: "PipelineBareFunction",
callee: e
}, r = k.PipelineBareFunction;
return m(r.callee, t, "callee", e, 1), t;
}
i(BL, "pipelineBareFunction");
function kL() {
return {
type: "PipelinePrimaryTopicReference"
};
}
i(kL, "pipelinePrimaryTopicReference");
function FL(e) {
let t = {
type: "TSParameterProperty",
parameter: e
}, r = k.TSParameterProperty;
return m(r.parameter, t, "parameter", e, 1), t;
}
i(FL, "tsParameterProperty");
function jL(e = null, t = null, r, n = null) {
let s = {
type: "TSDeclareFunction",
id: e,
typeParameters: t,
params: r,
returnType: n
}, a = k.TSDeclareFunction;
return m(a.id, s, "id", e, 1), m(a.typeParameters, s, "typeParameters", t, 1), m(a.params, s, "params", r, 1), m(a.returnType, s, "retur\
nType", n, 1), s;
}
i(jL, "tsDeclareFunction");
function LL(e = null, t, r = null, n, s = null) {
let a = {
type: "TSDeclareMethod",
decorators: e,
key: t,
typeParameters: r,
params: n,
returnType: s
}, o = k.TSDeclareMethod;
return m(o.decorators, a, "decorators", e, 1), m(o.key, a, "key", t, 1), m(o.typeParameters, a, "typeParameters", r, 1), m(o.params, a, "\
params", n, 1), m(o.returnType, a, "returnType", s, 1), a;
}
i(LL, "tsDeclareMethod");
function ML(e, t) {
let r = {
type: "TSQualifiedName",
left: e,
right: t
}, n = k.TSQualifiedName;
return m(n.left, r, "left", e, 1), m(n.right, r, "right", t, 1), r;
}
i(ML, "tsQualifiedName");
function RL(e = null, t, r = null) {
let n = {
type: "TSCallSignatureDeclaration",
typeParameters: e,
parameters: t,
typeAnnotation: r
}, s = k.TSCallSignatureDeclaration;
return m(s.typeParameters, n, "typeParameters", e, 1), m(s.parameters, n, "parameters", t, 1), m(s.typeAnnotation, n, "typeAnnotation", r,
1), n;
}
i(RL, "tsCallSignatureDeclaration");
function qL(e = null, t, r = null) {
let n = {
type: "TSConstructSignatureDeclaration",
typeParameters: e,
parameters: t,
typeAnnotation: r
}, s = k.TSConstructSignatureDeclaration;
return m(s.typeParameters, n, "typeParameters", e, 1), m(s.parameters, n, "parameters", t, 1), m(s.typeAnnotation, n, "typeAnnotation", r,
1), n;
}
i(qL, "tsConstructSignatureDeclaration");
function UL(e, t = null) {
let r = {
type: "TSPropertySignature",
key: e,
typeAnnotation: t
}, n = k.TSPropertySignature;
return m(n.key, r, "key", e, 1), m(n.typeAnnotation, r, "typeAnnotation", t, 1), r;
}
i(UL, "tsPropertySignature");
function VL(e, t = null, r, n = null) {
let s = {
type: "TSMethodSignature",
key: e,
typeParameters: t,
parameters: r,
typeAnnotation: n,
kind: null
}, a = k.TSMethodSignature;
return m(a.key, s, "key", e, 1), m(a.typeParameters, s, "typeParameters", t, 1), m(a.parameters, s, "parameters", r, 1), m(a.typeAnnotation,
s, "typeAnnotation", n, 1), s;
}
i(VL, "tsMethodSignature");
function $L(e, t = null) {
let r = {
type: "TSIndexSignature",
parameters: e,
typeAnnotation: t
}, n = k.TSIndexSignature;
return m(n.parameters, r, "parameters", e, 1), m(n.typeAnnotation, r, "typeAnnotation", t, 1), r;
}
i($L, "tsIndexSignature");
function WL() {
return {
type: "TSAnyKeyword"
};
}
i(WL, "tsAnyKeyword");
function KL() {
return {
type: "TSBooleanKeyword"
};
}
i(KL, "tsBooleanKeyword");
function GL() {
return {
type: "TSBigIntKeyword"
};
}
i(GL, "tsBigIntKeyword");
function HL() {
return {
type: "TSIntrinsicKeyword"
};
}
i(HL, "tsIntrinsicKeyword");
function YL() {
return {
type: "TSNeverKeyword"
};
}
i(YL, "tsNeverKeyword");
function JL() {
return {
type: "TSNullKeyword"
};
}
i(JL, "tsNullKeyword");
function XL() {
return {
type: "TSNumberKeyword"
};
}
i(XL, "tsNumberKeyword");
function zL() {
return {
type: "TSObjectKeyword"
};
}
i(zL, "tsObjectKeyword");
function QL() {
return {
type: "TSStringKeyword"
};
}
i(QL, "tsStringKeyword");
function ZL() {
return {
type: "TSSymbolKeyword"
};
}
i(ZL, "tsSymbolKeyword");
function eM() {
return {
type: "TSUndefinedKeyword"
};
}
i(eM, "tsUndefinedKeyword");
function tM() {
return {
type: "TSUnknownKeyword"
};
}
i(tM, "tsUnknownKeyword");
function rM() {
return {
type: "TSVoidKeyword"
};
}
i(rM, "tsVoidKeyword");
function nM() {
return {
type: "TSThisType"
};
}
i(nM, "tsThisType");
function sM(e = null, t, r = null) {
let n = {
type: "TSFunctionType",
typeParameters: e,
parameters: t,
typeAnnotation: r
}, s = k.TSFunctionType;
return m(s.typeParameters, n, "typeParameters", e, 1), m(s.parameters, n, "parameters", t, 1), m(s.typeAnnotation, n, "typeAnnotation", r,
1), n;
}
i(sM, "tsFunctionType");
function iM(e = null, t, r = null) {
let n = {
type: "TSConstructorType",
typeParameters: e,
parameters: t,
typeAnnotation: r
}, s = k.TSConstructorType;
return m(s.typeParameters, n, "typeParameters", e, 1), m(s.parameters, n, "parameters", t, 1), m(s.typeAnnotation, n, "typeAnnotation", r,
1), n;
}
i(iM, "tsConstructorType");
function aM(e, t = null) {
let r = {
type: "TSTypeReference",
typeName: e,
typeParameters: t
}, n = k.TSTypeReference;
return m(n.typeName, r, "typeName", e, 1), m(n.typeParameters, r, "typeParameters", t, 1), r;
}
i(aM, "tsTypeReference");
function oM(e, t = null, r = null) {
let n = {
type: "TSTypePredicate",
parameterName: e,
typeAnnotation: t,
asserts: r
}, s = k.TSTypePredicate;
return m(s.parameterName, n, "parameterName", e, 1), m(s.typeAnnotation, n, "typeAnnotation", t, 1), m(s.asserts, n, "asserts", r), n;
}
i(oM, "tsTypePredicate");
function lM(e, t = null) {
let r = {
type: "TSTypeQuery",
exprName: e,
typeParameters: t
}, n = k.TSTypeQuery;
return m(n.exprName, r, "exprName", e, 1), m(n.typeParameters, r, "typeParameters", t, 1), r;
}
i(lM, "tsTypeQuery");
function uM(e) {
let t = {
type: "TSTypeLiteral",
members: e
}, r = k.TSTypeLiteral;
return m(r.members, t, "members", e, 1), t;
}
i(uM, "tsTypeLiteral");
function cM(e) {
let t = {
type: "TSArrayType",
elementType: e
}, r = k.TSArrayType;
return m(r.elementType, t, "elementType", e, 1), t;
}
i(cM, "tsArrayType");
function pM(e) {
let t = {
type: "TSTupleType",
elementTypes: e
}, r = k.TSTupleType;
return m(r.elementTypes, t, "elementTypes", e, 1), t;
}
i(pM, "tsTupleType");
function fM(e) {
let t = {
type: "TSOptionalType",
typeAnnotation: e
}, r = k.TSOptionalType;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(fM, "tsOptionalType");
function dM(e) {
let t = {
type: "TSRestType",
typeAnnotation: e
}, r = k.TSRestType;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(dM, "tsRestType");
function hM(e, t, r = !1) {
let n = {
type: "TSNamedTupleMember",
label: e,
elementType: t,
optional: r
}, s = k.TSNamedTupleMember;
return m(s.label, n, "label", e, 1), m(s.elementType, n, "elementType", t, 1), m(s.optional, n, "optional", r), n;
}
i(hM, "tsNamedTupleMember");
function mM(e) {
let t = {
type: "TSUnionType",
types: e
}, r = k.TSUnionType;
return m(r.types, t, "types", e, 1), t;
}
i(mM, "tsUnionType");
function yM(e) {
let t = {
type: "TSIntersectionType",
types: e
}, r = k.TSIntersectionType;
return m(r.types, t, "types", e, 1), t;
}
i(yM, "tsIntersectionType");
function gM(e, t, r, n) {
let s = {
type: "TSConditionalType",
checkType: e,
extendsType: t,
trueType: r,
falseType: n
}, a = k.TSConditionalType;
return m(a.checkType, s, "checkType", e, 1), m(a.extendsType, s, "extendsType", t, 1), m(a.trueType, s, "trueType", r, 1), m(a.falseType,
s, "falseType", n, 1), s;
}
i(gM, "tsConditionalType");
function bM(e) {
let t = {
type: "TSInferType",
typeParameter: e
}, r = k.TSInferType;
return m(r.typeParameter, t, "typeParameter", e, 1), t;
}
i(bM, "tsInferType");
function EM(e) {
let t = {
type: "TSParenthesizedType",
typeAnnotation: e
}, r = k.TSParenthesizedType;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(EM, "tsParenthesizedType");
function TM(e) {
let t = {
type: "TSTypeOperator",
typeAnnotation: e,
operator: null
}, r = k.TSTypeOperator;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(TM, "tsTypeOperator");
function SM(e, t) {
let r = {
type: "TSIndexedAccessType",
objectType: e,
indexType: t
}, n = k.TSIndexedAccessType;
return m(n.objectType, r, "objectType", e, 1), m(n.indexType, r, "indexType", t, 1), r;
}
i(SM, "tsIndexedAccessType");
function xM(e, t = null, r = null) {
let n = {
type: "TSMappedType",
typeParameter: e,
typeAnnotation: t,
nameType: r
}, s = k.TSMappedType;
return m(s.typeParameter, n, "typeParameter", e, 1), m(s.typeAnnotation, n, "typeAnnotation", t, 1), m(s.nameType, n, "nameType", r, 1),
n;
}
i(xM, "tsMappedType");
function vM(e, t) {
let r = {
type: "TSTemplateLiteralType",
quasis: e,
types: t
}, n = k.TSTemplateLiteralType;
return m(n.quasis, r, "quasis", e, 1), m(n.types, r, "types", t, 1), r;
}
i(vM, "tsTemplateLiteralType");
function PM(e) {
let t = {
type: "TSLiteralType",
literal: e
}, r = k.TSLiteralType;
return m(r.literal, t, "literal", e, 1), t;
}
i(PM, "tsLiteralType");
function AM(e, t = null) {
let r = {
type: "TSExpressionWithTypeArguments",
expression: e,
typeParameters: t
}, n = k.TSExpressionWithTypeArguments;
return m(n.expression, r, "expression", e, 1), m(n.typeParameters, r, "typeParameters", t, 1), r;
}
i(AM, "tsExpressionWithTypeArguments");
function CM(e, t = null, r = null, n) {
let s = {
type: "TSInterfaceDeclaration",
id: e,
typeParameters: t,
extends: r,
body: n
}, a = k.TSInterfaceDeclaration;
return m(a.id, s, "id", e, 1), m(a.typeParameters, s, "typeParameters", t, 1), m(a.extends, s, "extends", r, 1), m(a.body, s, "body", n,
1), s;
}
i(CM, "tsInterfaceDeclaration");
function DM(e) {
let t = {
type: "TSInterfaceBody",
body: e
}, r = k.TSInterfaceBody;
return m(r.body, t, "body", e, 1), t;
}
i(DM, "tsInterfaceBody");
function wM(e, t = null, r) {
let n = {
type: "TSTypeAliasDeclaration",
id: e,
typeParameters: t,
typeAnnotation: r
}, s = k.TSTypeAliasDeclaration;
return m(s.id, n, "id", e, 1), m(s.typeParameters, n, "typeParameters", t, 1), m(s.typeAnnotation, n, "typeAnnotation", r, 1), n;
}
i(wM, "tsTypeAliasDeclaration");
function IM(e, t = null) {
let r = {
type: "TSInstantiationExpression",
expression: e,
typeParameters: t
}, n = k.TSInstantiationExpression;
return m(n.expression, r, "expression", e, 1), m(n.typeParameters, r, "typeParameters", t, 1), r;
}
i(IM, "tsInstantiationExpression");
function _M(e, t) {
let r = {
type: "TSAsExpression",
expression: e,
typeAnnotation: t
}, n = k.TSAsExpression;
return m(n.expression, r, "expression", e, 1), m(n.typeAnnotation, r, "typeAnnotation", t, 1), r;
}
i(_M, "tsAsExpression");
function OM(e, t) {
let r = {
type: "TSSatisfiesExpression",
expression: e,
typeAnnotation: t
}, n = k.TSSatisfiesExpression;
return m(n.expression, r, "expression", e, 1), m(n.typeAnnotation, r, "typeAnnotation", t, 1), r;
}
i(OM, "tsSatisfiesExpression");
function NM(e, t) {
let r = {
type: "TSTypeAssertion",
typeAnnotation: e,
expression: t
}, n = k.TSTypeAssertion;
return m(n.typeAnnotation, r, "typeAnnotation", e, 1), m(n.expression, r, "expression", t, 1), r;
}
i(NM, "tsTypeAssertion");
function BM(e) {
let t = {
type: "TSEnumBody",
members: e
}, r = k.TSEnumBody;
return m(r.members, t, "members", e, 1), t;
}
i(BM, "tsEnumBody");
function kM(e, t) {
let r = {
type: "TSEnumDeclaration",
id: e,
members: t
}, n = k.TSEnumDeclaration;
return m(n.id, r, "id", e, 1), m(n.members, r, "members", t, 1), r;
}
i(kM, "tsEnumDeclaration");
function FM(e, t = null) {
let r = {
type: "TSEnumMember",
id: e,
initializer: t
}, n = k.TSEnumMember;
return m(n.id, r, "id", e, 1), m(n.initializer, r, "initializer", t, 1), r;
}
i(FM, "tsEnumMember");
function jM(e, t) {
let r = {
type: "TSModuleDeclaration",
id: e,
body: t,
kind: null
}, n = k.TSModuleDeclaration;
return m(n.id, r, "id", e, 1), m(n.body, r, "body", t, 1), r;
}
i(jM, "tsModuleDeclaration");
function LM(e) {
let t = {
type: "TSModuleBlock",
body: e
}, r = k.TSModuleBlock;
return m(r.body, t, "body", e, 1), t;
}
i(LM, "tsModuleBlock");
function MM(e, t = null, r = null) {
let n = {
type: "TSImportType",
argument: e,
qualifier: t,
typeParameters: r
}, s = k.TSImportType;
return m(s.argument, n, "argument", e, 1), m(s.qualifier, n, "qualifier", t, 1), m(s.typeParameters, n, "typeParameters", r, 1), n;
}
i(MM, "tsImportType");
function RM(e, t) {
let r = {
type: "TSImportEqualsDeclaration",
id: e,
moduleReference: t,
isExport: null
}, n = k.TSImportEqualsDeclaration;
return m(n.id, r, "id", e, 1), m(n.moduleReference, r, "moduleReference", t, 1), r;
}
i(RM, "tsImportEqualsDeclaration");
function qM(e) {
let t = {
type: "TSExternalModuleReference",
expression: e
}, r = k.TSExternalModuleReference;
return m(r.expression, t, "expression", e, 1), t;
}
i(qM, "tsExternalModuleReference");
function UM(e) {
let t = {
type: "TSNonNullExpression",
expression: e
}, r = k.TSNonNullExpression;
return m(r.expression, t, "expression", e, 1), t;
}
i(UM, "tsNonNullExpression");
function VM(e) {
let t = {
type: "TSExportAssignment",
expression: e
}, r = k.TSExportAssignment;
return m(r.expression, t, "expression", e, 1), t;
}
i(VM, "tsExportAssignment");
function $M(e) {
let t = {
type: "TSNamespaceExportDeclaration",
id: e
}, r = k.TSNamespaceExportDeclaration;
return m(r.id, t, "id", e, 1), t;
}
i($M, "tsNamespaceExportDeclaration");
function WM(e) {
let t = {
type: "TSTypeAnnotation",
typeAnnotation: e
}, r = k.TSTypeAnnotation;
return m(r.typeAnnotation, t, "typeAnnotation", e, 1), t;
}
i(WM, "tsTypeAnnotation");
function KM(e) {
let t = {
type: "TSTypeParameterInstantiation",
params: e
}, r = k.TSTypeParameterInstantiation;
return m(r.params, t, "params", e, 1), t;
}
i(KM, "tsTypeParameterInstantiation");
function GM(e) {
let t = {
type: "TSTypeParameterDeclaration",
params: e
}, r = k.TSTypeParameterDeclaration;
return m(r.params, t, "params", e, 1), t;
}
i(GM, "tsTypeParameterDeclaration");
function HM(e = null, t = null, r) {
let n = {
type: "TSTypeParameter",
constraint: e,
default: t,
name: r
}, s = k.TSTypeParameter;
return m(s.constraint, n, "constraint", e, 1), m(s.default, n, "default", t, 1), m(s.name, n, "name", r), n;
}
i(HM, "tsTypeParameter");
function YM(e) {
return (0, bl.default)("NumberLiteral", "NumericLiteral", "The node type "), hE(e);
}
i(YM, "NumberLiteral");
function JM(e, t = "") {
return (0, bl.default)("RegexLiteral", "RegExpLiteral", "The node type "), mE(e, t);
}
i(JM, "RegexLiteral");
function XM(e) {
return (0, bl.default)("RestProperty", "RestElement", "The node type "), yE(e);
}
i(XM, "RestProperty");
function zM(e) {
return (0, bl.default)("SpreadProperty", "SpreadElement", "The node type "), gE(e);
}
i(zM, "SpreadProperty");
});
// ../node_modules/@babel/types/lib/builders/generated/uppercase.js
var bE = P((w) => {
"use strict";
Object.defineProperty(w, "__esModule", {
value: !0
});
Object.defineProperty(w, "AnyTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.anyTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "ArgumentPlaceholder", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.argumentPlaceholder;
}, "get")
});
Object.defineProperty(w, "ArrayExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.arrayExpression;
}, "get")
});
Object.defineProperty(w, "ArrayPattern", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.arrayPattern;
}, "get")
});
Object.defineProperty(w, "ArrayTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.arrayTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "ArrowFunctionExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.arrowFunctionExpression;
}, "get")
});
Object.defineProperty(w, "AssignmentExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.assignmentExpression;
}, "get")
});
Object.defineProperty(w, "AssignmentPattern", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.assignmentPattern;
}, "get")
});
Object.defineProperty(w, "AwaitExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.awaitExpression;
}, "get")
});
Object.defineProperty(w, "BigIntLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.bigIntLiteral;
}, "get")
});
Object.defineProperty(w, "BinaryExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.binaryExpression;
}, "get")
});
Object.defineProperty(w, "BindExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.bindExpression;
}, "get")
});
Object.defineProperty(w, "BlockStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.blockStatement;
}, "get")
});
Object.defineProperty(w, "BooleanLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.booleanLiteral;
}, "get")
});
Object.defineProperty(w, "BooleanLiteralTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.booleanLiteralTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "BooleanTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.booleanTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "BreakStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.breakStatement;
}, "get")
});
Object.defineProperty(w, "CallExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.callExpression;
}, "get")
});
Object.defineProperty(w, "CatchClause", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.catchClause;
}, "get")
});
Object.defineProperty(w, "ClassAccessorProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classAccessorProperty;
}, "get")
});
Object.defineProperty(w, "ClassBody", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classBody;
}, "get")
});
Object.defineProperty(w, "ClassDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classDeclaration;
}, "get")
});
Object.defineProperty(w, "ClassExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classExpression;
}, "get")
});
Object.defineProperty(w, "ClassImplements", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classImplements;
}, "get")
});
Object.defineProperty(w, "ClassMethod", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classMethod;
}, "get")
});
Object.defineProperty(w, "ClassPrivateMethod", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classPrivateMethod;
}, "get")
});
Object.defineProperty(w, "ClassPrivateProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classPrivateProperty;
}, "get")
});
Object.defineProperty(w, "ClassProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.classProperty;
}, "get")
});
Object.defineProperty(w, "ConditionalExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.conditionalExpression;
}, "get")
});
Object.defineProperty(w, "ContinueStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.continueStatement;
}, "get")
});
Object.defineProperty(w, "DebuggerStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.debuggerStatement;
}, "get")
});
Object.defineProperty(w, "DecimalLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.decimalLiteral;
}, "get")
});
Object.defineProperty(w, "DeclareClass", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareClass;
}, "get")
});
Object.defineProperty(w, "DeclareExportAllDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareExportAllDeclaration;
}, "get")
});
Object.defineProperty(w, "DeclareExportDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareExportDeclaration;
}, "get")
});
Object.defineProperty(w, "DeclareFunction", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareFunction;
}, "get")
});
Object.defineProperty(w, "DeclareInterface", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareInterface;
}, "get")
});
Object.defineProperty(w, "DeclareModule", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareModule;
}, "get")
});
Object.defineProperty(w, "DeclareModuleExports", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareModuleExports;
}, "get")
});
Object.defineProperty(w, "DeclareOpaqueType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareOpaqueType;
}, "get")
});
Object.defineProperty(w, "DeclareTypeAlias", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareTypeAlias;
}, "get")
});
Object.defineProperty(w, "DeclareVariable", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declareVariable;
}, "get")
});
Object.defineProperty(w, "DeclaredPredicate", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.declaredPredicate;
}, "get")
});
Object.defineProperty(w, "Decorator", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.decorator;
}, "get")
});
Object.defineProperty(w, "Directive", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.directive;
}, "get")
});
Object.defineProperty(w, "DirectiveLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.directiveLiteral;
}, "get")
});
Object.defineProperty(w, "DoExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.doExpression;
}, "get")
});
Object.defineProperty(w, "DoWhileStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.doWhileStatement;
}, "get")
});
Object.defineProperty(w, "EmptyStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.emptyStatement;
}, "get")
});
Object.defineProperty(w, "EmptyTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.emptyTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "EnumBooleanBody", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumBooleanBody;
}, "get")
});
Object.defineProperty(w, "EnumBooleanMember", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumBooleanMember;
}, "get")
});
Object.defineProperty(w, "EnumDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumDeclaration;
}, "get")
});
Object.defineProperty(w, "EnumDefaultedMember", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumDefaultedMember;
}, "get")
});
Object.defineProperty(w, "EnumNumberBody", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumNumberBody;
}, "get")
});
Object.defineProperty(w, "EnumNumberMember", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumNumberMember;
}, "get")
});
Object.defineProperty(w, "EnumStringBody", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumStringBody;
}, "get")
});
Object.defineProperty(w, "EnumStringMember", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumStringMember;
}, "get")
});
Object.defineProperty(w, "EnumSymbolBody", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.enumSymbolBody;
}, "get")
});
Object.defineProperty(w, "ExistsTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.existsTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "ExportAllDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.exportAllDeclaration;
}, "get")
});
Object.defineProperty(w, "ExportDefaultDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.exportDefaultDeclaration;
}, "get")
});
Object.defineProperty(w, "ExportDefaultSpecifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.exportDefaultSpecifier;
}, "get")
});
Object.defineProperty(w, "ExportNamedDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.exportNamedDeclaration;
}, "get")
});
Object.defineProperty(w, "ExportNamespaceSpecifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.exportNamespaceSpecifier;
}, "get")
});
Object.defineProperty(w, "ExportSpecifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.exportSpecifier;
}, "get")
});
Object.defineProperty(w, "ExpressionStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.expressionStatement;
}, "get")
});
Object.defineProperty(w, "File", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.file;
}, "get")
});
Object.defineProperty(w, "ForInStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.forInStatement;
}, "get")
});
Object.defineProperty(w, "ForOfStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.forOfStatement;
}, "get")
});
Object.defineProperty(w, "ForStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.forStatement;
}, "get")
});
Object.defineProperty(w, "FunctionDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.functionDeclaration;
}, "get")
});
Object.defineProperty(w, "FunctionExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.functionExpression;
}, "get")
});
Object.defineProperty(w, "FunctionTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.functionTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "FunctionTypeParam", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.functionTypeParam;
}, "get")
});
Object.defineProperty(w, "GenericTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.genericTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "Identifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.identifier;
}, "get")
});
Object.defineProperty(w, "IfStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.ifStatement;
}, "get")
});
Object.defineProperty(w, "Import", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.import;
}, "get")
});
Object.defineProperty(w, "ImportAttribute", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.importAttribute;
}, "get")
});
Object.defineProperty(w, "ImportDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.importDeclaration;
}, "get")
});
Object.defineProperty(w, "ImportDefaultSpecifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.importDefaultSpecifier;
}, "get")
});
Object.defineProperty(w, "ImportExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.importExpression;
}, "get")
});
Object.defineProperty(w, "ImportNamespaceSpecifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.importNamespaceSpecifier;
}, "get")
});
Object.defineProperty(w, "ImportSpecifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.importSpecifier;
}, "get")
});
Object.defineProperty(w, "IndexedAccessType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.indexedAccessType;
}, "get")
});
Object.defineProperty(w, "InferredPredicate", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.inferredPredicate;
}, "get")
});
Object.defineProperty(w, "InterfaceDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.interfaceDeclaration;
}, "get")
});
Object.defineProperty(w, "InterfaceExtends", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.interfaceExtends;
}, "get")
});
Object.defineProperty(w, "InterfaceTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.interfaceTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "InterpreterDirective", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.interpreterDirective;
}, "get")
});
Object.defineProperty(w, "IntersectionTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.intersectionTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "JSXAttribute", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxAttribute;
}, "get")
});
Object.defineProperty(w, "JSXClosingElement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxClosingElement;
}, "get")
});
Object.defineProperty(w, "JSXClosingFragment", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxClosingFragment;
}, "get")
});
Object.defineProperty(w, "JSXElement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxElement;
}, "get")
});
Object.defineProperty(w, "JSXEmptyExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxEmptyExpression;
}, "get")
});
Object.defineProperty(w, "JSXExpressionContainer", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxExpressionContainer;
}, "get")
});
Object.defineProperty(w, "JSXFragment", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxFragment;
}, "get")
});
Object.defineProperty(w, "JSXIdentifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxIdentifier;
}, "get")
});
Object.defineProperty(w, "JSXMemberExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxMemberExpression;
}, "get")
});
Object.defineProperty(w, "JSXNamespacedName", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxNamespacedName;
}, "get")
});
Object.defineProperty(w, "JSXOpeningElement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxOpeningElement;
}, "get")
});
Object.defineProperty(w, "JSXOpeningFragment", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxOpeningFragment;
}, "get")
});
Object.defineProperty(w, "JSXSpreadAttribute", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxSpreadAttribute;
}, "get")
});
Object.defineProperty(w, "JSXSpreadChild", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxSpreadChild;
}, "get")
});
Object.defineProperty(w, "JSXText", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.jsxText;
}, "get")
});
Object.defineProperty(w, "LabeledStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.labeledStatement;
}, "get")
});
Object.defineProperty(w, "LogicalExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.logicalExpression;
}, "get")
});
Object.defineProperty(w, "MemberExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.memberExpression;
}, "get")
});
Object.defineProperty(w, "MetaProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.metaProperty;
}, "get")
});
Object.defineProperty(w, "MixedTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.mixedTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "ModuleExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.moduleExpression;
}, "get")
});
Object.defineProperty(w, "NewExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.newExpression;
}, "get")
});
Object.defineProperty(w, "Noop", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.noop;
}, "get")
});
Object.defineProperty(w, "NullLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.nullLiteral;
}, "get")
});
Object.defineProperty(w, "NullLiteralTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.nullLiteralTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "NullableTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.nullableTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "NumberLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.numberLiteral;
}, "get")
});
Object.defineProperty(w, "NumberLiteralTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.numberLiteralTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "NumberTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.numberTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "NumericLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.numericLiteral;
}, "get")
});
Object.defineProperty(w, "ObjectExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectExpression;
}, "get")
});
Object.defineProperty(w, "ObjectMethod", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectMethod;
}, "get")
});
Object.defineProperty(w, "ObjectPattern", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectPattern;
}, "get")
});
Object.defineProperty(w, "ObjectProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectProperty;
}, "get")
});
Object.defineProperty(w, "ObjectTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "ObjectTypeCallProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectTypeCallProperty;
}, "get")
});
Object.defineProperty(w, "ObjectTypeIndexer", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectTypeIndexer;
}, "get")
});
Object.defineProperty(w, "ObjectTypeInternalSlot", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectTypeInternalSlot;
}, "get")
});
Object.defineProperty(w, "ObjectTypeProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectTypeProperty;
}, "get")
});
Object.defineProperty(w, "ObjectTypeSpreadProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.objectTypeSpreadProperty;
}, "get")
});
Object.defineProperty(w, "OpaqueType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.opaqueType;
}, "get")
});
Object.defineProperty(w, "OptionalCallExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.optionalCallExpression;
}, "get")
});
Object.defineProperty(w, "OptionalIndexedAccessType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.optionalIndexedAccessType;
}, "get")
});
Object.defineProperty(w, "OptionalMemberExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.optionalMemberExpression;
}, "get")
});
Object.defineProperty(w, "ParenthesizedExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.parenthesizedExpression;
}, "get")
});
Object.defineProperty(w, "PipelineBareFunction", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.pipelineBareFunction;
}, "get")
});
Object.defineProperty(w, "PipelinePrimaryTopicReference", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.pipelinePrimaryTopicReference;
}, "get")
});
Object.defineProperty(w, "PipelineTopicExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.pipelineTopicExpression;
}, "get")
});
Object.defineProperty(w, "Placeholder", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.placeholder;
}, "get")
});
Object.defineProperty(w, "PrivateName", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.privateName;
}, "get")
});
Object.defineProperty(w, "Program", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.program;
}, "get")
});
Object.defineProperty(w, "QualifiedTypeIdentifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.qualifiedTypeIdentifier;
}, "get")
});
Object.defineProperty(w, "RecordExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.recordExpression;
}, "get")
});
Object.defineProperty(w, "RegExpLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.regExpLiteral;
}, "get")
});
Object.defineProperty(w, "RegexLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.regexLiteral;
}, "get")
});
Object.defineProperty(w, "RestElement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.restElement;
}, "get")
});
Object.defineProperty(w, "RestProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.restProperty;
}, "get")
});
Object.defineProperty(w, "ReturnStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.returnStatement;
}, "get")
});
Object.defineProperty(w, "SequenceExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.sequenceExpression;
}, "get")
});
Object.defineProperty(w, "SpreadElement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.spreadElement;
}, "get")
});
Object.defineProperty(w, "SpreadProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.spreadProperty;
}, "get")
});
Object.defineProperty(w, "StaticBlock", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.staticBlock;
}, "get")
});
Object.defineProperty(w, "StringLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.stringLiteral;
}, "get")
});
Object.defineProperty(w, "StringLiteralTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.stringLiteralTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "StringTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.stringTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "Super", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.super;
}, "get")
});
Object.defineProperty(w, "SwitchCase", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.switchCase;
}, "get")
});
Object.defineProperty(w, "SwitchStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.switchStatement;
}, "get")
});
Object.defineProperty(w, "SymbolTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.symbolTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "TSAnyKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsAnyKeyword;
}, "get")
});
Object.defineProperty(w, "TSArrayType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsArrayType;
}, "get")
});
Object.defineProperty(w, "TSAsExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsAsExpression;
}, "get")
});
Object.defineProperty(w, "TSBigIntKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsBigIntKeyword;
}, "get")
});
Object.defineProperty(w, "TSBooleanKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsBooleanKeyword;
}, "get")
});
Object.defineProperty(w, "TSCallSignatureDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsCallSignatureDeclaration;
}, "get")
});
Object.defineProperty(w, "TSConditionalType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsConditionalType;
}, "get")
});
Object.defineProperty(w, "TSConstructSignatureDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsConstructSignatureDeclaration;
}, "get")
});
Object.defineProperty(w, "TSConstructorType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsConstructorType;
}, "get")
});
Object.defineProperty(w, "TSDeclareFunction", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsDeclareFunction;
}, "get")
});
Object.defineProperty(w, "TSDeclareMethod", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsDeclareMethod;
}, "get")
});
Object.defineProperty(w, "TSEnumBody", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsEnumBody;
}, "get")
});
Object.defineProperty(w, "TSEnumDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsEnumDeclaration;
}, "get")
});
Object.defineProperty(w, "TSEnumMember", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsEnumMember;
}, "get")
});
Object.defineProperty(w, "TSExportAssignment", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsExportAssignment;
}, "get")
});
Object.defineProperty(w, "TSExpressionWithTypeArguments", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsExpressionWithTypeArguments;
}, "get")
});
Object.defineProperty(w, "TSExternalModuleReference", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsExternalModuleReference;
}, "get")
});
Object.defineProperty(w, "TSFunctionType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsFunctionType;
}, "get")
});
Object.defineProperty(w, "TSImportEqualsDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsImportEqualsDeclaration;
}, "get")
});
Object.defineProperty(w, "TSImportType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsImportType;
}, "get")
});
Object.defineProperty(w, "TSIndexSignature", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsIndexSignature;
}, "get")
});
Object.defineProperty(w, "TSIndexedAccessType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsIndexedAccessType;
}, "get")
});
Object.defineProperty(w, "TSInferType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsInferType;
}, "get")
});
Object.defineProperty(w, "TSInstantiationExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsInstantiationExpression;
}, "get")
});
Object.defineProperty(w, "TSInterfaceBody", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsInterfaceBody;
}, "get")
});
Object.defineProperty(w, "TSInterfaceDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsInterfaceDeclaration;
}, "get")
});
Object.defineProperty(w, "TSIntersectionType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsIntersectionType;
}, "get")
});
Object.defineProperty(w, "TSIntrinsicKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsIntrinsicKeyword;
}, "get")
});
Object.defineProperty(w, "TSLiteralType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsLiteralType;
}, "get")
});
Object.defineProperty(w, "TSMappedType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsMappedType;
}, "get")
});
Object.defineProperty(w, "TSMethodSignature", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsMethodSignature;
}, "get")
});
Object.defineProperty(w, "TSModuleBlock", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsModuleBlock;
}, "get")
});
Object.defineProperty(w, "TSModuleDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsModuleDeclaration;
}, "get")
});
Object.defineProperty(w, "TSNamedTupleMember", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsNamedTupleMember;
}, "get")
});
Object.defineProperty(w, "TSNamespaceExportDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsNamespaceExportDeclaration;
}, "get")
});
Object.defineProperty(w, "TSNeverKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsNeverKeyword;
}, "get")
});
Object.defineProperty(w, "TSNonNullExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsNonNullExpression;
}, "get")
});
Object.defineProperty(w, "TSNullKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsNullKeyword;
}, "get")
});
Object.defineProperty(w, "TSNumberKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsNumberKeyword;
}, "get")
});
Object.defineProperty(w, "TSObjectKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsObjectKeyword;
}, "get")
});
Object.defineProperty(w, "TSOptionalType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsOptionalType;
}, "get")
});
Object.defineProperty(w, "TSParameterProperty", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsParameterProperty;
}, "get")
});
Object.defineProperty(w, "TSParenthesizedType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsParenthesizedType;
}, "get")
});
Object.defineProperty(w, "TSPropertySignature", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsPropertySignature;
}, "get")
});
Object.defineProperty(w, "TSQualifiedName", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsQualifiedName;
}, "get")
});
Object.defineProperty(w, "TSRestType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsRestType;
}, "get")
});
Object.defineProperty(w, "TSSatisfiesExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsSatisfiesExpression;
}, "get")
});
Object.defineProperty(w, "TSStringKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsStringKeyword;
}, "get")
});
Object.defineProperty(w, "TSSymbolKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsSymbolKeyword;
}, "get")
});
Object.defineProperty(w, "TSTemplateLiteralType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTemplateLiteralType;
}, "get")
});
Object.defineProperty(w, "TSThisType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsThisType;
}, "get")
});
Object.defineProperty(w, "TSTupleType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTupleType;
}, "get")
});
Object.defineProperty(w, "TSTypeAliasDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeAliasDeclaration;
}, "get")
});
Object.defineProperty(w, "TSTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "TSTypeAssertion", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeAssertion;
}, "get")
});
Object.defineProperty(w, "TSTypeLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeLiteral;
}, "get")
});
Object.defineProperty(w, "TSTypeOperator", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeOperator;
}, "get")
});
Object.defineProperty(w, "TSTypeParameter", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeParameter;
}, "get")
});
Object.defineProperty(w, "TSTypeParameterDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeParameterDeclaration;
}, "get")
});
Object.defineProperty(w, "TSTypeParameterInstantiation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeParameterInstantiation;
}, "get")
});
Object.defineProperty(w, "TSTypePredicate", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypePredicate;
}, "get")
});
Object.defineProperty(w, "TSTypeQuery", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeQuery;
}, "get")
});
Object.defineProperty(w, "TSTypeReference", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsTypeReference;
}, "get")
});
Object.defineProperty(w, "TSUndefinedKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsUndefinedKeyword;
}, "get")
});
Object.defineProperty(w, "TSUnionType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsUnionType;
}, "get")
});
Object.defineProperty(w, "TSUnknownKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsUnknownKeyword;
}, "get")
});
Object.defineProperty(w, "TSVoidKeyword", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tsVoidKeyword;
}, "get")
});
Object.defineProperty(w, "TaggedTemplateExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.taggedTemplateExpression;
}, "get")
});
Object.defineProperty(w, "TemplateElement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.templateElement;
}, "get")
});
Object.defineProperty(w, "TemplateLiteral", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.templateLiteral;
}, "get")
});
Object.defineProperty(w, "ThisExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.thisExpression;
}, "get")
});
Object.defineProperty(w, "ThisTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.thisTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "ThrowStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.throwStatement;
}, "get")
});
Object.defineProperty(w, "TopicReference", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.topicReference;
}, "get")
});
Object.defineProperty(w, "TryStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tryStatement;
}, "get")
});
Object.defineProperty(w, "TupleExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tupleExpression;
}, "get")
});
Object.defineProperty(w, "TupleTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.tupleTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "TypeAlias", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.typeAlias;
}, "get")
});
Object.defineProperty(w, "TypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.typeAnnotation;
}, "get")
});
Object.defineProperty(w, "TypeCastExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.typeCastExpression;
}, "get")
});
Object.defineProperty(w, "TypeParameter", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.typeParameter;
}, "get")
});
Object.defineProperty(w, "TypeParameterDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.typeParameterDeclaration;
}, "get")
});
Object.defineProperty(w, "TypeParameterInstantiation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.typeParameterInstantiation;
}, "get")
});
Object.defineProperty(w, "TypeofTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.typeofTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "UnaryExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.unaryExpression;
}, "get")
});
Object.defineProperty(w, "UnionTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.unionTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "UpdateExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.updateExpression;
}, "get")
});
Object.defineProperty(w, "V8IntrinsicIdentifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.v8IntrinsicIdentifier;
}, "get")
});
Object.defineProperty(w, "VariableDeclaration", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.variableDeclaration;
}, "get")
});
Object.defineProperty(w, "VariableDeclarator", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.variableDeclarator;
}, "get")
});
Object.defineProperty(w, "Variance", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.variance;
}, "get")
});
Object.defineProperty(w, "VoidTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.voidTypeAnnotation;
}, "get")
});
Object.defineProperty(w, "WhileStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.whileStatement;
}, "get")
});
Object.defineProperty(w, "WithStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.withStatement;
}, "get")
});
Object.defineProperty(w, "YieldExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return I.yieldExpression;
}, "get")
});
var I = Pf();
});
// ../node_modules/@babel/types/lib/builders/generated/index.js
var hr = P((Zn) => {
"use strict";
Object.defineProperty(Zn, "__esModule", {
value: !0
});
var Af = Pf();
Object.keys(Af).forEach(function(e) {
e === "default" || e === "__esModule" || e in Zn && Zn[e] === Af[e] || Object.defineProperty(Zn, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Af[e];
}, "get")
});
});
var Cf = bE();
Object.keys(Cf).forEach(function(e) {
e === "default" || e === "__esModule" || e in Zn && Zn[e] === Cf[e] || Object.defineProperty(Zn, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Cf[e];
}, "get")
});
});
});
// ../node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js
var EE = P((Df) => {
"use strict";
Object.defineProperty(Df, "__esModule", {
value: !0
});
Df.default = e5;
var QM = hr(), ZM = De();
function e5(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 s = "";
for (let a = 0; a < r.length; a++) {
let o = r[a], l = a === 0, u = a === r.length - 1, c = a === n, p = o.replace(/\t/g, " ");
l || (p = p.replace(/^ +/, "")), u || (p = p.replace(/ +$/, "")), p && (c || (p += " "), s += p);
}
s && t.push((0, ZM.inherits)((0, QM.stringLiteral)(s), e));
}
i(e5, "cleanJSXElementLiteralChild");
});
// ../node_modules/@babel/types/lib/builders/react/buildChildren.js
var TE = P((If) => {
"use strict";
Object.defineProperty(If, "__esModule", {
value: !0
});
If.default = r5;
var wf = St(), t5 = EE();
function r5(e) {
let t = [];
for (let r = 0; r < e.children.length; r++) {
let n = e.children[r];
if ((0, wf.isJSXText)(n)) {
(0, t5.default)(n, t);
continue;
}
(0, wf.isJSXExpressionContainer)(n) && (n = n.expression), !(0, wf.isJSXEmptyExpression)(n) && t.push(n);
}
return t;
}
i(r5, "buildChildren");
});
// ../node_modules/@babel/types/lib/validators/isNode.js
var Of = P((_f) => {
"use strict";
Object.defineProperty(_f, "__esModule", {
value: !0
});
_f.default = s5;
var n5 = Ir();
function s5(e) {
return !!(e && n5.VISITOR_KEYS[e.type]);
}
i(s5, "isNode");
});
// ../node_modules/@babel/types/lib/asserts/assertNode.js
var SE = P((Nf) => {
"use strict";
Object.defineProperty(Nf, "__esModule", {
value: !0
});
Nf.default = a5;
var i5 = Of();
function a5(e) {
if (!(0, i5.default)(e)) {
var t;
let r = (t = e?.type) != null ? t : JSON.stringify(e);
throw new TypeError(`Not a valid node of type "${r}"`);
}
}
i(a5, "assertNode");
});
// ../node_modules/@babel/types/lib/asserts/generated/index.js
var xE = P((S) => {
"use strict";
Object.defineProperty(S, "__esModule", {
value: !0
});
S.assertAccessor = PU;
S.assertAnyTypeAnnotation = $7;
S.assertArgumentPlaceholder = b9;
S.assertArrayExpression = l5;
S.assertArrayPattern = a7;
S.assertArrayTypeAnnotation = W7;
S.assertArrowFunctionExpression = o7;
S.assertAssignmentExpression = u5;
S.assertAssignmentPattern = i7;
S.assertAwaitExpression = _7;
S.assertBigIntLiteral = N7;
S.assertBinary = Gq;
S.assertBinaryExpression = c5;
S.assertBindExpression = E9;
S.assertBlock = Jq;
S.assertBlockParent = Yq;
S.assertBlockStatement = h5;
S.assertBooleanLiteral = F5;
S.assertBooleanLiteralTypeAnnotation = G7;
S.assertBooleanTypeAnnotation = K7;
S.assertBreakStatement = m5;
S.assertCallExpression = y5;
S.assertCatchClause = g5;
S.assertClass = TU;
S.assertClassAccessorProperty = L7;
S.assertClassBody = l7;
S.assertClassDeclaration = c7;
S.assertClassExpression = u7;
S.assertClassImplements = Y7;
S.assertClassMethod = x7;
S.assertClassPrivateMethod = R7;
S.assertClassPrivateProperty = M7;
S.assertClassProperty = j7;
S.assertCompletionStatement = Qq;
S.assertConditional = Zq;
S.assertConditionalExpression = b5;
S.assertContinueStatement = E5;
S.assertDebuggerStatement = T5;
S.assertDecimalLiteral = A9;
S.assertDeclaration = lU;
S.assertDeclareClass = J7;
S.assertDeclareExportAllDeclaration = sR;
S.assertDeclareExportDeclaration = nR;
S.assertDeclareFunction = X7;
S.assertDeclareInterface = z7;
S.assertDeclareModule = Q7;
S.assertDeclareModuleExports = Z7;
S.assertDeclareOpaqueType = tR;
S.assertDeclareTypeAlias = eR;
S.assertDeclareVariable = rR;
S.assertDeclaredPredicate = iR;
S.assertDecorator = T9;
S.assertDirective = f5;
S.assertDirectiveLiteral = d5;
S.assertDoExpression = S9;
S.assertDoWhileStatement = S5;
S.assertEmptyStatement = x5;
S.assertEmptyTypeAnnotation = yR;
S.assertEnumBody = OU;
S.assertEnumBooleanBody = WR;
S.assertEnumBooleanMember = YR;
S.assertEnumDeclaration = $R;
S.assertEnumDefaultedMember = zR;
S.assertEnumMember = NU;
S.assertEnumNumberBody = KR;
S.assertEnumNumberMember = JR;
S.assertEnumStringBody = GR;
S.assertEnumStringMember = XR;
S.assertEnumSymbolBody = HR;
S.assertExistsTypeAnnotation = aR;
S.assertExportAllDeclaration = p7;
S.assertExportDeclaration = xU;
S.assertExportDefaultDeclaration = f7;
S.assertExportDefaultSpecifier = x9;
S.assertExportNamedDeclaration = d7;
S.assertExportNamespaceSpecifier = B7;
S.assertExportSpecifier = h7;
S.assertExpression = Kq;
S.assertExpressionStatement = v5;
S.assertExpressionWrapper = rU;
S.assertFile = P5;
S.assertFlow = CU;
S.assertFlowBaseAnnotation = wU;
S.assertFlowDeclaration = IU;
S.assertFlowPredicate = _U;
S.assertFlowType = DU;
S.assertFor = nU;
S.assertForInStatement = A5;
S.assertForOfStatement = m7;
S.assertForStatement = C5;
S.assertForXStatement = sU;
S.assertFunction = iU;
S.assertFunctionDeclaration = D5;
S.assertFunctionExpression = w5;
S.assertFunctionParent = aU;
S.assertFunctionTypeAnnotation = oR;
S.assertFunctionTypeParam = lR;
S.assertGenericTypeAnnotation = uR;
S.assertIdentifier = I5;
S.assertIfStatement = _5;
S.assertImmutable = dU;
S.assertImport = O7;
S.assertImportAttribute = V7;
S.assertImportDeclaration = y7;
S.assertImportDefaultSpecifier = g7;
S.assertImportExpression = T7;
S.assertImportNamespaceSpecifier = b7;
S.assertImportOrExportDeclaration = SU;
S.assertImportSpecifier = E7;
S.assertIndexedAccessType = QR;
S.assertInferredPredicate = cR;
S.assertInterfaceDeclaration = fR;
S.assertInterfaceExtends = pR;
S.assertInterfaceTypeAnnotation = dR;
S.assertInterpreterDirective = p5;
S.assertIntersectionTypeAnnotation = hR;
S.assertJSX = BU;
S.assertJSXAttribute = e9;
S.assertJSXClosingElement = t9;
S.assertJSXClosingFragment = h9;
S.assertJSXElement = r9;
S.assertJSXEmptyExpression = n9;
S.assertJSXExpressionContainer = s9;
S.assertJSXFragment = f9;
S.assertJSXIdentifier = a9;
S.assertJSXMemberExpression = o9;
S.assertJSXNamespacedName = l9;
S.assertJSXOpeningElement = u9;
S.assertJSXOpeningFragment = d9;
S.assertJSXSpreadAttribute = c9;
S.assertJSXSpreadChild = i9;
S.assertJSXText = p9;
S.assertLVal = cU;
S.assertLabeledStatement = O5;
S.assertLiteral = fU;
S.assertLogicalExpression = L5;
S.assertLoop = eU;
S.assertMemberExpression = M5;
S.assertMetaProperty = S7;
S.assertMethod = mU;
S.assertMiscellaneous = kU;
S.assertMixedTypeAnnotation = mR;
S.assertModuleDeclaration = $U;
S.assertModuleExpression = C9;
S.assertModuleSpecifier = vU;
S.assertNewExpression = R5;
S.assertNoop = m9;
S.assertNullLiteral = k5;
S.assertNullLiteralTypeAnnotation = H7;
S.assertNullableTypeAnnotation = gR;
S.assertNumberLiteral = RU;
S.assertNumberLiteralTypeAnnotation = bR;
S.assertNumberTypeAnnotation = ER;
S.assertNumericLiteral = B5;
S.assertObjectExpression = U5;
S.assertObjectMember = yU;
S.assertObjectMethod = V5;
S.assertObjectPattern = v7;
S.assertObjectProperty = $5;
S.assertObjectTypeAnnotation = TR;
S.assertObjectTypeCallProperty = xR;
S.assertObjectTypeIndexer = vR;
S.assertObjectTypeInternalSlot = SR;
S.assertObjectTypeProperty = PR;
S.assertObjectTypeSpreadProperty = AR;
S.assertOpaqueType = CR;
S.assertOptionalCallExpression = F7;
S.assertOptionalIndexedAccessType = ZR;
S.assertOptionalMemberExpression = k7;
S.assertParenthesizedExpression = H5;
S.assertPattern = EU;
S.assertPatternLike = uU;
S.assertPipelineBareFunction = I9;
S.assertPipelinePrimaryTopicReference = _9;
S.assertPipelineTopicExpression = w9;
S.assertPlaceholder = y9;
S.assertPrivate = AU;
S.assertPrivateName = q7;
S.assertProgram = q5;
S.assertProperty = gU;
S.assertPureish = oU;
S.assertQualifiedTypeIdentifier = DR;
S.assertRecordExpression = v9;
S.assertRegExpLiteral = j5;
S.assertRegexLiteral = qU;
S.assertRestElement = W5;
S.assertRestProperty = UU;
S.assertReturnStatement = K5;
S.assertScopable = Hq;
S.assertSequenceExpression = G5;
S.assertSpreadElement = P7;
S.assertSpreadProperty = VU;
S.assertStandardized = Wq;
S.assertStatement = Xq;
S.assertStaticBlock = U7;
S.assertStringLiteral = N5;
S.assertStringLiteralTypeAnnotation = wR;
S.assertStringTypeAnnotation = IR;
S.assertSuper = A7;
S.assertSwitchCase = Y5;
S.assertSwitchStatement = J5;
S.assertSymbolTypeAnnotation = _R;
S.assertTSAnyKeyword = q9;
S.assertTSArrayType = aq;
S.assertTSAsExpression = Cq;
S.assertTSBaseType = MU;
S.assertTSBigIntKeyword = V9;
S.assertTSBooleanKeyword = U9;
S.assertTSCallSignatureDeclaration = F9;
S.assertTSConditionalType = dq;
S.assertTSConstructSignatureDeclaration = j9;
S.assertTSConstructorType = tq;
S.assertTSDeclareFunction = N9;
S.assertTSDeclareMethod = B9;
S.assertTSEntityName = pU;
S.assertTSEnumBody = Iq;
S.assertTSEnumDeclaration = _q;
S.assertTSEnumMember = Oq;
S.assertTSExportAssignment = Mq;
S.assertTSExpressionWithTypeArguments = Sq;
S.assertTSExternalModuleReference = jq;
S.assertTSFunctionType = eq;
S.assertTSImportEqualsDeclaration = Fq;
S.assertTSImportType = kq;
S.assertTSIndexSignature = R9;
S.assertTSIndexedAccessType = gq;
S.assertTSInferType = hq;
S.assertTSInstantiationExpression = Aq;
S.assertTSInterfaceBody = vq;
S.assertTSInterfaceDeclaration = xq;
S.assertTSIntersectionType = fq;
S.assertTSIntrinsicKeyword = $9;
S.assertTSLiteralType = Tq;
S.assertTSMappedType = bq;
S.assertTSMethodSignature = M9;
S.assertTSModuleBlock = Bq;
S.assertTSModuleDeclaration = Nq;
S.assertTSNamedTupleMember = cq;
S.assertTSNamespaceExportDeclaration = Rq;
S.assertTSNeverKeyword = W9;
S.assertTSNonNullExpression = Lq;
S.assertTSNullKeyword = K9;
S.assertTSNumberKeyword = G9;
S.assertTSObjectKeyword = H9;
S.assertTSOptionalType = lq;
S.assertTSParameterProperty = O9;
S.assertTSParenthesizedType = mq;
S.assertTSPropertySignature = L9;
S.assertTSQualifiedName = k9;
S.assertTSRestType = uq;
S.assertTSSatisfiesExpression = Dq;
S.assertTSStringKeyword = Y9;
S.assertTSSymbolKeyword = J9;
S.assertTSTemplateLiteralType = Eq;
S.assertTSThisType = Z9;
S.assertTSTupleType = oq;
S.assertTSType = LU;
S.assertTSTypeAliasDeclaration = Pq;
S.assertTSTypeAnnotation = qq;
S.assertTSTypeAssertion = wq;
S.assertTSTypeElement = jU;
S.assertTSTypeLiteral = iq;
S.assertTSTypeOperator = yq;
S.assertTSTypeParameter = $q;
S.assertTSTypeParameterDeclaration = Vq;
S.assertTSTypeParameterInstantiation = Uq;
S.assertTSTypePredicate = nq;
S.assertTSTypeQuery = sq;
S.assertTSTypeReference = rq;
S.assertTSUndefinedKeyword = X9;
S.assertTSUnionType = pq;
S.assertTSUnknownKeyword = z9;
S.assertTSVoidKeyword = Q9;
S.assertTaggedTemplateExpression = C7;
S.assertTemplateElement = D7;
S.assertTemplateLiteral = w7;
S.assertTerminatorless = zq;
S.assertThisExpression = X5;
S.assertThisTypeAnnotation = OR;
S.assertThrowStatement = z5;
S.assertTopicReference = D9;
S.assertTryStatement = Q5;
S.assertTupleExpression = P9;
S.assertTupleTypeAnnotation = NR;
S.assertTypeAlias = kR;
S.assertTypeAnnotation = FR;
S.assertTypeCastExpression = jR;
S.assertTypeParameter = LR;
S.assertTypeParameterDeclaration = MR;
S.assertTypeParameterInstantiation = RR;
S.assertTypeScript = FU;
S.assertTypeofTypeAnnotation = BR;
S.assertUnaryExpression = Z5;
S.assertUnaryLike = bU;
S.assertUnionTypeAnnotation = qR;
S.assertUpdateExpression = e7;
S.assertUserWhitespacable = hU;
S.assertV8IntrinsicIdentifier = g9;
S.assertVariableDeclaration = t7;
S.assertVariableDeclarator = r7;
S.assertVariance = UR;
S.assertVoidTypeAnnotation = VR;
S.assertWhile = tU;
S.assertWhileStatement = n7;
S.assertWithStatement = s7;
S.assertYieldExpression = I7;
var o5 = Ei(), Ba = va();
function x(e, t, r) {
if (!(0, o5.default)(e, t, r))
throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`);
}
i(x, "assert");
function l5(e, t) {
x("ArrayExpression", e, t);
}
i(l5, "assertArrayExpression");
function u5(e, t) {
x("AssignmentExpression", e, t);
}
i(u5, "assertAssignmentExpression");
function c5(e, t) {
x("BinaryExpression", e, t);
}
i(c5, "assertBinaryExpression");
function p5(e, t) {
x("InterpreterDirective", e, t);
}
i(p5, "assertInterpreterDirective");
function f5(e, t) {
x("Directive", e, t);
}
i(f5, "assertDirective");
function d5(e, t) {
x("DirectiveLiteral", e, t);
}
i(d5, "assertDirectiveLiteral");
function h5(e, t) {
x("BlockStatement", e, t);
}
i(h5, "assertBlockStatement");
function m5(e, t) {
x("BreakStatement", e, t);
}
i(m5, "assertBreakStatement");
function y5(e, t) {
x("CallExpression", e, t);
}
i(y5, "assertCallExpression");
function g5(e, t) {
x("CatchClause", e, t);
}
i(g5, "assertCatchClause");
function b5(e, t) {
x("ConditionalExpression", e, t);
}
i(b5, "assertConditionalExpression");
function E5(e, t) {
x("ContinueStatement", e, t);
}
i(E5, "assertContinueStatement");
function T5(e, t) {
x("DebuggerStatement", e, t);
}
i(T5, "assertDebuggerStatement");
function S5(e, t) {
x("DoWhileStatement", e, t);
}
i(S5, "assertDoWhileStatement");
function x5(e, t) {
x("EmptyStatement", e, t);
}
i(x5, "assertEmptyStatement");
function v5(e, t) {
x("ExpressionStatement", e, t);
}
i(v5, "assertExpressionStatement");
function P5(e, t) {
x("File", e, t);
}
i(P5, "assertFile");
function A5(e, t) {
x("ForInStatement", e, t);
}
i(A5, "assertForInStatement");
function C5(e, t) {
x("ForStatement", e, t);
}
i(C5, "assertForStatement");
function D5(e, t) {
x("FunctionDeclaration", e, t);
}
i(D5, "assertFunctionDeclaration");
function w5(e, t) {
x("FunctionExpression", e, t);
}
i(w5, "assertFunctionExpression");
function I5(e, t) {
x("Identifier", e, t);
}
i(I5, "assertIdentifier");
function _5(e, t) {
x("IfStatement", e, t);
}
i(_5, "assertIfStatement");
function O5(e, t) {
x("LabeledStatement", e, t);
}
i(O5, "assertLabeledStatement");
function N5(e, t) {
x("StringLiteral", e, t);
}
i(N5, "assertStringLiteral");
function B5(e, t) {
x("NumericLiteral", e, t);
}
i(B5, "assertNumericLiteral");
function k5(e, t) {
x("NullLiteral", e, t);
}
i(k5, "assertNullLiteral");
function F5(e, t) {
x("BooleanLiteral", e, t);
}
i(F5, "assertBooleanLiteral");
function j5(e, t) {
x("RegExpLiteral", e, t);
}
i(j5, "assertRegExpLiteral");
function L5(e, t) {
x("LogicalExpression", e, t);
}
i(L5, "assertLogicalExpression");
function M5(e, t) {
x("MemberExpression", e, t);
}
i(M5, "assertMemberExpression");
function R5(e, t) {
x("NewExpression", e, t);
}
i(R5, "assertNewExpression");
function q5(e, t) {
x("Program", e, t);
}
i(q5, "assertProgram");
function U5(e, t) {
x("ObjectExpression", e, t);
}
i(U5, "assertObjectExpression");
function V5(e, t) {
x("ObjectMethod", e, t);
}
i(V5, "assertObjectMethod");
function $5(e, t) {
x("ObjectProperty", e, t);
}
i($5, "assertObjectProperty");
function W5(e, t) {
x("RestElement", e, t);
}
i(W5, "assertRestElement");
function K5(e, t) {
x("ReturnStatement", e, t);
}
i(K5, "assertReturnStatement");
function G5(e, t) {
x("SequenceExpression", e, t);
}
i(G5, "assertSequenceExpression");
function H5(e, t) {
x("ParenthesizedExpression", e, t);
}
i(H5, "assertParenthesizedExpression");
function Y5(e, t) {
x("SwitchCase", e, t);
}
i(Y5, "assertSwitchCase");
function J5(e, t) {
x("SwitchStatement", e, t);
}
i(J5, "assertSwitchStatement");
function X5(e, t) {
x("ThisExpression", e, t);
}
i(X5, "assertThisExpression");
function z5(e, t) {
x("ThrowStatement", e, t);
}
i(z5, "assertThrowStatement");
function Q5(e, t) {
x("TryStatement", e, t);
}
i(Q5, "assertTryStatement");
function Z5(e, t) {
x("UnaryExpression", e, t);
}
i(Z5, "assertUnaryExpression");
function e7(e, t) {
x("UpdateExpression", e, t);
}
i(e7, "assertUpdateExpression");
function t7(e, t) {
x("VariableDeclaration", e, t);
}
i(t7, "assertVariableDeclaration");
function r7(e, t) {
x("VariableDeclarator", e, t);
}
i(r7, "assertVariableDeclarator");
function n7(e, t) {
x("WhileStatement", e, t);
}
i(n7, "assertWhileStatement");
function s7(e, t) {
x("WithStatement", e, t);
}
i(s7, "assertWithStatement");
function i7(e, t) {
x("AssignmentPattern", e, t);
}
i(i7, "assertAssignmentPattern");
function a7(e, t) {
x("ArrayPattern", e, t);
}
i(a7, "assertArrayPattern");
function o7(e, t) {
x("ArrowFunctionExpression", e, t);
}
i(o7, "assertArrowFunctionExpression");
function l7(e, t) {
x("ClassBody", e, t);
}
i(l7, "assertClassBody");
function u7(e, t) {
x("ClassExpression", e, t);
}
i(u7, "assertClassExpression");
function c7(e, t) {
x("ClassDeclaration", e, t);
}
i(c7, "assertClassDeclaration");
function p7(e, t) {
x("ExportAllDeclaration", e, t);
}
i(p7, "assertExportAllDeclaration");
function f7(e, t) {
x("ExportDefaultDeclaration", e, t);
}
i(f7, "assertExportDefaultDeclaration");
function d7(e, t) {
x("ExportNamedDeclaration", e, t);
}
i(d7, "assertExportNamedDeclaration");
function h7(e, t) {
x("ExportSpecifier", e, t);
}
i(h7, "assertExportSpecifier");
function m7(e, t) {
x("ForOfStatement", e, t);
}
i(m7, "assertForOfStatement");
function y7(e, t) {
x("ImportDeclaration", e, t);
}
i(y7, "assertImportDeclaration");
function g7(e, t) {
x("ImportDefaultSpecifier", e, t);
}
i(g7, "assertImportDefaultSpecifier");
function b7(e, t) {
x("ImportNamespaceSpecifier", e, t);
}
i(b7, "assertImportNamespaceSpecifier");
function E7(e, t) {
x("ImportSpecifier", e, t);
}
i(E7, "assertImportSpecifier");
function T7(e, t) {
x("ImportExpression", e, t);
}
i(T7, "assertImportExpression");
function S7(e, t) {
x("MetaProperty", e, t);
}
i(S7, "assertMetaProperty");
function x7(e, t) {
x("ClassMethod", e, t);
}
i(x7, "assertClassMethod");
function v7(e, t) {
x("ObjectPattern", e, t);
}
i(v7, "assertObjectPattern");
function P7(e, t) {
x("SpreadElement", e, t);
}
i(P7, "assertSpreadElement");
function A7(e, t) {
x("Super", e, t);
}
i(A7, "assertSuper");
function C7(e, t) {
x("TaggedTemplateExpression", e, t);
}
i(C7, "assertTaggedTemplateExpression");
function D7(e, t) {
x("TemplateElement", e, t);
}
i(D7, "assertTemplateElement");
function w7(e, t) {
x("TemplateLiteral", e, t);
}
i(w7, "assertTemplateLiteral");
function I7(e, t) {
x("YieldExpression", e, t);
}
i(I7, "assertYieldExpression");
function _7(e, t) {
x("AwaitExpression", e, t);
}
i(_7, "assertAwaitExpression");
function O7(e, t) {
x("Import", e, t);
}
i(O7, "assertImport");
function N7(e, t) {
x("BigIntLiteral", e, t);
}
i(N7, "assertBigIntLiteral");
function B7(e, t) {
x("ExportNamespaceSpecifier", e, t);
}
i(B7, "assertExportNamespaceSpecifier");
function k7(e, t) {
x("OptionalMemberExpression", e, t);
}
i(k7, "assertOptionalMemberExpression");
function F7(e, t) {
x("OptionalCallExpression", e, t);
}
i(F7, "assertOptionalCallExpression");
function j7(e, t) {
x("ClassProperty", e, t);
}
i(j7, "assertClassProperty");
function L7(e, t) {
x("ClassAccessorProperty", e, t);
}
i(L7, "assertClassAccessorProperty");
function M7(e, t) {
x("ClassPrivateProperty", e, t);
}
i(M7, "assertClassPrivateProperty");
function R7(e, t) {
x("ClassPrivateMethod", e, t);
}
i(R7, "assertClassPrivateMethod");
function q7(e, t) {
x("PrivateName", e, t);
}
i(q7, "assertPrivateName");
function U7(e, t) {
x("StaticBlock", e, t);
}
i(U7, "assertStaticBlock");
function V7(e, t) {
x("ImportAttribute", e, t);
}
i(V7, "assertImportAttribute");
function $7(e, t) {
x("AnyTypeAnnotation", e, t);
}
i($7, "assertAnyTypeAnnotation");
function W7(e, t) {
x("ArrayTypeAnnotation", e, t);
}
i(W7, "assertArrayTypeAnnotation");
function K7(e, t) {
x("BooleanTypeAnnotation", e, t);
}
i(K7, "assertBooleanTypeAnnotation");
function G7(e, t) {
x("BooleanLiteralTypeAnnotation", e, t);
}
i(G7, "assertBooleanLiteralTypeAnnotation");
function H7(e, t) {
x("NullLiteralTypeAnnotation", e, t);
}
i(H7, "assertNullLiteralTypeAnnotation");
function Y7(e, t) {
x("ClassImplements", e, t);
}
i(Y7, "assertClassImplements");
function J7(e, t) {
x("DeclareClass", e, t);
}
i(J7, "assertDeclareClass");
function X7(e, t) {
x("DeclareFunction", e, t);
}
i(X7, "assertDeclareFunction");
function z7(e, t) {
x("DeclareInterface", e, t);
}
i(z7, "assertDeclareInterface");
function Q7(e, t) {
x("DeclareModule", e, t);
}
i(Q7, "assertDeclareModule");
function Z7(e, t) {
x("DeclareModuleExports", e, t);
}
i(Z7, "assertDeclareModuleExports");
function eR(e, t) {
x("DeclareTypeAlias", e, t);
}
i(eR, "assertDeclareTypeAlias");
function tR(e, t) {
x("DeclareOpaqueType", e, t);
}
i(tR, "assertDeclareOpaqueType");
function rR(e, t) {
x("DeclareVariable", e, t);
}
i(rR, "assertDeclareVariable");
function nR(e, t) {
x("DeclareExportDeclaration", e, t);
}
i(nR, "assertDeclareExportDeclaration");
function sR(e, t) {
x("DeclareExportAllDeclaration", e, t);
}
i(sR, "assertDeclareExportAllDeclaration");
function iR(e, t) {
x("DeclaredPredicate", e, t);
}
i(iR, "assertDeclaredPredicate");
function aR(e, t) {
x("ExistsTypeAnnotation", e, t);
}
i(aR, "assertExistsTypeAnnotation");
function oR(e, t) {
x("FunctionTypeAnnotation", e, t);
}
i(oR, "assertFunctionTypeAnnotation");
function lR(e, t) {
x("FunctionTypeParam", e, t);
}
i(lR, "assertFunctionTypeParam");
function uR(e, t) {
x("GenericTypeAnnotation", e, t);
}
i(uR, "assertGenericTypeAnnotation");
function cR(e, t) {
x("InferredPredicate", e, t);
}
i(cR, "assertInferredPredicate");
function pR(e, t) {
x("InterfaceExtends", e, t);
}
i(pR, "assertInterfaceExtends");
function fR(e, t) {
x("InterfaceDeclaration", e, t);
}
i(fR, "assertInterfaceDeclaration");
function dR(e, t) {
x("InterfaceTypeAnnotation", e, t);
}
i(dR, "assertInterfaceTypeAnnotation");
function hR(e, t) {
x("IntersectionTypeAnnotation", e, t);
}
i(hR, "assertIntersectionTypeAnnotation");
function mR(e, t) {
x("MixedTypeAnnotation", e, t);
}
i(mR, "assertMixedTypeAnnotation");
function yR(e, t) {
x("EmptyTypeAnnotation", e, t);
}
i(yR, "assertEmptyTypeAnnotation");
function gR(e, t) {
x("NullableTypeAnnotation", e, t);
}
i(gR, "assertNullableTypeAnnotation");
function bR(e, t) {
x("NumberLiteralTypeAnnotation", e, t);
}
i(bR, "assertNumberLiteralTypeAnnotation");
function ER(e, t) {
x("NumberTypeAnnotation", e, t);
}
i(ER, "assertNumberTypeAnnotation");
function TR(e, t) {
x("ObjectTypeAnnotation", e, t);
}
i(TR, "assertObjectTypeAnnotation");
function SR(e, t) {
x("ObjectTypeInternalSlot", e, t);
}
i(SR, "assertObjectTypeInternalSlot");
function xR(e, t) {
x("ObjectTypeCallProperty", e, t);
}
i(xR, "assertObjectTypeCallProperty");
function vR(e, t) {
x("ObjectTypeIndexer", e, t);
}
i(vR, "assertObjectTypeIndexer");
function PR(e, t) {
x("ObjectTypeProperty", e, t);
}
i(PR, "assertObjectTypeProperty");
function AR(e, t) {
x("ObjectTypeSpreadProperty", e, t);
}
i(AR, "assertObjectTypeSpreadProperty");
function CR(e, t) {
x("OpaqueType", e, t);
}
i(CR, "assertOpaqueType");
function DR(e, t) {
x("QualifiedTypeIdentifier", e, t);
}
i(DR, "assertQualifiedTypeIdentifier");
function wR(e, t) {
x("StringLiteralTypeAnnotation", e, t);
}
i(wR, "assertStringLiteralTypeAnnotation");
function IR(e, t) {
x("StringTypeAnnotation", e, t);
}
i(IR, "assertStringTypeAnnotation");
function _R(e, t) {
x("SymbolTypeAnnotation", e, t);
}
i(_R, "assertSymbolTypeAnnotation");
function OR(e, t) {
x("ThisTypeAnnotation", e, t);
}
i(OR, "assertThisTypeAnnotation");
function NR(e, t) {
x("TupleTypeAnnotation", e, t);
}
i(NR, "assertTupleTypeAnnotation");
function BR(e, t) {
x("TypeofTypeAnnotation", e, t);
}
i(BR, "assertTypeofTypeAnnotation");
function kR(e, t) {
x("TypeAlias", e, t);
}
i(kR, "assertTypeAlias");
function FR(e, t) {
x("TypeAnnotation", e, t);
}
i(FR, "assertTypeAnnotation");
function jR(e, t) {
x("TypeCastExpression", e, t);
}
i(jR, "assertTypeCastExpression");
function LR(e, t) {
x("TypeParameter", e, t);
}
i(LR, "assertTypeParameter");
function MR(e, t) {
x("TypeParameterDeclaration", e, t);
}
i(MR, "assertTypeParameterDeclaration");
function RR(e, t) {
x("TypeParameterInstantiation", e, t);
}
i(RR, "assertTypeParameterInstantiation");
function qR(e, t) {
x("UnionTypeAnnotation", e, t);
}
i(qR, "assertUnionTypeAnnotation");
function UR(e, t) {
x("Variance", e, t);
}
i(UR, "assertVariance");
function VR(e, t) {
x("VoidTypeAnnotation", e, t);
}
i(VR, "assertVoidTypeAnnotation");
function $R(e, t) {
x("EnumDeclaration", e, t);
}
i($R, "assertEnumDeclaration");
function WR(e, t) {
x("EnumBooleanBody", e, t);
}
i(WR, "assertEnumBooleanBody");
function KR(e, t) {
x("EnumNumberBody", e, t);
}
i(KR, "assertEnumNumberBody");
function GR(e, t) {
x("EnumStringBody", e, t);
}
i(GR, "assertEnumStringBody");
function HR(e, t) {
x("EnumSymbolBody", e, t);
}
i(HR, "assertEnumSymbolBody");
function YR(e, t) {
x("EnumBooleanMember", e, t);
}
i(YR, "assertEnumBooleanMember");
function JR(e, t) {
x("EnumNumberMember", e, t);
}
i(JR, "assertEnumNumberMember");
function XR(e, t) {
x("EnumStringMember", e, t);
}
i(XR, "assertEnumStringMember");
function zR(e, t) {
x("EnumDefaultedMember", e, t);
}
i(zR, "assertEnumDefaultedMember");
function QR(e, t) {
x("IndexedAccessType", e, t);
}
i(QR, "assertIndexedAccessType");
function ZR(e, t) {
x("OptionalIndexedAccessType", e, t);
}
i(ZR, "assertOptionalIndexedAccessType");
function e9(e, t) {
x("JSXAttribute", e, t);
}
i(e9, "assertJSXAttribute");
function t9(e, t) {
x("JSXClosingElement", e, t);
}
i(t9, "assertJSXClosingElement");
function r9(e, t) {
x("JSXElement", e, t);
}
i(r9, "assertJSXElement");
function n9(e, t) {
x("JSXEmptyExpression", e, t);
}
i(n9, "assertJSXEmptyExpression");
function s9(e, t) {
x("JSXExpressionContainer", e, t);
}
i(s9, "assertJSXExpressionContainer");
function i9(e, t) {
x("JSXSpreadChild", e, t);
}
i(i9, "assertJSXSpreadChild");
function a9(e, t) {
x("JSXIdentifier", e, t);
}
i(a9, "assertJSXIdentifier");
function o9(e, t) {
x("JSXMemberExpression", e, t);
}
i(o9, "assertJSXMemberExpression");
function l9(e, t) {
x("JSXNamespacedName", e, t);
}
i(l9, "assertJSXNamespacedName");
function u9(e, t) {
x("JSXOpeningElement", e, t);
}
i(u9, "assertJSXOpeningElement");
function c9(e, t) {
x("JSXSpreadAttribute", e, t);
}
i(c9, "assertJSXSpreadAttribute");
function p9(e, t) {
x("JSXText", e, t);
}
i(p9, "assertJSXText");
function f9(e, t) {
x("JSXFragment", e, t);
}
i(f9, "assertJSXFragment");
function d9(e, t) {
x("JSXOpeningFragment", e, t);
}
i(d9, "assertJSXOpeningFragment");
function h9(e, t) {
x("JSXClosingFragment", e, t);
}
i(h9, "assertJSXClosingFragment");
function m9(e, t) {
x("Noop", e, t);
}
i(m9, "assertNoop");
function y9(e, t) {
x("Placeholder", e, t);
}
i(y9, "assertPlaceholder");
function g9(e, t) {
x("V8IntrinsicIdentifier", e, t);
}
i(g9, "assertV8IntrinsicIdentifier");
function b9(e, t) {
x("ArgumentPlaceholder", e, t);
}
i(b9, "assertArgumentPlaceholder");
function E9(e, t) {
x("BindExpression", e, t);
}
i(E9, "assertBindExpression");
function T9(e, t) {
x("Decorator", e, t);
}
i(T9, "assertDecorator");
function S9(e, t) {
x("DoExpression", e, t);
}
i(S9, "assertDoExpression");
function x9(e, t) {
x("ExportDefaultSpecifier", e, t);
}
i(x9, "assertExportDefaultSpecifier");
function v9(e, t) {
x("RecordExpression", e, t);
}
i(v9, "assertRecordExpression");
function P9(e, t) {
x("TupleExpression", e, t);
}
i(P9, "assertTupleExpression");
function A9(e, t) {
x("DecimalLiteral", e, t);
}
i(A9, "assertDecimalLiteral");
function C9(e, t) {
x("ModuleExpression", e, t);
}
i(C9, "assertModuleExpression");
function D9(e, t) {
x("TopicReference", e, t);
}
i(D9, "assertTopicReference");
function w9(e, t) {
x("PipelineTopicExpression", e, t);
}
i(w9, "assertPipelineTopicExpression");
function I9(e, t) {
x("PipelineBareFunction", e, t);
}
i(I9, "assertPipelineBareFunction");
function _9(e, t) {
x("PipelinePrimaryTopicReference", e, t);
}
i(_9, "assertPipelinePrimaryTopicReference");
function O9(e, t) {
x("TSParameterProperty", e, t);
}
i(O9, "assertTSParameterProperty");
function N9(e, t) {
x("TSDeclareFunction", e, t);
}
i(N9, "assertTSDeclareFunction");
function B9(e, t) {
x("TSDeclareMethod", e, t);
}
i(B9, "assertTSDeclareMethod");
function k9(e, t) {
x("TSQualifiedName", e, t);
}
i(k9, "assertTSQualifiedName");
function F9(e, t) {
x("TSCallSignatureDeclaration", e, t);
}
i(F9, "assertTSCallSignatureDeclaration");
function j9(e, t) {
x("TSConstructSignatureDeclaration", e, t);
}
i(j9, "assertTSConstructSignatureDeclaration");
function L9(e, t) {
x("TSPropertySignature", e, t);
}
i(L9, "assertTSPropertySignature");
function M9(e, t) {
x("TSMethodSignature", e, t);
}
i(M9, "assertTSMethodSignature");
function R9(e, t) {
x("TSIndexSignature", e, t);
}
i(R9, "assertTSIndexSignature");
function q9(e, t) {
x("TSAnyKeyword", e, t);
}
i(q9, "assertTSAnyKeyword");
function U9(e, t) {
x("TSBooleanKeyword", e, t);
}
i(U9, "assertTSBooleanKeyword");
function V9(e, t) {
x("TSBigIntKeyword", e, t);
}
i(V9, "assertTSBigIntKeyword");
function $9(e, t) {
x("TSIntrinsicKeyword", e, t);
}
i($9, "assertTSIntrinsicKeyword");
function W9(e, t) {
x("TSNeverKeyword", e, t);
}
i(W9, "assertTSNeverKeyword");
function K9(e, t) {
x("TSNullKeyword", e, t);
}
i(K9, "assertTSNullKeyword");
function G9(e, t) {
x("TSNumberKeyword", e, t);
}
i(G9, "assertTSNumberKeyword");
function H9(e, t) {
x("TSObjectKeyword", e, t);
}
i(H9, "assertTSObjectKeyword");
function Y9(e, t) {
x("TSStringKeyword", e, t);
}
i(Y9, "assertTSStringKeyword");
function J9(e, t) {
x("TSSymbolKeyword", e, t);
}
i(J9, "assertTSSymbolKeyword");
function X9(e, t) {
x("TSUndefinedKeyword", e, t);
}
i(X9, "assertTSUndefinedKeyword");
function z9(e, t) {
x("TSUnknownKeyword", e, t);
}
i(z9, "assertTSUnknownKeyword");
function Q9(e, t) {
x("TSVoidKeyword", e, t);
}
i(Q9, "assertTSVoidKeyword");
function Z9(e, t) {
x("TSThisType", e, t);
}
i(Z9, "assertTSThisType");
function eq(e, t) {
x("TSFunctionType", e, t);
}
i(eq, "assertTSFunctionType");
function tq(e, t) {
x("TSConstructorType", e, t);
}
i(tq, "assertTSConstructorType");
function rq(e, t) {
x("TSTypeReference", e, t);
}
i(rq, "assertTSTypeReference");
function nq(e, t) {
x("TSTypePredicate", e, t);
}
i(nq, "assertTSTypePredicate");
function sq(e, t) {
x("TSTypeQuery", e, t);
}
i(sq, "assertTSTypeQuery");
function iq(e, t) {
x("TSTypeLiteral", e, t);
}
i(iq, "assertTSTypeLiteral");
function aq(e, t) {
x("TSArrayType", e, t);
}
i(aq, "assertTSArrayType");
function oq(e, t) {
x("TSTupleType", e, t);
}
i(oq, "assertTSTupleType");
function lq(e, t) {
x("TSOptionalType", e, t);
}
i(lq, "assertTSOptionalType");
function uq(e, t) {
x("TSRestType", e, t);
}
i(uq, "assertTSRestType");
function cq(e, t) {
x("TSNamedTupleMember", e, t);
}
i(cq, "assertTSNamedTupleMember");
function pq(e, t) {
x("TSUnionType", e, t);
}
i(pq, "assertTSUnionType");
function fq(e, t) {
x("TSIntersectionType", e, t);
}
i(fq, "assertTSIntersectionType");
function dq(e, t) {
x("TSConditionalType", e, t);
}
i(dq, "assertTSConditionalType");
function hq(e, t) {
x("TSInferType", e, t);
}
i(hq, "assertTSInferType");
function mq(e, t) {
x("TSParenthesizedType", e, t);
}
i(mq, "assertTSParenthesizedType");
function yq(e, t) {
x("TSTypeOperator", e, t);
}
i(yq, "assertTSTypeOperator");
function gq(e, t) {
x("TSIndexedAccessType", e, t);
}
i(gq, "assertTSIndexedAccessType");
function bq(e, t) {
x("TSMappedType", e, t);
}
i(bq, "assertTSMappedType");
function Eq(e, t) {
x("TSTemplateLiteralType", e, t);
}
i(Eq, "assertTSTemplateLiteralType");
function Tq(e, t) {
x("TSLiteralType", e, t);
}
i(Tq, "assertTSLiteralType");
function Sq(e, t) {
x("TSExpressionWithTypeArguments", e, t);
}
i(Sq, "assertTSExpressionWithTypeArguments");
function xq(e, t) {
x("TSInterfaceDeclaration", e, t);
}
i(xq, "assertTSInterfaceDeclaration");
function vq(e, t) {
x("TSInterfaceBody", e, t);
}
i(vq, "assertTSInterfaceBody");
function Pq(e, t) {
x("TSTypeAliasDeclaration", e, t);
}
i(Pq, "assertTSTypeAliasDeclaration");
function Aq(e, t) {
x("TSInstantiationExpression", e, t);
}
i(Aq, "assertTSInstantiationExpression");
function Cq(e, t) {
x("TSAsExpression", e, t);
}
i(Cq, "assertTSAsExpression");
function Dq(e, t) {
x("TSSatisfiesExpression", e, t);
}
i(Dq, "assertTSSatisfiesExpression");
function wq(e, t) {
x("TSTypeAssertion", e, t);
}
i(wq, "assertTSTypeAssertion");
function Iq(e, t) {
x("TSEnumBody", e, t);
}
i(Iq, "assertTSEnumBody");
function _q(e, t) {
x("TSEnumDeclaration", e, t);
}
i(_q, "assertTSEnumDeclaration");
function Oq(e, t) {
x("TSEnumMember", e, t);
}
i(Oq, "assertTSEnumMember");
function Nq(e, t) {
x("TSModuleDeclaration", e, t);
}
i(Nq, "assertTSModuleDeclaration");
function Bq(e, t) {
x("TSModuleBlock", e, t);
}
i(Bq, "assertTSModuleBlock");
function kq(e, t) {
x("TSImportType", e, t);
}
i(kq, "assertTSImportType");
function Fq(e, t) {
x("TSImportEqualsDeclaration", e, t);
}
i(Fq, "assertTSImportEqualsDeclaration");
function jq(e, t) {
x("TSExternalModuleReference", e, t);
}
i(jq, "assertTSExternalModuleReference");
function Lq(e, t) {
x("TSNonNullExpression", e, t);
}
i(Lq, "assertTSNonNullExpression");
function Mq(e, t) {
x("TSExportAssignment", e, t);
}
i(Mq, "assertTSExportAssignment");
function Rq(e, t) {
x("TSNamespaceExportDeclaration", e, t);
}
i(Rq, "assertTSNamespaceExportDeclaration");
function qq(e, t) {
x("TSTypeAnnotation", e, t);
}
i(qq, "assertTSTypeAnnotation");
function Uq(e, t) {
x("TSTypeParameterInstantiation", e, t);
}
i(Uq, "assertTSTypeParameterInstantiation");
function Vq(e, t) {
x("TSTypeParameterDeclaration", e, t);
}
i(Vq, "assertTSTypeParameterDeclaration");
function $q(e, t) {
x("TSTypeParameter", e, t);
}
i($q, "assertTSTypeParameter");
function Wq(e, t) {
x("Standardized", e, t);
}
i(Wq, "assertStandardized");
function Kq(e, t) {
x("Expression", e, t);
}
i(Kq, "assertExpression");
function Gq(e, t) {
x("Binary", e, t);
}
i(Gq, "assertBinary");
function Hq(e, t) {
x("Scopable", e, t);
}
i(Hq, "assertScopable");
function Yq(e, t) {
x("BlockParent", e, t);
}
i(Yq, "assertBlockParent");
function Jq(e, t) {
x("Block", e, t);
}
i(Jq, "assertBlock");
function Xq(e, t) {
x("Statement", e, t);
}
i(Xq, "assertStatement");
function zq(e, t) {
x("Terminatorless", e, t);
}
i(zq, "assertTerminatorless");
function Qq(e, t) {
x("CompletionStatement", e, t);
}
i(Qq, "assertCompletionStatement");
function Zq(e, t) {
x("Conditional", e, t);
}
i(Zq, "assertConditional");
function eU(e, t) {
x("Loop", e, t);
}
i(eU, "assertLoop");
function tU(e, t) {
x("While", e, t);
}
i(tU, "assertWhile");
function rU(e, t) {
x("ExpressionWrapper", e, t);
}
i(rU, "assertExpressionWrapper");
function nU(e, t) {
x("For", e, t);
}
i(nU, "assertFor");
function sU(e, t) {
x("ForXStatement", e, t);
}
i(sU, "assertForXStatement");
function iU(e, t) {
x("Function", e, t);
}
i(iU, "assertFunction");
function aU(e, t) {
x("FunctionParent", e, t);
}
i(aU, "assertFunctionParent");
function oU(e, t) {
x("Pureish", e, t);
}
i(oU, "assertPureish");
function lU(e, t) {
x("Declaration", e, t);
}
i(lU, "assertDeclaration");
function uU(e, t) {
x("PatternLike", e, t);
}
i(uU, "assertPatternLike");
function cU(e, t) {
x("LVal", e, t);
}
i(cU, "assertLVal");
function pU(e, t) {
x("TSEntityName", e, t);
}
i(pU, "assertTSEntityName");
function fU(e, t) {
x("Literal", e, t);
}
i(fU, "assertLiteral");
function dU(e, t) {
x("Immutable", e, t);
}
i(dU, "assertImmutable");
function hU(e, t) {
x("UserWhitespacable", e, t);
}
i(hU, "assertUserWhitespacable");
function mU(e, t) {
x("Method", e, t);
}
i(mU, "assertMethod");
function yU(e, t) {
x("ObjectMember", e, t);
}
i(yU, "assertObjectMember");
function gU(e, t) {
x("Property", e, t);
}
i(gU, "assertProperty");
function bU(e, t) {
x("UnaryLike", e, t);
}
i(bU, "assertUnaryLike");
function EU(e, t) {
x("Pattern", e, t);
}
i(EU, "assertPattern");
function TU(e, t) {
x("Class", e, t);
}
i(TU, "assertClass");
function SU(e, t) {
x("ImportOrExportDeclaration", e, t);
}
i(SU, "assertImportOrExportDeclaration");
function xU(e, t) {
x("ExportDeclaration", e, t);
}
i(xU, "assertExportDeclaration");
function vU(e, t) {
x("ModuleSpecifier", e, t);
}
i(vU, "assertModuleSpecifier");
function PU(e, t) {
x("Accessor", e, t);
}
i(PU, "assertAccessor");
function AU(e, t) {
x("Private", e, t);
}
i(AU, "assertPrivate");
function CU(e, t) {
x("Flow", e, t);
}
i(CU, "assertFlow");
function DU(e, t) {
x("FlowType", e, t);
}
i(DU, "assertFlowType");
function wU(e, t) {
x("FlowBaseAnnotation", e, t);
}
i(wU, "assertFlowBaseAnnotation");
function IU(e, t) {
x("FlowDeclaration", e, t);
}
i(IU, "assertFlowDeclaration");
function _U(e, t) {
x("FlowPredicate", e, t);
}
i(_U, "assertFlowPredicate");
function OU(e, t) {
x("EnumBody", e, t);
}
i(OU, "assertEnumBody");
function NU(e, t) {
x("EnumMember", e, t);
}
i(NU, "assertEnumMember");
function BU(e, t) {
x("JSX", e, t);
}
i(BU, "assertJSX");
function kU(e, t) {
x("Miscellaneous", e, t);
}
i(kU, "assertMiscellaneous");
function FU(e, t) {
x("TypeScript", e, t);
}
i(FU, "assertTypeScript");
function jU(e, t) {
x("TSTypeElement", e, t);
}
i(jU, "assertTSTypeElement");
function LU(e, t) {
x("TSType", e, t);
}
i(LU, "assertTSType");
function MU(e, t) {
x("TSBaseType", e, t);
}
i(MU, "assertTSBaseType");
function RU(e, t) {
(0, Ba.default)("assertNumberLiteral", "assertNumericLiteral"), x("NumberLiteral", e, t);
}
i(RU, "assertNumberLiteral");
function qU(e, t) {
(0, Ba.default)("assertRegexLiteral", "assertRegExpLiteral"), x("RegexLiteral", e, t);
}
i(qU, "assertRegexLiteral");
function UU(e, t) {
(0, Ba.default)("assertRestProperty", "assertRestElement"), x("RestProperty", e, t);
}
i(UU, "assertRestProperty");
function VU(e, t) {
(0, Ba.default)("assertSpreadProperty", "assertSpreadElement"), x("SpreadProperty", e, t);
}
i(VU, "assertSpreadProperty");
function $U(e, t) {
(0, Ba.default)("assertModuleDeclaration", "assertImportOrExportDeclaration"), x("ModuleDeclaration", e, t);
}
i($U, "assertModuleDeclaration");
});
// ../node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js
var vE = P((El) => {
"use strict";
Object.defineProperty(El, "__esModule", {
value: !0
});
El.default = void 0;
var Wr = hr(), k1e = El.default = WU;
function WU(e) {
switch (e) {
case "string":
return (0, Wr.stringTypeAnnotation)();
case "number":
return (0, Wr.numberTypeAnnotation)();
case "undefined":
return (0, Wr.voidTypeAnnotation)();
case "boolean":
return (0, Wr.booleanTypeAnnotation)();
case "function":
return (0, Wr.genericTypeAnnotation)((0, Wr.identifier)("Function"));
case "object":
return (0, Wr.genericTypeAnnotation)((0, Wr.identifier)("Object"));
case "symbol":
return (0, Wr.genericTypeAnnotation)((0, Wr.identifier)("Symbol"));
case "bigint":
return (0, Wr.anyTypeAnnotation)();
}
throw new Error("Invalid typeof value: " + e);
}
i(WU, "createTypeAnnotationBasedOnTypeof");
});
// ../node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js
var kf = P((Bf) => {
"use strict";
Object.defineProperty(Bf, "__esModule", {
value: !0
});
Bf.default = AE;
var ka = St();
function PE(e) {
return (0, ka.isIdentifier)(e) ? e.name : `${e.id.name}.${PE(e.qualification)}`;
}
i(PE, "getQualifiedName");
function AE(e) {
let t = Array.from(e), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set(), a = [];
for (let o = 0; o < t.length; o++) {
let l = t[o];
if (l && !a.includes(l)) {
if ((0, ka.isAnyTypeAnnotation)(l))
return [l];
if ((0, ka.isFlowBaseAnnotation)(l)) {
n.set(l.type, l);
continue;
}
if ((0, ka.isUnionTypeAnnotation)(l)) {
s.has(l.types) || (t.push(...l.types), s.add(l.types));
continue;
}
if ((0, ka.isGenericTypeAnnotation)(l)) {
let u = PE(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 = AE(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;
}
i(AE, "removeTypeDuplicates");
});
// ../node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js
var CE = P((Ff) => {
"use strict";
Object.defineProperty(Ff, "__esModule", {
value: !0
});
Ff.default = HU;
var KU = hr(), GU = kf();
function HU(e) {
let t = (0, GU.default)(e);
return t.length === 1 ? t[0] : (0, KU.unionTypeAnnotation)(t);
}
i(HU, "createFlowUnionType");
});
// ../node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js
var IE = P((jf) => {
"use strict";
Object.defineProperty(jf, "__esModule", {
value: !0
});
jf.default = wE;
var Ci = St();
function DE(e) {
return (0, Ci.isIdentifier)(e) ? e.name : (0, Ci.isThisExpression)(e) ? "this" : `${e.right.name}.${DE(e.left)}`;
}
i(DE, "getQualifiedName");
function wE(e) {
let t = Array.from(e), r = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Set(), a = [];
for (let o = 0; o < t.length; o++) {
let l = t[o];
if (!l || a.includes(l))
continue;
if ((0, Ci.isTSAnyKeyword)(l))
return [l];
if ((0, Ci.isTSBaseType)(l)) {
n.set(l.type, l);
continue;
}
if ((0, Ci.isTSUnionType)(l)) {
s.has(l.types) || (t.push(...l.types), s.add(l.types));
continue;
}
let u = "typeParameters";
if ((0, Ci.isTSTypeReference)(l) && l[u]) {
let c = l[u], p = DE(l.typeName);
if (r.has(p)) {
let f = r.get(p), h = f[u];
h ? (h.params.push(...c.params), h.params = wE(h.params)) : f = c;
} else
r.set(p, l);
continue;
}
a.push(l);
}
for (let [, o] of n)
a.push(o);
for (let [, o] of r)
a.push(o);
return a;
}
i(wE, "removeTypeDuplicates");
});
// ../node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js
var _E = P((Lf) => {
"use strict";
Object.defineProperty(Lf, "__esModule", {
value: !0
});
Lf.default = zU;
var YU = hr(), JU = IE(), XU = St();
function zU(e) {
let t = e.map((n) => (0, XU.isTSTypeAnnotation)(n) ? n.typeAnnotation : n), r = (0, JU.default)(t);
return r.length === 1 ? r[0] : (0, YU.tsUnionType)(r);
}
i(zU, "createTSUnionType");
});
// ../node_modules/@babel/types/lib/builders/productions.js
var Rf = P((Mf) => {
"use strict";
Object.defineProperty(Mf, "__esModule", {
value: !0
});
Mf.buildUndefinedNode = QU;
var OE = hr();
function QU() {
return (0, OE.unaryExpression)("void", (0, OE.numericLiteral)(0), !0);
}
i(QU, "buildUndefinedNode");
});
// ../node_modules/@babel/types/lib/clone/cloneNode.js
var es = P((Uf) => {
"use strict";
Object.defineProperty(Uf, "__esModule", {
value: !0
});
Uf.default = ZU;
var NE = Ir(), BE = St(), {
hasOwn: ln
} = {
hasOwn: Function.call.bind(Object.prototype.hasOwnProperty)
};
function kE(e, t, r, n) {
return e && typeof e.type == "string" ? FE(e, t, r, n) : e;
}
i(kE, "cloneIfNode");
function qf(e, t, r, n) {
return Array.isArray(e) ? e.map((s) => kE(s, t, r, n)) : kE(e, t, r, n);
}
i(qf, "cloneIfNodeOrArray");
function ZU(e, t = !0, r = !1) {
return FE(e, t, r, /* @__PURE__ */ new Map());
}
i(ZU, "cloneNode");
function FE(e, t = !0, r = !1, n) {
if (!e) return e;
let {
type: s
} = e, a = {
type: e.type
};
if ((0, BE.isIdentifier)(e))
a.name = e.name, ln(e, "optional") && typeof e.optional == "boolean" && (a.optional = e.optional), ln(e, "typeAnnotation") && (a.typeAnnotation =
t ? qf(e.typeAnnotation, !0, r, n) : e.typeAnnotation), ln(e, "decorators") && (a.decorators = t ? qf(e.decorators, !0, r, n) : e.decorators);
else if (ln(NE.NODE_FIELDS, s))
for (let o of Object.keys(NE.NODE_FIELDS[s]))
ln(e, o) && (t ? a[o] = (0, BE.isFile)(e) && o === "comments" ? Tl(e.comments, t, r, n) : qf(e[o], !0, r, n) : a[o] = e[o]);
else
throw new Error(`Unknown node type: "${s}"`);
return ln(e, "loc") && (r ? a.loc = null : a.loc = e.loc), ln(e, "leadingComments") && (a.leadingComments = Tl(e.leadingComments, t, r, n)),
ln(e, "innerComments") && (a.innerComments = Tl(e.innerComments, t, r, n)), ln(e, "trailingComments") && (a.trailingComments = Tl(e.trailingComments,
t, r, n)), ln(e, "extra") && (a.extra = Object.assign({}, e.extra)), a;
}
i(FE, "cloneNodeInternal");
function Tl(e, t, r, n) {
return !e || !t ? e : e.map((s) => {
let a = n.get(s);
if (a) return a;
let {
type: o,
value: l,
loc: u
} = s, c = {
type: o,
value: l,
loc: u
};
return r && (c.loc = null), n.set(s, c), c;
});
}
i(Tl, "maybeCloneComments");
});
// ../node_modules/@babel/types/lib/clone/clone.js
var jE = P((Vf) => {
"use strict";
Object.defineProperty(Vf, "__esModule", {
value: !0
});
Vf.default = tV;
var eV = es();
function tV(e) {
return (0, eV.default)(e, !1);
}
i(tV, "clone");
});
// ../node_modules/@babel/types/lib/clone/cloneDeep.js
var LE = P(($f) => {
"use strict";
Object.defineProperty($f, "__esModule", {
value: !0
});
$f.default = nV;
var rV = es();
function nV(e) {
return (0, rV.default)(e);
}
i(nV, "cloneDeep");
});
// ../node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js
var ME = P((Wf) => {
"use strict";
Object.defineProperty(Wf, "__esModule", {
value: !0
});
Wf.default = iV;
var sV = es();
function iV(e) {
return (0, sV.default)(e, !0, !0);
}
i(iV, "cloneDeepWithoutLoc");
});
// ../node_modules/@babel/types/lib/clone/cloneWithoutLoc.js
var RE = P((Kf) => {
"use strict";
Object.defineProperty(Kf, "__esModule", {
value: !0
});
Kf.default = oV;
var aV = es();
function oV(e) {
return (0, aV.default)(e, !1, !0);
}
i(oV, "cloneWithoutLoc");
});
// ../node_modules/@babel/types/lib/comments/addComments.js
var Hf = P((Gf) => {
"use strict";
Object.defineProperty(Gf, "__esModule", {
value: !0
});
Gf.default = lV;
function lV(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;
}
i(lV, "addComments");
});
// ../node_modules/@babel/types/lib/comments/addComment.js
var qE = P((Yf) => {
"use strict";
Object.defineProperty(Yf, "__esModule", {
value: !0
});
Yf.default = cV;
var uV = Hf();
function cV(e, t, r, n) {
return (0, uV.default)(e, t, [{
type: n ? "CommentLine" : "CommentBlock",
value: r
}]);
}
i(cV, "addComment");
});
// ../node_modules/@babel/types/lib/utils/inherit.js
var Sl = P((Jf) => {
"use strict";
Object.defineProperty(Jf, "__esModule", {
value: !0
});
Jf.default = pV;
function pV(e, t, r) {
t && r && (t[e] = Array.from(new Set([].concat(t[e], r[e]).filter(Boolean))));
}
i(pV, "inherit");
});
// ../node_modules/@babel/types/lib/comments/inheritInnerComments.js
var zf = P((Xf) => {
"use strict";
Object.defineProperty(Xf, "__esModule", {
value: !0
});
Xf.default = dV;
var fV = Sl();
function dV(e, t) {
(0, fV.default)("innerComments", e, t);
}
i(dV, "inheritInnerComments");
});
// ../node_modules/@babel/types/lib/comments/inheritLeadingComments.js
var Zf = P((Qf) => {
"use strict";
Object.defineProperty(Qf, "__esModule", {
value: !0
});
Qf.default = mV;
var hV = Sl();
function mV(e, t) {
(0, hV.default)("leadingComments", e, t);
}
i(mV, "inheritLeadingComments");
});
// ../node_modules/@babel/types/lib/comments/inheritTrailingComments.js
var td = P((ed) => {
"use strict";
Object.defineProperty(ed, "__esModule", {
value: !0
});
ed.default = gV;
var yV = Sl();
function gV(e, t) {
(0, yV.default)("trailingComments", e, t);
}
i(gV, "inheritTrailingComments");
});
// ../node_modules/@babel/types/lib/comments/inheritsComments.js
var nd = P((rd) => {
"use strict";
Object.defineProperty(rd, "__esModule", {
value: !0
});
rd.default = SV;
var bV = td(), EV = Zf(), TV = zf();
function SV(e, t) {
return (0, bV.default)(e, t), (0, EV.default)(e, t), (0, TV.default)(e, t), e;
}
i(SV, "inheritsComments");
});
// ../node_modules/@babel/types/lib/comments/removeComments.js
var UE = P((sd) => {
"use strict";
Object.defineProperty(sd, "__esModule", {
value: !0
});
sd.default = vV;
var xV = xi();
function vV(e) {
return xV.COMMENT_KEYS.forEach((t) => {
e[t] = null;
}), e;
}
i(vV, "removeComments");
});
// ../node_modules/@babel/types/lib/constants/generated/index.js
var VE = P((X) => {
"use strict";
Object.defineProperty(X, "__esModule", {
value: !0
});
X.WHILE_TYPES = X.USERWHITESPACABLE_TYPES = X.UNARYLIKE_TYPES = X.TYPESCRIPT_TYPES = X.TSTYPE_TYPES = X.TSTYPEELEMENT_TYPES = X.TSENTITYNAME_TYPES =
X.TSBASETYPE_TYPES = X.TERMINATORLESS_TYPES = X.STATEMENT_TYPES = X.STANDARDIZED_TYPES = X.SCOPABLE_TYPES = X.PUREISH_TYPES = X.PROPERTY_TYPES =
X.PRIVATE_TYPES = X.PATTERN_TYPES = X.PATTERNLIKE_TYPES = X.OBJECTMEMBER_TYPES = X.MODULESPECIFIER_TYPES = X.MODULEDECLARATION_TYPES = X.MISCELLANEOUS_TYPES =
X.METHOD_TYPES = X.LVAL_TYPES = X.LOOP_TYPES = X.LITERAL_TYPES = X.JSX_TYPES = X.IMPORTOREXPORTDECLARATION_TYPES = X.IMMUTABLE_TYPES = X.FUNCTION_TYPES =
X.FUNCTIONPARENT_TYPES = X.FOR_TYPES = X.FORXSTATEMENT_TYPES = X.FLOW_TYPES = X.FLOWTYPE_TYPES = X.FLOWPREDICATE_TYPES = X.FLOWDECLARATION_TYPES =
X.FLOWBASEANNOTATION_TYPES = X.EXPRESSION_TYPES = X.EXPRESSIONWRAPPER_TYPES = X.EXPORTDECLARATION_TYPES = X.ENUMMEMBER_TYPES = X.ENUMBODY_TYPES =
X.DECLARATION_TYPES = X.CONDITIONAL_TYPES = X.COMPLETIONSTATEMENT_TYPES = X.CLASS_TYPES = X.BLOCK_TYPES = X.BLOCKPARENT_TYPES = X.BINARY_TYPES =
X.ACCESSOR_TYPES = void 0;
var Ne = Ir(), EEe = X.STANDARDIZED_TYPES = Ne.FLIPPED_ALIAS_KEYS.Standardized, TEe = X.EXPRESSION_TYPES = Ne.FLIPPED_ALIAS_KEYS.Expression,
SEe = X.BINARY_TYPES = Ne.FLIPPED_ALIAS_KEYS.Binary, xEe = X.SCOPABLE_TYPES = Ne.FLIPPED_ALIAS_KEYS.Scopable, vEe = X.BLOCKPARENT_TYPES = Ne.
FLIPPED_ALIAS_KEYS.BlockParent, PEe = X.BLOCK_TYPES = Ne.FLIPPED_ALIAS_KEYS.Block, AEe = X.STATEMENT_TYPES = Ne.FLIPPED_ALIAS_KEYS.Statement,
CEe = X.TERMINATORLESS_TYPES = Ne.FLIPPED_ALIAS_KEYS.Terminatorless, DEe = X.COMPLETIONSTATEMENT_TYPES = Ne.FLIPPED_ALIAS_KEYS.CompletionStatement,
wEe = X.CONDITIONAL_TYPES = Ne.FLIPPED_ALIAS_KEYS.Conditional, IEe = X.LOOP_TYPES = Ne.FLIPPED_ALIAS_KEYS.Loop, _Ee = X.WHILE_TYPES = Ne.FLIPPED_ALIAS_KEYS.
While, OEe = X.EXPRESSIONWRAPPER_TYPES = Ne.FLIPPED_ALIAS_KEYS.ExpressionWrapper, NEe = X.FOR_TYPES = Ne.FLIPPED_ALIAS_KEYS.For, BEe = X.FORXSTATEMENT_TYPES =
Ne.FLIPPED_ALIAS_KEYS.ForXStatement, kEe = X.FUNCTION_TYPES = Ne.FLIPPED_ALIAS_KEYS.Function, FEe = X.FUNCTIONPARENT_TYPES = Ne.FLIPPED_ALIAS_KEYS.
FunctionParent, jEe = X.PUREISH_TYPES = Ne.FLIPPED_ALIAS_KEYS.Pureish, LEe = X.DECLARATION_TYPES = Ne.FLIPPED_ALIAS_KEYS.Declaration, MEe = X.
PATTERNLIKE_TYPES = Ne.FLIPPED_ALIAS_KEYS.PatternLike, REe = X.LVAL_TYPES = Ne.FLIPPED_ALIAS_KEYS.LVal, qEe = X.TSENTITYNAME_TYPES = Ne.FLIPPED_ALIAS_KEYS.
TSEntityName, UEe = X.LITERAL_TYPES = Ne.FLIPPED_ALIAS_KEYS.Literal, VEe = X.IMMUTABLE_TYPES = Ne.FLIPPED_ALIAS_KEYS.Immutable, $Ee = X.USERWHITESPACABLE_TYPES =
Ne.FLIPPED_ALIAS_KEYS.UserWhitespacable, WEe = X.METHOD_TYPES = Ne.FLIPPED_ALIAS_KEYS.Method, KEe = X.OBJECTMEMBER_TYPES = Ne.FLIPPED_ALIAS_KEYS.
ObjectMember, GEe = X.PROPERTY_TYPES = Ne.FLIPPED_ALIAS_KEYS.Property, HEe = X.UNARYLIKE_TYPES = Ne.FLIPPED_ALIAS_KEYS.UnaryLike, YEe = X.
PATTERN_TYPES = Ne.FLIPPED_ALIAS_KEYS.Pattern, JEe = X.CLASS_TYPES = Ne.FLIPPED_ALIAS_KEYS.Class, PV = X.IMPORTOREXPORTDECLARATION_TYPES =
Ne.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration, XEe = X.EXPORTDECLARATION_TYPES = Ne.FLIPPED_ALIAS_KEYS.ExportDeclaration, zEe = X.MODULESPECIFIER_TYPES =
Ne.FLIPPED_ALIAS_KEYS.ModuleSpecifier, QEe = X.ACCESSOR_TYPES = Ne.FLIPPED_ALIAS_KEYS.Accessor, ZEe = X.PRIVATE_TYPES = Ne.FLIPPED_ALIAS_KEYS.
Private, eTe = X.FLOW_TYPES = Ne.FLIPPED_ALIAS_KEYS.Flow, tTe = X.FLOWTYPE_TYPES = Ne.FLIPPED_ALIAS_KEYS.FlowType, rTe = X.FLOWBASEANNOTATION_TYPES =
Ne.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation, nTe = X.FLOWDECLARATION_TYPES = Ne.FLIPPED_ALIAS_KEYS.FlowDeclaration, sTe = X.FLOWPREDICATE_TYPES =
Ne.FLIPPED_ALIAS_KEYS.FlowPredicate, iTe = X.ENUMBODY_TYPES = Ne.FLIPPED_ALIAS_KEYS.EnumBody, aTe = X.ENUMMEMBER_TYPES = Ne.FLIPPED_ALIAS_KEYS.
EnumMember, oTe = X.JSX_TYPES = Ne.FLIPPED_ALIAS_KEYS.JSX, lTe = X.MISCELLANEOUS_TYPES = Ne.FLIPPED_ALIAS_KEYS.Miscellaneous, uTe = X.TYPESCRIPT_TYPES =
Ne.FLIPPED_ALIAS_KEYS.TypeScript, cTe = X.TSTYPEELEMENT_TYPES = Ne.FLIPPED_ALIAS_KEYS.TSTypeElement, pTe = X.TSTYPE_TYPES = Ne.FLIPPED_ALIAS_KEYS.
TSType, fTe = X.TSBASETYPE_TYPES = Ne.FLIPPED_ALIAS_KEYS.TSBaseType, dTe = X.MODULEDECLARATION_TYPES = PV;
});
// ../node_modules/@babel/types/lib/converters/toBlock.js
var od = P((ad) => {
"use strict";
Object.defineProperty(ad, "__esModule", {
value: !0
});
ad.default = AV;
var xl = St(), id = hr();
function AV(e, t) {
if ((0, xl.isBlockStatement)(e))
return e;
let r = [];
return (0, xl.isEmptyStatement)(e) ? r = [] : ((0, xl.isStatement)(e) || ((0, xl.isFunction)(t) ? e = (0, id.returnStatement)(e) : e = (0, id.
expressionStatement)(e)), r = [e]), (0, id.blockStatement)(r);
}
i(AV, "toBlock");
});
// ../node_modules/@babel/types/lib/converters/ensureBlock.js
var $E = P((ld) => {
"use strict";
Object.defineProperty(ld, "__esModule", {
value: !0
});
ld.default = DV;
var CV = od();
function DV(e, t = "body") {
let r = (0, CV.default)(e[t], e);
return e[t] = r, r;
}
i(DV, "ensureBlock");
});
// ../node_modules/@babel/types/lib/converters/toIdentifier.js
var cd = P((ud) => {
"use strict";
Object.defineProperty(ud, "__esModule", {
value: !0
});
ud.default = _V;
var wV = Si(), IV = Ti();
function _V(e) {
e = e + "";
let t = "";
for (let r of e)
t += (0, IV.isIdentifierChar)(r.codePointAt(0)) ? r : "-";
return t = t.replace(/^[-0-9]+/, ""), t = t.replace(/[-\s]+(.)?/g, function(r, n) {
return n ? n.toUpperCase() : "";
}), (0, wV.default)(t) || (t = `_${t}`), t || "_";
}
i(_V, "toIdentifier");
});
// ../node_modules/@babel/types/lib/converters/toBindingIdentifierName.js
var WE = P((pd) => {
"use strict";
Object.defineProperty(pd, "__esModule", {
value: !0
});
pd.default = NV;
var OV = cd();
function NV(e) {
return e = (0, OV.default)(e), (e === "eval" || e === "arguments") && (e = "_" + e), e;
}
i(NV, "toBindingIdentifierName");
});
// ../node_modules/@babel/types/lib/converters/toComputedKey.js
var KE = P((fd) => {
"use strict";
Object.defineProperty(fd, "__esModule", {
value: !0
});
fd.default = FV;
var BV = St(), kV = hr();
function FV(e, t = e.key || e.property) {
return !e.computed && (0, BV.isIdentifier)(t) && (t = (0, kV.stringLiteral)(t.name)), t;
}
i(FV, "toComputedKey");
});
// ../node_modules/@babel/types/lib/converters/toExpression.js
var GE = P((vl) => {
"use strict";
Object.defineProperty(vl, "__esModule", {
value: !0
});
vl.default = void 0;
var Fa = St(), ATe = vl.default = jV;
function jV(e) {
if ((0, Fa.isExpressionStatement)(e) && (e = e.expression), (0, Fa.isExpression)(e))
return e;
if ((0, Fa.isClass)(e) ? e.type = "ClassExpression" : (0, Fa.isFunction)(e) && (e.type = "FunctionExpression"), !(0, Fa.isExpression)(e))
throw new Error(`cannot turn ${e.type} to an expression`);
return e;
}
i(jV, "toExpression");
});
// ../node_modules/@babel/types/lib/traverse/traverseFast.js
var hd = P((dd) => {
"use strict";
Object.defineProperty(dd, "__esModule", {
value: !0
});
dd.default = ja;
var LV = Ir(), HE = Symbol(), YE = Symbol();
function ja(e, t, r) {
if (!e) return !1;
let n = LV.VISITOR_KEYS[e.type];
if (!n) return !1;
r = r || {};
let s = t(e, r);
if (s !== void 0)
switch (s) {
case HE:
return !1;
case YE:
return !0;
}
for (let a of n) {
let o = e[a];
if (o) {
if (Array.isArray(o)) {
for (let l of o)
if (ja(l, t, r)) return !0;
} else if (ja(o, t, r)) return !0;
}
}
return !1;
}
i(ja, "traverseFast");
ja.skip = HE;
ja.stop = YE;
});
// ../node_modules/@babel/types/lib/modifications/removeProperties.js
var yd = P((md) => {
"use strict";
Object.defineProperty(md, "__esModule", {
value: !0
});
md.default = qV;
var MV = xi(), JE = ["tokens", "start", "end", "loc", "raw", "rawValue"], RV = [...MV.COMMENT_KEYS, "comments", ...JE];
function qV(e, t = {}) {
let r = t.preserveComments ? JE : RV;
for (let s of r)
e[s] != null && (e[s] = void 0);
for (let s of Object.keys(e))
s[0] === "_" && e[s] != null && (e[s] = void 0);
let n = Object.getOwnPropertySymbols(e);
for (let s of n)
e[s] = null;
}
i(qV, "removeProperties");
});
// ../node_modules/@babel/types/lib/modifications/removePropertiesDeep.js
var bd = P((gd) => {
"use strict";
Object.defineProperty(gd, "__esModule", {
value: !0
});
gd.default = $V;
var UV = hd(), VV = yd();
function $V(e, t) {
return (0, UV.default)(e, VV.default, t), e;
}
i($V, "removePropertiesDeep");
});
// ../node_modules/@babel/types/lib/converters/toKeyAlias.js
var zE = P((Ed) => {
"use strict";
Object.defineProperty(Ed, "__esModule", {
value: !0
});
Ed.default = Bs;
var XE = St(), WV = es(), KV = bd();
function Bs(e, t = e.key) {
let r;
return e.kind === "method" ? Bs.increment() + "" : ((0, XE.isIdentifier)(t) ? r = t.name : (0, XE.isStringLiteral)(t) ? r = JSON.stringify(
t.value) : r = JSON.stringify((0, KV.default)((0, WV.default)(t))), e.computed && (r = `[${r}]`), e.static && (r = `static:${r}`), r);
}
i(Bs, "toKeyAlias");
Bs.uid = 0;
Bs.increment = function() {
return Bs.uid >= Number.MAX_SAFE_INTEGER ? Bs.uid = 0 : Bs.uid++;
};
});
// ../node_modules/@babel/types/lib/converters/toStatement.js
var QE = P((Al) => {
"use strict";
Object.defineProperty(Al, "__esModule", {
value: !0
});
Al.default = void 0;
var Pl = St(), GV = hr(), jTe = Al.default = HV;
function HV(e, t) {
if ((0, Pl.isStatement)(e))
return e;
let r = !1, n;
if ((0, Pl.isClass)(e))
r = !0, n = "ClassDeclaration";
else if ((0, Pl.isFunction)(e))
r = !0, n = "FunctionDeclaration";
else if ((0, Pl.isAssignmentExpression)(e))
return (0, GV.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;
}
i(HV, "toStatement");
});
// ../node_modules/@babel/types/lib/converters/valueToNode.js
var ZE = P((Cl) => {
"use strict";
Object.defineProperty(Cl, "__esModule", {
value: !0
});
Cl.default = void 0;
var YV = Si(), Ft = hr(), RTe = Cl.default = Td, JV = Function.call.bind(Object.prototype.toString);
function XV(e) {
return JV(e) === "[object RegExp]";
}
i(XV, "isRegExp");
function zV(e) {
if (typeof e != "object" || e === null || Object.prototype.toString.call(e) !== "[object Object]")
return !1;
let t = Object.getPrototypeOf(e);
return t === null || Object.getPrototypeOf(t) === null;
}
i(zV, "isPlainObject");
function Td(e) {
if (e === void 0)
return (0, Ft.identifier)("undefined");
if (e === !0 || e === !1)
return (0, Ft.booleanLiteral)(e);
if (e === null)
return (0, Ft.nullLiteral)();
if (typeof e == "string")
return (0, Ft.stringLiteral)(e);
if (typeof e == "number") {
let t;
if (Number.isFinite(e))
t = (0, Ft.numericLiteral)(Math.abs(e));
else {
let r;
Number.isNaN(e) ? r = (0, Ft.numericLiteral)(0) : r = (0, Ft.numericLiteral)(1), t = (0, Ft.binaryExpression)("/", r, (0, Ft.numericLiteral)(
0));
}
return (e < 0 || Object.is(e, -0)) && (t = (0, Ft.unaryExpression)("-", t)), t;
}
if (typeof e == "bigint")
return (0, Ft.bigIntLiteral)(e.toString());
if (XV(e)) {
let t = e.source, r = /\/([a-z]*)$/.exec(e.toString())[1];
return (0, Ft.regExpLiteral)(t, r);
}
if (Array.isArray(e))
return (0, Ft.arrayExpression)(e.map(Td));
if (zV(e)) {
let t = [];
for (let r of Object.keys(e)) {
let n, s = !1;
(0, YV.default)(r) ? r === "__proto__" ? (s = !0, n = (0, Ft.stringLiteral)(r)) : n = (0, Ft.identifier)(r) : n = (0, Ft.stringLiteral)(
r), t.push((0, Ft.objectProperty)(n, Td(e[r]), s));
}
return (0, Ft.objectExpression)(t);
}
throw new Error("don't know how to turn this value into a node");
}
i(Td, "valueToNode");
});
// ../node_modules/@babel/types/lib/modifications/appendToMemberExpression.js
var eT = P((Sd) => {
"use strict";
Object.defineProperty(Sd, "__esModule", {
value: !0
});
Sd.default = ZV;
var QV = hr();
function ZV(e, t, r = !1) {
return e.object = (0, QV.memberExpression)(e.object, e.property, e.computed), e.property = t, e.computed = !!r, e;
}
i(ZV, "appendToMemberExpression");
});
// ../node_modules/@babel/types/lib/modifications/inherits.js
var rT = P((xd) => {
"use strict";
Object.defineProperty(xd, "__esModule", {
value: !0
});
xd.default = t$;
var tT = xi(), e$ = nd();
function t$(e, t) {
if (!e || !t) return e;
for (let r of tT.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 tT.INHERIT_KEYS.force)
e[r] = t[r];
return (0, e$.default)(e, t), e;
}
i(t$, "inherits");
});
// ../node_modules/@babel/types/lib/modifications/prependToMemberExpression.js
var nT = P((vd) => {
"use strict";
Object.defineProperty(vd, "__esModule", {
value: !0
});
vd.default = s$;
var r$ = hr(), n$ = De();
function s$(e, t) {
if ((0, n$.isSuper)(e.object))
throw new Error("Cannot prepend node to super property access (`super.foo`).");
return e.object = (0, r$.memberExpression)(t, e.object), e;
}
i(s$, "prependToMemberExpression");
});
// ../node_modules/@babel/types/lib/retrievers/getAssignmentIdentifiers.js
var sT = P((Pd) => {
"use strict";
Object.defineProperty(Pd, "__esModule", {
value: !0
});
Pd.default = i$;
function i$(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;
}
i(i$, "getAssignmentIdentifiers");
});
// ../node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js
var La = P((Cd) => {
"use strict";
Object.defineProperty(Cd, "__esModule", {
value: !0
});
Cd.default = Ad;
var Pn = St();
function Ad(e, t, r, n) {
let s = [].concat(e), a = /* @__PURE__ */ Object.create(null);
for (; s.length; ) {
let o = s.shift();
if (!o || n && ((0, Pn.isAssignmentExpression)(o) || (0, Pn.isUnaryExpression)(o) || (0, Pn.isUpdateExpression)(o)))
continue;
if ((0, Pn.isIdentifier)(o)) {
t ? (a[o.name] = a[o.name] || []).push(o) : a[o.name] = o;
continue;
}
if ((0, Pn.isExportDeclaration)(o) && !(0, Pn.isExportAllDeclaration)(o)) {
(0, Pn.isDeclaration)(o.declaration) && s.push(o.declaration);
continue;
}
if (r) {
if ((0, Pn.isFunctionDeclaration)(o)) {
s.push(o.id);
continue;
}
if ((0, Pn.isFunctionExpression)(o))
continue;
}
let l = Ad.keys[o.type];
if (l)
for (let u = 0; u < l.length; u++) {
let c = l[u], p = o[c];
p && (Array.isArray(p) ? s.push(...p) : s.push(p));
}
}
return a;
}
i(Ad, "getBindingIdentifiers");
var a$ = {
DeclareClass: ["id"],
DeclareFunction: ["id"],
DeclareModule: ["id"],
DeclareVariable: ["id"],
DeclareInterface: ["id"],
DeclareTypeAlias: ["id"],
DeclareOpaqueType: ["id"],
InterfaceDeclaration: ["id"],
TypeAlias: ["id"],
OpaqueType: ["id"],
CatchClause: ["param"],
LabeledStatement: ["label"],
UnaryExpression: ["argument"],
AssignmentExpression: ["left"],
ImportSpecifier: ["local"],
ImportNamespaceSpecifier: ["local"],
ImportDefaultSpecifier: ["local"],
ImportDeclaration: ["specifiers"],
TSImportEqualsDeclaration: ["id"],
ExportSpecifier: ["exported"],
ExportNamespaceSpecifier: ["exported"],
ExportDefaultSpecifier: ["exported"],
FunctionDeclaration: ["id", "params"],
FunctionExpression: ["id", "params"],
ArrowFunctionExpression: ["params"],
ObjectMethod: ["params"],
ClassMethod: ["params"],
ClassPrivateMethod: ["params"],
ForInStatement: ["left"],
ForOfStatement: ["left"],
ClassDeclaration: ["id"],
ClassExpression: ["id"],
RestElement: ["argument"],
UpdateExpression: ["argument"],
ObjectProperty: ["value"],
AssignmentPattern: ["left"],
ArrayPattern: ["elements"],
ObjectPattern: ["properties"],
VariableDeclaration: ["declarations"],
VariableDeclarator: ["id"]
};
Ad.keys = a$;
});
// ../node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js
var iT = P((Dl) => {
"use strict";
Object.defineProperty(Dl, "__esModule", {
value: !0
});
Dl.default = void 0;
var o$ = La(), QTe = Dl.default = l$;
function l$(e, t) {
return (0, o$.default)(e, t, !0);
}
i(l$, "getOuterBindingIdentifiers");
});
// ../node_modules/@babel/types/lib/retrievers/getFunctionName.js
var oT = P((Dd) => {
"use strict";
Object.defineProperty(Dd, "__esModule", {
value: !0
});
Dd.default = c$;
var _r = St();
function u$(e) {
return (0, _r.isNullLiteral)(e) ? "null" : (0, _r.isRegExpLiteral)(e) ? `/${e.pattern}/${e.flags}` : (0, _r.isTemplateLiteral)(e) ? e.quasis.
map((t) => t.value.raw).join("") : e.value !== void 0 ? String(e.value) : null;
}
i(u$, "getNameFromLiteralId");
function aT(e) {
if (!e.computed || (0, _r.isLiteral)(e.key))
return e.key;
}
i(aT, "getObjectMemberKey");
function c$(e, t) {
if ("id" in e && e.id)
return {
name: e.id.name,
originalNode: e.id
};
let r = "", n;
if ((0, _r.isObjectProperty)(t, {
value: e
}) ? n = aT(t) : (0, _r.isObjectMethod)(e) || (0, _r.isClassMethod)(e) ? (n = aT(e), e.kind === "get" ? r = "get " : e.kind === "set" &&
(r = "set ")) : (0, _r.isVariableDeclarator)(t, {
init: e
}) ? n = t.id : (0, _r.isAssignmentExpression)(t, {
operator: "=",
right: e
}) && (n = t.left), !n) return null;
let s = (0, _r.isLiteral)(n) ? u$(n) : (0, _r.isIdentifier)(n) ? n.name : (0, _r.isPrivateName)(n) ? n.id.name : null;
return s == null ? null : {
name: r + s,
originalNode: n
};
}
i(c$, "getFunctionName");
});
// ../node_modules/@babel/types/lib/traverse/traverse.js
var lT = P((Id) => {
"use strict";
Object.defineProperty(Id, "__esModule", {
value: !0
});
Id.default = f$;
var p$ = Ir();
function f$(e, t, r) {
typeof t == "function" && (t = {
enter: t
});
let {
enter: n,
exit: s
} = t;
wd(e, n, s, r, []);
}
i(f$, "traverse");
function wd(e, t, r, n, s) {
let a = p$.VISITOR_KEYS[e.type];
if (a) {
t && t(e, s, 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 && (s.push({
node: e,
key: o,
index: u
}), wd(c, t, r, n, s), s.pop());
}
else l && (s.push({
node: e,
key: o
}), wd(l, t, r, n, s), s.pop());
}
r && r(e, s, n);
}
}
i(wd, "traverseSimpleImpl");
});
// ../node_modules/@babel/types/lib/validators/isBinding.js
var uT = P((_d) => {
"use strict";
Object.defineProperty(_d, "__esModule", {
value: !0
});
_d.default = h$;
var d$ = La();
function h$(e, t, r) {
if (r && e.type === "Identifier" && t.type === "ObjectProperty" && r.type === "ObjectExpression")
return !1;
let n = d$.default.keys[t.type];
if (n)
for (let s = 0; s < n.length; s++) {
let a = n[s], o = t[a];
if (Array.isArray(o)) {
if (o.includes(e)) return !0;
} else if (o === e) return !0;
}
return !1;
}
i(h$, "isBinding");
});
// ../node_modules/@babel/types/lib/validators/isLet.js
var Nd = P((Od) => {
"use strict";
Object.defineProperty(Od, "__esModule", {
value: !0
});
Od.default = y$;
var m$ = St();
cT = Symbol.for("var used to be block scoped");
var cT;
function y$(e) {
return (0, m$.isVariableDeclaration)(e) && (e.kind !== "var" || e[cT]);
}
i(y$, "isLet");
});
// ../node_modules/@babel/types/lib/validators/isBlockScoped.js
var fT = P((Bd) => {
"use strict";
Object.defineProperty(Bd, "__esModule", {
value: !0
});
Bd.default = b$;
var pT = St(), g$ = Nd();
function b$(e) {
return (0, pT.isFunctionDeclaration)(e) || (0, pT.isClassDeclaration)(e) || (0, g$.default)(e);
}
i(b$, "isBlockScoped");
});
// ../node_modules/@babel/types/lib/validators/isImmutable.js
var dT = P((kd) => {
"use strict";
Object.defineProperty(kd, "__esModule", {
value: !0
});
kd.default = S$;
var E$ = ul(), T$ = St();
function S$(e) {
return (0, E$.default)(e.type, "Immutable") ? !0 : (0, T$.isIdentifier)(e) ? e.name === "undefined" : !1;
}
i(S$, "isImmutable");
});
// ../node_modules/@babel/types/lib/validators/isNodesEquivalent.js
var mT = P((jd) => {
"use strict";
Object.defineProperty(jd, "__esModule", {
value: !0
});
jd.default = Fd;
var hT = Ir();
function Fd(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(hT.NODE_FIELDS[e.type] || e.type), n = hT.VISITOR_KEYS[e.type];
for (let s of r) {
let a = e[s], o = t[s];
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 (!Fd(a[l], o[l]))
return !1;
continue;
}
if (typeof a == "object" && !(n != null && n.includes(s))) {
for (let l of Object.keys(a))
if (a[l] !== o[l])
return !1;
continue;
}
if (!Fd(a, o))
return !1;
}
}
return !0;
}
i(Fd, "isNodesEquivalent");
});
// ../node_modules/@babel/types/lib/validators/isReferenced.js
var yT = P((Ld) => {
"use strict";
Object.defineProperty(Ld, "__esModule", {
value: !0
});
Ld.default = x$;
function x$(e, t, r) {
switch (t.type) {
case "MemberExpression":
case "OptionalMemberExpression":
return t.property === e ? !!t.computed : t.object === e;
case "JSXMemberExpression":
return t.object === e;
case "VariableDeclarator":
return t.init === e;
case "ArrowFunctionExpression":
return t.body === e;
case "PrivateName":
return !1;
case "ClassMethod":
case "ClassPrivateMethod":
case "ObjectMethod":
return t.key === e ? !!t.computed : !1;
case "ObjectProperty":
return t.key === e ? !!t.computed : !r || r.type !== "ObjectPattern";
case "ClassProperty":
case "ClassAccessorProperty":
return t.key === e ? !!t.computed : !0;
case "ClassPrivateProperty":
return t.key !== e;
case "ClassDeclaration":
case "ClassExpression":
return t.superClass === e;
case "AssignmentExpression":
return t.right === e;
case "AssignmentPattern":
return t.right === e;
case "LabeledStatement":
return !1;
case "CatchClause":
return !1;
case "RestElement":
return !1;
case "BreakStatement":
case "ContinueStatement":
return !1;
case "FunctionDeclaration":
case "FunctionExpression":
return !1;
case "ExportNamespaceSpecifier":
case "ExportDefaultSpecifier":
return !1;
case "ExportSpecifier":
return r != null && r.source ? !1 : t.local === e;
case "ImportDefaultSpecifier":
case "ImportNamespaceSpecifier":
case "ImportSpecifier":
return !1;
case "ImportAttribute":
return !1;
case "JSXAttribute":
return !1;
case "ObjectPattern":
case "ArrayPattern":
return !1;
case "MetaProperty":
return !1;
case "ObjectTypeProperty":
return t.key !== e;
case "TSEnumMember":
return t.id !== e;
case "TSPropertySignature":
return t.key === e ? !!t.computed : !0;
}
return !0;
}
i(x$, "isReferenced");
});
// ../node_modules/@babel/types/lib/validators/isScope.js
var gT = P((Md) => {
"use strict";
Object.defineProperty(Md, "__esModule", {
value: !0
});
Md.default = v$;
var ks = St();
function v$(e, t) {
return (0, ks.isBlockStatement)(e) && ((0, ks.isFunction)(t) || (0, ks.isCatchClause)(t)) ? !1 : (0, ks.isPattern)(e) && ((0, ks.isFunction)(
t) || (0, ks.isCatchClause)(t)) ? !0 : (0, ks.isScopable)(e);
}
i(v$, "isScope");
});
// ../node_modules/@babel/types/lib/validators/isSpecifierDefault.js
var ET = P((Rd) => {
"use strict";
Object.defineProperty(Rd, "__esModule", {
value: !0
});
Rd.default = P$;
var bT = St();
function P$(e) {
return (0, bT.isImportDefaultSpecifier)(e) || (0, bT.isIdentifier)(e.imported || e.exported, {
name: "default"
});
}
i(P$, "isSpecifierDefault");
});
// ../node_modules/@babel/types/lib/validators/isValidES3Identifier.js
var TT = P((qd) => {
"use strict";
Object.defineProperty(qd, "__esModule", {
value: !0
});
qd.default = D$;
var A$ = Si(), C$ = /* @__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 D$(e) {
return (0, A$.default)(e) && !C$.has(e);
}
i(D$, "isValidES3Identifier");
});
// ../node_modules/@babel/types/lib/validators/isVar.js
var xT = P((Ud) => {
"use strict";
Object.defineProperty(Ud, "__esModule", {
value: !0
});
Ud.default = I$;
var w$ = St();
ST = Symbol.for("var used to be block scoped");
var ST;
function I$(e) {
return (0, w$.isVariableDeclaration)(e, {
kind: "var"
}) && !e[ST];
}
i(I$, "isVar");
});
// ../node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js
var vT = P((Wd) => {
"use strict";
Object.defineProperty(Wd, "__esModule", {
value: !0
});
Wd.default = wl;
var _$ = La(), Fs = St(), Vd = hr(), $d = Rf(), O$ = es();
function wl(e, t) {
let r = [], n = !0;
for (let s of e)
if ((0, Fs.isEmptyStatement)(s) || (n = !1), (0, Fs.isExpression)(s))
r.push(s);
else if ((0, Fs.isExpressionStatement)(s))
r.push(s.expression);
else if ((0, Fs.isVariableDeclaration)(s)) {
if (s.kind !== "var") return;
for (let a of s.declarations) {
let o = (0, _$.default)(a);
for (let l of Object.keys(o))
t.push({
kind: s.kind,
id: (0, O$.default)(o[l])
});
a.init && r.push((0, Vd.assignmentExpression)("=", a.id, a.init));
}
n = !0;
} else if ((0, Fs.isIfStatement)(s)) {
let a = s.consequent ? wl([s.consequent], t) : (0, $d.buildUndefinedNode)(), o = s.alternate ? wl([s.alternate], t) : (0, $d.buildUndefinedNode)();
if (!a || !o) return;
r.push((0, Vd.conditionalExpression)(s.test, a, o));
} else if ((0, Fs.isBlockStatement)(s)) {
let a = wl(s.body, t);
if (!a) return;
r.push(a);
} else if ((0, Fs.isEmptyStatement)(s))
e.indexOf(s) === 0 && (n = !0);
else
return;
return n && r.push((0, $d.buildUndefinedNode)()), r.length === 1 ? r[0] : (0, Vd.sequenceExpression)(r);
}
i(wl, "gatherSequenceExpressions");
});
// ../node_modules/@babel/types/lib/converters/toSequenceExpression.js
var PT = P((Kd) => {
"use strict";
Object.defineProperty(Kd, "__esModule", {
value: !0
});
Kd.default = B$;
var N$ = vT();
function B$(e, t) {
if (!(e != null && e.length)) return;
let r = [], n = (0, N$.default)(e, r);
if (n) {
for (let s of r)
t.push(s);
return n;
}
}
i(B$, "toSequenceExpression");
});
// ../node_modules/@babel/types/lib/index.js
var De = P((ne) => {
"use strict";
Object.defineProperty(ne, "__esModule", {
value: !0
});
var ts = {
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(ne, "__internal__deprecationWarning", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return LW.default;
}, "get")
});
Object.defineProperty(ne, "addComment", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return K$.default;
}, "get")
});
Object.defineProperty(ne, "addComments", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return G$.default;
}, "get")
});
Object.defineProperty(ne, "appendToMemberExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return oW.default;
}, "get")
});
Object.defineProperty(ne, "assertNode", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return L$.default;
}, "get")
});
Object.defineProperty(ne, "buildMatchMemberExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return jW.default;
}, "get")
});
Object.defineProperty(ne, "clone", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return U$.default;
}, "get")
});
Object.defineProperty(ne, "cloneDeep", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return V$.default;
}, "get")
});
Object.defineProperty(ne, "cloneDeepWithoutLoc", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return $$.default;
}, "get")
});
Object.defineProperty(ne, "cloneNode", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return q$.default;
}, "get")
});
Object.defineProperty(ne, "cloneWithoutLoc", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return W$.default;
}, "get")
});
Object.defineProperty(ne, "createFlowUnionType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return AT.default;
}, "get")
});
Object.defineProperty(ne, "createTSUnionType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return R$.default;
}, "get")
});
Object.defineProperty(ne, "createTypeAnnotationBasedOnTypeof", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return M$.default;
}, "get")
});
Object.defineProperty(ne, "createUnionTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return AT.default;
}, "get")
});
Object.defineProperty(ne, "ensureBlock", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Q$.default;
}, "get")
});
Object.defineProperty(ne, "getAssignmentIdentifiers", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return dW.default;
}, "get")
});
Object.defineProperty(ne, "getBindingIdentifiers", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return hW.default;
}, "get")
});
Object.defineProperty(ne, "getFunctionName", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return yW.default;
}, "get")
});
Object.defineProperty(ne, "getOuterBindingIdentifiers", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return mW.default;
}, "get")
});
Object.defineProperty(ne, "inheritInnerComments", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return H$.default;
}, "get")
});
Object.defineProperty(ne, "inheritLeadingComments", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Y$.default;
}, "get")
});
Object.defineProperty(ne, "inheritTrailingComments", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return X$.default;
}, "get")
});
Object.defineProperty(ne, "inherits", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return lW.default;
}, "get")
});
Object.defineProperty(ne, "inheritsComments", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return J$.default;
}, "get")
});
Object.defineProperty(ne, "is", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return EW.default;
}, "get")
});
Object.defineProperty(ne, "isBinding", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return TW.default;
}, "get")
});
Object.defineProperty(ne, "isBlockScoped", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return SW.default;
}, "get")
});
Object.defineProperty(ne, "isImmutable", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return xW.default;
}, "get")
});
Object.defineProperty(ne, "isLet", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return vW.default;
}, "get")
});
Object.defineProperty(ne, "isNode", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return PW.default;
}, "get")
});
Object.defineProperty(ne, "isNodesEquivalent", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return AW.default;
}, "get")
});
Object.defineProperty(ne, "isPlaceholderType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return CW.default;
}, "get")
});
Object.defineProperty(ne, "isReferenced", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return DW.default;
}, "get")
});
Object.defineProperty(ne, "isScope", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return wW.default;
}, "get")
});
Object.defineProperty(ne, "isSpecifierDefault", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return IW.default;
}, "get")
});
Object.defineProperty(ne, "isType", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return _W.default;
}, "get")
});
Object.defineProperty(ne, "isValidES3Identifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return OW.default;
}, "get")
});
Object.defineProperty(ne, "isValidIdentifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return NW.default;
}, "get")
});
Object.defineProperty(ne, "isVar", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return BW.default;
}, "get")
});
Object.defineProperty(ne, "matchesPattern", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return kW.default;
}, "get")
});
Object.defineProperty(ne, "prependToMemberExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return uW.default;
}, "get")
});
ne.react = void 0;
Object.defineProperty(ne, "removeComments", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return z$.default;
}, "get")
});
Object.defineProperty(ne, "removeProperties", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return cW.default;
}, "get")
});
Object.defineProperty(ne, "removePropertiesDeep", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return pW.default;
}, "get")
});
Object.defineProperty(ne, "removeTypeDuplicates", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return fW.default;
}, "get")
});
Object.defineProperty(ne, "shallowEqual", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return bW.default;
}, "get")
});
Object.defineProperty(ne, "toBindingIdentifierName", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Z$.default;
}, "get")
});
Object.defineProperty(ne, "toBlock", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return eW.default;
}, "get")
});
Object.defineProperty(ne, "toComputedKey", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return tW.default;
}, "get")
});
Object.defineProperty(ne, "toExpression", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return rW.default;
}, "get")
});
Object.defineProperty(ne, "toIdentifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return nW.default;
}, "get")
});
Object.defineProperty(ne, "toKeyAlias", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return sW.default;
}, "get")
});
Object.defineProperty(ne, "toStatement", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return iW.default;
}, "get")
});
Object.defineProperty(ne, "traverse", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Il.default;
}, "get")
});
Object.defineProperty(ne, "traverseFast", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return gW.default;
}, "get")
});
Object.defineProperty(ne, "validate", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return FW.default;
}, "get")
});
Object.defineProperty(ne, "valueToNode", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return aW.default;
}, "get")
});
var k$ = D1(), F$ = w1(), j$ = TE(), L$ = SE(), Gd = xE();
Object.keys(Gd).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(ts, e) || e in ne && ne[e] === Gd[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Gd[e];
}, "get")
});
});
var M$ = vE(), AT = CE(), R$ = _E(), Hd = Rf();
Object.keys(Hd).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(ts, e) || e in ne && ne[e] === Hd[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Hd[e];
}, "get")
});
});
var Yd = hr();
Object.keys(Yd).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(ts, e) || e in ne && ne[e] === Yd[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Yd[e];
}, "get")
});
});
var q$ = es(), U$ = jE(), V$ = LE(), $$ = ME(), W$ = RE(), K$ = qE(), G$ = Hf(), H$ = zf(), Y$ = Zf(), J$ = nd(), X$ = td(), z$ = UE(), Jd = VE();
Object.keys(Jd).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(ts, e) || e in ne && ne[e] === Jd[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Jd[e];
}, "get")
});
});
var Xd = xi();
Object.keys(Xd).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(ts, e) || e in ne && ne[e] === Xd[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Xd[e];
}, "get")
});
});
var Q$ = $E(), Z$ = WE(), eW = od(), tW = KE(), rW = GE(), nW = cd(), sW = zE(), iW = QE(), aW = ZE(), zd = Ir();
Object.keys(zd).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(ts, e) || e in ne && ne[e] === zd[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return zd[e];
}, "get")
});
});
var oW = eT(), lW = rT(), uW = nT(), cW = yd(), pW = bd(), fW = kf(), dW = sT(), hW = La(), mW = iT(), yW = oT(), Il = lT();
Object.keys(Il).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(ts, e) || e in ne && ne[e] === Il[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Il[e];
}, "get")
});
});
var gW = hd(), bW = ol(), EW = Ei(), TW = uT(), SW = fT(), xW = dT(), vW = Nd(), PW = Of(), AW = mT(), CW = tf(), DW = yT(), wW = gT(), IW = ET(),
_W = ul(), OW = TT(), NW = Si(), BW = xT(), kW = Jp(), FW = dl(), jW = zp(), Qd = St();
Object.keys(Qd).forEach(function(e) {
e === "default" || e === "__esModule" || Object.prototype.hasOwnProperty.call(ts, e) || e in ne && ne[e] === Qd[e] || Object.defineProperty(
ne, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Qd[e];
}, "get")
});
});
var LW = va(), MW = PT(), ISe = ne.react = {
isReactComponent: k$.default,
isCompatTag: F$.default,
buildChildren: j$.default
};
ne.toSequenceExpression = MW.default;
process.env.BABEL_TYPES_8_BREAKING && console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-releas\
e instead!");
});
// ../node_modules/@babel/template/lib/formatters.js
var CT = P((Or) => {
"use strict";
Object.defineProperty(Or, "__esModule", {
value: !0
});
Or.statements = Or.statement = Or.smart = Or.program = Or.expression = void 0;
var RW = De(), {
assertExpressionStatement: qW
} = RW;
function Zd(e) {
return {
code: /* @__PURE__ */ i((t) => `/* @babel/template */;
${t}`, "code"),
validate: /* @__PURE__ */ i(() => {
}, "validate"),
unwrap: /* @__PURE__ */ i((t) => e(t.program.body.slice(1)), "unwrap")
};
}
i(Zd, "makeStatementFormatter");
var NSe = Or.smart = Zd((e) => e.length > 1 ? e : e[0]), BSe = Or.statements = Zd((e) => e), kSe = Or.statement = Zd((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];
}), UW = Or.expression = {
code: /* @__PURE__ */ i((e) => `(
${e}
)`, "code"),
validate: /* @__PURE__ */ i((e) => {
if (e.program.body.length > 1)
throw new Error("Found multiple statements but wanted one");
if (UW.unwrap(e).start === 0)
throw new Error("Parse result included parens.");
}, "validate"),
unwrap: /* @__PURE__ */ i(({
program: e
}) => {
let [t] = e.body;
return qW(t), t.expression;
}, "unwrap")
}, FSe = Or.program = {
code: /* @__PURE__ */ i((e) => e, "code"),
validate: /* @__PURE__ */ i(() => {
}, "validate"),
unwrap: /* @__PURE__ */ i((e) => e.program, "unwrap")
};
});
// ../node_modules/@babel/template/lib/options.js
var _l = P((Ma) => {
"use strict";
Object.defineProperty(Ma, "__esModule", {
value: !0
});
Ma.merge = WW;
Ma.normalizeReplacements = GW;
Ma.validate = KW;
var VW = ["placeholderWhitelist", "placeholderPattern", "preserveComments", "syntacticPlaceholders"];
function $W(e, t) {
if (e == null) return {};
var r = {};
for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
if (t.indexOf(n) !== -1) continue;
r[n] = e[n];
}
return r;
}
i($W, "_objectWithoutPropertiesLoose");
function WW(e, t) {
let {
placeholderWhitelist: r = e.placeholderWhitelist,
placeholderPattern: n = e.placeholderPattern,
preserveComments: s = e.preserveComments,
syntacticPlaceholders: a = e.syntacticPlaceholders
} = t;
return {
parser: Object.assign({}, e.parser, t.parser),
placeholderWhitelist: r,
placeholderPattern: n,
preserveComments: s,
syntacticPlaceholders: a
};
}
i(WW, "merge");
function KW(e) {
if (e != null && typeof e != "object")
throw new Error("Unknown template options.");
let t = e || {}, {
placeholderWhitelist: r,
placeholderPattern: n,
preserveComments: s,
syntacticPlaceholders: a
} = t, o = $W(t, VW);
if (r != null && !(r instanceof Set))
throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");
if (n != null && !(n instanceof RegExp) && n !== !1)
throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");
if (s != null && typeof s != "boolean")
throw new Error("'.preserveComments' must be a boolean, null, or undefined");
if (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: s ?? void 0,
syntacticPlaceholders: a ?? void 0
};
}
i(KW, "validate");
function GW(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");
}
i(GW, "normalizeReplacements");
});
// ../node_modules/@babel/parser/lib/index.js
var Rs = P((Ya) => {
"use strict";
Object.defineProperty(Ya, "__esModule", {
value: !0
});
function HW(e, t) {
if (e == null) return {};
var r = {};
for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
if (t.indexOf(n) !== -1) continue;
r[n] = e[n];
}
return r;
}
i(HW, "_objectWithoutPropertiesLoose");
var cn = class {
static {
i(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;
}
}, Oi = class {
static {
i(this, "SourceLocation");
}
constructor(t, r) {
this.start = void 0, this.end = void 0, this.filename = void 0, this.identifierName = void 0, this.start = t, this.end = r;
}
};
function or(e, t) {
let {
line: r,
column: n,
index: s
} = e;
return new cn(r, n + t, s + t);
}
i(or, "createPositionWithColumnOffset");
var DT = "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED", YW = {
ImportMetaOutsideModule: {
message: `import.meta may appear only with 'sourceType: "module"'`,
code: DT
},
ImportOutsideModule: {
message: `'import' and 'export' may appear only with 'sourceType: "module"'`,
code: DT
}
}, wT = {
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"
}, Bl = /* @__PURE__ */ i((e) => e.type === "UpdateExpression" ? wT.UpdateExpression[`${e.prefix}`] : wT[e.type], "toNodeDescription"), JW = {
AccessorIsGenerator: /* @__PURE__ */ i(({
kind: e
}) => `A ${e}ter cannot be a generator.`, "AccessorIsGenerator"),
ArgumentsInClass: "'arguments' is only allowed in functions and class methods.",
AsyncFunctionInSingleStatementContext: "Async functions can only be declared at the top level or inside a block.",
AwaitBindingIdentifier: "Can not use 'await' as identifier inside an async function.",
AwaitBindingIdentifierInStaticBlock: "Can not use 'await' as identifier inside a static block.",
AwaitExpressionFormalParameter: "'await' is not allowed in async function parameters.",
AwaitUsingNotInAsyncContext: "'await using' is only allowed within async functions and at the top levels of modules.",
AwaitNotInAsyncContext: "'await' is only allowed within async functions and at the top levels of modules.",
BadGetterArity: "A 'get' accessor must not have any formal parameters.",
BadSetterArity: "A 'set' accessor must have exactly one formal parameter.",
BadSetterRestParameter: "A 'set' accessor function argument must not be a rest parameter.",
ConstructorClassField: "Classes may not have a field named 'constructor'.",
ConstructorClassPrivateField: "Classes may not have a private field named '#constructor'.",
ConstructorIsAccessor: "Class constructor may not be an accessor.",
ConstructorIsAsync: "Constructor can't be an async function.",
ConstructorIsGenerator: "Constructor can't be a generator.",
DeclarationMissingInitializer: /* @__PURE__ */ i(({
kind: e
}) => `Missing initializer in ${e} declaration.`, "DeclarationMissingInitializer"),
DecoratorArgumentsOutsideParentheses: "Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(deco\
rator)(args)'.",
DecoratorBeforeExport: "Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use\
the 'export @decorator class {}' syntax.",
DecoratorsBeforeAfterExport: "Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the s\
ame time.",
DecoratorConstructor: "Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",
DecoratorExportClass: "Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use \
the '@decorator export class {}' syntax.",
DecoratorSemicolon: "Decorators must not be followed by a semicolon.",
DecoratorStaticBlock: "Decorators can't be used with a static block.",
DeferImportRequiresNamespace: 'Only `import defer * as x from "./module"` is valid.',
DeletePrivateField: "Deleting a private field is not allowed.",
DestructureNamedImport: "ES2015 named imports do not destructure. Use another statement for destructuring after the import.",
DuplicateConstructor: "Duplicate constructor in the same class.",
DuplicateDefaultExport: "Only one default export allowed per module.",
DuplicateExport: /* @__PURE__ */ i(({
exportName: e
}) => `\`${e}\` has already been exported. Exported identifiers must be unique.`, "DuplicateExport"),
DuplicateProto: "Redefinition of __proto__ property.",
DuplicateRegExpFlags: "Duplicate regular expression flag.",
DynamicImportPhaseRequiresImportExpressions: /* @__PURE__ */ i(({
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__ */ i(({
localName: e,
exportName: t
}) => `A string literal cannot be used as an exported binding without \`from\`.
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`, "ExportBindingIsString"),
ExportDefaultFromAsIdentifier: "'from' is not allowed as an identifier after 'export default'.",
ForInOfLoopInitializer: /* @__PURE__ */ i(({
type: e
}) => `'${e === "ForInStatement" ? "for-in" : "for-of"}' loop variable declaration may not have an initializer.`, "ForInOfLoopInitialize\
r"),
ForInUsing: "For-in loop may not start with 'using' declaration.",
ForOfAsync: "The left-hand side of a for-of loop may not be 'async'.",
ForOfLet: "The left-hand side of a for-of loop may not start with 'let'.",
GeneratorInSingleStatementContext: "Generators can only be declared at the top level or inside a block.",
IllegalBreakContinue: /* @__PURE__ */ i(({
type: e
}) => `Unsyntactic ${e === "BreakStatement" ? "break" : "continue"}.`, "IllegalBreakContinue"),
IllegalLanguageModeDirective: "Illegal 'use strict' directive in function with non-simple parameter list.",
IllegalReturn: "'return' outside of function.",
ImportAttributesUseAssert: "The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You \
can enable the `deprecatedImportAssert` parser plugin to suppress this error.",
ImportBindingIsString: /* @__PURE__ */ i(({
importName: e
}) => `A string literal cannot be used as an imported binding.
- Did you mean \`import { "${e}" as foo }\`?`, "ImportBindingIsString"),
ImportCallArity: "`import()` requires exactly one or two arguments.",
ImportCallNotNewExpression: "Cannot use new with import(...).",
ImportCallSpreadArgument: "`...` is not allowed in `import()`.",
ImportJSONBindingNotDefault: "A JSON module can only be imported with `default`.",
ImportReflectionHasAssertion: "`import module x` cannot have assertions.",
ImportReflectionNotBinding: 'Only `import module x from "./module"` is valid.',
IncompatibleRegExpUVFlags: "The 'u' and 'v' regular expression flags cannot be enabled at the same time.",
InvalidBigIntLiteral: "Invalid BigIntLiteral.",
InvalidCodePoint: "Code point out of bounds.",
InvalidCoverInitializedName: "Invalid shorthand property initializer.",
InvalidDecimal: "Invalid decimal.",
InvalidDigit: /* @__PURE__ */ i(({
radix: e
}) => `Expected number in radix ${e}.`, "InvalidDigit"),
InvalidEscapeSequence: "Bad character escape sequence.",
InvalidEscapeSequenceTemplate: "Invalid escape sequence in template.",
InvalidEscapedReservedWord: /* @__PURE__ */ i(({
reservedWord: e
}) => `Escape sequence in keyword ${e}.`, "InvalidEscapedReservedWord"),
InvalidIdentifier: /* @__PURE__ */ i(({
identifierName: e
}) => `Invalid identifier ${e}.`, "InvalidIdentifier"),
InvalidLhs: /* @__PURE__ */ i(({
ancestor: e
}) => `Invalid left-hand side in ${Bl(e)}.`, "InvalidLhs"),
InvalidLhsBinding: /* @__PURE__ */ i(({
ancestor: e
}) => `Binding invalid left-hand side in ${Bl(e)}.`, "InvalidLhsBinding"),
InvalidLhsOptionalChaining: /* @__PURE__ */ i(({
ancestor: e
}) => `Invalid optional chaining in the left-hand side of ${Bl(e)}.`, "InvalidLhsOptionalChaining"),
InvalidNumber: "Invalid number.",
InvalidOrMissingExponent: "Floating-point numbers require a valid exponent after the 'e'.",
InvalidOrUnexpectedToken: /* @__PURE__ */ i(({
unexpected: e
}) => `Unexpected character '${e}'.`, "InvalidOrUnexpectedToken"),
InvalidParenthesizedAssignment: "Invalid parenthesized assignment pattern.",
InvalidPrivateFieldResolution: /* @__PURE__ */ i(({
identifierName: e
}) => `Private name #${e} is not defined.`, "InvalidPrivateFieldResolution"),
InvalidPropertyBindingPattern: "Binding member expression.",
InvalidRecordProperty: "Only properties and spread elements are allowed in record definitions.",
InvalidRestAssignmentPattern: "Invalid rest operator's argument.",
LabelRedeclaration: /* @__PURE__ */ i(({
labelName: e
}) => `Label '${e}' is already declared.`, "LabelRedeclaration"),
LetInLexicalBinding: "'let' is disallowed as a lexically bound name.",
LineTerminatorBeforeArrow: "No line break is allowed before '=>'.",
MalformedRegExpFlags: "Invalid regular expression flag.",
MissingClassName: "A class name is required.",
MissingEqInAssignment: "Only '=' operator can be used for specifying default value.",
MissingSemicolon: "Missing semicolon.",
MissingPlugin: /* @__PURE__ */ i(({
missingPlugin: e
}) => `This experimental syntax requires enabling the parser plugin: ${e.map((t) => JSON.stringify(t)).join(", ")}.`, "MissingPlugin"),
MissingOneOfPlugins: /* @__PURE__ */ i(({
missingPlugin: e
}) => `This experimental syntax requires enabling one of the following parser plugin(s): ${e.map((t) => JSON.stringify(t)).join(", ")}.`,
"MissingOneOfPlugins"),
MissingUnicodeEscape: "Expecting Unicode escape sequence \\uXXXX.",
MixingCoalesceWithLogical: "Nullish coalescing operator(??) requires parens when mixing with logical operators.",
ModuleAttributeDifferentFromType: "The only accepted module attribute is `type`.",
ModuleAttributeInvalidValue: "Only string literals are allowed as module attribute values.",
ModuleAttributesWithDuplicateKeys: /* @__PURE__ */ i(({
key: e
}) => `Duplicate key "${e}" is not allowed in module attributes.`, "ModuleAttributesWithDuplicateKeys"),
ModuleExportNameHasLoneSurrogate: /* @__PURE__ */ i(({
surrogateCharCode: e
}) => `An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`, "ModuleExportNameHasLoneSurrogate"),
ModuleExportUndefined: /* @__PURE__ */ i(({
localName: e
}) => `Export '${e}' is not defined.`, "ModuleExportUndefined"),
MultipleDefaultsInSwitch: "Multiple default clauses.",
NewlineAfterThrow: "Illegal newline after throw.",
NoCatchOrFinally: "Missing catch or finally clause.",
NumberIdentifier: "Identifier directly after number.",
NumericSeparatorInEscapeSequence: "Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",
ObsoleteAwaitStar: "'await*' has been removed from the async functions proposal. Use Promise.all() instead.",
OptionalChainingNoNew: "Constructors in/after an Optional Chain are not allowed.",
OptionalChainingNoTemplate: "Tagged Template Literals are not allowed in optionalChain.",
OverrideOnConstructor: "'override' modifier cannot appear on a constructor declaration.",
ParamDupe: "Argument name clash.",
PatternHasAccessor: "Object pattern can't contain getter or setter.",
PatternHasMethod: "Object pattern can't contain methods.",
PrivateInExpectedIn: /* @__PURE__ */ i(({
identifierName: e
}) => `Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`, "PrivateInExpe\
ctedIn"),
PrivateNameRedeclaration: /* @__PURE__ */ i(({
identifierName: e
}) => `Duplicate private name #${e}.`, "PrivateNameRedeclaration"),
RecordExpressionBarIncorrectEndSyntaxType: "Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 're\
cordAndTuple' plugin is set to 'bar'.",
RecordExpressionBarIncorrectStartSyntaxType: "Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the\
'recordAndTuple' plugin is set to 'bar'.",
RecordExpressionHashIncorrectStartSyntaxType: "Record expressions starting with '#{' are only allowed when the 'syntaxType' option of th\
e 'recordAndTuple' plugin is set to 'hash'.",
RecordNoProto: "'__proto__' is not allowed in Record expressions.",
RestTrailingComma: "Unexpected trailing comma after rest element.",
SloppyFunction: "In non-strict mode code, functions can only be declared at top level or inside a block.",
SloppyFunctionAnnexB: "In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if sta\
tement.",
SourcePhaseImportRequiresDefault: 'Only `import source x from "./module"` is valid.',
StaticPrototype: "Classes may not have static property named prototype.",
SuperNotAllowed: "`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or n\
ot extending another class?",
SuperPrivateField: "Private fields can't be accessed on super.",
TrailingDecorator: "Decorators must be attached to a class element.",
TupleExpressionBarIncorrectEndSyntaxType: "Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'reco\
rdAndTuple' plugin is set to 'bar'.",
TupleExpressionBarIncorrectStartSyntaxType: "Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the '\
recordAndTuple' plugin is set to 'bar'.",
TupleExpressionHashIncorrectStartSyntaxType: "Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the \
'recordAndTuple' plugin is set to 'hash'.",
UnexpectedArgumentPlaceholder: "Unexpected argument placeholder.",
UnexpectedAwaitAfterPipelineBody: 'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',
UnexpectedDigitAfterHash: "Unexpected digit after hash token.",
UnexpectedImportExport: "'import' and 'export' may only appear at the top level.",
UnexpectedKeyword: /* @__PURE__ */ i(({
keyword: e
}) => `Unexpected keyword '${e}'.`, "UnexpectedKeyword"),
UnexpectedLeadingDecorator: "Leading decorators must be attached to a class declaration.",
UnexpectedLexicalDeclaration: "Lexical declaration cannot appear in a single-statement context.",
UnexpectedNewTarget: "`new.target` can only be used in functions or class properties.",
UnexpectedNumericSeparator: "A numeric separator is only allowed between two digits.",
UnexpectedPrivateField: "Unexpected private name.",
UnexpectedReservedWord: /* @__PURE__ */ i(({
reservedWord: e
}) => `Unexpected reserved word '${e}'.`, "UnexpectedReservedWord"),
UnexpectedSuper: "'super' is only allowed in object methods and classes.",
UnexpectedToken: /* @__PURE__ */ i(({
expected: e,
unexpected: t
}) => `Unexpected token${t ? ` '${t}'.` : ""}${e ? `, expected "${e}"` : ""}`, "UnexpectedToken"),
UnexpectedTokenUnaryExponentiation: "Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",
UnexpectedUsingDeclaration: "Using declaration cannot appear in the top level when source type is `script`.",
UnsupportedBind: "Binding should be performed on object property.",
UnsupportedDecoratorExport: "A decorated export must export a class declaration.",
UnsupportedDefaultExport: "Only expressions, functions or classes are allowed as the `default` export.",
UnsupportedImport: "`import` can only be used in `import()` or `import.meta`.",
UnsupportedMetaProperty: /* @__PURE__ */ i(({
target: e,
onlyValidPropertyName: t
}) => `The only valid meta property for ${e} is ${e}.${t}.`, "UnsupportedMetaProperty"),
UnsupportedParameterDecorator: "Decorators cannot be used to decorate parameters.",
UnsupportedPropertyDecorator: "Decorators cannot be used to decorate object literal properties.",
UnsupportedSuper: "'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",
UnterminatedComment: "Unterminated comment.",
UnterminatedRegExp: "Unterminated regular expression.",
UnterminatedString: "Unterminated string constant.",
UnterminatedTemplate: "Unterminated template.",
UsingDeclarationExport: "Using declaration cannot be exported.",
UsingDeclarationHasBindingPattern: "Using declaration cannot have destructuring patterns.",
VarRedeclaration: /* @__PURE__ */ i(({
identifierName: e
}) => `Identifier '${e}' has already been declared.`, "VarRedeclaration"),
YieldBindingIdentifier: "Can not use 'yield' as identifier inside a generator.",
YieldInParameter: "Yield expression is not allowed in formal parameters.",
YieldNotInGeneratorFunction: "'yield' is only allowed within generator functions.",
ZeroDigitNumericSeparator: "Numeric separator can not be used after leading 0."
}, XW = {
StrictDelete: "Deleting local variable in strict mode.",
StrictEvalArguments: /* @__PURE__ */ i(({
referenceName: e
}) => `Assigning to '${e}' in strict mode.`, "StrictEvalArguments"),
StrictEvalArgumentsBinding: /* @__PURE__ */ i(({
bindingName: e
}) => `Binding '${e}' in strict mode.`, "StrictEvalArgumentsBinding"),
StrictFunction: "In strict mode code, functions can only be declared at top level or inside a block.",
StrictNumericEscape: "The only valid numeric escape in strict mode is '\\0'.",
StrictOctalLiteral: "Legacy octal literals are not allowed in strict mode.",
StrictWith: "'with' in strict mode."
}, zW = /* @__PURE__ */ new Set(["ArrowFunctionExpression", "AssignmentExpression", "ConditionalExpression", "YieldExpression"]), QW = Object.
assign({
PipeBodyIsTighter: "Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due \
to its loose operator precedence.",
PipeTopicRequiresHackPipes: 'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" opt\
ion.',
PipeTopicUnbound: "Topic reference is unbound; it must be inside a pipe body.",
PipeTopicUnconfiguredToken: /* @__PURE__ */ i(({
token: e
}) => `Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "propo\
sal": "hack", "topicToken": "${e}" }.`, "PipeTopicUnconfiguredToken"),
PipeTopicUnused: "Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",
PipeUnparenthesizedBody: /* @__PURE__ */ i(({
type: e
}) => `Hack-style pipe body cannot be an unparenthesized ${Bl({
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.'
}), ZW = ["message"];
function IT(e, t, r) {
Object.defineProperty(e, t, {
enumerable: !1,
configurable: !0,
value: r
});
}
i(IT, "defineHidden");
function eK({
toMessage: e,
code: t,
reasonCode: r,
syntaxPlugin: n
}) {
let s = r === "MissingPlugin" || r === "MissingOneOfPlugins";
{
let a = {
AccessorCannotDeclareThisParameter: "AccesorCannotDeclareThisParameter",
AccessorCannotHaveTypeParameters: "AccesorCannotHaveTypeParameters",
ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumRefer\
ence",
SetAccessorCannotHaveOptionalParameter: "SetAccesorCannotHaveOptionalParameter",
SetAccessorCannotHaveRestParameter: "SetAccesorCannotHaveRestParameter",
SetAccessorCannotHaveReturnType: "SetAccesorCannotHaveReturnType"
};
a[r] && (r = a[r]);
}
return /* @__PURE__ */ i(function a(o, l) {
let u = new SyntaxError();
return u.code = t, u.reasonCode = r, u.loc = o, u.pos = o.index, u.syntaxPlugin = n, s && (u.missingPlugin = l.missingPlugin), IT(u, "\
clone", /* @__PURE__ */ i(function(p = {}) {
var f;
let {
line: h,
column: y,
index: E
} = (f = p.loc) != null ? f : o;
return a(new cn(h, y, E), Object.assign({}, l, p.details));
}, "clone")), IT(u, "details", l), Object.defineProperty(u, "message", {
configurable: !0,
get() {
let c = `${e(l)} (${o.line}:${o.column})`;
return this.message = c, c;
},
set(c) {
Object.defineProperty(this, "message", {
value: c,
writable: !0
});
}
}), u;
}, "constructor");
}
i(eK, "toParseErrorConstructor");
function wn(e, t) {
if (Array.isArray(e))
return (n) => wn(n, e[0]);
let r = {};
for (let n of Object.keys(e)) {
let s = e[n], a = typeof s == "string" ? {
message: /* @__PURE__ */ i(() => s, "message")
} : typeof s == "function" ? {
message: s
} : s, {
message: o
} = a, l = HW(a, ZW), u = typeof o == "string" ? () => o : o;
r[n] = eK(Object.assign({
code: "BABEL_PARSER_SYNTAX_ERROR",
reasonCode: n,
toMessage: u
}, t ? {
syntaxPlugin: t
} : {}, l));
}
return r;
}
i(wn, "ParseErrorEnum");
var N = Object.assign({}, wn(YW), wn(JW), wn(XW), wn`pipelineOperator`(QW));
function tK() {
return {
sourceType: "script",
sourceFilename: void 0,
startIndex: 0,
startColumn: 0,
startLine: 1,
allowAwaitOutsideFunction: !1,
allowReturnOutsideFunction: !1,
allowNewTargetOutsideFunction: !1,
allowImportExportEverywhere: !1,
allowSuperOutsideMethod: !1,
allowUndeclaredExports: !1,
allowYieldOutsideFunction: !1,
plugins: [],
strictMode: null,
ranges: !1,
tokens: !1,
createImportExpressions: !1,
createParenthesizedExpressions: !1,
errorRecovery: !1,
attachComment: !0,
annexB: !0
};
}
i(tK, "createDefaultOptions");
function rK(e) {
let t = tK();
if (e == null)
return t;
if (e.annexB != null && e.annexB !== !1)
throw new Error("The `annexB` option can only be set to `false`.");
for (let r of Object.keys(t))
e[r] != null && (t[r] = e[r]);
if (t.startLine === 1)
e.startIndex == null && t.startColumn > 0 ? t.startIndex = t.startColumn : e.startColumn == null && t.startIndex > 0 && (t.startColumn =
t.startIndex);
else if ((e.startColumn == null || e.startIndex == null) && e.startIndex != null)
throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");
return t;
}
i(rK, "getOptions");
var {
defineProperty: nK
} = Object, _T = /* @__PURE__ */ i((e, t) => {
e && nK(e, t, {
enumerable: !1,
value: e[t]
});
}, "toUnenumerable");
function Ra(e) {
return _T(e.loc.start, "index"), _T(e.loc.end, "index"), e;
}
i(Ra, "toESTreeLocation");
var sK = /* @__PURE__ */ i((e) => class extends e {
static {
i(this, "ESTreeParserMixin");
}
parse() {
let r = Ra(super.parse());
return this.optionFlags & 256 && (r.tokens = r.tokens.map(Ra)), r;
}
parseRegExpLiteral({
pattern: r,
flags: n
}) {
let s = null;
try {
s = new RegExp(r, n);
} catch {
}
let a = this.estreeParseLiteral(s);
return a.regex = {
pattern: r,
flags: n
}, a;
}
parseBigIntLiteral(r) {
let n;
try {
n = BigInt(r);
} catch {
n = null;
}
let s = this.estreeParseLiteral(n);
return s.bigint = String(s.value || r), s;
}
parseDecimalLiteral(r) {
let s = this.estreeParseLiteral(null);
return s.decimal = String(s.value || r), s;
}
estreeParseLiteral(r) {
return this.parseLiteral(r, "Literal");
}
parseStringLiteral(r) {
return this.estreeParseLiteral(r);
}
parseNumericLiteral(r) {
return this.estreeParseLiteral(r);
}
parseNullLiteral() {
return this.estreeParseLiteral(null);
}
parseBooleanLiteral(r) {
return this.estreeParseLiteral(r);
}
directiveToStmt(r) {
let n = r.value;
delete r.value, n.type = "Literal", n.raw = n.extra.raw, n.value = n.extra.expressionValue;
let s = r;
return s.type = "ExpressionStatement", s.expression = n, s.directive = n.extra.rawValue, delete n.extra, s;
}
initFunction(r, n) {
super.initFunction(r, n), r.expression = !1;
}
checkDeclaration(r) {
r != null && this.isObjectProperty(r) ? this.checkDeclaration(r.value) : super.checkDeclaration(r);
}
getObjectOrClassMethodParams(r) {
return r.value.params;
}
isValidDirective(r) {
var n;
return r.type === "ExpressionStatement" && r.expression.type === "Literal" && typeof r.expression.value == "string" && !((n = r.expression.
extra) != null && n.parenthesized);
}
parseBlockBody(r, n, s, a, o) {
super.parseBlockBody(r, n, s, a, o);
let l = r.directives.map((u) => this.directiveToStmt(u));
r.body = l.concat(r.body), delete r.directives;
}
parsePrivateName() {
let r = super.parsePrivateName();
return this.getPluginOption("estree", "classFeatures") ? this.convertPrivateNameToPrivateIdentifier(r) : r;
}
convertPrivateNameToPrivateIdentifier(r) {
let n = super.getPrivateNameSV(r);
return r = r, delete r.id, r.name = n, r.type = "PrivateIdentifier", r;
}
isPrivateName(r) {
return this.getPluginOption("estree", "classFeatures") ? r.type === "PrivateIdentifier" : super.isPrivateName(r);
}
getPrivateNameSV(r) {
return this.getPluginOption("estree", "classFeatures") ? r.name : super.getPrivateNameSV(r);
}
parseLiteral(r, n) {
let s = super.parseLiteral(r, n);
return s.raw = s.extra.raw, delete s.extra, s;
}
parseFunctionBody(r, n, s = !1) {
super.parseFunctionBody(r, n, s), r.expression = r.body.type !== "BlockStatement";
}
parseMethod(r, n, s, a, o, l, u = !1) {
let c = this.startNode();
c.kind = r.kind, c = super.parseMethod(c, n, s, a, o, l, u), c.type = "FunctionExpression", delete c.kind, r.value = c;
let {
typeParameters: p
} = r;
return p && (delete r.typeParameters, c.typeParameters = p, this.resetStartLocationFromNode(c, p)), 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;
}
parseClassAccessorProperty(r) {
let n = super.parseClassAccessorProperty(r);
return this.getPluginOption("estree", "classFeatures") && (n.type = "AccessorProperty"), n;
}
parseObjectMethod(r, n, s, a, o) {
let l = super.parseObjectMethod(r, n, s, a, o);
return l && (l.type = "Property", l.kind === "method" && (l.kind = "init"), l.shorthand = !1), l;
}
parseObjectProperty(r, n, s, a) {
let o = super.parseObjectProperty(r, n, s, a);
return o && (o.kind = "init", o.type = "Property"), o;
}
isValidLVal(r, n, s) {
return r === "Property" ? "value" : super.isValidLVal(r, n, s);
}
isAssignable(r, n) {
return r != null && this.isObjectProperty(r) ? this.isAssignable(r.value, n) : super.isAssignable(r, n);
}
toAssignable(r, n = !1) {
if (r != null && this.isObjectProperty(r)) {
let {
key: s,
value: a
} = r;
this.isPrivateName(s) && this.classScope.usePrivateName(this.getPrivateNameSV(s), s.loc.start), this.toAssignable(a, n);
} else
super.toAssignable(r, n);
}
toAssignableObjectExpressionProp(r, n, s) {
r.type === "Property" && (r.kind === "get" || r.kind === "set") ? this.raise(N.PatternHasAccessor, r.key) : r.type === "Property" && r.
method ? this.raise(N.PatternHasMethod, r.key) : super.toAssignableObjectExpressionProp(r, n, s);
}
finishCallExpression(r, n) {
let s = super.finishCallExpression(r, n);
if (s.callee.type === "Import") {
var a, o;
s.type = "ImportExpression", s.source = s.arguments[0], s.options = (a = s.arguments[1]) != null ? a : null, s.attributes = (o = s.arguments[1]) !=
null ? o : null, delete s.arguments, delete s.callee;
}
return s;
}
toReferencedArguments(r) {
r.type !== "ImportExpression" && super.toReferencedArguments(r);
}
parseExport(r, n) {
let s = this.state.lastTokStartLoc, 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, s);
}
break;
}
return a;
}
parseSubscript(r, n, s, a) {
let o = super.parseSubscript(r, n, s, 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, s) {
return Ra(super.finishNodeAt(r, n, s));
}
resetStartLocation(r, n) {
super.resetStartLocation(r, n), Ra(r);
}
resetEndLocation(r, n = this.state.lastTokEndLoc) {
super.resetEndLocation(r, n), Ra(r);
}
}, "estree"), Ms = class {
static {
i(this, "TokContext");
}
constructor(t, r) {
this.token = void 0, this.preserveSpace = void 0, this.token = t, this.preserveSpace = !!r;
}
}, Ze = {
brace: new Ms("{"),
j_oTag: new Ms("<tag"),
j_cTag: new Ms("</tag"),
j_expr: new Ms("<tag>...</tag>", !0)
};
Ze.template = new Ms("`", !0);
var Ue = !0, ie = !0, eh = !0, qa = !0, rs = !0, iK = !0, jl = class {
static {
i(this, "ExportedTokenType");
}
constructor(t, r = {}) {
this.label = void 0, this.keyword = void 0, this.beforeExpr = void 0, this.startsExpr = void 0, this.rightAssociative = void 0, this.isLoop =
void 0, this.isAssign = void 0, this.prefix = void 0, this.postfix = void 0, this.binop = void 0, this.label = t, this.keyword = r.keyword,
this.beforeExpr = !!r.beforeExpr, this.startsExpr = !!r.startsExpr, this.rightAssociative = !!r.rightAssociative, this.isLoop = !!r.isLoop,
this.isAssign = !!r.isAssign, this.prefix = !!r.prefix, this.postfix = !!r.postfix, this.binop = r.binop != null ? r.binop : null, this.
updateContext = null;
}
}, Ph = /* @__PURE__ */ new Map();
function Ye(e, t = {}) {
t.keyword = e;
let r = xe(e, t);
return Ph.set(e, r), r;
}
i(Ye, "createKeyword");
function ar(e, t) {
return xe(e, {
beforeExpr: Ue,
binop: t
});
}
i(ar, "createBinop");
var Wa = -1, Cn = [], Ah = [], Ch = [], Dh = [], wh = [], Ih = [];
function xe(e, t = {}) {
var r, n, s, a;
return ++Wa, Ah.push(e), Ch.push((r = t.binop) != null ? r : -1), Dh.push((n = t.beforeExpr) != null ? n : !1), wh.push((s = t.startsExpr) !=
null ? s : !1), Ih.push((a = t.prefix) != null ? a : !1), Cn.push(new jl(e, t)), Wa;
}
i(xe, "createToken");
function qe(e, t = {}) {
var r, n, s, a;
return ++Wa, Ph.set(e, Wa), Ah.push(e), Ch.push((r = t.binop) != null ? r : -1), Dh.push((n = t.beforeExpr) != null ? n : !1), wh.push((s =
t.startsExpr) != null ? s : !1), Ih.push((a = t.prefix) != null ? a : !1), Cn.push(new jl("name", t)), Wa;
}
i(qe, "createKeywordLike");
var aK = {
bracketL: xe("[", {
beforeExpr: Ue,
startsExpr: ie
}),
bracketHashL: xe("#[", {
beforeExpr: Ue,
startsExpr: ie
}),
bracketBarL: xe("[|", {
beforeExpr: Ue,
startsExpr: ie
}),
bracketR: xe("]"),
bracketBarR: xe("|]"),
braceL: xe("{", {
beforeExpr: Ue,
startsExpr: ie
}),
braceBarL: xe("{|", {
beforeExpr: Ue,
startsExpr: ie
}),
braceHashL: xe("#{", {
beforeExpr: Ue,
startsExpr: ie
}),
braceR: xe("}"),
braceBarR: xe("|}"),
parenL: xe("(", {
beforeExpr: Ue,
startsExpr: ie
}),
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: ie
}),
dollarBraceL: xe("${", {
beforeExpr: Ue,
startsExpr: ie
}),
templateTail: xe("...`", {
startsExpr: ie
}),
templateNonTail: xe("...${", {
beforeExpr: Ue,
startsExpr: ie
}),
at: xe("@"),
hash: xe("#", {
startsExpr: ie
}),
interpreterDirective: xe("#!..."),
eq: xe("=", {
beforeExpr: Ue,
isAssign: qa
}),
assign: xe("_=", {
beforeExpr: Ue,
isAssign: qa
}),
slashAssign: xe("_=", {
beforeExpr: Ue,
isAssign: qa
}),
xorAssign: xe("_=", {
beforeExpr: Ue,
isAssign: qa
}),
moduloAssign: xe("_=", {
beforeExpr: Ue,
isAssign: qa
}),
incDec: xe("++/--", {
prefix: rs,
postfix: iK,
startsExpr: ie
}),
bang: xe("!", {
beforeExpr: Ue,
prefix: rs,
startsExpr: ie
}),
tilde: xe("~", {
beforeExpr: Ue,
prefix: rs,
startsExpr: ie
}),
doubleCaret: xe("^^", {
startsExpr: ie
}),
doubleAt: xe("@@", {
startsExpr: ie
}),
pipeline: ar("|>", 0),
nullishCoalescing: ar("??", 1),
logicalOR: ar("||", 1),
logicalAND: ar("&&", 2),
bitwiseOR: ar("|", 3),
bitwiseXOR: ar("^", 4),
bitwiseAND: ar("&", 5),
equality: ar("==/!=/===/!==", 6),
lt: ar("</>/<=/>=", 7),
gt: ar("</>/<=/>=", 7),
relational: ar("</>/<=/>=", 7),
bitShift: ar("<</>>/>>>", 8),
bitShiftL: ar("<</>>/>>>", 8),
bitShiftR: ar("<</>>/>>>", 8),
plusMin: xe("+/-", {
beforeExpr: Ue,
binop: 9,
prefix: rs,
startsExpr: ie
}),
modulo: xe("%", {
binop: 10,
startsExpr: ie
}),
star: xe("*", {
binop: 10
}),
slash: ar("/", 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: ie
}),
_if: Ye("if"),
_return: Ye("return", {
beforeExpr: Ue
}),
_switch: Ye("switch"),
_throw: Ye("throw", {
beforeExpr: Ue,
prefix: rs,
startsExpr: ie
}),
_try: Ye("try"),
_var: Ye("var"),
_const: Ye("const"),
_with: Ye("with"),
_new: Ye("new", {
beforeExpr: Ue,
startsExpr: ie
}),
_this: Ye("this", {
startsExpr: ie
}),
_super: Ye("super", {
startsExpr: ie
}),
_class: Ye("class", {
startsExpr: ie
}),
_extends: Ye("extends", {
beforeExpr: Ue
}),
_export: Ye("export"),
_import: Ye("import", {
startsExpr: ie
}),
_null: Ye("null", {
startsExpr: ie
}),
_true: Ye("true", {
startsExpr: ie
}),
_false: Ye("false", {
startsExpr: ie
}),
_typeof: Ye("typeof", {
beforeExpr: Ue,
prefix: rs,
startsExpr: ie
}),
_void: Ye("void", {
beforeExpr: Ue,
prefix: rs,
startsExpr: ie
}),
_delete: Ye("delete", {
beforeExpr: Ue,
prefix: rs,
startsExpr: ie
}),
_do: Ye("do", {
isLoop: eh,
beforeExpr: Ue
}),
_for: Ye("for", {
isLoop: eh
}),
_while: Ye("while", {
isLoop: eh
}),
_as: qe("as", {
startsExpr: ie
}),
_assert: qe("assert", {
startsExpr: ie
}),
_async: qe("async", {
startsExpr: ie
}),
_await: qe("await", {
startsExpr: ie
}),
_defer: qe("defer", {
startsExpr: ie
}),
_from: qe("from", {
startsExpr: ie
}),
_get: qe("get", {
startsExpr: ie
}),
_let: qe("let", {
startsExpr: ie
}),
_meta: qe("meta", {
startsExpr: ie
}),
_of: qe("of", {
startsExpr: ie
}),
_sent: qe("sent", {
startsExpr: ie
}),
_set: qe("set", {
startsExpr: ie
}),
_source: qe("source", {
startsExpr: ie
}),
_static: qe("static", {
startsExpr: ie
}),
_using: qe("using", {
startsExpr: ie
}),
_yield: qe("yield", {
startsExpr: ie
}),
_asserts: qe("asserts", {
startsExpr: ie
}),
_checks: qe("checks", {
startsExpr: ie
}),
_exports: qe("exports", {
startsExpr: ie
}),
_global: qe("global", {
startsExpr: ie
}),
_implements: qe("implements", {
startsExpr: ie
}),
_intrinsic: qe("intrinsic", {
startsExpr: ie
}),
_infer: qe("infer", {
startsExpr: ie
}),
_is: qe("is", {
startsExpr: ie
}),
_mixins: qe("mixins", {
startsExpr: ie
}),
_proto: qe("proto", {
startsExpr: ie
}),
_require: qe("require", {
startsExpr: ie
}),
_satisfies: qe("satisfies", {
startsExpr: ie
}),
_keyof: qe("keyof", {
startsExpr: ie
}),
_readonly: qe("readonly", {
startsExpr: ie
}),
_unique: qe("unique", {
startsExpr: ie
}),
_abstract: qe("abstract", {
startsExpr: ie
}),
_declare: qe("declare", {
startsExpr: ie
}),
_enum: qe("enum", {
startsExpr: ie
}),
_module: qe("module", {
startsExpr: ie
}),
_namespace: qe("namespace", {
startsExpr: ie
}),
_interface: qe("interface", {
startsExpr: ie
}),
_type: qe("type", {
startsExpr: ie
}),
_opaque: qe("opaque", {
startsExpr: ie
}),
name: xe("name", {
startsExpr: ie
}),
placeholder: xe("%%", {
startsExpr: !0
}),
string: xe("string", {
startsExpr: ie
}),
num: xe("num", {
startsExpr: ie
}),
bigint: xe("bigint", {
startsExpr: ie
}),
decimal: xe("decimal", {
startsExpr: ie
}),
regexp: xe("regexp", {
startsExpr: ie
}),
privateName: xe("#name", {
startsExpr: ie
}),
eof: xe("eof"),
jsxName: xe("jsxName"),
jsxText: xe("jsxText", {
beforeExpr: !0
}),
jsxTagStart: xe("jsxTagStart", {
startsExpr: !0
}),
jsxTagEnd: xe("jsxTagEnd")
};
function et(e) {
return e >= 93 && e <= 133;
}
i(et, "tokenIsIdentifier");
function oK(e) {
return e <= 92;
}
i(oK, "tokenKeywordOrIdentifierIsKeyword");
function Kr(e) {
return e >= 58 && e <= 133;
}
i(Kr, "tokenIsKeywordOrIdentifier");
function VT(e) {
return e >= 58 && e <= 137;
}
i(VT, "tokenIsLiteralPropertyName");
function lK(e) {
return Dh[e];
}
i(lK, "tokenComesBeforeExpression");
function Va(e) {
return wh[e];
}
i(Va, "tokenCanStartExpression");
function uK(e) {
return e >= 29 && e <= 33;
}
i(uK, "tokenIsAssignment");
function OT(e) {
return e >= 129 && e <= 131;
}
i(OT, "tokenIsFlowInterfaceOrTypeOrOpaque");
function cK(e) {
return e >= 90 && e <= 92;
}
i(cK, "tokenIsLoop");
function _h(e) {
return e >= 58 && e <= 92;
}
i(_h, "tokenIsKeyword");
function pK(e) {
return e >= 39 && e <= 59;
}
i(pK, "tokenIsOperator");
function fK(e) {
return e === 34;
}
i(fK, "tokenIsPostfix");
function dK(e) {
return Ih[e];
}
i(dK, "tokenIsPrefix");
function hK(e) {
return e >= 121 && e <= 123;
}
i(hK, "tokenIsTSTypeOperator");
function mK(e) {
return e >= 124 && e <= 130;
}
i(mK, "tokenIsTSDeclarationStart");
function ss(e) {
return Ah[e];
}
i(ss, "tokenLabelName");
function kl(e) {
return Ch[e];
}
i(kl, "tokenOperatorPrecedence");
function yK(e) {
return e === 57;
}
i(yK, "tokenIsRightAssociative");
function Ll(e) {
return e >= 24 && e <= 25;
}
i(Ll, "tokenIsTemplate");
function An(e) {
return Cn[e];
}
i(An, "getExportedToken");
Cn[8].updateContext = (e) => {
e.pop();
}, Cn[5].updateContext = Cn[7].updateContext = Cn[23].updateContext = (e) => {
e.push(Ze.brace);
}, Cn[22].updateContext = (e) => {
e[e.length - 1] === Ze.template ? e.pop() : e.push(Ze.template);
}, Cn[143].updateContext = (e) => {
e.push(Ze.j_expr, Ze.j_oTag);
};
var Oh = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993\
-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\
\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\
\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\
\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\
\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01\
-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",
$T = "\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\
\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\
\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6\
-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20\
-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65", gK = new RegExp("[" + Oh + "]"), bK = new RegExp("[" + Oh + $T + "]");
Oh = $T = null;
var WT = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157,
19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5,
3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7,
2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17,
47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64,
6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45,
52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2,
1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29,
113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071,
18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12,
65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991,
84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30,
2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3,
0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2,
2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153,
7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191], EK = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0,
166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2,
9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68,
8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14,
5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2,
7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0,
7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4,
4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10,
9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
function ih(e, t) {
let r = 65536;
for (let n = 0, s = t.length; n < s; n += 2) {
if (r += t[n], r > e) return !1;
if (r += t[n + 1], r >= e) return !0;
}
return !1;
}
i(ih, "isInAstralSet");
function Dn(e) {
return e < 65 ? e === 36 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && gK.test(String.fromCharCode(e)) :
ih(e, WT);
}
i(Dn, "isIdentifierStart");
function wi(e) {
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e <= 90 ? !0 : e < 97 ? e === 95 : e <= 122 ? !0 : e <= 65535 ? e >= 170 && bK.test(
String.fromCharCode(e)) : ih(e, WT) || ih(e, EK);
}
i(wi, "isIdentifierChar");
var Nh = {
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"]
}, TK = new Set(Nh.keyword), SK = new Set(Nh.strict), xK = new Set(Nh.strictBind);
function KT(e, t) {
return t && e === "await" || e === "enum";
}
i(KT, "isReservedWord");
function GT(e, t) {
return KT(e, t) || SK.has(e);
}
i(GT, "isStrictReservedWord");
function HT(e) {
return xK.has(e);
}
i(HT, "isStrictBindOnlyReservedWord");
function YT(e, t) {
return GT(e, t) || HT(e);
}
i(YT, "isStrictBindReservedWord");
function vK(e) {
return TK.has(e);
}
i(vK, "isKeyword");
function PK(e, t, r) {
return e === 64 && t === 64 && Dn(r);
}
i(PK, "isIteratorStart");
var AK = /* @__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 CK(e) {
return AK.has(e);
}
i(CK, "canBeReservedWord");
var Ka = class {
static {
i(this, "Scope");
}
constructor(t) {
this.flags = 0, this.names = /* @__PURE__ */ new Map(), this.firstLexicalName = "", this.flags = t;
}
}, Ga = class {
static {
i(this, "ScopeHandler");
}
constructor(t, r) {
this.parser = void 0, this.scopeStack = [], this.inModule = void 0, this.undefinedExports = /* @__PURE__ */ new Map(), this.parser = t,
this.inModule = r;
}
get inTopLevel() {
return (this.currentScope().flags & 1) > 0;
}
get inFunction() {
return (this.currentVarScopeFlags() & 2) > 0;
}
get allowSuper() {
return (this.currentThisScopeFlags() & 16) > 0;
}
get allowDirectSuper() {
return (this.currentThisScopeFlags() & 32) > 0;
}
get 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 Ka(t);
}
enter(t) {
this.scopeStack.push(this.createScope(t));
}
exit() {
return this.scopeStack.pop().flags;
}
treatFunctionsAsVarInScope(t) {
return !!(t.flags & 130 || !this.parser.inModule && t.flags & 1);
}
declareName(t, r, n) {
let s = this.currentScope();
if (r & 8 || r & 16) {
this.checkRedeclarationInScope(s, t, r, n);
let a = s.names.get(t) || 0;
r & 16 ? a = a | 4 : (s.firstLexicalName || (s.firstLexicalName = t), a = a | 2), s.names.set(t, a), r & 8 && this.maybeExportDefined(
s, t);
} else if (r & 4)
for (let a = this.scopeStack.length - 1; a >= 0 && (s = this.scopeStack[a], this.checkRedeclarationInScope(s, t, r, n), s.names.set(
t, (s.names.get(t) || 0) | 1), this.maybeExportDefined(s, t), !(s.flags & 387)); --a)
;
this.parser.inModule && s.flags & 1 && this.undefinedExports.delete(t);
}
maybeExportDefined(t, r) {
this.parser.inModule && t.flags & 1 && this.undefinedExports.delete(r);
}
checkRedeclarationInScope(t, r, n, s) {
this.isRedeclaredInScope(t, r, n) && this.parser.raise(N.VarRedeclaration, s, {
identifierName: r
});
}
isRedeclaredInScope(t, r, n) {
if (!(n & 1)) return !1;
if (n & 8)
return t.names.has(r);
let s = t.names.get(r);
return n & 16 ? (s & 2) > 0 || !this.treatFunctionsAsVarInScope(t) && (s & 1) > 0 : (s & 2) > 0 && !(t.flags & 8 && t.firstLexicalName ===
r) || !this.treatFunctionsAsVarInScope(t) && (s & 4) > 0;
}
checkLocalExport(t) {
let {
name: r
} = t;
this.scopeStack[0].names.has(r) || this.undefinedExports.set(r, t.loc.start);
}
currentScope() {
return this.scopeStack[this.scopeStack.length - 1];
}
currentVarScopeFlags() {
for (let t = this.scopeStack.length - 1; ; t--) {
let {
flags: r
} = this.scopeStack[t];
if (r & 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;
}
}
}, ah = class extends Ka {
static {
i(this, "FlowScope");
}
constructor(...t) {
super(...t), this.declareFunctions = /* @__PURE__ */ new Set();
}
}, oh = class extends Ga {
static {
i(this, "FlowScopeHandler");
}
createScope(t) {
return new ah(t);
}
declareName(t, r, n) {
let s = this.currentScope();
if (r & 2048) {
this.checkRedeclarationInScope(s, t, r, n), this.maybeExportDefined(s, t), s.declareFunctions.add(t);
return;
}
super.declareName(t, r, n);
}
isRedeclaredInScope(t, r, n) {
if (super.isRedeclaredInScope(t, r, n)) return !0;
if (n & 2048 && !t.declareFunctions.has(r)) {
let s = t.names.get(r);
return (s & 4) > 0 || (s & 2) > 0;
}
return !1;
}
checkLocalExport(t) {
this.scopeStack[0].declareFunctions.has(t.name) || super.checkLocalExport(t);
}
}, lh = class {
static {
i(this, "BaseParser");
}
constructor() {
this.sawUnambiguousESM = !1, this.ambiguousScriptDifferentAst = !1;
}
sourceToOffsetPos(t) {
return t + this.startIndex;
}
offsetToSourcePos(t) {
return t - this.startIndex;
}
hasPlugin(t) {
if (typeof t == "string")
return this.plugins.has(t);
{
let [r, n] = t;
if (!this.hasPlugin(r))
return !1;
let s = this.plugins.get(r);
for (let a of Object.keys(n))
if (s?.[a] !== n[a])
return !1;
return !0;
}
}
getPluginOption(t, r) {
var n;
return (n = this.plugins.get(t)) == null ? void 0 : n[r];
}
};
function JT(e, t) {
e.trailingComments === void 0 ? e.trailingComments = t : e.trailingComments.unshift(...t);
}
i(JT, "setTrailingComments");
function DK(e, t) {
e.leadingComments === void 0 ? e.leadingComments = t : e.leadingComments.unshift(...t);
}
i(DK, "setLeadingComments");
function Ha(e, t) {
e.innerComments === void 0 ? e.innerComments = t : e.innerComments.unshift(...t);
}
i(Ha, "setInnerComments");
function js(e, t, r) {
let n = null, s = t.length;
for (; n === null && s > 0; )
n = t[--s];
n === null || n.start > r.start ? Ha(e, r.comments) : JT(n, r.comments);
}
i(js, "adjustInnerComments");
var uh = class extends lh {
static {
i(this, "CommentsParser");
}
addComment(t) {
this.filename && (t.loc.filename = this.filename);
let {
commentsLen: r
} = this.state;
this.comments.length !== r && (this.comments.length = r), this.comments.push(t), this.state.commentsLen++;
}
processComment(t) {
let {
commentStack: r
} = this.state, n = r.length;
if (n === 0) return;
let s = n - 1, a = r[s];
a.start === t.end && (a.leadingNode = t, s--);
let {
start: o
} = t;
for (; s >= 0; s--) {
let l = r[s], u = l.end;
if (u > o)
l.containingNode = t, this.finalizeComment(l), r.splice(s, 1);
else {
u === o && (l.trailingNode = t);
break;
}
}
}
finalizeComment(t) {
let {
comments: r
} = t;
if (t.leadingNode !== null || t.trailingNode !== null)
t.leadingNode !== null && JT(t.leadingNode, r), t.trailingNode !== null && DK(t.trailingNode, r);
else {
let {
containingNode: n,
start: s
} = t;
if (this.input.charCodeAt(this.offsetToSourcePos(s) - 1) === 44)
switch (n.type) {
case "ObjectExpression":
case "ObjectPattern":
case "RecordExpression":
js(n, n.properties, t);
break;
case "CallExpression":
case "OptionalCallExpression":
js(n, n.arguments, t);
break;
case "FunctionDeclaration":
case "FunctionExpression":
case "ArrowFunctionExpression":
case "ObjectMethod":
case "ClassMethod":
case "ClassPrivateMethod":
js(n, n.params, t);
break;
case "ArrayExpression":
case "ArrayPattern":
case "TupleExpression":
js(n, n.elements, t);
break;
case "ExportNamedDeclaration":
case "ImportDeclaration":
js(n, n.specifiers, t);
break;
case "TSEnumDeclaration":
js(n, n.members, t);
break;
case "TSEnumBody":
js(n, n.members, t);
break;
default:
Ha(n, r);
}
else
Ha(n, r);
}
}
finalizeRemainingComments() {
let {
commentStack: t
} = this.state;
for (let r = t.length - 1; r >= 0; r--)
this.finalizeComment(t[r]);
this.state.commentStack = [];
}
resetPreviousNodeTrailingComments(t) {
let {
commentStack: r
} = this.state, {
length: n
} = r;
if (n === 0) return;
let s = r[n - 1];
s.leadingNode === t && (s.leadingNode = null);
}
resetPreviousIdentifierLeadingComments(t) {
let {
commentStack: r
} = this.state, {
length: n
} = r;
n !== 0 && (r[n - 1].trailingNode === t ? r[n - 1].trailingNode = null : n >= 2 && r[n - 2].trailingNode === t && (r[n - 2].trailingNode =
null));
}
takeSurroundingComments(t, r, n) {
let {
commentStack: s
} = this.state, a = s.length;
if (a === 0) return;
let o = a - 1;
for (; o >= 0; o--) {
let l = s[o], u = l.end;
if (l.start === n)
l.leadingNode = t;
else if (u === r)
l.trailingNode = t;
else if (u < r)
break;
}
}
}, wK = /\r\n|[\r\n\u2028\u2029]/, Ol = new RegExp(wK.source, "g");
function Ii(e) {
switch (e) {
case 10:
case 13:
case 8232:
case 8233:
return !0;
default:
return !1;
}
}
i(Ii, "isNewLine");
function NT(e, t, r) {
for (let n = t; n < r; n++)
if (Ii(e.charCodeAt(n)))
return !0;
return !1;
}
i(NT, "hasNewLine");
var th = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, rh = /(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;
function IK(e) {
switch (e) {
case 9:
case 11:
case 12:
case 32:
case 160:
case 5760:
case 8192:
case 8193:
case 8194:
case 8195:
case 8196:
case 8197:
case 8198:
case 8199:
case 8200:
case 8201:
case 8202:
case 8239:
case 8287:
case 12288:
case 65279:
return !0;
default:
return !1;
}
}
i(IK, "isWhitespace");
var ch = class e {
static {
i(this, "State");
}
constructor() {
this.flags = 1024, this.startIndex = void 0, this.curLine = void 0, this.lineStart = void 0, this.startLoc = void 0, this.endLoc = void 0,
this.errors = [], this.potentialArrowAt = -1, this.noArrowAt = [], this.noArrowParamsConversionAt = [], this.topicContext = {
maxNumOfResolvableTopics: 0,
maxTopicIndex: null
}, this.labels = [], this.commentsLen = 0, this.commentStack = [], this.pos = 0, this.type = 140, this.value = null, this.start = 0, this.
end = 0, this.lastTokEndLoc = null, this.lastTokStartLoc = null, this.context = [Ze.brace], this.firstInvalidTemplateEscapePos = null,
this.strictErrors = /* @__PURE__ */ new Map(), this.tokensLength = 0;
}
get strict() {
return (this.flags & 1) > 0;
}
set strict(t) {
t ? this.flags |= 1 : this.flags &= -2;
}
init({
strictMode: t,
sourceType: r,
startIndex: n,
startLine: s,
startColumn: a
}) {
this.strict = t === !1 ? !1 : t === !0 ? !0 : r === "module", this.startIndex = n, this.curLine = s, this.lineStart = -a, this.startLoc =
this.endLoc = new cn(s, a, n);
}
get maybeInArrowParameters() {
return (this.flags & 2) > 0;
}
set maybeInArrowParameters(t) {
t ? this.flags |= 2 : this.flags &= -3;
}
get inType() {
return (this.flags & 4) > 0;
}
set inType(t) {
t ? this.flags |= 4 : this.flags &= -5;
}
get noAnonFunctionType() {
return (this.flags & 8) > 0;
}
set noAnonFunctionType(t) {
t ? this.flags |= 8 : this.flags &= -9;
}
get hasFlowComment() {
return (this.flags & 16) > 0;
}
set hasFlowComment(t) {
t ? this.flags |= 16 : this.flags &= -17;
}
get isAmbientContext() {
return (this.flags & 32) > 0;
}
set isAmbientContext(t) {
t ? this.flags |= 32 : this.flags &= -33;
}
get inAbstractClass() {
return (this.flags & 64) > 0;
}
set inAbstractClass(t) {
t ? this.flags |= 64 : this.flags &= -65;
}
get inDisallowConditionalTypesContext() {
return (this.flags & 128) > 0;
}
set inDisallowConditionalTypesContext(t) {
t ? this.flags |= 128 : this.flags &= -129;
}
get soloAwait() {
return (this.flags & 256) > 0;
}
set soloAwait(t) {
t ? this.flags |= 256 : this.flags &= -257;
}
get inFSharpPipelineDirectBody() {
return (this.flags & 512) > 0;
}
set inFSharpPipelineDirectBody(t) {
t ? this.flags |= 512 : this.flags &= -513;
}
get canStartJSXElement() {
return (this.flags & 1024) > 0;
}
set canStartJSXElement(t) {
t ? this.flags |= 1024 : this.flags &= -1025;
}
get containsEsc() {
return (this.flags & 2048) > 0;
}
set containsEsc(t) {
t ? this.flags |= 2048 : this.flags &= -2049;
}
get hasTopLevelAwait() {
return (this.flags & 4096) > 0;
}
set hasTopLevelAwait(t) {
t ? this.flags |= 4096 : this.flags &= -4097;
}
curPosition() {
return new cn(this.curLine, this.pos - this.lineStart, this.pos + this.startIndex);
}
clone() {
let t = new e();
return t.flags = this.flags, t.startIndex = this.startIndex, t.curLine = this.curLine, t.lineStart = this.lineStart, t.startLoc = this.
startLoc, t.endLoc = this.endLoc, t.errors = this.errors.slice(), t.potentialArrowAt = this.potentialArrowAt, t.noArrowAt = this.noArrowAt.
slice(), t.noArrowParamsConversionAt = this.noArrowParamsConversionAt.slice(), t.topicContext = this.topicContext, t.labels = this.labels.
slice(), t.commentsLen = this.commentsLen, t.commentStack = this.commentStack.slice(), t.pos = this.pos, t.type = this.type, t.value =
this.value, t.start = this.start, t.end = this.end, t.lastTokEndLoc = this.lastTokEndLoc, t.lastTokStartLoc = this.lastTokStartLoc, t.
context = this.context.slice(), t.firstInvalidTemplateEscapePos = this.firstInvalidTemplateEscapePos, t.strictErrors = this.strictErrors,
t.tokensLength = this.tokensLength, t;
}
}, _K = /* @__PURE__ */ i(function(t) {
return t >= 48 && t <= 57;
}, "isDigit"), BT = {
decBinOct: /* @__PURE__ */ new Set([46, 66, 69, 79, 95, 98, 101, 111]),
hex: /* @__PURE__ */ new Set([46, 88, 95, 120])
}, Nl = {
bin: /* @__PURE__ */ i((e) => e === 48 || e === 49, "bin"),
oct: /* @__PURE__ */ i((e) => e >= 48 && e <= 55, "oct"),
dec: /* @__PURE__ */ i((e) => e >= 48 && e <= 57, "dec"),
hex: /* @__PURE__ */ i((e) => e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102, "hex")
};
function kT(e, t, r, n, s, a) {
let o = r, l = n, u = s, c = "", p = null, f = r, {
length: h
} = t;
for (; ; ) {
if (r >= h) {
a.unterminated(o, l, u), c += t.slice(f, r);
break;
}
let y = t.charCodeAt(r);
if (OK(e, y, t, r)) {
c += t.slice(f, r);
break;
}
if (y === 92) {
c += t.slice(f, r);
let E = NK(t, r, n, s, e === "template", a);
E.ch === null && !p ? p = {
pos: r,
lineStart: n,
curLine: s
} : c += E.ch, {
pos: r,
lineStart: n,
curLine: s
} = E, f = r;
} else y === 8232 || y === 8233 ? (++r, ++s, n = r) : y === 10 || y === 13 ? e === "template" ? (c += t.slice(f, r) + `
`, ++r, y === 13 && t.charCodeAt(r) === 10 && ++r, ++s, f = n = r) : a.unterminated(o, l, u) : ++r;
}
return {
pos: r,
str: c,
firstInvalidLoc: p,
lineStart: n,
curLine: s,
containsInvalid: !!p
};
}
i(kT, "readStringContents");
function OK(e, t, r, n) {
return e === "template" ? t === 96 || t === 36 && r.charCodeAt(n + 1) === 123 : t === (e === "double" ? 34 : 39);
}
i(OK, "isStringEnd");
function NK(e, t, r, n, s, a) {
let o = !s;
t++;
let l = /* @__PURE__ */ i((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
} = ph(e, t, r, n, 2, !1, o, a), l(c === null ? null : String.fromCharCode(c));
}
case 117: {
let c;
return {
code: c,
pos: t
} = zT(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 (s)
return l(null);
a.strictNumericEscape(t - 1, r, n);
default:
if (u >= 48 && u <= 55) {
let c = t - 1, f = /^[0-7]+/.exec(e.slice(c, t + 2))[0], h = parseInt(f, 8);
h > 255 && (f = f.slice(0, -1), h = parseInt(f, 8)), t += f.length - 1;
let y = e.charCodeAt(t);
if (f !== "0" || y === 56 || y === 57) {
if (s)
return l(null);
a.strictNumericEscape(c, r, n);
}
return l(String.fromCharCode(h));
}
return l(String.fromCharCode(u));
}
}
i(NK, "readEscapedChar");
function ph(e, t, r, n, s, a, o, l) {
let u = t, c;
return {
n: c,
pos: t
} = XT(e, t, r, n, 16, s, a, !1, l, !o), c === null && (o ? l.invalidEscapeSequence(u, r, n) : t = u - 1), {
code: c,
pos: t
};
}
i(ph, "readHexChar");
function XT(e, t, r, n, s, a, o, l, u, c) {
let p = t, f = s === 16 ? BT.hex : BT.decBinOct, h = s === 16 ? Nl.hex : s === 10 ? Nl.dec : s === 8 ? Nl.oct : Nl.bin, y = !1, E = 0;
for (let d = 0, g = a ?? 1 / 0; d < g; ++d) {
let C = e.charCodeAt(t), _;
if (C === 95 && l !== "bail") {
let O = e.charCodeAt(t - 1), B = e.charCodeAt(t + 1);
if (l) {
if (Number.isNaN(B) || !h(B) || f.has(O) || f.has(B)) {
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 (C >= 97 ? _ = C - 97 + 10 : C >= 65 ? _ = C - 65 + 10 : _K(C) ? _ = C - 48 : _ = 1 / 0, _ >= s) {
if (_ <= 9 && c)
return {
n: null,
pos: t
};
if (_ <= 9 && u.invalidDigit(t, r, n, s))
_ = 0;
else if (o)
_ = 0, y = !0;
else
break;
}
++t, E = E * s + _;
}
return t === p || a != null && t - p !== a || y ? {
n: null,
pos: t
} : {
n: E,
pos: t
};
}
i(XT, "readInt");
function zT(e, t, r, n, s, a) {
let o = e.charCodeAt(t), l;
if (o === 123) {
if (++t, {
code: l,
pos: t
} = ph(e, t, r, n, e.indexOf("}", t) - t, !0, s, a), ++t, l !== null && l > 1114111)
if (s)
a.invalidCodePoint(t, r, n);
else
return {
code: null,
pos: t
};
} else
({
code: l,
pos: t
} = ph(e, t, r, n, 4, !1, s, a));
return {
code: l,
pos: t
};
}
i(zT, "readCodePoint");
function Ua(e, t, r) {
return new cn(r, e - t, e);
}
i(Ua, "buildPosition");
var BK = /* @__PURE__ */ new Set([103, 109, 115, 105, 121, 117, 100, 118]), un = class {
static {
i(this, "Token");
}
constructor(t) {
let r = t.startIndex || 0;
this.type = t.type, this.value = t.value, this.start = r + t.start, this.end = r + t.end, this.loc = new Oi(t.startLoc, t.endLoc);
}
}, fh = class extends uh {
static {
i(this, "Tokenizer");
}
constructor(t, r) {
super(), this.isLookahead = void 0, this.tokens = [], this.errorHandlers_readInt = {
invalidDigit: /* @__PURE__ */ i((n, s, a, o) => this.optionFlags & 2048 ? (this.raise(N.InvalidDigit, Ua(n, s, a), {
radix: o
}), !0) : !1, "invalidDigit"),
numericSeparatorInEscapeSequence: this.errorBuilder(N.NumericSeparatorInEscapeSequence),
unexpectedNumericSeparator: this.errorBuilder(N.UnexpectedNumericSeparator)
}, this.errorHandlers_readCodePoint = Object.assign({}, this.errorHandlers_readInt, {
invalidEscapeSequence: this.errorBuilder(N.InvalidEscapeSequence),
invalidCodePoint: this.errorBuilder(N.InvalidCodePoint)
}), this.errorHandlers_readStringContents_string = Object.assign({}, this.errorHandlers_readCodePoint, {
strictNumericEscape: /* @__PURE__ */ i((n, s, a) => {
this.recordStrictModeErrors(N.StrictNumericEscape, Ua(n, s, a));
}, "strictNumericEscape"),
unterminated: /* @__PURE__ */ i((n, s, a) => {
throw this.raise(N.UnterminatedString, Ua(n - 1, s, a));
}, "unterminated")
}), this.errorHandlers_readStringContents_template = Object.assign({}, this.errorHandlers_readCodePoint, {
strictNumericEscape: this.errorBuilder(N.StrictNumericEscape),
unterminated: /* @__PURE__ */ i((n, s, a) => {
throw this.raise(N.UnterminatedTemplate, Ua(n, s, a));
}, "unterminated")
}), this.state = new ch(), this.state.init(t), this.input = r, this.length = r.length, this.comments = [], this.isLookahead = !1;
}
pushToken(t) {
this.tokens.length = this.state.tokensLength, this.tokens.push(t), ++this.state.tokensLength;
}
next() {
this.checkKeywordEscapes(), this.optionFlags & 256 && this.pushToken(new 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 th.lastIndex = t, th.test(this.input) ? th.lastIndex : t;
}
lookaheadCharCode() {
return this.input.charCodeAt(this.nextTokenStart());
}
nextTokenInLineStart() {
return this.nextTokenInLineStartSince(this.state.pos);
}
nextTokenInLineStartSince(t) {
return rh.lastIndex = t, rh.test(this.input) ? rh.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(140);
return;
}
this.getTokenFromCode(this.codePointAtPos(this.state.pos));
}
skipBlockComment(t) {
let r;
this.isLookahead || (r = this.state.curPosition());
let n = this.state.pos, s = this.input.indexOf(t, n + 2);
if (s === -1)
throw this.raise(N.UnterminatedComment, this.state.curPosition());
for (this.state.pos = s + t.length, Ol.lastIndex = n + 2; Ol.test(this.input) && Ol.lastIndex <= s; )
++this.state.curLine, this.state.lineStart = Ol.lastIndex;
if (this.isLookahead) return;
let a = {
type: "CommentBlock",
value: this.input.slice(n + 2, s),
start: this.sourceToOffsetPos(n),
end: this.sourceToOffsetPos(s + t.length),
loc: new Oi(r, this.state.curPosition())
};
return this.optionFlags & 256 && this.pushToken(a), a;
}
skipLineComment(t) {
let r = this.state.pos, n;
this.isLookahead || (n = this.state.curPosition());
let s = this.input.charCodeAt(this.state.pos += t);
if (this.state.pos < this.length)
for (; !Ii(s) && ++this.state.pos < this.length; )
s = this.input.charCodeAt(this.state.pos);
if (this.isLookahead) return;
let a = this.state.pos, l = {
type: "CommentLine",
value: this.input.slice(r + t, a),
start: this.sourceToOffsetPos(r),
end: this.sourceToOffsetPos(a),
loc: new Oi(n, this.state.curPosition())
};
return this.optionFlags & 256 && this.pushToken(l), l;
}
skipSpace() {
let t = this.state.pos, r = this.optionFlags & 4096 ? [] : null;
e: for (; this.state.pos < this.length; ) {
let 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 s = this.skipBlockComment("*/");
s !== void 0 && (this.addComment(s), r?.push(s));
break;
}
case 47: {
let s = this.skipLineComment(2);
s !== void 0 && (this.addComment(s), r?.push(s));
break;
}
default:
break e;
}
break;
default:
if (IK(n))
++this.state.pos;
else if (n === 45 && !this.inModule && this.optionFlags & 8192) {
let s = this.state.pos;
if (this.input.charCodeAt(s + 1) === 45 && this.input.charCodeAt(s + 2) === 62 && (t === 0 || this.state.lineStart > t)) {
let a = this.skipLineComment(3);
a !== void 0 && (this.addComment(a), r?.push(a));
} else
break e;
} else if (n === 60 && !this.inModule && this.optionFlags & 8192) {
let s = this.state.pos;
if (this.input.charCodeAt(s + 1) === 33 && this.input.charCodeAt(s + 2) === 45 && this.input.charCodeAt(s + 3) === 45) {
let a = this.skipLineComment(4);
a !== void 0 && (this.addComment(a), r?.push(a));
} else
break e;
} else
break e;
}
}
if (r?.length > 0) {
let n = this.state.pos, s = {
start: this.sourceToOffsetPos(t),
end: this.sourceToOffsetPos(n),
comments: r,
leadingNode: null,
trailingNode: null,
containingNode: null
};
this.state.commentStack.push(s);
}
}
finishToken(t, r) {
this.state.end = this.state.pos, this.state.endLoc = this.state.curPosition();
let n = this.state.type;
this.state.type = t, this.state.value = r, this.isLookahead || this.updateContext(n);
}
replaceToken(t) {
this.state.type = t, this.updateContext();
}
readToken_numberSign() {
if (this.state.pos === 0 && this.readToken_interpreter())
return;
let t = this.state.pos + 1, r = this.codePointAtPos(t);
if (r >= 48 && r <= 57)
throw this.raise(N.UnexpectedDigitAfterHash, this.state.curPosition());
if (r === 123 || r === 91 && this.hasPlugin("recordAndTuple")) {
if (this.expectPlugin("recordAndTuple"), this.getPluginOption("recordAndTuple", "syntaxType") === "bar")
throw this.raise(r === 123 ? N.RecordExpressionHashIncorrectStartSyntaxType : N.TupleExpressionHashIncorrectStartSyntaxType, this.
state.curPosition());
this.state.pos += 2, r === 123 ? this.finishToken(7) : this.finishToken(1);
} else Dn(r) ? (++this.state.pos, this.finishToken(139, this.readWord1(r))) : r === 92 ? (++this.state.pos, this.finishToken(139, this.
readWord1())) : this.finishOp(27, 1);
}
readToken_dot() {
let t = this.input.charCodeAt(this.state.pos + 1);
if (t >= 48 && t <= 57) {
this.readNumber(!0);
return;
}
t === 46 && this.input.charCodeAt(this.state.pos + 2) === 46 ? (this.state.pos += 3, this.finishToken(21)) : (++this.state.pos, this.finishToken(
16));
}
readToken_slash() {
this.input.charCodeAt(this.state.pos + 1) === 61 ? this.finishOp(31, 2) : this.finishOp(56, 1);
}
readToken_interpreter() {
if (this.state.pos !== 0 || this.length < 2) return !1;
let t = this.input.charCodeAt(this.state.pos + 1);
if (t !== 33) return !1;
let r = this.state.pos;
for (this.state.pos += 1; !Ii(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, s = this.input.charCodeAt(this.state.pos + 1);
t === 42 && s === 42 && (n++, s = this.input.charCodeAt(this.state.pos + 2), r = 57), s === 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(N.RecordExpressionBarIncorrectEndSyntaxType, this.state.curPosition());
this.state.pos += 2, this.finishToken(9);
return;
}
if (this.hasPlugin("recordAndTuple") && r === 93) {
if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar")
throw this.raise(N.TupleExpressionBarIncorrectEndSyntaxType, this.state.curPosition());
this.state.pos += 2, this.finishToken(4);
return;
}
}
if (r === 61) {
this.finishOp(30, 2);
return;
}
this.finishOp(t === 124 ? 43 : 45, 1);
}
readToken_caret() {
let t = this.input.charCodeAt(this.state.pos + 1);
t === 61 && !this.state.inType ? this.finishOp(32, 2) : t === 94 && this.hasPlugin(["pipelineOperator", {
proposal: "hack",
topicToken: "^^"
}]) ? (this.finishOp(37, 2), this.input.codePointAt(this.state.pos) === 94 && this.unexpected()) : this.finishOp(44, 1);
}
readToken_atSign() {
this.input.charCodeAt(this.state.pos + 1) === 64 && this.hasPlugin(["pipelineOperator", {
proposal: "hack",
topicToken: "@@"
}]) ? this.finishOp(38, 2) : this.finishOp(26, 1);
}
readToken_plus_min(t) {
let r = this.input.charCodeAt(this.state.pos + 1);
if (r === t) {
this.finishOp(34, 2);
return;
}
r === 61 ? this.finishOp(30, 2) : this.finishOp(53, 1);
}
readToken_lt() {
let {
pos: t
} = this.state, r = this.input.charCodeAt(t + 1);
if (r === 60) {
if (this.input.charCodeAt(t + 2) === 61) {
this.finishOp(30, 3);
return;
}
this.finishOp(51, 2);
return;
}
if (r === 61) {
this.finishOp(49, 2);
return;
}
this.finishOp(47, 1);
}
readToken_gt() {
let {
pos: t
} = this.state, r = this.input.charCodeAt(t + 1);
if (r === 62) {
let 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(N.TupleExpressionBarIncorrectStartSyntaxType, this.state.curPosition());
this.state.pos += 2, this.finishToken(2);
} else
++this.state.pos, this.finishToken(0);
return;
case 93:
++this.state.pos, this.finishToken(3);
return;
case 123:
if (this.hasPlugin("recordAndTuple") && this.input.charCodeAt(this.state.pos + 1) === 124) {
if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar")
throw this.raise(N.RecordExpressionBarIncorrectStartSyntaxType, this.state.curPosition());
this.state.pos += 2, this.finishToken(6);
} else
++this.state.pos, this.finishToken(5);
return;
case 125:
++this.state.pos, this.finishToken(8);
return;
case 58:
this.hasPlugin("functionBind") && this.input.charCodeAt(this.state.pos + 1) === 58 ? this.finishOp(15, 2) : (++this.state.pos, this.
finishToken(14));
return;
case 63:
this.readToken_question();
return;
case 96:
this.readTemplateToken();
return;
case 48: {
let r = this.input.charCodeAt(this.state.pos + 1);
if (r === 120 || r === 88) {
this.readRadixNumber(16);
return;
}
if (r === 111 || r === 79) {
this.readRadixNumber(8);
return;
}
if (r === 98 || r === 66) {
this.readRadixNumber(2);
return;
}
}
case 49:
case 50:
case 51:
case 52:
case 53:
case 54:
case 55:
case 56:
case 57:
this.readNumber(!1);
return;
case 34:
case 39:
this.readString(t);
return;
case 47:
this.readToken_slash();
return;
case 37:
case 42:
this.readToken_mult_modulo(t);
return;
case 124:
case 38:
this.readToken_pipe_amp(t);
return;
case 94:
this.readToken_caret();
return;
case 43:
case 45:
this.readToken_plus_min(t);
return;
case 60:
this.readToken_lt();
return;
case 62:
this.readToken_gt();
return;
case 61:
case 33:
this.readToken_eq_excl(t);
return;
case 126:
this.finishOp(36, 1);
return;
case 64:
this.readToken_atSign();
return;
case 35:
this.readToken_numberSign();
return;
case 92:
this.readWord();
return;
default:
if (Dn(t)) {
this.readWord(t);
return;
}
}
throw this.raise(N.InvalidOrUnexpectedToken, this.state.curPosition(), {
unexpected: String.fromCodePoint(t)
});
}
finishOp(t, r) {
let n = this.input.slice(this.state.pos, this.state.pos + r);
this.state.pos += r, this.finishToken(t, n);
}
readRegexp() {
let t = this.state.startLoc, r = this.state.start + 1, n, s, {
pos: a
} = this.state;
for (; ; ++a) {
if (a >= this.length)
throw this.raise(N.UnterminatedRegExp, or(t, 1));
let c = this.input.charCodeAt(a);
if (Ii(c))
throw this.raise(N.UnterminatedRegExp, or(t, 1));
if (n)
n = !1;
else {
if (c === 91)
s = !0;
else if (c === 93 && s)
s = !1;
else if (c === 47 && !s)
break;
n = c === 92;
}
}
let o = this.input.slice(r, a);
++a;
let l = "", u = /* @__PURE__ */ i(() => or(t, a + 2 - r), "nextPos");
for (; a < this.length; ) {
let c = this.codePointAtPos(a), p = String.fromCharCode(c);
if (BK.has(c))
c === 118 ? l.includes("u") && this.raise(N.IncompatibleRegExpUVFlags, u()) : c === 117 && l.includes("v") && this.raise(N.IncompatibleRegExpUVFlags,
u()), l.includes(p) && this.raise(N.DuplicateRegExpFlags, u());
else if (wi(c) || c === 92)
this.raise(N.MalformedRegExpFlags, u());
else
break;
++a, l += p;
}
this.state.pos = a, this.finishToken(138, {
pattern: o,
flags: l
});
}
readInt(t, r, n = !1, s = !0) {
let {
n: a,
pos: o
} = XT(this.input, this.state.pos, this.state.lineStart, this.state.curLine, t, r, n, s, this.errorHandlers_readInt, !1);
return this.state.pos = o, a;
}
readRadixNumber(t) {
let r = this.state.pos, n = this.state.curPosition(), s = !1;
this.state.pos += 2;
let a = this.readInt(t);
a == null && this.raise(N.InvalidDigit, or(n, 2), {
radix: t
});
let o = this.input.charCodeAt(this.state.pos);
if (o === 110)
++this.state.pos, s = !0;
else if (o === 109)
throw this.raise(N.InvalidDecimal, n);
if (Dn(this.codePointAtPos(this.state.pos)))
throw this.raise(N.NumberIdentifier, this.state.curPosition());
if (s) {
let l = this.input.slice(r, this.state.pos).replace(/[_n]/g, "");
this.finishToken(136, l);
return;
}
this.finishToken(135, a);
}
readNumber(t) {
let r = this.state.pos, n = this.state.curPosition(), s = !1, a = !1, o = !1, l = !1;
!t && this.readInt(10) === null && this.raise(N.InvalidNumber, this.state.curPosition());
let u = this.state.pos - r >= 2 && this.input.charCodeAt(r) === 48;
if (u) {
let y = this.input.slice(r, this.state.pos);
if (this.recordStrictModeErrors(N.StrictOctalLiteral, n), !this.state.strict) {
let E = y.indexOf("_");
E > 0 && this.raise(N.ZeroDigitNumericSeparator, or(n, E));
}
l = u && !/[89]/.test(y);
}
let c = this.input.charCodeAt(this.state.pos);
if (c === 46 && !l && (++this.state.pos, this.readInt(10), s = !0, c = this.input.charCodeAt(this.state.pos)), (c === 69 || c === 101) &&
!l && (c = this.input.charCodeAt(++this.state.pos), (c === 43 || c === 45) && ++this.state.pos, this.readInt(10) === null && this.raise(
N.InvalidOrMissingExponent, n), s = !0, o = !0, c = this.input.charCodeAt(this.state.pos)), c === 110 && ((s || u) && this.raise(N.InvalidBigIntLiteral,
n), ++this.state.pos, a = !0), c === 109) {
this.expectPlugin("decimal", this.state.curPosition()), (o || u) && this.raise(N.InvalidDecimal, n), ++this.state.pos;
var p = !0;
}
if (Dn(this.codePointAtPos(this.state.pos)))
throw this.raise(N.NumberIdentifier, this.state.curPosition());
let f = this.input.slice(r, this.state.pos).replace(/[_mn]/g, "");
if (a) {
this.finishToken(136, f);
return;
}
if (p) {
this.finishToken(137, f);
return;
}
let h = l ? parseInt(f, 8) : parseFloat(f);
this.finishToken(135, h);
}
readCodePoint(t) {
let {
code: r,
pos: n
} = zT(this.input, this.state.pos, this.state.lineStart, this.state.curLine, t, this.errorHandlers_readCodePoint);
return this.state.pos = n, r;
}
readString(t) {
let {
str: r,
pos: n,
curLine: s,
lineStart: a
} = kT(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 = s, this.finishToken(134, r);
}
readTemplateContinuation() {
this.match(8) || this.unexpected(null, 8), this.state.pos--, this.readTemplateToken();
}
readTemplateToken() {
let t = this.input[this.state.pos], {
str: r,
firstInvalidLoc: n,
pos: s,
curLine: a,
lineStart: o
} = kT("template", this.input, this.state.pos + 1, this.state.lineStart, this.state.curLine, this.errorHandlers_readStringContents_template);
this.state.pos = s + 1, this.state.lineStart = o, this.state.curLine = a, n && (this.state.firstInvalidTemplateEscapePos = new cn(n.curLine,
n.pos - n.lineStart, this.sourceToOffsetPos(n.pos))), this.input.codePointAt(s) === 96 ? this.finishToken(24, n ? null : t + r + "`") :
(this.state.pos++, this.finishToken(25, n ? null : t + r + "${"));
}
recordStrictModeErrors(t, r) {
let n = r.index;
this.state.strict && !this.state.strictErrors.has(n) ? this.raise(t, r) : this.state.strictErrors.set(n, [t, r]);
}
readWord1(t) {
this.state.containsEsc = !1;
let r = "", n = this.state.pos, s = this.state.pos;
for (t !== void 0 && (this.state.pos += t <= 65535 ? 1 : 2); this.state.pos < this.length; ) {
let a = this.codePointAtPos(this.state.pos);
if (wi(a))
this.state.pos += a <= 65535 ? 1 : 2;
else if (a === 92) {
this.state.containsEsc = !0, r += this.input.slice(s, this.state.pos);
let o = this.state.curPosition(), l = this.state.pos === n ? Dn : wi;
if (this.input.charCodeAt(++this.state.pos) !== 117) {
this.raise(N.MissingUnicodeEscape, this.state.curPosition()), s = this.state.pos - 1;
continue;
}
++this.state.pos;
let u = this.readCodePoint(!0);
u !== null && (l(u) || this.raise(N.EscapedCharNotAnIdentifier, o), r += String.fromCodePoint(u)), s = this.state.pos;
} else
break;
}
return r + this.input.slice(s, this.state.pos);
}
readWord(t) {
let r = this.readWord1(t), n = Ph.get(r);
n !== void 0 ? this.finishToken(n, ss(n)) : this.finishToken(132, r);
}
checkKeywordEscapes() {
let {
type: t
} = this.state;
_h(t) && this.state.containsEsc && this.raise(N.InvalidEscapedReservedWord, this.state.startLoc, {
reservedWord: ss(t)
});
}
raise(t, r, n = {}) {
let s = r instanceof cn ? r : r.loc.start, a = t(s, n);
if (!(this.optionFlags & 2048)) throw a;
return this.isLookahead || this.state.errors.push(a), a;
}
raiseOverwrite(t, r, n = {}) {
let s = r instanceof cn ? r : r.loc.start, a = s.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(s, n);
if (u.loc.index < a) break;
}
return this.raise(t, r, n);
}
updateContext(t) {
}
unexpected(t, r) {
throw this.raise(N.UnexpectedToken, t ?? this.state.startLoc, {
expected: r ? ss(r) : null
});
}
expectPlugin(t, r) {
if (this.hasPlugin(t))
return !0;
throw this.raise(N.MissingPlugin, r ?? this.state.startLoc, {
missingPlugin: [t]
});
}
expectOnePlugin(t) {
if (!t.some((r) => this.hasPlugin(r)))
throw this.raise(N.MissingOneOfPlugins, this.state.startLoc, {
missingPlugin: t
});
}
errorBuilder(t) {
return (r, n, s) => {
this.raise(t, Ua(r, n, s));
};
}
}, dh = class {
static {
i(this, "ClassScope");
}
constructor() {
this.privateNames = /* @__PURE__ */ new Set(), this.loneAccessors = /* @__PURE__ */ new Map(), this.undefinedPrivateNames = /* @__PURE__ */ new Map();
}
}, hh = class {
static {
i(this, "ClassScopeHandler");
}
constructor(t) {
this.parser = void 0, this.stack = [], this.undefinedPrivateNames = /* @__PURE__ */ new Map(), this.parser = t;
}
current() {
return this.stack[this.stack.length - 1];
}
enter() {
this.stack.push(new dh());
}
exit() {
let t = this.stack.pop(), r = this.current();
for (let [n, s] of Array.from(t.undefinedPrivateNames))
r ? r.undefinedPrivateNames.has(n) || r.undefinedPrivateNames.set(n, s) : this.parser.raise(N.InvalidPrivateFieldResolution, s, {
identifierName: n
});
}
declarePrivateName(t, r, n) {
let {
privateNames: s,
loneAccessors: a,
undefinedPrivateNames: o
} = this.current(), l = s.has(t);
if (r & 3) {
let u = l && a.get(t);
if (u) {
let c = u & 4, p = r & 4, f = u & 3, h = r & 3;
l = f === h || c !== p, l || a.delete(t);
} else l || a.set(t, r);
}
l && this.parser.raise(N.PrivateNameRedeclaration, n, {
identifierName: t
}), s.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(N.InvalidPrivateFieldResolution, r, {
identifierName: t
});
}
}, Ni = class {
static {
i(this, "ExpressionScope");
}
constructor(t = 0) {
this.type = t;
}
canBeArrowParameterDeclaration() {
return this.type === 2 || this.type === 1;
}
isCertainlyParameterDeclaration() {
return this.type === 3;
}
}, Ml = class extends Ni {
static {
i(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);
}
}, mh = class {
static {
i(this, "ExpressionScopeHandler");
}
constructor(t) {
this.parser = void 0, this.stack = [new Ni()], this.parser = t;
}
enter(t) {
this.stack.push(t);
}
exit() {
this.stack.pop();
}
recordParameterInitializerError(t, r) {
let n = r.loc.start, {
stack: s
} = this, a = s.length - 1, o = s[a];
for (; !o.isCertainlyParameterDeclaration(); ) {
if (o.canBeArrowParameterDeclaration())
o.recordDeclarationError(t, n);
else
return;
o = s[--a];
}
this.parser.raise(t, n);
}
recordArrowParameterBindingError(t, r) {
let {
stack: n
} = this, s = n[n.length - 1], a = r.loc.start;
if (s.isCertainlyParameterDeclaration())
this.parser.raise(t, a);
else if (s.canBeArrowParameterDeclaration())
s.recordDeclarationError(t, a);
else
return;
}
recordAsyncArrowParametersError(t) {
let {
stack: r
} = this, n = r.length - 1, s = r[n];
for (; s.canBeArrowParameterDeclaration(); )
s.type === 2 && s.recordDeclarationError(N.AwaitBindingIdentifier, t), s = r[--n];
}
validateAsPattern() {
let {
stack: t
} = this, r = t[t.length - 1];
r.canBeArrowParameterDeclaration() && r.iterateErrors(([n, s]) => {
this.parser.raise(n, s);
let a = t.length - 2, o = t[a];
for (; o.canBeArrowParameterDeclaration(); )
o.clearDeclarationError(s.index), o = t[--a];
});
}
};
function kK() {
return new Ni(3);
}
i(kK, "newParameterDeclarationScope");
function FK() {
return new Ml(1);
}
i(FK, "newArrowHeadScope");
function jK() {
return new Ml(2);
}
i(jK, "newAsyncArrowScope");
function QT() {
return new Ni();
}
i(QT, "newExpressionScope");
var yh = class {
static {
i(this, "ProductionParameterHandler");
}
constructor() {
this.stacks = [];
}
enter(t) {
this.stacks.push(t);
}
exit() {
this.stacks.pop();
}
currentFlags() {
return this.stacks[this.stacks.length - 1];
}
get hasAwait() {
return (this.currentFlags() & 2) > 0;
}
get hasYield() {
return (this.currentFlags() & 1) > 0;
}
get hasReturn() {
return (this.currentFlags() & 4) > 0;
}
get hasIn() {
return (this.currentFlags() & 8) > 0;
}
};
function Fl(e, t) {
return (e ? 2 : 0) | (t ? 1 : 0);
}
i(Fl, "functionFlags");
var gh = class extends fh {
static {
i(this, "UtilParser");
}
addExtra(t, r, n, s = !0) {
if (!t) return;
let {
extra: a
} = t;
a == null && (a = {}, t.extra = a), s ? a[r] = n : Object.defineProperty(a, r, {
enumerable: s,
value: n
});
}
isContextual(t) {
return this.state.type === t && !this.state.containsEsc;
}
isUnparsedContextual(t, r) {
let n = t + r.length;
if (this.input.slice(t, n) === r) {
let s = this.input.charCodeAt(n);
return !(wi(s) || (s & 64512) === 55296);
}
return !1;
}
isLookaheadContextual(t) {
let r = this.nextTokenStart();
return this.isUnparsedContextual(r, t);
}
eatContextual(t) {
return this.isContextual(t) ? (this.next(), !0) : !1;
}
expectContextual(t, r) {
if (!this.eatContextual(t)) {
if (r != null)
throw this.raise(r, this.state.startLoc);
this.unexpected(null, t);
}
}
canInsertSemicolon() {
return this.match(140) || this.match(8) || this.hasPrecedingLineBreak();
}
hasPrecedingLineBreak() {
return NT(this.input, this.offsetToSourcePos(this.state.lastTokEndLoc.index), this.state.start);
}
hasFollowingLineBreak() {
return NT(this.input, this.state.end, this.nextTokenStart());
}
isLineTerminator() {
return this.eat(13) || this.canInsertSemicolon();
}
semicolon(t = !0) {
(t ? this.isLineTerminator() : this.eat(13)) || this.raise(N.MissingSemicolon, this.state.lastTokEndLoc);
}
expect(t, r) {
this.eat(t) || this.unexpected(r, t);
}
tryParse(t, r = this.state.clone()) {
let n = {
node: null
};
try {
let s = 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: s,
error: a.errors[r.errors.length],
thrown: !1,
aborted: !1,
failState: a
};
}
return {
node: s,
error: null,
thrown: !1,
aborted: !1,
failState: null
};
} catch (s) {
let a = this.state;
if (this.state = r, s instanceof SyntaxError)
return {
node: null,
error: s,
thrown: !0,
aborted: !1,
failState: a
};
if (s === n)
return {
node: n.node,
error: null,
thrown: !1,
aborted: !0,
failState: a
};
throw s;
}
}
checkExpressionErrors(t, r) {
if (!t) return !1;
let {
shorthandAssignLoc: n,
doubleProtoLoc: s,
privateKeyLoc: a,
optionalParametersLoc: o
} = t, l = !!n || !!s || !!o || !!a;
if (!r)
return l;
n != null && this.raise(N.InvalidCoverInitializedName, n), s != null && this.raise(N.DuplicateProto, s), a != null && this.raise(N.UnexpectedPrivateField,
a), o != null && this.unexpected(o);
}
isLiteralPropertyName() {
return VT(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 s = 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 yh();
let u = this.classScope;
this.classScope = new hh(this);
let c = this.expressionScope;
return this.expressionScope = new mh(this), () => {
this.state.labels = r, this.exportedIdentifiers = n, this.inModule = s, this.scope = a, this.prodParam = l, this.classScope = u, this.
expressionScope = c;
};
}
enterInitialScopes() {
let t = 0;
this.inModule && (t |= 2), this.optionFlags & 32 && (t |= 1), this.scope.enter(1), this.prodParam.enter(t);
}
checkDestructuringPrivate(t) {
let {
privateKeyLoc: r
} = t;
r !== null && this.expectPlugin("destructuringPrivate", r);
}
}, _i = class {
static {
i(this, "ExpressionErrors");
}
constructor() {
this.shorthandAssignLoc = null, this.doubleProtoLoc = null, this.privateKeyLoc = null, this.optionalParametersLoc = null;
}
}, Bi = class {
static {
i(this, "Node");
}
constructor(t, r, n) {
this.type = "", this.start = r, this.end = 0, this.loc = new Oi(n), t?.optionFlags & 128 && (this.range = [r, 0]), t != null && t.filename &&
(this.loc.filename = t.filename);
}
}, Bh = Bi.prototype;
Bh.__clone = function() {
let e = new Bi(void 0, this.start, this.loc.start), t = Object.keys(this);
for (let r = 0, n = t.length; r < n; r++) {
let s = t[r];
s !== "leadingComments" && s !== "trailingComments" && s !== "innerComments" && (e[s] = this[s]);
}
return e;
};
function LK(e) {
return In(e);
}
i(LK, "clonePlaceholder");
function In(e) {
let {
type: t,
start: r,
end: n,
loc: s,
range: a,
extra: o,
name: l
} = e, u = Object.create(Bh);
return u.type = t, u.start = r, u.end = n, u.loc = s, u.range = a, u.extra = o, u.name = l, t === "Placeholder" && (u.expectedNode = e.expectedNode),
u;
}
i(In, "cloneIdentifier");
function MK(e) {
let {
type: t,
start: r,
end: n,
loc: s,
range: a,
extra: o
} = e;
if (t === "Placeholder")
return LK(e);
let l = Object.create(Bh);
return l.type = t, l.start = r, l.end = n, l.loc = s, l.range = a, e.raw !== void 0 ? l.raw = e.raw : l.extra = o, l.value = e.value, l;
}
i(MK, "cloneStringLiteral");
var bh = class extends gh {
static {
i(this, "NodeUtils");
}
startNode() {
let t = this.state.startLoc;
return new Bi(this, t.index, t);
}
startNodeAt(t) {
return new Bi(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.optionFlags & 128 && (t.range[1] = n.index), this.optionFlags & 4096 && this.processComment(
t), t;
}
resetStartLocation(t, r) {
t.start = r.index, t.loc.start = r, this.optionFlags & 128 && (t.range[0] = r.index);
}
resetEndLocation(t, r = this.state.lastTokEndLoc) {
t.end = r.index, t.loc.end = r, this.optionFlags & 128 && (t.range[1] = r.index);
}
resetStartLocationFromNode(t, r) {
this.resetStartLocation(t, r.loc.start);
}
}, RK = /* @__PURE__ */ new Set(["_", "any", "bool", "boolean", "empty", "extends", "false", "interface", "mixed", "null", "number", "stat\
ic", "string", "true", "typeof", "void"]), Ce = wn`flow`({
AmbiguousConditionalArrow: "Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",
AmbiguousDeclareModuleKind: "Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since \
they are either an ES module or they are a CommonJS module.",
AssignReservedType: /* @__PURE__ */ i(({
reservedType: e
}) => `Cannot overwrite reserved type ${e}.`, "AssignReservedType"),
DeclareClassElement: "The `declare` modifier can only appear on class fields.",
DeclareClassFieldInitializer: "Initializers are not allowed in fields with the `declare` modifier.",
DuplicateDeclareModuleExports: "Duplicate `declare module.exports` statement.",
EnumBooleanMemberNotInitialized: /* @__PURE__ */ i(({
memberName: e,
enumName: t
}) => `Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`, "EnumBooleanMem\
berNotInitialized"),
EnumDuplicateMemberName: /* @__PURE__ */ i(({
memberName: e,
enumName: t
}) => `Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`, "EnumDuplicateMemberN\
ame"),
EnumInconsistentMemberValues: /* @__PURE__ */ i(({
enumName: e
}) => `Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, num\
bers, or strings) for all member initializers.`, "EnumInconsistentMemberValues"),
EnumInvalidExplicitType: /* @__PURE__ */ i(({
invalidEnumType: e,
enumName: t
}) => `Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`, "EnumInvalidEx\
plicitType"),
EnumInvalidExplicitTypeUnknownSupplied: /* @__PURE__ */ i(({
enumName: e
}) => `Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`, "EnumInvalidEx\
plicitTypeUnknownSupplied"),
EnumInvalidMemberInitializerPrimaryType: /* @__PURE__ */ i(({
enumName: e,
memberName: t,
explicitType: r
}) => `Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`, "EnumInvalidMemberInitializerPrimar\
yType"),
EnumInvalidMemberInitializerSymbolType: /* @__PURE__ */ i(({
enumName: e,
memberName: t
}) => `Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`, "EnumInvalidMemberInitializerSymbolType"),
EnumInvalidMemberInitializerUnknownType: /* @__PURE__ */ i(({
enumName: e,
memberName: t
}) => `The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`, "EnumInv\
alidMemberInitializerUnknownType"),
EnumInvalidMemberName: /* @__PURE__ */ i(({
enumName: e,
memberName: t,
suggestion: r
}) => `Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\
\`.`, "EnumInvalidMemberName"),
EnumNumberMemberNotInitialized: /* @__PURE__ */ i(({
enumName: e,
memberName: t
}) => `Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`, "EnumNumberMemberNotInitialized"),
EnumStringMemberInconsistentlyInitialized: /* @__PURE__ */ i(({
enumName: e
}) => `String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`, "EnumStringMemb\
erInconsistentlyInitialized"),
GetterMayNotHaveThisParam: "A getter cannot have a `this` parameter.",
ImportReflectionHasImportType: "An `import module` declaration can not use `type` or `typeof` keyword.",
ImportTypeShorthandOnlyInPureImport: "The `type` and `typeof` keywords on named imports can only be used on regular `import` statements.\
It cannot be used with `import type` or `import typeof` statements.",
InexactInsideExact: "Explicit inexact syntax cannot appear inside an explicit exact object type.",
InexactInsideNonObject: "Explicit inexact syntax cannot appear in class or interface definitions.",
InexactVariance: "Explicit inexact syntax cannot have variance.",
InvalidNonTypeImportInDeclareModule: "Imports within a `declare module` body must always be `import type` or `import typeof`.",
MissingTypeParamDefault: "Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",
NestedDeclareModule: "`declare module` cannot be used inside another `declare module`.",
NestedFlowComment: "Cannot have a flow comment inside another flow comment.",
PatternIsOptional: Object.assign({
message: "A binding pattern parameter cannot be optional in an implementation signature."
}, {
reasonCode: "OptionalBindingPattern"
}),
SetterMayNotHaveThisParam: "A setter cannot have a `this` parameter.",
SpreadVariance: "Spread properties cannot have variance.",
ThisParamAnnotationRequired: "A type annotation is required for the `this` parameter.",
ThisParamBannedInConstructor: "Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",
ThisParamMayNotBeOptional: "The `this` parameter cannot be optional.",
ThisParamMustBeFirst: "The `this` parameter must be the first function parameter.",
ThisParamNoDefault: "The `this` parameter may not have a default value.",
TypeBeforeInitializer: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`\
.",
TypeCastInPattern: "The type cast expression is expected to be wrapped with parenthesis.",
UnexpectedExplicitInexactInObject: "Explicit inexact syntax must appear at the end of an inexact object.",
UnexpectedReservedType: /* @__PURE__ */ i(({
reservedType: e
}) => `Unexpected reserved type ${e}.`, "UnexpectedReservedType"),
UnexpectedReservedUnderscore: "`_` is only allowed as a type argument to call or new.",
UnexpectedSpaceBetweenModuloChecks: "Spaces between `%` and `checks` are not allowed here.",
UnexpectedSpreadType: "Spread operator cannot appear in class or interface definitions.",
UnexpectedSubtractionOperand: 'Unexpected token, expected "number" or "bigint".',
UnexpectedTokenAfterTypeParameter: "Expected an arrow function after this type parameter declaration.",
UnexpectedTypeParameterBeforeAsyncArrowFunction: "Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}\
`, use `async <T>() => {}`.",
UnsupportedDeclareExportKind: /* @__PURE__ */ i(({
unsupportedExportKind: e,
suggestion: t
}) => `\`declare export ${e}\` is not supported. Use \`${t}\` instead.`, "UnsupportedDeclareExportKind"),
UnsupportedStatementInDeclareModule: "Only declares and type imports are allowed inside declare module.",
UnterminatedFlowComment: "Unterminated flow-comment."
});
function qK(e) {
return e.type === "DeclareExportAllDeclaration" || e.type === "DeclareExportDeclaration" && (!e.declaration || e.declaration.type !== "T\
ypeAlias" && e.declaration.type !== "InterfaceDeclaration");
}
i(qK, "isEsModuleType");
function FT(e) {
return e.importKind === "type" || e.importKind === "typeof";
}
i(FT, "hasTypeImportKind");
var UK = {
const: "declare export var",
let: "declare export var",
type: "export type",
interface: "export interface"
};
function VK(e, t) {
let r = [], n = [];
for (let s = 0; s < e.length; s++)
(t(e[s], s, e) ? r : n).push(e[s]);
return [r, n];
}
i(VK, "partition");
var $K = /\*?\s*@((?:no)?flow)\b/, WK = /* @__PURE__ */ i((e) => class extends e {
static {
i(this, "FlowParserMixin");
}
constructor(...r) {
super(...r), this.flowPragma = void 0;
}
getScopeHandler() {
return oh;
}
shouldParseTypes() {
return this.getPluginOption("flow", "all") || this.flowPragma === "flow";
}
finishToken(r, n) {
r !== 134 && r !== 13 && r !== 28 && this.flowPragma === void 0 && (this.flowPragma = null), super.finishToken(r, n);
}
addComment(r) {
if (this.flowPragma === void 0) {
let n = $K.exec(r.value);
if (n) if (n[1] === "flow")
this.flowPragma = "flow";
else if (n[1] === "noflow")
this.flowPragma = "noflow";
else
throw new Error("Unexpected flow pragma");
}
super.addComment(r);
}
flowParseTypeInitialiser(r) {
let n = this.state.inType;
this.state.inType = !0, this.expect(r || 14);
let s = this.flowParseType();
return this.state.inType = n, s;
}
flowParsePredicate() {
let r = this.startNode(), n = this.state.startLoc;
return this.next(), this.expectContextual(110), this.state.lastTokStartLoc.index > n.index + 1 && this.raise(Ce.UnexpectedSpaceBetweenModuloChecks,
n), this.eat(10) ? (r.value = super.parseExpression(), this.expect(11), this.finishNode(r, "DeclaredPredicate")) : this.finishNode(r, "\
InferredPredicate");
}
flowParseTypeAndPredicateInitialiser() {
let r = this.state.inType;
this.state.inType = !0, this.expect(14);
let n = null, s = null;
return this.match(54) ? (this.state.inType = r, s = this.flowParsePredicate()) : (n = this.flowParseType(), this.state.inType = r, this.
match(54) && (s = this.flowParsePredicate())), [n, s];
}
flowParseDeclareClass(r) {
return this.next(), this.flowParseInterfaceish(r, !0), this.finishNode(r, "DeclareClass");
}
flowParseDeclareFunction(r) {
this.next();
let n = r.id = this.parseIdentifier(), s = this.startNode(), a = this.startNode();
this.match(47) ? s.typeParameters = this.flowParseTypeParameterDeclaration() : s.typeParameters = null, this.expect(10);
let o = this.flowParseFunctionTypeParams();
return s.params = o.params, s.rest = o.rest, s.this = o._this, this.expect(11), [s.returnType, r.predicate] = this.flowParseTypeAndPredicateInitialiser(),
a.typeAnnotation = this.finishNode(s, "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(Ce.NestedDeclareModule, this.state.lastTokStartLoc),
this.flowParseDeclareModule(r));
if (this.isContextual(130))
return this.flowParseDeclareTypeAlias(r);
if (this.isContextual(131))
return this.flowParseDeclareOpaqueType(r);
if (this.isContextual(129))
return this.flowParseDeclareInterface(r);
if (this.match(82))
return this.flowParseDeclareExportDeclaration(r, n);
this.unexpected();
}
flowParseDeclareVariable(r) {
return this.next(), r.id = this.flowParseTypeAnnotatableIdentifier(!0), this.scope.declareName(r.id.name, 5, r.id.loc.start), this.semicolon(),
this.finishNode(r, "DeclareVariable");
}
flowParseDeclareModule(r) {
this.scope.enter(0), this.match(134) ? r.id = super.parseExprAtom() : r.id = this.parseIdentifier();
let n = r.body = this.startNode(), s = n.body = [];
for (this.expect(5); !this.match(8); ) {
let l = this.startNode();
this.match(83) ? (this.next(), !this.isContextual(130) && !this.match(87) && this.raise(Ce.InvalidNonTypeImportInDeclareModule, this.
state.lastTokStartLoc), super.parseImport(l)) : (this.expectContextual(125, Ce.UnsupportedStatementInDeclareModule), l = this.flowParseDeclare(
l, !0)), s.push(l);
}
this.scope.exit(), this.expect(8), this.finishNode(n, "BlockStatement");
let a = null, o = !1;
return s.forEach((l) => {
qK(l) ? (a === "CommonJS" && this.raise(Ce.AmbiguousDeclareModuleKind, l), a = "ES") : l.type === "DeclareModuleExports" && (o && this.
raise(Ce.DuplicateDeclareModuleExports, l), a === "ES" && this.raise(Ce.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 s = this.state.value;
throw this.raise(Ce.UnsupportedDeclareExportKind, this.state.startLoc, {
unsupportedExportKind: s,
suggestion: UK[s]
});
}
if (this.match(74) || this.match(68) || this.match(80) || this.isContextual(131))
return r.declaration = this.flowParseDeclare(this.startNode()), r.default = !1, this.finishNode(r, "DeclareExportDeclaration");
if (this.match(55) || this.match(5) || this.isContextual(129) || this.isContextual(130) || this.isContextual(131))
return r = this.parseExport(r, null), r.type === "ExportNamedDeclaration" && (r.type = "ExportDeclaration", r.default = !1, delete r.
exportKind), r.type = "Declare" + r.type, r;
this.unexpected();
}
flowParseDeclareModuleExports(r) {
return this.next(), this.expectContextual(111), r.typeAnnotation = this.flowParseTypeAnnotation(), this.semicolon(), this.finishNode(r,
"DeclareModuleExports");
}
flowParseDeclareTypeAlias(r) {
this.next();
let n = this.flowParseTypeAlias(r);
return n.type = "DeclareTypeAlias", n;
}
flowParseDeclareOpaqueType(r) {
this.next();
let n = this.flowParseOpaqueType(r, !0);
return n.type = "DeclareOpaqueType", n;
}
flowParseDeclareInterface(r) {
return this.next(), this.flowParseInterfaceish(r, !1), this.finishNode(r, "DeclareInterface");
}
flowParseInterfaceish(r, n) {
if (r.id = this.flowParseRestrictedIdentifier(!n, !0), this.scope.declareName(r.id.name, n ? 17 : 8201, r.id.loc.start), this.match(47) ?
r.typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.extends = [], this.eat(81))
do
r.extends.push(this.flowParseInterfaceExtends());
while (!n && this.eat(12));
if (n) {
if (r.implements = [], r.mixins = [], this.eatContextual(117))
do
r.mixins.push(this.flowParseInterfaceExtends());
while (this.eat(12));
if (this.eatContextual(113))
do
r.implements.push(this.flowParseInterfaceExtends());
while (this.eat(12));
}
r.body = this.flowParseObjectType({
allowStatic: n,
allowExact: !1,
allowSpread: !1,
allowProto: n,
allowInexact: !1
});
}
flowParseInterfaceExtends() {
let r = this.startNode();
return r.id = this.flowParseQualifiedTypeIdentifier(), this.match(47) ? r.typeParameters = this.flowParseTypeParameterInstantiation() :
r.typeParameters = null, this.finishNode(r, "InterfaceExtends");
}
flowParseInterface(r) {
return this.flowParseInterfaceish(r, !1), this.finishNode(r, "InterfaceDeclaration");
}
checkNotUnderscore(r) {
r === "_" && this.raise(Ce.UnexpectedReservedUnderscore, this.state.startLoc);
}
checkReservedType(r, n, s) {
RK.has(r) && this.raise(s ? Ce.AssignReservedType : Ce.UnexpectedReservedType, n, {
reservedType: r
});
}
flowParseRestrictedIdentifier(r, n) {
return this.checkReservedType(this.state.value, this.state.startLoc, n), this.parseIdentifier(r);
}
flowParseTypeAlias(r) {
return r.id = this.flowParseRestrictedIdentifier(!1, !0), this.scope.declareName(r.id.name, 8201, r.id.loc.start), this.match(47) ? r.
typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.right = this.flowParseTypeInitialiser(29), this.
semicolon(), this.finishNode(r, "TypeAlias");
}
flowParseOpaqueType(r, n) {
return this.expectContextual(130), r.id = this.flowParseRestrictedIdentifier(!0, !0), this.scope.declareName(r.id.name, 8201, r.id.loc.
start), this.match(47) ? r.typeParameters = this.flowParseTypeParameterDeclaration() : r.typeParameters = null, r.supertype = null, this.
match(14) && (r.supertype = this.flowParseTypeInitialiser(14)), r.impltype = null, n || (r.impltype = this.flowParseTypeInitialiser(29)),
this.semicolon(), this.finishNode(r, "OpaqueType");
}
flowParseTypeParameter(r = !1) {
let n = this.state.startLoc, s = this.startNode(), a = this.flowParseVariance(), o = this.flowParseTypeAnnotatableIdentifier();
return s.name = o.name, s.variance = a, s.bound = o.typeAnnotation, this.match(29) ? (this.eat(29), s.default = this.flowParseType()) :
r && this.raise(Ce.MissingTypeParamDefault, n), this.finishNode(s, "TypeParameter");
}
flowParseTypeParameterDeclaration() {
let r = this.state.inType, n = this.startNode();
n.params = [], this.state.inType = !0, this.match(47) || this.match(143) ? this.next() : this.unexpected();
let s = !1;
do {
let a = this.flowParseTypeParameter(s);
n.params.push(a), a.default && (s = !0), this.match(48) || this.expect(12);
} while (!this.match(48));
return this.expect(48), this.state.inType = r, this.finishNode(n, "TypeParameterDeclaration");
}
flowInTopLevelContext(r) {
if (this.curContext() !== Ze.brace) {
let n = this.state.context;
this.state.context = [n[0]];
try {
return r();
} finally {
this.state.context = n;
}
} else
return r();
}
flowParseTypeParameterInstantiationInExpression() {
if (this.reScan_lt() === 47)
return this.flowParseTypeParameterInstantiation();
}
flowParseTypeParameterInstantiation() {
let r = this.startNode(), n = this.state.inType;
return this.state.inType = !0, r.params = [], this.flowInTopLevelContext(() => {
this.expect(47);
let s = this.state.noAnonFunctionType;
for (this.state.noAnonFunctionType = !1; !this.match(48); )
r.params.push(this.flowParseType()), this.match(48) || this.expect(12);
this.state.noAnonFunctionType = s;
}), this.state.inType = n, !this.state.inType && this.curContext() === Ze.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode(
r, "TypeParameterInstantiation");
}
flowParseTypeParameterInstantiationCallOrNew() {
if (this.reScan_lt() !== 47) return;
let r = this.startNode(), n = this.state.inType;
for (r.params = [], this.state.inType = !0, this.expect(47); !this.match(48); )
r.params.push(this.flowParseTypeOrImplicitInstantiation()), this.match(48) || this.expect(12);
return this.expect(48), this.state.inType = n, this.finishNode(r, "TypeParameterInstantiation");
}
flowParseInterfaceType() {
let r = this.startNode();
if (this.expectContextual(129), r.extends = [], this.eat(81))
do
r.extends.push(this.flowParseInterfaceExtends());
while (this.eat(12));
return r.body = this.flowParseObjectType({
allowStatic: !1,
allowExact: !1,
allowSpread: !1,
allowProto: !1,
allowInexact: !1
}), this.finishNode(r, "InterfaceTypeAnnotation");
}
flowParseObjectPropertyKey() {
return this.match(135) || this.match(134) ? super.parseExprAtom() : this.parseIdentifier(!0);
}
flowParseObjectTypeIndexer(r, n, s) {
return r.static = n, this.lookahead().type === 14 ? (r.id = this.flowParseObjectPropertyKey(), r.key = this.flowParseTypeInitialiser()) :
(r.id = null, r.key = this.flowParseType()), this.expect(3), r.value = this.flowParseTypeInitialiser(), r.variance = s, this.finishNode(
r, "ObjectTypeIndexer");
}
flowParseObjectTypeInternalSlot(r, n) {
return r.static = n, r.id = this.flowParseObjectPropertyKey(), this.expect(3), this.expect(3), this.match(47) || this.match(10) ? (r.method =
!0, r.optional = !1, r.value = this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))) : (r.method = !1, this.eat(17) && (r.
optional = !0), r.value = this.flowParseTypeInitialiser()), this.finishNode(r, "ObjectTypeInternalSlot");
}
flowParseObjectTypeMethodish(r) {
for (r.params = [], r.rest = null, r.typeParameters = null, r.this = null, this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration()),
this.expect(10), this.match(78) && (r.this = this.flowParseFunctionTypeParam(!0), r.this.name = null, this.match(11) || this.expect(12)); !this.
match(11) && !this.match(21); )
r.params.push(this.flowParseFunctionTypeParam(!1)), this.match(11) || this.expect(12);
return this.eat(21) && (r.rest = this.flowParseFunctionTypeParam(!1)), this.expect(11), r.returnType = this.flowParseTypeInitialiser(),
this.finishNode(r, "FunctionTypeAnnotation");
}
flowParseObjectTypeCallProperty(r, n) {
let s = this.startNode();
return r.static = n, r.value = this.flowParseObjectTypeMethodish(s), this.finishNode(r, "ObjectTypeCallProperty");
}
flowParseObjectType({
allowStatic: r,
allowExact: n,
allowSpread: s,
allowProto: a,
allowInexact: o
}) {
let l = this.state.inType;
this.state.inType = !0;
let u = this.startNode();
u.callProperties = [], u.properties = [], u.indexers = [], u.internalSlots = [];
let c, p, f = !1;
for (n && this.match(6) ? (this.expect(6), c = 9, p = !0) : (this.expect(5), c = 8, p = !1), u.exact = p; !this.match(c); ) {
let y = !1, E = null, d = null, g = this.startNode();
if (a && this.isContextual(118)) {
let _ = this.lookahead();
_.type !== 14 && _.type !== 17 && (this.next(), E = this.state.startLoc, r = !1);
}
if (r && this.isContextual(106)) {
let _ = this.lookahead();
_.type !== 14 && _.type !== 17 && (this.next(), y = !0);
}
let C = this.flowParseVariance();
if (this.eat(0))
E != null && this.unexpected(E), this.eat(0) ? (C && this.unexpected(C.loc.start), u.internalSlots.push(this.flowParseObjectTypeInternalSlot(
g, y))) : u.indexers.push(this.flowParseObjectTypeIndexer(g, y, C));
else if (this.match(10) || this.match(47))
E != null && this.unexpected(E), C && this.unexpected(C.loc.start), u.callProperties.push(this.flowParseObjectTypeCallProperty(g, y));
else {
let _ = "init";
if (this.isContextual(99) || this.isContextual(104)) {
let B = this.lookahead();
VT(B.type) && (_ = this.state.value, this.next());
}
let O = this.flowParseObjectTypeProperty(g, y, E, C, _, s, o ?? !p);
O === null ? (f = !0, d = this.state.lastTokStartLoc) : u.properties.push(O);
}
this.flowObjectTypeSemicolon(), d && !this.match(8) && !this.match(9) && this.raise(Ce.UnexpectedExplicitInexactInObject, d);
}
this.expect(c), s && (u.inexact = f);
let h = this.finishNode(u, "ObjectTypeAnnotation");
return this.state.inType = l, h;
}
flowParseObjectTypeProperty(r, n, s, 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(Ce.InexactInsideExact, this.state.lastTokStartLoc) :
this.raise(Ce.InexactInsideNonObject, this.state.lastTokStartLoc), a && this.raise(Ce.InexactVariance, a), null) : (l || this.raise(
Ce.UnexpectedSpreadType, this.state.lastTokStartLoc), s != null && this.unexpected(s), a && this.raise(Ce.SpreadVariance, a), r.argument =
this.flowParseType(), this.finishNode(r, "ObjectTypeSpreadProperty"));
{
r.key = this.flowParseObjectPropertyKey(), r.static = n, r.proto = s != null, r.kind = o;
let c = !1;
return this.match(47) || this.match(10) ? (r.method = !0, s != null && this.unexpected(s), 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(Ce.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, s = r.value.params.length + (r.value.rest ? 1 : 0);
r.value.this && this.raise(r.kind === "get" ? Ce.GetterMayNotHaveThisParam : Ce.SetterMayNotHaveThisParam, r.value.this), s !== n && this.
raise(r.kind === "get" ? N.BadGetterArity : N.BadSetterArity, r), r.kind === "set" && r.value.rest && this.raise(N.BadSetterRestParameter,
r);
}
flowObjectTypeSemicolon() {
!this.eat(13) && !this.eat(12) && !this.match(8) && !this.match(9) && this.unexpected();
}
flowParseQualifiedTypeIdentifier(r, n) {
r ?? (r = this.state.startLoc);
let s = n || this.flowParseRestrictedIdentifier(!0);
for (; this.eat(16); ) {
let a = this.startNodeAt(r);
a.qualification = s, a.id = this.flowParseRestrictedIdentifier(!0), s = this.finishNode(a, "QualifiedTypeIdentifier");
}
return s;
}
flowParseGenericType(r, n) {
let s = this.startNodeAt(r);
return s.typeParameters = null, s.id = this.flowParseQualifiedTypeIdentifier(r, n), this.match(47) && (s.typeParameters = this.flowParseTypeParameterInstantiation()),
this.finishNode(s, "GenericTypeAnnotation");
}
flowParseTypeofType() {
let r = this.startNode();
return this.expect(87), r.argument = this.flowParsePrimaryType(), this.finishNode(r, "TypeofTypeAnnotation");
}
flowParseTupleType() {
let r = this.startNode();
for (r.types = [], this.expect(0); this.state.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, s = !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(Ce.ThisParamMustBeFirst, o), n = this.parseIdentifier(u), this.eat(17) &&
(s = !0, u && this.raise(Ce.ThisParamMayNotBeOptional, o)), a = this.flowParseTypeInitialiser()) : a = this.flowParseType(), o.name = n,
o.optional = s, 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, s = null;
for (this.match(78) && (s = this.flowParseFunctionTypeParam(!0), s.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: s
};
}
flowIdentToTypeAnnotation(r, n, s) {
switch (s.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(s.name), this.flowParseGenericType(r, s);
}
}
flowParsePrimaryType() {
let r = this.state.startLoc, n = this.startNode(), s, 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), s = this.flowParseFunctionTypeParams(), u.params =
s.params, u.rest = s.rest, u.this = s._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 (et(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 ? s = this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(a)]) : s = this.flowParseFunctionTypeParams(),
u.params = s.params, u.rest = s.rest, u.this = s._this, this.expect(11), this.expect(19), u.returnType = this.flowParseType(), u.typeParameters =
null, this.finishNode(u, "FunctionTypeAnnotation");
}
case 134:
return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation");
case 85:
case 86:
return n.value = this.match(85), this.next(), this.finishNode(n, "BooleanLiteralTypeAnnotation");
case 53:
if (this.state.value === "-") {
if (this.next(), this.match(135))
return this.parseLiteralAtNode(-this.state.value, "NumberLiteralTypeAnnotation", n);
if (this.match(136))
return this.parseLiteralAtNode(-this.state.value, "BigIntLiteralTypeAnnotation", n);
throw this.raise(Ce.UnexpectedSubtractionOperand, this.state.startLoc);
}
this.unexpected();
return;
case 135:
return this.parseLiteral(this.state.value, "NumberLiteralTypeAnnotation");
case 136:
return this.parseLiteral(this.state.value, "BigIntLiteralTypeAnnotation");
case 88:
return this.next(), this.finishNode(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 (_h(this.state.type)) {
let u = ss(this.state.type);
return this.next(), super.createIdentifier(n, u);
} else if (et(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(), s = !1;
for (; (this.match(0) || this.match(18)) && !this.canInsertSemicolon(); ) {
let a = this.startNodeAt(r), o = this.eat(18);
s = s || 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), s ? (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, s = !1) {
if (n) {
this.forwardNoArrowParamsConversionAt(r, () => super.parseFunctionBody(r, !0, s));
return;
}
super.parseFunctionBody(r, !1, s);
}
parseFunctionBodyAndFinish(r, n, s = !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, s);
}
parseStatementLike(r) {
if (this.state.strict && this.isContextual(129)) {
let s = this.lookahead();
if (Kr(s.type)) {
let a = this.startNode();
return this.next(), this.flowParseInterface(a);
}
} else if (this.isContextual(126)) {
let s = this.startNode();
return this.next(), this.flowParseEnumDeclaration(s);
}
let n = super.parseStatementLike(r);
return this.flowPragma === void 0 && !this.isValidDirective(n) && (this.flowPragma = null), n;
}
parseExpressionStatement(r, n, s) {
if (n.type === "Identifier") {
if (n.name === "declare") {
if (this.match(80) || et(this.state.type) || this.match(68) || this.match(74) || this.match(82))
return this.flowParseDeclare(r);
} else if (et(this.state.type)) {
if (n.name === "interface")
return this.flowParseInterface(r);
if (n.name === "type")
return this.flowParseTypeAlias(r);
if (n.name === "opaque")
return this.flowParseOpaqueType(r, !1);
}
}
return super.parseExpressionStatement(r, n, s);
}
shouldParseExportDeclaration() {
let {
type: r
} = this.state;
return r === 126 || OT(r) ? !this.state.containsEsc : super.shouldParseExportDeclaration();
}
isExportDefaultSpecifier() {
let {
type: r
} = this.state;
return r === 126 || OT(r) ? this.state.containsEsc : super.isExportDefaultSpecifier();
}
parseExportDefaultExpression() {
if (this.isContextual(126)) {
let r = this.startNode();
return this.next(), this.flowParseEnumDeclaration(r);
}
return super.parseExportDefaultExpression();
}
parseConditional(r, n, s) {
if (!this.match(17)) return r;
if (this.state.maybeInArrowParameters) {
let h = this.lookaheadCharCode();
if (h === 44 || h === 61 || h === 58 || h === 41)
return this.setOptionalParametersError(s), r;
}
this.expect(17);
let a = this.state.clone(), o = this.state.noArrowAt, l = this.startNodeAt(n), {
consequent: u,
failed: c
} = this.tryParseConditionalConsequent(), [p, f] = this.getArrowLikeExpressions(u);
if (c || f.length > 0) {
let h = [...o];
if (f.length > 0) {
this.state = a, this.state.noArrowAt = h;
for (let y = 0; y < f.length; y++)
h.push(f[y].start);
({
consequent: u,
failed: c
} = this.tryParseConditionalConsequent()), [p, f] = this.getArrowLikeExpressions(u);
}
c && p.length > 1 && this.raise(Ce.AmbiguousConditionalArrow, a.startLoc), c && p.length === 1 && (this.state = a, h.push(p[0].start),
this.state.noArrowAt = h, {
consequent: u,
failed: c
} = this.tryParseConditionalConsequent());
}
return this.getArrowLikeExpressions(u, !0), this.state.noArrowAt = o, this.expect(14), l.test = r, l.consequent = u, l.alternate = this.
forwardNoArrowParamsConversionAt(l, () => this.parseMaybeAssign(void 0, void 0)), this.finishNode(l, "ConditionalExpression");
}
tryParseConditionalConsequent() {
this.state.noArrowParamsConversionAt.push(this.state.start);
let r = this.parseMaybeAssignAllowIn(), n = !this.match(14);
return this.state.noArrowParamsConversionAt.pop(), {
consequent: r,
failed: n
};
}
getArrowLikeExpressions(r, n) {
let s = [r], a = [];
for (; s.length !== 0; ) {
let o = s.pop();
o.type === "ArrowFunctionExpression" && o.body.type !== "BlockStatement" ? (o.typeParameters || !o.returnType ? this.finishArrowValidation(
o) : a.push(o), s.push(o.body)) : o.type === "ConditionalExpression" && (s.push(o.consequent), s.push(o.alternate));
}
return n ? (a.forEach((o) => this.finishArrowValidation(o)), [a, []]) : VK(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 s;
return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)) ? (this.state.noArrowParamsConversionAt.push(this.
state.start), s = n(), this.state.noArrowParamsConversionAt.pop()) : s = n(), s;
}
parseParenItem(r, n) {
let s = super.parseParenItem(r, n);
if (this.eat(17) && (s.optional = !0, this.resetEndLocation(r)), this.match(14)) {
let a = this.startNodeAt(n);
return a.expression = s, a.typeAnnotation = this.flowParseTypeAnnotation(), this.finishNode(a, "TypeCastExpression");
}
return s;
}
assertModuleNodeAllowed(r) {
r.type === "ImportDeclaration" && (r.importKind === "type" || r.importKind === "typeof") || r.type === "ExportNamedDeclaration" && r.exportKind ===
"type" || r.type === "ExportAllDeclaration" && r.exportKind === "type" || super.assertModuleNodeAllowed(r);
}
parseExportDeclaration(r) {
if (this.isContextual(130)) {
r.exportKind = "type";
let n = this.startNode();
return this.next(), this.match(5) ? (r.specifiers = this.parseExportSpecifiers(!0), super.parseExportFrom(r), null) : this.flowParseTypeAlias(
n);
} else if (this.isContextual(131)) {
r.exportKind = "type";
let n = this.startNode();
return this.next(), this.flowParseOpaqueType(n, !1);
} else if (this.isContextual(129)) {
r.exportKind = "type";
let n = this.startNode();
return this.next(), this.flowParseInterface(n);
} else if (this.isContextual(126)) {
r.exportKind = "value";
let n = this.startNode();
return this.next(), this.flowParseEnumDeclaration(n);
} else
return super.parseExportDeclaration(r);
}
eatExportStar(r) {
return super.eatExportStar(r) ? !0 : this.isContextual(130) && this.lookahead().type === 55 ? (r.exportKind = "type", this.next(), this.
next(), !0) : !1;
}
maybeParseExportNamespaceSpecifier(r) {
let {
startLoc: n
} = this.state, s = super.maybeParseExportNamespaceSpecifier(r);
return s && r.exportKind === "type" && this.unexpected(n), s;
}
parseClassId(r, n, s) {
super.parseClassId(r, n, s), this.match(47) && (r.typeParameters = this.flowParseTypeParameterDeclaration());
}
parseClassMember(r, n, s) {
let {
startLoc: a
} = this.state;
if (this.isContextual(125)) {
if (super.parseClassMemberFromModifier(r, n))
return;
n.declare = !0;
}
super.parseClassMember(r, n, s), n.declare && (n.type !== "ClassProperty" && n.type !== "ClassPrivateProperty" && n.type !== "Property\
Definition" ? this.raise(Ce.DeclareClassElement, a) : n.value && this.raise(Ce.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(N.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) : PK(r, n, this.input.charCodeAt(this.state.pos + 2)) ?
(this.state.pos += 2, this.readIterator()) : super.getTokenFromCode(r);
}
isAssignable(r, n) {
return r.type === "TypeCastExpression" ? this.isAssignable(r.expression, n) : super.isAssignable(r, n);
}
toAssignable(r, n = !1) {
!n && r.type === "AssignmentExpression" && r.left.type === "TypeCastExpression" && (r.left = this.typeCastToParameter(r.left)), super.
toAssignable(r, n);
}
toAssignableList(r, n, s) {
for (let a = 0; a < r.length; a++) {
let o = r[a];
o?.type === "TypeCastExpression" && (r[a] = this.typeCastToParameter(o));
}
super.toAssignableList(r, n, s);
}
toReferencedList(r, n) {
for (let a = 0; a < r.length; a++) {
var s;
let o = r[a];
o && o.type === "TypeCastExpression" && !((s = o.extra) != null && s.parenthesized) && (r.length > 1 || !n) && this.raise(Ce.TypeCastInPattern,
o.typeAnnotation);
}
return r;
}
parseArrayLike(r, n, s, a) {
let o = super.parseArrayLike(r, n, s, a);
return n && !this.state.maybeInArrowParameters && this.toReferencedList(o.elements), o;
}
isValidLVal(r, n, s) {
return r === "TypeCastExpression" || super.isValidLVal(r, n, s);
}
parseClassProperty(r) {
return this.match(14) && (r.typeAnnotation = this.flowParseTypeAnnotation()), super.parseClassProperty(r);
}
parseClassPrivateProperty(r) {
return this.match(14) && (r.typeAnnotation = this.flowParseTypeAnnotation()), super.parseClassPrivateProperty(r);
}
isClassMethod() {
return this.match(47) || super.isClassMethod();
}
isClassProperty() {
return this.match(14) || super.isClassProperty();
}
isNonstaticConstructor(r) {
return !this.match(14) && super.isNonstaticConstructor(r);
}
pushClassMethod(r, n, s, 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, s, a, o, l), n.params && o) {
let u = n.params;
u.length > 0 && this.isThisParam(u[0]) && this.raise(Ce.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(Ce.ThisParamBannedInConstructor, n);
}
}
pushClassPrivateMethod(r, n, s, a) {
n.variance && this.unexpected(n.variance.loc.start), delete n.variance, this.match(47) && (n.typeParameters = this.flowParseTypeParameterDeclaration()),
super.pushClassPrivateMethod(r, n, s, a);
}
parseClassSuper(r) {
if (super.parseClassSuper(r), r.superClass && (this.match(47) || this.match(51)) && (r.superTypeParameters = this.flowParseTypeParameterInstantiationInExpression()),
this.isContextual(113)) {
this.next();
let n = r.implements = [];
do {
let s = this.startNode();
s.id = this.flowParseRestrictedIdentifier(!0), this.match(47) ? s.typeParameters = this.flowParseTypeParameterInstantiation() : s.
typeParameters = null, n.push(this.finishNode(s, "ClassImplements"));
} while (this.eat(12));
}
}
checkGetterSetterParams(r) {
super.checkGetterSetterParams(r);
let n = this.getObjectOrClassMethodParams(r);
if (n.length > 0) {
let s = n[0];
this.isThisParam(s) && r.kind === "get" ? this.raise(Ce.GetterMayNotHaveThisParam, s) : this.isThisParam(s) && this.raise(Ce.SetterMayNotHaveThisParam,
s);
}
}
parsePropertyNamePrefixOperator(r) {
r.variance = this.flowParseVariance();
}
parseObjPropValue(r, n, s, a, o, l, u) {
r.variance && this.unexpected(r.variance.loc.start), delete r.variance;
let c;
this.match(47) && !l && (c = this.flowParseTypeParameterDeclaration(), this.match(10) || this.unexpected());
let p = super.parseObjPropValue(r, n, s, a, o, l, u);
return c && ((p.value || p).typeParameters = c), p;
}
parseFunctionParamType(r) {
return this.eat(17) && (r.type !== "Identifier" && this.raise(Ce.PatternIsOptional, r), this.isThisParam(r) && this.raise(Ce.ThisParamMayNotBeOptional,
r), r.optional = !0), this.match(14) ? r.typeAnnotation = this.flowParseTypeAnnotation() : this.isThisParam(r) && this.raise(Ce.ThisParamAnnotationRequired,
r), this.match(29) && this.isThisParam(r) && this.raise(Ce.ThisParamNoDefault, r), this.resetEndLocation(r), r;
}
parseMaybeDefault(r, n) {
let s = super.parseMaybeDefault(r, n);
return s.type === "AssignmentPattern" && s.typeAnnotation && s.right.start < s.typeAnnotation.start && this.raise(Ce.TypeBeforeInitializer,
s.typeAnnotation), s;
}
checkImportReflection(r) {
super.checkImportReflection(r), r.module && r.importKind !== "value" && this.raise(Ce.ImportReflectionHasImportType, r.specifiers[0].loc.
start);
}
parseImportSpecifierLocal(r, n, s) {
n.local = FT(r) ? this.flowParseRestrictedIdentifier(!0, !0) : this.parseIdentifier(), r.specifiers.push(this.finishImportSpecifier(n,
s));
}
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, s, a) {
if (super.applyImportPhase(r, n, s, a), n) {
if (!s && this.match(65))
return;
r.exportKind = s === "type" ? s : "value";
} else
s === "type" && this.match(55) && this.unexpected(), r.importKind = s === "type" || s === "typeof" ? s : "value";
}
parseImportSpecifier(r, n, s, a, o) {
let l = r.imported, u = null;
l.type === "Identifier" && (l.name === "type" ? u = "type" : l.name === "typeof" && (u = "typeof"));
let c = !1;
if (this.isContextual(93) && !this.isLookaheadContextual("as")) {
let f = this.parseIdentifier(!0);
u !== null && !Kr(this.state.type) ? (r.imported = f, r.importKind = u, r.local = In(f)) : (r.imported = l, r.importKind = null, r.local =
this.parseIdentifier());
} else {
if (u !== null && Kr(this.state.type))
r.imported = this.parseIdentifier(!0), r.importKind = u;
else {
if (n)
throw this.raise(N.ImportBindingIsString, r, {
importName: l.value
});
r.imported = l, r.importKind = null;
}
this.eatContextual(93) ? r.local = this.parseIdentifier() : (c = !0, r.local = In(r.imported));
}
let p = FT(r);
return s && p && this.raise(Ce.ImportTypeShorthandOnlyInPureImport, r), (s || p) && this.checkReservedType(r.local.name, r.local.loc.start,
!0), c && !s && !p && this.checkReservedWord(r.local.name, r.loc.start, !0, !0), this.finishImportSpecifier(r, "ImportSpecifier");
}
parseBindingAtom() {
switch (this.state.type) {
case 78:
return this.parseIdentifier(!0);
default:
return super.parseBindingAtom();
}
}
parseFunctionParams(r, n) {
let s = r.kind;
s !== "get" && s !== "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 s = this.state.noAnonFunctionType;
this.state.noAnonFunctionType = !0, r.returnType = this.flowParseTypeAnnotation(), this.state.noAnonFunctionType = s;
}
return super.parseAsyncArrowFromCallExpression(r, n);
}
shouldParseAsyncArrow() {
return this.match(14) || super.shouldParseAsyncArrow();
}
parseMaybeAssign(r, n) {
var s;
let a = null, o;
if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
if (a = this.state.clone(), o = this.tryParse(() => super.parseMaybeAssign(r, n), a), !o.error) return o.node;
let {
context: c
} = this.state, p = c[c.length - 1];
(p === Ze.j_oTag || p === Ze.j_expr) && c.pop();
}
if ((s = o) != null && s.error || this.match(47)) {
var l, u;
a = a || this.state.clone();
let c, p = this.tryParse((h) => {
var y;
c = this.flowParseTypeParameterDeclaration();
let E = this.forwardNoArrowParamsConversionAt(c, () => {
let g = super.parseMaybeAssign(r, n);
return this.resetStartLocationFromNode(g, c), g;
});
(y = E.extra) != null && y.parenthesized && h();
let d = this.maybeUnwrapTypeCastExpression(E);
return d.type !== "ArrowFunctionExpression" && h(), d.typeParameters = c, this.resetStartLocationFromNode(d, c), E;
}, a), f = null;
if (p.node && this.maybeUnwrapTypeCastExpression(p.node).type === "ArrowFunctionExpression") {
if (!p.error && !p.aborted)
return p.node.async && this.raise(Ce.UnexpectedTypeParameterBeforeAsyncArrowFunction, c), p.node;
f = p.node;
}
if ((l = o) != null && l.node)
return this.state = o.failState, o.node;
if (f)
return this.state = p.failState, f;
throw (u = o) != null && u.thrown ? o.error : p.thrown ? p.error : this.raise(Ce.UnexpectedTokenAfterTypeParameter, c);
}
return super.parseMaybeAssign(r, n);
}
parseArrow(r) {
if (this.match(14)) {
let n = this.tryParse(() => {
let s = this.state.noAnonFunctionType;
this.state.noAnonFunctionType = !0;
let a = this.startNode();
return [a.typeAnnotation, r.predicate] = this.flowParseTypeAndPredicateInitialiser(), this.state.noAnonFunctionType = s, 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(this.offsetToSourcePos(r.start)) ? r.params = n : super.setArrowFunctionParameters(r, n);
}
checkParams(r, n, s, a = !0) {
if (!(s && this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(r.start)))) {
for (let o = 0; o < r.params.length; o++)
this.isThisParam(r.params[o]) && o > 0 && this.raise(Ce.ThisParamMustBeFirst, r.params[o]);
super.checkParams(r, n, s, a);
}
}
parseParenAndDistinguishExpression(r) {
return super.parseParenAndDistinguishExpression(r && !this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)));
}
parseSubscripts(r, n, s) {
if (r.type === "Identifier" && r.name === "async" && this.state.noArrowAt.includes(n.index)) {
this.next();
let a = this.startNodeAt(n);
a.callee = r, a.arguments = super.parseCallExpressionArguments(11), 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, s), 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, s);
}
parseSubscript(r, n, s, a) {
if (this.match(18) && this.isLookaheadToken_lt()) {
if (a.optionalChainMember = !0, s)
return a.stop = !0, r;
this.next();
let o = this.startNodeAt(n);
return o.callee = r, o.typeArguments = this.flowParseTypeParameterInstantiationInExpression(), this.expect(10), o.arguments = this.parseCallExpressionArguments(
11), o.optional = !0, this.finishCallExpression(o, !0);
} else if (!s && this.shouldParseTypes() && (this.match(47) || this.match(51))) {
let o = this.startNodeAt(n);
o.callee = r;
let l = this.tryParse(() => (o.typeArguments = this.flowParseTypeParameterInstantiationCallOrNew(), this.expect(10), o.arguments = super.
parseCallExpressionArguments(11), 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, s, 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 s = super.parseTopLevel(r, n);
return this.state.hasFlowComment && this.raise(Ce.UnterminatedFlowComment, this.state.curPosition()), s;
}
skipBlockComment() {
if (this.hasPlugin("flowComments") && this.skipFlowComment()) {
if (this.state.hasFlowComment)
throw this.raise(Ce.NestedFlowComment, this.state.startLoc);
this.hasFlowCommentCompletion();
let r = this.skipFlowComment();
r && (this.state.pos += r, this.state.hasFlowComment = !0);
return;
}
return super.skipBlockComment(this.state.hasFlowComment ? "*-/" : "*/");
}
skipFlowComment() {
let {
pos: r
} = this.state, n = 2;
for (; [32, 9].includes(this.input.charCodeAt(r + n)); )
n++;
let s = this.input.charCodeAt(n + r), a = this.input.charCodeAt(n + r + 1);
return s === 58 && a === 58 ? n + 2 : this.input.slice(n + r, n + r + 12) === "flow-include" ? n + 12 : s === 58 && a !== 58 ? n : !1;
}
hasFlowCommentCompletion() {
if (this.input.indexOf("*/", this.state.pos) === -1)
throw this.raise(N.UnterminatedComment, this.state.curPosition());
}
flowEnumErrorBooleanMemberNotInitialized(r, {
enumName: n,
memberName: s
}) {
this.raise(Ce.EnumBooleanMemberNotInitialized, r, {
memberName: s,
enumName: n
});
}
flowEnumErrorInvalidMemberInitializer(r, n) {
return this.raise(n.explicitType ? n.explicitType === "symbol" ? Ce.EnumInvalidMemberInitializerSymbolType : Ce.EnumInvalidMemberInitializerPrimaryType :
Ce.EnumInvalidMemberInitializerUnknownType, r, n);
}
flowEnumErrorNumberMemberNotInitialized(r, n) {
this.raise(Ce.EnumNumberMemberNotInitialized, r, n);
}
flowEnumErrorStringMemberInconsistentlyInitialized(r, n) {
this.raise(Ce.EnumStringMemberInconsistentlyInitialized, r, n);
}
flowEnumMemberInit() {
let r = this.state.startLoc, n = /* @__PURE__ */ i(() => this.match(12) || this.match(8), "endOfInit");
switch (this.state.type) {
case 135: {
let s = this.parseNumericLiteral(this.state.value);
return n() ? {
type: "number",
loc: s.loc.start,
value: s
} : {
type: "invalid",
loc: r
};
}
case 134: {
let s = this.parseStringLiteral(this.state.value);
return n() ? {
type: "string",
loc: s.loc.start,
value: s
} : {
type: "invalid",
loc: r
};
}
case 85:
case 86: {
let s = this.parseBooleanLiteral(this.match(85));
return n() ? {
type: "boolean",
loc: s.loc.start,
value: s
} : {
type: "invalid",
loc: r
};
}
default:
return {
type: "invalid",
loc: r
};
}
}
flowEnumMemberRaw() {
let r = this.state.startLoc, n = this.parseIdentifier(!0), s = this.eat(29) ? this.flowEnumMemberInit() : {
type: "none",
loc: r
};
return {
id: n,
init: s
};
}
flowEnumCheckExplicitTypeMismatch(r, n, s) {
let {
explicitType: a
} = n;
a !== null && a !== s && this.flowEnumErrorInvalidMemberInitializer(r, n);
}
flowEnumMembers({
enumName: r,
explicitType: n
}) {
let s = /* @__PURE__ */ new Set(), a = {
booleanMembers: [],
numberMembers: [],
stringMembers: [],
defaultedMembers: []
}, o = !1;
for (; !this.match(8); ) {
if (this.eat(21)) {
o = !0;
break;
}
let l = this.startNode(), {
id: u,
init: c
} = this.flowEnumMemberRaw(), p = u.name;
if (p === "")
continue;
/^[a-z]/.test(p) && this.raise(Ce.EnumInvalidMemberName, u, {
memberName: p,
suggestion: p[0].toUpperCase() + p.slice(1),
enumName: r
}), s.has(p) && this.raise(Ce.EnumDuplicateMemberName, u, {
memberName: p,
enumName: r
}), s.add(p);
let f = {
enumName: r,
explicitType: n,
memberName: p
};
switch (l.id = u, c.type) {
case "boolean": {
this.flowEnumCheckExplicitTypeMismatch(c.loc, f, "boolean"), l.init = c.value, a.booleanMembers.push(this.finishNode(l, "EnumBoo\
leanMember"));
break;
}
case "number": {
this.flowEnumCheckExplicitTypeMismatch(c.loc, f, "number"), l.init = c.value, a.numberMembers.push(this.finishNode(l, "EnumNumbe\
rMember"));
break;
}
case "string": {
this.flowEnumCheckExplicitTypeMismatch(c.loc, f, "string"), l.init = c.value, a.stringMembers.push(this.finishNode(l, "EnumStrin\
gMember"));
break;
}
case "invalid":
throw this.flowEnumErrorInvalidMemberInitializer(c.loc, f);
case "none":
switch (n) {
case "boolean":
this.flowEnumErrorBooleanMemberNotInitialized(c.loc, f);
break;
case "number":
this.flowEnumErrorNumberMemberNotInitialized(c.loc, f);
break;
default:
a.defaultedMembers.push(this.finishNode(l, "EnumDefaultedMember"));
}
}
this.match(8) || this.expect(12);
}
return {
members: a,
hasUnknownMembers: o
};
}
flowEnumStringMembers(r, n, {
enumName: s
}) {
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: s
});
return n;
} else {
for (let a of n)
this.flowEnumErrorStringMemberInconsistentlyInitialized(a, {
enumName: s
});
return r;
}
}
flowEnumParseExplicitType({
enumName: r
}) {
if (!this.eatContextual(102)) return null;
if (!et(this.state.type))
throw this.raise(Ce.EnumInvalidExplicitTypeUnknownSupplied, this.state.startLoc, {
enumName: r
});
let {
value: n
} = this.state;
return this.next(), n !== "boolean" && n !== "number" && n !== "string" && n !== "symbol" && this.raise(Ce.EnumInvalidExplicitType, this.
state.startLoc, {
enumName: r,
invalidEnumType: n
}), n;
}
flowEnumBody(r, n) {
let s = n.name, a = n.loc.start, o = this.flowEnumParseExplicitType({
enumName: s
});
this.expect(5);
let {
members: l,
hasUnknownMembers: u
} = this.flowEnumMembers({
enumName: s,
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: s
}), this.expect(8), this.finishNode(r, "EnumStringBody");
case "symbol":
return r.members = l.defaultedMembers, this.expect(8), this.finishNode(r, "EnumSymbolBody");
default: {
let c = /* @__PURE__ */ i(() => (r.members = [], this.expect(8), this.finishNode(r, "EnumStringBody")), "empty");
r.explicitType = !1;
let p = l.booleanMembers.length, f = l.numberMembers.length, h = l.stringMembers.length, y = l.defaultedMembers.length;
if (!p && !f && !h && !y)
return c();
if (!p && !f)
return r.members = this.flowEnumStringMembers(l.stringMembers, l.defaultedMembers, {
enumName: s
}), this.expect(8), this.finishNode(r, "EnumStringBody");
if (!f && !h && p >= y) {
for (let E of l.defaultedMembers)
this.flowEnumErrorBooleanMemberNotInitialized(E.loc.start, {
enumName: s,
memberName: E.id.name
});
return r.members = l.booleanMembers, this.expect(8), this.finishNode(r, "EnumBooleanBody");
} else if (!p && !h && f >= y) {
for (let E of l.defaultedMembers)
this.flowEnumErrorNumberMemberNotInitialized(E.loc.start, {
enumName: s,
memberName: E.id.name
});
return r.members = l.numberMembers, this.expect(8), this.finishNode(r, "EnumNumberBody");
} else
return this.raise(Ce.EnumInconsistentMemberValues, a, {
enumName: s
}), c();
}
}
}
flowParseEnumDeclaration(r) {
let n = this.parseIdentifier();
return r.id = n, r.body = this.flowEnumBody(this.startNode(), n), this.finishNode(r, "EnumDeclaration");
}
jsxParseOpeningElementAfterName(r) {
return this.shouldParseTypes() && (this.match(47) || this.match(51)) && (r.typeArguments = this.flowParseTypeParameterInstantiationInExpression()),
super.jsxParseOpeningElementAfterName(r);
}
isLookaheadToken_lt() {
let r = this.nextTokenStart();
if (this.input.charCodeAt(r) === 60) {
let n = this.input.charCodeAt(r + 1);
return n !== 60 && n !== 61;
}
return !1;
}
reScan_lt_gt() {
let {
type: r
} = this.state;
r === 47 ? (this.state.pos -= 1, this.readToken_lt()) : r === 48 && (this.state.pos -= 1, this.readToken_gt());
}
reScan_lt() {
let {
type: r
} = this.state;
return r === 51 ? (this.state.pos -= 2, this.finishOp(47, 1), 47) : r;
}
maybeUnwrapTypeCastExpression(r) {
return r.type === "TypeCastExpression" ? r.expression : r;
}
}, "flow"), KK = {
__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"
}, Ls = wn`jsx`({
AttributeIsEmpty: "JSX attributes must only be assigned a non-empty expression.",
MissingClosingTagElement: /* @__PURE__ */ i(({
openingTagName: e
}) => `Expected corresponding JSX closing tag for <${e}>.`, "MissingClosingTagElement"),
MissingClosingTagFragment: "Expected corresponding JSX closing tag for <>.",
UnexpectedSequenceExpression: "Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",
UnexpectedToken: /* @__PURE__ */ i(({
unexpected: e,
HTMLEntity: t
}) => `Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`, "UnexpectedToken"),
UnsupportedJsxValue: "JSX value should be either an expression or a quoted JSX text.",
UnterminatedJsxContent: "Unterminated JSX contents.",
UnwrappedAdjacentJSXElements: "Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"
});
function ns(e) {
return e ? e.type === "JSXOpeningFragment" || e.type === "JSXClosingFragment" : !1;
}
i(ns, "isFragment");
function Di(e) {
if (e.type === "JSXIdentifier")
return e.name;
if (e.type === "JSXNamespacedName")
return e.namespace.name + ":" + e.name.name;
if (e.type === "JSXMemberExpression")
return Di(e.object) + "." + Di(e.property);
throw new Error("Node had unexpected type: " + e.type);
}
i(Di, "getQualifiedJSXName");
var GK = /* @__PURE__ */ i((e) => class extends e {
static {
i(this, "JSXParserMixin");
}
jsxReadToken() {
let r = "", n = this.state.pos;
for (; ; ) {
if (this.state.pos >= this.length)
throw this.raise(Ls.UnterminatedJsxContent, this.state.startLoc);
let s = this.input.charCodeAt(this.state.pos);
switch (s) {
case 60:
case 123:
if (this.state.pos === this.state.start) {
s === 60 && this.state.canStartJSXElement ? (++this.state.pos, this.finishToken(143)) : super.getTokenFromCode(s);
return;
}
r += this.input.slice(n, this.state.pos), this.finishToken(142, r);
return;
case 38:
r += this.input.slice(n, this.state.pos), r += this.jsxReadEntity(), n = this.state.pos;
break;
case 62:
case 125:
default:
Ii(s) ? (r += this.input.slice(n, this.state.pos), r += this.jsxReadNewLine(!0), n = this.state.pos) : ++this.state.pos;
}
}
}
jsxReadNewLine(r) {
let n = this.input.charCodeAt(this.state.pos), s;
return ++this.state.pos, n === 13 && this.input.charCodeAt(this.state.pos) === 10 ? (++this.state.pos, s = r ? `
` : `\r
`) : s = String.fromCharCode(n), ++this.state.curLine, this.state.lineStart = this.state.pos, s;
}
jsxReadString(r) {
let n = "", s = ++this.state.pos;
for (; ; ) {
if (this.state.pos >= this.length)
throw this.raise(N.UnterminatedString, this.state.startLoc);
let a = this.input.charCodeAt(this.state.pos);
if (a === r) break;
a === 38 ? (n += this.input.slice(s, this.state.pos), n += this.jsxReadEntity(), s = this.state.pos) : Ii(a) ? (n += this.input.slice(
s, this.state.pos), n += this.jsxReadNewLine(!1), s = this.state.pos) : ++this.state.pos;
}
n += this.input.slice(s, this.state.pos++), this.finishToken(134, n);
}
jsxReadEntity() {
let r = ++this.state.pos;
if (this.codePointAtPos(this.state.pos) === 35) {
++this.state.pos;
let n = 10;
this.codePointAtPos(this.state.pos) === 120 && (n = 16, ++this.state.pos);
let s = this.readInt(n, void 0, !1, "bail");
if (s !== null && this.codePointAtPos(this.state.pos) === 59)
return ++this.state.pos, String.fromCodePoint(s);
} else {
let n = 0, s = !1;
for (; n++ < 10 && this.state.pos < this.length && !(s = this.codePointAtPos(this.state.pos) === 59); )
++this.state.pos;
if (s) {
let a = this.input.slice(r, this.state.pos), o = KK[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 (wi(r) || r === 45);
this.finishToken(141, this.input.slice(n, this.state.pos));
}
jsxParseIdentifier() {
let r = this.startNode();
return this.match(141) ? r.name = this.state.value : _h(this.state.type) ? r.name = ss(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 s = this.startNodeAt(r);
return s.namespace = n, s.name = this.jsxParseIdentifier(), this.finishNode(s, "JSXNamespacedName");
}
jsxParseElementName() {
let r = this.state.startLoc, n = this.jsxParseNamespacedName();
if (n.type === "JSXNamespacedName")
return n;
for (; this.eat(16); ) {
let s = this.startNodeAt(r);
s.object = n, s.property = this.jsxParseIdentifier(), n = this.finishNode(s, "JSXMemberExpression");
}
return n;
}
jsxParseAttributeValue() {
let r;
switch (this.state.type) {
case 5:
return r = this.startNode(), this.setContext(Ze.brace), this.next(), r = this.jsxParseExpressionContainer(r, Ze.j_oTag), r.expression.
type === "JSXEmptyExpression" && this.raise(Ls.AttributeIsEmpty, r), r;
case 143:
case 134:
return this.parseExprAtom();
default:
throw this.raise(Ls.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(Ze.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 s = this.parseExpression();
r.expression = s;
}
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(Ze.brace), this.next(), this.expect(21), r.argument = this.parseMaybeAssignAllowIn(), this.setContext(
Ze.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(144) ? this.finishNode(n, "JSXOpeningFragment") : (n.name = this.jsxParseElementName(), this.jsxParseOpeningElementAfterName(
n));
}
jsxParseOpeningElementAfterName(r) {
let n = [];
for (; !this.match(56) && !this.match(144); )
n.push(this.jsxParseAttribute());
return r.attributes = n, r.selfClosing = this.eat(56), this.expect(144), this.finishNode(r, "JSXOpeningElement");
}
jsxParseClosingElementAt(r) {
let n = this.startNodeAt(r);
return this.eat(144) ? this.finishNode(n, "JSXClosingFragment") : (n.name = this.jsxParseElementName(), this.expect(144), this.finishNode(
n, "JSXClosingElement"));
}
jsxParseElementAt(r) {
let n = this.startNodeAt(r), s = [], a = this.jsxParseOpeningElementAt(r), o = null;
if (!a.selfClosing) {
e: for (; ; )
switch (this.state.type) {
case 143:
if (r = this.state.startLoc, this.next(), this.eat(56)) {
o = this.jsxParseClosingElementAt(r);
break e;
}
s.push(this.jsxParseElementAt(r));
break;
case 142:
s.push(this.parseLiteral(this.state.value, "JSXText"));
break;
case 5: {
let l = this.startNode();
this.setContext(Ze.brace), this.next(), this.match(21) ? s.push(this.jsxParseSpreadChild(l)) : s.push(this.jsxParseExpressionContainer(
l, Ze.j_expr));
break;
}
default:
this.unexpected();
}
ns(a) && !ns(o) && o !== null ? this.raise(Ls.MissingClosingTagFragment, o) : !ns(a) && ns(o) ? this.raise(Ls.MissingClosingTagElement,
o, {
openingTagName: Di(a.name)
}) : !ns(a) && !ns(o) && Di(o.name) !== Di(a.name) && this.raise(Ls.MissingClosingTagElement, o, {
openingTagName: Di(a.name)
});
}
if (ns(a) ? (n.openingFragment = a, n.closingFragment = o) : (n.openingElement = a, n.closingElement = o), n.children = s, this.match(
47))
throw this.raise(Ls.UnwrappedAdjacentJSXElements, this.state.startLoc);
return ns(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(143) ? this.jsxParseElement() : this.match(47) && this.input.charCodeAt(this.state.pos) !== 33 ? (this.replaceToken(
143), this.jsxParseElement()) : super.parseExprAtom(r);
}
skipSpace() {
this.curContext().preserveSpace || super.skipSpace();
}
getTokenFromCode(r) {
let n = this.curContext();
if (n === Ze.j_expr) {
this.jsxReadToken();
return;
}
if (n === Ze.j_oTag || n === Ze.j_cTag) {
if (Dn(r)) {
this.jsxReadWord();
return;
}
if (r === 62) {
++this.state.pos, this.finishToken(144);
return;
}
if ((r === 34 || r === 39) && n === Ze.j_oTag) {
this.jsxReadString(r);
return;
}
}
if (r === 60 && this.state.canStartJSXElement && this.input.charCodeAt(this.state.pos + 1) !== 33) {
++this.state.pos, this.finishToken(143);
return;
}
super.getTokenFromCode(r);
}
updateContext(r) {
let {
context: n,
type: s
} = this.state;
if (s === 56 && r === 143)
n.splice(-2, 2, Ze.j_cTag), this.state.canStartJSXElement = !1;
else if (s === 143)
n.push(Ze.j_oTag);
else if (s === 144) {
let a = n[n.length - 1];
a === Ze.j_oTag && r === 56 || a === Ze.j_cTag ? (n.pop(), this.state.canStartJSXElement = n[n.length - 1] === Ze.j_expr) : (this.setContext(
Ze.j_expr), this.state.canStartJSXElement = !0);
} else
this.state.canStartJSXElement = lK(s);
}
}, "jsx"), Eh = class extends Ka {
static {
i(this, "TypeScriptScope");
}
constructor(...t) {
super(...t), this.tsNames = /* @__PURE__ */ new Map();
}
}, Th = class extends Ga {
static {
i(this, "TypeScriptScopeHandler");
}
constructor(...t) {
super(...t), this.importsStack = [];
}
createScope(t) {
return this.importsStack.push(/* @__PURE__ */ new Set()), new Eh(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 s = 0; s < n - 1; s++)
if (this.importsStack[s].has(t)) return !0;
}
return !1;
}
declareName(t, r, n) {
if (r & 4096) {
this.hasImport(t, !0) && this.parser.raise(N.VarRedeclaration, n, {
identifierName: t
}), this.importsStack[this.importsStack.length - 1].add(t);
return;
}
let s = this.currentScope(), a = s.tsNames.get(t) || 0;
if (r & 1024) {
this.maybeExportDefined(s, t), s.tsNames.set(t, a | 16);
return;
}
super.declareName(t, r, n), r & 2 && (r & 1 || (this.checkRedeclarationInScope(s, t, r, n), this.maybeExportDefined(s, t)), a = a | 1),
r & 256 && (a = a | 2), r & 512 && (a = a | 4), r & 128 && (a = a | 8), a && s.tsNames.set(t, a);
}
isRedeclaredInScope(t, r, n) {
let s = t.tsNames.get(r);
if ((s & 2) > 0) {
if (n & 256) {
let a = !!(n & 512), o = (s & 4) > 0;
return a !== o;
}
return !0;
}
return n & 128 && (s & 8) > 0 ? t.names.get(r) & 2 ? !!(n & 1) : !1 : n & 2 && (s & 1) > 0 ? !0 : super.isRedeclaredInScope(t, r, n);
}
checkLocalExport(t) {
let {
name: r
} = t;
if (this.hasImport(r)) return;
let n = this.scopeStack.length;
for (let s = n - 1; s >= 0; s--) {
let o = this.scopeStack[s].tsNames.get(r);
if ((o & 1) > 0 || (o & 16) > 0)
return;
}
super.checkLocalExport(t);
}
}, ZT = /* @__PURE__ */ i((e) => e.type === "ParenthesizedExpression" ? ZT(e.expression) : e, "unwrapParenthesizedExpression"), Sh = class extends bh {
static {
i(this, "LValParser");
}
toAssignable(t, r = !1) {
var n, s;
let a;
switch ((t.type === "ParenthesizedExpression" || (n = t.extra) != null && n.parenthesized) && (a = ZT(t), r ? a.type === "Identifier" ?
this.expressionScope.recordArrowParameterBindingError(N.InvalidParenthesizedAssignment, t) : a.type !== "MemberExpression" && !this.isOptionalMemberExpression(
a) && this.raise(N.InvalidParenthesizedAssignment, t) : this.raise(N.InvalidParenthesizedAssignment, t)), t.type) {
case "Identifier":
case "ObjectPattern":
case "ArrayPattern":
case "AssignmentPattern":
case "RestElement":
break;
case "ObjectExpression":
t.type = "ObjectPattern";
for (let l = 0, u = t.properties.length, c = u - 1; l < u; l++) {
var o;
let p = t.properties[l], f = l === c;
this.toAssignableObjectExpressionProp(p, f, r), f && p.type === "RestElement" && (o = t.extra) != null && o.trailingCommaLoc && this.
raise(N.RestTrailingComma, t.extra.trailingCommaLoc);
}
break;
case "ObjectProperty": {
let {
key: l,
value: u
} = t;
this.isPrivateName(l) && this.classScope.usePrivateName(this.getPrivateNameSV(l), l.loc.start), this.toAssignable(u, r);
break;
}
case "SpreadElement":
throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignabl\
e's caller.");
case "ArrayExpression":
t.type = "ArrayPattern", this.toAssignableList(t.elements, (s = t.extra) == null ? void 0 : s.trailingCommaLoc, r);
break;
case "AssignmentExpression":
t.operator !== "=" && this.raise(N.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" ? N.PatternHasAccessor : N.PatternHasMethod, t.key);
else if (t.type === "SpreadElement") {
t.type = "RestElement";
let s = t.argument;
this.checkToRestConversion(s, !1), this.toAssignable(s, n), r || this.raise(N.RestTrailingComma, t);
} else
this.toAssignable(t, n);
}
toAssignableList(t, r, n) {
let s = t.length - 1;
for (let a = 0; a <= s; a++) {
let o = t[a];
o && (this.toAssignableListItem(t, a, n), o.type === "RestElement" && (a < s ? this.raise(N.RestTrailingComma, o) : r && this.raise(
N.RestTrailingComma, r)));
}
}
toAssignableListItem(t, r, n) {
let s = t[r];
if (s.type === "SpreadElement") {
s.type = "RestElement";
let a = s.argument;
this.checkToRestConversion(a, !0), this.toAssignable(a, n);
} else
this.toAssignable(s, n);
}
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((s, a) => s.type !== "ObjectMethod" && (a === n || s.type !== "SpreadElement") && this.isAssignable(s));
}
case "ObjectProperty":
return this.isAssignable(t.value);
case "SpreadElement":
return this.isAssignable(t.argument);
case "ArrayExpression":
return t.elements.every((n) => n === null || this.isAssignable(n));
case "AssignmentExpression":
return t.operator === "=";
case "ParenthesizedExpression":
return this.isAssignable(t.expression);
case "MemberExpression":
case "OptionalMemberExpression":
return !r;
default:
return !1;
}
}
toReferencedList(t, r) {
return t;
}
toReferencedListDeep(t, r) {
this.toReferencedList(t, r);
for (let n of t)
n?.type === "ArrayExpression" && this.toReferencedListDeep(n.elements);
}
parseSpread(t) {
let r = this.startNode();
return this.next(), r.argument = this.parseMaybeAssignAllowIn(t, void 0), this.finishNode(r, "SpreadElement");
}
parseRestBinding() {
let t = this.startNode();
return this.next(), t.argument = this.parseBindingAtom(), this.finishNode(t, "RestElement");
}
parseBindingAtom() {
switch (this.state.type) {
case 0: {
let t = this.startNode();
return this.next(), t.elements = this.parseBindingList(3, 93, 1), this.finishNode(t, "ArrayPattern");
}
case 5:
return this.parseObjectLike(8, !0);
}
return this.parseIdentifier();
}
parseBindingList(t, r, n) {
let s = n & 1, a = [], o = !0;
for (; !this.eat(t); )
if (o ? o = !1 : this.expect(12), s && this.match(12))
a.push(null);
else {
if (this.eat(t))
break;
if (this.match(21)) {
let l = this.parseRestBinding();
if ((this.hasPlugin("flow") || n & 2) && (l = this.parseFunctionParamType(l)), a.push(l), !this.checkCommaAfterRest(r)) {
this.expect(t);
break;
}
} else {
let l = [];
if (n & 2)
for (this.match(26) && this.hasPlugin("decorators") && this.raise(N.UnsupportedParameterDecorator, this.state.startLoc); this.
match(26); )
l.push(this.parseDecorator());
a.push(this.parseBindingElement(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 === 139 ? (this.expectPlugin("destructuringPrivate", r), this.classScope.usePrivateName(this.state.value, r), n.key = this.parsePrivateName()) :
this.parsePropertyName(n), n.method = !1, this.parseObjPropValue(n, r, !1, !1, !0, !1);
}
parseBindingElement(t, r) {
let n = this.parseMaybeDefault();
(this.hasPlugin("flow") || t & 2) && this.parseFunctionParamType(n);
let s = this.parseMaybeDefault(n.loc.start, n);
return r.length && (n.decorators = r), s;
}
parseFunctionParamType(t) {
return t;
}
parseMaybeDefault(t, r) {
if (t ?? (t = this.state.startLoc), r = r ?? this.parseBindingAtom(), !this.eat(29)) return r;
let n = this.startNodeAt(t);
return n.left = r, n.right = this.parseMaybeAssignAllowIn(), this.finishNode(n, "AssignmentPattern");
}
isValidLVal(t, r, n) {
switch (t) {
case "AssignmentPattern":
return "left";
case "RestElement":
return "argument";
case "ObjectProperty":
return "value";
case "ParenthesizedExpression":
return "expression";
case "ArrayPattern":
return "elements";
case "ObjectPattern":
return "properties";
}
return !1;
}
isOptionalMemberExpression(t) {
return t.type === "OptionalMemberExpression";
}
checkLVal(t, r, n = 64, s = !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(N.InvalidLhsOptionalChaining,
t, {
ancestor: r
})), n !== 64 && this.raise(N.InvalidPropertyBindingPattern, t);
return;
}
if (u === "Identifier") {
this.checkIdentifier(t, n, a);
let {
name: d
} = t;
s && (s.has(d) ? this.raise(N.ParamDupe, t) : s.add(d));
return;
}
let p = this.isValidLVal(u, !(o || (l = t.extra) != null && l.parenthesized) && r.type === "AssignmentExpression", n);
if (p === !0) return;
if (p === !1) {
let d = n === 64 ? N.InvalidLhs : N.InvalidLhsBinding;
this.raise(d, t, {
ancestor: r
});
return;
}
let f, h;
typeof p == "string" ? (f = p, h = u === "ParenthesizedExpression") : [f, h] = p;
let y = u === "ArrayPattern" || u === "ObjectPattern" ? {
type: u
} : r, E = t[f];
if (Array.isArray(E))
for (let d of E)
d && this.checkLVal(d, y, n, s, a, h);
else E && this.checkLVal(E, y, n, s, a, h);
}
checkIdentifier(t, r, n = !1) {
this.state.strict && (n ? YT(t.name, this.inModule) : HT(t.name)) && (r === 64 ? this.raise(N.StrictEvalArguments, t, {
referenceName: t.name
}) : this.raise(N.StrictEvalArgumentsBinding, t, {
bindingName: t.name
})), r & 8192 && t.name === "let" && this.raise(N.LetInLexicalBinding, t), r & 64 || this.declareNameFromIdentifier(t, r);
}
declareNameFromIdentifier(t, r) {
this.scope.declareName(t.name, r, t.loc.start);
}
checkToRestConversion(t, r) {
switch (t.type) {
case "ParenthesizedExpression":
this.checkToRestConversion(t.expression, r);
break;
case "Identifier":
case "MemberExpression":
break;
case "ArrayExpression":
case "ObjectExpression":
if (r) break;
default:
this.raise(N.InvalidRestAssignmentPattern, t);
}
}
checkCommaAfterRest(t) {
return this.match(12) ? (this.raise(this.lookaheadCharCode() === t ? N.RestTrailingComma : N.ElementAfterRest, this.state.startLoc), !0) :
!1;
}
};
function HK(e) {
if (e == null)
throw new Error(`Unexpected ${e} value.`);
return e;
}
i(HK, "nonNull");
function jT(e) {
if (!e)
throw new Error("Assert fail");
}
i(jT, "assert");
var de = wn`typescript`({
AbstractMethodHasImplementation: /* @__PURE__ */ i(({
methodName: e
}) => `Method '${e}' cannot have an implementation because it is marked abstract.`, "AbstractMethodHasImplementation"),
AbstractPropertyHasInitializer: /* @__PURE__ */ i(({
propertyName: e
}) => `Property '${e}' cannot have an initializer because it is marked abstract.`, "AbstractPropertyHasInitializer"),
AccessorCannotBeOptional: "An 'accessor' property cannot be declared optional.",
AccessorCannotDeclareThisParameter: "'get' and 'set' accessors cannot declare 'this' parameters.",
AccessorCannotHaveTypeParameters: "An accessor cannot have type parameters.",
ClassMethodHasDeclare: "Class methods cannot have the 'declare' modifier.",
ClassMethodHasReadonly: "Class methods cannot have the 'readonly' modifier.",
ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference: "A 'const' initializer in an ambient context must be a string or num\
eric literal or literal enum reference.",
ConstructorHasTypeParameters: "Type parameters cannot appear on a constructor declaration.",
DeclareAccessor: /* @__PURE__ */ i(({
kind: e
}) => `'declare' is not allowed in ${e}ters.`, "DeclareAccessor"),
DeclareClassFieldHasInitializer: "Initializers are not allowed in ambient contexts.",
DeclareFunctionHasImplementation: "An implementation cannot be declared in ambient contexts.",
DuplicateAccessibilityModifier: /* @__PURE__ */ i(({
modifier: e
}) => "Accessibility modifier already seen.", "DuplicateAccessibilityModifier"),
DuplicateModifier: /* @__PURE__ */ i(({
modifier: e
}) => `Duplicate modifier: '${e}'.`, "DuplicateModifier"),
EmptyHeritageClauseType: /* @__PURE__ */ i(({
token: e
}) => `'${e}' list cannot be empty.`, "EmptyHeritageClauseType"),
EmptyTypeArguments: "Type argument list cannot be empty.",
EmptyTypeParameters: "Type parameter list cannot be empty.",
ExpectedAmbientAfterExportDeclare: "'export declare' must be followed by an ambient declaration.",
ImportAliasHasImportType: "An import alias can not use 'import type'.",
ImportReflectionHasImportType: "An `import module` declaration can not use `type` modifier",
IncompatibleModifiers: /* @__PURE__ */ i(({
modifiers: e
}) => `'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`, "IncompatibleModifiers"),
IndexSignatureHasAbstract: "Index signatures cannot have the 'abstract' modifier.",
IndexSignatureHasAccessibility: /* @__PURE__ */ i(({
modifier: e
}) => `Index signatures cannot have an accessibility modifier ('${e}').`, "IndexSignatureHasAccessibility"),
IndexSignatureHasDeclare: "Index signatures cannot have the 'declare' modifier.",
IndexSignatureHasOverride: "'override' modifier cannot appear on an index signature.",
IndexSignatureHasStatic: "Index signatures cannot have the 'static' modifier.",
InitializerNotAllowedInAmbientContext: "Initializers are not allowed in ambient contexts.",
InvalidHeritageClauseType: /* @__PURE__ */ i(({
token: e
}) => `'${e}' list can only include identifiers or qualified-names with optional type arguments.`, "InvalidHeritageClauseType"),
InvalidModifierOnTypeMember: /* @__PURE__ */ i(({
modifier: e
}) => `'${e}' modifier cannot appear on a type member.`, "InvalidModifierOnTypeMember"),
InvalidModifierOnTypeParameter: /* @__PURE__ */ i(({
modifier: e
}) => `'${e}' modifier cannot appear on a type parameter.`, "InvalidModifierOnTypeParameter"),
InvalidModifierOnTypeParameterPositions: /* @__PURE__ */ i(({
modifier: e
}) => `'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`, "InvalidModifierOnTypeParameterPositio\
ns"),
InvalidModifiersOrder: /* @__PURE__ */ i(({
orderedModifiers: e
}) => `'${e[0]}' modifier must precede '${e[1]}' modifier.`, "InvalidModifiersOrder"),
InvalidPropertyAccessAfterInstantiationExpression: "Invalid property access after an instantiation expression. You can either wrap the i\
nstantiation expression in parentheses, or delete the type arguments.",
InvalidTupleMemberLabel: "Tuple members must be labeled with a simple identifier.",
MissingInterfaceName: "'interface' declarations must be followed by an identifier.",
NonAbstractClassHasAbstractMethod: "Abstract methods can only appear within an abstract class.",
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__ */ i(({
modifier: e
}) => `Private elements cannot have an accessibility modifier ('${e}').`, "PrivateElementHasAccessibility"),
ReadonlyForMethodSignature: "'readonly' modifier can only appear on a property declaration or index signature.",
ReservedArrowTypeParam: "This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",
ReservedTypeAssertion: "This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",
SetAccessorCannotHaveOptionalParameter: "A 'set' accessor cannot have an optional parameter.",
SetAccessorCannotHaveRestParameter: "A 'set' accessor cannot have rest parameter.",
SetAccessorCannotHaveReturnType: "A 'set' accessor cannot have a return type annotation.",
SingleTypeParameterWithoutTrailingComma: /* @__PURE__ */ i(({
typeParameterName: e
}) => `Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`, "SingleTypeParameterWithoutTrailingComma"),
StaticBlockCannotHaveModifier: "Static class blocks cannot have any modifier.",
TupleOptionalAfterType: "A labeled tuple optional element must be declared using a question mark after the name and before the colon (`n\
ame?: type`), rather than after the type (`name: type?`).",
TypeAnnotationAfterAssign: "Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number =\
25`.",
TypeImportCannotSpecifyDefaultAndNamed: "A type-only import can specify a default import or named bindings, but not both.",
TypeModifierIsUsedInTypeExports: "The 'type' modifier cannot be used on a named export when 'export type' is used on its export statemen\
t.",
TypeModifierIsUsedInTypeImports: "The 'type' modifier cannot be used on a named import when 'import type' is used on its import statemen\
t.",
UnexpectedParameterModifier: "A parameter property is only allowed in a constructor implementation.",
UnexpectedReadonly: "'readonly' type modifier is only permitted on array and tuple literal types.",
UnexpectedTypeAnnotation: "Did not expect a type annotation here.",
UnexpectedTypeCastInParameter: "Unexpected type cast in parameter position.",
UnsupportedImportTypeArgument: "Argument in a type import must be a string literal.",
UnsupportedParameterPropertyKind: "A parameter property may not be declared using a binding pattern.",
UnsupportedSignatureParameterKind: /* @__PURE__ */ i(({
type: e
}) => `Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`, "UnsupportedSignatureParameterKind")
});
function YK(e) {
switch (e) {
case "any":
return "TSAnyKeyword";
case "boolean":
return "TSBooleanKeyword";
case "bigint":
return "TSBigIntKeyword";
case "never":
return "TSNeverKeyword";
case "number":
return "TSNumberKeyword";
case "object":
return "TSObjectKeyword";
case "string":
return "TSStringKeyword";
case "symbol":
return "TSSymbolKeyword";
case "undefined":
return "TSUndefinedKeyword";
case "unknown":
return "TSUnknownKeyword";
default:
return;
}
}
i(YK, "keywordTypeFromName");
function LT(e) {
return e === "private" || e === "public" || e === "protected";
}
i(LT, "tsIsAccessModifier");
function JK(e) {
return e === "in" || e === "out";
}
i(JK, "tsIsVarianceAnnotations");
var XK = /* @__PURE__ */ i((e) => class extends e {
static {
i(this, "TypeScriptParserMixin");
}
constructor(...r) {
super(...r), this.tsParseInOutModifiers = this.tsParseModifiers.bind(this, {
allowedModifiers: ["in", "out"],
disallowedModifiers: ["const", "public", "private", "protected", "readonly", "declare", "abstract", "override"],
errorTemplate: de.InvalidModifierOnTypeParameter
}), this.tsParseConstModifier = this.tsParseModifiers.bind(this, {
allowedModifiers: ["const"],
disallowedModifiers: ["in", "out"],
errorTemplate: de.InvalidModifierOnTypeParameterPositions
}), this.tsParseInOutConstModifiers = this.tsParseModifiers.bind(this, {
allowedModifiers: ["in", "out", "const"],
disallowedModifiers: ["public", "private", "protected", "readonly", "declare", "abstract", "override"],
errorTemplate: de.InvalidModifierOnTypeParameter
});
}
getScopeHandler() {
return Th;
}
tsIsIdentifier() {
return et(this.state.type);
}
tsTokenCanFollowModifier() {
return this.match(0) || this.match(5) || this.match(55) || this.match(21) || this.match(139) || this.isLiteralPropertyName();
}
tsNextTokenOnSameLineAndCanFollowModifier() {
return this.next(), this.hasPrecedingLineBreak() ? !1 : this.tsTokenCanFollowModifier();
}
tsNextTokenCanFollowModifier() {
return this.match(106) ? (this.next(), this.tsTokenCanFollowModifier()) : this.tsNextTokenOnSameLineAndCanFollowModifier();
}
tsParseModifier(r, n) {
if (!et(this.state.type) && this.state.type !== 58 && this.state.type !== 75)
return;
let s = this.state.value;
if (r.includes(s)) {
if (n && this.tsIsStartOfStaticBlocks())
return;
if (this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))
return s;
}
}
tsParseModifiers({
allowedModifiers: r,
disallowedModifiers: n,
stopOnStartOfClassStaticBlock: s,
errorTemplate: a = de.InvalidModifierOnTypeMember
}, o) {
let l = /* @__PURE__ */ i((c, p, f, h) => {
p === f && o[h] && this.raise(de.InvalidModifiersOrder, c, {
orderedModifiers: [f, h]
});
}, "enforceOrder"), u = /* @__PURE__ */ i((c, p, f, h) => {
(o[f] && p === h || o[h] && p === f) && this.raise(de.IncompatibleModifiers, c, {
modifiers: [f, h]
});
}, "incompatible");
for (; ; ) {
let {
startLoc: c
} = this.state, p = this.tsParseModifier(r.concat(n ?? []), s);
if (!p) break;
LT(p) ? o.accessibility ? this.raise(de.DuplicateAccessibilityModifier, c, {
modifier: p
}) : (l(c, p, p, "override"), l(c, p, p, "static"), l(c, p, p, "readonly"), o.accessibility = p) : JK(p) ? (o[p] && this.raise(de.DuplicateModifier,
c, {
modifier: p
}), o[p] = !0, l(c, p, "in", "out")) : (hasOwnProperty.call(o, p) ? this.raise(de.DuplicateModifier, c, {
modifier: p
}) : (l(c, p, "static", "readonly"), l(c, p, "static", "override"), l(c, p, "override", "readonly"), l(c, p, "abstract", "override"),
u(c, p, "declare", "override"), u(c, p, "static", "abstract")), o[p] = !0), n != null && n.includes(p) && this.raise(a, c, {
modifier: p
});
}
}
tsIsListTerminator(r) {
switch (r) {
case "EnumMembers":
case "TypeMembers":
return this.match(8);
case "HeritageClauseElement":
return this.match(5);
case "TupleElementTypes":
return this.match(3);
case "TypeParametersOrArguments":
return this.match(48);
}
}
tsParseList(r, n) {
let s = [];
for (; !this.tsIsListTerminator(r); )
s.push(n());
return s;
}
tsParseDelimitedList(r, n, s) {
return HK(this.tsParseDelimitedListWorker(r, n, !0, s));
}
tsParseDelimitedListWorker(r, n, s, 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;
s && this.expect(12);
return;
}
return a && (a.value = l), o;
}
tsParseBracketedList(r, n, s, a, o) {
a || (s ? this.expect(0) : this.expect(47));
let l = this.tsParseDelimitedList(r, n, o);
return s ? this.expect(3) : this.expect(48), l;
}
tsParseImportType() {
let r = this.startNode();
return this.expect(83), this.expect(10), this.match(134) ? r.argument = this.parseStringLiteral(this.state.value) : (this.raise(de.UnsupportedImportTypeArgument,
this.state.startLoc), r.argument = super.parseExprAtom()), this.eat(12) && !this.match(11) ? (r.options = super.parseMaybeAssignAllowIn(),
this.eat(12)) : r.options = null, this.expect(11), this.eat(16) && (r.qualifier = this.tsParseEntityName(3)), this.match(47) && (r.typeParameters =
this.tsParseTypeArguments()), this.finishNode(r, "TSImportType");
}
tsParseEntityName(r) {
let n;
if (r & 1 && this.match(78))
if (r & 2)
n = this.parseIdentifier(!0);
else {
let s = this.startNode();
this.next(), n = this.finishNode(s, "ThisExpression");
}
else
n = this.parseIdentifier(!!(r & 1));
for (; this.eat(16); ) {
let s = this.startNodeAtNode(n);
s.left = n, s.right = this.parseIdentifier(!!(r & 1)), n = this.finishNode(s, "TSQualifiedName");
}
return n;
}
tsParseTypeReference() {
let r = this.startNode();
return r.typeName = this.tsParseEntityName(1), !this.hasPrecedingLineBreak() && this.match(47) && (r.typeParameters = this.tsParseTypeArguments()),
this.finishNode(r, "TSTypeReference");
}
tsParseThisTypePredicate(r) {
this.next();
let n = this.startNodeAtNode(r);
return n.parameterName = r, n.typeAnnotation = this.tsParseTypeAnnotation(!1), n.asserts = !1, this.finishNode(n, "TSTypePredicate");
}
tsParseThisTypeNode() {
let r = this.startNode();
return this.next(), this.finishNode(r, "TSThisType");
}
tsParseTypeQuery() {
let r = this.startNode();
return this.expect(87), this.match(83) ? r.exprName = this.tsParseImportType() : r.exprName = this.tsParseEntityName(3), !this.hasPrecedingLineBreak() &&
this.match(47) && (r.typeParameters = this.tsParseTypeArguments()), this.finishNode(r, "TSTypeQuery");
}
tsParseTypeParameter(r) {
let n = this.startNode();
return r(n), n.name = this.tsParseTypeParameterName(), n.constraint = this.tsEatThenParseType(81), n.default = this.tsEatThenParseType(
29), this.finishNode(n, "TSTypeParameter");
}
tsTryParseTypeParameters(r) {
if (this.match(47))
return this.tsParseTypeParameters(r);
}
tsParseTypeParameters(r) {
let n = this.startNode();
this.match(47) || this.match(143) ? this.next() : this.unexpected();
let s = {
value: -1
};
return n.params = this.tsParseBracketedList("TypeParametersOrArguments", this.tsParseTypeParameter.bind(this, r), !1, !0, s), n.params.
length === 0 && this.raise(de.EmptyTypeParameters, n), s.value !== -1 && this.addExtra(n, "trailingComma", s.value), this.finishNode(n,
"TSTypeParameterDeclaration");
}
tsFillSignature(r, n) {
let s = r === 19, a = "parameters", o = "typeAnnotation";
n.typeParameters = this.tsTryParseTypeParameters(this.tsParseConstModifier), this.expect(10), n[a] = this.tsParseBindingListForSignature(),
s ? 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: s
} = n;
(s === "AssignmentPattern" || s === "TSParameterProperty") && this.raise(de.UnsupportedSignatureParameterKind, n, {
type: s
});
}
return r;
}
tsParseTypeMemberSemicolon() {
!this.eat(12) && !this.isLineTerminator() && this.expect(13);
}
tsParseSignatureMember(r, n) {
return this.tsFillSignature(14, n), this.tsParseTypeMemberSemicolon(), this.finishNode(n, r);
}
tsIsUnambiguouslyIndexSignature() {
return this.next(), et(this.state.type) ? (this.next(), this.match(14)) : !1;
}
tsTryParseIndexSignature(r) {
if (!(this.match(0) && this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))
return;
this.expect(0);
let n = this.parseIdentifier();
n.typeAnnotation = this.tsParseTypeAnnotation(), this.resetEndLocation(n), this.expect(3), r.parameters = [n];
let s = this.tsTryParseTypeAnnotation();
return s && (r.typeAnnotation = s), this.tsParseTypeMemberSemicolon(), this.finishNode(r, "TSIndexSignature");
}
tsParsePropertyOrMethodSignature(r, n) {
this.eat(17) && (r.optional = !0);
let s = r;
if (this.match(10) || this.match(47)) {
n && this.raise(de.ReadonlyForMethodSignature, r);
let a = s;
a.kind && this.match(47) && this.raise(de.AccessorCannotHaveTypeParameters, this.state.curPosition()), this.tsFillSignature(14, a), this.
tsParseTypeMemberSemicolon();
let o = "parameters", l = "typeAnnotation";
if (a.kind === "get")
a[o].length > 0 && (this.raise(N.BadGetterArity, this.state.curPosition()), this.isThisParam(a[o][0]) && this.raise(de.AccessorCannotDeclareThisParameter,
this.state.curPosition()));
else if (a.kind === "set") {
if (a[o].length !== 1)
this.raise(N.BadSetterArity, this.state.curPosition());
else {
let u = a[o][0];
this.isThisParam(u) && this.raise(de.AccessorCannotDeclareThisParameter, this.state.curPosition()), u.type === "Identifier" && u.
optional && this.raise(de.SetAccessorCannotHaveOptionalParameter, this.state.curPosition()), u.type === "RestElement" && this.raise(
de.SetAccessorCannotHaveRestParameter, this.state.curPosition());
}
a[l] && this.raise(de.SetAccessorCannotHaveReturnType, a[l]);
} else
a.kind = "method";
return this.finishNode(a, "TSMethodSignature");
} else {
let a = s;
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 s = this.startNode();
return this.next(), this.match(10) || this.match(47) ? this.tsParseSignatureMember("TSConstructSignatureDeclaration", r) : (r.key = this.
createIdentifier(s, "new"), this.tsParsePropertyOrMethodSignature(r, !1));
}
this.tsParseModifiers({
allowedModifiers: ["readonly"],
disallowedModifiers: ["declare", "abstract", "private", "protected", "public", "static", "override"]
}, r);
let n = this.tsTryParseIndexSignature(r);
return n || (super.parsePropertyName(r), !r.computed && r.key.type === "Identifier" && (r.key.name === "get" || r.key.name === "set") &&
this.tsTokenCanFollowModifier() && (r.kind = r.key.name, super.parsePropertyName(r)), this.tsParsePropertyOrMethodSignature(r, !!r.readonly));
}
tsParseTypeLiteral() {
let r = this.startNode();
return r.members = this.tsParseObjectTypeMembers(), this.finishNode(r, "TSTypeLiteral");
}
tsParseObjectTypeMembers() {
this.expect(5);
let r = this.tsParseList("TypeMembers", this.tsParseTypeMember.bind(this));
return this.expect(8), r;
}
tsIsStartOfMappedType() {
return this.next(), this.eat(53) ? this.isContextual(122) : (this.isContextual(122) && this.next(), !this.match(0) || (this.next(), !this.
tsIsIdentifier()) ? !1 : (this.next(), this.match(58)));
}
tsParseMappedType() {
let r = this.startNode();
this.expect(5), this.match(53) ? (r.readonly = this.state.value, this.next(), this.expectContextual(122)) : this.eatContextual(122) &&
(r.readonly = !0), this.expect(0);
{
let n = this.startNode();
n.name = this.tsParseTypeParameterName(), n.constraint = this.tsExpectThenParseType(58), r.typeParameter = this.finishNode(n, "TSTyp\
eParameter");
}
return r.nameType = this.eatContextual(93) ? this.tsParseType() : null, this.expect(3), this.match(53) ? (r.optional = this.state.value,
this.next(), this.expect(17)) : this.eat(17) && (r.optional = !0), r.typeAnnotation = this.tsTryParseType(), this.semicolon(), this.expect(
8), this.finishNode(r, "TSMappedType");
}
tsParseTupleType() {
let r = this.startNode();
r.elementTypes = this.tsParseBracketedList("TupleElementTypes", this.tsParseTupleElementType.bind(this), !0, !1);
let n = !1;
return r.elementTypes.forEach((s) => {
let {
type: a
} = s;
n && a !== "TSRestType" && a !== "TSOptionalType" && !(a === "TSNamedTupleMember" && s.optional) && this.raise(de.OptionalTypeBeforeRequired,
s), n || (n = a === "TSNamedTupleMember" && s.optional || a === "TSOptionalType");
}), this.finishNode(r, "TSTupleType");
}
tsParseTupleElementType() {
let r = this.state.startLoc, n = this.eat(21), {
startLoc: s
} = this.state, a, o, l, u, p = Kr(this.state.type) ? this.lookaheadCharCode() : null;
if (p === 58)
a = !0, l = !1, o = this.parseIdentifier(!0), this.expect(14), u = this.tsParseType();
else if (p === 63) {
l = !0;
let f = this.state.value, h = this.tsParseNonArrayType();
this.lookaheadCharCode() === 58 ? (a = !0, o = this.createIdentifier(this.startNodeAt(s), f), this.expect(17), this.expect(14), u = this.
tsParseType()) : (a = !1, u = h, this.expect(17));
} else
u = this.tsParseType(), l = this.eat(17), a = this.eat(14);
if (a) {
let f;
o ? (f = this.startNodeAt(s), f.optional = l, f.label = o, f.elementType = u, this.eat(17) && (f.optional = !0, this.raise(de.TupleOptionalAfterType,
this.state.lastTokStartLoc))) : (f = this.startNodeAt(s), f.optional = l, this.raise(de.InvalidTupleMemberLabel, u), f.label = u, f.
elementType = this.tsParseType()), u = this.finishNode(f, "TSNamedTupleMember");
} else if (l) {
let f = this.startNodeAt(s);
f.typeAnnotation = u, u = this.finishNode(f, "TSOptionalType");
}
if (n) {
let f = this.startNodeAt(r);
f.typeAnnotation = u, u = this.finishNode(f, "TSRestType");
}
return u;
}
tsParseParenthesizedType() {
let r = this.startNode();
return this.expect(10), r.typeAnnotation = this.tsParseType(), this.expect(11), this.finishNode(r, "TSParenthesizedType");
}
tsParseFunctionOrConstructorType(r, n) {
let s = this.startNode();
return r === "TSConstructorType" && (s.abstract = !!n, n && this.next(), this.next()), this.tsInAllowConditionalTypesContext(() => this.
tsFillSignature(19, s)), this.finishNode(s, r);
}
tsParseLiteralTypeNode() {
let r = this.startNode();
switch (this.state.type) {
case 135:
case 136:
case 134:
case 85:
case 86:
r.literal = super.parseExprAtom();
break;
default:
this.unexpected();
}
return this.finishNode(r, "TSLiteralType");
}
tsParseTemplateLiteralType() {
{
let r = this.startNode();
return r.literal = super.parseTemplate(!1), this.finishNode(r, "TSLiteralType");
}
}
parseTemplateSubstitution() {
return this.state.inType ? this.tsParseType() : super.parseTemplateSubstitution();
}
tsParseThisTypeOrThisTypePredicate() {
let r = this.tsParseThisTypeNode();
return this.isContextual(116) && !this.hasPrecedingLineBreak() ? this.tsParseThisTypePredicate(r) : r;
}
tsParseNonArrayType() {
switch (this.state.type) {
case 134:
case 135:
case 136:
case 85:
case 86:
return this.tsParseLiteralTypeNode();
case 53:
if (this.state.value === "-") {
let r = this.startNode(), n = this.lookahead();
return n.type !== 135 && n.type !== 136 && this.unexpected(), r.literal = this.parseMaybeUnary(), this.finishNode(r, "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 (et(r) || r === 88 || r === 84) {
let n = r === 88 ? "TSVoidKeyword" : r === 84 ? "TSNullKeyword" : YK(this.state.value);
if (n !== void 0 && this.lookaheadCharCode() !== 46) {
let s = this.startNode();
return this.next(), this.finishNode(s, n);
}
return this.tsParseTypeReference();
}
}
}
this.unexpected();
}
tsParseArrayTypeOrHigher() {
let {
startLoc: r
} = this.state, n = this.tsParseNonArrayType();
for (; !this.hasPrecedingLineBreak() && this.eat(0); )
if (this.match(3)) {
let s = this.startNodeAt(r);
s.elementType = n, this.expect(3), n = this.finishNode(s, "TSArrayType");
} else {
let s = this.startNodeAt(r);
s.objectType = n, s.indexType = this.tsParseType(), this.expect(3), n = this.finishNode(s, "TSIndexedAccessType");
}
return n;
}
tsParseTypeOperator() {
let r = this.startNode(), n = this.state.value;
return this.next(), r.operator = n, r.typeAnnotation = this.tsParseTypeOperatorOrHigher(), n === "readonly" && this.tsCheckTypeAnnotationForReadOnly(
r), this.finishNode(r, "TSTypeOperator");
}
tsCheckTypeAnnotationForReadOnly(r) {
switch (r.typeAnnotation.type) {
case "TSTupleType":
case "TSArrayType":
return;
default:
this.raise(de.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 hK(this.state.type) && !this.state.containsEsc ? this.tsParseTypeOperator() : this.isContextual(115) ? this.tsParseInferType() :
this.tsInAllowConditionalTypesContext(() => this.tsParseArrayTypeOrHigher());
}
tsParseUnionOrIntersectionType(r, n, s) {
let a = this.startNode(), o = this.eat(s), l = [];
do
l.push(n());
while (this.eat(s));
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 (et(this.state.type) || this.match(78))
return this.next(), !0;
if (this.match(5)) {
let {
errors: r
} = this.state, n = r.length;
try {
return this.parseObjectLike(8, !0), r.length === n;
} catch {
return !1;
}
}
if (this.match(0)) {
this.next();
let {
errors: r
} = this.state, n = r.length;
try {
return super.parseBindingList(3, 93, 1), r.length === n;
} catch {
return !1;
}
}
return !1;
}
tsIsUnambiguouslyStartOfFunctionType() {
return this.next(), !!(this.match(11) || this.match(21) || this.tsSkipParameterStart() && (this.match(14) || this.match(12) || this.match(
17) || this.match(29) || this.match(11) && (this.next(), this.match(19))));
}
tsParseTypeOrTypePredicateAnnotation(r) {
return this.tsInType(() => {
let n = this.startNode();
this.expect(r);
let s = this.startNode(), a = !!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));
if (a && this.match(78)) {
let u = this.tsParseThisTypeOrThisTypePredicate();
return u.type === "TSThisType" ? (s.parameterName = u, s.asserts = !0, s.typeAnnotation = null, u = this.finishNode(s, "TSTypePred\
icate")) : (this.resetStartLocationFromNode(u, s), u.asserts = !0), n.typeAnnotation = u, this.finishNode(n, "TSTypeAnnotation");
}
let o = this.tsIsIdentifier() && this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));
if (!o)
return a ? (s.parameterName = this.parseIdentifier(), s.asserts = a, s.typeAnnotation = null, n.typeAnnotation = this.finishNode(s,
"TSTypePredicate"), this.finishNode(n, "TSTypeAnnotation")) : this.tsParseTypeAnnotation(!1, n);
let l = this.tsParseTypeAnnotation(!1);
return s.parameterName = o, s.typeAnnotation = l, s.asserts = a, n.typeAnnotation = this.finishNode(s, "TSTypePredicate"), this.finishNode(
n, "TSTypeAnnotation");
});
}
tsTryParseTypeOrTypePredicateAnnotation() {
if (this.match(14))
return this.tsParseTypeOrTypePredicateAnnotation(14);
}
tsTryParseTypeAnnotation() {
if (this.match(14))
return this.tsParseTypeAnnotation();
}
tsTryParseType() {
return this.tsEatThenParseType(14);
}
tsParseTypePredicatePrefix() {
let r = this.parseIdentifier();
if (this.isContextual(116) && !this.hasPrecedingLineBreak())
return this.next(), r;
}
tsParseTypePredicateAsserts() {
if (this.state.type !== 109)
return !1;
let r = this.state.containsEsc;
return this.next(), !et(this.state.type) && !this.match(78) ? !1 : (r && this.raise(N.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() {
jT(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(de.ReservedTypeAssertion, this.state.startLoc);
let r = this.startNode();
return r.typeAnnotation = this.tsInType(() => (this.next(), this.match(75) ? this.tsParseTypeReference() : this.tsParseType())), this.
expect(48), r.expression = this.parseMaybeUnary(), this.finishNode(r, "TSTypeAssertion");
}
tsParseHeritageClause(r) {
let n = this.state.startLoc, s = this.tsParseDelimitedList("HeritageClauseElement", () => {
{
let a = this.startNode();
return a.expression = this.tsParseEntityName(3), this.match(47) && (a.typeParameters = this.tsParseTypeArguments()), this.finishNode(
a, "TSExpressionWithTypeArguments");
}
});
return s.length || this.raise(de.EmptyHeritageClauseType, n, {
token: r
}), s;
}
tsParseInterfaceDeclaration(r, n = {}) {
if (this.hasFollowingLineBreak()) return null;
this.expectContextual(129), n.declare && (r.declare = !0), et(this.state.type) ? (r.id = this.parseIdentifier(), this.checkIdentifier(
r.id, 130)) : (r.id = null, this.raise(de.MissingInterfaceName, this.state.startLoc)), r.typeParameters = this.tsTryParseTypeParameters(
this.tsParseInOutConstModifiers), this.eat(81) && (r.extends = this.tsParseHeritageClause("extends"));
let s = this.startNode();
return s.body = this.tsInType(this.tsParseObjectTypeMembers.bind(this)), r.body = this.finishNode(s, "TSInterfaceBody"), this.finishNode(
r, "TSInterfaceDeclaration");
}
tsParseTypeAliasDeclaration(r) {
return r.id = this.parseIdentifier(), this.checkIdentifier(r.id, 2), r.typeAnnotation = this.tsInType(() => {
if (r.typeParameters = this.tsTryParseTypeParameters(this.tsParseInOutModifiers), this.expect(29), this.isContextual(114) && this.lookahead().
type !== 16) {
let n = this.startNode();
return this.next(), this.finishNode(n, "TSIntrinsicKeyword");
}
return this.tsParseType();
}), this.semicolon(), this.finishNode(r, "TSTypeAliasDeclaration");
}
tsInTopLevelContext(r) {
if (this.curContext() !== Ze.brace) {
let n = this.state.context;
this.state.context = [n[0]];
try {
return r();
} finally {
this.state.context = n;
}
} else
return r();
}
tsInType(r) {
let n = this.state.inType;
this.state.inType = !0;
try {
return r();
} finally {
this.state.inType = n;
}
}
tsInDisallowConditionalTypesContext(r) {
let n = this.state.inDisallowConditionalTypesContext;
this.state.inDisallowConditionalTypesContext = !0;
try {
return r();
} finally {
this.state.inDisallowConditionalTypesContext = n;
}
}
tsInAllowConditionalTypesContext(r) {
let n = this.state.inDisallowConditionalTypesContext;
this.state.inDisallowConditionalTypesContext = !1;
try {
return r();
} finally {
this.state.inDisallowConditionalTypesContext = n;
}
}
tsEatThenParseType(r) {
if (this.match(r))
return this.tsNextThenParseType();
}
tsExpectThenParseType(r) {
return this.tsInType(() => (this.expect(r), this.tsParseType()));
}
tsNextThenParseType() {
return this.tsInType(() => (this.next(), this.tsParseType()));
}
tsParseEnumMember() {
let r = this.startNode();
return r.id = this.match(134) ? super.parseStringLiteral(this.state.value) : this.parseIdentifier(!0), this.eat(29) && (r.initializer =
super.parseMaybeAssignAllowIn()), this.finishNode(r, "TSEnumMember");
}
tsParseEnumDeclaration(r, n = {}) {
return n.const && (r.const = !0), n.declare && (r.declare = !0), this.expectContextual(126), r.id = this.parseIdentifier(), this.checkIdentifier(
r.id, r.const ? 8971 : 8459), this.expect(5), r.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)),
this.expect(8), this.finishNode(r, "TSEnumDeclaration");
}
tsParseEnumBody() {
let r = this.startNode();
return this.expect(5), r.members = this.tsParseDelimitedList("EnumMembers", this.tsParseEnumMember.bind(this)), this.expect(8), this.finishNode(
r, "TSEnumBody");
}
tsParseModuleBlock() {
let r = this.startNode();
return this.scope.enter(0), this.expect(5), super.parseBlockOrModuleBlockBody(r.body = [], void 0, !0, 8), this.scope.exit(), this.finishNode(
r, "TSModuleBlock");
}
tsParseModuleOrNamespaceDeclaration(r, n = !1) {
if (r.id = this.parseIdentifier(), n || this.checkIdentifier(r.id, 1024), this.eat(16)) {
let s = this.startNode();
this.tsParseModuleOrNamespaceDeclaration(s, !0), r.body = s;
} else
this.scope.enter(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.kind = "global", r.global = !0, r.id = this.parseIdentifier()) : this.match(134) ? (r.kind = "modul\
e", r.id = super.parseStringLiteral(this.state.value)) : this.unexpected(), this.match(5) ? (this.scope.enter(256), this.prodParam.enter(0),
r.body = this.tsParseModuleBlock(), this.prodParam.exit(), this.scope.exit()) : this.semicolon(), this.finishNode(r, "TSModuleDeclarat\
ion");
}
tsParseImportEqualsDeclaration(r, n, s) {
r.isExport = s || !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(de.ImportAliasHasImportType, a), r.moduleReference =
a, this.semicolon(), this.finishNode(r, "TSImportEqualsDeclaration");
}
tsIsExternalModuleReference() {
return this.isContextual(119) && this.lookaheadCharCode() === 40;
}
tsParseModuleReference() {
return this.tsIsExternalModuleReference() ? this.tsParseExternalModuleReference() : this.tsParseEntityName(0);
}
tsParseExternalModuleReference() {
let r = this.startNode();
return this.expectContextual(119), this.expect(10), this.match(134) || this.unexpected(), r.expression = super.parseExprAtom(), this.expect(
11), this.sawUnambiguousESM = !0, this.finishNode(r, "TSExternalModuleReference");
}
tsLookAhead(r) {
let n = this.state.clone(), s = r();
return this.state = n, s;
}
tsTryParseAndCatch(r) {
let n = this.tryParse((s) => r() || s());
if (!(n.aborted || !n.node))
return n.error && (this.state = n.failState), n.node;
}
tsTryParse(r) {
let n = this.state.clone(), s = r();
if (s !== void 0 && s !== !1)
return s;
this.state = n;
}
tsTryParseDeclare(r) {
if (this.isLineTerminator())
return;
let n = this.state.type, s;
return this.isContextual(100) && (n = 74, s = "let"), this.tsInAmbientContext(() => {
switch (n) {
case 68:
return r.declare = !0, super.parseFunctionStatement(r, !1, !1);
case 80:
return r.declare = !0, this.parseClass(r, !0, !1);
case 126:
return this.tsParseEnumDeclaration(r, {
declare: !0
});
case 112:
return this.tsParseAmbientExternalModuleDeclaration(r);
case 75:
case 74:
return !this.match(75) || !this.isLookaheadContextual("enum") ? (r.declare = !0, this.parseVarStatement(r, s || this.state.value,
!0)) : (this.expect(75), this.tsParseEnumDeclaration(r, {
const: !0,
declare: !0
}));
case 129: {
let a = this.tsParseInterfaceDeclaration(r, {
declare: !0
});
if (a) return a;
}
default:
if (et(n))
return this.tsParseDeclaration(r, this.state.value, !0, null);
}
});
}
tsTryParseExportDeclaration() {
return this.tsParseDeclaration(this.startNode(), this.state.value, !0, null);
}
tsParseExpressionStatement(r, n, s) {
switch (n.name) {
case "declare": {
let 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.kind = "global", r.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, s);
}
}
tsParseDeclaration(r, n, s, a) {
switch (n) {
case "abstract":
if (this.tsCheckLineTerminator(s) && (this.match(80) || et(this.state.type)))
return this.tsParseAbstractDeclaration(r, a);
break;
case "module":
if (this.tsCheckLineTerminator(s)) {
if (this.match(134))
return this.tsParseAmbientExternalModuleDeclaration(r);
if (et(this.state.type))
return r.kind = "module", this.tsParseModuleOrNamespaceDeclaration(r);
}
break;
case "namespace":
if (this.tsCheckLineTerminator(s) && et(this.state.type))
return r.kind = "namespace", this.tsParseModuleOrNamespaceDeclaration(r);
break;
case "type":
if (this.tsCheckLineTerminator(s) && et(this.state.type))
return this.tsParseTypeAliasDeclaration(r);
break;
}
}
tsCheckLineTerminator(r) {
return r ? this.hasFollowingLineBreak() ? !1 : (this.next(), !0) : !this.isLineTerminator();
}
tsTryParseGenericAsyncArrowFunction(r) {
if (!this.match(47)) return;
let n = this.state.maybeInArrowParameters;
this.state.maybeInArrowParameters = !0;
let s = this.tsTryParseAndCatch(() => {
let 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, !!s)
return super.parseArrowExpression(s, null, !0);
}
tsParseTypeArgumentsInExpression() {
if (this.reScan_lt() === 47)
return this.tsParseTypeArguments();
}
tsParseTypeArguments() {
let r = this.startNode();
return r.params = this.tsInType(() => this.tsInTopLevelContext(() => (this.expect(47), this.tsParseDelimitedList("TypeParametersOrArgu\
ments", this.tsParseType.bind(this))))), r.params.length === 0 ? this.raise(de.EmptyTypeArguments, r) : !this.state.inType && this.curContext() ===
Ze.brace && this.reScan_lt_gt(), this.expect(48), this.finishNode(r, "TSTypeParameterInstantiation");
}
tsIsDeclarationStart() {
return mK(this.state.type);
}
isExportDefaultSpecifier() {
return this.tsIsDeclarationStart() ? !1 : super.isExportDefaultSpecifier();
}
parseBindingElement(r, n) {
let s = 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(de.UnexpectedParameterModifier, s);
let c = this.parseMaybeDefault();
r & 2 && this.parseFunctionParamType(c);
let p = this.parseMaybeDefault(c.loc.start, c);
if (o || u || l) {
let f = this.startNodeAt(s);
return n.length && (f.decorators = n), o && (f.accessibility = o), u && (f.readonly = u), l && (f.override = l), p.type !== "Identif\
ier" && p.type !== "AssignmentPattern" && this.raise(de.UnsupportedParameterPropertyKind, f), f.parameter = p, this.finishNode(f, "TSParamet\
erProperty");
}
return n.length && (c.decorators = n), p;
}
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(de.PatternIsOptional, n);
}
setArrowFunctionParameters(r, n, s) {
super.setArrowFunctionParameters(r, n, s), this.tsDisallowOptionalPattern(r);
}
parseFunctionBodyAndFinish(r, n, s = !1) {
this.match(14) && (r.returnType = this.tsParseTypeOrTypePredicateAnnotation(14));
let 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(de.DeclareFunctionHasImplementation, r), r.declare) ? super.parseFunctionBodyAndFinish(r, a, s) : (this.tsDisallowOptionalPattern(
r), super.parseFunctionBodyAndFinish(r, n, s));
}
registerFunctionStatementId(r) {
!r.body && r.id ? this.checkIdentifier(r.id, 1024) : super.registerFunctionStatementId(r);
}
tsCheckForInvalidTypeCasts(r) {
r.forEach((n) => {
n?.type === "TSTypeCastExpression" && this.raise(de.UnexpectedTypeAnnotation, n.typeAnnotation);
});
}
toReferencedList(r, n) {
return this.tsCheckForInvalidTypeCasts(r), r;
}
parseArrayLike(r, n, s, a) {
let o = super.parseArrayLike(r, n, s, a);
return o.type === "ArrayExpression" && this.tsCheckForInvalidTypeCasts(o.elements), o;
}
parseSubscript(r, n, s, 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 (s)
return a.stop = !0, r;
a.optionalChainMember = o = !0, this.next();
}
if (this.match(47) || this.match(51)) {
let l, u = this.tsTryParseAndCatch(() => {
if (!s && 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 (Ll(this.state.type)) {
let h = super.parseTaggedTemplateExpression(r, n, a);
return h.typeParameters = c, h;
}
if (!s && this.eat(10)) {
let h = this.startNodeAt(n);
return h.callee = r, h.arguments = this.parseCallExpressionArguments(11), this.tsCheckForInvalidTypeCasts(h.arguments), h.typeParameters =
c, a.optionalChainMember && (h.optional = o), this.finishCallExpression(h, a.optionalChainMember);
}
let p = this.state.type;
if (p === 48 || p === 52 || p !== 10 && Va(p) && !this.hasPrecedingLineBreak())
return;
let f = this.startNodeAt(n);
return f.expression = r, f.typeParameters = c, this.finishNode(f, "TSInstantiationExpression");
});
if (l && this.unexpected(l, 10), u)
return u.type === "TSInstantiationExpression" && (this.match(16) || this.match(18) && this.lookaheadCharCode() !== 40) && this.raise(
de.InvalidPropertyAccessAfterInstantiationExpression, this.state.startLoc), u;
}
return super.parseSubscript(r, n, s, a);
}
parseNewCallee(r) {
var n;
super.parseNewCallee(r);
let {
callee: s
} = r;
s.type === "TSInstantiationExpression" && !((n = s.extra) != null && n.parenthesized) && (r.typeParameters = s.typeParameters, r.callee =
s.expression);
}
parseExprOp(r, n, s) {
let a;
if (kl(58) > s && !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(N.UnexpectedKeyword,
this.state.startLoc, {
keyword: "const"
}), this.tsParseTypeReference()) : this.tsParseType())), this.finishNode(o, a ? "TSSatisfiesExpression" : "TSAsExpression"), this.reScan_lt_gt(),
this.parseExprOp(o, n, s);
}
return super.parseExprOp(r, n, s);
}
checkReservedWord(r, n, s, a) {
this.state.isAmbientContext || super.checkReservedWord(r, n, s, a);
}
checkImportReflection(r) {
super.checkImportReflection(r), r.module && r.importKind !== "value" && this.raise(de.ImportReflectionHasImportType, r.specifiers[0].loc.
start);
}
checkDuplicateExports() {
}
isPotentialImportPhase(r) {
if (super.isPotentialImportPhase(r)) return !0;
if (this.isContextual(130)) {
let n = this.lookaheadCharCode();
return r ? n === 123 || n === 42 : n !== 61;
}
return !r && this.isContextual(87);
}
applyImportPhase(r, n, s, a) {
super.applyImportPhase(r, n, s, a), n ? r.exportKind = s === "type" ? "type" : "value" : r.importKind = s === "type" || s === "typeof" ?
s : "value";
}
parseImport(r) {
if (this.match(134))
return r.importKind = "value", super.parseImport(r);
let n;
if (et(this.state.type) && this.lookaheadCharCode() === 61)
return r.importKind = "value", this.tsParseImportEqualsDeclaration(r);
if (this.isContextual(130)) {
let s = this.parseMaybeImportPhase(r, !1);
if (this.lookaheadCharCode() === 61)
return this.tsParseImportEqualsDeclaration(r, s);
n = super.parseImportSpecifiersAndAfter(r, s);
} else
n = super.parseImport(r);
return n.importKind === "type" && n.specifiers.length > 1 && n.specifiers[0].type === "ImportDefaultSpecifier" && this.raise(de.TypeImportCannotSpecifyDefaultAndNamed,
n), n;
}
parseExport(r, n) {
if (this.match(83)) {
let s = r;
this.next();
let a = null;
return this.isContextual(130) && this.isPotentialImportPhase(!1) ? a = this.parseMaybeImportPhase(s, !1) : s.importKind = "value", this.
tsParseImportEqualsDeclaration(s, a, !0);
} else if (this.eat(29)) {
let s = r;
return s.expression = super.parseExpression(), this.semicolon(), this.sawUnambiguousESM = !0, this.finishNode(s, "TSExportAssignment");
} else if (this.eatContextual(93)) {
let s = r;
return this.expectContextual(128), s.id = this.parseIdentifier(), this.semicolon(), this.finishNode(s, "TSNamespaceExportDeclaration");
} else
return super.parseExport(r, n);
}
isAbstractClass() {
return this.isContextual(124) && this.lookahead().type === 80;
}
parseExportDefaultExpression() {
if (this.isAbstractClass()) {
let r = this.startNode();
return this.next(), r.abstract = !0, this.parseClass(r, !0, !0);
}
if (this.match(129)) {
let r = this.tsParseInterfaceDeclaration(this.startNode());
if (r) return r;
}
return super.parseExportDefaultExpression();
}
parseVarStatement(r, n, s = !1) {
let {
isAmbientContext: a
} = this.state, o = super.parseVarStatement(r, n, s || a);
if (!a) return o;
for (let {
id: l,
init: u
} of o.declarations)
u && (n !== "const" || l.typeAnnotation ? this.raise(de.InitializerNotAllowedInAmbientContext, u) : QK(u, this.hasPlugin("estree")) ||
this.raise(de.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference, u));
return o;
}
parseStatementContent(r, n) {
if (this.match(75) && this.isLookaheadContextual("enum")) {
let s = this.startNode();
return this.expect(75), this.tsParseEnumDeclaration(s, {
const: !0
});
}
if (this.isContextual(126))
return this.tsParseEnumDeclaration(this.startNode());
if (this.isContextual(129)) {
let s = this.tsParseInterfaceDeclaration(this.startNode());
if (s) return s;
}
return super.parseStatementContent(r, n);
}
parseAccessModifier() {
return this.tsParseModifier(["public", "protected", "private"]);
}
tsHasSomeModifiers(r, n) {
return n.some((s) => LT(s) ? r.accessibility === s : !!r[s]);
}
tsIsStartOfStaticBlocks() {
return this.isContextual(106) && this.lookaheadCharCode() === 123;
}
parseClassMember(r, n, s) {
let a = ["declare", "private", "public", "protected", "override", "abstract", "readonly", "static"];
this.tsParseModifiers({
allowedModifiers: a,
disallowedModifiers: ["in", "out"],
stopOnStartOfClassStaticBlock: !0,
errorTemplate: de.InvalidModifierOnTypeParameterPositions
}, n);
let o = /* @__PURE__ */ i(() => {
this.tsIsStartOfStaticBlocks() ? (this.next(), this.next(), this.tsHasSomeModifiers(n, a) && this.raise(de.StaticBlockCannotHaveModifier,
this.state.curPosition()), super.parseClassStaticBlock(r, n)) : this.parseClassMemberWithIsStatic(r, n, s, !!n.static);
}, "callParseClassMemberWithIsStatic");
n.declare ? this.tsInAmbientContext(o) : o();
}
parseClassMemberWithIsStatic(r, n, s, a) {
let o = this.tsTryParseIndexSignature(n);
if (o) {
r.body.push(o), n.abstract && this.raise(de.IndexSignatureHasAbstract, n), n.accessibility && this.raise(de.IndexSignatureHasAccessibility,
n, {
modifier: n.accessibility
}), n.declare && this.raise(de.IndexSignatureHasDeclare, n), n.override && this.raise(de.IndexSignatureHasOverride, n);
return;
}
!this.state.inAbstractClass && n.abstract && this.raise(de.NonAbstractClassHasAbstractMethod, n), n.override && (s.hadSuperClass || this.
raise(de.OverrideNotInSubClass, n)), super.parseClassMemberWithIsStatic(r, n, s, a);
}
parsePostMemberNameModifiers(r) {
this.eat(17) && (r.optional = !0), r.readonly && this.match(10) && this.raise(de.ClassMethodHasReadonly, r), r.declare && this.match(10) &&
this.raise(de.ClassMethodHasDeclare, r);
}
parseExpressionStatement(r, n, s) {
return (n.type === "Identifier" ? this.tsParseExpressionStatement(r, n, s) : void 0) || super.parseExpressionStatement(r, n, s);
}
shouldParseExportDeclaration() {
return this.tsIsDeclarationStart() ? !0 : super.shouldParseExportDeclaration();
}
parseConditional(r, n, s) {
if (!this.match(17)) return r;
if (this.state.maybeInArrowParameters) {
let a = this.lookaheadCharCode();
if (a === 44 || a === 61 || a === 58 || a === 41)
return this.setOptionalParametersError(s), r;
}
return super.parseConditional(r, n, s);
}
parseParenItem(r, n) {
let s = super.parseParenItem(r, n);
if (this.eat(17) && (s.optional = !0, this.resetEndLocation(r)), this.match(14)) {
let 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, s = this.eatContextual(125);
if (s && (this.isContextual(125) || !this.shouldParseExportDeclaration()))
throw this.raise(de.ExpectedAmbientAfterExportDeclare, this.state.startLoc);
let o = et(this.state.type) && this.tsTryParseExportDeclaration() || super.parseExportDeclaration(r);
return o ? ((o.type === "TSInterfaceDeclaration" || o.type === "TSTypeAliasDeclaration" || s) && (r.exportKind = "type"), s && o.type !==
"TSImportEqualsDeclaration" && (this.resetStartLocation(o, n), o.declare = !0), o) : null;
}
parseClassId(r, n, s, a) {
if ((!n || s) && this.isContextual(113))
return;
super.parseClassId(r, n, s, 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(de.DeclareClassFieldHasInitializer, this.state.startLoc), r.abstract && this.match(29)) {
let {
key: n
} = r;
this.raise(de.AbstractPropertyHasInitializer, this.state.startLoc, {
propertyName: n.type === "Identifier" && !r.computed ? n.name : `[${this.input.slice(this.offsetToSourcePos(n.start), this.offsetToSourcePos(
n.end))}]`
});
}
return super.parseClassProperty(r);
}
parseClassPrivateProperty(r) {
return r.abstract && this.raise(de.PrivateElementHasAbstract, r), r.accessibility && this.raise(de.PrivateElementHasAccessibility, r, {
modifier: r.accessibility
}), this.parseClassPropertyAnnotation(r), super.parseClassPrivateProperty(r);
}
parseClassAccessorProperty(r) {
return this.parseClassPropertyAnnotation(r), r.optional && this.raise(de.AccessorCannotBeOptional, r), super.parseClassAccessorProperty(
r);
}
pushClassMethod(r, n, s, a, o, l) {
let u = this.tsTryParseTypeParameters(this.tsParseConstModifier);
u && o && this.raise(de.ConstructorHasTypeParameters, u);
let {
declare: c = !1,
kind: p
} = n;
c && (p === "get" || p === "set") && this.raise(de.DeclareAccessor, n, {
kind: p
}), u && (n.typeParameters = u), super.pushClassMethod(r, n, s, a, o, l);
}
pushClassPrivateMethod(r, n, s, a) {
let o = this.tsTryParseTypeParameters(this.tsParseConstModifier);
o && (n.typeParameters = o), super.pushClassPrivateMethod(r, n, s, 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, s, a, o, l, u) {
let c = this.tsTryParseTypeParameters(this.tsParseConstModifier);
return c && (r.typeParameters = c), super.parseObjPropValue(r, n, s, a, o, l, u);
}
parseFunctionParams(r, n) {
let s = this.tsTryParseTypeParameters(this.tsParseConstModifier);
s && (r.typeParameters = s), super.parseFunctionParams(r, n);
}
parseVarId(r, n) {
super.parseVarId(r, n), r.id.type === "Identifier" && !this.hasPrecedingLineBreak() && this.eat(35) && (r.definite = !0);
let s = this.tsTryParseTypeAnnotation();
s && (r.id.typeAnnotation = s, this.resetEndLocation(r.id));
}
parseAsyncArrowFromCallExpression(r, n) {
return this.match(14) && (r.returnType = this.tsParseTypeAnnotation()), super.parseAsyncArrowFromCallExpression(r, n);
}
parseMaybeAssign(r, n) {
var s, a, o, l, u;
let c, p, f;
if (this.hasPlugin("jsx") && (this.match(143) || this.match(47))) {
if (c = this.state.clone(), p = this.tryParse(() => super.parseMaybeAssign(r, n), c), !p.error) return p.node;
let {
context: E
} = this.state, d = E[E.length - 1];
(d === Ze.j_oTag || d === Ze.j_expr) && E.pop();
}
if (!((s = p) != null && s.error) && !this.match(47))
return super.parseMaybeAssign(r, n);
(!c || c === this.state) && (c = this.state.clone());
let h, y = this.tryParse((E) => {
var d, g;
h = this.tsParseTypeParameters(this.tsParseConstModifier);
let C = super.parseMaybeAssign(r, n);
return (C.type !== "ArrowFunctionExpression" || (d = C.extra) != null && d.parenthesized) && E(), ((g = h) == null ? void 0 : g.params.
length) !== 0 && this.resetStartLocationFromNode(C, h), C.typeParameters = h, C;
}, c);
if (!y.error && !y.aborted)
return h && this.reportReservedArrowTypeParam(h), y.node;
if (!p && (jT(!this.hasPlugin("jsx")), f = this.tryParse(() => super.parseMaybeAssign(r, n), c), !f.error))
return f.node;
if ((a = p) != null && a.node)
return this.state = p.failState, p.node;
if (y.node)
return this.state = y.failState, h && this.reportReservedArrowTypeParam(h), y.node;
if ((o = f) != null && o.node)
return this.state = f.failState, f.node;
throw ((l = p) == null ? void 0 : l.error) || y.error || ((u = f) == 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(de.ReservedArrowTypeParam, r);
}
parseMaybeUnary(r, n) {
return !this.hasPlugin("jsx") && this.match(47) ? this.tsParseTypeAssertion() : super.parseMaybeUnary(r, n);
}
parseArrow(r) {
if (this.match(14)) {
let n = this.tryParse((s) => {
let a = this.tsParseTypeOrTypePredicateAnnotation(14);
return (this.canInsertSemicolon() || !this.match(19)) && s(), a;
});
if (n.aborted) return;
n.thrown || (n.error && (this.state = n.failState), r.returnType = n.node);
}
return super.parseArrow(r);
}
parseFunctionParamType(r) {
this.eat(17) && (r.optional = !0);
let n = this.tsTryParseTypeAnnotation();
return n && (r.typeAnnotation = n), this.resetEndLocation(r), r;
}
isAssignable(r, n) {
switch (r.type) {
case "TSTypeCastExpression":
return this.isAssignable(r.expression, n);
case "TSParameterProperty":
return !0;
default:
return super.isAssignable(r, n);
}
}
toAssignable(r, n = !1) {
switch (r.type) {
case "ParenthesizedExpression":
this.toAssignableParenthesizedExpression(r, n);
break;
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSNonNullExpression":
case "TSTypeAssertion":
n ? this.expressionScope.recordArrowParameterBindingError(de.UnexpectedTypeCastInParameter, r) : this.raise(de.UnexpectedTypeCastInParameter,
r), this.toAssignable(r.expression, n);
break;
case "AssignmentExpression":
!n && r.left.type === "TSTypeCastExpression" && (r.left = this.typeCastToParameter(r.left));
default:
super.toAssignable(r, n);
}
}
toAssignableParenthesizedExpression(r, n) {
switch (r.expression.type) {
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSNonNullExpression":
case "TSTypeAssertion":
case "ParenthesizedExpression":
this.toAssignable(r.expression, n);
break;
default:
super.toAssignable(r, n);
}
}
checkToRestConversion(r, n) {
switch (r.type) {
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSTypeAssertion":
case "TSNonNullExpression":
this.checkToRestConversion(r.expression, !1);
break;
default:
super.checkToRestConversion(r, n);
}
}
isValidLVal(r, n, s) {
switch (r) {
case "TSTypeCastExpression":
return !0;
case "TSParameterProperty":
return "parameter";
case "TSNonNullExpression":
return "expression";
case "TSAsExpression":
case "TSSatisfiesExpression":
case "TSTypeAssertion":
return (s !== 64 || !n) && ["expression", !0];
default:
return super.isValidLVal(r, n, s);
}
}
parseBindingAtom() {
return this.state.type === 78 ? this.parseIdentifier(!0) : super.parseBindingAtom();
}
parseMaybeDecoratorArguments(r, n) {
if (this.match(47) || this.match(51)) {
let s = this.tsParseTypeArgumentsInExpression();
if (this.match(10)) {
let a = super.parseMaybeDecoratorArguments(r, n);
return a.typeParameters = s, a;
}
this.unexpected(null, 10);
}
return super.parseMaybeDecoratorArguments(r, n);
}
checkCommaAfterRest(r) {
return this.state.isAmbientContext && this.match(12) && this.lookaheadCharCode() === r ? (this.next(), !1) : super.checkCommaAfterRest(
r);
}
isClassMethod() {
return this.match(47) || super.isClassMethod();
}
isClassProperty() {
return this.match(35) || this.match(14) || super.isClassProperty();
}
parseMaybeDefault(r, n) {
let s = super.parseMaybeDefault(r, n);
return s.type === "AssignmentPattern" && s.typeAnnotation && s.right.start < s.typeAnnotation.start && this.raise(de.TypeAnnotationAfterAssign,
s.typeAnnotation), s;
}
getTokenFromCode(r) {
if (this.state.inType) {
if (r === 62) {
this.finishOp(48, 1);
return;
}
if (r === 60) {
this.finishOp(47, 1);
return;
}
}
super.getTokenFromCode(r);
}
reScan_lt_gt() {
let {
type: r
} = this.state;
r === 47 ? (this.state.pos -= 1, this.readToken_lt()) : r === 48 && (this.state.pos -= 1, this.readToken_gt());
}
reScan_lt() {
let {
type: r
} = this.state;
return r === 51 ? (this.state.pos -= 2, this.finishOp(47, 1), 47) : r;
}
toAssignableListItem(r, n, s) {
let a = r[n];
a.type === "TSTypeCastExpression" && (r[n] = this.typeCastToParameter(a)), super.toAssignableListItem(r, n, s);
}
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: s
} = this.state;
this.state.isAmbientContext = !0, this.state.strict = !1;
try {
return r();
} finally {
this.state.isAmbientContext = n, this.state.strict = s;
}
}
parseClass(r, n, s) {
let a = this.state.inAbstractClass;
this.state.inAbstractClass = !!r.abstract;
try {
return super.parseClass(r, n, s);
} 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(de.NonClassMethodPropertyHasAbstractModifer, r), this.tsParseInterfaceDeclaration(r);
} else
this.unexpected(null, 80);
}
parseMethod(r, n, s, a, o, l, u) {
let c = super.parseMethod(r, n, s, a, o, l, u);
if (c.abstract && (this.hasPlugin("estree") ? c.value : c).body) {
let {
key: h
} = c;
this.raise(de.AbstractMethodHasImplementation, c, {
methodName: h.type === "Identifier" && !c.computed ? h.name : `[${this.input.slice(this.offsetToSourcePos(h.start), this.offsetToSourcePos(
h.end))}]`
});
}
return c;
}
tsParseTypeParameterName() {
return this.parseIdentifier().name;
}
shouldParseAsAmbientContext() {
return !!this.getPluginOption("typescript", "dts");
}
parse() {
return this.shouldParseAsAmbientContext() && (this.state.isAmbientContext = !0), super.parse();
}
getExpression() {
return this.shouldParseAsAmbientContext() && (this.state.isAmbientContext = !0), super.getExpression();
}
parseExportSpecifier(r, n, s, a) {
return !n && a ? (this.parseTypeOnlyImportExportSpecifier(r, !1, s), this.finishNode(r, "ExportSpecifier")) : (r.exportKind = "value",
super.parseExportSpecifier(r, n, s, a));
}
parseImportSpecifier(r, n, s, a, o) {
return !n && a ? (this.parseTypeOnlyImportExportSpecifier(r, !0, s), this.finishNode(r, "ImportSpecifier")) : (r.importKind = "value",
super.parseImportSpecifier(r, n, s, a, s ? 4098 : 4096));
}
parseTypeOnlyImportExportSpecifier(r, n, s) {
let a = n ? "imported" : "local", o = n ? "local" : "exported", l = r[a], u, c = !1, p = !0, f = l.loc.start;
if (this.isContextual(93)) {
let y = this.parseIdentifier();
if (this.isContextual(93)) {
let E = this.parseIdentifier();
Kr(this.state.type) ? (c = !0, l = y, u = n ? this.parseIdentifier() : this.parseModuleExportName(), p = !1) : (u = E, p = !1);
} else Kr(this.state.type) ? (p = !1, u = n ? this.parseIdentifier() : this.parseModuleExportName()) : (c = !0, l = y);
} else Kr(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 && s && this.raise(n ? de.TypeModifierIsUsedInTypeImports : de.TypeModifierIsUsedInTypeExports, f), r[a] = l, r[o] = u;
let h = n ? "importKind" : "exportKind";
r[h] = c ? "type" : "value", p && 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 zK(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 : tS(e.object);
}
i(zK, "isPossiblyLiteralEnum");
function QK(e, t) {
var r;
let {
type: n
} = e;
if ((r = e.extra) != null && r.parenthesized)
return !1;
if (t) {
if (n === "Literal") {
let {
value: s
} = e;
if (typeof s == "string" || typeof s == "boolean")
return !0;
}
} else if (n === "StringLiteral" || n === "BooleanLiteral")
return !0;
return !!(eS(e, t) || ZK(e, t) || n === "TemplateLiteral" && e.expressions.length === 0 || zK(e));
}
i(QK, "isValidAmbientConstInitializer");
function eS(e, t) {
return t ? e.type === "Literal" && (typeof e.value == "number" || "bigint" in e) : e.type === "NumericLiteral" || e.type === "BigIntLite\
ral";
}
i(eS, "isNumber");
function ZK(e, t) {
if (e.type === "UnaryExpression") {
let {
operator: r,
argument: n
} = e;
if (r === "-" && eS(n, t))
return !0;
}
return !1;
}
i(ZK, "isNegativeNumber");
function tS(e) {
return e.type === "Identifier" ? !0 : e.type !== "MemberExpression" || e.computed ? !1 : tS(e.object);
}
i(tS, "isUncomputedMemberExpressionChain");
var MT = wn`placeholders`({
ClassNameIsRequired: "A class name is required.",
UnexpectedSpace: "Unexpected space in placeholder."
}), eG = /* @__PURE__ */ i((e) => class extends e {
static {
i(this, "PlaceholdersParserMixin");
}
parsePlaceholder(r) {
if (this.match(133)) {
let n = this.startNode();
return this.next(), this.assertNoSpace(), n.name = super.parseIdentifier(!0), this.assertNoSpace(), this.expect(133), this.finishPlaceholder(
n, r);
}
}
finishPlaceholder(r, n) {
let s = r;
return (!s.expectedNode || !s.type) && (s = this.finishNode(s, "Placeholder")), s.expectedNode = n, s;
}
getTokenFromCode(r) {
r === 37 && this.input.charCodeAt(this.state.pos + 1) === 37 ? this.finishOp(133, 2) : super.getTokenFromCode(r);
}
parseExprAtom(r) {
return this.parsePlaceholder("Expression") || super.parseExprAtom(r);
}
parseIdentifier(r) {
return this.parsePlaceholder("Identifier") || super.parseIdentifier(r);
}
checkReservedWord(r, n, s, a) {
r !== void 0 && super.checkReservedWord(r, n, s, a);
}
parseBindingAtom() {
return this.parsePlaceholder("Pattern") || super.parseBindingAtom();
}
isValidLVal(r, n, s) {
return r === "Placeholder" || super.isValidLVal(r, n, s);
}
toAssignable(r, n) {
r && r.type === "Placeholder" && r.expectedNode === "Expression" ? r.expectedNode = "Pattern" : super.toAssignable(r, n);
}
chStartsBindingIdentifier(r, n) {
return !!(super.chStartsBindingIdentifier(r, n) || this.lookahead().type === 133);
}
verifyBreakContinue(r, n) {
r.label && r.label.type === "Placeholder" || super.verifyBreakContinue(r, n);
}
parseExpressionStatement(r, n) {
var s;
if (n.type !== "Placeholder" || (s = n.extra) != null && s.parenthesized)
return super.parseExpressionStatement(r, n);
if (this.match(14)) {
let 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, s) {
return this.parsePlaceholder("BlockStatement") || super.parseBlock(r, n, s);
}
parseFunctionId(r) {
return this.parsePlaceholder("Identifier") || super.parseFunctionId(r);
}
parseClass(r, n, s) {
let a = n ? "ClassDeclaration" : "ClassExpression";
this.next();
let o = this.state.strict, l = this.parsePlaceholder("Identifier");
if (l)
if (this.match(81) || this.match(133) || this.match(5))
r.id = l;
else {
if (s || !n)
return r.id = null, r.body = this.finishPlaceholder(l, "ClassBody"), this.finishNode(r, a);
throw this.raise(MT.ClassNameIsRequired, this.state.startLoc);
}
else
this.parseClassId(r, n, s);
return super.parseClassSuper(r), r.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!r.superClass, o), this.finishNode(
r, a);
}
parseExport(r, n) {
let s = this.parsePlaceholder("Identifier");
if (!s) 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(s, "Declaration"), this.finishNode(a, "ExportNamed\
Declaration");
this.expectPlugin("exportDefaultFrom");
let o = this.startNode();
return o.exported = s, 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(ss(133), this.nextTokenStartSince(r + 4)))
return !0;
}
return super.isExportDefaultSpecifier();
}
maybeParseExportDefaultSpecifier(r, n) {
var s;
return (s = r.specifiers) != null && s.length ? !0 : super.maybeParseExportDefaultSpecifier(r, n);
}
checkExport(r) {
let {
specifiers: n
} = r;
n != null && n.length && (r.specifiers = n.filter((s) => s.exported.type === "Placeholder")), super.checkExport(r), r.specifiers = n;
}
parseImport(r) {
let n = this.parsePlaceholder("Identifier");
if (!n) return super.parseImport(r);
if (r.specifiers = [], !this.isContextual(98) && !this.match(12))
return r.source = this.finishPlaceholder(n, "StringLiteral"), this.semicolon(), this.finishNode(r, "ImportDeclaration");
let s = this.startNodeAtNode(n);
return s.local = n, r.specifiers.push(this.finishNode(s, "ImportDefaultSpecifier")), this.eat(12) && (this.maybeParseStarImportSpecifier(
r) || this.parseNamedImportSpecifiers(r)), this.expectContextual(98), r.source = this.parseImportSource(), this.semicolon(), this.finishNode(
r, "ImportDeclaration");
}
parseImportSource() {
return this.parsePlaceholder("StringLiteral") || super.parseImportSource();
}
assertNoSpace() {
this.state.start > this.offsetToSourcePos(this.state.lastTokEndLoc.index) && this.raise(MT.UnexpectedSpace, this.state.lastTokEndLoc);
}
}, "placeholders"), tG = /* @__PURE__ */ i((e) => class extends e {
static {
i(this, "V8IntrinsicMixin");
}
parseV8Intrinsic() {
if (this.match(54)) {
let r = this.state.startLoc, n = this.startNode();
if (this.next(), et(this.state.type)) {
let s = this.parseIdentifierName(), a = this.createIdentifier(n, s);
if (a.type = "V8IntrinsicIdentifier", this.match(10))
return a;
}
this.unexpected(r);
}
}
parseExprAtom(r) {
return this.parseV8Intrinsic() || super.parseExprAtom(r);
}
}, "v8intrinsic"), RT = ["minimal", "fsharp", "hack", "smart"], qT = ["^^", "@@", "^", "%", "#"];
function rG(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 (!RT.includes(r)) {
let s = RT.map((a) => `"${a}"`).join(", ");
throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`);
}
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 s = e.get("pipelineOperator").topicToken;
if (!qT.includes(s)) {
let a = qT.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 (s === "#" && 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("deprecatedImportAssert") || e.has("importAssertions"))
throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");
if (e.get("moduleAttributes").version !== "may-2020")
throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the on\
ly supported value is 'may-2020'.");
}
if (e.has("importAssertions") && e.has("deprecatedImportAssert"))
throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");
if (!e.has("deprecatedImportAssert") && e.has("importAttributes") && e.get("importAttributes").deprecatedAssertSyntax && e.set("deprecat\
edImportAssert", {}), e.has("recordAndTuple")) {
let 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((s) => `'${s}'`).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'.");
}
i(rG, "validatePlugins");
var rS = {
estree: sK,
jsx: GK,
flow: WK,
typescript: XK,
v8intrinsic: tG,
placeholders: eG
}, nG = Object.keys(rS), xh = class extends Sh {
static {
i(this, "ExpressionParser");
}
checkProto(t, r, n, s) {
if (t.type === "SpreadElement" || this.isObjectMethod(t) || t.computed || t.shorthand)
return n;
let a = t.key;
return (a.type === "Identifier" ? a.name : a.value) === "__proto__" ? r ? (this.raise(N.RecordNoProto, a), !0) : (n && (s ? s.doubleProtoLoc ===
null && (s.doubleProtoLoc = a.loc.start) : this.raise(N.DuplicateProto, a)), !0) : n;
}
shouldExitDescending(t, r) {
return t.type === "ArrowFunctionExpression" && this.offsetToSourcePos(t.start) === r;
}
getExpression() {
this.enterInitialScopes(), this.nextToken();
let t = this.parseExpression();
return this.match(140) || this.unexpected(), this.finalizeRemainingComments(), t.comments = this.comments, t.errors = this.state.errors,
this.optionFlags & 256 && (t.tokens = this.tokens), t;
}
parseExpression(t, r) {
return t ? this.disallowInAnd(() => this.parseExpressionBase(r)) : this.allowInAnd(() => this.parseExpressionBase(r));
}
parseExpressionBase(t) {
let r = this.state.startLoc, n = this.parseMaybeAssign(t);
if (this.match(12)) {
let s = this.startNodeAt(r);
for (s.expressions = [n]; this.eat(12); )
s.expressions.push(this.parseMaybeAssign(t));
return this.toReferencedList(s.expressions), this.finishNode(s, "SequenceExpression");
}
return n;
}
parseMaybeAssignDisallowIn(t, r) {
return this.disallowInAnd(() => this.parseMaybeAssign(t, r));
}
parseMaybeAssignAllowIn(t, r) {
return this.allowInAnd(() => this.parseMaybeAssign(t, r));
}
setOptionalParametersError(t) {
t.optionalParametersLoc = this.state.startLoc;
}
parseMaybeAssign(t, r) {
let n = this.state.startLoc, s = this.isContextual(108);
if (s && this.prodParam.hasYield) {
this.next();
let u = this.parseYield(n);
return r && (u = r.call(this, u, n)), u;
}
let a;
t ? a = !1 : (t = new _i(), a = !0);
let {
type: o
} = this.state;
(o === 10 || et(o)) && (this.state.potentialArrowAt = this.state.start);
let l = this.parseMaybeConditional(t);
if (r && (l = r.call(this, l, n)), uK(this.state.type)) {
let u = this.startNodeAt(n), c = this.state.value;
if (u.operator = c, this.match(29)) {
this.toAssignable(l, !0), u.left = l;
let p = n.index;
t.doubleProtoLoc != null && t.doubleProtoLoc.index >= p && (t.doubleProtoLoc = null), t.shorthandAssignLoc != null && t.shorthandAssignLoc.
index >= p && (t.shorthandAssignLoc = null), t.privateKeyLoc != null && t.privateKeyLoc.index >= p && (this.checkDestructuringPrivate(
t), t.privateKeyLoc = null);
} else
u.left = l;
return this.next(), u.right = this.parseMaybeAssign(), this.checkLVal(l, this.finishNode(u, "AssignmentExpression")), u;
} else a && this.checkExpressionErrors(t, !0);
if (s) {
let {
type: u
} = this.state;
if ((this.hasPlugin("v8intrinsic") ? Va(u) : Va(u) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
return this.raiseOverwrite(N.YieldNotInGeneratorFunction, n), this.parseYield(n);
}
return l;
}
parseMaybeConditional(t) {
let r = this.state.startLoc, n = this.state.potentialArrowAt, s = this.parseExprOps(t);
return this.shouldExitDescending(s, n) ? s : this.parseConditional(s, r, t);
}
parseConditional(t, r, n) {
if (this.eat(17)) {
let s = this.startNodeAt(r);
return s.test = t, s.consequent = this.parseMaybeAssignAllowIn(), this.expect(14), s.alternate = this.parseMaybeAssign(), this.finishNode(
s, "ConditionalExpression");
}
return t;
}
parseMaybeUnaryOrPrivate(t) {
return this.match(139) ? this.parsePrivateName() : this.parseMaybeUnary(t);
}
parseExprOps(t) {
let r = this.state.startLoc, n = this.state.potentialArrowAt, s = this.parseMaybeUnaryOrPrivate(t);
return this.shouldExitDescending(s, n) ? s : this.parseExprOp(s, r, -1);
}
parseExprOp(t, r, n) {
if (this.isPrivateName(t)) {
let a = this.getPrivateNameSV(t);
(n >= kl(58) || !this.prodParam.hasIn || !this.match(58)) && this.raise(N.PrivateInExpectedIn, t, {
identifierName: a
}), this.classScope.usePrivateName(a, t.loc.start);
}
let s = this.state.type;
if (pK(s) && (this.prodParam.hasIn || !this.match(58))) {
let a = kl(s);
if (a > n) {
if (s === 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 = s === 41 || s === 42, u = s === 40;
if (u && (a = kl(42)), this.next(), s === 39 && this.hasPlugin(["pipelineOperator", {
proposal: "minimal"
}]) && this.state.type === 96 && this.prodParam.hasAwait)
throw this.raise(N.UnexpectedAwaitAfterPipelineBody, this.state.startLoc);
o.right = this.parseExprOpRightExpr(s, a);
let c = this.finishNode(o, l || u ? "LogicalExpression" : "BinaryExpression"), p = this.state.type;
if (u && (p === 41 || p === 42) || l && p === 40)
throw this.raise(N.MixingCoalesceWithLogical, this.state.startLoc);
return this.parseExprOp(c, r, n);
}
}
return t;
}
parseExprOpRightExpr(t, r) {
let n = this.state.startLoc;
switch (t) {
case 39:
switch (this.getPluginOption("pipelineOperator", "proposal")) {
case "hack":
return this.withTopicBindingContext(() => this.parseHackPipeBody());
case "fsharp":
return this.withSoloAwaitPermittingContext(() => this.parseFSharpPipelineBody(r));
}
if (this.getPluginOption("pipelineOperator", "proposal") === "smart")
return this.withTopicBindingContext(() => {
if (this.prodParam.hasYield && this.isContextual(108))
throw this.raise(N.PipeBodyIsTighter, this.state.startLoc);
return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t, r), n);
});
default:
return this.parseExprOpBaseRightExpr(t, r);
}
}
parseExprOpBaseRightExpr(t, r) {
let n = this.state.startLoc;
return this.parseExprOp(this.parseMaybeUnaryOrPrivate(), n, yK(t) ? r - 1 : r);
}
parseHackPipeBody() {
var t;
let {
startLoc: r
} = this.state, n = this.parseMaybeAssign();
return zW.has(n.type) && !((t = n.extra) != null && t.parenthesized) && this.raise(N.PipeUnparenthesizedBody, r, {
type: n.type
}), this.topicReferenceWasUsedInCurrentContext() || this.raise(N.PipeTopicUnused, r), n;
}
checkExponentialAfterUnary(t) {
this.match(57) && this.raise(N.UnexpectedTokenUnaryExponentiation, t.argument);
}
parseMaybeUnary(t, r) {
let n = this.state.startLoc, s = this.isContextual(96);
if (s && this.recordAwaitIfAllowed()) {
this.next();
let u = this.parseAwait(n);
return r || this.checkExponentialAfterUnary(u), u;
}
let a = this.match(34), o = this.startNode();
if (dK(this.state.type)) {
o.operator = this.state.value, o.prefix = !0, this.match(72) && this.expectPlugin("throwExpressions");
let u = this.match(89);
if (this.next(), o.argument = this.parseMaybeUnary(null, !0), this.checkExpressionErrors(t, !0), this.state.strict && u) {
let c = o.argument;
c.type === "Identifier" ? this.raise(N.StrictDelete, o) : this.hasPropertyAsPrivateName(c) && this.raise(N.DeletePrivateField, o);
}
if (!a)
return r || this.checkExponentialAfterUnary(o), this.finishNode(o, "UnaryExpression");
}
let l = this.parseUpdate(o, a, t);
if (s) {
let {
type: u
} = this.state;
if ((this.hasPlugin("v8intrinsic") ? Va(u) : Va(u) && !this.match(54)) && !this.isAmbiguousPrefixOrIdentifier())
return this.raiseOverwrite(N.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 s = this.state.startLoc, a = this.parseExprSubscripts(n);
if (this.checkExpressionErrors(n, !1)) return a;
for (; fK(this.state.type) && !this.canInsertSemicolon(); ) {
let o = this.startNodeAt(s);
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, s = this.parseExprAtom(t);
return this.shouldExitDescending(s, n) ? s : this.parseSubscripts(s, r);
}
parseSubscripts(t, r, n) {
let s = {
optionalChainMember: !1,
maybeAsyncArrow: this.atPossibleAsyncArrow(t),
stop: !1
};
do
t = this.parseSubscript(t, r, n, s), s.maybeAsyncArrow = !1;
while (!s.stop);
return t;
}
parseSubscript(t, r, n, s) {
let {
type: a
} = this.state;
if (!n && a === 15)
return this.parseBind(t, r, n, s);
if (Ll(a))
return this.parseTaggedTemplateExpression(t, r, s);
let o = !1;
if (a === 18) {
if (n && (this.raise(N.OptionalChainingNoNew, this.state.startLoc), this.lookaheadCharCode() === 40))
return s.stop = !0, t;
s.optionalChainMember = o = !0, this.next();
}
if (!n && this.match(10))
return this.parseCoverCallAndAsyncArrowHead(t, r, s, o);
{
let l = this.eat(0);
return l || o || this.eat(16) ? this.parseMember(t, r, s, l, o) : (s.stop = !0, t);
}
}
parseMember(t, r, n, s, a) {
let o = this.startNodeAt(r);
return o.object = t, o.computed = s, s ? (o.property = this.parseExpression(), this.expect(3)) : this.match(139) ? (t.type === "Super" &&
this.raise(N.SuperPrivateField, r), this.classScope.usePrivateName(this.state.value, this.state.startLoc), o.property = this.parsePrivateName()) :
o.property = this.parseIdentifier(!0), n.optionalChainMember ? (o.optional = a, this.finishNode(o, "OptionalMemberExpression")) : this.
finishNode(o, "MemberExpression");
}
parseBind(t, r, n, s) {
let a = this.startNodeAt(r);
return a.object = t, this.next(), a.callee = this.parseNoCallExpr(), s.stop = !0, this.parseSubscripts(this.finishNode(a, "BindExpress\
ion"), r, n);
}
parseCoverCallAndAsyncArrowHead(t, r, n, s) {
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(jK()), o = new _i()), c && (l.optional = s), s ? l.arguments = this.parseCallExpressionArguments(11) :
l.arguments = this.parseCallExpressionArguments(11, t.type !== "Super", l, o);
let p = this.finishCallExpression(l, c);
return u && this.shouldParseAsyncArrow() && !s ? (n.stop = !0, this.checkDestructuringPrivate(o), this.expressionScope.validateAsPattern(),
this.expressionScope.exit(), p = this.parseAsyncArrowFromCallExpression(this.startNodeAt(r), p)) : (u && (this.checkExpressionErrors(o,
!0), this.expressionScope.exit()), this.toReferencedArguments(p)), this.state.maybeInArrowParameters = a, p;
}
toReferencedArguments(t, r) {
this.toReferencedListDeep(t.arguments, r);
}
parseTaggedTemplateExpression(t, r, n) {
let s = this.startNodeAt(r);
return s.tag = t, s.quasi = this.parseTemplate(!0), n.optionalChainMember && this.raise(N.OptionalChainingNoTemplate, r), this.finishNode(
s, "TaggedTemplateExpression");
}
atPossibleAsyncArrow(t) {
return t.type === "Identifier" && t.name === "async" && this.state.lastTokEndLoc.index === t.end && !this.canInsertSemicolon() && t.end -
t.start === 5 && this.offsetToSourcePos(t.start) === this.state.potentialArrowAt;
}
finishCallExpression(t, r) {
if (t.callee.type === "Import")
if (t.arguments.length === 0 || t.arguments.length > 2)
this.raise(N.ImportCallArity, t);
else
for (let n of t.arguments)
n.type === "SpreadElement" && this.raise(N.ImportCallSpreadArgument, n);
return this.finishNode(t, r ? "OptionalCallExpression" : "CallExpression");
}
parseCallExpressionArguments(t, r, n, s) {
let a = [], o = !0, l = this.state.inFSharpPipelineDirectBody;
for (this.state.inFSharpPipelineDirectBody = !1; !this.eat(t); ) {
if (o)
o = !1;
else if (this.expect(12), this.match(t)) {
n && this.addTrailingCommaExtraToNode(n), this.next();
break;
}
a.push(this.parseExprListItem(!1, s, r));
}
return this.state.inFSharpPipelineDirectBody = l, a;
}
shouldParseAsyncArrow() {
return this.match(19) && !this.canInsertSemicolon();
}
parseAsyncArrowFromCallExpression(t, r) {
var n;
return this.resetPreviousNodeTrailingComments(r), this.expect(19), this.parseArrowExpression(t, r.arguments, !0, (n = r.extra) == null ?
void 0 : n.trailingCommaLoc), r.innerComments && Ha(t, r.innerComments), r.callee.trailingComments && Ha(t, r.callee.trailingComments),
t;
}
parseNoCallExpr() {
let t = this.state.startLoc;
return this.parseSubscripts(this.parseExprAtom(), t, !0);
}
parseExprAtom(t) {
let r, n = null, {
type: s
} = this.state;
switch (s) {
case 79:
return this.parseSuper();
case 83:
return r = this.startNode(), this.next(), this.match(16) ? this.parseImportMetaProperty(r) : this.match(10) ? this.optionFlags & 512 ?
this.parseImportCall(r) : this.finishNode(r, "Import") : (this.raise(N.UnsupportedImport, this.state.lastTokStartLoc), this.finishNode(
r, "Import"));
case 78:
return r = this.startNode(), this.next(), this.finishNode(r, "ThisExpression");
case 90:
return this.parseDo(this.startNode(), !1);
case 56:
case 31:
return this.readRegexp(), this.parseRegExpLiteral(this.state.value);
case 135:
return this.parseNumericLiteral(this.state.value);
case 136:
return this.parseBigIntLiteral(this.state.value);
case 134:
return this.parseStringLiteral(this.state.value);
case 84:
return this.parseNullLiteral();
case 85:
return this.parseBooleanLiteral(!0);
case 86:
return this.parseBooleanLiteral(!1);
case 10: {
let a = this.state.potentialArrowAt === this.state.start;
return this.parseParenAndDistinguishExpression(a);
}
case 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(N.UnsupportedBind, a);
}
case 139:
return this.raise(N.PrivateInExpectedIn, this.state.startLoc, {
identifierName: this.state.value
}), this.parsePrivateName();
case 33:
return this.parseTopicReferenceThenEqualsSign(54, "%");
case 32:
return this.parseTopicReferenceThenEqualsSign(44, "^");
case 37:
case 38:
return this.parseTopicReference("hack");
case 44:
case 54:
case 27: {
let a = this.getPluginOption("pipelineOperator", "proposal");
if (a)
return this.parseTopicReference(a);
this.unexpected();
break;
}
case 47: {
let a = this.input.codePointAt(this.nextTokenStart());
Dn(a) || a === 62 ? this.expectOnePlugin(["jsx", "flow", "typescript"]) : this.unexpected();
break;
}
default:
if (s === 137)
return this.parseDecimalLiteral(this.state.value);
if (et(s)) {
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 (et(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 = or(this.state.endLoc, -1),
this.parseTopicReference(n);
this.unexpected();
}
parseTopicReference(t) {
let r = this.startNode(), n = this.state.startLoc, s = this.state.type;
return this.next(), this.finishTopicReference(r, n, t, s);
}
finishTopicReference(t, r, n, s) {
if (this.testTopicReferenceConfiguration(n, r, s))
return n === "hack" ? (this.topicReferenceIsAllowedInCurrentContext() || this.raise(N.PipeTopicUnbound, r), this.registerTopicReference(),
this.finishNode(t, "TopicReference")) : (this.topicReferenceIsAllowedInCurrentContext() || this.raise(N.PrimaryTopicNotAllowed, r), this.
registerTopicReference(), this.finishNode(t, "PipelinePrimaryTopicReference"));
throw this.raise(N.PipeTopicUnconfiguredToken, r, {
token: ss(s)
});
}
testTopicReferenceConfiguration(t, r, n) {
switch (t) {
case "hack":
return this.hasPlugin(["pipelineOperator", {
topicToken: ss(n)
}]);
case "smart":
return n === 27;
default:
throw this.raise(N.PipeTopicRequiresHackPipes, r);
}
}
parseAsyncArrowUnaryFunction(t) {
this.prodParam.enter(Fl(!0, this.prodParam.hasYield));
let r = [this.parseIdentifier()];
return this.prodParam.exit(), this.hasPrecedingLineBreak() && this.raise(N.LineTerminatorBeforeArrow, this.state.curPosition()), this.
expect(19), this.parseArrowExpression(t, r, !0);
}
parseDo(t, r) {
this.expectPlugin("doExpressions"), r && this.expectPlugin("asyncDoExpressions"), t.async = r, this.next();
let n = this.state.labels;
return this.state.labels = [], r ? (this.prodParam.enter(2), t.body = this.parseBlock(), this.prodParam.exit()) : t.body = this.parseBlock(),
this.state.labels = n, this.finishNode(t, "DoExpression");
}
parseSuper() {
let t = this.startNode();
return this.next(), this.match(10) && !this.scope.allowDirectSuper && !(this.optionFlags & 16) ? this.raise(N.SuperNotAllowed, t) : !this.
scope.allowSuper && !(this.optionFlags & 16) && this.raise(N.UnexpectedSuper, t), !this.match(10) && !this.match(0) && !this.match(16) &&
this.raise(N.UnsupportedSuper, t), this.finishNode(t, "Super");
}
parsePrivateName() {
let t = this.startNode(), r = this.startNodeAt(or(this.state.startLoc, 1)), n = this.state.value;
return this.next(), t.id = this.createIdentifier(r, n), this.finishNode(t, "PrivateName");
}
parseFunctionOrFunctionSent() {
let t = this.startNode();
if (this.next(), this.prodParam.hasYield && this.match(16)) {
let r = this.createIdentifier(this.startNodeAtNode(t), "function");
return this.next(), this.match(103) ? this.expectPlugin("functionSent") : this.hasPlugin("functionSent") || this.unexpected(), this.
parseMetaProperty(t, r, "sent");
}
return this.parseFunction(t);
}
parseMetaProperty(t, r, n) {
t.meta = r;
let s = this.state.containsEsc;
return t.property = this.parseIdentifier(!0), (t.property.name !== n || s) && this.raise(N.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(N.ImportMetaOutsideModule, r), this.sawUnambiguousESM = !0;
else if (this.isContextual(105) || this.isContextual(97)) {
let n = this.isContextual(105);
if (this.expectPlugin(n ? "sourcePhaseImports" : "deferredImportEvaluation"), !(this.optionFlags & 512))
throw this.raise(N.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(this.offsetToSourcePos(n.start), this.state.end)), n.
value = t, this.next(), this.finishNode(n, r);
}
parseLiteral(t, r) {
let n = this.startNode();
return this.parseLiteralAtNode(t, r, n);
}
parseStringLiteral(t) {
return this.parseLiteral(t, "StringLiteral");
}
parseNumericLiteral(t) {
return this.parseLiteral(t, "NumericLiteral");
}
parseBigIntLiteral(t) {
return this.parseLiteral(t, "BigIntLiteral");
}
parseDecimalLiteral(t) {
return this.parseLiteral(t, "DecimalLiteral");
}
parseRegExpLiteral(t) {
let r = this.startNode();
return this.addExtra(r, "raw", this.input.slice(this.offsetToSourcePos(r.start), this.state.end)), r.pattern = t.pattern, r.flags = t.
flags, this.next(), this.finishNode(r, "RegExpLiteral");
}
parseBooleanLiteral(t) {
let r = this.startNode();
return r.value = t, this.next(), this.finishNode(r, "BooleanLiteral");
}
parseNullLiteral() {
let t = this.startNode();
return this.next(), this.finishNode(t, "NullLiteral");
}
parseParenAndDistinguishExpression(t) {
let r = this.state.startLoc, n;
this.next(), this.expressionScope.enter(FK());
let s = this.state.maybeInArrowParameters, a = this.state.inFSharpPipelineDirectBody;
this.state.maybeInArrowParameters = !0, this.state.inFSharpPipelineDirectBody = !1;
let o = this.state.startLoc, l = [], u = new _i(), c = !0, p, f;
for (; !this.match(11); ) {
if (c)
c = !1;
else if (this.expect(12, u.optionalParametersLoc === null ? null : u.optionalParametersLoc), this.match(11)) {
f = this.state.startLoc;
break;
}
if (this.match(21)) {
let E = this.state.startLoc;
if (p = this.state.startLoc, l.push(this.parseParenItem(this.parseRestBinding(), E)), !this.checkCommaAfterRest(41))
break;
} else
l.push(this.parseMaybeAssignAllowIn(u, this.parseParenItem));
}
let h = this.state.lastTokEndLoc;
this.expect(11), this.state.maybeInArrowParameters = s, 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), f && this.unexpected(f), p && this.unexpected(p), 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.optionFlags & 1024))
return this.addExtra(r, "parenthesized", !0), this.addExtra(r, "parenStart", t.index), this.takeSurroundingComments(r, t.index, this.
state.lastTokEndLoc.index), r;
let n = this.startNodeAt(t);
return n.expression = r, this.finishNode(n, "ParenthesizedExpression");
}
shouldParseArrow(t) {
return !this.canInsertSemicolon();
}
parseArrow(t) {
if (this.eat(19))
return t;
}
parseParenItem(t, r) {
return t;
}
parseNewOrNewTarget() {
let t = this.startNode();
if (this.next(), this.match(16)) {
let r = this.createIdentifier(this.startNodeAtNode(t), "new");
this.next();
let n = this.parseMetaProperty(t, r, "target");
return !this.scope.inNonArrowFunction && !this.scope.inClass && !(this.optionFlags & 4) && this.raise(N.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(N.ImportCallNotNewExpression, n);
}
parseTemplateElement(t) {
let {
start: r,
startLoc: n,
end: s,
value: a
} = this.state, o = r + 1, l = this.startNodeAt(or(n, 1));
a === null && (t || this.raise(N.InvalidEscapeSequenceTemplate, or(this.state.firstInvalidTemplateEscapePos, 1)));
let u = this.match(24), c = u ? -1 : -2, p = s + c;
l.value = {
raw: this.input.slice(o, p).replace(/\r\n?/g, `
`),
cooked: a === null ? null : a.slice(1, c)
}, l.tail = u, this.next();
let f = this.finishNode(l, "TemplateElement");
return this.resetEndLocation(f, or(this.state.lastTokEndLoc, c)), f;
}
parseTemplate(t) {
let r = this.startNode(), n = this.parseTemplateElement(t), s = [n], a = [];
for (; !n.tail; )
a.push(this.parseTemplateSubstitution()), this.readTemplateContinuation(), s.push(n = this.parseTemplateElement(t));
return r.expressions = a, r.quasis = s, this.finishNode(r, "TemplateLiteral");
}
parseTemplateSubstitution() {
return this.parseExpression();
}
parseObjectLike(t, r, n, s) {
n && this.expectPlugin("recordAndTuple");
let a = this.state.inFSharpPipelineDirectBody;
this.state.inFSharpPipelineDirectBody = !1;
let o = !1, l = !0, u = this.startNode();
for (u.properties = [], this.next(); !this.match(t); ) {
if (l)
l = !1;
else if (this.expect(12), this.match(t)) {
this.addTrailingCommaExtraToNode(u);
break;
}
let p;
r ? p = this.parseBindingProperty() : (p = this.parsePropertyDefinition(s), o = this.checkProto(p, n, o, s)), n && !this.isObjectProperty(
p) && p.type !== "SpreadElement" && this.raise(N.InvalidRecordProperty, p), p.shorthand && this.addExtra(p, "shorthand", !0), u.properties.
push(p);
}
this.next(), this.state.inFSharpPipelineDirectBody = a;
let c = "ObjectExpression";
return r ? c = "ObjectPattern" : 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(N.UnsupportedPropertyDecorator, this.state.startLoc); this.match(26); )
r.push(this.parseDecorator());
let n = this.startNode(), s = !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, p = c.name;
p === "async" && !this.hasPrecedingLineBreak() && (s = !0, this.resetPreviousNodeTrailingComments(c), l = this.eat(55), this.parsePropertyName(
n)), (p === "get" || p === "set") && (a = !0, this.resetPreviousNodeTrailingComments(c), n.kind = p, this.match(55) && (l = !0, this.
raise(N.AccessorIsGenerator, this.state.curPosition(), {
kind: p
}), this.next()), this.parsePropertyName(n));
}
return this.parseObjPropValue(n, o, l, s, !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), s = this.getObjectOrClassMethodParams(t);
s.length !== n && this.raise(t.kind === "get" ? N.BadGetterArity : N.BadSetterArity, t), t.kind === "set" && ((r = s[s.length - 1]) ==
null ? void 0 : r.type) === "RestElement" && this.raise(N.BadSetterRestParameter, t);
}
parseObjectMethod(t, r, n, s, 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 s && this.unexpected(), t.kind = "method", t.method = !0, this.parseMethod(t, r, n, !1, !1, "ObjectMethod");
}
parseObjectProperty(t, r, n, s) {
if (t.shorthand = !1, this.eat(14))
return t.value = n ? this.parseMaybeDefault(this.state.startLoc) : this.parseMaybeAssignAllowIn(s), this.finishNode(t, "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;
s != null ? s.shorthandAssignLoc === null && (s.shorthandAssignLoc = a) : this.raise(N.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, s, a, o, l) {
let u = this.parseObjectMethod(t, n, s, 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: s
} = this.state, a;
if (Kr(n))
a = this.parseIdentifier(!0);
else
switch (n) {
case 135:
a = this.parseNumericLiteral(s);
break;
case 134:
a = this.parseStringLiteral(s);
break;
case 136:
a = this.parseBigIntLiteral(s);
break;
case 139: {
let o = this.state.startLoc;
r != null ? r.privateKeyLoc === null && (r.privateKeyLoc = o) : this.raise(N.UnexpectedPrivateField, o), a = this.parsePrivateName();
break;
}
default:
if (n === 137) {
a = this.parseDecimalLiteral(s);
break;
}
this.unexpected();
}
t.key = a, n !== 139 && (t.computed = !1);
}
}
initFunction(t, r) {
t.id = null, t.generator = !1, t.async = r;
}
parseMethod(t, r, n, s, a, o, l = !1) {
this.initFunction(t, n), t.generator = r, this.scope.enter(18 | (l ? 64 : 0) | (a ? 32 : 0)), this.prodParam.enter(Fl(n, t.generator)),
this.parseFunctionParams(t, s);
let u = this.parseFunctionBodyAndFinish(t, o, !0);
return this.prodParam.exit(), this.scope.exit(), u;
}
parseArrayLike(t, r, n, s) {
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, s, o), this.state.inFSharpPipelineDirectBody = a, this.finishNode(o, n ? "T\
upleExpression" : "ArrayExpression");
}
parseArrowExpression(t, r, n, s) {
this.scope.enter(6);
let a = Fl(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, s)), 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 s = r && !this.match(5);
if (this.expressionScope.enter(QT()), s)
t.body = this.parseMaybeAssign(), this.checkParams(t, !1, r, !1);
else {
let a = this.state.strict, o = this.state.labels;
this.state.labels = [], this.prodParam.enter(this.prodParam.currentFlags() | 4), t.body = this.parseBlock(!0, !1, (l) => {
let u = !this.isSimpleParamList(t.params);
l && u && this.raise(N.IllegalLanguageModeDirective, (t.kind === "method" || t.kind === "constructor") && t.key ? t.key.loc.end : t);
let c = !a && this.state.strict;
this.checkParams(t, !this.state.strict && !r && !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, s = !0) {
let a = !r && /* @__PURE__ */ new Set(), o = {
type: "FormalParameters"
};
for (let l of t.params)
this.checkLVal(l, o, 5, a, s);
}
parseExprList(t, r, n, s) {
let a = [], o = !0;
for (; !this.eat(t); ) {
if (o)
o = !1;
else if (this.expect(12), this.match(t)) {
s && this.addTrailingCommaExtraToNode(s), this.next();
break;
}
a.push(this.parseExprListItem(r, n));
}
return a;
}
parseExprListItem(t, r, n) {
let s;
if (this.match(12))
t || this.raise(N.UnexpectedToken, this.state.curPosition(), {
unexpected: ","
}), s = null;
else if (this.match(21)) {
let a = this.state.startLoc;
s = this.parseParenItem(this.parseSpread(r), a);
} else if (this.match(17)) {
this.expectPlugin("partialApplication"), n || this.raise(N.UnexpectedArgumentPlaceholder, this.state.startLoc);
let a = this.startNode();
this.next(), s = this.finishNode(a, "ArgumentPlaceholder");
} else
s = this.parseMaybeAssignAllowIn(r, this.parseParenItem);
return s;
}
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: s
} = this.state;
Kr(s) ? r = this.state.value : this.unexpected();
let a = oK(s);
return t ? a && this.replaceToken(132) : this.checkReservedWord(r, n, a, !1), this.next(), r;
}
checkReservedWord(t, r, n, s) {
if (t.length > 10 || !CK(t))
return;
if (n && vK(t)) {
this.raise(N.UnexpectedKeyword, r, {
keyword: t
});
return;
}
if ((this.state.strict ? s ? YT : GT : KT)(t, this.inModule)) {
this.raise(N.UnexpectedReservedWord, r, {
reservedWord: t
});
return;
} else if (t === "yield") {
if (this.prodParam.hasYield) {
this.raise(N.YieldBindingIdentifier, r);
return;
}
} else if (t === "await") {
if (this.prodParam.hasAwait) {
this.raise(N.AwaitBindingIdentifier, r);
return;
}
if (this.scope.inStaticBlock) {
this.raise(N.AwaitBindingIdentifierInStaticBlock, r);
return;
}
this.expressionScope.recordAsyncArrowParametersError(r);
} else if (t === "arguments" && this.scope.inClassAndNotInNonArrowFunction) {
this.raise(N.ArgumentsInClass, r);
return;
}
}
recordAwaitIfAllowed() {
let t = this.prodParam.hasAwait || this.optionFlags & 1 && !this.scope.inFunction;
return t && !this.scope.inFunction && (this.state.hasTopLevelAwait = !0), t;
}
parseAwait(t) {
let r = this.startNodeAt(t);
return this.expressionScope.recordParameterInitializerError(N.AwaitExpressionFormalParameter, r), this.eat(55) && this.raise(N.ObsoleteAwaitStar,
r), !this.scope.inFunction && !(this.optionFlags & 1) && (this.isAmbiguousPrefixOrIdentifier() ? this.ambiguousScriptDifferentAst = !0 :
this.sawUnambiguousESM = !0), this.state.soloAwait || (r.argument = this.parseMaybeUnary(null, !0)), this.finishNode(r, "AwaitExpressi\
on");
}
isAmbiguousPrefixOrIdentifier() {
if (this.hasPrecedingLineBreak()) return !0;
let {
type: t
} = this.state;
return t === 53 || t === 10 || t === 0 || Ll(t) || t === 102 && !this.state.containsEsc || t === 138 || t === 56 || this.hasPlugin("v8\
intrinsic") && t === 54;
}
parseYield(t) {
let r = this.startNodeAt(t);
this.expressionScope.recordParameterInitializerError(N.YieldInParameter, r);
let n = !1, s = null;
if (!this.hasPrecedingLineBreak())
switch (n = this.eat(55), this.state.type) {
case 13:
case 140:
case 8:
case 11:
case 3:
case 9:
case 14:
case 12:
if (!n) break;
default:
s = this.parseMaybeAssign();
}
return r.delegate = n, r.argument = s, this.finishNode(r, "YieldExpression");
}
parseImportCall(t) {
if (this.next(), t.source = this.parseMaybeAssignAllowIn(), t.options = null, this.eat(12) && !this.match(11) && (t.options = this.parseMaybeAssignAllowIn(),
this.eat(12) && !this.match(11))) {
do
this.parseMaybeAssignAllowIn();
while (this.eat(12) && !this.match(11));
this.raise(N.ImportCallArity, t);
}
return this.expect(11), this.finishNode(t, "ImportExpression");
}
checkPipelineAtInfixOperator(t, r) {
this.hasPlugin(["pipelineOperator", {
proposal: "smart"
}]) && t.type === "SequenceExpression" && this.raise(N.PipelineHeadSequenceExpression, r);
}
parseSmartPipelineBodyInStyle(t, r) {
if (this.isSimpleReference(t)) {
let 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(N.PipelineBodyNoArrow, this.state.startLoc);
this.topicReferenceWasUsedInCurrentContext() || this.raise(N.PipelineTopicUnused, t);
}
withTopicBindingContext(t) {
let r = this.state.topicContext;
this.state.topicContext = {
maxNumOfResolvableTopics: 1,
maxTopicIndex: null
};
try {
return t();
} finally {
this.state.topicContext = r;
}
}
withSmartMixTopicForbiddingContext(t) {
if (this.hasPlugin(["pipelineOperator", {
proposal: "smart"
}])) {
let r = this.state.topicContext;
this.state.topicContext = {
maxNumOfResolvableTopics: 0,
maxTopicIndex: null
};
try {
return t();
} finally {
this.state.topicContext = r;
}
} else
return t();
}
withSoloAwaitPermittingContext(t) {
let r = this.state.soloAwait;
this.state.soloAwait = !0;
try {
return t();
} finally {
this.state.soloAwait = r;
}
}
allowInAnd(t) {
let r = this.prodParam.currentFlags();
if (8 & ~r) {
this.prodParam.enter(r | 8);
try {
return t();
} finally {
this.prodParam.exit();
}
}
return t();
}
disallowInAnd(t) {
let r = this.prodParam.currentFlags();
if (8 & r) {
this.prodParam.enter(r & -9);
try {
return t();
} finally {
this.prodParam.exit();
}
}
return t();
}
registerTopicReference() {
this.state.topicContext.maxTopicIndex = 0;
}
topicReferenceIsAllowedInCurrentContext() {
return this.state.topicContext.maxNumOfResolvableTopics >= 1;
}
topicReferenceWasUsedInCurrentContext() {
return this.state.topicContext.maxTopicIndex != null && this.state.topicContext.maxTopicIndex >= 0;
}
parseFSharpPipelineBody(t) {
let r = this.state.startLoc;
this.state.potentialArrowAt = this.state.start;
let n = this.state.inFSharpPipelineDirectBody;
this.state.inFSharpPipelineDirectBody = !0;
let s = this.parseExprOp(this.parseMaybeUnaryOrPrivate(), r, t);
return this.state.inFSharpPipelineDirectBody = n, s;
}
parseModuleExpression() {
this.expectPlugin("moduleBlocks");
let t = this.startNode();
this.next(), this.match(5) || this.unexpected(null, 5);
let r = this.startNodeAt(this.state.endLoc);
this.next();
let n = this.initializeScopes(!0);
this.enterInitialScopes();
try {
t.body = this.parseProgram(r, 8, "module");
} finally {
n();
}
return this.finishNode(t, "ModuleExpression");
}
parsePropertyNamePrefixOperator(t) {
}
}, nh = {
kind: 1
}, sG = {
kind: 2
}, iG = /[\uD800-\uDFFF]/u, sh = /in(?:stanceof)?/y;
function aG(e, t, r) {
for (let n = 0; n < e.length; n++) {
let s = e[n], {
type: a
} = s;
if (typeof a == "number") {
{
if (a === 139) {
let {
loc: o,
start: l,
value: u,
end: c
} = s, p = l + 1, f = or(o.start, 1);
e.splice(n, 1, new un({
type: An(27),
value: "#",
start: l,
end: p,
startLoc: o.start,
endLoc: f
}), new un({
type: An(132),
value: u,
start: p,
end: c,
startLoc: f,
endLoc: o.end
})), n++;
continue;
}
if (Ll(a)) {
let {
loc: o,
start: l,
value: u,
end: c
} = s, p = l + 1, f = or(o.start, 1), h;
t.charCodeAt(l - r) === 96 ? h = new un({
type: An(22),
value: "`",
start: l,
end: p,
startLoc: o.start,
endLoc: f
}) : h = new un({
type: An(8),
value: "}",
start: l,
end: p,
startLoc: o.start,
endLoc: f
});
let y, E, d, g;
a === 24 ? (E = c - 1, d = or(o.end, -1), y = u === null ? null : u.slice(1, -1), g = new un({
type: An(22),
value: "`",
start: E,
end: c,
startLoc: d,
endLoc: o.end
})) : (E = c - 2, d = or(o.end, -2), y = u === null ? null : u.slice(1, -2), g = new un({
type: An(23),
value: "${",
start: E,
end: c,
startLoc: d,
endLoc: o.end
})), e.splice(n, 1, h, new un({
type: An(20),
value: y,
start: p,
end: E,
startLoc: f,
endLoc: d
}), g), n += 2;
continue;
}
}
s.type = An(a);
}
}
return e;
}
i(aG, "babel7CompatTokens");
var vh = class extends xh {
static {
i(this, "StatementParser");
}
parseTopLevel(t, r) {
return t.program = this.parseProgram(r), t.comments = this.comments, this.optionFlags & 256 && (t.tokens = aG(this.tokens, this.input,
this.startIndex)), this.finishNode(t, "File");
}
parseProgram(t, r = 140, n = this.options.sourceType) {
if (t.sourceType = n, t.interpreter = this.parseInterpreterDirective(), this.parseBlockBody(t, !0, !0, r), this.inModule) {
if (!(this.optionFlags & 64) && this.scope.undefinedExports.size > 0)
for (let [a, o] of Array.from(this.scope.undefinedExports))
this.raise(N.ModuleExportUndefined, o, {
localName: a
});
this.addExtra(t, "topLevelAwait", this.state.hasTopLevelAwait);
}
let s;
return r === 140 ? s = this.finishNode(t, "Program") : s = this.finishNodeAt(t, "Program", or(this.state.startLoc, -1)), s;
}
stmtToDirective(t) {
let r = t;
r.type = "Directive", r.value = r.expression, delete r.expression;
let n = r.value, s = n.value, a = this.input.slice(this.offsetToSourcePos(n.start), this.offsetToSourcePos(n.end)), o = n.value = a.slice(
1, -1);
return this.addExtra(n, "raw", a), this.addExtra(n, "rawValue", o), this.addExtra(n, "expressionValue", s), n.type = "DirectiveLiteral",
r;
}
parseInterpreterDirective() {
if (!this.match(28))
return null;
let t = this.startNode();
return t.value = this.state.value, this.next(), this.finishNode(t, "InterpreterDirective");
}
isLet() {
return this.isContextual(100) ? this.hasFollowingBindingAtom() : !1;
}
chStartsBindingIdentifier(t, r) {
if (Dn(t)) {
if (sh.lastIndex = r, sh.test(this.input)) {
let n = this.codePointAtPos(sh.lastIndex);
if (!wi(n) && n !== 92)
return !1;
}
return !0;
} else return t === 92;
}
chStartsBindingPattern(t) {
return t === 91 || t === 123;
}
hasFollowingBindingAtom() {
let t = this.nextTokenStart(), r = this.codePointAtPos(t);
return this.chStartsBindingPattern(r) || this.chStartsBindingIdentifier(r, t);
}
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 (et(t) && !this.hasFollowingLineBreak())
return this.expectPlugin("explicitResourceManagement"), !0;
}
startsAwaitUsing() {
let t = this.nextTokenInLineStart();
if (this.isUnparsedContextual(t, "using")) {
t = this.nextTokenInLineStartSince(t + 5);
let r = this.codePointAtPos(t);
if (this.chStartsBindingIdentifier(r, t))
return this.expectPlugin("explicitResourceManagement"), !0;
}
return !1;
}
parseModuleItem() {
return this.parseStatementLike(15);
}
parseStatementListItem() {
return this.parseStatementLike(6 | (!this.options.annexB || this.state.strict ? 0 : 8));
}
parseStatementOrSloppyAnnexBFunctionDeclaration(t = !1) {
let r = 0;
return this.options.annexB && !this.state.strict && (r |= 4, t && (r |= 8)), this.parseStatementLike(r);
}
parseStatement() {
return this.parseStatementLike(0);
}
parseStatementLike(t) {
let r = null;
return this.match(26) && (r = this.parseDecorators(!0)), this.parseStatementContent(t, r);
}
parseStatementContent(t, r) {
let n = this.state.type, s = this.startNode(), a = !!(t & 2), o = !!(t & 4), l = t & 1;
switch (n) {
case 60:
return this.parseBreakContinueStatement(s, !0);
case 63:
return this.parseBreakContinueStatement(s, !1);
case 64:
return this.parseDebuggerStatement(s);
case 90:
return this.parseDoWhileStatement(s);
case 91:
return this.parseForStatement(s);
case 68:
if (this.lookaheadCharCode() === 46) break;
return o || this.raise(this.state.strict ? N.StrictFunction : this.options.annexB ? N.SloppyFunctionAnnexB : N.SloppyFunction, this.
state.startLoc), this.parseFunctionStatement(s, !1, !a && o);
case 80:
return a || this.unexpected(), this.parseClass(this.maybeTakeDecorators(r, s), !0);
case 69:
return this.parseIfStatement(s);
case 70:
return this.parseReturnStatement(s);
case 71:
return this.parseSwitchStatement(s);
case 72:
return this.parseThrowStatement(s);
case 73:
return this.parseTryStatement(s);
case 96:
if (!this.state.containsEsc && this.startsAwaitUsing())
return this.recordAwaitIfAllowed() ? a || this.raise(N.UnexpectedLexicalDeclaration, s) : this.raise(N.AwaitUsingNotInAsyncContext,
s), this.next(), this.parseVarStatement(s, "await using");
break;
case 107:
if (this.state.containsEsc || !this.hasInLineFollowingBindingIdentifierOrBrace())
break;
return this.expectPlugin("explicitResourceManagement"), !this.scope.inModule && this.scope.inTopLevel ? this.raise(N.UnexpectedUsingDeclaration,
this.state.startLoc) : a || this.raise(N.UnexpectedLexicalDeclaration, this.state.startLoc), this.parseVarStatement(s, "using");
case 100: {
if (this.state.containsEsc)
break;
let p = this.nextTokenStart(), f = this.codePointAtPos(p);
if (f !== 91 && (!a && this.hasFollowingLineBreak() || !this.chStartsBindingIdentifier(f, p) && f !== 123))
break;
}
case 75:
a || this.raise(N.UnexpectedLexicalDeclaration, this.state.startLoc);
case 74: {
let p = this.state.value;
return this.parseVarStatement(s, p);
}
case 92:
return this.parseWhileStatement(s);
case 76:
return this.parseWithStatement(s);
case 5:
return this.parseBlock();
case 13:
return this.parseEmptyStatement(s);
case 83: {
let p = this.lookaheadCharCode();
if (p === 40 || p === 46)
break;
}
case 82: {
!(this.optionFlags & 8) && !l && this.raise(N.UnexpectedImportExport, this.state.startLoc), this.next();
let p;
return n === 83 ? p = this.parseImport(s) : p = this.parseExport(s, r), this.assertModuleNodeAllowed(p), p;
}
default:
if (this.isAsyncFunction())
return a || this.raise(N.AsyncFunctionInSingleStatementContext, this.state.startLoc), this.next(), this.parseFunctionStatement(s,
!0, !a && o);
}
let u = this.state.value, c = this.parseExpression();
return et(n) && c.type === "Identifier" && this.eat(14) ? this.parseLabeledStatement(s, u, c, t) : this.parseExpressionStatement(s, c,
r);
}
assertModuleNodeAllowed(t) {
!(this.optionFlags & 8) && !this.inModule && this.raise(N.ImportOutsideModule, t);
}
decoratorsEnabledBeforeExport() {
return this.hasPlugin("decorators-legacy") ? !0 : this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBefore\
Export") !== !1;
}
maybeTakeDecorators(t, r, n) {
if (t) {
var s;
(s = r.decorators) != null && s.length ? (typeof this.getPluginOption("decorators", "decoratorsBeforeExport") != "boolean" && this.raise(
N.DecoratorsBeforeAfterExport, r.decorators[0]), r.decorators.unshift(...t)) : r.decorators = t, this.resetStartLocationFromNode(r, t[0]),
n && this.resetStartLocationFromNode(n, r);
}
return r;
}
canHaveLeadingDecorator() {
return this.match(80);
}
parseDecorators(t) {
let r = [];
do
r.push(this.parseDecorator());
while (this.match(26));
if (this.match(82))
t || this.unexpected(), this.decoratorsEnabledBeforeExport() || this.raise(N.DecoratorExportClass, this.state.startLoc);
else if (!this.canHaveLeadingDecorator())
throw this.raise(N.UnexpectedLeadingDecorator, this.state.startLoc);
return r;
}
parseDecorator() {
this.expectOnePlugin(["decorators", "decorators-legacy"]);
let t = this.startNode();
if (this.next(), this.hasPlugin("decorators")) {
let r = this.state.startLoc, n;
if (this.match(10)) {
let s = this.state.startLoc;
this.next(), n = this.parseExpression(), this.expect(11), n = this.wrapParenthesis(s, n);
let a = this.state.startLoc;
t.expression = this.parseMaybeDecoratorArguments(n, s), this.getPluginOption("decorators", "allowCallParenthesized") === !1 && t.expression !==
n && this.raise(N.DecoratorArgumentsOutsideParentheses, a);
} else {
for (n = this.parseIdentifier(!1); this.eat(16); ) {
let s = this.startNodeAt(r);
s.object = n, this.match(139) ? (this.classScope.usePrivateName(this.state.value, this.state.startLoc), s.property = this.parsePrivateName()) :
s.property = this.parseIdentifier(!0), s.computed = !1, n = this.finishNode(s, "MemberExpression");
}
t.expression = this.parseMaybeDecoratorArguments(n, r);
}
} else
t.expression = this.parseExprSubscripts();
return this.finishNode(t, "Decorator");
}
parseMaybeDecoratorArguments(t, r) {
if (this.eat(10)) {
let n = this.startNodeAt(r);
return n.callee = t, n.arguments = this.parseCallExpressionArguments(11), this.toReferencedList(n.arguments), this.finishNode(n, "Ca\
llExpression");
}
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 s = this.state.labels[n];
if ((t.label == null || s.name === t.label.name) && (s.kind != null && (r || s.kind === 1) || t.label && r))
break;
}
if (n === this.state.labels.length) {
let s = r ? "BreakStatement" : "ContinueStatement";
this.raise(N.IllegalBreakContinue, t, {
type: s
});
}
}
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(nh), 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(nh);
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(), p = n && this.
hasFollowingBindingAtom() || c;
if (this.match(74) || this.match(75) || p) {
let f = this.startNode(), h;
u ? (h = "await using", this.recordAwaitIfAllowed() || this.raise(N.AwaitUsingNotInAsyncContext, this.state.startLoc), this.next()) :
h = this.state.value, this.next(), this.parseVar(f, !0, h);
let y = this.finishNode(f, "VariableDeclaration"), E = this.match(58);
return E && c && this.raise(N.ForInUsing, y), (E || this.isContextual(102)) && y.declarations.length === 1 ? this.parseForIn(t, y,
r) : (r !== null && this.unexpected(r), this.parseFor(t, y));
}
}
let s = this.isContextual(95), a = new _i(), o = this.parseExpression(!0, a), l = this.isContextual(102);
if (l && (n && this.raise(N.ForOfLet, o), r === null && s && o.type === "Identifier" && this.raise(N.ForOfAsync, o)), l || this.match(
58)) {
this.checkDestructuringPrivate(a), this.toAssignable(o, !0);
let u = l ? "ForOfStatement" : "ForInStatement";
return this.checkLVal(o, {
type: u
}), this.parseForIn(t, o, r);
} else
this.checkExpressionErrors(a, !0);
return r !== null && this.unexpected(r), this.parseFor(t, o);
}
parseFunctionStatement(t, r, 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.optionFlags & 2) && this.raise(N.IllegalReturn, this.state.startLoc), this.next(), this.isLineTerminator() ?
t.argument = null : (t.argument = this.parseExpression(), this.semicolon()), this.finishNode(t, "ReturnStatement");
}
parseSwitchStatement(t) {
this.next(), t.discriminant = this.parseHeaderExpression();
let r = t.cases = [];
this.expect(5), this.state.labels.push(sG), this.scope.enter(0);
let n;
for (let s; !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() :
(s && this.raise(N.MultipleDefaultsInSwitch, this.state.lastTokStartLoc), s = !0, n.test = null), this.expect(14);
} else
n ? n.consequent.push(this.parseStatementListItem()) : this.unexpected();
return this.scope.exit(), n && this.finishNode(n, "SwitchCase"), this.next(), this.state.labels.pop(), this.finishNode(t, "SwitchState\
ment");
}
parseThrowStatement(t) {
return this.next(), this.hasPrecedingLineBreak() && this.raise(N.NewlineAfterThrow, this.state.lastTokEndLoc), t.argument = this.parseExpression(),
this.semicolon(), this.finishNode(t, "ThrowStatement");
}
parseCatchClauseParam() {
let t = this.parseBindingAtom();
return this.scope.enter(this.options.annexB && t.type === "Identifier" ? 8 : 0), this.checkLVal(t, {
type: "CatchClause"
}, 9), t;
}
parseTryStatement(t) {
if (this.next(), t.block = this.parseBlock(), t.handler = null, this.match(62)) {
let r = this.startNode();
this.next(), this.match(10) ? (this.expect(10), r.param = this.parseCatchClauseParam(), this.expect(11)) : (r.param = null, this.scope.
enter(0)), r.body = this.withSmartMixTopicForbiddingContext(() => this.parseBlock(!1, !1)), this.scope.exit(), t.handler = this.finishNode(
r, "CatchClause");
}
return t.finalizer = this.eat(67) ? this.parseBlock() : null, !t.handler && !t.finalizer && this.raise(N.NoCatchOrFinally, t), this.finishNode(
t, "TryStatement");
}
parseVarStatement(t, r, 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(nh), t.body = this.withSmartMixTopicForbiddingContext(
() => this.parseStatement()), this.state.labels.pop(), this.finishNode(t, "WhileStatement");
}
parseWithStatement(t) {
return this.state.strict && this.raise(N.StrictWith, this.state.startLoc), this.next(), t.object = this.parseHeaderExpression(), t.body =
this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.finishNode(t, "WithStatement");
}
parseEmptyStatement(t) {
return this.next(), this.finishNode(t, "EmptyStatement");
}
parseLabeledStatement(t, r, n, s) {
for (let o of this.state.labels)
o.name === r && this.raise(N.LabelRedeclaration, n, {
labelName: r
});
let a = cK(this.state.type) ? 1 : this.match(71) ? 2 : null;
for (let o = this.state.labels.length - 1; o >= 0; o--) {
let l = this.state.labels[o];
if (l.statementStart === t.start)
l.statementStart = this.sourceToOffsetPos(this.state.start), l.kind = a;
else
break;
}
return this.state.labels.push({
name: r,
kind: a,
statementStart: this.sourceToOffsetPos(this.state.start)
}), t.body = s & 8 ? this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0) : this.parseStatement(), this.state.labels.pop(), t.label =
n, this.finishNode(t, "LabeledStatement");
}
parseExpressionStatement(t, r, n) {
return t.expression = r, this.semicolon(), this.finishNode(t, "ExpressionStatement");
}
parseBlock(t = !1, r = !0, n) {
let s = this.startNode();
return t && this.state.strictErrors.clear(), this.expect(5), r && this.scope.enter(0), this.parseBlockBody(s, t, !1, 8, n), r && this.
scope.exit(), this.finishNode(s, "BlockStatement");
}
isValidDirective(t) {
return t.type === "ExpressionStatement" && t.expression.type === "StringLiteral" && !t.expression.extra.parenthesized;
}
parseBlockBody(t, r, n, s, a) {
let o = t.body = [], l = t.directives = [];
this.parseBlockOrModuleBlockBody(o, r ? l : void 0, n, s, a);
}
parseBlockOrModuleBlockBody(t, r, n, s, a) {
let o = this.state.strict, l = !1, u = !1;
for (; !this.match(s); ) {
let c = n ? this.parseModuleItem() : this.parseStatementListItem();
if (r && !u) {
if (this.isValidDirective(c)) {
let p = this.stmtToDirective(c);
r.push(p), !l && p.value.value === "use strict" && (l = !0, this.setStrict(!0));
continue;
}
u = !0, this.state.strictErrors.clear();
}
t.push(c);
}
a?.call(this, l), o || this.setStrict(!1), this.next();
}
parseFor(t, r) {
return t.init = r, this.semicolon(!1), t.test = this.match(13) ? null : this.parseExpression(), this.semicolon(!1), t.update = this.match(
11) ? null : this.parseExpression(), this.expect(11), t.body = this.withSmartMixTopicForbiddingContext(() => this.parseStatement()), this.
scope.exit(), this.state.labels.pop(), this.finishNode(t, "ForStatement");
}
parseForIn(t, r, n) {
let s = this.match(58);
return this.next(), s ? n !== null && this.unexpected(n) : t.await = n !== null, r.type === "VariableDeclaration" && r.declarations[0].
init != null && (!s || !this.options.annexB || this.state.strict || r.kind !== "var" || r.declarations[0].id.type !== "Identifier") &&
this.raise(N.ForInOfLoopInitializer, r, {
type: s ? "ForInStatement" : "ForOfStatement"
}), r.type === "AssignmentPattern" && this.raise(N.InvalidLhs, r, {
ancestor: {
type: "ForStatement"
}
}), t.left = r, t.right = s ? this.parseExpression() : this.parseMaybeAssignAllowIn(), this.expect(11), t.body = this.withSmartMixTopicForbiddingContext(
() => this.parseStatement()), this.scope.exit(), this.state.labels.pop(), this.finishNode(t, s ? "ForInStatement" : "ForOfStatement");
}
parseVar(t, r, n, s = !1) {
let 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 && !s && (o.id.type !== "Identifier" && !(r && (this.match(58) || this.isContextual(102))) ? this.raise(N.DeclarationMissingInitializer,
this.state.lastTokEndLoc, {
kind: "destructuring"
}) : (n === "const" || n === "using" || n === "await using") && !(this.match(58) || this.isContextual(102)) && this.raise(N.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(N.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, s = !!(r & 1), a = s && !(r & 4), o = !!(r & 8);
this.initFunction(t, o), this.match(55) && (n && this.raise(N.GeneratorInSingleStatementContext, this.state.startLoc), this.next(), t.
generator = !0), s && (t.id = this.parseFunctionId(a));
let l = this.state.maybeInArrowParameters;
return this.state.maybeInArrowParameters = !1, this.scope.enter(2), this.prodParam.enter(Fl(o, t.generator)), s || (t.id = this.parseFunctionId()),
this.parseFunctionParams(t, !1), this.withSmartMixTopicForbiddingContext(() => {
this.parseFunctionBodyAndFinish(t, s ? "FunctionDeclaration" : "FunctionExpression");
}), this.prodParam.exit(), this.scope.exit(), s && !n && this.registerFunctionStatementId(t), this.state.maybeInArrowParameters = l, t;
}
parseFunctionId(t) {
return t || et(this.state.type) ? this.parseIdentifier() : null;
}
parseFunctionParams(t, r) {
this.expect(10), this.expressionScope.enter(kK()), t.params = this.parseBindingList(11, 41, 2 | (r ? 4 : 0)), this.expressionScope.exit();
}
registerFunctionStatementId(t) {
t.id && this.scope.declareName(t.id.name, !this.options.annexB || this.state.strict || t.generator || t.async ? this.scope.treatFunctionsAsVar ?
5 : 8201 : 17, t.id.loc.start);
}
parseClass(t, r, n) {
this.next();
let s = this.state.strict;
return this.state.strict = !0, this.parseClassId(t, r, n), this.parseClassSuper(t), t.body = this.parseClassBody(!!t.superClass, s), this.
finishNode(t, r ? "ClassDeclaration" : "ClassExpression");
}
isClassProperty() {
return this.match(29) || this.match(13) || this.match(8);
}
isClassMethod() {
return this.match(10);
}
nameIsConstructor(t) {
return t.type === "Identifier" && t.name === "constructor" || t.type === "StringLiteral" && t.value === "constructor";
}
isNonstaticConstructor(t) {
return !t.computed && !t.static && this.nameIsConstructor(t.key);
}
parseClassBody(t, r) {
this.classScope.enter();
let n = {
hadConstructor: !1,
hadSuperClass: t
}, s = [], a = this.startNode();
if (a.body = [], this.expect(5), this.withSmartMixTopicForbiddingContext(() => {
for (; !this.match(8); ) {
if (this.eat(13)) {
if (s.length > 0)
throw this.raise(N.DecoratorSemicolon, this.state.lastTokEndLoc);
continue;
}
if (this.match(26)) {
s.push(this.parseDecorator());
continue;
}
let o = this.startNode();
s.length && (o.decorators = s, this.resetStartLocationFromNode(o, s[0]), s = []), this.parseClassMember(a, o, n), o.kind === "cons\
tructor" && o.decorators && o.decorators.length > 0 && this.raise(N.DecoratorConstructor, o);
}
}), this.state.strict = r, this.next(), s.length)
throw this.raise(N.TrailingDecorator, this.state.startLoc);
return this.classScope.exit(), this.finishNode(a, "ClassBody");
}
parseClassMemberFromModifier(t, r) {
let n = this.parseIdentifier(!0);
if (this.isClassMethod()) {
let s = r;
return s.kind = "method", s.computed = !1, s.key = n, s.static = !1, this.pushClassMethod(t, s, !1, !1, !1, !1), !0;
} else if (this.isClassProperty()) {
let s = r;
return s.computed = !1, s.key = n, s.static = !1, t.body.push(this.parseClassProperty(s)), !0;
}
return this.resetPreviousNodeTrailingComments(n), !1;
}
parseClassMember(t, r, n) {
let s = this.isContextual(106);
if (s) {
if (this.parseClassMemberFromModifier(t, r))
return;
if (this.eat(5)) {
this.parseClassStaticBlock(t, r);
return;
}
}
this.parseClassMemberWithIsStatic(t, r, n, s);
}
parseClassMemberWithIsStatic(t, r, n, s) {
let a = r, o = r, l = r, u = r, c = r, p = a, f = a;
if (r.static = s, this.parsePropertyNamePrefixOperator(r), this.eat(55)) {
p.kind = "method";
let C = this.match(139);
if (this.parseClassElementName(p), C) {
this.pushClassPrivateMethod(t, o, !0, !1);
return;
}
this.isNonstaticConstructor(a) && this.raise(N.ConstructorIsGenerator, a.key), this.pushClassMethod(t, a, !0, !1, !1, !1);
return;
}
let h = !this.state.containsEsc && et(this.state.type), y = this.parseClassElementName(r), E = h ? y.name : null, d = this.isPrivateName(
y), g = this.state.startLoc;
if (this.parsePostMemberNameModifiers(f), this.isClassMethod()) {
if (p.kind = "method", d) {
this.pushClassPrivateMethod(t, o, !1, !1);
return;
}
let C = this.isNonstaticConstructor(a), _ = !1;
C && (a.kind = "constructor", n.hadConstructor && !this.hasPlugin("typescript") && this.raise(N.DuplicateConstructor, y), C && this.
hasPlugin("typescript") && r.override && this.raise(N.OverrideOnConstructor, y), n.hadConstructor = !0, _ = n.hadSuperClass), this.pushClassMethod(
t, a, !1, !1, C, _);
} else if (this.isClassProperty())
d ? this.pushClassPrivateProperty(t, u) : this.pushClassProperty(t, l);
else if (E === "async" && !this.isLineTerminator()) {
this.resetPreviousNodeTrailingComments(y);
let C = this.eat(55);
f.optional && this.unexpected(g), p.kind = "method";
let _ = this.match(139);
this.parseClassElementName(p), this.parsePostMemberNameModifiers(f), _ ? this.pushClassPrivateMethod(t, o, C, !0) : (this.isNonstaticConstructor(
a) && this.raise(N.ConstructorIsAsync, a.key), this.pushClassMethod(t, a, C, !0, !1, !1));
} else if ((E === "get" || E === "set") && !(this.match(55) && this.isLineTerminator())) {
this.resetPreviousNodeTrailingComments(y), p.kind = E;
let C = this.match(139);
this.parseClassElementName(a), C ? this.pushClassPrivateMethod(t, o, !1, !1) : (this.isNonstaticConstructor(a) && this.raise(N.ConstructorIsAccessor,
a.key), this.pushClassMethod(t, a, !1, !1, !1, !1)), this.checkGetterSetterParams(a);
} else if (E === "accessor" && !this.isLineTerminator()) {
this.expectPlugin("decoratorAutoAccessors"), this.resetPreviousNodeTrailingComments(y);
let C = this.match(139);
this.parseClassElementName(l), this.pushClassAccessorProperty(t, c, C);
} 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 === 134) && t.static && n === "prototype" && this.raise(N.StaticPrototype, this.state.startLoc), r === 139) {
n === "constructor" && this.raise(N.ConstructorClassPrivateField, this.state.startLoc);
let s = this.parsePrivateName();
return t.key = s, s;
}
return this.parsePropertyName(t), t.key;
}
parseClassStaticBlock(t, r) {
var n;
this.scope.enter(208);
let s = 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 = s, t.body.push(this.
finishNode(r, "StaticBlock")), (n = r.decorators) != null && n.length && this.raise(N.DecoratorStaticBlock, r);
}
pushClassProperty(t, r) {
!r.computed && this.nameIsConstructor(r.key) && this.raise(N.ConstructorClassField, r.key), t.body.push(this.parseClassProperty(r));
}
pushClassPrivateProperty(t, r) {
let 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(N.ConstructorClassField, r.key);
let s = this.parseClassAccessorProperty(r);
t.body.push(s), n && this.classScope.declarePrivateName(this.getPrivateNameSV(s.key), 0, s.key.loc.start);
}
pushClassMethod(t, r, n, s, a, o) {
t.body.push(this.parseMethod(r, n, s, a, o, "ClassMethod", !0));
}
pushClassPrivateMethod(t, r, n, s) {
let a = this.parseMethod(r, n, s, !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(QT()), this.prodParam.enter(0), t.value = this.eat(29) ? this.parseMaybeAssignAllowIn() :
null, this.expressionScope.exit(), this.prodParam.exit(), this.scope.exit();
}
parseClassId(t, r, n, s = 8331) {
if (et(this.state.type))
t.id = this.parseIdentifier(), r && this.declareNameFromIdentifier(t.id, s);
else if (n || !r)
t.id = null;
else
throw this.raise(N.MissingClassName, this.state.startLoc);
}
parseClassSuper(t) {
t.superClass = this.eat(81) ? this.parseExprSubscripts() : null;
}
parseExport(t, r) {
let n = this.parseMaybeImportPhase(t, !0), s = this.maybeParseExportDefaultSpecifier(t, n), a = !s || this.eat(12), o = a && this.eatExportStar(
t), l = o && this.maybeParseExportNamespaceSpecifier(t), u = a && (!l || this.eat(12)), c = s || o;
if (o && !l) {
if (s && this.unexpected(), r)
throw this.raise(N.UnsupportedDecoratorExport, t);
return this.parseExportFrom(t, !0), this.sawUnambiguousESM = !0, this.finishNode(t, "ExportAllDeclaration");
}
let p = this.maybeParseExportNamedSpecifiers(t);
s && a && !o && !p && this.unexpected(null, 5), l && u && this.unexpected(null, 98);
let f;
if (c || p) {
if (f = !1, r)
throw this.raise(N.UnsupportedDecoratorExport, t);
this.parseExportFrom(t, c);
} else
f = this.maybeParseExportDeclaration(t);
if (c || p || f) {
var h;
let 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(N.UnsupportedDecoratorExport, t);
return this.sawUnambiguousESM = !0, this.finishNode(y, "ExportNamedDeclaration");
}
if (this.eat(65)) {
let y = t, E = this.parseExportDefaultExpression();
if (y.declaration = E, E.type === "ClassDeclaration")
this.maybeTakeDecorators(r, E, y);
else if (r)
throw this.raise(N.UnsupportedDecoratorExport, t);
return this.checkExport(y, !0, !0), this.sawUnambiguousESM = !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), s = this.startNodeAtNode(n);
return s.exported = n, t.specifiers = [this.finishNode(s, "ExportDefaultSpecifier")], !0;
}
return !1;
}
maybeParseExportNamespaceSpecifier(t) {
if (this.isContextual(93)) {
var r, n;
(n = (r = t).specifiers) != null || (r.specifiers = []);
let s = this.startNodeAt(this.state.lastTokStartLoc);
return this.next(), s.exported = this.parseModuleExportName(), t.specifiers.push(this.finishNode(s, "ExportNamespaceSpecifier")), !0;
}
return !1;
}
maybeParseExportNamedSpecifiers(t) {
if (this.match(5)) {
let r = t;
r.specifiers || (r.specifiers = []);
let n = r.exportKind === "type";
return r.specifiers.push(...this.parseExportSpecifiers(n)), r.source = null, this.hasPlugin("importAssertions") ? r.assertions = [] :
r.attributes = [], r.declaration = null, !0;
}
return !1;
}
maybeParseExportDeclaration(t) {
return this.shouldParseExportDeclaration() ? (t.specifiers = [], t.source = null, this.hasPlugin("importAssertions") ? t.assertions = [] :
t.attributes = [], t.declaration = this.parseExportDeclaration(t), !0) : !1;
}
isAsyncFunction() {
if (!this.isContextual(95)) return !1;
let t = this.nextTokenInLineStart();
return this.isUnparsedContextual(t, "function");
}
parseExportDefaultExpression() {
let t = this.startNode();
if (this.match(68))
return this.next(), this.parseFunction(t, 5);
if (this.isAsyncFunction())
return this.next(), this.next(), this.parseFunction(t, 13);
if (this.match(80))
return this.parseClass(t, !0, !0);
if (this.match(26))
return this.hasPlugin("decorators") && this.getPluginOption("decorators", "decoratorsBeforeExport") === !0 && this.raise(N.DecoratorBeforeExport,
this.state.startLoc), this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1), this.startNode()), !0, !0);
if (this.match(75) || this.match(74) || this.isLet())
throw this.raise(N.UnsupportedDefaultExport, this.state.startLoc);
let r = this.parseMaybeAssignAllowIn();
return this.semicolon(), r;
}
parseExportDeclaration(t) {
return this.match(80) ? this.parseClass(this.startNode(), !0, !1) : this.parseStatementListItem();
}
isExportDefaultSpecifier() {
let {
type: t
} = this.state;
if (et(t)) {
if (t === 95 && !this.state.containsEsc || t === 100)
return !1;
if ((t === 130 || t === 129) && !this.state.containsEsc) {
let {
type: s
} = this.lookahead();
if (et(s) && s !== 98 || s === 5)
return this.expectOnePlugin(["flow", "typescript"]), !1;
}
} else if (!this.match(65))
return !1;
let r = this.nextTokenStart(), n = this.isUnparsedContextual(r, "from");
if (this.input.charCodeAt(r) === 44 || et(this.state.type) && n)
return !0;
if (this.match(65) && n) {
let s = this.input.charCodeAt(this.nextTokenStartSince(r + 4));
return s === 34 || s === 39;
}
return !1;
}
parseExportFrom(t, r) {
this.eatContextual(98) ? (t.source = this.parseImportSource(), this.checkExport(t), this.maybeParseImportAttributes(t), this.checkJSONModuleImport(
t)) : r && this.unexpected(), this.semicolon();
}
shouldParseExportDeclaration() {
let {
type: t
} = this.state;
return t === 26 && (this.expectOnePlugin(["decorators", "decorators-legacy"]), this.hasPlugin("decorators")) ? (this.getPluginOption("\
decorators", "decoratorsBeforeExport") === !0 && this.raise(N.DecoratorBeforeExport, this.state.startLoc), !0) : this.isContextual(107) ? (this.
raise(N.UsingDeclarationExport, this.state.startLoc), !0) : this.isContextual(96) && this.startsAwaitUsing() ? (this.raise(N.UsingDeclarationExport,
this.state.startLoc), !0) : t === 74 || t === 75 || t === 68 || t === 80 || this.isLet() || this.isAsyncFunction();
}
checkExport(t, r, n, s) {
if (r) {
var 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(
N.ExportDefaultFromAsIdentifier, l);
}
} else if ((a = t.specifiers) != null && a.length)
for (let l of t.specifiers) {
let {
exported: u
} = l, c = u.type === "Identifier" ? u.name : u.value;
if (this.checkDuplicateExports(l, c), !s && l.local) {
let {
local: p
} = l;
p.type !== "Identifier" ? this.raise(N.ExportBindingIsString, l, {
localName: p.value,
exportName: c
}) : (this.checkReservedWord(p.name, p.loc.start, !0, !1), this.scope.checkLocalExport(p));
}
}
else if (t.declaration) {
let l = t.declaration;
if (l.type === "FunctionDeclaration" || l.type === "ClassDeclaration") {
let {
id: u
} = l;
if (!u) throw new Error("Assertion failure");
this.checkDuplicateExports(t, u.name);
} else if (l.type === "VariableDeclaration")
for (let u of l.declarations)
this.checkDeclaration(u.id);
}
}
}
checkDeclaration(t) {
if (t.type === "Identifier")
this.checkDuplicateExports(t, t.name);
else if (t.type === "ObjectPattern")
for (let r of t.properties)
this.checkDeclaration(r);
else if (t.type === "ArrayPattern")
for (let r of t.elements)
r && this.checkDeclaration(r);
else t.type === "ObjectProperty" ? this.checkDeclaration(t.value) : t.type === "RestElement" ? this.checkDeclaration(t.argument) : t.type ===
"AssignmentPattern" && this.checkDeclaration(t.left);
}
checkDuplicateExports(t, r) {
this.exportedIdentifiers.has(r) && (r === "default" ? this.raise(N.DuplicateDefaultExport, t) : this.raise(N.DuplicateExport, t, {
exportName: r
})), this.exportedIdentifiers.add(r);
}
parseExportSpecifiers(t) {
let r = [], n = !0;
for (this.expect(5); !this.eat(8); ) {
if (n)
n = !1;
else if (this.expect(12), this.eat(8)) break;
let s = this.isContextual(130), a = this.match(134), o = this.startNode();
o.local = this.parseModuleExportName(), r.push(this.parseExportSpecifier(o, a, t, s));
}
return r;
}
parseExportSpecifier(t, r, n, s) {
return this.eatContextual(93) ? t.exported = this.parseModuleExportName() : r ? t.exported = MK(t.local) : t.exported || (t.exported =
In(t.local)), this.finishNode(t, "ExportSpecifier");
}
parseModuleExportName() {
if (this.match(134)) {
let t = this.parseStringLiteral(this.state.value), r = iG.exec(t.value);
return r && this.raise(N.ModuleExportNameHasLoneSurrogate, t, {
surrogateCharCode: r[0].charCodeAt(0)
}), t;
}
return this.parseIdentifier(!0);
}
isJSONModuleImport(t) {
return t.assertions != null ? t.assertions.some(({
key: r,
value: 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(N.SourcePhaseImportRequiresDefault, r[0].loc.start);
else if (t.phase === "defer")
n !== "ImportNamespaceSpecifier" && this.raise(N.DeferImportRequiresNamespace, r[0].loc.start);
else if (t.module) {
var s;
n !== "ImportDefaultSpecifier" && this.raise(N.ImportReflectionNotBinding, r[0].loc.start), ((s = t.assertions) == null ? void 0 : s.
length) > 0 && this.raise(N.ImportReflectionHasAssertion, r[0].loc.start);
}
}
checkJSONModuleImport(t) {
if (this.isJSONModuleImport(t) && t.type !== "ExportAllDeclaration") {
let {
specifiers: r
} = t;
if (r != null) {
let n = r.find((s) => {
let a;
if (s.type === "ExportSpecifier" ? a = s.local : s.type === "ImportSpecifier" && (a = s.imported), a !== void 0)
return a.type === "Identifier" ? a.name !== "default" : a.value !== "default";
});
n !== void 0 && this.raise(N.ImportJSONBindingNotDefault, n.loc.start);
}
}
}
isPotentialImportPhase(t) {
return t ? !1 : this.isContextual(105) || this.isContextual(97) || this.isContextual(127);
}
applyImportPhase(t, r, n, s) {
r || (n === "module" ? (this.expectPlugin("importReflection", s), t.module = !0) : this.hasPlugin("importReflection") && (t.module = !1),
n === "source" ? (this.expectPlugin("sourcePhaseImports", s), t.phase = "source") : n === "defer" ? (this.expectPlugin("deferredImport\
Evaluation", s), t.phase = "defer") : this.hasPlugin("sourcePhaseImports") && (t.phase = null));
}
parseMaybeImportPhase(t, r) {
if (!this.isPotentialImportPhase(r))
return this.applyImportPhase(t, r, null), null;
let n = this.parseIdentifier(!0), {
type: s
} = this.state;
return (Kr(s) ? s !== 98 || this.lookaheadCharCode() === 102 : s !== 12) ? (this.resetPreviousIdentifierLeadingComments(n), this.applyImportPhase(
t, r, n.name, n.loc.start), null) : (this.applyImportPhase(t, r, null), n);
}
isPrecedingIdImportPhase(t) {
let {
type: r
} = this.state;
return et(r) ? r !== 98 || this.lookaheadCharCode() === 102 : r !== 12;
}
parseImport(t) {
return this.match(134) ? this.parseImportSourceAndAttributes(t) : this.parseImportSpecifiersAndAfter(t, this.parseMaybeImportPhase(t, !1));
}
parseImportSpecifiersAndAfter(t, r) {
t.specifiers = [];
let s = !this.maybeParseDefaultImportSpecifier(t, r) || this.eat(12), a = s && this.maybeParseStarImportSpecifier(t);
return s && !a && this.parseNamedImportSpecifiers(t), this.expectContextual(98), this.parseImportSourceAndAttributes(t);
}
parseImportSourceAndAttributes(t) {
var r;
return (r = t.specifiers) != null || (t.specifiers = []), t.source = this.parseImportSource(), this.maybeParseImportAttributes(t), this.
checkImportReflection(t), this.checkJSONModuleImport(t), this.semicolon(), this.sawUnambiguousESM = !0, this.finishNode(t, "ImportDecl\
aration");
}
parseImportSource() {
return this.match(134) || this.unexpected(), this.parseExprAtom();
}
parseImportSpecifierLocal(t, r, 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(), s = this.state.value;
if (r.has(s) && this.raise(N.ModuleAttributesWithDuplicateKeys, this.state.startLoc, {
key: s
}), r.add(s), this.match(134) ? n.key = this.parseStringLiteral(s) : n.key = this.parseIdentifier(!0), this.expect(14), !this.match(
134))
throw this.raise(N.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(N.ModuleAttributeDifferentFromType, n.key), r.has(n.key.name) &&
this.raise(N.ModuleAttributesWithDuplicateKeys, n.key, {
key: n.key.name
}), r.add(n.key.name), this.expect(14), !this.match(134))
throw this.raise(N.ModuleAttributeInvalidValue, this.state.startLoc);
n.value = this.parseStringLiteral(this.state.value), t.push(this.finishNode(n, "ImportAttribute"));
} while (this.eat(12));
return t;
}
maybeParseImportAttributes(t) {
let r;
var n = !1;
if (this.match(76)) {
if (this.hasPrecedingLineBreak() && this.lookaheadCharCode() === 40)
return;
this.next(), this.hasPlugin("moduleAttributes") ? (r = this.parseModuleAttributes(), this.addExtra(t, "deprecatedWithLegacySyntax", !0)) :
r = this.parseImportAttributes(), n = !0;
} else this.isContextual(94) && !this.hasPrecedingLineBreak() ? (!this.hasPlugin("deprecatedImportAssert") && !this.hasPlugin("importA\
ssertions") && this.raise(N.ImportAttributesUseAssert, this.state.startLoc), this.hasPlugin("importAssertions") || this.addExtra(t, "depreca\
tedAssertSyntax", !0), this.next(), r = this.parseImportAttributes()) : r = [];
!n && this.hasPlugin("importAssertions") ? t.assertions = r : t.attributes = r;
}
maybeParseDefaultImportSpecifier(t, r) {
if (r) {
let n = this.startNodeAtNode(r);
return n.local = r, t.specifiers.push(this.finishImportSpecifier(n, "ImportDefaultSpecifier")), !0;
} else if (Kr(this.state.type))
return this.parseImportSpecifierLocal(t, this.startNode(), "ImportDefaultSpecifier"), !0;
return !1;
}
maybeParseStarImportSpecifier(t) {
if (this.match(55)) {
let r = this.startNode();
return this.next(), this.expectContextual(93), this.parseImportSpecifierLocal(t, r, "ImportNamespaceSpecifier"), !0;
}
return !1;
}
parseNamedImportSpecifiers(t) {
let r = !0;
for (this.expect(5); !this.eat(8); ) {
if (r)
r = !1;
else {
if (this.eat(14))
throw this.raise(N.DestructureNamedImport, this.state.startLoc);
if (this.expect(12), this.eat(8)) break;
}
let n = this.startNode(), s = this.match(134), a = this.isContextual(130);
n.imported = this.parseModuleExportName();
let o = this.parseImportSpecifier(n, s, t.importKind === "type" || t.importKind === "typeof", a, void 0);
t.specifiers.push(o);
}
}
parseImportSpecifier(t, r, n, s, a) {
if (this.eatContextual(93))
t.local = this.parseIdentifier();
else {
let {
imported: o
} = t;
if (r)
throw this.raise(N.ImportBindingIsString, t, {
importName: o.value
});
this.checkReservedWord(o.name, t.loc.start, !0, !0), t.local || (t.local = In(o));
}
return this.finishImportSpecifier(t, "ImportSpecifier", a);
}
isThisParam(t) {
return t.type === "Identifier" && t.name === "this";
}
}, Rl = class extends vh {
static {
i(this, "Parser");
}
constructor(t, r, n) {
t = rK(t), super(t, r), this.options = t, this.initializeScopes(), this.plugins = n, this.filename = t.sourceFilename, this.startIndex =
t.startIndex;
let s = 0;
t.allowAwaitOutsideFunction && (s |= 1), t.allowReturnOutsideFunction && (s |= 2), t.allowImportExportEverywhere && (s |= 8), t.allowSuperOutsideMethod &&
(s |= 16), t.allowUndeclaredExports && (s |= 64), t.allowNewTargetOutsideFunction && (s |= 4), t.allowYieldOutsideFunction && (s |= 32),
t.ranges && (s |= 128), t.tokens && (s |= 256), t.createImportExpressions && (s |= 512), t.createParenthesizedExpressions && (s |= 1024),
t.errorRecovery && (s |= 2048), t.attachComment && (s |= 4096), t.annexB && (s |= 8192), this.optionFlags = s;
}
getScopeHandler() {
return Ga;
}
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 oG(e, t) {
var r;
if (((r = t) == null ? void 0 : r.sourceType) === "unambiguous") {
t = Object.assign({}, t);
try {
t.sourceType = "module";
let n = $a(t, e), s = n.parse();
if (n.sawUnambiguousESM)
return s;
if (n.ambiguousScriptDifferentAst)
try {
return t.sourceType = "script", $a(t, e).parse();
} catch {
}
else
s.program.sourceType = "script";
return s;
} catch (n) {
try {
return t.sourceType = "script", $a(t, e).parse();
} catch {
}
throw n;
}
} else
return $a(t, e).parse();
}
i(oG, "parse");
function lG(e, t) {
let r = $a(t, e);
return r.options.strictMode && (r.state.strict = !0), r.getExpression();
}
i(lG, "parseExpression");
function uG(e) {
let t = {};
for (let r of Object.keys(e))
t[r] = An(e[r]);
return t;
}
i(uG, "generateExportedTokenTypes");
var cG = uG(aK);
function $a(e, t) {
let r = Rl, n = /* @__PURE__ */ new Map();
if (e != null && e.plugins) {
for (let s of e.plugins) {
let a, o;
typeof s == "string" ? a = s : [a, o] = s, n.has(a) || n.set(a, o || {});
}
rG(n), r = pG(n);
}
return new r(e, t, n);
}
i($a, "getParser");
var UT = /* @__PURE__ */ new Map();
function pG(e) {
let t = [];
for (let s of nG)
e.has(s) && t.push(s);
let r = t.join("|"), n = UT.get(r);
if (!n) {
n = Rl;
for (let s of t)
n = rS[s](n);
UT.set(r, n);
}
return n;
}
i(pG, "getParserClass");
Ya.parse = oG;
Ya.parseExpression = lG;
Ya.tokTypes = cG;
});
// ../node_modules/picocolors/picocolors.js
var iS = P((YSe, kh) => {
var Ul = process || {}, nS = Ul.argv || [], ql = Ul.env || {}, fG = !(ql.NO_COLOR || nS.includes("--no-color")) && (!!ql.FORCE_COLOR || nS.
includes("--color") || Ul.platform === "win32" || (Ul.stdout || {}).isTTY && ql.TERM !== "dumb" || !!ql.CI), dG = /* @__PURE__ */ i((e, t, r = e) => (n) => {
let s = "" + n, a = s.indexOf(t, e.length);
return ~a ? e + hG(s, t, r, a) + t : e + s + t;
}, "formatter"), hG = /* @__PURE__ */ i((e, t, r, n) => {
let s = "", a = 0;
do
s += e.substring(a, n) + r, a = n + t.length, n = e.indexOf(t, a);
while (~n);
return s + e.substring(a);
}, "replaceClose"), sS = /* @__PURE__ */ i((e = fG) => {
let t = e ? dG : () => 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");
kh.exports = sS();
kh.exports.createColors = sS;
});
// ../node_modules/js-tokens/index.js
var aS = P((Vl) => {
Object.defineProperty(Vl, "__esModule", {
value: !0
});
Vl.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;
Vl.matchToToken = function(e) {
var t = { type: "invalid", value: e[0], closed: void 0 };
return e[1] ? (t.type = "string", t.closed = !!(e[3] || e[4])) : e[5] ? t.type = "comment" : e[6] ? (t.type = "comment", t.closed = !!e[7]) :
e[8] ? t.type = "regex" : e[9] ? t.type = "number" : e[10] ? t.type = "name" : e[11] ? t.type = "punctuator" : e[12] && (t.type = "white\
space"), t;
};
});
// ../node_modules/@babel/code-frame/lib/index.js
var Xa = P((Ja) => {
"use strict";
Object.defineProperty(Ja, "__esModule", { value: !0 });
var Fh = iS(), oS = aS(), lS = Ti();
function mG() {
return typeof process == "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? !1 : Fh.isColorSupported;
}
i(mG, "isColorSupported");
var $l = /* @__PURE__ */ i((e, t) => (r) => e(t(r)), "compose");
function pS(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: $l($l(e.white, e.bgRed), e.bold),
gutter: e.gray,
marker: $l(e.red, e.bold),
message: $l(e.red, e.bold),
reset: e.reset
};
}
i(pS, "buildDefs");
var yG = pS(Fh.createColors(!0)), gG = pS(Fh.createColors(!1));
function fS(e) {
return e ? yG : gG;
}
i(fS, "getDefs");
var bG = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]), EG = /\r\n|[\n\r\u2028\u2029]/, TG = /^[()[\]{}]$/, dS;
{
let e = /^[a-z][\w-]*$/i, t = /* @__PURE__ */ i(function(r, n, s) {
if (r.type === "name") {
if (lS.isKeyword(r.value) || lS.isStrictReservedWord(r.value, !0) || bG.has(r.value))
return "keyword";
if (e.test(r.value) && (s[n - 1] === "<" || s.slice(n - 2, n) === "</"))
return "jsxIdentifier";
if (r.value[0] !== r.value[0].toLowerCase())
return "capitalized";
}
return r.type === "punctuator" && TG.test(r.value) ? "bracket" : r.type === "invalid" && (r.value === "@" || r.value === "#") ? "punct\
uator" : r.type;
}, "getTokenType");
dS = /* @__PURE__ */ i(function* (r) {
let n;
for (; n = oS.default.exec(r); ) {
let s = oS.matchToToken(n);
yield {
type: t(s, n.index, r),
value: s.value
};
}
}, "tokenize");
}
function hS(e) {
if (e === "") return "";
let t = fS(!0), r = "";
for (let {
type: n,
value: s
} of dS(e))
n in t ? r += s.split(EG).map((a) => t[n](a)).join(`
`) : r += s;
return r;
}
i(hS, "highlight");
var uS = !1, cS = /\r\n|[\n\r\u2028\u2029]/;
function SG(e, t, r) {
let n = Object.assign({
column: 0,
line: -1
}, e.start), s = Object.assign({}, n, e.end), {
linesAbove: a = 2,
linesBelow: o = 3
} = r || {}, l = n.line, u = n.column, c = s.line, p = s.column, f = Math.max(l - (a + 1), 0), h = Math.min(t.length, c + o);
l === -1 && (f = 0), c === -1 && (h = t.length);
let y = c - l, E = {};
if (y)
for (let d = 0; d <= y; d++) {
let g = d + l;
if (!u)
E[g] = !0;
else if (d === 0) {
let C = t[g - 1].length;
E[g] = [u, C - u + 1];
} else if (d === y)
E[g] = [0, p];
else {
let C = t[g - d].length;
E[g] = [0, C];
}
}
else
u === p ? u ? E[l] = [u, 0] : E[l] = !0 : E[l] = [u, p - u];
return {
start: f,
end: h,
markerLines: E
};
}
i(SG, "getMarkerLines");
function mS(e, t, r = {}) {
let n = r.forceColor || mG() && r.highlightCode, s = fS(n), a = e.split(cS), {
start: o,
end: l,
markerLines: u
} = SG(t, a, r), c = t.start && typeof t.start.column == "number", p = String(l).length, h = (n ? hS(e) : e).split(cS, l).slice(o, l).map(
(y, E) => {
let d = o + 1 + E, C = ` ${` ${d}`.slice(-p)} |`, _ = u[d], O = !u[d + 1];
if (_) {
let B = "";
if (Array.isArray(_)) {
let R = y.slice(0, Math.max(_[0] - 1, 0)).replace(/[^\t]/g, " "), $ = _[1] || 1;
B = [`
`, s.gutter(C.replace(/\d/g, " ")), " ", R, s.marker("^").repeat($)].join(""), O && r.message && (B += " " + s.message(r.message));
}
return [s.marker(">"), s.gutter(C), y.length > 0 ? ` ${y}` : "", B].join("");
} else
return ` ${s.gutter(C)}${y.length > 0 ? ` ${y}` : ""}`;
}).join(`
`);
return r.message && !c && (h = `${" ".repeat(p + 1)}${r.message}
${h}`), n ? s.reset(h) : h;
}
i(mS, "codeFrameColumns");
function xG(e, t, r, n = {}) {
if (!uS) {
uS = !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), mS(e, {
start: {
column: r,
line: t
}
}, n);
}
i(xG, "index");
Ja.codeFrameColumns = mS;
Ja.default = xG;
Ja.highlight = hS;
});
// ../node_modules/@babel/template/lib/parse.js
var Lh = P((jh) => {
"use strict";
Object.defineProperty(jh, "__esModule", {
value: !0
});
jh.default = jG;
var vG = De(), PG = Rs(), AG = Xa(), {
isCallExpression: CG,
isExpressionStatement: DG,
isFunction: wG,
isIdentifier: IG,
isJSXIdentifier: _G,
isNewExpression: OG,
isPlaceholder: Wl,
isStatement: NG,
isStringLiteral: yS,
removePropertiesDeep: BG,
traverse: kG
} = vG, FG = /^[_$A-Z0-9]+$/;
function jG(e, t, r) {
let {
placeholderWhitelist: n,
placeholderPattern: s,
preserveComments: a,
syntacticPlaceholders: o
} = r, l = RG(t, r.parser, o);
BG(l, {
preserveComments: a
}), e.validate(l);
let u = {
syntactic: {
placeholders: [],
placeholderNames: /* @__PURE__ */ new Set()
},
legacy: {
placeholders: [],
placeholderNames: /* @__PURE__ */ new Set()
},
placeholderWhitelist: n,
placeholderPattern: s,
syntacticPlaceholders: o
};
return kG(l, LG, u), Object.assign({
ast: l
}, u.syntactic.placeholders.length ? u.syntactic : u.legacy);
}
i(jG, "parseAndBuildMetadata");
function LG(e, t, r) {
var n;
let s, a = r.syntactic.placeholders.length > 0;
if (Wl(e)) {
if (r.syntacticPlaceholders === !1)
throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");
s = e.name.name, a = !0;
} else {
if (a || r.syntacticPlaceholders)
return;
if (IG(e) || _G(e))
s = e.name;
else if (yS(e))
s = 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 || FG).test(s)) && !((n = r.placeholderWhitelist) != null && n.has(s)))
return;
t = t.slice();
let {
node: o,
key: l
} = t[t.length - 1], u;
yS(e) || Wl(e, {
expectedNode: "StringLiteral"
}) ? u = "string" : OG(o) && l === "arguments" || CG(o) && l === "arguments" || wG(o) && l === "params" ? u = "param" : DG(o) && !Wl(e) ?
(u = "statement", t = t.slice(0, -1)) : NG(e) && Wl(e) ? u = "statement" : u = "other";
let {
placeholders: c,
placeholderNames: p
} = a ? r.syntactic : r.legacy;
c.push({
name: s,
type: u,
resolve: /* @__PURE__ */ i((f) => MG(f, t), "resolve"),
isDuplicate: p.has(s)
}), p.add(s);
}
i(LG, "placeholderVisitorHandler");
function MG(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: s
} = t[t.length - 1];
return {
parent: r,
key: n,
index: s
};
}
i(MG, "resolveAncestors");
function RG(e, t, r) {
let n = (t.plugins || []).slice();
r !== !1 && n.push("placeholders"), t = Object.assign({
allowAwaitOutsideFunction: !0,
allowReturnOutsideFunction: !0,
allowNewTargetOutsideFunction: !0,
allowSuperOutsideMethod: !0,
allowYieldOutsideFunction: !0,
sourceType: "module"
}, t, {
plugins: n
});
try {
return (0, PG.parse)(e, t);
} catch (s) {
let a = s.loc;
throw a && (s.message += `
` + (0, AG.codeFrameColumns)(e, {
start: a
}), s.code = "BABEL_TEMPLATE_PARSE_ERROR"), s;
}
}
i(RG, "parseWithCodeFrame");
});
// ../node_modules/@babel/template/lib/populate.js
var Uh = P((qh) => {
"use strict";
Object.defineProperty(qh, "__esModule", {
value: !0
});
qh.default = KG;
var qG = De(), {
blockStatement: UG,
cloneNode: Rh,
emptyStatement: VG,
expressionStatement: Mh,
identifier: Kl,
isStatement: gS,
isStringLiteral: $G,
stringLiteral: WG,
validate: bS
} = qG;
function KG(e, t) {
let r = Rh(e.ast);
return t && (e.placeholders.forEach((n) => {
if (!hasOwnProperty.call(t, n.name)) {
let s = n.name;
throw new Error(`Error: No substitution given for "${s}". If this is not meant to be a
placeholder you may want to consider passing one of the following options to @babel/template:
- { placeholderPattern: false, placeholderWhitelist: new Set(['${s}'])}
- { placeholderPattern: /^${s}$/ }`);
}
}), Object.keys(t).forEach((n) => {
if (!e.placeholderNames.has(n))
throw new Error(`Unknown substitution "${n}" given`);
})), e.placeholders.slice().reverse().forEach((n) => {
try {
GG(n, r, t && t[n.name] || null);
} catch (s) {
throw s.message = `@babel/template placeholder "${n.name}": ${s.message}`, s;
}
}), r;
}
i(KG, "populatePlaceholders");
function GG(e, t, r) {
e.isDuplicate && (Array.isArray(r) ? r = r.map((l) => Rh(l)) : typeof r == "object" && (r = Rh(r)));
let {
parent: n,
key: s,
index: a
} = e.resolve(t);
if (e.type === "string") {
if (typeof r == "string" && (r = WG(r)), !r || !$G(r))
throw new Error("Expected string substitution");
} else if (e.type === "statement")
a === void 0 ? r ? Array.isArray(r) ? r = UG(r) : typeof r == "string" ? r = Mh(Kl(r)) : gS(r) || (r = Mh(r)) : r = VG() : r && !Array.
isArray(r) && (typeof r == "string" && (r = Kl(r)), gS(r) || (r = Mh(r)));
else if (e.type === "param") {
if (typeof r == "string" && (r = Kl(r)), a === void 0) throw new Error("Assertion failure.");
} else if (typeof r == "string" && (r = Kl(r)), Array.isArray(r))
throw new Error("Cannot replace single expression with an array.");
function o(l, u, c) {
let p = l[u];
l[u] = c, (p.type === "Identifier" || p.type === "Placeholder") && (p.typeAnnotation && (c.typeAnnotation = p.typeAnnotation), p.optional &&
(c.optional = p.optional), p.decorators && (c.decorators = p.decorators));
}
if (i(o, "set"), a === void 0)
bS(n, s, r), o(n, s, r);
else {
let l = n[s].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), bS(n, s, l), n[s] = l;
}
}
i(GG, "applyReplacement");
});
// ../node_modules/@babel/template/lib/string.js
var ES = P((Vh) => {
"use strict";
Object.defineProperty(Vh, "__esModule", {
value: !0
});
Vh.default = XG;
var HG = _l(), YG = Lh(), JG = Uh();
function XG(e, t, r) {
t = e.code(t);
let n;
return (s) => {
let a = (0, HG.normalizeReplacements)(s);
return n || (n = (0, YG.default)(e, t, r)), e.unwrap((0, JG.default)(n, a));
};
}
i(XG, "stringTemplate");
});
// ../node_modules/@babel/template/lib/literal.js
var TS = P(($h) => {
"use strict";
Object.defineProperty($h, "__esModule", {
value: !0
});
$h.default = eH;
var zG = _l(), QG = Lh(), ZG = Uh();
function eH(e, t, r) {
let {
metadata: n,
names: s
} = tH(e, t, r);
return (a) => {
let o = {};
return a.forEach((l, u) => {
o[s[u]] = l;
}), (l) => {
let u = (0, zG.normalizeReplacements)(l);
return u && Object.keys(u).forEach((c) => {
if (hasOwnProperty.call(o, c))
throw new Error("Unexpected replacement overlap.");
}), e.unwrap((0, ZG.default)(n, u ? Object.assign(u, o) : o));
};
};
}
i(eH, "literalTemplate");
function tH(e, t, r) {
let n = "BABEL_TPL$", s = t.join("");
do
n = "$$" + n;
while (s.includes(n));
let {
names: a,
code: o
} = rH(t, n);
return {
metadata: (0, QG.default)(e, e.code(o), {
parser: r.parser,
placeholderWhitelist: new Set(a.concat(r.placeholderWhitelist ? Array.from(r.placeholderWhitelist) : [])),
placeholderPattern: r.placeholderPattern,
preserveComments: r.preserveComments,
syntacticPlaceholders: r.syntacticPlaceholders
}),
names: a
};
}
i(tH, "buildLiteralData");
function rH(e, t) {
let r = [], n = e[0];
for (let s = 1; s < e.length; s++) {
let a = `${t}${s - 1}`;
r.push(a), n += a + e[s];
}
return {
names: r,
code: n
};
}
i(rH, "buildTemplateCode");
});
// ../node_modules/@babel/template/lib/builder.js
var CS = P((Wh) => {
"use strict";
Object.defineProperty(Wh, "__esModule", {
value: !0
});
Wh.default = AS;
var pn = _l(), SS = ES(), xS = TS(), vS = (0, pn.validate)({
placeholderPattern: !1
});
function AS(e, t) {
let r = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap(), s = t || (0, pn.validate)(null);
return Object.assign((a, ...o) => {
if (typeof a == "string") {
if (o.length > 1) throw new Error("Unexpected extra params.");
return PS((0, SS.default)(e, a, (0, pn.merge)(s, (0, pn.validate)(o[0]))));
} else if (Array.isArray(a)) {
let l = r.get(a);
return l || (l = (0, xS.default)(e, a, s), r.set(a, l)), PS(l(o));
} else if (typeof a == "object" && a) {
if (o.length > 0) throw new Error("Unexpected extra params.");
return AS(e, (0, pn.merge)(s, (0, pn.validate)(a)));
}
throw new Error(`Unexpected template param ${typeof a}`);
}, {
ast: /* @__PURE__ */ i((a, ...o) => {
if (typeof a == "string") {
if (o.length > 1) throw new Error("Unexpected extra params.");
return (0, SS.default)(e, a, (0, pn.merge)((0, pn.merge)(s, (0, pn.validate)(o[0])), vS))();
} else if (Array.isArray(a)) {
let l = n.get(a);
return l || (l = (0, xS.default)(e, a, (0, pn.merge)(s, vS)), n.set(a, l)), l(o)();
}
throw new Error(`Unexpected template param ${typeof a}`);
}, "ast")
});
}
i(AS, "createTemplateBuilder");
function PS(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;
}
};
}
i(PS, "extendedTrace");
});
// ../node_modules/@babel/template/lib/index.js
var Za = P((mr) => {
"use strict";
Object.defineProperty(mr, "__esModule", {
value: !0
});
mr.statements = mr.statement = mr.smart = mr.program = mr.expression = mr.default = void 0;
var za = CT(), Qa = CS(), Kh = mr.smart = (0, Qa.default)(za.smart), nH = mr.statement = (0, Qa.default)(za.statement), sH = mr.statements =
(0, Qa.default)(za.statements), iH = mr.expression = (0, Qa.default)(za.expression), aH = mr.program = (0, Qa.default)(za.program), uxe = mr.
default = Object.assign(Kh.bind(void 0), {
smart: Kh,
statement: nH,
statements: sH,
expression: iH,
program: aH,
ast: Kh.ast
});
});
// ../node_modules/@babel/helpers/lib/helpers-generated.js
var DS = P((Gl) => {
"use strict";
Object.defineProperty(Gl, "__esModule", {
value: !0
});
Gl.default = void 0;
var oH = Za();
function G(e, t, r) {
return Object.freeze({
minVersion: e,
ast: /* @__PURE__ */ i(() => oH.default.program.ast(t, {
preserveComments: !0
}), "ast"),
metadata: r
});
}
i(G, "helper");
var lH = Gl.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<t.length\
;a++)i=t[a].apply(o,r?[i]:[]);return r?i:o}}function b(e,t,n,r){if("function"!=typeof e&&(r||void 0!==e))throw new TypeError(t+" must "+(n||\
"be")+" a function"+(r?"":" or undefined"));return e}function applyDec(e,t,n,r,o,i,u,s,f,l,p){function d(e){if(!p(e))throw new TypeError("At\
tempted to access private element on non-instance")}var h=[].concat(t[0]),v=t[3],w=!u,D=1===o,S=3===o,j=4===o,E=2===o;function I(t,n,r){retu\
rn function(o,i){return n&&(i=o,o=e),r&&r(o),P[t].call(o,i)}}if(!w){var P={},k=[],F=S?"get":j||D?"set":"value";if(f?(l||D?P={get:setFunction\
Name((function(){return v(this)}),r,"get"),set:function(e){t[4](this,e)}}:P[F]=v,l||setFunctionName(P[F],r,E?"":F)):l||(P=Object.getOwnPrope\
rtyDescriptor(e,r)),!l&&!f){if((c=y[+s][r])&&7!=(c^o))throw Error("Decorating two elements with the same name ("+P[F].name+") is not support\
ed yet");y[+s][r]=o<3?1:o}}for(var N=e,O=h.length-1;O>=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<a;e++)n[e]=r[\
e];return n}", {
globals: ["Array"],
locals: {
_arrayLikeToArray: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_arrayLikeToArray",
dependencies: {}
}),
arrayWithHoles: G("7.0.0-beta.0", "function _arrayWithHoles(r){if(Array.isArray(r))return r}", {
globals: ["Array"],
locals: {
_arrayWithHoles: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_arrayWithHoles",
dependencies: {}
}),
arrayWithoutHoles: G("7.0.0-beta.0", "function _arrayWithoutHoles(r){if(Array.isArray(r))return arrayLikeToArray(r)}", {
globals: ["Array"],
locals: {
_arrayWithoutHoles: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_arrayWithoutHoles",
dependencies: {
arrayLikeToArray: ["body.0.body.body.0.consequent.argument.callee"]
}
}),
assertClassBrand: G("7.24.0", 'function _assertClassBrand(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;th\
row new TypeError("Private element is not present on this object")}', {
globals: ["TypeError"],
locals: {
_assertClassBrand: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_assertClassBrand",
dependencies: {}
}),
assertThisInitialized: G("7.0.0-beta.0", `function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been in\
itialised - super() hasn't been called");return e}`, {
globals: ["ReferenceError"],
locals: {
_assertThisInitialized: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_assertThisInitialized",
dependencies: {}
}),
asyncGeneratorDelegate: G("7.0.0-beta.0", 'function _asyncGeneratorDelegate(t){var e={},n=!1;function pump(e,r){return n=!0,r=new Promis\
e((function(n){n(t[e](r))})),{done:!1,value:new OverloadYield(r,1)}}return e["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=func\
tion(){return this},e.next=function(t){return n?(n=!1,t):pump("next",t)},"function"==typeof t.throw&&(e.throw=function(t){if(n)throw n=!1,t;\
return pump("throw",t)}),"function"==typeof t.return&&(e.return=function(t){return n?(n=!1,t):pump("return",t)}),e}', {
globals: ["Promise", "Symbol"],
locals: {
_asyncGeneratorDelegate: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_asyncGeneratorDelegate",
dependencies: {
OverloadYield: ["body.0.body.body.1.body.body.0.argument.expressions.2.properties.1.value.callee"]
}
}),
asyncIterator: G("7.15.9", 'function _asyncIterator(r){var n,t,o,e=2;for("undefined"!=typeof Symbol&&(t=Symbol.asyncIterator,o=Symbol.it\
erator);e--;){if(t&&null!=(n=r[t]))return n.call(r);if(o&&null!=(n=r[o]))return new AsyncFromSyncIterator(n.call(r));t="@@asyncIterator",o="\
@@iterator"}throw new TypeError("Object is not async iterable")}function AsyncFromSyncIterator(r){function AsyncFromSyncIteratorContinuation\
(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var n=r.done;return Promise.resolve(r.value).then((functio\
n(r){return{value:r,done:n}}))}return AsyncFromSyncIterator=function(r){this.s=r,this.n=r.next},AsyncFromSyncIterator.prototype={s:null,n:nu\
ll,next:function(){return AsyncFromSyncIteratorContinuation(this.n.apply(this.s,arguments))},return:function(r){var n=this.s.return;return v\
oid 0===n?Promise.resolve({value:r,done:!0}):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))},throw:function(r){var n=this.s.re\
turn;return void 0===n?Promise.reject(r):AsyncFromSyncIteratorContinuation(n.apply(this.s,arguments))}},new AsyncFromSyncIterator(r)}', {
globals: ["Symbol", "TypeError", "Object", "Promise"],
locals: {
_asyncIterator: ["body.0.id"],
AsyncFromSyncIterator: ["body.1.id", "body.0.body.body.1.body.body.1.consequent.argument.callee", "body.1.body.body.1.argument.expre\
ssions.1.left.object", "body.1.body.body.1.argument.expressions.2.callee", "body.1.body.body.1.argument.expressions.0.left"]
},
exportBindingAssignments: [],
exportName: "_asyncIterator",
dependencies: {}
}),
asyncToGenerator: G("7.0.0-beta.0", 'function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value}catch(n){return void e(n)}i.\
done?t(u):Promise.resolve(u).then(r,o)}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise((function(r\
,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n)}function _throw(n){asyncGeneratorStep(a,r,o,_next,_\
throw,"throw",n)}_next(void 0)}))}}', {
globals: ["Promise"],
locals: {
asyncGeneratorStep: ["body.0.id", "body.1.body.body.0.argument.body.body.1.argument.arguments.0.body.body.1.body.body.0.expression.c\
allee", "body.1.body.body.0.argument.body.body.1.argument.arguments.0.body.body.2.body.body.0.expression.callee"],
_asyncToGenerator: ["body.1.id"]
},
exportBindingAssignments: [],
exportName: "_asyncToGenerator",
dependencies: {}
}),
awaitAsyncGenerator: G("7.0.0-beta.0", "function _awaitAsyncGenerator(e){return new OverloadYield(e,0)}", {
globals: [],
locals: {
_awaitAsyncGenerator: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_awaitAsyncGenerator",
dependencies: {
OverloadYield: ["body.0.body.body.0.argument.callee"]
}
}),
callSuper: G("7.23.8", "function _callSuper(t,o,e){return o=getPrototypeOf(o),possibleConstructorReturn(t,isNativeReflectConstruct()?Ref\
lect.construct(o,e||[],getPrototypeOf(t).constructor):o.apply(t,e))}", {
globals: ["Reflect"],
locals: {
_callSuper: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_callSuper",
dependencies: {
getPrototypeOf: ["body.0.body.body.0.argument.expressions.0.right.callee", "body.0.body.body.0.argument.expressions.1.arguments.1.co\
nsequent.arguments.2.object.callee"],
isNativeReflectConstruct: ["body.0.body.body.0.argument.expressions.1.arguments.1.test.callee"],
possibleConstructorReturn: ["body.0.body.body.0.argument.expressions.1.callee"]
}
}),
checkInRHS: G("7.20.5", `function _checkInRHS(e){if(Object(e)!==e)throw TypeError("right-hand side of 'in' should be an object, got "+(n\
ull!==e?typeof e:"null"));return e}`, {
globals: ["Object", "TypeError"],
locals: {
_checkInRHS: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_checkInRHS",
dependencies: {}
}),
checkPrivateRedeclaration: G("7.14.1", 'function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the \
same private elements twice on an object")}', {
globals: ["TypeError"],
locals: {
_checkPrivateRedeclaration: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_checkPrivateRedeclaration",
dependencies: {}
}),
classCallCheck: G("7.0.0-beta.0", 'function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a func\
tion")}', {
globals: ["TypeError"],
locals: {
_classCallCheck: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classCallCheck",
dependencies: {}
}),
classNameTDZError: G("7.0.0-beta.0", `function _classNameTDZError(e){throw new ReferenceError('Class "'+e+'" cannot be referenced in com\
puted property keys.')}`, {
globals: ["ReferenceError"],
locals: {
_classNameTDZError: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classNameTDZError",
dependencies: {}
}),
classPrivateFieldGet2: G("7.24.0", "function _classPrivateFieldGet2(s,a){return s.get(assertClassBrand(s,a))}", {
globals: [],
locals: {
_classPrivateFieldGet2: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classPrivateFieldGet2",
dependencies: {
assertClassBrand: ["body.0.body.body.0.argument.arguments.0.callee"]
}
}),
classPrivateFieldInitSpec: G("7.14.1", "function _classPrivateFieldInitSpec(e,t,a){checkPrivateRedeclaration(e,t),t.set(e,a)}", {
globals: [],
locals: {
_classPrivateFieldInitSpec: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classPrivateFieldInitSpec",
dependencies: {
checkPrivateRedeclaration: ["body.0.body.body.0.expression.expressions.0.callee"]
}
}),
classPrivateFieldLooseBase: G("7.0.0-beta.0", 'function _classPrivateFieldBase(e,t){if(!{}.hasOwnProperty.call(e,t))throw new TypeError(\
"attempted to use private field on non-instance");return e}', {
globals: ["TypeError"],
locals: {
_classPrivateFieldBase: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classPrivateFieldBase",
dependencies: {}
}),
classPrivateFieldLooseKey: G("7.0.0-beta.0", 'var id=0;function _classPrivateFieldKey(e){return"__private_"+id+++"_"+e}', {
globals: [],
locals: {
id: ["body.0.declarations.0.id", "body.1.body.body.0.argument.left.left.right.argument", "body.1.body.body.0.argument.left.left.righ\
t.argument"],
_classPrivateFieldKey: ["body.1.id"]
},
exportBindingAssignments: [],
exportName: "_classPrivateFieldKey",
dependencies: {}
}),
classPrivateFieldSet2: G("7.24.0", "function _classPrivateFieldSet2(s,a,r){return s.set(assertClassBrand(s,a),r),r}", {
globals: [],
locals: {
_classPrivateFieldSet2: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classPrivateFieldSet2",
dependencies: {
assertClassBrand: ["body.0.body.body.0.argument.expressions.0.arguments.0.callee"]
}
}),
classPrivateGetter: G("7.24.0", "function _classPrivateGetter(s,r,a){return a(assertClassBrand(s,r))}", {
globals: [],
locals: {
_classPrivateGetter: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classPrivateGetter",
dependencies: {
assertClassBrand: ["body.0.body.body.0.argument.arguments.0.callee"]
}
}),
classPrivateMethodInitSpec: G("7.14.1", "function _classPrivateMethodInitSpec(e,a){checkPrivateRedeclaration(e,a),a.add(e)}", {
globals: [],
locals: {
_classPrivateMethodInitSpec: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classPrivateMethodInitSpec",
dependencies: {
checkPrivateRedeclaration: ["body.0.body.body.0.expression.expressions.0.callee"]
}
}),
classPrivateSetter: G("7.24.0", "function _classPrivateSetter(s,r,a,t){return r(assertClassBrand(s,a),t),t}", {
globals: [],
locals: {
_classPrivateSetter: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classPrivateSetter",
dependencies: {
assertClassBrand: ["body.0.body.body.0.argument.expressions.0.arguments.0.callee"]
}
}),
classStaticPrivateMethodGet: G("7.3.2", "function _classStaticPrivateMethodGet(s,a,t){return assertClassBrand(a,s),t}", {
globals: [],
locals: {
_classStaticPrivateMethodGet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_classStaticPrivateMethodGet",
dependencies: {
assertClassBrand: ["body.0.body.body.0.argument.expressions.0.callee"]
}
}),
construct: G("7.0.0-beta.0", "function _construct(t,e,r){if(isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);va\
r o=[null];o.push.apply(o,e);var p=new(t.bind.apply(t,o));return r&&setPrototypeOf(p,r.prototype),p}", {
globals: ["Reflect"],
locals: {
_construct: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_construct",
dependencies: {
isNativeReflectConstruct: ["body.0.body.body.0.test.callee"],
setPrototypeOf: ["body.0.body.body.4.argument.expressions.0.right.callee"]
}
}),
createClass: G("7.0.0-beta.0", 'function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.c\
onfigurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,toPropertyKey(o.key),o)}}function _createClass(e,r,t){return r&&_defineP\
roperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}', {
globals: ["Object"],
locals: {
_defineProperties: ["body.0.id", "body.1.body.body.0.argument.expressions.0.right.callee", "body.1.body.body.0.argument.expressions.\
1.right.callee"],
_createClass: ["body.1.id"]
},
exportBindingAssignments: [],
exportName: "_createClass",
dependencies: {
toPropertyKey: ["body.0.body.body.0.body.body.1.expression.expressions.3.arguments.1.callee"]
}
}),
createForOfIteratorHelper: G("7.9.0", 'function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r[\
"@@iterator"];if(!t){if(Array.isArray(r)||(t=unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,F=function(){\
};return{s:F,n:function(){return n>=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<i.length;n++)o=i[n](o);var s=r((function(\
e){o.initializeInstanceElements(e,a.elements)}),t),a=o.decorateClass(_coalesceClassElements(s.d.map(_createElementDescriptor)),e);return o.i\
nitializeClassElements(s.F,a.elements),o.runClassFinishers(s.F,a.finishers)}function _getDecoratorsApi(){_getDecoratorsApi=function(){return\
e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach((function(t){r\
.forEach((function(r){r.kind===t&&"own"===r.placement&&this.defineClassElement(e,r)}),this)}),this)},initializeClassElements:function(e,r){v\
ar t=e.prototype;["method","field"].forEach((function(i){r.forEach((function(r){var o=r.placement;if(r.kind===i&&("static"===o||"prototype"=\
==o)){var n="static"===o?e:t;this.defineClassElement(n,r)}}),this)}),this)},defineClassElement:function(e,r){var t=r.descriptor;if("field"==\
=r.kind){var i=r.initializer;t={enumerable:t.enumerable,writable:t.writable,configurable:t.configurable,value:void 0===i?void 0:i.call(e)}}O\
bject.defineProperty(e,r.key,t)},decorateClass:function(e,r){var t=[],i=[],o={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.\
addElementPlacement(e,o)}),this),e.forEach((function(e){if(!_hasDecorators(e))return t.push(e);var r=this.decorateElement(e,o);t.push(r.elem\
ent),t.push.apply(t,r.extras),i.push.apply(i,r.finishers)}),this),!r)return{elements:t,finishers:i};var n=this.decorateConstructor(t,r);retu\
rn i.push.apply(i,n.finishers),n.finishers=i,n},addElementPlacement:function(e,r,t){var i=r[e.placement];if(!t&&-1!==i.indexOf(e.key))throw \
new TypeError("Duplicated element ("+e.key+")");i.push(e.key)},decorateElement:function(e,r){for(var t=[],i=[],o=e.decorators,n=o.length-1;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<c.length;p++)this.addElementPl\
acement(c[p],r);t.push.apply(t,c)}}return{element:e,finishers:i,extras:t}},decorateConstructor:function(e,r){for(var t=[],i=r.length-1;i>=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;s<e.length-1;s++)for(var a=s+1;a<e.length;a++)if(e[s].key===e[a].key&&e[s].placement===e[a].placement)throw new\
TypeError("Duplicated element ("+e[s].key+")")}}return{elements:e,finishers:t}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.\
key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"\
field"===e.kind&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){if(void 0!==e)return toArray(e).map((function(e){var r=th\
is.toElementDescriptor(e);return this.disallowProperty(e,"finisher","An element descriptor"),this.disallowProperty(e,"extras","An element de\
scriptor"),r}),this)},toElementDescriptor:function(e){var r=e.kind+"";if("method"!==r&&"field"!==r)throw new TypeError('An element descripto\
r\\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+r+'"');var t=toPropertyK\
ey(e.key),i=e.placement+"";if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\\'s .placement property mus\
t be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var o=e.descriptor;this.\
disallowProperty(e,"elements","An element descriptor");var n={kind:r,key:t,placement:i,descriptor:Object.assign({},o)};return"field"!==r?thi\
s.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(o,"get","The property descriptor of a field descriptor"),th\
is.disallowProperty(o,"set","The property descriptor of a field descriptor"),this.disallowProperty(o,"value","The property descriptor of a f\
ield descriptor"),n.initializer=e.initializer),n},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:_o\
ptionalCallableProperty(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",eleme\
nts:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toCla\
ssDescriptor:function(e){var r=e.kind+"";if("class"!==r)throw new TypeError('A class descriptor\\'s .kind property must be "class", but a dec\
orator created a class descriptor with .kind "'+r+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placemen\
t","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descripto\
r"),this.disallowProperty(e,"extras","A class descriptor");var t=_optionalCallableProperty(e,"finisher");return{elements:this.toElementDescr\
iptors(e.elements),finisher:t}},runClassFinishers:function(e,r){for(var t=0;t<r.length;t++){var i=(0,r[t])(e);if(void 0!==i){if("function"!=\
typeof i)throw new TypeError("Finishers must return a constructor.");e=i}}return e},disallowProperty:function(e,r,t){if(void 0!==e[r])throw \
new TypeError(t+" can't have a ."+r+" property.")}};return e}function _createElementDescriptor(e){var r,t=toPropertyKey(e.key);"method"===e.\
kind?r={value:e.value,writable:!0,configurable:!0,enumerable:!1}:"get"===e.kind?r={get:e.value,configurable:!0,enumerable:!1}:"set"===e.kind\
?r={set:e.value,configurable:!0,enumerable:!1}:"field"===e.kind&&(r={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===e.kin\
d?"field":"method",key:t,placement:e.static?"static":"field"===e.kind?"own":"prototype",descriptor:r};return e.decorators&&(i.decorators=e.d\
ecorators),"field"===e.kind&&(i.initializer=e.value),i}function _coalesceGetterSetter(e,r){void 0!==e.descriptor.get?r.descriptor.get=e.desc\
riptor.get:r.descriptor.set=e.descriptor.set}function _coalesceClassElements(e){for(var r=[],isSameElement=function(e){return"method"===e.ki\
nd&&e.key===o.key&&e.placement===o.placement},t=0;t<e.length;t++){var i,o=e[t];if("method"===o.kind&&(i=r.find(isSameElement)))if(_isDataDes\
criptor(o.descriptor)||_isDataDescriptor(i.descriptor)){if(_hasDecorators(o)||_hasDecorators(i))throw new ReferenceError("Duplicated methods\
("+o.key+") can't be decorated.");i.descriptor=o.descriptor}else{if(_hasDecorators(o)){if(_hasDecorators(i))throw new ReferenceError("Decor\
ators can't be placed on different accessors with for the same property ("+o.key+").");i.decorators=o.decorators}_coalesceGetterSetter(o,i)}\
else r.push(o)}return r}function _hasDecorators(e){return e.decorators&&e.decorators.length}function _isDataDescriptor(e){return void 0!==e&\
&!(void 0===e.value&&void 0===e.writable)}function _optionalCallableProperty(e,r){var t=e[r];if(void 0!==t&&"function"!=typeof t)throw new T\
ypeError("Expected '"+r+"' to be a function");return t}`, {
globals: ["Object", "TypeError", "Symbol", "ReferenceError"],
locals: {
_decorate: ["body.0.id"],
_getDecoratorsApi: ["body.1.id", "body.0.body.body.0.declarations.0.init.callee", "body.1.body.body.0.expression.left"],
_createElementDescriptor: ["body.2.id", "body.0.body.body.2.declarations.1.init.arguments.0.arguments.0.arguments.0"],
_coalesceGetterSetter: ["body.3.id", "body.4.body.body.0.body.body.1.consequent.alternate.body.1.expression.callee"],
_coalesceClassElements: ["body.4.id", "body.0.body.body.2.declarations.1.init.arguments.0.callee"],
_hasDecorators: ["body.5.id", "body.1.body.body.1.declarations.0.init.properties.4.value.body.body.1.test.expressions.1.arguments.0.\
body.body.0.test.argument.callee", "body.4.body.body.0.body.body.1.consequent.consequent.body.0.test.left.callee", "body.4.body.body.0.body.\
body.1.consequent.consequent.body.0.test.right.callee", "body.4.body.body.0.body.body.1.consequent.alternate.body.0.test.callee", "body.4.bo\
dy.body.0.body.body.1.consequent.alternate.body.0.consequent.body.0.test.callee"],
_isDataDescriptor: ["body.6.id", "body.4.body.body.0.body.body.1.consequent.test.left.callee", "body.4.body.body.0.body.body.1.conse\
quent.test.right.callee"],
_optionalCallableProperty: ["body.7.id", "body.1.body.body.1.declarations.0.init.properties.11.value.body.body.0.argument.properties\
.1.value.callee", "body.1.body.body.1.declarations.0.init.properties.13.value.body.body.3.declarations.0.init.callee"]
},
exportBindingAssignments: [],
exportName: "_decorate",
dependencies: {
toArray: ["body.1.body.body.1.declarations.0.init.properties.9.value.body.body.0.consequent.argument.callee.object.callee"],
toPropertyKey: ["body.1.body.body.1.declarations.0.init.properties.10.value.body.body.2.declarations.0.init.callee", "body.2.body.bo\
dy.0.declarations.1.init.callee"]
}
}),
defaults: G("7.0.0-beta.0", "function _defaults(e,r){for(var t=Object.getOwnPropertyNames(r),o=0;o<t.length;o++){var n=t[o],a=Object.get\
OwnPropertyDescriptor(r,n);a&&a.configurable&&void 0===e[n]&&Object.defineProperty(e,n,a)}return e}", {
globals: ["Object"],
locals: {
_defaults: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_defaults",
dependencies: {}
}),
defineAccessor: G("7.20.7", "function _defineAccessor(e,r,n,t){var c={configurable:!0,enumerable:!0};return c[e]=t,Object.defineProperty\
(r,n,c)}", {
globals: ["Object"],
locals: {
_defineAccessor: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_defineAccessor",
dependencies: {}
}),
defineProperty: G("7.0.0-beta.0", "function _defineProperty(e,r,t){return(r=toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enu\
merable:!0,configurable:!0,writable:!0}):e[r]=t,e}", {
globals: ["Object"],
locals: {
_defineProperty: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_defineProperty",
dependencies: {
toPropertyKey: ["body.0.body.body.0.argument.expressions.0.test.left.right.callee"]
}
}),
extends: G("7.0.0-beta.0", "function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.l\
ength;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}", {
globals: ["Object"],
locals: {
_extends: ["body.0.id", "body.0.body.body.0.argument.expressions.1.callee.object", "body.0.body.body.0.argument.expressions.0.left"]
},
exportBindingAssignments: ["body.0.body.body.0.argument.expressions.0"],
exportName: "_extends",
dependencies: {}
}),
get: G("7.0.0-beta.0", 'function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=su\
perPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value}},_get.apply(null,\
arguments)}', {
globals: ["Reflect", "Object"],
locals: {
_get: ["body.0.id", "body.0.body.body.0.argument.expressions.1.callee.object", "body.0.body.body.0.argument.expressions.0.left"]
},
exportBindingAssignments: ["body.0.body.body.0.argument.expressions.0"],
exportName: "_get",
dependencies: {
superPropBase: ["body.0.body.body.0.argument.expressions.0.right.alternate.body.body.0.declarations.0.init.callee"]
}
}),
getPrototypeOf: G("7.0.0-beta.0", "function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind()\
:function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf(t)}", {
globals: ["Object"],
locals: {
_getPrototypeOf: ["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: "_getPrototypeOf",
dependencies: {}
}),
identity: G("7.17.0", "function _identity(t){return t}", {
globals: [],
locals: {
_identity: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_identity",
dependencies: {}
}),
importDeferProxy: G("7.23.0", "function _importDeferProxy(e){var t=null,constValue=function(e){return function(){return e}},proxy=functi\
on(r){return function(n,o,f){return null===t&&(t=e()),r(t,o,f)}};return new Proxy({},{defineProperty:constValue(!1),deleteProperty:constValu\
e(!1),get:proxy(Reflect.get),getOwnPropertyDescriptor:proxy(Reflect.getOwnPropertyDescriptor),getPrototypeOf:constValue(null),isExtensible:c\
onstValue(!1),has:proxy(Reflect.has),ownKeys:proxy(Reflect.ownKeys),preventExtensions:constValue(!0),set:constValue(!1),setPrototypeOf:const\
Value(!1)})}", {
globals: ["Proxy", "Reflect"],
locals: {
_importDeferProxy: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_importDeferProxy",
dependencies: {}
}),
inherits: G("7.0.0-beta.0", 'function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either\
be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty\
(t,"prototype",{writable:!1}),e&&setPrototypeOf(t,e)}', {
globals: ["TypeError", "Object"],
locals: {
_inherits: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_inherits",
dependencies: {
setPrototypeOf: ["body.0.body.body.1.expression.expressions.2.right.callee"]
}
}),
inheritsLoose: G("7.0.0-beta.0", "function _inheritsLoose(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,setProto\
typeOf(t,o)}", {
globals: ["Object"],
locals: {
_inheritsLoose: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_inheritsLoose",
dependencies: {
setPrototypeOf: ["body.0.body.body.0.expression.expressions.2.callee"]
}
}),
initializerDefineProperty: G("7.0.0-beta.0", "function _initializerDefineProperty(e,i,r,l){r&&Object.defineProperty(e,i,{enumerable:r.en\
umerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(l):void 0})}", {
globals: ["Object"],
locals: {
_initializerDefineProperty: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_initializerDefineProperty",
dependencies: {}
}),
initializerWarningHelper: G("7.0.0-beta.0", 'function _initializerWarningHelper(r,e){throw Error("Decorating class property failed. Plea\
se ensure that transform-class-properties is enabled and runs after the decorators transform.")}', {
globals: ["Error"],
locals: {
_initializerWarningHelper: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_initializerWarningHelper",
dependencies: {}
}),
instanceof: G("7.0.0-beta.0", 'function _instanceof(n,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?!!e[Symbol.ha\
sInstance](n):n instanceof e}', {
globals: ["Symbol"],
locals: {
_instanceof: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_instanceof",
dependencies: {}
}),
interopRequireDefault: G("7.0.0-beta.0", "function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}", {
globals: [],
locals: {
_interopRequireDefault: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_interopRequireDefault",
dependencies: {}
}),
interopRequireWildcard: G("7.14.0", 'function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=\
new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)retur\
n e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e)\
;var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u\
)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,t&&t.set(e,\
n),n}', {
globals: ["WeakMap", "Object"],
locals: {
_getRequireWildcardCache: ["body.0.id", "body.1.body.body.2.declarations.0.init.callee", "body.0.body.body.2.argument.callee.left"],
_interopRequireWildcard: ["body.1.id"]
},
exportBindingAssignments: [],
exportName: "_interopRequireWildcard",
dependencies: {}
}),
isNativeFunction: G("7.0.0-beta.0", 'function _isNativeFunction(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}cat\
ch(n){return"function"==typeof t}}', {
globals: ["Function"],
locals: {
_isNativeFunction: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_isNativeFunction",
dependencies: {}
}),
isNativeReflectConstruct: G("7.9.0", "function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(B\
oolean,[],(function(){})))}catch(t){}return(_isNativeReflectConstruct=function(){return!!t})()}", {
globals: ["Boolean", "Reflect"],
locals: {
_isNativeReflectConstruct: ["body.0.id", "body.0.body.body.1.argument.callee.left"]
},
exportBindingAssignments: ["body.0.body.body.1.argument.callee"],
exportName: "_isNativeReflectConstruct",
dependencies: {}
}),
iterableToArray: G("7.0.0-beta.0", 'function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@ite\
rator"])return Array.from(r)}', {
globals: ["Symbol", "Array"],
locals: {
_iterableToArray: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_iterableToArray",
dependencies: {}
}),
iterableToArrayLimit: G("7.0.0-beta.0", 'function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.ite\
rator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1}else for(;!(f\
=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u\
))return}finally{if(o)throw n}}return a}}', {
globals: ["Symbol", "Object"],
locals: {
_iterableToArrayLimit: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_iterableToArrayLimit",
dependencies: {}
}),
jsx: G("7.0.0-beta.0", 'var REACT_ELEMENT_TYPE;function _createRawReactElement(e,r,E,l){REACT_ELEMENT_TYPE||(REACT_ELEMENT_TYPE="functio\
n"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103);var o=e&&e.defaultProps,n=arguments.length-3;if(r||0===n||(r={children:vo\
id 0}),1===n)r.children=l;else if(n>1){for(var t=Array(n),f=0;f<n;f++)t[f]=arguments[f+3];r.children=t}if(r&&o)for(var i in o)void 0===r[i]&\
&(r[i]=o[i]);else r||(r=o||{});return{$$typeof:REACT_ELEMENT_TYPE,type:e,key:void 0===E?null:""+E,ref:null,props:r,_owner:null}}', {
globals: ["Symbol", "Array"],
locals: {
REACT_ELEMENT_TYPE: ["body.0.declarations.0.id", "body.1.body.body.0.expression.left", "body.1.body.body.4.argument.properties.0.val\
ue", "body.1.body.body.0.expression.right.left"],
_createRawReactElement: ["body.1.id"]
},
exportBindingAssignments: [],
exportName: "_createRawReactElement",
dependencies: {}
}),
maybeArrayLike: G("7.9.0", 'function _maybeArrayLike(r,a,e){if(a&&!Array.isArray(a)&&"number"==typeof a.length){var y=a.length;return ar\
rayLikeToArray(a,void 0!==e&&e<y?e:y)}return r(a,e)}', {
globals: ["Array"],
locals: {
_maybeArrayLike: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_maybeArrayLike",
dependencies: {
arrayLikeToArray: ["body.0.body.body.0.consequent.body.1.argument.callee"]
}
}),
newArrowCheck: G("7.0.0-beta.0", 'function _newArrowCheck(n,r){if(n!==r)throw new TypeError("Cannot instantiate an arrow function")}', {
globals: ["TypeError"],
locals: {
_newArrowCheck: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_newArrowCheck",
dependencies: {}
}),
nonIterableRest: G("7.0.0-beta.0", 'function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instanc\
e.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}', {
globals: ["TypeError"],
locals: {
_nonIterableRest: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_nonIterableRest",
dependencies: {}
}),
nonIterableSpread: G("7.0.0-beta.0", 'function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance\
.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}', {
globals: ["TypeError"],
locals: {
_nonIterableSpread: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_nonIterableSpread",
dependencies: {}
}),
nullishReceiverError: G("7.22.6", 'function _nullishReceiverError(r){throw new TypeError("Cannot set property of null or undefined.")}',
{
globals: ["TypeError"],
locals: {
_nullishReceiverError: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_nullishReceiverError",
dependencies: {}
}),
objectDestructuringEmpty: G("7.0.0-beta.0", 'function _objectDestructuringEmpty(t){if(null==t)throw new TypeError("Cannot destructure "+\
t)}', {
globals: ["TypeError"],
locals: {
_objectDestructuringEmpty: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_objectDestructuringEmpty",
dependencies: {}
}),
objectSpread2: G("7.5.0", "function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbol\
s(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function _objectSprea\
d2(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach((function(r){defineProp\
erty(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach\
((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}", {
globals: ["Object"],
locals: {
ownKeys: ["body.0.id", "body.1.body.body.0.body.body.1.expression.consequent.callee.object.callee", "body.1.body.body.0.body.body.1.\
expression.alternate.alternate.callee.object.callee"],
_objectSpread2: ["body.1.id"]
},
exportBindingAssignments: [],
exportName: "_objectSpread2",
dependencies: {
defineProperty: ["body.1.body.body.0.body.body.1.expression.consequent.arguments.0.body.body.0.expression.callee"]
}
}),
objectWithoutProperties: G("7.0.0-beta.0", "function _objectWithoutProperties(e,t){if(null==e)return{};var o,r,i=objectWithoutProperties\
Loose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)o=n[r],-1===t.indexOf(o)&&{}.proper\
tyIsEnumerable.call(e,o)&&(i[o]=e[o])}return i}", {
globals: ["Object"],
locals: {
_objectWithoutProperties: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_objectWithoutProperties",
dependencies: {
objectWithoutPropertiesLoose: ["body.0.body.body.1.declarations.2.init.callee"]
}
}),
objectWithoutPropertiesLoose: G("7.0.0-beta.0", "function _objectWithoutPropertiesLoose(r,e){if(null==r)return{};var t={};for(var n in r\
)if({}.hasOwnProperty.call(r,n)){if(-1!==e.indexOf(n))continue;t[n]=r[n]}return t}", {
globals: [],
locals: {
_objectWithoutPropertiesLoose: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_objectWithoutPropertiesLoose",
dependencies: {}
}),
possibleConstructorReturn: G("7.0.0-beta.0", 'function _possibleConstructorReturn(t,e){if(e&&("object"==typeof e||"function"==typeof e))\
return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return assertThisInitialized(t)}', {
globals: ["TypeError"],
locals: {
_possibleConstructorReturn: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_possibleConstructorReturn",
dependencies: {
assertThisInitialized: ["body.0.body.body.2.argument.callee"]
}
}),
readOnlyError: G("7.0.0-beta.0", `function _readOnlyError(r){throw new TypeError('"'+r+'" is read-only')}`, {
globals: ["TypeError"],
locals: {
_readOnlyError: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_readOnlyError",
dependencies: {}
}),
regeneratorRuntime: G("7.18.0", `function _regeneratorRuntime(){"use strict";
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LI\
CENSE */_regeneratorRuntime=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t\
[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStr\
ingTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{define({},"")}\
catch(t){define=function(t,e,r){return t[e]=r}}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(\
i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a}function tryCatch(t,e,r){try{return{type:"normal",\
arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={}\
;function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,(function(){return this}));v\
ar d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype\
=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach((function(e){define(t,e,(function(t){return this._invo\
ke(e,t)}))}))}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;retur\
n h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){invoke("next",t,i,a)}),(function(t){invoke("throw",t,i,a\
)})):e.resolve(h).then((function(t){u.value=t,i(u)}),(function(t){return invoke("throw",t,i,a)}))}a(c.arg)}var r;o(this,"_invoke",{value:fun\
ction(t,n){function callInvokeWithMethodAndArg(){return new e((function(e,r){invoke(t,n,e,r)}))}return r=r?r.then(callInvokeWithMethodAndArg\
,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Er\
ror("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c\
){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(\
o===h)throw o=s,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p\
.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done}}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg)}}}function ma\
ybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.a\
rg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n\
+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;ret\
urn a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw"\
,r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc\
=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function resetTryEntry(t){var e=t.completion||{};e.type="normal",\
delete e.arg,t.completion=e}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function value\
s(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){fo\
r(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next};return i.next=i}}throw new T\
ypeError(typeof e+" is not iterable")}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFuncti\
onPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displa\
yName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;r\
eturn!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.set\
PrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create\
(g),t},e.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,(function(){re\
turn this})),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);retu\
rn e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},defineIteratorMethods(g),define(g,u,"Generator")\
,define(g,a,(function(){return this})),define(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[]\
;for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next}r\
eturn next.done=!0,next}},e.values=values,Context.prototype={constructor:Context,reset:function(e){if(this.prev=0,this.next=0,this.sent=this\
._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.c\
harAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.\
type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",\
a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=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<i.cat\
chLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return handle(i.\
catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abru\
pt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.\
prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.\
type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;retu\
rn"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"n\
ormal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=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 _superPropGet(t,o,e,r){var p=get(getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==type\
of p?function(t){return p.apply(e,t)}:p}', {
globals: [],
locals: {
_superPropGet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_superPropGet",
dependencies: {
get: ["body.0.body.body.0.declarations.0.init.callee"],
getPrototypeOf: ["body.0.body.body.0.declarations.0.init.arguments.0.callee"]
}
}),
superPropSet: G("7.25.0", "function _superPropSet(t,e,o,r,p,f){return set(getPrototypeOf(f?t.prototype:t),e,o,r,p)}", {
globals: [],
locals: {
_superPropSet: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_superPropSet",
dependencies: {
set: ["body.0.body.body.0.argument.callee"],
getPrototypeOf: ["body.0.body.body.0.argument.arguments.0.callee"]
}
}),
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: {}
}),
tsRewriteRelativeImportExtensions: G("7.27.0", 'function tsRewriteRelativeImportExtensions(t,e){return"string"==typeof t&&/^\\.\\.?\\//.tes\
t(t)?t.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+)?)\\.([cm]?)ts$/i,(function(t,s,r,n,o){return s?e?".jsx":".js":!r||n&&o?r+n+"."+o.toLowerCase\
()+"js":t})):t}', {
globals: [],
locals: {
tsRewriteRelativeImportExtensions: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "tsRewriteRelativeImportExtensions",
dependencies: {}
}),
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<o.length;)i++;r[t]=e[o[i]]}return r}),Object.create(null))}return inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=functi\
on(r){var t=e.exec.call(this,r);if(t){t.groups=buildGroups(t,this);var p=t.indices;p&&(p.groups=buildGroups(p,this))}return t},BabelRegExp.p\
rototype[Symbol.replace]=function(t,p){if("string"==typeof p){var o=r.get(this);return e[Symbol.replace].call(this,t,p.replace(/\\$<([^>]+)(>\
|$)/g,(function(e,r,t){if(""===t)return e;var p=o[r];return Array.isArray(p)?"$"+p.join("$"):"number"==typeof p?"$"+p:""})))}if("function"==\
typeof p){var i=this;return e[Symbol.replace].call(this,t,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call\
(e)).push(buildGroups(e,i)),p.apply(this,e)}))}return e[Symbol.replace].call(this,t,p)},_wrapRegExp.apply(this,arguments)}', {
globals: ["RegExp", "WeakMap", "Object", "Symbol", "Array"],
locals: {
_wrapRegExp: ["body.0.id", "body.0.body.body.4.argument.expressions.3.callee.object", "body.0.body.body.0.expression.left"]
},
exportBindingAssignments: ["body.0.body.body.0.expression"],
exportName: "_wrapRegExp",
dependencies: {
setPrototypeOf: ["body.0.body.body.2.body.body.1.argument.expressions.1.callee"],
inherits: ["body.0.body.body.4.argument.expressions.0.callee"]
}
}),
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(lH, {
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<r.len\
gth;o++){var i=r[o],n=t[i],l=a?a[i]:null,s=n.public,c=l?l.public:null;s&&c&&Object.setPrototypeOf(s,c);var d=n.private;if(d){var u=Array.fro\
m(d.values()),f=l?l.private:null;f&&(u=u.concat(f)),n.private=u}l&&Object.setPrototypeOf(n,l)}a&&Object.setPrototypeOf(t,a),e[Symbol.metadat\
a||Symbol.for("Symbol.metadata")]=t}}function old_createAddInitializerMethod(e,t){return function(a){old_assertNotFinished(t,"addInitializer\
"),old_assertCallable(a,"An initializer"),e.push(a)}}function old_memberDec(e,t,a,r,o,i,n,l,s){var c;switch(i){case 1:c="accessor";break;cas\
e 2:c="method";break;case 3:c="getter";break;case 4:c="setter";break;default:c="field"}var d,u,f={kind:c,name:l?"#"+t:toPropertyKey(t),isSta\
tic:n,isPrivate:l},p={v:!1};if(0!==i&&(f.addInitializer=old_createAddInitializerMethod(o,p)),l){d=2,u=Symbol(t);var v={};0===i?(v.get=a.get,\
v.set=a.set):2===i?v.get=function(){return a.value}:(1!==i&&3!==i||(v.get=function(){return a.get.call(this)}),1!==i&&4!==i||(v.set=function\
(e){a.set.call(this,e)})),f.access=v}else d=1,u=t;try{return e(s,Object.assign(f,old_createMetadataMethodsForProperty(r,d,u,p)))}finally{p.v\
=!0}}function old_assertNotFinished(e,t){if(e.v)throw Error("attempted to call "+t+" after decoration was finished")}function old_assertMeta\
dataKey(e){if("symbol"!=typeof e)throw new TypeError("Metadata keys must be symbols, received: "+e)}function old_assertCallable(e,t){if("fun\
ction"!=typeof e)throw new TypeError(t+" must be a function")}function old_assertValidReturnValue(e,t){var a=typeof t;if(1===e){if("object"!\
==a||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");void 0!==t.get&&o\
ld_assertCallable(t.get,"accessor.get"),void 0!==t.set&&old_assertCallable(t.set,"accessor.set"),void 0!==t.init&&old_assertCallable(t.init,\
"accessor.init"),void 0!==t.initializer&&old_assertCallable(t.initializer,"accessor.initializer")}else if("function"!==a)throw new TypeError\
((0===e?"field":10===e?"class":"method")+" decorators must return a function or void 0")}function old_getInit(e){var t;return null==(t=e.ini\
t)&&(t=e.initializer)&&void 0!==console&&console.warn(".initializer has been renamed to .init as of March 2022"),t}function old_applyMemberD\
ec(e,t,a,r,o,i,n,l,s){var c,d,u,f,p,v,y,h=a[0];if(n?(0===o||1===o?(c={get:a[3],set:a[4]},u="get"):3===o?(c={get:a[3]},u="get"):4===o?(c={set\
:a[3]},u="set"):c={value:a[3]},0!==o&&(1===o&&setFunctionName(a[4],"#"+r,"set"),setFunctionName(a[3],"#"+r,u))):0!==o&&(c=Object.getOwnPrope\
rtyDescriptor(t,r)),1===o?f={get:c.get,set:c.set}:2===o?f=c.value:3===o?f=c.get:4===o&&(f=c.set),"function"==typeof h)void 0!==(p=old_member\
Dec(h,r,c,l,s,o,i,n,f))&&(old_assertValidReturnValue(o,p),0===o?d=p:1===o?(d=old_getInit(p),v=p.get||f.get,y=p.set||f.set,f={get:v,set:y}):f\
=p);else for(var m=h.length-1;m>=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;r<g.length\
;r++)a=g[r].call(e,a);return a}}else{var _=d;d=function(e,t){return _.call(e,t)}}e.push(d)}0!==o&&(1===o?(c.get=f.get,c.set=f.set):2===o?c.v\
alue=f:3===o?c.get=f:4===o&&(c.set=f),n?1===o?(e.push((function(e,t){return f.get.call(e,t)})),e.push((function(e,t){return f.set.call(e,t)}\
))):2===o?e.push(f):e.push((function(e,t){return f.call(e,t)})):Object.defineProperty(t,r,c))}function old_applyMemberDecs(e,t,a,r,o){for(va\
r i,n,l=new Map,s=new Map,c=0;c<o.length;c++){var d=o[c];if(Array.isArray(d)){var u,f,p,v=d[1],y=d[2],h=d.length>3,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;a<t.length;a++)t[a]\
.call(e);return e}))}function old_applyClassDecs(e,t,a,r){if(r.length>0){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<o.length;e++)o[e].call(i)}))\
}}function applyDecs(e,t,a){var r=[],o={},i={};return old_applyMemberDecs(r,e,i,o,t),old_convertMetadataMapToFinal(e.prototype,i),old_applyC\
lassDecs(r,e,o,a),old_convertMetadataMapToFinal(e,o),r}', {
globals: ["Object", "Map", "Symbol", "Array", "Error", "TypeError", "console"],
locals: {
old_createMetadataMethodsForProperty: ["body.0.id", "body.3.body.body.4.block.body.0.argument.arguments.1.arguments.1.callee", "body\
.12.body.body.0.consequent.body.0.body.body.1.block.body.0.declarations.0.init.arguments.1.callee"],
old_convertMetadataMapToFinal: ["body.1.id", "body.13.body.body.1.argument.expressions.1.callee", "body.13.body.body.1.argument.expr\
essions.3.callee"],
old_createAddInitializerMethod: ["body.2.id", "body.3.body.body.3.test.expressions.0.right.right.callee", "body.12.body.body.0.conse\
quent.body.0.body.body.1.block.body.0.declarations.0.init.arguments.0.properties.2.value.callee"],
old_memberDec: ["body.3.id", "body.9.body.body.1.consequent.expression.left.right.right.callee", "body.9.body.body.1.alternate.body.\
body.1.expression.left.right.right.callee"],
old_assertNotFinished: ["body.4.id", "body.0.body.body.0.argument.properties.0.value.body.body.0.expression.expressions.0.callee", "\
body.0.body.body.0.argument.properties.1.value.body.body.0.expression.expressions.0.callee", "body.2.body.body.0.argument.body.body.0.expres\
sion.expressions.0.callee"],
old_assertMetadataKey: ["body.5.id", "body.0.body.body.0.argument.properties.0.value.body.body.0.expression.expressions.1.callee", "\
body.0.body.body.0.argument.properties.1.value.body.body.0.expression.expressions.1.callee"],
old_assertCallable: ["body.6.id", "body.2.body.body.0.argument.body.body.0.expression.expressions.1.callee", "body.7.body.body.1.con\
sequent.body.1.expression.expressions.0.right.callee", "body.7.body.body.1.consequent.body.1.expression.expressions.1.right.callee", "body.7\
.body.body.1.consequent.body.1.expression.expressions.2.right.callee", "body.7.body.body.1.consequent.body.1.expression.expressions.3.right.\
callee"],
old_assertValidReturnValue: ["body.7.id", "body.9.body.body.1.consequent.expression.right.expressions.0.callee", "body.9.body.body.1\
.alternate.body.body.1.expression.right.expressions.0.callee", "body.12.body.body.0.consequent.body.0.body.body.2.expression.right.expressio\
ns.0.callee"],
old_getInit: ["body.8.id", "body.9.body.body.1.consequent.expression.right.expressions.1.alternate.consequent.expressions.0.right.ca\
llee", "body.9.body.body.1.alternate.body.body.1.expression.right.expressions.1.alternate.consequent.expressions.0.right.callee"],
old_applyMemberDec: ["body.9.id", "body.10.body.body.0.body.body.1.consequent.body.2.expression.callee"],
old_applyMemberDecs: ["body.10.id", "body.13.body.body.1.argument.expressions.0.callee"],
old_pushInitializers: ["body.11.id", "body.10.body.body.1.expression.expressions.0.callee", "body.10.body.body.1.expression.expressi\
ons.1.callee"],
old_applyClassDecs: ["body.12.id", "body.13.body.body.1.argument.expressions.2.callee"],
applyDecs: ["body.13.id"]
},
exportBindingAssignments: [],
exportName: "applyDecs",
dependencies: {
setFunctionName: ["body.9.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee", "body.9.body.bo\
dy.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],
toPropertyKey: ["body.3.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]
}
}),
applyDecs2203: G("7.19.0", 'function applyDecs2203Factory(){function createAddInitializerMethod(e,t){return function(r){!function(e,t){i\
f(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}functi\
on memberDec(e,t,r,a,n,i,s,o){var c;switch(n){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";br\
eak;default:c="field"}var l,u,f={kind:c,name:s?"#"+t:t,static:i,private:s},p={v:!1};0!==n&&(f.addInitializer=createAddInitializerMethod(a,p)\
),0===n?s?(l=r.get,u=r.set):(l=function(){return this[t]},u=function(e){this[t]=e}):2===n?l=function(){return r.value}:(1!==n&&3!==n||(l=fun\
ction(){return r.get.call(this)}),1!==n&&4!==n||(u=function(e){r.set.call(this,e)})),f.access=l&&u?{get:l,set:u}:l?{get:l}:{set:u};try{retur\
n e(o,f)}finally{p.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertVa\
lidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with g\
et, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.\
set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"meth\
od")+" decorators must return a function or void 0")}function applyMemberDec(e,t,r,a,n,i,s,o){var c,l,u,f,p,d,h=r[0];if(s?c=0===n||1===n?{ge\
t:r[3],set:r[4]}:3===n?{get:r[3]}:4===n?{set:r[3]}:{value:r[3]}:0!==n&&(c=Object.getOwnPropertyDescriptor(t,a)),1===n?u={get:c.get,set:c.set\
}:2===n?u=c.value:3===n?u=c.get:4===n&&(u=c.set),"function"==typeof h)void 0!==(f=memberDec(h,a,c,o,n,i,s,u))&&(assertValidReturnValue(n,f),\
0===n?l=f:1===n?(l=f.init,p=f.get||u.get,d=f.set||u.set,u={get:p,set:d}):u=f);else for(var v=h.length-1;v>=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;a<y.length;a++)r=y[a].call(e,r);return r}}else{var m=l;l=function(e,t){return m.call(e,t)}}e.p\
ush(l)}0!==n&&(1===n?(c.get=u.get,c.set=u.set):2===n?c.value=u:3===n?c.get=u:4===n&&(c.set=u),s?1===n?(e.push((function(e,t){return u.get.ca\
ll(e,t)})),e.push((function(e,t){return u.set.call(e,t)}))):2===n?e.push(u):e.push((function(e,t){return u.call(e,t)})):Object.definePropert\
y(t,a,c))}function pushInitializers(e,t){t&&e.push((function(e){for(var r=0;r<t.length;r++)t[r].call(e);return e}))}return function(e,t,r){v\
ar a=[];return function(e,t,r){for(var a,n,i=new Map,s=new Map,o=0;o<r.length;o++){var c=r[o];if(Array.isArray(c)){var l,u,f=c[1],p=c[2],d=c\
.length>3,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<a.length;e++)a[e].call(n)}))}}(a,e,r),a}}var applyDecs2203Impl;function\
applyDecs2203(e,t,r){return(applyDecs2203Impl=applyDecs2203Impl||applyDecs2203Factory())(e,t,r)}', {
globals: ["Error", "TypeError", "Object", "Map", "Array"],
locals: {
applyDecs2203Factory: ["body.0.id", "body.2.body.body.0.argument.callee.right.right.callee"],
applyDecs2203Impl: ["body.1.declarations.0.id", "body.2.body.body.0.argument.callee.right.left", "body.2.body.body.0.argument.callee\
.left"],
applyDecs2203: ["body.2.id"]
},
exportBindingAssignments: [],
exportName: "applyDecs2203",
dependencies: {}
}),
applyDecs2203R: G("7.20.0", 'function applyDecs2203RFactory(){function createAddInitializerMethod(e,t){return function(r){!function(e,t)\
{if(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}func\
tion memberDec(e,t,r,n,a,i,o,s){var c;switch(a){case 1:c="accessor";break;case 2:c="method";break;case 3:c="getter";break;case 4:c="setter";\
break;default:c="field"}var l,u,f={kind:c,name:o?"#"+t:toPropertyKey(t),static:i,private:o},p={v:!1};0!==a&&(f.addInitializer=createAddIniti\
alizerMethod(n,p)),0===a?o?(l=r.get,u=r.set):(l=function(){return this[t]},u=function(e){this[t]=e}):2===a?l=function(){return r.value}:(1!=\
=a&&3!==a||(l=function(){return r.get.call(this)}),1!==a&&4!==a||(u=function(e){r.set.call(this,e)})),f.access=l&&u?{get:l,set:u}:l?{get:l}:\
{set:u};try{return e(s,f)}finally{p.v=!0}}function assertCallable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}\
function assertValidReturnValue(e,t){var r=typeof t;if(1===e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return\
an object with get, set, or init properties or void 0");void 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable\
(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.init,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10=\
==e?"class":"method")+" decorators must return a function or void 0")}function applyMemberDec(e,t,r,n,a,i,o,s){var c,l,u,f,p,d,h,v=r[0];if(o\
?(0===a||1===a?(c={get:r[3],set:r[4]},u="get"):3===a?(c={get:r[3]},u="get"):4===a?(c={set:r[3]},u="set"):c={value:r[3]},0!==a&&(1===a&&setFu\
nctionName(r[4],"#"+n,"set"),setFunctionName(r[3],"#"+n,u))):0!==a&&(c=Object.getOwnPropertyDescriptor(t,n)),1===a?f={get:c.get,set:c.set}:2\
===a?f=c.value:3===a?f=c.get:4===a&&(f=c.set),"function"==typeof v)void 0!==(p=memberDec(v,n,c,s,a,i,o,f))&&(assertValidReturnValue(a,p),0==\
=a?l=p:1===a?(l=p.init,d=p.get||f.get,h=p.set||f.set,f={get:d,set:h}):f=p);else for(var g=v.length-1;g>=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;n<m.length;n++)r=m[n].call(e,r);return r}}else{var b=l;l=function(e,t){return b.call(e,t)}}e.push\
(l)}0!==a&&(1===a?(c.get=f.get,c.set=f.set):2===a?c.value=f:3===a?c.get=f:4===a&&(c.set=f),o?1===a?(e.push((function(e,t){return f.get.call(\
e,t)})),e.push((function(e,t){return f.set.call(e,t)}))):2===a?e.push(f):e.push((function(e,t){return f.call(e,t)})):Object.defineProperty(t\
,n,c))}function applyMemberDecs(e,t){for(var r,n,a=[],i=new Map,o=new Map,s=0;s<t.length;s++){var c=t[s];if(Array.isArray(c)){var l,u,f=c[1]\
,p=c[2],d=c.length>3,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;r<t.length;r++)t[r].call(e);return e}))}return function(e,t,r){return{e:applyMemberDecs(e,t),get c(){return function(e,t){if(t.len\
gth>0){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<r.length;e++)r[e].call(n)}]}\
}(e,r)}}}}function applyDecs2203R(e,t,r){return(applyDecs2203R=applyDecs2203RFactory())(e,t,r)}', {
globals: ["Error", "TypeError", "Object", "Map", "Array"],
locals: {
applyDecs2203RFactory: ["body.0.id", "body.1.body.body.0.argument.callee.right.callee"],
applyDecs2203R: ["body.1.id", "body.1.body.body.0.argument.callee.left"]
},
exportBindingAssignments: ["body.1.body.body.0.argument.callee"],
exportName: "applyDecs2203R",
dependencies: {
setFunctionName: ["body.0.body.body.4.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee", "bo\
dy.0.body.body.4.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],
toPropertyKey: ["body.0.body.body.1.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]
}
}),
applyDecs2301: G("7.21.0", 'function applyDecs2301Factory(){function createAddInitializerMethod(e,t){return function(r){!function(e,t){i\
f(e.v)throw Error("attempted to call addInitializer after decoration was finished")}(t),assertCallable(r,"An initializer"),e.push(r)}}functi\
on assertInstanceIfPrivate(e,t){if(!e(t))throw new TypeError("Attempted to access private element on non-instance")}function memberDec(e,t,r\
,n,a,i,s,o,c){var u;switch(a){case 1:u="accessor";break;case 2:u="method";break;case 3:u="getter";break;case 4:u="setter";break;default:u="f\
ield"}var l,f,p={kind:u,name:s?"#"+t:toPropertyKey(t),static:i,private:s},d={v:!1};if(0!==a&&(p.addInitializer=createAddInitializerMethod(n,\
d)),s||0!==a&&2!==a)if(2===a)l=function(e){return assertInstanceIfPrivate(c,e),r.value};else{var h=0===a||1===a;(h||3===a)&&(l=s?function(e)\
{return assertInstanceIfPrivate(c,e),r.get.call(e)}:function(e){return r.get.call(e)}),(h||4===a)&&(f=s?function(e,t){assertInstanceIfPrivat\
e(c,e),r.set.call(e,t)}:function(e,t){r.set.call(e,t)})}else l=function(e){return e[t]},0===a&&(f=function(e,r){e[t]=r});var v=s?c.bind():fu\
nction(e){return t in e};p.access=l&&f?{get:l,set:f,has:v}:l?{get:l,has:v}:{set:f,has:v};try{return e(o,p)}finally{d.v=!0}}function assertCa\
llable(e,t){if("function"!=typeof e)throw new TypeError(t+" must be a function")}function assertValidReturnValue(e,t){var r=typeof t;if(1===\
e){if("object"!==r||null===t)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");vo\
id 0!==t.get&&assertCallable(t.get,"accessor.get"),void 0!==t.set&&assertCallable(t.set,"accessor.set"),void 0!==t.init&&assertCallable(t.in\
it,"accessor.init")}else if("function"!==r)throw new TypeError((0===e?"field":10===e?"class":"method")+" decorators must return a function o\
r void 0")}function curryThis2(e){return function(t){e(this,t)}}function applyMemberDec(e,t,r,n,a,i,s,o,c){var u,l,f,p,d,h,v,y,g=r[0];if(s?(\
0===a||1===a?(u={get:(d=r[3],function(){return d(this)}),set:curryThis2(r[4])},f="get"):3===a?(u={get:r[3]},f="get"):4===a?(u={set:r[3]},f="\
set"):u={value:r[3]},0!==a&&(1===a&&setFunctionName(u.set,"#"+n,"set"),setFunctionName(u[f||"value"],"#"+n,f))):0!==a&&(u=Object.getOwnPrope\
rtyDescriptor(t,n)),1===a?p={get:u.get,set:u.set}:2===a?p=u.value:3===a?p=u.get:4===a&&(p=u.set),"function"==typeof g)void 0!==(h=memberDec(\
g,n,u,o,a,i,s,p,c))&&(assertValidReturnValue(a,h),0===a?l=h:1===a?(l=h.init,v=h.get||p.get,y=h.set||p.set,p={get:v,set:y}):p=h);else for(var\
m=g.length-1;m>=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;n<I.length;n++)r=I[n].call(e,r);return r}}\
else{var w=l;l=function(e,t){return w.call(e,t)}}e.push(l)}0!==a&&(1===a?(u.get=p.get,u.set=p.set):2===a?u.value=p:3===a?u.get=p:4===a&&(u.s\
et=p),s?1===a?(e.push((function(e,t){return p.get.call(e,t)})),e.push((function(e,t){return p.set.call(e,t)}))):2===a?e.push(p):e.push((func\
tion(e,t){return p.call(e,t)})):Object.defineProperty(t,n,u))}function applyMemberDecs(e,t,r){for(var n,a,i,s=[],o=new Map,c=new Map,u=0;u<t\
.length;u++){var l=t[u];if(Array.isArray(l)){var f,p,d=l[1],h=l[2],v=l.length>3,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;r<t.length;r\
++)t[r].call(e);return e}))}return function(e,t,r,n){return{e:applyMemberDecs(e,t,n),get c(){return function(e,t){if(t.length>0){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<r.length;e++)r[e].call(n)}]}}(e,r)}}}}function\
applyDecs2301(e,t,r,n){return(applyDecs2301=applyDecs2301Factory())(e,t,r,n)}', {
globals: ["Error", "TypeError", "Object", "Map", "Array"],
locals: {
applyDecs2301Factory: ["body.0.id", "body.1.body.body.0.argument.callee.right.callee"],
applyDecs2301: ["body.1.id", "body.1.body.body.0.argument.callee.left"]
},
exportBindingAssignments: ["body.1.body.body.0.argument.callee"],
exportName: "applyDecs2301",
dependencies: {
checkInRHS: ["body.0.body.body.7.body.body.0.body.body.1.consequent.body.1.test.expressions.0.consequent.expressions.2.right.right.b\
ody.body.0.argument.left.callee"],
setFunctionName: ["body.0.body.body.6.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.0.right.callee", "bo\
dy.0.body.body.6.body.body.1.test.expressions.0.consequent.expressions.1.right.expressions.1.callee"],
toPropertyKey: ["body.0.body.body.2.body.body.2.declarations.2.init.properties.1.value.alternate.callee"]
}
}),
applyDecs2305: G("7.21.0", 'function applyDecs2305(e,t,r,n,o,a){function i(e,t,r){return function(n,o){return r&&r(n),e[t].call(n,o)}}fu\
nction c(e,t){for(var r=0;r<e.length;r++)e[r].call(t);return t}function s(e,t,r,n){if("function"!=typeof e&&(n||void 0!==e))throw new TypeEr\
ror(t+" must "+(r||"be")+" a function"+(n?"":" or undefined"));return e}function applyDec(e,t,r,n,o,a,c,u,l,f,p,d,h){function m(e){if(!h(e))\
throw new TypeError("Attempted to access private element on non-instance")}var y,v=t[0],g=t[3],b=!u;if(!b){r||Array.isArray(v)||(v=[v]);var \
w={},S=[],A=3===o?"get":4===o||d?"set":"value";f?(p||d?w={get:setFunctionName((function(){return g(this)}),n,"get"),set:function(e){t[4](thi\
s,e)}}:w[A]=g,p||setFunctionName(w[A],n,2===o?"":A)):p||(w=Object.getOwnPropertyDescriptor(e,n))}for(var P=e,j=v.length-1;j>=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;f<t.length;f++){var p=t[f];if(Array.isArray(p\
)){var d=p[1],h=p[2],m=p.length>3,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;b<a.length;b++){var i=a[b];(n=r[i]).configurable=n.enumerable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i,n)}return e}',
{
globals: ["Object"],
locals: {
_defineEnumerableProperties: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_defineEnumerableProperties",
dependencies: {}
}),
dispose: G("7.22.0", 'function dispose_SuppressedError(r,e){return"undefined"!=typeof SuppressedError?dispose_SuppressedError=Suppressed\
Error:(dispose_SuppressedError=function(r,e){this.suppressed=e,this.error=r,this.stack=Error().stack},dispose_SuppressedError.prototype=Obje\
ct.create(Error.prototype,{constructor:{value:dispose_SuppressedError,writable:!0,configurable:!0}})),new dispose_SuppressedError(r,e)}funct\
ion _dispose(r,e,s){function next(){for(;r.length>0;)try{var o=r.pop(),p=o.d.call(o.v);if(o.a)return Promise.resolve(p).then(next,err)}catch\
(r){return err(r)}if(s)throw e}function err(r){return e=s?new dispose_SuppressedError(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<arguments.length;r++){var t=null!=arguments[r]?Object(arguments\
[r]):{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(t).filter((function(e)\
{return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.forEach((function(r){defineProperty(e,r,t[r])}))}return e}', {
globals: ["Object"],
locals: {
_objectSpread: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_objectSpread",
dependencies: {
defineProperty: ["body.0.body.body.0.body.body.1.expression.expressions.1.arguments.0.body.body.0.expression.callee"]
}
}),
using: G("7.22.0", 'function _using(o,n,e){if(null==n)return n;if(Object(n)!==n)throw new TypeError("using declarations can only be used\
with objects, functions, null, or undefined.");if(e)var r=n[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(null==r&&(r=n[Symbol\
.dispose||Symbol.for("Symbol.dispose")]),"function"!=typeof r)throw new TypeError("Property [Symbol.dispose] is not a function.");return o.p\
ush({v:n,d:r,a:e}),n}', {
globals: ["Object", "TypeError", "Symbol"],
locals: {
_using: ["body.0.id"]
},
exportBindingAssignments: [],
exportName: "_using",
dependencies: {}
})
});
});
// ../node_modules/@babel/helpers/lib/index.js
var Hh = P((fn) => {
"use strict";
Object.defineProperty(fn, "__esModule", {
value: !0
});
fn.default = void 0;
fn.get = _S;
fn.getDependencies = dH;
fn.list = void 0;
fn.minVersion = fH;
var uH = De(), IS = DS(), {
cloneNode: cH,
identifier: wS
} = uH;
function Hl(e, t, r) {
try {
let n = t.split("."), s = n.shift();
for (; n.length > 0; )
e = e[s], s = n.shift();
if (arguments.length > 2)
e[s] = r;
else
return e[s];
} catch (n) {
throw n.message += ` (when accessing ${t})`, n;
}
}
i(Hl, "deep");
function pH(e, t, r, n, s, a) {
let {
locals: o,
dependencies: l,
exportBindingAssignments: u,
exportName: c
} = t, p = new Set(n || []);
r && p.add(r);
for (let [f, h] of (Object.entries || ((y) => Object.keys(y).map((E) => [E, y[E]])))(o)) {
let y = f;
if (r && f === c)
y = r;
else
for (; p.has(y); ) y = "_" + y;
if (y !== f)
for (let E of h)
Hl(e, E, wS(y));
}
for (let [f, h] of (Object.entries || ((y) => Object.keys(y).map((E) => [E, y[E]])))(l)) {
let y = typeof s == "function" && s(f) || wS(f);
for (let E of h)
Hl(e, E, cH(y));
}
a?.(e, c, (f) => {
u.forEach((h) => Hl(e, h, f(Hl(e, h))));
});
}
i(pH, "permuteHelperAST");
var Gh = /* @__PURE__ */ Object.create(null);
function Yl(e) {
if (!Gh[e]) {
let t = IS.default[e];
if (!t)
throw Object.assign(new ReferenceError(`Unknown helper ${e}`), {
code: "BABEL_HELPER_UNKNOWN",
helper: e
});
Gh[e] = {
minVersion: t.minVersion,
build(r, n, s, a) {
let o = t.ast();
return pH(o, t.metadata, n, s, r, a), {
nodes: o.body,
globals: t.metadata.globals
};
},
getDependencies() {
return Object.keys(t.metadata.dependencies);
}
};
}
return Gh[e];
}
i(Yl, "loadHelper");
function _S(e, t, r, n, s) {
if (typeof r == "object") {
let a = r;
a?.type === "Identifier" ? r = a.name : r = void 0;
}
return Yl(e).build(t, r, n, s);
}
i(_S, "get");
function fH(e) {
return Yl(e).minVersion;
}
i(fH, "minVersion");
function dH(e) {
return Yl(e).getDependencies();
}
i(dH, "getDependencies");
fn.ensure = (e) => {
Yl(e);
};
var dxe = fn.list = Object.keys(IS.default).map((e) => e.replace(/^_/, "")), hxe = fn.default = _S;
});
// ../node_modules/@babel/traverse/lib/path/lib/virtual-types.js
var Yh = P((Ve) => {
"use strict";
Object.defineProperty(Ve, "__esModule", {
value: !0
});
Ve.Var = Ve.User = Ve.Statement = Ve.SpreadProperty = Ve.Scope = Ve.RestProperty = Ve.ReferencedMemberExpression = Ve.ReferencedIdentifier =
Ve.Referenced = Ve.Pure = Ve.NumericLiteralTypeAnnotation = Ve.Generated = Ve.ForAwaitStatement = Ve.Flow = Ve.Expression = Ve.ExistentialTypeParam =
Ve.BlockScoped = Ve.BindingIdentifier = void 0;
var gxe = Ve.ReferencedIdentifier = ["Identifier", "JSXIdentifier"], bxe = Ve.ReferencedMemberExpression = ["MemberExpression"], Exe = Ve.
BindingIdentifier = ["Identifier"], Txe = Ve.Statement = ["Statement"], Sxe = Ve.Expression = ["Expression"], xxe = Ve.Scope = ["Scopable",
"Pattern"], vxe = Ve.Referenced = null, Pxe = Ve.BlockScoped = null, Axe = Ve.Var = ["VariableDeclaration"], Cxe = Ve.User = null, Dxe = Ve.
Generated = null, wxe = Ve.Pure = null, Ixe = Ve.Flow = ["Flow", "ImportDeclaration", "ExportDeclaration", "ImportSpecifier"], _xe = Ve.RestProperty =
["RestElement"], Oxe = Ve.SpreadProperty = ["RestElement"], Nxe = Ve.ExistentialTypeParam = ["ExistsTypeAnnotation"], Bxe = Ve.NumericLiteralTypeAnnotation =
["NumberLiteralTypeAnnotation"], kxe = Ve.ForAwaitStatement = ["ForOfStatement"];
});
// ../node_modules/ms/index.js
var NS = P((jxe, OS) => {
var ki = 1e3, Fi = ki * 60, ji = Fi * 60, qs = ji * 24, hH = qs * 7, mH = qs * 365.25;
OS.exports = function(e, t) {
t = t || {};
var r = typeof e;
if (r === "string" && e.length > 0)
return yH(e);
if (r === "number" && isFinite(e))
return t.long ? bH(e) : gH(e);
throw new Error(
"val is not a non-empty string or a valid number. val=" + JSON.stringify(e)
);
};
function yH(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 * mH;
case "weeks":
case "week":
case "w":
return r * hH;
case "days":
case "day":
case "d":
return r * qs;
case "hours":
case "hour":
case "hrs":
case "hr":
case "h":
return r * ji;
case "minutes":
case "minute":
case "mins":
case "min":
case "m":
return r * Fi;
case "seconds":
case "second":
case "secs":
case "sec":
case "s":
return r * ki;
case "milliseconds":
case "millisecond":
case "msecs":
case "msec":
case "ms":
return r;
default:
return;
}
}
}
}
i(yH, "parse");
function gH(e) {
var t = Math.abs(e);
return t >= qs ? Math.round(e / qs) + "d" : t >= ji ? Math.round(e / ji) + "h" : t >= Fi ? Math.round(e / Fi) + "m" : t >= ki ? Math.round(
e / ki) + "s" : e + "ms";
}
i(gH, "fmtShort");
function bH(e) {
var t = Math.abs(e);
return t >= qs ? Jl(e, t, qs, "day") : t >= ji ? Jl(e, t, ji, "hour") : t >= Fi ? Jl(e, t, Fi, "minute") : t >= ki ? Jl(e, t, ki, "secon\
d") : e + " ms";
}
i(bH, "fmtLong");
function Jl(e, t, r, n) {
var s = t >= r * 1.5;
return Math.round(e / r) + " " + n + (s ? "s" : "");
}
i(Jl, "plural");
});
// ../node_modules/debug/src/common.js
var Jh = P((Mxe, BS) => {
function EH(e) {
r.debug = r, r.default = r, r.coerce = u, r.disable = o, r.enable = s, r.enabled = l, r.humanize = NS(), r.destroy = c, Object.keys(e).forEach(
(p) => {
r[p] = e[p];
}), r.names = [], r.skips = [], r.formatters = {};
function t(p) {
let f = 0;
for (let h = 0; h < p.length; h++)
f = (f << 5) - f + p.charCodeAt(h), f |= 0;
return r.colors[Math.abs(f) % r.colors.length];
}
i(t, "selectColor"), r.selectColor = t;
function r(p) {
let f, h = null, y, E;
function d(...g) {
if (!d.enabled)
return;
let C = d, _ = Number(/* @__PURE__ */ new Date()), O = _ - (f || _);
C.diff = O, C.prev = f, C.curr = _, f = _, g[0] = r.coerce(g[0]), typeof g[0] != "string" && g.unshift("%O");
let B = 0;
g[0] = g[0].replace(/%([a-zA-Z%])/g, ($, V) => {
if ($ === "%%")
return "%";
B++;
let J = r.formatters[V];
if (typeof J == "function") {
let U = g[B];
$ = J.call(C, U), g.splice(B, 1), B--;
}
return $;
}), r.formatArgs.call(C, g), (C.log || r.log).apply(C, g);
}
return i(d, "debug"), d.namespace = p, d.useColors = r.useColors(), d.color = r.selectColor(p), d.extend = n, d.destroy = r.destroy, Object.
defineProperty(d, "enabled", {
enumerable: !0,
configurable: !1,
get: /* @__PURE__ */ i(() => h !== null ? h : (y !== r.namespaces && (y = r.namespaces, E = r.enabled(p)), E), "get"),
set: /* @__PURE__ */ i((g) => {
h = g;
}, "set")
}), typeof r.init == "function" && r.init(d), d;
}
i(r, "createDebug");
function n(p, f) {
let h = r(this.namespace + (typeof f > "u" ? ":" : f) + p);
return h.log = this.log, h;
}
i(n, "extend");
function s(p) {
r.save(p), r.namespaces = p, r.names = [], r.skips = [];
let f = (typeof p == "string" ? p : "").trim().replace(" ", ",").split(",").filter(Boolean);
for (let h of f)
h[0] === "-" ? r.skips.push(h.slice(1)) : r.names.push(h);
}
i(s, "enable");
function a(p, f) {
let h = 0, y = 0, E = -1, d = 0;
for (; h < p.length; )
if (y < f.length && (f[y] === p[h] || f[y] === "*"))
f[y] === "*" ? (E = y, d = h, y++) : (h++, y++);
else if (E !== -1)
y = E + 1, d++, h = d;
else
return !1;
for (; y < f.length && f[y] === "*"; )
y++;
return y === f.length;
}
i(a, "matchesTemplate");
function o() {
let p = [
...r.names,
...r.skips.map((f) => "-" + f)
].join(",");
return r.enable(""), p;
}
i(o, "disable");
function l(p) {
for (let f of r.skips)
if (a(p, f))
return !1;
for (let f of r.names)
if (a(p, f))
return !0;
return !1;
}
i(l, "enabled");
function u(p) {
return p instanceof Error ? p.stack || p.message : p;
}
i(u, "coerce");
function c() {
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major versio\
n of `debug`.");
}
return i(c, "destroy"), r.enable(r.load()), r;
}
i(EH, "setup");
BS.exports = EH;
});
// ../node_modules/debug/src/browser.js
var kS = P((Er, Xl) => {
Er.formatArgs = SH;
Er.save = xH;
Er.load = vH;
Er.useColors = TH;
Er.storage = PH();
Er.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`."));
};
})();
Er.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 TH() {
if (typeof window < "u" && window.process && (window.process.type === "renderer" || window.process.__nwjs))
return !0;
if (typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))
return !1;
let e;
return typeof document < "u" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance ||
// Is firebug? http://stackoverflow.com/a/398120/376773
typeof window < "u" && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
typeof navigator < "u" && navigator.userAgent && (e = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(e[1], 10) >=
31 || // Double check webkit in userAgent just in case we are in a worker
typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
}
i(TH, "useColors");
function SH(e) {
if (e[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + e[0] + (this.useColors ? "%c " : " ") + "+" +
Xl.exports.humanize(this.diff), !this.useColors)
return;
let t = "color: " + this.color;
e.splice(1, 0, t, "color: inherit");
let r = 0, n = 0;
e[0].replace(/%[a-zA-Z%]/g, (s) => {
s !== "%%" && (r++, s === "%c" && (n = r));
}), e.splice(n, 0, t);
}
i(SH, "formatArgs");
Er.log = console.debug || console.log || (() => {
});
function xH(e) {
try {
e ? Er.storage.setItem("debug", e) : Er.storage.removeItem("debug");
} catch {
}
}
i(xH, "save");
function vH() {
let e;
try {
e = Er.storage.getItem("debug");
} catch {
}
return !e && typeof process < "u" && "env" in process && (e = process.env.DEBUG), e;
}
i(vH, "load");
function PH() {
try {
return localStorage;
} catch {
}
}
i(PH, "localstorage");
Xl.exports = Jh()(Er);
var { formatters: AH } = Xl.exports;
AH.j = function(e) {
try {
return JSON.stringify(e);
} catch (t) {
return "[UnexpectedJSONParseError]: " + t.message;
}
};
});
// ../node_modules/has-flag/index.js
var jS = P((Uxe, FS) => {
"use strict";
FS.exports = (e, t = process.argv) => {
let r = e.startsWith("-") ? "" : e.length === 1 ? "-" : "--", n = t.indexOf(r + e), s = t.indexOf("--");
return n !== -1 && (s === -1 || n < s);
};
});
// ../node_modules/supports-color/index.js
var RS = P((Vxe, MS) => {
"use strict";
var CH = ce("os"), LS = ce("tty"), Nr = jS(), { env: jt } = process, is;
Nr("no-color") || Nr("no-colors") || Nr("color=false") || Nr("color=never") ? is = 0 : (Nr("color") || Nr("colors") || Nr("color=true") ||
Nr("color=always")) && (is = 1);
"FORCE_COLOR" in jt && (jt.FORCE_COLOR === "true" ? is = 1 : jt.FORCE_COLOR === "false" ? is = 0 : is = jt.FORCE_COLOR.length === 0 ? 1 : Math.
min(parseInt(jt.FORCE_COLOR, 10), 3));
function Xh(e) {
return e === 0 ? !1 : {
level: e,
hasBasic: !0,
has256: e >= 2,
has16m: e >= 3
};
}
i(Xh, "translateLevel");
function zh(e, t) {
if (is === 0)
return 0;
if (Nr("color=16m") || Nr("color=full") || Nr("color=truecolor"))
return 3;
if (Nr("color=256"))
return 2;
if (e && !t && is === void 0)
return 0;
let r = is || 0;
if (jt.TERM === "dumb")
return r;
if (process.platform === "win32") {
let n = CH.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;
}
i(zh, "supportsColor");
function DH(e) {
let t = zh(e, e && e.isTTY);
return Xh(t);
}
i(DH, "getSupportLevel");
MS.exports = {
supportsColor: DH,
stdout: Xh(zh(!0, LS.isatty(1))),
stderr: Xh(zh(!0, LS.isatty(2)))
};
});
// ../node_modules/debug/src/node.js
var US = P((Lt, Ql) => {
var wH = ce("tty"), zl = ce("util");
Lt.init = FH;
Lt.log = NH;
Lt.formatArgs = _H;
Lt.save = BH;
Lt.load = kH;
Lt.useColors = IH;
Lt.destroy = zl.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 = RS();
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, (s, 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 IH() {
return "colors" in Lt.inspectOpts ? !!Lt.inspectOpts.colors : wH.isatty(process.stderr.fd);
}
i(IH, "useColors");
function _H(e) {
let { namespace: t, useColors: r } = this;
if (r) {
let n = this.color, s = "\x1B[3" + (n < 8 ? n : "8;5;" + n), a = ` ${s};1m${t} \x1B[0m`;
e[0] = a + e[0].split(`
`).join(`
` + a), e.push(s + "m+" + Ql.exports.humanize(this.diff) + "\x1B[0m");
} else
e[0] = OH() + t + " " + e[0];
}
i(_H, "formatArgs");
function OH() {
return Lt.inspectOpts.hideDate ? "" : (/* @__PURE__ */ new Date()).toISOString() + " ";
}
i(OH, "getDate");
function NH(...e) {
return process.stderr.write(zl.formatWithOptions(Lt.inspectOpts, ...e) + `
`);
}
i(NH, "log");
function BH(e) {
e ? process.env.DEBUG = e : delete process.env.DEBUG;
}
i(BH, "save");
function kH() {
return process.env.DEBUG;
}
i(kH, "load");
function FH(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]];
}
i(FH, "init");
Ql.exports = Jh()(Lt);
var { formatters: qS } = Ql.exports;
qS.o = function(e) {
return this.inspectOpts.colors = this.useColors, zl.inspect(e, this.inspectOpts).split(`
`).map((t) => t.trim()).join(" ");
};
qS.O = function(e) {
return this.inspectOpts.colors = this.useColors, zl.inspect(e, this.inspectOpts);
};
});
// ../node_modules/debug/src/index.js
var Us = P((Kxe, Qh) => {
typeof process > "u" || process.type === "renderer" || process.browser === !0 || process.__nwjs ? Qh.exports = kS() : Qh.exports = US();
});
// ../node_modules/@babel/traverse/lib/path/lib/virtual-types-validator.js
var em = P((_t) => {
"use strict";
Object.defineProperty(_t, "__esModule", {
value: !0
});
_t.isBindingIdentifier = sY;
_t.isBlockScoped = uY;
_t.isExpression = aY;
_t.isFlow = hY;
_t.isForAwaitStatement = gY;
_t.isGenerated = fY;
_t.isPure = dY;
_t.isReferenced = lY;
_t.isReferencedIdentifier = rY;
_t.isReferencedMemberExpression = nY;
_t.isRestProperty = mY;
_t.isScope = oY;
_t.isSpreadProperty = yY;
_t.isStatement = iY;
_t.isUser = pY;
_t.isVar = cY;
var jH = De(), {
isBinding: LH,
isBlockScoped: MH,
isExportDeclaration: RH,
isExpression: qH,
isFlow: UH,
isForStatement: VH,
isForXStatement: $H,
isIdentifier: VS,
isImportDeclaration: WH,
isImportSpecifier: KH,
isJSXIdentifier: GH,
isJSXMemberExpression: HH,
isMemberExpression: YH,
isRestElement: $S,
isReferenced: Zh,
isScope: JH,
isStatement: XH,
isVar: zH,
isVariableDeclaration: QH,
react: ZH,
isForOfStatement: eY
} = jH, {
isCompatTag: tY
} = ZH;
function rY(e) {
let {
node: t,
parent: r
} = this;
if (!VS(t, e) && !HH(r, e))
if (GH(t, e)) {
if (tY(t.name)) return !1;
} else
return !1;
return Zh(t, r, this.parentPath.parent);
}
i(rY, "isReferencedIdentifier");
function nY() {
let {
node: e,
parent: t
} = this;
return YH(e) && Zh(e, t);
}
i(nY, "isReferencedMemberExpression");
function sY() {
let {
node: e,
parent: t
} = this, r = this.parentPath.parent;
return VS(e) && LH(e, t, r);
}
i(sY, "isBindingIdentifier");
function iY() {
let {
node: e,
parent: t
} = this;
return XH(e) ? !(QH(e) && ($H(t, {
left: e
}) || VH(t, {
init: e
}))) : !1;
}
i(iY, "isStatement");
function aY() {
return this.isIdentifier() ? this.isReferencedIdentifier() : qH(this.node);
}
i(aY, "isExpression");
function oY() {
return JH(this.node, this.parent);
}
i(oY, "isScope");
function lY() {
return Zh(this.node, this.parent);
}
i(lY, "isReferenced");
function uY() {
return MH(this.node);
}
i(uY, "isBlockScoped");
function cY() {
return zH(this.node);
}
i(cY, "isVar");
function pY() {
return this.node && !!this.node.loc;
}
i(pY, "isUser");
function fY() {
return !this.isUser();
}
i(fY, "isGenerated");
function dY(e) {
return this.scope.isPure(this.node, e);
}
i(dY, "isPure");
function hY() {
let {
node: e
} = this;
return UH(e) ? !0 : WH(e) ? e.importKind === "type" || e.importKind === "typeof" : RH(e) ? e.exportKind === "type" : KH(e) ? e.importKind ===
"type" || e.importKind === "typeof" : !1;
}
i(hY, "isFlow");
function mY() {
var e;
return $S(this.node) && ((e = this.parentPath) == null ? void 0 : e.isObjectPattern());
}
i(mY, "isRestProperty");
function yY() {
var e;
return $S(this.node) && ((e = this.parentPath) == null ? void 0 : e.isObjectExpression());
}
i(yY, "isSpreadProperty");
function gY() {
return eY(this.node, {
await: !0
});
}
i(gY, "isForAwaitStatement");
_t.isExistentialTypeParam = /* @__PURE__ */ i(function() {
throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.");
}, "isExistentialTypeParam"), _t.isNumericLiteralTypeAnnotation = /* @__PURE__ */ i(function() {
throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.");
}, "isNumericLiteralTypeAnnotation");
});
// ../node_modules/@babel/traverse/lib/visitors.js
var Zl = P(($s) => {
"use strict";
Object.defineProperty($s, "__esModule", {
value: !0
});
$s.environmentVisitor = AY;
$s.explode = ex;
$s.isExplodedVisitor = ZS;
$s.merge = rx;
$s.verify = tx;
var QS = Yh(), bY = em(), EY = De(), WS = dn(), {
DEPRECATED_KEYS: KS,
DEPRECATED_ALIASES: GS,
FLIPPED_ALIAS_KEYS: HS,
TYPES: TY,
__internal__deprecationWarning: YS
} = EY;
function SY(e) {
return e in QS;
}
i(SY, "isVirtualType");
function ZS(e) {
return e?._exploded;
}
i(ZS, "isExplodedVisitor");
function ex(e) {
if (ZS(e)) return e;
e._exploded = !0;
for (let t of Object.keys(e)) {
if (Vs(t)) continue;
let r = t.split("|");
if (r.length === 1) continue;
let n = e[t];
delete e[t];
for (let s of r)
e[s] = n;
}
tx(e), delete e.__esModule, xY(e), zS(e);
for (let t of Object.keys(e)) {
if (Vs(t) || !SY(t)) continue;
let r = e[t];
for (let s of Object.keys(r))
r[s] = vY(t, r[s]);
delete e[t];
let n = QS[t];
if (n !== null)
for (let s of n)
e[s] ? eo(e[s], r) : e[s] = r;
else
eo(e, r);
}
for (let t of Object.keys(e)) {
if (Vs(t)) continue;
let r = HS[t];
if (t in KS) {
let s = KS[t];
YS(t, s, "Visitor "), r = [s];
} else if (t in GS) {
let s = GS[t];
YS(t, s, "Visitor "), r = HS[s];
}
if (!r) continue;
let n = e[t];
delete e[t];
for (let s of r) {
let a = e[s];
a ? eo(a, n) : e[s] = Object.assign({}, n);
}
}
for (let t of Object.keys(e))
Vs(t) || zS(e[t]);
return e;
}
i(ex, "explode$1");
function tx(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") && JS(t, e[t]), Vs(t)) continue;
if (!TY.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.27.0`);
let r = e[t];
if (typeof r == "object")
for (let n of Object.keys(r))
if (n === "enter" || n === "exit")
JS(`${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;
}
}
i(tx, "verify$1");
function JS(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}`);
}
i(JS, "validateVisitorMethods");
function rx(e, t = [], r) {
let n = {
_verified: !0,
_exploded: !0
};
Object.defineProperty(n, "_exploded", {
enumerable: !1
}), Object.defineProperty(n, "_verified", {
enumerable: !1
});
for (let s = 0; s < e.length; s++) {
let a = ex(e[s]), o = t[s], l = a;
(o || r) && (l = XS(l, o, r)), eo(n, l);
for (let u of Object.keys(a)) {
if (Vs(u)) continue;
let c = a[u];
(o || r) && (c = XS(c, o, r));
let p = n[u] || (n[u] = {});
eo(p, c);
}
}
return n;
}
i(rx, "merge");
function XS(e, t, r) {
let n = {};
for (let s of ["enter", "exit"]) {
let a = e[s];
Array.isArray(a) && (a = a.map(function(o) {
let l = o;
return t && (l = /* @__PURE__ */ i(function(u) {
o.call(t, u, t);
}, "newFn")), r && (l = r(t?.key, s, l)), l !== o && (l.toString = () => o.toString()), l;
}), n[s] = a);
}
return n;
}
i(XS, "wrapWithStateOrWrapper");
function xY(e) {
for (let t of Object.keys(e)) {
if (Vs(t)) continue;
let r = e[t];
typeof r == "function" && (e[t] = {
enter: r
});
}
}
i(xY, "ensureEntranceObjects");
function zS(e) {
e.enter && !Array.isArray(e.enter) && (e.enter = [e.enter]), e.exit && !Array.isArray(e.exit) && (e.exit = [e.exit]);
}
i(zS, "ensureCallbackArrays");
function vY(e, t) {
let r = `is${e}`, n = bY[r], s = /* @__PURE__ */ i(function(a) {
if (n.call(a))
return t.apply(this, arguments);
}, "newFn");
return s.toString = () => t.toString(), s;
}
i(vY, "wrapCheck");
function Vs(e) {
return e[0] === "_" || e === "enter" || e === "exit" || e === "shouldSkip" || e === "denylist" || e === "noScope" || e === "skipKeys" ||
e === "blacklist";
}
i(Vs, "shouldIgnoreKey");
function eo(e, t) {
for (let r of ["enter", "exit"])
t[r] && (e[r] = [].concat(e[r] || [], t[r]));
}
i(eo, "mergePair");
var PY = {
FunctionParent(e) {
e.isArrowFunctionExpression() || (e.skip(), e.isMethod() && (e.requeueComputedKeyAndDecorators ? e.requeueComputedKeyAndDecorators() :
WS.requeueComputedKeyAndDecorators.call(e)));
},
Property(e) {
e.isObjectProperty() || (e.skip(), e.requeueComputedKeyAndDecorators ? e.requeueComputedKeyAndDecorators() : WS.requeueComputedKeyAndDecorators.
call(e));
}
};
function AY(e) {
return rx([PY, e]);
}
i(AY, "environmentVisitor");
});
// ../node_modules/@babel/traverse/lib/scope/lib/renamer.js
var nx = P((tu) => {
"use strict";
Object.defineProperty(tu, "__esModule", {
value: !0
});
tu.default = void 0;
var eu = De(), CY = eu, DY = ru(), wY = Zl(), IY = dn(), {
getAssignmentIdentifiers: _Y
} = CY, OY = {
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() : IY.requeueComputedKeyAndDecorators.call(e)));
},
ObjectProperty({
node: e,
scope: t
}, r) {
let {
name: n
} = e.key;
if (e.shorthand && (n === r.oldName || n === r.newName) && t.getBindingIdentifier(n) === r.binding.identifier) {
e.shorthand = !1;
{
var s;
(s = e.extra) != null && s.shorthand && (e.extra.shorthand = !1);
}
}
},
"AssignmentExpression|Declaration|VariableDeclarator"(e, t) {
if (e.isVariableDeclaration()) return;
let r = e.isAssignmentExpression() ? _Y(e.node) : e.getOuterBindingIdentifiers();
for (let n in r)
n === t.oldName && (r[n].name = t.newName);
}
}, tm = class {
static {
i(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 (eu.isDeclaration(n) && !n.id)
return;
}
r.isExportAllDeclaration() || r.splitExportDeclaration();
}
}
maybeConvertFromClassFunctionDeclaration(t) {
return t;
}
maybeConvertFromClassFunctionExpression(t) {
return t;
}
rename() {
let {
binding: t,
oldName: r,
newName: n
} = this, {
scope: s,
path: a
} = t, o = a.find((c) => c.isDeclaration() || c.isFunctionExpression() || c.isClassExpression());
o && o.getOuterBindingIdentifiers()[r] === t.identifier && this.maybeConvertFromExportDeclaration(o);
let l = arguments[0] || s.block, u = {
discriminant: !0
};
eu.isMethod(l) && (l.computed && (u.key = !0), eu.isObjectMethod(l) || (u.decorators = !0)), (0, DY.traverseNode)(l, (0, wY.explode)(OY),
s, this, s.path, u), arguments[0] || (s.removeOwnBinding(r), s.bindings[n] = t, this.binding.identifier.name = n), o && (this.maybeConvertFromClassFunctionDeclaration(
a), this.maybeConvertFromClassFunctionExpression(a));
}
};
tu.default = tm;
});
// ../node_modules/@babel/traverse/lib/scope/binding.js
var sx = P((nu) => {
"use strict";
Object.defineProperty(nu, "__esModule", {
value: !0
});
nu.default = void 0;
var rm = class {
static {
i(this, "Binding");
}
constructor({
identifier: t,
scope: r,
path: n,
kind: s
}) {
this.identifier = void 0, this.scope = void 0, this.path = void 0, this.kind = void 0, this.constantViolations = [], this.constant = !0,
this.referencePaths = [], this.referenced = !1, this.references = 0, this.identifier = t, this.scope = r, this.path = n, this.kind = s,
(s === "var" || s === "hoisted") && NY(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;
}
};
nu.default = rm;
function NY(e) {
let t = !e.isVariableDeclarator() || e.node.init;
for (let {
parentPath: r,
key: n
} = e; r; {
parentPath: r,
key: n
} = r) {
if (r.isFunctionParent()) return !1;
if (n === "left" && r.isForXStatement() || t && n === "body" && r.isLoop())
return !0;
}
return !1;
}
i(NY, "isInitInLoop");
});
// ../node_modules/@babel/traverse/node_modules/globals/globals.json
var ix = P((eve, BY) => {
BY.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 ox = P((tve, ax) => {
"use strict";
ax.exports = ix();
});
// ../node_modules/@babel/traverse/lib/cache.js
var Ws = P((Tr) => {
"use strict";
Object.defineProperty(Tr, "__esModule", {
value: !0
});
Tr.clear = FY;
Tr.clearPath = lx;
Tr.clearScope = ux;
Tr.getCachedPaths = jY;
Tr.getOrCreateCachedPaths = LY;
Tr.scope = Tr.path = void 0;
var su = Tr.path = /* @__PURE__ */ new WeakMap(), kY = Tr.scope = /* @__PURE__ */ new WeakMap();
function FY() {
lx(), ux();
}
i(FY, "clear");
function lx() {
Tr.path = su = /* @__PURE__ */ new WeakMap();
}
i(lx, "clearPath");
function ux() {
Tr.scope = kY = /* @__PURE__ */ new WeakMap();
}
i(ux, "clearScope");
var nm = Object.freeze({});
function jY(e, t) {
var r;
return e = null, (r = su.get(e ?? nm)) == null ? void 0 : r.get(t);
}
i(jY, "getCachedPaths");
function LY(e, t) {
e = null;
let r = su.get(e ?? nm);
r || su.set(e ?? nm, r = /* @__PURE__ */ new WeakMap());
let n = r.get(t);
return n || r.set(t, n = /* @__PURE__ */ new Map()), n;
}
i(LY, "getOrCreateCachedPaths");
});
// ../node_modules/@babel/traverse/lib/scope/index.js
var lm = P((iu) => {
"use strict";
Object.defineProperty(iu, "__esModule", {
value: !0
});
iu.default = void 0;
var MY = nx(), bx = Ot(), RY = sx(), qY = ox(), Ex = De(), Tx = Ex, cx = Ws(), {
assignmentExpression: UY,
callExpression: px,
cloneNode: fx,
getBindingIdentifiers: Sx,
identifier: Gs,
isArrayExpression: xx,
isBinary: VY,
isCallExpression: dx,
isClass: $Y,
isClassBody: WY,
isClassDeclaration: KY,
isExportAllDeclaration: vx,
isExportDefaultDeclaration: GY,
isExportNamedDeclaration: sm,
isFunctionDeclaration: HY,
isIdentifier: Ks,
isImportDeclaration: im,
isLiteral: YY,
isMemberExpression: JY,
isMethod: XY,
isModuleSpecifier: zY,
isNullLiteral: QY,
isObjectExpression: ZY,
isProperty: eJ,
isPureish: tJ,
isRegExpLiteral: rJ,
isSuper: nJ,
isTaggedTemplateExpression: sJ,
isTemplateLiteral: Px,
isThisExpression: hx,
isUnaryExpression: iJ,
isVariableDeclaration: aJ,
expressionStatement: oJ,
matchesPattern: mx,
memberExpression: am,
numericLiteral: lJ,
toIdentifier: uJ,
variableDeclaration: cJ,
variableDeclarator: pJ,
isRecordExpression: fJ,
isTupleExpression: dJ,
isObjectProperty: hJ,
isTopicReference: yx,
isMetaProperty: mJ,
isPrivateName: yJ,
isExportDeclaration: gJ,
buildUndefinedNode: bJ,
sequenceExpression: EJ
} = Ex;
function ct(e, t) {
switch (e?.type) {
default:
if (im(e) || gJ(e)) {
var r;
if ((vx(e) || sm(e) || im(e)) && e.source)
ct(e.source, t);
else if ((sm(e) || im(e)) && (r = e.specifiers) != null && r.length)
for (let n of e.specifiers) ct(n, t);
else (GY(e) || sm(e)) && e.declaration && ct(e.declaration, t);
} else zY(e) ? ct(e.local, t) : YY(e) && !QY(e) && !rJ(e) && !Px(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;
}
}
i(ct, "gatherNodeParts");
function gx(e) {
e.references = /* @__PURE__ */ Object.create(null), e.bindings = /* @__PURE__ */ Object.create(null), e.globals = /* @__PURE__ */ Object.
create(null), e.uids = /* @__PURE__ */ Object.create(null);
}
i(gx, "resetScope");
om = Symbol.for("should not be considered a local binding");
var om, TJ = {
ForStatement(e) {
let t = e.get("init");
if (t.isVar()) {
let {
scope: r
} = e;
(r.getFunctionParent() || r.getProgramParent()).registerBinding("var", t);
}
},
Declaration(e) {
if (e.isBlockScoped() || e.isImportDeclaration() || e.isExportDeclaration()) return;
(e.scope.getFunctionParent() || e.scope.getProgramParent()).registerDeclaration(e);
},
ImportDeclaration(e) {
e.scope.getBlockParent().registerDeclaration(e);
},
TSImportEqualsDeclaration(e) {
e.scope.getBlockParent().registerDeclaration(e);
},
ReferencedIdentifier(e, t) {
Tx.isTSQualifiedName(e.parent) && e.parent.right === e.node || e.parentPath.isTSImportEqualsDeclaration() || t.references.push(e);
},
ForXStatement(e, t) {
let r = e.get("left");
if (r.isPattern() || r.isIdentifier())
t.constantViolations.push(e);
else if (r.isVar()) {
let {
scope: n
} = e;
(n.getFunctionParent() || n.getProgramParent()).registerBinding("var", r);
}
},
ExportDeclaration: {
exit(e) {
let {
node: t,
scope: r
} = e;
if (vx(t)) return;
let n = t.declaration;
if (KY(n) || HY(n)) {
let s = n.id;
if (!s) return;
let a = r.getBinding(s.name);
a?.reference(e);
} else if (aJ(n))
for (let s of n.declarations)
for (let a of Object.keys(Sx(s))) {
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 s = e.node.id.name;
e.scope.bindings[s] = e.scope.parent.getBinding(s);
}
},
CatchClause(e) {
e.scope.registerBinding("let", e);
},
Function(e) {
let t = e.get("params");
for (let r of t)
e.scope.registerBinding("param", r);
e.isFunctionExpression() && e.node.id && !e.node.id[om] && e.scope.registerBinding("local", e.get("id"), e);
},
ClassExpression(e) {
e.node.id && !e.node.id[om] && e.scope.registerBinding("local", e.get("id"), e);
},
TSTypeAnnotation(e) {
e.skip();
}
}, to, SJ = 0, Gr = class e {
static {
i(this, "Scope");
}
constructor(t) {
this.uid = void 0, this.path = void 0, this.block = void 0, this.inited = void 0, this.labels = void 0, this.bindings = void 0, this.references =
void 0, this.globals = void 0, this.uids = void 0, this.data = void 0, this.crawling = void 0;
let {
node: r
} = t, n = cx.scope.get(r);
if (n?.path === t)
return n;
cx.scope.set(r, this), this.uid = SJ++, 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 s;
let a = n.key === "key" || n.listKey === "decorators";
n = n.parentPath, a && n.isMethod() && (n = n.parentPath), (s = n) != null && s.isScope() && (r = n);
} while (n && !r);
return (t = r) == null ? void 0 : t.scope;
}
generateDeclaredUidIdentifier(t) {
let r = this.generateUidIdentifier(t);
return this.push({
id: r
}), fx(r);
}
generateUidIdentifier(t) {
return Gs(this.generateUid(t));
}
generateUid(t = "temp") {
t = uJ(t).replace(/^_+/, "").replace(/\d+$/g, "");
let r, n = 1;
do
r = `_${t}`, n > 1 && (r += n), n++;
while (this.hasLabel(r) || this.hasBinding(r) || this.hasGlobal(r) || this.hasReference(r));
let s = this.getProgramParent();
return s.references[r] = !0, s.uids[r] = !0, r;
}
generateUidBasedOnNode(t, r) {
let n = [];
ct(t, n);
let s = n.join("$");
return s = s.replace(/^_/, "") || r || "ref", this.generateUid(s.slice(0, 20));
}
generateUidIdentifierBasedOnNode(t, r) {
return Gs(this.generateUidBasedOnNode(t, r));
}
isStatic(t) {
if (hx(t) || nJ(t) || yx(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
}), fx(n));
}
}
checkBlockScopedCollisions(t, r, n, s) {
if (r === "param" || t.kind === "local") return;
if (r === "let" || t.kind === "let" || t.kind === "const" || t.kind === "module" || t.kind === "param" && r === "const")
throw this.path.hub.buildError(s, `Duplicate declaration "${n}"`, TypeError);
}
rename(t, r) {
let n = this.getBinding(t);
n && (r || (r = this.generateUidIdentifier(t).name), new MY.default(n, t, r).rename(arguments[2]));
}
dump() {
let t = "-".repeat(60);
console.log(t);
let r = this;
do {
console.log("#", r.block.type);
for (let n of Object.keys(r.bindings)) {
let s = r.bindings[n];
console.log(" -", n, {
constant: s.constant,
references: s.references,
violations: s.constantViolations.length,
kind: s.kind
});
}
} while (r = r.parent);
console.log(t);
}
hasLabel(t) {
return !!this.getLabel(t);
}
getLabel(t) {
return this.labels.get(t);
}
registerLabel(t) {
this.labels.set(t.node.label.name, t);
}
registerDeclaration(t) {
if (t.isLabeledStatement())
this.registerLabel(t);
else if (t.isFunctionDeclaration())
this.registerBinding("hoisted", t.get("id"), t);
else if (t.isVariableDeclaration()) {
let r = t.get("declarations"), {
kind: n
} = t.node;
for (let s of r)
this.registerBinding(n === "using" || n === "await using" ? "const" : n, s);
} else if (t.isClassDeclaration()) {
if (t.node.declare) return;
this.registerBinding("let", t);
} else if (t.isImportDeclaration()) {
let r = t.node.importKind === "type" || t.node.importKind === "typeof", n = t.get("specifiers");
for (let s of n) {
let a = r || s.isImportSpecifier() && (s.node.importKind === "type" || s.node.importKind === "typeof");
this.registerBinding(a ? "unknown" : "module", s);
}
} else if (t.isExportDeclaration()) {
let r = t.get("declaration");
(r.isClassDeclaration() || r.isFunctionDeclaration() || r.isVariableDeclaration()) && this.registerDeclaration(r);
} else
this.registerBinding("unknown", t);
}
buildUndefinedNode() {
return bJ();
}
registerConstantViolation(t) {
let r = t.getAssignmentIdentifiers();
for (let s of Object.keys(r)) {
var n;
(n = this.getBinding(s)) == null || n.reassign(t);
}
}
registerBinding(t, r, n = r) {
if (!t) throw new ReferenceError("no `kind`");
if (r.isVariableDeclaration()) {
let o = r.get("declarations");
for (let l of o)
this.registerBinding(t, l);
return;
}
let s = this.getProgramParent(), a = r.getOuterBindingIdentifiers(!0);
for (let o of Object.keys(a)) {
s.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 RY.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 (hx(t) || mJ(t) || yx(t) || yJ(t))
return !0;
if ($Y(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 (WY(t)) {
for (let o of t.body)
if (!this.isPure(o, r)) return !1;
return !0;
} else {
if (VY(t))
return this.isPure(t.left, r) && this.isPure(t.right, r);
if (xx(t) || dJ(t)) {
for (let o of t.elements)
if (o !== null && !this.isPure(o, r)) return !1;
return !0;
} else if (ZY(t) || fJ(t)) {
for (let o of t.properties)
if (!this.isPure(o, r)) return !1;
return !0;
} else if (XY(t)) {
var s;
return !(t.computed && !this.isPure(t.key, r) || ((s = t.decorators) == null ? void 0 : s.length) > 0);
} else if (eJ(t)) {
var a;
return !(t.computed && !this.isPure(t.key, r) || ((a = t.decorators) == null ? void 0 : a.length) > 0 || (hJ(t) || t.static) && t.
value !== null && !this.isPure(t.value, r));
} else {
if (iJ(t))
return this.isPure(t.argument, r);
if (Px(t)) {
for (let o of t.expressions)
if (!this.isPure(o, r)) return !1;
return !0;
} else return sJ(t) ? mx(t.tag, "String.raw") && !this.hasBinding("String", {
noGlobals: !0
}) && this.isPure(t.quasi, r) : JY(t) ? !t.computed && Ks(t.object) && t.object.name === "Symbol" && Ks(t.property) && t.property.
name !== "for" && !this.hasBinding("Symbol", {
noGlobals: !0
}) : dx(t) ? mx(t.callee, "Symbol.for") && !this.hasBinding("Symbol", {
noGlobals: !0
}) && t.arguments.length === 1 && Tx.isStringLiteral(t.arguments[0]) : tJ(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;
gx(this), this.data = /* @__PURE__ */ Object.create(null);
let r = this;
do {
if (r.crawling) return;
if (r.path.isProgram())
break;
} while (r = r.parent);
let n = r, s = {
references: [],
constantViolations: [],
assignments: []
};
if (this.crawling = !0, to || (to = bx.default.visitors.merge([{
Scope(a) {
gx(a.scope);
}
}, TJ])), t.type !== "Program") {
for (let o of to.enter)
o.call(s, t, s);
let a = to[t.type];
if (a)
for (let o of a.enter)
o.call(s, t, s);
}
t.traverse(to, s), this.crawling = !1;
for (let a of s.assignments) {
let o = a.getAssignmentIdentifiers();
for (let l of Object.keys(o))
a.scope.getBinding(l) || n.addGlobal(o[l]);
a.scope.registerConstantViolation(a);
}
for (let a of s.references) {
let o = a.scope.getBinding(a.node.name);
o ? o.reference(a) : n.addGlobal(a.node);
}
for (let a of s.constantViolations)
a.scope.registerConstantViolation(a);
}
push(t) {
let r = this.path;
r.isPattern() ? r = this.getPatternParent().path : !r.isBlockStatement() && !r.isProgram() && (r = this.getBlockParent().path), r.isSwitchStatement() &&
(r = (this.getFunctionParent() || this.getProgramParent()).path);
let {
init: n,
unique: s,
kind: a = "var",
id: o
} = t;
if (!n && !s && (a === "var" || a === "let") && r.isFunction() && !r.node.name && dx(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 = !s && r.getData(u);
if (!c) {
let h = cJ(a, []);
h._blockHoist = l, [c] = r.unshiftContainer("body", [h]), s || r.setData(u, c);
}
let p = pJ(o, n), f = c.node.declarations.push(p);
r.scope.registerBinding(a, c.get("declarations")[f - 1]);
}
getProgramParent() {
let t = this;
do
if (t.path.isProgram())
return t;
while (t = t.parent);
throw new Error("Couldn't find a Program");
}
getFunctionParent() {
let t = this;
do
if (t.path.isFunctionParent())
return t;
while (t = t.parent);
return null;
}
getBlockParent() {
let t = this;
do
if (t.path.isBlockParent())
return t;
while (t = t.parent);
throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...");
}
getPatternParent() {
let t = this;
do
if (!t.path.isPattern())
return t.getBlockParent();
while (t = t.parent.parent);
throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...");
}
getAllBindings() {
let t = /* @__PURE__ */ Object.create(null), r = this;
do {
for (let n of Object.keys(r.bindings))
n in t || (t[n] = r.bindings[n]);
r = r.parent;
} while (r);
return t;
}
bindingIdentifierEquals(t, r) {
return this.getBindingIdentifier(t) === r;
}
getBinding(t) {
let r = this, n;
do {
let a = r.getOwnBinding(t);
if (a) {
var s;
if (!((s = n) != null && s.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, s, a;
typeof r == "object" ? (n = r.noGlobals, s = r.noUids, a = r.upToScope) : typeof r == "boolean" && (n = r);
let o = this;
do {
if (a === o)
break;
if (o.hasOwnBinding(t))
return !0;
} while (o = o.parent);
return !!(!s && this.hasUid(t) || !n && e.globals.includes(t) || !n && e.contextVariables.includes(t));
}
parentHasBinding(t, r) {
var n;
return (n = this.parent) == null ? void 0 : n.hasBinding(t, r);
}
moveBindingTo(t, r) {
let n = this.getBinding(t);
n && (n.scope.removeOwnBinding(t), n.scope = r, r.bindings[t] = n);
}
removeOwnBinding(t) {
delete this.bindings[t];
}
removeBinding(t) {
var r;
(r = this.getBinding(t)) == null || r.scope.removeOwnBinding(t);
let n = this;
do
n.uids[t] && (n.uids[t] = !1);
while (n = n.parent);
}
hoistVariables(t = (r) => this.push({
id: r
})) {
this.crawl();
let r = /* @__PURE__ */ new Set();
for (let n of Object.keys(this.bindings)) {
let s = this.bindings[n];
if (!s) continue;
let {
path: a
} = s;
if (!a.isVariableDeclarator()) continue;
let {
parent: o,
parentPath: l
} = a;
if (o.kind !== "var" || r.has(o)) continue;
r.add(a.parent);
let u, c = [];
for (let p of o.declarations) {
u ?? (u = p.id), p.init && c.push(UY("=", p.id, p.init));
let f = Object.keys(Sx(p, !1, !0, !0));
for (let h of f)
t(Gs(h), p.init != null);
}
if (l.parentPath.isFor({
left: o
}))
l.replaceWith(u);
else if (c.length === 0)
l.remove();
else {
let p = c.length === 1 ? c[0] : EJ(c);
l.parentPath.isForStatement({
init: o
}) ? l.replaceWith(p) : l.replaceWith(oJ(p));
}
}
}
};
iu.default = Gr;
Gr.globals = Object.keys(qY.builtin);
Gr.contextVariables = ["arguments", "undefined", "Infinity", "NaN"];
Gr.prototype._renameFromMap = /* @__PURE__ */ i(function(t, r, n, s) {
t[r] && (t[n] = s, t[r] = null);
}, "_renameFromMap"), Gr.prototype.traverse = function(e, t, r) {
(0, bx.default)(e, t, this, r, this.path);
}, Gr.prototype._generateUid = /* @__PURE__ */ i(function(t, r) {
let n = t;
return r > 1 && (n += r), `_${n}`;
}, "_generateUid"), Gr.prototype.toArray = /* @__PURE__ */ i(function(t, r, n) {
if (Ks(t)) {
let o = this.getBinding(t.name);
if (o != null && o.constant && o.path.isGenericType("Array"))
return t;
}
if (xx(t))
return t;
if (Ks(t, {
name: "arguments"
}))
return px(am(am(am(Gs("Array"), Gs("prototype")), Gs("slice")), Gs("call")), [t]);
let s, a = [t];
return r === !0 ? s = "toConsumableArray" : typeof r == "number" ? (a.push(lJ(r)), s = "slicedToArray") : s = "toArray", n && (a.unshift(
this.path.hub.addHelper(s)), s = "maybeArrayLike"), px(this.path.hub.addHelper(s), a);
}, "toArray"), Gr.prototype.getAllBindingsOfKind = /* @__PURE__ */ i(function(...t) {
let r = /* @__PURE__ */ Object.create(null);
for (let n of t) {
let s = this;
do {
for (let a of Object.keys(s.bindings)) {
let o = s.bindings[a];
o.kind === n && (r[a] = o);
}
s = s.parent;
} while (s);
}
return r;
}, "getAllBindingsOfKind"), Object.defineProperties(Gr.prototype, {
parentBlock: {
configurable: !0,
enumerable: !0,
get() {
return this.path.parent;
}
},
hub: {
configurable: !0,
enumerable: !0,
get() {
return this.path.hub;
}
}
});
});
// ../node_modules/@jridgewell/set-array/dist/set-array.umd.js
var Cx = P((au, Ax) => {
(function(e, t) {
typeof au == "object" && typeof Ax < "u" ? t(au) : typeof define == "function" && define.amd ? define(["exports"], t) : (e = typeof globalThis <
"u" ? globalThis : e || self, t(e.setArray = {}));
})(au, function(e) {
"use strict";
class t {
static {
i(this, "SetArray");
}
constructor() {
this._indexes = { __proto__: null }, this.array = [];
}
}
function r(l) {
return l;
}
i(r, "cast");
function n(l, u) {
return l._indexes[u];
}
i(n, "get");
function s(l, u) {
let c = n(l, u);
if (c !== void 0)
return c;
let { array: p, _indexes: f } = l, h = p.push(u);
return f[u] = h - 1;
}
i(s, "put");
function a(l) {
let { array: u, _indexes: c } = l;
if (u.length === 0)
return;
let p = u.pop();
c[p] = void 0;
}
i(a, "pop");
function o(l, u) {
let c = n(l, u);
if (c === void 0)
return;
let { array: p, _indexes: f } = l;
for (let h = c + 1; h < p.length; h++) {
let y = p[h];
p[h - 1] = y, f[y]--;
}
f[u] = void 0, p.pop();
}
i(o, "remove"), e.SetArray = t, e.get = n, e.pop = a, e.put = s, e.remove = o, Object.defineProperty(e, "__esModule", { value: !0 });
});
});
// ../node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js
var um = P((ou, Dx) => {
(function(e, t) {
typeof ou == "object" && typeof Dx < "u" ? t(ou) : typeof define == "function" && define.amd ? define(["exports"], t) : (e = typeof globalThis <
"u" ? globalThis : e || self, t(e.sourcemapCodec = {}));
})(ou, function(e) {
"use strict";
let n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = new Uint8Array(64), a = new Uint8Array(128);
for (let U = 0; U < n.length; U++) {
let K = n.charCodeAt(U);
s[U] = K, a[K] = U;
}
function o(U, K) {
let j = 0, Y = 0, Ee = 0;
do {
let ee = U.next();
Ee = a[ee], j |= (Ee & 31) << Y, Y += 5;
} while (Ee & 32);
let Pe = j & 1;
return j >>>= 1, Pe && (j = -2147483648 | -j), K + j;
}
i(o, "decodeInteger");
function l(U, K, j) {
let Y = K - j;
Y = Y < 0 ? -Y << 1 | 1 : Y << 1;
do {
let Ee = Y & 31;
Y >>>= 5, Y > 0 && (Ee |= 32), U.write(s[Ee]);
} while (Y > 0);
return K;
}
i(l, "encodeInteger");
function u(U, K) {
return U.pos >= K ? !1 : U.peek() !== 44;
}
i(u, "hasMoreVlq");
let c = 1024 * 16, p = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? {
decode(U) {
return Buffer.from(U.buffer, U.byteOffset, U.byteLength).toString();
}
} : {
decode(U) {
let K = "";
for (let j = 0; j < U.length; j++)
K += String.fromCharCode(U[j]);
return K;
}
};
class f {
static {
i(this, "StringWriter");
}
constructor() {
this.pos = 0, this.out = "", this.buffer = new Uint8Array(c);
}
write(K) {
let { buffer: j } = this;
j[this.pos++] = K, this.pos === c && (this.out += p.decode(j), this.pos = 0);
}
flush() {
let { buffer: K, out: j, pos: Y } = this;
return Y > 0 ? j + p.decode(K.subarray(0, Y)) : j;
}
}
class h {
static {
i(this, "StringReader");
}
constructor(K) {
this.pos = 0, this.buffer = K;
}
next() {
return this.buffer.charCodeAt(this.pos++);
}
peek() {
return this.buffer.charCodeAt(this.pos);
}
indexOf(K) {
let { buffer: j, pos: Y } = this, Ee = j.indexOf(K, Y);
return Ee === -1 ? j.length : Ee;
}
}
let y = [];
function E(U) {
let { length: K } = U, j = new h(U), Y = [], Ee = [], Pe = 0;
for (; j.pos < K; j.pos++) {
Pe = o(j, Pe);
let ee = o(j, 0);
if (!u(j, K)) {
let Ie = Ee.pop();
Ie[2] = Pe, Ie[3] = ee;
continue;
}
let Q = o(j, 0), ue = o(j, 0) & 1 ? [Pe, ee, 0, 0, Q, o(j, 0)] : [Pe, ee, 0, 0, Q], ve = y;
if (u(j, K)) {
ve = [];
do {
let Ie = o(j, 0);
ve.push(Ie);
} while (u(j, K));
}
ue.vars = ve, Y.push(ue), Ee.push(ue);
}
return Y;
}
i(E, "decodeOriginalScopes");
function d(U) {
let K = new f();
for (let j = 0; j < U.length; )
j = g(U, j, K, [0]);
return K.flush();
}
i(d, "encodeOriginalScopes");
function g(U, K, j, Y) {
let Ee = U[K], { 0: Pe, 1: ee, 2: Q, 3: se, 4: le, vars: ue } = Ee;
K > 0 && j.write(44), Y[0] = l(j, Pe, Y[0]), l(j, ee, 0), l(j, le, 0);
let ve = Ee.length === 6 ? 1 : 0;
l(j, ve, 0), Ee.length === 6 && l(j, Ee[5], 0);
for (let Ie of ue)
l(j, Ie, 0);
for (K++; K < U.length; ) {
let Ie = U[K], { 0: Te, 1: ye } = Ie;
if (Te > Q || Te === Q && ye >= se)
break;
K = g(U, K, j, Y);
}
return j.write(44), Y[0] = l(j, Q, Y[0]), l(j, se, 0), K;
}
i(g, "_encodeOriginalScopes");
function C(U) {
let { length: K } = U, j = new h(U), Y = [], Ee = [], Pe = 0, ee = 0, Q = 0, se = 0, le = 0, ue = 0, ve = 0, Ie = 0;
do {
let Te = j.indexOf(";"), ye = 0;
for (; j.pos < Te; j.pos++) {
if (ye = o(j, ye), !u(j, Te)) {
let bt = Ee.pop();
bt[2] = Pe, bt[3] = ye;
continue;
}
let ke = o(j, 0), pt = ke & 1, ot = ke & 2, wt = ke & 4, gr = null, Jt = y, kt;
if (pt) {
let bt = o(j, ee);
Q = o(j, ee === bt ? Q : 0), ee = bt, kt = [Pe, ye, 0, 0, bt, Q];
} else
kt = [Pe, ye, 0, 0];
if (kt.isScope = !!wt, ot) {
let bt = se, rr = le;
se = o(j, se);
let br = bt === se;
le = o(j, br ? le : 0), ue = o(j, br && rr === le ? ue : 0), gr = [se, le, ue];
}
if (kt.callsite = gr, u(j, Te)) {
Jt = [];
do {
ve = Pe, Ie = ye;
let bt = o(j, 0), rr;
if (bt < -1) {
rr = [[o(j, 0)]];
for (let br = -1; br > bt; br--) {
let gi = ve;
ve = o(j, ve), Ie = o(j, ve === gi ? Ie : 0);
let sn = o(j, 0);
rr.push([sn, ve, Ie]);
}
} else
rr = [[bt]];
Jt.push(rr);
} while (u(j, Te));
}
kt.bindings = Jt, Y.push(kt), Ee.push(kt);
}
Pe++, j.pos = Te + 1;
} while (j.pos < K);
return Y;
}
i(C, "decodeGeneratedRanges");
function _(U) {
if (U.length === 0)
return "";
let K = new f();
for (let j = 0; j < U.length; )
j = O(U, j, K, [0, 0, 0, 0, 0, 0, 0]);
return K.flush();
}
i(_, "encodeGeneratedRanges");
function O(U, K, j, Y) {
let Ee = U[K], { 0: Pe, 1: ee, 2: Q, 3: se, isScope: le, callsite: ue, bindings: ve } = Ee;
Y[0] < Pe ? (B(j, Y[0], Pe), Y[0] = Pe, Y[1] = 0) : K > 0 && j.write(44), Y[1] = l(j, Ee[1], Y[1]);
let Ie = (Ee.length === 6 ? 1 : 0) | (ue ? 2 : 0) | (le ? 4 : 0);
if (l(j, Ie, 0), Ee.length === 6) {
let { 4: Te, 5: ye } = Ee;
Te !== Y[2] && (Y[3] = 0), Y[2] = l(j, Te, Y[2]), Y[3] = l(j, ye, Y[3]);
}
if (ue) {
let { 0: Te, 1: ye, 2: ke } = Ee.callsite;
Te !== Y[4] ? (Y[5] = 0, Y[6] = 0) : ye !== Y[5] && (Y[6] = 0), Y[4] = l(j, Te, Y[4]), Y[5] = l(j, ye, Y[5]), Y[6] = l(j, ke, Y[6]);
}
if (ve)
for (let Te of ve) {
Te.length > 1 && l(j, -Te.length, 0);
let ye = Te[0][0];
l(j, ye, 0);
let ke = Pe, pt = ee;
for (let ot = 1; ot < Te.length; ot++) {
let wt = Te[ot];
ke = l(j, wt[1], ke), pt = l(j, wt[2], pt), l(j, wt[0], 0);
}
}
for (K++; K < U.length; ) {
let Te = U[K], { 0: ye, 1: ke } = Te;
if (ye > Q || ye === Q && ke >= se)
break;
K = O(U, K, j, Y);
}
return Y[0] < Q ? (B(j, Y[0], Q), Y[0] = Q, Y[1] = 0) : j.write(44), Y[1] = l(j, se, Y[1]), K;
}
i(O, "_encodeGeneratedRanges");
function B(U, K, j) {
do
U.write(59);
while (++K < j);
}
i(B, "catchupLine");
function R(U) {
let { length: K } = U, j = new h(U), Y = [], Ee = 0, Pe = 0, ee = 0, Q = 0, se = 0;
do {
let le = j.indexOf(";"), ue = [], ve = !0, Ie = 0;
for (Ee = 0; j.pos < le; ) {
let Te;
Ee = o(j, Ee), Ee < Ie && (ve = !1), Ie = Ee, u(j, le) ? (Pe = o(j, Pe), ee = o(j, ee), Q = o(j, Q), u(j, le) ? (se = o(j, se), Te =
[Ee, Pe, ee, Q, se]) : Te = [Ee, Pe, ee, Q]) : Te = [Ee], ue.push(Te), j.pos++;
}
ve || $(ue), Y.push(ue), j.pos = le + 1;
} while (j.pos <= K);
return Y;
}
i(R, "decode");
function $(U) {
U.sort(V);
}
i($, "sort");
function V(U, K) {
return U[0] - K[0];
}
i(V, "sortComparator");
function J(U) {
let K = new f(), j = 0, Y = 0, Ee = 0, Pe = 0;
for (let ee = 0; ee < U.length; ee++) {
let Q = U[ee];
if (ee > 0 && K.write(59), Q.length === 0)
continue;
let se = 0;
for (let le = 0; le < Q.length; le++) {
let ue = Q[le];
le > 0 && K.write(44), se = l(K, ue[0], se), ue.length !== 1 && (j = l(K, ue[1], j), Y = l(K, ue[2], Y), Ee = l(K, ue[3], Ee), ue.
length !== 4 && (Pe = l(K, ue[4], Pe)));
}
}
return K.flush();
}
i(J, "encode"), e.decode = R, e.decodeGeneratedRanges = C, e.decodeOriginalScopes = E, e.encode = J, e.encodeGeneratedRanges = _, e.encodeOriginalScopes =
d, Object.defineProperty(e, "__esModule", { value: !0 });
});
});
// ../node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js
var wx = P((cm, pm) => {
(function(e, t) {
typeof cm == "object" && typeof pm < "u" ? pm.exports = t() : typeof define == "function" && define.amd ? define(t) : (e = typeof globalThis <
"u" ? globalThis : e || self, e.resolveURI = t());
})(cm, function() {
"use strict";
let e = /^[\w+.-]+:\/\//, t = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/, r = /^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;
function n(g) {
return e.test(g);
}
i(n, "isAbsoluteUrl");
function s(g) {
return g.startsWith("//");
}
i(s, "isSchemeRelativeUrl");
function a(g) {
return g.startsWith("/");
}
i(a, "isAbsolutePath");
function o(g) {
return g.startsWith("file:");
}
i(o, "isFileUrl");
function l(g) {
return /^[.?#]/.test(g);
}
i(l, "isRelative");
function u(g) {
let C = t.exec(g);
return p(C[1], C[2] || "", C[3], C[4] || "", C[5] || "/", C[6] || "", C[7] || "");
}
i(u, "parseAbsoluteUrl");
function c(g) {
let C = r.exec(g), _ = C[2];
return p("file:", "", C[1] || "", "", a(_) ? _ : "/" + _, C[3] || "", C[4] || "");
}
i(c, "parseFileUrl");
function p(g, C, _, O, B, R, $) {
return {
scheme: g,
user: C,
host: _,
port: O,
path: B,
query: R,
hash: $,
type: 7
};
}
i(p, "makeUrl");
function f(g) {
if (s(g)) {
let _ = u("http:" + g);
return _.scheme = "", _.type = 6, _;
}
if (a(g)) {
let _ = u("http://foo.com" + g);
return _.scheme = "", _.host = "", _.type = 5, _;
}
if (o(g))
return c(g);
if (n(g))
return u(g);
let C = u("http://foo.com/" + g);
return C.scheme = "", C.host = "", C.type = g ? g.startsWith("?") ? 3 : g.startsWith("#") ? 2 : 4 : 1, C;
}
i(f, "parseUrl");
function h(g) {
if (g.endsWith("/.."))
return g;
let C = g.lastIndexOf("/");
return g.slice(0, C + 1);
}
i(h, "stripPathFilename");
function y(g, C) {
E(C, C.type), g.path === "/" ? g.path = C.path : g.path = h(C.path) + g.path;
}
i(y, "mergePaths");
function E(g, C) {
let _ = C <= 4, O = g.path.split("/"), B = 1, R = 0, $ = !1;
for (let J = 1; J < O.length; J++) {
let U = O[J];
if (!U) {
$ = !0;
continue;
}
if ($ = !1, U !== ".") {
if (U === "..") {
R ? ($ = !0, R--, B--) : _ && (O[B++] = U);
continue;
}
O[B++] = U, R++;
}
}
let V = "";
for (let J = 1; J < B; J++)
V += "/" + O[J];
(!V || $ && !V.endsWith("/..")) && (V += "/"), g.path = V;
}
i(E, "normalizePath");
function d(g, C) {
if (!g && !C)
return "";
let _ = f(g), O = _.type;
if (C && O !== 7) {
let R = f(C), $ = R.type;
switch (O) {
case 1:
_.hash = R.hash;
// fall through
case 2:
_.query = R.query;
// fall through
case 3:
case 4:
y(_, R);
// fall through
case 5:
_.user = R.user, _.host = R.host, _.port = R.port;
// fall through
case 6:
_.scheme = R.scheme;
}
$ > O && (O = $);
}
E(_, O);
let B = _.query + _.hash;
switch (O) {
// This is impossible, because of the empty checks at the start of the function.
// case UrlType.Empty:
case 2:
case 3:
return B;
case 4: {
let R = _.path.slice(1);
return R ? l(C || g) && !l(R) ? "./" + R + B : R + B : B || ".";
}
case 5:
return _.path + B;
default:
return _.scheme + "//" + _.user + _.host + _.port + _.path + B;
}
}
return i(d, "resolve"), d;
});
});
// ../node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js
var uu = P((lu, Ix) => {
(function(e, t) {
typeof lu == "object" && typeof Ix < "u" ? t(lu, um(), wx()) : 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));
})(lu, function(e, t, r) {
"use strict";
function n(M, W) {
return W && !W.endsWith("/") && (W += "/"), r(M, W);
}
i(n, "resolve");
function s(M) {
if (!M)
return "";
let W = M.lastIndexOf("/");
return M.slice(0, W + 1);
}
i(s, "stripFilename");
let a = 0, o = 1, l = 2, u = 3, c = 4, p = 1, f = 2;
function h(M, W) {
let z = y(M, 0);
if (z === M.length)
return M;
W || (M = M.slice());
for (let Z = z; Z < M.length; Z = y(M, Z + 1))
M[Z] = d(M[Z], W);
return M;
}
i(h, "maybeSort");
function y(M, W) {
for (let z = W; z < M.length; z++)
if (!E(M[z]))
return z;
return M.length;
}
i(y, "nextUnsortedSegmentLine");
function E(M) {
for (let W = 1; W < M.length; W++)
if (M[W][a] < M[W - 1][a])
return !1;
return !0;
}
i(E, "isSorted");
function d(M, W) {
return W || (M = M.slice()), M.sort(g);
}
i(d, "sortSegments");
function g(M, W) {
return M[a] - W[a];
}
i(g, "sortComparator");
let C = !1;
function _(M, W, z, Z) {
for (; z <= Z; ) {
let ge = z + (Z - z >> 1), pe = M[ge][a] - W;
if (pe === 0)
return C = !0, ge;
pe < 0 ? z = ge + 1 : Z = ge - 1;
}
return C = !1, z - 1;
}
i(_, "binarySearch");
function O(M, W, z) {
for (let Z = z + 1; Z < M.length && M[Z][a] === W; z = Z++)
;
return z;
}
i(O, "upperBound");
function B(M, W, z) {
for (let Z = z - 1; Z >= 0 && M[Z][a] === W; z = Z--)
;
return z;
}
i(B, "lowerBound");
function R() {
return {
lastKey: -1,
lastNeedle: -1,
lastIndex: -1
};
}
i(R, "memoizedState");
function $(M, W, z, Z) {
let { lastKey: ge, lastNeedle: pe, lastIndex: _e } = z, Xe = 0, Oe = M.length - 1;
if (Z === ge) {
if (W === pe)
return C = _e !== -1 && M[_e][a] === W, _e;
W >= pe ? Xe = _e === -1 ? 0 : _e : Oe = _e;
}
return z.lastKey = Z, z.lastNeedle = W, z.lastIndex = _(M, W, Xe, Oe);
}
i($, "memoizedBinarySearch");
function V(M, W) {
let z = W.map(U);
for (let Z = 0; Z < M.length; Z++) {
let ge = M[Z];
for (let pe = 0; pe < ge.length; pe++) {
let _e = ge[pe];
if (_e.length === 1)
continue;
let Xe = _e[o], Oe = _e[l], Fe = _e[u], ut = z[Xe], ze = ut[Oe] || (ut[Oe] = []), Qe = W[Xe], Nt = O(ze, Fe, $(ze, Fe, Qe, Oe));
Qe.lastIndex = ++Nt, J(ze, Nt, [Fe, Z, _e[a]]);
}
}
return z;
}
i(V, "buildBySources");
function J(M, W, z) {
for (let Z = M.length; Z > W; Z--)
M[Z] = M[Z - 1];
M[W] = z;
}
i(J, "insert");
function U() {
return { __proto__: null };
}
i(U, "buildNullArray");
let K = /* @__PURE__ */ i(function(M, W) {
let z = j(M);
if (!("sections" in z))
return new ve(z, W);
let Z = [], ge = [], pe = [], _e = [], Xe = [];
Y(z, W, Z, ge, pe, _e, Xe, 0, 0, 1 / 0, 1 / 0);
let Oe = {
version: 3,
file: z.file,
names: _e,
sources: ge,
sourcesContent: pe,
mappings: Z,
ignoreList: Xe
};
return rr(Oe);
}, "AnyMap");
function j(M) {
return typeof M == "string" ? JSON.parse(M) : M;
}
i(j, "parse");
function Y(M, W, z, Z, ge, pe, _e, Xe, Oe, Fe, ut) {
let { sections: ze } = M;
for (let Qe = 0; Qe < ze.length; Qe++) {
let { map: Nt, offset: Dr } = ze[Qe], Sn = Fe, xn = ut;
if (Qe + 1 < ze.length) {
let vn = ze[Qe + 1].offset;
Sn = Math.min(Fe, Xe + vn.line), Sn === Fe ? xn = Math.min(ut, Oe + vn.column) : Sn < Fe && (xn = Oe + vn.column);
}
Ee(Nt, W, z, Z, ge, pe, _e, Xe + Dr.line, Oe + Dr.column, Sn, xn);
}
}
i(Y, "recurse");
function Ee(M, W, z, Z, ge, pe, _e, Xe, Oe, Fe, ut) {
let ze = j(M);
if ("sections" in ze)
return Y(...arguments);
let Qe = new ve(ze, W), Nt = Z.length, Dr = pe.length, Sn = ye(Qe), { resolvedSources: xn, sourcesContent: vn, ignoreList: bi } = Qe;
if (Pe(Z, xn), Pe(pe, Qe.names), vn)
Pe(ge, vn);
else
for (let wr = 0; wr < xn.length; wr++)
ge.push(null);
if (bi)
for (let wr = 0; wr < bi.length; wr++)
_e.push(bi[wr] + Nt);
for (let wr = 0; wr < Sn.length; wr++) {
let $p = Xe + wr;
if ($p > Fe)
return;
let T1 = ee(z, $p), dO = wr === 0 ? Oe : 0, S1 = Sn[wr];
for (let Wp = 0; Wp < S1.length; Wp++) {
let _s = S1[Wp], al = dO + _s[a];
if ($p === Fe && al >= ut)
return;
if (_s.length === 1) {
T1.push([al]);
continue;
}
let x1 = Nt + _s[o], v1 = _s[l], P1 = _s[u];
T1.push(_s.length === 4 ? [al, x1, v1, P1] : [al, x1, v1, P1, Dr + _s[c]]);
}
}
}
i(Ee, "addSection");
function Pe(M, W) {
for (let z = 0; z < W.length; z++)
M.push(W[z]);
}
i(Pe, "append");
function ee(M, W) {
for (let z = M.length; z <= W; z++)
M[z] = [];
return M[W];
}
i(ee, "getLine");
let Q = "`line` must be greater than 0 (lines start at line 1)", se = "`column` must be greater than or equal to 0 (columns start at col\
umn 0)", le = -1, ue = 1;
class ve {
static {
i(this, "TraceMap");
}
constructor(W, z) {
let Z = typeof W == "string";
if (!Z && W._decodedMemo)
return W;
let ge = Z ? JSON.parse(W) : W, { version: pe, file: _e, names: Xe, sourceRoot: Oe, sources: Fe, sourcesContent: ut } = ge;
this.version = pe, this.file = _e, this.names = Xe || [], this.sourceRoot = Oe, this.sources = Fe, this.sourcesContent = ut, this.ignoreList =
ge.ignoreList || ge.x_google_ignoreList || void 0;
let ze = n(Oe || "", s(z));
this.resolvedSources = Fe.map((Nt) => n(Nt || "", ze));
let { mappings: Qe } = ge;
typeof Qe == "string" ? (this._encoded = Qe, this._decoded = void 0) : (this._encoded = void 0, this._decoded = h(Qe, Z)), this._decodedMemo =
R(), this._bySources = void 0, this._bySourceMemos = void 0;
}
}
function Ie(M) {
return M;
}
i(Ie, "cast");
function Te(M) {
var W, z;
return (W = (z = M)._encoded) !== null && W !== void 0 ? W : z._encoded = t.encode(M._decoded);
}
i(Te, "encodedMappings");
function ye(M) {
var W;
return (W = M)._decoded || (W._decoded = t.decode(M._encoded));
}
i(ye, "decodedMappings");
function ke(M, W, z) {
let Z = ye(M);
if (W >= Z.length)
return null;
let ge = Z[W], pe = Be(ge, M._decodedMemo, W, z, ue);
return pe === -1 ? null : ge[pe];
}
i(ke, "traceSegment");
function pt(M, W) {
let { line: z, column: Z, bias: ge } = W;
if (z--, z < 0)
throw new Error(Q);
if (Z < 0)
throw new Error(se);
let pe = ye(M);
if (z >= pe.length)
return ae(null, null, null, null);
let _e = pe[z], Xe = Be(_e, M._decodedMemo, z, Z, ge || ue);
if (Xe === -1)
return ae(null, null, null, null);
let Oe = _e[Xe];
if (Oe.length === 1)
return ae(null, null, null, null);
let { names: Fe, resolvedSources: ut } = M;
return ae(ut[Oe[o]], Oe[l] + 1, Oe[u], Oe.length === 5 ? Fe[Oe[c]] : null);
}
i(pt, "originalPositionFor");
function ot(M, W) {
let { source: z, line: Z, column: ge, bias: pe } = W;
return Et(M, z, Z, ge, pe || ue, !1);
}
i(ot, "generatedPositionFor");
function wt(M, W) {
let { source: z, line: Z, column: ge, bias: pe } = W;
return Et(M, z, Z, ge, pe || le, !0);
}
i(wt, "allGeneratedPositionsFor");
function gr(M, W) {
let z = ye(M), { names: Z, resolvedSources: ge } = M;
for (let pe = 0; pe < z.length; pe++) {
let _e = z[pe];
for (let Xe = 0; Xe < _e.length; Xe++) {
let Oe = _e[Xe], Fe = pe + 1, ut = Oe[0], ze = null, Qe = null, Nt = null, Dr = null;
Oe.length !== 1 && (ze = ge[Oe[1]], Qe = Oe[2] + 1, Nt = Oe[3]), Oe.length === 5 && (Dr = Z[Oe[4]]), W({
generatedLine: Fe,
generatedColumn: ut,
source: ze,
originalLine: Qe,
originalColumn: Nt,
name: Dr
});
}
}
}
i(gr, "eachMapping");
function Jt(M, W) {
let { sources: z, resolvedSources: Z } = M, ge = z.indexOf(W);
return ge === -1 && (ge = Z.indexOf(W)), ge;
}
i(Jt, "sourceIndex");
function kt(M, W) {
let { sourcesContent: z } = M;
if (z == null)
return null;
let Z = Jt(M, W);
return Z === -1 ? null : z[Z];
}
i(kt, "sourceContentFor");
function bt(M, W) {
let { ignoreList: z } = M;
if (z == null)
return !1;
let Z = Jt(M, W);
return Z === -1 ? !1 : z.includes(Z);
}
i(bt, "isIgnored");
function rr(M, W) {
let z = new ve(sn(M, []), W);
return z._decoded = M.mappings, z;
}
i(rr, "presortedDecodedMap");
function br(M) {
return sn(M, ye(M));
}
i(br, "decodedMap");
function gi(M) {
return sn(M, Te(M));
}
i(gi, "encodedMap");
function sn(M, W) {
return {
version: M.version,
file: M.file,
names: M.names,
sourceRoot: M.sourceRoot,
sources: M.sources,
sourcesContent: M.sourcesContent,
mappings: W,
ignoreList: M.ignoreList || M.x_google_ignoreList
};
}
i(sn, "clone");
function ae(M, W, z, Z) {
return { source: M, line: W, column: z, name: Z };
}
i(ae, "OMapping");
function te(M, W) {
return { line: M, column: W };
}
i(te, "GMapping");
function Be(M, W, z, Z, ge) {
let pe = $(M, Z, W, z);
return C ? pe = (ge === le ? O : B)(M, Z, pe) : ge === le && pe++, pe === -1 || pe === M.length ? -1 : pe;
}
i(Be, "traceSegmentInternal");
function at(M, W, z, Z, ge) {
let pe = Be(M, W, z, Z, ue);
if (!C && ge === le && pe++, pe === -1 || pe === M.length)
return [];
let _e = C ? Z : M[pe][a];
C || (pe = B(M, _e, pe));
let Xe = O(M, _e, pe), Oe = [];
for (; pe <= Xe; pe++) {
let Fe = M[pe];
Oe.push(te(Fe[p] + 1, Fe[f]));
}
return Oe;
}
i(at, "sliceGeneratedPositions");
function Et(M, W, z, Z, ge, pe) {
var _e;
if (z--, z < 0)
throw new Error(Q);
if (Z < 0)
throw new Error(se);
let { sources: Xe, resolvedSources: Oe } = M, Fe = Xe.indexOf(W);
if (Fe === -1 && (Fe = Oe.indexOf(W)), Fe === -1)
return pe ? [] : te(null, null);
let ze = ((_e = M)._bySources || (_e._bySources = V(ye(M), M._bySourceMemos = Xe.map(R))))[Fe][z];
if (ze == null)
return pe ? [] : te(null, null);
let Qe = M._bySourceMemos[Fe];
if (pe)
return at(ze, Qe, z, Z, ge);
let Nt = Be(ze, Qe, z, Z, ge);
if (Nt === -1)
return te(null, null);
let Dr = ze[Nt];
return te(Dr[p] + 1, Dr[f]);
}
i(Et, "generatedPosition"), e.AnyMap = K, e.GREATEST_LOWER_BOUND = ue, e.LEAST_UPPER_BOUND = le, e.TraceMap = ve, e.allGeneratedPositionsFor =
wt, e.decodedMap = br, e.decodedMappings = ye, e.eachMapping = gr, e.encodedMap = gi, e.encodedMappings = Te, e.generatedPositionFor = ot,
e.isIgnored = bt, e.originalPositionFor = pt, e.presortedDecodedMap = rr, e.sourceContentFor = kt, e.traceSegment = ke;
});
});
// ../node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js
var fm = P((cu, _x) => {
(function(e, t) {
typeof cu == "object" && typeof _x < "u" ? t(cu, Cx(), um(), uu()) : 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));
})(cu, function(e, t, r, n) {
"use strict";
class p {
static {
i(this, "GenMapping");
}
constructor({ file: Q, sourceRoot: se } = {}) {
this._names = new t.SetArray(), this._sources = new t.SetArray(), this._sourcesContent = [], this._mappings = [], this.file = Q, this.
sourceRoot = se, this._ignoreList = new t.SetArray();
}
}
function f(ee) {
return ee;
}
i(f, "cast");
function h(ee, Q, se, le, ue, ve, Ie, Te) {
return $(!1, ee, Q, se, le, ue, ve, Ie, Te);
}
i(h, "addSegment");
function y(ee, Q) {
return Pe(!1, ee, Q);
}
i(y, "addMapping");
let E = /* @__PURE__ */ i((ee, Q, se, le, ue, ve, Ie, Te) => $(!0, ee, Q, se, le, ue, ve, Ie, Te), "maybeAddSegment"), d = /* @__PURE__ */ i(
(ee, Q) => Pe(!0, ee, Q), "maybeAddMapping");
function g(ee, Q, se) {
let { _sources: le, _sourcesContent: ue } = ee, ve = t.put(le, Q);
ue[ve] = se;
}
i(g, "setSourceContent");
function C(ee, Q, se = !0) {
let { _sources: le, _sourcesContent: ue, _ignoreList: ve } = ee, Ie = t.put(le, Q);
Ie === ue.length && (ue[Ie] = null), se ? t.put(ve, Ie) : t.remove(ve, Ie);
}
i(C, "setIgnore");
function _(ee) {
let { _mappings: Q, _sources: se, _sourcesContent: le, _names: ue, _ignoreList: ve } = ee;
return K(Q), {
version: 3,
file: ee.file || void 0,
names: ue.array,
sourceRoot: ee.sourceRoot || void 0,
sources: se.array,
sourcesContent: le,
mappings: Q,
ignoreList: ve.array
};
}
i(_, "toDecodedMap");
function O(ee) {
let Q = _(ee);
return Object.assign(Object.assign({}, Q), { mappings: r.encode(Q.mappings) });
}
i(O, "toEncodedMap");
function B(ee) {
let Q = new n.TraceMap(ee), se = new p({ file: Q.file, sourceRoot: Q.sourceRoot });
return j(se._names, Q.names), j(se._sources, Q.sources), se._sourcesContent = Q.sourcesContent || Q.sources.map(() => null), se._mappings =
n.decodedMappings(Q), Q.ignoreList && j(se._ignoreList, Q.ignoreList), se;
}
i(B, "fromMap");
function R(ee) {
let Q = [], { _mappings: se, _sources: le, _names: ue } = ee;
for (let ve = 0; ve < se.length; ve++) {
let Ie = se[ve];
for (let Te = 0; Te < Ie.length; Te++) {
let ye = Ie[Te], ke = { line: ve + 1, column: ye[0] }, pt, ot, wt;
ye.length !== 1 && (pt = le.array[ye[1]], ot = { line: ye[2] + 1, column: ye[3] }, ye.length === 5 && (wt = ue.array[ye[4]])), Q.push(
{ generated: ke, source: pt, original: ot, name: wt });
}
}
return Q;
}
i(R, "allMappings");
function $(ee, Q, se, le, ue, ve, Ie, Te, ye) {
let { _mappings: ke, _sources: pt, _sourcesContent: ot, _names: wt } = Q, gr = V(ke, se), Jt = J(gr, le);
if (!ue)
return ee && Y(gr, Jt) ? void 0 : U(gr, Jt, [le]);
let kt = t.put(pt, ue), bt = Te ? t.put(wt, Te) : -1;
if (kt === ot.length && (ot[kt] = ye ?? null), !(ee && Ee(gr, Jt, kt, ve, Ie, bt)))
return U(gr, Jt, Te ? [le, kt, ve, Ie, bt] : [le, kt, ve, Ie]);
}
i($, "addSegmentInternal");
function V(ee, Q) {
for (let se = ee.length; se <= Q; se++)
ee[se] = [];
return ee[Q];
}
i(V, "getLine");
function J(ee, Q) {
let se = ee.length;
for (let le = se - 1; le >= 0; se = le--) {
let ue = ee[le];
if (Q >= ue[0])
break;
}
return se;
}
i(J, "getColumnIndex");
function U(ee, Q, se) {
for (let le = ee.length; le > Q; le--)
ee[le] = ee[le - 1];
ee[Q] = se;
}
i(U, "insert");
function K(ee) {
let { length: Q } = ee, se = Q;
for (let le = se - 1; le >= 0 && !(ee[le].length > 0); se = le, le--)
;
se < Q && (ee.length = se);
}
i(K, "removeEmptyFinalLines");
function j(ee, Q) {
for (let se = 0; se < Q.length; se++)
t.put(ee, Q[se]);
}
i(j, "putAll");
function Y(ee, Q) {
return Q === 0 ? !0 : ee[Q - 1].length === 1;
}
i(Y, "skipSourceless");
function Ee(ee, Q, se, le, ue, ve) {
if (Q === 0)
return !1;
let Ie = ee[Q - 1];
return Ie.length === 1 ? !1 : se === Ie[1] && le === Ie[2] && ue === Ie[3] && ve === (Ie.length === 5 ? Ie[4] : -1);
}
i(Ee, "skipSource");
function Pe(ee, Q, se) {
let { generated: le, source: ue, original: ve, name: Ie, content: Te } = se;
return ue ? $(ee, Q, le.line - 1, le.column, ue, ve.line - 1, ve.column, Ie, Te) : $(ee, Q, le.line - 1, le.column, null, null, null, null,
null);
}
i(Pe, "addMappingInternal"), e.GenMapping = p, e.addMapping = y, e.addSegment = h, e.allMappings = R, e.fromMap = B, e.maybeAddMapping =
d, e.maybeAddSegment = E, e.setIgnore = C, e.setSourceContent = g, e.toDecodedMap = _, e.toEncodedMap = O, Object.defineProperty(e, "__e\
sModule", { value: !0 });
});
});
// ../node_modules/@babel/generator/lib/source-map.js
var Ox = P((pu) => {
"use strict";
Object.defineProperty(pu, "__esModule", {
value: !0
});
pu.default = void 0;
var as = fm(), dm = uu(), hm = class {
static {
i(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 s = this._map = new as.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 dm.TraceMap(t.inputSourceMap);
let o = this._inputMap.resolvedSources;
if (o.length)
for (let l = 0; l < o.length; l++) {
var a;
(0, as.setSourceContent)(s, o[l], (a = this._inputMap.sourcesContent) == null ? void 0 : a[l]);
}
}
if (typeof r == "string" && !t.inputSourceMap)
(0, as.setSourceContent)(s, this._sourceFileName, r);
else if (typeof r == "object")
for (let o of Object.keys(r))
(0, as.setSourceContent)(s, o.replace(/\\/g, "/"), r[o]);
}
get() {
return (0, as.toEncodedMap)(this._map);
}
getDecoded() {
return (0, as.toDecodedMap)(this._map);
}
getRawMappings() {
return this._rawMappings || (this._rawMappings = (0, as.allMappings)(this._map));
}
mark(t, r, n, s, a, o) {
var l;
this._rawMappings = void 0;
let u;
if (r != null)
if (this._inputMap) {
if (u = (0, dm.originalPositionFor)(this._inputMap, {
line: r,
column: n
}), !u.name && a) {
let c = (0, dm.originalPositionFor)(this._inputMap, a);
c.name && (s = c.name);
}
} else
u = {
source: o?.replace(/\\/g, "/") || this._sourceFileName,
line: r,
column: n
};
(0, as.maybeAddMapping)(this._map, {
name: s,
generated: t,
source: (l = u) == null ? void 0 : l.source,
original: u
});
}
};
pu.default = hm;
});
// ../node_modules/@babel/generator/lib/buffer.js
var Nx = P((fu) => {
"use strict";
Object.defineProperty(fu, "__esModule", {
value: !0
});
fu.default = void 0;
var mm = class {
static {
i(this, "Buffer");
}
constructor(t, r) {
this._map = null, this._buf = "", this._str = "", this._appendCount = 0, this._last = 0, this._queue = [], this._queueCursor = 0, this.
_canMarkIdName = !0, this._indentChar = "", this._fastIndentations = [], this._position = {
line: 1,
column: 0
}, this._sourcePosition = {
identifierName: void 0,
identifierNamePos: void 0,
line: void 0,
column: void 0,
filename: void 0
}, this._map = t, this._indentChar = r;
for (let n = 0; n < 64; n++)
this._fastIndentations.push(r.repeat(n));
this._allocQueue();
}
_allocQueue() {
let t = this._queue;
for (let r = 0; r < 16; r++)
t.push({
char: 0,
repeat: 1,
line: void 0,
column: void 0,
identifierName: void 0,
identifierNamePos: void 0,
filename: ""
});
}
_pushQueue(t, r, n, s, 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 = s, 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 s = r[n];
this._appendChar(s.char, s.repeat, s);
}
this._queueCursor = 0;
}
_appendChar(t, r, n) {
if (this._last = t, t === -1) {
let s = this._fastIndentations[r];
s !== void 0 ? this._str += s : 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 s = t.length, a = this._position;
if (this._last = t.charCodeAt(s - 1), ++this._appendCount > 4096 ? (+this._str, this._buf += this._str, this._str = t, this._appendCount =
0) : this._str += t, !n && !this._map) {
a.column += s;
return;
}
let {
column: o,
identifierName: l,
identifierNamePos: u,
filename: c
} = r, p = r.line;
(l != null || u != null) && this._canMarkIdName && (r.identifierName = void 0, r.identifierNamePos = void 0);
let f = t.indexOf(`
`), h = 0;
for (f !== 0 && this._mark(p, o, l, u, c); f !== -1; )
a.line++, a.column = 0, h = f + 1, h < s && p !== void 0 && this._mark(++p, 0, null, null, c), f = t.indexOf(`
`, h);
a.column += s - h;
}
_mark(t, r, n, s, a) {
var o;
(o = this._map) == null || o.mark(this._position, t, r, n, s, 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, s = this._sourcePosition;
n && (this._canMarkIdName = !1, s.identifierName = n), r(), n && (this._canMarkIdName = !0, s.identifierName = void 0, s.identifierNamePos =
void 0), this.source("end", t);
}
source(t, r) {
this._map && this._normalizePosition(t, r, 0);
}
sourceWithOffset(t, r, n) {
this._map && this._normalizePosition(t, r, n);
}
_normalizePosition(t, r, n) {
let s = r[t], a = this._sourcePosition;
s && (a.line = s.line, a.column = Math.max(s.column + n, 0), a.filename = r.filename);
}
getCurrentColumn() {
let t = this._queue, r = this._queueCursor, n = -1, s = 0;
for (let a = 0; a < r; a++) {
let o = t[a];
o.char === 10 && (n = s), s += o.repeat;
}
return n === -1 ? this._position.column + s : s - 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;
}
};
fu.default = mm;
});
// ../node_modules/@babel/generator/lib/node/whitespace.js
var Lx = P((hu) => {
"use strict";
Object.defineProperty(hu, "__esModule", {
value: !0
});
hu.nodes = void 0;
var xJ = De(), {
FLIPPED_ALIAS_KEYS: vJ,
isArrayExpression: PJ,
isAssignmentExpression: kx,
isBinary: Fx,
isBlockStatement: AJ,
isCallExpression: jx,
isFunction: ro,
isIdentifier: du,
isLiteral: CJ,
isMemberExpression: ym,
isObjectExpression: DJ,
isOptionalCallExpression: wJ,
isOptionalMemberExpression: IJ,
isStringLiteral: _J
} = xJ;
function Li(e, t) {
return e && (ym(e) || IJ(e) ? (Li(e.object, t), e.computed && Li(e.property, t)) : Fx(e) || kx(e) ? (Li(e.left, t), Li(e.right, t)) : jx(
e) || wJ(e) ? (t.hasCall = !0, Li(e.callee, t)) : ro(e) ? t.hasFunction = !0 : du(e) && (t.hasHelper = t.hasHelper || e.callee && _n(e.callee))),
t;
}
i(Li, "crawlInternal");
function Bx(e) {
return Li(e, {
hasCall: !1,
hasFunction: !1,
hasHelper: !1
});
}
i(Bx, "crawl");
function _n(e) {
return e ? ym(e) ? _n(e.object) || _n(e.property) : du(e) ? e.name === "require" || e.name.charCodeAt(0) === 95 : jx(e) ? _n(e.callee) :
Fx(e) || kx(e) ? du(e.left) && _n(e.left) || _n(e.right) : !1 : !1;
}
i(_n, "isHelper");
function OJ(e) {
return CJ(e) || DJ(e) || PJ(e) || du(e) || ym(e);
}
i(OJ, "isType");
var Hs = hu.nodes = {
AssignmentExpression(e) {
let t = Bx(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 (ro(e.left) || ro(e.right))
return 2;
},
Literal(e) {
if (_J(e) && e.value === "use strict")
return 2;
},
CallExpression(e) {
if (ro(e.callee) || _n(e))
return 3;
},
OptionalCallExpression(e) {
if (ro(e.callee))
return 3;
},
VariableDeclaration(e) {
for (let t = 0; t < e.declarations.length; t++) {
let r = e.declarations[t], n = _n(r.id) && !OJ(r.init);
if (!n && r.init) {
let s = Bx(r.init);
n = _n(r.init) && s.hasCall || s.hasFunction;
}
if (n)
return 3;
}
},
IfStatement(e) {
if (AJ(e.consequent))
return 3;
}
};
Hs.ObjectProperty = Hs.ObjectTypeProperty = Hs.ObjectMethod = function(e, t) {
if (t.properties[0] === e)
return 1;
};
Hs.ObjectTypeCallProperty = function(e, t) {
var r;
if (t.callProperties[0] === e && !((r = t.properties) != null && r.length))
return 1;
};
Hs.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;
};
Hs.ObjectTypeInternalSlot = function(e, t) {
var r, n, s;
if (t.internalSlots[0] === e && !((r = t.properties) != null && r.length) && !((n = t.callProperties) != null && n.length) && !((s = t.indexers) !=
null && s.length))
return 1;
};
[["Function", !0], ["Class", !0], ["Loop", !0], ["LabeledStatement", !0], ["SwitchStatement", !0], ["TryStatement", !0]].forEach(function([
e, t]) {
[e].concat(vJ[e] || []).forEach(function(r) {
let n = t ? 3 : 0;
Hs[r] = () => n;
});
});
});
// ../node_modules/@babel/generator/lib/node/parentheses.js
var Kx = P(($e) => {
"use strict";
Object.defineProperty($e, "__esModule", {
value: !0
});
$e.AssignmentExpression = uX;
$e.Binary = Vx;
$e.BinaryExpression = nX;
$e.ClassExpression = aX;
$e.ArrowFunctionExpression = $e.ConditionalExpression = Wx;
$e.DoExpression = GJ;
$e.FunctionExpression = oX;
$e.FunctionTypeAnnotation = $J;
$e.Identifier = pX;
$e.LogicalExpression = cX;
$e.NullableTypeAnnotation = VJ;
$e.ObjectExpression = KJ;
$e.OptionalIndexedAccessType = YJ;
$e.OptionalCallExpression = $e.OptionalMemberExpression = lX;
$e.SequenceExpression = sX;
$e.TSSatisfiesExpression = $e.TSAsExpression = JJ;
$e.TSConditionalType = XJ;
$e.TSConstructorType = $e.TSFunctionType = rX;
$e.TSInferType = ZJ;
$e.TSInstantiationExpression = tX;
$e.TSIntersectionType = QJ;
$e.UnaryLike = $e.TSTypeAssertion = $x;
$e.TSTypeOperator = eX;
$e.TSUnionType = zJ;
$e.IntersectionTypeAnnotation = $e.UnionTypeAnnotation = HJ;
$e.UpdateExpression = WJ;
$e.AwaitExpression = $e.YieldExpression = iX;
var NJ = De(), Br = os(), {
isArrayTypeAnnotation: BJ,
isBinaryExpression: kJ,
isCallExpression: FJ,
isForOfStatement: jJ,
isIndexedAccessType: LJ,
isMemberExpression: qx,
isObjectPattern: MJ,
isOptionalMemberExpression: RJ,
isYieldExpression: qJ,
isStatement: UJ
} = NJ, Mx = /* @__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 Rx(e, t) {
if (t === "BinaryExpression" || t === "LogicalExpression")
return Mx.get(e.operator);
if (t === "TSAsExpression" || t === "TSSatisfiesExpression")
return Mx.get("in");
}
i(Rx, "getBinaryPrecedence");
function gm(e) {
return e === "TSAsExpression" || e === "TSSatisfiesExpression" || e === "TSTypeAssertion";
}
i(gm, "isTSTypeExpression");
var mu = /* @__PURE__ */ i((e, t) => {
let r = t.type;
return (r === "ClassDeclaration" || r === "ClassExpression") && t.superClass === e;
}, "isClassExtendsClause"), yu = /* @__PURE__ */ i((e, t) => {
let r = t.type;
return (r === "MemberExpression" || r === "OptionalMemberExpression") && t.object === e || (r === "CallExpression" || r === "OptionalCal\
lExpression" || r === "NewExpression") && t.callee === e || r === "TaggedTemplateExpression" && t.tag === e || r === "TSNonNullExpression";
}, "hasPostfixPart");
function VJ(e, t) {
return BJ(t);
}
i(VJ, "NullableTypeAnnotation");
function $J(e, t, r) {
let n = t.type;
return n === "UnionTypeAnnotation" || n === "IntersectionTypeAnnotation" || n === "ArrayTypeAnnotation" || !!(r & Br.TokenContext.arrowFlowReturnType);
}
i($J, "FunctionTypeAnnotation");
function WJ(e, t) {
return yu(e, t) || mu(e, t);
}
i(WJ, "UpdateExpression");
function Ux(e) {
return !!(e & (Br.TokenContext.expressionStatement | Br.TokenContext.arrowBody));
}
i(Ux, "needsParenBeforeExpressionBrace");
function KJ(e, t, r) {
return Ux(r);
}
i(KJ, "ObjectExpression");
function GJ(e, t, r) {
return !e.async && !!(r & Br.TokenContext.expressionStatement);
}
i(GJ, "DoExpression");
function Vx(e, t) {
let r = t.type;
if (e.type === "BinaryExpression" && e.operator === "**" && r === "BinaryExpression" && t.operator === "**")
return t.left === e;
if (mu(e, t) || yu(e, t) || r === "UnaryExpression" || r === "SpreadElement" || r === "AwaitExpression")
return !0;
let n = Rx(t, r);
if (n != null) {
let s = Rx(e, e.type);
if (n === s && r === "BinaryExpression" && t.right === e || n > s)
return !0;
}
}
i(Vx, "Binary");
function HJ(e, t) {
let r = t.type;
return r === "ArrayTypeAnnotation" || r === "NullableTypeAnnotation" || r === "IntersectionTypeAnnotation" || r === "UnionTypeAnnotation";
}
i(HJ, "UnionTypeAnnotation");
function YJ(e, t) {
return LJ(t) && t.objectType === e;
}
i(YJ, "OptionalIndexedAccessType");
function JJ(e, t) {
return (t.type === "AssignmentExpression" || t.type === "AssignmentPattern") && t.left === e || t.type === "BinaryExpression" && (t.operator ===
"|" || t.operator === "&") && e === t.left ? !0 : Vx(e, t);
}
i(JJ, "TSAsExpression");
function XJ(e, t) {
let r = t.type;
return r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType" || r === "TSTypeOperator" || r ===
"TSTypeParameter" || (r === "TSIntersectionType" || r === "TSUnionType") && t.types[0] === e || r === "TSConditionalType" && (t.checkType ===
e || t.extendsType === e);
}
i(XJ, "TSConditionalType");
function zJ(e, t) {
let r = t.type;
return r === "TSIntersectionType" || r === "TSTypeOperator" || r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e ||
r === "TSOptionalType";
}
i(zJ, "TSUnionType");
function QJ(e, t) {
let r = t.type;
return r === "TSTypeOperator" || r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType";
}
i(QJ, "TSIntersectionType");
function ZJ(e, t) {
let r = t.type;
return !!(r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType" || e.typeParameter.constraint &&
(r === "TSIntersectionType" || r === "TSUnionType") && t.types[0] === e);
}
i(ZJ, "TSInferType");
function eX(e, t) {
let r = t.type;
return r === "TSArrayType" || r === "TSIndexedAccessType" && t.objectType === e || r === "TSOptionalType";
}
i(eX, "TSTypeOperator");
function tX(e, t) {
let r = t.type;
return (r === "CallExpression" || r === "OptionalCallExpression" || r === "NewExpression" || r === "TSInstantiationExpression") && !!t.typeParameters;
}
i(tX, "TSInstantiationExpression");
function rX(e, t) {
let r = t.type;
return r === "TSIntersectionType" || r === "TSUnionType" || r === "TSTypeOperator" || r === "TSOptionalType" || r === "TSArrayType" || r ===
"TSIndexedAccessType" && t.objectType === e || r === "TSConditionalType" && (t.checkType === e || t.extendsType === e);
}
i(rX, "TSFunctionType");
function nX(e, t, r, n) {
return e.operator === "in" && n;
}
i(nX, "BinaryExpression");
function sX(e, t) {
let r = t.type;
return r === "SequenceExpression" || r === "ParenthesizedExpression" || r === "MemberExpression" && t.property === e || r === "OptionalM\
emberExpression" && t.property === e || r === "TemplateLiteral" ? !1 : r === "ClassDeclaration" ? !0 : r === "ForOfStatement" ? t.right === e :
r === "ExportDefaultDeclaration" ? !0 : !UJ(t);
}
i(sX, "SequenceExpression");
function iX(e, t) {
let r = t.type;
return r === "BinaryExpression" || r === "LogicalExpression" || r === "UnaryExpression" || r === "SpreadElement" || yu(e, t) || r === "A\
waitExpression" && qJ(e) || r === "ConditionalExpression" && e === t.test || mu(e, t) || gm(r);
}
i(iX, "YieldExpression");
function aX(e, t, r) {
return !!(r & (Br.TokenContext.expressionStatement | Br.TokenContext.exportDefault));
}
i(aX, "ClassExpression");
function $x(e, t) {
return yu(e, t) || kJ(t) && t.operator === "**" && t.left === e || mu(e, t);
}
i($x, "UnaryLike");
function oX(e, t, r) {
return !!(r & (Br.TokenContext.expressionStatement | Br.TokenContext.exportDefault));
}
i(oX, "FunctionExpression");
function Wx(e, t) {
let r = t.type;
return r === "UnaryExpression" || r === "SpreadElement" || r === "BinaryExpression" || r === "LogicalExpression" || r === "ConditionalEx\
pression" && t.test === e || r === "AwaitExpression" || gm(r) ? !0 : $x(e, t);
}
i(Wx, "ConditionalExpression");
function lX(e, t) {
return FJ(t) && t.callee === e || qx(t) && t.object === e;
}
i(lX, "OptionalMemberExpression");
function uX(e, t, r) {
return Ux(r) && MJ(e.left) ? !0 : Wx(e, t);
}
i(uX, "AssignmentExpression");
function cX(e, t) {
let r = t.type;
if (gm(r)) return !0;
if (r !== "LogicalExpression") return !1;
switch (e.operator) {
case "||":
return t.operator === "??" || t.operator === "&&";
case "&&":
return t.operator === "??";
case "??":
return t.operator !== "??";
}
}
i(cX, "LogicalExpression");
function pX(e, t, r, n, s) {
var a;
let o = t.type;
if ((a = e.extra) != null && a.parenthesized && o === "AssignmentExpression" && t.left === e) {
let l = t.right.type;
if ((l === "FunctionExpression" || l === "ClassExpression") && t.right.id == null)
return !0;
}
return s && s(e) !== e.name ? !1 : e.name === "let" ? (qx(t, {
object: e,
computed: !0
}) || RJ(t, {
object: e,
computed: !0,
optional: !1
})) && r & (Br.TokenContext.expressionStatement | Br.TokenContext.forHead | Br.TokenContext.forInHead) ? !0 : !!(r & Br.TokenContext.forOfHead) :
e.name === "async" && jJ(t, {
left: e,
await: !1
});
}
i(pX, "Identifier");
});
// ../node_modules/@babel/generator/lib/node/index.js
var os = P((On) => {
"use strict";
Object.defineProperty(On, "__esModule", {
value: !0
});
On.TokenContext = void 0;
On.isLastChild = DX;
On.needsParens = CX;
On.needsWhitespace = Em;
On.needsWhitespaceAfter = AX;
On.needsWhitespaceBefore = PX;
var fX = Lx(), dX = Kx(), hX = De(), {
FLIPPED_ALIAS_KEYS: mX,
VISITOR_KEYS: yX,
isCallExpression: Gx,
isDecorator: gX,
isExpressionStatement: bX,
isMemberExpression: EX,
isNewExpression: TX,
isParenthesizedExpression: SX
} = hX, Eve = On.TokenContext = {
expressionStatement: 1,
arrowBody: 2,
exportDefault: 4,
forHead: 8,
forInHead: 16,
forOfHead: 32,
arrowFlowReturnType: 64
};
function Hx(e) {
let t = /* @__PURE__ */ new Map();
function r(n, s) {
let a = t.get(n);
t.set(n, a ? function(o, l, u, c, p) {
var f;
return (f = a(o, l, u, c, p)) != null ? f : s(o, l, u, c, p);
} : s);
}
i(r, "add");
for (let n of Object.keys(e)) {
let s = mX[n];
if (s)
for (let a of s)
r(a, e[n]);
else
r(n, e[n]);
}
return t;
}
i(Hx, "expandAliases");
var xX = Hx(dX), vX = Hx(fX.nodes);
function Yx(e) {
return Gx(e) ? !0 : EX(e) && Yx(e.object);
}
i(Yx, "isOrHasCallExpression");
function Em(e, t, r) {
var n;
if (!e) return !1;
bX(e) && (e = e.expression);
let s = (n = vX.get(e.type)) == null ? void 0 : n(e, t);
return typeof s == "number" ? (s & r) !== 0 : !1;
}
i(Em, "needsWhitespace");
function PX(e, t) {
return Em(e, t, 1);
}
i(PX, "needsWhitespaceBefore");
function AX(e, t) {
return Em(e, t, 2);
}
i(AX, "needsWhitespaceAfter");
function CX(e, t, r, n, s) {
var a;
return t ? TX(t) && t.callee === e && Yx(e) ? !0 : gX(t) ? !bm(e) && !(Gx(e) && bm(e.callee)) && !SX(e) : (a = xX.get(e.type)) == null ?
void 0 : a(e, t, r, n, s) : !1;
}
i(CX, "needsParens");
function bm(e) {
switch (e.type) {
case "Identifier":
return !0;
case "MemberExpression":
return !e.computed && e.property.type === "Identifier" && bm(e.object);
default:
return !1;
}
}
i(bm, "isDecoratorMemberExpression");
function DX(e, t) {
let r = yX[e.type];
for (let n = r.length - 1; n >= 0; n--) {
let s = e[r[n]];
if (s === t)
return !0;
if (Array.isArray(s)) {
let a = s.length - 1;
for (; a >= 0 && s[a] === null; ) a--;
return a >= 0 && s[a] === t;
} else if (s)
return !1;
}
return !1;
}
i(DX, "isLastChild");
});
// ../node_modules/@babel/generator/lib/token-map.js
var Jx = P((gu) => {
"use strict";
Object.defineProperty(gu, "__esModule", {
value: !0
});
gu.TokenMap = void 0;
var wX = De(), {
traverseFast: IX,
VISITOR_KEYS: _X
} = wX, Tm = class {
static {
i(this, "TokenMap");
}
constructor(t, r, n) {
this._tokens = void 0, this._source = void 0, this._nodesToTokenIndexes = /* @__PURE__ */ new Map(), this._nodesOccurrencesCountCache =
/* @__PURE__ */ new Map(), this._tokensCache = /* @__PURE__ */ new Map(), this._tokens = r, this._source = n, IX(t, (s) => {
let a = this._getTokensIndexesOfNode(s);
a.length > 0 && this._nodesToTokenIndexes.set(s, a);
}), this._tokensCache = null;
}
has(t) {
return this._nodesToTokenIndexes.has(t);
}
getIndexes(t) {
return this._nodesToTokenIndexes.get(t);
}
find(t, r) {
let n = this._nodesToTokenIndexes.get(t);
if (n)
for (let s = 0; s < n.length; s++) {
let a = n[s], o = this._tokens[a];
if (r(o, a)) return o;
}
return null;
}
findLastIndex(t, r) {
let n = this._nodesToTokenIndexes.get(t);
if (n)
for (let s = n.length - 1; s >= 0; s--) {
let a = n[s], o = this._tokens[a];
if (r(o, a)) return a;
}
return -1;
}
findMatching(t, r, n = 0) {
let s = this._nodesToTokenIndexes.get(t);
if (s) {
let a = 0, o = n;
if (o > 1) {
let l = this._nodesOccurrencesCountCache.get(t);
l && l.test === r && l.count < o && (a = l.i + 1, n -= l.count + 1);
}
for (; a < s.length; a++) {
let l = this._tokens[s[a]];
if (this.matchesOriginal(l, r)) {
if (n === 0)
return o > 0 && this._nodesOccurrencesCountCache.set(t, {
test: r,
count: o,
i: a
}), l;
n--;
}
}
}
return null;
}
matchesOriginal(t, r) {
return t.end - t.start !== r.length ? !1 : t.value != null ? t.value === r : this._source.startsWith(r, t.start);
}
startMatches(t, r) {
let n = this._nodesToTokenIndexes.get(t);
if (!n) return !1;
let s = this._tokens[n[0]];
return s.start !== t.start ? !1 : this.matchesOriginal(s, r);
}
endMatches(t, r) {
let n = this._nodesToTokenIndexes.get(t);
if (!n) return !1;
let s = this._tokens[n[n.length - 1]];
return s.end !== t.end ? !1 : this.matchesOriginal(s, r);
}
_getTokensIndexesOfNode(t) {
if (t.start == null || t.end == null) return [];
let {
first: r,
last: n
} = this._findTokensOfNode(t, 0, this._tokens.length - 1), s = r, a = OX(t);
(t.type === "ExportNamedDeclaration" || t.type === "ExportDefaultDeclaration") && t.declaration && t.declaration.type === "ClassDeclar\
ation" && a.next();
let o = [];
for (let l of a) {
if (l == null || l.start == null || l.end == null) continue;
let u = this._findTokensOfNode(l, s, n), c = u.first;
for (let p = s; p < c; p++) o.push(p);
s = u.last + 1;
}
for (let l = s; l <= n; l++) o.push(l);
return o;
}
_findTokensOfNode(t, r, n) {
let s = this._tokensCache.get(t);
if (s) return s;
let a = this._findFirstTokenOfNode(t.start, r, n), o = this._findLastTokenOfNode(t.end, a, n);
return this._tokensCache.set(t, {
first: a,
last: o
}), {
first: a,
last: o
};
}
_findFirstTokenOfNode(t, r, n) {
for (; r <= n; ) {
let s = n + r >> 1;
if (t < this._tokens[s].start)
n = s - 1;
else if (t > this._tokens[s].start)
r = s + 1;
else
return s;
}
return r;
}
_findLastTokenOfNode(t, r, n) {
for (; r <= n; ) {
let s = n + r >> 1;
if (t < this._tokens[s].end)
n = s - 1;
else if (t > this._tokens[s].end)
r = s + 1;
else
return s;
}
return n;
}
};
gu.TokenMap = Tm;
function* OX(e) {
if (e.type === "TemplateLiteral") {
yield e.quasis[0];
for (let r = 1; r < e.quasis.length; r++)
yield e.expressions[r - 1], yield e.quasis[r];
return;
}
let t = _X[e.type];
for (let r of t) {
let n = e[r];
n && (Array.isArray(n) ? yield* n : yield n);
}
}
i(OX, "childrenIterator");
});
// ../node_modules/@babel/generator/lib/generators/template-literals.js
var Xx = P((Mi) => {
"use strict";
Object.defineProperty(Mi, "__esModule", {
value: !0
});
Mi.TaggedTemplateExpression = NX;
Mi.TemplateElement = BX;
Mi.TemplateLiteral = FX;
Mi._printTemplate = kX;
function NX(e) {
this.print(e.tag), this.print(e.typeParameters), this.print(e.quasi);
}
i(NX, "TaggedTemplateExpression");
function BX() {
throw new Error("TemplateElement printing is handled in TemplateLiteral");
}
i(BX, "TemplateElement");
function kX(e, t) {
let r = e.quasis, n = "`";
for (let s = 0; s < r.length - 1; s++)
if (n += r[s].value.raw, this.token(n + "${", !0), this.print(t[s]), n = "}", this.tokenMap) {
let a = this.tokenMap.findMatching(e, "}", s);
a && this._catchUpTo(a.loc.start);
}
n += r[r.length - 1].value.raw, this.token(n + "`", !0);
}
i(kX, "_printTemplate");
function FX(e) {
this._printTemplate(e, e.expressions);
}
i(FX, "TemplateLiteral");
});
// ../node_modules/@babel/generator/lib/generators/expressions.js
var Qx = P((st) => {
"use strict";
Object.defineProperty(st, "__esModule", {
value: !0
});
st.LogicalExpression = st.BinaryExpression = st.AssignmentExpression = oz;
st.AssignmentPattern = az;
st.AwaitExpression = rz;
st.BindExpression = lz;
st.CallExpression = ez;
st.ConditionalExpression = KX;
st.Decorator = zX;
st.DoExpression = VX;
st.EmptyStatement = sz;
st.ExpressionStatement = iz;
st.Import = tz;
st.MemberExpression = uz;
st.MetaProperty = cz;
st.ModuleExpression = dz;
st.NewExpression = GX;
st.OptionalCallExpression = ZX;
st.OptionalMemberExpression = QX;
st.ParenthesizedExpression = $X;
st.PrivateName = pz;
st.SequenceExpression = HX;
st.Super = JX;
st.ThisExpression = YX;
st.UnaryExpression = UX;
st.UpdateExpression = WX;
st.V8IntrinsicIdentifier = fz;
st.YieldExpression = nz;
st._shouldPrintDecoratorsBeforeExport = XX;
var jX = De(), LX = os(), {
isCallExpression: MX,
isLiteral: zx,
isMemberExpression: Sm,
isNewExpression: RX,
isPattern: qX
} = jX;
function UX(e) {
let {
operator: t
} = e;
t === "void" || t === "delete" || t === "typeof" || t === "throw" ? (this.word(t), this.space()) : this.token(t), this.print(e.argument);
}
i(UX, "UnaryExpression");
function VX(e) {
e.async && (this.word("async", !0), this.space()), this.word("do"), this.space(), this.print(e.body);
}
i(VX, "DoExpression");
function $X(e) {
this.tokenChar(40);
let t = this.enterDelimited();
this.print(e.expression), t(), this.rightParens(e);
}
i($X, "ParenthesizedExpression");
function WX(e) {
e.prefix ? (this.token(e.operator), this.print(e.argument)) : (this.print(e.argument, !0), this.token(e.operator));
}
i(WX, "UpdateExpression");
function KX(e) {
this.print(e.test), this.space(), this.tokenChar(63), this.space(), this.print(e.consequent), this.space(), this.tokenChar(58), this.space(),
this.print(e.alternate);
}
i(KX, "ConditionalExpression");
function GX(e, t) {
if (this.word("new"), this.space(), this.print(e.callee), this.format.minified && e.arguments.length === 0 && !e.optional && !MX(t, {
callee: e
}) && !Sm(t) && !RX(t) || (this.print(e.typeArguments), this.print(e.typeParameters), e.optional && this.token("?."), e.arguments.length ===
0 && this.tokenMap && !this.tokenMap.endMatches(e, ")")))
return;
this.tokenChar(40);
let r = this.enterDelimited();
this.printList(e.arguments, this.shouldPrintTrailingComma(")")), r(), this.rightParens(e);
}
i(GX, "NewExpression");
function HX(e) {
this.printList(e.expressions);
}
i(HX, "SequenceExpression");
function YX() {
this.word("this");
}
i(YX, "ThisExpression");
function JX() {
this.word("super");
}
i(JX, "Super");
function XX(e) {
return typeof this.format.decoratorsBeforeExport == "boolean" ? this.format.decoratorsBeforeExport : typeof e.start == "number" && e.start ===
e.declaration.start;
}
i(XX, "_shouldPrintDecoratorsBeforeExport");
function zX(e) {
this.tokenChar(64), this.print(e.expression), this.newline();
}
i(zX, "Decorator");
function QX(e) {
let {
computed: t
} = e, {
optional: r,
property: n
} = e;
if (this.print(e.object), !t && Sm(n))
throw new TypeError("Got a MemberExpression for MemberExpression property");
zx(n) && typeof n.value == "number" && (t = !0), r && this.token("?."), t ? (this.tokenChar(91), this.print(n), this.tokenChar(93)) : (r ||
this.tokenChar(46), this.print(n));
}
i(QX, "OptionalMemberExpression");
function ZX(e) {
this.print(e.callee), this.print(e.typeParameters), e.optional && this.token("?."), this.print(e.typeArguments), this.tokenChar(40);
let t = this.enterDelimited();
this.printList(e.arguments), t(), this.rightParens(e);
}
i(ZX, "OptionalCallExpression");
function ez(e) {
this.print(e.callee), this.print(e.typeArguments), this.print(e.typeParameters), this.tokenChar(40);
let t = this.enterDelimited();
this.printList(e.arguments, this.shouldPrintTrailingComma(")")), t(), this.rightParens(e);
}
i(ez, "CallExpression");
function tz() {
this.word("import");
}
i(tz, "Import");
function rz(e) {
this.word("await"), e.argument && (this.space(), this.printTerminatorless(e.argument));
}
i(rz, "AwaitExpression");
function nz(e) {
this.word("yield", !0), e.delegate ? (this.tokenChar(42), e.argument && (this.space(), this.print(e.argument))) : e.argument && (this.space(),
this.printTerminatorless(e.argument));
}
i(nz, "YieldExpression");
function sz() {
this.semicolon(!0);
}
i(sz, "EmptyStatement");
function iz(e) {
this.tokenContext |= LX.TokenContext.expressionStatement, this.print(e.expression), this.semicolon();
}
i(iz, "ExpressionStatement");
function az(e) {
this.print(e.left), (e.left.type === "Identifier" || qX(e.left)) && (e.left.optional && this.tokenChar(63), this.print(e.left.typeAnnotation)),
this.space(), this.tokenChar(61), this.space(), this.print(e.right);
}
i(az, "AssignmentPattern");
function oz(e) {
this.print(e.left), this.space(), e.operator === "in" || e.operator === "instanceof" ? this.word(e.operator) : (this.token(e.operator), this.
_endsWithDiv = e.operator === "/"), this.space(), this.print(e.right);
}
i(oz, "AssignmentExpression");
function lz(e) {
this.print(e.object), this.token("::"), this.print(e.callee);
}
i(lz, "BindExpression");
function uz(e) {
if (this.print(e.object), !e.computed && Sm(e.property))
throw new TypeError("Got a MemberExpression for MemberExpression property");
let t = e.computed;
if (zx(e.property) && typeof e.property.value == "number" && (t = !0), t) {
let r = this.enterDelimited();
this.tokenChar(91), this.print(e.property), this.tokenChar(93), r();
} else
this.tokenChar(46), this.print(e.property);
}
i(uz, "MemberExpression");
function cz(e) {
this.print(e.meta), this.tokenChar(46), this.print(e.property);
}
i(cz, "MetaProperty");
function pz(e) {
this.tokenChar(35), this.print(e.id);
}
i(pz, "PrivateName");
function fz(e) {
this.tokenChar(37), this.word(e.name);
}
i(fz, "V8IntrinsicIdentifier");
function dz(e) {
this.word("module", !0), this.space(), this.tokenChar(123), this.indent();
let {
body: t
} = e;
(t.body.length || t.directives.length) && this.newline(), this.print(t), this.dedent(), this.rightBrace(e);
}
i(dz, "ModuleExpression");
});
// ../node_modules/@babel/generator/lib/generators/statements.js
var rv = P((Tt) => {
"use strict";
Object.defineProperty(Tt, "__esModule", {
value: !0
});
Tt.BreakStatement = vz;
Tt.CatchClause = Iz;
Tt.ContinueStatement = Pz;
Tt.DebuggerStatement = Nz;
Tt.DoWhileStatement = xz;
Tt.ForOfStatement = Tt.ForInStatement = void 0;
Tt.ForStatement = Tz;
Tt.IfStatement = Ez;
Tt.LabeledStatement = Dz;
Tt.ReturnStatement = Az;
Tt.SwitchCase = Oz;
Tt.SwitchStatement = _z;
Tt.ThrowStatement = Cz;
Tt.TryStatement = wz;
Tt.VariableDeclaration = Bz;
Tt.VariableDeclarator = kz;
Tt.WhileStatement = Sz;
Tt.WithStatement = bz;
var hz = De(), xm = os(), {
isFor: Zx,
isForStatement: mz,
isIfStatement: yz,
isStatement: gz
} = hz;
function bz(e) {
this.word("with"), this.space(), this.tokenChar(40), this.print(e.object), this.tokenChar(41), this.printBlock(e);
}
i(bz, "WithStatement");
function Ez(e) {
this.word("if"), this.space(), this.tokenChar(40), this.print(e.test), this.tokenChar(41), this.space();
let t = e.alternate && yz(ev(e.consequent));
t && (this.tokenChar(123), this.newline(), this.indent()), this.printAndIndentOnComments(e.consequent), t && (this.dedent(), this.newline(),
this.tokenChar(125)), e.alternate && (this.endsWith(125) && this.space(), this.word("else"), this.space(), this.printAndIndentOnComments(
e.alternate));
}
i(Ez, "IfStatement");
function ev(e) {
let {
body: t
} = e;
return gz(t) === !1 ? e : ev(t);
}
i(ev, "getLastStatement");
function Tz(e) {
this.word("for"), this.space(), this.tokenChar(40);
{
let t = this.enterForStatementInit();
this.tokenContext |= xm.TokenContext.forHead, this.print(e.init), t();
}
this.tokenChar(59), e.test && (this.space(), this.print(e.test)), this.token(";", !1, 1), e.update && (this.space(), this.print(e.update)),
this.tokenChar(41), this.printBlock(e);
}
i(Tz, "ForStatement");
function Sz(e) {
this.word("while"), this.space(), this.tokenChar(40), this.print(e.test), this.tokenChar(41), this.printBlock(e);
}
i(Sz, "WhileStatement");
function tv(e) {
this.word("for"), this.space();
let t = e.type === "ForOfStatement";
t && e.await && (this.word("await"), this.space()), this.noIndentInnerCommentsHere(), this.tokenChar(40);
{
let r = t ? null : this.enterForStatementInit();
this.tokenContext |= t ? xm.TokenContext.forOfHead : xm.TokenContext.forInHead, this.print(e.left), r?.();
}
this.space(), this.word(t ? "of" : "in"), this.space(), this.print(e.right), this.tokenChar(41), this.printBlock(e);
}
i(tv, "ForXStatement");
var wve = Tt.ForInStatement = tv, Ive = Tt.ForOfStatement = tv;
function xz(e) {
this.word("do"), this.space(), this.print(e.body), this.space(), this.word("while"), this.space(), this.tokenChar(40), this.print(e.test),
this.tokenChar(41), this.semicolon();
}
i(xz, "DoWhileStatement");
function bu(e, t) {
t && (e.space(), e.printTerminatorless(t)), e.semicolon();
}
i(bu, "printStatementAfterKeyword");
function vz(e) {
this.word("break"), bu(this, e.label);
}
i(vz, "BreakStatement");
function Pz(e) {
this.word("continue"), bu(this, e.label);
}
i(Pz, "ContinueStatement");
function Az(e) {
this.word("return"), bu(this, e.argument);
}
i(Az, "ReturnStatement");
function Cz(e) {
this.word("throw"), bu(this, e.argument);
}
i(Cz, "ThrowStatement");
function Dz(e) {
this.print(e.label), this.tokenChar(58), this.space(), this.print(e.body);
}
i(Dz, "LabeledStatement");
function wz(e) {
this.word("try"), this.space(), this.print(e.block), this.space(), e.handlers ? this.print(e.handlers[0]) : this.print(e.handler), e.finalizer &&
(this.space(), this.word("finally"), this.space(), this.print(e.finalizer));
}
i(wz, "TryStatement");
function Iz(e) {
this.word("catch"), this.space(), e.param && (this.tokenChar(40), this.print(e.param), this.print(e.param.typeAnnotation), this.tokenChar(
41), this.space()), this.print(e.body);
}
i(Iz, "CatchClause");
function _z(e) {
this.word("switch"), this.space(), this.tokenChar(40), this.print(e.discriminant), this.tokenChar(41), this.space(), this.tokenChar(123),
this.printSequence(e.cases, !0, void 0, /* @__PURE__ */ i(function(r, n) {
if (!r && e.cases[e.cases.length - 1] === n) return -1;
}, "addNewlines")), this.rightBrace(e);
}
i(_z, "SwitchStatement");
function Oz(e) {
e.test ? (this.word("case"), this.space(), this.print(e.test), this.tokenChar(58)) : (this.word("default"), this.tokenChar(58)), e.consequent.
length && (this.newline(), this.printSequence(e.consequent, !0));
}
i(Oz, "SwitchCase");
function Nz() {
this.word("debugger"), this.semicolon();
}
i(Nz, "DebuggerStatement");
function Bz(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 (!Zx(t))
for (let s of e.declarations)
s.init && (n = !0);
if (this.printList(e.declarations, void 0, void 0, e.declarations.length > 1, n ? function(s) {
this.token(",", !1, s), this.newline();
} : void 0), Zx(t)) {
if (mz(t)) {
if (t.init === e) return;
} else if (t.left === e) return;
}
this.semicolon();
}
i(Bz, "VariableDeclaration");
function kz(e) {
this.print(e.id), e.definite && this.tokenChar(33), this.print(e.id.typeAnnotation), e.init && (this.space(), this.tokenChar(61), this.space(),
this.print(e.init));
}
i(kz, "VariableDeclarator");
});
// ../node_modules/@babel/generator/lib/generators/classes.js
var nv = P((kr) => {
"use strict";
Object.defineProperty(kr, "__esModule", {
value: !0
});
kr.ClassAccessorProperty = Vz;
kr.ClassBody = Rz;
kr.ClassExpression = kr.ClassDeclaration = Mz;
kr.ClassMethod = Wz;
kr.ClassPrivateMethod = Kz;
kr.ClassPrivateProperty = $z;
kr.ClassProperty = Uz;
kr.StaticBlock = Hz;
kr._classMethodHead = Gz;
var Fz = De(), {
isExportDefaultDeclaration: jz,
isExportNamedDeclaration: Lz
} = Fz;
function Mz(e, t) {
(!(jz(t) || Lz(t)) || !this._shouldPrintDecoratorsBeforeExport(t)) && this.printJoin(e.decorators), e.declare && (this.word("declare"), this.
space()), e.abstract && (this.word("abstract"), this.space()), this.word("class"), e.id && (this.space(), this.print(e.id)), this.print(
e.typeParameters), e.superClass && (this.space(), this.word("extends"), this.space(), this.print(e.superClass), this.print(e.superTypeParameters)),
e.implements && (this.space(), this.word("implements"), this.space(), this.printList(e.implements)), this.space(), this.print(e.body);
}
i(Mz, "ClassDeclaration");
function Rz(e) {
if (this.tokenChar(123), e.body.length === 0)
this.tokenChar(125);
else {
this.newline();
let t = qz(this, e);
t?.(-1);
let r = this.enterDelimited();
this.printJoin(e.body, !0, !0, t, !0), r(), this.endsWith(10) || this.newline(), this.rightBrace(e);
}
}
i(Rz, "ClassBody");
function qz(e, t) {
if (!e.tokenMap || t.start == null || t.end == null)
return null;
let r = e.tokenMap.getIndexes(t);
if (!r) return null;
let n = 1, s = 0, a = 0, o = /* @__PURE__ */ i(() => {
for (; a < t.body.length && t.body[a].start == null; )
a++;
}, "advanceNextLocIndex");
return o(), (l) => {
a <= l && (a = l + 1, o());
let u = a === t.body.length ? t.end : t.body[a].start, c;
for (; n < r.length && e.tokenMap.matchesOriginal(c = e._tokens[r[n]], ";") && c.start < u; )
e.token(";", void 0, s++), n++;
};
}
i(qz, "classBodyEmptySemicolonsPrinter");
function Uz(e) {
if (this.printJoin(e.decorators), !e.static && !this.format.preserveFormat) {
var t;
let r = (t = e.key.loc) == null || (t = t.end) == null ? void 0 : t.line;
r && this.catchUp(r);
}
this.tsPrintClassMemberModifiers(e), e.computed ? (this.tokenChar(91), this.print(e.key), this.tokenChar(93)) : (this._variance(e), this.
print(e.key)), e.optional && this.tokenChar(63), e.definite && this.tokenChar(33), this.print(e.typeAnnotation), e.value && (this.space(),
this.tokenChar(61), this.space(), this.print(e.value)), this.semicolon();
}
i(Uz, "ClassProperty");
function Vz(e) {
var t;
this.printJoin(e.decorators);
let r = (t = e.key.loc) == null || (t = t.end) == null ? void 0 : t.line;
r && this.catchUp(r), this.tsPrintClassMemberModifiers(e), this.word("accessor", !0), this.space(), e.computed ? (this.tokenChar(91), this.
print(e.key), this.tokenChar(93)) : (this._variance(e), this.print(e.key)), e.optional && this.tokenChar(63), e.definite && this.tokenChar(
33), this.print(e.typeAnnotation), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value)), this.semicolon();
}
i(Vz, "ClassAccessorProperty");
function $z(e) {
this.printJoin(e.decorators), this.tsPrintClassMemberModifiers(e), this.print(e.key), e.optional && this.tokenChar(63), e.definite && this.
tokenChar(33), this.print(e.typeAnnotation), e.value && (this.space(), this.tokenChar(61), this.space(), this.print(e.value)), this.semicolon();
}
i($z, "ClassPrivateProperty");
function Wz(e) {
this._classMethodHead(e), this.space(), this.print(e.body);
}
i(Wz, "ClassMethod");
function Kz(e) {
this._classMethodHead(e), this.space(), this.print(e.body);
}
i(Kz, "ClassPrivateMethod");
function Gz(e) {
if (this.printJoin(e.decorators), !this.format.preserveFormat) {
var t;
let r = (t = e.key.loc) == null || (t = t.end) == null ? void 0 : t.line;
r && this.catchUp(r);
}
this.tsPrintClassMemberModifiers(e), this._methodHead(e);
}
i(Gz, "_classMethodHead");
function Hz(e) {
this.word("static"), this.space(), this.tokenChar(123), e.body.length === 0 ? this.tokenChar(125) : (this.newline(), this.printSequence(
e.body, !0), this.rightBrace(e));
}
i(Hz, "StaticBlock");
});
// ../node_modules/@babel/generator/lib/generators/methods.js
var sv = P((Fr) => {
"use strict";
Object.defineProperty(Fr, "__esModule", {
value: !0
});
Fr.ArrowFunctionExpression = sQ;
Fr.FunctionDeclaration = Fr.FunctionExpression = nQ;
Fr._functionHead = rQ;
Fr._methodHead = eQ;
Fr._param = Zz;
Fr._parameters = Qz;
Fr._params = zz;
Fr._predicate = tQ;
Fr._shouldPrintArrowParamsParens = iQ;
var Yz = De(), Jz = os(), {
isIdentifier: Xz
} = Yz;
function zz(e, t, r) {
this.print(e.typeParameters);
let n = aQ.call(this, t, r);
n && this.sourceIdentifierName(n.name, n.pos), this.tokenChar(40), this._parameters(e.params, ")");
let s = e.type === "ArrowFunctionExpression";
this.print(e.returnType, s), this._noLineTerminator = s;
}
i(zz, "_params");
function Qz(e, t) {
let r = this.enterDelimited(), n = this.shouldPrintTrailingComma(t), s = e.length;
for (let a = 0; a < s; a++)
this._param(e[a]), (n || a < s - 1) && (this.token(",", null, a), this.space());
this.token(t), r();
}
i(Qz, "_parameters");
function Zz(e) {
this.printJoin(e.decorators), this.print(e), e.optional && this.tokenChar(63), this.print(e.typeAnnotation);
}
i(Zz, "_param");
function eQ(e) {
let t = e.kind, r = e.key;
(t === "get" || t === "set") && (this.word(t), this.space()), e.async && (this.word("async", !0), this.space()), (t === "method" || t ===
"init") && e.generator && this.tokenChar(42), e.computed ? (this.tokenChar(91), this.print(r), this.tokenChar(93)) : this.print(r), e.optional &&
this.tokenChar(63), this._params(e, e.computed && e.key.type !== "StringLiteral" ? void 0 : e.key, void 0);
}
i(eQ, "_methodHead");
function tQ(e, t) {
e.predicate && (e.returnType || this.tokenChar(58), this.space(), this.print(e.predicate, t));
}
i(tQ, "_predicate");
function rQ(e, t) {
e.async && (this.word("async"), this.format.preserveFormat || (this._endsWithInnerRaw = !1), this.space()), this.word("function"), e.generator &&
(this.format.preserveFormat || (this._endsWithInnerRaw = !1), this.tokenChar(42)), this.space(), e.id && this.print(e.id), this._params(
e, e.id, t), e.type !== "TSDeclareFunction" && this._predicate(e);
}
i(rQ, "_functionHead");
function nQ(e, t) {
this._functionHead(e, t), this.space(), this.print(e.body);
}
i(nQ, "FunctionExpression");
function sQ(e, t) {
e.async && (this.word("async", !0), this.space()), this._shouldPrintArrowParamsParens(e) ? this._params(e, void 0, t) : this.print(e.params[0],
!0), this._predicate(e, !0), this.space(), this.printInnerComments(), this.token("=>"), this.space(), this.tokenContext |= Jz.TokenContext.
arrowBody, this.print(e.body);
}
i(sQ, "ArrowFunctionExpression");
function iQ(e) {
var t, r;
if (e.params.length !== 1 || e.typeParameters || e.returnType || e.predicate)
return !0;
let n = e.params[0];
if (!Xz(n) || n.typeAnnotation || n.optional || (t = n.leadingComments) != null && t.length || (r = n.trailingComments) != null && r.length)
return !0;
if (this.tokenMap) {
if (e.loc == null || this.tokenMap.findMatching(e, "(") !== null) return !0;
let s = this.tokenMap.findMatching(e, "=>");
return s?.loc == null ? !0 : s.loc.start.line !== e.loc.start.line;
}
return !!this.format.retainLines;
}
i(iQ, "_shouldPrintArrowParamsParens");
function aQ(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 s, a;
n = {
pos: (s = r.loc) == null ? void 0 : s.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;
}
i(aQ, "_getFuncIdName");
});
// ../node_modules/@babel/generator/lib/generators/modules.js
var vm = P((lr) => {
"use strict";
Object.defineProperty(lr, "__esModule", {
value: !0
});
lr.ExportAllDeclaration = TQ;
lr.ExportDefaultDeclaration = xQ;
lr.ExportDefaultSpecifier = yQ;
lr.ExportNamedDeclaration = SQ;
lr.ExportNamespaceSpecifier = bQ;
lr.ExportSpecifier = gQ;
lr.ImportAttribute = PQ;
lr.ImportDeclaration = vQ;
lr.ImportDefaultSpecifier = mQ;
lr.ImportExpression = CQ;
lr.ImportNamespaceSpecifier = AQ;
lr.ImportSpecifier = hQ;
lr._printAttributes = EQ;
var oQ = De(), lQ = os(), {
isClassDeclaration: uQ,
isExportDefaultSpecifier: cQ,
isExportNamespaceSpecifier: pQ,
isImportDefaultSpecifier: fQ,
isImportNamespaceSpecifier: dQ,
isStatement: av
} = oQ;
function hQ(e) {
(e.importKind === "type" || e.importKind === "typeof") && (this.word(e.importKind), this.space()), this.print(e.imported), e.local && e.
local.name !== e.imported.name && (this.space(), this.word("as"), this.space(), this.print(e.local));
}
i(hQ, "ImportSpecifier");
function mQ(e) {
this.print(e.local);
}
i(mQ, "ImportDefaultSpecifier");
function yQ(e) {
this.print(e.exported);
}
i(yQ, "ExportDefaultSpecifier");
function gQ(e) {
e.exportKind === "type" && (this.word("type"), this.space()), this.print(e.local), e.exported && e.local.name !== e.exported.name && (this.
space(), this.word("as"), this.space(), this.print(e.exported));
}
i(gQ, "ExportSpecifier");
function bQ(e) {
this.tokenChar(42), this.space(), this.word("as"), this.space(), this.print(e.exported);
}
i(bQ, "ExportNamespaceSpecifier");
var iv = !1;
function EQ(e, t) {
var r;
let {
importAttributesKeyword: n
} = this.format, {
attributes: s,
assertions: a
} = e;
s && !n && e.extra && (e.extra.deprecatedAssertSyntax || e.extra.deprecatedWithLegacySyntax) && !iv && (iv = !0, console.warn('You are u\
sing import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose v\
alue can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { typ\
e: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));
let o = n === "assert" || !n && a;
if (this.word(o ? "assert" : "with"), this.space(), !o && (n === "with-legacy" || !n && (r = e.extra) != null && r.deprecatedWithLegacySyntax)) {
this.printList(s || a);
return;
}
let l = t ? 1 : 0;
this.token("{", null, l), this.space(), this.printList(s || a, this.shouldPrintTrailingComma("}")), this.space(), this.token("}", null, l);
}
i(EQ, "_printAttributes");
function TQ(e) {
var t, r;
this.word("export"), this.space(), e.exportKind === "type" && (this.word("type"), this.space()), this.tokenChar(42), this.space(), this.
word("from"), this.space(), (t = e.attributes) != null && t.length || (r = e.assertions) != null && r.length ? (this.print(e.source, !0),
this.space(), this._printAttributes(e, !1)) : this.print(e.source), this.semicolon();
}
i(TQ, "ExportAllDeclaration");
function ov(e, t) {
uQ(t.declaration) && e._shouldPrintDecoratorsBeforeExport(t) && e.printJoin(t.declaration.decorators);
}
i(ov, "maybePrintDecoratorsBeforeExport");
function SQ(e) {
if (ov(this, e), this.word("export"), this.space(), e.declaration) {
let n = e.declaration;
this.print(n), av(n) || this.semicolon();
} else {
e.exportKind === "type" && (this.word("type"), this.space());
let n = e.specifiers.slice(0), s = !1;
for (; ; ) {
let o = n[0];
if (cQ(o) || pQ(o))
s = !0, this.print(n.shift()), n.length && (this.tokenChar(44), this.space());
else
break;
}
let a = !1;
if ((n.length || !n.length && !s) && (a = !0, this.tokenChar(123), n.length && (this.space(), this.printList(n, this.shouldPrintTrailingComma(
"}")), this.space()), this.tokenChar(125)), e.source) {
var t, r;
this.space(), this.word("from"), this.space(), (t = e.attributes) != null && t.length || (r = e.assertions) != null && r.length ? (this.
print(e.source, !0), this.space(), this._printAttributes(e, a)) : this.print(e.source);
}
this.semicolon();
}
}
i(SQ, "ExportNamedDeclaration");
function xQ(e) {
ov(this, e), this.word("export"), this.noIndentInnerCommentsHere(), this.space(), this.word("default"), this.space(), this.tokenContext |=
lQ.TokenContext.exportDefault;
let t = e.declaration;
this.print(t), av(t) || this.semicolon();
}
i(xQ, "ExportDefaultDeclaration");
function vQ(e) {
var t, r;
this.word("import"), this.space();
let n = e.importKind === "type" || e.importKind === "typeof";
n ? (this.noIndentInnerCommentsHere(), this.word(e.importKind), this.space()) : e.module ? (this.noIndentInnerCommentsHere(), this.word(
"module"), this.space()) : e.phase && (this.noIndentInnerCommentsHere(), this.word(e.phase), this.space());
let s = e.specifiers.slice(0), a = !!s.length;
for (; a; ) {
let l = s[0];
if (fQ(l) || dQ(l))
this.print(s.shift()), s.length && (this.tokenChar(44), this.space());
else
break;
}
let o = !1;
s.length ? (o = !0, this.tokenChar(123), this.space(), this.printList(s, this.shouldPrintTrailingComma("}")), this.space(), this.tokenChar(
125)) : n && !a && (o = !0, 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, !0), this.space(), this._printAttributes(
e, o)) : this.print(e.source), this.semicolon();
}
i(vQ, "ImportDeclaration");
function PQ(e) {
this.print(e.key), this.tokenChar(58), this.space(), this.print(e.value);
}
i(PQ, "ImportAttribute");
function AQ(e) {
this.tokenChar(42), this.space(), this.word("as"), this.space(), this.print(e.local);
}
i(AQ, "ImportNamespaceSpecifier");
function CQ(e) {
this.word("import"), e.phase && (this.tokenChar(46), this.word(e.phase)), this.tokenChar(40), this.print(e.source), e.options != null &&
(this.tokenChar(44), this.space(), this.print(e.options)), this.tokenChar(41);
}
i(CQ, "ImportExpression");
});
// ../node_modules/jsesc/jsesc.js
var pv = P((Mve, cv) => {
"use strict";
var lv = {}, DQ = lv.hasOwnProperty, uv = /* @__PURE__ */ i((e, t) => {
for (let r in e)
DQ.call(e, r) && t(r, e[r]);
}, "forOwn"), wQ = /* @__PURE__ */ i((e, t) => (t && uv(t, (r, n) => {
e[r] = n;
}), e), "extend"), IQ = /* @__PURE__ */ i((e, t) => {
let r = e.length, n = -1;
for (; ++n < r; )
t(e[n]);
}, "forEach"), Eu = /* @__PURE__ */ i((e) => "\\u" + ("0000" + e).slice(-4), "fourHexEscape"), no = /* @__PURE__ */ i((e, t) => {
let r = e.toString(16);
return t ? r : r.toUpperCase();
}, "hexadecimal"), so = lv.toString, _Q = Array.isArray, OQ = /* @__PURE__ */ i((e) => typeof Buffer == "function" && Buffer.isBuffer(e), "\
isBuffer"), NQ = /* @__PURE__ */ i((e) => so.call(e) == "[object Object]", "isObject"), BQ = /* @__PURE__ */ i((e) => typeof e == "string" ||
so.call(e) == "[object String]", "isString"), kQ = /* @__PURE__ */ i((e) => typeof e == "number" || so.call(e) == "[object Number]", "isNu\
mber"), Pm = /* @__PURE__ */ i((e) => typeof e == "bigint", "isBigInt"), FQ = /* @__PURE__ */ i((e) => typeof e == "function", "isFunction"),
jQ = /* @__PURE__ */ i((e) => so.call(e) == "[object Map]", "isMap"), LQ = /* @__PURE__ */ i((e) => so.call(e) == "[object Set]", "isSet"),
MQ = {
"\\": "\\\\",
"\b": "\\b",
"\f": "\\f",
"\n": "\\n",
"\r": "\\r",
" ": "\\t"
// `\v` is omitted intentionally, because in IE < 9, '\v' == 'v'.
// '\v': '\\x0B'
}, RQ = /[\\\b\f\n\r\t]/, qQ = /[0-9]/, UQ = /[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/, VQ = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,
$Q = /([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g, ls = /* @__PURE__ */ i((e, t) => {
let r = /* @__PURE__ */ i(() => {
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
}, s = t && t.json;
s && (n.quotes = "double", n.wrap = !0), t = wQ(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 = "", p = t.__inline1__, f = t.__inline2__, h = o ? "" : `
`, y, E = !0, d = t.numbers == "binary", g = t.numbers == "octal", C = t.numbers == "decimal", _ = t.numbers == "hexadecimal";
if (s && e && FQ(e.toJSON) && (e = e.toJSON()), !BQ(e)) {
if (jQ(e))
return e.size == 0 ? "new Map()" : (o || (t.__inline1__ = !0, t.__inline2__ = !1), "new Map(" + ls(Array.from(e), t) + ")");
if (LQ(e))
return e.size == 0 ? "new Set()" : "new Set(" + ls(Array.from(e), t) + ")";
if (OQ(e))
return e.length == 0 ? "Buffer.from([])" : "Buffer.from(" + ls(Array.from(e), t) + ")";
if (_Q(e))
return y = [], t.wrap = !0, p && (t.__inline1__ = !1, t.__inline2__ = !0), f || r(), IQ(e, (B) => {
E = !1, f && (t.__inline2__ = !1), y.push(
(o || f ? "" : u) + ls(B, t)
);
}), E ? "[]" : f ? "[" + y.join(", ") + "]" : "[" + h + y.join("," + h) + h + (o ? "" : c) + "]";
if (kQ(e) || Pm(e)) {
if (s)
return JSON.stringify(Number(e));
let B;
if (C)
B = String(e);
else if (_) {
let R = e.toString(16);
l || (R = R.toUpperCase()), B = "0x" + R;
} else d ? B = "0b" + e.toString(2) : g && (B = "0o" + e.toString(8));
return Pm(e) ? B + "n" : B;
} else return Pm(e) ? s ? JSON.stringify(Number(e)) : e + "n" : NQ(e) ? (y = [], t.wrap = !0, r(), uv(e, (B, R) => {
E = !1, y.push(
(o ? "" : u) + ls(B, t) + ":" + (o ? "" : " ") + ls(R, t)
);
}), E ? "{}" : "{" + h + y.join("," + h) + h + (o ? "" : c) + "}") : s ? JSON.stringify(e) || "null" : String(e);
}
let O = t.escapeEverything ? VQ : $Q;
return y = e.replace(O, (B, R, $, V, J, U) => {
if (R) {
if (t.minimal) return R;
let j = R.charCodeAt(0), Y = R.charCodeAt(1);
if (t.es6) {
let Ee = (j - 55296) * 1024 + Y - 56320 + 65536;
return "\\u{" + no(Ee, l) + "}";
}
return Eu(no(j, l)) + Eu(no(Y, l));
}
if ($)
return Eu(no($.charCodeAt(0), l));
if (B == "\0" && !s && !qQ.test(U.charAt(J + 1)))
return "\\0";
if (V)
return V == a || t.escapeEverything ? "\\" + V : V;
if (RQ.test(B))
return MQ[B];
if (t.minimal && !UQ.test(B))
return B;
let K = no(B.charCodeAt(0), l);
return s || K.length > 2 ? Eu(K) : "\\x" + ("00" + K).slice(-2);
}), a == "`" && (y = y.replace(/\$\{/g, "\\${")), t.isScriptContext && (y = y.replace(/<\/(script|style)/gi, "<\\/$1").replace(/<!--/g, s ?
"\\u003C!--" : "\\x3C!--")), t.wrap && (y = a + y + a), y;
}, "jsesc");
ls.version = "3.0.2";
cv.exports = ls;
});
// ../node_modules/@babel/generator/lib/generators/types.js
var Cm = P((dt) => {
"use strict";
Object.defineProperty(dt, "__esModule", {
value: !0
});
dt.ArgumentPlaceholder = YQ;
dt.ArrayPattern = dt.ArrayExpression = ZQ;
dt.BigIntLiteral = oZ;
dt.BooleanLiteral = nZ;
dt.Identifier = HQ;
dt.NullLiteral = sZ;
dt.NumericLiteral = iZ;
dt.ObjectPattern = dt.ObjectExpression = XQ;
dt.ObjectMethod = zQ;
dt.ObjectProperty = QQ;
dt.PipelineBareFunction = cZ;
dt.PipelinePrimaryTopicReference = pZ;
dt.PipelineTopicExpression = uZ;
dt.RecordExpression = eZ;
dt.RegExpLiteral = rZ;
dt.SpreadElement = dt.RestElement = JQ;
dt.StringLiteral = aZ;
dt.TopicReference = lZ;
dt.TupleExpression = tZ;
dt._getRawIdentifier = GQ;
var WQ = De(), hv = pv(), {
isAssignmentPattern: KQ,
isIdentifier: Am
} = WQ, fv = null, Tu = "";
function GQ(e) {
if (e === fv) return Tu;
fv = e;
let {
name: t
} = e, r = this.tokenMap.find(e, (n) => n.value === t);
return r ? (Tu = this._originalCode.slice(r.start, r.end), Tu) : Tu = e.name;
}
i(GQ, "_getRawIdentifier");
function HQ(e) {
var t;
this.sourceIdentifierName(((t = e.loc) == null ? void 0 : t.identifierName) || e.name), this.word(this.tokenMap ? this._getRawIdentifier(
e) : e.name);
}
i(HQ, "Identifier");
function YQ() {
this.tokenChar(63);
}
i(YQ, "ArgumentPlaceholder");
function JQ(e) {
this.token("..."), this.print(e.argument);
}
i(JQ, "RestElement");
function XQ(e) {
let t = e.properties;
if (this.tokenChar(123), t.length) {
let r = this.enterDelimited();
this.space(), this.printList(t, this.shouldPrintTrailingComma("}"), !0, !0), this.space(), r();
}
this.sourceWithOffset("end", e.loc, -1), this.tokenChar(125);
}
i(XQ, "ObjectExpression");
function zQ(e) {
this.printJoin(e.decorators), this._methodHead(e), this.space(), this.print(e.body);
}
i(zQ, "ObjectMethod");
function QQ(e) {
if (this.printJoin(e.decorators), e.computed)
this.tokenChar(91), this.print(e.key), this.tokenChar(93);
else {
if (KQ(e.value) && Am(e.key) && e.key.name === e.value.left.name) {
this.print(e.value);
return;
}
if (this.print(e.key), e.shorthand && Am(e.key) && Am(e.value) && e.key.name === e.value.name)
return;
}
this.tokenChar(58), this.space(), this.print(e.value);
}
i(QQ, "ObjectProperty");
function ZQ(e) {
let t = e.elements, r = t.length;
this.tokenChar(91);
let n = this.enterDelimited();
for (let s = 0; s < t.length; s++) {
let a = t[s];
a ? (s > 0 && this.space(), this.print(a), (s < r - 1 || this.shouldPrintTrailingComma("]")) && this.token(",", !1, s)) : this.token("\
,", !1, s);
}
n(), this.tokenChar(93);
}
i(ZQ, "ArrayExpression");
function eZ(e) {
let t = e.properties, r, n;
if (this.format.recordAndTupleSyntaxType === "bar")
r = "{|", n = "|}";
else {
if (this.format.recordAndTupleSyntaxType !== "hash" && this.format.recordAndTupleSyntaxType != null)
throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)}\
received).`);
r = "#{", n = "}";
}
this.token(r), t.length && (this.space(), this.printList(t, this.shouldPrintTrailingComma(n), !0, !0), this.space()), this.token(n);
}
i(eZ, "RecordExpression");
function tZ(e) {
let t = e.elements, r = t.length, n, s;
if (this.format.recordAndTupleSyntaxType === "bar")
n = "[|", s = "|]";
else if (this.format.recordAndTupleSyntaxType === "hash")
n = "#[", s = "]";
else
throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);
this.token(n);
for (let a = 0; a < t.length; a++) {
let o = t[a];
o && (a > 0 && this.space(), this.print(o), (a < r - 1 || this.shouldPrintTrailingComma(s)) && this.token(",", !1, a));
}
this.token(s);
}
i(tZ, "TupleExpression");
function rZ(e) {
this.word(`/${e.pattern}/${e.flags}`);
}
i(rZ, "RegExpLiteral");
function nZ(e) {
this.word(e.value ? "true" : "false");
}
i(nZ, "BooleanLiteral");
function sZ() {
this.word("null");
}
i(sZ, "NullLiteral");
function iZ(e) {
let t = this.getPossibleRaw(e), r = this.format.jsescOption, n = e.value, s = n + "";
r.numbers ? this.number(hv(n, r), n) : t == null ? this.number(s, n) : this.format.minified ? this.number(t.length < s.length ? t : s, n) :
this.number(t, n);
}
i(iZ, "NumericLiteral");
function aZ(e) {
let t = this.getPossibleRaw(e);
if (!this.format.minified && t !== void 0) {
this.token(t);
return;
}
let r = hv(e.value, this.format.jsescOption);
this.token(r);
}
i(aZ, "StringLiteral");
function oZ(e) {
let t = this.getPossibleRaw(e);
if (!this.format.minified && t !== void 0) {
this.word(t);
return;
}
this.word(e.value + "n");
}
i(oZ, "BigIntLiteral");
var dv = /* @__PURE__ */ new Set(["^^", "@@", "^", "%", "#"]);
function lZ() {
let {
topicToken: e
} = this.format;
if (dv.has(e))
this.token(e);
else {
let t = JSON.stringify(e), r = Array.from(dv, (n) => JSON.stringify(n));
throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`);
}
}
i(lZ, "TopicReference");
function uZ(e) {
this.print(e.expression);
}
i(uZ, "PipelineTopicExpression");
function cZ(e) {
this.print(e.callee);
}
i(cZ, "PipelineBareFunction");
function pZ() {
this.tokenChar(35);
}
i(pZ, "PipelinePrimaryTopicReference");
});
// ../node_modules/@babel/generator/lib/generators/flow.js
var yv = P((fe) => {
"use strict";
Object.defineProperty(fe, "__esModule", {
value: !0
});
fe.AnyTypeAnnotation = yZ;
fe.ArrayTypeAnnotation = gZ;
fe.BooleanLiteralTypeAnnotation = EZ;
fe.BooleanTypeAnnotation = bZ;
fe.DeclareClass = SZ;
fe.DeclareExportAllDeclaration = NZ;
fe.DeclareExportDeclaration = OZ;
fe.DeclareFunction = xZ;
fe.DeclareInterface = AZ;
fe.DeclareModule = CZ;
fe.DeclareModuleExports = DZ;
fe.DeclareOpaqueType = IZ;
fe.DeclareTypeAlias = wZ;
fe.DeclareVariable = _Z;
fe.DeclaredPredicate = PZ;
fe.EmptyTypeAnnotation = eee;
fe.EnumBooleanBody = kZ;
fe.EnumBooleanMember = RZ;
fe.EnumDeclaration = BZ;
fe.EnumDefaultedMember = MZ;
fe.EnumNumberBody = FZ;
fe.EnumNumberMember = qZ;
fe.EnumStringBody = jZ;
fe.EnumStringMember = UZ;
fe.EnumSymbolBody = LZ;
fe.ExistsTypeAnnotation = $Z;
fe.FunctionTypeAnnotation = WZ;
fe.FunctionTypeParam = KZ;
fe.IndexedAccessType = Aee;
fe.InferredPredicate = vZ;
fe.InterfaceDeclaration = JZ;
fe.GenericTypeAnnotation = fe.ClassImplements = fe.InterfaceExtends = GZ;
fe.InterfaceTypeAnnotation = zZ;
fe.IntersectionTypeAnnotation = QZ;
fe.MixedTypeAnnotation = ZZ;
fe.NullLiteralTypeAnnotation = TZ;
fe.NullableTypeAnnotation = tee;
Object.defineProperty(fe, "NumberLiteralTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return mv.NumericLiteral;
}, "get")
});
fe.NumberTypeAnnotation = ree;
fe.ObjectTypeAnnotation = fee;
fe.ObjectTypeCallProperty = hee;
fe.ObjectTypeIndexer = mee;
fe.ObjectTypeInternalSlot = dee;
fe.ObjectTypeProperty = yee;
fe.ObjectTypeSpreadProperty = gee;
fe.OpaqueType = pee;
fe.OptionalIndexedAccessType = Cee;
fe.QualifiedTypeIdentifier = bee;
Object.defineProperty(fe, "StringLiteralTypeAnnotation", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return mv.StringLiteral;
}, "get")
});
fe.StringTypeAnnotation = nee;
fe.SymbolTypeAnnotation = Eee;
fe.ThisTypeAnnotation = see;
fe.TupleTypeAnnotation = iee;
fe.TypeAlias = oee;
fe.TypeAnnotation = lee;
fe.TypeCastExpression = xee;
fe.TypeParameter = cee;
fe.TypeParameterDeclaration = fe.TypeParameterInstantiation = uee;
fe.TypeofTypeAnnotation = aee;
fe.UnionTypeAnnotation = See;
fe.Variance = vee;
fe.VoidTypeAnnotation = Pee;
fe._interfaceish = HZ;
fe._variance = YZ;
var fZ = De(), dZ = vm(), hZ = os(), mv = Cm(), {
isDeclareExportDeclaration: Su,
isStatement: mZ
} = fZ;
function yZ() {
this.word("any");
}
i(yZ, "AnyTypeAnnotation");
function gZ(e) {
this.print(e.elementType, !0), this.tokenChar(91), this.tokenChar(93);
}
i(gZ, "ArrayTypeAnnotation");
function bZ() {
this.word("boolean");
}
i(bZ, "BooleanTypeAnnotation");
function EZ(e) {
this.word(e.value ? "true" : "false");
}
i(EZ, "BooleanLiteralTypeAnnotation");
function TZ() {
this.word("null");
}
i(TZ, "NullLiteralTypeAnnotation");
function SZ(e, t) {
Su(t) || (this.word("declare"), this.space()), this.word("class"), this.space(), this._interfaceish(e);
}
i(SZ, "DeclareClass");
function xZ(e, t) {
Su(t) || (this.word("declare"), this.space()), this.word("function"), this.space(), this.print(e.id), this.print(e.id.typeAnnotation.typeAnnotation),
e.predicate && (this.space(), this.print(e.predicate)), this.semicolon();
}
i(xZ, "DeclareFunction");
function vZ() {
this.tokenChar(37), this.word("checks");
}
i(vZ, "InferredPredicate");
function PZ(e) {
this.tokenChar(37), this.word("checks"), this.tokenChar(40), this.print(e.value), this.tokenChar(41);
}
i(PZ, "DeclaredPredicate");
function AZ(e) {
this.word("declare"), this.space(), this.InterfaceDeclaration(e);
}
i(AZ, "DeclareInterface");
function CZ(e) {
this.word("declare"), this.space(), this.word("module"), this.space(), this.print(e.id), this.space(), this.print(e.body);
}
i(CZ, "DeclareModule");
function DZ(e) {
this.word("declare"), this.space(), this.word("module"), this.tokenChar(46), this.word("exports"), this.print(e.typeAnnotation);
}
i(DZ, "DeclareModuleExports");
function wZ(e) {
this.word("declare"), this.space(), this.TypeAlias(e);
}
i(wZ, "DeclareTypeAlias");
function IZ(e, t) {
Su(t) || (this.word("declare"), this.space()), this.OpaqueType(e);
}
i(IZ, "DeclareOpaqueType");
function _Z(e, t) {
Su(t) || (this.word("declare"), this.space()), this.word("var"), this.space(), this.print(e.id), this.print(e.id.typeAnnotation), this.semicolon();
}
i(_Z, "DeclareVariable");
function OZ(e) {
this.word("declare"), this.space(), this.word("export"), this.space(), e.default && (this.word("default"), this.space()), VZ.call(this, e);
}
i(OZ, "DeclareExportDeclaration");
function NZ(e) {
this.word("declare"), this.space(), dZ.ExportAllDeclaration.call(this, e);
}
i(NZ, "DeclareExportAllDeclaration");
function BZ(e) {
let {
id: t,
body: r
} = e;
this.word("enum"), this.space(), this.print(t), this.print(r);
}
i(BZ, "EnumDeclaration");
function xu(e, t, r) {
r && (e.space(), e.word("of"), e.space(), e.word(t)), e.space();
}
i(xu, "enumExplicitType");
function vu(e, t) {
let {
members: r
} = t;
e.token("{"), e.indent(), e.newline();
for (let n of r)
e.print(n), e.newline();
t.hasUnknownMembers && (e.token("..."), e.newline()), e.dedent(), e.token("}");
}
i(vu, "enumBody");
function kZ(e) {
let {
explicitType: t
} = e;
xu(this, "boolean", t), vu(this, e);
}
i(kZ, "EnumBooleanBody");
function FZ(e) {
let {
explicitType: t
} = e;
xu(this, "number", t), vu(this, e);
}
i(FZ, "EnumNumberBody");
function jZ(e) {
let {
explicitType: t
} = e;
xu(this, "string", t), vu(this, e);
}
i(jZ, "EnumStringBody");
function LZ(e) {
xu(this, "symbol", !0), vu(this, e);
}
i(LZ, "EnumSymbolBody");
function MZ(e) {
let {
id: t
} = e;
this.print(t), this.tokenChar(44);
}
i(MZ, "EnumDefaultedMember");
function Dm(e, t) {
e.print(t.id), e.space(), e.token("="), e.space(), e.print(t.init), e.token(",");
}
i(Dm, "enumInitializedMember");
function RZ(e) {
Dm(this, e);
}
i(RZ, "EnumBooleanMember");
function qZ(e) {
Dm(this, e);
}
i(qZ, "EnumNumberMember");
function UZ(e) {
Dm(this, e);
}
i(UZ, "EnumStringMember");
function VZ(e) {
if (e.declaration) {
let t = e.declaration;
this.print(t), mZ(t) || this.semicolon();
} else
this.tokenChar(123), e.specifiers.length && (this.space(), this.printList(e.specifiers), this.space()), this.tokenChar(125), e.source &&
(this.space(), this.word("from"), this.space(), this.print(e.source)), this.semicolon();
}
i(VZ, "FlowExportDeclaration");
function $Z() {
this.tokenChar(42);
}
i($Z, "ExistsTypeAnnotation");
function WZ(e, t) {
this.print(e.typeParameters), this.tokenChar(40), e.this && (this.word("this"), this.tokenChar(58), this.space(), this.print(e.this.typeAnnotation),
(e.params.length || e.rest) && (this.tokenChar(44), this.space())), this.printList(e.params), e.rest && (e.params.length && (this.tokenChar(
44), this.space()), this.token("..."), this.print(e.rest)), this.tokenChar(41);
let r = t?.type;
r != null && (r === "ObjectTypeCallProperty" || r === "ObjectTypeInternalSlot" || r === "DeclareFunction" || r === "ObjectTypeProperty" &&
t.method) ? this.tokenChar(58) : (this.space(), this.token("=>")), this.space(), this.print(e.returnType);
}
i(WZ, "FunctionTypeAnnotation");
function KZ(e) {
this.print(e.name), e.optional && this.tokenChar(63), e.name && (this.tokenChar(58), this.space()), this.print(e.typeAnnotation);
}
i(KZ, "FunctionTypeParam");
function GZ(e) {
this.print(e.id), this.print(e.typeParameters, !0);
}
i(GZ, "InterfaceExtends");
function HZ(e) {
var t;
if (this.print(e.id), this.print(e.typeParameters), (t = e.extends) != null && t.length && (this.space(), this.word("extends"), this.space(),
this.printList(e.extends)), e.type === "DeclareClass") {
var r, n;
(r = e.mixins) != null && r.length && (this.space(), this.word("mixins"), this.space(), this.printList(e.mixins)), (n = e.implements) !=
null && n.length && (this.space(), this.word("implements"), this.space(), this.printList(e.implements));
}
this.space(), this.print(e.body);
}
i(HZ, "_interfaceish");
function YZ(e) {
var t;
let r = (t = e.variance) == null ? void 0 : t.kind;
r != null && (r === "plus" ? this.tokenChar(43) : r === "minus" && this.tokenChar(45));
}
i(YZ, "_variance");
function JZ(e) {
this.word("interface"), this.space(), this._interfaceish(e);
}
i(JZ, "InterfaceDeclaration");
function XZ(e) {
this.space(), this.token("&", !1, e), this.space();
}
i(XZ, "andSeparator");
function zZ(e) {
var t;
this.word("interface"), (t = e.extends) != null && t.length && (this.space(), this.word("extends"), this.space(), this.printList(e.extends)),
this.space(), this.print(e.body);
}
i(zZ, "InterfaceTypeAnnotation");
function QZ(e) {
this.printJoin(e.types, void 0, void 0, XZ);
}
i(QZ, "IntersectionTypeAnnotation");
function ZZ() {
this.word("mixed");
}
i(ZZ, "MixedTypeAnnotation");
function eee() {
this.word("empty");
}
i(eee, "EmptyTypeAnnotation");
function tee(e) {
this.tokenChar(63), this.print(e.typeAnnotation);
}
i(tee, "NullableTypeAnnotation");
function ree() {
this.word("number");
}
i(ree, "NumberTypeAnnotation");
function nee() {
this.word("string");
}
i(nee, "StringTypeAnnotation");
function see() {
this.word("this");
}
i(see, "ThisTypeAnnotation");
function iee(e) {
this.tokenChar(91), this.printList(e.types), this.tokenChar(93);
}
i(iee, "TupleTypeAnnotation");
function aee(e) {
this.word("typeof"), this.space(), this.print(e.argument);
}
i(aee, "TypeofTypeAnnotation");
function oee(e) {
this.word("type"), this.space(), this.print(e.id), this.print(e.typeParameters), this.space(), this.tokenChar(61), this.space(), this.print(
e.right), this.semicolon();
}
i(oee, "TypeAlias");
function lee(e, t) {
this.tokenChar(58), this.space(), t.type === "ArrowFunctionExpression" ? this.tokenContext |= hZ.TokenContext.arrowFlowReturnType : e.optional &&
this.tokenChar(63), this.print(e.typeAnnotation);
}
i(lee, "TypeAnnotation");
function uee(e) {
this.tokenChar(60), this.printList(e.params), this.tokenChar(62);
}
i(uee, "TypeParameterInstantiation");
function cee(e) {
this._variance(e), this.word(e.name), e.bound && this.print(e.bound), e.default && (this.space(), this.tokenChar(61), this.space(), this.
print(e.default));
}
i(cee, "TypeParameter");
function pee(e) {
this.word("opaque"), this.space(), this.word("type"), this.space(), this.print(e.id), this.print(e.typeParameters), e.supertype && (this.
tokenChar(58), this.space(), this.print(e.supertype)), e.impltype && (this.space(), this.tokenChar(61), this.space(), this.print(e.impltype)),
this.semicolon();
}
i(pee, "OpaqueType");
function fee(e) {
e.exact ? this.token("{|") : this.tokenChar(123);
let t = [...e.properties, ...e.callProperties || [], ...e.indexers || [], ...e.internalSlots || []];
t.length && (this.newline(), this.space(), this.printJoin(t, !0, !0, void 0, void 0, /* @__PURE__ */ i(function(n) {
if (n && !t[0]) return 1;
}, "addNewlines"), () => {
(t.length !== 1 || e.inexact) && (this.tokenChar(44), this.space());
}), this.space()), e.inexact && (this.indent(), this.token("..."), t.length && this.newline(), this.dedent()), e.exact ? this.token("|}") :
this.tokenChar(125);
}
i(fee, "ObjectTypeAnnotation");
function dee(e) {
e.static && (this.word("static"), this.space()), this.tokenChar(91), this.tokenChar(91), this.print(e.id), this.tokenChar(93), this.tokenChar(
93), e.optional && this.tokenChar(63), e.method || (this.tokenChar(58), this.space()), this.print(e.value);
}
i(dee, "ObjectTypeInternalSlot");
function hee(e) {
e.static && (this.word("static"), this.space()), this.print(e.value);
}
i(hee, "ObjectTypeCallProperty");
function mee(e) {
e.static && (this.word("static"), this.space()), this._variance(e), this.tokenChar(91), e.id && (this.print(e.id), this.tokenChar(58), this.
space()), this.print(e.key), this.tokenChar(93), this.tokenChar(58), this.space(), this.print(e.value);
}
i(mee, "ObjectTypeIndexer");
function yee(e) {
e.proto && (this.word("proto"), this.space()), e.static && (this.word("static"), this.space()), (e.kind === "get" || e.kind === "set") &&
(this.word(e.kind), this.space()), this._variance(e), this.print(e.key), e.optional && this.tokenChar(63), e.method || (this.tokenChar(58),
this.space()), this.print(e.value);
}
i(yee, "ObjectTypeProperty");
function gee(e) {
this.token("..."), this.print(e.argument);
}
i(gee, "ObjectTypeSpreadProperty");
function bee(e) {
this.print(e.qualification), this.tokenChar(46), this.print(e.id);
}
i(bee, "QualifiedTypeIdentifier");
function Eee() {
this.word("symbol");
}
i(Eee, "SymbolTypeAnnotation");
function Tee(e) {
this.space(), this.token("|", !1, e), this.space();
}
i(Tee, "orSeparator");
function See(e) {
this.printJoin(e.types, void 0, void 0, Tee);
}
i(See, "UnionTypeAnnotation");
function xee(e) {
this.tokenChar(40), this.print(e.expression), this.print(e.typeAnnotation), this.tokenChar(41);
}
i(xee, "TypeCastExpression");
function vee(e) {
e.kind === "plus" ? this.tokenChar(43) : this.tokenChar(45);
}
i(vee, "Variance");
function Pee() {
this.word("void");
}
i(Pee, "VoidTypeAnnotation");
function Aee(e) {
this.print(e.objectType, !0), this.tokenChar(91), this.print(e.indexType), this.tokenChar(93);
}
i(Aee, "IndexedAccessType");
function Cee(e) {
this.print(e.objectType), e.optional && this.token("?."), this.tokenChar(91), this.print(e.indexType), this.tokenChar(93);
}
i(Cee, "OptionalIndexedAccessType");
});
// ../node_modules/@babel/generator/lib/generators/base.js
var gv = P((Nn) => {
"use strict";
Object.defineProperty(Nn, "__esModule", {
value: !0
});
Nn.BlockStatement = Iee;
Nn.Directive = _ee;
Nn.DirectiveLiteral = Bee;
Nn.File = Dee;
Nn.InterpreterDirective = kee;
Nn.Placeholder = Fee;
Nn.Program = wee;
function Dee(e) {
e.program && this.print(e.program.interpreter), this.print(e.program);
}
i(Dee, "File");
function wee(e) {
var t;
this.noIndentInnerCommentsHere(), this.printInnerComments();
let r = (t = e.directives) == null ? void 0 : t.length;
if (r) {
var n;
let s = e.body.length ? 2 : 1;
this.printSequence(e.directives, void 0, s), (n = e.directives[r - 1].trailingComments) != null && n.length || this.newline(s);
}
this.printSequence(e.body);
}
i(wee, "Program");
function Iee(e) {
var t;
this.tokenChar(123);
let r = this.enterDelimited(), n = (t = e.directives) == null ? void 0 : t.length;
if (n) {
var s;
let a = e.body.length ? 2 : 1;
this.printSequence(e.directives, !0, a), (s = e.directives[n - 1].trailingComments) != null && s.length || this.newline(a);
}
this.printSequence(e.body, !0), r(), this.rightBrace(e);
}
i(Iee, "BlockStatement");
function _ee(e) {
this.print(e.value), this.semicolon();
}
i(_ee, "Directive");
var Oee = /(?:^|[^\\])(?:\\\\)*'/, Nee = /(?:^|[^\\])(?:\\\\)*"/;
function Bee(e) {
let t = this.getPossibleRaw(e);
if (!this.format.minified && t !== void 0) {
this.token(t);
return;
}
let {
value: r
} = e;
if (!Nee.test(r))
this.token(`"${r}"`);
else if (!Oee.test(r))
this.token(`'${r}'`);
else
throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");
}
i(Bee, "DirectiveLiteral");
function kee(e) {
this.token(`#!${e.value}`), this.newline(1, !0);
}
i(kee, "InterpreterDirective");
function Fee(e) {
this.token("%%"), this.print(e.name), this.token("%%"), e.expectedNode === "Statement" && this.semicolon();
}
i(Fee, "Placeholder");
});
// ../node_modules/@babel/generator/lib/generators/jsx.js
var bv = P(($t) => {
"use strict";
Object.defineProperty($t, "__esModule", {
value: !0
});
$t.JSXAttribute = jee;
$t.JSXClosingElement = Hee;
$t.JSXClosingFragment = zee;
$t.JSXElement = Wee;
$t.JSXEmptyExpression = Yee;
$t.JSXExpressionContainer = Uee;
$t.JSXFragment = Jee;
$t.JSXIdentifier = Lee;
$t.JSXMemberExpression = Ree;
$t.JSXNamespacedName = Mee;
$t.JSXOpeningElement = Gee;
$t.JSXOpeningFragment = Xee;
$t.JSXSpreadAttribute = qee;
$t.JSXSpreadChild = Vee;
$t.JSXText = $ee;
function jee(e) {
this.print(e.name), e.value && (this.tokenChar(61), this.print(e.value));
}
i(jee, "JSXAttribute");
function Lee(e) {
this.word(e.name);
}
i(Lee, "JSXIdentifier");
function Mee(e) {
this.print(e.namespace), this.tokenChar(58), this.print(e.name);
}
i(Mee, "JSXNamespacedName");
function Ree(e) {
this.print(e.object), this.tokenChar(46), this.print(e.property);
}
i(Ree, "JSXMemberExpression");
function qee(e) {
this.tokenChar(123), this.token("..."), this.print(e.argument), this.rightBrace(e);
}
i(qee, "JSXSpreadAttribute");
function Uee(e) {
this.tokenChar(123), this.print(e.expression), this.rightBrace(e);
}
i(Uee, "JSXExpressionContainer");
function Vee(e) {
this.tokenChar(123), this.token("..."), this.print(e.expression), this.rightBrace(e);
}
i(Vee, "JSXSpreadChild");
function $ee(e) {
let t = this.getPossibleRaw(e);
t !== void 0 ? this.token(t, !0) : this.token(e.value, !0);
}
i($ee, "JSXText");
function Wee(e) {
let t = e.openingElement;
if (this.print(t), !t.selfClosing) {
this.indent();
for (let r of e.children)
this.print(r);
this.dedent(), this.print(e.closingElement);
}
}
i(Wee, "JSXElement");
function Kee() {
this.space();
}
i(Kee, "spaceSeparator");
function Gee(e) {
this.tokenChar(60), this.print(e.name), e.typeArguments && this.print(e.typeArguments), this.print(e.typeParameters), e.attributes.length >
0 && (this.space(), this.printJoin(e.attributes, void 0, void 0, Kee)), e.selfClosing && (this.space(), this.tokenChar(47)), this.tokenChar(
62);
}
i(Gee, "JSXOpeningElement");
function Hee(e) {
this.tokenChar(60), this.tokenChar(47), this.print(e.name), this.tokenChar(62);
}
i(Hee, "JSXClosingElement");
function Yee() {
this.printInnerComments();
}
i(Yee, "JSXEmptyExpression");
function Jee(e) {
this.print(e.openingFragment), this.indent();
for (let t of e.children)
this.print(t);
this.dedent(), this.print(e.closingFragment);
}
i(Jee, "JSXFragment");
function Xee() {
this.tokenChar(60), this.tokenChar(62);
}
i(Xee, "JSXOpeningFragment");
function zee() {
this.token("</"), this.tokenChar(62);
}
i(zee, "JSXClosingFragment");
});
// ../node_modules/@babel/generator/lib/generators/typescript.js
var vv = P((oe) => {
"use strict";
Object.defineProperty(oe, "__esModule", {
value: !0
});
oe.TSAnyKeyword = pte;
oe.TSArrayType = Nte;
oe.TSSatisfiesExpression = oe.TSAsExpression = zte;
oe.TSBigIntKeyword = fte;
oe.TSBooleanKeyword = yte;
oe.TSCallSignatureDeclaration = ite;
oe.TSInterfaceHeritage = oe.TSClassImplements = Hte;
oe.TSConditionalType = Rte;
oe.TSConstructSignatureDeclaration = ate;
oe.TSConstructorType = Cte;
oe.TSDeclareFunction = rte;
oe.TSDeclareMethod = nte;
oe.TSEnumBody = xv;
oe.TSEnumDeclaration = ere;
oe.TSEnumMember = tre;
oe.TSExportAssignment = lre;
oe.TSExternalModuleReference = are;
oe.TSFunctionType = Ate;
oe.TSImportEqualsDeclaration = ire;
oe.TSImportType = sre;
oe.TSIndexSignature = cte;
oe.TSIndexedAccessType = $te;
oe.TSInferType = qte;
oe.TSInstantiationExpression = Zte;
oe.TSInterfaceBody = Jte;
oe.TSInterfaceDeclaration = Yte;
oe.TSIntersectionType = Mte;
oe.TSIntrinsicKeyword = vte;
oe.TSLiteralType = Gte;
oe.TSMappedType = Wte;
oe.TSMethodSignature = ute;
oe.TSModuleBlock = nre;
oe.TSModuleDeclaration = rre;
oe.TSNamedTupleMember = jte;
oe.TSNamespaceExportDeclaration = ure;
oe.TSNeverKeyword = xte;
oe.TSNonNullExpression = ore;
oe.TSNullKeyword = Ste;
oe.TSNumberKeyword = hte;
oe.TSObjectKeyword = mte;
oe.TSOptionalType = kte;
oe.TSParameterProperty = tte;
oe.TSParenthesizedType = Ute;
oe.TSPropertySignature = ote;
oe.TSQualifiedName = ste;
oe.TSRestType = Fte;
oe.TSStringKeyword = gte;
oe.TSSymbolKeyword = bte;
oe.TSTemplateLiteralType = Kte;
oe.TSThisType = Pte;
oe.TSTupleType = Bte;
oe.TSTypeAliasDeclaration = Xte;
oe.TSTypeAnnotation = Qee;
oe.TSTypeAssertion = Qte;
oe.TSTypeLiteral = Ote;
oe.TSTypeOperator = Vte;
oe.TSTypeParameter = ete;
oe.TSTypeParameterDeclaration = oe.TSTypeParameterInstantiation = Zee;
oe.TSTypePredicate = Ite;
oe.TSTypeQuery = _te;
oe.TSTypeReference = wte;
oe.TSUndefinedKeyword = Tte;
oe.TSUnionType = Lte;
oe.TSUnknownKeyword = dte;
oe.TSVoidKeyword = Ete;
oe.tsPrintClassMemberModifiers = pre;
oe.tsPrintFunctionOrConstructorType = Dte;
oe.tsPrintPropertyOrMethodName = lte;
oe.tsPrintSignatureDeclarationBase = cre;
function Qee(e, t) {
this.token((t.type === "TSFunctionType" || t.type === "TSConstructorType") && t.typeAnnotation === e ? "=>" : ":"), this.space(), e.optional &&
this.tokenChar(63), this.print(e.typeAnnotation);
}
i(Qee, "TSTypeAnnotation");
function Zee(e, t) {
this.tokenChar(60);
let r = t.type === "ArrowFunctionExpression" && e.params.length === 1;
this.tokenMap && e.start != null && e.end != null && (r && (r = !!this.tokenMap.find(e, (n) => this.tokenMap.matchesOriginal(n, ","))), r ||
(r = this.shouldPrintTrailingComma(">"))), this.printList(e.params, r), this.tokenChar(62);
}
i(Zee, "TSTypeParameterInstantiation");
function ete(e) {
e.in && (this.word("in"), this.space()), e.out && (this.word("out"), this.space()), this.word(e.name), e.constraint && (this.space(), this.
word("extends"), this.space(), this.print(e.constraint)), e.default && (this.space(), this.tokenChar(61), this.space(), this.print(e.default));
}
i(ete, "TSTypeParameter");
function tte(e) {
e.accessibility && (this.word(e.accessibility), this.space()), e.readonly && (this.word("readonly"), this.space()), this._param(e.parameter);
}
i(tte, "TSParameterProperty");
function rte(e, t) {
e.declare && (this.word("declare"), this.space()), this._functionHead(e, t), this.semicolon();
}
i(rte, "TSDeclareFunction");
function nte(e) {
this._classMethodHead(e), this.semicolon();
}
i(nte, "TSDeclareMethod");
function ste(e) {
this.print(e.left), this.tokenChar(46), this.print(e.right);
}
i(ste, "TSQualifiedName");
function ite(e) {
this.tsPrintSignatureDeclarationBase(e), io(this, e);
}
i(ite, "TSCallSignatureDeclaration");
function io(e, t) {
if (!e.tokenMap || !t.start || !t.end) {
e.semicolon();
return;
}
e.tokenMap.endMatches(t, ",") ? e.token(",") : e.tokenMap.endMatches(t, ";") && e.semicolon();
}
i(io, "maybePrintTrailingCommaOrSemicolon");
function ate(e) {
this.word("new"), this.space(), this.tsPrintSignatureDeclarationBase(e), io(this, e);
}
i(ate, "TSConstructSignatureDeclaration");
function ote(e) {
let {
readonly: t
} = e;
t && (this.word("readonly"), this.space()), this.tsPrintPropertyOrMethodName(e), this.print(e.typeAnnotation), io(this, e);
}
i(ote, "TSPropertySignature");
function lte(e) {
e.computed && this.tokenChar(91), this.print(e.key), e.computed && this.tokenChar(93), e.optional && this.tokenChar(63);
}
i(lte, "tsPrintPropertyOrMethodName");
function ute(e) {
let {
kind: t
} = e;
(t === "set" || t === "get") && (this.word(t), this.space()), this.tsPrintPropertyOrMethodName(e), this.tsPrintSignatureDeclarationBase(
e), io(this, e);
}
i(ute, "TSMethodSignature");
function cte(e) {
let {
readonly: t,
static: r
} = e;
r && (this.word("static"), this.space()), t && (this.word("readonly"), this.space()), this.tokenChar(91), this._parameters(e.parameters,
"]"), this.print(e.typeAnnotation), io(this, e);
}
i(cte, "TSIndexSignature");
function pte() {
this.word("any");
}
i(pte, "TSAnyKeyword");
function fte() {
this.word("bigint");
}
i(fte, "TSBigIntKeyword");
function dte() {
this.word("unknown");
}
i(dte, "TSUnknownKeyword");
function hte() {
this.word("number");
}
i(hte, "TSNumberKeyword");
function mte() {
this.word("object");
}
i(mte, "TSObjectKeyword");
function yte() {
this.word("boolean");
}
i(yte, "TSBooleanKeyword");
function gte() {
this.word("string");
}
i(gte, "TSStringKeyword");
function bte() {
this.word("symbol");
}
i(bte, "TSSymbolKeyword");
function Ete() {
this.word("void");
}
i(Ete, "TSVoidKeyword");
function Tte() {
this.word("undefined");
}
i(Tte, "TSUndefinedKeyword");
function Ste() {
this.word("null");
}
i(Ste, "TSNullKeyword");
function xte() {
this.word("never");
}
i(xte, "TSNeverKeyword");
function vte() {
this.word("intrinsic");
}
i(vte, "TSIntrinsicKeyword");
function Pte() {
this.word("this");
}
i(Pte, "TSThisType");
function Ate(e) {
this.tsPrintFunctionOrConstructorType(e);
}
i(Ate, "TSFunctionType");
function Cte(e) {
e.abstract && (this.word("abstract"), this.space()), this.word("new"), this.space(), this.tsPrintFunctionOrConstructorType(e);
}
i(Cte, "TSConstructorType");
function Dte(e) {
let {
typeParameters: t
} = e, r = e.parameters;
this.print(t), this.tokenChar(40), this._parameters(r, ")"), this.space();
let n = e.typeAnnotation;
this.print(n);
}
i(Dte, "tsPrintFunctionOrConstructorType");
function wte(e) {
let t = e.typeParameters;
this.print(e.typeName, !!t), this.print(t);
}
i(wte, "TSTypeReference");
function Ite(e) {
e.asserts && (this.word("asserts"), this.space()), this.print(e.parameterName), e.typeAnnotation && (this.space(), this.word("is"), this.
space(), this.print(e.typeAnnotation.typeAnnotation));
}
i(Ite, "TSTypePredicate");
function _te(e) {
this.word("typeof"), this.space(), this.print(e.exprName);
let t = e.typeParameters;
t && this.print(t);
}
i(_te, "TSTypeQuery");
function Ote(e) {
Pu(this, e, () => this.printJoin(e.members, !0, !0));
}
i(Ote, "TSTypeLiteral");
function Nte(e) {
this.print(e.elementType, !0), this.tokenChar(91), this.tokenChar(93);
}
i(Nte, "TSArrayType");
function Bte(e) {
this.tokenChar(91), this.printList(e.elementTypes, this.shouldPrintTrailingComma("]")), this.tokenChar(93);
}
i(Bte, "TSTupleType");
function kte(e) {
this.print(e.typeAnnotation), this.tokenChar(63);
}
i(kte, "TSOptionalType");
function Fte(e) {
this.token("..."), this.print(e.typeAnnotation);
}
i(Fte, "TSRestType");
function jte(e) {
this.print(e.label), e.optional && this.tokenChar(63), this.tokenChar(58), this.space(), this.print(e.elementType);
}
i(jte, "TSNamedTupleMember");
function Lte(e) {
Sv(this, e, "|");
}
i(Lte, "TSUnionType");
function Mte(e) {
Sv(this, e, "&");
}
i(Mte, "TSIntersectionType");
function Sv(e, t, r) {
var n;
let s = 0;
(n = e.tokenMap) != null && n.startMatches(t, r) && (s = 1, e.token(r)), e.printJoin(t.types, void 0, void 0, function(a) {
this.space(), this.token(r, null, a + s), this.space();
});
}
i(Sv, "tsPrintUnionOrIntersectionType");
function Rte(e) {
this.print(e.checkType), this.space(), this.word("extends"), this.space(), this.print(e.extendsType), this.space(), this.tokenChar(63), this.
space(), this.print(e.trueType), this.space(), this.tokenChar(58), this.space(), this.print(e.falseType);
}
i(Rte, "TSConditionalType");
function qte(e) {
this.word("infer"), this.print(e.typeParameter);
}
i(qte, "TSInferType");
function Ute(e) {
this.tokenChar(40), this.print(e.typeAnnotation), this.tokenChar(41);
}
i(Ute, "TSParenthesizedType");
function Vte(e) {
this.word(e.operator), this.space(), this.print(e.typeAnnotation);
}
i(Vte, "TSTypeOperator");
function $te(e) {
this.print(e.objectType, !0), this.tokenChar(91), this.print(e.indexType), this.tokenChar(93);
}
i($te, "TSIndexedAccessType");
function Wte(e) {
let {
nameType: t,
optional: r,
readonly: n,
typeAnnotation: s
} = e;
this.tokenChar(123);
let a = this.enterDelimited();
this.space(), n && (Ev(this, n), this.word("readonly"), this.space()), this.tokenChar(91), this.word(e.typeParameter.name), this.space(),
this.word("in"), this.space(), this.print(e.typeParameter.constraint), t && (this.space(), this.word("as"), this.space(), this.print(t)),
this.tokenChar(93), r && (Ev(this, r), this.tokenChar(63)), s && (this.tokenChar(58), this.space(), this.print(s)), this.space(), a(), this.
tokenChar(125);
}
i(Wte, "TSMappedType");
function Ev(e, t) {
t !== !0 && e.token(t);
}
i(Ev, "tokenIfPlusMinus");
function Kte(e) {
this._printTemplate(e, e.types);
}
i(Kte, "TSTemplateLiteralType");
function Gte(e) {
this.print(e.literal);
}
i(Gte, "TSLiteralType");
function Hte(e) {
this.print(e.expression), this.print(e.typeArguments);
}
i(Hte, "TSClassImplements");
function Yte(e) {
let {
declare: t,
id: r,
typeParameters: n,
extends: s,
body: a
} = e;
t && (this.word("declare"), this.space()), this.word("interface"), this.space(), this.print(r), this.print(n), s != null && s.length && (this.
space(), this.word("extends"), this.space(), this.printList(s)), this.space(), this.print(a);
}
i(Yte, "TSInterfaceDeclaration");
function Jte(e) {
Pu(this, e, () => this.printJoin(e.body, !0, !0));
}
i(Jte, "TSInterfaceBody");
function Xte(e) {
let {
declare: t,
id: r,
typeParameters: n,
typeAnnotation: s
} = e;
t && (this.word("declare"), this.space()), this.word("type"), this.space(), this.print(r), this.print(n), this.space(), this.tokenChar(61),
this.space(), this.print(s), this.semicolon();
}
i(Xte, "TSTypeAliasDeclaration");
function zte(e) {
let {
type: t,
expression: r,
typeAnnotation: n
} = e;
this.print(r, !0), this.space(), this.word(t === "TSAsExpression" ? "as" : "satisfies"), this.space(), this.print(n);
}
i(zte, "TSTypeExpression");
function Qte(e) {
let {
typeAnnotation: t,
expression: r
} = e;
this.tokenChar(60), this.print(t), this.tokenChar(62), this.space(), this.print(r);
}
i(Qte, "TSTypeAssertion");
function Zte(e) {
this.print(e.expression), this.print(e.typeParameters);
}
i(Zte, "TSInstantiationExpression");
function ere(e) {
let {
declare: t,
const: r,
id: n
} = e;
t && (this.word("declare"), this.space()), r && (this.word("const"), this.space()), this.word("enum"), this.space(), this.print(n), this.
space(), xv.call(this, e);
}
i(ere, "TSEnumDeclaration");
function xv(e) {
Pu(this, e, () => {
var t;
return this.printList(e.members, (t = this.shouldPrintTrailingComma("}")) != null ? t : !0, !0, !0);
});
}
i(xv, "TSEnumBody");
function tre(e) {
let {
id: t,
initializer: r
} = e;
this.print(t), r && (this.space(), this.tokenChar(61), this.space(), this.print(r));
}
i(tre, "TSEnumMember");
function rre(e) {
let {
declare: t,
id: r,
kind: n
} = e;
t && (this.word("declare"), this.space());
{
if (e.global || (this.word(n ?? (r.type === "Identifier" ? "namespace" : "module")), this.space()), this.print(r), !e.body) {
this.semicolon();
return;
}
let s = e.body;
for (; s.type === "TSModuleDeclaration"; )
this.tokenChar(46), this.print(s.id), s = s.body;
this.space(), this.print(s);
}
}
i(rre, "TSModuleDeclaration");
function nre(e) {
Pu(this, e, () => this.printSequence(e.body, !0));
}
i(nre, "TSModuleBlock");
function sre(e) {
let {
argument: t,
qualifier: r,
options: n
} = e;
this.word("import"), this.tokenChar(40), this.print(t), n && (this.tokenChar(44), this.print(n)), this.tokenChar(41), r && (this.tokenChar(
46), this.print(r));
let s = e.typeParameters;
s && this.print(s);
}
i(sre, "TSImportType");
function ire(e) {
let {
id: t,
moduleReference: r
} = e;
e.isExport && (this.word("export"), this.space()), this.word("import"), this.space(), this.print(t), this.space(), this.tokenChar(61), this.
space(), this.print(r), this.semicolon();
}
i(ire, "TSImportEqualsDeclaration");
function are(e) {
this.token("require("), this.print(e.expression), this.tokenChar(41);
}
i(are, "TSExternalModuleReference");
function ore(e) {
this.print(e.expression), this.tokenChar(33);
}
i(ore, "TSNonNullExpression");
function lre(e) {
this.word("export"), this.space(), this.tokenChar(61), this.space(), this.print(e.expression), this.semicolon();
}
i(lre, "TSExportAssignment");
function ure(e) {
this.word("export"), this.space(), this.word("as"), this.space(), this.word("namespace"), this.space(), this.print(e.id), this.semicolon();
}
i(ure, "TSNamespaceExportDeclaration");
function cre(e) {
let {
typeParameters: t
} = e, r = e.parameters;
this.print(t), this.tokenChar(40), this._parameters(r, ")");
let n = e.typeAnnotation;
this.print(n);
}
i(cre, "tsPrintSignatureDeclarationBase");
function pre(e) {
let t = e.type === "ClassPrivateProperty", r = e.type === "ClassAccessorProperty" || e.type === "ClassProperty";
Tv(this, e, [r && e.declare && "declare", !t && e.accessibility]), e.static && (this.word("static"), this.space()), Tv(this, e, [!t && e.
abstract && "abstract", !t && e.override && "override", (r || t) && e.readonly && "readonly"]);
}
i(pre, "tsPrintClassMemberModifiers");
function Pu(e, t, r) {
e.token("{");
let n = e.enterDelimited();
r(), n(), e.rightBrace(t);
}
i(Pu, "printBraced");
function Tv(e, t, r) {
var n;
let s = /* @__PURE__ */ new Set();
for (let a of r)
a && s.add(a);
(n = e.tokenMap) == null || n.find(t, (a) => {
if (s.has(a.value))
return e.token(a.value), e.space(), s.delete(a.value), s.size === 0;
});
for (let a of s)
e.word(a), e.space();
}
i(Tv, "printModifiersList");
});
// ../node_modules/@babel/generator/lib/generators/index.js
var Pv = P((Je) => {
"use strict";
Object.defineProperty(Je, "__esModule", {
value: !0
});
var wm = Xx();
Object.keys(wm).forEach(function(e) {
e === "default" || e === "__esModule" || e in Je && Je[e] === wm[e] || Object.defineProperty(Je, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return wm[e];
}, "get")
});
});
var Im = Qx();
Object.keys(Im).forEach(function(e) {
e === "default" || e === "__esModule" || e in Je && Je[e] === Im[e] || Object.defineProperty(Je, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Im[e];
}, "get")
});
});
var _m = rv();
Object.keys(_m).forEach(function(e) {
e === "default" || e === "__esModule" || e in Je && Je[e] === _m[e] || Object.defineProperty(Je, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return _m[e];
}, "get")
});
});
var Om = nv();
Object.keys(Om).forEach(function(e) {
e === "default" || e === "__esModule" || e in Je && Je[e] === Om[e] || Object.defineProperty(Je, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Om[e];
}, "get")
});
});
var Nm = sv();
Object.keys(Nm).forEach(function(e) {
e === "default" || e === "__esModule" || e in Je && Je[e] === Nm[e] || Object.defineProperty(Je, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Nm[e];
}, "get")
});
});
var Bm = vm();
Object.keys(Bm).forEach(function(e) {
e === "default" || e === "__esModule" || e in Je && Je[e] === Bm[e] || Object.defineProperty(Je, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Bm[e];
}, "get")
});
});
var km = Cm();
Object.keys(km).forEach(function(e) {
e === "default" || e === "__esModule" || e in Je && Je[e] === km[e] || Object.defineProperty(Je, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return km[e];
}, "get")
});
});
var Fm = yv();
Object.keys(Fm).forEach(function(e) {
e === "default" || e === "__esModule" || e in Je && Je[e] === Fm[e] || Object.defineProperty(Je, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Fm[e];
}, "get")
});
});
var jm = gv();
Object.keys(jm).forEach(function(e) {
e === "default" || e === "__esModule" || e in Je && Je[e] === jm[e] || Object.defineProperty(Je, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return jm[e];
}, "get")
});
});
var Lm = bv();
Object.keys(Lm).forEach(function(e) {
e === "default" || e === "__esModule" || e in Je && Je[e] === Lm[e] || Object.defineProperty(Je, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Lm[e];
}, "get")
});
});
var Mm = vv();
Object.keys(Mm).forEach(function(e) {
e === "default" || e === "__esModule" || e in Je && Je[e] === Mm[e] || Object.defineProperty(Je, e, {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Mm[e];
}, "get")
});
});
});
// ../node_modules/@babel/generator/lib/generators/deprecated.js
var Av = P((Rm) => {
"use strict";
Object.defineProperty(Rm, "__esModule", {
value: !0
});
Rm.addDeprecatedGenerators = fre;
function fre(e) {
{
let t = {
Noop() {
},
TSExpressionWithTypeArguments(r) {
this.print(r.expression), this.print(r.typeParameters);
},
DecimalLiteral(r) {
let n = this.getPossibleRaw(r);
if (!this.format.minified && n !== void 0) {
this.word(n);
return;
}
this.word(r.value + "m");
}
};
Object.assign(e.prototype, t);
}
}
i(fre, "addDeprecatedGenerators");
});
// ../node_modules/@babel/generator/lib/printer.js
var Iv = P((Au) => {
"use strict";
Object.defineProperty(Au, "__esModule", {
value: !0
});
Au.default = void 0;
var dre = Nx(), Dv = os(), hre = De(), mre = Jx(), yre = Pv(), gre = Av(), {
isExpression: bre,
isFunction: Ere,
isStatement: Tre,
isClassBody: Sre,
isTSInterfaceBody: xre,
isTSEnumMember: vre
} = hre, Pre = /e/i, Are = /\.0+$/, wv = /[\n\r\u2028\u2029]/, Cre = /[\n\r\u2028\u2029]|\*\//;
function Cv(e) {
return e.type === "CommentLine" || wv.test(e.value);
}
i(Cv, "commentIsNewline");
var {
needsParens: Dre
} = Dv, ao = class {
static {
i(this, "Printer");
}
constructor(t, r, n, s) {
this.inForStatementInit = !1, this.tokenContext = 0, this._tokens = null, this._originalCode = null, this._currentNode = null, this._indent =
0, this._indentRepeat = 0, this._insideAux = !1, this._noLineTerminator = !1, this._noLineTerminatorAfterNode = null, this._printAuxAfterOnNextUserNode =
!1, this._printedComments = /* @__PURE__ */ new Set(), this._endsWithInteger = !1, this._endsWithWord = !1, this._endsWithDiv = !1, this.
_lastCommentLine = 0, this._endsWithInnerRaw = !1, this._indentInnerComments = !0, this.tokenMap = null, this._boundGetRawIdentifier =
this._getRawIdentifier.bind(this), this._printSemicolonBeforeNextNode = -1, this._printSemicolonBeforeNextToken = -1, this.format = t,
this._tokens = n, this._originalCode = s, this._indentRepeat = t.indent.style.length, this._inputMap = r?._inputMap, this._buf = new dre.
default(r, t.indent.style[0]);
}
enterForStatementInit() {
return this.inForStatementInit ? () => {
} : (this.inForStatementInit = !0, () => {
this.inForStatementInit = !1;
});
}
enterDelimited() {
let t = this.inForStatementInit, r = this._noLineTerminatorAfterNode;
return t === !1 && r === null ? () => {
} : (this.inForStatementInit = !1, this._noLineTerminatorAfterNode = null, () => {
this.inForStatementInit = t, this._noLineTerminatorAfterNode = r;
});
}
generate(t) {
return this.format.preserveFormat && (this.tokenMap = new mre.TokenMap(t, this._tokens, this._originalCode)), this.print(t), this._maybeAddAuxComment(),
this._buf.get();
}
indent() {
let {
format: t
} = this;
t.preserveFormat || t.compact || t.concise || this._indent++;
}
dedent() {
let {
format: t
} = this;
t.preserveFormat || t.compact || t.concise || this._indent--;
}
semicolon(t = !1) {
if (this._maybeAddAuxComment(), t) {
this._appendChar(59), this._noLineTerminator = !1;
return;
}
if (this.tokenMap) {
let r = this._currentNode;
if (r.start != null && r.end != null) {
if (!this.tokenMap.endMatches(r, ";")) {
this._printSemicolonBeforeNextNode = this._buf.getCurrentLine();
return;
}
let n = this.tokenMap.getIndexes(this._currentNode);
this._catchUpTo(this._tokens[n[n.length - 1]].loc.start);
}
}
this._queue(59), this._noLineTerminator = !1;
}
rightBrace(t) {
this.format.minified && this._buf.removeLastSemicolon(), this.sourceWithOffset("end", t.loc, -1), this.tokenChar(125);
}
rightParens(t) {
this.sourceWithOffset("end", t.loc, -1), this.tokenChar(41);
}
space(t = !1) {
let {
format: r
} = this;
if (!(r.compact || r.preserveFormat)) {
if (t)
this._space();
else if (this._buf.hasContent()) {
let n = this.getLastChar();
n !== 32 && n !== 10 && this._space();
}
}
}
word(t, r = !1) {
this.tokenContext = 0, this._maybePrintInnerComments(t), this._maybeAddAuxComment(), this.tokenMap && this._catchUpToCurrentToken(t), (this.
_endsWithWord || this._endsWithDiv && t.charCodeAt(0) === 47) && this._space(), this._append(t, !1), this._endsWithWord = !0, this._noLineTerminator =
r;
}
number(t, r) {
function n(s) {
if (s.length > 2 && s.charCodeAt(0) === 48) {
let a = s.charCodeAt(1);
return a === 98 || a === 111 || a === 120;
}
return !1;
}
i(n, "isNonDecimalLiteral"), this.word(t), this._endsWithInteger = Number.isInteger(r) && !n(t) && !Pre.test(t) && !Are.test(t) && t.charCodeAt(
t.length - 1) !== 46;
}
token(t, r = !1, n = 0) {
this.tokenContext = 0, this._maybePrintInnerComments(t, n), this._maybeAddAuxComment(), this.tokenMap && this._catchUpToCurrentToken(t,
n);
let s = this.getLastChar(), a = t.charCodeAt(0);
(s === 33 && (t === "--" || a === 61) || a === 43 && s === 43 || a === 45 && s === 45 || a === 46 && this._endsWithInteger) && this._space(),
this._append(t, r), this._noLineTerminator = !1;
}
tokenChar(t) {
this.tokenContext = 0;
let r = String.fromCharCode(t);
this._maybePrintInnerComments(r), this._maybeAddAuxComment(), this.tokenMap && this._catchUpToCurrentToken(r);
let n = this.getLastChar();
(t === 43 && n === 43 || t === 45 && n === 45 || t === 46 && this._endsWithInteger) && this._space(), this._appendChar(t), this._noLineTerminator =
!1;
}
newline(t = 1, r) {
if (!(t <= 0)) {
if (!r) {
if (this.format.retainLines || this.format.compact) return;
if (this.format.concise) {
this.space();
return;
}
}
t > 2 && (t = 2), t -= this._buf.getNewlineCount();
for (let n = 0; n < t; n++)
this._newline();
}
}
endsWith(t) {
return this.getLastChar() === t;
}
getLastChar() {
return this._buf.getLastChar();
}
endsWithCharAndNewline() {
return this._buf.endsWithCharAndNewline();
}
removeTrailingNewline() {
this._buf.removeTrailingNewline();
}
exactSource(t, r) {
if (!t) {
r();
return;
}
this._catchUp("start", t), this._buf.exactSource(t, r);
}
source(t, r) {
r && (this._catchUp(t, r), this._buf.source(t, r));
}
sourceWithOffset(t, r, n) {
!r || this.format.preserveFormat || (this._catchUp(t, r), this._buf.sourceWithOffset(t, r, n));
}
sourceIdentifierName(t, r) {
if (!this._buf._canMarkIdName) return;
let n = this._buf._sourcePosition;
n.identifierNamePos = r, n.identifierName = t;
}
_space() {
this._queue(32);
}
_newline() {
this._queue(10);
}
_catchUpToCurrentToken(t, r = 0) {
let n = this.tokenMap.findMatching(this._currentNode, t, r);
n && this._catchUpTo(n.loc.start), this._printSemicolonBeforeNextToken !== -1 && this._printSemicolonBeforeNextToken === this._buf.getCurrentLine() &&
(this._buf.appendChar(59), this._endsWithWord = !1, this._endsWithInteger = !1, this._endsWithDiv = !1), this._printSemicolonBeforeNextToken =
-1, this._printSemicolonBeforeNextNode = -1;
}
_append(t, r) {
this._maybeIndent(t.charCodeAt(0)), this._buf.append(t, r), this._endsWithWord = !1, this._endsWithInteger = !1, this._endsWithDiv = !1;
}
_appendChar(t) {
this._maybeIndent(t), this._buf.appendChar(t), this._endsWithWord = !1, this._endsWithInteger = !1, this._endsWithDiv = !1;
}
_queue(t) {
this._maybeIndent(t), this._buf.queue(t), this._endsWithWord = !1, this._endsWithInteger = !1;
}
_maybeIndent(t) {
this._indent && t !== 10 && this.endsWith(10) && this._buf.queueIndentation(this._getIndent());
}
_shouldIndent(t) {
if (this._indent && t !== 10 && this.endsWith(10))
return !0;
}
catchUp(t) {
if (!this.format.retainLines) return;
let r = t - this._buf.getCurrentLine();
for (let n = 0; n < r; n++)
this._newline();
}
_catchUp(t, r) {
let {
format: n
} = this;
if (!n.preserveFormat) {
n.retainLines && r != null && r[t] && this.catchUp(r[t].line);
return;
}
let s = r?.[t];
s != null && this._catchUpTo(s);
}
_catchUpTo({
line: t,
column: r,
index: n
}) {
let s = t - this._buf.getCurrentLine();
if (s > 0 && this._noLineTerminator)
return;
for (let o = 0; o < s; o++)
this._newline();
let a = s > 0 ? r : r - this._buf.getCurrentColumn();
if (a > 0) {
let o = this._originalCode ? this._originalCode.slice(n - a, n).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu,
" ") : " ".repeat(a);
this._append(o, !1);
}
}
_getIndent() {
return this._indentRepeat * this._indent;
}
printTerminatorless(t) {
this._noLineTerminator = !0, this.print(t);
}
print(t, r, n) {
var s, a, o;
if (!t) return;
this._endsWithInnerRaw = !1;
let l = t.type, u = this.format, c = u.concise;
t._compact && (u.concise = !0);
let p = this[l];
if (p === void 0)
throw new ReferenceError(`unknown node of type ${JSON.stringify(l)} with constructor ${JSON.stringify(t.constructor.name)}`);
let f = this._currentNode;
this._currentNode = t, this.tokenMap && (this._printSemicolonBeforeNextToken = this._printSemicolonBeforeNextNode);
let h = this._insideAux;
this._insideAux = t.loc == null, this._maybeAddAuxComment(this._insideAux && !h);
let y = (s = t.extra) == null ? void 0 : s.parenthesized, E = y && u.preserveFormat || y && u.retainFunctionParens && l === "FunctionE\
xpression" || Dre(t, f, this.tokenContext, this.inForStatementInit, u.preserveFormat ? this._boundGetRawIdentifier : void 0);
if (!E && y && (a = t.leadingComments) != null && a.length && t.leadingComments[0].type === "CommentBlock")
switch (f?.type) {
case "ExpressionStatement":
case "VariableDeclarator":
case "AssignmentExpression":
case "ReturnStatement":
break;
case "CallExpression":
case "OptionalCallExpression":
case "NewExpression":
if (f.callee !== t) break;
default:
E = !0;
}
let d = !1;
!E && this._noLineTerminator && ((o = t.leadingComments) != null && o.some(Cv) || this.format.retainLines && t.loc && t.loc.start.line >
this._buf.getCurrentLine()) && (E = !0, d = !0);
let g, C;
if (!E && (r || (r = f && this._noLineTerminatorAfterNode === f && Dv.isLastChild(f, t)), r)) {
var _;
(_ = t.trailingComments) != null && _.some(Cv) ? bre(t) && (E = !0) : (g = this._noLineTerminatorAfterNode, this._noLineTerminatorAfterNode =
t);
}
E && (this.tokenChar(40), d && this.indent(), this._endsWithInnerRaw = !1, this.inForStatementInit && (C = !0, this.inForStatementInit =
!1), g = this._noLineTerminatorAfterNode, this._noLineTerminatorAfterNode = null), this._lastCommentLine = 0, this._printLeadingComments(
t, f);
let O = l === "Program" || l === "File" ? null : t.loc;
this.exactSource(O, p.bind(this, t, f)), E ? (this._printTrailingComments(t, f), d && (this.dedent(), this.newline()), this.tokenChar(
41), this._noLineTerminator = r, C && (this.inForStatementInit = !0)) : r && !this._noLineTerminator ? (this._noLineTerminator = !0, this.
_printTrailingComments(t, f)) : this._printTrailingComments(t, f, n), this._currentNode = f, u.concise = c, this._insideAux = h, g !==
void 0 && (this._noLineTerminatorAfterNode = g), this._endsWithInnerRaw = !1;
}
_maybeAddAuxComment(t) {
t && this._printAuxBeforeComment(), this._insideAux || this._printAuxAfterComment();
}
_printAuxBeforeComment() {
if (this._printAuxAfterOnNextUserNode) return;
this._printAuxAfterOnNextUserNode = !0;
let t = this.format.auxiliaryCommentBefore;
t && this._printComment({
type: "CommentBlock",
value: t
}, 0);
}
_printAuxAfterComment() {
if (!this._printAuxAfterOnNextUserNode) return;
this._printAuxAfterOnNextUserNode = !1;
let t = this.format.auxiliaryCommentAfter;
t && this._printComment({
type: "CommentBlock",
value: t
}, 0);
}
getPossibleRaw(t) {
let r = t.extra;
if (r?.raw != null && r.rawValue != null && t.value === r.rawValue)
return r.raw;
}
printJoin(t, r, n, s, a, o, l, u) {
if (!(t != null && t.length)) return;
if (n == null && this.format.retainLines) {
var c;
let d = (c = t[0].loc) == null ? void 0 : c.start.line;
d != null && d !== this._buf.getCurrentLine() && (n = !0);
}
n && this.indent();
let p = {
addNewlines: o,
nextNodeStartLine: 0
}, f = s?.bind(this), h = t.length;
for (let d = 0; d < h; d++) {
let g = t[d];
if (g && (r && this._printNewline(d === 0, p), this.print(g, void 0, u || 0), l?.(g, d), f != null && (d < h - 1 ? f(d, !1) : a && f(
d, !0)), r)) {
var y;
if ((y = g.trailingComments) != null && y.length || (this._lastCommentLine = 0), d + 1 === h)
this.newline(1);
else {
var E;
let C = t[d + 1];
p.nextNodeStartLine = ((E = C.loc) == null ? void 0 : E.start.line) || 0, this._printNewline(!0, p);
}
}
}
n && this.dedent();
}
printAndIndentOnComments(t) {
let r = t.leadingComments && t.leadingComments.length > 0;
r && this.indent(), this.print(t), r && this.dedent();
}
printBlock(t) {
let r = t.body;
r.type !== "EmptyStatement" && this.space(), this.print(r);
}
_printTrailingComments(t, r, n) {
let {
innerComments: s,
trailingComments: a
} = t;
s != null && s.length && this._printComments(2, s, t, r, n), a != null && a.length && this._printComments(2, a, t, r, n);
}
_printLeadingComments(t, r) {
let n = t.leadingComments;
n != null && n.length && this._printComments(0, n, t, r);
}
_maybePrintInnerComments(t, r) {
if (this._endsWithInnerRaw) {
var n;
this.printInnerComments((n = this.tokenMap) == null ? void 0 : n.findMatching(this._currentNode, t, r));
}
this._endsWithInnerRaw = !0, this._indentInnerComments = !0;
}
printInnerComments(t) {
let r = this._currentNode, n = r.innerComments;
if (!(n != null && n.length)) return;
let s = this.endsWith(32), a = this._indentInnerComments, o = this._printedComments.size;
a && this.indent(), this._printComments(1, n, r, void 0, void 0, t), s && o !== this._printedComments.size && this.space(), a && this.
dedent();
}
noIndentInnerCommentsHere() {
this._indentInnerComments = !1;
}
printSequence(t, r, n, s) {
this.printJoin(t, !0, r ?? !1, void 0, void 0, s, void 0, n);
}
printList(t, r, n, s, a, o) {
this.printJoin(t, n, s, a ?? wre, r, void 0, o);
}
shouldPrintTrailingComma(t) {
if (!this.tokenMap) return null;
let r = this.tokenMap.findLastIndex(this._currentNode, (n) => this.tokenMap.matchesOriginal(n, t));
return r <= 0 ? null : this.tokenMap.matchesOriginal(this._tokens[r - 1], ",");
}
_printNewline(t, r) {
let n = this.format;
if (n.retainLines || n.compact) return;
if (n.concise) {
this.space();
return;
}
if (!t)
return;
let s = r.nextNodeStartLine, a = this._lastCommentLine;
if (s > 0 && a > 0) {
let o = s - a;
if (o >= 0) {
this.newline(o || 1);
return;
}
}
this._buf.hasContent() && this.newline(1);
}
_shouldPrintComment(t, r) {
if (t.ignore || this._printedComments.has(t)) return 0;
if (this._noLineTerminator && Cre.test(t.value))
return 2;
if (r && this.tokenMap) {
let n = this.tokenMap.find(this._currentNode, (s) => s.value === t.value);
if (n && n.start > r.start)
return 2;
}
return this._printedComments.add(t), this.format.shouldPrintComment(t.value) ? 1 : 0;
}
_printComment(t, r) {
let n = this._noLineTerminator, s = t.type === "CommentBlock", a = s && r !== 1 && !this._noLineTerminator;
a && this._buf.hasContent() && r !== 2 && this.newline(1);
let o = this.getLastChar();
o !== 91 && o !== 123 && o !== 40 && this.space();
let l;
if (s) {
if (l = `/*${t.value}*/`, this.format.indent.adjustMultilineComment) {
var u;
let c = (u = t.loc) == null ? void 0 : u.start.column;
if (c) {
let p = new RegExp("\\n\\s{1," + c + "}", "g");
l = l.replace(p, `
`);
}
if (this.format.concise)
l = l.replace(/\n(?!$)/g, `
`);
else {
let p = this.format.retainLines ? 0 : this._buf.getCurrentColumn();
(this._shouldIndent(47) || this.format.retainLines) && (p += this._getIndent()), l = l.replace(/\n(?!$)/g, `
${" ".repeat(p)}`);
}
}
} else n ? l = `/*${t.value}*/` : l = `//${t.value}`;
if (this._endsWithDiv && this._space(), this.tokenMap) {
let {
_printSemicolonBeforeNextToken: c,
_printSemicolonBeforeNextNode: p
} = this;
this._printSemicolonBeforeNextToken = -1, this._printSemicolonBeforeNextNode = -1, this.source("start", t.loc), this._append(l, s), this.
_printSemicolonBeforeNextNode = p, this._printSemicolonBeforeNextToken = c;
} else
this.source("start", t.loc), this._append(l, s);
!s && !n && this.newline(1, !0), a && r !== 3 && this.newline(1);
}
_printComments(t, r, n, s, a = 0, o) {
let l = n.loc, u = r.length, c = !!l, p = c ? l.start.line : 0, f = c ? l.end.line : 0, h = 0, y = 0, E = this._noLineTerminator ? function() {
} : this.newline.bind(this);
for (let d = 0; d < u; d++) {
let g = r[d], C = this._shouldPrintComment(g, o);
if (C === 2) {
c = !1;
break;
}
if (c && g.loc && C === 1) {
let _ = g.loc.start.line, O = g.loc.end.line;
if (t === 0) {
let B = 0;
d === 0 ? this._buf.hasContent() && (g.type === "CommentLine" || _ !== O) && (B = y = 1) : B = _ - h, h = O, E(B), this._printComment(
g, 1), d + 1 === u && (E(Math.max(p - h, y)), h = p);
} else if (t === 1) {
let B = _ - (d === 0 ? p : h);
h = O, E(B), this._printComment(g, 1), d + 1 === u && (E(Math.min(1, f - h)), h = f);
} else {
let B = _ - (d === 0 ? f - a : h);
h = O, E(B), this._printComment(g, 1);
}
} else {
if (c = !1, C !== 1)
continue;
if (u === 1) {
let _ = g.loc ? g.loc.start.line === g.loc.end.line : !wv.test(g.value), O = _ && !Tre(n) && !Sre(s) && !xre(s) && !vre(n);
t === 0 ? this._printComment(g, O && n.type !== "ObjectExpression" || _ && Ere(s, {
body: n
}) ? 1 : 0) : O && t === 2 ? this._printComment(g, 1) : this._printComment(g, 0);
} else t === 1 && !(n.type === "ObjectExpression" && n.properties.length > 1) && n.type !== "ClassBody" && n.type !== "TSInterface\
Body" ? this._printComment(g, d === 0 ? 2 : d === u - 1 ? 3 : 0) : this._printComment(g, 0);
}
}
t === 2 && c && h && (this._lastCommentLine = h);
}
};
Object.assign(ao.prototype, yre);
(0, gre.addDeprecatedGenerators)(ao);
var ePe = Au.default = ao;
function wre(e, t) {
this.token(",", !1, e), t || this.space();
}
i(wre, "commaSeparator");
});
// ../node_modules/@babel/generator/lib/index.js
var oo = P((Ri) => {
"use strict";
Object.defineProperty(Ri, "__esModule", {
value: !0
});
Ri.default = void 0;
Ri.generate = Bv;
var _v = Ox(), Ov = Iv();
function Nv(e, t, r) {
if (t.experimental_preserveFormat) {
if (typeof e != "string")
throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");
if (!t.retainLines)
throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");
if (t.compact && t.compact !== "auto")
throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");
if (t.minified)
throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");
if (t.jsescOption)
throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");
if (!Array.isArray(r.tokens))
throw new Error("`experimental_preserveFormat` requires the AST to have attatched the token of the input code. Make sure to enable t\
he `tokens: true` parser option.");
}
let n = {
auxiliaryCommentBefore: t.auxiliaryCommentBefore,
auxiliaryCommentAfter: t.auxiliaryCommentAfter,
shouldPrintComment: t.shouldPrintComment,
preserveFormat: t.experimental_preserveFormat,
retainLines: t.retainLines,
retainFunctionParens: t.retainFunctionParens,
comments: t.comments == null || t.comments,
compact: t.compact,
minified: t.minified,
concise: t.concise,
indent: {
adjustMultilineComment: !0,
style: " "
},
jsescOption: Object.assign({
quotes: "double",
wrap: !0,
minimal: !1
}, t.jsescOption),
topicToken: t.topicToken,
importAttributesKeyword: t.importAttributesKeyword
};
{
var s;
n.decoratorsBeforeExport = t.decoratorsBeforeExport, n.jsescOption.json = t.jsonCompatibleStrings, n.recordAndTupleSyntaxType = (s = t.
recordAndTupleSyntaxType) != null ? s : "hash";
}
n.minified ? (n.compact = !0, n.shouldPrintComment = n.shouldPrintComment || (() => n.comments)) : n.shouldPrintComment = n.shouldPrintComment ||
((u) => n.comments || u.includes("@license") || u.includes("@preserve")), n.compact === "auto" && (n.compact = typeof e == "string" && e.
length > 5e5, n.compact && console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds th\
e max of 500KB.`)), (n.compact || n.preserveFormat) && (n.indent.adjustMultilineComment = !1);
let {
auxiliaryCommentBefore: a,
auxiliaryCommentAfter: o,
shouldPrintComment: l
} = n;
return a && !l(a) && (n.auxiliaryCommentBefore = void 0), o && !l(o) && (n.auxiliaryCommentAfter = void 0), n;
}
i(Nv, "normalizeOptions");
Ri.CodeGenerator = class {
static {
i(this, "CodeGenerator");
}
constructor(t, r = {}, n) {
this._ast = void 0, this._format = void 0, this._map = void 0, this._ast = t, this._format = Nv(n, r, t), this._map = r.sourceMaps ? new _v.
default(r, n) : null;
}
generate() {
return new Ov.default(this._format, this._map).generate(this._ast);
}
};
function Bv(e, t = {}, r) {
let n = Nv(r, t, e), s = t.sourceMaps ? new _v.default(t, r) : null;
return new Ov.default(n, s, e.tokens, typeof r == "string" ? r : null).generate(e);
}
i(Bv, "generate");
var sPe = Ri.default = Bv;
});
// ../node_modules/@babel/traverse/lib/path/ancestry.js
var kv = P((jr) => {
"use strict";
Object.defineProperty(jr, "__esModule", {
value: !0
});
jr.find = Nre;
jr.findParent = Ore;
jr.getAncestry = Lre;
jr.getDeepestCommonAncestorFrom = jre;
jr.getEarliestCommonAncestorFrom = Fre;
jr.getFunctionParent = Bre;
jr.getStatementParent = kre;
jr.inType = qre;
jr.isAncestor = Mre;
jr.isDescendant = Rre;
var Ire = De(), {
VISITOR_KEYS: _re
} = Ire;
function Ore(e) {
let t = this;
for (; t = t.parentPath; )
if (e(t)) return t;
return null;
}
i(Ore, "findParent");
function Nre(e) {
let t = this;
do
if (e(t)) return t;
while (t = t.parentPath);
return null;
}
i(Nre, "find");
function Bre() {
return this.findParent((e) => e.isFunction());
}
i(Bre, "getFunctionParent");
function kre() {
let e = this;
do {
if (!e.parentPath || Array.isArray(e.container) && e.isStatement())
break;
e = e.parentPath;
} while (e);
if (e && (e.isProgram() || e.isFile()))
throw new Error("File/Program node, we can't possibly find a statement parent to this");
return e;
}
i(kre, "getStatementParent");
function Fre(e) {
return this.getDeepestCommonAncestorFrom(e, function(t, r, n) {
let s, a = _re[t.type];
for (let o of n) {
let l = o[r + 1];
if (!s) {
s = l;
continue;
}
if (l.listKey && s.listKey === l.listKey && l.key < s.key) {
s = l;
continue;
}
let u = a.indexOf(s.parentKey), c = a.indexOf(l.parentKey);
u > c && (s = l);
}
return s;
});
}
i(Fre, "getEarliestCommonAncestorFrom");
function jre(e, t) {
if (!e.length)
return this;
if (e.length === 1)
return e[0];
let r = 1 / 0, n, s, a = e.map((l) => {
let u = [];
do
u.unshift(l);
while ((l = l.parentPath) && l !== this);
return u.length < r && (r = u.length), u;
}), o = a[0];
e: for (let l = 0; l < r; l++) {
let u = o[l];
for (let c of a)
if (c[l] !== u)
break e;
n = l, s = u;
}
if (s)
return t ? t(s, n, a) : s;
throw new Error("Couldn't find intersection");
}
i(jre, "getDeepestCommonAncestorFrom");
function Lre() {
let e = this, t = [];
do
t.push(e);
while (e = e.parentPath);
return t;
}
i(Lre, "getAncestry");
function Mre(e) {
return e.isDescendant(this);
}
i(Mre, "isAncestor");
function Rre(e) {
return !!this.findParent((t) => t === e);
}
i(Rre, "isDescendant");
function qre(...e) {
let t = this;
for (; t; ) {
if (e.includes(t.node.type)) return !0;
t = t.parentPath;
}
return !1;
}
i(qre, "inType");
});
// ../node_modules/@babel/traverse/lib/path/inference/util.js
var Um = P((qm) => {
"use strict";
Object.defineProperty(qm, "__esModule", {
value: !0
});
qm.createUnionType = Kre;
var Ure = De(), {
createFlowUnionType: Fv,
createTSUnionType: jv,
createUnionTypeAnnotation: Vre,
isFlowType: $re,
isTSType: Wre
} = Ure;
function Kre(e) {
{
if (e.every((t) => $re(t)))
return Fv ? Fv(e) : Vre(e);
if (e.every((t) => Wre(t)) && jv)
return jv(e);
}
}
i(Kre, "createUnionType");
});
// ../node_modules/@babel/traverse/lib/path/inference/inferer-reference.js
var Uv = P((Vm) => {
"use strict";
Object.defineProperty(Vm, "__esModule", {
value: !0
});
Vm.default = Xre;
var Gre = De(), Mv = Um(), {
BOOLEAN_NUMBER_BINARY_OPERATORS: Hre,
createTypeAnnotationBasedOnTypeof: Yre,
numberTypeAnnotation: Rv,
voidTypeAnnotation: Jre
} = Gre;
function Xre(e) {
if (!this.isReferenced()) return;
let t = this.scope.getBinding(e.name);
if (t)
return t.identifier.typeAnnotation ? t.identifier.typeAnnotation : zre(t, this, e.name);
if (e.name === "undefined")
return Jre();
if (e.name === "NaN" || e.name === "Infinity")
return Rv();
e.name;
}
i(Xre, "_default");
function zre(e, t, r) {
let n = [], s = [], a = Lv(e, t, s), o = qv(e, t, r);
if (o) {
let l = Lv(e, o.ifStatement);
a = a.filter((u) => !l.includes(u)), n.push(o.typeAnnotation);
}
if (a.length) {
a.push(...s);
for (let l of a)
n.push(l.getTypeAnnotation());
}
if (n.length)
return (0, Mv.createUnionType)(n);
}
i(zre, "getTypeAnnotationBindingConstantViolations");
function Lv(e, t, r) {
let n = e.constantViolations.slice();
return n.unshift(e.path), n.filter((s) => {
s = s.resolve();
let a = s._guessExecutionStatusRelativeTo(t);
return r && a === "unknown" && r.push(s), a === "before";
});
}
i(Lv, "getConstantViolationsBefore");
function Qre(e, t) {
let r = t.node.operator, n = t.get("right").resolve(), s = t.get("left").resolve(), a;
if (s.isIdentifier({
name: e
}) ? a = n : n.isIdentifier({
name: e
}) && (a = s), a)
return r === "===" ? a.getTypeAnnotation() : Hre.includes(r) ? Rv() : void 0;
if (r !== "===" && r !== "==") return;
let o, l;
if (s.isUnaryExpression({
operator: "typeof"
}) ? (o = s, l = n) : n.isUnaryExpression({
operator: "typeof"
}) && (o = n, l = s), !o || !o.get("argument").isIdentifier({
name: e
}) || (l = l.resolve(), !l.isLiteral())) return;
let u = l.node.value;
if (typeof u == "string")
return Yre(u);
}
i(Qre, "inferAnnotationFromBinaryExpression");
function Zre(e, t, r) {
let n;
for (; n = t.parentPath; ) {
if (n.isIfStatement() || n.isConditionalExpression())
return t.key === "test" ? void 0 : n;
if (n.isFunction() && n.parentPath.scope.getBinding(r) !== e)
return;
t = n;
}
}
i(Zre, "getParentConditionalPath");
function qv(e, t, r) {
let n = Zre(e, t, r);
if (!n) return;
let a = [n.get("test")], o = [];
for (let l = 0; l < a.length; l++) {
let u = a[l];
if (u.isLogicalExpression())
u.node.operator === "&&" && (a.push(u.get("left")), a.push(u.get("right")));
else if (u.isBinaryExpression()) {
let c = Qre(r, u);
c && o.push(c);
}
}
return o.length ? {
typeAnnotation: (0, Mv.createUnionType)(o),
ifStatement: n
} : qv(e, n, r);
}
i(qv, "getConditionalAnnotation");
});
// ../node_modules/@babel/traverse/lib/path/inference/inferers.js
var Jv = P((tt) => {
"use strict";
Object.defineProperty(tt, "__esModule", {
value: !0
});
tt.ArrayExpression = Gv;
tt.AssignmentExpression = xne;
tt.BinaryExpression = gne;
tt.BooleanLiteral = Cne;
tt.CallExpression = Fne;
tt.ConditionalExpression = Ene;
tt.ClassDeclaration = tt.ClassExpression = tt.FunctionDeclaration = tt.ArrowFunctionExpression = tt.FunctionExpression = _ne;
Object.defineProperty(tt, "Identifier", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return tne.default;
}, "get")
});
tt.LogicalExpression = bne;
tt.NewExpression = hne;
tt.NullLiteral = Dne;
tt.NumericLiteral = Ane;
tt.ObjectExpression = Ine;
tt.ParenthesizedExpression = Sne;
tt.RegExpLiteral = wne;
tt.RestElement = Hv;
tt.SequenceExpression = Tne;
tt.StringLiteral = Pne;
tt.TSAsExpression = Kv;
tt.TSNonNullExpression = dne;
tt.TaggedTemplateExpression = jne;
tt.TemplateLiteral = mne;
tt.TypeCastExpression = Wv;
tt.UnaryExpression = yne;
tt.UpdateExpression = vne;
tt.VariableDeclarator = fne;
var ene = De(), tne = Uv(), $v = Um(), {
BOOLEAN_BINARY_OPERATORS: rne,
BOOLEAN_UNARY_OPERATORS: nne,
NUMBER_BINARY_OPERATORS: sne,
NUMBER_UNARY_OPERATORS: ine,
STRING_UNARY_OPERATORS: ane,
anyTypeAnnotation: Vv,
arrayTypeAnnotation: $m,
booleanTypeAnnotation: Wm,
buildMatchMemberExpression: Cu,
genericTypeAnnotation: us,
identifier: Ys,
nullLiteralTypeAnnotation: one,
numberTypeAnnotation: qi,
stringTypeAnnotation: Js,
tupleTypeAnnotation: lne,
unionTypeAnnotation: une,
voidTypeAnnotation: cne,
isIdentifier: pne
} = ene;
function fne() {
if (this.get("id").isIdentifier())
return this.get("init").getTypeAnnotation();
}
i(fne, "VariableDeclarator");
function Wv(e) {
return e.typeAnnotation;
}
i(Wv, "TypeCastExpression");
Wv.validParent = !0;
function Kv(e) {
return e.typeAnnotation;
}
i(Kv, "TSAsExpression");
Kv.validParent = !0;
function dne() {
return this.get("expression").getTypeAnnotation();
}
i(dne, "TSNonNullExpression");
function hne(e) {
if (e.callee.type === "Identifier")
return us(e.callee);
}
i(hne, "NewExpression");
function mne() {
return Js();
}
i(mne, "TemplateLiteral");
function yne(e) {
let t = e.operator;
if (t === "void")
return cne();
if (ine.includes(t))
return qi();
if (ane.includes(t))
return Js();
if (nne.includes(t))
return Wm();
}
i(yne, "UnaryExpression");
function gne(e) {
let t = e.operator;
if (sne.includes(t))
return qi();
if (rne.includes(t))
return Wm();
if (t === "+") {
let r = this.get("right"), n = this.get("left");
return n.isBaseType("number") && r.isBaseType("number") ? qi() : n.isBaseType("string") || r.isBaseType("string") ? Js() : une([Js(), qi()]);
}
}
i(gne, "BinaryExpression");
function bne() {
let e = [this.get("left").getTypeAnnotation(), this.get("right").getTypeAnnotation()];
return (0, $v.createUnionType)(e);
}
i(bne, "LogicalExpression");
function Ene() {
let e = [this.get("consequent").getTypeAnnotation(), this.get("alternate").getTypeAnnotation()];
return (0, $v.createUnionType)(e);
}
i(Ene, "ConditionalExpression");
function Tne() {
return this.get("expressions").pop().getTypeAnnotation();
}
i(Tne, "SequenceExpression");
function Sne() {
return this.get("expression").getTypeAnnotation();
}
i(Sne, "ParenthesizedExpression");
function xne() {
return this.get("right").getTypeAnnotation();
}
i(xne, "AssignmentExpression");
function vne(e) {
let t = e.operator;
if (t === "++" || t === "--")
return qi();
}
i(vne, "UpdateExpression");
function Pne() {
return Js();
}
i(Pne, "StringLiteral");
function Ane() {
return qi();
}
i(Ane, "NumericLiteral");
function Cne() {
return Wm();
}
i(Cne, "BooleanLiteral");
function Dne() {
return one();
}
i(Dne, "NullLiteral");
function wne() {
return us(Ys("RegExp"));
}
i(wne, "RegExpLiteral");
function Ine() {
return us(Ys("Object"));
}
i(Ine, "ObjectExpression");
function Gv() {
return us(Ys("Array"));
}
i(Gv, "ArrayExpression");
function Hv() {
return Gv();
}
i(Hv, "RestElement");
Hv.validParent = !0;
function _ne() {
return us(Ys("Function"));
}
i(_ne, "Func");
var One = Cu("Array.from"), Nne = Cu("Object.keys"), Bne = Cu("Object.values"), kne = Cu("Object.entries");
function Fne() {
let {
callee: e
} = this.node;
return Nne(e) ? $m(Js()) : One(e) || Bne(e) || pne(e, {
name: "Array"
}) ? $m(Vv()) : kne(e) ? $m(lne([Js(), Vv()])) : Yv(this.get("callee"));
}
i(Fne, "CallExpression");
function jne() {
return Yv(this.get("tag"));
}
i(jne, "TaggedTemplateExpression");
function Yv(e) {
if (e = e.resolve(), e.isFunction()) {
let {
node: t
} = e;
if (t.async)
return t.generator ? us(Ys("AsyncIterator")) : us(Ys("Promise"));
if (t.generator)
return us(Ys("Iterator"));
if (e.node.returnType)
return e.node.returnType;
}
}
i(Yv, "resolveCall");
});
// ../node_modules/@babel/traverse/lib/path/inference/index.js
var eP = P((cs) => {
"use strict";
Object.defineProperty(cs, "__esModule", {
value: !0
});
cs._getTypeAnnotation = Zv;
cs.baseTypeStrictlyMatches = sse;
cs.couldBeBaseType = nse;
cs.getTypeAnnotation = tse;
cs.isBaseType = rse;
cs.isGenericType = ise;
var Xv = Jv(), Lne = De(), {
anyTypeAnnotation: Qv,
isAnyTypeAnnotation: Du,
isArrayTypeAnnotation: Mne,
isBooleanTypeAnnotation: Rne,
isEmptyTypeAnnotation: qne,
isFlowBaseAnnotation: Une,
isGenericTypeAnnotation: Vne,
isIdentifier: zv,
isMixedTypeAnnotation: $ne,
isNumberTypeAnnotation: Wne,
isStringTypeAnnotation: Kne,
isTSArrayType: Gne,
isTSTypeAnnotation: Hne,
isTSTypeReference: Yne,
isTupleTypeAnnotation: Jne,
isTypeAnnotation: Xne,
isUnionTypeAnnotation: zne,
isVoidTypeAnnotation: Qne,
stringTypeAnnotation: Zne,
voidTypeAnnotation: ese
} = Lne;
function tse() {
let e = this.getData("typeAnnotation");
return e != null || (e = Zv.call(this) || Qv(), (Xne(e) || Hne(e)) && (e = e.typeAnnotation), this.setData("typeAnnotation", e)), e;
}
i(tse, "getTypeAnnotation");
var Km = /* @__PURE__ */ new WeakSet();
function Zv() {
let e = this.node;
if (!e)
if (this.key === "init" && this.parentPath.isVariableDeclarator()) {
let r = this.parentPath.parentPath, n = r.parentPath;
return r.key === "left" && n.isForInStatement() ? Zne() : r.key === "left" && n.isForOfStatement() ? Qv() : ese();
} else
return;
if (e.typeAnnotation)
return e.typeAnnotation;
if (!Km.has(e)) {
Km.add(e);
try {
var t;
let r = Xv[e.type];
if (r)
return r.call(this, e);
if (r = Xv[this.parentPath.type], (t = r) != null && t.validParent)
return this.parentPath.getTypeAnnotation();
} finally {
Km.delete(e);
}
}
}
i(Zv, "_getTypeAnnotation");
function rse(e, t) {
return Gm(e, this.getTypeAnnotation(), t);
}
i(rse, "isBaseType");
function Gm(e, t, r) {
if (e === "string")
return Kne(t);
if (e === "number")
return Wne(t);
if (e === "boolean")
return Rne(t);
if (e === "any")
return Du(t);
if (e === "mixed")
return $ne(t);
if (e === "empty")
return qne(t);
if (e === "void")
return Qne(t);
if (r)
return !1;
throw new Error(`Unknown base type ${e}`);
}
i(Gm, "_isBaseType");
function nse(e) {
let t = this.getTypeAnnotation();
if (Du(t)) return !0;
if (zne(t)) {
for (let r of t.types)
if (Du(r) || Gm(e, r, !0))
return !0;
return !1;
} else
return Gm(e, t, !0);
}
i(nse, "couldBeBaseType");
function sse(e) {
let t = this.getTypeAnnotation(), r = e.getTypeAnnotation();
return !Du(t) && Une(t) ? r.type === t.type : !1;
}
i(sse, "baseTypeStrictlyMatches");
function ise(e) {
let t = this.getTypeAnnotation();
return e === "Array" && (Gne(t) || Mne(t) || Jne(t)) ? !0 : Vne(t) && zv(t.id, {
name: e
}) || Yne(t) && zv(t.typeName, {
name: e
});
}
i(ise, "isGenericType");
});
// ../node_modules/@babel/traverse/lib/path/lib/removal-hooks.js
var tP = P((wu) => {
"use strict";
Object.defineProperty(wu, "__esModule", {
value: !0
});
wu.hooks = void 0;
var gPe = wu.hooks = [function(e, t) {
if (e.key === "test" && (t.isWhile() || t.isSwitchCase()) || e.key === "declaration" && t.isExportDeclaration() || e.key === "body" && t.
isLabeledStatement() || e.listKey === "declarations" && t.isVariableDeclaration() && t.node.declarations.length === 1 || e.key === "expr\
ession" && t.isExpressionStatement())
return t.remove(), !0;
}, function(e, t) {
if (t.isSequenceExpression() && t.node.expressions.length === 1)
return t.replaceWith(t.node.expressions[0]), !0;
}, function(e, t) {
if (t.isBinary())
return e.key === "left" ? t.replaceWith(t.node.right) : t.replaceWith(t.node.left), !0;
}, function(e, t) {
if (t.isIfStatement() && e.key === "consequent" || e.key === "body" && (t.isLoop() || t.isArrowFunctionExpression()))
return e.replaceWith({
type: "BlockStatement",
body: []
}), !0;
}];
});
// ../node_modules/@babel/traverse/lib/path/removal.js
var Iu = P((ps) => {
"use strict";
Object.defineProperty(ps, "__esModule", {
value: !0
});
ps._assertUnremoved = aP;
ps._callRemovalHooks = sP;
ps._markRemoved = Hm;
ps._remove = iP;
ps._removeFromScope = nP;
ps.remove = dse;
var ase = tP(), ose = Ws(), lse = Ym(), rP = fs(), use = De(), cse = _u(), pse = dn(), {
getBindingIdentifiers: fse
} = use;
function dse() {
var e;
if (aP.call(this), pse.resync.call(this), sP.call(this)) {
Hm.call(this);
return;
}
(e = this.opts) != null && e.noScope || nP.call(this), this.shareCommentsWithSiblings(), iP.call(this), Hm.call(this);
}
i(dse, "remove");
function nP() {
let e = fse(this.node, !1, !1, !0);
Object.keys(e).forEach((t) => this.scope.removeBinding(t));
}
i(nP, "_removeFromScope");
function sP() {
if (this.parentPath) {
for (let e of ase.hooks)
if (e(this, this.parentPath)) return !0;
}
}
i(sP, "_callRemovalHooks");
function iP() {
Array.isArray(this.container) ? (this.container.splice(this.key, 1), cse.updateSiblingKeys.call(this, this.key, -1)) : lse._replaceWith.
call(this, null);
}
i(iP, "_remove");
function Hm() {
this._traverseFlags |= rP.SHOULD_SKIP | rP.REMOVED, this.parent && (0, ose.getCachedPaths)(this.hub, this.parent).delete(this.node), this.
node = null;
}
i(Hm, "_markRemoved");
function aP() {
if (this.removed)
throw this.buildCodeFrameError("NodePath has been removed so is read-only.");
}
i(aP, "_assertUnremoved");
});
// ../node_modules/@babel/traverse/lib/path/lib/hoister.js
var lP = P((Ou) => {
"use strict";
Object.defineProperty(Ou, "__esModule", {
value: !0
});
Ou.default = void 0;
var oP = De(), hse = oP, {
react: mse
} = oP, {
cloneNode: yse,
jsxExpressionContainer: gse,
variableDeclaration: bse,
variableDeclarator: Ese
} = hse, Tse = {
ReferencedIdentifier(e, t) {
if (e.isJSXIdentifier() && mse.isCompatTag(e.node.name) && !e.parentPath.isJSXMemberExpression())
return;
if (e.node.name === "this") {
let n = e.scope;
do
if (n.path.isFunction() && !n.path.isArrowFunctionExpression())
break;
while (n = n.parent);
n && t.breakOnScopePaths.push(n.path);
}
let r = e.scope.getBinding(e.node.name);
if (r) {
for (let n of r.constantViolations)
if (n.scope !== r.path.scope) {
t.mutableBinding = !0, e.stop();
return;
}
r === t.scope.getBinding(e.node.name) && (t.bindings[e.node.name] = r);
}
}
}, Jm = class {
static {
i(this, "PathHoister");
}
constructor(t, r) {
this.breakOnScopePaths = void 0, this.bindings = void 0, this.mutableBinding = void 0, this.scopes = void 0, this.scope = void 0, this.
path = void 0, this.attachAfter = void 0, this.breakOnScopePaths = [], this.bindings = {}, this.mutableBinding = !1, this.scopes = [],
this.scope = r, this.path = t, this.attachAfter = !1;
}
isCompatibleScope(t) {
for (let r of Object.keys(this.bindings)) {
let n = this.bindings[r];
if (!t.bindingIdentifierEquals(r, n.identifier))
return !1;
}
return !0;
}
getCompatibleScopes() {
let t = this.path.scope;
do {
if (this.isCompatibleScope(t))
this.scopes.push(t);
else
break;
if (this.breakOnScopePaths.includes(t.path))
break;
} while (t = t.parent);
}
getAttachmentPath() {
let t = this._getAttachmentPath();
if (!t) return;
let r = t.scope;
if (r.path === t && (r = t.scope.parent), r.path.isProgram() || r.path.isFunction())
for (let n of Object.keys(this.bindings)) {
if (!r.hasOwnBinding(n)) continue;
let s = this.bindings[n];
if (s.kind === "param" || s.path.parentKey === "params")
continue;
if (this.getAttachmentParentForPath(s.path).key >= t.key) {
this.attachAfter = !0, t = s.path;
for (let o of s.constantViolations)
this.getAttachmentParentForPath(o).key > t.key && (t = o);
}
}
return t;
}
_getAttachmentPath() {
let r = this.scopes.pop();
if (r) {
if (r.path.isFunction())
if (this.hasOwnParamBindings(r)) {
if (this.scope === r) return;
let n = r.path.get("body").get("body");
for (let s = 0; s < n.length; s++)
if (!n[s].node._blockHoist)
return n[s];
} else
return this.getNextScopeAttachmentParent();
else if (r.path.isProgram())
return this.getNextScopeAttachmentParent();
}
}
getNextScopeAttachmentParent() {
let t = this.scopes.pop();
if (t) return this.getAttachmentParentForPath(t.path);
}
getAttachmentParentForPath(t) {
do
if (!t.parentPath || Array.isArray(t.container) && t.isStatement())
return t;
while (t = t.parentPath);
}
hasOwnParamBindings(t) {
for (let r of Object.keys(this.bindings)) {
if (!t.hasOwnBinding(r)) continue;
let n = this.bindings[r];
if (n.kind === "param" && n.constant) return !0;
}
return !1;
}
run() {
if (this.path.traverse(Tse, this), this.mutableBinding) return;
this.getCompatibleScopes();
let t = this.getAttachmentPath();
if (!t || t.getFunctionParent() === this.path.getFunctionParent()) return;
let r = t.scope.generateUidIdentifier("ref"), n = Ese(r, this.path.node), s = this.attachAfter ? "insertAfter" : "insertBefore", [a] = t[s](
[t.isVariableDeclarator() ? n : bse("var", [n])]), o = this.path.parentPath;
return o.isJSXElement() && this.path.container === o.node.children && (r = gse(r)), this.path.replaceWith(yse(r)), t.isVariableDeclarator() ?
a.get("init") : a.get("declarations.0.init");
}
};
Ou.default = Jm;
});
// ../node_modules/@babel/traverse/lib/path/modification.js
var _u = P((Lr) => {
"use strict";
Object.defineProperty(Lr, "__esModule", {
value: !0
});
Lr._containerInsert = ey;
Lr._containerInsertAfter = pP;
Lr._containerInsertBefore = ty;
Lr._verifyNodeList = lo;
Lr.insertAfter = Lse;
Lr.insertBefore = Fse;
Lr.pushContainer = Rse;
Lr.unshiftContainer = Mse;
Lr.updateSiblingKeys = hP;
var Sse = Ws(), Zm = fs(), Xm = dn(), Nu = Iu(), xse = De(), vse = lP(), {
arrowFunctionExpression: Pse,
assertExpression: Ase,
assignmentExpression: Cse,
blockStatement: uP,
callExpression: Dse,
cloneNode: zm,
expressionStatement: Qm,
isAssignmentExpression: wse,
isCallExpression: Ise,
isExportNamedDeclaration: cP,
isExpression: _se,
isIdentifier: Ose,
isSequenceExpression: Nse,
isSuper: Bse,
thisExpression: kse
} = xse;
function Fse(e) {
Nu._assertUnremoved.call(this);
let t = lo.call(this, e), {
parentPath: r,
parent: n
} = this;
if (r.isExpressionStatement() || r.isLabeledStatement() || cP(n) || r.isExportDefaultDeclaration() && this.isDeclaration())
return r.insertBefore(t);
if (this.isNodeType("Expression") && !this.isJSXElement() || r.isForStatement() && this.key === "init")
return this.node && t.push(this.node), this.replaceExpressionWithStatements(t);
if (Array.isArray(this.container))
return ty.call(this, t);
if (this.isStatementOrBlock()) {
let s = this.node, a = s && (!this.isExpressionStatement() || s.expression != null);
return this.replaceWith(uP(a ? [s] : [])), this.unshiftContainer("body", t);
} else
throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?");
}
i(Fse, "insertBefore");
function ey(e, t) {
hP.call(this, e, t.length);
let r = [];
this.container.splice(e, 0, ...t);
for (let a = 0; a < t.length; a++) {
var n;
let o = e + a, l = this.getSibling(o);
r.push(l), (n = this.context) != null && n.queue && Xm.pushContext.call(l, this.context);
}
let s = Xm._getQueueContexts.call(this);
for (let a of r) {
Xm.setScope.call(a), a.debug("Inserted.");
for (let o of s)
o.maybeQueue(a, !0);
}
return r;
}
i(ey, "_containerInsert");
function ty(e) {
return ey.call(this, this.key, e);
}
i(ty, "_containerInsertBefore");
function pP(e) {
return ey.call(this, this.key + 1, e);
}
i(pP, "_containerInsertAfter");
var fP = /* @__PURE__ */ i((e) => e[e.length - 1], "last");
function dP(e) {
return Nse(e.parent) && (fP(e.parent.expressions) !== e.node || dP(e.parentPath));
}
i(dP, "isHiddenInSequenceExpression");
function jse(e, t) {
if (!wse(e) || !Ose(e.left))
return !1;
let r = t.getBlockParent();
return r.hasOwnBinding(e.left.name) && r.getOwnBinding(e.left.name).constantViolations.length <= 1;
}
i(jse, "isAlmostConstantAssignment");
function Lse(e) {
if (Nu._assertUnremoved.call(this), this.isSequenceExpression())
return fP(this.get("expressions")).insertAfter(e);
let t = lo.call(this, e), {
parentPath: r,
parent: n
} = this;
if (r.isExpressionStatement() || r.isLabeledStatement() || cP(n) || r.isExportDefaultDeclaration() && this.isDeclaration())
return r.insertAfter(t.map((s) => _se(s) ? Qm(s) : s));
if (this.isNodeType("Expression") && !this.isJSXElement() && !r.isJSXElement() || r.isForStatement() && this.key === "init") {
let s = this;
if (s.node) {
let a = s.node, {
scope: o
} = this;
if (o.path.isPattern())
return Ase(a), s.replaceWith(Dse(Pse([], a), [])), s.get("callee.body").insertAfter(t), [s];
if (dP(s))
t.unshift(a);
else if (Ise(a) && Bse(a.callee))
t.unshift(a), t.push(kse());
else if (jse(a, o))
t.unshift(a), t.push(zm(a.left));
else if (o.isPure(a, !0))
t.push(a);
else {
r.isMethod({
computed: !0,
key: a
}) && (o = o.parent);
let l = o.generateDeclaredUidIdentifier();
t.unshift(Qm(Cse("=", zm(l), a))), t.push(Qm(zm(l)));
}
}
return this.replaceExpressionWithStatements(t);
} else {
if (Array.isArray(this.container))
return pP.call(this, t);
if (this.isStatementOrBlock()) {
let s = this.node, a = s && (!this.isExpressionStatement() || s.expression != null);
return this.replaceWith(uP(a ? [s] : [])), this.pushContainer("body", t);
} else
throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?");
}
}
i(Lse, "insertAfter");
function hP(e, t) {
if (!this.parent) return;
let r = (0, Sse.getCachedPaths)(this.hub, this.parent) || [];
for (let [, n] of r)
typeof n.key == "number" && n.container === this.container && n.key >= e && (n.key += t);
}
i(hP, "updateSiblingKeys");
function lo(e) {
if (!e)
return [];
Array.isArray(e) || (e = [e]);
for (let t = 0; t < e.length; t++) {
let r = e[t], n;
if (r ? typeof r != "object" ? n = "contains a non-object node" : r.type ? r instanceof Zm.default && (n = "has a NodePath when it exp\
ected a raw object") : n = "without a type" : n = "has falsy node", n) {
let s = Array.isArray(r) ? "array" : typeof r;
throw new Error(`Node list ${n} with the index of ${t} and type of ${s}`);
}
}
return e;
}
i(lo, "_verifyNodeList");
function Mse(e, t) {
Nu._assertUnremoved.call(this), t = lo.call(this, t);
let r = Zm.default.get({
parentPath: this,
parent: this.node,
container: this.node[e],
listKey: e,
key: 0
}).setContext(this.context);
return ty.call(r, t);
}
i(Mse, "unshiftContainer");
function Rse(e, t) {
Nu._assertUnremoved.call(this);
let r = lo.call(this, t), n = this.node[e];
return Zm.default.get({
parentPath: this,
parent: this.node,
container: n,
listKey: e,
key: n.length
}).setContext(this.context).replaceWithMultiple(r);
}
i(Rse, "pushContainer");
Lr.hoist = /* @__PURE__ */ i(function(t = this.scope) {
return new vse.default(this, t).run();
}, "hoist");
});
// ../node_modules/@babel/traverse/lib/path/replacement.js
var Ym = P((ds) => {
"use strict";
Object.defineProperty(ds, "__esModule", {
value: !0
});
ds._replaceWith = xP;
ds.replaceExpressionWithStatements = die;
ds.replaceInline = hie;
ds.replaceWith = fie;
ds.replaceWithMultiple = cie;
ds.replaceWithSourceString = pie;
var qse = Xa(), ny = Ot(), Use = fs(), EP = Ws(), sy = _u(), Vse = Rs(), $se = De(), Ui = dn(), {
FUNCTION_TYPES: mP,
arrowFunctionExpression: Wse,
assignmentExpression: TP,
awaitExpression: Kse,
blockStatement: Gse,
buildUndefinedNode: ry,
callExpression: Hse,
cloneNode: iy,
conditionalExpression: Yse,
expressionStatement: Jse,
getBindingIdentifiers: Xse,
identifier: zse,
inheritLeadingComments: Qse,
inheritTrailingComments: Zse,
inheritsComments: eie,
isBlockStatement: tie,
isEmptyStatement: yP,
isExpression: SP,
isExpressionStatement: rie,
isIfStatement: nie,
isProgram: sie,
isStatement: iie,
isVariableDeclaration: aie,
removeComments: oie,
returnStatement: gP,
sequenceExpression: lie,
validate: bP,
yieldExpression: uie
} = $se;
function cie(e) {
var t;
Ui.resync.call(this), e = sy._verifyNodeList.call(this, e), Qse(e[0], this.node), Zse(e[e.length - 1], this.node), (t = (0, EP.getCachedPaths)(
this.hub, this.parent)) == null || t.delete(this.node), this.node = this.container[this.key] = null;
let r = this.insertAfter(e);
return this.node ? this.requeue() : this.remove(), r;
}
i(cie, "replaceWithMultiple");
function pie(e) {
Ui.resync.call(this);
let t;
try {
e = `(${e})`, t = (0, Vse.parse)(e);
} catch (n) {
let s = n.loc;
throw s && (n.message += ` - make sure this is an expression.
` + (0, qse.codeFrameColumns)(e, {
start: {
line: s.line,
column: s.column + 1
}
}), n.code = "BABEL_REPLACE_SOURCE_ERROR"), n;
}
let r = t.program.body[0].expression;
return ny.default.removeProperties(r), this.replaceWith(r);
}
i(pie, "replaceWithSourceString");
function fie(e) {
if (Ui.resync.call(this), this.removed)
throw new Error("You can't replace this node, we've already removed it");
let t = e instanceof Use.default ? e.node : e;
if (!t)
throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");
if (this.node === t)
return [this];
if (this.isProgram() && !sie(t))
throw new Error("You can only replace a Program root node with another Program node");
if (Array.isArray(t))
throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");
if (typeof t == "string")
throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");
let r = "";
if (this.isNodeType("Statement") && SP(t) && !this.canHaveVariableDeclarationOrExpression() && !this.canSwapBetweenExpressionAndStatement(
t) && !this.parentPath.isExportDefaultDeclaration() && (t = Jse(t), r = "expression"), this.isNodeType("Expression") && iie(t) && !this.
canHaveVariableDeclarationOrExpression() && !this.canSwapBetweenExpressionAndStatement(t))
return this.replaceExpressionWithStatements([t]);
let n = this.node;
return n && (eie(t, n), oie(n)), xP.call(this, t), this.type = t.type, Ui.setScope.call(this), this.requeue(), [r ? this.get(r) : this];
}
i(fie, "replaceWith");
function xP(e) {
var t;
if (!this.container)
throw new ReferenceError("Container is falsy");
this.inList ? bP(this.parent, this.key, [e]) : bP(this.parent, this.key, e), this.debug(`Replace with ${e?.type}`), (t = (0, EP.getCachedPaths)(
this.hub, this.parent)) == null || t.set(e, this).delete(this.node), this.node = this.container[this.key] = e;
}
i(xP, "_replaceWith");
function die(e) {
Ui.resync.call(this);
let t = [], r = Bu(e, t);
if (r) {
for (let h of t) this.scope.push({
id: h
});
return this.replaceWith(r)[0].get("expressions");
}
let n = this.getFunctionParent(), s = n?.node.async, a = n?.node.generator, o = Wse([], Gse(e));
this.replaceWith(Hse(o, []));
let l = this.get("callee");
l.get("body").scope.hoistVariables((h) => this.scope.push({
id: h
}));
let u = l.getCompletionRecords();
for (let h of u) {
if (!h.isExpressionStatement()) continue;
let y = h.findParent((E) => E.isLoop());
if (y) {
let E = y.getData("expressionReplacementReturnUid");
E ? E = zse(E.name) : (E = l.scope.generateDeclaredUidIdentifier("ret"), l.get("body").pushContainer("body", gP(iy(E))), y.setData("\
expressionReplacementReturnUid", E)), h.get("expression").replaceWith(TP("=", iy(E), h.node.expression));
} else
h.replaceWith(gP(h.node.expression));
}
l.arrowFunctionToExpression();
let c = l, p = s && ny.default.hasType(this.get("callee.body").node, "AwaitExpression", mP), f = a && ny.default.hasType(this.get("calle\
e.body").node, "YieldExpression", mP);
return p && (c.set("async", !0), f || this.replaceWith(Kse(this.node))), f && (c.set("generator", !0), this.replaceWith(uie(this.node, !0))),
c.get("body.body");
}
i(die, "replaceExpressionWithStatements");
function Bu(e, t) {
let r = [], n = !0;
for (let s of e)
if (yP(s) || (n = !1), SP(s))
r.push(s);
else if (rie(s))
r.push(s.expression);
else if (aie(s)) {
if (s.kind !== "var") return;
for (let a of s.declarations) {
let o = Xse(a);
for (let l of Object.keys(o))
t.push(iy(o[l]));
a.init && r.push(TP("=", a.id, a.init));
}
n = !0;
} else if (nie(s)) {
let a = s.consequent ? Bu([s.consequent], t) : ry(), o = s.alternate ? Bu([s.alternate], t) : ry();
if (!a || !o) return;
r.push(Yse(s.test, a, o));
} else if (tie(s)) {
let a = Bu(s.body, t);
if (!a) return;
r.push(a);
} else if (yP(s))
e.indexOf(s) === 0 && (n = !0);
else
return;
return n && r.push(ry()), r.length === 1 ? r[0] : lie(r);
}
i(Bu, "gatherSequenceExpressions");
function hie(e) {
if (Ui.resync.call(this), Array.isArray(e))
if (Array.isArray(this.container)) {
e = sy._verifyNodeList.call(this, e);
let t = sy._containerInsertAfter.call(this, e);
return this.remove(), t;
} else
return this.replaceWithMultiple(e);
else
return this.replaceWith(e);
}
i(hie, "replaceInline");
});
// ../node_modules/@babel/traverse/lib/path/evaluation.js
var CP = P((ku) => {
"use strict";
Object.defineProperty(ku, "__esModule", {
value: !0
});
ku.evaluate = xie;
ku.evaluateTruthy = Tie;
var mie = ["Number", "String", "Math"], yie = ["isFinite", "isNaN", "parseFloat", "parseInt", "decodeURI", "decodeURIComponent", "encodeUR\
I", "encodeURIComponent", null, null], gie = ["random"];
function vP(e) {
return mie.includes(e);
}
i(vP, "isValidObjectCallee");
function bie(e) {
return yie.includes(e);
}
i(bie, "isValidIdentifierCallee");
function Eie(e) {
return gie.includes(e);
}
i(Eie, "isInvalidMethod");
function Tie() {
let e = this.evaluate();
if (e.confident) return !!e.value;
}
i(Tie, "evaluateTruthy");
function hn(e, t) {
t.confident && (t.deoptPath = e, t.confident = !1);
}
i(hn, "deopt");
var PP = /* @__PURE__ */ new Map([["undefined", void 0], ["Infinity", 1 / 0], ["NaN", NaN]]);
function ur(e, t) {
let {
node: r
} = e, {
seen: n
} = t;
if (n.has(r)) {
let s = n.get(r);
if (s.resolved)
return s.value;
hn(e, t);
return;
} else {
let s = {
resolved: !1
};
n.set(r, s);
let a = Sie(e, t);
return t.confident && (s.resolved = !0, s.value = a), a;
}
}
i(ur, "evaluateCached");
function Sie(e, t) {
if (t.confident) {
if (e.isSequenceExpression()) {
let n = e.get("expressions");
return ur(n[n.length - 1], t);
}
if (e.isStringLiteral() || e.isNumericLiteral() || e.isBooleanLiteral())
return e.node.value;
if (e.isNullLiteral())
return null;
if (e.isTemplateLiteral())
return AP(e, e.node.quasis, t);
if (e.isTaggedTemplateExpression() && e.get("tag").isMemberExpression()) {
let n = e.get("tag.object"), {
node: {
name: s
}
} = n, a = e.get("tag.property");
if (n.isIdentifier() && s === "String" && !e.scope.getBinding(s) && a.isIdentifier() && a.node.name === "raw")
return AP(e, e.node.quasi.quasis, t, !0);
}
if (e.isConditionalExpression()) {
let n = ur(e.get("test"), t);
return t.confident ? ur(n ? e.get("consequent") : e.get("alternate"), t) : void 0;
}
if (e.isExpressionWrapper())
return ur(e.get("expression"), t);
if (e.isMemberExpression() && !e.parentPath.isCallExpression({
callee: e.node
})) {
let n = e.get("property"), s = e.get("object");
if (s.isLiteral()) {
let a = s.node.value, o = typeof a, l = null;
if (e.node.computed) {
if (l = ur(n, t), !t.confident) return;
} else n.isIdentifier() && (l = n.node.name);
if ((o === "number" || o === "string") && l != null && (typeof l == "number" || typeof l == "string"))
return a[l];
}
}
if (e.isReferencedIdentifier()) {
let n = e.scope.getBinding(e.node.name);
if (n) {
if (n.constantViolations.length > 0 || e.node.start < n.path.node.end) {
hn(n.path, t);
return;
}
let o = n.path.scope;
if (n.kind === "var" && o !== n.scope) {
let l = !o.path.parentPath.isBlockStatement();
for (let u = o.parent; u; u = u.parent) {
var r;
if (u === e.scope) {
if (l) {
hn(n.path, t);
return;
}
break;
}
(r = u.path.parentPath) != null && r.isBlockStatement() && (l = !0);
}
}
if (n.hasValue)
return n.value;
}
let s = e.node.name;
if (PP.has(s)) {
if (!n)
return PP.get(s);
hn(n.path, t);
return;
}
let a = e.resolve();
if (a === e) {
hn(e, t);
return;
} else
return ur(a, t);
}
if (e.isUnaryExpression({
prefix: !0
})) {
if (e.node.operator === "void")
return;
let n = e.get("argument");
if (e.node.operator === "typeof" && (n.isFunction() || n.isClass()))
return "function";
let s = ur(n, t);
if (!t.confident) return;
switch (e.node.operator) {
case "!":
return !s;
case "+":
return +s;
case "-":
return -s;
case "~":
return ~s;
case "typeof":
return typeof s;
}
}
if (e.isArrayExpression()) {
let n = [], s = e.get("elements");
for (let a of s) {
let o = a.evaluate();
if (o.confident)
n.push(o.value);
else {
hn(o.deopt, t);
return;
}
}
return n;
}
if (e.isObjectExpression()) {
let n = {}, s = e.get("properties");
for (let a of s) {
if (a.isObjectMethod() || a.isSpreadElement()) {
hn(a, t);
return;
}
let o = a.get("key"), l;
if (a.node.computed) {
if (l = o.evaluate(), !l.confident) {
hn(l.deopt, t);
return;
}
l = l.value;
} else o.isIdentifier() ? l = o.node.name : l = o.node.value;
let c = a.get("value").evaluate();
if (!c.confident) {
hn(c.deopt, t);
return;
}
c = c.value, n[l] = c;
}
return n;
}
if (e.isLogicalExpression()) {
let n = t.confident, s = ur(e.get("left"), t), a = t.confident;
t.confident = n;
let o = ur(e.get("right"), t), l = t.confident;
switch (e.node.operator) {
case "||":
return t.confident = a && (!!s || l), t.confident ? s || o : void 0;
case "&&":
return t.confident = a && (!s || l), t.confident ? s && o : void 0;
case "??":
return t.confident = a && (s != null || l), t.confident ? s ?? o : void 0;
}
}
if (e.isBinaryExpression()) {
let n = ur(e.get("left"), t);
if (!t.confident) return;
let s = ur(e.get("right"), t);
if (!t.confident) return;
switch (e.node.operator) {
case "-":
return n - s;
case "+":
return n + s;
case "/":
return n / s;
case "*":
return n * s;
case "%":
return n % s;
case "**":
return Math.pow(n, s);
case "<":
return n < s;
case ">":
return n > s;
case "<=":
return n <= s;
case ">=":
return n >= s;
case "==":
return n == s;
case "!=":
return n != s;
case "===":
return n === s;
case "!==":
return n !== s;
case "|":
return n | s;
case "&":
return n & s;
case "^":
return n ^ s;
case "<<":
return n << s;
case ">>":
return n >> s;
case ">>>":
return n >>> s;
}
}
if (e.isCallExpression()) {
let n = e.get("callee"), s, a;
if (n.isIdentifier() && !e.scope.getBinding(n.node.name) && (vP(n.node.name) || bie(n.node.name)) && (a = global[n.node.name]), n.isMemberExpression()) {
let o = n.get("object"), l = n.get("property");
if (o.isIdentifier() && l.isIdentifier() && vP(o.node.name) && !Eie(l.node.name)) {
s = global[o.node.name];
let u = l.node.name;
hasOwnProperty.call(s, u) && (a = s[u]);
}
if (o.isLiteral() && l.isIdentifier()) {
let u = typeof o.node.value;
(u === "string" || u === "number") && (s = o.node.value, a = s[l.node.name]);
}
}
if (a) {
let o = e.get("arguments").map((l) => ur(l, t));
return t.confident ? a.apply(s, o) : void 0;
}
}
hn(e, t);
}
}
i(Sie, "_evaluate");
function AP(e, t, r, n = !1) {
let s = "", a = 0, o = e.isTemplateLiteral() ? e.get("expressions") : e.get("quasi.expressions");
for (let l of t) {
if (!r.confident) break;
s += n ? l.value.raw : l.value.cooked;
let u = o[a++];
u && (s += String(ur(u, r)));
}
if (r.confident)
return s;
}
i(AP, "evaluateQuasis");
function xie() {
let e = {
confident: !0,
deoptPath: null,
seen: /* @__PURE__ */ new Map()
}, t = ur(this, e);
return e.confident || (t = void 0), {
confident: e.confident,
deopt: e.deoptPath,
value: t
};
}
i(xie, "evaluate");
});
// ../node_modules/@babel/traverse/lib/path/conversion.js
var kP = P((Bn) => {
"use strict";
Object.defineProperty(Bn, "__esModule", {
value: !0
});
Bn.arrowFunctionToExpression = Qie;
Bn.ensureBlock = Jie;
Bn.ensureFunctionName = cae;
Bn.splitExportDeclaration = lae;
Bn.toComputedKey = Yie;
Bn.unwrapFunctionEnvironment = Xie;
var vie = De(), Pie = Za(), ly = Zl(), Aie = dn(), {
arrowFunctionExpression: uy,
assignmentExpression: Xs,
binaryExpression: ay,
blockStatement: Cie,
callExpression: Vi,
conditionalExpression: Die,
expressionStatement: IP,
identifier: it,
isIdentifier: wie,
jsxIdentifier: Iie,
logicalExpression: _ie,
LOGICAL_OPERATORS: Oie,
memberExpression: Hr,
metaProperty: Nie,
numericLiteral: Bie,
objectExpression: kie,
restElement: Fie,
returnStatement: jie,
sequenceExpression: Lie,
spreadElement: Mie,
stringLiteral: _P,
super: oy,
thisExpression: uo,
toExpression: OP,
unaryExpression: Rie,
toBindingIdentifierName: qie,
isFunction: Uie,
isAssignmentPattern: Vie,
isRestElement: $ie,
getFunctionName: Wie,
cloneNode: zs,
variableDeclaration: Kie,
variableDeclarator: Gie,
exportNamedDeclaration: DP,
exportSpecifier: wP,
inherits: Hie
} = vie;
function Yie() {
let e;
if (this.isMemberExpression())
e = this.node.property;
else if (this.isProperty() || this.isMethod())
e = this.node.key;
else
throw new ReferenceError("todo");
return this.node.computed || wie(e) && (e = _P(e.name)), e;
}
i(Yie, "toComputedKey");
function Jie() {
let e = this.get("body"), t = e.node;
if (Array.isArray(e))
throw new Error("Can't convert array path to a block statement");
if (!t)
throw new Error("Can't convert node without a body");
if (e.isBlockStatement())
return t;
let r = [], n = "body", s, a;
e.isStatement() ? (a = "body", s = 0, r.push(e.node)) : (n += ".body.0", this.isFunction() ? (s = "argument", r.push(jie(e.node))) : (s =
"expression", r.push(IP(e.node)))), this.node.body = Cie(r);
let o = this.get(n);
return Aie.setup.call(e, o, a ? o.node[a] : o.node, a, s), this.node;
}
i(Jie, "ensureBlock");
Bn.arrowFunctionToShadowed = function() {
this.isArrowFunctionExpression() && this.arrowFunctionToExpression();
};
function Xie() {
if (!this.isArrowFunctionExpression() && !this.isFunctionExpression() && !this.isFunctionDeclaration())
throw this.buildCodeFrameError("Can only unwrap the environment of a function.");
NP(this);
}
i(Xie, "unwrapFunctionEnvironment");
function zie(e, t) {
e.node.type = t;
}
i(zie, "setType");
function Qie({
allowInsertArrow: e = !0,
allowInsertArrowWithRest: t = e,
noNewArrows: r = !((n) => (n = arguments[0]) == null ? void 0 : n.specCompliant)()
} = {}) {
if (!this.isArrowFunctionExpression())
throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");
let n = this;
if (!r) {
var s;
n = (s = n.ensureFunctionName(!1)) != null ? s : n;
}
let {
thisBinding: a,
fnPath: o
} = NP(n, r, e, t);
if (o.ensureBlock(), zie(o, "FunctionExpression"), !r) {
let l = a ? null : o.scope.generateUidIdentifier("arrowCheckId");
return l && o.parentPath.scope.push({
id: l,
init: kie([])
}), o.get("body").unshiftContainer("body", IP(Vi(this.hub.addHelper("newArrowCheck"), [uo(), it(l ? l.name : a)]))), o.replaceWith(Vi(
Hr(o.node, it("bind")), [l ? it(l.name) : uo()])), o.get("callee.object");
}
return o;
}
i(Qie, "arrowFunctionToExpression");
var Zie = (0, ly.environmentVisitor)({
CallExpression(e, {
allSuperCalls: t
}) {
e.get("callee").isSuper() && t.push(e);
}
});
function NP(e, t = !0, r = !0, n = !0) {
let s, a = e.findParent((y) => y.isArrowFunctionExpression() ? (s ?? (s = y), !1) : y.isFunction() || y.isProgram() || y.isClassProperty(
{
static: !1
}) || y.isClassPrivateProperty({
static: !1
})), o = a.isClassMethod({
kind: "constructor"
});
if (a.isClassProperty() || a.isClassPrivateProperty())
if (s)
a = s;
else if (r)
e.replaceWith(Vi(uy([], OP(e.node)), [])), a = e.get("callee"), e = a.get("body");
else
throw e.buildCodeFrameError("Unable to transform arrow inside class property");
let {
thisPaths: l,
argumentsPaths: u,
newTargetPaths: c,
superProps: p,
superCalls: f
} = oae(e);
if (o && f.length > 0) {
if (!r)
throw f[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an a\
rrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");
if (!n)
throw f[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow \
function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration\
.");
let y = [];
a.traverse(Zie, {
allSuperCalls: y
});
let E = sae(a);
y.forEach((d) => {
let g = it(E);
g.loc = d.node.callee.loc, d.get("callee").replaceWith(g);
});
}
if (u.length > 0) {
let y = co(a, "arguments", () => {
let E = /* @__PURE__ */ i(() => it("arguments"), "args");
return a.scope.path.isProgram() ? Die(ay("===", Rie("typeof", E()), _P("undefined")), a.scope.buildUndefinedNode(), E()) : E();
});
u.forEach((E) => {
let d = it(y);
d.loc = E.node.loc, E.replaceWith(d);
});
}
if (c.length > 0) {
let y = co(a, "newtarget", () => Nie(it("new"), it("target")));
c.forEach((E) => {
let d = it(y);
d.loc = E.node.loc, E.replaceWith(d);
});
}
if (p.length > 0) {
if (!r)
throw p[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in a\
n arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");
p.reduce((E, d) => E.concat(tae(d)), []).forEach((E) => {
let d = E.node.computed ? "" : E.get("property").node.name, g = E.parentPath, C = g.isAssignmentExpression({
left: E.node
}), _ = g.isCallExpression({
callee: E.node
}), O = g.isTaggedTemplateExpression({
tag: E.node
}), B = iae(a, C, d), R = [];
if (E.node.computed && R.push(E.get("property").node), C) {
let V = g.node.right;
R.push(V);
}
let $ = Vi(it(B), R);
_ ? (g.unshiftContainer("arguments", uo()), E.replaceWith(Hr($, it("call"))), l.push(g.get("arguments.0"))) : C ? g.replaceWith($) :
O ? (E.replaceWith(Vi(Hr($, it("bind"), !1), [uo()])), l.push(E.get("arguments.0"))) : E.replaceWith($);
});
}
let h;
return (l.length > 0 || !t) && (h = nae(a, o), (t || o && BP(a)) && (l.forEach((y) => {
let E = y.isJSX() ? Iie(h) : it(h);
E.loc = y.node.loc, y.replaceWith(E);
}), t || (h = null))), {
thisBinding: h,
fnPath: e
};
}
i(NP, "hoistFunctionEnvironment");
function eae(e) {
return Oie.includes(e);
}
i(eae, "isLogicalOp");
function tae(e) {
if (e.parentPath.isAssignmentExpression() && e.parentPath.node.operator !== "=") {
let r = e.parentPath, n = r.node.operator.slice(0, -1), s = r.node.right, a = eae(n);
if (e.node.computed) {
let o = e.scope.generateDeclaredUidIdentifier("tmp"), l = e.node.object, u = e.node.property;
r.get("left").replaceWith(Hr(l, Xs("=", o, u), !0)), r.get("right").replaceWith(t(a ? "=" : n, Hr(l, it(o.name), !0), s));
} else {
let o = e.node.object, l = e.node.property;
r.get("left").replaceWith(Hr(o, l)), r.get("right").replaceWith(t(a ? "=" : n, Hr(o, it(l.name)), s));
}
return a ? r.replaceWith(_ie(n, r.node.left, r.node.right)) : r.node.operator = "=", [r.get("left"), r.get("right").get("left")];
} else if (e.parentPath.isUpdateExpression()) {
let r = e.parentPath, n = e.scope.generateDeclaredUidIdentifier("tmp"), s = e.node.computed ? e.scope.generateDeclaredUidIdentifier("p\
rop") : null, a = [Xs("=", n, Hr(e.node.object, s ? Xs("=", s, e.node.property) : e.node.property, e.node.computed)), Xs("=", Hr(e.node.object,
s ? it(s.name) : e.node.property, e.node.computed), ay(e.parentPath.node.operator[0], it(n.name), Bie(1)))];
e.parentPath.node.prefix || a.push(it(n.name)), r.replaceWith(Lie(a));
let o = r.get("expressions.0.right"), l = r.get("expressions.1.left");
return [o, l];
}
return [e];
function t(r, n, s) {
return r === "=" ? Xs("=", n, s) : ay(r, n, s);
}
}
i(tae, "standardizeSuperProperty");
function BP(e) {
return e.isClassMethod() && !!e.parentPath.parentPath.node.superClass;
}
i(BP, "hasSuperClass");
var rae = (0, ly.environmentVisitor)({
CallExpression(e, {
supers: t,
thisBinding: r
}) {
e.get("callee").isSuper() && (t.has(e.node) || (t.add(e.node), e.replaceWithMultiple([e.node, Xs("=", it(r), it("this"))])));
}
});
function nae(e, t) {
return co(e, "this", (r) => {
if (!t || !BP(e)) return uo();
e.traverse(rae, {
supers: /* @__PURE__ */ new WeakSet(),
thisBinding: r
});
});
}
i(nae, "getThisBinding");
function sae(e) {
return co(e, "supercall", () => {
let t = e.scope.generateUidIdentifier("args");
return uy([Fie(t)], Vi(oy(), [Mie(it(t.name))]));
});
}
i(sae, "getSuperBinding");
function iae(e, t, r) {
return co(e, `superprop_${t ? "set" : "get"}:${r || ""}`, () => {
let s = [], a;
if (r)
a = Hr(oy(), it(r));
else {
let o = e.scope.generateUidIdentifier("prop");
s.unshift(o), a = Hr(oy(), it(o.name), !0);
}
if (t) {
let o = e.scope.generateUidIdentifier("value");
s.push(o), a = Xs("=", a, it(o.name));
}
return uy(s, a);
});
}
i(iae, "getSuperPropBinding");
function co(e, t, r) {
let n = "binding:" + t, s = e.getData(n);
if (!s) {
let a = e.scope.generateUidIdentifier(t);
s = a.name, e.setData(n, s), e.scope.push({
id: a,
init: r(s)
});
}
return s;
}
i(co, "getBinding");
var aae = (0, ly.environmentVisitor)({
ThisExpression(e, {
thisPaths: t
}) {
t.push(e);
},
JSXIdentifier(e, {
thisPaths: t
}) {
e.node.name === "this" && (!e.parentPath.isJSXMemberExpression({
object: e.node
}) && !e.parentPath.isJSXOpeningElement({
name: e.node
}) || t.push(e));
},
CallExpression(e, {
superCalls: t
}) {
e.get("callee").isSuper() && t.push(e);
},
MemberExpression(e, {
superProps: t
}) {
e.get("object").isSuper() && t.push(e);
},
Identifier(e, {
argumentsPaths: t
}) {
if (!e.isReferencedIdentifier({
name: "arguments"
})) return;
let r = e.scope;
do {
if (r.hasOwnBinding("arguments")) {
r.rename("arguments");
return;
}
if (r.path.isFunction() && !r.path.isArrowFunctionExpression())
break;
} while (r = r.parent);
t.push(e);
},
MetaProperty(e, {
newTargetPaths: t
}) {
e.get("meta").isIdentifier({
name: "new"
}) && e.get("property").isIdentifier({
name: "target"
}) && t.push(e);
}
});
function oae(e) {
let t = [], r = [], n = [], s = [], a = [];
return e.traverse(aae, {
thisPaths: t,
argumentsPaths: r,
newTargetPaths: n,
superProps: s,
superCalls: a
}), {
thisPaths: t,
argumentsPaths: r,
newTargetPaths: n,
superProps: s,
superCalls: a
};
}
i(oae, "getScopeInformation");
function lae() {
if (!this.isExportDeclaration() || this.isExportAllDeclaration())
throw new Error("Only default and named export declarations can be split.");
if (this.isExportNamedDeclaration() && this.get("specifiers").length > 0)
throw new Error("It doesn't make sense to split exported specifiers.");
let e = this.get("declaration");
if (this.isExportDefaultDeclaration()) {
let s = e.isFunctionDeclaration() || e.isClassDeclaration(), a = e.isFunctionExpression() || e.isClassExpression(), o = e.isScope() ? e.
scope.parent : e.scope, l = e.node.id, u = !1;
l ? a && o.hasBinding(l.name) && (u = !0, l = o.generateUidIdentifier(l.name)) : (u = !0, l = o.generateUidIdentifier("default"), (s ||
a) && (e.node.id = zs(l)));
let c = s ? e.node : Kie("var", [Gie(zs(l), e.node)]), p = DP(null, [wP(zs(l), it("default"))]);
return this.insertAfter(p), this.replaceWith(c), u && o.registerDeclaration(this), this;
} else if (this.get("specifiers").length > 0)
throw new Error("It doesn't make sense to split exported specifiers.");
let t = e.getOuterBindingIdentifiers(), r = Object.keys(t).map((s) => wP(it(s), it(s))), n = DP(null, r);
return this.insertAfter(n), this.replaceWith(e.node), this;
}
i(lae, "splitExportDeclaration");
var uae = {
"ReferencedIdentifier|BindingIdentifier"(e, t) {
e.node.name === t.name && (t.needsRename = !0, e.stop());
},
Scope(e, t) {
e.scope.hasOwnBinding(t.name) && e.skip();
}
};
function cae(e) {
if (this.node.id) return this;
let t = Wie(this.node, this.parent);
if (t == null) return this;
let {
name: r
} = t;
if (!e && /[\uD800-\uDFFF]/.test(r) || r.startsWith("get ") || r.startsWith("set "))
return null;
r = qie(r.replace(/[/ ]/g, "_"));
let n = it(r);
Hie(n, t.originalNode);
let s = {
needsRename: !1,
name: r
}, {
scope: a
} = this, o = a.getOwnBinding(r);
if (o ? o.kind === "param" && (s.needsRename = !0) : (a.parent.hasBinding(r) || a.hasGlobal(r)) && this.traverse(uae, s), !s.needsRename)
return this.node.id = n, a.getProgramParent().references[n.name] = !0, this;
if (a.hasBinding(n.name) && !a.hasGlobal(n.name))
return a.rename(n.name), this.node.id = n, a.getProgramParent().references[n.name] = !0, this;
if (!Uie(this.node)) return null;
let l = a.generateUidIdentifier(n.name), u = [];
for (let p = 0, f = pae(this.node); p < f; p++)
u.push(a.generateUidIdentifier("x"));
let c = Pie.default.expression.ast`
(function (${l}) {
function ${n}(${u}) {
return ${zs(l)}.apply(this, arguments);
}
${zs(n)}.toString = function () {
return ${zs(l)}.toString();
}
return ${zs(n)};
})(${OP(this.node)})
`;
return this.replaceWith(c)[0].get("arguments.0");
}
i(cae, "ensureFunctionName");
function pae(e) {
let t = e.params.findIndex((r) => Vie(r) || $ie(r));
return t === -1 ? e.params.length : t;
}
i(pae, "getFunctionArity");
});
// ../node_modules/@babel/traverse/lib/path/introspection.js
var qP = P((xt) => {
"use strict";
Object.defineProperty(xt, "__esModule", {
value: !0
});
xt._guessExecutionStatusRelativeTo = Nae;
xt._resolve = RP;
xt.canHaveVariableDeclarationOrExpression = Pae;
xt.canSwapBetweenExpressionAndStatement = Aae;
xt.getSource = Iae;
xt.isCompletionRecord = Cae;
xt.isConstantExpression = jae;
xt.isInStrictMode = Lae;
xt.isNodeType = vae;
xt.isStatementOrBlock = Dae;
xt.isStatic = xae;
xt.matchesPattern = Sae;
xt.referencesImport = wae;
xt.resolve = Fae;
xt.willIMaybeExecuteBefore = _ae;
var fae = De(), {
STATEMENT_OR_BLOCK_KEYS: dae,
VISITOR_KEYS: hae,
isBlockStatement: MP,
isExpression: mae,
isIdentifier: yae,
isLiteral: gae,
isStringLiteral: bae,
isType: Eae,
matchesPattern: Tae
} = fae;
function Sae(e, t) {
return Tae(this.node, e, t);
}
i(Sae, "matchesPattern");
xt.has = /* @__PURE__ */ i(function(t) {
var r;
let n = (r = this.node) == null ? void 0 : r[t];
return n && Array.isArray(n) ? !!n.length : !!n;
}, "has");
function xae() {
return this.scope.isStatic(this.node);
}
i(xae, "isStatic");
xt.is = xt.has, xt.isnt = /* @__PURE__ */ i(function(t) {
return !this.has(t);
}, "isnt"), xt.equals = /* @__PURE__ */ i(function(t, r) {
return this.node[t] === r;
}, "equals");
function vae(e) {
return Eae(this.type, e);
}
i(vae, "isNodeType");
function Pae() {
return (this.key === "init" || this.key === "left") && this.parentPath.isFor();
}
i(Pae, "canHaveVariableDeclarationOrExpression");
function Aae(e) {
return this.key !== "body" || !this.parentPath.isArrowFunctionExpression() ? !1 : this.isExpression() ? MP(e) : this.isBlockStatement() ?
mae(e) : !1;
}
i(Aae, "canSwapBetweenExpressionAndStatement");
function Cae(e) {
let t = this, r = !0;
do {
let {
type: n,
container: s
} = t;
if (!r && (t.isFunction() || n === "StaticBlock"))
return !!e;
if (r = !1, Array.isArray(s) && t.key !== s.length - 1)
return !1;
} while ((t = t.parentPath) && !t.isProgram() && !t.isDoExpression());
return !0;
}
i(Cae, "isCompletionRecord");
function Dae() {
return this.parentPath.isLabeledStatement() || MP(this.container) ? !1 : dae.includes(this.key);
}
i(Dae, "isStatementOrBlock");
function wae(e, t) {
if (!this.isReferencedIdentifier()) {
if (this.isJSXMemberExpression() && this.node.property.name === t || (this.isMemberExpression() || this.isOptionalMemberExpression()) &&
(this.node.computed ? bae(this.node.property, {
value: t
}) : this.node.property.name === t)) {
let a = this.get("object");
return a.isReferencedIdentifier() && a.referencesImport(e, "*");
}
return !1;
}
let r = this.scope.getBinding(this.node.name);
if (!r || r.kind !== "module") return !1;
let n = r.path, s = n.parentPath;
if (!s.isImportDeclaration()) return !1;
if (s.node.source.value === e) {
if (!t) return !0;
} else
return !1;
return !!(n.isImportDefaultSpecifier() && t === "default" || n.isImportNamespaceSpecifier() && t === "*" || n.isImportSpecifier() && yae(
n.node.imported, {
name: t
}));
}
i(wae, "referencesImport");
function Iae() {
let e = this.node;
if (e.end) {
let t = this.hub.getCode();
if (t) return t.slice(e.start, e.end);
}
return "";
}
i(Iae, "getSource");
function _ae(e) {
return this._guessExecutionStatusRelativeTo(e) !== "after";
}
i(_ae, "willIMaybeExecuteBefore");
function FP(e) {
return e.isProgram() ? e : (e.parentPath.scope.getFunctionParent() || e.parentPath.scope.getProgramParent()).path;
}
i(FP, "getOuterFunction");
function Oae(e, t) {
switch (e) {
case "LogicalExpression":
return t === "right";
case "ConditionalExpression":
case "IfStatement":
return t === "consequent" || t === "alternate";
case "WhileStatement":
case "DoWhileStatement":
case "ForInStatement":
case "ForOfStatement":
return t === "body";
case "ForStatement":
return t === "body" || t === "update";
case "SwitchStatement":
return t === "cases";
case "TryStatement":
return t === "handler";
case "AssignmentPattern":
return t === "right";
case "OptionalMemberExpression":
return t === "property";
case "OptionalCallExpression":
return t === "arguments";
default:
return !1;
}
}
i(Oae, "isExecutionUncertain");
function jP(e, t) {
for (let r = 0; r < t; r++) {
let n = e[r];
if (Oae(n.parent.type, n.parentKey))
return !0;
}
return !1;
}
i(jP, "isExecutionUncertainInList");
var LP = Symbol();
function Nae(e) {
return cy(this, e, /* @__PURE__ */ new Map());
}
i(Nae, "_guessExecutionStatusRelativeTo");
function cy(e, t, r) {
let n = {
this: FP(e),
target: FP(t)
};
if (n.target.node !== n.this.node)
return kae(e, n.target, r);
let s = {
target: t.getAncestry(),
this: e.getAncestry()
};
if (s.target.includes(e)) return "after";
if (s.this.includes(t)) return "before";
let a, o = {
target: 0,
this: 0
};
for (; !a && o.this < s.this.length; ) {
let p = s.this[o.this];
o.target = s.target.indexOf(p), o.target >= 0 ? a = p : o.this++;
}
if (!a)
throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");
if (jP(s.this, o.this - 1) || jP(s.target, o.target - 1))
return "unknown";
let l = {
this: s.this[o.this - 1],
target: s.target[o.target - 1]
};
if (l.target.listKey && l.this.listKey && l.target.container === l.this.container)
return l.target.key > l.this.key ? "before" : "after";
let u = hae[a.type], c = {
this: u.indexOf(l.this.parentKey),
target: u.indexOf(l.target.parentKey)
};
return c.target > c.this ? "before" : "after";
}
i(cy, "_guessExecutionStatusRelativeToCached");
function Bae(e, t, r) {
if (t.isFunctionDeclaration()) {
if (t.parentPath.isExportDeclaration())
return "unknown";
} else return cy(e, t, r) === "before" ? "before" : "unknown";
let n = t.scope.getBinding(t.node.id.name);
if (!n.references) return "before";
let s = n.referencePaths, a;
for (let o of s) {
if (!!o.find((c) => c.node === t.node)) continue;
if (o.key !== "callee" || !o.parentPath.isCallExpression())
return "unknown";
let u = cy(e, o, r);
if (a && a !== u)
return "unknown";
a = u;
}
return a;
}
i(Bae, "_guessExecutionStatusRelativeToDifferentFunctionsInternal");
function kae(e, t, r) {
let n = r.get(e.node), s;
if (!n)
r.set(e.node, n = /* @__PURE__ */ new Map());
else if (s = n.get(t.node))
return s === LP ? "unknown" : s;
n.set(t.node, LP);
let a = Bae(e, t, r);
return n.set(t.node, a), a;
}
i(kae, "_guessExecutionStatusRelativeToDifferentFunctionsCached");
function Fae(e, t) {
return RP.call(this, e, t) || this;
}
i(Fae, "resolve");
function RP(e, t) {
var r;
if (!((r = t) != null && r.includes(this)))
if (t = t || [], t.push(this), this.isVariableDeclarator()) {
if (this.get("id").isIdentifier())
return this.get("init").resolve(e, t);
} else if (this.isReferencedIdentifier()) {
let n = this.scope.getBinding(this.node.name);
if (!n || !n.constant || n.kind === "module") return;
if (n.path !== this) {
let s = n.path.resolve(e, t);
return this.find((a) => a.node === s.node) ? void 0 : s;
}
} else {
if (this.isTypeCastExpression())
return this.get("expression").resolve(e, t);
if (e && this.isMemberExpression()) {
let n = this.toComputedKey();
if (!gae(n)) return;
let s = n.value, a = this.get("object").resolve(e, t);
if (a.isObjectExpression()) {
let o = a.get("properties");
for (let l of o) {
if (!l.isProperty()) continue;
let u = l.get("key"), c = l.isnt("computed") && u.isIdentifier({
name: s
});
if (c = c || u.isLiteral({
value: s
}), c) return l.get("value").resolve(e, t);
}
} else if (a.isArrayExpression() && !isNaN(+s)) {
let l = a.get("elements")[s];
if (l) return l.resolve(e, t);
}
}
}
}
i(RP, "_resolve");
function jae() {
if (this.isIdentifier()) {
let e = this.scope.getBinding(this.node.name);
return e ? e.constant : !1;
}
if (this.isLiteral())
return this.isRegExpLiteral() ? !1 : this.isTemplateLiteral() ? this.get("expressions").every((e) => e.isConstantExpression()) : !0;
if (this.isUnaryExpression())
return this.node.operator !== "void" ? !1 : this.get("argument").isConstantExpression();
if (this.isBinaryExpression()) {
let {
operator: e
} = this.node;
return e !== "in" && e !== "instanceof" && this.get("left").isConstantExpression() && this.get("right").isConstantExpression();
}
return this.isMemberExpression() ? !this.node.computed && this.get("object").isIdentifier({
name: "Symbol"
}) && !this.scope.hasBinding("Symbol", {
noGlobals: !0
}) : this.isCallExpression() ? this.node.arguments.length === 1 && this.get("callee").matchesPattern("Symbol.for") && !this.scope.hasBinding(
"Symbol", {
noGlobals: !0
}) && this.get("arguments")[0].isStringLiteral() : !1;
}
i(jae, "isConstantExpression");
function Lae() {
return !!(this.isProgram() ? this : this.parentPath).find((r) => {
if (r.isProgram({
sourceType: "module"
}) || r.isClass()) return !0;
if (r.isArrowFunctionExpression() && !r.get("body").isBlockStatement())
return !1;
let n;
if (r.isFunction())
n = r.node.body;
else if (r.isProgram())
n = r.node;
else
return !1;
for (let s of n.directives)
if (s.value.value === "use strict")
return !0;
});
}
i(Lae, "isInStrictMode");
});
// ../node_modules/@babel/traverse/lib/path/family.js
var KP = P((Wt) => {
"use strict";
Object.defineProperty(Wt, "__esModule", {
value: !0
});
Wt._getKey = $P;
Wt._getPattern = WP;
Wt.get = eoe;
Wt.getAllNextSiblings = Qae;
Wt.getAllPrevSiblings = Zae;
Wt.getAssignmentIdentifiers = toe;
Wt.getBindingIdentifierPaths = soe;
Wt.getBindingIdentifiers = roe;
Wt.getCompletionRecords = Yae;
Wt.getNextSibling = zae;
Wt.getOpposite = Kae;
Wt.getOuterBindingIdentifierPaths = ioe;
Wt.getOuterBindingIdentifiers = noe;
Wt.getPrevSibling = Xae;
Wt.getSibling = Jae;
var fy = fs(), Mae = De(), {
getAssignmentIdentifiers: Rae,
getBindingIdentifiers: VP,
getOuterBindingIdentifiers: qae,
numericLiteral: Uae,
unaryExpression: Vae
} = Mae, dy = 0, po = 1;
function $ae(e) {
return {
type: dy,
path: e
};
}
i($ae, "NormalCompletion");
function Wae(e) {
return {
type: po,
path: e
};
}
i(Wae, "BreakCompletion");
function Kae() {
return this.key === "left" ? this.getSibling("right") : this.key === "right" ? this.getSibling("left") : null;
}
i(Kae, "getOpposite");
function $i(e, t, r) {
return e && t.push(...Wi(e, r)), t;
}
i($i, "addCompletionRecords");
function Gae(e, t, r) {
let n = [];
for (let s = 0; s < e.length; s++) {
let a = e[s], o = Wi(a, r), l = [], u = [];
for (let c of o)
c.type === dy && l.push(c), c.type === po && u.push(c);
l.length && (n = l), t.push(...u);
}
return t.push(...n), t;
}
i(Gae, "completionRecordForSwitch");
function Hae(e) {
e.forEach((t) => {
t.type = po;
});
}
i(Hae, "normalCompletionToBreak");
function py(e, t) {
e.forEach((r) => {
r.path.isBreakStatement({
label: null
}) && (t ? r.path.replaceWith(Vae("void", Uae(0))) : r.path.remove());
});
}
i(py, "replaceBreakStatementInBreakCompletion");
function UP(e, t) {
let r = [];
if (t.canHaveBreak) {
let n = [];
for (let s = 0; s < e.length; s++) {
let a = e[s], o = Object.assign({}, t, {
inCaseClause: !1
});
a.isBlockStatement() && (t.inCaseClause || t.shouldPopulateBreak) ? o.shouldPopulateBreak = !0 : o.shouldPopulateBreak = !1;
let l = Wi(a, o);
if (l.length > 0 && l.every((u) => u.type === po)) {
n.length > 0 && l.every((u) => u.path.isBreakStatement({
label: null
})) ? (Hae(n), r.push(...n), n.some((u) => u.path.isDeclaration()) && (r.push(...l), py(l, !0)), py(l, !1)) : (r.push(...l), t.shouldPopulateBreak ||
py(l, !0));
break;
}
if (s === e.length - 1)
r.push(...l);
else {
n = [];
for (let u = 0; u < l.length; u++) {
let c = l[u];
c.type === po && r.push(c), c.type === dy && n.push(c);
}
}
}
} else if (e.length)
for (let n = e.length - 1; n >= 0; n--) {
let s = Wi(e[n], t);
if (s.length > 1 || s.length === 1 && !s[0].path.isVariableDeclaration()) {
r.push(...s);
break;
}
}
return r;
}
i(UP, "getStatementListCompletion");
function Wi(e, t) {
let r = [];
if (e.isIfStatement())
r = $i(e.get("consequent"), r, t), r = $i(e.get("alternate"), r, t);
else {
if (e.isDoExpression() || e.isFor() || e.isWhile() || e.isLabeledStatement())
return $i(e.get("body"), r, t);
if (e.isProgram() || e.isBlockStatement())
return UP(e.get("body"), t);
if (e.isFunction())
return Wi(e.get("body"), t);
if (e.isTryStatement())
r = $i(e.get("block"), r, t), r = $i(e.get("handler"), r, t);
else {
if (e.isCatchClause())
return $i(e.get("body"), r, t);
if (e.isSwitchStatement())
return Gae(e.get("cases"), r, t);
if (e.isSwitchCase())
return UP(e.get("consequent"), {
canHaveBreak: !0,
shouldPopulateBreak: !1,
inCaseClause: !0
});
e.isBreakStatement() ? r.push(Wae(e)) : r.push($ae(e));
}
}
return r;
}
i(Wi, "_getCompletionRecords");
function Yae() {
return Wi(this, {
canHaveBreak: !1,
shouldPopulateBreak: !1,
inCaseClause: !1
}).map((t) => t.path);
}
i(Yae, "getCompletionRecords");
function Jae(e) {
return fy.default.get({
parentPath: this.parentPath,
parent: this.parent,
container: this.container,
listKey: this.listKey,
key: e
}).setContext(this.context);
}
i(Jae, "getSibling");
function Xae() {
return this.getSibling(this.key - 1);
}
i(Xae, "getPrevSibling");
function zae() {
return this.getSibling(this.key + 1);
}
i(zae, "getNextSibling");
function Qae() {
let e = this.key, t = this.getSibling(++e), r = [];
for (; t.node; )
r.push(t), t = this.getSibling(++e);
return r;
}
i(Qae, "getAllNextSiblings");
function Zae() {
let e = this.key, t = this.getSibling(--e), r = [];
for (; t.node; )
r.push(t), t = this.getSibling(--e);
return r;
}
i(Zae, "getAllPrevSiblings");
function eoe(e, t = !0) {
t === !0 && (t = this.context);
let r = e.split(".");
return r.length === 1 ? $P.call(this, e, t) : WP.call(this, r, t);
}
i(eoe, "get");
function $P(e, t) {
let r = this.node, n = r[e];
return Array.isArray(n) ? n.map((s, a) => fy.default.get({
listKey: e,
parentPath: this,
parent: r,
container: n,
key: a
}).setContext(t)) : fy.default.get({
parentPath: this,
parent: r,
container: r,
key: e
}).setContext(t);
}
i($P, "_getKey");
function WP(e, t) {
let r = this;
for (let n of e)
n === "." ? r = r.parentPath : Array.isArray(r) ? r = r[n] : r = r.get(n, t);
return r;
}
i(WP, "_getPattern");
function toe() {
return Rae(this.node);
}
i(toe, "getAssignmentIdentifiers");
function roe(e) {
return VP(this.node, e);
}
i(roe, "getBindingIdentifiers");
function noe(e) {
return qae(this.node, e);
}
i(noe, "getOuterBindingIdentifiers");
function soe(e = !1, t = !1) {
let n = [this], s = /* @__PURE__ */ Object.create(null);
for (; n.length; ) {
let a = n.shift();
if (!a || !a.node) continue;
let o = VP.keys[a.node.type];
if (a.isIdentifier()) {
e ? (s[a.node.name] = s[a.node.name] || []).push(a) : s[a.node.name] = a;
continue;
}
if (a.isExportDeclaration()) {
let l = a.get("declaration");
l.isDeclaration() && n.push(l);
continue;
}
if (t) {
if (a.isFunctionDeclaration()) {
n.push(a.get("id"));
continue;
}
if (a.isFunctionExpression())
continue;
}
if (o)
for (let l = 0; l < o.length; l++) {
let u = o[l], c = a.get(u);
Array.isArray(c) ? n.push(...c) : c.node && n.push(c);
}
}
return s;
}
i(soe, "getBindingIdentifierPaths");
function ioe(e = !1) {
return this.getBindingIdentifierPaths(e, !0);
}
i(ioe, "getOuterBindingIdentifierPaths");
});
// ../node_modules/@babel/traverse/lib/path/comments.js
var HP = P((fo) => {
"use strict";
Object.defineProperty(fo, "__esModule", {
value: !0
});
fo.addComment = coe;
fo.addComments = poe;
fo.shareCommentsWithSiblings = uoe;
var aoe = De(), {
addComment: ooe,
addComments: loe
} = aoe;
function uoe() {
if (typeof this.key == "string") return;
let e = this.node;
if (!e) return;
let t = e.trailingComments, r = e.leadingComments;
if (!t && !r) return;
let n = this.getSibling(this.key - 1), s = this.getSibling(this.key + 1), a = !!n.node, o = !!s.node;
a && (r && n.addComments("trailing", GP(r, n.node.trailingComments)), t && !o && n.addComments("trailing", t)), o && (t && s.addComments(
"leading", GP(t, s.node.leadingComments)), r && !a && s.addComments("leading", r));
}
i(uoe, "shareCommentsWithSiblings");
function GP(e, t) {
if (!(t != null && t.length)) return e;
let r = new Set(t);
return e.filter((n) => !r.has(n));
}
i(GP, "removeIfExisting");
function coe(e, t, r) {
ooe(this.node, e, t, r);
}
i(coe, "addComment");
function poe(e, t) {
loe(this.node, e, t);
}
i(poe, "addComments");
});
// ../node_modules/@babel/traverse/lib/path/index.js
var fs = P((gn) => {
"use strict";
Object.defineProperty(gn, "__esModule", {
value: !0
});
gn.default = gn.SHOULD_STOP = gn.SHOULD_SKIP = gn.REMOVED = void 0;
var foe = Yh(), doe = Us(), hoe = Ot(), moe = lm(), XP = De(), Fu = XP, yoe = Ws(), goe = oo(), mn = kv(), Ki = eP(), Gi = Ym(), YP = CP(),
Qs = kP(), It = qP(), zP = dn(), vt = zP, Hi = Iu(), yn = _u(), cr = KP(), hy = HP(), boe = em(), {
validate: Eoe
} = XP, JP = doe("babel"), LPe = gn.REMOVED = 1, MPe = gn.SHOULD_STOP = 2, RPe = gn.SHOULD_SKIP = 4, kn = gn.default = class QP {
static {
i(this, "NodePath");
}
constructor(t, r) {
this.contexts = [], this.state = null, this.opts = null, this._traverseFlags = 0, this.skipKeys = null, this.parentPath = null, this.container =
null, this.listKey = null, this.key = null, this.node = null, this.type = null, this.parent = r, this.hub = t, this.data = null, this.
context = null, this.scope = null;
}
get removed() {
return (this._traverseFlags & 1) > 0;
}
set removed(t) {
t ? this._traverseFlags |= 1 : this._traverseFlags &= -2;
}
get shouldStop() {
return (this._traverseFlags & 2) > 0;
}
set shouldStop(t) {
t ? this._traverseFlags |= 2 : this._traverseFlags &= -3;
}
get shouldSkip() {
return (this._traverseFlags & 4) > 0;
}
set shouldSkip(t) {
t ? this._traverseFlags |= 4 : this._traverseFlags &= -5;
}
static get({
hub: t,
parentPath: r,
parent: n,
container: s,
listKey: a,
key: o
}) {
if (!t && r && (t = r.hub), !n)
throw new Error("To get a node path the parent needs to exist");
let l = s[o], u = yoe.getOrCreateCachedPaths(t, n), c = u.get(l);
return c || (c = new QP(t, n), l && u.set(l, c)), zP.setup.call(c, r, s, a, o), c;
}
getScope(t) {
return this.isScope() ? new moe.default(this) : t;
}
setData(t, r) {
return this.data == null && (this.data = /* @__PURE__ */ Object.create(null)), this.data[t] = r;
}
getData(t, r) {
this.data == null && (this.data = /* @__PURE__ */ Object.create(null));
let n = this.data[t];
return n === void 0 && r !== void 0 && (n = this.data[t] = r), n;
}
hasNode() {
return this.node != null;
}
buildCodeFrameError(t, r = SyntaxError) {
return this.hub.buildError(this.node, t, r);
}
traverse(t, r) {
(0, hoe.default)(this.node, t, this.scope, r, this);
}
set(t, r) {
Eoe(this.node, t, r), this.node[t] = r;
}
getPathLocation() {
let t = [], r = this;
do {
let n = r.key;
r.inList && (n = `${r.listKey}[${n}]`), t.unshift(n);
} while (r = r.parentPath);
return t.join(".");
}
debug(t) {
JP.enabled && JP(`${this.getPathLocation()} ${this.type}: ${t}`);
}
toString() {
return (0, goe.default)(this.node).code;
}
get inList() {
return !!this.listKey;
}
set inList(t) {
t || (this.listKey = null);
}
get parentKey() {
return this.listKey || this.key;
}
}, Toe = {
findParent: mn.findParent,
find: mn.find,
getFunctionParent: mn.getFunctionParent,
getStatementParent: mn.getStatementParent,
getEarliestCommonAncestorFrom: mn.getEarliestCommonAncestorFrom,
getDeepestCommonAncestorFrom: mn.getDeepestCommonAncestorFrom,
getAncestry: mn.getAncestry,
isAncestor: mn.isAncestor,
isDescendant: mn.isDescendant,
inType: mn.inType,
getTypeAnnotation: Ki.getTypeAnnotation,
isBaseType: Ki.isBaseType,
couldBeBaseType: Ki.couldBeBaseType,
baseTypeStrictlyMatches: Ki.baseTypeStrictlyMatches,
isGenericType: Ki.isGenericType,
replaceWithMultiple: Gi.replaceWithMultiple,
replaceWithSourceString: Gi.replaceWithSourceString,
replaceWith: Gi.replaceWith,
replaceExpressionWithStatements: Gi.replaceExpressionWithStatements,
replaceInline: Gi.replaceInline,
evaluateTruthy: YP.evaluateTruthy,
evaluate: YP.evaluate,
toComputedKey: Qs.toComputedKey,
ensureBlock: Qs.ensureBlock,
unwrapFunctionEnvironment: Qs.unwrapFunctionEnvironment,
arrowFunctionToExpression: Qs.arrowFunctionToExpression,
splitExportDeclaration: Qs.splitExportDeclaration,
ensureFunctionName: Qs.ensureFunctionName,
matchesPattern: It.matchesPattern,
isStatic: It.isStatic,
isNodeType: It.isNodeType,
canHaveVariableDeclarationOrExpression: It.canHaveVariableDeclarationOrExpression,
canSwapBetweenExpressionAndStatement: It.canSwapBetweenExpressionAndStatement,
isCompletionRecord: It.isCompletionRecord,
isStatementOrBlock: It.isStatementOrBlock,
referencesImport: It.referencesImport,
getSource: It.getSource,
willIMaybeExecuteBefore: It.willIMaybeExecuteBefore,
_guessExecutionStatusRelativeTo: It._guessExecutionStatusRelativeTo,
resolve: It.resolve,
isConstantExpression: It.isConstantExpression,
isInStrictMode: It.isInStrictMode,
isDenylisted: vt.isDenylisted,
visit: vt.visit,
skip: vt.skip,
skipKey: vt.skipKey,
stop: vt.stop,
setContext: vt.setContext,
requeue: vt.requeue,
requeueComputedKeyAndDecorators: vt.requeueComputedKeyAndDecorators,
remove: Hi.remove,
insertBefore: yn.insertBefore,
insertAfter: yn.insertAfter,
unshiftContainer: yn.unshiftContainer,
pushContainer: yn.pushContainer,
getOpposite: cr.getOpposite,
getCompletionRecords: cr.getCompletionRecords,
getSibling: cr.getSibling,
getPrevSibling: cr.getPrevSibling,
getNextSibling: cr.getNextSibling,
getAllNextSiblings: cr.getAllNextSiblings,
getAllPrevSiblings: cr.getAllPrevSiblings,
get: cr.get,
getAssignmentIdentifiers: cr.getAssignmentIdentifiers,
getBindingIdentifiers: cr.getBindingIdentifiers,
getOuterBindingIdentifiers: cr.getOuterBindingIdentifiers,
getBindingIdentifierPaths: cr.getBindingIdentifierPaths,
getOuterBindingIdentifierPaths: cr.getOuterBindingIdentifierPaths,
shareCommentsWithSiblings: hy.shareCommentsWithSiblings,
addComment: hy.addComment,
addComments: hy.addComments
};
Object.assign(kn.prototype, Toe);
kn.prototype.arrowFunctionToShadowed = Qs.arrowFunctionToShadowed, Object.assign(kn.prototype, {
has: It.has,
is: It.is,
isnt: It.isnt,
equals: It.equals,
hoist: yn.hoist,
updateSiblingKeys: yn.updateSiblingKeys,
call: vt.call,
isBlacklisted: vt.isBlacklisted,
setScope: vt.setScope,
resync: vt.resync,
popContext: vt.popContext,
pushContext: vt.pushContext,
setup: vt.setup,
setKey: vt.setKey
});
kn.prototype._guessExecutionStatusRelativeToDifferentFunctions = It._guessExecutionStatusRelativeTo, kn.prototype._guessExecutionStatusRelativeToDifferentFunctions =
It._guessExecutionStatusRelativeTo, Object.assign(kn.prototype, {
_getTypeAnnotation: Ki._getTypeAnnotation,
_replaceWith: Gi._replaceWith,
_resolve: It._resolve,
_call: vt._call,
_resyncParent: vt._resyncParent,
_resyncKey: vt._resyncKey,
_resyncList: vt._resyncList,
_resyncRemoved: vt._resyncRemoved,
_getQueueContexts: vt._getQueueContexts,
_removeFromScope: Hi._removeFromScope,
_callRemovalHooks: Hi._callRemovalHooks,
_remove: Hi._remove,
_markRemoved: Hi._markRemoved,
_assertUnremoved: Hi._assertUnremoved,
_containerInsert: yn._containerInsert,
_containerInsertBefore: yn._containerInsertBefore,
_containerInsertAfter: yn._containerInsertAfter,
_verifyNodeList: yn._verifyNodeList,
_getKey: cr._getKey,
_getPattern: cr._getPattern
});
for (let e of Fu.TYPES) {
let t = `is${e}`, r = Fu[t];
kn.prototype[t] = function(n) {
return r(this.node, n);
}, kn.prototype[`assert${e}`] = function(n) {
if (!r(this.node, n))
throw new TypeError(`Expected node path of type ${e}`);
};
}
Object.assign(kn.prototype, boe);
for (let e of Object.keys(foe))
e[0] !== "_" && (Fu.TYPES.includes(e) || Fu.TYPES.push(e));
});
// ../node_modules/@babel/traverse/lib/context.js
var ZP = P((ju) => {
"use strict";
Object.defineProperty(ju, "__esModule", {
value: !0
});
ju.default = void 0;
var Soe = fs(), xoe = De(), my = dn(), {
VISITOR_KEYS: voe
} = xoe, yy = class {
static {
i(this, "TraversalContext");
}
constructor(t, r, n, s) {
this.queue = null, this.priorityQueue = null, this.parentPath = s, this.scope = t, this.state = n, this.opts = r;
}
shouldVisit(t) {
let r = this.opts;
if (r.enter || r.exit || r[t.type]) return !0;
let n = voe[t.type];
if (!(n != null && n.length)) return !1;
for (let s of n)
if (t[s])
return !0;
return !1;
}
create(t, r, n, s) {
return Soe.default.get({
parentPath: this.parentPath,
parent: t,
container: r,
key: n,
listKey: s
});
}
maybeQueue(t, r) {
this.queue && (r ? this.queue.push(t) : this.priorityQueue.push(t));
}
visitMultiple(t, r, n) {
if (t.length === 0) return !1;
let s = [];
for (let a = 0; a < t.length; a++) {
let o = t[a];
o && this.shouldVisit(o) && s.push(this.create(r, t, a, n));
}
return this.visitQueue(s);
}
visitSingle(t, r) {
return this.shouldVisit(t[r]) ? this.visitQueue([this.create(t, t, r)]) : !1;
}
visitQueue(t) {
this.queue = t, this.priorityQueue = [];
let r = /* @__PURE__ */ new WeakSet(), n = !1, s = 0;
for (; s < t.length; ) {
let a = t[s];
if (s++, my.resync.call(a), (a.contexts.length === 0 || a.contexts[a.contexts.length - 1] !== this) && my.pushContext.call(a, this),
a.key === null) continue;
let {
node: o
} = a;
if (!r.has(o)) {
if (o && r.add(o), a.visit()) {
n = !0;
break;
}
if (this.priorityQueue.length && (n = this.visitQueue(this.priorityQueue), this.priorityQueue = [], this.queue = t, n))
break;
}
}
for (let a = 0; a < s; a++)
my.popContext.call(t[a]);
return this.queue = null, n;
}
visit(t, r) {
let n = t[r];
return n ? Array.isArray(n) ? this.visitMultiple(n, t, r) : this.visitSingle(t, r) : !1;
}
};
ju.default = yy;
});
// ../node_modules/@babel/traverse/lib/traverse-node.js
var ru = P((gy) => {
"use strict";
Object.defineProperty(gy, "__esModule", {
value: !0
});
gy.traverseNode = Doe;
var Poe = ZP(), Aoe = De(), {
VISITOR_KEYS: Coe
} = Aoe;
function Doe(e, t, r, n, s, a, o) {
let l = Coe[e.type];
if (!l) return !1;
let u = new Poe.default(r, t, n, s);
if (o)
return a != null && a[s.parentKey] ? !1 : u.visitQueue([s]);
for (let c of l)
if (!(a != null && a[c]) && u.visit(e, c))
return !0;
return !1;
}
i(Doe, "traverseNode");
});
// ../node_modules/@babel/traverse/lib/path/context.js
var dn = P((gt) => {
"use strict";
Object.defineProperty(gt, "__esModule", {
value: !0
});
gt._call = Ey;
gt._getQueueContexts = $oe;
gt._resyncKey = iA;
gt._resyncList = aA;
gt._resyncParent = sA;
gt._resyncRemoved = Loe;
gt.call = by;
gt.isDenylisted = rA;
gt.popContext = Moe;
gt.pushContext = Roe;
gt.requeue = Uoe;
gt.requeueComputedKeyAndDecorators = Voe;
gt.resync = joe;
gt.setContext = Foe;
gt.setKey = Lu;
gt.setScope = nA;
gt.setup = qoe;
gt.skip = Noe;
gt.skipKey = Boe;
gt.stop = koe;
gt.visit = Ooe;
var woe = ru(), eA = fs(), Ioe = Iu(), _oe = De();
function by(e) {
let t = this.opts;
if (this.debug(e), this.node && Ey.call(this, t[e]))
return !0;
if (this.node) {
var r;
return Ey.call(this, (r = t[this.node.type]) == null ? void 0 : r[e]);
}
return !1;
}
i(by, "call");
function Ey(e) {
if (!e) return !1;
for (let t of e) {
if (!t) continue;
let r = this.node;
if (!r) return !0;
let n = t.call(this.state, this, this.state);
if (n && typeof n == "object" && typeof n.then == "function")
throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not suppo\
rt. If you're using a published plugin, you may need to upgrade your @babel/core version.");
if (n)
throw new Error(`Unexpected return value from visitor method ${t}`);
if (this.node !== r || this._traverseFlags > 0) return !0;
}
return !1;
}
i(Ey, "_call");
function rA() {
var e;
let t = (e = this.opts.denylist) != null ? e : this.opts.blacklist;
return t?.includes(this.node.type);
}
i(rA, "isDenylisted");
gt.isBlacklisted = rA;
function tA(e, t) {
e.context !== t && (e.context = t, e.state = t.state, e.opts = t.opts);
}
i(tA, "restoreContext");
function Ooe() {
var e, t;
if (!this.node || this.isDenylisted() || (e = (t = this.opts).shouldSkip) != null && e.call(t, this))
return !1;
let r = this.context;
return this.shouldSkip || by.call(this, "enter") ? (this.debug("Skip..."), this.shouldStop) : (tA(this, r), this.debug("Recursing into..\
."), this.shouldStop = (0, woe.traverseNode)(this.node, this.opts, this.scope, this.state, this, this.skipKeys), tA(this, r), by.call(this, "\
exit"), this.shouldStop);
}
i(Ooe, "visit");
function Noe() {
this.shouldSkip = !0;
}
i(Noe, "skip");
function Boe(e) {
this.skipKeys == null && (this.skipKeys = {}), this.skipKeys[e] = !0;
}
i(Boe, "skipKey");
function koe() {
this._traverseFlags |= eA.SHOULD_SKIP | eA.SHOULD_STOP;
}
i(koe, "stop");
function nA() {
var e, t;
if ((e = this.opts) != null && e.noScope) return;
let r = this.parentPath;
((this.key === "key" || this.listKey === "decorators") && r.isMethod() || this.key === "discriminant" && r.isSwitchStatement()) && (r = r.
parentPath);
let n;
for (; r && !n; ) {
var s;
if ((s = r.opts) != null && s.noScope) return;
n = r.scope, r = r.parentPath;
}
this.scope = this.getScope(n), (t = this.scope) == null || t.init();
}
i(nA, "setScope");
function Foe(e) {
return this.skipKeys != null && (this.skipKeys = {}), this._traverseFlags = 0, e && (this.context = e, this.state = e.state, this.opts =
e.opts), nA.call(this), this;
}
i(Foe, "setContext");
function joe() {
this.removed || (sA.call(this), aA.call(this), iA.call(this));
}
i(joe, "resync");
function sA() {
this.parentPath && (this.parent = this.parentPath.node);
}
i(sA, "_resyncParent");
function iA() {
if (this.container && this.node !== this.container[this.key]) {
if (Array.isArray(this.container)) {
for (let e = 0; e < this.container.length; e++)
if (this.container[e] === this.node) {
Lu.call(this, e);
return;
}
} else
for (let e of Object.keys(this.container))
if (this.container[e] === this.node) {
Lu.call(this, e);
return;
}
this.key = null;
}
}
i(iA, "_resyncKey");
function aA() {
if (!this.parent || !this.inList) return;
let e = this.parent[this.listKey];
this.container !== e && (this.container = e || null);
}
i(aA, "_resyncList");
function Loe() {
(this.key == null || !this.container || this.container[this.key] !== this.node) && Ioe._markRemoved.call(this);
}
i(Loe, "_resyncRemoved");
function Moe() {
this.contexts.pop(), this.contexts.length > 0 ? this.setContext(this.contexts[this.contexts.length - 1]) : this.setContext(void 0);
}
i(Moe, "popContext");
function Roe(e) {
this.contexts.push(e), this.setContext(e);
}
i(Roe, "pushContext");
function qoe(e, t, r, n) {
this.listKey = r, this.container = t, this.parentPath = e || this.parentPath, Lu.call(this, n);
}
i(qoe, "setup");
function Lu(e) {
var t;
this.key = e, this.node = this.container[this.key], this.type = (t = this.node) == null ? void 0 : t.type;
}
i(Lu, "setKey");
function Uoe(e = this) {
if (e.removed) return;
let t = this.contexts;
for (let r of t)
r.maybeQueue(e);
}
i(Uoe, "requeue");
function Voe() {
let {
context: e,
node: t
} = this;
if (!_oe.isPrivate(t) && t.computed && e.maybeQueue(this.get("key")), t.decorators)
for (let r of this.get("decorators"))
e.maybeQueue(r);
}
i(Voe, "requeueComputedKeyAndDecorators");
function $oe() {
let e = this, t = this.contexts;
for (; !t.length && (e = e.parentPath, !!e); )
t = e.contexts;
return t;
}
i($oe, "_getQueueContexts");
});
// ../node_modules/@babel/traverse/lib/hub.js
var oA = P((Mu) => {
"use strict";
Object.defineProperty(Mu, "__esModule", {
value: !0
});
Mu.default = void 0;
var Ty = class {
static {
i(this, "Hub");
}
getCode() {
}
getScope() {
}
addHelper() {
throw new Error("Helpers are not supported by the default hub.");
}
buildError(t, r, n = TypeError) {
return new n(r);
}
};
Mu.default = Ty;
});
// ../node_modules/@babel/traverse/lib/index.js
var Ot = P((Fn) => {
"use strict";
Object.defineProperty(Fn, "__esModule", {
value: !0
});
Object.defineProperty(Fn, "Hub", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Yoe.default;
}, "get")
});
Object.defineProperty(Fn, "NodePath", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Goe.default;
}, "get")
});
Object.defineProperty(Fn, "Scope", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Hoe.default;
}, "get")
});
Fn.visitors = Fn.default = void 0;
dn();
var mo = Zl();
Fn.visitors = mo;
var Woe = De(), Koe = Ws(), lA = ru(), Goe = fs(), Hoe = lm(), Yoe = oA(), {
VISITOR_KEYS: Joe,
removeProperties: Xoe,
traverseFast: ho
} = Woe;
function Yr(e, t = {}, r, n, s, a) {
if (e) {
if (!t.noScope && !r && e.type !== "Program" && e.type !== "File")
throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.
type} node without passing scope and parentPath.`);
if (!s && a)
throw new Error("visitSelf can only be used when providing a NodePath.");
Joe[e.type] && (mo.explode(t), (0, lA.traverseNode)(e, t, r, n, s, null, a));
}
}
i(Yr, "traverse");
var XPe = Fn.default = Yr;
Yr.visitors = mo;
Yr.verify = mo.verify;
Yr.explode = mo.explode;
Yr.cheap = function(e, t) {
ho(e, t);
};
Yr.node = function(e, t, r, n, s, a) {
(0, lA.traverseNode)(e, t, r, n, s, a);
};
Yr.clearNode = function(e, t) {
Xoe(e, t);
};
Yr.removeProperties = function(e, t) {
return ho(e, Yr.clearNode, t), e;
};
Yr.hasType = function(e, t, r) {
return r != null && r.includes(e.type) ? !1 : e.type === t ? !0 : ho(e, function(n) {
if (r != null && r.includes(n.type))
return ho.skip;
if (n.type === t)
return ho.stop;
});
};
Yr.cache = Koe;
});
// ../node_modules/@babel/helper-module-imports/lib/import-builder.js
var pA = P((qu) => {
"use strict";
Object.defineProperty(qu, "__esModule", {
value: !0
});
qu.default = void 0;
var Jr = ce("assert"), zoe = De(), {
callExpression: Sy,
cloneNode: Ru,
expressionStatement: uA,
identifier: yo,
importDeclaration: Qoe,
importDefaultSpecifier: Zoe,
importNamespaceSpecifier: ele,
importSpecifier: tle,
memberExpression: xy,
stringLiteral: cA,
variableDeclaration: rle,
variableDeclarator: nle
} = zoe, vy = class {
static {
i(this, "ImportBuilder");
}
constructor(t, r, n) {
this._statements = [], this._resultName = null, this._importedSource = void 0, this._scope = r, this._hub = n, this._importedSource = t;
}
done() {
return {
statements: this._statements,
resultName: this._resultName
};
}
import() {
return this._statements.push(Qoe([], cA(this._importedSource))), this;
}
require() {
return this._statements.push(uA(Sy(yo("require"), [cA(this._importedSource)]))), this;
}
namespace(t = "namespace") {
let r = this._scope.generateUidIdentifier(t), n = this._statements[this._statements.length - 1];
return Jr(n.type === "ImportDeclaration"), Jr(n.specifiers.length === 0), n.specifiers = [ele(r)], this._resultName = Ru(r), this;
}
default(t) {
let r = this._scope.generateUidIdentifier(t), n = this._statements[this._statements.length - 1];
return Jr(n.type === "ImportDeclaration"), Jr(n.specifiers.length === 0), n.specifiers = [Zoe(r)], this._resultName = Ru(r), this;
}
named(t, r) {
if (r === "default") return this.default(t);
let n = this._scope.generateUidIdentifier(t), s = this._statements[this._statements.length - 1];
return Jr(s.type === "ImportDeclaration"), Jr(s.specifiers.length === 0), s.specifiers = [tle(n, yo(r))], this._resultName = Ru(n), this;
}
var(t) {
let r = this._scope.generateUidIdentifier(t), n = this._statements[this._statements.length - 1];
return n.type !== "ExpressionStatement" && (Jr(this._resultName), n = uA(this._resultName), this._statements.push(n)), this._statements[this.
_statements.length - 1] = rle("var", [nle(r, n.expression)]), this._resultName = Ru(r), this;
}
defaultInterop() {
return this._interop(this._hub.addHelper("interopRequireDefault"));
}
wildcardInterop() {
return this._interop(this._hub.addHelper("interopRequireWildcard"));
}
_interop(t) {
let r = this._statements[this._statements.length - 1];
return r.type === "ExpressionStatement" ? r.expression = Sy(t, [r.expression]) : r.type === "VariableDeclaration" ? (Jr(r.declarations.
length === 1), r.declarations[0].init = Sy(t, [r.declarations[0].init])) : Jr.fail("Unexpected type."), this;
}
prop(t) {
let r = this._statements[this._statements.length - 1];
return r.type === "ExpressionStatement" ? r.expression = xy(r.expression, yo(t)) : r.type === "VariableDeclaration" ? (Jr(r.declarations.
length === 1), r.declarations[0].init = xy(r.declarations[0].init, yo(t))) : Jr.fail("Unexpected type:" + r.type), this;
}
read(t) {
this._resultName = xy(this._resultName, yo(t));
}
};
qu.default = vy;
});
// ../node_modules/@babel/helper-module-imports/lib/is-module.js
var Ay = P((Py) => {
"use strict";
Object.defineProperty(Py, "__esModule", {
value: !0
});
Py.default = sle;
function sle(e) {
return e.node.sourceType === "module";
}
i(sle, "isModule");
});
// ../node_modules/@babel/helper-module-imports/lib/import-injector.js
var gA = P((Vu) => {
"use strict";
Object.defineProperty(Vu, "__esModule", {
value: !0
});
Vu.default = void 0;
var fA = ce("assert"), ile = De(), ale = pA(), ole = Ay(), {
identifier: lle,
importSpecifier: ule,
numericLiteral: cle,
sequenceExpression: ple,
isImportDeclaration: dA
} = ile, Cy = class {
static {
i(this, "ImportInjector");
}
constructor(t, r, n) {
this._defaultOpts = {
importedSource: null,
importedType: "commonjs",
importedInterop: "babel",
importingInterop: "babel",
ensureLiveReference: !1,
ensureNoContext: !1,
importPosition: "before"
};
let s = t.find((a) => a.isProgram());
this._programPath = s, this._programScope = s.scope, this._hub = s.hub, this._defaultOpts = this._applyDefaults(r, n, !0);
}
addDefault(t, r) {
return this.addNamed("default", t, r);
}
addNamed(t, r, n) {
return fA(typeof t == "string"), this._generateImport(this._applyDefaults(r, n), t);
}
addNamespace(t, r) {
return this._generateImport(this._applyDefaults(t, r), null);
}
addSideEffect(t, r) {
return this._generateImport(this._applyDefaults(t, r), void 0);
}
_applyDefaults(t, r, n = !1) {
let s;
return typeof t == "string" ? s = Object.assign({}, this._defaultOpts, {
importedSource: t
}, r) : (fA(!r, "Unexpected secondary arguments."), s = Object.assign({}, this._defaultOpts, t)), !n && r && (r.nameHint !== void 0 &&
(s.nameHint = r.nameHint), r.blockHoist !== void 0 && (s.blockHoist = r.blockHoist)), s;
}
_generateImport(t, r) {
let n = r === "default", s = !!r && !n, a = r === null, {
importedSource: o,
importedType: l,
importedInterop: u,
importingInterop: c,
ensureLiveReference: p,
ensureNoContext: f,
nameHint: h,
importPosition: y,
blockHoist: E
} = t, d = h || r, g = (0, ole.default)(this._programPath), C = g && c === "node", _ = g && c === "babel";
if (y === "after" && !g)
throw new Error('"importPosition": "after" is only supported in modules');
let O = new ale.default(o, this._programScope, this._hub);
if (l === "es6") {
if (!C && !_)
throw new Error("Cannot import an ES6 module from CommonJS");
O.import(), a ? O.namespace(h || o) : (n || s) && O.named(d, r);
} else {
if (l !== "commonjs")
throw new Error(`Unexpected interopType "${l}"`);
if (u === "babel")
if (C) {
d = d !== "default" ? d : o;
let $ = `${o}$es6Default`;
O.import(), a ? O.default($).var(d || o).wildcardInterop() : n ? p ? O.default($).var(d || o).defaultInterop().read("default") :
O.default($).var(d).defaultInterop().prop(r) : s && O.default($).read(r);
} else _ ? (O.import(), a ? O.namespace(d || o) : (n || s) && O.named(d, r)) : (O.require(), a ? O.var(d || o).wildcardInterop() :
(n || s) && p ? n ? (d = d !== "default" ? d : o, O.var(d).read(r), O.defaultInterop()) : O.var(o).read(r) : n ? O.var(d).defaultInterop().
prop(r) : s && O.var(d).prop(r));
else if (u === "compiled")
C ? (O.import(), a ? O.default(d || o) : (n || s) && O.default(o).read(d)) : _ ? (O.import(), a ? O.namespace(d || o) : (n || s) &&
O.named(d, r)) : (O.require(), a ? O.var(d || o) : (n || s) && (p ? O.var(o).read(d) : O.prop(r).var(d)));
else if (u === "uncompiled") {
if (n && p)
throw new Error("No live reference for commonjs default");
C ? (O.import(), a ? O.default(d || o) : n ? O.default(d) : s && O.default(o).read(d)) : _ ? (O.import(), a ? O.default(d || o) : n ?
O.default(d) : s && O.named(d, r)) : (O.require(), a ? O.var(d || o) : n ? O.var(d) : s && (p ? O.var(o).read(d) : O.var(d).prop(r)));
} else
throw new Error(`Unknown importedInterop "${u}".`);
}
let {
statements: B,
resultName: R
} = O.done();
return this._insertStatements(B, y, E), (n || s) && f && R.type !== "Identifier" ? ple([cle(0), R]) : R;
}
_insertStatements(t, r = "before", n = 3) {
if (r === "after") {
if (this._insertStatementsAfter(t)) return;
} else if (this._insertStatementsBefore(t, n)) return;
this._programPath.unshiftContainer("body", t);
}
_insertStatementsBefore(t, r) {
if (t.length === 1 && dA(t[0]) && Uu(t[0])) {
let s = this._programPath.get("body").find((a) => a.isImportDeclaration() && Uu(a.node));
if (s?.node.source.value === t[0].source.value && yA(s.node, t[0]))
return !0;
}
t.forEach((s) => {
s._blockHoist = r;
});
let n = this._programPath.get("body").find((s) => {
let a = s.node._blockHoist;
return Number.isFinite(a) && a < 4;
});
return n ? (n.insertBefore(t), !0) : !1;
}
_insertStatementsAfter(t) {
let r = new Set(t), n = /* @__PURE__ */ new Map();
for (let a of t)
if (dA(a) && Uu(a)) {
let o = a.source.value;
n.has(o) || n.set(o, []), n.get(o).push(a);
}
let s = null;
for (let a of this._programPath.get("body"))
if (a.isImportDeclaration() && Uu(a.node)) {
s = a;
let o = a.node.source.value, l = n.get(o);
if (!l) continue;
for (let u of l)
r.has(u) && yA(a.node, u) && r.delete(u);
}
return r.size === 0 ? !0 : (s && s.insertAfter(Array.from(r)), !!s);
}
};
Vu.default = Cy;
function Uu(e) {
return e.importKind !== "type" && e.importKind !== "typeof";
}
i(Uu, "isValueImport");
function hA(e) {
return e.specifiers.length === 1 && e.specifiers[0].type === "ImportNamespaceSpecifier" || e.specifiers.length === 2 && e.specifiers[1].
type === "ImportNamespaceSpecifier";
}
i(hA, "hasNamespaceImport");
function mA(e) {
return e.specifiers.length > 0 && e.specifiers[0].type === "ImportDefaultSpecifier";
}
i(mA, "hasDefaultImport");
function yA(e, t) {
return e.specifiers.length ? t.specifiers.length ? hA(e) || hA(t) ? !1 : (mA(t) && (mA(e) ? t.specifiers[0] = ule(t.specifiers[0].local,
lle("default")) : e.specifiers.unshift(t.specifiers.shift())), e.specifiers.push(...t.specifiers), !0) : !0 : (e.specifiers = t.specifiers,
!0);
}
i(yA, "maybeAppendImportSpecifiers");
});
// ../node_modules/@babel/helper-module-imports/lib/index.js
var bA = P((hs) => {
"use strict";
Object.defineProperty(hs, "__esModule", {
value: !0
});
Object.defineProperty(hs, "ImportInjector", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return go.default;
}, "get")
});
hs.addDefault = dle;
hs.addNamed = hle;
hs.addNamespace = mle;
hs.addSideEffect = yle;
Object.defineProperty(hs, "isModule", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return fle.default;
}, "get")
});
var go = gA(), fle = Ay();
function dle(e, t, r) {
return new go.default(e).addDefault(t, r);
}
i(dle, "addDefault");
function hle(e, t, r, n) {
return new go.default(e).addNamed(t, r, n);
}
i(hle, "addNamed");
function mle(e, t, r) {
return new go.default(e).addNamespace(t, r);
}
i(mle, "addNamespace");
function yle(e, t, r) {
return new go.default(e).addSideEffect(t, r);
}
i(yle, "addSideEffect");
});
// ../node_modules/@babel/helper-module-transforms/lib/rewrite-this.js
var SA = P((Dy) => {
"use strict";
Object.defineProperty(Dy, "__esModule", {
value: !0
});
Dy.default = gle;
var EA = Pt(), TA = Ot(), $u;
function gle(e) {
$u || ($u = TA.visitors.environmentVisitor({
ThisExpression(t) {
t.replaceWith(EA.types.unaryExpression("void", EA.types.numericLiteral(0), !0));
}
}), $u.noScope = !0), (0, TA.default)(e.node, $u);
}
i(gle, "rewriteThis");
});
// ../node_modules/@babel/helper-module-transforms/lib/rewrite-live-references.js
var xA = P((wy) => {
"use strict";
Object.defineProperty(wy, "__esModule", {
value: !0
});
wy.default = Ele;
var we = Pt();
function ble(e) {
do
switch (e.parent.type) {
case "TSTypeAnnotation":
case "TSTypeAliasDeclaration":
case "TSTypeReference":
case "TypeAnnotation":
case "TypeAlias":
return !0;
case "ExportSpecifier":
return e.parentPath.parent.exportKind === "type";
default:
if (e.parentPath.isStatement() || e.parentPath.isExpression())
return !1;
}
while (e = e.parentPath);
}
i(ble, "isInType");
function Ele(e, t, r) {
let n = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ i((u) => {
e.requeue(u);
}, "requeueInParent");
for (let [u, c] of t.source) {
for (let [p, f] of c.imports)
n.set(p, [u, f, null]);
for (let p of c.importsNamespace)
n.set(p, [u, null, p]);
}
for (let [u, c] of t.local) {
let p = s.get(u);
p || (p = [], s.set(u, p)), p.push(...c.names);
}
let o = {
metadata: t,
requeueInParent: a,
scope: e.scope,
exported: s
};
e.traverse(Tle, o);
let l = {
seen: /* @__PURE__ */ new WeakSet(),
metadata: t,
requeueInParent: a,
scope: e.scope,
imported: n,
exported: s,
buildImportReference([u, c, p], f) {
let h = t.source.get(u);
if (h.referenced = !0, p) {
if (h.wrap) {
var y;
f = (y = r(f, h.wrap)) != null ? y : f;
}
return f;
}
let E = we.types.identifier(h.name);
if (h.wrap) {
var d;
E = (d = r(E, h.wrap)) != null ? d : E;
}
if (c === "default" && h.interop === "node-default")
return E;
let g = t.stringSpecifiers.has(c);
return we.types.memberExpression(E, g ? we.types.stringLiteral(c) : we.types.identifier(c), g);
}
};
e.traverse(Sle, l);
}
i(Ele, "rewriteLiveReferences");
var Tle = {
Scope(e) {
e.skip();
},
ClassDeclaration(e) {
let {
requeueInParent: t,
exported: r,
metadata: n
} = this, {
id: s
} = e.node;
if (!s) throw new Error("Expected class to have a name");
let a = s.name, o = r.get(a) || [];
if (o.length > 0) {
let l = we.types.expressionStatement(Zs(n, o, we.types.identifier(a), e.scope));
l._blockHoist = e.node._blockHoist, t(e.insertAfter(l)[0]);
}
},
VariableDeclaration(e) {
let {
requeueInParent: t,
exported: r,
metadata: n
} = this, s = e.node.kind === "var";
for (let a of e.get("declarations")) {
let {
id: o
} = a.node, {
init: l
} = a.node;
if (we.types.isIdentifier(o) && r.has(o.name) && !we.types.isArrowFunctionExpression(l) && (!we.types.isFunctionExpression(l) || l.id) &&
(!we.types.isClassExpression(l) || l.id)) {
if (!l) {
if (s)
continue;
l = e.scope.buildUndefinedNode();
}
a.node.init = Zs(n, r.get(o.name), l, e.scope), t(a.get("init"));
} else
for (let u of Object.keys(a.getOuterBindingIdentifiers()))
if (r.has(u)) {
let c = we.types.expressionStatement(Zs(n, r.get(u), we.types.identifier(u), e.scope));
c._blockHoist = e.node._blockHoist, t(e.insertAfter(c)[0]);
}
}
}
}, Zs = /* @__PURE__ */ i((e, t, r, n) => {
let s = e.exportName;
for (let a = n; a != null; a = a.parent)
a.hasOwnBinding(s) && a.rename(s);
return (t || []).reduce((a, o) => {
let {
stringSpecifiers: l
} = e, u = l.has(o);
return we.types.assignmentExpression("=", we.types.memberExpression(we.types.identifier(s), u ? we.types.stringLiteral(o) : we.types.identifier(
o), u), a);
}, r);
}, "buildBindingExportAssignmentExpression"), Wu = /* @__PURE__ */ i((e) => we.template.expression.ast`
(function() {
throw new Error('"' + '${e}' + '" is read-only.');
})()
`, "buildImportThrow"), Sle = {
ReferencedIdentifier(e) {
let {
seen: t,
buildImportReference: r,
scope: n,
imported: s,
requeueInParent: a
} = this;
if (t.has(e.node)) return;
t.add(e.node);
let o = e.node.name, l = s.get(o);
if (l) {
if (ble(e))
throw e.buildCodeFrameError(`Cannot transform the imported binding "${o}" since it's also used in a type annotation. Please strip \
type annotations using @babel/preset-typescript or @babel/preset-flow.`);
let u = e.scope.getBinding(o);
if (n.getBinding(o) !== u) return;
let p = r(l, e.node);
if (p.loc = e.node.loc, (e.parentPath.isCallExpression({
callee: e.node
}) || e.parentPath.isOptionalCallExpression({
callee: e.node
}) || e.parentPath.isTaggedTemplateExpression({
tag: e.node
})) && we.types.isMemberExpression(p))
e.replaceWith(we.types.sequenceExpression([we.types.numericLiteral(0), p]));
else if (e.isJSXIdentifier() && we.types.isMemberExpression(p)) {
let {
object: f,
property: h
} = p;
e.replaceWith(we.types.jsxMemberExpression(we.types.jsxIdentifier(f.name), we.types.jsxIdentifier(h.name)));
} else
e.replaceWith(p);
a(e), e.skip();
}
},
UpdateExpression(e) {
let {
scope: t,
seen: r,
imported: n,
exported: s,
requeueInParent: a,
buildImportReference: o
} = this;
if (r.has(e.node)) return;
r.add(e.node);
let l = e.get("argument");
if (l.isMemberExpression()) return;
let u = e.node;
if (l.isIdentifier()) {
let c = l.node.name;
if (t.getBinding(c) !== e.scope.getBinding(c))
return;
let p = s.get(c), f = n.get(c);
if (p?.length > 0 || f)
if (f)
e.replaceWith(we.types.assignmentExpression(u.operator[0] + "=", o(f, l.node), Wu(c)));
else if (u.prefix)
e.replaceWith(Zs(this.metadata, p, we.types.cloneNode(u), e.scope));
else {
let h = t.generateDeclaredUidIdentifier(c);
e.replaceWith(we.types.sequenceExpression([we.types.assignmentExpression("=", we.types.cloneNode(h), we.types.cloneNode(u)), Zs(
this.metadata, p, we.types.identifier(c), e.scope), we.types.cloneNode(h)]));
}
}
a(e), e.skip();
},
AssignmentExpression: {
exit(e) {
let {
scope: t,
seen: r,
imported: n,
exported: s,
requeueInParent: a,
buildImportReference: o
} = this;
if (r.has(e.node)) return;
r.add(e.node);
let l = e.get("left");
if (!l.isMemberExpression())
if (l.isIdentifier()) {
let u = l.node.name;
if (t.getBinding(u) !== e.scope.getBinding(u))
return;
let c = s.get(u), p = n.get(u);
if (c?.length > 0 || p) {
let f = e.node;
p && (f.left = o(p, l.node), f.right = we.types.sequenceExpression([f.right, Wu(u)]));
let {
operator: h
} = f, y;
h === "=" ? y = f : h === "&&=" || h === "||=" || h === "??=" ? y = we.types.assignmentExpression("=", f.left, we.types.logicalExpression(
h.slice(0, -1), we.types.cloneNode(f.left), f.right)) : y = we.types.assignmentExpression("=", f.left, we.types.binaryExpression(
h.slice(0, -1), we.types.cloneNode(f.left), f.right)), e.replaceWith(Zs(this.metadata, c, y, e.scope)), a(e), e.skip();
}
} else {
let u = l.getOuterBindingIdentifiers(), c = Object.keys(u).filter((h) => t.getBinding(h) === e.scope.getBinding(h)), p = c.find(
(h) => n.has(h));
p && (e.node.right = we.types.sequenceExpression([e.node.right, Wu(p)]));
let f = [];
if (c.forEach((h) => {
let y = s.get(h) || [];
y.length > 0 && f.push(Zs(this.metadata, y, we.types.identifier(h), e.scope));
}), f.length > 0) {
let h = we.types.sequenceExpression(f);
e.parentPath.isExpressionStatement() && (h = we.types.expressionStatement(h), h._blockHoist = e.parentPath.node._blockHoist);
let y = e.insertAfter(h)[0];
a(y);
}
}
}
},
ForXStatement(e) {
let {
scope: t,
node: r
} = e, {
left: n
} = r, {
exported: s,
imported: a,
scope: o
} = this;
if (!we.types.isVariableDeclaration(n)) {
let l = !1, u, c = e.get("body").scope;
for (let h of Object.keys(we.types.getOuterBindingIdentifiers(n)))
o.getBinding(h) === t.getBinding(h) && (s.has(h) && (l = !0, c.hasOwnBinding(h) && c.rename(h)), a.has(h) && !u && (u = h));
if (!l && !u)
return;
e.ensureBlock();
let p = e.get("body"), f = t.generateUidIdentifierBasedOnNode(n);
e.get("left").replaceWith(we.types.variableDeclaration("let", [we.types.variableDeclarator(we.types.cloneNode(f))])), t.registerDeclaration(
e.get("left")), l && p.unshiftContainer("body", we.types.expressionStatement(we.types.assignmentExpression("=", n, f))), u && p.unshiftContainer(
"body", we.types.expressionStatement(Wu(u)));
}
}
};
});
// ../node_modules/@babel/helper-module-transforms/lib/normalize-and-load-metadata.js
var Iy = P((Yi) => {
"use strict";
Object.defineProperty(Yi, "__esModule", {
value: !0
});
Yi.default = Cle;
Yi.hasExports = vle;
Yi.isSideEffectImport = Ple;
Yi.validateImportInteropOption = PA;
var vA = ce("path"), xle = Ti();
function vle(e) {
return e.hasExports;
}
i(vle, "hasExports");
function Ple(e) {
return e.imports.size === 0 && e.importsNamespace.size === 0 && e.reexports.size === 0 && e.reexportNamespace.size === 0 && !e.reexportAll;
}
i(Ple, "isSideEffectImport");
function PA(e) {
if (typeof e != "function" && e !== "none" && e !== "babel" && e !== "node")
throw new Error(`.importInterop must be one of "none", "babel", "node", or a function returning one of those values (received ${e}).`);
return e;
}
i(PA, "validateImportInteropOption");
function Ale(e, t, r) {
return typeof e == "function" ? PA(e(t, r)) : e;
}
i(Ale, "resolveImportInterop");
function Cle(e, t, {
importInterop: r,
initializeReexports: n = !1,
getWrapperPayload: s,
esNamespaceOnly: a = !1,
filename: o
}) {
t || (t = e.scope.generateUidIdentifier("exports").name);
let l = /* @__PURE__ */ new Set();
Ile(e);
let {
local: u,
sources: c,
hasExports: p
} = Dle(e, {
initializeReexports: n,
getWrapperPayload: s
}, l);
_le(e);
for (let [f, h] of c) {
let {
importsNamespace: y,
imports: E
} = h;
if (y.size > 0 && E.size === 0) {
let [g] = y;
h.name = g;
}
let d = Ale(r, f, o);
d === "none" ? h.interop = "none" : d === "node" && h.interop === "namespace" ? h.interop = "node-namespace" : d === "node" && h.interop ===
"default" ? h.interop = "node-default" : a && h.interop === "namespace" && (h.interop = "default");
}
return {
exportName: t,
exportNameListName: null,
hasExports: p,
local: u,
source: c,
stringSpecifiers: l
};
}
i(Cle, "normalizeModuleAndLoadMetadata");
function Ku(e, t) {
if (e.isIdentifier())
return e.node.name;
if (e.isStringLiteral()) {
let r = e.node.value;
return (0, xle.isIdentifierName)(r) || t.add(r), r;
} else
throw new Error(`Expected export specifier to be either Identifier or StringLiteral, got ${e.node.type}`);
}
i(Ku, "getExportSpecifierName");
function AA(e) {
if (!e.isExportSpecifier())
throw e.isExportNamespaceSpecifier() ? e.buildCodeFrameError("Export namespace should be first transformed by `@babel/plugin-transform\
-export-namespace-from`.") : e.buildCodeFrameError("Unexpected export specifier type");
}
i(AA, "assertExportSpecifier");
function Dle(e, {
getWrapperPayload: t,
initializeReexports: r
}, n) {
let s = wle(e, r, n), a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ i((c, p) => {
let f = c.value, h = o.get(f);
return h ? a.get(f).push(p) : (h = {
name: e.scope.generateUidIdentifier((0, vA.basename)(f, (0, vA.extname)(f))).name,
interop: "none",
loc: null,
imports: /* @__PURE__ */ new Map(),
importsNamespace: /* @__PURE__ */ new Set(),
reexports: /* @__PURE__ */ new Map(),
reexportNamespace: /* @__PURE__ */ new Set(),
reexportAll: null,
wrap: null,
get lazy() {
return this.wrap === "lazy";
},
referenced: !1
}, o.set(f, h), a.set(f, [p])), h;
}, "getData"), u = !1;
e.get("body").forEach((c) => {
if (c.isImportDeclaration()) {
let p = l(c.node.source, c.node);
p.loc || (p.loc = c.node.loc), c.get("specifiers").forEach((f) => {
if (f.isImportDefaultSpecifier()) {
let h = f.get("local").node.name;
p.imports.set(h, "default");
let y = s.get(h);
y && (s.delete(h), y.names.forEach((E) => {
p.reexports.set(E, "default");
}), p.referenced = !0);
} else if (f.isImportNamespaceSpecifier()) {
let h = f.get("local").node.name;
p.importsNamespace.add(h);
let y = s.get(h);
y && (s.delete(h), y.names.forEach((E) => {
p.reexportNamespace.add(E);
}), p.referenced = !0);
} else if (f.isImportSpecifier()) {
let h = Ku(f.get("imported"), n), y = f.get("local").node.name;
p.imports.set(y, h);
let E = s.get(y);
E && (s.delete(y), E.names.forEach((d) => {
p.reexports.set(d, h);
}), p.referenced = !0);
}
});
} else if (c.isExportAllDeclaration()) {
u = !0;
let p = l(c.node.source, c.node);
p.loc || (p.loc = c.node.loc), p.reexportAll = {
loc: c.node.loc
}, p.referenced = !0;
} else if (c.isExportNamedDeclaration() && c.node.source) {
u = !0;
let p = l(c.node.source, c.node);
p.loc || (p.loc = c.node.loc), c.get("specifiers").forEach((f) => {
AA(f);
let h = Ku(f.get("local"), n), y = Ku(f.get("exported"), n);
if (p.reexports.set(y, h), p.referenced = !0, y === "__esModule")
throw f.get("exported").buildCodeFrameError('Illegal export "__esModule".');
});
} else (c.isExportNamedDeclaration() || c.isExportDefaultDeclaration()) && (u = !0);
});
for (let c of o.values()) {
let p = !1, f = !1;
c.importsNamespace.size > 0 && (p = !0, f = !0), c.reexportAll && (f = !0);
for (let h of c.imports.values())
h === "default" ? p = !0 : f = !0;
for (let h of c.reexports.values())
h === "default" ? p = !0 : f = !0;
p && f ? c.interop = "namespace" : p && (c.interop = "default");
}
if (t)
for (let [c, p] of o)
p.wrap = t(c, p, a.get(c));
return {
hasExports: u,
local: s,
sources: o
};
}
i(Dle, "getModuleMetadata");
function wle(e, t, r) {
let n = /* @__PURE__ */ new Map();
e.get("body").forEach((o) => {
let l;
if (o.isImportDeclaration())
l = "import";
else {
if (o.isExportDefaultDeclaration() && (o = o.get("declaration")), o.isExportNamedDeclaration()) {
if (o.node.declaration)
o = o.get("declaration");
else if (t && o.node.source && o.get("source").isStringLiteral()) {
o.get("specifiers").forEach((u) => {
AA(u), n.set(u.get("local").node.name, "block");
});
return;
}
}
if (o.isFunctionDeclaration())
l = "hoisted";
else if (o.isClassDeclaration())
l = "block";
else if (o.isVariableDeclaration({
kind: "var"
}))
l = "var";
else if (o.isVariableDeclaration())
l = "block";
else
return;
}
Object.keys(o.getOuterBindingIdentifiers()).forEach((u) => {
n.set(u, l);
});
});
let s = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ i((o) => {
let l = o.node.name, u = s.get(l);
if (!u) {
let c = n.get(l);
if (c === void 0)
throw o.buildCodeFrameError(`Exporting local "${l}", which is not declared.`);
u = {
names: [],
kind: c
}, s.set(l, u);
}
return u;
}, "getLocalMetadata");
return e.get("body").forEach((o) => {
if (o.isExportNamedDeclaration() && (t || !o.node.source))
if (o.node.declaration) {
let l = o.get("declaration"), u = l.getOuterBindingIdentifierPaths();
Object.keys(u).forEach((c) => {
if (c === "__esModule")
throw l.buildCodeFrameError('Illegal export "__esModule".');
a(u[c]).names.push(c);
});
} else
o.get("specifiers").forEach((l) => {
let u = l.get("local"), c = l.get("exported"), p = a(u), f = Ku(c, r);
if (f === "__esModule")
throw c.buildCodeFrameError('Illegal export "__esModule".');
p.names.push(f);
});
else if (o.isExportDefaultDeclaration()) {
let l = o.get("declaration");
if (l.isFunctionDeclaration() || l.isClassDeclaration())
a(l.get("id")).names.push("default");
else
throw l.buildCodeFrameError("Unexpected default expression export.");
}
}), s;
}
i(wle, "getLocalExportMetadata");
function Ile(e) {
e.get("body").forEach((t) => {
if (t.isExportDefaultDeclaration()) {
{
var r;
(r = t.splitExportDeclaration) != null || (t.splitExportDeclaration = Ot().NodePath.prototype.splitExportDeclaration);
}
t.splitExportDeclaration();
}
});
}
i(Ile, "nameAnonymousExports");
function _le(e) {
e.get("body").forEach((t) => {
if (t.isImportDeclaration())
t.remove();
else if (t.isExportNamedDeclaration())
t.node.declaration ? (t.node.declaration._blockHoist = t.node._blockHoist, t.replaceWith(t.node.declaration)) : t.remove();
else if (t.isExportDefaultDeclaration()) {
let r = t.get("declaration");
if (r.isFunctionDeclaration() || r.isClassDeclaration())
r._blockHoist = t.node._blockHoist, t.replaceWith(r);
else
throw r.buildCodeFrameError("Unexpected default expression export.");
} else t.isExportAllDeclaration() && t.remove();
});
}
i(_le, "removeImportExportDeclarations");
});
// ../node_modules/@babel/helper-module-transforms/lib/lazy-modules.js
var CA = P((Gu) => {
"use strict";
Object.defineProperty(Gu, "__esModule", {
value: !0
});
Gu.toGetWrapperPayload = Ble;
Gu.wrapReference = kle;
var Ole = Pt(), Nle = Iy();
function Ble(e) {
return (t, r) => {
if (e === !1 || (0, Nle.isSideEffectImport)(r) || r.reexportAll) return null;
if (e === !0)
return t.includes(".") ? null : "lazy";
if (Array.isArray(e))
return e.includes(t) ? "lazy" : null;
if (typeof e == "function")
return e(t) ? "lazy" : null;
throw new Error(".lazy must be a boolean, string array, or function");
};
}
i(Ble, "toGetWrapperPayload");
function kle(e, t) {
return t === "lazy" ? Ole.types.callExpression(e, []) : null;
}
i(kle, "wrapReference");
});
// ../node_modules/@babel/helper-module-transforms/lib/dynamic-import.js
var _y = P((Hu) => {
"use strict";
Object.defineProperty(Hu, "__esModule", {
value: !0
});
Hu.buildDynamicImport = Fle;
var Kt = Pt();
Hu.getDynamicImportSource = /* @__PURE__ */ i(function(t) {
let [r] = t.arguments;
return Kt.types.isStringLiteral(r) || Kt.types.isTemplateLiteral(r) ? r : Kt.template.expression.ast`\`\${${r}}\``;
}, "getDynamicImportSource");
function Fle(e, t, r, n) {
let s = Kt.types.isCallExpression(e) ? e.arguments[0] : e.source;
if (Kt.types.isStringLiteral(s) || Kt.types.isTemplateLiteral(s) && s.quasis.length === 0)
return t ? Kt.template.expression.ast`
Promise.resolve().then(() => ${n(s)})
` : n(s);
let a = Kt.types.isTemplateLiteral(s) ? Kt.types.identifier("specifier") : Kt.types.templateLiteral([Kt.types.templateElement({
raw: ""
}), Kt.types.templateElement({
raw: ""
})], [Kt.types.identifier("specifier")]);
return t ? Kt.template.expression.ast`
(specifier =>
new Promise(r => r(${a}))
.then(s => ${n(Kt.types.identifier("s"))})
)(${s})
` : r ? Kt.template.expression.ast`
(specifier =>
new Promise(r => r(${n(a)}))
)(${s})
` : Kt.template.expression.ast`
(specifier => ${n(a)})(${s})
`;
}
i(Fle, "buildDynamicImport");
});
// ../node_modules/@babel/helper-module-transforms/lib/get-module-name.js
var DA = P((Yu) => {
"use strict";
Object.defineProperty(Yu, "__esModule", {
value: !0
});
Yu.default = Oy;
{
let e = Oy;
Yu.default = Oy = /* @__PURE__ */ i(function(r, n) {
var s, a, o, l;
return e(r, {
moduleId: (s = n.moduleId) != null ? s : r.moduleId,
moduleIds: (a = n.moduleIds) != null ? a : r.moduleIds,
getModuleId: (o = n.getModuleId) != null ? o : r.getModuleId,
moduleRoot: (l = n.moduleRoot) != null ? l : r.moduleRoot
});
}, "getModuleName");
}
function Oy(e, t) {
let {
filename: r,
filenameRelative: n = r,
sourceRoot: s = t.moduleRoot
} = e, {
moduleId: a,
moduleIds: o = !!a,
getModuleId: l,
moduleRoot: u = s
} = t;
if (!o) return null;
if (a != null && !l)
return a;
let c = u != null ? u + "/" : "";
if (n) {
let p = s != null ? new RegExp("^" + s + "/?") : "";
c += n.replace(p, "").replace(/\.\w*$/, "");
}
return c = c.replace(/\\/g, "/"), l && l(c) || c;
}
i(Oy, "getModuleName");
});
// ../node_modules/@babel/helper-module-transforms/lib/index.js
var Eo = P((Sr) => {
"use strict";
Object.defineProperty(Sr, "__esModule", {
value: !0
});
Object.defineProperty(Sr, "buildDynamicImport", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Mle.buildDynamicImport;
}, "get")
});
Sr.buildNamespaceInitStatements = $le;
Sr.ensureStatementsHoisted = Ule;
Object.defineProperty(Sr, "getModuleName", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Rle.default;
}, "get")
});
Object.defineProperty(Sr, "hasExports", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return bo.hasExports;
}, "get")
});
Object.defineProperty(Sr, "isModule", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return wA.isModule;
}, "get")
});
Object.defineProperty(Sr, "isSideEffectImport", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return bo.isSideEffectImport;
}, "get")
});
Sr.rewriteModuleStatementsAndPrepareHeader = qle;
Object.defineProperty(Sr, "rewriteThis", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return IA.default;
}, "get")
});
Sr.wrapInterop = Vle;
var jle = ce("assert"), We = Pt(), wA = bA(), IA = SA(), Lle = xA(), bo = Iy(), Fy = CA(), Mle = _y(), Rle = DA();
Sr.getDynamicImportSource = _y().getDynamicImportSource;
function qle(e, {
exportName: t,
strict: r,
allowTopLevelThis: n,
strictMode: s,
noInterop: a,
importInterop: o = a ? "none" : "babel",
lazy: l,
getWrapperPayload: u = Fy.toGetWrapperPayload(l ?? !1),
wrapReference: c = Fy.wrapReference,
esNamespaceOnly: p,
filename: f,
constantReexports: h = arguments[1].loose,
enumerableModuleMeta: y = arguments[1].loose,
noIncompleteNsImportDetection: E
}) {
(0, bo.validateImportInteropOption)(o), jle((0, wA.isModule)(e), "Cannot process module statements in a script"), e.node.sourceType = "s\
cript";
let d = (0, bo.default)(e, t, {
importInterop: o,
initializeReexports: h,
getWrapperPayload: u,
esNamespaceOnly: p,
filename: f
});
n || (0, IA.default)(e), (0, Lle.default)(e, d, c), s !== !1 && (e.node.directives.some((O) => O.value.value === "use strict") || e.unshiftContainer(
"directives", We.types.directive(We.types.directiveLiteral("use strict"))));
let g = [];
(0, bo.hasExports)(d) && !r && g.push(Wle(d, y));
let C = Gle(e, d);
return C && (d.exportNameListName = C.name, g.push(C.statement)), g.push(...Hle(e, d, c, h, E)), {
meta: d,
headers: g
};
}
i(qle, "rewriteModuleStatementsAndPrepareHeader");
function Ule(e) {
e.forEach((t) => {
t._blockHoist = 3;
});
}
i(Ule, "ensureStatementsHoisted");
function Vle(e, t, r) {
if (r === "none")
return null;
if (r === "node-namespace")
return We.types.callExpression(e.hub.addHelper("interopRequireWildcard"), [t, We.types.booleanLiteral(!0)]);
if (r === "node-default")
return null;
let n;
if (r === "default")
n = "interopRequireDefault";
else if (r === "namespace")
n = "interopRequireWildcard";
else
throw new Error(`Unknown interop: ${r}`);
return We.types.callExpression(e.hub.addHelper(n), [t]);
}
i(Vle, "wrapInterop");
function $le(e, t, r = !1, n = Fy.wrapReference) {
var s;
let a = [], o = We.types.identifier(t.name);
for (let u of t.importsNamespace)
u !== t.name && a.push(We.template.statement`var NAME = SOURCE;`({
NAME: u,
SOURCE: We.types.cloneNode(o)
}));
let l = (s = n(o, t.wrap)) != null ? s : o;
r && a.push(..._A(e, t, !0, n));
for (let u of t.reexportNamespace)
a.push((We.types.isIdentifier(l) ? We.template.statement`EXPORTS.NAME = NAMESPACE;` : We.template.statement`
Object.defineProperty(EXPORTS, "NAME", {
enumerable: true,
get: function() {
return NAMESPACE;
}
});
`)({
EXPORTS: e.exportName,
NAME: u,
NAMESPACE: We.types.cloneNode(l)
}));
if (t.reexportAll) {
let u = Kle(e, We.types.cloneNode(l), r);
u.loc = t.reexportAll.loc, a.push(u);
}
return a;
}
i($le, "buildNamespaceInitStatements");
var Ny = {
constant: /* @__PURE__ */ i(({
exports: e,
exportName: t,
namespaceImport: r
}) => We.template.statement.ast`
${e}.${t} = ${r};
`, "constant"),
constantComputed: /* @__PURE__ */ i(({
exports: e,
exportName: t,
namespaceImport: r
}) => We.template.statement.ast`
${e}["${t}"] = ${r};
`, "constantComputed"),
spec: /* @__PURE__ */ i(({
exports: e,
exportName: t,
namespaceImport: r
}) => We.template.statement.ast`
Object.defineProperty(${e}, "${t}", {
enumerable: true,
get: function() {
return ${r};
},
});
`, "spec")
};
function _A(e, t, r, n) {
var s;
let a = We.types.identifier(t.name);
a = (s = n(a, t.wrap)) != null ? s : a;
let {
stringSpecifiers: o
} = e;
return Array.from(t.reexports, ([l, u]) => {
let c = We.types.cloneNode(a);
u === "default" && t.interop === "node-default" || (o.has(u) ? c = We.types.memberExpression(c, We.types.stringLiteral(u), !0) : c = We.
types.memberExpression(c, We.types.identifier(u)));
let p = {
exports: e.exportName,
exportName: l,
namespaceImport: c
};
return r || We.types.isIdentifier(c) ? o.has(l) ? Ny.constantComputed(p) : Ny.constant(p) : Ny.spec(p);
});
}
i(_A, "buildReexportsFromMeta");
function Wle(e, t = !1) {
return (t ? We.template.statement`
EXPORTS.__esModule = true;
` : We.template.statement`
Object.defineProperty(EXPORTS, "__esModule", {
value: true,
});
`)({
EXPORTS: e.exportName
});
}
i(Wle, "buildESModuleHeader");
function Kle(e, t, r) {
return (r ? We.template.statement`
Object.keys(NAMESPACE).forEach(function(key) {
if (key === "default" || key === "__esModule") return;
VERIFY_NAME_LIST;
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
EXPORTS[key] = NAMESPACE[key];
});
` : We.template.statement`
Object.keys(NAMESPACE).forEach(function(key) {
if (key === "default" || key === "__esModule") return;
VERIFY_NAME_LIST;
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
Object.defineProperty(EXPORTS, key, {
enumerable: true,
get: function() {
return NAMESPACE[key];
},
});
});
`)({
NAMESPACE: t,
EXPORTS: e.exportName,
VERIFY_NAME_LIST: e.exportNameListName ? (0, We.template)`
if (Object.prototype.hasOwnProperty.call(EXPORTS_LIST, key)) return;
`({
EXPORTS_LIST: e.exportNameListName
}) : null
});
}
i(Kle, "buildNamespaceReexport");
function Gle(e, t) {
let r = /* @__PURE__ */ Object.create(null);
for (let a of t.local.values())
for (let o of a.names)
r[o] = !0;
let n = !1;
for (let a of t.source.values()) {
for (let o of a.reexports.keys())
r[o] = !0;
for (let o of a.reexportNamespace)
r[o] = !0;
n = n || !!a.reexportAll;
}
if (!n || Object.keys(r).length === 0) return null;
let s = e.scope.generateUidIdentifier("exportNames");
return delete r.default, {
name: s.name,
statement: We.types.variableDeclaration("var", [We.types.variableDeclarator(s, We.types.valueToNode(r))])
};
}
i(Gle, "buildExportNameListDeclaration");
function Hle(e, t, r, n = !1, s = !1) {
let a = [];
for (let [l, u] of t.local)
if (u.kind !== "import") {
if (u.kind === "hoisted")
a.push([u.names[0], ky(t, u.names, We.types.identifier(l))]);
else if (!s)
for (let c of u.names)
a.push([c, null]);
}
for (let l of t.source.values()) {
if (!n) {
let u = _A(t, l, !1, r), c = [...l.reexports.keys()];
for (let p = 0; p < u.length; p++)
a.push([c[p], u[p]]);
}
if (!s)
for (let u of l.reexportNamespace)
a.push([u, null]);
}
a.sort(([l], [u]) => l < u ? -1 : u < l ? 1 : 0);
let o = [];
if (s)
for (let [, l] of a)
o.push(l);
else
for (let u = 0; u < a.length; u += 100) {
let c = [];
for (let p = 0; p < 100 && u + p < a.length; p++) {
let [f, h] = a[u + p];
h !== null ? (c.length > 0 && (o.push(ky(t, c, e.scope.buildUndefinedNode())), c = []), o.push(h)) : c.push(f);
}
c.length > 0 && o.push(ky(t, c, e.scope.buildUndefinedNode()));
}
return o;
}
i(Hle, "buildExportInitializationStatements");
var By = {
computed: /* @__PURE__ */ i(({
exports: e,
name: t,
value: r
}) => We.template.expression.ast`${e}["${t}"] = ${r}`, "computed"),
default: /* @__PURE__ */ i(({
exports: e,
name: t,
value: r
}) => We.template.expression.ast`${e}.${t} = ${r}`, "default"),
define: /* @__PURE__ */ i(({
exports: e,
name: t,
value: r
}) => We.template.expression.ast`
Object.defineProperty(${e}, "${t}", {
enumerable: true,
value: void 0,
writable: true
})["${t}"] = ${r}`, "define")
};
function ky(e, t, r) {
let {
stringSpecifiers: n,
exportName: s
} = e;
return We.types.expressionStatement(t.reduce((a, o) => {
let l = {
exports: s,
name: o,
value: a
};
return o === "__proto__" ? By.define(l) : n.has(o) ? By.computed(l) : By.default(l);
}, r));
}
i(ky, "buildInitStatement");
});
// ../node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs
var NA = P((OA) => {
OA.getModuleName = () => Eo().getModuleName;
});
// ../node_modules/@babel/core/lib/transformation/file/file.js
var Ly = P((Xu) => {
"use strict";
Object.defineProperty(Xu, "__esModule", {
value: !0
});
Xu.default = void 0;
function To() {
let e = Hh();
return To = /* @__PURE__ */ i(function() {
return e;
}, "helpers"), e;
}
i(To, "helpers");
function jy() {
let e = Ot();
return jy = /* @__PURE__ */ i(function() {
return e;
}, "_traverse"), e;
}
i(jy, "_traverse");
function BA() {
let e = Xa();
return BA = /* @__PURE__ */ i(function() {
return e;
}, "_codeFrame"), e;
}
i(BA, "_codeFrame");
function kA() {
let e = De();
return kA = /* @__PURE__ */ i(function() {
return e;
}, "_t"), e;
}
i(kA, "_t");
function Ju() {
let e = ce("semver");
return Ju = /* @__PURE__ */ i(function() {
return e;
}, "_semver"), e;
}
i(Ju, "_semver");
var Yle = NA(), {
cloneNode: Jle,
interpreterDirective: Xle
} = kA(), zle = {
enter(e, t) {
let r = e.node.loc;
r && (t.loc = r, e.stop());
}
}, Ji = class {
static {
i(this, "File");
}
constructor(t, {
code: r,
ast: n,
inputMap: s
}) {
this._map = /* @__PURE__ */ new Map(), this.opts = void 0, this.declarations = {}, this.path = void 0, this.ast = void 0, this.scope =
void 0, this.metadata = {}, this.code = "", this.inputMap = void 0, this.hub = {
file: this,
getCode: /* @__PURE__ */ i(() => this.code, "getCode"),
getScope: /* @__PURE__ */ i(() => this.scope, "getScope"),
addHelper: this.addHelper.bind(this),
buildError: this.buildCodeFrameError.bind(this)
}, this.opts = t, this.code = r, this.ast = n, this.inputMap = s, this.path = jy().NodePath.get({
hub: this.hub,
parentPath: null,
parent: this.ast,
container: this.ast,
key: "program"
}).setContext(), this.scope = this.path.scope;
}
get shebang() {
let {
interpreter: t
} = this.path.node;
return t ? t.value : "";
}
set shebang(t) {
t ? this.path.get("interpreter").replaceWith(Xle(t)) : this.path.get("interpreter").remove();
}
set(t, r) {
if (t === "helpersNamespace")
throw new Error("Babel 7.0.0-beta.56 has dropped support for the 'helpersNamespace' utility.If you are using @babel/plugin-external-\
helpers you will need to use a newer version than the one you currently have installed. If you have your own implementation, you'll want to \
explore using 'helperGenerator' alongside 'file.availableHelper()'.");
this._map.set(t, r);
}
get(t) {
return this._map.get(t);
}
has(t) {
return this._map.has(t);
}
availableHelper(t, r) {
let n;
try {
n = To().minVersion(t);
} catch (s) {
if (s.code !== "BABEL_HELPER_UNKNOWN") throw s;
return !1;
}
return typeof r != "string" ? !0 : (Ju().valid(r) && (r = `^${r}`), !Ju().intersects(`<${n}`, r) && !Ju().intersects(">=8.0.0", r));
}
addHelper(t) {
let r = this.declarations[t];
if (r) return Jle(r);
let n = this.get("helperGenerator");
if (n) {
let c = n(t);
if (c) return c;
}
To().minVersion(t);
let s = this.declarations[t] = this.scope.generateUidIdentifier(t), a = {};
for (let c of To().getDependencies(t))
a[c] = this.addHelper(c);
let {
nodes: o,
globals: l
} = To().get(t, (c) => a[c], s.name, Object.keys(this.scope.getAllBindings()));
l.forEach((c) => {
this.path.scope.hasBinding(c, !0) && this.path.scope.rename(c);
}), o.forEach((c) => {
c._compact = !0;
});
let u = this.path.unshiftContainer("body", o);
for (let c of u)
c.isVariableDeclaration() && this.scope.registerDeclaration(c);
return s;
}
buildCodeFrameError(t, r, n = SyntaxError) {
let s = t?.loc;
if (!s && t) {
let a = {
loc: null
};
(0, jy().default)(t, zle, this.scope, a), s = a.loc;
let o = "This is an error on an internal node. Probably an internal error.";
s && (o += " Location has been estimated."), r += ` (${o})`;
}
if (s) {
let {
highlightCode: a = !0
} = this.opts;
r += `
` + (0, BA().codeFrameColumns)(this.code, {
start: {
line: s.start.line,
column: s.start.column + 1
},
end: s.end && s.start.line === s.end.line ? {
line: s.end.line,
column: s.end.column + 1
} : void 0
}, {
highlightCode: a
});
}
return new n(r);
}
};
Xu.default = Ji;
Ji.prototype.addImport = /* @__PURE__ */ i(function() {
throw new Error("This API has been removed. If you're looking for this functionality in Babel 7, you should import the '@babel/helper-mo\
dule-imports' module and use the functions exposed from that module, such as 'addNamed' or 'addDefault'.");
}, "addImport"), Ji.prototype.addTemplateObject = /* @__PURE__ */ i(function() {
throw new Error("This function has been moved into the template literal transform itself.");
}, "addTemplateObject"), Ji.prototype.getModuleName = /* @__PURE__ */ i(function() {
return Yle.getModuleName()(this.opts, this.opts);
}, "getModuleName");
});
// ../node_modules/@babel/core/lib/tools/build-external-helpers.js
var RA = P((Wy) => {
"use strict";
Object.defineProperty(Wy, "__esModule", {
value: !0
});
Wy.default = due;
function My() {
let e = Hh();
return My = /* @__PURE__ */ i(function() {
return e;
}, "helpers"), e;
}
i(My, "helpers");
function FA() {
let e = oo();
return FA = /* @__PURE__ */ i(function() {
return e;
}, "_generator"), e;
}
i(FA, "_generator");
function jA() {
let e = Za();
return jA = /* @__PURE__ */ i(function() {
return e;
}, "_template"), e;
}
i(jA, "_template");
function LA() {
let e = De();
return LA = /* @__PURE__ */ i(function() {
return e;
}, "_t"), e;
}
i(LA, "_t");
var {
arrayExpression: Qle,
assignmentExpression: zu,
binaryExpression: Zle,
blockStatement: eue,
callExpression: tue,
cloneNode: rue,
conditionalExpression: nue,
exportNamedDeclaration: sue,
exportSpecifier: iue,
expressionStatement: Ry,
functionExpression: aue,
identifier: Gt,
memberExpression: qy,
objectExpression: Uy,
program: Qu,
stringLiteral: MA,
unaryExpression: oue,
variableDeclaration: Vy,
variableDeclarator: $y
} = LA(), lue = /* @__PURE__ */ i((e) => jA().default.statement`
(function (root, factory) {
if (typeof define === "function" && define.amd) {
define(AMD_ARGUMENTS, factory);
} else if (typeof exports === "object") {
factory(COMMON_ARGUMENTS);
} else {
factory(BROWSER_ARGUMENTS);
}
})(UMD_ROOT, function (FACTORY_PARAMETERS) {
FACTORY_BODY
});
`(e), "buildUmdWrapper");
function uue(e) {
let t = Gt("babelHelpers"), r = [], n = aue(null, [Gt("global")], eue(r)), s = Qu([Ry(tue(n, [nue(Zle("===", oue("typeof", Gt("global")),
MA("undefined")), Gt("self"), Gt("global"))]))]);
return r.push(Vy("var", [$y(t, zu("=", qy(Gt("global"), t), Uy([])))])), Zu(r, t, e), s;
}
i(uue, "buildGlobal");
function cue(e) {
let t = [], r = Zu(t, null, e);
return t.unshift(sue(null, Object.keys(r).map((n) => iue(rue(r[n]), Gt(n))))), Qu(t, [], "module");
}
i(cue, "buildModule");
function pue(e) {
let t = Gt("babelHelpers"), r = [];
return r.push(Vy("var", [$y(t, Gt("global"))])), Zu(r, t, e), Qu([lue({
FACTORY_PARAMETERS: Gt("global"),
BROWSER_ARGUMENTS: zu("=", qy(Gt("root"), t), Uy([])),
COMMON_ARGUMENTS: Gt("exports"),
AMD_ARGUMENTS: Qle([MA("exports")]),
FACTORY_BODY: r,
UMD_ROOT: Gt("this")
})]);
}
i(pue, "buildUmd");
function fue(e) {
let t = Gt("babelHelpers"), r = [];
r.push(Vy("var", [$y(t, Uy([]))]));
let n = Qu(r);
return Zu(r, t, e), r.push(Ry(t)), n;
}
i(fue, "buildVar");
function Zu(e, t, r) {
let n = /* @__PURE__ */ i((a) => t ? qy(t, Gt(a)) : Gt(`_${a}`), "getHelperReference"), s = {};
return My().list.forEach(function(a) {
if (r && !r.includes(a)) return;
let o = s[a] = n(a), {
nodes: l
} = My().get(a, n, t ? null : `_${a}`, [], t ? (u, c, p) => {
p((f) => zu("=", o, f)), u.body.push(Ry(zu("=", o, Gt(c))));
} : null);
e.push(...l);
}), s;
}
i(Zu, "buildHelpers");
function due(e, t = "global") {
let r, n = {
global: uue,
module: cue,
umd: pue,
var: fue
}[t];
if (n)
r = n(e);
else
throw new Error(`Unsupported output type ${t}`);
return (0, FA().default)(r).code;
}
i(due, "_default");
});
// ../node_modules/gensync/index.js
var xr = P((CAe, HA) => {
"use strict";
var UA = Symbol.for("gensync:v1:start"), VA = Symbol.for("gensync:v1:suspend"), hue = "GENSYNC_EXPECTED_START", mue = "GENSYNC_EXPECTED_SU\
SPEND", $A = "GENSYNC_OPTIONS_ERROR", qA = "GENSYNC_RACE_NONEMPTY", yue = "GENSYNC_ERRBACK_NO_CALLBACK";
HA.exports = Object.assign(
/* @__PURE__ */ i(function(t) {
let r = t;
return typeof t != "function" ? r = bue(t) : r = Eue(t), Object.assign(r, gue(r));
}, "gensync"),
{
all: Ky({
name: "all",
arity: 1,
sync: /* @__PURE__ */ i(function(e) {
return Array.from(e[0]).map((r) => Gy(r));
}, "sync"),
async: /* @__PURE__ */ i(function(e, t, r) {
let n = Array.from(e[0]);
if (n.length === 0) {
Promise.resolve().then(() => t([]));
return;
}
let s = 0, a = n.map(() => {
});
n.forEach((o, l) => {
ec(
o,
(u) => {
a[l] = u, s += 1, s === a.length && t(a);
},
r
);
});
}, "async")
}),
race: Ky({
name: "race",
arity: 1,
sync: /* @__PURE__ */ i(function(e) {
let t = Array.from(e[0]);
if (t.length === 0)
throw ei("Must race at least 1 item", qA);
return Gy(t[0]);
}, "sync"),
async: /* @__PURE__ */ i(function(e, t, r) {
let n = Array.from(e[0]);
if (n.length === 0)
throw ei("Must race at least 1 item", qA);
for (let s of n)
ec(s, t, r);
}, "async")
})
}
);
function gue(e) {
return {
sync: /* @__PURE__ */ i(function(...r) {
return Gy(e.apply(this, r));
}, "sync"),
async: /* @__PURE__ */ i(function(...r) {
return new Promise((n, s) => {
ec(e.apply(this, r), n, s);
});
}, "async"),
errback: /* @__PURE__ */ i(function(...r) {
let n = r.pop();
if (typeof n != "function")
throw ei(
"Asynchronous function called without callback",
yue
);
let s;
try {
s = e.apply(this, r);
} catch (a) {
n(a);
return;
}
ec(s, (a) => n(void 0, a), (a) => n(a));
}, "errback")
};
}
i(gue, "makeFunctionAPI");
function So(e, t, r, n) {
if (typeof r === e || n && typeof r > "u")
return;
let s;
throw n ? s = `Expected opts.${t} to be either a ${e}, or undefined.` : s = `Expected opts.${t} to be a ${e}.`, ei(s, $A);
}
i(So, "assertTypeof");
function ei(e, t) {
return Object.assign(new Error(e), { code: t });
}
i(ei, "makeError");
function bue({ name: e, arity: t, sync: r, async: n, errback: s }) {
if (So(
"string",
"name",
e,
!0
/* allowUndefined */
), So(
"number",
"arity",
t,
!0
/* allowUndefined */
), So("function", "sync", r), So(
"function",
"async",
n,
!0
/* allowUndefined */
), So(
"function",
"errback",
s,
!0
/* allowUndefined */
), n && s)
throw ei(
"Expected one of either opts.async or opts.errback, but got _both_.",
$A
);
if (typeof e != "string") {
let a;
s && s.name && s.name !== "errback" && (a = s.name), n && n.name && n.name !== "async" && (a = n.name.replace(/Async$/, "")), r && r.name &&
r.name !== "sync" && (a = r.name.replace(/Sync$/, "")), typeof a == "string" && (e = a);
}
return typeof t != "number" && (t = r.length), Ky({
name: e,
arity: t,
sync: /* @__PURE__ */ i(function(a) {
return r.apply(this, a);
}, "sync"),
async: /* @__PURE__ */ i(function(a, o, l) {
n ? n.apply(this, a).then(o, l) : s ? s.call(this, ...a, (u, c) => {
u == null ? o(c) : l(u);
}) : o(r.apply(this, a));
}, "async")
});
}
i(bue, "newGenerator");
function Eue(e) {
return GA(e.name, e.length, function(...t) {
return e.apply(this, t);
});
}
i(Eue, "wrapGenerator");
function Ky({ name: e, arity: t, sync: r, async: n }) {
return GA(e, t, function* (...s) {
let a = yield UA;
if (!a)
return r.call(this, s);
let o;
try {
n.call(
this,
s,
(l) => {
o || (o = { value: l }, a());
},
(l) => {
o || (o = { err: l }, a());
}
);
} catch (l) {
o = { err: l }, a();
}
if (yield VA, o.hasOwnProperty("err"))
throw o.err;
return o.value;
});
}
i(Ky, "buildOperation");
function Gy(e) {
let t;
for (; !({ value: t } = e.next()).done; )
WA(t, e);
return t;
}
i(Gy, "evaluateSync");
function ec(e, t, r) {
(/* @__PURE__ */ i(function n() {
try {
let s;
for (; !({ value: s } = e.next()).done; ) {
WA(s, e);
let a = !0, o = !1, l = e.next(() => {
a ? o = !0 : n();
});
if (a = !1, Tue(l, e), !o)
return;
}
return t(s);
} catch (s) {
return r(s);
}
}, "step"))();
}
i(ec, "evaluateAsync");
function WA(e, t) {
e !== UA && KA(
t,
ei(
`Got unexpected yielded value in gensync generator: ${JSON.stringify(
e
)}. Did you perhaps mean to use 'yield*' instead of 'yield'?`,
hue
)
);
}
i(WA, "assertStart");
function Tue({ value: e, done: t }, r) {
!t && e === VA || KA(
r,
ei(
t ? "Unexpected generator completion. If you get this, it is probably a gensync bug." : `Expected GENSYNC_SUSPEND, got ${JSON.stringify(
e
)}. If you get this, it is probably a gensync bug.`,
mue
)
);
}
i(Tue, "assertSuspend");
function KA(e, t) {
throw e.throw && e.throw(t), t;
}
i(KA, "throwError");
function GA(e, t, r) {
if (typeof e == "string") {
let n = Object.getOwnPropertyDescriptor(r, "name");
(!n || n.configurable) && Object.defineProperty(
r,
"name",
Object.assign(n || {}, {
configurable: !0,
value: e
})
);
}
if (typeof t == "number") {
let n = Object.getOwnPropertyDescriptor(r, "length");
(!n || n.configurable) && Object.defineProperty(
r,
"length",
Object.assign(n || {}, {
configurable: !0,
value: t
})
);
}
return r;
}
i(GA, "setFunctionMetadata");
});
// ../node_modules/@babel/core/lib/gensync-utils/async.js
var ys = P((Xr) => {
"use strict";
Object.defineProperty(Xr, "__esModule", {
value: !0
});
Xr.forwardAsync = vue;
Xr.isAsync = void 0;
Xr.isThenable = zA;
Xr.maybeAsync = Sue;
Xr.waitFor = Xr.onFirstPause = void 0;
function ms() {
let e = xr();
return ms = /* @__PURE__ */ i(function() {
return e;
}, "_gensync"), e;
}
i(ms, "_gensync");
function YA(e, t, r, n, s, a, o) {
try {
var l = e[a](o), u = l.value;
} catch (c) {
return void r(c);
}
l.done ? t(u) : Promise.resolve(u).then(n, s);
}
i(YA, "asyncGeneratorStep");
function XA(e) {
return function() {
var t = this, r = arguments;
return new Promise(function(n, s) {
var a = e.apply(t, r);
function o(u) {
YA(a, n, s, o, l, "next", u);
}
i(o, "_next");
function l(u) {
YA(a, n, s, o, l, "throw", u);
}
i(l, "_throw"), o(void 0);
});
};
}
i(XA, "_asyncToGenerator");
var JA = ms()(function* (e) {
return yield* e;
}), wAe = Xr.isAsync = ms()({
sync: /* @__PURE__ */ i(() => !1, "sync"),
errback: /* @__PURE__ */ i((e) => e(null, !0), "errback")
});
function Sue(e, t) {
return ms()({
sync(...r) {
let n = e.apply(this, r);
if (zA(n)) throw new Error(t);
return n;
},
async(...r) {
return Promise.resolve(e.apply(this, r));
}
});
}
i(Sue, "maybeAsync");
var xue = ms()({
sync: /* @__PURE__ */ i((e) => e("sync"), "sync"),
async: function() {
var e = XA(function* (t) {
return t("async");
});
return /* @__PURE__ */ i(function(r) {
return e.apply(this, arguments);
}, "async");
}()
});
function vue(e, t) {
let r = ms()(e);
return xue((n) => {
let s = r[n];
return t(s);
});
}
i(vue, "forwardAsync");
var IAe = Xr.onFirstPause = ms()({
name: "onFirstPause",
arity: 2,
sync: /* @__PURE__ */ i(function(e) {
return JA.sync(e);
}, "sync"),
errback: /* @__PURE__ */ i(function(e, t, r) {
let n = !1;
JA.errback(e, (s, a) => {
n = !0, r(s, a);
}), n || t();
}, "errback")
}), _Ae = Xr.waitFor = ms()({
sync: /* @__PURE__ */ i((e) => e, "sync"),
async: function() {
var e = XA(function* (t) {
return t;
});
return /* @__PURE__ */ i(function(r) {
return e.apply(this, arguments);
}, "async");
}()
});
function zA(e) {
return !!e && (typeof e == "object" || typeof e == "function") && !!e.then && typeof e.then == "function";
}
i(zA, "isThenable");
});
// ../node_modules/@babel/core/lib/config/util.js
var rc = P((tc) => {
"use strict";
Object.defineProperty(tc, "__esModule", {
value: !0
});
tc.isIterableIterator = Cue;
tc.mergeOptions = Pue;
function Pue(e, t) {
for (let r of Object.keys(t))
if ((r === "parserOpts" || r === "generatorOpts" || r === "assumptions") && t[r]) {
let n = t[r], s = e[r] || (e[r] = {});
Aue(s, n);
} else {
let n = t[r];
n !== void 0 && (e[r] = n);
}
}
i(Pue, "mergeOptions");
function Aue(e, t) {
for (let r of Object.keys(t)) {
let n = t[r];
n !== void 0 && (e[r] = n);
}
}
i(Aue, "mergeDefaultFields");
function Cue(e) {
return !!e && typeof e.next == "function" && typeof e[Symbol.iterator] == "function";
}
i(Cue, "isIterableIterator");
});
// ../node_modules/@babel/core/lib/config/caching.js
var ri = P((ti) => {
"use strict";
Object.defineProperty(ti, "__esModule", {
value: !0
});
ti.assertSimpleType = nc;
ti.makeStrongCache = rC;
ti.makeStrongCacheSync = _ue;
ti.makeWeakCache = tC;
ti.makeWeakCacheSync = Iue;
function ZA() {
let e = xr();
return ZA = /* @__PURE__ */ i(function() {
return e;
}, "_gensync"), e;
}
i(ZA, "_gensync");
var Xi = ys(), Due = rc(), eC = /* @__PURE__ */ i((e) => ZA()(e).sync, "synchronize");
function* wue() {
return !0;
}
i(wue, "genTrue");
function tC(e) {
return nC(WeakMap, e);
}
i(tC, "makeWeakCache");
function Iue(e) {
return eC(tC(e));
}
i(Iue, "makeWeakCacheSync");
function rC(e) {
return nC(Map, e);
}
i(rC, "makeStrongCache");
function _ue(e) {
return eC(rC(e));
}
i(_ue, "makeStrongCacheSync");
function nC(e, t) {
let r = new e(), n = new e(), s = new e();
return /* @__PURE__ */ i(function* (o, l) {
let u = yield* (0, Xi.isAsync)(), c = u ? n : r, p = yield* Oue(u, c, s, o, l);
if (p.valid) return p.value;
let f = new Hy(l), h = t(o, f), y, E;
return (0, Due.isIterableIterator)(h) ? E = yield* (0, Xi.onFirstPause)(h, () => {
y = Nue(f, s, o);
}) : E = h, sC(c, f, o, E), y && (s.delete(o), y.release(E)), E;
}, "cachedFunction");
}
i(nC, "makeCachedFunction");
function* QA(e, t, r) {
let n = e.get(t);
if (n) {
for (let {
value: s,
valid: a
} of n)
if (yield* a(r)) return {
valid: !0,
value: s
};
}
return {
valid: !1,
value: null
};
}
i(QA, "getCachedValue");
function* Oue(e, t, r, n, s) {
let a = yield* QA(t, n, s);
if (a.valid)
return a;
if (e) {
let o = yield* QA(r, n, s);
if (o.valid)
return {
valid: !0,
value: yield* (0, Xi.waitFor)(o.value.promise)
};
}
return {
valid: !1,
value: null
};
}
i(Oue, "getCachedValueOrWait");
function Nue(e, t, r) {
let n = new Yy();
return sC(t, e, r, n), n;
}
i(Nue, "setupAsyncLocks");
function sC(e, t, r, n) {
t.configured() || t.forever();
let s = e.get(r);
switch (t.deactivate(), t.mode()) {
case "forever":
s = [{
value: n,
valid: wue
}], e.set(r, s);
break;
case "invalidate":
s = [{
value: n,
valid: t.validator()
}], e.set(r, s);
break;
case "valid":
s ? s.push({
value: n,
valid: t.validator()
}) : (s = [{
value: n,
valid: t.validator()
}], e.set(r, s));
}
}
i(sC, "updateFunctionCache");
var Hy = class {
static {
i(this, "CacheConfigurator");
}
constructor(t) {
this._active = !0, this._never = !1, this._forever = !1, this._invalidate = !1, this._configured = !1, this._pairs = [], this._data = void 0,
this._data = t;
}
simple() {
return Bue(this);
}
mode() {
return this._never ? "never" : this._forever ? "forever" : this._invalidate ? "invalidate" : "valid";
}
forever() {
if (!this._active)
throw new Error("Cannot change caching after evaluation has completed.");
if (this._never)
throw new Error("Caching has already been configured with .never()");
this._forever = !0, this._configured = !0;
}
never() {
if (!this._active)
throw new Error("Cannot change caching after evaluation has completed.");
if (this._forever)
throw new Error("Caching has already been configured with .forever()");
this._never = !0, this._configured = !0;
}
using(t) {
if (!this._active)
throw new Error("Cannot change caching after evaluation has completed.");
if (this._never || this._forever)
throw new Error("Caching has already been configured with .never or .forever()");
this._configured = !0;
let r = t(this._data), n = (0, Xi.maybeAsync)(t, "You appear to be using an async cache handler, but Babel has been called synchronous\
ly");
return (0, Xi.isThenable)(r) ? r.then((s) => (this._pairs.push([s, n]), s)) : (this._pairs.push([r, n]), r);
}
invalidate(t) {
return this._invalidate = !0, this.using(t);
}
validator() {
let t = this._pairs;
return function* (r) {
for (let [n, s] of t)
if (n !== (yield* s(r))) return !1;
return !0;
};
}
deactivate() {
this._active = !1;
}
configured() {
return this._configured;
}
};
function Bue(e) {
function t(r) {
if (typeof r == "boolean") {
r ? e.forever() : e.never();
return;
}
return e.using(() => nc(r()));
}
return i(t, "cacheFn"), t.forever = () => e.forever(), t.never = () => e.never(), t.using = (r) => e.using(() => nc(r())), t.invalidate =
(r) => e.invalidate(() => nc(r())), t;
}
i(Bue, "makeSimpleConfigurator");
function nc(e) {
if ((0, Xi.isThenable)(e))
throw new Error("You appear to be using an async cache handler, which your current version of Babel does not support. We may add suppo\
rt for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synchron\
ously handle your caching logic.");
if (e != null && typeof e != "string" && typeof e != "boolean" && typeof e != "number")
throw new Error("Cache keys must be either string, boolean, number, null, or undefined.");
return e;
}
i(nc, "assertSimpleType");
var Yy = class {
static {
i(this, "Lock");
}
constructor() {
this.released = !1, this.promise = void 0, this._resolve = void 0, this.promise = new Promise((t) => {
this._resolve = t;
});
}
release(t) {
this.released = !0, this._resolve(t);
}
};
});
// ../node_modules/@babel/core/lib/gensync-utils/fs.js
var sc = P((zi) => {
"use strict";
Object.defineProperty(zi, "__esModule", {
value: !0
});
zi.stat = zi.readFile = void 0;
function xo() {
let e = ce("fs");
return xo = /* @__PURE__ */ i(function() {
return e;
}, "_fs"), e;
}
i(xo, "_fs");
function Jy() {
let e = xr();
return Jy = /* @__PURE__ */ i(function() {
return e;
}, "_gensync"), e;
}
i(Jy, "_gensync");
var LAe = zi.readFile = Jy()({
sync: xo().readFileSync,
errback: xo().readFile
}), MAe = zi.stat = Jy()({
sync: xo().statSync,
errback: xo().stat
});
});
// ../node_modules/@babel/core/lib/config/files/utils.js
var Qy = P((zy) => {
"use strict";
Object.defineProperty(zy, "__esModule", {
value: !0
});
zy.makeStaticFileCache = jue;
var kue = ri(), Fue = sc();
function Xy() {
let e = ce("fs");
return Xy = /* @__PURE__ */ i(function() {
return e;
}, "_fs2"), e;
}
i(Xy, "_fs2");
function jue(e) {
return (0, kue.makeStrongCache)(function* (t, r) {
return r.invalidate(() => Lue(t)) === null ? null : e(t, yield* Fue.readFile(t, "utf8"));
});
}
i(jue, "makeStaticFileCache");
function Lue(e) {
if (!Xy().existsSync(e)) return null;
try {
return +Xy().statSync(e).mtime;
} catch (t) {
if (t.code !== "ENOENT" && t.code !== "ENOTDIR") throw t;
}
return null;
}
i(Lue, "fileMtime");
});
// ../node_modules/@babel/core/lib/errors/rewrite-stack-trace.js
var jn = P((Qi) => {
"use strict";
Object.defineProperty(Qi, "__esModule", {
value: !0
});
Qi.beginHiddenCallStack = Uue;
Qi.endHiddenCallStack = Vue;
Qi.expectedError = que;
Qi.injectVirtualStackFrame = Rue;
var iC, aC = Function.call.bind(Error.prototype.toString), ac = !!Error.captureStackTrace && ((iC = Object.getOwnPropertyDescriptor(Error,
"stackTraceLimit")) == null ? void 0 : iC.writable) === !0, oC = "startHiding - secret - don't use this - v1", lC = "stopHiding - secret -\
don't use this - v1", uC = /* @__PURE__ */ new WeakSet(), ic = /* @__PURE__ */ new WeakMap();
function Mue(e) {
return /* @__PURE__ */ Object.create({
isNative: /* @__PURE__ */ i(() => !1, "isNative"),
isConstructor: /* @__PURE__ */ i(() => !1, "isConstructor"),
isToplevel: /* @__PURE__ */ i(() => !0, "isToplevel"),
getFileName: /* @__PURE__ */ i(() => e, "getFileName"),
getLineNumber: /* @__PURE__ */ i(() => {
}, "getLineNumber"),
getColumnNumber: /* @__PURE__ */ i(() => {
}, "getColumnNumber"),
getFunctionName: /* @__PURE__ */ i(() => {
}, "getFunctionName"),
getMethodName: /* @__PURE__ */ i(() => {
}, "getMethodName"),
getTypeName: /* @__PURE__ */ i(() => {
}, "getTypeName"),
toString: /* @__PURE__ */ i(() => e, "toString")
});
}
i(Mue, "CallSite");
function Rue(e, t) {
if (!ac) return;
let r = ic.get(e);
return r || ic.set(e, r = []), r.push(Mue(t)), e;
}
i(Rue, "injectVirtualStackFrame");
function que(e) {
if (ac)
return uC.add(e), e;
}
i(que, "expectedError");
function Uue(e) {
return ac ? Object.defineProperty(function(...t) {
return cC(), e(...t);
}, "name", {
value: lC
}) : e;
}
i(Uue, "beginHiddenCallStack");
function Vue(e) {
return ac ? Object.defineProperty(function(...t) {
return e(...t);
}, "name", {
value: oC
}) : e;
}
i(Vue, "endHiddenCallStack");
function cC() {
cC = /* @__PURE__ */ i(() => {
}, "setupPrepareStackTrace");
let {
prepareStackTrace: e = $ue
} = Error, t = 50;
Error.stackTraceLimit && (Error.stackTraceLimit = Math.max(Error.stackTraceLimit, t)), Error.prepareStackTrace = /* @__PURE__ */ i(function(n, s) {
let a = [], l = uC.has(n) ? "hiding" : "unknown";
for (let u = 0; u < s.length; u++) {
let c = s[u].getFunctionName();
if (c === oC)
l = "hiding";
else if (c === lC) {
if (l === "hiding")
l = "showing", ic.has(n) && a.unshift(...ic.get(n));
else if (l === "unknown") {
a = s;
break;
}
} else l !== "hiding" && a.push(s[u]);
}
return e(n, a);
}, "stackTraceRewriter");
}
i(cC, "setupPrepareStackTrace");
function $ue(e, t) {
return t.length === 0 ? aC(e) : `${aC(e)}
at ${t.join(`
at `)}`;
}
i($ue, "defaultPrepareStackTrace");
});
// ../node_modules/@babel/core/lib/errors/config-error.js
var ni = P((oc) => {
"use strict";
Object.defineProperty(oc, "__esModule", {
value: !0
});
oc.default = void 0;
var pC = jn(), Zy = class extends Error {
static {
i(this, "ConfigError");
}
constructor(t, r) {
super(t), (0, pC.expectedError)(this), r && (0, pC.injectVirtualStackFrame)(this, r);
}
};
oc.default = Zy;
});
// ../node_modules/@babel/core/lib/config/files/package.js
var fC = P((t0) => {
"use strict";
Object.defineProperty(t0, "__esModule", {
value: !0
});
t0.findPackageData = Hue;
function Zi() {
let e = ce("path");
return Zi = /* @__PURE__ */ i(function() {
return e;
}, "_path"), e;
}
i(Zi, "_path");
var Wue = Qy(), e0 = ni(), Kue = "package.json", Gue = (0, Wue.makeStaticFileCache)((e, t) => {
let r;
try {
r = JSON.parse(t);
} catch (n) {
throw new e0.default(`Error while parsing JSON - ${n.message}`, e);
}
if (!r) throw new Error(`${e}: No config detected`);
if (typeof r != "object")
throw new e0.default(`Config returned typeof ${typeof r}`, e);
if (Array.isArray(r))
throw new e0.default("Expected config object but found array", e);
return {
filepath: e,
dirname: Zi().dirname(e),
options: r
};
});
function* Hue(e) {
let t = null, r = [], n = !0, s = Zi().dirname(e);
for (; !t && Zi().basename(s) !== "node_modules"; ) {
r.push(s), t = yield* Gue(Zi().join(s, Kue));
let a = Zi().dirname(s);
if (s === a) {
n = !1;
break;
}
s = a;
}
return {
filepath: e,
directories: r,
pkg: t,
isPackage: n
};
}
i(Hue, "findPackageData");
});
// ../node_modules/json5/lib/unicode.js
var dC = P((JAe, lc) => {
lc.exports.Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
lc.exports.ID_Start = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;
lc.exports.ID_Continue = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;
});
// ../node_modules/json5/lib/util.js
var n0 = P((XAe, hC) => {
var r0 = dC();
hC.exports = {
isSpaceSeparator(e) {
return typeof e == "string" && r0.Space_Separator.test(e);
},
isIdStartChar(e) {
return typeof e == "string" && (e >= "a" && e <= "z" || e >= "A" && e <= "Z" || e === "$" || e === "_" || r0.ID_Start.test(e));
},
isIdContinueChar(e) {
return typeof e == "string" && (e >= "a" && e <= "z" || e >= "A" && e <= "Z" || e >= "0" && e <= "9" || e === "$" || e === "_" || e ===
"\u200C" || e === "\u200D" || r0.ID_Continue.test(e));
},
isDigit(e) {
return typeof e == "string" && /[0-9]/.test(e);
},
isHexDigit(e) {
return typeof e == "string" && /[0-9A-Fa-f]/.test(e);
}
};
});
// ../node_modules/json5/lib/parse.js
var EC = P((zAe, bC) => {
var Mt = n0(), i0, pr, Mn, cc, gs, zr, Rt, l0, Po;
bC.exports = /* @__PURE__ */ i(function(t, r) {
i0 = String(t), pr = "start", Mn = [], cc = 0, gs = 1, zr = 0, Rt = void 0, l0 = void 0, Po = void 0;
do
Rt = Yue(), zue[pr]();
while (Rt.type !== "eof");
return typeof r == "function" ? a0({ "": Po }, "", r) : Po;
}, "parse");
function a0(e, t, r) {
let n = e[t];
if (n != null && typeof n == "object")
if (Array.isArray(n))
for (let s = 0; s < n.length; s++) {
let a = String(s), o = a0(n, a, r);
o === void 0 ? delete n[a] : Object.defineProperty(n, a, {
value: o,
writable: !0,
enumerable: !0,
configurable: !0
});
}
else
for (let s in n) {
let a = a0(n, s, r);
a === void 0 ? delete n[s] : Object.defineProperty(n, s, {
value: a,
writable: !0,
enumerable: !0,
configurable: !0
});
}
return r.call(e, t, n);
}
i(a0, "internalize");
var Re, je, vo, Ln, Ke;
function Yue() {
for (Re = "default", je = "", vo = !1, Ln = 1; ; ) {
Ke = Rn();
let e = yC[Re]();
if (e)
return e;
}
}
i(Yue, "lex");
function Rn() {
if (i0[cc])
return String.fromCodePoint(i0.codePointAt(cc));
}
i(Rn, "peek");
function H() {
let e = Rn();
return e === `
` ? (gs++, zr = 0) : e ? zr += e.length : zr++, e && (cc += e.length), e;
}
i(H, "read");
var yC = {
default() {
switch (Ke) {
case " ":
case "\v":
case "\f":
case " ":
case "\xA0":
case "\uFEFF":
case `
`:
case "\r":
case "\u2028":
case "\u2029":
H();
return;
case "/":
H(), Re = "comment";
return;
case void 0:
return H(), ht("eof");
}
if (Mt.isSpaceSeparator(Ke)) {
H();
return;
}
return yC[pr]();
},
comment() {
switch (Ke) {
case "*":
H(), Re = "multiLineComment";
return;
case "/":
H(), Re = "singleLineComment";
return;
}
throw mt(H());
},
multiLineComment() {
switch (Ke) {
case "*":
H(), Re = "multiLineCommentAsterisk";
return;
case void 0:
throw mt(H());
}
H();
},
multiLineCommentAsterisk() {
switch (Ke) {
case "*":
H();
return;
case "/":
H(), Re = "default";
return;
case void 0:
throw mt(H());
}
H(), Re = "multiLineComment";
},
singleLineComment() {
switch (Ke) {
case `
`:
case "\r":
case "\u2028":
case "\u2029":
H(), Re = "default";
return;
case void 0:
return H(), ht("eof");
}
H();
},
value() {
switch (Ke) {
case "{":
case "[":
return ht("punctuator", H());
case "n":
return H(), si("ull"), ht("null", null);
case "t":
return H(), si("rue"), ht("boolean", !0);
case "f":
return H(), si("alse"), ht("boolean", !1);
case "-":
case "+":
H() === "-" && (Ln = -1), Re = "sign";
return;
case ".":
je = H(), Re = "decimalPointLeading";
return;
case "0":
je = H(), Re = "zero";
return;
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
je = H(), Re = "decimalInteger";
return;
case "I":
return H(), si("nfinity"), ht("numeric", 1 / 0);
case "N":
return H(), si("aN"), ht("numeric", NaN);
case '"':
case "'":
vo = H() === '"', je = "", Re = "string";
return;
}
throw mt(H());
},
identifierNameStartEscape() {
if (Ke !== "u")
throw mt(H());
H();
let e = o0();
switch (e) {
case "$":
case "_":
break;
default:
if (!Mt.isIdStartChar(e))
throw mC();
break;
}
je += e, Re = "identifierName";
},
identifierName() {
switch (Ke) {
case "$":
case "_":
case "\u200C":
case "\u200D":
je += H();
return;
case "\\":
H(), Re = "identifierNameEscape";
return;
}
if (Mt.isIdContinueChar(Ke)) {
je += H();
return;
}
return ht("identifier", je);
},
identifierNameEscape() {
if (Ke !== "u")
throw mt(H());
H();
let e = o0();
switch (e) {
case "$":
case "_":
case "\u200C":
case "\u200D":
break;
default:
if (!Mt.isIdContinueChar(e))
throw mC();
break;
}
je += e, Re = "identifierName";
},
sign() {
switch (Ke) {
case ".":
je = H(), Re = "decimalPointLeading";
return;
case "0":
je = H(), Re = "zero";
return;
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
je = H(), Re = "decimalInteger";
return;
case "I":
return H(), si("nfinity"), ht("numeric", Ln * (1 / 0));
case "N":
return H(), si("aN"), ht("numeric", NaN);
}
throw mt(H());
},
zero() {
switch (Ke) {
case ".":
je += H(), Re = "decimalPoint";
return;
case "e":
case "E":
je += H(), Re = "decimalExponent";
return;
case "x":
case "X":
je += H(), Re = "hexadecimal";
return;
}
return ht("numeric", Ln * 0);
},
decimalInteger() {
switch (Ke) {
case ".":
je += H(), Re = "decimalPoint";
return;
case "e":
case "E":
je += H(), Re = "decimalExponent";
return;
}
if (Mt.isDigit(Ke)) {
je += H();
return;
}
return ht("numeric", Ln * Number(je));
},
decimalPointLeading() {
if (Mt.isDigit(Ke)) {
je += H(), Re = "decimalFraction";
return;
}
throw mt(H());
},
decimalPoint() {
switch (Ke) {
case "e":
case "E":
je += H(), Re = "decimalExponent";
return;
}
if (Mt.isDigit(Ke)) {
je += H(), Re = "decimalFraction";
return;
}
return ht("numeric", Ln * Number(je));
},
decimalFraction() {
switch (Ke) {
case "e":
case "E":
je += H(), Re = "decimalExponent";
return;
}
if (Mt.isDigit(Ke)) {
je += H();
return;
}
return ht("numeric", Ln * Number(je));
},
decimalExponent() {
switch (Ke) {
case "+":
case "-":
je += H(), Re = "decimalExponentSign";
return;
}
if (Mt.isDigit(Ke)) {
je += H(), Re = "decimalExponentInteger";
return;
}
throw mt(H());
},
decimalExponentSign() {
if (Mt.isDigit(Ke)) {
je += H(), Re = "decimalExponentInteger";
return;
}
throw mt(H());
},
decimalExponentInteger() {
if (Mt.isDigit(Ke)) {
je += H();
return;
}
return ht("numeric", Ln * Number(je));
},
hexadecimal() {
if (Mt.isHexDigit(Ke)) {
je += H(), Re = "hexadecimalInteger";
return;
}
throw mt(H());
},
hexadecimalInteger() {
if (Mt.isHexDigit(Ke)) {
je += H();
return;
}
return ht("numeric", Ln * Number(je));
},
string() {
switch (Ke) {
case "\\":
H(), je += Jue();
return;
case '"':
if (vo)
return H(), ht("string", je);
je += H();
return;
case "'":
if (!vo)
return H(), ht("string", je);
je += H();
return;
case `
`:
case "\r":
throw mt(H());
case "\u2028":
case "\u2029":
Que(Ke);
break;
case void 0:
throw mt(H());
}
je += H();
},
start() {
switch (Ke) {
case "{":
case "[":
return ht("punctuator", H());
}
Re = "value";
},
beforePropertyName() {
switch (Ke) {
case "$":
case "_":
je = H(), Re = "identifierName";
return;
case "\\":
H(), Re = "identifierNameStartEscape";
return;
case "}":
return ht("punctuator", H());
case '"':
case "'":
vo = H() === '"', Re = "string";
return;
}
if (Mt.isIdStartChar(Ke)) {
je += H(), Re = "identifierName";
return;
}
throw mt(H());
},
afterPropertyName() {
if (Ke === ":")
return ht("punctuator", H());
throw mt(H());
},
beforePropertyValue() {
Re = "value";
},
afterPropertyValue() {
switch (Ke) {
case ",":
case "}":
return ht("punctuator", H());
}
throw mt(H());
},
beforeArrayValue() {
if (Ke === "]")
return ht("punctuator", H());
Re = "value";
},
afterArrayValue() {
switch (Ke) {
case ",":
case "]":
return ht("punctuator", H());
}
throw mt(H());
},
end() {
throw mt(H());
}
};
function ht(e, t) {
return {
type: e,
value: t,
line: gs,
column: zr
};
}
i(ht, "newToken");
function si(e) {
for (let t of e) {
if (Rn() !== t)
throw mt(H());
H();
}
}
i(si, "literal");
function Jue() {
switch (Rn()) {
case "b":
return H(), "\b";
case "f":
return H(), "\f";
case "n":
return H(), `
`;
case "r":
return H(), "\r";
case "t":
return H(), " ";
case "v":
return H(), "\v";
case "0":
if (H(), Mt.isDigit(Rn()))
throw mt(H());
return "\0";
case "x":
return H(), Xue();
case "u":
return H(), o0();
case `
`:
case "\u2028":
case "\u2029":
return H(), "";
case "\r":
return H(), Rn() === `
` && H(), "";
case "1":
case "2":
case "3":
case "4":
case "5":
case "6":
case "7":
case "8":
case "9":
throw mt(H());
case void 0:
throw mt(H());
}
return H();
}
i(Jue, "escape");
function Xue() {
let e = "", t = Rn();
if (!Mt.isHexDigit(t) || (e += H(), t = Rn(), !Mt.isHexDigit(t)))
throw mt(H());
return e += H(), String.fromCodePoint(parseInt(e, 16));
}
i(Xue, "hexEscape");
function o0() {
let e = "", t = 4;
for (; t-- > 0; ) {
let r = Rn();
if (!Mt.isHexDigit(r))
throw mt(H());
e += H();
}
return String.fromCodePoint(parseInt(e, 16));
}
i(o0, "unicodeEscape");
var zue = {
start() {
if (Rt.type === "eof")
throw ii();
s0();
},
beforePropertyName() {
switch (Rt.type) {
case "identifier":
case "string":
l0 = Rt.value, pr = "afterPropertyName";
return;
case "punctuator":
uc();
return;
case "eof":
throw ii();
}
},
afterPropertyName() {
if (Rt.type === "eof")
throw ii();
pr = "beforePropertyValue";
},
beforePropertyValue() {
if (Rt.type === "eof")
throw ii();
s0();
},
beforeArrayValue() {
if (Rt.type === "eof")
throw ii();
if (Rt.type === "punctuator" && Rt.value === "]") {
uc();
return;
}
s0();
},
afterPropertyValue() {
if (Rt.type === "eof")
throw ii();
switch (Rt.value) {
case ",":
pr = "beforePropertyName";
return;
case "}":
uc();
}
},
afterArrayValue() {
if (Rt.type === "eof")
throw ii();
switch (Rt.value) {
case ",":
pr = "beforeArrayValue";
return;
case "]":
uc();
}
},
end() {
}
};
function s0() {
let e;
switch (Rt.type) {
case "punctuator":
switch (Rt.value) {
case "{":
e = {};
break;
case "[":
e = [];
break;
}
break;
case "null":
case "boolean":
case "numeric":
case "string":
e = Rt.value;
break;
}
if (Po === void 0)
Po = e;
else {
let t = Mn[Mn.length - 1];
Array.isArray(t) ? t.push(e) : Object.defineProperty(t, l0, {
value: e,
writable: !0,
enumerable: !0,
configurable: !0
});
}
if (e !== null && typeof e == "object")
Mn.push(e), Array.isArray(e) ? pr = "beforeArrayValue" : pr = "beforePropertyName";
else {
let t = Mn[Mn.length - 1];
t == null ? pr = "end" : Array.isArray(t) ? pr = "afterArrayValue" : pr = "afterPropertyValue";
}
}
i(s0, "push");
function uc() {
Mn.pop();
let e = Mn[Mn.length - 1];
e == null ? pr = "end" : Array.isArray(e) ? pr = "afterArrayValue" : pr = "afterPropertyValue";
}
i(uc, "pop");
function mt(e) {
return pc(e === void 0 ? `JSON5: invalid end of input at ${gs}:${zr}` : `JSON5: invalid character '${gC(e)}' at ${gs}:${zr}`);
}
i(mt, "invalidChar");
function ii() {
return pc(`JSON5: invalid end of input at ${gs}:${zr}`);
}
i(ii, "invalidEOF");
function mC() {
return zr -= 5, pc(`JSON5: invalid identifier character at ${gs}:${zr}`);
}
i(mC, "invalidIdentifier");
function Que(e) {
console.warn(`JSON5: '${gC(e)}' in strings is not valid ECMAScript; consider escaping`);
}
i(Que, "separatorChar");
function gC(e) {
let t = {
"'": "\\'",
'"': '\\"',
"\\": "\\\\",
"\b": "\\b",
"\f": "\\f",
"\n": "\\n",
"\r": "\\r",
" ": "\\t",
"\v": "\\v",
"\0": "\\0",
"\u2028": "\\u2028",
"\u2029": "\\u2029"
};
if (t[e])
return t[e];
if (e < " ") {
let r = e.charCodeAt(0).toString(16);
return "\\x" + ("00" + r).substring(r.length);
}
return e;
}
i(gC, "formatChar");
function pc(e) {
let t = new SyntaxError(e);
return t.lineNumber = gs, t.columnNumber = zr, t;
}
i(pc, "syntaxError");
});
// ../node_modules/json5/lib/stringify.js
var SC = P((ZAe, TC) => {
var u0 = n0();
TC.exports = /* @__PURE__ */ i(function(t, r, n) {
let s = [], a = "", o, l, u = "", c;
if (r != null && typeof r == "object" && !Array.isArray(r) && (n = r.space, c = r.quote, r = r.replacer), typeof r == "function")
l = r;
else if (Array.isArray(r)) {
o = [];
for (let d of r) {
let g;
typeof d == "string" ? g = d : (typeof d == "number" || d instanceof String || d instanceof Number) && (g = String(d)), g !== void 0 &&
o.indexOf(g) < 0 && o.push(g);
}
}
return n instanceof Number ? n = Number(n) : n instanceof String && (n = String(n)), typeof n == "number" ? n > 0 && (n = Math.min(10, Math.
floor(n)), u = " ".substr(0, n)) : typeof n == "string" && (u = n.substr(0, 10)), p("", { "": t });
function p(d, g) {
let C = g[d];
switch (C != null && (typeof C.toJSON5 == "function" ? C = C.toJSON5(d) : typeof C.toJSON == "function" && (C = C.toJSON(d))), l && (C =
l.call(g, d, C)), C instanceof Number ? C = Number(C) : C instanceof String ? C = String(C) : C instanceof Boolean && (C = C.valueOf()),
C) {
case null:
return "null";
case !0:
return "true";
case !1:
return "false";
}
if (typeof C == "string")
return f(C, !1);
if (typeof C == "number")
return String(C);
if (typeof C == "object")
return Array.isArray(C) ? E(C) : h(C);
}
i(p, "serializeProperty");
function f(d) {
let g = {
"'": 0.1,
'"': 0.2
}, C = {
"'": "\\'",
'"': '\\"',
"\\": "\\\\",
"\b": "\\b",
"\f": "\\f",
"\n": "\\n",
"\r": "\\r",
" ": "\\t",
"\v": "\\v",
"\0": "\\0",
"\u2028": "\\u2028",
"\u2029": "\\u2029"
}, _ = "";
for (let B = 0; B < d.length; B++) {
let R = d[B];
switch (R) {
case "'":
case '"':
g[R]++, _ += R;
continue;
case "\0":
if (u0.isDigit(d[B + 1])) {
_ += "\\x00";
continue;
}
}
if (C[R]) {
_ += C[R];
continue;
}
if (R < " ") {
let $ = R.charCodeAt(0).toString(16);
_ += "\\x" + ("00" + $).substring($.length);
continue;
}
_ += R;
}
let O = c || Object.keys(g).reduce((B, R) => g[B] < g[R] ? B : R);
return _ = _.replace(new RegExp(O, "g"), C[O]), O + _ + O;
}
i(f, "quoteString");
function h(d) {
if (s.indexOf(d) >= 0)
throw TypeError("Converting circular structure to JSON5");
s.push(d);
let g = a;
a = a + u;
let C = o || Object.keys(d), _ = [];
for (let B of C) {
let R = p(B, d);
if (R !== void 0) {
let $ = y(B) + ":";
u !== "" && ($ += " "), $ += R, _.push($);
}
}
let O;
if (_.length === 0)
O = "{}";
else {
let B;
if (u === "")
B = _.join(","), O = "{" + B + "}";
else {
let R = `,
` + a;
B = _.join(R), O = `{
` + a + B + `,
` + g + "}";
}
}
return s.pop(), a = g, O;
}
i(h, "serializeObject");
function y(d) {
if (d.length === 0)
return f(d, !0);
let g = String.fromCodePoint(d.codePointAt(0));
if (!u0.isIdStartChar(g))
return f(d, !0);
for (let C = g.length; C < d.length; C++)
if (!u0.isIdContinueChar(String.fromCodePoint(d.codePointAt(C))))
return f(d, !0);
return d;
}
i(y, "serializeKey");
function E(d) {
if (s.indexOf(d) >= 0)
throw TypeError("Converting circular structure to JSON5");
s.push(d);
let g = a;
a = a + u;
let C = [];
for (let O = 0; O < d.length; O++) {
let B = p(String(O), d);
C.push(B !== void 0 ? B : "null");
}
let _;
if (C.length === 0)
_ = "[]";
else if (u === "")
_ = "[" + C.join(",") + "]";
else {
let O = `,
` + a, B = C.join(O);
_ = `[
` + a + B + `,
` + g + "]";
}
return s.pop(), a = g, _;
}
i(E, "serializeArray");
}, "stringify");
});
// ../node_modules/json5/lib/index.js
var vC = P((tCe, xC) => {
var Zue = EC(), ece = SC(), tce = {
parse: Zue,
stringify: ece
};
xC.exports = tce;
});
// ../node_modules/@babel/core/lib/config/helpers/config-api.js
var c0 = P((Ao) => {
"use strict";
Object.defineProperty(Ao, "__esModule", {
value: !0
});
Ao.makeConfigAPI = CC;
Ao.makePluginAPI = rce;
Ao.makePresetAPI = DC;
function AC() {
let e = ce("semver");
return AC = /* @__PURE__ */ i(function() {
return e;
}, "_semver"), e;
}
i(AC, "_semver");
var fc = Pt(), PC = ri();
function CC(e) {
let t = /* @__PURE__ */ i((n) => e.using((s) => n === void 0 ? s.envName : typeof n == "function" ? (0, PC.assertSimpleType)(n(s.envName)) :
(Array.isArray(n) ? n : [n]).some((a) => {
if (typeof a != "string")
throw new Error("Unexpected non-string value");
return a === s.envName;
})), "env"), r = /* @__PURE__ */ i((n) => e.using((s) => (0, PC.assertSimpleType)(n(s.caller))), "caller");
return {
version: fc.version,
cache: e.simple(),
env: t,
async: /* @__PURE__ */ i(() => !1, "async"),
caller: r,
assertVersion: nce
};
}
i(CC, "makeConfigAPI");
function DC(e, t) {
let r = /* @__PURE__ */ i(() => JSON.parse(e.using((s) => JSON.stringify(s.targets))), "targets"), n = /* @__PURE__ */ i((s) => {
t.push(s);
}, "addExternalDependency");
return Object.assign({}, CC(e), {
targets: r,
addExternalDependency: n
});
}
i(DC, "makePresetAPI");
function rce(e, t) {
let r = /* @__PURE__ */ i((n) => e.using((s) => s.assumptions[n]), "assumption");
return Object.assign({}, DC(e, t), {
assumption: r
});
}
i(rce, "makePluginAPI");
function nce(e) {
if (typeof e == "number") {
if (!Number.isInteger(e))
throw new Error("Expected string or integer value.");
e = `^${e}.0.0-0`;
}
if (typeof e != "string")
throw new Error("Expected string or integer value.");
if (e === "*" || AC().satisfies(fc.version, e)) return;
let t = Error.stackTraceLimit;
typeof t == "number" && t < 25 && (Error.stackTraceLimit = 25);
let r = new Error(`Requires Babel "${e}", but was loaded with "${fc.version}". If you are sure you have a compatible version of @babel/c\
ore, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the f\
irst entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`);
throw typeof t == "number" && (Error.stackTraceLimit = t), Object.assign(r, {
code: "BABEL_VERSION_UNSUPPORTED",
version: fc.version,
range: e
});
}
i(nce, "assertVersion");
});
// ../node_modules/@babel/core/lib/config/helpers/deep-array.js
var hc = P((dc) => {
"use strict";
Object.defineProperty(dc, "__esModule", {
value: !0
});
dc.finalize = sce;
dc.flattenToSet = ice;
function sce(e) {
return Object.freeze(e);
}
i(sce, "finalize");
function ice(e) {
let t = /* @__PURE__ */ new Set(), r = [e];
for (; r.length > 0; )
for (let n of r.pop())
Array.isArray(n) ? r.push(n) : t.add(n);
return t;
}
i(ice, "flattenToSet");
});
// ../node_modules/@babel/core/lib/config/plugin.js
var yc = P((mc) => {
"use strict";
Object.defineProperty(mc, "__esModule", {
value: !0
});
mc.default = void 0;
var ace = hc(), p0 = class {
static {
i(this, "Plugin");
}
constructor(t, r, n, s = (0, ace.finalize)([])) {
this.key = void 0, this.manipulateOptions = void 0, this.post = void 0, this.pre = void 0, this.visitor = void 0, this.parserOverride =
void 0, this.generatorOverride = void 0, this.options = void 0, this.externalDependencies = void 0, this.key = t.name || n, this.manipulateOptions =
t.manipulateOptions, this.post = t.post, this.pre = t.pre, this.visitor = t.visitor || {}, this.parserOverride = t.parserOverride, this.
generatorOverride = t.generatorOverride, this.options = r, this.externalDependencies = s;
}
};
mc.default = p0;
});
// ../node_modules/@babel/core/lib/gensync-utils/functional.js
var IC = P((f0) => {
"use strict";
Object.defineProperty(f0, "__esModule", {
value: !0
});
f0.once = oce;
var wC = ys();
function oce(e) {
let t, r, n = !1;
return function* () {
if (!t) {
if (r)
return n = !0, yield* (0, wC.waitFor)(r);
if (yield* (0, wC.isAsync)()) {
let s, a;
r = new Promise((o, l) => {
s = o, a = l;
});
try {
t = {
ok: !0,
value: yield* e()
}, r = null, n && s(t.value);
} catch (o) {
t = {
ok: !1,
value: o
}, r = null, n && a(o);
}
} else
try {
t = {
ok: !0,
value: yield* e()
};
} catch (s) {
t = {
ok: !1,
value: s
};
}
}
if (t.ok) return t.value;
throw t.value;
};
}
i(oce, "once");
});
// ../node_modules/node-releases/data/processed/envs.json
var _C = P((cCe, lce) => {
lce.exports = [{ name: "nodejs", version: "0.2.0", date: "2011-08-26", lts: !1, security: !1, v8: "2.3.8.0" }, { name: "nodejs", version: "\
0.3.0", date: "2011-08-26", lts: !1, security: !1, v8: "2.5.1.0" }, { name: "nodejs", version: "0.4.0", date: "2011-08-26", lts: !1, security: !1,
v8: "3.1.2.0" }, { name: "nodejs", version: "0.5.0", date: "2011-08-26", lts: !1, security: !1, v8: "3.1.8.25" }, { name: "nodejs", version: "\
0.6.0", date: "2011-11-04", lts: !1, security: !1, v8: "3.6.6.6" }, { name: "nodejs", version: "0.7.0", date: "2012-01-17", lts: !1, security: !1,
v8: "3.8.6.0" }, { name: "nodejs", version: "0.8.0", date: "2012-06-22", lts: !1, security: !1, v8: "3.11.10.10" }, { name: "nodejs", version: "\
0.9.0", date: "2012-07-20", lts: !1, security: !1, v8: "3.11.10.15" }, { name: "nodejs", version: "0.10.0", date: "2013-03-11", lts: !1, security: !1,
v8: "3.14.5.8" }, { name: "nodejs", version: "0.11.0", date: "2013-03-28", lts: !1, security: !1, v8: "3.17.13.0" }, { name: "nodejs", version: "\
0.12.0", date: "2015-02-06", lts: !1, security: !1, v8: "3.28.73.0" }, { name: "nodejs", version: "4.0.0", date: "2015-09-08", lts: !1, security: !1,
v8: "4.5.103.30" }, { name: "nodejs", version: "4.1.0", date: "2015-09-17", lts: !1, security: !1, v8: "4.5.103.33" }, { name: "nodejs", version: "\
4.2.0", date: "2015-10-12", lts: "Argon", security: !1, v8: "4.5.103.35" }, { name: "nodejs", version: "4.3.0", date: "2016-02-09", lts: "Ar\
gon", security: !1, v8: "4.5.103.35" }, { name: "nodejs", version: "4.4.0", date: "2016-03-08", lts: "Argon", security: !1, v8: "4.5.103.35" },
{ name: "nodejs", version: "4.5.0", date: "2016-08-16", lts: "Argon", security: !1, v8: "4.5.103.37" }, { name: "nodejs", version: "4.6.0",
date: "2016-09-27", lts: "Argon", security: !0, v8: "4.5.103.37" }, { name: "nodejs", version: "4.7.0", date: "2016-12-06", lts: "Argon", security: !1,
v8: "4.5.103.43" }, { name: "nodejs", version: "4.8.0", date: "2017-02-21", lts: "Argon", security: !1, v8: "4.5.103.45" }, { name: "nodej\
s", version: "4.9.0", date: "2018-03-28", lts: "Argon", security: !0, v8: "4.5.103.53" }, { name: "nodejs", version: "5.0.0", date: "2015-10\
-29", lts: !1, security: !1, v8: "4.6.85.28" }, { name: "nodejs", version: "5.1.0", date: "2015-11-17", lts: !1, security: !1, v8: "4.6.85.3\
1" }, { name: "nodejs", version: "5.2.0", date: "2015-12-09", lts: !1, security: !1, v8: "4.6.85.31" }, { name: "nodejs", version: "5.3.0", date: "\
2015-12-15", lts: !1, security: !1, v8: "4.6.85.31" }, { name: "nodejs", version: "5.4.0", date: "2016-01-06", lts: !1, security: !1, v8: "4\
.6.85.31" }, { name: "nodejs", version: "5.5.0", date: "2016-01-21", lts: !1, security: !1, v8: "4.6.85.31" }, { name: "nodejs", version: "5\
.6.0", date: "2016-02-09", lts: !1, security: !1, v8: "4.6.85.31" }, { name: "nodejs", version: "5.7.0", date: "2016-02-23", lts: !1, security: !1,
v8: "4.6.85.31" }, { name: "nodejs", version: "5.8.0", date: "2016-03-09", lts: !1, security: !1, v8: "4.6.85.31" }, { name: "nodejs", version: "\
5.9.0", date: "2016-03-16", lts: !1, security: !1, v8: "4.6.85.31" }, { name: "nodejs", version: "5.10.0", date: "2016-04-01", lts: !1, security: !1,
v8: "4.6.85.31" }, { name: "nodejs", version: "5.11.0", date: "2016-04-21", lts: !1, security: !1, v8: "4.6.85.31" }, { name: "nodejs", version: "\
5.12.0", date: "2016-06-23", lts: !1, security: !1, v8: "4.6.85.32" }, { name: "nodejs", version: "6.0.0", date: "2016-04-26", lts: !1, security: !1,
v8: "5.0.71.35" }, { name: "nodejs", version: "6.1.0", date: "2016-05-05", lts: !1, security: !1, v8: "5.0.71.35" }, { name: "nodejs", version: "\
6.2.0", date: "2016-05-17", lts: !1, security: !1, v8: "5.0.71.47" }, { name: "nodejs", version: "6.3.0", date: "2016-07-06", lts: !1, security: !1,
v8: "5.0.71.52" }, { name: "nodejs", version: "6.4.0", date: "2016-08-12", lts: !1, security: !1, v8: "5.0.71.60" }, { name: "nodejs", version: "\
6.5.0", date: "2016-08-26", lts: !1, security: !1, v8: "5.1.281.81" }, { name: "nodejs", version: "6.6.0", date: "2016-09-14", lts: !1, security: !1,
v8: "5.1.281.83" }, { name: "nodejs", version: "6.7.0", date: "2016-09-27", lts: !1, security: !0, v8: "5.1.281.83" }, { name: "nodejs", version: "\
6.8.0", date: "2016-10-12", lts: !1, security: !1, v8: "5.1.281.84" }, { name: "nodejs", version: "6.9.0", date: "2016-10-18", lts: "Boron",
security: !1, v8: "5.1.281.84" }, { name: "nodejs", version: "6.10.0", date: "2017-02-21", lts: "Boron", security: !1, v8: "5.1.281.93" },
{ name: "nodejs", version: "6.11.0", date: "2017-06-06", lts: "Boron", security: !1, v8: "5.1.281.102" }, { name: "nodejs", version: "6.12\
.0", date: "2017-11-06", lts: "Boron", security: !1, v8: "5.1.281.108" }, { name: "nodejs", version: "6.13.0", date: "2018-02-10", lts: "Bor\
on", security: !1, v8: "5.1.281.111" }, { name: "nodejs", version: "6.14.0", date: "2018-03-28", lts: "Boron", security: !0, v8: "5.1.281.11\
1" }, { name: "nodejs", version: "6.15.0", date: "2018-11-27", lts: "Boron", security: !0, v8: "5.1.281.111" }, { name: "nodejs", version: "\
6.16.0", date: "2018-12-26", lts: "Boron", security: !1, v8: "5.1.281.111" }, { name: "nodejs", version: "6.17.0", date: "2019-02-28", lts: "\
Boron", security: !0, v8: "5.1.281.111" }, { name: "nodejs", version: "7.0.0", date: "2016-10-25", lts: !1, security: !1, v8: "5.4.500.36" },
{ name: "nodejs", version: "7.1.0", date: "2016-11-08", lts: !1, security: !1, v8: "5.4.500.36" }, { name: "nodejs", version: "7.2.0", date: "\
2016-11-22", lts: !1, security: !1, v8: "5.4.500.43" }, { name: "nodejs", version: "7.3.0", date: "2016-12-20", lts: !1, security: !1, v8: "\
5.4.500.45" }, { name: "nodejs", version: "7.4.0", date: "2017-01-04", lts: !1, security: !1, v8: "5.4.500.45" }, { name: "nodejs", version: "\
7.5.0", date: "2017-01-31", lts: !1, security: !1, v8: "5.4.500.48" }, { name: "nodejs", version: "7.6.0", date: "2017-02-21", lts: !1, security: !1,
v8: "5.5.372.40" }, { name: "nodejs", version: "7.7.0", date: "2017-02-28", lts: !1, security: !1, v8: "5.5.372.41" }, { name: "nodejs", version: "\
7.8.0", date: "2017-03-29", lts: !1, security: !1, v8: "5.5.372.43" }, { name: "nodejs", version: "7.9.0", date: "2017-04-11", lts: !1, security: !1,
v8: "5.5.372.43" }, { name: "nodejs", version: "7.10.0", date: "2017-05-02", lts: !1, security: !1, v8: "5.5.372.43" }, { name: "nodejs", version: "\
8.0.0", date: "2017-05-30", lts: !1, security: !1, v8: "5.8.283.41" }, { name: "nodejs", version: "8.1.0", date: "2017-06-08", lts: !1, security: !1,
v8: "5.8.283.41" }, { name: "nodejs", version: "8.2.0", date: "2017-07-19", lts: !1, security: !1, v8: "5.8.283.41" }, { name: "nodejs", version: "\
8.3.0", date: "2017-08-08", lts: !1, security: !1, v8: "6.0.286.52" }, { name: "nodejs", version: "8.4.0", date: "2017-08-15", lts: !1, security: !1,
v8: "6.0.286.52" }, { name: "nodejs", version: "8.5.0", date: "2017-09-12", lts: !1, security: !1, v8: "6.0.287.53" }, { name: "nodejs", version: "\
8.6.0", date: "2017-09-26", lts: !1, security: !1, v8: "6.0.287.53" }, { name: "nodejs", version: "8.7.0", date: "2017-10-11", lts: !1, security: !1,
v8: "6.1.534.42" }, { name: "nodejs", version: "8.8.0", date: "2017-10-24", lts: !1, security: !1, v8: "6.1.534.42" }, { name: "nodejs", version: "\
8.9.0", date: "2017-10-31", lts: "Carbon", security: !1, v8: "6.1.534.46" }, { name: "nodejs", version: "8.10.0", date: "2018-03-06", lts: "\
Carbon", security: !1, v8: "6.2.414.50" }, { name: "nodejs", version: "8.11.0", date: "2018-03-28", lts: "Carbon", security: !0, v8: "6.2.41\
4.50" }, { name: "nodejs", version: "8.12.0", date: "2018-09-10", lts: "Carbon", security: !1, v8: "6.2.414.66" }, { name: "nodejs", version: "\
8.13.0", date: "2018-11-20", lts: "Carbon", security: !1, v8: "6.2.414.72" }, { name: "nodejs", version: "8.14.0", date: "2018-11-27", lts: "\
Carbon", security: !0, v8: "6.2.414.72" }, { name: "nodejs", version: "8.15.0", date: "2018-12-26", lts: "Carbon", security: !1, v8: "6.2.41\
4.75" }, { name: "nodejs", version: "8.16.0", date: "2019-04-16", lts: "Carbon", security: !1, v8: "6.2.414.77" }, { name: "nodejs", version: "\
8.17.0", date: "2019-12-17", lts: "Carbon", security: !0, v8: "6.2.414.78" }, { name: "nodejs", version: "9.0.0", date: "2017-10-31", lts: !1,
security: !1, v8: "6.2.414.32" }, { name: "nodejs", version: "9.1.0", date: "2017-11-07", lts: !1, security: !1, v8: "6.2.414.32" }, { name: "\
nodejs", version: "9.2.0", date: "2017-11-14", lts: !1, security: !1, v8: "6.2.414.44" }, { name: "nodejs", version: "9.3.0", date: "2017-12\
-12", lts: !1, security: !1, v8: "6.2.414.46" }, { name: "nodejs", version: "9.4.0", date: "2018-01-10", lts: !1, security: !1, v8: "6.2.414\
.46" }, { name: "nodejs", version: "9.5.0", date: "2018-01-31", lts: !1, security: !1, v8: "6.2.414.46" }, { name: "nodejs", version: "9.6.0",
date: "2018-02-21", lts: !1, security: !1, v8: "6.2.414.46" }, { name: "nodejs", version: "9.7.0", date: "2018-03-01", lts: !1, security: !1,
v8: "6.2.414.46" }, { name: "nodejs", version: "9.8.0", date: "2018-03-07", lts: !1, security: !1, v8: "6.2.414.46" }, { name: "nodejs", version: "\
9.9.0", date: "2018-03-21", lts: !1, security: !1, v8: "6.2.414.46" }, { name: "nodejs", version: "9.10.0", date: "2018-03-28", lts: !1, security: !0,
v8: "6.2.414.46" }, { name: "nodejs", version: "9.11.0", date: "2018-04-04", lts: !1, security: !1, v8: "6.2.414.46" }, { name: "nodejs", version: "\
10.0.0", date: "2018-04-24", lts: !1, security: !1, v8: "6.6.346.24" }, { name: "nodejs", version: "10.1.0", date: "2018-05-08", lts: !1, security: !1,
v8: "6.6.346.27" }, { name: "nodejs", version: "10.2.0", date: "2018-05-23", lts: !1, security: !1, v8: "6.6.346.32" }, { name: "nodejs", version: "\
10.3.0", date: "2018-05-29", lts: !1, security: !1, v8: "6.6.346.32" }, { name: "nodejs", version: "10.4.0", date: "2018-06-06", lts: !1, security: !1,
v8: "6.7.288.43" }, { name: "nodejs", version: "10.5.0", date: "2018-06-20", lts: !1, security: !1, v8: "6.7.288.46" }, { name: "nodejs", version: "\
10.6.0", date: "2018-07-04", lts: !1, security: !1, v8: "6.7.288.46" }, { name: "nodejs", version: "10.7.0", date: "2018-07-18", lts: !1, security: !1,
v8: "6.7.288.49" }, { name: "nodejs", version: "10.8.0", date: "2018-08-01", lts: !1, security: !1, v8: "6.7.288.49" }, { name: "nodejs", version: "\
10.9.0", date: "2018-08-15", lts: !1, security: !1, v8: "6.8.275.24" }, { name: "nodejs", version: "10.10.0", date: "2018-09-06", lts: !1, security: !1,
v8: "6.8.275.30" }, { name: "nodejs", version: "10.11.0", date: "2018-09-19", lts: !1, security: !1, v8: "6.8.275.32" }, { name: "nodejs",
version: "10.12.0", date: "2018-10-10", lts: !1, security: !1, v8: "6.8.275.32" }, { name: "nodejs", version: "10.13.0", date: "2018-10-30",
lts: "Dubnium", security: !1, v8: "6.8.275.32" }, { name: "nodejs", version: "10.14.0", date: "2018-11-27", lts: "Dubnium", security: !0, v8: "\
6.8.275.32" }, { name: "nodejs", version: "10.15.0", date: "2018-12-26", lts: "Dubnium", security: !1, v8: "6.8.275.32" }, { name: "nodejs",
version: "10.16.0", date: "2019-05-28", lts: "Dubnium", security: !1, v8: "6.8.275.32" }, { name: "nodejs", version: "10.17.0", date: "201\
9-10-22", lts: "Dubnium", security: !1, v8: "6.8.275.32" }, { name: "nodejs", version: "10.18.0", date: "2019-12-17", lts: "Dubnium", security: !0,
v8: "6.8.275.32" }, { name: "nodejs", version: "10.19.0", date: "2020-02-05", lts: "Dubnium", security: !0, v8: "6.8.275.32" }, { name: "n\
odejs", version: "10.20.0", date: "2020-03-26", lts: "Dubnium", security: !1, v8: "6.8.275.32" }, { name: "nodejs", version: "10.21.0", date: "\
2020-06-02", lts: "Dubnium", security: !0, v8: "6.8.275.32" }, { name: "nodejs", version: "10.22.0", date: "2020-07-21", lts: "Dubnium", security: !1,
v8: "6.8.275.32" }, { name: "nodejs", version: "10.23.0", date: "2020-10-27", lts: "Dubnium", security: !1, v8: "6.8.275.32" }, { name: "n\
odejs", version: "10.24.0", date: "2021-02-23", lts: "Dubnium", security: !0, v8: "6.8.275.32" }, { name: "nodejs", version: "11.0.0", date: "\
2018-10-23", lts: !1, security: !1, v8: "7.0.276.28" }, { name: "nodejs", version: "11.1.0", date: "2018-10-30", lts: !1, security: !1, v8: "\
7.0.276.32" }, { name: "nodejs", version: "11.2.0", date: "2018-11-15", lts: !1, security: !1, v8: "7.0.276.38" }, { name: "nodejs", version: "\
11.3.0", date: "2018-11-27", lts: !1, security: !0, v8: "7.0.276.38" }, { name: "nodejs", version: "11.4.0", date: "2018-12-07", lts: !1, security: !1,
v8: "7.0.276.38" }, { name: "nodejs", version: "11.5.0", date: "2018-12-18", lts: !1, security: !1, v8: "7.0.276.38" }, { name: "nodejs", version: "\
11.6.0", date: "2018-12-26", lts: !1, security: !1, v8: "7.0.276.38" }, { name: "nodejs", version: "11.7.0", date: "2019-01-17", lts: !1, security: !1,
v8: "7.0.276.38" }, { name: "nodejs", version: "11.8.0", date: "2019-01-24", lts: !1, security: !1, v8: "7.0.276.38" }, { name: "nodejs", version: "\
11.9.0", date: "2019-01-30", lts: !1, security: !1, v8: "7.0.276.38" }, { name: "nodejs", version: "11.10.0", date: "2019-02-14", lts: !1, security: !1,
v8: "7.0.276.38" }, { name: "nodejs", version: "11.11.0", date: "2019-03-05", lts: !1, security: !1, v8: "7.0.276.38" }, { name: "nodejs",
version: "11.12.0", date: "2019-03-14", lts: !1, security: !1, v8: "7.0.276.38" }, { name: "nodejs", version: "11.13.0", date: "2019-03-28",
lts: !1, security: !1, v8: "7.0.276.38" }, { name: "nodejs", version: "11.14.0", date: "2019-04-10", lts: !1, security: !1, v8: "7.0.276.3\
8" }, { name: "nodejs", version: "11.15.0", date: "2019-04-30", lts: !1, security: !1, v8: "7.0.276.38" }, { name: "nodejs", version: "12.0.\
0", date: "2019-04-23", lts: !1, security: !1, v8: "7.4.288.21" }, { name: "nodejs", version: "12.1.0", date: "2019-04-29", lts: !1, security: !1,
v8: "7.4.288.21" }, { name: "nodejs", version: "12.2.0", date: "2019-05-07", lts: !1, security: !1, v8: "7.4.288.21" }, { name: "nodejs", version: "\
12.3.0", date: "2019-05-21", lts: !1, security: !1, v8: "7.4.288.27" }, { name: "nodejs", version: "12.4.0", date: "2019-06-04", lts: !1, security: !1,
v8: "7.4.288.27" }, { name: "nodejs", version: "12.5.0", date: "2019-06-26", lts: !1, security: !1, v8: "7.5.288.22" }, { name: "nodejs", version: "\
12.6.0", date: "2019-07-03", lts: !1, security: !1, v8: "7.5.288.22" }, { name: "nodejs", version: "12.7.0", date: "2019-07-23", lts: !1, security: !1,
v8: "7.5.288.22" }, { name: "nodejs", version: "12.8.0", date: "2019-08-06", lts: !1, security: !1, v8: "7.5.288.22" }, { name: "nodejs", version: "\
12.9.0", date: "2019-08-20", lts: !1, security: !1, v8: "7.6.303.29" }, { name: "nodejs", version: "12.10.0", date: "2019-09-04", lts: !1, security: !1,
v8: "7.6.303.29" }, { name: "nodejs", version: "12.11.0", date: "2019-09-25", lts: !1, security: !1, v8: "7.7.299.11" }, { name: "nodejs",
version: "12.12.0", date: "2019-10-11", lts: !1, security: !1, v8: "7.7.299.13" }, { name: "nodejs", version: "12.13.0", date: "2019-10-21",
lts: "Erbium", security: !1, v8: "7.7.299.13" }, { name: "nodejs", version: "12.14.0", date: "2019-12-17", lts: "Erbium", security: !0, v8: "\
7.7.299.13" }, { name: "nodejs", version: "12.15.0", date: "2020-02-05", lts: "Erbium", security: !0, v8: "7.7.299.13" }, { name: "nodejs", version: "\
12.16.0", date: "2020-02-11", lts: "Erbium", security: !1, v8: "7.8.279.23" }, { name: "nodejs", version: "12.17.0", date: "2020-05-26", lts: "\
Erbium", security: !1, v8: "7.8.279.23" }, { name: "nodejs", version: "12.18.0", date: "2020-06-02", lts: "Erbium", security: !0, v8: "7.8.2\
79.23" }, { name: "nodejs", version: "12.19.0", date: "2020-10-06", lts: "Erbium", security: !1, v8: "7.8.279.23" }, { name: "nodejs", version: "\
12.20.0", date: "2020-11-24", lts: "Erbium", security: !1, v8: "7.8.279.23" }, { name: "nodejs", version: "12.21.0", date: "2021-02-23", lts: "\
Erbium", security: !0, v8: "7.8.279.23" }, { name: "nodejs", version: "12.22.0", date: "2021-03-30", lts: "Erbium", security: !1, v8: "7.8.2\
79.23" }, { name: "nodejs", version: "13.0.0", date: "2019-10-22", lts: !1, security: !1, v8: "7.8.279.17" }, { name: "nodejs", version: "13\
.1.0", date: "2019-11-05", lts: !1, security: !1, v8: "7.8.279.17" }, { name: "nodejs", version: "13.2.0", date: "2019-11-21", lts: !1, security: !1,
v8: "7.9.317.23" }, { name: "nodejs", version: "13.3.0", date: "2019-12-03", lts: !1, security: !1, v8: "7.9.317.25" }, { name: "nodejs", version: "\
13.4.0", date: "2019-12-17", lts: !1, security: !0, v8: "7.9.317.25" }, { name: "nodejs", version: "13.5.0", date: "2019-12-18", lts: !1, security: !1,
v8: "7.9.317.25" }, { name: "nodejs", version: "13.6.0", date: "2020-01-07", lts: !1, security: !1, v8: "7.9.317.25" }, { name: "nodejs", version: "\
13.7.0", date: "2020-01-21", lts: !1, security: !1, v8: "7.9.317.25" }, { name: "nodejs", version: "13.8.0", date: "2020-02-05", lts: !1, security: !0,
v8: "7.9.317.25" }, { name: "nodejs", version: "13.9.0", date: "2020-02-18", lts: !1, security: !1, v8: "7.9.317.25" }, { name: "nodejs", version: "\
13.10.0", date: "2020-03-04", lts: !1, security: !1, v8: "7.9.317.25" }, { name: "nodejs", version: "13.11.0", date: "2020-03-12", lts: !1, security: !1,
v8: "7.9.317.25" }, { name: "nodejs", version: "13.12.0", date: "2020-03-26", lts: !1, security: !1, v8: "7.9.317.25" }, { name: "nodejs",
version: "13.13.0", date: "2020-04-14", lts: !1, security: !1, v8: "7.9.317.25" }, { name: "nodejs", version: "13.14.0", date: "2020-04-29",
lts: !1, security: !1, v8: "7.9.317.25" }, { name: "nodejs", version: "14.0.0", date: "2020-04-21", lts: !1, security: !1, v8: "8.1.307.30" },
{ name: "nodejs", version: "14.1.0", date: "2020-04-29", lts: !1, security: !1, v8: "8.1.307.31" }, { name: "nodejs", version: "14.2.0", date: "\
2020-05-05", lts: !1, security: !1, v8: "8.1.307.31" }, { name: "nodejs", version: "14.3.0", date: "2020-05-19", lts: !1, security: !1, v8: "\
8.1.307.31" }, { name: "nodejs", version: "14.4.0", date: "2020-06-02", lts: !1, security: !0, v8: "8.1.307.31" }, { name: "nodejs", version: "\
14.5.0", date: "2020-06-30", lts: !1, security: !1, v8: "8.3.110.9" }, { name: "nodejs", version: "14.6.0", date: "2020-07-20", lts: !1, security: !1,
v8: "8.4.371.19" }, { name: "nodejs", version: "14.7.0", date: "2020-07-29", lts: !1, security: !1, v8: "8.4.371.19" }, { name: "nodejs", version: "\
14.8.0", date: "2020-08-11", lts: !1, security: !1, v8: "8.4.371.19" }, { name: "nodejs", version: "14.9.0", date: "2020-08-27", lts: !1, security: !1,
v8: "8.4.371.19" }, { name: "nodejs", version: "14.10.0", date: "2020-09-08", lts: !1, security: !1, v8: "8.4.371.19" }, { name: "nodejs",
version: "14.11.0", date: "2020-09-15", lts: !1, security: !0, v8: "8.4.371.19" }, { name: "nodejs", version: "14.12.0", date: "2020-09-22",
lts: !1, security: !1, v8: "8.4.371.19" }, { name: "nodejs", version: "14.13.0", date: "2020-09-29", lts: !1, security: !1, v8: "8.4.371.1\
9" }, { name: "nodejs", version: "14.14.0", date: "2020-10-15", lts: !1, security: !1, v8: "8.4.371.19" }, { name: "nodejs", version: "14.15\
.0", date: "2020-10-27", lts: "Fermium", security: !1, v8: "8.4.371.19" }, { name: "nodejs", version: "14.16.0", date: "2021-02-23", lts: "F\
ermium", security: !0, v8: "8.4.371.19" }, { name: "nodejs", version: "14.17.0", date: "2021-05-11", lts: "Fermium", security: !1, v8: "8.4.\
371.23" }, { name: "nodejs", version: "14.18.0", date: "2021-09-28", lts: "Fermium", security: !1, v8: "8.4.371.23" }, { name: "nodejs", version: "\
14.19.0", date: "2022-02-01", lts: "Fermium", security: !1, v8: "8.4.371.23" }, { name: "nodejs", version: "14.20.0", date: "2022-07-07", lts: "\
Fermium", security: !0, v8: "8.4.371.23" }, { name: "nodejs", version: "14.21.0", date: "2022-11-01", lts: "Fermium", security: !1, v8: "8.4\
.371.23" }, { name: "nodejs", version: "15.0.0", date: "2020-10-20", lts: !1, security: !1, v8: "8.6.395.16" }, { name: "nodejs", version: "\
15.1.0", date: "2020-11-04", lts: !1, security: !1, v8: "8.6.395.17" }, { name: "nodejs", version: "15.2.0", date: "2020-11-10", lts: !1, security: !1,
v8: "8.6.395.17" }, { name: "nodejs", version: "15.3.0", date: "2020-11-24", lts: !1, security: !1, v8: "8.6.395.17" }, { name: "nodejs", version: "\
15.4.0", date: "2020-12-09", lts: !1, security: !1, v8: "8.6.395.17" }, { name: "nodejs", version: "15.5.0", date: "2020-12-22", lts: !1, security: !1,
v8: "8.6.395.17" }, { name: "nodejs", version: "15.6.0", date: "2021-01-14", lts: !1, security: !1, v8: "8.6.395.17" }, { name: "nodejs", version: "\
15.7.0", date: "2021-01-25", lts: !1, security: !1, v8: "8.6.395.17" }, { name: "nodejs", version: "15.8.0", date: "2021-02-02", lts: !1, security: !1,
v8: "8.6.395.17" }, { name: "nodejs", version: "15.9.0", date: "2021-02-18", lts: !1, security: !1, v8: "8.6.395.17" }, { name: "nodejs", version: "\
15.10.0", date: "2021-02-23", lts: !1, security: !0, v8: "8.6.395.17" }, { name: "nodejs", version: "15.11.0", date: "2021-03-03", lts: !1, security: !1,
v8: "8.6.395.17" }, { name: "nodejs", version: "15.12.0", date: "2021-03-17", lts: !1, security: !1, v8: "8.6.395.17" }, { name: "nodejs",
version: "15.13.0", date: "2021-03-31", lts: !1, security: !1, v8: "8.6.395.17" }, { name: "nodejs", version: "15.14.0", date: "2021-04-06",
lts: !1, security: !1, v8: "8.6.395.17" }, { name: "nodejs", version: "16.0.0", date: "2021-04-20", lts: !1, security: !1, v8: "9.0.257.17" },
{ name: "nodejs", version: "16.1.0", date: "2021-05-04", lts: !1, security: !1, v8: "9.0.257.24" }, { name: "nodejs", version: "16.2.0", date: "\
2021-05-19", lts: !1, security: !1, v8: "9.0.257.25" }, { name: "nodejs", version: "16.3.0", date: "2021-06-03", lts: !1, security: !1, v8: "\
9.0.257.25" }, { name: "nodejs", version: "16.4.0", date: "2021-06-23", lts: !1, security: !1, v8: "9.1.269.36" }, { name: "nodejs", version: "\
16.5.0", date: "2021-07-14", lts: !1, security: !1, v8: "9.1.269.38" }, { name: "nodejs", version: "16.6.0", date: "2021-07-29", lts: !1, security: !0,
v8: "9.2.230.21" }, { name: "nodejs", version: "16.7.0", date: "2021-08-18", lts: !1, security: !1, v8: "9.2.230.21" }, { name: "nodejs", version: "\
16.8.0", date: "2021-08-25", lts: !1, security: !1, v8: "9.2.230.21" }, { name: "nodejs", version: "16.9.0", date: "2021-09-07", lts: !1, security: !1,
v8: "9.3.345.16" }, { name: "nodejs", version: "16.10.0", date: "2021-09-22", lts: !1, security: !1, v8: "9.3.345.19" }, { name: "nodejs",
version: "16.11.0", date: "2021-10-08", lts: !1, security: !1, v8: "9.4.146.19" }, { name: "nodejs", version: "16.12.0", date: "2021-10-20",
lts: !1, security: !1, v8: "9.4.146.19" }, { name: "nodejs", version: "16.13.0", date: "2021-10-26", lts: "Gallium", security: !1, v8: "9.\
4.146.19" }, { name: "nodejs", version: "16.14.0", date: "2022-02-08", lts: "Gallium", security: !1, v8: "9.4.146.24" }, { name: "nodejs", version: "\
16.15.0", date: "2022-04-26", lts: "Gallium", security: !1, v8: "9.4.146.24" }, { name: "nodejs", version: "16.16.0", date: "2022-07-07", lts: "\
Gallium", security: !0, v8: "9.4.146.24" }, { name: "nodejs", version: "16.17.0", date: "2022-08-16", lts: "Gallium", security: !1, v8: "9.4\
.146.26" }, { name: "nodejs", version: "16.18.0", date: "2022-10-12", lts: "Gallium", security: !1, v8: "9.4.146.26" }, { name: "nodejs", version: "\
16.19.0", date: "2022-12-13", lts: "Gallium", security: !1, v8: "9.4.146.26" }, { name: "nodejs", version: "16.20.0", date: "2023-03-28", lts: "\
Gallium", security: !1, v8: "9.4.146.26" }, { name: "nodejs", version: "17.0.0", date: "2021-10-19", lts: !1, security: !1, v8: "9.5.172.21" },
{ name: "nodejs", version: "17.1.0", date: "2021-11-09", lts: !1, security: !1, v8: "9.5.172.25" }, { name: "nodejs", version: "17.2.0", date: "\
2021-11-30", lts: !1, security: !1, v8: "9.6.180.14" }, { name: "nodejs", version: "17.3.0", date: "2021-12-17", lts: !1, security: !1, v8: "\
9.6.180.15" }, { name: "nodejs", version: "17.4.0", date: "2022-01-18", lts: !1, security: !1, v8: "9.6.180.15" }, { name: "nodejs", version: "\
17.5.0", date: "2022-02-10", lts: !1, security: !1, v8: "9.6.180.15" }, { name: "nodejs", version: "17.6.0", date: "2022-02-22", lts: !1, security: !1,
v8: "9.6.180.15" }, { name: "nodejs", version: "17.7.0", date: "2022-03-09", lts: !1, security: !1, v8: "9.6.180.15" }, { name: "nodejs", version: "\
17.8.0", date: "2022-03-22", lts: !1, security: !1, v8: "9.6.180.15" }, { name: "nodejs", version: "17.9.0", date: "2022-04-07", lts: !1, security: !1,
v8: "9.6.180.15" }, { name: "nodejs", version: "18.0.0", date: "2022-04-18", lts: !1, security: !1, v8: "10.1.124.8" }, { name: "nodejs", version: "\
18.1.0", date: "2022-05-03", lts: !1, security: !1, v8: "10.1.124.8" }, { name: "nodejs", version: "18.2.0", date: "2022-05-17", lts: !1, security: !1,
v8: "10.1.124.8" }, { name: "nodejs", version: "18.3.0", date: "2022-06-02", lts: !1, security: !1, v8: "10.2.154.4" }, { name: "nodejs", version: "\
18.4.0", date: "2022-06-16", lts: !1, security: !1, v8: "10.2.154.4" }, { name: "nodejs", version: "18.5.0", date: "2022-07-06", lts: !1, security: !0,
v8: "10.2.154.4" }, { name: "nodejs", version: "18.6.0", date: "2022-07-13", lts: !1, security: !1, v8: "10.2.154.13" }, { name: "nodejs",
version: "18.7.0", date: "2022-07-26", lts: !1, security: !1, v8: "10.2.154.13" }, { name: "nodejs", version: "18.8.0", date: "2022-08-24",
lts: !1, security: !1, v8: "10.2.154.13" }, { name: "nodejs", version: "18.9.0", date: "2022-09-07", lts: !1, security: !1, v8: "10.2.154.\
15" }, { name: "nodejs", version: "18.10.0", date: "2022-09-28", lts: !1, security: !1, v8: "10.2.154.15" }, { name: "nodejs", version: "18.\
11.0", date: "2022-10-13", lts: !1, security: !1, v8: "10.2.154.15" }, { name: "nodejs", version: "18.12.0", date: "2022-10-25", lts: "Hydro\
gen", security: !1, v8: "10.2.154.15" }, { name: "nodejs", version: "18.13.0", date: "2023-01-05", lts: "Hydrogen", security: !1, v8: "10.2.\
154.23" }, { name: "nodejs", version: "18.14.0", date: "2023-02-01", lts: "Hydrogen", security: !1, v8: "10.2.154.23" }, { name: "nodejs", version: "\
18.15.0", date: "2023-03-05", lts: "Hydrogen", security: !1, v8: "10.2.154.26" }, { name: "nodejs", version: "18.16.0", date: "2023-04-12", lts: "\
Hydrogen", security: !1, v8: "10.2.154.26" }, { name: "nodejs", version: "18.17.0", date: "2023-07-18", lts: "Hydrogen", security: !1, v8: "\
10.2.154.26" }, { name: "nodejs", version: "18.18.0", date: "2023-09-18", lts: "Hydrogen", security: !1, v8: "10.2.154.26" }, { name: "nodej\
s", version: "18.19.0", date: "2023-11-29", lts: "Hydrogen", security: !1, v8: "10.2.154.26" }, { name: "nodejs", version: "18.20.0", date: "\
2024-03-26", lts: "Hydrogen", security: !1, v8: "10.2.154.26" }, { name: "nodejs", version: "19.0.0", date: "2022-10-17", lts: !1, security: !1,
v8: "10.7.193.13" }, { name: "nodejs", version: "19.1.0", date: "2022-11-14", lts: !1, security: !1, v8: "10.7.193.20" }, { name: "nodejs",
version: "19.2.0", date: "2022-11-29", lts: !1, security: !1, v8: "10.8.168.20" }, { name: "nodejs", version: "19.3.0", date: "2022-12-14",
lts: !1, security: !1, v8: "10.8.168.21" }, { name: "nodejs", version: "19.4.0", date: "2023-01-05", lts: !1, security: !1, v8: "10.8.168.\
25" }, { name: "nodejs", version: "19.5.0", date: "2023-01-24", lts: !1, security: !1, v8: "10.8.168.25" }, { name: "nodejs", version: "19.6\
.0", date: "2023-02-01", lts: !1, security: !1, v8: "10.8.168.25" }, { name: "nodejs", version: "19.7.0", date: "2023-02-21", lts: !1, security: !1,
v8: "10.8.168.25" }, { name: "nodejs", version: "19.8.0", date: "2023-03-14", lts: !1, security: !1, v8: "10.8.168.25" }, { name: "nodejs",
version: "19.9.0", date: "2023-04-10", lts: !1, security: !1, v8: "10.8.168.25" }, { name: "nodejs", version: "20.0.0", date: "2023-04-17",
lts: !1, security: !1, v8: "11.3.244.4" }, { name: "nodejs", version: "20.1.0", date: "2023-05-03", lts: !1, security: !1, v8: "11.3.244.8" },
{ name: "nodejs", version: "20.2.0", date: "2023-05-16", lts: !1, security: !1, v8: "11.3.244.8" }, { name: "nodejs", version: "20.3.0", date: "\
2023-06-08", lts: !1, security: !1, v8: "11.3.244.8" }, { name: "nodejs", version: "20.4.0", date: "2023-07-04", lts: !1, security: !1, v8: "\
11.3.244.8" }, { name: "nodejs", version: "20.5.0", date: "2023-07-19", lts: !1, security: !1, v8: "11.3.244.8" }, { name: "nodejs", version: "\
20.6.0", date: "2023-08-23", lts: !1, security: !1, v8: "11.3.244.8" }, { name: "nodejs", version: "20.7.0", date: "2023-09-18", lts: !1, security: !1,
v8: "11.3.244.8" }, { name: "nodejs", version: "20.8.0", date: "2023-09-28", lts: !1, security: !1, v8: "11.3.244.8" }, { name: "nodejs", version: "\
20.9.0", date: "2023-10-24", lts: "Iron", security: !1, v8: "11.3.244.8" }, { name: "nodejs", version: "20.10.0", date: "2023-11-22", lts: "\
Iron", security: !1, v8: "11.3.244.8" }, { name: "nodejs", version: "20.11.0", date: "2024-01-09", lts: "Iron", security: !1, v8: "11.3.244.\
8" }, { name: "nodejs", version: "20.12.0", date: "2024-03-26", lts: "Iron", security: !1, v8: "11.3.244.8" }, { name: "nodejs", version: "2\
0.13.0", date: "2024-05-07", lts: "Iron", security: !1, v8: "11.3.244.8" }, { name: "nodejs", version: "20.14.0", date: "2024-05-28", lts: "\
Iron", security: !1, v8: "11.3.244.8" }, { name: "nodejs", version: "20.15.0", date: "2024-06-20", lts: "Iron", security: !1, v8: "11.3.244.\
8" }, { name: "nodejs", version: "20.16.0", date: "2024-07-24", lts: "Iron", security: !1, v8: "11.3.244.8" }, { name: "nodejs", version: "2\
0.17.0", date: "2024-08-21", lts: "Iron", security: !1, v8: "11.3.244.8" }, { name: "nodejs", version: "20.18.0", date: "2024-10-03", lts: "\
Iron", security: !1, v8: "11.3.244.8" }, { name: "nodejs", version: "21.0.0", date: "2023-10-17", lts: !1, security: !1, v8: "11.8.172.13" },
{ name: "nodejs", version: "21.1.0", date: "2023-10-24", lts: !1, security: !1, v8: "11.8.172.15" }, { name: "nodejs", version: "21.2.0", date: "\
2023-11-14", lts: !1, security: !1, v8: "11.8.172.17" }, { name: "nodejs", version: "21.3.0", date: "2023-11-30", lts: !1, security: !1, v8: "\
11.8.172.17" }, { name: "nodejs", version: "21.4.0", date: "2023-12-05", lts: !1, security: !1, v8: "11.8.172.17" }, { name: "nodejs", version: "\
21.5.0", date: "2023-12-19", lts: !1, security: !1, v8: "11.8.172.17" }, { name: "nodejs", version: "21.6.0", date: "2024-01-14", lts: !1, security: !1,
v8: "11.8.172.17" }, { name: "nodejs", version: "21.7.0", date: "2024-03-06", lts: !1, security: !1, v8: "11.8.172.17" }, { name: "nodejs",
version: "22.0.0", date: "2024-04-24", lts: !1, security: !1, v8: "12.4.254.14" }, { name: "nodejs", version: "22.1.0", date: "2024-05-02",
lts: !1, security: !1, v8: "12.4.254.14" }, { name: "nodejs", version: "22.2.0", date: "2024-05-15", lts: !1, security: !1, v8: "12.4.254.\
14" }, { name: "nodejs", version: "22.3.0", date: "2024-06-11", lts: !1, security: !1, v8: "12.4.254.20" }, { name: "nodejs", version: "22.4\
.0", date: "2024-07-02", lts: !1, security: !1, v8: "12.4.254.21" }, { name: "nodejs", version: "22.5.0", date: "2024-07-17", lts: !1, security: !1,
v8: "12.4.254.21" }, { name: "nodejs", version: "22.6.0", date: "2024-08-06", lts: !1, security: !1, v8: "12.4.254.21" }, { name: "nodejs",
version: "22.7.0", date: "2024-08-21", lts: !1, security: !1, v8: "12.4.254.21" }, { name: "nodejs", version: "22.8.0", date: "2024-09-03",
lts: !1, security: !1, v8: "12.4.254.21" }, { name: "nodejs", version: "22.9.0", date: "2024-09-17", lts: !1, security: !1, v8: "12.4.254.\
21" }, { name: "nodejs", version: "22.10.0", date: "2024-10-16", lts: !1, security: !1, v8: "12.4.254.21" }, { name: "nodejs", version: "22.\
11.0", date: "2024-10-29", lts: "Jod", security: !1, v8: "12.4.254.21" }, { name: "nodejs", version: "22.12.0", date: "2024-12-02", lts: "Jo\
d", security: !1, v8: "12.4.254.21" }, { name: "nodejs", version: "23.0.0", date: "2024-10-16", lts: !1, security: !1, v8: "12.9.202.26" }, {
name: "nodejs", version: "23.1.0", date: "2024-10-24", lts: !1, security: !1, v8: "12.9.202.28" }, { name: "nodejs", version: "23.2.0", date: "\
2024-11-11", lts: !1, security: !1, v8: "12.9.202.28" }, { name: "nodejs", version: "23.3.0", date: "2024-11-20", lts: !1, security: !1, v8: "\
12.9.202.28" }];
});
// ../node_modules/caniuse-lite/data/browsers.js
var NC = P((pCe, OC) => {
OC.exports = { A: "ie", B: "edge", C: "firefox", D: "chrome", E: "safari", F: "opera", G: "ios_saf", H: "op_mini", I: "android", J: "bb", K: "\
op_mob", L: "and_chr", M: "and_ff", N: "ie_mob", O: "and_uc", P: "samsung", Q: "and_qq", R: "baidu", S: "kaios" };
});
// ../node_modules/caniuse-lite/dist/unpacker/browsers.js
var gc = P((fCe, BC) => {
BC.exports.browsers = NC();
});
// ../node_modules/caniuse-lite/data/browserVersions.js
var FC = P((dCe, kC) => {
kC.exports = { 0: "117", 1: "20", 2: "21", 3: "22", 4: "23", 5: "24", 6: "25", 7: "26", 8: "27", 9: "118", A: "10", B: "11", C: "12", D: "\
7", E: "8", F: "9", G: "15", H: "80", I: "135", J: "4", K: "6", L: "13", M: "14", N: "16", O: "17", P: "18", Q: "79", R: "81", S: "83", T: "\
84", U: "85", V: "86", W: "87", X: "88", Y: "89", Z: "90", a: "91", b: "92", c: "93", d: "94", e: "95", f: "96", g: "97", h: "98", i: "99", j: "\
100", k: "101", l: "102", m: "103", n: "104", o: "105", p: "106", q: "107", r: "108", s: "109", t: "110", u: "111", v: "112", w: "113", x: "\
114", y: "115", z: "116", AB: "119", BB: "120", CB: "121", DB: "122", EB: "123", FB: "124", GB: "125", HB: "126", IB: "127", JB: "128", KB: "\
129", LB: "130", MB: "131", NB: "132", OB: "133", PB: "134", QB: "5", RB: "19", SB: "28", TB: "29", UB: "30", VB: "31", WB: "32", XB: "33", YB: "\
34", ZB: "35", aB: "36", bB: "37", cB: "38", dB: "39", eB: "40", fB: "41", gB: "42", hB: "43", iB: "44", jB: "45", kB: "46", lB: "47", mB: "\
48", nB: "49", oB: "50", pB: "51", qB: "52", rB: "53", sB: "54", tB: "55", uB: "56", vB: "57", wB: "58", xB: "60", yB: "62", zB: "63", "0B": "\
64", "1B": "65", "2B": "66", "3B": "67", "4B": "68", "5B": "69", "6B": "70", "7B": "71", "8B": "72", "9B": "73", AC: "74", BC: "75", CC: "76",
DC: "77", EC: "78", FC: "137", GC: "11.1", HC: "12.1", IC: "15.5", JC: "16.0", KC: "17.0", LC: "18.0", MC: "3", NC: "59", OC: "61", PC: "8\
2", QC: "136", RC: "138", SC: "3.2", TC: "10.1", UC: "15.2-15.3", VC: "15.4", WC: "16.1", XC: "16.2", YC: "16.3", ZC: "16.4", aC: "16.5", bC: "\
17.1", cC: "17.2", dC: "17.3", eC: "17.4", fC: "17.5", gC: "18.1", hC: "18.2", iC: "18.3", jC: "18.4", kC: "18.5", lC: "11.5", mC: "4.2-4.3",
nC: "5.5", oC: "2", pC: "139", qC: "140", rC: "3.5", sC: "3.6", tC: "3.1", uC: "5.1", vC: "6.1", wC: "7.1", xC: "9.1", yC: "13.1", zC: "14\
.1", "0C": "15.1", "1C": "15.6", "2C": "16.6", "3C": "17.6", "4C": "TP", "5C": "9.5-9.6", "6C": "10.0-10.1", "7C": "10.5", "8C": "10.6", "9C": "\
11.6", AD: "4.0-4.1", BD: "5.0-5.1", CD: "6.0-6.1", DD: "7.0-7.1", ED: "8.1-8.4", FD: "9.0-9.2", GD: "9.3", HD: "10.0-10.2", ID: "10.3", JD: "\
11.0-11.2", KD: "11.3-11.4", LD: "12.0-12.1", MD: "12.2-12.5", ND: "13.0-13.1", OD: "13.2", PD: "13.3", QD: "13.4-13.7", RD: "14.0-14.4", SD: "\
14.5-14.8", TD: "15.0-15.1", UD: "15.6-15.8", VD: "16.6-16.7", WD: "17.6-17.7", XD: "all", YD: "2.1", ZD: "2.2", aD: "2.3", bD: "4.1", cD: "\
4.4", dD: "4.4.3-4.4.4", eD: "5.0-5.4", fD: "6.2-6.4", gD: "7.2-7.4", hD: "8.2", iD: "9.2", jD: "11.1-11.2", kD: "12.0", lD: "13.0", mD: "14\
.0", nD: "15.0", oD: "19.0", pD: "14.9", qD: "13.52", rD: "2.5", sD: "3.0-3.1" };
});
// ../node_modules/caniuse-lite/dist/unpacker/browserVersions.js
var d0 = P((hCe, jC) => {
jC.exports.browserVersions = FC();
});
// ../node_modules/caniuse-lite/data/agents.js
var MC = P((mCe, LC) => {
LC.exports = { A: { A: { K: 0, D: 0, E: 0, F: 0.0324821, A: 0, B: 0.438508, nC: 0 }, B: "ms", C: ["", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "nC", "K", "D", "E", "F", "A", "B", "", "", ""], E: "IE", F: { nC: 962323200, K: 998870400,
D: 1161129600, E: 1237420800, F: 1300060800, A: 1346716800, B: 1381968e3 } }, B: { A: { 0: 3623e-6, 9: 3623e-6, C: 0, L: 0, M: 0, G: 0, N: 0,
O: 0, P: 0.097821, Q: 0, H: 0, R: 0, S: 0, T: 0, U: 0, V: 0, W: 0, X: 0, Y: 0, Z: 0, a: 0, b: 0.010869, c: 0, d: 0, e: 0, f: 0, g: 0, h: 0,
i: 0, j: 0, k: 0, l: 0, m: 0, n: 0, o: 0, p: 0, q: 0, r: 3623e-6, s: 0.047099, t: 0, u: 0, v: 0, w: 7246e-6, x: 0.014492, y: 7246e-6, z: 0,
AB: 3623e-6, BB: 0.03623, CB: 7246e-6, DB: 0.014492, EB: 7246e-6, FB: 7246e-6, GB: 7246e-6, HB: 0.021738, IB: 0.014492, JB: 0.014492, KB: 0.014492,
LB: 0.025361, MB: 0.065214, NB: 0.079706, OB: 1.34051, PB: 3.0252, I: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "C", "L", "M", "G", "N", "\
O", "P", "Q", "H", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "\
p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB",
"NB", "OB", "PB", "I", "", "", ""], E: "Edge", F: { 0: 1694649600, 9: 1697155200, C: 1438128e3, L: 1447286400, M: 1470096e3, G: 1491868800,
N: 1508198400, O: 1525046400, P: 1542067200, Q: 1579046400, H: 1581033600, R: 1586736e3, S: 1590019200, T: 1594857600, U: 1598486400, V: 1602201600,
W: 1605830400, X: 161136e4, Y: 1614816e3, Z: 1618358400, a: 1622073600, b: 1626912e3, c: 1630627200, d: 1632441600, e: 1634774400, f: 1637539200,
g: 1641427200, h: 1643932800, i: 1646265600, j: 1649635200, k: 1651190400, l: 1653955200, m: 1655942400, n: 1659657600, o: 1661990400, p: 1664755200,
q: 1666915200, r: 1670198400, s: 1673481600, t: 1675900800, u: 1678665600, v: 1680825600, w: 1683158400, x: 1685664e3, y: 1689897600, z: 1692576e3,
AB: 1698969600, BB: 1701993600, CB: 1706227200, DB: 1708732800, EB: 1711152e3, FB: 1713398400, GB: 1715990400, HB: 1718841600, IB: 1721865600,
JB: 1724371200, KB: 1726704e3, LB: 1729123200, MB: 1731542400, NB: 1737417600, OB: 1740614400, PB: 1741219200, I: 1743984e3 }, D: { C: "ms",
L: "ms", M: "ms", G: "ms", N: "ms", O: "ms", P: "ms" } }, C: { A: { 0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, 9: 0.094198, oC: 7246e-6,
MC: 0, J: 0, QB: 0, K: 0, D: 0, E: 0, F: 0, A: 0, B: 0.025361, C: 0, L: 0, M: 0, G: 0, N: 0, O: 0, P: 0, RB: 0, SB: 0, TB: 0, UB: 0, VB: 0,
WB: 0, XB: 0, YB: 0, ZB: 0, aB: 0, bB: 0, cB: 0, dB: 0, eB: 0, fB: 0, gB: 0, hB: 0, iB: 3623e-6, jB: 0, kB: 0, lB: 0, mB: 0, nB: 0, oB: 0,
pB: 0, qB: 0.028984, rB: 0.014492, sB: 0, tB: 7246e-6, uB: 7246e-6, vB: 0, wB: 0, NC: 7246e-6, xB: 0, OC: 0, yB: 0, zB: 0, "0B": 0, "1B": 0,
"2B": 0, "3B": 0, "4B": 0, "5B": 0, "6B": 0, "7B": 0, "8B": 3623e-6, "9B": 0, AC: 0, BC: 0, CC: 0, DC: 0, EC: 0.010869, Q: 0, H: 0, R: 0, PC: 0,
S: 0, T: 0, U: 0, V: 0, W: 0, X: 7246e-6, Y: 0, Z: 0, a: 0, b: 0, c: 0, d: 3623e-6, e: 0, f: 0, g: 0, h: 0, i: 0, j: 0, k: 0, l: 0, m: 0, n: 0,
o: 0, p: 0, q: 0, r: 0, s: 3623e-6, t: 0, u: 0, v: 0, w: 3623e-6, x: 0, y: 0.213757, z: 0, AB: 0, BB: 3623e-6, CB: 0, DB: 0, EB: 0, FB: 0,
GB: 0.014492, HB: 0, IB: 7246e-6, JB: 0.083329, KB: 0, LB: 0, MB: 3623e-6, NB: 7246e-6, OB: 0.018115, PB: 0.025361, I: 0.347808, QC: 1.11951,
FC: 7246e-6, RC: 0, pC: 0, qC: 0, rC: 0, sC: 0 }, B: "moz", C: ["oC", "MC", "rC", "sC", "J", "QB", "K", "D", "E", "F", "A", "B", "C", "L",
"M", "G", "N", "O", "P", "RB", "1", "2", "3", "4", "5", "6", "7", "8", "SB", "TB", "UB", "VB", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "\
dB", "eB", "fB", "gB", "hB", "iB", "jB", "kB", "lB", "mB", "nB", "oB", "pB", "qB", "rB", "sB", "tB", "uB", "vB", "wB", "NC", "xB", "OC", "yB",
"zB", "0B", "1B", "2B", "3B", "4B", "5B", "6B", "7B", "8B", "9B", "AC", "BC", "CC", "DC", "EC", "Q", "H", "R", "PC", "S", "T", "U", "V", "\
W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "\
y", "z", "0", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "I", "QC", "FC", "RC", "p\
C", "qC"], E: "Firefox", F: { 0: 1693267200, 1: 1361232e3, 2: 1364860800, 3: 1368489600, 4: 1372118400, 5: 1375747200, 6: 1379376e3, 7: 1386633600,
8: 1391472e3, 9: 1695686400, oC: 1161648e3, MC: 1213660800, rC: 124632e4, sC: 1264032e3, J: 1300752e3, QB: 1308614400, K: 1313452800, D: 1317081600,
E: 1317081600, F: 1320710400, A: 1324339200, B: 1327968e3, C: 1331596800, L: 1335225600, M: 1338854400, G: 1342483200, N: 1346112e3, O: 1349740800,
P: 1353628800, RB: 1357603200, SB: 1395100800, TB: 1398729600, UB: 1402358400, VB: 1405987200, WB: 1409616e3, XB: 1413244800, YB: 1417392e3,
ZB: 1421107200, aB: 1424736e3, bB: 1428278400, cB: 1431475200, dB: 1435881600, eB: 1439251200, fB: 144288e4, gB: 1446508800, hB: 1450137600,
iB: 1453852800, jB: 1457395200, kB: 1461628800, lB: 1465257600, mB: 1470096e3, nB: 1474329600, oB: 1479168e3, pB: 1485216e3, qB: 1488844800,
rB: 149256e4, sB: 1497312e3, tB: 1502150400, uB: 1506556800, vB: 1510617600, wB: 1516665600, NC: 1520985600, xB: 1525824e3, OC: 1529971200,
yB: 1536105600, zB: 1540252800, "0B": 1544486400, "1B": 154872e4, "2B": 1552953600, "3B": 1558396800, "4B": 1562630400, "5B": 1567468800, "\
6B": 1571788800, "7B": 1575331200, "8B": 1578355200, "9B": 1581379200, AC: 1583798400, BC: 1586304e3, CC: 1588636800, DC: 1591056e3, EC: 1593475200,
Q: 1595894400, H: 1598313600, R: 1600732800, PC: 1603152e3, S: 1605571200, T: 1607990400, U: 1611619200, V: 1614038400, W: 1616457600, X: 1618790400,
Y: 1622505600, Z: 1626134400, a: 1628553600, b: 1630972800, c: 1633392e3, d: 1635811200, e: 1638835200, f: 1641859200, g: 1644364800, h: 1646697600,
i: 1649116800, j: 1651536e3, k: 1653955200, l: 1656374400, m: 1658793600, n: 1661212800, o: 1663632e3, p: 1666051200, q: 1668470400, r: 1670889600,
s: 1673913600, t: 1676332800, u: 1678752e3, v: 1681171200, w: 1683590400, x: 1686009600, y: 1688428800, z: 1690848e3, AB: 1698105600, BB: 1700524800,
CB: 1702944e3, DB: 1705968e3, EB: 1708387200, FB: 1710806400, GB: 1713225600, HB: 1715644800, IB: 1718064e3, JB: 1720483200, KB: 1722902400,
LB: 1725321600, MB: 1727740800, NB: 173016e4, OB: 1732579200, PB: 1736208e3, I: 1738627200, QC: 1741046400, FC: 1743465600, RC: null, pC: null,
qC: null } }, D: { A: { 0: 0.094198, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, 9: 0.057968, J: 0, QB: 0, K: 0, D: 0, E: 0, F: 0, A: 0,
B: 0, C: 0, L: 0, M: 0, G: 0, N: 0, O: 0, P: 0, RB: 0, SB: 0, TB: 0, UB: 0, VB: 0, WB: 0, XB: 0, YB: 0, ZB: 0, aB: 0, bB: 0, cB: 3623e-6, dB: 7246e-6,
eB: 3623e-6, fB: 7246e-6, gB: 7246e-6, hB: 7246e-6, iB: 7246e-6, jB: 7246e-6, kB: 3623e-6, lB: 7246e-6, mB: 0.018115, nB: 0.018115, oB: 7246e-6,
pB: 7246e-6, qB: 0.010869, rB: 7246e-6, sB: 7246e-6, tB: 7246e-6, uB: 0.014492, vB: 7246e-6, wB: 0.010869, NC: 7246e-6, xB: 7246e-6, OC: 0,
yB: 0, zB: 0, "0B": 0, "1B": 0, "2B": 0.021738, "3B": 0, "4B": 0, "5B": 0.010869, "6B": 0.010869, "7B": 0, "8B": 0, "9B": 7246e-6, AC: 3623e-6,
BC: 7246e-6, CC: 3623e-6, DC: 0.014492, EC: 0.010869, Q: 0.068837, H: 0.010869, R: 0.014492, S: 0.028984, T: 3623e-6, U: 0.010869, V: 0.014492,
W: 0.057968, X: 0.014492, Y: 3623e-6, Z: 7246e-6, a: 0.03623, b: 0.010869, c: 0.014492, d: 0.028984, e: 7246e-6, f: 7246e-6, g: 0.018115, h: 0.03623,
i: 0.010869, j: 0.028984, k: 0.014492, l: 0.014492, m: 0.076083, n: 0.050722, o: 0.010869, p: 0.021738, q: 0.025361, r: 0.039853, s: 0.912996,
t: 0.018115, u: 0.03623, v: 0.03623, w: 0.10869, x: 0.054345, y: 0.032607, z: 0.101444, AB: 0.03623, BB: 0.086952, CB: 0.094198, DB: 0.076083,
EB: 0.086952, FB: 0.123182, GB: 0.344185, HB: 0.152166, IB: 0.101444, JB: 0.130428, KB: 0.101444, LB: 0.152166, MB: 1.17747, NB: 0.815175,
OB: 5.89462, PB: 9.91615, I: 0.021738, QC: 0.014492, FC: 0, RC: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "J", "QB", "K", "D", "E",
"F", "A", "B", "C", "L", "M", "G", "N", "O", "P", "RB", "1", "2", "3", "4", "5", "6", "7", "8", "SB", "TB", "UB", "VB", "WB", "XB", "YB", "\
ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "hB", "iB", "jB", "kB", "lB", "mB", "nB", "oB", "pB", "qB", "rB", "sB", "tB", "uB", "vB", "wB",
"NC", "xB", "OC", "yB", "zB", "0B", "1B", "2B", "3B", "4B", "5B", "6B", "7B", "8B", "9B", "AC", "BC", "CC", "DC", "EC", "Q", "H", "R", "S",
"T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u",
"v", "w", "x", "y", "z", "0", "9", "AB", "BB", "CB", "DB", "EB", "FB", "GB", "HB", "IB", "JB", "KB", "LB", "MB", "NB", "OB", "PB", "I", "Q\
C", "FC", "RC"], E: "Chrome", F: { 0: 1694476800, 1: 133704e4, 2: 1340668800, 3: 1343692800, 4: 1348531200, 5: 1352246400, 6: 1357862400, 7: 1361404800,
8: 1364428800, 9: 1696896e3, J: 1264377600, QB: 1274745600, K: 1283385600, D: 1287619200, E: 1291248e3, F: 1296777600, A: 1299542400, B: 1303862400,
C: 1307404800, L: 1312243200, M: 1316131200, G: 1316131200, N: 1319500800, O: 1323734400, P: 1328659200, RB: 1332892800, SB: 1369094400, TB: 1374105600,
UB: 1376956800, VB: 1384214400, WB: 1389657600, XB: 1392940800, YB: 1397001600, ZB: 1400544e3, aB: 1405468800, bB: 1409011200, cB: 141264e4,
dB: 1416268800, eB: 1421798400, fB: 1425513600, gB: 1429401600, hB: 143208e4, iB: 1437523200, jB: 1441152e3, kB: 1444780800, lB: 1449014400,
mB: 1453248e3, nB: 1456963200, oB: 1460592e3, pB: 1464134400, qB: 1469059200, rB: 1472601600, sB: 1476230400, tB: 1480550400, uB: 1485302400,
vB: 1489017600, wB: 149256e4, NC: 1496707200, xB: 1500940800, OC: 1504569600, yB: 1508198400, zB: 1512518400, "0B": 1516752e3, "1B": 1520294400,
"2B": 1523923200, "3B": 1527552e3, "4B": 1532390400, "5B": 1536019200, "6B": 1539648e3, "7B": 1543968e3, "8B": 154872e4, "9B": 1552348800,
AC: 1555977600, BC: 1559606400, CC: 1564444800, DC: 1568073600, EC: 1571702400, Q: 1575936e3, H: 1580860800, R: 1586304e3, S: 1589846400, T: 1594684800,
U: 1598313600, V: 1601942400, W: 1605571200, X: 1611014400, Y: 1614556800, Z: 1618272e3, a: 1621987200, b: 1626739200, c: 1630368e3, d: 1632268800,
e: 1634601600, f: 1637020800, g: 1641340800, h: 1643673600, i: 1646092800, j: 1648512e3, k: 1650931200, l: 1653350400, m: 1655769600, n: 1659398400,
o: 1661817600, p: 1664236800, q: 1666656e3, r: 166968e4, s: 1673308800, t: 1675728e3, u: 1678147200, v: 1680566400, w: 1682985600, x: 1685404800,
y: 1689724800, z: 1692057600, AB: 1698710400, BB: 1701993600, CB: 1705968e3, DB: 1708387200, EB: 1710806400, FB: 1713225600, GB: 1715644800,
HB: 1718064e3, IB: 1721174400, JB: 1724112e3, KB: 1726531200, LB: 1728950400, MB: 1731369600, NB: 1736812800, OB: 1738627200, PB: 1741046400,
I: 1743465600, QC: null, FC: null, RC: null } }, E: { A: { J: 0, QB: 0, K: 0, D: 0, E: 0, F: 0, A: 0, B: 0, C: 0, L: 0, M: 0.014492, G: 3623e-6,
tC: 0, SC: 0, uC: 0, vC: 0, wC: 0, xC: 0, TC: 0, GC: 7246e-6, HC: 7246e-6, yC: 0.032607, zC: 0.043476, "0C": 0.014492, UC: 3623e-6, VC: 0.010869,
IC: 0.014492, "1C": 0.148543, JC: 0.032607, WC: 0.021738, XC: 0.018115, YC: 0.039853, ZC: 0.014492, aC: 0.025361, "2C": 0.199265, KC: 0.010869,
bC: 0.123182, cC: 0.018115, dC: 0.021738, eC: 0.050722, fC: 0.086952, "3C": 0.264479, LC: 0.03623, gC: 0.115936, hC: 0.057968, iC: 1.4021,
jC: 0.018115, kC: 0, "4C": 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "tC", "\
SC", "J", "QB", "uC", "K", "vC", "D", "wC", "E", "F", "xC", "A", "TC", "B", "GC", "C", "HC", "L", "yC", "M", "zC", "G", "0C", "UC", "VC", "I\
C", "1C", "JC", "WC", "XC", "YC", "ZC", "aC", "2C", "KC", "bC", "cC", "dC", "eC", "fC", "3C", "LC", "gC", "hC", "iC", "jC", "kC", "4C", ""],
E: "Safari", F: { tC: 1205798400, SC: 1226534400, J: 1244419200, QB: 1275868800, uC: 131112e4, K: 1343174400, vC: 13824e5, D: 13824e5, wC: 1410998400,
E: 1413417600, F: 1443657600, xC: 1458518400, A: 1474329600, TC: 1490572800, B: 1505779200, GC: 1522281600, C: 1537142400, HC: 1553472e3, L: 1568851200,
yC: 1585008e3, M: 1600214400, zC: 1619395200, G: 1632096e3, "0C": 1635292800, UC: 1639353600, VC: 1647216e3, IC: 1652745600, "1C": 1658275200,
JC: 1662940800, WC: 1666569600, XC: 1670889600, YC: 1674432e3, ZC: 1679875200, aC: 1684368e3, "2C": 1690156800, KC: 1695686400, bC: 1698192e3,
cC: 1702252800, dC: 1705881600, eC: 1709596800, fC: 1715558400, "3C": 1722211200, LC: 1726444800, gC: 1730073600, hC: 1733875200, iC: 1737936e3,
jC: 1743379200, kC: null, "4C": null } }, F: { A: { 0: 0.684747, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, F: 0, B: 0, C: 0, G: 0, N: 0,
O: 0, P: 0, RB: 0, SB: 0, TB: 0, UB: 0, VB: 0, WB: 0, XB: 0, YB: 0, ZB: 0, aB: 0, bB: 0, cB: 0, dB: 0, eB: 3623e-6, fB: 0, gB: 0, hB: 0, iB: 0,
jB: 0, kB: 0.010869, lB: 0, mB: 0, nB: 0, oB: 0, pB: 0, qB: 0, rB: 0, sB: 0, tB: 0, uB: 0, vB: 0, wB: 0, xB: 0, yB: 0, zB: 0, "0B": 0, "1B": 0,
"2B": 0, "3B": 0, "4B": 0, "5B": 0, "6B": 0, "7B": 0, "8B": 0, "9B": 0, AC: 0, BC: 0, CC: 0, DC: 0, EC: 0, Q: 0, H: 0, R: 0, PC: 0, S: 0, T: 0,
U: 0, V: 0, W: 0.025361, X: 7246e-6, Y: 0, Z: 0, a: 0, b: 0, c: 0, d: 0, e: 0.032607, f: 0, g: 0, h: 0, i: 0, j: 0, k: 0, l: 0.018115, m: 0,
n: 0, o: 0, p: 0, q: 0, r: 0, s: 0, t: 0, u: 0, v: 0, w: 0, x: 3623e-6, y: 0, z: 0.202888, "5C": 0, "6C": 0, "7C": 0, "8C": 0, GC: 0, lC: 0,
"9C": 0, HC: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"F", "5C", "6C", "7C", "8C", "B", "GC", "lC", "9C", "C", "HC", "G", "N", "O", "P", "RB", "1", "2", "3", "4", "5", "6", "7", "8", "SB", "TB",
"UB", "VB", "WB", "XB", "YB", "ZB", "aB", "bB", "cB", "dB", "eB", "fB", "gB", "hB", "iB", "jB", "kB", "lB", "mB", "nB", "oB", "pB", "qB", "\
rB", "sB", "tB", "uB", "vB", "wB", "xB", "yB", "zB", "0B", "1B", "2B", "3B", "4B", "5B", "6B", "7B", "8B", "9B", "AC", "BC", "CC", "DC", "EC",
"Q", "H", "R", "PC", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p",
"q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "", "", ""], E: "Opera", F: { 0: 1739404800, 1: 1393891200, 2: 1399334400, 3: 1401753600,
4: 1405987200, 5: 1409616e3, 6: 1413331200, 7: 1417132800, 8: 1422316800, F: 1150761600, "5C": 1223424e3, "6C": 1251763200, "7C": 1267488e3,
"8C": 1277942400, B: 1292457600, GC: 1302566400, lC: 1309219200, "9C": 1323129600, C: 1323129600, HC: 1352073600, G: 1372723200, N: 1377561600,
O: 1381104e3, P: 1386288e3, RB: 1390867200, SB: 1425945600, TB: 1430179200, UB: 1433808e3, VB: 1438646400, WB: 1442448e3, XB: 1445904e3, YB: 1449100800,
ZB: 1454371200, aB: 1457308800, bB: 146232e4, cB: 1465344e3, dB: 1470096e3, eB: 1474329600, fB: 1477267200, gB: 1481587200, hB: 1486425600,
iB: 1490054400, jB: 1494374400, kB: 1498003200, lB: 1502236800, mB: 1506470400, nB: 1510099200, oB: 1515024e3, pB: 1517961600, qB: 1521676800,
rB: 1525910400, sB: 1530144e3, tB: 1534982400, uB: 1537833600, vB: 1543363200, wB: 1548201600, xB: 1554768e3, yB: 1561593600, zB: 1566259200,
"0B": 1570406400, "1B": 1573689600, "2B": 1578441600, "3B": 1583971200, "4B": 1587513600, "5B": 1592956800, "6B": 1595894400, "7B": 1600128e3,
"8B": 1603238400, "9B": 161352e4, AC: 1612224e3, BC: 1616544e3, CC: 1619568e3, DC: 1623715200, EC: 1627948800, Q: 1631577600, H: 1633392e3,
R: 1635984e3, PC: 1638403200, S: 1642550400, T: 1644969600, U: 1647993600, V: 1650412800, W: 1652745600, X: 1654646400, Y: 1657152e3, Z: 1660780800,
a: 1663113600, b: 1668816e3, c: 1668643200, d: 1671062400, e: 1675209600, f: 1677024e3, g: 1679529600, h: 1681948800, i: 1684195200, j: 1687219200,
k: 1690329600, l: 1692748800, m: 1696204800, n: 169992e4, o: 169992e4, p: 1702944e3, q: 1707264e3, r: 1710115200, s: 1711497600, t: 1716336e3,
u: 1719273600, v: 1721088e3, w: 1724284800, x: 1727222400, y: 1732665600, z: 1736294400 }, D: { F: "o", B: "o", C: "o", "5C": "o", "6C": "\
o", "7C": "o", "8C": "o", GC: "o", lC: "o", "9C": "o", HC: "o" } }, G: { A: { E: 0, SC: 0, AD: 0, mC: 289898e-8, BD: 0, CD: 869695e-8, DD: 724746e-8,
ED: 0, FD: 434848e-8, GD: 0.0202929, HD: 144949e-8, ID: 0.0333383, JD: 0.153646, KD: 0.0101464, LD: 579797e-8, MD: 0.14205, ND: 289898e-8,
OD: 579797e-8, PD: 579797e-8, QD: 0.0202929, RD: 0.124656, SD: 0.0608787, TD: 0.0333383, UC: 0.0333383, VC: 0.0405858, IC: 0.0463837, UD: 0.568201,
JC: 0.0797221, WC: 0.165242, XC: 0.08552, YC: 0.150747, ZC: 0.0333383, aC: 0.0623282, VD: 0.672564, KC: 0.0405858, bC: 0.0724746, cC: 0.0550807,
dC: 0.0768231, eC: 0.153646, fC: 0.340631, WD: 0.988554, LC: 0.276853, gC: 0.905933, hC: 0.405858, iC: 8.46503, jC: 0.126106, kC: 0 }, B: "\
webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "SC", "AD", "mC", "BD", "CD", "DD", "E",
"ED", "FD", "GD", "HD", "ID", "JD", "KD", "LD", "MD", "ND", "OD", "PD", "QD", "RD", "SD", "TD", "UC", "VC", "IC", "UD", "JC", "WC", "XC", "\
YC", "ZC", "aC", "VD", "KC", "bC", "cC", "dC", "eC", "fC", "WD", "LC", "gC", "hC", "iC", "jC", "kC", "", ""], E: "Safari on iOS", F: { SC: 1270252800,
AD: 1283904e3, mC: 1299628800, BD: 1331078400, CD: 1359331200, DD: 1394409600, E: 1410912e3, ED: 1413763200, FD: 1442361600, GD: 1458518400,
HD: 1473724800, ID: 1490572800, JD: 1505779200, KD: 1522281600, LD: 1537142400, MD: 1553472e3, ND: 1568851200, OD: 1572220800, PD: 1580169600,
QD: 1585008e3, RD: 1600214400, SD: 1619395200, TD: 1632096e3, UC: 1639353600, VC: 1647216e3, IC: 1652659200, UD: 1658275200, JC: 1662940800,
WC: 1666569600, XC: 1670889600, YC: 1674432e3, ZC: 1679875200, aC: 1684368e3, VD: 1690156800, KC: 1694995200, bC: 1698192e3, cC: 1702252800,
dC: 1705881600, eC: 1709596800, fC: 1715558400, WD: 1722211200, LC: 1726444800, gC: 1730073600, hC: 1733875200, iC: 1737936e3, jC: 1743379200,
kC: null } }, H: { A: { XD: 0.05 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "XD", "", "", ""], E: "Opera Mini", F: { XD: 1426464e3 } }, I: { A: { MC: 0, J: 0, I: 0.871727, YD: 0,
ZD: 0, aD: 0, bD: 0, mC: 262095e-9, cD: 0, dD: 961014e-9 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "YD", "ZD", "aD", "MC", "J", "bD", "mC", "cD", "dD", "I", "", "", ""], E: "Android Browser", F: { YD: 1256515200,
ZD: 1274313600, aD: 1291593600, MC: 1298332800, J: 1318896e3, bD: 1341792e3, mC: 1374624e3, cD: 1386547200, dD: 1401667200, I: 1743379200 } },
J: { A: { D: 0, A: 0 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "D", "A", "", "", ""], E: "Blackberry Browser", F: { D: 1325376e3, A: 1359504e3 } }, K: { A: { A: 0, B: 0, C: 0, H: 1.04047,
GC: 0, lC: 0, HC: 0 }, B: "o", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"A", "B", "GC", "lC", "C", "HC", "H", "", "", ""], E: "Opera Mobile", F: { A: 1287100800, B: 1300752e3, GC: 1314835200, lC: 1318291200, C: 1330300800,
HC: 1349740800, H: 1709769600 }, D: { H: "webkit" } }, L: { A: { I: 44.6783 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "I", "", "", ""], E: "Chrome for Android", F: { I: 1743379200 } },
M: { A: { FC: 0.350735 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "FC", "", "", ""], E: "Firefox for Android", F: { FC: 1743465600 } }, N: { A: { A: 0, B: 0 }, B: "ms", C: ["",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "A", "B", "", "", ""],
E: "IE Mobile", F: { A: 1340150400, B: 1353456e3 } }, O: { A: { IC: 0.848141 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "IC", "", "", ""], E: "UC Browser for Android", F: { IC: 1710115200 },
D: { IC: "webkit" } }, P: { A: { 1: 0, 2: 0.0219344, 3: 0.0219344, 4: 0.0329016, 5: 0.0438688, 6: 0.0438688, 7: 0.0877377, 8: 1.96313, J: 0.0329016,
eD: 0, fD: 0, gD: 0.0109672, hD: 0, iD: 0, TC: 0, jD: 0, kD: 0, lD: 0, mD: 0, nD: 0, JC: 0, KC: 0.0109672, LC: 0, oD: 0 }, B: "webkit", C: [
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "J", "eD", "fD", "gD", "hD", "iD", "TC", "jD", "kD", "lD", "mD", "nD", "JC", "KC", "LC", "oD", "1", "2",
"3", "4", "5", "6", "7", "8", "", "", ""], E: "Samsung Internet", F: { 1: 1677369600, 2: 1684454400, 3: 1689292800, 4: 1697587200, 5: 1711497600,
6: 1715126400, 7: 1717718400, 8: 1725667200, J: 1461024e3, eD: 1481846400, fD: 1509408e3, gD: 1528329600, hD: 1546128e3, iD: 1554163200, TC: 1567900800,
jD: 1582588800, kD: 1593475200, lD: 1605657600, mD: 1618531200, nD: 1629072e3, JC: 1640736e3, KC: 1651708800, LC: 1659657600, oD: 1667260800 } },
Q: { A: { pD: 0.229572 }, B: "webkit", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "pD", "", "", ""], E: "QQ Browser", F: { pD: 1710288e3 } }, R: { A: { qD: 0 }, B: "webkit", C: ["", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "qD", "", "", ""], E: "\
Baidu Browser", F: { qD: 1710201600 } }, S: { A: { rD: 0.012754, sD: 0 }, B: "moz", C: ["", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "rD", "sD", "", "", ""], E: "KaiOS Browser", F: { rD: 1527811200, sD: 1631664e3 } } };
});
// ../node_modules/caniuse-lite/dist/unpacker/agents.js
var VC = P((yCe, UC) => {
"use strict";
var uce = gc().browsers, h0 = d0().browserVersions, RC = MC();
function qC(e) {
return Object.keys(e).reduce((t, r) => (t[h0[r]] = e[r], t), {});
}
i(qC, "unpackBrowserVersions");
UC.exports.agents = Object.keys(RC).reduce((e, t) => {
let r = RC[t];
return e[uce[t]] = Object.keys(r).reduce((n, s) => (s === "A" ? n.usage_global = qC(r[s]) : s === "C" ? n.versions = r[s].reduce((a, o) => (o ===
"" ? a.push(null) : a.push(h0[o]), a), []) : s === "D" ? n.prefix_exceptions = qC(r[s]) : s === "E" ? n.browser = r[s] : s === "F" ? n.release_date =
Object.keys(r[s]).reduce(
(a, o) => (a[h0[o]] = r[s][o], a),
{}
) : n.prefix = r[s], n), {}), e;
}, {});
});
// ../node_modules/electron-to-chromium/versions.js
var WC = P((bCe, $C) => {
$C.exports = {
"0.20": "39",
"0.21": "41",
"0.22": "41",
"0.23": "41",
"0.24": "41",
"0.25": "42",
"0.26": "42",
"0.27": "43",
"0.28": "43",
"0.29": "43",
"0.30": "44",
"0.31": "45",
"0.32": "45",
"0.33": "45",
"0.34": "45",
"0.35": "45",
"0.36": "47",
"0.37": "49",
"1.0": "49",
"1.1": "50",
"1.2": "51",
"1.3": "52",
"1.4": "53",
"1.5": "54",
"1.6": "56",
"1.7": "58",
"1.8": "59",
"2.0": "61",
"2.1": "61",
"3.0": "66",
"3.1": "66",
"4.0": "69",
"4.1": "69",
"4.2": "69",
"5.0": "73",
"6.0": "76",
"6.1": "76",
"7.0": "78",
"7.1": "78",
"7.2": "78",
"7.3": "78",
"8.0": "80",
"8.1": "80",
"8.2": "80",
"8.3": "80",
"8.4": "80",
"8.5": "80",
"9.0": "83",
"9.1": "83",
"9.2": "83",
"9.3": "83",
"9.4": "83",
"10.0": "85",
"10.1": "85",
"10.2": "85",
"10.3": "85",
"10.4": "85",
"11.0": "87",
"11.1": "87",
"11.2": "87",
"11.3": "87",
"11.4": "87",
"11.5": "87",
"12.0": "89",
"12.1": "89",
"12.2": "89",
"13.0": "91",
"13.1": "91",
"13.2": "91",
"13.3": "91",
"13.4": "91",
"13.5": "91",
"13.6": "91",
"14.0": "93",
"14.1": "93",
"14.2": "93",
"15.0": "94",
"15.1": "94",
"15.2": "94",
"15.3": "94",
"15.4": "94",
"15.5": "94",
"16.0": "96",
"16.1": "96",
"16.2": "96",
"17.0": "98",
"17.1": "98",
"17.2": "98",
"17.3": "98",
"17.4": "98",
"18.0": "100",
"18.1": "100",
"18.2": "100",
"18.3": "100",
"19.0": "102",
"19.1": "102",
"20.0": "104",
"20.1": "104",
"20.2": "104",
"20.3": "104",
"21.0": "106",
"21.1": "106",
"21.2": "106",
"21.3": "106",
"21.4": "106",
"22.0": "108",
"22.1": "108",
"22.2": "108",
"22.3": "108",
"23.0": "110",
"23.1": "110",
"23.2": "110",
"23.3": "110",
"24.0": "112",
"24.1": "112",
"24.2": "112",
"24.3": "112",
"24.4": "112",
"24.5": "112",
"24.6": "112",
"24.7": "112",
"24.8": "112",
"25.0": "114",
"25.1": "114",
"25.2": "114",
"25.3": "114",
"25.4": "114",
"25.5": "114",
"25.6": "114",
"25.7": "114",
"25.8": "114",
"25.9": "114",
"26.0": "116",
"26.1": "116",
"26.2": "116",
"26.3": "116",
"26.4": "116",
"26.5": "116",
"26.6": "116",
"27.0": "118",
"27.1": "118",
"27.2": "118",
"27.3": "118",
"28.0": "120",
"28.1": "120",
"28.2": "120",
"28.3": "120",
"29.0": "122",
"29.1": "122",
"29.2": "122",
"29.3": "122",
"29.4": "122",
"30.0": "124",
"30.1": "124",
"30.2": "124",
"30.3": "124",
"30.4": "124",
"30.5": "124",
"31.0": "126",
"31.1": "126",
"31.2": "126",
"31.3": "126",
"31.4": "126",
"31.5": "126",
"31.6": "126",
"31.7": "126",
"32.0": "128",
"32.1": "128",
"32.2": "128",
"32.3": "128",
"33.0": "130",
"33.1": "130",
"33.2": "130",
"33.3": "130",
"33.4": "130",
"34.0": "132",
"34.1": "132",
"34.2": "132",
"34.3": "132",
"34.4": "132",
"34.5": "132",
"35.0": "134",
"35.1": "134",
"35.2": "134",
"36.0": "136"
};
});
// ../node_modules/node-releases/data/release-schedule/release-schedule.json
var KC = P((ECe, cce) => {
cce.exports = { "v0.8": { start: "2012-06-25", end: "2014-07-31" }, "v0.10": { start: "2013-03-11", end: "2016-10-31" }, "v0.12": { start: "\
2015-02-06", end: "2016-12-31" }, v4: { start: "2015-09-08", lts: "2015-10-12", maintenance: "2017-04-01", end: "2018-04-30", codename: "Arg\
on" }, v5: { start: "2015-10-29", maintenance: "2016-04-30", end: "2016-06-30" }, v6: { start: "2016-04-26", lts: "2016-10-18", maintenance: "\
2018-04-30", end: "2019-04-30", codename: "Boron" }, v7: { start: "2016-10-25", maintenance: "2017-04-30", end: "2017-06-30" }, v8: { start: "\
2017-05-30", lts: "2017-10-31", maintenance: "2019-01-01", end: "2019-12-31", codename: "Carbon" }, v9: { start: "2017-10-01", maintenance: "\
2018-04-01", end: "2018-06-30" }, v10: { start: "2018-04-24", lts: "2018-10-30", maintenance: "2020-05-19", end: "2021-04-30", codename: "Du\
bnium" }, v11: { start: "2018-10-23", maintenance: "2019-04-22", end: "2019-06-01" }, v12: { start: "2019-04-23", lts: "2019-10-21", maintenance: "\
2020-11-30", end: "2022-04-30", codename: "Erbium" }, v13: { start: "2019-10-22", maintenance: "2020-04-01", end: "2020-06-01" }, v14: { start: "\
2020-04-21", lts: "2020-10-27", maintenance: "2021-10-19", end: "2023-04-30", codename: "Fermium" }, v15: { start: "2020-10-20", maintenance: "\
2021-04-01", end: "2021-06-01" }, v16: { start: "2021-04-20", lts: "2021-10-26", maintenance: "2022-10-18", end: "2023-09-11", codename: "Ga\
llium" }, v17: { start: "2021-10-19", maintenance: "2022-04-01", end: "2022-06-01" }, v18: { start: "2022-04-19", lts: "2022-10-25", maintenance: "\
2023-10-18", end: "2025-04-30", codename: "Hydrogen" }, v19: { start: "2022-10-18", maintenance: "2023-04-01", end: "2023-06-01" }, v20: { start: "\
2023-04-18", lts: "2023-10-24", maintenance: "2024-10-22", end: "2026-04-30", codename: "Iron" }, v21: { start: "2023-10-17", maintenance: "\
2024-04-01", end: "2024-06-01" }, v22: { start: "2024-04-24", lts: "2024-10-29", maintenance: "2025-10-21", end: "2027-04-30", codename: "Jo\
d" }, v23: { start: "2024-10-16", maintenance: "2025-04-01", end: "2025-06-01" }, v24: { start: "2025-04-22", lts: "2025-10-28", maintenance: "\
2026-10-20", end: "2028-04-30", codename: "" } };
});
// ../node_modules/browserslist/error.js
var y0 = P((TCe, GC) => {
function m0(e) {
this.name = "BrowserslistError", this.message = e, this.browserslist = !0, Error.captureStackTrace && Error.captureStackTrace(this, m0);
}
i(m0, "BrowserslistError");
m0.prototype = Error.prototype;
GC.exports = m0;
});
// ../node_modules/caniuse-lite/dist/lib/statuses.js
var YC = P((xCe, HC) => {
HC.exports = {
1: "ls",
// WHATWG Living Standard
2: "rec",
// W3C Recommendation
3: "pr",
// W3C Proposed Recommendation
4: "cr",
// W3C Candidate Recommendation
5: "wd",
// W3C Working Draft
6: "other",
// Non-W3C, but reputable
7: "unoff"
// Unofficial, Editor's Draft or W3C "Note"
};
});
// ../node_modules/caniuse-lite/dist/lib/supported.js
var XC = P((vCe, JC) => {
JC.exports = {
y: 1,
n: 2,
a: 4,
p: 8,
u: 16,
x: 32,
d: 64
};
});
// ../node_modules/caniuse-lite/dist/unpacker/feature.js
var ZC = P((PCe, g0) => {
"use strict";
var pce = YC(), zC = XC(), fce = gc().browsers, dce = d0().browserVersions, hce = Math.log(2);
function mce(e) {
let t = Object.keys(zC).reduce((s, a) => (e & zC[a] && s.push(a), s), []), r = e >> 7, n = [];
for (; r; ) {
let s = Math.floor(Math.log(r) / hce) + 1;
n.unshift(`#${s}`), r -= Math.pow(2, s - 1);
}
return t.concat(n).join(" ");
}
i(mce, "unpackSupport");
function QC(e) {
let t = {
status: pce[e.B],
title: e.C,
shown: e.D
};
return t.stats = Object.keys(e.A).reduce((r, n) => {
let s = e.A[n];
return r[fce[n]] = Object.keys(s).reduce(
(a, o) => {
let l = s[o].split(" "), u = mce(o);
return l.forEach((c) => a[dce[c]] = u), a;
},
{}
), r;
}, {}), t;
}
i(QC, "unpackFeature");
g0.exports = QC;
g0.exports.default = QC;
});
// ../node_modules/caniuse-lite/dist/unpacker/region.js
var t2 = P((CCe, b0) => {
"use strict";
var yce = gc().browsers;
function e2(e) {
return Object.keys(e).reduce((t, r) => {
let n = e[r];
return t[yce[r]] = Object.keys(n).reduce((s, a) => {
let o = n[a];
return a === "_" ? o.split(" ").forEach((l) => s[l] = null) : s[a] = o, s;
}, {}), t;
}, {});
}
i(e2, "unpackRegion");
b0.exports = e2;
b0.exports.default = e2;
});
// ../node_modules/browserslist/node.js
var p2 = P((wCe, Co) => {
var gce = ZC().default, bce = t2().default, bs = ce("fs"), Qr = ce("path"), zt = y0(), r2 = /^\s*\[(.+)]\s*$/, Ece = /^browserslist-config-/,
Tce = /@[^/]+(?:\/[^/]+)?\/browserslist-config(?:-|$|\/)/, n2 = "Browserslist config should be a string or an array of strings with browse\
r queries", E0 = !1, s2 = {}, i2 = {}, bc = {};
function a2(e) {
var t = " Use `dangerousExtend` option to disable.";
if (!Ece.test(e) && !Tce.test(e))
throw new zt(
"Browserslist config needs `browserslist-config-` prefix. " + t
);
if (e.replace(/^@[^/]+\//, "").indexOf(".") !== -1)
throw new zt(
"`.` not allowed in Browserslist config name. " + t
);
if (e.indexOf("node_modules") !== -1)
throw new zt(
"`node_modules` not allowed in Browserslist config." + t
);
}
i(a2, "checkExtend");
function qn(e) {
return bs.existsSync(e) && bs.statSync(e).isFile();
}
i(qn, "isFile");
function Sce(e) {
return bs.existsSync(e) && bs.statSync(e).isDirectory();
}
i(Sce, "isDirectory");
function o2(e, t, r) {
var n = Qr.resolve(e), s = [], a;
do {
if (!xce(n))
break;
if (r && n in r) {
a = r[n];
break;
}
if (s.push(n), !!Sce(n)) {
var o = t(n);
if (typeof o < "u") {
a = o;
break;
}
}
} while (n !== (n = Qr.dirname(n)));
return r && !process.env.BROWSERSLIST_DISABLE_CACHE && s.forEach(function(l) {
r[l] = a;
}), a;
}
i(o2, "eachParent");
function xce(e) {
if (!process.env.BROWSERSLIST_ROOT_PATH) return !0;
var t = Qr.resolve(process.env.BROWSERSLIST_ROOT_PATH);
return Qr.relative(t, e).substring(0, 2) !== "..";
}
i(xce, "pathInRoot");
function vce(e) {
if (Array.isArray(e)) {
for (var t = 0; t < e.length; t++)
if (typeof e[t] != "string")
throw new zt(n2);
} else if (typeof e != "string")
throw new zt(n2);
}
i(vce, "check");
function T0(e, t) {
if (typeof e != "object") return e;
var r;
if (typeof t.env == "string" ? r = t.env : process.env.BROWSERSLIST_ENV ? r = process.env.BROWSERSLIST_ENV : process.env.NODE_ENV ? r = process.
env.NODE_ENV : r = "production", t.throwOnMissing && r && r !== "defaults" && !e[r])
throw new zt(
"Missing config for Browserslist environment `" + r + "`"
);
return e[r] || e.defaults;
}
i(T0, "pickEnv");
function c2(e) {
var t = bs.readFileSync(e).toString().replace(/^\uFEFF/m, ""), r;
if (t.indexOf('"browserslist"') >= 0)
r = JSON.parse(t).browserslist;
else if (t.indexOf('"browserlist"') >= 0) {
var n = JSON.parse(t);
if (n.browserlist && !n.browserslist)
throw new zt(
"`browserlist` key instead of `browserslist` in " + e
);
}
(Array.isArray(r) || typeof r == "string") && (r = { defaults: r });
for (var s in r)
vce(r[s]);
return r;
}
i(c2, "parsePackage");
function l2(e) {
if (e in bc)
return bc[e];
var t = Qr.basename(e) === "package.json", r = t ? c2(e) : Co.exports.readConfig(e);
return process.env.BROWSERSLIST_DISABLE_CACHE || (bc[e] = r), r;
}
i(l2, "parsePackageOrReadConfig");
function Pce(e) {
var t = 0;
for (var r in e) {
var n = e[r].releaseDate || {};
for (var s in n)
t < n[s] && (t = n[s]);
}
return t * 1e3;
}
i(Pce, "latestReleaseTime");
function Ace(e) {
var t = /* @__PURE__ */ new Date(), r = new Date(e), n = t.getFullYear() - r.getFullYear(), s = t.getMonth() - r.getMonth();
return n * 12 + s;
}
i(Ace, "getMonthsPassed");
function u2(e, t) {
if (e || (e = {}), t && "dataByBrowser" in t && (t = t.dataByBrowser), typeof t == "object") {
var r = {};
for (var n in t) {
var s = Object.keys(t[n]);
if (s.length === 1 && e[n] && e[n].versions.length === 1) {
var a = e[n].versions[0];
r[n] = {}, r[n][a] = t[n][s[0]];
} else
r[n] = t[n];
}
return r;
}
}
i(u2, "normalizeStats");
function Cce(e, t) {
for (var r in e) {
var n = e[r];
if ("0" in n) {
var s = t[r].versions;
n[s[s.length - 1]] = n[0], delete n[0];
}
}
}
i(Cce, "normalizeUsageData");
Co.exports = {
loadQueries: /* @__PURE__ */ i(function(t, r) {
!t.dangerousExtend && !process.env.BROWSERSLIST_DANGEROUS_EXTEND && a2(r);
var n = ce(ce.resolve(r, { paths: [".", t.path] }));
if (n) {
if (Array.isArray(n))
return n;
if (typeof n == "object")
return n.defaults || (n.defaults = []), T0(n, t, r);
}
throw new zt(
"`" + r + "` config exports not an array of queries or an object of envs"
);
}, "loadQueries"),
loadStat: /* @__PURE__ */ i(function(t, r, n) {
!t.dangerousExtend && !process.env.BROWSERSLIST_DANGEROUS_EXTEND && a2(r);
var s = ce(ce.resolve(
Qr.join(r, "browserslist-stats.json"),
{ paths: ["."] }
));
return u2(n, s);
}, "loadStat"),
getStat: /* @__PURE__ */ i(function(t, r) {
var n;
if (t.stats ? n = t.stats : process.env.BROWSERSLIST_STATS ? n = process.env.BROWSERSLIST_STATS : t.path && Qr.resolve && bs.existsSync &&
(n = o2(t.path, function(s) {
var a = Qr.join(s, "browserslist-stats.json");
return qn(a) ? a : void 0;
}, s2)), typeof n == "string")
try {
n = JSON.parse(bs.readFileSync(n));
} catch {
throw new zt("Can't read " + n);
}
return u2(r, n);
}, "getStat"),
loadConfig: /* @__PURE__ */ i(function(t) {
if (process.env.BROWSERSLIST)
return process.env.BROWSERSLIST;
if (t.config || process.env.BROWSERSLIST_CONFIG) {
var r = t.config || process.env.BROWSERSLIST_CONFIG;
return T0(l2(r), t);
} else return t.path ? T0(Co.exports.findConfig(t.path), t) : void 0;
}, "loadConfig"),
loadCountry: /* @__PURE__ */ i(function(t, r, n) {
var s = r.replace(/[^\w-]/g, "");
if (!t[s]) {
var a;
try {
a = ce("caniuse-lite/data/regions/" + s + ".js");
} catch {
throw new zt("Unknown region name `" + s + "`.");
}
var o = bce(a);
Cce(o, n), t[r] = {};
for (var l in o)
for (var u in o[l])
t[r][l + " " + u] = o[l][u];
}
}, "loadCountry"),
loadFeature: /* @__PURE__ */ i(function(t, r) {
if (r = r.replace(/[^\w-]/g, ""), !t[r]) {
var n;
try {
n = ce("caniuse-lite/data/features/" + r + ".js");
} catch {
throw new zt("Unknown feature name `" + r + "`.");
}
var s = gce(n).stats;
t[r] = {};
for (var a in s) {
t[r][a] = {};
for (var o in s[a])
t[r][a][o] = s[a][o];
}
}
}, "loadFeature"),
parseConfig: /* @__PURE__ */ i(function(t) {
var r = { defaults: [] }, n = ["defaults"];
return t.toString().replace(/#[^\n]*/g, "").split(/\n|,/).map(function(s) {
return s.trim();
}).filter(function(s) {
return s !== "";
}).forEach(function(s) {
r2.test(s) ? (n = s.match(r2)[1].trim().split(" "), n.forEach(function(a) {
if (r[a])
throw new zt(
"Duplicate section " + a + " in Browserslist config"
);
r[a] = [];
})) : n.forEach(function(a) {
r[a].push(s);
});
}), r;
}, "parseConfig"),
readConfig: /* @__PURE__ */ i(function(t) {
if (!qn(t))
throw new zt("Can't read " + t + " config");
return Co.exports.parseConfig(bs.readFileSync(t));
}, "readConfig"),
findConfigFile: /* @__PURE__ */ i(function(t) {
return o2(t, function(r) {
var n = Qr.join(r, "browserslist"), s = Qr.join(r, "package.json"), a = Qr.join(r, ".browserslistrc"), o;
if (qn(s))
try {
o = c2(s);
} catch (l) {
if (l.name === "BrowserslistError") throw l;
console.warn(
"[Browserslist] Could not parse " + s + ". Ignoring it."
);
}
if (qn(n) && o)
throw new zt(
r + " contains both browserslist and package.json with browsers"
);
if (qn(a) && o)
throw new zt(
r + " contains both .browserslistrc and package.json with browsers"
);
if (qn(n) && qn(a))
throw new zt(
r + " contains both .browserslistrc and browserslist"
);
if (qn(n))
return n;
if (qn(a))
return a;
if (o)
return s;
}, i2);
}, "findConfigFile"),
findConfig: /* @__PURE__ */ i(function(t) {
var r = this.findConfigFile(t);
return r ? l2(r) : void 0;
}, "findConfig"),
clearCaches: /* @__PURE__ */ i(function() {
E0 = !1, s2 = {}, i2 = {}, bc = {}, this.cache = {};
}, "clearCaches"),
oldDataWarning: /* @__PURE__ */ i(function(t) {
if (!E0 && (E0 = !0, !process.env.BROWSERSLIST_IGNORE_OLD_DATA)) {
var r = Pce(t), n = Ace(r);
if (r !== 0 && n >= 6) {
var s = n + " " + (n > 1 ? "months" : "month");
console.warn(
"Browserslist: browsers data (caniuse-lite) is " + s + ` old. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme`
);
}
}
}, "oldDataWarning"),
currentNode: /* @__PURE__ */ i(function() {
return "node " + process.versions.node;
}, "currentNode"),
env: process.env
};
});
// ../node_modules/browserslist/parse.js
var y2 = P((_Ce, m2) => {
var f2 = /^\s+and\s+(.*)/i, d2 = /^(?:,\s*|\s+or\s+)(.*)/i;
function h2(e) {
return Array.isArray(e) ? e.reduce(function(t, r) {
return t.concat(h2(r));
}, []) : [e];
}
i(h2, "flatten");
function Dce(e, t) {
for (var r = e.length, n = 1; n <= r; n++) {
var s = e.substr(-n, n);
if (t(s, n, r))
return e.slice(0, -n);
}
return "";
}
i(Dce, "find");
function S0(e, t) {
var r = { query: t };
t.indexOf("not ") === 0 && (r.not = !0, t = t.slice(4));
for (var n in e) {
var s = e[n], a = t.match(s.regexp);
if (a) {
r.type = n;
for (var o = 0; o < s.matches.length; o++)
r[s.matches[o]] = a[o + 1];
return r;
}
}
return r.type = "unknown", r;
}
i(S0, "matchQuery");
function wce(e, t, r) {
var n;
return Dce(t, function(s, a, o) {
return f2.test(s) ? (n = S0(e, s.match(f2)[1]), n.compose = "and", r.unshift(n), !0) : d2.test(s) ? (n = S0(e, s.match(d2)[1]), n.compose =
"or", r.unshift(n), !0) : a === o ? (n = S0(e, s.trim()), n.compose = "or", r.unshift(n), !0) : !1;
});
}
i(wce, "matchBlock");
m2.exports = /* @__PURE__ */ i(function(t, r) {
return Array.isArray(r) || (r = [r]), h2(
r.map(function(n) {
var s = [];
do
n = wce(t, n, s);
while (n);
return s;
})
);
}, "parse");
});
// ../node_modules/browserslist/index.js
var B2 = P((NCe, N2) => {
var Ice = _C(), Un = VC().agents, Zr = WC(), x0 = KC(), Pc = ce("path"), yr = y0(), qt = p2(), _ce = y2(), Oce = 365.259641 * 24 * 60 * 60 *
1e3, A2 = "37", Nce = 14;
function C2(e, t) {
return (e + ".").indexOf(t + ".") === 0;
}
i(C2, "isVersionsMatch");
function Bce(e) {
var t = e.slice(1);
return be.nodeVersions.some(function(r) {
return C2(r, t);
});
}
i(Bce, "isEolReleased");
function g2(e) {
return e.filter(function(t) {
return typeof t == "string";
});
}
i(g2, "normalize");
function Ec(e) {
var t = e;
return e.split(".").length === 3 && (t = e.split(".").slice(0, -1).join(".")), t;
}
i(Ec, "normalizeElectron");
function Es(e) {
return /* @__PURE__ */ i(function(r) {
return e + " " + r;
}, "mapName");
}
i(Es, "nameMapper");
function D0(e) {
return parseInt(e.split(".")[0]);
}
i(D0, "getMajor");
function Tc(e, t) {
if (e.length === 0) return [];
var r = D2(e.map(D0)), n = r[r.length - t];
if (!n)
return e;
for (var s = [], a = e.length - 1; a >= 0 && !(n > D0(e[a])); a--)
s.unshift(e[a]);
return s;
}
i(Tc, "getMajorVersions");
function D2(e) {
for (var t = [], r = 0; r < e.length; r++)
t.indexOf(e[r]) === -1 && t.push(e[r]);
return t;
}
i(D2, "uniq");
function Ac(e, t, r) {
for (var n in r)
e[t + " " + n] = r[n];
}
i(Ac, "fillUsage");
function b2(e, t) {
if (t = parseFloat(t), e === ">")
return function(n) {
return r(n) > t;
};
return e === ">=" ? function(n) {
return r(n) >= t;
} : e === "<" ? function(n) {
return parseFloat(n) < t;
} : function(n) {
return parseFloat(n) <= t;
};
function r(n) {
return parseFloat(n.split("-")[1] || n);
}
}
i(b2, "generateFilter");
function kce(e, t) {
return t = t.split(".").map(Ts), t[1] = t[1] || 0, t[2] = t[2] || 0, e === ">" ? function(r) {
return r = r.split(".").map(Ts), Do(r, t) > 0;
} : e === ">=" ? function(r) {
return r = r.split(".").map(Ts), Do(r, t) >= 0;
} : e === "<" ? function(r) {
return r = r.split(".").map(Ts), Do(t, r) > 0;
} : function(r) {
return r = r.split(".").map(Ts), Do(t, r) >= 0;
};
}
i(kce, "generateSemverFilter");
function Ts(e) {
return parseInt(e);
}
i(Ts, "parseSimpleInt");
function vc(e, t) {
return e < t ? -1 : e > t ? 1 : 0;
}
i(vc, "compare");
function Do(e, t) {
return vc(parseInt(e[0]), parseInt(t[0])) || vc(parseInt(e[1] || "0"), parseInt(t[1] || "0")) || vc(parseInt(e[2] || "0"), parseInt(t[2] ||
"0"));
}
i(Do, "compareSemver");
function E2(e, t) {
switch (t = t.split(".").map(Ts), typeof t[1] > "u" && (t[1] = "x"), e) {
case "<=":
return function(r) {
return r = r.split(".").map(Ts), T2(r, t) <= 0;
};
case ">=":
default:
return function(r) {
return r = r.split(".").map(Ts), T2(r, t) >= 0;
};
}
}
i(E2, "semverFilterLoose");
function T2(e, t) {
return e[0] !== t[0] ? e[0] < t[0] ? -1 : 1 : t[1] === "x" ? 0 : e[1] !== t[1] ? e[1] < t[1] ? -1 : 1 : 0;
}
i(T2, "compareSemverLoose");
function Fce(e, t) {
return e.versions.indexOf(t) !== -1 ? t : be.versionAliases[e.name][t] ? be.versionAliases[e.name][t] : !1;
}
i(Fce, "resolveVersion");
function Sc(e, t) {
var r = Fce(e, t);
return r || (e.versions.length === 1 ? e.versions[0] : !1);
}
i(Sc, "normalizeVersion");
function w2(e, t) {
return e = e / 1e3, Object.keys(Un).reduce(function(r, n) {
var s = Ss(n, t);
if (!s) return r;
var a = Object.keys(s.releaseDate).filter(function(o) {
var l = s.releaseDate[o];
return l !== null && l >= e;
});
return r.concat(a.map(Es(s.name)));
}, []);
}
i(w2, "filterByYear");
function S2(e) {
return {
name: e.name,
versions: e.versions,
released: e.released,
releaseDate: e.releaseDate
};
}
i(S2, "cloneData");
function Ss(e, t) {
if (e = e.toLowerCase(), e = be.aliases[e] || e, t.mobileToDesktop && be.desktopNames[e]) {
var r = be.data[be.desktopNames[e]];
if (e === "android")
return Lce(S2(be.data[e]), r);
var n = S2(r);
return n.name = e, n;
}
return be.data[e];
}
i(Ss, "byName");
function x2(e, t) {
var r = t.indexOf(A2);
return e.filter(function(n) {
return /^(?:[2-4]\.|[34]$)/.test(n);
}).concat(t.slice(r));
}
i(x2, "normalizeAndroidVersions");
function jce(e) {
var t = {};
for (var r in e)
t[r] = e[r];
return t;
}
i(jce, "copyObject");
function Lce(e, t) {
return e.released = x2(e.released, t.released), e.versions = x2(e.versions, t.versions), e.releaseDate = jce(e.releaseDate), e.released.
forEach(function(r) {
e.releaseDate[r] === void 0 && (e.releaseDate[r] = t.releaseDate[r]);
}), e;
}
i(Lce, "normalizeAndroidData");
function ea(e, t) {
var r = Ss(e, t);
if (!r) throw new yr("Unknown browser " + e);
return r;
}
i(ea, "checkName");
function Mce(e) {
return new yr(
"Unknown browser query `" + e + "`. Maybe you are using old Browserslist or made typo in query."
);
}
i(Mce, "unknownQuery");
function xc(e, t, r, n) {
var s = 1;
switch (t) {
case "android":
if (n.mobileToDesktop) return e;
var a = be.data.chrome.released;
s = a.length - a.indexOf(A2);
break;
case "op_mob":
var o = be.data.op_mob.released.slice(-1)[0];
s = D0(o) - Nce + 1;
break;
default:
return e;
}
return r <= s ? e.slice(-1) : e.slice(s - 1 - r);
}
i(xc, "filterJumps");
function v2(e, t) {
return typeof e == "string" && (e.indexOf("y") >= 0 || t && e.indexOf("a") >= 0);
}
i(v2, "isSupported");
function ta(e, t) {
return w0(e).reduce(function(r, n, s) {
if (n.not && s === 0)
throw new yr(
"Write any browsers query (for instance, `defaults`) before `" + n.query + "`"
);
var a = I0[n.type], o = a.select.call(be, t, n).map(function(u) {
var c = u.split(" ");
return c[1] === "0" ? c[0] + " " + Ss(c[0], t).versions[0] : u;
});
if (n.compose === "and")
return n.not ? r.filter(function(u) {
return o.indexOf(u) === -1;
}) : r.filter(function(u) {
return o.indexOf(u) !== -1;
});
if (n.not) {
var l = {};
return o.forEach(function(u) {
l[u] = !0;
}), r.filter(function(u) {
return !l[u];
});
}
return r.concat(o);
}, []);
}
i(ta, "resolve");
function I2(e) {
return typeof e > "u" && (e = {}), typeof e.path > "u" && (e.path = Pc.resolve ? Pc.resolve(".") : "."), e;
}
i(I2, "prepareOpts");
function _2(e, t) {
if (typeof e > "u" || e === null) {
var r = be.loadConfig(t);
r ? e = r : e = be.defaults;
}
return e;
}
i(_2, "prepareQueries");
function O2(e) {
if (!(typeof e == "string" || Array.isArray(e)))
throw new yr(
"Browser queries must be an array or string. Got " + typeof e + "."
);
}
i(O2, "checkQueries");
var v0 = {}, P0 = {};
function be(e, t) {
t = I2(t), e = _2(e, t), O2(e);
var r = w0(e).some(function(u) {
return I0[u.type].needsPath;
}), n = {
ignoreUnknownVersions: t.ignoreUnknownVersions,
dangerousExtend: t.dangerousExtend,
mobileToDesktop: t.mobileToDesktop,
env: t.env
};
r && (n.path = t.path), qt.oldDataWarning(be.data);
var s = qt.getStat(t, be.data);
if (s) {
n.customUsage = {};
for (var a in s)
Ac(n.customUsage, a, s[a]);
}
var o = JSON.stringify([e, n]);
if (v0[o]) return v0[o];
var l = D2(ta(e, n)).sort(function(u, c) {
if (u = u.split(" "), c = c.split(" "), u[0] === c[0]) {
var p = u[1].split("-")[0], f = c[1].split("-")[0];
return Do(f.split("."), p.split("."));
} else
return vc(u[0], c[0]);
});
return qt.env.BROWSERSLIST_DISABLE_CACHE || (v0[o] = l), l;
}
i(be, "browserslist");
function w0(e) {
var t = JSON.stringify(e);
if (t in P0) return P0[t];
var r = _ce(I0, e);
return qt.env.BROWSERSLIST_DISABLE_CACHE || (P0[t] = r), r;
}
i(w0, "parseQueries");
be.parse = function(e, t) {
return t = I2(t), e = _2(e, t), O2(e), w0(e);
};
be.cache = {};
be.data = {};
be.usage = {
global: {},
custom: null
};
be.defaults = ["> 0.5%", "last 2 versions", "Firefox ESR", "not dead"];
be.aliases = {
fx: "firefox",
ff: "firefox",
ios: "ios_saf",
explorer: "ie",
blackberry: "bb",
explorermobile: "ie_mob",
operamini: "op_mini",
operamobile: "op_mob",
chromeandroid: "and_chr",
firefoxandroid: "and_ff",
ucandroid: "and_uc",
qqandroid: "and_qq"
};
be.desktopNames = {
and_chr: "chrome",
and_ff: "firefox",
ie_mob: "ie",
android: "chrome"
// has extra processing logic
};
be.versionAliases = {};
be.clearCaches = qt.clearCaches;
be.parseConfig = qt.parseConfig;
be.readConfig = qt.readConfig;
be.findConfigFile = qt.findConfigFile;
be.findConfig = qt.findConfig;
be.loadConfig = qt.loadConfig;
be.coverage = function(e, t) {
var r;
if (typeof t > "u")
r = be.usage.global;
else if (t === "my stats") {
var n = {};
n.path = Pc.resolve ? Pc.resolve(".") : ".";
var s = qt.getStat(n);
if (!s)
throw new yr("Custom usage statistics was not provided");
r = {};
for (var a in s)
Ac(r, a, s[a]);
} else if (typeof t == "string")
t.length > 2 ? t = t.toLowerCase() : t = t.toUpperCase(), qt.loadCountry(be.usage, t, be.data), r = be.usage[t];
else {
"dataByBrowser" in t && (t = t.dataByBrowser), r = {};
for (var o in t)
for (var l in t[o])
r[o + " " + l] = t[o][l];
}
return e.reduce(function(u, c) {
var p = r[c];
return p === void 0 && (p = r[c.replace(/ \S+$/, " 0")]), u + (p || 0);
}, 0);
};
function A0(e, t) {
var r = be.nodeVersions.filter(function(n) {
return C2(n, t.version);
});
if (r.length === 0) {
if (e.ignoreUnknownVersions)
return [];
throw new yr(
"Unknown version " + t.version + " of Node.js"
);
}
return ["node " + r[r.length - 1]];
}
i(A0, "nodeQuery");
function C0(e, t) {
var r = parseInt(t.year), n = parseInt(t.month || "01") - 1, s = parseInt(t.day || "01");
return w2(Date.UTC(r, n, s, 0, 0, 0), e);
}
i(C0, "sinceQuery");
function P2(e, t) {
var r = parseFloat(t.coverage), n = be.usage.global;
if (t.place)
if (t.place.match(/^my\s+stats$/i)) {
if (!e.customUsage)
throw new yr("Custom usage statistics was not provided");
n = e.customUsage;
} else {
var s;
t.place.length === 2 ? s = t.place.toUpperCase() : s = t.place.toLowerCase(), qt.loadCountry(be.usage, s, be.data), n = be.usage[s];
}
for (var a = Object.keys(n).sort(function(p, f) {
return n[f] - n[p];
}), o = 0, l = [], u, c = 0; c < a.length && (u = a[c], !(n[u] === 0 || (o += n[u], l.push(u), o >= r))); c++)
;
return l;
}
i(P2, "coverQuery");
var I0 = {
last_major_versions: {
matches: ["versions"],
regexp: /^last\s+(\d+)\s+major\s+versions?$/i,
select: /* @__PURE__ */ i(function(e, t) {
return Object.keys(Un).reduce(function(r, n) {
var s = Ss(n, e);
if (!s) return r;
var a = Tc(s.released, t.versions);
return a = a.map(Es(s.name)), a = xc(a, s.name, t.versions, e), r.concat(a);
}, []);
}, "select")
},
last_versions: {
matches: ["versions"],
regexp: /^last\s+(\d+)\s+versions?$/i,
select: /* @__PURE__ */ i(function(e, t) {
return Object.keys(Un).reduce(function(r, n) {
var s = Ss(n, e);
if (!s) return r;
var a = s.released.slice(-t.versions);
return a = a.map(Es(s.name)), a = xc(a, s.name, t.versions, e), r.concat(a);
}, []);
}, "select")
},
last_electron_major_versions: {
matches: ["versions"],
regexp: /^last\s+(\d+)\s+electron\s+major\s+versions?$/i,
select: /* @__PURE__ */ i(function(e, t) {
var r = Tc(Object.keys(Zr), t.versions);
return r.map(function(n) {
return "chrome " + Zr[n];
});
}, "select")
},
last_node_major_versions: {
matches: ["versions"],
regexp: /^last\s+(\d+)\s+node\s+major\s+versions?$/i,
select: /* @__PURE__ */ i(function(e, t) {
return Tc(be.nodeVersions, t.versions).map(
function(r) {
return "node " + r;
}
);
}, "select")
},
last_browser_major_versions: {
matches: ["versions", "browser"],
regexp: /^last\s+(\d+)\s+(\w+)\s+major\s+versions?$/i,
select: /* @__PURE__ */ i(function(e, t) {
var r = ea(t.browser, e), n = Tc(r.released, t.versions), s = n.map(Es(r.name));
return s = xc(s, r.name, t.versions, e), s;
}, "select")
},
last_electron_versions: {
matches: ["versions"],
regexp: /^last\s+(\d+)\s+electron\s+versions?$/i,
select: /* @__PURE__ */ i(function(e, t) {
return Object.keys(Zr).slice(-t.versions).map(function(r) {
return "chrome " + Zr[r];
});
}, "select")
},
last_node_versions: {
matches: ["versions"],
regexp: /^last\s+(\d+)\s+node\s+versions?$/i,
select: /* @__PURE__ */ i(function(e, t) {
return be.nodeVersions.slice(-t.versions).map(function(r) {
return "node " + r;
});
}, "select")
},
last_browser_versions: {
matches: ["versions", "browser"],
regexp: /^last\s+(\d+)\s+(\w+)\s+versions?$/i,
select: /* @__PURE__ */ i(function(e, t) {
var r = ea(t.browser, e), n = r.released.slice(-t.versions).map(Es(r.name));
return n = xc(n, r.name, t.versions, e), n;
}, "select")
},
unreleased_versions: {
matches: [],
regexp: /^unreleased\s+versions$/i,
select: /* @__PURE__ */ i(function(e) {
return Object.keys(Un).reduce(function(t, r) {
var n = Ss(r, e);
if (!n) return t;
var s = n.versions.filter(function(a) {
return n.released.indexOf(a) === -1;
});
return s = s.map(Es(n.name)), t.concat(s);
}, []);
}, "select")
},
unreleased_electron_versions: {
matches: [],
regexp: /^unreleased\s+electron\s+versions?$/i,
select: /* @__PURE__ */ i(function() {
return [];
}, "select")
},
unreleased_browser_versions: {
matches: ["browser"],
regexp: /^unreleased\s+(\w+)\s+versions?$/i,
select: /* @__PURE__ */ i(function(e, t) {
var r = ea(t.browser, e);
return r.versions.filter(function(n) {
return r.released.indexOf(n) === -1;
}).map(Es(r.name));
}, "select")
},
last_years: {
matches: ["years"],
regexp: /^last\s+(\d*.?\d+)\s+years?$/i,
select: /* @__PURE__ */ i(function(e, t) {
return w2(Date.now() - Oce * t.years, e);
}, "select")
},
since_y: {
matches: ["year"],
regexp: /^since (\d+)$/i,
select: C0
},
since_y_m: {
matches: ["year", "month"],
regexp: /^since (\d+)-(\d+)$/i,
select: C0
},
since_y_m_d: {
matches: ["year", "month", "day"],
regexp: /^since (\d+)-(\d+)-(\d+)$/i,
select: C0
},
popularity: {
matches: ["sign", "popularity"],
regexp: /^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%$/,
select: /* @__PURE__ */ i(function(e, t) {
var r = parseFloat(t.popularity), n = be.usage.global;
return Object.keys(n).reduce(function(s, a) {
return t.sign === ">" ? n[a] > r && s.push(a) : t.sign === "<" ? n[a] < r && s.push(a) : t.sign === "<=" ? n[a] <= r && s.push(a) :
n[a] >= r && s.push(a), s;
}, []);
}, "select")
},
popularity_in_my_stats: {
matches: ["sign", "popularity"],
regexp: /^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+my\s+stats$/,
select: /* @__PURE__ */ i(function(e, t) {
var r = parseFloat(t.popularity);
if (!e.customUsage)
throw new yr("Custom usage statistics was not provided");
var n = e.customUsage;
return Object.keys(n).reduce(function(s, a) {
var o = n[a];
return o == null || (t.sign === ">" ? o > r && s.push(a) : t.sign === "<" ? o < r && s.push(a) : t.sign === "<=" ? o <= r && s.push(
a) : o >= r && s.push(a)), s;
}, []);
}, "select")
},
popularity_in_config_stats: {
matches: ["sign", "popularity", "config"],
regexp: /^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+(\S+)\s+stats$/,
select: /* @__PURE__ */ i(function(e, t) {
var r = parseFloat(t.popularity), n = qt.loadStat(e, t.config, be.data);
if (n) {
e.customUsage = {};
for (var s in n)
Ac(e.customUsage, s, n[s]);
}
if (!e.customUsage)
throw new yr("Custom usage statistics was not provided");
var a = e.customUsage;
return Object.keys(a).reduce(function(o, l) {
var u = a[l];
return u == null || (t.sign === ">" ? u > r && o.push(l) : t.sign === "<" ? u < r && o.push(l) : t.sign === "<=" ? u <= r && o.push(
l) : u >= r && o.push(l)), o;
}, []);
}, "select")
},
popularity_in_place: {
matches: ["sign", "popularity", "place"],
regexp: /^(>=?|<=?)\s*(\d+|\d+\.\d+|\.\d+)%\s+in\s+((alt-)?\w\w)$/,
select: /* @__PURE__ */ i(function(e, t) {
var r = parseFloat(t.popularity), n = t.place;
n.length === 2 ? n = n.toUpperCase() : n = n.toLowerCase(), qt.loadCountry(be.usage, n, be.data);
var s = be.usage[n];
return Object.keys(s).reduce(function(a, o) {
var l = s[o];
return l == null || (t.sign === ">" ? l > r && a.push(o) : t.sign === "<" ? l < r && a.push(o) : t.sign === "<=" ? l <= r && a.push(
o) : l >= r && a.push(o)), a;
}, []);
}, "select")
},
cover: {
matches: ["coverage"],
regexp: /^cover\s+(\d+|\d+\.\d+|\.\d+)%$/i,
select: P2
},
cover_in: {
matches: ["coverage", "place"],
regexp: /^cover\s+(\d+|\d+\.\d+|\.\d+)%\s+in\s+(my\s+stats|(alt-)?\w\w)$/i,
select: P2
},
supports: {
matches: ["supportType", "feature"],
regexp: /^(?:(fully|partially)\s+)?supports\s+([\w-]+)$/,
select: /* @__PURE__ */ i(function(e, t) {
qt.loadFeature(be.cache, t.feature);
var r = t.supportType !== "fully", n = be.cache[t.feature], s = [];
for (var a in n) {
for (var o = Ss(a, e), l = o.released.length - 1; l >= 0 && !(o.released[l] in n[a]); )
l--;
var u = e.mobileToDesktop && a in be.desktopNames && v2(n[a][o.released[l]], r);
o.versions.forEach(function(c) {
var p = n[a][c];
p === void 0 && u && (p = n[be.desktopNames[a]][c]), v2(p, r) && s.push(a + " " + c);
});
}
return s;
}, "select")
},
electron_range: {
matches: ["from", "to"],
regexp: /^electron\s+([\d.]+)\s*-\s*([\d.]+)$/i,
select: /* @__PURE__ */ i(function(e, t) {
var r = Ec(t.from), n = Ec(t.to), s = parseFloat(t.from), a = parseFloat(t.to);
if (!Zr[r])
throw new yr("Unknown version " + s + " of electron");
if (!Zr[n])
throw new yr("Unknown version " + a + " of electron");
return Object.keys(Zr).filter(function(o) {
var l = parseFloat(o);
return l >= s && l <= a;
}).map(function(o) {
return "chrome " + Zr[o];
});
}, "select")
},
node_range: {
matches: ["from", "to"],
regexp: /^node\s+([\d.]+)\s*-\s*([\d.]+)$/i,
select: /* @__PURE__ */ i(function(e, t) {
return be.nodeVersions.filter(E2(">=", t.from)).filter(E2("<=", t.to)).map(function(r) {
return "node " + r;
});
}, "select")
},
browser_range: {
matches: ["browser", "from", "to"],
regexp: /^(\w+)\s+([\d.]+)\s*-\s*([\d.]+)$/i,
select: /* @__PURE__ */ i(function(e, t) {
var r = ea(t.browser, e), n = parseFloat(Sc(r, t.from) || t.from), s = parseFloat(Sc(r, t.to) || t.to);
function a(o) {
var l = parseFloat(o);
return l >= n && l <= s;
}
return i(a, "filter"), r.released.filter(a).map(Es(r.name));
}, "select")
},
electron_ray: {
matches: ["sign", "version"],
regexp: /^electron\s*(>=?|<=?)\s*([\d.]+)$/i,
select: /* @__PURE__ */ i(function(e, t) {
var r = Ec(t.version);
return Object.keys(Zr).filter(b2(t.sign, r)).map(function(n) {
return "chrome " + Zr[n];
});
}, "select")
},
node_ray: {
matches: ["sign", "version"],
regexp: /^node\s*(>=?|<=?)\s*([\d.]+)$/i,
select: /* @__PURE__ */ i(function(e, t) {
return be.nodeVersions.filter(kce(t.sign, t.version)).map(function(r) {
return "node " + r;
});
}, "select")
},
browser_ray: {
matches: ["browser", "sign", "version"],
regexp: /^(\w+)\s*(>=?|<=?)\s*([\d.]+)$/,
select: /* @__PURE__ */ i(function(e, t) {
var r = t.version, n = ea(t.browser, e), s = be.versionAliases[n.name][r];
return s && (r = s), n.released.filter(b2(t.sign, r)).map(function(a) {
return n.name + " " + a;
});
}, "select")
},
firefox_esr: {
matches: [],
regexp: /^(firefox|ff|fx)\s+esr$/i,
select: /* @__PURE__ */ i(function() {
return ["firefox 128"];
}, "select")
},
opera_mini_all: {
matches: [],
regexp: /(operamini|op_mini)\s+all/i,
select: /* @__PURE__ */ i(function() {
return ["op_mini all"];
}, "select")
},
electron_version: {
matches: ["version"],
regexp: /^electron\s+([\d.]+)$/i,
select: /* @__PURE__ */ i(function(e, t) {
var r = Ec(t.version), n = Zr[r];
if (!n)
throw new yr(
"Unknown version " + t.version + " of electron"
);
return ["chrome " + n];
}, "select")
},
node_major_version: {
matches: ["version"],
regexp: /^node\s+(\d+)$/i,
select: A0
},
node_minor_version: {
matches: ["version"],
regexp: /^node\s+(\d+\.\d+)$/i,
select: A0
},
node_patch_version: {
matches: ["version"],
regexp: /^node\s+(\d+\.\d+\.\d+)$/i,
select: A0
},
current_node: {
matches: [],
regexp: /^current\s+node$/i,
select: /* @__PURE__ */ i(function(e) {
return [qt.currentNode(ta, e)];
}, "select")
},
maintained_node: {
matches: [],
regexp: /^maintained\s+node\s+versions$/i,
select: /* @__PURE__ */ i(function(e) {
var t = Date.now(), r = Object.keys(x0).filter(function(n) {
return t < Date.parse(x0[n].end) && t > Date.parse(x0[n].start) && Bce(n);
}).map(function(n) {
return "node " + n.slice(1);
});
return ta(r, e);
}, "select")
},
phantomjs_1_9: {
matches: [],
regexp: /^phantomjs\s+1.9$/i,
select: /* @__PURE__ */ i(function() {
return ["safari 5"];
}, "select")
},
phantomjs_2_1: {
matches: [],
regexp: /^phantomjs\s+2.1$/i,
select: /* @__PURE__ */ i(function() {
return ["safari 6"];
}, "select")
},
browser_version: {
matches: ["browser", "version"],
regexp: /^(\w+)\s+(tp|[\d.]+)$/i,
select: /* @__PURE__ */ i(function(e, t) {
var r = t.version;
/^tp$/i.test(r) && (r = "TP");
var n = ea(t.browser, e), s = Sc(n, r);
if (s)
r = s;
else if (r.indexOf(".") === -1 ? s = r + ".0" : s = r.replace(/\.0$/, ""), s = Sc(n, s), s)
r = s;
else {
if (e.ignoreUnknownVersions)
return [];
throw new yr(
"Unknown version " + r + " of " + t.browser
);
}
return [n.name + " " + r];
}, "select")
},
browserslist_config: {
matches: [],
regexp: /^browserslist config$/i,
needsPath: !0,
select: /* @__PURE__ */ i(function(e) {
return be(void 0, e);
}, "select")
},
extends: {
matches: ["config"],
regexp: /^extends (.+)$/i,
needsPath: !0,
select: /* @__PURE__ */ i(function(e, t) {
return ta(qt.loadQueries(e, t.config), e);
}, "select")
},
defaults: {
matches: [],
regexp: /^defaults$/i,
select: /* @__PURE__ */ i(function(e) {
return ta(be.defaults, e);
}, "select")
},
dead: {
matches: [],
regexp: /^dead$/i,
select: /* @__PURE__ */ i(function(e) {
var t = [
"Baidu >= 0",
"ie <= 11",
"ie_mob <= 11",
"bb <= 10",
"op_mob <= 12.1",
"samsung 4"
];
return ta(t, e);
}, "select")
},
unknown: {
matches: [],
regexp: /^(\w+)$/i,
select: /* @__PURE__ */ i(function(e, t) {
throw Ss(t.query, e) ? new yr(
"Specify versions in Browserslist query for browser " + t.query
) : Mce(t.query);
}, "select")
}
};
(function() {
for (var e in Un) {
var t = Un[e];
be.data[e] = {
name: e,
versions: g2(Un[e].versions),
released: g2(Un[e].versions.slice(0, -3)),
releaseDate: Un[e].release_date
}, Ac(be.usage.global, e, t.usage_global), be.versionAliases[e] = {};
for (var r = 0; r < t.versions.length; r++) {
var n = t.versions[r];
if (n && n.indexOf("-") !== -1)
for (var s = n.split("-"), a = 0; a < s.length; a++)
be.versionAliases[e][s[a]] = n;
}
}
be.nodeVersions = Ice.map(function(o) {
return o.version;
});
})();
N2.exports = be;
});
// ../node_modules/@babel/helper-validator-option/lib/find-suggestion.js
var O0 = P((_0) => {
"use strict";
Object.defineProperty(_0, "__esModule", {
value: !0
});
_0.findSuggestion = qce;
var {
min: k2
} = Math;
function Rce(e, t) {
let r = [], n = [], s, a, o = e.length, l = t.length;
if (!o)
return l;
if (!l)
return o;
for (a = 0; a <= l; a++)
r[a] = a;
for (s = 1; s <= o; s++) {
for (n = [s], a = 1; a <= l; a++)
n[a] = e[s - 1] === t[a - 1] ? r[a - 1] : k2(r[a - 1], r[a], n[a - 1]) + 1;
r = n;
}
return n[l];
}
i(Rce, "levenshtein");
function qce(e, t) {
let r = t.map((n) => Rce(n, e));
return t[r.indexOf(k2(...r))];
}
i(qce, "findSuggestion");
});
// ../node_modules/@babel/helper-validator-option/lib/validator.js
var F2 = P((Cc) => {
"use strict";
Object.defineProperty(Cc, "__esModule", {
value: !0
});
Cc.OptionValidator = void 0;
var Uce = O0(), N0 = class {
static {
i(this, "OptionValidator");
}
constructor(t) {
this.descriptor = t;
}
validateTopLevelOptions(t, r) {
let n = Object.keys(r);
for (let s of Object.keys(t))
if (!n.includes(s))
throw new Error(this.formatMessage(`'${s}' is not a valid top-level option.
- Did you mean '${(0, Uce.findSuggestion)(s, n)}'?`));
}
validateBooleanOption(t, r, n) {
return r === void 0 ? n : (this.invariant(typeof r == "boolean", `'${t}' option must be a boolean.`), r);
}
validateStringOption(t, r, n) {
return r === void 0 ? n : (this.invariant(typeof r == "string", `'${t}' option must be a string.`), r);
}
invariant(t, r) {
if (!t)
throw new Error(this.formatMessage(r));
}
formatMessage(t) {
return `${this.descriptor}: ${t}`;
}
};
Cc.OptionValidator = N0;
});
// ../node_modules/@babel/helper-validator-option/lib/index.js
var wc = P((Dc) => {
"use strict";
Object.defineProperty(Dc, "__esModule", {
value: !0
});
Object.defineProperty(Dc, "OptionValidator", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Vce.OptionValidator;
}, "get")
});
Object.defineProperty(Dc, "findSuggestion", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return $ce.findSuggestion;
}, "get")
});
var Vce = F2(), $ce = O0();
});
// ../node_modules/@babel/compat-data/data/native-modules.json
var j2 = P((qCe, Wce) => {
Wce.exports = {
"es6.module": {
chrome: "61",
and_chr: "61",
edge: "16",
firefox: "60",
and_ff: "60",
node: "13.2.0",
opera: "48",
op_mob: "45",
safari: "10.1",
ios: "10.3",
samsung: "8.2",
android: "61",
electron: "2.0",
ios_saf: "10.3"
}
};
});
// ../node_modules/@babel/compat-data/native-modules.js
var M2 = P((UCe, L2) => {
L2.exports = j2();
});
// ../node_modules/@babel/helper-compilation-targets/node_modules/yallist/iterator.js
var q2 = P((VCe, R2) => {
"use strict";
R2.exports = function(e) {
e.prototype[Symbol.iterator] = function* () {
for (let t = this.head; t; t = t.next)
yield t.value;
};
};
});
// ../node_modules/@babel/helper-compilation-targets/node_modules/yallist/yallist.js
var V2 = P(($Ce, U2) => {
"use strict";
U2.exports = rt;
rt.Node = ai;
rt.create = rt;
function rt(e) {
var t = this;
if (t instanceof rt || (t = new rt()), t.tail = null, t.head = null, t.length = 0, e && typeof e.forEach == "function")
e.forEach(function(s) {
t.push(s);
});
else if (arguments.length > 0)
for (var r = 0, n = arguments.length; r < n; r++)
t.push(arguments[r]);
return t;
}
i(rt, "Yallist");
rt.prototype.removeNode = function(e) {
if (e.list !== this)
throw new Error("removing node which does not belong to this list");
var t = e.next, r = e.prev;
return t && (t.prev = r), r && (r.next = t), e === this.head && (this.head = t), e === this.tail && (this.tail = r), e.list.length--, e.
next = null, e.prev = null, e.list = null, t;
};
rt.prototype.unshiftNode = function(e) {
if (e !== this.head) {
e.list && e.list.removeNode(e);
var t = this.head;
e.list = this, e.next = t, t && (t.prev = e), this.head = e, this.tail || (this.tail = e), this.length++;
}
};
rt.prototype.pushNode = function(e) {
if (e !== this.tail) {
e.list && e.list.removeNode(e);
var t = this.tail;
e.list = this, e.prev = t, t && (t.next = e), this.tail = e, this.head || (this.head = e), this.length++;
}
};
rt.prototype.push = function() {
for (var e = 0, t = arguments.length; e < t; e++)
Gce(this, arguments[e]);
return this.length;
};
rt.prototype.unshift = function() {
for (var e = 0, t = arguments.length; e < t; e++)
Hce(this, arguments[e]);
return this.length;
};
rt.prototype.pop = function() {
if (this.tail) {
var e = this.tail.value;
return this.tail = this.tail.prev, this.tail ? this.tail.next = null : this.head = null, this.length--, e;
}
};
rt.prototype.shift = function() {
if (this.head) {
var e = this.head.value;
return this.head = this.head.next, this.head ? this.head.prev = null : this.tail = null, this.length--, e;
}
};
rt.prototype.forEach = function(e, t) {
t = t || this;
for (var r = this.head, n = 0; r !== null; n++)
e.call(t, r.value, n, this), r = r.next;
};
rt.prototype.forEachReverse = function(e, t) {
t = t || this;
for (var r = this.tail, n = this.length - 1; r !== null; n--)
e.call(t, r.value, n, this), r = r.prev;
};
rt.prototype.get = function(e) {
for (var t = 0, r = this.head; r !== null && t < e; t++)
r = r.next;
if (t === e && r !== null)
return r.value;
};
rt.prototype.getReverse = function(e) {
for (var t = 0, r = this.tail; r !== null && t < e; t++)
r = r.prev;
if (t === e && r !== null)
return r.value;
};
rt.prototype.map = function(e, t) {
t = t || this;
for (var r = new rt(), n = this.head; n !== null; )
r.push(e.call(t, n.value, this)), n = n.next;
return r;
};
rt.prototype.mapReverse = function(e, t) {
t = t || this;
for (var r = new rt(), n = this.tail; n !== null; )
r.push(e.call(t, n.value, this)), n = n.prev;
return r;
};
rt.prototype.reduce = function(e, t) {
var r, n = this.head;
if (arguments.length > 1)
r = t;
else if (this.head)
n = this.head.next, r = this.head.value;
else
throw new TypeError("Reduce of empty list with no initial value");
for (var s = 0; n !== null; s++)
r = e(r, n.value, s), n = n.next;
return r;
};
rt.prototype.reduceReverse = function(e, t) {
var r, n = this.tail;
if (arguments.length > 1)
r = t;
else if (this.tail)
n = this.tail.prev, r = this.tail.value;
else
throw new TypeError("Reduce of empty list with no initial value");
for (var s = this.length - 1; n !== null; s--)
r = e(r, n.value, s), n = n.prev;
return r;
};
rt.prototype.toArray = function() {
for (var e = new Array(this.length), t = 0, r = this.head; r !== null; t++)
e[t] = r.value, r = r.next;
return e;
};
rt.prototype.toArrayReverse = function() {
for (var e = new Array(this.length), t = 0, r = this.tail; r !== null; t++)
e[t] = r.value, r = r.prev;
return e;
};
rt.prototype.slice = function(e, t) {
t = t || this.length, t < 0 && (t += this.length), e = e || 0, e < 0 && (e += this.length);
var r = new rt();
if (t < e || t < 0)
return r;
e < 0 && (e = 0), t > this.length && (t = this.length);
for (var n = 0, s = this.head; s !== null && n < e; n++)
s = s.next;
for (; s !== null && n < t; n++, s = s.next)
r.push(s.value);
return r;
};
rt.prototype.sliceReverse = function(e, t) {
t = t || this.length, t < 0 && (t += this.length), e = e || 0, e < 0 && (e += this.length);
var r = new rt();
if (t < e || t < 0)
return r;
e < 0 && (e = 0), t > this.length && (t = this.length);
for (var n = this.length, s = this.tail; s !== null && n > t; n--)
s = s.prev;
for (; s !== null && n > e; n--, s = s.prev)
r.push(s.value);
return r;
};
rt.prototype.splice = function(e, t) {
e > this.length && (e = this.length - 1), e < 0 && (e = this.length + e);
for (var r = 0, n = this.head; n !== null && r < e; r++)
n = n.next;
for (var s = [], r = 0; n && r < t; r++)
s.push(n.value), n = this.removeNode(n);
n === null && (n = this.tail), n !== this.head && n !== this.tail && (n = n.prev);
for (var r = 2; r < arguments.length; r++)
n = Kce(this, n, arguments[r]);
return s;
};
rt.prototype.reverse = function() {
for (var e = this.head, t = this.tail, r = e; r !== null; r = r.prev) {
var n = r.prev;
r.prev = r.next, r.next = n;
}
return this.head = t, this.tail = e, this;
};
function Kce(e, t, r) {
var n = t === e.head ? new ai(r, null, t, e) : new ai(r, t, t.next, e);
return n.next === null && (e.tail = n), n.prev === null && (e.head = n), e.length++, n;
}
i(Kce, "insert");
function Gce(e, t) {
e.tail = new ai(t, e.tail, null, e), e.head || (e.head = e.tail), e.length++;
}
i(Gce, "push");
function Hce(e, t) {
e.head = new ai(t, null, e.head, e), e.tail || (e.tail = e.head), e.length++;
}
i(Hce, "unshift");
function ai(e, t, r, n) {
if (!(this instanceof ai))
return new ai(e, t, r, n);
this.list = n, this.value = e, t ? (t.next = this, this.prev = t) : this.prev = null, r ? (r.prev = this, this.next = r) : this.next = null;
}
i(ai, "Node");
try {
q2()(rt);
} catch {
}
});
// ../node_modules/@babel/helper-compilation-targets/node_modules/lru-cache/index.js
var H2 = P((KCe, G2) => {
"use strict";
var Yce = V2(), oi = Symbol("max"), $n = Symbol("length"), ra = Symbol("lengthCalculator"), Io = Symbol("allowStale"), li = Symbol("maxAge"),
Vn = Symbol("dispose"), $2 = Symbol("noDisposeOnSet"), Ut = Symbol("lruList"), en = Symbol("cache"), K2 = Symbol("updateAgeOnGet"), B0 = /* @__PURE__ */ i(
() => 1, "naiveLength"), F0 = class {
static {
i(this, "LRUCache");
}
constructor(t) {
if (typeof t == "number" && (t = { max: t }), t || (t = {}), t.max && (typeof t.max != "number" || t.max < 0))
throw new TypeError("max must be a non-negative number");
let r = this[oi] = t.max || 1 / 0, n = t.length || B0;
if (this[ra] = typeof n != "function" ? B0 : n, this[Io] = t.stale || !1, t.maxAge && typeof t.maxAge != "number")
throw new TypeError("maxAge must be a number");
this[li] = t.maxAge || 0, this[Vn] = t.dispose, this[$2] = t.noDisposeOnSet || !1, this[K2] = t.updateAgeOnGet || !1, this.reset();
}
// resize the cache when the max changes.
set max(t) {
if (typeof t != "number" || t < 0)
throw new TypeError("max must be a non-negative number");
this[oi] = t || 1 / 0, wo(this);
}
get max() {
return this[oi];
}
set allowStale(t) {
this[Io] = !!t;
}
get allowStale() {
return this[Io];
}
set maxAge(t) {
if (typeof t != "number")
throw new TypeError("maxAge must be a non-negative number");
this[li] = t, wo(this);
}
get maxAge() {
return this[li];
}
// resize the cache when the lengthCalculator changes.
set lengthCalculator(t) {
typeof t != "function" && (t = B0), t !== this[ra] && (this[ra] = t, this[$n] = 0, this[Ut].forEach((r) => {
r.length = this[ra](r.value, r.key), this[$n] += r.length;
})), wo(this);
}
get lengthCalculator() {
return this[ra];
}
get length() {
return this[$n];
}
get itemCount() {
return this[Ut].length;
}
rforEach(t, r) {
r = r || this;
for (let n = this[Ut].tail; n !== null; ) {
let s = n.prev;
W2(this, t, n, r), n = s;
}
}
forEach(t, r) {
r = r || this;
for (let n = this[Ut].head; n !== null; ) {
let s = n.next;
W2(this, t, n, r), n = s;
}
}
keys() {
return this[Ut].toArray().map((t) => t.key);
}
values() {
return this[Ut].toArray().map((t) => t.value);
}
reset() {
this[Vn] && this[Ut] && this[Ut].length && this[Ut].forEach((t) => this[Vn](t.key, t.value)), this[en] = /* @__PURE__ */ new Map(), this[Ut] =
new Yce(), this[$n] = 0;
}
dump() {
return this[Ut].map((t) => Ic(this, t) ? !1 : {
k: t.key,
v: t.value,
e: t.now + (t.maxAge || 0)
}).toArray().filter((t) => t);
}
dumpLru() {
return this[Ut];
}
set(t, r, n) {
if (n = n || this[li], n && typeof n != "number")
throw new TypeError("maxAge must be a number");
let s = n ? Date.now() : 0, a = this[ra](r, t);
if (this[en].has(t)) {
if (a > this[oi])
return na(this, this[en].get(t)), !1;
let u = this[en].get(t).value;
return this[Vn] && (this[$2] || this[Vn](t, u.value)), u.now = s, u.maxAge = n, u.value = r, this[$n] += a - u.length, u.length = a,
this.get(t), wo(this), !0;
}
let o = new j0(t, r, a, s, n);
return o.length > this[oi] ? (this[Vn] && this[Vn](t, r), !1) : (this[$n] += o.length, this[Ut].unshift(o), this[en].set(t, this[Ut].head),
wo(this), !0);
}
has(t) {
if (!this[en].has(t)) return !1;
let r = this[en].get(t).value;
return !Ic(this, r);
}
get(t) {
return k0(this, t, !0);
}
peek(t) {
return k0(this, t, !1);
}
pop() {
let t = this[Ut].tail;
return t ? (na(this, t), t.value) : null;
}
del(t) {
na(this, this[en].get(t));
}
load(t) {
this.reset();
let r = Date.now();
for (let n = t.length - 1; n >= 0; n--) {
let s = t[n], a = s.e || 0;
if (a === 0)
this.set(s.k, s.v);
else {
let o = a - r;
o > 0 && this.set(s.k, s.v, o);
}
}
}
prune() {
this[en].forEach((t, r) => k0(this, r, !1));
}
}, k0 = /* @__PURE__ */ i((e, t, r) => {
let n = e[en].get(t);
if (n) {
let s = n.value;
if (Ic(e, s)) {
if (na(e, n), !e[Io])
return;
} else
r && (e[K2] && (n.value.now = Date.now()), e[Ut].unshiftNode(n));
return s.value;
}
}, "get"), Ic = /* @__PURE__ */ i((e, t) => {
if (!t || !t.maxAge && !e[li])
return !1;
let r = Date.now() - t.now;
return t.maxAge ? r > t.maxAge : e[li] && r > e[li];
}, "isStale"), wo = /* @__PURE__ */ i((e) => {
if (e[$n] > e[oi])
for (let t = e[Ut].tail; e[$n] > e[oi] && t !== null; ) {
let r = t.prev;
na(e, t), t = r;
}
}, "trim"), na = /* @__PURE__ */ i((e, t) => {
if (t) {
let r = t.value;
e[Vn] && e[Vn](r.key, r.value), e[$n] -= r.length, e[en].delete(r.key), e[Ut].removeNode(t);
}
}, "del"), j0 = class {
static {
i(this, "Entry");
}
constructor(t, r, n, s, a) {
this.key = t, this.value = r, this.length = n, this.now = s, this.maxAge = a || 0;
}
}, W2 = /* @__PURE__ */ i((e, t, r, n) => {
let s = r.value;
Ic(e, s) && (na(e, r), e[Io] || (s = void 0)), s && t.call(n, s.value, s.key, e);
}, "forEachStep");
G2.exports = F0;
});
// ../node_modules/@babel/helper-compilation-targets/lib/targets.js
var _c = P((sa) => {
"use strict";
Object.defineProperty(sa, "__esModule", {
value: !0
});
sa.unreleasedLabels = sa.browserNameMap = void 0;
var HCe = sa.unreleasedLabels = {
safari: "tp"
}, YCe = sa.browserNameMap = {
and_chr: "chrome",
and_ff: "firefox",
android: "android",
chrome: "chrome",
edge: "edge",
firefox: "firefox",
ie: "ie",
ie_mob: "ie",
ios_saf: "ios",
node: "node",
deno: "deno",
op_mob: "opera_mobile",
opera: "opera",
safari: "safari",
samsung: "samsung"
};
});
// ../node_modules/@babel/helper-compilation-targets/lib/utils.js
var Oc = P((xs) => {
"use strict";
Object.defineProperty(xs, "__esModule", {
value: !0
});
xs.getHighestUnreleased = epe;
xs.getLowestImplementedVersion = tpe;
xs.getLowestUnreleased = z2;
xs.isUnreleasedVersion = Zce;
xs.semverMin = X2;
xs.semverify = Qce;
var Y2 = ce("semver"), Jce = wc(), J2 = _c(), Xce = /^(?:\d+|\d(?:\d?[^\d\n\r\u2028\u2029]\d+|\d{2,}(?:[^\d\n\r\u2028\u2029]\d+)?))$/, zce = new Jce.
OptionValidator("@babel/helper-compilation-targets");
function X2(e, t) {
return e && Y2.lt(e, t) ? e : t;
}
i(X2, "semverMin");
function Qce(e) {
if (typeof e == "string" && Y2.valid(e))
return e;
zce.invariant(typeof e == "number" || typeof e == "string" && Xce.test(e), `'${e}' is not a valid version`), e = e.toString();
let t = 0, r = 0;
for (; (t = e.indexOf(".", t + 1)) > 0; )
r++;
return e + ".0".repeat(2 - r);
}
i(Qce, "semverify");
function Zce(e, t) {
let r = J2.unreleasedLabels[t];
return !!r && r === e.toString().toLowerCase();
}
i(Zce, "isUnreleasedVersion");
function z2(e, t, r) {
let n = J2.unreleasedLabels[r];
return e === n ? t : t === n ? e : X2(e, t);
}
i(z2, "getLowestUnreleased");
function epe(e, t, r) {
return z2(e, t, r) === e ? t : e;
}
i(epe, "getHighestUnreleased");
function tpe(e, t) {
let r = e[t];
return !r && t === "android" ? e.chrome : r;
}
i(tpe, "getLowestImplementedVersion");
});
// ../node_modules/@babel/helper-compilation-targets/lib/options.js
var Q2 = P((Nc) => {
"use strict";
Object.defineProperty(Nc, "__esModule", {
value: !0
});
Nc.TargetNames = void 0;
var QCe = Nc.TargetNames = {
node: "node",
deno: "deno",
chrome: "chrome",
opera: "opera",
edge: "edge",
firefox: "firefox",
safari: "safari",
ie: "ie",
ios: "ios",
android: "android",
electron: "electron",
samsung: "samsung",
rhino: "rhino",
opera_mobile: "opera_mobile"
};
});
// ../node_modules/@babel/helper-compilation-targets/lib/pretty.js
var L0 = P((Bc) => {
"use strict";
Object.defineProperty(Bc, "__esModule", {
value: !0
});
Bc.prettifyTargets = spe;
Bc.prettifyVersion = Z2;
var rpe = ce("semver"), npe = _c();
function Z2(e) {
if (typeof e != "string")
return e;
let {
major: t,
minor: r,
patch: n
} = rpe.parse(e), s = [t];
return (r || n) && s.push(r), n && s.push(n), s.join(".");
}
i(Z2, "prettifyVersion");
function spe(e) {
return Object.keys(e).reduce((t, r) => {
let n = e[r], s = npe.unreleasedLabels[r];
return typeof n == "string" && s !== n && (n = Z2(n)), t[r] = n, t;
}, {});
}
i(spe, "prettifyTargets");
});
// ../node_modules/@babel/helper-compilation-targets/lib/debug.js
var tD = P((M0) => {
"use strict";
Object.defineProperty(M0, "__esModule", {
value: !0
});
M0.getInclusionReasons = ape;
var ipe = ce("semver"), eD = L0(), kc = Oc();
function ape(e, t, r) {
let n = r[e] || {};
return Object.keys(t).reduce((s, a) => {
let o = (0, kc.getLowestImplementedVersion)(n, a), l = t[a];
if (!o)
s[a] = (0, eD.prettifyVersion)(l);
else {
let u = (0, kc.isUnreleasedVersion)(o, a);
!(0, kc.isUnreleasedVersion)(l, a) && (u || ipe.lt(l.toString(), (0, kc.semverify)(o))) && (s[a] = (0, eD.prettifyVersion)(l));
}
return s;
}, {});
}
i(ape, "getInclusionReasons");
});
// ../node_modules/@babel/compat-data/data/plugins.json
var rD = P((s2e, ope) => {
ope.exports = {
"transform-duplicate-named-capturing-groups-regex": {
chrome: "126",
opera: "112",
edge: "126",
firefox: "129",
safari: "17.4",
node: "23",
ios: "17.4",
electron: "31.0"
},
"transform-regexp-modifiers": {
chrome: "125",
opera: "111",
edge: "125",
firefox: "132",
node: "23",
electron: "31.0"
},
"transform-unicode-sets-regex": {
chrome: "112",
opera: "98",
edge: "112",
firefox: "116",
safari: "17",
node: "20",
deno: "1.32",
ios: "17",
opera_mobile: "75",
electron: "24.0"
},
"bugfix/transform-v8-static-class-fields-redefine-readonly": {
chrome: "98",
opera: "84",
edge: "98",
firefox: "75",
safari: "15",
node: "12",
deno: "1.18",
ios: "15",
samsung: "11",
opera_mobile: "52",
electron: "17.0"
},
"bugfix/transform-firefox-class-in-computed-class-key": {
chrome: "74",
opera: "62",
edge: "79",
safari: "16",
node: "12",
deno: "1",
ios: "16",
samsung: "11",
opera_mobile: "53",
electron: "6.0"
},
"bugfix/transform-safari-class-field-initializer-scope": {
chrome: "74",
opera: "62",
edge: "79",
firefox: "69",
safari: "16",
node: "12",
deno: "1",
ios: "16",
samsung: "11",
opera_mobile: "53",
electron: "6.0"
},
"transform-class-static-block": {
chrome: "94",
opera: "80",
edge: "94",
firefox: "93",
safari: "16.4",
node: "16.11",
deno: "1.14",
ios: "16.4",
samsung: "17",
opera_mobile: "66",
electron: "15.0"
},
"proposal-class-static-block": {
chrome: "94",
opera: "80",
edge: "94",
firefox: "93",
safari: "16.4",
node: "16.11",
deno: "1.14",
ios: "16.4",
samsung: "17",
opera_mobile: "66",
electron: "15.0"
},
"transform-private-property-in-object": {
chrome: "91",
opera: "77",
edge: "91",
firefox: "90",
safari: "15",
node: "16.9",
deno: "1.9",
ios: "15",
samsung: "16",
opera_mobile: "64",
electron: "13.0"
},
"proposal-private-property-in-object": {
chrome: "91",
opera: "77",
edge: "91",
firefox: "90",
safari: "15",
node: "16.9",
deno: "1.9",
ios: "15",
samsung: "16",
opera_mobile: "64",
electron: "13.0"
},
"transform-class-properties": {
chrome: "74",
opera: "62",
edge: "79",
firefox: "90",
safari: "14.1",
node: "12",
deno: "1",
ios: "14.5",
samsung: "11",
opera_mobile: "53",
electron: "6.0"
},
"proposal-class-properties": {
chrome: "74",
opera: "62",
edge: "79",
firefox: "90",
safari: "14.1",
node: "12",
deno: "1",
ios: "14.5",
samsung: "11",
opera_mobile: "53",
electron: "6.0"
},
"transform-private-methods": {
chrome: "84",
opera: "70",
edge: "84",
firefox: "90",
safari: "15",
node: "14.6",
deno: "1",
ios: "15",
samsung: "14",
opera_mobile: "60",
electron: "10.0"
},
"proposal-private-methods": {
chrome: "84",
opera: "70",
edge: "84",
firefox: "90",
safari: "15",
node: "14.6",
deno: "1",
ios: "15",
samsung: "14",
opera_mobile: "60",
electron: "10.0"
},
"transform-numeric-separator": {
chrome: "75",
opera: "62",
edge: "79",
firefox: "70",
safari: "13",
node: "12.5",
deno: "1",
ios: "13",
samsung: "11",
rhino: "1.7.14",
opera_mobile: "54",
electron: "6.0"
},
"proposal-numeric-separator": {
chrome: "75",
opera: "62",
edge: "79",
firefox: "70",
safari: "13",
node: "12.5",
deno: "1",
ios: "13",
samsung: "11",
rhino: "1.7.14",
opera_mobile: "54",
electron: "6.0"
},
"transform-logical-assignment-operators": {
chrome: "85",
opera: "71",
edge: "85",
firefox: "79",
safari: "14",
node: "15",
deno: "1.2",
ios: "14",
samsung: "14",
opera_mobile: "60",
electron: "10.0"
},
"proposal-logical-assignment-operators": {
chrome: "85",
opera: "71",
edge: "85",
firefox: "79",
safari: "14",
node: "15",
deno: "1.2",
ios: "14",
samsung: "14",
opera_mobile: "60",
electron: "10.0"
},
"transform-nullish-coalescing-operator": {
chrome: "80",
opera: "67",
edge: "80",
firefox: "72",
safari: "13.1",
node: "14",
deno: "1",
ios: "13.4",
samsung: "13",
opera_mobile: "57",
electron: "8.0"
},
"proposal-nullish-coalescing-operator": {
chrome: "80",
opera: "67",
edge: "80",
firefox: "72",
safari: "13.1",
node: "14",
deno: "1",
ios: "13.4",
samsung: "13",
opera_mobile: "57",
electron: "8.0"
},
"transform-optional-chaining": {
chrome: "91",
opera: "77",
edge: "91",
firefox: "74",
safari: "13.1",
node: "16.9",
deno: "1.9",
ios: "13.4",
samsung: "16",
opera_mobile: "64",
electron: "13.0"
},
"proposal-optional-chaining": {
chrome: "91",
opera: "77",
edge: "91",
firefox: "74",
safari: "13.1",
node: "16.9",
deno: "1.9",
ios: "13.4",
samsung: "16",
opera_mobile: "64",
electron: "13.0"
},
"transform-json-strings": {
chrome: "66",
opera: "53",
edge: "79",
firefox: "62",
safari: "12",
node: "10",
deno: "1",
ios: "12",
samsung: "9",
rhino: "1.7.14",
opera_mobile: "47",
electron: "3.0"
},
"proposal-json-strings": {
chrome: "66",
opera: "53",
edge: "79",
firefox: "62",
safari: "12",
node: "10",
deno: "1",
ios: "12",
samsung: "9",
rhino: "1.7.14",
opera_mobile: "47",
electron: "3.0"
},
"transform-optional-catch-binding": {
chrome: "66",
opera: "53",
edge: "79",
firefox: "58",
safari: "11.1",
node: "10",
deno: "1",
ios: "11.3",
samsung: "9",
opera_mobile: "47",
electron: "3.0"
},
"proposal-optional-catch-binding": {
chrome: "66",
opera: "53",
edge: "79",
firefox: "58",
safari: "11.1",
node: "10",
deno: "1",
ios: "11.3",
samsung: "9",
opera_mobile: "47",
electron: "3.0"
},
"transform-parameters": {
chrome: "49",
opera: "36",
edge: "18",
firefox: "53",
safari: "16.3",
node: "6",
deno: "1",
ios: "16.3",
samsung: "5",
opera_mobile: "36",
electron: "0.37"
},
"transform-async-generator-functions": {
chrome: "63",
opera: "50",
edge: "79",
firefox: "57",
safari: "12",
node: "10",
deno: "1",
ios: "12",
samsung: "8",
opera_mobile: "46",
electron: "3.0"
},
"proposal-async-generator-functions": {
chrome: "63",
opera: "50",
edge: "79",
firefox: "57",
safari: "12",
node: "10",
deno: "1",
ios: "12",
samsung: "8",
opera_mobile: "46",
electron: "3.0"
},
"transform-object-rest-spread": {
chrome: "60",
opera: "47",
edge: "79",
firefox: "55",
safari: "11.1",
node: "8.3",
deno: "1",
ios: "11.3",
samsung: "8",
opera_mobile: "44",
electron: "2.0"
},
"proposal-object-rest-spread": {
chrome: "60",
opera: "47",
edge: "79",
firefox: "55",
safari: "11.1",
node: "8.3",
deno: "1",
ios: "11.3",
samsung: "8",
opera_mobile: "44",
electron: "2.0"
},
"transform-dotall-regex": {
chrome: "62",
opera: "49",
edge: "79",
firefox: "78",
safari: "11.1",
node: "8.10",
deno: "1",
ios: "11.3",
samsung: "8",
rhino: "1.7.15",
opera_mobile: "46",
electron: "3.0"
},
"transform-unicode-property-regex": {
chrome: "64",
opera: "51",
edge: "79",
firefox: "78",
safari: "11.1",
node: "10",
deno: "1",
ios: "11.3",
samsung: "9",
opera_mobile: "47",
electron: "3.0"
},
"proposal-unicode-property-regex": {
chrome: "64",
opera: "51",
edge: "79",
firefox: "78",
safari: "11.1",
node: "10",
deno: "1",
ios: "11.3",
samsung: "9",
opera_mobile: "47",
electron: "3.0"
},
"transform-named-capturing-groups-regex": {
chrome: "64",
opera: "51",
edge: "79",
firefox: "78",
safari: "11.1",
node: "10",
deno: "1",
ios: "11.3",
samsung: "9",
opera_mobile: "47",
electron: "3.0"
},
"transform-async-to-generator": {
chrome: "55",
opera: "42",
edge: "15",
firefox: "52",
safari: "11",
node: "7.6",
deno: "1",
ios: "11",
samsung: "6",
opera_mobile: "42",
electron: "1.6"
},
"transform-exponentiation-operator": {
chrome: "52",
opera: "39",
edge: "14",
firefox: "52",
safari: "10.1",
node: "7",
deno: "1",
ios: "10.3",
samsung: "6",
rhino: "1.7.14",
opera_mobile: "41",
electron: "1.3"
},
"transform-template-literals": {
chrome: "41",
opera: "28",
edge: "13",
firefox: "34",
safari: "13",
node: "4",
deno: "1",
ios: "13",
samsung: "3.4",
opera_mobile: "28",
electron: "0.21"
},
"transform-literals": {
chrome: "44",
opera: "31",
edge: "12",
firefox: "53",
safari: "9",
node: "4",
deno: "1",
ios: "9",
samsung: "4",
rhino: "1.7.15",
opera_mobile: "32",
electron: "0.30"
},
"transform-function-name": {
chrome: "51",
opera: "38",
edge: "79",
firefox: "53",
safari: "10",
node: "6.5",
deno: "1",
ios: "10",
samsung: "5",
opera_mobile: "41",
electron: "1.2"
},
"transform-arrow-functions": {
chrome: "47",
opera: "34",
edge: "13",
firefox: "43",
safari: "10",
node: "6",
deno: "1",
ios: "10",
samsung: "5",
rhino: "1.7.13",
opera_mobile: "34",
electron: "0.36"
},
"transform-block-scoped-functions": {
chrome: "41",
opera: "28",
edge: "12",
firefox: "46",
safari: "10",
node: "4",
deno: "1",
ie: "11",
ios: "10",
samsung: "3.4",
opera_mobile: "28",
electron: "0.21"
},
"transform-classes": {
chrome: "46",
opera: "33",
edge: "13",
firefox: "45",
safari: "10",
node: "5",
deno: "1",
ios: "10",
samsung: "5",
opera_mobile: "33",
electron: "0.36"
},
"transform-object-super": {
chrome: "46",
opera: "33",
edge: "13",
firefox: "45",
safari: "10",
node: "5",
deno: "1",
ios: "10",
samsung: "5",
opera_mobile: "33",
electron: "0.36"
},
"transform-shorthand-properties": {
chrome: "43",
opera: "30",
edge: "12",
firefox: "33",
safari: "9",
node: "4",
deno: "1",
ios: "9",
samsung: "4",
rhino: "1.7.14",
opera_mobile: "30",
electron: "0.27"
},
"transform-duplicate-keys": {
chrome: "42",
opera: "29",
edge: "12",
firefox: "34",
safari: "9",
node: "4",
deno: "1",
ios: "9",
samsung: "3.4",
opera_mobile: "29",
electron: "0.25"
},
"transform-computed-properties": {
chrome: "44",
opera: "31",
edge: "12",
firefox: "34",
safari: "7.1",
node: "4",
deno: "1",
ios: "8",
samsung: "4",
opera_mobile: "32",
electron: "0.30"
},
"transform-for-of": {
chrome: "51",
opera: "38",
edge: "15",
firefox: "53",
safari: "10",
node: "6.5",
deno: "1",
ios: "10",
samsung: "5",
opera_mobile: "41",
electron: "1.2"
},
"transform-sticky-regex": {
chrome: "49",
opera: "36",
edge: "13",
firefox: "3",
safari: "10",
node: "6",
deno: "1",
ios: "10",
samsung: "5",
rhino: "1.7.15",
opera_mobile: "36",
electron: "0.37"
},
"transform-unicode-escapes": {
chrome: "44",
opera: "31",
edge: "12",
firefox: "53",
safari: "9",
node: "4",
deno: "1",
ios: "9",
samsung: "4",
rhino: "1.7.15",
opera_mobile: "32",
electron: "0.30"
},
"transform-unicode-regex": {
chrome: "50",
opera: "37",
edge: "13",
firefox: "46",
safari: "12",
node: "6",
deno: "1",
ios: "12",
samsung: "5",
opera_mobile: "37",
electron: "1.1"
},
"transform-spread": {
chrome: "46",
opera: "33",
edge: "13",
firefox: "45",
safari: "10",
node: "5",
deno: "1",
ios: "10",
samsung: "5",
opera_mobile: "33",
electron: "0.36"
},
"transform-destructuring": {
chrome: "51",
opera: "38",
edge: "15",
firefox: "53",
safari: "10",
node: "6.5",
deno: "1",
ios: "10",
samsung: "5",
opera_mobile: "41",
electron: "1.2"
},
"transform-block-scoping": {
chrome: "50",
opera: "37",
edge: "14",
firefox: "53",
safari: "11",
node: "6",
deno: "1",
ios: "11",
samsung: "5",
opera_mobile: "37",
electron: "1.1"
},
"transform-typeof-symbol": {
chrome: "48",
opera: "35",
edge: "12",
firefox: "36",
safari: "9",
node: "6",
deno: "1",
ios: "9",
samsung: "5",
opera_mobile: "35",
electron: "0.37"
},
"transform-new-target": {
chrome: "46",
opera: "33",
edge: "14",
firefox: "41",
safari: "10",
node: "5",
deno: "1",
ios: "10",
samsung: "5",
opera_mobile: "33",
electron: "0.36"
},
"transform-regenerator": {
chrome: "50",
opera: "37",
edge: "13",
firefox: "53",
safari: "10",
node: "6",
deno: "1",
ios: "10",
samsung: "5",
opera_mobile: "37",
electron: "1.1"
},
"transform-member-expression-literals": {
chrome: "7",
opera: "12",
edge: "12",
firefox: "2",
safari: "5.1",
node: "0.4",
deno: "1",
ie: "9",
android: "4",
ios: "6",
phantom: "1.9",
samsung: "1",
rhino: "1.7.13",
opera_mobile: "12",
electron: "0.20"
},
"transform-property-literals": {
chrome: "7",
opera: "12",
edge: "12",
firefox: "2",
safari: "5.1",
node: "0.4",
deno: "1",
ie: "9",
android: "4",
ios: "6",
phantom: "1.9",
samsung: "1",
rhino: "1.7.13",
opera_mobile: "12",
electron: "0.20"
},
"transform-reserved-words": {
chrome: "13",
opera: "10.50",
edge: "12",
firefox: "2",
safari: "3.1",
node: "0.6",
deno: "1",
ie: "9",
android: "4.4",
ios: "6",
phantom: "1.9",
samsung: "1",
rhino: "1.7.13",
opera_mobile: "10.1",
electron: "0.20"
},
"transform-export-namespace-from": {
chrome: "72",
deno: "1.0",
edge: "79",
firefox: "80",
node: "13.2",
opera: "60",
opera_mobile: "51",
safari: "14.1",
ios: "14.5",
samsung: "11.0",
android: "72",
electron: "5.0"
},
"proposal-export-namespace-from": {
chrome: "72",
deno: "1.0",
edge: "79",
firefox: "80",
node: "13.2",
opera: "60",
opera_mobile: "51",
safari: "14.1",
ios: "14.5",
samsung: "11.0",
android: "72",
electron: "5.0"
}
};
});
// ../node_modules/@babel/compat-data/plugins.js
var sD = P((i2e, nD) => {
nD.exports = rD();
});
// ../node_modules/@babel/helper-compilation-targets/lib/filter-items.js
var lD = P((_o) => {
"use strict";
Object.defineProperty(_o, "__esModule", {
value: !0
});
_o.default = upe;
_o.isRequired = oD;
_o.targetsSupported = aD;
var iD = ce("semver"), lpe = sD(), Fc = Oc();
function aD(e, t) {
let r = Object.keys(e);
return r.length === 0 ? !1 : r.filter((s) => {
let a = (0, Fc.getLowestImplementedVersion)(t, s);
if (!a)
return !0;
let o = e[s];
if ((0, Fc.isUnreleasedVersion)(o, s))
return !1;
if ((0, Fc.isUnreleasedVersion)(a, s))
return !0;
if (!iD.valid(o.toString()))
throw new Error(`Invalid version passed for target "${s}": "${o}". Versions must be in semver format (major.minor.patch)`);
return iD.gt((0, Fc.semverify)(a), o.toString());
}).length === 0;
}
i(aD, "targetsSupported");
function oD(e, t, {
compatData: r = lpe,
includes: n,
excludes: s
} = {}) {
return s != null && s.has(e) ? !1 : n != null && n.has(e) ? !0 : !aD(t, r[e]);
}
i(oD, "isRequired");
function upe(e, t, r, n, s, a, o) {
let l = /* @__PURE__ */ new Set(), u = {
compatData: e,
includes: t,
excludes: r
};
for (let c in e)
if (oD(c, n, u))
l.add(c);
else if (o) {
let p = o.get(c);
p && l.add(p);
}
return s?.forEach((c) => !r.has(c) && l.add(c)), a?.forEach((c) => !t.has(c) && l.delete(c)), l;
}
i(upe, "filterItems");
});
// ../node_modules/@babel/helper-compilation-targets/lib/index.js
var $0 = P((bn) => {
"use strict";
Object.defineProperty(bn, "__esModule", {
value: !0
});
Object.defineProperty(bn, "TargetNames", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return U0.TargetNames;
}, "get")
});
bn.default = vpe;
Object.defineProperty(bn, "filterItems", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return fD.default;
}, "get")
});
Object.defineProperty(bn, "getInclusionReasons", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return dpe.getInclusionReasons;
}, "get")
});
bn.isBrowsersQueryValid = dD;
Object.defineProperty(bn, "isRequired", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return fD.isRequired;
}, "get")
});
Object.defineProperty(bn, "prettifyTargets", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return fpe.prettifyTargets;
}, "get")
});
Object.defineProperty(bn, "unreleasedLabels", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return pD.unreleasedLabels;
}, "get")
});
var q0 = B2(), cD = wc(), cpe = M2(), ppe = H2(), tn = Oc(), pD = _c(), U0 = Q2(), fpe = L0(), dpe = tD(), fD = lD(), R0 = cpe["es6.module"],
V0 = new cD.OptionValidator("@babel/helper-compilation-targets");
function hpe(e) {
let t = Object.keys(U0.TargetNames);
for (let r of Object.keys(e))
if (!(r in U0.TargetNames))
throw new Error(V0.formatMessage(`'${r}' is not a valid target
- Did you mean '${(0, cD.findSuggestion)(r, t)}'?`));
return e;
}
i(hpe, "validateTargetNames");
function dD(e) {
return typeof e == "string" || Array.isArray(e) && e.every((t) => typeof t == "string");
}
i(dD, "isBrowsersQueryValid");
function mpe(e) {
return V0.invariant(e === void 0 || dD(e), `'${String(e)}' is not a valid browserslist query`), e;
}
i(mpe, "validateBrowsers");
function ype(e) {
return e.reduce((t, r) => {
let [n, s] = r.split(" "), a = pD.browserNameMap[n];
if (!a)
return t;
try {
let o = s.split("-")[0].toLowerCase(), l = (0, tn.isUnreleasedVersion)(o, a);
if (!t[a])
return t[a] = l ? o : (0, tn.semverify)(o), t;
let u = t[a], c = (0, tn.isUnreleasedVersion)(u, a);
if (c && l)
t[a] = (0, tn.getLowestUnreleased)(u, o, a);
else if (c)
t[a] = (0, tn.semverify)(o);
else if (!c && !l) {
let p = (0, tn.semverify)(o);
t[a] = (0, tn.semverMin)(u, p);
}
} catch {
}
return t;
}, {});
}
i(ype, "getLowestVersions");
function gpe(e) {
e.length && (console.warn(`Warning, the following targets are using a decimal version:
`), e.forEach(({
target: t,
value: r
}) => console.warn(` ${t}: ${r}`)), console.warn(`
We recommend using a string for minor/patch versions to avoid numbers like 6.10
getting parsed as 6.1, which can lead to unexpected behavior.
`));
}
i(gpe, "outputDecimalWarning");
function hD(e, t) {
try {
return (0, tn.semverify)(t);
} catch {
throw new Error(V0.formatMessage(`'${t}' is not a valid value for 'targets.${e}'.`));
}
}
i(hD, "semverifyTarget");
function bpe(e) {
return ["node", e === !0 || e === "current" ? process.versions.node.split("-")[0] : hD("node", e)];
}
i(bpe, "nodeTargetParser");
function Epe(e, t) {
let r = (0, tn.isUnreleasedVersion)(t, e) ? t.toLowerCase() : hD(e, t);
return [e, r];
}
i(Epe, "defaultTargetParser");
function Tpe(e) {
let t = Object.assign({}, e);
return delete t.esmodules, delete t.browsers, t;
}
i(Tpe, "generateTargets");
function Spe(e, t) {
let r = q0(e, {
mobileToDesktop: !0,
env: t
});
return ype(r);
}
i(Spe, "resolveTargets");
var uD = new ppe({
max: 64
});
function xpe(e, t) {
let r = typeof e == "string" ? e : e.join() + t, n = uD.get(r);
return n || (n = Spe(e, t), uD.set(r, n)), Object.assign({}, n);
}
i(xpe, "resolveTargetsCached");
function vpe(e = {}, t = {}) {
var r, n;
let {
browsers: s,
esmodules: a
} = e, {
configPath: o = ".",
onBrowserslistConfigFound: l
} = t;
mpe(s);
let u = Tpe(e), c = hpe(u), f = !!s || Object.keys(c).length > 0, h = !t.ignoreBrowserslistConfig && !f;
if (!s && h) {
if (s = process.env.BROWSERSLIST, !s) {
let d = t.configFile || process.env.BROWSERSLIST_CONFIG || q0.findConfigFile(o);
d != null && (l?.(d), s = q0.loadConfig({
config: d,
env: t.browserslistEnv
}));
}
s == null && (s = []);
}
if (a && (a !== "intersect" || !((r = s) != null && r.length)) && (s = Object.keys(R0).map((d) => `${d} >= ${R0[d]}`).join(", "), a = !1),
(n = s) != null && n.length) {
let d = xpe(s, t.browserslistEnv);
if (a === "intersect")
for (let g of Object.keys(d))
if (g !== "deno" && g !== "ie") {
let C = R0[g === "opera_mobile" ? "op_mob" : g];
if (C) {
let _ = d[g];
d[g] = (0, tn.getHighestUnreleased)(_, (0, tn.semverify)(C), g);
} else
delete d[g];
} else
delete d[g];
c = Object.assign(d, c);
}
let y = {}, E = [];
for (let d of Object.keys(c).sort()) {
let g = c[d];
typeof g == "number" && g % 1 !== 0 && E.push({
target: d,
value: g
});
let [C, _] = d === "node" ? bpe(g) : Epe(d, g);
_ && (y[C] = _);
}
return gpe(E), y;
}
i(vpe, "getTargets");
});
// ../node_modules/@babel/core/lib/config/resolve-targets.js
var W0 = P((jc) => {
"use strict";
Object.defineProperty(jc, "__esModule", {
value: !0
});
jc.resolveBrowserslistConfigFile = Ppe;
jc.resolveTargets = Ape;
function mD() {
let e = ce("path");
return mD = /* @__PURE__ */ i(function() {
return e;
}, "_path"), e;
}
i(mD, "_path");
function yD() {
let e = $0();
return yD = /* @__PURE__ */ i(function() {
return e;
}, "_helperCompilationTargets"), e;
}
i(yD, "_helperCompilationTargets");
function Ppe(e, t) {
return mD().resolve(t, e);
}
i(Ppe, "resolveBrowserslistConfigFile");
function Ape(e, t) {
let r = e.targets, n;
typeof r == "string" || Array.isArray(r) ? n = {
browsers: r
} : r && ("esmodules" in r ? n = Object.assign({}, r, {
esmodules: "intersect"
}) : n = r);
let {
browserslistConfigFile: s
} = e, a, o = !1;
return typeof s == "string" ? a = s : o = s === !1, (0, yD().default)(n, {
ignoreBrowserslistConfig: o,
configFile: a,
configPath: t,
browserslistEnv: e.browserslistEnv
});
}
i(Ape, "resolveTargets");
});
// ../node_modules/@babel/core/lib/config/config-descriptors.js
var K0 = P((No) => {
"use strict";
Object.defineProperty(No, "__esModule", {
value: !0
});
No.createCachedDescriptors = Ipe;
No.createDescriptor = CD;
No.createUncachedDescriptors = _pe;
function TD() {
let e = xr();
return TD = /* @__PURE__ */ i(function() {
return e;
}, "_gensync"), e;
}
i(TD, "_gensync");
var gD = IC(), bD = ko(), Cpe = Bo(), Oo = ri(), Dpe = W0();
function wpe(e, t) {
var r, n, s, a;
return e.name === t.name && e.value === t.value && e.options === t.options && e.dirname === t.dirname && e.alias === t.alias && e.ownPass ===
t.ownPass && ((r = e.file) == null ? void 0 : r.request) === ((n = t.file) == null ? void 0 : n.request) && ((s = e.file) == null ? void 0 :
s.resolved) === ((a = t.file) == null ? void 0 : a.resolved);
}
i(wpe, "isEqualDescriptor");
function* ED(e) {
return e;
}
i(ED, "handlerOf");
function SD(e, t) {
return typeof e.browserslistConfigFile == "string" && (e.browserslistConfigFile = (0, Dpe.resolveBrowserslistConfigFile)(e.browserslistConfigFile,
t)), e;
}
i(SD, "optionsWithResolvedBrowserslistConfigFile");
function Ipe(e, t, r) {
let {
plugins: n,
presets: s,
passPerPreset: a
} = t;
return {
options: SD(t, e),
plugins: n ? () => kpe(n, e)(r) : () => ED([]),
presets: s ? () => Npe(s, e)(r)(!!a) : () => ED([])
};
}
i(Ipe, "createCachedDescriptors");
function _pe(e, t, r) {
return {
options: SD(t, e),
plugins: (0, gD.once)(() => PD(t.plugins || [], e, r)),
presets: (0, gD.once)(() => vD(t.presets || [], e, r, !!t.passPerPreset))
};
}
i(_pe, "createUncachedDescriptors");
var Ope = /* @__PURE__ */ new WeakMap(), Npe = (0, Oo.makeWeakCacheSync)((e, t) => {
let r = t.using((n) => n);
return (0, Oo.makeStrongCacheSync)((n) => (0, Oo.makeStrongCache)(function* (s) {
return (yield* vD(e, r, n, s)).map((o) => xD(Ope, o));
}));
}), Bpe = /* @__PURE__ */ new WeakMap(), kpe = (0, Oo.makeWeakCacheSync)((e, t) => {
let r = t.using((n) => n);
return (0, Oo.makeStrongCache)(function* (n) {
return (yield* PD(e, r, n)).map((a) => xD(Bpe, a));
});
}), Fpe = {};
function xD(e, t) {
let {
value: r,
options: n = Fpe
} = t;
if (n === !1) return t;
let s = e.get(r);
s || (s = /* @__PURE__ */ new WeakMap(), e.set(r, s));
let a = s.get(n);
if (a || (a = [], s.set(n, a)), !a.includes(t)) {
let o = a.filter((l) => wpe(l, t));
if (o.length > 0)
return o[0];
a.push(t);
}
return t;
}
i(xD, "loadCachedDescriptor");
function* vD(e, t, r, n) {
return yield* AD("preset", e, t, r, n);
}
i(vD, "createPresetDescriptors");
function* PD(e, t, r) {
return yield* AD("plugin", e, t, r);
}
i(PD, "createPluginDescriptors");
function* AD(e, t, r, n, s) {
let a = yield* TD().all(t.map((o, l) => CD(o, r, {
type: e,
alias: `${n}$${l}`,
ownPass: !!s
})));
return jpe(a), a;
}
i(AD, "createDescriptors");
function* CD(e, t, {
type: r,
alias: n,
ownPass: s
}) {
let a = (0, Cpe.getItemDescriptor)(e);
if (a)
return a;
let o, l, u = e;
Array.isArray(u) && (u.length === 3 ? [u, l, o] = u : [u, l] = u);
let c, p = null;
if (typeof u == "string") {
if (typeof r != "string")
throw new Error("To resolve a string-based item, the type of item must be given");
let f = r === "plugin" ? bD.loadPlugin : bD.loadPreset, h = u;
({
filepath: p,
value: u
} = yield* f(u, t)), c = {
request: h,
resolved: p
};
}
if (!u)
throw new Error(`Unexpected falsy value: ${String(u)}`);
if (typeof u == "object" && u.__esModule)
if (u.default)
u = u.default;
else
throw new Error("Must export a default export when using ES6 modules.");
if (typeof u != "object" && typeof u != "function")
throw new Error(`Unsupported format: ${typeof u}. Expected an object or a function.`);
if (p !== null && typeof u == "object" && u)
throw new Error(`Plugin/Preset files are not allowed to export objects, only functions. In ${p}`);
return {
name: o,
alias: p || n,
value: u,
options: l,
dirname: t,
ownPass: s,
file: c
};
}
i(CD, "createDescriptor");
function jpe(e) {
let t = /* @__PURE__ */ new Map();
for (let r of e) {
if (typeof r.value != "function") continue;
let n = t.get(r.value);
if (n || (n = /* @__PURE__ */ new Set(), t.set(r.value, n)), n.has(r.name)) {
let s = e.filter((a) => a.value === r.value);
throw new Error(["Duplicate plugin/preset detected.", "If you'd like to use two separate instances of a plugin,", "they need separat\
e names, e.g.", "", " plugins: [", " ['some-plugin', {}],", " ['some-plugin', {}, 'some unique name'],", " ]", "", "Duplicates detec\
ted are:", `${JSON.stringify(s, null, 2)}`].join(`
`));
}
n.add(r.name);
}
}
i(jpe, "assertNoDuplicates");
});
// ../node_modules/@babel/core/lib/config/item.js
var Bo = P((Fo) => {
"use strict";
Object.defineProperty(Fo, "__esModule", {
value: !0
});
Fo.createConfigItem = Mpe;
Fo.createItemFromDescriptor = wD;
Fo.getItemDescriptor = Rpe;
function DD() {
let e = ce("path");
return DD = /* @__PURE__ */ i(function() {
return e;
}, "_path"), e;
}
i(DD, "_path");
var Lpe = K0();
function wD(e) {
return new Lc(e);
}
i(wD, "createItemFromDescriptor");
function* Mpe(e, {
dirname: t = ".",
type: r
} = {}) {
let n = yield* (0, Lpe.createDescriptor)(e, DD().resolve(t), {
type: r,
alias: "programmatic item"
});
return wD(n);
}
i(Mpe, "createConfigItem");
var G0 = Symbol.for("@babel/core@7 - ConfigItem");
function Rpe(e) {
if (e != null && e[G0])
return e._descriptor;
}
i(Rpe, "getItemDescriptor");
var Lc = class {
static {
i(this, "ConfigItem");
}
constructor(t) {
this._descriptor = void 0, this[G0] = !0, this.value = void 0, this.options = void 0, this.dirname = void 0, this.name = void 0, this.
file = void 0, this._descriptor = t, Object.defineProperty(this, "_descriptor", {
enumerable: !1
}), Object.defineProperty(this, G0, {
enumerable: !1
}), this.value = this._descriptor.value, this.options = this._descriptor.options, this.dirname = this._descriptor.dirname, this.name =
this._descriptor.name, this.file = this._descriptor.file ? {
request: this._descriptor.file.request,
resolved: this._descriptor.file.resolved
} : void 0, Object.freeze(this);
}
};
Object.freeze(Lc.prototype);
});
// ../node_modules/@babel/core/lib/config/validation/removed.js
var ID = P((Mc) => {
"use strict";
Object.defineProperty(Mc, "__esModule", {
value: !0
});
Mc.default = void 0;
var y2e = Mc.default = {
auxiliaryComment: {
message: "Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"
},
blacklist: {
message: "Put the specific transforms you want in the `plugins` option"
},
breakConfig: {
message: "This is not a necessary option in Babel 6"
},
experimental: {
message: "Put the specific transforms you want in the `plugins` option"
},
externalHelpers: {
message: "Use the `external-helpers` plugin instead. Check out http://babeljs.io/docs/plugins/external-helpers/"
},
extra: {
message: ""
},
jsxPragma: {
message: "use the `pragma` option in the `react-jsx` plugin. Check out http://babeljs.io/docs/plugins/transform-react-jsx/"
},
loose: {
message: "Specify the `loose` option for the relevant plugin you are using or use a preset that sets the option."
},
metadataUsedHelpers: {
message: "Not required anymore as this is enabled by default"
},
modules: {
message: "Use the corresponding module transform plugin in the `plugins` option. Check out http://babeljs.io/docs/plugins/#modules"
},
nonStandard: {
message: "Use the `react-jsx` and `flow-strip-types` plugins to support JSX and Flow. Also check out the react preset http://babeljs.i\
o/docs/plugins/preset-react/"
},
optional: {
message: "Put the specific transforms you want in the `plugins` option"
},
sourceMapName: {
message: "The `sourceMapName` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.file\
` themselves."
},
stage: {
message: "Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets"
},
whitelist: {
message: "Put the specific transforms you want in the `plugins` option"
},
resolveModuleSource: {
version: 6,
message: "Use `babel-plugin-module-resolver@3`'s 'resolvePath' options"
},
metadata: {
version: 6,
message: "Generated plugin metadata is always included in the output result"
},
sourceMapTarget: {
version: 6,
message: "The `sourceMapTarget` option has been removed because it makes more sense for the tooling that calls Babel to assign `map.fi\
le` themselves."
}
};
});
// ../node_modules/@babel/core/lib/config/validation/option-assertions.js
var J0 = P((At) => {
"use strict";
Object.defineProperty(At, "__esModule", {
value: !0
});
At.access = vr;
At.assertArray = Y0;
At.assertAssumptions = sfe;
At.assertBabelrcSearch = Zpe;
At.assertBoolean = H0;
At.assertCallerMetadata = Kpe;
At.assertCompact = $pe;
At.assertConfigApplicableTest = zpe;
At.assertConfigFileSearch = Qpe;
At.assertFunction = Ype;
At.assertIgnoreList = Jpe;
At.assertInputSourceMap = Gpe;
At.assertObject = ND;
At.assertPluginList = efe;
At.assertRootMode = Upe;
At.assertSourceMaps = Vpe;
At.assertSourceType = Wpe;
At.assertString = Hpe;
At.assertTargets = rfe;
At.msg = Ge;
function jo() {
let e = $0();
return jo = /* @__PURE__ */ i(function() {
return e;
}, "_helperCompilationTargets"), e;
}
i(jo, "_helperCompilationTargets");
var qpe = Lo();
function Ge(e) {
switch (e.type) {
case "root":
return "";
case "env":
return `${Ge(e.parent)}.env["${e.name}"]`;
case "overrides":
return `${Ge(e.parent)}.overrides[${e.index}]`;
case "option":
return `${Ge(e.parent)}.${e.name}`;
case "access":
return `${Ge(e.parent)}[${JSON.stringify(e.name)}]`;
default:
throw new Error(`Assertion failure: Unknown type ${e.type}`);
}
}
i(Ge, "msg");
function vr(e, t) {
return {
type: "access",
name: t,
parent: e
};
}
i(vr, "access");
function Upe(e, t) {
if (t !== void 0 && t !== "root" && t !== "upward" && t !== "upward-optional")
throw new Error(`${Ge(e)} must be a "root", "upward", "upward-optional" or undefined`);
return t;
}
i(Upe, "assertRootMode");
function Vpe(e, t) {
if (t !== void 0 && typeof t != "boolean" && t !== "inline" && t !== "both")
throw new Error(`${Ge(e)} must be a boolean, "inline", "both", or undefined`);
return t;
}
i(Vpe, "assertSourceMaps");
function $pe(e, t) {
if (t !== void 0 && typeof t != "boolean" && t !== "auto")
throw new Error(`${Ge(e)} must be a boolean, "auto", or undefined`);
return t;
}
i($pe, "assertCompact");
function Wpe(e, t) {
if (t !== void 0 && t !== "module" && t !== "script" && t !== "unambiguous")
throw new Error(`${Ge(e)} must be "module", "script", "unambiguous", or undefined`);
return t;
}
i(Wpe, "assertSourceType");
function Kpe(e, t) {
let r = ND(e, t);
if (r) {
if (typeof r.name != "string")
throw new Error(`${Ge(e)} set but does not contain "name" property string`);
for (let n of Object.keys(r)) {
let s = vr(e, n), a = r[n];
if (a != null && typeof a != "boolean" && typeof a != "string" && typeof a != "number")
throw new Error(`${Ge(s)} must be null, undefined, a boolean, a string, or a number.`);
}
}
return t;
}
i(Kpe, "assertCallerMetadata");
function Gpe(e, t) {
if (t !== void 0 && typeof t != "boolean" && (typeof t != "object" || !t))
throw new Error(`${Ge(e)} must be a boolean, object, or undefined`);
return t;
}
i(Gpe, "assertInputSourceMap");
function Hpe(e, t) {
if (t !== void 0 && typeof t != "string")
throw new Error(`${Ge(e)} must be a string, or undefined`);
return t;
}
i(Hpe, "assertString");
function Ype(e, t) {
if (t !== void 0 && typeof t != "function")
throw new Error(`${Ge(e)} must be a function, or undefined`);
return t;
}
i(Ype, "assertFunction");
function H0(e, t) {
if (t !== void 0 && typeof t != "boolean")
throw new Error(`${Ge(e)} must be a boolean, or undefined`);
return t;
}
i(H0, "assertBoolean");
function ND(e, t) {
if (t !== void 0 && (typeof t != "object" || Array.isArray(t) || !t))
throw new Error(`${Ge(e)} must be an object, or undefined`);
return t;
}
i(ND, "assertObject");
function Y0(e, t) {
if (t != null && !Array.isArray(t))
throw new Error(`${Ge(e)} must be an array, or undefined`);
return t;
}
i(Y0, "assertArray");
function Jpe(e, t) {
let r = Y0(e, t);
return r?.forEach((n, s) => Xpe(vr(e, s), n)), r;
}
i(Jpe, "assertIgnoreList");
function Xpe(e, t) {
if (typeof t != "string" && typeof t != "function" && !(t instanceof RegExp))
throw new Error(`${Ge(e)} must be an array of string/Function/RegExp values, or undefined`);
return t;
}
i(Xpe, "assertIgnoreItem");
function zpe(e, t) {
if (t === void 0)
return t;
if (Array.isArray(t))
t.forEach((r, n) => {
if (!Rc(r))
throw new Error(`${Ge(vr(e, n))} must be a string/Function/RegExp.`);
});
else if (!Rc(t))
throw new Error(`${Ge(e)} must be a string/Function/RegExp, or an array of those`);
return t;
}
i(zpe, "assertConfigApplicableTest");
function Rc(e) {
return typeof e == "string" || typeof e == "function" || e instanceof RegExp;
}
i(Rc, "checkValidTest");
function Qpe(e, t) {
if (t !== void 0 && typeof t != "boolean" && typeof t != "string")
throw new Error(`${Ge(e)} must be a undefined, a boolean, a string, got ${JSON.stringify(t)}`);
return t;
}
i(Qpe, "assertConfigFileSearch");
function Zpe(e, t) {
if (t === void 0 || typeof t == "boolean")
return t;
if (Array.isArray(t))
t.forEach((r, n) => {
if (!Rc(r))
throw new Error(`${Ge(vr(e, n))} must be a string/Function/RegExp.`);
});
else if (!Rc(t))
throw new Error(`${Ge(e)} must be a undefined, a boolean, a string/Function/RegExp or an array of those, got ${JSON.stringify(t)}`);
return t;
}
i(Zpe, "assertBabelrcSearch");
function efe(e, t) {
let r = Y0(e, t);
return r && r.forEach((n, s) => tfe(vr(e, s), n)), r;
}
i(efe, "assertPluginList");
function tfe(e, t) {
if (Array.isArray(t)) {
if (t.length === 0)
throw new Error(`${Ge(e)} must include an object`);
if (t.length > 3)
throw new Error(`${Ge(e)} may only be a two-tuple or three-tuple`);
if (_D(vr(e, 0), t[0]), t.length > 1) {
let r = t[1];
if (r !== void 0 && r !== !1 && (typeof r != "object" || Array.isArray(r) || r === null))
throw new Error(`${Ge(vr(e, 1))} must be an object, false, or undefined`);
}
if (t.length === 3) {
let r = t[2];
if (r !== void 0 && typeof r != "string")
throw new Error(`${Ge(vr(e, 2))} must be a string, or undefined`);
}
} else
_D(e, t);
return t;
}
i(tfe, "assertPluginItem");
function _D(e, t) {
if ((typeof t != "object" || !t) && typeof t != "string" && typeof t != "function")
throw new Error(`${Ge(e)} must be a string, object, function`);
return t;
}
i(_D, "assertPluginTarget");
function rfe(e, t) {
if ((0, jo().isBrowsersQueryValid)(t)) return t;
if (typeof t != "object" || !t || Array.isArray(t))
throw new Error(`${Ge(e)} must be a string, an array of strings or an object`);
let r = vr(e, "browsers"), n = vr(e, "esmodules");
OD(r, t.browsers), H0(n, t.esmodules);
for (let s of Object.keys(t)) {
let a = t[s], o = vr(e, s);
if (s === "esmodules") H0(o, a);
else if (s === "browsers") OD(o, a);
else if (hasOwnProperty.call(jo().TargetNames, s))
nfe(o, a);
else {
let l = Object.keys(jo().TargetNames).join(", ");
throw new Error(`${Ge(o)} is not a valid target. Supported targets are ${l}`);
}
}
return t;
}
i(rfe, "assertTargets");
function OD(e, t) {
if (t !== void 0 && !(0, jo().isBrowsersQueryValid)(t))
throw new Error(`${Ge(e)} must be undefined, a string or an array of strings`);
}
i(OD, "assertBrowsersList");
function nfe(e, t) {
if (!(typeof t == "number" && Math.round(t) === t) && typeof t != "string")
throw new Error(`${Ge(e)} must be a string or an integer number`);
}
i(nfe, "assertBrowserVersion");
function sfe(e, t) {
if (t === void 0) return;
if (typeof t != "object" || t === null)
throw new Error(`${Ge(e)} must be an object or undefined.`);
let r = e;
do
r = r.parent;
while (r.type !== "root");
let n = r.source === "preset";
for (let s of Object.keys(t)) {
let a = vr(e, s);
if (!qpe.assumptionsNames.has(s))
throw new Error(`${Ge(a)} is not a supported assumption.`);
if (typeof t[s] != "boolean")
throw new Error(`${Ge(a)} must be a boolean.`);
if (n && t[s] === !1)
throw new Error(`${Ge(a)} cannot be set to 'false' inside presets.`);
}
return t;
}
i(sfe, "assertAssumptions");
});
// ../node_modules/@babel/core/lib/config/validation/options.js
var Lo = P((ia) => {
"use strict";
Object.defineProperty(ia, "__esModule", {
value: !0
});
ia.assumptionsNames = void 0;
ia.checkNoUnwrappedItemOptionPairs = ffe;
ia.validate = ofe;
var BD = ID(), me = J0(), ife = ni(), kD = {
cwd: me.assertString,
root: me.assertString,
rootMode: me.assertRootMode,
configFile: me.assertConfigFileSearch,
caller: me.assertCallerMetadata,
filename: me.assertString,
filenameRelative: me.assertString,
code: me.assertBoolean,
ast: me.assertBoolean,
cloneInputAst: me.assertBoolean,
envName: me.assertString
}, FD = {
babelrc: me.assertBoolean,
babelrcRoots: me.assertBabelrcSearch
}, jD = {
extends: me.assertString,
ignore: me.assertIgnoreList,
only: me.assertIgnoreList,
targets: me.assertTargets,
browserslistConfigFile: me.assertConfigFileSearch,
browserslistEnv: me.assertString
}, LD = {
inputSourceMap: me.assertInputSourceMap,
presets: me.assertPluginList,
plugins: me.assertPluginList,
passPerPreset: me.assertBoolean,
assumptions: me.assertAssumptions,
env: cfe,
overrides: pfe,
test: me.assertConfigApplicableTest,
include: me.assertConfigApplicableTest,
exclude: me.assertConfigApplicableTest,
retainLines: me.assertBoolean,
comments: me.assertBoolean,
shouldPrintComment: me.assertFunction,
compact: me.assertCompact,
minified: me.assertBoolean,
auxiliaryCommentBefore: me.assertString,
auxiliaryCommentAfter: me.assertString,
sourceType: me.assertSourceType,
wrapPluginVisitorMethod: me.assertFunction,
highlightCode: me.assertBoolean,
sourceMaps: me.assertSourceMaps,
sourceMap: me.assertSourceMaps,
sourceFileName: me.assertString,
sourceRoot: me.assertString,
parserOpts: me.assertObject,
generatorOpts: me.assertObject
};
Object.assign(LD, {
getModuleId: me.assertFunction,
moduleRoot: me.assertString,
moduleIds: me.assertBoolean,
moduleId: me.assertString
});
var afe = ["arrayLikeIsIterable", "constantReexports", "constantSuper", "enumerableModuleMeta", "ignoreFunctionLength", "ignoreToPrimitive\
Hint", "iterableIsArray", "mutableTemplateObject", "noClassCalls", "noDocumentAll", "noIncompleteNsImportDetection", "noNewArrows", "noUnini\
tializedPrivateFieldAccess", "objectRestNoSymbols", "privateFieldsAsSymbols", "privateFieldsAsProperties", "pureGetters", "setClassMethods",
"setComputedProperties", "setPublicClassFields", "setSpreadProperties", "skipForOfIteratorClosing", "superIsCallableConstructor"], T2e = ia.
assumptionsNames = new Set(afe);
function MD(e) {
return e.type === "root" ? e.source : MD(e.parent);
}
i(MD, "getSource");
function ofe(e, t, r) {
try {
return X0({
type: "root",
source: e
}, t);
} catch (n) {
let s = new ife.default(n.message, r);
throw n.code && (s.code = n.code), s;
}
}
i(ofe, "validate");
function X0(e, t) {
let r = MD(e);
return ufe(t), Object.keys(t).forEach((n) => {
let s = {
type: "option",
name: n,
parent: e
};
if (r === "preset" && jD[n])
throw new Error(`${(0, me.msg)(s)} is not allowed in preset options`);
if (r !== "arguments" && kD[n])
throw new Error(`${(0, me.msg)(s)} is only allowed in root programmatic options`);
if (r !== "arguments" && r !== "configfile" && FD[n])
throw r === "babelrcfile" || r === "extendsfile" ? new Error(`${(0, me.msg)(s)} is not allowed in .babelrc or "extends"ed files, onl\
y in root programmatic options, or babel.config.js/config file options`) : new Error(`${(0, me.msg)(s)} is only allowed in root programmatic\
options, or babel.config.js/config file options`);
(LD[n] || jD[n] || FD[n] || kD[n] || lfe)(s, t[n]);
}), t;
}
i(X0, "validateNested");
function lfe(e) {
let t = e.name;
if (BD.default[t]) {
let {
message: r,
version: n = 5
} = BD.default[t];
throw new Error(`Using removed Babel ${n} option: ${(0, me.msg)(e)} - ${r}`);
} else {
let r = new Error(`Unknown option: ${(0, me.msg)(e)}. Check out https://babeljs.io/docs/en/babel-core/#options for more information ab\
out options.`);
throw r.code = "BABEL_UNKNOWN_OPTION", r;
}
}
i(lfe, "throwUnknownError");
function ufe(e) {
if (hasOwnProperty.call(e, "sourceMap") && hasOwnProperty.call(e, "sourceMaps"))
throw new Error(".sourceMap is an alias for .sourceMaps, cannot use both");
}
i(ufe, "assertNoDuplicateSourcemap");
function cfe(e, t) {
if (e.parent.type === "env")
throw new Error(`${(0, me.msg)(e)} is not allowed inside of another .env block`);
let r = e.parent, n = (0, me.assertObject)(e, t);
if (n)
for (let s of Object.keys(n)) {
let a = (0, me.assertObject)((0, me.access)(e, s), n[s]);
if (!a) continue;
X0({
type: "env",
name: s,
parent: r
}, a);
}
return n;
}
i(cfe, "assertEnvSet");
function pfe(e, t) {
if (e.parent.type === "env")
throw new Error(`${(0, me.msg)(e)} is not allowed inside an .env block`);
if (e.parent.type === "overrides")
throw new Error(`${(0, me.msg)(e)} is not allowed inside an .overrides block`);
let r = e.parent, n = (0, me.assertArray)(e, t);
if (n)
for (let [s, a] of n.entries()) {
let o = (0, me.access)(e, s), l = (0, me.assertObject)(o, a);
if (!l) throw new Error(`${(0, me.msg)(o)} must be an object`);
X0({
type: "overrides",
index: s,
parent: r
}, l);
}
return n;
}
i(pfe, "assertOverridesList");
function ffe(e, t, r, n) {
if (t === 0) return;
let s = e[t - 1], a = e[t];
s.file && s.options === void 0 && typeof a.value == "object" && (n.message += `
- Maybe you meant to use
"${r}s": [
["${s.file.request}", ${JSON.stringify(a.value, void 0, 2)}]
]
To be a valid ${r}, its name and options should be wrapped in a pair of brackets`);
}
i(ffe, "checkNoUnwrappedItemOptionPairs");
});
// ../node_modules/@babel/core/lib/config/pattern-to-regex.js
var tg = P((eg) => {
"use strict";
Object.defineProperty(eg, "__esModule", {
value: !0
});
eg.default = mfe;
function qc() {
let e = ce("path");
return qc = /* @__PURE__ */ i(function() {
return e;
}, "_path"), e;
}
i(qc, "_path");
var Mo = `\\${qc().sep}`, z0 = `(?:${Mo}|$)`, Q0 = `[^${Mo}]+`, Z0 = `(?:${Q0}${Mo})`, qD = `(?:${Q0}${z0})`, dfe = `${Z0}*?`, hfe = `${Z0}\
*?${qD}?`;
function RD(e) {
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
}
i(RD, "escapeRegExp");
function mfe(e, t) {
let r = qc().resolve(t, e).split(qc().sep);
return new RegExp(["^", ...r.map((n, s) => {
let a = s === r.length - 1;
return n === "**" ? a ? hfe : dfe : n === "*" ? a ? qD : Z0 : n.indexOf("*.") === 0 ? Q0 + RD(n.slice(1)) + (a ? z0 : Mo) : RD(n) + (a ?
z0 : Mo);
})].join(""));
}
i(mfe, "pathToPattern");
});
// ../node_modules/@babel/core/lib/config/printer.js
var $D = P((aa) => {
"use strict";
Object.defineProperty(aa, "__esModule", {
value: !0
});
aa.ConfigPrinter = aa.ChainFormatter = void 0;
function VD() {
let e = xr();
return VD = /* @__PURE__ */ i(function() {
return e;
}, "_gensync"), e;
}
i(VD, "_gensync");
var yfe = aa.ChainFormatter = {
Programmatic: 0,
Config: 1
}, rg = {
title(e, t, r) {
let n = "";
return e === yfe.Programmatic ? (n = "programmatic options", t && (n += " from " + t)) : n = "config " + r, n;
},
loc(e, t) {
let r = "";
return e != null && (r += `.overrides[${e}]`), t != null && (r += `.env["${t}"]`), r;
},
*optionsAndDescriptors(e) {
let t = Object.assign({}, e.options);
delete t.overrides, delete t.env;
let r = [...yield* e.plugins()];
r.length && (t.plugins = r.map((s) => UD(s)));
let n = [...yield* e.presets()];
return n.length && (t.presets = [...n].map((s) => UD(s))), JSON.stringify(t, void 0, 2);
}
};
function UD(e) {
var t;
let r = (t = e.file) == null ? void 0 : t.request;
return r == null && (typeof e.value == "object" ? r = e.value : typeof e.value == "function" && (r = `[Function: ${e.value.toString().slice(
0, 50)} ... ]`)), r == null && (r = "[Unknown]"), e.options === void 0 ? r : e.name == null ? [r, e.options] : [r, e.options, e.name];
}
i(UD, "descriptorToConfig");
var ng = class e {
static {
i(this, "ConfigPrinter");
}
constructor() {
this._stack = [];
}
configure(t, r, {
callerName: n,
filepath: s
}) {
return t ? (a, o, l) => {
this._stack.push({
type: r,
callerName: n,
filepath: s,
content: a,
index: o,
envName: l
});
} : () => {
};
}
static *format(t) {
let r = rg.title(t.type, t.callerName, t.filepath), n = rg.loc(t.index, t.envName);
n && (r += ` ${n}`);
let s = yield* rg.optionsAndDescriptors(t.content);
return `${r}
${s}`;
}
*output() {
return this._stack.length === 0 ? "" : (yield* VD().all(this._stack.map((r) => e.format(r)))).join(`
`);
}
};
aa.ConfigPrinter = ng;
});
// ../node_modules/@babel/core/lib/config/config-chain.js
var dg = P((la) => {
"use strict";
Object.defineProperty(la, "__esModule", {
value: !0
});
la.buildPresetChain = Efe;
la.buildPresetChainWalker = void 0;
la.buildRootChain = Afe;
function GD() {
let e = ce("path");
return GD = /* @__PURE__ */ i(function() {
return e;
}, "_path"), e;
}
i(GD, "_path");
function HD() {
let e = Us();
return HD = /* @__PURE__ */ i(function() {
return e;
}, "_debug"), e;
}
i(HD, "_debug");
var og = Lo(), YD = tg(), qo = $D(), gfe = jn(), bfe = ni(), Ro = ko(), Bt = ri(), Mr = K0(), WD = HD()("babel:config:config-chain");
function* Efe(e, t) {
let r = yield* Tfe(e, t);
return r ? {
plugins: $c(r.plugins),
presets: $c(r.presets),
options: r.options.map((n) => JD(n)),
files: /* @__PURE__ */ new Set()
} : null;
}
i(Efe, "buildPresetChain");
var Tfe = la.buildPresetChainWalker = fg({
root: /* @__PURE__ */ i((e) => Sfe(e), "root"),
env: /* @__PURE__ */ i((e, t) => xfe(e)(t), "env"),
overrides: /* @__PURE__ */ i((e, t) => vfe(e)(t), "overrides"),
overridesEnv: /* @__PURE__ */ i((e, t, r) => Pfe(e)(t)(r), "overridesEnv"),
createLogger: /* @__PURE__ */ i(() => () => {
}, "createLogger")
}), Sfe = (0, Bt.makeWeakCacheSync)((e) => lg(e, e.alias, Mr.createUncachedDescriptors)), xfe = (0, Bt.makeWeakCacheSync)((e) => (0, Bt.makeStrongCacheSync)(
(t) => ug(e, e.alias, Mr.createUncachedDescriptors, t))), vfe = (0, Bt.makeWeakCacheSync)((e) => (0, Bt.makeStrongCacheSync)((t) => cg(e, e.
alias, Mr.createUncachedDescriptors, t))), Pfe = (0, Bt.makeWeakCacheSync)((e) => (0, Bt.makeStrongCacheSync)((t) => (0, Bt.makeStrongCacheSync)(
(r) => pg(e, e.alias, Mr.createUncachedDescriptors, t, r))));
function* Afe(e, t) {
let r, n, s = new qo.ConfigPrinter(), a = yield* _fe({
options: e,
dirname: t.cwd
}, t, void 0, s);
if (!a) return null;
let o = yield* s.output(), l;
typeof e.configFile == "string" ? l = yield* (0, Ro.loadConfig)(e.configFile, t.cwd, t.envName, t.caller) : e.configFile !== !1 && (l = yield* (0, Ro.
findRootConfig)(t.root, t.envName, t.caller));
let {
babelrc: u,
babelrcRoots: c
} = e, p = t.cwd, f = Vc(), h = new qo.ConfigPrinter();
if (l) {
let _ = Dfe(l), O = yield* ig(_, t, void 0, h);
if (!O) return null;
r = yield* h.output(), u === void 0 && (u = _.options.babelrc), c === void 0 && (p = _.dirname, c = _.options.babelrcRoots), oa(f, O);
}
let y, E, d = !1, g = Vc();
if ((u === !0 || u === void 0) && typeof t.filename == "string") {
let _ = yield* (0, Ro.findPackageData)(t.filename);
if (_ && Cfe(t, _, c, p)) {
if ({
ignore: y,
config: E
} = yield* (0, Ro.findRelativeConfig)(_, t.envName, t.caller), y && g.files.add(y.filepath), y && XD(t, y.ignore, null, y.dirname) &&
(d = !0), E && !d) {
let O = wfe(E), B = new qo.ConfigPrinter(), R = yield* ig(O, t, void 0, B);
R ? (n = yield* B.output(), oa(g, R)) : d = !0;
}
E && d && g.files.add(E.filepath);
}
}
t.showConfig && console.log(`Babel configs on "${t.filename}" (ascending priority):
` + [r, n, o].filter((_) => !!_).join(`
`) + `
-----End Babel configs-----`);
let C = oa(oa(oa(Vc(), f), g), a);
return {
plugins: d ? [] : $c(C.plugins),
presets: d ? [] : $c(C.presets),
options: d ? [] : C.options.map((_) => JD(_)),
fileHandling: d ? "ignored" : "transpile",
ignore: y || void 0,
babelrc: E || void 0,
config: l || void 0,
files: C.files
};
}
i(Afe, "buildRootChain");
function Cfe(e, t, r, n) {
if (typeof r == "boolean") return r;
let s = e.root;
if (r === void 0)
return t.directories.includes(s);
let a = r;
return Array.isArray(a) || (a = [a]), a = a.map((o) => typeof o == "string" ? GD().resolve(n, o) : o), a.length === 1 && a[0] === s ? t.
directories.includes(s) : a.some((o) => (typeof o == "string" && (o = (0, YD.default)(o, n)), t.directories.some((l) => zD(o, n, l, e))));
}
i(Cfe, "babelrcLoadEnabled");
var Dfe = (0, Bt.makeWeakCacheSync)((e) => ({
filepath: e.filepath,
dirname: e.dirname,
options: (0, og.validate)("configfile", e.options, e.filepath)
})), wfe = (0, Bt.makeWeakCacheSync)((e) => ({
filepath: e.filepath,
dirname: e.dirname,
options: (0, og.validate)("babelrcfile", e.options, e.filepath)
})), Ife = (0, Bt.makeWeakCacheSync)((e) => ({
filepath: e.filepath,
dirname: e.dirname,
options: (0, og.validate)("extendsfile", e.options, e.filepath)
})), _fe = fg({
root: /* @__PURE__ */ i((e) => lg(e, "base", Mr.createCachedDescriptors), "root"),
env: /* @__PURE__ */ i((e, t) => ug(e, "base", Mr.createCachedDescriptors, t), "env"),
overrides: /* @__PURE__ */ i((e, t) => cg(e, "base", Mr.createCachedDescriptors, t), "overrides"),
overridesEnv: /* @__PURE__ */ i((e, t, r) => pg(e, "base", Mr.createCachedDescriptors, t, r), "overridesEnv"),
createLogger: /* @__PURE__ */ i((e, t, r) => Lfe(e, t, r), "createLogger")
}), Ofe = fg({
root: /* @__PURE__ */ i((e) => Nfe(e), "root"),
env: /* @__PURE__ */ i((e, t) => Bfe(e)(t), "env"),
overrides: /* @__PURE__ */ i((e, t) => kfe(e)(t), "overrides"),
overridesEnv: /* @__PURE__ */ i((e, t, r) => Ffe(e)(t)(r), "overridesEnv"),
createLogger: /* @__PURE__ */ i((e, t, r) => jfe(e.filepath, t, r), "createLogger")
});
function* ig(e, t, r, n) {
let s = yield* Ofe(e, t, r, n);
return s?.files.add(e.filepath), s;
}
i(ig, "loadFileChain");
var Nfe = (0, Bt.makeWeakCacheSync)((e) => lg(e, e.filepath, Mr.createUncachedDescriptors)), Bfe = (0, Bt.makeWeakCacheSync)((e) => (0, Bt.
makeStrongCacheSync)((t) => ug(e, e.filepath, Mr.createUncachedDescriptors, t))), kfe = (0, Bt.makeWeakCacheSync)((e) => (0, Bt.makeStrongCacheSync)(
(t) => cg(e, e.filepath, Mr.createUncachedDescriptors, t))), Ffe = (0, Bt.makeWeakCacheSync)((e) => (0, Bt.makeStrongCacheSync)((t) => (0, Bt.
makeStrongCacheSync)((r) => pg(e, e.filepath, Mr.createUncachedDescriptors, t, r))));
function jfe(e, t, r) {
return r ? r.configure(t.showConfig, qo.ChainFormatter.Config, {
filepath: e
}) : () => {
};
}
i(jfe, "buildFileLogger");
function lg({
dirname: e,
options: t
}, r, n) {
return n(e, t, r);
}
i(lg, "buildRootDescriptors");
function Lfe(e, t, r) {
var n;
return r ? r.configure(t.showConfig, qo.ChainFormatter.Programmatic, {
callerName: (n = t.caller) == null ? void 0 : n.name
}) : () => {
};
}
i(Lfe, "buildProgrammaticLogger");
function ug({
dirname: e,
options: t
}, r, n, s) {
var a;
let o = (a = t.env) == null ? void 0 : a[s];
return o ? n(e, o, `${r}.env["${s}"]`) : null;
}
i(ug, "buildEnvDescriptors");
function cg({
dirname: e,
options: t
}, r, n, s) {
var a;
let o = (a = t.overrides) == null ? void 0 : a[s];
if (!o) throw new Error("Assertion failure - missing override");
return n(e, o, `${r}.overrides[${s}]`);
}
i(cg, "buildOverrideDescriptors");
function pg({
dirname: e,
options: t
}, r, n, s, a) {
var o, l;
let u = (o = t.overrides) == null ? void 0 : o[s];
if (!u) throw new Error("Assertion failure - missing override");
let c = (l = u.env) == null ? void 0 : l[a];
return c ? n(e, c, `${r}.overrides[${s}].env["${a}"]`) : null;
}
i(pg, "buildOverrideEnvDescriptors");
function fg({
root: e,
env: t,
overrides: r,
overridesEnv: n,
createLogger: s
}) {
return /* @__PURE__ */ i(function* (o, l, u = /* @__PURE__ */ new Set(), c) {
let {
dirname: p
} = o, f = [], h = e(o);
if (Uc(h, p, l, o.filepath)) {
f.push({
config: h,
envName: void 0,
index: void 0
});
let d = t(o, l.envName);
d && Uc(d, p, l, o.filepath) && f.push({
config: d,
envName: l.envName,
index: void 0
}), (h.options.overrides || []).forEach((g, C) => {
let _ = r(o, C);
if (Uc(_, p, l, o.filepath)) {
f.push({
config: _,
index: C,
envName: void 0
});
let O = n(o, C, l.envName);
O && Uc(O, p, l, o.filepath) && f.push({
config: O,
index: C,
envName: l.envName
});
}
});
}
if (f.some(({
config: {
options: {
ignore: d,
only: g
}
}
}) => XD(l, d, g, p)))
return null;
let y = Vc(), E = s(o, l, c);
for (let {
config: d,
index: g,
envName: C
} of f) {
if (!(yield* Mfe(y, d.options, p, l, u, c)))
return null;
E(d, g, C), yield* Rfe(y, d);
}
return y;
}, "chainWalker");
}
i(fg, "makeChainWalker");
function* Mfe(e, t, r, n, s, a) {
if (t.extends === void 0) return !0;
let o = yield* (0, Ro.loadConfig)(t.extends, r, n.envName, n.caller);
if (s.has(o))
throw new Error(`Configuration cycle detected loading ${o.filepath}.
File already loaded following the config chain:
` + Array.from(s, (u) => ` - ${u.filepath}`).join(`
`));
s.add(o);
let l = yield* ig(Ife(o), n, s, a);
return s.delete(o), l ? (oa(e, l), !0) : !1;
}
i(Mfe, "mergeExtendsChain");
function oa(e, t) {
e.options.push(...t.options), e.plugins.push(...t.plugins), e.presets.push(...t.presets);
for (let r of t.files)
e.files.add(r);
return e;
}
i(oa, "mergeChain");
function* Rfe(e, {
options: t,
plugins: r,
presets: n
}) {
return e.options.push(t), e.plugins.push(...yield* r()), e.presets.push(...yield* n()), e;
}
i(Rfe, "mergeChainOpts");
function Vc() {
return {
options: [],
presets: [],
plugins: [],
files: /* @__PURE__ */ new Set()
};
}
i(Vc, "emptyChain");
function JD(e) {
let t = Object.assign({}, e);
return delete t.extends, delete t.env, delete t.overrides, delete t.plugins, delete t.presets, delete t.passPerPreset, delete t.ignore, delete t.
only, delete t.test, delete t.include, delete t.exclude, hasOwnProperty.call(t, "sourceMap") && (t.sourceMaps = t.sourceMap, delete t.sourceMap),
t;
}
i(JD, "normalizeOptions");
function $c(e) {
let t = /* @__PURE__ */ new Map(), r = [];
for (let n of e)
if (typeof n.value == "function") {
let s = n.value, a = t.get(s);
a || (a = /* @__PURE__ */ new Map(), t.set(s, a));
let o = a.get(n.name);
o ? o.value = n : (o = {
value: n
}, r.push(o), n.ownPass || a.set(n.name, o));
} else
r.push({
value: n
});
return r.reduce((n, s) => (n.push(s.value), n), []);
}
i($c, "dedupDescriptors");
function Uc({
options: e
}, t, r, n) {
return (e.test === void 0 || sg(r, e.test, t, n)) && (e.include === void 0 || sg(r, e.include, t, n)) && (e.exclude === void 0 || !sg(r,
e.exclude, t, n));
}
i(Uc, "configIsApplicable");
function sg(e, t, r, n) {
let s = Array.isArray(t) ? t : [t];
return ag(e, s, r, n);
}
i(sg, "configFieldIsApplicable");
function KD(e, t) {
return t instanceof RegExp ? String(t) : t;
}
i(KD, "ignoreListReplacer");
function XD(e, t, r, n) {
if (t && ag(e, t, n)) {
var s;
let o = `No config is applied to "${(s = e.filename) != null ? s : "(unknown)"}" because it matches one of \`ignore: ${JSON.stringify(
t, KD)}\` from "${n}"`;
return WD(o), e.showConfig && console.log(o), !0;
}
if (r && !ag(e, r, n)) {
var a;
let o = `No config is applied to "${(a = e.filename) != null ? a : "(unknown)"}" because it fails to match one of \`only: ${JSON.stringify(
r, KD)}\` from "${n}"`;
return WD(o), e.showConfig && console.log(o), !0;
}
return !1;
}
i(XD, "shouldIgnore");
function ag(e, t, r, n) {
return t.some((s) => zD(s, r, e.filename, e, n));
}
i(ag, "matchesPatterns");
function zD(e, t, r, n, s) {
if (typeof e == "function")
return !!(0, gfe.endHiddenCallStack)(e)(r, {
dirname: t,
envName: n.envName,
caller: n.caller
});
if (typeof r != "string")
throw new bfe.default("Configuration contains string/RegExp pattern, but no filename was passed to Babel", s);
return typeof e == "string" && (e = (0, YD.default)(e, t)), e.test(r);
}
i(zD, "matchPattern");
});
// ../node_modules/@babel/core/lib/config/validation/plugins.js
var QD = P((hg) => {
"use strict";
Object.defineProperty(hg, "__esModule", {
value: !0
});
hg.validatePluginObject = $fe;
var Wn = J0(), qfe = {
name: Wn.assertString,
manipulateOptions: Wn.assertFunction,
pre: Wn.assertFunction,
post: Wn.assertFunction,
inherits: Wn.assertFunction,
visitor: Ufe,
parserOverride: Wn.assertFunction,
generatorOverride: Wn.assertFunction
};
function Ufe(e, t) {
let r = (0, Wn.assertObject)(e, t);
if (r && (Object.keys(r).forEach((n) => {
n !== "_exploded" && n !== "_verified" && Vfe(n, r[n]);
}), r.enter || r.exit))
throw new Error(`${(0, Wn.msg)(e)} cannot contain catch-all "enter" or "exit" handlers. Please target individual nodes.`);
return r;
}
i(Ufe, "assertVisitorMap");
function Vfe(e, t) {
if (t && typeof t == "object")
Object.keys(t).forEach((r) => {
if (r !== "enter" && r !== "exit")
throw new Error(`.visitor["${e}"] may only have .enter and/or .exit handlers.`);
});
else if (typeof t != "function")
throw new Error(`.visitor["${e}"] must be a function`);
}
i(Vfe, "assertVisitorHandler");
function $fe(e) {
let t = {
type: "root",
source: "plugin"
};
return Object.keys(e).forEach((r) => {
let n = qfe[r];
if (n)
n({
type: "option",
name: r,
parent: t
}, e[r]);
else {
let s = new Error(`.${r} is not a valid Plugin property`);
throw s.code = "BABEL_UNKNOWN_PLUGIN_PROPERTY", s;
}
}), e;
}
i($fe, "validatePluginObject");
});
// ../node_modules/@babel/core/lib/config/helpers/environment.js
var yg = P((mg) => {
"use strict";
Object.defineProperty(mg, "__esModule", {
value: !0
});
mg.getEnv = Wfe;
function Wfe(e = "development") {
return process.env.BABEL_ENV || process.env.NODE_ENV || e;
}
i(Wfe, "getEnv");
});
// ../node_modules/@babel/core/lib/config/partial.js
var gg = P((Hc) => {
"use strict";
Object.defineProperty(Hc, "__esModule", {
value: !0
});
Hc.default = ew;
Hc.loadPartialConfig = ede;
function Wc() {
let e = ce("path");
return Wc = /* @__PURE__ */ i(function() {
return e;
}, "_path"), e;
}
i(Wc, "_path");
var Kfe = yc(), Gfe = rc(), ZD = Bo(), Hfe = dg(), Yfe = yg(), Jfe = Lo(), Kc = ko(), Xfe = W0(), zfe = ["showIgnoredFiles"];
function Qfe(e, t) {
if (e == null) return {};
var r = {};
for (var n in e) if ({}.hasOwnProperty.call(e, n)) {
if (t.indexOf(n) !== -1) continue;
r[n] = e[n];
}
return r;
}
i(Qfe, "_objectWithoutPropertiesLoose");
function Zfe(e, t) {
switch (t) {
case "root":
return e;
case "upward-optional": {
let r = (0, Kc.findConfigUpwards)(e);
return r === null ? e : r;
}
case "upward": {
let r = (0, Kc.findConfigUpwards)(e);
if (r !== null) return r;
throw Object.assign(new Error(`Babel was run with rootMode:"upward" but a root could not be found when searching upward from "${e}".\
One of the following config files must be in the directory tree: "${Kc.ROOT_CONFIG_FILENAMES.join(", ")}".`), {
code: "BABEL_ROOT_NOT_FOUND",
dirname: e
});
}
default:
throw new Error("Assertion failure - unknown rootMode value.");
}
}
i(Zfe, "resolveRootMode");
function* ew(e) {
if (e != null && (typeof e != "object" || Array.isArray(e)))
throw new Error("Babel options must be an object, null, or undefined");
let t = e ? (0, Jfe.validate)("arguments", e) : {}, {
envName: r = (0, Yfe.getEnv)(),
cwd: n = ".",
root: s = ".",
rootMode: a = "root",
caller: o,
cloneInputAst: l = !0
} = t, u = Wc().resolve(n), c = Zfe(Wc().resolve(u, s), a), p = typeof t.filename == "string" ? Wc().resolve(n, t.filename) : void 0, f = yield* (0, Kc.
resolveShowConfigPath)(u), h = {
filename: p,
cwd: u,
root: c,
envName: r,
caller: o,
showConfig: f === p
}, y = yield* (0, Hfe.buildRootChain)(t, h);
if (!y) return null;
let E = {
assumptions: {}
};
return y.options.forEach((g) => {
(0, Gfe.mergeOptions)(E, g);
}), {
options: Object.assign({}, E, {
targets: (0, Xfe.resolveTargets)(E, c),
cloneInputAst: l,
babelrc: !1,
configFile: !1,
browserslistConfigFile: !1,
passPerPreset: !1,
envName: h.envName,
cwd: h.cwd,
root: h.root,
rootMode: "root",
filename: typeof h.filename == "string" ? h.filename : void 0,
plugins: y.plugins.map((g) => (0, ZD.createItemFromDescriptor)(g)),
presets: y.presets.map((g) => (0, ZD.createItemFromDescriptor)(g))
}),
context: h,
fileHandling: y.fileHandling,
ignore: y.ignore,
babelrc: y.babelrc,
config: y.config,
files: y.files
};
}
i(ew, "loadPrivatePartialConfig");
function* ede(e) {
let t = !1;
if (typeof e == "object" && e !== null && !Array.isArray(e)) {
var r = e;
({
showIgnoredFiles: t
} = r), e = Qfe(r, zfe);
}
let n = yield* ew(e);
if (!n) return null;
let {
options: s,
babelrc: a,
ignore: o,
config: l,
fileHandling: u,
files: c
} = n;
return u === "ignored" && !t ? null : ((s.plugins || []).forEach((p) => {
if (p.value instanceof Kfe.default)
throw new Error("Passing cached plugin instances is not supported in babel.loadPartialConfig()");
}), new Gc(s, a ? a.filepath : void 0, o ? o.filepath : void 0, l ? l.filepath : void 0, u, c));
}
i(ede, "loadPartialConfig");
var Gc = class {
static {
i(this, "PartialConfig");
}
constructor(t, r, n, s, a, o) {
this.options = void 0, this.babelrc = void 0, this.babelignore = void 0, this.config = void 0, this.fileHandling = void 0, this.files =
void 0, this.options = t, this.babelignore = n, this.babelrc = r, this.config = s, this.fileHandling = a, this.files = o, Object.freeze(
this);
}
hasFilesystemConfig() {
return this.babelrc !== void 0 || this.config !== void 0;
}
};
Object.freeze(Gc.prototype);
});
// ../node_modules/@babel/core/lib/config/full.js
var uw = P((Yc) => {
"use strict";
Object.defineProperty(Yc, "__esModule", {
value: !0
});
Yc.default = void 0;
function sw() {
let e = xr();
return sw = /* @__PURE__ */ i(function() {
return e;
}, "_gensync"), e;
}
i(sw, "_gensync");
var Tg = ys(), tw = rc(), tde = Pt(), iw = yc(), rde = Bo(), nde = dg(), vg = hc();
function Sg() {
let e = Ot();
return Sg = /* @__PURE__ */ i(function() {
return e;
}, "_traverse"), e;
}
i(Sg, "_traverse");
var Pg = ri(), xg = Lo(), sde = QD(), aw = c0(), ide = gg(), ade = ni(), F2e = Yc.default = sw()(/* @__PURE__ */ i(function* (t) {
var r;
let n = yield* (0, ide.default)(t);
if (!n)
return null;
let {
options: s,
context: a,
fileHandling: o
} = n;
if (o === "ignored")
return null;
let l = {}, {
plugins: u,
presets: c
} = s;
if (!u || !c)
throw new Error("Assertion failure - plugins and presets exist");
let p = Object.assign({}, a, {
targets: s.targets
}), f = /* @__PURE__ */ i((B) => {
let R = (0, rde.getItemDescriptor)(B);
if (!R)
throw new Error("Assertion failure - must be config item");
return R;
}, "toDescriptor"), h = c.map(f), y = u.map(f), E = [[]], d = [], g = [];
if (yield* rw(a, /* @__PURE__ */ i(function* B(R, $) {
let V = [];
for (let U = 0; U < R.length; U++) {
let K = R[U];
if (K.options !== !1) {
try {
var J = yield* fde(K, p);
} catch (j) {
throw j.code === "BABEL_UNKNOWN_OPTION" && (0, xg.checkNoUnwrappedItemOptionPairs)(R, U, "preset", j), j;
}
g.push(J.externalDependencies), K.ownPass ? V.push({
preset: J.chain,
pass: []
}) : V.unshift({
preset: J.chain,
pass: $
});
}
}
if (V.length > 0) {
E.splice(1, 0, ...V.map((U) => U.pass).filter((U) => U !== $));
for (let {
preset: U,
pass: K
} of V) {
if (!U || (K.push(...U.plugins), yield* B(U.presets, K))) return !0;
U.options.forEach((Y) => {
(0, tw.mergeOptions)(l, Y);
});
}
}
}, "recursePresetDescriptors"))(h, E[0])) return null;
let _ = l;
(0, tw.mergeOptions)(_, s);
let O = Object.assign({}, p, {
assumptions: (r = _.assumptions) != null ? r : {}
});
return yield* rw(a, /* @__PURE__ */ i(function* () {
E[0].unshift(...y);
for (let $ of E) {
let V = [];
d.push(V);
for (let J = 0; J < $.length; J++) {
let U = $[J];
if (U.options !== !1) {
try {
var R = yield* lw(U, O);
} catch (K) {
throw K.code === "BABEL_UNKNOWN_PLUGIN_PROPERTY" && (0, xg.checkNoUnwrappedItemOptionPairs)($, J, "plugin", K), K;
}
V.push(R), g.push(R.externalDependencies);
}
}
}
}, "loadPluginDescriptors"))(), _.plugins = d[0], _.presets = d.slice(1).filter((B) => B.length > 0).map((B) => ({
plugins: B
})), _.passPerPreset = _.presets.length > 0, {
options: _,
passes: d,
externalDependencies: (0, vg.finalize)(g)
};
}, "loadFullConfig"));
function rw(e, t) {
return function* (r, n) {
try {
return yield* t(r, n);
} catch (a) {
if (!/^\[BABEL\]/.test(a.message)) {
var s;
a.message = `[BABEL] ${(s = e.filename) != null ? s : "unknown file"}: ${a.message}`;
}
throw a;
}
};
}
i(rw, "enhanceError");
var ow = /* @__PURE__ */ i((e) => (0, Pg.makeWeakCache)(function* ({
value: t,
options: r,
dirname: n,
alias: s
}, a) {
if (r === !1) throw new Error("Assertion failure");
r = r || {};
let o = [], l = t;
if (typeof t == "function") {
let u = (0, Tg.maybeAsync)(t, "You appear to be using an async plugin/preset, but Babel has been called synchronously"), c = Object.assign(
{}, tde, e(a, o));
try {
l = yield* u(c, r, n);
} catch (p) {
throw s && (p.message += ` (While processing: ${JSON.stringify(s)})`), p;
}
}
if (!l || typeof l != "object")
throw new Error("Plugin/Preset did not return an object.");
if ((0, Tg.isThenable)(l))
throw yield* [], new Error(`You appear to be using a promise as a plugin, which your current version of Babel does not support. If you\
're using a published plugin, you may need to upgrade your @babel/core version. As an alternative, you can prefix the promise with "await". \
(While processing: ${JSON.stringify(s)})`);
if (o.length > 0 && (!a.configured() || a.mode() === "forever")) {
let u = `A plugin/preset has external untracked dependencies (${o[0]}), but the cache `;
throw a.configured() ? u += " has been configured to never be invalidated. " : u += "has not been configured to be invalidated when th\
e external dependencies change. ", u += `Plugins/presets should configure their cache to be invalidated when the external dependencies chang\
e, for example using \`api.cache.invalidate(() => statSync(filepath).mtimeMs)\` or \`api.cache.never()\`
(While processing: ${JSON.stringify(s)})`, new Error(u);
}
return {
value: l,
options: r,
dirname: n,
alias: s,
externalDependencies: (0, vg.finalize)(o)
};
}), "makeDescriptorLoader"), ode = ow(aw.makePluginAPI), lde = ow(aw.makePresetAPI), ude = (0, Pg.makeWeakCache)(function* ({
value: e,
options: t,
dirname: r,
alias: n,
externalDependencies: s
}, a) {
let o = (0, sde.validatePluginObject)(e), l = Object.assign({}, o);
if (l.visitor && (l.visitor = Sg().default.explode(Object.assign({}, l.visitor))), l.inherits) {
let u = {
name: void 0,
alias: `${n}$inherits`,
value: l.inherits,
options: t,
dirname: r
}, c = yield* (0, Tg.forwardAsync)(lw, (p) => a.invalidate((f) => p(u, f)));
l.pre = Eg(c.pre, l.pre), l.post = Eg(c.post, l.post), l.manipulateOptions = Eg(c.manipulateOptions, l.manipulateOptions), l.visitor =
Sg().default.visitors.merge([c.visitor || {}, l.visitor || {}]), c.externalDependencies.length > 0 && (s.length === 0 ? s = c.externalDependencies :
s = (0, vg.finalize)([s, c.externalDependencies]));
}
return new iw.default(l, t, n, s);
});
function* lw(e, t) {
if (e.value instanceof iw.default) {
if (e.options)
throw new Error("Passed options to an existing Plugin instance will not work.");
return e.value;
}
return yield* ude(yield* ode(e, t), t);
}
i(lw, "loadPluginDescriptor");
var bg = /* @__PURE__ */ i((e) => e && typeof e != "function", "needsFilename"), nw = /* @__PURE__ */ i((e, t) => {
if (bg(e.test) || bg(e.include) || bg(e.exclude)) {
let r = t.name ? `"${t.name}"` : "/* your preset */";
throw new ade.default([`Preset ${r} requires a filename to be set when babel is called directly,`, "```", `babel.transformSync(code, {\
filename: 'file.ts', presets: [${r}] });`, "```", "See https://babeljs.io/docs/en/options#filename for more information."].join(`
`));
}
}, "validateIfOptionNeedsFilename"), cde = /* @__PURE__ */ i((e, t, r) => {
if (!t.filename) {
var n;
let {
options: s
} = e;
nw(s, r), (n = s.overrides) == null || n.forEach((a) => nw(a, r));
}
}, "validatePreset"), pde = (0, Pg.makeWeakCacheSync)(({
value: e,
dirname: t,
alias: r,
externalDependencies: n
}) => ({
options: (0, xg.validate)("preset", e),
alias: r,
dirname: t,
externalDependencies: n
}));
function* fde(e, t) {
let r = pde(yield* lde(e, t));
return cde(r, t, e), {
chain: yield* (0, nde.buildPresetChain)(r, t),
externalDependencies: r.externalDependencies
};
}
i(fde, "loadPresetDescriptor");
function Eg(e, t) {
return e ? t ? function(...r) {
let n = e.apply(this, r);
return n && typeof n.then == "function" ? n.then(() => t.apply(this, r)) : t.apply(this, r);
} : e : t;
}
i(Eg, "chainMaybeAsync");
});
// ../node_modules/@babel/core/lib/config/index.js
var ua = P((qr) => {
"use strict";
Object.defineProperty(qr, "__esModule", {
value: !0
});
qr.createConfigItem = Sde;
qr.createConfigItemAsync = Tde;
qr.createConfigItemSync = dw;
Object.defineProperty(qr, "default", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return cw.default;
}, "get")
});
qr.loadOptions = Ede;
qr.loadOptionsAsync = bde;
qr.loadOptionsSync = fw;
qr.loadPartialConfig = yde;
qr.loadPartialConfigAsync = mde;
qr.loadPartialConfigSync = pw;
function Qc() {
let e = xr();
return Qc = /* @__PURE__ */ i(function() {
return e;
}, "_gensync"), e;
}
i(Qc, "_gensync");
var cw = uw(), dde = gg(), hde = Bo(), Rr = jn(), Jc = Qc()(dde.loadPartialConfig);
function mde(...e) {
return (0, Rr.beginHiddenCallStack)(Jc.async)(...e);
}
i(mde, "loadPartialConfigAsync");
function pw(...e) {
return (0, Rr.beginHiddenCallStack)(Jc.sync)(...e);
}
i(pw, "loadPartialConfigSync");
function yde(e, t) {
if (t !== void 0)
(0, Rr.beginHiddenCallStack)(Jc.errback)(e, t);
else if (typeof e == "function")
(0, Rr.beginHiddenCallStack)(Jc.errback)(void 0, e);
else
return pw(e);
}
i(yde, "loadPartialConfig");
function* gde(e) {
var t;
let r = yield* (0, cw.default)(e);
return (t = r?.options) != null ? t : null;
}
i(gde, "loadOptionsImpl");
var Xc = Qc()(gde);
function bde(...e) {
return (0, Rr.beginHiddenCallStack)(Xc.async)(...e);
}
i(bde, "loadOptionsAsync");
function fw(...e) {
return (0, Rr.beginHiddenCallStack)(Xc.sync)(...e);
}
i(fw, "loadOptionsSync");
function Ede(e, t) {
if (t !== void 0)
(0, Rr.beginHiddenCallStack)(Xc.errback)(e, t);
else if (typeof e == "function")
(0, Rr.beginHiddenCallStack)(Xc.errback)(void 0, e);
else
return fw(e);
}
i(Ede, "loadOptions");
var zc = Qc()(hde.createConfigItem);
function Tde(...e) {
return (0, Rr.beginHiddenCallStack)(zc.async)(...e);
}
i(Tde, "createConfigItemAsync");
function dw(...e) {
return (0, Rr.beginHiddenCallStack)(zc.sync)(...e);
}
i(dw, "createConfigItemSync");
function Sde(e, t, r) {
if (r !== void 0)
(0, Rr.beginHiddenCallStack)(zc.errback)(e, t, r);
else if (typeof t == "function")
(0, Rr.beginHiddenCallStack)(zc.errback)(e, void 0, r);
else
return dw(e, t);
}
i(Sde, "createConfigItem");
});
// ../node_modules/@babel/core/lib/transformation/plugin-pass.js
var hw = P((Zc) => {
"use strict";
Object.defineProperty(Zc, "__esModule", {
value: !0
});
Zc.default = void 0;
var Uo = class {
static {
i(this, "PluginPass");
}
constructor(t, r, n, s) {
this._map = /* @__PURE__ */ new Map(), this.key = void 0, this.file = void 0, this.opts = void 0, this.cwd = void 0, this.filename = void 0,
this.isAsync = void 0, this.key = r, this.file = t, this.opts = n || {}, this.cwd = t.opts.cwd, this.filename = t.opts.filename, this.
isAsync = s;
}
set(t, r) {
this._map.set(t, r);
}
get(t) {
return this._map.get(t);
}
availableHelper(t, r) {
return this.file.availableHelper(t, r);
}
addHelper(t) {
return this.file.addHelper(t);
}
buildCodeFrameError(t, r, n) {
return this.file.buildCodeFrameError(t, r, n);
}
};
Zc.default = Uo;
Uo.prototype.getModuleName = /* @__PURE__ */ i(function() {
return this.file.getModuleName();
}, "getModuleName"), Uo.prototype.addImport = /* @__PURE__ */ i(function() {
this.file.addImport();
}, "addImport");
});
// ../node_modules/@babel/core/lib/transformation/block-hoist-plugin.js
var Ew = P((Cg) => {
"use strict";
Object.defineProperty(Cg, "__esModule", {
value: !0
});
Cg.default = vde;
function gw() {
let e = Ot();
return gw = /* @__PURE__ */ i(function() {
return e;
}, "_traverse"), e;
}
i(gw, "_traverse");
var xde = yc(), Ag, mw = {
name: "internal.blockHoist",
visitor: {
Block: {
exit({
node: e
}) {
e.body = yw(e.body);
}
},
SwitchCase: {
exit({
node: e
}) {
e.consequent = yw(e.consequent);
}
}
}
};
function yw(e) {
let t = Math.pow(2, 30) - 1, r = !1;
for (let n = 0; n < e.length; n++) {
let s = e[n], a = bw(s);
if (a > t) {
r = !0;
break;
}
t = a;
}
return r ? Pde(e.slice()) : e;
}
i(yw, "performHoisting");
function vde() {
return Ag || (Ag = new xde.default(Object.assign({}, mw, {
visitor: gw().default.explode(mw.visitor)
}), {})), Ag;
}
i(vde, "loadBlockHoistPlugin");
function bw(e) {
let t = e?._blockHoist;
return t == null ? 1 : t === !0 ? 2 : t;
}
i(bw, "priority");
function Pde(e) {
let t = /* @__PURE__ */ Object.create(null);
for (let s = 0; s < e.length; s++) {
let a = e[s], o = bw(a);
(t[o] || (t[o] = [])).push(a);
}
let r = Object.keys(t).map((s) => +s).sort((s, a) => a - s), n = 0;
for (let s of r) {
let a = t[s];
for (let o of a)
e[n++] = o;
}
return e;
}
i(Pde, "stableSort");
});
// ../node_modules/@babel/core/lib/transformation/normalize-opts.js
var wg = P((Dg) => {
"use strict";
Object.defineProperty(Dg, "__esModule", {
value: !0
});
Dg.default = Ade;
function ep() {
let e = ce("path");
return ep = /* @__PURE__ */ i(function() {
return e;
}, "_path"), e;
}
i(ep, "_path");
function Ade(e) {
let {
filename: t,
cwd: r,
filenameRelative: n = typeof t == "string" ? ep().relative(r, t) : "unknown",
sourceType: s = "module",
inputSourceMap: a,
sourceMaps: o = !!a,
sourceRoot: l = e.options.moduleRoot,
sourceFileName: u = ep().basename(n),
comments: c = !0,
compact: p = "auto"
} = e.options, f = e.options, h = Object.assign({}, f, {
parserOpts: Object.assign({
sourceType: ep().extname(n) === ".mjs" ? "module" : s,
sourceFileName: t,
plugins: []
}, f.parserOpts),
generatorOpts: Object.assign({
filename: t,
auxiliaryCommentBefore: f.auxiliaryCommentBefore,
auxiliaryCommentAfter: f.auxiliaryCommentAfter,
retainLines: f.retainLines,
comments: c,
shouldPrintComment: f.shouldPrintComment,
compact: p,
minified: f.minified,
sourceMaps: o,
sourceRoot: l,
sourceFileName: u
}, f.generatorOpts)
});
for (let y of e.passes)
for (let E of y)
E.manipulateOptions && E.manipulateOptions(h, h.parserOpts);
return h;
}
i(Ade, "normalizeOptions");
});
// ../node_modules/convert-source-map/index.js
var Ig = P((Ct) => {
"use strict";
Object.defineProperty(Ct, "commentRegex", {
get: /* @__PURE__ */ i(function() {
return /^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/mg;
}, "getCommentRegex")
});
Object.defineProperty(Ct, "mapFileCommentRegex", {
get: /* @__PURE__ */ i(function() {
return /(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/mg;
}, "getMapFileCommentRegex")
});
var tp;
typeof Buffer < "u" ? typeof Buffer.from == "function" ? tp = Cde : tp = Dde : tp = wde;
function Cde(e) {
return Buffer.from(e, "base64").toString();
}
i(Cde, "decodeBase64WithBufferFrom");
function Dde(e) {
if (typeof value == "number")
throw new TypeError("The value to decode must not be of type number.");
return new Buffer(e, "base64").toString();
}
i(Dde, "decodeBase64WithNewBuffer");
function wde(e) {
return decodeURIComponent(escape(atob(e)));
}
i(wde, "decodeBase64WithAtob");
function Ide(e) {
return e.split(",").pop();
}
i(Ide, "stripComment");
function _de(e, t) {
var r = Ct.mapFileCommentRegex.exec(e), n = r[1] || r[2];
try {
var e = t(n);
return e != null && typeof e.catch == "function" ? e.catch(s) : e;
} catch (a) {
s(a);
}
function s(a) {
throw new Error("An error occurred while trying to read the map file at " + n + `
` + a.stack);
}
i(s, "throwError");
}
i(_de, "readFromFileMap");
function Qt(e, t) {
t = t || {}, t.hasComment && (e = Ide(e)), t.encoding === "base64" ? e = tp(e) : t.encoding === "uri" && (e = decodeURIComponent(e)), (t.
isJSON || t.encoding) && (e = JSON.parse(e)), this.sourcemap = e;
}
i(Qt, "Converter");
Qt.prototype.toJSON = function(e) {
return JSON.stringify(this.sourcemap, null, e);
};
typeof Buffer < "u" ? typeof Buffer.from == "function" ? Qt.prototype.toBase64 = Ode : Qt.prototype.toBase64 = Nde : Qt.prototype.toBase64 =
Bde;
function Ode() {
var e = this.toJSON();
return Buffer.from(e, "utf8").toString("base64");
}
i(Ode, "encodeBase64WithBufferFrom");
function Nde() {
var e = this.toJSON();
if (typeof e == "number")
throw new TypeError("The json to encode must not be of type number.");
return new Buffer(e, "utf8").toString("base64");
}
i(Nde, "encodeBase64WithNewBuffer");
function Bde() {
var e = this.toJSON();
return btoa(unescape(encodeURIComponent(e)));
}
i(Bde, "encodeBase64WithBtoa");
Qt.prototype.toURI = function() {
var e = this.toJSON();
return encodeURIComponent(e);
};
Qt.prototype.toComment = function(e) {
var t, r, n;
return e != null && e.encoding === "uri" ? (t = "", r = this.toURI()) : (t = ";base64", r = this.toBase64()), n = "sourceMappingURL=data\
:application/json;charset=utf-8" + t + "," + r, e != null && e.multiline ? "/*# " + n + " */" : "//# " + n;
};
Qt.prototype.toObject = function() {
return JSON.parse(this.toJSON());
};
Qt.prototype.addProperty = function(e, t) {
if (this.sourcemap.hasOwnProperty(e)) throw new Error('property "' + e + '" already exists on the sourcemap, use set property instead');
return this.setProperty(e, t);
};
Qt.prototype.setProperty = function(e, t) {
return this.sourcemap[e] = t, this;
};
Qt.prototype.getProperty = function(e) {
return this.sourcemap[e];
};
Ct.fromObject = function(e) {
return new Qt(e);
};
Ct.fromJSON = function(e) {
return new Qt(e, { isJSON: !0 });
};
Ct.fromURI = function(e) {
return new Qt(e, { encoding: "uri" });
};
Ct.fromBase64 = function(e) {
return new Qt(e, { encoding: "base64" });
};
Ct.fromComment = function(e) {
var t, r;
return e = e.replace(/^\/\*/g, "//").replace(/\*\/$/g, ""), t = Ct.commentRegex.exec(e), r = t && t[4] || "uri", new Qt(e, { encoding: r,
hasComment: !0 });
};
function Tw(e) {
return new Qt(e, { isJSON: !0 });
}
i(Tw, "makeConverter");
Ct.fromMapFileComment = function(e, t) {
if (typeof t == "string")
throw new Error(
"String directory paths are no longer supported with `fromMapFileComment`\nPlease review the Upgrading documentation at https://githu\
b.com/thlorenz/convert-source-map#upgrading"
);
var r = _de(e, t);
return r != null && typeof r.then == "function" ? r.then(Tw) : Tw(r);
};
Ct.fromSource = function(e) {
var t = e.match(Ct.commentRegex);
return t ? Ct.fromComment(t.pop()) : null;
};
Ct.fromMapFileSource = function(e, t) {
if (typeof t == "string")
throw new Error(
"String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github\
.com/thlorenz/convert-source-map#upgrading"
);
var r = e.match(Ct.mapFileCommentRegex);
return r ? Ct.fromMapFileComment(r.pop(), t) : null;
};
Ct.removeComments = function(e) {
return e.replace(Ct.commentRegex, "");
};
Ct.removeMapFileComments = function(e) {
return e.replace(Ct.mapFileCommentRegex, "");
};
Ct.generateMapFileComment = function(e, t) {
var r = "sourceMappingURL=" + e;
return t && t.multiline ? "/*# " + r + " */" : "//# " + r;
};
});
// ../node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js
var vw = P((_g) => {
"use strict";
Object.defineProperty(_g, "__esModule", {
value: !0
});
_g.default = kde;
var xw = {
asyncDoExpressions: {
syntax: {
name: "@babel/plugin-syntax-async-do-expressions",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-do-expressions"
}
},
decimal: {
syntax: {
name: "@babel/plugin-syntax-decimal",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decimal"
}
},
decorators: {
syntax: {
name: "@babel/plugin-syntax-decorators",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-decorators"
},
transform: {
name: "@babel/plugin-proposal-decorators",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-decorators"
}
},
doExpressions: {
syntax: {
name: "@babel/plugin-syntax-do-expressions",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-do-expressions"
},
transform: {
name: "@babel/plugin-proposal-do-expressions",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-do-expressions"
}
},
exportDefaultFrom: {
syntax: {
name: "@babel/plugin-syntax-export-default-from",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-default-from"
},
transform: {
name: "@babel/plugin-proposal-export-default-from",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-export-default-from"
}
},
flow: {
syntax: {
name: "@babel/plugin-syntax-flow",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-flow"
},
transform: {
name: "@babel/preset-flow",
url: "https://github.com/babel/babel/tree/main/packages/babel-preset-flow"
}
},
functionBind: {
syntax: {
name: "@babel/plugin-syntax-function-bind",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-bind"
},
transform: {
name: "@babel/plugin-proposal-function-bind",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-bind"
}
},
functionSent: {
syntax: {
name: "@babel/plugin-syntax-function-sent",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-function-sent"
},
transform: {
name: "@babel/plugin-proposal-function-sent",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-function-sent"
}
},
jsx: {
syntax: {
name: "@babel/plugin-syntax-jsx",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-jsx"
},
transform: {
name: "@babel/preset-react",
url: "https://github.com/babel/babel/tree/main/packages/babel-preset-react"
}
},
pipelineOperator: {
syntax: {
name: "@babel/plugin-syntax-pipeline-operator",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-pipeline-operator"
},
transform: {
name: "@babel/plugin-proposal-pipeline-operator",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-pipeline-operator"
}
},
recordAndTuple: {
syntax: {
name: "@babel/plugin-syntax-record-and-tuple",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-record-and-tuple"
}
},
throwExpressions: {
syntax: {
name: "@babel/plugin-syntax-throw-expressions",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-throw-expressions"
},
transform: {
name: "@babel/plugin-proposal-throw-expressions",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-proposal-throw-expressions"
}
},
typescript: {
syntax: {
name: "@babel/plugin-syntax-typescript",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-typescript"
},
transform: {
name: "@babel/preset-typescript",
url: "https://github.com/babel/babel/tree/main/packages/babel-preset-typescript"
}
}
};
Object.assign(xw, {
asyncGenerators: {
syntax: {
name: "@babel/plugin-syntax-async-generators",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-async-generators"
},
transform: {
name: "@babel/plugin-transform-async-generator-functions",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-async-generator-functions"
}
},
classProperties: {
syntax: {
name: "@babel/plugin-syntax-class-properties",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"
},
transform: {
name: "@babel/plugin-transform-class-properties",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties"
}
},
classPrivateProperties: {
syntax: {
name: "@babel/plugin-syntax-class-properties",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"
},
transform: {
name: "@babel/plugin-transform-class-properties",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-class-properties"
}
},
classPrivateMethods: {
syntax: {
name: "@babel/plugin-syntax-class-properties",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-class-properties"
},
transform: {
name: "@babel/plugin-transform-private-methods",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-methods"
}
},
classStaticBlock: {
syntax: {
name: "@babel/plugin-syntax-class-static-block",
url: "https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-syntax-class-static-block"
},
transform: {
name: "@babel/plugin-transform-class-static-block",
url: "https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-static-block"
}
},
dynamicImport: {
syntax: {
name: "@babel/plugin-syntax-dynamic-import",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-dynamic-import"
}
},
exportNamespaceFrom: {
syntax: {
name: "@babel/plugin-syntax-export-namespace-from",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-export-namespace-from"
},
transform: {
name: "@babel/plugin-transform-export-namespace-from",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-export-namespace-from"
}
},
importAssertions: {
syntax: {
name: "@babel/plugin-syntax-import-assertions",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-assertions"
}
},
importAttributes: {
syntax: {
name: "@babel/plugin-syntax-import-attributes",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-attributes"
}
},
importMeta: {
syntax: {
name: "@babel/plugin-syntax-import-meta",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-import-meta"
}
},
logicalAssignment: {
syntax: {
name: "@babel/plugin-syntax-logical-assignment-operators",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-logical-assignment-operators"
},
transform: {
name: "@babel/plugin-transform-logical-assignment-operators",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-logical-assignment-operators"
}
},
moduleStringNames: {
syntax: {
name: "@babel/plugin-syntax-module-string-names",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-module-string-names"
}
},
numericSeparator: {
syntax: {
name: "@babel/plugin-syntax-numeric-separator",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-numeric-separator"
},
transform: {
name: "@babel/plugin-transform-numeric-separator",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-numeric-separator"
}
},
nullishCoalescingOperator: {
syntax: {
name: "@babel/plugin-syntax-nullish-coalescing-operator",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-nullish-coalescing-operator"
},
transform: {
name: "@babel/plugin-transform-nullish-coalescing-operator",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-nullish-coalescing-opearator"
}
},
objectRestSpread: {
syntax: {
name: "@babel/plugin-syntax-object-rest-spread",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-object-rest-spread"
},
transform: {
name: "@babel/plugin-transform-object-rest-spread",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-object-rest-spread"
}
},
optionalCatchBinding: {
syntax: {
name: "@babel/plugin-syntax-optional-catch-binding",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-catch-binding"
},
transform: {
name: "@babel/plugin-transform-optional-catch-binding",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-catch-binding"
}
},
optionalChaining: {
syntax: {
name: "@babel/plugin-syntax-optional-chaining",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-optional-chaining"
},
transform: {
name: "@babel/plugin-transform-optional-chaining",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-optional-chaining"
}
},
privateIn: {
syntax: {
name: "@babel/plugin-syntax-private-property-in-object",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-syntax-private-property-in-object"
},
transform: {
name: "@babel/plugin-transform-private-property-in-object",
url: "https://github.com/babel/babel/tree/main/packages/babel-plugin-transform-private-property-in-object"
}
},
regexpUnicodeSets: {
syntax: {
name: "@babel/plugin-syntax-unicode-sets-regex",
url: "https://github.com/babel/babel/blob/main/packages/babel-plugin-syntax-unicode-sets-regex/README.md"
},
transform: {
name: "@babel/plugin-transform-unicode-sets-regex",
url: "https://github.com/babel/babel/blob/main/packages/babel-plugin-proposalunicode-sets-regex/README.md"
}
}
});
var Sw = /* @__PURE__ */ i(({
name: e,
url: t
}) => `${e} (${t})`, "getNameURLCombination");
function kde(e, t, r, n) {
let s = `Support for the experimental syntax '${e}' isn't currently enabled (${t.line}:${t.column + 1}):
` + r, a = xw[e];
if (a) {
let {
syntax: l,
transform: u
} = a;
if (l) {
let c = Sw(l);
if (u) {
let p = Sw(u), f = u.name.startsWith("@babel/plugin") ? "plugins" : "presets";
s += `
Add ${p} to the '${f}' section of your Babel config to enable transformation.
If you want to leave it as-is, add ${c} to the 'plugins' section to enable parsing.`;
} else
s += `
Add ${c} to the 'plugins' section of your Babel config to enable parsing.`;
}
}
return s += `
If you already added the plugin for this syntax to your config, it's possible that your config isn't being loaded.
You can re-run Babel with the BABEL_SHOW_CONFIG_FOR environment variable to show the loaded configuration:
npx cross-env BABEL_SHOW_CONFIG_FOR=${n === "unknown" ? "<name of the input file>" : n} <your build command>
See https://babeljs.io/docs/configuration#print-effective-configs for more info.
`, s;
}
i(kde, "generateMissingPluginMessage");
});
// ../node_modules/@babel/core/lib/parser/index.js
var Bg = P((Ng) => {
"use strict";
Object.defineProperty(Ng, "__esModule", {
value: !0
});
Ng.default = jde;
function Og() {
let e = Rs();
return Og = /* @__PURE__ */ i(function() {
return e;
}, "_parser"), e;
}
i(Og, "_parser");
function Pw() {
let e = Xa();
return Pw = /* @__PURE__ */ i(function() {
return e;
}, "_codeFrame"), e;
}
i(Pw, "_codeFrame");
var Fde = vw();
function* jde(e, {
parserOpts: t,
highlightCode: r = !0,
filename: n = "unknown"
}, s) {
try {
let a = [];
for (let o of e)
for (let l of o) {
let {
parserOverride: u
} = l;
if (u) {
let c = u(s, t, Og().parse);
c !== void 0 && a.push(c);
}
}
if (a.length === 0)
return (0, Og().parse)(s, t);
if (a.length === 1) {
if (yield* [], typeof a[0].then == "function")
throw new Error("You appear to be using an async parser plugin, which your current version of Babel does not support. If you're us\
ing a published plugin, you may need to upgrade your @babel/core version.");
return a[0];
}
throw new Error("More than one plugin attempted to override parsing.");
} catch (a) {
a.code === "BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED" && (a.message += `
Consider renaming the file to '.mjs', or setting sourceType:module or sourceType:unambiguous in your Babel config for this file.`);
let {
loc: o,
missingPlugin: l
} = a;
if (o) {
let u = (0, Pw().codeFrameColumns)(s, {
start: {
line: o.line,
column: o.column + 1
}
}, {
highlightCode: r
});
l ? a.message = `${n}: ` + (0, Fde.default)(l[0], o, u, n) : a.message = `${n}: ${a.message}
` + u, a.code = "BABEL_PARSE_ERROR";
}
throw a;
}
}
i(jde, "parser");
});
// ../node_modules/@babel/core/lib/transformation/util/clone-deep.js
var Aw = P((jg) => {
"use strict";
Object.defineProperty(jg, "__esModule", {
value: !0
});
jg.default = Lde;
var rp = /* @__PURE__ */ new Set(), kg = 0;
function Fg(e, t, r) {
if (e !== null) {
if (r) {
if (t.has(e)) return t.get(e);
} else if (++kg > 250) {
if (rp.has(e))
throw kg = 0, rp.clear(), new Error("Babel-deepClone: Cycles are not allowed in AST");
rp.add(e);
}
let n;
if (Array.isArray(e)) {
n = new Array(e.length), r && t.set(e, n);
for (let s = 0; s < e.length; s++)
n[s] = typeof e[s] != "object" ? e[s] : Fg(e[s], t, r);
} else {
n = {}, r && t.set(e, n);
let s = Object.keys(e);
for (let a = 0; a < s.length; a++) {
let o = s[a];
n[o] = typeof e[o] != "object" ? e[o] : Fg(e[o], t, r || o === "leadingComments" || o === "innerComments" || o === "trailingCommen\
ts" || o === "extra");
}
}
return r || kg-- > 250 && rp.delete(e), n;
}
return e;
}
i(Fg, "deepClone");
function Lde(e) {
if (typeof e != "object") return e;
try {
return Fg(e, /* @__PURE__ */ new Map(), !0);
} catch {
return structuredClone(e);
}
}
i(Lde, "_default");
});
// ../node_modules/@babel/core/lib/transformation/normalize-file.js
var Ow = P((qg) => {
"use strict";
Object.defineProperty(qg, "__esModule", {
value: !0
});
qg.default = Wde;
function ww() {
let e = ce("fs");
return ww = /* @__PURE__ */ i(function() {
return e;
}, "_fs"), e;
}
i(ww, "_fs");
function Rg() {
let e = ce("path");
return Rg = /* @__PURE__ */ i(function() {
return e;
}, "_path"), e;
}
i(Rg, "_path");
function Iw() {
let e = Us();
return Iw = /* @__PURE__ */ i(function() {
return e;
}, "_debug"), e;
}
i(Iw, "_debug");
function _w() {
let e = De();
return _w = /* @__PURE__ */ i(function() {
return e;
}, "_t"), e;
}
i(_w, "_t");
function np() {
let e = Ig();
return np = /* @__PURE__ */ i(function() {
return e;
}, "_convertSourceMap"), e;
}
i(np, "_convertSourceMap");
var Mde = Ly(), Rde = Bg(), qde = Aw(), {
file: Ude,
traverseFast: Vde
} = _w(), Lg = Iw()("babel:transform:file"), $de = /^[@#]\s+sourceMappingURL=data:(?:application|text)\/json;(?:charset[:=]\S+?;)?base64,.*$/,
Cw = /^[@#][ \t]+sourceMappingURL=([^\s'"`]+)[ \t]*$/;
function* Wde(e, t, r, n) {
if (r = `${r || ""}`, n) {
if (n.type === "Program")
n = Ude(n, [], []);
else if (n.type !== "File")
throw new Error("AST root must be a Program or File node");
t.cloneInputAst && (n = (0, qde.default)(n));
} else
n = yield* (0, Rde.default)(e, t, r);
let s = null;
if (t.inputSourceMap !== !1) {
if (typeof t.inputSourceMap == "object" && (s = np().fromObject(t.inputSourceMap)), !s) {
let a = Dw($de, n);
if (a)
try {
s = np().fromComment("//" + a);
} catch {
Lg("discarding unknown inline input sourcemap");
}
}
if (!s) {
let a = Dw(Cw, n);
if (typeof t.filename == "string" && a)
try {
let o = Cw.exec(a), l = ww().readFileSync(Rg().resolve(Rg().dirname(t.filename), o[1]), "utf8");
s = np().fromJSON(l);
} catch (o) {
Lg("discarding unknown file input sourcemap", o);
}
else a && Lg("discarding un-loadable file input sourcemap");
}
}
return new Mde.default(t, {
code: r,
ast: n,
inputMap: s
});
}
i(Wde, "normalizeFile");
function Mg(e, t, r) {
return t && (t = t.filter(({
value: n
}) => e.test(n) ? (r = n, !1) : !0)), [t, r];
}
i(Mg, "extractCommentsFromList");
function Dw(e, t) {
let r = null;
return Vde(t, (n) => {
[n.leadingComments, r] = Mg(e, n.leadingComments, r), [n.innerComments, r] = Mg(e, n.innerComments, r), [n.trailingComments, r] = Mg(e,
n.trailingComments, r);
}), r;
}
i(Dw, "extractComments");
});
// ../node_modules/@ampproject/remapping/dist/remapping.umd.js
var Nw = P((Ug, Vg) => {
(function(e, t) {
typeof Ug == "object" && typeof Vg < "u" ? Vg.exports = t(uu(), fm()) : typeof define == "function" && define.amd ? define(["@jridgewell\
/trace-mapping", "@jridgewell/gen-mapping"], t) : (e = typeof globalThis < "u" ? globalThis : e || self, e.remapping = t(e.traceMapping, e.genMapping));
})(Ug, function(e, t) {
"use strict";
let r = /* @__PURE__ */ s("", -1, -1, "", null, !1), n = [];
function s(d, g, C, _, O, B) {
return { source: d, line: g, column: C, name: _, content: O, ignore: B };
}
i(s, "SegmentObject");
function a(d, g, C, _, O) {
return {
map: d,
sources: g,
source: C,
content: _,
ignore: O
};
}
i(a, "Source");
function o(d, g) {
return a(d, g, "", null, !1);
}
i(o, "MapSource");
function l(d, g, C) {
return a(null, n, d, g, C);
}
i(l, "OriginalSource");
function u(d) {
let g = new t.GenMapping({ file: d.map.file }), { sources: C, map: _ } = d, O = _.names, B = e.decodedMappings(_);
for (let R = 0; R < B.length; R++) {
let $ = B[R];
for (let V = 0; V < $.length; V++) {
let J = $[V], U = J[0], K = r;
if (J.length !== 1) {
let se = C[J[1]];
if (K = c(se, J[2], J[3], J.length === 5 ? O[J[4]] : ""), K == null)
continue;
}
let { column: j, line: Y, name: Ee, content: Pe, source: ee, ignore: Q } = K;
t.maybeAddSegment(g, R, U, ee, Y, j, Ee), ee && Pe != null && t.setSourceContent(g, ee, Pe), Q && t.setIgnore(g, ee, !0);
}
}
return g;
}
i(u, "traceMappings");
function c(d, g, C, _) {
if (!d.map)
return s(d.source, g, C, _, d.content, d.ignore);
let O = e.traceSegment(d.map, g, C);
return O == null ? null : O.length === 1 ? r : c(d.sources[O[1]], O[2], O[3], O.length === 5 ? d.map.names[O[4]] : _);
}
i(c, "originalPositionFor");
function p(d) {
return Array.isArray(d) ? d : [d];
}
i(p, "asArray");
function f(d, g) {
let C = p(d).map((B) => new e.TraceMap(B, "")), _ = C.pop();
for (let B = 0; B < C.length; B++)
if (C[B].sources.length > 1)
throw new Error(`Transformation map ${B} must have exactly one source file.
Did you specify these with the most recent transformation maps first?`);
let O = h(_, g, "", 0);
for (let B = C.length - 1; B >= 0; B--)
O = o(C[B], [O]);
return O;
}
i(f, "buildSourceMapTree");
function h(d, g, C, _) {
let { resolvedSources: O, sourcesContent: B, ignoreList: R } = d, $ = _ + 1, V = O.map((J, U) => {
let K = {
importer: C,
depth: $,
source: J || "",
content: void 0,
ignore: void 0
}, j = g(K.source, K), { source: Y, content: Ee, ignore: Pe } = K;
if (j)
return h(new e.TraceMap(j, Y), g, Y, $);
let ee = Ee !== void 0 ? Ee : B ? B[U] : null, Q = Pe !== void 0 ? Pe : R ? R.includes(U) : !1;
return l(Y, ee, Q);
});
return o(d, V);
}
i(h, "build");
class y {
static {
i(this, "SourceMap");
}
constructor(g, C) {
let _ = C.decodedMappings ? t.toDecodedMap(g) : t.toEncodedMap(g);
this.version = _.version, this.file = _.file, this.mappings = _.mappings, this.names = _.names, this.ignoreList = _.ignoreList, this.
sourceRoot = _.sourceRoot, this.sources = _.sources, C.excludeContent || (this.sourcesContent = _.sourcesContent);
}
toString() {
return JSON.stringify(this);
}
}
function E(d, g, C) {
let _ = typeof C == "object" ? C : { excludeContent: !!C, decodedMappings: !1 }, O = f(d, g);
return new y(u(O), _);
}
return i(E, "remapping"), E;
});
});
// ../node_modules/@babel/core/lib/transformation/file/merge-map.js
var Fw = P(($g) => {
"use strict";
Object.defineProperty($g, "__esModule", {
value: !0
});
$g.default = Kde;
function kw() {
let e = Nw();
return kw = /* @__PURE__ */ i(function() {
return e;
}, "_remapping"), e;
}
i(kw, "_remapping");
function Kde(e, t, r) {
let n = r.replace(/\\/g, "/"), s = !1, a = kw()(Bw(t), (o, l) => o === n && !s ? (s = !0, l.source = "", Bw(e)) : null);
return typeof e.sourceRoot == "string" && (a.sourceRoot = e.sourceRoot), Object.assign({}, a);
}
i(Kde, "mergeSourceMap");
function Bw(e) {
return Object.assign({}, e, {
sourceRoot: null
});
}
i(Bw, "rootless");
});
// ../node_modules/@babel/core/lib/transformation/file/generate.js
var Lw = P((Kg) => {
"use strict";
Object.defineProperty(Kg, "__esModule", {
value: !0
});
Kg.default = Hde;
function jw() {
let e = Ig();
return jw = /* @__PURE__ */ i(function() {
return e;
}, "_convertSourceMap"), e;
}
i(jw, "_convertSourceMap");
function Wg() {
let e = oo();
return Wg = /* @__PURE__ */ i(function() {
return e;
}, "_generator"), e;
}
i(Wg, "_generator");
var Gde = Fw();
function Hde(e, t) {
let {
opts: r,
ast: n,
code: s,
inputMap: a
} = t, {
generatorOpts: o
} = r;
o.inputSourceMap = a?.toObject();
let l = [];
for (let f of e)
for (let h of f) {
let {
generatorOverride: y
} = h;
if (y) {
let E = y(n, o, s, Wg().default);
E !== void 0 && l.push(E);
}
}
let u;
if (l.length === 0)
u = (0, Wg().default)(n, o, s);
else if (l.length === 1) {
if (u = l[0], typeof u.then == "function")
throw new Error("You appear to be using an async codegen plugin, which your current version of Babel does not support. If you're usi\
ng a published plugin, you may need to upgrade your @babel/core version.");
} else
throw new Error("More than one plugin attempted to override codegen.");
let {
code: c,
decodedMap: p = u.map
} = u;
return u.__mergedMap ? p = Object.assign({}, u.map) : p && (a ? p = (0, Gde.default)(a.toObject(), p, o.sourceFileName) : p = u.map), (r.
sourceMaps === "inline" || r.sourceMaps === "both") && (c += `
` + jw().fromObject(p).toComment()), r.sourceMaps === "inline" && (p = null), {
outputCode: c,
outputMap: p
};
}
i(Hde, "generateCode");
});
// ../node_modules/@babel/core/lib/transformation/index.js
var sp = P((Yg) => {
"use strict";
Object.defineProperty(Yg, "__esModule", {
value: !0
});
Yg.run = ehe;
function Hg() {
let e = Ot();
return Hg = /* @__PURE__ */ i(function() {
return e;
}, "_traverse"), e;
}
i(Hg, "_traverse");
var Yde = hw(), Jde = Ew(), Xde = wg(), zde = Ow(), Qde = Lw(), Zde = hc(), Gg = ys();
function* ehe(e, t, r) {
let n = yield* (0, zde.default)(e.passes, (0, Xde.default)(e), t, r), s = n.opts;
try {
yield* the(n, e.passes);
} catch (c) {
var a;
throw c.message = `${(a = s.filename) != null ? a : "unknown file"}: ${c.message}`, c.code || (c.code = "BABEL_TRANSFORM_ERROR"), c;
}
let o, l;
try {
s.code !== !1 && ({
outputCode: o,
outputMap: l
} = (0, Qde.default)(e.passes, n));
} catch (c) {
var u;
throw c.message = `${(u = s.filename) != null ? u : "unknown file"}: ${c.message}`, c.code || (c.code = "BABEL_GENERATE_ERROR"), c;
}
return {
metadata: n.metadata,
options: s,
ast: s.ast === !0 ? n.ast : null,
code: o === void 0 ? null : o,
map: l === void 0 ? null : l,
sourceType: n.ast.program.sourceType,
externalDependencies: (0, Zde.flattenToSet)(e.externalDependencies)
};
}
i(ehe, "run");
function* the(e, t) {
let r = yield* (0, Gg.isAsync)();
for (let n of t) {
let s = [], a = [], o = [];
for (let u of n.concat([(0, Jde.default)()])) {
let c = new Yde.default(e, u.key, u.options, r);
s.push([u, c]), a.push(c), o.push(u.visitor);
}
for (let [u, c] of s)
u.pre && (yield* (0, Gg.maybeAsync)(u.pre, "You appear to be using an async plugin/preset, but Babel has been called synchronously").
call(c, e));
let l = Hg().default.visitors.merge(o, a, e.opts.wrapPluginVisitorMethod);
(0, Hg().default)(e.ast, l, e.scope);
for (let [u, c] of s)
u.post && (yield* (0, Gg.maybeAsync)(u.post, "You appear to be using an async plugin/preset, but Babel has been called synchronously").
call(c, e));
}
}
i(the, "transformFile");
});
// ../node_modules/@babel/core/lib/transform-file.js
var Xg = P((Vo) => {
"use strict";
Object.defineProperty(Vo, "__esModule", {
value: !0
});
Vo.transformFile = ihe;
Vo.transformFileAsync = ohe;
Vo.transformFileSync = ahe;
function Mw() {
let e = xr();
return Mw = /* @__PURE__ */ i(function() {
return e;
}, "_gensync"), e;
}
i(Mw, "_gensync");
var rhe = ua(), nhe = sp(), she = sc(), Jg = Mw()(function* (e, t) {
let r = Object.assign({}, t, {
filename: e
}), n = yield* (0, rhe.default)(r);
if (n === null) return null;
let s = yield* she.readFile(e, "utf8");
return yield* (0, nhe.run)(n, s);
});
function ihe(...e) {
Jg.errback(...e);
}
i(ihe, "transformFile");
function ahe(...e) {
return Jg.sync(...e);
}
i(ahe, "transformFileSync");
function ohe(...e) {
return Jg.async(...e);
}
i(ohe, "transformFileAsync");
});
// ../node_modules/@babel/core/lib/config/files/import.cjs
var qw = P((pDe, Rw) => {
Rw.exports = /* @__PURE__ */ i(function(t) {
return import(t);
}, "import_");
});
// ../node_modules/@babel/preset-typescript/package.json
var Uw = P((dDe, lhe) => {
lhe.exports = {
name: "@babel/preset-typescript",
version: "7.27.0",
description: "Babel preset for TypeScript.",
repository: {
type: "git",
url: "https://github.com/babel/babel.git",
directory: "packages/babel-preset-typescript"
},
license: "MIT",
publishConfig: {
access: "public"
},
main: "./lib/index.js",
keywords: [
"babel-preset",
"typescript"
],
dependencies: {
"@babel/helper-plugin-utils": "^7.26.5",
"@babel/helper-validator-option": "^7.25.9",
"@babel/plugin-syntax-jsx": "^7.25.9",
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
"@babel/plugin-transform-typescript": "^7.27.0"
},
peerDependencies: {
"@babel/core": "^7.0.0-0"
},
devDependencies: {
"@babel/core": "^7.26.10",
"@babel/helper-plugin-test-runner": "^7.25.9"
},
homepage: "https://babel.dev/docs/en/next/babel-preset-typescript",
bugs: "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22area%3A%20typescript%22+is%3Aopen",
engines: {
node: ">=6.9.0"
},
author: "The Babel Team (https://babel.dev/team)",
type: "commonjs"
};
});
// ../node_modules/@babel/helper-plugin-utils/lib/index.js
var ca = P(($o) => {
"use strict";
Object.defineProperty($o, "__esModule", {
value: !0
});
$o.declare = Vw;
$o.declarePreset = void 0;
var zg = {
assertVersion: /* @__PURE__ */ i((e) => (t) => {
che(t, e.version);
}, "assertVersion")
};
Object.assign(zg, {
targets: /* @__PURE__ */ i(() => () => ({}), "targets"),
assumption: /* @__PURE__ */ i(() => () => {
}, "assumption"),
addExternalDependency: /* @__PURE__ */ i(() => () => {
}, "addExternalDependency")
});
function Vw(e) {
return (t, r, n) => {
var s;
let a;
for (let l of Object.keys(zg)) {
var o;
t[l] || ((o = a) != null || (a = uhe(t)), a[l] = zg[l](a));
}
return e((s = a) != null ? s : t, r || {}, n);
};
}
i(Vw, "declare");
var hDe = $o.declarePreset = Vw;
function uhe(e) {
let t = null;
return typeof e.version == "string" && /^7\./.test(e.version) && (t = Object.getPrototypeOf(e), t && (!hasOwnProperty.call(t, "version") ||
!hasOwnProperty.call(t, "transform") || !hasOwnProperty.call(t, "template") || !hasOwnProperty.call(t, "types")) && (t = null)), Object.
assign({}, t, e);
}
i(uhe, "copyApiObject");
function che(e, t) {
if (typeof e == "number") {
if (!Number.isInteger(e))
throw new Error("Expected string or integer value.");
e = `^${e}.0.0-0`;
}
if (typeof e != "string")
throw new Error("Expected string or integer value.");
let r = Error.stackTraceLimit;
typeof r == "number" && r < 25 && (Error.stackTraceLimit = 25);
let n;
throw t.slice(0, 2) === "7." ? n = new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${t}". You'll need to update your @b\
abel/core version.`) : n = new Error(`Requires Babel "${e}", but was loaded with "${t}". If you are sure you have a compatible version of @b\
abel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for\
the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.`), typeof r == "number" && (Error.stackTraceLimit =
r), Object.assign(n, {
code: "BABEL_VERSION_UNSUPPORTED",
version: t,
range: e
});
}
i(che, "throwVersionError");
});
// ../node_modules/@babel/plugin-syntax-typescript/lib/index.js
var $w = P((ip) => {
"use strict";
Object.defineProperty(ip, "__esModule", {
value: !0
});
ip.default = void 0;
var phe = ca();
Qg = /* @__PURE__ */ i(function(e, t) {
let r = [];
e.forEach((n, s) => {
(Array.isArray(n) ? n[0] : n) === t && r.unshift(s);
});
for (let n of r)
e.splice(n, 1);
}, "removePlugin");
var Qg, gDe = ip.default = (0, phe.declare)((e, t) => {
e.assertVersion(7);
let {
disallowAmbiguousJSXLike: r,
dts: n
} = t;
var {
isTSX: s
} = t;
return {
name: "syntax-typescript",
manipulateOptions(a, o) {
{
let {
plugins: l
} = o;
Qg(l, "flow"), Qg(l, "jsx"), l.push("objectRestSpread", "classProperties"), s && l.push("jsx");
}
o.plugins.push(["typescript", {
disallowAmbiguousJSXLike: r,
dts: n
}]);
}
};
});
});
// ../node_modules/@babel/helper-member-expression-to-functions/lib/index.js
var nb = P((rb) => {
"use strict";
Object.defineProperty(rb, "__esModule", { value: !0 });
var fhe = De();
function dhe(e) {
if (e && e.__esModule) return e;
var t = /* @__PURE__ */ Object.create(null);
return e && Object.keys(e).forEach(function(r) {
if (r !== "default") {
var n = Object.getOwnPropertyDescriptor(e, r);
Object.defineProperty(t, r, n.get ? n : {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return e[r];
}, "get")
});
}
}), t.default = e, Object.freeze(t);
}
i(dhe, "_interopNamespace");
var hhe = /* @__PURE__ */ dhe(fhe);
function eb(e) {
let t = e, {
node: r,
parentPath: n
} = t;
if (n.isLogicalExpression()) {
let {
operator: s,
right: a
} = n.node;
if (s === "&&" || s === "||" || s === "??" && r === a)
return eb(n);
}
if (n.isSequenceExpression()) {
let {
expressions: s
} = n.node;
return s[s.length - 1] === r ? eb(n) : !0;
}
return n.isConditional({
test: r
}) || n.isUnaryExpression({
operator: "!"
}) || n.isLoop({
test: r
});
}
i(eb, "willPathCastToBoolean");
var {
LOGICAL_OPERATORS: mhe,
arrowFunctionExpression: Ww,
assignmentExpression: pa,
binaryExpression: ui,
booleanLiteral: yhe,
callExpression: lp,
cloneNode: Ur,
conditionalExpression: ghe,
identifier: Jw,
isMemberExpression: bhe,
isOptionalCallExpression: Ehe,
isOptionalMemberExpression: Xw,
isUpdateExpression: The,
logicalExpression: op,
memberExpression: Kw,
nullLiteral: ap,
optionalCallExpression: She,
optionalMemberExpression: xhe,
sequenceExpression: Zg,
updateExpression: Gw
} = hhe, tb = class {
static {
i(this, "AssignmentMemoiser");
}
constructor() {
this._map = void 0, this._map = /* @__PURE__ */ new WeakMap();
}
has(t) {
return this._map.has(t);
}
get(t) {
if (!this.has(t)) return;
let r = this._map.get(t), {
value: n
} = r;
return r.count--, r.count === 0 ? pa("=", n, t) : n;
}
set(t, r, n) {
return this._map.set(t, {
count: n,
value: r
});
}
};
function Hw(e, t) {
let {
node: r
} = e;
if (Xw(r))
return Kw(t, r.property, r.computed);
if (e.isOptionalCallExpression()) {
let n = e.get("callee");
if (e.node.optional && n.isOptionalMemberExpression()) {
let s = n.node.object, a = e.scope.maybeGenerateMemoised(s);
return n.get("object").replaceWith(pa("=", a, s)), lp(Kw(t, Jw("call")), [a, ...e.node.arguments]);
}
return lp(t, e.node.arguments);
}
return e.node;
}
i(Hw, "toNonOptional");
function vhe(e) {
for (; e && !e.isProgram(); ) {
let {
parentPath: t,
container: r,
listKey: n
} = e, s = t.node;
if (n) {
if (r !== s[n])
return !0;
} else if (r !== s) return !0;
e = t;
}
return !1;
}
i(vhe, "isInDetachedTree");
var Phe = {
memoise() {
},
handle(e, t) {
let {
node: r,
parent: n,
parentPath: s,
scope: a
} = e;
if (e.isOptionalMemberExpression()) {
if (vhe(e)) return;
let o = e.find(({
node: V,
parent: J
}) => Xw(J) ? J.optional || J.object !== V : Ehe(J) ? V !== e.node && J.optional || J.callee !== V : !0);
if (a.path.isPattern()) {
o.replaceWith(lp(Ww([], o.node), []));
return;
}
let l = eb(o), u = o.parentPath;
if (u.isUpdateExpression({
argument: r
}))
throw e.buildCodeFrameError("can't handle update expression");
let c = u.isAssignmentExpression({
left: o.node
}), p = u.isUnaryExpression({
operator: "delete"
});
if (p && o.isOptionalMemberExpression() && o.get("property").isPrivateName())
throw e.buildCodeFrameError("can't delete a private class element");
let f = e;
for (; ; ) {
if (f.isOptionalMemberExpression()) {
if (f.node.optional) break;
f = f.get("object");
continue;
} else if (f.isOptionalCallExpression()) {
if (f.node.optional) break;
f = f.get("callee");
continue;
}
throw new Error(`Internal error: unexpected ${f.node.type}`);
}
let h = f.isOptionalMemberExpression() ? f.node.object : f.node.callee, y = a.maybeGenerateMemoised(h), E = y ?? h, d = s.isOptionalCallExpression(
{
callee: r
}), g = /* @__PURE__ */ i((V) => d, "isOptionalCall"), C = s.isCallExpression({
callee: r
});
f.replaceWith(Hw(f, E)), g() ? n.optional ? s.replaceWith(this.optionalCall(e, n.arguments)) : s.replaceWith(this.call(e, n.arguments)) :
C ? e.replaceWith(this.boundGet(e)) : this.delete && s.isUnaryExpression({
operator: "delete"
}) ? s.replaceWith(this.delete(e)) : s.isAssignmentExpression() ? Yw(this, e, s) : e.replaceWith(this.get(e));
let _ = e.node;
for (let V = e; V !== o; ) {
let J = V.parentPath;
if (J === o && g() && n.optional) {
_ = J.node;
break;
}
_ = Hw(J, _), V = J;
}
let O, B = o.parentPath;
if (bhe(_) && B.isOptionalCallExpression({
callee: o.node,
optional: !0
})) {
let {
object: V
} = _;
O = e.scope.maybeGenerateMemoised(V), O && (_.object = pa("=", O, V));
}
let R = o;
(p || c) && (R = B, _ = B.node);
let $ = y ? pa("=", Ur(E), Ur(h)) : Ur(E);
if (l) {
let V;
t ? V = ui("!=", $, ap()) : V = op("&&", ui("!==", $, ap()), ui("!==", Ur(E), a.buildUndefinedNode())), R.replaceWith(op("&&", V, _));
} else {
let V;
t ? V = ui("==", $, ap()) : V = op("||", ui("===", $, ap()), ui("===", Ur(E), a.buildUndefinedNode())), R.replaceWith(ghe(V, p ? yhe(
!0) : a.buildUndefinedNode(), _));
}
if (O) {
let V = B.node;
B.replaceWith(She(xhe(V.callee, Jw("call"), !1, !0), [Ur(O), ...V.arguments], !1));
}
return;
}
if (The(n, {
argument: r
})) {
if (this.simpleSet) {
e.replaceWith(this.simpleSet(e));
return;
}
let {
operator: o,
prefix: l
} = n;
this.memoise(e, 2);
let u = a.generateUidIdentifierBasedOnNode(r);
a.push({
id: u
});
let c = [pa("=", Ur(u), this.get(e))];
if (l) {
c.push(Gw(o, Ur(u), l));
let p = Zg(c);
s.replaceWith(this.set(e, p));
return;
} else {
let p = a.generateUidIdentifierBasedOnNode(r);
a.push({
id: p
}), c.push(pa("=", Ur(p), Gw(o, Ur(u), l)), Ur(u));
let f = Zg(c);
s.replaceWith(Zg([this.set(e, f), Ur(p)]));
return;
}
}
if (s.isAssignmentExpression({
left: r
})) {
Yw(this, e, s);
return;
}
if (s.isCallExpression({
callee: r
})) {
s.replaceWith(this.call(e, s.node.arguments));
return;
}
if (s.isOptionalCallExpression({
callee: r
})) {
if (a.path.isPattern()) {
s.replaceWith(lp(Ww([], s.node), []));
return;
}
s.replaceWith(this.optionalCall(e, s.node.arguments));
return;
}
if (this.delete && s.isUnaryExpression({
operator: "delete"
})) {
s.replaceWith(this.delete(e));
return;
}
if (s.isForXStatement({
left: r
}) || s.isObjectProperty({
value: r
}) && s.parentPath.isObjectPattern() || s.isAssignmentPattern({
left: r
}) && s.parentPath.isObjectProperty({
value: n
}) && s.parentPath.parentPath.isObjectPattern() || s.isArrayPattern() || s.isAssignmentPattern({
left: r
}) && s.parentPath.isArrayPattern() || s.isRestElement()) {
e.replaceWith(this.destructureSet(e));
return;
}
s.isTaggedTemplateExpression() ? e.replaceWith(this.boundGet(e)) : e.replaceWith(this.get(e));
}
};
function Yw(e, t, r) {
if (e.simpleSet) {
t.replaceWith(e.simpleSet(t));
return;
}
let {
operator: n,
right: s
} = r.node;
if (n === "=")
r.replaceWith(e.set(t, s));
else {
let a = n.slice(0, -1);
mhe.includes(a) ? (e.memoise(t, 1), r.replaceWith(op(a, e.get(t), e.set(t, s)))) : (e.memoise(t, 2), r.replaceWith(e.set(t, ui(a, e.get(
t), s))));
}
}
i(Yw, "handleAssignment");
function Ahe(e, t, r) {
e.traverse(t, Object.assign({}, Phe, r, {
memoiser: new tb()
}));
}
i(Ahe, "memberExpressionToFunctions");
rb.default = Ahe;
});
// ../node_modules/@babel/helper-optimise-call-expression/lib/index.js
var ib = P((sb) => {
"use strict";
Object.defineProperty(sb, "__esModule", {
value: !0
});
sb.default = Ihe;
var Che = De(), {
callExpression: zw,
identifier: up,
isIdentifier: Dhe,
isSpreadElement: whe,
memberExpression: Qw,
optionalCallExpression: Zw,
optionalMemberExpression: eI
} = Che;
function Ihe(e, t, r, n) {
return r.length === 1 && whe(r[0]) && Dhe(r[0].argument, {
name: "arguments"
}) ? n ? Zw(eI(e, up("apply"), !1, !0), [t, r[0].argument], !1) : zw(Qw(e, up("apply")), [t, r[0].argument]) : n ? Zw(eI(e, up("call"), !1,
!0), [t, ...r], !1) : zw(Qw(e, up("call")), [t, ...r]);
}
i(Ihe, "optimiseCallExpression");
});
// ../node_modules/@babel/helper-replace-supers/lib/index.js
var pp = P((da) => {
"use strict";
Object.defineProperty(da, "__esModule", {
value: !0
});
da.default = void 0;
var _he = nb(), cp = ib(), Zt = Pt(), ob = Ot(), {
assignmentExpression: Ohe,
callExpression: Kn,
cloneNode: Ht,
identifier: fa,
memberExpression: ci,
sequenceExpression: pi,
stringLiteral: rI,
thisExpression: er
} = Zt.types;
da.environmentVisitor = ob.visitors.environmentVisitor({}), da.skipAllButComputedKey = /* @__PURE__ */ i(function(t) {
t.skip(), t.node.computed && t.context.maybeQueue(t.get("key"));
}, "skipAllButComputedKey");
var tI = ob.visitors.environmentVisitor({
Super(e, t) {
let {
node: r,
parentPath: n
} = e;
n.isMemberExpression({
object: r
}) && t.handle(n);
}
}), Nhe = ob.visitors.environmentVisitor({
Scopable(e, {
refName: t
}) {
let r = e.scope.getOwnBinding(t);
r && r.identifier.name === t && e.scope.rename(t);
}
}), nI = {
memoise(e, t) {
let {
scope: r,
node: n
} = e, {
computed: s,
property: a
} = n;
if (!s)
return;
let o = r.maybeGenerateMemoised(a);
o && this.memoiser.set(a, o, t);
},
prop(e) {
let {
computed: t,
property: r
} = e.node;
return this.memoiser.has(r) ? Ht(this.memoiser.get(r)) : t ? Ht(r) : rI(r.name);
},
_getPrototypeOfExpression() {
let e = Ht(this.getObjectRef()), t = this.isStatic || this.isPrivateMethod ? e : ci(e, fa("prototype"));
return Kn(this.file.addHelper("getPrototypeOf"), [t]);
},
get(e) {
let t = Ht(this.getObjectRef());
return Kn(this.file.addHelper("superPropGet"), [this.isDerivedConstructor ? pi([er(), t]) : t, this.prop(e), er(), ...this.isStatic ||
this.isPrivateMethod ? [] : [Zt.types.numericLiteral(1)]]);
},
_call(e, t, r) {
let n = Ht(this.getObjectRef()), s;
t.length === 1 && Zt.types.isSpreadElement(t[0]) && (Zt.types.isIdentifier(t[0].argument) || Zt.types.isArrayExpression(t[0].argument)) ?
s = t[0].argument : s = Zt.types.arrayExpression(t);
let a = Zt.types.callExpression(this.file.addHelper("superPropGet"), [this.isDerivedConstructor ? pi([er(), n]) : n, this.prop(e), er(),
Zt.types.numericLiteral(2 | (this.isStatic || this.isPrivateMethod ? 0 : 1))]);
return r ? Zt.types.optionalCallExpression(a, [s], !0) : Kn(a, [s]);
},
set(e, t) {
let r = Ht(this.getObjectRef());
return Kn(this.file.addHelper("superPropSet"), [this.isDerivedConstructor ? pi([er(), r]) : r, this.prop(e), t, er(), Zt.types.numericLiteral(
e.isInStrictMode() ? 1 : 0), ...this.isStatic || this.isPrivateMethod ? [] : [Zt.types.numericLiteral(1)]]);
},
destructureSet(e) {
throw e.buildCodeFrameError("Destructuring to a super field is not supported yet.");
},
call(e, t) {
return this._call(e, t, !1);
},
optionalCall(e, t) {
return this._call(e, t, !0);
},
delete(e) {
return e.node.computed ? pi([Kn(this.file.addHelper("toPropertyKey"), [Ht(e.node.property)]), Zt.template.expression.ast`
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
`]) : Zt.template.expression.ast`
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
`;
}
}, Bhe = {
memoise(e, t) {
let {
scope: r,
node: n
} = e, {
computed: s,
property: a
} = n;
if (!s)
return;
let o = r.maybeGenerateMemoised(a);
o && this.memoiser.set(a, o, t);
},
prop(e) {
let {
computed: t,
property: r
} = e.node;
return this.memoiser.has(r) ? Ht(this.memoiser.get(r)) : t ? Ht(r) : rI(r.name);
},
_getPrototypeOfExpression() {
let e = Ht(this.getObjectRef()), t = this.isStatic || this.isPrivateMethod ? e : ci(e, fa("prototype"));
return Kn(this.file.addHelper("getPrototypeOf"), [t]);
},
get(e) {
return this._get(e);
},
_get(e) {
let t = this._getPrototypeOfExpression();
return Kn(this.file.addHelper("get"), [this.isDerivedConstructor ? pi([er(), t]) : t, this.prop(e), er()]);
},
set(e, t) {
let r = this._getPrototypeOfExpression();
return Kn(this.file.addHelper("set"), [this.isDerivedConstructor ? pi([er(), r]) : r, this.prop(e), t, er(), Zt.types.booleanLiteral(e.
isInStrictMode())]);
},
destructureSet(e) {
throw e.buildCodeFrameError("Destructuring to a super field is not supported yet.");
},
call(e, t) {
return (0, cp.default)(this._get(e), er(), t, !1);
},
optionalCall(e, t) {
return (0, cp.default)(this._get(e), Ht(er()), t, !0);
},
delete(e) {
return e.node.computed ? pi([Kn(this.file.addHelper("toPropertyKey"), [Ht(e.node.property)]), Zt.template.expression.ast`
function () { throw new ReferenceError("'delete super[expr]' is invalid"); }()
`]) : Zt.template.expression.ast`
function () { throw new ReferenceError("'delete super.prop' is invalid"); }()
`;
}
}, khe = Object.assign({}, nI, {
prop(e) {
let {
property: t
} = e.node;
return this.memoiser.has(t) ? Ht(this.memoiser.get(t)) : Ht(t);
},
get(e) {
let {
isStatic: t,
getSuperRef: r
} = this, {
computed: n
} = e.node, s = this.prop(e), a;
if (t) {
var o;
a = (o = r()) != null ? o : ci(fa("Function"), fa("prototype"));
} else {
var l;
a = ci((l = r()) != null ? l : fa("Object"), fa("prototype"));
}
return ci(a, s, n);
},
set(e, t) {
let {
computed: r
} = e.node, n = this.prop(e);
return Ohe("=", ci(er(), n, r), t);
},
destructureSet(e) {
let {
computed: t
} = e.node, r = this.prop(e);
return ci(er(), r, t);
},
call(e, t) {
return (0, cp.default)(this.get(e), er(), t, !1);
},
optionalCall(e, t) {
return (0, cp.default)(this.get(e), er(), t, !0);
}
}), ab = class {
static {
i(this, "ReplaceSupers");
}
constructor(t) {
var r;
let n = t.methodPath;
this.methodPath = n, this.isDerivedConstructor = n.isClassMethod({
kind: "constructor"
}) && !!t.superRef, this.isStatic = n.isObjectMethod() || n.node.static || (n.isStaticBlock == null ? void 0 : n.isStaticBlock()), this.
isPrivateMethod = n.isPrivate() && n.isMethod(), this.file = t.file, this.constantSuper = (r = t.constantSuper) != null ? r : t.isLoose,
this.opts = t;
}
getObjectRef() {
return Ht(this.opts.objectRef || this.opts.getObjectRef());
}
getSuperRef() {
if (this.opts.superRef) return Ht(this.opts.superRef);
if (this.opts.getSuperRef)
return Ht(this.opts.getSuperRef());
}
replace() {
let {
methodPath: t
} = this;
this.opts.refToPreserve && t.traverse(Nhe, {
refName: this.opts.refToPreserve.name
});
let r = this.constantSuper ? khe : this.file.availableHelper("superPropSet") ? nI : Bhe;
tI.shouldSkip = (n) => {
if (n.parentPath === t && (n.parentKey === "decorators" || n.parentKey === "key"))
return !0;
}, (0, _he.default)(t, tI, Object.assign({
file: this.file,
scope: this.methodPath.scope,
isDerivedConstructor: this.isDerivedConstructor,
isStatic: this.isStatic,
isPrivateMethod: this.isPrivateMethod,
getObjectRef: this.getObjectRef.bind(this),
getSuperRef: this.getSuperRef.bind(this),
boundGet: r.get
}, r));
}
};
da.default = ab;
});
// ../node_modules/@babel/helper-annotate-as-pure/lib/index.js
var ub = P((lb) => {
"use strict";
Object.defineProperty(lb, "__esModule", {
value: !0
});
lb.default = Rhe;
var Fhe = De(), {
addComment: jhe
} = Fhe, Lhe = "#__PURE__", Mhe = /* @__PURE__ */ i(({
leadingComments: e
}) => !!e && e.some((t) => /[@#]__PURE__/.test(t.value)), "isPureAnnotated");
function Rhe(e) {
let t = e.node || e;
Mhe(t) || jhe(t, "leading", Lhe);
}
i(Rhe, "annotateAsPure");
});
// ../node_modules/@babel/helper-skip-transparent-expression-wrappers/lib/index.js
var fp = P((Wo) => {
"use strict";
Object.defineProperty(Wo, "__esModule", {
value: !0
});
Wo.isTransparentExprWrapper = cb;
Wo.skipTransparentExprWrapperNodes = Yhe;
Wo.skipTransparentExprWrappers = Hhe;
var qhe = De(), {
isParenthesizedExpression: Uhe,
isTSAsExpression: Vhe,
isTSNonNullExpression: $he,
isTSSatisfiesExpression: Whe,
isTSTypeAssertion: Khe,
isTypeCastExpression: Ghe
} = qhe;
function cb(e) {
return Vhe(e) || Whe(e) || Khe(e) || $he(e) || Ghe(e) || Uhe(e);
}
i(cb, "isTransparentExprWrapper");
function Hhe(e) {
for (; cb(e.node); )
e = e.get("expression");
return e;
}
i(Hhe, "skipTransparentExprWrappers");
function Yhe(e) {
for (; cb(e); )
e = e.expression;
return e;
}
i(Yhe, "skipTransparentExprWrapperNodes");
});
// ../node_modules/@babel/helper-create-class-features-plugin/lib/typescript.js
var fb = P((pb) => {
"use strict";
Object.defineProperty(pb, "__esModule", {
value: !0
});
pb.assertFieldTransformed = Jhe;
function Jhe(e) {
if (e.node.declare)
throw e.buildCodeFrameError(`TypeScript 'declare' fields must first be transformed by @babel/plugin-transform-typescript.
If you have already enabled that plugin (or '@babel/preset-typescript'), make sure that it runs before any plugin related to additional clas\
s features:
- @babel/plugin-transform-class-properties
- @babel/plugin-transform-private-methods
- @babel/plugin-proposal-decorators`);
}
i(Jhe, "assertFieldTransformed");
});
// ../node_modules/@babel/helper-create-class-features-plugin/lib/fields.js
var gb = P((vs) => {
"use strict";
Object.defineProperty(vs, "__esModule", {
value: !0
});
vs.buildCheckInRHS = mp;
vs.buildFieldsInitNodes = Eme;
vs.buildPrivateNamesMap = tme;
vs.buildPrivateNamesNodes = rme;
vs.privateNameVisitorFactory = yb;
vs.transformPrivateNamesUsage = lme;
var F = Pt(), uI = Ot(), Xhe = pp(), zhe = nb(), sI = ib(), Qhe = ub(), Zhe = fp(), eme = fb();
tr = /* @__PURE__ */ i((e) => e.availableHelper("classPrivateFieldGet2"), "newHelpers");
var tr;
function tme(e, t, r, n) {
let s = /* @__PURE__ */ new Map(), a;
for (let o of r)
if (o.isPrivate()) {
let {
name: l
} = o.node.key.id, u = s.get(l);
if (!u) {
let c = !o.isProperty(), p = o.node.static, f = !1, h;
!t && tr(n) && c && !p ? (f = !!a, a ?? (a = o.scope.generateUidIdentifier(`${e}_brand`)), h = a) : h = o.scope.generateUidIdentifier(
l), u = {
id: h,
static: p,
method: c,
initAdded: f
}, s.set(l, u);
}
if (o.isClassPrivateMethod())
if (o.node.kind === "get") {
let {
body: c
} = o.node.body, p;
c.length === 1 && F.types.isReturnStatement(p = c[0]) && F.types.isCallExpression(p = p.argument) && p.arguments.length === 1 &&
F.types.isThisExpression(p.arguments[0]) && F.types.isIdentifier(p = p.callee) ? (u.getId = F.types.cloneNode(p), u.getterDeclared =
!0) : u.getId = o.scope.generateUidIdentifier(`get_${l}`);
} else if (o.node.kind === "set") {
let {
params: c
} = o.node, {
body: p
} = o.node.body, f;
p.length === 1 && F.types.isExpressionStatement(f = p[0]) && F.types.isCallExpression(f = f.expression) && f.arguments.length ===
2 && F.types.isThisExpression(f.arguments[0]) && F.types.isIdentifier(f.arguments[1], {
name: c[0].name
}) && F.types.isIdentifier(f = f.callee) ? (u.setId = F.types.cloneNode(f), u.setterDeclared = !0) : u.setId = o.scope.generateUidIdentifier(
`set_${l}`);
} else o.node.kind === "method" && (u.methodId = o.scope.generateUidIdentifier(l));
s.set(l, u);
}
return s;
}
i(tme, "buildPrivateNamesMap");
function rme(e, t, r, n) {
let s = [], a = /* @__PURE__ */ new Set();
for (let [o, l] of e) {
let {
static: u,
method: c,
getId: p,
setId: f
} = l, h = p || f, y = F.types.cloneNode(l.id), E;
if (t)
E = F.types.callExpression(n.addHelper("classPrivateFieldLooseKey"), [F.types.stringLiteral(o)]);
else if (r)
E = F.types.callExpression(F.types.identifier("Symbol"), [F.types.stringLiteral(o)]);
else if (!u) {
if (a.has(y.name)) continue;
a.add(y.name), E = F.types.newExpression(F.types.identifier(c && (!h || tr(n)) ? "WeakSet" : "WeakMap"), []);
}
E && (r || (0, Qhe.default)(E), s.push(F.template.statement.ast`var ${y} = ${E}`));
}
return s;
}
i(rme, "buildPrivateNamesNodes");
function yb(e) {
let t = uI.visitors.environmentVisitor(Object.assign({}, e)), r = Object.assign({}, e, {
Class(n) {
let {
privateNamesMap: s
} = this, a = n.get("body.body"), o = new Map(s), l = [];
for (let u of a) {
if (!u.isPrivate()) continue;
let {
name: c
} = u.node.key.id;
o.delete(c), l.push(c);
}
l.length && (n.get("body").traverse(t, Object.assign({}, this, {
redeclared: l
})), n.traverse(r, Object.assign({}, this, {
privateNamesMap: o
})), n.skipKey("body"));
}
});
return r;
}
i(yb, "privateNameVisitorFactory");
var nme = yb({
PrivateName(e, {
noDocumentAll: t
}) {
let {
privateNamesMap: r,
redeclared: n
} = this, {
node: s,
parentPath: a
} = e;
if (!a.isMemberExpression({
property: s
}) && !a.isOptionalMemberExpression({
property: s
}))
return;
let {
name: o
} = s.id;
r.has(o) && (n != null && n.includes(o) || this.handle(a, t));
}
});
function cI(e, t, r) {
for (; (n = t) != null && n.hasBinding(e) && !t.bindingIdentifierEquals(e, r); ) {
var n;
t.rename(e), t = t.parent;
}
}
i(cI, "unshadow");
function mp(e, t, r) {
return r || !(t.availableHelper != null && t.availableHelper("checkInRHS")) ? e : F.types.callExpression(t.addHelper("checkInRHS"), [e]);
}
i(mp, "buildCheckInRHS");
var sme = yb({
BinaryExpression(e, {
file: t
}) {
let {
operator: r,
left: n,
right: s
} = e.node;
if (r !== "in" || !F.types.isPrivateName(n)) return;
let {
privateFieldsAsProperties: a,
privateNamesMap: o,
redeclared: l
} = this, {
name: u
} = n.id;
if (!o.has(u) || l != null && l.includes(u)) return;
if (cI(this.classRef.name, e.scope, this.innerBinding), a) {
let {
id: f
} = o.get(u);
e.replaceWith(F.template.expression.ast`
Object.prototype.hasOwnProperty.call(${mp(s, t)}, ${F.types.cloneNode(f)})
`);
return;
}
let {
id: c,
static: p
} = o.get(u);
if (p) {
e.replaceWith(F.template.expression.ast`${mp(s, t)} === ${F.types.cloneNode(this.classRef)}`);
return;
}
e.replaceWith(F.template.expression.ast`${F.types.cloneNode(c)}.has(${mp(s, t)})`);
}
});
function dp(e, t) {
return F.types.callExpression(e.addHelper("readOnlyError"), [F.types.stringLiteral(`#${t}`)]);
}
i(dp, "readOnlyError");
function ime(e, t) {
return e.availableHelper("writeOnlyError") ? F.types.callExpression(e.addHelper("writeOnlyError"), [F.types.stringLiteral(`#${t}`)]) : (console.
warn("@babel/helpers is outdated, update it to silence this warning."), F.types.buildUndefinedNode());
}
i(ime, "writeOnlyError");
function db(e, t) {
return t ? e : F.types.memberExpression(e, F.types.identifier("_"));
}
i(db, "buildStaticPrivateFieldAccess");
function iI(e) {
return function(t) {
return F.types.inherits(e.apply(this, arguments), t.node);
};
}
i(iI, "autoInherits");
var ame = {
memoise(e, t) {
let {
scope: r
} = e, {
object: n
} = e.node, s = r.maybeGenerateMemoised(n);
s && this.memoiser.set(n, s, t);
},
receiver(e) {
let {
object: t
} = e.node;
return this.memoiser.has(t) ? F.types.cloneNode(this.memoiser.get(t)) : F.types.cloneNode(t);
},
get: iI(function(e) {
let {
classRef: t,
privateNamesMap: r,
file: n,
innerBinding: s,
noUninitializedPrivateFieldAccess: a
} = this, o = e.node.property, {
name: l
} = o.id, {
id: u,
static: c,
method: p,
methodId: f,
getId: h,
setId: y
} = r.get(l), E = h || y, d = /* @__PURE__ */ i((g) => F.types.inherits(F.types.cloneNode(g), o), "cloneId");
if (c) {
if (cI(t.name, e.scope, s), !tr(n)) {
let _ = p && !E ? "classStaticPrivateMethodGet" : "classStaticPrivateFieldSpecGet";
return F.types.callExpression(n.addHelper(_), [this.receiver(e), F.types.cloneNode(t), d(u)]);
}
let g = this.receiver(e), C = F.types.isIdentifier(g) && g.name === t.name;
if (!p)
return db(C ? d(u) : F.types.callExpression(n.addHelper("assertClassBrand"), [F.types.cloneNode(t), g, d(u)]), a);
if (h)
return C ? F.types.callExpression(d(h), [g]) : F.types.callExpression(n.addHelper("classPrivateGetter"), [F.types.cloneNode(t), g,
d(h)]);
if (y) {
let _ = F.types.buildUndefinedNode();
return C ? _ : F.types.sequenceExpression([F.types.callExpression(n.addHelper("assertClassBrand"), [F.types.cloneNode(t), g]), _]);
}
return C ? d(u) : F.types.callExpression(n.addHelper("assertClassBrand"), [F.types.cloneNode(t), g, d(u)]);
}
return p ? E ? h ? tr(n) ? F.types.callExpression(n.addHelper("classPrivateGetter"), [F.types.cloneNode(u), this.receiver(e), d(h)]) :
F.types.callExpression(n.addHelper("classPrivateFieldGet"), [this.receiver(e), d(u)]) : F.types.sequenceExpression([this.receiver(e), ime(
n, l)]) : tr(n) ? F.types.callExpression(n.addHelper("assertClassBrand"), [F.types.cloneNode(u), this.receiver(e), d(f)]) : F.types.callExpression(
n.addHelper("classPrivateMethodGet"), [this.receiver(e), F.types.cloneNode(u), d(f)]) : tr(n) ? F.types.callExpression(n.addHelper("cl\
assPrivateFieldGet2"), [d(u), this.receiver(e)]) : F.types.callExpression(n.addHelper("classPrivateFieldGet"), [this.receiver(e), d(u)]);
}),
boundGet(e) {
return this.memoise(e, 1), F.types.callExpression(F.types.memberExpression(this.get(e), F.types.identifier("bind")), [this.receiver(e)]);
},
set: iI(function(e, t) {
let {
classRef: r,
privateNamesMap: n,
file: s,
noUninitializedPrivateFieldAccess: a
} = this, o = e.node.property, {
name: l
} = o.id, {
id: u,
static: c,
method: p,
setId: f,
getId: h
} = n.get(l), y = h || f, E = /* @__PURE__ */ i((d) => F.types.inherits(F.types.cloneNode(d), o), "cloneId");
if (c) {
if (!tr(s)) {
let C = p && !y ? "classStaticPrivateMethodSet" : "classStaticPrivateFieldSpecSet";
return F.types.callExpression(s.addHelper(C), [this.receiver(e), F.types.cloneNode(r), E(u), t]);
}
let d = this.receiver(e), g = F.types.isIdentifier(d) && d.name === r.name;
if (p && !f) {
let C = dp(s, l);
return g ? F.types.sequenceExpression([t, C]) : F.types.sequenceExpression([t, F.types.callExpression(s.addHelper("assertClassBran\
d"), [F.types.cloneNode(r), d]), dp(s, l)]);
}
return f ? g ? F.types.callExpression(F.types.cloneNode(f), [d, t]) : F.types.callExpression(s.addHelper("classPrivateSetter"), [F.types.
cloneNode(r), E(f), d, t]) : F.types.assignmentExpression("=", db(E(u), a), g ? t : F.types.callExpression(s.addHelper("assertClassB\
rand"), [F.types.cloneNode(r), d, t]));
}
return p ? f ? tr(s) ? F.types.callExpression(s.addHelper("classPrivateSetter"), [F.types.cloneNode(u), E(f), this.receiver(e), t]) : F.
types.callExpression(s.addHelper("classPrivateFieldSet"), [this.receiver(e), E(u), t]) : F.types.sequenceExpression([this.receiver(e),
t, dp(s, l)]) : tr(s) ? F.types.callExpression(s.addHelper("classPrivateFieldSet2"), [E(u), this.receiver(e), t]) : F.types.callExpression(
s.addHelper("classPrivateFieldSet"), [this.receiver(e), E(u), t]);
}),
destructureSet(e) {
let {
classRef: t,
privateNamesMap: r,
file: n,
noUninitializedPrivateFieldAccess: s
} = this, a = e.node.property, {
name: o
} = a.id, {
id: l,
static: u,
method: c,
setId: p
} = r.get(o), f = /* @__PURE__ */ i((d) => F.types.inherits(F.types.cloneNode(d), a), "cloneId");
if (!tr(n)) {
if (u) {
try {
var h = n.addHelper("classStaticPrivateFieldDestructureSet");
} catch {
throw new Error("Babel can not transpile `[C.#p] = [0]` with @babel/helpers < 7.13.10, \nplease update @babel/helpers to the late\
st version.");
}
return F.types.memberExpression(F.types.callExpression(h, [this.receiver(e), F.types.cloneNode(t), f(l)]), F.types.identifier("val\
ue"));
}
return F.types.memberExpression(F.types.callExpression(n.addHelper("classPrivateFieldDestructureSet"), [this.receiver(e), f(l)]), F.
types.identifier("value"));
}
if (c && !p)
return F.types.memberExpression(F.types.sequenceExpression([e.node.object, dp(n, o)]), F.types.identifier("_"));
if (u && !c) {
let d = this.get(e);
if (!s || !F.types.isCallExpression(d))
return d;
let g = d.arguments.pop();
return d.arguments.push(F.template.expression.ast`(_) => ${g} = _`), F.types.memberExpression(F.types.callExpression(n.addHelper("to\
Setter"), [d]), F.types.identifier("_"));
}
let y = this.set(e, F.types.identifier("_"));
if (!F.types.isCallExpression(y) || !F.types.isIdentifier(y.arguments[y.arguments.length - 1], {
name: "_"
}))
throw e.buildCodeFrameError("Internal Babel error while compiling this code. This is a Babel bug. Please report it at https://github\
.com/babel/babel/issues.");
let E;
return F.types.isMemberExpression(y.callee, {
computed: !1
}) && F.types.isIdentifier(y.callee.property) && y.callee.property.name === "call" ? E = [y.callee.object, F.types.arrayExpression(y.arguments.
slice(1, -1)), y.arguments[0]] : E = [y.callee, F.types.arrayExpression(y.arguments.slice(0, -1))], F.types.memberExpression(F.types.callExpression(
n.addHelper("toSetter"), E), F.types.identifier("_"));
},
call(e, t) {
return this.memoise(e, 1), (0, sI.default)(this.get(e), this.receiver(e), t, !1);
},
optionalCall(e, t) {
return this.memoise(e, 1), (0, sI.default)(this.get(e), this.receiver(e), t, !0);
},
delete() {
throw new Error("Internal Babel error: deleting private elements is a parsing error.");
}
}, ome = {
get(e) {
let {
privateNamesMap: t,
file: r
} = this, {
object: n
} = e.node, {
name: s
} = e.node.property.id;
return F.template.expression`BASE(REF, PROP)[PROP]`({
BASE: r.addHelper("classPrivateFieldLooseBase"),
REF: F.types.cloneNode(n),
PROP: F.types.cloneNode(t.get(s).id)
});
},
set() {
throw new Error("private name handler with loose = true don't need set()");
},
boundGet(e) {
return F.types.callExpression(F.types.memberExpression(this.get(e), F.types.identifier("bind")), [F.types.cloneNode(e.node.object)]);
},
simpleSet(e) {
return this.get(e);
},
destructureSet(e) {
return this.get(e);
},
call(e, t) {
return F.types.callExpression(this.get(e), t);
},
optionalCall(e, t) {
return F.types.optionalCallExpression(this.get(e), t, !0);
},
delete() {
throw new Error("Internal Babel error: deleting private elements is a parsing error.");
}
};
function lme(e, t, r, {
privateFieldsAsProperties: n,
noUninitializedPrivateFieldAccess: s,
noDocumentAll: a,
innerBinding: o
}, l) {
if (!r.size) return;
let u = t.get("body"), c = n ? ome : ame;
(0, zhe.default)(u, nme, Object.assign({
privateNamesMap: r,
classRef: e,
file: l
}, c, {
noDocumentAll: a,
noUninitializedPrivateFieldAccess: s,
innerBinding: o
})), u.traverse(sme, {
privateNamesMap: r,
classRef: e,
file: l,
privateFieldsAsProperties: n,
innerBinding: o
});
}
i(lme, "transformPrivateNamesUsage");
function aI(e, t, r) {
let {
id: n
} = r.get(t.node.key.id.name), s = t.node.value || t.scope.buildUndefinedNode();
return Vt(F.template.statement.ast`
Object.defineProperty(${e}, ${F.types.cloneNode(n)}, {
// configurable is false by default
// enumerable is false by default
writable: true,
value: ${s}
});
`, t);
}
i(aI, "buildPrivateFieldInitLoose");
function ume(e, t, r, n) {
let {
id: s
} = r.get(t.node.key.id.name), a = t.node.value || t.scope.buildUndefinedNode();
if (!n.availableHelper("classPrivateFieldInitSpec"))
return Vt(F.template.statement.ast`${F.types.cloneNode(s)}.set(${e}, {
// configurable is always false for private elements
// enumerable is always false for private elements
writable: true,
value: ${a},
})`, t);
let o = n.addHelper("classPrivateFieldInitSpec");
return mb(Vt(F.types.expressionStatement(F.types.callExpression(o, [F.types.thisExpression(), mb(F.types.cloneNode(s), t.node.key), tr(n) ?
a : F.template.expression.ast`{ writable: true, value: ${a} }`])), t), t.node);
}
i(ume, "buildPrivateInstanceFieldInitSpec");
function cme(e, t, r) {
let n = t.get(e.node.key.id.name), s = r ? e.node.value : F.template.expression.ast`{
_: ${e.node.value || F.types.buildUndefinedNode()}
}`;
return Vt(F.types.variableDeclaration("var", [F.types.variableDeclarator(F.types.cloneNode(n.id), s)]), e);
}
i(cme, "buildPrivateStaticFieldInitSpec");
hb = /* @__PURE__ */ i(function(e, t) {
let r = t.get(e.node.key.id.name), {
id: n,
getId: s,
setId: a,
initAdded: o
} = r, l = s || a;
if (!e.isProperty() && (o || !l)) return;
if (l)
return t.set(e.node.key.id.name, Object.assign({}, r, {
initAdded: !0
})), Vt(F.template.statement.ast`
var ${F.types.cloneNode(n)} = {
// configurable is false by default
// enumerable is false by default
// writable is false by default
get: ${s ? s.name : e.scope.buildUndefinedNode()},
set: ${a ? a.name : e.scope.buildUndefinedNode()}
}
`, e);
let u = e.node.value || e.scope.buildUndefinedNode();
return Vt(F.template.statement.ast`
var ${F.types.cloneNode(n)} = {
// configurable is false by default
// enumerable is false by default
writable: true,
value: ${u}
};
`, e);
}, "buildPrivateStaticFieldInitSpecOld");
var hb;
function pme(e, t, r) {
let n = r.get(t.node.key.id.name), {
methodId: s,
id: a,
getId: o,
setId: l,
initAdded: u
} = n;
if (u) return;
if (s)
return Vt(F.template.statement.ast`
Object.defineProperty(${e}, ${a}, {
// configurable is false by default
// enumerable is false by default
// writable is false by default
value: ${s.name}
});
`, t);
if (o || l)
return r.set(t.node.key.id.name, Object.assign({}, n, {
initAdded: !0
})), Vt(F.template.statement.ast`
Object.defineProperty(${e}, ${a}, {
// configurable is false by default
// enumerable is false by default
// writable is false by default
get: ${o ? o.name : t.scope.buildUndefinedNode()},
set: ${l ? l.name : t.scope.buildUndefinedNode()}
});
`, t);
}
i(pme, "buildPrivateMethodInitLoose");
function fme(e, t, r, n) {
let s = r.get(t.node.key.id.name);
if (!s.initAdded)
return !tr(n) && (s.getId || s.setId) ? dme(e, t, r, n) : hme(e, t, r, n);
}
i(fme, "buildPrivateInstanceMethodInitSpec");
function dme(e, t, r, n) {
let s = r.get(t.node.key.id.name), {
id: a,
getId: o,
setId: l
} = s;
if (r.set(t.node.key.id.name, Object.assign({}, s, {
initAdded: !0
})), !n.availableHelper("classPrivateFieldInitSpec"))
return Vt(F.template.statement.ast`
${a}.set(${e}, {
get: ${o ? o.name : t.scope.buildUndefinedNode()},
set: ${l ? l.name : t.scope.buildUndefinedNode()}
});
`, t);
let u = n.addHelper("classPrivateFieldInitSpec");
return mb(Vt(F.template.statement.ast`${u}(
${F.types.thisExpression()},
${F.types.cloneNode(a)},
{
get: ${o ? o.name : t.scope.buildUndefinedNode()},
set: ${l ? l.name : t.scope.buildUndefinedNode()}
},
)`, t), t.node);
}
i(dme, "buildPrivateAccessorInitialization");
function hme(e, t, r, n) {
let s = r.get(t.node.key.id.name), {
id: a
} = s;
if (!n.availableHelper("classPrivateMethodInitSpec"))
return Vt(F.template.statement.ast`${a}.add(${e})`, t);
let o = n.addHelper("classPrivateMethodInitSpec");
return Vt(F.template.statement.ast`${o}(
${F.types.thisExpression()},
${F.types.cloneNode(a)}
)`, t);
}
i(hme, "buildPrivateInstanceMethodInitialization");
function oI(e, t) {
let {
key: r,
computed: n
} = t.node, s = t.node.value || t.scope.buildUndefinedNode();
return Vt(F.types.expressionStatement(F.types.assignmentExpression("=", F.types.memberExpression(e, r, n || F.types.isLiteral(r)), s)), t);
}
i(oI, "buildPublicFieldInitLoose");
function lI(e, t, r) {
let {
key: n,
computed: s
} = t.node, a = t.node.value || t.scope.buildUndefinedNode();
return Vt(F.types.expressionStatement(F.types.callExpression(r.addHelper("defineProperty"), [e, s || F.types.isLiteral(n) ? n : F.types.
stringLiteral(n.name), a])), t);
}
i(lI, "buildPublicFieldInitSpec");
function mme(e, t, r, n) {
let s = n.get(t.node.key.id.name), {
id: a,
methodId: o,
getId: l,
setId: u,
initAdded: c
} = s;
return c ? void 0 : l || u ? (n.set(t.node.key.id.name, Object.assign({}, s, {
initAdded: !0
})), Vt(F.template.statement.ast`
Object.defineProperty(${e}, ${a}, {
// configurable is false by default
// enumerable is false by default
// writable is false by default
get: ${l ? l.name : t.scope.buildUndefinedNode()},
set: ${u ? u.name : t.scope.buildUndefinedNode()}
})
`, t)) : Vt(F.template.statement.ast`
Object.defineProperty(${e}, ${a}, {
// configurable is false by default
// enumerable is false by default
// writable is false by default
value: ${o.name}
});
`, t);
}
i(mme, "buildPrivateStaticMethodInitLoose");
function hp(e, t, r, n = !1) {
let s = r.get(t.node.key.id.name), {
id: a,
methodId: o,
getId: l,
setId: u,
getterDeclared: c,
setterDeclared: p,
static: f
} = s, {
params: h,
body: y,
generator: E,
async: d
} = t.node, g = l && h.length === 0, C = u && h.length > 0;
if (g && c || C && p)
return r.set(t.node.key.id.name, Object.assign({}, s, {
initAdded: !0
})), null;
if (tr(e) && (g || C) && !n) {
let O = t.get("body").scope, B = O.generateUidIdentifier("this"), R = {
thisRef: B,
argumentsPath: []
};
if (t.traverse(pI, R), R.argumentsPath.length) {
let $ = O.generateUidIdentifier("arguments");
O.push({
id: $,
init: F.template.expression.ast`[].slice.call(arguments, 1)`
});
for (let V of R.argumentsPath)
V.replaceWith(F.types.cloneNode($));
}
h.unshift(F.types.cloneNode(B));
}
let _ = o;
return g ? (r.set(t.node.key.id.name, Object.assign({}, s, {
getterDeclared: !0,
initAdded: !0
})), _ = l) : C ? (r.set(t.node.key.id.name, Object.assign({}, s, {
setterDeclared: !0,
initAdded: !0
})), _ = u) : f && !n && (_ = a), Vt(F.types.functionDeclaration(F.types.cloneNode(_), h, y, E, d), t);
}
i(hp, "buildPrivateMethodDeclaration");
var pI = uI.visitors.environmentVisitor({
Identifier(e, t) {
t.argumentsPath && e.node.name === "arguments" && t.argumentsPath.push(e);
},
UnaryExpression(e) {
let {
node: t
} = e;
if (t.operator === "delete") {
let r = (0, Zhe.skipTransparentExprWrapperNodes)(t.argument);
F.types.isThisExpression(r) && e.replaceWith(F.types.booleanLiteral(!0));
}
},
ThisExpression(e, t) {
t.needsClassRef = !0, e.replaceWith(F.types.cloneNode(t.thisRef));
},
MetaProperty(e) {
let {
node: t,
scope: r
} = e;
t.meta.name === "new" && t.property.name === "target" && e.replaceWith(r.buildUndefinedNode());
}
}), yme = {
ReferencedIdentifier(e, t) {
e.scope.bindingIdentifierEquals(e.node.name, t.innerBinding) && (t.needsClassRef = !0, e.node.name = t.thisRef.name);
}
};
function gme(e, t, r) {
var n;
let s = {
thisRef: t,
needsClassRef: !1,
innerBinding: r
};
return e.isMethod() || e.traverse(pI, s), r != null && (n = s.thisRef) != null && n.name && s.thisRef.name !== r.name && e.traverse(yme,
s), s.needsClassRef;
}
i(gme, "replaceThisContext");
function bme({
key: e,
computed: t
}) {
return e.type === "Identifier" ? !t && (e.name === "name" || e.name === "length") : e.type === "StringLiteral" ? e.value === "name" || e.
value === "length" : !1;
}
i(bme, "isNameOrLength");
function Vt(e, t) {
return F.types.inheritLeadingComments(e, t.node), F.types.inheritInnerComments(e, t.node), e;
}
i(Vt, "inheritPropComments");
function mb(e, t) {
return e.start = t.start, e.end = t.end, e.loc = t.loc, e;
}
i(mb, "inheritLoc");
function Eme(e, t, r, n, s, a, o, l, u, c) {
let p = 0, f, h = [], y = [], E = !1, d = [], g = null, C = F.types.isIdentifier(t) ? () => t : () => (f ?? (f = r[0].scope.generateUidIdentifierBasedOnNode(
t)), f), _ = e ?? r[0].scope.generateUidIdentifier(c?.name || "Class");
e ?? (e = F.types.cloneNode(c));
for (let O of r) {
O.isClassProperty() && eme.assertFieldTransformed(O);
let B = !(F.types.isStaticBlock != null && F.types.isStaticBlock(O.node)) && O.node.static, R = !B, $ = O.isPrivate(), V = !$, J = O.isProperty(),
U = !J, K = O.isStaticBlock == null ? void 0 : O.isStaticBlock();
switch (B && (p |= 1), (B || U && $ || K) && (new Xhe.default({
methodPath: O,
constantSuper: u,
file: s,
refToPreserve: c,
getSuperRef: C,
getObjectRef() {
return p |= 2, B || K ? _ : F.types.memberExpression(_, F.types.identifier("prototype"));
}
}).replace(), gme(O, _, c) && (p |= 2)), E = !1, !0) {
case K: {
let j = O.node.body;
j.length === 1 && F.types.isExpressionStatement(j[0]) ? h.push(Vt(j[0], O)) : h.push(F.types.inheritsComments(F.template.statement.
ast`(() => { ${j} })()`, O.node));
break;
}
case (B && $ && J && o):
h.push(aI(F.types.cloneNode(e), O, n));
break;
case (B && $ && J && !o):
tr(s) ? h.push(cme(O, n, l)) : h.push(hb(O, n));
break;
case (B && V && J && a):
if (!bme(O.node)) {
h.push(oI(F.types.cloneNode(e), O));
break;
}
case (B && V && J && !a):
h.push(lI(F.types.cloneNode(e), O, s));
break;
case (R && $ && J && o):
y.push(aI(F.types.thisExpression(), O, n));
break;
case (R && $ && J && !o):
y.push(ume(F.types.thisExpression(), O, n, s));
break;
case (R && $ && U && o):
y.unshift(pme(F.types.thisExpression(), O, n)), d.push(hp(s, O, n, o));
break;
case (R && $ && U && !o):
y.unshift(fme(F.types.thisExpression(), O, n, s)), d.push(hp(s, O, n, o));
break;
case (B && $ && U && !o):
tr(s) || h.unshift(hb(O, n)), d.push(hp(s, O, n, o));
break;
case (B && $ && U && o):
h.unshift(mme(F.types.cloneNode(e), O, s, n)), d.push(hp(s, O, n, o));
break;
case (R && V && J && a):
y.push(oI(F.types.thisExpression(), O));
break;
case (R && V && J && !a):
E = !0, y.push(lI(F.types.thisExpression(), O, s));
break;
default:
throw new Error("Unreachable.");
}
}
return p & 2 && c != null && (g = F.types.expressionStatement(F.types.assignmentExpression("=", F.types.cloneNode(_), F.types.cloneNode(
c)))), {
staticNodes: h.filter(Boolean),
instanceNodes: y.filter(Boolean),
lastInstanceNodeReturnsThis: E,
pureStaticNodes: d.filter(Boolean),
classBindingNode: g,
wrapClass(O) {
for (let B of r)
B.node.leadingComments = null, B.remove();
return f && (O.scope.push({
id: F.types.cloneNode(f)
}), O.set("superClass", F.types.assignmentExpression("=", f, O.node.superClass))), p !== 0 && (O.isClassExpression() ? (O.scope.push(
{
id: e
}), O.replaceWith(F.types.assignmentExpression("=", F.types.cloneNode(e), O.node))) : (c == null && (O.node.id = e), g != null && O.
scope.push({
id: _
}))), O;
}
};
}
i(Eme, "buildFieldsInitNodes");
});
// ../node_modules/@babel/helper-create-class-features-plugin/lib/misc.js
var bb = P((Ko) => {
"use strict";
Object.defineProperty(Ko, "__esModule", {
value: !0
});
Ko.extractComputedKeys = Ame;
Ko.injectInitialization = Pme;
Ko.memoiseComputedKey = dI;
var Dt = Pt(), Tme = Ot(), Sme = Tme.visitors.environmentVisitor({
Super(e) {
let {
node: t,
parentPath: r
} = e;
r.isCallExpression({
callee: t
}) && this.push(r);
}
}), xme = {
"TSTypeAnnotation|TypeAnnotation"(e) {
e.skip();
},
ReferencedIdentifier(e, {
scope: t
}) {
t.hasOwnBinding(e.node.name) && (t.rename(e.node.name), e.skip());
}
};
function fI(e, t) {
if (t.classBinding && t.classBinding === e.scope.getBinding(e.node.name)) {
let r = t.file.addHelper("classNameTDZError"), n = Dt.types.callExpression(r, [Dt.types.stringLiteral(e.node.name)]);
e.replaceWith(Dt.types.sequenceExpression([n, e.node])), e.skip();
}
}
i(fI, "handleClassTDZ");
var vme = {
ReferencedIdentifier: fI,
"TSTypeAnnotation|TypeAnnotation"(e) {
e.skip();
}
};
function Pme(e, t, r, n, s) {
if (!r.length) return;
let a = !!e.node.superClass;
if (!t) {
let o = Dt.types.classMethod("constructor", Dt.types.identifier("constructor"), [], Dt.types.blockStatement([]));
a && (o.params = [Dt.types.restElement(Dt.types.identifier("args"))], o.body.body.push(Dt.template.statement.ast`super(...args)`)), [t] =
e.get("body").unshiftContainer("body", o);
}
if (n && n(xme, {
scope: t.scope
}), a) {
let o = [];
t.traverse(Sme, o);
let l = !0;
for (let u of o)
if (l ? l = !1 : r = r.map((c) => Dt.types.cloneNode(c)), u.parentPath.isExpressionStatement())
u.insertAfter(r);
else {
let c = [u.node, ...r.map((p) => Dt.types.toExpression(p))];
s || c.push(Dt.types.thisExpression()), u.replaceWith(Dt.types.sequenceExpression(c));
}
} else
t.get("body").unshiftContainer("body", r);
}
i(Pme, "injectInitialization");
function dI(e, t, r) {
if (Dt.types.isIdentifier(e) && t.hasUid(e.name))
return;
if (Dt.types.isAssignmentExpression(e, {
operator: "="
}) && Dt.types.isIdentifier(e.left) && t.hasUid(e.left.name))
return Dt.types.cloneNode(e);
{
let a = Dt.types.identifier(r);
return t.push({
id: a,
kind: "let"
}), Dt.types.assignmentExpression("=", Dt.types.cloneNode(a), e);
}
}
i(dI, "memoiseComputedKey");
function Ame(e, t, r) {
let {
scope: n
} = e, s = [], a = {
classBinding: e.node.id && n.getBinding(e.node.id.name),
file: r
};
for (let o of t) {
let l = o.get("key");
l.isReferencedIdentifier() ? fI(l, a) : l.traverse(vme, a);
let u = o.node;
if (!l.isConstantExpression()) {
let c = dI(l.node, n, n.generateUidBasedOnNode(l.node));
c && (s.push(Dt.types.expressionStatement(c)), u.key = Dt.types.cloneNode(c.left));
}
}
return s;
}
i(Ame, "extractComputedKeys");
});
// ../node_modules/@babel/helper-create-class-features-plugin/lib/decorators.js
var Cb = P((Yo) => {
"use strict";
Object.defineProperty(Yo, "__esModule", {
value: !0
});
Yo.default = iye;
Yo.hasDecorators = Cme;
Yo.hasOwnDecorators = vb;
var A = Pt(), hI = pp(), Ps = fp(), PI = gb(), yp = bb();
function vb(e) {
var t;
return !!((t = e.decorators) != null && t.length);
}
i(vb, "hasOwnDecorators");
function Cme(e) {
return vb(e) || e.body.body.some(vb);
}
i(Cme, "hasDecorators");
function AI(e, t = e.length - 1) {
if (t === -1) {
e.unshift(65);
return;
}
let r = e[t];
r === 90 ? e[t] = 97 : r === 122 ? (e[t] = 65, AI(e, t - 1)) : e[t] = r + 1;
}
i(AI, "incrementId");
function Dme(e) {
let t = [], r = /* @__PURE__ */ new Set();
return e.traverse({
PrivateName(n) {
r.add(n.node.id.name);
}
}), () => {
let n;
do
AI(t), n = String.fromCharCode(...t);
while (r.has(n));
return A.types.privateName(A.types.identifier(n));
};
}
i(Dme, "createPrivateUidGeneratorForClass");
function wme(e) {
let t;
return () => (t || (t = Dme(e)), t());
}
i(wme, "createLazyPrivateUidGeneratorForClass");
function Ime(e, t) {
let r = e.node.id, n = e.scope;
if (e.type === "ClassDeclaration") {
let s = r.name, a = n.generateUidIdentifierBasedOnNode(r), o = A.types.identifier(s);
return n.rename(s, a.name), e.get("id").replaceWith(o), {
id: A.types.cloneNode(a),
path: e
};
} else {
let s;
r ? (t = r.name, s = Pr(n.parent, t), n.rename(t, s.name)) : s = Pr(n.parent, typeof t == "string" ? t : "decorated_class");
let a = A.types.classExpression(typeof t == "string" ? A.types.identifier(t) : null, e.node.superClass, e.node.body), [o] = e.replaceWith(
A.types.sequenceExpression([a, s]));
return {
id: A.types.cloneNode(s),
path: o.get("expressions.0")
};
}
}
i(Ime, "replaceClassWithVar");
function mI(e, t, r) {
return e.type === "PrivateName" ? A.types.classPrivateProperty(e, t, void 0, r) : A.types.classProperty(e, t, void 0, void 0, r);
}
i(mI, "generateClassProperty");
function Eb(e, t) {
e.node.id || (e.node.id = typeof t == "string" ? A.types.identifier(t) : e.scope.generateUidIdentifier("Class"));
}
i(Eb, "assignIdForAnonymousClass");
function yI(e, t, r, n, s, a, o, l) {
let u = (l === "2023-11" || l === "2023-05") && o ? e : A.types.thisExpression(), c = A.types.blockStatement([A.types.returnStatement(A.
types.memberExpression(A.types.cloneNode(u), A.types.cloneNode(s)))]), p = A.types.blockStatement([A.types.expressionStatement(A.types.assignmentExpression(
"=", A.types.memberExpression(A.types.cloneNode(u), A.types.cloneNode(s)), A.types.identifier("v")))]), f, h;
r.type === "PrivateName" ? (f = A.types.classPrivateMethod("get", r, [], c, o), h = A.types.classPrivateMethod("set", n, [A.types.identifier(
"v")], p, o)) : (f = A.types.classMethod("get", r, [], c, a, o), h = A.types.classMethod("set", n, [A.types.identifier("v")], p, a, o)),
t.insertAfter(h), t.insertAfter(f);
}
i(yI, "addProxyAccessorsFor");
function gI(e, t) {
return t !== "2023-11" && t !== "2023-05" && t !== "2023-01" ? [A.template.expression.ast`
function () {
return this.${A.types.cloneNode(e)};
}
`, A.template.expression.ast`
function (value) {
this.${A.types.cloneNode(e)} = value;
}
`] : [A.template.expression.ast`
o => o.${A.types.cloneNode(e)}
`, A.template.expression.ast`
(o, v) => o.${A.types.cloneNode(e)} = v
`];
}
i(gI, "extractProxyAccessorsFor");
function Ab(e) {
if (e = (0, Ps.skipTransparentExprWrappers)(e), e.isSequenceExpression()) {
let t = e.get("expressions");
return Ab(t[t.length - 1]);
}
return e;
}
i(Ab, "getComputedKeyLastElement");
function _me(e) {
let t = Ab(e);
if (t.isConstantExpression())
return A.types.cloneNode(e.node);
if (t.isIdentifier() && e.scope.hasUid(t.node.name))
return A.types.cloneNode(e.node);
if (t.isAssignmentExpression() && t.get("left").isIdentifier())
return A.types.cloneNode(t.node.left);
throw new Error(`Internal Error: the computed key ${e.toString()} has not yet been memoised.`);
}
i(_me, "getComputedKeyMemoiser");
function Go(e, t) {
let r = t.get("key");
r.isSequenceExpression() ? e.push(...r.node.expressions) : e.push(r.node), r.replaceWith(Cs(e));
}
i(Go, "prependExpressionsToComputedKey");
function Ome(e, t) {
let r = t.get("key"), n = Ab(r);
if (n.isConstantExpression())
Go(e, t);
else {
let s = r.scope.parent, a = (0, yp.memoiseComputedKey)(n.node, s, s.generateUid("computedKey"));
if (!a)
Go(e, t);
else {
let o = [...e, A.types.cloneNode(a.left)], l = n.parentPath;
l.isSequenceExpression() ? l.pushContainer("expressions", o) : n.replaceWith(Cs([A.types.cloneNode(a), ...o]));
}
}
}
i(Ome, "appendExpressionsToComputedKey");
function Tb(e, t) {
let r = t.get("value");
r.node ? e.push(r.node) : e.length > 0 && (e[e.length - 1] = A.types.unaryExpression("void", e[e.length - 1])), r.replaceWith(Cs(e));
}
i(Tb, "prependExpressionsToFieldInitializer");
function Nme(e, t) {
t.unshiftContainer("body", A.types.expressionStatement(Cs(e)));
}
i(Nme, "prependExpressionsToStaticBlock");
function Bme(e, t) {
t.node.body.body.unshift(A.types.expressionStatement(Cs(e)));
}
i(Bme, "prependExpressionsToConstructor");
function bI(e, t) {
return A.types.isCallExpression(e) && A.types.isIdentifier(e.callee, {
name: t.name
});
}
i(bI, "isProtoInitCallExpression");
function kme(e, t) {
if (t) {
if (e.length >= 2 && bI(e[1], t)) {
let r = A.types.callExpression(A.types.cloneNode(t), [e[0]]);
e.splice(0, 2, r);
}
e.length >= 2 && A.types.isThisExpression(e[e.length - 1]) && bI(e[e.length - 2], t) && e.splice(e.length - 1, 1);
}
return Cs(e);
}
i(kme, "optimizeSuperCallAndExpressions");
function Fme(e, t, r) {
t.traverse({
CallExpression: {
exit(n) {
if (!n.get("callee").isSuper()) return;
let s = [n.node, ...e.map((a) => A.types.cloneNode(a))];
n.isCompletionRecord() && s.push(A.types.thisExpression()), n.replaceWith(kme(s, r)), n.skip();
}
},
ClassMethod(n) {
n.node.kind === "constructor" && n.skip();
}
});
}
i(Fme, "insertExpressionsAfterSuperCallAndOptimize");
function EI(e, t) {
let r = [A.types.expressionStatement(Cs(e))];
return t && r.unshift(A.types.expressionStatement(A.types.callExpression(A.types.super(), [A.types.spreadElement(A.types.identifier("arg\
s"))]))), A.types.classMethod("constructor", A.types.identifier("constructor"), t ? [A.types.restElement(A.types.identifier("args"))] : [], A.
types.blockStatement(r));
}
i(EI, "createConstructorFromExpressions");
function TI(e) {
return A.types.staticBlock([A.types.expressionStatement(Cs(e))]);
}
i(TI, "createStaticBlockFromExpressions");
var fi = 0, As = 1, jme = 2, CI = 3, gp = 4, Lme = 5, Mme = 8, Rme = 16;
function qme(e) {
switch (e.node.type) {
case "ClassProperty":
case "ClassPrivateProperty":
return fi;
case "ClassAccessorProperty":
return As;
case "ClassMethod":
case "ClassPrivateMethod":
return e.node.kind === "get" ? CI : e.node.kind === "set" ? gp : jme;
}
}
i(qme, "getElementKind");
function Ume(e) {
return [...e.filter((t) => t.isStatic && t.kind >= As && t.kind <= gp), ...e.filter((t) => !t.isStatic && t.kind >= As && t.kind <= gp),
...e.filter((t) => t.isStatic && t.kind === fi), ...e.filter((t) => !t.isStatic && t.kind === fi)];
}
i(Ume, "toSortedDecoratorInfo");
function SI(e, t, r) {
let n = e.length, s = t.some(Boolean), a = [];
for (let o = 0; o < n; o++)
(r === "2023-11" || r === "2023-05") && s && a.push(t[o] || A.types.unaryExpression("void", A.types.numericLiteral(0))), a.push(e[o].expression);
return {
haveThis: s,
decs: a
};
}
i(SI, "generateDecorationList");
function Vme(e, t) {
return A.types.arrayExpression(e.map((r) => {
let n = r.kind;
return r.isStatic && (n += t === "2023-11" || t === "2023-05" ? Mme : Lme), r.decoratorsHaveThis && (n += Rme), A.types.arrayExpression(
[r.decoratorsArray, A.types.numericLiteral(n), r.name, ...r.privateMethods || []]);
}));
}
i(Vme, "generateDecorationExprs");
function $me(e) {
let t = [];
for (let r of e) {
let {
locals: n
} = r;
Array.isArray(n) ? t.push(...n) : n !== void 0 && t.push(n);
}
return t;
}
i($me, "extractElementLocalAssignments");
function Wme(e, t, r, n, s, a) {
t.insertAfter(A.types.classPrivateMethod("get", A.types.cloneNode(r), [], A.types.blockStatement([A.types.returnStatement(A.types.callExpression(
A.types.cloneNode(n), e === "2023-11" && a ? [] : [A.types.thisExpression()]))]), a)), t.insertAfter(A.types.classPrivateMethod("set", A.
types.cloneNode(r), [A.types.identifier("v")], A.types.blockStatement([A.types.expressionStatement(A.types.callExpression(A.types.cloneNode(
s), e === "2023-11" && a ? [A.types.identifier("v")] : [A.types.thisExpression(), A.types.identifier("v")]))]), a));
}
i(Wme, "addCallAccessorsFor");
function Kme(e, t, r, n) {
let s, a;
e.node.kind === "set" ? (s = [A.types.identifier("v")], a = [A.types.expressionStatement(A.types.callExpression(r, [A.types.thisExpression(),
A.types.identifier("v")]))]) : (s = [], a = [A.types.returnStatement(A.types.callExpression(r, [A.types.thisExpression()]))]), e.replaceWith(
A.types.classPrivateMethod(e.node.kind, A.types.cloneNode(t), s, A.types.blockStatement(a), n));
}
i(Kme, "movePrivateAccessor");
function xI(e) {
let {
type: t
} = e;
return t !== "TSDeclareMethod" && t !== "TSIndexSignature" && t !== "StaticBlock";
}
i(xI, "isClassDecoratableElementPath");
function Gme(e) {
return A.types.callExpression(A.types.arrowFunctionExpression([], A.types.blockStatement(e.body)), []);
}
i(Gme, "staticBlockToIIFE");
function Hme(e) {
return A.types.functionExpression(null, [], A.types.blockStatement(e.body));
}
i(Hme, "staticBlockToFunctionClosure");
function Yme(e) {
return A.types.functionExpression(null, [], A.types.blockStatement([A.types.returnStatement(e)]));
}
i(Yme, "fieldInitializerToClosure");
function Cs(e) {
return e.length === 0 ? A.types.unaryExpression("void", A.types.numericLiteral(0)) : e.length === 1 ? e[0] : A.types.sequenceExpression(
e);
}
i(Cs, "maybeSequenceExpression");
function vI(e) {
let {
params: t,
body: r,
generator: n,
async: s
} = e;
return A.types.functionExpression(void 0, t, r, n, s);
}
i(vI, "createFunctionExpressionFromPrivateMethod");
function DI(e, t) {
return A.types.callExpression(e.addHelper("setFunctionName"), [A.types.thisExpression(), t]);
}
i(DI, "createSetFunctionNameCall");
function Pb(e, t) {
return A.types.callExpression(e.addHelper("toPropertyKey"), [t]);
}
i(Pb, "createToPropertyKeyCall");
function Sb(e) {
return A.types.arrowFunctionExpression([A.types.identifier("_")], A.types.binaryExpression("in", A.types.cloneNode(e), A.types.identifier(
"_")));
}
i(Sb, "createPrivateBrandCheckClosure");
function Jme(e) {
try {
return A.types.traverseFast(e, (t) => {
if (A.types.isPrivateName(t))
throw null;
}), !1;
} catch {
return !0;
}
}
i(Jme, "usesPrivateField");
function Xme(e) {
let {
node: t
} = e;
t.computed = !0, A.types.isIdentifier(t.key) && (t.key = A.types.stringLiteral(t.key.name));
}
i(Xme, "convertToComputedKey");
function xb(e, t) {
let r = !1;
if (t.length > 0) {
let n = (0, PI.privateNameVisitorFactory)({
PrivateName(a, o) {
o.privateNamesMap.has(a.node.id.name) && (r = !0, a.stop());
}
}), s = /* @__PURE__ */ new Map();
for (let a of t)
s.set(a, null);
e.traverse(n, {
privateNamesMap: s
});
}
return r;
}
i(xb, "hasInstancePrivateAccess");
function zme(e, t) {
let r = (0, PI.privateNameVisitorFactory)({
PrivateName(s, a) {
if (!a.privateNamesMap.has(s.node.id.name)) return;
let o = s.parentPath, l = o.parentPath;
if (l.node.type === "AssignmentExpression" && l.node.left === o.node || l.node.type === "UpdateExpression" || l.node.type === "RestE\
lement" || l.node.type === "ArrayPattern" || l.node.type === "ObjectProperty" && l.node.value === o.node && l.parentPath.type === "ObjectPat\
tern" || l.node.type === "ForOfStatement" && l.node.left === o.node)
throw s.buildCodeFrameError(`Decorated private methods are read-only, but "#${s.node.id.name}" is updated via this expression.`);
}
}), n = /* @__PURE__ */ new Map();
for (let s of t)
n.set(s, null);
e.traverse(r, {
privateNamesMap: n
});
}
i(zme, "checkPrivateMethodUpdateError");
function Qme(e, t, r, n, s, a, o) {
var l;
let u = e.get("body.body"), c = e.node.decorators, p = !1, f = !1, h = !1, y = wme(e), E = [], d = e.scope.parent, g = /* @__PURE__ */ i(
(ae, te, Be) => {
let at = Pr(d, te);
return Be.push(A.types.assignmentExpression("=", at, ae)), A.types.cloneNode(at);
}, "memoiseExpression"), C, _, O = (l = e.node.id) == null ? void 0 : l.name, B = typeof s == "object" ? s : void 0, R = /* @__PURE__ */ i(
(ae) => {
try {
return A.types.traverseFast(ae, (te) => {
if (A.types.isThisExpression(te) || A.types.isSuper(te) || A.types.isYieldExpression(te) || A.types.isAwaitExpression(te) || A.types.
isIdentifier(te, {
name: "arguments"
}) || O && A.types.isIdentifier(te, {
name: O
}) || A.types.isMetaProperty(te) && te.meta.name !== "import")
throw null;
}), !1;
} catch {
return !0;
}
}, "usesFunctionContextOrYieldAwait"), $ = [];
for (let ae of u) {
if (!xI(ae))
continue;
let te = ae.node;
if (!te.static && A.types.isPrivateName(te.key) && $.push(te.key.id.name), Ho(te)) {
switch (te.type) {
case "ClassProperty":
a.ClassProperty(ae, t);
break;
case "ClassPrivateProperty":
a.ClassPrivateProperty(ae, t);
break;
case "ClassAccessorProperty":
if (a.ClassAccessorProperty(ae, t), o === "2023-11")
break;
default:
te.static ? _ ?? (_ = Pr(d, "initStatic")) : C ?? (C = Pr(d, "initProto"));
break;
}
p = !0, h || (h = te.decorators.some(R));
} else if (te.type === "ClassAccessorProperty") {
a.ClassAccessorProperty(ae, t);
let {
key: Be,
value: at,
static: Et,
computed: M
} = te, W = y(), z = mI(W, at, Et), Z = ae.get("key"), [ge] = ae.replaceWith(z), pe, _e;
M && !Z.isConstantExpression() ? (pe = (0, yp.memoiseComputedKey)(Pb(t, Be), d, d.generateUid("computedKey")), _e = A.types.cloneNode(
pe.left)) : (pe = A.types.cloneNode(Be), _e = A.types.cloneNode(Be)), Eb(e, s), yI(e.node.id, ge, pe, _e, W, M, Et, o);
}
"computed" in ae.node && ae.node.computed && (f || (f = !d.isStatic(ae.node.key)));
}
if (!c && !p) {
!e.node.id && typeof s == "string" && (e.node.id = A.types.identifier(s)), B && e.node.body.body.unshift(TI([DI(t, B)]));
return;
}
let V = [], J, U = /* @__PURE__ */ new Set(), K, j, Y = null;
function Ee(ae) {
let te = !1, Be = !1, at = [];
for (let Et of ae) {
let {
expression: M
} = Et, W;
(o === "2023-11" || o === "2023-05") && A.types.isMemberExpression(M) && (A.types.isSuper(M.object) ? W = A.types.thisExpression() :
d.isStatic(M.object) ? W = A.types.cloneNode(M.object) : (Y ?? (Y = Pr(d, "obj")), W = A.types.assignmentExpression("=", A.types.cloneNode(
Y), M.object), M.object = A.types.cloneNode(Y))), at.push(W), te || (te = !d.isStatic(M)), Be || (Be = R(Et));
}
return {
hasSideEffects: te,
usesFnContext: Be,
decoratorsThis: at
};
}
i(Ee, "handleDecorators");
let Pe = f || h || o !== "2023-11", ee = !1, Q = 0, se = [], le, ue = [];
if (c) {
K = Pr(d, "initClass"), ee = e.isClassDeclaration(), {
id: j,
path: e
} = Ime(e, s), e.node.decorators = null;
let ae = c.some(Jme), {
hasSideEffects: te,
usesFnContext: Be,
decoratorsThis: at
} = Ee(c), {
haveThis: Et,
decs: M
} = SI(c, at, o);
if (Q = Et ? 1 : 0, se = M, (Be || te && Pe || ae) && (le = g(A.types.arrayExpression(se), "classDecs", E)), !p)
for (let W of e.get("body.body")) {
let {
node: z
} = W;
if ("computed" in z && z.computed)
if (W.isClassProperty({
static: !0
})) {
if (!W.get("key").isConstantExpression()) {
let ge = z.key, pe = (0, yp.memoiseComputedKey)(ge, d, d.generateUid("computedKey"));
pe != null && (z.key = A.types.cloneNode(pe.left), ue.push(pe));
}
} else ue.length > 0 && (Go(ue, W), ue = []);
}
} else
Eb(e, s), j = A.types.cloneNode(e.node.id);
let ve, Ie = !1, Te = [], ye = [];
if (p) {
if (C) {
let ae = A.types.callExpression(A.types.cloneNode(C), [A.types.thisExpression()]);
Te.push(ae);
}
for (let ae of u) {
if (!xI(ae)) {
ye.length > 0 && ae.isStaticBlock() && (Nme(ye, ae), ye = []);
continue;
}
let {
node: te
} = ae, Be = te.decorators, at = !!(Be != null && Be.length), Et = "computed" in te && te.computed, M = "computedKey";
te.key.type === "PrivateName" ? M = te.key.id.name : !Et && te.key.type === "Identifier" && (M = te.key.name);
let W, z;
if (at) {
let {
hasSideEffects: Oe,
usesFnContext: Fe,
decoratorsThis: ut
} = Ee(Be), {
decs: ze,
haveThis: Qe
} = SI(Be, ut, o);
z = Qe, W = ze.length === 1 ? ze[0] : A.types.arrayExpression(ze), (Fe || Oe && Pe) && (W = g(W, M + "Decs", ue));
}
if (Et && !ae.get("key").isConstantExpression()) {
let Oe = te.key, Fe = (0, yp.memoiseComputedKey)(at ? Pb(t, Oe) : Oe, d, d.generateUid("computedKey"));
Fe != null && (c && ae.isClassProperty({
static: !0
}) ? (te.key = A.types.cloneNode(Fe.left), ue.push(Fe)) : te.key = Fe);
}
let {
key: Z,
static: ge
} = te, pe = Z.type === "PrivateName", _e = qme(ae);
pe && !ge && (at && (Ie = !0), (A.types.isClassPrivateProperty(te) || !ve) && (ve = Z)), ae.isClassMethod({
kind: "constructor"
}) && (J = ae);
let Xe;
if (at) {
let Oe, Fe;
if (Et ? Fe = _me(ae.get("key")) : Z.type === "PrivateName" ? Fe = A.types.stringLiteral(Z.id.name) : Z.type === "Identifier" ? Fe =
A.types.stringLiteral(Z.name) : Fe = A.types.cloneNode(Z), _e === As) {
let {
value: ut
} = ae.node, ze = o === "2023-11" && ge ? [] : [A.types.thisExpression()];
ut && ze.push(A.types.cloneNode(ut));
let Qe = y(), Nt = Pr(d, `init_${M}`), Dr = A.types.callExpression(A.types.cloneNode(Nt), ze), Sn = mI(Qe, Dr, ge), [xn] = ae.replaceWith(
Sn);
if (pe) {
Oe = gI(Qe, o);
let vn = Pr(d, `get_${M}`), bi = Pr(d, `set_${M}`);
Wme(o, xn, Z, vn, bi, ge), Xe = [Nt, vn, bi];
} else
Eb(e, s), yI(e.node.id, xn, A.types.cloneNode(Z), A.types.isAssignmentExpression(Z) ? A.types.cloneNode(Z.left) : A.types.cloneNode(
Z), Qe, Et, ge, o), Xe = [Nt];
} else if (_e === fi) {
let ut = Pr(d, `init_${M}`), ze = ae.get("value"), Qe = o === "2023-11" && ge ? [] : [A.types.thisExpression()];
ze.node && Qe.push(ze.node), ze.replaceWith(A.types.callExpression(A.types.cloneNode(ut), Qe)), Xe = [ut], pe && (Oe = gI(Z, o));
} else if (pe) {
let ut = Pr(d, `call_${M}`);
if (Xe = [ut], new hI.default({
constantSuper: r,
methodPath: ae,
objectRef: j,
superRef: e.node.superClass,
file: t.file,
refToPreserve: j
}).replace(), Oe = [vI(ae.node)], _e === CI || _e === gp)
Kme(ae, A.types.cloneNode(Z), A.types.cloneNode(ut), ge);
else {
let Qe = ae.node;
e.node.body.body.unshift(A.types.classPrivateProperty(Z, A.types.cloneNode(ut), [], Qe.static)), U.add(Z.id.name), ae.remove();
}
}
V.push({
kind: _e,
decoratorsArray: W,
decoratorsHaveThis: z,
name: Fe,
isStatic: ge,
privateMethods: Oe,
locals: Xe
}), ae.node && (ae.node.decorators = null);
}
if (Et && ue.length > 0 && (c && ae.isClassProperty({
static: !0
}) || (Go(ue, _e === As ? ae.getNextSibling() : ae), ue = [])), Te.length > 0 && !ge && (_e === fi || _e === As) && (Tb(Te, ae), Te =
[]), ye.length > 0 && ge && (_e === fi || _e === As) && (Tb(ye, ae), ye = []), at && o === "2023-11" && (_e === fi || _e === As)) {
let Oe = Pr(d, `init_extra_${M}`);
Xe.push(Oe);
let Fe = A.types.callExpression(A.types.cloneNode(Oe), ge ? [] : [A.types.thisExpression()]);
ge ? ye.push(Fe) : Te.push(Fe);
}
}
}
if (ue.length > 0) {
let ae = e.get("body.body"), te;
for (let Be = ae.length - 1; Be >= 0; Be--) {
let at = ae[Be], Et = at.node;
if (Et.computed) {
if (c && A.types.isClassProperty(Et, {
static: !0
}))
continue;
te = at;
break;
}
}
te != null && (Ome(ue, te), ue = []);
}
if (Te.length > 0) {
let ae = !!e.node.superClass;
J ? ae ? Fme(Te, J, C) : Bme(Te, J) : e.node.body.body.unshift(EI(Te, ae)), Te = [];
}
ye.length > 0 && (e.node.body.body.push(TI(ye)), ye = []);
let ke = Ume(V), pt = Vme(o === "2023-11" ? V : ke, o), ot = $me(ke);
C && ot.push(C), _ && ot.push(_);
let wt = [], gr = !1, Jt = K && A.types.callExpression(A.types.cloneNode(K), []), kt = e, bt = e.node, rr = [];
if (c) {
wt.push(j, K);
let ae = [];
if (e.get("body.body").forEach((te) => {
if (te.isStaticBlock()) {
if (xb(te, $)) {
let Be = g(Hme(te.node), "staticBlock", rr);
ye.push(A.types.callExpression(A.types.memberExpression(Be, A.types.identifier("call")), [A.types.thisExpression()]));
} else
ye.push(Gme(te.node));
te.remove();
return;
}
if ((te.isClassProperty() || te.isClassPrivateProperty()) && te.node.static) {
let Be = te.get("value");
if (xb(Be, $)) {
let at = g(Yme(Be.node), "fieldValue", rr);
Be.replaceWith(A.types.callExpression(A.types.memberExpression(at, A.types.identifier("call")), [A.types.thisExpression()]));
}
ye.length > 0 && (Tb(ye, te), ye = []), te.node.static = !1, ae.push(te.node), te.remove();
} else if (te.isClassPrivateMethod({
static: !0
})) {
if (xb(te, $)) {
new hI.default({
constantSuper: r,
methodPath: te,
objectRef: j,
superRef: e.node.superClass,
file: t.file,
refToPreserve: j
}).replace();
let at = g(vI(te.node), te.get("key.id").node.name, rr);
n ? (te.node.params = [A.types.restElement(A.types.identifier("arg"))], te.node.body = A.types.blockStatement([A.types.returnStatement(
A.types.callExpression(A.types.memberExpression(at, A.types.identifier("apply")), [A.types.thisExpression(), A.types.identifier(
"arg")]))])) : (te.node.params = te.node.params.map((Et, M) => A.types.isRestElement(Et) ? A.types.restElement(A.types.identifier(
"arg")) : A.types.identifier("_" + M)), te.node.body = A.types.blockStatement([A.types.returnStatement(A.types.callExpression(A.
types.memberExpression(at, A.types.identifier("apply")), [A.types.thisExpression(), A.types.identifier("arguments")]))]));
}
te.node.static = !1, ae.push(te.node), te.remove();
}
}), ae.length > 0 || ye.length > 0) {
let te = A.template.expression.ast`
class extends ${t.addHelper("identity")} {}
`;
te.body.body = [A.types.classProperty(A.types.toExpression(bt), void 0, void 0, void 0, !0, !0), ...ae];
let Be = [], at = A.types.newExpression(te, []);
ye.length > 0 && Be.push(...ye), Jt && (gr = !0, Be.push(Jt)), Be.length > 0 ? (Be.unshift(A.types.callExpression(A.types.super(), [
A.types.cloneNode(j)])), te.body.body.push(EI(Be, !1))) : at.arguments.push(A.types.cloneNode(j));
let [Et] = e.replaceWith(at);
kt = Et.get("callee").get("body").get("body.0.key");
}
}
!gr && Jt && e.node.body.body.push(A.types.staticBlock([A.types.expressionStatement(Jt)]));
let {
superClass: br
} = bt;
if (br && (o === "2023-11" || o === "2023-05")) {
let ae = e.scope.maybeGenerateMemoised(br);
ae && (bt.superClass = A.types.assignmentExpression("=", ae, br), br = ae);
}
let gi = A.types.staticBlock([]);
bt.body.body.unshift(gi);
let sn = gi.body;
if (ue.length > 0) {
let ae = kt.get("body.body"), te;
for (let Be of ae)
if ((Be.isClassProperty() || Be.isClassMethod()) && Be.node.kind !== "constructor") {
te = Be;
break;
}
te != null ? (Xme(te), Go(ue, te)) : (bt.body.body.unshift(A.types.classProperty(A.types.sequenceExpression([...ue, A.types.stringLiteral(
"_")]), void 0, void 0, void 0, !0, !0)), sn.push(A.types.expressionStatement(A.types.unaryExpression("delete", A.types.memberExpression(
A.types.thisExpression(), A.types.identifier("_")))))), ue = [];
}
if (sn.push(A.types.expressionStatement(Zme(ot, wt, pt, le ?? A.types.arrayExpression(se), A.types.numericLiteral(Q), Ie ? ve : null, B,
A.types.cloneNode(br), t, o))), _ && sn.push(A.types.expressionStatement(A.types.callExpression(A.types.cloneNode(_), [A.types.thisExpression()]))),
rr.length > 0 && sn.push(...rr.map((ae) => A.types.expressionStatement(ae))), e.insertBefore(E.map((ae) => A.types.expressionStatement(ae))),
ee)
if (!d.getBinding(j.name).constantViolations.length)
e.insertBefore(A.types.variableDeclaration("let", [A.types.variableDeclarator(A.types.cloneNode(j))]));
else {
let te = d.generateUidIdentifier("t" + j.name), Be = j;
e.replaceWithMultiple([A.types.variableDeclaration("let", [A.types.variableDeclarator(A.types.cloneNode(Be)), A.types.variableDeclarator(
te)]), A.types.blockStatement([A.types.variableDeclaration("let", [A.types.variableDeclarator(A.types.cloneNode(j))]), e.node, A.types.
expressionStatement(A.types.assignmentExpression("=", A.types.cloneNode(te), A.types.cloneNode(j)))]), A.types.expressionStatement(A.
types.assignmentExpression("=", A.types.cloneNode(Be), A.types.cloneNode(te)))]);
}
return U.size > 0 && zme(e, U), e.scope.crawl(), e;
}
i(Qme, "transformClass");
function Zme(e, t, r, n, s, a, o, l, u, c) {
let p, f, h = [o ? DI(u, o) : A.types.thisExpression(), n, r];
{
if (c !== "2023-11" && h.splice(1, 2, r, n), c === "2021-12" || c === "2022-03" && !u.availableHelper("applyDecs2203R"))
return p = A.types.arrayPattern([...e, ...t]), f = A.types.callExpression(u.addHelper(c === "2021-12" ? "applyDecs" : "applyDecs2203"),
h), A.types.assignmentExpression("=", p, f);
c === "2022-03" ? f = A.types.callExpression(u.addHelper("applyDecs2203R"), h) : c === "2023-01" ? (a && h.push(Sb(a)), f = A.types.callExpression(
u.addHelper("applyDecs2301"), h)) : c === "2023-05" && ((a || l || s.value !== 0) && h.push(s), a ? h.push(Sb(a)) : l && h.push(A.types.
unaryExpression("void", A.types.numericLiteral(0))), l && h.push(l), f = A.types.callExpression(u.addHelper("applyDecs2305"), h));
}
return c === "2023-11" && ((a || l || s.value !== 0) && h.push(s), a ? h.push(Sb(a)) : l && h.push(A.types.unaryExpression("void", A.types.
numericLiteral(0))), l && h.push(l), f = A.types.callExpression(u.addHelper("applyDecs2311"), h)), e.length > 0 ? t.length > 0 ? p = A.types.
objectPattern([A.types.objectProperty(A.types.identifier("e"), A.types.arrayPattern(e)), A.types.objectProperty(A.types.identifier("c"),
A.types.arrayPattern(t))]) : (p = A.types.arrayPattern(e), f = A.types.memberExpression(f, A.types.identifier("e"), !1, !1)) : (p = A.types.
arrayPattern(t), f = A.types.memberExpression(f, A.types.identifier("c"), !1, !1)), A.types.assignmentExpression("=", p, f);
}
i(Zme, "createLocalsAssignment");
function eye(e) {
return e.type === "Identifier" ? e.name === "__proto__" : e.value === "__proto__";
}
i(eye, "isProtoKey");
function Ho(e) {
return e.decorators && e.decorators.length > 0;
}
i(Ho, "isDecorated");
function tye(e) {
switch (e.type) {
case "ClassAccessorProperty":
return !0;
case "ClassMethod":
case "ClassProperty":
case "ClassPrivateMethod":
case "ClassPrivateProperty":
return Ho(e);
default:
return !1;
}
}
i(tye, "shouldTransformElement");
function rye(e) {
return Ho(e) || e.body.body.some(tye);
}
i(rye, "shouldTransformClass");
function nye(e, t) {
function r(n, s, a) {
switch (s.type) {
case "StringLiteral":
return A.types.stringLiteral(s.value);
case "NumericLiteral":
case "BigIntLiteral": {
let o = s.value + "";
return n.get("key").replaceWith(A.types.stringLiteral(o)), A.types.stringLiteral(o);
}
default: {
let o = n.scope.maybeGenerateMemoised(s);
return n.get("key").replaceWith(A.types.assignmentExpression("=", o, Pb(a, s))), A.types.cloneNode(o);
}
}
}
return i(r, "handleComputedProperty"), {
VariableDeclarator(n, s) {
let a = n.node.id;
if (a.type === "Identifier") {
let o = (0, Ps.skipTransparentExprWrappers)(n.get("init"));
if (e(o)) {
let l = a.name;
t(o, s, l);
}
}
},
AssignmentExpression(n, s) {
let a = n.node.left;
if (a.type === "Identifier") {
let o = (0, Ps.skipTransparentExprWrappers)(n.get("right"));
if (e(o))
switch (n.node.operator) {
case "=":
case "&&=":
case "||=":
case "??=":
t(o, s, a.name);
}
}
},
AssignmentPattern(n, s) {
let a = n.node.left;
if (a.type === "Identifier") {
let o = (0, Ps.skipTransparentExprWrappers)(n.get("right"));
if (e(o)) {
let l = a.name;
t(o, s, l);
}
}
},
ObjectExpression(n, s) {
for (let a of n.get("properties")) {
if (!a.isObjectProperty()) continue;
let {
node: o
} = a, l = o.key, u = (0, Ps.skipTransparentExprWrappers)(a.get("value"));
if (e(u)) {
if (o.computed) {
let c = r(a, l, s);
t(u, s, c);
} else if (!eye(l))
if (l.type === "Identifier")
t(u, s, l.name);
else {
let c = A.types.stringLiteral(l.value + "");
t(u, s, c);
}
}
}
},
ClassPrivateProperty(n, s) {
let {
node: a
} = n, o = (0, Ps.skipTransparentExprWrappers)(n.get("value"));
if (e(o)) {
let l = A.types.stringLiteral("#" + a.key.id.name);
t(o, s, l);
}
},
ClassAccessorProperty(n, s) {
let {
node: a
} = n, o = a.key, l = (0, Ps.skipTransparentExprWrappers)(n.get("value"));
if (e(l))
if (a.computed) {
let u = r(n, o, s);
t(l, s, u);
} else if (o.type === "Identifier")
t(l, s, o.name);
else if (o.type === "PrivateName") {
let u = A.types.stringLiteral("#" + o.id.name);
t(l, s, u);
} else {
let u = A.types.stringLiteral(o.value + "");
t(l, s, u);
}
},
ClassProperty(n, s) {
let {
node: a
} = n, o = a.key, l = (0, Ps.skipTransparentExprWrappers)(n.get("value"));
if (e(l))
if (a.computed) {
let u = r(n, o, s);
t(l, s, u);
} else if (o.type === "Identifier")
t(l, s, o.name);
else {
let u = A.types.stringLiteral(o.value + "");
t(l, s, u);
}
}
};
}
i(nye, "NamedEvaluationVisitoryFactory");
function sye(e) {
return e.isClassExpression({
id: null
}) && rye(e.node);
}
i(sye, "isDecoratedAnonymousClassExpression");
function Pr(e, t) {
let r = e.generateUidIdentifier(t);
return e.push({
id: r,
kind: "let"
}), A.types.cloneNode(r);
}
i(Pr, "generateLetUidIdentifier");
function iye({
assertVersion: e,
assumption: t
}, {
loose: r
}, n, s) {
var a, o;
e(n === "2023-11" || n === "2023-05" || n === "2023-01" ? "^7.21.0" : n === "2021-12" ? "^7.16.0" : "^7.19.0");
let l = /* @__PURE__ */ new WeakSet(), u = (a = t("constantSuper")) != null ? a : r, c = (o = t("ignoreFunctionLength")) != null ? o : r,
p = nye(sye, f);
function f(h, y, E) {
var d;
if (l.has(h)) return;
let {
node: g
} = h;
E ?? (E = (d = g.id) == null ? void 0 : d.name);
let C = Qme(h, y, u, c, E, p, n);
if (C) {
l.add(C);
return;
}
l.add(h);
}
return i(f, "visitClass"), {
name: "proposal-decorators",
inherits: s,
visitor: Object.assign({
ExportDefaultDeclaration(h, y) {
let {
declaration: E
} = h.node;
if (E?.type === "ClassDeclaration" && Ho(E)) {
let g = !E.id;
{
var d;
(d = h.splitExportDeclaration) != null || (h.splitExportDeclaration = Ot().NodePath.prototype.splitExportDeclaration);
}
let C = h.splitExportDeclaration();
g && f(C, y, A.types.stringLiteral("default"));
}
},
ExportNamedDeclaration(h) {
let {
declaration: y
} = h.node;
if (y?.type === "ClassDeclaration" && Ho(y)) {
{
var E;
(E = h.splitExportDeclaration) != null || (h.splitExportDeclaration = Ot().NodePath.prototype.splitExportDeclaration);
}
h.splitExportDeclaration();
}
},
Class(h, y) {
f(h, y, void 0);
}
}, p)
};
}
i(iye, "_default");
});
// ../node_modules/@babel/helper-create-class-features-plugin/lib/decorators-2018-09.js
var II = P((Db) => {
"use strict";
Object.defineProperty(Db, "__esModule", {
value: !0
});
Db.buildDecoratedClass = pye;
var lt = Pt(), aye = pp();
function ha(e, t) {
return t ? lt.types.objectProperty(lt.types.identifier(e), t) : null;
}
i(ha, "prop");
function oye(e, t) {
return lt.types.objectMethod("method", lt.types.identifier(e), [], lt.types.blockStatement(t));
}
i(oye, "method");
function wI(e) {
let t;
return e.decorators && e.decorators.length > 0 && (t = lt.types.arrayExpression(e.decorators.map((r) => r.expression))), e.decorators = void 0,
t;
}
i(wI, "takeDecorators");
function lye(e) {
return e.computed ? e.key : lt.types.isIdentifier(e.key) ? lt.types.stringLiteral(e.key.name) : lt.types.stringLiteral(String(e.key.value));
}
i(lye, "getKey");
function uye(e, t, r, n) {
let s = n.isClassMethod();
if (n.isPrivate())
throw n.buildCodeFrameError(`Private ${s ? "methods" : "fields"} in decorated classes are not supported yet.`);
if (n.node.type === "ClassAccessorProperty")
throw n.buildCodeFrameError('Accessor properties are not supported in 2018-09 decorator transform, please specify { "version": "2021-1\
2" } instead.');
if (n.node.type === "StaticBlock")
throw n.buildCodeFrameError('Static blocks are not supported in 2018-09 decorator transform, please specify { "version": "2021-12" } i\
nstead.');
let {
node: a,
scope: o
} = n;
n.isTSDeclareMethod() || new aye.default({
methodPath: n,
objectRef: t,
superRef: r,
file: e,
refToPreserve: t
}).replace();
let l = [ha("kind", lt.types.stringLiteral(lt.types.isClassMethod(a) ? a.kind : "field")), ha("decorators", wI(a)), ha("static", a.static &&
lt.types.booleanLiteral(!0)), ha("key", lye(a))].filter(Boolean);
if (s) {
{
var u;
(u = n.ensureFunctionName) != null || (n.ensureFunctionName = Ot().NodePath.prototype.ensureFunctionName);
}
n.ensureFunctionName(!1), l.push(ha("value", lt.types.toExpression(n.node)));
} else lt.types.isClassProperty(a) && a.value ? l.push(oye("value", lt.template.statements.ast`return ${a.value}`)) : l.push(ha("value",
o.buildUndefinedNode()));
return n.remove(), lt.types.objectExpression(l);
}
i(uye, "extractElementDescriptor");
function cye(e) {
return e.addHelper("decorate");
}
i(cye, "addDecorateHelper");
function pye(e, t, r, n) {
let {
node: s,
scope: a
} = t, o = a.generateUidIdentifier("initialize"), l = s.id && t.isDeclaration(), u = t.isInStrictMode(), {
superClass: c
} = s;
s.type = "ClassDeclaration", s.id || (s.id = lt.types.cloneNode(e));
let p;
c && (p = a.generateUidIdentifierBasedOnNode(s.superClass, "super"), s.superClass = p);
let f = wI(s), h = lt.types.arrayExpression(r.filter((g) => !g.node.abstract && g.node.type !== "TSIndexSignature").map((g) => uye(n, s.
id, p, g))), y = lt.template.expression.ast`
${cye(n)}(
${f || lt.types.nullLiteral()},
function (${o}, ${c ? lt.types.cloneNode(p) : null}) {
${s}
return { F: ${lt.types.cloneNode(s.id)}, d: ${h} };
},
${c}
)
`;
u || y.arguments[1].body.directives.push(lt.types.directive(lt.types.directiveLiteral("use strict")));
let E = y, d = "arguments.1.body.body.0";
return l && (E = lt.template.statement.ast`let ${e} = ${y}`, d = "declarations.0.init." + d), {
instanceNodes: [lt.template.statement.ast`
${lt.types.cloneNode(o)}(this)
`],
wrapClass(g) {
return g.replaceWith(E), g.get(d);
}
};
}
i(pye, "buildDecoratedClass");
});
// ../node_modules/@babel/helper-create-class-features-plugin/lib/features.js
var BI = P((di) => {
"use strict";
Object.defineProperty(di, "__esModule", {
value: !0
});
di.FEATURES = void 0;
di.enableFeature = fye;
di.isLoose = _b;
di.shouldTransform = dye;
var _I = Cb(), Gn = di.FEATURES = Object.freeze({
fields: 2,
privateMethods: 4,
decorators: 8,
privateIn: 16,
staticBlocks: 32
}), OI = /* @__PURE__ */ new Map([[Gn.fields, "@babel/plugin-transform-class-properties"], [Gn.privateMethods, "@babel/plugin-transform-pr\
ivate-methods"], [Gn.privateIn, "@babel/plugin-transform-private-property-in-object"]]), wb = "@babel/plugin-class-features/featuresKey", Jo = "\
@babel/plugin-class-features/looseKey";
Ds = "@babel/plugin-class-features/looseLowPriorityKey/#__internal__@babel/preset-env__please-overwrite-loose-instead-of-throwing";
var Ds;
Ib = /* @__PURE__ */ i(function(e, t) {
return !!(e.get(Ds) & t);
}, "canIgnoreLoose");
var Ib;
function fye(e, t, r) {
(!Hn(e, t) || Ib(e, t)) && (e.set(wb, e.get(wb) | t), r === "#__internal__@babel/preset-env__prefer-true-but-false-is-ok-if-it-prevents-\
an-error" ? (bp(e, t, !0), e.set(Ds, e.get(Ds) | t)) : r === "#__internal__@babel/preset-env__prefer-false-but-true-is-ok-if-it-prevents-an-\
error" ? (bp(e, t, !1), e.set(Ds, e.get(Ds) | t)) : bp(e, t, r));
let n;
for (let [a, o] of OI) {
if (!Hn(e, a) || Ib(e, a)) continue;
let l = _b(e, a);
if (n === !l)
throw new Error(`'loose' mode configuration must be the same for @babel/plugin-transform-class-properties, @babel/plugin-transform-p\
rivate-methods and @babel/plugin-transform-private-property-in-object (when they are enabled).
` + NI(e));
n = l;
var s = o;
}
if (n !== void 0)
for (let [a, o] of OI)
Hn(e, a) && _b(e, a) !== n && (bp(e, a, n), console.warn(`Though the "loose" option was set to "${!n}" in your @babel/preset-env con\
fig, it will not be used for ${o} since the "loose" mode option was set to "${n}" for ${s}.
The "loose" option must be the same for @babel/plugin-transform-class-properties, @babel/plugin-transform-private-methods and @babel/plugin-\
transform-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding
["${o}", { "loose": ${n} }]
to the "plugins" section of your Babel config.
` + NI(e)));
}
i(fye, "enableFeature");
function NI(e) {
let {
filename: t
} = e.opts;
return (!t || t === "unknown") && (t = "[name of the input file]"), `If you already set the same 'loose' mode for these plugins in your \
config, it's possible that they are enabled multiple times with different options.
You can re-run Babel with the BABEL_SHOW_CONFIG_FOR environment variable to show the loaded configuration:
npx cross-env BABEL_SHOW_CONFIG_FOR=${t} <your build command>
See https://babeljs.io/docs/configuration#print-effective-configs for more info.`;
}
i(NI, "getBabelShowConfigForHint");
function Hn(e, t) {
return !!(e.get(wb) & t);
}
i(Hn, "hasFeature");
function _b(e, t) {
return !!(e.get(Jo) & t);
}
i(_b, "isLoose");
function bp(e, t, r) {
r ? e.set(Jo, e.get(Jo) | t) : e.set(Jo, e.get(Jo) & ~t), e.set(Ds, e.get(Ds) & ~t);
}
i(bp, "setLoose");
function dye(e, t) {
let r = null, n = null, s = null, a = null, o = null;
(0, _I.hasOwnDecorators)(e.node) && (r = e.get("decorators.0"));
for (let l of e.get("body.body"))
!r && (0, _I.hasOwnDecorators)(l.node) && (r = l.get("decorators.0")), !n && l.isClassProperty() && (n = l), !s && l.isClassPrivateProperty() &&
(s = l), !a && l.isClassPrivateMethod != null && l.isClassPrivateMethod() && (a = l), !o && l.isStaticBlock != null && l.isStaticBlock() &&
(o = l);
if (r && s)
throw s.buildCodeFrameError("Private fields in decorated classes are not supported yet.");
if (r && a)
throw a.buildCodeFrameError("Private methods in decorated classes are not supported yet.");
if (r && !Hn(t, Gn.decorators))
throw e.buildCodeFrameError(`Decorators are not enabled.
If you are using ["@babel/plugin-proposal-decorators", { "version": "legacy" }], make sure it comes *before* "@babel/plugin-transform-class-\
properties" and enable loose mode, like so:
["@babel/plugin-proposal-decorators", { "version": "legacy" }]
["@babel/plugin-transform-class-properties", { "loose": true }]`);
if (a && !Hn(t, Gn.privateMethods))
throw a.buildCodeFrameError("Class private methods are not enabled. Please add `@babel/plugin-transform-private-methods` to your confi\
guration.");
if ((n || s) && !Hn(t, Gn.fields) && !Hn(t, Gn.privateMethods))
throw e.buildCodeFrameError("Class fields are not enabled. Please add `@babel/plugin-transform-class-properties` to your configuration\
.");
if (o && !Hn(t, Gn.staticBlocks))
throw e.buildCodeFrameError("Static class blocks are not enabled. Please add `@babel/plugin-transform-class-static-block` to your conf\
iguration.");
return !!(r || a || o || (n || s) && Hn(t, Gn.fields));
}
i(dye, "shouldTransform");
});
// ../node_modules/@babel/helper-create-class-features-plugin/lib/index.js
var kI = P((mi) => {
"use strict";
Object.defineProperty(mi, "__esModule", {
value: !0
});
Object.defineProperty(mi, "FEATURES", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return ma.FEATURES;
}, "get")
});
Object.defineProperty(mi, "buildCheckInRHS", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Xo.buildCheckInRHS;
}, "get")
});
mi.createClassFeaturePlugin = gye;
Object.defineProperty(mi, "enableFeature", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return ma.enableFeature;
}, "get")
});
Object.defineProperty(mi, "injectInitialization", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Bb.injectInitialization;
}, "get")
});
var Ob = Pt(), hye = ce("semver"), Xo = gb(), Nb = Cb(), mye = II(), Bb = bb(), ma = BI(), yye = fb(), hi = "@babel/plugin-class-features/\
version";
function gye({
name: e,
feature: t,
loose: r,
manipulateOptions: n,
api: s,
inherits: a,
decoratorVersion: o
}) {
var l;
if (t & ma.FEATURES.decorators && (o === "2023-11" || o === "2023-05" || o === "2023-01" || o === "2022-03" || o === "2021-12"))
return (0, Nb.default)(s, {
loose: r
}, o, a);
s ?? (s = {
assumption: /* @__PURE__ */ i(() => {
}, "assumption")
});
let u = s.assumption("setPublicClassFields"), c = s.assumption("privateFieldsAsSymbols"), p = s.assumption("privateFieldsAsProperties"),
f = (l = s.assumption("noUninitializedPrivateFieldAccess")) != null ? l : !1, h = s.assumption("constantSuper"), y = s.assumption("noDoc\
umentAll");
if (p && c)
throw new Error('Cannot enable both the "privateFieldsAsProperties" and "privateFieldsAsSymbols" assumptions as the same time.');
let E = p || c;
if (r === !0) {
let d = [];
u !== void 0 && d.push('"setPublicClassFields"'), p !== void 0 && d.push('"privateFieldsAsProperties"'), c !== void 0 && d.push('"priv\
ateFieldsAsSymbols"'), d.length !== 0 && console.warn(`[${e}]: You are using the "loose: true" option and you are explicitly setting a value\
for the ${d.join(" and ")} assumption${d.length > 1 ? "s" : ""}. The "loose" option can cause incompatibilities with the other class featur\
es plugins, so it's recommended that you replace it with the following top-level option:
"assumptions": {
"setPublicClassFields": true,
"privateFieldsAsSymbols": true
}`);
}
return {
name: e,
manipulateOptions: n,
inherits: a,
pre(d) {
if ((0, ma.enableFeature)(d, t, r), typeof d.get(hi) == "number") {
d.set(hi, "7.27.0");
return;
}
(!d.get(hi) || hye.lt(d.get(hi), "7.27.0")) && d.set(hi, "7.27.0");
},
visitor: {
Class(d, {
file: g
}) {
if (g.get(hi) !== "7.27.0" || !(0, ma.shouldTransform)(d, g)) return;
let C = d.isClassDeclaration();
C && (0, yye.assertFieldTransformed)(d);
let _ = (0, ma.isLoose)(g, t), O, B = (0, Nb.hasDecorators)(d.node), R = [], $ = [], V = [], J = /* @__PURE__ */ new Set(), U = d.
get("body");
for (let ke of U.get("body")) {
if ((ke.isClassProperty() || ke.isClassMethod()) && ke.node.computed && V.push(ke), ke.isPrivate()) {
let {
name: pt
} = ke.node.key.id, ot = `get ${pt}`, wt = `set ${pt}`;
if (ke.isClassPrivateMethod()) {
if (ke.node.kind === "get") {
if (J.has(ot) || J.has(pt) && !J.has(wt))
throw ke.buildCodeFrameError("Duplicate private field");
J.add(ot).add(pt);
} else if (ke.node.kind === "set") {
if (J.has(wt) || J.has(pt) && !J.has(ot))
throw ke.buildCodeFrameError("Duplicate private field");
J.add(wt).add(pt);
}
} else {
if (J.has(pt) && !J.has(ot) && !J.has(wt) || J.has(pt) && (J.has(ot) || J.has(wt)))
throw ke.buildCodeFrameError("Duplicate private field");
J.add(pt);
}
}
ke.isClassMethod({
kind: "constructor"
}) ? O = ke : ($.push(ke), (ke.isProperty() || ke.isPrivate() || ke.isStaticBlock != null && ke.isStaticBlock()) && R.push(ke));
}
if (!R.length && !B) return;
let K = d.node.id, j;
if (!K || !C) {
{
var Y;
(Y = d.ensureFunctionName) != null || (d.ensureFunctionName = Ot().NodePath.prototype.ensureFunctionName);
}
d.ensureFunctionName(!1), j = d.scope.generateUidIdentifier(K?.name || "Class");
}
let Ee = j ?? Ob.types.cloneNode(K), Pe = (0, Xo.buildPrivateNamesMap)(Ee.name, E ?? _, R, g), ee = (0, Xo.buildPrivateNamesNodes)(
Pe, p ?? _, c ?? !1, g);
(0, Xo.transformPrivateNamesUsage)(Ee, d, Pe, {
privateFieldsAsProperties: E ?? _,
noUninitializedPrivateFieldAccess: f,
noDocumentAll: y,
innerBinding: K
}, g);
let Q, se, le, ue, ve, Ie, Te;
B ? (se = ve = Q = [], {
instanceNodes: le,
wrapClass: Te
} = (0, mye.buildDecoratedClass)(Ee, d, $, g)) : (Q = (0, Bb.extractComputedKeys)(d, V, g), {
staticNodes: se,
pureStaticNodes: ve,
instanceNodes: le,
lastInstanceNodeReturnsThis: ue,
classBindingNode: Ie,
wrapClass: Te
} = (0, Xo.buildFieldsInitNodes)(j, d.node.superClass, R, Pe, g, u ?? _, E ?? _, f, h ?? _, K)), le.length > 0 && (0, Bb.injectInitialization)(
d, O, le, (ke, pt) => {
if (!B)
for (let ot of R)
Ob.types.isStaticBlock != null && Ob.types.isStaticBlock(ot.node) || ot.node.static || ot.traverse(ke, pt);
}, ue);
let ye = Te(d);
ye.insertBefore([...ee, ...Q]), se.length > 0 && ye.insertAfter(se), ve.length > 0 && ye.find((ke) => ke.isStatement() || ke.isDeclaration()).
insertAfter(ve), Ie != null && C && ye.insertAfter(Ie);
},
ExportDefaultDeclaration(d, {
file: g
}) {
{
if (g.get(hi) !== "7.27.0") return;
let _ = d.get("declaration");
if (_.isClassDeclaration() && (0, Nb.hasDecorators)(_.node))
if (_.node.id) {
{
var C;
(C = d.splitExportDeclaration) != null || (d.splitExportDeclaration = Ot().NodePath.prototype.splitExportDeclaration);
}
d.splitExportDeclaration();
} else
_.node.type = "ClassExpression";
}
}
}
};
}
i(gye, "createClassFeaturePlugin");
});
// ../node_modules/@babel/plugin-transform-typescript/lib/enum.js
var Fb = P((zo) => {
"use strict";
Object.defineProperty(zo, "__esModule", {
value: !0
});
zo.default = xye;
zo.isSyntacticallyString = Ep;
zo.translateEnumValues = jI;
var ya = Pt(), bye = ce("assert"), Eye = ub(), Tye = fp(), kb = /* @__PURE__ */ new WeakMap(), Sye = ya.template.expression(`
(function (ID) {
ASSIGNMENTS;
return ID;
})(INIT)
`);
function xye(e, t) {
let {
node: r,
parentPath: n
} = e;
if (r.declare) {
e.remove();
return;
}
let s = r.id.name, {
fill: a,
data: o,
isPure: l
} = Cye(e, t, r.id);
switch (n.type) {
case "BlockStatement":
case "ExportNamedDeclaration":
case "Program": {
let c = t.isProgram(e.parent), p = u(n), f = t.objectExpression([]);
(p || c) && (f = t.logicalExpression("||", t.cloneNode(a.ID), f));
let h = Sye(Object.assign({}, a, {
INIT: f
}));
l && (0, Eye.default)(h), p ? (n.isExportDeclaration() ? n : e).replaceWith(t.expressionStatement(t.assignmentExpression("=", t.cloneNode(
r.id), h))) : e.scope.registerDeclaration(e.replaceWith(t.variableDeclaration(c ? "var" : "let", [t.variableDeclarator(r.id, h)]))[0]),
kb.set(e.scope.getBindingIdentifier(s), o);
break;
}
default:
throw new Error(`Unexpected enum parent '${e.parent.type}`);
}
function u(c) {
return c.isExportDeclaration() ? u(c.parentPath) : c.getData(s) ? !0 : (c.setData(s, !0), !1);
}
i(u, "seen");
}
i(xye, "transpileEnum");
var vye = ya.template.statement(`
ENUM["NAME"] = VALUE;
`), Pye = ya.template.statement(`
ENUM[ENUM["NAME"] = VALUE] = "NAME";
`), Aye = /* @__PURE__ */ i((e, t) => (e ? vye : Pye)(t), "buildEnumMember");
function Cye(e, t, r) {
let {
enumValues: n,
data: s,
isPure: a
} = jI(e, t), o = e.get("members"), l = [];
for (let u = 0; u < o.length; u++) {
let [c, p] = n[u];
l.push(t.inheritsComments(Aye(Ep(p), {
ENUM: t.cloneNode(r),
NAME: c,
VALUE: p
}), o[u].node));
}
return {
fill: {
ID: t.cloneNode(r),
ASSIGNMENTS: l
},
data: s,
isPure: a
};
}
i(Cye, "enumFill");
function Ep(e) {
switch (e = (0, Tye.skipTransparentExprWrapperNodes)(e), e.type) {
case "BinaryExpression": {
let t = e.left, r = e.right;
return e.operator === "+" && (Ep(t) || Ep(r));
}
case "TemplateLiteral":
case "StringLiteral":
return !0;
}
return !1;
}
i(Ep, "isSyntacticallyString");
function FI(e, t) {
let {
seen: r,
path: n,
t: s
} = t, a = e.node.name;
if (r.has(a)) {
for (let o = e.scope; o !== n.scope; o = o.parent)
if (o.hasOwnBinding(a))
return;
e.replaceWith(s.memberExpression(s.cloneNode(n.node.id), s.cloneNode(e.node))), e.skip();
}
}
i(FI, "ReferencedIdentifier");
var Dye = {
ReferencedIdentifier: FI
};
function jI(e, t) {
var r;
let n = e.scope.getBindingIdentifier(e.node.id.name), s = (r = kb.get(n)) != null ? r : /* @__PURE__ */ new Map(), a = -1, o, l = !0, c = e.
get("members").map((p) => {
let f = p.node, h = t.isIdentifier(f.id) ? f.id.name : f.id.value, y = p.get("initializer"), E = f.initializer, d;
if (E)
a = LI(y, s), a !== void 0 ? (s.set(h, a), bye(typeof a == "number" || typeof a == "string"), a === 1 / 0 || Number.isNaN(a) ? d = t.
identifier(String(a)) : a === -1 / 0 ? d = t.unaryExpression("-", t.identifier("Infinity")) : d = t.valueToNode(a)) : (l && (l = y.isPure()),
y.isReferencedIdentifier() ? FI(y, {
t,
seen: s,
path: e
}) : y.traverse(Dye, {
t,
seen: s,
path: e
}), d = y.node, s.set(h, void 0));
else if (typeof a == "number")
a += 1, d = t.numericLiteral(a), s.set(h, a);
else {
if (typeof a == "string")
throw e.buildCodeFrameError("Enum member must have initializer.");
{
let g = t.memberExpression(t.cloneNode(e.node.id), t.stringLiteral(o), !0);
d = t.binaryExpression("+", t.numericLiteral(1), g), s.set(h, void 0);
}
}
return o = h, [h, d];
});
return {
isPure: l,
data: s,
enumValues: c
};
}
i(jI, "translateEnumValues");
function LI(e, t, r = /* @__PURE__ */ new Set()) {
return n(e);
function n(l) {
let u = l.node;
switch (u.type) {
case "MemberExpression":
return s(l, t, r);
case "StringLiteral":
return u.value;
case "UnaryExpression":
return a(l);
case "BinaryExpression":
return o(l);
case "NumericLiteral":
return u.value;
case "ParenthesizedExpression":
return n(l.get("expression"));
case "Identifier":
return s(l, t, r);
case "TemplateLiteral": {
if (u.quasis.length === 1)
return u.quasis[0].value.cooked;
let c = l.get("expressions"), p = u.quasis, f = "";
for (let h = 0; h < p.length; h++)
if (f += p[h].value.cooked, h + 1 < p.length) {
let y = s(c[h], t, r);
if (y === void 0) return;
f += y;
}
return f;
}
default:
return;
}
}
function s(l, u, c) {
if (l.isMemberExpression()) {
let p = l.node, f = p.object, h = p.property;
if (!ya.types.isIdentifier(f) || (p.computed ? !ya.types.isStringLiteral(h) : !ya.types.isIdentifier(h)))
return;
let y = l.scope.getBindingIdentifier(f.name), E = kb.get(y);
return E ? E.get(h.computed ? h.value : h.name) : void 0;
} else if (l.isIdentifier()) {
let p = l.node.name;
if (["Infinity", "NaN"].includes(p))
return Number(p);
let f = u?.get(p);
return f !== void 0 ? f : u != null && u.has(p) || c.has(l.node) ? void 0 : (c.add(l.node), f = LI(l.resolve(), u, c), f);
}
}
function a(l) {
let u = n(l.get("argument"));
if (u !== void 0)
switch (l.node.operator) {
case "+":
return u;
case "-":
return -u;
case "~":
return ~u;
default:
return;
}
}
function o(l) {
let u = n(l.get("left"));
if (u === void 0)
return;
let c = n(l.get("right"));
if (c !== void 0)
switch (l.node.operator) {
case "|":
return u | c;
case "&":
return u & c;
case ">>":
return u >> c;
case ">>>":
return u >>> c;
case "<<":
return u << c;
case "^":
return u ^ c;
case "*":
return u * c;
case "/":
return u / c;
case "+":
return u + c;
case "-":
return u - c;
case "%":
return u % c;
case "**":
return Math.pow(u, c);
default:
return;
}
}
}
i(LI, "computeConstantValue");
});
// ../node_modules/@babel/plugin-transform-typescript/lib/const-enum.js
var jb = P((Qo) => {
"use strict";
Object.defineProperty(Qo, "__esModule", {
value: !0
});
Qo.EXPORTED_CONST_ENUMS_IN_NAMESPACE = void 0;
Qo.default = _ye;
var wye = Fb(), Iye = Qo.EXPORTED_CONST_ENUMS_IN_NAMESPACE = /* @__PURE__ */ new WeakSet();
function _ye(e, t) {
let {
name: r
} = e.node.id, n = e.parentPath.isExportNamedDeclaration(), s = n;
!s && t.isProgram(e.parent) && (s = e.parent.body.some((l) => t.isExportNamedDeclaration(l) && l.exportKind !== "type" && !l.source && l.
specifiers.some((u) => t.isExportSpecifier(u) && u.exportKind !== "type" && u.local.name === r)));
let {
enumValues: a
} = (0, wye.translateEnumValues)(e, t);
if (s || Iye.has(e.node)) {
let l = t.objectExpression(a.map(([u, c]) => t.objectProperty(t.isValidIdentifier(u) ? t.identifier(u) : t.stringLiteral(u), c)));
e.scope.hasOwnBinding(r) ? (n ? e.parentPath : e).replaceWith(t.expressionStatement(t.callExpression(t.memberExpression(t.identifier("\
Object"), t.identifier("assign")), [e.node.id, l]))) : (e.replaceWith(t.variableDeclaration("var", [t.variableDeclarator(e.node.id, l)])), e.
scope.registerDeclaration(e));
return;
}
let o = new Map(a);
e.scope.path.traverse({
Scope(l) {
l.scope.hasOwnBinding(r) && l.skip();
},
MemberExpression(l) {
if (!t.isIdentifier(l.node.object, {
name: r
})) return;
let u;
if (l.node.computed)
if (t.isStringLiteral(l.node.property))
u = l.node.property.value;
else
return;
else if (t.isIdentifier(l.node.property))
u = l.node.property.name;
else
return;
o.has(u) && l.replaceWith(t.cloneNode(o.get(u)));
}
}), e.remove();
}
i(_ye, "transpileConstEnum");
});
// ../node_modules/@babel/plugin-transform-typescript/lib/global-types.js
var Lb = P((ga) => {
"use strict";
Object.defineProperty(ga, "__esModule", {
value: !0
});
ga.GLOBAL_TYPES = void 0;
ga.isGlobalType = Oye;
ga.registerGlobalType = Nye;
var MI = ga.GLOBAL_TYPES = /* @__PURE__ */ new WeakMap();
function Oye({
scope: e
}, t) {
return e.hasBinding(t) ? !1 : MI.get(e).has(t) ? !0 : (console.warn(`The exported identifier "${t}" is not declared in Babel's scope tra\
cker
as a JavaScript value binding, and "@babel/plugin-transform-typescript"
never encountered it as a TypeScript type declaration.
It will be treated as a JavaScript value.
This problem is likely caused by another plugin injecting
"${t}" without registering it in the scope tracker. If you are the author
of that plugin, please use "scope.registerDeclaration(declarationPath)".`), !1);
}
i(Oye, "isGlobalType");
function Nye(e, t) {
MI.get(e).add(t);
}
i(Nye, "registerGlobalType");
});
// ../node_modules/@babel/plugin-transform-typescript/lib/namespace.js
var qI = P((Tp) => {
"use strict";
Object.defineProperty(Tp, "__esModule", {
value: !0
});
Tp.default = Fye;
Tp.getFirstIdentifier = Ub;
var nt = Pt(), Bye = Lb(), kye = jb();
function Ub(e) {
return nt.types.isIdentifier(e) ? e : Ub(e.left);
}
i(Ub, "getFirstIdentifier");
function Fye(e, t) {
if (e.node.declare || e.node.id.type === "StringLiteral") {
e.remove();
return;
}
if (!t)
throw e.get("id").buildCodeFrameError("Namespace not marked type-only declare. Non-declarative namespaces are only supported experimen\
tally in Babel. To enable and review caveats see: https://babeljs.io/docs/en/babel-plugin-transform-typescript");
let r = Ub(e.node.id).name, n = qb(e, e.node);
if (n === null) {
let s = e.findParent((a) => a.isProgram());
(0, Bye.registerGlobalType)(s.scope, r), e.remove();
} else e.scope.hasOwnBinding(r) ? e.replaceWith(n) : e.scope.registerDeclaration(e.replaceWithMultiple([Mb(r), n])[0]);
}
i(Fye, "transpileNamespace");
function Mb(e) {
return nt.types.variableDeclaration("let", [nt.types.variableDeclarator(nt.types.identifier(e))]);
}
i(Mb, "getDeclaration");
function Rb(e, t) {
return nt.types.memberExpression(nt.types.identifier(e), nt.types.identifier(t));
}
i(Rb, "getMemberExpression");
function jye(e, t, r) {
if (e.kind !== "const")
throw r.file.buildCodeFrameError(e, "Namespaces exporting non-const are not supported by Babel. Change to const or see: https://babelj\
s.io/docs/en/babel-plugin-transform-typescript");
let {
declarations: n
} = e;
if (n.every((o) => nt.types.isIdentifier(o.id))) {
for (let o of n)
o.init = nt.types.assignmentExpression("=", Rb(t, o.id.name), o.init);
return [e];
}
let s = nt.types.getBindingIdentifiers(e), a = [];
for (let o in s)
a.push(nt.types.assignmentExpression("=", Rb(t, o), nt.types.cloneNode(s[o])));
return [e, nt.types.expressionStatement(nt.types.sequenceExpression(a))];
}
i(jye, "handleVariableDeclaration");
function RI(e, t) {
return e.hub.buildError(t, "Ambient modules cannot be nested in other modules or namespaces.", Error);
}
i(RI, "buildNestedAmbientModuleError");
function qb(e, t, r) {
let n = /* @__PURE__ */ new Set(), s = t.id, a = e.scope.generateUid(s.name), o = t.body, l = t.id, u;
u = nt.types.isTSModuleBlock(o) ? o.body : [nt.types.exportNamedDeclaration(o)];
let c = !0;
for (let f = 0; f < u.length; f++) {
let h = u[f];
switch (h.type) {
case "TSModuleDeclaration": {
if (!nt.types.isIdentifier(h.id))
throw RI(e, h);
let y = qb(e, h);
if (y !== null) {
c = !1;
let E = h.id.name;
n.has(E) ? u[f] = y : (n.add(E), u.splice(f++, 1, Mb(E), y));
}
continue;
}
case "TSEnumDeclaration":
case "FunctionDeclaration":
case "ClassDeclaration":
c = !1, n.add(h.id.name);
continue;
case "VariableDeclaration": {
c = !1;
for (let y in nt.types.getBindingIdentifiers(h))
n.add(y);
continue;
}
default:
c && (c = nt.types.isTypeScript(h));
continue;
case "ExportNamedDeclaration":
}
if (!("declare" in h.declaration && h.declaration.declare))
switch (h.declaration.type) {
case "TSEnumDeclaration":
kye.EXPORTED_CONST_ENUMS_IN_NAMESPACE.add(h.declaration);
case "FunctionDeclaration":
case "ClassDeclaration": {
c = !1;
let y = h.declaration.id.name;
n.add(y), u.splice(f++, 1, h.declaration, nt.types.expressionStatement(nt.types.assignmentExpression("=", Rb(a, y), nt.types.identifier(
y))));
break;
}
case "VariableDeclaration": {
c = !1;
let y = jye(h.declaration, a, e.hub);
u.splice(f, y.length, ...y), f += y.length - 1;
break;
}
case "TSModuleDeclaration": {
if (!nt.types.isIdentifier(h.declaration.id))
throw RI(e, h.declaration);
let y = qb(e, h.declaration, nt.types.identifier(a));
if (y !== null) {
c = !1;
let E = h.declaration.id.name;
n.has(E) ? u[f] = y : (n.add(E), u.splice(f++, 1, Mb(E), y));
} else
u.splice(f, 1), f--;
}
}
}
if (c) return null;
let p = nt.types.objectExpression([]);
if (r) {
let f = nt.types.memberExpression(r, s);
p = nt.template.expression.ast`
${nt.types.cloneNode(f)} ||
(${nt.types.cloneNode(f)} = ${p})
`;
}
return nt.template.statement.ast`
(function (${nt.types.identifier(a)}) {
${u}
})(${s} || (${nt.types.cloneNode(s)} = ${p}));
`;
}
i(qb, "handleNested");
});
// ../node_modules/@babel/plugin-transform-typescript/lib/index.js
var WI = P((xp) => {
"use strict";
Object.defineProperty(xp, "__esModule", {
value: !0
});
xp.default = void 0;
var Lye = ca(), Mye = $w(), Rye = kI(), qye = jb(), Uye = Fb(), Yn = Lb(), UI = qI();
function Vye(e) {
switch (e.parent.type) {
case "TSTypeReference":
case "TSExpressionWithTypeArguments":
case "TSExpressionWithTypeArguments":
case "TSTypeQuery":
return !0;
case "TSQualifiedName":
return e.parentPath.findParent((t) => t.type !== "TSQualifiedName").type !== "TSImportEqualsDeclaration";
case "ExportSpecifier":
return e.parent.exportKind === "type" || e.parentPath.parent.exportKind === "type";
default:
return !1;
}
}
i(Vye, "isInType");
var Vr = /* @__PURE__ */ new WeakMap(), VI = /* @__PURE__ */ new WeakSet();
function Sp(e) {
let t = e.getBindingIdentifiers();
for (let r of Object.keys(t)) {
let n = e.scope.getBinding(r);
n && n.identifier === t[r] && n.scope.removeBinding(r);
}
e.opts.noScope = !0, e.remove(), e.opts.noScope = !1;
}
i(Sp, "safeRemove");
function $I(e, t, r, n, s = "") {
if (t.file.get("@babel/plugin-transform-modules-*") !== "commonjs")
throw e.buildCodeFrameError(`\`${r}\` is only supported when compiling modules to CommonJS.
Please consider using \`${n}\`${s}, or add @babel/plugin-transform-modules-commonjs to your Babel config.`);
}
i($I, "assertCjsTransformEnabled");
var QDe = xp.default = (0, Lye.declare)((e, t) => {
let {
types: r,
template: n
} = e;
e.assertVersion(7);
let s = /\*?\s*@jsx((?:Frag)?)\s+(\S+)/, {
allowNamespaces: a = !0,
jsxPragma: o = "React.createElement",
jsxPragmaFrag: l = "React.Fragment",
onlyRemoveTypeImports: u = !1,
optimizeConstEnums: c = !1
} = t;
var {
allowDeclareFields: p = !1
} = t;
let f = {
field(d) {
let {
node: g
} = d;
if (!p && g.declare)
throw d.buildCodeFrameError("The 'declare' modifier is only allowed when the 'allowDeclareFields' option of @babel/plugin-transfor\
m-typescript or @babel/preset-typescript is enabled.");
if (g.declare) {
if (g.value)
throw d.buildCodeFrameError("Fields with the 'declare' modifier cannot be initialized here, but only in the constructor");
g.decorators || d.remove();
} else if (g.definite) {
if (g.value)
throw d.buildCodeFrameError("Definitely assigned fields cannot be initialized here, but only in the constructor");
!p && !g.decorators && !r.isClassPrivateProperty(g) && d.remove();
} else (g.abstract || !p && !g.value && !g.decorators && !r.isClassPrivateProperty(g)) && d.remove();
g.accessibility && (g.accessibility = null), g.abstract && (g.abstract = null), g.readonly && (g.readonly = null), g.optional && (g.
optional = null), g.typeAnnotation && (g.typeAnnotation = null), g.definite && (g.definite = null), g.declare && (g.declare = null),
g.override && (g.override = null);
},
method({
node: d
}) {
d.accessibility && (d.accessibility = null), d.abstract && (d.abstract = null), d.optional && (d.optional = null), d.override && (d.
override = null);
},
constructor(d, g) {
d.node.accessibility && (d.node.accessibility = null);
let C = [], {
scope: _
} = d;
for (let O of d.get("params")) {
let B = O.node;
if (B.type === "TSParameterProperty") {
let R = B.parameter;
if (VI.has(R)) continue;
VI.add(R);
let $;
if (r.isIdentifier(R))
$ = R;
else if (r.isAssignmentPattern(R) && r.isIdentifier(R.left))
$ = R.left;
else
throw O.buildCodeFrameError("Parameter properties can not be destructuring patterns.");
C.push(n.statement.ast`
this.${r.cloneNode($)} = ${r.cloneNode($)}
`), O.replaceWith(O.get("parameter")), _.registerBinding("param", O);
}
}
(0, Rye.injectInitialization)(g, d, C);
}
};
return {
name: "transform-typescript",
inherits: Mye.default,
visitor: {
Pattern: y,
Identifier: y,
RestElement: y,
Program: {
enter(d, g) {
let {
file: C
} = g, _ = null, O = null, B = d.scope;
if (Yn.GLOBAL_TYPES.has(B) || Yn.GLOBAL_TYPES.set(B, /* @__PURE__ */ new Set()), C.ast.comments)
for (let V of C.ast.comments) {
let J = s.exec(V.value);
J && (J[1] ? O = J[2] : _ = J[2]);
}
let R = _ || o;
R && ([R] = R.split("."));
let $ = O || l;
$ && ([$] = $.split("."));
for (let V of d.get("body")) {
if (V.isImportDeclaration()) {
if (Vr.has(g.file.ast.program) || Vr.set(g.file.ast.program, !0), V.node.importKind === "type") {
for (let j of V.node.specifiers)
(0, Yn.registerGlobalType)(B, j.local.name);
V.remove();
continue;
}
let J = /* @__PURE__ */ new Set(), U = V.node.specifiers.length, K = /* @__PURE__ */ i(() => U > 0 && U === J.size, "isAllSp\
ecifiersElided");
for (let j of V.node.specifiers)
if (j.type === "ImportSpecifier" && j.importKind === "type") {
(0, Yn.registerGlobalType)(B, j.local.name);
let Y = V.scope.getBinding(j.local.name);
Y && J.add(Y.path);
}
if (u)
Vr.set(d.node, !1);
else {
if (V.node.specifiers.length === 0) {
Vr.set(d.node, !1);
continue;
}
for (let j of V.node.specifiers) {
let Y = V.scope.getBinding(j.local.name);
Y && !J.has(Y.path) && (E({
binding: Y,
programPath: d,
pragmaImportName: R,
pragmaFragImportName: $
}) ? J.add(Y.path) : Vr.set(d.node, !1));
}
}
if (K() && !u)
V.remove();
else
for (let j of J)
j.remove();
continue;
}
if (!u && V.isTSImportEqualsDeclaration()) {
let {
id: J
} = V.node, U = V.scope.getBinding(J.name);
if (U && !V.node.isExport && E({
binding: U,
programPath: d,
pragmaImportName: R,
pragmaFragImportName: $
})) {
V.remove();
continue;
}
}
if (V.isExportDeclaration() && (V = V.get("declaration")), V.isVariableDeclaration({
declare: !0
}))
for (let J of Object.keys(V.getBindingIdentifiers()))
(0, Yn.registerGlobalType)(B, J);
else (V.isTSTypeAliasDeclaration() || V.isTSDeclareFunction() && V.get("id").isIdentifier() || V.isTSInterfaceDeclaration() ||
V.isClassDeclaration({
declare: !0
}) || V.isTSEnumDeclaration({
declare: !0
}) || V.isTSModuleDeclaration({
declare: !0
}) && V.get("id").isIdentifier()) && (0, Yn.registerGlobalType)(B, V.node.id.name);
}
},
exit(d) {
d.node.sourceType === "module" && Vr.get(d.node) && d.pushContainer("body", r.exportNamedDeclaration());
}
},
ExportNamedDeclaration(d, g) {
if (Vr.has(g.file.ast.program) || Vr.set(g.file.ast.program, !0), d.node.exportKind === "type") {
d.remove();
return;
}
if (d.node.source && d.node.specifiers.length > 0 && d.node.specifiers.every((C) => C.type === "ExportSpecifier" && C.exportKind ===
"type")) {
d.remove();
return;
}
if (!d.node.source && d.node.specifiers.length > 0 && d.node.specifiers.every((C) => r.isExportSpecifier(C) && (0, Yn.isGlobalType)(
d, C.local.name))) {
d.remove();
return;
}
if (r.isTSModuleDeclaration(d.node.declaration)) {
let C = d.node.declaration;
if (!r.isStringLiteral(C.id)) {
let _ = (0, UI.getFirstIdentifier)(C.id);
if (d.scope.hasOwnBinding(_.name))
d.replaceWith(C);
else {
let [O] = d.replaceWithMultiple([r.exportNamedDeclaration(r.variableDeclaration("let", [r.variableDeclarator(r.cloneNode(_))])),
C]);
d.scope.registerDeclaration(O);
}
}
}
Vr.set(g.file.ast.program, !1);
},
ExportAllDeclaration(d) {
d.node.exportKind === "type" && d.remove();
},
ExportSpecifier(d) {
(!d.parent.source && (0, Yn.isGlobalType)(d, d.node.local.name) || d.node.exportKind === "type") && d.remove();
},
ExportDefaultDeclaration(d, g) {
if (Vr.has(g.file.ast.program) || Vr.set(g.file.ast.program, !0), r.isIdentifier(d.node.declaration) && (0, Yn.isGlobalType)(d, d.
node.declaration.name)) {
d.remove();
return;
}
Vr.set(g.file.ast.program, !1);
},
TSDeclareFunction(d) {
Sp(d);
},
TSDeclareMethod(d) {
Sp(d);
},
VariableDeclaration(d) {
d.node.declare && Sp(d);
},
VariableDeclarator({
node: d
}) {
d.definite && (d.definite = null);
},
TSIndexSignature(d) {
d.remove();
},
ClassDeclaration(d) {
let {
node: g
} = d;
g.declare && Sp(d);
},
Class(d) {
let {
node: g
} = d;
g.typeParameters && (g.typeParameters = null), g.superTypeParameters && (g.superTypeParameters = null), g.implements && (g.implements =
null), g.abstract && (g.abstract = null), d.get("body.body").forEach((C) => {
C.isClassMethod() || C.isClassPrivateMethod() ? C.node.kind === "constructor" ? f.constructor(C, d) : f.method(C) : (C.isClassProperty() ||
C.isClassPrivateProperty() || C.isClassAccessorProperty()) && f.field(C);
});
},
Function(d) {
let {
node: g
} = d;
g.typeParameters && (g.typeParameters = null), g.returnType && (g.returnType = null);
let C = g.params;
C.length > 0 && r.isIdentifier(C[0], {
name: "this"
}) && C.shift();
},
TSModuleDeclaration(d) {
(0, UI.default)(d, a);
},
TSInterfaceDeclaration(d) {
d.remove();
},
TSTypeAliasDeclaration(d) {
d.remove();
},
TSEnumDeclaration(d) {
c && d.node.const ? (0, qye.default)(d, r) : (0, Uye.default)(d, r);
},
TSImportEqualsDeclaration(d, g) {
let {
id: C,
moduleReference: _
} = d.node, O, B;
r.isTSExternalModuleReference(_) ? ($I(d, g, `import ${C.name} = require(...);`, `import ${C.name} from '...';`, " alongside Types\
cript's --allowSyntheticDefaultImports option"), O = r.callExpression(r.identifier("require"), [_.expression]), B = "const") : (O = h(_), B =
"var");
let R = r.variableDeclaration(B, [r.variableDeclarator(C, O)]);
d.replaceWith(d.node.isExport ? r.exportNamedDeclaration(R) : R), d.scope.registerDeclaration(d);
},
TSExportAssignment(d, g) {
$I(d, g, "export = <value>;", "export default <value>;"), d.replaceWith(n.statement.ast`module.exports = ${d.node.expression}`);
},
TSTypeAssertion(d) {
d.replaceWith(d.node.expression);
},
[`TSAsExpression${r.tsSatisfiesExpression ? "|TSSatisfiesExpression" : ""}`](d) {
let {
node: g
} = d;
do
g = g.expression;
while (r.isTSAsExpression(g) || r.isTSSatisfiesExpression != null && r.isTSSatisfiesExpression(g));
d.replaceWith(g);
},
[e.types.tsInstantiationExpression ? "TSNonNullExpression|TSInstantiationExpression" : "TSNonNullExpression"](d) {
d.replaceWith(d.node.expression);
},
CallExpression(d) {
d.node.typeParameters = null;
},
OptionalCallExpression(d) {
d.node.typeParameters = null;
},
NewExpression(d) {
d.node.typeParameters = null;
},
JSXOpeningElement(d) {
d.node.typeParameters = null;
},
TaggedTemplateExpression(d) {
d.node.typeParameters = null;
}
}
};
function h(d) {
return r.isTSQualifiedName(d) ? r.memberExpression(h(d.left), d.right) : d;
}
function y({
node: d
}) {
d.typeAnnotation && (d.typeAnnotation = null), r.isIdentifier(d) && d.optional && (d.optional = null);
}
function E({
binding: d,
programPath: g,
pragmaImportName: C,
pragmaFragImportName: _
}) {
for (let B of d.referencePaths)
if (!Vye(B))
return !1;
if (d.identifier.name !== C && d.identifier.name !== _)
return !0;
let O = !1;
return g.traverse({
"JSXElement|JSXFragment"(B) {
O = !0, B.stop();
}
}), !O;
}
});
});
// ../node_modules/@babel/plugin-syntax-jsx/lib/index.js
var KI = P((vp) => {
"use strict";
Object.defineProperty(vp, "__esModule", {
value: !0
});
vp.default = void 0;
var $ye = ca(), twe = vp.default = (0, $ye.declare)((e) => (e.assertVersion(7), {
name: "syntax-jsx",
manipulateOptions(t, r) {
r.plugins.some((n) => (Array.isArray(n) ? n[0] : n) === "typescript") || r.plugins.push("jsx");
}
}));
});
// ../node_modules/@babel/plugin-transform-modules-commonjs/lib/dynamic-import.js
var YI = P((Vb) => {
"use strict";
Object.defineProperty(Vb, "__esModule", {
value: !0
});
Vb.transformDynamicImport = Gye;
var GI = Pt(), Wye = Eo(), HI = /* @__PURE__ */ i((e) => GI.template.expression.ast`require(${e})`, "requireNoInterop"), Kye = /* @__PURE__ */ i(
(e, t) => GI.types.callExpression(t.addHelper("interopRequireWildcard"), [HI(e)]), "requireInterop");
function Gye(e, t, r) {
let n = t ? HI : Kye;
e.replaceWith((0, Wye.buildDynamicImport)(e.node, !0, !1, (s) => n(s, r)));
}
i(Gye, "transformDynamicImport");
});
// ../node_modules/@babel/plugin-transform-modules-commonjs/lib/lazy.js
var XI = P((Pp) => {
"use strict";
Object.defineProperty(Pp, "__esModule", {
value: !0
});
Pp.lazyImportsHook = void 0;
var JI = Pt(), Hye = Eo(), Yye = /* @__PURE__ */ i((e) => ({
name: "@babel/plugin-transform-modules-commonjs/lazy",
version: "7.26.3",
getWrapperPayload(t, r) {
if ((0, Hye.isSideEffectImport)(r) || r.reexportAll)
return null;
if (e === !0)
return t.includes(".") ? null : "lazy/function";
if (Array.isArray(e))
return e.includes(t) ? "lazy/function" : null;
if (typeof e == "function")
return e(t) ? "lazy/function" : null;
},
buildRequireWrapper(t, r, n, s) {
if (n === "lazy/function")
return s ? JI.template.statement.ast`
function ${t}() {
const data = ${r};
${t} = function(){ return data; };
return data;
}
` : !1;
},
wrapReference(t, r) {
if (r === "lazy/function") return JI.types.callExpression(t, []);
}
}), "lazyImportsHook");
Pp.lazyImportsHook = Yye;
});
// ../node_modules/@babel/plugin-transform-modules-commonjs/lib/hooks.js
var zI = P((Ap) => {
"use strict";
Object.defineProperty(Ap, "__esModule", {
value: !0
});
Ap.defineCommonJSHook = Jye;
Ap.makeInvokers = Xye;
var Wb = "@babel/plugin-transform-modules-commonjs/customWrapperPlugin";
function Jye(e, t) {
let r = e.get(Wb);
r || e.set(Wb, r = []), r.push(t);
}
i(Jye, "defineCommonJSHook");
function $b(e, t) {
if (e)
for (let r of e) {
let n = t(r);
if (n != null) return n;
}
}
i($b, "findMap");
function Xye(e) {
let t = e.get(Wb);
return {
getWrapperPayload(...r) {
return $b(t, (n) => n.getWrapperPayload == null ? void 0 : n.getWrapperPayload(...r));
},
wrapReference(...r) {
return $b(t, (n) => n.wrapReference == null ? void 0 : n.wrapReference(...r));
},
buildRequireWrapper(...r) {
return $b(t, (n) => n.buildRequireWrapper == null ? void 0 : n.buildRequireWrapper(...r));
}
};
}
i(Xye, "makeInvokers");
});
// ../node_modules/@babel/plugin-transform-modules-commonjs/lib/index.js
var QI = P((Zo) => {
"use strict";
Object.defineProperty(Zo, "__esModule", {
value: !0
});
Zo.default = void 0;
Object.defineProperty(Zo, "defineCommonJSHook", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Kb.defineCommonJSHook;
}, "get")
});
var zye = ca(), yi = Eo(), rn = Pt(), Qye = YI(), Zye = XI(), Kb = zI(), uwe = Zo.default = (0, zye.declare)((e, t) => {
var r, n, s;
e.assertVersion(7);
let {
strictNamespace: a = !1,
mjsStrictNamespace: o = a,
allowTopLevelThis: l,
strict: u,
strictMode: c,
noInterop: p,
importInterop: f,
lazy: h = !1,
allowCommonJSExports: y = !0,
loose: E = !1
} = t, d = (r = e.assumption("constantReexports")) != null ? r : E, g = (n = e.assumption("enumerableModuleMeta")) != null ? n : E, C = (s =
e.assumption("noIncompleteNsImportDetection")) != null ? s : !1;
if (typeof h != "boolean" && typeof h != "function" && (!Array.isArray(h) || !h.every((B) => typeof B == "string")))
throw new Error(".lazy must be a boolean, array of strings, or a function");
if (typeof a != "boolean")
throw new Error(".strictNamespace must be a boolean, or undefined");
if (typeof o != "boolean")
throw new Error(".mjsStrictNamespace must be a boolean, or undefined");
let _ = /* @__PURE__ */ i((B) => rn.template.expression.ast`
(function(){
throw new Error(
"The CommonJS '" + "${B}" + "' variable is not available in ES6 modules." +
"Consider setting setting sourceType:script or sourceType:unambiguous in your " +
"Babel config for this file.");
})()
`, "getAssertion"), O = {
ReferencedIdentifier(B) {
let R = B.node.name;
if (R !== "module" && R !== "exports") return;
let $ = B.scope.getBinding(R);
this.scope.getBinding(R) !== $ || B.parentPath.isObjectProperty({
value: B.node
}) && B.parentPath.parentPath.isObjectPattern() || B.parentPath.isAssignmentExpression({
left: B.node
}) || B.isAssignmentExpression({
left: B.node
}) || B.replaceWith(_(R));
},
UpdateExpression(B) {
let R = B.get("argument");
if (!R.isIdentifier()) return;
let $ = R.node.name;
if ($ !== "module" && $ !== "exports") return;
let V = B.scope.getBinding($);
this.scope.getBinding($) === V && B.replaceWith(rn.types.assignmentExpression(B.node.operator[0] + "=", R.node, _($)));
},
AssignmentExpression(B) {
let R = B.get("left");
if (R.isIdentifier()) {
let $ = R.node.name;
if ($ !== "module" && $ !== "exports") return;
let V = B.scope.getBinding($);
if (this.scope.getBinding($) !== V) return;
let U = B.get("right");
U.replaceWith(rn.types.sequenceExpression([U.node, _($)]));
} else if (R.isPattern()) {
let $ = R.getOuterBindingIdentifiers(), V = Object.keys($).find((J) => J !== "module" && J !== "exports" ? !1 : this.scope.getBinding(
J) === B.scope.getBinding(J));
if (V) {
let J = B.get("right");
J.replaceWith(rn.types.sequenceExpression([J.node, _(V)]));
}
}
}
};
return {
name: "transform-modules-commonjs",
pre() {
this.file.set("@babel/plugin-transform-modules-*", "commonjs"), h && (0, Kb.defineCommonJSHook)(this.file, (0, Zye.lazyImportsHook)(
h));
},
visitor: {
["CallExpression" + (e.types.importExpression ? "|ImportExpression" : "")](B) {
if (!this.file.has("@babel/plugin-proposal-dynamic-import") || B.isCallExpression() && !rn.types.isImport(B.node.callee)) return;
let {
scope: R
} = B;
do
R.rename("require");
while (R = R.parent);
(0, Qye.transformDynamicImport)(B, p, this.file);
},
Program: {
exit(B, R) {
if (!(0, yi.isModule)(B)) return;
B.scope.rename("exports"), B.scope.rename("module"), B.scope.rename("require"), B.scope.rename("__filename"), B.scope.rename("__\
dirname"), y || B.traverse(O, {
scope: B.scope
});
let $ = (0, yi.getModuleName)(this.file.opts, t);
$ && ($ = rn.types.stringLiteral($));
let V = (0, Kb.makeInvokers)(this.file), {
meta: J,
headers: U
} = (0, yi.rewriteModuleStatementsAndPrepareHeader)(B, {
exportName: "exports",
constantReexports: d,
enumerableModuleMeta: g,
strict: u,
strictMode: c,
allowTopLevelThis: l,
noInterop: p,
importInterop: f,
wrapReference: V.wrapReference,
getWrapperPayload: V.getWrapperPayload,
esNamespaceOnly: typeof R.filename == "string" && /\.mjs$/.test(R.filename) ? o : a,
noIncompleteNsImportDetection: C,
filename: this.file.opts.filename
});
for (let [j, Y] of J.source) {
let Ee = rn.types.callExpression(rn.types.identifier("require"), [rn.types.stringLiteral(j)]), Pe;
if ((0, yi.isSideEffectImport)(Y)) {
if (h && Y.wrap === "function")
throw new Error("Assertion failure");
Pe = rn.types.expressionStatement(Ee);
} else {
var K;
let ee = (0, yi.wrapInterop)(B, Ee, Y.interop) || Ee;
if (Y.wrap) {
let Q = V.buildRequireWrapper(Y.name, ee, Y.wrap, Y.referenced);
if (Q === !1) continue;
Pe = Q;
}
(K = Pe) != null || (Pe = rn.template.statement.ast`
var ${Y.name} = ${ee};
`);
}
Pe.loc = Y.loc, U.push(Pe), U.push(...(0, yi.buildNamespaceInitStatements)(J, Y, d, V.wrapReference));
}
(0, yi.ensureStatementsHoisted)(U), B.unshiftContainer("body", U), B.get("body").forEach((j) => {
U.includes(j.node) && j.isVariableDeclaration() && j.scope.registerDeclaration(j);
});
}
}
}
};
});
});
// ../node_modules/@babel/preset-typescript/lib/index.js
var r_ = P((Gb) => {
"use strict";
Object.defineProperty(Gb, "__esModule", { value: !0 });
var e_ = ca(), e0e = WI();
KI();
var t0e = QI(), r0e = wc();
function t_(e) {
return e && e.__esModule ? e : { default: e };
}
i(t_, "_interopDefault");
var ZI = /* @__PURE__ */ t_(e0e), n0e = /* @__PURE__ */ t_(t0e), Jn = new r0e.OptionValidator("@babel/preset-typescript");
function s0e(e = {}) {
let {
allowNamespaces: t = !0,
jsxPragma: r,
onlyRemoveTypeImports: n
} = e, s = {
ignoreExtensions: "ignoreExtensions",
allowNamespaces: "allowNamespaces",
disallowAmbiguousJSXLike: "disallowAmbiguousJSXLike",
jsxPragma: "jsxPragma",
jsxPragmaFrag: "jsxPragmaFrag",
onlyRemoveTypeImports: "onlyRemoveTypeImports",
optimizeConstEnums: "optimizeConstEnums",
rewriteImportExtensions: "rewriteImportExtensions",
allExtensions: "allExtensions",
isTSX: "isTSX"
}, a = Jn.validateStringOption(s.jsxPragmaFrag, e.jsxPragmaFrag, "React.Fragment");
{
var o = Jn.validateBooleanOption(s.allExtensions, e.allExtensions, !1), l = Jn.validateBooleanOption(s.isTSX, e.isTSX, !1);
l && Jn.invariant(o, "isTSX:true requires allExtensions:true");
}
let u = Jn.validateBooleanOption(s.ignoreExtensions, e.ignoreExtensions, !1), c = Jn.validateBooleanOption(s.disallowAmbiguousJSXLike, e.
disallowAmbiguousJSXLike, !1);
c && Jn.invariant(o, "disallowAmbiguousJSXLike:true requires allExtensions:true");
let p = Jn.validateBooleanOption(s.optimizeConstEnums, e.optimizeConstEnums, !1), f = Jn.validateBooleanOption(s.rewriteImportExtensions,
e.rewriteImportExtensions, !1), h = {
ignoreExtensions: u,
allowNamespaces: t,
disallowAmbiguousJSXLike: c,
jsxPragma: r,
jsxPragmaFrag: a,
onlyRemoveTypeImports: n,
optimizeConstEnums: p,
rewriteImportExtensions: f
};
return h.allExtensions = o, h.isTSX = l, h;
}
i(s0e, "normalizeOptions");
var i0e = e_.declare(function({
types: e,
template: t
}) {
function r(n, s, a) {
if (n) {
if (e.isStringLiteral(n)) {
/^\.\.?\//.test(n.value) && (n.value = n.value.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+)?)\.([cm]?)ts$/i, function(o, l, u, c, p) {
return l ? ".js" : u && (!c || !p) ? o : u + c + "." + p.toLowerCase() + "js";
}));
return;
}
a.availableHelper("tsRewriteRelativeImportExtensions") ? s.replaceWith(e.callExpression(a.addHelper("tsRewriteRelativeImportExtensio\
ns"), [n])) : s.replaceWith(t.expression.ast`(${n} + "").replace(/([\\/].*\.[mc]?)tsx?$/, "$1js")`);
}
}
return i(r, "maybeReplace"), {
name: "preset-typescript/plugin-rewrite-ts-imports",
visitor: {
"ImportDeclaration|ExportAllDeclaration|ExportNamedDeclaration"(n, s) {
let a = n.node;
(e.isImportDeclaration(a) ? a.importKind : a.exportKind) === "value" && r(a.source, n.get("source"), s);
},
CallExpression(n, s) {
e.isImport(n.node.callee) && r(n.node.arguments[0], n.get("arguments.0"), s);
},
ImportExpression(n, s) {
r(n.node.source, n.get("source"), s);
}
}
};
}), a0e = e_.declarePreset((e, t) => {
e.assertVersion(7);
let {
allExtensions: r,
ignoreExtensions: n,
allowNamespaces: s,
disallowAmbiguousJSXLike: a,
isTSX: o,
jsxPragma: l,
jsxPragmaFrag: u,
onlyRemoveTypeImports: c,
optimizeConstEnums: p,
rewriteImportExtensions: f
} = s0e(t), h = /* @__PURE__ */ i((d) => ({
allowDeclareFields: t.allowDeclareFields,
allowNamespaces: s,
disallowAmbiguousJSXLike: d,
jsxPragma: l,
jsxPragmaFrag: u,
onlyRemoveTypeImports: c,
optimizeConstEnums: p
}), "pluginOptions"), y = /* @__PURE__ */ i((d, g) => [[ZI.default, Object.assign({
isTSX: d
}, h(g))]], "getPlugins");
return {
plugins: f ? [i0e] : [],
overrides: r || n ? [{
plugins: y(o, a)
}] : [{
test: /\.ts$/,
plugins: y(!1, !1)
}, {
test: /\.mts$/,
sourceType: "module",
plugins: y(!1, !0)
}, {
test: /\.cts$/,
sourceType: "unambiguous",
plugins: [[n0e.default, {
allowTopLevelThis: !0
}], [ZI.default, h(!0)]]
}, {
test: /\.tsx$/,
plugins: y(!0, !1)
}]
};
});
Gb.default = a0e;
});
// ../node_modules/@babel/core/lib/config/files/module-types.js
var Zb = P((tl) => {
"use strict";
Object.defineProperty(tl, "__esModule", {
value: !0
});
tl.default = c0e;
tl.supportsESM = void 0;
var Hb = ys();
function zb() {
let e = ce("path");
return zb = /* @__PURE__ */ i(function() {
return e;
}, "_path"), e;
}
i(zb, "_path");
function o_() {
let e = ce("url");
return o_ = /* @__PURE__ */ i(function() {
return e;
}, "_url"), e;
}
i(o_, "_url");
ce("module");
function Qb() {
let e = ce("semver");
return Qb = /* @__PURE__ */ i(function() {
return e;
}, "_semver"), e;
}
i(Qb, "_semver");
function l_() {
let e = Us();
return l_ = /* @__PURE__ */ i(function() {
return e;
}, "_debug"), e;
}
i(l_, "_debug");
var u_ = jn(), el = ni(), o0e = Xg();
function n_(e, t, r, n, s, a, o) {
try {
var l = e[a](o), u = l.value;
} catch (c) {
return void r(c);
}
l.done ? t(u) : Promise.resolve(u).then(n, s);
}
i(n_, "asyncGeneratorStep");
function l0e(e) {
return function() {
var t = this, r = arguments;
return new Promise(function(n, s) {
var a = e.apply(t, r);
function o(u) {
n_(a, n, s, o, l, "next", u);
}
i(o, "_next");
function l(u) {
n_(a, n, s, o, l, "throw", u);
}
i(l, "_throw"), o(void 0);
});
};
}
i(l0e, "_asyncToGenerator");
var u0e = l_()("babel:config:loading:files:module-types");
try {
Xb = qw();
} catch {
}
var Xb, hwe = tl.supportsESM = Qb().satisfies(process.versions.node, "^12.17 || >=13.2"), Yb = /* @__PURE__ */ new Set();
function Cp(e) {
if (Yb.has(e))
return u0e("Auto-ignoring usage of config %o.", e), {};
let t;
try {
Yb.add(e), t = (0, u_.endHiddenCallStack)(ce)(e);
} finally {
Yb.delete(e);
}
return t != null && (t.__esModule || t[Symbol.toStringTag] === "Module") ? t.default || (arguments[1] ? t : void 0) : t;
}
i(Cp, "loadCjsDefault");
var s_ = (0, u_.endHiddenCallStack)(function() {
var e = l0e(function* (r) {
let n = (0, o_().pathToFileURL)(r).toString() + "?import";
{
if (!Xb)
throw new el.default(`Internal error: Native ECMAScript modules aren't supported by this platform.
`, r);
return yield Xb(n);
}
});
function t(r) {
return e.apply(this, arguments);
}
return i(t, "loadMjsFromPath"), t;
}()), i_ = {
".js": "unknown",
".mjs": "esm",
".cjs": "cjs",
".ts": "unknown",
".mts": "esm",
".cts": "cjs"
}, a_ = /* @__PURE__ */ new Set();
function* c0e(e, t, r, n) {
let s, a = zb().extname(e), o = a === ".ts" || a === ".cts" || a === ".mts", l = i_[hasOwnProperty.call(i_, a) ? a : ".js"];
switch (`${t} ${l}`) {
case "require cjs":
case "auto cjs":
return o ? Jb(e, a, () => Cp(e)) : Cp(e, arguments[2]);
case "auto unknown":
case "require unknown":
case "require esm":
try {
return o ? Jb(e, a, () => Cp(e)) : Cp(e, arguments[2]);
} catch (c) {
if (c.code === "ERR_REQUIRE_ASYNC_MODULE" || c.code === "ERR_REQUIRE_CYCLE_MODULE" && a_.has(e)) {
if (a_.add(e), !(s ?? (s = yield* (0, Hb.isAsync)())))
throw new el.default(n, e);
} else if (!(c.code === "ERR_REQUIRE_ESM" || l === "esm"))
throw c;
}
case "auto esm":
if (s ?? (s = yield* (0, Hb.isAsync)())) {
let c = o ? Jb(e, a, () => s_(e)) : s_(e);
return (yield* (0, Hb.waitFor)(c)).default;
}
throw new el.default(r, e);
default:
throw new Error("Internal Babel error: unreachable code.");
}
}
i(c0e, "loadCodeDefault");
function Jb(e, t, r) {
if (ce.extensions[".ts"] || ce.extensions[".cts"] || ce.extensions[".mts"])
return r();
if (t !== ".cts")
throw new el.default(`You are using a ${t} config file, but Babel only supports transpiling .cts configs. Either:
- Use a .cts config file
- Update to Node.js 23.6.0, which has native TypeScript support
- Install ts-node to transpile ${t} files on the fly`, e);
let n = {
babelrc: !1,
configFile: !1,
sourceType: "unambiguous",
sourceMaps: "inline",
sourceFileName: zb().basename(e),
presets: [[p0e(e), Object.assign({
onlyRemoveTypeImports: !0,
optimizeConstEnums: !0
}, {
allowDeclareFields: !0
})]]
}, s = /* @__PURE__ */ i(function(a, o) {
if (s && o.endsWith(".cts"))
try {
return a._compile((0, o0e.transformFileSync)(o, Object.assign({}, n, {
filename: o
})).code, o);
} catch (l) {
let u = Uw();
throw Qb().lt(u.version, "7.21.4") && console.error("`.cts` configuration file failed to load, please try to update `@babel/preset\
-typescript`."), l;
}
return ce.extensions[".js"](a, o);
}, "handler");
ce.extensions[t] = s;
try {
return r();
} finally {
ce.extensions[t] === s && delete ce.extensions[t], s = void 0;
}
}
i(Jb, "ensureTsSupport");
function p0e(e) {
try {
return r_();
} catch (t) {
if (t.code !== "MODULE_NOT_FOUND") throw t;
let r = "You appear to be using a .cts file as Babel configuration, but the `@babel/preset-typescript` package was not found: please i\
nstall it!";
throw process.versions.pnp && (r += `
If you are using Yarn Plug'n'Play, you may also need to add the following configuration to your .yarnrc.yml file:
packageExtensions:
"@babel/core@*":
peerDependencies:
"@babel/preset-typescript": "*"
`), new el.default(r, e);
}
}
i(p0e, "getTSPreset");
});
// ../node_modules/@babel/core/lib/config/files/configuration.js
var E_ = P((Xn) => {
"use strict";
Object.defineProperty(Xn, "__esModule", {
value: !0
});
Xn.ROOT_CONFIG_FILENAMES = void 0;
Xn.findConfigUpwards = C0e;
Xn.findRelativeConfig = D0e;
Xn.findRootConfig = w0e;
Xn.loadConfig = I0e;
Xn.resolveShowConfigPath = _0e;
function p_() {
let e = Us();
return p_ = /* @__PURE__ */ i(function() {
return e;
}, "_debug"), e;
}
i(p_, "_debug");
function e1() {
let e = ce("fs");
return e1 = /* @__PURE__ */ i(function() {
return e;
}, "_fs"), e;
}
i(e1, "_fs");
function Ar() {
let e = ce("path");
return Ar = /* @__PURE__ */ i(function() {
return e;
}, "_path"), e;
}
i(Ar, "_path");
function f_() {
let e = vC();
return f_ = /* @__PURE__ */ i(function() {
return e;
}, "_json"), e;
}
i(f_, "_json");
function d_() {
let e = xr();
return d_ = /* @__PURE__ */ i(function() {
return e;
}, "_gensync"), e;
}
i(d_, "_gensync");
var h_ = ri(), f0e = c0(), m_ = Qy(), d0e = Zb(), h0e = tg(), nn = ni(), m0e = sc();
ce("module");
var y0e = jn(), g0e = ys(), t1 = p_()("babel:config:loading:files:configuration"), y_ = Xn.ROOT_CONFIG_FILENAMES = ["babel.config.js", "ba\
bel.config.cjs", "babel.config.mjs", "babel.config.json", "babel.config.cts"], b0e = [".babelrc", ".babelrc.js", ".babelrc.cjs", ".babelrc.m\
js", ".babelrc.json", ".babelrc.cts"], E0e = ".babelignore", T0e = (0, h_.makeWeakCache)(/* @__PURE__ */ i(function* (t, r) {
return yield* [], {
options: (0, y0e.endHiddenCallStack)(t)((0, f0e.makeConfigAPI)(r)),
cacheNeedsConfiguration: !r.configured()
};
}, "runConfig"));
function* S0e(e, t) {
if (!e1().existsSync(e)) return null;
let r = yield* (0, d0e.default)(e, (yield* (0, g0e.isAsync)()) ? "auto" : "require", "You appear to be using a native ECMAScript module \
configuration file, which is only supported when running Babel asynchronously or when using the Node.js `--experimental-require-module` flag\
.", "You appear to be using a configuration file that contains top-level await, which is only supported when running Babel asynchronously."),
n = !1;
if (typeof r == "function" && ({
options: r,
cacheNeedsConfiguration: n
} = yield* T0e(r, t)), !r || typeof r != "object" || Array.isArray(r))
throw new nn.default("Configuration should be an exported JavaScript object.", e);
if (typeof r.then == "function")
throw r.catch == null || r.catch(() => {
}), new nn.default("You appear to be using an async configuration, which your current version of Babel does not support. We may add su\
pport for this in the future, but if you're on the most recent version of @babel/core and still seeing this error, then you'll need to synch\
ronously return your config.", e);
return n && O0e(e), x0e(r, e);
}
i(S0e, "readConfigCode");
var c_ = /* @__PURE__ */ new WeakMap();
function x0e(e, t) {
let r = c_.get(e);
r || c_.set(e, r = /* @__PURE__ */ new Map());
let n = r.get(t);
return n || (n = {
filepath: t,
dirname: Ar().dirname(t),
options: e
}, r.set(t, n)), n;
}
i(x0e, "buildConfigFileObject");
var v0e = (0, h_.makeWeakCacheSync)((e) => {
let t = e.options.babel;
if (t === void 0) return null;
if (typeof t != "object" || Array.isArray(t) || t === null)
throw new nn.default(".babel property must be an object", e.filepath);
return {
filepath: e.filepath,
dirname: e.dirname,
options: t
};
}), P0e = (0, m_.makeStaticFileCache)((e, t) => {
let r;
try {
r = f_().parse(t);
} catch (n) {
throw new nn.default(`Error while parsing config - ${n.message}`, e);
}
if (!r) throw new nn.default("No config detected", e);
if (typeof r != "object")
throw new nn.default(`Config returned typeof ${typeof r}`, e);
if (Array.isArray(r))
throw new nn.default("Expected config object but found array", e);
return delete r.$schema, {
filepath: e,
dirname: Ar().dirname(e),
options: r
};
}), A0e = (0, m_.makeStaticFileCache)((e, t) => {
let r = Ar().dirname(e), n = t.split(`
`).map((s) => s.replace(/#.*$/, "").trim()).filter(Boolean);
for (let s of n)
if (s[0] === "!")
throw new nn.default("Negation of file paths is not supported.", e);
return {
filepath: e,
dirname: Ar().dirname(e),
ignore: n.map((s) => (0, h0e.default)(s, r))
};
});
function C0e(e) {
let t = e;
for (; ; ) {
for (let n of y_)
if (e1().existsSync(Ar().join(t, n)))
return t;
let r = Ar().dirname(t);
if (t === r) break;
t = r;
}
return null;
}
i(C0e, "findConfigUpwards");
function* D0e(e, t, r) {
let n = null, s = null, a = Ar().dirname(e.filepath);
for (let l of e.directories) {
if (!n) {
var o;
n = yield* g_(b0e, l, t, r, ((o = e.pkg) == null ? void 0 : o.dirname) === l ? v0e(e.pkg) : null);
}
if (!s) {
let u = Ar().join(l, E0e);
s = yield* A0e(u), s && t1("Found ignore %o from %o.", s.filepath, a);
}
}
return {
config: n,
ignore: s
};
}
i(D0e, "findRelativeConfig");
function w0e(e, t, r) {
return g_(y_, e, t, r);
}
i(w0e, "findRootConfig");
function* g_(e, t, r, n, s = null) {
let o = (yield* d_().all(e.map((l) => b_(Ar().join(t, l), r, n)))).reduce((l, u) => {
if (u && l)
throw new nn.default(`Multiple configuration files found. Please remove one:
- ${Ar().basename(l.filepath)}
- ${u.filepath}
from ${t}`);
return u || l;
}, s);
return o && t1("Found configuration %o from %o.", o.filepath, t), o;
}
i(g_, "loadOneConfig");
function* I0e(e, t, r, n) {
let s = (((o, l) => (o = o.split("."), l = l.split("."), +o[0] > +l[0] || o[0] == l[0] && +o[1] >= +l[1]))(process.versions.node, "8.9") ?
ce.resolve : (o, {
paths: [l]
}, u = ce("module")) => {
let c = u._findPath(o, u._nodeModulePaths(l).concat(l));
if (c) return c;
throw c = new Error(`Cannot resolve module '${o}'`), c.code = "MODULE_NOT_FOUND", c;
})(e, {
paths: [t]
}), a = yield* b_(s, r, n);
if (!a)
throw new nn.default("Config file contains no configuration data", s);
return t1("Loaded config %o from %o.", e, t), a;
}
i(I0e, "loadConfig");
function b_(e, t, r) {
switch (Ar().extname(e)) {
case ".js":
case ".cjs":
case ".mjs":
case ".ts":
case ".cts":
case ".mts":
return S0e(e, {
envName: t,
caller: r
});
default:
return P0e(e);
}
}
i(b_, "readConfig");
function* _0e(e) {
let t = process.env.BABEL_SHOW_CONFIG_FOR;
if (t != null) {
let r = Ar().resolve(e, t);
if (!(yield* m0e.stat(r)).isFile())
throw new Error(`${r}: BABEL_SHOW_CONFIG_FOR must refer to a regular file, directories are not supported.`);
return r;
}
return null;
}
i(_0e, "resolveShowConfigPath");
function O0e(e) {
throw new nn.default(`Caching was left unconfigured. Babel's plugins, presets, and .babelrc.js files can be configured
for various types of caching, using the first param of their handler functions:
module.exports = function(api) {
// The API exposes the following:
// Cache the returned value forever and don't call this function again.
api.cache(true);
// Don't cache at all. Not recommended because it will be very slow.
api.cache(false);
// Cached based on the value of some function. If this function returns a value different from
// a previously-encountered value, the plugins will re-evaluate.
var env = api.cache(() => process.env.NODE_ENV);
// If testing for a specific env, we recommend specifics to avoid instantiating a plugin for
// any possible NODE_ENV value that might come up during plugin execution.
var isProd = api.cache(() => process.env.NODE_ENV === "production");
// .cache(fn) will perform a linear search though instances to find the matching plugin based
// based on previous instantiated plugins. If you want to recreate the plugin and discard the
// previous instance whenever something changes, you may use:
var isProd = api.cache.invalidate(() => process.env.NODE_ENV === "production");
// Note, we also expose the following more-verbose versions of the above examples:
api.cache.forever(); // api.cache(true)
api.cache.never(); // api.cache(false)
api.cache.using(fn); // api.cache(fn)
// Return the value that will be cached.
return { };
};`, e);
}
i(O0e, "throwConfigError");
});
// ../node_modules/@babel/core/lib/vendor/import-meta-resolve.js
var W_ = P((Np) => {
"use strict";
Object.defineProperty(Np, "__esModule", {
value: !0
});
Np.moduleResolve = $_;
Np.resolve = vge;
function En() {
let e = ce("assert");
return En = /* @__PURE__ */ i(function() {
return e;
}, "_assert"), e;
}
i(En, "_assert");
function il() {
let e = N0e(ce("fs"), !0);
return il = /* @__PURE__ */ i(function() {
return e;
}, "_fs"), e;
}
i(il, "_fs");
function ws() {
let e = ce("process");
return ws = /* @__PURE__ */ i(function() {
return e;
}, "_process"), e;
}
i(ws, "_process");
function Se() {
let e = ce("url");
return Se = /* @__PURE__ */ i(function() {
return e;
}, "_url"), e;
}
i(Se, "_url");
function Ip() {
let e = ce("path");
return Ip = /* @__PURE__ */ i(function() {
return e;
}, "_path"), e;
}
i(Ip, "_path");
function _p() {
let e = ce("module");
return _p = /* @__PURE__ */ i(function() {
return e;
}, "_module"), e;
}
i(_p, "_module");
function N_() {
let e = ce("v8");
return N_ = /* @__PURE__ */ i(function() {
return e;
}, "_v"), e;
}
i(N_, "_v");
function sl() {
let e = ce("util");
return sl = /* @__PURE__ */ i(function() {
return e;
}, "_util"), e;
}
i(sl, "_util");
function B_(e) {
if (typeof WeakMap != "function") return null;
var t = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakMap();
return (B_ = /* @__PURE__ */ i(function(n) {
return n ? r : t;
}, "_getRequireWildcardCache"))(e);
}
i(B_, "_getRequireWildcardCache");
function N0e(e, t) {
if (!t && e && e.__esModule) return e;
if (e === null || typeof e != "object" && typeof e != "function") return { default: e };
var r = B_(t);
if (r && r.has(e)) return r.get(e);
var n = { __proto__: null }, s = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var a in e) if (a !== "default" && {}.hasOwnProperty.call(e, a)) {
var o = s ? 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;
}
i(N0e, "_interopRequireWildcard");
var B0e = {}.hasOwnProperty, k0e = /^([A-Z][a-z\d]*)+$/, F0e = /* @__PURE__ */ new Set(["string", "function", "number", "object", "Functio\
n", "Object", "boolean", "bigint", "symbol"]), Yt = {};
function r1(e, t = "and") {
return e.length < 3 ? e.join(` ${t} `) : `${e.slice(0, -1).join(", ")}, ${t} ${e[e.length - 1]}`;
}
i(r1, "formatList");
var k_ = /* @__PURE__ */ new Map(), j0e = "__node_internal_", T_;
Yt.ERR_INVALID_ARG_TYPE = $r("ERR_INVALID_ARG_TYPE", (e, t, r) => {
En()(typeof e == "string", "'name' must be a string"), Array.isArray(t) || (t = [t]);
let n = "The ";
if (e.endsWith(" argument"))
n += `${e} `;
else {
let l = e.includes(".") ? "property" : "argument";
n += `"${e}" ${l} `;
}
n += "must be ";
let s = [], a = [], o = [];
for (let l of t)
En()(typeof l == "string", "All expected entries have to be of type string"), F0e.has(l) ? s.push(l.toLowerCase()) : k0e.exec(l) === null ?
(En()(l !== "object", 'The value "object" should be written as "Object"'), o.push(l)) : a.push(l);
if (a.length > 0) {
let l = s.indexOf("object");
l !== -1 && (s.slice(l, 1), a.push("Object"));
}
return s.length > 0 && (n += `${s.length > 1 ? "one of type" : "of type"} ${r1(s, "or")}`, (a.length > 0 || o.length > 0) && (n += " or ")),
a.length > 0 && (n += `an instance of ${r1(a, "or")}`, o.length > 0 && (n += " or ")), o.length > 0 && (o.length > 1 ? n += `one of ${r1(
o, "or")}` : (o[0].toLowerCase() !== o[0] && (n += "an "), n += `${o[0]}`)), n += `. Received ${U0e(r)}`, n;
}, TypeError);
Yt.ERR_INVALID_MODULE_SPECIFIER = $r("ERR_INVALID_MODULE_SPECIFIER", (e, t, r = void 0) => `Invalid module "${e}" ${t}${r ? ` imported fro\
m ${r}` : ""}`, TypeError);
Yt.ERR_INVALID_PACKAGE_CONFIG = $r("ERR_INVALID_PACKAGE_CONFIG", (e, t, r) => `Invalid package config ${e}${t ? ` while importing ${t}` : ""}${r ?
`. ${r}` : ""}`, Error);
Yt.ERR_INVALID_PACKAGE_TARGET = $r("ERR_INVALID_PACKAGE_TARGET", (e, t, r, n = !1, s = void 0) => {
let a = typeof r == "string" && !n && r.length > 0 && !r.startsWith("./");
return t === "." ? (En()(n === !1), `Invalid "exports" main target ${JSON.stringify(r)} defined in the package config ${e}package.json${s ?
` imported from ${s}` : ""}${a ? '; targets must start with "./"' : ""}`) : `Invalid "${n ? "imports" : "exports"}" target ${JSON.stringify(
r)} defined for '${t}' in the package config ${e}package.json${s ? ` imported from ${s}` : ""}${a ? '; targets must start with "./"' : ""}`;
}, Error);
Yt.ERR_MODULE_NOT_FOUND = $r("ERR_MODULE_NOT_FOUND", (e, t, r = !1) => `Cannot find ${r ? "module" : "package"} '${e}' imported from ${t}`,
Error);
Yt.ERR_NETWORK_IMPORT_DISALLOWED = $r("ERR_NETWORK_IMPORT_DISALLOWED", "import of '%s' by %s is not supported: %s", Error);
Yt.ERR_PACKAGE_IMPORT_NOT_DEFINED = $r("ERR_PACKAGE_IMPORT_NOT_DEFINED", (e, t, r) => `Package import specifier "${e}" is not defined${t ?
` in package ${t}package.json` : ""} imported from ${r}`, TypeError);
Yt.ERR_PACKAGE_PATH_NOT_EXPORTED = $r("ERR_PACKAGE_PATH_NOT_EXPORTED", (e, t, r = void 0) => t === "." ? `No "exports" main defined in ${e}\
package.json${r ? ` imported from ${r}` : ""}` : `Package subpath '${t}' is not defined by "exports" in ${e}package.json${r ? ` imported fro\
m ${r}` : ""}`, Error);
Yt.ERR_UNSUPPORTED_DIR_IMPORT = $r("ERR_UNSUPPORTED_DIR_IMPORT", "Directory import '%s' is not supported resolving ES modules imported fro\
m %s", Error);
Yt.ERR_UNSUPPORTED_RESOLVE_REQUEST = $r("ERR_UNSUPPORTED_RESOLVE_REQUEST", 'Failed to resolve module specifier "%s" from "%s": Invalid rel\
ative URL or base scheme is not hierarchical.', TypeError);
Yt.ERR_UNKNOWN_FILE_EXTENSION = $r("ERR_UNKNOWN_FILE_EXTENSION", (e, t) => `Unknown file extension "${e}" for ${t}`, TypeError);
Yt.ERR_INVALID_ARG_VALUE = $r("ERR_INVALID_ARG_VALUE", (e, t, r = "is invalid") => {
let n = (0, sl().inspect)(t);
return n.length > 128 && (n = `${n.slice(0, 128)}...`), `The ${e.includes(".") ? "property" : "argument"} '${e}' ${r}. Received ${n}`;
}, TypeError);
function $r(e, t, r) {
return k_.set(e, t), L0e(r, e);
}
i($r, "createError");
function L0e(e, t) {
return r;
function r(...n) {
let s = Error.stackTraceLimit;
a1() && (Error.stackTraceLimit = 0);
let a = new e();
a1() && (Error.stackTraceLimit = s);
let o = q0e(t, n, a);
return Object.defineProperties(a, {
message: {
value: o,
enumerable: !1,
writable: !0,
configurable: !0
},
toString: {
value() {
return `${this.name} [${t}]: ${this.message}`;
},
enumerable: !1,
writable: !0,
configurable: !0
}
}), R0e(a), a.code = t, a;
}
}
i(L0e, "makeNodeErrorWithCode");
function a1() {
try {
if (N_().startupSnapshot.isBuildingSnapshot())
return !1;
} catch {
}
let e = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
return e === void 0 ? Object.isExtensible(Error) : B0e.call(e, "writable") && e.writable !== void 0 ? e.writable : e.set !== void 0;
}
i(a1, "isErrorStackTraceLimitWritable");
function M0e(e) {
let t = j0e + e.name;
return Object.defineProperty(e, "name", {
value: t
}), e;
}
i(M0e, "hideStackFrames");
var R0e = M0e(function(e) {
let t = a1();
return t && (T_ = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(e), t && (Error.stackTraceLimit =
T_), e;
});
function q0e(e, t, r) {
let n = k_.get(e);
if (En()(n !== void 0, "expected `message` to be found"), typeof n == "function")
return En()(n.length <= t.length, `Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${n.length}\
).`), Reflect.apply(n, r, t);
let s = /%[dfijoOs]/g, a = 0;
for (; s.exec(n) !== null; ) a++;
return En()(a === t.length, `Code: ${e}; The provided arguments length (${t.length}) does not match the required ones (${a}).`), t.length ===
0 ? n : (t.unshift(n), Reflect.apply(sl().format, null, t));
}
i(q0e, "getMessage");
function U0e(e) {
if (e == null)
return String(e);
if (typeof e == "function" && e.name)
return `function ${e.name}`;
if (typeof e == "object")
return e.constructor && e.constructor.name ? `an instance of ${e.constructor.name}` : `${(0, sl().inspect)(e, {
depth: -1
})}`;
let t = (0, sl().inspect)(e, {
colors: !1
});
return t.length > 28 && (t = `${t.slice(0, 25)}...`), `type ${typeof e} (${t})`;
}
i(U0e, "determineSpecificType");
var rl = {}.hasOwnProperty, {
ERR_INVALID_PACKAGE_CONFIG: V0e
} = Yt, S_ = /* @__PURE__ */ new Map();
function F_(e, {
base: t,
specifier: r
}) {
let n = S_.get(e);
if (n)
return n;
let s;
try {
s = il().default.readFileSync(Ip().toNamespacedPath(e), "utf8");
} catch (o) {
let l = o;
if (l.code !== "ENOENT")
throw l;
}
let a = {
exists: !1,
pjsonPath: e,
main: void 0,
name: void 0,
type: "none",
exports: void 0,
imports: void 0
};
if (s !== void 0) {
let o;
try {
o = JSON.parse(s);
} catch (l) {
let u = l, c = new V0e(e, (t ? `"${r}" from ` : "") + (0, Se().fileURLToPath)(t || r), u.message);
throw c.cause = u, c;
}
a.exists = !0, rl.call(o, "name") && typeof o.name == "string" && (a.name = o.name), rl.call(o, "main") && typeof o.main == "string" &&
(a.main = o.main), rl.call(o, "exports") && (a.exports = o.exports), rl.call(o, "imports") && (a.imports = o.imports), rl.call(o, "typ\
e") && (o.type === "commonjs" || o.type === "module") && (a.type = o.type);
}
return S_.set(e, a), a;
}
i(F_, "read");
function o1(e) {
let t = new URL("package.json", e);
for (; !t.pathname.endsWith("node_modules/package.json"); ) {
let s = F_((0, Se().fileURLToPath)(t), {
specifier: e
});
if (s.exists)
return s;
let a = t;
if (t = new URL("../package.json", t), t.pathname === a.pathname)
break;
}
return {
pjsonPath: (0, Se().fileURLToPath)(t),
exists: !1,
type: "none"
};
}
i(o1, "getPackageScopeConfig");
function x_(e) {
return o1(e).type;
}
i(x_, "getPackageType");
var {
ERR_UNKNOWN_FILE_EXTENSION: $0e
} = Yt, W0e = {}.hasOwnProperty, K0e = {
__proto__: null,
".cjs": "commonjs",
".js": "module",
".json": "json",
".mjs": "module"
};
function G0e(e) {
return e && /\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e) ? "module" : e === "application/json" ? "json" : null;
}
i(G0e, "mimeToFormat");
var v_ = {
__proto__: null,
"data:": H0e,
"file:": J0e,
"http:": P_,
"https:": P_,
"node:"() {
return "builtin";
}
};
function H0e(e) {
let {
1: t
} = /^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e.pathname) || [null, null, null];
return G0e(t);
}
i(H0e, "getDataProtocolModuleFormat");
function Y0e(e) {
let t = e.pathname, r = t.length;
for (; r--; ) {
let n = t.codePointAt(r);
if (n === 47)
return "";
if (n === 46)
return t.codePointAt(r - 1) === 47 ? "" : t.slice(r);
}
return "";
}
i(Y0e, "extname");
function J0e(e, t, r) {
let n = Y0e(e);
if (n === ".js") {
let o = x_(e);
return o !== "none" ? o : "commonjs";
}
if (n === "") {
let o = x_(e);
return o === "none" || o === "commonjs" ? "commonjs" : "module";
}
let s = K0e[n];
if (s) return s;
if (r)
return;
let a = (0, Se().fileURLToPath)(e);
throw new $0e(n, a);
}
i(J0e, "getFileProtocolModuleFormat");
function P_() {
}
i(P_, "getHttpProtocolModuleFormat");
function j_(e, t) {
let r = e.protocol;
return W0e.call(v_, r) && v_[r](e, t, !0) || null;
}
i(j_, "defaultGetFormatWithoutErrors");
var {
ERR_INVALID_ARG_VALUE: X0e
} = Yt, L_ = Object.freeze(["node", "import"]), z0e = new Set(L_);
function Q0e() {
return L_;
}
i(Q0e, "getDefaultConditions");
function Z0e() {
return z0e;
}
i(Z0e, "getDefaultConditionsSet");
function ege(e) {
if (e !== void 0 && e !== Q0e()) {
if (!Array.isArray(e))
throw new X0e("conditions", e, "expected an array");
return new Set(e);
}
return Z0e();
}
i(ege, "getConditionsSet");
var Dp = RegExp.prototype[Symbol.replace], {
ERR_NETWORK_IMPORT_DISALLOWED: n1,
ERR_INVALID_MODULE_SPECIFIER: Op,
ERR_INVALID_PACKAGE_CONFIG: M_,
ERR_INVALID_PACKAGE_TARGET: tge,
ERR_MODULE_NOT_FOUND: l1,
ERR_PACKAGE_IMPORT_NOT_DEFINED: rge,
ERR_PACKAGE_PATH_NOT_EXPORTED: nge,
ERR_UNSUPPORTED_DIR_IMPORT: sge,
ERR_UNSUPPORTED_RESOLVE_REQUEST: A_
} = Yt, R_ = {}.hasOwnProperty, C_ = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,
D_ = /(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,
ige = /^\.|%|\\/, wp = /\*/g, age = /%2f|%5c/i, w_ = /* @__PURE__ */ new Set(), oge = /[/\\]{2}/;
function I_(e, t, r, n, s, a, o) {
if (ws().noDeprecation)
return;
let l = (0, Se().fileURLToPath)(n), u = oge.exec(o ? e : t) !== null;
ws().emitWarning(`Use of deprecated ${u ? "double slash" : "leading or trailing slash matching"} resolving "${e}" for module request "${t}\
" ${t === r ? "" : `matched to "${r}" `}in the "${s ? "imports" : "exports"}" field module resolution of the package at ${l}${a ? ` imported\
from ${(0, Se().fileURLToPath)(a)}` : ""}.`, "DeprecationWarning", "DEP0166");
}
i(I_, "emitInvalidSegmentDeprecation");
function __(e, t, r, n) {
if (ws().noDeprecation || j_(e, {
parentURL: r.href
}) !== "module") return;
let a = (0, Se().fileURLToPath)(e.href), o = (0, Se().fileURLToPath)(new (Se()).URL(".", t)), l = (0, Se().fileURLToPath)(r);
n ? Ip().resolve(o, n) !== a && ws().emitWarning(`Package ${o} has a "main" field set to "${n}", excluding the full filename and extensi\
on to the resolved file at "${a.slice(o.length)}", imported from ${l}.
Automatic extension resolution of the "main" field is deprecated for ES modules.`, "DeprecationWarning", "DEP0151") : ws().emitWarning(`No \
"main" or "exports" field defined in the package.json for ${o} resolving the main entry point "${a.slice(o.length)}", imported from ${l}.
Default "index" lookups for the main are deprecated for ES modules.`, "DeprecationWarning", "DEP0151");
}
i(__, "emitLegacyIndexDeprecation");
function q_(e) {
try {
return (0, il().statSync)(e);
} catch {
}
}
i(q_, "tryStatSync");
function s1(e) {
let t = (0, il().statSync)(e, {
throwIfNoEntry: !1
}), r = t ? t.isFile() : void 0;
return r ?? !1;
}
i(s1, "fileExists");
function lge(e, t, r) {
let n;
if (t.main !== void 0) {
if (n = new (Se()).URL(t.main, e), s1(n)) return n;
let o = [`./${t.main}.js`, `./${t.main}.json`, `./${t.main}.node`, `./${t.main}/index.js`, `./${t.main}/index.json`, `./${t.main}/inde\
x.node`], l = -1;
for (; ++l < o.length && (n = new (Se()).URL(o[l], e), !s1(n)); )
n = void 0;
if (n)
return __(n, e, r, t.main), n;
}
let s = ["./index.js", "./index.json", "./index.node"], a = -1;
for (; ++a < s.length && (n = new (Se()).URL(s[a], e), !s1(n)); )
n = void 0;
if (n)
return __(n, e, r, t.main), n;
throw new l1((0, Se().fileURLToPath)(new (Se()).URL(".", e)), (0, Se().fileURLToPath)(r));
}
i(lge, "legacyMainResolve");
function uge(e, t, r) {
if (age.exec(e.pathname) !== null)
throw new Op(e.pathname, 'must not include encoded "/" or "\\" characters', (0, Se().fileURLToPath)(t));
let n;
try {
n = (0, Se().fileURLToPath)(e);
} catch (a) {
let o = a;
throw Object.defineProperty(o, "input", {
value: String(e)
}), Object.defineProperty(o, "module", {
value: String(t)
}), o;
}
let s = q_(n.endsWith("/") ? n.slice(-1) : n);
if (s && s.isDirectory()) {
let a = new sge(n, (0, Se().fileURLToPath)(t));
throw a.url = String(e), a;
}
if (!s || !s.isFile()) {
let a = new l1(n || e.pathname, t && (0, Se().fileURLToPath)(t), !0);
throw a.url = String(e), a;
}
if (!r) {
let a = (0, il().realpathSync)(n), {
search: o,
hash: l
} = e;
e = (0, Se().pathToFileURL)(a + (n.endsWith(Ip().sep) ? "/" : "")), e.search = o, e.hash = l;
}
return e;
}
i(uge, "finalizeResolution");
function cge(e, t, r) {
return new rge(e, t && (0, Se().fileURLToPath)(new (Se()).URL(".", t)), (0, Se().fileURLToPath)(r));
}
i(cge, "importNotDefined");
function i1(e, t, r) {
return new nge((0, Se().fileURLToPath)(new (Se()).URL(".", t)), e, r && (0, Se().fileURLToPath)(r));
}
i(i1, "exportsNotFound");
function pge(e, t, r, n, s) {
let a = `request is not a valid match in pattern "${t}" for the "${n ? "imports" : "exports"}" resolution of ${(0, Se().fileURLToPath)(r)}`;
throw new Op(e, a, s && (0, Se().fileURLToPath)(s));
}
i(pge, "throwInvalidSubpath");
function nl(e, t, r, n, s) {
return t = typeof t == "object" && t !== null ? JSON.stringify(t, null, "") : `${t}`, new tge((0, Se().fileURLToPath)(new (Se()).URL(".",
r)), e, t, n, s && (0, Se().fileURLToPath)(s));
}
i(nl, "invalidPackageTarget");
function fge(e, t, r, n, s, a, o, l, u) {
if (t !== "" && !a && e[e.length - 1] !== "/") throw nl(r, e, n, o, s);
if (!e.startsWith("./")) {
if (o && !e.startsWith("../") && !e.startsWith("/")) {
let h = !1;
try {
new (Se()).URL(e), h = !0;
} catch {
}
if (!h) {
let y = a ? Dp.call(wp, e, () => t) : e + t;
return V_(y, n, u);
}
}
throw nl(r, e, n, o, s);
}
if (C_.exec(e.slice(2)) !== null)
if (D_.exec(e.slice(2)) === null) {
if (!l) {
let h = a ? r.replace("*", () => t) : r + t, y = a ? Dp.call(wp, e, () => t) : e;
I_(y, h, r, n, o, s, !0);
}
} else
throw nl(r, e, n, o, s);
let c = new (Se()).URL(e, n), p = c.pathname, f = new (Se()).URL(".", n).pathname;
if (!p.startsWith(f)) throw nl(r, e, n, o, s);
if (t === "") return c;
if (C_.exec(t) !== null) {
let h = a ? r.replace("*", () => t) : r + t;
if (D_.exec(t) === null) {
if (!l) {
let y = a ? Dp.call(wp, e, () => t) : e;
I_(y, h, r, n, o, s, !1);
}
} else
pge(h, r, n, o, s);
}
return a ? new (Se()).URL(Dp.call(wp, c.href, () => t)) : new (Se()).URL(t, c);
}
i(fge, "resolvePackageTargetString");
function dge(e) {
let t = Number(e);
return `${t}` !== e ? !1 : t >= 0 && t < 4294967295;
}
i(dge, "isArrayIndex");
function ba(e, t, r, n, s, a, o, l, u) {
if (typeof t == "string")
return fge(t, r, n, e, s, a, o, l, u);
if (Array.isArray(t)) {
let c = t;
if (c.length === 0) return null;
let p, f = -1;
for (; ++f < c.length; ) {
let h = c[f], y;
try {
y = ba(e, h, r, n, s, a, o, l, u);
} catch (E) {
let d = E;
if (p = d, d.code === "ERR_INVALID_PACKAGE_TARGET") continue;
throw E;
}
if (y !== void 0) {
if (y === null) {
p = null;
continue;
}
return y;
}
}
if (p == null)
return null;
throw p;
}
if (typeof t == "object" && t !== null) {
let c = Object.getOwnPropertyNames(t), p = -1;
for (; ++p < c.length; ) {
let f = c[p];
if (dge(f))
throw new M_((0, Se().fileURLToPath)(e), s, '"exports" cannot contain numeric property keys.');
}
for (p = -1; ++p < c.length; ) {
let f = c[p];
if (f === "default" || u && u.has(f)) {
let h = t[f], y = ba(e, h, r, n, s, a, o, l, u);
if (y === void 0) continue;
return y;
}
}
return null;
}
if (t === null)
return null;
throw nl(n, t, e, o, s);
}
i(ba, "resolvePackageTarget");
function hge(e, t, r) {
if (typeof e == "string" || Array.isArray(e)) return !0;
if (typeof e != "object" || e === null) return !1;
let n = Object.getOwnPropertyNames(e), s = !1, a = 0, o = -1;
for (; ++o < n.length; ) {
let l = n[o], u = l === "" || l[0] !== ".";
if (a++ === 0)
s = u;
else if (s !== u)
throw new M_((0, Se().fileURLToPath)(t), r, `"exports" cannot contain some keys starting with '.' and some not. The exports object m\
ust either be an object of package subpath keys or an object of main entry condition name keys only.`);
}
return s;
}
i(hge, "isConditionalExportsMainSugar");
function mge(e, t, r) {
if (ws().noDeprecation)
return;
let n = (0, Se().fileURLToPath)(t);
w_.has(n + "|" + e) || (w_.add(n + "|" + e), ws().emitWarning(`Use of deprecated trailing slash pattern mapping "${e}" in the "exports" \
field module resolution of the package at ${n}${r ? ` imported from ${(0, Se().fileURLToPath)(r)}` : ""}. Mapping specifiers ending in "/" i\
s no longer supported.`, "DeprecationWarning", "DEP0155"));
}
i(mge, "emitTrailingSlashPatternDeprecation");
function O_(e, t, r, n, s) {
let a = r.exports;
if (hge(a, e, n) && (a = {
".": a
}), R_.call(a, t) && !t.includes("*") && !t.endsWith("/")) {
let p = a[t], f = ba(e, p, "", t, n, !1, !1, !1, s);
if (f == null)
throw i1(t, e, n);
return f;
}
let o = "", l = "", u = Object.getOwnPropertyNames(a), c = -1;
for (; ++c < u.length; ) {
let p = u[c], f = p.indexOf("*");
if (f !== -1 && t.startsWith(p.slice(0, f))) {
t.endsWith("/") && mge(t, e, n);
let h = p.slice(f + 1);
t.length >= p.length && t.endsWith(h) && U_(o, p) === 1 && p.lastIndexOf("*") === f && (o = p, l = t.slice(f, t.length - h.length));
}
}
if (o) {
let p = a[o], f = ba(e, p, l, o, n, !0, !1, t.endsWith("/"), s);
if (f == null)
throw i1(t, e, n);
return f;
}
throw i1(t, e, n);
}
i(O_, "packageExportsResolve");
function U_(e, t) {
let r = e.indexOf("*"), n = t.indexOf("*"), s = r === -1 ? e.length : r + 1, a = n === -1 ? t.length : n + 1;
return s > a ? -1 : a > s || r === -1 ? 1 : n === -1 || e.length > t.length ? -1 : t.length > e.length ? 1 : 0;
}
i(U_, "patternKeyCompare");
function yge(e, t, r) {
if (e === "#" || e.startsWith("#/") || e.endsWith("/")) {
let a = "is not a valid internal imports specifier name";
throw new Op(e, a, (0, Se().fileURLToPath)(t));
}
let n, s = o1(t);
if (s.exists) {
n = (0, Se().pathToFileURL)(s.pjsonPath);
let a = s.imports;
if (a)
if (R_.call(a, e) && !e.includes("*")) {
let o = ba(n, a[e], "", e, t, !1, !0, !1, r);
if (o != null)
return o;
} else {
let o = "", l = "", u = Object.getOwnPropertyNames(a), c = -1;
for (; ++c < u.length; ) {
let p = u[c], f = p.indexOf("*");
if (f !== -1 && e.startsWith(p.slice(0, -1))) {
let h = p.slice(f + 1);
e.length >= p.length && e.endsWith(h) && U_(o, p) === 1 && p.lastIndexOf("*") === f && (o = p, l = e.slice(f, e.length - h.length));
}
}
if (o) {
let p = a[o], f = ba(n, p, l, o, t, !0, !0, !1, r);
if (f != null)
return f;
}
}
}
throw cge(e, n, t);
}
i(yge, "packageImportsResolve");
function gge(e, t) {
let r = e.indexOf("/"), n = !0, s = !1;
e[0] === "@" && (s = !0, r === -1 || e.length === 0 ? n = !1 : r = e.indexOf("/", r + 1));
let a = r === -1 ? e : e.slice(0, r);
if (ige.exec(a) !== null && (n = !1), !n)
throw new Op(e, "is not a valid package name", (0, Se().fileURLToPath)(t));
let o = "." + (r === -1 ? "" : e.slice(r));
return {
packageName: a,
packageSubpath: o,
isScoped: s
};
}
i(gge, "parsePackageName");
function V_(e, t, r) {
if (_p().builtinModules.includes(e))
return new (Se()).URL("node:" + e);
let {
packageName: n,
packageSubpath: s,
isScoped: a
} = gge(e, t), o = o1(t);
if (o.exists) {
let p = (0, Se().pathToFileURL)(o.pjsonPath);
if (o.name === n && o.exports !== void 0 && o.exports !== null)
return O_(p, s, o, t, r);
}
let l = new (Se()).URL("./node_modules/" + n + "/package.json", t), u = (0, Se().fileURLToPath)(l), c;
do {
let p = q_(u.slice(0, -13));
if (!p || !p.isDirectory()) {
c = u, l = new (Se()).URL((a ? "../../../../node_modules/" : "../../../node_modules/") + n + "/package.json", l), u = (0, Se().fileURLToPath)(
l);
continue;
}
let f = F_(u, {
base: t,
specifier: e
});
return f.exports !== void 0 && f.exports !== null ? O_(l, s, f, t, r) : s === "." ? lge(l, f, t) : new (Se()).URL(s, l);
} while (u.length !== c.length);
throw new l1(n, (0, Se().fileURLToPath)(t), !1);
}
i(V_, "packageResolve");
function bge(e) {
return e[0] === "." && (e.length === 1 || e[1] === "/" || e[1] === "." && (e.length === 2 || e[2] === "/"));
}
i(bge, "isRelativeSpecifier");
function u1(e) {
return e === "" ? !1 : e[0] === "/" ? !0 : bge(e);
}
i(u1, "shouldBeTreatedAsRelativeOrAbsolutePath");
function $_(e, t, r, n) {
let s = t.protocol, o = s === "data:" || s === "http:" || s === "https:", l;
if (u1(e))
try {
l = new (Se()).URL(e, t);
} catch (u) {
let c = new A_(e, t);
throw c.cause = u, c;
}
else if (s === "file:" && e[0] === "#")
l = yge(e, t, r);
else
try {
l = new (Se()).URL(e);
} catch (u) {
if (o && !_p().builtinModules.includes(e)) {
let c = new A_(e, t);
throw c.cause = u, c;
}
l = V_(e, t, r);
}
return En()(l !== void 0, "expected to be defined"), l.protocol !== "file:" ? l : uge(l, t, n);
}
i($_, "moduleResolve");
function Ege(e, t, r) {
if (r) {
let n = r.protocol;
if (n === "http:" || n === "https:") {
if (u1(e)) {
let s = t?.protocol;
if (s && s !== "https:" && s !== "http:")
throw new n1(e, r, "remote imports cannot import from a local location.");
return {
url: t?.href || ""
};
}
throw _p().builtinModules.includes(e) ? new n1(e, r, "remote imports cannot import from a local location.") : new n1(e, r, "only rel\
ative and absolute specifiers are supported.");
}
}
}
i(Ege, "checkIfDisallowedImport");
function Tge(e) {
return !!(e && typeof e == "object" && "href" in e && typeof e.href == "string" && "protocol" in e && typeof e.protocol == "string" && e.
href && e.protocol);
}
i(Tge, "isURL");
function Sge(e) {
if (e !== void 0 && typeof e != "string" && !Tge(e))
throw new Yt.ERR_INVALID_ARG_TYPE("parentURL", ["string", "URL"], e);
}
i(Sge, "throwIfInvalidParentURL");
function xge(e, t = {}) {
let {
parentURL: r
} = t;
En()(r !== void 0, "expected `parentURL` to be defined"), Sge(r);
let n;
if (r)
try {
n = new (Se()).URL(r);
} catch {
}
let s, a;
try {
if (s = u1(e) ? new (Se()).URL(e, n) : new (Se()).URL(e), a = s.protocol, a === "data:")
return {
url: s.href,
format: null
};
} catch {
}
let o = Ege(e, s, n);
if (o) return o;
if (a === void 0 && s && (a = s.protocol), a === "node:")
return {
url: e
};
if (s && s.protocol === "node:") return {
url: e
};
let l = ege(t.conditions), u = $_(e, new (Se()).URL(r), l, !1);
return {
url: u.href,
format: j_(u, {
parentURL: r
})
};
}
i(xge, "defaultResolve");
function vge(e, t) {
if (!t)
throw new Error("Please pass `parent`: `import-meta-resolve` cannot ponyfill that");
try {
return xge(e, {
parentURL: t
}).url;
} catch (r) {
let n = r;
if ((n.code === "ERR_UNSUPPORTED_DIR_IMPORT" || n.code === "ERR_MODULE_NOT_FOUND") && typeof n.url == "string")
return n.url;
throw r;
}
}
i(vge, "resolve");
});
// ../node_modules/@babel/core/lib/config/files/plugins.js
var Z_ = P((Is) => {
"use strict";
Object.defineProperty(Is, "__esModule", {
value: !0
});
Is.loadPlugin = Fge;
Is.loadPreset = jge;
Is.resolvePreset = Is.resolvePlugin = void 0;
function G_() {
let e = Us();
return G_ = /* @__PURE__ */ i(function() {
return e;
}, "_debug"), e;
}
i(G_, "_debug");
function f1() {
let e = ce("path");
return f1 = /* @__PURE__ */ i(function() {
return e;
}, "_path"), e;
}
i(f1, "_path");
var d1 = ys(), H_ = Zb();
function p1() {
let e = ce("url");
return p1 = /* @__PURE__ */ i(function() {
return e;
}, "_url"), e;
}
i(p1, "_url");
var Pge = W_();
ce("module");
function Y_() {
let e = ce("fs");
return Y_ = /* @__PURE__ */ i(function() {
return e;
}, "_fs"), e;
}
i(Y_, "_fs");
var J_ = G_()("babel:config:loading:files:plugins"), Age = /^module:/, Cge = /^(?!@|module:|[^/]+\/|babel-plugin-)/, Dge = /^(?!@|module:|[^/]+\/|babel-preset-)/,
wge = /^(@babel\/)(?!plugin-|[^/]+\/)/, Ige = /^(@babel\/)(?!preset-|[^/]+\/)/, _ge = /^(@(?!babel\/)[^/]+\/)(?![^/]*babel-plugin(?:-|\/|$)|[^/]+\/)/,
Oge = /^(@(?!babel\/)[^/]+\/)(?![^/]*babel-preset(?:-|\/|$)|[^/]+\/)/, Nge = /^(@(?!babel$)[^/]+)$/, Bge = Is.resolvePlugin = z_.bind(null,
"plugin"), kge = Is.resolvePreset = z_.bind(null, "preset");
function* Fge(e, t) {
let {
filepath: r,
loader: n
} = Bge(e, t, yield* (0, d1.isAsync)()), s = yield* Q_("plugin", n, r);
return J_("Loaded plugin %o from %o.", e, t), {
filepath: r,
value: s
};
}
i(Fge, "loadPlugin");
function* jge(e, t) {
let {
filepath: r,
loader: n
} = kge(e, t, yield* (0, d1.isAsync)()), s = yield* Q_("preset", n, r);
return J_("Loaded preset %o from %o.", e, t), {
filepath: r,
value: s
};
}
i(jge, "loadPreset");
function c1(e, t) {
if (f1().isAbsolute(t)) return t;
let r = e === "preset";
return t.replace(r ? Dge : Cge, `babel-${e}-`).replace(r ? Ige : wge, `$1${e}-`).replace(r ? Oge : _ge, `$1babel-${e}-`).replace(Nge, `$\
1/babel-${e}`).replace(Age, "");
}
i(c1, "standardizeName");
function* X_(e, t) {
let r = c1(e, t), {
error: n,
value: s
} = yield r;
if (!n) return s;
if (n.code !== "MODULE_NOT_FOUND") throw n;
r !== t && !(yield t).error && (n.message += `
- If you want to resolve "${t}", use "module:${t}"`), (yield c1(e, "@babel/" + t)).error || (n.message += `
- Did you mean "@babel/${t}"?`);
let a = e === "preset" ? "plugin" : "preset";
if ((yield c1(a, t)).error || (n.message += `
- Did you accidentally pass a ${a} as a ${e}?`), e === "plugin") {
let o = r.replace("-proposal-", "-transform-");
o !== r && !(yield o).error && (n.message += `
- Did you mean "${o}"?`);
}
throw n.message += `
Make sure that all the Babel plugins and presets you are using
are defined as dependencies or devDependencies in your package.json
file. It's possible that the missing plugin is loaded by a preset
you are using that forgot to add the plugin to its dependencies: you
can workaround this problem by explicitly adding the missing package
to your top-level package.json.
`, n;
}
i(X_, "resolveAlternativesHelper");
function Lge(e, t) {
try {
return t ? {
error: null,
value: (((r, n) => (r = r.split("."), n = n.split("."), +r[0] > +n[0] || r[0] == n[0] && +r[1] >= +n[1]))(process.versions.node, "8.\
9") ? ce.resolve : (r, {
paths: [n]
}, s = ce("module")) => {
let a = s._findPath(r, s._nodeModulePaths(n).concat(n));
if (a) return a;
throw a = new Error(`Cannot resolve module '${r}'`), a.code = "MODULE_NOT_FOUND", a;
})(e, {
paths: [t]
})
} : {
error: null,
value: ce.resolve(e)
};
} catch (r) {
return {
error: r,
value: null
};
}
}
i(Lge, "tryRequireResolve");
function Mge(e, t) {
try {
return {
error: null,
value: (0, Pge.resolve)(e, t)
};
} catch (r) {
return {
error: r,
value: null
};
}
}
i(Mge, "tryImportMetaResolve");
function K_(e, t, r) {
let n = X_(e, t), s = n.next();
for (; !s.done; )
s = n.next(Lge(s.value, r));
return {
loader: "require",
filepath: s.value
};
}
i(K_, "resolveStandardizedNameForRequire");
function Rge(e, t, r) {
let n = (0, p1().pathToFileURL)(f1().join(r, "./babel-virtual-resolve-base.js")).href, s = X_(e, t), a = s.next();
for (; !a.done; )
a = s.next(Mge(a.value, n));
return {
loader: "auto",
filepath: (0, p1().fileURLToPath)(a.value)
};
}
i(Rge, "resolveStandardizedNameForImport");
function z_(e, t, r, n) {
if (!H_.supportsESM || !n)
return K_(e, t, r);
try {
let s = Rge(e, t, r);
if (!(0, Y_().existsSync)(s.filepath))
throw Object.assign(new Error(`Could not resolve "${t}" in file ${r}.`), {
type: "MODULE_NOT_FOUND"
});
return s;
} catch (s) {
try {
return K_(e, t, r);
} catch (a) {
throw s.type === "MODULE_NOT_FOUND" ? s : a.type === "MODULE_NOT_FOUND" ? a : s;
}
}
}
i(z_, "resolveStandardizedName");
Bp = /* @__PURE__ */ new Set();
var Bp;
function* Q_(e, t, r) {
if (!(yield* (0, d1.isAsync)()) && Bp.has(r))
throw new Error(`Reentrant ${e} detected trying to load "${r}". This module is not ignored and is trying to load itself while compilin\
g itself, leading to a dependency cycle. We recommend adding it to your "ignore" list in your babelrc, or to a .babelignore.`);
try {
return Bp.add(r), yield* (0, H_.default)(r, t, `You appear to be using a native ECMAScript module ${e}, which is only supported when r\
unning Babel asynchronously or when using the Node.js \`--experimental-require-module\` flag.`, `You appear to be using a ${e} that contains\
top-level await, which is only supported when running Babel asynchronously.`, !0);
} catch (n) {
throw n.message = `[BABEL]: ${n.message} (While processing: ${r})`, n;
} finally {
Bp.delete(r);
}
}
i(Q_, "requireModule");
});
// ../node_modules/@babel/core/lib/config/files/index.js
var ko = P((Cr) => {
"use strict";
Object.defineProperty(Cr, "__esModule", {
value: !0
});
Object.defineProperty(Cr, "ROOT_CONFIG_FILENAMES", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Ea.ROOT_CONFIG_FILENAMES;
}, "get")
});
Object.defineProperty(Cr, "findConfigUpwards", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Ea.findConfigUpwards;
}, "get")
});
Object.defineProperty(Cr, "findPackageData", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return qge.findPackageData;
}, "get")
});
Object.defineProperty(Cr, "findRelativeConfig", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Ea.findRelativeConfig;
}, "get")
});
Object.defineProperty(Cr, "findRootConfig", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Ea.findRootConfig;
}, "get")
});
Object.defineProperty(Cr, "loadConfig", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Ea.loadConfig;
}, "get")
});
Object.defineProperty(Cr, "loadPlugin", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return kp.loadPlugin;
}, "get")
});
Object.defineProperty(Cr, "loadPreset", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return kp.loadPreset;
}, "get")
});
Object.defineProperty(Cr, "resolvePlugin", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return kp.resolvePlugin;
}, "get")
});
Object.defineProperty(Cr, "resolvePreset", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return kp.resolvePreset;
}, "get")
});
Object.defineProperty(Cr, "resolveShowConfigPath", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Ea.resolveShowConfigPath;
}, "get")
});
var qge = fC(), Ea = E_(), kp = Z_();
});
// ../node_modules/@babel/core/lib/transform.js
var tO = P((Ta) => {
"use strict";
Object.defineProperty(Ta, "__esModule", {
value: !0
});
Ta.transform = void 0;
Ta.transformAsync = Wge;
Ta.transformSync = $ge;
function eO() {
let e = xr();
return eO = /* @__PURE__ */ i(function() {
return e;
}, "_gensync"), e;
}
i(eO, "_gensync");
var Uge = ua(), Vge = sp(), Fp = jn(), jp = eO()(/* @__PURE__ */ i(function* (t, r) {
let n = yield* (0, Uge.default)(r);
return n === null ? null : yield* (0, Vge.run)(n, t);
}, "transform")), Awe = Ta.transform = /* @__PURE__ */ i(function(t, r, n) {
let s, a;
if (typeof r == "function" ? (a = r, s = void 0) : (s = r, a = n), a === void 0)
return (0, Fp.beginHiddenCallStack)(jp.sync)(t, s);
(0, Fp.beginHiddenCallStack)(jp.errback)(t, s, a);
}, "transform");
function $ge(...e) {
return (0, Fp.beginHiddenCallStack)(jp.sync)(...e);
}
i($ge, "transformSync");
function Wge(...e) {
return (0, Fp.beginHiddenCallStack)(jp.async)(...e);
}
i(Wge, "transformAsync");
});
// ../node_modules/@babel/core/lib/transform-ast.js
var nO = P((Sa) => {
"use strict";
Object.defineProperty(Sa, "__esModule", {
value: !0
});
Sa.transformFromAst = void 0;
Sa.transformFromAstAsync = Yge;
Sa.transformFromAstSync = Hge;
function rO() {
let e = xr();
return rO = /* @__PURE__ */ i(function() {
return e;
}, "_gensync"), e;
}
i(rO, "_gensync");
var Kge = ua(), Gge = sp(), Lp = jn(), Mp = rO()(function* (e, t, r) {
let n = yield* (0, Kge.default)(r);
if (n === null) return null;
if (!e) throw new Error("No AST given");
return yield* (0, Gge.run)(n, t, e);
}), wwe = Sa.transformFromAst = /* @__PURE__ */ i(function(t, r, n, s) {
let a, o;
if (typeof n == "function" ? (o = n, a = void 0) : (a = n, o = s), o === void 0)
return (0, Lp.beginHiddenCallStack)(Mp.sync)(t, r, a);
(0, Lp.beginHiddenCallStack)(Mp.errback)(t, r, a, o);
}, "transformFromAst");
function Hge(...e) {
return (0, Lp.beginHiddenCallStack)(Mp.sync)(...e);
}
i(Hge, "transformFromAstSync");
function Yge(...e) {
return (0, Lp.beginHiddenCallStack)(Mp.async)(...e);
}
i(Yge, "transformFromAstAsync");
});
// ../node_modules/@babel/core/lib/parse.js
var iO = P((xa) => {
"use strict";
Object.defineProperty(xa, "__esModule", {
value: !0
});
xa.parse = void 0;
xa.parseAsync = Zge;
xa.parseSync = Qge;
function sO() {
let e = xr();
return sO = /* @__PURE__ */ i(function() {
return e;
}, "_gensync"), e;
}
i(sO, "_gensync");
var Jge = ua(), Xge = Bg(), zge = wg(), Rp = jn(), qp = sO()(/* @__PURE__ */ i(function* (t, r) {
let n = yield* (0, Jge.default)(r);
return n === null ? null : yield* (0, Xge.default)(n.passes, (0, zge.default)(n), t);
}, "parse")), Owe = xa.parse = /* @__PURE__ */ i(function(t, r, n) {
if (typeof r == "function" && (n = r, r = void 0), n === void 0)
return (0, Rp.beginHiddenCallStack)(qp.sync)(t, r);
(0, Rp.beginHiddenCallStack)(qp.errback)(t, r, n);
}, "parse");
function Qge(...e) {
return (0, Rp.beginHiddenCallStack)(qp.sync)(...e);
}
i(Qge, "parseSync");
function Zge(...e) {
return (0, Rp.beginHiddenCallStack)(qp.async)(...e);
}
i(Zge, "parseAsync");
});
// ../node_modules/@babel/core/lib/index.js
var Pt = P((Le) => {
"use strict";
Object.defineProperty(Le, "__esModule", {
value: !0
});
Le.DEFAULT_EXTENSIONS = void 0;
Object.defineProperty(Le, "File", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return ebe.default;
}, "get")
});
Object.defineProperty(Le, "buildExternalHelpers", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return tbe.default;
}, "get")
});
Object.defineProperty(Le, "createConfigItem", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Tn.createConfigItem;
}, "get")
});
Object.defineProperty(Le, "createConfigItemAsync", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Tn.createConfigItemAsync;
}, "get")
});
Object.defineProperty(Le, "createConfigItemSync", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Tn.createConfigItemSync;
}, "get")
});
Object.defineProperty(Le, "getEnv", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return rbe.getEnv;
}, "get")
});
Object.defineProperty(Le, "loadOptions", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Tn.loadOptions;
}, "get")
});
Object.defineProperty(Le, "loadOptionsAsync", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Tn.loadOptionsAsync;
}, "get")
});
Object.defineProperty(Le, "loadOptionsSync", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Tn.loadOptionsSync;
}, "get")
});
Object.defineProperty(Le, "loadPartialConfig", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Tn.loadPartialConfig;
}, "get")
});
Object.defineProperty(Le, "loadPartialConfigAsync", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Tn.loadPartialConfigAsync;
}, "get")
});
Object.defineProperty(Le, "loadPartialConfigSync", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return Tn.loadPartialConfigSync;
}, "get")
});
Object.defineProperty(Le, "parse", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return g1.parse;
}, "get")
});
Object.defineProperty(Le, "parseAsync", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return g1.parseAsync;
}, "get")
});
Object.defineProperty(Le, "parseSync", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return g1.parseSync;
}, "get")
});
Le.resolvePreset = Le.resolvePlugin = void 0;
Object.defineProperty(Le, "template", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return cO().default;
}, "get")
});
Object.defineProperty(Le, "tokTypes", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return lO().tokTypes;
}, "get")
});
Object.defineProperty(Le, "transform", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return h1.transform;
}, "get")
});
Object.defineProperty(Le, "transformAsync", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return h1.transformAsync;
}, "get")
});
Object.defineProperty(Le, "transformFile", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return m1.transformFile;
}, "get")
});
Object.defineProperty(Le, "transformFileAsync", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return m1.transformFileAsync;
}, "get")
});
Object.defineProperty(Le, "transformFileSync", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return m1.transformFileSync;
}, "get")
});
Object.defineProperty(Le, "transformFromAst", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return y1.transformFromAst;
}, "get")
});
Object.defineProperty(Le, "transformFromAstAsync", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return y1.transformFromAstAsync;
}, "get")
});
Object.defineProperty(Le, "transformFromAstSync", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return y1.transformFromAstSync;
}, "get")
});
Object.defineProperty(Le, "transformSync", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return h1.transformSync;
}, "get")
});
Object.defineProperty(Le, "traverse", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return uO().default;
}, "get")
});
Le.version = Le.types = void 0;
var ebe = Ly(), tbe = RA(), aO = ko(), rbe = yg();
function oO() {
let e = De();
return oO = /* @__PURE__ */ i(function() {
return e;
}, "_types"), e;
}
i(oO, "_types");
Object.defineProperty(Le, "types", {
enumerable: !0,
get: /* @__PURE__ */ i(function() {
return oO();
}, "get")
});
function lO() {
let e = Rs();
return lO = /* @__PURE__ */ i(function() {
return e;
}, "_parser"), e;
}
i(lO, "_parser");
function uO() {
let e = Ot();
return uO = /* @__PURE__ */ i(function() {
return e;
}, "_traverse"), e;
}
i(uO, "_traverse");
function cO() {
let e = Za();
return cO = /* @__PURE__ */ i(function() {
return e;
}, "_template"), e;
}
i(cO, "_template");
var Tn = ua(), h1 = tO(), m1 = Xg(), y1 = nO(), g1 = iO(), kwe = Le.version = "7.26.10", nbe = /* @__PURE__ */ i((e, t) => aO.resolvePlugin(
e, t, !1).filepath, "resolvePlugin");
Le.resolvePlugin = nbe;
var sbe = /* @__PURE__ */ i((e, t) => aO.resolvePreset(e, t, !1).filepath, "resolvePreset");
Le.resolvePreset = sbe;
var Fwe = Le.DEFAULT_EXTENSIONS = Object.freeze([".js", ".jsx", ".es6", ".es", ".mjs", ".cjs"]);
Le.OptionManager = class {
static {
i(this, "OptionManager");
}
init(t) {
return (0, Tn.loadOptionsSync)(t);
}
}, Le.Plugin = /* @__PURE__ */ i(function(t) {
throw new Error(`The (${t}) Babel 5 plugin is being run with an unsupported Babel version.`);
}, "Plugin");
});
// src/babel/index.ts
var abe = zn(Pt(), 1), Wwe = zn(Pt(), 1), fO = zn(Pt(), 1), b1 = zn(oo(), 1), Kwe = zn(Rs(), 1), E1 = zn(Ot(), 1), Gwe = zn(De(), 1);
import * as Hwe from "recast";
// src/babel/babelParse.ts
var Up = zn(Rs(), 1);
import * as Vp from "recast";
function ibe(e, t) {
let s = /^\s*\/\/\s*@flow/.test(e) ? ["flow"] : ["typescript"], a = {
...t,
plugins: [...t.plugins ?? [], ...s]
};
return Up.parse(e, a);
}
i(ibe, "parseWithFlowOrTypescript");
var pO = {
sourceType: "module",
// FIXME: we should get this from the project config somehow?
plugins: ["jsx", "decorators-legacy", "classProperties"],
tokens: !0
}, Rwe = /* @__PURE__ */ i((e) => Vp.parse(e, {
parser: {
parse(t) {
return ibe(t, pO);
}
}
}), "babelParse"), qwe = /* @__PURE__ */ i((e) => Vp.print(e, {
quote: "single",
trailingComma: !0,
tabWidth: 2,
wrapColumn: 80,
arrowParensAlways: !0
}).code, "babelPrint"), Uwe = /* @__PURE__ */ i((e) => Up.parseExpression(e, pO), "babelParseExpression");
// src/babel/index.ts
var Ywe = E1.default.default || E1.default, Jwe = b1.default.default || b1.default, Xwe = fO.File;
var export_transformSync = abe.transformSync;
export {
Xwe as BabelFileClass,
Rwe as babelParse,
Uwe as babelParseExpression,
qwe as babelPrint,
Wwe as core,
Jwe as generate,
Kwe as parser,
pO as parserOptions,
Hwe as recast,
export_transformSync as transformSync,
Ywe as traverse,
Gwe as types
};