@osdk/cli 0.32.0 → 0.32.1-main-20260407074313

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.
Files changed (78) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/esm/acorn-2ONPHVNE.js +4014 -0
  3. package/build/esm/acorn-2ONPHVNE.js.map +1 -0
  4. package/build/esm/angular-BLMWAHFR.js +3921 -0
  5. package/build/esm/angular-BLMWAHFR.js.map +1 -0
  6. package/build/esm/babel-3NM2PEMH.js +9588 -0
  7. package/build/esm/babel-3NM2PEMH.js.map +1 -0
  8. package/build/esm/{chunk-TUUWLZNZ.js → chunk-LOTEIT7D.js} +33 -5
  9. package/build/esm/chunk-LOTEIT7D.js.map +1 -0
  10. package/build/esm/chunk-OBNIOZZ3.js +84 -0
  11. package/build/esm/chunk-OBNIOZZ3.js.map +1 -0
  12. package/build/esm/chunk-SEFKBDOM.js +127 -0
  13. package/build/esm/chunk-SEFKBDOM.js.map +1 -0
  14. package/build/esm/{chunk-FQRKVHAE.js → chunk-UIAONP7L.js} +4 -2
  15. package/build/esm/chunk-UIAONP7L.js.map +1 -0
  16. package/build/esm/chunk-UN2YTB6E.js +43 -0
  17. package/build/esm/chunk-UN2YTB6E.js.map +1 -0
  18. package/build/esm/estree-W4CYHNEC.js +6145 -0
  19. package/build/esm/estree-W4CYHNEC.js.map +1 -0
  20. package/build/esm/flow-JBS2TSFC.js +27169 -0
  21. package/build/esm/flow-JBS2TSFC.js.map +1 -0
  22. package/build/esm/glimmer-V4LJ6GLD.js +6974 -0
  23. package/build/esm/glimmer-V4LJ6GLD.js.map +1 -0
  24. package/build/esm/graphql-H5EVBMG6.js +1720 -0
  25. package/build/esm/graphql-H5EVBMG6.js.map +1 -0
  26. package/build/esm/handleGenerate-OQBERMX2.js +19501 -0
  27. package/build/esm/handleGenerate-OQBERMX2.js.map +1 -0
  28. package/build/esm/html-M53H7DSS.js +5810 -0
  29. package/build/esm/html-M53H7DSS.js.map +1 -0
  30. package/build/esm/index.js +223 -18
  31. package/build/esm/index.js.map +1 -1
  32. package/build/esm/loginFlow-AD7BNVSR.js +4 -0
  33. package/build/esm/loginFlow-AD7BNVSR.js.map +1 -0
  34. package/build/esm/markdown-MBM2N6R4.js +6697 -0
  35. package/build/esm/markdown-MBM2N6R4.js.map +1 -0
  36. package/build/esm/meriyah-WA3U2F5N.js +4343 -0
  37. package/build/esm/meriyah-WA3U2F5N.js.map +1 -0
  38. package/build/esm/postcss-SG76YHLC.js +6281 -0
  39. package/build/esm/postcss-SG76YHLC.js.map +1 -0
  40. package/build/esm/{siteDeployCommand-4RSVHCYL.js → siteDeployCommand-UZBCBS57.js} +10 -5
  41. package/build/esm/siteDeployCommand-UZBCBS57.js.map +1 -0
  42. package/build/esm/typescript-3WZD42RO.js +13078 -0
  43. package/build/esm/typescript-3WZD42RO.js.map +1 -0
  44. package/build/esm/{versionDeleteCommand-E7XUIDUE.js → versionDeleteCommand-5C3VUCZ5.js} +8 -5
  45. package/build/esm/versionDeleteCommand-5C3VUCZ5.js.map +1 -0
  46. package/build/esm/{versionDeleteCommand-ZDSYOJVF.js → versionDeleteCommand-RJSNM352.js} +8 -5
  47. package/build/esm/versionDeleteCommand-RJSNM352.js.map +1 -0
  48. package/build/esm/{versionGetCommand-3FJSCGFI.js → versionGetCommand-JVXYLGJY.js} +7 -4
  49. package/build/esm/versionGetCommand-JVXYLGJY.js.map +1 -0
  50. package/build/esm/{versionInfoCommand-3NHIQCD4.js → versionInfoCommand-SRKLL4TN.js} +7 -4
  51. package/build/esm/versionInfoCommand-SRKLL4TN.js.map +1 -0
  52. package/build/esm/{versionListCommand-FN6U7DQW.js → versionListCommand-HPB4TUL6.js} +7 -4
  53. package/build/esm/versionListCommand-HPB4TUL6.js.map +1 -0
  54. package/build/esm/{versionListCommand-NYIQZT3U.js → versionListCommand-LC6PEJRN.js} +7 -4
  55. package/build/esm/versionListCommand-LC6PEJRN.js.map +1 -0
  56. package/build/esm/{versionSetCommand-OZDYOLQB.js → versionSetCommand-SEND3HB2.js} +7 -4
  57. package/build/esm/versionSetCommand-SEND3HB2.js.map +1 -0
  58. package/build/esm/{versionUnsetCommand-YRRYIK4E.js → versionUnsetCommand-VR2YQJFB.js} +8 -5
  59. package/build/esm/versionUnsetCommand-VR2YQJFB.js.map +1 -0
  60. package/build/esm/{widgetSetDeployCommand-UE2GYNU4.js → widgetSetDeployCommand-XUUJ2VOD.js} +7 -5
  61. package/build/esm/widgetSetDeployCommand-XUUJ2VOD.js.map +1 -0
  62. package/build/esm/yaml-7IJ6PB44.js +5822 -0
  63. package/build/esm/yaml-7IJ6PB44.js.map +1 -0
  64. package/package.json +8 -8
  65. package/build/esm/chunk-FQRKVHAE.js.map +0 -1
  66. package/build/esm/chunk-PZ5AY32C.js +0 -9
  67. package/build/esm/chunk-PZ5AY32C.js.map +0 -1
  68. package/build/esm/chunk-TUUWLZNZ.js.map +0 -1
  69. package/build/esm/siteDeployCommand-4RSVHCYL.js.map +0 -1
  70. package/build/esm/versionDeleteCommand-E7XUIDUE.js.map +0 -1
  71. package/build/esm/versionDeleteCommand-ZDSYOJVF.js.map +0 -1
  72. package/build/esm/versionGetCommand-3FJSCGFI.js.map +0 -1
  73. package/build/esm/versionInfoCommand-3NHIQCD4.js.map +0 -1
  74. package/build/esm/versionListCommand-FN6U7DQW.js.map +0 -1
  75. package/build/esm/versionListCommand-NYIQZT3U.js.map +0 -1
  76. package/build/esm/versionSetCommand-OZDYOLQB.js.map +0 -1
  77. package/build/esm/versionUnsetCommand-YRRYIK4E.js.map +0 -1
  78. package/build/esm/widgetSetDeployCommand-UE2GYNU4.js.map +0 -1
