oapiex 0.3.8 → 0.3.10

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 (43) hide show
  1. package/bin/acorn-e8W_D2c_.mjs +16 -0
  2. package/bin/angular-hFYH82G-.mjs +4 -0
  3. package/bin/babel-fr_lL9to.mjs +15 -0
  4. package/bin/cli.mjs +111 -13
  5. package/bin/estree-B-Lhm4Hd.mjs +44 -0
  6. package/bin/flow-BRS1FfP1.mjs +20 -0
  7. package/bin/glimmer-BtFpvZhb.mjs +37 -0
  8. package/bin/graphql-kQVq9UYo.mjs +28 -0
  9. package/bin/html-CIcRoqWL.mjs +25 -0
  10. package/bin/markdown-uvG4mxr8.mjs +62 -0
  11. package/bin/meriyah-DyP35pNK.mjs +5 -0
  12. package/bin/postcss-CbFXTw98.mjs +61 -0
  13. package/bin/typescript-BDVDge_O.mjs +21 -0
  14. package/bin/yaml-BNfwk1xa.mjs +159 -0
  15. package/dist/acorn-21ABnSdB.cjs +4971 -0
  16. package/dist/acorn-C_1S2EAj.mjs +4969 -0
  17. package/dist/angular-BV6jfWdp.cjs +4084 -0
  18. package/dist/angular-C66eBqoS.mjs +4082 -0
  19. package/dist/babel-Bz8pZo4b.cjs +9879 -0
  20. package/dist/babel-CsQd21KZ.mjs +9877 -0
  21. package/dist/estree-CzMW7i2J.mjs +7266 -0
  22. package/dist/estree-JnZk-Onr.cjs +7270 -0
  23. package/dist/flow-BiaXaApn.mjs +52913 -0
  24. package/dist/flow-nfncfm-z.cjs +52915 -0
  25. package/dist/glimmer-B6CdKQ-2.mjs +7532 -0
  26. package/dist/glimmer-CiwR9Elq.cjs +7536 -0
  27. package/dist/graphql-BHWygr4C.cjs +1950 -0
  28. package/dist/graphql-C2x1gvQd.mjs +1945 -0
  29. package/dist/html-2W-fjNa6.cjs +7143 -0
  30. package/dist/html-kerd4hOT.mjs +7138 -0
  31. package/dist/index.cjs +15635 -22
  32. package/dist/index.mjs +15622 -8
  33. package/dist/markdown-CbyydoYw.mjs +6877 -0
  34. package/dist/markdown-Ccw9NnJ_.cjs +6882 -0
  35. package/dist/meriyah-C4Gx_ouZ.mjs +7591 -0
  36. package/dist/meriyah-CUKcThLv.cjs +7593 -0
  37. package/dist/postcss-DtZ8UtYr.cjs +6782 -0
  38. package/dist/postcss-DuVmYBUE.mjs +6777 -0
  39. package/dist/typescript-DoEQusFy.mjs +22902 -0
  40. package/dist/typescript-I6QkuLBo.cjs +22904 -0
  41. package/dist/yaml-TADhykGS.mjs +5279 -0
  42. package/dist/yaml-jVlKqQbk.cjs +5285 -0
  43. package/package.json +16 -13
