@storybook/nextjs-vite 10.1.0-alpha.9 → 10.1.0-beta.0

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