@cloud-cli/on 1.7.10 → 1.8.1

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.
package/dist/on.js CHANGED
@@ -3285,7 +3285,7 @@ function Ur(e) {
3285
3285
  }
3286
3286
  //#endregion
3287
3287
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/lexer.js
3288
- function Wr(e) {
3288
+ function P(e) {
3289
3289
  switch (e) {
3290
3290
  case void 0:
3291
3291
  case " ":
@@ -3295,7 +3295,7 @@ function Wr(e) {
3295
3295
  default: return !1;
3296
3296
  }
3297
3297
  }
3298
- var Gr = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), Kr = /* @__PURE__ */ new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), qr = /* @__PURE__ */ new Set(",[]{}"), Jr = /* @__PURE__ */ new Set(" ,[]{}\n\r "), Yr = (e) => !e || Jr.has(e), Xr = class {
3298
+ var Wr = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), Gr = /* @__PURE__ */ new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"), Kr = /* @__PURE__ */ new Set(",[]{}"), qr = /* @__PURE__ */ new Set(" ,[]{}\n\r "), Jr = (e) => !e || qr.has(e), Yr = class {
3299
3299
  constructor() {
3300
3300
  this.atEnd = !1, this.blockScalarIndent = -1, this.blockScalarKeep = !1, this.buffer = "", this.flowKey = !1, this.flowLevel = 0, this.indentNext = 0, this.indentValue = 0, this.lineEndPos = null, this.next = null, this.pos = 0;
3301
3301
  }
@@ -3329,7 +3329,7 @@ var Gr = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), Kr = /* @__PURE__ */
3329
3329
  }
3330
3330
  if (t === "-" || t === ".") {
3331
3331
  let t = this.buffer.substr(e, 3);
3332
- if ((t === "---" || t === "...") && Wr(this.buffer[e + 3])) return -1;
3332
+ if ((t === "---" || t === "...") && P(this.buffer[e + 3])) return -1;
3333
3333
  }
3334
3334
  return e;
3335
3335
  }
@@ -3391,14 +3391,14 @@ var Gr = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), Kr = /* @__PURE__ */
3391
3391
  if (e === "-" || e === ".") {
3392
3392
  if (!this.atEnd && !this.hasChars(4)) return this.setNext("line-start");
3393
3393
  let e = this.peek(3);
3394
- if ((e === "---" || e === "...") && Wr(this.charAt(3))) return yield* this.pushCount(3), this.indentValue = 0, this.indentNext = 0, e === "---" ? "doc" : "stream";
3394
+ if ((e === "---" || e === "...") && P(this.charAt(3))) return yield* this.pushCount(3), this.indentValue = 0, this.indentNext = 0, e === "---" ? "doc" : "stream";
3395
3395
  }
3396
- return this.indentValue = yield* this.pushSpaces(!1), this.indentNext > this.indentValue && !Wr(this.charAt(1)) && (this.indentNext = this.indentValue), yield* this.parseBlockStart();
3396
+ return this.indentValue = yield* this.pushSpaces(!1), this.indentNext > this.indentValue && !P(this.charAt(1)) && (this.indentNext = this.indentValue), yield* this.parseBlockStart();
3397
3397
  }
3398
3398
  *parseBlockStart() {
3399
3399
  let [e, t] = this.peek(2);
3400
3400
  if (!t && !this.atEnd) return this.setNext("block-start");
3401
- if ((e === "-" || e === "?" || e === ":") && Wr(t)) {
3401
+ if ((e === "-" || e === "?" || e === ":") && P(t)) {
3402
3402
  let e = (yield* this.pushCount(1)) + (yield* this.pushSpaces(!0));
3403
3403
  return this.indentNext = this.indentValue + 1, this.indentValue += e, "block-start";
3404
3404
  }
@@ -3416,7 +3416,7 @@ var Gr = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), Kr = /* @__PURE__ */
3416
3416
  case "[": return yield* this.pushCount(1), this.flowKey = !1, this.flowLevel = 1, "flow";
3417
3417
  case "}":
3418
3418
  case "]": return yield* this.pushCount(1), "doc";
3419
- case "*": return yield* this.pushUntil(Yr), "doc";
3419
+ case "*": return yield* this.pushUntil(Jr), "doc";
3420
3420
  case "\"":
3421
3421
  case "'": return yield* this.parseQuotedScalar();
3422
3422
  case "|":
@@ -3431,7 +3431,7 @@ var Gr = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), Kr = /* @__PURE__ */
3431
3431
  while (e + t > 0);
3432
3432
  let r = this.getLine();
3433
3433
  if (r === null) return this.setNext("flow");
3434
- if ((n !== -1 && n < this.indentNext && r[0] !== "#" || n === 0 && (r.startsWith("---") || r.startsWith("...")) && Wr(r[3])) && (n !== this.indentNext - 1 || this.flowLevel !== 1 || r[0] !== "]" && r[0] !== "}")) return this.flowLevel = 0, yield "", yield* this.parseLineStart();
3434
+ if ((n !== -1 && n < this.indentNext && r[0] !== "#" || n === 0 && (r.startsWith("---") || r.startsWith("...")) && P(r[3])) && (n !== this.indentNext - 1 || this.flowLevel !== 1 || r[0] !== "]" && r[0] !== "}")) return this.flowLevel = 0, yield "", yield* this.parseLineStart();
3435
3435
  let i = 0;
3436
3436
  for (; r[i] === ",";) i += yield* this.pushCount(1), i += yield* this.pushSpaces(!0), this.flowKey = !1;
3437
3437
  switch (i += yield* this.pushIndicators(), r[i]) {
@@ -3441,12 +3441,12 @@ var Gr = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), Kr = /* @__PURE__ */
3441
3441
  case "[": return yield* this.pushCount(1), this.flowKey = !1, this.flowLevel += 1, "flow";
3442
3442
  case "}":
3443
3443
  case "]": return yield* this.pushCount(1), this.flowKey = !0, --this.flowLevel, this.flowLevel ? "flow" : "doc";
3444
- case "*": return yield* this.pushUntil(Yr), "flow";
3444
+ case "*": return yield* this.pushUntil(Jr), "flow";
3445
3445
  case "\"":
3446
3446
  case "'": return this.flowKey = !0, yield* this.parseQuotedScalar();
3447
3447
  case ":": {
3448
3448
  let e = this.charAt(1);
3449
- if (this.flowKey || Wr(e) || e === ",") return this.flowKey = !1, yield* this.pushCount(1), yield* this.pushSpaces(!0), "flow";
3449
+ if (this.flowKey || P(e) || e === ",") return this.flowKey = !1, yield* this.pushCount(1), yield* this.pushSpaces(!0), "flow";
3450
3450
  }
3451
3451
  default: return this.flowKey = !1, yield* this.parsePlainScalar();
3452
3452
  }
@@ -3484,7 +3484,7 @@ var Gr = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), Kr = /* @__PURE__ */
3484
3484
  else if (t > "0" && t <= "9") this.blockScalarIndent = Number(t) - 1;
3485
3485
  else if (t !== "-") break;
3486
3486
  }
3487
- return yield* this.pushUntil((e) => Wr(e) || e === "#");
3487
+ return yield* this.pushUntil((e) => P(e) || e === "#");
3488
3488
  }
3489
3489
  *parseBlockScalar() {
3490
3490
  let e = this.pos - 1, t = 0, n;
@@ -3534,18 +3534,18 @@ var Gr = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), Kr = /* @__PURE__ */
3534
3534
  let e = this.flowLevel > 0, t = this.pos - 1, n = this.pos - 1, r;
3535
3535
  for (; r = this.buffer[++n];) if (r === ":") {
3536
3536
  let r = this.buffer[n + 1];
3537
- if (Wr(r) || e && qr.has(r)) break;
3537
+ if (P(r) || e && Kr.has(r)) break;
3538
3538
  t = n;
3539
- } else if (Wr(r)) {
3539
+ } else if (P(r)) {
3540
3540
  let i = this.buffer[n + 1];
3541
- if (r === "\r" && (i === "\n" ? (n += 1, r = "\n", i = this.buffer[n + 1]) : t = n), i === "#" || e && qr.has(i)) break;
3541
+ if (r === "\r" && (i === "\n" ? (n += 1, r = "\n", i = this.buffer[n + 1]) : t = n), i === "#" || e && Kr.has(i)) break;
3542
3542
  if (r === "\n") {
3543
3543
  let e = this.continueScalar(n + 1);
3544
3544
  if (e === -1) break;
3545
3545
  n = Math.max(n, e - 2);
3546
3546
  }
3547
3547
  } else {
3548
- if (e && qr.has(r)) break;
3548
+ if (e && Kr.has(r)) break;
3549
3549
  t = n;
3550
3550
  }
3551
3551
  return !r && !this.atEnd ? this.setNext("plain-scalar") : (yield "", yield* this.pushToIndex(t + 1, !0), e ? "flow" : "doc");
@@ -3565,13 +3565,13 @@ var Gr = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), Kr = /* @__PURE__ */
3565
3565
  e += yield* this.pushTag(), e += yield* this.pushSpaces(!0);
3566
3566
  continue loop;
3567
3567
  case "&":
3568
- e += yield* this.pushUntil(Yr), e += yield* this.pushSpaces(!0);
3568
+ e += yield* this.pushUntil(Jr), e += yield* this.pushSpaces(!0);
3569
3569
  continue loop;
3570
3570
  case "-":
3571
3571
  case "?":
3572
3572
  case ":": {
3573
3573
  let t = this.flowLevel > 0, n = this.charAt(1);
3574
- if (Wr(n) || t && qr.has(n)) {
3574
+ if (P(n) || t && Kr.has(n)) {
3575
3575
  t ? this.flowKey &&= !1 : this.indentNext = this.indentValue + 1, e += yield* this.pushCount(1), e += yield* this.pushSpaces(!0);
3576
3576
  continue loop;
3577
3577
  }
@@ -3584,13 +3584,13 @@ var Gr = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), Kr = /* @__PURE__ */
3584
3584
  *pushTag() {
3585
3585
  if (this.charAt(1) === "<") {
3586
3586
  let e = this.pos + 2, t = this.buffer[e];
3587
- for (; !Wr(t) && t !== ">";) t = this.buffer[++e];
3587
+ for (; !P(t) && t !== ">";) t = this.buffer[++e];
3588
3588
  return yield* this.pushToIndex(t === ">" ? e + 1 : e, !1);
3589
3589
  }
3590
3590
  {
3591
3591
  let e = this.pos + 1, t = this.buffer[e];
3592
- for (; t;) if (Kr.has(t)) t = this.buffer[++e];
3593
- else if (t === "%" && Gr.has(this.buffer[e + 1]) && Gr.has(this.buffer[e + 2])) t = this.buffer[e += 3];
3592
+ for (; t;) if (Gr.has(t)) t = this.buffer[++e];
3593
+ else if (t === "%" && Wr.has(this.buffer[e + 1]) && Wr.has(this.buffer[e + 2])) t = this.buffer[e += 3];
3594
3594
  else break;
3595
3595
  return yield* this.pushToIndex(e, !1);
3596
3596
  }
@@ -3612,7 +3612,7 @@ var Gr = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), Kr = /* @__PURE__ */
3612
3612
  for (; !e(n);) n = this.buffer[++t];
3613
3613
  return yield* this.pushToIndex(t, !1);
3614
3614
  }
3615
- }, Zr = class {
3615
+ }, Xr = class {
3616
3616
  constructor() {
3617
3617
  this.lineStarts = [], this.addNewLine = (e) => this.lineStarts.push(e), this.linePos = (e) => {
3618
3618
  let t = 0, n = this.lineStarts.length;
@@ -3638,11 +3638,11 @@ var Gr = /* @__PURE__ */ new Set("0123456789ABCDEFabcdef"), Kr = /* @__PURE__ */
3638
3638
  };
3639
3639
  //#endregion
3640
3640
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/parser.js
3641
- function Qr(e, t) {
3641
+ function Zr(e, t) {
3642
3642
  for (let n = 0; n < e.length; ++n) if (e[n].type === t) return !0;
3643
3643
  return !1;
3644
3644
  }
3645
- function $r(e) {
3645
+ function Qr(e) {
3646
3646
  for (let t = 0; t < e.length; ++t) switch (e[t].type) {
3647
3647
  case "space":
3648
3648
  case "comment":
@@ -3651,7 +3651,7 @@ function $r(e) {
3651
3651
  }
3652
3652
  return -1;
3653
3653
  }
3654
- function ei(e) {
3654
+ function $r(e) {
3655
3655
  switch (e?.type) {
3656
3656
  case "alias":
3657
3657
  case "scalar":
@@ -3661,7 +3661,7 @@ function ei(e) {
3661
3661
  default: return !1;
3662
3662
  }
3663
3663
  }
3664
- function ti(e) {
3664
+ function ei(e) {
3665
3665
  switch (e.type) {
3666
3666
  case "document": return e.start;
3667
3667
  case "block-map": {
@@ -3673,7 +3673,7 @@ function ti(e) {
3673
3673
  default: return [];
3674
3674
  }
3675
3675
  }
3676
- function ni(e) {
3676
+ function ti(e) {
3677
3677
  if (e.length === 0) return [];
3678
3678
  let t = e.length;
3679
3679
  loop: for (; --t >= 0;) switch (e[t].type) {
@@ -3686,16 +3686,16 @@ function ni(e) {
3686
3686
  for (; e[++t]?.type === "space";);
3687
3687
  return e.splice(t, e.length);
3688
3688
  }
3689
- function ri(e, t) {
3689
+ function ni(e, t) {
3690
3690
  if (t.length < 1e5) Array.prototype.push.apply(e, t);
3691
3691
  else for (let n = 0; n < t.length; ++n) e.push(t[n]);
3692
3692
  }
3693
- function ii(e) {
3694
- if (e.start.type === "flow-seq-start") for (let t of e.items) t.sep && !t.value && !Qr(t.start, "explicit-key-ind") && !Qr(t.sep, "map-value-ind") && (t.key && (t.value = t.key), delete t.key, ei(t.value) ? t.value.end ? ri(t.value.end, t.sep) : t.value.end = t.sep : ri(t.start, t.sep), delete t.sep);
3693
+ function ri(e) {
3694
+ if (e.start.type === "flow-seq-start") for (let t of e.items) t.sep && !t.value && !Zr(t.start, "explicit-key-ind") && !Zr(t.sep, "map-value-ind") && (t.key && (t.value = t.key), delete t.key, $r(t.value) ? t.value.end ? ni(t.value.end, t.sep) : t.value.end = t.sep : ni(t.start, t.sep), delete t.sep);
3695
3695
  }
3696
- var ai = class {
3696
+ var ii = class {
3697
3697
  constructor(e) {
3698
- this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Xr(), this.onNewLine = e;
3698
+ this.atNewLine = !0, this.atScalar = !1, this.indent = 0, this.offset = 0, this.onKeyLine = !1, this.stack = [], this.source = "", this.type = "", this.lexer = new Yr(), this.onNewLine = e;
3699
3699
  }
3700
3700
  *parse(e, t = !1) {
3701
3701
  this.onNewLine && this.offset === 0 && this.onNewLine(0);
@@ -3790,7 +3790,7 @@ var ai = class {
3790
3790
  else if (this.stack.length === 0) yield t;
3791
3791
  else {
3792
3792
  let e = this.peek(1);
3793
- switch (t.type === "block-scalar" ? t.indent = "indent" in e ? e.indent : 0 : t.type === "flow-collection" && e.type === "document" && (t.indent = 0), t.type === "flow-collection" && ii(t), e.type) {
3793
+ switch (t.type === "block-scalar" ? t.indent = "indent" in e ? e.indent : 0 : t.type === "flow-collection" && e.type === "document" && (t.indent = 0), t.type === "flow-collection" && ri(t), e.type) {
3794
3794
  case "document":
3795
3795
  e.value = t;
3796
3796
  break;
@@ -3842,7 +3842,7 @@ var ai = class {
3842
3842
  }
3843
3843
  if ((e.type === "document" || e.type === "block-map" || e.type === "block-seq") && (t.type === "block-map" || t.type === "block-seq")) {
3844
3844
  let n = t.items[t.items.length - 1];
3845
- n && !n.sep && !n.value && n.start.length > 0 && $r(n.start) === -1 && (t.indent === 0 || n.start.every((e) => e.type !== "comment" || e.indent < t.indent)) && (e.type === "document" ? e.end = n.start : e.items.push({ start: n.start }), t.items.splice(-1, 1));
3845
+ n && !n.sep && !n.value && n.start.length > 0 && Qr(n.start) === -1 && (t.indent === 0 || n.start.every((e) => e.type !== "comment" || e.indent < t.indent)) && (e.type === "document" ? e.end = n.start : e.items.push({ start: n.start }), t.items.splice(-1, 1));
3846
3846
  }
3847
3847
  }
3848
3848
  }
@@ -3883,7 +3883,7 @@ var ai = class {
3883
3883
  if (e.value) return yield* this.lineEnd(e);
3884
3884
  switch (this.type) {
3885
3885
  case "doc-start":
3886
- $r(e.start) === -1 ? e.start.push(this.sourceToken) : (yield* this.pop(), yield* this.step());
3886
+ Qr(e.start) === -1 ? e.start.push(this.sourceToken) : (yield* this.pop(), yield* this.step());
3887
3887
  return;
3888
3888
  case "anchor":
3889
3889
  case "tag":
@@ -3903,7 +3903,7 @@ var ai = class {
3903
3903
  }
3904
3904
  *scalar(e) {
3905
3905
  if (this.type === "map-value-ind") {
3906
- let t = ni(ti(this.peek(2))), n;
3906
+ let t = ti(ei(this.peek(2))), n;
3907
3907
  e.end ? (n = e.end, n.push(this.sourceToken), delete e.end) : n = [this.sourceToken];
3908
3908
  let r = {
3909
3909
  type: "block-map",
@@ -3953,7 +3953,7 @@ var ai = class {
3953
3953
  if (this.atIndentedComment(t.start, e.indent)) {
3954
3954
  let n = e.items[e.items.length - 2]?.value?.end;
3955
3955
  if (Array.isArray(n)) {
3956
- ri(n, t.start), n.push(this.sourceToken), e.items.pop();
3956
+ ni(n, t.start), n.push(this.sourceToken), e.items.pop();
3957
3957
  return;
3958
3958
  }
3959
3959
  }
@@ -4002,12 +4002,12 @@ var ai = class {
4002
4002
  case "map-value-ind":
4003
4003
  if (t.explicitKey) {
4004
4004
  if (!t.sep) {
4005
- if (Qr(t.start, "newline")) Object.assign(t, {
4005
+ if (Zr(t.start, "newline")) Object.assign(t, {
4006
4006
  key: null,
4007
4007
  sep: [this.sourceToken]
4008
4008
  });
4009
4009
  else {
4010
- let e = ni(t.start);
4010
+ let e = ti(t.start);
4011
4011
  this.stack.push({
4012
4012
  type: "block-map",
4013
4013
  offset: this.offset,
@@ -4024,7 +4024,7 @@ var ai = class {
4024
4024
  key: null,
4025
4025
  sep: [this.sourceToken]
4026
4026
  });
4027
- else if (Qr(t.sep, "map-value-ind")) this.stack.push({
4027
+ else if (Zr(t.sep, "map-value-ind")) this.stack.push({
4028
4028
  type: "block-map",
4029
4029
  offset: this.offset,
4030
4030
  indent: this.indent,
@@ -4034,8 +4034,8 @@ var ai = class {
4034
4034
  sep: [this.sourceToken]
4035
4035
  }]
4036
4036
  });
4037
- else if (ei(t.key) && !Qr(t.sep, "newline")) {
4038
- let e = ni(t.start), n = t.key, r = t.sep;
4037
+ else if ($r(t.key) && !Zr(t.sep, "newline")) {
4038
+ let e = ti(t.start), n = t.key, r = t.sep;
4039
4039
  r.push(this.sourceToken), delete t.key, delete t.sep, this.stack.push({
4040
4040
  type: "block-map",
4041
4041
  offset: this.offset,
@@ -4051,7 +4051,7 @@ var ai = class {
4051
4051
  start: i,
4052
4052
  key: null,
4053
4053
  sep: [this.sourceToken]
4054
- }) : Qr(t.sep, "map-value-ind") ? this.stack.push({
4054
+ }) : Zr(t.sep, "map-value-ind") ? this.stack.push({
4055
4055
  type: "block-map",
4056
4056
  offset: this.offset,
4057
4057
  indent: this.indent,
@@ -4085,7 +4085,7 @@ var ai = class {
4085
4085
  let r = this.startBlockValue(e);
4086
4086
  if (r) {
4087
4087
  if (r.type === "block-seq") {
4088
- if (!t.explicitKey && t.sep && !Qr(t.sep, "newline")) {
4088
+ if (!t.explicitKey && t.sep && !Zr(t.sep, "newline")) {
4089
4089
  yield* this.pop({
4090
4090
  type: "error",
4091
4091
  offset: this.offset,
@@ -4119,7 +4119,7 @@ var ai = class {
4119
4119
  if (this.atIndentedComment(t.start, e.indent)) {
4120
4120
  let n = e.items[e.items.length - 2]?.value?.end;
4121
4121
  if (Array.isArray(n)) {
4122
- ri(n, t.start), n.push(this.sourceToken), e.items.pop();
4122
+ ni(n, t.start), n.push(this.sourceToken), e.items.pop();
4123
4123
  return;
4124
4124
  }
4125
4125
  }
@@ -4133,7 +4133,7 @@ var ai = class {
4133
4133
  return;
4134
4134
  case "seq-item-ind":
4135
4135
  if (this.indent !== e.indent) break;
4136
- t.value || Qr(t.start, "seq-item-ind") ? e.items.push({ start: [this.sourceToken] }) : t.start.push(this.sourceToken);
4136
+ t.value || Zr(t.start, "seq-item-ind") ? e.items.push({ start: [this.sourceToken] }) : t.start.push(this.sourceToken);
4137
4137
  return;
4138
4138
  }
4139
4139
  if (this.indent > e.indent) {
@@ -4202,8 +4202,8 @@ var ai = class {
4202
4202
  let t = this.peek(2);
4203
4203
  if (t.type === "block-map" && (this.type === "map-value-ind" && t.indent === e.indent || this.type === "newline" && !t.items[t.items.length - 1].sep)) yield* this.pop(), yield* this.step();
4204
4204
  else if (this.type === "map-value-ind" && t.type !== "flow-collection") {
4205
- let n = ni(ti(t));
4206
- ii(e);
4205
+ let n = ti(ei(t));
4206
+ ri(e);
4207
4207
  let r = e.end.splice(1, e.end.length);
4208
4208
  r.push(this.sourceToken);
4209
4209
  let i = {
@@ -4262,7 +4262,7 @@ var ai = class {
4262
4262
  };
4263
4263
  case "explicit-key-ind": {
4264
4264
  this.onKeyLine = !0;
4265
- let t = ni(ti(e));
4265
+ let t = ti(ei(e));
4266
4266
  return t.push(this.sourceToken), {
4267
4267
  type: "block-map",
4268
4268
  offset: this.offset,
@@ -4275,7 +4275,7 @@ var ai = class {
4275
4275
  }
4276
4276
  case "map-value-ind": {
4277
4277
  this.onKeyLine = !0;
4278
- let t = ni(ti(e));
4278
+ let t = ti(ei(e));
4279
4279
  return {
4280
4280
  type: "block-map",
4281
4281
  offset: this.offset,
@@ -4313,20 +4313,20 @@ var ai = class {
4313
4313
  };
4314
4314
  //#endregion
4315
4315
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/public-api.js
4316
- function oi(e) {
4316
+ function ai(e) {
4317
4317
  let t = e.prettyErrors !== !1;
4318
4318
  return {
4319
- lineCounter: e.lineCounter || t && new Zr() || null,
4319
+ lineCounter: e.lineCounter || t && new Xr() || null,
4320
4320
  prettyErrors: t
4321
4321
  };
4322
4322
  }
4323
- function si(e, t = {}) {
4324
- let { lineCounter: n, prettyErrors: r } = oi(t), i = new ai(n?.addNewLine), a = new wr(t), o = Array.from(a.compose(i.parse(e)));
4323
+ function oi(e, t = {}) {
4324
+ let { lineCounter: n, prettyErrors: r } = ai(t), i = new ii(n?.addNewLine), a = new wr(t), o = Array.from(a.compose(i.parse(e)));
4325
4325
  if (r && n) for (let t of o) t.errors.forEach(Hn(e, n)), t.warnings.forEach(Hn(e, n));
4326
4326
  return o.length > 0 ? o : Object.assign([], { empty: !0 }, a.streamInfo());
4327
4327
  }
4328
- function ci(e, t = {}) {
4329
- let { lineCounter: n, prettyErrors: r } = oi(t), i = new ai(n?.addNewLine), a = new wr(t), o = null;
4328
+ function si(e, t = {}) {
4329
+ let { lineCounter: n, prettyErrors: r } = ai(t), i = new ii(n?.addNewLine), a = new wr(t), o = null;
4330
4330
  for (let t of a.compose(i.parse(e), !0, e.length)) if (!o) o = t;
4331
4331
  else if (o.options.logLevel !== "silent") {
4332
4332
  o.errors.push(new Bn(t.range.slice(0, 2), "MULTIPLE_DOCS", "Source contains multiple documents; please use YAML.parseAllDocuments()"));
@@ -4334,10 +4334,10 @@ function ci(e, t = {}) {
4334
4334
  }
4335
4335
  return r && n && (o.errors.forEach(Hn(e, n)), o.warnings.forEach(Hn(e, n))), o;
4336
4336
  }
4337
- function li(e, t, n) {
4337
+ function ci(e, t, n) {
4338
4338
  let r;
4339
4339
  typeof t == "function" ? r = t : n === void 0 && t && typeof t == "object" && (n = t);
4340
- let i = ci(e, n);
4340
+ let i = si(e, n);
4341
4341
  if (!i) return null;
4342
4342
  if (i.warnings.forEach((e) => bt(i.options.logLevel, e)), i.errors.length > 0) {
4343
4343
  if (i.options.logLevel !== "silent") throw i.errors[0];
@@ -4345,7 +4345,7 @@ function li(e, t, n) {
4345
4345
  }
4346
4346
  return i.toJS(Object.assign({ reviver: r }, n));
4347
4347
  }
4348
- function ui(e, t, n) {
4348
+ function li(e, t, n) {
4349
4349
  let r = null;
4350
4350
  if (typeof t == "function" || Array.isArray(t) ? r = t : n === void 0 && t && (n = t), typeof n == "string" && (n = n.length), typeof n == "number") {
4351
4351
  let e = Math.round(n);
@@ -4359,15 +4359,15 @@ function ui(e, t, n) {
4359
4359
  }
4360
4360
  //#endregion
4361
4361
  //#region node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/index.js
4362
- var di = /* @__PURE__ */ b({
4362
+ var ui = /* @__PURE__ */ b({
4363
4363
  Alias: () => He,
4364
4364
  CST: () => zr,
4365
4365
  Composer: () => wr,
4366
4366
  Document: () => Ln,
4367
- Lexer: () => Xr,
4368
- LineCounter: () => Zr,
4367
+ Lexer: () => Yr,
4368
+ LineCounter: () => Xr,
4369
4369
  Pair: () => j,
4370
- Parser: () => ai,
4370
+ Parser: () => ii,
4371
4371
  Scalar: () => A,
4372
4372
  Schema: () => Fn,
4373
4373
  YAMLError: () => zn,
@@ -4383,13 +4383,13 @@ var di = /* @__PURE__ */ b({
4383
4383
  isPair: () => w,
4384
4384
  isScalar: () => T,
4385
4385
  isSeq: () => Se,
4386
- parse: () => li,
4387
- parseAllDocuments: () => si,
4388
- parseDocument: () => ci,
4389
- stringify: () => ui,
4386
+ parse: () => ci,
4387
+ parseAllDocuments: () => oi,
4388
+ parseDocument: () => si,
4389
+ stringify: () => li,
4390
4390
  visit: () => Ee,
4391
4391
  visitAsync: () => Oe
4392
- }), fi = class {
4392
+ }), di = class {
4393
4393
  baseDir;
4394
4394
  maxDepth;
4395
4395
  constructor(e, t = 5) {
@@ -4404,7 +4404,7 @@ var di = /* @__PURE__ */ b({
4404
4404
  throw Error(`Circular 'includes' dependency detected: ${e}`);
4405
4405
  }
4406
4406
  if (n.add(i), !e.existsSync(i)) throw Error(`Included workflow partial not found: ${t}`);
4407
- let o = e.readFileSync(i, "utf-8"), s = di.parse(o);
4407
+ let o = e.readFileSync(i, "utf-8"), s = ui.parse(o);
4408
4408
  if (Array.isArray(s.includes)) {
4409
4409
  for (let e of s.includes) {
4410
4410
  let t = this.resolve(e, new Set(n), r + 1);
@@ -4420,7 +4420,7 @@ var di = /* @__PURE__ */ b({
4420
4420
  };
4421
4421
  //#endregion
4422
4422
  //#region src/parser/matrix-expander.ts
4423
- function pi(e) {
4423
+ function fi(e) {
4424
4424
  if (!e.strategy?.matrix || Object.keys(e.strategy.matrix).length === 0) return [e];
4425
4425
  let t = e.strategy.matrix;
4426
4426
  return Object.keys(t).reduce((e, n) => {
@@ -4447,7 +4447,7 @@ function pi(e) {
4447
4447
  }
4448
4448
  //#endregion
4449
4449
  //#region src/queue.ts
4450
- var mi = class {
4450
+ var pi = class {
4451
4451
  workerId;
4452
4452
  constructor(e) {
4453
4453
  this.workerId = e;
@@ -4468,6 +4468,13 @@ var mi = class {
4468
4468
  async finishJob(e, t) {
4469
4469
  await S.run("UPDATE jobs SET status = ?, finished_at = CURRENT_TIMESTAMP WHERE id = ?;", [t, e]);
4470
4470
  }
4471
+ async completeJob(e, t, n) {
4472
+ await S.run("UPDATE jobs\n SET status = ?, report = ?, updated_at = CURRENT_TIMESTAMP, finished_at = CURRENT_TIMESTAMP\n WHERE id = ?;", [
4473
+ t,
4474
+ JSON.stringify(n),
4475
+ e
4476
+ ]);
4477
+ }
4471
4478
  async restartJob(e) {
4472
4479
  let t = await this.getJob(e);
4473
4480
  if (t) return t.status === "running" && await S.run("UPDATE jobs SET status = 'cancelled', finished_at = CURRENT_TIMESTAMP WHERE id = ?;", [e]), (await S.get("INSERT INTO jobs (parentId, workflow_id, concurrency_key, payload) SELECT id, workflow_id, concurrency_key, payload FROM jobs WHERE id = ? RETURNING *", [e])).id;
@@ -4479,19 +4486,22 @@ var mi = class {
4479
4486
  return await S.run("UPDATE jobs SET status = 'pending', worker_id = NULL WHERE status = 'running' AND started_at < datetime('now', '-1 hour');");
4480
4487
  }
4481
4488
  async createTables() {
4482
- await S.exec("\n CREATE TABLE IF NOT EXISTS jobs (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n parentId INTEGER,\n workflow_id TEXT NOT NULL,\n payload TEXT NOT NULL,\n status TEXT NOT NULL DEFAULT 'pending',\n concurrency_key TEXT,\n worker_id TEXT,\n report TEXT,\n created_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n updated_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n started_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n finished_at DATETIME DEFAULT CURRENT_TIMESTAMP\n );\n\n CREATE TABLE IF NOT EXISTS step_logs (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n job_id INTEGER NOT NULL,\n step_id TEXT NOT NULL,\n log_content TEXT NOT NULL,\n created_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n FOREIGN KEY(job_id) REFERENCES jobs(id) ON DELETE CASCADE\n );\n\n CREATE INDEX IF NOT EXISTS idx_step_logs_job ON step_logs(job_id);\n ");
4489
+ await S.exec("\n CREATE TABLE IF NOT EXISTS jobs (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n parentId INTEGER,\n workflow_id TEXT NOT NULL,\n payload TEXT NOT NULL,\n status TEXT NOT NULL DEFAULT 'pending',\n concurrency_key TEXT,\n worker_id TEXT,\n report TEXT,\n created_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n updated_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n started_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n finished_at DATETIME DEFAULT CURRENT_TIMESTAMP\n );\n\n CREATE TABLE IF NOT EXISTS step_logs (\n id INTEGER PRIMARY KEY AUTOINCREMENT,\n job_id INTEGER NOT NULL,\n step_id TEXT NOT NULL,\n log_content TEXT NOT NULL,\n created_at DATETIME DEFAULT CURRENT_TIMESTAMP,\n FOREIGN KEY(job_id) REFERENCES jobs(id) ON DELETE CASCADE\n );\n\n CREATE INDEX IF NOT EXISTS idx_step_logs_job ON step_logs(job_id);\n\n DELETE FROM step_logs\n WHERE id NOT IN (\n SELECT MAX(id) FROM step_logs GROUP BY job_id, step_id\n );\n CREATE UNIQUE INDEX IF NOT EXISTS idx_step_logs_job_step ON step_logs(job_id, step_id);\n ");
4483
4490
  }
4484
4491
  async getJob(e) {
4485
4492
  return S.get("SELECT * FROM jobs WHERE id = ?", [e]);
4486
4493
  }
4487
- async listJobs(e = 50) {
4488
- return S.all("SELECT * FROM jobs ORDER BY id DESC LIMIT ?;", [e]);
4494
+ async listJobs(e = 50, t, n) {
4495
+ let r = [], i = [];
4496
+ t !== void 0 && (r.push("id > ?"), i.push(t)), n !== void 0 && (r.push("id < ?"), i.push(n));
4497
+ let a = r.length ? ` WHERE ${r.join(" AND ")}` : "";
4498
+ return S.all(`SELECT * FROM jobs${a} ORDER BY id DESC LIMIT ?;`, [...i, e]);
4489
4499
  }
4490
4500
  async saveReport(e, t) {
4491
4501
  await S.run("UPDATE jobs SET report = ?, updated_at = CURRENT_TIMESTAMP WHERE id = ?", [JSON.stringify(t), e]);
4492
4502
  }
4493
4503
  async saveStepLog(e, t, n) {
4494
- n && await S.run("INSERT INTO step_logs (job_id, step_id, log_content) VALUES (?, ?, ?)", [
4504
+ await S.run("INSERT INTO step_logs (job_id, step_id, log_content) VALUES (?, ?, ?)\n ON CONFLICT(job_id, step_id) DO UPDATE SET\n log_content = excluded.log_content,\n created_at = CURRENT_TIMESTAMP", [
4495
4505
  e,
4496
4506
  t,
4497
4507
  n
@@ -4502,7 +4512,7 @@ var mi = class {
4502
4512
  for (let e of t) n[e.step_id] = e.log_content;
4503
4513
  return n;
4504
4514
  }
4505
- }, hi = class {
4515
+ }, mi = class {
4506
4516
  envFilePath;
4507
4517
  secrets = /* @__PURE__ */ new Map();
4508
4518
  constructor(e) {
@@ -4527,7 +4537,7 @@ var mi = class {
4527
4537
  for (let n of t) e = e.replaceAll(n, "****");
4528
4538
  return e;
4529
4539
  }
4530
- }, gi = [
4540
+ }, hi = [
4531
4541
  509,
4532
4542
  0,
4533
4543
  227,
@@ -4858,7 +4868,7 @@ var mi = class {
4858
4868
  9,
4859
4869
  787719,
4860
4870
  239
4861
- ], _i = [
4871
+ ], gi = [
4862
4872
  0,
4863
4873
  11,
4864
4874
  2,
@@ -5477,216 +5487,216 @@ var mi = class {
5477
5487
  4938,
5478
5488
  6,
5479
5489
  8489
5480
- ], vi = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", yi = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", bi = {
5490
+ ], _i = "‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・", vi = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", yi = {
5481
5491
  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",
5482
5492
  5: "class enum extends super const export import",
5483
5493
  6: "enum",
5484
5494
  strict: "implements interface let package private protected public static yield",
5485
5495
  strictBind: "eval arguments"
5486
- }, xi = "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", Si = {
5487
- 5: xi,
5488
- "5module": xi + " export import",
5489
- 6: xi + " const class extends export import super"
5490
- }, Ci = /^in(stanceof)?$/, wi = RegExp("[" + yi + "]"), Ti = RegExp("[" + yi + vi + "]");
5491
- function Ei(e, t) {
5496
+ }, bi = "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", xi = {
5497
+ 5: bi,
5498
+ "5module": bi + " export import",
5499
+ 6: bi + " const class extends export import super"
5500
+ }, Si = /^in(stanceof)?$/, Ci = RegExp("[" + vi + "]"), wi = RegExp("[" + vi + _i + "]");
5501
+ function Ti(e, t) {
5492
5502
  for (var n = 65536, r = 0; r < t.length; r += 2) {
5493
5503
  if (n += t[r], n > e) return !1;
5494
5504
  if (n += t[r + 1], n >= e) return !0;
5495
5505
  }
5496
5506
  return !1;
5497
5507
  }
5498
- function Di(e, t) {
5499
- return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && wi.test(String.fromCharCode(e)) : t !== !1 && Ei(e, _i);
5508
+ function Ei(e, t) {
5509
+ return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && Ci.test(String.fromCharCode(e)) : t !== !1 && Ti(e, gi);
5500
5510
  }
5501
- function Oi(e, t) {
5502
- 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 && Ti.test(String.fromCharCode(e)) : t === !1 ? !1 : Ei(e, _i) || Ei(e, gi);
5511
+ function Di(e, t) {
5512
+ 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 && wi.test(String.fromCharCode(e)) : t === !1 ? !1 : Ti(e, gi) || Ti(e, hi);
5503
5513
  }
5504
- var P = function(e, t) {
5514
+ var F = function(e, t) {
5505
5515
  t === void 0 && (t = {}), this.label = e, this.keyword = t.keyword, this.beforeExpr = !!t.beforeExpr, this.startsExpr = !!t.startsExpr, this.isLoop = !!t.isLoop, this.isAssign = !!t.isAssign, this.prefix = !!t.prefix, this.postfix = !!t.postfix, this.binop = t.binop || null, this.updateContext = null;
5506
5516
  };
5507
- function F(e, t) {
5508
- return new P(e, {
5517
+ function I(e, t) {
5518
+ return new F(e, {
5509
5519
  beforeExpr: !0,
5510
5520
  binop: t
5511
5521
  });
5512
5522
  }
5513
- var I = { beforeExpr: !0 }, L = { startsExpr: !0 }, ki = {};
5514
- function R(e, t) {
5515
- return t === void 0 && (t = {}), t.keyword = e, ki[e] = new P(e, t);
5516
- }
5517
- var z = {
5518
- num: new P("num", L),
5519
- regexp: new P("regexp", L),
5520
- string: new P("string", L),
5521
- name: new P("name", L),
5522
- privateId: new P("privateId", L),
5523
- eof: new P("eof"),
5524
- bracketL: new P("[", {
5523
+ var L = { beforeExpr: !0 }, R = { startsExpr: !0 }, Oi = {};
5524
+ function z(e, t) {
5525
+ return t === void 0 && (t = {}), t.keyword = e, Oi[e] = new F(e, t);
5526
+ }
5527
+ var B = {
5528
+ num: new F("num", R),
5529
+ regexp: new F("regexp", R),
5530
+ string: new F("string", R),
5531
+ name: new F("name", R),
5532
+ privateId: new F("privateId", R),
5533
+ eof: new F("eof"),
5534
+ bracketL: new F("[", {
5525
5535
  beforeExpr: !0,
5526
5536
  startsExpr: !0
5527
5537
  }),
5528
- bracketR: new P("]"),
5529
- braceL: new P("{", {
5538
+ bracketR: new F("]"),
5539
+ braceL: new F("{", {
5530
5540
  beforeExpr: !0,
5531
5541
  startsExpr: !0
5532
5542
  }),
5533
- braceR: new P("}"),
5534
- parenL: new P("(", {
5543
+ braceR: new F("}"),
5544
+ parenL: new F("(", {
5535
5545
  beforeExpr: !0,
5536
5546
  startsExpr: !0
5537
5547
  }),
5538
- parenR: new P(")"),
5539
- comma: new P(",", I),
5540
- semi: new P(";", I),
5541
- colon: new P(":", I),
5542
- dot: new P("."),
5543
- question: new P("?", I),
5544
- questionDot: new P("?."),
5545
- arrow: new P("=>", I),
5546
- template: new P("template"),
5547
- invalidTemplate: new P("invalidTemplate"),
5548
- ellipsis: new P("...", I),
5549
- backQuote: new P("`", L),
5550
- dollarBraceL: new P("${", {
5548
+ parenR: new F(")"),
5549
+ comma: new F(",", L),
5550
+ semi: new F(";", L),
5551
+ colon: new F(":", L),
5552
+ dot: new F("."),
5553
+ question: new F("?", L),
5554
+ questionDot: new F("?."),
5555
+ arrow: new F("=>", L),
5556
+ template: new F("template"),
5557
+ invalidTemplate: new F("invalidTemplate"),
5558
+ ellipsis: new F("...", L),
5559
+ backQuote: new F("`", R),
5560
+ dollarBraceL: new F("${", {
5551
5561
  beforeExpr: !0,
5552
5562
  startsExpr: !0
5553
5563
  }),
5554
- eq: new P("=", {
5564
+ eq: new F("=", {
5555
5565
  beforeExpr: !0,
5556
5566
  isAssign: !0
5557
5567
  }),
5558
- assign: new P("_=", {
5568
+ assign: new F("_=", {
5559
5569
  beforeExpr: !0,
5560
5570
  isAssign: !0
5561
5571
  }),
5562
- incDec: new P("++/--", {
5572
+ incDec: new F("++/--", {
5563
5573
  prefix: !0,
5564
5574
  postfix: !0,
5565
5575
  startsExpr: !0
5566
5576
  }),
5567
- prefix: new P("!/~", {
5577
+ prefix: new F("!/~", {
5568
5578
  beforeExpr: !0,
5569
5579
  prefix: !0,
5570
5580
  startsExpr: !0
5571
5581
  }),
5572
- logicalOR: F("||", 1),
5573
- logicalAND: F("&&", 2),
5574
- bitwiseOR: F("|", 3),
5575
- bitwiseXOR: F("^", 4),
5576
- bitwiseAND: F("&", 5),
5577
- equality: F("==/!=/===/!==", 6),
5578
- relational: F("</>/<=/>=", 7),
5579
- bitShift: F("<</>>/>>>", 8),
5580
- plusMin: new P("+/-", {
5582
+ logicalOR: I("||", 1),
5583
+ logicalAND: I("&&", 2),
5584
+ bitwiseOR: I("|", 3),
5585
+ bitwiseXOR: I("^", 4),
5586
+ bitwiseAND: I("&", 5),
5587
+ equality: I("==/!=/===/!==", 6),
5588
+ relational: I("</>/<=/>=", 7),
5589
+ bitShift: I("<</>>/>>>", 8),
5590
+ plusMin: new F("+/-", {
5581
5591
  beforeExpr: !0,
5582
5592
  binop: 9,
5583
5593
  prefix: !0,
5584
5594
  startsExpr: !0
5585
5595
  }),
5586
- modulo: F("%", 10),
5587
- star: F("*", 10),
5588
- slash: F("/", 10),
5589
- starstar: new P("**", { beforeExpr: !0 }),
5590
- coalesce: F("??", 1),
5591
- _break: R("break"),
5592
- _case: R("case", I),
5593
- _catch: R("catch"),
5594
- _continue: R("continue"),
5595
- _debugger: R("debugger"),
5596
- _default: R("default", I),
5597
- _do: R("do", {
5596
+ modulo: I("%", 10),
5597
+ star: I("*", 10),
5598
+ slash: I("/", 10),
5599
+ starstar: new F("**", { beforeExpr: !0 }),
5600
+ coalesce: I("??", 1),
5601
+ _break: z("break"),
5602
+ _case: z("case", L),
5603
+ _catch: z("catch"),
5604
+ _continue: z("continue"),
5605
+ _debugger: z("debugger"),
5606
+ _default: z("default", L),
5607
+ _do: z("do", {
5598
5608
  isLoop: !0,
5599
5609
  beforeExpr: !0
5600
5610
  }),
5601
- _else: R("else", I),
5602
- _finally: R("finally"),
5603
- _for: R("for", { isLoop: !0 }),
5604
- _function: R("function", L),
5605
- _if: R("if"),
5606
- _return: R("return", I),
5607
- _switch: R("switch"),
5608
- _throw: R("throw", I),
5609
- _try: R("try"),
5610
- _var: R("var"),
5611
- _const: R("const"),
5612
- _while: R("while", { isLoop: !0 }),
5613
- _with: R("with"),
5614
- _new: R("new", {
5611
+ _else: z("else", L),
5612
+ _finally: z("finally"),
5613
+ _for: z("for", { isLoop: !0 }),
5614
+ _function: z("function", R),
5615
+ _if: z("if"),
5616
+ _return: z("return", L),
5617
+ _switch: z("switch"),
5618
+ _throw: z("throw", L),
5619
+ _try: z("try"),
5620
+ _var: z("var"),
5621
+ _const: z("const"),
5622
+ _while: z("while", { isLoop: !0 }),
5623
+ _with: z("with"),
5624
+ _new: z("new", {
5615
5625
  beforeExpr: !0,
5616
5626
  startsExpr: !0
5617
5627
  }),
5618
- _this: R("this", L),
5619
- _super: R("super", L),
5620
- _class: R("class", L),
5621
- _extends: R("extends", I),
5622
- _export: R("export"),
5623
- _import: R("import", L),
5624
- _null: R("null", L),
5625
- _true: R("true", L),
5626
- _false: R("false", L),
5627
- _in: R("in", {
5628
+ _this: z("this", R),
5629
+ _super: z("super", R),
5630
+ _class: z("class", R),
5631
+ _extends: z("extends", L),
5632
+ _export: z("export"),
5633
+ _import: z("import", R),
5634
+ _null: z("null", R),
5635
+ _true: z("true", R),
5636
+ _false: z("false", R),
5637
+ _in: z("in", {
5628
5638
  beforeExpr: !0,
5629
5639
  binop: 7
5630
5640
  }),
5631
- _instanceof: R("instanceof", {
5641
+ _instanceof: z("instanceof", {
5632
5642
  beforeExpr: !0,
5633
5643
  binop: 7
5634
5644
  }),
5635
- _typeof: R("typeof", {
5645
+ _typeof: z("typeof", {
5636
5646
  beforeExpr: !0,
5637
5647
  prefix: !0,
5638
5648
  startsExpr: !0
5639
5649
  }),
5640
- _void: R("void", {
5650
+ _void: z("void", {
5641
5651
  beforeExpr: !0,
5642
5652
  prefix: !0,
5643
5653
  startsExpr: !0
5644
5654
  }),
5645
- _delete: R("delete", {
5655
+ _delete: z("delete", {
5646
5656
  beforeExpr: !0,
5647
5657
  prefix: !0,
5648
5658
  startsExpr: !0
5649
5659
  })
5650
- }, B = /\r\n?|\n|\u2028|\u2029/, Ai = new RegExp(B.source, "g");
5651
- function ji(e) {
5660
+ }, V = /\r\n?|\n|\u2028|\u2029/, ki = new RegExp(V.source, "g");
5661
+ function Ai(e) {
5652
5662
  return e === 10 || e === 13 || e === 8232 || e === 8233;
5653
5663
  }
5654
- function Mi(e, t, n) {
5664
+ function ji(e, t, n) {
5655
5665
  n === void 0 && (n = e.length);
5656
5666
  for (var r = t; r < n; r++) {
5657
5667
  var i = e.charCodeAt(r);
5658
- if (ji(i)) return r < n - 1 && i === 13 && e.charCodeAt(r + 1) === 10 ? r + 2 : r + 1;
5668
+ if (Ai(i)) return r < n - 1 && i === 13 && e.charCodeAt(r + 1) === 10 ? r + 2 : r + 1;
5659
5669
  }
5660
5670
  return -1;
5661
5671
  }
5662
- var Ni = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, V = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Pi = Object.prototype, Fi = Pi.hasOwnProperty, Ii = Pi.toString, Li = Object.hasOwn || (function(e, t) {
5663
- return Fi.call(e, t);
5664
- }), Ri = Array.isArray || (function(e) {
5665
- return Ii.call(e) === "[object Array]";
5666
- }), zi = Object.create(null);
5667
- function Bi(e) {
5668
- return zi[e] || (zi[e] = RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
5672
+ var Mi = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, H = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, Ni = Object.prototype, Pi = Ni.hasOwnProperty, Fi = Ni.toString, Ii = Object.hasOwn || (function(e, t) {
5673
+ return Pi.call(e, t);
5674
+ }), Li = Array.isArray || (function(e) {
5675
+ return Fi.call(e) === "[object Array]";
5676
+ }), Ri = Object.create(null);
5677
+ function zi(e) {
5678
+ return Ri[e] || (Ri[e] = RegExp("^(?:" + e.replace(/ /g, "|") + ")$"));
5669
5679
  }
5670
- function Vi(e) {
5680
+ function Bi(e) {
5671
5681
  return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
5672
5682
  }
5673
- var Hi = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, Ui = function(e, t) {
5683
+ var Vi = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/, Hi = function(e, t) {
5674
5684
  this.line = e, this.column = t;
5675
5685
  };
5676
- Ui.prototype.offset = function(e) {
5677
- return new Ui(this.line, this.column + e);
5686
+ Hi.prototype.offset = function(e) {
5687
+ return new Hi(this.line, this.column + e);
5678
5688
  };
5679
- var Wi = function(e, t, n) {
5689
+ var Ui = function(e, t, n) {
5680
5690
  this.start = t, this.end = n, e.sourceFile !== null && (this.source = e.sourceFile);
5681
5691
  };
5682
- function Gi(e, t) {
5692
+ function Wi(e, t) {
5683
5693
  for (var n = 1, r = 0;;) {
5684
- var i = Mi(e, r, t);
5685
- if (i < 0) return new Ui(n, t - r);
5694
+ var i = ji(e, r, t);
5695
+ if (i < 0) return new Hi(n, t - r);
5686
5696
  ++n, r = i;
5687
5697
  }
5688
5698
  }
5689
- var Ki = {
5699
+ var Gi = {
5690
5700
  ecmaVersion: null,
5691
5701
  sourceType: "script",
5692
5702
  strict: !1,
@@ -5708,20 +5718,20 @@ var Ki = {
5708
5718
  sourceFile: null,
5709
5719
  directSourceFile: null,
5710
5720
  preserveParens: !1
5711
- }, qi = !1;
5712
- function Ji(e) {
5721
+ }, Ki = !1;
5722
+ function qi(e) {
5713
5723
  var t = {};
5714
- for (var n in Ki) t[n] = e && Li(e, n) ? e[n] : Ki[n];
5715
- if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!qi && typeof console == "object" && console.warn && (qi = !0, console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting 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), Ri(t.onToken)) {
5724
+ for (var n in Gi) t[n] = e && Ii(e, n) ? e[n] : Gi[n];
5725
+ if (t.ecmaVersion === "latest" ? t.ecmaVersion = 1e8 : t.ecmaVersion == null ? (!Ki && typeof console == "object" && console.warn && (Ki = !0, console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting 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), Li(t.onToken)) {
5716
5726
  var r = t.onToken;
5717
5727
  t.onToken = function(e) {
5718
5728
  return r.push(e);
5719
5729
  };
5720
5730
  }
5721
- if (Ri(t.onComment) && (t.onComment = Yi(t, t.onComment)), t.sourceType === "commonjs" && t.allowAwaitOutsideFunction) throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");
5731
+ if (Li(t.onComment) && (t.onComment = Ji(t, t.onComment)), t.sourceType === "commonjs" && t.allowAwaitOutsideFunction) throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");
5722
5732
  return t;
5723
5733
  }
5724
- function Yi(e, t) {
5734
+ function Ji(e, t) {
5725
5735
  return function(n, r, i, a, o, s) {
5726
5736
  var c = {
5727
5737
  type: n ? "Block" : "Line",
@@ -5729,20 +5739,20 @@ function Yi(e, t) {
5729
5739
  start: i,
5730
5740
  end: a
5731
5741
  };
5732
- e.locations && (c.loc = new Wi(this, o, s)), e.ranges && (c.range = [i, a]), t.push(c);
5742
+ e.locations && (c.loc = new Ui(this, o, s)), e.ranges && (c.range = [i, a]), t.push(c);
5733
5743
  };
5734
5744
  }
5735
- var Xi = 1, Zi = 2, Qi = 4, $i = 8, ea = 16, ta = 32, na = 64, ra = 128, ia = 256, aa = 512, oa = 1024, sa = Xi | Zi | ia;
5736
- function ca(e, t) {
5737
- return Zi | (e ? Qi : 0) | (t ? $i : 0);
5745
+ var Yi = 1, Xi = 2, Zi = 4, Qi = 8, $i = 16, ea = 32, ta = 64, na = 128, ra = 256, ia = 512, aa = 1024, oa = Yi | Xi | ra;
5746
+ function sa(e, t) {
5747
+ return Xi | (e ? Zi : 0) | (t ? Qi : 0);
5738
5748
  }
5739
- var la = 0, ua = 1, da = 2, fa = 3, pa = 4, ma = 5, H = function(e, t, n) {
5740
- this.options = e = Ji(e), this.sourceFile = e.sourceFile, this.keywords = Bi(Si[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
5749
+ var ca = 0, la = 1, ua = 2, da = 3, fa = 4, pa = 5, U = function(e, t, n) {
5750
+ this.options = e = qi(e), this.sourceFile = e.sourceFile, this.keywords = zi(xi[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
5741
5751
  var r = "";
5742
- e.allowReserved !== !0 && (r = bi[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (r += " await")), this.reservedWords = Bi(r);
5743
- var i = (r ? r + " " : "") + bi.strict;
5744
- this.reservedWordsStrict = Bi(i), this.reservedWordsStrictBind = Bi(i + " " + bi.strictBind), this.input = String(t), this.containsEsc = !1, this.pos = n || 0, this.curLine = 1, e.startLocation ? (this.lineStart = this.pos - e.startLocation.column, this.curLine = e.startLocation.line) : n ? (this.lineStart = this.input.lastIndexOf("\n", n - 1) + 1, this.options.locations && (this.curLine = this.input.slice(0, this.lineStart).split(B).length)) : this.lineStart = 0, this.type = z.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 = e.sourceType === "module", this.strict = this.inModule || e.strict === !0 || 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 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(this.options.sourceType === "commonjs" ? Zi : Xi), this.regexpState = null, this.privateNameStack = [];
5745
- }, U = {
5752
+ e.allowReserved !== !0 && (r = yi[e.ecmaVersion >= 6 ? 6 : e.ecmaVersion === 5 ? 5 : 3], e.sourceType === "module" && (r += " await")), this.reservedWords = zi(r);
5753
+ var i = (r ? r + " " : "") + yi.strict;
5754
+ this.reservedWordsStrict = zi(i), this.reservedWordsStrictBind = zi(i + " " + yi.strictBind), this.input = String(t), this.containsEsc = !1, this.pos = n || 0, this.curLine = 1, e.startLocation ? (this.lineStart = this.pos - e.startLocation.column, this.curLine = e.startLocation.line) : n ? (this.lineStart = this.input.lastIndexOf("\n", n - 1) + 1, this.options.locations && (this.curLine = this.input.slice(0, this.lineStart).split(V).length)) : this.lineStart = 0, this.type = B.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 = e.sourceType === "module", this.strict = this.inModule || e.strict === !0 || 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 && e.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(this.options.sourceType === "commonjs" ? Xi : Yi), this.regexpState = null, this.privateNameStack = [];
5755
+ }, W = {
5746
5756
  inFunction: { configurable: !0 },
5747
5757
  inGenerator: { configurable: !0 },
5748
5758
  inAsync: { configurable: !0 },
@@ -5755,120 +5765,120 @@ var la = 0, ua = 1, da = 2, fa = 3, pa = 4, ma = 5, H = function(e, t, n) {
5755
5765
  allowUsing: { configurable: !0 },
5756
5766
  inClassStaticBlock: { configurable: !0 }
5757
5767
  };
5758
- H.prototype.parse = function() {
5768
+ U.prototype.parse = function() {
5759
5769
  var e = this, t = this.options.program || this.startNode();
5760
5770
  return this.nextToken(), this.catchStackOverflow(function() {
5761
5771
  return e.parseTopLevel(t);
5762
5772
  });
5763
- }, U.inFunction.get = function() {
5764
- return (this.currentVarScope().flags & Zi) > 0;
5765
- }, U.inGenerator.get = function() {
5766
- return (this.currentVarScope().flags & $i) > 0;
5767
- }, U.inAsync.get = function() {
5773
+ }, W.inFunction.get = function() {
5774
+ return (this.currentVarScope().flags & Xi) > 0;
5775
+ }, W.inGenerator.get = function() {
5768
5776
  return (this.currentVarScope().flags & Qi) > 0;
5769
- }, U.canAwait.get = function() {
5777
+ }, W.inAsync.get = function() {
5778
+ return (this.currentVarScope().flags & Zi) > 0;
5779
+ }, W.canAwait.get = function() {
5770
5780
  for (var e = this.scopeStack.length - 1; e >= 0; e--) {
5771
5781
  var t = this.scopeStack[e].flags;
5772
- if (t & (ia | aa)) return !1;
5773
- if (t & Zi) return (t & Qi) > 0;
5782
+ if (t & (ra | ia)) return !1;
5783
+ if (t & Xi) return (t & Zi) > 0;
5774
5784
  }
5775
5785
  return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
5776
- }, U.allowReturn.get = function() {
5777
- return !!(this.inFunction || this.options.allowReturnOutsideFunction && this.currentVarScope().flags & Xi);
5778
- }, U.allowSuper.get = function() {
5779
- return (this.currentThisScope().flags & na) > 0 || this.options.allowSuperOutsideMethod;
5780
- }, U.allowDirectSuper.get = function() {
5781
- return (this.currentThisScope().flags & ra) > 0;
5782
- }, U.treatFunctionsAsVar.get = function() {
5786
+ }, W.allowReturn.get = function() {
5787
+ return !!(this.inFunction || this.options.allowReturnOutsideFunction && this.currentVarScope().flags & Yi);
5788
+ }, W.allowSuper.get = function() {
5789
+ return (this.currentThisScope().flags & ta) > 0 || this.options.allowSuperOutsideMethod;
5790
+ }, W.allowDirectSuper.get = function() {
5791
+ return (this.currentThisScope().flags & na) > 0;
5792
+ }, W.treatFunctionsAsVar.get = function() {
5783
5793
  return this.treatFunctionsAsVarInScope(this.currentScope());
5784
- }, U.allowNewDotTarget.get = function() {
5794
+ }, W.allowNewDotTarget.get = function() {
5785
5795
  for (var e = this.scopeStack.length - 1; e >= 0; e--) {
5786
5796
  var t = this.scopeStack[e].flags;
5787
- if (t & (ia | aa) || t & Zi && !(t & ea)) return !0;
5797
+ if (t & (ra | ia) || t & Xi && !(t & $i)) return !0;
5788
5798
  }
5789
5799
  return !1;
5790
- }, U.allowUsing.get = function() {
5800
+ }, W.allowUsing.get = function() {
5791
5801
  var e = this.currentScope().flags;
5792
- return !(e & oa || !this.inModule && e & Xi);
5793
- }, U.inClassStaticBlock.get = function() {
5794
- return (this.currentVarScope().flags & ia) > 0;
5795
- }, H.extend = function() {
5802
+ return !(e & aa || !this.inModule && e & Yi);
5803
+ }, W.inClassStaticBlock.get = function() {
5804
+ return (this.currentVarScope().flags & ra) > 0;
5805
+ }, U.extend = function() {
5796
5806
  for (var e = [], t = arguments.length; t--;) e[t] = arguments[t];
5797
5807
  for (var n = this, r = 0; r < e.length; r++) n = e[r](n);
5798
5808
  return n;
5799
- }, H.parse = function(e, t) {
5809
+ }, U.parse = function(e, t) {
5800
5810
  return new this(t, e).parse();
5801
- }, H.parseExpressionAt = function(e, t, n) {
5811
+ }, U.parseExpressionAt = function(e, t, n) {
5802
5812
  var r = new this(n, e, t);
5803
5813
  return r.nextToken(), r.parseExpression();
5804
- }, H.tokenizer = function(e, t) {
5814
+ }, U.tokenizer = function(e, t) {
5805
5815
  return new this(t, e);
5806
- }, Object.defineProperties(H.prototype, U);
5807
- var W = H.prototype, ha = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
5808
- W.strictDirective = function(e) {
5816
+ }, Object.defineProperties(U.prototype, W);
5817
+ var G = U.prototype, ma = /^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;
5818
+ G.strictDirective = function(e) {
5809
5819
  if (this.options.ecmaVersion < 5) return !1;
5810
5820
  for (;;) {
5811
- V.lastIndex = e, e += V.exec(this.input)[0].length;
5812
- var t = ha.exec(this.input.slice(e));
5821
+ H.lastIndex = e, e += H.exec(this.input)[0].length;
5822
+ var t = ma.exec(this.input.slice(e));
5813
5823
  if (!t) return !1;
5814
5824
  if ((t[1] || t[2]) === "use strict") {
5815
- V.lastIndex = e + t[0].length;
5816
- var n = V.exec(this.input), r = n.index + n[0].length, i = this.input.charAt(r);
5817
- return i === ";" || i === "}" || B.test(n[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(i) || i === "!" && this.input.charAt(r + 1) === "=");
5825
+ H.lastIndex = e + t[0].length;
5826
+ var n = H.exec(this.input), r = n.index + n[0].length, i = this.input.charAt(r);
5827
+ return i === ";" || i === "}" || V.test(n[0]) && !(/[(`.[+\-/*%<>=,?^&]/.test(i) || i === "!" && this.input.charAt(r + 1) === "=");
5818
5828
  }
5819
- e += t[0].length, V.lastIndex = e, e += V.exec(this.input)[0].length, this.input[e] === ";" && e++;
5829
+ e += t[0].length, H.lastIndex = e, e += H.exec(this.input)[0].length, this.input[e] === ";" && e++;
5820
5830
  }
5821
- }, W.eat = function(e) {
5831
+ }, G.eat = function(e) {
5822
5832
  return this.type === e && (this.next(), !0);
5823
- }, W.isContextual = function(e) {
5824
- return this.type === z.name && this.value === e && !this.containsEsc;
5825
- }, W.eatContextual = function(e) {
5833
+ }, G.isContextual = function(e) {
5834
+ return this.type === B.name && this.value === e && !this.containsEsc;
5835
+ }, G.eatContextual = function(e) {
5826
5836
  return this.isContextual(e) ? (this.next(), !0) : !1;
5827
- }, W.catchStackOverflow = function(e) {
5837
+ }, G.catchStackOverflow = function(e) {
5828
5838
  try {
5829
5839
  return e();
5830
5840
  } catch (e) {
5831
5841
  if (e instanceof Error && (/\bstack\b.*\b(exceeded|overflow)\b/i.test(e.message) || /\btoo much recursion\b/i.test(e.message))) this.raise(this.start, "Not enough stack space to parse input");
5832
5842
  else throw e;
5833
5843
  }
5834
- }, W.expectContextual = function(e) {
5844
+ }, G.expectContextual = function(e) {
5835
5845
  this.eatContextual(e) || this.unexpected();
5836
- }, W.canInsertSemicolon = function() {
5837
- return this.type === z.eof || this.type === z.braceR || B.test(this.input.slice(this.lastTokEnd, this.start));
5838
- }, W.insertSemicolon = function() {
5846
+ }, G.canInsertSemicolon = function() {
5847
+ return this.type === B.eof || this.type === B.braceR || V.test(this.input.slice(this.lastTokEnd, this.start));
5848
+ }, G.insertSemicolon = function() {
5839
5849
  if (this.canInsertSemicolon()) return this.options.onInsertedSemicolon && this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc), !0;
5840
- }, W.semicolon = function() {
5841
- !this.eat(z.semi) && !this.insertSemicolon() && this.unexpected();
5842
- }, W.afterTrailingComma = function(e, t) {
5850
+ }, G.semicolon = function() {
5851
+ !this.eat(B.semi) && !this.insertSemicolon() && this.unexpected();
5852
+ }, G.afterTrailingComma = function(e, t) {
5843
5853
  if (this.type === e) return this.options.onTrailingComma && this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc), t || this.next(), !0;
5844
- }, W.expect = function(e) {
5854
+ }, G.expect = function(e) {
5845
5855
  this.eat(e) || this.unexpected();
5846
- }, W.unexpected = function(e) {
5856
+ }, G.unexpected = function(e) {
5847
5857
  this.raise(e ?? this.start, "Unexpected token");
5848
5858
  };
5849
- var ga = function() {
5859
+ var ha = function() {
5850
5860
  this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
5851
5861
  };
5852
- W.checkPatternErrors = function(e, t) {
5862
+ G.checkPatternErrors = function(e, t) {
5853
5863
  if (e) {
5854
5864
  e.trailingComma > -1 && this.raiseRecoverable(e.trailingComma, "Comma is not permitted after the rest element");
5855
5865
  var n = t ? e.parenthesizedAssign : e.parenthesizedBind;
5856
5866
  n > -1 && this.raiseRecoverable(n, t ? "Assigning to rvalue" : "Parenthesized pattern");
5857
5867
  }
5858
- }, W.checkExpressionErrors = function(e, t) {
5868
+ }, G.checkExpressionErrors = function(e, t) {
5859
5869
  if (!e) return !1;
5860
5870
  var n = e.shorthandAssign, r = e.doubleProto;
5861
5871
  if (!t) return n >= 0 || r >= 0;
5862
5872
  n >= 0 && this.raise(n, "Shorthand property assignments are valid only in destructuring patterns"), r >= 0 && this.raiseRecoverable(r, "Redefinition of __proto__ property");
5863
- }, W.checkYieldAwaitInDefaultParams = function() {
5873
+ }, G.checkYieldAwaitInDefaultParams = function() {
5864
5874
  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");
5865
- }, W.isSimpleAssignTarget = function(e) {
5875
+ }, G.isSimpleAssignTarget = function(e) {
5866
5876
  return e.type === "ParenthesizedExpression" ? this.isSimpleAssignTarget(e.expression) : e.type === "Identifier" || e.type === "MemberExpression";
5867
5877
  };
5868
- var G = H.prototype;
5869
- G.parseTopLevel = function(e) {
5878
+ var K = U.prototype;
5879
+ K.parseTopLevel = function(e) {
5870
5880
  var t = Object.create(null);
5871
- for (e.body ||= []; this.type !== z.eof;) {
5881
+ for (e.body ||= []; this.type !== B.eof;) {
5872
5882
  var n = this.parseStatement(null, !0, t);
5873
5883
  e.body.push(n);
5874
5884
  }
@@ -5878,114 +5888,114 @@ G.parseTopLevel = function(e) {
5878
5888
  }
5879
5889
  return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType === "commonjs" ? "script" : this.options.sourceType, this.finishNode(e, "Program");
5880
5890
  };
5881
- var _a = { kind: "loop" }, va = { kind: "switch" };
5882
- G.isLet = function(e) {
5891
+ var ga = { kind: "loop" }, _a = { kind: "switch" };
5892
+ K.isLet = function(e) {
5883
5893
  if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return !1;
5884
- V.lastIndex = this.pos;
5885
- var t = V.exec(this.input), n = this.pos + t[0].length, r = this.fullCharCodeAt(n);
5894
+ H.lastIndex = this.pos;
5895
+ var t = H.exec(this.input), n = this.pos + t[0].length, r = this.fullCharCodeAt(n);
5886
5896
  if (r === 91 || r === 92) return !0;
5887
5897
  if (e) return !1;
5888
5898
  if (r === 123) return !0;
5889
- if (Di(r)) {
5899
+ if (Ei(r)) {
5890
5900
  var i = n;
5891
5901
  do
5892
5902
  n += r <= 65535 ? 1 : 2;
5893
- while (Oi(r = this.fullCharCodeAt(n)));
5903
+ while (Di(r = this.fullCharCodeAt(n)));
5894
5904
  if (r === 92) return !0;
5895
5905
  var a = this.input.slice(i, n);
5896
- if (!Ci.test(a)) return !0;
5906
+ if (!Si.test(a)) return !0;
5897
5907
  }
5898
5908
  return !1;
5899
- }, G.isAsyncFunction = function() {
5909
+ }, K.isAsyncFunction = function() {
5900
5910
  if (this.options.ecmaVersion < 8 || !this.isContextual("async")) return !1;
5901
- V.lastIndex = this.pos;
5902
- var e = V.exec(this.input), t = this.pos + e[0].length, n;
5903
- return !B.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(Oi(n = this.fullCharCodeAt(t + 8)) || n === 92));
5904
- }, G.isUsingKeyword = function(e, t) {
5911
+ H.lastIndex = this.pos;
5912
+ var e = H.exec(this.input), t = this.pos + e[0].length, n;
5913
+ return !V.test(this.input.slice(this.pos, t)) && this.input.slice(t, t + 8) === "function" && (t + 8 === this.input.length || !(Di(n = this.fullCharCodeAt(t + 8)) || n === 92));
5914
+ }, K.isUsingKeyword = function(e, t) {
5905
5915
  if (this.options.ecmaVersion < 17 || !this.isContextual(e ? "await" : "using")) return !1;
5906
- V.lastIndex = this.pos;
5907
- var n = V.exec(this.input), r = this.pos + n[0].length;
5908
- if (B.test(this.input.slice(this.pos, r))) return !1;
5916
+ H.lastIndex = this.pos;
5917
+ var n = H.exec(this.input), r = this.pos + n[0].length;
5918
+ if (V.test(this.input.slice(this.pos, r))) return !1;
5909
5919
  if (e) {
5910
5920
  var i = r + 5, a;
5911
- if (this.input.slice(r, i) !== "using" || i === this.input.length || Oi(a = this.fullCharCodeAt(i)) || a === 92) return !1;
5912
- V.lastIndex = i;
5913
- var o = V.exec(this.input);
5914
- if (r = i + o[0].length, o && B.test(this.input.slice(i, r))) return !1;
5921
+ if (this.input.slice(r, i) !== "using" || i === this.input.length || Di(a = this.fullCharCodeAt(i)) || a === 92) return !1;
5922
+ H.lastIndex = i;
5923
+ var o = H.exec(this.input);
5924
+ if (r = i + o[0].length, o && V.test(this.input.slice(i, r))) return !1;
5915
5925
  }
5916
5926
  var s = this.fullCharCodeAt(r);
5917
- if (!Di(s) && s !== 92) return !1;
5927
+ if (!Ei(s) && s !== 92) return !1;
5918
5928
  var c = r;
5919
5929
  do
5920
5930
  r += s <= 65535 ? 1 : 2;
5921
- while (Oi(s = this.fullCharCodeAt(r)));
5931
+ while (Di(s = this.fullCharCodeAt(r)));
5922
5932
  if (s === 92) return !0;
5923
5933
  var l = this.input.slice(c, r);
5924
- if (Ci.test(l)) return !1;
5934
+ if (Si.test(l)) return !1;
5925
5935
  if (t && !e && l === "of") {
5926
- V.lastIndex = r;
5927
- var u = V.exec(this.input);
5936
+ H.lastIndex = r;
5937
+ var u = H.exec(this.input);
5928
5938
  if (r += u[0].length, this.input.charCodeAt(r) !== 61 || (s = this.input.charCodeAt(r + 1)) === 61 || s === 62) return !1;
5929
5939
  }
5930
5940
  return !0;
5931
- }, G.isAwaitUsing = function(e) {
5941
+ }, K.isAwaitUsing = function(e) {
5932
5942
  return this.isUsingKeyword(!0, e);
5933
- }, G.isUsing = function(e) {
5943
+ }, K.isUsing = function(e) {
5934
5944
  return this.isUsingKeyword(!1, e);
5935
- }, G.parseStatement = function(e, t, n) {
5945
+ }, K.parseStatement = function(e, t, n) {
5936
5946
  var r = this.type, i = this.startNode(), a;
5937
- switch (this.isLet(e) && (r = z._var, a = "let"), r) {
5938
- case z._break:
5939
- case z._continue: return this.parseBreakContinueStatement(i, r.keyword);
5940
- case z._debugger: return this.parseDebuggerStatement(i);
5941
- case z._do: return this.parseDoStatement(i);
5942
- case z._for: return this.parseForStatement(i);
5943
- case z._function: return e && (this.strict || e !== "if" && e !== "label") && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(i, !1, !e);
5944
- case z._class: return e && this.unexpected(), this.parseClass(i, !0);
5945
- case z._if: return this.parseIfStatement(i);
5946
- case z._return: return this.parseReturnStatement(i);
5947
- case z._switch: return this.parseSwitchStatement(i);
5948
- case z._throw: return this.parseThrowStatement(i);
5949
- case z._try: return this.parseTryStatement(i);
5950
- case z._const:
5951
- case z._var: return a ||= this.value, e && a !== "var" && this.unexpected(), this.parseVarStatement(i, a);
5952
- case z._while: return this.parseWhileStatement(i);
5953
- case z._with: return this.parseWithStatement(i);
5954
- case z.braceL: return this.parseBlock(!0, i);
5955
- case z.semi: return this.parseEmptyStatement(i);
5956
- case z._export:
5957
- case z._import:
5958
- if (this.options.ecmaVersion > 10 && r === z._import) {
5959
- V.lastIndex = this.pos;
5960
- var o = V.exec(this.input), s = this.pos + o[0].length, c = this.input.charCodeAt(s);
5947
+ switch (this.isLet(e) && (r = B._var, a = "let"), r) {
5948
+ case B._break:
5949
+ case B._continue: return this.parseBreakContinueStatement(i, r.keyword);
5950
+ case B._debugger: return this.parseDebuggerStatement(i);
5951
+ case B._do: return this.parseDoStatement(i);
5952
+ case B._for: return this.parseForStatement(i);
5953
+ case B._function: return e && (this.strict || e !== "if" && e !== "label") && this.options.ecmaVersion >= 6 && this.unexpected(), this.parseFunctionStatement(i, !1, !e);
5954
+ case B._class: return e && this.unexpected(), this.parseClass(i, !0);
5955
+ case B._if: return this.parseIfStatement(i);
5956
+ case B._return: return this.parseReturnStatement(i);
5957
+ case B._switch: return this.parseSwitchStatement(i);
5958
+ case B._throw: return this.parseThrowStatement(i);
5959
+ case B._try: return this.parseTryStatement(i);
5960
+ case B._const:
5961
+ case B._var: return a ||= this.value, e && a !== "var" && this.unexpected(), this.parseVarStatement(i, a);
5962
+ case B._while: return this.parseWhileStatement(i);
5963
+ case B._with: return this.parseWithStatement(i);
5964
+ case B.braceL: return this.parseBlock(!0, i);
5965
+ case B.semi: return this.parseEmptyStatement(i);
5966
+ case B._export:
5967
+ case B._import:
5968
+ if (this.options.ecmaVersion > 10 && r === B._import) {
5969
+ H.lastIndex = this.pos;
5970
+ var o = H.exec(this.input), s = this.pos + o[0].length, c = this.input.charCodeAt(s);
5961
5971
  if (c === 40 || c === 46) return this.parseExpressionStatement(i, this.parseExpression());
5962
5972
  }
5963
- return this.options.allowImportExportEverywhere || (t || this.raise(this.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")), r === z._import ? this.parseImport(i) : this.parseExport(i, n);
5973
+ return this.options.allowImportExportEverywhere || (t || this.raise(this.start, "'import' and 'export' may only appear at the top level"), this.inModule || this.raise(this.start, "'import' and 'export' may appear only with 'sourceType: module'")), r === B._import ? this.parseImport(i) : this.parseExport(i, n);
5964
5974
  default:
5965
5975
  if (this.isAsyncFunction()) return e && this.unexpected(), this.next(), this.parseFunctionStatement(i, !0, !e);
5966
5976
  var l = this.isAwaitUsing(!1) ? "await using" : this.isUsing(!1) ? "using" : null;
5967
5977
  if (l) return this.allowUsing || this.raise(this.start, "Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"), e && this.raise(this.start, "Using declaration is not allowed in single-statement positions"), l === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.next(), this.parseVar(i, !1, l), this.semicolon(), this.finishNode(i, "VariableDeclaration");
5968
5978
  var u = this.value, d = this.parseExpression();
5969
- return r === z.name && d.type === "Identifier" && this.eat(z.colon) ? this.parseLabeledStatement(i, u, d, e) : this.parseExpressionStatement(i, d);
5979
+ return r === B.name && d.type === "Identifier" && this.eat(B.colon) ? this.parseLabeledStatement(i, u, d, e) : this.parseExpressionStatement(i, d);
5970
5980
  }
5971
- }, G.parseBreakContinueStatement = function(e, t) {
5981
+ }, K.parseBreakContinueStatement = function(e, t) {
5972
5982
  var n = t === "break";
5973
- this.next(), this.eat(z.semi) || this.insertSemicolon() ? e.label = null : this.type === z.name ? (e.label = this.parseIdent(), this.semicolon()) : this.unexpected();
5983
+ this.next(), this.eat(B.semi) || this.insertSemicolon() ? e.label = null : this.type === B.name ? (e.label = this.parseIdent(), this.semicolon()) : this.unexpected();
5974
5984
  for (var r = 0; r < this.labels.length; ++r) {
5975
5985
  var i = this.labels[r];
5976
5986
  if ((e.label == null || i.name === e.label.name) && (i.kind != null && (n || i.kind === "loop") || e.label && n)) break;
5977
5987
  }
5978
5988
  return r === this.labels.length && this.raise(e.start, "Unsyntactic " + t), this.finishNode(e, n ? "BreakStatement" : "ContinueStatement");
5979
- }, G.parseDebuggerStatement = function(e) {
5989
+ }, K.parseDebuggerStatement = function(e) {
5980
5990
  return this.next(), this.semicolon(), this.finishNode(e, "DebuggerStatement");
5981
- }, G.parseDoStatement = function(e) {
5982
- return this.next(), this.labels.push(_a), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(z._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(z.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
5983
- }, G.parseForStatement = function(e) {
5991
+ }, K.parseDoStatement = function(e) {
5992
+ return this.next(), this.labels.push(ga), e.body = this.parseStatement("do"), this.labels.pop(), this.expect(B._while), e.test = this.parseParenExpression(), this.options.ecmaVersion >= 6 ? this.eat(B.semi) : this.semicolon(), this.finishNode(e, "DoWhileStatement");
5993
+ }, K.parseForStatement = function(e) {
5984
5994
  this.next();
5985
5995
  var t = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual("await") ? this.lastTokStart : -1;
5986
- if (this.labels.push(_a), this.enterScope(0), this.expect(z.parenL), this.type === z.semi) return t > -1 && this.unexpected(t), this.parseFor(e, null);
5996
+ if (this.labels.push(ga), this.enterScope(0), this.expect(B.parenL), this.type === B.semi) return t > -1 && this.unexpected(t), this.parseFor(e, null);
5987
5997
  var n = this.isLet();
5988
- if (this.type === z._var || this.type === z._const || n) {
5998
+ if (this.type === B._var || this.type === B._const || n) {
5989
5999
  var r = this.startNode(), i = n ? "let" : this.value;
5990
6000
  return this.next(), this.parseVar(r, !0, i), this.finishNode(r, "VariableDeclaration"), this.parseForAfterInit(e, r, t);
5991
6001
  }
@@ -5994,47 +6004,47 @@ G.isLet = function(e) {
5994
6004
  var c = this.startNode();
5995
6005
  return this.next(), s === "await using" && (this.canAwait || this.raise(this.start, "Await using cannot appear outside of async function"), this.next()), this.parseVar(c, !0, s), this.finishNode(c, "VariableDeclaration"), this.parseForAfterInit(e, c, t);
5996
6006
  }
5997
- var l = this.containsEsc, u = new ga(), d = this.start, f = t > -1 ? this.parseExprSubscripts(u, "await") : this.parseExpression(!0, u);
5998
- return this.type === z._in || (o = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === z._in && this.unexpected(t), e.await = !0) : o && this.options.ecmaVersion >= 8 && (f.start === d && !l && f.type === "Identifier" && f.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), a && o && this.raise(f.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(f, !1, u), this.checkLValPattern(f), this.parseForIn(e, f)) : (this.checkExpressionErrors(u, !0), t > -1 && this.unexpected(t), this.parseFor(e, f));
5999
- }, G.parseForAfterInit = function(e, t, n) {
6000
- return (this.type === z._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.type === z._in ? ((t.kind === "using" || t.kind === "await using") && !t.declarations[0].init && this.raise(this.start, "Using declaration is not allowed in for-in loops"), this.options.ecmaVersion >= 9 && n > -1 && this.unexpected(n)) : this.options.ecmaVersion >= 9 && (e.await = n > -1), this.parseForIn(e, t)) : (n > -1 && this.unexpected(n), this.parseFor(e, t));
6001
- }, G.parseFunctionStatement = function(e, t, n) {
6002
- return this.next(), this.parseFunction(e, ba | (n ? 0 : xa), !1, t);
6003
- }, G.parseIfStatement = function(e) {
6004
- return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(z._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
6005
- }, G.parseReturnStatement = function(e) {
6006
- return this.allowReturn || this.raise(this.start, "'return' outside of function"), this.next(), this.eat(z.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
6007
- }, G.parseSwitchStatement = function(e) {
6008
- this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(z.braceL), this.labels.push(va), this.enterScope(oa);
6009
- for (var t, n = !1; this.type !== z.braceR;) if (this.type === z._case || this.type === z._default) {
6010
- var r = this.type === z._case;
6011
- t && this.finishNode(t, "SwitchCase"), e.cases.push(t = this.startNode()), t.consequent = [], this.next(), r ? t.test = this.parseExpression() : (n && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), n = !0, t.test = null), this.expect(z.colon);
6007
+ var l = this.containsEsc, u = new ha(), d = this.start, f = t > -1 ? this.parseExprSubscripts(u, "await") : this.parseExpression(!0, u);
6008
+ return this.type === B._in || (o = this.options.ecmaVersion >= 6 && this.isContextual("of")) ? (t > -1 ? (this.type === B._in && this.unexpected(t), e.await = !0) : o && this.options.ecmaVersion >= 8 && (f.start === d && !l && f.type === "Identifier" && f.name === "async" ? this.unexpected() : this.options.ecmaVersion >= 9 && (e.await = !1)), a && o && this.raise(f.start, "The left-hand side of a for-of loop may not start with 'let'."), this.toAssignable(f, !1, u), this.checkLValPattern(f), this.parseForIn(e, f)) : (this.checkExpressionErrors(u, !0), t > -1 && this.unexpected(t), this.parseFor(e, f));
6009
+ }, K.parseForAfterInit = function(e, t, n) {
6010
+ return (this.type === B._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) && t.declarations.length === 1 ? (this.type === B._in ? ((t.kind === "using" || t.kind === "await using") && !t.declarations[0].init && this.raise(this.start, "Using declaration is not allowed in for-in loops"), this.options.ecmaVersion >= 9 && n > -1 && this.unexpected(n)) : this.options.ecmaVersion >= 9 && (e.await = n > -1), this.parseForIn(e, t)) : (n > -1 && this.unexpected(n), this.parseFor(e, t));
6011
+ }, K.parseFunctionStatement = function(e, t, n) {
6012
+ return this.next(), this.parseFunction(e, ya | (n ? 0 : ba), !1, t);
6013
+ }, K.parseIfStatement = function(e) {
6014
+ return this.next(), e.test = this.parseParenExpression(), e.consequent = this.parseStatement("if"), e.alternate = this.eat(B._else) ? this.parseStatement("if") : null, this.finishNode(e, "IfStatement");
6015
+ }, K.parseReturnStatement = function(e) {
6016
+ return this.allowReturn || this.raise(this.start, "'return' outside of function"), this.next(), this.eat(B.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
6017
+ }, K.parseSwitchStatement = function(e) {
6018
+ this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(B.braceL), this.labels.push(_a), this.enterScope(aa);
6019
+ for (var t, n = !1; this.type !== B.braceR;) if (this.type === B._case || this.type === B._default) {
6020
+ var r = this.type === B._case;
6021
+ t && this.finishNode(t, "SwitchCase"), e.cases.push(t = this.startNode()), t.consequent = [], this.next(), r ? t.test = this.parseExpression() : (n && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), n = !0, t.test = null), this.expect(B.colon);
6012
6022
  } else t || this.unexpected(), t.consequent.push(this.parseStatement(null));
6013
6023
  return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
6014
- }, G.parseThrowStatement = function(e) {
6015
- return this.next(), B.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");
6024
+ }, K.parseThrowStatement = function(e) {
6025
+ return this.next(), V.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
6016
6026
  };
6017
- var ya = [];
6018
- G.parseCatchClauseParam = function() {
6027
+ var va = [];
6028
+ K.parseCatchClauseParam = function() {
6019
6029
  var e = this.parseBindingAtom(), t = e.type === "Identifier";
6020
- return this.enterScope(t ? ta : 0), this.checkLValPattern(e, t ? pa : da), this.expect(z.parenR), e;
6021
- }, G.parseTryStatement = function(e) {
6022
- if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === z._catch) {
6030
+ return this.enterScope(t ? ea : 0), this.checkLValPattern(e, t ? fa : ua), this.expect(B.parenR), e;
6031
+ }, K.parseTryStatement = function(e) {
6032
+ if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === B._catch) {
6023
6033
  var t = this.startNode();
6024
- this.next(), this.eat(z.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");
6034
+ this.next(), this.eat(B.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");
6025
6035
  }
6026
- return e.finalizer = this.eat(z._finally) ? this.parseBlock() : null, !e.handler && !e.finalizer && this.raise(e.start, "Missing catch or finally clause"), this.finishNode(e, "TryStatement");
6027
- }, G.parseVarStatement = function(e, t, n) {
6036
+ return e.finalizer = this.eat(B._finally) ? this.parseBlock() : null, !e.handler && !e.finalizer && this.raise(e.start, "Missing catch or finally clause"), this.finishNode(e, "TryStatement");
6037
+ }, K.parseVarStatement = function(e, t, n) {
6028
6038
  return this.next(), this.parseVar(e, !1, t, n), this.semicolon(), this.finishNode(e, "VariableDeclaration");
6029
- }, G.parseWhileStatement = function(e) {
6030
- return this.next(), e.test = this.parseParenExpression(), this.labels.push(_a), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
6031
- }, G.parseWithStatement = function(e) {
6039
+ }, K.parseWhileStatement = function(e) {
6040
+ return this.next(), e.test = this.parseParenExpression(), this.labels.push(ga), e.body = this.parseStatement("while"), this.labels.pop(), this.finishNode(e, "WhileStatement");
6041
+ }, K.parseWithStatement = function(e) {
6032
6042
  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");
6033
- }, G.parseEmptyStatement = function(e) {
6043
+ }, K.parseEmptyStatement = function(e) {
6034
6044
  return this.next(), this.finishNode(e, "EmptyStatement");
6035
- }, G.parseLabeledStatement = function(e, t, n, r) {
6045
+ }, K.parseLabeledStatement = function(e, t, n, r) {
6036
6046
  for (var i = 0, a = this.labels; i < a.length; i += 1) a[i].name === t && this.raise(n.start, "Label '" + t + "' is already declared");
6037
- for (var o = this.type.isLoop ? "loop" : this.type === z._switch ? "switch" : null, s = this.labels.length - 1; s >= 0; s--) {
6047
+ for (var o = this.type.isLoop ? "loop" : this.type === B._switch ? "switch" : null, s = this.labels.length - 1; s >= 0; s--) {
6038
6048
  var c = this.labels[s];
6039
6049
  if (c.statementStart === e.start) c.statementStart = this.start, c.kind = o;
6040
6050
  else break;
@@ -6044,113 +6054,113 @@ G.parseCatchClauseParam = function() {
6044
6054
  kind: o,
6045
6055
  statementStart: this.start
6046
6056
  }), e.body = this.parseStatement(r ? r.indexOf("label") === -1 ? r + "label" : r : "label"), this.labels.pop(), e.label = n, this.finishNode(e, "LabeledStatement");
6047
- }, G.parseExpressionStatement = function(e, t) {
6057
+ }, K.parseExpressionStatement = function(e, t) {
6048
6058
  return e.expression = t, this.semicolon(), this.finishNode(e, "ExpressionStatement");
6049
- }, G.parseBlock = function(e, t, n) {
6050
- for (e === void 0 && (e = !0), t === void 0 && (t = this.startNode()), t.body = [], this.expect(z.braceL), e && this.enterScope(0); this.type !== z.braceR;) {
6059
+ }, K.parseBlock = function(e, t, n) {
6060
+ for (e === void 0 && (e = !0), t === void 0 && (t = this.startNode()), t.body = [], this.expect(B.braceL), e && this.enterScope(0); this.type !== B.braceR;) {
6051
6061
  var r = this.parseStatement(null);
6052
6062
  t.body.push(r);
6053
6063
  }
6054
6064
  return n && (this.strict = !1), this.next(), e && this.exitScope(), this.finishNode(t, "BlockStatement");
6055
- }, G.parseFor = function(e, t) {
6056
- return e.init = t, this.expect(z.semi), e.test = this.type === z.semi ? null : this.parseExpression(), this.expect(z.semi), e.update = this.type === z.parenR ? null : this.parseExpression(), this.expect(z.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, "ForStatement");
6057
- }, G.parseForIn = function(e, t) {
6058
- var n = this.type === z._in;
6059
- return this.next(), t.type === "VariableDeclaration" && t.declarations[0].init != null && (!n || this.options.ecmaVersion < 8 || this.strict || t.kind !== "var" || t.declarations[0].id.type !== "Identifier") && this.raise(t.start, (n ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"), e.left = t, e.right = n ? this.parseExpression() : this.parseMaybeAssign(), this.expect(z.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, n ? "ForInStatement" : "ForOfStatement");
6060
- }, G.parseVar = function(e, t, n, r) {
6065
+ }, K.parseFor = function(e, t) {
6066
+ return e.init = t, this.expect(B.semi), e.test = this.type === B.semi ? null : this.parseExpression(), this.expect(B.semi), e.update = this.type === B.parenR ? null : this.parseExpression(), this.expect(B.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, "ForStatement");
6067
+ }, K.parseForIn = function(e, t) {
6068
+ var n = this.type === B._in;
6069
+ return this.next(), t.type === "VariableDeclaration" && t.declarations[0].init != null && (!n || this.options.ecmaVersion < 8 || this.strict || t.kind !== "var" || t.declarations[0].id.type !== "Identifier") && this.raise(t.start, (n ? "for-in" : "for-of") + " loop variable declaration may not have an initializer"), e.left = t, e.right = n ? this.parseExpression() : this.parseMaybeAssign(), this.expect(B.parenR), e.body = this.parseStatement("for"), this.exitScope(), this.labels.pop(), this.finishNode(e, n ? "ForInStatement" : "ForOfStatement");
6070
+ }, K.parseVar = function(e, t, n, r) {
6061
6071
  for (e.declarations = [], e.kind = n;;) {
6062
6072
  var i = this.startNode();
6063
- if (this.parseVarId(i, n), this.eat(z.eq) ? i.init = this.parseMaybeAssign(t) : !r && n === "const" && !(this.type === z._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !r && (n === "using" || n === "await using") && this.options.ecmaVersion >= 17 && this.type !== z._in && !this.isContextual("of") ? this.raise(this.lastTokEnd, "Missing initializer in " + n + " declaration") : !r && i.id.type !== "Identifier" && !(t && (this.type === z._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : i.init = null, e.declarations.push(this.finishNode(i, "VariableDeclarator")), !this.eat(z.comma)) break;
6073
+ if (this.parseVarId(i, n), this.eat(B.eq) ? i.init = this.parseMaybeAssign(t) : !r && n === "const" && !(this.type === B._in || this.options.ecmaVersion >= 6 && this.isContextual("of")) ? this.unexpected() : !r && (n === "using" || n === "await using") && this.options.ecmaVersion >= 17 && this.type !== B._in && !this.isContextual("of") ? this.raise(this.lastTokEnd, "Missing initializer in " + n + " declaration") : !r && i.id.type !== "Identifier" && !(t && (this.type === B._in || this.isContextual("of"))) ? this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value") : i.init = null, e.declarations.push(this.finishNode(i, "VariableDeclarator")), !this.eat(B.comma)) break;
6064
6074
  }
6065
6075
  return e;
6066
- }, G.parseVarId = function(e, t) {
6067
- e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? ua : da, !1);
6076
+ }, K.parseVarId = function(e, t) {
6077
+ e.id = t === "using" || t === "await using" ? this.parseIdent() : this.parseBindingAtom(), this.checkLValPattern(e.id, t === "var" ? la : ua, !1);
6068
6078
  };
6069
- var ba = 1, xa = 2, Sa = 4;
6070
- G.parseFunction = function(e, t, n, r, i) {
6071
- this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === z.star && t & xa && this.unexpected(), e.generator = this.eat(z.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & ba && (e.id = t & Sa && this.type !== z.name ? null : this.parseIdent(), e.id && !(t & xa) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? ua : da : fa));
6079
+ var ya = 1, ba = 2, xa = 4;
6080
+ K.parseFunction = function(e, t, n, r, i) {
6081
+ this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !r) && (this.type === B.star && t & ba && this.unexpected(), e.generator = this.eat(B.star)), this.options.ecmaVersion >= 8 && (e.async = !!r), t & ya && (e.id = t & xa && this.type !== B.name ? null : this.parseIdent(), e.id && !(t & ba) && this.checkLValSimple(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? la : ua : da));
6072
6082
  var a = this.yieldPos, o = this.awaitPos, s = this.awaitIdentPos;
6073
- return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(ca(e.async, e.generator)), t & ba || (e.id = this.type === z.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, n, !1, i), this.yieldPos = a, this.awaitPos = o, this.awaitIdentPos = s, this.finishNode(e, t & ba ? "FunctionDeclaration" : "FunctionExpression");
6074
- }, G.parseFunctionParams = function(e) {
6075
- this.expect(z.parenL), e.params = this.parseBindingList(z.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
6076
- }, G.parseClass = function(e, t) {
6083
+ return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(sa(e.async, e.generator)), t & ya || (e.id = this.type === B.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, n, !1, i), this.yieldPos = a, this.awaitPos = o, this.awaitIdentPos = s, this.finishNode(e, t & ya ? "FunctionDeclaration" : "FunctionExpression");
6084
+ }, K.parseFunctionParams = function(e) {
6085
+ this.expect(B.parenL), e.params = this.parseBindingList(B.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
6086
+ }, K.parseClass = function(e, t) {
6077
6087
  this.next();
6078
6088
  var n = this.strict;
6079
6089
  this.strict = !0, this.parseClassId(e, t), this.parseClassSuper(e);
6080
6090
  var r = this.enterClassBody(), i = this.startNode(), a = !1;
6081
- for (i.body = [], this.expect(z.braceL); this.type !== z.braceR;) {
6091
+ for (i.body = [], this.expect(B.braceL); this.type !== B.braceR;) {
6082
6092
  var o = this.parseClassElement(e.superClass !== null);
6083
- o && (i.body.push(o), o.type === "MethodDefinition" && o.kind === "constructor" ? (a && this.raiseRecoverable(o.start, "Duplicate constructor in the same class"), a = !0) : o.key && o.key.type === "PrivateIdentifier" && Ca(r, o) && this.raiseRecoverable(o.key.start, "Identifier '#" + o.key.name + "' has already been declared"));
6093
+ o && (i.body.push(o), o.type === "MethodDefinition" && o.kind === "constructor" ? (a && this.raiseRecoverable(o.start, "Duplicate constructor in the same class"), a = !0) : o.key && o.key.type === "PrivateIdentifier" && Sa(r, o) && this.raiseRecoverable(o.key.start, "Identifier '#" + o.key.name + "' has already been declared"));
6084
6094
  }
6085
6095
  return this.strict = n, this.next(), e.body = this.finishNode(i, "ClassBody"), this.exitClassBody(), this.finishNode(e, t ? "ClassDeclaration" : "ClassExpression");
6086
- }, G.parseClassElement = function(e) {
6087
- if (this.eat(z.semi)) return null;
6096
+ }, K.parseClassElement = function(e) {
6097
+ if (this.eat(B.semi)) return null;
6088
6098
  var t = this.options.ecmaVersion, n = this.startNode(), r = "", i = !1, a = !1, o = "method", s = !1;
6089
6099
  if (this.eatContextual("static")) {
6090
- if (t >= 13 && this.eat(z.braceL)) return this.parseClassStaticBlock(n), n;
6091
- this.isClassElementNameStart() || this.type === z.star ? s = !0 : r = "static";
6100
+ if (t >= 13 && this.eat(B.braceL)) return this.parseClassStaticBlock(n), n;
6101
+ this.isClassElementNameStart() || this.type === B.star ? s = !0 : r = "static";
6092
6102
  }
6093
- if (n.static = s, !r && t >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === z.star) && !this.canInsertSemicolon() ? a = !0 : r = "async"), !r && (t >= 9 || !a) && this.eat(z.star) && (i = !0), !r && !a && !i) {
6103
+ if (n.static = s, !r && t >= 8 && this.eatContextual("async") && ((this.isClassElementNameStart() || this.type === B.star) && !this.canInsertSemicolon() ? a = !0 : r = "async"), !r && (t >= 9 || !a) && this.eat(B.star) && (i = !0), !r && !a && !i) {
6094
6104
  var c = this.value;
6095
6105
  (this.eatContextual("get") || this.eatContextual("set")) && (this.isClassElementNameStart() ? o = c : r = c);
6096
6106
  }
6097
- if (r ? (n.computed = !1, n.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), n.key.name = r, this.finishNode(n.key, "Identifier")) : this.parseClassElementName(n), t < 13 || this.type === z.parenL || o !== "method" || i || a) {
6098
- var l = !n.static && wa(n, "constructor"), u = l && e;
6107
+ if (r ? (n.computed = !1, n.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc), n.key.name = r, this.finishNode(n.key, "Identifier")) : this.parseClassElementName(n), t < 13 || this.type === B.parenL || o !== "method" || i || a) {
6108
+ var l = !n.static && Ca(n, "constructor"), u = l && e;
6099
6109
  l && o !== "method" && this.raise(n.key.start, "Constructor can't have get/set modifier"), n.kind = l ? "constructor" : o, this.parseClassMethod(n, i, a, u);
6100
6110
  } else this.parseClassField(n);
6101
6111
  return n;
6102
- }, G.isClassElementNameStart = function() {
6103
- return this.type === z.name || this.type === z.privateId || this.type === z.num || this.type === z.string || this.type === z.bracketL || this.type.keyword;
6104
- }, G.parseClassElementName = function(e) {
6105
- this.type === z.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);
6106
- }, G.parseClassMethod = function(e, t, n, r) {
6112
+ }, K.isClassElementNameStart = function() {
6113
+ return this.type === B.name || this.type === B.privateId || this.type === B.num || this.type === B.string || this.type === B.bracketL || this.type.keyword;
6114
+ }, K.parseClassElementName = function(e) {
6115
+ this.type === B.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);
6116
+ }, K.parseClassMethod = function(e, t, n, r) {
6107
6117
  var i = e.key;
6108
- e.kind === "constructor" ? (t && this.raise(i.start, "Constructor can't be a generator"), n && this.raise(i.start, "Constructor can't be an async method")) : e.static && wa(e, "prototype") && this.raise(i.start, "Classes may not have a static property named prototype");
6118
+ e.kind === "constructor" ? (t && this.raise(i.start, "Constructor can't be a generator"), n && this.raise(i.start, "Constructor can't be an async method")) : e.static && Ca(e, "prototype") && this.raise(i.start, "Classes may not have a static property named prototype");
6109
6119
  var a = e.value = this.parseMethod(t, n, r);
6110
6120
  return e.kind === "get" && a.params.length !== 0 && this.raiseRecoverable(a.start, "getter should have no params"), e.kind === "set" && a.params.length !== 1 && this.raiseRecoverable(a.start, "setter should have exactly one param"), e.kind === "set" && a.params[0].type === "RestElement" && this.raiseRecoverable(a.params[0].start, "Setter cannot use rest params"), this.finishNode(e, "MethodDefinition");
6111
- }, G.parseClassField = function(e) {
6112
- return wa(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && wa(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(z.eq) ? (this.enterScope(aa | na), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
6113
- }, G.parseClassStaticBlock = function(e) {
6121
+ }, K.parseClassField = function(e) {
6122
+ return Ca(e, "constructor") ? this.raise(e.key.start, "Classes can't have a field named 'constructor'") : e.static && Ca(e, "prototype") && this.raise(e.key.start, "Classes can't have a static field named 'prototype'"), this.eat(B.eq) ? (this.enterScope(ia | ta), e.value = this.parseMaybeAssign(), this.exitScope()) : e.value = null, this.semicolon(), this.finishNode(e, "PropertyDefinition");
6123
+ }, K.parseClassStaticBlock = function(e) {
6114
6124
  e.body = [];
6115
6125
  var t = this.labels;
6116
- for (this.labels = [], this.enterScope(ia | na); this.type !== z.braceR;) {
6126
+ for (this.labels = [], this.enterScope(ra | ta); this.type !== B.braceR;) {
6117
6127
  var n = this.parseStatement(null);
6118
6128
  e.body.push(n);
6119
6129
  }
6120
6130
  return this.next(), this.exitScope(), this.labels = t, this.finishNode(e, "StaticBlock");
6121
- }, G.parseClassId = function(e, t) {
6122
- this.type === z.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, da, !1)) : (t === !0 && this.unexpected(), e.id = null);
6123
- }, G.parseClassSuper = function(e) {
6124
- e.superClass = this.eat(z._extends) ? this.parseExprSubscripts(null, !1) : null;
6125
- }, G.enterClassBody = function() {
6131
+ }, K.parseClassId = function(e, t) {
6132
+ this.type === B.name ? (e.id = this.parseIdent(), t && this.checkLValSimple(e.id, ua, !1)) : (t === !0 && this.unexpected(), e.id = null);
6133
+ }, K.parseClassSuper = function(e) {
6134
+ e.superClass = this.eat(B._extends) ? this.parseExprSubscripts(null, !1) : null;
6135
+ }, K.enterClassBody = function() {
6126
6136
  var e = {
6127
6137
  declared: Object.create(null),
6128
6138
  used: []
6129
6139
  };
6130
6140
  return this.privateNameStack.push(e), e.declared;
6131
- }, G.exitClassBody = function() {
6141
+ }, K.exitClassBody = function() {
6132
6142
  var e = this.privateNameStack.pop(), t = e.declared, n = e.used;
6133
6143
  if (this.options.checkPrivateFields) for (var r = this.privateNameStack.length, i = r === 0 ? null : this.privateNameStack[r - 1], a = 0; a < n.length; ++a) {
6134
6144
  var o = n[a];
6135
- Li(t, o.name) || (i ? i.used.push(o) : this.raiseRecoverable(o.start, "Private field '#" + o.name + "' must be declared in an enclosing class"));
6145
+ Ii(t, o.name) || (i ? i.used.push(o) : this.raiseRecoverable(o.start, "Private field '#" + o.name + "' must be declared in an enclosing class"));
6136
6146
  }
6137
6147
  };
6138
- function Ca(e, t) {
6148
+ function Sa(e, t) {
6139
6149
  var n = t.key.name, r = e[n], i = "true";
6140
6150
  return t.type === "MethodDefinition" && (t.kind === "get" || t.kind === "set") && (i = (t.static ? "s" : "i") + t.kind), r === "iget" && i === "iset" || r === "iset" && i === "iget" || r === "sget" && i === "sset" || r === "sset" && i === "sget" ? (e[n] = "true", !1) : r ? !0 : (e[n] = i, !1);
6141
6151
  }
6142
- function wa(e, t) {
6152
+ function Ca(e, t) {
6143
6153
  var n = e.computed, r = e.key;
6144
6154
  return !n && (r.type === "Identifier" && r.name === t || r.type === "Literal" && r.value === t);
6145
6155
  }
6146
- G.parseExportAllDeclaration = function(e, t) {
6147
- 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 !== z.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ExportAllDeclaration");
6148
- }, G.parseExport = function(e, t) {
6149
- if (this.next(), this.eat(z.star)) return this.parseExportAllDeclaration(e, t);
6150
- if (this.eat(z._default)) return this.checkExport(t, "default", this.lastTokStart), e.declaration = this.parseExportDefaultDeclaration(), this.finishNode(e, "ExportDefaultDeclaration");
6156
+ K.parseExportAllDeclaration = function(e, t) {
6157
+ 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 !== B.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ExportAllDeclaration");
6158
+ }, K.parseExport = function(e, t) {
6159
+ if (this.next(), this.eat(B.star)) return this.parseExportAllDeclaration(e, t);
6160
+ if (this.eat(B._default)) return this.checkExport(t, "default", this.lastTokStart), e.declaration = this.parseExportDefaultDeclaration(), this.finishNode(e, "ExportDefaultDeclaration");
6151
6161
  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 = []);
6152
6162
  else {
6153
- if (e.declaration = null, e.specifiers = this.parseExportSpecifiers(t), this.eatContextual("from")) this.type !== z.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause());
6163
+ if (e.declaration = null, e.specifiers = this.parseExportSpecifiers(t), this.eatContextual("from")) this.type !== B.string && this.unexpected(), e.source = this.parseExprAtom(), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause());
6154
6164
  else {
6155
6165
  for (var n = 0, r = e.specifiers; n < r.length; n += 1) {
6156
6166
  var i = r[n];
@@ -6161,23 +6171,23 @@ G.parseExportAllDeclaration = function(e, t) {
6161
6171
  this.semicolon();
6162
6172
  }
6163
6173
  return this.finishNode(e, "ExportNamedDeclaration");
6164
- }, G.parseExportDeclaration = function(e) {
6174
+ }, K.parseExportDeclaration = function(e) {
6165
6175
  return this.parseStatement(null);
6166
- }, G.parseExportDefaultDeclaration = function() {
6176
+ }, K.parseExportDefaultDeclaration = function() {
6167
6177
  var e;
6168
- if (this.type === z._function || (e = this.isAsyncFunction())) {
6178
+ if (this.type === B._function || (e = this.isAsyncFunction())) {
6169
6179
  var t = this.startNode();
6170
- return this.next(), e && this.next(), this.parseFunction(t, ba | Sa, !1, e);
6180
+ return this.next(), e && this.next(), this.parseFunction(t, ya | xa, !1, e);
6171
6181
  }
6172
- if (this.type === z._class) {
6182
+ if (this.type === B._class) {
6173
6183
  var n = this.startNode();
6174
6184
  return this.parseClass(n, "nullableID");
6175
6185
  }
6176
6186
  var r = this.parseMaybeAssign();
6177
6187
  return this.semicolon(), r;
6178
- }, G.checkExport = function(e, t, n) {
6179
- e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), Li(e, t) && this.raiseRecoverable(n, "Duplicate export '" + t + "'"), e[t] = !0);
6180
- }, G.checkPatternExport = function(e, t) {
6188
+ }, K.checkExport = function(e, t, n) {
6189
+ e && (typeof t != "string" && (t = t.type === "Identifier" ? t.name : t.value), Ii(e, t) && this.raiseRecoverable(n, "Duplicate export '" + t + "'"), e[t] = !0);
6190
+ }, K.checkPatternExport = function(e, t) {
6181
6191
  var n = t.type;
6182
6192
  if (n === "Identifier") this.checkExport(e, t, t.start);
6183
6193
  else if (n === "ObjectPattern") for (var r = 0, i = t.properties; r < i.length; r += 1) {
@@ -6189,72 +6199,72 @@ G.parseExportAllDeclaration = function(e, t) {
6189
6199
  c && this.checkPatternExport(e, c);
6190
6200
  }
6191
6201
  else n === "Property" ? this.checkPatternExport(e, t.value) : n === "AssignmentPattern" ? this.checkPatternExport(e, t.left) : n === "RestElement" && this.checkPatternExport(e, t.argument);
6192
- }, G.checkVariableExport = function(e, t) {
6202
+ }, K.checkVariableExport = function(e, t) {
6193
6203
  if (e) for (var n = 0, r = t; n < r.length; n += 1) {
6194
6204
  var i = r[n];
6195
6205
  this.checkPatternExport(e, i.id);
6196
6206
  }
6197
- }, G.shouldParseExportStatement = function() {
6207
+ }, K.shouldParseExportStatement = function() {
6198
6208
  return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
6199
- }, G.parseExportSpecifier = function(e) {
6209
+ }, K.parseExportSpecifier = function(e) {
6200
6210
  var t = this.startNode();
6201
6211
  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");
6202
- }, G.parseExportSpecifiers = function(e) {
6212
+ }, K.parseExportSpecifiers = function(e) {
6203
6213
  var t = [], n = !0;
6204
- for (this.expect(z.braceL); !this.eat(z.braceR);) {
6214
+ for (this.expect(B.braceL); !this.eat(B.braceR);) {
6205
6215
  if (n) n = !1;
6206
- else if (this.expect(z.comma), this.afterTrailingComma(z.braceR)) break;
6216
+ else if (this.expect(B.comma), this.afterTrailingComma(B.braceR)) break;
6207
6217
  t.push(this.parseExportSpecifier(e));
6208
6218
  }
6209
6219
  return t;
6210
- }, G.parseImport = function(e) {
6211
- return this.next(), this.type === z.string ? (e.specifiers = ya, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === z.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
6212
- }, G.parseImportSpecifier = function() {
6220
+ }, K.parseImport = function(e) {
6221
+ return this.next(), this.type === B.string ? (e.specifiers = va, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === B.string ? this.parseExprAtom() : this.unexpected()), this.options.ecmaVersion >= 16 && (e.attributes = this.parseWithClause()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
6222
+ }, K.parseImportSpecifier = function() {
6213
6223
  var e = this.startNode();
6214
- return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, da), this.finishNode(e, "ImportSpecifier");
6215
- }, G.parseImportDefaultSpecifier = function() {
6224
+ return e.imported = this.parseModuleExportName(), this.eatContextual("as") ? e.local = this.parseIdent() : (this.checkUnreserved(e.imported), e.local = e.imported), this.checkLValSimple(e.local, ua), this.finishNode(e, "ImportSpecifier");
6225
+ }, K.parseImportDefaultSpecifier = function() {
6216
6226
  var e = this.startNode();
6217
- return e.local = this.parseIdent(), this.checkLValSimple(e.local, da), this.finishNode(e, "ImportDefaultSpecifier");
6218
- }, G.parseImportNamespaceSpecifier = function() {
6227
+ return e.local = this.parseIdent(), this.checkLValSimple(e.local, ua), this.finishNode(e, "ImportDefaultSpecifier");
6228
+ }, K.parseImportNamespaceSpecifier = function() {
6219
6229
  var e = this.startNode();
6220
- return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, da), this.finishNode(e, "ImportNamespaceSpecifier");
6221
- }, G.parseImportSpecifiers = function() {
6230
+ return this.next(), this.expectContextual("as"), e.local = this.parseIdent(), this.checkLValSimple(e.local, ua), this.finishNode(e, "ImportNamespaceSpecifier");
6231
+ }, K.parseImportSpecifiers = function() {
6222
6232
  var e = [], t = !0;
6223
- if (this.type === z.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(z.comma))) return e;
6224
- if (this.type === z.star) return e.push(this.parseImportNamespaceSpecifier()), e;
6225
- for (this.expect(z.braceL); !this.eat(z.braceR);) {
6233
+ if (this.type === B.name && (e.push(this.parseImportDefaultSpecifier()), !this.eat(B.comma))) return e;
6234
+ if (this.type === B.star) return e.push(this.parseImportNamespaceSpecifier()), e;
6235
+ for (this.expect(B.braceL); !this.eat(B.braceR);) {
6226
6236
  if (t) t = !1;
6227
- else if (this.expect(z.comma), this.afterTrailingComma(z.braceR)) break;
6237
+ else if (this.expect(B.comma), this.afterTrailingComma(B.braceR)) break;
6228
6238
  e.push(this.parseImportSpecifier());
6229
6239
  }
6230
6240
  return e;
6231
- }, G.parseWithClause = function() {
6241
+ }, K.parseWithClause = function() {
6232
6242
  var e = [];
6233
- if (!this.eat(z._with)) return e;
6234
- this.expect(z.braceL);
6235
- for (var t = {}, n = !0; !this.eat(z.braceR);) {
6243
+ if (!this.eat(B._with)) return e;
6244
+ this.expect(B.braceL);
6245
+ for (var t = {}, n = !0; !this.eat(B.braceR);) {
6236
6246
  if (n) n = !1;
6237
- else if (this.expect(z.comma), this.afterTrailingComma(z.braceR)) break;
6247
+ else if (this.expect(B.comma), this.afterTrailingComma(B.braceR)) break;
6238
6248
  var r = this.parseImportAttribute(), i = r.key.type === "Identifier" ? r.key.name : r.key.value;
6239
- Li(t, i) && this.raiseRecoverable(r.key.start, "Duplicate attribute key '" + i + "'"), t[i] = !0, e.push(r);
6249
+ Ii(t, i) && this.raiseRecoverable(r.key.start, "Duplicate attribute key '" + i + "'"), t[i] = !0, e.push(r);
6240
6250
  }
6241
6251
  return e;
6242
- }, G.parseImportAttribute = function() {
6252
+ }, K.parseImportAttribute = function() {
6243
6253
  var e = this.startNode();
6244
- return e.key = this.type === z.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never"), this.expect(z.colon), this.type !== z.string && this.unexpected(), e.value = this.parseExprAtom(), this.finishNode(e, "ImportAttribute");
6245
- }, G.parseModuleExportName = function() {
6246
- if (this.options.ecmaVersion >= 13 && this.type === z.string) {
6254
+ return e.key = this.type === B.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never"), this.expect(B.colon), this.type !== B.string && this.unexpected(), e.value = this.parseExprAtom(), this.finishNode(e, "ImportAttribute");
6255
+ }, K.parseModuleExportName = function() {
6256
+ if (this.options.ecmaVersion >= 13 && this.type === B.string) {
6247
6257
  var e = this.parseLiteral(this.value);
6248
- return Hi.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
6258
+ return Vi.test(e.value) && this.raise(e.start, "An export name cannot include a lone surrogate."), e;
6249
6259
  }
6250
6260
  return this.parseIdent(!0);
6251
- }, G.adaptDirectivePrologue = function(e) {
6261
+ }, K.adaptDirectivePrologue = function(e) {
6252
6262
  for (var t = 0; t < e.length && this.isDirectiveCandidate(e[t]); ++t) e[t].directive = e[t].expression.raw.slice(1, -1);
6253
- }, G.isDirectiveCandidate = function(e) {
6263
+ }, K.isDirectiveCandidate = function(e) {
6254
6264
  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] === "'");
6255
6265
  };
6256
- var K = H.prototype;
6257
- K.toAssignable = function(e, t, n) {
6266
+ var q = U.prototype;
6267
+ q.toAssignable = function(e, t, n) {
6258
6268
  if (this.options.ecmaVersion >= 6 && e) switch (e.type) {
6259
6269
  case "Identifier":
6260
6270
  this.inAsync && e.name === "await" && this.raise(e.start, "Cannot use 'await' as identifier inside an async function");
@@ -6293,7 +6303,7 @@ K.toAssignable = function(e, t, n) {
6293
6303
  }
6294
6304
  else n && this.checkPatternErrors(n, !0);
6295
6305
  return e;
6296
- }, K.toAssignableList = function(e, t) {
6306
+ }, q.toAssignableList = function(e, t) {
6297
6307
  for (var n = e.length, r = 0; r < n; r++) {
6298
6308
  var i = e[r];
6299
6309
  i && this.toAssignable(i, t);
@@ -6303,44 +6313,44 @@ K.toAssignable = function(e, t, n) {
6303
6313
  this.options.ecmaVersion === 6 && t && a && a.type === "RestElement" && a.argument.type !== "Identifier" && this.unexpected(a.argument.start);
6304
6314
  }
6305
6315
  return e;
6306
- }, K.parseSpread = function(e) {
6316
+ }, q.parseSpread = function(e) {
6307
6317
  var t = this.startNode();
6308
6318
  return this.next(), t.argument = this.parseMaybeAssign(!1, e), this.finishNode(t, "SpreadElement");
6309
- }, K.parseRestBinding = function() {
6319
+ }, q.parseRestBinding = function() {
6310
6320
  var e = this.startNode();
6311
- return this.next(), this.options.ecmaVersion === 6 && this.type !== z.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
6312
- }, K.parseBindingAtom = function() {
6321
+ return this.next(), this.options.ecmaVersion === 6 && this.type !== B.name && this.unexpected(), e.argument = this.parseBindingAtom(), this.finishNode(e, "RestElement");
6322
+ }, q.parseBindingAtom = function() {
6313
6323
  if (this.options.ecmaVersion >= 6) switch (this.type) {
6314
- case z.bracketL:
6324
+ case B.bracketL:
6315
6325
  var e = this.startNode();
6316
- return this.next(), e.elements = this.parseBindingList(z.bracketR, !0, !0), this.finishNode(e, "ArrayPattern");
6317
- case z.braceL: return this.parseObj(!0);
6326
+ return this.next(), e.elements = this.parseBindingList(B.bracketR, !0, !0), this.finishNode(e, "ArrayPattern");
6327
+ case B.braceL: return this.parseObj(!0);
6318
6328
  }
6319
6329
  return this.parseIdent();
6320
- }, K.parseBindingList = function(e, t, n, r) {
6321
- for (var i = [], a = !0; !this.eat(e);) if (a ? a = !1 : this.expect(z.comma), t && this.type === z.comma) i.push(null);
6330
+ }, q.parseBindingList = function(e, t, n, r) {
6331
+ for (var i = [], a = !0; !this.eat(e);) if (a ? a = !1 : this.expect(B.comma), t && this.type === B.comma) i.push(null);
6322
6332
  else if (n && this.afterTrailingComma(e)) break;
6323
- else if (this.type === z.ellipsis) {
6333
+ else if (this.type === B.ellipsis) {
6324
6334
  var o = this.parseRestBinding();
6325
- this.parseBindingListItem(o), i.push(o), this.type === z.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(e);
6335
+ this.parseBindingListItem(o), i.push(o), this.type === B.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.expect(e);
6326
6336
  break;
6327
6337
  } else i.push(this.parseAssignableListItem(r));
6328
6338
  return i;
6329
- }, K.parseAssignableListItem = function(e) {
6339
+ }, q.parseAssignableListItem = function(e) {
6330
6340
  var t = this.parseMaybeDefault(this.start, this.startLoc);
6331
6341
  return this.parseBindingListItem(t), t;
6332
- }, K.parseBindingListItem = function(e) {
6342
+ }, q.parseBindingListItem = function(e) {
6333
6343
  return e;
6334
- }, K.parseMaybeDefault = function(e, t, n) {
6335
- if (n ||= this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(z.eq)) return n;
6344
+ }, q.parseMaybeDefault = function(e, t, n) {
6345
+ if (n ||= this.parseBindingAtom(), this.options.ecmaVersion < 6 || !this.eat(B.eq)) return n;
6336
6346
  var r = this.startNodeAt(e, t);
6337
6347
  return r.left = n, r.right = this.parseMaybeAssign(), this.finishNode(r, "AssignmentPattern");
6338
- }, K.checkLValSimple = function(e, t, n) {
6339
- t === void 0 && (t = la);
6340
- var r = t !== la;
6348
+ }, q.checkLValSimple = function(e, t, n) {
6349
+ t === void 0 && (t = ca);
6350
+ var r = t !== ca;
6341
6351
  switch (e.type) {
6342
6352
  case "Identifier":
6343
- this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (r ? "Binding " : "Assigning to ") + e.name + " in strict mode"), r && (t === da && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), n && (Li(n, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), n[e.name] = !0), t !== ma && this.declareName(e.name, t, e.start));
6353
+ this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (r ? "Binding " : "Assigning to ") + e.name + " in strict mode"), r && (t === ua && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), n && (Ii(n, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), n[e.name] = !0), t !== pa && this.declareName(e.name, t, e.start));
6344
6354
  break;
6345
6355
  case "ChainExpression":
6346
6356
  this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
@@ -6351,8 +6361,8 @@ K.toAssignable = function(e, t, n) {
6351
6361
  case "ParenthesizedExpression": return r && this.raiseRecoverable(e.start, "Binding parenthesized expression"), this.checkLValSimple(e.expression, t, n);
6352
6362
  default: this.raise(e.start, (r ? "Binding" : "Assigning to") + " rvalue");
6353
6363
  }
6354
- }, K.checkLValPattern = function(e, t, n) {
6355
- switch (t === void 0 && (t = la), e.type) {
6364
+ }, q.checkLValPattern = function(e, t, n) {
6365
+ switch (t === void 0 && (t = ca), e.type) {
6356
6366
  case "ObjectPattern":
6357
6367
  for (var r = 0, i = e.properties; r < i.length; r += 1) {
6358
6368
  var a = i[r];
@@ -6367,8 +6377,8 @@ K.toAssignable = function(e, t, n) {
6367
6377
  break;
6368
6378
  default: this.checkLValSimple(e, t, n);
6369
6379
  }
6370
- }, K.checkLValInnerPattern = function(e, t, n) {
6371
- switch (t === void 0 && (t = la), e.type) {
6380
+ }, q.checkLValInnerPattern = function(e, t, n) {
6381
+ switch (t === void 0 && (t = ca), e.type) {
6372
6382
  case "Property":
6373
6383
  this.checkLValInnerPattern(e.value, t, n);
6374
6384
  break;
@@ -6381,72 +6391,72 @@ K.toAssignable = function(e, t, n) {
6381
6391
  default: this.checkLValPattern(e, t, n);
6382
6392
  }
6383
6393
  };
6384
- var q = function(e, t, n, r, i) {
6394
+ var J = function(e, t, n, r, i) {
6385
6395
  this.token = e, this.isExpr = !!t, this.preserveSpace = !!n, this.override = r, this.generator = !!i;
6386
- }, J = {
6387
- b_stat: new q("{", !1),
6388
- b_expr: new q("{", !0),
6389
- b_tmpl: new q("${", !1),
6390
- p_stat: new q("(", !1),
6391
- p_expr: new q("(", !0),
6392
- q_tmpl: new q("`", !0, !0, function(e) {
6396
+ }, Y = {
6397
+ b_stat: new J("{", !1),
6398
+ b_expr: new J("{", !0),
6399
+ b_tmpl: new J("${", !1),
6400
+ p_stat: new J("(", !1),
6401
+ p_expr: new J("(", !0),
6402
+ q_tmpl: new J("`", !0, !0, function(e) {
6393
6403
  return e.tryReadTemplateToken();
6394
6404
  }),
6395
- f_stat: new q("function", !1),
6396
- f_expr: new q("function", !0),
6397
- f_expr_gen: new q("function", !0, !1, null, !0),
6398
- f_gen: new q("function", !1, !1, null, !0)
6399
- }, Ta = H.prototype;
6400
- Ta.initialContext = function() {
6401
- return [J.b_stat];
6402
- }, Ta.curContext = function() {
6405
+ f_stat: new J("function", !1),
6406
+ f_expr: new J("function", !0),
6407
+ f_expr_gen: new J("function", !0, !1, null, !0),
6408
+ f_gen: new J("function", !1, !1, null, !0)
6409
+ }, wa = U.prototype;
6410
+ wa.initialContext = function() {
6411
+ return [Y.b_stat];
6412
+ }, wa.curContext = function() {
6403
6413
  return this.context[this.context.length - 1];
6404
- }, Ta.braceIsBlock = function(e) {
6414
+ }, wa.braceIsBlock = function(e) {
6405
6415
  var t = this.curContext();
6406
- return t === J.f_expr || t === J.f_stat ? !0 : e === z.colon && (t === J.b_stat || t === J.b_expr) ? !t.isExpr : e === z._return || e === z.name && this.exprAllowed ? B.test(this.input.slice(this.lastTokEnd, this.start)) : e === z._else || e === z.semi || e === z.eof || e === z.parenR || e === z.arrow ? !0 : e === z.braceL ? t === J.b_stat : e === z._var || e === z._const || e === z.name ? !1 : !this.exprAllowed;
6407
- }, Ta.inGeneratorContext = function() {
6416
+ return t === Y.f_expr || t === Y.f_stat ? !0 : e === B.colon && (t === Y.b_stat || t === Y.b_expr) ? !t.isExpr : e === B._return || e === B.name && this.exprAllowed ? V.test(this.input.slice(this.lastTokEnd, this.start)) : e === B._else || e === B.semi || e === B.eof || e === B.parenR || e === B.arrow ? !0 : e === B.braceL ? t === Y.b_stat : e === B._var || e === B._const || e === B.name ? !1 : !this.exprAllowed;
6417
+ }, wa.inGeneratorContext = function() {
6408
6418
  for (var e = this.context.length - 1; e >= 1; e--) {
6409
6419
  var t = this.context[e];
6410
6420
  if (t.token === "function") return t.generator;
6411
6421
  }
6412
6422
  return !1;
6413
- }, Ta.updateContext = function(e) {
6423
+ }, wa.updateContext = function(e) {
6414
6424
  var t, n = this.type;
6415
- n.keyword && e === z.dot ? this.exprAllowed = !1 : (t = n.updateContext) ? t.call(this, e) : this.exprAllowed = n.beforeExpr;
6416
- }, Ta.overrideContext = function(e) {
6425
+ n.keyword && e === B.dot ? this.exprAllowed = !1 : (t = n.updateContext) ? t.call(this, e) : this.exprAllowed = n.beforeExpr;
6426
+ }, wa.overrideContext = function(e) {
6417
6427
  this.curContext() !== e && (this.context[this.context.length - 1] = e);
6418
- }, z.parenR.updateContext = z.braceR.updateContext = function() {
6428
+ }, B.parenR.updateContext = B.braceR.updateContext = function() {
6419
6429
  if (this.context.length === 1) {
6420
6430
  this.exprAllowed = !0;
6421
6431
  return;
6422
6432
  }
6423
6433
  var e = this.context.pop();
6424
- e === J.b_stat && this.curContext().token === "function" && (e = this.context.pop()), this.exprAllowed = !e.isExpr;
6425
- }, z.braceL.updateContext = function(e) {
6426
- this.context.push(this.braceIsBlock(e) ? J.b_stat : J.b_expr), this.exprAllowed = !0;
6427
- }, z.dollarBraceL.updateContext = function() {
6428
- this.context.push(J.b_tmpl), this.exprAllowed = !0;
6429
- }, z.parenL.updateContext = function(e) {
6430
- var t = e === z._if || e === z._for || e === z._with || e === z._while;
6431
- this.context.push(t ? J.p_stat : J.p_expr), this.exprAllowed = !0;
6432
- }, z.incDec.updateContext = function() {}, z._function.updateContext = z._class.updateContext = function(e) {
6433
- e.beforeExpr && e !== z._else && (e !== z.semi || this.curContext() === J.p_stat) && !(e === z._return && B.test(this.input.slice(this.lastTokEnd, this.start))) && (e !== z.colon && e !== z.braceL || this.curContext() !== J.b_stat) ? this.context.push(J.f_expr) : this.context.push(J.f_stat), this.exprAllowed = !1;
6434
- }, z.colon.updateContext = function() {
6434
+ e === Y.b_stat && this.curContext().token === "function" && (e = this.context.pop()), this.exprAllowed = !e.isExpr;
6435
+ }, B.braceL.updateContext = function(e) {
6436
+ this.context.push(this.braceIsBlock(e) ? Y.b_stat : Y.b_expr), this.exprAllowed = !0;
6437
+ }, B.dollarBraceL.updateContext = function() {
6438
+ this.context.push(Y.b_tmpl), this.exprAllowed = !0;
6439
+ }, B.parenL.updateContext = function(e) {
6440
+ var t = e === B._if || e === B._for || e === B._with || e === B._while;
6441
+ this.context.push(t ? Y.p_stat : Y.p_expr), this.exprAllowed = !0;
6442
+ }, B.incDec.updateContext = function() {}, B._function.updateContext = B._class.updateContext = function(e) {
6443
+ e.beforeExpr && e !== B._else && (e !== B.semi || this.curContext() === Y.p_stat) && !(e === B._return && V.test(this.input.slice(this.lastTokEnd, this.start))) && (e !== B.colon && e !== B.braceL || this.curContext() !== Y.b_stat) ? this.context.push(Y.f_expr) : this.context.push(Y.f_stat), this.exprAllowed = !1;
6444
+ }, B.colon.updateContext = function() {
6435
6445
  this.curContext().token === "function" && this.context.pop(), this.exprAllowed = !0;
6436
- }, z.backQuote.updateContext = function() {
6437
- this.curContext() === J.q_tmpl ? this.context.pop() : this.context.push(J.q_tmpl), this.exprAllowed = !1;
6438
- }, z.star.updateContext = function(e) {
6439
- if (e === z._function) {
6446
+ }, B.backQuote.updateContext = function() {
6447
+ this.curContext() === Y.q_tmpl ? this.context.pop() : this.context.push(Y.q_tmpl), this.exprAllowed = !1;
6448
+ }, B.star.updateContext = function(e) {
6449
+ if (e === B._function) {
6440
6450
  var t = this.context.length - 1;
6441
- this.context[t] === J.f_expr ? this.context[t] = J.f_expr_gen : this.context[t] = J.f_gen;
6451
+ this.context[t] === Y.f_expr ? this.context[t] = Y.f_expr_gen : this.context[t] = Y.f_gen;
6442
6452
  }
6443
6453
  this.exprAllowed = !0;
6444
- }, z.name.updateContext = function(e) {
6454
+ }, B.name.updateContext = function(e) {
6445
6455
  var t = !1;
6446
- this.options.ecmaVersion >= 6 && e !== z.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = !0), this.exprAllowed = t;
6456
+ this.options.ecmaVersion >= 6 && e !== B.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = !0), this.exprAllowed = t;
6447
6457
  };
6448
- var Y = H.prototype;
6449
- Y.checkPropClash = function(e, t, n) {
6458
+ var X = U.prototype;
6459
+ X.checkPropClash = function(e, t, n) {
6450
6460
  if (!(this.options.ecmaVersion >= 9 && e.type === "SpreadElement") && !(this.options.ecmaVersion >= 6 && (e.computed || e.method || e.shorthand))) {
6451
6461
  var r = e.key, i;
6452
6462
  switch (r.type) {
@@ -6471,65 +6481,65 @@ Y.checkPropClash = function(e, t, n) {
6471
6481
  set: !1
6472
6482
  }, o[a] = !0;
6473
6483
  }
6474
- }, Y.parseExpression = function(e, t) {
6484
+ }, X.parseExpression = function(e, t) {
6475
6485
  var n = this;
6476
6486
  return this.catchStackOverflow(function() {
6477
6487
  var r = n.start, i = n.startLoc, a = n.parseMaybeAssign(e, t);
6478
- if (n.type === z.comma) {
6488
+ if (n.type === B.comma) {
6479
6489
  var o = n.startNodeAt(r, i);
6480
- for (o.expressions = [a]; n.eat(z.comma);) o.expressions.push(n.parseMaybeAssign(e, t));
6490
+ for (o.expressions = [a]; n.eat(B.comma);) o.expressions.push(n.parseMaybeAssign(e, t));
6481
6491
  return n.finishNode(o, "SequenceExpression");
6482
6492
  }
6483
6493
  return a;
6484
6494
  });
6485
- }, Y.parseMaybeAssign = function(e, t, n) {
6495
+ }, X.parseMaybeAssign = function(e, t, n) {
6486
6496
  if (this.isContextual("yield")) {
6487
6497
  if (this.inGenerator) return this.parseYield(e);
6488
6498
  this.exprAllowed = !1;
6489
6499
  }
6490
6500
  var r = !1, i = -1, a = -1, o = -1;
6491
- t ? (i = t.parenthesizedAssign, a = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new ga(), r = !0);
6501
+ t ? (i = t.parenthesizedAssign, a = t.trailingComma, o = t.doubleProto, t.parenthesizedAssign = t.trailingComma = -1) : (t = new ha(), r = !0);
6492
6502
  var s = this.start, c = this.startLoc;
6493
- (this.type === z.parenL || this.type === z.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
6503
+ (this.type === B.parenL || this.type === B.name) && (this.potentialArrowAt = this.start, this.potentialArrowInForAwait = e === "await");
6494
6504
  var l = this.parseMaybeConditional(e, t);
6495
6505
  if (n && (l = n.call(this, l, s, c)), this.type.isAssign) {
6496
6506
  var u = this.startNodeAt(s, c);
6497
- return u.operator = this.value, this.type === z.eq && (l = this.toAssignable(l, !1, t)), r || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= l.start && (t.shorthandAssign = -1), this.type === z.eq ? this.checkLValPattern(l) : this.checkLValSimple(l), u.left = l, this.next(), u.right = this.parseMaybeAssign(e), o > -1 && (t.doubleProto = o), this.finishNode(u, "AssignmentExpression");
6507
+ return u.operator = this.value, this.type === B.eq && (l = this.toAssignable(l, !1, t)), r || (t.parenthesizedAssign = t.trailingComma = t.doubleProto = -1), t.shorthandAssign >= l.start && (t.shorthandAssign = -1), this.type === B.eq ? this.checkLValPattern(l) : this.checkLValSimple(l), u.left = l, this.next(), u.right = this.parseMaybeAssign(e), o > -1 && (t.doubleProto = o), this.finishNode(u, "AssignmentExpression");
6498
6508
  }
6499
6509
  return r && this.checkExpressionErrors(t, !0), i > -1 && (t.parenthesizedAssign = i), a > -1 && (t.trailingComma = a), l;
6500
- }, Y.parseMaybeConditional = function(e, t) {
6510
+ }, X.parseMaybeConditional = function(e, t) {
6501
6511
  var n = this.start, r = this.startLoc, i = this.parseExprOps(e, t);
6502
6512
  if (this.checkExpressionErrors(t)) return i;
6503
- if ((i.type !== "ArrowFunctionExpression" || i.start !== n) && this.eat(z.question)) {
6513
+ if ((i.type !== "ArrowFunctionExpression" || i.start !== n) && this.eat(B.question)) {
6504
6514
  var a = this.startNodeAt(n, r);
6505
- return a.test = i, a.consequent = this.parseMaybeAssign(), this.expect(z.colon), a.alternate = this.parseMaybeAssign(e), this.finishNode(a, "ConditionalExpression");
6515
+ return a.test = i, a.consequent = this.parseMaybeAssign(), this.expect(B.colon), a.alternate = this.parseMaybeAssign(e), this.finishNode(a, "ConditionalExpression");
6506
6516
  }
6507
6517
  return i;
6508
- }, Y.parseExprOps = function(e, t) {
6518
+ }, X.parseExprOps = function(e, t) {
6509
6519
  var n = this.start, r = this.startLoc, i = this.parseMaybeUnary(t, !1, !1, e);
6510
6520
  return this.checkExpressionErrors(t) || i.start === n && i.type === "ArrowFunctionExpression" ? i : this.parseExprOp(i, n, r, -1, e);
6511
- }, Y.parseExprOp = function(e, t, n, r, i) {
6521
+ }, X.parseExprOp = function(e, t, n, r, i) {
6512
6522
  var a = this.type.binop;
6513
- if (a != null && (!i || this.type !== z._in) && a > r) {
6514
- var o = this.type === z.logicalOR || this.type === z.logicalAND, s = this.type === z.coalesce;
6515
- s && (a = z.logicalAND.binop);
6523
+ if (a != null && (!i || this.type !== B._in) && a > r) {
6524
+ var o = this.type === B.logicalOR || this.type === B.logicalAND, s = this.type === B.coalesce;
6525
+ s && (a = B.logicalAND.binop);
6516
6526
  var c = this.value;
6517
6527
  this.next();
6518
6528
  var l = this.start, u = this.startLoc, d = this.parseExprOp(this.parseMaybeUnary(null, !1, !1, i), l, u, a, i), f = this.buildBinary(t, n, e, d, c, o || s);
6519
- return (o && this.type === z.coalesce || s && (this.type === z.logicalOR || this.type === z.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(f, t, n, r, i);
6529
+ return (o && this.type === B.coalesce || s && (this.type === B.logicalOR || this.type === B.logicalAND)) && this.raiseRecoverable(this.start, "Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"), this.parseExprOp(f, t, n, r, i);
6520
6530
  }
6521
6531
  return e;
6522
- }, Y.buildBinary = function(e, t, n, r, i, a) {
6532
+ }, X.buildBinary = function(e, t, n, r, i, a) {
6523
6533
  r.type === "PrivateIdentifier" && this.raise(r.start, "Private identifier can only be left side of binary expression");
6524
6534
  var o = this.startNodeAt(e, t);
6525
6535
  return o.left = n, o.operator = i, o.right = r, this.finishNode(o, a ? "LogicalExpression" : "BinaryExpression");
6526
- }, Y.parseMaybeUnary = function(e, t, n, r) {
6536
+ }, X.parseMaybeUnary = function(e, t, n, r) {
6527
6537
  var i = this.start, a = this.startLoc, o;
6528
6538
  if (this.isContextual("await") && this.canAwait) o = this.parseAwait(r), t = !0;
6529
6539
  else if (this.type.prefix) {
6530
- var s = this.startNode(), c = this.type === z.incDec;
6531
- s.operator = this.value, s.prefix = !0, this.next(), s.argument = this.parseMaybeUnary(null, !0, c, r), this.checkExpressionErrors(e, !0), c ? this.checkLValSimple(s.argument) : this.strict && s.operator === "delete" && Ea(s.argument) ? this.raiseRecoverable(s.start, "Deleting local variable in strict mode") : s.operator === "delete" && Da(s.argument) ? this.raiseRecoverable(s.start, "Private fields can not be deleted") : t = !0, o = this.finishNode(s, c ? "UpdateExpression" : "UnaryExpression");
6532
- } else if (!t && this.type === z.privateId) (r || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), o = this.parsePrivateIdent(), this.type !== z._in && this.unexpected();
6540
+ var s = this.startNode(), c = this.type === B.incDec;
6541
+ s.operator = this.value, s.prefix = !0, this.next(), s.argument = this.parseMaybeUnary(null, !0, c, r), this.checkExpressionErrors(e, !0), c ? this.checkLValSimple(s.argument) : this.strict && s.operator === "delete" && Ta(s.argument) ? this.raiseRecoverable(s.start, "Deleting local variable in strict mode") : s.operator === "delete" && Ea(s.argument) ? this.raiseRecoverable(s.start, "Private fields can not be deleted") : t = !0, o = this.finishNode(s, c ? "UpdateExpression" : "UnaryExpression");
6542
+ } else if (!t && this.type === B.privateId) (r || this.privateNameStack.length === 0) && this.options.checkPrivateFields && this.unexpected(), o = this.parsePrivateIdent(), this.type !== B._in && this.unexpected();
6533
6543
  else {
6534
6544
  if (o = this.parseExprSubscripts(e, r), this.checkExpressionErrors(e)) return o;
6535
6545
  for (; this.type.postfix && !this.canInsertSemicolon();) {
@@ -6537,23 +6547,23 @@ Y.checkPropClash = function(e, t, n) {
6537
6547
  l.operator = this.value, l.prefix = !1, l.argument = o, this.checkLValSimple(o), this.next(), o = this.finishNode(l, "UpdateExpression");
6538
6548
  }
6539
6549
  }
6540
- if (!n && (o.type !== "ArrowFunctionExpression" || o.start !== i) && this.eat(z.starstar)) {
6550
+ if (!n && (o.type !== "ArrowFunctionExpression" || o.start !== i) && this.eat(B.starstar)) {
6541
6551
  if (t) this.unexpected(this.lastTokStart);
6542
6552
  else return this.buildBinary(i, a, o, this.parseMaybeUnary(null, !1, !1, r), "**", !1);
6543
6553
  } else return o;
6544
6554
  };
6545
- function Ea(e) {
6546
- return e.type === "Identifier" || e.type === "ParenthesizedExpression" && Ea(e.expression);
6555
+ function Ta(e) {
6556
+ return e.type === "Identifier" || e.type === "ParenthesizedExpression" && Ta(e.expression);
6547
6557
  }
6548
- function Da(e) {
6549
- return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && Da(e.expression) || e.type === "ParenthesizedExpression" && Da(e.expression);
6558
+ function Ea(e) {
6559
+ return e.type === "MemberExpression" && e.property.type === "PrivateIdentifier" || e.type === "ChainExpression" && Ea(e.expression) || e.type === "ParenthesizedExpression" && Ea(e.expression);
6550
6560
  }
6551
- Y.parseExprSubscripts = function(e, t) {
6561
+ X.parseExprSubscripts = function(e, t) {
6552
6562
  var n = this.start, r = this.startLoc, i = this.parseExprAtom(e, t);
6553
6563
  if (i.type === "ArrowFunctionExpression" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== ")") return i;
6554
6564
  var a = this.parseSubscripts(i, n, r, !1, t);
6555
6565
  return e && a.type === "MemberExpression" && (e.parenthesizedAssign >= a.start && (e.parenthesizedAssign = -1), e.parenthesizedBind >= a.start && (e.parenthesizedBind = -1), e.trailingComma >= a.start && (e.trailingComma = -1)), a;
6556
- }, Y.parseSubscripts = function(e, t, n, r, i) {
6566
+ }, X.parseSubscripts = function(e, t, n, r, i) {
6557
6567
  for (var a = this.options.ecmaVersion >= 8 && e.type === "Identifier" && e.name === "async" && this.lastTokEnd === e.end && !this.canInsertSemicolon() && e.end - e.start === 5 && this.potentialArrowAt === e.start, o = !1;;) {
6558
6568
  var s = this.parseSubscript(e, t, n, r, a, o, i);
6559
6569
  if (s.optional && (o = !0), s === e || s.type === "ArrowFunctionExpression") {
@@ -6565,116 +6575,116 @@ Y.parseExprSubscripts = function(e, t) {
6565
6575
  }
6566
6576
  e = s;
6567
6577
  }
6568
- }, Y.shouldParseAsyncArrow = function() {
6569
- return !this.canInsertSemicolon() && this.eat(z.arrow);
6570
- }, Y.parseSubscriptAsyncArrow = function(e, t, n, r) {
6578
+ }, X.shouldParseAsyncArrow = function() {
6579
+ return !this.canInsertSemicolon() && this.eat(B.arrow);
6580
+ }, X.parseSubscriptAsyncArrow = function(e, t, n, r) {
6571
6581
  return this.parseArrowExpression(this.startNodeAt(e, t), n, !0, r);
6572
- }, Y.parseSubscript = function(e, t, n, r, i, a, o) {
6573
- var s = this.options.ecmaVersion >= 11, c = s && this.eat(z.questionDot);
6582
+ }, X.parseSubscript = function(e, t, n, r, i, a, o) {
6583
+ var s = this.options.ecmaVersion >= 11, c = s && this.eat(B.questionDot);
6574
6584
  r && c && this.raise(this.lastTokStart, "Optional chaining cannot appear in the callee of new expressions");
6575
- var l = this.eat(z.bracketL);
6576
- if (l || c && this.type !== z.parenL && this.type !== z.backQuote || this.eat(z.dot)) {
6585
+ var l = this.eat(B.bracketL);
6586
+ if (l || c && this.type !== B.parenL && this.type !== B.backQuote || this.eat(B.dot)) {
6577
6587
  var u = this.startNodeAt(t, n);
6578
- u.object = e, l ? (u.property = this.parseExpression(), this.expect(z.bracketR)) : u.property = this.type === z.privateId && e.type !== "Super" ? this.parsePrivateIdent() : this.parseIdent(this.options.allowReserved !== "never"), u.computed = !!l, s && (u.optional = c), e = this.finishNode(u, "MemberExpression");
6579
- } else if (!r && this.eat(z.parenL)) {
6580
- var d = new ga(), f = this.yieldPos, p = this.awaitPos, m = this.awaitIdentPos;
6588
+ u.object = e, l ? (u.property = this.parseExpression(), this.expect(B.bracketR)) : u.property = this.type === B.privateId && e.type !== "Super" ? this.parsePrivateIdent() : this.parseIdent(this.options.allowReserved !== "never"), u.computed = !!l, s && (u.optional = c), e = this.finishNode(u, "MemberExpression");
6589
+ } else if (!r && this.eat(B.parenL)) {
6590
+ var d = new ha(), f = this.yieldPos, p = this.awaitPos, m = this.awaitIdentPos;
6581
6591
  this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0;
6582
- var h = this.parseExprList(z.parenR, this.options.ecmaVersion >= 8, !1, d);
6592
+ var h = this.parseExprList(B.parenR, this.options.ecmaVersion >= 8, !1, d);
6583
6593
  if (i && !c && this.shouldParseAsyncArrow()) return this.checkPatternErrors(d, !1), this.checkYieldAwaitInDefaultParams(), this.awaitIdentPos > 0 && this.raise(this.awaitIdentPos, "Cannot use 'await' as identifier inside an async function"), this.yieldPos = f, this.awaitPos = p, this.awaitIdentPos = m, this.parseSubscriptAsyncArrow(t, n, h, o);
6584
6594
  this.checkExpressionErrors(d, !0), this.yieldPos = f || this.yieldPos, this.awaitPos = p || this.awaitPos, this.awaitIdentPos = m || this.awaitIdentPos;
6585
6595
  var g = this.startNodeAt(t, n);
6586
6596
  g.callee = e, g.arguments = h, s && (g.optional = c), e = this.finishNode(g, "CallExpression");
6587
- } else if (this.type === z.backQuote) {
6597
+ } else if (this.type === B.backQuote) {
6588
6598
  (c || a) && this.raise(this.start, "Optional chaining cannot appear in the tag of tagged template expressions");
6589
6599
  var _ = this.startNodeAt(t, n);
6590
6600
  _.tag = e, _.quasi = this.parseTemplate({ isTagged: !0 }), e = this.finishNode(_, "TaggedTemplateExpression");
6591
6601
  }
6592
6602
  return e;
6593
- }, Y.parseExprAtom = function(e, t, n) {
6594
- this.type === z.slash && this.readRegexp();
6603
+ }, X.parseExprAtom = function(e, t, n) {
6604
+ this.type === B.slash && this.readRegexp();
6595
6605
  var r, i = this.potentialArrowAt === this.start;
6596
6606
  switch (this.type) {
6597
- case z._super: return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), r = this.startNode(), this.next(), this.type === z.parenL && !this.allowDirectSuper && this.raise(r.start, "super() call outside constructor of a subclass"), this.type !== z.dot && this.type !== z.bracketL && this.type !== z.parenL && this.unexpected(), this.finishNode(r, "Super");
6598
- case z._this: return r = this.startNode(), this.next(), this.finishNode(r, "ThisExpression");
6599
- case z.name:
6607
+ case B._super: return this.allowSuper || this.raise(this.start, "'super' keyword outside a method"), r = this.startNode(), this.next(), this.type === B.parenL && !this.allowDirectSuper && this.raise(r.start, "super() call outside constructor of a subclass"), this.type !== B.dot && this.type !== B.bracketL && this.type !== B.parenL && this.unexpected(), this.finishNode(r, "Super");
6608
+ case B._this: return r = this.startNode(), this.next(), this.finishNode(r, "ThisExpression");
6609
+ case B.name:
6600
6610
  var a = this.start, o = this.startLoc, s = this.containsEsc, c = this.parseIdent(!1);
6601
- if (this.options.ecmaVersion >= 8 && !s && c.name === "async" && !this.canInsertSemicolon() && this.eat(z._function)) return this.overrideContext(J.f_expr), this.parseFunction(this.startNodeAt(a, o), 0, !1, !0, t);
6611
+ if (this.options.ecmaVersion >= 8 && !s && c.name === "async" && !this.canInsertSemicolon() && this.eat(B._function)) return this.overrideContext(Y.f_expr), this.parseFunction(this.startNodeAt(a, o), 0, !1, !0, t);
6602
6612
  if (i && !this.canInsertSemicolon()) {
6603
- if (this.eat(z.arrow)) return this.parseArrowExpression(this.startNodeAt(a, o), [c], !1, t);
6604
- if (this.options.ecmaVersion >= 8 && c.name === "async" && this.type === z.name && !s && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) return c = this.parseIdent(!1), (this.canInsertSemicolon() || !this.eat(z.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(a, o), [c], !0, t);
6613
+ if (this.eat(B.arrow)) return this.parseArrowExpression(this.startNodeAt(a, o), [c], !1, t);
6614
+ if (this.options.ecmaVersion >= 8 && c.name === "async" && this.type === B.name && !s && (!this.potentialArrowInForAwait || this.value !== "of" || this.containsEsc)) return c = this.parseIdent(!1), (this.canInsertSemicolon() || !this.eat(B.arrow)) && this.unexpected(), this.parseArrowExpression(this.startNodeAt(a, o), [c], !0, t);
6605
6615
  }
6606
6616
  return c;
6607
- case z.regexp:
6617
+ case B.regexp:
6608
6618
  var l = this.value;
6609
6619
  return r = this.parseLiteral(l.value), r.regex = {
6610
6620
  pattern: l.pattern,
6611
6621
  flags: l.flags
6612
6622
  }, r;
6613
- case z.num:
6614
- case z.string: return this.parseLiteral(this.value);
6615
- case z._null:
6616
- case z._true:
6617
- case z._false: return r = this.startNode(), r.value = this.type === z._null ? null : this.type === z._true, r.raw = this.type.keyword, this.next(), this.finishNode(r, "Literal");
6618
- case z.parenL:
6623
+ case B.num:
6624
+ case B.string: return this.parseLiteral(this.value);
6625
+ case B._null:
6626
+ case B._true:
6627
+ case B._false: return r = this.startNode(), r.value = this.type === B._null ? null : this.type === B._true, r.raw = this.type.keyword, this.next(), this.finishNode(r, "Literal");
6628
+ case B.parenL:
6619
6629
  var u = this.start, d = this.parseParenAndDistinguishExpression(i, t);
6620
6630
  return e && (e.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(d) && (e.parenthesizedAssign = u), e.parenthesizedBind < 0 && (e.parenthesizedBind = u)), d;
6621
- case z.bracketL: return r = this.startNode(), this.next(), r.elements = this.parseExprList(z.bracketR, !0, !0, e), this.finishNode(r, "ArrayExpression");
6622
- case z.braceL: return this.overrideContext(J.b_expr), this.parseObj(!1, e);
6623
- case z._function: return r = this.startNode(), this.next(), this.parseFunction(r, 0);
6624
- case z._class: return this.parseClass(this.startNode(), !1);
6625
- case z._new: return this.parseNew();
6626
- case z.backQuote: return this.parseTemplate();
6627
- case z._import: return this.options.ecmaVersion >= 11 ? this.parseExprImport(n) : this.unexpected();
6631
+ case B.bracketL: return r = this.startNode(), this.next(), r.elements = this.parseExprList(B.bracketR, !0, !0, e), this.finishNode(r, "ArrayExpression");
6632
+ case B.braceL: return this.overrideContext(Y.b_expr), this.parseObj(!1, e);
6633
+ case B._function: return r = this.startNode(), this.next(), this.parseFunction(r, 0);
6634
+ case B._class: return this.parseClass(this.startNode(), !1);
6635
+ case B._new: return this.parseNew();
6636
+ case B.backQuote: return this.parseTemplate();
6637
+ case B._import: return this.options.ecmaVersion >= 11 ? this.parseExprImport(n) : this.unexpected();
6628
6638
  default: return this.parseExprAtomDefault();
6629
6639
  }
6630
- }, Y.parseExprAtomDefault = function() {
6640
+ }, X.parseExprAtomDefault = function() {
6631
6641
  this.unexpected();
6632
- }, Y.parseExprImport = function(e) {
6642
+ }, X.parseExprImport = function(e) {
6633
6643
  var t = this.startNode();
6634
- if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === z.parenL && !e) return this.parseDynamicImport(t);
6635
- if (this.type === z.dot) {
6644
+ if (this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword import"), this.next(), this.type === B.parenL && !e) return this.parseDynamicImport(t);
6645
+ if (this.type === B.dot) {
6636
6646
  var n = this.startNodeAt(t.start, t.loc && t.loc.start);
6637
6647
  return n.name = "import", t.meta = this.finishNode(n, "Identifier"), this.parseImportMeta(t);
6638
6648
  }
6639
6649
  this.unexpected();
6640
- }, Y.parseDynamicImport = function(e) {
6641
- if (this.next(), e.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16) this.eat(z.parenR) ? e.options = null : (this.expect(z.comma), this.afterTrailingComma(z.parenR) ? e.options = null : (e.options = this.parseMaybeAssign(), this.eat(z.parenR) || (this.expect(z.comma), this.afterTrailingComma(z.parenR) || this.unexpected())));
6642
- else if (!this.eat(z.parenR)) {
6650
+ }, X.parseDynamicImport = function(e) {
6651
+ if (this.next(), e.source = this.parseMaybeAssign(), this.options.ecmaVersion >= 16) this.eat(B.parenR) ? e.options = null : (this.expect(B.comma), this.afterTrailingComma(B.parenR) ? e.options = null : (e.options = this.parseMaybeAssign(), this.eat(B.parenR) || (this.expect(B.comma), this.afterTrailingComma(B.parenR) || this.unexpected())));
6652
+ else if (!this.eat(B.parenR)) {
6643
6653
  var t = this.start;
6644
- this.eat(z.comma) && this.eat(z.parenR) ? this.raiseRecoverable(t, "Trailing comma is not allowed in import()") : this.unexpected(t);
6654
+ this.eat(B.comma) && this.eat(B.parenR) ? this.raiseRecoverable(t, "Trailing comma is not allowed in import()") : this.unexpected(t);
6645
6655
  }
6646
6656
  return this.finishNode(e, "ImportExpression");
6647
- }, Y.parseImportMeta = function(e) {
6657
+ }, X.parseImportMeta = function(e) {
6648
6658
  this.next();
6649
6659
  var t = this.containsEsc;
6650
6660
  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");
6651
- }, Y.parseLiteral = function(e) {
6661
+ }, X.parseLiteral = function(e) {
6652
6662
  var t = this.startNode();
6653
6663
  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.raw.slice(0, -1).replace(/_/g, "") : t.value.toString()), this.next(), this.finishNode(t, "Literal");
6654
- }, Y.parseParenExpression = function() {
6655
- this.expect(z.parenL);
6664
+ }, X.parseParenExpression = function() {
6665
+ this.expect(B.parenL);
6656
6666
  var e = this.parseExpression();
6657
- return this.expect(z.parenR), e;
6658
- }, Y.shouldParseArrow = function(e) {
6667
+ return this.expect(B.parenR), e;
6668
+ }, X.shouldParseArrow = function(e) {
6659
6669
  return !this.canInsertSemicolon();
6660
- }, Y.parseParenAndDistinguishExpression = function(e, t) {
6670
+ }, X.parseParenAndDistinguishExpression = function(e, t) {
6661
6671
  var n = this.start, r = this.startLoc, i, a = this.options.ecmaVersion >= 8;
6662
6672
  if (this.options.ecmaVersion >= 6) {
6663
6673
  this.next();
6664
- var o = this.start, s = this.startLoc, c = [], l = !0, u = !1, d = new ga(), f = this.yieldPos, p = this.awaitPos, m;
6665
- for (this.yieldPos = 0, this.awaitPos = 0; this.type !== z.parenR;) {
6666
- if (l ? l = !1 : this.expect(z.comma), a && this.afterTrailingComma(z.parenR, !0)) {
6674
+ var o = this.start, s = this.startLoc, c = [], l = !0, u = !1, d = new ha(), f = this.yieldPos, p = this.awaitPos, m;
6675
+ for (this.yieldPos = 0, this.awaitPos = 0; this.type !== B.parenR;) {
6676
+ if (l ? l = !1 : this.expect(B.comma), a && this.afterTrailingComma(B.parenR, !0)) {
6667
6677
  u = !0;
6668
6678
  break;
6669
6679
  }
6670
- if (this.type === z.ellipsis) {
6671
- m = this.start, c.push(this.parseParenItem(this.parseRestBinding())), this.type === z.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
6680
+ if (this.type === B.ellipsis) {
6681
+ m = this.start, c.push(this.parseParenItem(this.parseRestBinding())), this.type === B.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
6672
6682
  break;
6673
6683
  }
6674
6684
  c.push(this.parseMaybeAssign(!1, d, this.parseParenItem));
6675
6685
  }
6676
6686
  var h = this.lastTokEnd, g = this.lastTokEndLoc;
6677
- if (this.expect(z.parenR), e && this.shouldParseArrow(c) && this.eat(z.arrow)) return this.checkPatternErrors(d, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = f, this.awaitPos = p, this.parseParenArrowList(n, r, c, t);
6687
+ if (this.expect(B.parenR), e && this.shouldParseArrow(c) && this.eat(B.arrow)) return this.checkPatternErrors(d, !1), this.checkYieldAwaitInDefaultParams(), this.yieldPos = f, this.awaitPos = p, this.parseParenArrowList(n, r, c, t);
6678
6688
  (!c.length || u) && this.unexpected(this.lastTokStart), m && this.unexpected(m), this.checkExpressionErrors(d, !0), this.yieldPos = f || this.yieldPos, this.awaitPos = p || this.awaitPos, c.length > 1 ? (i = this.startNodeAt(o, s), i.expressions = c, this.finishNodeAt(i, "SequenceExpression", h, g)) : i = c[0];
6679
6689
  } else i = this.parseParenExpression();
6680
6690
  if (this.options.preserveParens) {
@@ -6682,59 +6692,59 @@ Y.parseExprSubscripts = function(e, t) {
6682
6692
  return _.expression = i, this.finishNode(_, "ParenthesizedExpression");
6683
6693
  }
6684
6694
  return i;
6685
- }, Y.parseParenItem = function(e) {
6695
+ }, X.parseParenItem = function(e) {
6686
6696
  return e;
6687
- }, Y.parseParenArrowList = function(e, t, n, r) {
6697
+ }, X.parseParenArrowList = function(e, t, n, r) {
6688
6698
  return this.parseArrowExpression(this.startNodeAt(e, t), n, !1, r);
6689
6699
  };
6690
- var Oa = [];
6691
- Y.parseNew = function() {
6700
+ var Da = [];
6701
+ X.parseNew = function() {
6692
6702
  this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
6693
6703
  var e = this.startNode();
6694
- if (this.next(), this.options.ecmaVersion >= 6 && this.type === z.dot) {
6704
+ if (this.next(), this.options.ecmaVersion >= 6 && this.type === B.dot) {
6695
6705
  var t = this.startNodeAt(e.start, e.loc && e.loc.start);
6696
6706
  t.name = "new", e.meta = this.finishNode(t, "Identifier"), this.next();
6697
6707
  var n = this.containsEsc;
6698
6708
  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'"), n && 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");
6699
6709
  }
6700
6710
  var r = this.start, i = this.startLoc;
6701
- return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), r, i, !0, !1), e.callee.type === "Super" && this.raiseRecoverable(r, "Invalid use of 'super'"), e.arguments = this.eat(z.parenL) ? this.parseExprList(z.parenR, this.options.ecmaVersion >= 8, !1) : Oa, this.finishNode(e, "NewExpression");
6702
- }, Y.parseTemplateElement = function(e) {
6711
+ return e.callee = this.parseSubscripts(this.parseExprAtom(null, !1, !0), r, i, !0, !1), e.callee.type === "Super" && this.raiseRecoverable(r, "Invalid use of 'super'"), e.arguments = this.eat(B.parenL) ? this.parseExprList(B.parenR, this.options.ecmaVersion >= 8, !1) : Da, this.finishNode(e, "NewExpression");
6712
+ }, X.parseTemplateElement = function(e) {
6703
6713
  var t = e.isTagged, n = this.startNode();
6704
- return this.type === z.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), n.value = {
6714
+ return this.type === B.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), n.value = {
6705
6715
  raw: this.value.replace(/\r\n?/g, "\n"),
6706
6716
  cooked: null
6707
6717
  }) : n.value = {
6708
6718
  raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, "\n"),
6709
6719
  cooked: this.value
6710
- }, this.next(), n.tail = this.type === z.backQuote, this.finishNode(n, "TemplateElement");
6711
- }, Y.parseTemplate = function(e) {
6720
+ }, this.next(), n.tail = this.type === B.backQuote, this.finishNode(n, "TemplateElement");
6721
+ }, X.parseTemplate = function(e) {
6712
6722
  e === void 0 && (e = {});
6713
6723
  var t = e.isTagged;
6714
6724
  t === void 0 && (t = !1);
6715
6725
  var n = this.startNode();
6716
6726
  this.next(), n.expressions = [];
6717
6727
  var r = this.parseTemplateElement({ isTagged: t });
6718
- for (n.quasis = [r]; !r.tail;) this.type === z.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(z.dollarBraceL), n.expressions.push(this.parseExpression()), this.expect(z.braceR), n.quasis.push(r = this.parseTemplateElement({ isTagged: t }));
6728
+ for (n.quasis = [r]; !r.tail;) this.type === B.eof && this.raise(this.pos, "Unterminated template literal"), this.expect(B.dollarBraceL), n.expressions.push(this.parseExpression()), this.expect(B.braceR), n.quasis.push(r = this.parseTemplateElement({ isTagged: t }));
6719
6729
  return this.next(), this.finishNode(n, "TemplateLiteral");
6720
- }, Y.isAsyncProp = function(e) {
6721
- return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === z.name || this.type === z.num || this.type === z.string || this.type === z.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === z.star) && !B.test(this.input.slice(this.lastTokEnd, this.start));
6722
- }, Y.parseObj = function(e, t) {
6730
+ }, X.isAsyncProp = function(e) {
6731
+ return !e.computed && e.key.type === "Identifier" && e.key.name === "async" && (this.type === B.name || this.type === B.num || this.type === B.string || this.type === B.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === B.star) && !V.test(this.input.slice(this.lastTokEnd, this.start));
6732
+ }, X.parseObj = function(e, t) {
6723
6733
  var n = this.startNode(), r = !0, i = {};
6724
- for (n.properties = [], this.next(); !this.eat(z.braceR);) {
6734
+ for (n.properties = [], this.next(); !this.eat(B.braceR);) {
6725
6735
  if (r) r = !1;
6726
- else if (this.expect(z.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(z.braceR)) break;
6736
+ else if (this.expect(B.comma), this.options.ecmaVersion >= 5 && this.afterTrailingComma(B.braceR)) break;
6727
6737
  var a = this.parseProperty(e, t);
6728
6738
  e || this.checkPropClash(a, i, t), n.properties.push(a);
6729
6739
  }
6730
6740
  return this.finishNode(n, e ? "ObjectPattern" : "ObjectExpression");
6731
- }, Y.parseProperty = function(e, t) {
6741
+ }, X.parseProperty = function(e, t) {
6732
6742
  var n = this.startNode(), r, i, a, o;
6733
- if (this.options.ecmaVersion >= 9 && this.eat(z.ellipsis)) return e ? (n.argument = this.parseIdent(!1), this.type === z.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(n, "RestElement")) : (n.argument = this.parseMaybeAssign(!1, t), this.type === z.comma && t && t.trailingComma < 0 && (t.trailingComma = this.start), this.finishNode(n, "SpreadElement"));
6734
- this.options.ecmaVersion >= 6 && (n.method = !1, n.shorthand = !1, (e || t) && (a = this.start, o = this.startLoc), e || (r = this.eat(z.star)));
6743
+ if (this.options.ecmaVersion >= 9 && this.eat(B.ellipsis)) return e ? (n.argument = this.parseIdent(!1), this.type === B.comma && this.raiseRecoverable(this.start, "Comma is not permitted after the rest element"), this.finishNode(n, "RestElement")) : (n.argument = this.parseMaybeAssign(!1, t), this.type === B.comma && t && t.trailingComma < 0 && (t.trailingComma = this.start), this.finishNode(n, "SpreadElement"));
6744
+ this.options.ecmaVersion >= 6 && (n.method = !1, n.shorthand = !1, (e || t) && (a = this.start, o = this.startLoc), e || (r = this.eat(B.star)));
6735
6745
  var s = this.containsEsc;
6736
- return this.parsePropertyName(n), !e && !s && this.options.ecmaVersion >= 8 && !r && this.isAsyncProp(n) ? (i = !0, r = this.options.ecmaVersion >= 9 && this.eat(z.star), this.parsePropertyName(n)) : i = !1, this.parsePropertyValue(n, e, r, i, a, o, t, s), this.finishNode(n, "Property");
6737
- }, Y.parseGetterSetter = function(e) {
6746
+ return this.parsePropertyName(n), !e && !s && this.options.ecmaVersion >= 8 && !r && this.isAsyncProp(n) ? (i = !0, r = this.options.ecmaVersion >= 9 && this.eat(B.star), this.parsePropertyName(n)) : i = !1, this.parsePropertyValue(n, e, r, i, a, o, t, s), this.finishNode(n, "Property");
6747
+ }, X.parseGetterSetter = function(e) {
6738
6748
  var t = e.key.name;
6739
6749
  this.parsePropertyName(e), e.value = this.parseMethod(!1), e.kind = t;
6740
6750
  var n = e.kind === "get" ? 0 : 1;
@@ -6742,202 +6752,202 @@ Y.parseNew = function() {
6742
6752
  var r = e.value.start;
6743
6753
  e.kind === "get" ? this.raiseRecoverable(r, "getter should have no params") : this.raiseRecoverable(r, "setter should have exactly one param");
6744
6754
  } else e.kind === "set" && e.value.params[0].type === "RestElement" && this.raiseRecoverable(e.value.params[0].start, "Setter cannot use rest params");
6745
- }, Y.parsePropertyValue = function(e, t, n, r, i, a, o, s) {
6746
- (n || r) && this.type === z.colon && this.unexpected(), this.eat(z.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, o), e.kind = "init") : this.options.ecmaVersion >= 6 && this.type === z.parenL ? (t && this.unexpected(), e.method = !0, e.value = this.parseMethod(n, r), e.kind = "init") : !t && !s && this.options.ecmaVersion >= 5 && !e.computed && e.key.type === "Identifier" && (e.key.name === "get" || e.key.name === "set") && this.type !== z.comma && this.type !== z.braceR && this.type !== z.eq ? ((n || r) && this.unexpected(), this.parseGetterSetter(e)) : this.options.ecmaVersion >= 6 && !e.computed && e.key.type === "Identifier" ? ((n || r) && this.unexpected(), this.checkUnreserved(e.key), e.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = i), t ? e.value = this.parseMaybeDefault(i, a, this.copyNode(e.key)) : this.type === z.eq && o ? (o.shorthandAssign < 0 && (o.shorthandAssign = this.start), e.value = this.parseMaybeDefault(i, a, this.copyNode(e.key))) : e.value = this.copyNode(e.key), e.kind = "init", e.shorthand = !0) : this.unexpected();
6747
- }, Y.parsePropertyName = function(e) {
6755
+ }, X.parsePropertyValue = function(e, t, n, r, i, a, o, s) {
6756
+ (n || r) && this.type === B.colon && this.unexpected(), this.eat(B.colon) ? (e.value = t ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(!1, o), e.kind = "init") : this.options.ecmaVersion >= 6 && this.type === B.parenL ? (t && this.unexpected(), e.method = !0, e.value = this.parseMethod(n, r), e.kind = "init") : !t && !s && this.options.ecmaVersion >= 5 && !e.computed && e.key.type === "Identifier" && (e.key.name === "get" || e.key.name === "set") && this.type !== B.comma && this.type !== B.braceR && this.type !== B.eq ? ((n || r) && this.unexpected(), this.parseGetterSetter(e)) : this.options.ecmaVersion >= 6 && !e.computed && e.key.type === "Identifier" ? ((n || r) && this.unexpected(), this.checkUnreserved(e.key), e.key.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = i), t ? e.value = this.parseMaybeDefault(i, a, this.copyNode(e.key)) : this.type === B.eq && o ? (o.shorthandAssign < 0 && (o.shorthandAssign = this.start), e.value = this.parseMaybeDefault(i, a, this.copyNode(e.key))) : e.value = this.copyNode(e.key), e.kind = "init", e.shorthand = !0) : this.unexpected();
6757
+ }, X.parsePropertyName = function(e) {
6748
6758
  if (this.options.ecmaVersion >= 6) {
6749
- if (this.eat(z.bracketL)) return e.computed = !0, e.key = this.parseMaybeAssign(), this.expect(z.bracketR), e.key;
6759
+ if (this.eat(B.bracketL)) return e.computed = !0, e.key = this.parseMaybeAssign(), this.expect(B.bracketR), e.key;
6750
6760
  e.computed = !1;
6751
6761
  }
6752
- return e.key = this.type === z.num || this.type === z.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
6753
- }, Y.initFunction = function(e) {
6762
+ return e.key = this.type === B.num || this.type === B.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== "never");
6763
+ }, X.initFunction = function(e) {
6754
6764
  e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = !1), this.options.ecmaVersion >= 8 && (e.async = !1);
6755
- }, Y.parseMethod = function(e, t, n) {
6765
+ }, X.parseMethod = function(e, t, n) {
6756
6766
  var r = this.startNode(), i = this.yieldPos, a = this.awaitPos, o = this.awaitIdentPos;
6757
- return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(ca(t, r.generator) | na | (n ? ra : 0)), this.expect(z.parenL), r.params = this.parseBindingList(z.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(r, !1, !0, !1), this.yieldPos = i, this.awaitPos = a, this.awaitIdentPos = o, this.finishNode(r, "FunctionExpression");
6758
- }, Y.parseArrowExpression = function(e, t, n, r) {
6767
+ return this.initFunction(r), this.options.ecmaVersion >= 6 && (r.generator = e), this.options.ecmaVersion >= 8 && (r.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(sa(t, r.generator) | ta | (n ? na : 0)), this.expect(B.parenL), r.params = this.parseBindingList(B.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(r, !1, !0, !1), this.yieldPos = i, this.awaitPos = a, this.awaitIdentPos = o, this.finishNode(r, "FunctionExpression");
6768
+ }, X.parseArrowExpression = function(e, t, n, r) {
6759
6769
  var i = this.yieldPos, a = this.awaitPos, o = this.awaitIdentPos;
6760
- return this.enterScope(ca(n, !1) | ea), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!n), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, r), this.yieldPos = i, this.awaitPos = a, this.awaitIdentPos = o, this.finishNode(e, "ArrowFunctionExpression");
6761
- }, Y.parseFunctionBody = function(e, t, n, r) {
6762
- var i = t && this.type !== z.braceL, a = this.strict, o = !1;
6770
+ return this.enterScope(sa(n, !1) | $i), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!n), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1, r), this.yieldPos = i, this.awaitPos = a, this.awaitIdentPos = o, this.finishNode(e, "ArrowFunctionExpression");
6771
+ }, X.parseFunctionBody = function(e, t, n, r) {
6772
+ var i = t && this.type !== B.braceL, a = this.strict, o = !1;
6763
6773
  if (i) e.body = this.parseMaybeAssign(r), e.expression = !0, this.checkParams(e, !1);
6764
6774
  else {
6765
6775
  var s = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
6766
6776
  (!a || s) && (o = this.strictDirective(this.end), o && s && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
6767
6777
  var c = this.labels;
6768
- this.labels = [], o && (this.strict = !0), this.checkParams(e, !a && !o && !t && !n && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, ma), e.body = this.parseBlock(!1, void 0, o && !a), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = c;
6778
+ this.labels = [], o && (this.strict = !0), this.checkParams(e, !a && !o && !t && !n && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLValSimple(e.id, pa), e.body = this.parseBlock(!1, void 0, o && !a), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = c;
6769
6779
  }
6770
6780
  this.exitScope();
6771
- }, Y.isSimpleParamList = function(e) {
6781
+ }, X.isSimpleParamList = function(e) {
6772
6782
  for (var t = 0, n = e; t < n.length; t += 1) if (n[t].type !== "Identifier") return !1;
6773
6783
  return !0;
6774
- }, Y.checkParams = function(e, t) {
6784
+ }, X.checkParams = function(e, t) {
6775
6785
  for (var n = Object.create(null), r = 0, i = e.params; r < i.length; r += 1) {
6776
6786
  var a = i[r];
6777
- this.checkLValInnerPattern(a, ua, t ? null : n);
6787
+ this.checkLValInnerPattern(a, la, t ? null : n);
6778
6788
  }
6779
- }, Y.parseExprList = function(e, t, n, r) {
6789
+ }, X.parseExprList = function(e, t, n, r) {
6780
6790
  for (var i = [], a = !0; !this.eat(e);) {
6781
6791
  if (a) a = !1;
6782
- else if (this.expect(z.comma), t && this.afterTrailingComma(e)) break;
6792
+ else if (this.expect(B.comma), t && this.afterTrailingComma(e)) break;
6783
6793
  var o = void 0;
6784
- n && this.type === z.comma ? o = null : this.type === z.ellipsis ? (o = this.parseSpread(r), r && this.type === z.comma && r.trailingComma < 0 && (r.trailingComma = this.start)) : o = this.parseMaybeAssign(!1, r), i.push(o);
6794
+ n && this.type === B.comma ? o = null : this.type === B.ellipsis ? (o = this.parseSpread(r), r && this.type === B.comma && r.trailingComma < 0 && (r.trailingComma = this.start)) : o = this.parseMaybeAssign(!1, r), i.push(o);
6785
6795
  }
6786
6796
  return i;
6787
- }, Y.checkUnreserved = function(e) {
6797
+ }, X.checkUnreserved = function(e) {
6788
6798
  var t = e.start, n = e.end, r = e.name;
6789
- this.inGenerator && r === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & sa) && r === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (r === "arguments" || r === "await") && this.raise(t, "Cannot use " + r + " in class static initialization block"), this.keywords.test(r) && this.raise(t, "Unexpected keyword '" + r + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, n).indexOf("\\") !== -1) && (this.strict ? this.reservedWordsStrict : this.reservedWords).test(r) && (!this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t, "The keyword '" + r + "' is reserved"));
6790
- }, Y.parseIdent = function(e) {
6799
+ this.inGenerator && r === "yield" && this.raiseRecoverable(t, "Cannot use 'yield' as identifier inside a generator"), this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use 'await' as identifier inside an async function"), !(this.currentThisScope().flags & oa) && r === "arguments" && this.raiseRecoverable(t, "Cannot use 'arguments' in class field initializer"), this.inClassStaticBlock && (r === "arguments" || r === "await") && this.raise(t, "Cannot use " + r + " in class static initialization block"), this.keywords.test(r) && this.raise(t, "Unexpected keyword '" + r + "'"), !(this.options.ecmaVersion < 6 && this.input.slice(t, n).indexOf("\\") !== -1) && (this.strict ? this.reservedWordsStrict : this.reservedWords).test(r) && (!this.inAsync && r === "await" && this.raiseRecoverable(t, "Cannot use keyword 'await' outside an async function"), this.raiseRecoverable(t, "The keyword '" + r + "' is reserved"));
6800
+ }, X.parseIdent = function(e) {
6791
6801
  var t = this.parseIdentNode();
6792
6802
  return this.next(!!e), this.finishNode(t, "Identifier"), e || (this.checkUnreserved(t), t.name === "await" && !this.awaitIdentPos && (this.awaitIdentPos = t.start)), t;
6793
- }, Y.parseIdentNode = function() {
6803
+ }, X.parseIdentNode = function() {
6794
6804
  var e = this.startNode();
6795
- return this.type === z.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 = z.name) : this.unexpected(), e;
6796
- }, Y.parsePrivateIdent = function() {
6805
+ return this.type === B.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 = B.name) : this.unexpected(), e;
6806
+ }, X.parsePrivateIdent = function() {
6797
6807
  var e = this.startNode();
6798
- return this.type === z.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;
6799
- }, Y.parseYield = function(e) {
6808
+ return this.type === B.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;
6809
+ }, X.parseYield = function(e) {
6800
6810
  this.yieldPos ||= this.start;
6801
6811
  var t = this.startNode();
6802
- return this.next(), this.type === z.semi || this.canInsertSemicolon() || this.type !== z.star && !this.type.startsExpr ? (t.delegate = !1, t.argument = null) : (t.delegate = this.eat(z.star), t.argument = this.parseMaybeAssign(e)), this.finishNode(t, "YieldExpression");
6803
- }, Y.parseAwait = function(e) {
6812
+ return this.next(), this.type === B.semi || this.canInsertSemicolon() || this.type !== B.star && !this.type.startsExpr ? (t.delegate = !1, t.argument = null) : (t.delegate = this.eat(B.star), t.argument = this.parseMaybeAssign(e)), this.finishNode(t, "YieldExpression");
6813
+ }, X.parseAwait = function(e) {
6804
6814
  this.awaitPos ||= this.start;
6805
6815
  var t = this.startNode();
6806
6816
  return this.next(), t.argument = this.parseMaybeUnary(null, !0, !1, e), this.finishNode(t, "AwaitExpression");
6807
6817
  };
6808
- var ka = H.prototype;
6809
- ka.raise = function(e, t) {
6810
- var n = Gi(this.input, e);
6818
+ var Oa = U.prototype;
6819
+ Oa.raise = function(e, t) {
6820
+ var n = Wi(this.input, e);
6811
6821
  t += " (" + n.line + ":" + n.column + ")", this.sourceFile && (t += " in " + this.sourceFile);
6812
6822
  var r = SyntaxError(t);
6813
6823
  throw r.pos = e, r.loc = n, r.raisedAt = this.pos, r;
6814
- }, ka.raiseRecoverable = ka.raise, ka.curPosition = function() {
6815
- if (this.options.locations) return new Ui(this.curLine, this.pos - this.lineStart);
6824
+ }, Oa.raiseRecoverable = Oa.raise, Oa.curPosition = function() {
6825
+ if (this.options.locations) return new Hi(this.curLine, this.pos - this.lineStart);
6816
6826
  };
6817
- var Aa = H.prototype, ja = function(e) {
6827
+ var ka = U.prototype, Aa = function(e) {
6818
6828
  this.flags = e, this.var = [], this.lexical = [], this.functions = [];
6819
6829
  };
6820
- Aa.enterScope = function(e) {
6821
- this.scopeStack.push(new ja(e));
6822
- }, Aa.exitScope = function() {
6830
+ ka.enterScope = function(e) {
6831
+ this.scopeStack.push(new Aa(e));
6832
+ }, ka.exitScope = function() {
6823
6833
  this.scopeStack.pop();
6824
- }, Aa.treatFunctionsAsVarInScope = function(e) {
6825
- return e.flags & Zi || !this.inModule && e.flags & Xi;
6826
- }, Aa.declareName = function(e, t, n) {
6834
+ }, ka.treatFunctionsAsVarInScope = function(e) {
6835
+ return e.flags & Xi || !this.inModule && e.flags & Yi;
6836
+ }, ka.declareName = function(e, t, n) {
6827
6837
  var r = !1;
6828
- if (t === da) {
6838
+ if (t === ua) {
6829
6839
  var i = this.currentScope();
6830
- r = i.lexical.indexOf(e) > -1 || i.functions.indexOf(e) > -1 || i.var.indexOf(e) > -1, i.lexical.push(e), this.inModule && i.flags & Xi && delete this.undefinedExports[e];
6831
- } else if (t === pa) this.currentScope().lexical.push(e);
6832
- else if (t === fa) {
6840
+ r = i.lexical.indexOf(e) > -1 || i.functions.indexOf(e) > -1 || i.var.indexOf(e) > -1, i.lexical.push(e), this.inModule && i.flags & Yi && delete this.undefinedExports[e];
6841
+ } else if (t === fa) this.currentScope().lexical.push(e);
6842
+ else if (t === da) {
6833
6843
  var a = this.currentScope();
6834
6844
  r = this.treatFunctionsAsVar ? a.lexical.indexOf(e) > -1 : a.lexical.indexOf(e) > -1 || a.var.indexOf(e) > -1, a.functions.push(e);
6835
6845
  } else for (var o = this.scopeStack.length - 1; o >= 0; --o) {
6836
6846
  var s = this.scopeStack[o];
6837
- if (s.lexical.indexOf(e) > -1 && !(s.flags & ta && s.lexical[0] === e) || !this.treatFunctionsAsVarInScope(s) && s.functions.indexOf(e) > -1) {
6847
+ if (s.lexical.indexOf(e) > -1 && !(s.flags & ea && s.lexical[0] === e) || !this.treatFunctionsAsVarInScope(s) && s.functions.indexOf(e) > -1) {
6838
6848
  r = !0;
6839
6849
  break;
6840
6850
  }
6841
- if (s.var.push(e), this.inModule && s.flags & Xi && delete this.undefinedExports[e], s.flags & sa) break;
6851
+ if (s.var.push(e), this.inModule && s.flags & Yi && delete this.undefinedExports[e], s.flags & oa) break;
6842
6852
  }
6843
6853
  r && this.raiseRecoverable(n, "Identifier '" + e + "' has already been declared");
6844
- }, Aa.checkLocalExport = function(e) {
6854
+ }, ka.checkLocalExport = function(e) {
6845
6855
  this.scopeStack[0].lexical.indexOf(e.name) === -1 && this.scopeStack[0].var.indexOf(e.name) === -1 && (this.undefinedExports[e.name] = e);
6846
- }, Aa.currentScope = function() {
6856
+ }, ka.currentScope = function() {
6847
6857
  return this.scopeStack[this.scopeStack.length - 1];
6848
- }, Aa.currentVarScope = function() {
6858
+ }, ka.currentVarScope = function() {
6849
6859
  for (var e = this.scopeStack.length - 1;; e--) {
6850
6860
  var t = this.scopeStack[e];
6851
- if (t.flags & (sa | aa | ia)) return t;
6861
+ if (t.flags & (oa | ia | ra)) return t;
6852
6862
  }
6853
- }, Aa.currentThisScope = function() {
6863
+ }, ka.currentThisScope = function() {
6854
6864
  for (var e = this.scopeStack.length - 1;; e--) {
6855
6865
  var t = this.scopeStack[e];
6856
- if (t.flags & (sa | aa | ia) && !(t.flags & ea)) return t;
6866
+ if (t.flags & (oa | ia | ra) && !(t.flags & $i)) return t;
6857
6867
  }
6858
6868
  };
6859
- var Ma = function(e, t, n) {
6860
- this.type = "", this.start = t, this.end = 0, e.options.locations && (this.loc = new Wi(e, n)), e.options.directSourceFile && (this.sourceFile = e.options.directSourceFile), e.options.ranges && (this.range = [t, 0]);
6861
- }, Na = H.prototype;
6862
- Na.startNode = function() {
6863
- return new Ma(this, this.start, this.startLoc);
6864
- }, Na.startNodeAt = function(e, t) {
6865
- return new Ma(this, e, t);
6869
+ var ja = function(e, t, n) {
6870
+ this.type = "", this.start = t, this.end = 0, e.options.locations && (this.loc = new Ui(e, n)), e.options.directSourceFile && (this.sourceFile = e.options.directSourceFile), e.options.ranges && (this.range = [t, 0]);
6871
+ }, Ma = U.prototype;
6872
+ Ma.startNode = function() {
6873
+ return new ja(this, this.start, this.startLoc);
6874
+ }, Ma.startNodeAt = function(e, t) {
6875
+ return new ja(this, e, t);
6866
6876
  };
6867
- function Pa(e, t, n, r) {
6877
+ function Na(e, t, n, r) {
6868
6878
  return e.type = t, e.end = n, this.options.locations && (e.loc.end = r), this.options.ranges && (e.range[1] = n), e;
6869
6879
  }
6870
- Na.finishNode = function(e, t) {
6871
- return Pa.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
6872
- }, Na.finishNodeAt = function(e, t, n, r) {
6873
- return Pa.call(this, e, t, n, r);
6874
- }, Na.copyNode = function(e) {
6875
- var t = new Ma(this, e.start, this.startLoc);
6880
+ Ma.finishNode = function(e, t) {
6881
+ return Na.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
6882
+ }, Ma.finishNodeAt = function(e, t, n, r) {
6883
+ return Na.call(this, e, t, n, r);
6884
+ }, Ma.copyNode = function(e) {
6885
+ var t = new ja(this, e.start, this.startLoc);
6876
6886
  for (var n in e) t[n] = e[n];
6877
6887
  return t;
6878
6888
  };
6879
- var Fa = "Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz", Ia = "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", La = Ia + " Extended_Pictographic", Ra = La, za = Ra + " EBase EComp EMod EPres ExtPict", Ba = za, Va = {
6880
- 9: Ia,
6881
- 10: La,
6882
- 11: Ra,
6883
- 12: za,
6884
- 13: Ba,
6885
- 14: Ba
6886
- }, Ha = {
6889
+ var Pa = "Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz", Fa = "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", Ia = Fa + " Extended_Pictographic", La = Ia, Ra = La + " EBase EComp EMod EPres ExtPict", za = Ra, Ba = {
6890
+ 9: Fa,
6891
+ 10: Ia,
6892
+ 11: La,
6893
+ 12: Ra,
6894
+ 13: za,
6895
+ 14: za
6896
+ }, Va = {
6887
6897
  9: "",
6888
6898
  10: "",
6889
6899
  11: "",
6890
6900
  12: "",
6891
6901
  13: "",
6892
6902
  14: "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"
6893
- }, Ua = "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", Wa = "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", Ga = Wa + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Ka = Ga + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", qa = Ka + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", Ja = qa + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", Ya = {
6894
- 9: Wa,
6895
- 10: Ga,
6896
- 11: Ka,
6897
- 12: qa,
6898
- 13: Ja,
6899
- 14: Ja + " " + Fa
6900
- }, Xa = {};
6901
- function Za(e) {
6902
- var t = Xa[e] = {
6903
- binary: Bi(Va[e] + " " + Ua),
6904
- binaryOfStrings: Bi(Ha[e]),
6903
+ }, Ha = "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", Ua = "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", Wa = Ua + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Ga = Wa + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Ka = Ga + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi", qa = Ka + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith", Ja = {
6904
+ 9: Ua,
6905
+ 10: Wa,
6906
+ 11: Ga,
6907
+ 12: Ka,
6908
+ 13: qa,
6909
+ 14: qa + " " + Pa
6910
+ }, Ya = {};
6911
+ function Xa(e) {
6912
+ var t = Ya[e] = {
6913
+ binary: zi(Ba[e] + " " + Ha),
6914
+ binaryOfStrings: zi(Va[e]),
6905
6915
  nonBinary: {
6906
- General_Category: Bi(Ua),
6907
- Script: Bi(Ya[e])
6916
+ General_Category: zi(Ha),
6917
+ Script: zi(Ja[e])
6908
6918
  }
6909
6919
  };
6910
6920
  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;
6911
6921
  }
6912
- for (var Qa = 0, $a = [
6922
+ for (var Za = 0, Qa = [
6913
6923
  9,
6914
6924
  10,
6915
6925
  11,
6916
6926
  12,
6917
6927
  13,
6918
6928
  14
6919
- ]; Qa < $a.length; Qa += 1) {
6920
- var eo = $a[Qa];
6921
- Za(eo);
6929
+ ]; Za < Qa.length; Za += 1) {
6930
+ var $a = Qa[Za];
6931
+ Xa($a);
6922
6932
  }
6923
- var X = H.prototype, to = function(e, t) {
6933
+ var Z = U.prototype, eo = function(e, t) {
6924
6934
  this.parent = e, this.base = t || this;
6925
6935
  };
6926
- to.prototype.separatedFrom = function(e) {
6936
+ eo.prototype.separatedFrom = function(e) {
6927
6937
  for (var t = this; t; t = t.parent) for (var n = e; n; n = n.parent) if (t.base === n.base && t !== n) return !0;
6928
6938
  return !1;
6929
- }, to.prototype.sibling = function() {
6930
- return new to(this.parent, this.base);
6939
+ }, eo.prototype.sibling = function() {
6940
+ return new eo(this.parent, this.base);
6931
6941
  };
6932
- var no = function(e) {
6933
- this.parser = e, this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : "") + (e.options.ecmaVersion >= 13 ? "d" : "") + (e.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = Xa[e.options.ecmaVersion >= 14 ? 14 : e.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;
6942
+ var to = function(e) {
6943
+ this.parser = e, this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : "") + (e.options.ecmaVersion >= 13 ? "d" : "") + (e.options.ecmaVersion >= 15 ? "v" : ""), this.unicodeProperties = Ya[e.options.ecmaVersion >= 14 ? 14 : e.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;
6934
6944
  };
6935
- no.prototype.reset = function(e, t, n) {
6945
+ to.prototype.reset = function(e, t, n) {
6936
6946
  var r = n.indexOf("v") !== -1, i = n.indexOf("u") !== -1;
6937
6947
  this.start = e | 0, this.source = t + "", this.flags = n, r && this.parser.options.ecmaVersion >= 15 ? (this.switchU = !0, this.switchV = !0, this.switchN = !0) : (this.switchU = i && this.parser.options.ecmaVersion >= 6, this.switchV = !1, this.switchN = i && this.parser.options.ecmaVersion >= 9);
6938
- }, no.prototype.raise = function(e) {
6948
+ }, to.prototype.raise = function(e) {
6939
6949
  this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + e);
6940
- }, no.prototype.at = function(e, t) {
6950
+ }, to.prototype.at = function(e, t) {
6941
6951
  t === void 0 && (t = !1);
6942
6952
  var n = this.source, r = n.length;
6943
6953
  if (e >= r) return -1;
@@ -6945,21 +6955,21 @@ no.prototype.reset = function(e, t, n) {
6945
6955
  if (!(t || this.switchU) || i <= 55295 || i >= 57344 || e + 1 >= r) return i;
6946
6956
  var a = n.charCodeAt(e + 1);
6947
6957
  return a >= 56320 && a <= 57343 ? (i << 10) + a - 56613888 : i;
6948
- }, no.prototype.nextIndex = function(e, t) {
6958
+ }, to.prototype.nextIndex = function(e, t) {
6949
6959
  t === void 0 && (t = !1);
6950
6960
  var n = this.source, r = n.length;
6951
6961
  if (e >= r) return r;
6952
6962
  var i = n.charCodeAt(e), a;
6953
6963
  return !(t || this.switchU) || i <= 55295 || i >= 57344 || e + 1 >= r || (a = n.charCodeAt(e + 1)) < 56320 || a > 57343 ? e + 1 : e + 2;
6954
- }, no.prototype.current = function(e) {
6964
+ }, to.prototype.current = function(e) {
6955
6965
  return e === void 0 && (e = !1), this.at(this.pos, e);
6956
- }, no.prototype.lookahead = function(e) {
6966
+ }, to.prototype.lookahead = function(e) {
6957
6967
  return e === void 0 && (e = !1), this.at(this.nextIndex(this.pos, e), e);
6958
- }, no.prototype.advance = function(e) {
6968
+ }, to.prototype.advance = function(e) {
6959
6969
  e === void 0 && (e = !1), this.pos = this.nextIndex(this.pos, e);
6960
- }, no.prototype.eat = function(e, t) {
6970
+ }, to.prototype.eat = function(e, t) {
6961
6971
  return t === void 0 && (t = !1), this.current(t) === e && (this.advance(t), !0);
6962
- }, no.prototype.eatChars = function(e, t) {
6972
+ }, to.prototype.eatChars = function(e, t) {
6963
6973
  t === void 0 && (t = !1);
6964
6974
  for (var n = this.pos, r = 0, i = e; r < i.length; r += 1) {
6965
6975
  var a = i[r], o = this.at(n, t);
@@ -6967,34 +6977,34 @@ no.prototype.reset = function(e, t, n) {
6967
6977
  n = this.nextIndex(n, t);
6968
6978
  }
6969
6979
  return this.pos = n, !0;
6970
- }, X.validateRegExpFlags = function(e) {
6980
+ }, Z.validateRegExpFlags = function(e) {
6971
6981
  for (var t = e.validFlags, n = e.flags, r = !1, i = !1, a = 0; a < n.length; a++) {
6972
6982
  var o = n.charAt(a);
6973
6983
  t.indexOf(o) === -1 && this.raise(e.start, "Invalid regular expression flag"), n.indexOf(o, a + 1) > -1 && this.raise(e.start, "Duplicate regular expression flag"), o === "u" && (r = !0), o === "v" && (i = !0);
6974
6984
  }
6975
6985
  this.options.ecmaVersion >= 15 && r && i && this.raise(e.start, "Invalid regular expression flag");
6976
6986
  };
6977
- function ro(e) {
6987
+ function no(e) {
6978
6988
  for (var t in e) return !0;
6979
6989
  return !1;
6980
6990
  }
6981
- X.validateRegExpPattern = function(e) {
6982
- this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && ro(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
6983
- }, X.regexp_pattern = function(e) {
6991
+ Z.validateRegExpPattern = function(e) {
6992
+ this.regexp_pattern(e), !e.switchN && this.options.ecmaVersion >= 9 && no(e.groupNames) && (e.switchN = !0, this.regexp_pattern(e));
6993
+ }, Z.regexp_pattern = function(e) {
6984
6994
  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");
6985
6995
  for (var t = 0, n = e.backReferenceNames; t < n.length; t += 1) {
6986
6996
  var r = n[t];
6987
6997
  e.groupNames[r] || e.raise("Invalid named capture referenced");
6988
6998
  }
6989
- }, X.regexp_disjunction = function(e) {
6999
+ }, Z.regexp_disjunction = function(e) {
6990
7000
  var t = this.options.ecmaVersion >= 16;
6991
- for (t && (e.branchID = new to(e.branchID, null)), this.regexp_alternative(e); e.eat(124);) t && (e.branchID = e.branchID.sibling()), this.regexp_alternative(e);
7001
+ for (t && (e.branchID = new eo(e.branchID, null)), this.regexp_alternative(e); e.eat(124);) t && (e.branchID = e.branchID.sibling()), this.regexp_alternative(e);
6992
7002
  t && (e.branchID = e.branchID.parent), this.regexp_eatQuantifier(e, !0) && e.raise("Nothing to repeat"), e.eat(123) && e.raise("Lone quantifier brackets");
6993
- }, X.regexp_alternative = function(e) {
7003
+ }, Z.regexp_alternative = function(e) {
6994
7004
  for (; e.pos < e.source.length && this.regexp_eatTerm(e););
6995
- }, X.regexp_eatTerm = function(e) {
7005
+ }, Z.regexp_eatTerm = function(e) {
6996
7006
  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;
6997
- }, X.regexp_eatAssertion = function(e) {
7007
+ }, Z.regexp_eatAssertion = function(e) {
6998
7008
  var t = e.pos;
6999
7009
  if (e.lastAssertionIsQuantifiable = !1, e.eat(94) || e.eat(36)) return !0;
7000
7010
  if (e.eat(92)) {
@@ -7006,11 +7016,11 @@ X.validateRegExpPattern = function(e) {
7006
7016
  if (this.options.ecmaVersion >= 9 && (n = e.eat(60)), e.eat(61) || e.eat(33)) return this.regexp_disjunction(e), e.eat(41) || e.raise("Unterminated group"), e.lastAssertionIsQuantifiable = !n, !0;
7007
7017
  }
7008
7018
  return e.pos = t, !1;
7009
- }, X.regexp_eatQuantifier = function(e, t) {
7019
+ }, Z.regexp_eatQuantifier = function(e, t) {
7010
7020
  return t === void 0 && (t = !1), this.regexp_eatQuantifierPrefix(e, t) ? (e.eat(63), !0) : !1;
7011
- }, X.regexp_eatQuantifierPrefix = function(e, t) {
7021
+ }, Z.regexp_eatQuantifierPrefix = function(e, t) {
7012
7022
  return e.eat(42) || e.eat(43) || e.eat(63) || this.regexp_eatBracedQuantifier(e, t);
7013
- }, X.regexp_eatBracedQuantifier = function(e, t) {
7023
+ }, Z.regexp_eatBracedQuantifier = function(e, t) {
7014
7024
  var n = e.pos;
7015
7025
  if (e.eat(123)) {
7016
7026
  var r = 0, i = -1;
@@ -7018,16 +7028,16 @@ X.validateRegExpPattern = function(e) {
7018
7028
  e.switchU && !t && e.raise("Incomplete quantifier"), e.pos = n;
7019
7029
  }
7020
7030
  return !1;
7021
- }, X.regexp_eatAtom = function(e) {
7031
+ }, Z.regexp_eatAtom = function(e) {
7022
7032
  return this.regexp_eatPatternCharacters(e) || e.eat(46) || this.regexp_eatReverseSolidusAtomEscape(e) || this.regexp_eatCharacterClass(e) || this.regexp_eatUncapturingGroup(e) || this.regexp_eatCapturingGroup(e);
7023
- }, X.regexp_eatReverseSolidusAtomEscape = function(e) {
7033
+ }, Z.regexp_eatReverseSolidusAtomEscape = function(e) {
7024
7034
  var t = e.pos;
7025
7035
  if (e.eat(92)) {
7026
7036
  if (this.regexp_eatAtomEscape(e)) return !0;
7027
7037
  e.pos = t;
7028
7038
  }
7029
7039
  return !1;
7030
- }, X.regexp_eatUncapturingGroup = function(e) {
7040
+ }, Z.regexp_eatUncapturingGroup = function(e) {
7031
7041
  var t = e.pos;
7032
7042
  if (e.eat(40)) {
7033
7043
  if (e.eat(63)) {
@@ -7056,37 +7066,37 @@ X.validateRegExpPattern = function(e) {
7056
7066
  e.pos = t;
7057
7067
  }
7058
7068
  return !1;
7059
- }, X.regexp_eatCapturingGroup = function(e) {
7069
+ }, Z.regexp_eatCapturingGroup = function(e) {
7060
7070
  if (e.eat(40)) {
7061
7071
  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;
7062
7072
  e.raise("Unterminated group");
7063
7073
  }
7064
7074
  return !1;
7065
- }, X.regexp_eatModifiers = function(e) {
7066
- for (var t = "", n = 0; (n = e.current()) !== -1 && io(n);) t += Vi(n), e.advance();
7075
+ }, Z.regexp_eatModifiers = function(e) {
7076
+ for (var t = "", n = 0; (n = e.current()) !== -1 && ro(n);) t += Bi(n), e.advance();
7067
7077
  return t;
7068
7078
  };
7069
- function io(e) {
7079
+ function ro(e) {
7070
7080
  return e === 105 || e === 109 || e === 115;
7071
7081
  }
7072
- X.regexp_eatExtendedAtom = function(e) {
7082
+ Z.regexp_eatExtendedAtom = function(e) {
7073
7083
  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);
7074
- }, X.regexp_eatInvalidBracedQuantifier = function(e) {
7084
+ }, Z.regexp_eatInvalidBracedQuantifier = function(e) {
7075
7085
  return this.regexp_eatBracedQuantifier(e, !0) && e.raise("Nothing to repeat"), !1;
7076
- }, X.regexp_eatSyntaxCharacter = function(e) {
7086
+ }, Z.regexp_eatSyntaxCharacter = function(e) {
7077
7087
  var t = e.current();
7078
- return ao(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
7088
+ return io(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
7079
7089
  };
7080
- function ao(e) {
7090
+ function io(e) {
7081
7091
  return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
7082
7092
  }
7083
- X.regexp_eatPatternCharacters = function(e) {
7084
- for (var t = e.pos, n = 0; (n = e.current()) !== -1 && !ao(n);) e.advance();
7093
+ Z.regexp_eatPatternCharacters = function(e) {
7094
+ for (var t = e.pos, n = 0; (n = e.current()) !== -1 && !io(n);) e.advance();
7085
7095
  return e.pos !== t;
7086
- }, X.regexp_eatExtendedPatternCharacter = function(e) {
7096
+ }, Z.regexp_eatExtendedPatternCharacter = function(e) {
7087
7097
  var t = e.current();
7088
7098
  return t !== -1 && t !== 36 && !(t >= 40 && t <= 43) && t !== 46 && t !== 63 && t !== 91 && t !== 94 && t !== 124 && (e.advance(), !0);
7089
- }, X.regexp_groupSpecifier = function(e) {
7099
+ }, Z.regexp_groupSpecifier = function(e) {
7090
7100
  if (e.eat(63)) {
7091
7101
  this.regexp_eatGroupName(e) || e.raise("Invalid group");
7092
7102
  var t = this.options.ecmaVersion >= 16, n = e.groupNames[e.lastStringValue];
@@ -7096,35 +7106,35 @@ X.regexp_eatPatternCharacters = function(e) {
7096
7106
  }
7097
7107
  t ? (n || (e.groupNames[e.lastStringValue] = [])).push(e.branchID) : e.groupNames[e.lastStringValue] = !0;
7098
7108
  }
7099
- }, X.regexp_eatGroupName = function(e) {
7109
+ }, Z.regexp_eatGroupName = function(e) {
7100
7110
  if (e.lastStringValue = "", e.eat(60)) {
7101
7111
  if (this.regexp_eatRegExpIdentifierName(e) && e.eat(62)) return !0;
7102
7112
  e.raise("Invalid capture group name");
7103
7113
  }
7104
7114
  return !1;
7105
- }, X.regexp_eatRegExpIdentifierName = function(e) {
7115
+ }, Z.regexp_eatRegExpIdentifierName = function(e) {
7106
7116
  if (e.lastStringValue = "", this.regexp_eatRegExpIdentifierStart(e)) {
7107
- for (e.lastStringValue += Vi(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e);) e.lastStringValue += Vi(e.lastIntValue);
7117
+ for (e.lastStringValue += Bi(e.lastIntValue); this.regexp_eatRegExpIdentifierPart(e);) e.lastStringValue += Bi(e.lastIntValue);
7108
7118
  return !0;
7109
7119
  }
7110
7120
  return !1;
7111
- }, X.regexp_eatRegExpIdentifierStart = function(e) {
7121
+ }, Z.regexp_eatRegExpIdentifierStart = function(e) {
7112
7122
  var t = e.pos, n = this.options.ecmaVersion >= 11, r = e.current(n);
7113
- return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), oo(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
7123
+ return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), ao(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
7114
7124
  };
7115
- function oo(e) {
7116
- return Di(e, !0) || e === 36 || e === 95;
7125
+ function ao(e) {
7126
+ return Ei(e, !0) || e === 36 || e === 95;
7117
7127
  }
7118
- X.regexp_eatRegExpIdentifierPart = function(e) {
7128
+ Z.regexp_eatRegExpIdentifierPart = function(e) {
7119
7129
  var t = e.pos, n = this.options.ecmaVersion >= 11, r = e.current(n);
7120
- return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), so(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
7130
+ return e.advance(n), r === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, n) && (r = e.lastIntValue), oo(r) ? (e.lastIntValue = r, !0) : (e.pos = t, !1);
7121
7131
  };
7122
- function so(e) {
7123
- return Oi(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
7132
+ function oo(e) {
7133
+ return Di(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
7124
7134
  }
7125
- X.regexp_eatAtomEscape = function(e) {
7135
+ Z.regexp_eatAtomEscape = function(e) {
7126
7136
  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);
7127
- }, X.regexp_eatBackReference = function(e) {
7137
+ }, Z.regexp_eatBackReference = function(e) {
7128
7138
  var t = e.pos;
7129
7139
  if (this.regexp_eatDecimalEscape(e)) {
7130
7140
  var n = e.lastIntValue;
@@ -7133,34 +7143,34 @@ X.regexp_eatAtomEscape = function(e) {
7133
7143
  e.pos = t;
7134
7144
  }
7135
7145
  return !1;
7136
- }, X.regexp_eatKGroupName = function(e) {
7146
+ }, Z.regexp_eatKGroupName = function(e) {
7137
7147
  if (e.eat(107)) {
7138
7148
  if (this.regexp_eatGroupName(e)) return e.backReferenceNames.push(e.lastStringValue), !0;
7139
7149
  e.raise("Invalid named reference");
7140
7150
  }
7141
7151
  return !1;
7142
- }, X.regexp_eatCharacterEscape = function(e) {
7152
+ }, Z.regexp_eatCharacterEscape = function(e) {
7143
7153
  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);
7144
- }, X.regexp_eatCControlLetter = function(e) {
7154
+ }, Z.regexp_eatCControlLetter = function(e) {
7145
7155
  var t = e.pos;
7146
7156
  if (e.eat(99)) {
7147
7157
  if (this.regexp_eatControlLetter(e)) return !0;
7148
7158
  e.pos = t;
7149
7159
  }
7150
7160
  return !1;
7151
- }, X.regexp_eatZero = function(e) {
7152
- return e.current() === 48 && !yo(e.lookahead()) && (e.lastIntValue = 0, e.advance(), !0);
7153
- }, X.regexp_eatControlEscape = function(e) {
7161
+ }, Z.regexp_eatZero = function(e) {
7162
+ return e.current() === 48 && !vo(e.lookahead()) && (e.lastIntValue = 0, e.advance(), !0);
7163
+ }, Z.regexp_eatControlEscape = function(e) {
7154
7164
  var t = e.current();
7155
7165
  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);
7156
- }, X.regexp_eatControlLetter = function(e) {
7166
+ }, Z.regexp_eatControlLetter = function(e) {
7157
7167
  var t = e.current();
7158
- return co(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
7168
+ return so(t) ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
7159
7169
  };
7160
- function co(e) {
7170
+ function so(e) {
7161
7171
  return e >= 65 && e <= 90 || e >= 97 && e <= 122;
7162
7172
  }
7163
- X.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
7173
+ Z.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
7164
7174
  t === void 0 && (t = !1);
7165
7175
  var n = e.pos, r = t || e.switchU;
7166
7176
  if (e.eat(117)) {
@@ -7176,19 +7186,19 @@ X.regexp_eatRegExpUnicodeEscapeSequence = function(e, t) {
7176
7186
  }
7177
7187
  return !0;
7178
7188
  }
7179
- if (r && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && lo(e.lastIntValue)) return !0;
7189
+ if (r && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && co(e.lastIntValue)) return !0;
7180
7190
  r && e.raise("Invalid unicode escape"), e.pos = n;
7181
7191
  }
7182
7192
  return !1;
7183
7193
  };
7184
- function lo(e) {
7194
+ function co(e) {
7185
7195
  return e >= 0 && e <= 1114111;
7186
7196
  }
7187
- X.regexp_eatIdentityEscape = function(e) {
7197
+ Z.regexp_eatIdentityEscape = function(e) {
7188
7198
  if (e.switchU) return this.regexp_eatSyntaxCharacter(e) ? !0 : e.eat(47) ? (e.lastIntValue = 47, !0) : !1;
7189
7199
  var t = e.current();
7190
7200
  return t !== 99 && (!e.switchN || t !== 107) && (e.lastIntValue = t, e.advance(), !0);
7191
- }, X.regexp_eatDecimalEscape = function(e) {
7201
+ }, Z.regexp_eatDecimalEscape = function(e) {
7192
7202
  e.lastIntValue = 0;
7193
7203
  var t = e.current();
7194
7204
  if (t >= 49 && t <= 57) {
@@ -7199,69 +7209,69 @@ X.regexp_eatIdentityEscape = function(e) {
7199
7209
  }
7200
7210
  return !1;
7201
7211
  };
7202
- var uo = 0, fo = 1, Z = 2;
7203
- X.regexp_eatCharacterClassEscape = function(e) {
7212
+ var lo = 0, uo = 1, Q = 2;
7213
+ Z.regexp_eatCharacterClassEscape = function(e) {
7204
7214
  var t = e.current();
7205
- if (po(t)) return e.lastIntValue = -1, e.advance(), fo;
7215
+ if (fo(t)) return e.lastIntValue = -1, e.advance(), uo;
7206
7216
  var n = !1;
7207
7217
  if (e.switchU && this.options.ecmaVersion >= 9 && ((n = t === 80) || t === 112)) {
7208
7218
  e.lastIntValue = -1, e.advance();
7209
7219
  var r;
7210
- if (e.eat(123) && (r = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return n && r === Z && e.raise("Invalid property name"), r;
7220
+ if (e.eat(123) && (r = this.regexp_eatUnicodePropertyValueExpression(e)) && e.eat(125)) return n && r === Q && e.raise("Invalid property name"), r;
7211
7221
  e.raise("Invalid property name");
7212
7222
  }
7213
- return uo;
7223
+ return lo;
7214
7224
  };
7215
- function po(e) {
7225
+ function fo(e) {
7216
7226
  return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
7217
7227
  }
7218
- X.regexp_eatUnicodePropertyValueExpression = function(e) {
7228
+ Z.regexp_eatUnicodePropertyValueExpression = function(e) {
7219
7229
  var t = e.pos;
7220
7230
  if (this.regexp_eatUnicodePropertyName(e) && e.eat(61)) {
7221
7231
  var n = e.lastStringValue;
7222
7232
  if (this.regexp_eatUnicodePropertyValue(e)) {
7223
7233
  var r = e.lastStringValue;
7224
- return this.regexp_validateUnicodePropertyNameAndValue(e, n, r), fo;
7234
+ return this.regexp_validateUnicodePropertyNameAndValue(e, n, r), uo;
7225
7235
  }
7226
7236
  }
7227
7237
  if (e.pos = t, this.regexp_eatLoneUnicodePropertyNameOrValue(e)) {
7228
7238
  var i = e.lastStringValue;
7229
7239
  return this.regexp_validateUnicodePropertyNameOrValue(e, i);
7230
7240
  }
7231
- return uo;
7232
- }, X.regexp_validateUnicodePropertyNameAndValue = function(e, t, n) {
7233
- Li(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(n) || e.raise("Invalid property value");
7234
- }, X.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
7235
- if (e.unicodeProperties.binary.test(t)) return fo;
7236
- if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return Z;
7241
+ return lo;
7242
+ }, Z.regexp_validateUnicodePropertyNameAndValue = function(e, t, n) {
7243
+ Ii(e.unicodeProperties.nonBinary, t) || e.raise("Invalid property name"), e.unicodeProperties.nonBinary[t].test(n) || e.raise("Invalid property value");
7244
+ }, Z.regexp_validateUnicodePropertyNameOrValue = function(e, t) {
7245
+ if (e.unicodeProperties.binary.test(t)) return uo;
7246
+ if (e.switchV && e.unicodeProperties.binaryOfStrings.test(t)) return Q;
7237
7247
  e.raise("Invalid property name");
7238
- }, X.regexp_eatUnicodePropertyName = function(e) {
7248
+ }, Z.regexp_eatUnicodePropertyName = function(e) {
7239
7249
  var t = 0;
7240
- for (e.lastStringValue = ""; mo(t = e.current());) e.lastStringValue += Vi(t), e.advance();
7250
+ for (e.lastStringValue = ""; po(t = e.current());) e.lastStringValue += Bi(t), e.advance();
7241
7251
  return e.lastStringValue !== "";
7242
7252
  };
7243
- function mo(e) {
7244
- return co(e) || e === 95;
7253
+ function po(e) {
7254
+ return so(e) || e === 95;
7245
7255
  }
7246
- X.regexp_eatUnicodePropertyValue = function(e) {
7256
+ Z.regexp_eatUnicodePropertyValue = function(e) {
7247
7257
  var t = 0;
7248
- for (e.lastStringValue = ""; ho(t = e.current());) e.lastStringValue += Vi(t), e.advance();
7258
+ for (e.lastStringValue = ""; mo(t = e.current());) e.lastStringValue += Bi(t), e.advance();
7249
7259
  return e.lastStringValue !== "";
7250
7260
  };
7251
- function ho(e) {
7252
- return mo(e) || yo(e);
7261
+ function mo(e) {
7262
+ return po(e) || vo(e);
7253
7263
  }
7254
- X.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
7264
+ Z.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
7255
7265
  return this.regexp_eatUnicodePropertyValue(e);
7256
- }, X.regexp_eatCharacterClass = function(e) {
7266
+ }, Z.regexp_eatCharacterClass = function(e) {
7257
7267
  if (e.eat(91)) {
7258
7268
  var t = e.eat(94), n = this.regexp_classContents(e);
7259
- return e.eat(93) || e.raise("Unterminated character class"), t && n === Z && e.raise("Negated character class may contain strings"), !0;
7269
+ return e.eat(93) || e.raise("Unterminated character class"), t && n === Q && e.raise("Negated character class may contain strings"), !0;
7260
7270
  }
7261
7271
  return !1;
7262
- }, X.regexp_classContents = function(e) {
7263
- return e.current() === 93 ? fo : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), fo);
7264
- }, X.regexp_nonEmptyClassRanges = function(e) {
7272
+ }, Z.regexp_classContents = function(e) {
7273
+ return e.current() === 93 ? uo : e.switchV ? this.regexp_classSetExpression(e) : (this.regexp_nonEmptyClassRanges(e), uo);
7274
+ }, Z.regexp_nonEmptyClassRanges = function(e) {
7265
7275
  for (; this.regexp_eatClassAtom(e);) {
7266
7276
  var t = e.lastIntValue;
7267
7277
  if (e.eat(45) && this.regexp_eatClassAtom(e)) {
@@ -7269,19 +7279,19 @@ X.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
7269
7279
  e.switchU && (t === -1 || n === -1) && e.raise("Invalid character class"), t !== -1 && n !== -1 && t > n && e.raise("Range out of order in character class");
7270
7280
  }
7271
7281
  }
7272
- }, X.regexp_eatClassAtom = function(e) {
7282
+ }, Z.regexp_eatClassAtom = function(e) {
7273
7283
  var t = e.pos;
7274
7284
  if (e.eat(92)) {
7275
7285
  if (this.regexp_eatClassEscape(e)) return !0;
7276
7286
  if (e.switchU) {
7277
7287
  var n = e.current();
7278
- (n === 99 || So(n)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
7288
+ (n === 99 || xo(n)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
7279
7289
  }
7280
7290
  e.pos = t;
7281
7291
  }
7282
7292
  var r = e.current();
7283
7293
  return r !== 93 && (e.lastIntValue = r, e.advance(), !0);
7284
- }, X.regexp_eatClassEscape = function(e) {
7294
+ }, Z.regexp_eatClassEscape = function(e) {
7285
7295
  var t = e.pos;
7286
7296
  if (e.eat(98)) return e.lastIntValue = 8, !0;
7287
7297
  if (e.switchU && e.eat(45)) return e.lastIntValue = 45, !0;
@@ -7290,14 +7300,14 @@ X.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
7290
7300
  e.pos = t;
7291
7301
  }
7292
7302
  return this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e);
7293
- }, X.regexp_classSetExpression = function(e) {
7294
- var t = fo, n;
7303
+ }, Z.regexp_classSetExpression = function(e) {
7304
+ var t = uo, n;
7295
7305
  if (!this.regexp_eatClassSetRange(e)) {
7296
7306
  if (n = this.regexp_eatClassSetOperand(e)) {
7297
- n === Z && (t = Z);
7307
+ n === Q && (t = Q);
7298
7308
  for (var r = e.pos; e.eatChars([38, 38]);) {
7299
7309
  if (e.current() !== 38 && (n = this.regexp_eatClassSetOperand(e))) {
7300
- n !== Z && (t = fo);
7310
+ n !== Q && (t = uo);
7301
7311
  continue;
7302
7312
  }
7303
7313
  e.raise("Invalid character in character class");
@@ -7309,9 +7319,9 @@ X.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
7309
7319
  }
7310
7320
  for (;;) if (!this.regexp_eatClassSetRange(e)) {
7311
7321
  if (n = this.regexp_eatClassSetOperand(e), !n) return t;
7312
- n === Z && (t = Z);
7322
+ n === Q && (t = Q);
7313
7323
  }
7314
- }, X.regexp_eatClassSetRange = function(e) {
7324
+ }, Z.regexp_eatClassSetRange = function(e) {
7315
7325
  var t = e.pos;
7316
7326
  if (this.regexp_eatClassSetCharacter(e)) {
7317
7327
  var n = e.lastIntValue;
@@ -7322,13 +7332,13 @@ X.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
7322
7332
  e.pos = t;
7323
7333
  }
7324
7334
  return !1;
7325
- }, X.regexp_eatClassSetOperand = function(e) {
7326
- return this.regexp_eatClassSetCharacter(e) ? fo : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
7327
- }, X.regexp_eatNestedClass = function(e) {
7335
+ }, Z.regexp_eatClassSetOperand = function(e) {
7336
+ return this.regexp_eatClassSetCharacter(e) ? uo : this.regexp_eatClassStringDisjunction(e) || this.regexp_eatNestedClass(e);
7337
+ }, Z.regexp_eatNestedClass = function(e) {
7328
7338
  var t = e.pos;
7329
7339
  if (e.eat(91)) {
7330
7340
  var n = e.eat(94), r = this.regexp_classContents(e);
7331
- if (e.eat(93)) return n && r === Z && e.raise("Negated character class may contain strings"), r;
7341
+ if (e.eat(93)) return n && r === Q && e.raise("Negated character class may contain strings"), r;
7332
7342
  e.pos = t;
7333
7343
  }
7334
7344
  if (e.eat(92)) {
@@ -7337,7 +7347,7 @@ X.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
7337
7347
  e.pos = t;
7338
7348
  }
7339
7349
  return null;
7340
- }, X.regexp_eatClassStringDisjunction = function(e) {
7350
+ }, Z.regexp_eatClassStringDisjunction = function(e) {
7341
7351
  var t = e.pos;
7342
7352
  if (e.eatChars([92, 113])) {
7343
7353
  if (e.eat(123)) {
@@ -7347,61 +7357,61 @@ X.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
7347
7357
  e.pos = t;
7348
7358
  }
7349
7359
  return null;
7350
- }, X.regexp_classStringDisjunctionContents = function(e) {
7351
- for (var t = this.regexp_classString(e); e.eat(124);) this.regexp_classString(e) === Z && (t = Z);
7360
+ }, Z.regexp_classStringDisjunctionContents = function(e) {
7361
+ for (var t = this.regexp_classString(e); e.eat(124);) this.regexp_classString(e) === Q && (t = Q);
7352
7362
  return t;
7353
- }, X.regexp_classString = function(e) {
7363
+ }, Z.regexp_classString = function(e) {
7354
7364
  for (var t = 0; this.regexp_eatClassSetCharacter(e);) t++;
7355
- return t === 1 ? fo : Z;
7356
- }, X.regexp_eatClassSetCharacter = function(e) {
7365
+ return t === 1 ? uo : Q;
7366
+ }, Z.regexp_eatClassSetCharacter = function(e) {
7357
7367
  var t = e.pos;
7358
7368
  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);
7359
7369
  var n = e.current();
7360
- return n < 0 || n === e.lookahead() && go(n) || _o(n) ? !1 : (e.advance(), e.lastIntValue = n, !0);
7370
+ return n < 0 || n === e.lookahead() && ho(n) || go(n) ? !1 : (e.advance(), e.lastIntValue = n, !0);
7361
7371
  };
7362
- function go(e) {
7372
+ function ho(e) {
7363
7373
  return e === 33 || e >= 35 && e <= 38 || e >= 42 && e <= 44 || e === 46 || e >= 58 && e <= 64 || e === 94 || e === 96 || e === 126;
7364
7374
  }
7365
- function _o(e) {
7375
+ function go(e) {
7366
7376
  return e === 40 || e === 41 || e === 45 || e === 47 || e >= 91 && e <= 93 || e >= 123 && e <= 125;
7367
7377
  }
7368
- X.regexp_eatClassSetReservedPunctuator = function(e) {
7378
+ Z.regexp_eatClassSetReservedPunctuator = function(e) {
7369
7379
  var t = e.current();
7370
- return vo(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
7380
+ return _o(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
7371
7381
  };
7372
- function vo(e) {
7382
+ function _o(e) {
7373
7383
  return e === 33 || e === 35 || e === 37 || e === 38 || e === 44 || e === 45 || e >= 58 && e <= 62 || e === 64 || e === 96 || e === 126;
7374
7384
  }
7375
- X.regexp_eatClassControlLetter = function(e) {
7385
+ Z.regexp_eatClassControlLetter = function(e) {
7376
7386
  var t = e.current();
7377
- return yo(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
7378
- }, X.regexp_eatHexEscapeSequence = function(e) {
7387
+ return vo(t) || t === 95 ? (e.lastIntValue = t % 32, e.advance(), !0) : !1;
7388
+ }, Z.regexp_eatHexEscapeSequence = function(e) {
7379
7389
  var t = e.pos;
7380
7390
  if (e.eat(120)) {
7381
7391
  if (this.regexp_eatFixedHexDigits(e, 2)) return !0;
7382
7392
  e.switchU && e.raise("Invalid escape"), e.pos = t;
7383
7393
  }
7384
7394
  return !1;
7385
- }, X.regexp_eatDecimalDigits = function(e) {
7395
+ }, Z.regexp_eatDecimalDigits = function(e) {
7386
7396
  var t = e.pos, n = 0;
7387
- for (e.lastIntValue = 0; yo(n = e.current());) e.lastIntValue = 10 * e.lastIntValue + (n - 48), e.advance();
7397
+ for (e.lastIntValue = 0; vo(n = e.current());) e.lastIntValue = 10 * e.lastIntValue + (n - 48), e.advance();
7388
7398
  return e.pos !== t;
7389
7399
  };
7390
- function yo(e) {
7400
+ function vo(e) {
7391
7401
  return e >= 48 && e <= 57;
7392
7402
  }
7393
- X.regexp_eatHexDigits = function(e) {
7403
+ Z.regexp_eatHexDigits = function(e) {
7394
7404
  var t = e.pos, n = 0;
7395
- for (e.lastIntValue = 0; bo(n = e.current());) e.lastIntValue = 16 * e.lastIntValue + xo(n), e.advance();
7405
+ for (e.lastIntValue = 0; yo(n = e.current());) e.lastIntValue = 16 * e.lastIntValue + bo(n), e.advance();
7396
7406
  return e.pos !== t;
7397
7407
  };
7398
- function bo(e) {
7408
+ function yo(e) {
7399
7409
  return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
7400
7410
  }
7401
- function xo(e) {
7411
+ function bo(e) {
7402
7412
  return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
7403
7413
  }
7404
- X.regexp_eatLegacyOctalEscapeSequence = function(e) {
7414
+ Z.regexp_eatLegacyOctalEscapeSequence = function(e) {
7405
7415
  if (this.regexp_eatOctalDigit(e)) {
7406
7416
  var t = e.lastIntValue;
7407
7417
  if (this.regexp_eatOctalDigit(e)) {
@@ -7411,61 +7421,61 @@ X.regexp_eatLegacyOctalEscapeSequence = function(e) {
7411
7421
  return !0;
7412
7422
  }
7413
7423
  return !1;
7414
- }, X.regexp_eatOctalDigit = function(e) {
7424
+ }, Z.regexp_eatOctalDigit = function(e) {
7415
7425
  var t = e.current();
7416
- return So(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
7426
+ return xo(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
7417
7427
  };
7418
- function So(e) {
7428
+ function xo(e) {
7419
7429
  return e >= 48 && e <= 55;
7420
7430
  }
7421
- X.regexp_eatFixedHexDigits = function(e, t) {
7431
+ Z.regexp_eatFixedHexDigits = function(e, t) {
7422
7432
  var n = e.pos;
7423
7433
  e.lastIntValue = 0;
7424
7434
  for (var r = 0; r < t; ++r) {
7425
7435
  var i = e.current();
7426
- if (!bo(i)) return e.pos = n, !1;
7427
- e.lastIntValue = 16 * e.lastIntValue + xo(i), e.advance();
7436
+ if (!yo(i)) return e.pos = n, !1;
7437
+ e.lastIntValue = 16 * e.lastIntValue + bo(i), e.advance();
7428
7438
  }
7429
7439
  return !0;
7430
7440
  };
7431
- var Co = function(e) {
7432
- this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new Wi(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end]);
7433
- }, Q = H.prototype;
7434
- Q.next = function(e) {
7435
- !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new Co(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
7436
- }, Q.getToken = function() {
7437
- return this.next(), new Co(this);
7438
- }, typeof Symbol < "u" && (Q[Symbol.iterator] = function() {
7441
+ var So = function(e) {
7442
+ this.type = e.type, this.value = e.value, this.start = e.start, this.end = e.end, e.options.locations && (this.loc = new Ui(e, e.startLoc, e.endLoc)), e.options.ranges && (this.range = [e.start, e.end]);
7443
+ }, $ = U.prototype;
7444
+ $.next = function(e) {
7445
+ !e && this.type.keyword && this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword " + this.type.keyword), this.options.onToken && this.options.onToken(new So(this)), this.lastTokEnd = this.end, this.lastTokStart = this.start, this.lastTokEndLoc = this.endLoc, this.lastTokStartLoc = this.startLoc, this.nextToken();
7446
+ }, $.getToken = function() {
7447
+ return this.next(), new So(this);
7448
+ }, typeof Symbol < "u" && ($[Symbol.iterator] = function() {
7439
7449
  var e = this;
7440
7450
  return { next: function() {
7441
7451
  var t = e.getToken();
7442
7452
  return {
7443
- done: t.type === z.eof,
7453
+ done: t.type === B.eof,
7444
7454
  value: t
7445
7455
  };
7446
7456
  } };
7447
- }), Q.nextToken = function() {
7457
+ }), $.nextToken = function() {
7448
7458
  var e = this.curContext();
7449
- 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(z.eof);
7459
+ 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(B.eof);
7450
7460
  if (e.override) return e.override(this);
7451
7461
  this.readToken(this.fullCharCodeAtPos());
7452
- }, Q.readToken = function(e) {
7453
- return Di(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
7454
- }, Q.fullCharCodeAt = function(e) {
7462
+ }, $.readToken = function(e) {
7463
+ return Ei(e, this.options.ecmaVersion >= 6) || e === 92 ? this.readWord() : this.getTokenFromCode(e);
7464
+ }, $.fullCharCodeAt = function(e) {
7455
7465
  var t = this.input.charCodeAt(e);
7456
7466
  if (t <= 55295 || t >= 56320) return t;
7457
7467
  var n = this.input.charCodeAt(e + 1);
7458
7468
  return n <= 56319 || n >= 57344 ? t : (t << 10) + n - 56613888;
7459
- }, Q.fullCharCodeAtPos = function() {
7469
+ }, $.fullCharCodeAtPos = function() {
7460
7470
  return this.fullCharCodeAt(this.pos);
7461
- }, Q.skipBlockComment = function() {
7471
+ }, $.skipBlockComment = function() {
7462
7472
  var e = this.options.onComment && this.curPosition(), t = this.pos, n = this.input.indexOf("*/", this.pos += 2);
7463
- if (n === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = n + 2, this.options.locations) for (var r = void 0, i = t; (r = Mi(this.input, i, this.pos)) > -1;) ++this.curLine, i = this.lineStart = r;
7473
+ if (n === -1 && this.raise(this.pos - 2, "Unterminated comment"), this.pos = n + 2, this.options.locations) for (var r = void 0, i = t; (r = ji(this.input, i, this.pos)) > -1;) ++this.curLine, i = this.lineStart = r;
7464
7474
  this.options.onComment && this.options.onComment(!0, this.input.slice(t + 2, n), t, this.pos, e, this.curPosition());
7465
- }, Q.skipLineComment = function(e) {
7466
- for (var t = this.pos, n = this.options.onComment && this.curPosition(), r = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !ji(r);) r = this.input.charCodeAt(++this.pos);
7475
+ }, $.skipLineComment = function(e) {
7476
+ for (var t = this.pos, n = this.options.onComment && this.curPosition(), r = this.input.charCodeAt(this.pos += e); this.pos < this.input.length && !Ai(r);) r = this.input.charCodeAt(++this.pos);
7467
7477
  this.options.onComment && this.options.onComment(!1, this.input.slice(t + e, this.pos), t, this.pos, n, this.curPosition());
7468
- }, Q.skipSpace = function() {
7478
+ }, $.skipSpace = function() {
7469
7479
  loop: for (; this.pos < this.input.length;) {
7470
7480
  var e = this.input.charCodeAt(this.pos);
7471
7481
  switch (e) {
@@ -7490,69 +7500,69 @@ Q.next = function(e) {
7490
7500
  default: break loop;
7491
7501
  }
7492
7502
  break;
7493
- default: if (e > 8 && e < 14 || e >= 5760 && Ni.test(String.fromCharCode(e))) ++this.pos;
7503
+ default: if (e > 8 && e < 14 || e >= 5760 && Mi.test(String.fromCharCode(e))) ++this.pos;
7494
7504
  else break loop;
7495
7505
  }
7496
7506
  }
7497
- }, Q.finishToken = function(e, t) {
7507
+ }, $.finishToken = function(e, t) {
7498
7508
  this.end = this.pos, this.options.locations && (this.endLoc = this.curPosition());
7499
7509
  var n = this.type;
7500
7510
  this.type = e, this.value = t, this.updateContext(n);
7501
- }, Q.readToken_dot = function() {
7511
+ }, $.readToken_dot = function() {
7502
7512
  var e = this.input.charCodeAt(this.pos + 1);
7503
7513
  if (e >= 48 && e <= 57) return this.readNumber(!0);
7504
7514
  var t = this.input.charCodeAt(this.pos + 2);
7505
- return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(z.ellipsis)) : (++this.pos, this.finishToken(z.dot));
7506
- }, Q.readToken_slash = function() {
7515
+ return this.options.ecmaVersion >= 6 && e === 46 && t === 46 ? (this.pos += 3, this.finishToken(B.ellipsis)) : (++this.pos, this.finishToken(B.dot));
7516
+ }, $.readToken_slash = function() {
7507
7517
  var e = this.input.charCodeAt(this.pos + 1);
7508
- return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(z.assign, 2) : this.finishOp(z.slash, 1);
7509
- }, Q.readToken_mult_modulo_exp = function(e) {
7510
- var t = this.input.charCodeAt(this.pos + 1), n = 1, r = e === 42 ? z.star : z.modulo;
7511
- return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++n, r = z.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(z.assign, n + 1) : this.finishOp(r, n);
7512
- }, Q.readToken_pipe_amp = function(e) {
7518
+ return this.exprAllowed ? (++this.pos, this.readRegexp()) : e === 61 ? this.finishOp(B.assign, 2) : this.finishOp(B.slash, 1);
7519
+ }, $.readToken_mult_modulo_exp = function(e) {
7520
+ var t = this.input.charCodeAt(this.pos + 1), n = 1, r = e === 42 ? B.star : B.modulo;
7521
+ return this.options.ecmaVersion >= 7 && e === 42 && t === 42 && (++n, r = B.starstar, t = this.input.charCodeAt(this.pos + 2)), t === 61 ? this.finishOp(B.assign, n + 1) : this.finishOp(r, n);
7522
+ }, $.readToken_pipe_amp = function(e) {
7513
7523
  var t = this.input.charCodeAt(this.pos + 1);
7514
- return t === e ? this.options.ecmaVersion >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(z.assign, 3) : this.finishOp(e === 124 ? z.logicalOR : z.logicalAND, 2) : t === 61 ? this.finishOp(z.assign, 2) : this.finishOp(e === 124 ? z.bitwiseOR : z.bitwiseAND, 1);
7515
- }, Q.readToken_caret = function() {
7516
- return this.input.charCodeAt(this.pos + 1) === 61 ? this.finishOp(z.assign, 2) : this.finishOp(z.bitwiseXOR, 1);
7517
- }, Q.readToken_plus_min = function(e) {
7524
+ return t === e ? this.options.ecmaVersion >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(B.assign, 3) : this.finishOp(e === 124 ? B.logicalOR : B.logicalAND, 2) : t === 61 ? this.finishOp(B.assign, 2) : this.finishOp(e === 124 ? B.bitwiseOR : B.bitwiseAND, 1);
7525
+ }, $.readToken_caret = function() {
7526
+ return this.input.charCodeAt(this.pos + 1) === 61 ? this.finishOp(B.assign, 2) : this.finishOp(B.bitwiseXOR, 1);
7527
+ }, $.readToken_plus_min = function(e) {
7518
7528
  var t = this.input.charCodeAt(this.pos + 1);
7519
- return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || B.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(z.incDec, 2) : t === 61 ? this.finishOp(z.assign, 2) : this.finishOp(z.plusMin, 1);
7520
- }, Q.readToken_lt_gt = function(e) {
7529
+ return t === e ? t === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || V.test(this.input.slice(this.lastTokEnd, this.pos))) ? (this.skipLineComment(3), this.skipSpace(), this.nextToken()) : this.finishOp(B.incDec, 2) : t === 61 ? this.finishOp(B.assign, 2) : this.finishOp(B.plusMin, 1);
7530
+ }, $.readToken_lt_gt = function(e) {
7521
7531
  var t = this.input.charCodeAt(this.pos + 1), n = 1;
7522
- return t === e ? (n = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + n) === 61 ? this.finishOp(z.assign, n + 1) : this.finishOp(z.bitShift, n)) : 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 && (n = 2), this.finishOp(z.relational, n));
7523
- }, Q.readToken_eq_excl = function(e) {
7532
+ return t === e ? (n = e === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2, this.input.charCodeAt(this.pos + n) === 61 ? this.finishOp(B.assign, n + 1) : this.finishOp(B.bitShift, n)) : 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 && (n = 2), this.finishOp(B.relational, n));
7533
+ }, $.readToken_eq_excl = function(e) {
7524
7534
  var t = this.input.charCodeAt(this.pos + 1);
7525
- return t === 61 ? this.finishOp(z.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(z.arrow)) : this.finishOp(e === 61 ? z.eq : z.prefix, 1);
7526
- }, Q.readToken_question = function() {
7535
+ return t === 61 ? this.finishOp(B.equality, this.input.charCodeAt(this.pos + 2) === 61 ? 3 : 2) : e === 61 && t === 62 && this.options.ecmaVersion >= 6 ? (this.pos += 2, this.finishToken(B.arrow)) : this.finishOp(e === 61 ? B.eq : B.prefix, 1);
7536
+ }, $.readToken_question = function() {
7527
7537
  var e = this.options.ecmaVersion;
7528
7538
  if (e >= 11) {
7529
7539
  var t = this.input.charCodeAt(this.pos + 1);
7530
7540
  if (t === 46) {
7531
7541
  var n = this.input.charCodeAt(this.pos + 2);
7532
- if (n < 48 || n > 57) return this.finishOp(z.questionDot, 2);
7542
+ if (n < 48 || n > 57) return this.finishOp(B.questionDot, 2);
7533
7543
  }
7534
- if (t === 63) return e >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(z.assign, 3) : this.finishOp(z.coalesce, 2);
7544
+ if (t === 63) return e >= 12 && this.input.charCodeAt(this.pos + 2) === 61 ? this.finishOp(B.assign, 3) : this.finishOp(B.coalesce, 2);
7535
7545
  }
7536
- return this.finishOp(z.question, 1);
7537
- }, Q.readToken_numberSign = function() {
7546
+ return this.finishOp(B.question, 1);
7547
+ }, $.readToken_numberSign = function() {
7538
7548
  var e = this.options.ecmaVersion, t = 35;
7539
- if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), Di(t, !0) || t === 92)) return this.finishToken(z.privateId, this.readWord1());
7540
- this.raise(this.pos, "Unexpected character '" + Vi(t) + "'");
7541
- }, Q.getTokenFromCode = function(e) {
7549
+ if (e >= 13 && (++this.pos, t = this.fullCharCodeAtPos(), Ei(t, !0) || t === 92)) return this.finishToken(B.privateId, this.readWord1());
7550
+ this.raise(this.pos, "Unexpected character '" + Bi(t) + "'");
7551
+ }, $.getTokenFromCode = function(e) {
7542
7552
  switch (e) {
7543
7553
  case 46: return this.readToken_dot();
7544
- case 40: return ++this.pos, this.finishToken(z.parenL);
7545
- case 41: return ++this.pos, this.finishToken(z.parenR);
7546
- case 59: return ++this.pos, this.finishToken(z.semi);
7547
- case 44: return ++this.pos, this.finishToken(z.comma);
7548
- case 91: return ++this.pos, this.finishToken(z.bracketL);
7549
- case 93: return ++this.pos, this.finishToken(z.bracketR);
7550
- case 123: return ++this.pos, this.finishToken(z.braceL);
7551
- case 125: return ++this.pos, this.finishToken(z.braceR);
7552
- case 58: return ++this.pos, this.finishToken(z.colon);
7554
+ case 40: return ++this.pos, this.finishToken(B.parenL);
7555
+ case 41: return ++this.pos, this.finishToken(B.parenR);
7556
+ case 59: return ++this.pos, this.finishToken(B.semi);
7557
+ case 44: return ++this.pos, this.finishToken(B.comma);
7558
+ case 91: return ++this.pos, this.finishToken(B.bracketL);
7559
+ case 93: return ++this.pos, this.finishToken(B.bracketR);
7560
+ case 123: return ++this.pos, this.finishToken(B.braceL);
7561
+ case 125: return ++this.pos, this.finishToken(B.braceR);
7562
+ case 58: return ++this.pos, this.finishToken(B.colon);
7553
7563
  case 96:
7554
7564
  if (this.options.ecmaVersion < 6) break;
7555
- return ++this.pos, this.finishToken(z.backQuote);
7565
+ return ++this.pos, this.finishToken(B.backQuote);
7556
7566
  case 48:
7557
7567
  var t = this.input.charCodeAt(this.pos + 1);
7558
7568
  if (t === 120 || t === 88) return this.readRadixNumber(16);
@@ -7584,18 +7594,18 @@ Q.next = function(e) {
7584
7594
  case 61:
7585
7595
  case 33: return this.readToken_eq_excl(e);
7586
7596
  case 63: return this.readToken_question();
7587
- case 126: return this.finishOp(z.prefix, 1);
7597
+ case 126: return this.finishOp(B.prefix, 1);
7588
7598
  case 35: return this.readToken_numberSign();
7589
7599
  }
7590
- this.raise(this.pos, "Unexpected character '" + Vi(e) + "'");
7591
- }, Q.finishOp = function(e, t) {
7600
+ this.raise(this.pos, "Unexpected character '" + Bi(e) + "'");
7601
+ }, $.finishOp = function(e, t) {
7592
7602
  var n = this.input.slice(this.pos, this.pos + t);
7593
7603
  return this.pos += t, this.finishToken(e, n);
7594
- }, Q.readRegexp = function() {
7604
+ }, $.readRegexp = function() {
7595
7605
  for (var e, t, n = this.pos;;) {
7596
7606
  this.pos >= this.input.length && this.raise(n, "Unterminated regular expression");
7597
7607
  var r = this.input.charAt(this.pos);
7598
- if (B.test(r) && this.raise(n, "Unterminated regular expression"), e) e = !1;
7608
+ if (V.test(r) && this.raise(n, "Unterminated regular expression"), e) e = !1;
7599
7609
  else {
7600
7610
  if (r === "[") t = !0;
7601
7611
  else if (r === "]" && t) t = !1;
@@ -7608,18 +7618,18 @@ Q.next = function(e) {
7608
7618
  ++this.pos;
7609
7619
  var a = this.pos, o = this.readWord1();
7610
7620
  this.containsEsc && this.unexpected(a);
7611
- var s = this.regexpState ||= new no(this);
7621
+ var s = this.regexpState ||= new to(this);
7612
7622
  s.reset(n, i, o), this.validateRegExpFlags(s), this.validateRegExpPattern(s);
7613
7623
  var c = null;
7614
7624
  try {
7615
7625
  c = new RegExp(i, o);
7616
7626
  } catch {}
7617
- return this.finishToken(z.regexp, {
7627
+ return this.finishToken(B.regexp, {
7618
7628
  pattern: i,
7619
7629
  flags: o,
7620
7630
  value: c
7621
7631
  });
7622
- }, Q.readInt = function(e, t, n) {
7632
+ }, $.readInt = function(e, t, n) {
7623
7633
  for (var r = this.options.ecmaVersion >= 12 && t === void 0, i = n && this.input.charCodeAt(this.pos) === 48, a = this.pos, o = 0, s = 0, c = 0, l = t ?? Infinity; c < l; ++c, ++this.pos) {
7624
7634
  var u = this.input.charCodeAt(this.pos), d = void 0;
7625
7635
  if (r && u === 95) {
@@ -7631,31 +7641,31 @@ Q.next = function(e) {
7631
7641
  }
7632
7642
  return r && s === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === a || t != null && this.pos - a !== t ? null : o;
7633
7643
  };
7634
- function wo(e, t) {
7644
+ function Co(e, t) {
7635
7645
  return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
7636
7646
  }
7637
- function To(e) {
7647
+ function wo(e) {
7638
7648
  return typeof BigInt == "function" ? BigInt(e.replace(/_/g, "")) : null;
7639
7649
  }
7640
- Q.readRadixNumber = function(e) {
7650
+ $.readRadixNumber = function(e) {
7641
7651
  var t = this.pos;
7642
7652
  this.pos += 2;
7643
7653
  var n = this.readInt(e);
7644
- return n ?? this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (n = To(this.input.slice(t, this.pos)), ++this.pos) : Di(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(z.num, n);
7645
- }, Q.readNumber = function(e) {
7654
+ return n ?? this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (n = wo(this.input.slice(t, this.pos)), ++this.pos) : Ei(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(B.num, n);
7655
+ }, $.readNumber = function(e) {
7646
7656
  var t = this.pos;
7647
7657
  !e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number");
7648
7658
  var n = this.pos - t >= 2 && this.input.charCodeAt(t) === 48;
7649
7659
  n && this.strict && this.raise(t, "Invalid number");
7650
7660
  var r = this.input.charCodeAt(this.pos);
7651
7661
  if (!n && !e && this.options.ecmaVersion >= 11 && r === 110) {
7652
- var i = To(this.input.slice(t, this.pos));
7653
- return ++this.pos, Di(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(z.num, i);
7662
+ var i = wo(this.input.slice(t, this.pos));
7663
+ return ++this.pos, Ei(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(B.num, i);
7654
7664
  }
7655
- n && /[89]/.test(this.input.slice(t, this.pos)) && (n = !1), r === 46 && !n && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !n && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), Di(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
7656
- var a = wo(this.input.slice(t, this.pos), n);
7657
- return this.finishToken(z.num, a);
7658
- }, Q.readCodePoint = function() {
7665
+ n && /[89]/.test(this.input.slice(t, this.pos)) && (n = !1), r === 46 && !n && (++this.pos, this.readInt(10), r = this.input.charCodeAt(this.pos)), (r === 69 || r === 101) && !n && (r = this.input.charCodeAt(++this.pos), (r === 43 || r === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), Ei(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
7666
+ var a = Co(this.input.slice(t, this.pos), n);
7667
+ return this.finishToken(B.num, a);
7668
+ }, $.readCodePoint = function() {
7659
7669
  var e = this.input.charCodeAt(this.pos), t;
7660
7670
  if (e === 123) {
7661
7671
  this.options.ecmaVersion < 6 && this.unexpected();
@@ -7663,35 +7673,35 @@ Q.readRadixNumber = function(e) {
7663
7673
  t = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos), ++this.pos, t > 1114111 && this.invalidStringToken(n, "Code point out of bounds");
7664
7674
  } else t = this.readHexChar(4);
7665
7675
  return t;
7666
- }, Q.readString = function(e) {
7676
+ }, $.readString = function(e) {
7667
7677
  for (var t = "", n = ++this.pos;;) {
7668
7678
  this.pos >= this.input.length && this.raise(this.start, "Unterminated string constant");
7669
7679
  var r = this.input.charCodeAt(this.pos);
7670
7680
  if (r === e) break;
7671
- r === 92 ? (t += this.input.slice(n, this.pos), t += this.readEscapedChar(!1), n = this.pos) : r === 8232 || r === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (ji(r) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
7681
+ r === 92 ? (t += this.input.slice(n, this.pos), t += this.readEscapedChar(!1), n = this.pos) : r === 8232 || r === 8233 ? (this.options.ecmaVersion < 10 && this.raise(this.start, "Unterminated string constant"), ++this.pos, this.options.locations && (this.curLine++, this.lineStart = this.pos)) : (Ai(r) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
7672
7682
  }
7673
- return t += this.input.slice(n, this.pos++), this.finishToken(z.string, t);
7683
+ return t += this.input.slice(n, this.pos++), this.finishToken(B.string, t);
7674
7684
  };
7675
- var Eo = {};
7676
- Q.tryReadTemplateToken = function() {
7685
+ var To = {};
7686
+ $.tryReadTemplateToken = function() {
7677
7687
  this.inTemplateElement = !0;
7678
7688
  try {
7679
7689
  this.readTmplToken();
7680
7690
  } catch (e) {
7681
- if (e === Eo) this.readInvalidTemplateToken();
7691
+ if (e === To) this.readInvalidTemplateToken();
7682
7692
  else throw e;
7683
7693
  }
7684
7694
  this.inTemplateElement = !1;
7685
- }, Q.invalidStringToken = function(e, t) {
7686
- if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw Eo;
7695
+ }, $.invalidStringToken = function(e, t) {
7696
+ if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw To;
7687
7697
  this.raise(e, t);
7688
- }, Q.readTmplToken = function() {
7698
+ }, $.readTmplToken = function() {
7689
7699
  for (var e = "", t = this.pos;;) {
7690
7700
  this.pos >= this.input.length && this.raise(this.start, "Unterminated template");
7691
7701
  var n = this.input.charCodeAt(this.pos);
7692
- if (n === 96 || n === 36 && this.input.charCodeAt(this.pos + 1) === 123) return this.pos === this.start && (this.type === z.template || this.type === z.invalidTemplate) ? n === 36 ? (this.pos += 2, this.finishToken(z.dollarBraceL)) : (++this.pos, this.finishToken(z.backQuote)) : (e += this.input.slice(t, this.pos), this.finishToken(z.template, e));
7702
+ if (n === 96 || n === 36 && this.input.charCodeAt(this.pos + 1) === 123) return this.pos === this.start && (this.type === B.template || this.type === B.invalidTemplate) ? n === 36 ? (this.pos += 2, this.finishToken(B.dollarBraceL)) : (++this.pos, this.finishToken(B.backQuote)) : (e += this.input.slice(t, this.pos), this.finishToken(B.template, e));
7693
7703
  if (n === 92) e += this.input.slice(t, this.pos), e += this.readEscapedChar(!0), t = this.pos;
7694
- else if (ji(n)) {
7704
+ else if (Ai(n)) {
7695
7705
  switch (e += this.input.slice(t, this.pos), ++this.pos, n) {
7696
7706
  case 13: this.input.charCodeAt(this.pos) === 10 && ++this.pos;
7697
7707
  case 10:
@@ -7702,26 +7712,26 @@ Q.tryReadTemplateToken = function() {
7702
7712
  this.options.locations && (++this.curLine, this.lineStart = this.pos), t = this.pos;
7703
7713
  } else ++this.pos;
7704
7714
  }
7705
- }, Q.readInvalidTemplateToken = function() {
7715
+ }, $.readInvalidTemplateToken = function() {
7706
7716
  for (; this.pos < this.input.length; this.pos++) switch (this.input[this.pos]) {
7707
7717
  case "\\":
7708
7718
  ++this.pos;
7709
7719
  break;
7710
7720
  case "$": if (this.input[this.pos + 1] !== "{") break;
7711
- case "`": return this.finishToken(z.invalidTemplate, this.input.slice(this.start, this.pos));
7721
+ case "`": return this.finishToken(B.invalidTemplate, this.input.slice(this.start, this.pos));
7712
7722
  case "\r": this.input[this.pos + 1] === "\n" && ++this.pos;
7713
7723
  case "\n":
7714
7724
  case "\u2028":
7715
7725
  case "\u2029": ++this.curLine, this.lineStart = this.pos + 1;
7716
7726
  }
7717
7727
  this.raise(this.start, "Unterminated template");
7718
- }, Q.readEscapedChar = function(e) {
7728
+ }, $.readEscapedChar = function(e) {
7719
7729
  var t = this.input.charCodeAt(++this.pos);
7720
7730
  switch (++this.pos, t) {
7721
7731
  case 110: return "\n";
7722
7732
  case 114: return "\r";
7723
7733
  case 120: return String.fromCharCode(this.readHexChar(2));
7724
- case 117: return Vi(this.readCodePoint());
7734
+ case 117: return Bi(this.readCodePoint());
7725
7735
  case 116: return " ";
7726
7736
  case 98: return "\b";
7727
7737
  case 118: return "\v";
@@ -7738,56 +7748,56 @@ Q.tryReadTemplateToken = function() {
7738
7748
  var r = this.input.substr(this.pos - 1, 3).match(/^[0-7]+/)[0], i = parseInt(r, 8);
7739
7749
  return i > 255 && (r = r.slice(0, -1), i = parseInt(r, 8)), this.pos += r.length - 1, t = this.input.charCodeAt(this.pos), (r !== "0" || t === 56 || t === 57) && (this.strict || e) && this.invalidStringToken(this.pos - 1 - r.length, e ? "Octal literal in template string" : "Octal literal in strict mode"), String.fromCharCode(i);
7740
7750
  }
7741
- return ji(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
7751
+ return Ai(t) ? (this.options.locations && (this.lineStart = this.pos, ++this.curLine), "") : String.fromCharCode(t);
7742
7752
  }
7743
- }, Q.readHexChar = function(e) {
7753
+ }, $.readHexChar = function(e) {
7744
7754
  var t = this.pos, n = this.readInt(16, e);
7745
7755
  return n === null && this.invalidStringToken(t, "Bad character escape sequence"), n;
7746
- }, Q.readWord1 = function() {
7756
+ }, $.readWord1 = function() {
7747
7757
  this.containsEsc = !1;
7748
7758
  for (var e = "", t = !0, n = this.pos, r = this.options.ecmaVersion >= 6; this.pos < this.input.length;) {
7749
7759
  var i = this.fullCharCodeAtPos();
7750
- if (Oi(i, r)) this.pos += i <= 65535 ? 1 : 2;
7760
+ if (Di(i, r)) this.pos += i <= 65535 ? 1 : 2;
7751
7761
  else if (i === 92) {
7752
7762
  this.containsEsc = !0, e += this.input.slice(n, this.pos);
7753
7763
  var a = this.pos;
7754
7764
  this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
7755
7765
  var o = this.readCodePoint();
7756
- (t ? Di : Oi)(o, r) || this.invalidStringToken(a, "Invalid Unicode escape"), e += Vi(o), n = this.pos;
7766
+ (t ? Ei : Di)(o, r) || this.invalidStringToken(a, "Invalid Unicode escape"), e += Bi(o), n = this.pos;
7757
7767
  } else break;
7758
7768
  t = !1;
7759
7769
  }
7760
7770
  return e + this.input.slice(n, this.pos);
7761
- }, Q.readWord = function() {
7762
- var e = this.readWord1(), t = z.name;
7763
- return this.keywords.test(e) && (t = ki[e]), this.finishToken(t, e);
7764
- }, H.acorn = {
7765
- Parser: H,
7771
+ }, $.readWord = function() {
7772
+ var e = this.readWord1(), t = B.name;
7773
+ return this.keywords.test(e) && (t = Oi[e]), this.finishToken(t, e);
7774
+ }, U.acorn = {
7775
+ Parser: U,
7766
7776
  version: "8.18.0",
7767
- defaultOptions: Ki,
7768
- Position: Ui,
7769
- SourceLocation: Wi,
7770
- getLineInfo: Gi,
7771
- Node: Ma,
7772
- TokenType: P,
7773
- tokTypes: z,
7774
- keywordTypes: ki,
7775
- TokContext: q,
7776
- tokContexts: J,
7777
- isIdentifierChar: Oi,
7778
- isIdentifierStart: Di,
7779
- Token: Co,
7780
- isNewLine: ji,
7781
- lineBreak: B,
7782
- lineBreakG: Ai,
7783
- nonASCIIwhitespace: Ni
7777
+ defaultOptions: Gi,
7778
+ Position: Hi,
7779
+ SourceLocation: Ui,
7780
+ getLineInfo: Wi,
7781
+ Node: ja,
7782
+ TokenType: F,
7783
+ tokTypes: B,
7784
+ keywordTypes: Oi,
7785
+ TokContext: J,
7786
+ tokContexts: Y,
7787
+ isIdentifierChar: Di,
7788
+ isIdentifierStart: Ei,
7789
+ Token: So,
7790
+ isNewLine: Ai,
7791
+ lineBreak: V,
7792
+ lineBreakG: ki,
7793
+ nonASCIIwhitespace: Mi
7784
7794
  };
7785
- function Do(e, t, n) {
7786
- return H.parseExpressionAt(e, t, n);
7795
+ function Eo(e, t, n) {
7796
+ return U.parseExpressionAt(e, t, n);
7787
7797
  }
7788
7798
  //#endregion
7789
7799
  //#region src/safe-eval.ts
7790
- var Oo = process.cwd(), ko = {
7800
+ var Do = process.cwd(), Oo = {
7791
7801
  String: (e) => String(e ?? ""),
7792
7802
  Number: (e) => Number(e),
7793
7803
  Boolean: (e) => !!e,
@@ -7798,9 +7808,9 @@ var Oo = process.cwd(), ko = {
7798
7808
  FS: {
7799
7809
  readFile: (t) => e.readFileSync(t, "utf8"),
7800
7810
  exists: (t) => (console.log("FS.exists [%s] %s", process.cwd(), t), e.existsSync(t)),
7801
- join: (...e) => a.join(...e.map((e) => e === "CWD" ? Oo : e))
7811
+ join: (...e) => a.join(...e.map((e) => e === "CWD" ? Do : e))
7802
7812
  }
7803
- }, Ao = class {
7813
+ }, ko = class {
7804
7814
  static async evaluateValue(e, t = {}) {
7805
7815
  if (typeof e != "string" || !e.includes("${")) return e;
7806
7816
  let n = `\`${e}\``;
@@ -7818,7 +7828,7 @@ var Oo = process.cwd(), ko = {
7818
7828
  if (!e || typeof e != "string") return e;
7819
7829
  let n = e.trim(), r;
7820
7830
  try {
7821
- r = Do(n, 0, {
7831
+ r = Eo(n, 0, {
7822
7832
  ecmaVersion: 2020,
7823
7833
  allowAwaitOutsideFunction: !1
7824
7834
  });
@@ -7830,7 +7840,7 @@ var Oo = process.cwd(), ko = {
7830
7840
  static async evalNodeAsync(e, t) {
7831
7841
  switch (e.type) {
7832
7842
  case "Literal": return e.value;
7833
- case "Identifier": return e.name in t ? t[e.name] : e.name in ko ? ko[e.name] : void 0;
7843
+ case "Identifier": return e.name in t ? t[e.name] : e.name in Oo ? Oo[e.name] : void 0;
7834
7844
  case "MemberExpression": {
7835
7845
  let n = await this.evalNodeAsync(e.object, t);
7836
7846
  if (n == null) return;
@@ -7856,7 +7866,7 @@ var Oo = process.cwd(), ko = {
7856
7866
  else throw Error(`Property '${i}' is not a callable function on target object.`);
7857
7867
  } else if (e.callee.type === "Identifier") {
7858
7868
  let r = e.callee.name;
7859
- if (n = t[r] ?? ko[r], !n || typeof n != "function") throw Error(`Unknown function helper '${r}'.`);
7869
+ if (n = t[r] ?? Oo[r], !n || typeof n != "function") throw Error(`Unknown function helper '${r}'.`);
7860
7870
  }
7861
7871
  if (!n) throw Error("Invalid function invocation target.");
7862
7872
  let i = await Promise.all(e.arguments.map((e) => this.evalNodeAsync(e, t)));
@@ -7915,14 +7925,14 @@ var Oo = process.cwd(), ko = {
7915
7925
  };
7916
7926
  //#endregion
7917
7927
  //#region src/preprocessors/github.ts
7918
- function jo(e, t) {
7928
+ function Ao(e, t) {
7919
7929
  let n = t.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*");
7920
7930
  return RegExp(`^${n}$`).test(e);
7921
7931
  }
7922
- function Mo(e, t) {
7932
+ function jo(e, t) {
7923
7933
  return (Array.isArray(t) ? t : [t]).includes(e);
7924
7934
  }
7925
- var No = class {
7935
+ var Mo = class {
7926
7936
  name = "github";
7927
7937
  parse(e, t, n) {
7928
7938
  let r = !1, i = null, a = e["x-hub-signature-256"];
@@ -7957,388 +7967,29 @@ var No = class {
7957
7967
  }
7958
7968
  filter(e, t) {
7959
7969
  let n = !0;
7960
- if (t.events && !t.events.includes(e.event) && (n = !1), t.owner && !Mo(e.owner, t.owner) && (n = !1), t.repo && !Mo(e.repo, t.repo) && (n = !1), t.branches && !t.branches.some((t) => jo(e.branch, t)) && (n = !1), t.tag !== void 0 && !!e.tag !== t.tag && (n = !1), t.tags) try {
7970
+ if (t.events && !t.events.includes(e.event) && (n = !1), t.owner && !jo(e.owner, t.owner) && (n = !1), t.repo && !jo(e.repo, t.repo) && (n = !1), t.branches && !t.branches.some((t) => Ao(e.branch, t)) && (n = !1), t.tag !== void 0 && !!e.tag !== t.tag && (n = !1), t.tags) try {
7961
7971
  t.tags.some((t) => new RegExp(t).test(e.tag)) || (n = !1);
7962
7972
  } catch {
7963
7973
  n = !1;
7964
7974
  }
7965
- return t.paths && ((Array.isArray(e.changes) ? e.changes : []).some((e) => t.paths?.some((t) => jo(e, t))) || (n = !1)), {
7975
+ return t.paths && ((Array.isArray(e.changes) ? e.changes : []).some((e) => t.paths?.some((t) => Ao(e, t))) || (n = !1)), {
7966
7976
  isValid: n,
7967
7977
  inputs: e
7968
7978
  };
7969
7979
  }
7970
- }, Po = function(e, t) {
7971
- return Object.defineProperty ? Object.defineProperty(e, "raw", { value: t }) : e.raw = t, e;
7972
- }, $;
7973
- (function(e) {
7974
- e[e.EOS = 0] = "EOS", e[e.Text = 1] = "Text", e[e.Incomplete = 2] = "Incomplete", e[e.ESC = 3] = "ESC", e[e.Unknown = 4] = "Unknown", e[e.SGR = 5] = "SGR", e[e.OSCURL = 6] = "OSCURL";
7975
- })($ ||= {});
7976
- var Fo = class {
7977
- constructor() {
7978
- this.VERSION = "6.0.6", this.setup_palettes(), this._use_classes = !1, this.bold = !1, this.faint = !1, this.italic = !1, this.underline = !1, this.fg = this.bg = null, this._buffer = "", this._url_allowlist = {
7979
- http: 1,
7980
- https: 1
7981
- }, this._escape_html = !0, this.boldStyle = "font-weight:bold", this.faintStyle = "opacity:0.7", this.italicStyle = "font-style:italic", this.underlineStyle = "text-decoration:underline";
7982
- }
7983
- set use_classes(e) {
7984
- this._use_classes = e;
7985
- }
7986
- get use_classes() {
7987
- return this._use_classes;
7988
- }
7989
- set url_allowlist(e) {
7990
- this._url_allowlist = e;
7991
- }
7992
- get url_allowlist() {
7993
- return this._url_allowlist;
7994
- }
7995
- set escape_html(e) {
7996
- this._escape_html = e;
7997
- }
7998
- get escape_html() {
7999
- return this._escape_html;
8000
- }
8001
- set boldStyle(e) {
8002
- this._boldStyle = e;
8003
- }
8004
- get boldStyle() {
8005
- return this._boldStyle;
8006
- }
8007
- set faintStyle(e) {
8008
- this._faintStyle = e;
8009
- }
8010
- get faintStyle() {
8011
- return this._faintStyle;
8012
- }
8013
- set italicStyle(e) {
8014
- this._italicStyle = e;
8015
- }
8016
- get italicStyle() {
8017
- return this._italicStyle;
8018
- }
8019
- set underlineStyle(e) {
8020
- this._underlineStyle = e;
8021
- }
8022
- get underlineStyle() {
8023
- return this._underlineStyle;
8024
- }
8025
- setup_palettes() {
8026
- this.ansi_colors = [[
8027
- {
8028
- rgb: [
8029
- 0,
8030
- 0,
8031
- 0
8032
- ],
8033
- class_name: "ansi-black"
8034
- },
8035
- {
8036
- rgb: [
8037
- 187,
8038
- 0,
8039
- 0
8040
- ],
8041
- class_name: "ansi-red"
8042
- },
8043
- {
8044
- rgb: [
8045
- 0,
8046
- 187,
8047
- 0
8048
- ],
8049
- class_name: "ansi-green"
8050
- },
8051
- {
8052
- rgb: [
8053
- 187,
8054
- 187,
8055
- 0
8056
- ],
8057
- class_name: "ansi-yellow"
8058
- },
8059
- {
8060
- rgb: [
8061
- 0,
8062
- 0,
8063
- 187
8064
- ],
8065
- class_name: "ansi-blue"
8066
- },
8067
- {
8068
- rgb: [
8069
- 187,
8070
- 0,
8071
- 187
8072
- ],
8073
- class_name: "ansi-magenta"
8074
- },
8075
- {
8076
- rgb: [
8077
- 0,
8078
- 187,
8079
- 187
8080
- ],
8081
- class_name: "ansi-cyan"
8082
- },
8083
- {
8084
- rgb: [
8085
- 255,
8086
- 255,
8087
- 255
8088
- ],
8089
- class_name: "ansi-white"
8090
- }
8091
- ], [
8092
- {
8093
- rgb: [
8094
- 85,
8095
- 85,
8096
- 85
8097
- ],
8098
- class_name: "ansi-bright-black"
8099
- },
8100
- {
8101
- rgb: [
8102
- 255,
8103
- 85,
8104
- 85
8105
- ],
8106
- class_name: "ansi-bright-red"
8107
- },
8108
- {
8109
- rgb: [
8110
- 0,
8111
- 255,
8112
- 0
8113
- ],
8114
- class_name: "ansi-bright-green"
8115
- },
8116
- {
8117
- rgb: [
8118
- 255,
8119
- 255,
8120
- 85
8121
- ],
8122
- class_name: "ansi-bright-yellow"
8123
- },
8124
- {
8125
- rgb: [
8126
- 85,
8127
- 85,
8128
- 255
8129
- ],
8130
- class_name: "ansi-bright-blue"
8131
- },
8132
- {
8133
- rgb: [
8134
- 255,
8135
- 85,
8136
- 255
8137
- ],
8138
- class_name: "ansi-bright-magenta"
8139
- },
8140
- {
8141
- rgb: [
8142
- 85,
8143
- 255,
8144
- 255
8145
- ],
8146
- class_name: "ansi-bright-cyan"
8147
- },
8148
- {
8149
- rgb: [
8150
- 255,
8151
- 255,
8152
- 255
8153
- ],
8154
- class_name: "ansi-bright-white"
8155
- }
8156
- ]], this.palette_256 = [], this.ansi_colors.forEach((e) => {
8157
- e.forEach((e) => {
8158
- this.palette_256.push(e);
8159
- });
8160
- });
8161
- let e = [
8162
- 0,
8163
- 95,
8164
- 135,
8165
- 175,
8166
- 215,
8167
- 255
8168
- ];
8169
- for (let t = 0; t < 6; ++t) for (let n = 0; n < 6; ++n) for (let r = 0; r < 6; ++r) {
8170
- let i = {
8171
- rgb: [
8172
- e[t],
8173
- e[n],
8174
- e[r]
8175
- ],
8176
- class_name: "truecolor"
8177
- };
8178
- this.palette_256.push(i);
8179
- }
8180
- let t = 8;
8181
- for (let e = 0; e < 24; ++e, t += 10) {
8182
- let e = {
8183
- rgb: [
8184
- t,
8185
- t,
8186
- t
8187
- ],
8188
- class_name: "truecolor"
8189
- };
8190
- this.palette_256.push(e);
8191
- }
8192
- }
8193
- escape_txt_for_html(e) {
8194
- return this._escape_html ? e.replace(/[&<>"']/gm, (e) => {
8195
- if (e === "&") return "&amp;";
8196
- if (e === "<") return "&lt;";
8197
- if (e === ">") return "&gt;";
8198
- if (e === "\"") return "&quot;";
8199
- if (e === "'") return "&#x27;";
8200
- }) : e;
8201
- }
8202
- append_buffer(e) {
8203
- var t = this._buffer + e;
8204
- this._buffer = t;
8205
- }
8206
- get_next_packet() {
8207
- var e = {
8208
- kind: $.EOS,
8209
- text: "",
8210
- url: ""
8211
- }, t = this._buffer.length;
8212
- if (t == 0) return e;
8213
- var n = this._buffer.indexOf("\x1B");
8214
- if (n == -1) return e.kind = $.Text, e.text = this._buffer, this._buffer = "", e;
8215
- if (n > 0) return e.kind = $.Text, e.text = this._buffer.slice(0, n), this._buffer = this._buffer.slice(n), e;
8216
- if (n == 0) {
8217
- if (t < 3) return e.kind = $.Incomplete, e;
8218
- var r = this._buffer.charAt(1);
8219
- if (r != "[" && r != "]" && r != "(") return e.kind = $.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
8220
- if (r == "[") {
8221
- this._csi_regex ||= Io(Ro ||= Po(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \x1B[ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \x1B[ # CSI\n [ -~]* # anything legal\n ([\0-:]) # anything illegal\n )\n "], ["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]));
8222
- let t = this._buffer.match(this._csi_regex);
8223
- if (t === null) return e.kind = $.Incomplete, e;
8224
- if (t[4]) return e.kind = $.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
8225
- e.kind = t[1] != "" || t[3] != "m" ? $.Unknown : $.SGR, e.text = t[2];
8226
- var i = t[0].length;
8227
- return this._buffer = this._buffer.slice(i), e;
8228
- }
8229
- if (r == "]") {
8230
- if (t < 4) return e.kind = $.Incomplete, e;
8231
- if (this._buffer.charAt(2) != "8" || this._buffer.charAt(3) != ";") return e.kind = $.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
8232
- this._osc_st ||= Lo(zo ||= Po(["\n (?: # legal sequence\n (\x1B\\) # ESC | # alternate\n (\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-] # anything illegal\n | # alternate\n [\b-] # anything illegal\n | # alternate\n [-] # anything illegal\n )\n "], ["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "])), this._osc_st.lastIndex = 0;
8233
- {
8234
- let t = this._osc_st.exec(this._buffer);
8235
- if (t === null) return e.kind = $.Incomplete, e;
8236
- if (t[3]) return e.kind = $.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
8237
- }
8238
- {
8239
- let t = this._osc_st.exec(this._buffer);
8240
- if (t === null) return e.kind = $.Incomplete, e;
8241
- if (t[3]) return e.kind = $.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
8242
- }
8243
- this._osc_regex ||= Io(Bo ||= Po(["\n ^ # beginning of line\n #\n \x1B]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\x1B\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \x1B]8;; # OSC Hyperlink End\n (?: # ST\n (?:\x1B\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n "], ["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]));
8244
- let n = this._buffer.match(this._osc_regex);
8245
- if (n === null) return e.kind = $.ESC, e.text = this._buffer.slice(0, 1), this._buffer = this._buffer.slice(1), e;
8246
- e.kind = $.OSCURL, e.url = n[1], e.text = n[2];
8247
- var i = n[0].length;
8248
- return this._buffer = this._buffer.slice(i), e;
8249
- }
8250
- if (r == "(") return e.kind = $.Unknown, this._buffer = this._buffer.slice(3), e;
8251
- }
8252
- }
8253
- ansi_to_html(e) {
8254
- this.append_buffer(e);
8255
- for (var t = [];;) {
8256
- var n = this.get_next_packet();
8257
- if (n.kind == $.EOS || n.kind == $.Incomplete) break;
8258
- n.kind != $.ESC && n.kind != $.Unknown && (n.kind == $.Text ? t.push(this.transform_to_html(this.with_state(n))) : n.kind == $.SGR ? this.process_ansi(n) : n.kind == $.OSCURL && t.push(this.process_hyperlink(n)));
8259
- }
8260
- return t.join("");
8261
- }
8262
- with_state(e) {
8263
- return {
8264
- bold: this.bold,
8265
- faint: this.faint,
8266
- italic: this.italic,
8267
- underline: this.underline,
8268
- fg: this.fg,
8269
- bg: this.bg,
8270
- text: e.text
8271
- };
8272
- }
8273
- process_ansi(e) {
8274
- let t = e.text.split(";");
8275
- for (; t.length > 0;) {
8276
- let e = t.shift(), n = parseInt(e, 10);
8277
- if (isNaN(n) || n === 0) this.fg = null, this.bg = null, this.bold = !1, this.faint = !1, this.italic = !1, this.underline = !1;
8278
- else if (n === 1) this.bold = !0;
8279
- else if (n === 2) this.faint = !0;
8280
- else if (n === 3) this.italic = !0;
8281
- else if (n === 4) this.underline = !0;
8282
- else if (n === 21) this.bold = !1;
8283
- else if (n === 22) this.faint = !1, this.bold = !1;
8284
- else if (n === 23) this.italic = !1;
8285
- else if (n === 24) this.underline = !1;
8286
- else if (n === 39) this.fg = null;
8287
- else if (n === 49) this.bg = null;
8288
- else if (n >= 30 && n < 38) this.fg = this.ansi_colors[0][n - 30];
8289
- else if (n >= 40 && n < 48) this.bg = this.ansi_colors[0][n - 40];
8290
- else if (n >= 90 && n < 98) this.fg = this.ansi_colors[1][n - 90];
8291
- else if (n >= 100 && n < 108) this.bg = this.ansi_colors[1][n - 100];
8292
- else if ((n === 38 || n === 48) && t.length > 0) {
8293
- let e = n === 38, r = t.shift();
8294
- if (r === "5" && t.length > 0) {
8295
- let n = parseInt(t.shift(), 10);
8296
- n >= 0 && n <= 255 && (e ? this.fg = this.palette_256[n] : this.bg = this.palette_256[n]);
8297
- }
8298
- if (r === "2" && t.length > 2) {
8299
- let n = parseInt(t.shift(), 10), r = parseInt(t.shift(), 10), i = parseInt(t.shift(), 10);
8300
- if (n >= 0 && n <= 255 && r >= 0 && r <= 255 && i >= 0 && i <= 255) {
8301
- let t = {
8302
- rgb: [
8303
- n,
8304
- r,
8305
- i
8306
- ],
8307
- class_name: "truecolor"
8308
- };
8309
- e ? this.fg = t : this.bg = t;
8310
- }
8311
- }
8312
- }
8313
- }
8314
- }
8315
- transform_to_html(e) {
8316
- let t = e.text;
8317
- if (t.length === 0 || (t = this.escape_txt_for_html(t), !e.bold && !e.italic && !e.faint && !e.underline && e.fg === null && e.bg === null)) return t;
8318
- let n = [], r = [], i = e.fg, a = e.bg;
8319
- e.bold && n.push(this._boldStyle), e.faint && n.push(this._faintStyle), e.italic && n.push(this._italicStyle), e.underline && n.push(this._underlineStyle), this._use_classes ? (i && (i.class_name === "truecolor" ? n.push(`color:rgb(${i.rgb.join(",")})`) : r.push(`${i.class_name}-fg`)), a && (a.class_name === "truecolor" ? n.push(`background-color:rgb(${a.rgb.join(",")})`) : r.push(`${a.class_name}-bg`))) : (i && n.push(`color:rgb(${i.rgb.join(",")})`), a && n.push(`background-color:rgb(${a.rgb})`));
8320
- let o = "", s = "";
8321
- return r.length && (o = ` class="${r.join(" ")}"`), n.length && (s = ` style="${n.join(";")}"`), `<span${s}${o}>${t}</span>`;
8322
- }
8323
- process_hyperlink(e) {
8324
- let t = e.url.split(":");
8325
- return t.length < 1 || !this._url_allowlist[t[0]] ? "" : `<a href="${this.escape_txt_for_html(e.url)}">${this.escape_txt_for_html(e.text)}</a>`;
8326
- }
8327
7980
  };
8328
- function Io(e, ...t) {
8329
- let n = e.raw[0].replace(/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm, "");
8330
- return new RegExp(n);
8331
- }
8332
- function Lo(e, ...t) {
8333
- let n = e.raw[0].replace(/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm, "");
8334
- return new RegExp(n, "g");
7981
+ //#endregion
7982
+ //#region src/html-state.ts
7983
+ function No(e) {
7984
+ return JSON.stringify(e).replace(/[<>&\u2028\u2029]/g, (e) => `\\u${e.charCodeAt(0).toString(16).padStart(4, "0")}`);
8335
7985
  }
8336
- var Ro, zo, Bo, Vo = class {
7986
+ //#endregion
7987
+ //#region src/reporters/html.reporter.html?raw
7988
+ var Po = "<!DOCTYPE html>\n<html lang=\"en\" class=\"dark\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Workflow Run</title>\n <script type=\"importmap\">\n {\n \"imports\": {\n \"@li3/\": \"https://cdn.li3.dev/@li3/\",\n \"ansi_up\": \"https://esm.sh/ansi_up@6.0.6\"\n }\n }\n <\/script>\n</head>\n<body class=\"bg-gray-950 text-gray-100 min-h-screen p-4 md:p-6 font-sans\">\n <template app>\n <div class=\"max-w-5xl mx-auto space-y-4\">\n <header class=\"flex flex-col md:flex-row md:items-center justify-between border-b border-gray-800 pb-6 gap-4\">\n <div class=\"min-w-0\">\n <a href=\"/runs\" class=\"text-xs text-indigo-400 hover:underline mb-1 inline-block\">Back to Dashboard</a>\n <h1 class=\"text-2xl font-bold text-white flex flex-wrap items-center gap-3\">\n {{ report.workflowName }}\n <span class=\"text-sm font-mono text-gray-500\">#{{ report.jobId }}</span>\n <template if=\"report.parentId\">\n <a attr-href=\"'/runs/' + report.parentId\" class=\"text-sm font-mono text-indigo-400 hover:underline\">\n from #{{ report.parentId }}\n </a>\n </template>\n </h1>\n <p class=\"text-xs text-gray-400 mt-1\">Started {{ report.startedAt }} · {{ timing }}</p>\n </div>\n <div class=\"flex items-center gap-2 shrink-0\">\n <span\n class=\"px-4 py-1.5 rounded-full text-sm font-semibold border\"\n bind-class=\"{\n 'bg-emerald-500/10.text-emerald-400.border-emerald-500/20': report.status === 'success',\n 'bg-rose-500/10.text-rose-400.border-rose-500/20': report.status === 'failed',\n 'bg-indigo-500/10.text-indigo-400.border-indigo-500/20': report.status === 'running',\n 'bg-amber-500/10.text-amber-400.border-amber-500/20': !['success', 'failed', 'running'].includes(report.status)\n }\"\n >\n {{ upper(report.status) }}\n </span>\n <button\n class=\"text-sm text-white px-4 py-1.5 border border-gray-600 hover:border-gray-400 rounded-full\"\n on-click=\"restartJob()\"\n >\n Restart\n </button>\n </div>\n </header>\n\n <section class=\"rounded overflow-hidden border-b border-gray-800\">\n <h2 class=\"sr-only\">Execution Steps</h2>\n <template for=\"[step, index] of report.steps\">\n <details class=\"border border-b-0 border-gray-800 bg-gray-900/50 text-sm\">\n <summary class=\"flex flex-col md:flex-row md:items-center justify-between gap-2 p-3 bg-gray-800/40 border-b border-gray-800 cursor-pointer\">\n <div class=\"flex flex-wrap items-center gap-3 min-w-0\">\n <span class=\"font-mono text-gray-500\">\n #{{ index + 1 }}<template if=\"step.exitCode !== undefined && step.exitCode !== 0\"> ({{ step.exitCode }})</template>\n </span>\n <h3 class=\"font-semibold text-gray-200 break-words\">{{ step.name }}</h3>\n <span\n class=\"px-2.5 py-0.5 rounded-full font-medium\"\n bind-class=\"{\n 'text-emerald-400.bg-emerald-500/10': step.status === 'success',\n 'text-rose-400.bg-rose-500/10': step.status === 'failed',\n 'text-indigo-400.bg-indigo-500/10': step.status === 'running',\n 'text-gray-400.bg-gray-500/10': !['success', 'failed', 'running'].includes(step.status)\n }\"\n >\n {{ upper(step.status) }}\n </span>\n </div>\n <div class=\"font-mono text-gray-400 shrink-0\">{{ step.durationMs }}ms</div>\n </summary>\n <div class=\"p-4 bg-gray-950 font-mono text-gray-300 leading-relaxed overflow-auto w-full\">\n <pre class=\"whitespace-pre-wrap\" bind-innerhtml=\"stepLog(step)\"></pre>\n </div>\n </details>\n </template>\n </section>\n\n <details class=\"bg-gray-900 border border-gray-800 rounded-xl p-4 overflow-auto max-h-[400px]\">\n <summary class=\"cursor-pointer\">\n <h2 class=\"inline text-xs font-semibold text-gray-400 uppercase tracking-wider\">Trigger Inputs</h2>\n </summary>\n <pre class=\"font-mono text-xs text-gray-200 bg-gray-950 p-3 mt-3 rounded-lg overflow-x-auto\">{{ inputsJson }}</pre>\n </details>\n </div>\n\n <script setup>\n import { computed, onInit, ref } from '@li3/web';\n import { AnsiUp } from 'ansi_up';\n\n export default function setup() {\n const report = ref({});\n const ansiUp = new AnsiUp();\n ansiUp.use_classes = false;\n\n const active = computed(() => ['pending', 'running'].includes(report.value.status));\n const inputsJson = computed(() => JSON.stringify(report.value.inputs || {}, null, 2));\n const timing = computed(() => {\n if (report.value.status === 'pending') return 'Waiting for a worker';\n if (report.value.status === 'running') return `Running for ${report.value.durationMs}ms`;\n return `Finished in ${report.value.durationMs}ms`;\n });\n\n const upper = (value) => String(value || '').toUpperCase();\n const stepLog = (step) => {\n if (step.status === 'skipped') return '';\n if (step.status === 'running') return '<span class=\"text-indigo-400\">Step is running. Logs will appear after it finishes.</span>';\n if (step.status === 'pending') return '<span class=\"text-gray-500\">Waiting to run.</span>';\n if (step.logContent) return ansiUp.ansi_to_html(step.logContent);\n return '<span class=\"text-gray-500\">(No terminal log output recorded for this step)</span>';\n };\n const restartJob = async () => {\n const response = await fetch(`/restart/${report.value.jobId}`, { method: 'POST' });\n if (response.ok) {\n const { id } = await response.json();\n location.href = `/runs/${id}`;\n }\n };\n\n onInit(() => {\n document.title = `Run #${report.value.jobId} - ${report.value.workflowName}`;\n if (active.value) setTimeout(() => location.reload(), 3000);\n });\n\n return { report, inputsJson, timing, upper, stepLog, restartJob };\n }\n <\/script>\n <script state>__REPORT_STATE__<\/script>\n </template>\n\n <script type=\"module\">import '@li3/web';<\/script>\n <script src=\"https://cdn.tailwindcss.com\"><\/script>\n</body>\n</html>\n", Fo = "__REPORT_STATE__", Io = class {
8337
7989
  name = "html";
8338
7990
  outputDir;
8339
- ansiUp;
8340
7991
  constructor(e) {
8341
- this.outputDir = e.outputDir, this.ansiUp = new Fo(), this.ansiUp.use_classes = !1;
7992
+ this.outputDir = e.outputDir;
8342
7993
  }
8343
7994
  async report(t) {
8344
7995
  e.mkdirSync(this.outputDir, { recursive: !0 });
@@ -8346,91 +7997,18 @@ var Ro, zo, Bo, Vo = class {
8346
7997
  e.writeFileSync(r, n, "utf-8"), console.log(`📊 HTML Execution Report generated: ${r}`);
8347
7998
  }
8348
7999
  generateHtml(e) {
8349
- let t = e.status === "success" ? "bg-emerald-500/10 text-emerald-400 border-emerald-500/20" : e.status === "failed" ? "bg-rose-500/10 text-rose-400 border-rose-500/20" : "bg-amber-500/10 text-amber-400 border-amber-500/20", n = (e.steps ?? []).map((e, t) => {
8350
- let n = e.logContent, r = e.status === "skipped" ? "" : n ? this.ansiUp.ansi_to_html(n) : "<span class=\"text-gray-500\">(No terminal log output recorded for this step)</span>", i = e.status === "success" ? "text-emerald-400 bg-emerald-500/10" : e.status === "failed" ? "text-rose-400 bg-rose-500/10" : "text-gray-400 bg-gray-500/10";
8351
- return `<details class="border border-b-0 border-gray-800 bg-gray-900/50 text-sm">
8352
- <summary class="flex items-center justify-between p-2 bg-gray-800/40 border-b border-gray-800 cursor-pointer">
8353
- <div class="flex items-center gap-3">
8354
- <span class="font-mono text-gray-500">#${t + 1} ${e.exitCode === 0 ? "" : "(" + e.exitCode + ")"}</span>
8355
- <h3 class="font-semibold text-gray-200">${e.name}</h3>
8356
- <span class="px-2.5 py-0.5 rounded-full font-medium ${i}">
8357
- ${e.status.toUpperCase()}
8358
- </span>
8359
- </div>
8360
- <div class="font-mono text-gray-400">${e.durationMs}ms</div>
8361
- </summary>
8362
- <div class="p-4 bg-gray-950 font-mono text-gray-300 leading-relaxed overflow-auto w-full">
8363
- <pre class="whitespace-pre-wrap">${r}</pre>
8364
- </div>
8365
- </details>`;
8366
- }).join("");
8367
- return `<!DOCTYPE html>
8368
- <html lang="en" class="dark">
8369
- <head>
8370
- <meta charset="UTF-8">
8371
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
8372
- <title>Run #${e.jobId} - ${e.workflowName}</title>
8373
- <script type="importmap"> {"imports": { "@li3/": "https://cdn.li3.dev/@li3/" }}<\/script>
8374
- <script>
8375
- async function restartJob(jobId) {
8376
- const r = await fetch('/restart/' + jobId, { method:'POST' });
8377
- if (r.ok) {
8378
- const { id } = await r.json();
8379
- location.href = '/runs/' + id
8380
- }
8381
- }
8382
- <\/script>
8383
- </head>
8384
- <body class="bg-gray-950 text-gray-100 min-h-screen p-6 font-sans">
8385
- <div class="max-w-5xl mx-auto space-y-4">
8386
-
8387
- <div class="flex items-center justify-between border-b border-gray-800 pb-6 gap-2">
8388
- <div>
8389
- <a href="/runs" class="text-xs text-indigo-400 hover:underline mb-1 inline-block">← Back to Dashboard</a>
8390
- <h1 class="text-2xl font-bold text-white flex items-center gap-3">
8391
- ${e.workflowName}
8392
- <span class="text-sm font-mono text-gray-500">#${e.jobId}
8393
- ${e.parentId ? ` -> <a href="/runs/${e.parentId}">#${e.parentId}</a>` : ""}
8394
- </span>
8395
- </h1>
8396
- <p class="text-xs text-gray-400 mt-1">Started ${e.startedAt} • Finished in ${e.durationMs}ms</p>
8397
- </div>
8398
- <div class="flex items-center gap-2">
8399
- <span class="px-4 py-1.5 rounded-full text-sm font-semibold border ${t}">
8400
- ${e.status.toUpperCase()}
8401
- </span>
8402
- <button class="text-sm text-white px-4 py-1.5 border border-gray-400 rounded-full" onclick="restartJob('${e.jobId}')">restart</button>
8403
- </div>
8404
- </div>
8405
-
8406
- <div class="rounded overflow-hidden border-b border-gray-800">
8407
- <h2 class="sr-only">Execution Steps</h2>
8408
- ${n}
8409
- </div>
8410
-
8411
- <details class="bg-gray-900 border border-gray-800 rounded-xl p-4 overflow-auto max-h-[400px]">
8412
- <summary>
8413
- <h2 class="text-xs font-semibold text-gray-400 uppercase tracking-wider mb-2">Trigger Inputs</h2>
8414
- </summary>
8415
- <pre class="font-mono text-xs text-gray-200 bg-gray-950 p-3 rounded-lg overflow-x-auto">${JSON.stringify(e.inputs, null, 2)}</pre>
8416
- </details>
8417
-
8418
- </div>
8419
- <script type="module">import "@li3/web"<\/script>
8420
- <script src="https://cdn.tailwindcss.com"><\/script>
8421
- </body>
8422
- </html>`;
8423
- }
8424
- }, Ho = class e {
8000
+ return Po.replace(Fo, () => No({ report: e }));
8001
+ }
8002
+ }, Lo = class e {
8425
8003
  static async from(t) {
8426
- let n = o(t) ? c("/", t) : s(process.cwd(), c("/", t)), r = (await _(n, { withFileTypes: !0 })).filter((e) => e.isFile() && (e.name.endsWith(".yml") || e.name.endsWith(".yaml"))).map((e) => s(n, e.name)), i = [], a = new fi(t);
8004
+ let n = o(t) ? c("/", t) : s(process.cwd(), c("/", t)), r = (await _(n, { withFileTypes: !0 })).filter((e) => e.isFile() && (e.name.endsWith(".yml") || e.name.endsWith(".yaml"))).map((e) => s(n, e.name)), i = [], a = new di(t);
8427
8005
  for (let t of r) i.push(...await e.loadFile(t, a));
8428
8006
  return i;
8429
8007
  }
8430
8008
  static loadFile(e, t) {
8431
8009
  let n = [];
8432
8010
  try {
8433
- let r = pi(t.resolve(e));
8011
+ let r = fi(t.resolve(e));
8434
8012
  for (let t of r) {
8435
8013
  if (typeof t.on != "object") {
8436
8014
  console.error(`on: not defined in ${e}! Ignoring this workflow.`);
@@ -8454,7 +8032,28 @@ var Ro, zo, Bo, Vo = class {
8454
8032
  }
8455
8033
  return n;
8456
8034
  }
8457
- }, Uo = class e {
8035
+ }, Ro = "<!DOCTYPE html>\n<html lang=\"en\" class=\"dark\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>Workflow Engine Dashboard</title>\n <script type=\"importmap\">\n { \"imports\": { \"@li3/\": \"https://cdn.li3.dev/@li3/\" } }\n <\/script>\n</head>\n<body class=\"bg-gray-950 text-gray-100 min-h-screen p-4 md:p-6 font-sans\">\n <template app>\n <main class=\"max-w-6xl mx-auto space-y-6\">\n <header class=\"flex flex-col sm:flex-row sm:items-center justify-between gap-3 border-b border-gray-800 pb-4\">\n <div>\n <h1 class=\"text-2xl font-bold text-white\">Runner Engine Status</h1>\n <p class=\"text-xs text-gray-400\">Live Job Queue &amp; Execution Traces</p>\n </div>\n <div class=\"flex items-center gap-3 text-xs font-mono\">\n <span class=\"text-gray-500\">Updated {{ lastUpdated }}</span>\n <span\n class=\"px-3 py-1 rounded-full border\"\n bind-class=\"{\n 'bg-emerald-500/10.text-emerald-400.border-emerald-500/20': !refreshError,\n 'bg-rose-500/10.text-rose-400.border-rose-500/20': refreshError\n }\"\n >\n {{ refreshError ? 'Refresh failed' : 'System operational' }}\n </span>\n </div>\n </header>\n\n <section class=\"bg-gray-900 border border-gray-800 rounded-xl overflow-hidden hidden md:block\">\n <table class=\"w-full text-left text-sm\">\n <thead class=\"bg-gray-800/50 text-gray-400 text-xs uppercase font-mono border-b border-gray-800\">\n <tr>\n <th class=\"py-3 px-4\">Job ID</th>\n <th class=\"py-3 px-4\">Workflow</th>\n <th class=\"py-3 px-4\">Status</th>\n <th class=\"py-3 px-4 hidden xl:table-cell\">Worker</th>\n <th class=\"py-3 px-4 hidden lg:table-cell\">Created At</th>\n <th class=\"py-3 px-4 text-right\">Action</th>\n </tr>\n </thead>\n <tbody>\n <template for=\"job of jobs\">\n <tr class=\"border-b border-gray-800 hover:bg-gray-800/40 transition\">\n <td class=\"py-3 px-4 font-mono text-indigo-400\">\n <a attr-href=\"'/runs/' + job.id\" class=\"hover:underline\">#{{ job.id }}</a>\n </td>\n <td class=\"py-3 px-4 font-medium text-white\">{{ job.workflowId }}</td>\n <td class=\"py-3 px-4\">\n <span\n class=\"px-2.5 py-0.5 rounded-full text-xs font-semibold\"\n bind-class=\"{\n 'bg-emerald-500/10.text-emerald-400': job.status === 'success',\n 'bg-rose-500/10.text-rose-400': job.status === 'failed',\n 'bg-indigo-500/10.text-indigo-400.animate-pulse': job.status === 'running',\n 'bg-gray-500/10.text-gray-400': !['success', 'failed', 'running'].includes(job.status)\n }\"\n >\n {{ upper(job.status) }}\n </span>\n </td>\n <td class=\"py-3 px-4 hidden xl:table-cell text-xs font-mono text-gray-400\">{{ job.workerId || '-' }}</td>\n <td class=\"py-3 px-4 hidden lg:table-cell text-xs text-gray-400\">{{ job.createdAt }}</td>\n <td class=\"py-3 px-4 text-right whitespace-nowrap\">\n <a attr-href=\"'/runs/' + job.id\" class=\"text-xs bg-gray-800 hover:bg-gray-700 text-gray-200 px-3 py-1 rounded border border-gray-700\">View Trace</a>\n </td>\n </tr>\n </template>\n </tbody>\n </table>\n <template if=\"!jobs.length\">\n <div class=\"p-8 text-center text-gray-500\">No jobs recorded yet.</div>\n </template>\n </section>\n\n <section class=\"md:hidden bg-gray-900 border border-gray-800 rounded-xl divide-y divide-gray-800 overflow-hidden\">\n <template for=\"job of jobs\">\n <article class=\"p-4 bg-gray-900/60\">\n <div class=\"flex items-start justify-between gap-3\">\n <div class=\"min-w-0\">\n <div class=\"flex items-center gap-2\">\n <span\n class=\"w-2.5 h-2.5 rounded-full shrink-0\"\n bind-class=\"{\n 'bg-emerald-400': job.status === 'success',\n 'bg-rose-400': job.status === 'failed',\n 'bg-indigo-400.animate-pulse': job.status === 'running',\n 'bg-gray-500': !['success', 'failed', 'running'].includes(job.status)\n }\"\n ></span>\n <h2 class=\"font-medium text-white truncate\">{{ job.workflowId }}</h2>\n </div>\n <p class=\"mt-1 pl-[18px] text-xs font-mono text-gray-400\">#{{ job.id }} · {{ upper(job.status) }}</p>\n </div>\n <a attr-href=\"'/runs/' + job.id\" class=\"shrink-0 text-xs bg-gray-800 hover:bg-gray-700 text-gray-300 px-2.5 py-1 rounded border border-gray-700\">Trace</a>\n </div>\n </article>\n </template>\n <template if=\"!jobs.length\">\n <div class=\"p-8 text-center text-gray-500\">No jobs recorded yet.</div>\n </template>\n </section>\n\n <template if=\"hasMore\">\n <div class=\"flex justify-center\">\n <button\n class=\"px-4 py-2 text-sm text-gray-200 bg-gray-800 hover:bg-gray-700 border border-gray-700 rounded-lg\"\n on-click=\"loadMore()\"\n >\n {{ loadingMore ? 'Loading...' : 'Load more' }}\n </button>\n </div>\n </template>\n </main>\n\n <script setup>\n import { onDestroy, onInit, ref } from '@li3/web';\n\n export default function setup() {\n const jobs = ref([]);\n const lastUpdated = ref('now');\n const refreshError = ref(false);\n const hasMore = ref(false);\n const loadingMore = ref(false);\n let refreshTimer;\n let refreshing = false;\n\n const upper = (value) => String(value || '').toUpperCase();\n const terminalStatuses = new Set(['success', 'failed', 'cancelled']);\n const refreshJobs = async () => {\n if (refreshing) return;\n refreshing = true;\n\n try {\n const activeIds = jobs.value\n .filter((job) => !terminalStatuses.has(job.status))\n .map((job) => Number(job.id));\n const knownIds = jobs.value.map((job) => Number(job.id));\n const afterId = activeIds.length\n ? Math.max(0, Math.min(...activeIds) - 1)\n : knownIds.length\n ? Math.max(...knownIds)\n : null;\n const url = afterId === null ? '/api/jobs?limit=500' : `/api/jobs?afterId=${afterId}&limit=500`;\n const response = await fetch(url, { headers: { accept: 'application/json' } });\n if (!response.ok) throw new Error(`Dashboard refresh failed: ${response.status}`);\n\n const data = await response.json();\n const merged = new Map(jobs.value.map((job) => [job.id, job]));\n for (const job of data.jobs) merged.set(job.id, job);\n jobs.value = Array.from(merged.values()).sort((a, b) => Number(b.id) - Number(a.id));\n lastUpdated.value = new Date().toLocaleTimeString();\n refreshError.value = false;\n } catch (error) {\n console.error(error);\n refreshError.value = true;\n } finally {\n refreshing = false;\n }\n };\n\n const loadMore = async () => {\n if (loadingMore.value || !hasMore.value || !jobs.value.length) return;\n loadingMore.value = true;\n\n try {\n const beforeId = Math.min(...jobs.value.map((job) => Number(job.id)));\n const response = await fetch(`/api/jobs?beforeId=${beforeId}`, {\n headers: { accept: 'application/json' },\n });\n if (!response.ok) throw new Error(`Loading older jobs failed: ${response.status}`);\n\n const data = await response.json();\n const merged = new Map(jobs.value.map((job) => [job.id, job]));\n for (const job of data.jobs) merged.set(job.id, job);\n jobs.value = Array.from(merged.values()).sort((a, b) => Number(b.id) - Number(a.id));\n hasMore.value = data.hasMore;\n } catch (error) {\n console.error(error);\n refreshError.value = true;\n } finally {\n loadingMore.value = false;\n }\n };\n\n onInit(() => {\n refreshTimer = setInterval(refreshJobs, 5000);\n });\n onDestroy(() => clearInterval(refreshTimer));\n\n return { jobs, lastUpdated, refreshError, hasMore, loadingMore, loadMore, upper };\n }\n <\/script>\n <script state>__DASHBOARD_STATE__<\/script>\n </template>\n\n <script type=\"module\">import '@li3/web';<\/script>\n <script src=\"https://cdn.tailwindcss.com\"><\/script>\n</body>\n</html>\n";
8036
+ //#endregion
8037
+ //#region src/dashboard.ts
8038
+ function zo(e) {
8039
+ return e.map((e) => ({
8040
+ id: e.id,
8041
+ workflowId: e.workflow_id,
8042
+ status: e.status,
8043
+ workerId: e.worker_id || null,
8044
+ createdAt: e.created_at,
8045
+ updatedAt: e.updated_at
8046
+ }));
8047
+ }
8048
+ function Bo(e, t = !1) {
8049
+ return Ro.replace("__DASHBOARD_STATE__", () => No({
8050
+ jobs: e,
8051
+ hasMore: t
8052
+ }));
8053
+ }
8054
+ //#endregion
8055
+ //#region src/server.ts
8056
+ var Vo = 50, Ho = 500, Uo = class e {
8458
8057
  server;
8459
8058
  preprocessors = /* @__PURE__ */ new Map();
8460
8059
  workflows = [];
@@ -8466,9 +8065,9 @@ var Ro, zo, Bo, Vo = class {
8466
8065
  return new e(r).listen(n);
8467
8066
  }
8468
8067
  constructor(e) {
8469
- this.queue = e.queue, this.secrets = e.secrets, this.adminToken = e.adminToken, Ho.from(e.config.workflows).then((t) => {
8068
+ this.queue = e.queue, this.secrets = e.secrets, this.adminToken = e.adminToken, Lo.from(e.config.workflows).then((t) => {
8470
8069
  this.workflows = t, console.log(`✅ Loaded ${t.length} workflow(s) from ${e.config.workflows}`);
8471
- }), this.registerPreprocessor(new No()), this.server = f.createServer((e, t) => this.handleRequest(e, t));
8070
+ }), this.registerPreprocessor(new Mo()), this.server = f.createServer((e, t) => this.handleRequest(e, t));
8472
8071
  }
8473
8072
  registerPreprocessor(e) {
8474
8073
  this.preprocessors.set(e.name, e);
@@ -8476,6 +8075,10 @@ var Ro, zo, Bo, Vo = class {
8476
8075
  async handleRequest(e, t) {
8477
8076
  let n = new p(e.url || "/", `${e.headers["x-forwarded-proto"] || "http"}://${e.headers["x-forwarded-host"] || e.headers.host}`);
8478
8077
  if (e.method === "GET" && (n.pathname === "/runs" || n.pathname === "/")) return this.renderDashboard(t);
8078
+ if (e.method === "GET" && n.pathname === "/api/jobs") {
8079
+ let e = n.searchParams.get("afterId"), r = n.searchParams.get("beforeId"), i = n.searchParams.get("limit"), a = e === null ? void 0 : Number(e), o = r === null ? void 0 : Number(r), s = i === null ? Vo : Number(i);
8080
+ return a !== void 0 && (!Number.isSafeInteger(a) || a < 0) ? (t.writeHead(400, { "Content-Type": "application/json; charset=utf-8" }), t.end(JSON.stringify({ error: "afterId must be a non-negative integer" }))) : o !== void 0 && (!Number.isSafeInteger(o) || o < 1) ? (t.writeHead(400, { "Content-Type": "application/json; charset=utf-8" }), t.end(JSON.stringify({ error: "beforeId must be a positive integer" }))) : !Number.isSafeInteger(s) || s < 1 || s > Ho ? (t.writeHead(400, { "Content-Type": "application/json; charset=utf-8" }), t.end(JSON.stringify({ error: `limit must be an integer from 1 to ${Ho}` }))) : this.renderDashboardJobs(t, s, a, o);
8081
+ }
8479
8082
  if (e.method === "GET" && n.pathname.startsWith("/runs/")) {
8480
8083
  let e = n.pathname.replace("/runs/", "");
8481
8084
  return this.renderRunDetails(e, t);
@@ -8552,7 +8155,7 @@ var Ro, zo, Bo, Vo = class {
8552
8155
  continue;
8553
8156
  }
8554
8157
  if (n.on.if) try {
8555
- if (!await Ao.evaluateConditions(n.on.if, { inputs: t })) {
8158
+ if (!await ko.evaluateConditions(n.on.if, { inputs: t })) {
8556
8159
  console.log(`⏩ Skipped ${n.id} based on conditions: ${n.on.if}`, { inputs: t });
8557
8160
  continue;
8558
8161
  }
@@ -8561,7 +8164,7 @@ var Ro, zo, Bo, Vo = class {
8561
8164
  continue;
8562
8165
  }
8563
8166
  let i = "";
8564
- n.concurrency?.group && (i = await Ao.evaluateValue(n.concurrency.group, { inputs: t }));
8167
+ n.concurrency?.group && (i = await ko.evaluateValue(n.concurrency.group, { inputs: t }));
8565
8168
  let a = {
8566
8169
  workflowId: n.id,
8567
8170
  env: n.env,
@@ -8576,102 +8179,58 @@ var Ro, zo, Bo, Vo = class {
8576
8179
  this.secrets.reload(), console.log("🔄 SecretStore reloaded successfully without downtime!"), t.writeHead(200, { "Content-Type": "application/json" }), t.end(JSON.stringify({ message: "Secrets reloaded successfully" }));
8577
8180
  }
8578
8181
  async renderDashboard(e) {
8579
- let t = await this.queue.listJobs(500), n = {
8580
- success: "bg-emerald-500/10 text-emerald-400",
8581
- failed: "bg-rose-500/10 text-rose-400",
8582
- running: "bg-indigo-500/10 text-indigo-400 animate-pulse",
8583
- _: "bg-gray-500/10 text-gray-400"
8584
- }, r = (e) => {
8585
- switch (e) {
8586
- case "success": return "bg-emerald-400";
8587
- case "failed": return "bg-rose-400";
8588
- case "running": return "bg-indigo-400 animate-pulse";
8589
- default: return "bg-gray-500";
8590
- }
8591
- }, i = t.map((e) => `
8592
- <div class="py-3 px-4 block md:hidden bg-gray-900/60">
8593
- <div class="flex items-center justify-between gap-2 mb-1">
8594
- <div class="flex items-center gap-2 min-w-0">
8595
- <span class="w-2.5 h-2.5 rounded-full ${r(e.status)} flex-shrink-0"></span>
8596
- <span class="font-medium text-white truncate">${e.workflow_id}</span>
8597
- </div>
8598
- <a href="/runs/${e.id}" class="shrink-0 text-xs bg-gray-800 hover:bg-gray-700 text-gray-300 px-2.5 py-1 rounded border border-gray-700 whitespace-nowrap">Trace</a>
8599
- </div>
8600
- <div class="flex items-center gap-2 text-xs text-gray-400 pl-[18px]">
8601
- #${e.id}
8602
- </div>
8603
- </div>
8604
- `).join(""), a = `<!doctype html>
8605
- <html lang="en" class="dark">
8606
- <head>
8607
- <meta charset="utf-8" />
8608
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
8609
- <meta name="viewport" content="width=device-width,initial-scale=1.0" />
8610
- <meta http-equiv="refresh" content="10"> <!-- Auto-refreshes every 10s -->
8611
- <title>Workflow Engine Dashboard</title>
8612
- <script src="https://cdn.tailwindcss.com"><\/script>
8613
- </head>
8614
- <body class="bg-gray-950 text-gray-100 min-h-screen p-6 font-sans">
8615
- <div class="max-w-6xl mx-auto space-y-6">
8616
- <div class="flex items-center justify-between border-b border-gray-800 pb-4">
8617
- <div>
8618
- <h1 class="text-2xl font-bold text-white">⚙️ Runner Engine Status</h1>
8619
- <p class="text-xs text-gray-400">Live Job Queue & Execution Traces</p>
8620
- </div>
8621
- <span class="text-xs font-mono bg-emerald-500/10 text-emerald-400 px-3 py-1 rounded-full border border-emerald-500/20">
8622
- ● System Operational
8623
- </span>
8624
- </div>
8625
-
8626
- <div class="bg-gray-900 border border-gray-800 rounded-xl overflow-hidden hidden md:block">
8627
- <table class="w-full text-left text-sm">
8628
- <thead class="bg-gray-800/50 text-gray-400 text-xs uppercase font-mono border-b border-gray-800">
8629
- <tr>
8630
- <th class="py-3 px-4">Job ID</th>
8631
- <th class="py-3 px-4">Workflow</th>
8632
- <th class="py-3 px-4">Status</th>
8633
- <th class="py-3 px-4 hidden xl:table-cell">Worker</th>
8634
- <th class="py-3 px-4 hidden lg:table-cell">Created At</th>
8635
- <th class="py-3 px-4 text-right hidden md:table-cell">Action</th>
8636
- </tr>
8637
- </thead>
8638
- <tbody>${t.map((e) => {
8639
- let t = n[e.status] || n._;
8640
- return `
8641
- <tr class="border-b border-gray-800 hover:bg-gray-900/50 transition">
8642
- <td class="py-3 px-4 font-mono text-indigo-400"><a href="/runs/${e.id}" class="hover:underline">#${e.id}</a></td>
8643
- <td class="py-3 px-4 font-medium text-white">${e.workflow_id}</td>
8644
- <td class="py-3 px-4">
8645
- <span class="px-2.5 py-0.5 rounded-full text-xs font-semibold ${t}">${e.status?.toUpperCase() ?? "?"}</span>
8646
- </td>
8647
- <td class="py-3 px-4 hidden xl:table-cell text-xs font-mono text-gray-400">${e.worker_id || "-"}</td>
8648
- <td class="py-3 px-4 hidden lg:table-cell text-xs text-gray-400">${e.created_at}</td>
8649
- <td class="py-3 px-4 text-right whitespace-nowrap hidden md:table-cell">
8650
- <a href="/runs/${e.id}" class="text-xs bg-gray-800 hover:bg-gray-700 text-gray-200 px-3 py-1 rounded border border-gray-700">View Trace →</a>
8651
- </td>
8652
- </tr>
8653
- `;
8654
- }).join("")}</tbody>
8655
- </table>
8656
- </div>
8657
-
8658
- <div class="md:hidden divide-y divide-gray-800">${i || "<div class=\"p-6 text-center text-gray-500\">No jobs recorded yet.</div>"}</div>
8659
- </div>
8660
- </body>
8661
- </html>`, o = this.secrets.redactText(a);
8662
- e.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), e.end(o);
8182
+ let t = await this.queue.listJobs(51), n = zo(t.slice(0, Vo)), r = this.secrets.redactText(Bo(n, t.length > Vo));
8183
+ e.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), e.end(r);
8184
+ }
8185
+ async renderDashboardJobs(e, t, n, r) {
8186
+ let i = await this.queue.listJobs(t + 1, n, r), a = zo(i.slice(0, t)), o = this.secrets.redactText(JSON.stringify({
8187
+ jobs: a,
8188
+ hasMore: i.length > t
8189
+ }));
8190
+ e.writeHead(200, {
8191
+ "Cache-Control": "no-store",
8192
+ "Content-Type": "application/json; charset=utf-8"
8193
+ }), e.end(o);
8663
8194
  }
8664
8195
  async renderRunDetails(e, t) {
8665
8196
  let n = await this.queue.getJob(e);
8666
- if (!n || !n.report) return t.writeHead(404, { "Content-Type": "text/html; charset=utf-8" }), t.end("<h1>404 - Report Not Found</h1>");
8667
- let r = JSON.parse(n.report), i = await this.queue.getJobLogs(e);
8197
+ if (!n) return t.writeHead(404, { "Content-Type": "text/html; charset=utf-8" }), t.end("<h1>404 - Report Not Found</h1>");
8198
+ let r = n.report ? JSON.parse(n.report) : this.buildPendingReport(n);
8199
+ r.status = n.status, r.status === "running" && (r.durationMs = Math.max(0, Date.now() - Date.parse(r.startedAt)));
8200
+ let i = await this.queue.getJobLogs(e);
8668
8201
  r.steps = (r.steps || []).map((e) => ({
8669
8202
  ...e,
8670
- logContent: i[e.id] || ""
8203
+ logContent: e.status === "running" || e.status === "pending" ? "" : i[e.id] || ""
8671
8204
  }));
8672
- let a = new Vo({ outputDir: "" }).generateHtml(r), o = this.secrets.redactText(a);
8205
+ let a = new Io({ outputDir: "" }).generateHtml(r), o = this.secrets.redactText(a);
8673
8206
  t.writeHead(200, { "Content-Type": "text/html; charset=utf-8" }), t.end(o);
8674
8207
  }
8208
+ buildPendingReport(e) {
8209
+ let t = JSON.parse(e.payload), n = e.started_at || e.created_at;
8210
+ return {
8211
+ jobId: String(e.id),
8212
+ parentId: String(e.parentId || ""),
8213
+ workflowName: e.workflow_id,
8214
+ status: e.status,
8215
+ durationMs: e.status === "running" ? Math.max(0, Date.now() - Date.parse(n)) : 0,
8216
+ startedAt: n,
8217
+ inputs: t.inputs || {},
8218
+ environment: t.env || {},
8219
+ steps: (t.steps || []).map((e, t) => ({
8220
+ id: e.id || `step-${t}`,
8221
+ name: e.name || e.id || `step-${t}`,
8222
+ status: "pending",
8223
+ durationMs: 0,
8224
+ outputs: {},
8225
+ logContent: ""
8226
+ })),
8227
+ artifacts: [],
8228
+ rerunToken: JSON.stringify({
8229
+ jobId: e.id,
8230
+ payload: t
8231
+ })
8232
+ };
8233
+ }
8675
8234
  async handleRestartJob(e, t) {
8676
8235
  let n = await this.queue.restartJob(e);
8677
8236
  if (n) {
@@ -9003,53 +8562,89 @@ async function $o(e) {
9003
8562
  steps: {},
9004
8563
  logsDir: f,
9005
8564
  workingDir: p
9006
- }, { cancelled: h, failed: g, stepReports: _ } = await es({
8565
+ }, h = c.map((e, t) => (e.id ||= `step-${t}`, e.name ||= e.id, {
8566
+ id: e.id,
8567
+ name: e.name,
8568
+ status: "pending",
8569
+ durationMs: 0,
8570
+ outputs: {},
8571
+ logContent: ""
8572
+ })), g = os(n, "running", u, l, m.env, h, s);
8573
+ await o.saveReport(n.id, g);
8574
+ let { cancelled: _, failed: v } = await es({
9007
8575
  payload: s,
9008
8576
  steps: c,
9009
8577
  executionContext: m,
9010
8578
  ...e
9011
- }), v = h ? "cancelled" : g ? "failed" : "success";
9012
- await o.finishJob(n.id, v), console.log(`[${t}] ✅ Job #${n.id} completed as: ${v}`);
9013
- let y = os(n, v, u, l, m.env, _, s);
9014
- await o.saveReport(n.id, y), await ss(t, r.reporters, y);
8579
+ }, g), y = _ ? "cancelled" : v ? "failed" : "success";
8580
+ g.status = y, g.durationMs = Date.now() - u, g.finishedAt = (/* @__PURE__ */ new Date()).toISOString(), await o.completeJob(n.id, y, g), console.log(`[${t}] ✅ Job #${n.id} completed as: ${y}`), await ss(t, r.reporters, g);
9015
8581
  }
9016
- async function es(e) {
9017
- let { driver: t, workerId: n, queue: r, config: i, job: a, payload: o, steps: s, executionContext: c } = e, l = [], u = !1, d = !1;
8582
+ async function es(e, t) {
8583
+ let { driver: n, workerId: r, queue: i, config: a, job: o, payload: s, steps: c, executionContext: l } = e, u = t.steps, d = !1, f = !1, p = 0;
9018
8584
  try {
9019
- o.env && Object.assign(c.env, await rs(o.env, c));
9020
- for (let e = 0; e < s.length; e++) {
9021
- let o = s[e], f = await ts({
9022
- workerId: n,
9023
- jobId: a.id,
9024
- step: o,
8585
+ s.env && Object.assign(l.env, await rs(s.env, l));
8586
+ for (let e = 0; e < c.length; e++) {
8587
+ let s = c[e], m = (/* @__PURE__ */ new Date()).toISOString();
8588
+ u[e] = {
8589
+ ...u[e],
8590
+ status: "running",
8591
+ durationMs: 0,
8592
+ exitCode: void 0,
8593
+ error: void 0,
8594
+ outputs: {},
8595
+ logContent: "",
8596
+ startedAt: m,
8597
+ finishedAt: void 0
8598
+ }, t.durationMs = Date.now() - Date.parse(t.startedAt), await i.saveReport(o.id, t);
8599
+ let h = await ts({
8600
+ workerId: r,
8601
+ jobId: o.id,
8602
+ step: s,
9025
8603
  stepIndex: e,
9026
- executionContext: c,
9027
- driver: t,
9028
- queue: r,
9029
- config: i
8604
+ executionContext: l,
8605
+ driver: n,
8606
+ queue: i,
8607
+ config: a
9030
8608
  });
9031
- if (f.report && l.push(f.report), f.skipped) break;
9032
- if (f.cancelled) {
9033
- d = !0, u = !0;
8609
+ if (h.report ? u[e] = {
8610
+ ...h.report,
8611
+ startedAt: m,
8612
+ finishedAt: (/* @__PURE__ */ new Date()).toISOString()
8613
+ } : h.skipped ? u[e] = {
8614
+ ...u[e],
8615
+ status: "skipped",
8616
+ durationMs: 0,
8617
+ exitCode: 0,
8618
+ finishedAt: (/* @__PURE__ */ new Date()).toISOString()
8619
+ } : u[e] = {
8620
+ ...u[e],
8621
+ status: "failed",
8622
+ durationMs: 0,
8623
+ exitCode: 1,
8624
+ error: "Step failed before execution started",
8625
+ finishedAt: (/* @__PURE__ */ new Date()).toISOString()
8626
+ }, p = e + 1, t.durationMs = Date.now() - Date.parse(t.startedAt), await i.saveReport(o.id, t), h.skipped) break;
8627
+ if (h.cancelled) {
8628
+ f = !0, d = !0;
9034
8629
  break;
9035
8630
  }
9036
- if (f.failed) {
9037
- u = !0;
8631
+ if (h.failed) {
8632
+ d = !0;
9038
8633
  break;
9039
8634
  }
9040
8635
  }
9041
8636
  } catch (e) {
9042
- console.log("🛑 Step failed", e), u = !0;
8637
+ console.log("🛑 Step failed", e), d = !0;
9043
8638
  }
9044
- return l.length < s.length && as(s, l.length, l), {
9045
- failed: u,
9046
- cancelled: d,
9047
- stepReports: l
8639
+ return p < c.length && (as(c, p, u), t.durationMs = Date.now() - Date.parse(t.startedAt), await i.saveReport(o.id, t)), {
8640
+ failed: d,
8641
+ cancelled: f,
8642
+ stepReports: u
9048
8643
  };
9049
8644
  }
9050
8645
  async function ts(e) {
9051
8646
  let { step: t, stepIndex: n, executionContext: r } = e;
9052
- if (t.id ||= `step-${n}`, t.name ||= t.id, t.if && !await Ao.evaluateConditions(t.if, r)) return Yo && console.log(`⏩ Skipped step ${t.id} based on condition: ${t.if}`, r), {
8647
+ if (t.id ||= `step-${n}`, t.name ||= t.id, t.if && !await ko.evaluateConditions(t.if, r)) return Yo && console.log(`⏩ Skipped step ${t.id} based on condition: ${t.if}`, r), {
9053
8648
  failed: !1,
9054
8649
  cancelled: !1,
9055
8650
  skipped: !0,
@@ -9089,7 +8684,7 @@ async function ts(e) {
9089
8684
  async function ns(e) {
9090
8685
  let { queue: t, stepContext: n, executionContext: r } = e, { jobId: i, step: a } = n, o = Date.now(), s = a.id, c = a.name;
9091
8686
  try {
9092
- let e = await Ao.evaluateExpression(a.eval, r);
8687
+ let e = await ko.evaluateExpression(a.eval, r);
9093
8688
  r.steps[s] = {
9094
8689
  status: "success",
9095
8690
  exitCode: 0,
@@ -9134,7 +8729,7 @@ async function ns(e) {
9134
8729
  }
9135
8730
  async function rs(e, t) {
9136
8731
  let n = {};
9137
- if (e) for (let [r, i] of Object.entries(e)) n[r] = String(await Ao.evaluateValue(i, t));
8732
+ if (e) for (let [r, i] of Object.entries(e)) n[r] = String(await ko.evaluateValue(i, t));
9138
8733
  return n;
9139
8734
  }
9140
8735
  async function is(t) {
@@ -9161,7 +8756,7 @@ async function is(t) {
9161
8756
  } catch (e) {
9162
8757
  console.error(`[${n}] ⚠️ Failed to read step log file:`, e.message);
9163
8758
  }
9164
- let h = m.exitCode !== 0 || f, g = m.exitCode === 0 ? "success" : f ? "cancelled" : "failed";
8759
+ let h = m.exitCode !== 0 || f, g = f ? "cancelled" : m.exitCode === 0 ? "success" : "failed";
9165
8760
  return a.steps[l] = {
9166
8761
  status: g,
9167
8762
  exitCode: m.exitCode,
@@ -9185,7 +8780,7 @@ async function is(t) {
9185
8780
  function as(e, t, n) {
9186
8781
  for (let r = t; r < e.length; r++) {
9187
8782
  let t = e[r], i = t.id || `step-${r}`;
9188
- n.push({
8783
+ n[r] = {
9189
8784
  id: i,
9190
8785
  name: t.name || i,
9191
8786
  status: "skipped",
@@ -9193,7 +8788,7 @@ function as(e, t, n) {
9193
8788
  exitCode: 0,
9194
8789
  outputs: {},
9195
8790
  logContent: ""
9196
- });
8791
+ };
9197
8792
  }
9198
8793
  }
9199
8794
  function os(e, t, n, r, i, a, o) {
@@ -9204,7 +8799,7 @@ function os(e, t, n, r, i, a, o) {
9204
8799
  status: t,
9205
8800
  durationMs: Date.now() - n,
9206
8801
  startedAt: new Date(n).toISOString(),
9207
- finishedAt: (/* @__PURE__ */ new Date()).toISOString(),
8802
+ finishedAt: t === "running" ? void 0 : (/* @__PURE__ */ new Date()).toISOString(),
9208
8803
  inputs: r,
9209
8804
  environment: i,
9210
8805
  steps: a,
@@ -9266,16 +8861,16 @@ var cs = class {
9266
8861
  //#region src/index.ts
9267
8862
  function us(e) {
9268
8863
  console.log("🔍 Validating Workflows in:", e.workflows);
9269
- let t = new fi(e.workflows), n = r(e.workflows).filter((e) => e.endsWith(".yml") || e.endsWith(".yaml"));
8864
+ let t = new di(e.workflows), n = r(e.workflows).filter((e) => e.endsWith(".yml") || e.endsWith(".yaml"));
9270
8865
  for (let e of n) {
9271
- let n = pi(t.resolve(e));
8866
+ let n = fi(t.resolve(e));
9272
8867
  console.log(` ✅ ${e} -> Valid! (${n.length} job matrix variant(s) generated)`);
9273
8868
  }
9274
8869
  }
9275
8870
  async function ds() {
9276
8871
  let { config: e, command: t } = await fe();
9277
8872
  if (e || process.exit(1), t === "validate") return us(e);
9278
- let n = new hi("./.env"), r = new mi(process.env.WORKER_NAME || "cli");
8873
+ let n = new mi("./.env"), r = new pi(process.env.WORKER_NAME || "cli");
9279
8874
  switch (t) {
9280
8875
  case "start-server":
9281
8876
  console.log("🌐 Starting Ingress Gateway..."), await r.init(), await Uo.withPort({
@@ -9294,4 +8889,4 @@ async function ds() {
9294
8889
  }
9295
8890
  ds().catch(console.error);
9296
8891
  //#endregion
9297
- export { Vo as HtmlReporter, cs as JsonFileReporter, ls as SlackReporter };
8892
+ export { Io as HtmlReporter, cs as JsonFileReporter, ls as SlackReporter };