@@ -0,0 +1,4971 @@
1
+
2
+ //#region node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/plugins/acorn.mjs
3
+ var Ii = Object.create;
4
+ var Be = Object.defineProperty;
5
+ var Ni = Object.getOwnPropertyDescriptor;
6
+ var Li = Object.getOwnPropertyNames;
7
+ var Ri = Object.getPrototypeOf, Vi = Object.prototype.hasOwnProperty;
8
+ var ot = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), Oi = (e, t) => {
9
+ for (var i in t) Be(e, i, {
10
+ get: t[i],
11
+ enumerable: !0
12
+ });
13
+ }, Bi = (e, t, i, s) => {
14
+ if (t && typeof t == "object" || typeof t == "function") for (let r of Li(t)) !Vi.call(e, r) && r !== i && Be(e, r, {
15
+ get: () => t[r],
16
+ enumerable: !(s = Ni(t, r)) || s.enumerable
17
+ });
18
+ return e;
19
+ };
20
+ var ut = (e, t, i) => (i = e != null ? Ii(Ri(e)) : {}, Bi(t || !e || !e.__esModule ? Be(i, "default", {
21
+ value: e,
22
+ enumerable: !0
23
+ }) : i, e));
24
+ var Qt = ot((xr, zt) => {
25
+ zt.exports = {};
26
+ });
27
+ var $e = ot((yr, Ye) => {
28
+ "use strict";
29
+ var _s = Qt(), Cs = /^[\da-fA-F]+$/, Ts = /^\d+$/, Yt = /* @__PURE__ */ new WeakMap();
30
+ function $t(e) {
31
+ e = e.Parser.acorn || e;
32
+ let t = Yt.get(e);
33
+ if (!t) {
34
+ let i = e.tokTypes, s = e.TokContext, r = e.TokenType, o = new s("<tag", !1), u = new s("</tag", !1), p = new s("<tag>...</tag>", !0, !0), h = {
35
+ tc_oTag: o,
36
+ tc_cTag: u,
37
+ tc_expr: p
38
+ }, l = {
39
+ jsxName: new r("jsxName"),
40
+ jsxText: new r("jsxText", { beforeExpr: !0 }),
41
+ jsxTagStart: new r("jsxTagStart", { startsExpr: !0 }),
42
+ jsxTagEnd: new r("jsxTagEnd")
43
+ };
44
+ l.jsxTagStart.updateContext = function() {
45
+ this.context.push(p), this.context.push(o), this.exprAllowed = !1;
46
+ }, l.jsxTagEnd.updateContext = function(m) {
47
+ let S = this.context.pop();
48
+ S === o && m === i.slash || S === u ? (this.context.pop(), this.exprAllowed = this.curContext() === p) : this.exprAllowed = !0;
49
+ }, t = {
50
+ tokContexts: h,
51
+ tokTypes: l
52
+ }, Yt.set(e, t);
53
+ }
54
+ return t;
55
+ }
56
+ function pe(e) {
57
+ if (!e) return e;
58
+ if (e.type === "JSXIdentifier") return e.name;
59
+ if (e.type === "JSXNamespacedName") return e.namespace.name + ":" + e.name.name;
60
+ if (e.type === "JSXMemberExpression") return pe(e.object) + "." + pe(e.property);
61
+ }
62
+ Ye.exports = function(e) {
63
+ return e = e || {}, function(t) {
64
+ return Es({
65
+ allowNamespaces: e.allowNamespaces !== !1,
66
+ allowNamespacedObjects: !!e.allowNamespacedObjects
67
+ }, t);
68
+ };
69
+ };
70
+ Object.defineProperty(Ye.exports, "tokTypes", {
71
+ get: function() {
72
+ return $t(void 0).tokTypes;
73
+ },
74
+ configurable: !0,
75
+ enumerable: !0
76
+ });
77
+ function Es(e, t) {
78
+ let i = t.acorn || void 0, s = $t(i), r = i.tokTypes, o = s.tokTypes, u = i.tokContexts, p = s.tokContexts.tc_oTag, h = s.tokContexts.tc_cTag, l = s.tokContexts.tc_expr, m = i.isNewLine, S = i.isIdentifierStart, E = i.isIdentifierChar;
79
+ return class extends t {
80
+ static get acornJsx() {
81
+ return s;
82
+ }
83
+ jsx_readToken() {
84
+ let c = "", x = this.pos;
85
+ for (;;) {
86
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated JSX contents");
87
+ let y = this.input.charCodeAt(this.pos);
88
+ switch (y) {
89
+ case 60:
90
+ case 123: return this.pos === this.start ? y === 60 && this.exprAllowed ? (++this.pos, this.finishToken(o.jsxTagStart)) : this.getTokenFromCode(y) : (c += this.input.slice(x, this.pos), this.finishToken(o.jsxText, c));
91
+ case 38:
92
+ c += this.input.slice(x, this.pos), c += this.jsx_readEntity(), x = this.pos;
93
+ break;
94
+ case 62:
95
+ case 125: this.raise(this.pos, "Unexpected token `" + this.input[this.pos] + "`. Did you mean `" + (y === 62 ? "&gt;" : "&rbrace;") + "` or `{\"" + this.input[this.pos] + "\"}`?");
96
+ default: m(y) ? (c += this.input.slice(x, this.pos), c += this.jsx_readNewLine(!0), x = this.pos) : ++this.pos;
97
+ }
98
+ }
99
+ }
100
+ jsx_readNewLine(c) {
101
+ let x = this.input.charCodeAt(this.pos), y;
102
+ return ++this.pos, x === 13 && this.input.charCodeAt(this.pos) === 10 ? (++this.pos, y = c ? `
103
+ ` : `\r
104
+ `) : y = String.fromCharCode(x), this.options.locations && (++this.curLine, this.lineStart = this.pos), y;
105
+ }
106
+ jsx_readString(c) {
107
+ let x = "", y = ++this.pos;
108
+ for (;;) {
109
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
110
+ let v = this.input.charCodeAt(this.pos);
111
+ if (v === c) break;
112
+ v === 38 ? (x += this.input.slice(y, this.pos), x += this.jsx_readEntity(), y = this.pos) : m(v) ? (x += this.input.slice(y, this.pos), x += this.jsx_readNewLine(!1), y = this.pos) : ++this.pos;
113
+ }
114
+ return x += this.input.slice(y, this.pos++), this.finishToken(r.string, x);
115
+ }
116
+ jsx_readEntity() {
117
+ let c = "", x = 0, y, v = this.input[this.pos];
118
+ v !== "&" && this.raise(this.pos, "Entity must start with an ampersand");
119
+ let I = ++this.pos;
120
+ for (; this.pos < this.input.length && x++ < 10;) {
121
+ if (v = this.input[this.pos++], v === ";") {
122
+ c[0] === "#" ? c[1] === "x" ? (c = c.substr(2), Cs.test(c) && (y = String.fromCharCode(parseInt(c, 16)))) : (c = c.substr(1), Ts.test(c) && (y = String.fromCharCode(parseInt(c, 10)))) : y = _s[c];
123
+ break;
124
+ }
125
+ c += v;
126
+ }
127
+ return y || (this.pos = I, "&");
128
+ }
129
+ jsx_readWord() {
130
+ let c, x = this.pos;
131
+ do
132
+ c = this.input.charCodeAt(++this.pos);
133
+ while (E(c) || c === 45);
134
+ return this.finishToken(o.jsxName, this.input.slice(x, this.pos));
135
+ }
136
+ jsx_parseIdentifier() {
137
+ let c = this.startNode();
138
+ return this.type === o.jsxName ? c.name = this.value : this.type.keyword ? c.name = this.type.keyword : this.unexpected(), this.next(), this.finishNode(c, "JSXIdentifier");
139
+ }
140
+ jsx_parseNamespacedName() {
141
+ let c = this.start, x = this.startLoc, y = this.jsx_parseIdentifier();
142
+ if (!e.allowNamespaces || !this.eat(r.colon)) return y;
143
+ var v = this.startNodeAt(c, x);
144
+ return v.namespace = y, v.name = this.jsx_parseIdentifier(), this.finishNode(v, "JSXNamespacedName");
145
+ }
146
+ jsx_parseElementName() {
147
+ if (this.type === o.jsxTagEnd) return "";
148
+ let c = this.start, x = this.startLoc, y = this.jsx_parseNamespacedName();
149
+ for (this.type === r.dot && y.type === "JSXNamespacedName" && !e.allowNamespacedObjects && this.unexpected(); this.eat(r.dot);) {
150
+ let v = this.startNodeAt(c, x);
151
+ v.object = y, v.property = this.jsx_parseIdentifier(), y = this.finishNode(v, "JSXMemberExpression");
152
+ }
153
+ return y;
154
+ }
155
+ jsx_parseAttributeValue() {
156
+ switch (this.type) {
157
+ case r.braceL:
158
+ let c = this.jsx_parseExpressionContainer();
159
+ return c.expression.type === "JSXEmptyExpression" && this.raise(c.start, "JSX attributes must only be assigned a non-empty expression"), c;
160
+ case o.jsxTagStart:
161
+ case r.string: return this.parseExprAtom();
162
+ default: this.raise(this.start, "JSX value should be either an expression or a quoted JSX text");
163
+ }
164
+ }
165
+ jsx_parseEmptyExpression() {
166
+ let c = this.startNodeAt(this.lastTokEnd, this.lastTokEndLoc);
167
+ return this.finishNodeAt(c, "JSXEmptyExpression", this.start, this.startLoc);
168
+ }
169
+ jsx_parseExpressionContainer() {
170
+ let c = this.startNode();
171
+ return this.next(), c.expression = this.type === r.braceR ? this.jsx_parseEmptyExpression() : this.parseExpression(), this.expect(r.braceR), this.finishNode(c, "JSXExpressionContainer");
172
+ }
173
+ jsx_parseAttribute() {
174
+ let c = this.startNode();
175
+ return this.eat(r.braceL) ? (this.expect(r.ellipsis), c.argument = this.parseMaybeAssign(), this.expect(r.braceR), this.finishNode(c, "JSXSpreadAttribute")) : (c.name = this.jsx_parseNamespacedName(), c.value = this.eat(r.eq) ? this.jsx_parseAttributeValue() : null, this.finishNode(c, "JSXAttribute"));
176
+ }
177
+ jsx_parseOpeningElementAt(c, x) {
178
+ let y = this.startNodeAt(c, x);
179
+ y.attributes = [];
180
+ let v = this.jsx_parseElementName();
181
+ for (v && (y.name = v); this.type !== r.slash && this.type !== o.jsxTagEnd;) y.attributes.push(this.jsx_parseAttribute());
182
+ return y.selfClosing = this.eat(r.slash), this.expect(o.jsxTagEnd), this.finishNode(y, v ? "JSXOpeningElement" : "JSXOpeningFragment");
183
+ }
184
+ jsx_parseClosingElementAt(c, x) {
185
+ let y = this.startNodeAt(c, x), v = this.jsx_parseElementName();
186
+ return v && (y.name = v), this.expect(o.jsxTagEnd), this.finishNode(y, v ? "JSXClosingElement" : "JSXClosingFragment");
187
+ }
188
+ jsx_parseElementAt(c, x) {
189
+ let y = this.startNodeAt(c, x), v = [], I = this.jsx_parseOpeningElementAt(c, x), de = null;
190
+ if (!I.selfClosing) {
191
+ e: for (;;) switch (this.type) {
192
+ case o.jsxTagStart:
193
+ if (c = this.start, x = this.startLoc, this.next(), this.eat(r.slash)) {
194
+ de = this.jsx_parseClosingElementAt(c, x);
195
+ break e;
196
+ }
197
+ v.push(this.jsx_parseElementAt(c, x));
198
+ break;
199
+ case o.jsxText:
200
+ v.push(this.parseExprAtom());
201
+ break;
202
+ case r.braceL:
203
+ v.push(this.jsx_parseExpressionContainer());
204
+ break;
205
+ default: this.unexpected();
206
+ }
207
+ pe(de.name) !== pe(I.name) && this.raise(de.start, "Expected corresponding JSX closing tag for <" + pe(I.name) + ">");
208
+ }
209
+ let Oe = I.name ? "Element" : "Fragment";
210
+ return y["opening" + Oe] = I, y["closing" + Oe] = de, y.children = v, this.type === r.relational && this.value === "<" && this.raise(this.start, "Adjacent JSX elements must be wrapped in an enclosing tag"), this.finishNode(y, "JSX" + Oe);
211
+ }
212
+ jsx_parseText() {
213
+ let c = this.parseLiteral(this.value);
214
+ return c.type = "JSXText", c;
215
+ }
216
+ jsx_parseElement() {
217
+ let c = this.start, x = this.startLoc;
218
+ return this.next(), this.jsx_parseElementAt(c, x);
219
+ }
220
+ parseExprAtom(c) {
221
+ return this.type === o.jsxText ? this.jsx_parseText() : this.type === o.jsxTagStart ? this.jsx_parseElement() : super.parseExprAtom(c);
222
+ }
223
+ readToken(c) {
224
+ let x = this.curContext();
225
+ if (x === l) return this.jsx_readToken();
226
+ if (x === p || x === h) {
227
+ if (S(c)) return this.jsx_readWord();
228
+ if (c == 62) return ++this.pos, this.finishToken(o.jsxTagEnd);
229
+ if ((c === 34 || c === 39) && x == p) return this.jsx_readString(c);
230
+ }
231
+ return c === 60 && this.exprAllowed && this.input.charCodeAt(this.pos + 1) !== 33 ? (++this.pos, this.finishToken(o.jsxTagStart)) : super.readToken(c);
232
+ }
233
+ updateContext(c) {
234
+ if (this.type == r.braceL) {
235
+ var x = this.curContext();
236
+ x == p ? this.context.push(u.b_expr) : x == l ? this.context.push(u.b_tmpl) : super.updateContext(c), this.exprAllowed = !0;
237
+ } else if (this.type === r.slash && c === o.jsxTagStart) this.context.length -= 2, this.context.push(h), this.exprAllowed = !1;
238
+ else return super.updateContext(c);
239
+ }
240
+ };
241
+ }
242
+ });
243
+ var Pi = {};
244
+ Oi(Pi, { parsers: () => dr });
245
+ var Di = [
246
+ 509,
247
+ 0,
248
+ 227,
249
+ 0,
250
+ 150,
251
+ 4,
252
+ 294,
253
+ 9,
254
+ 1368,
255
+ 2,
256
+ 2,
257
+ 1,
258
+ 6,
259
+ 3,
260
+ 41,
261
+ 2,
262
+ 5,
263
+ 0,
264
+ 166,
265
+ 1,
266
+ 574,
267
+ 3,
268
+ 9,
269
+ 9,
270
+ 7,
271
+ 9,
272
+ 32,
273
+ 4,
274
+ 318,
275
+ 1,
276
+ 80,
277
+ 3,
278
+ 71,
279
+ 10,
280
+ 50,
281
+ 3,
282
+ 123,
283
+ 2,
284
+ 54,
285
+ 14,
286
+ 32,
287
+ 10,
288
+ 3,
289
+ 1,
290
+ 11,
291
+ 3,
292
+ 46,
293
+ 10,
294
+ 8,
295
+ 0,
296
+ 46,
297
+ 9,
298
+ 7,
299
+ 2,
300
+ 37,
301
+ 13,
302
+ 2,
303
+ 9,
304
+ 6,
305
+ 1,
306
+ 45,
307
+ 0,
308
+ 13,
309
+ 2,
310
+ 49,
311
+ 13,
312
+ 9,
313
+ 3,
314
+ 2,
315
+ 11,
316
+ 83,
317
+ 11,
318
+ 7,
319
+ 0,
320
+ 3,
321
+ 0,
322
+ 158,
323
+ 11,
324
+ 6,
325
+ 9,
326
+ 7,
327
+ 3,
328
+ 56,
329
+ 1,
330
+ 2,
331
+ 6,
332
+ 3,
333
+ 1,
334
+ 3,
335
+ 2,
336
+ 10,
337
+ 0,
338
+ 11,
339
+ 1,
340
+ 3,
341
+ 6,
342
+ 4,
343
+ 4,
344
+ 68,
345
+ 8,
346
+ 2,
347
+ 0,
348
+ 3,
349
+ 0,
350
+ 2,
351
+ 3,
352
+ 2,
353
+ 4,
354
+ 2,
355
+ 0,
356
+ 15,
357
+ 1,
358
+ 83,
359
+ 17,
360
+ 10,
361
+ 9,
362
+ 5,
363
+ 0,
364
+ 82,
365
+ 19,
366
+ 13,
367
+ 9,
368
+ 214,
369
+ 6,
370
+ 3,
371
+ 8,
372
+ 28,
373
+ 1,
374
+ 83,
375
+ 16,
376
+ 16,
377
+ 9,
378
+ 82,
379
+ 12,
380
+ 9,
381
+ 9,
382
+ 7,
383
+ 19,
384
+ 58,
385
+ 14,
386
+ 5,
387
+ 9,
388
+ 243,
389
+ 14,
390
+ 166,
391
+ 9,
392
+ 71,
393
+ 5,
394
+ 2,
395
+ 1,
396
+ 3,
397
+ 3,
398
+ 2,
399
+ 0,
400
+ 2,
401
+ 1,
402
+ 13,
403
+ 9,
404
+ 120,
405
+ 6,
406
+ 3,
407
+ 6,
408
+ 4,
409
+ 0,
410
+ 29,
411
+ 9,
412
+ 41,
413
+ 6,
414
+ 2,
415
+ 3,
416
+ 9,
417
+ 0,
418
+ 10,
419
+ 10,
420
+ 47,
421
+ 15,
422
+ 343,
423
+ 9,
424
+ 54,
425
+ 7,
426
+ 2,
427
+ 7,
428
+ 17,
429
+ 9,
430
+ 57,
431
+ 21,
432
+ 2,
433
+ 13,
434
+ 123,
435
+ 5,
436
+ 4,
437
+ 0,
438
+ 2,
439
+ 1,
440
+ 2,
441
+ 6,
442
+ 2,
443
+ 0,
444
+ 9,
445
+ 9,
446
+ 49,
447
+ 4,
448
+ 2,
449
+ 1,
450
+ 2,
451
+ 4,
452
+ 9,
453
+ 9,
454
+ 330,
455
+ 3,
456
+ 10,
457
+ 1,
458
+ 2,
459
+ 0,
460
+ 49,
461
+ 6,
462
+ 4,
463
+ 4,
464
+ 14,
465
+ 10,
466
+ 5350,
467
+ 0,
468
+ 7,
469
+ 14,
470
+ 11465,
471
+ 27,
472
+ 2343,
473
+ 9,
474
+ 87,
475
+ 9,
476
+ 39,
477
+ 4,
478
+ 60,
479
+ 6,
480
+ 26,
481
+ 9,
482
+ 535,
483
+ 9,
484
+ 470,
485
+ 0,
486
+ 2,
487
+ 54,
488
+ 8,
489
+ 3,
490
+ 82,
491
+ 0,
492
+ 12,
493
+ 1,
494
+ 19628,
495
+ 1,
496
+ 4178,
497
+ 9,
498
+ 519,
499
+ 45,
500
+ 3,
501
+ 22,
502
+ 543,
503
+ 4,
504
+ 4,
505
+ 5,
506
+ 9,
507
+ 7,
508
+ 3,
509
+ 6,
510
+ 31,
511
+ 3,
512
+ 149,
513
+ 2,
514
+ 1418,
515
+ 49,
516
+ 513,
517
+ 54,
518
+ 5,
519
+ 49,
520
+ 9,
521
+ 0,
522
+ 15,
523
+ 0,
524
+ 23,
525
+ 4,
526
+ 2,
527
+ 14,
528
+ 1361,
529
+ 6,
530
+ 2,
531
+ 16,
532
+ 3,
533
+ 6,
534
+ 2,
535
+ 1,
536
+ 2,
537
+ 4,
538
+ 101,
539
+ 0,
540
+ 161,
541
+ 6,
542
+ 10,
543
+ 9,
544
+ 357,
545
+ 0,
546
+ 62,
547
+ 13,
548
+ 499,
549
+ 13,
550
+ 245,
551
+ 1,
552
+ 2,
553
+ 9,
554
+ 726,
555
+ 6,
556
+ 110,
557
+ 6,
558
+ 6,
559
+ 9,
560
+ 4759,
561
+ 9,
562
+ 787719,
563
+ 239
564
+ ], dt = [
565
+ 0,
566
+ 11,
567
+ 2,
568
+ 25,
569
+ 2,
570
+ 18,
571
+ 2,
572
+ 1,
573
+ 2,
574
+ 14,
575
+ 3,
576
+ 13,
577
+ 35,
578
+ 122,
579
+ 70,
580
+ 52,
581
+ 268,
582
+ 28,
583
+ 4,
584
+ 48,
585
+ 48,
586
+ 31,
587
+ 14,
588
+ 29,
589
+ 6,
590
+ 37,
591
+ 11,
592
+ 29,
593
+ 3,
594
+ 35,
595
+ 5,
596
+ 7,
597
+ 2,
598
+ 4,
599
+ 43,
600
+ 157,
601
+ 19,
602
+ 35,
603
+ 5,
604
+ 35,
605
+ 5,
606
+ 39,
607
+ 9,
608
+ 51,
609
+ 13,
610
+ 10,
611
+ 2,
612
+ 14,
613
+ 2,
614
+ 6,
615
+ 2,
616
+ 1,
617
+ 2,
618
+ 10,
619
+ 2,
620
+ 14,
621
+ 2,
622
+ 6,
623
+ 2,
624
+ 1,
625
+ 4,
626
+ 51,
627
+ 13,
628
+ 310,
629
+ 10,
630
+ 21,
631
+ 11,
632
+ 7,
633
+ 25,
634
+ 5,
635
+ 2,
636
+ 41,
637
+ 2,
638
+ 8,
639
+ 70,
640
+ 5,
641
+ 3,
642
+ 0,
643
+ 2,
644
+ 43,
645
+ 2,
646
+ 1,
647
+ 4,
648
+ 0,
649
+ 3,
650
+ 22,
651
+ 11,
652
+ 22,
653
+ 10,
654
+ 30,
655
+ 66,
656
+ 18,
657
+ 2,
658
+ 1,
659
+ 11,
660
+ 21,
661
+ 11,
662
+ 25,
663
+ 71,
664
+ 55,
665
+ 7,
666
+ 1,
667
+ 65,
668
+ 0,
669
+ 16,
670
+ 3,
671
+ 2,
672
+ 2,
673
+ 2,
674
+ 28,
675
+ 43,
676
+ 28,
677
+ 4,
678
+ 28,
679
+ 36,
680
+ 7,
681
+ 2,
682
+ 27,
683
+ 28,
684
+ 53,
685
+ 11,
686
+ 21,
687
+ 11,
688
+ 18,
689
+ 14,
690
+ 17,
691
+ 111,
692
+ 72,
693
+ 56,
694
+ 50,
695
+ 14,
696
+ 50,
697
+ 14,
698
+ 35,
699
+ 39,
700
+ 27,
701
+ 10,
702
+ 22,
703
+ 251,
704
+ 41,
705
+ 7,
706
+ 1,
707
+ 17,
708
+ 2,
709
+ 60,
710
+ 28,
711
+ 11,
712
+ 0,
713
+ 9,
714
+ 21,
715
+ 43,
716
+ 17,
717
+ 47,
718
+ 20,
719
+ 28,
720
+ 22,
721
+ 13,
722
+ 52,
723
+ 58,
724
+ 1,
725
+ 3,
726
+ 0,
727
+ 14,
728
+ 44,
729
+ 33,
730
+ 24,
731
+ 27,
732
+ 35,
733
+ 30,
734
+ 0,
735
+ 3,
736
+ 0,
737
+ 9,
738
+ 34,
739
+ 4,
740
+ 0,
741
+ 13,
742
+ 47,
743
+ 15,
744
+ 3,
745
+ 22,
746
+ 0,
747
+ 2,
748
+ 0,
749
+ 36,
750
+ 17,
751
+ 2,
752
+ 24,
753
+ 20,
754
+ 1,
755
+ 64,
756
+ 6,
757
+ 2,
758
+ 0,
759
+ 2,
760
+ 3,
761
+ 2,
762
+ 14,
763
+ 2,
764
+ 9,
765
+ 8,
766
+ 46,
767
+ 39,
768
+ 7,
769
+ 3,
770
+ 1,
771
+ 3,
772
+ 21,
773
+ 2,
774
+ 6,
775
+ 2,
776
+ 1,
777
+ 2,
778
+ 4,
779
+ 4,
780
+ 0,
781
+ 19,
782
+ 0,
783
+ 13,
784
+ 4,
785
+ 31,
786
+ 9,
787
+ 2,
788
+ 0,
789
+ 3,
790
+ 0,
791
+ 2,
792
+ 37,
793
+ 2,
794
+ 0,
795
+ 26,
796
+ 0,
797
+ 2,
798
+ 0,
799
+ 45,
800
+ 52,
801
+ 19,
802
+ 3,
803
+ 21,
804
+ 2,
805
+ 31,
806
+ 47,
807
+ 21,
808
+ 1,
809
+ 2,
810
+ 0,
811
+ 185,
812
+ 46,
813
+ 42,
814
+ 3,
815
+ 37,
816
+ 47,
817
+ 21,
818
+ 0,
819
+ 60,
820
+ 42,
821
+ 14,
822
+ 0,
823
+ 72,
824
+ 26,
825
+ 38,
826
+ 6,
827
+ 186,
828
+ 43,
829
+ 117,
830
+ 63,
831
+ 32,
832
+ 7,
833
+ 3,
834
+ 0,
835
+ 3,
836
+ 7,
837
+ 2,
838
+ 1,
839
+ 2,
840
+ 23,
841
+ 16,
842
+ 0,
843
+ 2,
844
+ 0,
845
+ 95,
846
+ 7,
847
+ 3,
848
+ 38,
849
+ 17,
850
+ 0,
851
+ 2,
852
+ 0,
853
+ 29,
854
+ 0,
855
+ 11,
856
+ 39,
857
+ 8,
858
+ 0,
859
+ 22,
860
+ 0,
861
+ 12,
862
+ 45,
863
+ 20,
864
+ 0,
865
+ 19,
866
+ 72,
867
+ 200,
868
+ 32,
869
+ 32,
870
+ 8,
871
+ 2,
872
+ 36,
873
+ 18,
874
+ 0,
875
+ 50,
876
+ 29,
877
+ 113,
878
+ 6,
879
+ 2,
880
+ 1,
881
+ 2,
882
+ 37,
883
+ 22,
884
+ 0,
885
+ 26,
886
+ 5,
887
+ 2,
888
+ 1,
889
+ 2,
890
+ 31,
891
+ 15,
892
+ 0,
893
+ 328,
894
+ 18,
895
+ 16,
896
+ 0,
897
+ 2,
898
+ 12,
899
+ 2,
900
+ 33,
901
+ 125,
902
+ 0,
903
+ 80,
904
+ 921,
905
+ 103,
906
+ 110,
907
+ 18,
908
+ 195,
909
+ 2637,
910
+ 96,
911
+ 16,
912
+ 1071,
913
+ 18,
914
+ 5,
915
+ 26,
916
+ 3994,
917
+ 6,
918
+ 582,
919
+ 6842,
920
+ 29,
921
+ 1763,
922
+ 568,
923
+ 8,
924
+ 30,
925
+ 18,
926
+ 78,
927
+ 18,
928
+ 29,
929
+ 19,
930
+ 47,
931
+ 17,
932
+ 3,
933
+ 32,
934
+ 20,
935
+ 6,
936
+ 18,
937
+ 433,
938
+ 44,
939
+ 212,
940
+ 63,
941
+ 129,
942
+ 74,
943
+ 6,
944
+ 0,
945
+ 67,
946
+ 12,
947
+ 65,
948
+ 1,
949
+ 2,
950
+ 0,
951
+ 29,
952
+ 6135,
953
+ 9,
954
+ 1237,
955
+ 42,
956
+ 9,
957
+ 8936,
958
+ 3,
959
+ 2,
960
+ 6,
961
+ 2,
962
+ 1,
963
+ 2,
964
+ 290,
965
+ 16,
966
+ 0,
967
+ 30,
968
+ 2,
969
+ 3,
970
+ 0,
971
+ 15,
972
+ 3,
973
+ 9,
974
+ 395,
975
+ 2309,
976
+ 106,
977
+ 6,
978
+ 12,
979
+ 4,
980
+ 8,
981
+ 8,
982
+ 9,
983
+ 5991,
984
+ 84,
985
+ 2,
986
+ 70,
987
+ 2,
988
+ 1,
989
+ 3,
990
+ 0,
991
+ 3,
992
+ 1,
993
+ 3,
994
+ 3,
995
+ 2,
996
+ 11,
997
+ 2,
998
+ 0,
999
+ 2,
1000
+ 6,
1001
+ 2,
1002
+ 64,
1003
+ 2,
1004
+ 3,
1005
+ 3,
1006
+ 7,
1007
+ 2,
1008
+ 6,
1009
+ 2,
1010
+ 27,
1011
+ 2,
1012
+ 3,
1013
+ 2,
1014
+ 4,
1015
+ 2,
1016
+ 0,
1017
+ 4,
1018
+ 6,
1019
+ 2,
1020
+ 339,
1021
+ 3,
1022
+ 24,
1023
+ 2,
1024
+ 24,
1025
+ 2,
1026
+ 30,
1027
+ 2,
1028
+ 24,
1029
+ 2,
1030
+ 30,
1031
+ 2,
1032
+ 24,
1033
+ 2,
1034
+ 30,
1035
+ 2,
1036
+ 24,
1037
+ 2,
1038
+ 30,
1039
+ 2,
1040
+ 24,
1041
+ 2,
1042
+ 7,
1043
+ 1845,
1044
+ 30,
1045
+ 7,
1046
+ 5,
1047
+ 262,
1048
+ 61,
1049
+ 147,
1050
+ 44,
1051
+ 11,
1052
+ 6,
1053
+ 17,
1054
+ 0,
1055
+ 322,
1056
+ 29,
1057
+ 19,
1058
+ 43,
1059
+ 485,
1060
+ 27,
1061
+ 229,
1062
+ 29,
1063
+ 3,
1064
+ 0,
1065
+ 496,
1066
+ 6,
1067
+ 2,
1068
+ 3,
1069
+ 2,
1070
+ 1,
1071
+ 2,
1072
+ 14,
1073
+ 2,
1074
+ 196,
1075
+ 60,
1076
+ 67,
1077
+ 8,
1078
+ 0,
1079
+ 1205,
1080
+ 3,
1081
+ 2,
1082
+ 26,
1083
+ 2,
1084
+ 1,
1085
+ 2,
1086
+ 0,
1087
+ 3,
1088
+ 0,
1089
+ 2,
1090
+ 9,
1091
+ 2,
1092
+ 3,
1093
+ 2,
1094
+ 0,
1095
+ 2,
1096
+ 0,
1097
+ 7,
1098
+ 0,
1099
+ 5,
1100
+ 0,
1101
+ 2,
1102
+ 0,
1103
+ 2,
1104
+ 0,
1105
+ 2,
1106
+ 2,
1107
+ 2,
1108
+ 1,
1109
+ 2,
1110
+ 0,
1111
+ 3,
1112
+ 0,
1113
+ 2,
1114
+ 0,
1115
+ 2,
1116
+ 0,
1117
+ 2,
1118
+ 0,
1119
+ 2,
1120
+ 0,
1121
+ 2,
1122
+ 1,
1123
+ 2,
1124
+ 0,
1125
+ 3,
1126
+ 3,
1127
+ 2,
1128
+ 6,
1129
+ 2,
1130
+ 3,
1131
+ 2,
1132
+ 3,
1133
+ 2,
1134
+ 0,
1135
+ 2,
1136
+ 9,
1137
+ 2,
1138
+ 16,
1139
+ 6,
1140
+ 2,
1141
+ 2,
1142
+ 4,
1143
+ 2,
1144
+ 16,
1145
+ 4421,
1146
+ 42719,
1147
+ 33,
1148
+ 4153,
1149
+ 7,
1150
+ 221,
1151
+ 3,
1152
+ 5761,
1153
+ 15,
1154
+ 7472,
1155
+ 16,
1156
+ 621,
1157
+ 2467,
1158
+ 541,
1159
+ 1507,
1160
+ 4938,
1161
+ 6,
1162
+ 4191
1163
+ ], Mi = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", mt = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", De = {
1164
+ 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",
1165
+ 5: "class enum extends super const export import",
1166
+ 6: "enum",
1167
+ strict: "implements interface let package private protected public static yield",
1168
+ strictBind: "eval arguments"
1169
+ }, Me = "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", Fi = {
1170
+ 5: Me,
1171
+ "5module": Me + " export import",
1172
+ 6: Me + " const class extends export import super"
1173
+ }, ji = /^in(stanceof)?$/, Ui = new RegExp("[" + mt + "]"), Gi = new RegExp("[" + mt + Mi + "]");
1174
+ function je(e, t) {
1175
+ for (var i = 65536, s = 0; s < t.length; s += 2) {
1176
+ if (i += t[s], i > e) return !1;
1177
+ if (i += t[s + 1], i >= e) return !0;
1178
+ }
1179
+ return !1;
1180
+ }
1181
+ function j(e, t) {
1182
+ return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Ui.test(String.fromCharCode(e)) : t === !1 ? !1 : je(e, dt);
1183
+ }
1184
+ function X(e, t) {
1185
+ return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Gi.test(String.fromCharCode(e)) : t === !1 ? !1 : je(e, dt) || je(e, Di);
1186
+ }
1187
+ var C = function(t, i) {
1188
+ 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;
1189
+ };
1190
+ function V(e, t) {
1191
+ return new C(e, {
1192
+ beforeExpr: !0,
1193
+ binop: t
1194
+ });
1195
+ }
1196
+ var O = { beforeExpr: !0 }, N = { startsExpr: !0 }, Je = {};
1197
+ function _(e, t) {
1198
+ return t === void 0 && (t = {}), t.keyword = e, Je[e] = new C(e, t);
1199
+ }
1200
+ var a = {
1201
+ num: new C("num", N),
1202
+ regexp: new C("regexp", N),
1203
+ string: new C("string", N),
1204
+ name: new C("name", N),
1205
+ privateId: new C("privateId", N),
1206
+ eof: new C("eof"),
1207
+ bracketL: new C("[", {
1208
+ beforeExpr: !0,
1209
+ startsExpr: !0
1210
+ }),
1211
+ bracketR: new C("]"),
1212
+ braceL: new C("{", {
1213
+ beforeExpr: !0,
1214
+ startsExpr: !0
1215
+ }),
1216
+ braceR: new C("}"),
1217
+ parenL: new C("(", {
1218
+ beforeExpr: !0,
1219
+ startsExpr: !0
1220
+ }),
1221
+ parenR: new C(")"),
1222
+ comma: new C(",", O),
1223
+ semi: new C(";", O),
1224
+ colon: new C(":", O),
1225
+ dot: new C("."),
1226
+ question: new C("?", O),
1227
+ questionDot: new C("?."),
1228
+ arrow: new C("=>", O),
1229
+ template: new C("template"),
1230
+ invalidTemplate: new C("invalidTemplate"),
1231
+ ellipsis: new C("...", O),
1232
+ backQuote: new C("`", N),
1233
+ dollarBraceL: new C("${", {
1234
+ beforeExpr: !0,
1235
+ startsExpr: !0
1236
+ }),
1237
+ eq: new C("=", {
1238
+ beforeExpr: !0,
1239
+ isAssign: !0
1240
+ }),
1241
+ assign: new C("_=", {
1242
+ beforeExpr: !0,
1243
+ isAssign: !0
1244
+ }),
1245
+ incDec: new C("++/--", {
1246
+ prefix: !0,
1247
+ postfix: !0,
1248
+ startsExpr: !0
1249
+ }),
1250
+ prefix: new C("!/~", {
1251
+ beforeExpr: !0,
1252
+ prefix: !0,
1253
+ startsExpr: !0
1254
+ }),
1255
+ logicalOR: V("||", 1),
1256
+ logicalAND: V("&&", 2),
1257
+ bitwiseOR: V("|", 3),
1258
+ bitwiseXOR: V("^", 4),
1259
+ bitwiseAND: V("&", 5),
1260
+ equality: V("==/!=/===/!==", 6),
1261
+ relational: V("</>/<=/>=", 7),
1262
+ bitShift: V("<</>>/>>>", 8),
1263
+ plusMin: new C("+/-", {
1264
+ beforeExpr: !0,
1265
+ binop: 9,
1266
+ prefix: !0,
1267
+ startsExpr: !0
1268
+ }),
1269
+ modulo: V("%", 10),
1270
+ star: V("*", 10),
1271
+ slash: V("/", 10),
1272
+ starstar: new C("**", { beforeExpr: !0 }),
1273
+ coalesce: V("??", 1),
1274
+ _break: _("break"),
1275
+ _case: _("case", O),
1276
+ _catch: _("catch"),
1277
+ _continue: _("continue"),
1278
+ _debugger: _("debugger"),
1279
+ _default: _("default", O),
1280
+ _do: _("do", {
1281
+ isLoop: !0,
1282
+ beforeExpr: !0
1283
+ }),
1284
+ _else: _("else", O),
1285
+ _finally: _("finally"),
1286
+ _for: _("for", { isLoop: !0 }),
1287
+ _function: _("function", N),
1288
+ _if: _("if"),
1289
+ _return: _("return", O),
1290
+ _switch: _("switch"),
1291
+ _throw: _("throw", O),
1292
+ _try: _("try"),
1293
+ _var: _("var"),
1294
+ _const: _("const"),
1295
+ _while: _("while", { isLoop: !0 }),
1296
+ _with: _("with"),
1297
+ _new: _("new", {
1298
+ beforeExpr: !0,
1299
+ startsExpr: !0
1300
+ }),
1301
+ _this: _("this", N),
1302
+ _super: _("super", N),
1303
+ _class: _("class", N),
1304
+ _extends: _("extends", O),
1305
+ _export: _("export"),
1306
+ _import: _("import", N),
1307
+ _null: _("null", N),
1308
+ _true: _("true", N),
1309
+ _false: _("false", N),
1310
+ _in: _("in", {
1311
+ beforeExpr: !0,
1312
+ binop: 7
1313
+ }),
1314
+ _instanceof: _("instanceof", {
1315
+ beforeExpr: !0,
1316
+ binop: 7
1317
+ }),
1318
+ _typeof: _("typeof", {
1319
+ beforeExpr: !0,
1320
+ prefix: !0,
1321
+ startsExpr: !0
1322
+ }),
1323
+ _void: _("void", {
1324
+ beforeExpr: !0,
1325
+ prefix: !0,
1326
+ startsExpr: !0
1327
+ }),
1328
+ _delete: _("delete", {
1329
+ beforeExpr: !0,
1330
+ prefix: !0,
1331
+ startsExpr: !0
1332
+ })
1333
+ }, L = /\r\n?|\n|\u2028|\u2029/, qi = new RegExp(L.source, "g");
1334
+ function Y(e) {
1335
+ return e === 10 || e === 13 || e === 8232 || e === 8233;
1336
+ }
1337
+ function xt(e, t, i) {
1338
+ i === void 0 && (i = e.length);
1339
+ for (var s = t; s < i; s++) {
1340
+ var r = e.charCodeAt(s);
1341
+ if (Y(r)) return s < i - 1 && r === 13 && e.charCodeAt(s + 1) === 10 ? s + 2 : s + 1;
1342
+ }
1343
+ return -1;
1344
+ }
1345
+ var yt = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, k = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, gt = Object.prototype, Ji = gt.hasOwnProperty, Ki = gt.toString, $ = Object.hasOwn || (function(e, t) {
1346
+ return Ji.call(e, t);
1347
+ }), ht = Array.isArray || (function(e) {
1348
+ return Ki.call(e) === "[object Array]";
1349
+ }), pt = Object.create(null);
1350
+ function H(e) {
1351
+ return pt[e] || (pt[e] = new RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
1352
+ }
1353
+ function q(e) {
1354
+ return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
1355
+ }
1356
+ var Hi = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, ne = function(t, i) {
1357
+ this.line = t, this.column = i;
1358
+ };
1359
+ ne.prototype.offset = function(t) {
1360
+ return new ne(this.line, this.column + t);
1361
+ };
1362
+ var be = function(t, i, s) {
1363
+ this.start = i, this.end = s, t.sourceFile !== null && (this.source = t.sourceFile);
1364
+ };
1365
+ function vt(e, t) {
1366
+ for (var i = 1, s = 0;;) {
1367
+ var r = xt(e, s, t);
1368
+ if (r < 0) return new ne(i, t - s);
1369
+ ++i, s = r;
1370
+ }
1371
+ }
1372
+ var Ue = {
1373
+ ecmaVersion: null,
1374
+ sourceType: "script",
1375
+ onInsertedSemicolon: null,
1376
+ onTrailingComma: null,
1377
+ allowReserved: null,
1378
+ allowReturnOutsideFunction: !1,
1379
+ allowImportExportEverywhere: !1,
1380
+ allowAwaitOutsideFunction: null,
1381
+ allowSuperOutsideMethod: null,
1382
+ allowHashBang: !1,
1383
+ checkPrivateFields: !0,
1384
+ locations: !1,
1385
+ onToken: null,
1386
+ onComment: null,
1387
+ ranges: !1,
1388
+ program: null,
1389
+ sourceFile: null,
1390
+ directSourceFile: null,
1391
+ preserveParens: !1
1392
+ }, ct = !1;
1393
+ function Xi(e) {
1394
+ var t = {};
1395
+ for (var i in Ue) t[i] = e && $(e, i) ? e[i] : Ue[i];
1396
+ if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!ct && typeof console == "object" && console.warn && (ct = !0, console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
1397
+ Defaulting to 2020, but this will stop working in the future.`)), t.ecmaVersion = 11) : t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved ??= t.ecmaVersion < 5, (!e || e.allowHashBang == null) && (t.allowHashBang = t.ecmaVersion >= 14), ht(t.onToken)) {
1398
+ var s = t.onToken;
1399
+ t.onToken = function(r) {
1400
+ return s.push(r);
1401
+ };
1402
+ }
1403
+ return ht(t.onComment) && (t.onComment = Wi(t, t.onComment)), t;
1404
+ }
1405
+ function Wi(e, t) {
1406
+ return function(i, s, r, o, u, p) {
1407
+ var h = {
1408
+ type: i ? "Block" : "Line",
1409
+ value: s,
1410
+ start: r,
1411
+ end: o
1412
+ };
1413
+ e.locations && (h.loc = new be(this, u, p)), e.ranges && (h.range = [r, o]), t.push(h);
1414
+ };
1415
+ }
1416
+ var oe = 1, Z = 2, Ke = 4, bt = 8, He = 16, St = 32, Se = 64, _t = 128, z = 256, ue = 512, _e = oe | Z | z;
1417
+ function Xe(e, t) {
1418
+ return Z | (e ? Ke : 0) | (t ? bt : 0);
1419
+ }
1420
+ var xe = 0, We = 1, K = 2, Ct = 3, Tt = 4, Et = 5, A = function(t, i, s) {
1421
+ this.options = t = Xi(t), this.sourceFile = t.sourceFile, this.keywords = H(Fi[t.ecmaVersion >= 6 ? 6 : t.sourceType === "module" ? "5module" : 5]);
1422
+ var r = "";
1423
+ t.allowReserved !== !0 && (r = De[t.ecmaVersion >= 6 ? 6 : t.ecmaVersion === 5 ? 5 : 3], t.sourceType === "module" && (r += " await")), this.reservedWords = H(r);
1424
+ var o = (r ? r + " " : "") + De.strict;
1425
+ this.reservedWordsStrict = H(o), this.reservedWordsStrictBind = H(o + " " + De.strictBind), this.input = String(i), this.containsEsc = !1, s ? (this.pos = s, this.lineStart = this.input.lastIndexOf(`
1426
+ `, s - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(L).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 = !0, this.inModule = t.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = Object.create(null), this.pos === 0 && t.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(oe), this.regexpState = null, this.privateNameStack = [];
1427
+ }, U = {
1428
+ inFunction: { configurable: !0 },
1429
+ inGenerator: { configurable: !0 },
1430
+ inAsync: { configurable: !0 },
1431
+ canAwait: { configurable: !0 },
1432
+ allowSuper: { configurable: !0 },
1433
+ allowDirectSuper: { configurable: !0 },
1434
+ treatFunctionsAsVar: { configurable: !0 },
1435
+ allowNewDotTarget: { configurable: !0 },
1436
+ inClassStaticBlock: { configurable: !0 }
1437
+ };
1438
+ A.prototype.parse = function() {
1439
+ var t = this.options.program || this.startNode();
1440
+ return this.nextToken(), this.parseTopLevel(t);
1441
+ };
1442
+ U.inFunction.get = function() {
1443
+ return (this.currentVarScope().flags & Z) > 0;
1444
+ };
1445
+ U.inGenerator.get = function() {
1446
+ return (this.currentVarScope().flags & bt) > 0;
1447
+ };
1448
+ U.inAsync.get = function() {
1449
+ return (this.currentVarScope().flags & Ke) > 0;
1450
+ };
1451
+ U.canAwait.get = function() {
1452
+ for (var e = this.scopeStack.length - 1; e >= 0; e--) {
1453
+ var i = this.scopeStack[e].flags;
1454
+ if (i & (z | ue)) return !1;
1455
+ if (i & Z) return (i & Ke) > 0;
1456
+ }
1457
+ return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
1458
+ };
1459
+ U.allowSuper.get = function() {
1460
+ return (this.currentThisScope().flags & Se) > 0 || this.options.allowSuperOutsideMethod;
1461
+ };
1462
+ U.allowDirectSuper.get = function() {
1463
+ return (this.currentThisScope().flags & _t) > 0;
1464
+ };
1465
+ U.treatFunctionsAsVar.get = function() {
1466
+ return this.treatFunctionsAsVarInScope(this.currentScope());
1467
+ };
1468
+ U.allowNewDotTarget.get = function() {
1469
+ for (var e = this.scopeStack.length - 1; e >= 0; e--) {
1470
+ var i = this.scopeStack[e].flags;
1471
+ if (i & (z | ue) || i & Z && !(i & He)) return !0;
1472
+ }
1473
+ return !1;
1474
+ };
1475
+ U.inClassStaticBlock.get = function() {
1476
+ return (this.currentVarScope().flags & z) > 0;
1477
+ };
1478
+ A.extend = function() {
1479
+ for (var t = [], i = arguments.length; i--;) t[i] = arguments[i];
1480
+ for (var s = this, r = 0; r < t.length; r++) s = t[r](s);
1481
+ return s;
1482
+ };
1483
+ A.parse = function(t, i) {
1484
+ return new this(i, t).parse();
1485
+ };
1486
+ A.parseExpressionAt = function(t, i, s) {
1487
+ var r = new this(s, t, i);
1488
+ return r.nextToken(), r.parseExpression();
1489
+ };
1490
+ A.tokenizer = function(t, i) {
1491
+ return new this(i, t);
1492
+ };
1493
+ Object.defineProperties(A.prototype, U);
1494
+ var w = A.prototype, zi = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
1495
+ w.strictDirective = function(e) {
1496
+ if (this.options.ecmaVersion < 5) return !1;
1497
+ for (;;) {
1498
+ k.lastIndex = e, e += k.exec(this.input)[0].length;
1499
+ var t = zi.exec(this.input.slice(e));
1500
+ if (!t) return !1;
1501
+ if ((t[1] || t[2]) === "use strict") {
1502
+ k.lastIndex = e + t[0].length;
1503
+ var i = k.exec(this.input), s = i.index + i[0].length, r = this.input.charAt(s);
1504
+ return r === ";" || r === "}" || L.test(i[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(r) || r === "!" && this.input.charAt(s + 1) === "=");
1505
+ }
1506
+ e += t[0].length, k.lastIndex = e, e += k.exec(this.input)[0].length, this.input[e] === ";" && e++;
1507
+ }
1508
+ };
1509
+ w.eat = function(e) {
1510
+ return this.type === e ? (this.next(), !0) : !1;
1511
+ };
1512
+ w.isContextual = function(e) {
1513
+ return this.type === a.name && this.value === e && !this.containsEsc;
1514
+ };
1515
+ w.eatContextual = function(e) {
1516
+ return this.isContextual(e) ? (this.next(), !0) : !1;
1517
+ };
1518
+ w.expectContextual = function(e) {
1519
+ this.eatContextual(e) || this.unexpected();
1520
+ };
1521
+ w.canInsertSemicolon = function() {
1522
+ return this.type === a.eof || this.type === a.braceR || L.test(this.input.slice(this.lastTokEnd, this.start));
1523
+ };
1524
+ w.insertSemicolon = function() {
1525
+ if (this.canInsertSemicolon()) return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), !0;
1526
+ };
1527
+ w.semicolon = function() {
1528
+ !this.eat(a.semi) && !this.insertSemicolon() && this.unexpected();
1529
+ };
1530
+ w.afterTrailingComma = function(e, t) {
1531
+ if (this.type === e) return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), t || this.next(), !0;
1532
+ };
1533
+ w.expect = function(e) {
1534
+ this.eat(e) || this.unexpected();
1535
+ };
1536
+ w.unexpected = function(e) {
1537
+ this.raise(e ?? this.start, "Unexpected token");
1538
+ };
1539
+ var Ce = function() {
1540
+ this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
1541
+ };
1542
+ w.checkPatternErrors = function(e, t) {
1543
+ if (e) {
1544
+ e.trailingComma > -1 && this.raiseRecoverable(e.trailingComma, "Comma is not permitted after the rest element");
1545
+ var i = t ? e.parenthesizedAssign : e.parenthesizedBind;
1546
+ i > -1 && this.raiseRecoverable(i, t ? "Assigning to rvalue" : "Parenthesized pattern");
1547
+ }
1548
+ };
1549
+ w.checkExpressionErrors = function(e, t) {
1550
+ if (!e) return !1;
1551
+ var i = e.shorthandAssign, s = e.doubleProto;
1552
+ if (!t) return i >= 0 || s >= 0;
1553
+ i >= 0 && this.raise(i, "Shorthand property assignments are valid only in destructuring patterns"), s >= 0 && this.raiseRecoverable(s, "Redefinition of __proto__ property");
1554
+ };
1555
+ w.checkYieldAwaitInDefaultParams = function() {
1556
+ 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");
1557
+ };
1558
+ w.isSimpleAssignTarget = function(e) {
1559
+ return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
1560
+ };
1561
+ var d = A.prototype;
1562
+ d.parseTopLevel = function(e) {
1563
+ var t = Object.create(null);
1564
+ for (e.body || (e.body = []); this.type !== a.eof;) {
1565
+ var i = this.parseStatement(null, !0, t);
1566
+ e.body.push(i);
1567
+ }
1568
+ if (this.inModule) for (var s = 0, r = Object.keys(this.undefinedExports); s < r.length; s += 1) {
1569
+ var o = r[s];
1570
+ this.raiseRecoverable(this.undefinedExports[o].start, "Export '" + o + "' is not defined");
1571
+ }
1572
+ return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
1573
+ };
1574
+ var ze = { kind: "loop" }, Qi = { kind: "switch" };
1575
+ d.isLet = function(e) {
1576
+ if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return !1;
1577
+ k.lastIndex = this.pos;
1578
+ var t = k.exec(this.input), i = this.pos + t[0].length, s = this.input.charCodeAt(i);
1579
+ if (s === 91 || s === 92) return !0;
1580
+ if (e) return !1;
1581
+ if (s === 123 || s > 55295 && s < 56320) return !0;
1582
+ if (j(s, !0)) {
1583
+ for (var r = i + 1; X(s = this.input.charCodeAt(r), !0);) ++r;
1584
+ if (s === 92 || s > 55295 && s < 56320) return !0;
1585
+ var o = this.input.slice(i, r);
1586
+ if (!ji.test(o)) return !0;
1587
+ }
1588
+ return !1;
1589
+ };
1590
+ d.isAsyncFunction = function() {
1591
+ if (this.options.ecmaVersion < 8 || !this.isContextual("async")) return !1;
1592
+ k.lastIndex = this.pos;
1593
+ var e = k.exec(this.input), t = this.pos + e[0].length, i;
1594
+ return !L.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(X(i = this.input.charCodeAt(t + 8)) || i > 55295 && i < 56320));
1595
+ };
1596
+ d.isUsingKeyword = function(e, t) {
1597
+ if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using")) return !1;
1598
+ k.lastIndex = this.pos;
1599
+ var i = k.exec(this.input), s = this.pos + i[0].length;
1600
+ if (L.test(this.input.slice(this.pos, s))) return !1;
1601
+ if (e) {
1602
+ var r = s + 5, o;
1603
+ if (this.input.slice(s, r) !== "using" || r === this.input.length || X(o = this.input.charCodeAt(r)) || o > 55295 && o < 56320) return !1;
1604
+ k.lastIndex = r;
1605
+ var u = k.exec(this.input);
1606
+ if (u && L.test(this.input.slice(r, r + u[0].length))) return !1;
1607
+ }
1608
+ if (t) {
1609
+ var p = s + 2, h;
1610
+ if (this.input.slice(s, p) === "of" && (p === this.input.length || !X(h = this.input.charCodeAt(p)) && !(h > 55295 && h < 56320))) return !1;
1611
+ }
1612
+ var l = this.input.charCodeAt(s);
1613
+ return j(l, !0) || l === 92;
1614
+ };
1615
+ d.isAwaitUsing = function(e) {
1616
+ return this.isUsingKeyword(!0, e);
1617
+ };
1618
+ d.isUsing = function(e) {
1619
+ return this.isUsingKeyword(!1, e);
1620
+ };
1621
+ d.parseStatement = function(e, t, i) {
1622
+ var s = this.type, r = this.startNode(), o;
1623
+ switch (this.isLet(e) && (s = a._var, o = "let"), s) {
1624
+ case a._break:
1625
+ case a._continue: return this.parseBreakContinueStatement(r, s.keyword);
1626
+ case a._debugger: return this.parseDebuggerStatement(r);
1627
+ case a._do: return this.parseDoStatement(r);
1628
+ case a._for: return this.parseForStatement(r);
1629
+ case a._function: return e && (this.strict || e !== "if" && e !== "label") && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(r, !1, !e);
1630
+ case a._class: return e && this.unexpected(), this.parseClass(r, !0);
1631
+ case a._if: return this.parseIfStatement(r);
1632
+ case a._return: return this.parseReturnStatement(r);
1633
+ case a._switch: return this.parseSwitchStatement(r);
1634
+ case a._throw: return this.parseThrowStatement(r);
1635
+ case a._try: return this.parseTryStatement(r);
1636
+ case a._const:
1637
+ case a._var: return o = o || this.value, e && o !== "var" && this.unexpected(), this.parseVarStatement(r, o);
1638
+ case a._while: return this.parseWhileStatement(r);
1639
+ case a._with: return this.parseWithStatement(r);
1640
+ case a.braceL: return this.parseBlock(!0, r);
1641
+ case a.semi: return this.parseEmptyStatement(r);
1642
+ case a._export:
1643
+ case a._import:
1644
+ if (this.options.ecmaVersion > 10 && s === a._import) {
1645
+ k.lastIndex = this.pos;
1646
+ var u = k.exec(this.input), p = this.pos + u[0].length, h = this.input.charCodeAt(p);
1647
+ if (h === 40 || h === 46) return this.parseExpressionStatement(r, this.parseExpression());
1648
+ }
1649
+ 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);
1650
+ default:
1651
+ if (this.isAsyncFunction()) return e && this.unexpected(), this.next(), this.parseFunctionStatement(r, !0, !e);
1652
+ var l = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
1653
+ if (l) return t && this.options.sourceType === "script" && this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script`"), l === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(r, !1, l), this.semicolon(), this.finishNode(r, "VariableDeclaration");
1654
+ var m = this.value, S = this.parseExpression();
1655
+ return s === a.name && S.type === "Identifier" && this.eat(a.colon) ? this.parseLabeledStatement(r, m, S, e) : this.parseExpressionStatement(r, S);
1656
+ }
1657
+ };
1658
+ d.parseBreakContinueStatement = function(e, t) {
1659
+ var i = t === "break";
1660
+ this.next(), this.eat(a.semi) || this.insertSemicolon() ? e.label = null : this.type !== a.name ? this.unexpected() : (e.label = this.parseIdent(), this.semicolon());
1661
+ for (var s = 0; s < this.labels.length; ++s) {
1662
+ var r = this.labels[s];
1663
+ if ((e.label == null || r.name === e.label.name) && (r.kind != null && (i || r.kind === "loop") || e.label && i)) break;
1664
+ }
1665
+ return s === this.labels.length && this.raise(e.start, "Unsyntactic " + t), this.finishNode(e, i ? "BreakStatement" : "ContinueStatement");
1666
+ };
1667
+ d.parseDebuggerStatement = function(e) {
1668
+ return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
1669
+ };
1670
+ d.parseDoStatement = function(e) {
1671
+ return this.next(), this.labels.push(ze), 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");
1672
+ };
1673
+ d.parseForStatement = function(e) {
1674
+ this.next();
1675
+ var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
1676
+ if (this.labels.push(ze), this.enterScope(0), this.expect(a.parenL), this.type === a.semi) return t > -1 && this.unexpected(t), this.parseFor(e, null);
1677
+ var i = this.isLet();
1678
+ if (this.type === a._var || this.type === a._const || i) {
1679
+ var s = this.startNode(), r = i ? "let" : this.value;
1680
+ return this.next(), this.parseVar(s, !0, r), this.finishNode(s, "VariableDeclaration"), this.parseForAfterInit(e, s, t);
1681
+ }
1682
+ var o = this.isContextual("let"), u = !1, p = this.isUsing(!0) ? "using" : this.isAwaitUsing(!0) ? "await using" : null;
1683
+ if (p) {
1684
+ var h = this.startNode();
1685
+ return this.next(), p === "await using" && this.next(), this.parseVar(h, !0, p), this.finishNode(h, "VariableDeclaration"), this.parseForAfterInit(e, h, t);
1686
+ }
1687
+ var l = this.containsEsc, m = new Ce(), S = this.start, E = t > -1 ? this.parseExprSubscripts(m, "await") : this.parseExpression(!0, m);
1688
+ return this.type === a._in || (u = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === a._in && this.unexpected(t), e.await = !0) : u && this.options.ecmaVersion >= 8 && (E.start === S && !l && E.type === "Identifier" && E.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), o && u && this.raise(E.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(E, !1, m), this.checkLValPattern(E), this.parseForIn(e, E)) : (this.checkExpressionErrors(m, !0), t > -1 && this.unexpected(t), this.parseFor(e, E));
1689
+ };
1690
+ d.parseForAfterInit = function(e, t, i) {
1691
+ 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));
1692
+ };
1693
+ d.parseFunctionStatement = function(e, t, i) {
1694
+ return this.next(), this.parseFunction(e, ae | (i ? 0 : Ge), !1, t);
1695
+ };
1696
+ d.parseIfStatement = function(e) {
1697
+ 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");
1698
+ };
1699
+ d.parseReturnStatement = function(e) {
1700
+ 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");
1701
+ };
1702
+ d.parseSwitchStatement = function(e) {
1703
+ this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(a.braceL), this.labels.push(Qi), this.enterScope(0);
1704
+ for (var t, i = !1; this.type !== a.braceR;) if (this.type === a._case || this.type === a._default) {
1705
+ var s = this.type === a._case;
1706
+ 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 = !0, t.test = null), this.expect(a.colon);
1707
+ } else t || this.unexpected(), t.consequent.push(this.parseStatement(null));
1708
+ return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
1709
+ };
1710
+ d.parseThrowStatement = function(e) {
1711
+ return this.next(), L.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");
1712
+ };
1713
+ var Yi = [];
1714
+ d.parseCatchClauseParam = function() {
1715
+ var e = this.parseBindingAtom(), t = e.type === "Identifier";
1716
+ return this.enterScope(t ? St : 0), this.checkLValPattern(e, t ? Tt : K), this.expect(a.parenR), e;
1717
+ };
1718
+ d.parseTryStatement = function(e) {
1719
+ if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === a._catch) {
1720
+ var t = this.startNode();
1721
+ 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(!1), this.exitScope(), e.handler = this.finishNode(t, "CatchClause");
1722
+ }
1723
+ 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");
1724
+ };
1725
+ d.parseVarStatement = function(e, t, i) {
1726
+ return this.next(), this.parseVar(e, !1, t, i), this.semicolon(), this.finishNode(e, "VariableDeclaration");
1727
+ };
1728
+ d.parseWhileStatement = function(e) {
1729
+ return this.next(), e.test = this.parseParenExpression(), this.labels.push(ze), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
1730
+ };
1731
+ d.parseWithStatement = function(e) {
1732
+ 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");
1733
+ };
1734
+ d.parseEmptyStatement = function(e) {
1735
+ return this.next(), this.finishNode(e, "EmptyStatement");
1736
+ };
1737
+ d.parseLabeledStatement = function(e, t, i, s) {
1738
+ for (var r = 0, o = this.labels; r < o.length; r += 1) o[r].name === t && this.raise(i.start, "Label '" + t + "' is already declared");
1739
+ for (var p = this.type.isLoop ? "loop" : this.type === a._switch ? "switch" : null, h = this.labels.length - 1; h >= 0; h--) {
1740
+ var l = this.labels[h];
1741
+ if (l.statementStart === e.start) l.statementStart = this.start, l.kind = p;
1742
+ else break;
1743
+ }
1744
+ return this.labels.push({
1745
+ name: t,
1746
+ kind: p,
1747
+ statementStart: this.start
1748
+ }), e.body = this.parseStatement(s ? s.indexOf("label") === -1 ? s + "label" : s : "label"), this.labels.pop(), e.label = i, this.finishNode(e, "LabeledStatement");
1749
+ };
1750
+ d.parseExpressionStatement = function(e, t) {
1751
+ return e.expression = t, this.semicolon(), this.finishNode(e, "ExpressionStatement");
1752
+ };
1753
+ d.parseBlock = function(e, t, i) {
1754
+ for (e === void 0 && (e = !0), t === void 0 && (t = this.startNode()), t.body = [], this.expect(a.braceL), e && this.enterScope(0); this.type !== a.braceR;) {
1755
+ var s = this.parseStatement(null);
1756
+ t.body.push(s);
1757
+ }
1758
+ return i && (this.strict = !1), this.next(), e && this.exitScope(), this.finishNode(t, "BlockStatement");
1759
+ };
1760
+ d.parseFor = function(e, t) {
1761
+ 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");
1762
+ };
1763
+ d.parseForIn = function(e, t) {
1764
+ var i = this.type === a._in;
1765
+ 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");
1766
+ };
1767
+ d.parseVar = function(e, t, i, s) {
1768
+ for (e.declarations = [], e.kind = i;;) {
1769
+ var r = this.startNode();
1770
+ 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;
1771
+ }
1772
+ return e;
1773
+ };
1774
+ d.parseVarId = function(e, t) {
1775
+ e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? We : K, !1);
1776
+ };
1777
+ var ae = 1, Ge = 2, At = 4;
1778
+ d.parseFunction = function(e, t, i, s, r) {
1779
+ this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !s) && (this.type === a.star && t & Ge && this.unexpected(), e.generator = this.eat(a.star)), this.options.ecmaVersion >= 8 && (e.async = !!s), t & ae && (e.id = t & At && this.type !== a.name ? null : this.parseIdent(), e.id && !(t & Ge) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? We : K : Ct));
1780
+ var o = this.yieldPos, u = this.awaitPos, p = this.awaitIdentPos;
1781
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Xe(e.async, e.generator)), t & ae || (e.id = this.type === a.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, i, !1, r), this.yieldPos = o, this.awaitPos = u, this.awaitIdentPos = p, this.finishNode(e, t & ae ? "FunctionDeclaration" : "FunctionExpression");
1782
+ };
1783
+ d.parseFunctionParams = function(e) {
1784
+ this.expect(a.parenL), e.params = this.parseBindingList(a.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
1785
+ };
1786
+ d.parseClass = function(e, t) {
1787
+ this.next();
1788
+ var i = this.strict;
1789
+ this.strict = !0, this.parseClassId(e, t), this.parseClassSuper(e);
1790
+ var s = this.enterClassBody(), r = this.startNode(), o = !1;
1791
+ for (r.body = [], this.expect(a.braceL); this.type !== a.braceR;) {
1792
+ var u = this.parseClassElement(e.superClass !== null);
1793
+ u && (r.body.push(u), u.type === "MethodDefinition" && u.kind === "constructor" ? (o && this.raiseRecoverable(u.start, "Duplicate constructor in the same class"), o = !0) : u.key && u.key.type === "PrivateIdentifier" && $i(s, u) && this.raiseRecoverable(u.key.start, "Identifier '#" + u.key.name + "' has already been declared"));
1794
+ }
1795
+ return this.strict = i, this.next(), e.body = this.finishNode(r, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
1796
+ };
1797
+ d.parseClassElement = function(e) {
1798
+ if (this.eat(a.semi)) return null;
1799
+ var t = this.options.ecmaVersion, i = this.startNode(), s = "", r = !1, o = !1, u = "method", p = !1;
1800
+ if (this.eatContextual("static")) {
1801
+ if (t >= 13 && this.eat(a.braceL)) return this.parseClassStaticBlock(i), i;
1802
+ this.isClassElementNameStart() || this.type === a.star ? p = !0 : s = "static";
1803
+ }
1804
+ if (i.static = p, !s && t >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === a.star) && !this.canInsertSemicolon() ? o = !0 : s = "async"), !s && (t >= 9 || !o) && this.eat(a.star) && (r = !0), !s && !o && !r) {
1805
+ var h = this.value;
1806
+ (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? u = h : s = h);
1807
+ }
1808
+ if (s ? (i.computed = !1, 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 || u !== "method" || r || o) {
1809
+ var l = !i.static && ye(i, "constructor"), m = l && e;
1810
+ l && u !== "method" && this.raise(i.key.start, "Constructor can't have get/set modifier"), i.kind = l ? "constructor" : u, this.parseClassMethod(i, r, o, m);
1811
+ } else this.parseClassField(i);
1812
+ return i;
1813
+ };
1814
+ d.isClassElementNameStart = function() {
1815
+ return this.type === a.name || this.type === a.privateId || this.type === a.num || this.type === a.string || this.type === a.bracketL || this.type.keyword;
1816
+ };
1817
+ d.parseClassElementName = function(e) {
1818
+ this.type === a.privateId ? (this.value === "constructor" && this.raise(this.start, "Classes can't have an element named '#constructor'"), e.computed = !1, e.key = this.parsePrivateIdent()) : this.parsePropertyName(e);
1819
+ };
1820
+ d.parseClassMethod = function(e, t, i, s) {
1821
+ var r = e.key;
1822
+ 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 && ye(e, "prototype") && this.raise(r.start, "Classes may not have a static property named prototype");
1823
+ var o = e.value = this.parseMethod(t, i, s);
1824
+ return e.kind === "get" && o.params.length !== 0 && this.raiseRecoverable(o.start, "getter should have no params"), e.kind === "set" && o.params.length !== 1 && this.raiseRecoverable(o.start, "setter should have exactly one param"), e.kind === "set" && o.params[0].type === "RestElement" && this.raiseRecoverable(o.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
1825
+ };
1826
+ d.parseClassField = function(e) {
1827
+ return ye(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && ye(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(a.eq) ? (this.enterScope(ue | Se), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
1828
+ };
1829
+ d.parseClassStaticBlock = function(e) {
1830
+ e.body = [];
1831
+ var t = this.labels;
1832
+ for (this.labels = [], this.enterScope(z | Se); this.type !== a.braceR;) {
1833
+ var i = this.parseStatement(null);
1834
+ e.body.push(i);
1835
+ }
1836
+ return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
1837
+ };
1838
+ d.parseClassId = function(e, t) {
1839
+ this.type === a.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, K, !1)) : (t === !0 && this.unexpected(), e.id = null);
1840
+ };
1841
+ d.parseClassSuper = function(e) {
1842
+ e.superClass = this.eat(a._extends) ? this.parseExprSubscripts(null, !1) : null;
1843
+ };
1844
+ d.enterClassBody = function() {
1845
+ var e = {
1846
+ declared: Object.create(null),
1847
+ used: []
1848
+ };
1849
+ return this.privateNameStack.push(e), e.declared;
1850
+ };
1851
+ d.exitClassBody = function() {
1852
+ var e = this.privateNameStack.pop(), t = e.declared, i = e.used;
1853
+ if (this.options.checkPrivateFields) for (var s = this.privateNameStack.length, r = s === 0 ? null : this.privateNameStack[s - 1], o = 0; o < i.length; ++o) {
1854
+ var u = i[o];
1855
+ $(t, u.name) || (r ? r.used.push(u) : this.raiseRecoverable(u.start, "Private field '#" + u.name + "' must be declared in an enclosing class"));
1856
+ }
1857
+ };
1858
+ function $i(e, t) {
1859
+ var i = t.key.name, s = e[i], r = "true";
1860
+ 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", !1) : s ? !0 : (e[i] = r, !1);
1861
+ }
1862
+ function ye(e, t) {
1863
+ var i = e.computed, s = e.key;
1864
+ return !i && (s.type === "Identifier" && s.name === t || s.type === "Literal" && s.value === t);
1865
+ }
1866
+ d.parseExportAllDeclaration = function(e, t) {
1867
+ 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");
1868
+ };
1869
+ d.parseExport = function(e, t) {
1870
+ if (this.next(), this.eat(a.star)) return this.parseExportAllDeclaration(e, t);
1871
+ if (this.eat(a._default)) return this.checkExport(t, "default", this.lastTokStart), e.declaration = this.parseExportDefaultDeclaration(), this.finishNode(e, "ExportDefaultDeclaration");
1872
+ 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 = []);
1873
+ else {
1874
+ 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());
1875
+ else {
1876
+ for (var i = 0, s = e.specifiers; i < s.length; i += 1) {
1877
+ var r = s[i];
1878
+ 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`.");
1879
+ }
1880
+ e.source = null, this.options.ecmaVersion >= 16 && (e.attributes = []);
1881
+ }
1882
+ this.semicolon();
1883
+ }
1884
+ return this.finishNode(e, "ExportNamedDeclaration");
1885
+ };
1886
+ d.parseExportDeclaration = function(e) {
1887
+ return this.parseStatement(null);
1888
+ };
1889
+ d.parseExportDefaultDeclaration = function() {
1890
+ var e;
1891
+ if (this.type === a._function || (e = this.isAsyncFunction())) {
1892
+ var t = this.startNode();
1893
+ return this.next(), e && this.next(), this.parseFunction(t, ae | At, !1, e);
1894
+ } else if (this.type === a._class) {
1895
+ var i = this.startNode();
1896
+ return this.parseClass(i, "nullableID");
1897
+ } else {
1898
+ var s = this.parseMaybeAssign();
1899
+ return this.semicolon(), s;
1900
+ }
1901
+ };
1902
+ d.checkExport = function(e, t, i) {
1903
+ e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), $(e, t) && this.raiseRecoverable(i, "Duplicate export '" + t + "'"), e[t] = !0);
1904
+ };
1905
+ d.checkPatternExport = function(e, t) {
1906
+ var i = t.type;
1907
+ if (i === "Identifier") this.checkExport(e, t, t.start);
1908
+ else if (i === "ObjectPattern") for (var s = 0, r = t.properties; s < r.length; s += 1) {
1909
+ var o = r[s];
1910
+ this.checkPatternExport(e, o);
1911
+ }
1912
+ else if (i === "ArrayPattern") for (var u = 0, p = t.elements; u < p.length; u += 1) {
1913
+ var h = p[u];
1914
+ h && this.checkPatternExport(e, h);
1915
+ }
1916
+ else i === "Property" ? this.checkPatternExport(e, t.value) : i === "AssignmentPattern" ? this.checkPatternExport(e, t.left) : i === "RestElement" && this.checkPatternExport(e, t.argument);
1917
+ };
1918
+ d.checkVariableExport = function(e, t) {
1919
+ if (e) for (var i = 0, s = t; i < s.length; i += 1) {
1920
+ var r = s[i];
1921
+ this.checkPatternExport(e, r.id);
1922
+ }
1923
+ };
1924
+ d.shouldParseExportStatement = function() {
1925
+ return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
1926
+ };
1927
+ d.parseExportSpecifier = function(e) {
1928
+ var t = this.startNode();
1929
+ 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");
1930
+ };
1931
+ d.parseExportSpecifiers = function(e) {
1932
+ var t = [], i = !0;
1933
+ for (this.expect(a.braceL); !this.eat(a.braceR);) {
1934
+ if (i) i = !1;
1935
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
1936
+ t.push(this.parseExportSpecifier(e));
1937
+ }
1938
+ return t;
1939
+ };
1940
+ d.parseImport = function(e) {
1941
+ return this.next(), this.type === a.string ? (e.specifiers = Yi, 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");
1942
+ };
1943
+ d.parseImportSpecifier = function() {
1944
+ var e = this.startNode();
1945
+ return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, K), this.finishNode(e, "ImportSpecifier");
1946
+ };
1947
+ d.parseImportDefaultSpecifier = function() {
1948
+ var e = this.startNode();
1949
+ return e.local = this.parseIdent(), this.checkLValSimple(e.local, K), this.finishNode(e, "ImportDefaultSpecifier");
1950
+ };
1951
+ d.parseImportNamespaceSpecifier = function() {
1952
+ var e = this.startNode();
1953
+ return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, K), this.finishNode(e, "ImportNamespaceSpecifier");
1954
+ };
1955
+ d.parseImportSpecifiers = function() {
1956
+ var e = [], t = !0;
1957
+ if (this.type === a.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(a.comma))) return e;
1958
+ if (this.type === a.star) return e.push(this.parseImportNamespaceSpecifier()), e;
1959
+ for (this.expect(a.braceL); !this.eat(a.braceR);) {
1960
+ if (t) t = !1;
1961
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
1962
+ e.push(this.parseImportSpecifier());
1963
+ }
1964
+ return e;
1965
+ };
1966
+ d.parseWithClause = function() {
1967
+ var e = [];
1968
+ if (!this.eat(a._with)) return e;
1969
+ this.expect(a.braceL);
1970
+ for (var t = {}, i = !0; !this.eat(a.braceR);) {
1971
+ if (i) i = !1;
1972
+ else if (this.expect(a.comma), this.afterTrailingComma(a.braceR)) break;
1973
+ var s = this.parseImportAttribute(), r = s.key.type === "Identifier" ? s.key.name : s.key.value;
1974
+ $(t, r) && this.raiseRecoverable(s.key.start, "Duplicate attribute key '" + r + "'"), t[r] = !0, e.push(s);
1975
+ }
1976
+ return e;
1977
+ };
1978
+ d.parseImportAttribute = function() {
1979
+ var e = this.startNode();
1980
+ 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");
1981
+ };
1982
+ d.parseModuleExportName = function() {
1983
+ if (this.options.ecmaVersion >= 13 && this.type === a.string) {
1984
+ var e = this.parseLiteral(this.value);
1985
+ return Hi.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
1986
+ }
1987
+ return this.parseIdent(!0);
1988
+ };
1989
+ d.adaptDirectivePrologue = function(e) {
1990
+ for (var t = 0; t < e.length && this.isDirectiveCandidate(e[t]); ++t) e[t].directive = e[t].expression.raw.slice(1, -1);
1991
+ };
1992
+ d.isDirectiveCandidate = function(e) {
1993
+ 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] === "'");
1994
+ };
1995
+ var D = A.prototype;
1996
+ D.toAssignable = function(e, t, i) {
1997
+ if (this.options.ecmaVersion >= 6 && e) switch (e.type) {
1998
+ case "Identifier":
1999
+ this.inAsync && e.name === "await" && this.raise(e.start, "Cannot use 'await' as identifier inside an async function");
2000
+ break;
2001
+ case "ObjectPattern":
2002
+ case "ArrayPattern":
2003
+ case "AssignmentPattern":
2004
+ case "RestElement": break;
2005
+ case "ObjectExpression":
2006
+ e.type = "ObjectPattern", i && this.checkPatternErrors(i, !0);
2007
+ for (var s = 0, r = e.properties; s < r.length; s += 1) {
2008
+ var o = r[s];
2009
+ this.toAssignable(o, t), o.type === "RestElement" && (o.argument.type === "ArrayPattern" || o.argument.type === "ObjectPattern") && this.raise(o.argument.start, "Unexpected token");
2010
+ }
2011
+ break;
2012
+ case "Property":
2013
+ e.kind !== "init" && this.raise(e.key.start, "Object pattern can't contain getter or setter"), this.toAssignable(e.value, t);
2014
+ break;
2015
+ case "ArrayExpression":
2016
+ e.type = "ArrayPattern", i && this.checkPatternErrors(i, !0), this.toAssignableList(e.elements, t);
2017
+ break;
2018
+ case "SpreadElement":
2019
+ e.type = "RestElement", this.toAssignable(e.argument, t), e.argument.type === "AssignmentPattern" && this.raise(e.argument.start, "Rest elements cannot have a default value");
2020
+ break;
2021
+ case "AssignmentExpression":
2022
+ 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);
2023
+ break;
2024
+ case "ParenthesizedExpression":
2025
+ this.toAssignable(e.expression, t, i);
2026
+ break;
2027
+ case "ChainExpression":
2028
+ this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
2029
+ break;
2030
+ case "MemberExpression": if (!t) break;
2031
+ default: this.raise(e.start, "Assigning to rvalue");
2032
+ }
2033
+ else i && this.checkPatternErrors(i, !0);
2034
+ return e;
2035
+ };
2036
+ D.toAssignableList = function(e, t) {
2037
+ for (var i = e.length, s = 0; s < i; s++) {
2038
+ var r = e[s];
2039
+ r && this.toAssignable(r, t);
2040
+ }
2041
+ if (i) {
2042
+ var o = e[i - 1];
2043
+ this.options.ecmaVersion === 6 && t && o && o.type === "RestElement" && o.argument.type !== "Identifier" && this.unexpected(o.argument.start);
2044
+ }
2045
+ return e;
2046
+ };
2047
+ D.parseSpread = function(e) {
2048
+ var t = this.startNode();
2049
+ return this.next(), t.argument = this.parseMaybeAssign(!1, e), this.finishNode(t, "SpreadElement");
2050
+ };
2051
+ D.parseRestBinding = function() {
2052
+ var e = this.startNode();
2053
+ return this.next(), this.options.ecmaVersion === 6 && this.type !== a.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
2054
+ };
2055
+ D.parseBindingAtom = function() {
2056
+ if (this.options.ecmaVersion >= 6) switch (this.type) {
2057
+ case a.bracketL:
2058
+ var e = this.startNode();
2059
+ return this.next(), e.elements = this.parseBindingList(a.bracketR, !0, !0), this.finishNode(e, "ArrayPattern");
2060
+ case a.braceL: return this.parseObj(!0);
2061
+ }
2062
+ return this.parseIdent();
2063
+ };
2064
+ D.parseBindingList = function(e, t, i, s) {
2065
+ for (var r = [], o = !0; !this.eat(e);) if (o ? o = !1 : this.expect(a.comma), t && this.type === a.comma) r.push(null);
2066
+ else {
2067
+ if (i && this.afterTrailingComma(e)) break;
2068
+ if (this.type === a.ellipsis) {
2069
+ var u = this.parseRestBinding();
2070
+ this.parseBindingListItem(u), r.push(u), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(e);
2071
+ break;
2072
+ } else r.push(this.parseAssignableListItem(s));
2073
+ }
2074
+ return r;
2075
+ };
2076
+ D.parseAssignableListItem = function(e) {
2077
+ var t = this.parseMaybeDefault(this.start, this.startLoc);
2078
+ return this.parseBindingListItem(t), t;
2079
+ };
2080
+ D.parseBindingListItem = function(e) {
2081
+ return e;
2082
+ };
2083
+ D.parseMaybeDefault = function(e, t, i) {
2084
+ if (i = i || this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(a.eq)) return i;
2085
+ var s = this.startNodeAt(e, t);
2086
+ return s.left = i, s.right = this.parseMaybeAssign(), this.finishNode(s, "AssignmentPattern");
2087
+ };
2088
+ D.checkLValSimple = function(e, t, i) {
2089
+ t === void 0 && (t = xe);
2090
+ var s = t !== xe;
2091
+ switch (e.type) {
2092
+ case "Identifier":
2093
+ this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (s ? "Binding " : "Assigning to ") + e.name + " in strict mode"), s && (t === K && 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] = !0), t !== Et && this.declareName(e.name, t, e.start));
2094
+ break;
2095
+ case "ChainExpression":
2096
+ this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
2097
+ break;
2098
+ case "MemberExpression":
2099
+ s && this.raiseRecoverable(e.start, "Binding member expression");
2100
+ break;
2101
+ case "ParenthesizedExpression": return s && this.raiseRecoverable(e.start, "Binding parenthesized expression"), this.checkLValSimple(e.expression, t, i);
2102
+ default: this.raise(e.start, (s ? "Binding" : "Assigning to") + " rvalue");
2103
+ }
2104
+ };
2105
+ D.checkLValPattern = function(e, t, i) {
2106
+ switch (t === void 0 && (t = xe), e.type) {
2107
+ case "ObjectPattern":
2108
+ for (var s = 0, r = e.properties; s < r.length; s += 1) {
2109
+ var o = r[s];
2110
+ this.checkLValInnerPattern(o, t, i);
2111
+ }
2112
+ break;
2113
+ case "ArrayPattern":
2114
+ for (var u = 0, p = e.elements; u < p.length; u += 1) {
2115
+ var h = p[u];
2116
+ h && this.checkLValInnerPattern(h, t, i);
2117
+ }
2118
+ break;
2119
+ default: this.checkLValSimple(e, t, i);
2120
+ }
2121
+ };
2122
+ D.checkLValInnerPattern = function(e, t, i) {
2123
+ switch (t === void 0 && (t = xe), e.type) {
2124
+ case "Property":
2125
+ this.checkLValInnerPattern(e.value, t, i);
2126
+ break;
2127
+ case "AssignmentPattern":
2128
+ this.checkLValPattern(e.left, t, i);
2129
+ break;
2130
+ case "RestElement":
2131
+ this.checkLValPattern(e.argument, t, i);
2132
+ break;
2133
+ default: this.checkLValPattern(e, t, i);
2134
+ }
2135
+ };
2136
+ var F = function(t, i, s, r, o) {
2137
+ this.token = t, this.isExpr = !!i, this.preserveSpace = !!s, this.override = r, this.generator = !!o;
2138
+ }, T = {
2139
+ b_stat: new F("{", !1),
2140
+ b_expr: new F("{", !0),
2141
+ b_tmpl: new F("${", !1),
2142
+ p_stat: new F("(", !1),
2143
+ p_expr: new F("(", !0),
2144
+ q_tmpl: new F("`", !0, !0, function(e) {
2145
+ return e.tryReadTemplateToken();
2146
+ }),
2147
+ f_stat: new F("function", !1),
2148
+ f_expr: new F("function", !0),
2149
+ f_expr_gen: new F("function", !0, !1, null, !0),
2150
+ f_gen: new F("function", !1, !1, null, !0)
2151
+ }, ee = A.prototype;
2152
+ ee.initialContext = function() {
2153
+ return [T.b_stat];
2154
+ };
2155
+ ee.curContext = function() {
2156
+ return this.context[this.context.length - 1];
2157
+ };
2158
+ ee.braceIsBlock = function(e) {
2159
+ var t = this.curContext();
2160
+ return t === T.f_expr || t === T.f_stat ? !0 : e === a.colon && (t === T.b_stat || t === T.b_expr) ? !t.isExpr : e === a._return || e === a.name && this.exprAllowed ? L.test(this.input.slice(this.lastTokEnd, this.start)) : e === a._else || e === a.semi || e === a.eof || e === a.parenR || e === a.arrow ? !0 : e === a.braceL ? t === T.b_stat : e === a._var || e === a._const || e === a.name ? !1 : !this.exprAllowed;
2161
+ };
2162
+ ee.inGeneratorContext = function() {
2163
+ for (var e = this.context.length - 1; e >= 1; e--) {
2164
+ var t = this.context[e];
2165
+ if (t.token === "function") return t.generator;
2166
+ }
2167
+ return !1;
2168
+ };
2169
+ ee.updateContext = function(e) {
2170
+ var t, i = this.type;
2171
+ i.keyword && e === a.dot ? this.exprAllowed = !1 : (t = i.updateContext) ? t.call(this, e) : this.exprAllowed = i.beforeExpr;
2172
+ };
2173
+ ee.overrideContext = function(e) {
2174
+ this.curContext() !== e && (this.context[this.context.length - 1] = e);
2175
+ };
2176
+ a.parenR.updateContext = a.braceR.updateContext = function() {
2177
+ if (this.context.length === 1) {
2178
+ this.exprAllowed = !0;
2179
+ return;
2180
+ }
2181
+ var e = this.context.pop();
2182
+ e === T.b_stat && this.curContext().token === "function" && (e = this.context.pop()), this.exprAllowed = !e.isExpr;
2183
+ };
2184
+ a.braceL.updateContext = function(e) {
2185
+ this.context.push(this.braceIsBlock(e) ? T.b_stat : T.b_expr), this.exprAllowed = !0;
2186
+ };
2187
+ a.dollarBraceL.updateContext = function() {
2188
+ this.context.push(T.b_tmpl), this.exprAllowed = !0;
2189
+ };
2190
+ a.parenL.updateContext = function(e) {
2191
+ var t = e === a._if || e === a._for || e === a._with || e === a._while;
2192
+ this.context.push(t ? T.p_stat : T.p_expr), this.exprAllowed = !0;
2193
+ };
2194
+ a.incDec.updateContext = function() {};
2195
+ a._function.updateContext = a._class.updateContext = function(e) {
2196
+ e.beforeExpr && e !== a._else && !(e === a.semi && this.curContext() !== T.p_stat) && !(e === a._return && L.test(this.input.slice(this.lastTokEnd, this.start))) && !((e === a.colon || e === a.braceL) && this.curContext() === T.b_stat) ? this.context.push(T.f_expr) : this.context.push(T.f_stat), this.exprAllowed = !1;
2197
+ };
2198
+ a.colon.updateContext = function() {
2199
+ this.curContext().token === "function" && this.context.pop(), this.exprAllowed = !0;
2200
+ };
2201
+ a.backQuote.updateContext = function() {
2202
+ this.curContext() === T.q_tmpl ? this.context.pop() : this.context.push(T.q_tmpl), this.exprAllowed = !1;
2203
+ };
2204
+ a.star.updateContext = function(e) {
2205
+ if (e === a._function) {
2206
+ var t = this.context.length - 1;
2207
+ this.context[t] === T.f_expr ? this.context[t] = T.f_expr_gen : this.context[t] = T.f_gen;
2208
+ }
2209
+ this.exprAllowed = !0;
2210
+ };
2211
+ a.name.updateContext = function(e) {
2212
+ var t = !1;
2213
+ this.options.ecmaVersion >= 6 && e !== a.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = !0), this.exprAllowed = t;
2214
+ };
2215
+ var g = A.prototype;
2216
+ g.checkPropClash = function(e, t, i) {
2217
+ if (!(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand))) {
2218
+ var s = e.key, r;
2219
+ switch (s.type) {
2220
+ case "Identifier":
2221
+ r = s.name;
2222
+ break;
2223
+ case "Literal":
2224
+ r = String(s.value);
2225
+ break;
2226
+ default: return;
2227
+ }
2228
+ var o = e.kind;
2229
+ if (this.options.ecmaVersion >= 6) {
2230
+ r === "__proto__" && o === "init" && (t.proto && (i ? i.doubleProto < 0 && (i.doubleProto = s.start) : this.raiseRecoverable(s.start, "Redefinition of __proto__ property")), t.proto = !0);
2231
+ return;
2232
+ }
2233
+ r = "$" + r;
2234
+ var u = t[r];
2235
+ if (u) {
2236
+ var p;
2237
+ o === "init" ? p = this.strict && u.init || u.get || u.set : p = u.init || u[o], p && this.raiseRecoverable(s.start, "Redefinition of property");
2238
+ } else u = t[r] = {
2239
+ init: !1,
2240
+ get: !1,
2241
+ set: !1
2242
+ };
2243
+ u[o] = !0;
2244
+ }
2245
+ };
2246
+ g.parseExpression = function(e, t) {
2247
+ var i = this.start, s = this.startLoc, r = this.parseMaybeAssign(e, t);
2248
+ if (this.type === a.comma) {
2249
+ var o = this.startNodeAt(i, s);
2250
+ for (o.expressions = [r]; this.eat(a.comma);) o.expressions.push(this.parseMaybeAssign(e, t));
2251
+ return this.finishNode(o, "SequenceExpression");
2252
+ }
2253
+ return r;
2254
+ };
2255
+ g.parseMaybeAssign = function(e, t, i) {
2256
+ if (this.isContextual("yield")) {
2257
+ if (this.inGenerator) return this.parseYield(e);
2258
+ this.exprAllowed = !1;
2259
+ }
2260
+ var s = !1, r = -1, o = -1, u = -1;
2261
+ t ? (r = t.parenthesizedAssign, o = t.trailingComma, u = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new Ce(), s = !0);
2262
+ var p = this.start, h = this.startLoc;
2263
+ (this.type === a.parenL || this.type === a.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
2264
+ var l = this.parseMaybeConditional(e, t);
2265
+ if (i && (l = i.call(this, l, p, h)), this.type.isAssign) {
2266
+ var m = this.startNodeAt(p, h);
2267
+ return m.operator = this.value, this.type === a.eq && (l = this.toAssignable(l, !1, t)), s || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= l.start && (t.shorthandAssign = -1), this.type === a.eq ? this.checkLValPattern(l) : this.checkLValSimple(l), m.left = l, this.next(), m.right = this.parseMaybeAssign(e), u > -1 && (t.doubleProto = u), this.finishNode(m, "AssignmentExpression");
2268
+ } else s && this.checkExpressionErrors(t, !0);
2269
+ return r > -1 && (t.parenthesizedAssign = r), o > -1 && (t.trailingComma = o), l;
2270
+ };
2271
+ g.parseMaybeConditional = function(e, t) {
2272
+ var i = this.start, s = this.startLoc, r = this.parseExprOps(e, t);
2273
+ if (this.checkExpressionErrors(t)) return r;
2274
+ if (this.eat(a.question)) {
2275
+ var o = this.startNodeAt(i, s);
2276
+ return o.test = r, o.consequent = this.parseMaybeAssign(), this.expect(a.colon), o.alternate = this.parseMaybeAssign(e), this.finishNode(o, "ConditionalExpression");
2277
+ }
2278
+ return r;
2279
+ };
2280
+ g.parseExprOps = function(e, t) {
2281
+ var i = this.start, s = this.startLoc, r = this.parseMaybeUnary(t, !1, !1, e);
2282
+ return this.checkExpressionErrors(t) || r.start === i && r.type === "ArrowFunctionExpression" ? r : this.parseExprOp(r, i, s, -1, e);
2283
+ };
2284
+ g.parseExprOp = function(e, t, i, s, r) {
2285
+ var o = this.type.binop;
2286
+ if (o != null && (!r || this.type !== a._in) && o > s) {
2287
+ var u = this.type === a.logicalOR || this.type === a.logicalAND, p = this.type === a.coalesce;
2288
+ p && (o = a.logicalAND.binop);
2289
+ var h = this.value;
2290
+ this.next();
2291
+ var l = this.start, m = this.startLoc, S = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, r), l, m, o, r), E = this.buildBinary(t, i, e, S, h, u || p);
2292
+ return (u && 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(E, t, i, s, r);
2293
+ }
2294
+ return e;
2295
+ };
2296
+ g.buildBinary = function(e, t, i, s, r, o) {
2297
+ s.type === "PrivateIdentifier" && this.raise(s.start, "Private identifier can only be left side of binary expression");
2298
+ var u = this.startNodeAt(e, t);
2299
+ return u.left = i, u.operator = r, u.right = s, this.finishNode(u, o ? "LogicalExpression" : "BinaryExpression");
2300
+ };
2301
+ g.parseMaybeUnary = function(e, t, i, s) {
2302
+ var r = this.start, o = this.startLoc, u;
2303
+ if (this.isContextual("await") && this.canAwait) u = this.parseAwait(s), t = !0;
2304
+ else if (this.type.prefix) {
2305
+ var p = this.startNode(), h = this.type === a.incDec;
2306
+ p.operator = this.value, p.prefix = !0, this.next(), p.argument = this.parseMaybeUnary(null, !0, h, s), this.checkExpressionErrors(e, !0), h ? 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" && qe(p.argument) ? this.raiseRecoverable(p.start, "Private fields can not be deleted") : t = !0, u = this.finishNode(p, h ? "UpdateExpression" : "UnaryExpression");
2307
+ } else if (!t && this.type === a.privateId) (s || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), u = this.parsePrivateIdent(), this.type !== a._in && this.unexpected();
2308
+ else {
2309
+ if (u = this.parseExprSubscripts(e, s), this.checkExpressionErrors(e)) return u;
2310
+ for (; this.type.postfix && !this.canInsertSemicolon();) {
2311
+ var l = this.startNodeAt(r, o);
2312
+ l.operator = this.value, l.prefix = !1, l.argument = u, this.checkLValSimple(u), this.next(), u = this.finishNode(l, "UpdateExpression");
2313
+ }
2314
+ }
2315
+ if (!i && this.eat(a.starstar)) if (t) this.unexpected(this.lastTokStart);
2316
+ else return this.buildBinary(r, o, u, this.parseMaybeUnary(null, !1, !1, s), "**", !1);
2317
+ else return u;
2318
+ };
2319
+ function kt(e) {
2320
+ return e.type === "Identifier" || e.type === "ParenthesizedExpression" && kt(e.expression);
2321
+ }
2322
+ function qe(e) {
2323
+ return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && qe(e.expression) || e.type === "ParenthesizedExpression" && qe(e.expression);
2324
+ }
2325
+ g.parseExprSubscripts = function(e, t) {
2326
+ var i = this.start, s = this.startLoc, r = this.parseExprAtom(e, t);
2327
+ if (r.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")") return r;
2328
+ var o = this.parseSubscripts(r, i, s, !1, t);
2329
+ return e && o.type === "MemberExpression" && (e.parenthesizedAssign >= o.start && (e.parenthesizedAssign = -1), e.parenthesizedBind >= o.start && (e.parenthesizedBind = -1), e.trailingComma >= o.start && (e.trailingComma = -1)), o;
2330
+ };
2331
+ g.parseSubscripts = function(e, t, i, s, r) {
2332
+ for (var o = 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, u = !1;;) {
2333
+ var p = this.parseSubscript(e, t, i, s, o, u, r);
2334
+ if (p.optional && (u = !0), p === e || p.type === "ArrowFunctionExpression") {
2335
+ if (u) {
2336
+ var h = this.startNodeAt(t, i);
2337
+ h.expression = p, p = this.finishNode(h, "ChainExpression");
2338
+ }
2339
+ return p;
2340
+ }
2341
+ e = p;
2342
+ }
2343
+ };
2344
+ g.shouldParseAsyncArrow = function() {
2345
+ return !this.canInsertSemicolon() && this.eat(a.arrow);
2346
+ };
2347
+ g.parseSubscriptAsyncArrow = function(e, t, i, s) {
2348
+ return this.parseArrowExpression(this.startNodeAt(e, t), i, !0, s);
2349
+ };
2350
+ g.parseSubscript = function(e, t, i, s, r, o, u) {
2351
+ var p = this.options.ecmaVersion >= 11, h = p && this.eat(a.questionDot);
2352
+ s && h && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
2353
+ var l = this.eat(a.bracketL);
2354
+ if (l || h && this.type !== a.parenL && this.type !== a.backQuote || this.eat(a.dot)) {
2355
+ var m = this.startNodeAt(t, i);
2356
+ m.object = e, l ? (m.property = this.parseExpression(), this.expect(a.bracketR)) : this.type === a.privateId && e.type !== "Super" ? m.property = this.parsePrivateIdent() : m.property = this.parseIdent(this.options.allowReserved !== "never"), m.computed = !!l, p && (m.optional = h), e = this.finishNode(m, "MemberExpression");
2357
+ } else if (!s && this.eat(a.parenL)) {
2358
+ var S = new Ce(), E = this.yieldPos, c = this.awaitPos, x = this.awaitIdentPos;
2359
+ this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
2360
+ var y = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1, S);
2361
+ if (r && !h && this.shouldParseAsyncArrow()) return this.checkPatternErrors(S, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = E, this.awaitPos = c, this.awaitIdentPos = x, this.parseSubscriptAsyncArrow(t, i, y, u);
2362
+ this.checkExpressionErrors(S, !0), this.yieldPos = E || this.yieldPos, this.awaitPos = c || this.awaitPos, this.awaitIdentPos = x || this.awaitIdentPos;
2363
+ var v = this.startNodeAt(t, i);
2364
+ v.callee = e, v.arguments = y, p && (v.optional = h), e = this.finishNode(v, "CallExpression");
2365
+ } else if (this.type === a.backQuote) {
2366
+ (h || o) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
2367
+ var I = this.startNodeAt(t, i);
2368
+ I.tag = e, I.quasi = this.parseTemplate({ isTagged: !0 }), e = this.finishNode(I, "TaggedTemplateExpression");
2369
+ }
2370
+ return e;
2371
+ };
2372
+ g.parseExprAtom = function(e, t, i) {
2373
+ this.type === a.slash && this.readRegexp();
2374
+ var s, r = this.potentialArrowAt === this.start;
2375
+ switch (this.type) {
2376
+ case a._super: 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");
2377
+ case a._this: return s = this.startNode(), this.next(), this.finishNode(s, "ThisExpression");
2378
+ case a.name:
2379
+ var o = this.start, u = this.startLoc, p = this.containsEsc, h = this.parseIdent(!1);
2380
+ if (this.options.ecmaVersion >= 8 && !p && h.name === "async" && !this.canInsertSemicolon() && this.eat(a._function)) return this.overrideContext(T.f_expr), this.parseFunction(this.startNodeAt(o, u), 0, !1, !0, t);
2381
+ if (r && !this.canInsertSemicolon()) {
2382
+ if (this.eat(a.arrow)) return this.parseArrowExpression(this.startNodeAt(o, u), [h], !1, t);
2383
+ if (this.options.ecmaVersion >= 8 && h.name === "async" && this.type === a.name && !p && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) return h = this.parseIdent(!1), (this.canInsertSemicolon() || !this.eat(a.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(o, u), [h], !0, t);
2384
+ }
2385
+ return h;
2386
+ case a.regexp:
2387
+ var l = this.value;
2388
+ return s = this.parseLiteral(l.value), s.regex = {
2389
+ pattern: l.pattern,
2390
+ flags: l.flags
2391
+ }, s;
2392
+ case a.num:
2393
+ case a.string: return this.parseLiteral(this.value);
2394
+ case a._null:
2395
+ case a._true:
2396
+ case a._false: 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");
2397
+ case a.parenL:
2398
+ var m = this.start, S = this.parseParenAndDistinguishExpression(r, t);
2399
+ return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(S) && (e.parenthesizedAssign = m), e.parenthesizedBind < 0 && (e.parenthesizedBind = m)), S;
2400
+ case a.bracketL: return s = this.startNode(), this.next(), s.elements = this.parseExprList(a.bracketR, !0, !0, e), this.finishNode(s, "ArrayExpression");
2401
+ case a.braceL: return this.overrideContext(T.b_expr), this.parseObj(!1, e);
2402
+ case a._function: return s = this.startNode(), this.next(), this.parseFunction(s, 0);
2403
+ case a._class: return this.parseClass(this.startNode(), !1);
2404
+ case a._new: return this.parseNew();
2405
+ case a.backQuote: return this.parseTemplate();
2406
+ case a._import: return this.options.ecmaVersion >= 11 ? this.parseExprImport(i) : this.unexpected();
2407
+ default: return this.parseExprAtomDefault();
2408
+ }
2409
+ };
2410
+ g.parseExprAtomDefault = function() {
2411
+ this.unexpected();
2412
+ };
2413
+ g.parseExprImport = function(e) {
2414
+ var t = this.startNode();
2415
+ if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === a.parenL && !e) return this.parseDynamicImport(t);
2416
+ if (this.type === a.dot) {
2417
+ var i = this.startNodeAt(t.start, t.loc && t.loc.start);
2418
+ return i.name = "import", t.meta = this.finishNode(i, "Identifier"), this.parseImportMeta(t);
2419
+ } else this.unexpected();
2420
+ };
2421
+ g.parseDynamicImport = function(e) {
2422
+ 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())));
2423
+ else if (!this.eat(a.parenR)) {
2424
+ var t = this.start;
2425
+ this.eat(a.comma) && this.eat(a.parenR) ? this.raiseRecoverable(t, "Trailing comma is not allowed in import()") : this.unexpected(t);
2426
+ }
2427
+ return this.finishNode(e, "ImportExpression");
2428
+ };
2429
+ g.parseImportMeta = function(e) {
2430
+ this.next();
2431
+ var t = this.containsEsc;
2432
+ return e.property = this.parseIdent(!0), 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");
2433
+ };
2434
+ g.parseLiteral = function(e) {
2435
+ var t = this.startNode();
2436
+ 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");
2437
+ };
2438
+ g.parseParenExpression = function() {
2439
+ this.expect(a.parenL);
2440
+ var e = this.parseExpression();
2441
+ return this.expect(a.parenR), e;
2442
+ };
2443
+ g.shouldParseArrow = function(e) {
2444
+ return !this.canInsertSemicolon();
2445
+ };
2446
+ g.parseParenAndDistinguishExpression = function(e, t) {
2447
+ var i = this.start, s = this.startLoc, r, o = this.options.ecmaVersion >= 8;
2448
+ if (this.options.ecmaVersion >= 6) {
2449
+ this.next();
2450
+ var u = this.start, p = this.startLoc, h = [], l = !0, m = !1, S = new Ce(), E = this.yieldPos, c = this.awaitPos, x;
2451
+ for (this.yieldPos = 0, this.awaitPos = 0; this.type !== a.parenR;) if (l ? l = !1 : this.expect(a.comma), o && this.afterTrailingComma(a.parenR, !0)) {
2452
+ m = !0;
2453
+ break;
2454
+ } else if (this.type === a.ellipsis) {
2455
+ x = this.start, h.push(this.parseParenItem(this.parseRestBinding())), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
2456
+ break;
2457
+ } else h.push(this.parseMaybeAssign(!1, S, this.parseParenItem));
2458
+ var y = this.lastTokEnd, v = this.lastTokEndLoc;
2459
+ if (this.expect(a.parenR), e && this.shouldParseArrow(h) && this.eat(a.arrow)) return this.checkPatternErrors(S, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = E, this.awaitPos = c, this.parseParenArrowList(i, s, h, t);
2460
+ (!h.length || m) && this.unexpected(this.lastTokStart), x && this.unexpected(x), this.checkExpressionErrors(S, !0), this.yieldPos = E || this.yieldPos, this.awaitPos = c || this.awaitPos, h.length > 1 ? (r = this.startNodeAt(u, p), r.expressions = h, this.finishNodeAt(r, "SequenceExpression", y, v)) : r = h[0];
2461
+ } else r = this.parseParenExpression();
2462
+ if (this.options.preserveParens) {
2463
+ var I = this.startNodeAt(i, s);
2464
+ return I.expression = r, this.finishNode(I, "ParenthesizedExpression");
2465
+ } else return r;
2466
+ };
2467
+ g.parseParenItem = function(e) {
2468
+ return e;
2469
+ };
2470
+ g.parseParenArrowList = function(e, t, i, s) {
2471
+ return this.parseArrowExpression(this.startNodeAt(e, t), i, !1, s);
2472
+ };
2473
+ var Zi = [];
2474
+ g.parseNew = function() {
2475
+ this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
2476
+ var e = this.startNode();
2477
+ if (this.next(), this.options.ecmaVersion >= 6 && this.type === a.dot) {
2478
+ var t = this.startNodeAt(e.start, e.loc && e.loc.start);
2479
+ t.name = "new", e.meta = this.finishNode(t, "Identifier"), this.next();
2480
+ var i = this.containsEsc;
2481
+ return e.property = this.parseIdent(!0), 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");
2482
+ }
2483
+ var s = this.start, r = this.startLoc;
2484
+ return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), s, r, !0, !1), this.eat(a.parenL) ? e.arguments = this.parseExprList(a.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = Zi, this.finishNode(e, "NewExpression");
2485
+ };
2486
+ g.parseTemplateElement = function(e) {
2487
+ var t = e.isTagged, i = this.startNode();
2488
+ return this.type === a.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), i.value = {
2489
+ raw: this.value.replace(/\r\n?/g, `
2490
+ `),
2491
+ cooked: null
2492
+ }) : i.value = {
2493
+ raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, `
2494
+ `),
2495
+ cooked: this.value
2496
+ }, this.next(), i.tail = this.type === a.backQuote, this.finishNode(i, "TemplateElement");
2497
+ };
2498
+ g.parseTemplate = function(e) {
2499
+ e === void 0 && (e = {});
2500
+ var t = e.isTagged;
2501
+ t === void 0 && (t = !1);
2502
+ var i = this.startNode();
2503
+ this.next(), i.expressions = [];
2504
+ var s = this.parseTemplateElement({ isTagged: t });
2505
+ 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({ isTagged: t }));
2506
+ return this.next(), this.finishNode(i, "TemplateLiteral");
2507
+ };
2508
+ g.isAsyncProp = function(e) {
2509
+ 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) && !L.test(this.input.slice(this.lastTokEnd, this.start));
2510
+ };
2511
+ g.parseObj = function(e, t) {
2512
+ var i = this.startNode(), s = !0, r = {};
2513
+ for (i.properties = [], this.next(); !this.eat(a.braceR);) {
2514
+ if (s) s = !1;
2515
+ else if (this.expect(a.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(a.braceR)) break;
2516
+ var o = this.parseProperty(e, t);
2517
+ e || this.checkPropClash(o, r, t), i.properties.push(o);
2518
+ }
2519
+ return this.finishNode(i, e ? "ObjectPattern" : "ObjectExpression");
2520
+ };
2521
+ g.parseProperty = function(e, t) {
2522
+ var i = this.startNode(), s, r, o, u;
2523
+ if (this.options.ecmaVersion >= 9 && this.eat(a.ellipsis)) return e ? (i.argument = this.parseIdent(!1), this.type === a.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(i, "RestElement")) : (i.argument = this.parseMaybeAssign(!1, t), this.type === a.comma && t && t.trailingComma < 0 && (t.trailingComma = this.start), this.finishNode(i, "SpreadElement"));
2524
+ this.options.ecmaVersion >= 6 && (i.method = !1, i.shorthand = !1, (e || t) && (o = this.start, u = this.startLoc), e || (s = this.eat(a.star)));
2525
+ var p = this.containsEsc;
2526
+ return this.parsePropertyName(i), !e && !p && this.options.ecmaVersion >= 8 && !s && this.isAsyncProp(i) ? (r = !0, s = this.options.ecmaVersion >= 9 && this.eat(a.star), this.parsePropertyName(i)) : r = !1, this.parsePropertyValue(i, e, s, r, o, u, t, p), this.finishNode(i, "Property");
2527
+ };
2528
+ g.parseGetterSetter = function(e) {
2529
+ var t = e.key.name;
2530
+ this.parsePropertyName(e), e.value = this.parseMethod(!1), e.kind = t;
2531
+ var i = e.kind === "get" ? 0 : 1;
2532
+ if (e.value.params.length !== i) {
2533
+ var s = e.value.start;
2534
+ e.kind === "get" ? this.raiseRecoverable(s, "getter should have no params") : this.raiseRecoverable(s, "setter should have exactly one param");
2535
+ } else e.kind === "set" && e.value.params[0].type === "RestElement" && this.raiseRecoverable(e.value.params[0].start, "Setter cannot use rest params");
2536
+ };
2537
+ g.parsePropertyValue = function(e, t, i, s, r, o, u, p) {
2538
+ (i || s) && this.type === a.colon && this.unexpected(), this.eat(a.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, u), e.kind = "init") : this.options.ecmaVersion >= 6 && this.type === a.parenL ? (t && this.unexpected(), e.method = !0, 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, o, this.copyNode(e.key)) : this.type === a.eq && u ? (u.shorthandAssign < 0 && (u.shorthandAssign = this.start), e.value = this.parseMaybeDefault(r, o, this.copyNode(e.key))) : e.value = this.copyNode(e.key), e.kind = "init", e.shorthand = !0) : this.unexpected();
2539
+ };
2540
+ g.parsePropertyName = function(e) {
2541
+ if (this.options.ecmaVersion >= 6) {
2542
+ if (this.eat(a.bracketL)) return e.computed = !0, e.key = this.parseMaybeAssign(), this.expect(a.bracketR), e.key;
2543
+ e.computed = !1;
2544
+ }
2545
+ return e.key = this.type === a.num || this.type === a.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
2546
+ };
2547
+ g.initFunction = function(e) {
2548
+ e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = !1), this.options.ecmaVersion >= 8 && (e.async = !1);
2549
+ };
2550
+ g.parseMethod = function(e, t, i) {
2551
+ var s = this.startNode(), r = this.yieldPos, o = this.awaitPos, u = this.awaitIdentPos;
2552
+ 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(Xe(t, s.generator) | Se | (i ? _t : 0)), this.expect(a.parenL), s.params = this.parseBindingList(a.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(s, !1, !0, !1), this.yieldPos = r, this.awaitPos = o, this.awaitIdentPos = u, this.finishNode(s, "FunctionExpression");
2553
+ };
2554
+ g.parseArrowExpression = function(e, t, i, s) {
2555
+ var r = this.yieldPos, o = this.awaitPos, u = this.awaitIdentPos;
2556
+ return this.enterScope(Xe(i, !1) | He), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!i), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, s), this.yieldPos = r, this.awaitPos = o, this.awaitIdentPos = u, this.finishNode(e, "ArrowFunctionExpression");
2557
+ };
2558
+ g.parseFunctionBody = function(e, t, i, s) {
2559
+ var r = t && this.type !== a.braceL, o = this.strict, u = !1;
2560
+ if (r) e.body = this.parseMaybeAssign(s), e.expression = !0, this.checkParams(e, !1);
2561
+ else {
2562
+ var p = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
2563
+ (!o || p) && (u = this.strictDirective(this.end), u && p && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
2564
+ var h = this.labels;
2565
+ this.labels = [], u && (this.strict = !0), this.checkParams(e, !o && !u && !t && !i && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, Et), e.body = this.parseBlock(!1, void 0, u && !o), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = h;
2566
+ }
2567
+ this.exitScope();
2568
+ };
2569
+ g.isSimpleParamList = function(e) {
2570
+ for (var t = 0, i = e; t < i.length; t += 1) if (i[t].type !== "Identifier") return !1;
2571
+ return !0;
2572
+ };
2573
+ g.checkParams = function(e, t) {
2574
+ for (var i = Object.create(null), s = 0, r = e.params; s < r.length; s += 1) {
2575
+ var o = r[s];
2576
+ this.checkLValInnerPattern(o, We, t ? null : i);
2577
+ }
2578
+ };
2579
+ g.parseExprList = function(e, t, i, s) {
2580
+ for (var r = [], o = !0; !this.eat(e);) {
2581
+ if (o) o = !1;
2582
+ else if (this.expect(a.comma), t && this.afterTrailingComma(e)) break;
2583
+ var u = void 0;
2584
+ i && this.type === a.comma ? u = null : this.type === a.ellipsis ? (u = this.parseSpread(s), s && this.type === a.comma && s.trailingComma < 0 && (s.trailingComma = this.start)) : u = this.parseMaybeAssign(!1, s), r.push(u);
2585
+ }
2586
+ return r;
2587
+ };
2588
+ g.checkUnreserved = function(e) {
2589
+ var t = e.start, i = e.end, s = e.name;
2590
+ 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 & _e) && 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)) (this.strict ? this.reservedWordsStrict : this.reservedWords).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"));
2591
+ };
2592
+ g.parseIdent = function(e) {
2593
+ var t = this.parseIdentNode();
2594
+ return this.next(!!e), this.finishNode(t, "Identifier"), e || (this.checkUnreserved(t), t.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = t.start)), t;
2595
+ };
2596
+ g.parseIdentNode = function() {
2597
+ var e = this.startNode();
2598
+ 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;
2599
+ };
2600
+ g.parsePrivateIdent = function() {
2601
+ var e = this.startNode();
2602
+ 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;
2603
+ };
2604
+ g.parseYield = function(e) {
2605
+ this.yieldPos || (this.yieldPos = this.start);
2606
+ var t = this.startNode();
2607
+ return this.next(), this.type === a.semi || this.canInsertSemicolon() || this.type !== a.star && !this.type.startsExpr ? (t.delegate = !1, t.argument = null) : (t.delegate = this.eat(a.star), t.argument = this.parseMaybeAssign(e)), this.finishNode(t, "YieldExpression");
2608
+ };
2609
+ g.parseAwait = function(e) {
2610
+ this.awaitPos || (this.awaitPos = this.start);
2611
+ var t = this.startNode();
2612
+ return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
2613
+ };
2614
+ var ge = A.prototype;
2615
+ ge.raise = function(e, t) {
2616
+ var i = vt(this.input, e);
2617
+ t += " (" + i.line + ":" + i.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
2618
+ var s = new SyntaxError(t);
2619
+ throw s.pos = e, s.loc = i, s.raisedAt = this.pos, s;
2620
+ };
2621
+ ge.raiseRecoverable = ge.raise;
2622
+ ge.curPosition = function() {
2623
+ if (this.options.locations) return new ne(this.curLine, this.pos - this.lineStart);
2624
+ };
2625
+ var W = A.prototype, es = function(t) {
2626
+ this.flags = t, this.var = [], this.lexical = [], this.functions = [];
2627
+ };
2628
+ W.enterScope = function(e) {
2629
+ this.scopeStack.push(new es(e));
2630
+ };
2631
+ W.exitScope = function() {
2632
+ this.scopeStack.pop();
2633
+ };
2634
+ W.treatFunctionsAsVarInScope = function(e) {
2635
+ return e.flags & Z || !this.inModule && e.flags & oe;
2636
+ };
2637
+ W.declareName = function(e, t, i) {
2638
+ var s = !1;
2639
+ if (t === K) {
2640
+ var r = this.currentScope();
2641
+ s = r.lexical.indexOf(e) > -1 || r.functions.indexOf(e) > -1 || r.var.indexOf(e) > -1, r.lexical.push(e), this.inModule && r.flags & oe && delete this.undefinedExports[e];
2642
+ } else if (t === Tt) this.currentScope().lexical.push(e);
2643
+ else if (t === Ct) {
2644
+ var u = this.currentScope();
2645
+ this.treatFunctionsAsVar ? s = u.lexical.indexOf(e) > -1 : s = u.lexical.indexOf(e) > -1 || u.var.indexOf(e) > -1, u.functions.push(e);
2646
+ } else for (var p = this.scopeStack.length - 1; p >= 0; --p) {
2647
+ var h = this.scopeStack[p];
2648
+ if (h.lexical.indexOf(e) > -1 && !(h.flags & St && h.lexical[0] === e) || !this.treatFunctionsAsVarInScope(h) && h.functions.indexOf(e) > -1) {
2649
+ s = !0;
2650
+ break;
2651
+ }
2652
+ if (h.var.push(e), this.inModule && h.flags & oe && delete this.undefinedExports[e], h.flags & _e) break;
2653
+ }
2654
+ s && this.raiseRecoverable(i, "Identifier '" + e + "' has already been declared");
2655
+ };
2656
+ W.checkLocalExport = function(e) {
2657
+ this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
2658
+ };
2659
+ W.currentScope = function() {
2660
+ return this.scopeStack[this.scopeStack.length - 1];
2661
+ };
2662
+ W.currentVarScope = function() {
2663
+ for (var e = this.scopeStack.length - 1;; e--) {
2664
+ var t = this.scopeStack[e];
2665
+ if (t.flags & (_e | ue | z)) return t;
2666
+ }
2667
+ };
2668
+ W.currentThisScope = function() {
2669
+ for (var e = this.scopeStack.length - 1;; e--) {
2670
+ var t = this.scopeStack[e];
2671
+ if (t.flags & (_e | ue | z) && !(t.flags & He)) return t;
2672
+ }
2673
+ };
2674
+ var Te = function(t, i, s) {
2675
+ this.type = "", this.start = i, this.end = 0, t.options.locations && (this.loc = new be(t, s)), t.options.directSourceFile && (this.sourceFile = t.options.directSourceFile), t.options.ranges && (this.range = [i, 0]);
2676
+ }, he = A.prototype;
2677
+ he.startNode = function() {
2678
+ return new Te(this, this.start, this.startLoc);
2679
+ };
2680
+ he.startNodeAt = function(e, t) {
2681
+ return new Te(this, e, t);
2682
+ };
2683
+ function wt(e, t, i, s) {
2684
+ return e.type = t, e.end = i, this.options.locations && (e.loc.end = s), this.options.ranges && (e.range[1] = i), e;
2685
+ }
2686
+ he.finishNode = function(e, t) {
2687
+ return wt.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
2688
+ };
2689
+ he.finishNodeAt = function(e, t, i, s) {
2690
+ return wt.call(this, e, t, i, s);
2691
+ };
2692
+ he.copyNode = function(e) {
2693
+ var t = new Te(this, e.start, this.startLoc);
2694
+ for (var i in e) t[i] = e[i];
2695
+ return t;
2696
+ };
2697
+ var ts = "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", Pt = "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", It = Pt + " Extended_Pictographic", Nt = It, Lt = Nt + " EBase EComp EMod EPres ExtPict", Rt = Lt, ss = {
2698
+ 9: Pt,
2699
+ 10: It,
2700
+ 11: Nt,
2701
+ 12: Lt,
2702
+ 13: Rt,
2703
+ 14: Rt
2704
+ }, as = {
2705
+ 9: "",
2706
+ 10: "",
2707
+ 11: "",
2708
+ 12: "",
2709
+ 13: "",
2710
+ 14: "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"
2711
+ }, lt = "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", 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", Ot = Vt + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Bt = Ot + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Dt = Bt + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Mt = Dt + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", os = {
2712
+ 9: Vt,
2713
+ 10: Ot,
2714
+ 11: Bt,
2715
+ 12: Dt,
2716
+ 13: Mt,
2717
+ 14: Mt + " " + ts
2718
+ }, Ft = {};
2719
+ function us(e) {
2720
+ var t = Ft[e] = {
2721
+ binary: H(ss[e] + " " + lt),
2722
+ binaryOfStrings: H(as[e]),
2723
+ nonBinary: {
2724
+ General_Category: H(lt),
2725
+ Script: H(os[e])
2726
+ }
2727
+ };
2728
+ 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;
2729
+ }
2730
+ for (me = 0, Fe = [
2731
+ 9,
2732
+ 10,
2733
+ 11,
2734
+ 12,
2735
+ 13,
2736
+ 14
2737
+ ]; me < Fe.length; me += 1) ft = Fe[me], us(ft);
2738
+ var ft, me, Fe, f = A.prototype, ve = function(t, i) {
2739
+ this.parent = t, this.base = i || this;
2740
+ };
2741
+ ve.prototype.separatedFrom = function(t) {
2742
+ for (var i = this; i; i = i.parent) for (var s = t; s; s = s.parent) if (i.base === s.base && i !== s) return !0;
2743
+ return !1;
2744
+ };
2745
+ ve.prototype.sibling = function() {
2746
+ return new ve(this.parent, this.base);
2747
+ };
2748
+ var G = function(t) {
2749
+ 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 = !1, this.switchV = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = Object.create(null), this.backReferenceNames = [], this.branchID = null;
2750
+ };
2751
+ G.prototype.reset = function(t, i, s) {
2752
+ var r = s.indexOf("v") !== -1, o = s.indexOf("u") !== -1;
2753
+ this.start = t | 0, this.source = i + "", this.flags = s, r && this.parser.options.ecmaVersion >= 15 ? (this.switchU = !0, this.switchV = !0, this.switchN = !0) : (this.switchU = o && this.parser.options.ecmaVersion >= 6, this.switchV = !1, this.switchN = o && this.parser.options.ecmaVersion >= 9);
2754
+ };
2755
+ G.prototype.raise = function(t) {
2756
+ this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + t);
2757
+ };
2758
+ G.prototype.at = function(t, i) {
2759
+ i === void 0 && (i = !1);
2760
+ var s = this.source, r = s.length;
2761
+ if (t >= r) return -1;
2762
+ var o = s.charCodeAt(t);
2763
+ if (!(i || this.switchU) || o <= 55295 || o >= 57344 || t + 1 >= r) return o;
2764
+ var u = s.charCodeAt(t + 1);
2765
+ return u >= 56320 && u <= 57343 ? (o << 10) + u - 56613888 : o;
2766
+ };
2767
+ G.prototype.nextIndex = function(t, i) {
2768
+ i === void 0 && (i = !1);
2769
+ var s = this.source, r = s.length;
2770
+ if (t >= r) return r;
2771
+ var o = s.charCodeAt(t), u;
2772
+ return !(i || this.switchU) || o <= 55295 || o >= 57344 || t + 1 >= r || (u = s.charCodeAt(t + 1)) < 56320 || u > 57343 ? t + 1 : t + 2;
2773
+ };
2774
+ G.prototype.current = function(t) {
2775
+ return t === void 0 && (t = !1), this.at(this.pos, t);
2776
+ };
2777
+ G.prototype.lookahead = function(t) {
2778
+ return t === void 0 && (t = !1), this.at(this.nextIndex(this.pos, t), t);
2779
+ };
2780
+ G.prototype.advance = function(t) {
2781
+ t === void 0 && (t = !1), this.pos = this.nextIndex(this.pos, t);
2782
+ };
2783
+ G.prototype.eat = function(t, i) {
2784
+ return i === void 0 && (i = !1), this.current(i) === t ? (this.advance(i), !0) : !1;
2785
+ };
2786
+ G.prototype.eatChars = function(t, i) {
2787
+ i === void 0 && (i = !1);
2788
+ for (var s = this.pos, r = 0, o = t; r < o.length; r += 1) {
2789
+ var u = o[r], p = this.at(s, i);
2790
+ if (p === -1 || p !== u) return !1;
2791
+ s = this.nextIndex(s, i);
2792
+ }
2793
+ return this.pos = s, !0;
2794
+ };
2795
+ f.validateRegExpFlags = function(e) {
2796
+ for (var t = e.validFlags, i = e.flags, s = !1, r = !1, o = 0; o < i.length; o++) {
2797
+ var u = i.charAt(o);
2798
+ t.indexOf(u) === -1 && this.raise(e.start, "Invalid regular expression flag"), i.indexOf(u, o + 1) > -1 && this.raise(e.start, "Duplicate regular expression flag"), u === "u" && (s = !0), u === "v" && (r = !0);
2799
+ }
2800
+ this.options.ecmaVersion >= 15 && s && r && this.raise(e.start, "Invalid regular expression flag");
2801
+ };
2802
+ function hs(e) {
2803
+ for (var t in e) return !0;
2804
+ return !1;
2805
+ }
2806
+ f.validateRegExpPattern = function(e) {
2807
+ this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && hs(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
2808
+ };
2809
+ f.regexp_pattern = function(e) {
2810
+ e.pos = 0, e.lastIntValue = 0, e.lastStringValue = "", e.lastAssertionIsQuantifiable = !1, e.numCapturingParens = 0, e.maxBackReference = 0, e.groupNames = 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");
2811
+ for (var t = 0, i = e.backReferenceNames; t < i.length; t += 1) {
2812
+ var s = i[t];
2813
+ e.groupNames[s] || e.raise("Invalid named capture referenced");
2814
+ }
2815
+ };
2816
+ f.regexp_disjunction = function(e) {
2817
+ var t = this.options.ecmaVersion >= 16;
2818
+ for (t && (e.branchID = new ve(e.branchID, null)), this.regexp_alternative(e); e.eat(124);) t && (e.branchID = e.branchID.sibling()), this.regexp_alternative(e);
2819
+ t && (e.branchID = e.branchID.parent), this.regexp_eatQuantifier(e, !0) && e.raise("Nothing to repeat"), e.eat(123) && e.raise("Lone quantifier brackets");
2820
+ };
2821
+ f.regexp_alternative = function(e) {
2822
+ for (; e.pos < e.source.length && this.regexp_eatTerm(e););
2823
+ };
2824
+ f.regexp_eatTerm = function(e) {
2825
+ return this.regexp_eatAssertion(e) ? (e.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(e) && e.switchU && e.raise("Invalid quantifier"), !0) : (e.switchU ? this.regexp_eatAtom(e) : this.regexp_eatExtendedAtom(e)) ? (this.regexp_eatQuantifier(e), !0) : !1;
2826
+ };
2827
+ f.regexp_eatAssertion = function(e) {
2828
+ var t = e.pos;
2829
+ if (e.lastAssertionIsQuantifiable = !1, e.eat(94) || e.eat(36)) return !0;
2830
+ if (e.eat(92)) {
2831
+ if (e.eat(66) || e.eat(98)) return !0;
2832
+ e.pos = t;
2833
+ }
2834
+ if (e.eat(40) && e.eat(63)) {
2835
+ var i = !1;
2836
+ 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, !0;
2837
+ }
2838
+ return e.pos = t, !1;
2839
+ };
2840
+ f.regexp_eatQuantifier = function(e, t) {
2841
+ return t === void 0 && (t = !1), this.regexp_eatQuantifierPrefix(e, t) ? (e.eat(63), !0) : !1;
2842
+ };
2843
+ f.regexp_eatQuantifierPrefix = function(e, t) {
2844
+ return e.eat(42) || e.eat(43) || e.eat(63) || this.regexp_eatBracedQuantifier(e, t);
2845
+ };
2846
+ f.regexp_eatBracedQuantifier = function(e, t) {
2847
+ var i = e.pos;
2848
+ if (e.eat(123)) {
2849
+ var s = 0, r = -1;
2850
+ 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"), !0;
2851
+ e.switchU && !t && e.raise("Incomplete quantifier"), e.pos = i;
2852
+ }
2853
+ return !1;
2854
+ };
2855
+ f.regexp_eatAtom = function(e) {
2856
+ return this.regexp_eatPatternCharacters(e) || e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e);
2857
+ };
2858
+ f.regexp_eatReverseSolidusAtomEscape = function(e) {
2859
+ var t = e.pos;
2860
+ if (e.eat(92)) {
2861
+ if (this.regexp_eatAtomEscape(e)) return !0;
2862
+ e.pos = t;
2863
+ }
2864
+ return !1;
2865
+ };
2866
+ f.regexp_eatUncapturingGroup = function(e) {
2867
+ var t = e.pos;
2868
+ if (e.eat(40)) {
2869
+ if (e.eat(63)) {
2870
+ if (this.options.ecmaVersion >= 16) {
2871
+ var i = this.regexp_eatModifiers(e), s = e.eat(45);
2872
+ if (i || s) {
2873
+ for (var r = 0; r < i.length; r++) {
2874
+ var o = i.charAt(r);
2875
+ i.indexOf(o, r + 1) > -1 && e.raise("Duplicate regular expression modifiers");
2876
+ }
2877
+ if (s) {
2878
+ var u = this.regexp_eatModifiers(e);
2879
+ !i && !u && e.current() === 58 && e.raise("Invalid regular expression modifiers");
2880
+ for (var p = 0; p < u.length; p++) {
2881
+ var h = u.charAt(p);
2882
+ (u.indexOf(h, p + 1) > -1 || i.indexOf(h) > -1) && e.raise("Duplicate regular expression modifiers");
2883
+ }
2884
+ }
2885
+ }
2886
+ }
2887
+ if (e.eat(58)) {
2888
+ if (this.regexp_disjunction(e), e.eat(41)) return !0;
2889
+ e.raise("Unterminated group");
2890
+ }
2891
+ }
2892
+ e.pos = t;
2893
+ }
2894
+ return !1;
2895
+ };
2896
+ f.regexp_eatCapturingGroup = function(e) {
2897
+ if (e.eat(40)) {
2898
+ 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, !0;
2899
+ e.raise("Unterminated group");
2900
+ }
2901
+ return !1;
2902
+ };
2903
+ f.regexp_eatModifiers = function(e) {
2904
+ for (var t = "", i = 0; (i = e.current()) !== -1 && ps(i);) t += q(i), e.advance();
2905
+ return t;
2906
+ };
2907
+ function ps(e) {
2908
+ return e === 105 || e === 109 || e === 115;
2909
+ }
2910
+ f.regexp_eatExtendedAtom = function(e) {
2911
+ 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);
2912
+ };
2913
+ f.regexp_eatInvalidBracedQuantifier = function(e) {
2914
+ return this.regexp_eatBracedQuantifier(e, !0) && e.raise("Nothing to repeat"), !1;
2915
+ };
2916
+ f.regexp_eatSyntaxCharacter = function(e) {
2917
+ var t = e.current();
2918
+ return jt(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
2919
+ };
2920
+ function jt(e) {
2921
+ return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
2922
+ }
2923
+ f.regexp_eatPatternCharacters = function(e) {
2924
+ for (var t = e.pos, i = 0; (i = e.current()) !== -1 && !jt(i);) e.advance();
2925
+ return e.pos !== t;
2926
+ };
2927
+ f.regexp_eatExtendedPatternCharacter = function(e) {
2928
+ var t = e.current();
2929
+ return t !== -1 && t !== 36 && !(t >= 40 && t <= 43) && t !== 46 && t !== 63 && t !== 91 && t !== 94 && t !== 124 ? (e.advance(), !0) : !1;
2930
+ };
2931
+ f.regexp_groupSpecifier = function(e) {
2932
+ if (e.eat(63)) {
2933
+ this.regexp_eatGroupName(e) || e.raise("Invalid group");
2934
+ var t = this.options.ecmaVersion >= 16, i = e.groupNames[e.lastStringValue];
2935
+ if (i) if (t) for (var s = 0, r = i; s < r.length; s += 1) r[s].separatedFrom(e.branchID) || e.raise("Duplicate capture group name");
2936
+ else e.raise("Duplicate capture group name");
2937
+ t ? (i || (e.groupNames[e.lastStringValue] = [])).push(e.branchID) : e.groupNames[e.lastStringValue] = !0;
2938
+ }
2939
+ };
2940
+ f.regexp_eatGroupName = function(e) {
2941
+ if (e.lastStringValue = "", e.eat(60)) {
2942
+ if (this.regexp_eatRegExpIdentifierName(e) && e.eat(62)) return !0;
2943
+ e.raise("Invalid capture group name");
2944
+ }
2945
+ return !1;
2946
+ };
2947
+ f.regexp_eatRegExpIdentifierName = function(e) {
2948
+ if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
2949
+ for (e.lastStringValue += q(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e);) e.lastStringValue += q(e.lastIntValue);
2950
+ return !0;
2951
+ }
2952
+ return !1;
2953
+ };
2954
+ f.regexp_eatRegExpIdentifierStart = function(e) {
2955
+ var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
2956
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), cs(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
2957
+ };
2958
+ function cs(e) {
2959
+ return j(e, !0) || e === 36 || e === 95;
2960
+ }
2961
+ f.regexp_eatRegExpIdentifierPart = function(e) {
2962
+ var t = e.pos, i = this.options.ecmaVersion >= 11, s = e.current(i);
2963
+ return e.advance(i), s === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, i) && (s = e.lastIntValue), ls(s) ? (e.lastIntValue = s, !0) : (e.pos = t, !1);
2964
+ };
2965
+ function ls(e) {
2966
+ return X(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
2967
+ }
2968
+ f.regexp_eatAtomEscape = function(e) {
2969
+ return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? !0 : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), !1);
2970
+ };
2971
+ f.regexp_eatBackReference = function(e) {
2972
+ var t = e.pos;
2973
+ if (this.regexp_eatDecimalEscape(e)) {
2974
+ var i = e.lastIntValue;
2975
+ if (e.switchU) return i > e.maxBackReference && (e.maxBackReference = i), !0;
2976
+ if (i <= e.numCapturingParens) return !0;
2977
+ e.pos = t;
2978
+ }
2979
+ return !1;
2980
+ };
2981
+ f.regexp_eatKGroupName = function(e) {
2982
+ if (e.eat(107)) {
2983
+ if (this.regexp_eatGroupName(e)) return e.backReferenceNames.push(e.lastStringValue), !0;
2984
+ e.raise("Invalid named reference");
2985
+ }
2986
+ return !1;
2987
+ };
2988
+ f.regexp_eatCharacterEscape = function(e) {
2989
+ return this.regexp_eatControlEscape(e) || this.regexp_eatCControlLetter(e) || this.regexp_eatZero(e) || this.regexp_eatHexEscapeSequence(e) || this.regexp_eatRegExpUnicodeEscapeSequence(e, !1) || !e.switchU && this.regexp_eatLegacyOctalEscapeSequence(e) || this.regexp_eatIdentityEscape(e);
2990
+ };
2991
+ f.regexp_eatCControlLetter = function(e) {
2992
+ var t = e.pos;
2993
+ if (e.eat(99)) {
2994
+ if (this.regexp_eatControlLetter(e)) return !0;
2995
+ e.pos = t;
2996
+ }
2997
+ return !1;
2998
+ };
2999
+ f.regexp_eatZero = function(e) {
3000
+ return e.current() === 48 && !Ee(e.lookahead()) ? (e.lastIntValue = 0, e.advance(), !0) : !1;
3001
+ };
3002
+ f.regexp_eatControlEscape = function(e) {
3003
+ var t = e.current();
3004
+ return t === 116 ? (e.lastIntValue = 9, e.advance(), !0) : t === 110 ? (e.lastIntValue = 10, e.advance(), !0) : t === 118 ? (e.lastIntValue = 11, e.advance(), !0) : t === 102 ? (e.lastIntValue = 12, e.advance(), !0) : t === 114 ? (e.lastIntValue = 13, e.advance(), !0) : !1;
3005
+ };
3006
+ f.regexp_eatControlLetter = function(e) {
3007
+ var t = e.current();
3008
+ return Ut(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
3009
+ };
3010
+ function Ut(e) {
3011
+ return e >= 65 && e <= 90 || e >= 97 && e <= 122;
3012
+ }
3013
+ f.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
3014
+ t === void 0 && (t = !1);
3015
+ var i = e.pos, s = t || e.switchU;
3016
+ if (e.eat(117)) {
3017
+ if (this.regexp_eatFixedHexDigits(e, 4)) {
3018
+ var r = e.lastIntValue;
3019
+ if (s && r >= 55296 && r <= 56319) {
3020
+ var o = e.pos;
3021
+ if (e.eat(92) && e.eat(117) && this.regexp_eatFixedHexDigits(e, 4)) {
3022
+ var u = e.lastIntValue;
3023
+ if (u >= 56320 && u <= 57343) return e.lastIntValue = (r - 55296) * 1024 + (u - 56320) + 65536, !0;
3024
+ }
3025
+ e.pos = o, e.lastIntValue = r;
3026
+ }
3027
+ return !0;
3028
+ }
3029
+ if (s && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && fs(e.lastIntValue)) return !0;
3030
+ s && e.raise("Invalid unicode escape"), e.pos = i;
3031
+ }
3032
+ return !1;
3033
+ };
3034
+ function fs(e) {
3035
+ return e >= 0 && e <= 1114111;
3036
+ }
3037
+ f.regexp_eatIdentityEscape = function(e) {
3038
+ if (e.switchU) return this.regexp_eatSyntaxCharacter(e) ? !0 : e.eat(47) ? (e.lastIntValue = 47, !0) : !1;
3039
+ var t = e.current();
3040
+ return t !== 99 && (!e.switchN || t !== 107) ? (e.lastIntValue = t, e.advance(), !0) : !1;
3041
+ };
3042
+ f.regexp_eatDecimalEscape = function(e) {
3043
+ e.lastIntValue = 0;
3044
+ var t = e.current();
3045
+ if (t >= 49 && t <= 57) {
3046
+ do
3047
+ e.lastIntValue = 10 * e.lastIntValue + (t - 48), e.advance();
3048
+ while ((t = e.current()) >= 48 && t <= 57);
3049
+ return !0;
3050
+ }
3051
+ return !1;
3052
+ };
3053
+ var Gt = 0, J = 1, B = 2;
3054
+ f.regexp_eatCharacterClassEscape = function(e) {
3055
+ var t = e.current();
3056
+ if (ds(t)) return e.lastIntValue = -1, e.advance(), J;
3057
+ var i = !1;
3058
+ if (e.switchU && this.options.ecmaVersion >= 9 && ((i = t === 80) || t === 112)) {
3059
+ e.lastIntValue = -1, e.advance();
3060
+ var s;
3061
+ if (e.eat(123) && (s = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return i && s === B && e.raise("Invalid property name"), s;
3062
+ e.raise("Invalid property name");
3063
+ }
3064
+ return Gt;
3065
+ };
3066
+ function ds(e) {
3067
+ return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
3068
+ }
3069
+ f.regexp_eatUnicodePropertyValueExpression = function(e) {
3070
+ var t = e.pos;
3071
+ if (this.regexp_eatUnicodePropertyName(e) && e.eat(61)) {
3072
+ var i = e.lastStringValue;
3073
+ if (this.regexp_eatUnicodePropertyValue(e)) {
3074
+ var s = e.lastStringValue;
3075
+ return this.regexp_validateUnicodePropertyNameAndValue(e, i, s), J;
3076
+ }
3077
+ }
3078
+ if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
3079
+ var r = e.lastStringValue;
3080
+ return this.regexp_validateUnicodePropertyNameOrValue(e, r);
3081
+ }
3082
+ return Gt;
3083
+ };
3084
+ f.regexp_validateUnicodePropertyNameAndValue = function(e, t, i) {
3085
+ $(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(i) || e.raise("Invalid property value");
3086
+ };
3087
+ f.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
3088
+ if (e.unicodeProperties.binary.test(t)) return J;
3089
+ if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return B;
3090
+ e.raise("Invalid property name");
3091
+ };
3092
+ f.regexp_eatUnicodePropertyName = function(e) {
3093
+ var t = 0;
3094
+ for (e.lastStringValue = ""; qt(t = e.current());) e.lastStringValue += q(t), e.advance();
3095
+ return e.lastStringValue !== "";
3096
+ };
3097
+ function qt(e) {
3098
+ return Ut(e) || e === 95;
3099
+ }
3100
+ f.regexp_eatUnicodePropertyValue = function(e) {
3101
+ var t = 0;
3102
+ for (e.lastStringValue = ""; ms(t = e.current());) e.lastStringValue += q(t), e.advance();
3103
+ return e.lastStringValue !== "";
3104
+ };
3105
+ function ms(e) {
3106
+ return qt(e) || Ee(e);
3107
+ }
3108
+ f.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
3109
+ return this.regexp_eatUnicodePropertyValue(e);
3110
+ };
3111
+ f.regexp_eatCharacterClass = function(e) {
3112
+ if (e.eat(91)) {
3113
+ var t = e.eat(94), i = this.regexp_classContents(e);
3114
+ return e.eat(93) || e.raise("Unterminated character class"), t && i === B && e.raise("Negated character class may contain strings"), !0;
3115
+ }
3116
+ return !1;
3117
+ };
3118
+ f.regexp_classContents = function(e) {
3119
+ return e.current() === 93 ? J : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), J);
3120
+ };
3121
+ f.regexp_nonEmptyClassRanges = function(e) {
3122
+ for (; this.regexp_eatClassAtom(e);) {
3123
+ var t = e.lastIntValue;
3124
+ if (e.eat(45) && this.regexp_eatClassAtom(e)) {
3125
+ var i = e.lastIntValue;
3126
+ 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");
3127
+ }
3128
+ }
3129
+ };
3130
+ f.regexp_eatClassAtom = function(e) {
3131
+ var t = e.pos;
3132
+ if (e.eat(92)) {
3133
+ if (this.regexp_eatClassEscape(e)) return !0;
3134
+ if (e.switchU) {
3135
+ var i = e.current();
3136
+ (i === 99 || Ht(i)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
3137
+ }
3138
+ e.pos = t;
3139
+ }
3140
+ var s = e.current();
3141
+ return s !== 93 ? (e.lastIntValue = s, e.advance(), !0) : !1;
3142
+ };
3143
+ f.regexp_eatClassEscape = function(e) {
3144
+ var t = e.pos;
3145
+ if (e.eat(98)) return e.lastIntValue = 8, !0;
3146
+ if (e.switchU && e.eat(45)) return e.lastIntValue = 45, !0;
3147
+ if (!e.switchU && e.eat(99)) {
3148
+ if (this.regexp_eatClassControlLetter(e)) return !0;
3149
+ e.pos = t;
3150
+ }
3151
+ return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
3152
+ };
3153
+ f.regexp_classSetExpression = function(e) {
3154
+ var t = J, i;
3155
+ if (!this.regexp_eatClassSetRange(e)) if (i = this.regexp_eatClassSetOperand(e)) {
3156
+ i === B && (t = B);
3157
+ for (var s = e.pos; e.eatChars([38, 38]);) {
3158
+ if (e.current() !== 38 && (i = this.regexp_eatClassSetOperand(e))) {
3159
+ i !== B && (t = J);
3160
+ continue;
3161
+ }
3162
+ e.raise("Invalid character in character class");
3163
+ }
3164
+ if (s !== e.pos) return t;
3165
+ for (; e.eatChars([45, 45]);) this.regexp_eatClassSetOperand(e) || e.raise("Invalid character in character class");
3166
+ if (s !== e.pos) return t;
3167
+ } else e.raise("Invalid character in character class");
3168
+ for (;;) if (!this.regexp_eatClassSetRange(e)) {
3169
+ if (i = this.regexp_eatClassSetOperand(e), !i) return t;
3170
+ i === B && (t = B);
3171
+ }
3172
+ };
3173
+ f.regexp_eatClassSetRange = function(e) {
3174
+ var t = e.pos;
3175
+ if (this.regexp_eatClassSetCharacter(e)) {
3176
+ var i = e.lastIntValue;
3177
+ if (e.eat(45) && this.regexp_eatClassSetCharacter(e)) {
3178
+ var s = e.lastIntValue;
3179
+ return i !== -1 && s !== -1 && i > s && e.raise("Range out of order in character class"), !0;
3180
+ }
3181
+ e.pos = t;
3182
+ }
3183
+ return !1;
3184
+ };
3185
+ f.regexp_eatClassSetOperand = function(e) {
3186
+ return this.regexp_eatClassSetCharacter(e) ? J : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
3187
+ };
3188
+ f.regexp_eatNestedClass = function(e) {
3189
+ var t = e.pos;
3190
+ if (e.eat(91)) {
3191
+ var i = e.eat(94), s = this.regexp_classContents(e);
3192
+ if (e.eat(93)) return i && s === B && e.raise("Negated character class may contain strings"), s;
3193
+ e.pos = t;
3194
+ }
3195
+ if (e.eat(92)) {
3196
+ var r = this.regexp_eatCharacterClassEscape(e);
3197
+ if (r) return r;
3198
+ e.pos = t;
3199
+ }
3200
+ return null;
3201
+ };
3202
+ f.regexp_eatClassStringDisjunction = function(e) {
3203
+ var t = e.pos;
3204
+ if (e.eatChars([92, 113])) {
3205
+ if (e.eat(123)) {
3206
+ var i = this.regexp_classStringDisjunctionContents(e);
3207
+ if (e.eat(125)) return i;
3208
+ } else e.raise("Invalid escape");
3209
+ e.pos = t;
3210
+ }
3211
+ return null;
3212
+ };
3213
+ f.regexp_classStringDisjunctionContents = function(e) {
3214
+ for (var t = this.regexp_classString(e); e.eat(124);) this.regexp_classString(e) === B && (t = B);
3215
+ return t;
3216
+ };
3217
+ f.regexp_classString = function(e) {
3218
+ for (var t = 0; this.regexp_eatClassSetCharacter(e);) t++;
3219
+ return t === 1 ? J : B;
3220
+ };
3221
+ f.regexp_eatClassSetCharacter = function(e) {
3222
+ var t = e.pos;
3223
+ if (e.eat(92)) return this.regexp_eatCharacterEscape(e) || this.regexp_eatClassSetReservedPunctuator(e) ? !0 : e.eat(98) ? (e.lastIntValue = 8, !0) : (e.pos = t, !1);
3224
+ var i = e.current();
3225
+ return i < 0 || i === e.lookahead() && xs(i) || ys(i) ? !1 : (e.advance(), e.lastIntValue = i, !0);
3226
+ };
3227
+ function xs(e) {
3228
+ return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
3229
+ }
3230
+ function ys(e) {
3231
+ return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
3232
+ }
3233
+ f.regexp_eatClassSetReservedPunctuator = function(e) {
3234
+ var t = e.current();
3235
+ return gs(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
3236
+ };
3237
+ function gs(e) {
3238
+ return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
3239
+ }
3240
+ f.regexp_eatClassControlLetter = function(e) {
3241
+ var t = e.current();
3242
+ return Ee(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
3243
+ };
3244
+ f.regexp_eatHexEscapeSequence = function(e) {
3245
+ var t = e.pos;
3246
+ if (e.eat(120)) {
3247
+ if (this.regexp_eatFixedHexDigits(e, 2)) return !0;
3248
+ e.switchU && e.raise("Invalid escape"), e.pos = t;
3249
+ }
3250
+ return !1;
3251
+ };
3252
+ f.regexp_eatDecimalDigits = function(e) {
3253
+ var t = e.pos, i = 0;
3254
+ for (e.lastIntValue = 0; Ee(i = e.current());) e.lastIntValue = 10 * e.lastIntValue + (i - 48), e.advance();
3255
+ return e.pos !== t;
3256
+ };
3257
+ function Ee(e) {
3258
+ return e >= 48 && e <= 57;
3259
+ }
3260
+ f.regexp_eatHexDigits = function(e) {
3261
+ var t = e.pos, i = 0;
3262
+ for (e.lastIntValue = 0; Jt(i = e.current());) e.lastIntValue = 16 * e.lastIntValue + Kt(i), e.advance();
3263
+ return e.pos !== t;
3264
+ };
3265
+ function Jt(e) {
3266
+ return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
3267
+ }
3268
+ function Kt(e) {
3269
+ return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
3270
+ }
3271
+ f.regexp_eatLegacyOctalEscapeSequence = function(e) {
3272
+ if (this.regexp_eatOctalDigit(e)) {
3273
+ var t = e.lastIntValue;
3274
+ if (this.regexp_eatOctalDigit(e)) {
3275
+ var i = e.lastIntValue;
3276
+ t <= 3 && this.regexp_eatOctalDigit(e) ? e.lastIntValue = t * 64 + i * 8 + e.lastIntValue : e.lastIntValue = t * 8 + i;
3277
+ } else e.lastIntValue = t;
3278
+ return !0;
3279
+ }
3280
+ return !1;
3281
+ };
3282
+ f.regexp_eatOctalDigit = function(e) {
3283
+ var t = e.current();
3284
+ return Ht(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
3285
+ };
3286
+ function Ht(e) {
3287
+ return e >= 48 && e <= 55;
3288
+ }
3289
+ f.regexp_eatFixedHexDigits = function(e, t) {
3290
+ var i = e.pos;
3291
+ e.lastIntValue = 0;
3292
+ for (var s = 0; s < t; ++s) {
3293
+ var r = e.current();
3294
+ if (!Jt(r)) return e.pos = i, !1;
3295
+ e.lastIntValue = 16 * e.lastIntValue + Kt(r), e.advance();
3296
+ }
3297
+ return !0;
3298
+ };
3299
+ var Qe = function(t) {
3300
+ this.type = t.type, this.value = t.value, this.start = t.start, this.end = t.end, t.options.locations && (this.loc = new be(t, t.startLoc, t.endLoc)), t.options.ranges && (this.range = [t.start, t.end]);
3301
+ }, b = A.prototype;
3302
+ b.next = function(e) {
3303
+ !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Qe(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
3304
+ };
3305
+ b.getToken = function() {
3306
+ return this.next(), new Qe(this);
3307
+ };
3308
+ typeof Symbol < "u" && (b[Symbol.iterator] = function() {
3309
+ var e = this;
3310
+ return { next: function() {
3311
+ var t = e.getToken();
3312
+ return {
3313
+ done: t.type === a.eof,
3314
+ value: t
3315
+ };
3316
+ } };
3317
+ });
3318
+ b.nextToken = function() {
3319
+ var e = this.curContext();
3320
+ 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);
3321
+ if (e.override) return e.override(this);
3322
+ this.readToken(this.fullCharCodeAtPos());
3323
+ };
3324
+ b.readToken = function(e) {
3325
+ return j(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
3326
+ };
3327
+ b.fullCharCodeAtPos = function() {
3328
+ var e = this.input.charCodeAt(this.pos);
3329
+ if (e <= 55295 || e >= 56320) return e;
3330
+ var t = this.input.charCodeAt(this.pos + 1);
3331
+ return t <= 56319 || t >= 57344 ? e : (e << 10) + t - 56613888;
3332
+ };
3333
+ b.skipBlockComment = function() {
3334
+ var e = this.options.onComment && this.curPosition(), t = this.pos, i = this.input.indexOf("*/", this.pos += 2);
3335
+ 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 = xt(this.input, r, this.pos)) > -1;) ++this.curLine, r = this.lineStart = s;
3336
+ this.options.onComment && this.options.onComment(!0, this.input.slice(t + 2, i), t, this.pos, e, this.curPosition());
3337
+ };
3338
+ b.skipLineComment = function(e) {
3339
+ 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);
3340
+ this.options.onComment && this.options.onComment(!1, this.input.slice(t + e, this.pos), t, this.pos, i, this.curPosition());
3341
+ };
3342
+ b.skipSpace = function() {
3343
+ e: for (; this.pos < this.input.length;) {
3344
+ var e = this.input.charCodeAt(this.pos);
3345
+ switch (e) {
3346
+ case 32:
3347
+ case 160:
3348
+ ++this.pos;
3349
+ break;
3350
+ case 13: this.input.charCodeAt(this.pos + 1) === 10 && ++this.pos;
3351
+ case 10:
3352
+ case 8232:
3353
+ case 8233:
3354
+ ++this.pos, this.options.locations && (++this.curLine, this.lineStart = this.pos);
3355
+ break;
3356
+ case 47:
3357
+ switch (this.input.charCodeAt(this.pos + 1)) {
3358
+ case 42:
3359
+ this.skipBlockComment();
3360
+ break;
3361
+ case 47:
3362
+ this.skipLineComment(2);
3363
+ break;
3364
+ default: break e;
3365
+ }
3366
+ break;
3367
+ default: if (e > 8 && e < 14 || e >= 5760 && yt.test(String.fromCharCode(e))) ++this.pos;
3368
+ else break e;
3369
+ }
3370
+ }
3371
+ };
3372
+ b.finishToken = function(e, t) {
3373
+ this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
3374
+ var i = this.type;
3375
+ this.type = e, this.value = t, this.updateContext(i);
3376
+ };
3377
+ b.readToken_dot = function() {
3378
+ var e = this.input.charCodeAt(this.pos + 1);
3379
+ if (e >= 48 && e <= 57) return this.readNumber(!0);
3380
+ var t = this.input.charCodeAt(this.pos + 2);
3381
+ return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(a.ellipsis)) : (++this.pos, this.finishToken(a.dot));
3382
+ };
3383
+ b.readToken_slash = function() {
3384
+ var e = this.input.charCodeAt(this.pos + 1);
3385
+ return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.slash, 1);
3386
+ };
3387
+ b.readToken_mult_modulo_exp = function(e) {
3388
+ var t = this.input.charCodeAt(this.pos + 1), i = 1, s = e === 42 ? a.star : a.modulo;
3389
+ 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);
3390
+ };
3391
+ b.readToken_pipe_amp = function(e) {
3392
+ var t = this.input.charCodeAt(this.pos + 1);
3393
+ if (t === e) {
3394
+ if (this.options.ecmaVersion >= 12) {
3395
+ if (this.input.charCodeAt(this.pos + 2) === 61) return this.finishOp(a.assign, 3);
3396
+ }
3397
+ return this.finishOp(e === 124 ? a.logicalOR : a.logicalAND, 2);
3398
+ }
3399
+ return t === 61 ? this.finishOp(a.assign, 2) : this.finishOp(e === 124 ? a.bitwiseOR : a.bitwiseAND, 1);
3400
+ };
3401
+ b.readToken_caret = function() {
3402
+ return this.input.charCodeAt(this.pos + 1) === 61 ? this.finishOp(a.assign, 2) : this.finishOp(a.bitwiseXOR, 1);
3403
+ };
3404
+ b.readToken_plus_min = function(e) {
3405
+ var t = this.input.charCodeAt(this.pos + 1);
3406
+ return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || L.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);
3407
+ };
3408
+ b.readToken_lt_gt = function(e) {
3409
+ var t = this.input.charCodeAt(this.pos + 1), i = 1;
3410
+ 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));
3411
+ };
3412
+ b.readToken_eq_excl = function(e) {
3413
+ var t = this.input.charCodeAt(this.pos + 1);
3414
+ 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);
3415
+ };
3416
+ b.readToken_question = function() {
3417
+ var e = this.options.ecmaVersion;
3418
+ if (e >= 11) {
3419
+ var t = this.input.charCodeAt(this.pos + 1);
3420
+ if (t === 46) {
3421
+ var i = this.input.charCodeAt(this.pos + 2);
3422
+ if (i < 48 || i > 57) return this.finishOp(a.questionDot, 2);
3423
+ }
3424
+ if (t === 63) {
3425
+ if (e >= 12) {
3426
+ if (this.input.charCodeAt(this.pos + 2) === 61) return this.finishOp(a.assign, 3);
3427
+ }
3428
+ return this.finishOp(a.coalesce, 2);
3429
+ }
3430
+ }
3431
+ return this.finishOp(a.question, 1);
3432
+ };
3433
+ b.readToken_numberSign = function() {
3434
+ var e = this.options.ecmaVersion, t = 35;
3435
+ if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), j(t, !0) || t === 92)) return this.finishToken(a.privateId, this.readWord1());
3436
+ this.raise(this.pos, "Unexpected character '" + q(t) + "'");
3437
+ };
3438
+ b.getTokenFromCode = function(e) {
3439
+ switch (e) {
3440
+ case 46: return this.readToken_dot();
3441
+ case 40: return ++this.pos, this.finishToken(a.parenL);
3442
+ case 41: return ++this.pos, this.finishToken(a.parenR);
3443
+ case 59: return ++this.pos, this.finishToken(a.semi);
3444
+ case 44: return ++this.pos, this.finishToken(a.comma);
3445
+ case 91: return ++this.pos, this.finishToken(a.bracketL);
3446
+ case 93: return ++this.pos, this.finishToken(a.bracketR);
3447
+ case 123: return ++this.pos, this.finishToken(a.braceL);
3448
+ case 125: return ++this.pos, this.finishToken(a.braceR);
3449
+ case 58: return ++this.pos, this.finishToken(a.colon);
3450
+ case 96:
3451
+ if (this.options.ecmaVersion < 6) break;
3452
+ return ++this.pos, this.finishToken(a.backQuote);
3453
+ case 48:
3454
+ var t = this.input.charCodeAt(this.pos + 1);
3455
+ if (t === 120 || t === 88) return this.readRadixNumber(16);
3456
+ if (this.options.ecmaVersion >= 6) {
3457
+ if (t === 111 || t === 79) return this.readRadixNumber(8);
3458
+ if (t === 98 || t === 66) return this.readRadixNumber(2);
3459
+ }
3460
+ case 49:
3461
+ case 50:
3462
+ case 51:
3463
+ case 52:
3464
+ case 53:
3465
+ case 54:
3466
+ case 55:
3467
+ case 56:
3468
+ case 57: return this.readNumber(!1);
3469
+ case 34:
3470
+ case 39: return this.readString(e);
3471
+ case 47: return this.readToken_slash();
3472
+ case 37:
3473
+ case 42: return this.readToken_mult_modulo_exp(e);
3474
+ case 124:
3475
+ case 38: return this.readToken_pipe_amp(e);
3476
+ case 94: return this.readToken_caret();
3477
+ case 43:
3478
+ case 45: return this.readToken_plus_min(e);
3479
+ case 60:
3480
+ case 62: return this.readToken_lt_gt(e);
3481
+ case 61:
3482
+ case 33: return this.readToken_eq_excl(e);
3483
+ case 63: return this.readToken_question();
3484
+ case 126: return this.finishOp(a.prefix, 1);
3485
+ case 35: return this.readToken_numberSign();
3486
+ }
3487
+ this.raise(this.pos, "Unexpected character '" + q(e) + "'");
3488
+ };
3489
+ b.finishOp = function(e, t) {
3490
+ var i = this.input.slice(this.pos, this.pos + t);
3491
+ return this.pos += t, this.finishToken(e, i);
3492
+ };
3493
+ b.readRegexp = function() {
3494
+ for (var e, t, i = this.pos;;) {
3495
+ this.pos >= this.input.length && this.raise(i, "Unterminated regular expression");
3496
+ var s = this.input.charAt(this.pos);
3497
+ if (L.test(s) && this.raise(i, "Unterminated regular expression"), e) e = !1;
3498
+ else {
3499
+ if (s === "[") t = !0;
3500
+ else if (s === "]" && t) t = !1;
3501
+ else if (s === "/" && !t) break;
3502
+ e = s === "\\";
3503
+ }
3504
+ ++this.pos;
3505
+ }
3506
+ var r = this.input.slice(i, this.pos);
3507
+ ++this.pos;
3508
+ var o = this.pos, u = this.readWord1();
3509
+ this.containsEsc && this.unexpected(o);
3510
+ var p = this.regexpState || (this.regexpState = new G(this));
3511
+ p.reset(i, r, u), this.validateRegExpFlags(p), this.validateRegExpPattern(p);
3512
+ var h = null;
3513
+ try {
3514
+ h = new RegExp(r, u);
3515
+ } catch {}
3516
+ return this.finishToken(a.regexp, {
3517
+ pattern: r,
3518
+ flags: u,
3519
+ value: h
3520
+ });
3521
+ };
3522
+ b.readInt = function(e, t, i) {
3523
+ for (var s = this.options.ecmaVersion >= 12 && t === void 0, r = i && this.input.charCodeAt(this.pos) === 48, o = this.pos, u = 0, p = 0, h = 0, l = t ?? Infinity; h < l; ++h, ++this.pos) {
3524
+ var m = this.input.charCodeAt(this.pos), S = void 0;
3525
+ if (s && m === 95) {
3526
+ 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"), h === 0 && this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits"), p = m;
3527
+ continue;
3528
+ }
3529
+ if (m >= 97 ? S = m - 97 + 10 : m >= 65 ? S = m - 65 + 10 : m >= 48 && m <= 57 ? S = m - 48 : S = Infinity, S >= e) break;
3530
+ p = m, u = u * e + S;
3531
+ }
3532
+ return s && p === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === o || t != null && this.pos - o !== t ? null : u;
3533
+ };
3534
+ function vs(e, t) {
3535
+ return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
3536
+ }
3537
+ function Xt(e) {
3538
+ return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
3539
+ }
3540
+ b.readRadixNumber = function(e) {
3541
+ var t = this.pos;
3542
+ this.pos += 2;
3543
+ var i = this.readInt(e);
3544
+ return i ?? this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (i = Xt(this.input.slice(t, this.pos)), ++this.pos) : j(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, i);
3545
+ };
3546
+ b.readNumber = function(e) {
3547
+ var t = this.pos;
3548
+ !e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number");
3549
+ var i = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
3550
+ i && this.strict && this.raise(t, "Invalid number");
3551
+ var s = this.input.charCodeAt(this.pos);
3552
+ if (!i && !e && this.options.ecmaVersion >= 11 && s === 110) {
3553
+ var r = Xt(this.input.slice(t, this.pos));
3554
+ return ++this.pos, j(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(a.num, r);
3555
+ }
3556
+ i && /[89]/.test(this.input.slice(t, this.pos)) && (i = !1), 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")), j(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
3557
+ var o = vs(this.input.slice(t, this.pos), i);
3558
+ return this.finishToken(a.num, o);
3559
+ };
3560
+ b.readCodePoint = function() {
3561
+ var e = this.input.charCodeAt(this.pos), t;
3562
+ if (e === 123) {
3563
+ this.options.ecmaVersion < 6 && this.unexpected();
3564
+ var i = ++this.pos;
3565
+ t = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, t > 1114111 && this.invalidStringToken(i, "Code point out of bounds");
3566
+ } else t = this.readHexChar(4);
3567
+ return t;
3568
+ };
3569
+ b.readString = function(e) {
3570
+ for (var t = "", i = ++this.pos;;) {
3571
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
3572
+ var s = this.input.charCodeAt(this.pos);
3573
+ if (s === e) break;
3574
+ s === 92 ? (t += this.input.slice(i, this.pos), t += this.readEscapedChar(!1), 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);
3575
+ }
3576
+ return t += this.input.slice(i, this.pos++), this.finishToken(a.string, t);
3577
+ };
3578
+ var Wt = {};
3579
+ b.tryReadTemplateToken = function() {
3580
+ this.inTemplateElement = !0;
3581
+ try {
3582
+ this.readTmplToken();
3583
+ } catch (e) {
3584
+ if (e === Wt) this.readInvalidTemplateToken();
3585
+ else throw e;
3586
+ }
3587
+ this.inTemplateElement = !1;
3588
+ };
3589
+ b.invalidStringToken = function(e, t) {
3590
+ if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw Wt;
3591
+ this.raise(e, t);
3592
+ };
3593
+ b.readTmplToken = function() {
3594
+ for (var e = "", t = this.pos;;) {
3595
+ this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
3596
+ var i = this.input.charCodeAt(this.pos);
3597
+ 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));
3598
+ if (i === 92) e += this.input.slice(t, this.pos), e += this.readEscapedChar(!0), t = this.pos;
3599
+ else if (Y(i)) {
3600
+ switch (e += this.input.slice(t, this.pos), ++this.pos, i) {
3601
+ case 13: this.input.charCodeAt(this.pos) === 10 && ++this.pos;
3602
+ case 10:
3603
+ e += `
3604
+ `;
3605
+ break;
3606
+ default:
3607
+ e += String.fromCharCode(i);
3608
+ break;
3609
+ }
3610
+ this.options.locations && (++this.curLine, this.lineStart = this.pos), t = this.pos;
3611
+ } else ++this.pos;
3612
+ }
3613
+ };
3614
+ b.readInvalidTemplateToken = function() {
3615
+ for (; this.pos < this.input.length; this.pos++) switch (this.input[this.pos]) {
3616
+ case "\\":
3617
+ ++this.pos;
3618
+ break;
3619
+ case "$": if (this.input[this.pos + 1] !== "{") break;
3620
+ case "`": return this.finishToken(a.invalidTemplate, this.input.slice(this.start, this.pos));
3621
+ case "\r": this.input[this.pos + 1] === `
3622
+ ` && ++this.pos;
3623
+ case `
3624
+ `:
3625
+ case "\u2028":
3626
+ case "\u2029":
3627
+ ++this.curLine, this.lineStart = this.pos + 1;
3628
+ break;
3629
+ }
3630
+ this.raise(this.start, "Unterminated template");
3631
+ };
3632
+ b.readEscapedChar = function(e) {
3633
+ var t = this.input.charCodeAt(++this.pos);
3634
+ switch (++this.pos, t) {
3635
+ case 110: return `
3636
+ `;
3637
+ case 114: return "\r";
3638
+ case 120: return String.fromCharCode(this.readHexChar(2));
3639
+ case 117: return q(this.readCodePoint());
3640
+ case 116: return " ";
3641
+ case 98: return "\b";
3642
+ case 118: return "\v";
3643
+ case 102: return "\f";
3644
+ case 13: this.input.charCodeAt(this.pos) === 10 && ++this.pos;
3645
+ case 10: return this.options.locations && (this.lineStart = this.pos, ++this.curLine), "";
3646
+ case 56:
3647
+ case 57: if (this.strict && this.invalidStringToken(this.pos - 1, "Invalid escape sequence"), e) {
3648
+ var i = this.pos - 1;
3649
+ this.invalidStringToken(i, "Invalid escape sequence in template string");
3650
+ }
3651
+ default:
3652
+ if (t >= 48 && t <= 55) {
3653
+ var s = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], r = parseInt(s, 8);
3654
+ 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);
3655
+ }
3656
+ return Y(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
3657
+ }
3658
+ };
3659
+ b.readHexChar = function(e) {
3660
+ var t = this.pos, i = this.readInt(16, e);
3661
+ return i === null && this.invalidStringToken(t, "Bad character escape sequence"), i;
3662
+ };
3663
+ b.readWord1 = function() {
3664
+ this.containsEsc = !1;
3665
+ for (var e = "", t = !0, i = this.pos, s = this.options.ecmaVersion >= 6; this.pos < this.input.length;) {
3666
+ var r = this.fullCharCodeAtPos();
3667
+ if (X(r, s)) this.pos += r <= 65535 ? 1 : 2;
3668
+ else if (r === 92) {
3669
+ this.containsEsc = !0, e += this.input.slice(i, this.pos);
3670
+ var o = this.pos;
3671
+ this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
3672
+ var u = this.readCodePoint();
3673
+ (t ? j : X)(u, s) || this.invalidStringToken(o, "Invalid Unicode escape"), e += q(u), i = this.pos;
3674
+ } else break;
3675
+ t = !1;
3676
+ }
3677
+ return e + this.input.slice(i, this.pos);
3678
+ };
3679
+ b.readWord = function() {
3680
+ var e = this.readWord1(), t = a.name;
3681
+ return this.keywords.test(e) && (t = Je[e]), this.finishToken(t, e);
3682
+ };
3683
+ A.acorn = {
3684
+ Parser: A,
3685
+ version: "8.15.0",
3686
+ defaultOptions: Ue,
3687
+ Position: ne,
3688
+ SourceLocation: be,
3689
+ getLineInfo: vt,
3690
+ Node: Te,
3691
+ TokenType: C,
3692
+ tokTypes: a,
3693
+ keywordTypes: Je,
3694
+ TokContext: F,
3695
+ tokContexts: T,
3696
+ isIdentifierChar: X,
3697
+ isIdentifierStart: j,
3698
+ Token: Qe,
3699
+ isNewLine: Y,
3700
+ lineBreak: L,
3701
+ lineBreakG: qi,
3702
+ nonASCIIwhitespace: yt
3703
+ };
3704
+ var Si = ut($e(), 1);
3705
+ function As(e, t) {
3706
+ let i = /* @__PURE__ */ new SyntaxError(e + " (" + t.loc.start.line + ":" + t.loc.start.column + ")");
3707
+ return Object.assign(i, t);
3708
+ }
3709
+ var Ae = As;
3710
+ function ke(e) {
3711
+ let t = [];
3712
+ for (let i of e) try {
3713
+ return i();
3714
+ } catch (s) {
3715
+ t.push(s);
3716
+ }
3717
+ throw Object.assign(/* @__PURE__ */ new Error("All combinations failed"), { errors: t });
3718
+ }
3719
+ var te = (e, t) => (i, s, ...r) => i | 1 && s == null ? void 0 : (t.call(s) ?? s[e]).apply(s, r);
3720
+ var ks = Array.prototype.findLast ?? function(e) {
3721
+ for (let t = this.length - 1; t >= 0; t--) {
3722
+ let i = this[t];
3723
+ if (e(i, t, this)) return i;
3724
+ }
3725
+ }, Zt = te("findLast", function() {
3726
+ if (Array.isArray(this)) return ks;
3727
+ });
3728
+ function Ps(e) {
3729
+ return this[e < 0 ? this.length + e : e];
3730
+ }
3731
+ var ie = te("at", function() {
3732
+ if (Array.isArray(this) || typeof this == "string") return Ps;
3733
+ });
3734
+ function M(e) {
3735
+ let t = e.range?.[0] ?? e.start, i = (e.declaration?.decorators ?? e.decorators)?.[0];
3736
+ return i ? Math.min(M(i), t) : t;
3737
+ }
3738
+ function R(e) {
3739
+ return e.range?.[1] ?? e.end;
3740
+ }
3741
+ function Ns(e) {
3742
+ let t = new Set(e);
3743
+ return (i) => t.has(i?.type);
3744
+ }
3745
+ var se = Ns;
3746
+ var re = se([
3747
+ "Block",
3748
+ "CommentBlock",
3749
+ "MultiLine"
3750
+ ]);
3751
+ var ei = se([
3752
+ "Line",
3753
+ "CommentLine",
3754
+ "SingleLine",
3755
+ "HashbangComment",
3756
+ "HTMLOpen",
3757
+ "HTMLClose",
3758
+ "Hashbang",
3759
+ "InterpreterDirective"
3760
+ ]);
3761
+ var Ze = /* @__PURE__ */ new WeakMap();
3762
+ function Vs(e) {
3763
+ return Ze.has(e) || Ze.set(e, re(e) && e.value[0] === "*" && /@(?:type|satisfies)\b/u.test(e.value)), Ze.get(e);
3764
+ }
3765
+ var ti = Vs;
3766
+ function Os(e) {
3767
+ if (!re(e)) return !1;
3768
+ let t = `*${e.value}*`.split(`
3769
+ `);
3770
+ return t.length > 1 && t.every((i) => i.trimStart()[0] === "*");
3771
+ }
3772
+ var et = /* @__PURE__ */ new WeakMap();
3773
+ function Bs(e) {
3774
+ return et.has(e) || et.set(e, Os(e)), et.get(e);
3775
+ }
3776
+ var tt = Bs;
3777
+ function Ds(e) {
3778
+ if (e.length < 2) return;
3779
+ let t;
3780
+ for (let i = e.length - 1; i >= 0; i--) {
3781
+ let s = e[i];
3782
+ if (t && R(s) === M(t) && tt(s) && tt(t) && (e.splice(i + 1, 1), s.value += "*//*" + t.value, s.range = [M(s), R(t)]), !ei(s) && !re(s)) throw new TypeError(`Unknown comment type: "${s.type}".`);
3783
+ t = s;
3784
+ }
3785
+ }
3786
+ var ii = Ds;
3787
+ function Ms(e) {
3788
+ return e !== null && typeof e == "object";
3789
+ }
3790
+ var si = Ms;
3791
+ var ce = null;
3792
+ function le(e) {
3793
+ if (ce !== null && typeof ce.property) {
3794
+ let t = ce;
3795
+ return ce = le.prototype = null, t;
3796
+ }
3797
+ return ce = le.prototype = e ?? Object.create(null), new le();
3798
+ }
3799
+ var Fs = 10;
3800
+ for (let e = 0; e <= Fs; e++) le();
3801
+ function it(e) {
3802
+ return le(e);
3803
+ }
3804
+ function js(e, t = "type") {
3805
+ it(e);
3806
+ function i(s) {
3807
+ let r = s[t], o = e[r];
3808
+ if (!Array.isArray(o)) throw Object.assign(/* @__PURE__ */ new Error(`Missing visitor keys for '${r}'.`), { node: s });
3809
+ return o;
3810
+ }
3811
+ return i;
3812
+ }
3813
+ var ri = js;
3814
+ var n = [
3815
+ [
3816
+ "decorators",
3817
+ "key",
3818
+ "typeAnnotation",
3819
+ "value"
3820
+ ],
3821
+ [],
3822
+ ["elementType"],
3823
+ ["expression"],
3824
+ ["expression", "typeAnnotation"],
3825
+ ["left", "right"],
3826
+ ["argument"],
3827
+ ["directives", "body"],
3828
+ ["label"],
3829
+ [
3830
+ "callee",
3831
+ "typeArguments",
3832
+ "arguments"
3833
+ ],
3834
+ ["body"],
3835
+ [
3836
+ "decorators",
3837
+ "id",
3838
+ "typeParameters",
3839
+ "superClass",
3840
+ "superTypeArguments",
3841
+ "mixins",
3842
+ "implements",
3843
+ "body",
3844
+ "superTypeParameters"
3845
+ ],
3846
+ ["id", "typeParameters"],
3847
+ [
3848
+ "decorators",
3849
+ "key",
3850
+ "typeParameters",
3851
+ "params",
3852
+ "returnType",
3853
+ "body"
3854
+ ],
3855
+ [
3856
+ "decorators",
3857
+ "variance",
3858
+ "key",
3859
+ "typeAnnotation",
3860
+ "value"
3861
+ ],
3862
+ ["name", "typeAnnotation"],
3863
+ [
3864
+ "test",
3865
+ "consequent",
3866
+ "alternate"
3867
+ ],
3868
+ [
3869
+ "checkType",
3870
+ "extendsType",
3871
+ "trueType",
3872
+ "falseType"
3873
+ ],
3874
+ ["value"],
3875
+ ["id", "body"],
3876
+ [
3877
+ "declaration",
3878
+ "specifiers",
3879
+ "source",
3880
+ "attributes"
3881
+ ],
3882
+ ["id"],
3883
+ [
3884
+ "id",
3885
+ "typeParameters",
3886
+ "extends",
3887
+ "body"
3888
+ ],
3889
+ ["typeAnnotation"],
3890
+ [
3891
+ "id",
3892
+ "typeParameters",
3893
+ "right"
3894
+ ],
3895
+ ["body", "test"],
3896
+ ["members"],
3897
+ ["id", "init"],
3898
+ ["exported"],
3899
+ [
3900
+ "left",
3901
+ "right",
3902
+ "body"
3903
+ ],
3904
+ [
3905
+ "id",
3906
+ "typeParameters",
3907
+ "params",
3908
+ "predicate",
3909
+ "returnType",
3910
+ "body"
3911
+ ],
3912
+ [
3913
+ "id",
3914
+ "params",
3915
+ "body",
3916
+ "typeParameters",
3917
+ "returnType"
3918
+ ],
3919
+ ["key", "value"],
3920
+ ["local"],
3921
+ ["objectType", "indexType"],
3922
+ ["typeParameter"],
3923
+ ["types"],
3924
+ ["node"],
3925
+ ["object", "property"],
3926
+ ["argument", "cases"],
3927
+ [
3928
+ "pattern",
3929
+ "body",
3930
+ "guard"
3931
+ ],
3932
+ ["literal"],
3933
+ [
3934
+ "decorators",
3935
+ "key",
3936
+ "value"
3937
+ ],
3938
+ ["expressions"],
3939
+ ["qualification", "id"],
3940
+ [
3941
+ "decorators",
3942
+ "key",
3943
+ "typeAnnotation"
3944
+ ],
3945
+ [
3946
+ "typeParameters",
3947
+ "params",
3948
+ "returnType"
3949
+ ],
3950
+ ["expression", "typeArguments"],
3951
+ ["params"],
3952
+ ["parameterName", "typeAnnotation"]
3953
+ ];
3954
+ var ni = ri({
3955
+ AccessorProperty: n[0],
3956
+ AnyTypeAnnotation: n[1],
3957
+ ArgumentPlaceholder: n[1],
3958
+ ArrayExpression: ["elements"],
3959
+ ArrayPattern: [
3960
+ "elements",
3961
+ "typeAnnotation",
3962
+ "decorators"
3963
+ ],
3964
+ ArrayTypeAnnotation: n[2],
3965
+ ArrowFunctionExpression: [
3966
+ "typeParameters",
3967
+ "params",
3968
+ "predicate",
3969
+ "returnType",
3970
+ "body"
3971
+ ],
3972
+ AsConstExpression: n[3],
3973
+ AsExpression: n[4],
3974
+ AssignmentExpression: n[5],
3975
+ AssignmentPattern: [
3976
+ "left",
3977
+ "right",
3978
+ "decorators",
3979
+ "typeAnnotation"
3980
+ ],
3981
+ AwaitExpression: n[6],
3982
+ BigIntLiteral: n[1],
3983
+ BigIntLiteralTypeAnnotation: n[1],
3984
+ BigIntTypeAnnotation: n[1],
3985
+ BinaryExpression: n[5],
3986
+ BindExpression: ["object", "callee"],
3987
+ BlockStatement: n[7],
3988
+ BooleanLiteral: n[1],
3989
+ BooleanLiteralTypeAnnotation: n[1],
3990
+ BooleanTypeAnnotation: n[1],
3991
+ BreakStatement: n[8],
3992
+ CallExpression: n[9],
3993
+ CatchClause: ["param", "body"],
3994
+ ChainExpression: n[3],
3995
+ ClassAccessorProperty: n[0],
3996
+ ClassBody: n[10],
3997
+ ClassDeclaration: n[11],
3998
+ ClassExpression: n[11],
3999
+ ClassImplements: n[12],
4000
+ ClassMethod: n[13],
4001
+ ClassPrivateMethod: n[13],
4002
+ ClassPrivateProperty: n[14],
4003
+ ClassProperty: n[14],
4004
+ ComponentDeclaration: [
4005
+ "id",
4006
+ "params",
4007
+ "body",
4008
+ "typeParameters",
4009
+ "rendersType"
4010
+ ],
4011
+ ComponentParameter: ["name", "local"],
4012
+ ComponentTypeAnnotation: [
4013
+ "params",
4014
+ "rest",
4015
+ "typeParameters",
4016
+ "rendersType"
4017
+ ],
4018
+ ComponentTypeParameter: n[15],
4019
+ ConditionalExpression: n[16],
4020
+ ConditionalTypeAnnotation: n[17],
4021
+ ContinueStatement: n[8],
4022
+ DebuggerStatement: n[1],
4023
+ DeclareClass: [
4024
+ "id",
4025
+ "typeParameters",
4026
+ "extends",
4027
+ "mixins",
4028
+ "implements",
4029
+ "body"
4030
+ ],
4031
+ DeclareComponent: [
4032
+ "id",
4033
+ "params",
4034
+ "rest",
4035
+ "typeParameters",
4036
+ "rendersType"
4037
+ ],
4038
+ DeclaredPredicate: n[18],
4039
+ DeclareEnum: n[19],
4040
+ DeclareExportAllDeclaration: ["source", "attributes"],
4041
+ DeclareExportDeclaration: n[20],
4042
+ DeclareFunction: ["id", "predicate"],
4043
+ DeclareHook: n[21],
4044
+ DeclareInterface: n[22],
4045
+ DeclareModule: n[19],
4046
+ DeclareModuleExports: n[23],
4047
+ DeclareNamespace: n[19],
4048
+ DeclareOpaqueType: [
4049
+ "id",
4050
+ "typeParameters",
4051
+ "supertype",
4052
+ "lowerBound",
4053
+ "upperBound"
4054
+ ],
4055
+ DeclareTypeAlias: n[24],
4056
+ DeclareVariable: n[21],
4057
+ Decorator: n[3],
4058
+ Directive: n[18],
4059
+ DirectiveLiteral: n[1],
4060
+ DoExpression: n[10],
4061
+ DoWhileStatement: n[25],
4062
+ EmptyStatement: n[1],
4063
+ EmptyTypeAnnotation: n[1],
4064
+ EnumBigIntBody: n[26],
4065
+ EnumBigIntMember: n[27],
4066
+ EnumBooleanBody: n[26],
4067
+ EnumBooleanMember: n[27],
4068
+ EnumDeclaration: n[19],
4069
+ EnumDefaultedMember: n[21],
4070
+ EnumNumberBody: n[26],
4071
+ EnumNumberMember: n[27],
4072
+ EnumStringBody: n[26],
4073
+ EnumStringMember: n[27],
4074
+ EnumSymbolBody: n[26],
4075
+ ExistsTypeAnnotation: n[1],
4076
+ ExperimentalRestProperty: n[6],
4077
+ ExperimentalSpreadProperty: n[6],
4078
+ ExportAllDeclaration: [
4079
+ "source",
4080
+ "attributes",
4081
+ "exported"
4082
+ ],
4083
+ ExportDefaultDeclaration: ["declaration"],
4084
+ ExportDefaultSpecifier: n[28],
4085
+ ExportNamedDeclaration: n[20],
4086
+ ExportNamespaceSpecifier: n[28],
4087
+ ExportSpecifier: ["local", "exported"],
4088
+ ExpressionStatement: n[3],
4089
+ File: ["program"],
4090
+ ForInStatement: n[29],
4091
+ ForOfStatement: n[29],
4092
+ ForStatement: [
4093
+ "init",
4094
+ "test",
4095
+ "update",
4096
+ "body"
4097
+ ],
4098
+ FunctionDeclaration: n[30],
4099
+ FunctionExpression: n[30],
4100
+ FunctionTypeAnnotation: [
4101
+ "typeParameters",
4102
+ "this",
4103
+ "params",
4104
+ "rest",
4105
+ "returnType"
4106
+ ],
4107
+ FunctionTypeParam: n[15],
4108
+ GenericTypeAnnotation: n[12],
4109
+ HookDeclaration: n[31],
4110
+ HookTypeAnnotation: [
4111
+ "params",
4112
+ "returnType",
4113
+ "rest",
4114
+ "typeParameters"
4115
+ ],
4116
+ Identifier: ["typeAnnotation", "decorators"],
4117
+ IfStatement: n[16],
4118
+ ImportAttribute: n[32],
4119
+ ImportDeclaration: [
4120
+ "specifiers",
4121
+ "source",
4122
+ "attributes"
4123
+ ],
4124
+ ImportDefaultSpecifier: n[33],
4125
+ ImportExpression: ["source", "options"],
4126
+ ImportNamespaceSpecifier: n[33],
4127
+ ImportSpecifier: ["imported", "local"],
4128
+ IndexedAccessType: n[34],
4129
+ InferredPredicate: n[1],
4130
+ InferTypeAnnotation: n[35],
4131
+ InterfaceDeclaration: n[22],
4132
+ InterfaceExtends: n[12],
4133
+ InterfaceTypeAnnotation: ["extends", "body"],
4134
+ InterpreterDirective: n[1],
4135
+ IntersectionTypeAnnotation: n[36],
4136
+ JsExpressionRoot: n[37],
4137
+ JsonRoot: n[37],
4138
+ JSXAttribute: ["name", "value"],
4139
+ JSXClosingElement: ["name"],
4140
+ JSXClosingFragment: n[1],
4141
+ JSXElement: [
4142
+ "openingElement",
4143
+ "children",
4144
+ "closingElement"
4145
+ ],
4146
+ JSXEmptyExpression: n[1],
4147
+ JSXExpressionContainer: n[3],
4148
+ JSXFragment: [
4149
+ "openingFragment",
4150
+ "children",
4151
+ "closingFragment"
4152
+ ],
4153
+ JSXIdentifier: n[1],
4154
+ JSXMemberExpression: n[38],
4155
+ JSXNamespacedName: ["namespace", "name"],
4156
+ JSXOpeningElement: [
4157
+ "name",
4158
+ "typeArguments",
4159
+ "attributes"
4160
+ ],
4161
+ JSXOpeningFragment: n[1],
4162
+ JSXSpreadAttribute: n[6],
4163
+ JSXSpreadChild: n[3],
4164
+ JSXText: n[1],
4165
+ KeyofTypeAnnotation: n[6],
4166
+ LabeledStatement: ["label", "body"],
4167
+ Literal: n[1],
4168
+ LogicalExpression: n[5],
4169
+ MatchArrayPattern: ["elements", "rest"],
4170
+ MatchAsPattern: ["pattern", "target"],
4171
+ MatchBindingPattern: n[21],
4172
+ MatchExpression: n[39],
4173
+ MatchExpressionCase: n[40],
4174
+ MatchIdentifierPattern: n[21],
4175
+ MatchLiteralPattern: n[41],
4176
+ MatchMemberPattern: ["base", "property"],
4177
+ MatchObjectPattern: ["properties", "rest"],
4178
+ MatchObjectPatternProperty: ["key", "pattern"],
4179
+ MatchOrPattern: ["patterns"],
4180
+ MatchRestPattern: n[6],
4181
+ MatchStatement: n[39],
4182
+ MatchStatementCase: n[40],
4183
+ MatchUnaryPattern: n[6],
4184
+ MatchWildcardPattern: n[1],
4185
+ MemberExpression: n[38],
4186
+ MetaProperty: ["meta", "property"],
4187
+ MethodDefinition: n[42],
4188
+ MixedTypeAnnotation: n[1],
4189
+ ModuleExpression: n[10],
4190
+ NeverTypeAnnotation: n[1],
4191
+ NewExpression: n[9],
4192
+ NGChainedExpression: n[43],
4193
+ NGEmptyExpression: n[1],
4194
+ NGMicrosyntax: n[10],
4195
+ NGMicrosyntaxAs: ["key", "alias"],
4196
+ NGMicrosyntaxExpression: ["expression", "alias"],
4197
+ NGMicrosyntaxKey: n[1],
4198
+ NGMicrosyntaxKeyedExpression: ["key", "expression"],
4199
+ NGMicrosyntaxLet: n[32],
4200
+ NGPipeExpression: [
4201
+ "left",
4202
+ "right",
4203
+ "arguments"
4204
+ ],
4205
+ NGRoot: n[37],
4206
+ NullableTypeAnnotation: n[23],
4207
+ NullLiteral: n[1],
4208
+ NullLiteralTypeAnnotation: n[1],
4209
+ NumberLiteralTypeAnnotation: n[1],
4210
+ NumberTypeAnnotation: n[1],
4211
+ NumericLiteral: n[1],
4212
+ ObjectExpression: ["properties"],
4213
+ ObjectMethod: n[13],
4214
+ ObjectPattern: [
4215
+ "decorators",
4216
+ "properties",
4217
+ "typeAnnotation"
4218
+ ],
4219
+ ObjectProperty: n[42],
4220
+ ObjectTypeAnnotation: [
4221
+ "properties",
4222
+ "indexers",
4223
+ "callProperties",
4224
+ "internalSlots"
4225
+ ],
4226
+ ObjectTypeCallProperty: n[18],
4227
+ ObjectTypeIndexer: [
4228
+ "variance",
4229
+ "id",
4230
+ "key",
4231
+ "value"
4232
+ ],
4233
+ ObjectTypeInternalSlot: ["id", "value"],
4234
+ ObjectTypeMappedTypeProperty: [
4235
+ "keyTparam",
4236
+ "propType",
4237
+ "sourceType",
4238
+ "variance"
4239
+ ],
4240
+ ObjectTypeProperty: [
4241
+ "key",
4242
+ "value",
4243
+ "variance"
4244
+ ],
4245
+ ObjectTypeSpreadProperty: n[6],
4246
+ OpaqueType: [
4247
+ "id",
4248
+ "typeParameters",
4249
+ "supertype",
4250
+ "impltype",
4251
+ "lowerBound",
4252
+ "upperBound"
4253
+ ],
4254
+ OptionalCallExpression: n[9],
4255
+ OptionalIndexedAccessType: n[34],
4256
+ OptionalMemberExpression: n[38],
4257
+ ParenthesizedExpression: n[3],
4258
+ PipelineBareFunction: ["callee"],
4259
+ PipelinePrimaryTopicReference: n[1],
4260
+ PipelineTopicExpression: n[3],
4261
+ Placeholder: n[1],
4262
+ PrivateIdentifier: n[1],
4263
+ PrivateName: n[21],
4264
+ Program: n[7],
4265
+ Property: n[32],
4266
+ PropertyDefinition: n[14],
4267
+ QualifiedTypeIdentifier: n[44],
4268
+ QualifiedTypeofIdentifier: n[44],
4269
+ RegExpLiteral: n[1],
4270
+ RestElement: [
4271
+ "argument",
4272
+ "typeAnnotation",
4273
+ "decorators"
4274
+ ],
4275
+ ReturnStatement: n[6],
4276
+ SatisfiesExpression: n[4],
4277
+ SequenceExpression: n[43],
4278
+ SpreadElement: n[6],
4279
+ StaticBlock: n[10],
4280
+ StringLiteral: n[1],
4281
+ StringLiteralTypeAnnotation: n[1],
4282
+ StringTypeAnnotation: n[1],
4283
+ Super: n[1],
4284
+ SwitchCase: ["test", "consequent"],
4285
+ SwitchStatement: ["discriminant", "cases"],
4286
+ SymbolTypeAnnotation: n[1],
4287
+ TaggedTemplateExpression: [
4288
+ "tag",
4289
+ "typeArguments",
4290
+ "quasi"
4291
+ ],
4292
+ TemplateElement: n[1],
4293
+ TemplateLiteral: ["quasis", "expressions"],
4294
+ ThisExpression: n[1],
4295
+ ThisTypeAnnotation: n[1],
4296
+ ThrowStatement: n[6],
4297
+ TopicReference: n[1],
4298
+ TryStatement: [
4299
+ "block",
4300
+ "handler",
4301
+ "finalizer"
4302
+ ],
4303
+ TSAbstractAccessorProperty: n[45],
4304
+ TSAbstractKeyword: n[1],
4305
+ TSAbstractMethodDefinition: n[32],
4306
+ TSAbstractPropertyDefinition: n[45],
4307
+ TSAnyKeyword: n[1],
4308
+ TSArrayType: n[2],
4309
+ TSAsExpression: n[4],
4310
+ TSAsyncKeyword: n[1],
4311
+ TSBigIntKeyword: n[1],
4312
+ TSBooleanKeyword: n[1],
4313
+ TSCallSignatureDeclaration: n[46],
4314
+ TSClassImplements: n[47],
4315
+ TSConditionalType: n[17],
4316
+ TSConstructorType: n[46],
4317
+ TSConstructSignatureDeclaration: n[46],
4318
+ TSDeclareFunction: n[31],
4319
+ TSDeclareKeyword: n[1],
4320
+ TSDeclareMethod: [
4321
+ "decorators",
4322
+ "key",
4323
+ "typeParameters",
4324
+ "params",
4325
+ "returnType"
4326
+ ],
4327
+ TSEmptyBodyFunctionExpression: [
4328
+ "id",
4329
+ "typeParameters",
4330
+ "params",
4331
+ "returnType"
4332
+ ],
4333
+ TSEnumBody: n[26],
4334
+ TSEnumDeclaration: n[19],
4335
+ TSEnumMember: ["id", "initializer"],
4336
+ TSExportAssignment: n[3],
4337
+ TSExportKeyword: n[1],
4338
+ TSExternalModuleReference: n[3],
4339
+ TSFunctionType: n[46],
4340
+ TSImportEqualsDeclaration: ["id", "moduleReference"],
4341
+ TSImportType: [
4342
+ "options",
4343
+ "qualifier",
4344
+ "typeArguments",
4345
+ "source"
4346
+ ],
4347
+ TSIndexedAccessType: n[34],
4348
+ TSIndexSignature: ["parameters", "typeAnnotation"],
4349
+ TSInferType: n[35],
4350
+ TSInstantiationExpression: n[47],
4351
+ TSInterfaceBody: n[10],
4352
+ TSInterfaceDeclaration: n[22],
4353
+ TSInterfaceHeritage: n[47],
4354
+ TSIntersectionType: n[36],
4355
+ TSIntrinsicKeyword: n[1],
4356
+ TSJSDocAllType: n[1],
4357
+ TSJSDocNonNullableType: n[23],
4358
+ TSJSDocNullableType: n[23],
4359
+ TSJSDocUnknownType: n[1],
4360
+ TSLiteralType: n[41],
4361
+ TSMappedType: [
4362
+ "key",
4363
+ "constraint",
4364
+ "nameType",
4365
+ "typeAnnotation"
4366
+ ],
4367
+ TSMethodSignature: [
4368
+ "key",
4369
+ "typeParameters",
4370
+ "params",
4371
+ "returnType"
4372
+ ],
4373
+ TSModuleBlock: n[10],
4374
+ TSModuleDeclaration: n[19],
4375
+ TSNamedTupleMember: ["label", "elementType"],
4376
+ TSNamespaceExportDeclaration: n[21],
4377
+ TSNeverKeyword: n[1],
4378
+ TSNonNullExpression: n[3],
4379
+ TSNullKeyword: n[1],
4380
+ TSNumberKeyword: n[1],
4381
+ TSObjectKeyword: n[1],
4382
+ TSOptionalType: n[23],
4383
+ TSParameterProperty: ["parameter", "decorators"],
4384
+ TSParenthesizedType: n[23],
4385
+ TSPrivateKeyword: n[1],
4386
+ TSPropertySignature: ["key", "typeAnnotation"],
4387
+ TSProtectedKeyword: n[1],
4388
+ TSPublicKeyword: n[1],
4389
+ TSQualifiedName: n[5],
4390
+ TSReadonlyKeyword: n[1],
4391
+ TSRestType: n[23],
4392
+ TSSatisfiesExpression: n[4],
4393
+ TSStaticKeyword: n[1],
4394
+ TSStringKeyword: n[1],
4395
+ TSSymbolKeyword: n[1],
4396
+ TSTemplateLiteralType: ["quasis", "types"],
4397
+ TSThisType: n[1],
4398
+ TSTupleType: ["elementTypes"],
4399
+ TSTypeAliasDeclaration: [
4400
+ "id",
4401
+ "typeParameters",
4402
+ "typeAnnotation"
4403
+ ],
4404
+ TSTypeAnnotation: n[23],
4405
+ TSTypeAssertion: n[4],
4406
+ TSTypeLiteral: n[26],
4407
+ TSTypeOperator: n[23],
4408
+ TSTypeParameter: [
4409
+ "name",
4410
+ "constraint",
4411
+ "default"
4412
+ ],
4413
+ TSTypeParameterDeclaration: n[48],
4414
+ TSTypeParameterInstantiation: n[48],
4415
+ TSTypePredicate: n[49],
4416
+ TSTypeQuery: ["exprName", "typeArguments"],
4417
+ TSTypeReference: ["typeName", "typeArguments"],
4418
+ TSUndefinedKeyword: n[1],
4419
+ TSUnionType: n[36],
4420
+ TSUnknownKeyword: n[1],
4421
+ TSVoidKeyword: n[1],
4422
+ TupleTypeAnnotation: ["types", "elementTypes"],
4423
+ TupleTypeLabeledElement: [
4424
+ "label",
4425
+ "elementType",
4426
+ "variance"
4427
+ ],
4428
+ TupleTypeSpreadElement: ["label", "typeAnnotation"],
4429
+ TypeAlias: n[24],
4430
+ TypeAnnotation: n[23],
4431
+ TypeCastExpression: n[4],
4432
+ TypeofTypeAnnotation: ["argument", "typeArguments"],
4433
+ TypeOperator: n[23],
4434
+ TypeParameter: [
4435
+ "bound",
4436
+ "default",
4437
+ "variance"
4438
+ ],
4439
+ TypeParameterDeclaration: n[48],
4440
+ TypeParameterInstantiation: n[48],
4441
+ TypePredicate: n[49],
4442
+ UnaryExpression: n[6],
4443
+ UndefinedTypeAnnotation: n[1],
4444
+ UnionTypeAnnotation: n[36],
4445
+ UnknownTypeAnnotation: n[1],
4446
+ UpdateExpression: n[6],
4447
+ V8IntrinsicIdentifier: n[1],
4448
+ VariableDeclaration: ["declarations"],
4449
+ VariableDeclarator: n[27],
4450
+ Variance: n[1],
4451
+ VoidPattern: n[1],
4452
+ VoidTypeAnnotation: n[1],
4453
+ WhileStatement: n[25],
4454
+ WithStatement: ["object", "body"],
4455
+ YieldExpression: n[6]
4456
+ });
4457
+ function we(e, t) {
4458
+ if (!si(e)) return e;
4459
+ if (Array.isArray(e)) {
4460
+ for (let s = 0; s < e.length; s++) e[s] = we(e[s], t);
4461
+ return e;
4462
+ }
4463
+ if (t.onEnter) {
4464
+ let s = t.onEnter(e) ?? e;
4465
+ if (s !== e) return we(s, t);
4466
+ e = s;
4467
+ }
4468
+ let i = ni(e);
4469
+ for (let s = 0; s < i.length; s++) e[i[s]] = we(e[i[s]], t);
4470
+ return t.onLeave && (e = t.onLeave(e) || e), e;
4471
+ }
4472
+ var oi = we;
4473
+ se([
4474
+ "RegExpLiteral",
4475
+ "BigIntLiteral",
4476
+ "NumericLiteral",
4477
+ "StringLiteral",
4478
+ "DirectiveLiteral",
4479
+ "Literal",
4480
+ "JSXText",
4481
+ "TemplateElement",
4482
+ "StringLiteralTypeAnnotation",
4483
+ "NumberLiteralTypeAnnotation",
4484
+ "BigIntLiteralTypeAnnotation"
4485
+ ]);
4486
+ function Gs(e, t) {
4487
+ let { parser: i, text: s } = t, { comments: r } = e, o = i === "oxc" && t.oxcAstType === "ts";
4488
+ ii(r);
4489
+ let u = e.type === "File" ? e.program : e;
4490
+ u.interpreter && (r.unshift(u.interpreter), delete u.interpreter), o && e.hashbang && (r.unshift(e.hashbang), delete e.hashbang), e.type === "Program" && (e.range = [0, s.length]);
4491
+ let p;
4492
+ return e = oi(e, {
4493
+ onEnter(h) {
4494
+ switch (h.type) {
4495
+ case "ParenthesizedExpression": {
4496
+ let { expression: l } = h, m = M(h);
4497
+ if (l.type === "TypeCastExpression") return l.range = [m, R(h)], l;
4498
+ let S = !1;
4499
+ if (!o) {
4500
+ if (!p) {
4501
+ p = [];
4502
+ for (let c of r) ti(c) && p.push(R(c));
4503
+ }
4504
+ let E = Zt(0, p, (c) => c <= m);
4505
+ S = E && s.slice(E, m).trim().length === 0;
4506
+ }
4507
+ return S ? void 0 : (l.extra = {
4508
+ ...l.extra,
4509
+ parenthesized: !0
4510
+ }, l);
4511
+ }
4512
+ case "TemplateLiteral":
4513
+ if (h.expressions.length !== h.quasis.length - 1) throw new Error("Malformed template literal.");
4514
+ break;
4515
+ case "TemplateElement":
4516
+ if (i === "flow" || i === "hermes" || i === "espree" || i === "typescript" || o) h.range = [M(h) + 1, R(h) - (h.tail ? 1 : 2)];
4517
+ break;
4518
+ case "VariableDeclaration": {
4519
+ let l = ie(0, h.declarations, -1);
4520
+ l?.init && s[R(l)] !== ";" && (h.range = [M(h), R(l)]);
4521
+ break;
4522
+ }
4523
+ case "TSParenthesizedType": return h.typeAnnotation;
4524
+ case "TopicReference":
4525
+ e.extra = {
4526
+ ...e.extra,
4527
+ __isUsingHackPipeline: !0
4528
+ };
4529
+ break;
4530
+ case "TSUnionType":
4531
+ case "TSIntersectionType":
4532
+ if (h.types.length === 1) return h.types[0];
4533
+ break;
4534
+ case "ImportExpression":
4535
+ i === "hermes" && h.attributes && !h.options && (h.options = h.attributes);
4536
+ break;
4537
+ }
4538
+ },
4539
+ onLeave(h) {
4540
+ switch (h.type) {
4541
+ case "LogicalExpression":
4542
+ if (ui(h)) return st(h);
4543
+ break;
4544
+ case "TSImportType":
4545
+ !h.source && h.argument.type === "TSLiteralType" && (h.source = h.argument.literal, delete h.argument);
4546
+ break;
4547
+ }
4548
+ }
4549
+ }), e;
4550
+ }
4551
+ function ui(e) {
4552
+ return e.type === "LogicalExpression" && e.right.type === "LogicalExpression" && e.operator === e.right.operator;
4553
+ }
4554
+ function st(e) {
4555
+ return ui(e) ? st({
4556
+ type: "LogicalExpression",
4557
+ operator: e.operator,
4558
+ left: st({
4559
+ type: "LogicalExpression",
4560
+ operator: e.operator,
4561
+ left: e.left,
4562
+ right: e.right.left,
4563
+ range: [M(e.left), R(e.right.left)]
4564
+ }),
4565
+ right: e.right.right,
4566
+ range: [M(e), R(e)]
4567
+ }) : e;
4568
+ }
4569
+ var Pe = Gs;
4570
+ var qs = String.prototype.replaceAll ?? function(e, t) {
4571
+ return e.global ? this.replace(e, t) : this.split(e).join(t);
4572
+ }, fe = te("replaceAll", function() {
4573
+ if (typeof this == "string") return qs;
4574
+ });
4575
+ var Ks = /\*\/$/, Hs = /^\/\*\*?/, Xs = /^\s*(\/\*\*?(.|\r?\n)*?\*\/)/, Ws = /(^|\s+)\/\/([^\n\r]*)/g, hi = /^(\r?\n)+/, zs = /(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g, pi = /(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g, Qs = /(\r?\n|^) *\* ?/g, Ys = [];
4576
+ function ci(e) {
4577
+ let t = e.match(Xs);
4578
+ return t ? t[0].trimStart() : "";
4579
+ }
4580
+ function li(e) {
4581
+ e = fe(0, e.replace(Hs, "").replace(Ks, ""), Qs, "$1");
4582
+ let i = "";
4583
+ for (; i !== e;) i = e, e = fe(0, e, zs, `
4584
+ $1 $2
4585
+ `);
4586
+ e = e.replace(hi, "").trimEnd();
4587
+ let s = Object.create(null), r = fe(0, e, pi, "").replace(hi, "").trimEnd(), o;
4588
+ for (; o = pi.exec(e);) {
4589
+ let u = fe(0, o[2], Ws, "");
4590
+ if (typeof s[o[1]] == "string" || Array.isArray(s[o[1]])) {
4591
+ let p = s[o[1]];
4592
+ s[o[1]] = [
4593
+ ...Ys,
4594
+ ...Array.isArray(p) ? p : [p],
4595
+ u
4596
+ ];
4597
+ } else s[o[1]] = u;
4598
+ }
4599
+ return {
4600
+ comments: r,
4601
+ pragmas: s
4602
+ };
4603
+ }
4604
+ var fi = ["noformat", "noprettier"], di = ["format", "prettier"];
4605
+ function $s(e) {
4606
+ if (!e.startsWith("#!")) return "";
4607
+ let t = e.indexOf(`
4608
+ `);
4609
+ return t === -1 ? e : e.slice(0, t);
4610
+ }
4611
+ var mi = $s;
4612
+ function xi(e) {
4613
+ let t = mi(e);
4614
+ t && (e = e.slice(t.length + 1));
4615
+ let { pragmas: s, comments: r } = li(ci(e));
4616
+ return {
4617
+ shebang: t,
4618
+ text: e,
4619
+ pragmas: s,
4620
+ comments: r
4621
+ };
4622
+ }
4623
+ function yi(e) {
4624
+ let { pragmas: t } = xi(e);
4625
+ return di.some((i) => Object.prototype.hasOwnProperty.call(t, i));
4626
+ }
4627
+ function gi(e) {
4628
+ let { pragmas: t } = xi(e);
4629
+ return fi.some((i) => Object.prototype.hasOwnProperty.call(t, i));
4630
+ }
4631
+ function Zs(e) {
4632
+ return e = typeof e == "function" ? { parse: e } : e, {
4633
+ astFormat: "estree",
4634
+ hasPragma: yi,
4635
+ hasIgnorePragma: gi,
4636
+ locStart: M,
4637
+ locEnd: R,
4638
+ ...e
4639
+ };
4640
+ }
4641
+ var Ie = Zs;
4642
+ var Ne = "module", vi = "script", Le = "commonjs", Re = [Ne, Le];
4643
+ function Ve(e) {
4644
+ if (typeof e == "string") {
4645
+ if (e = e.toLowerCase(), /\.(?:mjs|mts)$/iu.test(e)) return Ne;
4646
+ if (/\.(?:cjs|cts)$/iu.test(e)) return Le;
4647
+ }
4648
+ }
4649
+ var er = {
4650
+ ecmaVersion: "latest",
4651
+ allowReserved: !0,
4652
+ allowReturnOutsideFunction: !0,
4653
+ allowSuperOutsideMethod: !0,
4654
+ checkPrivateFields: !1,
4655
+ locations: !1,
4656
+ ranges: !0,
4657
+ preserveParens: !0
4658
+ };
4659
+ function tr(e) {
4660
+ let { message: t, loc: i } = e;
4661
+ if (!i) return e;
4662
+ let { line: s, column: r } = i;
4663
+ return Ae(t.replace(/ \(\d+:\d+\)$/u, ""), {
4664
+ loc: { start: {
4665
+ line: s,
4666
+ column: r + 1
4667
+ } },
4668
+ cause: e
4669
+ });
4670
+ }
4671
+ var bi, ir = () => (bi ?? (bi = A.extend((0, Si.default)())), bi);
4672
+ function sr(e, t) {
4673
+ let i = ir(), s = [], r = i.parse(e, {
4674
+ ...er,
4675
+ sourceType: t === Le ? vi : t,
4676
+ allowImportExportEverywhere: t === Ne,
4677
+ onComment: s
4678
+ });
4679
+ return r.comments = s, r;
4680
+ }
4681
+ function rr(e, t) {
4682
+ let i = Ve(t?.filepath), s = (i ? [i] : Re).map((o) => () => sr(e, o)), r;
4683
+ try {
4684
+ r = ke(s);
4685
+ } catch ({ errors: [o] }) {
4686
+ throw tr(o);
4687
+ }
4688
+ return Pe(r, { text: e });
4689
+ }
4690
+ var _i = Ie(rr);
4691
+ var Ai = ut($e(), 1);
4692
+ var P = {
4693
+ Boolean: "Boolean",
4694
+ EOF: "<end>",
4695
+ Identifier: "Identifier",
4696
+ PrivateIdentifier: "PrivateIdentifier",
4697
+ Keyword: "Keyword",
4698
+ Null: "Null",
4699
+ Numeric: "Numeric",
4700
+ Punctuator: "Punctuator",
4701
+ String: "String",
4702
+ RegularExpression: "RegularExpression",
4703
+ Template: "Template",
4704
+ JSXIdentifier: "JSXIdentifier",
4705
+ JSXText: "JSXText"
4706
+ };
4707
+ function ar(e, t) {
4708
+ let i = e[0], s = ie(0, e, -1), r = {
4709
+ type: P.Template,
4710
+ value: t.slice(i.start, s.end)
4711
+ };
4712
+ return i.loc && (r.loc = {
4713
+ start: i.loc.start,
4714
+ end: s.loc.end
4715
+ }), i.range && (r.start = i.range[0], r.end = s.range[1], r.range = [r.start, r.end]), r;
4716
+ }
4717
+ function rt(e, t) {
4718
+ this._acornTokTypes = e, this._tokens = [], this._curlyBrace = null, this._code = t;
4719
+ }
4720
+ rt.prototype = {
4721
+ constructor: rt,
4722
+ translate(e, t) {
4723
+ let i = e.type, s = this._acornTokTypes;
4724
+ if (i === s.name) e.type = P.Identifier, e.value === "static" && (e.type = P.Keyword), t.ecmaVersion > 5 && (e.value === "yield" || e.value === "let") && (e.type = P.Keyword);
4725
+ else if (i === s.privateId) e.type = P.PrivateIdentifier;
4726
+ 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 = P.Punctuator, e.value = this._code.slice(e.start, e.end);
4727
+ else if (i === s.jsxName) e.type = P.JSXIdentifier;
4728
+ else if (i.label === "jsxText" || i === s.jsxAttrValueToken) e.type = P.JSXText;
4729
+ else if (i.keyword) i.keyword === "true" || i.keyword === "false" ? e.type = P.Boolean : i.keyword === "null" ? e.type = P.Null : e.type = P.Keyword;
4730
+ else if (i === s.num) e.type = P.Numeric, e.value = this._code.slice(e.start, e.end);
4731
+ else if (i === s.string) t.jsxAttrValueToken ? (t.jsxAttrValueToken = !1, e.type = P.JSXText) : e.type = P.String, e.value = this._code.slice(e.start, e.end);
4732
+ else if (i === s.regexp) {
4733
+ e.type = P.RegularExpression;
4734
+ let r = e.value;
4735
+ e.regex = {
4736
+ flags: r.flags,
4737
+ pattern: r.pattern
4738
+ }, e.value = `/${r.pattern}/${r.flags}`;
4739
+ }
4740
+ return e;
4741
+ },
4742
+ onToken(e, t) {
4743
+ let i = this._acornTokTypes, s = t.tokens, r = this._tokens, o = () => {
4744
+ s.push(ar(this._tokens, this._code)), this._tokens = [];
4745
+ };
4746
+ if (e.type === i.eof) {
4747
+ this._curlyBrace && s.push(this.translate(this._curlyBrace, t));
4748
+ return;
4749
+ }
4750
+ if (e.type === i.backQuote) {
4751
+ this._curlyBrace && (s.push(this.translate(this._curlyBrace, t)), this._curlyBrace = null), r.push(e), r.length > 1 && o();
4752
+ return;
4753
+ }
4754
+ if (e.type === i.dollarBraceL) {
4755
+ r.push(e), o();
4756
+ return;
4757
+ }
4758
+ if (e.type === i.braceR) {
4759
+ this._curlyBrace && s.push(this.translate(this._curlyBrace, t)), this._curlyBrace = e;
4760
+ return;
4761
+ }
4762
+ if (e.type === i.template || e.type === i.invalidTemplate) {
4763
+ this._curlyBrace && (r.push(this._curlyBrace), this._curlyBrace = null), r.push(e);
4764
+ return;
4765
+ }
4766
+ this._curlyBrace && (s.push(this.translate(this._curlyBrace, t)), this._curlyBrace = null), s.push(this.translate(e, t));
4767
+ }
4768
+ };
4769
+ var Ci = rt;
4770
+ var Ti = [
4771
+ 3,
4772
+ 5,
4773
+ 6,
4774
+ 7,
4775
+ 8,
4776
+ 9,
4777
+ 10,
4778
+ 11,
4779
+ 12,
4780
+ 13,
4781
+ 14,
4782
+ 15,
4783
+ 16,
4784
+ 17
4785
+ ];
4786
+ function nr() {
4787
+ return ie(0, Ti, -1);
4788
+ }
4789
+ function or(e = 5) {
4790
+ let t = e === "latest" ? nr() : e;
4791
+ if (typeof t != "number") throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);
4792
+ if (t >= 2015 && (t -= 2009), !Ti.includes(t)) throw new Error("Invalid ecmaVersion.");
4793
+ return t;
4794
+ }
4795
+ function ur(e = "script") {
4796
+ if (e === "script" || e === "module") return e;
4797
+ if (e === "commonjs") return "script";
4798
+ throw new Error("Invalid sourceType.");
4799
+ }
4800
+ function Ei(e) {
4801
+ let t = or(e.ecmaVersion), i = ur(e.sourceType), s = e.range === !0, r = e.loc === !0;
4802
+ if (t !== 3 && e.allowReserved) throw new Error("`allowReserved` is only supported when ecmaVersion is 3");
4803
+ if (typeof e.allowReserved < "u" && typeof e.allowReserved != "boolean") throw new Error("`allowReserved`, when present, must be `true` or `false`");
4804
+ let o = t === 3 ? e.allowReserved || "never" : !1, u = e.ecmaFeatures || {}, p = e.sourceType === "commonjs" || !!u.globalReturn;
4805
+ if (i === "module" && t < 6) throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");
4806
+ return Object.assign({}, e, {
4807
+ ecmaVersion: t,
4808
+ sourceType: i,
4809
+ ranges: s,
4810
+ locations: r,
4811
+ allowReserved: o,
4812
+ allowReturnOutsideFunction: p
4813
+ });
4814
+ }
4815
+ var Q = Symbol("espree's internal state"), at = Symbol("espree's esprimaFinishNode");
4816
+ function hr(e, t, i, s, r, o, u) {
4817
+ let p;
4818
+ e ? p = "Block" : u.slice(i, i + 2) === "#!" ? p = "Hashbang" : p = "Line";
4819
+ let h = {
4820
+ type: p,
4821
+ value: t
4822
+ };
4823
+ return typeof i == "number" && (h.start = i, h.end = s, h.range = [i, s]), typeof r == "object" && (h.loc = {
4824
+ start: r,
4825
+ end: o
4826
+ }), h;
4827
+ }
4828
+ var nt = () => (e) => {
4829
+ let t = Object.assign({}, e.acorn.tokTypes);
4830
+ return e.acornJsx && Object.assign(t, e.acornJsx.tokTypes), class extends e {
4831
+ constructor(s, r) {
4832
+ (typeof s != "object" || s === null) && (s = {}), typeof r != "string" && !(r instanceof String) && (r = String(r));
4833
+ let o = s.sourceType, u = Ei(s), p = u.ecmaFeatures || {}, h = u.tokens === !0 ? new Ci(t, r) : null, l = {
4834
+ originalSourceType: o || u.sourceType,
4835
+ tokens: h ? [] : null,
4836
+ comments: u.comment === !0 ? [] : null,
4837
+ impliedStrict: p.impliedStrict === !0 && u.ecmaVersion >= 5,
4838
+ ecmaVersion: u.ecmaVersion,
4839
+ jsxAttrValueToken: !1,
4840
+ lastToken: null,
4841
+ templateElements: []
4842
+ };
4843
+ super({
4844
+ ecmaVersion: u.ecmaVersion,
4845
+ sourceType: u.sourceType,
4846
+ ranges: u.ranges,
4847
+ locations: u.locations,
4848
+ allowReserved: u.allowReserved,
4849
+ allowReturnOutsideFunction: u.allowReturnOutsideFunction,
4850
+ onToken(m) {
4851
+ h && h.onToken(m, l), m.type !== t.eof && (l.lastToken = m);
4852
+ },
4853
+ onComment(m, S, E, c, x, y) {
4854
+ if (l.comments) {
4855
+ let v = hr(m, S, E, c, x, y, r);
4856
+ l.comments.push(v);
4857
+ }
4858
+ }
4859
+ }, r), this[Q] = l;
4860
+ }
4861
+ tokenize() {
4862
+ do
4863
+ this.next();
4864
+ while (this.type !== t.eof);
4865
+ this.next();
4866
+ let s = this[Q], r = s.tokens;
4867
+ return s.comments && (r.comments = s.comments), r;
4868
+ }
4869
+ finishNode(...s) {
4870
+ let r = super.finishNode(...s);
4871
+ return this[at](r);
4872
+ }
4873
+ finishNodeAt(...s) {
4874
+ let r = super.finishNodeAt(...s);
4875
+ return this[at](r);
4876
+ }
4877
+ parse() {
4878
+ let s = this[Q], r = super.parse();
4879
+ return r.sourceType = s.originalSourceType, s.comments && (r.comments = s.comments), s.tokens && (r.tokens = s.tokens), this[Q].templateElements.forEach((o) => {
4880
+ let p = o.tail ? 1 : 2;
4881
+ o.start += -1, o.end += p, o.range && (o.range[0] += -1, o.range[1] += p), o.loc && (o.loc.start.column += -1, o.loc.end.column += p);
4882
+ }), r;
4883
+ }
4884
+ parseTopLevel(s) {
4885
+ return this[Q].impliedStrict && (this.strict = !0), super.parseTopLevel(s);
4886
+ }
4887
+ raise(s, r) {
4888
+ let o = e.acorn.getLineInfo(this.input, s), u = new SyntaxError(r);
4889
+ throw u.index = s, u.lineNumber = o.line, u.column = o.column + 1, u;
4890
+ }
4891
+ raiseRecoverable(s, r) {
4892
+ this.raise(s, r);
4893
+ }
4894
+ unexpected(s) {
4895
+ let r = "Unexpected token";
4896
+ if (s != null) {
4897
+ if (this.pos = s, this.options.locations) for (; this.pos < this.lineStart;) this.lineStart = this.input.lastIndexOf(`
4898
+ `, this.lineStart - 2) + 1, --this.curLine;
4899
+ this.nextToken();
4900
+ }
4901
+ this.end > this.start && (r += ` ${this.input.slice(this.start, this.end)}`), this.raise(this.start, r);
4902
+ }
4903
+ jsx_readString(s) {
4904
+ let r = super.jsx_readString(s);
4905
+ return this.type === t.string && (this[Q].jsxAttrValueToken = !0), r;
4906
+ }
4907
+ [at](s) {
4908
+ return s.type === "TemplateElement" && this[Q].templateElements.push(s), s.type.includes("Function") && !s.generator && (s.generator = !1), s;
4909
+ }
4910
+ };
4911
+ };
4912
+ var pr = {
4913
+ _regular: null,
4914
+ _jsx: null,
4915
+ get regular() {
4916
+ return this._regular === null && (this._regular = A.extend(nt())), this._regular;
4917
+ },
4918
+ get jsx() {
4919
+ return this._jsx === null && (this._jsx = A.extend((0, Ai.default)(), nt())), this._jsx;
4920
+ },
4921
+ get(e) {
4922
+ return !!(e && e.ecmaFeatures && e.ecmaFeatures.jsx) ? this.jsx : this.regular;
4923
+ }
4924
+ };
4925
+ function ki(e, t) {
4926
+ return new (pr.get(t))(t, e).parse();
4927
+ }
4928
+ var cr = {
4929
+ ecmaVersion: "latest",
4930
+ range: !0,
4931
+ loc: !1,
4932
+ comment: !0,
4933
+ tokens: !1,
4934
+ ecmaFeatures: {
4935
+ jsx: !0,
4936
+ impliedStrict: !1
4937
+ }
4938
+ };
4939
+ function lr(e) {
4940
+ let { message: t, lineNumber: i, column: s } = e;
4941
+ return typeof i != "number" ? e : Ae(t, {
4942
+ loc: { start: {
4943
+ line: i,
4944
+ column: s
4945
+ } },
4946
+ cause: e
4947
+ });
4948
+ }
4949
+ function fr(e, t) {
4950
+ let i = Ve(t?.filepath), s = (i ? [i] : Re).map((o) => () => ki(e, {
4951
+ ...cr,
4952
+ sourceType: o
4953
+ })), r;
4954
+ try {
4955
+ r = ke(s);
4956
+ } catch ({ errors: [o] }) {
4957
+ throw lr(o);
4958
+ }
4959
+ return Pe(r, {
4960
+ parser: "espree",
4961
+ text: e
4962
+ });
4963
+ }
4964
+ var dr = {
4965
+ acorn: _i,
4966
+ espree: Ie(fr)
4967
+ };
4968
+
4969
+ //#endregion
4970
+ exports.default = Pi;
4971
+ exports.parsers = dr;