@@ -0,0 +1,4014 @@
1
+ import { init_esm_shims } from './chunk-UN2YTB6E.js';
2
+
3
+ // ../../node_modules/.pnpm/prettier@3.6.2/node_modules/prettier/plugins/acorn.mjs
4
+ init_esm_shims();
5
+ var wi = Object.create;
6
+ var Le = Object.defineProperty;
7
+ var Pi = Object.getOwnPropertyDescriptor;
8
+ var Ii = Object.getOwnPropertyNames;
9
+ var Ni = Object.getPrototypeOf;
10
+ var Li = Object.prototype.hasOwnProperty;
11
+ var nt = (e, t) => () => (t || e((t = {
12
+ exports: {}
13
+ }).exports, t), t.exports);
14
+ var Vi = (e, t) => {
15
+ for (var i in t) Le(e, i, {
16
+ get: t[i],
17
+ enumerable: true
18
+ });
19
+ };
20
+ var Ri = (e, t, i, s) => {
21
+ if (t && typeof t == "object" || typeof t == "function") for (let r of Ii(t)) !Li.call(e, r) && r !== i && Le(e, r, {
22
+ get: () => t[r],
23
+ enumerable: !(s = Pi(t, r)) || s.enumerable
24
+ });
25
+ return e;
26
+ };
27
+ var ot = (e, t, i) => (i = e != null ? wi(Ni(e)) : {}, Ri(Le(i, "default", {
28
+ value: e,
29
+ enumerable: true
30
+ }) , e));
31
+ var zt = nt((fr, Xt) => {
32
+ Xt.exports = {};
33
+ });
34
+ var Xe = nt((dr, We) => {
35
+ var bs = zt(), Ss = /^[\da-fA-F]+$/, _s = /^\d+$/, Qt = /* @__PURE__ */ new WeakMap();
36
+ function Yt(e) {
37
+ e = e.Parser.acorn || e;
38
+ let t = Qt.get(e);
39
+ if (!t) {
40
+ let i = e.tokTypes, s = e.TokContext, r = e.TokenType, n = new s("<tag", false), o = new s("</tag", false), p = new s("<tag>...</tag>", true, true), u = {
41
+ tc_oTag: n,
42
+ tc_cTag: o,
43
+ tc_expr: p
44
+ }, c = {
45
+ jsxName: new r("jsxName"),
46
+ jsxText: new r("jsxText", {
47
+ beforeExpr: true
48
+ }),
49
+ jsxTagStart: new r("jsxTagStart", {
50
+ startsExpr: true
51
+ }),
52
+ jsxTagEnd: new r("jsxTagEnd")
53
+ };
54
+ c.jsxTagStart.updateContext = function() {
55
+ this.context.push(p), this.context.push(n), this.exprAllowed = false;
56
+ }, c.jsxTagEnd.updateContext = function(f) {
57
+ let v = this.context.pop();
58
+ v === n && f === i.slash || v === o ? (this.context.pop(), this.exprAllowed = this.curContext() === p) : this.exprAllowed = true;
59
+ }, t = {
60
+ tokContexts: u,
61
+ tokTypes: c
62
+ }, Qt.set(e, t);
63
+ }
64
+ return t;
65
+ }
66
+ function pe(e) {
67
+ if (!e) return e;
68
+ if (e.type === "JSXIdentifier") return e.name;
69
+ if (e.type === "JSXNamespacedName") return e.namespace.name + ":" + e.name.name;
70
+ if (e.type === "JSXMemberExpression") return pe(e.object) + "." + pe(e.property);
71
+ }
72
+ We.exports = function(e) {
73
+ return e = e || {}, function(t) {
74
+ return Ts({
75
+ allowNamespaces: e.allowNamespaces !== false,
76
+ allowNamespacedObjects: !!e.allowNamespacedObjects
77
+ }, t);
78
+ };
79
+ };
80
+ Object.defineProperty(We.exports, "tokTypes", {
81
+ get: function() {
82
+ return Yt(void 0).tokTypes;
83
+ },
84
+ configurable: true,
85
+ enumerable: true
86
+ });
87
+ function Ts(e, t) {
88
+ let i = t.acorn || void 0, s = Yt(i), r = i.tokTypes, n = s.tokTypes, o = i.tokContexts, p = s.tokContexts.tc_oTag, u = s.tokContexts.tc_cTag, c = s.tokContexts.tc_expr, f = i.isNewLine, v = i.isIdentifierStart, T = i.isIdentifierChar;
89
+ return class extends t {
90
+ static get acornJsx() {
91
+ return s;
92
+ }
93
+ jsx_readToken() {
94
+ let h = "", m = this.pos;
95
+ for (; ; ) {
96
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated JSX contents");
97
+ let x = this.input.charCodeAt(this.pos);
98
+ switch (x) {
99
+ case 60:
100
+ case 123:
101
+ return this.pos === this.start ? x === 60 && this.exprAllowed ? (++this.pos, this.finishToken(n.jsxTagStart)) : this.getTokenFromCode(x) : (h += this.input.slice(m, this.pos), this.finishToken(n.jsxText, h));
102
+ case 38:
103
+ h += this.input.slice(m, this.pos), h += this.jsx_readEntity(), m = this.pos;
104
+ break;
105
+ case 62:
106
+ case 125:
107
+ this.raise(this.pos, "Unexpected token `" + this.input[this.pos] + "`. Did you mean `" + (x === 62 ? "&gt;" : "&rbrace;") + '` or `{"' + this.input[this.pos] + '"}`?');
108
+ default:
109
+ f(x) ? (h += this.input.slice(m, this.pos), h += this.jsx_readNewLine(true), m = this.pos) : ++this.pos;
110
+ }
111
+ }
112
+ }
113
+ jsx_readNewLine(h) {
114
+ let m = this.input.charCodeAt(this.pos), x;
115
+ return ++this.pos, m === 13 && this.input.charCodeAt(this.pos) === 10 ? (++this.pos, x = h ? `
116
+ ` : `\r
117
+ `) : x = String.fromCharCode(m), this.options.locations && (++this.curLine, this.lineStart = this.pos), x;
118
+ }
119
+ jsx_readString(h) {
120
+ let m = "", x = ++this.pos;
121
+ for (; ; ) {
122
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
123
+ let g = this.input.charCodeAt(this.pos);
124
+ if (g === h) break;
125
+ g === 38 ? (m += this.input.slice(x, this.pos), m += this.jsx_readEntity(), x = this.pos) : f(g) ? (m += this.input.slice(x, this.pos), m += this.jsx_readNewLine(false), x = this.pos) : ++this.pos;
126
+ }
127
+ return m += this.input.slice(x, this.pos++), this.finishToken(r.string, m);
128
+ }
129
+ jsx_readEntity() {
130
+ let h = "", m = 0, x, g = this.input[this.pos];
131
+ g !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
132
+ let N = ++this.pos;
133
+ for (; this.pos < this.input.length && m++ < 10; ) {
134
+ if (g = this.input[this.pos++], g === ";") {
135
+ h[0] === "#" ? h[1] === "x" ? (h = h.substr(2), Ss.test(h) && (x = String.fromCharCode(parseInt(h, 16)))) : (h = h.substr(1), _s.test(h) && (x = String.fromCharCode(parseInt(h, 10)))) : x = bs[h];
136
+ break;
137
+ }
138
+ h += g;
139
+ }
140
+ return x || (this.pos = N, "&");
141
+ }
142
+ jsx_readWord() {
143
+ let h, m = this.pos;
144
+ do
145
+ h = this.input.charCodeAt(++this.pos);
146
+ while (T(h) || h === 45);
147
+ return this.finishToken(n.jsxName, this.input.slice(m, this.pos));
148
+ }
149
+ jsx_parseIdentifier() {
150
+ let h = this.startNode();
151
+ return this.type === n.jsxName ? h.name = this.value : this.type.keyword ? h.name = this.type.keyword : this.unexpected(), this.next(), this.finishNode(h, "JSXIdentifier");
152
+ }
153
+ jsx_parseNamespacedName() {
154
+ let h = this.start, m = this.startLoc, x = this.jsx_parseIdentifier();
155
+ if (!e.allowNamespaces || !this.eat(r.colon)) return x;
156
+ var g = this.startNodeAt(h, m);
157
+ return g.namespace = x, g.name = this.jsx_parseIdentifier(), this.finishNode(g, "JSXNamespacedName");
158
+ }
159
+ jsx_parseElementName() {
160
+ if (this.type === n.jsxTagEnd) return "";
161
+ let h = this.start, m = this.startLoc, x = this.jsx_parseNamespacedName();
162
+ for (this.type === r.dot && x.type === "JSXNamespacedName" && !e.allowNamespacedObjects && this.unexpected(); this.eat(r.dot); ) {
163
+ let g = this.startNodeAt(h, m);
164
+ g.object = x, g.property = this.jsx_parseIdentifier(), x = this.finishNode(g, "JSXMemberExpression");
165
+ }
166
+ return x;
167
+ }
168
+ jsx_parseAttributeValue() {
169
+ switch (this.type) {
170
+ case r.braceL:
171
+ let h = this.jsx_parseExpressionContainer();
172
+ return h.expression.type === "JSXEmptyExpression" && this.raise(h.start, "JSX attributes must only be assigned a non-empty expression"), h;
173
+ case n.jsxTagStart:
174
+ case r.string:
175
+ return this.parseExprAtom();
176
+ default:
177
+ this.raise(this.start, "JSX value should be either an expression or a quoted JSX text");
178
+ }
179
+ }
180
+ jsx_parseEmptyExpression() {
181
+ let h = this.startNodeAt(this.lastTokEnd, this.lastTokEndLoc);
182
+ return this.finishNodeAt(h, "JSXEmptyExpression", this.start, this.startLoc);
183
+ }
184
+ jsx_parseExpressionContainer() {
185
+ let h = this.startNode();
186
+ return this.next(), h.expression = this.type === r.braceR ? this.jsx_parseEmptyExpression() : this.parseExpression(), this.expect(r.braceR), this.finishNode(h, "JSXExpressionContainer");
187
+ }
188
+ jsx_parseAttribute() {
189
+ let h = this.startNode();
190
+ return this.eat(r.braceL) ? (this.expect(r.ellipsis), h.argument = this.parseMaybeAssign(), this.expect(r.braceR), this.finishNode(h, "JSXSpreadAttribute")) : (h.name = this.jsx_parseNamespacedName(), h.value = this.eat(r.eq) ? this.jsx_parseAttributeValue() : null, this.finishNode(h, "JSXAttribute"));
191
+ }
192
+ jsx_parseOpeningElementAt(h, m) {
193
+ let x = this.startNodeAt(h, m);
194
+ x.attributes = [];
195
+ let g = this.jsx_parseElementName();
196
+ for (g && (x.name = g); this.type !== r.slash && this.type !== n.jsxTagEnd; ) x.attributes.push(this.jsx_parseAttribute());
197
+ return x.selfClosing = this.eat(r.slash), this.expect(n.jsxTagEnd), this.finishNode(x, g ? "JSXOpeningElement" : "JSXOpeningFragment");
198
+ }
199
+ jsx_parseClosingElementAt(h, m) {
200
+ let x = this.startNodeAt(h, m), g = this.jsx_parseElementName();
201
+ return g && (x.name = g), this.expect(n.jsxTagEnd), this.finishNode(x, g ? "JSXClosingElement" : "JSXClosingFragment");
202
+ }
203
+ jsx_parseElementAt(h, m) {
204
+ let x = this.startNodeAt(h, m), g = [], N = this.jsx_parseOpeningElementAt(h, m), le = null;
205
+ if (!N.selfClosing) {
206
+ e: for (; ; ) switch (this.type) {
207
+ case n.jsxTagStart:
208
+ if (h = this.start, m = this.startLoc, this.next(), this.eat(r.slash)) {
209
+ le = this.jsx_parseClosingElementAt(h, m);
210
+ break e;
211
+ }
212
+ g.push(this.jsx_parseElementAt(h, m));
213
+ break;
214
+ case n.jsxText:
215
+ g.push(this.parseExprAtom());
216
+ break;
217
+ case r.braceL:
218
+ g.push(this.jsx_parseExpressionContainer());
219
+ break;
220
+ default:
221
+ this.unexpected();
222
+ }
223
+ pe(le.name) !== pe(N.name) && this.raise(le.start, "Expected corresponding JSX closing tag for <" + pe(N.name) + ">");
224
+ }
225
+ let Ne = N.name ? "Element" : "Fragment";
226
+ return x["opening" + Ne] = N, x["closing" + Ne] = le, x.children = g, this.type === r.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(x, "JSX" + Ne);
227
+ }
228
+ jsx_parseText() {
229
+ let h = this.parseLiteral(this.value);
230
+ return h.type = "JSXText", h;
231
+ }
232
+ jsx_parseElement() {
233
+ let h = this.start, m = this.startLoc;
234
+ return this.next(), this.jsx_parseElementAt(h, m);
235
+ }
236
+ parseExprAtom(h) {
237
+ return this.type === n.jsxText ? this.jsx_parseText() : this.type === n.jsxTagStart ? this.jsx_parseElement() : super.parseExprAtom(h);
238
+ }
239
+ readToken(h) {
240
+ let m = this.curContext();
241
+ if (m === c) return this.jsx_readToken();
242
+ if (m === p || m === u) {
243
+ if (v(h)) return this.jsx_readWord();
244
+ if (h == 62) return ++this.pos, this.finishToken(n.jsxTagEnd);
245
+ if ((h === 34 || h === 39) && m == p) return this.jsx_readString(h);
246
+ }
247
+ return h === 60 && this.exprAllowed && this.input.charCodeAt(this.pos + 1) !== 33 ? (++this.pos, this.finishToken(n.jsxTagStart)) : super.readToken(h);
248
+ }
249
+ updateContext(h) {
250
+ if (this.type == r.braceL) {
251
+ var m = this.curContext();
252
+ m == p ? this.context.push(o.b_expr) : m == c ? this.context.push(o.b_tmpl) : super.updateContext(h), this.exprAllowed = true;
253
+ } else if (this.type === r.slash && h === n.jsxTagStart) this.context.length -= 2, this.context.push(u), this.exprAllowed = false;
254
+ else return super.updateContext(h);
255
+ }
256
+ };
257
+ }
258
+ });
259
+ var at = {};
260
+ Vi(at, {
261
+ parsers: () => cr
262
+ });
263
+ var Oi = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
264
+ var ft = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
265
+ var Bi = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
266
+ var dt = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
267
+ var Ve = {
268
+ 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",
269
+ 5: "class enum extends super const export import",
270
+ 6: "enum",
271
+ strict: "implements interface let package private protected public static yield",
272
+ strictBind: "eval arguments"
273
+ };
274
+ var Re = "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";
275
+ var Di = {
276
+ 5: Re,
277
+ "5module": Re + " export import",
278
+ 6: Re + " const class extends export import super"
279
+ };
280
+ var Fi = /^in(stanceof)?$/;
281
+ var Mi = new RegExp("[" + dt + "]");
282
+ var ji = new RegExp("[" + dt + Bi + "]");
283
+ function Be(e, t) {
284
+ for (var i = 65536, s = 0; s < t.length; s += 2) {
285
+ if (i += t[s], i > e) return false;
286
+ if (i += t[s + 1], i >= e) return true;
287
+ }
288
+ return false;
289
+ }
290
+ function M(e, t) {
291
+ return e < 65 ? e === 36 : e < 91 ? true : e < 97 ? e === 95 : e < 123 ? true : e <= 65535 ? e >= 170 && Mi.test(String.fromCharCode(e)) : t === false ? false : Be(e, ft);
292
+ }
293
+ function K(e, t) {
294
+ 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 && ji.test(String.fromCharCode(e)) : t === false ? false : Be(e, ft) || Be(e, Oi);
295
+ }
296
+ var _ = function(t, i) {
297
+ 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;
298
+ };
299
+ function R(e, t) {
300
+ return new _(e, {
301
+ beforeExpr: true,
302
+ binop: t
303
+ });
304
+ }
305
+ var O = {
306
+ beforeExpr: true
307
+ };
308
+ var L = {
309
+ startsExpr: true
310
+ };
311
+ var je = {};
312
+ function S(e, t) {
313
+ return t === void 0 && (t = {}), t.keyword = e, je[e] = new _(e, t);
314
+ }
315
+ var a = {
316
+ num: new _("num", L),
317
+ regexp: new _("regexp", L),
318
+ string: new _("string", L),
319
+ name: new _("name", L),
320
+ privateId: new _("privateId", L),
321
+ eof: new _("eof"),
322
+ bracketL: new _("[", {
323
+ beforeExpr: true,
324
+ startsExpr: true
325
+ }),
326
+ bracketR: new _("]"),
327
+ braceL: new _("{", {
328
+ beforeExpr: true,
329
+ startsExpr: true
330
+ }),
331
+ braceR: new _("}"),
332
+ parenL: new _("(", {
333
+ beforeExpr: true,
334
+ startsExpr: true
335
+ }),
336
+ parenR: new _(")"),
337
+ comma: new _(",", O),
338
+ semi: new _(";", O),
339
+ colon: new _(":", O),
340
+ dot: new _("."),
341
+ question: new _("?", O),
342
+ questionDot: new _("?."),
343
+ arrow: new _("=>", O),
344
+ template: new _("template"),
345
+ invalidTemplate: new _("invalidTemplate"),
346
+ ellipsis: new _("...", O),
347
+ backQuote: new _("`", L),
348
+ dollarBraceL: new _("${", {
349
+ beforeExpr: true,
350
+ startsExpr: true
351
+ }),
352
+ eq: new _("=", {
353
+ beforeExpr: true,
354
+ isAssign: true
355
+ }),
356
+ assign: new _("_=", {
357
+ beforeExpr: true,
358
+ isAssign: true
359
+ }),
360
+ incDec: new _("++/--", {
361
+ prefix: true,
362
+ postfix: true,
363
+ startsExpr: true
364
+ }),
365
+ prefix: new _("!/~", {
366
+ beforeExpr: true,
367
+ prefix: true,
368
+ startsExpr: true
369
+ }),
370
+ logicalOR: R("||", 1),
371
+ logicalAND: R("&&", 2),
372
+ bitwiseOR: R("|", 3),
373
+ bitwiseXOR: R("^", 4),
374
+ bitwiseAND: R("&", 5),
375
+ equality: R("==/!=/===/!==", 6),
376
+ relational: R("</>/<=/>=", 7),
377
+ bitShift: R("<</>>/>>>", 8),
378
+ plusMin: new _("+/-", {
379
+ beforeExpr: true,
380
+ binop: 9,
381
+ prefix: true,
382
+ startsExpr: true
383
+ }),
384
+ modulo: R("%", 10),
385
+ star: R("*", 10),
386
+ slash: R("/", 10),
387
+ starstar: new _("**", {
388
+ beforeExpr: true
389
+ }),
390
+ coalesce: R("??", 1),
391
+ _break: S("break"),
392
+ _case: S("case", O),
393
+ _catch: S("catch"),
394
+ _continue: S("continue"),
395
+ _debugger: S("debugger"),
396
+ _default: S("default", O),
397
+ _do: S("do", {
398
+ isLoop: true,
399
+ beforeExpr: true
400
+ }),
401
+ _else: S("else", O),
402
+ _finally: S("finally"),
403
+ _for: S("for", {
404
+ isLoop: true
405
+ }),
406
+ _function: S("function", L),
407
+ _if: S("if"),
408
+ _return: S("return", O),
409
+ _switch: S("switch"),
410
+ _throw: S("throw", O),
411
+ _try: S("try"),
412
+ _var: S("var"),
413
+ _const: S("const"),
414
+ _while: S("while", {
415
+ isLoop: true
416
+ }),
417
+ _with: S("with"),
418
+ _new: S("new", {
419
+ beforeExpr: true,
420
+ startsExpr: true
421
+ }),
422
+ _this: S("this", L),
423
+ _super: S("super", L),
424
+ _class: S("class", L),
425
+ _extends: S("extends", O),
426
+ _export: S("export"),
427
+ _import: S("import", L),
428
+ _null: S("null", L),
429
+ _true: S("true", L),
430
+ _false: S("false", L),
431
+ _in: S("in", {
432
+ beforeExpr: true,
433
+ binop: 7
434
+ }),
435
+ _instanceof: S("instanceof", {
436
+ beforeExpr: true,
437
+ binop: 7
438
+ }),
439
+ _typeof: S("typeof", {
440
+ beforeExpr: true,
441
+ prefix: true,
442
+ startsExpr: true
443
+ }),
444
+ _void: S("void", {
445
+ beforeExpr: true,
446
+ prefix: true,
447
+ startsExpr: true
448
+ }),
449
+ _delete: S("delete", {
450
+ beforeExpr: true,
451
+ prefix: true,
452
+ startsExpr: true
453
+ })
454
+ };
455
+ var V = /\r\n?|\n|\u2028|\u2029/;
456
+ var Ui = new RegExp(V.source, "g");
457
+ function Y(e) {
458
+ return e === 10 || e === 13 || e === 8232 || e === 8233;
459
+ }
460
+ function mt(e, t, i) {
461
+ i === void 0 && (i = e.length);
462
+ for (var s = t; s < i; s++) {
463
+ var r = e.charCodeAt(s);
464
+ if (Y(r)) return s < i - 1 && r === 13 && e.charCodeAt(s + 1) === 10 ? s + 2 : s + 1;
465
+ }
466
+ return -1;
467
+ }
468
+ var xt = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
469
+ var A = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
470
+ var yt = Object.prototype;
471
+ var Gi = yt.hasOwnProperty;
472
+ var qi = yt.toString;
473
+ var $ = Object.hasOwn || function(e, t) {
474
+ return Gi.call(e, t);
475
+ };
476
+ var ut = Array.isArray || function(e) {
477
+ return qi.call(e) === "[object Array]";
478
+ };
479
+ var pt = /* @__PURE__ */ Object.create(null);
480
+ function H(e) {
481
+ return pt[e] || (pt[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
482
+ }
483
+ function G(e) {
484
+ return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
485
+ }
486
+ var Ji = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
487
+ var ae = function(t, i) {
488
+ this.line = t, this.column = i;
489
+ };
490
+ ae.prototype.offset = function(t) {
491
+ return new ae(this.line, this.column + t);
492
+ };
493
+ var ge = function(t, i, s) {
494
+ this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile);
495
+ };
496
+ function gt(e, t) {
497
+ for (var i = 1, s = 0; ; ) {
498
+ var r = mt(e, s, t);
499
+ if (r < 0) return new ae(i, t - s);
500
+ ++i, s = r;
501
+ }
502
+ }
503
+ var De = {
504
+ ecmaVersion: null,
505
+ sourceType: "script",
506
+ onInsertedSemicolon: null,
507
+ onTrailingComma: null,
508
+ allowReserved: null,
509
+ allowReturnOutsideFunction: false,
510
+ allowImportExportEverywhere: false,
511
+ allowAwaitOutsideFunction: null,
512
+ allowSuperOutsideMethod: null,
513
+ allowHashBang: false,
514
+ checkPrivateFields: true,
515
+ locations: false,
516
+ onToken: null,
517
+ onComment: null,
518
+ ranges: false,
519
+ program: null,
520
+ sourceFile: null,
521
+ directSourceFile: null,
522
+ preserveParens: false
523
+ };
524
+ var ht = false;
525
+ function Hi(e) {
526
+ var t = {};
527
+ for (var i in De) t[i] = e && $(e, i) ? e[i] : De[i];
528
+ if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!ht && typeof console == "object" && console.warn && (ht = true, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
529
+ 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), ut(t.onToken)) {
530
+ var s = t.onToken;
531
+ t.onToken = function(r) {
532
+ return s.push(r);
533
+ };
534
+ }
535
+ return ut(t.onComment) && (t.onComment = Ki(t, t.onComment)), t;
536
+ }
537
+ function Ki(e, t) {
538
+ return function(i, s, r, n, o, p) {
539
+ var u = {
540
+ type: i ? "Block" : "Line",
541
+ value: s,
542
+ start: r,
543
+ end: n
544
+ };
545
+ e.locations && (u.loc = new ge(this, o, p)), e.ranges && (u.range = [r, n]), t.push(u);
546
+ };
547
+ }
548
+ var ne = 1;
549
+ var Z = 2;
550
+ var Ue = 4;
551
+ var vt = 8;
552
+ var Ge = 16;
553
+ var bt = 32;
554
+ var ve = 64;
555
+ var St = 128;
556
+ var X = 256;
557
+ var oe = 512;
558
+ var be = ne | Z | X;
559
+ function qe(e, t) {
560
+ return Z | (e ? Ue : 0) | (t ? vt : 0);
561
+ }
562
+ var de = 0;
563
+ var Je = 1;
564
+ var J = 2;
565
+ var _t = 3;
566
+ var Tt = 4;
567
+ var Ct = 5;
568
+ var E = function(t, i, s) {
569
+ this.options = t = Hi(t), this.sourceFile = t.sourceFile, this.keywords = H(Di[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
570
+ var r = "";
571
+ t.allowReserved !== true && (r = Ve[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = H(r);
572
+ var n = (r ? r + " " : "") + Ve.strict;
573
+ this.reservedWordsStrict = H(n), this.reservedWordsStrictBind = H(n + " " + Ve.strictBind), this.input = String(i), this.containsEsc = false, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
574
+ `, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(V).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 || 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(ne), this.regexpState = null, this.privateNameStack = [];
575
+ };
576
+ var j = {
577
+ inFunction: {
578
+ configurable: true
579
+ },
580
+ inGenerator: {
581
+ configurable: true
582
+ },
583
+ inAsync: {
584
+ configurable: true
585
+ },
586
+ canAwait: {
587
+ configurable: true
588
+ },
589
+ allowSuper: {
590
+ configurable: true
591
+ },
592
+ allowDirectSuper: {
593
+ configurable: true
594
+ },
595
+ treatFunctionsAsVar: {
596
+ configurable: true
597
+ },
598
+ allowNewDotTarget: {
599
+ configurable: true
600
+ },
601
+ inClassStaticBlock: {
602
+ configurable: true
603
+ }
604
+ };
605
+ E.prototype.parse = function() {
606
+ var t = this.options.program || this.startNode();
607
+ return this.nextToken(), this.parseTopLevel(t);
608
+ };
609
+ j.inFunction.get = function() {
610
+ return (this.currentVarScope().flags & Z) > 0;
611
+ };
612
+ j.inGenerator.get = function() {
613
+ return (this.currentVarScope().flags & vt) > 0;
614
+ };
615
+ j.inAsync.get = function() {
616
+ return (this.currentVarScope().flags & Ue) > 0;
617
+ };
618
+ j.canAwait.get = function() {
619
+ for (var e = this.scopeStack.length - 1; e >= 0; e--) {
620
+ var t = this.scopeStack[e], i = t.flags;
621
+ if (i & (X | oe)) return false;
622
+ if (i & Z) return (i & Ue) > 0;
623
+ }
624
+ return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
625
+ };
626
+ j.allowSuper.get = function() {
627
+ var e = this.currentThisScope(), t = e.flags;
628
+ return (t & ve) > 0 || this.options.allowSuperOutsideMethod;
629
+ };
630
+ j.allowDirectSuper.get = function() {
631
+ return (this.currentThisScope().flags & St) > 0;
632
+ };
633
+ j.treatFunctionsAsVar.get = function() {
634
+ return this.treatFunctionsAsVarInScope(this.currentScope());
635
+ };
636
+ j.allowNewDotTarget.get = function() {
637
+ for (var e = this.scopeStack.length - 1; e >= 0; e--) {
638
+ var t = this.scopeStack[e], i = t.flags;
639
+ if (i & (X | oe) || i & Z && !(i & Ge)) return true;
640
+ }
641
+ return false;
642
+ };
643
+ j.inClassStaticBlock.get = function() {
644
+ return (this.currentVarScope().flags & X) > 0;
645
+ };
646
+ E.extend = function() {
647
+ for (var t = [], i = arguments.length; i--; ) t[i] = arguments[i];
648
+ for (var s = this, r = 0; r < t.length; r++) s = t[r](s);
649
+ return s;
650
+ };
651
+ E.parse = function(t, i) {
652
+ return new this(i, t).parse();
653
+ };
654
+ E.parseExpressionAt = function(t, i, s) {
655
+ var r = new this(s, t, i);
656
+ return r.nextToken(), r.parseExpression();
657
+ };
658
+ E.tokenizer = function(t, i) {
659
+ return new this(i, t);
660
+ };
661
+ Object.defineProperties(E.prototype, j);
662
+ var P = E.prototype;
663
+ var Wi = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
664
+ P.strictDirective = function(e) {
665
+ if (this.options.ecmaVersion < 5) return false;
666
+ for (; ; ) {
667
+ A.lastIndex = e, e += A.exec(this.input)[0].length;
668
+ var t = Wi.exec(this.input.slice(e));
669
+ if (!t) return false;
670
+ if ((t[1] || t[2]) === "use strict") {
671
+ A.lastIndex = e + t[0].length;
672
+ var i = A.exec(this.input), s = i.index + i[0].length, r = this.input.charAt(s);
673
+ return r === ";" || r === "}" || V.test(i[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r) || r === "!" && this.input.charAt(s + 1) === "=");
674
+ }
675
+ e += t[0].length, A.lastIndex = e, e += A.exec(this.input)[0].length, this.input[e] === ";" && e++;
676
+ }
677
+ };
678
+ P.eat = function(e) {
679
+ return this.type === e ? (this.next(), true) : false;
680
+ };
681
+ P.isContextual = function(e) {
682
+ return this.type === a.name && this.value === e && !this.containsEsc;
683
+ };
684
+ P.eatContextual = function(e) {
685
+ return this.isContextual(e) ? (this.next(), true) : false;
686
+ };
687
+ P.expectContextual = function(e) {
688
+ this.eatContextual(e) || this.unexpected();
689
+ };
690
+ P.canInsertSemicolon = function() {
691
+ return this.type === a.eof || this.type === a.braceR || V.test(this.input.slice(this.lastTokEnd, this.start));
692
+ };
693
+ P.insertSemicolon = function() {
694
+ if (this.canInsertSemicolon()) return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), true;
695
+ };
696
+ P.semicolon = function() {
697
+ !this.eat(a.semi) && !this.insertSemicolon() && this.unexpected();
698
+ };
699
+ P.afterTrailingComma = function(e, t) {
700
+ if (this.type === e) return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), t || this.next(), true;
701
+ };
702
+ P.expect = function(e) {
703
+ this.eat(e) || this.unexpected();
704
+ };
705
+ P.unexpected = function(e) {
706
+ this.raise(e ?? this.start, "Unexpected token");
707
+ };
708
+ var Se = function() {
709
+ this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
710
+ };
711
+ P.checkPatternErrors = function(e, t) {
712
+ if (e) {
713
+ e.trailingComma > -1 && this.raiseRecoverable(e.trailingComma, "Comma is not permitted after the rest element");
714
+ var i = t ? e.parenthesizedAssign : e.parenthesizedBind;
715
+ i > -1 && this.raiseRecoverable(i, t ? "Assigning to rvalue" : "Parenthesized pattern");
716
+ }
717
+ };
718
+ P.checkExpressionErrors = function(e, t) {
719
+ if (!e) return false;
720
+ var i = e.shorthandAssign, s = e.doubleProto;
721
+ if (!t) return i >= 0 || s >= 0;
722
+ i >= 0 && this.raise(i, "Shorthand property assignments are valid only in destructuring patterns"), s >= 0 && this.raiseRecoverable(s, "Redefinition of __proto__ property");
723
+ };
724
+ P.checkYieldAwaitInDefaultParams = function() {
725
+ 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");
726
+ };
727
+ P.isSimpleAssignTarget = function(e) {
728
+ return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
729
+ };
730
+ var d = E.prototype;
731
+ d.parseTopLevel = function(e) {
732
+ var t = /* @__PURE__ */ Object.create(null);
733
+ for (e.body || (e.body = []); this.type !== a.eof; ) {
734
+ var i = this.parseStatement(null, true, t);
735
+ e.body.push(i);
736
+ }
737
+ if (this.inModule) for (var s = 0, r = Object.keys(this.undefinedExports); s < r.length; s += 1) {
738
+ var n = r[s];
739
+ this.raiseRecoverable(this.undefinedExports[n].start, "Export '" + n + "' is not defined");
740
+ }
741
+ return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
742
+ };
743
+ var He = {
744
+ kind: "loop"
745
+ };
746
+ var Xi = {
747
+ kind: "switch"
748
+ };
749
+ d.isLet = function(e) {
750
+ if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return false;
751
+ A.lastIndex = this.pos;
752
+ var t = A.exec(this.input), i = this.pos + t[0].length, s = this.input.charCodeAt(i);
753
+ if (s === 91 || s === 92) return true;
754
+ if (e) return false;
755
+ if (s === 123 || s > 55295 && s < 56320) return true;
756
+ if (M(s, true)) {
757
+ for (var r = i + 1; K(s = this.input.charCodeAt(r), true); ) ++r;
758
+ if (s === 92 || s > 55295 && s < 56320) return true;
759
+ var n = this.input.slice(i, r);
760
+ if (!Fi.test(n)) return true;
761
+ }
762
+ return false;
763
+ };
764
+ d.isAsyncFunction = function() {
765
+ if (this.options.ecmaVersion < 8 || !this.isContextual("async")) return false;
766
+ A.lastIndex = this.pos;
767
+ var e = A.exec(this.input), t = this.pos + e[0].length, i;
768
+ return !V.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(K(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
769
+ };
770
+ d.isUsingKeyword = function(e, t) {
771
+ if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using")) return false;
772
+ A.lastIndex = this.pos;
773
+ var i = A.exec(this.input), s = this.pos + i[0].length;
774
+ if (V.test(this.input.slice(this.pos, s))) return false;
775
+ if (e) {
776
+ var r = s + 5, n;
777
+ if (this.input.slice(s, r) !== "using" || r === this.input.length || K(n = this.input.charCodeAt(r)) || n > 55295 && n < 56320) return false;
778
+ A.lastIndex = r;
779
+ var o = A.exec(this.input);
780
+ if (o && V.test(this.input.slice(r, r + o[0].length))) return false;
781
+ }
782
+ if (t) {
783
+ var p = s + 2, u;
784
+ if (this.input.slice(s, p) === "of" && (p === this.input.length || !K(u = this.input.charCodeAt(p)) && !(u > 55295 && u < 56320))) return false;
785
+ }
786
+ var c = this.input.charCodeAt(s);
787
+ return M(c, true) || c === 92;
788
+ };
789
+ d.isAwaitUsing = function(e) {
790
+ return this.isUsingKeyword(true, e);
791
+ };
792
+ d.isUsing = function(e) {
793
+ return this.isUsingKeyword(false, e);
794
+ };
795
+ d.parseStatement = function(e, t, i) {
796
+ var s = this.type, r = this.startNode(), n;
797
+ switch (this.isLet(e) && (s = a._var, n = "let"), s) {
798
+ case a._break:
799
+ case a._continue:
800
+ return this.parseBreakContinueStatement(r, s.keyword);
801
+ case a._debugger:
802
+ return this.parseDebuggerStatement(r);
803
+ case a._do:
804
+ return this.parseDoStatement(r);
805
+ case a._for:
806
+ return this.parseForStatement(r);
807
+ case a._function:
808
+ return e && (this.strict || e !== "if" && e !== "label") && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(r, false, !e);
809
+ case a._class:
810
+ return e && this.unexpected(), this.parseClass(r, true);
811
+ case a._if:
812
+ return this.parseIfStatement(r);
813
+ case a._return:
814
+ return this.parseReturnStatement(r);
815
+ case a._switch:
816
+ return this.parseSwitchStatement(r);
817
+ case a._throw:
818
+ return this.parseThrowStatement(r);
819
+ case a._try:
820
+ return this.parseTryStatement(r);
821
+ case a._const:
822
+ case a._var:
823
+ return n = n || this.value, e && n !== "var" && this.unexpected(), this.parseVarStatement(r, n);
824
+ case a._while:
825
+ return this.parseWhileStatement(r);
826
+ case a._with:
827
+ return this.parseWithStatement(r);
828
+ case a.braceL:
829
+ return this.parseBlock(true, r);
830
+ case a.semi:
831
+ return this.parseEmptyStatement(r);
832
+ case a._export:
833
+ case a._import:
834
+ if (this.options.ecmaVersion > 10 && s === a._import) {
835
+ A.lastIndex = this.pos;
836
+ var o = A.exec(this.input), p = this.pos + o[0].length, u = this.input.charCodeAt(p);
837
+ if (u === 40 || u === 46) return this.parseExpressionStatement(r, this.parseExpression());
838
+ }
839
+ 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'")), s === a._import ? this.parseImport(r) : this.parseExport(r, i);
840
+ default:
841
+ if (this.isAsyncFunction()) return e && this.unexpected(), this.next(), this.parseFunctionStatement(r, true, !e);
842
+ var c = this.isAwaitUsing(false) ? "await using" : this.isUsing(false) ? "using" : null;
843
+ if (c) return t && this.options.sourceType === "script" && this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`"), c === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(r, false, c), this.semicolon(), this.finishNode(r, "VariableDeclaration");
844
+ var f = this.value, v = this.parseExpression();
845
+ return s === a.name && v.type === "Identifier" && this.eat(a.colon) ? this.parseLabeledStatement(r, f, v, e) : this.parseExpressionStatement(r, v);
846
+ }
847
+ };
848
+ d.parseBreakContinueStatement = function(e, t) {
849
+ var i = t === "break";
850
+ this.next(), this.eat(a.semi) || this.insertSemicolon() ? e.label = null : this.type !== a.name ? this.unexpected() : (e.label = this.parseIdent(), this.semicolon());
851
+ for (var s = 0; s < this.labels.length; ++s) {
852
+ var r = this.labels[s];
853
+ if ((e.label == null || r.name === e.label.name) && (r.kind != null && (i || r.kind === "loop") || e.label && i)) break;
854
+ }
855
+ return s === this.labels.length && this.raise(e.start, "Unsyntactic " + t), this.finishNode(e, i ? "BreakStatement" : "ContinueStatement");
856
+ };
857
+ d.parseDebuggerStatement = function(e) {
858
+ return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
859
+ };
860
+ d.parseDoStatement = function(e) {
861
+ return this.next(), this.labels.push(He), 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");
862
+ };
863
+ d.parseForStatement = function(e) {
864
+ this.next();
865
+ var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
866
+ if (this.labels.push(He), this.enterScope(0), this.expect(a.parenL), this.type === a.semi) return t > -1 && this.unexpected(t), this.parseFor(e, null);
867
+ var i = this.isLet();
868
+ if (this.type === a._var || this.type === a._const || i) {
869
+ var s = this.startNode(), r = i ? "let" : this.value;
870
+ return this.next(), this.parseVar(s, true, r), this.finishNode(s, "VariableDeclaration"), this.parseForAfterInit(e, s, t);
871
+ }
872
+ var n = this.isContextual("let"), o = false, p = this.isUsing(true) ? "using" : this.isAwaitUsing(true) ? "await using" : null;
873
+ if (p) {
874
+ var u = this.startNode();
875
+ return this.next(), p === "await using" && this.next(), this.parseVar(u, true, p), this.finishNode(u, "VariableDeclaration"), this.parseForAfterInit(e, u, t);
876
+ }
877
+ var c = this.containsEsc, f = new Se(), v = this.start, T = t > -1 ? this.parseExprSubscripts(f, "await") : this.parseExpression(true, f);
878
+ 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 && (T.start === v && !c && T.type === "Identifier" && T.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = false)), n && o && this.raise(T.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(T, false, f), this.checkLValPattern(T), this.parseForIn(e, T)) : (this.checkExpressionErrors(f, true), t > -1 && this.unexpected(t), this.parseFor(e, T));
879
+ };
880
+ d.parseForAfterInit = function(e, t, i) {
881
+ return (this.type === a._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.options.ecmaVersion >= 9 && (this.type === a._in ? i > -1 && this.unexpected(i) : e.await = i > -1), this.parseForIn(e, t)) : (i > -1 && this.unexpected(i), this.parseFor(e, t));
882
+ };
883
+ d.parseFunctionStatement = function(e, t, i) {
884
+ return this.next(), this.parseFunction(e, re | (i ? 0 : Fe), false, t);
885
+ };
886
+ d.parseIfStatement = function(e) {
887
+ 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");
888
+ };
889
+ d.parseReturnStatement = function(e) {
890
+ return !this.inFunction && !this.options.allowReturnOutsideFunction && 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");
891
+ };
892
+ d.parseSwitchStatement = function(e) {
893
+ this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(Xi), this.enterScope(0);
894
+ for (var t, i = false; this.type !== a.braceR; ) if (this.type === a._case || this.type === a._default) {
895
+ var s = this.type === a._case;
896
+ t && this.finishNode(t, "SwitchCase"), e.cases.push(t = this.startNode()), t.consequent = [], this.next(), s ? t.test = this.parseExpression() : (i && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), i = true, t.test = null), this.expect(a.colon);
897
+ } else t || this.unexpected(), t.consequent.push(this.parseStatement(null));
898
+ return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
899
+ };
900
+ d.parseThrowStatement = function(e) {
901
+ return this.next(), V.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");
902
+ };
903
+ var zi = [];
904
+ d.parseCatchClauseParam = function() {
905
+ var e = this.parseBindingAtom(), t = e.type === "Identifier";
906
+ return this.enterScope(t ? bt : 0), this.checkLValPattern(e, t ? Tt : J), this.expect(a.parenR), e;
907
+ };
908
+ d.parseTryStatement = function(e) {
909
+ if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === a._catch) {
910
+ var t = this.startNode();
911
+ 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");
912
+ }
913
+ 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");
914
+ };
915
+ d.parseVarStatement = function(e, t, i) {
916
+ return this.next(), this.parseVar(e, false, t, i), this.semicolon(), this.finishNode(e, "VariableDeclaration");
917
+ };
918
+ d.parseWhileStatement = function(e) {
919
+ return this.next(), e.test = this.parseParenExpression(), this.labels.push(He), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
920
+ };
921
+ d.parseWithStatement = function(e) {
922
+ 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");
923
+ };
924
+ d.parseEmptyStatement = function(e) {
925
+ return this.next(), this.finishNode(e, "EmptyStatement");
926
+ };
927
+ d.parseLabeledStatement = function(e, t, i, s) {
928
+ for (var r = 0, n = this.labels; r < n.length; r += 1) {
929
+ var o = n[r];
930
+ o.name === t && this.raise(i.start, "Label '" + t + "' is already declared");
931
+ }
932
+ for (var p = this.type.isLoop ? "loop" : this.type === a._switch ? "switch" : null, u = this.labels.length - 1; u >= 0; u--) {
933
+ var c = this.labels[u];
934
+ if (c.statementStart === e.start) c.statementStart = this.start, c.kind = p;
935
+ else break;
936
+ }
937
+ return this.labels.push({
938
+ name: t,
939
+ kind: p,
940
+ statementStart: this.start
941
+ }), e.body = this.parseStatement(s ? s.indexOf("label") === -1 ? s + "label" : s : "label"), this.labels.pop(), e.label = i, this.finishNode(e, "LabeledStatement");
942
+ };
943
+ d.parseExpressionStatement = function(e, t) {
944
+ return e.expression = t, this.semicolon(), this.finishNode(e, "ExpressionStatement");
945
+ };
946
+ d.parseBlock = function(e, t, i) {
947
+ 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; ) {
948
+ var s = this.parseStatement(null);
949
+ t.body.push(s);
950
+ }
951
+ return i && (this.strict = false), this.next(), e && this.exitScope(), this.finishNode(t, "BlockStatement");
952
+ };
953
+ d.parseFor = function(e, t) {
954
+ 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");
955
+ };
956
+ d.parseForIn = function(e, t) {
957
+ var i = this.type === a._in;
958
+ 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");
959
+ };
960
+ d.parseVar = function(e, t, i, s) {
961
+ for (e.declarations = [], e.kind = i; ; ) {
962
+ var r = this.startNode();
963
+ if (this.parseVarId(r, i), this.eat(a.eq) ? r.init = this.parseMaybeAssign(t) : !s && i === "const" && !(this.type === a._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !s && (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") : !s && r.id.type !== "Identifier" && !(t && (this.type === a._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : r.init = null, e.declarations.push(this.finishNode(r, "VariableDeclarator")), !this.eat(a.comma)) break;
964
+ }
965
+ return e;
966
+ };
967
+ d.parseVarId = function(e, t) {
968
+ e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? Je : J, false);
969
+ };
970
+ var re = 1;
971
+ var Fe = 2;
972
+ var Et = 4;
973
+ d.parseFunction = function(e, t, i, s, r) {
974
+ this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === a.star && t & Fe && this.unexpected(), e.generator = this.eat(a.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & re && (e.id = t & Et && this.type !== a.name ? null : this.parseIdent(), e.id && !(t & Fe) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? Je : J : _t));
975
+ var n = this.yieldPos, o = this.awaitPos, p = this.awaitIdentPos;
976
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(qe(e.async, e.generator)), t & re || (e.id = this.type === a.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, false, r), this.yieldPos = n, this.awaitPos = o, this.awaitIdentPos = p, this.finishNode(e, t & re ? "FunctionDeclaration" : "FunctionExpression");
977
+ };
978
+ d.parseFunctionParams = function(e) {
979
+ this.expect(a.parenL), e.params = this.parseBindingList(a.parenR, false, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
980
+ };
981
+ d.parseClass = function(e, t) {
982
+ this.next();
983
+ var i = this.strict;
984
+ this.strict = true, this.parseClassId(e, t), this.parseClassSuper(e);
985
+ var s = this.enterClassBody(), r = this.startNode(), n = false;
986
+ for (r.body = [], this.expect(a.braceL); this.type !== a.braceR; ) {
987
+ var o = this.parseClassElement(e.superClass !== null);
988
+ o && (r.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" && Qi(s, o) && this.raiseRecoverable(o.key.start, "Identifier '#" + o.key.name + "' has already been declared"));
989
+ }
990
+ return this.strict = i, this.next(), e.body = this.finishNode(r, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
991
+ };
992
+ d.parseClassElement = function(e) {
993
+ if (this.eat(a.semi)) return null;
994
+ var t = this.options.ecmaVersion, i = this.startNode(), s = "", r = false, n = false, o = "method", p = false;
995
+ if (this.eatContextual("static")) {
996
+ if (t >= 13 && this.eat(a.braceL)) return this.parseClassStaticBlock(i), i;
997
+ this.isClassElementNameStart() || this.type === a.star ? p = true : s = "static";
998
+ }
999
+ if (i.static = p, !s && t >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === a.star) && !this.canInsertSemicolon() ? n = true : s = "async"), !s && (t >= 9 || !n) && this.eat(a.star) && (r = true), !s && !n && !r) {
1000
+ var u = this.value;
1001
+ (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? o = u : s = u);
1002
+ }
1003
+ if (s ? (i.computed = false, i.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), i.key.name = s, this.finishNode(i.key, "Identifier")) : this.parseClassElementName(i), t < 13 || this.type === a.parenL || o !== "method" || r || n) {
1004
+ var c = !i.static && me(i, "constructor"), f = c && e;
1005
+ c && o !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = c ? "constructor" : o, this.parseClassMethod(i, r, n, f);
1006
+ } else this.parseClassField(i);
1007
+ return i;
1008
+ };
1009
+ d.isClassElementNameStart = function() {
1010
+ return this.type === a.name || this.type === a.privateId || this.type === a.num || this.type === a.string || this.type === a.bracketL || this.type.keyword;
1011
+ };
1012
+ d.parseClassElementName = function(e) {
1013
+ 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);
1014
+ };
1015
+ d.parseClassMethod = function(e, t, i, s) {
1016
+ var r = e.key;
1017
+ e.kind === "constructor" ? (t && this.raise(r.start, "Constructor can't be a generator"), i && this.raise(r.start, "Constructor can't be an async method")) : e.static && me(e, "prototype") && this.raise(r.start, "Classes may not have a static property named prototype");
1018
+ var n = e.value = this.parseMethod(t, i, s);
1019
+ 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");
1020
+ };
1021
+ d.parseClassField = function(e) {
1022
+ return me(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && me(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(a.eq) ? (this.enterScope(oe | ve), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
1023
+ };
1024
+ d.parseClassStaticBlock = function(e) {
1025
+ e.body = [];
1026
+ var t = this.labels;
1027
+ for (this.labels = [], this.enterScope(X | ve); this.type !== a.braceR; ) {
1028
+ var i = this.parseStatement(null);
1029
+ e.body.push(i);
1030
+ }
1031
+ return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
1032
+ };
1033
+ d.parseClassId = function(e, t) {
1034
+ this.type === a.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, J, false)) : (t === true && this.unexpected(), e.id = null);
1035
+ };
1036
+ d.parseClassSuper = function(e) {
1037
+ e.superClass = this.eat(a._extends) ? this.parseExprSubscripts(null, false) : null;
1038
+ };
1039
+ d.enterClassBody = function() {
1040
+ var e = {
1041
+ declared: /* @__PURE__ */ Object.create(null),
1042
+ used: []
1043
+ };
1044
+ return this.privateNameStack.push(e), e.declared;
1045
+ };
1046
+ d.exitClassBody = function() {
1047
+ var e = this.privateNameStack.pop(), t = e.declared, i = e.used;
1048
+ if (this.options.checkPrivateFields) for (var s = this.privateNameStack.length, r = s === 0 ? null : this.privateNameStack[s - 1], n = 0; n < i.length; ++n) {
1049
+ var o = i[n];
1050
+ $(t, o.name) || (r ? r.used.push(o) : this.raiseRecoverable(o.start, "Private field '#" + o.name + "' must be declared in an enclosing class"));
1051
+ }
1052
+ };
1053
+ function Qi(e, t) {
1054
+ var i = t.key.name, s = e[i], r = "true";
1055
+ return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (r = (t.static ? "s" : "i") + t.kind), s === "iget" && r === "iset" || s === "iset" && r === "iget" || s === "sget" && r === "sset" || s === "sset" && r === "sget" ? (e[i] = "true", false) : s ? true : (e[i] = r, false);
1056
+ }
1057
+ function me(e, t) {
1058
+ var i = e.computed, s = e.key;
1059
+ return !i && (s.type === "Identifier" && s.name === t || s.type === "Literal" && s.value === t);
1060
+ }
1061
+ d.parseExportAllDeclaration = function(e, t) {
1062
+ 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");
1063
+ };
1064
+ d.parseExport = function(e, t) {
1065
+ if (this.next(), this.eat(a.star)) return this.parseExportAllDeclaration(e, t);
1066
+ if (this.eat(a._default)) return this.checkExport(t, "default", this.lastTokStart), e.declaration = this.parseExportDefaultDeclaration(), this.finishNode(e, "ExportDefaultDeclaration");
1067
+ 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 = []);
1068
+ else {
1069
+ 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());
1070
+ else {
1071
+ for (var i = 0, s = e.specifiers; i < s.length; i += 1) {
1072
+ var r = s[i];
1073
+ this.checkUnreserved(r.local), this.checkLocalExport(r.local), r.local.type === "Literal" && this.raise(r.local.start, "A string literal cannot be used as an exported binding without `from`.");
1074
+ }
1075
+ e.source = null, this.options.ecmaVersion >= 16 && (e.attributes = []);
1076
+ }
1077
+ this.semicolon();
1078
+ }
1079
+ return this.finishNode(e, "ExportNamedDeclaration");
1080
+ };
1081
+ d.parseExportDeclaration = function(e) {
1082
+ return this.parseStatement(null);
1083
+ };
1084
+ d.parseExportDefaultDeclaration = function() {
1085
+ var e;
1086
+ if (this.type === a._function || (e = this.isAsyncFunction())) {
1087
+ var t = this.startNode();
1088
+ return this.next(), e && this.next(), this.parseFunction(t, re | Et, false, e);
1089
+ } else if (this.type === a._class) {
1090
+ var i = this.startNode();
1091
+ return this.parseClass(i, "nullableID");
1092
+ } else {
1093
+ var s = this.parseMaybeAssign();
1094
+ return this.semicolon(), s;
1095
+ }
1096
+ };
1097
+ d.checkExport = function(e, t, i) {
1098
+ e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), $(e, t) && this.raiseRecoverable(i, "Duplicate export '" + t + "'"), e[t] = true);
1099
+ };
1100
+ d.checkPatternExport = function(e, t) {
1101
+ var i = t.type;
1102
+ if (i === "Identifier") this.checkExport(e, t, t.start);
1103
+ else if (i === "ObjectPattern") for (var s = 0, r = t.properties; s < r.length; s += 1) {
1104
+ var n = r[s];
1105
+ this.checkPatternExport(e, n);
1106
+ }
1107
+ else if (i === "ArrayPattern") for (var o = 0, p = t.elements; o < p.length; o += 1) {
1108
+ var u = p[o];
1109
+ u && this.checkPatternExport(e, u);
1110
+ }
1111
+ else i === "Property" ? this.checkPatternExport(e, t.value) : i === "AssignmentPattern" ? this.checkPatternExport(e, t.left) : i === "RestElement" && this.checkPatternExport(e, t.argument);
1112
+ };
1113
+ d.checkVariableExport = function(e, t) {
1114
+ if (e) for (var i = 0, s = t; i < s.length; i += 1) {
1115
+ var r = s[i];
1116
+ this.checkPatternExport(e, r.id);
1117
+ }
1118
+ };
1119
+ d.shouldParseExportStatement = function() {
1120
+ return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
1121
+ };
1122
+ d.parseExportSpecifier = function(e) {
1123
+ var t = this.startNode();
1124
+ 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");
1125
+ };
1126
+ d.parseExportSpecifiers = function(e) {
1127
+ var t = [], i = true;
1128
+ for (this.expect(a.braceL); !this.eat(a.braceR); ) {
1129
+ if (i) i = false;
1130
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
1131
+ t.push(this.parseExportSpecifier(e));
1132
+ }
1133
+ return t;
1134
+ };
1135
+ d.parseImport = function(e) {
1136
+ return this.next(), this.type === a.string ? (e.specifiers = zi, 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");
1137
+ };
1138
+ d.parseImportSpecifier = function() {
1139
+ var e = this.startNode();
1140
+ return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, J), this.finishNode(e, "ImportSpecifier");
1141
+ };
1142
+ d.parseImportDefaultSpecifier = function() {
1143
+ var e = this.startNode();
1144
+ return e.local = this.parseIdent(), this.checkLValSimple(e.local, J), this.finishNode(e, "ImportDefaultSpecifier");
1145
+ };
1146
+ d.parseImportNamespaceSpecifier = function() {
1147
+ var e = this.startNode();
1148
+ return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, J), this.finishNode(e, "ImportNamespaceSpecifier");
1149
+ };
1150
+ d.parseImportSpecifiers = function() {
1151
+ var e = [], t = true;
1152
+ if (this.type === a.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(a.comma))) return e;
1153
+ if (this.type === a.star) return e.push(this.parseImportNamespaceSpecifier()), e;
1154
+ for (this.expect(a.braceL); !this.eat(a.braceR); ) {
1155
+ if (t) t = false;
1156
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
1157
+ e.push(this.parseImportSpecifier());
1158
+ }
1159
+ return e;
1160
+ };
1161
+ d.parseWithClause = function() {
1162
+ var e = [];
1163
+ if (!this.eat(a._with)) return e;
1164
+ this.expect(a.braceL);
1165
+ for (var t = {}, i = true; !this.eat(a.braceR); ) {
1166
+ if (i) i = false;
1167
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
1168
+ var s = this.parseImportAttribute(), r = s.key.type === "Identifier" ? s.key.name : s.key.value;
1169
+ $(t, r) && this.raiseRecoverable(s.key.start, "Duplicate attribute key '" + r + "'"), t[r] = true, e.push(s);
1170
+ }
1171
+ return e;
1172
+ };
1173
+ d.parseImportAttribute = function() {
1174
+ var e = this.startNode();
1175
+ 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");
1176
+ };
1177
+ d.parseModuleExportName = function() {
1178
+ if (this.options.ecmaVersion >= 13 && this.type === a.string) {
1179
+ var e = this.parseLiteral(this.value);
1180
+ return Ji.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
1181
+ }
1182
+ return this.parseIdent(true);
1183
+ };
1184
+ d.adaptDirectivePrologue = function(e) {
1185
+ for (var t = 0; t < e.length && this.isDirectiveCandidate(e[t]); ++t) e[t].directive = e[t].expression.raw.slice(1, -1);
1186
+ };
1187
+ d.isDirectiveCandidate = function(e) {
1188
+ 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] === "'");
1189
+ };
1190
+ var D = E.prototype;
1191
+ D.toAssignable = function(e, t, i) {
1192
+ if (this.options.ecmaVersion >= 6 && e) switch (e.type) {
1193
+ case "Identifier":
1194
+ this.inAsync && e.name === "await" && this.raise(e.start, "Cannot use 'await' as identifier inside an async function");
1195
+ break;
1196
+ case "ObjectPattern":
1197
+ case "ArrayPattern":
1198
+ case "AssignmentPattern":
1199
+ case "RestElement":
1200
+ break;
1201
+ case "ObjectExpression":
1202
+ e.type = "ObjectPattern", i && this.checkPatternErrors(i, true);
1203
+ for (var s = 0, r = e.properties; s < r.length; s += 1) {
1204
+ var n = r[s];
1205
+ this.toAssignable(n, t), n.type === "RestElement" && (n.argument.type === "ArrayPattern" || n.argument.type === "ObjectPattern") && this.raise(n.argument.start, "Unexpected token");
1206
+ }
1207
+ break;
1208
+ case "Property":
1209
+ e.kind !== "init" && this.raise(e.key.start, "Object pattern can't contain getter or setter"), this.toAssignable(e.value, t);
1210
+ break;
1211
+ case "ArrayExpression":
1212
+ e.type = "ArrayPattern", i && this.checkPatternErrors(i, true), this.toAssignableList(e.elements, t);
1213
+ break;
1214
+ case "SpreadElement":
1215
+ e.type = "RestElement", this.toAssignable(e.argument, t), e.argument.type === "AssignmentPattern" && this.raise(e.argument.start, "Rest elements cannot have a default value");
1216
+ break;
1217
+ case "AssignmentExpression":
1218
+ 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);
1219
+ break;
1220
+ case "ParenthesizedExpression":
1221
+ this.toAssignable(e.expression, t, i);
1222
+ break;
1223
+ case "ChainExpression":
1224
+ this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
1225
+ break;
1226
+ case "MemberExpression":
1227
+ if (!t) break;
1228
+ default:
1229
+ this.raise(e.start, "Assigning to rvalue");
1230
+ }
1231
+ else i && this.checkPatternErrors(i, true);
1232
+ return e;
1233
+ };
1234
+ D.toAssignableList = function(e, t) {
1235
+ for (var i = e.length, s = 0; s < i; s++) {
1236
+ var r = e[s];
1237
+ r && this.toAssignable(r, t);
1238
+ }
1239
+ if (i) {
1240
+ var n = e[i - 1];
1241
+ this.options.ecmaVersion === 6 && t && n && n.type === "RestElement" && n.argument.type !== "Identifier" && this.unexpected(n.argument.start);
1242
+ }
1243
+ return e;
1244
+ };
1245
+ D.parseSpread = function(e) {
1246
+ var t = this.startNode();
1247
+ return this.next(), t.argument = this.parseMaybeAssign(false, e), this.finishNode(t, "SpreadElement");
1248
+ };
1249
+ D.parseRestBinding = function() {
1250
+ var e = this.startNode();
1251
+ return this.next(), this.options.ecmaVersion === 6 && this.type !== a.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
1252
+ };
1253
+ D.parseBindingAtom = function() {
1254
+ if (this.options.ecmaVersion >= 6) switch (this.type) {
1255
+ case a.bracketL:
1256
+ var e = this.startNode();
1257
+ return this.next(), e.elements = this.parseBindingList(a.bracketR, true, true), this.finishNode(e, "ArrayPattern");
1258
+ case a.braceL:
1259
+ return this.parseObj(true);
1260
+ }
1261
+ return this.parseIdent();
1262
+ };
1263
+ D.parseBindingList = function(e, t, i, s) {
1264
+ for (var r = [], n = true; !this.eat(e); ) if (n ? n = false : this.expect(a.comma), t && this.type === a.comma) r.push(null);
1265
+ else {
1266
+ if (i && this.afterTrailingComma(e)) break;
1267
+ if (this.type === a.ellipsis) {
1268
+ var o = this.parseRestBinding();
1269
+ this.parseBindingListItem(o), r.push(o), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(e);
1270
+ break;
1271
+ } else r.push(this.parseAssignableListItem(s));
1272
+ }
1273
+ return r;
1274
+ };
1275
+ D.parseAssignableListItem = function(e) {
1276
+ var t = this.parseMaybeDefault(this.start, this.startLoc);
1277
+ return this.parseBindingListItem(t), t;
1278
+ };
1279
+ D.parseBindingListItem = function(e) {
1280
+ return e;
1281
+ };
1282
+ D.parseMaybeDefault = function(e, t, i) {
1283
+ if (i = i || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(a.eq)) return i;
1284
+ var s = this.startNodeAt(e, t);
1285
+ return s.left = i, s.right = this.parseMaybeAssign(), this.finishNode(s, "AssignmentPattern");
1286
+ };
1287
+ D.checkLValSimple = function(e, t, i) {
1288
+ t === void 0 && (t = de);
1289
+ var s = t !== de;
1290
+ switch (e.type) {
1291
+ case "Identifier":
1292
+ this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t === J && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), i && ($(i, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), i[e.name] = true), t !== Ct && this.declareName(e.name, t, e.start));
1293
+ break;
1294
+ case "ChainExpression":
1295
+ this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
1296
+ break;
1297
+ case "MemberExpression":
1298
+ s && this.raiseRecoverable(e.start, "Binding member expression");
1299
+ break;
1300
+ case "ParenthesizedExpression":
1301
+ return s && this.raiseRecoverable(e.start, "Binding parenthesized expression"), this.checkLValSimple(e.expression, t, i);
1302
+ default:
1303
+ this.raise(e.start, (s ? "Binding" : "Assigning to") + " rvalue");
1304
+ }
1305
+ };
1306
+ D.checkLValPattern = function(e, t, i) {
1307
+ switch (t === void 0 && (t = de), e.type) {
1308
+ case "ObjectPattern":
1309
+ for (var s = 0, r = e.properties; s < r.length; s += 1) {
1310
+ var n = r[s];
1311
+ this.checkLValInnerPattern(n, t, i);
1312
+ }
1313
+ break;
1314
+ case "ArrayPattern":
1315
+ for (var o = 0, p = e.elements; o < p.length; o += 1) {
1316
+ var u = p[o];
1317
+ u && this.checkLValInnerPattern(u, t, i);
1318
+ }
1319
+ break;
1320
+ default:
1321
+ this.checkLValSimple(e, t, i);
1322
+ }
1323
+ };
1324
+ D.checkLValInnerPattern = function(e, t, i) {
1325
+ switch (t === void 0 && (t = de), e.type) {
1326
+ case "Property":
1327
+ this.checkLValInnerPattern(e.value, t, i);
1328
+ break;
1329
+ case "AssignmentPattern":
1330
+ this.checkLValPattern(e.left, t, i);
1331
+ break;
1332
+ case "RestElement":
1333
+ this.checkLValPattern(e.argument, t, i);
1334
+ break;
1335
+ default:
1336
+ this.checkLValPattern(e, t, i);
1337
+ }
1338
+ };
1339
+ var F = function(t, i, s, r, n) {
1340
+ this.token = t, this.isExpr = !!i, this.preserveSpace = !!s, this.override = r, this.generator = !!n;
1341
+ };
1342
+ var C = {
1343
+ b_stat: new F("{", false),
1344
+ b_expr: new F("{", true),
1345
+ b_tmpl: new F("${", false),
1346
+ p_stat: new F("(", false),
1347
+ p_expr: new F("(", true),
1348
+ q_tmpl: new F("`", true, true, function(e) {
1349
+ return e.tryReadTemplateToken();
1350
+ }),
1351
+ f_stat: new F("function", false),
1352
+ f_expr: new F("function", true),
1353
+ f_expr_gen: new F("function", true, false, null, true),
1354
+ f_gen: new F("function", false, false, null, true)
1355
+ };
1356
+ var ee = E.prototype;
1357
+ ee.initialContext = function() {
1358
+ return [C.b_stat];
1359
+ };
1360
+ ee.curContext = function() {
1361
+ return this.context[this.context.length - 1];
1362
+ };
1363
+ ee.braceIsBlock = function(e) {
1364
+ var t = this.curContext();
1365
+ return t === C.f_expr || t === C.f_stat ? true : e === a.colon && (t === C.b_stat || t === C.b_expr) ? !t.isExpr : e === a._return || e === a.name && this.exprAllowed ? V.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 === C.b_stat : e === a._var || e === a._const || e === a.name ? false : !this.exprAllowed;
1366
+ };
1367
+ ee.inGeneratorContext = function() {
1368
+ for (var e = this.context.length - 1; e >= 1; e--) {
1369
+ var t = this.context[e];
1370
+ if (t.token === "function") return t.generator;
1371
+ }
1372
+ return false;
1373
+ };
1374
+ ee.updateContext = function(e) {
1375
+ var t, i = this.type;
1376
+ i.keyword && e === a.dot ? this.exprAllowed = false : (t = i.updateContext) ? t.call(this, e) : this.exprAllowed = i.beforeExpr;
1377
+ };
1378
+ ee.overrideContext = function(e) {
1379
+ this.curContext() !== e && (this.context[this.context.length - 1] = e);
1380
+ };
1381
+ a.parenR.updateContext = a.braceR.updateContext = function() {
1382
+ if (this.context.length === 1) {
1383
+ this.exprAllowed = true;
1384
+ return;
1385
+ }
1386
+ var e = this.context.pop();
1387
+ e === C.b_stat && this.curContext().token === "function" && (e = this.context.pop()), this.exprAllowed = !e.isExpr;
1388
+ };
1389
+ a.braceL.updateContext = function(e) {
1390
+ this.context.push(this.braceIsBlock(e) ? C.b_stat : C.b_expr), this.exprAllowed = true;
1391
+ };
1392
+ a.dollarBraceL.updateContext = function() {
1393
+ this.context.push(C.b_tmpl), this.exprAllowed = true;
1394
+ };
1395
+ a.parenL.updateContext = function(e) {
1396
+ var t = e === a._if || e === a._for || e === a._with || e === a._while;
1397
+ this.context.push(t ? C.p_stat : C.p_expr), this.exprAllowed = true;
1398
+ };
1399
+ a.incDec.updateContext = function() {
1400
+ };
1401
+ a._function.updateContext = a._class.updateContext = function(e) {
1402
+ e.beforeExpr && e !== a._else && !(e === a.semi && this.curContext() !== C.p_stat) && !(e === a._return && V.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === a.colon || e === a.braceL) && this.curContext() === C.b_stat) ? this.context.push(C.f_expr) : this.context.push(C.f_stat), this.exprAllowed = false;
1403
+ };
1404
+ a.colon.updateContext = function() {
1405
+ this.curContext().token === "function" && this.context.pop(), this.exprAllowed = true;
1406
+ };
1407
+ a.backQuote.updateContext = function() {
1408
+ this.curContext() === C.q_tmpl ? this.context.pop() : this.context.push(C.q_tmpl), this.exprAllowed = false;
1409
+ };
1410
+ a.star.updateContext = function(e) {
1411
+ if (e === a._function) {
1412
+ var t = this.context.length - 1;
1413
+ this.context[t] === C.f_expr ? this.context[t] = C.f_expr_gen : this.context[t] = C.f_gen;
1414
+ }
1415
+ this.exprAllowed = true;
1416
+ };
1417
+ a.name.updateContext = function(e) {
1418
+ var t = false;
1419
+ this.options.ecmaVersion >= 6 && e !== a.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = true), this.exprAllowed = t;
1420
+ };
1421
+ var y = E.prototype;
1422
+ y.checkPropClash = function(e, t, i) {
1423
+ if (!(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand))) {
1424
+ var s = e.key, r;
1425
+ switch (s.type) {
1426
+ case "Identifier":
1427
+ r = s.name;
1428
+ break;
1429
+ case "Literal":
1430
+ r = String(s.value);
1431
+ break;
1432
+ default:
1433
+ return;
1434
+ }
1435
+ var n = e.kind;
1436
+ if (this.options.ecmaVersion >= 6) {
1437
+ r === "__proto__" && n === "init" && (t.proto && (i ? i.doubleProto < 0 && (i.doubleProto = s.start) : this.raiseRecoverable(s.start, "Redefinition of __proto__ property")), t.proto = true);
1438
+ return;
1439
+ }
1440
+ r = "$" + r;
1441
+ var o = t[r];
1442
+ if (o) {
1443
+ var p;
1444
+ n === "init" ? p = this.strict && o.init || o.get || o.set : p = o.init || o[n], p && this.raiseRecoverable(s.start, "Redefinition of property");
1445
+ } else o = t[r] = {
1446
+ init: false,
1447
+ get: false,
1448
+ set: false
1449
+ };
1450
+ o[n] = true;
1451
+ }
1452
+ };
1453
+ y.parseExpression = function(e, t) {
1454
+ var i = this.start, s = this.startLoc, r = this.parseMaybeAssign(e, t);
1455
+ if (this.type === a.comma) {
1456
+ var n = this.startNodeAt(i, s);
1457
+ for (n.expressions = [r]; this.eat(a.comma); ) n.expressions.push(this.parseMaybeAssign(e, t));
1458
+ return this.finishNode(n, "SequenceExpression");
1459
+ }
1460
+ return r;
1461
+ };
1462
+ y.parseMaybeAssign = function(e, t, i) {
1463
+ if (this.isContextual("yield")) {
1464
+ if (this.inGenerator) return this.parseYield(e);
1465
+ this.exprAllowed = false;
1466
+ }
1467
+ var s = false, r = -1, n = -1, o = -1;
1468
+ t ? (r = t.parenthesizedAssign, n = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new Se(), s = true);
1469
+ var p = this.start, u = this.startLoc;
1470
+ (this.type === a.parenL || this.type === a.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
1471
+ var c = this.parseMaybeConditional(e, t);
1472
+ if (i && (c = i.call(this, c, p, u)), this.type.isAssign) {
1473
+ var f = this.startNodeAt(p, u);
1474
+ return f.operator = this.value, this.type === a.eq && (c = this.toAssignable(c, false, t)), s || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= c.start && (t.shorthandAssign = -1), this.type === a.eq ? this.checkLValPattern(c) : this.checkLValSimple(c), f.left = c, this.next(), f.right = this.parseMaybeAssign(e), o > -1 && (t.doubleProto = o), this.finishNode(f, "AssignmentExpression");
1475
+ } else s && this.checkExpressionErrors(t, true);
1476
+ return r > -1 && (t.parenthesizedAssign = r), n > -1 && (t.trailingComma = n), c;
1477
+ };
1478
+ y.parseMaybeConditional = function(e, t) {
1479
+ var i = this.start, s = this.startLoc, r = this.parseExprOps(e, t);
1480
+ if (this.checkExpressionErrors(t)) return r;
1481
+ if (this.eat(a.question)) {
1482
+ var n = this.startNodeAt(i, s);
1483
+ return n.test = r, n.consequent = this.parseMaybeAssign(), this.expect(a.colon), n.alternate = this.parseMaybeAssign(e), this.finishNode(n, "ConditionalExpression");
1484
+ }
1485
+ return r;
1486
+ };
1487
+ y.parseExprOps = function(e, t) {
1488
+ var i = this.start, s = this.startLoc, r = this.parseMaybeUnary(t, false, false, e);
1489
+ return this.checkExpressionErrors(t) || r.start === i && r.type === "ArrowFunctionExpression" ? r : this.parseExprOp(r, i, s, -1, e);
1490
+ };
1491
+ y.parseExprOp = function(e, t, i, s, r) {
1492
+ var n = this.type.binop;
1493
+ if (n != null && (!r || this.type !== a._in) && n > s) {
1494
+ var o = this.type === a.logicalOR || this.type === a.logicalAND, p = this.type === a.coalesce;
1495
+ p && (n = a.logicalAND.binop);
1496
+ var u = this.value;
1497
+ this.next();
1498
+ var c = this.start, f = this.startLoc, v = this.parseExprOp(this.parseMaybeUnary(null, false, false, r), c, f, n, r), T = this.buildBinary(t, i, e, v, u, o || p);
1499
+ return (o && this.type === a.coalesce || p && (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(T, t, i, s, r);
1500
+ }
1501
+ return e;
1502
+ };
1503
+ y.buildBinary = function(e, t, i, s, r, n) {
1504
+ s.type === "PrivateIdentifier" && this.raise(s.start, "Private identifier can only be left side of binary expression");
1505
+ var o = this.startNodeAt(e, t);
1506
+ return o.left = i, o.operator = r, o.right = s, this.finishNode(o, n ? "LogicalExpression" : "BinaryExpression");
1507
+ };
1508
+ y.parseMaybeUnary = function(e, t, i, s) {
1509
+ var r = this.start, n = this.startLoc, o;
1510
+ if (this.isContextual("await") && this.canAwait) o = this.parseAwait(s), t = true;
1511
+ else if (this.type.prefix) {
1512
+ var p = this.startNode(), u = this.type === a.incDec;
1513
+ p.operator = this.value, p.prefix = true, this.next(), p.argument = this.parseMaybeUnary(null, true, u, s), this.checkExpressionErrors(e, true), u ? this.checkLValSimple(p.argument) : this.strict && p.operator === "delete" && kt(p.argument) ? this.raiseRecoverable(p.start, "Deleting local variable in strict mode") : p.operator === "delete" && Me(p.argument) ? this.raiseRecoverable(p.start, "Private fields can not be deleted") : t = true, o = this.finishNode(p, u ? "UpdateExpression" : "UnaryExpression");
1514
+ } else if (!t && this.type === a.privateId) (s || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), o = this.parsePrivateIdent(), this.type !== a._in && this.unexpected();
1515
+ else {
1516
+ if (o = this.parseExprSubscripts(e, s), this.checkExpressionErrors(e)) return o;
1517
+ for (; this.type.postfix && !this.canInsertSemicolon(); ) {
1518
+ var c = this.startNodeAt(r, n);
1519
+ c.operator = this.value, c.prefix = false, c.argument = o, this.checkLValSimple(o), this.next(), o = this.finishNode(c, "UpdateExpression");
1520
+ }
1521
+ }
1522
+ if (!i && this.eat(a.starstar)) {
1523
+ if (t) this.unexpected(this.lastTokStart);
1524
+ else return this.buildBinary(r, n, o, this.parseMaybeUnary(null, false, false, s), "**", false);
1525
+ } else return o;
1526
+ };
1527
+ function kt(e) {
1528
+ return e.type === "Identifier" || e.type === "ParenthesizedExpression" && kt(e.expression);
1529
+ }
1530
+ function Me(e) {
1531
+ return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && Me(e.expression) || e.type === "ParenthesizedExpression" && Me(e.expression);
1532
+ }
1533
+ y.parseExprSubscripts = function(e, t) {
1534
+ var i = this.start, s = this.startLoc, r = this.parseExprAtom(e, t);
1535
+ if (r.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")") return r;
1536
+ var n = this.parseSubscripts(r, i, s, false, t);
1537
+ 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;
1538
+ };
1539
+ y.parseSubscripts = function(e, t, i, s, r) {
1540
+ 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; ; ) {
1541
+ var p = this.parseSubscript(e, t, i, s, n, o, r);
1542
+ if (p.optional && (o = true), p === e || p.type === "ArrowFunctionExpression") {
1543
+ if (o) {
1544
+ var u = this.startNodeAt(t, i);
1545
+ u.expression = p, p = this.finishNode(u, "ChainExpression");
1546
+ }
1547
+ return p;
1548
+ }
1549
+ e = p;
1550
+ }
1551
+ };
1552
+ y.shouldParseAsyncArrow = function() {
1553
+ return !this.canInsertSemicolon() && this.eat(a.arrow);
1554
+ };
1555
+ y.parseSubscriptAsyncArrow = function(e, t, i, s) {
1556
+ return this.parseArrowExpression(this.startNodeAt(e, t), i, true, s);
1557
+ };
1558
+ y.parseSubscript = function(e, t, i, s, r, n, o) {
1559
+ var p = this.options.ecmaVersion >= 11, u = p && this.eat(a.questionDot);
1560
+ s && u && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
1561
+ var c = this.eat(a.bracketL);
1562
+ if (c || u && this.type !== a.parenL && this.type !== a.backQuote || this.eat(a.dot)) {
1563
+ var f = this.startNodeAt(t, i);
1564
+ f.object = e, c ? (f.property = this.parseExpression(), this.expect(a.bracketR)) : this.type === a.privateId && e.type !== "Super" ? f.property = this.parsePrivateIdent() : f.property = this.parseIdent(this.options.allowReserved !== "never"), f.computed = !!c, p && (f.optional = u), e = this.finishNode(f, "MemberExpression");
1565
+ } else if (!s && this.eat(a.parenL)) {
1566
+ var v = new Se(), T = this.yieldPos, h = this.awaitPos, m = this.awaitIdentPos;
1567
+ this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
1568
+ var x = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, false, v);
1569
+ if (r && !u && this.shouldParseAsyncArrow()) return this.checkPatternErrors(v, false), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = T, this.awaitPos = h, this.awaitIdentPos = m, this.parseSubscriptAsyncArrow(t, i, x, o);
1570
+ this.checkExpressionErrors(v, true), this.yieldPos = T || this.yieldPos, this.awaitPos = h || this.awaitPos, this.awaitIdentPos = m || this.awaitIdentPos;
1571
+ var g = this.startNodeAt(t, i);
1572
+ g.callee = e, g.arguments = x, p && (g.optional = u), e = this.finishNode(g, "CallExpression");
1573
+ } else if (this.type === a.backQuote) {
1574
+ (u || n) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
1575
+ var N = this.startNodeAt(t, i);
1576
+ N.tag = e, N.quasi = this.parseTemplate({
1577
+ isTagged: true
1578
+ }), e = this.finishNode(N, "TaggedTemplateExpression");
1579
+ }
1580
+ return e;
1581
+ };
1582
+ y.parseExprAtom = function(e, t, i) {
1583
+ this.type === a.slash && this.readRegexp();
1584
+ var s, r = this.potentialArrowAt === this.start;
1585
+ switch (this.type) {
1586
+ case a._super:
1587
+ return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), s = this.startNode(), this.next(), this.type === a.parenL && !this.allowDirectSuper && this.raise(s.start, "super() call outside constructor of a subclass"), this.type !== a.dot && this.type !== a.bracketL && this.type !== a.parenL && this.unexpected(), this.finishNode(s, "Super");
1588
+ case a._this:
1589
+ return s = this.startNode(), this.next(), this.finishNode(s, "ThisExpression");
1590
+ case a.name:
1591
+ var n = this.start, o = this.startLoc, p = this.containsEsc, u = this.parseIdent(false);
1592
+ if (this.options.ecmaVersion >= 8 && !p && u.name === "async" && !this.canInsertSemicolon() && this.eat(a._function)) return this.overrideContext(C.f_expr), this.parseFunction(this.startNodeAt(n, o), 0, false, true, t);
1593
+ if (r && !this.canInsertSemicolon()) {
1594
+ if (this.eat(a.arrow)) return this.parseArrowExpression(this.startNodeAt(n, o), [u], false, t);
1595
+ if (this.options.ecmaVersion >= 8 && u.name === "async" && this.type === a.name && !p && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) return u = this.parseIdent(false), (this.canInsertSemicolon() || !this.eat(a.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(n, o), [u], true, t);
1596
+ }
1597
+ return u;
1598
+ case a.regexp:
1599
+ var c = this.value;
1600
+ return s = this.parseLiteral(c.value), s.regex = {
1601
+ pattern: c.pattern,
1602
+ flags: c.flags
1603
+ }, s;
1604
+ case a.num:
1605
+ case a.string:
1606
+ return this.parseLiteral(this.value);
1607
+ case a._null:
1608
+ case a._true:
1609
+ case a._false:
1610
+ return s = this.startNode(), s.value = this.type === a._null ? null : this.type === a._true, s.raw = this.type.keyword, this.next(), this.finishNode(s, "Literal");
1611
+ case a.parenL:
1612
+ var f = this.start, v = this.parseParenAndDistinguishExpression(r, t);
1613
+ return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(v) && (e.parenthesizedAssign = f), e.parenthesizedBind < 0 && (e.parenthesizedBind = f)), v;
1614
+ case a.bracketL:
1615
+ return s = this.startNode(), this.next(), s.elements = this.parseExprList(a.bracketR, true, true, e), this.finishNode(s, "ArrayExpression");
1616
+ case a.braceL:
1617
+ return this.overrideContext(C.b_expr), this.parseObj(false, e);
1618
+ case a._function:
1619
+ return s = this.startNode(), this.next(), this.parseFunction(s, 0);
1620
+ case a._class:
1621
+ return this.parseClass(this.startNode(), false);
1622
+ case a._new:
1623
+ return this.parseNew();
1624
+ case a.backQuote:
1625
+ return this.parseTemplate();
1626
+ case a._import:
1627
+ return this.options.ecmaVersion >= 11 ? this.parseExprImport(i) : this.unexpected();
1628
+ default:
1629
+ return this.parseExprAtomDefault();
1630
+ }
1631
+ };
1632
+ y.parseExprAtomDefault = function() {
1633
+ this.unexpected();
1634
+ };
1635
+ y.parseExprImport = function(e) {
1636
+ var t = this.startNode();
1637
+ if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === a.parenL && !e) return this.parseDynamicImport(t);
1638
+ if (this.type === a.dot) {
1639
+ var i = this.startNodeAt(t.start, t.loc && t.loc.start);
1640
+ return i.name = "import", t.meta = this.finishNode(i, "Identifier"), this.parseImportMeta(t);
1641
+ } else this.unexpected();
1642
+ };
1643
+ y.parseDynamicImport = function(e) {
1644
+ 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())));
1645
+ else if (!this.eat(a.parenR)) {
1646
+ var t = this.start;
1647
+ this.eat(a.comma) && this.eat(a.parenR) ? this.raiseRecoverable(t, "Trailing comma is not allowed in import()") : this.unexpected(t);
1648
+ }
1649
+ return this.finishNode(e, "ImportExpression");
1650
+ };
1651
+ y.parseImportMeta = function(e) {
1652
+ this.next();
1653
+ var t = this.containsEsc;
1654
+ 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");
1655
+ };
1656
+ y.parseLiteral = function(e) {
1657
+ var t = this.startNode();
1658
+ 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");
1659
+ };
1660
+ y.parseParenExpression = function() {
1661
+ this.expect(a.parenL);
1662
+ var e = this.parseExpression();
1663
+ return this.expect(a.parenR), e;
1664
+ };
1665
+ y.shouldParseArrow = function(e) {
1666
+ return !this.canInsertSemicolon();
1667
+ };
1668
+ y.parseParenAndDistinguishExpression = function(e, t) {
1669
+ var i = this.start, s = this.startLoc, r, n = this.options.ecmaVersion >= 8;
1670
+ if (this.options.ecmaVersion >= 6) {
1671
+ this.next();
1672
+ var o = this.start, p = this.startLoc, u = [], c = true, f = false, v = new Se(), T = this.yieldPos, h = this.awaitPos, m;
1673
+ for (this.yieldPos = 0, this.awaitPos = 0; this.type !== a.parenR; ) if (c ? c = false : this.expect(a.comma), n && this.afterTrailingComma(a.parenR, true)) {
1674
+ f = true;
1675
+ break;
1676
+ } else if (this.type === a.ellipsis) {
1677
+ m = this.start, u.push(this.parseParenItem(this.parseRestBinding())), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
1678
+ break;
1679
+ } else u.push(this.parseMaybeAssign(false, v, this.parseParenItem));
1680
+ var x = this.lastTokEnd, g = this.lastTokEndLoc;
1681
+ if (this.expect(a.parenR), e && this.shouldParseArrow(u) && this.eat(a.arrow)) return this.checkPatternErrors(v, false), this.checkYieldAwaitInDefaultParams(), this.yieldPos = T, this.awaitPos = h, this.parseParenArrowList(i, s, u, t);
1682
+ (!u.length || f) && this.unexpected(this.lastTokStart), m && this.unexpected(m), this.checkExpressionErrors(v, true), this.yieldPos = T || this.yieldPos, this.awaitPos = h || this.awaitPos, u.length > 1 ? (r = this.startNodeAt(o, p), r.expressions = u, this.finishNodeAt(r, "SequenceExpression", x, g)) : r = u[0];
1683
+ } else r = this.parseParenExpression();
1684
+ if (this.options.preserveParens) {
1685
+ var N = this.startNodeAt(i, s);
1686
+ return N.expression = r, this.finishNode(N, "ParenthesizedExpression");
1687
+ } else return r;
1688
+ };
1689
+ y.parseParenItem = function(e) {
1690
+ return e;
1691
+ };
1692
+ y.parseParenArrowList = function(e, t, i, s) {
1693
+ return this.parseArrowExpression(this.startNodeAt(e, t), i, false, s);
1694
+ };
1695
+ var Yi = [];
1696
+ y.parseNew = function() {
1697
+ this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
1698
+ var e = this.startNode();
1699
+ if (this.next(), this.options.ecmaVersion >= 6 && this.type === a.dot) {
1700
+ var t = this.startNodeAt(e.start, e.loc && e.loc.start);
1701
+ t.name = "new", e.meta = this.finishNode(t, "Identifier"), this.next();
1702
+ var i = this.containsEsc;
1703
+ 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");
1704
+ }
1705
+ var s = this.start, r = this.startLoc;
1706
+ return e.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), s, r, true, false), this.eat(a.parenL) ? e.arguments = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, false) : e.arguments = Yi, this.finishNode(e, "NewExpression");
1707
+ };
1708
+ y.parseTemplateElement = function(e) {
1709
+ var t = e.isTagged, i = this.startNode();
1710
+ return this.type === a.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), i.value = {
1711
+ raw: this.value.replace(/\r\n?/g, `
1712
+ `),
1713
+ cooked: null
1714
+ }) : i.value = {
1715
+ raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, `
1716
+ `),
1717
+ cooked: this.value
1718
+ }, this.next(), i.tail = this.type === a.backQuote, this.finishNode(i, "TemplateElement");
1719
+ };
1720
+ y.parseTemplate = function(e) {
1721
+ e === void 0 && (e = {});
1722
+ var t = e.isTagged;
1723
+ t === void 0 && (t = false);
1724
+ var i = this.startNode();
1725
+ this.next(), i.expressions = [];
1726
+ var s = this.parseTemplateElement({
1727
+ isTagged: t
1728
+ });
1729
+ for (i.quasis = [s]; !s.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(s = this.parseTemplateElement({
1730
+ isTagged: t
1731
+ }));
1732
+ return this.next(), this.finishNode(i, "TemplateLiteral");
1733
+ };
1734
+ y.isAsyncProp = function(e) {
1735
+ 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) && !V.test(this.input.slice(this.lastTokEnd, this.start));
1736
+ };
1737
+ y.parseObj = function(e, t) {
1738
+ var i = this.startNode(), s = true, r = {};
1739
+ for (i.properties = [], this.next(); !this.eat(a.braceR); ) {
1740
+ if (s) s = false;
1741
+ else if (this.expect(a.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(a.braceR)) break;
1742
+ var n = this.parseProperty(e, t);
1743
+ e || this.checkPropClash(n, r, t), i.properties.push(n);
1744
+ }
1745
+ return this.finishNode(i, e ? "ObjectPattern" : "ObjectExpression");
1746
+ };
1747
+ y.parseProperty = function(e, t) {
1748
+ var i = this.startNode(), s, r, n, o;
1749
+ 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"));
1750
+ this.options.ecmaVersion >= 6 && (i.method = false, i.shorthand = false, (e || t) && (n = this.start, o = this.startLoc), e || (s = this.eat(a.star)));
1751
+ var p = this.containsEsc;
1752
+ return this.parsePropertyName(i), !e && !p && this.options.ecmaVersion >= 8 && !s && this.isAsyncProp(i) ? (r = true, s = this.options.ecmaVersion >= 9 && this.eat(a.star), this.parsePropertyName(i)) : r = false, this.parsePropertyValue(i, e, s, r, n, o, t, p), this.finishNode(i, "Property");
1753
+ };
1754
+ y.parseGetterSetter = function(e) {
1755
+ var t = e.key.name;
1756
+ this.parsePropertyName(e), e.value = this.parseMethod(false), e.kind = t;
1757
+ var i = e.kind === "get" ? 0 : 1;
1758
+ if (e.value.params.length !== i) {
1759
+ var s = e.value.start;
1760
+ e.kind === "get" ? this.raiseRecoverable(s, "getter should have no params") : this.raiseRecoverable(s, "setter should have exactly one param");
1761
+ } else e.kind === "set" && e.value.params[0].type === "RestElement" && this.raiseRecoverable(e.value.params[0].start, "Setter cannot use rest params");
1762
+ };
1763
+ y.parsePropertyValue = function(e, t, i, s, r, n, o, p) {
1764
+ (i || s) && 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, s), e.kind = "init") : !t && !p && 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 || s) && this.unexpected(), this.parseGetterSetter(e)) : this.options.ecmaVersion >= 6 && !e.computed && e.key.type === "Identifier" ? ((i || s) && this.unexpected(), this.checkUnreserved(e.key), e.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = r), t ? e.value = this.parseMaybeDefault(r, n, this.copyNode(e.key)) : this.type === a.eq && o ? (o.shorthandAssign < 0 && (o.shorthandAssign = this.start), e.value = this.parseMaybeDefault(r, n, this.copyNode(e.key))) : e.value = this.copyNode(e.key), e.kind = "init", e.shorthand = true) : this.unexpected();
1765
+ };
1766
+ y.parsePropertyName = function(e) {
1767
+ if (this.options.ecmaVersion >= 6) {
1768
+ if (this.eat(a.bracketL)) return e.computed = true, e.key = this.parseMaybeAssign(), this.expect(a.bracketR), e.key;
1769
+ e.computed = false;
1770
+ }
1771
+ return e.key = this.type === a.num || this.type === a.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
1772
+ };
1773
+ y.initFunction = function(e) {
1774
+ e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = false), this.options.ecmaVersion >= 8 && (e.async = false);
1775
+ };
1776
+ y.parseMethod = function(e, t, i) {
1777
+ var s = this.startNode(), r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
1778
+ return this.initFunction(s), this.options.ecmaVersion >= 6 && (s.generator = e), this.options.ecmaVersion >= 8 && (s.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(qe(t, s.generator) | ve | (i ? St : 0)), this.expect(a.parenL), s.params = this.parseBindingList(a.parenR, false, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(s, false, true, false), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(s, "FunctionExpression");
1779
+ };
1780
+ y.parseArrowExpression = function(e, t, i, s) {
1781
+ var r = this.yieldPos, n = this.awaitPos, o = this.awaitIdentPos;
1782
+ return this.enterScope(qe(i, false) | Ge), 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, s), this.yieldPos = r, this.awaitPos = n, this.awaitIdentPos = o, this.finishNode(e, "ArrowFunctionExpression");
1783
+ };
1784
+ y.parseFunctionBody = function(e, t, i, s) {
1785
+ var r = t && this.type !== a.braceL, n = this.strict, o = false;
1786
+ if (r) e.body = this.parseMaybeAssign(s), e.expression = true, this.checkParams(e, false);
1787
+ else {
1788
+ var p = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
1789
+ (!n || p) && (o = this.strictDirective(this.end), o && p && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
1790
+ var u = this.labels;
1791
+ 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, Ct), e.body = this.parseBlock(false, void 0, o && !n), e.expression = false, this.adaptDirectivePrologue(e.body.body), this.labels = u;
1792
+ }
1793
+ this.exitScope();
1794
+ };
1795
+ y.isSimpleParamList = function(e) {
1796
+ for (var t = 0, i = e; t < i.length; t += 1) {
1797
+ var s = i[t];
1798
+ if (s.type !== "Identifier") return false;
1799
+ }
1800
+ return true;
1801
+ };
1802
+ y.checkParams = function(e, t) {
1803
+ for (var i = /* @__PURE__ */ Object.create(null), s = 0, r = e.params; s < r.length; s += 1) {
1804
+ var n = r[s];
1805
+ this.checkLValInnerPattern(n, Je, t ? null : i);
1806
+ }
1807
+ };
1808
+ y.parseExprList = function(e, t, i, s) {
1809
+ for (var r = [], n = true; !this.eat(e); ) {
1810
+ if (n) n = false;
1811
+ else if (this.expect(a.comma), t && this.afterTrailingComma(e)) break;
1812
+ var o = void 0;
1813
+ i && this.type === a.comma ? o = null : this.type === a.ellipsis ? (o = this.parseSpread(s), s && this.type === a.comma && s.trailingComma < 0 && (s.trailingComma = this.start)) : o = this.parseMaybeAssign(false, s), r.push(o);
1814
+ }
1815
+ return r;
1816
+ };
1817
+ y.checkUnreserved = function(e) {
1818
+ var t = e.start, i = e.end, s = e.name;
1819
+ if (this.inGenerator && s === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && s === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & be) && s === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (s === "arguments" || s === "await") && this.raise(t, "Cannot use " + s + " in class static initialization block"), this.keywords.test(s) && this.raise(t, "Unexpected keyword '" + s + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, i).indexOf("\\") !== -1)) {
1820
+ var r = this.strict ? this.reservedWordsStrict : this.reservedWords;
1821
+ r.test(s) && (!this.inAsync && s === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t, "The keyword '" + s + "' is reserved"));
1822
+ }
1823
+ };
1824
+ y.parseIdent = function(e) {
1825
+ var t = this.parseIdentNode();
1826
+ return this.next(!!e), this.finishNode(t, "Identifier"), e || (this.checkUnreserved(t), t.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = t.start)), t;
1827
+ };
1828
+ y.parseIdentNode = function() {
1829
+ var e = this.startNode();
1830
+ 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;
1831
+ };
1832
+ y.parsePrivateIdent = function() {
1833
+ var e = this.startNode();
1834
+ 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;
1835
+ };
1836
+ y.parseYield = function(e) {
1837
+ this.yieldPos || (this.yieldPos = this.start);
1838
+ var t = this.startNode();
1839
+ 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");
1840
+ };
1841
+ y.parseAwait = function(e) {
1842
+ this.awaitPos || (this.awaitPos = this.start);
1843
+ var t = this.startNode();
1844
+ return this.next(), t.argument = this.parseMaybeUnary(null, true, false, e), this.finishNode(t, "AwaitExpression");
1845
+ };
1846
+ var xe = E.prototype;
1847
+ xe.raise = function(e, t) {
1848
+ var i = gt(this.input, e);
1849
+ t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
1850
+ var s = new SyntaxError(t);
1851
+ throw s.pos = e, s.loc = i, s.raisedAt = this.pos, s;
1852
+ };
1853
+ xe.raiseRecoverable = xe.raise;
1854
+ xe.curPosition = function() {
1855
+ if (this.options.locations) return new ae(this.curLine, this.pos - this.lineStart);
1856
+ };
1857
+ var W = E.prototype;
1858
+ var $i = function(t) {
1859
+ this.flags = t, this.var = [], this.lexical = [], this.functions = [];
1860
+ };
1861
+ W.enterScope = function(e) {
1862
+ this.scopeStack.push(new $i(e));
1863
+ };
1864
+ W.exitScope = function() {
1865
+ this.scopeStack.pop();
1866
+ };
1867
+ W.treatFunctionsAsVarInScope = function(e) {
1868
+ return e.flags & Z || !this.inModule && e.flags & ne;
1869
+ };
1870
+ W.declareName = function(e, t, i) {
1871
+ var s = false;
1872
+ if (t === J) {
1873
+ var r = this.currentScope();
1874
+ s = r.lexical.indexOf(e) > -1 || r.functions.indexOf(e) > -1 || r.var.indexOf(e) > -1, r.lexical.push(e), this.inModule && r.flags & ne && delete this.undefinedExports[e];
1875
+ } else if (t === Tt) {
1876
+ var n = this.currentScope();
1877
+ n.lexical.push(e);
1878
+ } else if (t === _t) {
1879
+ var o = this.currentScope();
1880
+ this.treatFunctionsAsVar ? s = o.lexical.indexOf(e) > -1 : s = o.lexical.indexOf(e) > -1 || o.var.indexOf(e) > -1, o.functions.push(e);
1881
+ } else for (var p = this.scopeStack.length - 1; p >= 0; --p) {
1882
+ var u = this.scopeStack[p];
1883
+ if (u.lexical.indexOf(e) > -1 && !(u.flags & bt && u.lexical[0] === e) || !this.treatFunctionsAsVarInScope(u) && u.functions.indexOf(e) > -1) {
1884
+ s = true;
1885
+ break;
1886
+ }
1887
+ if (u.var.push(e), this.inModule && u.flags & ne && delete this.undefinedExports[e], u.flags & be) break;
1888
+ }
1889
+ s && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
1890
+ };
1891
+ W.checkLocalExport = function(e) {
1892
+ this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
1893
+ };
1894
+ W.currentScope = function() {
1895
+ return this.scopeStack[this.scopeStack.length - 1];
1896
+ };
1897
+ W.currentVarScope = function() {
1898
+ for (var e = this.scopeStack.length - 1; ; e--) {
1899
+ var t = this.scopeStack[e];
1900
+ if (t.flags & (be | oe | X)) return t;
1901
+ }
1902
+ };
1903
+ W.currentThisScope = function() {
1904
+ for (var e = this.scopeStack.length - 1; ; e--) {
1905
+ var t = this.scopeStack[e];
1906
+ if (t.flags & (be | oe | X) && !(t.flags & Ge)) return t;
1907
+ }
1908
+ };
1909
+ var _e = function(t, i, s) {
1910
+ this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new ge(t, s)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [i, 0]);
1911
+ };
1912
+ var ue = E.prototype;
1913
+ ue.startNode = function() {
1914
+ return new _e(this, this.start, this.startLoc);
1915
+ };
1916
+ ue.startNodeAt = function(e, t) {
1917
+ return new _e(this, e, t);
1918
+ };
1919
+ function At(e, t, i, s) {
1920
+ return e.type = t, e.end = i, this.options.locations && (e.loc.end = s), this.options.ranges && (e.range[1] = i), e;
1921
+ }
1922
+ ue.finishNode = function(e, t) {
1923
+ return At.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
1924
+ };
1925
+ ue.finishNodeAt = function(e, t, i, s) {
1926
+ return At.call(this, e, t, i, s);
1927
+ };
1928
+ ue.copyNode = function(e) {
1929
+ var t = new _e(this, e.start, this.startLoc);
1930
+ for (var i in e) t[i] = e[i];
1931
+ return t;
1932
+ };
1933
+ var Zi = "Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz";
1934
+ var wt = "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";
1935
+ var Pt = wt + " Extended_Pictographic";
1936
+ var It = Pt;
1937
+ var Nt = It + " EBase EComp EMod EPres ExtPict";
1938
+ var Lt = Nt;
1939
+ var es = Lt;
1940
+ var ts = {
1941
+ 9: wt,
1942
+ 10: Pt,
1943
+ 11: It,
1944
+ 12: Nt,
1945
+ 13: Lt,
1946
+ 14: es
1947
+ };
1948
+ var is = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
1949
+ var ss = {
1950
+ 9: "",
1951
+ 10: "",
1952
+ 11: "",
1953
+ 12: "",
1954
+ 13: "",
1955
+ 14: is
1956
+ };
1957
+ var ct = "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";
1958
+ var Vt = "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";
1959
+ var Rt = Vt + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd";
1960
+ var Ot = Rt + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
1961
+ var Bt = Ot + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
1962
+ var Dt = Bt + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
1963
+ var rs = Dt + " " + Zi;
1964
+ var as = {
1965
+ 9: Vt,
1966
+ 10: Rt,
1967
+ 11: Ot,
1968
+ 12: Bt,
1969
+ 13: Dt,
1970
+ 14: rs
1971
+ };
1972
+ var Ft = {};
1973
+ function ns(e) {
1974
+ var t = Ft[e] = {
1975
+ binary: H(ts[e] + " " + ct),
1976
+ binaryOfStrings: H(ss[e]),
1977
+ nonBinary: {
1978
+ General_Category: H(ct),
1979
+ Script: H(as[e])
1980
+ }
1981
+ };
1982
+ 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;
1983
+ }
1984
+ for (fe = 0, Oe = [9, 10, 11, 12, 13, 14]; fe < Oe.length; fe += 1) lt = Oe[fe], ns(lt);
1985
+ var lt;
1986
+ var fe;
1987
+ var Oe;
1988
+ var l = E.prototype;
1989
+ var ye = function(t, i) {
1990
+ this.parent = t, this.base = i || this;
1991
+ };
1992
+ ye.prototype.separatedFrom = function(t) {
1993
+ for (var i = this; i; i = i.parent) for (var s = t; s; s = s.parent) if (i.base === s.base && i !== s) return true;
1994
+ return false;
1995
+ };
1996
+ ye.prototype.sibling = function() {
1997
+ return new ye(this.parent, this.base);
1998
+ };
1999
+ var U = function(t) {
2000
+ 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 = Ft[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;
2001
+ };
2002
+ U.prototype.reset = function(t, i, s) {
2003
+ var r = s.indexOf("v") !== -1, n = s.indexOf("u") !== -1;
2004
+ this.start = t | 0, this.source = i + "", this.flags = s, r && 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);
2005
+ };
2006
+ U.prototype.raise = function(t) {
2007
+ this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + t);
2008
+ };
2009
+ U.prototype.at = function(t, i) {
2010
+ i === void 0 && (i = false);
2011
+ var s = this.source, r = s.length;
2012
+ if (t >= r) return -1;
2013
+ var n = s.charCodeAt(t);
2014
+ if (!(i || this.switchU) || n <= 55295 || n >= 57344 || t + 1 >= r) return n;
2015
+ var o = s.charCodeAt(t + 1);
2016
+ return o >= 56320 && o <= 57343 ? (n << 10) + o - 56613888 : n;
2017
+ };
2018
+ U.prototype.nextIndex = function(t, i) {
2019
+ i === void 0 && (i = false);
2020
+ var s = this.source, r = s.length;
2021
+ if (t >= r) return r;
2022
+ var n = s.charCodeAt(t), o;
2023
+ return !(i || this.switchU) || n <= 55295 || n >= 57344 || t + 1 >= r || (o = s.charCodeAt(t + 1)) < 56320 || o > 57343 ? t + 1 : t + 2;
2024
+ };
2025
+ U.prototype.current = function(t) {
2026
+ return t === void 0 && (t = false), this.at(this.pos, t);
2027
+ };
2028
+ U.prototype.lookahead = function(t) {
2029
+ return t === void 0 && (t = false), this.at(this.nextIndex(this.pos, t), t);
2030
+ };
2031
+ U.prototype.advance = function(t) {
2032
+ t === void 0 && (t = false), this.pos = this.nextIndex(this.pos, t);
2033
+ };
2034
+ U.prototype.eat = function(t, i) {
2035
+ return i === void 0 && (i = false), this.current(i) === t ? (this.advance(i), true) : false;
2036
+ };
2037
+ U.prototype.eatChars = function(t, i) {
2038
+ i === void 0 && (i = false);
2039
+ for (var s = this.pos, r = 0, n = t; r < n.length; r += 1) {
2040
+ var o = n[r], p = this.at(s, i);
2041
+ if (p === -1 || p !== o) return false;
2042
+ s = this.nextIndex(s, i);
2043
+ }
2044
+ return this.pos = s, true;
2045
+ };
2046
+ l.validateRegExpFlags = function(e) {
2047
+ for (var t = e.validFlags, i = e.flags, s = false, r = false, n = 0; n < i.length; n++) {
2048
+ var o = i.charAt(n);
2049
+ 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" && (s = true), o === "v" && (r = true);
2050
+ }
2051
+ this.options.ecmaVersion >= 15 && s && r && this.raise(e.start, "Invalid regular expression flag");
2052
+ };
2053
+ function os(e) {
2054
+ for (var t in e) return true;
2055
+ return false;
2056
+ }
2057
+ l.validateRegExpPattern = function(e) {
2058
+ this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && os(e.groupNames) && (e.switchN = true, this.regexp_pattern(e));
2059
+ };
2060
+ l.regexp_pattern = function(e) {
2061
+ 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");
2062
+ for (var t = 0, i = e.backReferenceNames; t < i.length; t += 1) {
2063
+ var s = i[t];
2064
+ e.groupNames[s] || e.raise("Invalid named capture referenced");
2065
+ }
2066
+ };
2067
+ l.regexp_disjunction = function(e) {
2068
+ var t = this.options.ecmaVersion >= 16;
2069
+ for (t && (e.branchID = new ye(e.branchID, null)), this.regexp_alternative(e); e.eat(124); ) t && (e.branchID = e.branchID.sibling()), this.regexp_alternative(e);
2070
+ t && (e.branchID = e.branchID.parent), this.regexp_eatQuantifier(e, true) && e.raise("Nothing to repeat"), e.eat(123) && e.raise("Lone quantifier brackets");
2071
+ };
2072
+ l.regexp_alternative = function(e) {
2073
+ for (; e.pos < e.source.length && this.regexp_eatTerm(e); ) ;
2074
+ };
2075
+ l.regexp_eatTerm = function(e) {
2076
+ 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;
2077
+ };
2078
+ l.regexp_eatAssertion = function(e) {
2079
+ var t = e.pos;
2080
+ if (e.lastAssertionIsQuantifiable = false, e.eat(94) || e.eat(36)) return true;
2081
+ if (e.eat(92)) {
2082
+ if (e.eat(66) || e.eat(98)) return true;
2083
+ e.pos = t;
2084
+ }
2085
+ if (e.eat(40) && e.eat(63)) {
2086
+ var i = false;
2087
+ 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;
2088
+ }
2089
+ return e.pos = t, false;
2090
+ };
2091
+ l.regexp_eatQuantifier = function(e, t) {
2092
+ return t === void 0 && (t = false), this.regexp_eatQuantifierPrefix(e, t) ? (e.eat(63), true) : false;
2093
+ };
2094
+ l.regexp_eatQuantifierPrefix = function(e, t) {
2095
+ return e.eat(42) || e.eat(43) || e.eat(63) || this.regexp_eatBracedQuantifier(e, t);
2096
+ };
2097
+ l.regexp_eatBracedQuantifier = function(e, t) {
2098
+ var i = e.pos;
2099
+ if (e.eat(123)) {
2100
+ var s = 0, r = -1;
2101
+ if (this.regexp_eatDecimalDigits(e) && (s = e.lastIntValue, e.eat(44) && this.regexp_eatDecimalDigits(e) && (r = e.lastIntValue), e.eat(125))) return r !== -1 && r < s && !t && e.raise("numbers out of order in {} quantifier"), true;
2102
+ e.switchU && !t && e.raise("Incomplete quantifier"), e.pos = i;
2103
+ }
2104
+ return false;
2105
+ };
2106
+ l.regexp_eatAtom = function(e) {
2107
+ return this.regexp_eatPatternCharacters(e) || e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e);
2108
+ };
2109
+ l.regexp_eatReverseSolidusAtomEscape = function(e) {
2110
+ var t = e.pos;
2111
+ if (e.eat(92)) {
2112
+ if (this.regexp_eatAtomEscape(e)) return true;
2113
+ e.pos = t;
2114
+ }
2115
+ return false;
2116
+ };
2117
+ l.regexp_eatUncapturingGroup = function(e) {
2118
+ var t = e.pos;
2119
+ if (e.eat(40)) {
2120
+ if (e.eat(63)) {
2121
+ if (this.options.ecmaVersion >= 16) {
2122
+ var i = this.regexp_eatModifiers(e), s = e.eat(45);
2123
+ if (i || s) {
2124
+ for (var r = 0; r < i.length; r++) {
2125
+ var n = i.charAt(r);
2126
+ i.indexOf(n, r + 1) > -1 && e.raise("Duplicate regular expression modifiers");
2127
+ }
2128
+ if (s) {
2129
+ var o = this.regexp_eatModifiers(e);
2130
+ !i && !o && e.current() === 58 && e.raise("Invalid regular expression modifiers");
2131
+ for (var p = 0; p < o.length; p++) {
2132
+ var u = o.charAt(p);
2133
+ (o.indexOf(u, p + 1) > -1 || i.indexOf(u) > -1) && e.raise("Duplicate regular expression modifiers");
2134
+ }
2135
+ }
2136
+ }
2137
+ }
2138
+ if (e.eat(58)) {
2139
+ if (this.regexp_disjunction(e), e.eat(41)) return true;
2140
+ e.raise("Unterminated group");
2141
+ }
2142
+ }
2143
+ e.pos = t;
2144
+ }
2145
+ return false;
2146
+ };
2147
+ l.regexp_eatCapturingGroup = function(e) {
2148
+ if (e.eat(40)) {
2149
+ 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;
2150
+ e.raise("Unterminated group");
2151
+ }
2152
+ return false;
2153
+ };
2154
+ l.regexp_eatModifiers = function(e) {
2155
+ for (var t = "", i = 0; (i = e.current()) !== -1 && us(i); ) t += G(i), e.advance();
2156
+ return t;
2157
+ };
2158
+ function us(e) {
2159
+ return e === 105 || e === 109 || e === 115;
2160
+ }
2161
+ l.regexp_eatExtendedAtom = function(e) {
2162
+ 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);
2163
+ };
2164
+ l.regexp_eatInvalidBracedQuantifier = function(e) {
2165
+ return this.regexp_eatBracedQuantifier(e, true) && e.raise("Nothing to repeat"), false;
2166
+ };
2167
+ l.regexp_eatSyntaxCharacter = function(e) {
2168
+ var t = e.current();
2169
+ return Mt(t) ? (e.lastIntValue = t, e.advance(), true) : false;
2170
+ };
2171
+ function Mt(e) {
2172
+ return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
2173
+ }
2174
+ l.regexp_eatPatternCharacters = function(e) {
2175
+ for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !Mt(i); ) e.advance();
2176
+ return e.pos !== t;
2177
+ };
2178
+ l.regexp_eatExtendedPatternCharacter = function(e) {
2179
+ var t = e.current();
2180
+ return t !== -1 && t !== 36 && !(t >= 40 && t <= 43) && t !== 46 && t !== 63 && t !== 91 && t !== 94 && t !== 124 ? (e.advance(), true) : false;
2181
+ };
2182
+ l.regexp_groupSpecifier = function(e) {
2183
+ if (e.eat(63)) {
2184
+ this.regexp_eatGroupName(e) || e.raise("Invalid group");
2185
+ var t = this.options.ecmaVersion >= 16, i = e.groupNames[e.lastStringValue];
2186
+ if (i) if (t) for (var s = 0, r = i; s < r.length; s += 1) {
2187
+ var n = r[s];
2188
+ n.separatedFrom(e.branchID) || e.raise("Duplicate capture group name");
2189
+ }
2190
+ else e.raise("Duplicate capture group name");
2191
+ t ? (i || (e.groupNames[e.lastStringValue] = [])).push(e.branchID) : e.groupNames[e.lastStringValue] = true;
2192
+ }
2193
+ };
2194
+ l.regexp_eatGroupName = function(e) {
2195
+ if (e.lastStringValue = "", e.eat(60)) {
2196
+ if (this.regexp_eatRegExpIdentifierName(e) && e.eat(62)) return true;
2197
+ e.raise("Invalid capture group name");
2198
+ }
2199
+ return false;
2200
+ };
2201
+ l.regexp_eatRegExpIdentifierName = function(e) {
2202
+ if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
2203
+ for (e.lastStringValue += G(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e); ) e.lastStringValue += G(e.lastIntValue);
2204
+ return true;
2205
+ }
2206
+ return false;
2207
+ };
2208
+ l.regexp_eatRegExpIdentifierStart = function(e) {
2209
+ var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
2210
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), ps(s) ? (e.lastIntValue = s, true) : (e.pos = t, false);
2211
+ };
2212
+ function ps(e) {
2213
+ return M(e, true) || e === 36 || e === 95;
2214
+ }
2215
+ l.regexp_eatRegExpIdentifierPart = function(e) {
2216
+ var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
2217
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), hs(s) ? (e.lastIntValue = s, true) : (e.pos = t, false);
2218
+ };
2219
+ function hs(e) {
2220
+ return K(e, true) || e === 36 || e === 95 || e === 8204 || e === 8205;
2221
+ }
2222
+ l.regexp_eatAtomEscape = function(e) {
2223
+ 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);
2224
+ };
2225
+ l.regexp_eatBackReference = function(e) {
2226
+ var t = e.pos;
2227
+ if (this.regexp_eatDecimalEscape(e)) {
2228
+ var i = e.lastIntValue;
2229
+ if (e.switchU) return i > e.maxBackReference && (e.maxBackReference = i), true;
2230
+ if (i <= e.numCapturingParens) return true;
2231
+ e.pos = t;
2232
+ }
2233
+ return false;
2234
+ };
2235
+ l.regexp_eatKGroupName = function(e) {
2236
+ if (e.eat(107)) {
2237
+ if (this.regexp_eatGroupName(e)) return e.backReferenceNames.push(e.lastStringValue), true;
2238
+ e.raise("Invalid named reference");
2239
+ }
2240
+ return false;
2241
+ };
2242
+ l.regexp_eatCharacterEscape = function(e) {
2243
+ 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);
2244
+ };
2245
+ l.regexp_eatCControlLetter = function(e) {
2246
+ var t = e.pos;
2247
+ if (e.eat(99)) {
2248
+ if (this.regexp_eatControlLetter(e)) return true;
2249
+ e.pos = t;
2250
+ }
2251
+ return false;
2252
+ };
2253
+ l.regexp_eatZero = function(e) {
2254
+ return e.current() === 48 && !Te(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), true) : false;
2255
+ };
2256
+ l.regexp_eatControlEscape = function(e) {
2257
+ var t = e.current();
2258
+ 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;
2259
+ };
2260
+ l.regexp_eatControlLetter = function(e) {
2261
+ var t = e.current();
2262
+ return jt(t) ? (e.lastIntValue = t % 32, e.advance(), true) : false;
2263
+ };
2264
+ function jt(e) {
2265
+ return e >= 65 && e <= 90 || e >= 97 && e <= 122;
2266
+ }
2267
+ l.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
2268
+ t === void 0 && (t = false);
2269
+ var i = e.pos, s = t || e.switchU;
2270
+ if (e.eat(117)) {
2271
+ if (this.regexp_eatFixedHexDigits(e, 4)) {
2272
+ var r = e.lastIntValue;
2273
+ if (s && r >= 55296 && r <= 56319) {
2274
+ var n = e.pos;
2275
+ if (e.eat(92) && e.eat(117) && this.regexp_eatFixedHexDigits(e, 4)) {
2276
+ var o = e.lastIntValue;
2277
+ if (o >= 56320 && o <= 57343) return e.lastIntValue = (r - 55296) * 1024 + (o - 56320) + 65536, true;
2278
+ }
2279
+ e.pos = n, e.lastIntValue = r;
2280
+ }
2281
+ return true;
2282
+ }
2283
+ if (s && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && cs(e.lastIntValue)) return true;
2284
+ s && e.raise("Invalid unicode escape"), e.pos = i;
2285
+ }
2286
+ return false;
2287
+ };
2288
+ function cs(e) {
2289
+ return e >= 0 && e <= 1114111;
2290
+ }
2291
+ l.regexp_eatIdentityEscape = function(e) {
2292
+ if (e.switchU) return this.regexp_eatSyntaxCharacter(e) ? true : e.eat(47) ? (e.lastIntValue = 47, true) : false;
2293
+ var t = e.current();
2294
+ return t !== 99 && (!e.switchN || t !== 107) ? (e.lastIntValue = t, e.advance(), true) : false;
2295
+ };
2296
+ l.regexp_eatDecimalEscape = function(e) {
2297
+ e.lastIntValue = 0;
2298
+ var t = e.current();
2299
+ if (t >= 49 && t <= 57) {
2300
+ do
2301
+ e.lastIntValue = 10 * e.lastIntValue + (t - 48), e.advance();
2302
+ while ((t = e.current()) >= 48 && t <= 57);
2303
+ return true;
2304
+ }
2305
+ return false;
2306
+ };
2307
+ var Ut = 0;
2308
+ var q = 1;
2309
+ var B = 2;
2310
+ l.regexp_eatCharacterClassEscape = function(e) {
2311
+ var t = e.current();
2312
+ if (ls(t)) return e.lastIntValue = -1, e.advance(), q;
2313
+ var i = false;
2314
+ if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
2315
+ e.lastIntValue = -1, e.advance();
2316
+ var s;
2317
+ if (e.eat(123) && (s = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return i && s === B && e.raise("Invalid property name"), s;
2318
+ e.raise("Invalid property name");
2319
+ }
2320
+ return Ut;
2321
+ };
2322
+ function ls(e) {
2323
+ return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
2324
+ }
2325
+ l.regexp_eatUnicodePropertyValueExpression = function(e) {
2326
+ var t = e.pos;
2327
+ if (this.regexp_eatUnicodePropertyName(e) && e.eat(61)) {
2328
+ var i = e.lastStringValue;
2329
+ if (this.regexp_eatUnicodePropertyValue(e)) {
2330
+ var s = e.lastStringValue;
2331
+ return this.regexp_validateUnicodePropertyNameAndValue(e, i, s), q;
2332
+ }
2333
+ }
2334
+ if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
2335
+ var r = e.lastStringValue;
2336
+ return this.regexp_validateUnicodePropertyNameOrValue(e, r);
2337
+ }
2338
+ return Ut;
2339
+ };
2340
+ l.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
2341
+ $(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
2342
+ };
2343
+ l.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
2344
+ if (e.unicodeProperties.binary.test(t)) return q;
2345
+ if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return B;
2346
+ e.raise("Invalid property name");
2347
+ };
2348
+ l.regexp_eatUnicodePropertyName = function(e) {
2349
+ var t = 0;
2350
+ for (e.lastStringValue = ""; Gt(t = e.current()); ) e.lastStringValue += G(t), e.advance();
2351
+ return e.lastStringValue !== "";
2352
+ };
2353
+ function Gt(e) {
2354
+ return jt(e) || e === 95;
2355
+ }
2356
+ l.regexp_eatUnicodePropertyValue = function(e) {
2357
+ var t = 0;
2358
+ for (e.lastStringValue = ""; fs(t = e.current()); ) e.lastStringValue += G(t), e.advance();
2359
+ return e.lastStringValue !== "";
2360
+ };
2361
+ function fs(e) {
2362
+ return Gt(e) || Te(e);
2363
+ }
2364
+ l.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
2365
+ return this.regexp_eatUnicodePropertyValue(e);
2366
+ };
2367
+ l.regexp_eatCharacterClass = function(e) {
2368
+ if (e.eat(91)) {
2369
+ var t = e.eat(94), i = this.regexp_classContents(e);
2370
+ return e.eat(93) || e.raise("Unterminated character class"), t && i === B && e.raise("Negated character class may contain strings"), true;
2371
+ }
2372
+ return false;
2373
+ };
2374
+ l.regexp_classContents = function(e) {
2375
+ return e.current() === 93 ? q : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), q);
2376
+ };
2377
+ l.regexp_nonEmptyClassRanges = function(e) {
2378
+ for (; this.regexp_eatClassAtom(e); ) {
2379
+ var t = e.lastIntValue;
2380
+ if (e.eat(45) && this.regexp_eatClassAtom(e)) {
2381
+ var i = e.lastIntValue;
2382
+ 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");
2383
+ }
2384
+ }
2385
+ };
2386
+ l.regexp_eatClassAtom = function(e) {
2387
+ var t = e.pos;
2388
+ if (e.eat(92)) {
2389
+ if (this.regexp_eatClassEscape(e)) return true;
2390
+ if (e.switchU) {
2391
+ var i = e.current();
2392
+ (i === 99 || Ht(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
2393
+ }
2394
+ e.pos = t;
2395
+ }
2396
+ var s = e.current();
2397
+ return s !== 93 ? (e.lastIntValue = s, e.advance(), true) : false;
2398
+ };
2399
+ l.regexp_eatClassEscape = function(e) {
2400
+ var t = e.pos;
2401
+ if (e.eat(98)) return e.lastIntValue = 8, true;
2402
+ if (e.switchU && e.eat(45)) return e.lastIntValue = 45, true;
2403
+ if (!e.switchU && e.eat(99)) {
2404
+ if (this.regexp_eatClassControlLetter(e)) return true;
2405
+ e.pos = t;
2406
+ }
2407
+ return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
2408
+ };
2409
+ l.regexp_classSetExpression = function(e) {
2410
+ var t = q, i;
2411
+ if (!this.regexp_eatClassSetRange(e)) if (i = this.regexp_eatClassSetOperand(e)) {
2412
+ i === B && (t = B);
2413
+ for (var s = e.pos; e.eatChars([38, 38]); ) {
2414
+ if (e.current() !== 38 && (i = this.regexp_eatClassSetOperand(e))) {
2415
+ i !== B && (t = q);
2416
+ continue;
2417
+ }
2418
+ e.raise("Invalid character in character class");
2419
+ }
2420
+ if (s !== e.pos) return t;
2421
+ for (; e.eatChars([45, 45]); ) this.regexp_eatClassSetOperand(e) || e.raise("Invalid character in character class");
2422
+ if (s !== e.pos) return t;
2423
+ } else e.raise("Invalid character in character class");
2424
+ for (; ; ) if (!this.regexp_eatClassSetRange(e)) {
2425
+ if (i = this.regexp_eatClassSetOperand(e), !i) return t;
2426
+ i === B && (t = B);
2427
+ }
2428
+ };
2429
+ l.regexp_eatClassSetRange = function(e) {
2430
+ var t = e.pos;
2431
+ if (this.regexp_eatClassSetCharacter(e)) {
2432
+ var i = e.lastIntValue;
2433
+ if (e.eat(45) && this.regexp_eatClassSetCharacter(e)) {
2434
+ var s = e.lastIntValue;
2435
+ return i !== -1 && s !== -1 && i > s && e.raise("Range out of order in character class"), true;
2436
+ }
2437
+ e.pos = t;
2438
+ }
2439
+ return false;
2440
+ };
2441
+ l.regexp_eatClassSetOperand = function(e) {
2442
+ return this.regexp_eatClassSetCharacter(e) ? q : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
2443
+ };
2444
+ l.regexp_eatNestedClass = function(e) {
2445
+ var t = e.pos;
2446
+ if (e.eat(91)) {
2447
+ var i = e.eat(94), s = this.regexp_classContents(e);
2448
+ if (e.eat(93)) return i && s === B && e.raise("Negated character class may contain strings"), s;
2449
+ e.pos = t;
2450
+ }
2451
+ if (e.eat(92)) {
2452
+ var r = this.regexp_eatCharacterClassEscape(e);
2453
+ if (r) return r;
2454
+ e.pos = t;
2455
+ }
2456
+ return null;
2457
+ };
2458
+ l.regexp_eatClassStringDisjunction = function(e) {
2459
+ var t = e.pos;
2460
+ if (e.eatChars([92, 113])) {
2461
+ if (e.eat(123)) {
2462
+ var i = this.regexp_classStringDisjunctionContents(e);
2463
+ if (e.eat(125)) return i;
2464
+ } else e.raise("Invalid escape");
2465
+ e.pos = t;
2466
+ }
2467
+ return null;
2468
+ };
2469
+ l.regexp_classStringDisjunctionContents = function(e) {
2470
+ for (var t = this.regexp_classString(e); e.eat(124); ) this.regexp_classString(e) === B && (t = B);
2471
+ return t;
2472
+ };
2473
+ l.regexp_classString = function(e) {
2474
+ for (var t = 0; this.regexp_eatClassSetCharacter(e); ) t++;
2475
+ return t === 1 ? q : B;
2476
+ };
2477
+ l.regexp_eatClassSetCharacter = function(e) {
2478
+ var t = e.pos;
2479
+ 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);
2480
+ var i = e.current();
2481
+ return i < 0 || i === e.lookahead() && ds(i) || ms(i) ? false : (e.advance(), e.lastIntValue = i, true);
2482
+ };
2483
+ function ds(e) {
2484
+ return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
2485
+ }
2486
+ function ms(e) {
2487
+ return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
2488
+ }
2489
+ l.regexp_eatClassSetReservedPunctuator = function(e) {
2490
+ var t = e.current();
2491
+ return xs(t) ? (e.lastIntValue = t, e.advance(), true) : false;
2492
+ };
2493
+ function xs(e) {
2494
+ return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
2495
+ }
2496
+ l.regexp_eatClassControlLetter = function(e) {
2497
+ var t = e.current();
2498
+ return Te(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), true) : false;
2499
+ };
2500
+ l.regexp_eatHexEscapeSequence = function(e) {
2501
+ var t = e.pos;
2502
+ if (e.eat(120)) {
2503
+ if (this.regexp_eatFixedHexDigits(e, 2)) return true;
2504
+ e.switchU && e.raise("Invalid escape"), e.pos = t;
2505
+ }
2506
+ return false;
2507
+ };
2508
+ l.regexp_eatDecimalDigits = function(e) {
2509
+ var t = e.pos, i = 0;
2510
+ for (e.lastIntValue = 0; Te(i = e.current()); ) e.lastIntValue = 10 * e.lastIntValue + (i - 48), e.advance();
2511
+ return e.pos !== t;
2512
+ };
2513
+ function Te(e) {
2514
+ return e >= 48 && e <= 57;
2515
+ }
2516
+ l.regexp_eatHexDigits = function(e) {
2517
+ var t = e.pos, i = 0;
2518
+ for (e.lastIntValue = 0; qt(i = e.current()); ) e.lastIntValue = 16 * e.lastIntValue + Jt(i), e.advance();
2519
+ return e.pos !== t;
2520
+ };
2521
+ function qt(e) {
2522
+ return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
2523
+ }
2524
+ function Jt(e) {
2525
+ return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
2526
+ }
2527
+ l.regexp_eatLegacyOctalEscapeSequence = function(e) {
2528
+ if (this.regexp_eatOctalDigit(e)) {
2529
+ var t = e.lastIntValue;
2530
+ if (this.regexp_eatOctalDigit(e)) {
2531
+ var i = e.lastIntValue;
2532
+ t <= 3 && this.regexp_eatOctalDigit(e) ? e.lastIntValue = t * 64 + i * 8 + e.lastIntValue : e.lastIntValue = t * 8 + i;
2533
+ } else e.lastIntValue = t;
2534
+ return true;
2535
+ }
2536
+ return false;
2537
+ };
2538
+ l.regexp_eatOctalDigit = function(e) {
2539
+ var t = e.current();
2540
+ return Ht(t) ? (e.lastIntValue = t - 48, e.advance(), true) : (e.lastIntValue = 0, false);
2541
+ };
2542
+ function Ht(e) {
2543
+ return e >= 48 && e <= 55;
2544
+ }
2545
+ l.regexp_eatFixedHexDigits = function(e, t) {
2546
+ var i = e.pos;
2547
+ e.lastIntValue = 0;
2548
+ for (var s = 0; s < t; ++s) {
2549
+ var r = e.current();
2550
+ if (!qt(r)) return e.pos = i, false;
2551
+ e.lastIntValue = 16 * e.lastIntValue + Jt(r), e.advance();
2552
+ }
2553
+ return true;
2554
+ };
2555
+ var Ke = function(t) {
2556
+ this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new ge(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
2557
+ };
2558
+ var b = E.prototype;
2559
+ b.next = function(e) {
2560
+ !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Ke(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
2561
+ };
2562
+ b.getToken = function() {
2563
+ return this.next(), new Ke(this);
2564
+ };
2565
+ typeof Symbol < "u" && (b[Symbol.iterator] = function() {
2566
+ var e = this;
2567
+ return {
2568
+ next: function() {
2569
+ var t = e.getToken();
2570
+ return {
2571
+ done: t.type === a.eof,
2572
+ value: t
2573
+ };
2574
+ }
2575
+ };
2576
+ });
2577
+ b.nextToken = function() {
2578
+ var e = this.curContext();
2579
+ 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);
2580
+ if (e.override) return e.override(this);
2581
+ this.readToken(this.fullCharCodeAtPos());
2582
+ };
2583
+ b.readToken = function(e) {
2584
+ return M(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
2585
+ };
2586
+ b.fullCharCodeAtPos = function() {
2587
+ var e = this.input.charCodeAt(this.pos);
2588
+ if (e <= 55295 || e >= 56320) return e;
2589
+ var t = this.input.charCodeAt(this.pos + 1);
2590
+ return t <= 56319 || t >= 57344 ? e : (e << 10) + t - 56613888;
2591
+ };
2592
+ b.skipBlockComment = function() {
2593
+ var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
2594
+ if (i === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = i + 2, this.options.locations) for (var s = void 0, r = t; (s = mt(this.input, r, this.pos)) > -1; ) ++this.curLine, r = this.lineStart = s;
2595
+ this.options.onComment && this.options.onComment(true, this.input.slice(t + 2, i), t, this.pos, e, this.curPosition());
2596
+ };
2597
+ b.skipLineComment = function(e) {
2598
+ for (var t = this.pos, i = this.options.onComment && this.curPosition(), s = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !Y(s); ) s = this.input.charCodeAt(++this.pos);
2599
+ this.options.onComment && this.options.onComment(false, this.input.slice(t + e, this.pos), t, this.pos, i, this.curPosition());
2600
+ };
2601
+ b.skipSpace = function() {
2602
+ e: for (; this.pos < this.input.length; ) {
2603
+ var e = this.input.charCodeAt(this.pos);
2604
+ switch (e) {
2605
+ case 32:
2606
+ case 160:
2607
+ ++this.pos;
2608
+ break;
2609
+ case 13:
2610
+ this.input.charCodeAt(this.pos + 1) === 10 && ++this.pos;
2611
+ case 10:
2612
+ case 8232:
2613
+ case 8233:
2614
+ ++this.pos, this.options.locations && (++this.curLine, this.lineStart = this.pos);
2615
+ break;
2616
+ case 47:
2617
+ switch (this.input.charCodeAt(this.pos + 1)) {
2618
+ case 42:
2619
+ this.skipBlockComment();
2620
+ break;
2621
+ case 47:
2622
+ this.skipLineComment(2);
2623
+ break;
2624
+ default:
2625
+ break e;
2626
+ }
2627
+ break;
2628
+ default:
2629
+ if (e > 8 && e < 14 || e >= 5760 && xt.test(String.fromCharCode(e))) ++this.pos;
2630
+ else break e;
2631
+ }
2632
+ }
2633
+ };
2634
+ b.finishToken = function(e, t) {
2635
+ this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
2636
+ var i = this.type;
2637
+ this.type = e, this.value = t, this.updateContext(i);
2638
+ };
2639
+ b.readToken_dot = function() {
2640
+ var e = this.input.charCodeAt(this.pos + 1);
2641
+ if (e >= 48 && e <= 57) return this.readNumber(true);
2642
+ var t = this.input.charCodeAt(this.pos + 2);
2643
+ return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(a.ellipsis)) : (++this.pos, this.finishToken(a.dot));
2644
+ };
2645
+ b.readToken_slash = function() {
2646
+ var e = this.input.charCodeAt(this.pos + 1);
2647
+ return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.slash, 1);
2648
+ };
2649
+ b.readToken_mult_modulo_exp = function(e) {
2650
+ var t = this.input.charCodeAt(this.pos + 1), i = 1, s = e === 42 ? a.star : a.modulo;
2651
+ return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++i, s = a.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(a.assign, i + 1) : this.finishOp(s, i);
2652
+ };
2653
+ b.readToken_pipe_amp = function(e) {
2654
+ var t = this.input.charCodeAt(this.pos + 1);
2655
+ if (t === e) {
2656
+ if (this.options.ecmaVersion >= 12) {
2657
+ var i = this.input.charCodeAt(this.pos + 2);
2658
+ if (i === 61) return this.finishOp(a.assign, 3);
2659
+ }
2660
+ return this.finishOp(e === 124 ? a.logicalOR : a.logicalAND, 2);
2661
+ }
2662
+ return t === 61 ? this.finishOp(a.assign, 2) : this.finishOp(e === 124 ? a.bitwiseOR : a.bitwiseAND, 1);
2663
+ };
2664
+ b.readToken_caret = function() {
2665
+ var e = this.input.charCodeAt(this.pos + 1);
2666
+ return e === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.bitwiseXOR, 1);
2667
+ };
2668
+ b.readToken_plus_min = function(e) {
2669
+ var t = this.input.charCodeAt(this.pos + 1);
2670
+ return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || V.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);
2671
+ };
2672
+ b.readToken_lt_gt = function(e) {
2673
+ var t = this.input.charCodeAt(this.pos + 1), i = 1;
2674
+ 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));
2675
+ };
2676
+ b.readToken_eq_excl = function(e) {
2677
+ var t = this.input.charCodeAt(this.pos + 1);
2678
+ 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);
2679
+ };
2680
+ b.readToken_question = function() {
2681
+ var e = this.options.ecmaVersion;
2682
+ if (e >= 11) {
2683
+ var t = this.input.charCodeAt(this.pos + 1);
2684
+ if (t === 46) {
2685
+ var i = this.input.charCodeAt(this.pos + 2);
2686
+ if (i < 48 || i > 57) return this.finishOp(a.questionDot, 2);
2687
+ }
2688
+ if (t === 63) {
2689
+ if (e >= 12) {
2690
+ var s = this.input.charCodeAt(this.pos + 2);
2691
+ if (s === 61) return this.finishOp(a.assign, 3);
2692
+ }
2693
+ return this.finishOp(a.coalesce, 2);
2694
+ }
2695
+ }
2696
+ return this.finishOp(a.question, 1);
2697
+ };
2698
+ b.readToken_numberSign = function() {
2699
+ var e = this.options.ecmaVersion, t = 35;
2700
+ if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), M(t, true) || t === 92)) return this.finishToken(a.privateId, this.readWord1());
2701
+ this.raise(this.pos, "Unexpected character '" + G(t) + "'");
2702
+ };
2703
+ b.getTokenFromCode = function(e) {
2704
+ switch (e) {
2705
+ case 46:
2706
+ return this.readToken_dot();
2707
+ case 40:
2708
+ return ++this.pos, this.finishToken(a.parenL);
2709
+ case 41:
2710
+ return ++this.pos, this.finishToken(a.parenR);
2711
+ case 59:
2712
+ return ++this.pos, this.finishToken(a.semi);
2713
+ case 44:
2714
+ return ++this.pos, this.finishToken(a.comma);
2715
+ case 91:
2716
+ return ++this.pos, this.finishToken(a.bracketL);
2717
+ case 93:
2718
+ return ++this.pos, this.finishToken(a.bracketR);
2719
+ case 123:
2720
+ return ++this.pos, this.finishToken(a.braceL);
2721
+ case 125:
2722
+ return ++this.pos, this.finishToken(a.braceR);
2723
+ case 58:
2724
+ return ++this.pos, this.finishToken(a.colon);
2725
+ case 96:
2726
+ if (this.options.ecmaVersion < 6) break;
2727
+ return ++this.pos, this.finishToken(a.backQuote);
2728
+ case 48:
2729
+ var t = this.input.charCodeAt(this.pos + 1);
2730
+ if (t === 120 || t === 88) return this.readRadixNumber(16);
2731
+ if (this.options.ecmaVersion >= 6) {
2732
+ if (t === 111 || t === 79) return this.readRadixNumber(8);
2733
+ if (t === 98 || t === 66) return this.readRadixNumber(2);
2734
+ }
2735
+ case 49:
2736
+ case 50:
2737
+ case 51:
2738
+ case 52:
2739
+ case 53:
2740
+ case 54:
2741
+ case 55:
2742
+ case 56:
2743
+ case 57:
2744
+ return this.readNumber(false);
2745
+ case 34:
2746
+ case 39:
2747
+ return this.readString(e);
2748
+ case 47:
2749
+ return this.readToken_slash();
2750
+ case 37:
2751
+ case 42:
2752
+ return this.readToken_mult_modulo_exp(e);
2753
+ case 124:
2754
+ case 38:
2755
+ return this.readToken_pipe_amp(e);
2756
+ case 94:
2757
+ return this.readToken_caret();
2758
+ case 43:
2759
+ case 45:
2760
+ return this.readToken_plus_min(e);
2761
+ case 60:
2762
+ case 62:
2763
+ return this.readToken_lt_gt(e);
2764
+ case 61:
2765
+ case 33:
2766
+ return this.readToken_eq_excl(e);
2767
+ case 63:
2768
+ return this.readToken_question();
2769
+ case 126:
2770
+ return this.finishOp(a.prefix, 1);
2771
+ case 35:
2772
+ return this.readToken_numberSign();
2773
+ }
2774
+ this.raise(this.pos, "Unexpected character '" + G(e) + "'");
2775
+ };
2776
+ b.finishOp = function(e, t) {
2777
+ var i = this.input.slice(this.pos, this.pos + t);
2778
+ return this.pos += t, this.finishToken(e, i);
2779
+ };
2780
+ b.readRegexp = function() {
2781
+ for (var e, t, i = this.pos; ; ) {
2782
+ this.pos >= this.input.length && this.raise(i, "Unterminated regular expression");
2783
+ var s = this.input.charAt(this.pos);
2784
+ if (V.test(s) && this.raise(i, "Unterminated regular expression"), e) e = false;
2785
+ else {
2786
+ if (s === "[") t = true;
2787
+ else if (s === "]" && t) t = false;
2788
+ else if (s === "/" && !t) break;
2789
+ e = s === "\\";
2790
+ }
2791
+ ++this.pos;
2792
+ }
2793
+ var r = this.input.slice(i, this.pos);
2794
+ ++this.pos;
2795
+ var n = this.pos, o = this.readWord1();
2796
+ this.containsEsc && this.unexpected(n);
2797
+ var p = this.regexpState || (this.regexpState = new U(this));
2798
+ p.reset(i, r, o), this.validateRegExpFlags(p), this.validateRegExpPattern(p);
2799
+ var u = null;
2800
+ try {
2801
+ u = new RegExp(r, o);
2802
+ } catch {
2803
+ }
2804
+ return this.finishToken(a.regexp, {
2805
+ pattern: r,
2806
+ flags: o,
2807
+ value: u
2808
+ });
2809
+ };
2810
+ b.readInt = function(e, t, i) {
2811
+ for (var s = this.options.ecmaVersion >= 12 && t === void 0, r = i && this.input.charCodeAt(this.pos) === 48, n = this.pos, o = 0, p = 0, u = 0, c = t ?? 1 / 0; u < c; ++u, ++this.pos) {
2812
+ var f = this.input.charCodeAt(this.pos), v = void 0;
2813
+ if (s && f === 95) {
2814
+ r && this.raiseRecoverable(this.pos, "Numeric separator is not allowed in legacy octal numeric literals"), p === 95 && this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore"), u === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), p = f;
2815
+ continue;
2816
+ }
2817
+ if (f >= 97 ? v = f - 97 + 10 : f >= 65 ? v = f - 65 + 10 : f >= 48 && f <= 57 ? v = f - 48 : v = 1 / 0, v >= e) break;
2818
+ p = f, o = o * e + v;
2819
+ }
2820
+ return s && p === 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;
2821
+ };
2822
+ function ys(e, t) {
2823
+ return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
2824
+ }
2825
+ function Kt(e) {
2826
+ return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
2827
+ }
2828
+ b.readRadixNumber = function(e) {
2829
+ var t = this.pos;
2830
+ this.pos += 2;
2831
+ var i = this.readInt(e);
2832
+ return i == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = Kt(this.input.slice(t, this.pos)), ++this.pos) : M(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, i);
2833
+ };
2834
+ b.readNumber = function(e) {
2835
+ var t = this.pos;
2836
+ !e && this.readInt(10, void 0, true) === null && this.raise(t, "Invalid number");
2837
+ var i = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
2838
+ i && this.strict && this.raise(t, "Invalid number");
2839
+ var s = this.input.charCodeAt(this.pos);
2840
+ if (!i && !e && this.options.ecmaVersion >= 11 && s === 110) {
2841
+ var r = Kt(this.input.slice(t, this.pos));
2842
+ return ++this.pos, M(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, r);
2843
+ }
2844
+ i && /[89]/.test(this.input.slice(t, this.pos)) && (i = false), s === 46 && !i && (++this.pos, this.readInt(10), s = this.input.charCodeAt(this.pos)), (s === 69 || s === 101) && !i && (s = this.input.charCodeAt(++this.pos), (s === 43 || s === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), M(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
2845
+ var n = ys(this.input.slice(t, this.pos), i);
2846
+ return this.finishToken(a.num, n);
2847
+ };
2848
+ b.readCodePoint = function() {
2849
+ var e = this.input.charCodeAt(this.pos), t;
2850
+ if (e === 123) {
2851
+ this.options.ecmaVersion < 6 && this.unexpected();
2852
+ var i = ++this.pos;
2853
+ t = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, t > 1114111 && this.invalidStringToken(i, "Code point out of bounds");
2854
+ } else t = this.readHexChar(4);
2855
+ return t;
2856
+ };
2857
+ b.readString = function(e) {
2858
+ for (var t = "", i = ++this.pos; ; ) {
2859
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
2860
+ var s = this.input.charCodeAt(this.pos);
2861
+ if (s === e) break;
2862
+ s === 92 ? (t += this.input.slice(i, this.pos), t += this.readEscapedChar(false), i = this.pos) : s === 8232 || s === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (Y(s) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
2863
+ }
2864
+ return t += this.input.slice(i, this.pos++), this.finishToken(a.string, t);
2865
+ };
2866
+ var Wt = {};
2867
+ b.tryReadTemplateToken = function() {
2868
+ this.inTemplateElement = true;
2869
+ try {
2870
+ this.readTmplToken();
2871
+ } catch (e) {
2872
+ if (e === Wt) this.readInvalidTemplateToken();
2873
+ else throw e;
2874
+ }
2875
+ this.inTemplateElement = false;
2876
+ };
2877
+ b.invalidStringToken = function(e, t) {
2878
+ if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw Wt;
2879
+ this.raise(e, t);
2880
+ };
2881
+ b.readTmplToken = function() {
2882
+ for (var e = "", t = this.pos; ; ) {
2883
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
2884
+ var i = this.input.charCodeAt(this.pos);
2885
+ 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));
2886
+ if (i === 92) e += this.input.slice(t, this.pos), e += this.readEscapedChar(true), t = this.pos;
2887
+ else if (Y(i)) {
2888
+ switch (e += this.input.slice(t, this.pos), ++this.pos, i) {
2889
+ case 13:
2890
+ this.input.charCodeAt(this.pos) === 10 && ++this.pos;
2891
+ case 10:
2892
+ e += `
2893
+ `;
2894
+ break;
2895
+ default:
2896
+ e += String.fromCharCode(i);
2897
+ break;
2898
+ }
2899
+ this.options.locations && (++this.curLine, this.lineStart = this.pos), t = this.pos;
2900
+ } else ++this.pos;
2901
+ }
2902
+ };
2903
+ b.readInvalidTemplateToken = function() {
2904
+ for (; this.pos < this.input.length; this.pos++) switch (this.input[this.pos]) {
2905
+ case "\\":
2906
+ ++this.pos;
2907
+ break;
2908
+ case "$":
2909
+ if (this.input[this.pos + 1] !== "{") break;
2910
+ case "`":
2911
+ return this.finishToken(a.invalidTemplate, this.input.slice(this.start, this.pos));
2912
+ case "\r":
2913
+ this.input[this.pos + 1] === `
2914
+ ` && ++this.pos;
2915
+ case `
2916
+ `:
2917
+ case "\u2028":
2918
+ case "\u2029":
2919
+ ++this.curLine, this.lineStart = this.pos + 1;
2920
+ break;
2921
+ }
2922
+ this.raise(this.start, "Unterminated template");
2923
+ };
2924
+ b.readEscapedChar = function(e) {
2925
+ var t = this.input.charCodeAt(++this.pos);
2926
+ switch (++this.pos, t) {
2927
+ case 110:
2928
+ return `
2929
+ `;
2930
+ case 114:
2931
+ return "\r";
2932
+ case 120:
2933
+ return String.fromCharCode(this.readHexChar(2));
2934
+ case 117:
2935
+ return G(this.readCodePoint());
2936
+ case 116:
2937
+ return " ";
2938
+ case 98:
2939
+ return "\b";
2940
+ case 118:
2941
+ return "\v";
2942
+ case 102:
2943
+ return "\f";
2944
+ case 13:
2945
+ this.input.charCodeAt(this.pos) === 10 && ++this.pos;
2946
+ case 10:
2947
+ return this.options.locations && (this.lineStart = this.pos, ++this.curLine), "";
2948
+ case 56:
2949
+ case 57:
2950
+ if (this.strict && this.invalidStringToken(this.pos - 1, "Invalid escape sequence"), e) {
2951
+ var i = this.pos - 1;
2952
+ this.invalidStringToken(i, "Invalid escape sequence in template string");
2953
+ }
2954
+ default:
2955
+ if (t >= 48 && t <= 55) {
2956
+ var s = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], r = parseInt(s, 8);
2957
+ return r > 255 && (s = s.slice(0, -1), r = parseInt(s, 8)), this.pos += s.length - 1, t = this.input.charCodeAt(this.pos), (s !== "0" || t === 56 || t === 57) && (this.strict || e) && this.invalidStringToken(this.pos - 1 - s.length, e ? "Octal literal in template string" : "Octal literal in strict mode"), String.fromCharCode(r);
2958
+ }
2959
+ return Y(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
2960
+ }
2961
+ };
2962
+ b.readHexChar = function(e) {
2963
+ var t = this.pos, i = this.readInt(16, e);
2964
+ return i === null && this.invalidStringToken(t, "Bad character escape sequence"), i;
2965
+ };
2966
+ b.readWord1 = function() {
2967
+ this.containsEsc = false;
2968
+ for (var e = "", t = true, i = this.pos, s = this.options.ecmaVersion >= 6; this.pos < this.input.length; ) {
2969
+ var r = this.fullCharCodeAtPos();
2970
+ if (K(r, s)) this.pos += r <= 65535 ? 1 : 2;
2971
+ else if (r === 92) {
2972
+ this.containsEsc = true, e += this.input.slice(i, this.pos);
2973
+ var n = this.pos;
2974
+ this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
2975
+ var o = this.readCodePoint();
2976
+ (t ? M : K)(o, s) || this.invalidStringToken(n, "Invalid Unicode escape"), e += G(o), i = this.pos;
2977
+ } else break;
2978
+ t = false;
2979
+ }
2980
+ return e + this.input.slice(i, this.pos);
2981
+ };
2982
+ b.readWord = function() {
2983
+ var e = this.readWord1(), t = a.name;
2984
+ return this.keywords.test(e) && (t = je[e]), this.finishToken(t, e);
2985
+ };
2986
+ var gs = "8.15.0";
2987
+ E.acorn = {
2988
+ Parser: E,
2989
+ version: gs,
2990
+ defaultOptions: De,
2991
+ Position: ae,
2992
+ SourceLocation: ge,
2993
+ getLineInfo: gt,
2994
+ Node: _e,
2995
+ TokenType: _,
2996
+ tokTypes: a,
2997
+ keywordTypes: je,
2998
+ TokContext: F,
2999
+ tokContexts: C,
3000
+ isIdentifierChar: K,
3001
+ isIdentifierStart: M,
3002
+ Token: Ke,
3003
+ isNewLine: Y,
3004
+ lineBreak: V,
3005
+ lineBreakG: Ui,
3006
+ nonASCIIwhitespace: xt
3007
+ };
3008
+ var bi = ot(Xe());
3009
+ function Cs(e, t) {
3010
+ let i = new SyntaxError(e + " (" + t.loc.start.line + ":" + t.loc.start.column + ")");
3011
+ return Object.assign(i, t);
3012
+ }
3013
+ var Ce = Cs;
3014
+ function Es(e) {
3015
+ let t = [];
3016
+ for (let i of e) try {
3017
+ return i();
3018
+ } catch (s) {
3019
+ t.push(s);
3020
+ }
3021
+ throw Object.assign(new Error("All combinations failed"), {
3022
+ errors: t
3023
+ });
3024
+ }
3025
+ var Ee = Es;
3026
+ var ks = (e, t, i) => {
3027
+ if (!(e && t == null)) {
3028
+ if (t.findLast) return t.findLast(i);
3029
+ for (let s = t.length - 1; s >= 0; s--) {
3030
+ let r = t[s];
3031
+ if (i(r, s, t)) return r;
3032
+ }
3033
+ }
3034
+ };
3035
+ var $t = ks;
3036
+ var As = (e, t, i) => {
3037
+ if (!(e && t == null)) return Array.isArray(t) || typeof t == "string" ? t[i < 0 ? t.length + i : i] : t.at(i);
3038
+ };
3039
+ var te = As;
3040
+ var ws = new Proxy(() => {
3041
+ }, {
3042
+ get: () => ws
3043
+ });
3044
+ function w(e) {
3045
+ var s, r, n;
3046
+ let t = ((s = e.range) == null ? void 0 : s[0]) ?? e.start, i = (n = ((r = e.declaration) == null ? void 0 : r.decorators) ?? e.decorators) == null ? void 0 : n[0];
3047
+ return i ? Math.min(w(i), t) : t;
3048
+ }
3049
+ function k(e) {
3050
+ var i;
3051
+ return ((i = e.range) == null ? void 0 : i[1]) ?? e.end;
3052
+ }
3053
+ function Ps(e) {
3054
+ let t = new Set(e);
3055
+ return (i) => t.has(i == null ? void 0 : i.type);
3056
+ }
3057
+ var ie = Ps;
3058
+ function Is(e, t, i) {
3059
+ let s = e.originalText.slice(t, i);
3060
+ for (let r of e[Symbol.for("comments")]) {
3061
+ let n = w(r);
3062
+ if (n > i) break;
3063
+ let o = k(r);
3064
+ if (o < t) continue;
3065
+ let p = o - n;
3066
+ s = s.slice(0, n - t) + " ".repeat(p) + s.slice(o - t);
3067
+ }
3068
+ return s;
3069
+ }
3070
+ var Zt = Is;
3071
+ var Ns = ie(["Block", "CommentBlock", "MultiLine"]);
3072
+ var z = Ns;
3073
+ var Ls = ie(["Line", "CommentLine", "SingleLine", "HashbangComment", "HTMLOpen", "HTMLClose", "Hashbang", "InterpreterDirective"]);
3074
+ var ze = Ls;
3075
+ var Qe = /* @__PURE__ */ new WeakMap();
3076
+ function Vs(e) {
3077
+ return Qe.has(e) || Qe.set(e, z(e) && e.value[0] === "*" && /@(?:type|satisfies)\b/u.test(e.value)), Qe.get(e);
3078
+ }
3079
+ var ei = Vs;
3080
+ function Rs(e) {
3081
+ if (!z(e)) return false;
3082
+ let t = `*${e.value}*`.split(`
3083
+ `);
3084
+ return t.length > 1 && t.every((i) => i.trimStart()[0] === "*");
3085
+ }
3086
+ var Ye = /* @__PURE__ */ new WeakMap();
3087
+ function Os(e) {
3088
+ return Ye.has(e) || Ye.set(e, Rs(e)), Ye.get(e);
3089
+ }
3090
+ var $e = Os;
3091
+ function Bs(e) {
3092
+ if (e.length < 2) return;
3093
+ let t;
3094
+ for (let i = e.length - 1; i >= 0; i--) {
3095
+ let s = e[i];
3096
+ if (t && k(s) === w(t) && $e(s) && $e(t) && (e.splice(i + 1, 1), s.value += "*//*" + t.value, s.range = [w(s), k(t)]), !ze(s) && !z(s)) throw new TypeError(`Unknown comment type: "${s.type}".`);
3097
+ t = s;
3098
+ }
3099
+ }
3100
+ var ti = Bs;
3101
+ var he = null;
3102
+ function ce(e) {
3103
+ if (he !== null && typeof he.property) {
3104
+ let t = he;
3105
+ return he = ce.prototype = null, t;
3106
+ }
3107
+ return he = ce.prototype = e ?? /* @__PURE__ */ Object.create(null), new ce();
3108
+ }
3109
+ var Ds = 10;
3110
+ for (let e = 0; e <= Ds; e++) ce();
3111
+ function Ze(e) {
3112
+ return ce(e);
3113
+ }
3114
+ function Fs(e, t = "type") {
3115
+ Ze(e);
3116
+ function i(s) {
3117
+ let r = s[t], n = e[r];
3118
+ if (!Array.isArray(n)) throw Object.assign(new Error(`Missing visitor keys for '${r}'.`), {
3119
+ node: s
3120
+ });
3121
+ return n;
3122
+ }
3123
+ return i;
3124
+ }
3125
+ var ii = Fs;
3126
+ var si = {
3127
+ ArrayExpression: ["elements"],
3128
+ AssignmentExpression: ["left", "right"],
3129
+ BinaryExpression: ["left", "right"],
3130
+ InterpreterDirective: [],
3131
+ Directive: ["value"],
3132
+ DirectiveLiteral: [],
3133
+ BlockStatement: ["directives", "body"],
3134
+ BreakStatement: ["label"],
3135
+ CallExpression: ["callee", "typeParameters", "typeArguments", "arguments"],
3136
+ CatchClause: ["param", "body"],
3137
+ ConditionalExpression: ["test", "consequent", "alternate"],
3138
+ ContinueStatement: ["label"],
3139
+ DebuggerStatement: [],
3140
+ DoWhileStatement: ["body", "test"],
3141
+ EmptyStatement: [],
3142
+ ExpressionStatement: ["expression"],
3143
+ File: ["program"],
3144
+ ForInStatement: ["left", "right", "body"],
3145
+ ForStatement: ["init", "test", "update", "body"],
3146
+ FunctionDeclaration: ["id", "typeParameters", "params", "predicate", "returnType", "body"],
3147
+ FunctionExpression: ["id", "typeParameters", "params", "returnType", "body"],
3148
+ Identifier: ["typeAnnotation", "decorators"],
3149
+ IfStatement: ["test", "consequent", "alternate"],
3150
+ LabeledStatement: ["label", "body"],
3151
+ StringLiteral: [],
3152
+ NumericLiteral: [],
3153
+ NullLiteral: [],
3154
+ BooleanLiteral: [],
3155
+ RegExpLiteral: [],
3156
+ LogicalExpression: ["left", "right"],
3157
+ MemberExpression: ["object", "property"],
3158
+ NewExpression: ["callee", "typeParameters", "typeArguments", "arguments"],
3159
+ Program: ["directives", "body"],
3160
+ ObjectExpression: ["properties"],
3161
+ ObjectMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"],
3162
+ ObjectProperty: ["decorators", "key", "value"],
3163
+ RestElement: ["argument", "typeAnnotation", "decorators"],
3164
+ ReturnStatement: ["argument"],
3165
+ SequenceExpression: ["expressions"],
3166
+ ParenthesizedExpression: ["expression"],
3167
+ SwitchCase: ["test", "consequent"],
3168
+ SwitchStatement: ["discriminant", "cases"],
3169
+ ThisExpression: [],
3170
+ ThrowStatement: ["argument"],
3171
+ TryStatement: ["block", "handler", "finalizer"],
3172
+ UnaryExpression: ["argument"],
3173
+ UpdateExpression: ["argument"],
3174
+ VariableDeclaration: ["declarations"],
3175
+ VariableDeclarator: ["id", "init"],
3176
+ WhileStatement: ["test", "body"],
3177
+ WithStatement: ["object", "body"],
3178
+ AssignmentPattern: ["left", "right", "decorators", "typeAnnotation"],
3179
+ ArrayPattern: ["elements", "typeAnnotation", "decorators"],
3180
+ ArrowFunctionExpression: ["typeParameters", "params", "predicate", "returnType", "body"],
3181
+ ClassBody: ["body"],
3182
+ ClassExpression: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body", "superTypeArguments"],
3183
+ ClassDeclaration: ["decorators", "id", "typeParameters", "superClass", "superTypeParameters", "mixins", "implements", "body", "superTypeArguments"],
3184
+ ExportAllDeclaration: ["source", "attributes", "exported"],
3185
+ ExportDefaultDeclaration: ["declaration"],
3186
+ ExportNamedDeclaration: ["declaration", "specifiers", "source", "attributes"],
3187
+ ExportSpecifier: ["local", "exported"],
3188
+ ForOfStatement: ["left", "right", "body"],
3189
+ ImportDeclaration: ["specifiers", "source", "attributes"],
3190
+ ImportDefaultSpecifier: ["local"],
3191
+ ImportNamespaceSpecifier: ["local"],
3192
+ ImportSpecifier: ["imported", "local"],
3193
+ ImportExpression: ["source", "options"],
3194
+ MetaProperty: ["meta", "property"],
3195
+ ClassMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"],
3196
+ ObjectPattern: ["decorators", "properties", "typeAnnotation"],
3197
+ SpreadElement: ["argument"],
3198
+ Super: [],
3199
+ TaggedTemplateExpression: ["tag", "typeParameters", "quasi", "typeArguments"],
3200
+ TemplateElement: [],
3201
+ TemplateLiteral: ["quasis", "expressions"],
3202
+ YieldExpression: ["argument"],
3203
+ AwaitExpression: ["argument"],
3204
+ BigIntLiteral: [],
3205
+ ExportNamespaceSpecifier: ["exported"],
3206
+ OptionalMemberExpression: ["object", "property"],
3207
+ OptionalCallExpression: ["callee", "typeParameters", "typeArguments", "arguments"],
3208
+ ClassProperty: ["decorators", "variance", "key", "typeAnnotation", "value"],
3209
+ ClassAccessorProperty: ["decorators", "key", "typeAnnotation", "value"],
3210
+ ClassPrivateProperty: ["decorators", "variance", "key", "typeAnnotation", "value"],
3211
+ ClassPrivateMethod: ["decorators", "key", "typeParameters", "params", "returnType", "body"],
3212
+ PrivateName: ["id"],
3213
+ StaticBlock: ["body"],
3214
+ ImportAttribute: ["key", "value"],
3215
+ AnyTypeAnnotation: [],
3216
+ ArrayTypeAnnotation: ["elementType"],
3217
+ BooleanTypeAnnotation: [],
3218
+ BooleanLiteralTypeAnnotation: [],
3219
+ NullLiteralTypeAnnotation: [],
3220
+ ClassImplements: ["id", "typeParameters"],
3221
+ DeclareClass: ["id", "typeParameters", "extends", "mixins", "implements", "body"],
3222
+ DeclareFunction: ["id", "predicate"],
3223
+ DeclareInterface: ["id", "typeParameters", "extends", "body"],
3224
+ DeclareModule: ["id", "body"],
3225
+ DeclareModuleExports: ["typeAnnotation"],
3226
+ DeclareTypeAlias: ["id", "typeParameters", "right"],
3227
+ DeclareOpaqueType: ["id", "typeParameters", "supertype"],
3228
+ DeclareVariable: ["id"],
3229
+ DeclareExportDeclaration: ["declaration", "specifiers", "source", "attributes"],
3230
+ DeclareExportAllDeclaration: ["source", "attributes"],
3231
+ DeclaredPredicate: ["value"],
3232
+ ExistsTypeAnnotation: [],
3233
+ FunctionTypeAnnotation: ["typeParameters", "this", "params", "rest", "returnType"],
3234
+ FunctionTypeParam: ["name", "typeAnnotation"],
3235
+ GenericTypeAnnotation: ["id", "typeParameters"],
3236
+ InferredPredicate: [],
3237
+ InterfaceExtends: ["id", "typeParameters"],
3238
+ InterfaceDeclaration: ["id", "typeParameters", "extends", "body"],
3239
+ InterfaceTypeAnnotation: ["extends", "body"],
3240
+ IntersectionTypeAnnotation: ["types"],
3241
+ MixedTypeAnnotation: [],
3242
+ EmptyTypeAnnotation: [],
3243
+ NullableTypeAnnotation: ["typeAnnotation"],
3244
+ NumberLiteralTypeAnnotation: [],
3245
+ NumberTypeAnnotation: [],
3246
+ ObjectTypeAnnotation: ["properties", "indexers", "callProperties", "internalSlots"],
3247
+ ObjectTypeInternalSlot: ["id", "value"],
3248
+ ObjectTypeCallProperty: ["value"],
3249
+ ObjectTypeIndexer: ["variance", "id", "key", "value"],
3250
+ ObjectTypeProperty: ["key", "value", "variance"],
3251
+ ObjectTypeSpreadProperty: ["argument"],
3252
+ OpaqueType: ["id", "typeParameters", "supertype", "impltype"],
3253
+ QualifiedTypeIdentifier: ["qualification", "id"],
3254
+ StringLiteralTypeAnnotation: [],
3255
+ StringTypeAnnotation: [],
3256
+ SymbolTypeAnnotation: [],
3257
+ ThisTypeAnnotation: [],
3258
+ TupleTypeAnnotation: ["types", "elementTypes"],
3259
+ TypeofTypeAnnotation: ["argument", "typeArguments"],
3260
+ TypeAlias: ["id", "typeParameters", "right"],
3261
+ TypeAnnotation: ["typeAnnotation"],
3262
+ TypeCastExpression: ["expression", "typeAnnotation"],
3263
+ TypeParameter: ["bound", "default", "variance"],
3264
+ TypeParameterDeclaration: ["params"],
3265
+ TypeParameterInstantiation: ["params"],
3266
+ UnionTypeAnnotation: ["types"],
3267
+ Variance: [],
3268
+ VoidTypeAnnotation: [],
3269
+ EnumDeclaration: ["id", "body"],
3270
+ EnumBooleanBody: ["members"],
3271
+ EnumNumberBody: ["members"],
3272
+ EnumStringBody: ["members"],
3273
+ EnumSymbolBody: ["members"],
3274
+ EnumBooleanMember: ["id", "init"],
3275
+ EnumNumberMember: ["id", "init"],
3276
+ EnumStringMember: ["id", "init"],
3277
+ EnumDefaultedMember: ["id"],
3278
+ IndexedAccessType: ["objectType", "indexType"],
3279
+ OptionalIndexedAccessType: ["objectType", "indexType"],
3280
+ JSXAttribute: ["name", "value"],
3281
+ JSXClosingElement: ["name"],
3282
+ JSXElement: ["openingElement", "children", "closingElement"],
3283
+ JSXEmptyExpression: [],
3284
+ JSXExpressionContainer: ["expression"],
3285
+ JSXSpreadChild: ["expression"],
3286
+ JSXIdentifier: [],
3287
+ JSXMemberExpression: ["object", "property"],
3288
+ JSXNamespacedName: ["namespace", "name"],
3289
+ JSXOpeningElement: ["name", "typeParameters", "typeArguments", "attributes"],
3290
+ JSXSpreadAttribute: ["argument"],
3291
+ JSXText: [],
3292
+ JSXFragment: ["openingFragment", "children", "closingFragment"],
3293
+ JSXOpeningFragment: [],
3294
+ JSXClosingFragment: [],
3295
+ Noop: [],
3296
+ Placeholder: [],
3297
+ V8IntrinsicIdentifier: [],
3298
+ ArgumentPlaceholder: [],
3299
+ BindExpression: ["object", "callee"],
3300
+ Decorator: ["expression"],
3301
+ DoExpression: ["body"],
3302
+ ExportDefaultSpecifier: ["exported"],
3303
+ ModuleExpression: ["body"],
3304
+ TopicReference: [],
3305
+ PipelineTopicExpression: ["expression"],
3306
+ PipelineBareFunction: ["callee"],
3307
+ PipelinePrimaryTopicReference: [],
3308
+ TSParameterProperty: ["parameter", "decorators"],
3309
+ TSDeclareFunction: ["id", "typeParameters", "params", "returnType", "body"],
3310
+ TSDeclareMethod: ["decorators", "key", "typeParameters", "params", "returnType"],
3311
+ TSQualifiedName: ["left", "right"],
3312
+ TSCallSignatureDeclaration: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"],
3313
+ TSConstructSignatureDeclaration: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"],
3314
+ TSPropertySignature: ["key", "typeAnnotation"],
3315
+ TSMethodSignature: ["key", "typeParameters", "parameters", "typeAnnotation", "params", "returnType"],
3316
+ TSIndexSignature: ["parameters", "typeAnnotation"],
3317
+ TSAnyKeyword: [],
3318
+ TSBooleanKeyword: [],
3319
+ TSBigIntKeyword: [],
3320
+ TSIntrinsicKeyword: [],
3321
+ TSNeverKeyword: [],
3322
+ TSNullKeyword: [],
3323
+ TSNumberKeyword: [],
3324
+ TSObjectKeyword: [],
3325
+ TSStringKeyword: [],
3326
+ TSSymbolKeyword: [],
3327
+ TSUndefinedKeyword: [],
3328
+ TSUnknownKeyword: [],
3329
+ TSVoidKeyword: [],
3330
+ TSThisType: [],
3331
+ TSFunctionType: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"],
3332
+ TSConstructorType: ["typeParameters", "parameters", "typeAnnotation", "params", "returnType"],
3333
+ TSTypeReference: ["typeName", "typeParameters", "typeArguments"],
3334
+ TSTypePredicate: ["parameterName", "typeAnnotation"],
3335
+ TSTypeQuery: ["exprName", "typeParameters", "typeArguments"],
3336
+ TSTypeLiteral: ["members"],
3337
+ TSArrayType: ["elementType"],
3338
+ TSTupleType: ["elementTypes"],
3339
+ TSOptionalType: ["typeAnnotation"],
3340
+ TSRestType: ["typeAnnotation"],
3341
+ TSNamedTupleMember: ["label", "elementType"],
3342
+ TSUnionType: ["types"],
3343
+ TSIntersectionType: ["types"],
3344
+ TSConditionalType: ["checkType", "extendsType", "trueType", "falseType"],
3345
+ TSInferType: ["typeParameter"],
3346
+ TSParenthesizedType: ["typeAnnotation"],
3347
+ TSTypeOperator: ["typeAnnotation"],
3348
+ TSIndexedAccessType: ["objectType", "indexType"],
3349
+ TSMappedType: ["nameType", "typeAnnotation", "key", "constraint"],
3350
+ TSTemplateLiteralType: ["quasis", "types"],
3351
+ TSLiteralType: ["literal"],
3352
+ TSExpressionWithTypeArguments: ["expression", "typeParameters"],
3353
+ TSInterfaceDeclaration: ["id", "typeParameters", "extends", "body"],
3354
+ TSInterfaceBody: ["body"],
3355
+ TSTypeAliasDeclaration: ["id", "typeParameters", "typeAnnotation"],
3356
+ TSInstantiationExpression: ["expression", "typeParameters", "typeArguments"],
3357
+ TSAsExpression: ["expression", "typeAnnotation"],
3358
+ TSSatisfiesExpression: ["expression", "typeAnnotation"],
3359
+ TSTypeAssertion: ["typeAnnotation", "expression"],
3360
+ TSEnumBody: ["members"],
3361
+ TSEnumDeclaration: ["id", "body"],
3362
+ TSEnumMember: ["id", "initializer"],
3363
+ TSModuleDeclaration: ["id", "body"],
3364
+ TSModuleBlock: ["body"],
3365
+ TSImportType: ["argument", "options", "qualifier", "typeParameters", "typeArguments"],
3366
+ TSImportEqualsDeclaration: ["id", "moduleReference"],
3367
+ TSExternalModuleReference: ["expression"],
3368
+ TSNonNullExpression: ["expression"],
3369
+ TSExportAssignment: ["expression"],
3370
+ TSNamespaceExportDeclaration: ["id"],
3371
+ TSTypeAnnotation: ["typeAnnotation"],
3372
+ TSTypeParameterInstantiation: ["params"],
3373
+ TSTypeParameterDeclaration: ["params"],
3374
+ TSTypeParameter: ["constraint", "default", "name"],
3375
+ ChainExpression: ["expression"],
3376
+ ExperimentalRestProperty: ["argument"],
3377
+ ExperimentalSpreadProperty: ["argument"],
3378
+ Literal: [],
3379
+ MethodDefinition: ["decorators", "key", "value"],
3380
+ PrivateIdentifier: [],
3381
+ Property: ["key", "value"],
3382
+ PropertyDefinition: ["decorators", "key", "typeAnnotation", "value", "variance"],
3383
+ AccessorProperty: ["decorators", "key", "typeAnnotation", "value"],
3384
+ TSAbstractAccessorProperty: ["decorators", "key", "typeAnnotation"],
3385
+ TSAbstractKeyword: [],
3386
+ TSAbstractMethodDefinition: ["key", "value"],
3387
+ TSAbstractPropertyDefinition: ["decorators", "key", "typeAnnotation"],
3388
+ TSAsyncKeyword: [],
3389
+ TSClassImplements: ["expression", "typeArguments", "typeParameters"],
3390
+ TSDeclareKeyword: [],
3391
+ TSEmptyBodyFunctionExpression: ["id", "typeParameters", "params", "returnType"],
3392
+ TSExportKeyword: [],
3393
+ TSInterfaceHeritage: ["expression", "typeArguments", "typeParameters"],
3394
+ TSPrivateKeyword: [],
3395
+ TSProtectedKeyword: [],
3396
+ TSPublicKeyword: [],
3397
+ TSReadonlyKeyword: [],
3398
+ TSStaticKeyword: [],
3399
+ AsConstExpression: ["expression"],
3400
+ AsExpression: ["expression", "typeAnnotation"],
3401
+ BigIntLiteralTypeAnnotation: [],
3402
+ BigIntTypeAnnotation: [],
3403
+ ComponentDeclaration: ["id", "params", "body", "typeParameters", "rendersType"],
3404
+ ComponentParameter: ["name", "local"],
3405
+ ComponentTypeAnnotation: ["params", "rest", "typeParameters", "rendersType"],
3406
+ ComponentTypeParameter: ["name", "typeAnnotation"],
3407
+ ConditionalTypeAnnotation: ["checkType", "extendsType", "trueType", "falseType"],
3408
+ DeclareComponent: ["id", "params", "rest", "typeParameters", "rendersType"],
3409
+ DeclareEnum: ["id", "body"],
3410
+ DeclareHook: ["id"],
3411
+ DeclareNamespace: ["id", "body"],
3412
+ EnumBigIntBody: ["members"],
3413
+ EnumBigIntMember: ["id", "init"],
3414
+ HookDeclaration: ["id", "params", "body", "typeParameters", "returnType"],
3415
+ HookTypeAnnotation: ["params", "returnType", "rest", "typeParameters"],
3416
+ InferTypeAnnotation: ["typeParameter"],
3417
+ KeyofTypeAnnotation: ["argument"],
3418
+ ObjectTypeMappedTypeProperty: ["keyTparam", "propType", "sourceType", "variance"],
3419
+ QualifiedTypeofIdentifier: ["qualification", "id"],
3420
+ TupleTypeLabeledElement: ["label", "elementType", "variance"],
3421
+ TupleTypeSpreadElement: ["label", "typeAnnotation"],
3422
+ TypeOperator: ["typeAnnotation"],
3423
+ TypePredicate: ["parameterName", "typeAnnotation", "asserts"],
3424
+ NGChainedExpression: ["expressions"],
3425
+ NGEmptyExpression: [],
3426
+ NGPipeExpression: ["left", "right", "arguments"],
3427
+ NGMicrosyntax: ["body"],
3428
+ NGMicrosyntaxAs: ["key", "alias"],
3429
+ NGMicrosyntaxExpression: ["expression", "alias"],
3430
+ NGMicrosyntaxKey: [],
3431
+ NGMicrosyntaxKeyedExpression: ["key", "expression"],
3432
+ NGMicrosyntaxLet: ["key", "value"],
3433
+ NGRoot: ["node"],
3434
+ JsExpressionRoot: ["node"],
3435
+ JsonRoot: ["node"],
3436
+ TSJSDocAllType: [],
3437
+ TSJSDocUnknownType: [],
3438
+ TSJSDocNullableType: ["typeAnnotation"],
3439
+ TSJSDocNonNullableType: ["typeAnnotation"],
3440
+ NeverTypeAnnotation: [],
3441
+ SatisfiesExpression: ["expression", "typeAnnotation"],
3442
+ UndefinedTypeAnnotation: [],
3443
+ UnknownTypeAnnotation: []
3444
+ };
3445
+ var Ms = ii(si);
3446
+ var ri = Ms;
3447
+ function et(e, t) {
3448
+ if (!(e !== null && typeof e == "object")) return e;
3449
+ if (Array.isArray(e)) {
3450
+ for (let s = 0; s < e.length; s++) e[s] = et(e[s], t);
3451
+ return e;
3452
+ }
3453
+ let i = ri(e);
3454
+ for (let s = 0; s < i.length; s++) e[i[s]] = et(e[i[s]], t);
3455
+ return t(e) || e;
3456
+ }
3457
+ var ai = et;
3458
+ ie(["RegExpLiteral", "BigIntLiteral", "NumericLiteral", "StringLiteral", "DirectiveLiteral", "Literal", "JSXText", "TemplateElement", "StringLiteralTypeAnnotation", "NumberLiteralTypeAnnotation", "BigIntLiteralTypeAnnotation"]);
3459
+ function js(e, t) {
3460
+ let {
3461
+ parser: i,
3462
+ text: s
3463
+ } = t, {
3464
+ comments: r
3465
+ } = e, n = i === "oxc" && t.oxcAstType === "ts";
3466
+ ti(r);
3467
+ let o;
3468
+ e = ai(e, (u) => {
3469
+ switch (u.type) {
3470
+ case "ParenthesizedExpression": {
3471
+ let {
3472
+ expression: c
3473
+ } = u, f = w(u);
3474
+ if (c.type === "TypeCastExpression") return c.range = [f, k(u)], c;
3475
+ let v = false;
3476
+ if (!n) {
3477
+ if (!o) {
3478
+ o = [];
3479
+ for (let h of r) ei(h) && o.push(k(h));
3480
+ }
3481
+ let T = $t(false, o, (h) => h <= f);
3482
+ v = T && s.slice(T, f).trim().length === 0;
3483
+ }
3484
+ if (!v) return c.extra = {
3485
+ ...c.extra,
3486
+ parenthesized: true
3487
+ }, c;
3488
+ break;
3489
+ }
3490
+ case "LogicalExpression":
3491
+ if (oi(u)) return tt(u);
3492
+ break;
3493
+ case "TemplateLiteral":
3494
+ if (u.expressions.length !== u.quasis.length - 1) throw new Error("Malformed template literal.");
3495
+ break;
3496
+ case "TemplateElement":
3497
+ if (i === "flow" || i === "hermes" || i === "espree" || i === "typescript" || n) {
3498
+ let c = w(u) + 1, f = k(u) - (u.tail ? 1 : 2);
3499
+ u.range = [c, f];
3500
+ }
3501
+ break;
3502
+ case "VariableDeclaration": {
3503
+ let c = te(false, u.declarations, -1);
3504
+ c != null && c.init && s[k(c)] !== ";" && (u.range = [w(u), k(c)]);
3505
+ break;
3506
+ }
3507
+ case "TSParenthesizedType":
3508
+ return u.typeAnnotation;
3509
+ case "TSTypeParameter":
3510
+ ni(u);
3511
+ break;
3512
+ case "TopicReference":
3513
+ e.extra = {
3514
+ ...e.extra,
3515
+ __isUsingHackPipeline: true
3516
+ };
3517
+ break;
3518
+ case "TSUnionType":
3519
+ case "TSIntersectionType":
3520
+ if (u.types.length === 1) return u.types[0];
3521
+ break;
3522
+ case "TSMappedType":
3523
+ if (!u.constraint && !u.key) {
3524
+ let {
3525
+ name: c,
3526
+ constraint: f
3527
+ } = ni(u.typeParameter);
3528
+ u.constraint = f, u.key = c, delete u.typeParameter;
3529
+ }
3530
+ break;
3531
+ case "TSEnumDeclaration":
3532
+ if (!u.body) {
3533
+ let c = k(u.id), {
3534
+ members: f
3535
+ } = u, v = Zt({
3536
+ originalText: s,
3537
+ [Symbol.for("comments")]: r
3538
+ }, c, f[0] ? w(f[0]) : k(u)), T = c + v.indexOf("{");
3539
+ u.body = {
3540
+ type: "TSEnumBody",
3541
+ members: f,
3542
+ range: [T, k(u)]
3543
+ }, delete u.members;
3544
+ }
3545
+ break;
3546
+ case "ImportExpression":
3547
+ i === "hermes" && u.attributes && !u.options && (u.options = u.attributes);
3548
+ break;
3549
+ }
3550
+ });
3551
+ let p = e.type === "File" ? e.program : e;
3552
+ return p.interpreter && (r.unshift(p.interpreter), delete p.interpreter), n && e.hashbang && (r.unshift(e.hashbang), delete e.hashbang), e.type === "Program" && (e.range = [0, s.length]), e;
3553
+ }
3554
+ function ni(e) {
3555
+ if (e.type === "TSTypeParameter" && typeof e.name == "string") {
3556
+ let t = w(e);
3557
+ e.name = {
3558
+ type: "Identifier",
3559
+ name: e.name,
3560
+ range: [t, t + e.name.length]
3561
+ };
3562
+ }
3563
+ return e;
3564
+ }
3565
+ function oi(e) {
3566
+ return e.type === "LogicalExpression" && e.right.type === "LogicalExpression" && e.operator === e.right.operator;
3567
+ }
3568
+ function tt(e) {
3569
+ return oi(e) ? tt({
3570
+ type: "LogicalExpression",
3571
+ operator: e.operator,
3572
+ left: tt({
3573
+ type: "LogicalExpression",
3574
+ operator: e.operator,
3575
+ left: e.left,
3576
+ right: e.right.left,
3577
+ range: [w(e.left), k(e.right.left)]
3578
+ }),
3579
+ right: e.right.right,
3580
+ range: [w(e), k(e)]
3581
+ }) : e;
3582
+ }
3583
+ var ke = js;
3584
+ var Us = (e, t, i, s) => {
3585
+ if (!(e && t == null)) return t.replaceAll ? t.replaceAll(i, s) : i.global ? t.replace(i, s) : t.split(i).join(s);
3586
+ };
3587
+ var se = Us;
3588
+ var Gs = /\*\/$/;
3589
+ var qs = /^\/\*\*?/;
3590
+ var Js = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/;
3591
+ var Hs = /(^|\s+)\/\/([^\n\r]*)/g;
3592
+ var ui = /^(\r?\n)+/;
3593
+ var Ks = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g;
3594
+ var pi = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g;
3595
+ var Ws = /(\r?\n|^) *\* ?/g;
3596
+ var Xs = [];
3597
+ function hi(e) {
3598
+ let t = e.match(Js);
3599
+ return t ? t[0].trimStart() : "";
3600
+ }
3601
+ function ci(e) {
3602
+ let t = `
3603
+ `;
3604
+ e = se(false, e.replace(qs, "").replace(Gs, ""), Ws, "$1");
3605
+ let i = "";
3606
+ for (; i !== e; ) i = e, e = se(false, e, Ks, `${t}$1 $2${t}`);
3607
+ e = e.replace(ui, "").trimEnd();
3608
+ let s = /* @__PURE__ */ Object.create(null), r = se(false, e, pi, "").replace(ui, "").trimEnd(), n;
3609
+ for (; n = pi.exec(e); ) {
3610
+ let o = se(false, n[2], Hs, "");
3611
+ if (typeof s[n[1]] == "string" || Array.isArray(s[n[1]])) {
3612
+ let p = s[n[1]];
3613
+ s[n[1]] = [...Xs, ...Array.isArray(p) ? p : [p], o];
3614
+ } else s[n[1]] = o;
3615
+ }
3616
+ return {
3617
+ comments: r,
3618
+ pragmas: s
3619
+ };
3620
+ }
3621
+ var li = ["noformat", "noprettier"];
3622
+ var fi = ["format", "prettier"];
3623
+ function zs(e) {
3624
+ if (!e.startsWith("#!")) return "";
3625
+ let t = e.indexOf(`
3626
+ `);
3627
+ return t === -1 ? e : e.slice(0, t);
3628
+ }
3629
+ var di = zs;
3630
+ function mi(e) {
3631
+ let t = di(e);
3632
+ t && (e = e.slice(t.length + 1));
3633
+ let i = hi(e), {
3634
+ pragmas: s,
3635
+ comments: r
3636
+ } = ci(i);
3637
+ return {
3638
+ shebang: t,
3639
+ text: e,
3640
+ pragmas: s,
3641
+ comments: r
3642
+ };
3643
+ }
3644
+ function xi(e) {
3645
+ let {
3646
+ pragmas: t
3647
+ } = mi(e);
3648
+ return fi.some((i) => Object.prototype.hasOwnProperty.call(t, i));
3649
+ }
3650
+ function yi(e) {
3651
+ let {
3652
+ pragmas: t
3653
+ } = mi(e);
3654
+ return li.some((i) => Object.prototype.hasOwnProperty.call(t, i));
3655
+ }
3656
+ function Qs(e) {
3657
+ return e = typeof e == "function" ? {
3658
+ parse: e
3659
+ } : e, {
3660
+ astFormat: "estree",
3661
+ hasPragma: xi,
3662
+ hasIgnorePragma: yi,
3663
+ locStart: w,
3664
+ locEnd: k,
3665
+ ...e
3666
+ };
3667
+ }
3668
+ var Ae = Qs;
3669
+ var we = "module";
3670
+ var gi = "script";
3671
+ var Pe = [we, gi];
3672
+ function Ie(e) {
3673
+ if (typeof e == "string") {
3674
+ if (e = e.toLowerCase(), /\.(?:mjs|mts)$/iu.test(e)) return we;
3675
+ if (/\.(?:cjs|cts)$/iu.test(e)) return gi;
3676
+ }
3677
+ }
3678
+ var Ys = {
3679
+ ecmaVersion: "latest",
3680
+ allowReserved: true,
3681
+ allowReturnOutsideFunction: true,
3682
+ allowSuperOutsideMethod: true,
3683
+ checkPrivateFields: false,
3684
+ locations: false,
3685
+ ranges: true,
3686
+ preserveParens: true
3687
+ };
3688
+ function $s(e) {
3689
+ let {
3690
+ message: t,
3691
+ loc: i
3692
+ } = e;
3693
+ if (!i) return e;
3694
+ let {
3695
+ line: s,
3696
+ column: r
3697
+ } = i;
3698
+ return Ce(t.replace(/ \(\d+:\d+\)$/u, ""), {
3699
+ loc: {
3700
+ start: {
3701
+ line: s,
3702
+ column: r + 1
3703
+ }
3704
+ },
3705
+ cause: e
3706
+ });
3707
+ }
3708
+ var vi;
3709
+ var Zs = () => (vi ?? (vi = E.extend((0, bi.default)())), vi);
3710
+ function er(e, t) {
3711
+ let i = Zs(), s = [], r = i.parse(e, {
3712
+ ...Ys,
3713
+ sourceType: t,
3714
+ allowImportExportEverywhere: t === we,
3715
+ onComment: s
3716
+ });
3717
+ return r.comments = s, r;
3718
+ }
3719
+ function tr(e, t) {
3720
+ let i = Ie(t == null ? void 0 : t.filepath), s = (i ? [i] : Pe).map((n) => () => er(e, n)), r;
3721
+ try {
3722
+ r = Ee(s);
3723
+ } catch ({
3724
+ errors: [n]
3725
+ }) {
3726
+ throw $s(n);
3727
+ }
3728
+ return ke(r, {
3729
+ text: e
3730
+ });
3731
+ }
3732
+ var Si = Ae(tr);
3733
+ var Ei = ot(Xe());
3734
+ var I = {
3735
+ Boolean: "Boolean",
3736
+ Identifier: "Identifier",
3737
+ PrivateIdentifier: "PrivateIdentifier",
3738
+ Keyword: "Keyword",
3739
+ Null: "Null",
3740
+ Numeric: "Numeric",
3741
+ Punctuator: "Punctuator",
3742
+ String: "String",
3743
+ RegularExpression: "RegularExpression",
3744
+ Template: "Template",
3745
+ JSXIdentifier: "JSXIdentifier",
3746
+ JSXText: "JSXText"
3747
+ };
3748
+ function ir(e, t) {
3749
+ let i = e[0], s = te(false, e, -1), r = {
3750
+ type: I.Template,
3751
+ value: t.slice(i.start, s.end)
3752
+ };
3753
+ return i.loc && (r.loc = {
3754
+ start: i.loc.start,
3755
+ end: s.loc.end
3756
+ }), i.range && (r.start = i.range[0], r.end = s.range[1], r.range = [r.start, r.end]), r;
3757
+ }
3758
+ function it(e, t) {
3759
+ this._acornTokTypes = e, this._tokens = [], this._curlyBrace = null, this._code = t;
3760
+ }
3761
+ it.prototype = {
3762
+ constructor: it,
3763
+ translate(e, t) {
3764
+ let i = e.type, s = this._acornTokTypes;
3765
+ if (i === s.name) e.type = I.Identifier, e.value === "static" && (e.type = I.Keyword), t.ecmaVersion > 5 && (e.value === "yield" || e.value === "let") && (e.type = I.Keyword);
3766
+ else if (i === s.privateId) e.type = I.PrivateIdentifier;
3767
+ else if (i === s.semi || i === s.comma || i === s.parenL || i === s.parenR || i === s.braceL || i === s.braceR || i === s.dot || i === s.bracketL || i === s.colon || i === s.question || i === s.bracketR || i === s.ellipsis || i === s.arrow || i === s.jsxTagStart || i === s.incDec || i === s.starstar || i === s.jsxTagEnd || i === s.prefix || i === s.questionDot || i.binop && !i.keyword || i.isAssign) e.type = I.Punctuator, e.value = this._code.slice(e.start, e.end);
3768
+ else if (i === s.jsxName) e.type = I.JSXIdentifier;
3769
+ else if (i.label === "jsxText" || i === s.jsxAttrValueToken) e.type = I.JSXText;
3770
+ else if (i.keyword) i.keyword === "true" || i.keyword === "false" ? e.type = I.Boolean : i.keyword === "null" ? e.type = I.Null : e.type = I.Keyword;
3771
+ else if (i === s.num) e.type = I.Numeric, e.value = this._code.slice(e.start, e.end);
3772
+ else if (i === s.string) t.jsxAttrValueToken ? (t.jsxAttrValueToken = false, e.type = I.JSXText) : e.type = I.String, e.value = this._code.slice(e.start, e.end);
3773
+ else if (i === s.regexp) {
3774
+ e.type = I.RegularExpression;
3775
+ let r = e.value;
3776
+ e.regex = {
3777
+ flags: r.flags,
3778
+ pattern: r.pattern
3779
+ }, e.value = `/${r.pattern}/${r.flags}`;
3780
+ }
3781
+ return e;
3782
+ },
3783
+ onToken(e, t) {
3784
+ let i = this._acornTokTypes, s = t.tokens, r = this._tokens, n = () => {
3785
+ s.push(ir(this._tokens, this._code)), this._tokens = [];
3786
+ };
3787
+ if (e.type === i.eof) {
3788
+ this._curlyBrace && s.push(this.translate(this._curlyBrace, t));
3789
+ return;
3790
+ }
3791
+ if (e.type === i.backQuote) {
3792
+ this._curlyBrace && (s.push(this.translate(this._curlyBrace, t)), this._curlyBrace = null), r.push(e), r.length > 1 && n();
3793
+ return;
3794
+ }
3795
+ if (e.type === i.dollarBraceL) {
3796
+ r.push(e), n();
3797
+ return;
3798
+ }
3799
+ if (e.type === i.braceR) {
3800
+ this._curlyBrace && s.push(this.translate(this._curlyBrace, t)), this._curlyBrace = e;
3801
+ return;
3802
+ }
3803
+ if (e.type === i.template || e.type === i.invalidTemplate) {
3804
+ this._curlyBrace && (r.push(this._curlyBrace), this._curlyBrace = null), r.push(e);
3805
+ return;
3806
+ }
3807
+ this._curlyBrace && (s.push(this.translate(this._curlyBrace, t)), this._curlyBrace = null), s.push(this.translate(e, t));
3808
+ }
3809
+ };
3810
+ var _i = it;
3811
+ var Ti = [3, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17];
3812
+ function sr() {
3813
+ return te(false, Ti, -1);
3814
+ }
3815
+ function rr(e = 5) {
3816
+ let t = e === "latest" ? sr() : e;
3817
+ if (typeof t != "number") throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);
3818
+ if (t >= 2015 && (t -= 2009), !Ti.includes(t)) throw new Error("Invalid ecmaVersion.");
3819
+ return t;
3820
+ }
3821
+ function ar(e = "script") {
3822
+ if (e === "script" || e === "module") return e;
3823
+ if (e === "commonjs") return "script";
3824
+ throw new Error("Invalid sourceType.");
3825
+ }
3826
+ function Ci(e) {
3827
+ let t = rr(e.ecmaVersion), i = ar(e.sourceType), s = e.range === true, r = e.loc === true;
3828
+ if (t !== 3 && e.allowReserved) throw new Error("`allowReserved` is only supported when ecmaVersion is 3");
3829
+ if (typeof e.allowReserved < "u" && typeof e.allowReserved != "boolean") throw new Error("`allowReserved`, when present, must be `true` or `false`");
3830
+ let n = t === 3 ? e.allowReserved || "never" : false, o = e.ecmaFeatures || {}, p = e.sourceType === "commonjs" || !!o.globalReturn;
3831
+ if (i === "module" && t < 6) throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");
3832
+ return Object.assign({}, e, {
3833
+ ecmaVersion: t,
3834
+ sourceType: i,
3835
+ ranges: s,
3836
+ locations: r,
3837
+ allowReserved: n,
3838
+ allowReturnOutsideFunction: p
3839
+ });
3840
+ }
3841
+ var Q = Symbol("espree's internal state");
3842
+ var st = Symbol("espree's esprimaFinishNode");
3843
+ function nr(e, t, i, s, r, n, o) {
3844
+ let p;
3845
+ e ? p = "Block" : o.slice(i, i + 2) === "#!" ? p = "Hashbang" : p = "Line";
3846
+ let u = {
3847
+ type: p,
3848
+ value: t
3849
+ };
3850
+ return typeof i == "number" && (u.start = i, u.end = s, u.range = [i, s]), typeof r == "object" && (u.loc = {
3851
+ start: r,
3852
+ end: n
3853
+ }), u;
3854
+ }
3855
+ var rt = () => (e) => {
3856
+ let t = Object.assign({}, e.acorn.tokTypes);
3857
+ return e.acornJsx && Object.assign(t, e.acornJsx.tokTypes), class extends e {
3858
+ constructor(s, r) {
3859
+ (typeof s != "object" || s === null) && (s = {}), typeof r != "string" && !(r instanceof String) && (r = String(r));
3860
+ let n = s.sourceType, o = Ci(s), p = o.ecmaFeatures || {}, u = o.tokens === true ? new _i(t, r) : null, c = {
3861
+ originalSourceType: n || o.sourceType,
3862
+ tokens: u ? [] : null,
3863
+ comments: o.comment === true ? [] : null,
3864
+ impliedStrict: p.impliedStrict === true && o.ecmaVersion >= 5,
3865
+ ecmaVersion: o.ecmaVersion,
3866
+ jsxAttrValueToken: false,
3867
+ lastToken: null,
3868
+ templateElements: []
3869
+ };
3870
+ super({
3871
+ ecmaVersion: o.ecmaVersion,
3872
+ sourceType: o.sourceType,
3873
+ ranges: o.ranges,
3874
+ locations: o.locations,
3875
+ allowReserved: o.allowReserved,
3876
+ allowReturnOutsideFunction: o.allowReturnOutsideFunction,
3877
+ onToken(f) {
3878
+ u && u.onToken(f, c), f.type !== t.eof && (c.lastToken = f);
3879
+ },
3880
+ onComment(f, v, T, h, m, x) {
3881
+ if (c.comments) {
3882
+ let g = nr(f, v, T, h, m, x, r);
3883
+ c.comments.push(g);
3884
+ }
3885
+ }
3886
+ }, r), this[Q] = c;
3887
+ }
3888
+ tokenize() {
3889
+ do
3890
+ this.next();
3891
+ while (this.type !== t.eof);
3892
+ this.next();
3893
+ let s = this[Q], r = s.tokens;
3894
+ return s.comments && (r.comments = s.comments), r;
3895
+ }
3896
+ finishNode(...s) {
3897
+ let r = super.finishNode(...s);
3898
+ return this[st](r);
3899
+ }
3900
+ finishNodeAt(...s) {
3901
+ let r = super.finishNodeAt(...s);
3902
+ return this[st](r);
3903
+ }
3904
+ parse() {
3905
+ let s = this[Q], r = super.parse();
3906
+ if (r.sourceType = s.originalSourceType, s.comments && (r.comments = s.comments), s.tokens && (r.tokens = s.tokens), r.body.length) {
3907
+ let [n] = r.body;
3908
+ r.range && (r.range[0] = n.range[0]), r.loc && (r.loc.start = n.loc.start), r.start = n.start;
3909
+ }
3910
+ return s.lastToken && (r.range && (r.range[1] = s.lastToken.range[1]), r.loc && (r.loc.end = s.lastToken.loc.end), r.end = s.lastToken.end), this[Q].templateElements.forEach((n) => {
3911
+ let p = n.tail ? 1 : 2;
3912
+ n.start += -1, n.end += p, n.range && (n.range[0] += -1, n.range[1] += p), n.loc && (n.loc.start.column += -1, n.loc.end.column += p);
3913
+ }), r;
3914
+ }
3915
+ parseTopLevel(s) {
3916
+ return this[Q].impliedStrict && (this.strict = true), super.parseTopLevel(s);
3917
+ }
3918
+ raise(s, r) {
3919
+ let n = e.acorn.getLineInfo(this.input, s), o = new SyntaxError(r);
3920
+ throw o.index = s, o.lineNumber = n.line, o.column = n.column + 1, o;
3921
+ }
3922
+ raiseRecoverable(s, r) {
3923
+ this.raise(s, r);
3924
+ }
3925
+ unexpected(s) {
3926
+ let r = "Unexpected token";
3927
+ if (s != null) {
3928
+ if (this.pos = s, this.options.locations) for (; this.pos < this.lineStart; ) this.lineStart = this.input.lastIndexOf(`
3929
+ `, this.lineStart - 2) + 1, --this.curLine;
3930
+ this.nextToken();
3931
+ }
3932
+ this.end > this.start && (r += ` ${this.input.slice(this.start, this.end)}`), this.raise(this.start, r);
3933
+ }
3934
+ jsx_readString(s) {
3935
+ let r = super.jsx_readString(s);
3936
+ return this.type === t.string && (this[Q].jsxAttrValueToken = true), r;
3937
+ }
3938
+ [st](s) {
3939
+ return s.type === "TemplateElement" && this[Q].templateElements.push(s), s.type.includes("Function") && !s.generator && (s.generator = false), s;
3940
+ }
3941
+ };
3942
+ };
3943
+ var or = {
3944
+ _regular: null,
3945
+ _jsx: null,
3946
+ get regular() {
3947
+ return this._regular === null && (this._regular = E.extend(rt())), this._regular;
3948
+ },
3949
+ get jsx() {
3950
+ return this._jsx === null && (this._jsx = E.extend((0, Ei.default)(), rt())), this._jsx;
3951
+ },
3952
+ get(e) {
3953
+ return !!(e && e.ecmaFeatures && e.ecmaFeatures.jsx) ? this.jsx : this.regular;
3954
+ }
3955
+ };
3956
+ function ki(e, t) {
3957
+ let i = or.get(t);
3958
+ return new i(t, e).parse();
3959
+ }
3960
+ var ur = {
3961
+ ecmaVersion: "latest",
3962
+ range: true,
3963
+ loc: false,
3964
+ comment: true,
3965
+ tokens: false,
3966
+ ecmaFeatures: {
3967
+ jsx: true,
3968
+ globalReturn: true,
3969
+ impliedStrict: false
3970
+ }
3971
+ };
3972
+ function pr(e) {
3973
+ let {
3974
+ message: t,
3975
+ lineNumber: i,
3976
+ column: s
3977
+ } = e;
3978
+ return typeof i != "number" ? e : Ce(t, {
3979
+ loc: {
3980
+ start: {
3981
+ line: i,
3982
+ column: s
3983
+ }
3984
+ },
3985
+ cause: e
3986
+ });
3987
+ }
3988
+ function hr(e, t) {
3989
+ let i = Ie(t == null ? void 0 : t.filepath), s = (i ? [i] : Pe).map((n) => () => ki(e, {
3990
+ ...ur,
3991
+ sourceType: n
3992
+ })), r;
3993
+ try {
3994
+ r = Ee(s);
3995
+ } catch ({
3996
+ errors: [n]
3997
+ }) {
3998
+ throw pr(n);
3999
+ }
4000
+ return ke(r, {
4001
+ parser: "espree",
4002
+ text: e
4003
+ });
4004
+ }
4005
+ var Ai = Ae(hr);
4006
+ var cr = {
4007
+ acorn: Si,
4008
+ espree: Ai
4009
+ };
4010
+ var cn = at;
4011
+
4012
+ export { cn as default, cr as parsers };
4013
+ //# sourceMappingURL=acorn-2ONPHVNE.js.map
4014
+ //# sourceMappingURL=acorn-2ONPHVNE.js.map