@storybook/nextjs-vite 10.0.7 → 10.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,3158 @@
1
+ import CJS_COMPAT_NODE_URL_fqgy4lzl854 from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_fqgy4lzl854 from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_fqgy4lzl854 from "node:module";
4
+
5
+ var __filename = CJS_COMPAT_NODE_URL_fqgy4lzl854.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_fqgy4lzl854.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_fqgy4lzl854.createRequire(import.meta.url);
8
+
9
+ // ------------------------------------------------------------
10
+ // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
+ // ------------------------------------------------------------
12
+ import {
13
+ __commonJS,
14
+ __esm,
15
+ __name,
16
+ __require,
17
+ __toESM
18
+ } from "./chunk-XEYEIKVO.js";
19
+
20
+ // ../../node_modules/jiti/dist/jiti.cjs
21
+ var require_jiti = __commonJS({
22
+ "../../node_modules/jiti/dist/jiti.cjs"(exports, module) {
23
+ (() => {
24
+ var e = { "./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive": /* @__PURE__ */ __name(function(e2) {
25
+ function webpackEmptyAsyncContext(e3) {
26
+ return Promise.resolve().then(function() {
27
+ var t2 = new Error("Cannot find module '" + e3 + "'");
28
+ throw t2.code = "MODULE_NOT_FOUND", t2;
29
+ });
30
+ }
31
+ __name(webpackEmptyAsyncContext, "webpackEmptyAsyncContext");
32
+ webpackEmptyAsyncContext.keys = () => [], webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext, webpackEmptyAsyncContext.id = "./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive", e2.exports = webpackEmptyAsyncContext;
33
+ }, "./node_modules/.pnpm/mlly@1.8.0/node_modules/mlly/dist lazy recursive") }, t = {};
34
+ function __webpack_require__(i2) {
35
+ var s = t[i2];
36
+ if (void 0 !== s) return s.exports;
37
+ var r = t[i2] = { exports: {} };
38
+ return e[i2](r, r.exports, __webpack_require__), r.exports;
39
+ }
40
+ __name(__webpack_require__, "__webpack_require__");
41
+ __webpack_require__.n = (e2) => {
42
+ var t2 = e2 && e2.__esModule ? () => e2.default : () => e2;
43
+ return __webpack_require__.d(t2, { a: t2 }), t2;
44
+ }, __webpack_require__.d = (e2, t2) => {
45
+ for (var i2 in t2) __webpack_require__.o(t2, i2) && !__webpack_require__.o(e2, i2) && Object.defineProperty(e2, i2, { enumerable: true, get: t2[i2] });
46
+ }, __webpack_require__.o = (e2, t2) => Object.prototype.hasOwnProperty.call(e2, t2);
47
+ var i = {};
48
+ (() => {
49
+ "use strict";
50
+ __webpack_require__.d(i, { default: /* @__PURE__ */ __name(() => createJiti2, "default") });
51
+ const e2 = __require("node:os");
52
+ var t2 = [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], s = [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], r = "\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", n = { 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", 5: "class enum extends super const export import", 6: "enum", strict: "implements interface let package private protected public static yield", strictBind: "eval arguments" }, a = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", o = { 5: a, "5module": a + " export import", 6: a + " const class extends export import super" }, h = /^in(stanceof)?$/, c = new RegExp("[" + r + "]"), p = new RegExp("[" + r + "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\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]");
53
+ function isInAstralSet(e3, t3) {
54
+ for (var i2 = 65536, s2 = 0; s2 < t3.length; s2 += 2) {
55
+ if ((i2 += t3[s2]) > e3) return false;
56
+ if ((i2 += t3[s2 + 1]) >= e3) return true;
57
+ }
58
+ return false;
59
+ }
60
+ __name(isInAstralSet, "isInAstralSet");
61
+ function isIdentifierStart(e3, t3) {
62
+ return e3 < 65 ? 36 === e3 : e3 < 91 || (e3 < 97 ? 95 === e3 : e3 < 123 || (e3 <= 65535 ? e3 >= 170 && c.test(String.fromCharCode(e3)) : false !== t3 && isInAstralSet(e3, s)));
63
+ }
64
+ __name(isIdentifierStart, "isIdentifierStart");
65
+ function isIdentifierChar(e3, i2) {
66
+ return e3 < 48 ? 36 === e3 : e3 < 58 || !(e3 < 65) && (e3 < 91 || (e3 < 97 ? 95 === e3 : e3 < 123 || (e3 <= 65535 ? e3 >= 170 && p.test(String.fromCharCode(e3)) : false !== i2 && (isInAstralSet(e3, s) || isInAstralSet(e3, t2)))));
67
+ }
68
+ __name(isIdentifierChar, "isIdentifierChar");
69
+ var acorn_TokenType = /* @__PURE__ */ __name(function(e3, t3) {
70
+ void 0 === t3 && (t3 = {}), this.label = e3, this.keyword = t3.keyword, this.beforeExpr = !!t3.beforeExpr, this.startsExpr = !!t3.startsExpr, this.isLoop = !!t3.isLoop, this.isAssign = !!t3.isAssign, this.prefix = !!t3.prefix, this.postfix = !!t3.postfix, this.binop = t3.binop || null, this.updateContext = null;
71
+ }, "acorn_TokenType");
72
+ function binop(e3, t3) {
73
+ return new acorn_TokenType(e3, { beforeExpr: true, binop: t3 });
74
+ }
75
+ __name(binop, "binop");
76
+ var l = { beforeExpr: true }, u = { startsExpr: true }, d = {};
77
+ function kw(e3, t3) {
78
+ return void 0 === t3 && (t3 = {}), t3.keyword = e3, d[e3] = new acorn_TokenType(e3, t3);
79
+ }
80
+ __name(kw, "kw");
81
+ var f = { num: new acorn_TokenType("num", u), regexp: new acorn_TokenType("regexp", u), string: new acorn_TokenType("string", u), name: new acorn_TokenType("name", u), privateId: new acorn_TokenType("privateId", u), eof: new acorn_TokenType("eof"), bracketL: new acorn_TokenType("[", { beforeExpr: true, startsExpr: true }), bracketR: new acorn_TokenType("]"), braceL: new acorn_TokenType("{", { beforeExpr: true, startsExpr: true }), braceR: new acorn_TokenType("}"), parenL: new acorn_TokenType("(", { beforeExpr: true, startsExpr: true }), parenR: new acorn_TokenType(")"), comma: new acorn_TokenType(",", l), semi: new acorn_TokenType(";", l), colon: new acorn_TokenType(":", l), dot: new acorn_TokenType("."), question: new acorn_TokenType("?", l), questionDot: new acorn_TokenType("?."), arrow: new acorn_TokenType("=>", l), template: new acorn_TokenType("template"), invalidTemplate: new acorn_TokenType("invalidTemplate"), ellipsis: new acorn_TokenType("...", l), backQuote: new acorn_TokenType("`", u), dollarBraceL: new acorn_TokenType("${", { beforeExpr: true, startsExpr: true }), eq: new acorn_TokenType("=", { beforeExpr: true, isAssign: true }), assign: new acorn_TokenType("_=", { beforeExpr: true, isAssign: true }), incDec: new acorn_TokenType("++/--", { prefix: true, postfix: true, startsExpr: true }), prefix: new acorn_TokenType("!/~", { beforeExpr: true, prefix: true, startsExpr: true }), logicalOR: binop("||", 1), logicalAND: binop("&&", 2), bitwiseOR: binop("|", 3), bitwiseXOR: binop("^", 4), bitwiseAND: binop("&", 5), equality: binop("==/!=/===/!==", 6), relational: binop("</>/<=/>=", 7), bitShift: binop("<</>>/>>>", 8), plusMin: new acorn_TokenType("+/-", { beforeExpr: true, binop: 9, prefix: true, startsExpr: true }), modulo: binop("%", 10), star: binop("*", 10), slash: binop("/", 10), starstar: new acorn_TokenType("**", { beforeExpr: true }), coalesce: binop("??", 1), _break: kw("break"), _case: kw("case", l), _catch: kw("catch"), _continue: kw("continue"), _debugger: kw("debugger"), _default: kw("default", l), _do: kw("do", { isLoop: true, beforeExpr: true }), _else: kw("else", l), _finally: kw("finally"), _for: kw("for", { isLoop: true }), _function: kw("function", u), _if: kw("if"), _return: kw("return", l), _switch: kw("switch"), _throw: kw("throw", l), _try: kw("try"), _var: kw("var"), _const: kw("const"), _while: kw("while", { isLoop: true }), _with: kw("with"), _new: kw("new", { beforeExpr: true, startsExpr: true }), _this: kw("this", u), _super: kw("super", u), _class: kw("class", u), _extends: kw("extends", l), _export: kw("export"), _import: kw("import", u), _null: kw("null", u), _true: kw("true", u), _false: kw("false", u), _in: kw("in", { beforeExpr: true, binop: 7 }), _instanceof: kw("instanceof", { beforeExpr: true, binop: 7 }), _typeof: kw("typeof", { beforeExpr: true, prefix: true, startsExpr: true }), _void: kw("void", { beforeExpr: true, prefix: true, startsExpr: true }), _delete: kw("delete", { beforeExpr: true, prefix: true, startsExpr: true }) }, m = /\r\n?|\n|\u2028|\u2029/, g = new RegExp(m.source, "g");
82
+ function isNewLine(e3) {
83
+ return 10 === e3 || 13 === e3 || 8232 === e3 || 8233 === e3;
84
+ }
85
+ __name(isNewLine, "isNewLine");
86
+ function nextLineBreak(e3, t3, i2) {
87
+ void 0 === i2 && (i2 = e3.length);
88
+ for (var s2 = t3; s2 < i2; s2++) {
89
+ var r2 = e3.charCodeAt(s2);
90
+ if (isNewLine(r2)) return s2 < i2 - 1 && 13 === r2 && 10 === e3.charCodeAt(s2 + 1) ? s2 + 2 : s2 + 1;
91
+ }
92
+ return -1;
93
+ }
94
+ __name(nextLineBreak, "nextLineBreak");
95
+ var x = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, v = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, y = Object.prototype, _ = y.hasOwnProperty, E = y.toString, b = Object.hasOwn || function(e3, t3) {
96
+ return _.call(e3, t3);
97
+ }, S = Array.isArray || function(e3) {
98
+ return "[object Array]" === E.call(e3);
99
+ }, k = /* @__PURE__ */ Object.create(null);
100
+ function wordsRegexp(e3) {
101
+ return k[e3] || (k[e3] = new RegExp("^(?:" + e3.replace(/ /g, "|") + ")$"));
102
+ }
103
+ __name(wordsRegexp, "wordsRegexp");
104
+ function codePointToString(e3) {
105
+ return e3 <= 65535 ? String.fromCharCode(e3) : (e3 -= 65536, String.fromCharCode(55296 + (e3 >> 10), 56320 + (1023 & e3)));
106
+ }
107
+ __name(codePointToString, "codePointToString");
108
+ var w = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, acorn_Position = /* @__PURE__ */ __name(function(e3, t3) {
109
+ this.line = e3, this.column = t3;
110
+ }, "acorn_Position");
111
+ acorn_Position.prototype.offset = function(e3) {
112
+ return new acorn_Position(this.line, this.column + e3);
113
+ };
114
+ var acorn_SourceLocation = /* @__PURE__ */ __name(function(e3, t3, i2) {
115
+ this.start = t3, this.end = i2, null !== e3.sourceFile && (this.source = e3.sourceFile);
116
+ }, "acorn_SourceLocation");
117
+ function getLineInfo(e3, t3) {
118
+ for (var i2 = 1, s2 = 0; ; ) {
119
+ var r2 = nextLineBreak(e3, s2, t3);
120
+ if (r2 < 0) return new acorn_Position(i2, t3 - s2);
121
+ ++i2, s2 = r2;
122
+ }
123
+ }
124
+ __name(getLineInfo, "getLineInfo");
125
+ var I = { ecmaVersion: null, sourceType: "script", onInsertedSemicolon: null, onTrailingComma: null, allowReserved: null, allowReturnOutsideFunction: false, allowImportExportEverywhere: false, allowAwaitOutsideFunction: null, allowSuperOutsideMethod: null, allowHashBang: false, checkPrivateFields: true, locations: false, onToken: null, onComment: null, ranges: false, program: null, sourceFile: null, directSourceFile: null, preserveParens: false }, C = false;
126
+ function getOptions(e3) {
127
+ var t3 = {};
128
+ for (var i2 in I) t3[i2] = e3 && b(e3, i2) ? e3[i2] : I[i2];
129
+ if ("latest" === t3.ecmaVersion ? t3.ecmaVersion = 1e8 : null == t3.ecmaVersion ? (!C && "object" == typeof console && console.warn && (C = true, console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")), t3.ecmaVersion = 11) : t3.ecmaVersion >= 2015 && (t3.ecmaVersion -= 2009), null == t3.allowReserved && (t3.allowReserved = t3.ecmaVersion < 5), e3 && null != e3.allowHashBang || (t3.allowHashBang = t3.ecmaVersion >= 14), S(t3.onToken)) {
130
+ var s2 = t3.onToken;
131
+ t3.onToken = function(e4) {
132
+ return s2.push(e4);
133
+ };
134
+ }
135
+ return S(t3.onComment) && (t3.onComment = /* @__PURE__ */ function(e4, t4) {
136
+ return function(i3, s3, r2, n2, a2, o2) {
137
+ var h2 = { type: i3 ? "Block" : "Line", value: s3, start: r2, end: n2 };
138
+ e4.locations && (h2.loc = new acorn_SourceLocation(this, a2, o2)), e4.ranges && (h2.range = [r2, n2]), t4.push(h2);
139
+ };
140
+ }(t3, t3.onComment)), t3;
141
+ }
142
+ __name(getOptions, "getOptions");
143
+ var R = 256, P = 259;
144
+ function functionFlags(e3, t3) {
145
+ return 2 | (e3 ? 4 : 0) | (t3 ? 8 : 0);
146
+ }
147
+ __name(functionFlags, "functionFlags");
148
+ var acorn_Parser = /* @__PURE__ */ __name(function(e3, t3, i2) {
149
+ this.options = e3 = getOptions(e3), this.sourceFile = e3.sourceFile, this.keywords = wordsRegexp(o[e3.ecmaVersion >= 6 ? 6 : "module" === e3.sourceType ? "5module" : 5]);
150
+ var s2 = "";
151
+ true !== e3.allowReserved && (s2 = n[e3.ecmaVersion >= 6 ? 6 : 5 === e3.ecmaVersion ? 5 : 3], "module" === e3.sourceType && (s2 += " await")), this.reservedWords = wordsRegexp(s2);
152
+ var r2 = (s2 ? s2 + " " : "") + n.strict;
153
+ this.reservedWordsStrict = wordsRegexp(r2), this.reservedWordsStrictBind = wordsRegexp(r2 + " " + n.strictBind), this.input = String(t3), this.containsEsc = false, i2 ? (this.pos = i2, this.lineStart = this.input.lastIndexOf("\n", i2 - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(m).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = f.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = true, this.inModule = "module" === e3.sourceType, this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = false, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), 0 === this.pos && e3.allowHashBang && "#!" === this.input.slice(0, 2) && this.skipLineComment(2), this.scopeStack = [], this.enterScope(1), this.regexpState = null, this.privateNameStack = [];
154
+ }, "acorn_Parser"), T = { inFunction: { configurable: true }, inGenerator: { configurable: true }, inAsync: { configurable: true }, canAwait: { configurable: true }, allowSuper: { configurable: true }, allowDirectSuper: { configurable: true }, treatFunctionsAsVar: { configurable: true }, allowNewDotTarget: { configurable: true }, inClassStaticBlock: { configurable: true } };
155
+ acorn_Parser.prototype.parse = function() {
156
+ var e3 = this.options.program || this.startNode();
157
+ return this.nextToken(), this.parseTopLevel(e3);
158
+ }, T.inFunction.get = function() {
159
+ return (2 & this.currentVarScope().flags) > 0;
160
+ }, T.inGenerator.get = function() {
161
+ return (8 & this.currentVarScope().flags) > 0;
162
+ }, T.inAsync.get = function() {
163
+ return (4 & this.currentVarScope().flags) > 0;
164
+ }, T.canAwait.get = function() {
165
+ for (var e3 = this.scopeStack.length - 1; e3 >= 0; e3--) {
166
+ var t3 = this.scopeStack[e3].flags;
167
+ if (768 & t3) return false;
168
+ if (2 & t3) return (4 & t3) > 0;
169
+ }
170
+ return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
171
+ }, T.allowSuper.get = function() {
172
+ return (64 & this.currentThisScope().flags) > 0 || this.options.allowSuperOutsideMethod;
173
+ }, T.allowDirectSuper.get = function() {
174
+ return (128 & this.currentThisScope().flags) > 0;
175
+ }, T.treatFunctionsAsVar.get = function() {
176
+ return this.treatFunctionsAsVarInScope(this.currentScope());
177
+ }, T.allowNewDotTarget.get = function() {
178
+ for (var e3 = this.scopeStack.length - 1; e3 >= 0; e3--) {
179
+ var t3 = this.scopeStack[e3].flags;
180
+ if (768 & t3 || 2 & t3 && !(16 & t3)) return true;
181
+ }
182
+ return false;
183
+ }, T.inClassStaticBlock.get = function() {
184
+ return (this.currentVarScope().flags & R) > 0;
185
+ }, acorn_Parser.extend = function() {
186
+ for (var e3 = [], t3 = arguments.length; t3--; ) e3[t3] = arguments[t3];
187
+ for (var i2 = this, s2 = 0; s2 < e3.length; s2++) i2 = e3[s2](i2);
188
+ return i2;
189
+ }, acorn_Parser.parse = function(e3, t3) {
190
+ return new this(t3, e3).parse();
191
+ }, acorn_Parser.parseExpressionAt = function(e3, t3, i2) {
192
+ var s2 = new this(i2, e3, t3);
193
+ return s2.nextToken(), s2.parseExpression();
194
+ }, acorn_Parser.tokenizer = function(e3, t3) {
195
+ return new this(t3, e3);
196
+ }, Object.defineProperties(acorn_Parser.prototype, T);
197
+ var A = acorn_Parser.prototype, N = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
198
+ A.strictDirective = function(e3) {
199
+ if (this.options.ecmaVersion < 5) return false;
200
+ for (; ; ) {
201
+ v.lastIndex = e3, e3 += v.exec(this.input)[0].length;
202
+ var t3 = N.exec(this.input.slice(e3));
203
+ if (!t3) return false;
204
+ if ("use strict" === (t3[1] || t3[2])) {
205
+ v.lastIndex = e3 + t3[0].length;
206
+ var i2 = v.exec(this.input), s2 = i2.index + i2[0].length, r2 = this.input.charAt(s2);
207
+ return ";" === r2 || "}" === r2 || m.test(i2[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r2) || "!" === r2 && "=" === this.input.charAt(s2 + 1));
208
+ }
209
+ e3 += t3[0].length, v.lastIndex = e3, e3 += v.exec(this.input)[0].length, ";" === this.input[e3] && e3++;
210
+ }
211
+ }, A.eat = function(e3) {
212
+ return this.type === e3 && (this.next(), true);
213
+ }, A.isContextual = function(e3) {
214
+ return this.type === f.name && this.value === e3 && !this.containsEsc;
215
+ }, A.eatContextual = function(e3) {
216
+ return !!this.isContextual(e3) && (this.next(), true);
217
+ }, A.expectContextual = function(e3) {
218
+ this.eatContextual(e3) || this.unexpected();
219
+ }, A.canInsertSemicolon = function() {
220
+ return this.type === f.eof || this.type === f.braceR || m.test(this.input.slice(this.lastTokEnd, this.start));
221
+ }, A.insertSemicolon = function() {
222
+ if (this.canInsertSemicolon()) return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), true;
223
+ }, A.semicolon = function() {
224
+ this.eat(f.semi) || this.insertSemicolon() || this.unexpected();
225
+ }, A.afterTrailingComma = function(e3, t3) {
226
+ if (this.type === e3) return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), t3 || this.next(), true;
227
+ }, A.expect = function(e3) {
228
+ this.eat(e3) || this.unexpected();
229
+ }, A.unexpected = function(e3) {
230
+ this.raise(null != e3 ? e3 : this.start, "Unexpected token");
231
+ };
232
+ var acorn_DestructuringErrors = /* @__PURE__ */ __name(function() {
233
+ this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
234
+ }, "acorn_DestructuringErrors");
235
+ A.checkPatternErrors = function(e3, t3) {
236
+ if (e3) {
237
+ e3.trailingComma > -1 && this.raiseRecoverable(e3.trailingComma, "Comma is not permitted after the rest element");
238
+ var i2 = t3 ? e3.parenthesizedAssign : e3.parenthesizedBind;
239
+ i2 > -1 && this.raiseRecoverable(i2, t3 ? "Assigning to rvalue" : "Parenthesized pattern");
240
+ }
241
+ }, A.checkExpressionErrors = function(e3, t3) {
242
+ if (!e3) return false;
243
+ var i2 = e3.shorthandAssign, s2 = e3.doubleProto;
244
+ if (!t3) return i2 >= 0 || s2 >= 0;
245
+ i2 >= 0 && this.raise(i2, "Shorthand property assignments are valid only in destructuring patterns"), s2 >= 0 && this.raiseRecoverable(s2, "Redefinition of __proto__ property");
246
+ }, A.checkYieldAwaitInDefaultParams = function() {
247
+ this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos) && this.raise(this.yieldPos, "Yield expression cannot be a default value"), this.awaitPos && this.raise(this.awaitPos, "Await expression cannot be a default value");
248
+ }, A.isSimpleAssignTarget = function(e3) {
249
+ return "ParenthesizedExpression" === e3.type ? this.isSimpleAssignTarget(e3.expression) : "Identifier" === e3.type || "MemberExpression" === e3.type;
250
+ };
251
+ var L = acorn_Parser.prototype;
252
+ L.parseTopLevel = function(e3) {
253
+ var t3 = /* @__PURE__ */ Object.create(null);
254
+ for (e3.body || (e3.body = []); this.type !== f.eof; ) {
255
+ var i2 = this.parseStatement(null, true, t3);
256
+ e3.body.push(i2);
257
+ }
258
+ if (this.inModule) for (var s2 = 0, r2 = Object.keys(this.undefinedExports); s2 < r2.length; s2 += 1) {
259
+ var n2 = r2[s2];
260
+ this.raiseRecoverable(this.undefinedExports[n2].start, "Export '" + n2 + "' is not defined");
261
+ }
262
+ return this.adaptDirectivePrologue(e3.body), this.next(), e3.sourceType = this.options.sourceType, this.finishNode(e3, "Program");
263
+ };
264
+ var O = { kind: "loop" }, D = { kind: "switch" };
265
+ L.isLet = function(e3) {
266
+ if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return false;
267
+ v.lastIndex = this.pos;
268
+ var t3 = v.exec(this.input), i2 = this.pos + t3[0].length, s2 = this.input.charCodeAt(i2);
269
+ if (91 === s2 || 92 === s2) return true;
270
+ if (e3) return false;
271
+ if (123 === s2 || s2 > 55295 && s2 < 56320) return true;
272
+ if (isIdentifierStart(s2, true)) {
273
+ for (var r2 = i2 + 1; isIdentifierChar(s2 = this.input.charCodeAt(r2), true); ) ++r2;
274
+ if (92 === s2 || s2 > 55295 && s2 < 56320) return true;
275
+ var n2 = this.input.slice(i2, r2);
276
+ if (!h.test(n2)) return true;
277
+ }
278
+ return false;
279
+ }, L.isAsyncFunction = function() {
280
+ if (this.options.ecmaVersion < 8 || !this.isContextual("async")) return false;
281
+ v.lastIndex = this.pos;
282
+ var e3, t3 = v.exec(this.input), i2 = this.pos + t3[0].length;
283
+ return !(m.test(this.input.slice(this.pos, i2)) || "function" !== this.input.slice(i2, i2 + 8) || i2 + 8 !== this.input.length && (isIdentifierChar(e3 = this.input.charCodeAt(i2 + 8)) || e3 > 55295 && e3 < 56320));
284
+ }, L.isUsingKeyword = function(e3, t3) {
285
+ if (this.options.ecmaVersion < 17 || !this.isContextual(e3 ? "await" : "using")) return false;
286
+ v.lastIndex = this.pos;
287
+ var i2 = v.exec(this.input), s2 = this.pos + i2[0].length;
288
+ if (m.test(this.input.slice(this.pos, s2))) return false;
289
+ if (e3) {
290
+ var r2, n2 = s2 + 5;
291
+ if ("using" !== this.input.slice(s2, n2) || n2 === this.input.length || isIdentifierChar(r2 = this.input.charCodeAt(n2)) || r2 > 55295 && r2 < 56320) return false;
292
+ v.lastIndex = n2;
293
+ var a2 = v.exec(this.input);
294
+ if (a2 && m.test(this.input.slice(n2, n2 + a2[0].length))) return false;
295
+ }
296
+ if (t3) {
297
+ var o2, h2 = s2 + 2;
298
+ if (!("of" !== this.input.slice(s2, h2) || h2 !== this.input.length && (isIdentifierChar(o2 = this.input.charCodeAt(h2)) || o2 > 55295 && o2 < 56320))) return false;
299
+ }
300
+ var c2 = this.input.charCodeAt(s2);
301
+ return isIdentifierStart(c2, true) || 92 === c2;
302
+ }, L.isAwaitUsing = function(e3) {
303
+ return this.isUsingKeyword(true, e3);
304
+ }, L.isUsing = function(e3) {
305
+ return this.isUsingKeyword(false, e3);
306
+ }, L.parseStatement = function(e3, t3, i2) {
307
+ var s2, r2 = this.type, n2 = this.startNode();
308
+ switch (this.isLet(e3) && (r2 = f._var, s2 = "let"), r2) {
309
+ case f._break:
310
+ case f._continue:
311
+ return this.parseBreakContinueStatement(n2, r2.keyword);
312
+ case f._debugger:
313
+ return this.parseDebuggerStatement(n2);
314
+ case f._do:
315
+ return this.parseDoStatement(n2);
316
+ case f._for:
317
+ return this.parseForStatement(n2);
318
+ case f._function:
319
+ return e3 && (this.strict || "if" !== e3 && "label" !== e3) && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(n2, false, !e3);
320
+ case f._class:
321
+ return e3 && this.unexpected(), this.parseClass(n2, true);
322
+ case f._if:
323
+ return this.parseIfStatement(n2);
324
+ case f._return:
325
+ return this.parseReturnStatement(n2);
326
+ case f._switch:
327
+ return this.parseSwitchStatement(n2);
328
+ case f._throw:
329
+ return this.parseThrowStatement(n2);
330
+ case f._try:
331
+ return this.parseTryStatement(n2);
332
+ case f._const:
333
+ case f._var:
334
+ return s2 = s2 || this.value, e3 && "var" !== s2 && this.unexpected(), this.parseVarStatement(n2, s2);
335
+ case f._while:
336
+ return this.parseWhileStatement(n2);
337
+ case f._with:
338
+ return this.parseWithStatement(n2);
339
+ case f.braceL:
340
+ return this.parseBlock(true, n2);
341
+ case f.semi:
342
+ return this.parseEmptyStatement(n2);
343
+ case f._export:
344
+ case f._import:
345
+ if (this.options.ecmaVersion > 10 && r2 === f._import) {
346
+ v.lastIndex = this.pos;
347
+ var a2 = v.exec(this.input), o2 = this.pos + a2[0].length, h2 = this.input.charCodeAt(o2);
348
+ if (40 === h2 || 46 === h2) return this.parseExpressionStatement(n2, this.parseExpression());
349
+ }
350
+ return this.options.allowImportExportEverywhere || (t3 || this.raise(this.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")), r2 === f._import ? this.parseImport(n2) : this.parseExport(n2, i2);
351
+ default:
352
+ if (this.isAsyncFunction()) return e3 && this.unexpected(), this.next(), this.parseFunctionStatement(n2, true, !e3);
353
+ var c2 = this.isAwaitUsing(false) ? "await using" : this.isUsing(false) ? "using" : null;
354
+ if (c2) return t3 && "script" === this.options.sourceType && this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`"), "await using" === c2 && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(n2, false, c2), this.semicolon(), this.finishNode(n2, "VariableDeclaration");
355
+ var p2 = this.value, l2 = this.parseExpression();
356
+ return r2 === f.name && "Identifier" === l2.type && this.eat(f.colon) ? this.parseLabeledStatement(n2, p2, l2, e3) : this.parseExpressionStatement(n2, l2);
357
+ }
358
+ }, L.parseBreakContinueStatement = function(e3, t3) {
359
+ var i2 = "break" === t3;
360
+ this.next(), this.eat(f.semi) || this.insertSemicolon() ? e3.label = null : this.type !== f.name ? this.unexpected() : (e3.label = this.parseIdent(), this.semicolon());
361
+ for (var s2 = 0; s2 < this.labels.length; ++s2) {
362
+ var r2 = this.labels[s2];
363
+ if (null == e3.label || r2.name === e3.label.name) {
364
+ if (null != r2.kind && (i2 || "loop" === r2.kind)) break;
365
+ if (e3.label && i2) break;
366
+ }
367
+ }
368
+ return s2 === this.labels.length && this.raise(e3.start, "Unsyntactic " + t3), this.finishNode(e3, i2 ? "BreakStatement" : "ContinueStatement");
369
+ }, L.parseDebuggerStatement = function(e3) {
370
+ return this.next(), this.semicolon(), this.finishNode(e3, "DebuggerStatement");
371
+ }, L.parseDoStatement = function(e3) {
372
+ return this.next(), this.labels.push(O), e3.body = this.parseStatement("do"), this.labels.pop(), this.expect(f._while), e3.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(f.semi) : this.semicolon(), this.finishNode(e3, "DoWhileStatement");
373
+ }, L.parseForStatement = function(e3) {
374
+ this.next();
375
+ var t3 = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
376
+ if (this.labels.push(O), this.enterScope(0), this.expect(f.parenL), this.type === f.semi) return t3 > -1 && this.unexpected(t3), this.parseFor(e3, null);
377
+ var i2 = this.isLet();
378
+ if (this.type === f._var || this.type === f._const || i2) {
379
+ var s2 = this.startNode(), r2 = i2 ? "let" : this.value;
380
+ return this.next(), this.parseVar(s2, true, r2), this.finishNode(s2, "VariableDeclaration"), this.parseForAfterInit(e3, s2, t3);
381
+ }
382
+ var n2 = this.isContextual("let"), a2 = false, o2 = this.isUsing(true) ? "using" : this.isAwaitUsing(true) ? "await using" : null;
383
+ if (o2) {
384
+ var h2 = this.startNode();
385
+ return this.next(), "await using" === o2 && this.next(), this.parseVar(h2, true, o2), this.finishNode(h2, "VariableDeclaration"), this.parseForAfterInit(e3, h2, t3);
386
+ }
387
+ var c2 = this.containsEsc, p2 = new acorn_DestructuringErrors(), l2 = this.start, u2 = t3 > -1 ? this.parseExprSubscripts(p2, "await") : this.parseExpression(true, p2);
388
+ return this.type === f._in || (a2 = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t3 > -1 ? (this.type === f._in && this.unexpected(t3), e3.await = true) : a2 && this.options.ecmaVersion >= 8 && (u2.start !== l2 || c2 || "Identifier" !== u2.type || "async" !== u2.name ? this.options.ecmaVersion >= 9 && (e3.await = false) : this.unexpected()), n2 && a2 && this.raise(u2.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(u2, false, p2), this.checkLValPattern(u2), this.parseForIn(e3, u2)) : (this.checkExpressionErrors(p2, true), t3 > -1 && this.unexpected(t3), this.parseFor(e3, u2));
389
+ }, L.parseForAfterInit = function(e3, t3, i2) {
390
+ return (this.type === f._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && 1 === t3.declarations.length ? (this.options.ecmaVersion >= 9 && (this.type === f._in ? i2 > -1 && this.unexpected(i2) : e3.await = i2 > -1), this.parseForIn(e3, t3)) : (i2 > -1 && this.unexpected(i2), this.parseFor(e3, t3));
391
+ }, L.parseFunctionStatement = function(e3, t3, i2) {
392
+ return this.next(), this.parseFunction(e3, U | (i2 ? 0 : M), false, t3);
393
+ }, L.parseIfStatement = function(e3) {
394
+ return this.next(), e3.test = this.parseParenExpression(), e3.consequent = this.parseStatement("if"), e3.alternate = this.eat(f._else) ? this.parseStatement("if") : null, this.finishNode(e3, "IfStatement");
395
+ }, L.parseReturnStatement = function(e3) {
396
+ return this.inFunction || this.options.allowReturnOutsideFunction || this.raise(this.start, "'return' outside of function"), this.next(), this.eat(f.semi) || this.insertSemicolon() ? e3.argument = null : (e3.argument = this.parseExpression(), this.semicolon()), this.finishNode(e3, "ReturnStatement");
397
+ }, L.parseSwitchStatement = function(e3) {
398
+ var t3;
399
+ this.next(), e3.discriminant = this.parseParenExpression(), e3.cases = [], this.expect(f.braceL), this.labels.push(D), this.enterScope(0);
400
+ for (var i2 = false; this.type !== f.braceR; ) if (this.type === f._case || this.type === f._default) {
401
+ var s2 = this.type === f._case;
402
+ t3 && this.finishNode(t3, "SwitchCase"), e3.cases.push(t3 = this.startNode()), t3.consequent = [], this.next(), s2 ? t3.test = this.parseExpression() : (i2 && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), i2 = true, t3.test = null), this.expect(f.colon);
403
+ } else t3 || this.unexpected(), t3.consequent.push(this.parseStatement(null));
404
+ return this.exitScope(), t3 && this.finishNode(t3, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e3, "SwitchStatement");
405
+ }, L.parseThrowStatement = function(e3) {
406
+ return this.next(), m.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e3.argument = this.parseExpression(), this.semicolon(), this.finishNode(e3, "ThrowStatement");
407
+ };
408
+ var V = [];
409
+ L.parseCatchClauseParam = function() {
410
+ var e3 = this.parseBindingAtom(), t3 = "Identifier" === e3.type;
411
+ return this.enterScope(t3 ? 32 : 0), this.checkLValPattern(e3, t3 ? 4 : 2), this.expect(f.parenR), e3;
412
+ }, L.parseTryStatement = function(e3) {
413
+ if (this.next(), e3.block = this.parseBlock(), e3.handler = null, this.type === f._catch) {
414
+ var t3 = this.startNode();
415
+ this.next(), this.eat(f.parenL) ? t3.param = this.parseCatchClauseParam() : (this.options.ecmaVersion < 10 && this.unexpected(), t3.param = null, this.enterScope(0)), t3.body = this.parseBlock(false), this.exitScope(), e3.handler = this.finishNode(t3, "CatchClause");
416
+ }
417
+ return e3.finalizer = this.eat(f._finally) ? this.parseBlock() : null, e3.handler || e3.finalizer || this.raise(e3.start, "Missing catch or finally clause"), this.finishNode(e3, "TryStatement");
418
+ }, L.parseVarStatement = function(e3, t3, i2) {
419
+ return this.next(), this.parseVar(e3, false, t3, i2), this.semicolon(), this.finishNode(e3, "VariableDeclaration");
420
+ }, L.parseWhileStatement = function(e3) {
421
+ return this.next(), e3.test = this.parseParenExpression(), this.labels.push(O), e3.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e3, "WhileStatement");
422
+ }, L.parseWithStatement = function(e3) {
423
+ return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), e3.object = this.parseParenExpression(), e3.body = this.parseStatement("with"), this.finishNode(e3, "WithStatement");
424
+ }, L.parseEmptyStatement = function(e3) {
425
+ return this.next(), this.finishNode(e3, "EmptyStatement");
426
+ }, L.parseLabeledStatement = function(e3, t3, i2, s2) {
427
+ for (var r2 = 0, n2 = this.labels; r2 < n2.length; r2 += 1) {
428
+ n2[r2].name === t3 && this.raise(i2.start, "Label '" + t3 + "' is already declared");
429
+ }
430
+ for (var a2 = this.type.isLoop ? "loop" : this.type === f._switch ? "switch" : null, o2 = this.labels.length - 1; o2 >= 0; o2--) {
431
+ var h2 = this.labels[o2];
432
+ if (h2.statementStart !== e3.start) break;
433
+ h2.statementStart = this.start, h2.kind = a2;
434
+ }
435
+ return this.labels.push({ name: t3, kind: a2, statementStart: this.start }), e3.body = this.parseStatement(s2 ? -1 === s2.indexOf("label") ? s2 + "label" : s2 : "label"), this.labels.pop(), e3.label = i2, this.finishNode(e3, "LabeledStatement");
436
+ }, L.parseExpressionStatement = function(e3, t3) {
437
+ return e3.expression = t3, this.semicolon(), this.finishNode(e3, "ExpressionStatement");
438
+ }, L.parseBlock = function(e3, t3, i2) {
439
+ for (void 0 === e3 && (e3 = true), void 0 === t3 && (t3 = this.startNode()), t3.body = [], this.expect(f.braceL), e3 && this.enterScope(0); this.type !== f.braceR; ) {
440
+ var s2 = this.parseStatement(null);
441
+ t3.body.push(s2);
442
+ }
443
+ return i2 && (this.strict = false), this.next(), e3 && this.exitScope(), this.finishNode(t3, "BlockStatement");
444
+ }, L.parseFor = function(e3, t3) {
445
+ return e3.init = t3, this.expect(f.semi), e3.test = this.type === f.semi ? null : this.parseExpression(), this.expect(f.semi), e3.update = this.type === f.parenR ? null : this.parseExpression(), this.expect(f.parenR), e3.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e3, "ForStatement");
446
+ }, L.parseForIn = function(e3, t3) {
447
+ var i2 = this.type === f._in;
448
+ return this.next(), "VariableDeclaration" === t3.type && null != t3.declarations[0].init && (!i2 || this.options.ecmaVersion < 8 || this.strict || "var" !== t3.kind || "Identifier" !== t3.declarations[0].id.type) && this.raise(t3.start, (i2 ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"), e3.left = t3, e3.right = i2 ? this.parseExpression() : this.parseMaybeAssign(), this.expect(f.parenR), e3.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e3, i2 ? "ForInStatement" : "ForOfStatement");
449
+ }, L.parseVar = function(e3, t3, i2, s2) {
450
+ for (e3.declarations = [], e3.kind = i2; ; ) {
451
+ var r2 = this.startNode();
452
+ if (this.parseVarId(r2, i2), this.eat(f.eq) ? r2.init = this.parseMaybeAssign(t3) : s2 || "const" !== i2 || this.type === f._in || this.options.ecmaVersion >= 6 && this.isContextual("of") ? s2 || "using" !== i2 && "await using" !== i2 || !(this.options.ecmaVersion >= 17) || this.type === f._in || this.isContextual("of") ? s2 || "Identifier" === r2.id.type || t3 && (this.type === f._in || this.isContextual("of")) ? r2.init = null : this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : this.raise(this.lastTokEnd, "Missing initializer in " + i2 + " declaration") : this.unexpected(), e3.declarations.push(this.finishNode(r2, "VariableDeclarator")), !this.eat(f.comma)) break;
453
+ }
454
+ return e3;
455
+ }, L.parseVarId = function(e3, t3) {
456
+ e3.id = "using" === t3 || "await using" === t3 ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e3.id, "var" === t3 ? 1 : 2, false);
457
+ };
458
+ var U = 1, M = 2;
459
+ function isPrivateNameConflicted(e3, t3) {
460
+ var i2 = t3.key.name, s2 = e3[i2], r2 = "true";
461
+ return "MethodDefinition" !== t3.type || "get" !== t3.kind && "set" !== t3.kind || (r2 = (t3.static ? "s" : "i") + t3.kind), "iget" === s2 && "iset" === r2 || "iset" === s2 && "iget" === r2 || "sget" === s2 && "sset" === r2 || "sset" === s2 && "sget" === r2 ? (e3[i2] = "true", false) : !!s2 || (e3[i2] = r2, false);
462
+ }
463
+ __name(isPrivateNameConflicted, "isPrivateNameConflicted");
464
+ function checkKeyName(e3, t3) {
465
+ var i2 = e3.computed, s2 = e3.key;
466
+ return !i2 && ("Identifier" === s2.type && s2.name === t3 || "Literal" === s2.type && s2.value === t3);
467
+ }
468
+ __name(checkKeyName, "checkKeyName");
469
+ L.parseFunction = function(e3, t3, i2, s2, r2) {
470
+ this.initFunction(e3), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s2) && (this.type === f.star && t3 & M && this.unexpected(), e3.generator = this.eat(f.star)), this.options.ecmaVersion >= 8 && (e3.async = !!s2), t3 & U && (e3.id = 4 & t3 && this.type !== f.name ? null : this.parseIdent(), !e3.id || t3 & M || this.checkLValSimple(e3.id, this.strict || e3.generator || e3.async ? this.treatFunctionsAsVar ? 1 : 2 : 3));
471
+ var n2 = this.yieldPos, a2 = this.awaitPos, o2 = this.awaitIdentPos;
472
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(functionFlags(e3.async, e3.generator)), t3 & U || (e3.id = this.type === f.name ? this.parseIdent() : null), this.parseFunctionParams(e3), this.parseFunctionBody(e3, i2, false, r2), this.yieldPos = n2, this.awaitPos = a2, this.awaitIdentPos = o2, this.finishNode(e3, t3 & U ? "FunctionDeclaration" : "FunctionExpression");
473
+ }, L.parseFunctionParams = function(e3) {
474
+ this.expect(f.parenL), e3.params = this.parseBindingList(f.parenR, false, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
475
+ }, L.parseClass = function(e3, t3) {
476
+ this.next();
477
+ var i2 = this.strict;
478
+ this.strict = true, this.parseClassId(e3, t3), this.parseClassSuper(e3);
479
+ var s2 = this.enterClassBody(), r2 = this.startNode(), n2 = false;
480
+ for (r2.body = [], this.expect(f.braceL); this.type !== f.braceR; ) {
481
+ var a2 = this.parseClassElement(null !== e3.superClass);
482
+ a2 && (r2.body.push(a2), "MethodDefinition" === a2.type && "constructor" === a2.kind ? (n2 && this.raiseRecoverable(a2.start, "Duplicate constructor in the same class"), n2 = true) : a2.key && "PrivateIdentifier" === a2.key.type && isPrivateNameConflicted(s2, a2) && this.raiseRecoverable(a2.key.start, "Identifier '#" + a2.key.name + "' has already been declared"));
483
+ }
484
+ return this.strict = i2, this.next(), e3.body = this.finishNode(r2, "ClassBody"), this.exitClassBody(), this.finishNode(e3, t3 ? "ClassDeclaration" : "ClassExpression");
485
+ }, L.parseClassElement = function(e3) {
486
+ if (this.eat(f.semi)) return null;
487
+ var t3 = this.options.ecmaVersion, i2 = this.startNode(), s2 = "", r2 = false, n2 = false, a2 = "method", o2 = false;
488
+ if (this.eatContextual("static")) {
489
+ if (t3 >= 13 && this.eat(f.braceL)) return this.parseClassStaticBlock(i2), i2;
490
+ this.isClassElementNameStart() || this.type === f.star ? o2 = true : s2 = "static";
491
+ }
492
+ if (i2.static = o2, !s2 && t3 >= 8 && this.eatContextual("async") && (!this.isClassElementNameStart() && this.type !== f.star || this.canInsertSemicolon() ? s2 = "async" : n2 = true), !s2 && (t3 >= 9 || !n2) && this.eat(f.star) && (r2 = true), !s2 && !n2 && !r2) {
493
+ var h2 = this.value;
494
+ (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? a2 = h2 : s2 = h2);
495
+ }
496
+ if (s2 ? (i2.computed = false, i2.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), i2.key.name = s2, this.finishNode(i2.key, "Identifier")) : this.parseClassElementName(i2), t3 < 13 || this.type === f.parenL || "method" !== a2 || r2 || n2) {
497
+ var c2 = !i2.static && checkKeyName(i2, "constructor"), p2 = c2 && e3;
498
+ c2 && "method" !== a2 && this.raise(i2.key.start, "Constructor can't have get/set modifier"), i2.kind = c2 ? "constructor" : a2, this.parseClassMethod(i2, r2, n2, p2);
499
+ } else this.parseClassField(i2);
500
+ return i2;
501
+ }, L.isClassElementNameStart = function() {
502
+ return this.type === f.name || this.type === f.privateId || this.type === f.num || this.type === f.string || this.type === f.bracketL || this.type.keyword;
503
+ }, L.parseClassElementName = function(e3) {
504
+ this.type === f.privateId ? ("constructor" === this.value && this.raise(this.start, "Classes can't have an element named '#constructor'"), e3.computed = false, e3.key = this.parsePrivateIdent()) : this.parsePropertyName(e3);
505
+ }, L.parseClassMethod = function(e3, t3, i2, s2) {
506
+ var r2 = e3.key;
507
+ "constructor" === e3.kind ? (t3 && this.raise(r2.start, "Constructor can't be a generator"), i2 && this.raise(r2.start, "Constructor can't be an async method")) : e3.static && checkKeyName(e3, "prototype") && this.raise(r2.start, "Classes may not have a static property named prototype");
508
+ var n2 = e3.value = this.parseMethod(t3, i2, s2);
509
+ return "get" === e3.kind && 0 !== n2.params.length && this.raiseRecoverable(n2.start, "getter should have no params"), "set" === e3.kind && 1 !== n2.params.length && this.raiseRecoverable(n2.start, "setter should have exactly one param"), "set" === e3.kind && "RestElement" === n2.params[0].type && this.raiseRecoverable(n2.params[0].start, "Setter cannot use rest params"), this.finishNode(e3, "MethodDefinition");
510
+ }, L.parseClassField = function(e3) {
511
+ return checkKeyName(e3, "constructor") ? this.raise(e3.key.start, "Classes can't have a field named 'constructor'") : e3.static && checkKeyName(e3, "prototype") && this.raise(e3.key.start, "Classes can't have a static field named 'prototype'"), this.eat(f.eq) ? (this.enterScope(576), e3.value = this.parseMaybeAssign(), this.exitScope()) : e3.value = null, this.semicolon(), this.finishNode(e3, "PropertyDefinition");
512
+ }, L.parseClassStaticBlock = function(e3) {
513
+ e3.body = [];
514
+ var t3 = this.labels;
515
+ for (this.labels = [], this.enterScope(320); this.type !== f.braceR; ) {
516
+ var i2 = this.parseStatement(null);
517
+ e3.body.push(i2);
518
+ }
519
+ return this.next(), this.exitScope(), this.labels = t3, this.finishNode(e3, "StaticBlock");
520
+ }, L.parseClassId = function(e3, t3) {
521
+ this.type === f.name ? (e3.id = this.parseIdent(), t3 && this.checkLValSimple(e3.id, 2, false)) : (true === t3 && this.unexpected(), e3.id = null);
522
+ }, L.parseClassSuper = function(e3) {
523
+ e3.superClass = this.eat(f._extends) ? this.parseExprSubscripts(null, false) : null;
524
+ }, L.enterClassBody = function() {
525
+ var e3 = { declared: /* @__PURE__ */ Object.create(null), used: [] };
526
+ return this.privateNameStack.push(e3), e3.declared;
527
+ }, L.exitClassBody = function() {
528
+ var e3 = this.privateNameStack.pop(), t3 = e3.declared, i2 = e3.used;
529
+ if (this.options.checkPrivateFields) for (var s2 = this.privateNameStack.length, r2 = 0 === s2 ? null : this.privateNameStack[s2 - 1], n2 = 0; n2 < i2.length; ++n2) {
530
+ var a2 = i2[n2];
531
+ b(t3, a2.name) || (r2 ? r2.used.push(a2) : this.raiseRecoverable(a2.start, "Private field '#" + a2.name + "' must be declared in an enclosing class"));
532
+ }
533
+ }, L.parseExportAllDeclaration = function(e3, t3) {
534
+ return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (e3.exported = this.parseModuleExportName(), this.checkExport(t3, e3.exported, this.lastTokStart)) : e3.exported = null), this.expectContextual("from"), this.type !== f.string && this.unexpected(), e3.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e3.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e3, "ExportAllDeclaration");
535
+ }, L.parseExport = function(e3, t3) {
536
+ if (this.next(), this.eat(f.star)) return this.parseExportAllDeclaration(e3, t3);
537
+ if (this.eat(f._default)) return this.checkExport(t3, "default", this.lastTokStart), e3.declaration = this.parseExportDefaultDeclaration(), this.finishNode(e3, "ExportDefaultDeclaration");
538
+ if (this.shouldParseExportStatement()) e3.declaration = this.parseExportDeclaration(e3), "VariableDeclaration" === e3.declaration.type ? this.checkVariableExport(t3, e3.declaration.declarations) : this.checkExport(t3, e3.declaration.id, e3.declaration.id.start), e3.specifiers = [], e3.source = null, this.options.ecmaVersion >= 16 && (e3.attributes = []);
539
+ else {
540
+ if (e3.declaration = null, e3.specifiers = this.parseExportSpecifiers(t3), this.eatContextual("from")) this.type !== f.string && this.unexpected(), e3.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e3.attributes = this.parseWithClause());
541
+ else {
542
+ for (var i2 = 0, s2 = e3.specifiers; i2 < s2.length; i2 += 1) {
543
+ var r2 = s2[i2];
544
+ this.checkUnreserved(r2.local), this.checkLocalExport(r2.local), "Literal" === r2.local.type && this.raise(r2.local.start, "A string literal cannot be used as an exported binding without `from`.");
545
+ }
546
+ e3.source = null, this.options.ecmaVersion >= 16 && (e3.attributes = []);
547
+ }
548
+ this.semicolon();
549
+ }
550
+ return this.finishNode(e3, "ExportNamedDeclaration");
551
+ }, L.parseExportDeclaration = function(e3) {
552
+ return this.parseStatement(null);
553
+ }, L.parseExportDefaultDeclaration = function() {
554
+ var e3;
555
+ if (this.type === f._function || (e3 = this.isAsyncFunction())) {
556
+ var t3 = this.startNode();
557
+ return this.next(), e3 && this.next(), this.parseFunction(t3, 4 | U, false, e3);
558
+ }
559
+ if (this.type === f._class) {
560
+ var i2 = this.startNode();
561
+ return this.parseClass(i2, "nullableID");
562
+ }
563
+ var s2 = this.parseMaybeAssign();
564
+ return this.semicolon(), s2;
565
+ }, L.checkExport = function(e3, t3, i2) {
566
+ e3 && ("string" != typeof t3 && (t3 = "Identifier" === t3.type ? t3.name : t3.value), b(e3, t3) && this.raiseRecoverable(i2, "Duplicate export '" + t3 + "'"), e3[t3] = true);
567
+ }, L.checkPatternExport = function(e3, t3) {
568
+ var i2 = t3.type;
569
+ if ("Identifier" === i2) this.checkExport(e3, t3, t3.start);
570
+ else if ("ObjectPattern" === i2) for (var s2 = 0, r2 = t3.properties; s2 < r2.length; s2 += 1) {
571
+ var n2 = r2[s2];
572
+ this.checkPatternExport(e3, n2);
573
+ }
574
+ else if ("ArrayPattern" === i2) for (var a2 = 0, o2 = t3.elements; a2 < o2.length; a2 += 1) {
575
+ var h2 = o2[a2];
576
+ h2 && this.checkPatternExport(e3, h2);
577
+ }
578
+ else "Property" === i2 ? this.checkPatternExport(e3, t3.value) : "AssignmentPattern" === i2 ? this.checkPatternExport(e3, t3.left) : "RestElement" === i2 && this.checkPatternExport(e3, t3.argument);
579
+ }, L.checkVariableExport = function(e3, t3) {
580
+ if (e3) for (var i2 = 0, s2 = t3; i2 < s2.length; i2 += 1) {
581
+ var r2 = s2[i2];
582
+ this.checkPatternExport(e3, r2.id);
583
+ }
584
+ }, L.shouldParseExportStatement = function() {
585
+ return "var" === this.type.keyword || "const" === this.type.keyword || "class" === this.type.keyword || "function" === this.type.keyword || this.isLet() || this.isAsyncFunction();
586
+ }, L.parseExportSpecifier = function(e3) {
587
+ var t3 = this.startNode();
588
+ return t3.local = this.parseModuleExportName(), t3.exported = this.eatContextual("as") ? this.parseModuleExportName() : t3.local, this.checkExport(e3, t3.exported, t3.exported.start), this.finishNode(t3, "ExportSpecifier");
589
+ }, L.parseExportSpecifiers = function(e3) {
590
+ var t3 = [], i2 = true;
591
+ for (this.expect(f.braceL); !this.eat(f.braceR); ) {
592
+ if (i2) i2 = false;
593
+ else if (this.expect(f.comma), this.afterTrailingComma(f.braceR)) break;
594
+ t3.push(this.parseExportSpecifier(e3));
595
+ }
596
+ return t3;
597
+ }, L.parseImport = function(e3) {
598
+ return this.next(), this.type === f.string ? (e3.specifiers = V, e3.source = this.parseExprAtom()) : (e3.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e3.source = this.type === f.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e3.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e3, "ImportDeclaration");
599
+ }, L.parseImportSpecifier = function() {
600
+ var e3 = this.startNode();
601
+ return e3.imported = this.parseModuleExportName(), this.eatContextual("as") ? e3.local = this.parseIdent() : (this.checkUnreserved(e3.imported), e3.local = e3.imported), this.checkLValSimple(e3.local, 2), this.finishNode(e3, "ImportSpecifier");
602
+ }, L.parseImportDefaultSpecifier = function() {
603
+ var e3 = this.startNode();
604
+ return e3.local = this.parseIdent(), this.checkLValSimple(e3.local, 2), this.finishNode(e3, "ImportDefaultSpecifier");
605
+ }, L.parseImportNamespaceSpecifier = function() {
606
+ var e3 = this.startNode();
607
+ return this.next(), this.expectContextual("as"), e3.local = this.parseIdent(), this.checkLValSimple(e3.local, 2), this.finishNode(e3, "ImportNamespaceSpecifier");
608
+ }, L.parseImportSpecifiers = function() {
609
+ var e3 = [], t3 = true;
610
+ if (this.type === f.name && (e3.push(this.parseImportDefaultSpecifier()), !this.eat(f.comma))) return e3;
611
+ if (this.type === f.star) return e3.push(this.parseImportNamespaceSpecifier()), e3;
612
+ for (this.expect(f.braceL); !this.eat(f.braceR); ) {
613
+ if (t3) t3 = false;
614
+ else if (this.expect(f.comma), this.afterTrailingComma(f.braceR)) break;
615
+ e3.push(this.parseImportSpecifier());
616
+ }
617
+ return e3;
618
+ }, L.parseWithClause = function() {
619
+ var e3 = [];
620
+ if (!this.eat(f._with)) return e3;
621
+ this.expect(f.braceL);
622
+ for (var t3 = {}, i2 = true; !this.eat(f.braceR); ) {
623
+ if (i2) i2 = false;
624
+ else if (this.expect(f.comma), this.afterTrailingComma(f.braceR)) break;
625
+ var s2 = this.parseImportAttribute(), r2 = "Identifier" === s2.key.type ? s2.key.name : s2.key.value;
626
+ b(t3, r2) && this.raiseRecoverable(s2.key.start, "Duplicate attribute key '" + r2 + "'"), t3[r2] = true, e3.push(s2);
627
+ }
628
+ return e3;
629
+ }, L.parseImportAttribute = function() {
630
+ var e3 = this.startNode();
631
+ return e3.key = this.type === f.string ? this.parseExprAtom() : this.parseIdent("never" !== this.options.allowReserved), this.expect(f.colon), this.type !== f.string && this.unexpected(), e3.value = this.parseExprAtom(), this.finishNode(e3, "ImportAttribute");
632
+ }, L.parseModuleExportName = function() {
633
+ if (this.options.ecmaVersion >= 13 && this.type === f.string) {
634
+ var e3 = this.parseLiteral(this.value);
635
+ return w.test(e3.value) && this.raise(e3.start, "An export name cannot include a lone surrogate."), e3;
636
+ }
637
+ return this.parseIdent(true);
638
+ }, L.adaptDirectivePrologue = function(e3) {
639
+ for (var t3 = 0; t3 < e3.length && this.isDirectiveCandidate(e3[t3]); ++t3) e3[t3].directive = e3[t3].expression.raw.slice(1, -1);
640
+ }, L.isDirectiveCandidate = function(e3) {
641
+ return this.options.ecmaVersion >= 5 && "ExpressionStatement" === e3.type && "Literal" === e3.expression.type && "string" == typeof e3.expression.value && ('"' === this.input[e3.start] || "'" === this.input[e3.start]);
642
+ };
643
+ var j = acorn_Parser.prototype;
644
+ j.toAssignable = function(e3, t3, i2) {
645
+ if (this.options.ecmaVersion >= 6 && e3) switch (e3.type) {
646
+ case "Identifier":
647
+ this.inAsync && "await" === e3.name && this.raise(e3.start, "Cannot use 'await' as identifier inside an async function");
648
+ break;
649
+ case "ObjectPattern":
650
+ case "ArrayPattern":
651
+ case "AssignmentPattern":
652
+ case "RestElement":
653
+ break;
654
+ case "ObjectExpression":
655
+ e3.type = "ObjectPattern", i2 && this.checkPatternErrors(i2, true);
656
+ for (var s2 = 0, r2 = e3.properties; s2 < r2.length; s2 += 1) {
657
+ var n2 = r2[s2];
658
+ this.toAssignable(n2, t3), "RestElement" !== n2.type || "ArrayPattern" !== n2.argument.type && "ObjectPattern" !== n2.argument.type || this.raise(n2.argument.start, "Unexpected token");
659
+ }
660
+ break;
661
+ case "Property":
662
+ "init" !== e3.kind && this.raise(e3.key.start, "Object pattern can't contain getter or setter"), this.toAssignable(e3.value, t3);
663
+ break;
664
+ case "ArrayExpression":
665
+ e3.type = "ArrayPattern", i2 && this.checkPatternErrors(i2, true), this.toAssignableList(e3.elements, t3);
666
+ break;
667
+ case "SpreadElement":
668
+ e3.type = "RestElement", this.toAssignable(e3.argument, t3), "AssignmentPattern" === e3.argument.type && this.raise(e3.argument.start, "Rest elements cannot have a default value");
669
+ break;
670
+ case "AssignmentExpression":
671
+ "=" !== e3.operator && this.raise(e3.left.end, "Only '=' operator can be used for specifying default value."), e3.type = "AssignmentPattern", delete e3.operator, this.toAssignable(e3.left, t3);
672
+ break;
673
+ case "ParenthesizedExpression":
674
+ this.toAssignable(e3.expression, t3, i2);
675
+ break;
676
+ case "ChainExpression":
677
+ this.raiseRecoverable(e3.start, "Optional chaining cannot appear in left-hand side");
678
+ break;
679
+ case "MemberExpression":
680
+ if (!t3) break;
681
+ default:
682
+ this.raise(e3.start, "Assigning to rvalue");
683
+ }
684
+ else i2 && this.checkPatternErrors(i2, true);
685
+ return e3;
686
+ }, j.toAssignableList = function(e3, t3) {
687
+ for (var i2 = e3.length, s2 = 0; s2 < i2; s2++) {
688
+ var r2 = e3[s2];
689
+ r2 && this.toAssignable(r2, t3);
690
+ }
691
+ if (i2) {
692
+ var n2 = e3[i2 - 1];
693
+ 6 === this.options.ecmaVersion && t3 && n2 && "RestElement" === n2.type && "Identifier" !== n2.argument.type && this.unexpected(n2.argument.start);
694
+ }
695
+ return e3;
696
+ }, j.parseSpread = function(e3) {
697
+ var t3 = this.startNode();
698
+ return this.next(), t3.argument = this.parseMaybeAssign(false, e3), this.finishNode(t3, "SpreadElement");
699
+ }, j.parseRestBinding = function() {
700
+ var e3 = this.startNode();
701
+ return this.next(), 6 === this.options.ecmaVersion && this.type !== f.name && this.unexpected(), e3.argument = this.parseBindingAtom(), this.finishNode(e3, "RestElement");
702
+ }, j.parseBindingAtom = function() {
703
+ if (this.options.ecmaVersion >= 6) switch (this.type) {
704
+ case f.bracketL:
705
+ var e3 = this.startNode();
706
+ return this.next(), e3.elements = this.parseBindingList(f.bracketR, true, true), this.finishNode(e3, "ArrayPattern");
707
+ case f.braceL:
708
+ return this.parseObj(true);
709
+ }
710
+ return this.parseIdent();
711
+ }, j.parseBindingList = function(e3, t3, i2, s2) {
712
+ for (var r2 = [], n2 = true; !this.eat(e3); ) if (n2 ? n2 = false : this.expect(f.comma), t3 && this.type === f.comma) r2.push(null);
713
+ else {
714
+ if (i2 && this.afterTrailingComma(e3)) break;
715
+ if (this.type === f.ellipsis) {
716
+ var a2 = this.parseRestBinding();
717
+ this.parseBindingListItem(a2), r2.push(a2), this.type === f.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(e3);
718
+ break;
719
+ }
720
+ r2.push(this.parseAssignableListItem(s2));
721
+ }
722
+ return r2;
723
+ }, j.parseAssignableListItem = function(e3) {
724
+ var t3 = this.parseMaybeDefault(this.start, this.startLoc);
725
+ return this.parseBindingListItem(t3), t3;
726
+ }, j.parseBindingListItem = function(e3) {
727
+ return e3;
728
+ }, j.parseMaybeDefault = function(e3, t3, i2) {
729
+ if (i2 = i2 || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(f.eq)) return i2;
730
+ var s2 = this.startNodeAt(e3, t3);
731
+ return s2.left = i2, s2.right = this.parseMaybeAssign(), this.finishNode(s2, "AssignmentPattern");
732
+ }, j.checkLValSimple = function(e3, t3, i2) {
733
+ void 0 === t3 && (t3 = 0);
734
+ var s2 = 0 !== t3;
735
+ switch (e3.type) {
736
+ case "Identifier":
737
+ this.strict && this.reservedWordsStrictBind.test(e3.name) && this.raiseRecoverable(e3.start, (s2 ? "Binding " : "Assigning to ") + e3.name + " in strict mode"), s2 && (2 === t3 && "let" === e3.name && this.raiseRecoverable(e3.start, "let is disallowed as a lexically bound name"), i2 && (b(i2, e3.name) && this.raiseRecoverable(e3.start, "Argument name clash"), i2[e3.name] = true), 5 !== t3 && this.declareName(e3.name, t3, e3.start));
738
+ break;
739
+ case "ChainExpression":
740
+ this.raiseRecoverable(e3.start, "Optional chaining cannot appear in left-hand side");
741
+ break;
742
+ case "MemberExpression":
743
+ s2 && this.raiseRecoverable(e3.start, "Binding member expression");
744
+ break;
745
+ case "ParenthesizedExpression":
746
+ return s2 && this.raiseRecoverable(e3.start, "Binding parenthesized expression"), this.checkLValSimple(e3.expression, t3, i2);
747
+ default:
748
+ this.raise(e3.start, (s2 ? "Binding" : "Assigning to") + " rvalue");
749
+ }
750
+ }, j.checkLValPattern = function(e3, t3, i2) {
751
+ switch (void 0 === t3 && (t3 = 0), e3.type) {
752
+ case "ObjectPattern":
753
+ for (var s2 = 0, r2 = e3.properties; s2 < r2.length; s2 += 1) {
754
+ var n2 = r2[s2];
755
+ this.checkLValInnerPattern(n2, t3, i2);
756
+ }
757
+ break;
758
+ case "ArrayPattern":
759
+ for (var a2 = 0, o2 = e3.elements; a2 < o2.length; a2 += 1) {
760
+ var h2 = o2[a2];
761
+ h2 && this.checkLValInnerPattern(h2, t3, i2);
762
+ }
763
+ break;
764
+ default:
765
+ this.checkLValSimple(e3, t3, i2);
766
+ }
767
+ }, j.checkLValInnerPattern = function(e3, t3, i2) {
768
+ switch (void 0 === t3 && (t3 = 0), e3.type) {
769
+ case "Property":
770
+ this.checkLValInnerPattern(e3.value, t3, i2);
771
+ break;
772
+ case "AssignmentPattern":
773
+ this.checkLValPattern(e3.left, t3, i2);
774
+ break;
775
+ case "RestElement":
776
+ this.checkLValPattern(e3.argument, t3, i2);
777
+ break;
778
+ default:
779
+ this.checkLValPattern(e3, t3, i2);
780
+ }
781
+ };
782
+ var acorn_TokContext = /* @__PURE__ */ __name(function(e3, t3, i2, s2, r2) {
783
+ this.token = e3, this.isExpr = !!t3, this.preserveSpace = !!i2, this.override = s2, this.generator = !!r2;
784
+ }, "acorn_TokContext"), F = { b_stat: new acorn_TokContext("{", false), b_expr: new acorn_TokContext("{", true), b_tmpl: new acorn_TokContext("${", false), p_stat: new acorn_TokContext("(", false), p_expr: new acorn_TokContext("(", true), q_tmpl: new acorn_TokContext("`", true, true, function(e3) {
785
+ return e3.tryReadTemplateToken();
786
+ }), f_stat: new acorn_TokContext("function", false), f_expr: new acorn_TokContext("function", true), f_expr_gen: new acorn_TokContext("function", true, false, null, true), f_gen: new acorn_TokContext("function", false, false, null, true) }, B = acorn_Parser.prototype;
787
+ B.initialContext = function() {
788
+ return [F.b_stat];
789
+ }, B.curContext = function() {
790
+ return this.context[this.context.length - 1];
791
+ }, B.braceIsBlock = function(e3) {
792
+ var t3 = this.curContext();
793
+ return t3 === F.f_expr || t3 === F.f_stat || (e3 !== f.colon || t3 !== F.b_stat && t3 !== F.b_expr ? e3 === f._return || e3 === f.name && this.exprAllowed ? m.test(this.input.slice(this.lastTokEnd, this.start)) : e3 === f._else || e3 === f.semi || e3 === f.eof || e3 === f.parenR || e3 === f.arrow || (e3 === f.braceL ? t3 === F.b_stat : e3 !== f._var && e3 !== f._const && e3 !== f.name && !this.exprAllowed) : !t3.isExpr);
794
+ }, B.inGeneratorContext = function() {
795
+ for (var e3 = this.context.length - 1; e3 >= 1; e3--) {
796
+ var t3 = this.context[e3];
797
+ if ("function" === t3.token) return t3.generator;
798
+ }
799
+ return false;
800
+ }, B.updateContext = function(e3) {
801
+ var t3, i2 = this.type;
802
+ i2.keyword && e3 === f.dot ? this.exprAllowed = false : (t3 = i2.updateContext) ? t3.call(this, e3) : this.exprAllowed = i2.beforeExpr;
803
+ }, B.overrideContext = function(e3) {
804
+ this.curContext() !== e3 && (this.context[this.context.length - 1] = e3);
805
+ }, f.parenR.updateContext = f.braceR.updateContext = function() {
806
+ if (1 !== this.context.length) {
807
+ var e3 = this.context.pop();
808
+ e3 === F.b_stat && "function" === this.curContext().token && (e3 = this.context.pop()), this.exprAllowed = !e3.isExpr;
809
+ } else this.exprAllowed = true;
810
+ }, f.braceL.updateContext = function(e3) {
811
+ this.context.push(this.braceIsBlock(e3) ? F.b_stat : F.b_expr), this.exprAllowed = true;
812
+ }, f.dollarBraceL.updateContext = function() {
813
+ this.context.push(F.b_tmpl), this.exprAllowed = true;
814
+ }, f.parenL.updateContext = function(e3) {
815
+ var t3 = e3 === f._if || e3 === f._for || e3 === f._with || e3 === f._while;
816
+ this.context.push(t3 ? F.p_stat : F.p_expr), this.exprAllowed = true;
817
+ }, f.incDec.updateContext = function() {
818
+ }, f._function.updateContext = f._class.updateContext = function(e3) {
819
+ !e3.beforeExpr || e3 === f._else || e3 === f.semi && this.curContext() !== F.p_stat || e3 === f._return && m.test(this.input.slice(this.lastTokEnd, this.start)) || (e3 === f.colon || e3 === f.braceL) && this.curContext() === F.b_stat ? this.context.push(F.f_stat) : this.context.push(F.f_expr), this.exprAllowed = false;
820
+ }, f.colon.updateContext = function() {
821
+ "function" === this.curContext().token && this.context.pop(), this.exprAllowed = true;
822
+ }, f.backQuote.updateContext = function() {
823
+ this.curContext() === F.q_tmpl ? this.context.pop() : this.context.push(F.q_tmpl), this.exprAllowed = false;
824
+ }, f.star.updateContext = function(e3) {
825
+ if (e3 === f._function) {
826
+ var t3 = this.context.length - 1;
827
+ this.context[t3] === F.f_expr ? this.context[t3] = F.f_expr_gen : this.context[t3] = F.f_gen;
828
+ }
829
+ this.exprAllowed = true;
830
+ }, f.name.updateContext = function(e3) {
831
+ var t3 = false;
832
+ this.options.ecmaVersion >= 6 && e3 !== f.dot && ("of" === this.value && !this.exprAllowed || "yield" === this.value && this.inGeneratorContext()) && (t3 = true), this.exprAllowed = t3;
833
+ };
834
+ var $ = acorn_Parser.prototype;
835
+ function isLocalVariableAccess(e3) {
836
+ return "Identifier" === e3.type || "ParenthesizedExpression" === e3.type && isLocalVariableAccess(e3.expression);
837
+ }
838
+ __name(isLocalVariableAccess, "isLocalVariableAccess");
839
+ function isPrivateFieldAccess(e3) {
840
+ return "MemberExpression" === e3.type && "PrivateIdentifier" === e3.property.type || "ChainExpression" === e3.type && isPrivateFieldAccess(e3.expression) || "ParenthesizedExpression" === e3.type && isPrivateFieldAccess(e3.expression);
841
+ }
842
+ __name(isPrivateFieldAccess, "isPrivateFieldAccess");
843
+ $.checkPropClash = function(e3, t3, i2) {
844
+ if (!(this.options.ecmaVersion >= 9 && "SpreadElement" === e3.type || this.options.ecmaVersion >= 6 && (e3.computed || e3.method || e3.shorthand))) {
845
+ var s2, r2 = e3.key;
846
+ switch (r2.type) {
847
+ case "Identifier":
848
+ s2 = r2.name;
849
+ break;
850
+ case "Literal":
851
+ s2 = String(r2.value);
852
+ break;
853
+ default:
854
+ return;
855
+ }
856
+ var n2 = e3.kind;
857
+ if (this.options.ecmaVersion >= 6) "__proto__" === s2 && "init" === n2 && (t3.proto && (i2 ? i2.doubleProto < 0 && (i2.doubleProto = r2.start) : this.raiseRecoverable(r2.start, "Redefinition of __proto__ property")), t3.proto = true);
858
+ else {
859
+ var a2 = t3[s2 = "$" + s2];
860
+ if (a2) ("init" === n2 ? this.strict && a2.init || a2.get || a2.set : a2.init || a2[n2]) && this.raiseRecoverable(r2.start, "Redefinition of property");
861
+ else a2 = t3[s2] = { init: false, get: false, set: false };
862
+ a2[n2] = true;
863
+ }
864
+ }
865
+ }, $.parseExpression = function(e3, t3) {
866
+ var i2 = this.start, s2 = this.startLoc, r2 = this.parseMaybeAssign(e3, t3);
867
+ if (this.type === f.comma) {
868
+ var n2 = this.startNodeAt(i2, s2);
869
+ for (n2.expressions = [r2]; this.eat(f.comma); ) n2.expressions.push(this.parseMaybeAssign(e3, t3));
870
+ return this.finishNode(n2, "SequenceExpression");
871
+ }
872
+ return r2;
873
+ }, $.parseMaybeAssign = function(e3, t3, i2) {
874
+ if (this.isContextual("yield")) {
875
+ if (this.inGenerator) return this.parseYield(e3);
876
+ this.exprAllowed = false;
877
+ }
878
+ var s2 = false, r2 = -1, n2 = -1, a2 = -1;
879
+ t3 ? (r2 = t3.parenthesizedAssign, n2 = t3.trailingComma, a2 = t3.doubleProto, t3.parenthesizedAssign = t3.trailingComma = -1) : (t3 = new acorn_DestructuringErrors(), s2 = true);
880
+ var o2 = this.start, h2 = this.startLoc;
881
+ this.type !== f.parenL && this.type !== f.name || (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = "await" === e3);
882
+ var c2 = this.parseMaybeConditional(e3, t3);
883
+ if (i2 && (c2 = i2.call(this, c2, o2, h2)), this.type.isAssign) {
884
+ var p2 = this.startNodeAt(o2, h2);
885
+ return p2.operator = this.value, this.type === f.eq && (c2 = this.toAssignable(c2, false, t3)), s2 || (t3.parenthesizedAssign = t3.trailingComma = t3.doubleProto = -1), t3.shorthandAssign >= c2.start && (t3.shorthandAssign = -1), this.type === f.eq ? this.checkLValPattern(c2) : this.checkLValSimple(c2), p2.left = c2, this.next(), p2.right = this.parseMaybeAssign(e3), a2 > -1 && (t3.doubleProto = a2), this.finishNode(p2, "AssignmentExpression");
886
+ }
887
+ return s2 && this.checkExpressionErrors(t3, true), r2 > -1 && (t3.parenthesizedAssign = r2), n2 > -1 && (t3.trailingComma = n2), c2;
888
+ }, $.parseMaybeConditional = function(e3, t3) {
889
+ var i2 = this.start, s2 = this.startLoc, r2 = this.parseExprOps(e3, t3);
890
+ if (this.checkExpressionErrors(t3)) return r2;
891
+ if (this.eat(f.question)) {
892
+ var n2 = this.startNodeAt(i2, s2);
893
+ return n2.test = r2, n2.consequent = this.parseMaybeAssign(), this.expect(f.colon), n2.alternate = this.parseMaybeAssign(e3), this.finishNode(n2, "ConditionalExpression");
894
+ }
895
+ return r2;
896
+ }, $.parseExprOps = function(e3, t3) {
897
+ var i2 = this.start, s2 = this.startLoc, r2 = this.parseMaybeUnary(t3, false, false, e3);
898
+ return this.checkExpressionErrors(t3) || r2.start === i2 && "ArrowFunctionExpression" === r2.type ? r2 : this.parseExprOp(r2, i2, s2, -1, e3);
899
+ }, $.parseExprOp = function(e3, t3, i2, s2, r2) {
900
+ var n2 = this.type.binop;
901
+ if (null != n2 && (!r2 || this.type !== f._in) && n2 > s2) {
902
+ var a2 = this.type === f.logicalOR || this.type === f.logicalAND, o2 = this.type === f.coalesce;
903
+ o2 && (n2 = f.logicalAND.binop);
904
+ var h2 = this.value;
905
+ this.next();
906
+ var c2 = this.start, p2 = this.startLoc, l2 = this.parseExprOp(this.parseMaybeUnary(null, false, false, r2), c2, p2, n2, r2), u2 = this.buildBinary(t3, i2, e3, l2, h2, a2 || o2);
907
+ return (a2 && this.type === f.coalesce || o2 && (this.type === f.logicalOR || this.type === f.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(u2, t3, i2, s2, r2);
908
+ }
909
+ return e3;
910
+ }, $.buildBinary = function(e3, t3, i2, s2, r2, n2) {
911
+ "PrivateIdentifier" === s2.type && this.raise(s2.start, "Private identifier can only be left side of binary expression");
912
+ var a2 = this.startNodeAt(e3, t3);
913
+ return a2.left = i2, a2.operator = r2, a2.right = s2, this.finishNode(a2, n2 ? "LogicalExpression" : "BinaryExpression");
914
+ }, $.parseMaybeUnary = function(e3, t3, i2, s2) {
915
+ var r2, n2 = this.start, a2 = this.startLoc;
916
+ if (this.isContextual("await") && this.canAwait) r2 = this.parseAwait(s2), t3 = true;
917
+ else if (this.type.prefix) {
918
+ var o2 = this.startNode(), h2 = this.type === f.incDec;
919
+ o2.operator = this.value, o2.prefix = true, this.next(), o2.argument = this.parseMaybeUnary(null, true, h2, s2), this.checkExpressionErrors(e3, true), h2 ? this.checkLValSimple(o2.argument) : this.strict && "delete" === o2.operator && isLocalVariableAccess(o2.argument) ? this.raiseRecoverable(o2.start, "Deleting local variable in strict mode") : "delete" === o2.operator && isPrivateFieldAccess(o2.argument) ? this.raiseRecoverable(o2.start, "Private fields can not be deleted") : t3 = true, r2 = this.finishNode(o2, h2 ? "UpdateExpression" : "UnaryExpression");
920
+ } else if (t3 || this.type !== f.privateId) {
921
+ if (r2 = this.parseExprSubscripts(e3, s2), this.checkExpressionErrors(e3)) return r2;
922
+ for (; this.type.postfix && !this.canInsertSemicolon(); ) {
923
+ var c2 = this.startNodeAt(n2, a2);
924
+ c2.operator = this.value, c2.prefix = false, c2.argument = r2, this.checkLValSimple(r2), this.next(), r2 = this.finishNode(c2, "UpdateExpression");
925
+ }
926
+ } else (s2 || 0 === this.privateNameStack.length) && this.options.checkPrivateFields && this.unexpected(), r2 = this.parsePrivateIdent(), this.type !== f._in && this.unexpected();
927
+ return i2 || !this.eat(f.starstar) ? r2 : t3 ? void this.unexpected(this.lastTokStart) : this.buildBinary(n2, a2, r2, this.parseMaybeUnary(null, false, false, s2), "**", false);
928
+ }, $.parseExprSubscripts = function(e3, t3) {
929
+ var i2 = this.start, s2 = this.startLoc, r2 = this.parseExprAtom(e3, t3);
930
+ if ("ArrowFunctionExpression" === r2.type && ")" !== this.input.slice(this.lastTokStart, this.lastTokEnd)) return r2;
931
+ var n2 = this.parseSubscripts(r2, i2, s2, false, t3);
932
+ return e3 && "MemberExpression" === n2.type && (e3.parenthesizedAssign >= n2.start && (e3.parenthesizedAssign = -1), e3.parenthesizedBind >= n2.start && (e3.parenthesizedBind = -1), e3.trailingComma >= n2.start && (e3.trailingComma = -1)), n2;
933
+ }, $.parseSubscripts = function(e3, t3, i2, s2, r2) {
934
+ for (var n2 = this.options.ecmaVersion >= 8 && "Identifier" === e3.type && "async" === e3.name && this.lastTokEnd === e3.end && !this.canInsertSemicolon() && e3.end - e3.start === 5 && this.potentialArrowAt === e3.start, a2 = false; ; ) {
935
+ var o2 = this.parseSubscript(e3, t3, i2, s2, n2, a2, r2);
936
+ if (o2.optional && (a2 = true), o2 === e3 || "ArrowFunctionExpression" === o2.type) {
937
+ if (a2) {
938
+ var h2 = this.startNodeAt(t3, i2);
939
+ h2.expression = o2, o2 = this.finishNode(h2, "ChainExpression");
940
+ }
941
+ return o2;
942
+ }
943
+ e3 = o2;
944
+ }
945
+ }, $.shouldParseAsyncArrow = function() {
946
+ return !this.canInsertSemicolon() && this.eat(f.arrow);
947
+ }, $.parseSubscriptAsyncArrow = function(e3, t3, i2, s2) {
948
+ return this.parseArrowExpression(this.startNodeAt(e3, t3), i2, true, s2);
949
+ }, $.parseSubscript = function(e3, t3, i2, s2, r2, n2, a2) {
950
+ var o2 = this.options.ecmaVersion >= 11, h2 = o2 && this.eat(f.questionDot);
951
+ s2 && h2 && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
952
+ var c2 = this.eat(f.bracketL);
953
+ if (c2 || h2 && this.type !== f.parenL && this.type !== f.backQuote || this.eat(f.dot)) {
954
+ var p2 = this.startNodeAt(t3, i2);
955
+ p2.object = e3, c2 ? (p2.property = this.parseExpression(), this.expect(f.bracketR)) : this.type === f.privateId && "Super" !== e3.type ? p2.property = this.parsePrivateIdent() : p2.property = this.parseIdent("never" !== this.options.allowReserved), p2.computed = !!c2, o2 && (p2.optional = h2), e3 = this.finishNode(p2, "MemberExpression");
956
+ } else if (!s2 && this.eat(f.parenL)) {
957
+ var l2 = new acorn_DestructuringErrors(), u2 = this.yieldPos, d2 = this.awaitPos, m2 = this.awaitIdentPos;
958
+ this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
959
+ var g2 = this.parseExprList(f.parenR, this.options.ecmaVersion >= 8, false, l2);
960
+ if (r2 && !h2 && this.shouldParseAsyncArrow()) return this.checkPatternErrors(l2, false), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = u2, this.awaitPos = d2, this.awaitIdentPos = m2, this.parseSubscriptAsyncArrow(t3, i2, g2, a2);
961
+ this.checkExpressionErrors(l2, true), this.yieldPos = u2 || this.yieldPos, this.awaitPos = d2 || this.awaitPos, this.awaitIdentPos = m2 || this.awaitIdentPos;
962
+ var x2 = this.startNodeAt(t3, i2);
963
+ x2.callee = e3, x2.arguments = g2, o2 && (x2.optional = h2), e3 = this.finishNode(x2, "CallExpression");
964
+ } else if (this.type === f.backQuote) {
965
+ (h2 || n2) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
966
+ var v2 = this.startNodeAt(t3, i2);
967
+ v2.tag = e3, v2.quasi = this.parseTemplate({ isTagged: true }), e3 = this.finishNode(v2, "TaggedTemplateExpression");
968
+ }
969
+ return e3;
970
+ }, $.parseExprAtom = function(e3, t3, i2) {
971
+ this.type === f.slash && this.readRegexp();
972
+ var s2, r2 = this.potentialArrowAt === this.start;
973
+ switch (this.type) {
974
+ case f._super:
975
+ return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), s2 = this.startNode(), this.next(), this.type !== f.parenL || this.allowDirectSuper || this.raise(s2.start, "super() call outside constructor of a subclass"), this.type !== f.dot && this.type !== f.bracketL && this.type !== f.parenL && this.unexpected(), this.finishNode(s2, "Super");
976
+ case f._this:
977
+ return s2 = this.startNode(), this.next(), this.finishNode(s2, "ThisExpression");
978
+ case f.name:
979
+ var n2 = this.start, a2 = this.startLoc, o2 = this.containsEsc, h2 = this.parseIdent(false);
980
+ if (this.options.ecmaVersion >= 8 && !o2 && "async" === h2.name && !this.canInsertSemicolon() && this.eat(f._function)) return this.overrideContext(F.f_expr), this.parseFunction(this.startNodeAt(n2, a2), 0, false, true, t3);
981
+ if (r2 && !this.canInsertSemicolon()) {
982
+ if (this.eat(f.arrow)) return this.parseArrowExpression(this.startNodeAt(n2, a2), [h2], false, t3);
983
+ if (this.options.ecmaVersion >= 8 && "async" === h2.name && this.type === f.name && !o2 && (!this.potentialArrowInForAwait || "of" !== this.value || this.containsEsc)) return h2 = this.parseIdent(false), !this.canInsertSemicolon() && this.eat(f.arrow) || this.unexpected(), this.parseArrowExpression(this.startNodeAt(n2, a2), [h2], true, t3);
984
+ }
985
+ return h2;
986
+ case f.regexp:
987
+ var c2 = this.value;
988
+ return (s2 = this.parseLiteral(c2.value)).regex = { pattern: c2.pattern, flags: c2.flags }, s2;
989
+ case f.num:
990
+ case f.string:
991
+ return this.parseLiteral(this.value);
992
+ case f._null:
993
+ case f._true:
994
+ case f._false:
995
+ return (s2 = this.startNode()).value = this.type === f._null ? null : this.type === f._true, s2.raw = this.type.keyword, this.next(), this.finishNode(s2, "Literal");
996
+ case f.parenL:
997
+ var p2 = this.start, l2 = this.parseParenAndDistinguishExpression(r2, t3);
998
+ return e3 && (e3.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(l2) && (e3.parenthesizedAssign = p2), e3.parenthesizedBind < 0 && (e3.parenthesizedBind = p2)), l2;
999
+ case f.bracketL:
1000
+ return s2 = this.startNode(), this.next(), s2.elements = this.parseExprList(f.bracketR, true, true, e3), this.finishNode(s2, "ArrayExpression");
1001
+ case f.braceL:
1002
+ return this.overrideContext(F.b_expr), this.parseObj(false, e3);
1003
+ case f._function:
1004
+ return s2 = this.startNode(), this.next(), this.parseFunction(s2, 0);
1005
+ case f._class:
1006
+ return this.parseClass(this.startNode(), false);
1007
+ case f._new:
1008
+ return this.parseNew();
1009
+ case f.backQuote:
1010
+ return this.parseTemplate();
1011
+ case f._import:
1012
+ return this.options.ecmaVersion >= 11 ? this.parseExprImport(i2) : this.unexpected();
1013
+ default:
1014
+ return this.parseExprAtomDefault();
1015
+ }
1016
+ }, $.parseExprAtomDefault = function() {
1017
+ this.unexpected();
1018
+ }, $.parseExprImport = function(e3) {
1019
+ var t3 = this.startNode();
1020
+ if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === f.parenL && !e3) return this.parseDynamicImport(t3);
1021
+ if (this.type === f.dot) {
1022
+ var i2 = this.startNodeAt(t3.start, t3.loc && t3.loc.start);
1023
+ return i2.name = "import", t3.meta = this.finishNode(i2, "Identifier"), this.parseImportMeta(t3);
1024
+ }
1025
+ this.unexpected();
1026
+ }, $.parseDynamicImport = function(e3) {
1027
+ if (this.next(), e3.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16) this.eat(f.parenR) ? e3.options = null : (this.expect(f.comma), this.afterTrailingComma(f.parenR) ? e3.options = null : (e3.options = this.parseMaybeAssign(), this.eat(f.parenR) || (this.expect(f.comma), this.afterTrailingComma(f.parenR) || this.unexpected())));
1028
+ else if (!this.eat(f.parenR)) {
1029
+ var t3 = this.start;
1030
+ this.eat(f.comma) && this.eat(f.parenR) ? this.raiseRecoverable(t3, "Trailing comma is not allowed in import()") : this.unexpected(t3);
1031
+ }
1032
+ return this.finishNode(e3, "ImportExpression");
1033
+ }, $.parseImportMeta = function(e3) {
1034
+ this.next();
1035
+ var t3 = this.containsEsc;
1036
+ return e3.property = this.parseIdent(true), "meta" !== e3.property.name && this.raiseRecoverable(e3.property.start, "The only valid meta property for import is 'import.meta'"), t3 && this.raiseRecoverable(e3.start, "'import.meta' must not contain escaped characters"), "module" === this.options.sourceType || this.options.allowImportExportEverywhere || this.raiseRecoverable(e3.start, "Cannot use 'import.meta' outside a module"), this.finishNode(e3, "MetaProperty");
1037
+ }, $.parseLiteral = function(e3) {
1038
+ var t3 = this.startNode();
1039
+ return t3.value = e3, t3.raw = this.input.slice(this.start, this.end), 110 === t3.raw.charCodeAt(t3.raw.length - 1) && (t3.bigint = null != t3.value ? t3.value.toString() : t3.raw.slice(0, -1).replace(/_/g, "")), this.next(), this.finishNode(t3, "Literal");
1040
+ }, $.parseParenExpression = function() {
1041
+ this.expect(f.parenL);
1042
+ var e3 = this.parseExpression();
1043
+ return this.expect(f.parenR), e3;
1044
+ }, $.shouldParseArrow = function(e3) {
1045
+ return !this.canInsertSemicolon();
1046
+ }, $.parseParenAndDistinguishExpression = function(e3, t3) {
1047
+ var i2, s2 = this.start, r2 = this.startLoc, n2 = this.options.ecmaVersion >= 8;
1048
+ if (this.options.ecmaVersion >= 6) {
1049
+ this.next();
1050
+ var a2, o2 = this.start, h2 = this.startLoc, c2 = [], p2 = true, l2 = false, u2 = new acorn_DestructuringErrors(), d2 = this.yieldPos, m2 = this.awaitPos;
1051
+ for (this.yieldPos = 0, this.awaitPos = 0; this.type !== f.parenR; ) {
1052
+ if (p2 ? p2 = false : this.expect(f.comma), n2 && this.afterTrailingComma(f.parenR, true)) {
1053
+ l2 = true;
1054
+ break;
1055
+ }
1056
+ if (this.type === f.ellipsis) {
1057
+ a2 = this.start, c2.push(this.parseParenItem(this.parseRestBinding())), this.type === f.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
1058
+ break;
1059
+ }
1060
+ c2.push(this.parseMaybeAssign(false, u2, this.parseParenItem));
1061
+ }
1062
+ var g2 = this.lastTokEnd, x2 = this.lastTokEndLoc;
1063
+ if (this.expect(f.parenR), e3 && this.shouldParseArrow(c2) && this.eat(f.arrow)) return this.checkPatternErrors(u2, false), this.checkYieldAwaitInDefaultParams(), this.yieldPos = d2, this.awaitPos = m2, this.parseParenArrowList(s2, r2, c2, t3);
1064
+ c2.length && !l2 || this.unexpected(this.lastTokStart), a2 && this.unexpected(a2), this.checkExpressionErrors(u2, true), this.yieldPos = d2 || this.yieldPos, this.awaitPos = m2 || this.awaitPos, c2.length > 1 ? ((i2 = this.startNodeAt(o2, h2)).expressions = c2, this.finishNodeAt(i2, "SequenceExpression", g2, x2)) : i2 = c2[0];
1065
+ } else i2 = this.parseParenExpression();
1066
+ if (this.options.preserveParens) {
1067
+ var v2 = this.startNodeAt(s2, r2);
1068
+ return v2.expression = i2, this.finishNode(v2, "ParenthesizedExpression");
1069
+ }
1070
+ return i2;
1071
+ }, $.parseParenItem = function(e3) {
1072
+ return e3;
1073
+ }, $.parseParenArrowList = function(e3, t3, i2, s2) {
1074
+ return this.parseArrowExpression(this.startNodeAt(e3, t3), i2, false, s2);
1075
+ };
1076
+ var q = [];
1077
+ $.parseNew = function() {
1078
+ this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
1079
+ var e3 = this.startNode();
1080
+ if (this.next(), this.options.ecmaVersion >= 6 && this.type === f.dot) {
1081
+ var t3 = this.startNodeAt(e3.start, e3.loc && e3.loc.start);
1082
+ t3.name = "new", e3.meta = this.finishNode(t3, "Identifier"), this.next();
1083
+ var i2 = this.containsEsc;
1084
+ return e3.property = this.parseIdent(true), "target" !== e3.property.name && this.raiseRecoverable(e3.property.start, "The only valid meta property for new is 'new.target'"), i2 && this.raiseRecoverable(e3.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(e3.start, "'new.target' can only be used in functions and class static block"), this.finishNode(e3, "MetaProperty");
1085
+ }
1086
+ var s2 = this.start, r2 = this.startLoc;
1087
+ return e3.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), s2, r2, true, false), this.eat(f.parenL) ? e3.arguments = this.parseExprList(f.parenR, this.options.ecmaVersion >= 8, false) : e3.arguments = q, this.finishNode(e3, "NewExpression");
1088
+ }, $.parseTemplateElement = function(e3) {
1089
+ var t3 = e3.isTagged, i2 = this.startNode();
1090
+ return this.type === f.invalidTemplate ? (t3 || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), i2.value = { raw: this.value.replace(/\r\n?/g, "\n"), cooked: null }) : i2.value = { raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, "\n"), cooked: this.value }, this.next(), i2.tail = this.type === f.backQuote, this.finishNode(i2, "TemplateElement");
1091
+ }, $.parseTemplate = function(e3) {
1092
+ void 0 === e3 && (e3 = {});
1093
+ var t3 = e3.isTagged;
1094
+ void 0 === t3 && (t3 = false);
1095
+ var i2 = this.startNode();
1096
+ this.next(), i2.expressions = [];
1097
+ var s2 = this.parseTemplateElement({ isTagged: t3 });
1098
+ for (i2.quasis = [s2]; !s2.tail; ) this.type === f.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(f.dollarBraceL), i2.expressions.push(this.parseExpression()), this.expect(f.braceR), i2.quasis.push(s2 = this.parseTemplateElement({ isTagged: t3 }));
1099
+ return this.next(), this.finishNode(i2, "TemplateLiteral");
1100
+ }, $.isAsyncProp = function(e3) {
1101
+ return !e3.computed && "Identifier" === e3.key.type && "async" === e3.key.name && (this.type === f.name || this.type === f.num || this.type === f.string || this.type === f.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === f.star) && !m.test(this.input.slice(this.lastTokEnd, this.start));
1102
+ }, $.parseObj = function(e3, t3) {
1103
+ var i2 = this.startNode(), s2 = true, r2 = {};
1104
+ for (i2.properties = [], this.next(); !this.eat(f.braceR); ) {
1105
+ if (s2) s2 = false;
1106
+ else if (this.expect(f.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(f.braceR)) break;
1107
+ var n2 = this.parseProperty(e3, t3);
1108
+ e3 || this.checkPropClash(n2, r2, t3), i2.properties.push(n2);
1109
+ }
1110
+ return this.finishNode(i2, e3 ? "ObjectPattern" : "ObjectExpression");
1111
+ }, $.parseProperty = function(e3, t3) {
1112
+ var i2, s2, r2, n2, a2 = this.startNode();
1113
+ if (this.options.ecmaVersion >= 9 && this.eat(f.ellipsis)) return e3 ? (a2.argument = this.parseIdent(false), this.type === f.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(a2, "RestElement")) : (a2.argument = this.parseMaybeAssign(false, t3), this.type === f.comma && t3 && t3.trailingComma < 0 && (t3.trailingComma = this.start), this.finishNode(a2, "SpreadElement"));
1114
+ this.options.ecmaVersion >= 6 && (a2.method = false, a2.shorthand = false, (e3 || t3) && (r2 = this.start, n2 = this.startLoc), e3 || (i2 = this.eat(f.star)));
1115
+ var o2 = this.containsEsc;
1116
+ return this.parsePropertyName(a2), !e3 && !o2 && this.options.ecmaVersion >= 8 && !i2 && this.isAsyncProp(a2) ? (s2 = true, i2 = this.options.ecmaVersion >= 9 && this.eat(f.star), this.parsePropertyName(a2)) : s2 = false, this.parsePropertyValue(a2, e3, i2, s2, r2, n2, t3, o2), this.finishNode(a2, "Property");
1117
+ }, $.parseGetterSetter = function(e3) {
1118
+ var t3 = e3.key.name;
1119
+ this.parsePropertyName(e3), e3.value = this.parseMethod(false), e3.kind = t3;
1120
+ var i2 = "get" === e3.kind ? 0 : 1;
1121
+ if (e3.value.params.length !== i2) {
1122
+ var s2 = e3.value.start;
1123
+ "get" === e3.kind ? this.raiseRecoverable(s2, "getter should have no params") : this.raiseRecoverable(s2, "setter should have exactly one param");
1124
+ } else "set" === e3.kind && "RestElement" === e3.value.params[0].type && this.raiseRecoverable(e3.value.params[0].start, "Setter cannot use rest params");
1125
+ }, $.parsePropertyValue = function(e3, t3, i2, s2, r2, n2, a2, o2) {
1126
+ (i2 || s2) && this.type === f.colon && this.unexpected(), this.eat(f.colon) ? (e3.value = t3 ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, a2), e3.kind = "init") : this.options.ecmaVersion >= 6 && this.type === f.parenL ? (t3 && this.unexpected(), e3.method = true, e3.value = this.parseMethod(i2, s2), e3.kind = "init") : t3 || o2 || !(this.options.ecmaVersion >= 5) || e3.computed || "Identifier" !== e3.key.type || "get" !== e3.key.name && "set" !== e3.key.name || this.type === f.comma || this.type === f.braceR || this.type === f.eq ? this.options.ecmaVersion >= 6 && !e3.computed && "Identifier" === e3.key.type ? ((i2 || s2) && this.unexpected(), this.checkUnreserved(e3.key), "await" !== e3.key.name || this.awaitIdentPos || (this.awaitIdentPos = r2), t3 ? e3.value = this.parseMaybeDefault(r2, n2, this.copyNode(e3.key)) : this.type === f.eq && a2 ? (a2.shorthandAssign < 0 && (a2.shorthandAssign = this.start), e3.value = this.parseMaybeDefault(r2, n2, this.copyNode(e3.key))) : e3.value = this.copyNode(e3.key), e3.kind = "init", e3.shorthand = true) : this.unexpected() : ((i2 || s2) && this.unexpected(), this.parseGetterSetter(e3));
1127
+ }, $.parsePropertyName = function(e3) {
1128
+ if (this.options.ecmaVersion >= 6) {
1129
+ if (this.eat(f.bracketL)) return e3.computed = true, e3.key = this.parseMaybeAssign(), this.expect(f.bracketR), e3.key;
1130
+ e3.computed = false;
1131
+ }
1132
+ return e3.key = this.type === f.num || this.type === f.string ? this.parseExprAtom() : this.parseIdent("never" !== this.options.allowReserved);
1133
+ }, $.initFunction = function(e3) {
1134
+ e3.id = null, this.options.ecmaVersion >= 6 && (e3.generator = e3.expression = false), this.options.ecmaVersion >= 8 && (e3.async = false);
1135
+ }, $.parseMethod = function(e3, t3, i2) {
1136
+ var s2 = this.startNode(), r2 = this.yieldPos, n2 = this.awaitPos, a2 = this.awaitIdentPos;
1137
+ return this.initFunction(s2), this.options.ecmaVersion >= 6 && (s2.generator = e3), this.options.ecmaVersion >= 8 && (s2.async = !!t3), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(64 | functionFlags(t3, s2.generator) | (i2 ? 128 : 0)), this.expect(f.parenL), s2.params = this.parseBindingList(f.parenR, false, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(s2, false, true, false), this.yieldPos = r2, this.awaitPos = n2, this.awaitIdentPos = a2, this.finishNode(s2, "FunctionExpression");
1138
+ }, $.parseArrowExpression = function(e3, t3, i2, s2) {
1139
+ var r2 = this.yieldPos, n2 = this.awaitPos, a2 = this.awaitIdentPos;
1140
+ return this.enterScope(16 | functionFlags(i2, false)), this.initFunction(e3), this.options.ecmaVersion >= 8 && (e3.async = !!i2), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e3.params = this.toAssignableList(t3, true), this.parseFunctionBody(e3, true, false, s2), this.yieldPos = r2, this.awaitPos = n2, this.awaitIdentPos = a2, this.finishNode(e3, "ArrowFunctionExpression");
1141
+ }, $.parseFunctionBody = function(e3, t3, i2, s2) {
1142
+ var r2 = t3 && this.type !== f.braceL, n2 = this.strict, a2 = false;
1143
+ if (r2) e3.body = this.parseMaybeAssign(s2), e3.expression = true, this.checkParams(e3, false);
1144
+ else {
1145
+ var o2 = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e3.params);
1146
+ n2 && !o2 || (a2 = this.strictDirective(this.end)) && o2 && this.raiseRecoverable(e3.start, "Illegal 'use strict' directive in function with non-simple parameter list");
1147
+ var h2 = this.labels;
1148
+ this.labels = [], a2 && (this.strict = true), this.checkParams(e3, !n2 && !a2 && !t3 && !i2 && this.isSimpleParamList(e3.params)), this.strict && e3.id && this.checkLValSimple(e3.id, 5), e3.body = this.parseBlock(false, void 0, a2 && !n2), e3.expression = false, this.adaptDirectivePrologue(e3.body.body), this.labels = h2;
1149
+ }
1150
+ this.exitScope();
1151
+ }, $.isSimpleParamList = function(e3) {
1152
+ for (var t3 = 0, i2 = e3; t3 < i2.length; t3 += 1) {
1153
+ if ("Identifier" !== i2[t3].type) return false;
1154
+ }
1155
+ return true;
1156
+ }, $.checkParams = function(e3, t3) {
1157
+ for (var i2 = /* @__PURE__ */ Object.create(null), s2 = 0, r2 = e3.params; s2 < r2.length; s2 += 1) {
1158
+ var n2 = r2[s2];
1159
+ this.checkLValInnerPattern(n2, 1, t3 ? null : i2);
1160
+ }
1161
+ }, $.parseExprList = function(e3, t3, i2, s2) {
1162
+ for (var r2 = [], n2 = true; !this.eat(e3); ) {
1163
+ if (n2) n2 = false;
1164
+ else if (this.expect(f.comma), t3 && this.afterTrailingComma(e3)) break;
1165
+ var a2 = void 0;
1166
+ i2 && this.type === f.comma ? a2 = null : this.type === f.ellipsis ? (a2 = this.parseSpread(s2), s2 && this.type === f.comma && s2.trailingComma < 0 && (s2.trailingComma = this.start)) : a2 = this.parseMaybeAssign(false, s2), r2.push(a2);
1167
+ }
1168
+ return r2;
1169
+ }, $.checkUnreserved = function(e3) {
1170
+ var t3 = e3.start, i2 = e3.end, s2 = e3.name;
1171
+ (this.inGenerator && "yield" === s2 && this.raiseRecoverable(t3, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && "await" === s2 && this.raiseRecoverable(t3, "Cannot use 'await' as identifier inside an async function"), this.currentThisScope().flags & P || "arguments" !== s2 || this.raiseRecoverable(t3, "Cannot use 'arguments' in class field initializer"), !this.inClassStaticBlock || "arguments" !== s2 && "await" !== s2 || this.raise(t3, "Cannot use " + s2 + " in class static initialization block"), this.keywords.test(s2) && this.raise(t3, "Unexpected keyword '" + s2 + "'"), this.options.ecmaVersion < 6 && -1 !== this.input.slice(t3, i2).indexOf("\\")) || (this.strict ? this.reservedWordsStrict : this.reservedWords).test(s2) && (this.inAsync || "await" !== s2 || this.raiseRecoverable(t3, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t3, "The keyword '" + s2 + "' is reserved"));
1172
+ }, $.parseIdent = function(e3) {
1173
+ var t3 = this.parseIdentNode();
1174
+ return this.next(!!e3), this.finishNode(t3, "Identifier"), e3 || (this.checkUnreserved(t3), "await" !== t3.name || this.awaitIdentPos || (this.awaitIdentPos = t3.start)), t3;
1175
+ }, $.parseIdentNode = function() {
1176
+ var e3 = this.startNode();
1177
+ return this.type === f.name ? e3.name = this.value : this.type.keyword ? (e3.name = this.type.keyword, "class" !== e3.name && "function" !== e3.name || this.lastTokEnd === this.lastTokStart + 1 && 46 === this.input.charCodeAt(this.lastTokStart) || this.context.pop(), this.type = f.name) : this.unexpected(), e3;
1178
+ }, $.parsePrivateIdent = function() {
1179
+ var e3 = this.startNode();
1180
+ return this.type === f.privateId ? e3.name = this.value : this.unexpected(), this.next(), this.finishNode(e3, "PrivateIdentifier"), this.options.checkPrivateFields && (0 === this.privateNameStack.length ? this.raise(e3.start, "Private field '#" + e3.name + "' must be declared in an enclosing class") : this.privateNameStack[this.privateNameStack.length - 1].used.push(e3)), e3;
1181
+ }, $.parseYield = function(e3) {
1182
+ this.yieldPos || (this.yieldPos = this.start);
1183
+ var t3 = this.startNode();
1184
+ return this.next(), this.type === f.semi || this.canInsertSemicolon() || this.type !== f.star && !this.type.startsExpr ? (t3.delegate = false, t3.argument = null) : (t3.delegate = this.eat(f.star), t3.argument = this.parseMaybeAssign(e3)), this.finishNode(t3, "YieldExpression");
1185
+ }, $.parseAwait = function(e3) {
1186
+ this.awaitPos || (this.awaitPos = this.start);
1187
+ var t3 = this.startNode();
1188
+ return this.next(), t3.argument = this.parseMaybeUnary(null, true, false, e3), this.finishNode(t3, "AwaitExpression");
1189
+ };
1190
+ var W = acorn_Parser.prototype;
1191
+ W.raise = function(e3, t3) {
1192
+ var i2 = getLineInfo(this.input, e3);
1193
+ t3 += " (" + i2.line + ":" + i2.column + ")", this.sourceFile && (t3 += " in " + this.sourceFile);
1194
+ var s2 = new SyntaxError(t3);
1195
+ throw s2.pos = e3, s2.loc = i2, s2.raisedAt = this.pos, s2;
1196
+ }, W.raiseRecoverable = W.raise, W.curPosition = function() {
1197
+ if (this.options.locations) return new acorn_Position(this.curLine, this.pos - this.lineStart);
1198
+ };
1199
+ var G = acorn_Parser.prototype, acorn_Scope = /* @__PURE__ */ __name(function(e3) {
1200
+ this.flags = e3, this.var = [], this.lexical = [], this.functions = [];
1201
+ }, "acorn_Scope");
1202
+ G.enterScope = function(e3) {
1203
+ this.scopeStack.push(new acorn_Scope(e3));
1204
+ }, G.exitScope = function() {
1205
+ this.scopeStack.pop();
1206
+ }, G.treatFunctionsAsVarInScope = function(e3) {
1207
+ return 2 & e3.flags || !this.inModule && 1 & e3.flags;
1208
+ }, G.declareName = function(e3, t3, i2) {
1209
+ var s2 = false;
1210
+ if (2 === t3) {
1211
+ var r2 = this.currentScope();
1212
+ s2 = r2.lexical.indexOf(e3) > -1 || r2.functions.indexOf(e3) > -1 || r2.var.indexOf(e3) > -1, r2.lexical.push(e3), this.inModule && 1 & r2.flags && delete this.undefinedExports[e3];
1213
+ } else if (4 === t3) {
1214
+ this.currentScope().lexical.push(e3);
1215
+ } else if (3 === t3) {
1216
+ var n2 = this.currentScope();
1217
+ s2 = this.treatFunctionsAsVar ? n2.lexical.indexOf(e3) > -1 : n2.lexical.indexOf(e3) > -1 || n2.var.indexOf(e3) > -1, n2.functions.push(e3);
1218
+ } else for (var a2 = this.scopeStack.length - 1; a2 >= 0; --a2) {
1219
+ var o2 = this.scopeStack[a2];
1220
+ if (o2.lexical.indexOf(e3) > -1 && !(32 & o2.flags && o2.lexical[0] === e3) || !this.treatFunctionsAsVarInScope(o2) && o2.functions.indexOf(e3) > -1) {
1221
+ s2 = true;
1222
+ break;
1223
+ }
1224
+ if (o2.var.push(e3), this.inModule && 1 & o2.flags && delete this.undefinedExports[e3], o2.flags & P) break;
1225
+ }
1226
+ s2 && this.raiseRecoverable(i2, "Identifier '" + e3 + "' has already been declared");
1227
+ }, G.checkLocalExport = function(e3) {
1228
+ -1 === this.scopeStack[0].lexical.indexOf(e3.name) && -1 === this.scopeStack[0].var.indexOf(e3.name) && (this.undefinedExports[e3.name] = e3);
1229
+ }, G.currentScope = function() {
1230
+ return this.scopeStack[this.scopeStack.length - 1];
1231
+ }, G.currentVarScope = function() {
1232
+ for (var e3 = this.scopeStack.length - 1; ; e3--) {
1233
+ var t3 = this.scopeStack[e3];
1234
+ if (771 & t3.flags) return t3;
1235
+ }
1236
+ }, G.currentThisScope = function() {
1237
+ for (var e3 = this.scopeStack.length - 1; ; e3--) {
1238
+ var t3 = this.scopeStack[e3];
1239
+ if (771 & t3.flags && !(16 & t3.flags)) return t3;
1240
+ }
1241
+ };
1242
+ var acorn_Node = /* @__PURE__ */ __name(function(e3, t3, i2) {
1243
+ this.type = "", this.start = t3, this.end = 0, e3.options.locations && (this.loc = new acorn_SourceLocation(e3, i2)), e3.options.directSourceFile && (this.sourceFile = e3.options.directSourceFile), e3.options.ranges && (this.range = [t3, 0]);
1244
+ }, "acorn_Node"), H = acorn_Parser.prototype;
1245
+ function finishNodeAt(e3, t3, i2, s2) {
1246
+ return e3.type = t3, e3.end = i2, this.options.locations && (e3.loc.end = s2), this.options.ranges && (e3.range[1] = i2), e3;
1247
+ }
1248
+ __name(finishNodeAt, "finishNodeAt");
1249
+ H.startNode = function() {
1250
+ return new acorn_Node(this, this.start, this.startLoc);
1251
+ }, H.startNodeAt = function(e3, t3) {
1252
+ return new acorn_Node(this, e3, t3);
1253
+ }, H.finishNode = function(e3, t3) {
1254
+ return finishNodeAt.call(this, e3, t3, this.lastTokEnd, this.lastTokEndLoc);
1255
+ }, H.finishNodeAt = function(e3, t3, i2, s2) {
1256
+ return finishNodeAt.call(this, e3, t3, i2, s2);
1257
+ }, H.copyNode = function(e3) {
1258
+ var t3 = new acorn_Node(this, e3.start, this.startLoc);
1259
+ for (var i2 in e3) t3[i2] = e3[i2];
1260
+ return t3;
1261
+ };
1262
+ var K = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", z = K + " Extended_Pictographic", J = z + " EBase EComp EMod EPres ExtPict", Y = { 9: K, 10: z, 11: z, 12: J, 13: J, 14: J }, Q = { 9: "", 10: "", 11: "", 12: "", 13: "", 14: "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji" }, Z = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", X = "Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", ee = X + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", te = ee + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", ie = te + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", se = ie + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", re = { 9: X, 10: ee, 11: te, 12: ie, 13: se, 14: se + " Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz" }, ne = {};
1263
+ function buildUnicodeData(e3) {
1264
+ var t3 = ne[e3] = { binary: wordsRegexp(Y[e3] + " " + Z), binaryOfStrings: wordsRegexp(Q[e3]), nonBinary: { General_Category: wordsRegexp(Z), Script: wordsRegexp(re[e3]) } };
1265
+ t3.nonBinary.Script_Extensions = t3.nonBinary.Script, t3.nonBinary.gc = t3.nonBinary.General_Category, t3.nonBinary.sc = t3.nonBinary.Script, t3.nonBinary.scx = t3.nonBinary.Script_Extensions;
1266
+ }
1267
+ __name(buildUnicodeData, "buildUnicodeData");
1268
+ for (var ae = 0, oe = [9, 10, 11, 12, 13, 14]; ae < oe.length; ae += 1) {
1269
+ buildUnicodeData(oe[ae]);
1270
+ }
1271
+ var he = acorn_Parser.prototype, acorn_BranchID = /* @__PURE__ */ __name(function(e3, t3) {
1272
+ this.parent = e3, this.base = t3 || this;
1273
+ }, "acorn_BranchID");
1274
+ acorn_BranchID.prototype.separatedFrom = function(e3) {
1275
+ for (var t3 = this; t3; t3 = t3.parent) for (var i2 = e3; i2; i2 = i2.parent) if (t3.base === i2.base && t3 !== i2) return true;
1276
+ return false;
1277
+ }, acorn_BranchID.prototype.sibling = function() {
1278
+ return new acorn_BranchID(this.parent, this.base);
1279
+ };
1280
+ var acorn_RegExpValidationState = /* @__PURE__ */ __name(function(e3) {
1281
+ this.parser = e3, this.validFlags = "gim" + (e3.options.ecmaVersion >= 6 ? "uy" : "") + (e3.options.ecmaVersion >= 9 ? "s" : "") + (e3.options.ecmaVersion >= 13 ? "d" : "") + (e3.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = ne[e3.options.ecmaVersion >= 14 ? 14 : e3.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = false, this.switchV = false, this.switchN = false, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = false, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
1282
+ }, "acorn_RegExpValidationState");
1283
+ function isRegularExpressionModifier(e3) {
1284
+ return 105 === e3 || 109 === e3 || 115 === e3;
1285
+ }
1286
+ __name(isRegularExpressionModifier, "isRegularExpressionModifier");
1287
+ function isSyntaxCharacter(e3) {
1288
+ return 36 === e3 || e3 >= 40 && e3 <= 43 || 46 === e3 || 63 === e3 || e3 >= 91 && e3 <= 94 || e3 >= 123 && e3 <= 125;
1289
+ }
1290
+ __name(isSyntaxCharacter, "isSyntaxCharacter");
1291
+ function isControlLetter(e3) {
1292
+ return e3 >= 65 && e3 <= 90 || e3 >= 97 && e3 <= 122;
1293
+ }
1294
+ __name(isControlLetter, "isControlLetter");
1295
+ acorn_RegExpValidationState.prototype.reset = function(e3, t3, i2) {
1296
+ var s2 = -1 !== i2.indexOf("v"), r2 = -1 !== i2.indexOf("u");
1297
+ this.start = 0 | e3, this.source = t3 + "", this.flags = i2, s2 && this.parser.options.ecmaVersion >= 15 ? (this.switchU = true, this.switchV = true, this.switchN = true) : (this.switchU = r2 && this.parser.options.ecmaVersion >= 6, this.switchV = false, this.switchN = r2 && this.parser.options.ecmaVersion >= 9);
1298
+ }, acorn_RegExpValidationState.prototype.raise = function(e3) {
1299
+ this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + e3);
1300
+ }, acorn_RegExpValidationState.prototype.at = function(e3, t3) {
1301
+ void 0 === t3 && (t3 = false);
1302
+ var i2 = this.source, s2 = i2.length;
1303
+ if (e3 >= s2) return -1;
1304
+ var r2 = i2.charCodeAt(e3);
1305
+ if (!t3 && !this.switchU || r2 <= 55295 || r2 >= 57344 || e3 + 1 >= s2) return r2;
1306
+ var n2 = i2.charCodeAt(e3 + 1);
1307
+ return n2 >= 56320 && n2 <= 57343 ? (r2 << 10) + n2 - 56613888 : r2;
1308
+ }, acorn_RegExpValidationState.prototype.nextIndex = function(e3, t3) {
1309
+ void 0 === t3 && (t3 = false);
1310
+ var i2 = this.source, s2 = i2.length;
1311
+ if (e3 >= s2) return s2;
1312
+ var r2, n2 = i2.charCodeAt(e3);
1313
+ return !t3 && !this.switchU || n2 <= 55295 || n2 >= 57344 || e3 + 1 >= s2 || (r2 = i2.charCodeAt(e3 + 1)) < 56320 || r2 > 57343 ? e3 + 1 : e3 + 2;
1314
+ }, acorn_RegExpValidationState.prototype.current = function(e3) {
1315
+ return void 0 === e3 && (e3 = false), this.at(this.pos, e3);
1316
+ }, acorn_RegExpValidationState.prototype.lookahead = function(e3) {
1317
+ return void 0 === e3 && (e3 = false), this.at(this.nextIndex(this.pos, e3), e3);
1318
+ }, acorn_RegExpValidationState.prototype.advance = function(e3) {
1319
+ void 0 === e3 && (e3 = false), this.pos = this.nextIndex(this.pos, e3);
1320
+ }, acorn_RegExpValidationState.prototype.eat = function(e3, t3) {
1321
+ return void 0 === t3 && (t3 = false), this.current(t3) === e3 && (this.advance(t3), true);
1322
+ }, acorn_RegExpValidationState.prototype.eatChars = function(e3, t3) {
1323
+ void 0 === t3 && (t3 = false);
1324
+ for (var i2 = this.pos, s2 = 0, r2 = e3; s2 < r2.length; s2 += 1) {
1325
+ var n2 = r2[s2], a2 = this.at(i2, t3);
1326
+ if (-1 === a2 || a2 !== n2) return false;
1327
+ i2 = this.nextIndex(i2, t3);
1328
+ }
1329
+ return this.pos = i2, true;
1330
+ }, he.validateRegExpFlags = function(e3) {
1331
+ for (var t3 = e3.validFlags, i2 = e3.flags, s2 = false, r2 = false, n2 = 0; n2 < i2.length; n2++) {
1332
+ var a2 = i2.charAt(n2);
1333
+ -1 === t3.indexOf(a2) && this.raise(e3.start, "Invalid regular expression flag"), i2.indexOf(a2, n2 + 1) > -1 && this.raise(e3.start, "Duplicate regular expression flag"), "u" === a2 && (s2 = true), "v" === a2 && (r2 = true);
1334
+ }
1335
+ this.options.ecmaVersion >= 15 && s2 && r2 && this.raise(e3.start, "Invalid regular expression flag");
1336
+ }, he.validateRegExpPattern = function(e3) {
1337
+ this.regexp_pattern(e3), !e3.switchN && this.options.ecmaVersion >= 9 && function(e4) {
1338
+ for (var t3 in e4) return true;
1339
+ return false;
1340
+ }(e3.groupNames) && (e3.switchN = true, this.regexp_pattern(e3));
1341
+ }, he.regexp_pattern = function(e3) {
1342
+ e3.pos = 0, e3.lastIntValue = 0, e3.lastStringValue = "", e3.lastAssertionIsQuantifiable = false, e3.numCapturingParens = 0, e3.maxBackReference = 0, e3.groupNames = /* @__PURE__ */ Object.create(null), e3.backReferenceNames.length = 0, e3.branchID = null, this.regexp_disjunction(e3), e3.pos !== e3.source.length && (e3.eat(41) && e3.raise("Unmatched ')'"), (e3.eat(93) || e3.eat(125)) && e3.raise("Lone quantifier brackets")), e3.maxBackReference > e3.numCapturingParens && e3.raise("Invalid escape");
1343
+ for (var t3 = 0, i2 = e3.backReferenceNames; t3 < i2.length; t3 += 1) {
1344
+ var s2 = i2[t3];
1345
+ e3.groupNames[s2] || e3.raise("Invalid named capture referenced");
1346
+ }
1347
+ }, he.regexp_disjunction = function(e3) {
1348
+ var t3 = this.options.ecmaVersion >= 16;
1349
+ for (t3 && (e3.branchID = new acorn_BranchID(e3.branchID, null)), this.regexp_alternative(e3); e3.eat(124); ) t3 && (e3.branchID = e3.branchID.sibling()), this.regexp_alternative(e3);
1350
+ t3 && (e3.branchID = e3.branchID.parent), this.regexp_eatQuantifier(e3, true) && e3.raise("Nothing to repeat"), e3.eat(123) && e3.raise("Lone quantifier brackets");
1351
+ }, he.regexp_alternative = function(e3) {
1352
+ for (; e3.pos < e3.source.length && this.regexp_eatTerm(e3); ) ;
1353
+ }, he.regexp_eatTerm = function(e3) {
1354
+ return this.regexp_eatAssertion(e3) ? (e3.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(e3) && e3.switchU && e3.raise("Invalid quantifier"), true) : !!(e3.switchU ? this.regexp_eatAtom(e3) : this.regexp_eatExtendedAtom(e3)) && (this.regexp_eatQuantifier(e3), true);
1355
+ }, he.regexp_eatAssertion = function(e3) {
1356
+ var t3 = e3.pos;
1357
+ if (e3.lastAssertionIsQuantifiable = false, e3.eat(94) || e3.eat(36)) return true;
1358
+ if (e3.eat(92)) {
1359
+ if (e3.eat(66) || e3.eat(98)) return true;
1360
+ e3.pos = t3;
1361
+ }
1362
+ if (e3.eat(40) && e3.eat(63)) {
1363
+ var i2 = false;
1364
+ if (this.options.ecmaVersion >= 9 && (i2 = e3.eat(60)), e3.eat(61) || e3.eat(33)) return this.regexp_disjunction(e3), e3.eat(41) || e3.raise("Unterminated group"), e3.lastAssertionIsQuantifiable = !i2, true;
1365
+ }
1366
+ return e3.pos = t3, false;
1367
+ }, he.regexp_eatQuantifier = function(e3, t3) {
1368
+ return void 0 === t3 && (t3 = false), !!this.regexp_eatQuantifierPrefix(e3, t3) && (e3.eat(63), true);
1369
+ }, he.regexp_eatQuantifierPrefix = function(e3, t3) {
1370
+ return e3.eat(42) || e3.eat(43) || e3.eat(63) || this.regexp_eatBracedQuantifier(e3, t3);
1371
+ }, he.regexp_eatBracedQuantifier = function(e3, t3) {
1372
+ var i2 = e3.pos;
1373
+ if (e3.eat(123)) {
1374
+ var s2 = 0, r2 = -1;
1375
+ if (this.regexp_eatDecimalDigits(e3) && (s2 = e3.lastIntValue, e3.eat(44) && this.regexp_eatDecimalDigits(e3) && (r2 = e3.lastIntValue), e3.eat(125))) return -1 !== r2 && r2 < s2 && !t3 && e3.raise("numbers out of order in {} quantifier"), true;
1376
+ e3.switchU && !t3 && e3.raise("Incomplete quantifier"), e3.pos = i2;
1377
+ }
1378
+ return false;
1379
+ }, he.regexp_eatAtom = function(e3) {
1380
+ return this.regexp_eatPatternCharacters(e3) || e3.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e3) || this.regexp_eatCharacterClass(e3) || this.regexp_eatUncapturingGroup(e3) || this.regexp_eatCapturingGroup(e3);
1381
+ }, he.regexp_eatReverseSolidusAtomEscape = function(e3) {
1382
+ var t3 = e3.pos;
1383
+ if (e3.eat(92)) {
1384
+ if (this.regexp_eatAtomEscape(e3)) return true;
1385
+ e3.pos = t3;
1386
+ }
1387
+ return false;
1388
+ }, he.regexp_eatUncapturingGroup = function(e3) {
1389
+ var t3 = e3.pos;
1390
+ if (e3.eat(40)) {
1391
+ if (e3.eat(63)) {
1392
+ if (this.options.ecmaVersion >= 16) {
1393
+ var i2 = this.regexp_eatModifiers(e3), s2 = e3.eat(45);
1394
+ if (i2 || s2) {
1395
+ for (var r2 = 0; r2 < i2.length; r2++) {
1396
+ var n2 = i2.charAt(r2);
1397
+ i2.indexOf(n2, r2 + 1) > -1 && e3.raise("Duplicate regular expression modifiers");
1398
+ }
1399
+ if (s2) {
1400
+ var a2 = this.regexp_eatModifiers(e3);
1401
+ i2 || a2 || 58 !== e3.current() || e3.raise("Invalid regular expression modifiers");
1402
+ for (var o2 = 0; o2 < a2.length; o2++) {
1403
+ var h2 = a2.charAt(o2);
1404
+ (a2.indexOf(h2, o2 + 1) > -1 || i2.indexOf(h2) > -1) && e3.raise("Duplicate regular expression modifiers");
1405
+ }
1406
+ }
1407
+ }
1408
+ }
1409
+ if (e3.eat(58)) {
1410
+ if (this.regexp_disjunction(e3), e3.eat(41)) return true;
1411
+ e3.raise("Unterminated group");
1412
+ }
1413
+ }
1414
+ e3.pos = t3;
1415
+ }
1416
+ return false;
1417
+ }, he.regexp_eatCapturingGroup = function(e3) {
1418
+ if (e3.eat(40)) {
1419
+ if (this.options.ecmaVersion >= 9 ? this.regexp_groupSpecifier(e3) : 63 === e3.current() && e3.raise("Invalid group"), this.regexp_disjunction(e3), e3.eat(41)) return e3.numCapturingParens += 1, true;
1420
+ e3.raise("Unterminated group");
1421
+ }
1422
+ return false;
1423
+ }, he.regexp_eatModifiers = function(e3) {
1424
+ for (var t3 = "", i2 = 0; -1 !== (i2 = e3.current()) && isRegularExpressionModifier(i2); ) t3 += codePointToString(i2), e3.advance();
1425
+ return t3;
1426
+ }, he.regexp_eatExtendedAtom = function(e3) {
1427
+ return e3.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e3) || this.regexp_eatCharacterClass(e3) || this.regexp_eatUncapturingGroup(e3) || this.regexp_eatCapturingGroup(e3) || this.regexp_eatInvalidBracedQuantifier(e3) || this.regexp_eatExtendedPatternCharacter(e3);
1428
+ }, he.regexp_eatInvalidBracedQuantifier = function(e3) {
1429
+ return this.regexp_eatBracedQuantifier(e3, true) && e3.raise("Nothing to repeat"), false;
1430
+ }, he.regexp_eatSyntaxCharacter = function(e3) {
1431
+ var t3 = e3.current();
1432
+ return !!isSyntaxCharacter(t3) && (e3.lastIntValue = t3, e3.advance(), true);
1433
+ }, he.regexp_eatPatternCharacters = function(e3) {
1434
+ for (var t3 = e3.pos, i2 = 0; -1 !== (i2 = e3.current()) && !isSyntaxCharacter(i2); ) e3.advance();
1435
+ return e3.pos !== t3;
1436
+ }, he.regexp_eatExtendedPatternCharacter = function(e3) {
1437
+ var t3 = e3.current();
1438
+ return !(-1 === t3 || 36 === t3 || t3 >= 40 && t3 <= 43 || 46 === t3 || 63 === t3 || 91 === t3 || 94 === t3 || 124 === t3) && (e3.advance(), true);
1439
+ }, he.regexp_groupSpecifier = function(e3) {
1440
+ if (e3.eat(63)) {
1441
+ this.regexp_eatGroupName(e3) || e3.raise("Invalid group");
1442
+ var t3 = this.options.ecmaVersion >= 16, i2 = e3.groupNames[e3.lastStringValue];
1443
+ if (i2) if (t3) for (var s2 = 0, r2 = i2; s2 < r2.length; s2 += 1) {
1444
+ r2[s2].separatedFrom(e3.branchID) || e3.raise("Duplicate capture group name");
1445
+ }
1446
+ else e3.raise("Duplicate capture group name");
1447
+ t3 ? (i2 || (e3.groupNames[e3.lastStringValue] = [])).push(e3.branchID) : e3.groupNames[e3.lastStringValue] = true;
1448
+ }
1449
+ }, he.regexp_eatGroupName = function(e3) {
1450
+ if (e3.lastStringValue = "", e3.eat(60)) {
1451
+ if (this.regexp_eatRegExpIdentifierName(e3) && e3.eat(62)) return true;
1452
+ e3.raise("Invalid capture group name");
1453
+ }
1454
+ return false;
1455
+ }, he.regexp_eatRegExpIdentifierName = function(e3) {
1456
+ if (e3.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e3)) {
1457
+ for (e3.lastStringValue += codePointToString(e3.lastIntValue); this.regexp_eatRegExpIdentifierPart(e3); ) e3.lastStringValue += codePointToString(e3.lastIntValue);
1458
+ return true;
1459
+ }
1460
+ return false;
1461
+ }, he.regexp_eatRegExpIdentifierStart = function(e3) {
1462
+ var t3 = e3.pos, i2 = this.options.ecmaVersion >= 11, s2 = e3.current(i2);
1463
+ return e3.advance(i2), 92 === s2 && this.regexp_eatRegExpUnicodeEscapeSequence(e3, i2) && (s2 = e3.lastIntValue), function(e4) {
1464
+ return isIdentifierStart(e4, true) || 36 === e4 || 95 === e4;
1465
+ }(s2) ? (e3.lastIntValue = s2, true) : (e3.pos = t3, false);
1466
+ }, he.regexp_eatRegExpIdentifierPart = function(e3) {
1467
+ var t3 = e3.pos, i2 = this.options.ecmaVersion >= 11, s2 = e3.current(i2);
1468
+ return e3.advance(i2), 92 === s2 && this.regexp_eatRegExpUnicodeEscapeSequence(e3, i2) && (s2 = e3.lastIntValue), function(e4) {
1469
+ return isIdentifierChar(e4, true) || 36 === e4 || 95 === e4 || 8204 === e4 || 8205 === e4;
1470
+ }(s2) ? (e3.lastIntValue = s2, true) : (e3.pos = t3, false);
1471
+ }, he.regexp_eatAtomEscape = function(e3) {
1472
+ return !!(this.regexp_eatBackReference(e3) || this.regexp_eatCharacterClassEscape(e3) || this.regexp_eatCharacterEscape(e3) || e3.switchN && this.regexp_eatKGroupName(e3)) || (e3.switchU && (99 === e3.current() && e3.raise("Invalid unicode escape"), e3.raise("Invalid escape")), false);
1473
+ }, he.regexp_eatBackReference = function(e3) {
1474
+ var t3 = e3.pos;
1475
+ if (this.regexp_eatDecimalEscape(e3)) {
1476
+ var i2 = e3.lastIntValue;
1477
+ if (e3.switchU) return i2 > e3.maxBackReference && (e3.maxBackReference = i2), true;
1478
+ if (i2 <= e3.numCapturingParens) return true;
1479
+ e3.pos = t3;
1480
+ }
1481
+ return false;
1482
+ }, he.regexp_eatKGroupName = function(e3) {
1483
+ if (e3.eat(107)) {
1484
+ if (this.regexp_eatGroupName(e3)) return e3.backReferenceNames.push(e3.lastStringValue), true;
1485
+ e3.raise("Invalid named reference");
1486
+ }
1487
+ return false;
1488
+ }, he.regexp_eatCharacterEscape = function(e3) {
1489
+ return this.regexp_eatControlEscape(e3) || this.regexp_eatCControlLetter(e3) || this.regexp_eatZero(e3) || this.regexp_eatHexEscapeSequence(e3) || this.regexp_eatRegExpUnicodeEscapeSequence(e3, false) || !e3.switchU && this.regexp_eatLegacyOctalEscapeSequence(e3) || this.regexp_eatIdentityEscape(e3);
1490
+ }, he.regexp_eatCControlLetter = function(e3) {
1491
+ var t3 = e3.pos;
1492
+ if (e3.eat(99)) {
1493
+ if (this.regexp_eatControlLetter(e3)) return true;
1494
+ e3.pos = t3;
1495
+ }
1496
+ return false;
1497
+ }, he.regexp_eatZero = function(e3) {
1498
+ return 48 === e3.current() && !isDecimalDigit(e3.lookahead()) && (e3.lastIntValue = 0, e3.advance(), true);
1499
+ }, he.regexp_eatControlEscape = function(e3) {
1500
+ var t3 = e3.current();
1501
+ return 116 === t3 ? (e3.lastIntValue = 9, e3.advance(), true) : 110 === t3 ? (e3.lastIntValue = 10, e3.advance(), true) : 118 === t3 ? (e3.lastIntValue = 11, e3.advance(), true) : 102 === t3 ? (e3.lastIntValue = 12, e3.advance(), true) : 114 === t3 && (e3.lastIntValue = 13, e3.advance(), true);
1502
+ }, he.regexp_eatControlLetter = function(e3) {
1503
+ var t3 = e3.current();
1504
+ return !!isControlLetter(t3) && (e3.lastIntValue = t3 % 32, e3.advance(), true);
1505
+ }, he.regexp_eatRegExpUnicodeEscapeSequence = function(e3, t3) {
1506
+ void 0 === t3 && (t3 = false);
1507
+ var i2, s2 = e3.pos, r2 = t3 || e3.switchU;
1508
+ if (e3.eat(117)) {
1509
+ if (this.regexp_eatFixedHexDigits(e3, 4)) {
1510
+ var n2 = e3.lastIntValue;
1511
+ if (r2 && n2 >= 55296 && n2 <= 56319) {
1512
+ var a2 = e3.pos;
1513
+ if (e3.eat(92) && e3.eat(117) && this.regexp_eatFixedHexDigits(e3, 4)) {
1514
+ var o2 = e3.lastIntValue;
1515
+ if (o2 >= 56320 && o2 <= 57343) return e3.lastIntValue = 1024 * (n2 - 55296) + (o2 - 56320) + 65536, true;
1516
+ }
1517
+ e3.pos = a2, e3.lastIntValue = n2;
1518
+ }
1519
+ return true;
1520
+ }
1521
+ if (r2 && e3.eat(123) && this.regexp_eatHexDigits(e3) && e3.eat(125) && ((i2 = e3.lastIntValue) >= 0 && i2 <= 1114111)) return true;
1522
+ r2 && e3.raise("Invalid unicode escape"), e3.pos = s2;
1523
+ }
1524
+ return false;
1525
+ }, he.regexp_eatIdentityEscape = function(e3) {
1526
+ if (e3.switchU) return !!this.regexp_eatSyntaxCharacter(e3) || !!e3.eat(47) && (e3.lastIntValue = 47, true);
1527
+ var t3 = e3.current();
1528
+ return !(99 === t3 || e3.switchN && 107 === t3) && (e3.lastIntValue = t3, e3.advance(), true);
1529
+ }, he.regexp_eatDecimalEscape = function(e3) {
1530
+ e3.lastIntValue = 0;
1531
+ var t3 = e3.current();
1532
+ if (t3 >= 49 && t3 <= 57) {
1533
+ do {
1534
+ e3.lastIntValue = 10 * e3.lastIntValue + (t3 - 48), e3.advance();
1535
+ } while ((t3 = e3.current()) >= 48 && t3 <= 57);
1536
+ return true;
1537
+ }
1538
+ return false;
1539
+ };
1540
+ function isUnicodePropertyNameCharacter(e3) {
1541
+ return isControlLetter(e3) || 95 === e3;
1542
+ }
1543
+ __name(isUnicodePropertyNameCharacter, "isUnicodePropertyNameCharacter");
1544
+ function isUnicodePropertyValueCharacter(e3) {
1545
+ return isUnicodePropertyNameCharacter(e3) || isDecimalDigit(e3);
1546
+ }
1547
+ __name(isUnicodePropertyValueCharacter, "isUnicodePropertyValueCharacter");
1548
+ function isDecimalDigit(e3) {
1549
+ return e3 >= 48 && e3 <= 57;
1550
+ }
1551
+ __name(isDecimalDigit, "isDecimalDigit");
1552
+ function isHexDigit(e3) {
1553
+ return e3 >= 48 && e3 <= 57 || e3 >= 65 && e3 <= 70 || e3 >= 97 && e3 <= 102;
1554
+ }
1555
+ __name(isHexDigit, "isHexDigit");
1556
+ function hexToInt(e3) {
1557
+ return e3 >= 65 && e3 <= 70 ? e3 - 65 + 10 : e3 >= 97 && e3 <= 102 ? e3 - 97 + 10 : e3 - 48;
1558
+ }
1559
+ __name(hexToInt, "hexToInt");
1560
+ function isOctalDigit(e3) {
1561
+ return e3 >= 48 && e3 <= 55;
1562
+ }
1563
+ __name(isOctalDigit, "isOctalDigit");
1564
+ he.regexp_eatCharacterClassEscape = function(e3) {
1565
+ var t3 = e3.current();
1566
+ if (/* @__PURE__ */ function(e4) {
1567
+ return 100 === e4 || 68 === e4 || 115 === e4 || 83 === e4 || 119 === e4 || 87 === e4;
1568
+ }(t3)) return e3.lastIntValue = -1, e3.advance(), 1;
1569
+ var i2 = false;
1570
+ if (e3.switchU && this.options.ecmaVersion >= 9 && ((i2 = 80 === t3) || 112 === t3)) {
1571
+ var s2;
1572
+ if (e3.lastIntValue = -1, e3.advance(), e3.eat(123) && (s2 = this.regexp_eatUnicodePropertyValueExpression(e3)) && e3.eat(125)) return i2 && 2 === s2 && e3.raise("Invalid property name"), s2;
1573
+ e3.raise("Invalid property name");
1574
+ }
1575
+ return 0;
1576
+ }, he.regexp_eatUnicodePropertyValueExpression = function(e3) {
1577
+ var t3 = e3.pos;
1578
+ if (this.regexp_eatUnicodePropertyName(e3) && e3.eat(61)) {
1579
+ var i2 = e3.lastStringValue;
1580
+ if (this.regexp_eatUnicodePropertyValue(e3)) {
1581
+ var s2 = e3.lastStringValue;
1582
+ return this.regexp_validateUnicodePropertyNameAndValue(e3, i2, s2), 1;
1583
+ }
1584
+ }
1585
+ if (e3.pos = t3, this.regexp_eatLoneUnicodePropertyNameOrValue(e3)) {
1586
+ var r2 = e3.lastStringValue;
1587
+ return this.regexp_validateUnicodePropertyNameOrValue(e3, r2);
1588
+ }
1589
+ return 0;
1590
+ }, he.regexp_validateUnicodePropertyNameAndValue = function(e3, t3, i2) {
1591
+ b(e3.unicodeProperties.nonBinary, t3) || e3.raise("Invalid property name"), e3.unicodeProperties.nonBinary[t3].test(i2) || e3.raise("Invalid property value");
1592
+ }, he.regexp_validateUnicodePropertyNameOrValue = function(e3, t3) {
1593
+ return e3.unicodeProperties.binary.test(t3) ? 1 : e3.switchV && e3.unicodeProperties.binaryOfStrings.test(t3) ? 2 : void e3.raise("Invalid property name");
1594
+ }, he.regexp_eatUnicodePropertyName = function(e3) {
1595
+ var t3 = 0;
1596
+ for (e3.lastStringValue = ""; isUnicodePropertyNameCharacter(t3 = e3.current()); ) e3.lastStringValue += codePointToString(t3), e3.advance();
1597
+ return "" !== e3.lastStringValue;
1598
+ }, he.regexp_eatUnicodePropertyValue = function(e3) {
1599
+ var t3 = 0;
1600
+ for (e3.lastStringValue = ""; isUnicodePropertyValueCharacter(t3 = e3.current()); ) e3.lastStringValue += codePointToString(t3), e3.advance();
1601
+ return "" !== e3.lastStringValue;
1602
+ }, he.regexp_eatLoneUnicodePropertyNameOrValue = function(e3) {
1603
+ return this.regexp_eatUnicodePropertyValue(e3);
1604
+ }, he.regexp_eatCharacterClass = function(e3) {
1605
+ if (e3.eat(91)) {
1606
+ var t3 = e3.eat(94), i2 = this.regexp_classContents(e3);
1607
+ return e3.eat(93) || e3.raise("Unterminated character class"), t3 && 2 === i2 && e3.raise("Negated character class may contain strings"), true;
1608
+ }
1609
+ return false;
1610
+ }, he.regexp_classContents = function(e3) {
1611
+ return 93 === e3.current() ? 1 : e3.switchV ? this.regexp_classSetExpression(e3) : (this.regexp_nonEmptyClassRanges(e3), 1);
1612
+ }, he.regexp_nonEmptyClassRanges = function(e3) {
1613
+ for (; this.regexp_eatClassAtom(e3); ) {
1614
+ var t3 = e3.lastIntValue;
1615
+ if (e3.eat(45) && this.regexp_eatClassAtom(e3)) {
1616
+ var i2 = e3.lastIntValue;
1617
+ !e3.switchU || -1 !== t3 && -1 !== i2 || e3.raise("Invalid character class"), -1 !== t3 && -1 !== i2 && t3 > i2 && e3.raise("Range out of order in character class");
1618
+ }
1619
+ }
1620
+ }, he.regexp_eatClassAtom = function(e3) {
1621
+ var t3 = e3.pos;
1622
+ if (e3.eat(92)) {
1623
+ if (this.regexp_eatClassEscape(e3)) return true;
1624
+ if (e3.switchU) {
1625
+ var i2 = e3.current();
1626
+ (99 === i2 || isOctalDigit(i2)) && e3.raise("Invalid class escape"), e3.raise("Invalid escape");
1627
+ }
1628
+ e3.pos = t3;
1629
+ }
1630
+ var s2 = e3.current();
1631
+ return 93 !== s2 && (e3.lastIntValue = s2, e3.advance(), true);
1632
+ }, he.regexp_eatClassEscape = function(e3) {
1633
+ var t3 = e3.pos;
1634
+ if (e3.eat(98)) return e3.lastIntValue = 8, true;
1635
+ if (e3.switchU && e3.eat(45)) return e3.lastIntValue = 45, true;
1636
+ if (!e3.switchU && e3.eat(99)) {
1637
+ if (this.regexp_eatClassControlLetter(e3)) return true;
1638
+ e3.pos = t3;
1639
+ }
1640
+ return this.regexp_eatCharacterClassEscape(e3) || this.regexp_eatCharacterEscape(e3);
1641
+ }, he.regexp_classSetExpression = function(e3) {
1642
+ var t3, i2 = 1;
1643
+ if (this.regexp_eatClassSetRange(e3)) ;
1644
+ else if (t3 = this.regexp_eatClassSetOperand(e3)) {
1645
+ 2 === t3 && (i2 = 2);
1646
+ for (var s2 = e3.pos; e3.eatChars([38, 38]); ) 38 !== e3.current() && (t3 = this.regexp_eatClassSetOperand(e3)) ? 2 !== t3 && (i2 = 1) : e3.raise("Invalid character in character class");
1647
+ if (s2 !== e3.pos) return i2;
1648
+ for (; e3.eatChars([45, 45]); ) this.regexp_eatClassSetOperand(e3) || e3.raise("Invalid character in character class");
1649
+ if (s2 !== e3.pos) return i2;
1650
+ } else e3.raise("Invalid character in character class");
1651
+ for (; ; ) if (!this.regexp_eatClassSetRange(e3)) {
1652
+ if (!(t3 = this.regexp_eatClassSetOperand(e3))) return i2;
1653
+ 2 === t3 && (i2 = 2);
1654
+ }
1655
+ }, he.regexp_eatClassSetRange = function(e3) {
1656
+ var t3 = e3.pos;
1657
+ if (this.regexp_eatClassSetCharacter(e3)) {
1658
+ var i2 = e3.lastIntValue;
1659
+ if (e3.eat(45) && this.regexp_eatClassSetCharacter(e3)) {
1660
+ var s2 = e3.lastIntValue;
1661
+ return -1 !== i2 && -1 !== s2 && i2 > s2 && e3.raise("Range out of order in character class"), true;
1662
+ }
1663
+ e3.pos = t3;
1664
+ }
1665
+ return false;
1666
+ }, he.regexp_eatClassSetOperand = function(e3) {
1667
+ return this.regexp_eatClassSetCharacter(e3) ? 1 : this.regexp_eatClassStringDisjunction(e3) || this.regexp_eatNestedClass(e3);
1668
+ }, he.regexp_eatNestedClass = function(e3) {
1669
+ var t3 = e3.pos;
1670
+ if (e3.eat(91)) {
1671
+ var i2 = e3.eat(94), s2 = this.regexp_classContents(e3);
1672
+ if (e3.eat(93)) return i2 && 2 === s2 && e3.raise("Negated character class may contain strings"), s2;
1673
+ e3.pos = t3;
1674
+ }
1675
+ if (e3.eat(92)) {
1676
+ var r2 = this.regexp_eatCharacterClassEscape(e3);
1677
+ if (r2) return r2;
1678
+ e3.pos = t3;
1679
+ }
1680
+ return null;
1681
+ }, he.regexp_eatClassStringDisjunction = function(e3) {
1682
+ var t3 = e3.pos;
1683
+ if (e3.eatChars([92, 113])) {
1684
+ if (e3.eat(123)) {
1685
+ var i2 = this.regexp_classStringDisjunctionContents(e3);
1686
+ if (e3.eat(125)) return i2;
1687
+ } else e3.raise("Invalid escape");
1688
+ e3.pos = t3;
1689
+ }
1690
+ return null;
1691
+ }, he.regexp_classStringDisjunctionContents = function(e3) {
1692
+ for (var t3 = this.regexp_classString(e3); e3.eat(124); ) 2 === this.regexp_classString(e3) && (t3 = 2);
1693
+ return t3;
1694
+ }, he.regexp_classString = function(e3) {
1695
+ for (var t3 = 0; this.regexp_eatClassSetCharacter(e3); ) t3++;
1696
+ return 1 === t3 ? 1 : 2;
1697
+ }, he.regexp_eatClassSetCharacter = function(e3) {
1698
+ var t3 = e3.pos;
1699
+ if (e3.eat(92)) return !(!this.regexp_eatCharacterEscape(e3) && !this.regexp_eatClassSetReservedPunctuator(e3)) || (e3.eat(98) ? (e3.lastIntValue = 8, true) : (e3.pos = t3, false));
1700
+ var i2 = e3.current();
1701
+ return !(i2 < 0 || i2 === e3.lookahead() && function(e4) {
1702
+ return 33 === e4 || e4 >= 35 && e4 <= 38 || e4 >= 42 && e4 <= 44 || 46 === e4 || e4 >= 58 && e4 <= 64 || 94 === e4 || 96 === e4 || 126 === e4;
1703
+ }(i2)) && (!function(e4) {
1704
+ return 40 === e4 || 41 === e4 || 45 === e4 || 47 === e4 || e4 >= 91 && e4 <= 93 || e4 >= 123 && e4 <= 125;
1705
+ }(i2) && (e3.advance(), e3.lastIntValue = i2, true));
1706
+ }, he.regexp_eatClassSetReservedPunctuator = function(e3) {
1707
+ var t3 = e3.current();
1708
+ return !!function(e4) {
1709
+ return 33 === e4 || 35 === e4 || 37 === e4 || 38 === e4 || 44 === e4 || 45 === e4 || e4 >= 58 && e4 <= 62 || 64 === e4 || 96 === e4 || 126 === e4;
1710
+ }(t3) && (e3.lastIntValue = t3, e3.advance(), true);
1711
+ }, he.regexp_eatClassControlLetter = function(e3) {
1712
+ var t3 = e3.current();
1713
+ return !(!isDecimalDigit(t3) && 95 !== t3) && (e3.lastIntValue = t3 % 32, e3.advance(), true);
1714
+ }, he.regexp_eatHexEscapeSequence = function(e3) {
1715
+ var t3 = e3.pos;
1716
+ if (e3.eat(120)) {
1717
+ if (this.regexp_eatFixedHexDigits(e3, 2)) return true;
1718
+ e3.switchU && e3.raise("Invalid escape"), e3.pos = t3;
1719
+ }
1720
+ return false;
1721
+ }, he.regexp_eatDecimalDigits = function(e3) {
1722
+ var t3 = e3.pos, i2 = 0;
1723
+ for (e3.lastIntValue = 0; isDecimalDigit(i2 = e3.current()); ) e3.lastIntValue = 10 * e3.lastIntValue + (i2 - 48), e3.advance();
1724
+ return e3.pos !== t3;
1725
+ }, he.regexp_eatHexDigits = function(e3) {
1726
+ var t3 = e3.pos, i2 = 0;
1727
+ for (e3.lastIntValue = 0; isHexDigit(i2 = e3.current()); ) e3.lastIntValue = 16 * e3.lastIntValue + hexToInt(i2), e3.advance();
1728
+ return e3.pos !== t3;
1729
+ }, he.regexp_eatLegacyOctalEscapeSequence = function(e3) {
1730
+ if (this.regexp_eatOctalDigit(e3)) {
1731
+ var t3 = e3.lastIntValue;
1732
+ if (this.regexp_eatOctalDigit(e3)) {
1733
+ var i2 = e3.lastIntValue;
1734
+ t3 <= 3 && this.regexp_eatOctalDigit(e3) ? e3.lastIntValue = 64 * t3 + 8 * i2 + e3.lastIntValue : e3.lastIntValue = 8 * t3 + i2;
1735
+ } else e3.lastIntValue = t3;
1736
+ return true;
1737
+ }
1738
+ return false;
1739
+ }, he.regexp_eatOctalDigit = function(e3) {
1740
+ var t3 = e3.current();
1741
+ return isOctalDigit(t3) ? (e3.lastIntValue = t3 - 48, e3.advance(), true) : (e3.lastIntValue = 0, false);
1742
+ }, he.regexp_eatFixedHexDigits = function(e3, t3) {
1743
+ var i2 = e3.pos;
1744
+ e3.lastIntValue = 0;
1745
+ for (var s2 = 0; s2 < t3; ++s2) {
1746
+ var r2 = e3.current();
1747
+ if (!isHexDigit(r2)) return e3.pos = i2, false;
1748
+ e3.lastIntValue = 16 * e3.lastIntValue + hexToInt(r2), e3.advance();
1749
+ }
1750
+ return true;
1751
+ };
1752
+ var acorn_Token = /* @__PURE__ */ __name(function(e3) {
1753
+ this.type = e3.type, this.value = e3.value, this.start = e3.start, this.end = e3.end, e3.options.locations && (this.loc = new acorn_SourceLocation(e3, e3.startLoc, e3.endLoc)), e3.options.ranges && (this.range = [e3.start, e3.end]);
1754
+ }, "acorn_Token"), ce = acorn_Parser.prototype;
1755
+ function stringToBigInt(e3) {
1756
+ return "function" != typeof BigInt ? null : BigInt(e3.replace(/_/g, ""));
1757
+ }
1758
+ __name(stringToBigInt, "stringToBigInt");
1759
+ ce.next = function(e3) {
1760
+ !e3 && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new acorn_Token(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
1761
+ }, ce.getToken = function() {
1762
+ return this.next(), new acorn_Token(this);
1763
+ }, "undefined" != typeof Symbol && (ce[Symbol.iterator] = function() {
1764
+ var e3 = this;
1765
+ return { next: /* @__PURE__ */ __name(function() {
1766
+ var t3 = e3.getToken();
1767
+ return { done: t3.type === f.eof, value: t3 };
1768
+ }, "next") };
1769
+ }), ce.nextToken = function() {
1770
+ var e3 = this.curContext();
1771
+ return e3 && e3.preserveSpace || this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length ? this.finishToken(f.eof) : e3.override ? e3.override(this) : void this.readToken(this.fullCharCodeAtPos());
1772
+ }, ce.readToken = function(e3) {
1773
+ return isIdentifierStart(e3, this.options.ecmaVersion >= 6) || 92 === e3 ? this.readWord() : this.getTokenFromCode(e3);
1774
+ }, ce.fullCharCodeAtPos = function() {
1775
+ var e3 = this.input.charCodeAt(this.pos);
1776
+ if (e3 <= 55295 || e3 >= 56320) return e3;
1777
+ var t3 = this.input.charCodeAt(this.pos + 1);
1778
+ return t3 <= 56319 || t3 >= 57344 ? e3 : (e3 << 10) + t3 - 56613888;
1779
+ }, ce.skipBlockComment = function() {
1780
+ var e3 = this.options.onComment && this.curPosition(), t3 = this.pos, i2 = this.input.indexOf("*/", this.pos += 2);
1781
+ if (-1 === i2 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i2 + 2, this.options.locations) for (var s2 = void 0, r2 = t3; (s2 = nextLineBreak(this.input, r2, this.pos)) > -1; ) ++this.curLine, r2 = this.lineStart = s2;
1782
+ this.options.onComment && this.options.onComment(true, this.input.slice(t3 + 2, i2), t3, this.pos, e3, this.curPosition());
1783
+ }, ce.skipLineComment = function(e3) {
1784
+ for (var t3 = this.pos, i2 = this.options.onComment && this.curPosition(), s2 = this.input.charCodeAt(this.pos += e3); this.pos < this.input.length && !isNewLine(s2); ) s2 = this.input.charCodeAt(++this.pos);
1785
+ this.options.onComment && this.options.onComment(false, this.input.slice(t3 + e3, this.pos), t3, this.pos, i2, this.curPosition());
1786
+ }, ce.skipSpace = function() {
1787
+ e: for (; this.pos < this.input.length; ) {
1788
+ var e3 = this.input.charCodeAt(this.pos);
1789
+ switch (e3) {
1790
+ case 32:
1791
+ case 160:
1792
+ ++this.pos;
1793
+ break;
1794
+ case 13:
1795
+ 10 === this.input.charCodeAt(this.pos + 1) && ++this.pos;
1796
+ case 10:
1797
+ case 8232:
1798
+ case 8233:
1799
+ ++this.pos, this.options.locations && (++this.curLine, this.lineStart = this.pos);
1800
+ break;
1801
+ case 47:
1802
+ switch (this.input.charCodeAt(this.pos + 1)) {
1803
+ case 42:
1804
+ this.skipBlockComment();
1805
+ break;
1806
+ case 47:
1807
+ this.skipLineComment(2);
1808
+ break;
1809
+ default:
1810
+ break e;
1811
+ }
1812
+ break;
1813
+ default:
1814
+ if (!(e3 > 8 && e3 < 14 || e3 >= 5760 && x.test(String.fromCharCode(e3)))) break e;
1815
+ ++this.pos;
1816
+ }
1817
+ }
1818
+ }, ce.finishToken = function(e3, t3) {
1819
+ this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
1820
+ var i2 = this.type;
1821
+ this.type = e3, this.value = t3, this.updateContext(i2);
1822
+ }, ce.readToken_dot = function() {
1823
+ var e3 = this.input.charCodeAt(this.pos + 1);
1824
+ if (e3 >= 48 && e3 <= 57) return this.readNumber(true);
1825
+ var t3 = this.input.charCodeAt(this.pos + 2);
1826
+ return this.options.ecmaVersion >= 6 && 46 === e3 && 46 === t3 ? (this.pos += 3, this.finishToken(f.ellipsis)) : (++this.pos, this.finishToken(f.dot));
1827
+ }, ce.readToken_slash = function() {
1828
+ var e3 = this.input.charCodeAt(this.pos + 1);
1829
+ return this.exprAllowed ? (++this.pos, this.readRegexp()) : 61 === e3 ? this.finishOp(f.assign, 2) : this.finishOp(f.slash, 1);
1830
+ }, ce.readToken_mult_modulo_exp = function(e3) {
1831
+ var t3 = this.input.charCodeAt(this.pos + 1), i2 = 1, s2 = 42 === e3 ? f.star : f.modulo;
1832
+ return this.options.ecmaVersion >= 7 && 42 === e3 && 42 === t3 && (++i2, s2 = f.starstar, t3 = this.input.charCodeAt(this.pos + 2)), 61 === t3 ? this.finishOp(f.assign, i2 + 1) : this.finishOp(s2, i2);
1833
+ }, ce.readToken_pipe_amp = function(e3) {
1834
+ var t3 = this.input.charCodeAt(this.pos + 1);
1835
+ if (t3 === e3) {
1836
+ if (this.options.ecmaVersion >= 12) {
1837
+ if (61 === this.input.charCodeAt(this.pos + 2)) return this.finishOp(f.assign, 3);
1838
+ }
1839
+ return this.finishOp(124 === e3 ? f.logicalOR : f.logicalAND, 2);
1840
+ }
1841
+ return 61 === t3 ? this.finishOp(f.assign, 2) : this.finishOp(124 === e3 ? f.bitwiseOR : f.bitwiseAND, 1);
1842
+ }, ce.readToken_caret = function() {
1843
+ return 61 === this.input.charCodeAt(this.pos + 1) ? this.finishOp(f.assign, 2) : this.finishOp(f.bitwiseXOR, 1);
1844
+ }, ce.readToken_plus_min = function(e3) {
1845
+ var t3 = this.input.charCodeAt(this.pos + 1);
1846
+ return t3 === e3 ? 45 !== t3 || this.inModule || 62 !== this.input.charCodeAt(this.pos + 2) || 0 !== this.lastTokEnd && !m.test(this.input.slice(this.lastTokEnd, this.pos)) ? this.finishOp(f.incDec, 2) : (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : 61 === t3 ? this.finishOp(f.assign, 2) : this.finishOp(f.plusMin, 1);
1847
+ }, ce.readToken_lt_gt = function(e3) {
1848
+ var t3 = this.input.charCodeAt(this.pos + 1), i2 = 1;
1849
+ return t3 === e3 ? (i2 = 62 === e3 && 62 === this.input.charCodeAt(this.pos + 2) ? 3 : 2, 61 === this.input.charCodeAt(this.pos + i2) ? this.finishOp(f.assign, i2 + 1) : this.finishOp(f.bitShift, i2)) : 33 !== t3 || 60 !== e3 || this.inModule || 45 !== this.input.charCodeAt(this.pos + 2) || 45 !== this.input.charCodeAt(this.pos + 3) ? (61 === t3 && (i2 = 2), this.finishOp(f.relational, i2)) : (this.skipLineComment(4), this.skipSpace(), this.nextToken());
1850
+ }, ce.readToken_eq_excl = function(e3) {
1851
+ var t3 = this.input.charCodeAt(this.pos + 1);
1852
+ return 61 === t3 ? this.finishOp(f.equality, 61 === this.input.charCodeAt(this.pos + 2) ? 3 : 2) : 61 === e3 && 62 === t3 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(f.arrow)) : this.finishOp(61 === e3 ? f.eq : f.prefix, 1);
1853
+ }, ce.readToken_question = function() {
1854
+ var e3 = this.options.ecmaVersion;
1855
+ if (e3 >= 11) {
1856
+ var t3 = this.input.charCodeAt(this.pos + 1);
1857
+ if (46 === t3) {
1858
+ var i2 = this.input.charCodeAt(this.pos + 2);
1859
+ if (i2 < 48 || i2 > 57) return this.finishOp(f.questionDot, 2);
1860
+ }
1861
+ if (63 === t3) {
1862
+ if (e3 >= 12) {
1863
+ if (61 === this.input.charCodeAt(this.pos + 2)) return this.finishOp(f.assign, 3);
1864
+ }
1865
+ return this.finishOp(f.coalesce, 2);
1866
+ }
1867
+ }
1868
+ return this.finishOp(f.question, 1);
1869
+ }, ce.readToken_numberSign = function() {
1870
+ var e3 = 35;
1871
+ if (this.options.ecmaVersion >= 13 && (++this.pos, isIdentifierStart(e3 = this.fullCharCodeAtPos(), true) || 92 === e3)) return this.finishToken(f.privateId, this.readWord1());
1872
+ this.raise(this.pos, "Unexpected character '" + codePointToString(e3) + "'");
1873
+ }, ce.getTokenFromCode = function(e3) {
1874
+ switch (e3) {
1875
+ case 46:
1876
+ return this.readToken_dot();
1877
+ case 40:
1878
+ return ++this.pos, this.finishToken(f.parenL);
1879
+ case 41:
1880
+ return ++this.pos, this.finishToken(f.parenR);
1881
+ case 59:
1882
+ return ++this.pos, this.finishToken(f.semi);
1883
+ case 44:
1884
+ return ++this.pos, this.finishToken(f.comma);
1885
+ case 91:
1886
+ return ++this.pos, this.finishToken(f.bracketL);
1887
+ case 93:
1888
+ return ++this.pos, this.finishToken(f.bracketR);
1889
+ case 123:
1890
+ return ++this.pos, this.finishToken(f.braceL);
1891
+ case 125:
1892
+ return ++this.pos, this.finishToken(f.braceR);
1893
+ case 58:
1894
+ return ++this.pos, this.finishToken(f.colon);
1895
+ case 96:
1896
+ if (this.options.ecmaVersion < 6) break;
1897
+ return ++this.pos, this.finishToken(f.backQuote);
1898
+ case 48:
1899
+ var t3 = this.input.charCodeAt(this.pos + 1);
1900
+ if (120 === t3 || 88 === t3) return this.readRadixNumber(16);
1901
+ if (this.options.ecmaVersion >= 6) {
1902
+ if (111 === t3 || 79 === t3) return this.readRadixNumber(8);
1903
+ if (98 === t3 || 66 === t3) return this.readRadixNumber(2);
1904
+ }
1905
+ case 49:
1906
+ case 50:
1907
+ case 51:
1908
+ case 52:
1909
+ case 53:
1910
+ case 54:
1911
+ case 55:
1912
+ case 56:
1913
+ case 57:
1914
+ return this.readNumber(false);
1915
+ case 34:
1916
+ case 39:
1917
+ return this.readString(e3);
1918
+ case 47:
1919
+ return this.readToken_slash();
1920
+ case 37:
1921
+ case 42:
1922
+ return this.readToken_mult_modulo_exp(e3);
1923
+ case 124:
1924
+ case 38:
1925
+ return this.readToken_pipe_amp(e3);
1926
+ case 94:
1927
+ return this.readToken_caret();
1928
+ case 43:
1929
+ case 45:
1930
+ return this.readToken_plus_min(e3);
1931
+ case 60:
1932
+ case 62:
1933
+ return this.readToken_lt_gt(e3);
1934
+ case 61:
1935
+ case 33:
1936
+ return this.readToken_eq_excl(e3);
1937
+ case 63:
1938
+ return this.readToken_question();
1939
+ case 126:
1940
+ return this.finishOp(f.prefix, 1);
1941
+ case 35:
1942
+ return this.readToken_numberSign();
1943
+ }
1944
+ this.raise(this.pos, "Unexpected character '" + codePointToString(e3) + "'");
1945
+ }, ce.finishOp = function(e3, t3) {
1946
+ var i2 = this.input.slice(this.pos, this.pos + t3);
1947
+ return this.pos += t3, this.finishToken(e3, i2);
1948
+ }, ce.readRegexp = function() {
1949
+ for (var e3, t3, i2 = this.pos; ; ) {
1950
+ this.pos >= this.input.length && this.raise(i2, "Unterminated regular expression");
1951
+ var s2 = this.input.charAt(this.pos);
1952
+ if (m.test(s2) && this.raise(i2, "Unterminated regular expression"), e3) e3 = false;
1953
+ else {
1954
+ if ("[" === s2) t3 = true;
1955
+ else if ("]" === s2 && t3) t3 = false;
1956
+ else if ("/" === s2 && !t3) break;
1957
+ e3 = "\\" === s2;
1958
+ }
1959
+ ++this.pos;
1960
+ }
1961
+ var r2 = this.input.slice(i2, this.pos);
1962
+ ++this.pos;
1963
+ var n2 = this.pos, a2 = this.readWord1();
1964
+ this.containsEsc && this.unexpected(n2);
1965
+ var o2 = this.regexpState || (this.regexpState = new acorn_RegExpValidationState(this));
1966
+ o2.reset(i2, r2, a2), this.validateRegExpFlags(o2), this.validateRegExpPattern(o2);
1967
+ var h2 = null;
1968
+ try {
1969
+ h2 = new RegExp(r2, a2);
1970
+ } catch (e4) {
1971
+ }
1972
+ return this.finishToken(f.regexp, { pattern: r2, flags: a2, value: h2 });
1973
+ }, ce.readInt = function(e3, t3, i2) {
1974
+ for (var s2 = this.options.ecmaVersion >= 12 && void 0 === t3, r2 = i2 && 48 === this.input.charCodeAt(this.pos), n2 = this.pos, a2 = 0, o2 = 0, h2 = 0, c2 = null == t3 ? 1 / 0 : t3; h2 < c2; ++h2, ++this.pos) {
1975
+ var p2 = this.input.charCodeAt(this.pos), l2 = void 0;
1976
+ if (s2 && 95 === p2) r2 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), 95 === o2 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), 0 === h2 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), o2 = p2;
1977
+ else {
1978
+ if ((l2 = p2 >= 97 ? p2 - 97 + 10 : p2 >= 65 ? p2 - 65 + 10 : p2 >= 48 && p2 <= 57 ? p2 - 48 : 1 / 0) >= e3) break;
1979
+ o2 = p2, a2 = a2 * e3 + l2;
1980
+ }
1981
+ }
1982
+ return s2 && 95 === o2 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === n2 || null != t3 && this.pos - n2 !== t3 ? null : a2;
1983
+ }, ce.readRadixNumber = function(e3) {
1984
+ var t3 = this.pos;
1985
+ this.pos += 2;
1986
+ var i2 = this.readInt(e3);
1987
+ return null == i2 && this.raise(this.start + 2, "Expected number in radix " + e3), this.options.ecmaVersion >= 11 && 110 === this.input.charCodeAt(this.pos) ? (i2 = stringToBigInt(this.input.slice(t3, this.pos)), ++this.pos) : isIdentifierStart(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(f.num, i2);
1988
+ }, ce.readNumber = function(e3) {
1989
+ var t3 = this.pos;
1990
+ e3 || null !== this.readInt(10, void 0, true) || this.raise(t3, "Invalid number");
1991
+ var i2 = this.pos - t3 >= 2 && 48 === this.input.charCodeAt(t3);
1992
+ i2 && this.strict && this.raise(t3, "Invalid number");
1993
+ var s2 = this.input.charCodeAt(this.pos);
1994
+ if (!i2 && !e3 && this.options.ecmaVersion >= 11 && 110 === s2) {
1995
+ var r2 = stringToBigInt(this.input.slice(t3, this.pos));
1996
+ return ++this.pos, isIdentifierStart(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(f.num, r2);
1997
+ }
1998
+ i2 && /[89]/.test(this.input.slice(t3, this.pos)) && (i2 = false), 46 !== s2 || i2 || (++this.pos, this.readInt(10), s2 = this.input.charCodeAt(this.pos)), 69 !== s2 && 101 !== s2 || i2 || (43 !== (s2 = this.input.charCodeAt(++this.pos)) && 45 !== s2 || ++this.pos, null === this.readInt(10) && this.raise(t3, "Invalid number")), isIdentifierStart(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
1999
+ var n2, a2 = (n2 = this.input.slice(t3, this.pos), i2 ? parseInt(n2, 8) : parseFloat(n2.replace(/_/g, "")));
2000
+ return this.finishToken(f.num, a2);
2001
+ }, ce.readCodePoint = function() {
2002
+ var e3;
2003
+ if (123 === this.input.charCodeAt(this.pos)) {
2004
+ this.options.ecmaVersion < 6 && this.unexpected();
2005
+ var t3 = ++this.pos;
2006
+ e3 = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, e3 > 1114111 && this.invalidStringToken(t3, "Code point out of bounds");
2007
+ } else e3 = this.readHexChar(4);
2008
+ return e3;
2009
+ }, ce.readString = function(e3) {
2010
+ for (var t3 = "", i2 = ++this.pos; ; ) {
2011
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
2012
+ var s2 = this.input.charCodeAt(this.pos);
2013
+ if (s2 === e3) break;
2014
+ 92 === s2 ? (t3 += this.input.slice(i2, this.pos), t3 += this.readEscapedChar(false), i2 = this.pos) : 8232 === s2 || 8233 === s2 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (isNewLine(s2) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
2015
+ }
2016
+ return t3 += this.input.slice(i2, this.pos++), this.finishToken(f.string, t3);
2017
+ };
2018
+ var pe = {};
2019
+ ce.tryReadTemplateToken = function() {
2020
+ this.inTemplateElement = true;
2021
+ try {
2022
+ this.readTmplToken();
2023
+ } catch (e3) {
2024
+ if (e3 !== pe) throw e3;
2025
+ this.readInvalidTemplateToken();
2026
+ }
2027
+ this.inTemplateElement = false;
2028
+ }, ce.invalidStringToken = function(e3, t3) {
2029
+ if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw pe;
2030
+ this.raise(e3, t3);
2031
+ }, ce.readTmplToken = function() {
2032
+ for (var e3 = "", t3 = this.pos; ; ) {
2033
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
2034
+ var i2 = this.input.charCodeAt(this.pos);
2035
+ if (96 === i2 || 36 === i2 && 123 === this.input.charCodeAt(this.pos + 1)) return this.pos !== this.start || this.type !== f.template && this.type !== f.invalidTemplate ? (e3 += this.input.slice(t3, this.pos), this.finishToken(f.template, e3)) : 36 === i2 ? (this.pos += 2, this.finishToken(f.dollarBraceL)) : (++this.pos, this.finishToken(f.backQuote));
2036
+ if (92 === i2) e3 += this.input.slice(t3, this.pos), e3 += this.readEscapedChar(true), t3 = this.pos;
2037
+ else if (isNewLine(i2)) {
2038
+ switch (e3 += this.input.slice(t3, this.pos), ++this.pos, i2) {
2039
+ case 13:
2040
+ 10 === this.input.charCodeAt(this.pos) && ++this.pos;
2041
+ case 10:
2042
+ e3 += "\n";
2043
+ break;
2044
+ default:
2045
+ e3 += String.fromCharCode(i2);
2046
+ }
2047
+ this.options.locations && (++this.curLine, this.lineStart = this.pos), t3 = this.pos;
2048
+ } else ++this.pos;
2049
+ }
2050
+ }, ce.readInvalidTemplateToken = function() {
2051
+ for (; this.pos < this.input.length; this.pos++) switch (this.input[this.pos]) {
2052
+ case "\\":
2053
+ ++this.pos;
2054
+ break;
2055
+ case "$":
2056
+ if ("{" !== this.input[this.pos + 1]) break;
2057
+ case "`":
2058
+ return this.finishToken(f.invalidTemplate, this.input.slice(this.start, this.pos));
2059
+ case "\r":
2060
+ "\n" === this.input[this.pos + 1] && ++this.pos;
2061
+ case "\n":
2062
+ case "\u2028":
2063
+ case "\u2029":
2064
+ ++this.curLine, this.lineStart = this.pos + 1;
2065
+ }
2066
+ this.raise(this.start, "Unterminated template");
2067
+ }, ce.readEscapedChar = function(e3) {
2068
+ var t3 = this.input.charCodeAt(++this.pos);
2069
+ switch (++this.pos, t3) {
2070
+ case 110:
2071
+ return "\n";
2072
+ case 114:
2073
+ return "\r";
2074
+ case 120:
2075
+ return String.fromCharCode(this.readHexChar(2));
2076
+ case 117:
2077
+ return codePointToString(this.readCodePoint());
2078
+ case 116:
2079
+ return " ";
2080
+ case 98:
2081
+ return "\b";
2082
+ case 118:
2083
+ return "\v";
2084
+ case 102:
2085
+ return "\f";
2086
+ case 13:
2087
+ 10 === this.input.charCodeAt(this.pos) && ++this.pos;
2088
+ case 10:
2089
+ return this.options.locations && (this.lineStart = this.pos, ++this.curLine), "";
2090
+ case 56:
2091
+ case 57:
2092
+ if (this.strict && this.invalidStringToken(this.pos - 1, "Invalid escape sequence"), e3) {
2093
+ var i2 = this.pos - 1;
2094
+ this.invalidStringToken(i2, "Invalid escape sequence in template string");
2095
+ }
2096
+ default:
2097
+ if (t3 >= 48 && t3 <= 55) {
2098
+ var s2 = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], r2 = parseInt(s2, 8);
2099
+ return r2 > 255 && (s2 = s2.slice(0, -1), r2 = parseInt(s2, 8)), this.pos += s2.length - 1, t3 = this.input.charCodeAt(this.pos), "0" === s2 && 56 !== t3 && 57 !== t3 || !this.strict && !e3 || this.invalidStringToken(this.pos - 1 - s2.length, e3 ? "Octal literal in template string" : "Octal literal in strict mode"), String.fromCharCode(r2);
2100
+ }
2101
+ return isNewLine(t3) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t3);
2102
+ }
2103
+ }, ce.readHexChar = function(e3) {
2104
+ var t3 = this.pos, i2 = this.readInt(16, e3);
2105
+ return null === i2 && this.invalidStringToken(t3, "Bad character escape sequence"), i2;
2106
+ }, ce.readWord1 = function() {
2107
+ this.containsEsc = false;
2108
+ for (var e3 = "", t3 = true, i2 = this.pos, s2 = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
2109
+ var r2 = this.fullCharCodeAtPos();
2110
+ if (isIdentifierChar(r2, s2)) this.pos += r2 <= 65535 ? 1 : 2;
2111
+ else {
2112
+ if (92 !== r2) break;
2113
+ this.containsEsc = true, e3 += this.input.slice(i2, this.pos);
2114
+ var n2 = this.pos;
2115
+ 117 !== this.input.charCodeAt(++this.pos) && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
2116
+ var a2 = this.readCodePoint();
2117
+ (t3 ? isIdentifierStart : isIdentifierChar)(a2, s2) || this.invalidStringToken(n2, "Invalid Unicode escape"), e3 += codePointToString(a2), i2 = this.pos;
2118
+ }
2119
+ t3 = false;
2120
+ }
2121
+ return e3 + this.input.slice(i2, this.pos);
2122
+ }, ce.readWord = function() {
2123
+ var e3 = this.readWord1(), t3 = f.name;
2124
+ return this.keywords.test(e3) && (t3 = d[e3]), this.finishToken(t3, e3);
2125
+ };
2126
+ acorn_Parser.acorn = { Parser: acorn_Parser, version: "8.15.0", defaultOptions: I, Position: acorn_Position, SourceLocation: acorn_SourceLocation, getLineInfo, Node: acorn_Node, TokenType: acorn_TokenType, tokTypes: f, keywordTypes: d, TokContext: acorn_TokContext, tokContexts: F, isIdentifierChar, isIdentifierStart, Token: acorn_Token, isNewLine, lineBreak: m, lineBreakG: g, nonASCIIwhitespace: x };
2127
+ const le = __require("node:module"), ue = __require("node:fs");
2128
+ String.fromCharCode;
2129
+ const de = /\/$|\/\?|\/#/, fe = /^\.?\//;
2130
+ function hasTrailingSlash(e3 = "", t3) {
2131
+ return t3 ? de.test(e3) : e3.endsWith("/");
2132
+ }
2133
+ __name(hasTrailingSlash, "hasTrailingSlash");
2134
+ function withTrailingSlash(e3 = "", t3) {
2135
+ if (!t3) return e3.endsWith("/") ? e3 : e3 + "/";
2136
+ if (hasTrailingSlash(e3, true)) return e3 || "/";
2137
+ let i2 = e3, s2 = "";
2138
+ const r2 = e3.indexOf("#");
2139
+ if (-1 !== r2 && (i2 = e3.slice(0, r2), s2 = e3.slice(r2), !i2)) return s2;
2140
+ const [n2, ...a2] = i2.split("?");
2141
+ return n2 + "/" + (a2.length > 0 ? `?${a2.join("?")}` : "") + s2;
2142
+ }
2143
+ __name(withTrailingSlash, "withTrailingSlash");
2144
+ function isNonEmptyURL(e3) {
2145
+ return e3 && "/" !== e3;
2146
+ }
2147
+ __name(isNonEmptyURL, "isNonEmptyURL");
2148
+ function dist_joinURL(e3, ...t3) {
2149
+ let i2 = e3 || "";
2150
+ for (const e4 of t3.filter((e5) => isNonEmptyURL(e5))) if (i2) {
2151
+ const t4 = e4.replace(fe, "");
2152
+ i2 = withTrailingSlash(i2) + t4;
2153
+ } else i2 = e4;
2154
+ return i2;
2155
+ }
2156
+ __name(dist_joinURL, "dist_joinURL");
2157
+ Symbol.for("ufo:protocolRelative");
2158
+ const me = /^[A-Za-z]:\//;
2159
+ function pathe_M_eThtNZ_normalizeWindowsPath(e3 = "") {
2160
+ return e3 ? e3.replace(/\\/g, "/").replace(me, (e4) => e4.toUpperCase()) : e3;
2161
+ }
2162
+ __name(pathe_M_eThtNZ_normalizeWindowsPath, "pathe_M_eThtNZ_normalizeWindowsPath");
2163
+ const ge = /^[/\\]{2}/, xe = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/, ve = /^[A-Za-z]:$/, ye = /.(\.[^./]+|\.)$/, pathe_M_eThtNZ_normalize = /* @__PURE__ */ __name(function(e3) {
2164
+ if (0 === e3.length) return ".";
2165
+ const t3 = (e3 = pathe_M_eThtNZ_normalizeWindowsPath(e3)).match(ge), i2 = isAbsolute(e3), s2 = "/" === e3[e3.length - 1];
2166
+ return 0 === (e3 = normalizeString(e3, !i2)).length ? i2 ? "/" : s2 ? "./" : "." : (s2 && (e3 += "/"), ve.test(e3) && (e3 += "/"), t3 ? i2 ? `//${e3}` : `//./${e3}` : i2 && !isAbsolute(e3) ? `/${e3}` : e3);
2167
+ }, "pathe_M_eThtNZ_normalize"), pathe_M_eThtNZ_join = /* @__PURE__ */ __name(function(...e3) {
2168
+ let t3 = "";
2169
+ for (const i2 of e3) if (i2) if (t3.length > 0) {
2170
+ const e4 = "/" === t3[t3.length - 1], s2 = "/" === i2[0];
2171
+ t3 += e4 && s2 ? i2.slice(1) : e4 || s2 ? i2 : `/${i2}`;
2172
+ } else t3 += i2;
2173
+ return pathe_M_eThtNZ_normalize(t3);
2174
+ }, "pathe_M_eThtNZ_join");
2175
+ function pathe_M_eThtNZ_cwd() {
2176
+ return "undefined" != typeof process && "function" == typeof process.cwd ? process.cwd().replace(/\\/g, "/") : "/";
2177
+ }
2178
+ __name(pathe_M_eThtNZ_cwd, "pathe_M_eThtNZ_cwd");
2179
+ const pathe_M_eThtNZ_resolve = /* @__PURE__ */ __name(function(...e3) {
2180
+ let t3 = "", i2 = false;
2181
+ for (let s2 = (e3 = e3.map((e4) => pathe_M_eThtNZ_normalizeWindowsPath(e4))).length - 1; s2 >= -1 && !i2; s2--) {
2182
+ const r2 = s2 >= 0 ? e3[s2] : pathe_M_eThtNZ_cwd();
2183
+ r2 && 0 !== r2.length && (t3 = `${r2}/${t3}`, i2 = isAbsolute(r2));
2184
+ }
2185
+ return t3 = normalizeString(t3, !i2), i2 && !isAbsolute(t3) ? `/${t3}` : t3.length > 0 ? t3 : ".";
2186
+ }, "pathe_M_eThtNZ_resolve");
2187
+ function normalizeString(e3, t3) {
2188
+ let i2 = "", s2 = 0, r2 = -1, n2 = 0, a2 = null;
2189
+ for (let o2 = 0; o2 <= e3.length; ++o2) {
2190
+ if (o2 < e3.length) a2 = e3[o2];
2191
+ else {
2192
+ if ("/" === a2) break;
2193
+ a2 = "/";
2194
+ }
2195
+ if ("/" === a2) {
2196
+ if (r2 === o2 - 1 || 1 === n2) ;
2197
+ else if (2 === n2) {
2198
+ if (i2.length < 2 || 2 !== s2 || "." !== i2[i2.length - 1] || "." !== i2[i2.length - 2]) {
2199
+ if (i2.length > 2) {
2200
+ const e4 = i2.lastIndexOf("/");
2201
+ -1 === e4 ? (i2 = "", s2 = 0) : (i2 = i2.slice(0, e4), s2 = i2.length - 1 - i2.lastIndexOf("/")), r2 = o2, n2 = 0;
2202
+ continue;
2203
+ }
2204
+ if (i2.length > 0) {
2205
+ i2 = "", s2 = 0, r2 = o2, n2 = 0;
2206
+ continue;
2207
+ }
2208
+ }
2209
+ t3 && (i2 += i2.length > 0 ? "/.." : "..", s2 = 2);
2210
+ } else i2.length > 0 ? i2 += `/${e3.slice(r2 + 1, o2)}` : i2 = e3.slice(r2 + 1, o2), s2 = o2 - r2 - 1;
2211
+ r2 = o2, n2 = 0;
2212
+ } else "." === a2 && -1 !== n2 ? ++n2 : n2 = -1;
2213
+ }
2214
+ return i2;
2215
+ }
2216
+ __name(normalizeString, "normalizeString");
2217
+ const isAbsolute = /* @__PURE__ */ __name(function(e3) {
2218
+ return xe.test(e3);
2219
+ }, "isAbsolute"), extname = /* @__PURE__ */ __name(function(e3) {
2220
+ if (".." === e3) return "";
2221
+ const t3 = ye.exec(pathe_M_eThtNZ_normalizeWindowsPath(e3));
2222
+ return t3 && t3[1] || "";
2223
+ }, "extname"), pathe_M_eThtNZ_dirname = /* @__PURE__ */ __name(function(e3) {
2224
+ const t3 = pathe_M_eThtNZ_normalizeWindowsPath(e3).replace(/\/$/, "").split("/").slice(0, -1);
2225
+ return 1 === t3.length && ve.test(t3[0]) && (t3[0] += "/"), t3.join("/") || (isAbsolute(e3) ? "/" : ".");
2226
+ }, "pathe_M_eThtNZ_dirname"), basename = /* @__PURE__ */ __name(function(e3, t3) {
2227
+ const i2 = pathe_M_eThtNZ_normalizeWindowsPath(e3).split("/");
2228
+ let s2 = "";
2229
+ for (let e4 = i2.length - 1; e4 >= 0; e4--) {
2230
+ const t4 = i2[e4];
2231
+ if (t4) {
2232
+ s2 = t4;
2233
+ break;
2234
+ }
2235
+ }
2236
+ return t3 && s2.endsWith(t3) ? s2.slice(0, -t3.length) : s2;
2237
+ }, "basename"), _e = __require("node:url"), Ee = __require("node:assert"), be = __require("node:process"), Se = __require("node:path"), ke = __require("node:v8"), we = __require("node:util"), Ie = new Set(le.builtinModules);
2238
+ function normalizeSlash(e3) {
2239
+ return e3.replace(/\\/g, "/");
2240
+ }
2241
+ __name(normalizeSlash, "normalizeSlash");
2242
+ const Ce = {}.hasOwnProperty, Re = /^([A-Z][a-z\d]*)+$/, Pe = /* @__PURE__ */ new Set(["string", "function", "number", "object", "Function", "Object", "boolean", "bigint", "symbol"]), Te = {};
2243
+ function formatList(e3, t3 = "and") {
2244
+ return e3.length < 3 ? e3.join(` ${t3} `) : `${e3.slice(0, -1).join(", ")}, ${t3} ${e3[e3.length - 1]}`;
2245
+ }
2246
+ __name(formatList, "formatList");
2247
+ const Ae = /* @__PURE__ */ new Map();
2248
+ let Ne;
2249
+ function createError(e3, t3, i2) {
2250
+ return Ae.set(e3, t3), /* @__PURE__ */ function(e4, t4) {
2251
+ return NodeError;
2252
+ function NodeError(...i3) {
2253
+ const s2 = Error.stackTraceLimit;
2254
+ isErrorStackTraceLimitWritable() && (Error.stackTraceLimit = 0);
2255
+ const r2 = new e4();
2256
+ isErrorStackTraceLimitWritable() && (Error.stackTraceLimit = s2);
2257
+ const n2 = function(e5, t5, i4) {
2258
+ const s3 = Ae.get(e5);
2259
+ if (Ee(void 0 !== s3, "expected `message` to be found"), "function" == typeof s3) return Ee(s3.length <= t5.length, `Code: ${e5}; The provided arguments length (${t5.length}) does not match the required ones (${s3.length}).`), Reflect.apply(s3, i4, t5);
2260
+ const r3 = /%[dfijoOs]/g;
2261
+ let n3 = 0;
2262
+ for (; null !== r3.exec(s3); ) n3++;
2263
+ return Ee(n3 === t5.length, `Code: ${e5}; The provided arguments length (${t5.length}) does not match the required ones (${n3}).`), 0 === t5.length ? s3 : (t5.unshift(s3), Reflect.apply(we.format, null, t5));
2264
+ }(t4, i3, r2);
2265
+ return Object.defineProperties(r2, { message: { value: n2, enumerable: false, writable: true, configurable: true }, toString: { value() {
2266
+ return `${this.name} [${t4}]: ${this.message}`;
2267
+ }, enumerable: false, writable: true, configurable: true } }), Le(r2), r2.code = t4, r2;
2268
+ }
2269
+ __name(NodeError, "NodeError");
2270
+ }(i2, e3);
2271
+ }
2272
+ __name(createError, "createError");
2273
+ function isErrorStackTraceLimitWritable() {
2274
+ try {
2275
+ if (ke.startupSnapshot.isBuildingSnapshot()) return false;
2276
+ } catch {
2277
+ }
2278
+ const e3 = Object.getOwnPropertyDescriptor(Error, "stackTraceLimit");
2279
+ return void 0 === e3 ? Object.isExtensible(Error) : Ce.call(e3, "writable") && void 0 !== e3.writable ? e3.writable : void 0 !== e3.set;
2280
+ }
2281
+ __name(isErrorStackTraceLimitWritable, "isErrorStackTraceLimitWritable");
2282
+ Te.ERR_INVALID_ARG_TYPE = createError("ERR_INVALID_ARG_TYPE", (e3, t3, i2) => {
2283
+ Ee("string" == typeof e3, "'name' must be a string"), Array.isArray(t3) || (t3 = [t3]);
2284
+ let s2 = "The ";
2285
+ if (e3.endsWith(" argument")) s2 += `${e3} `;
2286
+ else {
2287
+ const t4 = e3.includes(".") ? "property" : "argument";
2288
+ s2 += `"${e3}" ${t4} `;
2289
+ }
2290
+ s2 += "must be ";
2291
+ const r2 = [], n2 = [], a2 = [];
2292
+ for (const e4 of t3) Ee("string" == typeof e4, "All expected entries have to be of type string"), Pe.has(e4) ? r2.push(e4.toLowerCase()) : null === Re.exec(e4) ? (Ee("object" !== e4, 'The value "object" should be written as "Object"'), a2.push(e4)) : n2.push(e4);
2293
+ if (n2.length > 0) {
2294
+ const e4 = r2.indexOf("object");
2295
+ -1 !== e4 && (r2.slice(e4, 1), n2.push("Object"));
2296
+ }
2297
+ return r2.length > 0 && (s2 += `${r2.length > 1 ? "one of type" : "of type"} ${formatList(r2, "or")}`, (n2.length > 0 || a2.length > 0) && (s2 += " or ")), n2.length > 0 && (s2 += `an instance of ${formatList(n2, "or")}`, a2.length > 0 && (s2 += " or ")), a2.length > 0 && (a2.length > 1 ? s2 += `one of ${formatList(a2, "or")}` : (a2[0].toLowerCase() !== a2[0] && (s2 += "an "), s2 += `${a2[0]}`)), s2 += `. Received ${function(e4) {
2298
+ if (null == e4) return String(e4);
2299
+ if ("function" == typeof e4 && e4.name) return `function ${e4.name}`;
2300
+ if ("object" == typeof e4) return e4.constructor && e4.constructor.name ? `an instance of ${e4.constructor.name}` : `${(0, we.inspect)(e4, { depth: -1 })}`;
2301
+ let t4 = (0, we.inspect)(e4, { colors: false });
2302
+ t4.length > 28 && (t4 = `${t4.slice(0, 25)}...`);
2303
+ return `type ${typeof e4} (${t4})`;
2304
+ }(i2)}`, s2;
2305
+ }, TypeError), Te.ERR_INVALID_MODULE_SPECIFIER = createError("ERR_INVALID_MODULE_SPECIFIER", (e3, t3, i2 = void 0) => `Invalid module "${e3}" ${t3}${i2 ? ` imported from ${i2}` : ""}`, TypeError), Te.ERR_INVALID_PACKAGE_CONFIG = createError("ERR_INVALID_PACKAGE_CONFIG", (e3, t3, i2) => `Invalid package config ${e3}${t3 ? ` while importing ${t3}` : ""}${i2 ? `. ${i2}` : ""}`, Error), Te.ERR_INVALID_PACKAGE_TARGET = createError("ERR_INVALID_PACKAGE_TARGET", (e3, t3, i2, s2 = false, r2 = void 0) => {
2306
+ const n2 = "string" == typeof i2 && !s2 && i2.length > 0 && !i2.startsWith("./");
2307
+ return "." === t3 ? (Ee(false === s2), `Invalid "exports" main target ${JSON.stringify(i2)} defined in the package config ${e3}package.json${r2 ? ` imported from ${r2}` : ""}${n2 ? '; targets must start with "./"' : ""}`) : `Invalid "${s2 ? "imports" : "exports"}" target ${JSON.stringify(i2)} defined for '${t3}' in the package config ${e3}package.json${r2 ? ` imported from ${r2}` : ""}${n2 ? '; targets must start with "./"' : ""}`;
2308
+ }, Error), Te.ERR_MODULE_NOT_FOUND = createError("ERR_MODULE_NOT_FOUND", (e3, t3, i2 = false) => `Cannot find ${i2 ? "module" : "package"} '${e3}' imported from ${t3}`, Error), Te.ERR_NETWORK_IMPORT_DISALLOWED = createError("ERR_NETWORK_IMPORT_DISALLOWED", "import of '%s' by %s is not supported: %s", Error), Te.ERR_PACKAGE_IMPORT_NOT_DEFINED = createError("ERR_PACKAGE_IMPORT_NOT_DEFINED", (e3, t3, i2) => `Package import specifier "${e3}" is not defined${t3 ? ` in package ${t3}package.json` : ""} imported from ${i2}`, TypeError), Te.ERR_PACKAGE_PATH_NOT_EXPORTED = createError("ERR_PACKAGE_PATH_NOT_EXPORTED", (e3, t3, i2 = void 0) => "." === t3 ? `No "exports" main defined in ${e3}package.json${i2 ? ` imported from ${i2}` : ""}` : `Package subpath '${t3}' is not defined by "exports" in ${e3}package.json${i2 ? ` imported from ${i2}` : ""}`, Error), Te.ERR_UNSUPPORTED_DIR_IMPORT = createError("ERR_UNSUPPORTED_DIR_IMPORT", "Directory import '%s' is not supported resolving ES modules imported from %s", Error), Te.ERR_UNSUPPORTED_RESOLVE_REQUEST = createError("ERR_UNSUPPORTED_RESOLVE_REQUEST", 'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.', TypeError), Te.ERR_UNKNOWN_FILE_EXTENSION = createError("ERR_UNKNOWN_FILE_EXTENSION", (e3, t3) => `Unknown file extension "${e3}" for ${t3}`, TypeError), Te.ERR_INVALID_ARG_VALUE = createError("ERR_INVALID_ARG_VALUE", (e3, t3, i2 = "is invalid") => {
2309
+ let s2 = (0, we.inspect)(t3);
2310
+ s2.length > 128 && (s2 = `${s2.slice(0, 128)}...`);
2311
+ return `The ${e3.includes(".") ? "property" : "argument"} '${e3}' ${i2}. Received ${s2}`;
2312
+ }, TypeError);
2313
+ const Le = function(e3) {
2314
+ const t3 = "__node_internal_" + e3.name;
2315
+ return Object.defineProperty(e3, "name", { value: t3 }), e3;
2316
+ }(function(e3) {
2317
+ const t3 = isErrorStackTraceLimitWritable();
2318
+ return t3 && (Ne = Error.stackTraceLimit, Error.stackTraceLimit = Number.POSITIVE_INFINITY), Error.captureStackTrace(e3), t3 && (Error.stackTraceLimit = Ne), e3;
2319
+ });
2320
+ const Oe = {}.hasOwnProperty, { ERR_INVALID_PACKAGE_CONFIG: De } = Te, Ve = /* @__PURE__ */ new Map();
2321
+ function read(e3, { base: t3, specifier: i2 }) {
2322
+ const s2 = Ve.get(e3);
2323
+ if (s2) return s2;
2324
+ let r2;
2325
+ try {
2326
+ r2 = ue.readFileSync(Se.toNamespacedPath(e3), "utf8");
2327
+ } catch (e4) {
2328
+ const t4 = e4;
2329
+ if ("ENOENT" !== t4.code) throw t4;
2330
+ }
2331
+ const n2 = { exists: false, pjsonPath: e3, main: void 0, name: void 0, type: "none", exports: void 0, imports: void 0 };
2332
+ if (void 0 !== r2) {
2333
+ let s3;
2334
+ try {
2335
+ s3 = JSON.parse(r2);
2336
+ } catch (s4) {
2337
+ const r3 = s4, n3 = new De(e3, (t3 ? `"${i2}" from ` : "") + (0, _e.fileURLToPath)(t3 || i2), r3.message);
2338
+ throw n3.cause = r3, n3;
2339
+ }
2340
+ n2.exists = true, Oe.call(s3, "name") && "string" == typeof s3.name && (n2.name = s3.name), Oe.call(s3, "main") && "string" == typeof s3.main && (n2.main = s3.main), Oe.call(s3, "exports") && (n2.exports = s3.exports), Oe.call(s3, "imports") && (n2.imports = s3.imports), !Oe.call(s3, "type") || "commonjs" !== s3.type && "module" !== s3.type || (n2.type = s3.type);
2341
+ }
2342
+ return Ve.set(e3, n2), n2;
2343
+ }
2344
+ __name(read, "read");
2345
+ function getPackageScopeConfig(e3) {
2346
+ let t3 = new URL("package.json", e3);
2347
+ for (; ; ) {
2348
+ if (t3.pathname.endsWith("node_modules/package.json")) break;
2349
+ const i2 = read((0, _e.fileURLToPath)(t3), { specifier: e3 });
2350
+ if (i2.exists) return i2;
2351
+ const s2 = t3;
2352
+ if (t3 = new URL("../package.json", t3), t3.pathname === s2.pathname) break;
2353
+ }
2354
+ return { pjsonPath: (0, _e.fileURLToPath)(t3), exists: false, type: "none" };
2355
+ }
2356
+ __name(getPackageScopeConfig, "getPackageScopeConfig");
2357
+ function getPackageType(e3) {
2358
+ return getPackageScopeConfig(e3).type;
2359
+ }
2360
+ __name(getPackageType, "getPackageType");
2361
+ const { ERR_UNKNOWN_FILE_EXTENSION: Ue } = Te, Me = {}.hasOwnProperty, je = { __proto__: null, ".cjs": "commonjs", ".js": "module", ".json": "json", ".mjs": "module" };
2362
+ const Fe = { __proto__: null, "data:": /* @__PURE__ */ __name(function(e3) {
2363
+ const { 1: t3 } = /^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(e3.pathname) || [null, null, null];
2364
+ return function(e4) {
2365
+ return e4 && /\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(e4) ? "module" : "application/json" === e4 ? "json" : null;
2366
+ }(t3);
2367
+ }, "data:"), "file:": /* @__PURE__ */ __name(function(e3, t3, i2) {
2368
+ const s2 = function(e4) {
2369
+ const t4 = e4.pathname;
2370
+ let i3 = t4.length;
2371
+ for (; i3--; ) {
2372
+ const e5 = t4.codePointAt(i3);
2373
+ if (47 === e5) return "";
2374
+ if (46 === e5) return 47 === t4.codePointAt(i3 - 1) ? "" : t4.slice(i3);
2375
+ }
2376
+ return "";
2377
+ }(e3);
2378
+ if (".js" === s2) {
2379
+ const t4 = getPackageType(e3);
2380
+ return "none" !== t4 ? t4 : "commonjs";
2381
+ }
2382
+ if ("" === s2) {
2383
+ const t4 = getPackageType(e3);
2384
+ return "none" === t4 || "commonjs" === t4 ? "commonjs" : "module";
2385
+ }
2386
+ const r2 = je[s2];
2387
+ if (r2) return r2;
2388
+ if (i2) return;
2389
+ const n2 = (0, _e.fileURLToPath)(e3);
2390
+ throw new Ue(s2, n2);
2391
+ }, "file:"), "http:": getHttpProtocolModuleFormat, "https:": getHttpProtocolModuleFormat, "node:": /* @__PURE__ */ __name(() => "builtin", "node:") };
2392
+ function getHttpProtocolModuleFormat() {
2393
+ }
2394
+ __name(getHttpProtocolModuleFormat, "getHttpProtocolModuleFormat");
2395
+ const Be = RegExp.prototype[Symbol.replace], { ERR_INVALID_MODULE_SPECIFIER: $e, ERR_INVALID_PACKAGE_CONFIG: qe, ERR_INVALID_PACKAGE_TARGET: We, ERR_MODULE_NOT_FOUND: Ge, ERR_PACKAGE_IMPORT_NOT_DEFINED: He, ERR_PACKAGE_PATH_NOT_EXPORTED: Ke, ERR_UNSUPPORTED_DIR_IMPORT: ze, ERR_UNSUPPORTED_RESOLVE_REQUEST: Je } = Te, Ye = {}.hasOwnProperty, Qe = /(^|\\|\/)((\.|%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, Ze = /(^|\\|\/)((\.|%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, Xe = /^\.|%|\\/, et = /\*/g, tt = /%2f|%5c/i, it = /* @__PURE__ */ new Set(), st = /[/\\]{2}/;
2396
+ function emitInvalidSegmentDeprecation(e3, t3, i2, s2, r2, n2, a2) {
2397
+ if (be.noDeprecation) return;
2398
+ const o2 = (0, _e.fileURLToPath)(s2), h2 = null !== st.exec(a2 ? e3 : t3);
2399
+ be.emitWarning(`Use of deprecated ${h2 ? "double slash" : "leading or trailing slash matching"} resolving "${e3}" for module request "${t3}" ${t3 === i2 ? "" : `matched to "${i2}" `}in the "${r2 ? "imports" : "exports"}" field module resolution of the package at ${o2}${n2 ? ` imported from ${(0, _e.fileURLToPath)(n2)}` : ""}.`, "DeprecationWarning", "DEP0166");
2400
+ }
2401
+ __name(emitInvalidSegmentDeprecation, "emitInvalidSegmentDeprecation");
2402
+ function emitLegacyIndexDeprecation(e3, t3, i2, s2) {
2403
+ if (be.noDeprecation) return;
2404
+ const r2 = function(e4, t4) {
2405
+ const i3 = e4.protocol;
2406
+ return Me.call(Fe, i3) && Fe[i3](e4, t4, true) || null;
2407
+ }(e3, { parentURL: i2.href });
2408
+ if ("module" !== r2) return;
2409
+ const n2 = (0, _e.fileURLToPath)(e3.href), a2 = (0, _e.fileURLToPath)(new _e.URL(".", t3)), o2 = (0, _e.fileURLToPath)(i2);
2410
+ s2 ? Se.resolve(a2, s2) !== n2 && be.emitWarning(`Package ${a2} has a "main" field set to "${s2}", excluding the full filename and extension to the resolved file at "${n2.slice(a2.length)}", imported from ${o2}.
2411
+ Automatic extension resolution of the "main" field is deprecated for ES modules.`, "DeprecationWarning", "DEP0151") : be.emitWarning(`No "main" or "exports" field defined in the package.json for ${a2} resolving the main entry point "${n2.slice(a2.length)}", imported from ${o2}.
2412
+ Default "index" lookups for the main are deprecated for ES modules.`, "DeprecationWarning", "DEP0151");
2413
+ }
2414
+ __name(emitLegacyIndexDeprecation, "emitLegacyIndexDeprecation");
2415
+ function tryStatSync(e3) {
2416
+ try {
2417
+ return (0, ue.statSync)(e3);
2418
+ } catch {
2419
+ }
2420
+ }
2421
+ __name(tryStatSync, "tryStatSync");
2422
+ function fileExists(e3) {
2423
+ const t3 = (0, ue.statSync)(e3, { throwIfNoEntry: false }), i2 = t3 ? t3.isFile() : void 0;
2424
+ return null != i2 && i2;
2425
+ }
2426
+ __name(fileExists, "fileExists");
2427
+ function legacyMainResolve(e3, t3, i2) {
2428
+ let s2;
2429
+ if (void 0 !== t3.main) {
2430
+ if (s2 = new _e.URL(t3.main, e3), fileExists(s2)) return s2;
2431
+ const r3 = [`./${t3.main}.js`, `./${t3.main}.json`, `./${t3.main}.node`, `./${t3.main}/index.js`, `./${t3.main}/index.json`, `./${t3.main}/index.node`];
2432
+ let n3 = -1;
2433
+ for (; ++n3 < r3.length && (s2 = new _e.URL(r3[n3], e3), !fileExists(s2)); ) s2 = void 0;
2434
+ if (s2) return emitLegacyIndexDeprecation(s2, e3, i2, t3.main), s2;
2435
+ }
2436
+ const r2 = ["./index.js", "./index.json", "./index.node"];
2437
+ let n2 = -1;
2438
+ for (; ++n2 < r2.length && (s2 = new _e.URL(r2[n2], e3), !fileExists(s2)); ) s2 = void 0;
2439
+ if (s2) return emitLegacyIndexDeprecation(s2, e3, i2, t3.main), s2;
2440
+ throw new Ge((0, _e.fileURLToPath)(new _e.URL(".", e3)), (0, _e.fileURLToPath)(i2));
2441
+ }
2442
+ __name(legacyMainResolve, "legacyMainResolve");
2443
+ function exportsNotFound(e3, t3, i2) {
2444
+ return new Ke((0, _e.fileURLToPath)(new _e.URL(".", t3)), e3, i2 && (0, _e.fileURLToPath)(i2));
2445
+ }
2446
+ __name(exportsNotFound, "exportsNotFound");
2447
+ function invalidPackageTarget(e3, t3, i2, s2, r2) {
2448
+ return t3 = "object" == typeof t3 && null !== t3 ? JSON.stringify(t3, null, "") : `${t3}`, new We((0, _e.fileURLToPath)(new _e.URL(".", i2)), e3, t3, s2, r2 && (0, _e.fileURLToPath)(r2));
2449
+ }
2450
+ __name(invalidPackageTarget, "invalidPackageTarget");
2451
+ function resolvePackageTargetString(e3, t3, i2, s2, r2, n2, a2, o2, h2) {
2452
+ if ("" !== t3 && !n2 && "/" !== e3[e3.length - 1]) throw invalidPackageTarget(i2, e3, s2, a2, r2);
2453
+ if (!e3.startsWith("./")) {
2454
+ if (a2 && !e3.startsWith("../") && !e3.startsWith("/")) {
2455
+ let i3 = false;
2456
+ try {
2457
+ new _e.URL(e3), i3 = true;
2458
+ } catch {
2459
+ }
2460
+ if (!i3) {
2461
+ return packageResolve(n2 ? Be.call(et, e3, () => t3) : e3 + t3, s2, h2);
2462
+ }
2463
+ }
2464
+ throw invalidPackageTarget(i2, e3, s2, a2, r2);
2465
+ }
2466
+ if (null !== Qe.exec(e3.slice(2))) {
2467
+ if (null !== Ze.exec(e3.slice(2))) throw invalidPackageTarget(i2, e3, s2, a2, r2);
2468
+ if (!o2) {
2469
+ const o3 = n2 ? i2.replace("*", () => t3) : i2 + t3;
2470
+ emitInvalidSegmentDeprecation(n2 ? Be.call(et, e3, () => t3) : e3, o3, i2, s2, a2, r2, true);
2471
+ }
2472
+ }
2473
+ const c2 = new _e.URL(e3, s2), p2 = c2.pathname, l2 = new _e.URL(".", s2).pathname;
2474
+ if (!p2.startsWith(l2)) throw invalidPackageTarget(i2, e3, s2, a2, r2);
2475
+ if ("" === t3) return c2;
2476
+ if (null !== Qe.exec(t3)) {
2477
+ const h3 = n2 ? i2.replace("*", () => t3) : i2 + t3;
2478
+ if (null === Ze.exec(t3)) {
2479
+ if (!o2) {
2480
+ emitInvalidSegmentDeprecation(n2 ? Be.call(et, e3, () => t3) : e3, h3, i2, s2, a2, r2, false);
2481
+ }
2482
+ } else !function(e4, t4, i3, s3, r3) {
2483
+ const n3 = `request is not a valid match in pattern "${t4}" for the "${s3 ? "imports" : "exports"}" resolution of ${(0, _e.fileURLToPath)(i3)}`;
2484
+ throw new $e(e4, n3, r3 && (0, _e.fileURLToPath)(r3));
2485
+ }(h3, i2, s2, a2, r2);
2486
+ }
2487
+ return n2 ? new _e.URL(Be.call(et, c2.href, () => t3)) : new _e.URL(t3, c2);
2488
+ }
2489
+ __name(resolvePackageTargetString, "resolvePackageTargetString");
2490
+ function isArrayIndex(e3) {
2491
+ const t3 = Number(e3);
2492
+ return `${t3}` === e3 && (t3 >= 0 && t3 < 4294967295);
2493
+ }
2494
+ __name(isArrayIndex, "isArrayIndex");
2495
+ function resolvePackageTarget(e3, t3, i2, s2, r2, n2, a2, o2, h2) {
2496
+ if ("string" == typeof t3) return resolvePackageTargetString(t3, i2, s2, e3, r2, n2, a2, o2, h2);
2497
+ if (Array.isArray(t3)) {
2498
+ const c2 = t3;
2499
+ if (0 === c2.length) return null;
2500
+ let p2, l2 = -1;
2501
+ for (; ++l2 < c2.length; ) {
2502
+ const t4 = c2[l2];
2503
+ let u2;
2504
+ try {
2505
+ u2 = resolvePackageTarget(e3, t4, i2, s2, r2, n2, a2, o2, h2);
2506
+ } catch (e4) {
2507
+ if (p2 = e4, "ERR_INVALID_PACKAGE_TARGET" === e4.code) continue;
2508
+ throw e4;
2509
+ }
2510
+ if (void 0 !== u2) {
2511
+ if (null !== u2) return u2;
2512
+ p2 = null;
2513
+ }
2514
+ }
2515
+ if (null == p2) return null;
2516
+ throw p2;
2517
+ }
2518
+ if ("object" == typeof t3 && null !== t3) {
2519
+ const c2 = Object.getOwnPropertyNames(t3);
2520
+ let p2 = -1;
2521
+ for (; ++p2 < c2.length; ) {
2522
+ if (isArrayIndex(c2[p2])) throw new qe((0, _e.fileURLToPath)(e3), r2, '"exports" cannot contain numeric property keys.');
2523
+ }
2524
+ for (p2 = -1; ++p2 < c2.length; ) {
2525
+ const l2 = c2[p2];
2526
+ if ("default" === l2 || h2 && h2.has(l2)) {
2527
+ const c3 = resolvePackageTarget(e3, t3[l2], i2, s2, r2, n2, a2, o2, h2);
2528
+ if (void 0 === c3) continue;
2529
+ return c3;
2530
+ }
2531
+ }
2532
+ return null;
2533
+ }
2534
+ if (null === t3) return null;
2535
+ throw invalidPackageTarget(s2, t3, e3, a2, r2);
2536
+ }
2537
+ __name(resolvePackageTarget, "resolvePackageTarget");
2538
+ function emitTrailingSlashPatternDeprecation(e3, t3, i2) {
2539
+ if (be.noDeprecation) return;
2540
+ const s2 = (0, _e.fileURLToPath)(t3);
2541
+ it.has(s2 + "|" + e3) || (it.add(s2 + "|" + e3), be.emitWarning(`Use of deprecated trailing slash pattern mapping "${e3}" in the "exports" field module resolution of the package at ${s2}${i2 ? ` imported from ${(0, _e.fileURLToPath)(i2)}` : ""}. Mapping specifiers ending in "/" is no longer supported.`, "DeprecationWarning", "DEP0155"));
2542
+ }
2543
+ __name(emitTrailingSlashPatternDeprecation, "emitTrailingSlashPatternDeprecation");
2544
+ function packageExportsResolve(e3, t3, i2, s2, r2) {
2545
+ let n2 = i2.exports;
2546
+ if (function(e4, t4, i3) {
2547
+ if ("string" == typeof e4 || Array.isArray(e4)) return true;
2548
+ if ("object" != typeof e4 || null === e4) return false;
2549
+ const s3 = Object.getOwnPropertyNames(e4);
2550
+ let r3 = false, n3 = 0, a3 = -1;
2551
+ for (; ++a3 < s3.length; ) {
2552
+ const e5 = s3[a3], o3 = "" === e5 || "." !== e5[0];
2553
+ if (0 === n3++) r3 = o3;
2554
+ else if (r3 !== o3) throw new qe((0, _e.fileURLToPath)(t4), i3, `"exports" cannot contain some keys starting with '.' and some not. The exports object must either be an object of package subpath keys or an object of main entry condition name keys only.`);
2555
+ }
2556
+ return r3;
2557
+ }(n2, e3, s2) && (n2 = { ".": n2 }), Ye.call(n2, t3) && !t3.includes("*") && !t3.endsWith("/")) {
2558
+ const i3 = resolvePackageTarget(e3, n2[t3], "", t3, s2, false, false, false, r2);
2559
+ if (null == i3) throw exportsNotFound(t3, e3, s2);
2560
+ return i3;
2561
+ }
2562
+ let a2 = "", o2 = "";
2563
+ const h2 = Object.getOwnPropertyNames(n2);
2564
+ let c2 = -1;
2565
+ for (; ++c2 < h2.length; ) {
2566
+ const i3 = h2[c2], r3 = i3.indexOf("*");
2567
+ if (-1 !== r3 && t3.startsWith(i3.slice(0, r3))) {
2568
+ t3.endsWith("/") && emitTrailingSlashPatternDeprecation(t3, e3, s2);
2569
+ const n3 = i3.slice(r3 + 1);
2570
+ t3.length >= i3.length && t3.endsWith(n3) && 1 === patternKeyCompare(a2, i3) && i3.lastIndexOf("*") === r3 && (a2 = i3, o2 = t3.slice(r3, t3.length - n3.length));
2571
+ }
2572
+ }
2573
+ if (a2) {
2574
+ const i3 = resolvePackageTarget(e3, n2[a2], o2, a2, s2, true, false, t3.endsWith("/"), r2);
2575
+ if (null == i3) throw exportsNotFound(t3, e3, s2);
2576
+ return i3;
2577
+ }
2578
+ throw exportsNotFound(t3, e3, s2);
2579
+ }
2580
+ __name(packageExportsResolve, "packageExportsResolve");
2581
+ function patternKeyCompare(e3, t3) {
2582
+ const i2 = e3.indexOf("*"), s2 = t3.indexOf("*"), r2 = -1 === i2 ? e3.length : i2 + 1, n2 = -1 === s2 ? t3.length : s2 + 1;
2583
+ return r2 > n2 ? -1 : n2 > r2 || -1 === i2 ? 1 : -1 === s2 || e3.length > t3.length ? -1 : t3.length > e3.length ? 1 : 0;
2584
+ }
2585
+ __name(patternKeyCompare, "patternKeyCompare");
2586
+ function packageImportsResolve(e3, t3, i2) {
2587
+ if ("#" === e3 || e3.startsWith("#/") || e3.endsWith("/")) {
2588
+ throw new $e(e3, "is not a valid internal imports specifier name", (0, _e.fileURLToPath)(t3));
2589
+ }
2590
+ let s2;
2591
+ const r2 = getPackageScopeConfig(t3);
2592
+ if (r2.exists) {
2593
+ s2 = (0, _e.pathToFileURL)(r2.pjsonPath);
2594
+ const n2 = r2.imports;
2595
+ if (n2) if (Ye.call(n2, e3) && !e3.includes("*")) {
2596
+ const r3 = resolvePackageTarget(s2, n2[e3], "", e3, t3, false, true, false, i2);
2597
+ if (null != r3) return r3;
2598
+ } else {
2599
+ let r3 = "", a2 = "";
2600
+ const o2 = Object.getOwnPropertyNames(n2);
2601
+ let h2 = -1;
2602
+ for (; ++h2 < o2.length; ) {
2603
+ const t4 = o2[h2], i3 = t4.indexOf("*");
2604
+ if (-1 !== i3 && e3.startsWith(t4.slice(0, -1))) {
2605
+ const s3 = t4.slice(i3 + 1);
2606
+ e3.length >= t4.length && e3.endsWith(s3) && 1 === patternKeyCompare(r3, t4) && t4.lastIndexOf("*") === i3 && (r3 = t4, a2 = e3.slice(i3, e3.length - s3.length));
2607
+ }
2608
+ }
2609
+ if (r3) {
2610
+ const e4 = resolvePackageTarget(s2, n2[r3], a2, r3, t3, true, true, false, i2);
2611
+ if (null != e4) return e4;
2612
+ }
2613
+ }
2614
+ }
2615
+ throw function(e4, t4, i3) {
2616
+ return new He(e4, t4 && (0, _e.fileURLToPath)(new _e.URL(".", t4)), (0, _e.fileURLToPath)(i3));
2617
+ }(e3, s2, t3);
2618
+ }
2619
+ __name(packageImportsResolve, "packageImportsResolve");
2620
+ function packageResolve(e3, t3, i2) {
2621
+ if (le.builtinModules.includes(e3)) return new _e.URL("node:" + e3);
2622
+ const { packageName: s2, packageSubpath: r2, isScoped: n2 } = function(e4, t4) {
2623
+ let i3 = e4.indexOf("/"), s3 = true, r3 = false;
2624
+ "@" === e4[0] && (r3 = true, -1 === i3 || 0 === e4.length ? s3 = false : i3 = e4.indexOf("/", i3 + 1));
2625
+ const n3 = -1 === i3 ? e4 : e4.slice(0, i3);
2626
+ if (null !== Xe.exec(n3) && (s3 = false), !s3) throw new $e(e4, "is not a valid package name", (0, _e.fileURLToPath)(t4));
2627
+ return { packageName: n3, packageSubpath: "." + (-1 === i3 ? "" : e4.slice(i3)), isScoped: r3 };
2628
+ }(e3, t3), a2 = getPackageScopeConfig(t3);
2629
+ if (a2.exists) {
2630
+ const e4 = (0, _e.pathToFileURL)(a2.pjsonPath);
2631
+ if (a2.name === s2 && void 0 !== a2.exports && null !== a2.exports) return packageExportsResolve(e4, r2, a2, t3, i2);
2632
+ }
2633
+ let o2, h2 = new _e.URL("./node_modules/" + s2 + "/package.json", t3), c2 = (0, _e.fileURLToPath)(h2);
2634
+ do {
2635
+ const a3 = tryStatSync(c2.slice(0, -13));
2636
+ if (!a3 || !a3.isDirectory()) {
2637
+ o2 = c2, h2 = new _e.URL((n2 ? "../../../../node_modules/" : "../../../node_modules/") + s2 + "/package.json", h2), c2 = (0, _e.fileURLToPath)(h2);
2638
+ continue;
2639
+ }
2640
+ const p2 = read(c2, { base: t3, specifier: e3 });
2641
+ return void 0 !== p2.exports && null !== p2.exports ? packageExportsResolve(h2, r2, p2, t3, i2) : "." === r2 ? legacyMainResolve(h2, p2, t3) : new _e.URL(r2, h2);
2642
+ } while (c2.length !== o2.length);
2643
+ throw new Ge(s2, (0, _e.fileURLToPath)(t3), false);
2644
+ }
2645
+ __name(packageResolve, "packageResolve");
2646
+ function moduleResolve(e3, t3, i2, s2) {
2647
+ const r2 = t3.protocol, n2 = "data:" === r2 || "http:" === r2 || "https:" === r2;
2648
+ let a2;
2649
+ if (function(e4) {
2650
+ return "" !== e4 && ("/" === e4[0] || function(e5) {
2651
+ if ("." === e5[0]) {
2652
+ if (1 === e5.length || "/" === e5[1]) return true;
2653
+ if ("." === e5[1] && (2 === e5.length || "/" === e5[2])) return true;
2654
+ }
2655
+ return false;
2656
+ }(e4));
2657
+ }(e3)) try {
2658
+ a2 = new _e.URL(e3, t3);
2659
+ } catch (i3) {
2660
+ const s3 = new Je(e3, t3);
2661
+ throw s3.cause = i3, s3;
2662
+ }
2663
+ else if ("file:" === r2 && "#" === e3[0]) a2 = packageImportsResolve(e3, t3, i2);
2664
+ else try {
2665
+ a2 = new _e.URL(e3);
2666
+ } catch (s3) {
2667
+ if (n2 && !le.builtinModules.includes(e3)) {
2668
+ const i3 = new Je(e3, t3);
2669
+ throw i3.cause = s3, i3;
2670
+ }
2671
+ a2 = packageResolve(e3, t3, i2);
2672
+ }
2673
+ return Ee(void 0 !== a2, "expected to be defined"), "file:" !== a2.protocol ? a2 : function(e4, t4) {
2674
+ if (null !== tt.exec(e4.pathname)) throw new $e(e4.pathname, 'must not include encoded "/" or "\\" characters', (0, _e.fileURLToPath)(t4));
2675
+ let i3;
2676
+ try {
2677
+ i3 = (0, _e.fileURLToPath)(e4);
2678
+ } catch (i4) {
2679
+ const s4 = i4;
2680
+ throw Object.defineProperty(s4, "input", { value: String(e4) }), Object.defineProperty(s4, "module", { value: String(t4) }), s4;
2681
+ }
2682
+ const s3 = tryStatSync(i3.endsWith("/") ? i3.slice(-1) : i3);
2683
+ if (s3 && s3.isDirectory()) {
2684
+ const s4 = new ze(i3, (0, _e.fileURLToPath)(t4));
2685
+ throw s4.url = String(e4), s4;
2686
+ }
2687
+ if (!s3 || !s3.isFile()) {
2688
+ const s4 = new Ge(i3 || e4.pathname, t4 && (0, _e.fileURLToPath)(t4), true);
2689
+ throw s4.url = String(e4), s4;
2690
+ }
2691
+ {
2692
+ const t5 = (0, ue.realpathSync)(i3), { search: s4, hash: r3 } = e4;
2693
+ (e4 = (0, _e.pathToFileURL)(t5 + (i3.endsWith(Se.sep) ? "/" : ""))).search = s4, e4.hash = r3;
2694
+ }
2695
+ return e4;
2696
+ }(a2, t3);
2697
+ }
2698
+ __name(moduleResolve, "moduleResolve");
2699
+ function fileURLToPath(e3) {
2700
+ return "string" != typeof e3 || e3.startsWith("file://") ? normalizeSlash((0, _e.fileURLToPath)(e3)) : normalizeSlash(e3);
2701
+ }
2702
+ __name(fileURLToPath, "fileURLToPath");
2703
+ function pathToFileURL(e3) {
2704
+ return (0, _e.pathToFileURL)(fileURLToPath(e3)).toString();
2705
+ }
2706
+ __name(pathToFileURL, "pathToFileURL");
2707
+ const rt = /* @__PURE__ */ new Set(["node", "import"]), nt = [".mjs", ".cjs", ".js", ".json"], at = /* @__PURE__ */ new Set(["ERR_MODULE_NOT_FOUND", "ERR_UNSUPPORTED_DIR_IMPORT", "MODULE_NOT_FOUND", "ERR_PACKAGE_PATH_NOT_EXPORTED"]);
2708
+ function _tryModuleResolve(e3, t3, i2) {
2709
+ try {
2710
+ return moduleResolve(e3, t3, i2);
2711
+ } catch (e4) {
2712
+ if (!at.has(e4?.code)) throw e4;
2713
+ }
2714
+ }
2715
+ __name(_tryModuleResolve, "_tryModuleResolve");
2716
+ function _resolve(e3, t3 = {}) {
2717
+ if ("string" != typeof e3) {
2718
+ if (!(e3 instanceof URL)) throw new TypeError("input must be a `string` or `URL`");
2719
+ e3 = fileURLToPath(e3);
2720
+ }
2721
+ if (/(?:node|data|http|https):/.test(e3)) return e3;
2722
+ if (Ie.has(e3)) return "node:" + e3;
2723
+ if (e3.startsWith("file://") && (e3 = fileURLToPath(e3)), isAbsolute(e3)) try {
2724
+ if ((0, ue.statSync)(e3).isFile()) return pathToFileURL(e3);
2725
+ } catch (e4) {
2726
+ if ("ENOENT" !== e4?.code) throw e4;
2727
+ }
2728
+ const i2 = t3.conditions ? new Set(t3.conditions) : rt, s2 = (Array.isArray(t3.url) ? t3.url : [t3.url]).filter(Boolean).map((e4) => new URL(function(e5) {
2729
+ return "string" != typeof e5 && (e5 = e5.toString()), /(?:node|data|http|https|file):/.test(e5) ? e5 : Ie.has(e5) ? "node:" + e5 : "file://" + encodeURI(normalizeSlash(e5));
2730
+ }(e4.toString())));
2731
+ 0 === s2.length && s2.push(new URL(pathToFileURL(process.cwd())));
2732
+ const r2 = [...s2];
2733
+ for (const e4 of s2) "file:" === e4.protocol && r2.push(new URL("./", e4), new URL(dist_joinURL(e4.pathname, "_index.js"), e4), new URL("node_modules", e4));
2734
+ let n2;
2735
+ for (const s3 of r2) {
2736
+ if (n2 = _tryModuleResolve(e3, s3, i2), n2) break;
2737
+ for (const r3 of ["", "/index"]) {
2738
+ for (const a2 of t3.extensions || nt) if (n2 = _tryModuleResolve(dist_joinURL(e3, r3) + a2, s3, i2), n2) break;
2739
+ if (n2) break;
2740
+ }
2741
+ if (n2) break;
2742
+ }
2743
+ if (!n2) {
2744
+ const t4 = new Error(`Cannot find module ${e3} imported from ${r2.join(", ")}`);
2745
+ throw t4.code = "ERR_MODULE_NOT_FOUND", t4;
2746
+ }
2747
+ return pathToFileURL(n2);
2748
+ }
2749
+ __name(_resolve, "_resolve");
2750
+ function resolveSync(e3, t3) {
2751
+ return _resolve(e3, t3);
2752
+ }
2753
+ __name(resolveSync, "resolveSync");
2754
+ function resolvePathSync(e3, t3) {
2755
+ return fileURLToPath(resolveSync(e3, t3));
2756
+ }
2757
+ __name(resolvePathSync, "resolvePathSync");
2758
+ const ot = /(?:[\s;]|^)(?:import[\s\w*,{}]*from|import\s*["'*{]|export\b\s*(?:[*{]|default|class|type|function|const|var|let|async function)|import\.meta\b)/m, ht = /\/\*.+?\*\/|\/\/.*(?=[nr])/g;
2759
+ function hasESMSyntax(e3, t3 = {}) {
2760
+ return t3.stripComments && (e3 = e3.replace(ht, "")), ot.test(e3);
2761
+ }
2762
+ __name(hasESMSyntax, "hasESMSyntax");
2763
+ function escapeStringRegexp(e3) {
2764
+ if ("string" != typeof e3) throw new TypeError("Expected a string");
2765
+ return e3.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
2766
+ }
2767
+ __name(escapeStringRegexp, "escapeStringRegexp");
2768
+ const ct = /* @__PURE__ */ new Set(["/", "\\", void 0]), pt = Symbol.for("pathe:normalizedAlias"), lt = /[/\\]/;
2769
+ function normalizeAliases(e3) {
2770
+ if (e3[pt]) return e3;
2771
+ const t3 = Object.fromEntries(Object.entries(e3).sort(([e4], [t4]) => function(e5, t5) {
2772
+ return t5.split("/").length - e5.split("/").length;
2773
+ }(e4, t4)));
2774
+ for (const e4 in t3) for (const i2 in t3) i2 === e4 || e4.startsWith(i2) || t3[e4]?.startsWith(i2) && ct.has(t3[e4][i2.length]) && (t3[e4] = t3[i2] + t3[e4].slice(i2.length));
2775
+ return Object.defineProperty(t3, pt, { value: true, enumerable: false }), t3;
2776
+ }
2777
+ __name(normalizeAliases, "normalizeAliases");
2778
+ function utils_hasTrailingSlash(e3 = "/") {
2779
+ const t3 = e3[e3.length - 1];
2780
+ return "/" === t3 || "\\" === t3;
2781
+ }
2782
+ __name(utils_hasTrailingSlash, "utils_hasTrailingSlash");
2783
+ var ut = { rE: "2.6.1" };
2784
+ const dt = __require("node:crypto");
2785
+ var ft = __webpack_require__.n(dt);
2786
+ const mt = /* @__PURE__ */ Object.create(null), dist_i = /* @__PURE__ */ __name((e3) => globalThis.process?.env || globalThis.Deno?.env.toObject() || globalThis.__env__ || (e3 ? mt : globalThis), "dist_i"), gt = new Proxy(mt, { get: /* @__PURE__ */ __name((e3, t3) => dist_i()[t3] ?? mt[t3], "get"), has: /* @__PURE__ */ __name((e3, t3) => t3 in dist_i() || t3 in mt, "has"), set: /* @__PURE__ */ __name((e3, t3, i2) => (dist_i(true)[t3] = i2, true), "set"), deleteProperty(e3, t3) {
2787
+ if (!t3) return false;
2788
+ return delete dist_i(true)[t3], true;
2789
+ }, ownKeys() {
2790
+ const e3 = dist_i(true);
2791
+ return Object.keys(e3);
2792
+ } }), xt = typeof process < "u" && process.env && process.env.NODE_ENV || "", vt = [["APPVEYOR"], ["AWS_AMPLIFY", "AWS_APP_ID", { ci: true }], ["AZURE_PIPELINES", "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"], ["AZURE_STATIC", "INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"], ["APPCIRCLE", "AC_APPCIRCLE"], ["BAMBOO", "bamboo_planKey"], ["BITBUCKET", "BITBUCKET_COMMIT"], ["BITRISE", "BITRISE_IO"], ["BUDDY", "BUDDY_WORKSPACE_ID"], ["BUILDKITE"], ["CIRCLE", "CIRCLECI"], ["CIRRUS", "CIRRUS_CI"], ["CLOUDFLARE_PAGES", "CF_PAGES", { ci: true }], ["CLOUDFLARE_WORKERS", "WORKERS_CI", { ci: true }], ["CODEBUILD", "CODEBUILD_BUILD_ARN"], ["CODEFRESH", "CF_BUILD_ID"], ["DRONE"], ["DRONE", "DRONE_BUILD_EVENT"], ["DSARI"], ["GITHUB_ACTIONS"], ["GITLAB", "GITLAB_CI"], ["GITLAB", "CI_MERGE_REQUEST_ID"], ["GOCD", "GO_PIPELINE_LABEL"], ["LAYERCI"], ["HUDSON", "HUDSON_URL"], ["JENKINS", "JENKINS_URL"], ["MAGNUM"], ["NETLIFY"], ["NETLIFY", "NETLIFY_LOCAL", { ci: false }], ["NEVERCODE"], ["RENDER"], ["SAIL", "SAILCI"], ["SEMAPHORE"], ["SCREWDRIVER"], ["SHIPPABLE"], ["SOLANO", "TDDIUM"], ["STRIDER"], ["TEAMCITY", "TEAMCITY_VERSION"], ["TRAVIS"], ["VERCEL", "NOW_BUILDER"], ["VERCEL", "VERCEL", { ci: false }], ["VERCEL", "VERCEL_ENV", { ci: false }], ["APPCENTER", "APPCENTER_BUILD_ID"], ["CODESANDBOX", "CODESANDBOX_SSE", { ci: false }], ["CODESANDBOX", "CODESANDBOX_HOST", { ci: false }], ["STACKBLITZ"], ["STORMKIT"], ["CLEAVR"], ["ZEABUR"], ["CODESPHERE", "CODESPHERE_APP_ID", { ci: true }], ["RAILWAY", "RAILWAY_PROJECT_ID"], ["RAILWAY", "RAILWAY_SERVICE_ID"], ["DENO-DEPLOY", "DENO_DEPLOYMENT_ID"], ["FIREBASE_APP_HOSTING", "FIREBASE_APP_HOSTING", { ci: true }]];
2793
+ const yt = function() {
2794
+ if (globalThis.process?.env) for (const e3 of vt) {
2795
+ const t3 = e3[1] || e3[0];
2796
+ if (globalThis.process?.env[t3]) return { name: e3[0].toLowerCase(), ...e3[2] };
2797
+ }
2798
+ return "/bin/jsh" === globalThis.process?.env?.SHELL && globalThis.process?.versions?.webcontainer ? { name: "stackblitz", ci: false } : { name: "", ci: false };
2799
+ }();
2800
+ yt.name;
2801
+ function std_env_dist_n(e3) {
2802
+ return !!e3 && "false" !== e3;
2803
+ }
2804
+ __name(std_env_dist_n, "std_env_dist_n");
2805
+ const _t = globalThis.process?.platform || "", Et = std_env_dist_n(gt.CI) || false !== yt.ci, bt = std_env_dist_n(globalThis.process?.stdout && globalThis.process?.stdout.isTTY), St = (std_env_dist_n(gt.DEBUG), "test" === xt || std_env_dist_n(gt.TEST)), kt = (std_env_dist_n(gt.MINIMAL), /^win/i.test(_t)), wt = (/^linux/i.test(_t), /^darwin/i.test(_t), !std_env_dist_n(gt.NO_COLOR) && (std_env_dist_n(gt.FORCE_COLOR) || (bt || kt) && gt.TERM), (globalThis.process?.versions?.node || "").replace(/^v/, "") || null), It = (Number(wt?.split(".")[0]), globalThis.process || /* @__PURE__ */ Object.create(null)), Ct = { versions: {} }, Rt = (new Proxy(It, { get: /* @__PURE__ */ __name((e3, t3) => "env" === t3 ? gt : t3 in e3 ? e3[t3] : t3 in Ct ? Ct[t3] : void 0, "get") }), "node" === globalThis.process?.release?.name), Pt = !!globalThis.Bun || !!globalThis.process?.versions?.bun, Tt = !!globalThis.Deno, At = !!globalThis.fastly, Nt = [[!!globalThis.Netlify, "netlify"], [!!globalThis.EdgeRuntime, "edge-light"], ["Cloudflare-Workers" === globalThis.navigator?.userAgent, "workerd"], [At, "fastly"], [Tt, "deno"], [Pt, "bun"], [Rt, "node"]];
2806
+ !function() {
2807
+ const e3 = Nt.find((e4) => e4[0]);
2808
+ if (e3) e3[1];
2809
+ }();
2810
+ const Lt = __require("node:tty"), Ot = Lt?.WriteStream?.prototype?.hasColors?.() ?? false, base_format = /* @__PURE__ */ __name((e3, t3) => {
2811
+ if (!Ot) return (e4) => e4;
2812
+ const i2 = `\x1B[${e3}m`, s2 = `\x1B[${t3}m`;
2813
+ return (e4) => {
2814
+ const r2 = e4 + "";
2815
+ let n2 = r2.indexOf(s2);
2816
+ if (-1 === n2) return i2 + r2 + s2;
2817
+ let a2 = i2, o2 = 0;
2818
+ const h2 = (22 === t3 ? s2 : "") + i2;
2819
+ for (; -1 !== n2; ) a2 += r2.slice(o2, n2) + h2, o2 = n2 + s2.length, n2 = r2.indexOf(s2, o2);
2820
+ return a2 += r2.slice(o2) + s2, a2;
2821
+ };
2822
+ }, "base_format"), Dt = (base_format(0, 0), base_format(1, 22), base_format(2, 22), base_format(3, 23), base_format(4, 24), base_format(53, 55), base_format(7, 27), base_format(8, 28), base_format(9, 29), base_format(30, 39), base_format(31, 39)), Vt = base_format(32, 39), Ut = base_format(33, 39), Mt = base_format(34, 39), jt = (base_format(35, 39), base_format(36, 39)), Ft = (base_format(37, 39), base_format(90, 39));
2823
+ base_format(40, 49), base_format(41, 49), base_format(42, 49), base_format(43, 49), base_format(44, 49), base_format(45, 49), base_format(46, 49), base_format(47, 49), base_format(100, 49), base_format(91, 39), base_format(92, 39), base_format(93, 39), base_format(94, 39), base_format(95, 39), base_format(96, 39), base_format(97, 39), base_format(101, 49), base_format(102, 49), base_format(103, 49), base_format(104, 49), base_format(105, 49), base_format(106, 49), base_format(107, 49);
2824
+ function isDir(e3) {
2825
+ if ("string" != typeof e3 || e3.startsWith("file://")) return false;
2826
+ try {
2827
+ return (0, ue.lstatSync)(e3).isDirectory();
2828
+ } catch {
2829
+ return false;
2830
+ }
2831
+ }
2832
+ __name(isDir, "isDir");
2833
+ function utils_hash(e3, t3 = 8) {
2834
+ return (function() {
2835
+ if (void 0 !== $t) return $t;
2836
+ try {
2837
+ return $t = !!ft().getFips?.(), $t;
2838
+ } catch {
2839
+ return $t = false, $t;
2840
+ }
2841
+ }() ? ft().createHash("sha256") : ft().createHash("md5")).update(e3).digest("hex").slice(0, t3);
2842
+ }
2843
+ __name(utils_hash, "utils_hash");
2844
+ const Bt = { true: Vt("true"), false: Ut("false"), "[rebuild]": Ut("[rebuild]"), "[esm]": Mt("[esm]"), "[cjs]": Vt("[cjs]"), "[import]": Mt("[import]"), "[require]": Vt("[require]"), "[native]": jt("[native]"), "[transpile]": Ut("[transpile]"), "[fallback]": Dt("[fallback]"), "[unknown]": Dt("[unknown]"), "[hit]": Vt("[hit]"), "[miss]": Ut("[miss]"), "[json]": Vt("[json]"), "[data]": Vt("[data]") };
2845
+ function debug(e3, ...t3) {
2846
+ if (!e3.opts.debug) return;
2847
+ const i2 = process.cwd();
2848
+ console.log(Ft(["[jiti]", ...t3.map((e4) => e4 in Bt ? Bt[e4] : "string" != typeof e4 ? JSON.stringify(e4) : e4.replace(i2, "."))].join(" ")));
2849
+ }
2850
+ __name(debug, "debug");
2851
+ function jitiInteropDefault(e3, t3) {
2852
+ return e3.opts.interopDefault ? function(e4) {
2853
+ const t4 = typeof e4;
2854
+ if (null === e4 || "object" !== t4 && "function" !== t4) return e4;
2855
+ const i2 = e4.default, s2 = typeof i2, r2 = null == i2, n2 = "object" === s2 || "function" === s2;
2856
+ if (r2 && e4 instanceof Promise) return e4;
2857
+ return new Proxy(e4, { get(t5, s3, a2) {
2858
+ if ("__esModule" === s3) return true;
2859
+ if ("default" === s3) return r2 ? e4 : "function" == typeof i2?.default && e4.__esModule ? i2.default : i2;
2860
+ if (Reflect.has(t5, s3)) return Reflect.get(t5, s3, a2);
2861
+ if (n2 && !(i2 instanceof Promise)) {
2862
+ let e5 = Reflect.get(i2, s3, a2);
2863
+ return "function" == typeof e5 && (e5 = e5.bind(i2)), e5;
2864
+ }
2865
+ }, apply: /* @__PURE__ */ __name((e5, t5, r3) => "function" == typeof e5 ? Reflect.apply(e5, t5, r3) : "function" === s2 ? Reflect.apply(i2, t5, r3) : void 0, "apply") });
2866
+ }(t3) : t3;
2867
+ }
2868
+ __name(jitiInteropDefault, "jitiInteropDefault");
2869
+ let $t;
2870
+ function _booleanEnv(e3, t3) {
2871
+ const i2 = _jsonEnv(e3, t3);
2872
+ return Boolean(i2);
2873
+ }
2874
+ __name(_booleanEnv, "_booleanEnv");
2875
+ function _jsonEnv(e3, t3) {
2876
+ const i2 = process.env[e3];
2877
+ if (!(e3 in process.env)) return t3;
2878
+ try {
2879
+ return JSON.parse(i2);
2880
+ } catch {
2881
+ return t3;
2882
+ }
2883
+ }
2884
+ __name(_jsonEnv, "_jsonEnv");
2885
+ const qt = /\.(c|m)?j(sx?)$/, Wt = /\.(c|m)?t(sx?)$/;
2886
+ function jitiResolve(e3, t3, i2) {
2887
+ let s2, r2;
2888
+ if (e3.isNativeRe.test(t3)) return t3;
2889
+ e3.alias && (t3 = function(e4, t4) {
2890
+ const i3 = pathe_M_eThtNZ_normalizeWindowsPath(e4);
2891
+ t4 = normalizeAliases(t4);
2892
+ for (const [e5, s3] of Object.entries(t4)) {
2893
+ if (!i3.startsWith(e5)) continue;
2894
+ const t5 = utils_hasTrailingSlash(e5) ? e5.slice(0, -1) : e5;
2895
+ if (utils_hasTrailingSlash(i3[t5.length])) return pathe_M_eThtNZ_join(s3, i3.slice(e5.length));
2896
+ }
2897
+ return i3;
2898
+ }(t3, e3.alias));
2899
+ let n2 = i2?.parentURL || e3.url;
2900
+ isDir(n2) && (n2 = pathe_M_eThtNZ_join(n2, "_index.js"));
2901
+ const a2 = (i2?.async ? [i2?.conditions, ["node", "import"], ["node", "require"]] : [i2?.conditions, ["node", "require"], ["node", "import"]]).filter(Boolean);
2902
+ for (const i3 of a2) {
2903
+ try {
2904
+ s2 = resolvePathSync(t3, { url: n2, conditions: i3, extensions: e3.opts.extensions });
2905
+ } catch (e4) {
2906
+ r2 = e4;
2907
+ }
2908
+ if (s2) return s2;
2909
+ }
2910
+ try {
2911
+ return e3.nativeRequire.resolve(t3, { paths: i2.paths });
2912
+ } catch (e4) {
2913
+ r2 = e4;
2914
+ }
2915
+ for (const r3 of e3.additionalExts) {
2916
+ if (s2 = tryNativeRequireResolve(e3, t3 + r3, n2, i2) || tryNativeRequireResolve(e3, t3 + "/index" + r3, n2, i2), s2) return s2;
2917
+ if ((Wt.test(e3.filename) || Wt.test(e3.parentModule?.filename || "") || qt.test(t3)) && (s2 = tryNativeRequireResolve(e3, t3.replace(qt, ".$1t$2"), n2, i2), s2)) return s2;
2918
+ }
2919
+ if (!i2?.try) throw r2;
2920
+ }
2921
+ __name(jitiResolve, "jitiResolve");
2922
+ function tryNativeRequireResolve(e3, t3, i2, s2) {
2923
+ try {
2924
+ return e3.nativeRequire.resolve(t3, { ...s2, paths: [pathe_M_eThtNZ_dirname(fileURLToPath(i2)), ...s2?.paths || []] });
2925
+ } catch {
2926
+ }
2927
+ }
2928
+ __name(tryNativeRequireResolve, "tryNativeRequireResolve");
2929
+ const Gt = __require("node:perf_hooks"), Ht = __require("node:vm");
2930
+ var Kt = __webpack_require__.n(Ht);
2931
+ function jitiRequire(e3, t3, i2) {
2932
+ const s2 = e3.parentCache || {};
2933
+ if (t3.startsWith("node:")) return nativeImportOrRequire(e3, t3, i2.async);
2934
+ if (t3.startsWith("file:")) t3 = (0, _e.fileURLToPath)(t3);
2935
+ else if (t3.startsWith("data:")) {
2936
+ if (!i2.async) throw new Error("`data:` URLs are only supported in ESM context. Use `import` or `jiti.import` instead.");
2937
+ return debug(e3, "[native]", "[data]", "[import]", t3), nativeImportOrRequire(e3, t3, true);
2938
+ }
2939
+ if (le.builtinModules.includes(t3) || ".pnp.js" === t3) return nativeImportOrRequire(e3, t3, i2.async);
2940
+ if (e3.opts.tryNative && !e3.opts.transformOptions) try {
2941
+ if (!(t3 = jitiResolve(e3, t3, i2)) && i2.try) return;
2942
+ if (debug(e3, "[try-native]", i2.async && e3.nativeImport ? "[import]" : "[require]", t3), i2.async && e3.nativeImport) return e3.nativeImport(t3).then((i3) => (false === e3.opts.moduleCache && delete e3.nativeRequire.cache[t3], jitiInteropDefault(e3, i3)));
2943
+ {
2944
+ const i3 = e3.nativeRequire(t3);
2945
+ return false === e3.opts.moduleCache && delete e3.nativeRequire.cache[t3], jitiInteropDefault(e3, i3);
2946
+ }
2947
+ } catch (i3) {
2948
+ debug(e3, `[try-native] Using fallback for ${t3} because of an error:`, i3);
2949
+ }
2950
+ const r2 = jitiResolve(e3, t3, i2);
2951
+ if (!r2 && i2.try) return;
2952
+ const n2 = extname(r2);
2953
+ if (".json" === n2) {
2954
+ debug(e3, "[json]", r2);
2955
+ const t4 = e3.nativeRequire(r2);
2956
+ return t4 && !("default" in t4) && Object.defineProperty(t4, "default", { value: t4, enumerable: false }), t4;
2957
+ }
2958
+ if (n2 && !e3.opts.extensions.includes(n2)) return debug(e3, "[native]", "[unknown]", i2.async ? "[import]" : "[require]", r2), nativeImportOrRequire(e3, r2, i2.async);
2959
+ if (e3.isNativeRe.test(r2)) return debug(e3, "[native]", i2.async ? "[import]" : "[require]", r2), nativeImportOrRequire(e3, r2, i2.async);
2960
+ if (s2[r2]) return jitiInteropDefault(e3, s2[r2]?.exports);
2961
+ if (e3.opts.moduleCache) {
2962
+ const t4 = e3.nativeRequire.cache[r2];
2963
+ if (t4?.loaded) return jitiInteropDefault(e3, t4.exports);
2964
+ }
2965
+ const a2 = (0, ue.readFileSync)(r2, "utf8");
2966
+ return eval_evalModule(e3, a2, { id: t3, filename: r2, ext: n2, cache: s2, async: i2.async });
2967
+ }
2968
+ __name(jitiRequire, "jitiRequire");
2969
+ function nativeImportOrRequire(e3, t3, i2) {
2970
+ return i2 && e3.nativeImport ? e3.nativeImport(function(e4) {
2971
+ return kt && isAbsolute(e4) ? pathToFileURL(e4) : e4;
2972
+ }(t3)).then((t4) => jitiInteropDefault(e3, t4)) : jitiInteropDefault(e3, e3.nativeRequire(t3));
2973
+ }
2974
+ __name(nativeImportOrRequire, "nativeImportOrRequire");
2975
+ const zt = "9";
2976
+ function getCache(e3, t3, i2) {
2977
+ if (!e3.opts.fsCache || !t3.filename) return i2();
2978
+ const s2 = ` /* v${zt}-${utils_hash(t3.source, 16)} */
2979
+ `;
2980
+ let r2 = `${basename(pathe_M_eThtNZ_dirname(t3.filename))}-${function(e4) {
2981
+ const t4 = e4.split(lt).pop();
2982
+ if (!t4) return;
2983
+ const i3 = t4.lastIndexOf(".");
2984
+ return i3 <= 0 ? t4 : t4.slice(0, i3);
2985
+ }(t3.filename)}` + (e3.opts.sourceMaps ? "+map" : "") + (t3.interopDefault ? ".i" : "") + `.${utils_hash(t3.filename)}` + (t3.async ? ".mjs" : ".cjs");
2986
+ t3.jsx && t3.filename.endsWith("x") && (r2 += "x");
2987
+ const n2 = e3.opts.fsCache, a2 = pathe_M_eThtNZ_join(n2, r2);
2988
+ if (!e3.opts.rebuildFsCache && (0, ue.existsSync)(a2)) {
2989
+ const i3 = (0, ue.readFileSync)(a2, "utf8");
2990
+ if (i3.endsWith(s2)) return debug(e3, "[cache]", "[hit]", t3.filename, "~>", a2), i3;
2991
+ }
2992
+ debug(e3, "[cache]", "[miss]", t3.filename);
2993
+ const o2 = i2();
2994
+ return o2.includes("__JITI_ERROR__") || ((0, ue.writeFileSync)(a2, o2 + s2, "utf8"), debug(e3, "[cache]", "[store]", t3.filename, "~>", a2)), o2;
2995
+ }
2996
+ __name(getCache, "getCache");
2997
+ function prepareCacheDir(t3) {
2998
+ if (true === t3.opts.fsCache && (t3.opts.fsCache = function(t4) {
2999
+ const i2 = t4.filename && pathe_M_eThtNZ_resolve(t4.filename, "../node_modules");
3000
+ if (i2 && (0, ue.existsSync)(i2)) return pathe_M_eThtNZ_join(i2, ".cache/jiti");
3001
+ let s2 = (0, e2.tmpdir)();
3002
+ if (process.env.TMPDIR && s2 === process.cwd() && !process.env.JITI_RESPECT_TMPDIR_ENV) {
3003
+ const t5 = process.env.TMPDIR;
3004
+ delete process.env.TMPDIR, s2 = (0, e2.tmpdir)(), process.env.TMPDIR = t5;
3005
+ }
3006
+ return pathe_M_eThtNZ_join(s2, "jiti");
3007
+ }(t3)), t3.opts.fsCache) try {
3008
+ if ((0, ue.mkdirSync)(t3.opts.fsCache, { recursive: true }), !function(e3) {
3009
+ try {
3010
+ return (0, ue.accessSync)(e3, ue.constants.W_OK), true;
3011
+ } catch {
3012
+ return false;
3013
+ }
3014
+ }(t3.opts.fsCache)) throw new Error("directory is not writable!");
3015
+ } catch (e3) {
3016
+ debug(t3, "Error creating cache directory at ", t3.opts.fsCache, e3), t3.opts.fsCache = false;
3017
+ }
3018
+ }
3019
+ __name(prepareCacheDir, "prepareCacheDir");
3020
+ function transform(e3, t3) {
3021
+ let i2 = getCache(e3, t3, () => {
3022
+ const i3 = e3.opts.transform({ ...e3.opts.transformOptions, babel: { ...e3.opts.sourceMaps ? { sourceFileName: t3.filename, sourceMaps: "inline" } : {}, ...e3.opts.transformOptions?.babel }, interopDefault: e3.opts.interopDefault, ...t3 });
3023
+ return i3.error && e3.opts.debug && debug(e3, i3.error), i3.code;
3024
+ });
3025
+ return i2.startsWith("#!") && (i2 = "// " + i2), i2;
3026
+ }
3027
+ __name(transform, "transform");
3028
+ function eval_evalModule(e3, t3, i2 = {}) {
3029
+ const s2 = i2.id || (i2.filename ? basename(i2.filename) : `_jitiEval.${i2.ext || (i2.async ? "mjs" : "js")}`), r2 = i2.filename || jitiResolve(e3, s2, { async: i2.async }), n2 = i2.ext || extname(r2), a2 = i2.cache || e3.parentCache || {}, o2 = /\.[cm]?tsx?$/.test(n2), h2 = ".mjs" === n2 || ".js" === n2 && "module" === function(e4) {
3030
+ for (; e4 && "." !== e4 && "/" !== e4; ) {
3031
+ e4 = pathe_M_eThtNZ_join(e4, "..");
3032
+ try {
3033
+ const t4 = (0, ue.readFileSync)(pathe_M_eThtNZ_join(e4, "package.json"), "utf8");
3034
+ try {
3035
+ return JSON.parse(t4);
3036
+ } catch {
3037
+ }
3038
+ break;
3039
+ } catch {
3040
+ }
3041
+ }
3042
+ }(r2)?.type, c2 = ".cjs" === n2, p2 = i2.forceTranspile ?? (!c2 && !(h2 && i2.async) && (o2 || h2 || e3.isTransformRe.test(r2) || hasESMSyntax(t3))), l2 = Gt.performance.now();
3043
+ if (p2) {
3044
+ t3 = transform(e3, { filename: r2, source: t3, ts: o2, async: i2.async ?? false, jsx: e3.opts.jsx });
3045
+ const s3 = Math.round(1e3 * (Gt.performance.now() - l2)) / 1e3;
3046
+ debug(e3, "[transpile]", i2.async ? "[esm]" : "[cjs]", r2, `(${s3}ms)`);
3047
+ } else {
3048
+ if (debug(e3, "[native]", i2.async ? "[import]" : "[require]", r2), i2.async) return Promise.resolve(nativeImportOrRequire(e3, r2, i2.async)).catch((s3) => (debug(e3, "Native import error:", s3), debug(e3, "[fallback]", r2), eval_evalModule(e3, t3, { ...i2, forceTranspile: true })));
3049
+ try {
3050
+ return nativeImportOrRequire(e3, r2, i2.async);
3051
+ } catch (s3) {
3052
+ debug(e3, "Native require error:", s3), debug(e3, "[fallback]", r2), t3 = transform(e3, { filename: r2, source: t3, ts: o2, async: i2.async ?? false, jsx: e3.opts.jsx });
3053
+ }
3054
+ }
3055
+ const u2 = new le.Module(r2);
3056
+ u2.filename = r2, e3.parentModule && (u2.parent = e3.parentModule, Array.isArray(e3.parentModule.children) && !e3.parentModule.children.includes(u2) && e3.parentModule.children.push(u2));
3057
+ const d2 = createJiti2(r2, e3.opts, { parentModule: u2, parentCache: a2, nativeImport: e3.nativeImport, onError: e3.onError, createRequire: e3.createRequire }, true);
3058
+ let f2;
3059
+ u2.require = d2, u2.path = pathe_M_eThtNZ_dirname(r2), u2.paths = le.Module._nodeModulePaths(u2.path), a2[r2] = u2, e3.opts.moduleCache && (e3.nativeRequire.cache[r2] = u2);
3060
+ const m2 = function(e4, t4) {
3061
+ return `(${t4?.async ? "async " : ""}function (exports, require, module, __filename, __dirname, jitiImport, jitiESMResolve) { ${e4}
3062
+ });`;
3063
+ }(t3, { async: i2.async });
3064
+ try {
3065
+ f2 = Kt().runInThisContext(m2, { filename: r2, lineOffset: 0, displayErrors: false });
3066
+ } catch (t4) {
3067
+ "SyntaxError" === t4.name && i2.async && e3.nativeImport ? (debug(e3, "[esm]", "[import]", "[fallback]", r2), f2 = function(e4, t5) {
3068
+ const i3 = `data:text/javascript;base64,${Buffer.from(`export default ${e4}`).toString("base64")}`;
3069
+ return (...e5) => t5(i3).then((t6) => t6.default(...e5));
3070
+ }(m2, e3.nativeImport)) : (e3.opts.moduleCache && delete e3.nativeRequire.cache[r2], e3.onError(t4));
3071
+ }
3072
+ let g2;
3073
+ try {
3074
+ g2 = f2(u2.exports, u2.require, u2, u2.filename, pathe_M_eThtNZ_dirname(u2.filename), d2.import, d2.esmResolve);
3075
+ } catch (t4) {
3076
+ e3.opts.moduleCache && delete e3.nativeRequire.cache[r2], e3.onError(t4);
3077
+ }
3078
+ function next() {
3079
+ if (u2.exports && u2.exports.__JITI_ERROR__) {
3080
+ const { filename: t4, line: i3, column: s3, code: r3, message: n3 } = u2.exports.__JITI_ERROR__, a3 = new Error(`${r3}: ${n3}
3081
+ ${`${t4}:${i3}:${s3}`}`);
3082
+ Error.captureStackTrace(a3, jitiRequire), e3.onError(a3);
3083
+ }
3084
+ u2.loaded = true;
3085
+ return jitiInteropDefault(e3, u2.exports);
3086
+ }
3087
+ __name(next, "next");
3088
+ return i2.async ? Promise.resolve(g2).then(next) : next();
3089
+ }
3090
+ __name(eval_evalModule, "eval_evalModule");
3091
+ const Jt = "win32" === (0, e2.platform)();
3092
+ function createJiti2(e3, t3 = {}, i2, s2 = false) {
3093
+ const r2 = s2 ? t3 : function(e4) {
3094
+ const t4 = { fsCache: _booleanEnv("JITI_FS_CACHE", _booleanEnv("JITI_CACHE", true)), rebuildFsCache: _booleanEnv("JITI_REBUILD_FS_CACHE", false), moduleCache: _booleanEnv("JITI_MODULE_CACHE", _booleanEnv("JITI_REQUIRE_CACHE", true)), debug: _booleanEnv("JITI_DEBUG", false), sourceMaps: _booleanEnv("JITI_SOURCE_MAPS", false), interopDefault: _booleanEnv("JITI_INTEROP_DEFAULT", true), extensions: _jsonEnv("JITI_EXTENSIONS", [".js", ".mjs", ".cjs", ".ts", ".tsx", ".mts", ".cts", ".mtsx", ".ctsx"]), alias: _jsonEnv("JITI_ALIAS", {}), nativeModules: _jsonEnv("JITI_NATIVE_MODULES", []), transformModules: _jsonEnv("JITI_TRANSFORM_MODULES", []), tryNative: _jsonEnv("JITI_TRY_NATIVE", "Bun" in globalThis), jsx: _booleanEnv("JITI_JSX", false) };
3095
+ t4.jsx && t4.extensions.push(".jsx", ".tsx");
3096
+ const i3 = {};
3097
+ return void 0 !== e4.cache && (i3.fsCache = e4.cache), void 0 !== e4.requireCache && (i3.moduleCache = e4.requireCache), { ...t4, ...i3, ...e4 };
3098
+ }(t3), n2 = r2.alias && Object.keys(r2.alias).length > 0 ? normalizeAliases(r2.alias || {}) : void 0, a2 = ["typescript", "jiti", ...r2.nativeModules || []], o2 = new RegExp(`node_modules/(${a2.map((e4) => escapeStringRegexp(e4)).join("|")})/`), h2 = [...r2.transformModules || []], c2 = new RegExp(`node_modules/(${h2.map((e4) => escapeStringRegexp(e4)).join("|")})/`);
3099
+ e3 || (e3 = process.cwd()), !s2 && isDir(e3) && (e3 = pathe_M_eThtNZ_join(e3, "_index.js"));
3100
+ const p2 = pathToFileURL(e3), l2 = [...r2.extensions].filter((e4) => ".js" !== e4), u2 = i2.createRequire(Jt ? e3.replace(/\//g, "\\") : e3), d2 = { filename: e3, url: p2, opts: r2, alias: n2, nativeModules: a2, transformModules: h2, isNativeRe: o2, isTransformRe: c2, additionalExts: l2, nativeRequire: u2, onError: i2.onError, parentModule: i2.parentModule, parentCache: i2.parentCache, nativeImport: i2.nativeImport, createRequire: i2.createRequire };
3101
+ s2 || debug(d2, "[init]", ...[["version:", ut.rE], ["module-cache:", r2.moduleCache], ["fs-cache:", r2.fsCache], ["rebuild-fs-cache:", r2.rebuildFsCache], ["interop-defaults:", r2.interopDefault]].flat()), s2 || prepareCacheDir(d2);
3102
+ const f2 = Object.assign(function(e4) {
3103
+ return jitiRequire(d2, e4, { async: false });
3104
+ }, { cache: r2.moduleCache ? u2.cache : /* @__PURE__ */ Object.create(null), extensions: u2.extensions, main: u2.main, options: r2, resolve: Object.assign(function(e4) {
3105
+ return jitiResolve(d2, e4, { async: false });
3106
+ }, { paths: u2.resolve.paths }), transform: /* @__PURE__ */ __name((e4) => transform(d2, e4), "transform"), evalModule: /* @__PURE__ */ __name((e4, t4) => eval_evalModule(d2, e4, t4), "evalModule"), async import(e4, t4) {
3107
+ const i3 = await jitiRequire(d2, e4, { ...t4, async: true });
3108
+ return t4?.default ? i3?.default ?? i3 : i3;
3109
+ }, esmResolve(e4, t4) {
3110
+ "string" == typeof t4 && (t4 = { parentURL: t4 });
3111
+ const i3 = jitiResolve(d2, e4, { parentURL: p2, ...t4, async: true });
3112
+ return !i3 || "string" != typeof i3 || i3.startsWith("file://") ? i3 : pathToFileURL(i3);
3113
+ } });
3114
+ return f2;
3115
+ }
3116
+ __name(createJiti2, "createJiti");
3117
+ })(), module.exports = i.default;
3118
+ })();
3119
+ }
3120
+ });
3121
+
3122
+ // ../../node_modules/jiti/lib/jiti.mjs
3123
+ import { createRequire } from "node:module";
3124
+ function onError(err) {
3125
+ throw err;
3126
+ }
3127
+ function lazyTransform(...args) {
3128
+ if (!_transform) {
3129
+ _transform = createRequire(import.meta.url)("../dist/babel.cjs");
3130
+ }
3131
+ return _transform(...args);
3132
+ }
3133
+ function createJiti(id, opts = {}) {
3134
+ if (!opts.transform) {
3135
+ opts = { ...opts, transform: lazyTransform };
3136
+ }
3137
+ return (0, import_jiti.default)(id, opts, {
3138
+ onError,
3139
+ nativeImport,
3140
+ createRequire
3141
+ });
3142
+ }
3143
+ var import_jiti, nativeImport, _transform, jiti_default;
3144
+ var init_jiti = __esm({
3145
+ "../../node_modules/jiti/lib/jiti.mjs"() {
3146
+ import_jiti = __toESM(require_jiti(), 1);
3147
+ __name(onError, "onError");
3148
+ nativeImport = /* @__PURE__ */ __name((id) => import(id), "nativeImport");
3149
+ __name(lazyTransform, "lazyTransform");
3150
+ __name(createJiti, "createJiti");
3151
+ jiti_default = createJiti;
3152
+ }
3153
+ });
3154
+ init_jiti();
3155
+ export {
3156
+ createJiti,
3157
+ jiti_default as default
3158
+ };