@drzl/validation-core 2.1.0 → 3.1.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,3181 @@
1
+ import "./chunk-ZZGILH5A.js";
2
+
3
+ // ../../node_modules/.pnpm/prettier@3.9.6/node_modules/prettier/plugins/acorn.mjs
4
+ var Bi = Object.create;
5
+ var Me = Object.defineProperty;
6
+ var Fi = Object.getOwnPropertyDescriptor;
7
+ var ji = Object.getOwnPropertyNames;
8
+ var Ui = Object.getPrototypeOf;
9
+ var Gi = Object.prototype.hasOwnProperty;
10
+ var ct = (e, t) => () => {
11
+ try {
12
+ return t || e((t = { exports: {} }).exports, t), t.exports;
13
+ } catch (i) {
14
+ throw t = 0, i;
15
+ }
16
+ };
17
+ var Be = (e, t) => {
18
+ for (var i in t) Me(e, i, { get: t[i], enumerable: true });
19
+ };
20
+ var Wi = (e, t, i, r) => {
21
+ if (t && typeof t == "object" || typeof t == "function") for (let s of ji(t)) !Gi.call(e, s) && s !== i && Me(e, s, { get: () => t[s], enumerable: !(r = Fi(t, s)) || r.enumerable });
22
+ return e;
23
+ };
24
+ var pt = (e, t, i) => (i = e != null ? Bi(Ui(e)) : {}, Wi(t || !e || !e.__esModule ? Me(i, "default", { value: e, enumerable: true }) : i, e));
25
+ var ti = ct((Ps, ei) => {
26
+ ei.exports = {};
27
+ });
28
+ var et = ct((Ns, $e) => {
29
+ "use strict";
30
+ var wr = ti(), Ir = /^[\da-fA-F]+$/, Pr = /^\d+$/, ii = /* @__PURE__ */ new WeakMap();
31
+ function ri(e) {
32
+ e = e.Parser.acorn || e;
33
+ let t = ii.get(e);
34
+ if (!t) {
35
+ let i = e.tokTypes, r = e.TokContext, s = e.TokenType, n = new r("<tag", false), o = new r("</tag", false), h = new r("<tag>...</tag>", true, true), c = { tc_oTag: n, tc_cTag: o, tc_expr: h }, l = { jsxName: new s("jsxName"), jsxText: new s("jsxText", { beforeExpr: true }), jsxTagStart: new s("jsxTagStart", { startsExpr: true }), jsxTagEnd: new s("jsxTagEnd") };
36
+ l.jsxTagStart.updateContext = function() {
37
+ this.context.push(h), this.context.push(n), this.exprAllowed = false;
38
+ }, l.jsxTagEnd.updateContext = function(m) {
39
+ let S = this.context.pop();
40
+ S === n && m === i.slash || S === o ? (this.context.pop(), this.exprAllowed = this.curContext() === h) : this.exprAllowed = true;
41
+ }, t = { tokContexts: c, tokTypes: l }, ii.set(e, t);
42
+ }
43
+ return t;
44
+ }
45
+ function pe(e) {
46
+ if (!e) return e;
47
+ if (e.type === "JSXIdentifier") return e.name;
48
+ if (e.type === "JSXNamespacedName") return e.namespace.name + ":" + e.name.name;
49
+ if (e.type === "JSXMemberExpression") return pe(e.object) + "." + pe(e.property);
50
+ }
51
+ $e.exports = function(e) {
52
+ return e = e || {}, function(t) {
53
+ return Nr({ allowNamespaces: e.allowNamespaces !== false, allowNamespacedObjects: !!e.allowNamespacedObjects }, t);
54
+ };
55
+ };
56
+ Object.defineProperty($e.exports, "tokTypes", { get: function() {
57
+ return ri(void 0).tokTypes;
58
+ }, configurable: true, enumerable: true });
59
+ function Nr(e, t) {
60
+ let i = t.acorn || void 0, r = ri(i), s = i.tokTypes, n = r.tokTypes, o = i.tokContexts, h = r.tokContexts.tc_oTag, c = r.tokContexts.tc_cTag, l = r.tokContexts.tc_expr, m = i.isNewLine, S = i.isIdentifierStart, E = i.isIdentifierChar;
61
+ return class extends t {
62
+ static get acornJsx() {
63
+ return r;
64
+ }
65
+ jsx_readToken() {
66
+ let p = "", x = this.pos;
67
+ for (; ; ) {
68
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated JSX contents");
69
+ let y = this.input.charCodeAt(this.pos);
70
+ switch (y) {
71
+ case 60:
72
+ case 123:
73
+ return this.pos === this.start ? y === 60 && this.exprAllowed ? (++this.pos, this.finishToken(n.jsxTagStart)) : this.getTokenFromCode(y) : (p += this.input.slice(x, this.pos), this.finishToken(n.jsxText, p));
74
+ case 38:
75
+ p += this.input.slice(x, this.pos), p += this.jsx_readEntity(), x = this.pos;
76
+ break;
77
+ case 62:
78
+ case 125:
79
+ this.raise(this.pos, "Unexpected token `" + this.input[this.pos] + "`. Did you mean `" + (y === 62 ? "&gt;" : "&rbrace;") + '` or `{"' + this.input[this.pos] + '"}`?');
80
+ default:
81
+ m(y) ? (p += this.input.slice(x, this.pos), p += this.jsx_readNewLine(true), x = this.pos) : ++this.pos;
82
+ }
83
+ }
84
+ }
85
+ jsx_readNewLine(p) {
86
+ let x = this.input.charCodeAt(this.pos), y;
87
+ return ++this.pos, x === 13 && this.input.charCodeAt(this.pos) === 10 ? (++this.pos, y = p ? `
88
+ ` : `\r
89
+ `) : y = String.fromCharCode(x), this.options.locations && (++this.curLine, this.lineStart = this.pos), y;
90
+ }
91
+ jsx_readString(p) {
92
+ let x = "", y = ++this.pos;
93
+ for (; ; ) {
94
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
95
+ let v = this.input.charCodeAt(this.pos);
96
+ if (v === p) break;
97
+ v === 38 ? (x += this.input.slice(y, this.pos), x += this.jsx_readEntity(), y = this.pos) : m(v) ? (x += this.input.slice(y, this.pos), x += this.jsx_readNewLine(false), y = this.pos) : ++this.pos;
98
+ }
99
+ return x += this.input.slice(y, this.pos++), this.finishToken(s.string, x);
100
+ }
101
+ jsx_readEntity() {
102
+ let p = "", x = 0, y, v = this.input[this.pos];
103
+ v !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
104
+ let N = ++this.pos;
105
+ for (; this.pos < this.input.length && x++ < 10; ) {
106
+ if (v = this.input[this.pos++], v === ";") {
107
+ p[0] === "#" ? p[1] === "x" ? (p = p.substr(2), Ir.test(p) && (y = String.fromCharCode(parseInt(p, 16)))) : (p = p.substr(1), Pr.test(p) && (y = String.fromCharCode(parseInt(p, 10)))) : y = wr[p];
108
+ break;
109
+ }
110
+ p += v;
111
+ }
112
+ return y || (this.pos = N, "&");
113
+ }
114
+ jsx_readWord() {
115
+ let p, x = this.pos;
116
+ do
117
+ p = this.input.charCodeAt(++this.pos);
118
+ while (E(p) || p === 45);
119
+ return this.finishToken(n.jsxName, this.input.slice(x, this.pos));
120
+ }
121
+ jsx_parseIdentifier() {
122
+ let p = this.startNode();
123
+ return this.type === n.jsxName ? p.name = this.value : this.type.keyword ? p.name = this.type.keyword : this.unexpected(), this.next(), this.finishNode(p, "JSXIdentifier");
124
+ }
125
+ jsx_parseNamespacedName() {
126
+ let p = this.start, x = this.startLoc, y = this.jsx_parseIdentifier();
127
+ if (!e.allowNamespaces || !this.eat(s.colon)) return y;
128
+ var v = this.startNodeAt(p, x);
129
+ return v.namespace = y, v.name = this.jsx_parseIdentifier(), this.finishNode(v, "JSXNamespacedName");
130
+ }
131
+ jsx_parseElementName() {
132
+ if (this.type === n.jsxTagEnd) return "";
133
+ let p = this.start, x = this.startLoc, y = this.jsx_parseNamespacedName();
134
+ for (this.type === s.dot && y.type === "JSXNamespacedName" && !e.allowNamespacedObjects && this.unexpected(); this.eat(s.dot); ) {
135
+ let v = this.startNodeAt(p, x);
136
+ v.object = y, v.property = this.jsx_parseIdentifier(), y = this.finishNode(v, "JSXMemberExpression");
137
+ }
138
+ return y;
139
+ }
140
+ jsx_parseAttributeValue() {
141
+ switch (this.type) {
142
+ case s.braceL:
143
+ let p = this.jsx_parseExpressionContainer();
144
+ return p.expression.type === "JSXEmptyExpression" && this.raise(p.start, "JSX attributes must only be assigned a non-empty expression"), p;
145
+ case n.jsxTagStart:
146
+ case s.string:
147
+ return this.parseExprAtom();
148
+ default:
149
+ this.raise(this.start, "JSX value should be either an expression or a quoted JSX text");
150
+ }
151
+ }
152
+ jsx_parseEmptyExpression() {
153
+ let p = this.startNodeAt(this.lastTokEnd, this.lastTokEndLoc);
154
+ return this.finishNodeAt(p, "JSXEmptyExpression", this.start, this.startLoc);
155
+ }
156
+ jsx_parseExpressionContainer() {
157
+ let p = this.startNode();
158
+ return this.next(), p.expression = this.type === s.braceR ? this.jsx_parseEmptyExpression() : this.parseExpression(), this.expect(s.braceR), this.finishNode(p, "JSXExpressionContainer");
159
+ }
160
+ jsx_parseAttribute() {
161
+ let p = this.startNode();
162
+ return this.eat(s.braceL) ? (this.expect(s.ellipsis), p.argument = this.parseMaybeAssign(), this.expect(s.braceR), this.finishNode(p, "JSXSpreadAttribute")) : (p.name = this.jsx_parseNamespacedName(), p.value = this.eat(s.eq) ? this.jsx_parseAttributeValue() : null, this.finishNode(p, "JSXAttribute"));
163
+ }
164
+ jsx_parseOpeningElementAt(p, x) {
165
+ let y = this.startNodeAt(p, x);
166
+ y.attributes = [];
167
+ let v = this.jsx_parseElementName();
168
+ for (v && (y.name = v); this.type !== s.slash && this.type !== n.jsxTagEnd; ) y.attributes.push(this.jsx_parseAttribute());
169
+ return y.selfClosing = this.eat(s.slash), this.expect(n.jsxTagEnd), this.finishNode(y, v ? "JSXOpeningElement" : "JSXOpeningFragment");
170
+ }
171
+ jsx_parseClosingElementAt(p, x) {
172
+ let y = this.startNodeAt(p, x), v = this.jsx_parseElementName();
173
+ return v && (y.name = v), this.expect(n.jsxTagEnd), this.finishNode(y, v ? "JSXClosingElement" : "JSXClosingFragment");
174
+ }
175
+ jsx_parseElementAt(p, x) {
176
+ let y = this.startNodeAt(p, x), v = [], N = this.jsx_parseOpeningElementAt(p, x), de = null;
177
+ if (!N.selfClosing) {
178
+ e: for (; ; ) switch (this.type) {
179
+ case n.jsxTagStart:
180
+ if (p = this.start, x = this.startLoc, this.next(), this.eat(s.slash)) {
181
+ de = this.jsx_parseClosingElementAt(p, x);
182
+ break e;
183
+ }
184
+ v.push(this.jsx_parseElementAt(p, x));
185
+ break;
186
+ case n.jsxText:
187
+ v.push(this.parseExprAtom());
188
+ break;
189
+ case s.braceL:
190
+ v.push(this.jsx_parseExpressionContainer());
191
+ break;
192
+ default:
193
+ this.unexpected();
194
+ }
195
+ pe(de.name) !== pe(N.name) && this.raise(de.start, "Expected corresponding JSX closing tag for <" + pe(N.name) + ">");
196
+ }
197
+ let De = N.name ? "Element" : "Fragment";
198
+ return y["opening" + De] = N, y["closing" + De] = de, y.children = v, this.type === s.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(y, "JSX" + De);
199
+ }
200
+ jsx_parseText() {
201
+ let p = this.parseLiteral(this.value);
202
+ return p.type = "JSXText", p;
203
+ }
204
+ jsx_parseElement() {
205
+ let p = this.start, x = this.startLoc;
206
+ return this.next(), this.jsx_parseElementAt(p, x);
207
+ }
208
+ parseExprAtom(p) {
209
+ return this.type === n.jsxText ? this.jsx_parseText() : this.type === n.jsxTagStart ? this.jsx_parseElement() : super.parseExprAtom(p);
210
+ }
211
+ readToken(p) {
212
+ let x = this.curContext();
213
+ if (x === l) return this.jsx_readToken();
214
+ if (x === h || x === c) {
215
+ if (S(p)) return this.jsx_readWord();
216
+ if (p == 62) return ++this.pos, this.finishToken(n.jsxTagEnd);
217
+ if ((p === 34 || p === 39) && x == h) return this.jsx_readString(p);
218
+ }
219
+ return p === 60 && this.exprAllowed && this.input.charCodeAt(this.pos + 1) !== 33 ? (++this.pos, this.finishToken(n.jsxTagStart)) : super.readToken(p);
220
+ }
221
+ updateContext(p) {
222
+ if (this.type == s.braceL) {
223
+ var x = this.curContext();
224
+ x == h ? this.context.push(o.b_expr) : x == l ? this.context.push(o.b_tmpl) : super.updateContext(p), this.exprAllowed = true;
225
+ } else if (this.type === s.slash && p === n.jsxTagStart) this.context.length -= 2, this.context.push(c), this.exprAllowed = false;
226
+ else return super.updateContext(p);
227
+ }
228
+ };
229
+ }
230
+ });
231
+ var Mi = {};
232
+ Be(Mi, { parsers: () => ws });
233
+ var nt = {};
234
+ Be(nt, { acorn: () => ys });
235
+ var qi = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
236
+ var yt = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 7, 25, 39, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489];
237
+ var Hi = "\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-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
238
+ var gt = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
239
+ var Fe = { 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" };
240
+ var je = "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";
241
+ var Ki = { 5: je, "5module": je + " export import", 6: je + " const class extends export import super" };
242
+ var vt = /^in(stanceof)?$/;
243
+ var Ji = new RegExp("[" + gt + "]");
244
+ var Xi = new RegExp("[" + gt + Hi + "]");
245
+ function Ge(e, t) {
246
+ for (var i = 65536, r = 0; r < t.length; r += 2) {
247
+ if (i += t[r], i > e) return false;
248
+ if (i += t[r + 1], i >= e) return true;
249
+ }
250
+ return false;
251
+ }
252
+ function j(e, t) {
253
+ return e < 65 ? e === 36 : e < 91 ? true : e < 97 ? e === 95 : e < 123 ? true : e <= 65535 ? e >= 170 && Ji.test(String.fromCharCode(e)) : t === false ? false : Ge(e, yt);
254
+ }
255
+ function K(e, t) {
256
+ return e < 48 ? e === 36 : e < 58 ? true : e < 65 ? false : e < 91 ? true : e < 97 ? e === 95 : e < 123 ? true : e <= 65535 ? e >= 170 && Xi.test(String.fromCharCode(e)) : t === false ? false : Ge(e, yt) || Ge(e, qi);
257
+ }
258
+ var _ = function(t, i) {
259
+ i === void 0 && (i = {}), this.label = t, this.keyword = i.keyword, this.beforeExpr = !!i.beforeExpr, this.startsExpr = !!i.startsExpr, this.isLoop = !!i.isLoop, this.isAssign = !!i.isAssign, this.prefix = !!i.prefix, this.postfix = !!i.postfix, this.binop = i.binop || null, this.updateContext = null;
260
+ };
261
+ function V(e, t) {
262
+ return new _(e, { beforeExpr: true, binop: t });
263
+ }
264
+ var O = { beforeExpr: true };
265
+ var L = { startsExpr: true };
266
+ var Ke = {};
267
+ function C(e, t) {
268
+ return t === void 0 && (t = {}), t.keyword = e, Ke[e] = new _(e, t);
269
+ }
270
+ var a = { num: new _("num", L), regexp: new _("regexp", L), string: new _("string", L), name: new _("name", L), privateId: new _("privateId", L), eof: new _("eof"), bracketL: new _("[", { beforeExpr: true, startsExpr: true }), bracketR: new _("]"), braceL: new _("{", { beforeExpr: true, startsExpr: true }), braceR: new _("}"), parenL: new _("(", { beforeExpr: true, startsExpr: true }), parenR: new _(")"), comma: new _(",", O), semi: new _(";", O), colon: new _(":", O), dot: new _("."), question: new _("?", O), questionDot: new _("?."), arrow: new _("=>", O), template: new _("template"), invalidTemplate: new _("invalidTemplate"), ellipsis: new _("...", O), backQuote: new _("`", L), dollarBraceL: new _("${", { beforeExpr: true, startsExpr: true }), eq: new _("=", { beforeExpr: true, isAssign: true }), assign: new _("_=", { beforeExpr: true, isAssign: true }), incDec: new _("++/--", { prefix: true, postfix: true, startsExpr: true }), prefix: new _("!/~", { beforeExpr: true, prefix: true, startsExpr: true }), logicalOR: V("||", 1), logicalAND: V("&&", 2), bitwiseOR: V("|", 3), bitwiseXOR: V("^", 4), bitwiseAND: V("&", 5), equality: V("==/!=/===/!==", 6), relational: V("</>/<=/>=", 7), bitShift: V("<</>>/>>>", 8), plusMin: new _("+/-", { beforeExpr: true, binop: 9, prefix: true, startsExpr: true }), modulo: V("%", 10), star: V("*", 10), slash: V("/", 10), starstar: new _("**", { beforeExpr: true }), coalesce: V("??", 1), _break: C("break"), _case: C("case", O), _catch: C("catch"), _continue: C("continue"), _debugger: C("debugger"), _default: C("default", O), _do: C("do", { isLoop: true, beforeExpr: true }), _else: C("else", O), _finally: C("finally"), _for: C("for", { isLoop: true }), _function: C("function", L), _if: C("if"), _return: C("return", O), _switch: C("switch"), _throw: C("throw", O), _try: C("try"), _var: C("var"), _const: C("const"), _while: C("while", { isLoop: true }), _with: C("with"), _new: C("new", { beforeExpr: true, startsExpr: true }), _this: C("this", L), _super: C("super", L), _class: C("class", L), _extends: C("extends", O), _export: C("export"), _import: C("import", L), _null: C("null", L), _true: C("true", L), _false: C("false", L), _in: C("in", { beforeExpr: true, binop: 7 }), _instanceof: C("instanceof", { beforeExpr: true, binop: 7 }), _typeof: C("typeof", { beforeExpr: true, prefix: true, startsExpr: true }), _void: C("void", { beforeExpr: true, prefix: true, startsExpr: true }), _delete: C("delete", { beforeExpr: true, prefix: true, startsExpr: true }) };
271
+ var R = /\r\n?|\n|\u2028|\u2029/;
272
+ var zi = new RegExp(R.source, "g");
273
+ function ee(e) {
274
+ return e === 10 || e === 13 || e === 8232 || e === 8233;
275
+ }
276
+ function bt(e, t, i) {
277
+ i === void 0 && (i = e.length);
278
+ for (var r = t; r < i; r++) {
279
+ var s = e.charCodeAt(r);
280
+ if (ee(s)) return r < i - 1 && s === 13 && e.charCodeAt(r + 1) === 10 ? r + 2 : r + 1;
281
+ }
282
+ return -1;
283
+ }
284
+ var St = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
285
+ var T = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
286
+ var Ct = Object.prototype;
287
+ var Qi = Ct.hasOwnProperty;
288
+ var Yi = Ct.toString;
289
+ var te = Object.hasOwn || (function(e, t) {
290
+ return Qi.call(e, t);
291
+ });
292
+ var lt = Array.isArray || (function(e) {
293
+ return Yi.call(e) === "[object Array]";
294
+ });
295
+ var ft = /* @__PURE__ */ Object.create(null);
296
+ function H(e) {
297
+ return ft[e] || (ft[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
298
+ }
299
+ function G(e) {
300
+ return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
301
+ }
302
+ var Zi = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
303
+ var ue = function(t, i) {
304
+ this.line = t, this.column = i;
305
+ };
306
+ ue.prototype.offset = function(t) {
307
+ return new ue(this.line, this.column + t);
308
+ };
309
+ var be = function(t, i, r) {
310
+ this.start = i, this.end = r, t.sourceFile !== null && (this.source = t.sourceFile);
311
+ };
312
+ function _t(e, t) {
313
+ for (var i = 1, r = 0; ; ) {
314
+ var s = bt(e, r, t);
315
+ if (s < 0) return new ue(i, t - r);
316
+ ++i, r = s;
317
+ }
318
+ }
319
+ var We = { ecmaVersion: null, sourceType: "script", strict: false, onInsertedSemicolon: null, onTrailingComma: null, allowReserved: null, allowReturnOutsideFunction: false, allowImportExportEverywhere: false, allowAwaitOutsideFunction: null, allowSuperOutsideMethod: null, allowHashBang: false, checkPrivateFields: true, locations: false, onToken: null, onComment: null, ranges: false, program: null, sourceFile: null, directSourceFile: null, preserveParens: false };
320
+ var dt = false;
321
+ function $i(e) {
322
+ var t = {};
323
+ for (var i in We) t[i] = e && te(e, i) ? e[i] : We[i];
324
+ if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!dt && typeof console == "object" && console.warn && (dt = true, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
325
+ Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), lt(t.onToken)) {
326
+ var r = t.onToken;
327
+ t.onToken = function(s) {
328
+ return r.push(s);
329
+ };
330
+ }
331
+ if (lt(t.onComment) && (t.onComment = er(t, t.onComment)), t.sourceType === "commonjs" && t.allowAwaitOutsideFunction) throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");
332
+ return t;
333
+ }
334
+ function er(e, t) {
335
+ return function(i, r, s, n, o, h) {
336
+ var c = { type: i ? "Block" : "Line", value: r, start: s, end: n };
337
+ e.locations && (c.loc = new be(this, o, h)), e.ranges && (c.range = [s, n]), t.push(c);
338
+ };
339
+ }
340
+ var X = 1;
341
+ var z = 2;
342
+ var Je = 4;
343
+ var Et = 8;
344
+ var Xe = 16;
345
+ var kt = 32;
346
+ var Se = 64;
347
+ var At = 128;
348
+ var Q = 256;
349
+ var he = 512;
350
+ var Tt = 1024;
351
+ var Ce = X | z | Q;
352
+ function ze(e, t) {
353
+ return z | (e ? Je : 0) | (t ? Et : 0);
354
+ }
355
+ var xe = 0;
356
+ var Qe = 1;
357
+ var q = 2;
358
+ var wt = 3;
359
+ var It = 4;
360
+ var Pt = 5;
361
+ var A = function(t, i, r) {
362
+ this.options = t = $i(t), this.sourceFile = t.sourceFile, this.keywords = H(Ki[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
363
+ var s = "";
364
+ t.allowReserved !== true && (s = Fe[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (s += " await")), this.reservedWords = H(s);
365
+ var n = (s ? s + " " : "") + Fe.strict;
366
+ this.reservedWordsStrict = H(n), this.reservedWordsStrictBind = H(n + " " + Fe.strictBind), this.input = String(i), this.containsEsc = false, r ? (this.pos = r, this.lineStart = this.input.lastIndexOf(`
367
+ `, r - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(R).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = a.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = true, this.inModule = t.sourceType === "module", this.strict = this.inModule || t.strict === true || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = false, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(this.options.sourceType === "commonjs" ? z : X), this.regexpState = null, this.privateNameStack = [];
368
+ };
369
+ var M = { inFunction: { configurable: true }, inGenerator: { configurable: true }, inAsync: { configurable: true }, canAwait: { configurable: true }, allowReturn: { configurable: true }, allowSuper: { configurable: true }, allowDirectSuper: { configurable: true }, treatFunctionsAsVar: { configurable: true }, allowNewDotTarget: { configurable: true }, allowUsing: { configurable: true }, inClassStaticBlock: { configurable: true } };
370
+ A.prototype.parse = function() {
371
+ var t = this, i = this.options.program || this.startNode();
372
+ return this.nextToken(), this.catchStackOverflow(function() {
373
+ return t.parseTopLevel(i);
374
+ });
375
+ };
376
+ M.inFunction.get = function() {
377
+ return (this.currentVarScope().flags & z) > 0;
378
+ };
379
+ M.inGenerator.get = function() {
380
+ return (this.currentVarScope().flags & Et) > 0;
381
+ };
382
+ M.inAsync.get = function() {
383
+ return (this.currentVarScope().flags & Je) > 0;
384
+ };
385
+ M.canAwait.get = function() {
386
+ for (var e = this.scopeStack.length - 1; e >= 0; e--) {
387
+ var t = this.scopeStack[e], i = t.flags;
388
+ if (i & (Q | he)) return false;
389
+ if (i & z) return (i & Je) > 0;
390
+ }
391
+ return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
392
+ };
393
+ M.allowReturn.get = function() {
394
+ return !!(this.inFunction || this.options.allowReturnOutsideFunction && this.currentVarScope().flags & X);
395
+ };
396
+ M.allowSuper.get = function() {
397
+ var e = this.currentThisScope(), t = e.flags;
398
+ return (t & Se) > 0 || this.options.allowSuperOutsideMethod;
399
+ };
400
+ M.allowDirectSuper.get = function() {
401
+ return (this.currentThisScope().flags & At) > 0;
402
+ };
403
+ M.treatFunctionsAsVar.get = function() {
404
+ return this.treatFunctionsAsVarInScope(this.currentScope());
405
+ };
406
+ M.allowNewDotTarget.get = function() {
407
+ for (var e = this.scopeStack.length - 1; e >= 0; e--) {
408
+ var t = this.scopeStack[e], i = t.flags;
409
+ if (i & (Q | he) || i & z && !(i & Xe)) return true;
410
+ }
411
+ return false;
412
+ };
413
+ M.allowUsing.get = function() {
414
+ var e = this.currentScope(), t = e.flags;
415
+ return !(t & Tt || !this.inModule && t & X);
416
+ };
417
+ M.inClassStaticBlock.get = function() {
418
+ return (this.currentVarScope().flags & Q) > 0;
419
+ };
420
+ A.extend = function() {
421
+ for (var t = [], i = arguments.length; i--; ) t[i] = arguments[i];
422
+ for (var r = this, s = 0; s < t.length; s++) r = t[s](r);
423
+ return r;
424
+ };
425
+ A.parse = function(t, i) {
426
+ return new this(i, t).parse();
427
+ };
428
+ A.parseExpressionAt = function(t, i, r) {
429
+ var s = new this(r, t, i);
430
+ return s.nextToken(), s.parseExpression();
431
+ };
432
+ A.tokenizer = function(t, i) {
433
+ return new this(i, t);
434
+ };
435
+ Object.defineProperties(A.prototype, M);
436
+ var P = A.prototype;
437
+ var tr = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
438
+ P.strictDirective = function(e) {
439
+ if (this.options.ecmaVersion < 5) return false;
440
+ for (; ; ) {
441
+ T.lastIndex = e, e += T.exec(this.input)[0].length;
442
+ var t = tr.exec(this.input.slice(e));
443
+ if (!t) return false;
444
+ if ((t[1] || t[2]) === "use strict") {
445
+ T.lastIndex = e + t[0].length;
446
+ var i = T.exec(this.input), r = i.index + i[0].length, s = this.input.charAt(r);
447
+ return s === ";" || s === "}" || R.test(i[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(s) || s === "!" && this.input.charAt(r + 1) === "=");
448
+ }
449
+ e += t[0].length, T.lastIndex = e, e += T.exec(this.input)[0].length, this.input[e] === ";" && e++;
450
+ }
451
+ };
452
+ P.eat = function(e) {
453
+ return this.type === e ? (this.next(), true) : false;
454
+ };
455
+ P.isContextual = function(e) {
456
+ return this.type === a.name && this.value === e && !this.containsEsc;
457
+ };
458
+ P.eatContextual = function(e) {
459
+ return this.isContextual(e) ? (this.next(), true) : false;
460
+ };
461
+ P.catchStackOverflow = function(e) {
462
+ try {
463
+ return e();
464
+ } catch (t) {
465
+ if (t instanceof Error && (/\bstack\b.*\b(exceeded|overflow)\b/i.test(t.message) || /\btoo much recursion\b/i.test(t.message))) this.raise(this.start, "Not enough stack space to parse input");
466
+ else throw t;
467
+ }
468
+ };
469
+ P.expectContextual = function(e) {
470
+ this.eatContextual(e) || this.unexpected();
471
+ };
472
+ P.canInsertSemicolon = function() {
473
+ return this.type === a.eof || this.type === a.braceR || R.test(this.input.slice(this.lastTokEnd, this.start));
474
+ };
475
+ P.insertSemicolon = function() {
476
+ if (this.canInsertSemicolon()) return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), true;
477
+ };
478
+ P.semicolon = function() {
479
+ !this.eat(a.semi) && !this.insertSemicolon() && this.unexpected();
480
+ };
481
+ P.afterTrailingComma = function(e, t) {
482
+ if (this.type === e) return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), t || this.next(), true;
483
+ };
484
+ P.expect = function(e) {
485
+ this.eat(e) || this.unexpected();
486
+ };
487
+ P.unexpected = function(e) {
488
+ this.raise(e ?? this.start, "Unexpected token");
489
+ };
490
+ var _e = function() {
491
+ this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
492
+ };
493
+ P.checkPatternErrors = function(e, t) {
494
+ if (e) {
495
+ e.trailingComma > -1 && this.raiseRecoverable(e.trailingComma, "Comma is not permitted after the rest element");
496
+ var i = t ? e.parenthesizedAssign : e.parenthesizedBind;
497
+ i > -1 && this.raiseRecoverable(i, t ? "Assigning to rvalue" : "Parenthesized pattern");
498
+ }
499
+ };
500
+ P.checkExpressionErrors = function(e, t) {
501
+ if (!e) return false;
502
+ var i = e.shorthandAssign, r = e.doubleProto;
503
+ if (!t) return i >= 0 || r >= 0;
504
+ i >= 0 && this.raise(i, "Shorthand property assignments are valid only in destructuring patterns"), r >= 0 && this.raiseRecoverable(r, "Redefinition of __proto__ property");
505
+ };
506
+ P.checkYieldAwaitInDefaultParams = function() {
507
+ 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");
508
+ };
509
+ P.isSimpleAssignTarget = function(e) {
510
+ return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
511
+ };
512
+ var d = A.prototype;
513
+ d.parseTopLevel = function(e) {
514
+ var t = /* @__PURE__ */ Object.create(null);
515
+ for (e.body || (e.body = []); this.type !== a.eof; ) {
516
+ var i = this.parseStatement(null, true, t);
517
+ e.body.push(i);
518
+ }
519
+ if (this.inModule) for (var r = 0, s = Object.keys(this.undefinedExports); r < s.length; r += 1) {
520
+ var n = s[r];
521
+ this.raiseRecoverable(this.undefinedExports[n].start, "Export '" + n + "' is not defined");
522
+ }
523
+ return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType === "commonjs" ? "script" : this.options.sourceType, this.finishNode(e, "Program");
524
+ };
525
+ var Ye = { kind: "loop" };
526
+ var ir = { kind: "switch" };
527
+ d.isLet = function(e) {
528
+ if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return false;
529
+ T.lastIndex = this.pos;
530
+ var t = T.exec(this.input), i = this.pos + t[0].length, r = this.fullCharCodeAt(i);
531
+ if (r === 91 || r === 92) return true;
532
+ if (e) return false;
533
+ if (r === 123) return true;
534
+ if (j(r)) {
535
+ var s = i;
536
+ do
537
+ i += r <= 65535 ? 1 : 2;
538
+ while (K(r = this.fullCharCodeAt(i)));
539
+ if (r === 92) return true;
540
+ var n = this.input.slice(s, i);
541
+ if (!vt.test(n)) return true;
542
+ }
543
+ return false;
544
+ };
545
+ d.isAsyncFunction = function() {
546
+ if (this.options.ecmaVersion < 8 || !this.isContextual("async")) return false;
547
+ T.lastIndex = this.pos;
548
+ var e = T.exec(this.input), t = this.pos + e[0].length, i;
549
+ return !R.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(K(i = this.fullCharCodeAt(t + 8)) || i === 92));
550
+ };
551
+ d.isUsingKeyword = function(e, t) {
552
+ if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using")) return false;
553
+ T.lastIndex = this.pos;
554
+ var i = T.exec(this.input), r = this.pos + i[0].length;
555
+ if (R.test(this.input.slice(this.pos, r))) return false;
556
+ if (e) {
557
+ var s = r + 5, n;
558
+ if (this.input.slice(r, s) !== "using" || s === this.input.length || K(n = this.fullCharCodeAt(s)) || n === 92) return false;
559
+ T.lastIndex = s;
560
+ var o = T.exec(this.input);
561
+ if (r = s + o[0].length, o && R.test(this.input.slice(s, r))) return false;
562
+ }
563
+ var h = this.fullCharCodeAt(r);
564
+ if (!j(h) && h !== 92) return false;
565
+ var c = r;
566
+ do
567
+ r += h <= 65535 ? 1 : 2;
568
+ while (K(h = this.fullCharCodeAt(r)));
569
+ if (h === 92) return true;
570
+ var l = this.input.slice(c, r);
571
+ if (vt.test(l)) return false;
572
+ if (t && !e && l === "of") {
573
+ T.lastIndex = r;
574
+ var m = T.exec(this.input);
575
+ if (r = r + m[0].length, this.input.charCodeAt(r) !== 61 || (h = this.input.charCodeAt(r + 1)) === 61 || h === 62) return false;
576
+ }
577
+ return true;
578
+ };
579
+ d.isAwaitUsing = function(e) {
580
+ return this.isUsingKeyword(true, e);
581
+ };
582
+ d.isUsing = function(e) {
583
+ return this.isUsingKeyword(false, e);
584
+ };
585
+ d.parseStatement = function(e, t, i) {
586
+ var r = this.type, s = this.startNode(), n;
587
+ switch (this.isLet(e) && (r = a._var, n = "let"), r) {
588
+ case a._break:
589
+ case a._continue:
590
+ return this.parseBreakContinueStatement(s, r.keyword);
591
+ case a._debugger:
592
+ return this.parseDebuggerStatement(s);
593
+ case a._do:
594
+ return this.parseDoStatement(s);
595
+ case a._for:
596
+ return this.parseForStatement(s);
597
+ case a._function:
598
+ return e && (this.strict || e !== "if" && e !== "label") && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(s, false, !e);
599
+ case a._class:
600
+ return e && this.unexpected(), this.parseClass(s, true);
601
+ case a._if:
602
+ return this.parseIfStatement(s);
603
+ case a._return:
604
+ return this.parseReturnStatement(s);
605
+ case a._switch:
606
+ return this.parseSwitchStatement(s);
607
+ case a._throw:
608
+ return this.parseThrowStatement(s);
609
+ case a._try:
610
+ return this.parseTryStatement(s);
611
+ case a._const:
612
+ case a._var:
613
+ return n = n || this.value, e && n !== "var" && this.unexpected(), this.parseVarStatement(s, n);
614
+ case a._while:
615
+ return this.parseWhileStatement(s);
616
+ case a._with:
617
+ return this.parseWithStatement(s);
618
+ case a.braceL:
619
+ return this.parseBlock(true, s);
620
+ case a.semi:
621
+ return this.parseEmptyStatement(s);
622
+ case a._export:
623
+ case a._import:
624
+ if (this.options.ecmaVersion > 10 && r === a._import) {
625
+ T.lastIndex = this.pos;
626
+ var o = T.exec(this.input), h = this.pos + o[0].length, c = this.input.charCodeAt(h);
627
+ if (c === 40 || c === 46) return this.parseExpressionStatement(s, this.parseExpression());
628
+ }
629
+ return this.options.allowImportExportEverywhere || (t || 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'")), r === a._import ? this.parseImport(s) : this.parseExport(s, i);
630
+ default:
631
+ if (this.isAsyncFunction()) return e && this.unexpected(), this.next(), this.parseFunctionStatement(s, true, !e);
632
+ var l = this.isAwaitUsing(false) ? "await using" : this.isUsing(false) ? "using" : null;
633
+ if (l) return this.allowUsing || this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"), e && this.raise(this.start, "Using declaration is not allowed in single-statement positions"), l === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(s, false, l), this.semicolon(), this.finishNode(s, "VariableDeclaration");
634
+ var m = this.value, S = this.parseExpression();
635
+ return r === a.name && S.type === "Identifier" && this.eat(a.colon) ? this.parseLabeledStatement(s, m, S, e) : this.parseExpressionStatement(s, S);
636
+ }
637
+ };
638
+ d.parseBreakContinueStatement = function(e, t) {
639
+ var i = t === "break";
640
+ this.next(), this.eat(a.semi) || this.insertSemicolon() ? e.label = null : this.type !== a.name ? this.unexpected() : (e.label = this.parseIdent(), this.semicolon());
641
+ for (var r = 0; r < this.labels.length; ++r) {
642
+ var s = this.labels[r];
643
+ if ((e.label == null || s.name === e.label.name) && (s.kind != null && (i || s.kind === "loop") || e.label && i)) break;
644
+ }
645
+ return r === this.labels.length && this.raise(e.start, "Unsyntactic " + t), this.finishNode(e, i ? "BreakStatement" : "ContinueStatement");
646
+ };
647
+ d.parseDebuggerStatement = function(e) {
648
+ return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
649
+ };
650
+ d.parseDoStatement = function(e) {
651
+ return this.next(), this.labels.push(Ye), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(a._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(a.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
652
+ };
653
+ d.parseForStatement = function(e) {
654
+ this.next();
655
+ var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
656
+ if (this.labels.push(Ye), this.enterScope(0), this.expect(a.parenL), this.type === a.semi) return t > -1 && this.unexpected(t), this.parseFor(e, null);
657
+ var i = this.isLet();
658
+ if (this.type === a._var || this.type === a._const || i) {
659
+ var r = this.startNode(), s = i ? "let" : this.value;
660
+ return this.next(), this.parseVar(r, true, s), this.finishNode(r, "VariableDeclaration"), this.parseForAfterInit(e, r, t);
661
+ }
662
+ var n = this.isContextual("let"), o = false, h = this.isUsing(true) ? "using" : this.isAwaitUsing(true) ? "await using" : null;
663
+ if (h) {
664
+ var c = this.startNode();
665
+ return this.next(), h === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.parseVar(c, true, h), this.finishNode(c, "VariableDeclaration"), this.parseForAfterInit(e, c, t);
666
+ }
667
+ var l = this.containsEsc, m = new _e(), S = this.start, E = t > -1 ? this.parseExprSubscripts(m, "await") : this.parseExpression(true, m);
668
+ return this.type === a._in || (o = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === a._in && this.unexpected(t), e.await = true) : o && this.options.ecmaVersion >= 8 && (E.start === S && !l && E.type === "Identifier" && E.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = false)), n && o && this.raise(E.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(E, false, m), this.checkLValPattern(E), this.parseForIn(e, E)) : (this.checkExpressionErrors(m, true), t > -1 && this.unexpected(t), this.parseFor(e, E));
669
+ };
670
+ d.parseForAfterInit = function(e, t, i) {
671
+ return (this.type === a._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.type === a._in ? ((t.kind === "using" || t.kind === "await using") && !t.declarations[0].init && this.raise(this.start, "Using declaration is not allowed in for-in loops"), this.options.ecmaVersion >= 9 && i > -1 && this.unexpected(i)) : this.options.ecmaVersion >= 9 && (e.await = i > -1), this.parseForIn(e, t)) : (i > -1 && this.unexpected(i), this.parseFor(e, t));
672
+ };
673
+ d.parseFunctionStatement = function(e, t, i) {
674
+ return this.next(), this.parseFunction(e, oe | (i ? 0 : qe), false, t);
675
+ };
676
+ d.parseIfStatement = function(e) {
677
+ return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(a._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
678
+ };
679
+ d.parseReturnStatement = function(e) {
680
+ return this.allowReturn || this.raise(this.start, "'return' outside of function"), this.next(), this.eat(a.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
681
+ };
682
+ d.parseSwitchStatement = function(e) {
683
+ this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(ir), this.enterScope(Tt);
684
+ for (var t, i = false; this.type !== a.braceR; ) if (this.type === a._case || this.type === a._default) {
685
+ var r = this.type === a._case;
686
+ t && this.finishNode(t, "SwitchCase"), e.cases.push(t = this.startNode()), t.consequent = [], this.next(), r ? t.test = this.parseExpression() : (i && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), i = true, t.test = null), this.expect(a.colon);
687
+ } else t || this.unexpected(), t.consequent.push(this.parseStatement(null));
688
+ return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
689
+ };
690
+ d.parseThrowStatement = function(e) {
691
+ return this.next(), R.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
692
+ };
693
+ var rr = [];
694
+ d.parseCatchClauseParam = function() {
695
+ var e = this.parseBindingAtom(), t = e.type === "Identifier";
696
+ return this.enterScope(t ? kt : 0), this.checkLValPattern(e, t ? It : q), this.expect(a.parenR), e;
697
+ };
698
+ d.parseTryStatement = function(e) {
699
+ if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === a._catch) {
700
+ var t = this.startNode();
701
+ this.next(), this.eat(a.parenL) ? t.param = this.parseCatchClauseParam() : (this.options.ecmaVersion < 10 && this.unexpected(), t.param = null, this.enterScope(0)), t.body = this.parseBlock(false), this.exitScope(), e.handler = this.finishNode(t, "CatchClause");
702
+ }
703
+ return e.finalizer = this.eat(a._finally) ? this.parseBlock() : null, !e.handler && !e.finalizer && this.raise(e.start, "Missing catch or finally clause"), this.finishNode(e, "TryStatement");
704
+ };
705
+ d.parseVarStatement = function(e, t, i) {
706
+ return this.next(), this.parseVar(e, false, t, i), this.semicolon(), this.finishNode(e, "VariableDeclaration");
707
+ };
708
+ d.parseWhileStatement = function(e) {
709
+ return this.next(), e.test = this.parseParenExpression(), this.labels.push(Ye), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
710
+ };
711
+ d.parseWithStatement = function(e) {
712
+ return this.strict && this.raise(this.start, "'with' in strict mode"), this.next(), e.object = this.parseParenExpression(), e.body = this.parseStatement("with"), this.finishNode(e, "WithStatement");
713
+ };
714
+ d.parseEmptyStatement = function(e) {
715
+ return this.next(), this.finishNode(e, "EmptyStatement");
716
+ };
717
+ d.parseLabeledStatement = function(e, t, i, r) {
718
+ for (var s = 0, n = this.labels; s < n.length; s += 1) {
719
+ var o = n[s];
720
+ o.name === t && this.raise(i.start, "Label '" + t + "' is already declared");
721
+ }
722
+ for (var h = this.type.isLoop ? "loop" : this.type === a._switch ? "switch" : null, c = this.labels.length - 1; c >= 0; c--) {
723
+ var l = this.labels[c];
724
+ if (l.statementStart === e.start) l.statementStart = this.start, l.kind = h;
725
+ else break;
726
+ }
727
+ return this.labels.push({ name: t, kind: h, statementStart: this.start }), e.body = this.parseStatement(r ? r.indexOf("label") === -1 ? r + "label" : r : "label"), this.labels.pop(), e.label = i, this.finishNode(e, "LabeledStatement");
728
+ };
729
+ d.parseExpressionStatement = function(e, t) {
730
+ return e.expression = t, this.semicolon(), this.finishNode(e, "ExpressionStatement");
731
+ };
732
+ d.parseBlock = function(e, t, i) {
733
+ for (e === void 0 && (e = true), t === void 0 && (t = this.startNode()), t.body = [], this.expect(a.braceL), e && this.enterScope(0); this.type !== a.braceR; ) {
734
+ var r = this.parseStatement(null);
735
+ t.body.push(r);
736
+ }
737
+ return i && (this.strict = false), this.next(), e && this.exitScope(), this.finishNode(t, "BlockStatement");
738
+ };
739
+ d.parseFor = function(e, t) {
740
+ return e.init = t, this.expect(a.semi), e.test = this.type === a.semi ? null : this.parseExpression(), this.expect(a.semi), e.update = this.type === a.parenR ? null : this.parseExpression(), this.expect(a.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, "ForStatement");
741
+ };
742
+ d.parseForIn = function(e, t) {
743
+ var i = this.type === a._in;
744
+ return this.next(), t.type === "VariableDeclaration" && t.declarations[0].init != null && (!i || this.options.ecmaVersion < 8 || this.strict || t.kind !== "var" || t.declarations[0].id.type !== "Identifier") && this.raise(t.start, (i ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"), e.left = t, e.right = i ? this.parseExpression() : this.parseMaybeAssign(), this.expect(a.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, i ? "ForInStatement" : "ForOfStatement");
745
+ };
746
+ d.parseVar = function(e, t, i, r) {
747
+ for (e.declarations = [], e.kind = i; ; ) {
748
+ var s = this.startNode();
749
+ if (this.parseVarId(s, i), this.eat(a.eq) ? s.init = this.parseMaybeAssign(t) : !r && i === "const" && !(this.type === a._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !r && (i === "using" || i === "await using") && this.options.ecmaVersion >= 17 && this.type !== a._in && !this.isContextual("of") ? this.raise(this.lastTokEnd, "Missing initializer in " + i + " declaration") : !r && s.id.type !== "Identifier" && !(t && (this.type === a._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : s.init = null, e.declarations.push(this.finishNode(s, "VariableDeclarator")), !this.eat(a.comma)) break;
750
+ }
751
+ return e;
752
+ };
753
+ d.parseVarId = function(e, t) {
754
+ e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Qe : q, false);
755
+ };
756
+ var oe = 1;
757
+ var qe = 2;
758
+ var Nt = 4;
759
+ d.parseFunction = function(e, t, i, r, s) {
760
+ this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === a.star && t & qe && this.unexpected(), e.generator = this.eat(a.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & oe && (e.id = t & Nt && this.type !== a.name ? null : this.parseIdent(), e.id && !(t & qe) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Qe : q : wt));
761
+ var n = this.yieldPos, o = this.awaitPos, h = this.awaitIdentPos;
762
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(ze(e.async, e.generator)), t & oe || (e.id = this.type === a.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, false, s), this.yieldPos = n, this.awaitPos = o, this.awaitIdentPos = h, this.finishNode(e, t & oe ? "FunctionDeclaration" : "FunctionExpression");
763
+ };
764
+ d.parseFunctionParams = function(e) {
765
+ this.expect(a.parenL), e.params = this.parseBindingList(a.parenR, false, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
766
+ };
767
+ d.parseClass = function(e, t) {
768
+ this.next();
769
+ var i = this.strict;
770
+ this.strict = true, this.parseClassId(e, t), this.parseClassSuper(e);
771
+ var r = this.enterClassBody(), s = this.startNode(), n = false;
772
+ for (s.body = [], this.expect(a.braceL); this.type !== a.braceR; ) {
773
+ var o = this.parseClassElement(e.superClass !== null);
774
+ o && (s.body.push(o), o.type === "MethodDefinition" && o.kind === "constructor" ? (n && this.raiseRecoverable(o.start, "Duplicate constructor in the same class"), n = true) : o.key && o.key.type === "PrivateIdentifier" && sr(r, o) && this.raiseRecoverable(o.key.start, "Identifier '#" + o.key.name + "' has already been declared"));
775
+ }
776
+ return this.strict = i, this.next(), e.body = this.finishNode(s, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
777
+ };
778
+ d.parseClassElement = function(e) {
779
+ if (this.eat(a.semi)) return null;
780
+ var t = this.options.ecmaVersion, i = this.startNode(), r = "", s = false, n = false, o = "method", h = false;
781
+ if (this.eatContextual("static")) {
782
+ if (t >= 13 && this.eat(a.braceL)) return this.parseClassStaticBlock(i), i;
783
+ this.isClassElementNameStart() || this.type === a.star ? h = true : r = "static";
784
+ }
785
+ if (i.static = h, !r && t >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === a.star) && !this.canInsertSemicolon() ? n = true : r = "async"), !r && (t >= 9 || !n) && this.eat(a.star) && (s = true), !r && !n && !s) {
786
+ var c = this.value;
787
+ (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? o = c : r = c);
788
+ }
789
+ if (r ? (i.computed = false, i.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), i.key.name = r, this.finishNode(i.key, "Identifier")) : this.parseClassElementName(i), t < 13 || this.type === a.parenL || o !== "method" || s || n) {
790
+ var l = !i.static && ye(i, "constructor"), m = l && e;
791
+ l && o !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = l ? "constructor" : o, this.parseClassMethod(i, s, n, m);
792
+ } else this.parseClassField(i);
793
+ return i;
794
+ };
795
+ d.isClassElementNameStart = function() {
796
+ return this.type === a.name || this.type === a.privateId || this.type === a.num || this.type === a.string || this.type === a.bracketL || this.type.keyword;
797
+ };
798
+ d.parseClassElementName = function(e) {
799
+ this.type === a.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), e.computed = false, e.key = this.parsePrivateIdent()) : this.parsePropertyName(e);
800
+ };
801
+ d.parseClassMethod = function(e, t, i, r) {
802
+ var s = e.key;
803
+ e.kind === "constructor" ? (t && this.raise(s.start, "Constructor can't be a generator"), i && this.raise(s.start, "Constructor can't be an async method")) : e.static && ye(e, "prototype") && this.raise(s.start, "Classes may not have a static property named prototype");
804
+ var n = e.value = this.parseMethod(t, i, r);
805
+ return e.kind === "get" && n.params.length !== 0 && this.raiseRecoverable(n.start, "getter should have no params"), e.kind === "set" && n.params.length !== 1 && this.raiseRecoverable(n.start, "setter should have exactly one param"), e.kind === "set" && n.params[0].type === "RestElement" && this.raiseRecoverable(n.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
806
+ };
807
+ d.parseClassField = function(e) {
808
+ return ye(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && ye(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(a.eq) ? (this.enterScope(he | Se), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
809
+ };
810
+ d.parseClassStaticBlock = function(e) {
811
+ e.body = [];
812
+ var t = this.labels;
813
+ for (this.labels = [], this.enterScope(Q | Se); this.type !== a.braceR; ) {
814
+ var i = this.parseStatement(null);
815
+ e.body.push(i);
816
+ }
817
+ return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
818
+ };
819
+ d.parseClassId = function(e, t) {
820
+ this.type === a.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, q, false)) : (t === true && this.unexpected(), e.id = null);
821
+ };
822
+ d.parseClassSuper = function(e) {
823
+ e.superClass = this.eat(a._extends) ? this.parseExprSubscripts(null, false) : null;
824
+ };
825
+ d.enterClassBody = function() {
826
+ var e = { declared: /* @__PURE__ */ Object.create(null), used: [] };
827
+ return this.privateNameStack.push(e), e.declared;
828
+ };
829
+ d.exitClassBody = function() {
830
+ var e = this.privateNameStack.pop(), t = e.declared, i = e.used;
831
+ if (this.options.checkPrivateFields) for (var r = this.privateNameStack.length, s = r === 0 ? null : this.privateNameStack[r - 1], n = 0; n < i.length; ++n) {
832
+ var o = i[n];
833
+ te(t, o.name) || (s ? s.used.push(o) : this.raiseRecoverable(o.start, "Private field '#" + o.name + "' must be declared in an enclosing class"));
834
+ }
835
+ };
836
+ function sr(e, t) {
837
+ var i = t.key.name, r = e[i], s = "true";
838
+ return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (s = (t.static ? "s" : "i") + t.kind), r === "iget" && s === "iset" || r === "iset" && s === "iget" || r === "sget" && s === "sset" || r === "sset" && s === "sget" ? (e[i] = "true", false) : r ? true : (e[i] = s, false);
839
+ }
840
+ function ye(e, t) {
841
+ var i = e.computed, r = e.key;
842
+ return !i && (r.type === "Identifier" && r.name === t || r.type === "Literal" && r.value === t);
843
+ }
844
+ d.parseExportAllDeclaration = function(e, t) {
845
+ return this.options.ecmaVersion >= 11 && (this.eatContextual("as") ? (e.exported = this.parseModuleExportName(), this.checkExport(t, e.exported, this.lastTokStart)) : e.exported = null), this.expectContextual("from"), this.type !== a.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ExportAllDeclaration");
846
+ };
847
+ d.parseExport = function(e, t) {
848
+ if (this.next(), this.eat(a.star)) return this.parseExportAllDeclaration(e, t);
849
+ if (this.eat(a._default)) return this.checkExport(t, "default", this.lastTokStart), e.declaration = this.parseExportDefaultDeclaration(), this.finishNode(e, "ExportDefaultDeclaration");
850
+ if (this.shouldParseExportStatement()) e.declaration = this.parseExportDeclaration(e), e.declaration.type === "VariableDeclaration" ? this.checkVariableExport(t, e.declaration.declarations) : this.checkExport(t, e.declaration.id, e.declaration.id.start), e.specifiers = [], e.source = null, this.options.ecmaVersion >= 16 && (e.attributes = []);
851
+ else {
852
+ if (e.declaration = null, e.specifiers = this.parseExportSpecifiers(t), this.eatContextual("from")) this.type !== a.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause());
853
+ else {
854
+ for (var i = 0, r = e.specifiers; i < r.length; i += 1) {
855
+ var s = r[i];
856
+ this.checkUnreserved(s.local), this.checkLocalExport(s.local), s.local.type === "Literal" && this.raise(s.local.start, "A string literal cannot be used as an exported binding without `from`.");
857
+ }
858
+ e.source = null, this.options.ecmaVersion >= 16 && (e.attributes = []);
859
+ }
860
+ this.semicolon();
861
+ }
862
+ return this.finishNode(e, "ExportNamedDeclaration");
863
+ };
864
+ d.parseExportDeclaration = function(e) {
865
+ return this.parseStatement(null);
866
+ };
867
+ d.parseExportDefaultDeclaration = function() {
868
+ var e;
869
+ if (this.type === a._function || (e = this.isAsyncFunction())) {
870
+ var t = this.startNode();
871
+ return this.next(), e && this.next(), this.parseFunction(t, oe | Nt, false, e);
872
+ } else if (this.type === a._class) {
873
+ var i = this.startNode();
874
+ return this.parseClass(i, "nullableID");
875
+ } else {
876
+ var r = this.parseMaybeAssign();
877
+ return this.semicolon(), r;
878
+ }
879
+ };
880
+ d.checkExport = function(e, t, i) {
881
+ e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), te(e, t) && this.raiseRecoverable(i, "Duplicate export '" + t + "'"), e[t] = true);
882
+ };
883
+ d.checkPatternExport = function(e, t) {
884
+ var i = t.type;
885
+ if (i === "Identifier") this.checkExport(e, t, t.start);
886
+ else if (i === "ObjectPattern") for (var r = 0, s = t.properties; r < s.length; r += 1) {
887
+ var n = s[r];
888
+ this.checkPatternExport(e, n);
889
+ }
890
+ else if (i === "ArrayPattern") for (var o = 0, h = t.elements; o < h.length; o += 1) {
891
+ var c = h[o];
892
+ c && this.checkPatternExport(e, c);
893
+ }
894
+ else i === "Property" ? this.checkPatternExport(e, t.value) : i === "AssignmentPattern" ? this.checkPatternExport(e, t.left) : i === "RestElement" && this.checkPatternExport(e, t.argument);
895
+ };
896
+ d.checkVariableExport = function(e, t) {
897
+ if (e) for (var i = 0, r = t; i < r.length; i += 1) {
898
+ var s = r[i];
899
+ this.checkPatternExport(e, s.id);
900
+ }
901
+ };
902
+ d.shouldParseExportStatement = function() {
903
+ return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
904
+ };
905
+ d.parseExportSpecifier = function(e) {
906
+ var t = this.startNode();
907
+ return t.local = this.parseModuleExportName(), t.exported = this.eatContextual("as") ? this.parseModuleExportName() : t.local, this.checkExport(e, t.exported, t.exported.start), this.finishNode(t, "ExportSpecifier");
908
+ };
909
+ d.parseExportSpecifiers = function(e) {
910
+ var t = [], i = true;
911
+ for (this.expect(a.braceL); !this.eat(a.braceR); ) {
912
+ if (i) i = false;
913
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
914
+ t.push(this.parseExportSpecifier(e));
915
+ }
916
+ return t;
917
+ };
918
+ d.parseImport = function(e) {
919
+ return this.next(), this.type === a.string ? (e.specifiers = rr, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === a.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
920
+ };
921
+ d.parseImportSpecifier = function() {
922
+ var e = this.startNode();
923
+ return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, q), this.finishNode(e, "ImportSpecifier");
924
+ };
925
+ d.parseImportDefaultSpecifier = function() {
926
+ var e = this.startNode();
927
+ return e.local = this.parseIdent(), this.checkLValSimple(e.local, q), this.finishNode(e, "ImportDefaultSpecifier");
928
+ };
929
+ d.parseImportNamespaceSpecifier = function() {
930
+ var e = this.startNode();
931
+ return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, q), this.finishNode(e, "ImportNamespaceSpecifier");
932
+ };
933
+ d.parseImportSpecifiers = function() {
934
+ var e = [], t = true;
935
+ if (this.type === a.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(a.comma))) return e;
936
+ if (this.type === a.star) return e.push(this.parseImportNamespaceSpecifier()), e;
937
+ for (this.expect(a.braceL); !this.eat(a.braceR); ) {
938
+ if (t) t = false;
939
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
940
+ e.push(this.parseImportSpecifier());
941
+ }
942
+ return e;
943
+ };
944
+ d.parseWithClause = function() {
945
+ var e = [];
946
+ if (!this.eat(a._with)) return e;
947
+ this.expect(a.braceL);
948
+ for (var t = {}, i = true; !this.eat(a.braceR); ) {
949
+ if (i) i = false;
950
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
951
+ var r = this.parseImportAttribute(), s = r.key.type === "Identifier" ? r.key.name : r.key.value;
952
+ te(t, s) && this.raiseRecoverable(r.key.start, "Duplicate attribute key '" + s + "'"), t[s] = true, e.push(r);
953
+ }
954
+ return e;
955
+ };
956
+ d.parseImportAttribute = function() {
957
+ var e = this.startNode();
958
+ return e.key = this.type === a.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never"), this.expect(a.colon), this.type !== a.string && this.unexpected(), e.value = this.parseExprAtom(), this.finishNode(e, "ImportAttribute");
959
+ };
960
+ d.parseModuleExportName = function() {
961
+ if (this.options.ecmaVersion >= 13 && this.type === a.string) {
962
+ var e = this.parseLiteral(this.value);
963
+ return Zi.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
964
+ }
965
+ return this.parseIdent(true);
966
+ };
967
+ d.adaptDirectivePrologue = function(e) {
968
+ for (var t = 0; t < e.length && this.isDirectiveCandidate(e[t]); ++t) e[t].directive = e[t].expression.raw.slice(1, -1);
969
+ };
970
+ d.isDirectiveCandidate = function(e) {
971
+ return this.options.ecmaVersion >= 5 && e.type === "ExpressionStatement" && e.expression.type === "Literal" && typeof e.expression.value == "string" && (this.input[e.start] === '"' || this.input[e.start] === "'");
972
+ };
973
+ var B = A.prototype;
974
+ B.toAssignable = function(e, t, i) {
975
+ if (this.options.ecmaVersion >= 6 && e) switch (e.type) {
976
+ case "Identifier":
977
+ this.inAsync && e.name === "await" && this.raise(e.start, "Cannot use 'await' as identifier inside an async function");
978
+ break;
979
+ case "ObjectPattern":
980
+ case "ArrayPattern":
981
+ case "AssignmentPattern":
982
+ case "RestElement":
983
+ break;
984
+ case "ObjectExpression":
985
+ e.type = "ObjectPattern", i && this.checkPatternErrors(i, true);
986
+ for (var r = 0, s = e.properties; r < s.length; r += 1) {
987
+ var n = s[r];
988
+ this.toAssignable(n, t), n.type === "RestElement" && (n.argument.type === "ArrayPattern" || n.argument.type === "ObjectPattern") && this.raise(n.argument.start, "Unexpected token");
989
+ }
990
+ break;
991
+ case "Property":
992
+ e.kind !== "init" && this.raise(e.key.start, "Object pattern can't contain getter or setter"), this.toAssignable(e.value, t);
993
+ break;
994
+ case "ArrayExpression":
995
+ e.type = "ArrayPattern", i && this.checkPatternErrors(i, true), this.toAssignableList(e.elements, t);
996
+ break;
997
+ case "SpreadElement":
998
+ e.type = "RestElement", this.toAssignable(e.argument, t), e.argument.type === "AssignmentPattern" && this.raise(e.argument.start, "Rest elements cannot have a default value");
999
+ break;
1000
+ case "AssignmentExpression":
1001
+ e.operator !== "=" && this.raise(e.left.end, "Only '=' operator can be used for specifying default value."), e.type = "AssignmentPattern", delete e.operator, this.toAssignable(e.left, t);
1002
+ break;
1003
+ case "ParenthesizedExpression":
1004
+ this.toAssignable(e.expression, t, i);
1005
+ break;
1006
+ case "ChainExpression":
1007
+ this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
1008
+ break;
1009
+ case "MemberExpression":
1010
+ if (!t) break;
1011
+ default:
1012
+ this.raise(e.start, "Assigning to rvalue");
1013
+ }
1014
+ else i && this.checkPatternErrors(i, true);
1015
+ return e;
1016
+ };
1017
+ B.toAssignableList = function(e, t) {
1018
+ for (var i = e.length, r = 0; r < i; r++) {
1019
+ var s = e[r];
1020
+ s && this.toAssignable(s, t);
1021
+ }
1022
+ if (i) {
1023
+ var n = e[i - 1];
1024
+ this.options.ecmaVersion === 6 && t && n && n.type === "RestElement" && n.argument.type !== "Identifier" && this.unexpected(n.argument.start);
1025
+ }
1026
+ return e;
1027
+ };
1028
+ B.parseSpread = function(e) {
1029
+ var t = this.startNode();
1030
+ return this.next(), t.argument = this.parseMaybeAssign(false, e), this.finishNode(t, "SpreadElement");
1031
+ };
1032
+ B.parseRestBinding = function() {
1033
+ var e = this.startNode();
1034
+ return this.next(), this.options.ecmaVersion === 6 && this.type !== a.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
1035
+ };
1036
+ B.parseBindingAtom = function() {
1037
+ if (this.options.ecmaVersion >= 6) switch (this.type) {
1038
+ case a.bracketL:
1039
+ var e = this.startNode();
1040
+ return this.next(), e.elements = this.parseBindingList(a.bracketR, true, true), this.finishNode(e, "ArrayPattern");
1041
+ case a.braceL:
1042
+ return this.parseObj(true);
1043
+ }
1044
+ return this.parseIdent();
1045
+ };
1046
+ B.parseBindingList = function(e, t, i, r) {
1047
+ for (var s = [], n = true; !this.eat(e); ) if (n ? n = false : this.expect(a.comma), t && this.type === a.comma) s.push(null);
1048
+ else {
1049
+ if (i && this.afterTrailingComma(e)) break;
1050
+ if (this.type === a.ellipsis) {
1051
+ var o = this.parseRestBinding();
1052
+ this.parseBindingListItem(o), s.push(o), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(e);
1053
+ break;
1054
+ } else s.push(this.parseAssignableListItem(r));
1055
+ }
1056
+ return s;
1057
+ };
1058
+ B.parseAssignableListItem = function(e) {
1059
+ var t = this.parseMaybeDefault(this.start, this.startLoc);
1060
+ return this.parseBindingListItem(t), t;
1061
+ };
1062
+ B.parseBindingListItem = function(e) {
1063
+ return e;
1064
+ };
1065
+ B.parseMaybeDefault = function(e, t, i) {
1066
+ if (i = i || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(a.eq)) return i;
1067
+ var r = this.startNodeAt(e, t);
1068
+ return r.left = i, r.right = this.parseMaybeAssign(), this.finishNode(r, "AssignmentPattern");
1069
+ };
1070
+ B.checkLValSimple = function(e, t, i) {
1071
+ t === void 0 && (t = xe);
1072
+ var r = t !== xe;
1073
+ switch (e.type) {
1074
+ case "Identifier":
1075
+ this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (r ? "Binding " : "Assigning to ") + e.name + " in strict mode"), r && (t === q && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && (te(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = true), t !== Pt && this.declareName(e.name, t, e.start));
1076
+ break;
1077
+ case "ChainExpression":
1078
+ this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
1079
+ break;
1080
+ case "MemberExpression":
1081
+ r && this.raiseRecoverable(e.start, "Binding member expression");
1082
+ break;
1083
+ case "ParenthesizedExpression":
1084
+ return r && this.raiseRecoverable(e.start, "Binding parenthesized expression"), this.checkLValSimple(e.expression, t, i);
1085
+ default:
1086
+ this.raise(e.start, (r ? "Binding" : "Assigning to") + " rvalue");
1087
+ }
1088
+ };
1089
+ B.checkLValPattern = function(e, t, i) {
1090
+ switch (t === void 0 && (t = xe), e.type) {
1091
+ case "ObjectPattern":
1092
+ for (var r = 0, s = e.properties; r < s.length; r += 1) {
1093
+ var n = s[r];
1094
+ this.checkLValInnerPattern(n, t, i);
1095
+ }
1096
+ break;
1097
+ case "ArrayPattern":
1098
+ for (var o = 0, h = e.elements; o < h.length; o += 1) {
1099
+ var c = h[o];
1100
+ c && this.checkLValInnerPattern(c, t, i);
1101
+ }
1102
+ break;
1103
+ default:
1104
+ this.checkLValSimple(e, t, i);
1105
+ }
1106
+ };
1107
+ B.checkLValInnerPattern = function(e, t, i) {
1108
+ switch (t === void 0 && (t = xe), e.type) {
1109
+ case "Property":
1110
+ this.checkLValInnerPattern(e.value, t, i);
1111
+ break;
1112
+ case "AssignmentPattern":
1113
+ this.checkLValPattern(e.left, t, i);
1114
+ break;
1115
+ case "RestElement":
1116
+ this.checkLValPattern(e.argument, t, i);
1117
+ break;
1118
+ default:
1119
+ this.checkLValPattern(e, t, i);
1120
+ }
1121
+ };
1122
+ var F = function(t, i, r, s, n) {
1123
+ this.token = t, this.isExpr = !!i, this.preserveSpace = !!r, this.override = s, this.generator = !!n;
1124
+ };
1125
+ var k = { b_stat: new F("{", false), b_expr: new F("{", true), b_tmpl: new F("${", false), p_stat: new F("(", false), p_expr: new F("(", true), q_tmpl: new F("`", true, true, function(e) {
1126
+ return e.tryReadTemplateToken();
1127
+ }), f_stat: new F("function", false), f_expr: new F("function", true), f_expr_gen: new F("function", true, false, null, true), f_gen: new F("function", false, false, null, true) };
1128
+ var ie = A.prototype;
1129
+ ie.initialContext = function() {
1130
+ return [k.b_stat];
1131
+ };
1132
+ ie.curContext = function() {
1133
+ return this.context[this.context.length - 1];
1134
+ };
1135
+ ie.braceIsBlock = function(e) {
1136
+ var t = this.curContext();
1137
+ return t === k.f_expr || t === k.f_stat ? true : e === a.colon && (t === k.b_stat || t === k.b_expr) ? !t.isExpr : e === a._return || e === a.name && this.exprAllowed ? R.test(this.input.slice(this.lastTokEnd, this.start)) : e === a._else || e === a.semi || e === a.eof || e === a.parenR || e === a.arrow ? true : e === a.braceL ? t === k.b_stat : e === a._var || e === a._const || e === a.name ? false : !this.exprAllowed;
1138
+ };
1139
+ ie.inGeneratorContext = function() {
1140
+ for (var e = this.context.length - 1; e >= 1; e--) {
1141
+ var t = this.context[e];
1142
+ if (t.token === "function") return t.generator;
1143
+ }
1144
+ return false;
1145
+ };
1146
+ ie.updateContext = function(e) {
1147
+ var t, i = this.type;
1148
+ i.keyword && e === a.dot ? this.exprAllowed = false : (t = i.updateContext) ? t.call(this, e) : this.exprAllowed = i.beforeExpr;
1149
+ };
1150
+ ie.overrideContext = function(e) {
1151
+ this.curContext() !== e && (this.context[this.context.length - 1] = e);
1152
+ };
1153
+ a.parenR.updateContext = a.braceR.updateContext = function() {
1154
+ if (this.context.length === 1) {
1155
+ this.exprAllowed = true;
1156
+ return;
1157
+ }
1158
+ var e = this.context.pop();
1159
+ e === k.b_stat && this.curContext().token === "function" && (e = this.context.pop()), this.exprAllowed = !e.isExpr;
1160
+ };
1161
+ a.braceL.updateContext = function(e) {
1162
+ this.context.push(this.braceIsBlock(e) ? k.b_stat : k.b_expr), this.exprAllowed = true;
1163
+ };
1164
+ a.dollarBraceL.updateContext = function() {
1165
+ this.context.push(k.b_tmpl), this.exprAllowed = true;
1166
+ };
1167
+ a.parenL.updateContext = function(e) {
1168
+ var t = e === a._if || e === a._for || e === a._with || e === a._while;
1169
+ this.context.push(t ? k.p_stat : k.p_expr), this.exprAllowed = true;
1170
+ };
1171
+ a.incDec.updateContext = function() {
1172
+ };
1173
+ a._function.updateContext = a._class.updateContext = function(e) {
1174
+ e.beforeExpr && e !== a._else && !(e === a.semi && this.curContext() !== k.p_stat) && !(e === a._return && R.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === a.colon || e === a.braceL) && this.curContext() === k.b_stat) ? this.context.push(k.f_expr) : this.context.push(k.f_stat), this.exprAllowed = false;
1175
+ };
1176
+ a.colon.updateContext = function() {
1177
+ this.curContext().token === "function" && this.context.pop(), this.exprAllowed = true;
1178
+ };
1179
+ a.backQuote.updateContext = function() {
1180
+ this.curContext() === k.q_tmpl ? this.context.pop() : this.context.push(k.q_tmpl), this.exprAllowed = false;
1181
+ };
1182
+ a.star.updateContext = function(e) {
1183
+ if (e === a._function) {
1184
+ var t = this.context.length - 1;
1185
+ this.context[t] === k.f_expr ? this.context[t] = k.f_expr_gen : this.context[t] = k.f_gen;
1186
+ }
1187
+ this.exprAllowed = true;
1188
+ };
1189
+ a.name.updateContext = function(e) {
1190
+ var t = false;
1191
+ this.options.ecmaVersion >= 6 && e !== a.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = true), this.exprAllowed = t;
1192
+ };
1193
+ var g = A.prototype;
1194
+ g.checkPropClash = function(e, t, i) {
1195
+ if (!(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand))) {
1196
+ var r = e.key, s;
1197
+ switch (r.type) {
1198
+ case "Identifier":
1199
+ s = r.name;
1200
+ break;
1201
+ case "Literal":
1202
+ s = String(r.value);
1203
+ break;
1204
+ default:
1205
+ return;
1206
+ }
1207
+ var n = e.kind;
1208
+ if (this.options.ecmaVersion >= 6) {
1209
+ s === "__proto__" && n === "init" && (t.proto && (i ? i.doubleProto < 0 && (i.doubleProto = r.start) : this.raiseRecoverable(r.start, "Redefinition of __proto__ property")), t.proto = true);
1210
+ return;
1211
+ }
1212
+ s = "$" + s;
1213
+ var o = t[s];
1214
+ if (o) {
1215
+ var h;
1216
+ n === "init" ? h = this.strict && o.init || o.get || o.set : h = o.init || o[n], h && this.raiseRecoverable(r.start, "Redefinition of property");
1217
+ } else o = t[s] = { init: false, get: false, set: false };
1218
+ o[n] = true;
1219
+ }
1220
+ };
1221
+ g.parseExpression = function(e, t) {
1222
+ var i = this;
1223
+ return this.catchStackOverflow(function() {
1224
+ var r = i.start, s = i.startLoc, n = i.parseMaybeAssign(e, t);
1225
+ if (i.type === a.comma) {
1226
+ var o = i.startNodeAt(r, s);
1227
+ for (o.expressions = [n]; i.eat(a.comma); ) o.expressions.push(i.parseMaybeAssign(e, t));
1228
+ return i.finishNode(o, "SequenceExpression");
1229
+ }
1230
+ return n;
1231
+ });
1232
+ };
1233
+ g.parseMaybeAssign = function(e, t, i) {
1234
+ if (this.isContextual("yield")) {
1235
+ if (this.inGenerator) return this.parseYield(e);
1236
+ this.exprAllowed = false;
1237
+ }
1238
+ var r = false, s = -1, n = -1, o = -1;
1239
+ t ? (s = t.parenthesizedAssign, n = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new _e(), r = true);
1240
+ var h = this.start, c = this.startLoc;
1241
+ (this.type === a.parenL || this.type === a.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
1242
+ var l = this.parseMaybeConditional(e, t);
1243
+ if (i && (l = i.call(this, l, h, c)), this.type.isAssign) {
1244
+ var m = this.startNodeAt(h, c);
1245
+ return m.operator = this.value, this.type === a.eq && (l = this.toAssignable(l, false, t)), r || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= l.start && (t.shorthandAssign = -1), this.type === a.eq ? this.checkLValPattern(l) : this.checkLValSimple(l), m.left = l, this.next(), m.right = this.parseMaybeAssign(e), o > -1 && (t.doubleProto = o), this.finishNode(m, "AssignmentExpression");
1246
+ } else r && this.checkExpressionErrors(t, true);
1247
+ return s > -1 && (t.parenthesizedAssign = s), n > -1 && (t.trailingComma = n), l;
1248
+ };
1249
+ g.parseMaybeConditional = function(e, t) {
1250
+ var i = this.start, r = this.startLoc, s = this.parseExprOps(e, t);
1251
+ if (this.checkExpressionErrors(t)) return s;
1252
+ if (!(s.type === "ArrowFunctionExpression" && s.start === i) && this.eat(a.question)) {
1253
+ var n = this.startNodeAt(i, r);
1254
+ return n.test = s, n.consequent = this.parseMaybeAssign(), this.expect(a.colon), n.alternate = this.parseMaybeAssign(e), this.finishNode(n, "ConditionalExpression");
1255
+ }
1256
+ return s;
1257
+ };
1258
+ g.parseExprOps = function(e, t) {
1259
+ var i = this.start, r = this.startLoc, s = this.parseMaybeUnary(t, false, false, e);
1260
+ return this.checkExpressionErrors(t) || s.start === i && s.type === "ArrowFunctionExpression" ? s : this.parseExprOp(s, i, r, -1, e);
1261
+ };
1262
+ g.parseExprOp = function(e, t, i, r, s) {
1263
+ var n = this.type.binop;
1264
+ if (n != null && (!s || this.type !== a._in) && n > r) {
1265
+ var o = this.type === a.logicalOR || this.type === a.logicalAND, h = this.type === a.coalesce;
1266
+ h && (n = a.logicalAND.binop);
1267
+ var c = this.value;
1268
+ this.next();
1269
+ var l = this.start, m = this.startLoc, S = this.parseExprOp(this.parseMaybeUnary(null, false, false, s), l, m, n, s), E = this.buildBinary(t, i, e, S, c, o || h);
1270
+ return (o && this.type === a.coalesce || h && (this.type === a.logicalOR || this.type === a.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(E, t, i, r, s);
1271
+ }
1272
+ return e;
1273
+ };
1274
+ g.buildBinary = function(e, t, i, r, s, n) {
1275
+ r.type === "PrivateIdentifier" && this.raise(r.start, "Private identifier can only be left side of binary expression");
1276
+ var o = this.startNodeAt(e, t);
1277
+ return o.left = i, o.operator = s, o.right = r, this.finishNode(o, n ? "LogicalExpression" : "BinaryExpression");
1278
+ };
1279
+ g.parseMaybeUnary = function(e, t, i, r) {
1280
+ var s = this.start, n = this.startLoc, o;
1281
+ if (this.isContextual("await") && this.canAwait) o = this.parseAwait(r), t = true;
1282
+ else if (this.type.prefix) {
1283
+ var h = this.startNode(), c = this.type === a.incDec;
1284
+ h.operator = this.value, h.prefix = true, this.next(), h.argument = this.parseMaybeUnary(null, true, c, r), this.checkExpressionErrors(e, true), c ? this.checkLValSimple(h.argument) : this.strict && h.operator === "delete" && Lt(h.argument) ? this.raiseRecoverable(h.start, "Deleting local variable in strict mode") : h.operator === "delete" && He(h.argument) ? this.raiseRecoverable(h.start, "Private fields can not be deleted") : t = true, o = this.finishNode(h, c ? "UpdateExpression" : "UnaryExpression");
1285
+ } else if (!t && this.type === a.privateId) (r || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), o = this.parsePrivateIdent(), this.type !== a._in && this.unexpected();
1286
+ else {
1287
+ if (o = this.parseExprSubscripts(e, r), this.checkExpressionErrors(e)) return o;
1288
+ for (; this.type.postfix && !this.canInsertSemicolon(); ) {
1289
+ var l = this.startNodeAt(s, n);
1290
+ l.operator = this.value, l.prefix = false, l.argument = o, this.checkLValSimple(o), this.next(), o = this.finishNode(l, "UpdateExpression");
1291
+ }
1292
+ }
1293
+ if (!i && this.eat(a.starstar)) if (t) this.unexpected(this.lastTokStart);
1294
+ else return this.buildBinary(s, n, o, this.parseMaybeUnary(null, false, false, r), "**", false);
1295
+ else return o;
1296
+ };
1297
+ function Lt(e) {
1298
+ return e.type === "Identifier" || e.type === "ParenthesizedExpression" && Lt(e.expression);
1299
+ }
1300
+ function He(e) {
1301
+ return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && He(e.expression) || e.type === "ParenthesizedExpression" && He(e.expression);
1302
+ }
1303
+ g.parseExprSubscripts = function(e, t) {
1304
+ var i = this.start, r = this.startLoc, s = this.parseExprAtom(e, t);
1305
+ if (s.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")") return s;
1306
+ var n = this.parseSubscripts(s, i, r, false, t);
1307
+ return e && n.type === "MemberExpression" && (e.parenthesizedAssign >= n.start && (e.parenthesizedAssign = -1), e.parenthesizedBind >= n.start && (e.parenthesizedBind = -1), e.trailingComma >= n.start && (e.trailingComma = -1)), n;
1308
+ };
1309
+ g.parseSubscripts = function(e, t, i, r, s) {
1310
+ for (var n = this.options.ecmaVersion >= 8 && e.type === "Identifier" && e.name === "async" && this.lastTokEnd === e.end && !this.canInsertSemicolon() && e.end - e.start === 5 && this.potentialArrowAt === e.start, o = false; ; ) {
1311
+ var h = this.parseSubscript(e, t, i, r, n, o, s);
1312
+ if (h.optional && (o = true), h === e || h.type === "ArrowFunctionExpression") {
1313
+ if (o) {
1314
+ var c = this.startNodeAt(t, i);
1315
+ c.expression = h, h = this.finishNode(c, "ChainExpression");
1316
+ }
1317
+ return h;
1318
+ }
1319
+ e = h;
1320
+ }
1321
+ };
1322
+ g.shouldParseAsyncArrow = function() {
1323
+ return !this.canInsertSemicolon() && this.eat(a.arrow);
1324
+ };
1325
+ g.parseSubscriptAsyncArrow = function(e, t, i, r) {
1326
+ return this.parseArrowExpression(this.startNodeAt(e, t), i, true, r);
1327
+ };
1328
+ g.parseSubscript = function(e, t, i, r, s, n, o) {
1329
+ var h = this.options.ecmaVersion >= 11, c = h && this.eat(a.questionDot);
1330
+ r && c && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
1331
+ var l = this.eat(a.bracketL);
1332
+ if (l || c && this.type !== a.parenL && this.type !== a.backQuote || this.eat(a.dot)) {
1333
+ var m = this.startNodeAt(t, i);
1334
+ m.object = e, l ? (m.property = this.parseExpression(), this.expect(a.bracketR)) : this.type === a.privateId && e.type !== "Super" ? m.property = this.parsePrivateIdent() : m.property = this.parseIdent(this.options.allowReserved !== "never"), m.computed = !!l, h && (m.optional = c), e = this.finishNode(m, "MemberExpression");
1335
+ } else if (!r && this.eat(a.parenL)) {
1336
+ var S = new _e(), E = this.yieldPos, p = this.awaitPos, x = this.awaitIdentPos;
1337
+ this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
1338
+ var y = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, false, S);
1339
+ if (s && !c && this.shouldParseAsyncArrow()) return this.checkPatternErrors(S, false), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = E, this.awaitPos = p, this.awaitIdentPos = x, this.parseSubscriptAsyncArrow(t, i, y, o);
1340
+ this.checkExpressionErrors(S, true), this.yieldPos = E || this.yieldPos, this.awaitPos = p || this.awaitPos, this.awaitIdentPos = x || this.awaitIdentPos;
1341
+ var v = this.startNodeAt(t, i);
1342
+ v.callee = e, v.arguments = y, h && (v.optional = c), e = this.finishNode(v, "CallExpression");
1343
+ } else if (this.type === a.backQuote) {
1344
+ (c || n) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
1345
+ var N = this.startNodeAt(t, i);
1346
+ N.tag = e, N.quasi = this.parseTemplate({ isTagged: true }), e = this.finishNode(N, "TaggedTemplateExpression");
1347
+ }
1348
+ return e;
1349
+ };
1350
+ g.parseExprAtom = function(e, t, i) {
1351
+ this.type === a.slash && this.readRegexp();
1352
+ var r, s = this.potentialArrowAt === this.start;
1353
+ switch (this.type) {
1354
+ case a._super:
1355
+ return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), r = this.startNode(), this.next(), this.type === a.parenL && !this.allowDirectSuper && this.raise(r.start, "super() call outside constructor of a subclass"), this.type !== a.dot && this.type !== a.bracketL && this.type !== a.parenL && this.unexpected(), this.finishNode(r, "Super");
1356
+ case a._this:
1357
+ return r = this.startNode(), this.next(), this.finishNode(r, "ThisExpression");
1358
+ case a.name:
1359
+ var n = this.start, o = this.startLoc, h = this.containsEsc, c = this.parseIdent(false);
1360
+ if (this.options.ecmaVersion >= 8 && !h && c.name === "async" && !this.canInsertSemicolon() && this.eat(a._function)) return this.overrideContext(k.f_expr), this.parseFunction(this.startNodeAt(n, o), 0, false, true, t);
1361
+ if (s && !this.canInsertSemicolon()) {
1362
+ if (this.eat(a.arrow)) return this.parseArrowExpression(this.startNodeAt(n, o), [c], false, t);
1363
+ if (this.options.ecmaVersion >= 8 && c.name === "async" && this.type === a.name && !h && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) return c = this.parseIdent(false), (this.canInsertSemicolon() || !this.eat(a.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(n, o), [c], true, t);
1364
+ }
1365
+ return c;
1366
+ case a.regexp:
1367
+ var l = this.value;
1368
+ return r = this.parseLiteral(l.value), r.regex = { pattern: l.pattern, flags: l.flags }, r;
1369
+ case a.num:
1370
+ case a.string:
1371
+ return this.parseLiteral(this.value);
1372
+ case a._null:
1373
+ case a._true:
1374
+ case a._false:
1375
+ return r = this.startNode(), r.value = this.type === a._null ? null : this.type === a._true, r.raw = this.type.keyword, this.next(), this.finishNode(r, "Literal");
1376
+ case a.parenL:
1377
+ var m = this.start, S = this.parseParenAndDistinguishExpression(s, t);
1378
+ return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(S) && (e.parenthesizedAssign = m), e.parenthesizedBind < 0 && (e.parenthesizedBind = m)), S;
1379
+ case a.bracketL:
1380
+ return r = this.startNode(), this.next(), r.elements = this.parseExprList(a.bracketR, true, true, e), this.finishNode(r, "ArrayExpression");
1381
+ case a.braceL:
1382
+ return this.overrideContext(k.b_expr), this.parseObj(false, e);
1383
+ case a._function:
1384
+ return r = this.startNode(), this.next(), this.parseFunction(r, 0);
1385
+ case a._class:
1386
+ return this.parseClass(this.startNode(), false);
1387
+ case a._new:
1388
+ return this.parseNew();
1389
+ case a.backQuote:
1390
+ return this.parseTemplate();
1391
+ case a._import:
1392
+ return this.options.ecmaVersion >= 11 ? this.parseExprImport(i) : this.unexpected();
1393
+ default:
1394
+ return this.parseExprAtomDefault();
1395
+ }
1396
+ };
1397
+ g.parseExprAtomDefault = function() {
1398
+ this.unexpected();
1399
+ };
1400
+ g.parseExprImport = function(e) {
1401
+ var t = this.startNode();
1402
+ if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === a.parenL && !e) return this.parseDynamicImport(t);
1403
+ if (this.type === a.dot) {
1404
+ var i = this.startNodeAt(t.start, t.loc && t.loc.start);
1405
+ return i.name = "import", t.meta = this.finishNode(i, "Identifier"), this.parseImportMeta(t);
1406
+ } else this.unexpected();
1407
+ };
1408
+ g.parseDynamicImport = function(e) {
1409
+ if (this.next(), e.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16) this.eat(a.parenR) ? e.options = null : (this.expect(a.comma), this.afterTrailingComma(a.parenR) ? e.options = null : (e.options = this.parseMaybeAssign(), this.eat(a.parenR) || (this.expect(a.comma), this.afterTrailingComma(a.parenR) || this.unexpected())));
1410
+ else if (!this.eat(a.parenR)) {
1411
+ var t = this.start;
1412
+ this.eat(a.comma) && this.eat(a.parenR) ? this.raiseRecoverable(t, "Trailing comma is not allowed in import()") : this.unexpected(t);
1413
+ }
1414
+ return this.finishNode(e, "ImportExpression");
1415
+ };
1416
+ g.parseImportMeta = function(e) {
1417
+ this.next();
1418
+ var t = this.containsEsc;
1419
+ return e.property = this.parseIdent(true), e.property.name !== "meta" && this.raiseRecoverable(e.property.start, "The only valid meta property for import is 'import.meta'"), t && this.raiseRecoverable(e.start, "'import.meta' must not contain escaped characters"), this.options.sourceType !== "module" && !this.options.allowImportExportEverywhere && this.raiseRecoverable(e.start, "Cannot use 'import.meta' outside a module"), this.finishNode(e, "MetaProperty");
1420
+ };
1421
+ g.parseLiteral = function(e) {
1422
+ var t = this.startNode();
1423
+ return t.value = e, t.raw = this.input.slice(this.start, this.end), t.raw.charCodeAt(t.raw.length - 1) === 110 && (t.bigint = t.value != null ? t.value.toString() : t.raw.slice(0, -1).replace(/_/g, "")), this.next(), this.finishNode(t, "Literal");
1424
+ };
1425
+ g.parseParenExpression = function() {
1426
+ this.expect(a.parenL);
1427
+ var e = this.parseExpression();
1428
+ return this.expect(a.parenR), e;
1429
+ };
1430
+ g.shouldParseArrow = function(e) {
1431
+ return !this.canInsertSemicolon();
1432
+ };
1433
+ g.parseParenAndDistinguishExpression = function(e, t) {
1434
+ var i = this.start, r = this.startLoc, s, n = this.options.ecmaVersion >= 8;
1435
+ if (this.options.ecmaVersion >= 6) {
1436
+ this.next();
1437
+ var o = this.start, h = this.startLoc, c = [], l = true, m = false, S = new _e(), E = this.yieldPos, p = this.awaitPos, x;
1438
+ for (this.yieldPos = 0, this.awaitPos = 0; this.type !== a.parenR; ) if (l ? l = false : this.expect(a.comma), n && this.afterTrailingComma(a.parenR, true)) {
1439
+ m = true;
1440
+ break;
1441
+ } else if (this.type === a.ellipsis) {
1442
+ x = this.start, c.push(this.parseParenItem(this.parseRestBinding())), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
1443
+ break;
1444
+ } else c.push(this.parseMaybeAssign(false, S, this.parseParenItem));
1445
+ var y = this.lastTokEnd, v = this.lastTokEndLoc;
1446
+ if (this.expect(a.parenR), e && this.shouldParseArrow(c) && this.eat(a.arrow)) return this.checkPatternErrors(S, false), this.checkYieldAwaitInDefaultParams(), this.yieldPos = E, this.awaitPos = p, this.parseParenArrowList(i, r, c, t);
1447
+ (!c.length || m) && this.unexpected(this.lastTokStart), x && this.unexpected(x), this.checkExpressionErrors(S, true), this.yieldPos = E || this.yieldPos, this.awaitPos = p || this.awaitPos, c.length > 1 ? (s = this.startNodeAt(o, h), s.expressions = c, this.finishNodeAt(s, "SequenceExpression", y, v)) : s = c[0];
1448
+ } else s = this.parseParenExpression();
1449
+ if (this.options.preserveParens) {
1450
+ var N = this.startNodeAt(i, r);
1451
+ return N.expression = s, this.finishNode(N, "ParenthesizedExpression");
1452
+ } else return s;
1453
+ };
1454
+ g.parseParenItem = function(e) {
1455
+ return e;
1456
+ };
1457
+ g.parseParenArrowList = function(e, t, i, r) {
1458
+ return this.parseArrowExpression(this.startNodeAt(e, t), i, false, r);
1459
+ };
1460
+ var ar = [];
1461
+ g.parseNew = function() {
1462
+ this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
1463
+ var e = this.startNode();
1464
+ if (this.next(), this.options.ecmaVersion >= 6 && this.type === a.dot) {
1465
+ var t = this.startNodeAt(e.start, e.loc && e.loc.start);
1466
+ t.name = "new", e.meta = this.finishNode(t, "Identifier"), this.next();
1467
+ var i = this.containsEsc;
1468
+ return e.property = this.parseIdent(true), e.property.name !== "target" && this.raiseRecoverable(e.property.start, "The only valid meta property for new is 'new.target'"), i && this.raiseRecoverable(e.start, "'new.target' must not contain escaped characters"), this.allowNewDotTarget || this.raiseRecoverable(e.start, "'new.target' can only be used in functions and class static block"), this.finishNode(e, "MetaProperty");
1469
+ }
1470
+ var r = this.start, s = this.startLoc;
1471
+ return e.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), r, s, true, false), e.callee.type === "Super" && this.raiseRecoverable(r, "Invalid use of 'super'"), this.eat(a.parenL) ? e.arguments = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, false) : e.arguments = ar, this.finishNode(e, "NewExpression");
1472
+ };
1473
+ g.parseTemplateElement = function(e) {
1474
+ var t = e.isTagged, i = this.startNode();
1475
+ return this.type === a.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), i.value = { raw: this.value.replace(/\r\n?/g, `
1476
+ `), cooked: null }) : i.value = { raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, `
1477
+ `), cooked: this.value }, this.next(), i.tail = this.type === a.backQuote, this.finishNode(i, "TemplateElement");
1478
+ };
1479
+ g.parseTemplate = function(e) {
1480
+ e === void 0 && (e = {});
1481
+ var t = e.isTagged;
1482
+ t === void 0 && (t = false);
1483
+ var i = this.startNode();
1484
+ this.next(), i.expressions = [];
1485
+ var r = this.parseTemplateElement({ isTagged: t });
1486
+ for (i.quasis = [r]; !r.tail; ) this.type === a.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(a.dollarBraceL), i.expressions.push(this.parseExpression()), this.expect(a.braceR), i.quasis.push(r = this.parseTemplateElement({ isTagged: t }));
1487
+ return this.next(), this.finishNode(i, "TemplateLiteral");
1488
+ };
1489
+ g.isAsyncProp = function(e) {
1490
+ return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === a.name || this.type === a.num || this.type === a.string || this.type === a.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === a.star) && !R.test(this.input.slice(this.lastTokEnd, this.start));
1491
+ };
1492
+ g.parseObj = function(e, t) {
1493
+ var i = this.startNode(), r = true, s = {};
1494
+ for (i.properties = [], this.next(); !this.eat(a.braceR); ) {
1495
+ if (r) r = false;
1496
+ else if (this.expect(a.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(a.braceR)) break;
1497
+ var n = this.parseProperty(e, t);
1498
+ e || this.checkPropClash(n, s, t), i.properties.push(n);
1499
+ }
1500
+ return this.finishNode(i, e ? "ObjectPattern" : "ObjectExpression");
1501
+ };
1502
+ g.parseProperty = function(e, t) {
1503
+ var i = this.startNode(), r, s, n, o;
1504
+ if (this.options.ecmaVersion >= 9 && this.eat(a.ellipsis)) return e ? (i.argument = this.parseIdent(false), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(i, "RestElement")) : (i.argument = this.parseMaybeAssign(false, t), this.type === a.comma && t && t.trailingComma < 0 && (t.trailingComma = this.start), this.finishNode(i, "SpreadElement"));
1505
+ this.options.ecmaVersion >= 6 && (i.method = false, i.shorthand = false, (e || t) && (n = this.start, o = this.startLoc), e || (r = this.eat(a.star)));
1506
+ var h = this.containsEsc;
1507
+ return this.parsePropertyName(i), !e && !h && this.options.ecmaVersion >= 8 && !r && this.isAsyncProp(i) ? (s = true, r = this.options.ecmaVersion >= 9 && this.eat(a.star), this.parsePropertyName(i)) : s = false, this.parsePropertyValue(i, e, r, s, n, o, t, h), this.finishNode(i, "Property");
1508
+ };
1509
+ g.parseGetterSetter = function(e) {
1510
+ var t = e.key.name;
1511
+ this.parsePropertyName(e), e.value = this.parseMethod(false), e.kind = t;
1512
+ var i = e.kind === "get" ? 0 : 1;
1513
+ if (e.value.params.length !== i) {
1514
+ var r = e.value.start;
1515
+ e.kind === "get" ? this.raiseRecoverable(r, "getter should have no params") : this.raiseRecoverable(r, "setter should have exactly one param");
1516
+ } else e.kind === "set" && e.value.params[0].type === "RestElement" && this.raiseRecoverable(e.value.params[0].start, "Setter cannot use rest params");
1517
+ };
1518
+ g.parsePropertyValue = function(e, t, i, r, s, n, o, h) {
1519
+ (i || r) && this.type === a.colon && this.unexpected(), this.eat(a.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, o), e.kind = "init") : this.options.ecmaVersion >= 6 && this.type === a.parenL ? (t && this.unexpected(), e.method = true, e.value = this.parseMethod(i, r), e.kind = "init") : !t && !h && this.options.ecmaVersion >= 5 && !e.computed && e.key.type === "Identifier" && (e.key.name === "get" || e.key.name === "set") && this.type !== a.comma && this.type !== a.braceR && this.type !== a.eq ? ((i || r) && this.unexpected(), this.parseGetterSetter(e)) : this.options.ecmaVersion >= 6 && !e.computed && e.key.type === "Identifier" ? ((i || r) && this.unexpected(), this.checkUnreserved(e.key), e.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = s), t ? e.value = this.parseMaybeDefault(s, n, this.copyNode(e.key)) : this.type === a.eq && o ? (o.shorthandAssign < 0 && (o.shorthandAssign = this.start), e.value = this.parseMaybeDefault(s, n, this.copyNode(e.key))) : e.value = this.copyNode(e.key), e.kind = "init", e.shorthand = true) : this.unexpected();
1520
+ };
1521
+ g.parsePropertyName = function(e) {
1522
+ if (this.options.ecmaVersion >= 6) {
1523
+ if (this.eat(a.bracketL)) return e.computed = true, e.key = this.parseMaybeAssign(), this.expect(a.bracketR), e.key;
1524
+ e.computed = false;
1525
+ }
1526
+ return e.key = this.type === a.num || this.type === a.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
1527
+ };
1528
+ g.initFunction = function(e) {
1529
+ e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = false), this.options.ecmaVersion >= 8 && (e.async = false);
1530
+ };
1531
+ g.parseMethod = function(e, t, i) {
1532
+ var r = this.startNode(), s = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
1533
+ return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(ze(t, r.generator) | Se | (i ? At : 0)), this.expect(a.parenL), r.params = this.parseBindingList(a.parenR, false, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(r, false, true, false), this.yieldPos = s, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(r, "FunctionExpression");
1534
+ };
1535
+ g.parseArrowExpression = function(e, t, i, r) {
1536
+ var s = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
1537
+ return this.enterScope(ze(i, false) | Xe), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!i), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, true), this.parseFunctionBody(e, true, false, r), this.yieldPos = s, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(e, "ArrowFunctionExpression");
1538
+ };
1539
+ g.parseFunctionBody = function(e, t, i, r) {
1540
+ var s = t && this.type !== a.braceL, n = this.strict, o = false;
1541
+ if (s) e.body = this.parseMaybeAssign(r), e.expression = true, this.checkParams(e, false);
1542
+ else {
1543
+ var h = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
1544
+ (!n || h) && (o = this.strictDirective(this.end), o && h && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
1545
+ var c = this.labels;
1546
+ this.labels = [], o && (this.strict = true), this.checkParams(e, !n && !o && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, Pt), e.body = this.parseBlock(false, void 0, o && !n), e.expression = false, this.adaptDirectivePrologue(e.body.body), this.labels = c;
1547
+ }
1548
+ this.exitScope();
1549
+ };
1550
+ g.isSimpleParamList = function(e) {
1551
+ for (var t = 0, i = e; t < i.length; t += 1) {
1552
+ var r = i[t];
1553
+ if (r.type !== "Identifier") return false;
1554
+ }
1555
+ return true;
1556
+ };
1557
+ g.checkParams = function(e, t) {
1558
+ for (var i = /* @__PURE__ */ Object.create(null), r = 0, s = e.params; r < s.length; r += 1) {
1559
+ var n = s[r];
1560
+ this.checkLValInnerPattern(n, Qe, t ? null : i);
1561
+ }
1562
+ };
1563
+ g.parseExprList = function(e, t, i, r) {
1564
+ for (var s = [], n = true; !this.eat(e); ) {
1565
+ if (n) n = false;
1566
+ else if (this.expect(a.comma), t && this.afterTrailingComma(e)) break;
1567
+ var o = void 0;
1568
+ i && this.type === a.comma ? o = null : this.type === a.ellipsis ? (o = this.parseSpread(r), r && this.type === a.comma && r.trailingComma < 0 && (r.trailingComma = this.start)) : o = this.parseMaybeAssign(false, r), s.push(o);
1569
+ }
1570
+ return s;
1571
+ };
1572
+ g.checkUnreserved = function(e) {
1573
+ var t = e.start, i = e.end, r = e.name;
1574
+ if (this.inGenerator && r === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & Ce) && r === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (r === "arguments" || r === "await") && this.raise(t, "Cannot use " + r + " in class static initialization block"), this.keywords.test(r) && this.raise(t, "Unexpected keyword '" + r + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, i).indexOf("\\") !== -1)) {
1575
+ var s = this.strict ? this.reservedWordsStrict : this.reservedWords;
1576
+ s.test(r) && (!this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t, "The keyword '" + r + "' is reserved"));
1577
+ }
1578
+ };
1579
+ g.parseIdent = function(e) {
1580
+ var t = this.parseIdentNode();
1581
+ return this.next(!!e), this.finishNode(t, "Identifier"), e || (this.checkUnreserved(t), t.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = t.start)), t;
1582
+ };
1583
+ g.parseIdentNode = function() {
1584
+ var e = this.startNode();
1585
+ return this.type === a.name ? e.name = this.value : this.type.keyword ? (e.name = this.type.keyword, (e.name === "class" || e.name === "function") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46) && this.context.pop(), this.type = a.name) : this.unexpected(), e;
1586
+ };
1587
+ g.parsePrivateIdent = function() {
1588
+ var e = this.startNode();
1589
+ return this.type === a.privateId ? e.name = this.value : this.unexpected(), this.next(), this.finishNode(e, "PrivateIdentifier"), this.options.checkPrivateFields && (this.privateNameStack.length === 0 ? this.raise(e.start, "Private field '#" + e.name + "' must be declared in an enclosing class") : this.privateNameStack[this.privateNameStack.length - 1].used.push(e)), e;
1590
+ };
1591
+ g.parseYield = function(e) {
1592
+ this.yieldPos || (this.yieldPos = this.start);
1593
+ var t = this.startNode();
1594
+ return this.next(), this.type === a.semi || this.canInsertSemicolon() || this.type !== a.star && !this.type.startsExpr ? (t.delegate = false, t.argument = null) : (t.delegate = this.eat(a.star), t.argument = this.parseMaybeAssign(e)), this.finishNode(t, "YieldExpression");
1595
+ };
1596
+ g.parseAwait = function(e) {
1597
+ this.awaitPos || (this.awaitPos = this.start);
1598
+ var t = this.startNode();
1599
+ return this.next(), t.argument = this.parseMaybeUnary(null, true, false, e), this.finishNode(t, "AwaitExpression");
1600
+ };
1601
+ var ge = A.prototype;
1602
+ ge.raise = function(e, t) {
1603
+ var i = _t(this.input, e);
1604
+ t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
1605
+ var r = new SyntaxError(t);
1606
+ throw r.pos = e, r.loc = i, r.raisedAt = this.pos, r;
1607
+ };
1608
+ ge.raiseRecoverable = ge.raise;
1609
+ ge.curPosition = function() {
1610
+ if (this.options.locations) return new ue(this.curLine, this.pos - this.lineStart);
1611
+ };
1612
+ var J = A.prototype;
1613
+ var nr = function(t) {
1614
+ this.flags = t, this.var = [], this.lexical = [], this.functions = [];
1615
+ };
1616
+ J.enterScope = function(e) {
1617
+ this.scopeStack.push(new nr(e));
1618
+ };
1619
+ J.exitScope = function() {
1620
+ this.scopeStack.pop();
1621
+ };
1622
+ J.treatFunctionsAsVarInScope = function(e) {
1623
+ return e.flags & z || !this.inModule && e.flags & X;
1624
+ };
1625
+ J.declareName = function(e, t, i) {
1626
+ var r = false;
1627
+ if (t === q) {
1628
+ var s = this.currentScope();
1629
+ r = s.lexical.indexOf(e) > -1 || s.functions.indexOf(e) > -1 || s.var.indexOf(e) > -1, s.lexical.push(e), this.inModule && s.flags & X && delete this.undefinedExports[e];
1630
+ } else if (t === It) {
1631
+ var n = this.currentScope();
1632
+ n.lexical.push(e);
1633
+ } else if (t === wt) {
1634
+ var o = this.currentScope();
1635
+ this.treatFunctionsAsVar ? r = o.lexical.indexOf(e) > -1 : r = o.lexical.indexOf(e) > -1 || o.var.indexOf(e) > -1, o.functions.push(e);
1636
+ } else for (var h = this.scopeStack.length - 1; h >= 0; --h) {
1637
+ var c = this.scopeStack[h];
1638
+ if (c.lexical.indexOf(e) > -1 && !(c.flags & kt && c.lexical[0] === e) || !this.treatFunctionsAsVarInScope(c) && c.functions.indexOf(e) > -1) {
1639
+ r = true;
1640
+ break;
1641
+ }
1642
+ if (c.var.push(e), this.inModule && c.flags & X && delete this.undefinedExports[e], c.flags & Ce) break;
1643
+ }
1644
+ r && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
1645
+ };
1646
+ J.checkLocalExport = function(e) {
1647
+ this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
1648
+ };
1649
+ J.currentScope = function() {
1650
+ return this.scopeStack[this.scopeStack.length - 1];
1651
+ };
1652
+ J.currentVarScope = function() {
1653
+ for (var e = this.scopeStack.length - 1; ; e--) {
1654
+ var t = this.scopeStack[e];
1655
+ if (t.flags & (Ce | he | Q)) return t;
1656
+ }
1657
+ };
1658
+ J.currentThisScope = function() {
1659
+ for (var e = this.scopeStack.length - 1; ; e--) {
1660
+ var t = this.scopeStack[e];
1661
+ if (t.flags & (Ce | he | Q) && !(t.flags & Xe)) return t;
1662
+ }
1663
+ };
1664
+ var Ee = function(t, i, r) {
1665
+ this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new be(t, r)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [i, 0]);
1666
+ };
1667
+ var ce = A.prototype;
1668
+ ce.startNode = function() {
1669
+ return new Ee(this, this.start, this.startLoc);
1670
+ };
1671
+ ce.startNodeAt = function(e, t) {
1672
+ return new Ee(this, e, t);
1673
+ };
1674
+ function Rt(e, t, i, r) {
1675
+ return e.type = t, e.end = i, this.options.locations && (e.loc.end = r), this.options.ranges && (e.range[1] = i), e;
1676
+ }
1677
+ ce.finishNode = function(e, t) {
1678
+ return Rt.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
1679
+ };
1680
+ ce.finishNodeAt = function(e, t, i, r) {
1681
+ return Rt.call(this, e, t, i, r);
1682
+ };
1683
+ ce.copyNode = function(e) {
1684
+ var t = new Ee(this, e.start, this.startLoc);
1685
+ for (var i in e) t[i] = e[i];
1686
+ return t;
1687
+ };
1688
+ var or = "Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz";
1689
+ var Vt = "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";
1690
+ var Ot = Vt + " Extended_Pictographic";
1691
+ var Dt = Ot;
1692
+ var Mt = Dt + " EBase EComp EMod EPres ExtPict";
1693
+ var Bt = Mt;
1694
+ var ur = Bt;
1695
+ var hr = { 9: Vt, 10: Ot, 11: Dt, 12: Mt, 13: Bt, 14: ur };
1696
+ var cr = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
1697
+ var pr = { 9: "", 10: "", 11: "", 12: "", 13: "", 14: cr };
1698
+ var mt = "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";
1699
+ var Ft = "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";
1700
+ var jt = Ft + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd";
1701
+ var Ut = jt + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
1702
+ var Gt = Ut + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
1703
+ var Wt = Gt + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
1704
+ var lr = Wt + " " + or;
1705
+ var fr = { 9: Ft, 10: jt, 11: Ut, 12: Gt, 13: Wt, 14: lr };
1706
+ var qt = {};
1707
+ function dr(e) {
1708
+ var t = qt[e] = { binary: H(hr[e] + " " + mt), binaryOfStrings: H(pr[e]), nonBinary: { General_Category: H(mt), Script: H(fr[e]) } };
1709
+ t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.nonBinary.scx = t.nonBinary.Script_Extensions;
1710
+ }
1711
+ for (me = 0, Ue = [9, 10, 11, 12, 13, 14]; me < Ue.length; me += 1) xt = Ue[me], dr(xt);
1712
+ var xt;
1713
+ var me;
1714
+ var Ue;
1715
+ var f = A.prototype;
1716
+ var ve = function(t, i) {
1717
+ this.parent = t, this.base = i || this;
1718
+ };
1719
+ ve.prototype.separatedFrom = function(t) {
1720
+ for (var i = this; i; i = i.parent) for (var r = t; r; r = r.parent) if (i.base === r.base && i !== r) return true;
1721
+ return false;
1722
+ };
1723
+ ve.prototype.sibling = function() {
1724
+ return new ve(this.parent, this.base);
1725
+ };
1726
+ var U = function(t) {
1727
+ this.parser = t, this.validFlags = "gim" + (t.options.ecmaVersion >= 6 ? "uy" : "") + (t.options.ecmaVersion >= 9 ? "s" : "") + (t.options.ecmaVersion >= 13 ? "d" : "") + (t.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = qt[t.options.ecmaVersion >= 14 ? 14 : t.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = false, this.switchV = false, this.switchN = false, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = false, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = /* @__PURE__ */ Object.create(null), this.backReferenceNames = [], this.branchID = null;
1728
+ };
1729
+ U.prototype.reset = function(t, i, r) {
1730
+ var s = r.indexOf("v") !== -1, n = r.indexOf("u") !== -1;
1731
+ this.start = t | 0, this.source = i + "", this.flags = r, s && this.parser.options.ecmaVersion >= 15 ? (this.switchU = true, this.switchV = true, this.switchN = true) : (this.switchU = n && this.parser.options.ecmaVersion >= 6, this.switchV = false, this.switchN = n && this.parser.options.ecmaVersion >= 9);
1732
+ };
1733
+ U.prototype.raise = function(t) {
1734
+ this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + t);
1735
+ };
1736
+ U.prototype.at = function(t, i) {
1737
+ i === void 0 && (i = false);
1738
+ var r = this.source, s = r.length;
1739
+ if (t >= s) return -1;
1740
+ var n = r.charCodeAt(t);
1741
+ if (!(i || this.switchU) || n <= 55295 || n >= 57344 || t + 1 >= s) return n;
1742
+ var o = r.charCodeAt(t + 1);
1743
+ return o >= 56320 && o <= 57343 ? (n << 10) + o - 56613888 : n;
1744
+ };
1745
+ U.prototype.nextIndex = function(t, i) {
1746
+ i === void 0 && (i = false);
1747
+ var r = this.source, s = r.length;
1748
+ if (t >= s) return s;
1749
+ var n = r.charCodeAt(t), o;
1750
+ return !(i || this.switchU) || n <= 55295 || n >= 57344 || t + 1 >= s || (o = r.charCodeAt(t + 1)) < 56320 || o > 57343 ? t + 1 : t + 2;
1751
+ };
1752
+ U.prototype.current = function(t) {
1753
+ return t === void 0 && (t = false), this.at(this.pos, t);
1754
+ };
1755
+ U.prototype.lookahead = function(t) {
1756
+ return t === void 0 && (t = false), this.at(this.nextIndex(this.pos, t), t);
1757
+ };
1758
+ U.prototype.advance = function(t) {
1759
+ t === void 0 && (t = false), this.pos = this.nextIndex(this.pos, t);
1760
+ };
1761
+ U.prototype.eat = function(t, i) {
1762
+ return i === void 0 && (i = false), this.current(i) === t ? (this.advance(i), true) : false;
1763
+ };
1764
+ U.prototype.eatChars = function(t, i) {
1765
+ i === void 0 && (i = false);
1766
+ for (var r = this.pos, s = 0, n = t; s < n.length; s += 1) {
1767
+ var o = n[s], h = this.at(r, i);
1768
+ if (h === -1 || h !== o) return false;
1769
+ r = this.nextIndex(r, i);
1770
+ }
1771
+ return this.pos = r, true;
1772
+ };
1773
+ f.validateRegExpFlags = function(e) {
1774
+ for (var t = e.validFlags, i = e.flags, r = false, s = false, n = 0; n < i.length; n++) {
1775
+ var o = i.charAt(n);
1776
+ t.indexOf(o) === -1 && this.raise(e.start, "Invalid regular expression flag"), i.indexOf(o, n + 1) > -1 && this.raise(e.start, "Duplicate regular expression flag"), o === "u" && (r = true), o === "v" && (s = true);
1777
+ }
1778
+ this.options.ecmaVersion >= 15 && r && s && this.raise(e.start, "Invalid regular expression flag");
1779
+ };
1780
+ function mr(e) {
1781
+ for (var t in e) return true;
1782
+ return false;
1783
+ }
1784
+ f.validateRegExpPattern = function(e) {
1785
+ this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && mr(e.groupNames) && (e.switchN = true, this.regexp_pattern(e));
1786
+ };
1787
+ f.regexp_pattern = function(e) {
1788
+ e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = false, e.numCapturingParens = 0, e.maxBackReference = 0, e.groupNames = /* @__PURE__ */ Object.create(null), e.backReferenceNames.length = 0, e.branchID = null, this.regexp_disjunction(e), e.pos !== e.source.length && (e.eat(41) && e.raise("Unmatched ')'"), (e.eat(93) || e.eat(125)) && e.raise("Lone quantifier brackets")), e.maxBackReference > e.numCapturingParens && e.raise("Invalid escape");
1789
+ for (var t = 0, i = e.backReferenceNames; t < i.length; t += 1) {
1790
+ var r = i[t];
1791
+ e.groupNames[r] || e.raise("Invalid named capture referenced");
1792
+ }
1793
+ };
1794
+ f.regexp_disjunction = function(e) {
1795
+ var t = this.options.ecmaVersion >= 16;
1796
+ for (t && (e.branchID = new ve(e.branchID, null)), this.regexp_alternative(e); e.eat(124); ) t && (e.branchID = e.branchID.sibling()), this.regexp_alternative(e);
1797
+ t && (e.branchID = e.branchID.parent), this.regexp_eatQuantifier(e, true) && e.raise("Nothing to repeat"), e.eat(123) && e.raise("Lone quantifier brackets");
1798
+ };
1799
+ f.regexp_alternative = function(e) {
1800
+ for (; e.pos < e.source.length && this.regexp_eatTerm(e); ) ;
1801
+ };
1802
+ f.regexp_eatTerm = function(e) {
1803
+ return this.regexp_eatAssertion(e) ? (e.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(e) && e.switchU && e.raise("Invalid quantifier"), true) : (e.switchU ? this.regexp_eatAtom(e) : this.regexp_eatExtendedAtom(e)) ? (this.regexp_eatQuantifier(e), true) : false;
1804
+ };
1805
+ f.regexp_eatAssertion = function(e) {
1806
+ var t = e.pos;
1807
+ if (e.lastAssertionIsQuantifiable = false, e.eat(94) || e.eat(36)) return true;
1808
+ if (e.eat(92)) {
1809
+ if (e.eat(66) || e.eat(98)) return true;
1810
+ e.pos = t;
1811
+ }
1812
+ if (e.eat(40) && e.eat(63)) {
1813
+ var i = false;
1814
+ if (this.options.ecmaVersion >= 9 && (i = e.eat(60)), e.eat(61) || e.eat(33)) return this.regexp_disjunction(e), e.eat(41) || e.raise("Unterminated group"), e.lastAssertionIsQuantifiable = !i, true;
1815
+ }
1816
+ return e.pos = t, false;
1817
+ };
1818
+ f.regexp_eatQuantifier = function(e, t) {
1819
+ return t === void 0 && (t = false), this.regexp_eatQuantifierPrefix(e, t) ? (e.eat(63), true) : false;
1820
+ };
1821
+ f.regexp_eatQuantifierPrefix = function(e, t) {
1822
+ return e.eat(42) || e.eat(43) || e.eat(63) || this.regexp_eatBracedQuantifier(e, t);
1823
+ };
1824
+ f.regexp_eatBracedQuantifier = function(e, t) {
1825
+ var i = e.pos;
1826
+ if (e.eat(123)) {
1827
+ var r = 0, s = -1;
1828
+ if (this.regexp_eatDecimalDigits(e) && (r = e.lastIntValue, e.eat(44) && this.regexp_eatDecimalDigits(e) && (s = e.lastIntValue), e.eat(125))) return s !== -1 && s < r && !t && e.raise("numbers out of order in {} quantifier"), true;
1829
+ e.switchU && !t && e.raise("Incomplete quantifier"), e.pos = i;
1830
+ }
1831
+ return false;
1832
+ };
1833
+ f.regexp_eatAtom = function(e) {
1834
+ return this.regexp_eatPatternCharacters(e) || e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e);
1835
+ };
1836
+ f.regexp_eatReverseSolidusAtomEscape = function(e) {
1837
+ var t = e.pos;
1838
+ if (e.eat(92)) {
1839
+ if (this.regexp_eatAtomEscape(e)) return true;
1840
+ e.pos = t;
1841
+ }
1842
+ return false;
1843
+ };
1844
+ f.regexp_eatUncapturingGroup = function(e) {
1845
+ var t = e.pos;
1846
+ if (e.eat(40)) {
1847
+ if (e.eat(63)) {
1848
+ if (this.options.ecmaVersion >= 16) {
1849
+ var i = this.regexp_eatModifiers(e), r = e.eat(45);
1850
+ if (i || r) {
1851
+ for (var s = 0; s < i.length; s++) {
1852
+ var n = i.charAt(s);
1853
+ i.indexOf(n, s + 1) > -1 && e.raise("Duplicate regular expression modifiers");
1854
+ }
1855
+ if (r) {
1856
+ var o = this.regexp_eatModifiers(e);
1857
+ !i && !o && e.current() === 58 && e.raise("Invalid regular expression modifiers");
1858
+ for (var h = 0; h < o.length; h++) {
1859
+ var c = o.charAt(h);
1860
+ (o.indexOf(c, h + 1) > -1 || i.indexOf(c) > -1) && e.raise("Duplicate regular expression modifiers");
1861
+ }
1862
+ }
1863
+ }
1864
+ }
1865
+ if (e.eat(58)) {
1866
+ if (this.regexp_disjunction(e), e.eat(41)) return true;
1867
+ e.raise("Unterminated group");
1868
+ }
1869
+ }
1870
+ e.pos = t;
1871
+ }
1872
+ return false;
1873
+ };
1874
+ f.regexp_eatCapturingGroup = function(e) {
1875
+ if (e.eat(40)) {
1876
+ if (this.options.ecmaVersion >= 9 ? this.regexp_groupSpecifier(e) : e.current() === 63 && e.raise("Invalid group"), this.regexp_disjunction(e), e.eat(41)) return e.numCapturingParens += 1, true;
1877
+ e.raise("Unterminated group");
1878
+ }
1879
+ return false;
1880
+ };
1881
+ f.regexp_eatModifiers = function(e) {
1882
+ for (var t = "", i = 0; (i = e.current()) !== -1 && xr(i); ) t += G(i), e.advance();
1883
+ return t;
1884
+ };
1885
+ function xr(e) {
1886
+ return e === 105 || e === 109 || e === 115;
1887
+ }
1888
+ f.regexp_eatExtendedAtom = function(e) {
1889
+ return e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e) || this.regexp_eatInvalidBracedQuantifier(e) || this.regexp_eatExtendedPatternCharacter(e);
1890
+ };
1891
+ f.regexp_eatInvalidBracedQuantifier = function(e) {
1892
+ return this.regexp_eatBracedQuantifier(e, true) && e.raise("Nothing to repeat"), false;
1893
+ };
1894
+ f.regexp_eatSyntaxCharacter = function(e) {
1895
+ var t = e.current();
1896
+ return Ht(t) ? (e.lastIntValue = t, e.advance(), true) : false;
1897
+ };
1898
+ function Ht(e) {
1899
+ return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
1900
+ }
1901
+ f.regexp_eatPatternCharacters = function(e) {
1902
+ for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !Ht(i); ) e.advance();
1903
+ return e.pos !== t;
1904
+ };
1905
+ f.regexp_eatExtendedPatternCharacter = function(e) {
1906
+ var t = e.current();
1907
+ return t !== -1 && t !== 36 && !(t >= 40 && t <= 43) && t !== 46 && t !== 63 && t !== 91 && t !== 94 && t !== 124 ? (e.advance(), true) : false;
1908
+ };
1909
+ f.regexp_groupSpecifier = function(e) {
1910
+ if (e.eat(63)) {
1911
+ this.regexp_eatGroupName(e) || e.raise("Invalid group");
1912
+ var t = this.options.ecmaVersion >= 16, i = e.groupNames[e.lastStringValue];
1913
+ if (i) if (t) for (var r = 0, s = i; r < s.length; r += 1) {
1914
+ var n = s[r];
1915
+ n.separatedFrom(e.branchID) || e.raise("Duplicate capture group name");
1916
+ }
1917
+ else e.raise("Duplicate capture group name");
1918
+ t ? (i || (e.groupNames[e.lastStringValue] = [])).push(e.branchID) : e.groupNames[e.lastStringValue] = true;
1919
+ }
1920
+ };
1921
+ f.regexp_eatGroupName = function(e) {
1922
+ if (e.lastStringValue = "", e.eat(60)) {
1923
+ if (this.regexp_eatRegExpIdentifierName(e) && e.eat(62)) return true;
1924
+ e.raise("Invalid capture group name");
1925
+ }
1926
+ return false;
1927
+ };
1928
+ f.regexp_eatRegExpIdentifierName = function(e) {
1929
+ if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
1930
+ for (e.lastStringValue += G(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e); ) e.lastStringValue += G(e.lastIntValue);
1931
+ return true;
1932
+ }
1933
+ return false;
1934
+ };
1935
+ f.regexp_eatRegExpIdentifierStart = function(e) {
1936
+ var t = e.pos, i = this.options.ecmaVersion >= 11, r = e.current(i);
1937
+ return e.advance(i), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (r = e.lastIntValue), yr(r) ? (e.lastIntValue = r, true) : (e.pos = t, false);
1938
+ };
1939
+ function yr(e) {
1940
+ return j(e, true) || e === 36 || e === 95;
1941
+ }
1942
+ f.regexp_eatRegExpIdentifierPart = function(e) {
1943
+ var t = e.pos, i = this.options.ecmaVersion >= 11, r = e.current(i);
1944
+ return e.advance(i), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (r = e.lastIntValue), gr(r) ? (e.lastIntValue = r, true) : (e.pos = t, false);
1945
+ };
1946
+ function gr(e) {
1947
+ return K(e, true) || e === 36 || e === 95 || e === 8204 || e === 8205;
1948
+ }
1949
+ f.regexp_eatAtomEscape = function(e) {
1950
+ return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? true : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), false);
1951
+ };
1952
+ f.regexp_eatBackReference = function(e) {
1953
+ var t = e.pos;
1954
+ if (this.regexp_eatDecimalEscape(e)) {
1955
+ var i = e.lastIntValue;
1956
+ if (e.switchU) return i > e.maxBackReference && (e.maxBackReference = i), true;
1957
+ if (i <= e.numCapturingParens) return true;
1958
+ e.pos = t;
1959
+ }
1960
+ return false;
1961
+ };
1962
+ f.regexp_eatKGroupName = function(e) {
1963
+ if (e.eat(107)) {
1964
+ if (this.regexp_eatGroupName(e)) return e.backReferenceNames.push(e.lastStringValue), true;
1965
+ e.raise("Invalid named reference");
1966
+ }
1967
+ return false;
1968
+ };
1969
+ f.regexp_eatCharacterEscape = function(e) {
1970
+ return this.regexp_eatControlEscape(e) || this.regexp_eatCControlLetter(e) || this.regexp_eatZero(e) || this.regexp_eatHexEscapeSequence(e) || this.regexp_eatRegExpUnicodeEscapeSequence(e, false) || !e.switchU && this.regexp_eatLegacyOctalEscapeSequence(e) || this.regexp_eatIdentityEscape(e);
1971
+ };
1972
+ f.regexp_eatCControlLetter = function(e) {
1973
+ var t = e.pos;
1974
+ if (e.eat(99)) {
1975
+ if (this.regexp_eatControlLetter(e)) return true;
1976
+ e.pos = t;
1977
+ }
1978
+ return false;
1979
+ };
1980
+ f.regexp_eatZero = function(e) {
1981
+ return e.current() === 48 && !ke(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), true) : false;
1982
+ };
1983
+ f.regexp_eatControlEscape = function(e) {
1984
+ var t = e.current();
1985
+ return t === 116 ? (e.lastIntValue = 9, e.advance(), true) : t === 110 ? (e.lastIntValue = 10, e.advance(), true) : t === 118 ? (e.lastIntValue = 11, e.advance(), true) : t === 102 ? (e.lastIntValue = 12, e.advance(), true) : t === 114 ? (e.lastIntValue = 13, e.advance(), true) : false;
1986
+ };
1987
+ f.regexp_eatControlLetter = function(e) {
1988
+ var t = e.current();
1989
+ return Kt(t) ? (e.lastIntValue = t % 32, e.advance(), true) : false;
1990
+ };
1991
+ function Kt(e) {
1992
+ return e >= 65 && e <= 90 || e >= 97 && e <= 122;
1993
+ }
1994
+ f.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
1995
+ t === void 0 && (t = false);
1996
+ var i = e.pos, r = t || e.switchU;
1997
+ if (e.eat(117)) {
1998
+ if (this.regexp_eatFixedHexDigits(e, 4)) {
1999
+ var s = e.lastIntValue;
2000
+ if (r && s >= 55296 && s <= 56319) {
2001
+ var n = e.pos;
2002
+ if (e.eat(92) && e.eat(117) && this.regexp_eatFixedHexDigits(e, 4)) {
2003
+ var o = e.lastIntValue;
2004
+ if (o >= 56320 && o <= 57343) return e.lastIntValue = (s - 55296) * 1024 + (o - 56320) + 65536, true;
2005
+ }
2006
+ e.pos = n, e.lastIntValue = s;
2007
+ }
2008
+ return true;
2009
+ }
2010
+ if (r && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && vr(e.lastIntValue)) return true;
2011
+ r && e.raise("Invalid unicode escape"), e.pos = i;
2012
+ }
2013
+ return false;
2014
+ };
2015
+ function vr(e) {
2016
+ return e >= 0 && e <= 1114111;
2017
+ }
2018
+ f.regexp_eatIdentityEscape = function(e) {
2019
+ if (e.switchU) return this.regexp_eatSyntaxCharacter(e) ? true : e.eat(47) ? (e.lastIntValue = 47, true) : false;
2020
+ var t = e.current();
2021
+ return t !== 99 && (!e.switchN || t !== 107) ? (e.lastIntValue = t, e.advance(), true) : false;
2022
+ };
2023
+ f.regexp_eatDecimalEscape = function(e) {
2024
+ e.lastIntValue = 0;
2025
+ var t = e.current();
2026
+ if (t >= 49 && t <= 57) {
2027
+ do
2028
+ e.lastIntValue = 10 * e.lastIntValue + (t - 48), e.advance();
2029
+ while ((t = e.current()) >= 48 && t <= 57);
2030
+ return true;
2031
+ }
2032
+ return false;
2033
+ };
2034
+ var Jt = 0;
2035
+ var W = 1;
2036
+ var D = 2;
2037
+ f.regexp_eatCharacterClassEscape = function(e) {
2038
+ var t = e.current();
2039
+ if (br(t)) return e.lastIntValue = -1, e.advance(), W;
2040
+ var i = false;
2041
+ if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
2042
+ e.lastIntValue = -1, e.advance();
2043
+ var r;
2044
+ if (e.eat(123) && (r = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return i && r === D && e.raise("Invalid property name"), r;
2045
+ e.raise("Invalid property name");
2046
+ }
2047
+ return Jt;
2048
+ };
2049
+ function br(e) {
2050
+ return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
2051
+ }
2052
+ f.regexp_eatUnicodePropertyValueExpression = function(e) {
2053
+ var t = e.pos;
2054
+ if (this.regexp_eatUnicodePropertyName(e) && e.eat(61)) {
2055
+ var i = e.lastStringValue;
2056
+ if (this.regexp_eatUnicodePropertyValue(e)) {
2057
+ var r = e.lastStringValue;
2058
+ return this.regexp_validateUnicodePropertyNameAndValue(e, i, r), W;
2059
+ }
2060
+ }
2061
+ if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
2062
+ var s = e.lastStringValue;
2063
+ return this.regexp_validateUnicodePropertyNameOrValue(e, s);
2064
+ }
2065
+ return Jt;
2066
+ };
2067
+ f.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
2068
+ te(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
2069
+ };
2070
+ f.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
2071
+ if (e.unicodeProperties.binary.test(t)) return W;
2072
+ if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return D;
2073
+ e.raise("Invalid property name");
2074
+ };
2075
+ f.regexp_eatUnicodePropertyName = function(e) {
2076
+ var t = 0;
2077
+ for (e.lastStringValue = ""; Xt(t = e.current()); ) e.lastStringValue += G(t), e.advance();
2078
+ return e.lastStringValue !== "";
2079
+ };
2080
+ function Xt(e) {
2081
+ return Kt(e) || e === 95;
2082
+ }
2083
+ f.regexp_eatUnicodePropertyValue = function(e) {
2084
+ var t = 0;
2085
+ for (e.lastStringValue = ""; Sr(t = e.current()); ) e.lastStringValue += G(t), e.advance();
2086
+ return e.lastStringValue !== "";
2087
+ };
2088
+ function Sr(e) {
2089
+ return Xt(e) || ke(e);
2090
+ }
2091
+ f.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2092
+ return this.regexp_eatUnicodePropertyValue(e);
2093
+ };
2094
+ f.regexp_eatCharacterClass = function(e) {
2095
+ if (e.eat(91)) {
2096
+ var t = e.eat(94), i = this.regexp_classContents(e);
2097
+ return e.eat(93) || e.raise("Unterminated character class"), t && i === D && e.raise("Negated character class may contain strings"), true;
2098
+ }
2099
+ return false;
2100
+ };
2101
+ f.regexp_classContents = function(e) {
2102
+ return e.current() === 93 ? W : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), W);
2103
+ };
2104
+ f.regexp_nonEmptyClassRanges = function(e) {
2105
+ for (; this.regexp_eatClassAtom(e); ) {
2106
+ var t = e.lastIntValue;
2107
+ if (e.eat(45) && this.regexp_eatClassAtom(e)) {
2108
+ var i = e.lastIntValue;
2109
+ e.switchU && (t === -1 || i === -1) && e.raise("Invalid character class"), t !== -1 && i !== -1 && t > i && e.raise("Range out of order in character class");
2110
+ }
2111
+ }
2112
+ };
2113
+ f.regexp_eatClassAtom = function(e) {
2114
+ var t = e.pos;
2115
+ if (e.eat(92)) {
2116
+ if (this.regexp_eatClassEscape(e)) return true;
2117
+ if (e.switchU) {
2118
+ var i = e.current();
2119
+ (i === 99 || Yt(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2120
+ }
2121
+ e.pos = t;
2122
+ }
2123
+ var r = e.current();
2124
+ return r !== 93 ? (e.lastIntValue = r, e.advance(), true) : false;
2125
+ };
2126
+ f.regexp_eatClassEscape = function(e) {
2127
+ var t = e.pos;
2128
+ if (e.eat(98)) return e.lastIntValue = 8, true;
2129
+ if (e.switchU && e.eat(45)) return e.lastIntValue = 45, true;
2130
+ if (!e.switchU && e.eat(99)) {
2131
+ if (this.regexp_eatClassControlLetter(e)) return true;
2132
+ e.pos = t;
2133
+ }
2134
+ return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
2135
+ };
2136
+ f.regexp_classSetExpression = function(e) {
2137
+ var t = W, i;
2138
+ if (!this.regexp_eatClassSetRange(e)) if (i = this.regexp_eatClassSetOperand(e)) {
2139
+ i === D && (t = D);
2140
+ for (var r = e.pos; e.eatChars([38, 38]); ) {
2141
+ if (e.current() !== 38 && (i = this.regexp_eatClassSetOperand(e))) {
2142
+ i !== D && (t = W);
2143
+ continue;
2144
+ }
2145
+ e.raise("Invalid character in character class");
2146
+ }
2147
+ if (r !== e.pos) return t;
2148
+ for (; e.eatChars([45, 45]); ) this.regexp_eatClassSetOperand(e) || e.raise("Invalid character in character class");
2149
+ if (r !== e.pos) return t;
2150
+ } else e.raise("Invalid character in character class");
2151
+ for (; ; ) if (!this.regexp_eatClassSetRange(e)) {
2152
+ if (i = this.regexp_eatClassSetOperand(e), !i) return t;
2153
+ i === D && (t = D);
2154
+ }
2155
+ };
2156
+ f.regexp_eatClassSetRange = function(e) {
2157
+ var t = e.pos;
2158
+ if (this.regexp_eatClassSetCharacter(e)) {
2159
+ var i = e.lastIntValue;
2160
+ if (e.eat(45) && this.regexp_eatClassSetCharacter(e)) {
2161
+ var r = e.lastIntValue;
2162
+ return i !== -1 && r !== -1 && i > r && e.raise("Range out of order in character class"), true;
2163
+ }
2164
+ e.pos = t;
2165
+ }
2166
+ return false;
2167
+ };
2168
+ f.regexp_eatClassSetOperand = function(e) {
2169
+ return this.regexp_eatClassSetCharacter(e) ? W : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
2170
+ };
2171
+ f.regexp_eatNestedClass = function(e) {
2172
+ var t = e.pos;
2173
+ if (e.eat(91)) {
2174
+ var i = e.eat(94), r = this.regexp_classContents(e);
2175
+ if (e.eat(93)) return i && r === D && e.raise("Negated character class may contain strings"), r;
2176
+ e.pos = t;
2177
+ }
2178
+ if (e.eat(92)) {
2179
+ var s = this.regexp_eatCharacterClassEscape(e);
2180
+ if (s) return s;
2181
+ e.pos = t;
2182
+ }
2183
+ return null;
2184
+ };
2185
+ f.regexp_eatClassStringDisjunction = function(e) {
2186
+ var t = e.pos;
2187
+ if (e.eatChars([92, 113])) {
2188
+ if (e.eat(123)) {
2189
+ var i = this.regexp_classStringDisjunctionContents(e);
2190
+ if (e.eat(125)) return i;
2191
+ } else e.raise("Invalid escape");
2192
+ e.pos = t;
2193
+ }
2194
+ return null;
2195
+ };
2196
+ f.regexp_classStringDisjunctionContents = function(e) {
2197
+ for (var t = this.regexp_classString(e); e.eat(124); ) this.regexp_classString(e) === D && (t = D);
2198
+ return t;
2199
+ };
2200
+ f.regexp_classString = function(e) {
2201
+ for (var t = 0; this.regexp_eatClassSetCharacter(e); ) t++;
2202
+ return t === 1 ? W : D;
2203
+ };
2204
+ f.regexp_eatClassSetCharacter = function(e) {
2205
+ var t = e.pos;
2206
+ if (e.eat(92)) return this.regexp_eatCharacterEscape(e) || this.regexp_eatClassSetReservedPunctuator(e) ? true : e.eat(98) ? (e.lastIntValue = 8, true) : (e.pos = t, false);
2207
+ var i = e.current();
2208
+ return i < 0 || i === e.lookahead() && Cr(i) || _r(i) ? false : (e.advance(), e.lastIntValue = i, true);
2209
+ };
2210
+ function Cr(e) {
2211
+ return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
2212
+ }
2213
+ function _r(e) {
2214
+ return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
2215
+ }
2216
+ f.regexp_eatClassSetReservedPunctuator = function(e) {
2217
+ var t = e.current();
2218
+ return Er(t) ? (e.lastIntValue = t, e.advance(), true) : false;
2219
+ };
2220
+ function Er(e) {
2221
+ return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
2222
+ }
2223
+ f.regexp_eatClassControlLetter = function(e) {
2224
+ var t = e.current();
2225
+ return ke(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), true) : false;
2226
+ };
2227
+ f.regexp_eatHexEscapeSequence = function(e) {
2228
+ var t = e.pos;
2229
+ if (e.eat(120)) {
2230
+ if (this.regexp_eatFixedHexDigits(e, 2)) return true;
2231
+ e.switchU && e.raise("Invalid escape"), e.pos = t;
2232
+ }
2233
+ return false;
2234
+ };
2235
+ f.regexp_eatDecimalDigits = function(e) {
2236
+ var t = e.pos, i = 0;
2237
+ for (e.lastIntValue = 0; ke(i = e.current()); ) e.lastIntValue = 10 * e.lastIntValue + (i - 48), e.advance();
2238
+ return e.pos !== t;
2239
+ };
2240
+ function ke(e) {
2241
+ return e >= 48 && e <= 57;
2242
+ }
2243
+ f.regexp_eatHexDigits = function(e) {
2244
+ var t = e.pos, i = 0;
2245
+ for (e.lastIntValue = 0; zt(i = e.current()); ) e.lastIntValue = 16 * e.lastIntValue + Qt(i), e.advance();
2246
+ return e.pos !== t;
2247
+ };
2248
+ function zt(e) {
2249
+ return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
2250
+ }
2251
+ function Qt(e) {
2252
+ return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
2253
+ }
2254
+ f.regexp_eatLegacyOctalEscapeSequence = function(e) {
2255
+ if (this.regexp_eatOctalDigit(e)) {
2256
+ var t = e.lastIntValue;
2257
+ if (this.regexp_eatOctalDigit(e)) {
2258
+ var i = e.lastIntValue;
2259
+ t <= 3 && this.regexp_eatOctalDigit(e) ? e.lastIntValue = t * 64 + i * 8 + e.lastIntValue : e.lastIntValue = t * 8 + i;
2260
+ } else e.lastIntValue = t;
2261
+ return true;
2262
+ }
2263
+ return false;
2264
+ };
2265
+ f.regexp_eatOctalDigit = function(e) {
2266
+ var t = e.current();
2267
+ return Yt(t) ? (e.lastIntValue = t - 48, e.advance(), true) : (e.lastIntValue = 0, false);
2268
+ };
2269
+ function Yt(e) {
2270
+ return e >= 48 && e <= 55;
2271
+ }
2272
+ f.regexp_eatFixedHexDigits = function(e, t) {
2273
+ var i = e.pos;
2274
+ e.lastIntValue = 0;
2275
+ for (var r = 0; r < t; ++r) {
2276
+ var s = e.current();
2277
+ if (!zt(s)) return e.pos = i, false;
2278
+ e.lastIntValue = 16 * e.lastIntValue + Qt(s), e.advance();
2279
+ }
2280
+ return true;
2281
+ };
2282
+ var Ze = function(t) {
2283
+ this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new be(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
2284
+ };
2285
+ var b = A.prototype;
2286
+ b.next = function(e) {
2287
+ !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Ze(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2288
+ };
2289
+ b.getToken = function() {
2290
+ return this.next(), new Ze(this);
2291
+ };
2292
+ typeof Symbol < "u" && (b[Symbol.iterator] = function() {
2293
+ var e = this;
2294
+ return { next: function() {
2295
+ var t = e.getToken();
2296
+ return { done: t.type === a.eof, value: t };
2297
+ } };
2298
+ });
2299
+ b.nextToken = function() {
2300
+ var e = this.curContext();
2301
+ if ((!e || !e.preserveSpace) && this.skipSpace(), this.start = this.pos, this.options.locations && (this.startLoc = this.curPosition()), this.pos >= this.input.length) return this.finishToken(a.eof);
2302
+ if (e.override) return e.override(this);
2303
+ this.readToken(this.fullCharCodeAtPos());
2304
+ };
2305
+ b.readToken = function(e) {
2306
+ return j(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
2307
+ };
2308
+ b.fullCharCodeAt = function(e) {
2309
+ var t = this.input.charCodeAt(e);
2310
+ if (t <= 55295 || t >= 56320) return t;
2311
+ var i = this.input.charCodeAt(e + 1);
2312
+ return i <= 56319 || i >= 57344 ? t : (t << 10) + i - 56613888;
2313
+ };
2314
+ b.fullCharCodeAtPos = function() {
2315
+ return this.fullCharCodeAt(this.pos);
2316
+ };
2317
+ b.skipBlockComment = function() {
2318
+ var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
2319
+ if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations) for (var r = void 0, s = t; (r = bt(this.input, s, this.pos)) > -1; ) ++this.curLine, s = this.lineStart = r;
2320
+ this.options.onComment && this.options.onComment(true, this.input.slice(t + 2, i), t, this.pos, e, this.curPosition());
2321
+ };
2322
+ b.skipLineComment = function(e) {
2323
+ for (var t = this.pos, i = this.options.onComment && this.curPosition(), r = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !ee(r); ) r = this.input.charCodeAt(++this.pos);
2324
+ this.options.onComment && this.options.onComment(false, this.input.slice(t + e, this.pos), t, this.pos, i, this.curPosition());
2325
+ };
2326
+ b.skipSpace = function() {
2327
+ e: for (; this.pos < this.input.length; ) {
2328
+ var e = this.input.charCodeAt(this.pos);
2329
+ switch (e) {
2330
+ case 32:
2331
+ case 160:
2332
+ ++this.pos;
2333
+ break;
2334
+ case 13:
2335
+ this.input.charCodeAt(this.pos + 1) === 10 && ++this.pos;
2336
+ case 10:
2337
+ case 8232:
2338
+ case 8233:
2339
+ ++this.pos, this.options.locations && (++this.curLine, this.lineStart = this.pos);
2340
+ break;
2341
+ case 47:
2342
+ switch (this.input.charCodeAt(this.pos + 1)) {
2343
+ case 42:
2344
+ this.skipBlockComment();
2345
+ break;
2346
+ case 47:
2347
+ this.skipLineComment(2);
2348
+ break;
2349
+ default:
2350
+ break e;
2351
+ }
2352
+ break;
2353
+ default:
2354
+ if (e > 8 && e < 14 || e >= 5760 && St.test(String.fromCharCode(e))) ++this.pos;
2355
+ else break e;
2356
+ }
2357
+ }
2358
+ };
2359
+ b.finishToken = function(e, t) {
2360
+ this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
2361
+ var i = this.type;
2362
+ this.type = e, this.value = t, this.updateContext(i);
2363
+ };
2364
+ b.readToken_dot = function() {
2365
+ var e = this.input.charCodeAt(this.pos + 1);
2366
+ if (e >= 48 && e <= 57) return this.readNumber(true);
2367
+ var t = this.input.charCodeAt(this.pos + 2);
2368
+ return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(a.ellipsis)) : (++this.pos, this.finishToken(a.dot));
2369
+ };
2370
+ b.readToken_slash = function() {
2371
+ var e = this.input.charCodeAt(this.pos + 1);
2372
+ return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.slash, 1);
2373
+ };
2374
+ b.readToken_mult_modulo_exp = function(e) {
2375
+ var t = this.input.charCodeAt(this.pos + 1), i = 1, r = e === 42 ? a.star : a.modulo;
2376
+ return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++i, r = a.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(a.assign, i + 1) : this.finishOp(r, i);
2377
+ };
2378
+ b.readToken_pipe_amp = function(e) {
2379
+ var t = this.input.charCodeAt(this.pos + 1);
2380
+ if (t === e) {
2381
+ if (this.options.ecmaVersion >= 12) {
2382
+ var i = this.input.charCodeAt(this.pos + 2);
2383
+ if (i === 61) return this.finishOp(a.assign, 3);
2384
+ }
2385
+ return this.finishOp(e === 124 ? a.logicalOR : a.logicalAND, 2);
2386
+ }
2387
+ return t === 61 ? this.finishOp(a.assign, 2) : this.finishOp(e === 124 ? a.bitwiseOR : a.bitwiseAND, 1);
2388
+ };
2389
+ b.readToken_caret = function() {
2390
+ var e = this.input.charCodeAt(this.pos + 1);
2391
+ return e === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.bitwiseXOR, 1);
2392
+ };
2393
+ b.readToken_plus_min = function(e) {
2394
+ var t = this.input.charCodeAt(this.pos + 1);
2395
+ return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || R.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(a.incDec, 2) : t === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.plusMin, 1);
2396
+ };
2397
+ b.readToken_lt_gt = function(e) {
2398
+ var t = this.input.charCodeAt(this.pos + 1), i = 1;
2399
+ return t === e ? (i = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + i) === 61 ? this.finishOp(a.assign, i + 1) : this.finishOp(a.bitShift, i)) : t === 33 && e === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45 ? (this.skipLineComment(4), this.skipSpace(), this.nextToken()) : (t === 61 && (i = 2), this.finishOp(a.relational, i));
2400
+ };
2401
+ b.readToken_eq_excl = function(e) {
2402
+ var t = this.input.charCodeAt(this.pos + 1);
2403
+ return t === 61 ? this.finishOp(a.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(a.arrow)) : this.finishOp(e === 61 ? a.eq : a.prefix, 1);
2404
+ };
2405
+ b.readToken_question = function() {
2406
+ var e = this.options.ecmaVersion;
2407
+ if (e >= 11) {
2408
+ var t = this.input.charCodeAt(this.pos + 1);
2409
+ if (t === 46) {
2410
+ var i = this.input.charCodeAt(this.pos + 2);
2411
+ if (i < 48 || i > 57) return this.finishOp(a.questionDot, 2);
2412
+ }
2413
+ if (t === 63) {
2414
+ if (e >= 12) {
2415
+ var r = this.input.charCodeAt(this.pos + 2);
2416
+ if (r === 61) return this.finishOp(a.assign, 3);
2417
+ }
2418
+ return this.finishOp(a.coalesce, 2);
2419
+ }
2420
+ }
2421
+ return this.finishOp(a.question, 1);
2422
+ };
2423
+ b.readToken_numberSign = function() {
2424
+ var e = this.options.ecmaVersion, t = 35;
2425
+ if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), j(t, true) || t === 92)) return this.finishToken(a.privateId, this.readWord1());
2426
+ this.raise(this.pos, "Unexpected character '" + G(t) + "'");
2427
+ };
2428
+ b.getTokenFromCode = function(e) {
2429
+ switch (e) {
2430
+ case 46:
2431
+ return this.readToken_dot();
2432
+ case 40:
2433
+ return ++this.pos, this.finishToken(a.parenL);
2434
+ case 41:
2435
+ return ++this.pos, this.finishToken(a.parenR);
2436
+ case 59:
2437
+ return ++this.pos, this.finishToken(a.semi);
2438
+ case 44:
2439
+ return ++this.pos, this.finishToken(a.comma);
2440
+ case 91:
2441
+ return ++this.pos, this.finishToken(a.bracketL);
2442
+ case 93:
2443
+ return ++this.pos, this.finishToken(a.bracketR);
2444
+ case 123:
2445
+ return ++this.pos, this.finishToken(a.braceL);
2446
+ case 125:
2447
+ return ++this.pos, this.finishToken(a.braceR);
2448
+ case 58:
2449
+ return ++this.pos, this.finishToken(a.colon);
2450
+ case 96:
2451
+ if (this.options.ecmaVersion < 6) break;
2452
+ return ++this.pos, this.finishToken(a.backQuote);
2453
+ case 48:
2454
+ var t = this.input.charCodeAt(this.pos + 1);
2455
+ if (t === 120 || t === 88) return this.readRadixNumber(16);
2456
+ if (this.options.ecmaVersion >= 6) {
2457
+ if (t === 111 || t === 79) return this.readRadixNumber(8);
2458
+ if (t === 98 || t === 66) return this.readRadixNumber(2);
2459
+ }
2460
+ case 49:
2461
+ case 50:
2462
+ case 51:
2463
+ case 52:
2464
+ case 53:
2465
+ case 54:
2466
+ case 55:
2467
+ case 56:
2468
+ case 57:
2469
+ return this.readNumber(false);
2470
+ case 34:
2471
+ case 39:
2472
+ return this.readString(e);
2473
+ case 47:
2474
+ return this.readToken_slash();
2475
+ case 37:
2476
+ case 42:
2477
+ return this.readToken_mult_modulo_exp(e);
2478
+ case 124:
2479
+ case 38:
2480
+ return this.readToken_pipe_amp(e);
2481
+ case 94:
2482
+ return this.readToken_caret();
2483
+ case 43:
2484
+ case 45:
2485
+ return this.readToken_plus_min(e);
2486
+ case 60:
2487
+ case 62:
2488
+ return this.readToken_lt_gt(e);
2489
+ case 61:
2490
+ case 33:
2491
+ return this.readToken_eq_excl(e);
2492
+ case 63:
2493
+ return this.readToken_question();
2494
+ case 126:
2495
+ return this.finishOp(a.prefix, 1);
2496
+ case 35:
2497
+ return this.readToken_numberSign();
2498
+ }
2499
+ this.raise(this.pos, "Unexpected character '" + G(e) + "'");
2500
+ };
2501
+ b.finishOp = function(e, t) {
2502
+ var i = this.input.slice(this.pos, this.pos + t);
2503
+ return this.pos += t, this.finishToken(e, i);
2504
+ };
2505
+ b.readRegexp = function() {
2506
+ for (var e, t, i = this.pos; ; ) {
2507
+ this.pos >= this.input.length && this.raise(i, "Unterminated regular expression");
2508
+ var r = this.input.charAt(this.pos);
2509
+ if (R.test(r) && this.raise(i, "Unterminated regular expression"), e) e = false;
2510
+ else {
2511
+ if (r === "[") t = true;
2512
+ else if (r === "]" && t) t = false;
2513
+ else if (r === "/" && !t) break;
2514
+ e = r === "\\";
2515
+ }
2516
+ ++this.pos;
2517
+ }
2518
+ var s = this.input.slice(i, this.pos);
2519
+ ++this.pos;
2520
+ var n = this.pos, o = this.readWord1();
2521
+ this.containsEsc && this.unexpected(n);
2522
+ var h = this.regexpState || (this.regexpState = new U(this));
2523
+ h.reset(i, s, o), this.validateRegExpFlags(h), this.validateRegExpPattern(h);
2524
+ var c = null;
2525
+ try {
2526
+ c = new RegExp(s, o);
2527
+ } catch {
2528
+ }
2529
+ return this.finishToken(a.regexp, { pattern: s, flags: o, value: c });
2530
+ };
2531
+ b.readInt = function(e, t, i) {
2532
+ for (var r = this.options.ecmaVersion >= 12 && t === void 0, s = i && this.input.charCodeAt(this.pos) === 48, n = this.pos, o = 0, h = 0, c = 0, l = t ?? 1 / 0; c < l; ++c, ++this.pos) {
2533
+ var m = this.input.charCodeAt(this.pos), S = void 0;
2534
+ if (r && m === 95) {
2535
+ s && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), h === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), c === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), h = m;
2536
+ continue;
2537
+ }
2538
+ if (m >= 97 ? S = m - 97 + 10 : m >= 65 ? S = m - 65 + 10 : m >= 48 && m <= 57 ? S = m - 48 : S = 1 / 0, S >= e) break;
2539
+ h = m, o = o * e + S;
2540
+ }
2541
+ return r && h === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === n || t != null && this.pos - n !== t ? null : o;
2542
+ };
2543
+ function kr(e, t) {
2544
+ return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
2545
+ }
2546
+ function Zt(e) {
2547
+ return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
2548
+ }
2549
+ b.readRadixNumber = function(e) {
2550
+ var t = this.pos;
2551
+ this.pos += 2;
2552
+ var i = this.readInt(e);
2553
+ return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = Zt(this.input.slice(t, this.pos)), ++this.pos) : j(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, i);
2554
+ };
2555
+ b.readNumber = function(e) {
2556
+ var t = this.pos;
2557
+ !e && this.readInt(10, void 0, true) === null && this.raise(t, "Invalid number");
2558
+ var i = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
2559
+ i && this.strict && this.raise(t, "Invalid number");
2560
+ var r = this.input.charCodeAt(this.pos);
2561
+ if (!i && !e && this.options.ecmaVersion >= 11 && r === 110) {
2562
+ var s = Zt(this.input.slice(t, this.pos));
2563
+ return ++this.pos, j(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, s);
2564
+ }
2565
+ i && /[89]/.test(this.input.slice(t, this.pos)) && (i = false), r === 46 && !i && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !i && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), j(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
2566
+ var n = kr(this.input.slice(t, this.pos), i);
2567
+ return this.finishToken(a.num, n);
2568
+ };
2569
+ b.readCodePoint = function() {
2570
+ var e = this.input.charCodeAt(this.pos), t;
2571
+ if (e === 123) {
2572
+ this.options.ecmaVersion < 6 && this.unexpected();
2573
+ var i = ++this.pos;
2574
+ t = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, t > 1114111 && this.invalidStringToken(i, "Code point out of bounds");
2575
+ } else t = this.readHexChar(4);
2576
+ return t;
2577
+ };
2578
+ b.readString = function(e) {
2579
+ for (var t = "", i = ++this.pos; ; ) {
2580
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
2581
+ var r = this.input.charCodeAt(this.pos);
2582
+ if (r === e) break;
2583
+ r === 92 ? (t += this.input.slice(i, this.pos), t += this.readEscapedChar(false), i = this.pos) : r === 8232 || r === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (ee(r) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
2584
+ }
2585
+ return t += this.input.slice(i, this.pos++), this.finishToken(a.string, t);
2586
+ };
2587
+ var $t = {};
2588
+ b.tryReadTemplateToken = function() {
2589
+ this.inTemplateElement = true;
2590
+ try {
2591
+ this.readTmplToken();
2592
+ } catch (e) {
2593
+ if (e === $t) this.readInvalidTemplateToken();
2594
+ else throw e;
2595
+ }
2596
+ this.inTemplateElement = false;
2597
+ };
2598
+ b.invalidStringToken = function(e, t) {
2599
+ if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw $t;
2600
+ this.raise(e, t);
2601
+ };
2602
+ b.readTmplToken = function() {
2603
+ for (var e = "", t = this.pos; ; ) {
2604
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
2605
+ var i = this.input.charCodeAt(this.pos);
2606
+ if (i === 96 || i === 36 && this.input.charCodeAt(this.pos + 1) === 123) return this.pos === this.start && (this.type === a.template || this.type === a.invalidTemplate) ? i === 36 ? (this.pos += 2, this.finishToken(a.dollarBraceL)) : (++this.pos, this.finishToken(a.backQuote)) : (e += this.input.slice(t, this.pos), this.finishToken(a.template, e));
2607
+ if (i === 92) e += this.input.slice(t, this.pos), e += this.readEscapedChar(true), t = this.pos;
2608
+ else if (ee(i)) {
2609
+ switch (e += this.input.slice(t, this.pos), ++this.pos, i) {
2610
+ case 13:
2611
+ this.input.charCodeAt(this.pos) === 10 && ++this.pos;
2612
+ case 10:
2613
+ e += `
2614
+ `;
2615
+ break;
2616
+ default:
2617
+ e += String.fromCharCode(i);
2618
+ break;
2619
+ }
2620
+ this.options.locations && (++this.curLine, this.lineStart = this.pos), t = this.pos;
2621
+ } else ++this.pos;
2622
+ }
2623
+ };
2624
+ b.readInvalidTemplateToken = function() {
2625
+ for (; this.pos < this.input.length; this.pos++) switch (this.input[this.pos]) {
2626
+ case "\\":
2627
+ ++this.pos;
2628
+ break;
2629
+ case "$":
2630
+ if (this.input[this.pos + 1] !== "{") break;
2631
+ case "`":
2632
+ return this.finishToken(a.invalidTemplate, this.input.slice(this.start, this.pos));
2633
+ case "\r":
2634
+ this.input[this.pos + 1] === `
2635
+ ` && ++this.pos;
2636
+ case `
2637
+ `:
2638
+ case "\u2028":
2639
+ case "\u2029":
2640
+ ++this.curLine, this.lineStart = this.pos + 1;
2641
+ break;
2642
+ }
2643
+ this.raise(this.start, "Unterminated template");
2644
+ };
2645
+ b.readEscapedChar = function(e) {
2646
+ var t = this.input.charCodeAt(++this.pos);
2647
+ switch (++this.pos, t) {
2648
+ case 110:
2649
+ return `
2650
+ `;
2651
+ case 114:
2652
+ return "\r";
2653
+ case 120:
2654
+ return String.fromCharCode(this.readHexChar(2));
2655
+ case 117:
2656
+ return G(this.readCodePoint());
2657
+ case 116:
2658
+ return " ";
2659
+ case 98:
2660
+ return "\b";
2661
+ case 118:
2662
+ return "\v";
2663
+ case 102:
2664
+ return "\f";
2665
+ case 13:
2666
+ this.input.charCodeAt(this.pos) === 10 && ++this.pos;
2667
+ case 10:
2668
+ return this.options.locations && (this.lineStart = this.pos, ++this.curLine), "";
2669
+ case 56:
2670
+ case 57:
2671
+ if (this.strict && this.invalidStringToken(this.pos - 1, "Invalid escape sequence"), e) {
2672
+ var i = this.pos - 1;
2673
+ this.invalidStringToken(i, "Invalid escape sequence in template string");
2674
+ }
2675
+ default:
2676
+ if (t >= 48 && t <= 55) {
2677
+ var r = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], s = parseInt(r, 8);
2678
+ return s > 255 && (r = r.slice(0, -1), s = parseInt(r, 8)), this.pos += r.length - 1, t = this.input.charCodeAt(this.pos), (r !== "0" || t === 56 || t === 57) && (this.strict || e) && this.invalidStringToken(this.pos - 1 - r.length, e ? "Octal literal in template string" : "Octal literal in strict mode"), String.fromCharCode(s);
2679
+ }
2680
+ return ee(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
2681
+ }
2682
+ };
2683
+ b.readHexChar = function(e) {
2684
+ var t = this.pos, i = this.readInt(16, e);
2685
+ return i === null && this.invalidStringToken(t, "Bad character escape sequence"), i;
2686
+ };
2687
+ b.readWord1 = function() {
2688
+ this.containsEsc = false;
2689
+ for (var e = "", t = true, i = this.pos, r = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
2690
+ var s = this.fullCharCodeAtPos();
2691
+ if (K(s, r)) this.pos += s <= 65535 ? 1 : 2;
2692
+ else if (s === 92) {
2693
+ this.containsEsc = true, e += this.input.slice(i, this.pos);
2694
+ var n = this.pos;
2695
+ this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
2696
+ var o = this.readCodePoint();
2697
+ (t ? j : K)(o, r) || this.invalidStringToken(n, "Invalid Unicode escape"), e += G(o), i = this.pos;
2698
+ } else break;
2699
+ t = false;
2700
+ }
2701
+ return e + this.input.slice(i, this.pos);
2702
+ };
2703
+ b.readWord = function() {
2704
+ var e = this.readWord1(), t = a.name;
2705
+ return this.keywords.test(e) && (t = Ke[e]), this.finishToken(t, e);
2706
+ };
2707
+ var Ar = "8.17.0";
2708
+ A.acorn = { Parser: A, version: Ar, defaultOptions: We, Position: ue, SourceLocation: be, getLineInfo: _t, Node: Ee, TokenType: _, tokTypes: a, keywordTypes: Ke, TokContext: F, tokContexts: k, isIdentifierChar: K, isIdentifierStart: j, Token: Ze, isNewLine: ee, lineBreak: R, lineBreakG: zi, nonASCIIwhitespace: St };
2709
+ var Li = pt(et(), 1);
2710
+ function Lr(e, t) {
2711
+ let i = new SyntaxError(e + " (" + t.loc.start.line + ":" + t.loc.start.column + ")");
2712
+ return Object.assign(i, t);
2713
+ }
2714
+ var Ae = Lr;
2715
+ function Te(e) {
2716
+ let t = [];
2717
+ for (let i of e) try {
2718
+ return i();
2719
+ } catch (r) {
2720
+ t.push(r);
2721
+ }
2722
+ throw Object.assign(new Error("All combinations failed"), { errors: t });
2723
+ }
2724
+ var re = (e, t) => (i, r, ...s) => i | 1 && r == null ? void 0 : (t.call(r) ?? r[e]).apply(r, s);
2725
+ var Rr = Array.prototype.findLast ?? function(e) {
2726
+ for (let t = this.length - 1; t >= 0; t--) {
2727
+ let i = this[t];
2728
+ if (e(i, t, this)) return i;
2729
+ }
2730
+ };
2731
+ var Vr = re("findLast", function() {
2732
+ if (Array.isArray(this)) return Rr;
2733
+ });
2734
+ var si = Vr;
2735
+ var we = /* @__PURE__ */ Symbol.for("comments");
2736
+ function Or(e) {
2737
+ return this[e < 0 ? this.length + e : e];
2738
+ }
2739
+ var Dr = re("at", function() {
2740
+ if (Array.isArray(this) || typeof this == "string") return Or;
2741
+ });
2742
+ var Ie = Dr;
2743
+ function Y(e) {
2744
+ let t = new Set(e);
2745
+ return (i) => t.has(i?.type);
2746
+ }
2747
+ function se(e) {
2748
+ return e.range?.[1] ?? e.end;
2749
+ }
2750
+ function w(e) {
2751
+ let t = e.range?.[0] ?? e.start, i = (e.declaration?.decorators ?? e.decorators)?.[0];
2752
+ return i ? Math.min(w(i), t) : t;
2753
+ }
2754
+ var Mr = 5;
2755
+ var Br = 8;
2756
+ var Fr = 8;
2757
+ var ai = (e) => (t) => t.label ? I(t.label) : w(t) + e;
2758
+ var jr = (e) => e.__contentEnd ?? se(e);
2759
+ var ni = ["ExpressionStatement", "Directive", "ImportDeclaration", "ExportDefaultDeclaration", "ExportNamedDeclaration", "ExportAllDeclaration", "ReturnStatement", "ThrowStatement", "DoWhileStatement"];
2760
+ var Ur = new Map([["BreakStatement", ai(Mr)], ["ContinueStatement", ai(Br)], ["DebuggerStatement", (e) => w(e) + Fr], ["VariableDeclaration", (e) => I(Ie(0, e.declarations, -1))], ...ni.map((e) => [e, jr])]);
2761
+ var tt = Y(ni);
2762
+ function I(e) {
2763
+ let { type: t } = e;
2764
+ return t === "IfStatement" ? I(e.alternate ?? e.consequent) : t === "ForInStatement" || t === "ForOfStatement" || t === "ForStatement" || t === "LabeledStatement" || t === "WithStatement" || t === "WhileStatement" ? I(e.body) : Ur.get(t)?.(e) ?? se(e);
2765
+ }
2766
+ var ae = Y(["Block", "CommentBlock", "MultiLine"]);
2767
+ var oi = Y(["Line", "CommentLine", "SingleLine", "HashbangComment", "HTMLOpen", "HTMLClose", "Hashbang", "InterpreterDirective"]);
2768
+ function ne(e, t, i) {
2769
+ if (!e.has(t)) {
2770
+ let r = i(t);
2771
+ e.set(t, r);
2772
+ }
2773
+ return e.get(t);
2774
+ }
2775
+ var Gr = /* @__PURE__ */ new WeakMap();
2776
+ function ui(e) {
2777
+ return ne(Gr, e, (t) => ae(t) && t.value[0] === "*" && /@(?:type|satisfies)\b/.test(t.value));
2778
+ }
2779
+ var Wr = String.prototype.replaceAll ?? function(e, t) {
2780
+ return e.global ? this.replace(e, t) : this.split(e).join(t);
2781
+ };
2782
+ var qr = re("replaceAll", function() {
2783
+ if (typeof this == "string") return Wr;
2784
+ });
2785
+ var Z = qr;
2786
+ function Hr(e) {
2787
+ return Z(0, e, /[^\n]/g, " ");
2788
+ }
2789
+ var hi = Hr;
2790
+ function Kr(e, t) {
2791
+ for (let i of t) {
2792
+ let r = w(i), s = I(i);
2793
+ e = e.slice(0, r) + hi(e.slice(r, s)) + e.slice(s);
2794
+ }
2795
+ return e;
2796
+ }
2797
+ var Jr = /* @__PURE__ */ new WeakMap();
2798
+ function ci(e) {
2799
+ let t = e[we];
2800
+ return ne(Jr, t, (i) => Kr(e.originalText, i));
2801
+ }
2802
+ function Xr(e) {
2803
+ if (!ae(e)) return [];
2804
+ if (!e.value.includes(`
2805
+ `)) return [];
2806
+ let t = [];
2807
+ for (let i of `*${e.value}*`.split(`
2808
+ `)) {
2809
+ if (i = i.trimStart(), !i.startsWith("*")) return [];
2810
+ t.push(i);
2811
+ }
2812
+ return t;
2813
+ }
2814
+ var pi = /* @__PURE__ */ new WeakMap();
2815
+ function zr(e) {
2816
+ return ne(pi, e, Xr);
2817
+ }
2818
+ function li(e) {
2819
+ pi.delete(e);
2820
+ }
2821
+ function it(e) {
2822
+ return zr(e).length > 0;
2823
+ }
2824
+ function fi(e) {
2825
+ if (e.length < 2) return;
2826
+ let t;
2827
+ for (let i = e.length - 1; i >= 0; i--) {
2828
+ let r = e[i];
2829
+ if (t && I(r) === w(t) && it(r) && it(t) && (e.splice(i + 1, 1), r.value += "*//*" + t.value, r.range = [w(r), I(t)], li(r)), !oi(r) && !ae(r)) throw new TypeError(`Unknown comment type: "${r.type}".`);
2830
+ t = r;
2831
+ }
2832
+ }
2833
+ function Qr(e) {
2834
+ return e !== null && typeof e == "object";
2835
+ }
2836
+ var di = Qr;
2837
+ var le = null;
2838
+ function fe(e) {
2839
+ if (le !== null && typeof le.property) {
2840
+ let t = le;
2841
+ return le = fe.prototype = null, t;
2842
+ }
2843
+ return le = fe.prototype = e ?? /* @__PURE__ */ Object.create(null), new fe();
2844
+ }
2845
+ var Yr = 10;
2846
+ for (let e = 0; e <= Yr; e++) fe();
2847
+ function rt(e) {
2848
+ return fe(e);
2849
+ }
2850
+ function Zr(e, t = "type") {
2851
+ rt(e);
2852
+ function i(r) {
2853
+ let s = r[t], n = e[s];
2854
+ if (!Array.isArray(n)) throw Object.assign(new Error(`Missing visitor keys for '${s}'.`), { node: r });
2855
+ return n;
2856
+ }
2857
+ return i;
2858
+ }
2859
+ var mi = Zr;
2860
+ var u = [["elements"], ["left", "right"], ["value"], ["directives", "body"], ["label"], ["callee", "typeArguments", "arguments"], ["test", "consequent", "alternate"], ["body", "test"], ["expression"], ["left", "right", "body"], ["id", "typeParameters", "params", "predicate", "returnType", "body"], ["object", "property"], ["properties"], ["decorators", "key", "typeParameters", "params", "returnType", "body"], ["decorators", "key", "value"], ["argument"], ["expressions"], ["id", "init"], ["body"], ["decorators", "id", "typeParameters", "superClass", "superTypeArguments", "mixins", "implements", "body"], ["declaration", "specifiers", "source", "attributes"], ["local"], ["exported"], ["decorators", "variance", "key", "typeAnnotation", "value"], ["id"], ["key", "value"], ["elementType"], ["id", "typeParameters"], ["id", "typeParameters", "extends", "body"], ["id", "body"], ["typeAnnotation"], ["id", "typeParameters", "right"], ["name", "typeAnnotation"], ["types"], ["qualification", "id"], ["elementTypes"], ["expression", "typeAnnotation"], ["params"], ["members"], ["objectType", "indexType"], ["decorators", "key", "typeAnnotation", "value"], ["id", "typeParameters", "params", "returnType", "body"], ["key", "typeParameters", "params", "returnType"], ["typeParameters", "params", "returnType"], ["parameterName", "typeAnnotation"], ["checkType", "extendsType", "trueType", "falseType"], ["typeParameter"], ["literal"], ["expression", "typeArguments"], ["decorators", "key", "typeAnnotation"], ["argument", "cases"], ["pattern", "body", "guard"], ["properties", "rest"], ["node"]];
2861
+ var xi = { ArrayExpression: u[0], AssignmentExpression: u[1], BinaryExpression: u[1], InterpreterDirective: [], Directive: u[2], DirectiveLiteral: [], BlockStatement: u[3], BreakStatement: u[4], CallExpression: u[5], CatchClause: ["param", "body"], ConditionalExpression: u[6], ContinueStatement: u[4], DebuggerStatement: [], DoWhileStatement: u[7], EmptyStatement: [], ExpressionStatement: u[8], File: ["program"], ForInStatement: u[9], ForStatement: ["init", "test", "update", "body"], FunctionDeclaration: u[10], FunctionExpression: u[10], Identifier: ["typeAnnotation", "decorators"], IfStatement: u[6], LabeledStatement: ["label", "body"], StringLiteral: [], NumericLiteral: [], NullLiteral: [], BooleanLiteral: [], RegExpLiteral: [], LogicalExpression: u[1], MemberExpression: u[11], NewExpression: u[5], Program: u[3], ObjectExpression: u[12], ObjectMethod: u[13], ObjectProperty: u[14], RestElement: ["argument", "typeAnnotation", "decorators"], ReturnStatement: u[15], SequenceExpression: u[16], ParenthesizedExpression: u[8], SwitchCase: ["test", "consequent"], SwitchStatement: ["discriminant", "cases"], ThisExpression: [], ThrowStatement: u[15], TryStatement: ["block", "handler", "finalizer"], UnaryExpression: u[15], UpdateExpression: u[15], VariableDeclaration: ["declarations"], VariableDeclarator: u[17], WhileStatement: u[7], WithStatement: ["object", "body"], AssignmentPattern: ["left", "right", "decorators", "typeAnnotation"], ArrayPattern: ["elements", "typeAnnotation", "decorators"], ArrowFunctionExpression: ["typeParameters", "params", "predicate", "returnType", "body"], ClassBody: u[18], ClassExpression: u[19], ClassDeclaration: u[19], ExportAllDeclaration: ["source", "attributes", "exported"], ExportDefaultDeclaration: ["declaration"], ExportNamedDeclaration: u[20], ExportSpecifier: ["local", "exported"], ForOfStatement: u[9], ImportDeclaration: ["specifiers", "source", "attributes"], ImportDefaultSpecifier: u[21], ImportNamespaceSpecifier: u[21], ImportSpecifier: ["imported", "local"], MetaProperty: ["meta", "property"], ClassMethod: u[13], ObjectPattern: ["decorators", "properties", "typeAnnotation"], SpreadElement: u[15], Super: [], TaggedTemplateExpression: ["tag", "typeArguments", "quasi"], TemplateElement: [], TemplateLiteral: ["quasis", "expressions"], YieldExpression: u[15], AwaitExpression: u[15], ImportExpression: ["source", "options"], BigIntLiteral: [], ExportNamespaceSpecifier: u[22], OptionalMemberExpression: u[11], OptionalCallExpression: u[5], ClassProperty: u[23], ClassPrivateProperty: u[23], ClassPrivateMethod: u[13], PrivateName: u[24], StaticBlock: u[18], ImportAttribute: u[25], AnyTypeAnnotation: [], ArrayTypeAnnotation: u[26], BooleanTypeAnnotation: [], BooleanLiteralTypeAnnotation: [], NullLiteralTypeAnnotation: [], ClassImplements: u[27], DeclareClass: ["id", "typeParameters", "extends", "mixins", "implements", "body"], DeclareFunction: ["id", "predicate"], DeclareInterface: u[28], DeclareModule: u[29], DeclareModuleExports: u[30], DeclareTypeAlias: u[31], DeclareOpaqueType: ["id", "typeParameters", "supertype", "lowerBound", "upperBound"], DeclareVariable: ["id", "declarations"], DeclareExportDeclaration: u[20], DeclareExportAllDeclaration: ["source", "attributes"], DeclaredPredicate: u[2], ExistsTypeAnnotation: [], FunctionTypeAnnotation: ["typeParameters", "this", "params", "rest", "returnType"], FunctionTypeParam: u[32], GenericTypeAnnotation: u[27], InferredPredicate: [], InterfaceExtends: u[27], InterfaceDeclaration: u[28], InterfaceTypeAnnotation: ["extends", "body"], IntersectionTypeAnnotation: u[33], MixedTypeAnnotation: [], EmptyTypeAnnotation: [], NullableTypeAnnotation: u[30], NumberLiteralTypeAnnotation: [], BigIntLiteralTypeAnnotation: [], NumberTypeAnnotation: [], ObjectTypeAnnotation: ["properties", "indexers", "callProperties", "internalSlots"], ObjectTypeInternalSlot: ["id", "value"], ObjectTypeCallProperty: u[2], ObjectTypeIndexer: ["variance", "id", "key", "value"], ObjectTypeProperty: ["key", "value", "variance"], ObjectTypeSpreadProperty: u[15], OpaqueType: ["id", "typeParameters", "supertype", "impltype", "lowerBound", "upperBound"], QualifiedTypeIdentifier: u[34], StringLiteralTypeAnnotation: [], StringTypeAnnotation: [], SymbolTypeAnnotation: [], ThisTypeAnnotation: [], TupleTypeAnnotation: u[35], TypeofTypeAnnotation: ["argument", "typeArguments"], TypeAlias: u[31], TypeAnnotation: u[30], TypeCastExpression: u[36], TypeParameter: ["bound", "default", "variance"], TypeParameterDeclaration: u[37], TypeParameterInstantiation: u[37], UnionTypeAnnotation: u[33], Variance: [], VoidTypeAnnotation: [], EnumDeclaration: u[29], EnumBooleanBody: u[38], EnumNumberBody: u[38], EnumStringBody: u[38], EnumSymbolBody: u[38], EnumBooleanMember: u[17], EnumNumberMember: u[17], EnumStringMember: u[17], EnumDefaultedMember: u[24], IndexedAccessType: u[39], OptionalIndexedAccessType: u[39], JSXAttribute: ["name", "value"], JSXClosingElement: ["name"], JSXElement: ["openingElement", "children", "closingElement"], JSXEmptyExpression: [], JSXExpressionContainer: u[8], JSXSpreadChild: u[8], JSXIdentifier: [], JSXMemberExpression: u[11], JSXNamespacedName: ["namespace", "name"], JSXOpeningElement: ["name", "typeArguments", "attributes"], JSXSpreadAttribute: u[15], JSXText: [], JSXFragment: ["openingFragment", "children", "closingFragment"], JSXOpeningFragment: [], JSXClosingFragment: [], Placeholder: [], V8IntrinsicIdentifier: [], ArgumentPlaceholder: [], BindExpression: ["object", "callee"], ClassAccessorProperty: u[40], Decorator: u[8], DoExpression: u[18], ExportDefaultSpecifier: u[22], ModuleExpression: u[18], TopicReference: [], VoidPattern: [], TSParameterProperty: ["parameter", "decorators"], TSDeclareFunction: u[41], TSDeclareMethod: u[42], TSQualifiedName: u[1], TSCallSignatureDeclaration: u[43], TSConstructSignatureDeclaration: u[43], TSPropertySignature: ["key", "typeAnnotation"], TSMethodSignature: u[42], TSIndexSignature: ["parameters", "typeAnnotation"], TSAnyKeyword: [], TSBooleanKeyword: [], TSBigIntKeyword: [], TSIntrinsicKeyword: [], TSNeverKeyword: [], TSNullKeyword: [], TSNumberKeyword: [], TSObjectKeyword: [], TSStringKeyword: [], TSSymbolKeyword: [], TSUndefinedKeyword: [], TSUnknownKeyword: [], TSVoidKeyword: [], TSThisType: [], TSFunctionType: u[43], TSConstructorType: u[43], TSTypeReference: ["typeName", "typeArguments"], TSTypePredicate: u[44], TSTypeQuery: ["exprName", "typeArguments"], TSTypeLiteral: u[38], TSArrayType: u[26], TSTupleType: u[35], TSOptionalType: u[30], TSRestType: u[30], TSNamedTupleMember: ["label", "elementType"], TSUnionType: u[33], TSIntersectionType: u[33], TSConditionalType: u[45], TSInferType: u[46], TSParenthesizedType: u[30], TSTypeOperator: u[30], TSIndexedAccessType: u[39], TSMappedType: ["key", "constraint", "nameType", "typeAnnotation"], TSTemplateLiteralType: ["quasis", "types"], TSLiteralType: u[47], TSClassImplements: u[48], TSInterfaceHeritage: u[48], TSInterfaceDeclaration: u[28], TSInterfaceBody: u[18], TSTypeAliasDeclaration: ["id", "typeParameters", "typeAnnotation"], TSInstantiationExpression: u[48], TSAsExpression: u[36], TSSatisfiesExpression: u[36], TSTypeAssertion: u[36], TSEnumBody: u[38], TSEnumDeclaration: u[29], TSEnumMember: ["id", "initializer"], TSModuleDeclaration: u[29], TSModuleBlock: u[18], TSImportType: ["source", "options", "qualifier", "typeArguments"], TSImportEqualsDeclaration: ["id", "moduleReference"], TSExternalModuleReference: u[8], TSNonNullExpression: u[8], TSExportAssignment: u[8], TSNamespaceExportDeclaration: u[24], TSTypeAnnotation: u[30], TSTypeParameterInstantiation: u[37], TSTypeParameterDeclaration: u[37], TSTypeParameter: ["name", "constraint", "default"], ChainExpression: u[8], Literal: [], MethodDefinition: u[14], PrivateIdentifier: [], Property: u[25], PropertyDefinition: u[23], AccessorProperty: u[40], TSAbstractAccessorProperty: u[49], TSAbstractKeyword: [], TSAbstractMethodDefinition: u[25], TSAbstractPropertyDefinition: u[49], TSAsyncKeyword: [], TSDeclareKeyword: [], TSEmptyBodyFunctionExpression: ["id", "typeParameters", "params", "returnType"], TSExportKeyword: [], TSPrivateKeyword: [], TSProtectedKeyword: [], TSPublicKeyword: [], TSReadonlyKeyword: [], TSStaticKeyword: [], AsConstExpression: u[8], AsExpression: u[36], BigIntTypeAnnotation: [], ComponentDeclaration: ["id", "params", "body", "typeParameters", "rendersType"], ComponentParameter: ["name", "local"], ComponentTypeAnnotation: ["params", "rest", "typeParameters", "rendersType"], ComponentTypeParameter: u[32], ConditionalTypeAnnotation: u[45], DeclareComponent: ["id", "params", "rest", "typeParameters", "rendersType"], DeclareEnum: u[29], DeclareHook: u[24], DeclareNamespace: u[29], EnumBigIntBody: u[38], EnumBigIntMember: u[17], EnumBody: u[38], HookDeclaration: u[41], HookTypeAnnotation: ["params", "returnType", "rest", "typeParameters"], InferTypeAnnotation: u[46], KeyofTypeAnnotation: u[15], MatchArrayPattern: ["elements", "rest"], MatchAsPattern: ["pattern", "target"], MatchBindingPattern: u[24], MatchExpression: u[50], MatchExpressionCase: u[51], MatchIdentifierPattern: u[24], MatchInstanceObjectPattern: u[52], MatchInstancePattern: ["targetConstructor", "properties"], MatchLiteralPattern: u[47], MatchMemberPattern: ["base", "property"], MatchObjectPattern: u[52], MatchObjectPatternProperty: ["key", "pattern"], MatchOrPattern: ["patterns"], MatchRestPattern: u[15], MatchStatement: u[50], MatchStatementCase: u[51], MatchUnaryPattern: u[15], MatchWildcardPattern: [], NeverTypeAnnotation: [], ObjectTypeMappedTypeProperty: ["keyTparam", "propType", "sourceType", "variance"], QualifiedTypeofIdentifier: u[34], RecordDeclaration: ["id", "typeParameters", "implements", "body"], RecordDeclarationBody: u[0], RecordDeclarationImplements: ["id", "typeArguments"], RecordDeclarationProperty: ["key", "typeAnnotation", "defaultValue"], RecordDeclarationStaticProperty: ["key", "typeAnnotation", "value"], RecordExpression: ["recordConstructor", "typeArguments", "properties"], RecordExpressionProperties: u[12], SatisfiesExpression: u[36], TupleTypeLabeledElement: ["label", "elementType", "variance"], TupleTypeSpreadElement: ["label", "typeAnnotation"], TypeOperator: u[30], TypePredicate: u[44], UndefinedTypeAnnotation: [], UnknownTypeAnnotation: [], NGChainedExpression: u[16], NGEmptyExpression: [], NGPipeExpression: ["left", "right", "arguments"], NGMicrosyntax: u[18], NGMicrosyntaxAs: ["key", "alias"], NGMicrosyntaxExpression: ["expression", "alias"], NGMicrosyntaxKey: [], NGMicrosyntaxKeyedExpression: ["key", "expression"], NGMicrosyntaxLet: u[25], NGRoot: u[53], JsExpressionRoot: u[53], JsonRoot: u[53], TSJSDocAllType: [], TSJSDocUnknownType: [], TSJSDocNullableType: u[30], TSJSDocNonNullableType: u[30] };
2862
+ var $r = mi(xi);
2863
+ var yi = $r;
2864
+ function Pe(e, t) {
2865
+ if (!di(e)) return e;
2866
+ if (Array.isArray(e)) {
2867
+ for (let r = 0; r < e.length; r++) e[r] = Pe(e[r], t);
2868
+ return e;
2869
+ }
2870
+ if (t.onEnter) {
2871
+ let r = t.onEnter(e) ?? e;
2872
+ if (r !== e) return Pe(r, t);
2873
+ e = r;
2874
+ }
2875
+ let i = yi(e);
2876
+ for (let r = 0; r < i.length; r++) e[i[r]] = Pe(e[i[r]], t);
2877
+ return t.onLeave && (e = t.onLeave(e) || e), e;
2878
+ }
2879
+ var gi = Pe;
2880
+ var Ua = Y(["RegExpLiteral", "BigIntLiteral", "NumericLiteral", "StringLiteral", "DirectiveLiteral", "Literal", "JSXText", "TemplateElement", "StringLiteralTypeAnnotation", "NumberLiteralTypeAnnotation", "BigIntLiteralTypeAnnotation"]);
2881
+ function es(e, t) {
2882
+ let { text: i, astType: r } = t, { comments: s } = e;
2883
+ fi(s);
2884
+ let n = e.type === "File" ? e.program : e;
2885
+ n.interpreter && (s.unshift(n.interpreter), delete n.interpreter), e.hashbang && ((r === "oxc-ts" || r === "yuku-js" || r === "yuku-ts") && s.unshift(e.hashbang), delete e.hashbang), e.type === "Program" && (e.range = [0, i.length]);
2886
+ let o;
2887
+ return e = gi(e, { onEnter(h) {
2888
+ switch (ts(h, s, i), h.type) {
2889
+ case "ParenthesizedExpression": {
2890
+ let { expression: c } = h, l = w(h);
2891
+ if (c.type === "TypeCastExpression") return c.range = [l, I(h)], c;
2892
+ let m = false;
2893
+ if (r !== "oxc-ts") {
2894
+ if (!o) {
2895
+ o = [];
2896
+ for (let E of s) ui(E) && o.push(I(E));
2897
+ }
2898
+ let S = si(0, o, (E) => E <= l);
2899
+ m = S && i.slice(S, l).trim().length === 0;
2900
+ }
2901
+ return m ? void 0 : (c.extra = { ...c.extra, parenthesized: true }, c);
2902
+ }
2903
+ case "TemplateLiteral":
2904
+ if (h.expressions.length !== h.quasis.length - 1) throw new Error("Malformed template literal.");
2905
+ break;
2906
+ case "TemplateElement":
2907
+ if (r === "flow" || r === "hermes" || r === "espree" || r === "typescript" || r === "oxc-ts" || r === "yuku-ts") {
2908
+ let c = w(h) + 1, l = I(h) - (h.tail ? 1 : 2);
2909
+ h.range = [c, l];
2910
+ }
2911
+ break;
2912
+ case "TSParenthesizedType":
2913
+ return h.typeAnnotation;
2914
+ case "TopicReference":
2915
+ e.extra = { ...e.extra, __isUsingHackPipeline: true };
2916
+ break;
2917
+ case "TSUnionType":
2918
+ case "TSIntersectionType":
2919
+ if (h.types.length === 1) return h.types[0];
2920
+ break;
2921
+ case "TupleTypeAnnotation":
2922
+ h.types && !h.elementTypes && (h.elementTypes = h.types);
2923
+ break;
2924
+ case "ImportDeclaration":
2925
+ r === "hermes" && h.assertions && !h.attributes && (h.attributes = h.assertions, delete h.assertions);
2926
+ break;
2927
+ }
2928
+ }, onLeave(h) {
2929
+ switch (h.type) {
2930
+ case "LogicalExpression":
2931
+ if (vi(h)) return st(h);
2932
+ break;
2933
+ }
2934
+ } }), e;
2935
+ }
2936
+ function vi(e) {
2937
+ return e.type === "LogicalExpression" && e.right.type === "LogicalExpression" && e.operator === e.right.operator;
2938
+ }
2939
+ function st(e) {
2940
+ return vi(e) ? st({ type: "LogicalExpression", operator: e.operator, left: st({ type: "LogicalExpression", operator: e.operator, left: e.left, right: e.right.left, range: [w(e.left), I(e.right.left)] }), right: e.right.right, range: [w(e), I(e)] }) : e;
2941
+ }
2942
+ function ts(e, t, i) {
2943
+ if (!tt(e)) return;
2944
+ let r = se(e);
2945
+ if (i[r - 1] !== ";") return;
2946
+ let s = ci({ [we]: t, originalText: i });
2947
+ r -= 1;
2948
+ let n = s.slice(w(e), r), o = n.trimEnd();
2949
+ e.__contentEnd = r - (n.length - o.length);
2950
+ }
2951
+ var Ne = es;
2952
+ var is = Object.hasOwn ?? Function.prototype.call.bind(Object.prototype.hasOwnProperty);
2953
+ var at = is;
2954
+ var rs = /\*\/$/;
2955
+ var ss = /^\/\*\*?/;
2956
+ var as = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/;
2957
+ var ns = /(^|\s+)\/\/([^\n\r]*)/g;
2958
+ var bi = /^(\r?\n)+/;
2959
+ var os = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g;
2960
+ var Si = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g;
2961
+ var us = /(\r?\n|^) *\* ?/g;
2962
+ var hs = [];
2963
+ function Ci(e) {
2964
+ let t = e.match(as);
2965
+ return t ? t[0].trimStart() : "";
2966
+ }
2967
+ function _i(e) {
2968
+ e = Z(0, e.replace(ss, "").replace(rs, ""), us, "$1");
2969
+ let i = "";
2970
+ for (; i !== e; ) i = e, e = Z(0, e, os, `
2971
+ $1 $2
2972
+ `);
2973
+ e = e.replace(bi, "").trimEnd();
2974
+ let r = /* @__PURE__ */ Object.create(null), s = Z(0, e, Si, "").replace(bi, "").trimEnd(), n;
2975
+ for (; n = Si.exec(e); ) {
2976
+ let o = Z(0, n[2], ns, "");
2977
+ if (typeof r[n[1]] == "string" || Array.isArray(r[n[1]])) {
2978
+ let h = r[n[1]];
2979
+ r[n[1]] = [...hs, ...Array.isArray(h) ? h : [h], o];
2980
+ } else r[n[1]] = o;
2981
+ }
2982
+ return { comments: s, pragmas: r };
2983
+ }
2984
+ var Ei = ["noformat", "noprettier"];
2985
+ var ki = ["format", "prettier"];
2986
+ function cs(e) {
2987
+ if (!e.startsWith("#!")) return "";
2988
+ let t = e.indexOf(`
2989
+ `);
2990
+ return t === -1 ? e : e.slice(0, t);
2991
+ }
2992
+ var Ai = cs;
2993
+ function Ti(e) {
2994
+ let t = Ai(e);
2995
+ t && (e = e.slice(t.length + 1));
2996
+ let i = Ci(e), { pragmas: r, comments: s } = _i(i);
2997
+ return { shebang: t, text: e, pragmas: r, comments: s };
2998
+ }
2999
+ function wi(e) {
3000
+ let { pragmas: t } = Ti(e);
3001
+ return ki.some((i) => at(t, i));
3002
+ }
3003
+ function Ii(e) {
3004
+ let { pragmas: t } = Ti(e);
3005
+ return Ei.some((i) => at(t, i));
3006
+ }
3007
+ function ps(e) {
3008
+ return e = typeof e == "function" ? { parse: e } : e, { astFormat: "estree", hasPragma: wi, hasIgnorePragma: Ii, locStart: w, locEnd: I, ...e };
3009
+ }
3010
+ var Le = ps;
3011
+ var Re = "module";
3012
+ var Pi = "commonjs";
3013
+ var Ve = [Re, Pi];
3014
+ function Oe(e) {
3015
+ if (typeof e == "string") {
3016
+ if (e = e.toLowerCase(), /\.(?:mjs|mts)$/i.test(e)) return Re;
3017
+ if (/\.(?:cjs|cts)$/i.test(e)) return Pi;
3018
+ }
3019
+ }
3020
+ var ls = { ecmaVersion: "latest", allowReserved: true, allowReturnOutsideFunction: true, allowSuperOutsideMethod: true, checkPrivateFields: false, locations: false, ranges: true, preserveParens: true };
3021
+ function fs(e) {
3022
+ let { message: t, loc: i } = e;
3023
+ if (!i) return e;
3024
+ let { line: r, column: s } = i;
3025
+ return Ae(t.replace(/ \(\d+:\d+\)$/, ""), { loc: { start: { line: r, column: s + 1 } }, cause: e });
3026
+ }
3027
+ var Ni;
3028
+ var ds = () => (Ni ?? (Ni = A.extend((0, Li.default)())), Ni);
3029
+ function ms(e, t) {
3030
+ let i = ds(), r = [], s = i.parse(e, { ...ls, sourceType: t, allowImportExportEverywhere: t === Re, onComment: r });
3031
+ return s.comments = r, s;
3032
+ }
3033
+ function xs(e, t) {
3034
+ let i = Oe(t?.filepath), r = (i ? [i] : Ve).map((n) => () => ms(e, n)), s;
3035
+ try {
3036
+ s = Te(r);
3037
+ } catch ({ errors: [n] }) {
3038
+ throw fs(n);
3039
+ }
3040
+ return Ne(s, { text: e });
3041
+ }
3042
+ var ys = Le(xs);
3043
+ var ht = {};
3044
+ Be(ht, { espree: () => Ts });
3045
+ var Oi = pt(et(), 1);
3046
+ var Ri = [3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17];
3047
+ var gs = Ie(0, Ri, -1);
3048
+ function vs() {
3049
+ return gs;
3050
+ }
3051
+ function bs(e = 5) {
3052
+ let t = e === "latest" ? vs() : e;
3053
+ if (typeof t != "number") throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);
3054
+ if (t >= 2015 && (t -= 2009), !Ri.includes(t)) throw new Error("Invalid ecmaVersion.");
3055
+ return t;
3056
+ }
3057
+ function Ss(e = "script") {
3058
+ if (e === "script" || e === "module" || e === "commonjs") return e;
3059
+ throw new Error("Invalid sourceType.");
3060
+ }
3061
+ function Vi(e) {
3062
+ let t = bs(e.ecmaVersion), i = Ss(e.sourceType), r = e.range === true, s = e.loc === true;
3063
+ if (t !== 3 && e.allowReserved) throw new Error("`allowReserved` is only supported when ecmaVersion is 3");
3064
+ if (typeof e.allowReserved < "u" && typeof e.allowReserved != "boolean") throw new Error("`allowReserved`, when present, must be `true` or `false`");
3065
+ let n = t === 3 ? e.allowReserved || "never" : false, o = e.ecmaFeatures || {}, h = e.sourceType === "commonjs" || !!o.globalReturn;
3066
+ if (i === "module" && t < 6) throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");
3067
+ return Object.assign({}, e, { ecmaVersion: t, sourceType: i, ranges: r, locations: s, allowReserved: n, allowReturnOutsideFunction: h });
3068
+ }
3069
+ var $ = /* @__PURE__ */ Symbol("espree's internal state");
3070
+ var ot = /* @__PURE__ */ Symbol("espree's esprimaFinishNode");
3071
+ function Cs(e, t, i, r, s, n, o) {
3072
+ let h;
3073
+ e ? h = "Block" : o.slice(i, i + 2) === "#!" ? h = "Hashbang" : h = "Line";
3074
+ let c = { type: h, value: t };
3075
+ return typeof i == "number" && (c.start = i, c.end = r, c.range = [i, r]), typeof s == "object" && (c.loc = { start: s, end: n }), c;
3076
+ }
3077
+ var ut = () => (e) => {
3078
+ let t = Object.assign({}, e.acorn.tokTypes);
3079
+ return e.acornJsx && Object.assign(t, e.acornJsx.tokTypes), class extends e {
3080
+ constructor(r, s) {
3081
+ (typeof r != "object" || r === null) && (r = {}), typeof s != "string" && !(s instanceof String) && (s = String(s));
3082
+ let n = r.sourceType, o = Vi(r), h = o.ecmaFeatures || {}, c = null, l = { originalSourceType: n || o.sourceType, tokens: c ? [] : null, comments: o.comment === true ? [] : null, impliedStrict: h.impliedStrict === true && o.ecmaVersion >= 5, ecmaVersion: o.ecmaVersion, jsxAttrValueToken: false, lastToken: null, templateElements: [] };
3083
+ super({ ecmaVersion: o.ecmaVersion, sourceType: o.sourceType, ranges: o.ranges, locations: o.locations, allowReserved: o.allowReserved, allowReturnOutsideFunction: o.allowReturnOutsideFunction, onToken(m) {
3084
+ c && c.onToken(m, l), m.type !== t.eof && (l.lastToken = m);
3085
+ }, onComment(m, S, E, p, x, y) {
3086
+ if (l.comments) {
3087
+ let v = Cs(m, S, E, p, x, y, s);
3088
+ l.comments.push(v);
3089
+ }
3090
+ } }, s), this[$] = l;
3091
+ }
3092
+ tokenize() {
3093
+ do
3094
+ this.next();
3095
+ while (this.type !== t.eof);
3096
+ this.next();
3097
+ let r = this[$], s = r.tokens;
3098
+ return r.comments && (s.comments = r.comments), s;
3099
+ }
3100
+ finishNode(r, s) {
3101
+ let n = super.finishNode(r, s);
3102
+ return this[ot](n);
3103
+ }
3104
+ finishNodeAt(r, s, n, o) {
3105
+ let h = super.finishNodeAt(r, s, n, o);
3106
+ return this[ot](h);
3107
+ }
3108
+ parse() {
3109
+ let r = this[$], n = super.parse();
3110
+ return n.sourceType = r.originalSourceType, r.comments && (n.comments = r.comments), r.tokens && (n.tokens = r.tokens), this[$].templateElements.forEach((o) => {
3111
+ let c = o.tail ? 1 : 2;
3112
+ o.start += -1, o.end += c, o.range && (o.range[0] += -1, o.range[1] += c), o.loc && (o.loc.start.column += -1, o.loc.end.column += c);
3113
+ }), n;
3114
+ }
3115
+ parseTopLevel(r) {
3116
+ return this[$].impliedStrict && (this.strict = true), super.parseTopLevel(r);
3117
+ }
3118
+ raise(r, s) {
3119
+ let n = e.acorn.getLineInfo(this.input, r), o = new SyntaxError(s);
3120
+ throw o.index = r, o.lineNumber = n.line, o.column = n.column + 1, o;
3121
+ }
3122
+ raiseRecoverable(r, s) {
3123
+ this.raise(r, s);
3124
+ }
3125
+ unexpected(r) {
3126
+ let s = "Unexpected token";
3127
+ if (r != null) {
3128
+ if (this.pos = r, this.options.locations) for (; this.pos < this.lineStart; ) this.lineStart = this.input.lastIndexOf(`
3129
+ `, this.lineStart - 2) + 1, --this.curLine;
3130
+ this.nextToken();
3131
+ }
3132
+ this.end > this.start && (s += ` ${this.input.slice(this.start, this.end)}`), this.raise(this.start, s);
3133
+ }
3134
+ jsx_readString(r) {
3135
+ let s = super.jsx_readString(r);
3136
+ return this.type === t.string && (this[$].jsxAttrValueToken = true), s;
3137
+ }
3138
+ [ot](r) {
3139
+ return r.type === "TemplateElement" && this[$].templateElements.push(r), r.type.includes("Function") && !("generator" in r) && (r.generator = false), r;
3140
+ }
3141
+ };
3142
+ };
3143
+ var _s = { _regular: null, _jsx: null, get regular() {
3144
+ if (this._regular === null) {
3145
+ let e = ut();
3146
+ this._regular = A.extend(e);
3147
+ }
3148
+ return this._regular;
3149
+ }, get jsx() {
3150
+ if (this._jsx === null) {
3151
+ let e = ut(), t = (0, Oi.default)();
3152
+ this._jsx = A.extend(t, e);
3153
+ }
3154
+ return this._jsx;
3155
+ }, get(e) {
3156
+ return !!(e && e.ecmaFeatures && e.ecmaFeatures.jsx) ? this.jsx : this.regular;
3157
+ } };
3158
+ function Di(e, t) {
3159
+ let i = _s.get(t);
3160
+ return new i(t, e).parse();
3161
+ }
3162
+ var Es = { ecmaVersion: "latest", range: true, loc: false, comment: true, tokens: false, ecmaFeatures: { jsx: true, impliedStrict: false } };
3163
+ function ks(e) {
3164
+ let { message: t, lineNumber: i, column: r } = e;
3165
+ return typeof i != "number" ? e : Ae(t, { loc: { start: { line: i, column: r } }, cause: e });
3166
+ }
3167
+ function As(e, t) {
3168
+ let i = Oe(t?.filepath), r = (i ? [i] : Ve).map((n) => () => Di(e, { ...Es, sourceType: n })), s;
3169
+ try {
3170
+ s = Te(r);
3171
+ } catch ({ errors: [n] }) {
3172
+ throw ks(n);
3173
+ }
3174
+ return Ne(s, { text: e, astType: "espree" });
3175
+ }
3176
+ var Ts = Le(As);
3177
+ var ws = { ...nt, ...ht };
3178
+ export {
3179
+ Mi as default,
3180
+ ws as parsers
3181
+ };